@pdfme/ui 5.3.13-dev.63 → 5.3.13-dev.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +35 -35
- package/dist/index.umd.js +7 -7
- package/package.json +3 -1
package/dist/index.umd.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".fr-inline-field{display:inline-block;margin-right:16px}.fr-inline-container{display:inline-flex;flex-wrap:wrap}.ant-form-item-optional-hide{padding:0 8px}.ant-form-item-optional-hide .ant-form-item-label>label{font-size:16px;font-weight:#000000d9;font-weight:600}.fr-desc{word-break:break-all;color:#00000073;line-height:22px;margin-left:5px;font-weight:400;font-size:14px}.fr-item-actions{margin-left:12px;display:inline-flex;align-items:center}.fr-hide-label>.ant-form-item-row>.ant-form-item-label{visibility:hidden}.fr-field .ant-form-item-row{flex-wrap:nowrap}.fr-field .ant-form-item-control-input-content{display:flex}.fr-field-visibility{width:0;height:0;visibility:hidden;position:absolute;opacity:0}.fr-form .ant-form-item-control{width:0}.fr-form .fr-inline-field .ant-form-item-control{width:auto}.rc-color-picker-panel-inner{position:relative;border-radius:4px;box-shadow:0 1px 5px #ccc;border:1px solid #ccc;padding-bottom:8px}.rc-color-picker-panel-wrap{margin:5px 0 0;height:30px;width:100%;position:relative}.rc-color-picker-panel-wrap-preview{position:absolute;right:8px}.rc-color-picker-panel-wrap-ribbon{position:absolute;left:8px;top:0;right:43px;height:30px}.rc-color-picker-panel-wrap-alpha{position:absolute;left:8px;right:43px;bottom:0;height:12.5px}.rc-color-picker-panel-wrap-has-alpha .rc-color-picker-panel-wrap-ribbon{height:12.5px}.rc-color-picker-trigger{border:1px solid #999;display:inline-block;padding:2px;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:20px;height:20px;cursor:pointer;box-shadow:0 0 0 2px #fff inset}.rc-color-picker-trigger-open{box-shadow:0 0 3px #999}.rc-color-picker-panel{width:218px;background-color:#fff;box-sizing:border-box;outline:none;z-index:9;border-radius:4px;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.rc-color-picker-panel *{box-sizing:border-box}.rc-color-picker-panel-open{display:block}.rc-color-picker-panel-close{display:none}.rc-color-picker-panel-preview{height:30px;width:30px;overflow:hidden;border-radius:2px;background-image:url(data:image/png;base64,R0lGODdhCgAKAPAAAOXl5f///ywAAAAACgAKAEACEIQdqXt9GxyETrI279OIgwIAOw==)}.rc-color-picker-panel-preview span{box-shadow:0 0 2px gray inset}.rc-color-picker-panel-preview span,.rc-color-picker-panel-preview input[type=color]{position:absolute;display:block;height:100%;width:30px;border-radius:2px}.rc-color-picker-panel-preview input[type=color]{opacity:0}.rc-color-picker-panel-board{position:relative;font-size:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:8px 8px 0}.rc-color-picker-panel-board span{position:absolute;border-radius:10px;border:1px solid #fff;width:9px;height:9px;margin:-4px 0 0 -4px;left:-999px;top:-999px;box-shadow:0 0 1px #787878b3;z-index:2}.rc-color-picker-panel-board-hsv{width:200px;height:150px;position:relative;z-index:1;border-radius:2px}.rc-color-picker-panel-board-value{border-radius:2px;position:absolute;width:100%;height:100%;left:0;top:0;z-index:2;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9InJnYigwLDAsMCkiIHN0b3Atb3BhY2l0eT0iMCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=);background-image:-webkit-linear-gradient(top,transparent 0%,#000000 100%);background-image:-moz-linear-gradient(top,transparent 0%,#000000 100%);background-image:-o-linear-gradient(top,transparent 0%,#000000 100%);background-image:linear-gradient(to bottom,transparent 0%,#000000 100%)}.rc-color-picker-panel-board-saturation{border-radius:2px;position:absolute;width:100%;height:100%;left:0;top:0;z-index:1;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0icmdiKDAsMCwwKSIgc3RvcC1vcGFjaXR5PSIwIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=);background-image:-webkit-linear-gradient(left,#ffffff 0%,transparent 100%);background-image:-moz-linear-gradient(left,#ffffff 0%,transparent 100%);background-image:-o-linear-gradient(left,#ffffff 0%,transparent 100%);background-image:linear-gradient(to right,#ffffff 0%,transparent 100%)}.rc-color-picker-panel-board-handler{box-shadow:0 0 2px gray inset;border-radius:2px;cursor:crosshair;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;top:0;left:0;width:100%;height:100%;z-index:3}.rc-color-picker-panel-ribbon{position:relative;height:100%;border-radius:2px;box-shadow:0 0 2px gray inset;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNmZjAwMDAiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAlIiBzdG9wLWNvbG9yPSIjZmY5OTAwIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjIwJSIgc3RvcC1jb2xvcj0iI2NkZmYwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSIzMCUiIHN0b3AtY29sb3I9IiMzNWZmMDAiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iNDAlIiBzdG9wLWNvbG9yPSIjMDBmZjY2IiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzAwZmZmZCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSI2MCUiIHN0b3AtY29sb3I9IiMwMDY2ZmYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iNzAlIiBzdG9wLWNvbG9yPSIjMzIwMGZmIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjgwJSIgc3RvcC1jb2xvcj0iI2NkMDBmZiIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSI5MCUiIHN0b3AtY29sb3I9IiNmZjAwOTkiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=);background-image:-webkit-linear-gradient(left,#ff0000 0%,#ff9900 10%,#cdff00 20%,#35ff00 30%,#00ff66 40%,#00fffd 50%,#0066ff 60%,#3200ff 70%,#cd00ff 80%,#ff0099 90%,#ff0000 100%);background-image:-moz-linear-gradient(left,#ff0000 0%,#ff9900 10%,#cdff00 20%,#35ff00 30%,#00ff66 40%,#00fffd 50%,#0066ff 60%,#3200ff 70%,#cd00ff 80%,#ff0099 90%,#ff0000 100%);background-image:-o-linear-gradient(left,#ff0000 0%,#ff9900 10%,#cdff00 20%,#35ff00 30%,#00ff66 40%,#00fffd 50%,#0066ff 60%,#3200ff 70%,#cd00ff 80%,#ff0099 90%,#ff0000 100%);background-image:linear-gradient(to right,red,#f90,#cdff00,#35ff00,#0f6,#00fffd,#06f,#3200ff,#cd00ff,#f09,red)}.rc-color-picker-panel-ribbon span{position:absolute;top:0;height:100%;width:4px;border:1px solid #000000;padding:1px 0;margin-left:-2px;background-color:#fff;border-radius:3px}.rc-color-picker-panel-ribbon-handler{position:absolute;width:104%;height:100%;left:-2%;cursor:pointer}.rc-color-picker-panel-alpha{position:relative;height:100%;width:100%;border-radius:2px;background-image:url(data:image/png;base64,R0lGODdhCgAKAPAAAOXl5f///ywAAAAACgAKAEACEIQdqXt9GxyETrI279OIgwIAOw==);background-repeat:repeat;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.rc-color-picker-panel-alpha-bg{position:absolute;width:100%;height:100%;border-radius:2px;box-shadow:0 0 2px gray inset}.rc-color-picker-panel-alpha span{position:absolute;top:0;height:100%;width:4px;border:1px solid #000000;padding:1px 0;margin-left:-2px;background-color:#fff;border-radius:3px}.rc-color-picker-panel-alpha-handler{position:absolute;width:104%;height:100%;left:-2%;cursor:pointer}.rc-color-picker-panel-params{font-size:12px}.rc-color-picker-panel-params-input{overflow:hidden;padding:2px 8px}.rc-color-picker-panel-params input{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;text-align:center;padding:1px;margin:0;float:left;border-radius:2px;border:1px solid #CACACA;font-family:Helvetica Neue,Helvetica,sans-serif}.rc-color-picker-panel-params-hex{width:52px}.rc-color-picker-panel-params input[type=number]{margin-left:5px;width:44px}.rc-color-picker-panel-params input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}.rc-color-picker-panel-params-lable{padding:2px 8px;height:22px;line-height:18px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.rc-color-picker-panel-params-lable label{float:left;text-align:center}.rc-color-picker-panel-params-lable-hex{width:52px}.rc-color-picker-panel-params-lable-number,.rc-color-picker-panel-params-lable-alpha{margin-left:5px;width:44px;text-transform:uppercase}.rc-color-picker-panel-params-lable-number:hover{border-radius:2px;background-color:#eee;box-shadow:0 0 0 1px #ccc inset;cursor:pointer}.rc-color-picker-panel-params-has-alpha input[type=number],.rc-color-picker-panel-params-has-alpha .rc-color-picker-panel-params-lable-number,.rc-color-picker-panel-params-has-alpha .rc-color-picker-panel-params-lable-alpha{width:32px}.rc-color-picker{position:absolute;left:-9999px;top:-9999px;z-index:1000}.rc-color-picker-wrap{display:inline-block}.rc-color-picker-slide-up-enter,.rc-color-picker-slide-up-appear{animation-duration:.3s;animation-fill-mode:both;transform-origin:0 0;display:block!important;opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-play-state:paused}.rc-color-picker-slide-up-leave{animation-duration:.3s;animation-fill-mode:both;transform-origin:0 0;display:block!important;opacity:1;animation-timing-function:cubic-bezier(.6,.04,.98,.34);animation-play-state:paused}.rc-color-picker-slide-up-enter.rc-color-picker-slide-up-enter-active.rc-color-picker-placement-bottomLeft,.rc-color-picker-slide-up-enter.rc-color-picker-slide-up-enter-active.rc-color-picker-placement-bottomRight,.rc-color-picker-slide-up-appear.rc-color-picker-slide-up-appear-active.rc-color-picker-placement-bottomLeft,.rc-color-picker-slide-up-appear.rc-color-picker-slide-up-appear-active.rc-color-picker-placement-bottomRight{animation-name:rcColorPickerSlideUpIn;animation-play-state:running}.rc-color-picker-slide-up-enter.rc-color-picker-slide-up-enter-active.rc-color-picker-placement-topLeft,.rc-color-picker-slide-up-enter.rc-color-picker-slide-up-enter-active.rc-color-picker-placement-topRight,.rc-color-picker-slide-up-appear.rc-color-picker-slide-up-appear-active.rc-color-picker-placement-topLeft,.rc-color-picker-slide-up-appear.rc-color-picker-slide-up-appear-active.rc-color-picker-placement-topRight{animation-name:rcColorPickerSlideDownIn;animation-play-state:running}.rc-color-picker-slide-up-leave.rc-color-picker-slide-up-leave-active.rc-color-picker-placement-bottomLeft,.rc-color-picker-slide-up-leave.rc-color-picker-slide-up-leave-active.rc-color-picker-placement-bottomRight{animation-name:rcColorPickerSlideUpOut;animation-play-state:running}.rc-color-picker-slide-up-leave.rc-color-picker-slide-up-leave-active.rc-color-picker-placement-topLeft,.rc-color-picker-slide-up-leave.rc-color-picker-slide-up-leave-active.rc-color-picker-placement-topRight{animation-name:rcColorPickerSlideDownOut;animation-play-state:running}@keyframes rcColorPickerSlideUpIn{0%{opacity:0;transform-origin:0% 0%;transform:scaleY(0)}to{opacity:1;transform-origin:0% 0%;transform:scaleY(1)}}@keyframes rcColorPickerSlideUpOut{0%{opacity:1;transform-origin:0% 0%;transform:scaleY(1)}to{opacity:0;transform-origin:0% 0%;transform:scaleY(0)}}@keyframes rcColorPickerSlideDownIn{0%{opacity:0;transform-origin:100% 100%;transform:scaleY(0)}to{opacity:1;transform-origin:100% 100%;transform:scaleY(1)}}@keyframes rcColorPickerSlideDownOut{0%{opacity:1;transform-origin:100% 100%;transform:scaleY(1)}to{opacity:0;transform-origin:100% 100%;transform:scaleY(0)}}.fr-color-picker{width:100%;display:flex;flex-direction:row;align-items:center;color:#666}.fr-color-picker .rc-color-picker-trigger{margin-right:12px;height:32px;width:60px;border:1px solid #e5e5e5}.fr-color-picker>p{margin:0;font-size:14px;line-height:28px}.fr-color-picker .rc-color-picker-wrap{display:flex}.fr-preview-image{width:160px}.fr-preview{position:relative;cursor:pointer}.fr-slider{display:flex;width:100%;align-items:center}.fr-upload-mod,.fr-upload-file{display:flex}.fr-upload-mod{align-items:center}.fr-upload-mod .fr-upload-preview{margin:0 12px}.fr-upload-file .ant-upload-list-item{margin:5px 0 0 8px}.fr-upload-file .ant-upload-list-item-name{margin-right:6px}.fr-upload-file .ant-upload-list-item-info{cursor:pointer}.fr-upload-file .next-upload-list-text .next-upload-list-item-done,.fr-upload-file .next-upload-list-text .next-upload-list-item .next-icon{height:28px;line-height:28px;margin-left:12px}.fr-upload-file .next-upload-list-item-name-wrap{margin-top:-4px}.fr-panel-bordered{border-radius:4px;border:1px solid #f4f4f4;padding:52px 24px 0;margin-bottom:24px}.fr-obj-card{border-radius:4px;border-color:#f4f4f4;margin-bottom:24px!important}.fr-obj-card .ant-card-head{border:none}.fr-obj-card .ant-card-body{padding:12px 24px!important}.fr-obj-card .fr-header-desc{word-break:break-all;color:#00000073;margin-left:6px;font-weight:400}.fr-obj-collapse{border-radius:4px;border:1px solid #f1f1f1;margin-bottom:24px}.fr-obj-collapse .collapse-title{height:24px;color:#000000e0;font-weight:600;font-size:16px;line-height:24px}.fr-obj-collapse .fr-header-desc{word-break:break-all;color:#00000073;margin-left:6px;font-weight:400}.fr-obj-collapse .header-item-label{height:14px;margin-left:30px;color:#000;font-weight:600;font-size:14px;line-height:14px}.fr-obj-collapse .header-item-label span{color:#141414}.fr-obj-collapse .expand-icon-desc{margin-left:4px}.fr-obj-collapse .ant-collapse-header{display:flex;align-items:center!important;padding:16px!important;background-color:#fff;border-radius:4px!important}.fr-obj-collapse .ant-collapse-header-text{display:flex;align-items:center}.fr-obj-collapse .tag-no-data{color:#000000a6}.fr-obj-collapse .ant-collapse-content-box{padding:12px 24px!important}.fr-obj-collapse .ant-collapse-content-box .ant-skeleton-title,.fr-obj-collapse .ant-collapse-content-box .ant-skeleton-paragraph>li{animation:none!important}.fr-obj-subinline-label-hidden>.ant-form-item-row>.ant-form-item-label{visibility:hidden}.fr-obj-subinline-background>.ant-form-item-row>.ant-form-item-control{background-color:#f6f6f6;padding:24px 24px 0;border-radius:4px}.fr-obj-subinline .ant-form-item-row{flex-wrap:nowrap}.fr-obj-line-title .fr-obj-header{line-height:36px;border-bottom:1px solid #e9e9e9}.fr-obj-line-title .fr-header-title{color:#000000e0;font-size:16px;font-weight:600}.fr-obj-line-title .fr-header-desc{word-break:break-all;color:#00000073;margin-left:6px;font-weight:400}.fr-obj-line-title .fr-obj-content{padding:24px 0 0}.fr-list-simple{display:inline-block}.fr-list-simple .fr-inline-field{min-width:220px;margin-bottom:24px!important}.fr-list-simple .fr-list-item{display:flex;align-items:flex-start;position:relative}.fr-list-simple .fr-list-item-operate{height:32px;gap:0!important}.fr-list-simple-background{padding:24px 24px 0;background-color:#f6f6f6;border-radius:4px}.fr-list-simple-background .add-btn{margin-bottom:24px}.fr-list-simple-column .fr-list-item{align-items:center}.fr-list-card{margin-bottom:24px}.fr-list-card .fr-list-item{display:flex;align-items:flex-start;position:relative}.fr-list-card .fr-list-item-operate{padding:0 20px;height:32px;gap:0!important}.fr-list-card .fr-list-item-operate-fixed{position:absolute;right:8px}.fr-list-card .fr-list-add-btn{padding:0 8px}.fr-table-list{margin-bottom:24px}.fr-table-list .ant-form-item{margin-bottom:0}.fr-table-list .ant-form-item-label,.fr-table-list .ant-form-item-explain-error{display:none}.fr-table-list .fr-list-item-operate{gap:0!important}.fr-table-list-no-popover .ant-table-tbody .ant-table-cell{padding:24px 8px 0!important}.fr-table-list-no-popover .ant-form-item{margin-bottom:24px}.fr-table-list-no-popover .ant-form-item-explain-error{display:block;font-size:10px}.fr-list-drawer{margin-bottom:24px}.fr-list-drawer-table-header{width:100%;display:flex;justify-content:right;align-items:center;margin-bottom:10px}.fr-list-drawer .ant-form-item{margin-bottom:0}.fr-list-drawer .fr-list-item-operate{gap:0!important}.fr-virtual-list{margin-bottom:12px}.fr-virtual-list .ant-form-item{margin-bottom:0}.fr-virtual-list .ant-form-item-label,.fr-virtual-list .ant-form-item-explain-error{display:none}.fr-virtual-list .fr-list-item-operate{gap:0!important}.fr-popover-error .ant-popover-inner-content{color:#ff4d4f!important}.fr-virtual-list-no-popover .ant-table-tbody .ant-table-cell{padding:24px 8px 0!important}.fr-virtual-list-no-popover .ant-form-item{margin-bottom:24px}.fr-virtual-list-no-popover .ant-form-item-explain-error{display:block;font-size:10px}.fr-void-title{height:24px;color:#000000e0;font-weight:600;font-size:16px;line-height:24px}.fr-search{width:100%;background:#fff;padding:24px 24px 0 16px;margin-bottom:16px;box-sizing:border-box;position:relative}.fr-search .search-action-col{flex:1;display:flex;justify-content:flex-end;align-items:baseline;height:56px}.fr-search .search-action-fixed{position:absolute;right:0;bottom:0;background-color:#fff;padding-right:24px!important}.fr-search .search-action-column{height:auto}.fr-search .fr-form>.ant-row{align-items:center}.fr-column-search{padding-left:24px}")),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
2
|
-
(function(a,s){typeof exports=="object"&&typeof module<"u"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(a=typeof globalThis<"u"?globalThis:a||self,s(a["@pdfme/ui"]={}))})(this,function(exports){"use strict";var kf=Object.defineProperty;var wu=a=>{throw TypeError(a)};var Ff=(a,s,c)=>s in a?kf(a,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[s]=c;var yr=(a,s,c)=>Ff(a,typeof s!="symbol"?s+"":s,c),Ws=(a,s,c)=>s.has(a)||wu("Cannot "+c);var He=(a,s,c)=>(Ws(a,s,"read from private field"),c?c.call(a):s.get(a)),vt=(a,s,c)=>s.has(a)?wu("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(a):s.set(a,c),Ct=(a,s,c,u)=>(Ws(a,s,"write to private field"),u?u.call(a,c):s.set(a,c),c),it=(a,s,c)=>(Ws(a,s,"access private method"),c);var hi=(a,s,c,u)=>({set _(d){Ct(a,s,d,c)},get _(){return He(a,s,u)}});function _mergeNamespaces(a,s){for(var c=0;c<s.length;c++){const u=s[c];if(typeof u!="string"&&!Array.isArray(u)){for(const d in u)if(d!=="default"&&!(d in a)){const p=Object.getOwnPropertyDescriptor(u,d);p&&Object.defineProperty(a,d,p.get?p:{enumerable:!0,get:()=>u[d]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function getAugmentedNamespace(a){if(a
|
2
|
+
(function(a,s){typeof exports=="object"&&typeof module<"u"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(a=typeof globalThis<"u"?globalThis:a||self,s(a["@pdfme/ui"]={}))})(this,function(exports){"use strict";var kf=Object.defineProperty;var wu=a=>{throw TypeError(a)};var Ff=(a,s,c)=>s in a?kf(a,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[s]=c;var yr=(a,s,c)=>Ff(a,typeof s!="symbol"?s+"":s,c),Ws=(a,s,c)=>s.has(a)||wu("Cannot "+c);var He=(a,s,c)=>(Ws(a,s,"read from private field"),c?c.call(a):s.get(a)),vt=(a,s,c)=>s.has(a)?wu("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(a):s.set(a,c),Ct=(a,s,c,u)=>(Ws(a,s,"write to private field"),u?u.call(a,c):s.set(a,c),c),it=(a,s,c)=>(Ws(a,s,"access private method"),c);var hi=(a,s,c,u)=>({set _(d){Ct(a,s,d,c)},get _(){return He(a,s,u)}});function _mergeNamespaces(a,s){for(var c=0;c<s.length;c++){const u=s[c];if(typeof u!="string"&&!Array.isArray(u)){for(const d in u)if(d!=="default"&&!(d in a)){const p=Object.getOwnPropertyDescriptor(u,d);p&&Object.defineProperty(a,d,p.get?p:{enumerable:!0,get:()=>u[d]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function getAugmentedNamespace(a){if(Object.prototype.hasOwnProperty.call(a,"__esModule"))return a;var s=a.default;if(typeof s=="function"){var c=function u(){return this instanceof u?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};c.prototype=s.prototype}else c={};return Object.defineProperty(c,"__esModule",{value:!0}),Object.keys(a).forEach(function(u){var d=Object.getOwnPropertyDescriptor(a,u);Object.defineProperty(c,u,d.get?d:{enumerable:!0,get:function(){return a[u]}})}),c}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/*
|
3
3
|
object-assign
|
4
4
|
(c) Sindre Sorhus
|
5
5
|
@license MIT
|
@@ -48,14 +48,14 @@ ERROR MESSAGE: ${p.message}
|
|
48
48
|
`);throw Error(`[@pdfme/common] Invalid argument:
|
49
49
|
--------------------------
|
50
50
|
${d}`)}}if(a&&typeof a=="object"&&"template"in a&&"options"in a){const{template:c,options:u}=a;u&&u.font&&checkFont({font:u.font,template:c})}if(a&&typeof a=="object"&&"template"in a&&"plugins"in a){const{template:c,plugins:u}=a;u&&checkPlugins({plugins:u,template:c})}},checkInputs=a=>checkProps(a,Inputs),checkUIOptions=a=>checkProps(a,UIOptions),checkPreviewProps=a=>checkProps(a,PreviewProps),checkDesignerProps=a=>checkProps(a,DesignerProps),checkUIProps=a=>{typeof a=="object"&&a!==null&&"template"in a&&migrateTemplate(a.template),checkProps(a,UIProps)},checkTemplate=a=>{migrateTemplate(a),checkProps(a,Template)};class LayoutNode{constructor({width:s=0,height:c=0}={}){Object.defineProperty(this,"index",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"schema",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"padding",{enumerable:!0,configurable:!0,writable:!0,value:[0,0,0,0]}),Object.defineProperty(this,"position",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),this.width=s,this.height=c}setIndex(s){this.index=s}setSchema(s){this.schema=s}setWidth(s){this.width=s}setHeight(s){this.height=s}setPadding(s){this.padding=s}setPosition(s){this.position=s}insertChild(s){const c=this.getChildCount();s.setIndex(c),this.children.splice(c,0,s)}getChildCount(){return this.children.length}getChild(s){return this.children[s]}}function createPage(a){const s=new LayoutNode({...a});return s.setPadding(a.padding),s}function createNode(a){const{position:s,width:c,height:u,schema:d}=a,p=new LayoutNode({width:c,height:u});return p.setPosition(s),p.setSchema(d),p}function resortChildren(a,s){a.children=a.children.sort((c,u)=>{var v,A;const d=s.get(((v=c.schema)==null?void 0:v.name)??""),p=s.get(((A=u.schema)==null?void 0:A.name)??"");if(d===void 0||p===void 0)throw new Error("[@pdfme/common] order is not defined");return d-p}).map((c,u)=>(c.setIndex(u),c))}async function createOnePage(a){const{basePdf:s,schemaPage:c,orderMap:u,input:d,options:p,_cache:v,getDynamicHeights:A}=a,b=createPage(s),g=[],x=cloneDeep$1(c).sort((m,C)=>m.position.y-C.position.y),y=new Map;for(const m of x){const{position:C,width:S}=m,w={schema:m,basePdf:s,options:p,_cache:v},I=(m.readOnly?m.content:d==null?void 0:d[m.name])||"",P=await A(I,w),$=P.reduce((E,R)=>E+R,0),_=m.height;$!==_&&y.set(C.y+_,$-_),P.forEach((E,R)=>{let T=m.position.y+P.reduce((M,D,O)=>O<R?M+D:M,0);for(const[M,D]of y.entries())M<=m.position.y&&(T+=D);const B=createNode({schema:m,position:{...C,y:T},width:S,height:E});g.push(T+E+s.padding[2]),b.insertChild(B)})}const f=Math.max(...g,s.height-s.padding[2]);return b.setHeight(f),resortChildren(b,u),b}function breakIntoPages(a){const{longPage:s,orderMap:c,basePdf:u}=a,d=[createPage(u)],[p,,v]=u.padding,A=[],b=y=>u.height-v-(y>0?p:0),g=(y,f)=>{var C;const m=y-f*(u.height-p-v);for(;d.length<=f;)d[f]||(d.push(createPage(u)),A.push({page:f,value:(m-p)*-1}));return m+(((C=A.find(S=>S.page===f))==null?void 0:C.value)||0)},x=s.children.sort((y,f)=>y.position.y-f.position.y);for(let y=0;y<x.length;y++){const{schema:f,position:m,height:C,width:S}=x[y],{y:w,x:I}=m;let P=Math.floor(w/b(d.length-1)),$=g(w,P);if($+C>u.height-v&&(P++,$=g(w,P)),!f)throw new Error("[@pdfme/common] schema is undefined");const _=createNode({schema:f,position:{x:I,y:$},width:S,height:C});d[P].insertChild(_)}return d.forEach(y=>resortChildren(y,c)),d}function createNewTemplate(a,s){const c={schemas:Array.from({length:a.length},()=>[]),basePdf:s},u=new Map;return cloneDeep$1(a).forEach((d,p)=>{d.children.forEach(v=>{const{schema:A}=v;if(!A)throw new Error("[@pdfme/common] schema is undefined");const b=A.name;u.has(b)||u.set(b,[]),u.get(b).push(v);const g=d.children.filter(y=>{var f;return((f=y.schema)==null?void 0:f.name)===b}),x=u.get(b).length-g.length;if(g.length>0){if(!g[0].schema)throw new Error("[@pdfme/common] schema is undefined");const y=g[0].schema,f=g.reduce((w,I)=>w+I.height,0),m=g[0].position;y.__bodyRange={start:Math.max(x-1,0),end:x+g.length-1},y.__isSplit=x>0;const C=Object.assign({},y,{position:m,height:f}),S=c.schemas[p].findIndex(w=>w.name===b);S!==-1?c.schemas[p][S]=C:c.schemas[p].push(C)}})}),c}const getDynamicTemplate=async a=>{const{template:s}=a;if(!isBlankPdf(s.basePdf))return s;const c=s.basePdf,u=[];for(const d of s.schemas){const p=new Map(d.map((b,g)=>[b.name,g])),v=await createOnePage({basePdf:c,schemaPage:d,orderMap:p,...a}),A=breakIntoPages({longPage:v,basePdf:c,orderMap:p});u.push(...A)}return createNewTemplate(u,s.basePdf)};var astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],nonASCIIidentifierChars="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",keywords$1={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");function isInAstralSet(a,s){for(var c=65536,u=0;u<s.length;u+=2){if(c+=s[u],c>a)return!1;if(c+=s[u+1],c>=a)return!0}return!1}function isIdentifierStart(a,s){return a<65?a===36:a<91?!0:a<97?a===95:a<123?!0:a<=65535?a>=170&&nonASCIIidentifierStart.test(String.fromCharCode(a)):s===!1?!1:isInAstralSet(a,astralIdentifierStartCodes)}function isIdentifierChar(a,s){return a<48?a===36:a<58?!0:a<65?!1:a<91?!0:a<97?a===95:a<123?!0:a<=65535?a>=170&&nonASCIIidentifier.test(String.fromCharCode(a)):s===!1?!1:isInAstralSet(a,astralIdentifierStartCodes)||isInAstralSet(a,astralIdentifierCodes)}var TokenType=function(s,c){c===void 0&&(c={}),this.label=s,this.keyword=c.keyword,this.beforeExpr=!!c.beforeExpr,this.startsExpr=!!c.startsExpr,this.isLoop=!!c.isLoop,this.isAssign=!!c.isAssign,this.prefix=!!c.prefix,this.postfix=!!c.postfix,this.binop=c.binop||null,this.updateContext=null};function binop(a,s){return new TokenType(a,{beforeExpr:!0,binop:s})}var beforeExpr={beforeExpr:!0},startsExpr={startsExpr:!0},keywords={};function kw(a,s){return s===void 0&&(s={}),s.keyword=a,keywords[a]=new TokenType(a,s)}var types$1={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),privateId:new TokenType("privateId",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(a){return a===10||a===13||a===8232||a===8233}function nextLineBreak(a,s,c){c===void 0&&(c=a.length);for(var u=s;u<c;u++){var d=a.charCodeAt(u);if(isNewLine(d))return u<c-1&&d===13&&a.charCodeAt(u+1)===10?u+2:u+1}return-1}var nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref$1=Object.prototype,hasOwnProperty$e=ref$1.hasOwnProperty,toString$1=ref$1.toString,hasOwn=Object.hasOwn||function(a,s){return hasOwnProperty$e.call(a,s)},isArray$3=Array.isArray||function(a){return toString$1.call(a)==="[object Array]"},regexpCache=Object.create(null);function wordsRegexp(a){return regexpCache[a]||(regexpCache[a]=new RegExp("^(?:"+a.replace(/ /g,"|")+")$"))}function codePointToString(a){return a<=65535?String.fromCharCode(a):(a-=65536,String.fromCharCode((a>>10)+55296,(a&1023)+56320))}var loneSurrogate=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Position=function(s,c){this.line=s,this.column=c};Position.prototype.offset=function(s){return new Position(this.line,this.column+s)};var SourceLocation=function(s,c,u){this.start=c,this.end=u,s.sourceFile!==null&&(this.source=s.sourceFile)};function getLineInfo(a,s){for(var c=1,u=0;;){var d=nextLineBreak(a,u,s);if(d<0)return new Position(c,s-u);++c,u=d}}var defaultOptions$1={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},warnedAboutEcmaVersion=!1;function getOptions(a){var s={};for(var c in defaultOptions$1)s[c]=a&&hasOwn(a,c)?a[c]:defaultOptions$1[c];if(s.ecmaVersion==="latest"?s.ecmaVersion=1e8:s.ecmaVersion==null?(!warnedAboutEcmaVersion&&typeof console=="object"&&console.warn&&(warnedAboutEcmaVersion=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
51
|
-
Defaulting to 2020, but this will stop working in the future.`)),s.ecmaVersion=11):s.ecmaVersion>=2015&&(s.ecmaVersion-=2009),s.allowReserved==null&&(s.allowReserved=s.ecmaVersion<5),(!a||a.allowHashBang==null)&&(s.allowHashBang=s.ecmaVersion>=14),isArray$3(s.onToken)){var u=s.onToken;s.onToken=function(d){return u.push(d)}}return isArray$3(s.onComment)&&(s.onComment=pushComment(s,s.onComment)),s}function pushComment(a,s){return function(c,u,d,p,v,A){var b={type:c?"Block":"Line",value:u,start:d,end:p};a.locations&&(b.loc=new SourceLocation(this,v,A)),a.ranges&&(b.range=[d,p]),s.push(b)}}var SCOPE_TOP=1,SCOPE_FUNCTION=2,SCOPE_ASYNC=4,SCOPE_GENERATOR=8,SCOPE_ARROW=16,SCOPE_SIMPLE_CATCH=32,SCOPE_SUPER=64,SCOPE_DIRECT_SUPER=128,SCOPE_CLASS_STATIC_BLOCK=256,SCOPE_VAR=SCOPE_TOP|SCOPE_FUNCTION|SCOPE_CLASS_STATIC_BLOCK;function functionFlags(a,s){return SCOPE_FUNCTION|(a?SCOPE_ASYNC:0)|(s?SCOPE_GENERATOR:0)}var BIND_NONE=0,BIND_VAR=1,BIND_LEXICAL=2,BIND_FUNCTION=3,BIND_SIMPLE_CATCH=4,BIND_OUTSIDE=5,Parser=function(s,c,u){this.options=s=getOptions(s),this.sourceFile=s.sourceFile,this.keywords=wordsRegexp(keywords$1[s.ecmaVersion>=6?6:s.sourceType==="module"?"5module":5]);var d="";s.allowReserved!==!0&&(d=reservedWords[s.ecmaVersion>=6?6:s.ecmaVersion===5?5:3],s.sourceType==="module"&&(d+=" await")),this.reservedWords=wordsRegexp(d);var p=(d?d+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(p),this.reservedWordsStrictBind=wordsRegexp(p+" "+reservedWords.strictBind),this.input=String(c),this.containsEsc=!1,u?(this.pos=u,this.lineStart=this.input.lastIndexOf(`
|
52
|
-
`,u-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=types$1.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=s.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&s.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(SCOPE_TOP),this.regexpState=null,this.privateNameStack=[]},prototypeAccessors={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Parser.prototype.parse=function(){var s=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(s)},prototypeAccessors.inFunction.get=function(){return(this.currentVarScope().flags&SCOPE_FUNCTION)>0},prototypeAccessors.inGenerator.get=function(){return(this.currentVarScope().flags&SCOPE_GENERATOR)>0&&!this.currentVarScope().inClassFieldInit},prototypeAccessors.inAsync.get=function(){return(this.currentVarScope().flags&SCOPE_ASYNC)>0&&!this.currentVarScope().inClassFieldInit},prototypeAccessors.canAwait.get=function(){for(var a=this.scopeStack.length-1;a>=0;a--){var s=this.scopeStack[a];if(s.inClassFieldInit||s.flags&SCOPE_CLASS_STATIC_BLOCK)return!1;if(s.flags&SCOPE_FUNCTION)return(s.flags&SCOPE_ASYNC)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},prototypeAccessors.allowSuper.get=function(){var a=this.currentThisScope(),s=a.flags,c=a.inClassFieldInit;return(s&SCOPE_SUPER)>0||c||this.options.allowSuperOutsideMethod},prototypeAccessors.allowDirectSuper.get=function(){return(this.currentThisScope().flags&SCOPE_DIRECT_SUPER)>0},prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},prototypeAccessors.allowNewDotTarget.get=function(){var a=this.currentThisScope(),s=a.flags,c=a.inClassFieldInit;return(s&(SCOPE_FUNCTION|SCOPE_CLASS_STATIC_BLOCK))>0||c},prototypeAccessors.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&SCOPE_CLASS_STATIC_BLOCK)>0},Parser.extend=function(){for(var s=[],c=arguments.length;c--;)s[c]=arguments[c];for(var u=this,d=0;d<s.length;d++)u=s[d](u);return u},Parser.parse=function(s,c){return new this(c,s).parse()},Parser.parseExpressionAt=function(s,c,u){var d=new this(u,s,c);return d.nextToken(),d.parseExpression()},Parser.tokenizer=function(s,c){return new this(c,s)},Object.defineProperties(Parser.prototype,prototypeAccessors);var pp$9=Parser.prototype,literal=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;pp$9.strictDirective=function(a){if(this.options.ecmaVersion<5)return!1;for(;;){skipWhiteSpace.lastIndex=a,a+=skipWhiteSpace.exec(this.input)[0].length;var s=literal.exec(this.input.slice(a));if(!s)return!1;if((s[1]||s[2])==="use strict"){skipWhiteSpace.lastIndex=a+s[0].length;var c=skipWhiteSpace.exec(this.input),u=c.index+c[0].length,d=this.input.charAt(u);return d===";"||d==="}"||lineBreak.test(c[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(d)||d==="!"&&this.input.charAt(u+1)==="=")}a+=s[0].length,skipWhiteSpace.lastIndex=a,a+=skipWhiteSpace.exec(this.input)[0].length,this.input[a]===";"&&a++}},pp$9.eat=function(a){return this.type===a?(this.next(),!0):!1},pp$9.isContextual=function(a){return this.type===types$1.name&&this.value===a&&!this.containsEsc},pp$9.eatContextual=function(a){return this.isContextual(a)?(this.next(),!0):!1},pp$9.expectContextual=function(a){this.eatContextual(a)||this.unexpected()},pp$9.canInsertSemicolon=function(){return this.type===types$1.eof||this.type===types$1.braceR||lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$9.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},pp$9.semicolon=function(){!this.eat(types$1.semi)&&!this.insertSemicolon()&&this.unexpected()},pp$9.afterTrailingComma=function(a,s){if(this.type===a)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),s||this.next(),!0},pp$9.expect=function(a){this.eat(a)||this.unexpected()},pp$9.unexpected=function(a){this.raise(a??this.start,"Unexpected token")};var DestructuringErrors=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};pp$9.checkPatternErrors=function(a,s){if(a){a.trailingComma>-1&&this.raiseRecoverable(a.trailingComma,"Comma is not permitted after the rest element");var c=s?a.parenthesizedAssign:a.parenthesizedBind;c>-1&&this.raiseRecoverable(c,s?"Assigning to rvalue":"Parenthesized pattern")}},pp$9.checkExpressionErrors=function(a,s){if(!a)return!1;var c=a.shorthandAssign,u=a.doubleProto;if(!s)return c>=0||u>=0;c>=0&&this.raise(c,"Shorthand property assignments are valid only in destructuring patterns"),u>=0&&this.raiseRecoverable(u,"Redefinition of __proto__ property")},pp$9.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},pp$9.isSimpleAssignTarget=function(a){return a.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(a.expression):a.type==="Identifier"||a.type==="MemberExpression"};var pp$8=Parser.prototype;pp$8.parseTopLevel=function(a){var s=Object.create(null);for(a.body||(a.body=[]);this.type!==types$1.eof;){var c=this.parseStatement(null,!0,s);a.body.push(c)}if(this.inModule)for(var u=0,d=Object.keys(this.undefinedExports);u<d.length;u+=1){var p=d[u];this.raiseRecoverable(this.undefinedExports[p].start,"Export '"+p+"' is not defined")}return this.adaptDirectivePrologue(a.body),this.next(),a.sourceType=this.options.sourceType,this.finishNode(a,"Program")};var loopLabel={kind:"loop"},switchLabel={kind:"switch"};pp$8.isLet=function(a){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;skipWhiteSpace.lastIndex=this.pos;var s=skipWhiteSpace.exec(this.input),c=this.pos+s[0].length,u=this.input.charCodeAt(c);if(u===91||u===92)return!0;if(a)return!1;if(u===123||u>55295&&u<56320)return!0;if(isIdentifierStart(u,!0)){for(var d=c+1;isIdentifierChar(u=this.input.charCodeAt(d),!0);)++d;if(u===92||u>55295&&u<56320)return!0;var p=this.input.slice(c,d);if(!keywordRelationalOperator.test(p))return!0}return!1},pp$8.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;skipWhiteSpace.lastIndex=this.pos;var a=skipWhiteSpace.exec(this.input),s=this.pos+a[0].length,c;return!lineBreak.test(this.input.slice(this.pos,s))&&this.input.slice(s,s+8)==="function"&&(s+8===this.input.length||!(isIdentifierChar(c=this.input.charCodeAt(s+8))||c>55295&&c<56320))},pp$8.parseStatement=function(a,s,c){var u=this.type,d=this.startNode(),p;switch(this.isLet(a)&&(u=types$1._var,p="let"),u){case types$1._break:case types$1._continue:return this.parseBreakContinueStatement(d,u.keyword);case types$1._debugger:return this.parseDebuggerStatement(d);case types$1._do:return this.parseDoStatement(d);case types$1._for:return this.parseForStatement(d);case types$1._function:return a&&(this.strict||a!=="if"&&a!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(d,!1,!a);case types$1._class:return a&&this.unexpected(),this.parseClass(d,!0);case types$1._if:return this.parseIfStatement(d);case types$1._return:return this.parseReturnStatement(d);case types$1._switch:return this.parseSwitchStatement(d);case types$1._throw:return this.parseThrowStatement(d);case types$1._try:return this.parseTryStatement(d);case types$1._const:case types$1._var:return p=p||this.value,a&&p!=="var"&&this.unexpected(),this.parseVarStatement(d,p);case types$1._while:return this.parseWhileStatement(d);case types$1._with:return this.parseWithStatement(d);case types$1.braceL:return this.parseBlock(!0,d);case types$1.semi:return this.parseEmptyStatement(d);case types$1._export:case types$1._import:if(this.options.ecmaVersion>10&&u===types$1._import){skipWhiteSpace.lastIndex=this.pos;var v=skipWhiteSpace.exec(this.input),A=this.pos+v[0].length,b=this.input.charCodeAt(A);if(b===40||b===46)return this.parseExpressionStatement(d,this.parseExpression())}return this.options.allowImportExportEverywhere||(s||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),u===types$1._import?this.parseImport(d):this.parseExport(d,c);default:if(this.isAsyncFunction())return a&&this.unexpected(),this.next(),this.parseFunctionStatement(d,!0,!a);var g=this.value,x=this.parseExpression();return u===types$1.name&&x.type==="Identifier"&&this.eat(types$1.colon)?this.parseLabeledStatement(d,g,x,a):this.parseExpressionStatement(d,x)}},pp$8.parseBreakContinueStatement=function(a,s){var c=s==="break";this.next(),this.eat(types$1.semi)||this.insertSemicolon()?a.label=null:this.type!==types$1.name?this.unexpected():(a.label=this.parseIdent(),this.semicolon());for(var u=0;u<this.labels.length;++u){var d=this.labels[u];if((a.label==null||d.name===a.label.name)&&(d.kind!=null&&(c||d.kind==="loop")||a.label&&c))break}return u===this.labels.length&&this.raise(a.start,"Unsyntactic "+s),this.finishNode(a,c?"BreakStatement":"ContinueStatement")},pp$8.parseDebuggerStatement=function(a){return this.next(),this.semicolon(),this.finishNode(a,"DebuggerStatement")},pp$8.parseDoStatement=function(a){return this.next(),this.labels.push(loopLabel),a.body=this.parseStatement("do"),this.labels.pop(),this.expect(types$1._while),a.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(types$1.semi):this.semicolon(),this.finishNode(a,"DoWhileStatement")},pp$8.parseForStatement=function(a){this.next();var s=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(loopLabel),this.enterScope(0),this.expect(types$1.parenL),this.type===types$1.semi)return s>-1&&this.unexpected(s),this.parseFor(a,null);var c=this.isLet();if(this.type===types$1._var||this.type===types$1._const||c){var u=this.startNode(),d=c?"let":this.value;return this.next(),this.parseVar(u,!0,d),this.finishNode(u,"VariableDeclaration"),(this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&u.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===types$1._in?s>-1&&this.unexpected(s):a.await=s>-1),this.parseForIn(a,u)):(s>-1&&this.unexpected(s),this.parseFor(a,u))}var p=this.isContextual("let"),v=!1,A=this.containsEsc,b=new DestructuringErrors,g=this.start,x=s>-1?this.parseExprSubscripts(b,"await"):this.parseExpression(!0,b);return this.type===types$1._in||(v=this.options.ecmaVersion>=6&&this.isContextual("of"))?(s>-1?(this.type===types$1._in&&this.unexpected(s),a.await=!0):v&&this.options.ecmaVersion>=8&&(x.start===g&&!A&&x.type==="Identifier"&&x.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(a.await=!1)),p&&v&&this.raise(x.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(x,!1,b),this.checkLValPattern(x),this.parseForIn(a,x)):(this.checkExpressionErrors(b,!0),s>-1&&this.unexpected(s),this.parseFor(a,x))},pp$8.parseFunctionStatement=function(a,s,c){return this.next(),this.parseFunction(a,FUNC_STATEMENT|(c?0:FUNC_HANGING_STATEMENT),!1,s)},pp$8.parseIfStatement=function(a){return this.next(),a.test=this.parseParenExpression(),a.consequent=this.parseStatement("if"),a.alternate=this.eat(types$1._else)?this.parseStatement("if"):null,this.finishNode(a,"IfStatement")},pp$8.parseReturnStatement=function(a){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(types$1.semi)||this.insertSemicolon()?a.argument=null:(a.argument=this.parseExpression(),this.semicolon()),this.finishNode(a,"ReturnStatement")},pp$8.parseSwitchStatement=function(a){this.next(),a.discriminant=this.parseParenExpression(),a.cases=[],this.expect(types$1.braceL),this.labels.push(switchLabel),this.enterScope(0);for(var s,c=!1;this.type!==types$1.braceR;)if(this.type===types$1._case||this.type===types$1._default){var u=this.type===types$1._case;s&&this.finishNode(s,"SwitchCase"),a.cases.push(s=this.startNode()),s.consequent=[],this.next(),u?s.test=this.parseExpression():(c&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),c=!0,s.test=null),this.expect(types$1.colon)}else s||this.unexpected(),s.consequent.push(this.parseStatement(null));return this.exitScope(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(a,"SwitchStatement")},pp$8.parseThrowStatement=function(a){return this.next(),lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),a.argument=this.parseExpression(),this.semicolon(),this.finishNode(a,"ThrowStatement")};var empty$1=[];pp$8.parseCatchClauseParam=function(){var a=this.parseBindingAtom(),s=a.type==="Identifier";return this.enterScope(s?SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(a,s?BIND_SIMPLE_CATCH:BIND_LEXICAL),this.expect(types$1.parenR),a},pp$8.parseTryStatement=function(a){if(this.next(),a.block=this.parseBlock(),a.handler=null,this.type===types$1._catch){var s=this.startNode();this.next(),this.eat(types$1.parenL)?s.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),s.param=null,this.enterScope(0)),s.body=this.parseBlock(!1),this.exitScope(),a.handler=this.finishNode(s,"CatchClause")}return a.finalizer=this.eat(types$1._finally)?this.parseBlock():null,!a.handler&&!a.finalizer&&this.raise(a.start,"Missing catch or finally clause"),this.finishNode(a,"TryStatement")},pp$8.parseVarStatement=function(a,s,c){return this.next(),this.parseVar(a,!1,s,c),this.semicolon(),this.finishNode(a,"VariableDeclaration")},pp$8.parseWhileStatement=function(a){return this.next(),a.test=this.parseParenExpression(),this.labels.push(loopLabel),a.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(a,"WhileStatement")},pp$8.parseWithStatement=function(a){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),a.object=this.parseParenExpression(),a.body=this.parseStatement("with"),this.finishNode(a,"WithStatement")},pp$8.parseEmptyStatement=function(a){return this.next(),this.finishNode(a,"EmptyStatement")},pp$8.parseLabeledStatement=function(a,s,c,u){for(var d=0,p=this.labels;d<p.length;d+=1){var v=p[d];v.name===s&&this.raise(c.start,"Label '"+s+"' is already declared")}for(var A=this.type.isLoop?"loop":this.type===types$1._switch?"switch":null,b=this.labels.length-1;b>=0;b--){var g=this.labels[b];if(g.statementStart===a.start)g.statementStart=this.start,g.kind=A;else break}return this.labels.push({name:s,kind:A,statementStart:this.start}),a.body=this.parseStatement(u?u.indexOf("label")===-1?u+"label":u:"label"),this.labels.pop(),a.label=c,this.finishNode(a,"LabeledStatement")},pp$8.parseExpressionStatement=function(a,s){return a.expression=s,this.semicolon(),this.finishNode(a,"ExpressionStatement")},pp$8.parseBlock=function(a,s,c){for(a===void 0&&(a=!0),s===void 0&&(s=this.startNode()),s.body=[],this.expect(types$1.braceL),a&&this.enterScope(0);this.type!==types$1.braceR;){var u=this.parseStatement(null);s.body.push(u)}return c&&(this.strict=!1),this.next(),a&&this.exitScope(),this.finishNode(s,"BlockStatement")},pp$8.parseFor=function(a,s){return a.init=s,this.expect(types$1.semi),a.test=this.type===types$1.semi?null:this.parseExpression(),this.expect(types$1.semi),a.update=this.type===types$1.parenR?null:this.parseExpression(),this.expect(types$1.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,"ForStatement")},pp$8.parseForIn=function(a,s){var c=this.type===types$1._in;return this.next(),s.type==="VariableDeclaration"&&s.declarations[0].init!=null&&(!c||this.options.ecmaVersion<8||this.strict||s.kind!=="var"||s.declarations[0].id.type!=="Identifier")&&this.raise(s.start,(c?"for-in":"for-of")+" loop variable declaration may not have an initializer"),a.left=s,a.right=c?this.parseExpression():this.parseMaybeAssign(),this.expect(types$1.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,c?"ForInStatement":"ForOfStatement")},pp$8.parseVar=function(a,s,c,u){for(a.declarations=[],a.kind=c;;){var d=this.startNode();if(this.parseVarId(d,c),this.eat(types$1.eq)?d.init=this.parseMaybeAssign(s):!u&&c==="const"&&!(this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!u&&d.id.type!=="Identifier"&&!(s&&(this.type===types$1._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):d.init=null,a.declarations.push(this.finishNode(d,"VariableDeclarator")),!this.eat(types$1.comma))break}return a},pp$8.parseVarId=function(a,s){a.id=this.parseBindingAtom(),this.checkLValPattern(a.id,s==="var"?BIND_VAR:BIND_LEXICAL,!1)};var FUNC_STATEMENT=1,FUNC_HANGING_STATEMENT=2,FUNC_NULLABLE_ID=4;pp$8.parseFunction=function(a,s,c,u,d){this.initFunction(a),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!u)&&(this.type===types$1.star&&s&FUNC_HANGING_STATEMENT&&this.unexpected(),a.generator=this.eat(types$1.star)),this.options.ecmaVersion>=8&&(a.async=!!u),s&FUNC_STATEMENT&&(a.id=s&FUNC_NULLABLE_ID&&this.type!==types$1.name?null:this.parseIdent(),a.id&&!(s&FUNC_HANGING_STATEMENT)&&this.checkLValSimple(a.id,this.strict||a.generator||a.async?this.treatFunctionsAsVar?BIND_VAR:BIND_LEXICAL:BIND_FUNCTION));var p=this.yieldPos,v=this.awaitPos,A=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(a.async,a.generator)),s&FUNC_STATEMENT||(a.id=this.type===types$1.name?this.parseIdent():null),this.parseFunctionParams(a),this.parseFunctionBody(a,c,!1,d),this.yieldPos=p,this.awaitPos=v,this.awaitIdentPos=A,this.finishNode(a,s&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")},pp$8.parseFunctionParams=function(a){this.expect(types$1.parenL),a.params=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},pp$8.parseClass=function(a,s){this.next();var c=this.strict;this.strict=!0,this.parseClassId(a,s),this.parseClassSuper(a);var u=this.enterClassBody(),d=this.startNode(),p=!1;for(d.body=[],this.expect(types$1.braceL);this.type!==types$1.braceR;){var v=this.parseClassElement(a.superClass!==null);v&&(d.body.push(v),v.type==="MethodDefinition"&&v.kind==="constructor"?(p&&this.raiseRecoverable(v.start,"Duplicate constructor in the same class"),p=!0):v.key&&v.key.type==="PrivateIdentifier"&&isPrivateNameConflicted(u,v)&&this.raiseRecoverable(v.key.start,"Identifier '#"+v.key.name+"' has already been declared"))}return this.strict=c,this.next(),a.body=this.finishNode(d,"ClassBody"),this.exitClassBody(),this.finishNode(a,s?"ClassDeclaration":"ClassExpression")},pp$8.parseClassElement=function(a){if(this.eat(types$1.semi))return null;var s=this.options.ecmaVersion,c=this.startNode(),u="",d=!1,p=!1,v="method",A=!1;if(this.eatContextual("static")){if(s>=13&&this.eat(types$1.braceL))return this.parseClassStaticBlock(c),c;this.isClassElementNameStart()||this.type===types$1.star?A=!0:u="static"}if(c.static=A,!u&&s>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===types$1.star)&&!this.canInsertSemicolon()?p=!0:u="async"),!u&&(s>=9||!p)&&this.eat(types$1.star)&&(d=!0),!u&&!p&&!d){var b=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?v=b:u=b)}if(u?(c.computed=!1,c.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),c.key.name=u,this.finishNode(c.key,"Identifier")):this.parseClassElementName(c),s<13||this.type===types$1.parenL||v!=="method"||d||p){var g=!c.static&&checkKeyName(c,"constructor"),x=g&&a;g&&v!=="method"&&this.raise(c.key.start,"Constructor can't have get/set modifier"),c.kind=g?"constructor":v,this.parseClassMethod(c,d,p,x)}else this.parseClassField(c);return c},pp$8.isClassElementNameStart=function(){return this.type===types$1.name||this.type===types$1.privateId||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword},pp$8.parseClassElementName=function(a){this.type===types$1.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),a.computed=!1,a.key=this.parsePrivateIdent()):this.parsePropertyName(a)},pp$8.parseClassMethod=function(a,s,c,u){var d=a.key;a.kind==="constructor"?(s&&this.raise(d.start,"Constructor can't be a generator"),c&&this.raise(d.start,"Constructor can't be an async method")):a.static&&checkKeyName(a,"prototype")&&this.raise(d.start,"Classes may not have a static property named prototype");var p=a.value=this.parseMethod(s,c,u);return a.kind==="get"&&p.params.length!==0&&this.raiseRecoverable(p.start,"getter should have no params"),a.kind==="set"&&p.params.length!==1&&this.raiseRecoverable(p.start,"setter should have exactly one param"),a.kind==="set"&&p.params[0].type==="RestElement"&&this.raiseRecoverable(p.params[0].start,"Setter cannot use rest params"),this.finishNode(a,"MethodDefinition")},pp$8.parseClassField=function(a){if(checkKeyName(a,"constructor")?this.raise(a.key.start,"Classes can't have a field named 'constructor'"):a.static&&checkKeyName(a,"prototype")&&this.raise(a.key.start,"Classes can't have a static field named 'prototype'"),this.eat(types$1.eq)){var s=this.currentThisScope(),c=s.inClassFieldInit;s.inClassFieldInit=!0,a.value=this.parseMaybeAssign(),s.inClassFieldInit=c}else a.value=null;return this.semicolon(),this.finishNode(a,"PropertyDefinition")},pp$8.parseClassStaticBlock=function(a){a.body=[];var s=this.labels;for(this.labels=[],this.enterScope(SCOPE_CLASS_STATIC_BLOCK|SCOPE_SUPER);this.type!==types$1.braceR;){var c=this.parseStatement(null);a.body.push(c)}return this.next(),this.exitScope(),this.labels=s,this.finishNode(a,"StaticBlock")},pp$8.parseClassId=function(a,s){this.type===types$1.name?(a.id=this.parseIdent(),s&&this.checkLValSimple(a.id,BIND_LEXICAL,!1)):(s===!0&&this.unexpected(),a.id=null)},pp$8.parseClassSuper=function(a){a.superClass=this.eat(types$1._extends)?this.parseExprSubscripts(null,!1):null},pp$8.enterClassBody=function(){var a={declared:Object.create(null),used:[]};return this.privateNameStack.push(a),a.declared},pp$8.exitClassBody=function(){var a=this.privateNameStack.pop(),s=a.declared,c=a.used;if(this.options.checkPrivateFields)for(var u=this.privateNameStack.length,d=u===0?null:this.privateNameStack[u-1],p=0;p<c.length;++p){var v=c[p];hasOwn(s,v.name)||(d?d.used.push(v):this.raiseRecoverable(v.start,"Private field '#"+v.name+"' must be declared in an enclosing class"))}};function isPrivateNameConflicted(a,s){var c=s.key.name,u=a[c],d="true";return s.type==="MethodDefinition"&&(s.kind==="get"||s.kind==="set")&&(d=(s.static?"s":"i")+s.kind),u==="iget"&&d==="iset"||u==="iset"&&d==="iget"||u==="sget"&&d==="sset"||u==="sset"&&d==="sget"?(a[c]="true",!1):u?!0:(a[c]=d,!1)}function checkKeyName(a,s){var c=a.computed,u=a.key;return!c&&(u.type==="Identifier"&&u.name===s||u.type==="Literal"&&u.value===s)}pp$8.parseExportAllDeclaration=function(a,s){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(a.exported=this.parseModuleExportName(),this.checkExport(s,a.exported,this.lastTokStart)):a.exported=null),this.expectContextual("from"),this.type!==types$1.string&&this.unexpected(),a.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(a,"ExportAllDeclaration")},pp$8.parseExport=function(a,s){if(this.next(),this.eat(types$1.star))return this.parseExportAllDeclaration(a,s);if(this.eat(types$1._default))return this.checkExport(s,"default",this.lastTokStart),a.declaration=this.parseExportDefaultDeclaration(),this.finishNode(a,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())a.declaration=this.parseExportDeclaration(a),a.declaration.type==="VariableDeclaration"?this.checkVariableExport(s,a.declaration.declarations):this.checkExport(s,a.declaration.id,a.declaration.id.start),a.specifiers=[],a.source=null;else{if(a.declaration=null,a.specifiers=this.parseExportSpecifiers(s),this.eatContextual("from"))this.type!==types$1.string&&this.unexpected(),a.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause());else{for(var c=0,u=a.specifiers;c<u.length;c+=1){var d=u[c];this.checkUnreserved(d.local),this.checkLocalExport(d.local),d.local.type==="Literal"&&this.raise(d.local.start,"A string literal cannot be used as an exported binding without `from`.")}a.source=null}this.semicolon()}return this.finishNode(a,"ExportNamedDeclaration")},pp$8.parseExportDeclaration=function(a){return this.parseStatement(null)},pp$8.parseExportDefaultDeclaration=function(){var a;if(this.type===types$1._function||(a=this.isAsyncFunction())){var s=this.startNode();return this.next(),a&&this.next(),this.parseFunction(s,FUNC_STATEMENT|FUNC_NULLABLE_ID,!1,a)}else if(this.type===types$1._class){var c=this.startNode();return this.parseClass(c,"nullableID")}else{var u=this.parseMaybeAssign();return this.semicolon(),u}},pp$8.checkExport=function(a,s,c){a&&(typeof s!="string"&&(s=s.type==="Identifier"?s.name:s.value),hasOwn(a,s)&&this.raiseRecoverable(c,"Duplicate export '"+s+"'"),a[s]=!0)},pp$8.checkPatternExport=function(a,s){var c=s.type;if(c==="Identifier")this.checkExport(a,s,s.start);else if(c==="ObjectPattern")for(var u=0,d=s.properties;u<d.length;u+=1){var p=d[u];this.checkPatternExport(a,p)}else if(c==="ArrayPattern")for(var v=0,A=s.elements;v<A.length;v+=1){var b=A[v];b&&this.checkPatternExport(a,b)}else c==="Property"?this.checkPatternExport(a,s.value):c==="AssignmentPattern"?this.checkPatternExport(a,s.left):c==="RestElement"&&this.checkPatternExport(a,s.argument)},pp$8.checkVariableExport=function(a,s){if(a)for(var c=0,u=s;c<u.length;c+=1){var d=u[c];this.checkPatternExport(a,d.id)}},pp$8.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},pp$8.parseExportSpecifier=function(a){var s=this.startNode();return s.local=this.parseModuleExportName(),s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local,this.checkExport(a,s.exported,s.exported.start),this.finishNode(s,"ExportSpecifier")},pp$8.parseExportSpecifiers=function(a){var s=[],c=!0;for(this.expect(types$1.braceL);!this.eat(types$1.braceR);){if(c)c=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;s.push(this.parseExportSpecifier(a))}return s},pp$8.parseImport=function(a){return this.next(),this.type===types$1.string?(a.specifiers=empty$1,a.source=this.parseExprAtom()):(a.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),a.source=this.type===types$1.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(a,"ImportDeclaration")},pp$8.parseImportSpecifier=function(){var a=this.startNode();return a.imported=this.parseModuleExportName(),this.eatContextual("as")?a.local=this.parseIdent():(this.checkUnreserved(a.imported),a.local=a.imported),this.checkLValSimple(a.local,BIND_LEXICAL),this.finishNode(a,"ImportSpecifier")},pp$8.parseImportDefaultSpecifier=function(){var a=this.startNode();return a.local=this.parseIdent(),this.checkLValSimple(a.local,BIND_LEXICAL),this.finishNode(a,"ImportDefaultSpecifier")},pp$8.parseImportNamespaceSpecifier=function(){var a=this.startNode();return this.next(),this.expectContextual("as"),a.local=this.parseIdent(),this.checkLValSimple(a.local,BIND_LEXICAL),this.finishNode(a,"ImportNamespaceSpecifier")},pp$8.parseImportSpecifiers=function(){var a=[],s=!0;if(this.type===types$1.name&&(a.push(this.parseImportDefaultSpecifier()),!this.eat(types$1.comma)))return a;if(this.type===types$1.star)return a.push(this.parseImportNamespaceSpecifier()),a;for(this.expect(types$1.braceL);!this.eat(types$1.braceR);){if(s)s=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;a.push(this.parseImportSpecifier())}return a},pp$8.parseWithClause=function(){var a=[];if(!this.eat(types$1._with))return a;this.expect(types$1.braceL);for(var s={},c=!0;!this.eat(types$1.braceR);){if(c)c=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;var u=this.parseImportAttribute(),d=u.key.type==="Identifier"?u.key.name:u.key.value;hasOwn(s,d)&&this.raiseRecoverable(u.key.start,"Duplicate attribute key '"+d+"'"),s[d]=!0,a.push(u)}return a},pp$8.parseImportAttribute=function(){var a=this.startNode();return a.key=this.type===types$1.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(types$1.colon),this.type!==types$1.string&&this.unexpected(),a.value=this.parseExprAtom(),this.finishNode(a,"ImportAttribute")},pp$8.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===types$1.string){var a=this.parseLiteral(this.value);return loneSurrogate.test(a.value)&&this.raise(a.start,"An export name cannot include a lone surrogate."),a}return this.parseIdent(!0)},pp$8.adaptDirectivePrologue=function(a){for(var s=0;s<a.length&&this.isDirectiveCandidate(a[s]);++s)a[s].directive=a[s].expression.raw.slice(1,-1)},pp$8.isDirectiveCandidate=function(a){return this.options.ecmaVersion>=5&&a.type==="ExpressionStatement"&&a.expression.type==="Literal"&&typeof a.expression.value=="string"&&(this.input[a.start]==='"'||this.input[a.start]==="'")};var pp$7=Parser.prototype;pp$7.toAssignable=function(a,s,c){if(this.options.ecmaVersion>=6&&a)switch(a.type){case"Identifier":this.inAsync&&a.name==="await"&&this.raise(a.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":a.type="ObjectPattern",c&&this.checkPatternErrors(c,!0);for(var u=0,d=a.properties;u<d.length;u+=1){var p=d[u];this.toAssignable(p,s),p.type==="RestElement"&&(p.argument.type==="ArrayPattern"||p.argument.type==="ObjectPattern")&&this.raise(p.argument.start,"Unexpected token")}break;case"Property":a.kind!=="init"&&this.raise(a.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(a.value,s);break;case"ArrayExpression":a.type="ArrayPattern",c&&this.checkPatternErrors(c,!0),this.toAssignableList(a.elements,s);break;case"SpreadElement":a.type="RestElement",this.toAssignable(a.argument,s),a.argument.type==="AssignmentPattern"&&this.raise(a.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":a.operator!=="="&&this.raise(a.left.end,"Only '=' operator can be used for specifying default value."),a.type="AssignmentPattern",delete a.operator,this.toAssignable(a.left,s);break;case"ParenthesizedExpression":this.toAssignable(a.expression,s,c);break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!s)break;default:this.raise(a.start,"Assigning to rvalue")}else c&&this.checkPatternErrors(c,!0);return a},pp$7.toAssignableList=function(a,s){for(var c=a.length,u=0;u<c;u++){var d=a[u];d&&this.toAssignable(d,s)}if(c){var p=a[c-1];this.options.ecmaVersion===6&&s&&p&&p.type==="RestElement"&&p.argument.type!=="Identifier"&&this.unexpected(p.argument.start)}return a},pp$7.parseSpread=function(a){var s=this.startNode();return this.next(),s.argument=this.parseMaybeAssign(!1,a),this.finishNode(s,"SpreadElement")},pp$7.parseRestBinding=function(){var a=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==types$1.name&&this.unexpected(),a.argument=this.parseBindingAtom(),this.finishNode(a,"RestElement")},pp$7.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case types$1.bracketL:var a=this.startNode();return this.next(),a.elements=this.parseBindingList(types$1.bracketR,!0,!0),this.finishNode(a,"ArrayPattern");case types$1.braceL:return this.parseObj(!0)}return this.parseIdent()},pp$7.parseBindingList=function(a,s,c,u){for(var d=[],p=!0;!this.eat(a);)if(p?p=!1:this.expect(types$1.comma),s&&this.type===types$1.comma)d.push(null);else{if(c&&this.afterTrailingComma(a))break;if(this.type===types$1.ellipsis){var v=this.parseRestBinding();this.parseBindingListItem(v),d.push(v),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(a);break}else d.push(this.parseAssignableListItem(u))}return d},pp$7.parseAssignableListItem=function(a){var s=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(s),s},pp$7.parseBindingListItem=function(a){return a},pp$7.parseMaybeDefault=function(a,s,c){if(c=c||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(types$1.eq))return c;var u=this.startNodeAt(a,s);return u.left=c,u.right=this.parseMaybeAssign(),this.finishNode(u,"AssignmentPattern")},pp$7.checkLValSimple=function(a,s,c){s===void 0&&(s=BIND_NONE);var u=s!==BIND_NONE;switch(a.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(a.name)&&this.raiseRecoverable(a.start,(u?"Binding ":"Assigning to ")+a.name+" in strict mode"),u&&(s===BIND_LEXICAL&&a.name==="let"&&this.raiseRecoverable(a.start,"let is disallowed as a lexically bound name"),c&&(hasOwn(c,a.name)&&this.raiseRecoverable(a.start,"Argument name clash"),c[a.name]=!0),s!==BIND_OUTSIDE&&this.declareName(a.name,s,a.start));break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":u&&this.raiseRecoverable(a.start,"Binding member expression");break;case"ParenthesizedExpression":return u&&this.raiseRecoverable(a.start,"Binding parenthesized expression"),this.checkLValSimple(a.expression,s,c);default:this.raise(a.start,(u?"Binding":"Assigning to")+" rvalue")}},pp$7.checkLValPattern=function(a,s,c){switch(s===void 0&&(s=BIND_NONE),a.type){case"ObjectPattern":for(var u=0,d=a.properties;u<d.length;u+=1){var p=d[u];this.checkLValInnerPattern(p,s,c)}break;case"ArrayPattern":for(var v=0,A=a.elements;v<A.length;v+=1){var b=A[v];b&&this.checkLValInnerPattern(b,s,c)}break;default:this.checkLValSimple(a,s,c)}},pp$7.checkLValInnerPattern=function(a,s,c){switch(s===void 0&&(s=BIND_NONE),a.type){case"Property":this.checkLValInnerPattern(a.value,s,c);break;case"AssignmentPattern":this.checkLValPattern(a.left,s,c);break;case"RestElement":this.checkLValPattern(a.argument,s,c);break;default:this.checkLValPattern(a,s,c)}};var TokContext=function(s,c,u,d,p){this.token=s,this.isExpr=!!c,this.preserveSpace=!!u,this.override=d,this.generator=!!p},types$2={b_stat:new TokContext("{",!1),b_expr:new TokContext("{",!0),b_tmpl:new TokContext("${",!1),p_stat:new TokContext("(",!1),p_expr:new TokContext("(",!0),q_tmpl:new TokContext("`",!0,!0,function(a){return a.tryReadTemplateToken()}),f_stat:new TokContext("function",!1),f_expr:new TokContext("function",!0),f_expr_gen:new TokContext("function",!0,!1,null,!0),f_gen:new TokContext("function",!1,!1,null,!0)},pp$6=Parser.prototype;pp$6.initialContext=function(){return[types$2.b_stat]},pp$6.curContext=function(){return this.context[this.context.length-1]},pp$6.braceIsBlock=function(a){var s=this.curContext();return s===types$2.f_expr||s===types$2.f_stat?!0:a===types$1.colon&&(s===types$2.b_stat||s===types$2.b_expr)?!s.isExpr:a===types$1._return||a===types$1.name&&this.exprAllowed?lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):a===types$1._else||a===types$1.semi||a===types$1.eof||a===types$1.parenR||a===types$1.arrow?!0:a===types$1.braceL?s===types$2.b_stat:a===types$1._var||a===types$1._const||a===types$1.name?!1:!this.exprAllowed},pp$6.inGeneratorContext=function(){for(var a=this.context.length-1;a>=1;a--){var s=this.context[a];if(s.token==="function")return s.generator}return!1},pp$6.updateContext=function(a){var s,c=this.type;c.keyword&&a===types$1.dot?this.exprAllowed=!1:(s=c.updateContext)?s.call(this,a):this.exprAllowed=c.beforeExpr},pp$6.overrideContext=function(a){this.curContext()!==a&&(this.context[this.context.length-1]=a)},types$1.parenR.updateContext=types$1.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var a=this.context.pop();a===types$2.b_stat&&this.curContext().token==="function"&&(a=this.context.pop()),this.exprAllowed=!a.isExpr},types$1.braceL.updateContext=function(a){this.context.push(this.braceIsBlock(a)?types$2.b_stat:types$2.b_expr),this.exprAllowed=!0},types$1.dollarBraceL.updateContext=function(){this.context.push(types$2.b_tmpl),this.exprAllowed=!0},types$1.parenL.updateContext=function(a){var s=a===types$1._if||a===types$1._for||a===types$1._with||a===types$1._while;this.context.push(s?types$2.p_stat:types$2.p_expr),this.exprAllowed=!0},types$1.incDec.updateContext=function(){},types$1._function.updateContext=types$1._class.updateContext=function(a){a.beforeExpr&&a!==types$1._else&&!(a===types$1.semi&&this.curContext()!==types$2.p_stat)&&!(a===types$1._return&&lineBreak.test(this.input.slice(this.lastTokEnd,this.start)))&&!((a===types$1.colon||a===types$1.braceL)&&this.curContext()===types$2.b_stat)?this.context.push(types$2.f_expr):this.context.push(types$2.f_stat),this.exprAllowed=!1},types$1.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},types$1.backQuote.updateContext=function(){this.curContext()===types$2.q_tmpl?this.context.pop():this.context.push(types$2.q_tmpl),this.exprAllowed=!1},types$1.star.updateContext=function(a){if(a===types$1._function){var s=this.context.length-1;this.context[s]===types$2.f_expr?this.context[s]=types$2.f_expr_gen:this.context[s]=types$2.f_gen}this.exprAllowed=!0},types$1.name.updateContext=function(a){var s=!1;this.options.ecmaVersion>=6&&a!==types$1.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(s=!0),this.exprAllowed=s};var pp$5=Parser.prototype;pp$5.checkPropClash=function(a,s,c){if(!(this.options.ecmaVersion>=9&&a.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(a.computed||a.method||a.shorthand))){var u=a.key,d;switch(u.type){case"Identifier":d=u.name;break;case"Literal":d=String(u.value);break;default:return}var p=a.kind;if(this.options.ecmaVersion>=6){d==="__proto__"&&p==="init"&&(s.proto&&(c?c.doubleProto<0&&(c.doubleProto=u.start):this.raiseRecoverable(u.start,"Redefinition of __proto__ property")),s.proto=!0);return}d="$"+d;var v=s[d];if(v){var A;p==="init"?A=this.strict&&v.init||v.get||v.set:A=v.init||v[p],A&&this.raiseRecoverable(u.start,"Redefinition of property")}else v=s[d]={init:!1,get:!1,set:!1};v[p]=!0}},pp$5.parseExpression=function(a,s){var c=this.start,u=this.startLoc,d=this.parseMaybeAssign(a,s);if(this.type===types$1.comma){var p=this.startNodeAt(c,u);for(p.expressions=[d];this.eat(types$1.comma);)p.expressions.push(this.parseMaybeAssign(a,s));return this.finishNode(p,"SequenceExpression")}return d},pp$5.parseMaybeAssign=function(a,s,c){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(a);this.exprAllowed=!1}var u=!1,d=-1,p=-1,v=-1;s?(d=s.parenthesizedAssign,p=s.trailingComma,v=s.doubleProto,s.parenthesizedAssign=s.trailingComma=-1):(s=new DestructuringErrors,u=!0);var A=this.start,b=this.startLoc;(this.type===types$1.parenL||this.type===types$1.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=a==="await");var g=this.parseMaybeConditional(a,s);if(c&&(g=c.call(this,g,A,b)),this.type.isAssign){var x=this.startNodeAt(A,b);return x.operator=this.value,this.type===types$1.eq&&(g=this.toAssignable(g,!1,s)),u||(s.parenthesizedAssign=s.trailingComma=s.doubleProto=-1),s.shorthandAssign>=g.start&&(s.shorthandAssign=-1),this.type===types$1.eq?this.checkLValPattern(g):this.checkLValSimple(g),x.left=g,this.next(),x.right=this.parseMaybeAssign(a),v>-1&&(s.doubleProto=v),this.finishNode(x,"AssignmentExpression")}else u&&this.checkExpressionErrors(s,!0);return d>-1&&(s.parenthesizedAssign=d),p>-1&&(s.trailingComma=p),g},pp$5.parseMaybeConditional=function(a,s){var c=this.start,u=this.startLoc,d=this.parseExprOps(a,s);if(this.checkExpressionErrors(s))return d;if(this.eat(types$1.question)){var p=this.startNodeAt(c,u);return p.test=d,p.consequent=this.parseMaybeAssign(),this.expect(types$1.colon),p.alternate=this.parseMaybeAssign(a),this.finishNode(p,"ConditionalExpression")}return d},pp$5.parseExprOps=function(a,s){var c=this.start,u=this.startLoc,d=this.parseMaybeUnary(s,!1,!1,a);return this.checkExpressionErrors(s)||d.start===c&&d.type==="ArrowFunctionExpression"?d:this.parseExprOp(d,c,u,-1,a)},pp$5.parseExprOp=function(a,s,c,u,d){var p=this.type.binop;if(p!=null&&(!d||this.type!==types$1._in)&&p>u){var v=this.type===types$1.logicalOR||this.type===types$1.logicalAND,A=this.type===types$1.coalesce;A&&(p=types$1.logicalAND.binop);var b=this.value;this.next();var g=this.start,x=this.startLoc,y=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,d),g,x,p,d),f=this.buildBinary(s,c,a,y,b,v||A);return(v&&this.type===types$1.coalesce||A&&(this.type===types$1.logicalOR||this.type===types$1.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(f,s,c,u,d)}return a},pp$5.buildBinary=function(a,s,c,u,d,p){u.type==="PrivateIdentifier"&&this.raise(u.start,"Private identifier can only be left side of binary expression");var v=this.startNodeAt(a,s);return v.left=c,v.operator=d,v.right=u,this.finishNode(v,p?"LogicalExpression":"BinaryExpression")},pp$5.parseMaybeUnary=function(a,s,c,u){var d=this.start,p=this.startLoc,v;if(this.isContextual("await")&&this.canAwait)v=this.parseAwait(u),s=!0;else if(this.type.prefix){var A=this.startNode(),b=this.type===types$1.incDec;A.operator=this.value,A.prefix=!0,this.next(),A.argument=this.parseMaybeUnary(null,!0,b,u),this.checkExpressionErrors(a,!0),b?this.checkLValSimple(A.argument):this.strict&&A.operator==="delete"&&isLocalVariableAccess(A.argument)?this.raiseRecoverable(A.start,"Deleting local variable in strict mode"):A.operator==="delete"&&isPrivateFieldAccess(A.argument)?this.raiseRecoverable(A.start,"Private fields can not be deleted"):s=!0,v=this.finishNode(A,b?"UpdateExpression":"UnaryExpression")}else if(!s&&this.type===types$1.privateId)(u||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),v=this.parsePrivateIdent(),this.type!==types$1._in&&this.unexpected();else{if(v=this.parseExprSubscripts(a,u),this.checkExpressionErrors(a))return v;for(;this.type.postfix&&!this.canInsertSemicolon();){var g=this.startNodeAt(d,p);g.operator=this.value,g.prefix=!1,g.argument=v,this.checkLValSimple(v),this.next(),v=this.finishNode(g,"UpdateExpression")}}if(!c&&this.eat(types$1.starstar))if(s)this.unexpected(this.lastTokStart);else return this.buildBinary(d,p,v,this.parseMaybeUnary(null,!1,!1,u),"**",!1);else return v};function isLocalVariableAccess(a){return a.type==="Identifier"||a.type==="ParenthesizedExpression"&&isLocalVariableAccess(a.expression)}function isPrivateFieldAccess(a){return a.type==="MemberExpression"&&a.property.type==="PrivateIdentifier"||a.type==="ChainExpression"&&isPrivateFieldAccess(a.expression)||a.type==="ParenthesizedExpression"&&isPrivateFieldAccess(a.expression)}pp$5.parseExprSubscripts=function(a,s){var c=this.start,u=this.startLoc,d=this.parseExprAtom(a,s);if(d.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return d;var p=this.parseSubscripts(d,c,u,!1,s);return a&&p.type==="MemberExpression"&&(a.parenthesizedAssign>=p.start&&(a.parenthesizedAssign=-1),a.parenthesizedBind>=p.start&&(a.parenthesizedBind=-1),a.trailingComma>=p.start&&(a.trailingComma=-1)),p},pp$5.parseSubscripts=function(a,s,c,u,d){for(var p=this.options.ecmaVersion>=8&&a.type==="Identifier"&&a.name==="async"&&this.lastTokEnd===a.end&&!this.canInsertSemicolon()&&a.end-a.start===5&&this.potentialArrowAt===a.start,v=!1;;){var A=this.parseSubscript(a,s,c,u,p,v,d);if(A.optional&&(v=!0),A===a||A.type==="ArrowFunctionExpression"){if(v){var b=this.startNodeAt(s,c);b.expression=A,A=this.finishNode(b,"ChainExpression")}return A}a=A}},pp$5.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(types$1.arrow)},pp$5.parseSubscriptAsyncArrow=function(a,s,c,u){return this.parseArrowExpression(this.startNodeAt(a,s),c,!0,u)},pp$5.parseSubscript=function(a,s,c,u,d,p,v){var A=this.options.ecmaVersion>=11,b=A&&this.eat(types$1.questionDot);u&&b&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var g=this.eat(types$1.bracketL);if(g||b&&this.type!==types$1.parenL&&this.type!==types$1.backQuote||this.eat(types$1.dot)){var x=this.startNodeAt(s,c);x.object=a,g?(x.property=this.parseExpression(),this.expect(types$1.bracketR)):this.type===types$1.privateId&&a.type!=="Super"?x.property=this.parsePrivateIdent():x.property=this.parseIdent(this.options.allowReserved!=="never"),x.computed=!!g,A&&(x.optional=b),a=this.finishNode(x,"MemberExpression")}else if(!u&&this.eat(types$1.parenL)){var y=new DestructuringErrors,f=this.yieldPos,m=this.awaitPos,C=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var S=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,!1,y);if(d&&!b&&this.shouldParseAsyncArrow())return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=f,this.awaitPos=m,this.awaitIdentPos=C,this.parseSubscriptAsyncArrow(s,c,S,v);this.checkExpressionErrors(y,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=C||this.awaitIdentPos;var w=this.startNodeAt(s,c);w.callee=a,w.arguments=S,A&&(w.optional=b),a=this.finishNode(w,"CallExpression")}else if(this.type===types$1.backQuote){(b||p)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var I=this.startNodeAt(s,c);I.tag=a,I.quasi=this.parseTemplate({isTagged:!0}),a=this.finishNode(I,"TaggedTemplateExpression")}return a},pp$5.parseExprAtom=function(a,s,c){this.type===types$1.slash&&this.readRegexp();var u,d=this.potentialArrowAt===this.start;switch(this.type){case types$1._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),u=this.startNode(),this.next(),this.type===types$1.parenL&&!this.allowDirectSuper&&this.raise(u.start,"super() call outside constructor of a subclass"),this.type!==types$1.dot&&this.type!==types$1.bracketL&&this.type!==types$1.parenL&&this.unexpected(),this.finishNode(u,"Super");case types$1._this:return u=this.startNode(),this.next(),this.finishNode(u,"ThisExpression");case types$1.name:var p=this.start,v=this.startLoc,A=this.containsEsc,b=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!A&&b.name==="async"&&!this.canInsertSemicolon()&&this.eat(types$1._function))return this.overrideContext(types$2.f_expr),this.parseFunction(this.startNodeAt(p,v),0,!1,!0,s);if(d&&!this.canInsertSemicolon()){if(this.eat(types$1.arrow))return this.parseArrowExpression(this.startNodeAt(p,v),[b],!1,s);if(this.options.ecmaVersion>=8&&b.name==="async"&&this.type===types$1.name&&!A&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return b=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(types$1.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(p,v),[b],!0,s)}return b;case types$1.regexp:var g=this.value;return u=this.parseLiteral(g.value),u.regex={pattern:g.pattern,flags:g.flags},u;case types$1.num:case types$1.string:return this.parseLiteral(this.value);case types$1._null:case types$1._true:case types$1._false:return u=this.startNode(),u.value=this.type===types$1._null?null:this.type===types$1._true,u.raw=this.type.keyword,this.next(),this.finishNode(u,"Literal");case types$1.parenL:var x=this.start,y=this.parseParenAndDistinguishExpression(d,s);return a&&(a.parenthesizedAssign<0&&!this.isSimpleAssignTarget(y)&&(a.parenthesizedAssign=x),a.parenthesizedBind<0&&(a.parenthesizedBind=x)),y;case types$1.bracketL:return u=this.startNode(),this.next(),u.elements=this.parseExprList(types$1.bracketR,!0,!0,a),this.finishNode(u,"ArrayExpression");case types$1.braceL:return this.overrideContext(types$2.b_expr),this.parseObj(!1,a);case types$1._function:return u=this.startNode(),this.next(),this.parseFunction(u,0);case types$1._class:return this.parseClass(this.startNode(),!1);case types$1._new:return this.parseNew();case types$1.backQuote:return this.parseTemplate();case types$1._import:return this.options.ecmaVersion>=11?this.parseExprImport(c):this.unexpected();default:return this.parseExprAtomDefault()}},pp$5.parseExprAtomDefault=function(){this.unexpected()},pp$5.parseExprImport=function(a){var s=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===types$1.parenL&&!a)return this.parseDynamicImport(s);if(this.type===types$1.dot){var c=this.startNodeAt(s.start,s.loc&&s.loc.start);return c.name="import",s.meta=this.finishNode(c,"Identifier"),this.parseImportMeta(s)}else this.unexpected()},pp$5.parseDynamicImport=function(a){if(this.next(),a.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(types$1.parenR)?a.options=null:(this.expect(types$1.comma),this.afterTrailingComma(types$1.parenR)?a.options=null:(a.options=this.parseMaybeAssign(),this.eat(types$1.parenR)||(this.expect(types$1.comma),this.afterTrailingComma(types$1.parenR)||this.unexpected())));else if(!this.eat(types$1.parenR)){var s=this.start;this.eat(types$1.comma)&&this.eat(types$1.parenR)?this.raiseRecoverable(s,"Trailing comma is not allowed in import()"):this.unexpected(s)}return this.finishNode(a,"ImportExpression")},pp$5.parseImportMeta=function(a){this.next();var s=this.containsEsc;return a.property=this.parseIdent(!0),a.property.name!=="meta"&&this.raiseRecoverable(a.property.start,"The only valid meta property for import is 'import.meta'"),s&&this.raiseRecoverable(a.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(a.start,"Cannot use 'import.meta' outside a module"),this.finishNode(a,"MetaProperty")},pp$5.parseLiteral=function(a){var s=this.startNode();return s.value=a,s.raw=this.input.slice(this.start,this.end),s.raw.charCodeAt(s.raw.length-1)===110&&(s.bigint=s.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(s,"Literal")},pp$5.parseParenExpression=function(){this.expect(types$1.parenL);var a=this.parseExpression();return this.expect(types$1.parenR),a},pp$5.shouldParseArrow=function(a){return!this.canInsertSemicolon()},pp$5.parseParenAndDistinguishExpression=function(a,s){var c=this.start,u=this.startLoc,d,p=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var v=this.start,A=this.startLoc,b=[],g=!0,x=!1,y=new DestructuringErrors,f=this.yieldPos,m=this.awaitPos,C;for(this.yieldPos=0,this.awaitPos=0;this.type!==types$1.parenR;)if(g?g=!1:this.expect(types$1.comma),p&&this.afterTrailingComma(types$1.parenR,!0)){x=!0;break}else if(this.type===types$1.ellipsis){C=this.start,b.push(this.parseParenItem(this.parseRestBinding())),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else b.push(this.parseMaybeAssign(!1,y,this.parseParenItem));var S=this.lastTokEnd,w=this.lastTokEndLoc;if(this.expect(types$1.parenR),a&&this.shouldParseArrow(b)&&this.eat(types$1.arrow))return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=m,this.parseParenArrowList(c,u,b,s);(!b.length||x)&&this.unexpected(this.lastTokStart),C&&this.unexpected(C),this.checkExpressionErrors(y,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=m||this.awaitPos,b.length>1?(d=this.startNodeAt(v,A),d.expressions=b,this.finishNodeAt(d,"SequenceExpression",S,w)):d=b[0]}else d=this.parseParenExpression();if(this.options.preserveParens){var I=this.startNodeAt(c,u);return I.expression=d,this.finishNode(I,"ParenthesizedExpression")}else return d},pp$5.parseParenItem=function(a){return a},pp$5.parseParenArrowList=function(a,s,c,u){return this.parseArrowExpression(this.startNodeAt(a,s),c,!1,u)};var empty$2=[];pp$5.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var a=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===types$1.dot){var s=this.startNodeAt(a.start,a.loc&&a.loc.start);s.name="new",a.meta=this.finishNode(s,"Identifier"),this.next();var c=this.containsEsc;return a.property=this.parseIdent(!0),a.property.name!=="target"&&this.raiseRecoverable(a.property.start,"The only valid meta property for new is 'new.target'"),c&&this.raiseRecoverable(a.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(a.start,"'new.target' can only be used in functions and class static block"),this.finishNode(a,"MetaProperty")}var u=this.start,d=this.startLoc;return a.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),u,d,!0,!1),this.eat(types$1.parenL)?a.arguments=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,!1):a.arguments=empty$2,this.finishNode(a,"NewExpression")},pp$5.parseTemplateElement=function(a){var s=a.isTagged,c=this.startNode();return this.type===types$1.invalidTemplate?(s||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),c.value={raw:this.value.replace(/\r\n?/g,`
|
51
|
+
Defaulting to 2020, but this will stop working in the future.`)),s.ecmaVersion=11):s.ecmaVersion>=2015&&(s.ecmaVersion-=2009),s.allowReserved==null&&(s.allowReserved=s.ecmaVersion<5),(!a||a.allowHashBang==null)&&(s.allowHashBang=s.ecmaVersion>=14),isArray$3(s.onToken)){var u=s.onToken;s.onToken=function(d){return u.push(d)}}return isArray$3(s.onComment)&&(s.onComment=pushComment(s,s.onComment)),s}function pushComment(a,s){return function(c,u,d,p,v,A){var b={type:c?"Block":"Line",value:u,start:d,end:p};a.locations&&(b.loc=new SourceLocation(this,v,A)),a.ranges&&(b.range=[d,p]),s.push(b)}}var SCOPE_TOP=1,SCOPE_FUNCTION=2,SCOPE_ASYNC=4,SCOPE_GENERATOR=8,SCOPE_ARROW=16,SCOPE_SIMPLE_CATCH=32,SCOPE_SUPER=64,SCOPE_DIRECT_SUPER=128,SCOPE_CLASS_STATIC_BLOCK=256,SCOPE_CLASS_FIELD_INIT=512,SCOPE_VAR=SCOPE_TOP|SCOPE_FUNCTION|SCOPE_CLASS_STATIC_BLOCK;function functionFlags(a,s){return SCOPE_FUNCTION|(a?SCOPE_ASYNC:0)|(s?SCOPE_GENERATOR:0)}var BIND_NONE=0,BIND_VAR=1,BIND_LEXICAL=2,BIND_FUNCTION=3,BIND_SIMPLE_CATCH=4,BIND_OUTSIDE=5,Parser=function(s,c,u){this.options=s=getOptions(s),this.sourceFile=s.sourceFile,this.keywords=wordsRegexp(keywords$1[s.ecmaVersion>=6?6:s.sourceType==="module"?"5module":5]);var d="";s.allowReserved!==!0&&(d=reservedWords[s.ecmaVersion>=6?6:s.ecmaVersion===5?5:3],s.sourceType==="module"&&(d+=" await")),this.reservedWords=wordsRegexp(d);var p=(d?d+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(p),this.reservedWordsStrictBind=wordsRegexp(p+" "+reservedWords.strictBind),this.input=String(c),this.containsEsc=!1,u?(this.pos=u,this.lineStart=this.input.lastIndexOf(`
|
52
|
+
`,u-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=types$1.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=s.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&s.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(SCOPE_TOP),this.regexpState=null,this.privateNameStack=[]},prototypeAccessors={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Parser.prototype.parse=function(){var s=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(s)},prototypeAccessors.inFunction.get=function(){return(this.currentVarScope().flags&SCOPE_FUNCTION)>0},prototypeAccessors.inGenerator.get=function(){return(this.currentVarScope().flags&SCOPE_GENERATOR)>0},prototypeAccessors.inAsync.get=function(){return(this.currentVarScope().flags&SCOPE_ASYNC)>0},prototypeAccessors.canAwait.get=function(){for(var a=this.scopeStack.length-1;a>=0;a--){var s=this.scopeStack[a],c=s.flags;if(c&(SCOPE_CLASS_STATIC_BLOCK|SCOPE_CLASS_FIELD_INIT))return!1;if(c&SCOPE_FUNCTION)return(c&SCOPE_ASYNC)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},prototypeAccessors.allowSuper.get=function(){var a=this.currentThisScope(),s=a.flags;return(s&SCOPE_SUPER)>0||this.options.allowSuperOutsideMethod},prototypeAccessors.allowDirectSuper.get=function(){return(this.currentThisScope().flags&SCOPE_DIRECT_SUPER)>0},prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},prototypeAccessors.allowNewDotTarget.get=function(){for(var a=this.scopeStack.length-1;a>=0;a--){var s=this.scopeStack[a],c=s.flags;if(c&(SCOPE_CLASS_STATIC_BLOCK|SCOPE_CLASS_FIELD_INIT)||c&SCOPE_FUNCTION&&!(c&SCOPE_ARROW))return!0}return!1},prototypeAccessors.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&SCOPE_CLASS_STATIC_BLOCK)>0},Parser.extend=function(){for(var s=[],c=arguments.length;c--;)s[c]=arguments[c];for(var u=this,d=0;d<s.length;d++)u=s[d](u);return u},Parser.parse=function(s,c){return new this(c,s).parse()},Parser.parseExpressionAt=function(s,c,u){var d=new this(u,s,c);return d.nextToken(),d.parseExpression()},Parser.tokenizer=function(s,c){return new this(c,s)},Object.defineProperties(Parser.prototype,prototypeAccessors);var pp$9=Parser.prototype,literal=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;pp$9.strictDirective=function(a){if(this.options.ecmaVersion<5)return!1;for(;;){skipWhiteSpace.lastIndex=a,a+=skipWhiteSpace.exec(this.input)[0].length;var s=literal.exec(this.input.slice(a));if(!s)return!1;if((s[1]||s[2])==="use strict"){skipWhiteSpace.lastIndex=a+s[0].length;var c=skipWhiteSpace.exec(this.input),u=c.index+c[0].length,d=this.input.charAt(u);return d===";"||d==="}"||lineBreak.test(c[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(d)||d==="!"&&this.input.charAt(u+1)==="=")}a+=s[0].length,skipWhiteSpace.lastIndex=a,a+=skipWhiteSpace.exec(this.input)[0].length,this.input[a]===";"&&a++}},pp$9.eat=function(a){return this.type===a?(this.next(),!0):!1},pp$9.isContextual=function(a){return this.type===types$1.name&&this.value===a&&!this.containsEsc},pp$9.eatContextual=function(a){return this.isContextual(a)?(this.next(),!0):!1},pp$9.expectContextual=function(a){this.eatContextual(a)||this.unexpected()},pp$9.canInsertSemicolon=function(){return this.type===types$1.eof||this.type===types$1.braceR||lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$9.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},pp$9.semicolon=function(){!this.eat(types$1.semi)&&!this.insertSemicolon()&&this.unexpected()},pp$9.afterTrailingComma=function(a,s){if(this.type===a)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),s||this.next(),!0},pp$9.expect=function(a){this.eat(a)||this.unexpected()},pp$9.unexpected=function(a){this.raise(a??this.start,"Unexpected token")};var DestructuringErrors=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};pp$9.checkPatternErrors=function(a,s){if(a){a.trailingComma>-1&&this.raiseRecoverable(a.trailingComma,"Comma is not permitted after the rest element");var c=s?a.parenthesizedAssign:a.parenthesizedBind;c>-1&&this.raiseRecoverable(c,s?"Assigning to rvalue":"Parenthesized pattern")}},pp$9.checkExpressionErrors=function(a,s){if(!a)return!1;var c=a.shorthandAssign,u=a.doubleProto;if(!s)return c>=0||u>=0;c>=0&&this.raise(c,"Shorthand property assignments are valid only in destructuring patterns"),u>=0&&this.raiseRecoverable(u,"Redefinition of __proto__ property")},pp$9.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},pp$9.isSimpleAssignTarget=function(a){return a.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(a.expression):a.type==="Identifier"||a.type==="MemberExpression"};var pp$8=Parser.prototype;pp$8.parseTopLevel=function(a){var s=Object.create(null);for(a.body||(a.body=[]);this.type!==types$1.eof;){var c=this.parseStatement(null,!0,s);a.body.push(c)}if(this.inModule)for(var u=0,d=Object.keys(this.undefinedExports);u<d.length;u+=1){var p=d[u];this.raiseRecoverable(this.undefinedExports[p].start,"Export '"+p+"' is not defined")}return this.adaptDirectivePrologue(a.body),this.next(),a.sourceType=this.options.sourceType,this.finishNode(a,"Program")};var loopLabel={kind:"loop"},switchLabel={kind:"switch"};pp$8.isLet=function(a){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;skipWhiteSpace.lastIndex=this.pos;var s=skipWhiteSpace.exec(this.input),c=this.pos+s[0].length,u=this.input.charCodeAt(c);if(u===91||u===92)return!0;if(a)return!1;if(u===123||u>55295&&u<56320)return!0;if(isIdentifierStart(u,!0)){for(var d=c+1;isIdentifierChar(u=this.input.charCodeAt(d),!0);)++d;if(u===92||u>55295&&u<56320)return!0;var p=this.input.slice(c,d);if(!keywordRelationalOperator.test(p))return!0}return!1},pp$8.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;skipWhiteSpace.lastIndex=this.pos;var a=skipWhiteSpace.exec(this.input),s=this.pos+a[0].length,c;return!lineBreak.test(this.input.slice(this.pos,s))&&this.input.slice(s,s+8)==="function"&&(s+8===this.input.length||!(isIdentifierChar(c=this.input.charCodeAt(s+8))||c>55295&&c<56320))},pp$8.parseStatement=function(a,s,c){var u=this.type,d=this.startNode(),p;switch(this.isLet(a)&&(u=types$1._var,p="let"),u){case types$1._break:case types$1._continue:return this.parseBreakContinueStatement(d,u.keyword);case types$1._debugger:return this.parseDebuggerStatement(d);case types$1._do:return this.parseDoStatement(d);case types$1._for:return this.parseForStatement(d);case types$1._function:return a&&(this.strict||a!=="if"&&a!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(d,!1,!a);case types$1._class:return a&&this.unexpected(),this.parseClass(d,!0);case types$1._if:return this.parseIfStatement(d);case types$1._return:return this.parseReturnStatement(d);case types$1._switch:return this.parseSwitchStatement(d);case types$1._throw:return this.parseThrowStatement(d);case types$1._try:return this.parseTryStatement(d);case types$1._const:case types$1._var:return p=p||this.value,a&&p!=="var"&&this.unexpected(),this.parseVarStatement(d,p);case types$1._while:return this.parseWhileStatement(d);case types$1._with:return this.parseWithStatement(d);case types$1.braceL:return this.parseBlock(!0,d);case types$1.semi:return this.parseEmptyStatement(d);case types$1._export:case types$1._import:if(this.options.ecmaVersion>10&&u===types$1._import){skipWhiteSpace.lastIndex=this.pos;var v=skipWhiteSpace.exec(this.input),A=this.pos+v[0].length,b=this.input.charCodeAt(A);if(b===40||b===46)return this.parseExpressionStatement(d,this.parseExpression())}return this.options.allowImportExportEverywhere||(s||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),u===types$1._import?this.parseImport(d):this.parseExport(d,c);default:if(this.isAsyncFunction())return a&&this.unexpected(),this.next(),this.parseFunctionStatement(d,!0,!a);var g=this.value,x=this.parseExpression();return u===types$1.name&&x.type==="Identifier"&&this.eat(types$1.colon)?this.parseLabeledStatement(d,g,x,a):this.parseExpressionStatement(d,x)}},pp$8.parseBreakContinueStatement=function(a,s){var c=s==="break";this.next(),this.eat(types$1.semi)||this.insertSemicolon()?a.label=null:this.type!==types$1.name?this.unexpected():(a.label=this.parseIdent(),this.semicolon());for(var u=0;u<this.labels.length;++u){var d=this.labels[u];if((a.label==null||d.name===a.label.name)&&(d.kind!=null&&(c||d.kind==="loop")||a.label&&c))break}return u===this.labels.length&&this.raise(a.start,"Unsyntactic "+s),this.finishNode(a,c?"BreakStatement":"ContinueStatement")},pp$8.parseDebuggerStatement=function(a){return this.next(),this.semicolon(),this.finishNode(a,"DebuggerStatement")},pp$8.parseDoStatement=function(a){return this.next(),this.labels.push(loopLabel),a.body=this.parseStatement("do"),this.labels.pop(),this.expect(types$1._while),a.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(types$1.semi):this.semicolon(),this.finishNode(a,"DoWhileStatement")},pp$8.parseForStatement=function(a){this.next();var s=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(loopLabel),this.enterScope(0),this.expect(types$1.parenL),this.type===types$1.semi)return s>-1&&this.unexpected(s),this.parseFor(a,null);var c=this.isLet();if(this.type===types$1._var||this.type===types$1._const||c){var u=this.startNode(),d=c?"let":this.value;return this.next(),this.parseVar(u,!0,d),this.finishNode(u,"VariableDeclaration"),(this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&u.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===types$1._in?s>-1&&this.unexpected(s):a.await=s>-1),this.parseForIn(a,u)):(s>-1&&this.unexpected(s),this.parseFor(a,u))}var p=this.isContextual("let"),v=!1,A=this.containsEsc,b=new DestructuringErrors,g=this.start,x=s>-1?this.parseExprSubscripts(b,"await"):this.parseExpression(!0,b);return this.type===types$1._in||(v=this.options.ecmaVersion>=6&&this.isContextual("of"))?(s>-1?(this.type===types$1._in&&this.unexpected(s),a.await=!0):v&&this.options.ecmaVersion>=8&&(x.start===g&&!A&&x.type==="Identifier"&&x.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(a.await=!1)),p&&v&&this.raise(x.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(x,!1,b),this.checkLValPattern(x),this.parseForIn(a,x)):(this.checkExpressionErrors(b,!0),s>-1&&this.unexpected(s),this.parseFor(a,x))},pp$8.parseFunctionStatement=function(a,s,c){return this.next(),this.parseFunction(a,FUNC_STATEMENT|(c?0:FUNC_HANGING_STATEMENT),!1,s)},pp$8.parseIfStatement=function(a){return this.next(),a.test=this.parseParenExpression(),a.consequent=this.parseStatement("if"),a.alternate=this.eat(types$1._else)?this.parseStatement("if"):null,this.finishNode(a,"IfStatement")},pp$8.parseReturnStatement=function(a){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(types$1.semi)||this.insertSemicolon()?a.argument=null:(a.argument=this.parseExpression(),this.semicolon()),this.finishNode(a,"ReturnStatement")},pp$8.parseSwitchStatement=function(a){this.next(),a.discriminant=this.parseParenExpression(),a.cases=[],this.expect(types$1.braceL),this.labels.push(switchLabel),this.enterScope(0);for(var s,c=!1;this.type!==types$1.braceR;)if(this.type===types$1._case||this.type===types$1._default){var u=this.type===types$1._case;s&&this.finishNode(s,"SwitchCase"),a.cases.push(s=this.startNode()),s.consequent=[],this.next(),u?s.test=this.parseExpression():(c&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),c=!0,s.test=null),this.expect(types$1.colon)}else s||this.unexpected(),s.consequent.push(this.parseStatement(null));return this.exitScope(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(a,"SwitchStatement")},pp$8.parseThrowStatement=function(a){return this.next(),lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),a.argument=this.parseExpression(),this.semicolon(),this.finishNode(a,"ThrowStatement")};var empty$1=[];pp$8.parseCatchClauseParam=function(){var a=this.parseBindingAtom(),s=a.type==="Identifier";return this.enterScope(s?SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(a,s?BIND_SIMPLE_CATCH:BIND_LEXICAL),this.expect(types$1.parenR),a},pp$8.parseTryStatement=function(a){if(this.next(),a.block=this.parseBlock(),a.handler=null,this.type===types$1._catch){var s=this.startNode();this.next(),this.eat(types$1.parenL)?s.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),s.param=null,this.enterScope(0)),s.body=this.parseBlock(!1),this.exitScope(),a.handler=this.finishNode(s,"CatchClause")}return a.finalizer=this.eat(types$1._finally)?this.parseBlock():null,!a.handler&&!a.finalizer&&this.raise(a.start,"Missing catch or finally clause"),this.finishNode(a,"TryStatement")},pp$8.parseVarStatement=function(a,s,c){return this.next(),this.parseVar(a,!1,s,c),this.semicolon(),this.finishNode(a,"VariableDeclaration")},pp$8.parseWhileStatement=function(a){return this.next(),a.test=this.parseParenExpression(),this.labels.push(loopLabel),a.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(a,"WhileStatement")},pp$8.parseWithStatement=function(a){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),a.object=this.parseParenExpression(),a.body=this.parseStatement("with"),this.finishNode(a,"WithStatement")},pp$8.parseEmptyStatement=function(a){return this.next(),this.finishNode(a,"EmptyStatement")},pp$8.parseLabeledStatement=function(a,s,c,u){for(var d=0,p=this.labels;d<p.length;d+=1){var v=p[d];v.name===s&&this.raise(c.start,"Label '"+s+"' is already declared")}for(var A=this.type.isLoop?"loop":this.type===types$1._switch?"switch":null,b=this.labels.length-1;b>=0;b--){var g=this.labels[b];if(g.statementStart===a.start)g.statementStart=this.start,g.kind=A;else break}return this.labels.push({name:s,kind:A,statementStart:this.start}),a.body=this.parseStatement(u?u.indexOf("label")===-1?u+"label":u:"label"),this.labels.pop(),a.label=c,this.finishNode(a,"LabeledStatement")},pp$8.parseExpressionStatement=function(a,s){return a.expression=s,this.semicolon(),this.finishNode(a,"ExpressionStatement")},pp$8.parseBlock=function(a,s,c){for(a===void 0&&(a=!0),s===void 0&&(s=this.startNode()),s.body=[],this.expect(types$1.braceL),a&&this.enterScope(0);this.type!==types$1.braceR;){var u=this.parseStatement(null);s.body.push(u)}return c&&(this.strict=!1),this.next(),a&&this.exitScope(),this.finishNode(s,"BlockStatement")},pp$8.parseFor=function(a,s){return a.init=s,this.expect(types$1.semi),a.test=this.type===types$1.semi?null:this.parseExpression(),this.expect(types$1.semi),a.update=this.type===types$1.parenR?null:this.parseExpression(),this.expect(types$1.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,"ForStatement")},pp$8.parseForIn=function(a,s){var c=this.type===types$1._in;return this.next(),s.type==="VariableDeclaration"&&s.declarations[0].init!=null&&(!c||this.options.ecmaVersion<8||this.strict||s.kind!=="var"||s.declarations[0].id.type!=="Identifier")&&this.raise(s.start,(c?"for-in":"for-of")+" loop variable declaration may not have an initializer"),a.left=s,a.right=c?this.parseExpression():this.parseMaybeAssign(),this.expect(types$1.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,c?"ForInStatement":"ForOfStatement")},pp$8.parseVar=function(a,s,c,u){for(a.declarations=[],a.kind=c;;){var d=this.startNode();if(this.parseVarId(d,c),this.eat(types$1.eq)?d.init=this.parseMaybeAssign(s):!u&&c==="const"&&!(this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!u&&d.id.type!=="Identifier"&&!(s&&(this.type===types$1._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):d.init=null,a.declarations.push(this.finishNode(d,"VariableDeclarator")),!this.eat(types$1.comma))break}return a},pp$8.parseVarId=function(a,s){a.id=this.parseBindingAtom(),this.checkLValPattern(a.id,s==="var"?BIND_VAR:BIND_LEXICAL,!1)};var FUNC_STATEMENT=1,FUNC_HANGING_STATEMENT=2,FUNC_NULLABLE_ID=4;pp$8.parseFunction=function(a,s,c,u,d){this.initFunction(a),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!u)&&(this.type===types$1.star&&s&FUNC_HANGING_STATEMENT&&this.unexpected(),a.generator=this.eat(types$1.star)),this.options.ecmaVersion>=8&&(a.async=!!u),s&FUNC_STATEMENT&&(a.id=s&FUNC_NULLABLE_ID&&this.type!==types$1.name?null:this.parseIdent(),a.id&&!(s&FUNC_HANGING_STATEMENT)&&this.checkLValSimple(a.id,this.strict||a.generator||a.async?this.treatFunctionsAsVar?BIND_VAR:BIND_LEXICAL:BIND_FUNCTION));var p=this.yieldPos,v=this.awaitPos,A=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(a.async,a.generator)),s&FUNC_STATEMENT||(a.id=this.type===types$1.name?this.parseIdent():null),this.parseFunctionParams(a),this.parseFunctionBody(a,c,!1,d),this.yieldPos=p,this.awaitPos=v,this.awaitIdentPos=A,this.finishNode(a,s&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")},pp$8.parseFunctionParams=function(a){this.expect(types$1.parenL),a.params=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},pp$8.parseClass=function(a,s){this.next();var c=this.strict;this.strict=!0,this.parseClassId(a,s),this.parseClassSuper(a);var u=this.enterClassBody(),d=this.startNode(),p=!1;for(d.body=[],this.expect(types$1.braceL);this.type!==types$1.braceR;){var v=this.parseClassElement(a.superClass!==null);v&&(d.body.push(v),v.type==="MethodDefinition"&&v.kind==="constructor"?(p&&this.raiseRecoverable(v.start,"Duplicate constructor in the same class"),p=!0):v.key&&v.key.type==="PrivateIdentifier"&&isPrivateNameConflicted(u,v)&&this.raiseRecoverable(v.key.start,"Identifier '#"+v.key.name+"' has already been declared"))}return this.strict=c,this.next(),a.body=this.finishNode(d,"ClassBody"),this.exitClassBody(),this.finishNode(a,s?"ClassDeclaration":"ClassExpression")},pp$8.parseClassElement=function(a){if(this.eat(types$1.semi))return null;var s=this.options.ecmaVersion,c=this.startNode(),u="",d=!1,p=!1,v="method",A=!1;if(this.eatContextual("static")){if(s>=13&&this.eat(types$1.braceL))return this.parseClassStaticBlock(c),c;this.isClassElementNameStart()||this.type===types$1.star?A=!0:u="static"}if(c.static=A,!u&&s>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===types$1.star)&&!this.canInsertSemicolon()?p=!0:u="async"),!u&&(s>=9||!p)&&this.eat(types$1.star)&&(d=!0),!u&&!p&&!d){var b=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?v=b:u=b)}if(u?(c.computed=!1,c.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),c.key.name=u,this.finishNode(c.key,"Identifier")):this.parseClassElementName(c),s<13||this.type===types$1.parenL||v!=="method"||d||p){var g=!c.static&&checkKeyName(c,"constructor"),x=g&&a;g&&v!=="method"&&this.raise(c.key.start,"Constructor can't have get/set modifier"),c.kind=g?"constructor":v,this.parseClassMethod(c,d,p,x)}else this.parseClassField(c);return c},pp$8.isClassElementNameStart=function(){return this.type===types$1.name||this.type===types$1.privateId||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword},pp$8.parseClassElementName=function(a){this.type===types$1.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),a.computed=!1,a.key=this.parsePrivateIdent()):this.parsePropertyName(a)},pp$8.parseClassMethod=function(a,s,c,u){var d=a.key;a.kind==="constructor"?(s&&this.raise(d.start,"Constructor can't be a generator"),c&&this.raise(d.start,"Constructor can't be an async method")):a.static&&checkKeyName(a,"prototype")&&this.raise(d.start,"Classes may not have a static property named prototype");var p=a.value=this.parseMethod(s,c,u);return a.kind==="get"&&p.params.length!==0&&this.raiseRecoverable(p.start,"getter should have no params"),a.kind==="set"&&p.params.length!==1&&this.raiseRecoverable(p.start,"setter should have exactly one param"),a.kind==="set"&&p.params[0].type==="RestElement"&&this.raiseRecoverable(p.params[0].start,"Setter cannot use rest params"),this.finishNode(a,"MethodDefinition")},pp$8.parseClassField=function(a){return checkKeyName(a,"constructor")?this.raise(a.key.start,"Classes can't have a field named 'constructor'"):a.static&&checkKeyName(a,"prototype")&&this.raise(a.key.start,"Classes can't have a static field named 'prototype'"),this.eat(types$1.eq)?(this.enterScope(SCOPE_CLASS_FIELD_INIT|SCOPE_SUPER),a.value=this.parseMaybeAssign(),this.exitScope()):a.value=null,this.semicolon(),this.finishNode(a,"PropertyDefinition")},pp$8.parseClassStaticBlock=function(a){a.body=[];var s=this.labels;for(this.labels=[],this.enterScope(SCOPE_CLASS_STATIC_BLOCK|SCOPE_SUPER);this.type!==types$1.braceR;){var c=this.parseStatement(null);a.body.push(c)}return this.next(),this.exitScope(),this.labels=s,this.finishNode(a,"StaticBlock")},pp$8.parseClassId=function(a,s){this.type===types$1.name?(a.id=this.parseIdent(),s&&this.checkLValSimple(a.id,BIND_LEXICAL,!1)):(s===!0&&this.unexpected(),a.id=null)},pp$8.parseClassSuper=function(a){a.superClass=this.eat(types$1._extends)?this.parseExprSubscripts(null,!1):null},pp$8.enterClassBody=function(){var a={declared:Object.create(null),used:[]};return this.privateNameStack.push(a),a.declared},pp$8.exitClassBody=function(){var a=this.privateNameStack.pop(),s=a.declared,c=a.used;if(this.options.checkPrivateFields)for(var u=this.privateNameStack.length,d=u===0?null:this.privateNameStack[u-1],p=0;p<c.length;++p){var v=c[p];hasOwn(s,v.name)||(d?d.used.push(v):this.raiseRecoverable(v.start,"Private field '#"+v.name+"' must be declared in an enclosing class"))}};function isPrivateNameConflicted(a,s){var c=s.key.name,u=a[c],d="true";return s.type==="MethodDefinition"&&(s.kind==="get"||s.kind==="set")&&(d=(s.static?"s":"i")+s.kind),u==="iget"&&d==="iset"||u==="iset"&&d==="iget"||u==="sget"&&d==="sset"||u==="sset"&&d==="sget"?(a[c]="true",!1):u?!0:(a[c]=d,!1)}function checkKeyName(a,s){var c=a.computed,u=a.key;return!c&&(u.type==="Identifier"&&u.name===s||u.type==="Literal"&&u.value===s)}pp$8.parseExportAllDeclaration=function(a,s){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(a.exported=this.parseModuleExportName(),this.checkExport(s,a.exported,this.lastTokStart)):a.exported=null),this.expectContextual("from"),this.type!==types$1.string&&this.unexpected(),a.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(a,"ExportAllDeclaration")},pp$8.parseExport=function(a,s){if(this.next(),this.eat(types$1.star))return this.parseExportAllDeclaration(a,s);if(this.eat(types$1._default))return this.checkExport(s,"default",this.lastTokStart),a.declaration=this.parseExportDefaultDeclaration(),this.finishNode(a,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())a.declaration=this.parseExportDeclaration(a),a.declaration.type==="VariableDeclaration"?this.checkVariableExport(s,a.declaration.declarations):this.checkExport(s,a.declaration.id,a.declaration.id.start),a.specifiers=[],a.source=null,this.options.ecmaVersion>=16&&(a.attributes=[]);else{if(a.declaration=null,a.specifiers=this.parseExportSpecifiers(s),this.eatContextual("from"))this.type!==types$1.string&&this.unexpected(),a.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause());else{for(var c=0,u=a.specifiers;c<u.length;c+=1){var d=u[c];this.checkUnreserved(d.local),this.checkLocalExport(d.local),d.local.type==="Literal"&&this.raise(d.local.start,"A string literal cannot be used as an exported binding without `from`.")}a.source=null,this.options.ecmaVersion>=16&&(a.attributes=[])}this.semicolon()}return this.finishNode(a,"ExportNamedDeclaration")},pp$8.parseExportDeclaration=function(a){return this.parseStatement(null)},pp$8.parseExportDefaultDeclaration=function(){var a;if(this.type===types$1._function||(a=this.isAsyncFunction())){var s=this.startNode();return this.next(),a&&this.next(),this.parseFunction(s,FUNC_STATEMENT|FUNC_NULLABLE_ID,!1,a)}else if(this.type===types$1._class){var c=this.startNode();return this.parseClass(c,"nullableID")}else{var u=this.parseMaybeAssign();return this.semicolon(),u}},pp$8.checkExport=function(a,s,c){a&&(typeof s!="string"&&(s=s.type==="Identifier"?s.name:s.value),hasOwn(a,s)&&this.raiseRecoverable(c,"Duplicate export '"+s+"'"),a[s]=!0)},pp$8.checkPatternExport=function(a,s){var c=s.type;if(c==="Identifier")this.checkExport(a,s,s.start);else if(c==="ObjectPattern")for(var u=0,d=s.properties;u<d.length;u+=1){var p=d[u];this.checkPatternExport(a,p)}else if(c==="ArrayPattern")for(var v=0,A=s.elements;v<A.length;v+=1){var b=A[v];b&&this.checkPatternExport(a,b)}else c==="Property"?this.checkPatternExport(a,s.value):c==="AssignmentPattern"?this.checkPatternExport(a,s.left):c==="RestElement"&&this.checkPatternExport(a,s.argument)},pp$8.checkVariableExport=function(a,s){if(a)for(var c=0,u=s;c<u.length;c+=1){var d=u[c];this.checkPatternExport(a,d.id)}},pp$8.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},pp$8.parseExportSpecifier=function(a){var s=this.startNode();return s.local=this.parseModuleExportName(),s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local,this.checkExport(a,s.exported,s.exported.start),this.finishNode(s,"ExportSpecifier")},pp$8.parseExportSpecifiers=function(a){var s=[],c=!0;for(this.expect(types$1.braceL);!this.eat(types$1.braceR);){if(c)c=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;s.push(this.parseExportSpecifier(a))}return s},pp$8.parseImport=function(a){return this.next(),this.type===types$1.string?(a.specifiers=empty$1,a.source=this.parseExprAtom()):(a.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),a.source=this.type===types$1.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(a.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(a,"ImportDeclaration")},pp$8.parseImportSpecifier=function(){var a=this.startNode();return a.imported=this.parseModuleExportName(),this.eatContextual("as")?a.local=this.parseIdent():(this.checkUnreserved(a.imported),a.local=a.imported),this.checkLValSimple(a.local,BIND_LEXICAL),this.finishNode(a,"ImportSpecifier")},pp$8.parseImportDefaultSpecifier=function(){var a=this.startNode();return a.local=this.parseIdent(),this.checkLValSimple(a.local,BIND_LEXICAL),this.finishNode(a,"ImportDefaultSpecifier")},pp$8.parseImportNamespaceSpecifier=function(){var a=this.startNode();return this.next(),this.expectContextual("as"),a.local=this.parseIdent(),this.checkLValSimple(a.local,BIND_LEXICAL),this.finishNode(a,"ImportNamespaceSpecifier")},pp$8.parseImportSpecifiers=function(){var a=[],s=!0;if(this.type===types$1.name&&(a.push(this.parseImportDefaultSpecifier()),!this.eat(types$1.comma)))return a;if(this.type===types$1.star)return a.push(this.parseImportNamespaceSpecifier()),a;for(this.expect(types$1.braceL);!this.eat(types$1.braceR);){if(s)s=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;a.push(this.parseImportSpecifier())}return a},pp$8.parseWithClause=function(){var a=[];if(!this.eat(types$1._with))return a;this.expect(types$1.braceL);for(var s={},c=!0;!this.eat(types$1.braceR);){if(c)c=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;var u=this.parseImportAttribute(),d=u.key.type==="Identifier"?u.key.name:u.key.value;hasOwn(s,d)&&this.raiseRecoverable(u.key.start,"Duplicate attribute key '"+d+"'"),s[d]=!0,a.push(u)}return a},pp$8.parseImportAttribute=function(){var a=this.startNode();return a.key=this.type===types$1.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(types$1.colon),this.type!==types$1.string&&this.unexpected(),a.value=this.parseExprAtom(),this.finishNode(a,"ImportAttribute")},pp$8.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===types$1.string){var a=this.parseLiteral(this.value);return loneSurrogate.test(a.value)&&this.raise(a.start,"An export name cannot include a lone surrogate."),a}return this.parseIdent(!0)},pp$8.adaptDirectivePrologue=function(a){for(var s=0;s<a.length&&this.isDirectiveCandidate(a[s]);++s)a[s].directive=a[s].expression.raw.slice(1,-1)},pp$8.isDirectiveCandidate=function(a){return this.options.ecmaVersion>=5&&a.type==="ExpressionStatement"&&a.expression.type==="Literal"&&typeof a.expression.value=="string"&&(this.input[a.start]==='"'||this.input[a.start]==="'")};var pp$7=Parser.prototype;pp$7.toAssignable=function(a,s,c){if(this.options.ecmaVersion>=6&&a)switch(a.type){case"Identifier":this.inAsync&&a.name==="await"&&this.raise(a.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":a.type="ObjectPattern",c&&this.checkPatternErrors(c,!0);for(var u=0,d=a.properties;u<d.length;u+=1){var p=d[u];this.toAssignable(p,s),p.type==="RestElement"&&(p.argument.type==="ArrayPattern"||p.argument.type==="ObjectPattern")&&this.raise(p.argument.start,"Unexpected token")}break;case"Property":a.kind!=="init"&&this.raise(a.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(a.value,s);break;case"ArrayExpression":a.type="ArrayPattern",c&&this.checkPatternErrors(c,!0),this.toAssignableList(a.elements,s);break;case"SpreadElement":a.type="RestElement",this.toAssignable(a.argument,s),a.argument.type==="AssignmentPattern"&&this.raise(a.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":a.operator!=="="&&this.raise(a.left.end,"Only '=' operator can be used for specifying default value."),a.type="AssignmentPattern",delete a.operator,this.toAssignable(a.left,s);break;case"ParenthesizedExpression":this.toAssignable(a.expression,s,c);break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!s)break;default:this.raise(a.start,"Assigning to rvalue")}else c&&this.checkPatternErrors(c,!0);return a},pp$7.toAssignableList=function(a,s){for(var c=a.length,u=0;u<c;u++){var d=a[u];d&&this.toAssignable(d,s)}if(c){var p=a[c-1];this.options.ecmaVersion===6&&s&&p&&p.type==="RestElement"&&p.argument.type!=="Identifier"&&this.unexpected(p.argument.start)}return a},pp$7.parseSpread=function(a){var s=this.startNode();return this.next(),s.argument=this.parseMaybeAssign(!1,a),this.finishNode(s,"SpreadElement")},pp$7.parseRestBinding=function(){var a=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==types$1.name&&this.unexpected(),a.argument=this.parseBindingAtom(),this.finishNode(a,"RestElement")},pp$7.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case types$1.bracketL:var a=this.startNode();return this.next(),a.elements=this.parseBindingList(types$1.bracketR,!0,!0),this.finishNode(a,"ArrayPattern");case types$1.braceL:return this.parseObj(!0)}return this.parseIdent()},pp$7.parseBindingList=function(a,s,c,u){for(var d=[],p=!0;!this.eat(a);)if(p?p=!1:this.expect(types$1.comma),s&&this.type===types$1.comma)d.push(null);else{if(c&&this.afterTrailingComma(a))break;if(this.type===types$1.ellipsis){var v=this.parseRestBinding();this.parseBindingListItem(v),d.push(v),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(a);break}else d.push(this.parseAssignableListItem(u))}return d},pp$7.parseAssignableListItem=function(a){var s=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(s),s},pp$7.parseBindingListItem=function(a){return a},pp$7.parseMaybeDefault=function(a,s,c){if(c=c||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(types$1.eq))return c;var u=this.startNodeAt(a,s);return u.left=c,u.right=this.parseMaybeAssign(),this.finishNode(u,"AssignmentPattern")},pp$7.checkLValSimple=function(a,s,c){s===void 0&&(s=BIND_NONE);var u=s!==BIND_NONE;switch(a.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(a.name)&&this.raiseRecoverable(a.start,(u?"Binding ":"Assigning to ")+a.name+" in strict mode"),u&&(s===BIND_LEXICAL&&a.name==="let"&&this.raiseRecoverable(a.start,"let is disallowed as a lexically bound name"),c&&(hasOwn(c,a.name)&&this.raiseRecoverable(a.start,"Argument name clash"),c[a.name]=!0),s!==BIND_OUTSIDE&&this.declareName(a.name,s,a.start));break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":u&&this.raiseRecoverable(a.start,"Binding member expression");break;case"ParenthesizedExpression":return u&&this.raiseRecoverable(a.start,"Binding parenthesized expression"),this.checkLValSimple(a.expression,s,c);default:this.raise(a.start,(u?"Binding":"Assigning to")+" rvalue")}},pp$7.checkLValPattern=function(a,s,c){switch(s===void 0&&(s=BIND_NONE),a.type){case"ObjectPattern":for(var u=0,d=a.properties;u<d.length;u+=1){var p=d[u];this.checkLValInnerPattern(p,s,c)}break;case"ArrayPattern":for(var v=0,A=a.elements;v<A.length;v+=1){var b=A[v];b&&this.checkLValInnerPattern(b,s,c)}break;default:this.checkLValSimple(a,s,c)}},pp$7.checkLValInnerPattern=function(a,s,c){switch(s===void 0&&(s=BIND_NONE),a.type){case"Property":this.checkLValInnerPattern(a.value,s,c);break;case"AssignmentPattern":this.checkLValPattern(a.left,s,c);break;case"RestElement":this.checkLValPattern(a.argument,s,c);break;default:this.checkLValPattern(a,s,c)}};var TokContext=function(s,c,u,d,p){this.token=s,this.isExpr=!!c,this.preserveSpace=!!u,this.override=d,this.generator=!!p},types$2={b_stat:new TokContext("{",!1),b_expr:new TokContext("{",!0),b_tmpl:new TokContext("${",!1),p_stat:new TokContext("(",!1),p_expr:new TokContext("(",!0),q_tmpl:new TokContext("`",!0,!0,function(a){return a.tryReadTemplateToken()}),f_stat:new TokContext("function",!1),f_expr:new TokContext("function",!0),f_expr_gen:new TokContext("function",!0,!1,null,!0),f_gen:new TokContext("function",!1,!1,null,!0)},pp$6=Parser.prototype;pp$6.initialContext=function(){return[types$2.b_stat]},pp$6.curContext=function(){return this.context[this.context.length-1]},pp$6.braceIsBlock=function(a){var s=this.curContext();return s===types$2.f_expr||s===types$2.f_stat?!0:a===types$1.colon&&(s===types$2.b_stat||s===types$2.b_expr)?!s.isExpr:a===types$1._return||a===types$1.name&&this.exprAllowed?lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):a===types$1._else||a===types$1.semi||a===types$1.eof||a===types$1.parenR||a===types$1.arrow?!0:a===types$1.braceL?s===types$2.b_stat:a===types$1._var||a===types$1._const||a===types$1.name?!1:!this.exprAllowed},pp$6.inGeneratorContext=function(){for(var a=this.context.length-1;a>=1;a--){var s=this.context[a];if(s.token==="function")return s.generator}return!1},pp$6.updateContext=function(a){var s,c=this.type;c.keyword&&a===types$1.dot?this.exprAllowed=!1:(s=c.updateContext)?s.call(this,a):this.exprAllowed=c.beforeExpr},pp$6.overrideContext=function(a){this.curContext()!==a&&(this.context[this.context.length-1]=a)},types$1.parenR.updateContext=types$1.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var a=this.context.pop();a===types$2.b_stat&&this.curContext().token==="function"&&(a=this.context.pop()),this.exprAllowed=!a.isExpr},types$1.braceL.updateContext=function(a){this.context.push(this.braceIsBlock(a)?types$2.b_stat:types$2.b_expr),this.exprAllowed=!0},types$1.dollarBraceL.updateContext=function(){this.context.push(types$2.b_tmpl),this.exprAllowed=!0},types$1.parenL.updateContext=function(a){var s=a===types$1._if||a===types$1._for||a===types$1._with||a===types$1._while;this.context.push(s?types$2.p_stat:types$2.p_expr),this.exprAllowed=!0},types$1.incDec.updateContext=function(){},types$1._function.updateContext=types$1._class.updateContext=function(a){a.beforeExpr&&a!==types$1._else&&!(a===types$1.semi&&this.curContext()!==types$2.p_stat)&&!(a===types$1._return&&lineBreak.test(this.input.slice(this.lastTokEnd,this.start)))&&!((a===types$1.colon||a===types$1.braceL)&&this.curContext()===types$2.b_stat)?this.context.push(types$2.f_expr):this.context.push(types$2.f_stat),this.exprAllowed=!1},types$1.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},types$1.backQuote.updateContext=function(){this.curContext()===types$2.q_tmpl?this.context.pop():this.context.push(types$2.q_tmpl),this.exprAllowed=!1},types$1.star.updateContext=function(a){if(a===types$1._function){var s=this.context.length-1;this.context[s]===types$2.f_expr?this.context[s]=types$2.f_expr_gen:this.context[s]=types$2.f_gen}this.exprAllowed=!0},types$1.name.updateContext=function(a){var s=!1;this.options.ecmaVersion>=6&&a!==types$1.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(s=!0),this.exprAllowed=s};var pp$5=Parser.prototype;pp$5.checkPropClash=function(a,s,c){if(!(this.options.ecmaVersion>=9&&a.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(a.computed||a.method||a.shorthand))){var u=a.key,d;switch(u.type){case"Identifier":d=u.name;break;case"Literal":d=String(u.value);break;default:return}var p=a.kind;if(this.options.ecmaVersion>=6){d==="__proto__"&&p==="init"&&(s.proto&&(c?c.doubleProto<0&&(c.doubleProto=u.start):this.raiseRecoverable(u.start,"Redefinition of __proto__ property")),s.proto=!0);return}d="$"+d;var v=s[d];if(v){var A;p==="init"?A=this.strict&&v.init||v.get||v.set:A=v.init||v[p],A&&this.raiseRecoverable(u.start,"Redefinition of property")}else v=s[d]={init:!1,get:!1,set:!1};v[p]=!0}},pp$5.parseExpression=function(a,s){var c=this.start,u=this.startLoc,d=this.parseMaybeAssign(a,s);if(this.type===types$1.comma){var p=this.startNodeAt(c,u);for(p.expressions=[d];this.eat(types$1.comma);)p.expressions.push(this.parseMaybeAssign(a,s));return this.finishNode(p,"SequenceExpression")}return d},pp$5.parseMaybeAssign=function(a,s,c){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(a);this.exprAllowed=!1}var u=!1,d=-1,p=-1,v=-1;s?(d=s.parenthesizedAssign,p=s.trailingComma,v=s.doubleProto,s.parenthesizedAssign=s.trailingComma=-1):(s=new DestructuringErrors,u=!0);var A=this.start,b=this.startLoc;(this.type===types$1.parenL||this.type===types$1.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=a==="await");var g=this.parseMaybeConditional(a,s);if(c&&(g=c.call(this,g,A,b)),this.type.isAssign){var x=this.startNodeAt(A,b);return x.operator=this.value,this.type===types$1.eq&&(g=this.toAssignable(g,!1,s)),u||(s.parenthesizedAssign=s.trailingComma=s.doubleProto=-1),s.shorthandAssign>=g.start&&(s.shorthandAssign=-1),this.type===types$1.eq?this.checkLValPattern(g):this.checkLValSimple(g),x.left=g,this.next(),x.right=this.parseMaybeAssign(a),v>-1&&(s.doubleProto=v),this.finishNode(x,"AssignmentExpression")}else u&&this.checkExpressionErrors(s,!0);return d>-1&&(s.parenthesizedAssign=d),p>-1&&(s.trailingComma=p),g},pp$5.parseMaybeConditional=function(a,s){var c=this.start,u=this.startLoc,d=this.parseExprOps(a,s);if(this.checkExpressionErrors(s))return d;if(this.eat(types$1.question)){var p=this.startNodeAt(c,u);return p.test=d,p.consequent=this.parseMaybeAssign(),this.expect(types$1.colon),p.alternate=this.parseMaybeAssign(a),this.finishNode(p,"ConditionalExpression")}return d},pp$5.parseExprOps=function(a,s){var c=this.start,u=this.startLoc,d=this.parseMaybeUnary(s,!1,!1,a);return this.checkExpressionErrors(s)||d.start===c&&d.type==="ArrowFunctionExpression"?d:this.parseExprOp(d,c,u,-1,a)},pp$5.parseExprOp=function(a,s,c,u,d){var p=this.type.binop;if(p!=null&&(!d||this.type!==types$1._in)&&p>u){var v=this.type===types$1.logicalOR||this.type===types$1.logicalAND,A=this.type===types$1.coalesce;A&&(p=types$1.logicalAND.binop);var b=this.value;this.next();var g=this.start,x=this.startLoc,y=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,d),g,x,p,d),f=this.buildBinary(s,c,a,y,b,v||A);return(v&&this.type===types$1.coalesce||A&&(this.type===types$1.logicalOR||this.type===types$1.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(f,s,c,u,d)}return a},pp$5.buildBinary=function(a,s,c,u,d,p){u.type==="PrivateIdentifier"&&this.raise(u.start,"Private identifier can only be left side of binary expression");var v=this.startNodeAt(a,s);return v.left=c,v.operator=d,v.right=u,this.finishNode(v,p?"LogicalExpression":"BinaryExpression")},pp$5.parseMaybeUnary=function(a,s,c,u){var d=this.start,p=this.startLoc,v;if(this.isContextual("await")&&this.canAwait)v=this.parseAwait(u),s=!0;else if(this.type.prefix){var A=this.startNode(),b=this.type===types$1.incDec;A.operator=this.value,A.prefix=!0,this.next(),A.argument=this.parseMaybeUnary(null,!0,b,u),this.checkExpressionErrors(a,!0),b?this.checkLValSimple(A.argument):this.strict&&A.operator==="delete"&&isLocalVariableAccess(A.argument)?this.raiseRecoverable(A.start,"Deleting local variable in strict mode"):A.operator==="delete"&&isPrivateFieldAccess(A.argument)?this.raiseRecoverable(A.start,"Private fields can not be deleted"):s=!0,v=this.finishNode(A,b?"UpdateExpression":"UnaryExpression")}else if(!s&&this.type===types$1.privateId)(u||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),v=this.parsePrivateIdent(),this.type!==types$1._in&&this.unexpected();else{if(v=this.parseExprSubscripts(a,u),this.checkExpressionErrors(a))return v;for(;this.type.postfix&&!this.canInsertSemicolon();){var g=this.startNodeAt(d,p);g.operator=this.value,g.prefix=!1,g.argument=v,this.checkLValSimple(v),this.next(),v=this.finishNode(g,"UpdateExpression")}}if(!c&&this.eat(types$1.starstar))if(s)this.unexpected(this.lastTokStart);else return this.buildBinary(d,p,v,this.parseMaybeUnary(null,!1,!1,u),"**",!1);else return v};function isLocalVariableAccess(a){return a.type==="Identifier"||a.type==="ParenthesizedExpression"&&isLocalVariableAccess(a.expression)}function isPrivateFieldAccess(a){return a.type==="MemberExpression"&&a.property.type==="PrivateIdentifier"||a.type==="ChainExpression"&&isPrivateFieldAccess(a.expression)||a.type==="ParenthesizedExpression"&&isPrivateFieldAccess(a.expression)}pp$5.parseExprSubscripts=function(a,s){var c=this.start,u=this.startLoc,d=this.parseExprAtom(a,s);if(d.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return d;var p=this.parseSubscripts(d,c,u,!1,s);return a&&p.type==="MemberExpression"&&(a.parenthesizedAssign>=p.start&&(a.parenthesizedAssign=-1),a.parenthesizedBind>=p.start&&(a.parenthesizedBind=-1),a.trailingComma>=p.start&&(a.trailingComma=-1)),p},pp$5.parseSubscripts=function(a,s,c,u,d){for(var p=this.options.ecmaVersion>=8&&a.type==="Identifier"&&a.name==="async"&&this.lastTokEnd===a.end&&!this.canInsertSemicolon()&&a.end-a.start===5&&this.potentialArrowAt===a.start,v=!1;;){var A=this.parseSubscript(a,s,c,u,p,v,d);if(A.optional&&(v=!0),A===a||A.type==="ArrowFunctionExpression"){if(v){var b=this.startNodeAt(s,c);b.expression=A,A=this.finishNode(b,"ChainExpression")}return A}a=A}},pp$5.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(types$1.arrow)},pp$5.parseSubscriptAsyncArrow=function(a,s,c,u){return this.parseArrowExpression(this.startNodeAt(a,s),c,!0,u)},pp$5.parseSubscript=function(a,s,c,u,d,p,v){var A=this.options.ecmaVersion>=11,b=A&&this.eat(types$1.questionDot);u&&b&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var g=this.eat(types$1.bracketL);if(g||b&&this.type!==types$1.parenL&&this.type!==types$1.backQuote||this.eat(types$1.dot)){var x=this.startNodeAt(s,c);x.object=a,g?(x.property=this.parseExpression(),this.expect(types$1.bracketR)):this.type===types$1.privateId&&a.type!=="Super"?x.property=this.parsePrivateIdent():x.property=this.parseIdent(this.options.allowReserved!=="never"),x.computed=!!g,A&&(x.optional=b),a=this.finishNode(x,"MemberExpression")}else if(!u&&this.eat(types$1.parenL)){var y=new DestructuringErrors,f=this.yieldPos,m=this.awaitPos,C=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var S=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,!1,y);if(d&&!b&&this.shouldParseAsyncArrow())return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=f,this.awaitPos=m,this.awaitIdentPos=C,this.parseSubscriptAsyncArrow(s,c,S,v);this.checkExpressionErrors(y,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=C||this.awaitIdentPos;var w=this.startNodeAt(s,c);w.callee=a,w.arguments=S,A&&(w.optional=b),a=this.finishNode(w,"CallExpression")}else if(this.type===types$1.backQuote){(b||p)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var I=this.startNodeAt(s,c);I.tag=a,I.quasi=this.parseTemplate({isTagged:!0}),a=this.finishNode(I,"TaggedTemplateExpression")}return a},pp$5.parseExprAtom=function(a,s,c){this.type===types$1.slash&&this.readRegexp();var u,d=this.potentialArrowAt===this.start;switch(this.type){case types$1._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),u=this.startNode(),this.next(),this.type===types$1.parenL&&!this.allowDirectSuper&&this.raise(u.start,"super() call outside constructor of a subclass"),this.type!==types$1.dot&&this.type!==types$1.bracketL&&this.type!==types$1.parenL&&this.unexpected(),this.finishNode(u,"Super");case types$1._this:return u=this.startNode(),this.next(),this.finishNode(u,"ThisExpression");case types$1.name:var p=this.start,v=this.startLoc,A=this.containsEsc,b=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!A&&b.name==="async"&&!this.canInsertSemicolon()&&this.eat(types$1._function))return this.overrideContext(types$2.f_expr),this.parseFunction(this.startNodeAt(p,v),0,!1,!0,s);if(d&&!this.canInsertSemicolon()){if(this.eat(types$1.arrow))return this.parseArrowExpression(this.startNodeAt(p,v),[b],!1,s);if(this.options.ecmaVersion>=8&&b.name==="async"&&this.type===types$1.name&&!A&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return b=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(types$1.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(p,v),[b],!0,s)}return b;case types$1.regexp:var g=this.value;return u=this.parseLiteral(g.value),u.regex={pattern:g.pattern,flags:g.flags},u;case types$1.num:case types$1.string:return this.parseLiteral(this.value);case types$1._null:case types$1._true:case types$1._false:return u=this.startNode(),u.value=this.type===types$1._null?null:this.type===types$1._true,u.raw=this.type.keyword,this.next(),this.finishNode(u,"Literal");case types$1.parenL:var x=this.start,y=this.parseParenAndDistinguishExpression(d,s);return a&&(a.parenthesizedAssign<0&&!this.isSimpleAssignTarget(y)&&(a.parenthesizedAssign=x),a.parenthesizedBind<0&&(a.parenthesizedBind=x)),y;case types$1.bracketL:return u=this.startNode(),this.next(),u.elements=this.parseExprList(types$1.bracketR,!0,!0,a),this.finishNode(u,"ArrayExpression");case types$1.braceL:return this.overrideContext(types$2.b_expr),this.parseObj(!1,a);case types$1._function:return u=this.startNode(),this.next(),this.parseFunction(u,0);case types$1._class:return this.parseClass(this.startNode(),!1);case types$1._new:return this.parseNew();case types$1.backQuote:return this.parseTemplate();case types$1._import:return this.options.ecmaVersion>=11?this.parseExprImport(c):this.unexpected();default:return this.parseExprAtomDefault()}},pp$5.parseExprAtomDefault=function(){this.unexpected()},pp$5.parseExprImport=function(a){var s=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===types$1.parenL&&!a)return this.parseDynamicImport(s);if(this.type===types$1.dot){var c=this.startNodeAt(s.start,s.loc&&s.loc.start);return c.name="import",s.meta=this.finishNode(c,"Identifier"),this.parseImportMeta(s)}else this.unexpected()},pp$5.parseDynamicImport=function(a){if(this.next(),a.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(types$1.parenR)?a.options=null:(this.expect(types$1.comma),this.afterTrailingComma(types$1.parenR)?a.options=null:(a.options=this.parseMaybeAssign(),this.eat(types$1.parenR)||(this.expect(types$1.comma),this.afterTrailingComma(types$1.parenR)||this.unexpected())));else if(!this.eat(types$1.parenR)){var s=this.start;this.eat(types$1.comma)&&this.eat(types$1.parenR)?this.raiseRecoverable(s,"Trailing comma is not allowed in import()"):this.unexpected(s)}return this.finishNode(a,"ImportExpression")},pp$5.parseImportMeta=function(a){this.next();var s=this.containsEsc;return a.property=this.parseIdent(!0),a.property.name!=="meta"&&this.raiseRecoverable(a.property.start,"The only valid meta property for import is 'import.meta'"),s&&this.raiseRecoverable(a.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(a.start,"Cannot use 'import.meta' outside a module"),this.finishNode(a,"MetaProperty")},pp$5.parseLiteral=function(a){var s=this.startNode();return s.value=a,s.raw=this.input.slice(this.start,this.end),s.raw.charCodeAt(s.raw.length-1)===110&&(s.bigint=s.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(s,"Literal")},pp$5.parseParenExpression=function(){this.expect(types$1.parenL);var a=this.parseExpression();return this.expect(types$1.parenR),a},pp$5.shouldParseArrow=function(a){return!this.canInsertSemicolon()},pp$5.parseParenAndDistinguishExpression=function(a,s){var c=this.start,u=this.startLoc,d,p=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var v=this.start,A=this.startLoc,b=[],g=!0,x=!1,y=new DestructuringErrors,f=this.yieldPos,m=this.awaitPos,C;for(this.yieldPos=0,this.awaitPos=0;this.type!==types$1.parenR;)if(g?g=!1:this.expect(types$1.comma),p&&this.afterTrailingComma(types$1.parenR,!0)){x=!0;break}else if(this.type===types$1.ellipsis){C=this.start,b.push(this.parseParenItem(this.parseRestBinding())),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else b.push(this.parseMaybeAssign(!1,y,this.parseParenItem));var S=this.lastTokEnd,w=this.lastTokEndLoc;if(this.expect(types$1.parenR),a&&this.shouldParseArrow(b)&&this.eat(types$1.arrow))return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=m,this.parseParenArrowList(c,u,b,s);(!b.length||x)&&this.unexpected(this.lastTokStart),C&&this.unexpected(C),this.checkExpressionErrors(y,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=m||this.awaitPos,b.length>1?(d=this.startNodeAt(v,A),d.expressions=b,this.finishNodeAt(d,"SequenceExpression",S,w)):d=b[0]}else d=this.parseParenExpression();if(this.options.preserveParens){var I=this.startNodeAt(c,u);return I.expression=d,this.finishNode(I,"ParenthesizedExpression")}else return d},pp$5.parseParenItem=function(a){return a},pp$5.parseParenArrowList=function(a,s,c,u){return this.parseArrowExpression(this.startNodeAt(a,s),c,!1,u)};var empty$2=[];pp$5.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var a=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===types$1.dot){var s=this.startNodeAt(a.start,a.loc&&a.loc.start);s.name="new",a.meta=this.finishNode(s,"Identifier"),this.next();var c=this.containsEsc;return a.property=this.parseIdent(!0),a.property.name!=="target"&&this.raiseRecoverable(a.property.start,"The only valid meta property for new is 'new.target'"),c&&this.raiseRecoverable(a.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(a.start,"'new.target' can only be used in functions and class static block"),this.finishNode(a,"MetaProperty")}var u=this.start,d=this.startLoc;return a.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),u,d,!0,!1),this.eat(types$1.parenL)?a.arguments=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,!1):a.arguments=empty$2,this.finishNode(a,"NewExpression")},pp$5.parseTemplateElement=function(a){var s=a.isTagged,c=this.startNode();return this.type===types$1.invalidTemplate?(s||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),c.value={raw:this.value.replace(/\r\n?/g,`
|
53
53
|
`),cooked:null}):c.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
54
|
-
`),cooked:this.value},this.next(),c.tail=this.type===types$1.backQuote,this.finishNode(c,"TemplateElement")},pp$5.parseTemplate=function(a){a===void 0&&(a={});var s=a.isTagged;s===void 0&&(s=!1);var c=this.startNode();this.next(),c.expressions=[];var u=this.parseTemplateElement({isTagged:s});for(c.quasis=[u];!u.tail;)this.type===types$1.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(types$1.dollarBraceL),c.expressions.push(this.parseExpression()),this.expect(types$1.braceR),c.quasis.push(u=this.parseTemplateElement({isTagged:s}));return this.next(),this.finishNode(c,"TemplateLiteral")},pp$5.isAsyncProp=function(a){return!a.computed&&a.key.type==="Identifier"&&a.key.name==="async"&&(this.type===types$1.name||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types$1.star)&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$5.parseObj=function(a,s){var c=this.startNode(),u=!0,d={};for(c.properties=[],this.next();!this.eat(types$1.braceR);){if(u)u=!1;else if(this.expect(types$1.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(types$1.braceR))break;var p=this.parseProperty(a,s);a||this.checkPropClash(p,d,s),c.properties.push(p)}return this.finishNode(c,a?"ObjectPattern":"ObjectExpression")},pp$5.parseProperty=function(a,s){var c=this.startNode(),u,d,p,v;if(this.options.ecmaVersion>=9&&this.eat(types$1.ellipsis))return a?(c.argument=this.parseIdent(!1),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(c,"RestElement")):(c.argument=this.parseMaybeAssign(!1,s),this.type===types$1.comma&&s&&s.trailingComma<0&&(s.trailingComma=this.start),this.finishNode(c,"SpreadElement"));this.options.ecmaVersion>=6&&(c.method=!1,c.shorthand=!1,(a||s)&&(p=this.start,v=this.startLoc),a||(u=this.eat(types$1.star)));var A=this.containsEsc;return this.parsePropertyName(c),!a&&!A&&this.options.ecmaVersion>=8&&!u&&this.isAsyncProp(c)?(d=!0,u=this.options.ecmaVersion>=9&&this.eat(types$1.star),this.parsePropertyName(c)):d=!1,this.parsePropertyValue(c,a,u,d,p,v,s,A),this.finishNode(c,"Property")},pp$5.parseGetterSetter=function(a){a.kind=a.key.name,this.parsePropertyName(a),a.value=this.parseMethod(!1);var s=a.kind==="get"?0:1;if(a.value.params.length!==s){var c=a.value.start;a.kind==="get"?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"setter should have exactly one param")}else a.kind==="set"&&a.value.params[0].type==="RestElement"&&this.raiseRecoverable(a.value.params[0].start,"Setter cannot use rest params")},pp$5.parsePropertyValue=function(a,s,c,u,d,p,v,A){(c||u)&&this.type===types$1.colon&&this.unexpected(),this.eat(types$1.colon)?(a.value=s?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,v),a.kind="init"):this.options.ecmaVersion>=6&&this.type===types$1.parenL?(s&&this.unexpected(),a.kind="init",a.method=!0,a.value=this.parseMethod(c,u)):!s&&!A&&this.options.ecmaVersion>=5&&!a.computed&&a.key.type==="Identifier"&&(a.key.name==="get"||a.key.name==="set")&&this.type!==types$1.comma&&this.type!==types$1.braceR&&this.type!==types$1.eq?((c||u)&&this.unexpected(),this.parseGetterSetter(a)):this.options.ecmaVersion>=6&&!a.computed&&a.key.type==="Identifier"?((c||u)&&this.unexpected(),this.checkUnreserved(a.key),a.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=d),a.kind="init",s?a.value=this.parseMaybeDefault(d,p,this.copyNode(a.key)):this.type===types$1.eq&&v?(v.shorthandAssign<0&&(v.shorthandAssign=this.start),a.value=this.parseMaybeDefault(d,p,this.copyNode(a.key))):a.value=this.copyNode(a.key),a.shorthand=!0):this.unexpected()},pp$5.parsePropertyName=function(a){if(this.options.ecmaVersion>=6){if(this.eat(types$1.bracketL))return a.computed=!0,a.key=this.parseMaybeAssign(),this.expect(types$1.bracketR),a.key;a.computed=!1}return a.key=this.type===types$1.num||this.type===types$1.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},pp$5.initFunction=function(a){a.id=null,this.options.ecmaVersion>=6&&(a.generator=a.expression=!1),this.options.ecmaVersion>=8&&(a.async=!1)},pp$5.parseMethod=function(a,s,c){var u=this.startNode(),d=this.yieldPos,p=this.awaitPos,v=this.awaitIdentPos;return this.initFunction(u),this.options.ecmaVersion>=6&&(u.generator=a),this.options.ecmaVersion>=8&&(u.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(s,u.generator)|SCOPE_SUPER|(c?SCOPE_DIRECT_SUPER:0)),this.expect(types$1.parenL),u.params=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(u,!1,!0,!1),this.yieldPos=d,this.awaitPos=p,this.awaitIdentPos=v,this.finishNode(u,"FunctionExpression")},pp$5.parseArrowExpression=function(a,s,c,u){var d=this.yieldPos,p=this.awaitPos,v=this.awaitIdentPos;return this.enterScope(functionFlags(c,!1)|SCOPE_ARROW),this.initFunction(a),this.options.ecmaVersion>=8&&(a.async=!!c),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,a.params=this.toAssignableList(s,!0),this.parseFunctionBody(a,!0,!1,u),this.yieldPos=d,this.awaitPos=p,this.awaitIdentPos=v,this.finishNode(a,"ArrowFunctionExpression")},pp$5.parseFunctionBody=function(a,s,c,u){var d=s&&this.type!==types$1.braceL,p=this.strict,v=!1;if(d)a.body=this.parseMaybeAssign(u),a.expression=!0,this.checkParams(a,!1);else{var A=this.options.ecmaVersion>=7&&!this.isSimpleParamList(a.params);(!p||A)&&(v=this.strictDirective(this.end),v&&A&&this.raiseRecoverable(a.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var b=this.labels;this.labels=[],v&&(this.strict=!0),this.checkParams(a,!p&&!v&&!s&&!c&&this.isSimpleParamList(a.params)),this.strict&&a.id&&this.checkLValSimple(a.id,BIND_OUTSIDE),a.body=this.parseBlock(!1,void 0,v&&!p),a.expression=!1,this.adaptDirectivePrologue(a.body.body),this.labels=b}this.exitScope()},pp$5.isSimpleParamList=function(a){for(var s=0,c=a;s<c.length;s+=1){var u=c[s];if(u.type!=="Identifier")return!1}return!0},pp$5.checkParams=function(a,s){for(var c=Object.create(null),u=0,d=a.params;u<d.length;u+=1){var p=d[u];this.checkLValInnerPattern(p,BIND_VAR,s?null:c)}},pp$5.parseExprList=function(a,s,c,u){for(var d=[],p=!0;!this.eat(a);){if(p)p=!1;else if(this.expect(types$1.comma),s&&this.afterTrailingComma(a))break;var v=void 0;c&&this.type===types$1.comma?v=null:this.type===types$1.ellipsis?(v=this.parseSpread(u),u&&this.type===types$1.comma&&u.trailingComma<0&&(u.trailingComma=this.start)):v=this.parseMaybeAssign(!1,u),d.push(v)}return d},pp$5.checkUnreserved=function(a){var s=a.start,c=a.end,u=a.name;if(this.inGenerator&&u==="yield"&&this.raiseRecoverable(s,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&u==="await"&&this.raiseRecoverable(s,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&u==="arguments"&&this.raiseRecoverable(s,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(u==="arguments"||u==="await")&&this.raise(s,"Cannot use "+u+" in class static initialization block"),this.keywords.test(u)&&this.raise(s,"Unexpected keyword '"+u+"'"),!(this.options.ecmaVersion<6&&this.input.slice(s,c).indexOf("\\")!==-1)){var d=this.strict?this.reservedWordsStrict:this.reservedWords;d.test(u)&&(!this.inAsync&&u==="await"&&this.raiseRecoverable(s,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(s,"The keyword '"+u+"' is reserved"))}},pp$5.parseIdent=function(a){var s=this.parseIdentNode();return this.next(!!a),this.finishNode(s,"Identifier"),a||(this.checkUnreserved(s),s.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=s.start)),s},pp$5.parseIdentNode=function(){var a=this.startNode();return this.type===types$1.name?a.name=this.value:this.type.keyword?(a.name=this.type.keyword,(a.name==="class"||a.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=types$1.name):this.unexpected(),a},pp$5.parsePrivateIdent=function(){var a=this.startNode();return this.type===types$1.privateId?a.name=this.value:this.unexpected(),this.next(),this.finishNode(a,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(a)),a},pp$5.parseYield=function(a){this.yieldPos||(this.yieldPos=this.start);var s=this.startNode();return this.next(),this.type===types$1.semi||this.canInsertSemicolon()||this.type!==types$1.star&&!this.type.startsExpr?(s.delegate=!1,s.argument=null):(s.delegate=this.eat(types$1.star),s.argument=this.parseMaybeAssign(a)),this.finishNode(s,"YieldExpression")},pp$5.parseAwait=function(a){this.awaitPos||(this.awaitPos=this.start);var s=this.startNode();return this.next(),s.argument=this.parseMaybeUnary(null,!0,!1,a),this.finishNode(s,"AwaitExpression")};var pp$4=Parser.prototype;pp$4.raise=function(a,s){var c=getLineInfo(this.input,a);s+=" ("+c.line+":"+c.column+")";var u=new SyntaxError(s);throw u.pos=a,u.loc=c,u.raisedAt=this.pos,u},pp$4.raiseRecoverable=pp$4.raise,pp$4.curPosition=function(){if(this.options.locations)return new Position(this.curLine,this.pos-this.lineStart)};var pp$3=Parser.prototype,Scope=function(s){this.flags=s,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};pp$3.enterScope=function(a){this.scopeStack.push(new Scope(a))},pp$3.exitScope=function(){this.scopeStack.pop()},pp$3.treatFunctionsAsVarInScope=function(a){return a.flags&SCOPE_FUNCTION||!this.inModule&&a.flags&SCOPE_TOP},pp$3.declareName=function(a,s,c){var u=!1;if(s===BIND_LEXICAL){var d=this.currentScope();u=d.lexical.indexOf(a)>-1||d.functions.indexOf(a)>-1||d.var.indexOf(a)>-1,d.lexical.push(a),this.inModule&&d.flags&SCOPE_TOP&&delete this.undefinedExports[a]}else if(s===BIND_SIMPLE_CATCH){var p=this.currentScope();p.lexical.push(a)}else if(s===BIND_FUNCTION){var v=this.currentScope();this.treatFunctionsAsVar?u=v.lexical.indexOf(a)>-1:u=v.lexical.indexOf(a)>-1||v.var.indexOf(a)>-1,v.functions.push(a)}else for(var A=this.scopeStack.length-1;A>=0;--A){var b=this.scopeStack[A];if(b.lexical.indexOf(a)>-1&&!(b.flags&SCOPE_SIMPLE_CATCH&&b.lexical[0]===a)||!this.treatFunctionsAsVarInScope(b)&&b.functions.indexOf(a)>-1){u=!0;break}if(b.var.push(a),this.inModule&&b.flags&SCOPE_TOP&&delete this.undefinedExports[a],b.flags&SCOPE_VAR)break}u&&this.raiseRecoverable(c,"Identifier '"+a+"' has already been declared")},pp$3.checkLocalExport=function(a){this.scopeStack[0].lexical.indexOf(a.name)===-1&&this.scopeStack[0].var.indexOf(a.name)===-1&&(this.undefinedExports[a.name]=a)},pp$3.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},pp$3.currentVarScope=function(){for(var a=this.scopeStack.length-1;;a--){var s=this.scopeStack[a];if(s.flags&SCOPE_VAR)return s}},pp$3.currentThisScope=function(){for(var a=this.scopeStack.length-1;;a--){var s=this.scopeStack[a];if(s.flags&SCOPE_VAR&&!(s.flags&SCOPE_ARROW))return s}};var Node=function(s,c,u){this.type="",this.start=c,this.end=0,s.options.locations&&(this.loc=new SourceLocation(s,u)),s.options.directSourceFile&&(this.sourceFile=s.options.directSourceFile),s.options.ranges&&(this.range=[c,0])},pp$2=Parser.prototype;pp$2.startNode=function(){return new Node(this,this.start,this.startLoc)},pp$2.startNodeAt=function(a,s){return new Node(this,a,s)};function finishNodeAt(a,s,c,u){return a.type=s,a.end=c,this.options.locations&&(a.loc.end=u),this.options.ranges&&(a.range[1]=c),a}pp$2.finishNode=function(a,s){return finishNodeAt.call(this,a,s,this.lastTokEnd,this.lastTokEndLoc)},pp$2.finishNodeAt=function(a,s,c,u){return finishNodeAt.call(this,a,s,c,u)},pp$2.copyNode=function(a){var s=new Node(this,a.start,this.startLoc);for(var c in a)s[c]=a[c];return s};var scriptValuesAddedInUnicode="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",ecma9BinaryProperties="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ecma10BinaryProperties=ecma9BinaryProperties+" Extended_Pictographic",ecma11BinaryProperties=ecma10BinaryProperties,ecma12BinaryProperties=ecma11BinaryProperties+" EBase EComp EMod EPres ExtPict",ecma13BinaryProperties=ecma12BinaryProperties,ecma14BinaryProperties=ecma13BinaryProperties,unicodeBinaryProperties={9:ecma9BinaryProperties,10:ecma10BinaryProperties,11:ecma11BinaryProperties,12:ecma12BinaryProperties,13:ecma13BinaryProperties,14:ecma14BinaryProperties},ecma14BinaryPropertiesOfStrings="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",unicodeBinaryPropertiesOfStrings={9:"",10:"",11:"",12:"",13:"",14:ecma14BinaryPropertiesOfStrings},unicodeGeneralCategoryValues="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ecma9ScriptValues="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ecma10ScriptValues=ecma9ScriptValues+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ecma11ScriptValues=ecma10ScriptValues+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ecma12ScriptValues=ecma11ScriptValues+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ecma13ScriptValues=ecma12ScriptValues+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ecma14ScriptValues=ecma13ScriptValues+" "+scriptValuesAddedInUnicode,unicodeScriptValues={9:ecma9ScriptValues,10:ecma10ScriptValues,11:ecma11ScriptValues,12:ecma12ScriptValues,13:ecma13ScriptValues,14:ecma14ScriptValues},data={};function buildUnicodeData(a){var s=data[a]={binary:wordsRegexp(unicodeBinaryProperties[a]+" "+unicodeGeneralCategoryValues),binaryOfStrings:wordsRegexp(unicodeBinaryPropertiesOfStrings[a]),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[a])}};s.nonBinary.Script_Extensions=s.nonBinary.Script,s.nonBinary.gc=s.nonBinary.General_Category,s.nonBinary.sc=s.nonBinary.Script,s.nonBinary.scx=s.nonBinary.Script_Extensions}for(var i$1=0,list=[9,10,11,12,13,14];i$1<list.length;i$1+=1){var ecmaVersion=list[i$1];buildUnicodeData(ecmaVersion)}var pp$1=Parser.prototype,BranchID=function(s,c){this.parent=s,this.base=c||this};BranchID.prototype.separatedFrom=function(s){for(var c=this;c;c=c.parent)for(var u=s;u;u=u.parent)if(c.base===u.base&&c!==u)return!0;return!1},BranchID.prototype.sibling=function(){return new BranchID(this.parent,this.base)};var RegExpValidationState=function(s){this.parser=s,this.validFlags="gim"+(s.options.ecmaVersion>=6?"uy":"")+(s.options.ecmaVersion>=9?"s":"")+(s.options.ecmaVersion>=13?"d":"")+(s.options.ecmaVersion>=15?"v":""),this.unicodeProperties=data[s.options.ecmaVersion>=14?14:s.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};RegExpValidationState.prototype.reset=function(s,c,u){var d=u.indexOf("v")!==-1,p=u.indexOf("u")!==-1;this.start=s|0,this.source=c+"",this.flags=u,d&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=p&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=p&&this.parser.options.ecmaVersion>=9)},RegExpValidationState.prototype.raise=function(s){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+s)},RegExpValidationState.prototype.at=function(s,c){c===void 0&&(c=!1);var u=this.source,d=u.length;if(s>=d)return-1;var p=u.charCodeAt(s);if(!(c||this.switchU)||p<=55295||p>=57344||s+1>=d)return p;var v=u.charCodeAt(s+1);return v>=56320&&v<=57343?(p<<10)+v-56613888:p},RegExpValidationState.prototype.nextIndex=function(s,c){c===void 0&&(c=!1);var u=this.source,d=u.length;if(s>=d)return d;var p=u.charCodeAt(s),v;return!(c||this.switchU)||p<=55295||p>=57344||s+1>=d||(v=u.charCodeAt(s+1))<56320||v>57343?s+1:s+2},RegExpValidationState.prototype.current=function(s){return s===void 0&&(s=!1),this.at(this.pos,s)},RegExpValidationState.prototype.lookahead=function(s){return s===void 0&&(s=!1),this.at(this.nextIndex(this.pos,s),s)},RegExpValidationState.prototype.advance=function(s){s===void 0&&(s=!1),this.pos=this.nextIndex(this.pos,s)},RegExpValidationState.prototype.eat=function(s,c){return c===void 0&&(c=!1),this.current(c)===s?(this.advance(c),!0):!1},RegExpValidationState.prototype.eatChars=function(s,c){c===void 0&&(c=!1);for(var u=this.pos,d=0,p=s;d<p.length;d+=1){var v=p[d],A=this.at(u,c);if(A===-1||A!==v)return!1;u=this.nextIndex(u,c)}return this.pos=u,!0},pp$1.validateRegExpFlags=function(a){for(var s=a.validFlags,c=a.flags,u=!1,d=!1,p=0;p<c.length;p++){var v=c.charAt(p);s.indexOf(v)===-1&&this.raise(a.start,"Invalid regular expression flag"),c.indexOf(v,p+1)>-1&&this.raise(a.start,"Duplicate regular expression flag"),v==="u"&&(u=!0),v==="v"&&(d=!0)}this.options.ecmaVersion>=15&&u&&d&&this.raise(a.start,"Invalid regular expression flag")};function hasProp(a){for(var s in a)return!0;return!1}pp$1.validateRegExpPattern=function(a){this.regexp_pattern(a),!a.switchN&&this.options.ecmaVersion>=9&&hasProp(a.groupNames)&&(a.switchN=!0,this.regexp_pattern(a))},pp$1.regexp_pattern=function(a){a.pos=0,a.lastIntValue=0,a.lastStringValue="",a.lastAssertionIsQuantifiable=!1,a.numCapturingParens=0,a.maxBackReference=0,a.groupNames=Object.create(null),a.backReferenceNames.length=0,a.branchID=null,this.regexp_disjunction(a),a.pos!==a.source.length&&(a.eat(41)&&a.raise("Unmatched ')'"),(a.eat(93)||a.eat(125))&&a.raise("Lone quantifier brackets")),a.maxBackReference>a.numCapturingParens&&a.raise("Invalid escape");for(var s=0,c=a.backReferenceNames;s<c.length;s+=1){var u=c[s];a.groupNames[u]||a.raise("Invalid named capture referenced")}},pp$1.regexp_disjunction=function(a){var s=this.options.ecmaVersion>=16;for(s&&(a.branchID=new BranchID(a.branchID,null)),this.regexp_alternative(a);a.eat(124);)s&&(a.branchID=a.branchID.sibling()),this.regexp_alternative(a);s&&(a.branchID=a.branchID.parent),this.regexp_eatQuantifier(a,!0)&&a.raise("Nothing to repeat"),a.eat(123)&&a.raise("Lone quantifier brackets")},pp$1.regexp_alternative=function(a){for(;a.pos<a.source.length&&this.regexp_eatTerm(a););},pp$1.regexp_eatTerm=function(a){return this.regexp_eatAssertion(a)?(a.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(a)&&a.switchU&&a.raise("Invalid quantifier"),!0):(a.switchU?this.regexp_eatAtom(a):this.regexp_eatExtendedAtom(a))?(this.regexp_eatQuantifier(a),!0):!1},pp$1.regexp_eatAssertion=function(a){var s=a.pos;if(a.lastAssertionIsQuantifiable=!1,a.eat(94)||a.eat(36))return!0;if(a.eat(92)){if(a.eat(66)||a.eat(98))return!0;a.pos=s}if(a.eat(40)&&a.eat(63)){var c=!1;if(this.options.ecmaVersion>=9&&(c=a.eat(60)),a.eat(61)||a.eat(33))return this.regexp_disjunction(a),a.eat(41)||a.raise("Unterminated group"),a.lastAssertionIsQuantifiable=!c,!0}return a.pos=s,!1},pp$1.regexp_eatQuantifier=function(a,s){return s===void 0&&(s=!1),this.regexp_eatQuantifierPrefix(a,s)?(a.eat(63),!0):!1},pp$1.regexp_eatQuantifierPrefix=function(a,s){return a.eat(42)||a.eat(43)||a.eat(63)||this.regexp_eatBracedQuantifier(a,s)},pp$1.regexp_eatBracedQuantifier=function(a,s){var c=a.pos;if(a.eat(123)){var u=0,d=-1;if(this.regexp_eatDecimalDigits(a)&&(u=a.lastIntValue,a.eat(44)&&this.regexp_eatDecimalDigits(a)&&(d=a.lastIntValue),a.eat(125)))return d!==-1&&d<u&&!s&&a.raise("numbers out of order in {} quantifier"),!0;a.switchU&&!s&&a.raise("Incomplete quantifier"),a.pos=c}return!1},pp$1.regexp_eatAtom=function(a){return this.regexp_eatPatternCharacters(a)||a.eat(46)||this.regexp_eatReverseSolidusAtomEscape(a)||this.regexp_eatCharacterClass(a)||this.regexp_eatUncapturingGroup(a)||this.regexp_eatCapturingGroup(a)},pp$1.regexp_eatReverseSolidusAtomEscape=function(a){var s=a.pos;if(a.eat(92)){if(this.regexp_eatAtomEscape(a))return!0;a.pos=s}return!1},pp$1.regexp_eatUncapturingGroup=function(a){var s=a.pos;if(a.eat(40)){if(a.eat(63)){if(this.options.ecmaVersion>=16){var c=this.regexp_eatModifiers(a),u=a.eat(45);if(c||u){for(var d=0;d<c.length;d++){var p=c.charAt(d);c.indexOf(p,d+1)>-1&&a.raise("Duplicate regular expression modifiers")}if(u){var v=this.regexp_eatModifiers(a);!c&&!v&&a.current()===58&&a.raise("Invalid regular expression modifiers");for(var A=0;A<v.length;A++){var b=v.charAt(A);(v.indexOf(b,A+1)>-1||c.indexOf(b)>-1)&&a.raise("Duplicate regular expression modifiers")}}}}if(a.eat(58)){if(this.regexp_disjunction(a),a.eat(41))return!0;a.raise("Unterminated group")}}a.pos=s}return!1},pp$1.regexp_eatCapturingGroup=function(a){if(a.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(a):a.current()===63&&a.raise("Invalid group"),this.regexp_disjunction(a),a.eat(41))return a.numCapturingParens+=1,!0;a.raise("Unterminated group")}return!1},pp$1.regexp_eatModifiers=function(a){for(var s="",c=0;(c=a.current())!==-1&&isRegularExpressionModifier(c);)s+=codePointToString(c),a.advance();return s};function isRegularExpressionModifier(a){return a===105||a===109||a===115}pp$1.regexp_eatExtendedAtom=function(a){return a.eat(46)||this.regexp_eatReverseSolidusAtomEscape(a)||this.regexp_eatCharacterClass(a)||this.regexp_eatUncapturingGroup(a)||this.regexp_eatCapturingGroup(a)||this.regexp_eatInvalidBracedQuantifier(a)||this.regexp_eatExtendedPatternCharacter(a)},pp$1.regexp_eatInvalidBracedQuantifier=function(a){return this.regexp_eatBracedQuantifier(a,!0)&&a.raise("Nothing to repeat"),!1},pp$1.regexp_eatSyntaxCharacter=function(a){var s=a.current();return isSyntaxCharacter(s)?(a.lastIntValue=s,a.advance(),!0):!1};function isSyntaxCharacter(a){return a===36||a>=40&&a<=43||a===46||a===63||a>=91&&a<=94||a>=123&&a<=125}pp$1.regexp_eatPatternCharacters=function(a){for(var s=a.pos,c=0;(c=a.current())!==-1&&!isSyntaxCharacter(c);)a.advance();return a.pos!==s},pp$1.regexp_eatExtendedPatternCharacter=function(a){var s=a.current();return s!==-1&&s!==36&&!(s>=40&&s<=43)&&s!==46&&s!==63&&s!==91&&s!==94&&s!==124?(a.advance(),!0):!1},pp$1.regexp_groupSpecifier=function(a){if(a.eat(63)){this.regexp_eatGroupName(a)||a.raise("Invalid group");var s=this.options.ecmaVersion>=16,c=a.groupNames[a.lastStringValue];if(c)if(s)for(var u=0,d=c;u<d.length;u+=1){var p=d[u];p.separatedFrom(a.branchID)||a.raise("Duplicate capture group name")}else a.raise("Duplicate capture group name");s?(c||(a.groupNames[a.lastStringValue]=[])).push(a.branchID):a.groupNames[a.lastStringValue]=!0}},pp$1.regexp_eatGroupName=function(a){if(a.lastStringValue="",a.eat(60)){if(this.regexp_eatRegExpIdentifierName(a)&&a.eat(62))return!0;a.raise("Invalid capture group name")}return!1},pp$1.regexp_eatRegExpIdentifierName=function(a){if(a.lastStringValue="",this.regexp_eatRegExpIdentifierStart(a)){for(a.lastStringValue+=codePointToString(a.lastIntValue);this.regexp_eatRegExpIdentifierPart(a);)a.lastStringValue+=codePointToString(a.lastIntValue);return!0}return!1},pp$1.regexp_eatRegExpIdentifierStart=function(a){var s=a.pos,c=this.options.ecmaVersion>=11,u=a.current(c);return a.advance(c),u===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,c)&&(u=a.lastIntValue),isRegExpIdentifierStart(u)?(a.lastIntValue=u,!0):(a.pos=s,!1)};function isRegExpIdentifierStart(a){return isIdentifierStart(a,!0)||a===36||a===95}pp$1.regexp_eatRegExpIdentifierPart=function(a){var s=a.pos,c=this.options.ecmaVersion>=11,u=a.current(c);return a.advance(c),u===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,c)&&(u=a.lastIntValue),isRegExpIdentifierPart(u)?(a.lastIntValue=u,!0):(a.pos=s,!1)};function isRegExpIdentifierPart(a){return isIdentifierChar(a,!0)||a===36||a===95||a===8204||a===8205}pp$1.regexp_eatAtomEscape=function(a){return this.regexp_eatBackReference(a)||this.regexp_eatCharacterClassEscape(a)||this.regexp_eatCharacterEscape(a)||a.switchN&&this.regexp_eatKGroupName(a)?!0:(a.switchU&&(a.current()===99&&a.raise("Invalid unicode escape"),a.raise("Invalid escape")),!1)},pp$1.regexp_eatBackReference=function(a){var s=a.pos;if(this.regexp_eatDecimalEscape(a)){var c=a.lastIntValue;if(a.switchU)return c>a.maxBackReference&&(a.maxBackReference=c),!0;if(c<=a.numCapturingParens)return!0;a.pos=s}return!1},pp$1.regexp_eatKGroupName=function(a){if(a.eat(107)){if(this.regexp_eatGroupName(a))return a.backReferenceNames.push(a.lastStringValue),!0;a.raise("Invalid named reference")}return!1},pp$1.regexp_eatCharacterEscape=function(a){return this.regexp_eatControlEscape(a)||this.regexp_eatCControlLetter(a)||this.regexp_eatZero(a)||this.regexp_eatHexEscapeSequence(a)||this.regexp_eatRegExpUnicodeEscapeSequence(a,!1)||!a.switchU&&this.regexp_eatLegacyOctalEscapeSequence(a)||this.regexp_eatIdentityEscape(a)},pp$1.regexp_eatCControlLetter=function(a){var s=a.pos;if(a.eat(99)){if(this.regexp_eatControlLetter(a))return!0;a.pos=s}return!1},pp$1.regexp_eatZero=function(a){return a.current()===48&&!isDecimalDigit(a.lookahead())?(a.lastIntValue=0,a.advance(),!0):!1},pp$1.regexp_eatControlEscape=function(a){var s=a.current();return s===116?(a.lastIntValue=9,a.advance(),!0):s===110?(a.lastIntValue=10,a.advance(),!0):s===118?(a.lastIntValue=11,a.advance(),!0):s===102?(a.lastIntValue=12,a.advance(),!0):s===114?(a.lastIntValue=13,a.advance(),!0):!1},pp$1.regexp_eatControlLetter=function(a){var s=a.current();return isControlLetter(s)?(a.lastIntValue=s%32,a.advance(),!0):!1};function isControlLetter(a){return a>=65&&a<=90||a>=97&&a<=122}pp$1.regexp_eatRegExpUnicodeEscapeSequence=function(a,s){s===void 0&&(s=!1);var c=a.pos,u=s||a.switchU;if(a.eat(117)){if(this.regexp_eatFixedHexDigits(a,4)){var d=a.lastIntValue;if(u&&d>=55296&&d<=56319){var p=a.pos;if(a.eat(92)&&a.eat(117)&&this.regexp_eatFixedHexDigits(a,4)){var v=a.lastIntValue;if(v>=56320&&v<=57343)return a.lastIntValue=(d-55296)*1024+(v-56320)+65536,!0}a.pos=p,a.lastIntValue=d}return!0}if(u&&a.eat(123)&&this.regexp_eatHexDigits(a)&&a.eat(125)&&isValidUnicode(a.lastIntValue))return!0;u&&a.raise("Invalid unicode escape"),a.pos=c}return!1};function isValidUnicode(a){return a>=0&&a<=1114111}pp$1.regexp_eatIdentityEscape=function(a){if(a.switchU)return this.regexp_eatSyntaxCharacter(a)?!0:a.eat(47)?(a.lastIntValue=47,!0):!1;var s=a.current();return s!==99&&(!a.switchN||s!==107)?(a.lastIntValue=s,a.advance(),!0):!1},pp$1.regexp_eatDecimalEscape=function(a){a.lastIntValue=0;var s=a.current();if(s>=49&&s<=57){do a.lastIntValue=10*a.lastIntValue+(s-48),a.advance();while((s=a.current())>=48&&s<=57);return!0}return!1};var CharSetNone=0,CharSetOk=1,CharSetString=2;pp$1.regexp_eatCharacterClassEscape=function(a){var s=a.current();if(isCharacterClassEscape(s))return a.lastIntValue=-1,a.advance(),CharSetOk;var c=!1;if(a.switchU&&this.options.ecmaVersion>=9&&((c=s===80)||s===112)){a.lastIntValue=-1,a.advance();var u;if(a.eat(123)&&(u=this.regexp_eatUnicodePropertyValueExpression(a))&&a.eat(125))return c&&u===CharSetString&&a.raise("Invalid property name"),u;a.raise("Invalid property name")}return CharSetNone};function isCharacterClassEscape(a){return a===100||a===68||a===115||a===83||a===119||a===87}pp$1.regexp_eatUnicodePropertyValueExpression=function(a){var s=a.pos;if(this.regexp_eatUnicodePropertyName(a)&&a.eat(61)){var c=a.lastStringValue;if(this.regexp_eatUnicodePropertyValue(a)){var u=a.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(a,c,u),CharSetOk}}if(a.pos=s,this.regexp_eatLoneUnicodePropertyNameOrValue(a)){var d=a.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(a,d)}return CharSetNone},pp$1.regexp_validateUnicodePropertyNameAndValue=function(a,s,c){hasOwn(a.unicodeProperties.nonBinary,s)||a.raise("Invalid property name"),a.unicodeProperties.nonBinary[s].test(c)||a.raise("Invalid property value")},pp$1.regexp_validateUnicodePropertyNameOrValue=function(a,s){if(a.unicodeProperties.binary.test(s))return CharSetOk;if(a.switchV&&a.unicodeProperties.binaryOfStrings.test(s))return CharSetString;a.raise("Invalid property name")},pp$1.regexp_eatUnicodePropertyName=function(a){var s=0;for(a.lastStringValue="";isUnicodePropertyNameCharacter(s=a.current());)a.lastStringValue+=codePointToString(s),a.advance();return a.lastStringValue!==""};function isUnicodePropertyNameCharacter(a){return isControlLetter(a)||a===95}pp$1.regexp_eatUnicodePropertyValue=function(a){var s=0;for(a.lastStringValue="";isUnicodePropertyValueCharacter(s=a.current());)a.lastStringValue+=codePointToString(s),a.advance();return a.lastStringValue!==""};function isUnicodePropertyValueCharacter(a){return isUnicodePropertyNameCharacter(a)||isDecimalDigit(a)}pp$1.regexp_eatLoneUnicodePropertyNameOrValue=function(a){return this.regexp_eatUnicodePropertyValue(a)},pp$1.regexp_eatCharacterClass=function(a){if(a.eat(91)){var s=a.eat(94),c=this.regexp_classContents(a);return a.eat(93)||a.raise("Unterminated character class"),s&&c===CharSetString&&a.raise("Negated character class may contain strings"),!0}return!1},pp$1.regexp_classContents=function(a){return a.current()===93?CharSetOk:a.switchV?this.regexp_classSetExpression(a):(this.regexp_nonEmptyClassRanges(a),CharSetOk)},pp$1.regexp_nonEmptyClassRanges=function(a){for(;this.regexp_eatClassAtom(a);){var s=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassAtom(a)){var c=a.lastIntValue;a.switchU&&(s===-1||c===-1)&&a.raise("Invalid character class"),s!==-1&&c!==-1&&s>c&&a.raise("Range out of order in character class")}}},pp$1.regexp_eatClassAtom=function(a){var s=a.pos;if(a.eat(92)){if(this.regexp_eatClassEscape(a))return!0;if(a.switchU){var c=a.current();(c===99||isOctalDigit(c))&&a.raise("Invalid class escape"),a.raise("Invalid escape")}a.pos=s}var u=a.current();return u!==93?(a.lastIntValue=u,a.advance(),!0):!1},pp$1.regexp_eatClassEscape=function(a){var s=a.pos;if(a.eat(98))return a.lastIntValue=8,!0;if(a.switchU&&a.eat(45))return a.lastIntValue=45,!0;if(!a.switchU&&a.eat(99)){if(this.regexp_eatClassControlLetter(a))return!0;a.pos=s}return this.regexp_eatCharacterClassEscape(a)||this.regexp_eatCharacterEscape(a)},pp$1.regexp_classSetExpression=function(a){var s=CharSetOk,c;if(!this.regexp_eatClassSetRange(a))if(c=this.regexp_eatClassSetOperand(a)){c===CharSetString&&(s=CharSetString);for(var u=a.pos;a.eatChars([38,38]);){if(a.current()!==38&&(c=this.regexp_eatClassSetOperand(a))){c!==CharSetString&&(s=CharSetOk);continue}a.raise("Invalid character in character class")}if(u!==a.pos)return s;for(;a.eatChars([45,45]);)this.regexp_eatClassSetOperand(a)||a.raise("Invalid character in character class");if(u!==a.pos)return s}else a.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(a)){if(c=this.regexp_eatClassSetOperand(a),!c)return s;c===CharSetString&&(s=CharSetString)}},pp$1.regexp_eatClassSetRange=function(a){var s=a.pos;if(this.regexp_eatClassSetCharacter(a)){var c=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassSetCharacter(a)){var u=a.lastIntValue;return c!==-1&&u!==-1&&c>u&&a.raise("Range out of order in character class"),!0}a.pos=s}return!1},pp$1.regexp_eatClassSetOperand=function(a){return this.regexp_eatClassSetCharacter(a)?CharSetOk:this.regexp_eatClassStringDisjunction(a)||this.regexp_eatNestedClass(a)},pp$1.regexp_eatNestedClass=function(a){var s=a.pos;if(a.eat(91)){var c=a.eat(94),u=this.regexp_classContents(a);if(a.eat(93))return c&&u===CharSetString&&a.raise("Negated character class may contain strings"),u;a.pos=s}if(a.eat(92)){var d=this.regexp_eatCharacterClassEscape(a);if(d)return d;a.pos=s}return null},pp$1.regexp_eatClassStringDisjunction=function(a){var s=a.pos;if(a.eatChars([92,113])){if(a.eat(123)){var c=this.regexp_classStringDisjunctionContents(a);if(a.eat(125))return c}else a.raise("Invalid escape");a.pos=s}return null},pp$1.regexp_classStringDisjunctionContents=function(a){for(var s=this.regexp_classString(a);a.eat(124);)this.regexp_classString(a)===CharSetString&&(s=CharSetString);return s},pp$1.regexp_classString=function(a){for(var s=0;this.regexp_eatClassSetCharacter(a);)s++;return s===1?CharSetOk:CharSetString},pp$1.regexp_eatClassSetCharacter=function(a){var s=a.pos;if(a.eat(92))return this.regexp_eatCharacterEscape(a)||this.regexp_eatClassSetReservedPunctuator(a)?!0:a.eat(98)?(a.lastIntValue=8,!0):(a.pos=s,!1);var c=a.current();return c<0||c===a.lookahead()&&isClassSetReservedDoublePunctuatorCharacter(c)||isClassSetSyntaxCharacter(c)?!1:(a.advance(),a.lastIntValue=c,!0)};function isClassSetReservedDoublePunctuatorCharacter(a){return a===33||a>=35&&a<=38||a>=42&&a<=44||a===46||a>=58&&a<=64||a===94||a===96||a===126}function isClassSetSyntaxCharacter(a){return a===40||a===41||a===45||a===47||a>=91&&a<=93||a>=123&&a<=125}pp$1.regexp_eatClassSetReservedPunctuator=function(a){var s=a.current();return isClassSetReservedPunctuator(s)?(a.lastIntValue=s,a.advance(),!0):!1};function isClassSetReservedPunctuator(a){return a===33||a===35||a===37||a===38||a===44||a===45||a>=58&&a<=62||a===64||a===96||a===126}pp$1.regexp_eatClassControlLetter=function(a){var s=a.current();return isDecimalDigit(s)||s===95?(a.lastIntValue=s%32,a.advance(),!0):!1},pp$1.regexp_eatHexEscapeSequence=function(a){var s=a.pos;if(a.eat(120)){if(this.regexp_eatFixedHexDigits(a,2))return!0;a.switchU&&a.raise("Invalid escape"),a.pos=s}return!1},pp$1.regexp_eatDecimalDigits=function(a){var s=a.pos,c=0;for(a.lastIntValue=0;isDecimalDigit(c=a.current());)a.lastIntValue=10*a.lastIntValue+(c-48),a.advance();return a.pos!==s};function isDecimalDigit(a){return a>=48&&a<=57}pp$1.regexp_eatHexDigits=function(a){var s=a.pos,c=0;for(a.lastIntValue=0;isHexDigit(c=a.current());)a.lastIntValue=16*a.lastIntValue+hexToInt(c),a.advance();return a.pos!==s};function isHexDigit(a){return a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102}function hexToInt(a){return a>=65&&a<=70?10+(a-65):a>=97&&a<=102?10+(a-97):a-48}pp$1.regexp_eatLegacyOctalEscapeSequence=function(a){if(this.regexp_eatOctalDigit(a)){var s=a.lastIntValue;if(this.regexp_eatOctalDigit(a)){var c=a.lastIntValue;s<=3&&this.regexp_eatOctalDigit(a)?a.lastIntValue=s*64+c*8+a.lastIntValue:a.lastIntValue=s*8+c}else a.lastIntValue=s;return!0}return!1},pp$1.regexp_eatOctalDigit=function(a){var s=a.current();return isOctalDigit(s)?(a.lastIntValue=s-48,a.advance(),!0):(a.lastIntValue=0,!1)};function isOctalDigit(a){return a>=48&&a<=55}pp$1.regexp_eatFixedHexDigits=function(a,s){var c=a.pos;a.lastIntValue=0;for(var u=0;u<s;++u){var d=a.current();if(!isHexDigit(d))return a.pos=c,!1;a.lastIntValue=16*a.lastIntValue+hexToInt(d),a.advance()}return!0};var Token=function(s){this.type=s.type,this.value=s.value,this.start=s.start,this.end=s.end,s.options.locations&&(this.loc=new SourceLocation(s,s.startLoc,s.endLoc)),s.options.ranges&&(this.range=[s.start,s.end])},pp=Parser.prototype;pp.next=function(a){!a&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Token(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},pp.getToken=function(){return this.next(),new Token(this)},typeof Symbol<"u"&&(pp[Symbol.iterator]=function(){var a=this;return{next:function(){var s=a.getToken();return{done:s.type===types$1.eof,value:s}}}}),pp.nextToken=function(){var a=this.curContext();if((!a||!a.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(types$1.eof);if(a.override)return a.override(this);this.readToken(this.fullCharCodeAtPos())},pp.readToken=function(a){return isIdentifierStart(a,this.options.ecmaVersion>=6)||a===92?this.readWord():this.getTokenFromCode(a)},pp.fullCharCodeAtPos=function(){var a=this.input.charCodeAt(this.pos);if(a<=55295||a>=56320)return a;var s=this.input.charCodeAt(this.pos+1);return s<=56319||s>=57344?a:(a<<10)+s-56613888},pp.skipBlockComment=function(){var a=this.options.onComment&&this.curPosition(),s=this.pos,c=this.input.indexOf("*/",this.pos+=2);if(c===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=c+2,this.options.locations)for(var u=void 0,d=s;(u=nextLineBreak(this.input,d,this.pos))>-1;)++this.curLine,d=this.lineStart=u;this.options.onComment&&this.options.onComment(!0,this.input.slice(s+2,c),s,this.pos,a,this.curPosition())},pp.skipLineComment=function(a){for(var s=this.pos,c=this.options.onComment&&this.curPosition(),u=this.input.charCodeAt(this.pos+=a);this.pos<this.input.length&&!isNewLine(u);)u=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(s+a,this.pos),s,this.pos,c,this.curPosition())},pp.skipSpace=function(){e:for(;this.pos<this.input.length;){var a=this.input.charCodeAt(this.pos);switch(a){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(a>8&&a<14||a>=5760&&nonASCIIwhitespace.test(String.fromCharCode(a)))++this.pos;else break e}}},pp.finishToken=function(a,s){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var c=this.type;this.type=a,this.value=s,this.updateContext(c)},pp.readToken_dot=function(){var a=this.input.charCodeAt(this.pos+1);if(a>=48&&a<=57)return this.readNumber(!0);var s=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&a===46&&s===46?(this.pos+=3,this.finishToken(types$1.ellipsis)):(++this.pos,this.finishToken(types$1.dot))},pp.readToken_slash=function(){var a=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):a===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.slash,1)},pp.readToken_mult_modulo_exp=function(a){var s=this.input.charCodeAt(this.pos+1),c=1,u=a===42?types$1.star:types$1.modulo;return this.options.ecmaVersion>=7&&a===42&&s===42&&(++c,u=types$1.starstar,s=this.input.charCodeAt(this.pos+2)),s===61?this.finishOp(types$1.assign,c+1):this.finishOp(u,c)},pp.readToken_pipe_amp=function(a){var s=this.input.charCodeAt(this.pos+1);if(s===a){if(this.options.ecmaVersion>=12){var c=this.input.charCodeAt(this.pos+2);if(c===61)return this.finishOp(types$1.assign,3)}return this.finishOp(a===124?types$1.logicalOR:types$1.logicalAND,2)}return s===61?this.finishOp(types$1.assign,2):this.finishOp(a===124?types$1.bitwiseOR:types$1.bitwiseAND,1)},pp.readToken_caret=function(){var a=this.input.charCodeAt(this.pos+1);return a===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.bitwiseXOR,1)},pp.readToken_plus_min=function(a){var s=this.input.charCodeAt(this.pos+1);return s===a?s===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||lineBreak.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(types$1.incDec,2):s===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.plusMin,1)},pp.readToken_lt_gt=function(a){var s=this.input.charCodeAt(this.pos+1),c=1;return s===a?(c=a===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+c)===61?this.finishOp(types$1.assign,c+1):this.finishOp(types$1.bitShift,c)):s===33&&a===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(s===61&&(c=2),this.finishOp(types$1.relational,c))},pp.readToken_eq_excl=function(a){var s=this.input.charCodeAt(this.pos+1);return s===61?this.finishOp(types$1.equality,this.input.charCodeAt(this.pos+2)===61?3:2):a===61&&s===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(types$1.arrow)):this.finishOp(a===61?types$1.eq:types$1.prefix,1)},pp.readToken_question=function(){var a=this.options.ecmaVersion;if(a>=11){var s=this.input.charCodeAt(this.pos+1);if(s===46){var c=this.input.charCodeAt(this.pos+2);if(c<48||c>57)return this.finishOp(types$1.questionDot,2)}if(s===63){if(a>=12){var u=this.input.charCodeAt(this.pos+2);if(u===61)return this.finishOp(types$1.assign,3)}return this.finishOp(types$1.coalesce,2)}}return this.finishOp(types$1.question,1)},pp.readToken_numberSign=function(){var a=this.options.ecmaVersion,s=35;if(a>=13&&(++this.pos,s=this.fullCharCodeAtPos(),isIdentifierStart(s,!0)||s===92))return this.finishToken(types$1.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+codePointToString(s)+"'")},pp.getTokenFromCode=function(a){switch(a){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(types$1.parenL);case 41:return++this.pos,this.finishToken(types$1.parenR);case 59:return++this.pos,this.finishToken(types$1.semi);case 44:return++this.pos,this.finishToken(types$1.comma);case 91:return++this.pos,this.finishToken(types$1.bracketL);case 93:return++this.pos,this.finishToken(types$1.bracketR);case 123:return++this.pos,this.finishToken(types$1.braceL);case 125:return++this.pos,this.finishToken(types$1.braceR);case 58:return++this.pos,this.finishToken(types$1.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(types$1.backQuote);case 48:var s=this.input.charCodeAt(this.pos+1);if(s===120||s===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(s===111||s===79)return this.readRadixNumber(8);if(s===98||s===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(a);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(a);case 124:case 38:return this.readToken_pipe_amp(a);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(a);case 60:case 62:return this.readToken_lt_gt(a);case 61:case 33:return this.readToken_eq_excl(a);case 63:return this.readToken_question();case 126:return this.finishOp(types$1.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(a)+"'")},pp.finishOp=function(a,s){var c=this.input.slice(this.pos,this.pos+s);return this.pos+=s,this.finishToken(a,c)},pp.readRegexp=function(){for(var a,s,c=this.pos;;){this.pos>=this.input.length&&this.raise(c,"Unterminated regular expression");var u=this.input.charAt(this.pos);if(lineBreak.test(u)&&this.raise(c,"Unterminated regular expression"),a)a=!1;else{if(u==="[")s=!0;else if(u==="]"&&s)s=!1;else if(u==="/"&&!s)break;a=u==="\\"}++this.pos}var d=this.input.slice(c,this.pos);++this.pos;var p=this.pos,v=this.readWord1();this.containsEsc&&this.unexpected(p);var A=this.regexpState||(this.regexpState=new RegExpValidationState(this));A.reset(c,d,v),this.validateRegExpFlags(A),this.validateRegExpPattern(A);var b=null;try{b=new RegExp(d,v)}catch{}return this.finishToken(types$1.regexp,{pattern:d,flags:v,value:b})},pp.readInt=function(a,s,c){for(var u=this.options.ecmaVersion>=12&&s===void 0,d=c&&this.input.charCodeAt(this.pos)===48,p=this.pos,v=0,A=0,b=0,g=s??1/0;b<g;++b,++this.pos){var x=this.input.charCodeAt(this.pos),y=void 0;if(u&&x===95){d&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),A===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),b===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),A=x;continue}if(x>=97?y=x-97+10:x>=65?y=x-65+10:x>=48&&x<=57?y=x-48:y=1/0,y>=a)break;A=x,v=v*a+y}return u&&A===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===p||s!=null&&this.pos-p!==s?null:v};function stringToNumber(a,s){return s?parseInt(a,8):parseFloat(a.replace(/_/g,""))}function stringToBigInt(a){return typeof BigInt!="function"?null:BigInt(a.replace(/_/g,""))}pp.readRadixNumber=function(a){var s=this.pos;this.pos+=2;var c=this.readInt(a);return c==null&&this.raise(this.start+2,"Expected number in radix "+a),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(c=stringToBigInt(this.input.slice(s,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types$1.num,c)},pp.readNumber=function(a){var s=this.pos;!a&&this.readInt(10,void 0,!0)===null&&this.raise(s,"Invalid number");var c=this.pos-s>=2&&this.input.charCodeAt(s)===48;c&&this.strict&&this.raise(s,"Invalid number");var u=this.input.charCodeAt(this.pos);if(!c&&!a&&this.options.ecmaVersion>=11&&u===110){var d=stringToBigInt(this.input.slice(s,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types$1.num,d)}c&&/[89]/.test(this.input.slice(s,this.pos))&&(c=!1),u===46&&!c&&(++this.pos,this.readInt(10),u=this.input.charCodeAt(this.pos)),(u===69||u===101)&&!c&&(u=this.input.charCodeAt(++this.pos),(u===43||u===45)&&++this.pos,this.readInt(10)===null&&this.raise(s,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var p=stringToNumber(this.input.slice(s,this.pos),c);return this.finishToken(types$1.num,p)},pp.readCodePoint=function(){var a=this.input.charCodeAt(this.pos),s;if(a===123){this.options.ecmaVersion<6&&this.unexpected();var c=++this.pos;s=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,s>1114111&&this.invalidStringToken(c,"Code point out of bounds")}else s=this.readHexChar(4);return s},pp.readString=function(a){for(var s="",c=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var u=this.input.charCodeAt(this.pos);if(u===a)break;u===92?(s+=this.input.slice(c,this.pos),s+=this.readEscapedChar(!1),c=this.pos):u===8232||u===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(isNewLine(u)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return s+=this.input.slice(c,this.pos++),this.finishToken(types$1.string,s)};var INVALID_TEMPLATE_ESCAPE_ERROR={};pp.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(a){if(a===INVALID_TEMPLATE_ESCAPE_ERROR)this.readInvalidTemplateToken();else throw a}this.inTemplateElement=!1},pp.invalidStringToken=function(a,s){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw INVALID_TEMPLATE_ESCAPE_ERROR;this.raise(a,s)},pp.readTmplToken=function(){for(var a="",s=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var c=this.input.charCodeAt(this.pos);if(c===96||c===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===types$1.template||this.type===types$1.invalidTemplate)?c===36?(this.pos+=2,this.finishToken(types$1.dollarBraceL)):(++this.pos,this.finishToken(types$1.backQuote)):(a+=this.input.slice(s,this.pos),this.finishToken(types$1.template,a));if(c===92)a+=this.input.slice(s,this.pos),a+=this.readEscapedChar(!0),s=this.pos;else if(isNewLine(c)){switch(a+=this.input.slice(s,this.pos),++this.pos,c){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:a+=`
|
54
|
+
`),cooked:this.value},this.next(),c.tail=this.type===types$1.backQuote,this.finishNode(c,"TemplateElement")},pp$5.parseTemplate=function(a){a===void 0&&(a={});var s=a.isTagged;s===void 0&&(s=!1);var c=this.startNode();this.next(),c.expressions=[];var u=this.parseTemplateElement({isTagged:s});for(c.quasis=[u];!u.tail;)this.type===types$1.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(types$1.dollarBraceL),c.expressions.push(this.parseExpression()),this.expect(types$1.braceR),c.quasis.push(u=this.parseTemplateElement({isTagged:s}));return this.next(),this.finishNode(c,"TemplateLiteral")},pp$5.isAsyncProp=function(a){return!a.computed&&a.key.type==="Identifier"&&a.key.name==="async"&&(this.type===types$1.name||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types$1.star)&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$5.parseObj=function(a,s){var c=this.startNode(),u=!0,d={};for(c.properties=[],this.next();!this.eat(types$1.braceR);){if(u)u=!1;else if(this.expect(types$1.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(types$1.braceR))break;var p=this.parseProperty(a,s);a||this.checkPropClash(p,d,s),c.properties.push(p)}return this.finishNode(c,a?"ObjectPattern":"ObjectExpression")},pp$5.parseProperty=function(a,s){var c=this.startNode(),u,d,p,v;if(this.options.ecmaVersion>=9&&this.eat(types$1.ellipsis))return a?(c.argument=this.parseIdent(!1),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(c,"RestElement")):(c.argument=this.parseMaybeAssign(!1,s),this.type===types$1.comma&&s&&s.trailingComma<0&&(s.trailingComma=this.start),this.finishNode(c,"SpreadElement"));this.options.ecmaVersion>=6&&(c.method=!1,c.shorthand=!1,(a||s)&&(p=this.start,v=this.startLoc),a||(u=this.eat(types$1.star)));var A=this.containsEsc;return this.parsePropertyName(c),!a&&!A&&this.options.ecmaVersion>=8&&!u&&this.isAsyncProp(c)?(d=!0,u=this.options.ecmaVersion>=9&&this.eat(types$1.star),this.parsePropertyName(c)):d=!1,this.parsePropertyValue(c,a,u,d,p,v,s,A),this.finishNode(c,"Property")},pp$5.parseGetterSetter=function(a){var s=a.key.name;this.parsePropertyName(a),a.value=this.parseMethod(!1),a.kind=s;var c=a.kind==="get"?0:1;if(a.value.params.length!==c){var u=a.value.start;a.kind==="get"?this.raiseRecoverable(u,"getter should have no params"):this.raiseRecoverable(u,"setter should have exactly one param")}else a.kind==="set"&&a.value.params[0].type==="RestElement"&&this.raiseRecoverable(a.value.params[0].start,"Setter cannot use rest params")},pp$5.parsePropertyValue=function(a,s,c,u,d,p,v,A){(c||u)&&this.type===types$1.colon&&this.unexpected(),this.eat(types$1.colon)?(a.value=s?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,v),a.kind="init"):this.options.ecmaVersion>=6&&this.type===types$1.parenL?(s&&this.unexpected(),a.method=!0,a.value=this.parseMethod(c,u),a.kind="init"):!s&&!A&&this.options.ecmaVersion>=5&&!a.computed&&a.key.type==="Identifier"&&(a.key.name==="get"||a.key.name==="set")&&this.type!==types$1.comma&&this.type!==types$1.braceR&&this.type!==types$1.eq?((c||u)&&this.unexpected(),this.parseGetterSetter(a)):this.options.ecmaVersion>=6&&!a.computed&&a.key.type==="Identifier"?((c||u)&&this.unexpected(),this.checkUnreserved(a.key),a.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=d),s?a.value=this.parseMaybeDefault(d,p,this.copyNode(a.key)):this.type===types$1.eq&&v?(v.shorthandAssign<0&&(v.shorthandAssign=this.start),a.value=this.parseMaybeDefault(d,p,this.copyNode(a.key))):a.value=this.copyNode(a.key),a.kind="init",a.shorthand=!0):this.unexpected()},pp$5.parsePropertyName=function(a){if(this.options.ecmaVersion>=6){if(this.eat(types$1.bracketL))return a.computed=!0,a.key=this.parseMaybeAssign(),this.expect(types$1.bracketR),a.key;a.computed=!1}return a.key=this.type===types$1.num||this.type===types$1.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},pp$5.initFunction=function(a){a.id=null,this.options.ecmaVersion>=6&&(a.generator=a.expression=!1),this.options.ecmaVersion>=8&&(a.async=!1)},pp$5.parseMethod=function(a,s,c){var u=this.startNode(),d=this.yieldPos,p=this.awaitPos,v=this.awaitIdentPos;return this.initFunction(u),this.options.ecmaVersion>=6&&(u.generator=a),this.options.ecmaVersion>=8&&(u.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(s,u.generator)|SCOPE_SUPER|(c?SCOPE_DIRECT_SUPER:0)),this.expect(types$1.parenL),u.params=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(u,!1,!0,!1),this.yieldPos=d,this.awaitPos=p,this.awaitIdentPos=v,this.finishNode(u,"FunctionExpression")},pp$5.parseArrowExpression=function(a,s,c,u){var d=this.yieldPos,p=this.awaitPos,v=this.awaitIdentPos;return this.enterScope(functionFlags(c,!1)|SCOPE_ARROW),this.initFunction(a),this.options.ecmaVersion>=8&&(a.async=!!c),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,a.params=this.toAssignableList(s,!0),this.parseFunctionBody(a,!0,!1,u),this.yieldPos=d,this.awaitPos=p,this.awaitIdentPos=v,this.finishNode(a,"ArrowFunctionExpression")},pp$5.parseFunctionBody=function(a,s,c,u){var d=s&&this.type!==types$1.braceL,p=this.strict,v=!1;if(d)a.body=this.parseMaybeAssign(u),a.expression=!0,this.checkParams(a,!1);else{var A=this.options.ecmaVersion>=7&&!this.isSimpleParamList(a.params);(!p||A)&&(v=this.strictDirective(this.end),v&&A&&this.raiseRecoverable(a.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var b=this.labels;this.labels=[],v&&(this.strict=!0),this.checkParams(a,!p&&!v&&!s&&!c&&this.isSimpleParamList(a.params)),this.strict&&a.id&&this.checkLValSimple(a.id,BIND_OUTSIDE),a.body=this.parseBlock(!1,void 0,v&&!p),a.expression=!1,this.adaptDirectivePrologue(a.body.body),this.labels=b}this.exitScope()},pp$5.isSimpleParamList=function(a){for(var s=0,c=a;s<c.length;s+=1){var u=c[s];if(u.type!=="Identifier")return!1}return!0},pp$5.checkParams=function(a,s){for(var c=Object.create(null),u=0,d=a.params;u<d.length;u+=1){var p=d[u];this.checkLValInnerPattern(p,BIND_VAR,s?null:c)}},pp$5.parseExprList=function(a,s,c,u){for(var d=[],p=!0;!this.eat(a);){if(p)p=!1;else if(this.expect(types$1.comma),s&&this.afterTrailingComma(a))break;var v=void 0;c&&this.type===types$1.comma?v=null:this.type===types$1.ellipsis?(v=this.parseSpread(u),u&&this.type===types$1.comma&&u.trailingComma<0&&(u.trailingComma=this.start)):v=this.parseMaybeAssign(!1,u),d.push(v)}return d},pp$5.checkUnreserved=function(a){var s=a.start,c=a.end,u=a.name;if(this.inGenerator&&u==="yield"&&this.raiseRecoverable(s,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&u==="await"&&this.raiseRecoverable(s,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&SCOPE_VAR)&&u==="arguments"&&this.raiseRecoverable(s,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(u==="arguments"||u==="await")&&this.raise(s,"Cannot use "+u+" in class static initialization block"),this.keywords.test(u)&&this.raise(s,"Unexpected keyword '"+u+"'"),!(this.options.ecmaVersion<6&&this.input.slice(s,c).indexOf("\\")!==-1)){var d=this.strict?this.reservedWordsStrict:this.reservedWords;d.test(u)&&(!this.inAsync&&u==="await"&&this.raiseRecoverable(s,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(s,"The keyword '"+u+"' is reserved"))}},pp$5.parseIdent=function(a){var s=this.parseIdentNode();return this.next(!!a),this.finishNode(s,"Identifier"),a||(this.checkUnreserved(s),s.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=s.start)),s},pp$5.parseIdentNode=function(){var a=this.startNode();return this.type===types$1.name?a.name=this.value:this.type.keyword?(a.name=this.type.keyword,(a.name==="class"||a.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=types$1.name):this.unexpected(),a},pp$5.parsePrivateIdent=function(){var a=this.startNode();return this.type===types$1.privateId?a.name=this.value:this.unexpected(),this.next(),this.finishNode(a,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(a)),a},pp$5.parseYield=function(a){this.yieldPos||(this.yieldPos=this.start);var s=this.startNode();return this.next(),this.type===types$1.semi||this.canInsertSemicolon()||this.type!==types$1.star&&!this.type.startsExpr?(s.delegate=!1,s.argument=null):(s.delegate=this.eat(types$1.star),s.argument=this.parseMaybeAssign(a)),this.finishNode(s,"YieldExpression")},pp$5.parseAwait=function(a){this.awaitPos||(this.awaitPos=this.start);var s=this.startNode();return this.next(),s.argument=this.parseMaybeUnary(null,!0,!1,a),this.finishNode(s,"AwaitExpression")};var pp$4=Parser.prototype;pp$4.raise=function(a,s){var c=getLineInfo(this.input,a);s+=" ("+c.line+":"+c.column+")",this.sourceFile&&(s+=" in "+this.sourceFile);var u=new SyntaxError(s);throw u.pos=a,u.loc=c,u.raisedAt=this.pos,u},pp$4.raiseRecoverable=pp$4.raise,pp$4.curPosition=function(){if(this.options.locations)return new Position(this.curLine,this.pos-this.lineStart)};var pp$3=Parser.prototype,Scope=function(s){this.flags=s,this.var=[],this.lexical=[],this.functions=[]};pp$3.enterScope=function(a){this.scopeStack.push(new Scope(a))},pp$3.exitScope=function(){this.scopeStack.pop()},pp$3.treatFunctionsAsVarInScope=function(a){return a.flags&SCOPE_FUNCTION||!this.inModule&&a.flags&SCOPE_TOP},pp$3.declareName=function(a,s,c){var u=!1;if(s===BIND_LEXICAL){var d=this.currentScope();u=d.lexical.indexOf(a)>-1||d.functions.indexOf(a)>-1||d.var.indexOf(a)>-1,d.lexical.push(a),this.inModule&&d.flags&SCOPE_TOP&&delete this.undefinedExports[a]}else if(s===BIND_SIMPLE_CATCH){var p=this.currentScope();p.lexical.push(a)}else if(s===BIND_FUNCTION){var v=this.currentScope();this.treatFunctionsAsVar?u=v.lexical.indexOf(a)>-1:u=v.lexical.indexOf(a)>-1||v.var.indexOf(a)>-1,v.functions.push(a)}else for(var A=this.scopeStack.length-1;A>=0;--A){var b=this.scopeStack[A];if(b.lexical.indexOf(a)>-1&&!(b.flags&SCOPE_SIMPLE_CATCH&&b.lexical[0]===a)||!this.treatFunctionsAsVarInScope(b)&&b.functions.indexOf(a)>-1){u=!0;break}if(b.var.push(a),this.inModule&&b.flags&SCOPE_TOP&&delete this.undefinedExports[a],b.flags&SCOPE_VAR)break}u&&this.raiseRecoverable(c,"Identifier '"+a+"' has already been declared")},pp$3.checkLocalExport=function(a){this.scopeStack[0].lexical.indexOf(a.name)===-1&&this.scopeStack[0].var.indexOf(a.name)===-1&&(this.undefinedExports[a.name]=a)},pp$3.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},pp$3.currentVarScope=function(){for(var a=this.scopeStack.length-1;;a--){var s=this.scopeStack[a];if(s.flags&(SCOPE_VAR|SCOPE_CLASS_FIELD_INIT|SCOPE_CLASS_STATIC_BLOCK))return s}},pp$3.currentThisScope=function(){for(var a=this.scopeStack.length-1;;a--){var s=this.scopeStack[a];if(s.flags&(SCOPE_VAR|SCOPE_CLASS_FIELD_INIT|SCOPE_CLASS_STATIC_BLOCK)&&!(s.flags&SCOPE_ARROW))return s}};var Node=function(s,c,u){this.type="",this.start=c,this.end=0,s.options.locations&&(this.loc=new SourceLocation(s,u)),s.options.directSourceFile&&(this.sourceFile=s.options.directSourceFile),s.options.ranges&&(this.range=[c,0])},pp$2=Parser.prototype;pp$2.startNode=function(){return new Node(this,this.start,this.startLoc)},pp$2.startNodeAt=function(a,s){return new Node(this,a,s)};function finishNodeAt(a,s,c,u){return a.type=s,a.end=c,this.options.locations&&(a.loc.end=u),this.options.ranges&&(a.range[1]=c),a}pp$2.finishNode=function(a,s){return finishNodeAt.call(this,a,s,this.lastTokEnd,this.lastTokEndLoc)},pp$2.finishNodeAt=function(a,s,c,u){return finishNodeAt.call(this,a,s,c,u)},pp$2.copyNode=function(a){var s=new Node(this,a.start,this.startLoc);for(var c in a)s[c]=a[c];return s};var scriptValuesAddedInUnicode="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",ecma9BinaryProperties="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ecma10BinaryProperties=ecma9BinaryProperties+" Extended_Pictographic",ecma11BinaryProperties=ecma10BinaryProperties,ecma12BinaryProperties=ecma11BinaryProperties+" EBase EComp EMod EPres ExtPict",ecma13BinaryProperties=ecma12BinaryProperties,ecma14BinaryProperties=ecma13BinaryProperties,unicodeBinaryProperties={9:ecma9BinaryProperties,10:ecma10BinaryProperties,11:ecma11BinaryProperties,12:ecma12BinaryProperties,13:ecma13BinaryProperties,14:ecma14BinaryProperties},ecma14BinaryPropertiesOfStrings="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",unicodeBinaryPropertiesOfStrings={9:"",10:"",11:"",12:"",13:"",14:ecma14BinaryPropertiesOfStrings},unicodeGeneralCategoryValues="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ecma9ScriptValues="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ecma10ScriptValues=ecma9ScriptValues+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ecma11ScriptValues=ecma10ScriptValues+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ecma12ScriptValues=ecma11ScriptValues+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ecma13ScriptValues=ecma12ScriptValues+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ecma14ScriptValues=ecma13ScriptValues+" "+scriptValuesAddedInUnicode,unicodeScriptValues={9:ecma9ScriptValues,10:ecma10ScriptValues,11:ecma11ScriptValues,12:ecma12ScriptValues,13:ecma13ScriptValues,14:ecma14ScriptValues},data={};function buildUnicodeData(a){var s=data[a]={binary:wordsRegexp(unicodeBinaryProperties[a]+" "+unicodeGeneralCategoryValues),binaryOfStrings:wordsRegexp(unicodeBinaryPropertiesOfStrings[a]),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[a])}};s.nonBinary.Script_Extensions=s.nonBinary.Script,s.nonBinary.gc=s.nonBinary.General_Category,s.nonBinary.sc=s.nonBinary.Script,s.nonBinary.scx=s.nonBinary.Script_Extensions}for(var i$1=0,list=[9,10,11,12,13,14];i$1<list.length;i$1+=1){var ecmaVersion=list[i$1];buildUnicodeData(ecmaVersion)}var pp$1=Parser.prototype,BranchID=function(s,c){this.parent=s,this.base=c||this};BranchID.prototype.separatedFrom=function(s){for(var c=this;c;c=c.parent)for(var u=s;u;u=u.parent)if(c.base===u.base&&c!==u)return!0;return!1},BranchID.prototype.sibling=function(){return new BranchID(this.parent,this.base)};var RegExpValidationState=function(s){this.parser=s,this.validFlags="gim"+(s.options.ecmaVersion>=6?"uy":"")+(s.options.ecmaVersion>=9?"s":"")+(s.options.ecmaVersion>=13?"d":"")+(s.options.ecmaVersion>=15?"v":""),this.unicodeProperties=data[s.options.ecmaVersion>=14?14:s.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};RegExpValidationState.prototype.reset=function(s,c,u){var d=u.indexOf("v")!==-1,p=u.indexOf("u")!==-1;this.start=s|0,this.source=c+"",this.flags=u,d&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=p&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=p&&this.parser.options.ecmaVersion>=9)},RegExpValidationState.prototype.raise=function(s){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+s)},RegExpValidationState.prototype.at=function(s,c){c===void 0&&(c=!1);var u=this.source,d=u.length;if(s>=d)return-1;var p=u.charCodeAt(s);if(!(c||this.switchU)||p<=55295||p>=57344||s+1>=d)return p;var v=u.charCodeAt(s+1);return v>=56320&&v<=57343?(p<<10)+v-56613888:p},RegExpValidationState.prototype.nextIndex=function(s,c){c===void 0&&(c=!1);var u=this.source,d=u.length;if(s>=d)return d;var p=u.charCodeAt(s),v;return!(c||this.switchU)||p<=55295||p>=57344||s+1>=d||(v=u.charCodeAt(s+1))<56320||v>57343?s+1:s+2},RegExpValidationState.prototype.current=function(s){return s===void 0&&(s=!1),this.at(this.pos,s)},RegExpValidationState.prototype.lookahead=function(s){return s===void 0&&(s=!1),this.at(this.nextIndex(this.pos,s),s)},RegExpValidationState.prototype.advance=function(s){s===void 0&&(s=!1),this.pos=this.nextIndex(this.pos,s)},RegExpValidationState.prototype.eat=function(s,c){return c===void 0&&(c=!1),this.current(c)===s?(this.advance(c),!0):!1},RegExpValidationState.prototype.eatChars=function(s,c){c===void 0&&(c=!1);for(var u=this.pos,d=0,p=s;d<p.length;d+=1){var v=p[d],A=this.at(u,c);if(A===-1||A!==v)return!1;u=this.nextIndex(u,c)}return this.pos=u,!0},pp$1.validateRegExpFlags=function(a){for(var s=a.validFlags,c=a.flags,u=!1,d=!1,p=0;p<c.length;p++){var v=c.charAt(p);s.indexOf(v)===-1&&this.raise(a.start,"Invalid regular expression flag"),c.indexOf(v,p+1)>-1&&this.raise(a.start,"Duplicate regular expression flag"),v==="u"&&(u=!0),v==="v"&&(d=!0)}this.options.ecmaVersion>=15&&u&&d&&this.raise(a.start,"Invalid regular expression flag")};function hasProp(a){for(var s in a)return!0;return!1}pp$1.validateRegExpPattern=function(a){this.regexp_pattern(a),!a.switchN&&this.options.ecmaVersion>=9&&hasProp(a.groupNames)&&(a.switchN=!0,this.regexp_pattern(a))},pp$1.regexp_pattern=function(a){a.pos=0,a.lastIntValue=0,a.lastStringValue="",a.lastAssertionIsQuantifiable=!1,a.numCapturingParens=0,a.maxBackReference=0,a.groupNames=Object.create(null),a.backReferenceNames.length=0,a.branchID=null,this.regexp_disjunction(a),a.pos!==a.source.length&&(a.eat(41)&&a.raise("Unmatched ')'"),(a.eat(93)||a.eat(125))&&a.raise("Lone quantifier brackets")),a.maxBackReference>a.numCapturingParens&&a.raise("Invalid escape");for(var s=0,c=a.backReferenceNames;s<c.length;s+=1){var u=c[s];a.groupNames[u]||a.raise("Invalid named capture referenced")}},pp$1.regexp_disjunction=function(a){var s=this.options.ecmaVersion>=16;for(s&&(a.branchID=new BranchID(a.branchID,null)),this.regexp_alternative(a);a.eat(124);)s&&(a.branchID=a.branchID.sibling()),this.regexp_alternative(a);s&&(a.branchID=a.branchID.parent),this.regexp_eatQuantifier(a,!0)&&a.raise("Nothing to repeat"),a.eat(123)&&a.raise("Lone quantifier brackets")},pp$1.regexp_alternative=function(a){for(;a.pos<a.source.length&&this.regexp_eatTerm(a););},pp$1.regexp_eatTerm=function(a){return this.regexp_eatAssertion(a)?(a.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(a)&&a.switchU&&a.raise("Invalid quantifier"),!0):(a.switchU?this.regexp_eatAtom(a):this.regexp_eatExtendedAtom(a))?(this.regexp_eatQuantifier(a),!0):!1},pp$1.regexp_eatAssertion=function(a){var s=a.pos;if(a.lastAssertionIsQuantifiable=!1,a.eat(94)||a.eat(36))return!0;if(a.eat(92)){if(a.eat(66)||a.eat(98))return!0;a.pos=s}if(a.eat(40)&&a.eat(63)){var c=!1;if(this.options.ecmaVersion>=9&&(c=a.eat(60)),a.eat(61)||a.eat(33))return this.regexp_disjunction(a),a.eat(41)||a.raise("Unterminated group"),a.lastAssertionIsQuantifiable=!c,!0}return a.pos=s,!1},pp$1.regexp_eatQuantifier=function(a,s){return s===void 0&&(s=!1),this.regexp_eatQuantifierPrefix(a,s)?(a.eat(63),!0):!1},pp$1.regexp_eatQuantifierPrefix=function(a,s){return a.eat(42)||a.eat(43)||a.eat(63)||this.regexp_eatBracedQuantifier(a,s)},pp$1.regexp_eatBracedQuantifier=function(a,s){var c=a.pos;if(a.eat(123)){var u=0,d=-1;if(this.regexp_eatDecimalDigits(a)&&(u=a.lastIntValue,a.eat(44)&&this.regexp_eatDecimalDigits(a)&&(d=a.lastIntValue),a.eat(125)))return d!==-1&&d<u&&!s&&a.raise("numbers out of order in {} quantifier"),!0;a.switchU&&!s&&a.raise("Incomplete quantifier"),a.pos=c}return!1},pp$1.regexp_eatAtom=function(a){return this.regexp_eatPatternCharacters(a)||a.eat(46)||this.regexp_eatReverseSolidusAtomEscape(a)||this.regexp_eatCharacterClass(a)||this.regexp_eatUncapturingGroup(a)||this.regexp_eatCapturingGroup(a)},pp$1.regexp_eatReverseSolidusAtomEscape=function(a){var s=a.pos;if(a.eat(92)){if(this.regexp_eatAtomEscape(a))return!0;a.pos=s}return!1},pp$1.regexp_eatUncapturingGroup=function(a){var s=a.pos;if(a.eat(40)){if(a.eat(63)){if(this.options.ecmaVersion>=16){var c=this.regexp_eatModifiers(a),u=a.eat(45);if(c||u){for(var d=0;d<c.length;d++){var p=c.charAt(d);c.indexOf(p,d+1)>-1&&a.raise("Duplicate regular expression modifiers")}if(u){var v=this.regexp_eatModifiers(a);!c&&!v&&a.current()===58&&a.raise("Invalid regular expression modifiers");for(var A=0;A<v.length;A++){var b=v.charAt(A);(v.indexOf(b,A+1)>-1||c.indexOf(b)>-1)&&a.raise("Duplicate regular expression modifiers")}}}}if(a.eat(58)){if(this.regexp_disjunction(a),a.eat(41))return!0;a.raise("Unterminated group")}}a.pos=s}return!1},pp$1.regexp_eatCapturingGroup=function(a){if(a.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(a):a.current()===63&&a.raise("Invalid group"),this.regexp_disjunction(a),a.eat(41))return a.numCapturingParens+=1,!0;a.raise("Unterminated group")}return!1},pp$1.regexp_eatModifiers=function(a){for(var s="",c=0;(c=a.current())!==-1&&isRegularExpressionModifier(c);)s+=codePointToString(c),a.advance();return s};function isRegularExpressionModifier(a){return a===105||a===109||a===115}pp$1.regexp_eatExtendedAtom=function(a){return a.eat(46)||this.regexp_eatReverseSolidusAtomEscape(a)||this.regexp_eatCharacterClass(a)||this.regexp_eatUncapturingGroup(a)||this.regexp_eatCapturingGroup(a)||this.regexp_eatInvalidBracedQuantifier(a)||this.regexp_eatExtendedPatternCharacter(a)},pp$1.regexp_eatInvalidBracedQuantifier=function(a){return this.regexp_eatBracedQuantifier(a,!0)&&a.raise("Nothing to repeat"),!1},pp$1.regexp_eatSyntaxCharacter=function(a){var s=a.current();return isSyntaxCharacter(s)?(a.lastIntValue=s,a.advance(),!0):!1};function isSyntaxCharacter(a){return a===36||a>=40&&a<=43||a===46||a===63||a>=91&&a<=94||a>=123&&a<=125}pp$1.regexp_eatPatternCharacters=function(a){for(var s=a.pos,c=0;(c=a.current())!==-1&&!isSyntaxCharacter(c);)a.advance();return a.pos!==s},pp$1.regexp_eatExtendedPatternCharacter=function(a){var s=a.current();return s!==-1&&s!==36&&!(s>=40&&s<=43)&&s!==46&&s!==63&&s!==91&&s!==94&&s!==124?(a.advance(),!0):!1},pp$1.regexp_groupSpecifier=function(a){if(a.eat(63)){this.regexp_eatGroupName(a)||a.raise("Invalid group");var s=this.options.ecmaVersion>=16,c=a.groupNames[a.lastStringValue];if(c)if(s)for(var u=0,d=c;u<d.length;u+=1){var p=d[u];p.separatedFrom(a.branchID)||a.raise("Duplicate capture group name")}else a.raise("Duplicate capture group name");s?(c||(a.groupNames[a.lastStringValue]=[])).push(a.branchID):a.groupNames[a.lastStringValue]=!0}},pp$1.regexp_eatGroupName=function(a){if(a.lastStringValue="",a.eat(60)){if(this.regexp_eatRegExpIdentifierName(a)&&a.eat(62))return!0;a.raise("Invalid capture group name")}return!1},pp$1.regexp_eatRegExpIdentifierName=function(a){if(a.lastStringValue="",this.regexp_eatRegExpIdentifierStart(a)){for(a.lastStringValue+=codePointToString(a.lastIntValue);this.regexp_eatRegExpIdentifierPart(a);)a.lastStringValue+=codePointToString(a.lastIntValue);return!0}return!1},pp$1.regexp_eatRegExpIdentifierStart=function(a){var s=a.pos,c=this.options.ecmaVersion>=11,u=a.current(c);return a.advance(c),u===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,c)&&(u=a.lastIntValue),isRegExpIdentifierStart(u)?(a.lastIntValue=u,!0):(a.pos=s,!1)};function isRegExpIdentifierStart(a){return isIdentifierStart(a,!0)||a===36||a===95}pp$1.regexp_eatRegExpIdentifierPart=function(a){var s=a.pos,c=this.options.ecmaVersion>=11,u=a.current(c);return a.advance(c),u===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,c)&&(u=a.lastIntValue),isRegExpIdentifierPart(u)?(a.lastIntValue=u,!0):(a.pos=s,!1)};function isRegExpIdentifierPart(a){return isIdentifierChar(a,!0)||a===36||a===95||a===8204||a===8205}pp$1.regexp_eatAtomEscape=function(a){return this.regexp_eatBackReference(a)||this.regexp_eatCharacterClassEscape(a)||this.regexp_eatCharacterEscape(a)||a.switchN&&this.regexp_eatKGroupName(a)?!0:(a.switchU&&(a.current()===99&&a.raise("Invalid unicode escape"),a.raise("Invalid escape")),!1)},pp$1.regexp_eatBackReference=function(a){var s=a.pos;if(this.regexp_eatDecimalEscape(a)){var c=a.lastIntValue;if(a.switchU)return c>a.maxBackReference&&(a.maxBackReference=c),!0;if(c<=a.numCapturingParens)return!0;a.pos=s}return!1},pp$1.regexp_eatKGroupName=function(a){if(a.eat(107)){if(this.regexp_eatGroupName(a))return a.backReferenceNames.push(a.lastStringValue),!0;a.raise("Invalid named reference")}return!1},pp$1.regexp_eatCharacterEscape=function(a){return this.regexp_eatControlEscape(a)||this.regexp_eatCControlLetter(a)||this.regexp_eatZero(a)||this.regexp_eatHexEscapeSequence(a)||this.regexp_eatRegExpUnicodeEscapeSequence(a,!1)||!a.switchU&&this.regexp_eatLegacyOctalEscapeSequence(a)||this.regexp_eatIdentityEscape(a)},pp$1.regexp_eatCControlLetter=function(a){var s=a.pos;if(a.eat(99)){if(this.regexp_eatControlLetter(a))return!0;a.pos=s}return!1},pp$1.regexp_eatZero=function(a){return a.current()===48&&!isDecimalDigit(a.lookahead())?(a.lastIntValue=0,a.advance(),!0):!1},pp$1.regexp_eatControlEscape=function(a){var s=a.current();return s===116?(a.lastIntValue=9,a.advance(),!0):s===110?(a.lastIntValue=10,a.advance(),!0):s===118?(a.lastIntValue=11,a.advance(),!0):s===102?(a.lastIntValue=12,a.advance(),!0):s===114?(a.lastIntValue=13,a.advance(),!0):!1},pp$1.regexp_eatControlLetter=function(a){var s=a.current();return isControlLetter(s)?(a.lastIntValue=s%32,a.advance(),!0):!1};function isControlLetter(a){return a>=65&&a<=90||a>=97&&a<=122}pp$1.regexp_eatRegExpUnicodeEscapeSequence=function(a,s){s===void 0&&(s=!1);var c=a.pos,u=s||a.switchU;if(a.eat(117)){if(this.regexp_eatFixedHexDigits(a,4)){var d=a.lastIntValue;if(u&&d>=55296&&d<=56319){var p=a.pos;if(a.eat(92)&&a.eat(117)&&this.regexp_eatFixedHexDigits(a,4)){var v=a.lastIntValue;if(v>=56320&&v<=57343)return a.lastIntValue=(d-55296)*1024+(v-56320)+65536,!0}a.pos=p,a.lastIntValue=d}return!0}if(u&&a.eat(123)&&this.regexp_eatHexDigits(a)&&a.eat(125)&&isValidUnicode(a.lastIntValue))return!0;u&&a.raise("Invalid unicode escape"),a.pos=c}return!1};function isValidUnicode(a){return a>=0&&a<=1114111}pp$1.regexp_eatIdentityEscape=function(a){if(a.switchU)return this.regexp_eatSyntaxCharacter(a)?!0:a.eat(47)?(a.lastIntValue=47,!0):!1;var s=a.current();return s!==99&&(!a.switchN||s!==107)?(a.lastIntValue=s,a.advance(),!0):!1},pp$1.regexp_eatDecimalEscape=function(a){a.lastIntValue=0;var s=a.current();if(s>=49&&s<=57){do a.lastIntValue=10*a.lastIntValue+(s-48),a.advance();while((s=a.current())>=48&&s<=57);return!0}return!1};var CharSetNone=0,CharSetOk=1,CharSetString=2;pp$1.regexp_eatCharacterClassEscape=function(a){var s=a.current();if(isCharacterClassEscape(s))return a.lastIntValue=-1,a.advance(),CharSetOk;var c=!1;if(a.switchU&&this.options.ecmaVersion>=9&&((c=s===80)||s===112)){a.lastIntValue=-1,a.advance();var u;if(a.eat(123)&&(u=this.regexp_eatUnicodePropertyValueExpression(a))&&a.eat(125))return c&&u===CharSetString&&a.raise("Invalid property name"),u;a.raise("Invalid property name")}return CharSetNone};function isCharacterClassEscape(a){return a===100||a===68||a===115||a===83||a===119||a===87}pp$1.regexp_eatUnicodePropertyValueExpression=function(a){var s=a.pos;if(this.regexp_eatUnicodePropertyName(a)&&a.eat(61)){var c=a.lastStringValue;if(this.regexp_eatUnicodePropertyValue(a)){var u=a.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(a,c,u),CharSetOk}}if(a.pos=s,this.regexp_eatLoneUnicodePropertyNameOrValue(a)){var d=a.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(a,d)}return CharSetNone},pp$1.regexp_validateUnicodePropertyNameAndValue=function(a,s,c){hasOwn(a.unicodeProperties.nonBinary,s)||a.raise("Invalid property name"),a.unicodeProperties.nonBinary[s].test(c)||a.raise("Invalid property value")},pp$1.regexp_validateUnicodePropertyNameOrValue=function(a,s){if(a.unicodeProperties.binary.test(s))return CharSetOk;if(a.switchV&&a.unicodeProperties.binaryOfStrings.test(s))return CharSetString;a.raise("Invalid property name")},pp$1.regexp_eatUnicodePropertyName=function(a){var s=0;for(a.lastStringValue="";isUnicodePropertyNameCharacter(s=a.current());)a.lastStringValue+=codePointToString(s),a.advance();return a.lastStringValue!==""};function isUnicodePropertyNameCharacter(a){return isControlLetter(a)||a===95}pp$1.regexp_eatUnicodePropertyValue=function(a){var s=0;for(a.lastStringValue="";isUnicodePropertyValueCharacter(s=a.current());)a.lastStringValue+=codePointToString(s),a.advance();return a.lastStringValue!==""};function isUnicodePropertyValueCharacter(a){return isUnicodePropertyNameCharacter(a)||isDecimalDigit(a)}pp$1.regexp_eatLoneUnicodePropertyNameOrValue=function(a){return this.regexp_eatUnicodePropertyValue(a)},pp$1.regexp_eatCharacterClass=function(a){if(a.eat(91)){var s=a.eat(94),c=this.regexp_classContents(a);return a.eat(93)||a.raise("Unterminated character class"),s&&c===CharSetString&&a.raise("Negated character class may contain strings"),!0}return!1},pp$1.regexp_classContents=function(a){return a.current()===93?CharSetOk:a.switchV?this.regexp_classSetExpression(a):(this.regexp_nonEmptyClassRanges(a),CharSetOk)},pp$1.regexp_nonEmptyClassRanges=function(a){for(;this.regexp_eatClassAtom(a);){var s=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassAtom(a)){var c=a.lastIntValue;a.switchU&&(s===-1||c===-1)&&a.raise("Invalid character class"),s!==-1&&c!==-1&&s>c&&a.raise("Range out of order in character class")}}},pp$1.regexp_eatClassAtom=function(a){var s=a.pos;if(a.eat(92)){if(this.regexp_eatClassEscape(a))return!0;if(a.switchU){var c=a.current();(c===99||isOctalDigit(c))&&a.raise("Invalid class escape"),a.raise("Invalid escape")}a.pos=s}var u=a.current();return u!==93?(a.lastIntValue=u,a.advance(),!0):!1},pp$1.regexp_eatClassEscape=function(a){var s=a.pos;if(a.eat(98))return a.lastIntValue=8,!0;if(a.switchU&&a.eat(45))return a.lastIntValue=45,!0;if(!a.switchU&&a.eat(99)){if(this.regexp_eatClassControlLetter(a))return!0;a.pos=s}return this.regexp_eatCharacterClassEscape(a)||this.regexp_eatCharacterEscape(a)},pp$1.regexp_classSetExpression=function(a){var s=CharSetOk,c;if(!this.regexp_eatClassSetRange(a))if(c=this.regexp_eatClassSetOperand(a)){c===CharSetString&&(s=CharSetString);for(var u=a.pos;a.eatChars([38,38]);){if(a.current()!==38&&(c=this.regexp_eatClassSetOperand(a))){c!==CharSetString&&(s=CharSetOk);continue}a.raise("Invalid character in character class")}if(u!==a.pos)return s;for(;a.eatChars([45,45]);)this.regexp_eatClassSetOperand(a)||a.raise("Invalid character in character class");if(u!==a.pos)return s}else a.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(a)){if(c=this.regexp_eatClassSetOperand(a),!c)return s;c===CharSetString&&(s=CharSetString)}},pp$1.regexp_eatClassSetRange=function(a){var s=a.pos;if(this.regexp_eatClassSetCharacter(a)){var c=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassSetCharacter(a)){var u=a.lastIntValue;return c!==-1&&u!==-1&&c>u&&a.raise("Range out of order in character class"),!0}a.pos=s}return!1},pp$1.regexp_eatClassSetOperand=function(a){return this.regexp_eatClassSetCharacter(a)?CharSetOk:this.regexp_eatClassStringDisjunction(a)||this.regexp_eatNestedClass(a)},pp$1.regexp_eatNestedClass=function(a){var s=a.pos;if(a.eat(91)){var c=a.eat(94),u=this.regexp_classContents(a);if(a.eat(93))return c&&u===CharSetString&&a.raise("Negated character class may contain strings"),u;a.pos=s}if(a.eat(92)){var d=this.regexp_eatCharacterClassEscape(a);if(d)return d;a.pos=s}return null},pp$1.regexp_eatClassStringDisjunction=function(a){var s=a.pos;if(a.eatChars([92,113])){if(a.eat(123)){var c=this.regexp_classStringDisjunctionContents(a);if(a.eat(125))return c}else a.raise("Invalid escape");a.pos=s}return null},pp$1.regexp_classStringDisjunctionContents=function(a){for(var s=this.regexp_classString(a);a.eat(124);)this.regexp_classString(a)===CharSetString&&(s=CharSetString);return s},pp$1.regexp_classString=function(a){for(var s=0;this.regexp_eatClassSetCharacter(a);)s++;return s===1?CharSetOk:CharSetString},pp$1.regexp_eatClassSetCharacter=function(a){var s=a.pos;if(a.eat(92))return this.regexp_eatCharacterEscape(a)||this.regexp_eatClassSetReservedPunctuator(a)?!0:a.eat(98)?(a.lastIntValue=8,!0):(a.pos=s,!1);var c=a.current();return c<0||c===a.lookahead()&&isClassSetReservedDoublePunctuatorCharacter(c)||isClassSetSyntaxCharacter(c)?!1:(a.advance(),a.lastIntValue=c,!0)};function isClassSetReservedDoublePunctuatorCharacter(a){return a===33||a>=35&&a<=38||a>=42&&a<=44||a===46||a>=58&&a<=64||a===94||a===96||a===126}function isClassSetSyntaxCharacter(a){return a===40||a===41||a===45||a===47||a>=91&&a<=93||a>=123&&a<=125}pp$1.regexp_eatClassSetReservedPunctuator=function(a){var s=a.current();return isClassSetReservedPunctuator(s)?(a.lastIntValue=s,a.advance(),!0):!1};function isClassSetReservedPunctuator(a){return a===33||a===35||a===37||a===38||a===44||a===45||a>=58&&a<=62||a===64||a===96||a===126}pp$1.regexp_eatClassControlLetter=function(a){var s=a.current();return isDecimalDigit(s)||s===95?(a.lastIntValue=s%32,a.advance(),!0):!1},pp$1.regexp_eatHexEscapeSequence=function(a){var s=a.pos;if(a.eat(120)){if(this.regexp_eatFixedHexDigits(a,2))return!0;a.switchU&&a.raise("Invalid escape"),a.pos=s}return!1},pp$1.regexp_eatDecimalDigits=function(a){var s=a.pos,c=0;for(a.lastIntValue=0;isDecimalDigit(c=a.current());)a.lastIntValue=10*a.lastIntValue+(c-48),a.advance();return a.pos!==s};function isDecimalDigit(a){return a>=48&&a<=57}pp$1.regexp_eatHexDigits=function(a){var s=a.pos,c=0;for(a.lastIntValue=0;isHexDigit(c=a.current());)a.lastIntValue=16*a.lastIntValue+hexToInt(c),a.advance();return a.pos!==s};function isHexDigit(a){return a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102}function hexToInt(a){return a>=65&&a<=70?10+(a-65):a>=97&&a<=102?10+(a-97):a-48}pp$1.regexp_eatLegacyOctalEscapeSequence=function(a){if(this.regexp_eatOctalDigit(a)){var s=a.lastIntValue;if(this.regexp_eatOctalDigit(a)){var c=a.lastIntValue;s<=3&&this.regexp_eatOctalDigit(a)?a.lastIntValue=s*64+c*8+a.lastIntValue:a.lastIntValue=s*8+c}else a.lastIntValue=s;return!0}return!1},pp$1.regexp_eatOctalDigit=function(a){var s=a.current();return isOctalDigit(s)?(a.lastIntValue=s-48,a.advance(),!0):(a.lastIntValue=0,!1)};function isOctalDigit(a){return a>=48&&a<=55}pp$1.regexp_eatFixedHexDigits=function(a,s){var c=a.pos;a.lastIntValue=0;for(var u=0;u<s;++u){var d=a.current();if(!isHexDigit(d))return a.pos=c,!1;a.lastIntValue=16*a.lastIntValue+hexToInt(d),a.advance()}return!0};var Token=function(s){this.type=s.type,this.value=s.value,this.start=s.start,this.end=s.end,s.options.locations&&(this.loc=new SourceLocation(s,s.startLoc,s.endLoc)),s.options.ranges&&(this.range=[s.start,s.end])},pp=Parser.prototype;pp.next=function(a){!a&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Token(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},pp.getToken=function(){return this.next(),new Token(this)},typeof Symbol<"u"&&(pp[Symbol.iterator]=function(){var a=this;return{next:function(){var s=a.getToken();return{done:s.type===types$1.eof,value:s}}}}),pp.nextToken=function(){var a=this.curContext();if((!a||!a.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(types$1.eof);if(a.override)return a.override(this);this.readToken(this.fullCharCodeAtPos())},pp.readToken=function(a){return isIdentifierStart(a,this.options.ecmaVersion>=6)||a===92?this.readWord():this.getTokenFromCode(a)},pp.fullCharCodeAtPos=function(){var a=this.input.charCodeAt(this.pos);if(a<=55295||a>=56320)return a;var s=this.input.charCodeAt(this.pos+1);return s<=56319||s>=57344?a:(a<<10)+s-56613888},pp.skipBlockComment=function(){var a=this.options.onComment&&this.curPosition(),s=this.pos,c=this.input.indexOf("*/",this.pos+=2);if(c===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=c+2,this.options.locations)for(var u=void 0,d=s;(u=nextLineBreak(this.input,d,this.pos))>-1;)++this.curLine,d=this.lineStart=u;this.options.onComment&&this.options.onComment(!0,this.input.slice(s+2,c),s,this.pos,a,this.curPosition())},pp.skipLineComment=function(a){for(var s=this.pos,c=this.options.onComment&&this.curPosition(),u=this.input.charCodeAt(this.pos+=a);this.pos<this.input.length&&!isNewLine(u);)u=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(s+a,this.pos),s,this.pos,c,this.curPosition())},pp.skipSpace=function(){e:for(;this.pos<this.input.length;){var a=this.input.charCodeAt(this.pos);switch(a){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(a>8&&a<14||a>=5760&&nonASCIIwhitespace.test(String.fromCharCode(a)))++this.pos;else break e}}},pp.finishToken=function(a,s){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var c=this.type;this.type=a,this.value=s,this.updateContext(c)},pp.readToken_dot=function(){var a=this.input.charCodeAt(this.pos+1);if(a>=48&&a<=57)return this.readNumber(!0);var s=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&a===46&&s===46?(this.pos+=3,this.finishToken(types$1.ellipsis)):(++this.pos,this.finishToken(types$1.dot))},pp.readToken_slash=function(){var a=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):a===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.slash,1)},pp.readToken_mult_modulo_exp=function(a){var s=this.input.charCodeAt(this.pos+1),c=1,u=a===42?types$1.star:types$1.modulo;return this.options.ecmaVersion>=7&&a===42&&s===42&&(++c,u=types$1.starstar,s=this.input.charCodeAt(this.pos+2)),s===61?this.finishOp(types$1.assign,c+1):this.finishOp(u,c)},pp.readToken_pipe_amp=function(a){var s=this.input.charCodeAt(this.pos+1);if(s===a){if(this.options.ecmaVersion>=12){var c=this.input.charCodeAt(this.pos+2);if(c===61)return this.finishOp(types$1.assign,3)}return this.finishOp(a===124?types$1.logicalOR:types$1.logicalAND,2)}return s===61?this.finishOp(types$1.assign,2):this.finishOp(a===124?types$1.bitwiseOR:types$1.bitwiseAND,1)},pp.readToken_caret=function(){var a=this.input.charCodeAt(this.pos+1);return a===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.bitwiseXOR,1)},pp.readToken_plus_min=function(a){var s=this.input.charCodeAt(this.pos+1);return s===a?s===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||lineBreak.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(types$1.incDec,2):s===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.plusMin,1)},pp.readToken_lt_gt=function(a){var s=this.input.charCodeAt(this.pos+1),c=1;return s===a?(c=a===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+c)===61?this.finishOp(types$1.assign,c+1):this.finishOp(types$1.bitShift,c)):s===33&&a===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(s===61&&(c=2),this.finishOp(types$1.relational,c))},pp.readToken_eq_excl=function(a){var s=this.input.charCodeAt(this.pos+1);return s===61?this.finishOp(types$1.equality,this.input.charCodeAt(this.pos+2)===61?3:2):a===61&&s===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(types$1.arrow)):this.finishOp(a===61?types$1.eq:types$1.prefix,1)},pp.readToken_question=function(){var a=this.options.ecmaVersion;if(a>=11){var s=this.input.charCodeAt(this.pos+1);if(s===46){var c=this.input.charCodeAt(this.pos+2);if(c<48||c>57)return this.finishOp(types$1.questionDot,2)}if(s===63){if(a>=12){var u=this.input.charCodeAt(this.pos+2);if(u===61)return this.finishOp(types$1.assign,3)}return this.finishOp(types$1.coalesce,2)}}return this.finishOp(types$1.question,1)},pp.readToken_numberSign=function(){var a=this.options.ecmaVersion,s=35;if(a>=13&&(++this.pos,s=this.fullCharCodeAtPos(),isIdentifierStart(s,!0)||s===92))return this.finishToken(types$1.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+codePointToString(s)+"'")},pp.getTokenFromCode=function(a){switch(a){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(types$1.parenL);case 41:return++this.pos,this.finishToken(types$1.parenR);case 59:return++this.pos,this.finishToken(types$1.semi);case 44:return++this.pos,this.finishToken(types$1.comma);case 91:return++this.pos,this.finishToken(types$1.bracketL);case 93:return++this.pos,this.finishToken(types$1.bracketR);case 123:return++this.pos,this.finishToken(types$1.braceL);case 125:return++this.pos,this.finishToken(types$1.braceR);case 58:return++this.pos,this.finishToken(types$1.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(types$1.backQuote);case 48:var s=this.input.charCodeAt(this.pos+1);if(s===120||s===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(s===111||s===79)return this.readRadixNumber(8);if(s===98||s===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(a);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(a);case 124:case 38:return this.readToken_pipe_amp(a);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(a);case 60:case 62:return this.readToken_lt_gt(a);case 61:case 33:return this.readToken_eq_excl(a);case 63:return this.readToken_question();case 126:return this.finishOp(types$1.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(a)+"'")},pp.finishOp=function(a,s){var c=this.input.slice(this.pos,this.pos+s);return this.pos+=s,this.finishToken(a,c)},pp.readRegexp=function(){for(var a,s,c=this.pos;;){this.pos>=this.input.length&&this.raise(c,"Unterminated regular expression");var u=this.input.charAt(this.pos);if(lineBreak.test(u)&&this.raise(c,"Unterminated regular expression"),a)a=!1;else{if(u==="[")s=!0;else if(u==="]"&&s)s=!1;else if(u==="/"&&!s)break;a=u==="\\"}++this.pos}var d=this.input.slice(c,this.pos);++this.pos;var p=this.pos,v=this.readWord1();this.containsEsc&&this.unexpected(p);var A=this.regexpState||(this.regexpState=new RegExpValidationState(this));A.reset(c,d,v),this.validateRegExpFlags(A),this.validateRegExpPattern(A);var b=null;try{b=new RegExp(d,v)}catch{}return this.finishToken(types$1.regexp,{pattern:d,flags:v,value:b})},pp.readInt=function(a,s,c){for(var u=this.options.ecmaVersion>=12&&s===void 0,d=c&&this.input.charCodeAt(this.pos)===48,p=this.pos,v=0,A=0,b=0,g=s??1/0;b<g;++b,++this.pos){var x=this.input.charCodeAt(this.pos),y=void 0;if(u&&x===95){d&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),A===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),b===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),A=x;continue}if(x>=97?y=x-97+10:x>=65?y=x-65+10:x>=48&&x<=57?y=x-48:y=1/0,y>=a)break;A=x,v=v*a+y}return u&&A===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===p||s!=null&&this.pos-p!==s?null:v};function stringToNumber(a,s){return s?parseInt(a,8):parseFloat(a.replace(/_/g,""))}function stringToBigInt(a){return typeof BigInt!="function"?null:BigInt(a.replace(/_/g,""))}pp.readRadixNumber=function(a){var s=this.pos;this.pos+=2;var c=this.readInt(a);return c==null&&this.raise(this.start+2,"Expected number in radix "+a),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(c=stringToBigInt(this.input.slice(s,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types$1.num,c)},pp.readNumber=function(a){var s=this.pos;!a&&this.readInt(10,void 0,!0)===null&&this.raise(s,"Invalid number");var c=this.pos-s>=2&&this.input.charCodeAt(s)===48;c&&this.strict&&this.raise(s,"Invalid number");var u=this.input.charCodeAt(this.pos);if(!c&&!a&&this.options.ecmaVersion>=11&&u===110){var d=stringToBigInt(this.input.slice(s,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types$1.num,d)}c&&/[89]/.test(this.input.slice(s,this.pos))&&(c=!1),u===46&&!c&&(++this.pos,this.readInt(10),u=this.input.charCodeAt(this.pos)),(u===69||u===101)&&!c&&(u=this.input.charCodeAt(++this.pos),(u===43||u===45)&&++this.pos,this.readInt(10)===null&&this.raise(s,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var p=stringToNumber(this.input.slice(s,this.pos),c);return this.finishToken(types$1.num,p)},pp.readCodePoint=function(){var a=this.input.charCodeAt(this.pos),s;if(a===123){this.options.ecmaVersion<6&&this.unexpected();var c=++this.pos;s=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,s>1114111&&this.invalidStringToken(c,"Code point out of bounds")}else s=this.readHexChar(4);return s},pp.readString=function(a){for(var s="",c=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var u=this.input.charCodeAt(this.pos);if(u===a)break;u===92?(s+=this.input.slice(c,this.pos),s+=this.readEscapedChar(!1),c=this.pos):u===8232||u===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(isNewLine(u)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return s+=this.input.slice(c,this.pos++),this.finishToken(types$1.string,s)};var INVALID_TEMPLATE_ESCAPE_ERROR={};pp.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(a){if(a===INVALID_TEMPLATE_ESCAPE_ERROR)this.readInvalidTemplateToken();else throw a}this.inTemplateElement=!1},pp.invalidStringToken=function(a,s){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw INVALID_TEMPLATE_ESCAPE_ERROR;this.raise(a,s)},pp.readTmplToken=function(){for(var a="",s=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var c=this.input.charCodeAt(this.pos);if(c===96||c===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===types$1.template||this.type===types$1.invalidTemplate)?c===36?(this.pos+=2,this.finishToken(types$1.dollarBraceL)):(++this.pos,this.finishToken(types$1.backQuote)):(a+=this.input.slice(s,this.pos),this.finishToken(types$1.template,a));if(c===92)a+=this.input.slice(s,this.pos),a+=this.readEscapedChar(!0),s=this.pos;else if(isNewLine(c)){switch(a+=this.input.slice(s,this.pos),++this.pos,c){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:a+=`
|
55
55
|
`;break;default:a+=String.fromCharCode(c);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),s=this.pos}else++this.pos}},pp.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(types$1.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
56
56
|
`&&++this.pos;case`
|
57
57
|
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},pp.readEscapedChar=function(a){var s=this.input.charCodeAt(++this.pos);switch(++this.pos,s){case 110:return`
|
58
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),a){var c=this.pos-1;this.invalidStringToken(c,"Invalid escape sequence in template string")}default:if(s>=48&&s<=55){var u=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],d=parseInt(u,8);return d>255&&(u=u.slice(0,-1),d=parseInt(u,8)),this.pos+=u.length-1,s=this.input.charCodeAt(this.pos),(u!=="0"||s===56||s===57)&&(this.strict||a)&&this.invalidStringToken(this.pos-1-u.length,a?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(d)}return isNewLine(s)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(s)}},pp.readHexChar=function(a){var s=this.pos,c=this.readInt(16,a);return c===null&&this.invalidStringToken(s,"Bad character escape sequence"),c},pp.readWord1=function(){this.containsEsc=!1;for(var a="",s=!0,c=this.pos,u=this.options.ecmaVersion>=6;this.pos<this.input.length;){var d=this.fullCharCodeAtPos();if(isIdentifierChar(d,u))this.pos+=d<=65535?1:2;else if(d===92){this.containsEsc=!0,a+=this.input.slice(c,this.pos);var p=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var v=this.readCodePoint();(s?isIdentifierStart:isIdentifierChar)(v,u)||this.invalidStringToken(p,"Invalid Unicode escape"),a+=codePointToString(v),c=this.pos}else break;s=!1}return a+this.input.slice(c,this.pos)},pp.readWord=function(){var a=this.readWord1(),s=types$1.name;return this.keywords.test(a)&&(s=keywords[a]),this.finishToken(s,a)};var version$2="8.14.0";Parser.acorn={Parser,version:version$2,defaultOptions:defaultOptions$1,Position,SourceLocation,getLineInfo,Node,TokenType,tokTypes:types$1,keywordTypes:keywords,TokContext,tokContexts:types$2,isIdentifierChar,isIdentifierStart,Token,isNewLine,lineBreak,lineBreakG,nonASCIIwhitespace};function parseExpressionAt(a,s,c){return Parser.parseExpressionAt(a,s,c)}const expressionCache=new Map,parseDataCache=new Map,parseData=a=>{const s=JSON.stringify(a);if(parseDataCache.has(s))return parseDataCache.get(s);const c=Object.fromEntries(Object.entries(a).map(([u,d])=>{if(typeof d=="string")try{const p=JSON.parse(d);return[u,p]}catch{return[u,d]}return[u,d]}));return parseDataCache.set(s,c),c},padZero=a=>String(a).padStart(2,"0"),formatDate=a=>`${a.getFullYear()}/${padZero(a.getMonth()+1)}/${padZero(a.getDate())}`,formatDateTime=a=>`${formatDate(a)} ${padZero(a.getHours())}:${padZero(a.getMinutes())}`,allowedGlobals={Math,String,Number,Boolean,Array,Object,Date,JSON,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent},validateAST=a=>{switch(a.type){case"Literal":case"Identifier":break;case"BinaryExpression":case"LogicalExpression":{const s=a;validateAST(s.left),validateAST(s.right);break}case"UnaryExpression":{validateAST(a.argument);break}case"ConditionalExpression":{const s=a;validateAST(s.test),validateAST(s.consequent),validateAST(s.alternate);break}case"MemberExpression":{const s=a;if(validateAST(s.object),s.computed)validateAST(s.property);else{const c=s.property.name;if(["constructor","__proto__","prototype"].includes(c))throw new Error("Access to prohibited property");if(typeof c=="string"&&["toLocaleString","valueOf"].includes(c))throw new Error(`Access to prohibited method: ${c}`)}break}case"CallExpression":{const s=a;validateAST(s.callee),s.arguments.forEach(validateAST);break}case"ArrayExpression":{a.elements.forEach(c=>{c&&validateAST(c)});break}case"ObjectExpression":{a.properties.forEach(c=>{const u=c;validateAST(u.key),validateAST(u.value)});break}case"ArrowFunctionExpression":{const s=a;s.params.forEach(c=>{if(c.type!=="Identifier")throw new Error("Only identifier parameters are supported in arrow functions");validateAST(c)}),validateAST(s.body);break}default:throw new Error(`Unsupported syntax in placeholder: ${a.type}`)}},evaluateAST=(a,s)=>{switch(a.type){case"Literal":return a.value;case"Identifier":{const c=a;if(Object.prototype.hasOwnProperty.call(s,c.name))return s[c.name];if(Object.prototype.hasOwnProperty.call(allowedGlobals,c.name))return allowedGlobals[c.name];throw new Error(`Undefined variable: ${c.name}`)}case"BinaryExpression":{const c=a,u=evaluateAST(c.left,s),d=evaluateAST(c.right,s);switch(c.operator){case"+":return u+d;case"-":return u-d;case"*":return u*d;case"/":return u/d;case"%":return u%d;case"**":return u**d;case"==":return u==d;case"!=":return u!=d;case"===":return u===d;case"!==":return u!==d;case"<":return u<d;case">":return u>d;case"<=":return u<=d;case">=":return u>=d;default:throw new Error(`Unsupported operator: ${c.operator}`)}}case"LogicalExpression":{const c=a,u=evaluateAST(c.left,s),d=evaluateAST(c.right,s);switch(c.operator){case"&&":return u&&d;case"||":return u||d;default:throw new Error(`Unsupported operator: ${c.operator}`)}}case"UnaryExpression":{const c=a,u=evaluateAST(c.argument,s);switch(c.operator){case"+":return+u;case"-":return-u;case"!":return!u;default:throw new Error(`Unsupported operator: ${c.operator}`)}}case"ConditionalExpression":{const c=a,u=evaluateAST(c.test,s);return evaluateAST(u?c.consequent:c.alternate,s)}case"MemberExpression":{const c=a,u=evaluateAST(c.object,s);let d;if(c.computed?d=evaluateAST(c.property,s):d=c.property.name,typeof d=="string"||typeof d=="number"){if(typeof d=="string"&&["constructor","__proto__","prototype"].includes(d))throw new Error("Access to prohibited property");return u[d]}else throw new Error("Invalid property access")}case"CallExpression":{const c=a,u=evaluateAST(c.callee,s),d=c.arguments.map(p=>evaluateAST(p,s));if(typeof u=="function")if(c.callee.type==="MemberExpression"){const p=c.callee,v=evaluateAST(p.object,s);if(v!==null&&(typeof v=="object"||typeof v=="number"||typeof v=="string"||typeof v=="boolean"))return u.call(v,...d);throw new Error("Invalid object in member function call")}else return u(...d);else throw new Error("Attempted to call a non-function")}case"ArrowFunctionExpression":{const c=a,u=c.params.map(p=>p.name),d=c.body;return(...p)=>{const v={...s};return u.forEach((A,b)=>{v[A]=p[b]}),evaluateAST(d,v)}}case"ArrayExpression":return a.elements.map(u=>u?evaluateAST(u,s):null);case"ObjectExpression":{const c=a,u={};return c.properties.forEach(d=>{const p=d;let v;if(p.key.type==="Identifier")v=p.key.name;else{const b=evaluateAST(p.key,s);if(typeof b!="string"&&typeof b!="number")throw new Error("Object property keys must be strings or numbers");v=String(b)}const A=evaluateAST(p.value,s);u[v]=A}),u}default:throw new Error(`Unsupported syntax in placeholder: ${a.type}`)}},evaluatePlaceholders=a=>{const{content:s,context:c}=a;let u="",d=0;for(;d<s.length;){const p=s.indexOf("{",d);if(p===-1){u+=s.slice(d);break}u+=s.slice(d,p);let v=1,A=p+1;for(;A<s.length&&v>0;)s[A]==="{"?v++:s[A]==="}"&&v--,A++;if(v===0){const b=s.slice(p+1,A-1).trim();if(expressionCache.has(b)){const g=expressionCache.get(b);try{const x=g(c);u+=String(x)}catch{u+=s.slice(p,A)}}else try{const g=parseExpressionAt(b,0,{ecmaVersion:"latest"});validateAST(g);const x=f=>evaluateAST(g,f);expressionCache.set(b,x);const y=x(c);u+=String(y)}catch{u+=s.slice(p,A)}d=A}else throw new Error("Invalid placeholder")}return u},replacePlaceholders=a=>{const{content:s,variables:c,schemas:u}=a;if(!s||typeof s!="string"||!s.includes("{")||!s.includes("}"))return s;const d=new Date,p=formatDate(d),v=formatDateTime(d),A={...Object.fromEntries(u.flat().map(x=>[x.name,x.readOnly&&x.content||""])),...c},b=parseData(A),g={date:p,dateTime:v,...b};return Object.entries(g).forEach(([x,y])=>{typeof y=="string"&&y.includes("{")&&y.includes("}")&&(g[x]=evaluatePlaceholders({content:y,context:g}))}),evaluatePlaceholders({content:s,context:g})},DEFAULT_LANG="en",DESTROYED_ERR_MSG="[@pdfme/ui] this instance is already destroyed",SELECTABLE_CLASSNAME="selectable",RULER_HEIGHT=30,PAGE_GAP=10,LEFT_SIDEBAR_WIDTH=45,RIGHT_SIDEBAR_WIDTH=400,BACKGROUND_COLOR="rgb(74, 74, 74)",DEFAULT_MAX_ZOOM=2,isff=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function addEvent$1(a,s,c,u){a.addEventListener?a.addEventListener(s,c,u):a.attachEvent&&a.attachEvent("on".concat(s),c)}function removeEvent$1(a,s,c,u){a.removeEventListener?a.removeEventListener(s,c,u):a.detachEvent&&a.detachEvent("on".concat(s),c)}function getMods(a,s){const c=s.slice(0,s.length-1);for(let u=0;u<c.length;u++)c[u]=a[c[u].toLowerCase()];return c}function getKeys$1(a){typeof a!="string"&&(a=""),a=a.replace(/\s/g,"");const s=a.split(",");let c=s.lastIndexOf("");for(;c>=0;)s[c-1]+=",",s.splice(c,1),c=s.lastIndexOf("");return s}function compareArray(a,s){const c=a.length>=s.length?a:s,u=a.length>=s.length?s:a;let d=!0;for(let p=0;p<c.length;p++)u.indexOf(c[p])===-1&&(d=!1);return d}const _keyMap={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":isff?173:189,"=":isff?61:187,";":isff?59:186,"'":222,"[":219,"]":221,"\\":220},_modifier={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},modifierMap={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_mods={16:!1,18:!1,17:!1,91:!1},_handlers={};for(let a=1;a<20;a++)_keyMap["f".concat(a)]=111+a;let _downKeys=[],winListendFocus=null,_scope="all";const elementEventMap=new Map,code=a=>_keyMap[a.toLowerCase()]||_modifier[a.toLowerCase()]||a.toUpperCase().charCodeAt(0),getKey$3=a=>Object.keys(_keyMap).find(s=>_keyMap[s]===a),getModifier=a=>Object.keys(_modifier).find(s=>_modifier[s]===a);function setScope(a){_scope=a||"all"}function getScope(){return _scope||"all"}function getPressedKeyCodes(){return _downKeys.slice(0)}function getPressedKeyString(){return _downKeys.map(a=>getKey$3(a)||getModifier(a)||String.fromCharCode(a))}function getAllKeyCodes(){const a=[];return Object.keys(_handlers).forEach(s=>{_handlers[s].forEach(c=>{let{key:u,scope:d,mods:p,shortcut:v}=c;a.push({scope:d,shortcut:v,mods:p,keys:u.split("+").map(A=>code(A))})})}),a}function filter$1(a){const s=a.target||a.srcElement,{tagName:c}=s;let u=!0;const d=c==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(s.type);return(s.isContentEditable||(d||c==="TEXTAREA"||c==="SELECT")&&!s.readOnly)&&(u=!1),u}function isPressed(a){return typeof a=="string"&&(a=code(a)),_downKeys.indexOf(a)!==-1}function deleteScope(a,s){let c,u;a||(a=getScope());for(const d in _handlers)if(Object.prototype.hasOwnProperty.call(_handlers,d))for(c=_handlers[d],u=0;u<c.length;)c[u].scope===a?c.splice(u,1).forEach(v=>{let{element:A}=v;return removeKeyEvent(A)}):u++;getScope()===a&&setScope(s||"all")}function clearModifier(a){let s=a.keyCode||a.which||a.charCode;const c=_downKeys.indexOf(s);if(c>=0&&_downKeys.splice(c,1),a.key&&a.key.toLowerCase()==="meta"&&_downKeys.splice(0,_downKeys.length),(s===93||s===224)&&(s=91),s in _mods){_mods[s]=!1;for(const u in _modifier)_modifier[u]===s&&(hotkeys$1[u]=!1)}}function unbind(a){if(typeof a>"u")Object.keys(_handlers).forEach(d=>{Array.isArray(_handlers[d])&&_handlers[d].forEach(p=>eachUnbind(p)),delete _handlers[d]}),removeKeyEvent(null);else if(Array.isArray(a))a.forEach(d=>{d.key&&eachUnbind(d)});else if(typeof a=="object")a.key&&eachUnbind(a);else if(typeof a=="string"){for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];let[d,p]=c;typeof d=="function"&&(p=d,d=""),eachUnbind({key:a,scope:d,method:p,splitKey:"+"})}}const eachUnbind=a=>{let{key:s,scope:c,method:u,splitKey:d="+"}=a;getKeys$1(s).forEach(v=>{const A=v.split(d),b=A.length,g=A[b-1],x=g==="*"?"*":code(g);if(!_handlers[x])return;c||(c=getScope());const y=b>1?getMods(_modifier,A):[],f=[];_handlers[x]=_handlers[x].filter(m=>{const S=(u?m.method===u:!0)&&m.scope===c&&compareArray(m.mods,y);return S&&f.push(m.element),!S}),f.forEach(m=>removeKeyEvent(m))})};function eventHandler(a,s,c,u){if(s.element!==u)return;let d;if(s.scope===c||s.scope==="all"){d=s.mods.length>0;for(const p in _mods)Object.prototype.hasOwnProperty.call(_mods,p)&&(!_mods[p]&&s.mods.indexOf(+p)>-1||_mods[p]&&s.mods.indexOf(+p)===-1)&&(d=!1);(s.mods.length===0&&!_mods[16]&&!_mods[18]&&!_mods[17]&&!_mods[91]||d||s.shortcut==="*")&&(s.keys=[],s.keys=s.keys.concat(_downKeys),s.method(a,s)===!1&&(a.preventDefault?a.preventDefault():a.returnValue=!1,a.stopPropagation&&a.stopPropagation(),a.cancelBubble&&(a.cancelBubble=!0)))}}function dispatch(a,s){const c=_handlers["*"];let u=a.keyCode||a.which||a.charCode;if(!hotkeys$1.filter.call(this,a))return;if((u===93||u===224)&&(u=91),_downKeys.indexOf(u)===-1&&u!==229&&_downKeys.push(u),["metaKey","ctrlKey","altKey","shiftKey"].forEach(A=>{const b=modifierMap[A];a[A]&&_downKeys.indexOf(b)===-1?_downKeys.push(b):!a[A]&&_downKeys.indexOf(b)>-1?_downKeys.splice(_downKeys.indexOf(b),1):A==="metaKey"&&a[A]&&(_downKeys=_downKeys.filter(g=>g in modifierMap||g===u))}),u in _mods){_mods[u]=!0;for(const A in _modifier)_modifier[A]===u&&(hotkeys$1[A]=!0);if(!c)return}for(const A in _mods)Object.prototype.hasOwnProperty.call(_mods,A)&&(_mods[A]=a[modifierMap[A]]);a.getModifierState&&!(a.altKey&&!a.ctrlKey)&&a.getModifierState("AltGraph")&&(_downKeys.indexOf(17)===-1&&_downKeys.push(17),_downKeys.indexOf(18)===-1&&_downKeys.push(18),_mods[17]=!0,_mods[18]=!0);const d=getScope();if(c)for(let A=0;A<c.length;A++)c[A].scope===d&&(a.type==="keydown"&&c[A].keydown||a.type==="keyup"&&c[A].keyup)&&eventHandler(a,c[A],d,s);if(!(u in _handlers))return;const p=_handlers[u],v=p.length;for(let A=0;A<v;A++)if((a.type==="keydown"&&p[A].keydown||a.type==="keyup"&&p[A].keyup)&&p[A].key){const b=p[A],{splitKey:g}=b,x=b.key.split(g),y=[];for(let f=0;f<x.length;f++)y.push(code(x[f]));y.sort().join("")===_downKeys.sort().join("")&&eventHandler(a,b,d,s)}}function hotkeys$1(a,s,c){_downKeys=[];const u=getKeys$1(a);let d=[],p="all",v=document,A=0,b=!1,g=!0,x="+",y=!1,f=!1;for(c===void 0&&typeof s=="function"&&(c=s),Object.prototype.toString.call(s)==="[object Object]"&&(s.scope&&(p=s.scope),s.element&&(v=s.element),s.keyup&&(b=s.keyup),s.keydown!==void 0&&(g=s.keydown),s.capture!==void 0&&(y=s.capture),typeof s.splitKey=="string"&&(x=s.splitKey),s.single===!0&&(f=!0)),typeof s=="string"&&(p=s),f&&unbind(a,p);A<u.length;A++)a=u[A].split(x),d=[],a.length>1&&(d=getMods(_modifier,a)),a=a[a.length-1],a=a==="*"?"*":code(a),a in _handlers||(_handlers[a]=[]),_handlers[a].push({keyup:b,keydown:g,scope:p,mods:d,shortcut:u[A],method:c,key:u[A],splitKey:x,element:v});if(typeof v<"u"&&window){if(!elementEventMap.has(v)){const m=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return dispatch(S,v)},C=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;dispatch(S,v),clearModifier(S)};elementEventMap.set(v,{keydownListener:m,keyupListenr:C,capture:y}),addEvent$1(v,"keydown",m,y),addEvent$1(v,"keyup",C,y)}if(!winListendFocus){const m=()=>{_downKeys=[]};winListendFocus={listener:m,capture:y},addEvent$1(window,"focus",m,y)}}}function trigger(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(_handlers).forEach(c=>{_handlers[c].filter(d=>d.scope===s&&d.shortcut===a).forEach(d=>{d&&d.method&&d.method()})})}function removeKeyEvent(a){const s=Object.values(_handlers).flat();if(s.findIndex(u=>{let{element:d}=u;return d===a})<0){const{keydownListener:u,keyupListenr:d,capture:p}=elementEventMap.get(a)||{};u&&d&&(removeEvent$1(a,"keyup",d,p),removeEvent$1(a,"keydown",u,p),elementEventMap.delete(a))}if((s.length<=0||elementEventMap.size<=0)&&(Object.keys(elementEventMap).forEach(d=>{const{keydownListener:p,keyupListenr:v,capture:A}=elementEventMap.get(d)||{};p&&v&&(removeEvent$1(d,"keyup",v,A),removeEvent$1(d,"keydown",p,A),elementEventMap.delete(d))}),elementEventMap.clear(),Object.keys(_handlers).forEach(d=>delete _handlers[d]),winListendFocus)){const{listener:d,capture:p}=winListendFocus;removeEvent$1(window,"focus",d,p),winListendFocus=null}}const _api={getPressedKeyString,setScope,getScope,deleteScope,getPressedKeyCodes,getAllKeyCodes,isPressed,filter:filter$1,trigger,unbind,keyMap:_keyMap,modifier:_modifier,modifierMap};for(const a in _api)Object.prototype.hasOwnProperty.call(_api,a)&&(hotkeys$1[a]=_api[a]);if(typeof window<"u"){const a=window.hotkeys;hotkeys$1.noConflict=s=>(s&&window.hotkeys===hotkeys$1&&(window.hotkeys=a),hotkeys$1),window.hotkeys=hotkeys$1}var reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports),React$1=_mergeNamespaces({__proto__:null,default:React},[reactExports]);function commonjsRequire(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredPdf;function requirePdf(){return hasRequiredPdf||(hasRequiredPdf=1,function(module,exports){(function(s,c){module.exports=s.pdfjsLib=c()})(globalThis,()=>(()=>{var __webpack_modules__=[,(a,s)=>{var Ne;Object.defineProperty(s,"__esModule",{value:!0}),s.VerbosityLevel=s.Util=s.UnknownErrorException=s.UnexpectedResponseException=s.TextRenderingMode=s.RenderingIntentFlag=s.PromiseCapability=s.PermissionFlag=s.PasswordResponses=s.PasswordException=s.PageActionEventType=s.OPS=s.MissingPDFException=s.MAX_IMAGE_SIZE_TO_CACHE=s.LINE_FACTOR=s.LINE_DESCENT_FACTOR=s.InvalidPDFException=s.ImageKind=s.IDENTITY_MATRIX=s.FormatError=s.FeatureTest=s.FONT_IDENTITY_MATRIX=s.DocumentActionEventType=s.CMapCompressionType=s.BaseException=s.BASELINE_FACTOR=s.AnnotationType=s.AnnotationReplyType=s.AnnotationPrefix=s.AnnotationMode=s.AnnotationFlag=s.AnnotationFieldFlag=s.AnnotationEditorType=s.AnnotationEditorPrefix=s.AnnotationEditorParamsType=s.AnnotationBorderStyleType=s.AnnotationActionEventType=s.AbortException=void 0,s.assert=k,s.bytesToString=ie,s.createValidAbsoluteUrl=J,s.getModificationDate=Ae,s.getUuid=Pe,s.getVerbosityLevel=L,s.info=F,s.isArrayBuffer=we,s.isArrayEqual=Ee,s.isNodeJS=void 0,s.normalizeUnicode=ye,s.objectFromMap=be,s.objectSize=Se,s.setVerbosityLevel=Q,s.shadow=q,s.string32=ge,s.stringToBytes=ce,s.stringToPDFString=xe,s.stringToUTF8String=Ce,s.unreachable=N,s.utf8StringToString=$e,s.warn=U;const c=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");s.isNodeJS=c;const u=[1,0,0,1,0,0];s.IDENTITY_MATRIX=u;const d=[.001,0,0,.001,0,0];s.FONT_IDENTITY_MATRIX=d;const p=1e7;s.MAX_IMAGE_SIZE_TO_CACHE=p;const v=1.35;s.LINE_FACTOR=v;const A=.35;s.LINE_DESCENT_FACTOR=A;const b=A/v;s.BASELINE_FACTOR=b;const g={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};s.RenderingIntentFlag=g;const x={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};s.AnnotationMode=x;const y="pdfjs_internal_editor_";s.AnnotationEditorPrefix=y;const f={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};s.AnnotationEditorType=f;const m={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};s.AnnotationEditorParamsType=m;const C={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};s.PermissionFlag=C;const S={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};s.TextRenderingMode=S;const w={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};s.ImageKind=w;const I={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};s.AnnotationType=I;const P={GROUP:"Group",REPLY:"R"};s.AnnotationReplyType=P;const $={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};s.AnnotationFlag=$;const _={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};s.AnnotationFieldFlag=_;const E={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};s.AnnotationBorderStyleType=E;const R={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};s.AnnotationActionEventType=R;const T={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};s.DocumentActionEventType=T;const B={O:"PageOpen",C:"PageClose"};s.PageActionEventType=B;const M={ERRORS:0,WARNINGS:1,INFOS:5};s.VerbosityLevel=M;const D={NONE:0,BINARY:1};s.CMapCompressionType=D;const O={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};s.OPS=O;const H={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};s.PasswordResponses=H;let j=M.WARNINGS;function Q(Me){Number.isInteger(Me)&&(j=Me)}function L(){return j}function F(Me){j>=M.INFOS&&console.log(`Info: ${Me}`)}function U(Me){j>=M.WARNINGS&&console.log(`Warning: ${Me}`)}function N(Me){throw new Error(Me)}function k(Me,Fe){Me||N(Fe)}function W(Me){switch(Me==null?void 0:Me.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function J(Me,Fe=null,_e=null){if(!Me)return null;try{if(_e&&typeof Me=="string"){if(_e.addDefaultProtocol&&Me.startsWith("www.")){const Ye=Me.match(/\./g);(Ye==null?void 0:Ye.length)>=2&&(Me=`http://${Me}`)}if(_e.tryConvertEncoding)try{Me=Ce(Me)}catch{}}const je=Fe?new URL(Me,Fe):new URL(Me);if(W(je))return je}catch{}return null}function q(Me,Fe,_e,je=!1){return Object.defineProperty(Me,Fe,{value:_e,enumerable:!je,configurable:!0,writable:!1}),_e}const Y=function(){function Fe(_e,je){this.constructor===Fe&&N("Cannot initialize BaseException."),this.message=_e,this.name=je}return Fe.prototype=new Error,Fe.constructor=Fe,Fe}();s.BaseException=Y;class Z extends Y{constructor(Fe,_e){super(Fe,"PasswordException"),this.code=_e}}s.PasswordException=Z;class ee extends Y{constructor(Fe,_e){super(Fe,"UnknownErrorException"),this.details=_e}}s.UnknownErrorException=ee;class re extends Y{constructor(Fe){super(Fe,"InvalidPDFException")}}s.InvalidPDFException=re;class ae extends Y{constructor(Fe){super(Fe,"MissingPDFException")}}s.MissingPDFException=ae;class V extends Y{constructor(Fe,_e){super(Fe,"UnexpectedResponseException"),this.status=_e}}s.UnexpectedResponseException=V;class K extends Y{constructor(Fe){super(Fe,"FormatError")}}s.FormatError=K;class te extends Y{constructor(Fe){super(Fe,"AbortException")}}s.AbortException=te;function ie(Me){(typeof Me!="object"||(Me==null?void 0:Me.length)===void 0)&&N("Invalid argument for bytesToString");const Fe=Me.length,_e=8192;if(Fe<_e)return String.fromCharCode.apply(null,Me);const je=[];for(let Ye=0;Ye<Fe;Ye+=_e){const Te=Math.min(Ye+_e,Fe),ke=Me.subarray(Ye,Te);je.push(String.fromCharCode.apply(null,ke))}return je.join("")}function ce(Me){typeof Me!="string"&&N("Invalid argument for stringToBytes");const Fe=Me.length,_e=new Uint8Array(Fe);for(let je=0;je<Fe;++je)_e[je]=Me.charCodeAt(je)&255;return _e}function ge(Me){return String.fromCharCode(Me>>24&255,Me>>16&255,Me>>8&255,Me&255)}function Se(Me){return Object.keys(Me).length}function be(Me){const Fe=Object.create(null);for(const[_e,je]of Me)Fe[_e]=je;return Fe}function me(){const Me=new Uint8Array(4);return Me[0]=1,new Uint32Array(Me.buffer,0,1)[0]===1}function fe(){try{return new Function(""),!0}catch{return!1}}class se{static get isLittleEndian(){return q(this,"isLittleEndian",me())}static get isEvalSupported(){return q(this,"isEvalSupported",fe())}static get isOffscreenCanvasSupported(){return q(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator>"u"?q(this,"platform",{isWin:!1,isMac:!1}):q(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){var Fe,_e;return q(this,"isCSSRoundSupported",(_e=(Fe=globalThis.CSS)==null?void 0:Fe.supports)==null?void 0:_e.call(Fe,"width: round(1.5px, 1px)"))}}s.FeatureTest=se;const oe=[...Array(256).keys()].map(Me=>Me.toString(16).padStart(2,"0"));class de{static makeHexColor(Fe,_e,je){return`#${oe[Fe]}${oe[_e]}${oe[je]}`}static scaleMinMax(Fe,_e){let je;Fe[0]?(Fe[0]<0&&(je=_e[0],_e[0]=_e[1],_e[1]=je),_e[0]*=Fe[0],_e[1]*=Fe[0],Fe[3]<0&&(je=_e[2],_e[2]=_e[3],_e[3]=je),_e[2]*=Fe[3],_e[3]*=Fe[3]):(je=_e[0],_e[0]=_e[2],_e[2]=je,je=_e[1],_e[1]=_e[3],_e[3]=je,Fe[1]<0&&(je=_e[2],_e[2]=_e[3],_e[3]=je),_e[2]*=Fe[1],_e[3]*=Fe[1],Fe[2]<0&&(je=_e[0],_e[0]=_e[1],_e[1]=je),_e[0]*=Fe[2],_e[1]*=Fe[2]),_e[0]+=Fe[4],_e[1]+=Fe[4],_e[2]+=Fe[5],_e[3]+=Fe[5]}static transform(Fe,_e){return[Fe[0]*_e[0]+Fe[2]*_e[1],Fe[1]*_e[0]+Fe[3]*_e[1],Fe[0]*_e[2]+Fe[2]*_e[3],Fe[1]*_e[2]+Fe[3]*_e[3],Fe[0]*_e[4]+Fe[2]*_e[5]+Fe[4],Fe[1]*_e[4]+Fe[3]*_e[5]+Fe[5]]}static applyTransform(Fe,_e){const je=Fe[0]*_e[0]+Fe[1]*_e[2]+_e[4],Ye=Fe[0]*_e[1]+Fe[1]*_e[3]+_e[5];return[je,Ye]}static applyInverseTransform(Fe,_e){const je=_e[0]*_e[3]-_e[1]*_e[2],Ye=(Fe[0]*_e[3]-Fe[1]*_e[2]+_e[2]*_e[5]-_e[4]*_e[3])/je,Te=(-Fe[0]*_e[1]+Fe[1]*_e[0]+_e[4]*_e[1]-_e[5]*_e[0])/je;return[Ye,Te]}static getAxialAlignedBoundingBox(Fe,_e){const je=this.applyTransform(Fe,_e),Ye=this.applyTransform(Fe.slice(2,4),_e),Te=this.applyTransform([Fe[0],Fe[3]],_e),ke=this.applyTransform([Fe[2],Fe[1]],_e);return[Math.min(je[0],Ye[0],Te[0],ke[0]),Math.min(je[1],Ye[1],Te[1],ke[1]),Math.max(je[0],Ye[0],Te[0],ke[0]),Math.max(je[1],Ye[1],Te[1],ke[1])]}static inverseTransform(Fe){const _e=Fe[0]*Fe[3]-Fe[1]*Fe[2];return[Fe[3]/_e,-Fe[1]/_e,-Fe[2]/_e,Fe[0]/_e,(Fe[2]*Fe[5]-Fe[4]*Fe[3])/_e,(Fe[4]*Fe[1]-Fe[5]*Fe[0])/_e]}static singularValueDecompose2dScale(Fe){const _e=[Fe[0],Fe[2],Fe[1],Fe[3]],je=Fe[0]*_e[0]+Fe[1]*_e[2],Ye=Fe[0]*_e[1]+Fe[1]*_e[3],Te=Fe[2]*_e[0]+Fe[3]*_e[2],ke=Fe[2]*_e[1]+Fe[3]*_e[3],De=(je+ke)/2,Re=Math.sqrt((je+ke)**2-4*(je*ke-Te*Ye))/2,Ge=De+Re||1,Ve=De-Re||1;return[Math.sqrt(Ge),Math.sqrt(Ve)]}static normalizeRect(Fe){const _e=Fe.slice(0);return Fe[0]>Fe[2]&&(_e[0]=Fe[2],_e[2]=Fe[0]),Fe[1]>Fe[3]&&(_e[1]=Fe[3],_e[3]=Fe[1]),_e}static intersect(Fe,_e){const je=Math.max(Math.min(Fe[0],Fe[2]),Math.min(_e[0],_e[2])),Ye=Math.min(Math.max(Fe[0],Fe[2]),Math.max(_e[0],_e[2]));if(je>Ye)return null;const Te=Math.max(Math.min(Fe[1],Fe[3]),Math.min(_e[1],_e[3])),ke=Math.min(Math.max(Fe[1],Fe[3]),Math.max(_e[1],_e[3]));return Te>ke?null:[je,Te,Ye,ke]}static bezierBoundingBox(Fe,_e,je,Ye,Te,ke,De,Re){const Ge=[],Ve=[[],[]];let Xe,We,ze,Qe,et,Ze,qe,Je;for(let bt=0;bt<2;++bt){if(bt===0?(We=6*Fe-12*je+6*Te,Xe=-3*Fe+9*je-9*Te+3*De,ze=3*je-3*Fe):(We=6*_e-12*Ye+6*ke,Xe=-3*_e+9*Ye-9*ke+3*Re,ze=3*Ye-3*_e),Math.abs(Xe)<1e-12){if(Math.abs(We)<1e-12)continue;Qe=-ze/We,0<Qe&&Qe<1&&Ge.push(Qe);continue}qe=We*We-4*ze*Xe,Je=Math.sqrt(qe),!(qe<0)&&(et=(-We+Je)/(2*Xe),0<et&&et<1&&Ge.push(et),Ze=(-We-Je)/(2*Xe),0<Ze&&Ze<1&&Ge.push(Ze))}let ot=Ge.length,nt;const ct=ot;for(;ot--;)Qe=Ge[ot],nt=1-Qe,Ve[0][ot]=nt*nt*nt*Fe+3*nt*nt*Qe*je+3*nt*Qe*Qe*Te+Qe*Qe*Qe*De,Ve[1][ot]=nt*nt*nt*_e+3*nt*nt*Qe*Ye+3*nt*Qe*Qe*ke+Qe*Qe*Qe*Re;return Ve[0][ct]=Fe,Ve[1][ct]=_e,Ve[0][ct+1]=De,Ve[1][ct+1]=Re,Ve[0].length=Ve[1].length=ct+2,[Math.min(...Ve[0]),Math.min(...Ve[1]),Math.max(...Ve[0]),Math.max(...Ve[1])]}}s.Util=de;const le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function xe(Me){if(Me[0]>="ï"){let _e;if(Me[0]==="þ"&&Me[1]==="ÿ"?_e="utf-16be":Me[0]==="ÿ"&&Me[1]==="þ"?_e="utf-16le":Me[0]==="ï"&&Me[1]==="»"&&Me[2]==="¿"&&(_e="utf-8"),_e)try{const je=new TextDecoder(_e,{fatal:!0}),Ye=ce(Me);return je.decode(Ye)}catch(je){U(`stringToPDFString: "${je}".`)}}const Fe=[];for(let _e=0,je=Me.length;_e<je;_e++){const Ye=le[Me.charCodeAt(_e)];Fe.push(Ye?String.fromCharCode(Ye):Me.charAt(_e))}return Fe.join("")}function Ce(Me){return decodeURIComponent(escape(Me))}function $e(Me){return unescape(encodeURIComponent(Me))}function we(Me){return typeof Me=="object"&&(Me==null?void 0:Me.byteLength)!==void 0}function Ee(Me,Fe){if(Me.length!==Fe.length)return!1;for(let _e=0,je=Me.length;_e<je;_e++)if(Me[_e]!==Fe[_e])return!1;return!0}function Ae(Me=new Date){return[Me.getUTCFullYear().toString(),(Me.getUTCMonth()+1).toString().padStart(2,"0"),Me.getUTCDate().toString().padStart(2,"0"),Me.getUTCHours().toString().padStart(2,"0"),Me.getUTCMinutes().toString().padStart(2,"0"),Me.getUTCSeconds().toString().padStart(2,"0")].join("")}class pe{constructor(){vt(this,Ne,!1);this.promise=new Promise((Fe,_e)=>{this.resolve=je=>{Ct(this,Ne,!0),Fe(je)},this.reject=je=>{Ct(this,Ne,!0),_e(je)}})}get settled(){return He(this,Ne)}}Ne=new WeakMap,s.PromiseCapability=pe;let he=null,Ie=null;function ye(Me){return he||(he=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,Ie=new Map([["ſt","ſt"]])),Me.replaceAll(he,(Fe,_e,je)=>_e?_e.normalize("NFKC"):Ie.get(je))}function Pe(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const Me=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(Me);else for(let Fe=0;Fe<32;Fe++)Me[Fe]=Math.floor(Math.random()*255);return ie(Me)}const Le="pdfjs_internal_id_";s.AnnotationPrefix=Le},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{var a,c,u,d,ka,po,A,b,g,x,y,f,m,C,S,go,I,P,Gs,_,E;Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;const DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;function getDocument(T){if(typeof T=="string"||T instanceof URL?T={url:T}:(0,_util.isArrayBuffer)(T)&&(T={data:T}),typeof T!="object")throw new Error("Invalid parameter in getDocument, need parameter object.");if(!T.url&&!T.data&&!T.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const B=new PDFDocumentLoadingTask,{docId:M}=B,D=T.url?getUrlProp(T.url):null,O=T.data?getDataProp(T.data):null,H=T.httpHeaders||null,j=T.withCredentials===!0,Q=T.password??null,L=T.range instanceof PDFDataRangeTransport?T.range:null,F=Number.isInteger(T.rangeChunkSize)&&T.rangeChunkSize>0?T.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let U=T.worker instanceof PDFWorker?T.worker:null;const N=T.verbosity,k=typeof T.docBaseUrl=="string"&&!(0,_display_utils.isDataScheme)(T.docBaseUrl)?T.docBaseUrl:null,W=typeof T.cMapUrl=="string"?T.cMapUrl:null,J=T.cMapPacked!==!1,q=T.CMapReaderFactory||DefaultCMapReaderFactory,Y=typeof T.standardFontDataUrl=="string"?T.standardFontDataUrl:null,Z=T.StandardFontDataFactory||DefaultStandardFontDataFactory,ee=T.stopAtErrors!==!0,re=Number.isInteger(T.maxImageSize)&&T.maxImageSize>-1?T.maxImageSize:-1,ae=T.isEvalSupported!==!1,V=typeof T.isOffscreenCanvasSupported=="boolean"?T.isOffscreenCanvasSupported:!_util.isNodeJS,K=Number.isInteger(T.canvasMaxAreaInBytes)?T.canvasMaxAreaInBytes:-1,te=typeof T.disableFontFace=="boolean"?T.disableFontFace:_util.isNodeJS,ie=T.fontExtraProperties===!0,ce=T.enableXfa===!0,ge=T.ownerDocument||globalThis.document,Se=T.disableRange===!0,be=T.disableStream===!0,me=T.disableAutoFetch===!0,fe=T.pdfBug===!0,se=L?L.length:T.length??NaN,oe=typeof T.useSystemFonts=="boolean"?T.useSystemFonts:!_util.isNodeJS&&!te,de=typeof T.useWorkerFetch=="boolean"?T.useWorkerFetch:q===_display_utils.DOMCMapReaderFactory&&Z===_display_utils.DOMStandardFontDataFactory&&W&&Y&&(0,_display_utils.isValidFetchUrl)(W,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(Y,document.baseURI),le=T.canvasFactory||new DefaultCanvasFactory({ownerDocument:ge}),xe=T.filterFactory||new DefaultFilterFactory({docId:M,ownerDocument:ge}),Ce=null;(0,_util.setVerbosityLevel)(N);const $e={canvasFactory:le,filterFactory:xe};if(de||($e.cMapReaderFactory=new q({baseUrl:W,isCompressed:J}),$e.standardFontDataFactory=new Z({baseUrl:Y})),!U){const Ae={verbosity:N,port:_worker_options.GlobalWorkerOptions.workerPort};U=Ae.port?PDFWorker.fromPort(Ae):new PDFWorker(Ae),B._worker=U}const we={docId:M,apiVersion:"3.11.174",data:O,password:Q,disableAutoFetch:me,rangeChunkSize:F,length:se,docBaseUrl:k,enableXfa:ce,evaluatorOptions:{maxImageSize:re,disableFontFace:te,ignoreErrors:ee,isEvalSupported:ae,isOffscreenCanvasSupported:V,canvasMaxAreaInBytes:K,fontExtraProperties:ie,useSystemFonts:oe,cMapUrl:de?W:null,standardFontDataUrl:de?Y:null}},Ee={ignoreErrors:ee,isEvalSupported:ae,disableFontFace:te,fontExtraProperties:ie,enableXfa:ce,ownerDocument:ge,disableAutoFetch:me,pdfBug:fe,styleElement:Ce};return U.promise.then(function(){if(B.destroyed)throw new Error("Loading aborted");const Ae=_fetchDocument(U,we),pe=new Promise(function(he){let Ie;L?Ie=new _transport_stream.PDFDataTransportStream({length:se,initialData:L.initialData,progressiveDone:L.progressiveDone,contentDispositionFilename:L.contentDispositionFilename,disableRange:Se,disableStream:be},L):O||(Ie=(Pe=>_util.isNodeJS?new _displayNode_stream.PDFNodeStream(Pe):(0,_display_utils.isValidFetchUrl)(Pe.url)?new _displayFetch_stream.PDFFetchStream(Pe):new _displayNetwork.PDFNetworkStream(Pe))({url:D,length:se,httpHeaders:H,withCredentials:j,rangeChunkSize:F,disableRange:Se,disableStream:be})),he(Ie)});return Promise.all([Ae,pe]).then(function([he,Ie]){if(B.destroyed)throw new Error("Loading aborted");const ye=new _message_handler.MessageHandler(M,he,U.port),Pe=new WorkerTransport(ye,B,Ie,Ee,$e);B._transport=Pe,ye.send("Ready",null)})}).catch(B._capability.reject),B}async function _fetchDocument(T,B){if(T.destroyed)throw new Error("Worker was destroyed");const M=await T.messageHandler.sendWithPromise("GetDocRequest",B,B.data?[B.data.buffer]:null);if(T.destroyed)throw new Error("Worker was destroyed");return M}function getUrlProp(T){if(T instanceof URL)return T.href;try{return new URL(T,window.location).href}catch{if(_util.isNodeJS&&typeof T=="string")return T}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(T){if(_util.isNodeJS&&typeof Buffer<"u"&&T instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(T instanceof Uint8Array&&T.byteLength===T.buffer.byteLength)return T;if(typeof T=="string")return(0,_util.stringToBytes)(T);if(typeof T=="object"&&!isNaN(T==null?void 0:T.length)||(0,_util.isArrayBuffer)(T))return new Uint8Array(T);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}const s=class s{constructor(){this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId=`d${hi(s,a)._++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var B,M,D;this.destroyed=!0;try{(B=this._worker)!=null&&B.port&&(this._worker._pendingDestroy=!0),await((M=this._transport)==null?void 0:M.destroy())}catch(O){throw(D=this._worker)!=null&&D.port&&delete this._worker._pendingDestroy,O}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}};a=new WeakMap,vt(s,a,0);let PDFDocumentLoadingTask=s;exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(B,M,D=!1,O=null){this.length=B,this.initialData=M,this.progressiveDone=D,this.contentDispositionFilename=O,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(B){this._rangeListeners.push(B)}addProgressListener(B){this._progressListeners.push(B)}addProgressiveReadListener(B){this._progressiveReadListeners.push(B)}addProgressiveDoneListener(B){this._progressiveDoneListeners.push(B)}onDataRange(B,M){for(const D of this._rangeListeners)D(B,M)}onDataProgress(B,M){this._readyCapability.promise.then(()=>{for(const D of this._progressListeners)D(B,M)})}onDataProgressiveRead(B){this._readyCapability.promise.then(()=>{for(const M of this._progressiveReadListeners)M(B)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const B of this._progressiveDoneListeners)B()})}transportReady(){this._readyCapability.resolve()}requestDataRange(B,M){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(B,M){this._pdfInfo=B,this._transport=M,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then(D=>{if(!D)return D;const O=[];for(const H in D)O.push(...D[H]);return O}))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(B){return this._transport.getPage(B)}getPageIndex(B){return this._transport.getPageIndex(B)}getDestinations(){return this._transport.getDestinations()}getDestination(B){return this._transport.getDestination(B)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(B=!1){return this._transport.startCleanup(B||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(B,M,D,O=!1){vt(this,d);vt(this,c,null);vt(this,u,!1);this._pageIndex=B,this._pageInfo=M,this._transport=D,this._stats=O?new _display_utils.StatTimer:null,this._pdfBug=O,this.commonObjs=D.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:B,rotation:M=this.rotate,offsetX:D=0,offsetY:O=0,dontFlip:H=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:B,rotation:M,offsetX:D,offsetY:O,dontFlip:H})}getAnnotations({intent:B="display"}={}){const M=this._transport.getRenderingIntent(B);return this._transport.getAnnotations(this._pageIndex,M.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var B;return((B=this._transport._htmlForXfa)==null?void 0:B.children[this._pageIndex])||null}render({canvasContext:B,viewport:M,intent:D="display",annotationMode:O=_util.AnnotationMode.ENABLE,transform:H=null,background:j=null,optionalContentConfigPromise:Q=null,annotationCanvasMap:L=null,pageColors:F=null,printAnnotationStorage:U=null}){var Z,ee;(Z=this._stats)==null||Z.time("Overall");const N=this._transport.getRenderingIntent(D,O,U);Ct(this,u,!1),it(this,d,po).call(this),Q||(Q=this._transport.getOptionalContentConfig());let k=this._intentStates.get(N.cacheKey);k||(k=Object.create(null),this._intentStates.set(N.cacheKey,k)),k.streamReaderCancelTimeout&&(clearTimeout(k.streamReaderCancelTimeout),k.streamReaderCancelTimeout=null);const W=!!(N.renderingIntent&_util.RenderingIntentFlag.PRINT);k.displayReadyCapability||(k.displayReadyCapability=new _util.PromiseCapability,k.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(ee=this._stats)==null||ee.time("Page Request"),this._pumpOperatorList(N));const J=re=>{var ae,V;k.renderTasks.delete(q),(this._maybeCleanupAfterRender||W)&&Ct(this,u,!0),it(this,d,ka).call(this,!W),re?(q.capability.reject(re),this._abortOperatorList({intentState:k,reason:re instanceof Error?re:new Error(re)})):q.capability.resolve(),(ae=this._stats)==null||ae.timeEnd("Rendering"),(V=this._stats)==null||V.timeEnd("Overall")},q=new InternalRenderTask({callback:J,params:{canvasContext:B,viewport:M,transform:H,background:j},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:L,operatorList:k.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!W,pdfBug:this._pdfBug,pageColors:F});(k.renderTasks||(k.renderTasks=new Set)).add(q);const Y=q.task;return Promise.all([k.displayReadyCapability.promise,Q]).then(([re,ae])=>{var V;if(this.destroyed){J();return}(V=this._stats)==null||V.time("Rendering"),q.initializeGraphics({transparency:re,optionalContentConfig:ae}),q.operatorListChanged()}).catch(J),Y}getOperatorList({intent:B="display",annotationMode:M=_util.AnnotationMode.ENABLE,printAnnotationStorage:D=null}={}){var L;function O(){j.operatorList.lastChunk&&(j.opListReadCapability.resolve(j.operatorList),j.renderTasks.delete(Q))}const H=this._transport.getRenderingIntent(B,M,D,!0);let j=this._intentStates.get(H.cacheKey);j||(j=Object.create(null),this._intentStates.set(H.cacheKey,j));let Q;return j.opListReadCapability||(Q=Object.create(null),Q.operatorListChanged=O,j.opListReadCapability=new _util.PromiseCapability,(j.renderTasks||(j.renderTasks=new Set)).add(Q),j.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(L=this._stats)==null||L.time("Page Request"),this._pumpOperatorList(H)),j.opListReadCapability.promise}streamTextContent({includeMarkedContent:B=!1,disableNormalization:M=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:B===!0,disableNormalization:M===!0},{highWaterMark:100,size(O){return O.items.length}})}getTextContent(B={}){if(this._transport._htmlForXfa)return this.getXfa().then(D=>_xfa_text.XfaText.textContent(D));const M=this.streamTextContent(B);return new Promise(function(D,O){function H(){j.read().then(function({value:L,done:F}){if(F){D(Q);return}Object.assign(Q.styles,L.styles),Q.items.push(...L.items),H()},O)}const j=M.getReader(),Q={items:[],styles:Object.create(null)};H()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const B=[];for(const M of this._intentStates.values())if(this._abortOperatorList({intentState:M,reason:new Error("Page was destroyed."),force:!0}),!M.opListReadCapability)for(const D of M.renderTasks)B.push(D.completed),D.cancel();return this.objs.clear(),Ct(this,u,!1),it(this,d,po).call(this),Promise.all(B)}cleanup(B=!1){Ct(this,u,!0);const M=it(this,d,ka).call(this,!1);return B&&M&&this._stats&&(this._stats=new _display_utils.StatTimer),M}_startRenderPage(B,M){var O,H;const D=this._intentStates.get(M);D&&((O=this._stats)==null||O.timeEnd("Page Request"),(H=D.displayReadyCapability)==null||H.resolve(B))}_renderPageChunk(B,M){for(let D=0,O=B.length;D<O;D++)M.operatorList.fnArray.push(B.fnArray[D]),M.operatorList.argsArray.push(B.argsArray[D]);M.operatorList.lastChunk=B.lastChunk,M.operatorList.separateAnnots=B.separateAnnots;for(const D of M.renderTasks)D.operatorListChanged();B.lastChunk&&it(this,d,ka).call(this,!0)}_pumpOperatorList({renderingIntent:B,cacheKey:M,annotationStorageSerializable:D}){const{map:O,transfers:H}=D,Q=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:B,cacheKey:M,annotationStorage:O},H).getReader(),L=this._intentStates.get(M);L.streamReader=Q;const F=()=>{Q.read().then(({value:U,done:N})=>{if(N){L.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(U,L),F())},U=>{if(L.streamReader=null,!this._transport.destroyed){if(L.operatorList){L.operatorList.lastChunk=!0;for(const N of L.renderTasks)N.operatorListChanged();it(this,d,ka).call(this,!0)}if(L.displayReadyCapability)L.displayReadyCapability.reject(U);else if(L.opListReadCapability)L.opListReadCapability.reject(U);else throw U}})};F()}_abortOperatorList({intentState:B,reason:M,force:D=!1}){if(B.streamReader){if(B.streamReaderCancelTimeout&&(clearTimeout(B.streamReaderCancelTimeout),B.streamReaderCancelTimeout=null),!D){if(B.renderTasks.size>0)return;if(M instanceof _display_utils.RenderingCancelledException){let O=RENDERING_CANCELLED_TIMEOUT;M.extraDelay>0&&M.extraDelay<1e3&&(O+=M.extraDelay),B.streamReaderCancelTimeout=setTimeout(()=>{B.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:B,reason:M,force:!0})},O);return}}if(B.streamReader.cancel(new _util.AbortException(M.message)).catch(()=>{}),B.streamReader=null,!this._transport.destroyed){for(const[O,H]of this._intentStates)if(H===B){this._intentStates.delete(O);break}this.cleanup()}}}get stats(){return this._stats}}c=new WeakMap,u=new WeakMap,d=new WeakSet,ka=function(B=!1){if(it(this,d,po).call(this),!He(this,u)||this.destroyed)return!1;if(B)return Ct(this,c,setTimeout(()=>{Ct(this,c,null),it(this,d,ka).call(this,!1)},DELAYED_CLEANUP_TIMEOUT)),!1;for(const{renderTasks:M,operatorList:D}of this._intentStates.values())if(M.size>0||!D.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),Ct(this,u,!1),!0},po=function(){He(this,c)&&(clearTimeout(He(this,c)),Ct(this,c,null))},exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){vt(this,A,new Set);vt(this,b,Promise.resolve())}postMessage(B,M){const D={data:structuredClone(B,M?{transfer:M}:null)};He(this,b).then(()=>{for(const O of He(this,A))O.call(this,D)})}addEventListener(B,M){He(this,A).add(M)}removeEventListener(B,M){He(this,A).delete(M)}terminate(){He(this,A).clear()}}A=new WeakMap,b=new WeakMap,exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};exports.PDFWorkerUtil=PDFWorkerUtil;{if(_util.isNodeJS&&typeof commonjsRequire=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"){const T=(g=document==null?void 0:document.currentScript)==null?void 0:g.src;T&&(PDFWorkerUtil.fallbackWorkerSrc=T.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(T,B){let M;try{if(M=new URL(T),!M.origin||M.origin==="null")return!1}catch{return!1}const D=new URL(B,M);return M.origin===D.origin},PDFWorkerUtil.createCDNWrapper=function(T){const B=`importScripts("${T}");`;return URL.createObjectURL(new Blob([B]))}}const _PDFWorker=class _PDFWorker{constructor({name:T=null,port:B=null,verbosity:M=(0,_util.getVerbosityLevel)()}={}){var D;if(this.name=T,this.destroyed=!1,this.verbosity=M,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,B){if((D=He(_PDFWorker,x))!=null&&D.has(B))throw new Error("Cannot use more than one PDFWorker per port.");(He(_PDFWorker,x)||Ct(_PDFWorker,x,new WeakMap)).set(B,this),this._initializeFromPort(B);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(T){this._port=T,this._messageHandler=new _message_handler.MessageHandler("main","worker",T),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!_PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:T}=_PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,T)||(T=PDFWorkerUtil.createCDNWrapper(new URL(T,window.location).href));const B=new Worker(T),M=new _message_handler.MessageHandler("main","worker",B),D=()=>{B.removeEventListener("error",O),M.destroy(),B.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},O=()=>{this._webWorker||D()};B.addEventListener("error",O),M.on("test",j=>{if(B.removeEventListener("error",O),this.destroyed){D();return}j?(this._messageHandler=M,this._port=B,this._webWorker=B,this._readyCapability.resolve(),M.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),M.destroy(),B.terminate())}),M.on("ready",j=>{if(B.removeEventListener("error",O),this.destroyed){D();return}try{H()}catch{this._setupFakeWorker()}});const H=()=>{const j=new Uint8Array;M.send("test",j,[j.buffer])};H();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),_PDFWorker._setupFakeWorkerGlobal.then(T=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const B=new LoopbackPort;this._port=B;const M=`fake${PDFWorkerUtil.fakeWorkerId++}`,D=new _message_handler.MessageHandler(M+"_worker",M,B);T.setup(D,B);const O=new _message_handler.MessageHandler(M,M+"_worker",B);this._messageHandler=O,this._readyCapability.resolve(),O.send("configure",{verbosity:this.verbosity})}).catch(T=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${T.message}".`))})}destroy(){var T;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),(T=He(_PDFWorker,x))==null||T.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(T){var M;if(!(T!=null&&T.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const B=(M=He(this,x))==null?void 0:M.get(T.port);if(B){if(B._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return B}return new _PDFWorker(T)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){var T;try{return((T=globalThis.pdfjsWorker)==null?void 0:T.WorkerMessageHandler)||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS&&typeof commonjsRequire=="function"){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}};x=new WeakMap,vt(_PDFWorker,x);let PDFWorker=_PDFWorker;exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(B,M,D,O,H){vt(this,S);vt(this,y,new Map);vt(this,f,new Map);vt(this,m,new Map);vt(this,C,null);this.messageHandler=B,this.loadingTask=M,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:O.ownerDocument,styleElement:O.styleElement}),this._params=O,this.canvasFactory=H.canvasFactory,this.filterFactory=H.filterFactory,this.cMapReaderFactory=H.cMapReaderFactory,this.standardFontDataFactory=H.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=D,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(B,M=_util.AnnotationMode.ENABLE,D=null,O=!1){let H=_util.RenderingIntentFlag.DISPLAY,j=_annotation_storage.SerializableEmpty;switch(B){case"any":H=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":H=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${B}`)}switch(M){case _util.AnnotationMode.DISABLE:H+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:H+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:H+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,j=(H&_util.RenderingIntentFlag.PRINT&&D instanceof _annotation_storage.PrintAnnotationStorage?D:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${M}`)}return O&&(H+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:H,cacheKey:`${H}_${j.hash}`,annotationStorageSerializable:j}}destroy(){var D;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,(D=He(this,C))==null||D.reject(new Error("Worker was destroyed during onPassword callback"));const B=[];for(const O of He(this,f).values())B.push(O._destroy());He(this,f).clear(),He(this,m).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const M=this.messageHandler.sendWithPromise("Terminate",null);return B.push(M),Promise.all(B).then(()=>{var O;this.commonObjs.clear(),this.fontLoader.clear(),He(this,y).clear(),this.filterFactory.destroy(),(O=this._networkStream)==null||O.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:B,loadingTask:M}=this;B.on("GetReader",(D,O)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=H=>{this._lastProgress={loaded:H.loaded,total:H.total}},O.onPull=()=>{this._fullReader.read().then(function({value:H,done:j}){if(j){O.close();return}(0,_util.assert)(H instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),O.enqueue(new Uint8Array(H),1,[H])}).catch(H=>{O.error(H)})},O.onCancel=H=>{this._fullReader.cancel(H),O.ready.catch(j=>{if(!this.destroyed)throw j})}}),B.on("ReaderHeadersReady",D=>{const O=new _util.PromiseCapability,H=this._fullReader;return H.headersReady.then(()=>{var j;(!H.isStreamingSupported||!H.isRangeSupported)&&(this._lastProgress&&((j=M.onProgress)==null||j.call(M,this._lastProgress)),H.onProgress=Q=>{var L;(L=M.onProgress)==null||L.call(M,{loaded:Q.loaded,total:Q.total})}),O.resolve({isStreamingSupported:H.isStreamingSupported,isRangeSupported:H.isRangeSupported,contentLength:H.contentLength})},O.reject),O.promise}),B.on("GetRangeReader",(D,O)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const H=this._networkStream.getRangeReader(D.begin,D.end);if(!H){O.close();return}O.onPull=()=>{H.read().then(function({value:j,done:Q}){if(Q){O.close();return}(0,_util.assert)(j instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),O.enqueue(new Uint8Array(j),1,[j])}).catch(j=>{O.error(j)})},O.onCancel=j=>{H.cancel(j),O.ready.catch(Q=>{if(!this.destroyed)throw Q})}}),B.on("GetDoc",({pdfInfo:D})=>{this._numPages=D.numPages,this._htmlForXfa=D.htmlForXfa,delete D.htmlForXfa,M._capability.resolve(new PDFDocumentProxy(D,this))}),B.on("DocException",function(D){let O;switch(D.name){case"PasswordException":O=new _util.PasswordException(D.message,D.code);break;case"InvalidPDFException":O=new _util.InvalidPDFException(D.message);break;case"MissingPDFException":O=new _util.MissingPDFException(D.message);break;case"UnexpectedResponseException":O=new _util.UnexpectedResponseException(D.message,D.status);break;case"UnknownErrorException":O=new _util.UnknownErrorException(D.message,D.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}M._capability.reject(O)}),B.on("PasswordRequest",D=>{if(Ct(this,C,new _util.PromiseCapability),M.onPassword){const O=H=>{H instanceof Error?He(this,C).reject(H):He(this,C).resolve({password:H})};try{M.onPassword(O,D.code)}catch(H){He(this,C).reject(H)}}else He(this,C).reject(new _util.PasswordException(D.message,D.code));return He(this,C).promise}),B.on("DataLoaded",D=>{var O;(O=M.onProgress)==null||O.call(M,{loaded:D.length,total:D.length}),this.downloadInfoCapability.resolve(D)}),B.on("StartRenderPage",D=>{if(this.destroyed)return;He(this,f).get(D.pageIndex)._startRenderPage(D.transparency,D.cacheKey)}),B.on("commonobj",([D,O,H])=>{var j;if(!this.destroyed&&!this.commonObjs.has(D))switch(O){case"Font":const Q=this._params;if("error"in H){const U=H.error;(0,_util.warn)(`Error during font loading: ${U}`),this.commonObjs.resolve(D,U);break}const L=Q.pdfBug&&((j=globalThis.FontInspector)!=null&&j.enabled)?(U,N)=>globalThis.FontInspector.fontAdded(U,N):null,F=new _font_loader.FontFaceObject(H,{isEvalSupported:Q.isEvalSupported,disableFontFace:Q.disableFontFace,ignoreErrors:Q.ignoreErrors,inspectFont:L});this.fontLoader.bind(F).catch(U=>B.sendWithPromise("FontFallback",{id:D})).finally(()=>{!Q.fontExtraProperties&&F.data&&(F.data=null),this.commonObjs.resolve(D,F)});break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(D,H);break;default:throw new Error(`Got unknown common object type ${O}`)}}),B.on("obj",([D,O,H,j])=>{var L;if(this.destroyed)return;const Q=He(this,f).get(O);if(!Q.objs.has(D))switch(H){case"Image":if(Q.objs.resolve(D,j),j){let F;if(j.bitmap){const{width:U,height:N}=j;F=U*N*4}else F=((L=j.data)==null?void 0:L.length)||0;F>_util.MAX_IMAGE_SIZE_TO_CACHE&&(Q._maybeCleanupAfterRender=!0)}break;case"Pattern":Q.objs.resolve(D,j);break;default:throw new Error(`Got unknown object type ${H}`)}}),B.on("DocProgress",D=>{var O;this.destroyed||(O=M.onProgress)==null||O.call(M,{loaded:D.loaded,total:D.total})}),B.on("FetchBuiltInCMap",D=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(D):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),B.on("FetchStandardFontData",D=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(D):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var D;this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:B,transfers:M}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:B,filename:((D=this._fullReader)==null?void 0:D.filename)??null},M).finally(()=>{this.annotationStorage.resetModified()})}getPage(B){if(!Number.isInteger(B)||B<=0||B>this._numPages)return Promise.reject(new Error("Invalid page request."));const M=B-1,D=He(this,m).get(M);if(D)return D;const O=this.messageHandler.sendWithPromise("GetPage",{pageIndex:M}).then(H=>{if(this.destroyed)throw new Error("Transport destroyed");const j=new PDFPageProxy(M,H,this,this._params.pdfBug);return He(this,f).set(M,j),j});return He(this,m).set(M,O),O}getPageIndex(B){return typeof B!="object"||B===null||!Number.isInteger(B.num)||B.num<0||!Number.isInteger(B.gen)||B.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:B.num,gen:B.gen})}getAnnotations(B,M){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:B,intent:M})}getFieldObjects(){return it(this,S,go).call(this,"GetFieldObjects")}hasJSActions(){return it(this,S,go).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(B){return typeof B!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:B})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return it(this,S,go).call(this,"GetDocJSActions")}getPageJSActions(B){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:B})}getStructTree(B){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:B})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(B=>new _optional_content_config.OptionalContentConfig(B))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const B="GetMetadata",M=He(this,y).get(B);if(M)return M;const D=this.messageHandler.sendWithPromise(B,null).then(O=>{var H,j;return{info:O[0],metadata:O[1]?new _metadata.Metadata(O[1]):null,contentDispositionFilename:((H=this._fullReader)==null?void 0:H.filename)??null,contentLength:((j=this._fullReader)==null?void 0:j.contentLength)??null}});return He(this,y).set(B,D),D}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(B=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const M of He(this,f).values())if(!M.cleanup())throw new Error(`startCleanup: Page ${M.pageNumber} is currently rendering.`);this.commonObjs.clear(),B||this.fontLoader.clear(),He(this,y).clear(),this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:B,enableXfa:M}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:B,enableXfa:M})}}y=new WeakMap,f=new WeakMap,m=new WeakMap,C=new WeakMap,S=new WeakSet,go=function(B,M=null){const D=He(this,y).get(B);if(D)return D;const O=this.messageHandler.sendWithPromise(B,M);return He(this,y).set(B,O),O};class PDFObjects{constructor(){vt(this,P);vt(this,I,Object.create(null))}get(B,M=null){if(M){const O=it(this,P,Gs).call(this,B);return O.capability.promise.then(()=>M(O.data)),null}const D=He(this,I)[B];if(!(D!=null&&D.capability.settled))throw new Error(`Requesting object that isn't resolved yet ${B}.`);return D.data}has(B){const M=He(this,I)[B];return(M==null?void 0:M.capability.settled)||!1}resolve(B,M=null){const D=it(this,P,Gs).call(this,B);D.data=M,D.capability.resolve()}clear(){var B;for(const M in He(this,I)){const{data:D}=He(this,I)[M];(B=D==null?void 0:D.bitmap)==null||B.close()}Ct(this,I,Object.create(null))}}I=new WeakMap,P=new WeakSet,Gs=function(B){var M;return(M=He(this,I))[B]||(M[B]={capability:new _util.PromiseCapability,data:null})};class RenderTask{constructor(B){vt(this,_,null);Ct(this,_,B),this.onContinue=null}get promise(){return He(this,_).capability.promise}cancel(B=0){He(this,_).cancel(null,B)}get separateAnnots(){const{separateAnnots:B}=He(this,_).operatorList;if(!B)return!1;const{annotationCanvasMap:M}=He(this,_);return B.form||B.canvas&&(M==null?void 0:M.size)>0}}_=new WeakMap,exports.RenderTask=RenderTask;const R=class R{constructor({callback:B,params:M,objs:D,commonObjs:O,annotationCanvasMap:H,operatorList:j,pageIndex:Q,canvasFactory:L,filterFactory:F,useRequestAnimationFrame:U=!1,pdfBug:N=!1,pageColors:k=null}){this.callback=B,this.params=M,this.objs=D,this.commonObjs=O,this.annotationCanvasMap=H,this.operatorListIdx=null,this.operatorList=j,this._pageIndex=Q,this.canvasFactory=L,this.filterFactory=F,this._pdfBug=N,this.pageColors=k,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=U===!0&&typeof window<"u",this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=M.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:B=!1,optionalContentConfig:M}){var Q,L;if(this.cancelled)return;if(this._canvas){if(He(R,E).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");He(R,E).add(this._canvas)}this._pdfBug&&((Q=globalThis.StepperManager)!=null&&Q.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:D,viewport:O,transform:H,background:j}=this.params;this.gfx=new _canvas.CanvasGraphics(D,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:M},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:H,viewport:O,transparency:B,background:j}),this.operatorListIdx=0,this.graphicsReady=!0,(L=this.graphicsReadyCallback)==null||L.call(this)}cancel(B=null,M=0){var D;this.running=!1,this.cancelled=!0,(D=this.gfx)==null||D.endDrawing(),He(R,E).delete(this._canvas),this.callback(B||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,M))}operatorListChanged(){var B;if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}(B=this.stepper)==null||B.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),He(R,E).delete(this._canvas),this.callback())))}};E=new WeakMap,vt(R,E,new WeakSet);let InternalRenderTask=R;const version="3.11.174";exports.version=version;const build="ce8716743";exports.build=build},(a,s,c)=>{var g,x,y,Su,m;Object.defineProperty(s,"__esModule",{value:!0}),s.SerializableEmpty=s.PrintAnnotationStorage=s.AnnotationStorage=void 0;var u=c(1),d=c(4),p=c(8);const v=Object.freeze({map:null,hash:"",transfers:void 0});s.SerializableEmpty=v;class A{constructor(){vt(this,y);vt(this,g,!1);vt(this,x,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(S,w){const I=He(this,x).get(S);return I===void 0?w:Object.assign(w,I)}getRawValue(S){return He(this,x).get(S)}remove(S){if(He(this,x).delete(S),He(this,x).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const w of He(this,x).values())if(w instanceof d.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(S,w){const I=He(this,x).get(S);let P=!1;if(I!==void 0)for(const[$,_]of Object.entries(w))I[$]!==_&&(P=!0,I[$]=_);else P=!0,He(this,x).set(S,w);P&&it(this,y,Su).call(this),w instanceof d.AnnotationEditor&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(w.constructor._type)}has(S){return He(this,x).has(S)}getAll(){return He(this,x).size>0?(0,u.objectFromMap)(He(this,x)):null}setAll(S){for(const[w,I]of Object.entries(S))this.setValue(w,I)}get size(){return He(this,x).size}resetModified(){He(this,g)&&(Ct(this,g,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new b(this)}get serializable(){if(He(this,x).size===0)return v;const S=new Map,w=new p.MurmurHash3_64,I=[],P=Object.create(null);let $=!1;for(const[_,E]of He(this,x)){const R=E instanceof d.AnnotationEditor?E.serialize(!1,P):E;R&&(S.set(_,R),w.update(`${_}:${JSON.stringify(R)}`),$||($=!!R.bitmap))}if($)for(const _ of S.values())_.bitmap&&I.push(_.bitmap);return S.size>0?{map:S,hash:w.hexdigest(),transfers:I}:v}}g=new WeakMap,x=new WeakMap,y=new WeakSet,Su=function(){He(this,g)||(Ct(this,g,!0),typeof this.onSetModified=="function"&&this.onSetModified())},s.AnnotationStorage=A;class b extends A{constructor(w){super();vt(this,m);const{map:I,hash:P,transfers:$}=w.serializable,_=structuredClone(I,$?{transfer:$}:null);Ct(this,m,{map:_,hash:P,transfers:$})}get print(){(0,u.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return He(this,m)}}m=new WeakMap,s.PrintAnnotationStorage=b},(a,s,c)=>{var b,g,x,y,f,m,C,S,w,I,P,$,_,E,R,Vs,Qs,M,qs,Ys,$u,Iu,_u,Ks,Pu;Object.defineProperty(s,"__esModule",{value:!0}),s.AnnotationEditor=void 0;var u=c(5),d=c(1),p=c(6);const U=class U{constructor(k){vt(this,R);vt(this,b,"");vt(this,g,!1);vt(this,x,null);vt(this,y,null);vt(this,f,null);vt(this,m,!1);vt(this,C,null);vt(this,S,this.focusin.bind(this));vt(this,w,this.focusout.bind(this));vt(this,I,!1);vt(this,P,!1);vt(this,$,!1);yr(this,"_initialOptions",Object.create(null));yr(this,"_uiManager",null);yr(this,"_focusEventsAllowed",!0);yr(this,"_l10nPromise",null);vt(this,_,!1);vt(this,E,U._zIndex++);this.constructor===U&&(0,d.unreachable)("Cannot initialize AnnotationEditor."),this.parent=k.parent,this.id=k.id,this.width=this.height=null,this.pageIndex=k.parent.pageIndex,this.name=k.name,this.div=null,this._uiManager=k.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=k.isCentered,this._structTreeParentId=null;const{rotation:W,rawDims:{pageWidth:J,pageHeight:q,pageX:Y,pageY:Z}}=this.parent.viewport;this.rotation=W,this.pageRotation=(360+W-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[J,q],this.pageTranslation=[Y,Z];const[ee,re]=this.parentDimensions;this.x=k.x/ee,this.y=k.y/re,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,d.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(k){const W=new A({id:k.parent.getNextId(),parent:k.parent,uiManager:k._uiManager});W.annotationElementId=k.annotationElementId,W.deleted=!0,W._uiManager.addToAnnotationStorage(W)}static initialize(k,W=null){if(U._l10nPromise||(U._l10nPromise=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map(q=>[q,k.get(q)]))),W!=null&&W.strings)for(const q of W.strings)U._l10nPromise.set(q,k.get(q));if(U._borderLineWidth!==-1)return;const J=getComputedStyle(document.documentElement);U._borderLineWidth=parseFloat(J.getPropertyValue("--outline-width"))||0}static updateDefaultParams(k,W){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(k){return!1}static paste(k,W){(0,d.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return He(this,_)}set _isDraggable(k){var W;Ct(this,_,k),(W=this.div)==null||W.classList.toggle("draggable",k)}center(){const[k,W]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*W/(k*2),this.y+=this.width*k/(W*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*W/(k*2),this.y-=this.width*k/(W*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(k){this._uiManager.addCommands(k)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=He(this,E)}setParent(k){k!==null&&(this.pageIndex=k.pageIndex,this.pageDimensions=k.pageDimensions),this.parent=k}focusin(k){this._focusEventsAllowed&&(He(this,I)?Ct(this,I,!1):this.parent.setSelected(this))}focusout(k){var J;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const W=k.relatedTarget;W!=null&&W.closest(`#${this.id}`)||(k.preventDefault(),(J=this.parent)!=null&&J.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(k,W,J,q){const[Y,Z]=this.parentDimensions;[J,q]=this.screenToPageTranslation(J,q),this.x=(k+J)/Y,this.y=(W+q)/Z,this.fixAndSetPosition()}translate(k,W){it(this,R,Vs).call(this,this.parentDimensions,k,W)}translateInPage(k,W){it(this,R,Vs).call(this,this.pageDimensions,k,W),this.div.scrollIntoView({block:"nearest"})}drag(k,W){const[J,q]=this.parentDimensions;if(this.x+=k/J,this.y+=W/q,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:ae,y:V}=this.div.getBoundingClientRect();this.parent.findNewParent(this,ae,V)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:Y,y:Z}=this;const[ee,re]=it(this,R,Qs).call(this);Y+=ee,Z+=re,this.div.style.left=`${(100*Y).toFixed(2)}%`,this.div.style.top=`${(100*Z).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}fixAndSetPosition(){const[k,W]=this.pageDimensions;let{x:J,y:q,width:Y,height:Z}=this;switch(Y*=k,Z*=W,J*=k,q*=W,this.rotation){case 0:J=Math.max(0,Math.min(k-Y,J)),q=Math.max(0,Math.min(W-Z,q));break;case 90:J=Math.max(0,Math.min(k-Z,J)),q=Math.min(W,Math.max(Y,q));break;case 180:J=Math.min(k,Math.max(Y,J)),q=Math.min(W,Math.max(Z,q));break;case 270:J=Math.min(k,Math.max(Z,J)),q=Math.max(0,Math.min(W-Y,q));break}this.x=J/=k,this.y=q/=W;const[ee,re]=it(this,R,Qs).call(this);J+=ee,q+=re;const{style:ae}=this.div;ae.left=`${(100*J).toFixed(2)}%`,ae.top=`${(100*q).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(k,W){var J;return it(J=U,M,qs).call(J,k,W,this.parentRotation)}pageTranslationToScreen(k,W){var J;return it(J=U,M,qs).call(J,k,W,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:k,pageDimensions:[W,J]}=this,q=W*k,Y=J*k;return d.FeatureTest.isCSSRoundSupported?[Math.round(q),Math.round(Y)]:[q,Y]}setDims(k,W){var Y;const[J,q]=this.parentDimensions;this.div.style.width=`${(100*k/J).toFixed(2)}%`,He(this,m)||(this.div.style.height=`${(100*W/q).toFixed(2)}%`),(Y=He(this,x))==null||Y.classList.toggle("small",k<U.SMALL_EDITOR_SIZE||W<U.SMALL_EDITOR_SIZE)}fixDims(){const{style:k}=this.div,{height:W,width:J}=k,q=J.endsWith("%"),Y=!He(this,m)&&W.endsWith("%");if(q&&Y)return;const[Z,ee]=this.parentDimensions;q||(k.width=`${(100*parseFloat(J)/Z).toFixed(2)}%`),!He(this,m)&&!Y&&(k.height=`${(100*parseFloat(W)/ee).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}async addAltTextButton(){if(He(this,x))return;const k=Ct(this,x,document.createElement("button"));k.className="altText";const W=await U._l10nPromise.get("editor_alt_text_button_label");k.textContent=W,k.setAttribute("aria-label",W),k.tabIndex="0",k.addEventListener("contextmenu",p.noContextMenu),k.addEventListener("pointerdown",J=>J.stopPropagation()),k.addEventListener("click",J=>{J.preventDefault(),this._uiManager.editAltText(this)},{capture:!0}),k.addEventListener("keydown",J=>{J.target===k&&J.key==="Enter"&&(J.preventDefault(),this._uiManager.editAltText(this))}),it(this,R,Ks).call(this),this.div.append(k),U.SMALL_EDITOR_SIZE||(U.SMALL_EDITOR_SIZE=Math.min(128,Math.round(k.getBoundingClientRect().width*1.4)))}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:He(this,b),decorative:He(this,g)}}set altTextData({altText:k,decorative:W}){He(this,b)===k&&He(this,g)===W||(Ct(this,b,k),Ct(this,g,W),it(this,R,Ks).call(this))}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",He(this,S)),this.div.addEventListener("focusout",He(this,w));const[k,W]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*W/k).toFixed(2)}%`,this.div.style.maxHeight=`${(100*k/W).toFixed(2)}%`);const[J,q]=this.getInitialTranslation();return this.translate(J,q),(0,u.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(k){const{isMac:W}=d.FeatureTest.platform;if(k.button!==0||k.ctrlKey&&W){k.preventDefault();return}Ct(this,I,!0),it(this,R,Pu).call(this,k)}moveInDOM(){var k;(k=this.parent)==null||k.moveEditorInDOM(this)}_setParentAndPosition(k,W,J){k.changeParent(this),this.x=W,this.y=J,this.fixAndSetPosition()}getRect(k,W){const J=this.parentScale,[q,Y]=this.pageDimensions,[Z,ee]=this.pageTranslation,re=k/J,ae=W/J,V=this.x*q,K=this.y*Y,te=this.width*q,ie=this.height*Y;switch(this.rotation){case 0:return[V+re+Z,Y-K-ae-ie+ee,V+re+te+Z,Y-K-ae+ee];case 90:return[V+ae+Z,Y-K+re+ee,V+ae+ie+Z,Y-K+re+te+ee];case 180:return[V-re-te+Z,Y-K+ae+ee,V-re+Z,Y-K+ae+ie+ee];case 270:return[V-ae-ie+Z,Y-K-re-te+ee,V-ae+Z,Y-K-re+ee];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(k,W){const[J,q,Y,Z]=k,ee=Y-J,re=Z-q;switch(this.rotation){case 0:return[J,W-Z,ee,re];case 90:return[J,W-q,re,ee];case 180:return[Y,W-q,ee,re];case 270:return[Y,W-Z,re,ee];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){Ct(this,$,!0)}disableEditMode(){Ct(this,$,!1)}isInEditMode(){return He(this,$)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var k,W;(k=this.div)==null||k.addEventListener("focusin",He(this,S)),(W=this.div)==null||W.addEventListener("focusout",He(this,w))}serialize(k=!1,W=null){(0,d.unreachable)("An editor must be serializable")}static deserialize(k,W,J){const q=new this.prototype.constructor({parent:W,id:W.getNextId(),uiManager:J});q.rotation=k.rotation;const[Y,Z]=q.pageDimensions,[ee,re,ae,V]=q.getRectInCurrentCoords(k.rect,Z);return q.x=ee/Y,q.y=re/Z,q.width=ae/Y,q.height=V/Z,q}remove(){var k;this.div.removeEventListener("focusin",He(this,S)),this.div.removeEventListener("focusout",He(this,w)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),(k=He(this,x))==null||k.remove(),Ct(this,x,null),Ct(this,y,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(it(this,R,$u).call(this),He(this,C).classList.remove("hidden"))}select(){var k;this.makeResizable(),(k=this.div)==null||k.classList.add("selectedEditor")}unselect(){var k,W,J;(k=He(this,C))==null||k.classList.add("hidden"),(W=this.div)==null||W.classList.remove("selectedEditor"),(J=this.div)!=null&&J.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(k,W){}disableEditing(){He(this,x)&&(He(this,x).hidden=!0)}enableEditing(){He(this,x)&&(He(this,x).hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return He(this,P)}set isEditing(k){Ct(this,P,k),this.parent&&(k?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(k,W){Ct(this,m,!0);const J=k/W,{style:q}=this.div;q.aspectRatio=J,q.height="auto"}static get MIN_SIZE(){return 16}};b=new WeakMap,g=new WeakMap,x=new WeakMap,y=new WeakMap,f=new WeakMap,m=new WeakMap,C=new WeakMap,S=new WeakMap,w=new WeakMap,I=new WeakMap,P=new WeakMap,$=new WeakMap,_=new WeakMap,E=new WeakMap,R=new WeakSet,Vs=function([k,W],J,q){[J,q]=this.screenToPageTranslation(J,q),this.x+=J/k,this.y+=q/W,this.fixAndSetPosition()},Qs=function(){const[k,W]=this.parentDimensions,{_borderLineWidth:J}=U,q=J/k,Y=J/W;switch(this.rotation){case 90:return[-q,Y];case 180:return[q,Y];case 270:return[q,-Y];default:return[-q,-Y]}},M=new WeakSet,qs=function(k,W,J){switch(J){case 90:return[W,-k];case 180:return[-k,-W];case 270:return[-W,k];default:return[k,W]}},Ys=function(k){switch(k){case 90:{const[W,J]=this.pageDimensions;return[0,-W/J,J/W,0]}case 180:return[-1,0,0,-1];case 270:{const[W,J]=this.pageDimensions;return[0,W/J,-J/W,0]}default:return[1,0,0,1]}},$u=function(){if(He(this,C))return;Ct(this,C,document.createElement("div")),He(this,C).classList.add("resizers");const k=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||k.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(const W of k){const J=document.createElement("div");He(this,C).append(J),J.classList.add("resizer",W),J.addEventListener("pointerdown",it(this,R,Iu).bind(this,W)),J.addEventListener("contextmenu",p.noContextMenu)}this.div.prepend(He(this,C))},Iu=function(k,W){W.preventDefault();const{isMac:J}=d.FeatureTest.platform;if(W.button!==0||W.ctrlKey&&J)return;const q=it(this,R,_u).bind(this,k),Y=this._isDraggable;this._isDraggable=!1;const Z={passive:!0,capture:!0};window.addEventListener("pointermove",q,Z);const ee=this.x,re=this.y,ae=this.width,V=this.height,K=this.parent.div.style.cursor,te=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(W.target).cursor;const ie=()=>{this._isDraggable=Y,window.removeEventListener("pointerup",ie),window.removeEventListener("blur",ie),window.removeEventListener("pointermove",q,Z),this.parent.div.style.cursor=K,this.div.style.cursor=te;const ce=this.x,ge=this.y,Se=this.width,be=this.height;ce===ee&&ge===re&&Se===ae&&be===V||this.addCommands({cmd:()=>{this.width=Se,this.height=be,this.x=ce,this.y=ge;const[me,fe]=this.parentDimensions;this.setDims(me*Se,fe*be),this.fixAndSetPosition()},undo:()=>{this.width=ae,this.height=V,this.x=ee,this.y=re;const[me,fe]=this.parentDimensions;this.setDims(me*ae,fe*V),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",ie),window.addEventListener("blur",ie)},_u=function(k,W){const[J,q]=this.parentDimensions,Y=this.x,Z=this.y,ee=this.width,re=this.height,ae=U.MIN_SIZE/J,V=U.MIN_SIZE/q,K=ye=>Math.round(ye*1e4)/1e4,te=it(this,R,Ys).call(this,this.rotation),ie=(ye,Pe)=>[te[0]*ye+te[2]*Pe,te[1]*ye+te[3]*Pe],ce=it(this,R,Ys).call(this,360-this.rotation),ge=(ye,Pe)=>[ce[0]*ye+ce[2]*Pe,ce[1]*ye+ce[3]*Pe];let Se,be,me=!1,fe=!1;switch(k){case"topLeft":me=!0,Se=(ye,Pe)=>[0,0],be=(ye,Pe)=>[ye,Pe];break;case"topMiddle":Se=(ye,Pe)=>[ye/2,0],be=(ye,Pe)=>[ye/2,Pe];break;case"topRight":me=!0,Se=(ye,Pe)=>[ye,0],be=(ye,Pe)=>[0,Pe];break;case"middleRight":fe=!0,Se=(ye,Pe)=>[ye,Pe/2],be=(ye,Pe)=>[0,Pe/2];break;case"bottomRight":me=!0,Se=(ye,Pe)=>[ye,Pe],be=(ye,Pe)=>[0,0];break;case"bottomMiddle":Se=(ye,Pe)=>[ye/2,Pe],be=(ye,Pe)=>[ye/2,0];break;case"bottomLeft":me=!0,Se=(ye,Pe)=>[0,Pe],be=(ye,Pe)=>[ye,0];break;case"middleLeft":fe=!0,Se=(ye,Pe)=>[0,Pe/2],be=(ye,Pe)=>[ye,Pe/2];break}const se=Se(ee,re),oe=be(ee,re);let de=ie(...oe);const le=K(Y+de[0]),xe=K(Z+de[1]);let Ce=1,$e=1,[we,Ee]=this.screenToPageTranslation(W.movementX,W.movementY);if([we,Ee]=ge(we/J,Ee/q),me){const ye=Math.hypot(ee,re);Ce=$e=Math.max(Math.min(Math.hypot(oe[0]-se[0]-we,oe[1]-se[1]-Ee)/ye,1/ee,1/re),ae/ee,V/re)}else fe?Ce=Math.max(ae,Math.min(1,Math.abs(oe[0]-se[0]-we)))/ee:$e=Math.max(V,Math.min(1,Math.abs(oe[1]-se[1]-Ee)))/re;const Ae=K(ee*Ce),pe=K(re*$e);de=ie(...be(Ae,pe));const he=le-de[0],Ie=xe-de[1];this.width=Ae,this.height=pe,this.x=he,this.y=Ie,this.setDims(J*Ae,q*pe),this.fixAndSetPosition()},Ks=async function(){var J;const k=He(this,x);if(!k)return;if(!He(this,b)&&!He(this,g)){k.classList.remove("done"),(J=He(this,y))==null||J.remove();return}U._l10nPromise.get("editor_alt_text_edit_button_label").then(q=>{k.setAttribute("aria-label",q)});let W=He(this,y);if(!W){Ct(this,y,W=document.createElement("span")),W.className="tooltip",W.setAttribute("role","tooltip");const q=W.id=`alt-text-tooltip-${this.id}`;k.setAttribute("aria-describedby",q);const Y=100;k.addEventListener("mouseenter",()=>{Ct(this,f,setTimeout(()=>{Ct(this,f,null),He(this,y).classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})},Y))}),k.addEventListener("mouseleave",()=>{var Z;clearTimeout(He(this,f)),Ct(this,f,null),(Z=He(this,y))==null||Z.classList.remove("show")})}k.classList.add("done"),W.innerText=He(this,g)?await U._l10nPromise.get("editor_alt_text_decorative_tooltip"):He(this,b),W.parentNode||k.append(W)},Pu=function(k){if(!this._isDraggable)return;const W=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let J,q;W&&(J={passive:!0,capture:!0},q=Z=>{const[ee,re]=this.screenToPageTranslation(Z.movementX,Z.movementY);this._uiManager.dragSelectedEditors(ee,re)},window.addEventListener("pointermove",q,J));const Y=()=>{if(window.removeEventListener("pointerup",Y),window.removeEventListener("blur",Y),W&&window.removeEventListener("pointermove",q,J),Ct(this,I,!1),!this._uiManager.endDragSession()){const{isMac:Z}=d.FeatureTest.platform;k.ctrlKey&&!Z||k.shiftKey||k.metaKey&&Z?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",Y),window.addEventListener("blur",Y)},vt(U,M),yr(U,"_borderLineWidth",-1),yr(U,"_colorManager",new u.ColorManager),yr(U,"_zIndex",1),yr(U,"SMALL_EDITOR_SIZE",0);let v=U;s.AnnotationEditor=v;class A extends v{constructor(k){super(k),this.annotationElementId=k.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(a,s,c)=>{var m,C,S,w,I,Xs,_,E,R,T,B,Tu,O,H,j,Q,L,F,U,N,k,W,J,q,Y,Z,ee,re,ae,V,K,te,ie,ce,ge,Se,be,me,fe,se,oe,de,le,xe,Ce,$e,we,Ru,Zs,Js,mo,el,tl,In,pi,Bu,Mu,rl,gi,nl;Object.defineProperty(s,"__esModule",{value:!0}),s.KeyboardManager=s.CommandManager=s.ColorManager=s.AnnotationEditorUIManager=void 0,s.bindEvents=p,s.opacityToHex=v;var u=c(1),d=c(6);function p(Te,ke,De){for(const Re of De)ke.addEventListener(Re,Te[Re].bind(Te))}function v(Te){return Math.round(Math.min(255,Math.max(1,255*Te))).toString(16).padStart(2,"0")}class A{constructor(){vt(this,m,0)}getId(){return`${u.AnnotationEditorPrefix}${hi(this,m)._++}`}}m=new WeakMap;const $=class ${constructor(){vt(this,I);vt(this,C,(0,u.getUuid)());vt(this,S,0);vt(this,w,null)}static get _isSVGFittingCanvas(){const ke='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',Re=new OffscreenCanvas(1,3).getContext("2d"),Ge=new Image;Ge.src=ke;const Ve=Ge.decode().then(()=>(Re.drawImage(Ge,0,0,1,1,0,0,1,3),new Uint32Array(Re.getImageData(0,0,1,1).data.buffer)[0]===0));return(0,u.shadow)(this,"_isSVGFittingCanvas",Ve)}async getFromFile(ke){const{lastModified:De,name:Re,size:Ge,type:Ve}=ke;return it(this,I,Xs).call(this,`${De}_${Re}_${Ge}_${Ve}`,ke)}async getFromUrl(ke){return it(this,I,Xs).call(this,ke,ke)}async getFromId(ke){He(this,w)||Ct(this,w,new Map);const De=He(this,w).get(ke);return De?De.bitmap?(De.refCounter+=1,De):De.file?this.getFromFile(De.file):this.getFromUrl(De.url):null}getSvgUrl(ke){const De=He(this,w).get(ke);return De!=null&&De.isSvg?De.svgUrl:null}deleteId(ke){He(this,w)||Ct(this,w,new Map);const De=He(this,w).get(ke);De&&(De.refCounter-=1,De.refCounter===0&&(De.bitmap=null))}isValidId(ke){return ke.startsWith(`image_${He(this,C)}_`)}};C=new WeakMap,S=new WeakMap,w=new WeakMap,I=new WeakSet,Xs=async function(ke,De){He(this,w)||Ct(this,w,new Map);let Re=He(this,w).get(ke);if(Re===null)return null;if(Re!=null&&Re.bitmap)return Re.refCounter+=1,Re;try{Re||(Re={bitmap:null,id:`image_${He(this,C)}_${hi(this,S)._++}`,refCounter:0,isSvg:!1});let Ge;if(typeof De=="string"){Re.url=De;const Ve=await fetch(De);if(!Ve.ok)throw new Error(Ve.statusText);Ge=await Ve.blob()}else Ge=Re.file=De;if(Ge.type==="image/svg+xml"){const Ve=$._isSVGFittingCanvas,Xe=new FileReader,We=new Image,ze=new Promise((Qe,et)=>{We.onload=()=>{Re.bitmap=We,Re.isSvg=!0,Qe()},Xe.onload=async()=>{const Ze=Re.svgUrl=Xe.result;We.src=await Ve?`${Ze}#svgView(preserveAspectRatio(none))`:Ze},We.onerror=Xe.onerror=et});Xe.readAsDataURL(Ge),await ze}else Re.bitmap=await createImageBitmap(Ge);Re.refCounter=1}catch(Ge){console.error(Ge),Re=null}return He(this,w).set(ke,Re),Re&&He(this,w).set(Re.id,Re),Re};let b=$;class g{constructor(ke=128){vt(this,_,[]);vt(this,E,!1);vt(this,R);vt(this,T,-1);Ct(this,R,ke)}add({cmd:ke,undo:De,mustExec:Re,type:Ge=NaN,overwriteIfSameType:Ve=!1,keepUndo:Xe=!1}){if(Re&&ke(),He(this,E))return;const We={cmd:ke,undo:De,type:Ge};if(He(this,T)===-1){He(this,_).length>0&&(He(this,_).length=0),Ct(this,T,0),He(this,_).push(We);return}if(Ve&&He(this,_)[He(this,T)].type===Ge){Xe&&(We.undo=He(this,_)[He(this,T)].undo),He(this,_)[He(this,T)]=We;return}const ze=He(this,T)+1;ze===He(this,R)?He(this,_).splice(0,1):(Ct(this,T,ze),ze<He(this,_).length&&He(this,_).splice(ze)),He(this,_).push(We)}undo(){He(this,T)!==-1&&(Ct(this,E,!0),He(this,_)[He(this,T)].undo(),Ct(this,E,!1),Ct(this,T,He(this,T)-1))}redo(){He(this,T)<He(this,_).length-1&&(Ct(this,T,He(this,T)+1),Ct(this,E,!0),He(this,_)[He(this,T)].cmd(),Ct(this,E,!1))}hasSomethingToUndo(){return He(this,T)!==-1}hasSomethingToRedo(){return He(this,T)<He(this,_).length-1}destroy(){Ct(this,_,null)}}_=new WeakMap,E=new WeakMap,R=new WeakMap,T=new WeakMap,s.CommandManager=g;class x{constructor(ke){vt(this,B);this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:De}=u.FeatureTest.platform;for(const[Re,Ge,Ve={}]of ke)for(const Xe of Re){const We=Xe.startsWith("mac+");De&&We?(this.callbacks.set(Xe.slice(4),{callback:Ge,options:Ve}),this.allKeys.add(Xe.split("+").at(-1))):!De&&!We&&(this.callbacks.set(Xe,{callback:Ge,options:Ve}),this.allKeys.add(Xe.split("+").at(-1)))}}exec(ke,De){if(!this.allKeys.has(De.key))return;const Re=this.callbacks.get(it(this,B,Tu).call(this,De));if(!Re)return;const{callback:Ge,options:{bubbles:Ve=!1,args:Xe=[],checker:We=null}}=Re;We&&!We(ke,De)||(Ge.bind(ke,...Xe)(),Ve||(De.stopPropagation(),De.preventDefault()))}}B=new WeakSet,Tu=function(ke){ke.altKey&&this.buffer.push("alt"),ke.ctrlKey&&this.buffer.push("ctrl"),ke.metaKey&&this.buffer.push("meta"),ke.shiftKey&&this.buffer.push("shift"),this.buffer.push(ke.key);const De=this.buffer.join("+");return this.buffer.length=0,De},s.KeyboardManager=x;const D=class D{get _colors(){const ke=new Map([["CanvasText",null],["Canvas",null]]);return(0,d.getColorValues)(ke),(0,u.shadow)(this,"_colors",ke)}convert(ke){const De=(0,d.getRGB)(ke);if(!window.matchMedia("(forced-colors: active)").matches)return De;for(const[Re,Ge]of this._colors)if(Ge.every((Ve,Xe)=>Ve===De[Xe]))return D._colorsMapping.get(Re);return De}getHexCode(ke){const De=this._colors.get(ke);return De?u.Util.makeHexColor(...De):ke}};yr(D,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let y=D;s.ColorManager=y;const Ye=class Ye{constructor(ke,De,Re,Ge,Ve,Xe){vt(this,we);vt(this,O,null);vt(this,H,new Map);vt(this,j,new Map);vt(this,Q,null);vt(this,L,null);vt(this,F,new g);vt(this,U,0);vt(this,N,new Set);vt(this,k,null);vt(this,W,null);vt(this,J,new Set);vt(this,q,null);vt(this,Y,new A);vt(this,Z,!1);vt(this,ee,!1);vt(this,re,null);vt(this,ae,u.AnnotationEditorType.NONE);vt(this,V,new Set);vt(this,K,null);vt(this,te,this.blur.bind(this));vt(this,ie,this.focus.bind(this));vt(this,ce,this.copy.bind(this));vt(this,ge,this.cut.bind(this));vt(this,Se,this.paste.bind(this));vt(this,be,this.keydown.bind(this));vt(this,me,this.onEditingAction.bind(this));vt(this,fe,this.onPageChanging.bind(this));vt(this,se,this.onScaleChanging.bind(this));vt(this,oe,this.onRotationChanging.bind(this));vt(this,de,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1});vt(this,le,[0,0]);vt(this,xe,null);vt(this,Ce,null);vt(this,$e,null);Ct(this,Ce,ke),Ct(this,$e,De),Ct(this,Q,Re),this._eventBus=Ge,this._eventBus._on("editingaction",He(this,me)),this._eventBus._on("pagechanging",He(this,fe)),this._eventBus._on("scalechanging",He(this,se)),this._eventBus._on("rotationchanging",He(this,oe)),Ct(this,L,Ve.annotationStorage),Ct(this,q,Ve.filterFactory),Ct(this,K,Xe),this.viewParameters={realScale:d.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}static get _keyboardManager(){const ke=Ye.prototype,De=Ve=>{const{activeElement:Xe}=document;return Xe&&He(Ve,Ce).contains(Xe)&&Ve.hasSomethingToControl()},Re=this.TRANSLATE_SMALL,Ge=this.TRANSLATE_BIG;return(0,u.shadow)(this,"_keyboardManager",new x([[["ctrl+a","mac+meta+a"],ke.selectAll],[["ctrl+z","mac+meta+z"],ke.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],ke.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],ke.delete],[["Escape","mac+Escape"],ke.unselectAll],[["ArrowLeft","mac+ArrowLeft"],ke.translateSelectedEditors,{args:[-Re,0],checker:De}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],ke.translateSelectedEditors,{args:[-Ge,0],checker:De}],[["ArrowRight","mac+ArrowRight"],ke.translateSelectedEditors,{args:[Re,0],checker:De}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],ke.translateSelectedEditors,{args:[Ge,0],checker:De}],[["ArrowUp","mac+ArrowUp"],ke.translateSelectedEditors,{args:[0,-Re],checker:De}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],ke.translateSelectedEditors,{args:[0,-Ge],checker:De}],[["ArrowDown","mac+ArrowDown"],ke.translateSelectedEditors,{args:[0,Re],checker:De}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],ke.translateSelectedEditors,{args:[0,Ge],checker:De}]]))}destroy(){it(this,we,mo).call(this),it(this,we,Zs).call(this),this._eventBus._off("editingaction",He(this,me)),this._eventBus._off("pagechanging",He(this,fe)),this._eventBus._off("scalechanging",He(this,se)),this._eventBus._off("rotationchanging",He(this,oe));for(const ke of He(this,j).values())ke.destroy();He(this,j).clear(),He(this,H).clear(),He(this,J).clear(),Ct(this,O,null),He(this,V).clear(),He(this,F).destroy(),He(this,Q).destroy()}get hcmFilter(){return(0,u.shadow)(this,"hcmFilter",He(this,K)?He(this,q).addHCMFilter(He(this,K).foreground,He(this,K).background):"none")}get direction(){return(0,u.shadow)(this,"direction",getComputedStyle(He(this,Ce)).direction)}editAltText(ke){var De;(De=He(this,Q))==null||De.editAltText(this,ke)}onPageChanging({pageNumber:ke}){Ct(this,U,ke-1)}focusMainContainer(){He(this,Ce).focus()}findParent(ke,De){for(const Re of He(this,j).values()){const{x:Ge,y:Ve,width:Xe,height:We}=Re.div.getBoundingClientRect();if(ke>=Ge&&ke<=Ge+Xe&&De>=Ve&&De<=Ve+We)return Re}return null}disableUserSelect(ke=!1){He(this,$e).classList.toggle("noUserSelect",ke)}addShouldRescale(ke){He(this,J).add(ke)}removeShouldRescale(ke){He(this,J).delete(ke)}onScaleChanging({scale:ke}){this.commitOrRemove(),this.viewParameters.realScale=ke*d.PixelsPerInch.PDF_TO_CSS_UNITS;for(const De of He(this,J))De.onScaleChanging()}onRotationChanging({pagesRotation:ke}){this.commitOrRemove(),this.viewParameters.rotation=ke}addToAnnotationStorage(ke){!ke.isEmpty()&&He(this,L)&&!He(this,L).has(ke.id)&&He(this,L).setValue(ke.id,ke)}blur(){if(!this.hasSelection)return;const{activeElement:ke}=document;for(const De of He(this,V))if(De.div.contains(ke)){Ct(this,re,[De,ke]),De._focusEventsAllowed=!1;break}}focus(){if(!He(this,re))return;const[ke,De]=He(this,re);Ct(this,re,null),De.addEventListener("focusin",()=>{ke._focusEventsAllowed=!0},{once:!0}),De.focus()}addEditListeners(){it(this,we,Js).call(this),it(this,we,el).call(this)}removeEditListeners(){it(this,we,mo).call(this),it(this,we,tl).call(this)}copy(ke){var Re;if(ke.preventDefault(),(Re=He(this,O))==null||Re.commitOrRemove(),!this.hasSelection)return;const De=[];for(const Ge of He(this,V)){const Ve=Ge.serialize(!0);Ve&&De.push(Ve)}De.length!==0&&ke.clipboardData.setData("application/pdfjs",JSON.stringify(De))}cut(ke){this.copy(ke),this.delete()}paste(ke){ke.preventDefault();const{clipboardData:De}=ke;for(const Ve of De.items)for(const Xe of He(this,W))if(Xe.isHandlingMimeForPasting(Ve.type)){Xe.paste(Ve,this.currentLayer);return}let Re=De.getData("application/pdfjs");if(!Re)return;try{Re=JSON.parse(Re)}catch(Ve){(0,u.warn)(`paste: "${Ve.message}".`);return}if(!Array.isArray(Re))return;this.unselectAll();const Ge=this.currentLayer;try{const Ve=[];for(const ze of Re){const Qe=Ge.deserialize(ze);if(!Qe)return;Ve.push(Qe)}const Xe=()=>{for(const ze of Ve)it(this,we,rl).call(this,ze);it(this,we,nl).call(this,Ve)},We=()=>{for(const ze of Ve)ze.remove()};this.addCommands({cmd:Xe,undo:We,mustExec:!0})}catch(Ve){(0,u.warn)(`paste: "${Ve.message}".`)}}keydown(ke){var De;(De=this.getActive())!=null&&De.shouldGetKeyboardEvents()||Ye._keyboardManager.exec(this,ke)}onEditingAction(ke){["undo","redo","delete","selectAll"].includes(ke.name)&&this[ke.name]()}setEditingState(ke){ke?(it(this,we,Ru).call(this),it(this,we,Js).call(this),it(this,we,el).call(this),it(this,we,In).call(this,{isEditing:He(this,ae)!==u.AnnotationEditorType.NONE,isEmpty:it(this,we,gi).call(this),hasSomethingToUndo:He(this,F).hasSomethingToUndo(),hasSomethingToRedo:He(this,F).hasSomethingToRedo(),hasSelectedEditor:!1})):(it(this,we,Zs).call(this),it(this,we,mo).call(this),it(this,we,tl).call(this),it(this,we,In).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(ke){if(!He(this,W)){Ct(this,W,ke);for(const De of He(this,W))it(this,we,pi).call(this,De.defaultPropertiesToUpdate)}}getId(){return He(this,Y).getId()}get currentLayer(){return He(this,j).get(He(this,U))}getLayer(ke){return He(this,j).get(ke)}get currentPageIndex(){return He(this,U)}addLayer(ke){He(this,j).set(ke.pageIndex,ke),He(this,Z)?ke.enable():ke.disable()}removeLayer(ke){He(this,j).delete(ke.pageIndex)}updateMode(ke,De=null){if(He(this,ae)!==ke){if(Ct(this,ae,ke),ke===u.AnnotationEditorType.NONE){this.setEditingState(!1),it(this,we,Mu).call(this);return}this.setEditingState(!0),it(this,we,Bu).call(this),this.unselectAll();for(const Re of He(this,j).values())Re.updateMode(ke);if(De){for(const Re of He(this,H).values())if(Re.annotationElementId===De){this.setSelected(Re),Re.enterInEditMode();break}}}}updateToolbar(ke){ke!==He(this,ae)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:ke})}updateParams(ke,De){if(He(this,W)){if(ke===u.AnnotationEditorParamsType.CREATE){this.currentLayer.addNewEditor(ke);return}for(const Re of He(this,V))Re.updateParams(ke,De);for(const Re of He(this,W))Re.updateDefaultParams(ke,De)}}enableWaiting(ke=!1){if(He(this,ee)!==ke){Ct(this,ee,ke);for(const De of He(this,j).values())ke?De.disableClick():De.enableClick(),De.div.classList.toggle("waiting",ke)}}getEditors(ke){const De=[];for(const Re of He(this,H).values())Re.pageIndex===ke&&De.push(Re);return De}getEditor(ke){return He(this,H).get(ke)}addEditor(ke){He(this,H).set(ke.id,ke)}removeEditor(ke){var De;He(this,H).delete(ke.id),this.unselect(ke),(!ke.annotationElementId||!He(this,N).has(ke.annotationElementId))&&((De=He(this,L))==null||De.remove(ke.id))}addDeletedAnnotationElement(ke){He(this,N).add(ke.annotationElementId),ke.deleted=!0}isDeletedAnnotationElement(ke){return He(this,N).has(ke)}removeDeletedAnnotationElement(ke){He(this,N).delete(ke.annotationElementId),ke.deleted=!1}setActiveEditor(ke){He(this,O)!==ke&&(Ct(this,O,ke),ke&&it(this,we,pi).call(this,ke.propertiesToUpdate))}toggleSelected(ke){if(He(this,V).has(ke)){He(this,V).delete(ke),ke.unselect(),it(this,we,In).call(this,{hasSelectedEditor:this.hasSelection});return}He(this,V).add(ke),ke.select(),it(this,we,pi).call(this,ke.propertiesToUpdate),it(this,we,In).call(this,{hasSelectedEditor:!0})}setSelected(ke){for(const De of He(this,V))De!==ke&&De.unselect();He(this,V).clear(),He(this,V).add(ke),ke.select(),it(this,we,pi).call(this,ke.propertiesToUpdate),it(this,we,In).call(this,{hasSelectedEditor:!0})}isSelected(ke){return He(this,V).has(ke)}unselect(ke){ke.unselect(),He(this,V).delete(ke),it(this,we,In).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return He(this,V).size!==0}undo(){He(this,F).undo(),it(this,we,In).call(this,{hasSomethingToUndo:He(this,F).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:it(this,we,gi).call(this)})}redo(){He(this,F).redo(),it(this,we,In).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:He(this,F).hasSomethingToRedo(),isEmpty:it(this,we,gi).call(this)})}addCommands(ke){He(this,F).add(ke),it(this,we,In).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:it(this,we,gi).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const ke=[...He(this,V)],De=()=>{for(const Ge of ke)Ge.remove()},Re=()=>{for(const Ge of ke)it(this,we,rl).call(this,Ge)};this.addCommands({cmd:De,undo:Re,mustExec:!0})}commitOrRemove(){var ke;(ke=He(this,O))==null||ke.commitOrRemove()}hasSomethingToControl(){return He(this,O)||this.hasSelection}selectAll(){for(const ke of He(this,V))ke.commit();it(this,we,nl).call(this,He(this,H).values())}unselectAll(){if(He(this,O)){He(this,O).commitOrRemove();return}if(this.hasSelection){for(const ke of He(this,V))ke.unselect();He(this,V).clear(),it(this,we,In).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(ke,De,Re=!1){if(Re||this.commitOrRemove(),!this.hasSelection)return;He(this,le)[0]+=ke,He(this,le)[1]+=De;const[Ge,Ve]=He(this,le),Xe=[...He(this,V)],We=1e3;He(this,xe)&&clearTimeout(He(this,xe)),Ct(this,xe,setTimeout(()=>{Ct(this,xe,null),He(this,le)[0]=He(this,le)[1]=0,this.addCommands({cmd:()=>{for(const ze of Xe)He(this,H).has(ze.id)&&ze.translateInPage(Ge,Ve)},undo:()=>{for(const ze of Xe)He(this,H).has(ze.id)&&ze.translateInPage(-Ge,-Ve)},mustExec:!1})},We));for(const ze of Xe)ze.translateInPage(ke,De)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),Ct(this,k,new Map);for(const ke of He(this,V))He(this,k).set(ke,{savedX:ke.x,savedY:ke.y,savedPageIndex:ke.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!He(this,k))return!1;this.disableUserSelect(!1);const ke=He(this,k);Ct(this,k,null);let De=!1;for(const[{x:Ge,y:Ve,pageIndex:Xe},We]of ke)We.newX=Ge,We.newY=Ve,We.newPageIndex=Xe,De||(De=Ge!==We.savedX||Ve!==We.savedY||Xe!==We.savedPageIndex);if(!De)return!1;const Re=(Ge,Ve,Xe,We)=>{if(He(this,H).has(Ge.id)){const ze=He(this,j).get(We);ze?Ge._setParentAndPosition(ze,Ve,Xe):(Ge.pageIndex=We,Ge.x=Ve,Ge.y=Xe)}};return this.addCommands({cmd:()=>{for(const[Ge,{newX:Ve,newY:Xe,newPageIndex:We}]of ke)Re(Ge,Ve,Xe,We)},undo:()=>{for(const[Ge,{savedX:Ve,savedY:Xe,savedPageIndex:We}]of ke)Re(Ge,Ve,Xe,We)},mustExec:!0}),!0}dragSelectedEditors(ke,De){if(He(this,k))for(const Re of He(this,k).keys())Re.drag(ke,De)}rebuild(ke){if(ke.parent===null){const De=this.getLayer(ke.pageIndex);De?(De.changeParent(ke),De.addOrRebuild(ke)):(this.addEditor(ke),this.addToAnnotationStorage(ke),ke.rebuild())}else ke.parent.addOrRebuild(ke)}isActive(ke){return He(this,O)===ke}getActive(){return He(this,O)}getMode(){return He(this,ae)}get imageManager(){return(0,u.shadow)(this,"imageManager",new b)}};O=new WeakMap,H=new WeakMap,j=new WeakMap,Q=new WeakMap,L=new WeakMap,F=new WeakMap,U=new WeakMap,N=new WeakMap,k=new WeakMap,W=new WeakMap,J=new WeakMap,q=new WeakMap,Y=new WeakMap,Z=new WeakMap,ee=new WeakMap,re=new WeakMap,ae=new WeakMap,V=new WeakMap,K=new WeakMap,te=new WeakMap,ie=new WeakMap,ce=new WeakMap,ge=new WeakMap,Se=new WeakMap,be=new WeakMap,me=new WeakMap,fe=new WeakMap,se=new WeakMap,oe=new WeakMap,de=new WeakMap,le=new WeakMap,xe=new WeakMap,Ce=new WeakMap,$e=new WeakMap,we=new WeakSet,Ru=function(){window.addEventListener("focus",He(this,ie)),window.addEventListener("blur",He(this,te))},Zs=function(){window.removeEventListener("focus",He(this,ie)),window.removeEventListener("blur",He(this,te))},Js=function(){window.addEventListener("keydown",He(this,be),{capture:!0})},mo=function(){window.removeEventListener("keydown",He(this,be),{capture:!0})},el=function(){document.addEventListener("copy",He(this,ce)),document.addEventListener("cut",He(this,ge)),document.addEventListener("paste",He(this,Se))},tl=function(){document.removeEventListener("copy",He(this,ce)),document.removeEventListener("cut",He(this,ge)),document.removeEventListener("paste",He(this,Se))},In=function(ke){Object.entries(ke).some(([Re,Ge])=>He(this,de)[Re]!==Ge)&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(He(this,de),ke)})},pi=function(ke){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:ke})},Bu=function(){if(!He(this,Z)){Ct(this,Z,!0);for(const ke of He(this,j).values())ke.enable()}},Mu=function(){if(this.unselectAll(),He(this,Z)){Ct(this,Z,!1);for(const ke of He(this,j).values())ke.disable()}},rl=function(ke){const De=He(this,j).get(ke.pageIndex);De?De.addOrRebuild(ke):this.addEditor(ke)},gi=function(){if(He(this,H).size===0)return!0;if(He(this,H).size===1)for(const ke of He(this,H).values())return ke.isEmpty();return!1},nl=function(ke){He(this,V).clear();for(const De of ke)De.isEmpty()||(He(this,V).add(De),De.select());it(this,we,In).call(this,{hasSelectedEditor:!0})},yr(Ye,"TRANSLATE_SMALL",1),yr(Ye,"TRANSLATE_BIG",10);let f=Ye;s.AnnotationEditorUIManager=f},(a,s,c)=>{var U,N,k,W,J,q,Y,Z,ee,re,ae,V,Fa,Na,al,Ao,vo,mi,Ai;Object.defineProperty(s,"__esModule",{value:!0}),s.StatTimer=s.RenderingCancelledException=s.PixelsPerInch=s.PageViewport=s.PDFDateString=s.DOMStandardFontDataFactory=s.DOMSVGFactory=s.DOMFilterFactory=s.DOMCanvasFactory=s.DOMCMapReaderFactory=void 0,s.deprecated=T,s.getColorValues=H,s.getCurrentTransform=j,s.getCurrentTransformInverse=Q,s.getFilenameFromUrl=I,s.getPdfFilenameFromUrl=P,s.getRGB=O,s.getXfaPageViewport=D,s.isDataScheme=S,s.isPdfFile=w,s.isValidFetchUrl=_,s.loadScript=R,s.noContextMenu=E,s.setLayerDimensions=L;var u=c(7),d=c(1);const p="http://www.w3.org/2000/svg",F=class F{};yr(F,"CSS",96),yr(F,"PDF",72),yr(F,"PDF_TO_CSS_UNITS",F.CSS/F.PDF);let v=F;s.PixelsPerInch=v;class A extends u.BaseFilterFactory{constructor({docId:se,ownerDocument:oe=globalThis.document}={}){super();vt(this,V);vt(this,U);vt(this,N);vt(this,k);vt(this,W);vt(this,J);vt(this,q);vt(this,Y);vt(this,Z);vt(this,ee);vt(this,re);vt(this,ae,0);Ct(this,k,se),Ct(this,W,oe)}addFilter(se){if(!se)return"none";let oe=He(this,V,Fa).get(se);if(oe)return oe;let de,le,xe,Ce;if(se.length===1){const Ae=se[0],pe=new Array(256);for(let he=0;he<256;he++)pe[he]=Ae[he]/255;Ce=de=le=xe=pe.join(",")}else{const[Ae,pe,he]=se,Ie=new Array(256),ye=new Array(256),Pe=new Array(256);for(let Le=0;Le<256;Le++)Ie[Le]=Ae[Le]/255,ye[Le]=pe[Le]/255,Pe[Le]=he[Le]/255;de=Ie.join(","),le=ye.join(","),xe=Pe.join(","),Ce=`${de}${le}${xe}`}if(oe=He(this,V,Fa).get(Ce),oe)return He(this,V,Fa).set(se,oe),oe;const $e=`g_${He(this,k)}_transfer_map_${hi(this,ae)._++}`,we=`url(#${$e})`;He(this,V,Fa).set(se,we),He(this,V,Fa).set(Ce,we);const Ee=it(this,V,Ao).call(this,$e);return it(this,V,mi).call(this,de,le,xe,Ee),we}addHCMFilter(se,oe){var pe;const de=`${se}-${oe}`;if(He(this,q)===de)return He(this,Y);if(Ct(this,q,de),Ct(this,Y,"none"),(pe=He(this,J))==null||pe.remove(),!se||!oe)return He(this,Y);const le=it(this,V,Ai).call(this,se);se=d.Util.makeHexColor(...le);const xe=it(this,V,Ai).call(this,oe);if(oe=d.Util.makeHexColor(...xe),He(this,V,Na).style.color="",se==="#000000"&&oe==="#ffffff"||se===oe)return He(this,Y);const Ce=new Array(256);for(let he=0;he<=255;he++){const Ie=he/255;Ce[he]=Ie<=.03928?Ie/12.92:((Ie+.055)/1.055)**2.4}const $e=Ce.join(","),we=`g_${He(this,k)}_hcm_filter`,Ee=Ct(this,Z,it(this,V,Ao).call(this,we));it(this,V,mi).call(this,$e,$e,$e,Ee),it(this,V,al).call(this,Ee);const Ae=(he,Ie)=>{const ye=le[he]/255,Pe=xe[he]/255,Le=new Array(Ie+1);for(let Ne=0;Ne<=Ie;Ne++)Le[Ne]=ye+Ne/Ie*(Pe-ye);return Le.join(",")};return it(this,V,mi).call(this,Ae(0,5),Ae(1,5),Ae(2,5),Ee),Ct(this,Y,`url(#${we})`),He(this,Y)}addHighlightHCMFilter(se,oe,de,le){var Pe;const xe=`${se}-${oe}-${de}-${le}`;if(He(this,ee)===xe)return He(this,re);if(Ct(this,ee,xe),Ct(this,re,"none"),(Pe=He(this,Z))==null||Pe.remove(),!se||!oe)return He(this,re);const[Ce,$e]=[se,oe].map(it(this,V,Ai).bind(this));let we=Math.round(.2126*Ce[0]+.7152*Ce[1]+.0722*Ce[2]),Ee=Math.round(.2126*$e[0]+.7152*$e[1]+.0722*$e[2]),[Ae,pe]=[de,le].map(it(this,V,Ai).bind(this));Ee<we&&([we,Ee,Ae,pe]=[Ee,we,pe,Ae]),He(this,V,Na).style.color="";const he=(Le,Ne,Me)=>{const Fe=new Array(256),_e=(Ee-we)/Me,je=Le/255,Ye=(Ne-Le)/(255*Me);let Te=0;for(let ke=0;ke<=Me;ke++){const De=Math.round(we+ke*_e),Re=je+ke*Ye;for(let Ge=Te;Ge<=De;Ge++)Fe[Ge]=Re;Te=De+1}for(let ke=Te;ke<256;ke++)Fe[ke]=Fe[Te-1];return Fe.join(",")},Ie=`g_${He(this,k)}_hcm_highlight_filter`,ye=Ct(this,Z,it(this,V,Ao).call(this,Ie));return it(this,V,al).call(this,ye),it(this,V,mi).call(this,he(Ae[0],pe[0],5),he(Ae[1],pe[1],5),he(Ae[2],pe[2],5),ye),Ct(this,re,`url(#${Ie})`),He(this,re)}destroy(se=!1){se&&(He(this,Y)||He(this,re))||(He(this,N)&&(He(this,N).parentNode.parentNode.remove(),Ct(this,N,null)),He(this,U)&&(He(this,U).clear(),Ct(this,U,null)),Ct(this,ae,0))}}U=new WeakMap,N=new WeakMap,k=new WeakMap,W=new WeakMap,J=new WeakMap,q=new WeakMap,Y=new WeakMap,Z=new WeakMap,ee=new WeakMap,re=new WeakMap,ae=new WeakMap,V=new WeakSet,Fa=function(){return He(this,U)||Ct(this,U,new Map)},Na=function(){if(!He(this,N)){const se=He(this,W).createElement("div"),{style:oe}=se;oe.visibility="hidden",oe.contain="strict",oe.width=oe.height=0,oe.position="absolute",oe.top=oe.left=0,oe.zIndex=-1;const de=He(this,W).createElementNS(p,"svg");de.setAttribute("width",0),de.setAttribute("height",0),Ct(this,N,He(this,W).createElementNS(p,"defs")),se.append(de),de.append(He(this,N)),He(this,W).body.append(se)}return He(this,N)},al=function(se){const oe=He(this,W).createElementNS(p,"feColorMatrix");oe.setAttribute("type","matrix"),oe.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),se.append(oe)},Ao=function(se){const oe=He(this,W).createElementNS(p,"filter");return oe.setAttribute("color-interpolation-filters","sRGB"),oe.setAttribute("id",se),He(this,V,Na).append(oe),oe},vo=function(se,oe,de){const le=He(this,W).createElementNS(p,oe);le.setAttribute("type","discrete"),le.setAttribute("tableValues",de),se.append(le)},mi=function(se,oe,de,le){const xe=He(this,W).createElementNS(p,"feComponentTransfer");le.append(xe),it(this,V,vo).call(this,xe,"feFuncR",se),it(this,V,vo).call(this,xe,"feFuncG",oe),it(this,V,vo).call(this,xe,"feFuncB",de)},Ai=function(se){return He(this,V,Na).style.color=se,O(getComputedStyle(He(this,V,Na)).getPropertyValue("color"))},s.DOMFilterFactory=A;class b extends u.BaseCanvasFactory{constructor({ownerDocument:fe=globalThis.document}={}){super(),this._document=fe}_createCanvas(fe,se){const oe=this._document.createElement("canvas");return oe.width=fe,oe.height=se,oe}}s.DOMCanvasFactory=b;async function g(me,fe=!1){if(_(me,document.baseURI)){const se=await fetch(me);if(!se.ok)throw new Error(se.statusText);return fe?new Uint8Array(await se.arrayBuffer()):(0,d.stringToBytes)(await se.text())}return new Promise((se,oe)=>{const de=new XMLHttpRequest;de.open("GET",me,!0),fe&&(de.responseType="arraybuffer"),de.onreadystatechange=()=>{if(de.readyState===XMLHttpRequest.DONE){if(de.status===200||de.status===0){let le;if(fe&&de.response?le=new Uint8Array(de.response):!fe&&de.responseText&&(le=(0,d.stringToBytes)(de.responseText)),le){se(le);return}}oe(new Error(de.statusText))}},de.send(null)})}class x extends u.BaseCMapReaderFactory{_fetchData(fe,se){return g(fe,this.isCompressed).then(oe=>({cMapData:oe,compressionType:se}))}}s.DOMCMapReaderFactory=x;class y extends u.BaseStandardFontDataFactory{_fetchData(fe){return g(fe,!0)}}s.DOMStandardFontDataFactory=y;class f extends u.BaseSVGFactory{_createSVG(fe){return document.createElementNS(p,fe)}}s.DOMSVGFactory=f;class m{constructor({viewBox:fe,scale:se,rotation:oe,offsetX:de=0,offsetY:le=0,dontFlip:xe=!1}){this.viewBox=fe,this.scale=se,this.rotation=oe,this.offsetX=de,this.offsetY=le;const Ce=(fe[2]+fe[0])/2,$e=(fe[3]+fe[1])/2;let we,Ee,Ae,pe;switch(oe%=360,oe<0&&(oe+=360),oe){case 180:we=-1,Ee=0,Ae=0,pe=1;break;case 90:we=0,Ee=1,Ae=1,pe=0;break;case 270:we=0,Ee=-1,Ae=-1,pe=0;break;case 0:we=1,Ee=0,Ae=0,pe=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}xe&&(Ae=-Ae,pe=-pe);let he,Ie,ye,Pe;we===0?(he=Math.abs($e-fe[1])*se+de,Ie=Math.abs(Ce-fe[0])*se+le,ye=(fe[3]-fe[1])*se,Pe=(fe[2]-fe[0])*se):(he=Math.abs(Ce-fe[0])*se+de,Ie=Math.abs($e-fe[1])*se+le,ye=(fe[2]-fe[0])*se,Pe=(fe[3]-fe[1])*se),this.transform=[we*se,Ee*se,Ae*se,pe*se,he-we*se*Ce-Ae*se*$e,Ie-Ee*se*Ce-pe*se*$e],this.width=ye,this.height=Pe}get rawDims(){const{viewBox:fe}=this;return(0,d.shadow)(this,"rawDims",{pageWidth:fe[2]-fe[0],pageHeight:fe[3]-fe[1],pageX:fe[0],pageY:fe[1]})}clone({scale:fe=this.scale,rotation:se=this.rotation,offsetX:oe=this.offsetX,offsetY:de=this.offsetY,dontFlip:le=!1}={}){return new m({viewBox:this.viewBox.slice(),scale:fe,rotation:se,offsetX:oe,offsetY:de,dontFlip:le})}convertToViewportPoint(fe,se){return d.Util.applyTransform([fe,se],this.transform)}convertToViewportRectangle(fe){const se=d.Util.applyTransform([fe[0],fe[1]],this.transform),oe=d.Util.applyTransform([fe[2],fe[3]],this.transform);return[se[0],se[1],oe[0],oe[1]]}convertToPdfPoint(fe,se){return d.Util.applyInverseTransform([fe,se],this.transform)}}s.PageViewport=m;class C extends d.BaseException{constructor(fe,se=0){super(fe,"RenderingCancelledException"),this.extraDelay=se}}s.RenderingCancelledException=C;function S(me){const fe=me.length;let se=0;for(;se<fe&&me[se].trim()==="";)se++;return me.substring(se,se+5).toLowerCase()==="data:"}function w(me){return typeof me=="string"&&/\.pdf$/i.test(me)}function I(me,fe=!1){return fe||([me]=me.split(/[#?]/,1)),me.substring(me.lastIndexOf("/")+1)}function P(me,fe="document.pdf"){if(typeof me!="string")return fe;if(S(me))return(0,d.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),fe;const se=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,oe=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,de=se.exec(me);let le=oe.exec(de[1])||oe.exec(de[2])||oe.exec(de[3]);if(le&&(le=le[0],le.includes("%")))try{le=oe.exec(decodeURIComponent(le))[0]}catch{}return le||fe}class ${constructor(){yr(this,"started",Object.create(null));yr(this,"times",[])}time(fe){fe in this.started&&(0,d.warn)(`Timer is already running for ${fe}`),this.started[fe]=Date.now()}timeEnd(fe){fe in this.started||(0,d.warn)(`Timer has not been started for ${fe}`),this.times.push({name:fe,start:this.started[fe],end:Date.now()}),delete this.started[fe]}toString(){const fe=[];let se=0;for(const{name:oe}of this.times)se=Math.max(oe.length,se);for(const{name:oe,start:de,end:le}of this.times)fe.push(`${oe.padEnd(se)} ${le-de}ms
|
58
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),a){var c=this.pos-1;this.invalidStringToken(c,"Invalid escape sequence in template string")}default:if(s>=48&&s<=55){var u=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],d=parseInt(u,8);return d>255&&(u=u.slice(0,-1),d=parseInt(u,8)),this.pos+=u.length-1,s=this.input.charCodeAt(this.pos),(u!=="0"||s===56||s===57)&&(this.strict||a)&&this.invalidStringToken(this.pos-1-u.length,a?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(d)}return isNewLine(s)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(s)}},pp.readHexChar=function(a){var s=this.pos,c=this.readInt(16,a);return c===null&&this.invalidStringToken(s,"Bad character escape sequence"),c},pp.readWord1=function(){this.containsEsc=!1;for(var a="",s=!0,c=this.pos,u=this.options.ecmaVersion>=6;this.pos<this.input.length;){var d=this.fullCharCodeAtPos();if(isIdentifierChar(d,u))this.pos+=d<=65535?1:2;else if(d===92){this.containsEsc=!0,a+=this.input.slice(c,this.pos);var p=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var v=this.readCodePoint();(s?isIdentifierStart:isIdentifierChar)(v,u)||this.invalidStringToken(p,"Invalid Unicode escape"),a+=codePointToString(v),c=this.pos}else break;s=!1}return a+this.input.slice(c,this.pos)},pp.readWord=function(){var a=this.readWord1(),s=types$1.name;return this.keywords.test(a)&&(s=keywords[a]),this.finishToken(s,a)};var version$2="8.14.1";Parser.acorn={Parser,version:version$2,defaultOptions:defaultOptions$1,Position,SourceLocation,getLineInfo,Node,TokenType,tokTypes:types$1,keywordTypes:keywords,TokContext,tokContexts:types$2,isIdentifierChar,isIdentifierStart,Token,isNewLine,lineBreak,lineBreakG,nonASCIIwhitespace};function parseExpressionAt(a,s,c){return Parser.parseExpressionAt(a,s,c)}const expressionCache=new Map,parseDataCache=new Map,parseData=a=>{const s=JSON.stringify(a);if(parseDataCache.has(s))return parseDataCache.get(s);const c=Object.fromEntries(Object.entries(a).map(([u,d])=>{if(typeof d=="string")try{const p=JSON.parse(d);return[u,p]}catch{return[u,d]}return[u,d]}));return parseDataCache.set(s,c),c},padZero=a=>String(a).padStart(2,"0"),formatDate=a=>`${a.getFullYear()}/${padZero(a.getMonth()+1)}/${padZero(a.getDate())}`,formatDateTime=a=>`${formatDate(a)} ${padZero(a.getHours())}:${padZero(a.getMinutes())}`,allowedGlobals={Math,String,Number,Boolean,Array,Object,Date,JSON,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent},validateAST=a=>{switch(a.type){case"Literal":case"Identifier":break;case"BinaryExpression":case"LogicalExpression":{const s=a;validateAST(s.left),validateAST(s.right);break}case"UnaryExpression":{validateAST(a.argument);break}case"ConditionalExpression":{const s=a;validateAST(s.test),validateAST(s.consequent),validateAST(s.alternate);break}case"MemberExpression":{const s=a;if(validateAST(s.object),s.computed)validateAST(s.property);else{const c=s.property.name;if(["constructor","__proto__","prototype"].includes(c))throw new Error("Access to prohibited property");if(typeof c=="string"&&["toLocaleString","valueOf"].includes(c))throw new Error(`Access to prohibited method: ${c}`)}break}case"CallExpression":{const s=a;validateAST(s.callee),s.arguments.forEach(validateAST);break}case"ArrayExpression":{a.elements.forEach(c=>{c&&validateAST(c)});break}case"ObjectExpression":{a.properties.forEach(c=>{const u=c;validateAST(u.key),validateAST(u.value)});break}case"ArrowFunctionExpression":{const s=a;s.params.forEach(c=>{if(c.type!=="Identifier")throw new Error("Only identifier parameters are supported in arrow functions");validateAST(c)}),validateAST(s.body);break}default:throw new Error(`Unsupported syntax in placeholder: ${a.type}`)}},evaluateAST=(a,s)=>{switch(a.type){case"Literal":return a.value;case"Identifier":{const c=a;if(Object.prototype.hasOwnProperty.call(s,c.name))return s[c.name];if(Object.prototype.hasOwnProperty.call(allowedGlobals,c.name))return allowedGlobals[c.name];throw new Error(`Undefined variable: ${c.name}`)}case"BinaryExpression":{const c=a,u=evaluateAST(c.left,s),d=evaluateAST(c.right,s);switch(c.operator){case"+":return u+d;case"-":return u-d;case"*":return u*d;case"/":return u/d;case"%":return u%d;case"**":return u**d;case"==":return u==d;case"!=":return u!=d;case"===":return u===d;case"!==":return u!==d;case"<":return u<d;case">":return u>d;case"<=":return u<=d;case">=":return u>=d;default:throw new Error(`Unsupported operator: ${c.operator}`)}}case"LogicalExpression":{const c=a,u=evaluateAST(c.left,s),d=evaluateAST(c.right,s);switch(c.operator){case"&&":return u&&d;case"||":return u||d;default:throw new Error(`Unsupported operator: ${c.operator}`)}}case"UnaryExpression":{const c=a,u=evaluateAST(c.argument,s);switch(c.operator){case"+":return+u;case"-":return-u;case"!":return!u;default:throw new Error(`Unsupported operator: ${c.operator}`)}}case"ConditionalExpression":{const c=a,u=evaluateAST(c.test,s);return evaluateAST(u?c.consequent:c.alternate,s)}case"MemberExpression":{const c=a,u=evaluateAST(c.object,s);let d;if(c.computed?d=evaluateAST(c.property,s):d=c.property.name,typeof d=="string"||typeof d=="number"){if(typeof d=="string"&&["constructor","__proto__","prototype"].includes(d))throw new Error("Access to prohibited property");return u[d]}else throw new Error("Invalid property access")}case"CallExpression":{const c=a,u=evaluateAST(c.callee,s),d=c.arguments.map(p=>evaluateAST(p,s));if(typeof u=="function")if(c.callee.type==="MemberExpression"){const p=c.callee,v=evaluateAST(p.object,s);if(v!==null&&(typeof v=="object"||typeof v=="number"||typeof v=="string"||typeof v=="boolean"))return u.call(v,...d);throw new Error("Invalid object in member function call")}else return u(...d);else throw new Error("Attempted to call a non-function")}case"ArrowFunctionExpression":{const c=a,u=c.params.map(p=>p.name),d=c.body;return(...p)=>{const v={...s};return u.forEach((A,b)=>{v[A]=p[b]}),evaluateAST(d,v)}}case"ArrayExpression":return a.elements.map(u=>u?evaluateAST(u,s):null);case"ObjectExpression":{const c=a,u={};return c.properties.forEach(d=>{const p=d;let v;if(p.key.type==="Identifier")v=p.key.name;else{const b=evaluateAST(p.key,s);if(typeof b!="string"&&typeof b!="number")throw new Error("Object property keys must be strings or numbers");v=String(b)}const A=evaluateAST(p.value,s);u[v]=A}),u}default:throw new Error(`Unsupported syntax in placeholder: ${a.type}`)}},evaluatePlaceholders=a=>{const{content:s,context:c}=a;let u="",d=0;for(;d<s.length;){const p=s.indexOf("{",d);if(p===-1){u+=s.slice(d);break}u+=s.slice(d,p);let v=1,A=p+1;for(;A<s.length&&v>0;)s[A]==="{"?v++:s[A]==="}"&&v--,A++;if(v===0){const b=s.slice(p+1,A-1).trim();if(expressionCache.has(b)){const g=expressionCache.get(b);try{const x=g(c);u+=String(x)}catch{u+=s.slice(p,A)}}else try{const g=parseExpressionAt(b,0,{ecmaVersion:"latest"});validateAST(g);const x=f=>evaluateAST(g,f);expressionCache.set(b,x);const y=x(c);u+=String(y)}catch{u+=s.slice(p,A)}d=A}else throw new Error("Invalid placeholder")}return u},replacePlaceholders=a=>{const{content:s,variables:c,schemas:u}=a;if(!s||typeof s!="string"||!s.includes("{")||!s.includes("}"))return s;const d=new Date,p=formatDate(d),v=formatDateTime(d),A={...Object.fromEntries(u.flat().map(x=>[x.name,x.readOnly&&x.content||""])),...c},b=parseData(A),g={date:p,dateTime:v,...b};return Object.entries(g).forEach(([x,y])=>{typeof y=="string"&&y.includes("{")&&y.includes("}")&&(g[x]=evaluatePlaceholders({content:y,context:g}))}),evaluatePlaceholders({content:s,context:g})},DEFAULT_LANG="en",DESTROYED_ERR_MSG="[@pdfme/ui] this instance is already destroyed",SELECTABLE_CLASSNAME="selectable",RULER_HEIGHT=30,PAGE_GAP=10,LEFT_SIDEBAR_WIDTH=45,RIGHT_SIDEBAR_WIDTH=400,BACKGROUND_COLOR="rgb(74, 74, 74)",DEFAULT_MAX_ZOOM=2,isff=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function addEvent$1(a,s,c,u){a.addEventListener?a.addEventListener(s,c,u):a.attachEvent&&a.attachEvent("on".concat(s),c)}function removeEvent$1(a,s,c,u){a.removeEventListener?a.removeEventListener(s,c,u):a.detachEvent&&a.detachEvent("on".concat(s),c)}function getMods(a,s){const c=s.slice(0,s.length-1);for(let u=0;u<c.length;u++)c[u]=a[c[u].toLowerCase()];return c}function getKeys$1(a){typeof a!="string"&&(a=""),a=a.replace(/\s/g,"");const s=a.split(",");let c=s.lastIndexOf("");for(;c>=0;)s[c-1]+=",",s.splice(c,1),c=s.lastIndexOf("");return s}function compareArray(a,s){const c=a.length>=s.length?a:s,u=a.length>=s.length?s:a;let d=!0;for(let p=0;p<c.length;p++)u.indexOf(c[p])===-1&&(d=!1);return d}const _keyMap={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":isff?173:189,"=":isff?61:187,";":isff?59:186,"'":222,"[":219,"]":221,"\\":220},_modifier={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},modifierMap={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_mods={16:!1,18:!1,17:!1,91:!1},_handlers={};for(let a=1;a<20;a++)_keyMap["f".concat(a)]=111+a;let _downKeys=[],winListendFocus=null,_scope="all";const elementEventMap=new Map,code=a=>_keyMap[a.toLowerCase()]||_modifier[a.toLowerCase()]||a.toUpperCase().charCodeAt(0),getKey$3=a=>Object.keys(_keyMap).find(s=>_keyMap[s]===a),getModifier=a=>Object.keys(_modifier).find(s=>_modifier[s]===a);function setScope(a){_scope=a||"all"}function getScope(){return _scope||"all"}function getPressedKeyCodes(){return _downKeys.slice(0)}function getPressedKeyString(){return _downKeys.map(a=>getKey$3(a)||getModifier(a)||String.fromCharCode(a))}function getAllKeyCodes(){const a=[];return Object.keys(_handlers).forEach(s=>{_handlers[s].forEach(c=>{let{key:u,scope:d,mods:p,shortcut:v}=c;a.push({scope:d,shortcut:v,mods:p,keys:u.split("+").map(A=>code(A))})})}),a}function filter$1(a){const s=a.target||a.srcElement,{tagName:c}=s;let u=!0;const d=c==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(s.type);return(s.isContentEditable||(d||c==="TEXTAREA"||c==="SELECT")&&!s.readOnly)&&(u=!1),u}function isPressed(a){return typeof a=="string"&&(a=code(a)),_downKeys.indexOf(a)!==-1}function deleteScope(a,s){let c,u;a||(a=getScope());for(const d in _handlers)if(Object.prototype.hasOwnProperty.call(_handlers,d))for(c=_handlers[d],u=0;u<c.length;)c[u].scope===a?c.splice(u,1).forEach(v=>{let{element:A}=v;return removeKeyEvent(A)}):u++;getScope()===a&&setScope(s||"all")}function clearModifier(a){let s=a.keyCode||a.which||a.charCode;const c=_downKeys.indexOf(s);if(c>=0&&_downKeys.splice(c,1),a.key&&a.key.toLowerCase()==="meta"&&_downKeys.splice(0,_downKeys.length),(s===93||s===224)&&(s=91),s in _mods){_mods[s]=!1;for(const u in _modifier)_modifier[u]===s&&(hotkeys$1[u]=!1)}}function unbind(a){if(typeof a>"u")Object.keys(_handlers).forEach(d=>{Array.isArray(_handlers[d])&&_handlers[d].forEach(p=>eachUnbind(p)),delete _handlers[d]}),removeKeyEvent(null);else if(Array.isArray(a))a.forEach(d=>{d.key&&eachUnbind(d)});else if(typeof a=="object")a.key&&eachUnbind(a);else if(typeof a=="string"){for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];let[d,p]=c;typeof d=="function"&&(p=d,d=""),eachUnbind({key:a,scope:d,method:p,splitKey:"+"})}}const eachUnbind=a=>{let{key:s,scope:c,method:u,splitKey:d="+"}=a;getKeys$1(s).forEach(v=>{const A=v.split(d),b=A.length,g=A[b-1],x=g==="*"?"*":code(g);if(!_handlers[x])return;c||(c=getScope());const y=b>1?getMods(_modifier,A):[],f=[];_handlers[x]=_handlers[x].filter(m=>{const S=(u?m.method===u:!0)&&m.scope===c&&compareArray(m.mods,y);return S&&f.push(m.element),!S}),f.forEach(m=>removeKeyEvent(m))})};function eventHandler(a,s,c,u){if(s.element!==u)return;let d;if(s.scope===c||s.scope==="all"){d=s.mods.length>0;for(const p in _mods)Object.prototype.hasOwnProperty.call(_mods,p)&&(!_mods[p]&&s.mods.indexOf(+p)>-1||_mods[p]&&s.mods.indexOf(+p)===-1)&&(d=!1);(s.mods.length===0&&!_mods[16]&&!_mods[18]&&!_mods[17]&&!_mods[91]||d||s.shortcut==="*")&&(s.keys=[],s.keys=s.keys.concat(_downKeys),s.method(a,s)===!1&&(a.preventDefault?a.preventDefault():a.returnValue=!1,a.stopPropagation&&a.stopPropagation(),a.cancelBubble&&(a.cancelBubble=!0)))}}function dispatch(a,s){const c=_handlers["*"];let u=a.keyCode||a.which||a.charCode;if(!hotkeys$1.filter.call(this,a))return;if((u===93||u===224)&&(u=91),_downKeys.indexOf(u)===-1&&u!==229&&_downKeys.push(u),["metaKey","ctrlKey","altKey","shiftKey"].forEach(A=>{const b=modifierMap[A];a[A]&&_downKeys.indexOf(b)===-1?_downKeys.push(b):!a[A]&&_downKeys.indexOf(b)>-1?_downKeys.splice(_downKeys.indexOf(b),1):A==="metaKey"&&a[A]&&(_downKeys=_downKeys.filter(g=>g in modifierMap||g===u))}),u in _mods){_mods[u]=!0;for(const A in _modifier)_modifier[A]===u&&(hotkeys$1[A]=!0);if(!c)return}for(const A in _mods)Object.prototype.hasOwnProperty.call(_mods,A)&&(_mods[A]=a[modifierMap[A]]);a.getModifierState&&!(a.altKey&&!a.ctrlKey)&&a.getModifierState("AltGraph")&&(_downKeys.indexOf(17)===-1&&_downKeys.push(17),_downKeys.indexOf(18)===-1&&_downKeys.push(18),_mods[17]=!0,_mods[18]=!0);const d=getScope();if(c)for(let A=0;A<c.length;A++)c[A].scope===d&&(a.type==="keydown"&&c[A].keydown||a.type==="keyup"&&c[A].keyup)&&eventHandler(a,c[A],d,s);if(!(u in _handlers))return;const p=_handlers[u],v=p.length;for(let A=0;A<v;A++)if((a.type==="keydown"&&p[A].keydown||a.type==="keyup"&&p[A].keyup)&&p[A].key){const b=p[A],{splitKey:g}=b,x=b.key.split(g),y=[];for(let f=0;f<x.length;f++)y.push(code(x[f]));y.sort().join("")===_downKeys.sort().join("")&&eventHandler(a,b,d,s)}}function hotkeys$1(a,s,c){_downKeys=[];const u=getKeys$1(a);let d=[],p="all",v=document,A=0,b=!1,g=!0,x="+",y=!1,f=!1;for(c===void 0&&typeof s=="function"&&(c=s),Object.prototype.toString.call(s)==="[object Object]"&&(s.scope&&(p=s.scope),s.element&&(v=s.element),s.keyup&&(b=s.keyup),s.keydown!==void 0&&(g=s.keydown),s.capture!==void 0&&(y=s.capture),typeof s.splitKey=="string"&&(x=s.splitKey),s.single===!0&&(f=!0)),typeof s=="string"&&(p=s),f&&unbind(a,p);A<u.length;A++)a=u[A].split(x),d=[],a.length>1&&(d=getMods(_modifier,a)),a=a[a.length-1],a=a==="*"?"*":code(a),a in _handlers||(_handlers[a]=[]),_handlers[a].push({keyup:b,keydown:g,scope:p,mods:d,shortcut:u[A],method:c,key:u[A],splitKey:x,element:v});if(typeof v<"u"&&window){if(!elementEventMap.has(v)){const m=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return dispatch(S,v)},C=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;dispatch(S,v),clearModifier(S)};elementEventMap.set(v,{keydownListener:m,keyupListenr:C,capture:y}),addEvent$1(v,"keydown",m,y),addEvent$1(v,"keyup",C,y)}if(!winListendFocus){const m=()=>{_downKeys=[]};winListendFocus={listener:m,capture:y},addEvent$1(window,"focus",m,y)}}}function trigger(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(_handlers).forEach(c=>{_handlers[c].filter(d=>d.scope===s&&d.shortcut===a).forEach(d=>{d&&d.method&&d.method()})})}function removeKeyEvent(a){const s=Object.values(_handlers).flat();if(s.findIndex(u=>{let{element:d}=u;return d===a})<0){const{keydownListener:u,keyupListenr:d,capture:p}=elementEventMap.get(a)||{};u&&d&&(removeEvent$1(a,"keyup",d,p),removeEvent$1(a,"keydown",u,p),elementEventMap.delete(a))}if((s.length<=0||elementEventMap.size<=0)&&(Object.keys(elementEventMap).forEach(d=>{const{keydownListener:p,keyupListenr:v,capture:A}=elementEventMap.get(d)||{};p&&v&&(removeEvent$1(d,"keyup",v,A),removeEvent$1(d,"keydown",p,A),elementEventMap.delete(d))}),elementEventMap.clear(),Object.keys(_handlers).forEach(d=>delete _handlers[d]),winListendFocus)){const{listener:d,capture:p}=winListendFocus;removeEvent$1(window,"focus",d,p),winListendFocus=null}}const _api={getPressedKeyString,setScope,getScope,deleteScope,getPressedKeyCodes,getAllKeyCodes,isPressed,filter:filter$1,trigger,unbind,keyMap:_keyMap,modifier:_modifier,modifierMap};for(const a in _api)Object.prototype.hasOwnProperty.call(_api,a)&&(hotkeys$1[a]=_api[a]);if(typeof window<"u"){const a=window.hotkeys;hotkeys$1.noConflict=s=>(s&&window.hotkeys===hotkeys$1&&(window.hotkeys=a),hotkeys$1),window.hotkeys=hotkeys$1}var reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports),React$1=_mergeNamespaces({__proto__:null,default:React},[reactExports]);function commonjsRequire(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredPdf;function requirePdf(){return hasRequiredPdf||(hasRequiredPdf=1,function(module,exports){(function(s,c){module.exports=s.pdfjsLib=c()})(globalThis,()=>(()=>{var __webpack_modules__=[,(a,s)=>{var Ne;Object.defineProperty(s,"__esModule",{value:!0}),s.VerbosityLevel=s.Util=s.UnknownErrorException=s.UnexpectedResponseException=s.TextRenderingMode=s.RenderingIntentFlag=s.PromiseCapability=s.PermissionFlag=s.PasswordResponses=s.PasswordException=s.PageActionEventType=s.OPS=s.MissingPDFException=s.MAX_IMAGE_SIZE_TO_CACHE=s.LINE_FACTOR=s.LINE_DESCENT_FACTOR=s.InvalidPDFException=s.ImageKind=s.IDENTITY_MATRIX=s.FormatError=s.FeatureTest=s.FONT_IDENTITY_MATRIX=s.DocumentActionEventType=s.CMapCompressionType=s.BaseException=s.BASELINE_FACTOR=s.AnnotationType=s.AnnotationReplyType=s.AnnotationPrefix=s.AnnotationMode=s.AnnotationFlag=s.AnnotationFieldFlag=s.AnnotationEditorType=s.AnnotationEditorPrefix=s.AnnotationEditorParamsType=s.AnnotationBorderStyleType=s.AnnotationActionEventType=s.AbortException=void 0,s.assert=k,s.bytesToString=ie,s.createValidAbsoluteUrl=J,s.getModificationDate=Ae,s.getUuid=Pe,s.getVerbosityLevel=L,s.info=F,s.isArrayBuffer=we,s.isArrayEqual=Ee,s.isNodeJS=void 0,s.normalizeUnicode=ye,s.objectFromMap=be,s.objectSize=Se,s.setVerbosityLevel=Q,s.shadow=q,s.string32=ge,s.stringToBytes=ce,s.stringToPDFString=xe,s.stringToUTF8String=Ce,s.unreachable=N,s.utf8StringToString=$e,s.warn=U;const c=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");s.isNodeJS=c;const u=[1,0,0,1,0,0];s.IDENTITY_MATRIX=u;const d=[.001,0,0,.001,0,0];s.FONT_IDENTITY_MATRIX=d;const p=1e7;s.MAX_IMAGE_SIZE_TO_CACHE=p;const v=1.35;s.LINE_FACTOR=v;const A=.35;s.LINE_DESCENT_FACTOR=A;const b=A/v;s.BASELINE_FACTOR=b;const g={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};s.RenderingIntentFlag=g;const x={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};s.AnnotationMode=x;const y="pdfjs_internal_editor_";s.AnnotationEditorPrefix=y;const f={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};s.AnnotationEditorType=f;const m={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};s.AnnotationEditorParamsType=m;const C={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};s.PermissionFlag=C;const S={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};s.TextRenderingMode=S;const w={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};s.ImageKind=w;const I={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};s.AnnotationType=I;const P={GROUP:"Group",REPLY:"R"};s.AnnotationReplyType=P;const $={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};s.AnnotationFlag=$;const _={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};s.AnnotationFieldFlag=_;const E={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};s.AnnotationBorderStyleType=E;const R={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};s.AnnotationActionEventType=R;const T={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};s.DocumentActionEventType=T;const B={O:"PageOpen",C:"PageClose"};s.PageActionEventType=B;const M={ERRORS:0,WARNINGS:1,INFOS:5};s.VerbosityLevel=M;const D={NONE:0,BINARY:1};s.CMapCompressionType=D;const O={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};s.OPS=O;const H={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};s.PasswordResponses=H;let j=M.WARNINGS;function Q(Me){Number.isInteger(Me)&&(j=Me)}function L(){return j}function F(Me){j>=M.INFOS&&console.log(`Info: ${Me}`)}function U(Me){j>=M.WARNINGS&&console.log(`Warning: ${Me}`)}function N(Me){throw new Error(Me)}function k(Me,Fe){Me||N(Fe)}function W(Me){switch(Me==null?void 0:Me.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function J(Me,Fe=null,_e=null){if(!Me)return null;try{if(_e&&typeof Me=="string"){if(_e.addDefaultProtocol&&Me.startsWith("www.")){const Ye=Me.match(/\./g);(Ye==null?void 0:Ye.length)>=2&&(Me=`http://${Me}`)}if(_e.tryConvertEncoding)try{Me=Ce(Me)}catch{}}const je=Fe?new URL(Me,Fe):new URL(Me);if(W(je))return je}catch{}return null}function q(Me,Fe,_e,je=!1){return Object.defineProperty(Me,Fe,{value:_e,enumerable:!je,configurable:!0,writable:!1}),_e}const Y=function(){function Fe(_e,je){this.constructor===Fe&&N("Cannot initialize BaseException."),this.message=_e,this.name=je}return Fe.prototype=new Error,Fe.constructor=Fe,Fe}();s.BaseException=Y;class Z extends Y{constructor(Fe,_e){super(Fe,"PasswordException"),this.code=_e}}s.PasswordException=Z;class ee extends Y{constructor(Fe,_e){super(Fe,"UnknownErrorException"),this.details=_e}}s.UnknownErrorException=ee;class re extends Y{constructor(Fe){super(Fe,"InvalidPDFException")}}s.InvalidPDFException=re;class ae extends Y{constructor(Fe){super(Fe,"MissingPDFException")}}s.MissingPDFException=ae;class V extends Y{constructor(Fe,_e){super(Fe,"UnexpectedResponseException"),this.status=_e}}s.UnexpectedResponseException=V;class K extends Y{constructor(Fe){super(Fe,"FormatError")}}s.FormatError=K;class te extends Y{constructor(Fe){super(Fe,"AbortException")}}s.AbortException=te;function ie(Me){(typeof Me!="object"||(Me==null?void 0:Me.length)===void 0)&&N("Invalid argument for bytesToString");const Fe=Me.length,_e=8192;if(Fe<_e)return String.fromCharCode.apply(null,Me);const je=[];for(let Ye=0;Ye<Fe;Ye+=_e){const Te=Math.min(Ye+_e,Fe),ke=Me.subarray(Ye,Te);je.push(String.fromCharCode.apply(null,ke))}return je.join("")}function ce(Me){typeof Me!="string"&&N("Invalid argument for stringToBytes");const Fe=Me.length,_e=new Uint8Array(Fe);for(let je=0;je<Fe;++je)_e[je]=Me.charCodeAt(je)&255;return _e}function ge(Me){return String.fromCharCode(Me>>24&255,Me>>16&255,Me>>8&255,Me&255)}function Se(Me){return Object.keys(Me).length}function be(Me){const Fe=Object.create(null);for(const[_e,je]of Me)Fe[_e]=je;return Fe}function me(){const Me=new Uint8Array(4);return Me[0]=1,new Uint32Array(Me.buffer,0,1)[0]===1}function fe(){try{return new Function(""),!0}catch{return!1}}class se{static get isLittleEndian(){return q(this,"isLittleEndian",me())}static get isEvalSupported(){return q(this,"isEvalSupported",fe())}static get isOffscreenCanvasSupported(){return q(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator>"u"?q(this,"platform",{isWin:!1,isMac:!1}):q(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){var Fe,_e;return q(this,"isCSSRoundSupported",(_e=(Fe=globalThis.CSS)==null?void 0:Fe.supports)==null?void 0:_e.call(Fe,"width: round(1.5px, 1px)"))}}s.FeatureTest=se;const oe=[...Array(256).keys()].map(Me=>Me.toString(16).padStart(2,"0"));class de{static makeHexColor(Fe,_e,je){return`#${oe[Fe]}${oe[_e]}${oe[je]}`}static scaleMinMax(Fe,_e){let je;Fe[0]?(Fe[0]<0&&(je=_e[0],_e[0]=_e[1],_e[1]=je),_e[0]*=Fe[0],_e[1]*=Fe[0],Fe[3]<0&&(je=_e[2],_e[2]=_e[3],_e[3]=je),_e[2]*=Fe[3],_e[3]*=Fe[3]):(je=_e[0],_e[0]=_e[2],_e[2]=je,je=_e[1],_e[1]=_e[3],_e[3]=je,Fe[1]<0&&(je=_e[2],_e[2]=_e[3],_e[3]=je),_e[2]*=Fe[1],_e[3]*=Fe[1],Fe[2]<0&&(je=_e[0],_e[0]=_e[1],_e[1]=je),_e[0]*=Fe[2],_e[1]*=Fe[2]),_e[0]+=Fe[4],_e[1]+=Fe[4],_e[2]+=Fe[5],_e[3]+=Fe[5]}static transform(Fe,_e){return[Fe[0]*_e[0]+Fe[2]*_e[1],Fe[1]*_e[0]+Fe[3]*_e[1],Fe[0]*_e[2]+Fe[2]*_e[3],Fe[1]*_e[2]+Fe[3]*_e[3],Fe[0]*_e[4]+Fe[2]*_e[5]+Fe[4],Fe[1]*_e[4]+Fe[3]*_e[5]+Fe[5]]}static applyTransform(Fe,_e){const je=Fe[0]*_e[0]+Fe[1]*_e[2]+_e[4],Ye=Fe[0]*_e[1]+Fe[1]*_e[3]+_e[5];return[je,Ye]}static applyInverseTransform(Fe,_e){const je=_e[0]*_e[3]-_e[1]*_e[2],Ye=(Fe[0]*_e[3]-Fe[1]*_e[2]+_e[2]*_e[5]-_e[4]*_e[3])/je,Te=(-Fe[0]*_e[1]+Fe[1]*_e[0]+_e[4]*_e[1]-_e[5]*_e[0])/je;return[Ye,Te]}static getAxialAlignedBoundingBox(Fe,_e){const je=this.applyTransform(Fe,_e),Ye=this.applyTransform(Fe.slice(2,4),_e),Te=this.applyTransform([Fe[0],Fe[3]],_e),ke=this.applyTransform([Fe[2],Fe[1]],_e);return[Math.min(je[0],Ye[0],Te[0],ke[0]),Math.min(je[1],Ye[1],Te[1],ke[1]),Math.max(je[0],Ye[0],Te[0],ke[0]),Math.max(je[1],Ye[1],Te[1],ke[1])]}static inverseTransform(Fe){const _e=Fe[0]*Fe[3]-Fe[1]*Fe[2];return[Fe[3]/_e,-Fe[1]/_e,-Fe[2]/_e,Fe[0]/_e,(Fe[2]*Fe[5]-Fe[4]*Fe[3])/_e,(Fe[4]*Fe[1]-Fe[5]*Fe[0])/_e]}static singularValueDecompose2dScale(Fe){const _e=[Fe[0],Fe[2],Fe[1],Fe[3]],je=Fe[0]*_e[0]+Fe[1]*_e[2],Ye=Fe[0]*_e[1]+Fe[1]*_e[3],Te=Fe[2]*_e[0]+Fe[3]*_e[2],ke=Fe[2]*_e[1]+Fe[3]*_e[3],De=(je+ke)/2,Re=Math.sqrt((je+ke)**2-4*(je*ke-Te*Ye))/2,Ge=De+Re||1,Ve=De-Re||1;return[Math.sqrt(Ge),Math.sqrt(Ve)]}static normalizeRect(Fe){const _e=Fe.slice(0);return Fe[0]>Fe[2]&&(_e[0]=Fe[2],_e[2]=Fe[0]),Fe[1]>Fe[3]&&(_e[1]=Fe[3],_e[3]=Fe[1]),_e}static intersect(Fe,_e){const je=Math.max(Math.min(Fe[0],Fe[2]),Math.min(_e[0],_e[2])),Ye=Math.min(Math.max(Fe[0],Fe[2]),Math.max(_e[0],_e[2]));if(je>Ye)return null;const Te=Math.max(Math.min(Fe[1],Fe[3]),Math.min(_e[1],_e[3])),ke=Math.min(Math.max(Fe[1],Fe[3]),Math.max(_e[1],_e[3]));return Te>ke?null:[je,Te,Ye,ke]}static bezierBoundingBox(Fe,_e,je,Ye,Te,ke,De,Re){const Ge=[],Ve=[[],[]];let Xe,We,ze,Qe,et,Ze,qe,Je;for(let bt=0;bt<2;++bt){if(bt===0?(We=6*Fe-12*je+6*Te,Xe=-3*Fe+9*je-9*Te+3*De,ze=3*je-3*Fe):(We=6*_e-12*Ye+6*ke,Xe=-3*_e+9*Ye-9*ke+3*Re,ze=3*Ye-3*_e),Math.abs(Xe)<1e-12){if(Math.abs(We)<1e-12)continue;Qe=-ze/We,0<Qe&&Qe<1&&Ge.push(Qe);continue}qe=We*We-4*ze*Xe,Je=Math.sqrt(qe),!(qe<0)&&(et=(-We+Je)/(2*Xe),0<et&&et<1&&Ge.push(et),Ze=(-We-Je)/(2*Xe),0<Ze&&Ze<1&&Ge.push(Ze))}let ot=Ge.length,nt;const ct=ot;for(;ot--;)Qe=Ge[ot],nt=1-Qe,Ve[0][ot]=nt*nt*nt*Fe+3*nt*nt*Qe*je+3*nt*Qe*Qe*Te+Qe*Qe*Qe*De,Ve[1][ot]=nt*nt*nt*_e+3*nt*nt*Qe*Ye+3*nt*Qe*Qe*ke+Qe*Qe*Qe*Re;return Ve[0][ct]=Fe,Ve[1][ct]=_e,Ve[0][ct+1]=De,Ve[1][ct+1]=Re,Ve[0].length=Ve[1].length=ct+2,[Math.min(...Ve[0]),Math.min(...Ve[1]),Math.max(...Ve[0]),Math.max(...Ve[1])]}}s.Util=de;const le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function xe(Me){if(Me[0]>="ï"){let _e;if(Me[0]==="þ"&&Me[1]==="ÿ"?_e="utf-16be":Me[0]==="ÿ"&&Me[1]==="þ"?_e="utf-16le":Me[0]==="ï"&&Me[1]==="»"&&Me[2]==="¿"&&(_e="utf-8"),_e)try{const je=new TextDecoder(_e,{fatal:!0}),Ye=ce(Me);return je.decode(Ye)}catch(je){U(`stringToPDFString: "${je}".`)}}const Fe=[];for(let _e=0,je=Me.length;_e<je;_e++){const Ye=le[Me.charCodeAt(_e)];Fe.push(Ye?String.fromCharCode(Ye):Me.charAt(_e))}return Fe.join("")}function Ce(Me){return decodeURIComponent(escape(Me))}function $e(Me){return unescape(encodeURIComponent(Me))}function we(Me){return typeof Me=="object"&&(Me==null?void 0:Me.byteLength)!==void 0}function Ee(Me,Fe){if(Me.length!==Fe.length)return!1;for(let _e=0,je=Me.length;_e<je;_e++)if(Me[_e]!==Fe[_e])return!1;return!0}function Ae(Me=new Date){return[Me.getUTCFullYear().toString(),(Me.getUTCMonth()+1).toString().padStart(2,"0"),Me.getUTCDate().toString().padStart(2,"0"),Me.getUTCHours().toString().padStart(2,"0"),Me.getUTCMinutes().toString().padStart(2,"0"),Me.getUTCSeconds().toString().padStart(2,"0")].join("")}class pe{constructor(){vt(this,Ne,!1);this.promise=new Promise((Fe,_e)=>{this.resolve=je=>{Ct(this,Ne,!0),Fe(je)},this.reject=je=>{Ct(this,Ne,!0),_e(je)}})}get settled(){return He(this,Ne)}}Ne=new WeakMap,s.PromiseCapability=pe;let he=null,Ie=null;function ye(Me){return he||(he=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,Ie=new Map([["ſt","ſt"]])),Me.replaceAll(he,(Fe,_e,je)=>_e?_e.normalize("NFKC"):Ie.get(je))}function Pe(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const Me=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(Me);else for(let Fe=0;Fe<32;Fe++)Me[Fe]=Math.floor(Math.random()*255);return ie(Me)}const Le="pdfjs_internal_id_";s.AnnotationPrefix=Le},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{var a,c,u,d,ka,po,A,b,g,x,y,f,m,C,S,go,I,P,Gs,_,E;Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;const DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;function getDocument(T){if(typeof T=="string"||T instanceof URL?T={url:T}:(0,_util.isArrayBuffer)(T)&&(T={data:T}),typeof T!="object")throw new Error("Invalid parameter in getDocument, need parameter object.");if(!T.url&&!T.data&&!T.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const B=new PDFDocumentLoadingTask,{docId:M}=B,D=T.url?getUrlProp(T.url):null,O=T.data?getDataProp(T.data):null,H=T.httpHeaders||null,j=T.withCredentials===!0,Q=T.password??null,L=T.range instanceof PDFDataRangeTransport?T.range:null,F=Number.isInteger(T.rangeChunkSize)&&T.rangeChunkSize>0?T.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let U=T.worker instanceof PDFWorker?T.worker:null;const N=T.verbosity,k=typeof T.docBaseUrl=="string"&&!(0,_display_utils.isDataScheme)(T.docBaseUrl)?T.docBaseUrl:null,W=typeof T.cMapUrl=="string"?T.cMapUrl:null,J=T.cMapPacked!==!1,q=T.CMapReaderFactory||DefaultCMapReaderFactory,Y=typeof T.standardFontDataUrl=="string"?T.standardFontDataUrl:null,Z=T.StandardFontDataFactory||DefaultStandardFontDataFactory,ee=T.stopAtErrors!==!0,re=Number.isInteger(T.maxImageSize)&&T.maxImageSize>-1?T.maxImageSize:-1,ae=T.isEvalSupported!==!1,V=typeof T.isOffscreenCanvasSupported=="boolean"?T.isOffscreenCanvasSupported:!_util.isNodeJS,K=Number.isInteger(T.canvasMaxAreaInBytes)?T.canvasMaxAreaInBytes:-1,te=typeof T.disableFontFace=="boolean"?T.disableFontFace:_util.isNodeJS,ie=T.fontExtraProperties===!0,ce=T.enableXfa===!0,ge=T.ownerDocument||globalThis.document,Se=T.disableRange===!0,be=T.disableStream===!0,me=T.disableAutoFetch===!0,fe=T.pdfBug===!0,se=L?L.length:T.length??NaN,oe=typeof T.useSystemFonts=="boolean"?T.useSystemFonts:!_util.isNodeJS&&!te,de=typeof T.useWorkerFetch=="boolean"?T.useWorkerFetch:q===_display_utils.DOMCMapReaderFactory&&Z===_display_utils.DOMStandardFontDataFactory&&W&&Y&&(0,_display_utils.isValidFetchUrl)(W,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(Y,document.baseURI),le=T.canvasFactory||new DefaultCanvasFactory({ownerDocument:ge}),xe=T.filterFactory||new DefaultFilterFactory({docId:M,ownerDocument:ge}),Ce=null;(0,_util.setVerbosityLevel)(N);const $e={canvasFactory:le,filterFactory:xe};if(de||($e.cMapReaderFactory=new q({baseUrl:W,isCompressed:J}),$e.standardFontDataFactory=new Z({baseUrl:Y})),!U){const Ae={verbosity:N,port:_worker_options.GlobalWorkerOptions.workerPort};U=Ae.port?PDFWorker.fromPort(Ae):new PDFWorker(Ae),B._worker=U}const we={docId:M,apiVersion:"3.11.174",data:O,password:Q,disableAutoFetch:me,rangeChunkSize:F,length:se,docBaseUrl:k,enableXfa:ce,evaluatorOptions:{maxImageSize:re,disableFontFace:te,ignoreErrors:ee,isEvalSupported:ae,isOffscreenCanvasSupported:V,canvasMaxAreaInBytes:K,fontExtraProperties:ie,useSystemFonts:oe,cMapUrl:de?W:null,standardFontDataUrl:de?Y:null}},Ee={ignoreErrors:ee,isEvalSupported:ae,disableFontFace:te,fontExtraProperties:ie,enableXfa:ce,ownerDocument:ge,disableAutoFetch:me,pdfBug:fe,styleElement:Ce};return U.promise.then(function(){if(B.destroyed)throw new Error("Loading aborted");const Ae=_fetchDocument(U,we),pe=new Promise(function(he){let Ie;L?Ie=new _transport_stream.PDFDataTransportStream({length:se,initialData:L.initialData,progressiveDone:L.progressiveDone,contentDispositionFilename:L.contentDispositionFilename,disableRange:Se,disableStream:be},L):O||(Ie=(Pe=>_util.isNodeJS?new _displayNode_stream.PDFNodeStream(Pe):(0,_display_utils.isValidFetchUrl)(Pe.url)?new _displayFetch_stream.PDFFetchStream(Pe):new _displayNetwork.PDFNetworkStream(Pe))({url:D,length:se,httpHeaders:H,withCredentials:j,rangeChunkSize:F,disableRange:Se,disableStream:be})),he(Ie)});return Promise.all([Ae,pe]).then(function([he,Ie]){if(B.destroyed)throw new Error("Loading aborted");const ye=new _message_handler.MessageHandler(M,he,U.port),Pe=new WorkerTransport(ye,B,Ie,Ee,$e);B._transport=Pe,ye.send("Ready",null)})}).catch(B._capability.reject),B}async function _fetchDocument(T,B){if(T.destroyed)throw new Error("Worker was destroyed");const M=await T.messageHandler.sendWithPromise("GetDocRequest",B,B.data?[B.data.buffer]:null);if(T.destroyed)throw new Error("Worker was destroyed");return M}function getUrlProp(T){if(T instanceof URL)return T.href;try{return new URL(T,window.location).href}catch{if(_util.isNodeJS&&typeof T=="string")return T}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(T){if(_util.isNodeJS&&typeof Buffer<"u"&&T instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(T instanceof Uint8Array&&T.byteLength===T.buffer.byteLength)return T;if(typeof T=="string")return(0,_util.stringToBytes)(T);if(typeof T=="object"&&!isNaN(T==null?void 0:T.length)||(0,_util.isArrayBuffer)(T))return new Uint8Array(T);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}const s=class s{constructor(){this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId=`d${hi(s,a)._++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var B,M,D;this.destroyed=!0;try{(B=this._worker)!=null&&B.port&&(this._worker._pendingDestroy=!0),await((M=this._transport)==null?void 0:M.destroy())}catch(O){throw(D=this._worker)!=null&&D.port&&delete this._worker._pendingDestroy,O}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}};a=new WeakMap,vt(s,a,0);let PDFDocumentLoadingTask=s;exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(B,M,D=!1,O=null){this.length=B,this.initialData=M,this.progressiveDone=D,this.contentDispositionFilename=O,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(B){this._rangeListeners.push(B)}addProgressListener(B){this._progressListeners.push(B)}addProgressiveReadListener(B){this._progressiveReadListeners.push(B)}addProgressiveDoneListener(B){this._progressiveDoneListeners.push(B)}onDataRange(B,M){for(const D of this._rangeListeners)D(B,M)}onDataProgress(B,M){this._readyCapability.promise.then(()=>{for(const D of this._progressListeners)D(B,M)})}onDataProgressiveRead(B){this._readyCapability.promise.then(()=>{for(const M of this._progressiveReadListeners)M(B)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const B of this._progressiveDoneListeners)B()})}transportReady(){this._readyCapability.resolve()}requestDataRange(B,M){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(B,M){this._pdfInfo=B,this._transport=M,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then(D=>{if(!D)return D;const O=[];for(const H in D)O.push(...D[H]);return O}))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(B){return this._transport.getPage(B)}getPageIndex(B){return this._transport.getPageIndex(B)}getDestinations(){return this._transport.getDestinations()}getDestination(B){return this._transport.getDestination(B)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(B=!1){return this._transport.startCleanup(B||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(B,M,D,O=!1){vt(this,d);vt(this,c,null);vt(this,u,!1);this._pageIndex=B,this._pageInfo=M,this._transport=D,this._stats=O?new _display_utils.StatTimer:null,this._pdfBug=O,this.commonObjs=D.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:B,rotation:M=this.rotate,offsetX:D=0,offsetY:O=0,dontFlip:H=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:B,rotation:M,offsetX:D,offsetY:O,dontFlip:H})}getAnnotations({intent:B="display"}={}){const M=this._transport.getRenderingIntent(B);return this._transport.getAnnotations(this._pageIndex,M.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var B;return((B=this._transport._htmlForXfa)==null?void 0:B.children[this._pageIndex])||null}render({canvasContext:B,viewport:M,intent:D="display",annotationMode:O=_util.AnnotationMode.ENABLE,transform:H=null,background:j=null,optionalContentConfigPromise:Q=null,annotationCanvasMap:L=null,pageColors:F=null,printAnnotationStorage:U=null}){var Z,ee;(Z=this._stats)==null||Z.time("Overall");const N=this._transport.getRenderingIntent(D,O,U);Ct(this,u,!1),it(this,d,po).call(this),Q||(Q=this._transport.getOptionalContentConfig());let k=this._intentStates.get(N.cacheKey);k||(k=Object.create(null),this._intentStates.set(N.cacheKey,k)),k.streamReaderCancelTimeout&&(clearTimeout(k.streamReaderCancelTimeout),k.streamReaderCancelTimeout=null);const W=!!(N.renderingIntent&_util.RenderingIntentFlag.PRINT);k.displayReadyCapability||(k.displayReadyCapability=new _util.PromiseCapability,k.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(ee=this._stats)==null||ee.time("Page Request"),this._pumpOperatorList(N));const J=re=>{var ae,V;k.renderTasks.delete(q),(this._maybeCleanupAfterRender||W)&&Ct(this,u,!0),it(this,d,ka).call(this,!W),re?(q.capability.reject(re),this._abortOperatorList({intentState:k,reason:re instanceof Error?re:new Error(re)})):q.capability.resolve(),(ae=this._stats)==null||ae.timeEnd("Rendering"),(V=this._stats)==null||V.timeEnd("Overall")},q=new InternalRenderTask({callback:J,params:{canvasContext:B,viewport:M,transform:H,background:j},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:L,operatorList:k.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!W,pdfBug:this._pdfBug,pageColors:F});(k.renderTasks||(k.renderTasks=new Set)).add(q);const Y=q.task;return Promise.all([k.displayReadyCapability.promise,Q]).then(([re,ae])=>{var V;if(this.destroyed){J();return}(V=this._stats)==null||V.time("Rendering"),q.initializeGraphics({transparency:re,optionalContentConfig:ae}),q.operatorListChanged()}).catch(J),Y}getOperatorList({intent:B="display",annotationMode:M=_util.AnnotationMode.ENABLE,printAnnotationStorage:D=null}={}){var L;function O(){j.operatorList.lastChunk&&(j.opListReadCapability.resolve(j.operatorList),j.renderTasks.delete(Q))}const H=this._transport.getRenderingIntent(B,M,D,!0);let j=this._intentStates.get(H.cacheKey);j||(j=Object.create(null),this._intentStates.set(H.cacheKey,j));let Q;return j.opListReadCapability||(Q=Object.create(null),Q.operatorListChanged=O,j.opListReadCapability=new _util.PromiseCapability,(j.renderTasks||(j.renderTasks=new Set)).add(Q),j.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(L=this._stats)==null||L.time("Page Request"),this._pumpOperatorList(H)),j.opListReadCapability.promise}streamTextContent({includeMarkedContent:B=!1,disableNormalization:M=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:B===!0,disableNormalization:M===!0},{highWaterMark:100,size(O){return O.items.length}})}getTextContent(B={}){if(this._transport._htmlForXfa)return this.getXfa().then(D=>_xfa_text.XfaText.textContent(D));const M=this.streamTextContent(B);return new Promise(function(D,O){function H(){j.read().then(function({value:L,done:F}){if(F){D(Q);return}Object.assign(Q.styles,L.styles),Q.items.push(...L.items),H()},O)}const j=M.getReader(),Q={items:[],styles:Object.create(null)};H()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const B=[];for(const M of this._intentStates.values())if(this._abortOperatorList({intentState:M,reason:new Error("Page was destroyed."),force:!0}),!M.opListReadCapability)for(const D of M.renderTasks)B.push(D.completed),D.cancel();return this.objs.clear(),Ct(this,u,!1),it(this,d,po).call(this),Promise.all(B)}cleanup(B=!1){Ct(this,u,!0);const M=it(this,d,ka).call(this,!1);return B&&M&&this._stats&&(this._stats=new _display_utils.StatTimer),M}_startRenderPage(B,M){var O,H;const D=this._intentStates.get(M);D&&((O=this._stats)==null||O.timeEnd("Page Request"),(H=D.displayReadyCapability)==null||H.resolve(B))}_renderPageChunk(B,M){for(let D=0,O=B.length;D<O;D++)M.operatorList.fnArray.push(B.fnArray[D]),M.operatorList.argsArray.push(B.argsArray[D]);M.operatorList.lastChunk=B.lastChunk,M.operatorList.separateAnnots=B.separateAnnots;for(const D of M.renderTasks)D.operatorListChanged();B.lastChunk&&it(this,d,ka).call(this,!0)}_pumpOperatorList({renderingIntent:B,cacheKey:M,annotationStorageSerializable:D}){const{map:O,transfers:H}=D,Q=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:B,cacheKey:M,annotationStorage:O},H).getReader(),L=this._intentStates.get(M);L.streamReader=Q;const F=()=>{Q.read().then(({value:U,done:N})=>{if(N){L.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(U,L),F())},U=>{if(L.streamReader=null,!this._transport.destroyed){if(L.operatorList){L.operatorList.lastChunk=!0;for(const N of L.renderTasks)N.operatorListChanged();it(this,d,ka).call(this,!0)}if(L.displayReadyCapability)L.displayReadyCapability.reject(U);else if(L.opListReadCapability)L.opListReadCapability.reject(U);else throw U}})};F()}_abortOperatorList({intentState:B,reason:M,force:D=!1}){if(B.streamReader){if(B.streamReaderCancelTimeout&&(clearTimeout(B.streamReaderCancelTimeout),B.streamReaderCancelTimeout=null),!D){if(B.renderTasks.size>0)return;if(M instanceof _display_utils.RenderingCancelledException){let O=RENDERING_CANCELLED_TIMEOUT;M.extraDelay>0&&M.extraDelay<1e3&&(O+=M.extraDelay),B.streamReaderCancelTimeout=setTimeout(()=>{B.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:B,reason:M,force:!0})},O);return}}if(B.streamReader.cancel(new _util.AbortException(M.message)).catch(()=>{}),B.streamReader=null,!this._transport.destroyed){for(const[O,H]of this._intentStates)if(H===B){this._intentStates.delete(O);break}this.cleanup()}}}get stats(){return this._stats}}c=new WeakMap,u=new WeakMap,d=new WeakSet,ka=function(B=!1){if(it(this,d,po).call(this),!He(this,u)||this.destroyed)return!1;if(B)return Ct(this,c,setTimeout(()=>{Ct(this,c,null),it(this,d,ka).call(this,!1)},DELAYED_CLEANUP_TIMEOUT)),!1;for(const{renderTasks:M,operatorList:D}of this._intentStates.values())if(M.size>0||!D.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),Ct(this,u,!1),!0},po=function(){He(this,c)&&(clearTimeout(He(this,c)),Ct(this,c,null))},exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){vt(this,A,new Set);vt(this,b,Promise.resolve())}postMessage(B,M){const D={data:structuredClone(B,M?{transfer:M}:null)};He(this,b).then(()=>{for(const O of He(this,A))O.call(this,D)})}addEventListener(B,M){He(this,A).add(M)}removeEventListener(B,M){He(this,A).delete(M)}terminate(){He(this,A).clear()}}A=new WeakMap,b=new WeakMap,exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};exports.PDFWorkerUtil=PDFWorkerUtil;{if(_util.isNodeJS&&typeof commonjsRequire=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"){const T=(g=document==null?void 0:document.currentScript)==null?void 0:g.src;T&&(PDFWorkerUtil.fallbackWorkerSrc=T.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(T,B){let M;try{if(M=new URL(T),!M.origin||M.origin==="null")return!1}catch{return!1}const D=new URL(B,M);return M.origin===D.origin},PDFWorkerUtil.createCDNWrapper=function(T){const B=`importScripts("${T}");`;return URL.createObjectURL(new Blob([B]))}}const _PDFWorker=class _PDFWorker{constructor({name:T=null,port:B=null,verbosity:M=(0,_util.getVerbosityLevel)()}={}){var D;if(this.name=T,this.destroyed=!1,this.verbosity=M,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,B){if((D=He(_PDFWorker,x))!=null&&D.has(B))throw new Error("Cannot use more than one PDFWorker per port.");(He(_PDFWorker,x)||Ct(_PDFWorker,x,new WeakMap)).set(B,this),this._initializeFromPort(B);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(T){this._port=T,this._messageHandler=new _message_handler.MessageHandler("main","worker",T),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!_PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:T}=_PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,T)||(T=PDFWorkerUtil.createCDNWrapper(new URL(T,window.location).href));const B=new Worker(T),M=new _message_handler.MessageHandler("main","worker",B),D=()=>{B.removeEventListener("error",O),M.destroy(),B.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},O=()=>{this._webWorker||D()};B.addEventListener("error",O),M.on("test",j=>{if(B.removeEventListener("error",O),this.destroyed){D();return}j?(this._messageHandler=M,this._port=B,this._webWorker=B,this._readyCapability.resolve(),M.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),M.destroy(),B.terminate())}),M.on("ready",j=>{if(B.removeEventListener("error",O),this.destroyed){D();return}try{H()}catch{this._setupFakeWorker()}});const H=()=>{const j=new Uint8Array;M.send("test",j,[j.buffer])};H();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),_PDFWorker._setupFakeWorkerGlobal.then(T=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const B=new LoopbackPort;this._port=B;const M=`fake${PDFWorkerUtil.fakeWorkerId++}`,D=new _message_handler.MessageHandler(M+"_worker",M,B);T.setup(D,B);const O=new _message_handler.MessageHandler(M,M+"_worker",B);this._messageHandler=O,this._readyCapability.resolve(),O.send("configure",{verbosity:this.verbosity})}).catch(T=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${T.message}".`))})}destroy(){var T;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),(T=He(_PDFWorker,x))==null||T.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(T){var M;if(!(T!=null&&T.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const B=(M=He(this,x))==null?void 0:M.get(T.port);if(B){if(B._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return B}return new _PDFWorker(T)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){var T;try{return((T=globalThis.pdfjsWorker)==null?void 0:T.WorkerMessageHandler)||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS&&typeof commonjsRequire=="function"){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}};x=new WeakMap,vt(_PDFWorker,x);let PDFWorker=_PDFWorker;exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(B,M,D,O,H){vt(this,S);vt(this,y,new Map);vt(this,f,new Map);vt(this,m,new Map);vt(this,C,null);this.messageHandler=B,this.loadingTask=M,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:O.ownerDocument,styleElement:O.styleElement}),this._params=O,this.canvasFactory=H.canvasFactory,this.filterFactory=H.filterFactory,this.cMapReaderFactory=H.cMapReaderFactory,this.standardFontDataFactory=H.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=D,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(B,M=_util.AnnotationMode.ENABLE,D=null,O=!1){let H=_util.RenderingIntentFlag.DISPLAY,j=_annotation_storage.SerializableEmpty;switch(B){case"any":H=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":H=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${B}`)}switch(M){case _util.AnnotationMode.DISABLE:H+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:H+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:H+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,j=(H&_util.RenderingIntentFlag.PRINT&&D instanceof _annotation_storage.PrintAnnotationStorage?D:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${M}`)}return O&&(H+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:H,cacheKey:`${H}_${j.hash}`,annotationStorageSerializable:j}}destroy(){var D;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,(D=He(this,C))==null||D.reject(new Error("Worker was destroyed during onPassword callback"));const B=[];for(const O of He(this,f).values())B.push(O._destroy());He(this,f).clear(),He(this,m).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const M=this.messageHandler.sendWithPromise("Terminate",null);return B.push(M),Promise.all(B).then(()=>{var O;this.commonObjs.clear(),this.fontLoader.clear(),He(this,y).clear(),this.filterFactory.destroy(),(O=this._networkStream)==null||O.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:B,loadingTask:M}=this;B.on("GetReader",(D,O)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=H=>{this._lastProgress={loaded:H.loaded,total:H.total}},O.onPull=()=>{this._fullReader.read().then(function({value:H,done:j}){if(j){O.close();return}(0,_util.assert)(H instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),O.enqueue(new Uint8Array(H),1,[H])}).catch(H=>{O.error(H)})},O.onCancel=H=>{this._fullReader.cancel(H),O.ready.catch(j=>{if(!this.destroyed)throw j})}}),B.on("ReaderHeadersReady",D=>{const O=new _util.PromiseCapability,H=this._fullReader;return H.headersReady.then(()=>{var j;(!H.isStreamingSupported||!H.isRangeSupported)&&(this._lastProgress&&((j=M.onProgress)==null||j.call(M,this._lastProgress)),H.onProgress=Q=>{var L;(L=M.onProgress)==null||L.call(M,{loaded:Q.loaded,total:Q.total})}),O.resolve({isStreamingSupported:H.isStreamingSupported,isRangeSupported:H.isRangeSupported,contentLength:H.contentLength})},O.reject),O.promise}),B.on("GetRangeReader",(D,O)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const H=this._networkStream.getRangeReader(D.begin,D.end);if(!H){O.close();return}O.onPull=()=>{H.read().then(function({value:j,done:Q}){if(Q){O.close();return}(0,_util.assert)(j instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),O.enqueue(new Uint8Array(j),1,[j])}).catch(j=>{O.error(j)})},O.onCancel=j=>{H.cancel(j),O.ready.catch(Q=>{if(!this.destroyed)throw Q})}}),B.on("GetDoc",({pdfInfo:D})=>{this._numPages=D.numPages,this._htmlForXfa=D.htmlForXfa,delete D.htmlForXfa,M._capability.resolve(new PDFDocumentProxy(D,this))}),B.on("DocException",function(D){let O;switch(D.name){case"PasswordException":O=new _util.PasswordException(D.message,D.code);break;case"InvalidPDFException":O=new _util.InvalidPDFException(D.message);break;case"MissingPDFException":O=new _util.MissingPDFException(D.message);break;case"UnexpectedResponseException":O=new _util.UnexpectedResponseException(D.message,D.status);break;case"UnknownErrorException":O=new _util.UnknownErrorException(D.message,D.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}M._capability.reject(O)}),B.on("PasswordRequest",D=>{if(Ct(this,C,new _util.PromiseCapability),M.onPassword){const O=H=>{H instanceof Error?He(this,C).reject(H):He(this,C).resolve({password:H})};try{M.onPassword(O,D.code)}catch(H){He(this,C).reject(H)}}else He(this,C).reject(new _util.PasswordException(D.message,D.code));return He(this,C).promise}),B.on("DataLoaded",D=>{var O;(O=M.onProgress)==null||O.call(M,{loaded:D.length,total:D.length}),this.downloadInfoCapability.resolve(D)}),B.on("StartRenderPage",D=>{if(this.destroyed)return;He(this,f).get(D.pageIndex)._startRenderPage(D.transparency,D.cacheKey)}),B.on("commonobj",([D,O,H])=>{var j;if(!this.destroyed&&!this.commonObjs.has(D))switch(O){case"Font":const Q=this._params;if("error"in H){const U=H.error;(0,_util.warn)(`Error during font loading: ${U}`),this.commonObjs.resolve(D,U);break}const L=Q.pdfBug&&((j=globalThis.FontInspector)!=null&&j.enabled)?(U,N)=>globalThis.FontInspector.fontAdded(U,N):null,F=new _font_loader.FontFaceObject(H,{isEvalSupported:Q.isEvalSupported,disableFontFace:Q.disableFontFace,ignoreErrors:Q.ignoreErrors,inspectFont:L});this.fontLoader.bind(F).catch(U=>B.sendWithPromise("FontFallback",{id:D})).finally(()=>{!Q.fontExtraProperties&&F.data&&(F.data=null),this.commonObjs.resolve(D,F)});break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(D,H);break;default:throw new Error(`Got unknown common object type ${O}`)}}),B.on("obj",([D,O,H,j])=>{var L;if(this.destroyed)return;const Q=He(this,f).get(O);if(!Q.objs.has(D))switch(H){case"Image":if(Q.objs.resolve(D,j),j){let F;if(j.bitmap){const{width:U,height:N}=j;F=U*N*4}else F=((L=j.data)==null?void 0:L.length)||0;F>_util.MAX_IMAGE_SIZE_TO_CACHE&&(Q._maybeCleanupAfterRender=!0)}break;case"Pattern":Q.objs.resolve(D,j);break;default:throw new Error(`Got unknown object type ${H}`)}}),B.on("DocProgress",D=>{var O;this.destroyed||(O=M.onProgress)==null||O.call(M,{loaded:D.loaded,total:D.total})}),B.on("FetchBuiltInCMap",D=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(D):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),B.on("FetchStandardFontData",D=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(D):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var D;this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:B,transfers:M}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:B,filename:((D=this._fullReader)==null?void 0:D.filename)??null},M).finally(()=>{this.annotationStorage.resetModified()})}getPage(B){if(!Number.isInteger(B)||B<=0||B>this._numPages)return Promise.reject(new Error("Invalid page request."));const M=B-1,D=He(this,m).get(M);if(D)return D;const O=this.messageHandler.sendWithPromise("GetPage",{pageIndex:M}).then(H=>{if(this.destroyed)throw new Error("Transport destroyed");const j=new PDFPageProxy(M,H,this,this._params.pdfBug);return He(this,f).set(M,j),j});return He(this,m).set(M,O),O}getPageIndex(B){return typeof B!="object"||B===null||!Number.isInteger(B.num)||B.num<0||!Number.isInteger(B.gen)||B.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:B.num,gen:B.gen})}getAnnotations(B,M){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:B,intent:M})}getFieldObjects(){return it(this,S,go).call(this,"GetFieldObjects")}hasJSActions(){return it(this,S,go).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(B){return typeof B!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:B})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return it(this,S,go).call(this,"GetDocJSActions")}getPageJSActions(B){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:B})}getStructTree(B){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:B})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(B=>new _optional_content_config.OptionalContentConfig(B))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const B="GetMetadata",M=He(this,y).get(B);if(M)return M;const D=this.messageHandler.sendWithPromise(B,null).then(O=>{var H,j;return{info:O[0],metadata:O[1]?new _metadata.Metadata(O[1]):null,contentDispositionFilename:((H=this._fullReader)==null?void 0:H.filename)??null,contentLength:((j=this._fullReader)==null?void 0:j.contentLength)??null}});return He(this,y).set(B,D),D}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(B=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const M of He(this,f).values())if(!M.cleanup())throw new Error(`startCleanup: Page ${M.pageNumber} is currently rendering.`);this.commonObjs.clear(),B||this.fontLoader.clear(),He(this,y).clear(),this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:B,enableXfa:M}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:B,enableXfa:M})}}y=new WeakMap,f=new WeakMap,m=new WeakMap,C=new WeakMap,S=new WeakSet,go=function(B,M=null){const D=He(this,y).get(B);if(D)return D;const O=this.messageHandler.sendWithPromise(B,M);return He(this,y).set(B,O),O};class PDFObjects{constructor(){vt(this,P);vt(this,I,Object.create(null))}get(B,M=null){if(M){const O=it(this,P,Gs).call(this,B);return O.capability.promise.then(()=>M(O.data)),null}const D=He(this,I)[B];if(!(D!=null&&D.capability.settled))throw new Error(`Requesting object that isn't resolved yet ${B}.`);return D.data}has(B){const M=He(this,I)[B];return(M==null?void 0:M.capability.settled)||!1}resolve(B,M=null){const D=it(this,P,Gs).call(this,B);D.data=M,D.capability.resolve()}clear(){var B;for(const M in He(this,I)){const{data:D}=He(this,I)[M];(B=D==null?void 0:D.bitmap)==null||B.close()}Ct(this,I,Object.create(null))}}I=new WeakMap,P=new WeakSet,Gs=function(B){var M;return(M=He(this,I))[B]||(M[B]={capability:new _util.PromiseCapability,data:null})};class RenderTask{constructor(B){vt(this,_,null);Ct(this,_,B),this.onContinue=null}get promise(){return He(this,_).capability.promise}cancel(B=0){He(this,_).cancel(null,B)}get separateAnnots(){const{separateAnnots:B}=He(this,_).operatorList;if(!B)return!1;const{annotationCanvasMap:M}=He(this,_);return B.form||B.canvas&&(M==null?void 0:M.size)>0}}_=new WeakMap,exports.RenderTask=RenderTask;const R=class R{constructor({callback:B,params:M,objs:D,commonObjs:O,annotationCanvasMap:H,operatorList:j,pageIndex:Q,canvasFactory:L,filterFactory:F,useRequestAnimationFrame:U=!1,pdfBug:N=!1,pageColors:k=null}){this.callback=B,this.params=M,this.objs=D,this.commonObjs=O,this.annotationCanvasMap=H,this.operatorListIdx=null,this.operatorList=j,this._pageIndex=Q,this.canvasFactory=L,this.filterFactory=F,this._pdfBug=N,this.pageColors=k,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=U===!0&&typeof window<"u",this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=M.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:B=!1,optionalContentConfig:M}){var Q,L;if(this.cancelled)return;if(this._canvas){if(He(R,E).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");He(R,E).add(this._canvas)}this._pdfBug&&((Q=globalThis.StepperManager)!=null&&Q.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:D,viewport:O,transform:H,background:j}=this.params;this.gfx=new _canvas.CanvasGraphics(D,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:M},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:H,viewport:O,transparency:B,background:j}),this.operatorListIdx=0,this.graphicsReady=!0,(L=this.graphicsReadyCallback)==null||L.call(this)}cancel(B=null,M=0){var D;this.running=!1,this.cancelled=!0,(D=this.gfx)==null||D.endDrawing(),He(R,E).delete(this._canvas),this.callback(B||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,M))}operatorListChanged(){var B;if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}(B=this.stepper)==null||B.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),He(R,E).delete(this._canvas),this.callback())))}};E=new WeakMap,vt(R,E,new WeakSet);let InternalRenderTask=R;const version="3.11.174";exports.version=version;const build="ce8716743";exports.build=build},(a,s,c)=>{var g,x,y,Su,m;Object.defineProperty(s,"__esModule",{value:!0}),s.SerializableEmpty=s.PrintAnnotationStorage=s.AnnotationStorage=void 0;var u=c(1),d=c(4),p=c(8);const v=Object.freeze({map:null,hash:"",transfers:void 0});s.SerializableEmpty=v;class A{constructor(){vt(this,y);vt(this,g,!1);vt(this,x,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(S,w){const I=He(this,x).get(S);return I===void 0?w:Object.assign(w,I)}getRawValue(S){return He(this,x).get(S)}remove(S){if(He(this,x).delete(S),He(this,x).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const w of He(this,x).values())if(w instanceof d.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(S,w){const I=He(this,x).get(S);let P=!1;if(I!==void 0)for(const[$,_]of Object.entries(w))I[$]!==_&&(P=!0,I[$]=_);else P=!0,He(this,x).set(S,w);P&&it(this,y,Su).call(this),w instanceof d.AnnotationEditor&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(w.constructor._type)}has(S){return He(this,x).has(S)}getAll(){return He(this,x).size>0?(0,u.objectFromMap)(He(this,x)):null}setAll(S){for(const[w,I]of Object.entries(S))this.setValue(w,I)}get size(){return He(this,x).size}resetModified(){He(this,g)&&(Ct(this,g,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new b(this)}get serializable(){if(He(this,x).size===0)return v;const S=new Map,w=new p.MurmurHash3_64,I=[],P=Object.create(null);let $=!1;for(const[_,E]of He(this,x)){const R=E instanceof d.AnnotationEditor?E.serialize(!1,P):E;R&&(S.set(_,R),w.update(`${_}:${JSON.stringify(R)}`),$||($=!!R.bitmap))}if($)for(const _ of S.values())_.bitmap&&I.push(_.bitmap);return S.size>0?{map:S,hash:w.hexdigest(),transfers:I}:v}}g=new WeakMap,x=new WeakMap,y=new WeakSet,Su=function(){He(this,g)||(Ct(this,g,!0),typeof this.onSetModified=="function"&&this.onSetModified())},s.AnnotationStorage=A;class b extends A{constructor(w){super();vt(this,m);const{map:I,hash:P,transfers:$}=w.serializable,_=structuredClone(I,$?{transfer:$}:null);Ct(this,m,{map:_,hash:P,transfers:$})}get print(){(0,u.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return He(this,m)}}m=new WeakMap,s.PrintAnnotationStorage=b},(a,s,c)=>{var b,g,x,y,f,m,C,S,w,I,P,$,_,E,R,Vs,Qs,M,qs,Ys,$u,Iu,_u,Ks,Pu;Object.defineProperty(s,"__esModule",{value:!0}),s.AnnotationEditor=void 0;var u=c(5),d=c(1),p=c(6);const U=class U{constructor(k){vt(this,R);vt(this,b,"");vt(this,g,!1);vt(this,x,null);vt(this,y,null);vt(this,f,null);vt(this,m,!1);vt(this,C,null);vt(this,S,this.focusin.bind(this));vt(this,w,this.focusout.bind(this));vt(this,I,!1);vt(this,P,!1);vt(this,$,!1);yr(this,"_initialOptions",Object.create(null));yr(this,"_uiManager",null);yr(this,"_focusEventsAllowed",!0);yr(this,"_l10nPromise",null);vt(this,_,!1);vt(this,E,U._zIndex++);this.constructor===U&&(0,d.unreachable)("Cannot initialize AnnotationEditor."),this.parent=k.parent,this.id=k.id,this.width=this.height=null,this.pageIndex=k.parent.pageIndex,this.name=k.name,this.div=null,this._uiManager=k.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=k.isCentered,this._structTreeParentId=null;const{rotation:W,rawDims:{pageWidth:J,pageHeight:q,pageX:Y,pageY:Z}}=this.parent.viewport;this.rotation=W,this.pageRotation=(360+W-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[J,q],this.pageTranslation=[Y,Z];const[ee,re]=this.parentDimensions;this.x=k.x/ee,this.y=k.y/re,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,d.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(k){const W=new A({id:k.parent.getNextId(),parent:k.parent,uiManager:k._uiManager});W.annotationElementId=k.annotationElementId,W.deleted=!0,W._uiManager.addToAnnotationStorage(W)}static initialize(k,W=null){if(U._l10nPromise||(U._l10nPromise=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map(q=>[q,k.get(q)]))),W!=null&&W.strings)for(const q of W.strings)U._l10nPromise.set(q,k.get(q));if(U._borderLineWidth!==-1)return;const J=getComputedStyle(document.documentElement);U._borderLineWidth=parseFloat(J.getPropertyValue("--outline-width"))||0}static updateDefaultParams(k,W){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(k){return!1}static paste(k,W){(0,d.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return He(this,_)}set _isDraggable(k){var W;Ct(this,_,k),(W=this.div)==null||W.classList.toggle("draggable",k)}center(){const[k,W]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*W/(k*2),this.y+=this.width*k/(W*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*W/(k*2),this.y-=this.width*k/(W*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(k){this._uiManager.addCommands(k)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=He(this,E)}setParent(k){k!==null&&(this.pageIndex=k.pageIndex,this.pageDimensions=k.pageDimensions),this.parent=k}focusin(k){this._focusEventsAllowed&&(He(this,I)?Ct(this,I,!1):this.parent.setSelected(this))}focusout(k){var J;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const W=k.relatedTarget;W!=null&&W.closest(`#${this.id}`)||(k.preventDefault(),(J=this.parent)!=null&&J.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(k,W,J,q){const[Y,Z]=this.parentDimensions;[J,q]=this.screenToPageTranslation(J,q),this.x=(k+J)/Y,this.y=(W+q)/Z,this.fixAndSetPosition()}translate(k,W){it(this,R,Vs).call(this,this.parentDimensions,k,W)}translateInPage(k,W){it(this,R,Vs).call(this,this.pageDimensions,k,W),this.div.scrollIntoView({block:"nearest"})}drag(k,W){const[J,q]=this.parentDimensions;if(this.x+=k/J,this.y+=W/q,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:ae,y:V}=this.div.getBoundingClientRect();this.parent.findNewParent(this,ae,V)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:Y,y:Z}=this;const[ee,re]=it(this,R,Qs).call(this);Y+=ee,Z+=re,this.div.style.left=`${(100*Y).toFixed(2)}%`,this.div.style.top=`${(100*Z).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}fixAndSetPosition(){const[k,W]=this.pageDimensions;let{x:J,y:q,width:Y,height:Z}=this;switch(Y*=k,Z*=W,J*=k,q*=W,this.rotation){case 0:J=Math.max(0,Math.min(k-Y,J)),q=Math.max(0,Math.min(W-Z,q));break;case 90:J=Math.max(0,Math.min(k-Z,J)),q=Math.min(W,Math.max(Y,q));break;case 180:J=Math.min(k,Math.max(Y,J)),q=Math.min(W,Math.max(Z,q));break;case 270:J=Math.min(k,Math.max(Z,J)),q=Math.max(0,Math.min(W-Y,q));break}this.x=J/=k,this.y=q/=W;const[ee,re]=it(this,R,Qs).call(this);J+=ee,q+=re;const{style:ae}=this.div;ae.left=`${(100*J).toFixed(2)}%`,ae.top=`${(100*q).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(k,W){var J;return it(J=U,M,qs).call(J,k,W,this.parentRotation)}pageTranslationToScreen(k,W){var J;return it(J=U,M,qs).call(J,k,W,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:k,pageDimensions:[W,J]}=this,q=W*k,Y=J*k;return d.FeatureTest.isCSSRoundSupported?[Math.round(q),Math.round(Y)]:[q,Y]}setDims(k,W){var Y;const[J,q]=this.parentDimensions;this.div.style.width=`${(100*k/J).toFixed(2)}%`,He(this,m)||(this.div.style.height=`${(100*W/q).toFixed(2)}%`),(Y=He(this,x))==null||Y.classList.toggle("small",k<U.SMALL_EDITOR_SIZE||W<U.SMALL_EDITOR_SIZE)}fixDims(){const{style:k}=this.div,{height:W,width:J}=k,q=J.endsWith("%"),Y=!He(this,m)&&W.endsWith("%");if(q&&Y)return;const[Z,ee]=this.parentDimensions;q||(k.width=`${(100*parseFloat(J)/Z).toFixed(2)}%`),!He(this,m)&&!Y&&(k.height=`${(100*parseFloat(W)/ee).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}async addAltTextButton(){if(He(this,x))return;const k=Ct(this,x,document.createElement("button"));k.className="altText";const W=await U._l10nPromise.get("editor_alt_text_button_label");k.textContent=W,k.setAttribute("aria-label",W),k.tabIndex="0",k.addEventListener("contextmenu",p.noContextMenu),k.addEventListener("pointerdown",J=>J.stopPropagation()),k.addEventListener("click",J=>{J.preventDefault(),this._uiManager.editAltText(this)},{capture:!0}),k.addEventListener("keydown",J=>{J.target===k&&J.key==="Enter"&&(J.preventDefault(),this._uiManager.editAltText(this))}),it(this,R,Ks).call(this),this.div.append(k),U.SMALL_EDITOR_SIZE||(U.SMALL_EDITOR_SIZE=Math.min(128,Math.round(k.getBoundingClientRect().width*1.4)))}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:He(this,b),decorative:He(this,g)}}set altTextData({altText:k,decorative:W}){He(this,b)===k&&He(this,g)===W||(Ct(this,b,k),Ct(this,g,W),it(this,R,Ks).call(this))}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",He(this,S)),this.div.addEventListener("focusout",He(this,w));const[k,W]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*W/k).toFixed(2)}%`,this.div.style.maxHeight=`${(100*k/W).toFixed(2)}%`);const[J,q]=this.getInitialTranslation();return this.translate(J,q),(0,u.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(k){const{isMac:W}=d.FeatureTest.platform;if(k.button!==0||k.ctrlKey&&W){k.preventDefault();return}Ct(this,I,!0),it(this,R,Pu).call(this,k)}moveInDOM(){var k;(k=this.parent)==null||k.moveEditorInDOM(this)}_setParentAndPosition(k,W,J){k.changeParent(this),this.x=W,this.y=J,this.fixAndSetPosition()}getRect(k,W){const J=this.parentScale,[q,Y]=this.pageDimensions,[Z,ee]=this.pageTranslation,re=k/J,ae=W/J,V=this.x*q,K=this.y*Y,te=this.width*q,ie=this.height*Y;switch(this.rotation){case 0:return[V+re+Z,Y-K-ae-ie+ee,V+re+te+Z,Y-K-ae+ee];case 90:return[V+ae+Z,Y-K+re+ee,V+ae+ie+Z,Y-K+re+te+ee];case 180:return[V-re-te+Z,Y-K+ae+ee,V-re+Z,Y-K+ae+ie+ee];case 270:return[V-ae-ie+Z,Y-K-re-te+ee,V-ae+Z,Y-K-re+ee];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(k,W){const[J,q,Y,Z]=k,ee=Y-J,re=Z-q;switch(this.rotation){case 0:return[J,W-Z,ee,re];case 90:return[J,W-q,re,ee];case 180:return[Y,W-q,ee,re];case 270:return[Y,W-Z,re,ee];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){Ct(this,$,!0)}disableEditMode(){Ct(this,$,!1)}isInEditMode(){return He(this,$)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var k,W;(k=this.div)==null||k.addEventListener("focusin",He(this,S)),(W=this.div)==null||W.addEventListener("focusout",He(this,w))}serialize(k=!1,W=null){(0,d.unreachable)("An editor must be serializable")}static deserialize(k,W,J){const q=new this.prototype.constructor({parent:W,id:W.getNextId(),uiManager:J});q.rotation=k.rotation;const[Y,Z]=q.pageDimensions,[ee,re,ae,V]=q.getRectInCurrentCoords(k.rect,Z);return q.x=ee/Y,q.y=re/Z,q.width=ae/Y,q.height=V/Z,q}remove(){var k;this.div.removeEventListener("focusin",He(this,S)),this.div.removeEventListener("focusout",He(this,w)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),(k=He(this,x))==null||k.remove(),Ct(this,x,null),Ct(this,y,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(it(this,R,$u).call(this),He(this,C).classList.remove("hidden"))}select(){var k;this.makeResizable(),(k=this.div)==null||k.classList.add("selectedEditor")}unselect(){var k,W,J;(k=He(this,C))==null||k.classList.add("hidden"),(W=this.div)==null||W.classList.remove("selectedEditor"),(J=this.div)!=null&&J.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(k,W){}disableEditing(){He(this,x)&&(He(this,x).hidden=!0)}enableEditing(){He(this,x)&&(He(this,x).hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return He(this,P)}set isEditing(k){Ct(this,P,k),this.parent&&(k?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(k,W){Ct(this,m,!0);const J=k/W,{style:q}=this.div;q.aspectRatio=J,q.height="auto"}static get MIN_SIZE(){return 16}};b=new WeakMap,g=new WeakMap,x=new WeakMap,y=new WeakMap,f=new WeakMap,m=new WeakMap,C=new WeakMap,S=new WeakMap,w=new WeakMap,I=new WeakMap,P=new WeakMap,$=new WeakMap,_=new WeakMap,E=new WeakMap,R=new WeakSet,Vs=function([k,W],J,q){[J,q]=this.screenToPageTranslation(J,q),this.x+=J/k,this.y+=q/W,this.fixAndSetPosition()},Qs=function(){const[k,W]=this.parentDimensions,{_borderLineWidth:J}=U,q=J/k,Y=J/W;switch(this.rotation){case 90:return[-q,Y];case 180:return[q,Y];case 270:return[q,-Y];default:return[-q,-Y]}},M=new WeakSet,qs=function(k,W,J){switch(J){case 90:return[W,-k];case 180:return[-k,-W];case 270:return[-W,k];default:return[k,W]}},Ys=function(k){switch(k){case 90:{const[W,J]=this.pageDimensions;return[0,-W/J,J/W,0]}case 180:return[-1,0,0,-1];case 270:{const[W,J]=this.pageDimensions;return[0,W/J,-J/W,0]}default:return[1,0,0,1]}},$u=function(){if(He(this,C))return;Ct(this,C,document.createElement("div")),He(this,C).classList.add("resizers");const k=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||k.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(const W of k){const J=document.createElement("div");He(this,C).append(J),J.classList.add("resizer",W),J.addEventListener("pointerdown",it(this,R,Iu).bind(this,W)),J.addEventListener("contextmenu",p.noContextMenu)}this.div.prepend(He(this,C))},Iu=function(k,W){W.preventDefault();const{isMac:J}=d.FeatureTest.platform;if(W.button!==0||W.ctrlKey&&J)return;const q=it(this,R,_u).bind(this,k),Y=this._isDraggable;this._isDraggable=!1;const Z={passive:!0,capture:!0};window.addEventListener("pointermove",q,Z);const ee=this.x,re=this.y,ae=this.width,V=this.height,K=this.parent.div.style.cursor,te=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(W.target).cursor;const ie=()=>{this._isDraggable=Y,window.removeEventListener("pointerup",ie),window.removeEventListener("blur",ie),window.removeEventListener("pointermove",q,Z),this.parent.div.style.cursor=K,this.div.style.cursor=te;const ce=this.x,ge=this.y,Se=this.width,be=this.height;ce===ee&&ge===re&&Se===ae&&be===V||this.addCommands({cmd:()=>{this.width=Se,this.height=be,this.x=ce,this.y=ge;const[me,fe]=this.parentDimensions;this.setDims(me*Se,fe*be),this.fixAndSetPosition()},undo:()=>{this.width=ae,this.height=V,this.x=ee,this.y=re;const[me,fe]=this.parentDimensions;this.setDims(me*ae,fe*V),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",ie),window.addEventListener("blur",ie)},_u=function(k,W){const[J,q]=this.parentDimensions,Y=this.x,Z=this.y,ee=this.width,re=this.height,ae=U.MIN_SIZE/J,V=U.MIN_SIZE/q,K=ye=>Math.round(ye*1e4)/1e4,te=it(this,R,Ys).call(this,this.rotation),ie=(ye,Pe)=>[te[0]*ye+te[2]*Pe,te[1]*ye+te[3]*Pe],ce=it(this,R,Ys).call(this,360-this.rotation),ge=(ye,Pe)=>[ce[0]*ye+ce[2]*Pe,ce[1]*ye+ce[3]*Pe];let Se,be,me=!1,fe=!1;switch(k){case"topLeft":me=!0,Se=(ye,Pe)=>[0,0],be=(ye,Pe)=>[ye,Pe];break;case"topMiddle":Se=(ye,Pe)=>[ye/2,0],be=(ye,Pe)=>[ye/2,Pe];break;case"topRight":me=!0,Se=(ye,Pe)=>[ye,0],be=(ye,Pe)=>[0,Pe];break;case"middleRight":fe=!0,Se=(ye,Pe)=>[ye,Pe/2],be=(ye,Pe)=>[0,Pe/2];break;case"bottomRight":me=!0,Se=(ye,Pe)=>[ye,Pe],be=(ye,Pe)=>[0,0];break;case"bottomMiddle":Se=(ye,Pe)=>[ye/2,Pe],be=(ye,Pe)=>[ye/2,0];break;case"bottomLeft":me=!0,Se=(ye,Pe)=>[0,Pe],be=(ye,Pe)=>[ye,0];break;case"middleLeft":fe=!0,Se=(ye,Pe)=>[0,Pe/2],be=(ye,Pe)=>[ye,Pe/2];break}const se=Se(ee,re),oe=be(ee,re);let de=ie(...oe);const le=K(Y+de[0]),xe=K(Z+de[1]);let Ce=1,$e=1,[we,Ee]=this.screenToPageTranslation(W.movementX,W.movementY);if([we,Ee]=ge(we/J,Ee/q),me){const ye=Math.hypot(ee,re);Ce=$e=Math.max(Math.min(Math.hypot(oe[0]-se[0]-we,oe[1]-se[1]-Ee)/ye,1/ee,1/re),ae/ee,V/re)}else fe?Ce=Math.max(ae,Math.min(1,Math.abs(oe[0]-se[0]-we)))/ee:$e=Math.max(V,Math.min(1,Math.abs(oe[1]-se[1]-Ee)))/re;const Ae=K(ee*Ce),pe=K(re*$e);de=ie(...be(Ae,pe));const he=le-de[0],Ie=xe-de[1];this.width=Ae,this.height=pe,this.x=he,this.y=Ie,this.setDims(J*Ae,q*pe),this.fixAndSetPosition()},Ks=async function(){var J;const k=He(this,x);if(!k)return;if(!He(this,b)&&!He(this,g)){k.classList.remove("done"),(J=He(this,y))==null||J.remove();return}U._l10nPromise.get("editor_alt_text_edit_button_label").then(q=>{k.setAttribute("aria-label",q)});let W=He(this,y);if(!W){Ct(this,y,W=document.createElement("span")),W.className="tooltip",W.setAttribute("role","tooltip");const q=W.id=`alt-text-tooltip-${this.id}`;k.setAttribute("aria-describedby",q);const Y=100;k.addEventListener("mouseenter",()=>{Ct(this,f,setTimeout(()=>{Ct(this,f,null),He(this,y).classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})},Y))}),k.addEventListener("mouseleave",()=>{var Z;clearTimeout(He(this,f)),Ct(this,f,null),(Z=He(this,y))==null||Z.classList.remove("show")})}k.classList.add("done"),W.innerText=He(this,g)?await U._l10nPromise.get("editor_alt_text_decorative_tooltip"):He(this,b),W.parentNode||k.append(W)},Pu=function(k){if(!this._isDraggable)return;const W=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let J,q;W&&(J={passive:!0,capture:!0},q=Z=>{const[ee,re]=this.screenToPageTranslation(Z.movementX,Z.movementY);this._uiManager.dragSelectedEditors(ee,re)},window.addEventListener("pointermove",q,J));const Y=()=>{if(window.removeEventListener("pointerup",Y),window.removeEventListener("blur",Y),W&&window.removeEventListener("pointermove",q,J),Ct(this,I,!1),!this._uiManager.endDragSession()){const{isMac:Z}=d.FeatureTest.platform;k.ctrlKey&&!Z||k.shiftKey||k.metaKey&&Z?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",Y),window.addEventListener("blur",Y)},vt(U,M),yr(U,"_borderLineWidth",-1),yr(U,"_colorManager",new u.ColorManager),yr(U,"_zIndex",1),yr(U,"SMALL_EDITOR_SIZE",0);let v=U;s.AnnotationEditor=v;class A extends v{constructor(k){super(k),this.annotationElementId=k.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(a,s,c)=>{var m,C,S,w,I,Xs,_,E,R,T,B,Tu,O,H,j,Q,L,F,U,N,k,W,J,q,Y,Z,ee,re,ae,V,K,te,ie,ce,ge,Se,be,me,fe,se,oe,de,le,xe,Ce,$e,we,Ru,Zs,Js,mo,el,tl,In,pi,Bu,Mu,rl,gi,nl;Object.defineProperty(s,"__esModule",{value:!0}),s.KeyboardManager=s.CommandManager=s.ColorManager=s.AnnotationEditorUIManager=void 0,s.bindEvents=p,s.opacityToHex=v;var u=c(1),d=c(6);function p(Te,ke,De){for(const Re of De)ke.addEventListener(Re,Te[Re].bind(Te))}function v(Te){return Math.round(Math.min(255,Math.max(1,255*Te))).toString(16).padStart(2,"0")}class A{constructor(){vt(this,m,0)}getId(){return`${u.AnnotationEditorPrefix}${hi(this,m)._++}`}}m=new WeakMap;const $=class ${constructor(){vt(this,I);vt(this,C,(0,u.getUuid)());vt(this,S,0);vt(this,w,null)}static get _isSVGFittingCanvas(){const ke='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',Re=new OffscreenCanvas(1,3).getContext("2d"),Ge=new Image;Ge.src=ke;const Ve=Ge.decode().then(()=>(Re.drawImage(Ge,0,0,1,1,0,0,1,3),new Uint32Array(Re.getImageData(0,0,1,1).data.buffer)[0]===0));return(0,u.shadow)(this,"_isSVGFittingCanvas",Ve)}async getFromFile(ke){const{lastModified:De,name:Re,size:Ge,type:Ve}=ke;return it(this,I,Xs).call(this,`${De}_${Re}_${Ge}_${Ve}`,ke)}async getFromUrl(ke){return it(this,I,Xs).call(this,ke,ke)}async getFromId(ke){He(this,w)||Ct(this,w,new Map);const De=He(this,w).get(ke);return De?De.bitmap?(De.refCounter+=1,De):De.file?this.getFromFile(De.file):this.getFromUrl(De.url):null}getSvgUrl(ke){const De=He(this,w).get(ke);return De!=null&&De.isSvg?De.svgUrl:null}deleteId(ke){He(this,w)||Ct(this,w,new Map);const De=He(this,w).get(ke);De&&(De.refCounter-=1,De.refCounter===0&&(De.bitmap=null))}isValidId(ke){return ke.startsWith(`image_${He(this,C)}_`)}};C=new WeakMap,S=new WeakMap,w=new WeakMap,I=new WeakSet,Xs=async function(ke,De){He(this,w)||Ct(this,w,new Map);let Re=He(this,w).get(ke);if(Re===null)return null;if(Re!=null&&Re.bitmap)return Re.refCounter+=1,Re;try{Re||(Re={bitmap:null,id:`image_${He(this,C)}_${hi(this,S)._++}`,refCounter:0,isSvg:!1});let Ge;if(typeof De=="string"){Re.url=De;const Ve=await fetch(De);if(!Ve.ok)throw new Error(Ve.statusText);Ge=await Ve.blob()}else Ge=Re.file=De;if(Ge.type==="image/svg+xml"){const Ve=$._isSVGFittingCanvas,Xe=new FileReader,We=new Image,ze=new Promise((Qe,et)=>{We.onload=()=>{Re.bitmap=We,Re.isSvg=!0,Qe()},Xe.onload=async()=>{const Ze=Re.svgUrl=Xe.result;We.src=await Ve?`${Ze}#svgView(preserveAspectRatio(none))`:Ze},We.onerror=Xe.onerror=et});Xe.readAsDataURL(Ge),await ze}else Re.bitmap=await createImageBitmap(Ge);Re.refCounter=1}catch(Ge){console.error(Ge),Re=null}return He(this,w).set(ke,Re),Re&&He(this,w).set(Re.id,Re),Re};let b=$;class g{constructor(ke=128){vt(this,_,[]);vt(this,E,!1);vt(this,R);vt(this,T,-1);Ct(this,R,ke)}add({cmd:ke,undo:De,mustExec:Re,type:Ge=NaN,overwriteIfSameType:Ve=!1,keepUndo:Xe=!1}){if(Re&&ke(),He(this,E))return;const We={cmd:ke,undo:De,type:Ge};if(He(this,T)===-1){He(this,_).length>0&&(He(this,_).length=0),Ct(this,T,0),He(this,_).push(We);return}if(Ve&&He(this,_)[He(this,T)].type===Ge){Xe&&(We.undo=He(this,_)[He(this,T)].undo),He(this,_)[He(this,T)]=We;return}const ze=He(this,T)+1;ze===He(this,R)?He(this,_).splice(0,1):(Ct(this,T,ze),ze<He(this,_).length&&He(this,_).splice(ze)),He(this,_).push(We)}undo(){He(this,T)!==-1&&(Ct(this,E,!0),He(this,_)[He(this,T)].undo(),Ct(this,E,!1),Ct(this,T,He(this,T)-1))}redo(){He(this,T)<He(this,_).length-1&&(Ct(this,T,He(this,T)+1),Ct(this,E,!0),He(this,_)[He(this,T)].cmd(),Ct(this,E,!1))}hasSomethingToUndo(){return He(this,T)!==-1}hasSomethingToRedo(){return He(this,T)<He(this,_).length-1}destroy(){Ct(this,_,null)}}_=new WeakMap,E=new WeakMap,R=new WeakMap,T=new WeakMap,s.CommandManager=g;class x{constructor(ke){vt(this,B);this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:De}=u.FeatureTest.platform;for(const[Re,Ge,Ve={}]of ke)for(const Xe of Re){const We=Xe.startsWith("mac+");De&&We?(this.callbacks.set(Xe.slice(4),{callback:Ge,options:Ve}),this.allKeys.add(Xe.split("+").at(-1))):!De&&!We&&(this.callbacks.set(Xe,{callback:Ge,options:Ve}),this.allKeys.add(Xe.split("+").at(-1)))}}exec(ke,De){if(!this.allKeys.has(De.key))return;const Re=this.callbacks.get(it(this,B,Tu).call(this,De));if(!Re)return;const{callback:Ge,options:{bubbles:Ve=!1,args:Xe=[],checker:We=null}}=Re;We&&!We(ke,De)||(Ge.bind(ke,...Xe)(),Ve||(De.stopPropagation(),De.preventDefault()))}}B=new WeakSet,Tu=function(ke){ke.altKey&&this.buffer.push("alt"),ke.ctrlKey&&this.buffer.push("ctrl"),ke.metaKey&&this.buffer.push("meta"),ke.shiftKey&&this.buffer.push("shift"),this.buffer.push(ke.key);const De=this.buffer.join("+");return this.buffer.length=0,De},s.KeyboardManager=x;const D=class D{get _colors(){const ke=new Map([["CanvasText",null],["Canvas",null]]);return(0,d.getColorValues)(ke),(0,u.shadow)(this,"_colors",ke)}convert(ke){const De=(0,d.getRGB)(ke);if(!window.matchMedia("(forced-colors: active)").matches)return De;for(const[Re,Ge]of this._colors)if(Ge.every((Ve,Xe)=>Ve===De[Xe]))return D._colorsMapping.get(Re);return De}getHexCode(ke){const De=this._colors.get(ke);return De?u.Util.makeHexColor(...De):ke}};yr(D,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let y=D;s.ColorManager=y;const Ye=class Ye{constructor(ke,De,Re,Ge,Ve,Xe){vt(this,we);vt(this,O,null);vt(this,H,new Map);vt(this,j,new Map);vt(this,Q,null);vt(this,L,null);vt(this,F,new g);vt(this,U,0);vt(this,N,new Set);vt(this,k,null);vt(this,W,null);vt(this,J,new Set);vt(this,q,null);vt(this,Y,new A);vt(this,Z,!1);vt(this,ee,!1);vt(this,re,null);vt(this,ae,u.AnnotationEditorType.NONE);vt(this,V,new Set);vt(this,K,null);vt(this,te,this.blur.bind(this));vt(this,ie,this.focus.bind(this));vt(this,ce,this.copy.bind(this));vt(this,ge,this.cut.bind(this));vt(this,Se,this.paste.bind(this));vt(this,be,this.keydown.bind(this));vt(this,me,this.onEditingAction.bind(this));vt(this,fe,this.onPageChanging.bind(this));vt(this,se,this.onScaleChanging.bind(this));vt(this,oe,this.onRotationChanging.bind(this));vt(this,de,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1});vt(this,le,[0,0]);vt(this,xe,null);vt(this,Ce,null);vt(this,$e,null);Ct(this,Ce,ke),Ct(this,$e,De),Ct(this,Q,Re),this._eventBus=Ge,this._eventBus._on("editingaction",He(this,me)),this._eventBus._on("pagechanging",He(this,fe)),this._eventBus._on("scalechanging",He(this,se)),this._eventBus._on("rotationchanging",He(this,oe)),Ct(this,L,Ve.annotationStorage),Ct(this,q,Ve.filterFactory),Ct(this,K,Xe),this.viewParameters={realScale:d.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}static get _keyboardManager(){const ke=Ye.prototype,De=Ve=>{const{activeElement:Xe}=document;return Xe&&He(Ve,Ce).contains(Xe)&&Ve.hasSomethingToControl()},Re=this.TRANSLATE_SMALL,Ge=this.TRANSLATE_BIG;return(0,u.shadow)(this,"_keyboardManager",new x([[["ctrl+a","mac+meta+a"],ke.selectAll],[["ctrl+z","mac+meta+z"],ke.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],ke.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],ke.delete],[["Escape","mac+Escape"],ke.unselectAll],[["ArrowLeft","mac+ArrowLeft"],ke.translateSelectedEditors,{args:[-Re,0],checker:De}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],ke.translateSelectedEditors,{args:[-Ge,0],checker:De}],[["ArrowRight","mac+ArrowRight"],ke.translateSelectedEditors,{args:[Re,0],checker:De}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],ke.translateSelectedEditors,{args:[Ge,0],checker:De}],[["ArrowUp","mac+ArrowUp"],ke.translateSelectedEditors,{args:[0,-Re],checker:De}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],ke.translateSelectedEditors,{args:[0,-Ge],checker:De}],[["ArrowDown","mac+ArrowDown"],ke.translateSelectedEditors,{args:[0,Re],checker:De}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],ke.translateSelectedEditors,{args:[0,Ge],checker:De}]]))}destroy(){it(this,we,mo).call(this),it(this,we,Zs).call(this),this._eventBus._off("editingaction",He(this,me)),this._eventBus._off("pagechanging",He(this,fe)),this._eventBus._off("scalechanging",He(this,se)),this._eventBus._off("rotationchanging",He(this,oe));for(const ke of He(this,j).values())ke.destroy();He(this,j).clear(),He(this,H).clear(),He(this,J).clear(),Ct(this,O,null),He(this,V).clear(),He(this,F).destroy(),He(this,Q).destroy()}get hcmFilter(){return(0,u.shadow)(this,"hcmFilter",He(this,K)?He(this,q).addHCMFilter(He(this,K).foreground,He(this,K).background):"none")}get direction(){return(0,u.shadow)(this,"direction",getComputedStyle(He(this,Ce)).direction)}editAltText(ke){var De;(De=He(this,Q))==null||De.editAltText(this,ke)}onPageChanging({pageNumber:ke}){Ct(this,U,ke-1)}focusMainContainer(){He(this,Ce).focus()}findParent(ke,De){for(const Re of He(this,j).values()){const{x:Ge,y:Ve,width:Xe,height:We}=Re.div.getBoundingClientRect();if(ke>=Ge&&ke<=Ge+Xe&&De>=Ve&&De<=Ve+We)return Re}return null}disableUserSelect(ke=!1){He(this,$e).classList.toggle("noUserSelect",ke)}addShouldRescale(ke){He(this,J).add(ke)}removeShouldRescale(ke){He(this,J).delete(ke)}onScaleChanging({scale:ke}){this.commitOrRemove(),this.viewParameters.realScale=ke*d.PixelsPerInch.PDF_TO_CSS_UNITS;for(const De of He(this,J))De.onScaleChanging()}onRotationChanging({pagesRotation:ke}){this.commitOrRemove(),this.viewParameters.rotation=ke}addToAnnotationStorage(ke){!ke.isEmpty()&&He(this,L)&&!He(this,L).has(ke.id)&&He(this,L).setValue(ke.id,ke)}blur(){if(!this.hasSelection)return;const{activeElement:ke}=document;for(const De of He(this,V))if(De.div.contains(ke)){Ct(this,re,[De,ke]),De._focusEventsAllowed=!1;break}}focus(){if(!He(this,re))return;const[ke,De]=He(this,re);Ct(this,re,null),De.addEventListener("focusin",()=>{ke._focusEventsAllowed=!0},{once:!0}),De.focus()}addEditListeners(){it(this,we,Js).call(this),it(this,we,el).call(this)}removeEditListeners(){it(this,we,mo).call(this),it(this,we,tl).call(this)}copy(ke){var Re;if(ke.preventDefault(),(Re=He(this,O))==null||Re.commitOrRemove(),!this.hasSelection)return;const De=[];for(const Ge of He(this,V)){const Ve=Ge.serialize(!0);Ve&&De.push(Ve)}De.length!==0&&ke.clipboardData.setData("application/pdfjs",JSON.stringify(De))}cut(ke){this.copy(ke),this.delete()}paste(ke){ke.preventDefault();const{clipboardData:De}=ke;for(const Ve of De.items)for(const Xe of He(this,W))if(Xe.isHandlingMimeForPasting(Ve.type)){Xe.paste(Ve,this.currentLayer);return}let Re=De.getData("application/pdfjs");if(!Re)return;try{Re=JSON.parse(Re)}catch(Ve){(0,u.warn)(`paste: "${Ve.message}".`);return}if(!Array.isArray(Re))return;this.unselectAll();const Ge=this.currentLayer;try{const Ve=[];for(const ze of Re){const Qe=Ge.deserialize(ze);if(!Qe)return;Ve.push(Qe)}const Xe=()=>{for(const ze of Ve)it(this,we,rl).call(this,ze);it(this,we,nl).call(this,Ve)},We=()=>{for(const ze of Ve)ze.remove()};this.addCommands({cmd:Xe,undo:We,mustExec:!0})}catch(Ve){(0,u.warn)(`paste: "${Ve.message}".`)}}keydown(ke){var De;(De=this.getActive())!=null&&De.shouldGetKeyboardEvents()||Ye._keyboardManager.exec(this,ke)}onEditingAction(ke){["undo","redo","delete","selectAll"].includes(ke.name)&&this[ke.name]()}setEditingState(ke){ke?(it(this,we,Ru).call(this),it(this,we,Js).call(this),it(this,we,el).call(this),it(this,we,In).call(this,{isEditing:He(this,ae)!==u.AnnotationEditorType.NONE,isEmpty:it(this,we,gi).call(this),hasSomethingToUndo:He(this,F).hasSomethingToUndo(),hasSomethingToRedo:He(this,F).hasSomethingToRedo(),hasSelectedEditor:!1})):(it(this,we,Zs).call(this),it(this,we,mo).call(this),it(this,we,tl).call(this),it(this,we,In).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(ke){if(!He(this,W)){Ct(this,W,ke);for(const De of He(this,W))it(this,we,pi).call(this,De.defaultPropertiesToUpdate)}}getId(){return He(this,Y).getId()}get currentLayer(){return He(this,j).get(He(this,U))}getLayer(ke){return He(this,j).get(ke)}get currentPageIndex(){return He(this,U)}addLayer(ke){He(this,j).set(ke.pageIndex,ke),He(this,Z)?ke.enable():ke.disable()}removeLayer(ke){He(this,j).delete(ke.pageIndex)}updateMode(ke,De=null){if(He(this,ae)!==ke){if(Ct(this,ae,ke),ke===u.AnnotationEditorType.NONE){this.setEditingState(!1),it(this,we,Mu).call(this);return}this.setEditingState(!0),it(this,we,Bu).call(this),this.unselectAll();for(const Re of He(this,j).values())Re.updateMode(ke);if(De){for(const Re of He(this,H).values())if(Re.annotationElementId===De){this.setSelected(Re),Re.enterInEditMode();break}}}}updateToolbar(ke){ke!==He(this,ae)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:ke})}updateParams(ke,De){if(He(this,W)){if(ke===u.AnnotationEditorParamsType.CREATE){this.currentLayer.addNewEditor(ke);return}for(const Re of He(this,V))Re.updateParams(ke,De);for(const Re of He(this,W))Re.updateDefaultParams(ke,De)}}enableWaiting(ke=!1){if(He(this,ee)!==ke){Ct(this,ee,ke);for(const De of He(this,j).values())ke?De.disableClick():De.enableClick(),De.div.classList.toggle("waiting",ke)}}getEditors(ke){const De=[];for(const Re of He(this,H).values())Re.pageIndex===ke&&De.push(Re);return De}getEditor(ke){return He(this,H).get(ke)}addEditor(ke){He(this,H).set(ke.id,ke)}removeEditor(ke){var De;He(this,H).delete(ke.id),this.unselect(ke),(!ke.annotationElementId||!He(this,N).has(ke.annotationElementId))&&((De=He(this,L))==null||De.remove(ke.id))}addDeletedAnnotationElement(ke){He(this,N).add(ke.annotationElementId),ke.deleted=!0}isDeletedAnnotationElement(ke){return He(this,N).has(ke)}removeDeletedAnnotationElement(ke){He(this,N).delete(ke.annotationElementId),ke.deleted=!1}setActiveEditor(ke){He(this,O)!==ke&&(Ct(this,O,ke),ke&&it(this,we,pi).call(this,ke.propertiesToUpdate))}toggleSelected(ke){if(He(this,V).has(ke)){He(this,V).delete(ke),ke.unselect(),it(this,we,In).call(this,{hasSelectedEditor:this.hasSelection});return}He(this,V).add(ke),ke.select(),it(this,we,pi).call(this,ke.propertiesToUpdate),it(this,we,In).call(this,{hasSelectedEditor:!0})}setSelected(ke){for(const De of He(this,V))De!==ke&&De.unselect();He(this,V).clear(),He(this,V).add(ke),ke.select(),it(this,we,pi).call(this,ke.propertiesToUpdate),it(this,we,In).call(this,{hasSelectedEditor:!0})}isSelected(ke){return He(this,V).has(ke)}unselect(ke){ke.unselect(),He(this,V).delete(ke),it(this,we,In).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return He(this,V).size!==0}undo(){He(this,F).undo(),it(this,we,In).call(this,{hasSomethingToUndo:He(this,F).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:it(this,we,gi).call(this)})}redo(){He(this,F).redo(),it(this,we,In).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:He(this,F).hasSomethingToRedo(),isEmpty:it(this,we,gi).call(this)})}addCommands(ke){He(this,F).add(ke),it(this,we,In).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:it(this,we,gi).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const ke=[...He(this,V)],De=()=>{for(const Ge of ke)Ge.remove()},Re=()=>{for(const Ge of ke)it(this,we,rl).call(this,Ge)};this.addCommands({cmd:De,undo:Re,mustExec:!0})}commitOrRemove(){var ke;(ke=He(this,O))==null||ke.commitOrRemove()}hasSomethingToControl(){return He(this,O)||this.hasSelection}selectAll(){for(const ke of He(this,V))ke.commit();it(this,we,nl).call(this,He(this,H).values())}unselectAll(){if(He(this,O)){He(this,O).commitOrRemove();return}if(this.hasSelection){for(const ke of He(this,V))ke.unselect();He(this,V).clear(),it(this,we,In).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(ke,De,Re=!1){if(Re||this.commitOrRemove(),!this.hasSelection)return;He(this,le)[0]+=ke,He(this,le)[1]+=De;const[Ge,Ve]=He(this,le),Xe=[...He(this,V)],We=1e3;He(this,xe)&&clearTimeout(He(this,xe)),Ct(this,xe,setTimeout(()=>{Ct(this,xe,null),He(this,le)[0]=He(this,le)[1]=0,this.addCommands({cmd:()=>{for(const ze of Xe)He(this,H).has(ze.id)&&ze.translateInPage(Ge,Ve)},undo:()=>{for(const ze of Xe)He(this,H).has(ze.id)&&ze.translateInPage(-Ge,-Ve)},mustExec:!1})},We));for(const ze of Xe)ze.translateInPage(ke,De)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),Ct(this,k,new Map);for(const ke of He(this,V))He(this,k).set(ke,{savedX:ke.x,savedY:ke.y,savedPageIndex:ke.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!He(this,k))return!1;this.disableUserSelect(!1);const ke=He(this,k);Ct(this,k,null);let De=!1;for(const[{x:Ge,y:Ve,pageIndex:Xe},We]of ke)We.newX=Ge,We.newY=Ve,We.newPageIndex=Xe,De||(De=Ge!==We.savedX||Ve!==We.savedY||Xe!==We.savedPageIndex);if(!De)return!1;const Re=(Ge,Ve,Xe,We)=>{if(He(this,H).has(Ge.id)){const ze=He(this,j).get(We);ze?Ge._setParentAndPosition(ze,Ve,Xe):(Ge.pageIndex=We,Ge.x=Ve,Ge.y=Xe)}};return this.addCommands({cmd:()=>{for(const[Ge,{newX:Ve,newY:Xe,newPageIndex:We}]of ke)Re(Ge,Ve,Xe,We)},undo:()=>{for(const[Ge,{savedX:Ve,savedY:Xe,savedPageIndex:We}]of ke)Re(Ge,Ve,Xe,We)},mustExec:!0}),!0}dragSelectedEditors(ke,De){if(He(this,k))for(const Re of He(this,k).keys())Re.drag(ke,De)}rebuild(ke){if(ke.parent===null){const De=this.getLayer(ke.pageIndex);De?(De.changeParent(ke),De.addOrRebuild(ke)):(this.addEditor(ke),this.addToAnnotationStorage(ke),ke.rebuild())}else ke.parent.addOrRebuild(ke)}isActive(ke){return He(this,O)===ke}getActive(){return He(this,O)}getMode(){return He(this,ae)}get imageManager(){return(0,u.shadow)(this,"imageManager",new b)}};O=new WeakMap,H=new WeakMap,j=new WeakMap,Q=new WeakMap,L=new WeakMap,F=new WeakMap,U=new WeakMap,N=new WeakMap,k=new WeakMap,W=new WeakMap,J=new WeakMap,q=new WeakMap,Y=new WeakMap,Z=new WeakMap,ee=new WeakMap,re=new WeakMap,ae=new WeakMap,V=new WeakMap,K=new WeakMap,te=new WeakMap,ie=new WeakMap,ce=new WeakMap,ge=new WeakMap,Se=new WeakMap,be=new WeakMap,me=new WeakMap,fe=new WeakMap,se=new WeakMap,oe=new WeakMap,de=new WeakMap,le=new WeakMap,xe=new WeakMap,Ce=new WeakMap,$e=new WeakMap,we=new WeakSet,Ru=function(){window.addEventListener("focus",He(this,ie)),window.addEventListener("blur",He(this,te))},Zs=function(){window.removeEventListener("focus",He(this,ie)),window.removeEventListener("blur",He(this,te))},Js=function(){window.addEventListener("keydown",He(this,be),{capture:!0})},mo=function(){window.removeEventListener("keydown",He(this,be),{capture:!0})},el=function(){document.addEventListener("copy",He(this,ce)),document.addEventListener("cut",He(this,ge)),document.addEventListener("paste",He(this,Se))},tl=function(){document.removeEventListener("copy",He(this,ce)),document.removeEventListener("cut",He(this,ge)),document.removeEventListener("paste",He(this,Se))},In=function(ke){Object.entries(ke).some(([Re,Ge])=>He(this,de)[Re]!==Ge)&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(He(this,de),ke)})},pi=function(ke){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:ke})},Bu=function(){if(!He(this,Z)){Ct(this,Z,!0);for(const ke of He(this,j).values())ke.enable()}},Mu=function(){if(this.unselectAll(),He(this,Z)){Ct(this,Z,!1);for(const ke of He(this,j).values())ke.disable()}},rl=function(ke){const De=He(this,j).get(ke.pageIndex);De?De.addOrRebuild(ke):this.addEditor(ke)},gi=function(){if(He(this,H).size===0)return!0;if(He(this,H).size===1)for(const ke of He(this,H).values())return ke.isEmpty();return!1},nl=function(ke){He(this,V).clear();for(const De of ke)De.isEmpty()||(He(this,V).add(De),De.select());it(this,we,In).call(this,{hasSelectedEditor:!0})},yr(Ye,"TRANSLATE_SMALL",1),yr(Ye,"TRANSLATE_BIG",10);let f=Ye;s.AnnotationEditorUIManager=f},(a,s,c)=>{var U,N,k,W,J,q,Y,Z,ee,re,ae,V,Fa,Na,al,Ao,vo,mi,Ai;Object.defineProperty(s,"__esModule",{value:!0}),s.StatTimer=s.RenderingCancelledException=s.PixelsPerInch=s.PageViewport=s.PDFDateString=s.DOMStandardFontDataFactory=s.DOMSVGFactory=s.DOMFilterFactory=s.DOMCanvasFactory=s.DOMCMapReaderFactory=void 0,s.deprecated=T,s.getColorValues=H,s.getCurrentTransform=j,s.getCurrentTransformInverse=Q,s.getFilenameFromUrl=I,s.getPdfFilenameFromUrl=P,s.getRGB=O,s.getXfaPageViewport=D,s.isDataScheme=S,s.isPdfFile=w,s.isValidFetchUrl=_,s.loadScript=R,s.noContextMenu=E,s.setLayerDimensions=L;var u=c(7),d=c(1);const p="http://www.w3.org/2000/svg",F=class F{};yr(F,"CSS",96),yr(F,"PDF",72),yr(F,"PDF_TO_CSS_UNITS",F.CSS/F.PDF);let v=F;s.PixelsPerInch=v;class A extends u.BaseFilterFactory{constructor({docId:se,ownerDocument:oe=globalThis.document}={}){super();vt(this,V);vt(this,U);vt(this,N);vt(this,k);vt(this,W);vt(this,J);vt(this,q);vt(this,Y);vt(this,Z);vt(this,ee);vt(this,re);vt(this,ae,0);Ct(this,k,se),Ct(this,W,oe)}addFilter(se){if(!se)return"none";let oe=He(this,V,Fa).get(se);if(oe)return oe;let de,le,xe,Ce;if(se.length===1){const Ae=se[0],pe=new Array(256);for(let he=0;he<256;he++)pe[he]=Ae[he]/255;Ce=de=le=xe=pe.join(",")}else{const[Ae,pe,he]=se,Ie=new Array(256),ye=new Array(256),Pe=new Array(256);for(let Le=0;Le<256;Le++)Ie[Le]=Ae[Le]/255,ye[Le]=pe[Le]/255,Pe[Le]=he[Le]/255;de=Ie.join(","),le=ye.join(","),xe=Pe.join(","),Ce=`${de}${le}${xe}`}if(oe=He(this,V,Fa).get(Ce),oe)return He(this,V,Fa).set(se,oe),oe;const $e=`g_${He(this,k)}_transfer_map_${hi(this,ae)._++}`,we=`url(#${$e})`;He(this,V,Fa).set(se,we),He(this,V,Fa).set(Ce,we);const Ee=it(this,V,Ao).call(this,$e);return it(this,V,mi).call(this,de,le,xe,Ee),we}addHCMFilter(se,oe){var pe;const de=`${se}-${oe}`;if(He(this,q)===de)return He(this,Y);if(Ct(this,q,de),Ct(this,Y,"none"),(pe=He(this,J))==null||pe.remove(),!se||!oe)return He(this,Y);const le=it(this,V,Ai).call(this,se);se=d.Util.makeHexColor(...le);const xe=it(this,V,Ai).call(this,oe);if(oe=d.Util.makeHexColor(...xe),He(this,V,Na).style.color="",se==="#000000"&&oe==="#ffffff"||se===oe)return He(this,Y);const Ce=new Array(256);for(let he=0;he<=255;he++){const Ie=he/255;Ce[he]=Ie<=.03928?Ie/12.92:((Ie+.055)/1.055)**2.4}const $e=Ce.join(","),we=`g_${He(this,k)}_hcm_filter`,Ee=Ct(this,Z,it(this,V,Ao).call(this,we));it(this,V,mi).call(this,$e,$e,$e,Ee),it(this,V,al).call(this,Ee);const Ae=(he,Ie)=>{const ye=le[he]/255,Pe=xe[he]/255,Le=new Array(Ie+1);for(let Ne=0;Ne<=Ie;Ne++)Le[Ne]=ye+Ne/Ie*(Pe-ye);return Le.join(",")};return it(this,V,mi).call(this,Ae(0,5),Ae(1,5),Ae(2,5),Ee),Ct(this,Y,`url(#${we})`),He(this,Y)}addHighlightHCMFilter(se,oe,de,le){var Pe;const xe=`${se}-${oe}-${de}-${le}`;if(He(this,ee)===xe)return He(this,re);if(Ct(this,ee,xe),Ct(this,re,"none"),(Pe=He(this,Z))==null||Pe.remove(),!se||!oe)return He(this,re);const[Ce,$e]=[se,oe].map(it(this,V,Ai).bind(this));let we=Math.round(.2126*Ce[0]+.7152*Ce[1]+.0722*Ce[2]),Ee=Math.round(.2126*$e[0]+.7152*$e[1]+.0722*$e[2]),[Ae,pe]=[de,le].map(it(this,V,Ai).bind(this));Ee<we&&([we,Ee,Ae,pe]=[Ee,we,pe,Ae]),He(this,V,Na).style.color="";const he=(Le,Ne,Me)=>{const Fe=new Array(256),_e=(Ee-we)/Me,je=Le/255,Ye=(Ne-Le)/(255*Me);let Te=0;for(let ke=0;ke<=Me;ke++){const De=Math.round(we+ke*_e),Re=je+ke*Ye;for(let Ge=Te;Ge<=De;Ge++)Fe[Ge]=Re;Te=De+1}for(let ke=Te;ke<256;ke++)Fe[ke]=Fe[Te-1];return Fe.join(",")},Ie=`g_${He(this,k)}_hcm_highlight_filter`,ye=Ct(this,Z,it(this,V,Ao).call(this,Ie));return it(this,V,al).call(this,ye),it(this,V,mi).call(this,he(Ae[0],pe[0],5),he(Ae[1],pe[1],5),he(Ae[2],pe[2],5),ye),Ct(this,re,`url(#${Ie})`),He(this,re)}destroy(se=!1){se&&(He(this,Y)||He(this,re))||(He(this,N)&&(He(this,N).parentNode.parentNode.remove(),Ct(this,N,null)),He(this,U)&&(He(this,U).clear(),Ct(this,U,null)),Ct(this,ae,0))}}U=new WeakMap,N=new WeakMap,k=new WeakMap,W=new WeakMap,J=new WeakMap,q=new WeakMap,Y=new WeakMap,Z=new WeakMap,ee=new WeakMap,re=new WeakMap,ae=new WeakMap,V=new WeakSet,Fa=function(){return He(this,U)||Ct(this,U,new Map)},Na=function(){if(!He(this,N)){const se=He(this,W).createElement("div"),{style:oe}=se;oe.visibility="hidden",oe.contain="strict",oe.width=oe.height=0,oe.position="absolute",oe.top=oe.left=0,oe.zIndex=-1;const de=He(this,W).createElementNS(p,"svg");de.setAttribute("width",0),de.setAttribute("height",0),Ct(this,N,He(this,W).createElementNS(p,"defs")),se.append(de),de.append(He(this,N)),He(this,W).body.append(se)}return He(this,N)},al=function(se){const oe=He(this,W).createElementNS(p,"feColorMatrix");oe.setAttribute("type","matrix"),oe.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),se.append(oe)},Ao=function(se){const oe=He(this,W).createElementNS(p,"filter");return oe.setAttribute("color-interpolation-filters","sRGB"),oe.setAttribute("id",se),He(this,V,Na).append(oe),oe},vo=function(se,oe,de){const le=He(this,W).createElementNS(p,oe);le.setAttribute("type","discrete"),le.setAttribute("tableValues",de),se.append(le)},mi=function(se,oe,de,le){const xe=He(this,W).createElementNS(p,"feComponentTransfer");le.append(xe),it(this,V,vo).call(this,xe,"feFuncR",se),it(this,V,vo).call(this,xe,"feFuncG",oe),it(this,V,vo).call(this,xe,"feFuncB",de)},Ai=function(se){return He(this,V,Na).style.color=se,O(getComputedStyle(He(this,V,Na)).getPropertyValue("color"))},s.DOMFilterFactory=A;class b extends u.BaseCanvasFactory{constructor({ownerDocument:fe=globalThis.document}={}){super(),this._document=fe}_createCanvas(fe,se){const oe=this._document.createElement("canvas");return oe.width=fe,oe.height=se,oe}}s.DOMCanvasFactory=b;async function g(me,fe=!1){if(_(me,document.baseURI)){const se=await fetch(me);if(!se.ok)throw new Error(se.statusText);return fe?new Uint8Array(await se.arrayBuffer()):(0,d.stringToBytes)(await se.text())}return new Promise((se,oe)=>{const de=new XMLHttpRequest;de.open("GET",me,!0),fe&&(de.responseType="arraybuffer"),de.onreadystatechange=()=>{if(de.readyState===XMLHttpRequest.DONE){if(de.status===200||de.status===0){let le;if(fe&&de.response?le=new Uint8Array(de.response):!fe&&de.responseText&&(le=(0,d.stringToBytes)(de.responseText)),le){se(le);return}}oe(new Error(de.statusText))}},de.send(null)})}class x extends u.BaseCMapReaderFactory{_fetchData(fe,se){return g(fe,this.isCompressed).then(oe=>({cMapData:oe,compressionType:se}))}}s.DOMCMapReaderFactory=x;class y extends u.BaseStandardFontDataFactory{_fetchData(fe){return g(fe,!0)}}s.DOMStandardFontDataFactory=y;class f extends u.BaseSVGFactory{_createSVG(fe){return document.createElementNS(p,fe)}}s.DOMSVGFactory=f;class m{constructor({viewBox:fe,scale:se,rotation:oe,offsetX:de=0,offsetY:le=0,dontFlip:xe=!1}){this.viewBox=fe,this.scale=se,this.rotation=oe,this.offsetX=de,this.offsetY=le;const Ce=(fe[2]+fe[0])/2,$e=(fe[3]+fe[1])/2;let we,Ee,Ae,pe;switch(oe%=360,oe<0&&(oe+=360),oe){case 180:we=-1,Ee=0,Ae=0,pe=1;break;case 90:we=0,Ee=1,Ae=1,pe=0;break;case 270:we=0,Ee=-1,Ae=-1,pe=0;break;case 0:we=1,Ee=0,Ae=0,pe=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}xe&&(Ae=-Ae,pe=-pe);let he,Ie,ye,Pe;we===0?(he=Math.abs($e-fe[1])*se+de,Ie=Math.abs(Ce-fe[0])*se+le,ye=(fe[3]-fe[1])*se,Pe=(fe[2]-fe[0])*se):(he=Math.abs(Ce-fe[0])*se+de,Ie=Math.abs($e-fe[1])*se+le,ye=(fe[2]-fe[0])*se,Pe=(fe[3]-fe[1])*se),this.transform=[we*se,Ee*se,Ae*se,pe*se,he-we*se*Ce-Ae*se*$e,Ie-Ee*se*Ce-pe*se*$e],this.width=ye,this.height=Pe}get rawDims(){const{viewBox:fe}=this;return(0,d.shadow)(this,"rawDims",{pageWidth:fe[2]-fe[0],pageHeight:fe[3]-fe[1],pageX:fe[0],pageY:fe[1]})}clone({scale:fe=this.scale,rotation:se=this.rotation,offsetX:oe=this.offsetX,offsetY:de=this.offsetY,dontFlip:le=!1}={}){return new m({viewBox:this.viewBox.slice(),scale:fe,rotation:se,offsetX:oe,offsetY:de,dontFlip:le})}convertToViewportPoint(fe,se){return d.Util.applyTransform([fe,se],this.transform)}convertToViewportRectangle(fe){const se=d.Util.applyTransform([fe[0],fe[1]],this.transform),oe=d.Util.applyTransform([fe[2],fe[3]],this.transform);return[se[0],se[1],oe[0],oe[1]]}convertToPdfPoint(fe,se){return d.Util.applyInverseTransform([fe,se],this.transform)}}s.PageViewport=m;class C extends d.BaseException{constructor(fe,se=0){super(fe,"RenderingCancelledException"),this.extraDelay=se}}s.RenderingCancelledException=C;function S(me){const fe=me.length;let se=0;for(;se<fe&&me[se].trim()==="";)se++;return me.substring(se,se+5).toLowerCase()==="data:"}function w(me){return typeof me=="string"&&/\.pdf$/i.test(me)}function I(me,fe=!1){return fe||([me]=me.split(/[#?]/,1)),me.substring(me.lastIndexOf("/")+1)}function P(me,fe="document.pdf"){if(typeof me!="string")return fe;if(S(me))return(0,d.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),fe;const se=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,oe=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,de=se.exec(me);let le=oe.exec(de[1])||oe.exec(de[2])||oe.exec(de[3]);if(le&&(le=le[0],le.includes("%")))try{le=oe.exec(decodeURIComponent(le))[0]}catch{}return le||fe}class ${constructor(){yr(this,"started",Object.create(null));yr(this,"times",[])}time(fe){fe in this.started&&(0,d.warn)(`Timer is already running for ${fe}`),this.started[fe]=Date.now()}timeEnd(fe){fe in this.started||(0,d.warn)(`Timer has not been started for ${fe}`),this.times.push({name:fe,start:this.started[fe],end:Date.now()}),delete this.started[fe]}toString(){const fe=[];let se=0;for(const{name:oe}of this.times)se=Math.max(oe.length,se);for(const{name:oe,start:de,end:le}of this.times)fe.push(`${oe.padEnd(se)} ${le-de}ms
|
59
59
|
`);return fe.join("")}}s.StatTimer=$;function _(me,fe){try{const{protocol:se}=fe?new URL(me,fe):new URL(me);return se==="http:"||se==="https:"}catch{return!1}}function E(me){me.preventDefault()}function R(me,fe=!1){return new Promise((se,oe)=>{const de=document.createElement("script");de.src=me,de.onload=function(le){fe&&de.remove(),se(le)},de.onerror=function(){oe(new Error(`Cannot load script at: ${de.src}`))},(document.head||document.documentElement).append(de)})}function T(me){console.log("Deprecated API usage: "+me)}let B;class M{static toDateObject(fe){if(!fe||typeof fe!="string")return null;B||(B=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const se=B.exec(fe);if(!se)return null;const oe=parseInt(se[1],10);let de=parseInt(se[2],10);de=de>=1&&de<=12?de-1:0;let le=parseInt(se[3],10);le=le>=1&&le<=31?le:1;let xe=parseInt(se[4],10);xe=xe>=0&&xe<=23?xe:0;let Ce=parseInt(se[5],10);Ce=Ce>=0&&Ce<=59?Ce:0;let $e=parseInt(se[6],10);$e=$e>=0&&$e<=59?$e:0;const we=se[7]||"Z";let Ee=parseInt(se[8],10);Ee=Ee>=0&&Ee<=23?Ee:0;let Ae=parseInt(se[9],10)||0;return Ae=Ae>=0&&Ae<=59?Ae:0,we==="-"?(xe+=Ee,Ce+=Ae):we==="+"&&(xe-=Ee,Ce-=Ae),new Date(Date.UTC(oe,de,le,xe,Ce,$e))}}s.PDFDateString=M;function D(me,{scale:fe=1,rotation:se=0}){const{width:oe,height:de}=me.attributes.style,le=[0,0,parseInt(oe),parseInt(de)];return new m({viewBox:le,scale:fe,rotation:se})}function O(me){if(me.startsWith("#")){const fe=parseInt(me.slice(1),16);return[(fe&16711680)>>16,(fe&65280)>>8,fe&255]}return me.startsWith("rgb(")?me.slice(4,-1).split(",").map(fe=>parseInt(fe)):me.startsWith("rgba(")?me.slice(5,-1).split(",").map(fe=>parseInt(fe)).slice(0,3):((0,d.warn)(`Not a valid color format: "${me}"`),[0,0,0])}function H(me){const fe=document.createElement("span");fe.style.visibility="hidden",document.body.append(fe);for(const se of me.keys()){fe.style.color=se;const oe=window.getComputedStyle(fe).color;me.set(se,O(oe))}fe.remove()}function j(me){const{a:fe,b:se,c:oe,d:de,e:le,f:xe}=me.getTransform();return[fe,se,oe,de,le,xe]}function Q(me){const{a:fe,b:se,c:oe,d:de,e:le,f:xe}=me.getTransform().invertSelf();return[fe,se,oe,de,le,xe]}function L(me,fe,se=!1,oe=!0){if(fe instanceof m){const{pageWidth:de,pageHeight:le}=fe.rawDims,{style:xe}=me,Ce=d.FeatureTest.isCSSRoundSupported,$e=`var(--scale-factor) * ${de}px`,we=`var(--scale-factor) * ${le}px`,Ee=Ce?`round(${$e}, 1px)`:`calc(${$e})`,Ae=Ce?`round(${we}, 1px)`:`calc(${we})`;!se||fe.rotation%180===0?(xe.width=Ee,xe.height=Ae):(xe.width=Ae,xe.height=Ee)}oe&&me.setAttribute("data-main-rotation",fe.rotation)}},(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.BaseStandardFontDataFactory=s.BaseSVGFactory=s.BaseFilterFactory=s.BaseCanvasFactory=s.BaseCMapReaderFactory=void 0;var u=c(1);class d{constructor(){this.constructor===d&&(0,u.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(x){return"none"}addHCMFilter(x,y){return"none"}addHighlightHCMFilter(x,y,f,m){return"none"}destroy(x=!1){}}s.BaseFilterFactory=d;class p{constructor(){this.constructor===p&&(0,u.unreachable)("Cannot initialize BaseCanvasFactory.")}create(x,y){if(x<=0||y<=0)throw new Error("Invalid canvas size");const f=this._createCanvas(x,y);return{canvas:f,context:f.getContext("2d")}}reset(x,y,f){if(!x.canvas)throw new Error("Canvas is not specified");if(y<=0||f<=0)throw new Error("Invalid canvas size");x.canvas.width=y,x.canvas.height=f}destroy(x){if(!x.canvas)throw new Error("Canvas is not specified");x.canvas.width=0,x.canvas.height=0,x.canvas=null,x.context=null}_createCanvas(x,y){(0,u.unreachable)("Abstract method `_createCanvas` called.")}}s.BaseCanvasFactory=p;class v{constructor({baseUrl:x=null,isCompressed:y=!0}){this.constructor===v&&(0,u.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=x,this.isCompressed=y}async fetch({name:x}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!x)throw new Error("CMap name must be specified.");const y=this.baseUrl+x+(this.isCompressed?".bcmap":""),f=this.isCompressed?u.CMapCompressionType.BINARY:u.CMapCompressionType.NONE;return this._fetchData(y,f).catch(m=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${y}`)})}_fetchData(x,y){(0,u.unreachable)("Abstract method `_fetchData` called.")}}s.BaseCMapReaderFactory=v;class A{constructor({baseUrl:x=null}){this.constructor===A&&(0,u.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=x}async fetch({filename:x}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!x)throw new Error("Font filename must be specified.");const y=`${this.baseUrl}${x}`;return this._fetchData(y).catch(f=>{throw new Error(`Unable to load font data at: ${y}`)})}_fetchData(x){(0,u.unreachable)("Abstract method `_fetchData` called.")}}s.BaseStandardFontDataFactory=A;class b{constructor(){this.constructor===b&&(0,u.unreachable)("Cannot initialize BaseSVGFactory.")}create(x,y,f=!1){if(x<=0||y<=0)throw new Error("Invalid SVG dimensions");const m=this._createSVG("svg:svg");return m.setAttribute("version","1.1"),f||(m.setAttribute("width",`${x}px`),m.setAttribute("height",`${y}px`)),m.setAttribute("preserveAspectRatio","none"),m.setAttribute("viewBox",`0 0 ${x} ${y}`),m}createElement(x){if(typeof x!="string")throw new Error("Invalid SVG element type");return this._createSVG(x)}_createSVG(x){(0,u.unreachable)("Abstract method `_createSVG` called.")}}s.BaseSVGFactory=b},(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MurmurHash3_64=void 0;var u=c(1);const d=3285377520,p=4294901760,v=65535;class A{constructor(g){this.h1=g?g&4294967295:d,this.h2=g?g&4294967295:d}update(g){let x,y;if(typeof g=="string"){x=new Uint8Array(g.length*2),y=0;for(let T=0,B=g.length;T<B;T++){const M=g.charCodeAt(T);M<=255?x[y++]=M:(x[y++]=M>>>8,x[y++]=M&255)}}else if((0,u.isArrayBuffer)(g))x=g.slice(),y=x.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const f=y>>2,m=y-f*4,C=new Uint32Array(x.buffer,0,f);let S=0,w=0,I=this.h1,P=this.h2;const $=3432918353,_=461845907,E=$&v,R=_&v;for(let T=0;T<f;T++)T&1?(S=C[T],S=S*$&p|S*E&v,S=S<<15|S>>>17,S=S*_&p|S*R&v,I^=S,I=I<<13|I>>>19,I=I*5+3864292196):(w=C[T],w=w*$&p|w*E&v,w=w<<15|w>>>17,w=w*_&p|w*R&v,P^=w,P=P<<13|P>>>19,P=P*5+3864292196);switch(S=0,m){case 3:S^=x[f*4+2]<<16;case 2:S^=x[f*4+1]<<8;case 1:S^=x[f*4],S=S*$&p|S*E&v,S=S<<15|S>>>17,S=S*_&p|S*R&v,f&1?I^=S:P^=S}this.h1=I,this.h2=P}hexdigest(){let g=this.h1,x=this.h2;return g^=x>>>1,g=g*3981806797&p|g*36045&v,x=x*4283543511&p|((x<<16|g>>>16)*2950163797&p)>>>16,g^=x>>>1,g=g*444984403&p|g*60499&v,x=x*3301882366&p|((x<<16|g>>>16)*3120437893&p)>>>16,g^=x>>>1,(g>>>0).toString(16).padStart(8,"0")+(x>>>0).toString(16).padStart(8,"0")}}s.MurmurHash3_64=A},(a,s,c)=>{var v;Object.defineProperty(s,"__esModule",{value:!0}),s.FontLoader=s.FontFaceObject=void 0;var u=c(1);class d{constructor({ownerDocument:b=globalThis.document,styleElement:g=null}){vt(this,v,new Set);this._document=b,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(b){this.nativeFontFaces.add(b),this._document.fonts.add(b)}removeNativeFontFace(b){this.nativeFontFaces.delete(b),this._document.fonts.delete(b)}insertRule(b){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const g=this.styleElement.sheet;g.insertRule(b,g.cssRules.length)}clear(){for(const b of this.nativeFontFaces)this._document.fonts.delete(b);this.nativeFontFaces.clear(),He(this,v).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(b){if(!(!b||He(this,v).has(b.loadedName))){if((0,u.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:g,src:x,style:y}=b,f=new FontFace(g,x,y);this.addNativeFontFace(f);try{await f.load(),He(this,v).add(g)}catch{(0,u.warn)(`Cannot load system font: ${b.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(f)}return}(0,u.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(b){if(b.attached||b.missingFile&&!b.systemFontInfo)return;if(b.attached=!0,b.systemFontInfo){await this.loadSystemFont(b.systemFontInfo);return}if(this.isFontLoadingAPISupported){const x=b.createNativeFontFace();if(x){this.addNativeFontFace(x);try{await x.loaded}catch(y){throw(0,u.warn)(`Failed to load font '${x.family}': '${y}'.`),b.disableFontFace=!0,y}}return}const g=b.createFontFaceRule();if(g){if(this.insertRule(g),this.isSyncFontLoadingSupported)return;await new Promise(x=>{const y=this._queueLoadingCallback(x);this._prepareFontLoadEvent(b,y)})}}get isFontLoadingAPISupported(){var g;const b=!!((g=this._document)!=null&&g.fonts);return(0,u.shadow)(this,"isFontLoadingAPISupported",b)}get isSyncFontLoadingSupported(){let b=!1;return(u.isNodeJS||typeof navigator<"u"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(b=!0),(0,u.shadow)(this,"isSyncFontLoadingSupported",b)}_queueLoadingCallback(b){function g(){for((0,u.assert)(!y.done,"completeRequest() cannot be called twice."),y.done=!0;x.length>0&&x[0].done;){const f=x.shift();setTimeout(f.callback,0)}}const{loadingRequests:x}=this,y={done:!1,complete:g,callback:b};return x.push(y),y}get _loadTestFont(){const b=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,u.shadow)(this,"_loadTestFont",b)}_prepareFontLoadEvent(b,g){function x(O,H){return O.charCodeAt(H)<<24|O.charCodeAt(H+1)<<16|O.charCodeAt(H+2)<<8|O.charCodeAt(H+3)&255}function y(O,H,j,Q){const L=O.substring(0,H),F=O.substring(H+j);return L+Q+F}let f,m;const C=this._document.createElement("canvas");C.width=1,C.height=1;const S=C.getContext("2d");let w=0;function I(O,H){if(++w>30){(0,u.warn)("Load test font never loaded."),H();return}if(S.font="30px "+O,S.fillText(".",0,20),S.getImageData(0,0,1,1).data[3]>0){H();return}setTimeout(I.bind(null,O,H))}const P=`lt${Date.now()}${this.loadTestFontId++}`;let $=this._loadTestFont;$=y($,976,P.length,P);const E=16,R=1482184792;let T=x($,E);for(f=0,m=P.length-3;f<m;f+=4)T=T-R+x(P,f)|0;f<P.length&&(T=T-R+x(P+"XXX",f)|0),$=y($,E,4,(0,u.string32)(T));const B=`url(data:font/opentype;base64,${btoa($)});`,M=`@font-face {font-family:"${P}";src:${B}}`;this.insertRule(M);const D=this._document.createElement("div");D.style.visibility="hidden",D.style.width=D.style.height="10px",D.style.position="absolute",D.style.top=D.style.left="0px";for(const O of[b.loadedName,P]){const H=this._document.createElement("span");H.textContent="Hi",H.style.fontFamily=O,D.append(H)}this._document.body.append(D),I(P,()=>{D.remove(),g.complete()})}}v=new WeakMap,s.FontLoader=d;class p{constructor(b,{isEvalSupported:g=!0,disableFontFace:x=!1,ignoreErrors:y=!1,inspectFont:f=null}){this.compiledGlyphs=Object.create(null);for(const m in b)this[m]=b[m];this.isEvalSupported=g!==!1,this.disableFontFace=x===!0,this.ignoreErrors=y===!0,this._inspectFont=f}createNativeFontFace(){var g;if(!this.data||this.disableFontFace)return null;let b;if(!this.cssFontInfo)b=new FontFace(this.loadedName,this.data,{});else{const x={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(x.style=`oblique ${this.cssFontInfo.italicAngle}deg`),b=new FontFace(this.cssFontInfo.fontFamily,this.data,x)}return(g=this._inspectFont)==null||g.call(this,this),b}createFontFaceRule(){var y;if(!this.data||this.disableFontFace)return null;const b=(0,u.bytesToString)(this.data),g=`url(data:${this.mimetype};base64,${btoa(b)});`;let x;if(!this.cssFontInfo)x=`@font-face {font-family:"${this.loadedName}";src:${g}}`;else{let f=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(f+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),x=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${f}src:${g}}`}return(y=this._inspectFont)==null||y.call(this,this,g),x}getPathGenerator(b,g){if(this.compiledGlyphs[g]!==void 0)return this.compiledGlyphs[g];let x;try{x=b.get(this.loadedName+"_path_"+g)}catch(y){if(!this.ignoreErrors)throw y;return(0,u.warn)(`getPathGenerator - ignoring character: "${y}".`),this.compiledGlyphs[g]=function(f,m){}}if(this.isEvalSupported&&u.FeatureTest.isEvalSupported){const y=[];for(const f of x){const m=f.args!==void 0?f.args.join(","):"";y.push("c.",f.cmd,"(",m,`);
|
60
60
|
`)}return this.compiledGlyphs[g]=new Function("c","size",y.join(""))}return this.compiledGlyphs[g]=function(y,f){for(const m of x)m.cmd==="scale"&&(m.args=[f,-f]),y[m.cmd].apply(y,m.args)}}}s.FontFaceObject=p},(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.NodeStandardFontDataFactory=s.NodeFilterFactory=s.NodeCanvasFactory=s.NodeCMapReaderFactory=void 0;var u=c(7);c(1);const d=function(g){return new Promise((x,y)=>{require$$5.readFile(g,(m,C)=>{if(m||!C){y(new Error(m));return}x(new Uint8Array(C))})})};class p extends u.BaseFilterFactory{}s.NodeFilterFactory=p;class v extends u.BaseCanvasFactory{_createCanvas(x,y){return require$$5.createCanvas(x,y)}}s.NodeCanvasFactory=v;class A extends u.BaseCMapReaderFactory{_fetchData(x,y){return d(x).then(f=>({cMapData:f,compressionType:y}))}}s.NodeCMapReaderFactory=A;class b extends u.BaseStandardFontDataFactory{_fetchData(x){return d(x)}}s.NodeStandardFontDataFactory=b},(a,s,c)=>{var N,il,ol;Object.defineProperty(s,"__esModule",{value:!0}),s.CanvasGraphics=void 0;var u=c(1),d=c(6),p=c(12),v=c(13);const A=16,b=100,g=4096,x=15,y=10,f=1e3,m=16;function C(q,Y){if(q._removeMirroring)throw new Error("Context is already forwarding operations.");q.__originalSave=q.save,q.__originalRestore=q.restore,q.__originalRotate=q.rotate,q.__originalScale=q.scale,q.__originalTranslate=q.translate,q.__originalTransform=q.transform,q.__originalSetTransform=q.setTransform,q.__originalResetTransform=q.resetTransform,q.__originalClip=q.clip,q.__originalMoveTo=q.moveTo,q.__originalLineTo=q.lineTo,q.__originalBezierCurveTo=q.bezierCurveTo,q.__originalRect=q.rect,q.__originalClosePath=q.closePath,q.__originalBeginPath=q.beginPath,q._removeMirroring=()=>{q.save=q.__originalSave,q.restore=q.__originalRestore,q.rotate=q.__originalRotate,q.scale=q.__originalScale,q.translate=q.__originalTranslate,q.transform=q.__originalTransform,q.setTransform=q.__originalSetTransform,q.resetTransform=q.__originalResetTransform,q.clip=q.__originalClip,q.moveTo=q.__originalMoveTo,q.lineTo=q.__originalLineTo,q.bezierCurveTo=q.__originalBezierCurveTo,q.rect=q.__originalRect,q.closePath=q.__originalClosePath,q.beginPath=q.__originalBeginPath,delete q._removeMirroring},q.save=function(){Y.save(),this.__originalSave()},q.restore=function(){Y.restore(),this.__originalRestore()},q.translate=function(ee,re){Y.translate(ee,re),this.__originalTranslate(ee,re)},q.scale=function(ee,re){Y.scale(ee,re),this.__originalScale(ee,re)},q.transform=function(ee,re,ae,V,K,te){Y.transform(ee,re,ae,V,K,te),this.__originalTransform(ee,re,ae,V,K,te)},q.setTransform=function(ee,re,ae,V,K,te){Y.setTransform(ee,re,ae,V,K,te),this.__originalSetTransform(ee,re,ae,V,K,te)},q.resetTransform=function(){Y.resetTransform(),this.__originalResetTransform()},q.rotate=function(ee){Y.rotate(ee),this.__originalRotate(ee)},q.clip=function(ee){Y.clip(ee),this.__originalClip(ee)},q.moveTo=function(Z,ee){Y.moveTo(Z,ee),this.__originalMoveTo(Z,ee)},q.lineTo=function(Z,ee){Y.lineTo(Z,ee),this.__originalLineTo(Z,ee)},q.bezierCurveTo=function(Z,ee,re,ae,V,K){Y.bezierCurveTo(Z,ee,re,ae,V,K),this.__originalBezierCurveTo(Z,ee,re,ae,V,K)},q.rect=function(Z,ee,re,ae){Y.rect(Z,ee,re,ae),this.__originalRect(Z,ee,re,ae)},q.closePath=function(){Y.closePath(),this.__originalClosePath()},q.beginPath=function(){Y.beginPath(),this.__originalBeginPath()}}class S{constructor(Y){this.canvasFactory=Y,this.cache=Object.create(null)}getCanvas(Y,Z,ee){let re;return this.cache[Y]!==void 0?(re=this.cache[Y],this.canvasFactory.reset(re,Z,ee)):(re=this.canvasFactory.create(Z,ee),this.cache[Y]=re),re}delete(Y){delete this.cache[Y]}clear(){for(const Y in this.cache){const Z=this.cache[Y];this.canvasFactory.destroy(Z),delete this.cache[Y]}}}function w(q,Y,Z,ee,re,ae,V,K,te,ie){const[ce,ge,Se,be,me,fe]=(0,d.getCurrentTransform)(q);if(ge===0&&Se===0){const de=V*ce+me,le=Math.round(de),xe=K*be+fe,Ce=Math.round(xe),$e=(V+te)*ce+me,we=Math.abs(Math.round($e)-le)||1,Ee=(K+ie)*be+fe,Ae=Math.abs(Math.round(Ee)-Ce)||1;return q.setTransform(Math.sign(ce),0,0,Math.sign(be),le,Ce),q.drawImage(Y,Z,ee,re,ae,0,0,we,Ae),q.setTransform(ce,ge,Se,be,me,fe),[we,Ae]}if(ce===0&&be===0){const de=K*Se+me,le=Math.round(de),xe=V*ge+fe,Ce=Math.round(xe),$e=(K+ie)*Se+me,we=Math.abs(Math.round($e)-le)||1,Ee=(V+te)*ge+fe,Ae=Math.abs(Math.round(Ee)-Ce)||1;return q.setTransform(0,Math.sign(ge),Math.sign(Se),0,le,Ce),q.drawImage(Y,Z,ee,re,ae,0,0,Ae,we),q.setTransform(ce,ge,Se,be,me,fe),[Ae,we]}q.drawImage(Y,Z,ee,re,ae,V,K,te,ie);const se=Math.hypot(ce,ge),oe=Math.hypot(Se,be);return[se*te,oe*ie]}function I(q){const{width:Y,height:Z}=q;if(Y>f||Z>f)return null;const ee=1e3,re=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),ae=Y+1;let V=new Uint8Array(ae*(Z+1)),K,te,ie;const ce=Y+7&-8;let ge=new Uint8Array(ce*Z),Se=0;for(const oe of q.data){let de=128;for(;de>0;)ge[Se++]=oe&de?0:255,de>>=1}let be=0;for(Se=0,ge[Se]!==0&&(V[0]=1,++be),te=1;te<Y;te++)ge[Se]!==ge[Se+1]&&(V[te]=ge[Se]?2:1,++be),Se++;for(ge[Se]!==0&&(V[te]=2,++be),K=1;K<Z;K++){Se=K*ce,ie=K*ae,ge[Se-ce]!==ge[Se]&&(V[ie]=ge[Se]?1:8,++be);let oe=(ge[Se]?4:0)+(ge[Se-ce]?8:0);for(te=1;te<Y;te++)oe=(oe>>2)+(ge[Se+1]?4:0)+(ge[Se-ce+1]?8:0),re[oe]&&(V[ie+te]=re[oe],++be),Se++;if(ge[Se-ce]!==ge[Se]&&(V[ie+te]=ge[Se]?2:4,++be),be>ee)return null}for(Se=ce*(Z-1),ie=K*ae,ge[Se]!==0&&(V[ie]=8,++be),te=1;te<Y;te++)ge[Se]!==ge[Se+1]&&(V[ie+te]=ge[Se]?4:8,++be),Se++;if(ge[Se]!==0&&(V[ie+te]=4,++be),be>ee)return null;const me=new Int32Array([0,ae,-1,0,-ae,0,0,0,1]),fe=new Path2D;for(K=0;be&&K<=Z;K++){let oe=K*ae;const de=oe+Y;for(;oe<de&&!V[oe];)oe++;if(oe===de)continue;fe.moveTo(oe%ae,K);const le=oe;let xe=V[oe];do{const Ce=me[xe];do oe+=Ce;while(!V[oe]);const $e=V[oe];$e!==5&&$e!==10?(xe=$e,V[oe]=0):(xe=$e&51*xe>>4,V[oe]&=xe>>2|xe<<2),fe.lineTo(oe%ae,oe/ae|0),V[oe]||--be}while(le!==oe);--K}return ge=null,V=null,function(oe){oe.save(),oe.scale(1/Y,-1/Z),oe.translate(0,-Z),oe.fill(fe),oe.beginPath(),oe.restore()}}class P{constructor(Y,Z){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=u.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=u.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=u.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,Y,Z])}clone(){const Y=Object.create(this);return Y.clipBox=this.clipBox.slice(),Y}setCurrentPoint(Y,Z){this.x=Y,this.y=Z}updatePathMinMax(Y,Z,ee){[Z,ee]=u.Util.applyTransform([Z,ee],Y),this.minX=Math.min(this.minX,Z),this.minY=Math.min(this.minY,ee),this.maxX=Math.max(this.maxX,Z),this.maxY=Math.max(this.maxY,ee)}updateRectMinMax(Y,Z){const ee=u.Util.applyTransform(Z,Y),re=u.Util.applyTransform(Z.slice(2),Y);this.minX=Math.min(this.minX,ee[0],re[0]),this.minY=Math.min(this.minY,ee[1],re[1]),this.maxX=Math.max(this.maxX,ee[0],re[0]),this.maxY=Math.max(this.maxY,ee[1],re[1])}updateScalingPathMinMax(Y,Z){u.Util.scaleMinMax(Y,Z),this.minX=Math.min(this.minX,Z[0]),this.maxX=Math.max(this.maxX,Z[1]),this.minY=Math.min(this.minY,Z[2]),this.maxY=Math.max(this.maxY,Z[3])}updateCurvePathMinMax(Y,Z,ee,re,ae,V,K,te,ie,ce){const ge=u.Util.bezierBoundingBox(Z,ee,re,ae,V,K,te,ie);if(ce){ce[0]=Math.min(ce[0],ge[0],ge[2]),ce[1]=Math.max(ce[1],ge[0],ge[2]),ce[2]=Math.min(ce[2],ge[1],ge[3]),ce[3]=Math.max(ce[3],ge[1],ge[3]);return}this.updateRectMinMax(Y,ge)}getPathBoundingBox(Y=p.PathType.FILL,Z=null){const ee=[this.minX,this.minY,this.maxX,this.maxY];if(Y===p.PathType.STROKE){Z||(0,u.unreachable)("Stroke bounding box must include transform.");const re=u.Util.singularValueDecompose2dScale(Z),ae=re[0]*this.lineWidth/2,V=re[1]*this.lineWidth/2;ee[0]-=ae,ee[1]-=V,ee[2]+=ae,ee[3]+=V}return ee}updateClipFromPath(){const Y=u.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(Y||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(Y){this.clipBox=Y,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(Y=p.PathType.FILL,Z=null){return u.Util.intersect(this.clipBox,this.getPathBoundingBox(Y,Z))}}function $(q,Y){if(typeof ImageData<"u"&&Y instanceof ImageData){q.putImageData(Y,0,0);return}const Z=Y.height,ee=Y.width,re=Z%m,ae=(Z-re)/m,V=re===0?ae:ae+1,K=q.createImageData(ee,m);let te=0,ie;const ce=Y.data,ge=K.data;let Se,be,me,fe;if(Y.kind===u.ImageKind.GRAYSCALE_1BPP){const se=ce.byteLength,oe=new Uint32Array(ge.buffer,0,ge.byteLength>>2),de=oe.length,le=ee+7>>3,xe=4294967295,Ce=u.FeatureTest.isLittleEndian?4278190080:255;for(Se=0;Se<V;Se++){for(me=Se<ae?m:re,ie=0,be=0;be<me;be++){const $e=se-te;let we=0;const Ee=$e>le?ee:$e*8-7,Ae=Ee&-8;let pe=0,he=0;for(;we<Ae;we+=8)he=ce[te++],oe[ie++]=he&128?xe:Ce,oe[ie++]=he&64?xe:Ce,oe[ie++]=he&32?xe:Ce,oe[ie++]=he&16?xe:Ce,oe[ie++]=he&8?xe:Ce,oe[ie++]=he&4?xe:Ce,oe[ie++]=he&2?xe:Ce,oe[ie++]=he&1?xe:Ce;for(;we<Ee;we++)pe===0&&(he=ce[te++],pe=128),oe[ie++]=he&pe?xe:Ce,pe>>=1}for(;ie<de;)oe[ie++]=0;q.putImageData(K,0,Se*m)}}else if(Y.kind===u.ImageKind.RGBA_32BPP){for(be=0,fe=ee*m*4,Se=0;Se<ae;Se++)ge.set(ce.subarray(te,te+fe)),te+=fe,q.putImageData(K,0,be),be+=m;Se<V&&(fe=ee*re*4,ge.set(ce.subarray(te,te+fe)),q.putImageData(K,0,be))}else if(Y.kind===u.ImageKind.RGB_24BPP)for(me=m,fe=ee*me,Se=0;Se<V;Se++){for(Se>=ae&&(me=re,fe=ee*me),ie=0,be=fe;be--;)ge[ie++]=ce[te++],ge[ie++]=ce[te++],ge[ie++]=ce[te++],ge[ie++]=255;q.putImageData(K,0,Se*m)}else throw new Error(`bad image kind: ${Y.kind}`)}function _(q,Y){if(Y.bitmap){q.drawImage(Y.bitmap,0,0);return}const Z=Y.height,ee=Y.width,re=Z%m,ae=(Z-re)/m,V=re===0?ae:ae+1,K=q.createImageData(ee,m);let te=0;const ie=Y.data,ce=K.data;for(let ge=0;ge<V;ge++){const Se=ge<ae?m:re;({srcPos:te}=(0,v.convertBlackAndWhiteToRGBA)({src:ie,srcPos:te,dest:ce,width:ee,height:Se,nonBlackColor:0})),q.putImageData(K,0,ge*m)}}function E(q,Y){const Z=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const ee of Z)q[ee]!==void 0&&(Y[ee]=q[ee]);q.setLineDash!==void 0&&(Y.setLineDash(q.getLineDash()),Y.lineDashOffset=q.lineDashOffset)}function R(q){if(q.strokeStyle=q.fillStyle="#000000",q.fillRule="nonzero",q.globalAlpha=1,q.lineWidth=1,q.lineCap="butt",q.lineJoin="miter",q.miterLimit=10,q.globalCompositeOperation="source-over",q.font="10px sans-serif",q.setLineDash!==void 0&&(q.setLineDash([]),q.lineDashOffset=0),!u.isNodeJS){const{filter:Y}=q;Y!=="none"&&Y!==""&&(q.filter="none")}}function T(q,Y,Z,ee){const re=q.length;for(let ae=3;ae<re;ae+=4){const V=q[ae];if(V===0)q[ae-3]=Y,q[ae-2]=Z,q[ae-1]=ee;else if(V<255){const K=255-V;q[ae-3]=q[ae-3]*V+Y*K>>8,q[ae-2]=q[ae-2]*V+Z*K>>8,q[ae-1]=q[ae-1]*V+ee*K>>8}}}function B(q,Y,Z){const ee=q.length,re=1/255;for(let ae=3;ae<ee;ae+=4){const V=Z?Z[q[ae]]:q[ae];Y[ae]=Y[ae]*V*re|0}}function M(q,Y,Z){const ee=q.length;for(let re=3;re<ee;re+=4){const ae=q[re-3]*77+q[re-2]*152+q[re-1]*28;Y[re]=Z?Y[re]*Z[ae>>8]>>8:Y[re]*ae>>16}}function D(q,Y,Z,ee,re,ae,V,K,te,ie,ce){const ge=!!ae,Se=ge?ae[0]:0,be=ge?ae[1]:0,me=ge?ae[2]:0,fe=re==="Luminosity"?M:B,oe=Math.min(ee,Math.ceil(1048576/Z));for(let de=0;de<ee;de+=oe){const le=Math.min(oe,ee-de),xe=q.getImageData(K-ie,de+(te-ce),Z,le),Ce=Y.getImageData(K,de+te,Z,le);ge&&T(xe.data,Se,be,me),fe(xe.data,Ce.data,V),Y.putImageData(Ce,K,de+te)}}function O(q,Y,Z,ee){const re=ee[0],ae=ee[1],V=ee[2]-re,K=ee[3]-ae;V===0||K===0||(D(Y.context,Z,V,K,Y.subtype,Y.backdrop,Y.transferMap,re,ae,Y.offsetX,Y.offsetY),q.save(),q.globalAlpha=1,q.globalCompositeOperation="source-over",q.setTransform(1,0,0,1,0,0),q.drawImage(Z.canvas,0,0),q.restore())}function H(q,Y){const Z=u.Util.singularValueDecompose2dScale(q);Z[0]=Math.fround(Z[0]),Z[1]=Math.fround(Z[1]);const ee=Math.fround((globalThis.devicePixelRatio||1)*d.PixelsPerInch.PDF_TO_CSS_UNITS);return Y!==void 0?Y:Z[0]<=ee||Z[1]<=ee}const j=["butt","round","square"],Q=["miter","round","bevel"],L={},F={},J=class J{constructor(Y,Z,ee,re,ae,{optionalContentConfig:V,markedContentStack:K=null},te,ie){vt(this,N);this.ctx=Y,this.current=new P(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=Z,this.objs=ee,this.canvasFactory=re,this.filterFactory=ae,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=K||[],this.optionalContentConfig=V,this.cachedCanvases=new S(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=te,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=ie,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(Y,Z=null){return typeof Y=="string"?Y.startsWith("g_")?this.commonObjs.get(Y):this.objs.get(Y):Z}beginDrawing({transform:Y,viewport:Z,transparency:ee=!1,background:re=null}){const ae=this.ctx.canvas.width,V=this.ctx.canvas.height,K=this.ctx.fillStyle;if(this.ctx.fillStyle=re||"#ffffff",this.ctx.fillRect(0,0,ae,V),this.ctx.fillStyle=K,ee){const te=this.cachedCanvases.getCanvas("transparent",ae,V);this.compositeCtx=this.ctx,this.transparentCanvas=te.canvas,this.ctx=te.context,this.ctx.save(),this.ctx.transform(...(0,d.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),R(this.ctx),Y&&(this.ctx.transform(...Y),this.outputScaleX=Y[0],this.outputScaleY=Y[0]),this.ctx.transform(...Z.transform),this.viewportScale=Z.scale,this.baseTransform=(0,d.getCurrentTransform)(this.ctx)}executeOperatorList(Y,Z,ee,re){const ae=Y.argsArray,V=Y.fnArray;let K=Z||0;const te=ae.length;if(te===K)return K;const ie=te-K>y&&typeof ee=="function",ce=ie?Date.now()+x:0;let ge=0;const Se=this.commonObjs,be=this.objs;let me;for(;;){if(re!==void 0&&K===re.nextBreakPoint)return re.breakIt(K,ee),K;if(me=V[K],me!==u.OPS.dependency)this[me].apply(this,ae[K]);else for(const fe of ae[K]){const se=fe.startsWith("g_")?Se:be;if(!se.has(fe))return se.get(fe,ee),K}if(K++,K===te)return K;if(ie&&++ge>y){if(Date.now()>ce)return ee(),K;ge=0}}}endDrawing(){it(this,N,il).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const Y of this._cachedBitmapsMap.values()){for(const Z of Y.values())typeof HTMLCanvasElement<"u"&&Z instanceof HTMLCanvasElement&&(Z.width=Z.height=0);Y.clear()}this._cachedBitmapsMap.clear(),it(this,N,ol).call(this)}_scaleImage(Y,Z){const ee=Y.width,re=Y.height;let ae=Math.max(Math.hypot(Z[0],Z[1]),1),V=Math.max(Math.hypot(Z[2],Z[3]),1),K=ee,te=re,ie="prescale1",ce,ge;for(;ae>2&&K>1||V>2&&te>1;){let Se=K,be=te;ae>2&&K>1&&(Se=K>=16384?Math.floor(K/2)-1||1:Math.ceil(K/2),ae/=K/Se),V>2&&te>1&&(be=te>=16384?Math.floor(te/2)-1||1:Math.ceil(te)/2,V/=te/be),ce=this.cachedCanvases.getCanvas(ie,Se,be),ge=ce.context,ge.clearRect(0,0,Se,be),ge.drawImage(Y,0,0,K,te,0,0,Se,be),Y=ce.canvas,K=Se,te=be,ie=ie==="prescale1"?"prescale2":"prescale1"}return{img:Y,paintWidth:K,paintHeight:te}}_createMaskCanvas(Y){const Z=this.ctx,{width:ee,height:re}=Y,ae=this.current.fillColor,V=this.current.patternFill,K=(0,d.getCurrentTransform)(Z);let te,ie,ce,ge;if((Y.bitmap||Y.data)&&Y.count>1){const we=Y.bitmap||Y.data.buffer;ie=JSON.stringify(V?K:[K.slice(0,4),ae]),te=this._cachedBitmapsMap.get(we),te||(te=new Map,this._cachedBitmapsMap.set(we,te));const Ee=te.get(ie);if(Ee&&!V){const Ae=Math.round(Math.min(K[0],K[2])+K[4]),pe=Math.round(Math.min(K[1],K[3])+K[5]);return{canvas:Ee,offsetX:Ae,offsetY:pe}}ce=Ee}ce||(ge=this.cachedCanvases.getCanvas("maskCanvas",ee,re),_(ge.context,Y));let Se=u.Util.transform(K,[1/ee,0,0,-1/re,0,0]);Se=u.Util.transform(Se,[1,0,0,1,0,-re]);const be=u.Util.applyTransform([0,0],Se),me=u.Util.applyTransform([ee,re],Se),fe=u.Util.normalizeRect([be[0],be[1],me[0],me[1]]),se=Math.round(fe[2]-fe[0])||1,oe=Math.round(fe[3]-fe[1])||1,de=this.cachedCanvases.getCanvas("fillCanvas",se,oe),le=de.context,xe=Math.min(be[0],me[0]),Ce=Math.min(be[1],me[1]);le.translate(-xe,-Ce),le.transform(...Se),ce||(ce=this._scaleImage(ge.canvas,(0,d.getCurrentTransformInverse)(le)),ce=ce.img,te&&V&&te.set(ie,ce)),le.imageSmoothingEnabled=H((0,d.getCurrentTransform)(le),Y.interpolate),w(le,ce,0,0,ce.width,ce.height,0,0,ee,re),le.globalCompositeOperation="source-in";const $e=u.Util.transform((0,d.getCurrentTransformInverse)(le),[1,0,0,1,-xe,-Ce]);return le.fillStyle=V?ae.getPattern(Z,this,$e,p.PathType.FILL):ae,le.fillRect(0,0,ee,re),te&&!V&&(this.cachedCanvases.delete("fillCanvas"),te.set(ie,de.canvas)),{canvas:de.canvas,offsetX:Math.round(xe),offsetY:Math.round(Ce)}}setLineWidth(Y){Y!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=Y,this.ctx.lineWidth=Y}setLineCap(Y){this.ctx.lineCap=j[Y]}setLineJoin(Y){this.ctx.lineJoin=Q[Y]}setMiterLimit(Y){this.ctx.miterLimit=Y}setDash(Y,Z){const ee=this.ctx;ee.setLineDash!==void 0&&(ee.setLineDash(Y),ee.lineDashOffset=Z)}setRenderingIntent(Y){}setFlatness(Y){}setGState(Y){for(const[Z,ee]of Y)switch(Z){case"LW":this.setLineWidth(ee);break;case"LC":this.setLineCap(ee);break;case"LJ":this.setLineJoin(ee);break;case"ML":this.setMiterLimit(ee);break;case"D":this.setDash(ee[0],ee[1]);break;case"RI":this.setRenderingIntent(ee);break;case"FL":this.setFlatness(ee);break;case"Font":this.setFont(ee[0],ee[1]);break;case"CA":this.current.strokeAlpha=ee;break;case"ca":this.current.fillAlpha=ee,this.ctx.globalAlpha=ee;break;case"BM":this.ctx.globalCompositeOperation=ee;break;case"SMask":this.current.activeSMask=ee?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(ee);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const Y=this.inSMaskMode;this.current.activeSMask&&!Y?this.beginSMaskMode():!this.current.activeSMask&&Y&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const Y=this.ctx.canvas.width,Z=this.ctx.canvas.height,ee="smaskGroupAt"+this.groupLevel,re=this.cachedCanvases.getCanvas(ee,Y,Z);this.suspendedCtx=this.ctx,this.ctx=re.context;const ae=this.ctx;ae.setTransform(...(0,d.getCurrentTransform)(this.suspendedCtx)),E(this.suspendedCtx,ae),C(ae,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),E(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(Y){if(!this.current.activeSMask)return;Y?(Y[0]=Math.floor(Y[0]),Y[1]=Math.floor(Y[1]),Y[2]=Math.ceil(Y[2]),Y[3]=Math.ceil(Y[3])):Y=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const Z=this.current.activeSMask,ee=this.suspendedCtx;O(ee,Z,this.ctx,Y),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(E(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const Y=this.current;this.stateStack.push(Y),this.current=Y.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),E(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(Y,Z,ee,re,ae,V){this.ctx.transform(Y,Z,ee,re,ae,V),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(Y,Z,ee){const re=this.ctx,ae=this.current;let V=ae.x,K=ae.y,te,ie;const ce=(0,d.getCurrentTransform)(re),ge=ce[0]===0&&ce[3]===0||ce[1]===0&&ce[2]===0,Se=ge?ee.slice(0):null;for(let be=0,me=0,fe=Y.length;be<fe;be++)switch(Y[be]|0){case u.OPS.rectangle:V=Z[me++],K=Z[me++];const se=Z[me++],oe=Z[me++],de=V+se,le=K+oe;re.moveTo(V,K),se===0||oe===0?re.lineTo(de,le):(re.lineTo(de,K),re.lineTo(de,le),re.lineTo(V,le)),ge||ae.updateRectMinMax(ce,[V,K,de,le]),re.closePath();break;case u.OPS.moveTo:V=Z[me++],K=Z[me++],re.moveTo(V,K),ge||ae.updatePathMinMax(ce,V,K);break;case u.OPS.lineTo:V=Z[me++],K=Z[me++],re.lineTo(V,K),ge||ae.updatePathMinMax(ce,V,K);break;case u.OPS.curveTo:te=V,ie=K,V=Z[me+4],K=Z[me+5],re.bezierCurveTo(Z[me],Z[me+1],Z[me+2],Z[me+3],V,K),ae.updateCurvePathMinMax(ce,te,ie,Z[me],Z[me+1],Z[me+2],Z[me+3],V,K,Se),me+=6;break;case u.OPS.curveTo2:te=V,ie=K,re.bezierCurveTo(V,K,Z[me],Z[me+1],Z[me+2],Z[me+3]),ae.updateCurvePathMinMax(ce,te,ie,V,K,Z[me],Z[me+1],Z[me+2],Z[me+3],Se),V=Z[me+2],K=Z[me+3],me+=4;break;case u.OPS.curveTo3:te=V,ie=K,V=Z[me+2],K=Z[me+3],re.bezierCurveTo(Z[me],Z[me+1],V,K,V,K),ae.updateCurvePathMinMax(ce,te,ie,Z[me],Z[me+1],V,K,V,K,Se),me+=4;break;case u.OPS.closePath:re.closePath();break}ge&&ae.updateScalingPathMinMax(ce,Se),ae.setCurrentPoint(V,K)}closePath(){this.ctx.closePath()}stroke(Y=!0){const Z=this.ctx,ee=this.current.strokeColor;Z.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof ee=="object"&&(ee!=null&&ee.getPattern)?(Z.save(),Z.strokeStyle=ee.getPattern(Z,this,(0,d.getCurrentTransformInverse)(Z),p.PathType.STROKE),this.rescaleAndStroke(!1),Z.restore()):this.rescaleAndStroke(!0)),Y&&this.consumePath(this.current.getClippedPathBoundingBox()),Z.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(Y=!0){const Z=this.ctx,ee=this.current.fillColor,re=this.current.patternFill;let ae=!1;re&&(Z.save(),Z.fillStyle=ee.getPattern(Z,this,(0,d.getCurrentTransformInverse)(Z),p.PathType.FILL),ae=!0);const V=this.current.getClippedPathBoundingBox();this.contentVisible&&V!==null&&(this.pendingEOFill?(Z.fill("evenodd"),this.pendingEOFill=!1):Z.fill()),ae&&Z.restore(),Y&&this.consumePath(V)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=L}eoClip(){this.pendingClip=F}beginText(){this.current.textMatrix=u.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const Y=this.pendingTextPaths,Z=this.ctx;if(Y===void 0){Z.beginPath();return}Z.save(),Z.beginPath();for(const ee of Y)Z.setTransform(...ee.transform),Z.translate(ee.x,ee.y),ee.addToPath(Z,ee.fontSize);Z.restore(),Z.clip(),Z.beginPath(),delete this.pendingTextPaths}setCharSpacing(Y){this.current.charSpacing=Y}setWordSpacing(Y){this.current.wordSpacing=Y}setHScale(Y){this.current.textHScale=Y/100}setLeading(Y){this.current.leading=-Y}setFont(Y,Z){var ce;const ee=this.commonObjs.get(Y),re=this.current;if(!ee)throw new Error(`Can't find font for ${Y}`);if(re.fontMatrix=ee.fontMatrix||u.FONT_IDENTITY_MATRIX,(re.fontMatrix[0]===0||re.fontMatrix[3]===0)&&(0,u.warn)("Invalid font matrix for font "+Y),Z<0?(Z=-Z,re.fontDirection=-1):re.fontDirection=1,this.current.font=ee,this.current.fontSize=Z,ee.isType3Font)return;const ae=ee.loadedName||"sans-serif",V=((ce=ee.systemFontInfo)==null?void 0:ce.css)||`"${ae}", ${ee.fallbackName}`;let K="normal";ee.black?K="900":ee.bold&&(K="bold");const te=ee.italic?"italic":"normal";let ie=Z;Z<A?ie=A:Z>b&&(ie=b),this.current.fontSizeScale=Z/ie,this.ctx.font=`${te} ${K} ${ie}px ${V}`}setTextRenderingMode(Y){this.current.textRenderingMode=Y}setTextRise(Y){this.current.textRise=Y}moveText(Y,Z){this.current.x=this.current.lineX+=Y,this.current.y=this.current.lineY+=Z}setLeadingMoveText(Y,Z){this.setLeading(-Z),this.moveText(Y,Z)}setTextMatrix(Y,Z,ee,re,ae,V){this.current.textMatrix=[Y,Z,ee,re,ae,V],this.current.textMatrixScale=Math.hypot(Y,Z),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(Y,Z,ee,re){const ae=this.ctx,V=this.current,K=V.font,te=V.textRenderingMode,ie=V.fontSize/V.fontSizeScale,ce=te&u.TextRenderingMode.FILL_STROKE_MASK,ge=!!(te&u.TextRenderingMode.ADD_TO_PATH_FLAG),Se=V.patternFill&&!K.missingFile;let be;(K.disableFontFace||ge||Se)&&(be=K.getPathGenerator(this.commonObjs,Y)),K.disableFontFace||Se?(ae.save(),ae.translate(Z,ee),ae.beginPath(),be(ae,ie),re&&ae.setTransform(...re),(ce===u.TextRenderingMode.FILL||ce===u.TextRenderingMode.FILL_STROKE)&&ae.fill(),(ce===u.TextRenderingMode.STROKE||ce===u.TextRenderingMode.FILL_STROKE)&&ae.stroke(),ae.restore()):((ce===u.TextRenderingMode.FILL||ce===u.TextRenderingMode.FILL_STROKE)&&ae.fillText(Y,Z,ee),(ce===u.TextRenderingMode.STROKE||ce===u.TextRenderingMode.FILL_STROKE)&&ae.strokeText(Y,Z,ee)),ge&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,d.getCurrentTransform)(ae),x:Z,y:ee,fontSize:ie,addToPath:be})}get isFontSubpixelAAEnabled(){const{context:Y}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);Y.scale(1.5,1),Y.fillText("I",0,10);const Z=Y.getImageData(0,0,10,10).data;let ee=!1;for(let re=3;re<Z.length;re+=4)if(Z[re]>0&&Z[re]<255){ee=!0;break}return(0,u.shadow)(this,"isFontSubpixelAAEnabled",ee)}showText(Y){const Z=this.current,ee=Z.font;if(ee.isType3Font)return this.showType3Text(Y);const re=Z.fontSize;if(re===0)return;const ae=this.ctx,V=Z.fontSizeScale,K=Z.charSpacing,te=Z.wordSpacing,ie=Z.fontDirection,ce=Z.textHScale*ie,ge=Y.length,Se=ee.vertical,be=Se?1:-1,me=ee.defaultVMetrics,fe=re*Z.fontMatrix[0],se=Z.textRenderingMode===u.TextRenderingMode.FILL&&!ee.disableFontFace&&!Z.patternFill;ae.save(),ae.transform(...Z.textMatrix),ae.translate(Z.x,Z.y+Z.textRise),ie>0?ae.scale(ce,-1):ae.scale(ce,1);let oe;if(Z.patternFill){ae.save();const $e=Z.fillColor.getPattern(ae,this,(0,d.getCurrentTransformInverse)(ae),p.PathType.FILL);oe=(0,d.getCurrentTransform)(ae),ae.restore(),ae.fillStyle=$e}let de=Z.lineWidth;const le=Z.textMatrixScale;if(le===0||de===0){const $e=Z.textRenderingMode&u.TextRenderingMode.FILL_STROKE_MASK;($e===u.TextRenderingMode.STROKE||$e===u.TextRenderingMode.FILL_STROKE)&&(de=this.getSinglePixelWidth())}else de/=le;if(V!==1&&(ae.scale(V,V),de/=V),ae.lineWidth=de,ee.isInvalidPDFjsFont){const $e=[];let we=0;for(const Ee of Y)$e.push(Ee.unicode),we+=Ee.width;ae.fillText($e.join(""),0,0),Z.x+=we*fe*ce,ae.restore(),this.compose();return}let xe=0,Ce;for(Ce=0;Ce<ge;++Ce){const $e=Y[Ce];if(typeof $e=="number"){xe+=be*$e*re/1e3;continue}let we=!1;const Ee=($e.isSpace?te:0)+K,Ae=$e.fontChar,pe=$e.accent;let he,Ie,ye=$e.width;if(Se){const Le=$e.vmetric||me,Ne=-($e.vmetric?Le[1]:ye*.5)*fe,Me=Le[2]*fe;ye=Le?-Le[0]:ye,he=Ne/V,Ie=(xe+Me)/V}else he=xe/V,Ie=0;if(ee.remeasure&&ye>0){const Le=ae.measureText(Ae).width*1e3/re*V;if(ye<Le&&this.isFontSubpixelAAEnabled){const Ne=ye/Le;we=!0,ae.save(),ae.scale(Ne,1),he/=Ne}else ye!==Le&&(he+=(ye-Le)/2e3*re/V)}if(this.contentVisible&&($e.isInFont||ee.missingFile)){if(se&&!pe)ae.fillText(Ae,he,Ie);else if(this.paintChar(Ae,he,Ie,oe),pe){const Le=he+re*pe.offset.x/V,Ne=Ie-re*pe.offset.y/V;this.paintChar(pe.fontChar,Le,Ne,oe)}}const Pe=Se?ye*fe-Ee*ie:ye*fe+Ee*ie;xe+=Pe,we&&ae.restore()}Se?Z.y-=xe:Z.x+=xe*ce,ae.restore(),this.compose()}showType3Text(Y){const Z=this.ctx,ee=this.current,re=ee.font,ae=ee.fontSize,V=ee.fontDirection,K=re.vertical?1:-1,te=ee.charSpacing,ie=ee.wordSpacing,ce=ee.textHScale*V,ge=ee.fontMatrix||u.FONT_IDENTITY_MATRIX,Se=Y.length,be=ee.textRenderingMode===u.TextRenderingMode.INVISIBLE;let me,fe,se,oe;if(!(be||ae===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,Z.save(),Z.transform(...ee.textMatrix),Z.translate(ee.x,ee.y),Z.scale(ce,V),me=0;me<Se;++me){if(fe=Y[me],typeof fe=="number"){oe=K*fe*ae/1e3,this.ctx.translate(oe,0),ee.x+=oe*ce;continue}const de=(fe.isSpace?ie:0)+te,le=re.charProcOperatorList[fe.operatorListId];if(!le){(0,u.warn)(`Type3 character "${fe.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=fe,this.save(),Z.scale(ae,ae),Z.transform(...ge),this.executeOperatorList(le),this.restore()),se=u.Util.applyTransform([fe.width,0],ge)[0]*ae+de,Z.translate(se,0),ee.x+=se*ce}Z.restore(),this.processingType3=null}}setCharWidth(Y,Z){}setCharWidthAndBounds(Y,Z,ee,re,ae,V){this.ctx.rect(ee,re,ae-ee,V-re),this.ctx.clip(),this.endPath()}getColorN_Pattern(Y){let Z;if(Y[0]==="TilingPattern"){const ee=Y[1],re=this.baseTransform||(0,d.getCurrentTransform)(this.ctx),ae={createCanvasGraphics:V=>new J(V,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};Z=new p.TilingPattern(Y,ee,this.ctx,ae,re)}else Z=this._getPattern(Y[1],Y[2]);return Z}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(Y,Z,ee){const re=u.Util.makeHexColor(Y,Z,ee);this.ctx.strokeStyle=re,this.current.strokeColor=re}setFillRGBColor(Y,Z,ee){const re=u.Util.makeHexColor(Y,Z,ee);this.ctx.fillStyle=re,this.current.fillColor=re,this.current.patternFill=!1}_getPattern(Y,Z=null){let ee;return this.cachedPatterns.has(Y)?ee=this.cachedPatterns.get(Y):(ee=(0,p.getShadingPattern)(this.getObject(Y)),this.cachedPatterns.set(Y,ee)),Z&&(ee.matrix=Z),ee}shadingFill(Y){if(!this.contentVisible)return;const Z=this.ctx;this.save();const ee=this._getPattern(Y);Z.fillStyle=ee.getPattern(Z,this,(0,d.getCurrentTransformInverse)(Z),p.PathType.SHADING);const re=(0,d.getCurrentTransformInverse)(Z);if(re){const{width:ae,height:V}=Z.canvas,[K,te,ie,ce]=u.Util.getAxialAlignedBoundingBox([0,0,ae,V],re);this.ctx.fillRect(K,te,ie-K,ce-te)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,u.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,u.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(Y,Z){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(Y)&&Y.length===6&&this.transform(...Y),this.baseTransform=(0,d.getCurrentTransform)(this.ctx),Z)){const ee=Z[2]-Z[0],re=Z[3]-Z[1];this.ctx.rect(Z[0],Z[1],ee,re),this.current.updateRectMinMax((0,d.getCurrentTransform)(this.ctx),Z),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(Y){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const Z=this.ctx;Y.isolated||(0,u.info)("TODO: Support non-isolated groups."),Y.knockout&&(0,u.warn)("Knockout groups not supported.");const ee=(0,d.getCurrentTransform)(Z);if(Y.matrix&&Z.transform(...Y.matrix),!Y.bbox)throw new Error("Bounding box is required.");let re=u.Util.getAxialAlignedBoundingBox(Y.bbox,(0,d.getCurrentTransform)(Z));const ae=[0,0,Z.canvas.width,Z.canvas.height];re=u.Util.intersect(re,ae)||[0,0,0,0];const V=Math.floor(re[0]),K=Math.floor(re[1]);let te=Math.max(Math.ceil(re[2])-V,1),ie=Math.max(Math.ceil(re[3])-K,1),ce=1,ge=1;te>g&&(ce=te/g,te=g),ie>g&&(ge=ie/g,ie=g),this.current.startNewPathAndClipBox([0,0,te,ie]);let Se="groupAt"+this.groupLevel;Y.smask&&(Se+="_smask_"+this.smaskCounter++%2);const be=this.cachedCanvases.getCanvas(Se,te,ie),me=be.context;me.scale(1/ce,1/ge),me.translate(-V,-K),me.transform(...ee),Y.smask?this.smaskStack.push({canvas:be.canvas,context:me,offsetX:V,offsetY:K,scaleX:ce,scaleY:ge,subtype:Y.smask.subtype,backdrop:Y.smask.backdrop,transferMap:Y.smask.transferMap||null,startTransformInverse:null}):(Z.setTransform(1,0,0,1,0,0),Z.translate(V,K),Z.scale(ce,ge),Z.save()),E(Z,me),this.ctx=me,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(Z),this.groupLevel++}endGroup(Y){if(!this.contentVisible)return;this.groupLevel--;const Z=this.ctx,ee=this.groupStack.pop();if(this.ctx=ee,this.ctx.imageSmoothingEnabled=!1,Y.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const re=(0,d.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...re);const ae=u.Util.getAxialAlignedBoundingBox([0,0,Z.canvas.width,Z.canvas.height],re);this.ctx.drawImage(Z.canvas,0,0),this.ctx.restore(),this.compose(ae)}}beginAnnotation(Y,Z,ee,re,ae){if(it(this,N,il).call(this),R(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(Z)&&Z.length===4){const V=Z[2]-Z[0],K=Z[3]-Z[1];if(ae&&this.annotationCanvasMap){ee=ee.slice(),ee[4]-=Z[0],ee[5]-=Z[1],Z=Z.slice(),Z[0]=Z[1]=0,Z[2]=V,Z[3]=K;const[te,ie]=u.Util.singularValueDecompose2dScale((0,d.getCurrentTransform)(this.ctx)),{viewportScale:ce}=this,ge=Math.ceil(V*this.outputScaleX*ce),Se=Math.ceil(K*this.outputScaleY*ce);this.annotationCanvas=this.canvasFactory.create(ge,Se);const{canvas:be,context:me}=this.annotationCanvas;this.annotationCanvasMap.set(Y,be),this.annotationCanvas.savedCtx=this.ctx,this.ctx=me,this.ctx.save(),this.ctx.setTransform(te,0,0,-ie,0,K*ie),R(this.ctx)}else R(this.ctx),this.ctx.rect(Z[0],Z[1],V,K),this.ctx.clip(),this.endPath()}this.current=new P(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...ee),this.transform(...re)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),it(this,N,ol).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(Y){if(!this.contentVisible)return;const Z=Y.count;Y=this.getObject(Y.data,Y),Y.count=Z;const ee=this.ctx,re=this.processingType3;if(re&&(re.compiled===void 0&&(re.compiled=I(Y)),re.compiled)){re.compiled(ee);return}const ae=this._createMaskCanvas(Y),V=ae.canvas;ee.save(),ee.setTransform(1,0,0,1,0,0),ee.drawImage(V,ae.offsetX,ae.offsetY),ee.restore(),this.compose()}paintImageMaskXObjectRepeat(Y,Z,ee=0,re=0,ae,V){if(!this.contentVisible)return;Y=this.getObject(Y.data,Y);const K=this.ctx;K.save();const te=(0,d.getCurrentTransform)(K);K.transform(Z,ee,re,ae,0,0);const ie=this._createMaskCanvas(Y);K.setTransform(1,0,0,1,ie.offsetX-te[4],ie.offsetY-te[5]);for(let ce=0,ge=V.length;ce<ge;ce+=2){const Se=u.Util.transform(te,[Z,ee,re,ae,V[ce],V[ce+1]]),[be,me]=u.Util.applyTransform([0,0],Se);K.drawImage(ie.canvas,be,me)}K.restore(),this.compose()}paintImageMaskXObjectGroup(Y){if(!this.contentVisible)return;const Z=this.ctx,ee=this.current.fillColor,re=this.current.patternFill;for(const ae of Y){const{data:V,width:K,height:te,transform:ie}=ae,ce=this.cachedCanvases.getCanvas("maskCanvas",K,te),ge=ce.context;ge.save();const Se=this.getObject(V,ae);_(ge,Se),ge.globalCompositeOperation="source-in",ge.fillStyle=re?ee.getPattern(ge,this,(0,d.getCurrentTransformInverse)(Z),p.PathType.FILL):ee,ge.fillRect(0,0,K,te),ge.restore(),Z.save(),Z.transform(...ie),Z.scale(1,-1),w(Z,ce.canvas,0,0,K,te,0,-1,1,1),Z.restore()}this.compose()}paintImageXObject(Y){if(!this.contentVisible)return;const Z=this.getObject(Y);if(!Z){(0,u.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(Z)}paintImageXObjectRepeat(Y,Z,ee,re){if(!this.contentVisible)return;const ae=this.getObject(Y);if(!ae){(0,u.warn)("Dependent image isn't ready yet");return}const V=ae.width,K=ae.height,te=[];for(let ie=0,ce=re.length;ie<ce;ie+=2)te.push({transform:[Z,0,0,ee,re[ie],re[ie+1]],x:0,y:0,w:V,h:K});this.paintInlineImageXObjectGroup(ae,te)}applyTransferMapsToCanvas(Y){return this.current.transferMaps!=="none"&&(Y.filter=this.current.transferMaps,Y.drawImage(Y.canvas,0,0),Y.filter="none"),Y.canvas}applyTransferMapsToBitmap(Y){if(this.current.transferMaps==="none")return Y.bitmap;const{bitmap:Z,width:ee,height:re}=Y,ae=this.cachedCanvases.getCanvas("inlineImage",ee,re),V=ae.context;return V.filter=this.current.transferMaps,V.drawImage(Z,0,0),V.filter="none",ae.canvas}paintInlineImageXObject(Y){if(!this.contentVisible)return;const Z=Y.width,ee=Y.height,re=this.ctx;if(this.save(),!u.isNodeJS){const{filter:K}=re;K!=="none"&&K!==""&&(re.filter="none")}re.scale(1/Z,-1/ee);let ae;if(Y.bitmap)ae=this.applyTransferMapsToBitmap(Y);else if(typeof HTMLElement=="function"&&Y instanceof HTMLElement||!Y.data)ae=Y;else{const te=this.cachedCanvases.getCanvas("inlineImage",Z,ee).context;$(te,Y),ae=this.applyTransferMapsToCanvas(te)}const V=this._scaleImage(ae,(0,d.getCurrentTransformInverse)(re));re.imageSmoothingEnabled=H((0,d.getCurrentTransform)(re),Y.interpolate),w(re,V.img,0,0,V.paintWidth,V.paintHeight,0,-ee,Z,ee),this.compose(),this.restore()}paintInlineImageXObjectGroup(Y,Z){if(!this.contentVisible)return;const ee=this.ctx;let re;if(Y.bitmap)re=Y.bitmap;else{const ae=Y.width,V=Y.height,te=this.cachedCanvases.getCanvas("inlineImage",ae,V).context;$(te,Y),re=this.applyTransferMapsToCanvas(te)}for(const ae of Z)ee.save(),ee.transform(...ae.transform),ee.scale(1,-1),w(ee,re,ae.x,ae.y,ae.w,ae.h,0,-1,1,1),ee.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(Y){}markPointProps(Y,Z){}beginMarkedContent(Y){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(Y,Z){Y==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(Z)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(Y){const Z=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(Y);const ee=this.ctx;this.pendingClip&&(Z||(this.pendingClip===F?ee.clip("evenodd"):ee.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),ee.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const Y=(0,d.getCurrentTransform)(this.ctx);if(Y[1]===0&&Y[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(Y[0]),Math.abs(Y[3]));else{const Z=Math.abs(Y[0]*Y[3]-Y[2]*Y[1]),ee=Math.hypot(Y[0],Y[2]),re=Math.hypot(Y[1],Y[3]);this._cachedGetSinglePixelWidth=Math.max(ee,re)/Z}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:Y}=this.current,{a:Z,b:ee,c:re,d:ae}=this.ctx.getTransform();let V,K;if(ee===0&&re===0){const te=Math.abs(Z),ie=Math.abs(ae);if(te===ie)if(Y===0)V=K=1/te;else{const ce=te*Y;V=K=ce<1?1/ce:1}else if(Y===0)V=1/te,K=1/ie;else{const ce=te*Y,ge=ie*Y;V=ce<1?1/ce:1,K=ge<1?1/ge:1}}else{const te=Math.abs(Z*ae-ee*re),ie=Math.hypot(Z,ee),ce=Math.hypot(re,ae);if(Y===0)V=ce/te,K=ie/te;else{const ge=Y*te;V=ce>ge?ce/ge:1,K=ie>ge?ie/ge:1}}this._cachedScaleForStroking[0]=V,this._cachedScaleForStroking[1]=K}return this._cachedScaleForStroking}rescaleAndStroke(Y){const{ctx:Z}=this,{lineWidth:ee}=this.current,[re,ae]=this.getScaleForStroking();if(Z.lineWidth=ee||1,re===1&&ae===1){Z.stroke();return}const V=Z.getLineDash();if(Y&&Z.save(),Z.scale(re,ae),V.length>0){const K=Math.max(re,ae);Z.setLineDash(V.map(te=>te/K)),Z.lineDashOffset/=K}Z.stroke(),Y&&Z.restore()}isContentVisible(){for(let Y=this.markedContentStack.length-1;Y>=0;Y--)if(!this.markedContentStack[Y].visible)return!1;return!0}};N=new WeakSet,il=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},ol=function(){if(this.pageColors){const Y=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(Y!=="none"){const Z=this.ctx.filter;this.ctx.filter=Y,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=Z}}};let U=J;s.CanvasGraphics=U;for(const q in u.OPS)U.prototype[q]!==void 0&&(U.prototype[u.OPS[q]]=U.prototype[q])},(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.TilingPattern=s.PathType=void 0,s.getShadingPattern=m;var u=c(1),d=c(6);const p={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};s.PathType=p;function v(I,P){if(!P)return;const $=P[2]-P[0],_=P[3]-P[1],E=new Path2D;E.rect(P[0],P[1],$,_),I.clip(E)}class A{constructor(){this.constructor===A&&(0,u.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,u.unreachable)("Abstract method `getPattern` called.")}}class b extends A{constructor(P){super(),this._type=P[1],this._bbox=P[2],this._colorStops=P[3],this._p0=P[4],this._p1=P[5],this._r0=P[6],this._r1=P[7],this.matrix=null}_createGradient(P){let $;this._type==="axial"?$=P.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&($=P.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const _ of this._colorStops)$.addColorStop(_[0],_[1]);return $}getPattern(P,$,_,E){let R;if(E===p.STROKE||E===p.FILL){const T=$.current.getClippedPathBoundingBox(E,(0,d.getCurrentTransform)(P))||[0,0,0,0],B=Math.ceil(T[2]-T[0])||1,M=Math.ceil(T[3]-T[1])||1,D=$.cachedCanvases.getCanvas("pattern",B,M,!0),O=D.context;O.clearRect(0,0,O.canvas.width,O.canvas.height),O.beginPath(),O.rect(0,0,O.canvas.width,O.canvas.height),O.translate(-T[0],-T[1]),_=u.Util.transform(_,[1,0,0,1,T[0],T[1]]),O.transform(...$.baseTransform),this.matrix&&O.transform(...this.matrix),v(O,this._bbox),O.fillStyle=this._createGradient(O),O.fill(),R=P.createPattern(D.canvas,"no-repeat");const H=new DOMMatrix(_);R.setTransform(H)}else v(P,this._bbox),R=this._createGradient(P);return R}}function g(I,P,$,_,E,R,T,B){const M=P.coords,D=P.colors,O=I.data,H=I.width*4;let j;M[$+1]>M[_+1]&&(j=$,$=_,_=j,j=R,R=T,T=j),M[_+1]>M[E+1]&&(j=_,_=E,E=j,j=T,T=B,B=j),M[$+1]>M[_+1]&&(j=$,$=_,_=j,j=R,R=T,T=j);const Q=(M[$]+P.offsetX)*P.scaleX,L=(M[$+1]+P.offsetY)*P.scaleY,F=(M[_]+P.offsetX)*P.scaleX,U=(M[_+1]+P.offsetY)*P.scaleY,N=(M[E]+P.offsetX)*P.scaleX,k=(M[E+1]+P.offsetY)*P.scaleY;if(L>=k)return;const W=D[R],J=D[R+1],q=D[R+2],Y=D[T],Z=D[T+1],ee=D[T+2],re=D[B],ae=D[B+1],V=D[B+2],K=Math.round(L),te=Math.round(k);let ie,ce,ge,Se,be,me,fe,se;for(let oe=K;oe<=te;oe++){if(oe<U){const $e=oe<L?0:(L-oe)/(L-U);ie=Q-(Q-F)*$e,ce=W-(W-Y)*$e,ge=J-(J-Z)*$e,Se=q-(q-ee)*$e}else{let $e;oe>k?$e=1:U===k?$e=0:$e=(U-oe)/(U-k),ie=F-(F-N)*$e,ce=Y-(Y-re)*$e,ge=Z-(Z-ae)*$e,Se=ee-(ee-V)*$e}let de;oe<L?de=0:oe>k?de=1:de=(L-oe)/(L-k),be=Q-(Q-N)*de,me=W-(W-re)*de,fe=J-(J-ae)*de,se=q-(q-V)*de;const le=Math.round(Math.min(ie,be)),xe=Math.round(Math.max(ie,be));let Ce=H*oe+le*4;for(let $e=le;$e<=xe;$e++)de=(ie-$e)/(ie-be),de<0?de=0:de>1&&(de=1),O[Ce++]=ce-(ce-me)*de|0,O[Ce++]=ge-(ge-fe)*de|0,O[Ce++]=Se-(Se-se)*de|0,O[Ce++]=255}}function x(I,P,$){const _=P.coords,E=P.colors;let R,T;switch(P.type){case"lattice":const B=P.verticesPerRow,M=Math.floor(_.length/B)-1,D=B-1;for(R=0;R<M;R++){let O=R*B;for(let H=0;H<D;H++,O++)g(I,$,_[O],_[O+1],_[O+B],E[O],E[O+1],E[O+B]),g(I,$,_[O+B+1],_[O+1],_[O+B],E[O+B+1],E[O+1],E[O+B])}break;case"triangles":for(R=0,T=_.length;R<T;R+=3)g(I,$,_[R],_[R+1],_[R+2],E[R],E[R+1],E[R+2]);break;default:throw new Error("illegal figure")}}class y extends A{constructor(P){super(),this._coords=P[2],this._colors=P[3],this._figures=P[4],this._bounds=P[5],this._bbox=P[7],this._background=P[8],this.matrix=null}_createMeshCanvas(P,$,_){const B=Math.floor(this._bounds[0]),M=Math.floor(this._bounds[1]),D=Math.ceil(this._bounds[2])-B,O=Math.ceil(this._bounds[3])-M,H=Math.min(Math.ceil(Math.abs(D*P[0]*1.1)),3e3),j=Math.min(Math.ceil(Math.abs(O*P[1]*1.1)),3e3),Q=D/H,L=O/j,F={coords:this._coords,colors:this._colors,offsetX:-B,offsetY:-M,scaleX:1/Q,scaleY:1/L},U=H+2*2,N=j+2*2,k=_.getCanvas("mesh",U,N,!1),W=k.context,J=W.createImageData(H,j);if($){const Y=J.data;for(let Z=0,ee=Y.length;Z<ee;Z+=4)Y[Z]=$[0],Y[Z+1]=$[1],Y[Z+2]=$[2],Y[Z+3]=255}for(const Y of this._figures)x(J,Y,F);return W.putImageData(J,2,2),{canvas:k.canvas,offsetX:B-2*Q,offsetY:M-2*L,scaleX:Q,scaleY:L}}getPattern(P,$,_,E){v(P,this._bbox);let R;if(E===p.SHADING)R=u.Util.singularValueDecompose2dScale((0,d.getCurrentTransform)(P));else if(R=u.Util.singularValueDecompose2dScale($.baseTransform),this.matrix){const B=u.Util.singularValueDecompose2dScale(this.matrix);R=[R[0]*B[0],R[1]*B[1]]}const T=this._createMeshCanvas(R,E===p.SHADING?null:this._background,$.cachedCanvases);return E!==p.SHADING&&(P.setTransform(...$.baseTransform),this.matrix&&P.transform(...this.matrix)),P.translate(T.offsetX,T.offsetY),P.scale(T.scaleX,T.scaleY),P.createPattern(T.canvas,"no-repeat")}}class f extends A{getPattern(){return"hotpink"}}function m(I){switch(I[0]){case"RadialAxial":return new b(I);case"Mesh":return new y(I);case"Dummy":return new f}throw new Error(`Unknown IR type: ${I[0]}`)}const C={COLORED:1,UNCOLORED:2},w=class w{constructor(P,$,_,E,R){this.operatorList=P[2],this.matrix=P[3]||[1,0,0,1,0,0],this.bbox=P[4],this.xstep=P[5],this.ystep=P[6],this.paintType=P[7],this.tilingType=P[8],this.color=$,this.ctx=_,this.canvasGraphicsFactory=E,this.baseTransform=R}createPatternCanvas(P){const $=this.operatorList,_=this.bbox,E=this.xstep,R=this.ystep,T=this.paintType,B=this.tilingType,M=this.color,D=this.canvasGraphicsFactory;(0,u.info)("TilingType: "+B);const O=_[0],H=_[1],j=_[2],Q=_[3],L=u.Util.singularValueDecompose2dScale(this.matrix),F=u.Util.singularValueDecompose2dScale(this.baseTransform),U=[L[0]*F[0],L[1]*F[1]],N=this.getSizeAndScale(E,this.ctx.canvas.width,U[0]),k=this.getSizeAndScale(R,this.ctx.canvas.height,U[1]),W=P.cachedCanvases.getCanvas("pattern",N.size,k.size,!0),J=W.context,q=D.createCanvasGraphics(J);q.groupLevel=P.groupLevel,this.setFillAndStrokeStyleToContext(q,T,M);let Y=O,Z=H,ee=j,re=Q;return O<0&&(Y=0,ee+=Math.abs(O)),H<0&&(Z=0,re+=Math.abs(H)),J.translate(-(N.scale*Y),-(k.scale*Z)),q.transform(N.scale,0,0,k.scale,0,0),J.save(),this.clipBbox(q,Y,Z,ee,re),q.baseTransform=(0,d.getCurrentTransform)(q.ctx),q.executeOperatorList($),q.endDrawing(),{canvas:W.canvas,scaleX:N.scale,scaleY:k.scale,offsetX:Y,offsetY:Z}}getSizeAndScale(P,$,_){P=Math.abs(P);const E=Math.max(w.MAX_PATTERN_SIZE,$);let R=Math.ceil(P*_);return R>=E?R=E:_=R/P,{scale:_,size:R}}clipBbox(P,$,_,E,R){const T=E-$,B=R-_;P.ctx.rect($,_,T,B),P.current.updateRectMinMax((0,d.getCurrentTransform)(P.ctx),[$,_,E,R]),P.clip(),P.endPath()}setFillAndStrokeStyleToContext(P,$,_){const E=P.ctx,R=P.current;switch($){case C.COLORED:const T=this.ctx;E.fillStyle=T.fillStyle,E.strokeStyle=T.strokeStyle,R.fillColor=T.fillStyle,R.strokeColor=T.strokeStyle;break;case C.UNCOLORED:const B=u.Util.makeHexColor(_[0],_[1],_[2]);E.fillStyle=B,E.strokeStyle=B,R.fillColor=B,R.strokeColor=B;break;default:throw new u.FormatError(`Unsupported paint type: ${$}`)}}getPattern(P,$,_,E){let R=_;E!==p.SHADING&&(R=u.Util.transform(R,$.baseTransform),this.matrix&&(R=u.Util.transform(R,this.matrix)));const T=this.createPatternCanvas($);let B=new DOMMatrix(R);B=B.translate(T.offsetX,T.offsetY),B=B.scale(1/T.scaleX,1/T.scaleY);const M=P.createPattern(T.canvas,"repeat");return M.setTransform(B),M}};yr(w,"MAX_PATTERN_SIZE",3e3);let S=w;s.TilingPattern=S},(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.convertBlackAndWhiteToRGBA=p,s.convertToRGBA=d,s.grayToRGBA=A;var u=c(1);function d(b){switch(b.kind){case u.ImageKind.GRAYSCALE_1BPP:return p(b);case u.ImageKind.RGB_24BPP:return v(b)}return null}function p({src:b,srcPos:g=0,dest:x,width:y,height:f,nonBlackColor:m=4294967295,inverseDecode:C=!1}){const S=u.FeatureTest.isLittleEndian?4278190080:255,[w,I]=C?[m,S]:[S,m],P=y>>3,$=y&7,_=b.length;x=new Uint32Array(x.buffer);let E=0;for(let R=0;R<f;R++){for(const B=g+P;g<B;g++){const M=g<_?b[g]:255;x[E++]=M&128?I:w,x[E++]=M&64?I:w,x[E++]=M&32?I:w,x[E++]=M&16?I:w,x[E++]=M&8?I:w,x[E++]=M&4?I:w,x[E++]=M&2?I:w,x[E++]=M&1?I:w}if($===0)continue;const T=g<_?b[g++]:255;for(let B=0;B<$;B++)x[E++]=T&1<<7-B?I:w}return{srcPos:g,destPos:E}}function v({src:b,srcPos:g=0,dest:x,destPos:y=0,width:f,height:m}){let C=0;const S=b.length>>2,w=new Uint32Array(b.buffer,g,S);if(u.FeatureTest.isLittleEndian){for(;C<S-2;C+=3,y+=4){const I=w[C],P=w[C+1],$=w[C+2];x[y]=I|4278190080,x[y+1]=I>>>24|P<<8|4278190080,x[y+2]=P>>>16|$<<16|4278190080,x[y+3]=$>>>8|4278190080}for(let I=C*4,P=b.length;I<P;I+=3)x[y++]=b[I]|b[I+1]<<8|b[I+2]<<16|4278190080}else{for(;C<S-2;C+=3,y+=4){const I=w[C],P=w[C+1],$=w[C+2];x[y]=I|255,x[y+1]=I<<24|P>>>8|255,x[y+2]=P<<16|$>>>16|255,x[y+3]=$<<8|255}for(let I=C*4,P=b.length;I<P;I+=3)x[y++]=b[I]<<24|b[I+1]<<16|b[I+2]<<8|255}return{srcPos:g,destPos:y}}function A(b,g){if(u.FeatureTest.isLittleEndian)for(let x=0,y=b.length;x<y;x++)g[x]=b[x]*65793|4278190080;else for(let x=0,y=b.length;x<y;x++)g[x]=b[x]*16843008|255}},(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.GlobalWorkerOptions=void 0;const c=Object.create(null);s.GlobalWorkerOptions=c,c.workerPort=null,c.workerSrc=""},(a,s,c)=>{var b,Ou,Du,bo;Object.defineProperty(s,"__esModule",{value:!0}),s.MessageHandler=void 0;var u=c(1);const d={DATA:1,ERROR:2},p={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function v(f){switch(f instanceof Error||typeof f=="object"&&f!==null||(0,u.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),f.name){case"AbortException":return new u.AbortException(f.message);case"MissingPDFException":return new u.MissingPDFException(f.message);case"PasswordException":return new u.PasswordException(f.message,f.code);case"UnexpectedResponseException":return new u.UnexpectedResponseException(f.message,f.status);case"UnknownErrorException":return new u.UnknownErrorException(f.message,f.details);default:return new u.UnknownErrorException(f.message,f.toString())}}class A{constructor(m,C,S){vt(this,b);this.sourceName=m,this.targetName=C,this.comObj=S,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=w=>{const I=w.data;if(I.targetName!==this.sourceName)return;if(I.stream){it(this,b,Du).call(this,I);return}if(I.callback){const $=I.callbackId,_=this.callbackCapabilities[$];if(!_)throw new Error(`Cannot resolve callback ${$}`);if(delete this.callbackCapabilities[$],I.callback===d.DATA)_.resolve(I.data);else if(I.callback===d.ERROR)_.reject(v(I.reason));else throw new Error("Unexpected callback case");return}const P=this.actionHandler[I.action];if(!P)throw new Error(`Unknown action from worker: ${I.action}`);if(I.callbackId){const $=this.sourceName,_=I.sourceName;new Promise(function(E){E(P(I.data))}).then(function(E){S.postMessage({sourceName:$,targetName:_,callback:d.DATA,callbackId:I.callbackId,data:E})},function(E){S.postMessage({sourceName:$,targetName:_,callback:d.ERROR,callbackId:I.callbackId,reason:v(E)})});return}if(I.streamId){it(this,b,Ou).call(this,I);return}P(I.data)},S.addEventListener("message",this._onComObjOnMessage)}on(m,C){const S=this.actionHandler;if(S[m])throw new Error(`There is already an actionName called "${m}"`);S[m]=C}send(m,C,S){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:m,data:C},S)}sendWithPromise(m,C,S){const w=this.callbackId++,I=new u.PromiseCapability;this.callbackCapabilities[w]=I;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:m,callbackId:w,data:C},S)}catch(P){I.reject(P)}return I.promise}sendWithStream(m,C,S,w){const I=this.streamId++,P=this.sourceName,$=this.targetName,_=this.comObj;return new ReadableStream({start:E=>{const R=new u.PromiseCapability;return this.streamControllers[I]={controller:E,startCall:R,pullCall:null,cancelCall:null,isClosed:!1},_.postMessage({sourceName:P,targetName:$,action:m,streamId:I,data:C,desiredSize:E.desiredSize},w),R.promise},pull:E=>{const R=new u.PromiseCapability;return this.streamControllers[I].pullCall=R,_.postMessage({sourceName:P,targetName:$,stream:p.PULL,streamId:I,desiredSize:E.desiredSize}),R.promise},cancel:E=>{(0,u.assert)(E instanceof Error,"cancel must have a valid reason");const R=new u.PromiseCapability;return this.streamControllers[I].cancelCall=R,this.streamControllers[I].isClosed=!0,_.postMessage({sourceName:P,targetName:$,stream:p.CANCEL,streamId:I,reason:v(E)}),R.promise}},S)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}b=new WeakSet,Ou=function(m){const C=m.streamId,S=this.sourceName,w=m.sourceName,I=this.comObj,P=this,$=this.actionHandler[m.action],_={enqueue(E,R=1,T){if(this.isCancelled)return;const B=this.desiredSize;this.desiredSize-=R,B>0&&this.desiredSize<=0&&(this.sinkCapability=new u.PromiseCapability,this.ready=this.sinkCapability.promise),I.postMessage({sourceName:S,targetName:w,stream:p.ENQUEUE,streamId:C,chunk:E},T)},close(){this.isCancelled||(this.isCancelled=!0,I.postMessage({sourceName:S,targetName:w,stream:p.CLOSE,streamId:C}),delete P.streamSinks[C])},error(E){(0,u.assert)(E instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,I.postMessage({sourceName:S,targetName:w,stream:p.ERROR,streamId:C,reason:v(E)}))},sinkCapability:new u.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:m.desiredSize,ready:null};_.sinkCapability.resolve(),_.ready=_.sinkCapability.promise,this.streamSinks[C]=_,new Promise(function(E){E($(m.data,_))}).then(function(){I.postMessage({sourceName:S,targetName:w,stream:p.START_COMPLETE,streamId:C,success:!0})},function(E){I.postMessage({sourceName:S,targetName:w,stream:p.START_COMPLETE,streamId:C,reason:v(E)})})},Du=function(m){const C=m.streamId,S=this.sourceName,w=m.sourceName,I=this.comObj,P=this.streamControllers[C],$=this.streamSinks[C];switch(m.stream){case p.START_COMPLETE:m.success?P.startCall.resolve():P.startCall.reject(v(m.reason));break;case p.PULL_COMPLETE:m.success?P.pullCall.resolve():P.pullCall.reject(v(m.reason));break;case p.PULL:if(!$){I.postMessage({sourceName:S,targetName:w,stream:p.PULL_COMPLETE,streamId:C,success:!0});break}$.desiredSize<=0&&m.desiredSize>0&&$.sinkCapability.resolve(),$.desiredSize=m.desiredSize,new Promise(function(_){var E;_((E=$.onPull)==null?void 0:E.call($))}).then(function(){I.postMessage({sourceName:S,targetName:w,stream:p.PULL_COMPLETE,streamId:C,success:!0})},function(_){I.postMessage({sourceName:S,targetName:w,stream:p.PULL_COMPLETE,streamId:C,reason:v(_)})});break;case p.ENQUEUE:if((0,u.assert)(P,"enqueue should have stream controller"),P.isClosed)break;P.controller.enqueue(m.chunk);break;case p.CLOSE:if((0,u.assert)(P,"close should have stream controller"),P.isClosed)break;P.isClosed=!0,P.controller.close(),it(this,b,bo).call(this,P,C);break;case p.ERROR:(0,u.assert)(P,"error should have stream controller"),P.controller.error(v(m.reason)),it(this,b,bo).call(this,P,C);break;case p.CANCEL_COMPLETE:m.success?P.cancelCall.resolve():P.cancelCall.reject(v(m.reason)),it(this,b,bo).call(this,P,C);break;case p.CANCEL:if(!$)break;new Promise(function(_){var E;_((E=$.onCancel)==null?void 0:E.call($,v(m.reason)))}).then(function(){I.postMessage({sourceName:S,targetName:w,stream:p.CANCEL_COMPLETE,streamId:C,success:!0})},function(_){I.postMessage({sourceName:S,targetName:w,stream:p.CANCEL_COMPLETE,streamId:C,reason:v(_)})}),$.sinkCapability.reject(v(m.reason)),$.isCancelled=!0,delete this.streamSinks[C];break;default:throw new Error("Unexpected stream case")}},bo=async function(m,C){var S,w,I;await Promise.allSettled([(S=m.startCall)==null?void 0:S.promise,(w=m.pullCall)==null?void 0:w.promise,(I=m.cancelCall)==null?void 0:I.promise]),delete this.streamControllers[C]},s.MessageHandler=A},(a,s,c)=>{var p,v;Object.defineProperty(s,"__esModule",{value:!0}),s.Metadata=void 0;var u=c(1);class d{constructor({parsedData:b,rawData:g}){vt(this,p);vt(this,v);Ct(this,p,b),Ct(this,v,g)}getRaw(){return He(this,v)}get(b){return He(this,p).get(b)??null}getAll(){return(0,u.objectFromMap)(He(this,p))}has(b){return He(this,p).has(b)}}p=new WeakMap,v=new WeakMap,s.Metadata=d},(a,s,c)=>{var b,g,x,y,f,m,sl;Object.defineProperty(s,"__esModule",{value:!0}),s.OptionalContentConfig=void 0;var u=c(1),d=c(8);const p=Symbol("INTERNAL");class v{constructor(w,I){vt(this,b,!0);this.name=w,this.intent=I}get visible(){return He(this,b)}_setVisible(w,I){w!==p&&(0,u.unreachable)("Internal method `_setVisible` called."),Ct(this,b,I)}}b=new WeakMap;class A{constructor(w){vt(this,m);vt(this,g,null);vt(this,x,new Map);vt(this,y,null);vt(this,f,null);if(this.name=null,this.creator=null,w!==null){this.name=w.name,this.creator=w.creator,Ct(this,f,w.order);for(const I of w.groups)He(this,x).set(I.id,new v(I.name,I.intent));if(w.baseState==="OFF")for(const I of He(this,x).values())I._setVisible(p,!1);for(const I of w.on)He(this,x).get(I)._setVisible(p,!0);for(const I of w.off)He(this,x).get(I)._setVisible(p,!1);Ct(this,y,this.getHash())}}isVisible(w){if(He(this,x).size===0)return!0;if(!w)return(0,u.warn)("Optional content group not defined."),!0;if(w.type==="OCG")return He(this,x).has(w.id)?He(this,x).get(w.id).visible:((0,u.warn)(`Optional content group not found: ${w.id}`),!0);if(w.type==="OCMD"){if(w.expression)return it(this,m,sl).call(this,w.expression);if(!w.policy||w.policy==="AnyOn"){for(const I of w.ids){if(!He(this,x).has(I))return(0,u.warn)(`Optional content group not found: ${I}`),!0;if(He(this,x).get(I).visible)return!0}return!1}else if(w.policy==="AllOn"){for(const I of w.ids){if(!He(this,x).has(I))return(0,u.warn)(`Optional content group not found: ${I}`),!0;if(!He(this,x).get(I).visible)return!1}return!0}else if(w.policy==="AnyOff"){for(const I of w.ids){if(!He(this,x).has(I))return(0,u.warn)(`Optional content group not found: ${I}`),!0;if(!He(this,x).get(I).visible)return!0}return!1}else if(w.policy==="AllOff"){for(const I of w.ids){if(!He(this,x).has(I))return(0,u.warn)(`Optional content group not found: ${I}`),!0;if(He(this,x).get(I).visible)return!1}return!0}return(0,u.warn)(`Unknown optional content policy ${w.policy}.`),!0}return(0,u.warn)(`Unknown group type ${w.type}.`),!0}setVisibility(w,I=!0){if(!He(this,x).has(w)){(0,u.warn)(`Optional content group not found: ${w}`);return}He(this,x).get(w)._setVisible(p,!!I),Ct(this,g,null)}get hasInitialVisibility(){return He(this,y)===null||this.getHash()===He(this,y)}getOrder(){return He(this,x).size?He(this,f)?He(this,f).slice():[...He(this,x).keys()]:null}getGroups(){return He(this,x).size>0?(0,u.objectFromMap)(He(this,x)):null}getGroup(w){return He(this,x).get(w)||null}getHash(){if(He(this,g)!==null)return He(this,g);const w=new d.MurmurHash3_64;for(const[I,P]of He(this,x))w.update(`${I}:${P.visible}`);return Ct(this,g,w.hexdigest())}}g=new WeakMap,x=new WeakMap,y=new WeakMap,f=new WeakMap,m=new WeakSet,sl=function(w){const I=w.length;if(I<2)return!0;const P=w[0];for(let $=1;$<I;$++){const _=w[$];let E;if(Array.isArray(_))E=it(this,m,sl).call(this,_);else if(He(this,x).has(_))E=He(this,x).get(_).visible;else return(0,u.warn)(`Optional content group not found: ${_}`),!0;switch(P){case"And":if(!E)return!1;break;case"Or":if(E)return!0;break;case"Not":return!E;default:return!0}}return P==="And"},s.OptionalContentConfig=A},(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFDataTransportStream=void 0;var u=c(1),d=c(6);class p{constructor({length:g,initialData:x,progressiveDone:y=!1,contentDispositionFilename:f=null,disableRange:m=!1,disableStream:C=!1},S){if((0,u.assert)(S,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=y,this._contentDispositionFilename=f,(x==null?void 0:x.length)>0){const w=x instanceof Uint8Array&&x.byteLength===x.buffer.byteLength?x.buffer:new Uint8Array(x).buffer;this._queuedChunks.push(w)}this._pdfDataRangeTransport=S,this._isStreamingSupported=!C,this._isRangeSupported=!m,this._contentLength=g,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((w,I)=>{this._onReceiveData({begin:w,chunk:I})}),this._pdfDataRangeTransport.addProgressListener((w,I)=>{this._onProgress({loaded:w,total:I})}),this._pdfDataRangeTransport.addProgressiveReadListener(w=>{this._onReceiveData({chunk:w})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData({begin:g,chunk:x}){const y=x instanceof Uint8Array&&x.byteLength===x.buffer.byteLength?x.buffer:new Uint8Array(x).buffer;if(g===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(y):this._queuedChunks.push(y);else{const f=this._rangeReaders.some(function(m){return m._begin!==g?!1:(m._enqueue(y),!0)});(0,u.assert)(f,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var g;return((g=this._fullRequestReader)==null?void 0:g._loaded)??0}_onProgress(g){var x,y,f,m;g.total===void 0?(y=(x=this._rangeReaders[0])==null?void 0:x.onProgress)==null||y.call(x,{loaded:g.loaded}):(m=(f=this._fullRequestReader)==null?void 0:f.onProgress)==null||m.call(f,{loaded:g.loaded,total:g.total})}_onProgressiveDone(){var g;(g=this._fullRequestReader)==null||g.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(g){const x=this._rangeReaders.indexOf(g);x>=0&&this._rangeReaders.splice(x,1)}getFullReader(){(0,u.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const g=this._queuedChunks;return this._queuedChunks=null,new v(this,g,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(g,x){if(x<=this._progressiveDataLength)return null;const y=new A(this,g,x);return this._pdfDataRangeTransport.requestDataRange(g,x),this._rangeReaders.push(y),y}cancelAllRequests(g){var x;(x=this._fullRequestReader)==null||x.cancel(g);for(const y of this._rangeReaders.slice(0))y.cancel(g);this._pdfDataRangeTransport.abort()}}s.PDFDataTransportStream=p;class v{constructor(g,x,y=!1,f=null){this._stream=g,this._done=y||!1,this._filename=(0,d.isPdfFile)(f)?f:null,this._queuedChunks=x||[],this._loaded=0;for(const m of this._queuedChunks)this._loaded+=m.byteLength;this._requests=[],this._headersReady=Promise.resolve(),g._fullRequestReader=this,this.onProgress=null}_enqueue(g){this._done||(this._requests.length>0?this._requests.shift().resolve({value:g,done:!1}):this._queuedChunks.push(g),this._loaded+=g.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const g=new u.PromiseCapability;return this._requests.push(g),g.promise}cancel(g){this._done=!0;for(const x of this._requests)x.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class A{constructor(g,x,y){this._stream=g,this._begin=x,this._end=y,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(g){if(!this._done){if(this._requests.length===0)this._queuedChunk=g;else{this._requests.shift().resolve({value:g,done:!1});for(const y of this._requests)y.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const x=this._queuedChunk;return this._queuedChunk=null,{value:x,done:!1}}if(this._done)return{value:void 0,done:!0};const g=new u.PromiseCapability;return this._requests.push(g),g.promise}cancel(g){this._done=!0;for(const x of this._requests)x.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFFetchStream=void 0;var u=c(1),d=c(20);function p(y,f,m){return{method:"GET",headers:y,signal:m.signal,mode:"cors",credentials:f?"include":"same-origin",redirect:"follow"}}function v(y){const f=new Headers;for(const m in y){const C=y[m];C!==void 0&&f.append(m,C)}return f}function A(y){return y instanceof Uint8Array?y.buffer:y instanceof ArrayBuffer?y:((0,u.warn)(`getArrayBuffer - unexpected data format: ${y}`),new Uint8Array(y).buffer)}class b{constructor(f){this.source=f,this.isHttp=/^https?:/i.test(f.url),this.httpHeaders=this.isHttp&&f.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var f;return((f=this._fullRequestReader)==null?void 0:f._loaded)??0}getFullReader(){return(0,u.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new g(this),this._fullRequestReader}getRangeReader(f,m){if(m<=this._progressiveDataLength)return null;const C=new x(this,f,m);return this._rangeRequestReaders.push(C),C}cancelAllRequests(f){var m;(m=this._fullRequestReader)==null||m.cancel(f);for(const C of this._rangeRequestReaders.slice(0))C.cancel(f)}}s.PDFFetchStream=b;class g{constructor(f){this._stream=f,this._reader=null,this._loaded=0,this._filename=null;const m=f.source;this._withCredentials=m.withCredentials||!1,this._contentLength=m.length,this._headersCapability=new u.PromiseCapability,this._disableRange=m.disableRange||!1,this._rangeChunkSize=m.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!m.disableStream,this._isRangeSupported=!m.disableRange,this._headers=v(this._stream.httpHeaders);const C=m.url;fetch(C,p(this._headers,this._withCredentials,this._abortController)).then(S=>{if(!(0,d.validateResponseStatus)(S.status))throw(0,d.createResponseStatusError)(S.status,C);this._reader=S.body.getReader(),this._headersCapability.resolve();const w=$=>S.headers.get($),{allowRangeRequests:I,suggestedLength:P}=(0,d.validateRangeRequestCapabilities)({getResponseHeader:w,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=I,this._contentLength=P||this._contentLength,this._filename=(0,d.extractFilenameFromHeader)(w),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new u.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var C;await this._headersCapability.promise;const{value:f,done:m}=await this._reader.read();return m?{value:f,done:m}:(this._loaded+=f.byteLength,(C=this.onProgress)==null||C.call(this,{loaded:this._loaded,total:this._contentLength}),{value:A(f),done:!1})}cancel(f){var m;(m=this._reader)==null||m.cancel(f),this._abortController.abort()}}class x{constructor(f,m,C){this._stream=f,this._reader=null,this._loaded=0;const S=f.source;this._withCredentials=S.withCredentials||!1,this._readCapability=new u.PromiseCapability,this._isStreamingSupported=!S.disableStream,this._abortController=new AbortController,this._headers=v(this._stream.httpHeaders),this._headers.append("Range",`bytes=${m}-${C-1}`);const w=S.url;fetch(w,p(this._headers,this._withCredentials,this._abortController)).then(I=>{if(!(0,d.validateResponseStatus)(I.status))throw(0,d.createResponseStatusError)(I.status,w);this._readCapability.resolve(),this._reader=I.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var C;await this._readCapability.promise;const{value:f,done:m}=await this._reader.read();return m?{value:f,done:m}:(this._loaded+=f.byteLength,(C=this.onProgress)==null||C.call(this,{loaded:this._loaded}),{value:A(f),done:!1})}cancel(f){var m;(m=this._reader)==null||m.cancel(f),this._abortController.abort()}}},(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.createResponseStatusError=b,s.extractFilenameFromHeader=A,s.validateRangeRequestCapabilities=v,s.validateResponseStatus=g;var u=c(1),d=c(21),p=c(6);function v({getResponseHeader:x,isHttp:y,rangeChunkSize:f,disableRange:m}){const C={allowRangeRequests:!1,suggestedLength:void 0},S=parseInt(x("Content-Length"),10);return!Number.isInteger(S)||(C.suggestedLength=S,S<=2*f)||m||!y||x("Accept-Ranges")!=="bytes"||(x("Content-Encoding")||"identity")!=="identity"||(C.allowRangeRequests=!0),C}function A(x){const y=x("Content-Disposition");if(y){let f=(0,d.getFilenameFromContentDispositionHeader)(y);if(f.includes("%"))try{f=decodeURIComponent(f)}catch{}if((0,p.isPdfFile)(f))return f}return null}function b(x,y){return x===404||x===0&&y.startsWith("file:")?new u.MissingPDFException('Missing PDF "'+y+'".'):new u.UnexpectedResponseException(`Unexpected server response (${x}) while retrieving PDF "${y}".`,x)}function g(x){return x===200||x===206}},(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.getFilenameFromContentDispositionHeader=d;var u=c(1);function d(p){let v=!0,A=b("filename\\*","i").exec(p);if(A){A=A[1];let S=f(A);return S=unescape(S),S=m(S),S=C(S),x(S)}if(A=y(p),A){const S=C(A);return x(S)}if(A=b("filename","i").exec(p),A){A=A[1];let S=f(A);return S=C(S),x(S)}function b(S,w){return new RegExp("(?:^|;)\\s*"+S+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',w)}function g(S,w){if(S){if(!/^[\x00-\xFF]+$/.test(w))return w;try{const I=new TextDecoder(S,{fatal:!0}),P=(0,u.stringToBytes)(w);w=I.decode(P),v=!1}catch{}}return w}function x(S){return v&&/[\x80-\xff]/.test(S)&&(S=g("utf-8",S),v&&(S=g("iso-8859-1",S))),S}function y(S){const w=[];let I;const P=b("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(I=P.exec(S))!==null;){let[,_,E,R]=I;if(_=parseInt(_,10),_ in w){if(_===0)break;continue}w[_]=[E,R]}const $=[];for(let _=0;_<w.length&&_ in w;++_){let[E,R]=w[_];R=f(R),E&&(R=unescape(R),_===0&&(R=m(R))),$.push(R)}return $.join("")}function f(S){if(S.startsWith('"')){const w=S.slice(1).split('\\"');for(let I=0;I<w.length;++I){const P=w[I].indexOf('"');P!==-1&&(w[I]=w[I].slice(0,P),w.length=I+1),w[I]=w[I].replaceAll(/\\(.)/g,"$1")}S=w.join('"')}return S}function m(S){const w=S.indexOf("'");if(w===-1)return S;const I=S.slice(0,w),$=S.slice(w+1).replace(/^[^']*'/,"");return g(I,$)}function C(S){return!S.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(S)?S:S.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(w,I,P,$){if(P==="q"||P==="Q")return $=$.replaceAll("_"," "),$=$.replaceAll(/=([0-9a-fA-F]{2})/g,function(_,E){return String.fromCharCode(parseInt(E,16))}),g(I,$);try{$=atob($)}catch{}return g(I,$)})}return""}},(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFNetworkStream=void 0;var u=c(1),d=c(20);const p=200,v=206;function A(f){const m=f.response;return typeof m!="string"?m:(0,u.stringToBytes)(m).buffer}class b{constructor(m,C={}){this.url=m,this.isHttp=/^https?:/i.test(m),this.httpHeaders=this.isHttp&&C.httpHeaders||Object.create(null),this.withCredentials=C.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(m,C,S){const w={begin:m,end:C};for(const I in S)w[I]=S[I];return this.request(w)}requestFull(m){return this.request(m)}request(m){const C=new XMLHttpRequest,S=this.currXhrId++,w=this.pendingRequests[S]={xhr:C};C.open("GET",this.url),C.withCredentials=this.withCredentials;for(const I in this.httpHeaders){const P=this.httpHeaders[I];P!==void 0&&C.setRequestHeader(I,P)}return this.isHttp&&"begin"in m&&"end"in m?(C.setRequestHeader("Range",`bytes=${m.begin}-${m.end-1}`),w.expectedStatus=v):w.expectedStatus=p,C.responseType="arraybuffer",m.onError&&(C.onerror=function(I){m.onError(C.status)}),C.onreadystatechange=this.onStateChange.bind(this,S),C.onprogress=this.onProgress.bind(this,S),w.onHeadersReceived=m.onHeadersReceived,w.onDone=m.onDone,w.onError=m.onError,w.onProgress=m.onProgress,C.send(null),S}onProgress(m,C){var w;const S=this.pendingRequests[m];S&&((w=S.onProgress)==null||w.call(S,C))}onStateChange(m,C){var _,E,R;const S=this.pendingRequests[m];if(!S)return;const w=S.xhr;if(w.readyState>=2&&S.onHeadersReceived&&(S.onHeadersReceived(),delete S.onHeadersReceived),w.readyState!==4||!(m in this.pendingRequests))return;if(delete this.pendingRequests[m],w.status===0&&this.isHttp){(_=S.onError)==null||_.call(S,w.status);return}const I=w.status||p;if(!(I===p&&S.expectedStatus===v)&&I!==S.expectedStatus){(E=S.onError)==null||E.call(S,w.status);return}const $=A(w);if(I===v){const T=w.getResponseHeader("Content-Range"),B=/bytes (\d+)-(\d+)\/(\d+)/.exec(T);S.onDone({begin:parseInt(B[1],10),chunk:$})}else $?S.onDone({begin:0,chunk:$}):(R=S.onError)==null||R.call(S,w.status)}getRequestXhr(m){return this.pendingRequests[m].xhr}isPendingRequest(m){return m in this.pendingRequests}abortRequest(m){const C=this.pendingRequests[m].xhr;delete this.pendingRequests[m],C.abort()}}class g{constructor(m){this._source=m,this._manager=new b(m.url,{httpHeaders:m.httpHeaders,withCredentials:m.withCredentials}),this._rangeChunkSize=m.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(m){const C=this._rangeRequestReaders.indexOf(m);C>=0&&this._rangeRequestReaders.splice(C,1)}getFullReader(){return(0,u.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new x(this._manager,this._source),this._fullRequestReader}getRangeReader(m,C){const S=new y(this._manager,m,C);return S.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(S),S}cancelAllRequests(m){var C;(C=this._fullRequestReader)==null||C.cancel(m);for(const S of this._rangeRequestReaders.slice(0))S.cancel(m)}}s.PDFNetworkStream=g;class x{constructor(m,C){this._manager=m;const S={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=C.url,this._fullRequestId=m.requestFull(S),this._headersReceivedCapability=new u.PromiseCapability,this._disableRange=C.disableRange||!1,this._contentLength=C.length,this._rangeChunkSize=C.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const m=this._fullRequestId,C=this._manager.getRequestXhr(m),S=P=>C.getResponseHeader(P),{allowRangeRequests:w,suggestedLength:I}=(0,d.validateRangeRequestCapabilities)({getResponseHeader:S,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});w&&(this._isRangeSupported=!0),this._contentLength=I||this._contentLength,this._filename=(0,d.extractFilenameFromHeader)(S),this._isRangeSupported&&this._manager.abortRequest(m),this._headersReceivedCapability.resolve()}_onDone(m){if(m&&(this._requests.length>0?this._requests.shift().resolve({value:m.chunk,done:!1}):this._cachedChunks.push(m.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const C of this._requests)C.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(m){this._storedError=(0,d.createResponseStatusError)(m,this._url),this._headersReceivedCapability.reject(this._storedError);for(const C of this._requests)C.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(m){var C;(C=this.onProgress)==null||C.call(this,{loaded:m.loaded,total:m.lengthComputable?m.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const m=new u.PromiseCapability;return this._requests.push(m),m.promise}cancel(m){this._done=!0,this._headersReceivedCapability.reject(m);for(const C of this._requests)C.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class y{constructor(m,C,S){this._manager=m;const w={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=m.url,this._requestId=m.requestRange(C,S,w),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var m;(m=this.onClosed)==null||m.call(this,this)}_onDone(m){const C=m.chunk;this._requests.length>0?this._requests.shift().resolve({value:C,done:!1}):this._queuedChunk=C,this._done=!0;for(const S of this._requests)S.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(m){this._storedError=(0,d.createResponseStatusError)(m,this._url);for(const C of this._requests)C.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(m){var C;this.isStreamingSupported||(C=this.onProgress)==null||C.call(this,{loaded:m.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const C=this._queuedChunk;return this._queuedChunk=null,{value:C,done:!1}}if(this._done)return{value:void 0,done:!0};const m=new u.PromiseCapability;return this._requests.push(m),m.promise}cancel(m){this._done=!0;for(const C of this._requests)C.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFNodeStream=void 0;var u=c(1),d=c(20);const p=/^file:\/\/\/[a-zA-Z]:\//;function v(S){const w=require$$5,I=w.parse(S);return I.protocol==="file:"||I.host?I:/^[a-z]:[/\\]/i.test(S)?w.parse(`file:///${S}`):(I.host||(I.protocol="file:"),I)}class A{constructor(w){this.source=w,this.url=v(w.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&w.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var w;return((w=this._fullRequestReader)==null?void 0:w._loaded)??0}getFullReader(){return(0,u.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new m(this):new y(this),this._fullRequestReader}getRangeReader(w,I){if(I<=this._progressiveDataLength)return null;const P=this.isFsUrl?new C(this,w,I):new f(this,w,I);return this._rangeRequestReaders.push(P),P}cancelAllRequests(w){var I;(I=this._fullRequestReader)==null||I.cancel(w);for(const P of this._rangeRequestReaders.slice(0))P.cancel(w)}}s.PDFNodeStream=A;class b{constructor(w){this._url=w.url,this._done=!1,this._storedError=null,this.onProgress=null;const I=w.source;this._contentLength=I.length,this._loaded=0,this._filename=null,this._disableRange=I.disableRange||!1,this._rangeChunkSize=I.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!I.disableStream,this._isRangeSupported=!I.disableRange,this._readableStream=null,this._readCapability=new u.PromiseCapability,this._headersCapability=new u.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var P;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const w=this._readableStream.read();return w===null?(this._readCapability=new u.PromiseCapability,this.read()):(this._loaded+=w.length,(P=this.onProgress)==null||P.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(w).buffer,done:!1})}cancel(w){if(!this._readableStream){this._error(w);return}this._readableStream.destroy(w)}_error(w){this._storedError=w,this._readCapability.resolve()}_setReadableStream(w){this._readableStream=w,w.on("readable",()=>{this._readCapability.resolve()}),w.on("end",()=>{w.destroy(),this._done=!0,this._readCapability.resolve()}),w.on("error",I=>{this._error(I)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new u.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class g{constructor(w){this._url=w.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new u.PromiseCapability;const I=w.source;this._isStreamingSupported=!I.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var P;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const w=this._readableStream.read();return w===null?(this._readCapability=new u.PromiseCapability,this.read()):(this._loaded+=w.length,(P=this.onProgress)==null||P.call(this,{loaded:this._loaded}),{value:new Uint8Array(w).buffer,done:!1})}cancel(w){if(!this._readableStream){this._error(w);return}this._readableStream.destroy(w)}_error(w){this._storedError=w,this._readCapability.resolve()}_setReadableStream(w){this._readableStream=w,w.on("readable",()=>{this._readCapability.resolve()}),w.on("end",()=>{w.destroy(),this._done=!0,this._readCapability.resolve()}),w.on("error",I=>{this._error(I)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function x(S,w){return{protocol:S.protocol,auth:S.auth,host:S.hostname,port:S.port,path:S.path,method:"GET",headers:w}}class y extends b{constructor(w){super(w);const I=P=>{if(P.statusCode===404){const R=new u.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=R,this._headersCapability.reject(R);return}this._headersCapability.resolve(),this._setReadableStream(P);const $=R=>this._readableStream.headers[R.toLowerCase()],{allowRangeRequests:_,suggestedLength:E}=(0,d.validateRangeRequestCapabilities)({getResponseHeader:$,isHttp:w.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=_,this._contentLength=E||this._contentLength,this._filename=(0,d.extractFilenameFromHeader)($)};if(this._request=null,this._url.protocol==="http:"){const P=require$$5;this._request=P.request(x(this._url,w.httpHeaders),I)}else{const P=require$$5;this._request=P.request(x(this._url,w.httpHeaders),I)}this._request.on("error",P=>{this._storedError=P,this._headersCapability.reject(P)}),this._request.end()}}class f extends g{constructor(w,I,P){super(w),this._httpHeaders={};for(const _ in w.httpHeaders){const E=w.httpHeaders[_];E!==void 0&&(this._httpHeaders[_]=E)}this._httpHeaders.Range=`bytes=${I}-${P-1}`;const $=_=>{if(_.statusCode===404){const E=new u.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=E;return}this._setReadableStream(_)};if(this._request=null,this._url.protocol==="http:"){const _=require$$5;this._request=_.request(x(this._url,this._httpHeaders),$)}else{const _=require$$5;this._request=_.request(x(this._url,this._httpHeaders),$)}this._request.on("error",_=>{this._storedError=_}),this._request.end()}}class m extends b{constructor(w){super(w);let I=decodeURIComponent(this._url.path);p.test(this._url.href)&&(I=I.replace(/^\//,""));const P=require$$5;P.lstat(I,($,_)=>{if($){$.code==="ENOENT"&&($=new u.MissingPDFException(`Missing PDF "${I}".`)),this._storedError=$,this._headersCapability.reject($);return}this._contentLength=_.size,this._setReadableStream(P.createReadStream(I)),this._headersCapability.resolve()})}}class C extends g{constructor(w,I,P){super(w);let $=decodeURIComponent(this._url.path);p.test(this._url.href)&&($=$.replace(/^\//,""));const _=require$$5;this._setReadableStream(_.createReadStream($,{start:I,end:P-1}))}}},(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.SVGGraphics=void 0;var u=c(6),d=c(1);const p={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},v="http://www.w3.org/XML/1998/namespace",A="http://www.w3.org/1999/xlink",b=["butt","round","square"],g=["miter","round","bevel"],x=function(_,E="",R=!1){if(URL.createObjectURL&&typeof Blob<"u"&&!R)return URL.createObjectURL(new Blob([_],{type:E}));const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let B=`data:${E};base64,`;for(let M=0,D=_.length;M<D;M+=3){const O=_[M]&255,H=_[M+1]&255,j=_[M+2]&255,Q=O>>2,L=(O&3)<<4|H>>4,F=M+1<D?(H&15)<<2|j>>6:64,U=M+2<D?j&63:64;B+=T[Q]+T[L]+T[F]+T[U]}return B},y=function(){const _=new Uint8Array([137,80,78,71,13,10,26,10]),E=12,R=new Int32Array(256);for(let j=0;j<256;j++){let Q=j;for(let L=0;L<8;L++)Q=Q&1?3988292384^Q>>1&2147483647:Q>>1&2147483647;R[j]=Q}function T(j,Q,L){let F=-1;for(let U=Q;U<L;U++){const N=(F^j[U])&255,k=R[N];F=F>>>8^k}return F^-1}function B(j,Q,L,F){let U=F;const N=Q.length;L[U]=N>>24&255,L[U+1]=N>>16&255,L[U+2]=N>>8&255,L[U+3]=N&255,U+=4,L[U]=j.charCodeAt(0)&255,L[U+1]=j.charCodeAt(1)&255,L[U+2]=j.charCodeAt(2)&255,L[U+3]=j.charCodeAt(3)&255,U+=4,L.set(Q,U),U+=Q.length;const k=T(L,F+4,U);L[U]=k>>24&255,L[U+1]=k>>16&255,L[U+2]=k>>8&255,L[U+3]=k&255}function M(j,Q,L){let F=1,U=0;for(let N=Q;N<L;++N)F=(F+(j[N]&255))%65521,U=(U+F)%65521;return U<<16|F}function D(j){if(!d.isNodeJS)return O(j);try{const Q=parseInt(process.versions.node)>=8?j:Buffer.from(j),L=require$$5.deflateSync(Q,{level:9});return L instanceof Uint8Array?L:new Uint8Array(L)}catch(Q){(0,d.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+Q)}return O(j)}function O(j){let Q=j.length;const L=65535,F=Math.ceil(Q/L),U=new Uint8Array(2+Q+F*5+4);let N=0;U[N++]=120,U[N++]=156;let k=0;for(;Q>L;)U[N++]=0,U[N++]=255,U[N++]=255,U[N++]=0,U[N++]=0,U.set(j.subarray(k,k+L),N),N+=L,k+=L,Q-=L;U[N++]=1,U[N++]=Q&255,U[N++]=Q>>8&255,U[N++]=~Q&65535&255,U[N++]=(~Q&65535)>>8&255,U.set(j.subarray(k),N),N+=j.length-k;const W=M(j,0,j.length);return U[N++]=W>>24&255,U[N++]=W>>16&255,U[N++]=W>>8&255,U[N++]=W&255,U}function H(j,Q,L,F){const U=j.width,N=j.height;let k,W,J;const q=j.data;switch(Q){case d.ImageKind.GRAYSCALE_1BPP:W=0,k=1,J=U+7>>3;break;case d.ImageKind.RGB_24BPP:W=2,k=8,J=U*3;break;case d.ImageKind.RGBA_32BPP:W=6,k=8,J=U*4;break;default:throw new Error("invalid format")}const Y=new Uint8Array((1+J)*N);let Z=0,ee=0;for(let ie=0;ie<N;++ie)Y[Z++]=0,Y.set(q.subarray(ee,ee+J),Z),ee+=J,Z+=J;if(Q===d.ImageKind.GRAYSCALE_1BPP&&F){Z=0;for(let ie=0;ie<N;ie++){Z++;for(let ce=0;ce<J;ce++)Y[Z++]^=255}}const re=new Uint8Array([U>>24&255,U>>16&255,U>>8&255,U&255,N>>24&255,N>>16&255,N>>8&255,N&255,k,W,0,0,0]),ae=D(Y),V=_.length+E*3+re.length+ae.length,K=new Uint8Array(V);let te=0;return K.set(_,te),te+=_.length,B("IHDR",re,K,te),te+=E+re.length,B("IDATA",ae,K,te),te+=E+ae.length,B("IEND",new Uint8Array(0),K,te),x(K,"image/png",L)}return function(Q,L,F){const U=Q.kind===void 0?d.ImageKind.GRAYSCALE_1BPP:Q.kind;return H(Q,U,L,F)}}();class f{constructor(){this.fontSizeScale=1,this.fontWeight=p.fontWeight,this.fontSize=0,this.textMatrix=d.IDENTITY_MATRIX,this.fontMatrix=d.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=d.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=p.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(E,R){this.x=E,this.y=R}}function m(_){let E=[];const R=[];for(const T of _){if(T.fn==="save"){E.push({fnId:92,fn:"group",items:[]}),R.push(E),E=E.at(-1).items;continue}T.fn==="restore"?E=R.pop():E.push(T)}return E}function C(_){if(Number.isInteger(_))return _.toString();const E=_.toFixed(10);let R=E.length-1;if(E[R]!=="0")return E;do R--;while(E[R]==="0");return E.substring(0,E[R]==="."?R:R+1)}function S(_){if(_[4]===0&&_[5]===0){if(_[1]===0&&_[2]===0)return _[0]===1&&_[3]===1?"":`scale(${C(_[0])} ${C(_[3])})`;if(_[0]===_[3]&&_[1]===-_[2]){const E=Math.acos(_[0])*180/Math.PI;return`rotate(${C(E)})`}}else if(_[0]===1&&_[1]===0&&_[2]===0&&_[3]===1)return`translate(${C(_[4])} ${C(_[5])})`;return`matrix(${C(_[0])} ${C(_[1])} ${C(_[2])} ${C(_[3])} ${C(_[4])} ${C(_[5])})`}let w=0,I=0,P=0;class ${constructor(E,R,T=!1){(0,u.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new u.DOMSVGFactory,this.current=new f,this.transformMatrix=d.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=E,this.objs=R,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!T,this._operatorIdMapping=[];for(const B in d.OPS)this._operatorIdMapping[d.OPS[B]]=B}getObject(E,R=null){return typeof E=="string"?E.startsWith("g_")?this.commonObjs.get(E):this.objs.get(E):R}save(){this.transformStack.push(this.transformMatrix);const E=this.current;this.extraStack.push(E),this.current=E.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(E){this.save(),this.executeOpTree(E),this.restore()}loadDependencies(E){const R=E.fnArray,T=E.argsArray;for(let B=0,M=R.length;B<M;B++)if(R[B]===d.OPS.dependency)for(const D of T[B]){const O=D.startsWith("g_")?this.commonObjs:this.objs,H=new Promise(j=>{O.get(D,j)});this.current.dependencies.push(H)}return Promise.all(this.current.dependencies)}transform(E,R,T,B,M,D){const O=[E,R,T,B,M,D];this.transformMatrix=d.Util.transform(this.transformMatrix,O),this.tgrp=null}getSVG(E,R){this.viewport=R;const T=this._initialize(R);return this.loadDependencies(E).then(()=>(this.transformMatrix=d.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(E)),T))}convertOpList(E){const R=this._operatorIdMapping,T=E.argsArray,B=E.fnArray,M=[];for(let D=0,O=B.length;D<O;D++){const H=B[D];M.push({fnId:H,fn:R[H],args:T[D]})}return m(M)}executeOpTree(E){for(const R of E){const T=R.fn,B=R.fnId,M=R.args;switch(B|0){case d.OPS.beginText:this.beginText();break;case d.OPS.dependency:break;case d.OPS.setLeading:this.setLeading(M);break;case d.OPS.setLeadingMoveText:this.setLeadingMoveText(M[0],M[1]);break;case d.OPS.setFont:this.setFont(M);break;case d.OPS.showText:this.showText(M[0]);break;case d.OPS.showSpacedText:this.showText(M[0]);break;case d.OPS.endText:this.endText();break;case d.OPS.moveText:this.moveText(M[0],M[1]);break;case d.OPS.setCharSpacing:this.setCharSpacing(M[0]);break;case d.OPS.setWordSpacing:this.setWordSpacing(M[0]);break;case d.OPS.setHScale:this.setHScale(M[0]);break;case d.OPS.setTextMatrix:this.setTextMatrix(M[0],M[1],M[2],M[3],M[4],M[5]);break;case d.OPS.setTextRise:this.setTextRise(M[0]);break;case d.OPS.setTextRenderingMode:this.setTextRenderingMode(M[0]);break;case d.OPS.setLineWidth:this.setLineWidth(M[0]);break;case d.OPS.setLineJoin:this.setLineJoin(M[0]);break;case d.OPS.setLineCap:this.setLineCap(M[0]);break;case d.OPS.setMiterLimit:this.setMiterLimit(M[0]);break;case d.OPS.setFillRGBColor:this.setFillRGBColor(M[0],M[1],M[2]);break;case d.OPS.setStrokeRGBColor:this.setStrokeRGBColor(M[0],M[1],M[2]);break;case d.OPS.setStrokeColorN:this.setStrokeColorN(M);break;case d.OPS.setFillColorN:this.setFillColorN(M);break;case d.OPS.shadingFill:this.shadingFill(M[0]);break;case d.OPS.setDash:this.setDash(M[0],M[1]);break;case d.OPS.setRenderingIntent:this.setRenderingIntent(M[0]);break;case d.OPS.setFlatness:this.setFlatness(M[0]);break;case d.OPS.setGState:this.setGState(M[0]);break;case d.OPS.fill:this.fill();break;case d.OPS.eoFill:this.eoFill();break;case d.OPS.stroke:this.stroke();break;case d.OPS.fillStroke:this.fillStroke();break;case d.OPS.eoFillStroke:this.eoFillStroke();break;case d.OPS.clip:this.clip("nonzero");break;case d.OPS.eoClip:this.clip("evenodd");break;case d.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case d.OPS.paintImageXObject:this.paintImageXObject(M[0]);break;case d.OPS.paintInlineImageXObject:this.paintInlineImageXObject(M[0]);break;case d.OPS.paintImageMaskXObject:this.paintImageMaskXObject(M[0]);break;case d.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(M[0],M[1]);break;case d.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case d.OPS.closePath:this.closePath();break;case d.OPS.closeStroke:this.closeStroke();break;case d.OPS.closeFillStroke:this.closeFillStroke();break;case d.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case d.OPS.nextLine:this.nextLine();break;case d.OPS.transform:this.transform(M[0],M[1],M[2],M[3],M[4],M[5]);break;case d.OPS.constructPath:this.constructPath(M[0],M[1]);break;case d.OPS.endPath:this.endPath();break;case 92:this.group(R.items);break;default:(0,d.warn)(`Unimplemented operator ${T}`);break}}}setWordSpacing(E){this.current.wordSpacing=E}setCharSpacing(E){this.current.charSpacing=E}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(E,R,T,B,M,D){const O=this.current;O.textMatrix=O.lineMatrix=[E,R,T,B,M,D],O.textMatrixScale=Math.hypot(E,R),O.x=O.lineX=0,O.y=O.lineY=0,O.xcoords=[],O.ycoords=[],O.tspan=this.svgFactory.createElement("svg:tspan"),O.tspan.setAttributeNS(null,"font-family",O.fontFamily),O.tspan.setAttributeNS(null,"font-size",`${C(O.fontSize)}px`),O.tspan.setAttributeNS(null,"y",C(-O.y)),O.txtElement=this.svgFactory.createElement("svg:text"),O.txtElement.append(O.tspan)}beginText(){const E=this.current;E.x=E.lineX=0,E.y=E.lineY=0,E.textMatrix=d.IDENTITY_MATRIX,E.lineMatrix=d.IDENTITY_MATRIX,E.textMatrixScale=1,E.tspan=this.svgFactory.createElement("svg:tspan"),E.txtElement=this.svgFactory.createElement("svg:text"),E.txtgrp=this.svgFactory.createElement("svg:g"),E.xcoords=[],E.ycoords=[]}moveText(E,R){const T=this.current;T.x=T.lineX+=E,T.y=T.lineY+=R,T.xcoords=[],T.ycoords=[],T.tspan=this.svgFactory.createElement("svg:tspan"),T.tspan.setAttributeNS(null,"font-family",T.fontFamily),T.tspan.setAttributeNS(null,"font-size",`${C(T.fontSize)}px`),T.tspan.setAttributeNS(null,"y",C(-T.y))}showText(E){const R=this.current,T=R.font,B=R.fontSize;if(B===0)return;const M=R.fontSizeScale,D=R.charSpacing,O=R.wordSpacing,H=R.fontDirection,j=R.textHScale*H,Q=T.vertical,L=Q?1:-1,F=T.defaultVMetrics,U=B*R.fontMatrix[0];let N=0;for(const J of E){if(J===null){N+=H*O;continue}else if(typeof J=="number"){N+=L*J*B/1e3;continue}const q=(J.isSpace?O:0)+D,Y=J.fontChar;let Z,ee,re=J.width;if(Q){let V;const K=J.vmetric||F;V=J.vmetric?K[1]:re*.5,V=-V*U;const te=K[2]*U;re=K?-K[0]:re,Z=V/M,ee=(N+te)/M}else Z=N/M,ee=0;(J.isInFont||T.missingFile)&&(R.xcoords.push(R.x+Z),Q&&R.ycoords.push(-R.y+ee),R.tspan.textContent+=Y);const ae=Q?re*U-q*H:re*U+q*H;N+=ae}R.tspan.setAttributeNS(null,"x",R.xcoords.map(C).join(" ")),Q?R.tspan.setAttributeNS(null,"y",R.ycoords.map(C).join(" ")):R.tspan.setAttributeNS(null,"y",C(-R.y)),Q?R.y-=N:R.x+=N*j,R.tspan.setAttributeNS(null,"font-family",R.fontFamily),R.tspan.setAttributeNS(null,"font-size",`${C(R.fontSize)}px`),R.fontStyle!==p.fontStyle&&R.tspan.setAttributeNS(null,"font-style",R.fontStyle),R.fontWeight!==p.fontWeight&&R.tspan.setAttributeNS(null,"font-weight",R.fontWeight);const k=R.textRenderingMode&d.TextRenderingMode.FILL_STROKE_MASK;if(k===d.TextRenderingMode.FILL||k===d.TextRenderingMode.FILL_STROKE?(R.fillColor!==p.fillColor&&R.tspan.setAttributeNS(null,"fill",R.fillColor),R.fillAlpha<1&&R.tspan.setAttributeNS(null,"fill-opacity",R.fillAlpha)):R.textRenderingMode===d.TextRenderingMode.ADD_TO_PATH?R.tspan.setAttributeNS(null,"fill","transparent"):R.tspan.setAttributeNS(null,"fill","none"),k===d.TextRenderingMode.STROKE||k===d.TextRenderingMode.FILL_STROKE){const J=1/(R.textMatrixScale||1);this._setStrokeAttributes(R.tspan,J)}let W=R.textMatrix;R.textRise!==0&&(W=W.slice(),W[5]+=R.textRise),R.txtElement.setAttributeNS(null,"transform",`${S(W)} scale(${C(j)}, -1)`),R.txtElement.setAttributeNS(v,"xml:space","preserve"),R.txtElement.append(R.tspan),R.txtgrp.append(R.txtElement),this._ensureTransformGroup().append(R.txtElement)}setLeadingMoveText(E,R){this.setLeading(-R),this.moveText(E,R)}addFontStyle(E){if(!E.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const R=x(E.data,E.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${E.loadedName}"; src: url(${R}); }
|
61
61
|
`}setFont(E){const R=this.current,T=this.commonObjs.get(E[0]);let B=E[1];R.font=T,this.embedFonts&&!T.missingFile&&!this.embeddedFonts[T.loadedName]&&(this.addFontStyle(T),this.embeddedFonts[T.loadedName]=T),R.fontMatrix=T.fontMatrix||d.FONT_IDENTITY_MATRIX;let M="normal";T.black?M="900":T.bold&&(M="bold");const D=T.italic?"italic":"normal";B<0?(B=-B,R.fontDirection=-1):R.fontDirection=1,R.fontSize=B,R.fontFamily=T.loadedName,R.fontWeight=M,R.fontStyle=D,R.tspan=this.svgFactory.createElement("svg:tspan"),R.tspan.setAttributeNS(null,"y",C(-R.y)),R.xcoords=[],R.ycoords=[]}endText(){var R;const E=this.current;E.textRenderingMode&d.TextRenderingMode.ADD_TO_PATH_FLAG&&((R=E.txtElement)!=null&&R.hasChildNodes())&&(E.element=E.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(E){E>0&&(this.current.lineWidth=E)}setLineCap(E){this.current.lineCap=b[E]}setLineJoin(E){this.current.lineJoin=g[E]}setMiterLimit(E){this.current.miterLimit=E}setStrokeAlpha(E){this.current.strokeAlpha=E}setStrokeRGBColor(E,R,T){this.current.strokeColor=d.Util.makeHexColor(E,R,T)}setFillAlpha(E){this.current.fillAlpha=E}setFillRGBColor(E,R,T){this.current.fillColor=d.Util.makeHexColor(E,R,T),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(E){this.current.strokeColor=this._makeColorN_Pattern(E)}setFillColorN(E){this.current.fillColor=this._makeColorN_Pattern(E)}shadingFill(E){const{width:R,height:T}=this.viewport,B=d.Util.inverseTransform(this.transformMatrix),[M,D,O,H]=d.Util.getAxialAlignedBoundingBox([0,0,R,T],B),j=this.svgFactory.createElement("svg:rect");j.setAttributeNS(null,"x",M),j.setAttributeNS(null,"y",D),j.setAttributeNS(null,"width",O-M),j.setAttributeNS(null,"height",H-D),j.setAttributeNS(null,"fill",this._makeShadingPattern(E)),this.current.fillAlpha<1&&j.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(j)}_makeColorN_Pattern(E){return E[0]==="TilingPattern"?this._makeTilingPattern(E):this._makeShadingPattern(E)}_makeTilingPattern(E){const R=E[1],T=E[2],B=E[3]||d.IDENTITY_MATRIX,[M,D,O,H]=E[4],j=E[5],Q=E[6],L=E[7],F=`shading${P++}`,[U,N,k,W]=d.Util.normalizeRect([...d.Util.applyTransform([M,D],B),...d.Util.applyTransform([O,H],B)]),[J,q]=d.Util.singularValueDecompose2dScale(B),Y=j*J,Z=Q*q,ee=this.svgFactory.createElement("svg:pattern");ee.setAttributeNS(null,"id",F),ee.setAttributeNS(null,"patternUnits","userSpaceOnUse"),ee.setAttributeNS(null,"width",Y),ee.setAttributeNS(null,"height",Z),ee.setAttributeNS(null,"x",`${U}`),ee.setAttributeNS(null,"y",`${N}`);const re=this.svg,ae=this.transformMatrix,V=this.current.fillColor,K=this.current.strokeColor,te=this.svgFactory.create(k-U,W-N);if(this.svg=te,this.transformMatrix=B,L===2){const ie=d.Util.makeHexColor(...R);this.current.fillColor=ie,this.current.strokeColor=ie}return this.executeOpTree(this.convertOpList(T)),this.svg=re,this.transformMatrix=ae,this.current.fillColor=V,this.current.strokeColor=K,ee.append(te.childNodes[0]),this.defs.append(ee),`url(#${F})`}_makeShadingPattern(E){switch(typeof E=="string"&&(E=this.objs.get(E)),E[0]){case"RadialAxial":const R=`shading${P++}`,T=E[3];let B;switch(E[1]){case"axial":const M=E[4],D=E[5];B=this.svgFactory.createElement("svg:linearGradient"),B.setAttributeNS(null,"id",R),B.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),B.setAttributeNS(null,"x1",M[0]),B.setAttributeNS(null,"y1",M[1]),B.setAttributeNS(null,"x2",D[0]),B.setAttributeNS(null,"y2",D[1]);break;case"radial":const O=E[4],H=E[5],j=E[6],Q=E[7];B=this.svgFactory.createElement("svg:radialGradient"),B.setAttributeNS(null,"id",R),B.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),B.setAttributeNS(null,"cx",H[0]),B.setAttributeNS(null,"cy",H[1]),B.setAttributeNS(null,"r",Q),B.setAttributeNS(null,"fx",O[0]),B.setAttributeNS(null,"fy",O[1]),B.setAttributeNS(null,"fr",j);break;default:throw new Error(`Unknown RadialAxial type: ${E[1]}`)}for(const M of T){const D=this.svgFactory.createElement("svg:stop");D.setAttributeNS(null,"offset",M[0]),D.setAttributeNS(null,"stop-color",M[1]),B.append(D)}return this.defs.append(B),`url(#${R})`;case"Mesh":return(0,d.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${E[0]}`)}}setDash(E,R){this.current.dashArray=E,this.current.dashPhase=R}constructPath(E,R){const T=this.current;let B=T.x,M=T.y,D=[],O=0;for(const H of E)switch(H|0){case d.OPS.rectangle:B=R[O++],M=R[O++];const j=R[O++],Q=R[O++],L=B+j,F=M+Q;D.push("M",C(B),C(M),"L",C(L),C(M),"L",C(L),C(F),"L",C(B),C(F),"Z");break;case d.OPS.moveTo:B=R[O++],M=R[O++],D.push("M",C(B),C(M));break;case d.OPS.lineTo:B=R[O++],M=R[O++],D.push("L",C(B),C(M));break;case d.OPS.curveTo:B=R[O+4],M=R[O+5],D.push("C",C(R[O]),C(R[O+1]),C(R[O+2]),C(R[O+3]),C(B),C(M)),O+=6;break;case d.OPS.curveTo2:D.push("C",C(B),C(M),C(R[O]),C(R[O+1]),C(R[O+2]),C(R[O+3])),B=R[O+2],M=R[O+3],O+=4;break;case d.OPS.curveTo3:B=R[O+2],M=R[O+3],D.push("C",C(R[O]),C(R[O+1]),C(B),C(M),C(B),C(M)),O+=4;break;case d.OPS.closePath:D.push("Z");break}D=D.join(" "),T.path&&E.length>0&&E[0]!==d.OPS.rectangle&&E[0]!==d.OPS.moveTo?D=T.path.getAttributeNS(null,"d")+D:(T.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(T.path)),T.path.setAttributeNS(null,"d",D),T.path.setAttributeNS(null,"fill","none"),T.element=T.path,T.setCurrentPoint(B,M)}endPath(){const E=this.current;if(E.path=null,!this.pendingClip)return;if(!E.element){this.pendingClip=null;return}const R=`clippath${w++}`,T=this.svgFactory.createElement("svg:clipPath");T.setAttributeNS(null,"id",R),T.setAttributeNS(null,"transform",S(this.transformMatrix));const B=E.element.cloneNode(!0);if(this.pendingClip==="evenodd"?B.setAttributeNS(null,"clip-rule","evenodd"):B.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,T.append(B),this.defs.append(T),E.activeClipUrl){E.clipGroup=null;for(const M of this.extraStack)M.clipGroup=null;T.setAttributeNS(null,"clip-path",E.activeClipUrl)}E.activeClipUrl=`url(#${R})`,this.tgrp=null}clip(E){this.pendingClip=E}closePath(){const E=this.current;if(E.path){const R=`${E.path.getAttributeNS(null,"d")}Z`;E.path.setAttributeNS(null,"d",R)}}setLeading(E){this.current.leading=-E}setTextRise(E){this.current.textRise=E}setTextRenderingMode(E){this.current.textRenderingMode=E}setHScale(E){this.current.textHScale=E/100}setRenderingIntent(E){}setFlatness(E){}setGState(E){for(const[R,T]of E)switch(R){case"LW":this.setLineWidth(T);break;case"LC":this.setLineCap(T);break;case"LJ":this.setLineJoin(T);break;case"ML":this.setMiterLimit(T);break;case"D":this.setDash(T[0],T[1]);break;case"RI":this.setRenderingIntent(T);break;case"FL":this.setFlatness(T);break;case"Font":this.setFont(T);break;case"CA":this.setStrokeAlpha(T);break;case"ca":this.setFillAlpha(T);break;default:(0,d.warn)(`Unimplemented graphic state operator ${R}`);break}}fill(){const E=this.current;E.element&&(E.element.setAttributeNS(null,"fill",E.fillColor),E.element.setAttributeNS(null,"fill-opacity",E.fillAlpha),this.endPath())}stroke(){const E=this.current;E.element&&(this._setStrokeAttributes(E.element),E.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(E,R=1){const T=this.current;let B=T.dashArray;R!==1&&B.length>0&&(B=B.map(function(M){return R*M})),E.setAttributeNS(null,"stroke",T.strokeColor),E.setAttributeNS(null,"stroke-opacity",T.strokeAlpha),E.setAttributeNS(null,"stroke-miterlimit",C(T.miterLimit)),E.setAttributeNS(null,"stroke-linecap",T.lineCap),E.setAttributeNS(null,"stroke-linejoin",T.lineJoin),E.setAttributeNS(null,"stroke-width",C(R*T.lineWidth)+"px"),E.setAttributeNS(null,"stroke-dasharray",B.map(C).join(" ")),E.setAttributeNS(null,"stroke-dashoffset",C(R*T.dashPhase)+"px")}eoFill(){var E;(E=this.current.element)==null||E.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var E;(E=this.current.element)==null||E.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const E=this.svgFactory.createElement("svg:rect");E.setAttributeNS(null,"x","0"),E.setAttributeNS(null,"y","0"),E.setAttributeNS(null,"width","1px"),E.setAttributeNS(null,"height","1px"),E.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(E)}paintImageXObject(E){const R=this.getObject(E);if(!R){(0,d.warn)(`Dependent image with object ID ${E} is not ready yet`);return}this.paintInlineImageXObject(R)}paintInlineImageXObject(E,R){const T=E.width,B=E.height,M=y(E,this.forceDataSchema,!!R),D=this.svgFactory.createElement("svg:rect");D.setAttributeNS(null,"x","0"),D.setAttributeNS(null,"y","0"),D.setAttributeNS(null,"width",C(T)),D.setAttributeNS(null,"height",C(B)),this.current.element=D,this.clip("nonzero");const O=this.svgFactory.createElement("svg:image");O.setAttributeNS(A,"xlink:href",M),O.setAttributeNS(null,"x","0"),O.setAttributeNS(null,"y",C(-B)),O.setAttributeNS(null,"width",C(T)+"px"),O.setAttributeNS(null,"height",C(B)+"px"),O.setAttributeNS(null,"transform",`scale(${C(1/T)} ${C(-1/B)})`),R?R.append(O):this._ensureTransformGroup().append(O)}paintImageMaskXObject(E){const R=this.getObject(E.data,E);if(R.bitmap){(0,d.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}const T=this.current,B=R.width,M=R.height,D=T.fillColor;T.maskId=`mask${I++}`;const O=this.svgFactory.createElement("svg:mask");O.setAttributeNS(null,"id",T.maskId);const H=this.svgFactory.createElement("svg:rect");H.setAttributeNS(null,"x","0"),H.setAttributeNS(null,"y","0"),H.setAttributeNS(null,"width",C(B)),H.setAttributeNS(null,"height",C(M)),H.setAttributeNS(null,"fill",D),H.setAttributeNS(null,"mask",`url(#${T.maskId})`),this.defs.append(O),this._ensureTransformGroup().append(H),this.paintInlineImageXObject(R,O)}paintFormXObjectBegin(E,R){if(Array.isArray(E)&&E.length===6&&this.transform(E[0],E[1],E[2],E[3],E[4],E[5]),R){const T=R[2]-R[0],B=R[3]-R[1],M=this.svgFactory.createElement("svg:rect");M.setAttributeNS(null,"x",R[0]),M.setAttributeNS(null,"y",R[1]),M.setAttributeNS(null,"width",C(T)),M.setAttributeNS(null,"height",C(B)),this.current.element=M,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(E){const R=this.svgFactory.create(E.width,E.height),T=this.svgFactory.createElement("svg:defs");R.append(T),this.defs=T;const B=this.svgFactory.createElement("svg:g");return B.setAttributeNS(null,"transform",S(E.transform)),R.append(B),this.svg=B,R}_ensureClipGroup(){if(!this.current.clipGroup){const E=this.svgFactory.createElement("svg:g");E.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(E),this.current.clipGroup=E}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",S(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}s.SVGGraphics=$},(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.XfaText=void 0;class c{static textContent(d){const p=[],v={items:p,styles:Object.create(null)};function A(b){var y;if(!b)return;let g=null;const x=b.name;if(x==="#text")g=b.value;else if(c.shouldBuildText(x))(y=b==null?void 0:b.attributes)!=null&&y.textContent?g=b.attributes.textContent:b.value&&(g=b.value);else return;if(g!==null&&p.push({str:g}),!!b.children)for(const f of b.children)A(f)}return A(d),v}static shouldBuildText(d){return!(d==="textarea"||d==="input"||d==="option"||d==="select")}}s.XfaText=c},(a,s,c)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.TextLayerRenderTask=void 0,s.renderTextLayer=S,s.updateTextLayer=w;var u=c(1),d=c(6);const p=1e5,v=30,A=.8,b=new Map;function g(I,P){let $;if(P&&u.FeatureTest.isOffscreenCanvasSupported)$=new OffscreenCanvas(I,I).getContext("2d",{alpha:!1});else{const _=document.createElement("canvas");_.width=_.height=I,$=_.getContext("2d",{alpha:!1})}return $}function x(I,P){const $=b.get(I);if($)return $;const _=g(v,P);_.font=`${v}px ${I}`;const E=_.measureText("");let R=E.fontBoundingBoxAscent,T=Math.abs(E.fontBoundingBoxDescent);if(R){const M=R/(R+T);return b.set(I,M),_.canvas.width=_.canvas.height=0,M}_.strokeStyle="red",_.clearRect(0,0,v,v),_.strokeText("g",0,0);let B=_.getImageData(0,0,v,v).data;T=0;for(let M=B.length-1-3;M>=0;M-=4)if(B[M]>0){T=Math.ceil(M/4/v);break}_.clearRect(0,0,v,v),_.strokeText("A",0,v),B=_.getImageData(0,0,v,v).data,R=0;for(let M=0,D=B.length;M<D;M+=4)if(B[M]>0){R=v-Math.floor(M/4/v);break}if(_.canvas.width=_.canvas.height=0,R){const M=R/(R+T);return b.set(I,M),M}return b.set(I,A),A}function y(I,P,$){const _=document.createElement("span"),E={angle:0,canvasWidth:0,hasText:P.str!=="",hasEOL:P.hasEOL,fontSize:0};I._textDivs.push(_);const R=u.Util.transform(I._transform,P.transform);let T=Math.atan2(R[1],R[0]);const B=$[P.fontName];B.vertical&&(T+=Math.PI/2);const M=Math.hypot(R[2],R[3]),D=M*x(B.fontFamily,I._isOffscreenCanvasSupported);let O,H;T===0?(O=R[4],H=R[5]-D):(O=R[4]+D*Math.sin(T),H=R[5]-D*Math.cos(T));const j="calc(var(--scale-factor)*",Q=_.style;I._container===I._rootContainer?(Q.left=`${(100*O/I._pageWidth).toFixed(2)}%`,Q.top=`${(100*H/I._pageHeight).toFixed(2)}%`):(Q.left=`${j}${O.toFixed(2)}px)`,Q.top=`${j}${H.toFixed(2)}px)`),Q.fontSize=`${j}${M.toFixed(2)}px)`,Q.fontFamily=B.fontFamily,E.fontSize=M,_.setAttribute("role","presentation"),_.textContent=P.str,_.dir=P.dir,I._fontInspectorEnabled&&(_.dataset.fontName=P.fontName),T!==0&&(E.angle=T*(180/Math.PI));let L=!1;if(P.str.length>1)L=!0;else if(P.str!==" "&&P.transform[0]!==P.transform[3]){const F=Math.abs(P.transform[0]),U=Math.abs(P.transform[3]);F!==U&&Math.max(F,U)/Math.min(F,U)>1.5&&(L=!0)}L&&(E.canvasWidth=B.vertical?P.height:P.width),I._textDivProperties.set(_,E),I._isReadableStream&&I._layoutText(_)}function f(I){const{div:P,scale:$,properties:_,ctx:E,prevFontSize:R,prevFontFamily:T}=I,{style:B}=P;let M="";if(_.canvasWidth!==0&&_.hasText){const{fontFamily:D}=B,{canvasWidth:O,fontSize:H}=_;(R!==H||T!==D)&&(E.font=`${H*$}px ${D}`,I.prevFontSize=H,I.prevFontFamily=D);const{width:j}=E.measureText(P.textContent);j>0&&(M=`scaleX(${O*$/j})`)}_.angle!==0&&(M=`rotate(${_.angle}deg) ${M}`),M.length>0&&(B.transform=M)}function m(I){if(I._canceled)return;const P=I._textDivs,$=I._capability;if(P.length>p){$.resolve();return}if(!I._isReadableStream)for(const E of P)I._layoutText(E);$.resolve()}class C{constructor({textContentSource:P,container:$,viewport:_,textDivs:E,textDivProperties:R,textContentItemsStr:T,isOffscreenCanvasSupported:B}){var j;this._textContentSource=P,this._isReadableStream=P instanceof ReadableStream,this._container=this._rootContainer=$,this._textDivs=E||[],this._textContentItemsStr=T||[],this._isOffscreenCanvasSupported=B,this._fontInspectorEnabled=!!((j=globalThis.FontInspector)!=null&&j.enabled),this._reader=null,this._textDivProperties=R||new WeakMap,this._canceled=!1,this._capability=new u.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:_.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:g(0,B)};const{pageWidth:M,pageHeight:D,pageX:O,pageY:H}=_.rawDims;this._transform=[1,0,0,-1,-O,H+D],this._pageWidth=M,this._pageHeight=D,(0,d.setLayerDimensions)($,_),this._capability.promise.finally(()=>{this._layoutTextParams=null}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new u.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._capability.reject(new u.AbortException("TextLayer task cancelled."))}_processItems(P,$){for(const _ of P){if(_.str===void 0){if(_.type==="beginMarkedContentProps"||_.type==="beginMarkedContent"){const E=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),_.id!==null&&this._container.setAttribute("id",`${_.id}`),E.append(this._container)}else _.type==="endMarkedContent"&&(this._container=this._container.parentNode);continue}this._textContentItemsStr.push(_.str),y(this,_,$)}}_layoutText(P){const $=this._layoutTextParams.properties=this._textDivProperties.get(P);if(this._layoutTextParams.div=P,f(this._layoutTextParams),$.hasText&&this._container.append(P),$.hasEOL){const _=document.createElement("br");_.setAttribute("role","presentation"),this._container.append(_)}}_render(){const P=new u.PromiseCapability;let $=Object.create(null);if(this._isReadableStream){const _=()=>{this._reader.read().then(({value:E,done:R})=>{if(R){P.resolve();return}Object.assign($,E.styles),this._processItems(E.items,$),_()},P.reject)};this._reader=this._textContentSource.getReader(),_()}else if(this._textContentSource){const{items:_,styles:E}=this._textContentSource;this._processItems(_,E),P.resolve()}else throw new Error('No "textContentSource" parameter specified.');P.promise.then(()=>{$=null,m(this)},this._capability.reject)}}s.TextLayerRenderTask=C;function S(I){!I.textContentSource&&(I.textContent||I.textContentStream)&&((0,d.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),I.textContentSource=I.textContent||I.textContentStream);const{container:P,viewport:$}=I,_=getComputedStyle(P),E=_.getPropertyValue("visibility"),R=parseFloat(_.getPropertyValue("--scale-factor"));E==="visible"&&(!R||Math.abs(R-$.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");const T=new C(I);return T._render(),T}function w({container:I,viewport:P,textDivs:$,textDivProperties:_,isOffscreenCanvasSupported:E,mustRotate:R=!0,mustRescale:T=!0}){if(R&&(0,d.setLayerDimensions)(I,{rotation:P.rotation}),T){const B=g(0,E),D={prevFontSize:null,prevFontFamily:null,div:null,scale:P.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:B};for(const O of $)D.properties=_.get(O),D.div=O,f(D)}}},(a,s,c)=>{var x,y,f,m,C,S,w,I,P,$,_,ll,xo,cl,ul;Object.defineProperty(s,"__esModule",{value:!0}),s.AnnotationEditorLayer=void 0;var u=c(1),d=c(4),p=c(28),v=c(33),A=c(6),b=c(34);const M=class M{constructor({uiManager:O,pageIndex:H,div:j,accessibilityManager:Q,annotationLayer:L,viewport:F,l10n:U}){vt(this,_);vt(this,x);vt(this,y,!1);vt(this,f,null);vt(this,m,this.pointerup.bind(this));vt(this,C,this.pointerdown.bind(this));vt(this,S,new Map);vt(this,w,!1);vt(this,I,!1);vt(this,P,!1);vt(this,$);const N=[p.FreeTextEditor,v.InkEditor,b.StampEditor];if(!M._initialized){M._initialized=!0;for(const k of N)k.initialize(U)}O.registerEditorTypes(N),Ct(this,$,O),this.pageIndex=H,this.div=j,Ct(this,x,Q),Ct(this,f,L),this.viewport=F,He(this,$).addLayer(this)}get isEmpty(){return He(this,S).size===0}updateToolbar(O){He(this,$).updateToolbar(O)}updateMode(O=He(this,$).getMode()){it(this,_,ul).call(this),O===u.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),O!==u.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",O===u.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",O===u.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",O===u.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(O){if(!O&&He(this,$).getMode()!==u.AnnotationEditorType.INK)return;if(!O){for(const j of He(this,S).values())if(j.isEmpty()){j.setInBackground();return}}it(this,_,xo).call(this,{offsetX:0,offsetY:0},!1).setInBackground()}setEditingState(O){He(this,$).setEditingState(O)}addCommands(O){He(this,$).addCommands(O)}enable(){this.div.style.pointerEvents="auto";const O=new Set;for(const j of He(this,S).values())j.enableEditing(),j.annotationElementId&&O.add(j.annotationElementId);if(!He(this,f))return;const H=He(this,f).getEditableAnnotations();for(const j of H){if(j.hide(),He(this,$).isDeletedAnnotationElement(j.data.id)||O.has(j.data.id))continue;const Q=this.deserialize(j);Q&&(this.addOrRebuild(Q),Q.enableEditing())}}disable(){var H;Ct(this,P,!0),this.div.style.pointerEvents="none";const O=new Set;for(const j of He(this,S).values()){if(j.disableEditing(),!j.annotationElementId||j.serialize()!==null){O.add(j.annotationElementId);continue}(H=this.getEditableAnnotation(j.annotationElementId))==null||H.show(),j.remove()}if(He(this,f)){const j=He(this,f).getEditableAnnotations();for(const Q of j){const{id:L}=Q.data;O.has(L)||He(this,$).isDeletedAnnotationElement(L)||Q.show()}}it(this,_,ul).call(this),this.isEmpty&&(this.div.hidden=!0),Ct(this,P,!1)}getEditableAnnotation(O){var H;return((H=He(this,f))==null?void 0:H.getEditableAnnotation(O))||null}setActiveEditor(O){He(this,$).getActive()!==O&&He(this,$).setActiveEditor(O)}enableClick(){this.div.addEventListener("pointerdown",He(this,C)),this.div.addEventListener("pointerup",He(this,m))}disableClick(){this.div.removeEventListener("pointerdown",He(this,C)),this.div.removeEventListener("pointerup",He(this,m))}attach(O){He(this,S).set(O.id,O);const{annotationElementId:H}=O;H&&He(this,$).isDeletedAnnotationElement(H)&&He(this,$).removeDeletedAnnotationElement(O)}detach(O){var H;He(this,S).delete(O.id),(H=He(this,x))==null||H.removePointerInTextLayer(O.contentDiv),!He(this,P)&&O.annotationElementId&&He(this,$).addDeletedAnnotationElement(O)}remove(O){this.detach(O),He(this,$).removeEditor(O),O.div.contains(document.activeElement)&&setTimeout(()=>{He(this,$).focusMainContainer()},0),O.div.remove(),O.isAttachedToDOM=!1,He(this,I)||this.addInkEditorIfNeeded(!1)}changeParent(O){var H;O.parent!==this&&(O.annotationElementId&&(He(this,$).addDeletedAnnotationElement(O.annotationElementId),d.AnnotationEditor.deleteAnnotationElement(O),O.annotationElementId=null),this.attach(O),(H=O.parent)==null||H.detach(O),O.setParent(this),O.div&&O.isAttachedToDOM&&(O.div.remove(),this.div.append(O.div)))}add(O){if(this.changeParent(O),He(this,$).addEditor(O),this.attach(O),!O.isAttachedToDOM){const H=O.render();this.div.append(H),O.isAttachedToDOM=!0}O.fixAndSetPosition(),O.onceAdded(),He(this,$).addToAnnotationStorage(O)}moveEditorInDOM(O){var j;if(!O.isAttachedToDOM)return;const{activeElement:H}=document;O.div.contains(H)&&(O._focusEventsAllowed=!1,setTimeout(()=>{O.div.contains(document.activeElement)?O._focusEventsAllowed=!0:(O.div.addEventListener("focusin",()=>{O._focusEventsAllowed=!0},{once:!0}),H.focus())},0)),O._structTreeParentId=(j=He(this,x))==null?void 0:j.moveElementInDOM(this.div,O.div,O.contentDiv,!0)}addOrRebuild(O){O.needsToBeRebuilt()?O.rebuild():this.add(O)}addUndoableEditor(O){const H=()=>O._uiManager.rebuild(O),j=()=>{O.remove()};this.addCommands({cmd:H,undo:j,mustExec:!1})}getNextId(){return He(this,$).getId()}pasteEditor(O,H){He(this,$).updateToolbar(O),He(this,$).updateMode(O);const{offsetX:j,offsetY:Q}=it(this,_,cl).call(this),L=this.getNextId(),F=it(this,_,ll).call(this,{parent:this,id:L,x:j,y:Q,uiManager:He(this,$),isCentered:!0,...H});F&&this.add(F)}deserialize(O){switch(O.annotationType??O.annotationEditorType){case u.AnnotationEditorType.FREETEXT:return p.FreeTextEditor.deserialize(O,this,He(this,$));case u.AnnotationEditorType.INK:return v.InkEditor.deserialize(O,this,He(this,$));case u.AnnotationEditorType.STAMP:return b.StampEditor.deserialize(O,this,He(this,$))}return null}addNewEditor(){it(this,_,xo).call(this,it(this,_,cl).call(this),!0)}setSelected(O){He(this,$).setSelected(O)}toggleSelected(O){He(this,$).toggleSelected(O)}isSelected(O){return He(this,$).isSelected(O)}unselect(O){He(this,$).unselect(O)}pointerup(O){const{isMac:H}=u.FeatureTest.platform;if(!(O.button!==0||O.ctrlKey&&H)&&O.target===this.div&&He(this,w)){if(Ct(this,w,!1),!He(this,y)){Ct(this,y,!0);return}if(He(this,$).getMode()===u.AnnotationEditorType.STAMP){He(this,$).unselectAll();return}it(this,_,xo).call(this,O,!1)}}pointerdown(O){if(He(this,w)){Ct(this,w,!1);return}const{isMac:H}=u.FeatureTest.platform;if(O.button!==0||O.ctrlKey&&H||O.target!==this.div)return;Ct(this,w,!0);const j=He(this,$).getActive();Ct(this,y,!j||j.isEmpty())}findNewParent(O,H,j){const Q=He(this,$).findParent(H,j);return Q===null||Q===this?!1:(Q.changeParent(O),!0)}destroy(){var O,H;((O=He(this,$).getActive())==null?void 0:O.parent)===this&&(He(this,$).commitOrRemove(),He(this,$).setActiveEditor(null));for(const j of He(this,S).values())(H=He(this,x))==null||H.removePointerInTextLayer(j.contentDiv),j.setParent(null),j.isAttachedToDOM=!1,j.div.remove();this.div=null,He(this,S).clear(),He(this,$).removeLayer(this)}render({viewport:O}){this.viewport=O,(0,A.setLayerDimensions)(this.div,O);for(const H of He(this,$).getEditors(this.pageIndex))this.add(H);this.updateMode()}update({viewport:O}){He(this,$).commitOrRemove(),this.viewport=O,(0,A.setLayerDimensions)(this.div,{rotation:O.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:O,pageHeight:H}=this.viewport.rawDims;return[O,H]}};x=new WeakMap,y=new WeakMap,f=new WeakMap,m=new WeakMap,C=new WeakMap,S=new WeakMap,w=new WeakMap,I=new WeakMap,P=new WeakMap,$=new WeakMap,_=new WeakSet,ll=function(O){switch(He(this,$).getMode()){case u.AnnotationEditorType.FREETEXT:return new p.FreeTextEditor(O);case u.AnnotationEditorType.INK:return new v.InkEditor(O);case u.AnnotationEditorType.STAMP:return new b.StampEditor(O)}return null},xo=function(O,H){const j=this.getNextId(),Q=it(this,_,ll).call(this,{parent:this,id:j,x:O.offsetX,y:O.offsetY,uiManager:He(this,$),isCentered:H});return Q&&this.add(Q),Q},cl=function(){const{x:O,y:H,width:j,height:Q}=this.div.getBoundingClientRect(),L=Math.max(0,O),F=Math.max(0,H),U=Math.min(window.innerWidth,O+j),N=Math.min(window.innerHeight,H+Q),k=(L+U)/2-O,W=(F+N)/2-H,[J,q]=this.viewport.rotation%180===0?[k,W]:[W,k];return{offsetX:J,offsetY:q}},ul=function(){Ct(this,I,!0);for(const O of He(this,S).values())O.isEmpty()&&O.remove();Ct(this,I,!1)},yr(M,"_initialized",!1);let g=M;s.AnnotationEditorLayer=g},(a,s,c)=>{var b,g,x,y,f,m,C,S,w,I,ku,Fu,Nu,vi,dl,Lu,fl;Object.defineProperty(s,"__esModule",{value:!0}),s.FreeTextEditor=void 0;var u=c(1),d=c(5),p=c(4),v=c(29);const M=class M extends p.AnnotationEditor{constructor(H){super({...H,name:"freeTextEditor"});vt(this,I);vt(this,b,this.editorDivBlur.bind(this));vt(this,g,this.editorDivFocus.bind(this));vt(this,x,this.editorDivInput.bind(this));vt(this,y,this.editorDivKeydown.bind(this));vt(this,f);vt(this,m,"");vt(this,C,`${this.id}-editor`);vt(this,S);vt(this,w,null);Ct(this,f,H.color||M._defaultColor||p.AnnotationEditor._defaultLineColor),Ct(this,S,H.fontSize||M._defaultFontSize)}static get _keyboardManager(){const H=M.prototype,j=F=>F.isEmpty(),Q=d.AnnotationEditorUIManager.TRANSLATE_SMALL,L=d.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,u.shadow)(this,"_keyboardManager",new d.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],H.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],H.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],H._translateEmpty,{args:[-Q,0],checker:j}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],H._translateEmpty,{args:[-L,0],checker:j}],[["ArrowRight","mac+ArrowRight"],H._translateEmpty,{args:[Q,0],checker:j}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],H._translateEmpty,{args:[L,0],checker:j}],[["ArrowUp","mac+ArrowUp"],H._translateEmpty,{args:[0,-Q],checker:j}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],H._translateEmpty,{args:[0,-L],checker:j}],[["ArrowDown","mac+ArrowDown"],H._translateEmpty,{args:[0,Q],checker:j}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],H._translateEmpty,{args:[0,L],checker:j}]]))}static initialize(H){p.AnnotationEditor.initialize(H,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});const j=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(j.getPropertyValue("--freetext-padding"))}static updateDefaultParams(H,j){switch(H){case u.AnnotationEditorParamsType.FREETEXT_SIZE:M._defaultFontSize=j;break;case u.AnnotationEditorParamsType.FREETEXT_COLOR:M._defaultColor=j;break}}updateParams(H,j){switch(H){case u.AnnotationEditorParamsType.FREETEXT_SIZE:it(this,I,ku).call(this,j);break;case u.AnnotationEditorParamsType.FREETEXT_COLOR:it(this,I,Fu).call(this,j);break}}static get defaultPropertiesToUpdate(){return[[u.AnnotationEditorParamsType.FREETEXT_SIZE,M._defaultFontSize],[u.AnnotationEditorParamsType.FREETEXT_COLOR,M._defaultColor||p.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[u.AnnotationEditorParamsType.FREETEXT_SIZE,He(this,S)],[u.AnnotationEditorParamsType.FREETEXT_COLOR,He(this,f)]]}_translateEmpty(H,j){this._uiManager.translateSelectedEditors(H,j,!0)}getInitialTranslation(){const H=this.parentScale;return[-M._internalPadding*H,-(M._internalPadding+He(this,S))*H]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(u.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",He(this,y)),this.editorDiv.addEventListener("focus",He(this,g)),this.editorDiv.addEventListener("blur",He(this,b)),this.editorDiv.addEventListener("input",He(this,x)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",He(this,C)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",He(this,y)),this.editorDiv.removeEventListener("focus",He(this,g)),this.editorDiv.removeEventListener("blur",He(this,b)),this.editorDiv.removeEventListener("input",He(this,x)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(H){this._focusEventsAllowed&&(super.focusin(H),H.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var H;if(this.width){it(this,I,fl).call(this);return}this.enableEditMode(),this.editorDiv.focus(),(H=this._initialOptions)!=null&&H.isCentered&&this.center(),this._initialOptions=null}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const H=He(this,m),j=Ct(this,m,it(this,I,Nu).call(this).trimEnd());if(H===j)return;const Q=L=>{if(Ct(this,m,L),!L){this.remove();return}it(this,I,dl).call(this),this._uiManager.rebuild(this),it(this,I,vi).call(this)};this.addCommands({cmd:()=>{Q(j)},undo:()=>{Q(H)},mustExec:!1}),it(this,I,vi).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(H){this.enterInEditMode()}keydown(H){H.target===this.div&&H.key==="Enter"&&(this.enterInEditMode(),H.preventDefault())}editorDivKeydown(H){M._keyboardManager.exec(this,H)}editorDivFocus(H){this.isEditing=!0}editorDivBlur(H){this.isEditing=!1}editorDivInput(H){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let H,j;this.width&&(H=this.x,j=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",He(this,C)),this.enableEditing(),p.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then(L=>{var F;return(F=this.editorDiv)==null?void 0:F.setAttribute("aria-label",L)}),p.AnnotationEditor._l10nPromise.get("free_text2_default_content").then(L=>{var F;return(F=this.editorDiv)==null?void 0:F.setAttribute("default-content",L)}),this.editorDiv.contentEditable=!0;const{style:Q}=this.editorDiv;if(Q.fontSize=`calc(${He(this,S)}px * var(--scale-factor))`,Q.color=He(this,f),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,d.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[L,F]=this.parentDimensions;if(this.annotationElementId){const{position:U}=He(this,w);let[N,k]=this.getInitialTranslation();[N,k]=this.pageTranslationToScreen(N,k);const[W,J]=this.pageDimensions,[q,Y]=this.pageTranslation;let Z,ee;switch(this.rotation){case 0:Z=H+(U[0]-q)/W,ee=j+this.height-(U[1]-Y)/J;break;case 90:Z=H+(U[0]-q)/W,ee=j-(U[1]-Y)/J,[N,k]=[k,-N];break;case 180:Z=H-this.width+(U[0]-q)/W,ee=j-(U[1]-Y)/J,[N,k]=[-N,-k];break;case 270:Z=H+(U[0]-q-this.height*J)/W,ee=j+(U[1]-Y-this.width*W)/J,[N,k]=[-k,N];break}this.setAt(Z*L,ee*F,N,k)}else this.setAt(H*L,j*F,this.width*L,this.height*F);it(this,I,dl).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(H,j,Q){let L=null;if(H instanceof v.FreeTextAnnotationElement){const{data:{defaultAppearanceData:{fontSize:U,fontColor:N},rect:k,rotation:W,id:J},textContent:q,textPosition:Y,parent:{page:{pageNumber:Z}}}=H;if(!q||q.length===0)return null;L=H={annotationType:u.AnnotationEditorType.FREETEXT,color:Array.from(N),fontSize:U,value:q.join(`
|
@@ -370,7 +370,7 @@ html body {
|
|
370
370
|
${s}-body,
|
371
371
|
${s}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${s}-confirm-body`]:{marginBottom:"auto"}}}]},genRTLStyle=a=>{const{componentCls:s}=a;return{[`${s}-root`]:{[`${s}-wrap-rtl`]:{direction:"rtl",[`${s}-confirm-body`]:{direction:"rtl"}}}}},genResponsiveWidthStyle=a=>{const{componentCls:s}=a,c=getMediaSize(a);delete c.xs;const u=Object.keys(c).map(d=>({[`@media (min-width: ${unit$1(c[d])})`]:{width:`var(--${s.replace(".","")}-${d}-width)`}}));return{[`${s}-root`]:{[s]:[{width:`var(--${s.replace(".","")}-xs-width)`}].concat(_toConsumableArray$e(u))}}},prepareToken$2=a=>{const s=a.padding,c=a.fontSizeHeading5,u=a.lineHeightHeading5;return merge(a,{modalHeaderHeight:a.calc(a.calc(u).mul(c).equal()).add(a.calc(s).mul(2).equal()).equal(),modalFooterBorderColorSplit:a.colorSplit,modalFooterBorderStyle:a.lineType,modalFooterBorderWidth:a.lineWidth,modalCloseIconColor:a.colorIcon,modalCloseIconHoverColor:a.colorIconHover,modalCloseBtnSize:a.controlHeight,modalConfirmIconSize:a.fontHeight,modalTitleHeight:a.calc(a.titleFontSize).mul(a.titleLineHeight).equal()})},prepareComponentToken$q=a=>({footerBg:"transparent",headerBg:a.colorBgElevated,titleLineHeight:a.lineHeightHeading5,titleFontSize:a.fontSizeHeading5,contentBg:a.colorBgElevated,titleColor:a.colorTextHeading,contentPadding:a.wireframe?0:`${unit$1(a.paddingMD)} ${unit$1(a.paddingContentHorizontalLG)}`,headerPadding:a.wireframe?`${unit$1(a.padding)} ${unit$1(a.paddingLG)}`:0,headerBorderBottom:a.wireframe?`${unit$1(a.lineWidth)} ${a.lineType} ${a.colorSplit}`:"none",headerMarginBottom:a.wireframe?0:a.marginXS,bodyPadding:a.wireframe?a.paddingLG:0,footerPadding:a.wireframe?`${unit$1(a.paddingXS)} ${unit$1(a.padding)}`:0,footerBorderTop:a.wireframe?`${unit$1(a.lineWidth)} ${a.lineType} ${a.colorSplit}`:"none",footerBorderRadius:a.wireframe?`0 0 ${unit$1(a.borderRadiusLG)} ${unit$1(a.borderRadiusLG)}`:0,footerMarginTop:a.wireframe?0:a.marginSM,confirmBodyPadding:a.wireframe?`${unit$1(a.padding*2)} ${unit$1(a.padding*2)} ${unit$1(a.paddingLG)}`:0,confirmIconMarginInlineEnd:a.wireframe?a.margin:a.marginSM,confirmBtnsMarginTop:a.wireframe?a.marginLG:a.marginSM});genStyleHooks("Modal",a=>{const s=prepareToken$2(a);return[genModalStyle(s),genRTLStyle(s),genModalMaskStyle(s),initZoomMotion(s,"zoom"),genResponsiveWidthStyle(s)]},prepareComponentToken$q,{unitless:{titleLineHeight:!0}});const AppConfigContext=React.createContext({});function withPureRenderTheme(a){return s=>reactExports.createElement(ConfigProvider,{theme:{token:{motion:!1,zIndexPopupBase:0}}},reactExports.createElement(a,Object.assign({},s)))}const genPurePanel=(a,s,c,u,d)=>withPureRenderTheme(v=>{const{prefixCls:A,style:b}=v,g=reactExports.useRef(null),[x,y]=reactExports.useState(0),[f,m]=reactExports.useState(0),[C,S]=useMergedState(!1,{value:v.open}),{getPrefixCls:w}=reactExports.useContext(ConfigContext$1),I=w(u||"select",A);reactExports.useEffect(()=>{if(S(!0),typeof ResizeObserver<"u"){const _=new ResizeObserver(R=>{const T=R[0].target;y(T.offsetHeight+8),m(T.offsetWidth)}),E=setInterval(()=>{var R;const T=d?`.${d(I)}`:`.${I}-dropdown`,B=(R=g.current)===null||R===void 0?void 0:R.querySelector(T);B&&(clearInterval(E),_.observe(B))},10);return()=>{clearInterval(E),_.disconnect()}}},[]);let P=Object.assign(Object.assign({},v),{style:Object.assign(Object.assign({},b),{margin:0}),open:C,visible:C,getPopupContainer:()=>g.current});c&&(P=c(P)),s&&Object.assign(P,{[s]:{overflow:{adjustX:!1,adjustY:!1}}});const $={paddingBottom:x,position:"relative",minWidth:f};return reactExports.createElement("div",{ref:g,style:$},reactExports.createElement(a,Object.assign({},P)))}),isMobile$1=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var a=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(a==null?void 0:a.substr(0,4))};var TransBtn=function a(s){var c=s.className,u=s.customizeIcon,d=s.customizeIconProps,p=s.children,v=s.onMouseDown,A=s.onClick,b=typeof u=="function"?u(d):u;return reactExports.createElement("span",{className:c,onMouseDown:function(x){x.preventDefault(),v==null||v(x)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:A,"aria-hidden":!0},b!==void 0?b:reactExports.createElement("span",{className:classnames(c.split(/\s+/).map(function(g){return"".concat(g,"-icon")}))},p))},useAllowClear=function a(s,c,u,d,p){var v=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,A=arguments.length>6?arguments[6]:void 0,b=arguments.length>7?arguments[7]:void 0,g=React.useMemo(function(){if(_typeof$h(d)==="object")return d.clearIcon;if(p)return p},[d,p]),x=React.useMemo(function(){return!!(!v&&d&&(u.length||A)&&!(b==="combobox"&&A===""))},[d,v,u.length,A,b]);return{allowClear:x,clearIcon:React.createElement(TransBtn,{className:"".concat(s,"-clear"),onMouseDown:c,customizeIcon:g},"×")}},BaseSelectContext=reactExports.createContext(null);function useBaseProps(){return reactExports.useContext(BaseSelectContext)}function useDelayReset(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,s=reactExports.useState(!1),c=_slicedToArray$e(s,2),u=c[0],d=c[1],p=reactExports.useRef(null),v=function(){window.clearTimeout(p.current)};reactExports.useEffect(function(){return v},[]);var A=function(g,x){v(),p.current=window.setTimeout(function(){d(g),x&&x()},a)};return[u,A,v]}function useLock(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,s=reactExports.useRef(null),c=reactExports.useRef(null);reactExports.useEffect(function(){return function(){window.clearTimeout(c.current)}},[]);function u(d){(d||s.current===null)&&(s.current=d),window.clearTimeout(c.current),c.current=window.setTimeout(function(){s.current=null},a)}return[function(){return s.current},u]}function useSelectTriggerControl(a,s,c,u){var d=reactExports.useRef(null);d.current={open:s,triggerOpen:c,customizedTrigger:u},reactExports.useEffect(function(){function p(v){var A;if(!((A=d.current)!==null&&A!==void 0&&A.customizedTrigger)){var b=v.target;b.shadowRoot&&v.composed&&(b=v.composedPath()[0]||b),d.current.open&&a().filter(function(g){return g}).every(function(g){return!g.contains(b)&&g!==b})&&d.current.triggerOpen(!1)}}return window.addEventListener("mousedown",p),function(){return window.removeEventListener("mousedown",p)}},[])}function isValidateOpenKey(a){return a&&![KeyCode.ESC,KeyCode.SHIFT,KeyCode.BACKSPACE,KeyCode.TAB,KeyCode.WIN_KEY,KeyCode.ALT,KeyCode.META,KeyCode.WIN_KEY_RIGHT,KeyCode.CTRL,KeyCode.SEMICOLON,KeyCode.EQUALS,KeyCode.CAPS_LOCK,KeyCode.CONTEXT_MENU,KeyCode.F1,KeyCode.F2,KeyCode.F3,KeyCode.F4,KeyCode.F5,KeyCode.F6,KeyCode.F7,KeyCode.F8,KeyCode.F9,KeyCode.F10,KeyCode.F11,KeyCode.F12].includes(a)}var _excluded$T=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED$1=void 0;function InternalItem(a,s){var c=a.prefixCls,u=a.invalidate,d=a.item,p=a.renderItem,v=a.responsive,A=a.responsiveDisabled,b=a.registerSize,g=a.itemKey,x=a.className,y=a.style,f=a.children,m=a.display,C=a.order,S=a.component,w=S===void 0?"div":S,I=_objectWithoutProperties$2(a,_excluded$T),P=v&&!m;function $(B){b(g,B)}reactExports.useEffect(function(){return function(){$(null)}},[]);var _=p&&d!==UNDEFINED$1?p(d,{index:C}):f,E;u||(E={opacity:P?0:1,height:P?0:UNDEFINED$1,overflowY:P?"hidden":UNDEFINED$1,order:v?C:UNDEFINED$1,pointerEvents:P?"none":UNDEFINED$1,position:P?"absolute":UNDEFINED$1});var R={};P&&(R["aria-hidden"]=!0);var T=reactExports.createElement(w,_extends$3({className:classnames(!u&&c,x),style:_objectSpread2$1(_objectSpread2$1({},E),y)},R,I,{ref:s}),_);return v&&(T=reactExports.createElement(RefResizeObserver,{onResize:function(M){var D=M.offsetWidth;$(D)},disabled:A},T)),T}var Item$3=reactExports.forwardRef(InternalItem);Item$3.displayName="Item";function channelUpdate(a){if(typeof MessageChannel>"u")wrapperRaf(a);else{var s=new MessageChannel;s.port1.onmessage=function(){return a()},s.port2.postMessage(void 0)}}function useBatcher(){var a=reactExports.useRef(null),s=function(u){a.current||(a.current=[],channelUpdate(function(){reactDomExports.unstable_batchedUpdates(function(){a.current.forEach(function(d){d()}),a.current=null})})),a.current.push(u)};return s}function useEffectState(a,s){var c=reactExports.useState(s),u=_slicedToArray$e(c,2),d=u[0],p=u[1],v=useEvent(function(A){a(function(){p(A)})});return[d,v]}var OverflowContext=React.createContext(null),_excluded$S=["component"],_excluded2$c=["className"],_excluded3$1=["className"],InternalRawItem=function a(s,c){var u=reactExports.useContext(OverflowContext);if(!u){var d=s.component,p=d===void 0?"div":d,v=_objectWithoutProperties$2(s,_excluded$S);return reactExports.createElement(p,_extends$3({},v,{ref:c}))}var A=u.className,b=_objectWithoutProperties$2(u,_excluded2$c),g=s.className,x=_objectWithoutProperties$2(s,_excluded3$1);return reactExports.createElement(OverflowContext.Provider,{value:null},reactExports.createElement(Item$3,_extends$3({ref:c,className:classnames(A,g)},b,x)))},RawItem=reactExports.forwardRef(InternalRawItem);RawItem.displayName="RawItem";var _excluded$R=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],RESPONSIVE="responsive",INVALIDATE="invalidate";function defaultRenderRest(a){return"+ ".concat(a.length," ...")}function Overflow(a,s){var c=a.prefixCls,u=c===void 0?"rc-overflow":c,d=a.data,p=d===void 0?[]:d,v=a.renderItem,A=a.renderRawItem,b=a.itemKey,g=a.itemWidth,x=g===void 0?10:g,y=a.ssr,f=a.style,m=a.className,C=a.maxCount,S=a.renderRest,w=a.renderRawRest,I=a.suffix,P=a.component,$=P===void 0?"div":P,_=a.itemComponent,E=a.onVisibleChange,R=_objectWithoutProperties$2(a,_excluded$R),T=y==="full",B=useBatcher(),M=useEffectState(B,null),D=_slicedToArray$e(M,2),O=D[0],H=D[1],j=O||0,Q=useEffectState(B,new Map),L=_slicedToArray$e(Q,2),F=L[0],U=L[1],N=useEffectState(B,0),k=_slicedToArray$e(N,2),W=k[0],J=k[1],q=useEffectState(B,0),Y=_slicedToArray$e(q,2),Z=Y[0],ee=Y[1],re=useEffectState(B,0),ae=_slicedToArray$e(re,2),V=ae[0],K=ae[1],te=reactExports.useState(null),ie=_slicedToArray$e(te,2),ce=ie[0],ge=ie[1],Se=reactExports.useState(null),be=_slicedToArray$e(Se,2),me=be[0],fe=be[1],se=reactExports.useMemo(function(){return me===null&&T?Number.MAX_SAFE_INTEGER:me||0},[me,O]),oe=reactExports.useState(!1),de=_slicedToArray$e(oe,2),le=de[0],xe=de[1],Ce="".concat(u,"-item"),$e=Math.max(W,Z),we=C===RESPONSIVE,Ee=p.length&&we,Ae=C===INVALIDATE,pe=Ee||typeof C=="number"&&p.length>C,he=reactExports.useMemo(function(){var We=p;return Ee?O===null&&T?We=p:We=p.slice(0,Math.min(p.length,j/x)):typeof C=="number"&&(We=p.slice(0,C)),We},[p,x,O,C,Ee]),Ie=reactExports.useMemo(function(){return Ee?p.slice(se+1):p.slice(he.length)},[p,he,Ee,se]),ye=reactExports.useCallback(function(We,ze){var Qe;return typeof b=="function"?b(We):(Qe=b&&(We==null?void 0:We[b]))!==null&&Qe!==void 0?Qe:ze},[b]),Pe=reactExports.useCallback(v||function(We){return We},[v]);function Le(We,ze,Qe){me===We&&(ze===void 0||ze===ce)||(fe(We),Qe||(xe(We<p.length-1),E==null||E(We)),ze!==void 0&&ge(ze))}function Ne(We,ze){H(ze.clientWidth)}function Me(We,ze){U(function(Qe){var et=new Map(Qe);return ze===null?et.delete(We):et.set(We,ze),et})}function Fe(We,ze){ee(ze),J(Z)}function _e(We,ze){K(ze)}function je(We){return F.get(ye(he[We],We))}useLayoutEffect$1(function(){if(j&&typeof $e=="number"&&he){var We=V,ze=he.length,Qe=ze-1;if(!ze){Le(0,null);return}for(var et=0;et<ze;et+=1){var Ze=je(et);if(T&&(Ze=Ze||0),Ze===void 0){Le(et-1,void 0,!0);break}if(We+=Ze,Qe===0&&We<=j||et===Qe-1&&We+je(Qe)<=j){Le(Qe,null);break}else if(We+$e>j){Le(et-1,We-Ze-V+Z);break}}I&&je(0)+V>j&&ge(null)}},[j,F,Z,V,ye,he]);var Ye=le&&!!Ie.length,Te={};ce!==null&&Ee&&(Te={position:"absolute",left:ce,top:0});var ke={prefixCls:Ce,responsive:Ee,component:_,invalidate:Ae},De=A?function(We,ze){var Qe=ye(We,ze);return reactExports.createElement(OverflowContext.Provider,{key:Qe,value:_objectSpread2$1(_objectSpread2$1({},ke),{},{order:ze,item:We,itemKey:Qe,registerSize:Me,display:ze<=se})},A(We,ze))}:function(We,ze){var Qe=ye(We,ze);return reactExports.createElement(Item$3,_extends$3({},ke,{order:ze,key:Qe,item:We,renderItem:Pe,itemKey:Qe,registerSize:Me,display:ze<=se}))},Re={order:Ye?se:Number.MAX_SAFE_INTEGER,className:"".concat(Ce,"-rest"),registerSize:Fe,display:Ye},Ge=S||defaultRenderRest,Ve=w?reactExports.createElement(OverflowContext.Provider,{value:_objectSpread2$1(_objectSpread2$1({},ke),Re)},w(Ie)):reactExports.createElement(Item$3,_extends$3({},ke,Re),typeof Ge=="function"?Ge(Ie):Ge),Xe=reactExports.createElement($,_extends$3({className:classnames(!Ae&&u,m),style:f,ref:s},R),he.map(De),pe?Ve:null,I&&reactExports.createElement(Item$3,_extends$3({},ke,{responsive:we,responsiveDisabled:!Ee,order:se,className:"".concat(Ce,"-suffix"),registerSize:_e,display:!0,style:Te}),I));return we?reactExports.createElement(RefResizeObserver,{onResize:Ne,disabled:!Ee},Xe):Xe}var ForwardOverflow=reactExports.forwardRef(Overflow);ForwardOverflow.displayName="Overflow",ForwardOverflow.Item=RawItem,ForwardOverflow.RESPONSIVE=RESPONSIVE,ForwardOverflow.INVALIDATE=INVALIDATE;var Input$5=function a(s,c){var u,d=s.prefixCls,p=s.id,v=s.inputElement,A=s.disabled,b=s.tabIndex,g=s.autoFocus,x=s.autoComplete,y=s.editable,f=s.activeDescendantId,m=s.value,C=s.maxLength,S=s.onKeyDown,w=s.onMouseDown,I=s.onChange,P=s.onPaste,$=s.onCompositionStart,_=s.onCompositionEnd,E=s.onBlur,R=s.open,T=s.attrs,B=v||reactExports.createElement("input",null),M=B,D=M.ref,O=M.props,H=O.onKeyDown,j=O.onChange,Q=O.onMouseDown,L=O.onCompositionStart,F=O.onCompositionEnd,U=O.onBlur,N=O.style;return"maxLength"in B.props,B=reactExports.cloneElement(B,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({type:"search"},O),{},{id:p,ref:composeRef(c,D),disabled:A,tabIndex:b,autoComplete:x||"off",autoFocus:g,className:classnames("".concat(d,"-selection-search-input"),(u=B)===null||u===void 0||(u=u.props)===null||u===void 0?void 0:u.className),role:"combobox","aria-expanded":R||!1,"aria-haspopup":"listbox","aria-owns":"".concat(p,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(p,"_list"),"aria-activedescendant":R?f:void 0},T),{},{value:y?m:"",maxLength:C,readOnly:!y,unselectable:y?null:"on",style:_objectSpread2$1(_objectSpread2$1({},N),{},{opacity:y?null:0}),onKeyDown:function(W){S(W),H&&H(W)},onMouseDown:function(W){w(W),Q&&Q(W)},onChange:function(W){I(W),j&&j(W)},onCompositionStart:function(W){$(W),L&&L(W)},onCompositionEnd:function(W){_(W),F&&F(W)},onPaste:P,onBlur:function(W){E(W),U&&U(W)}})),B},RefInput=reactExports.forwardRef(Input$5);function toArray$6(a){return Array.isArray(a)?a:a!==void 0?[a]:[]}var isClient=typeof window<"u"&&window.document&&window.document.documentElement,isBrowserClient$2=isClient;function hasValue(a){return a!=null}function isComboNoValue(a){return!a&&a!==0}function isTitleType$1(a){return["string","number"].includes(_typeof$h(a))}function getTitle(a){var s=void 0;return a&&(isTitleType$1(a.title)?s=a.title.toString():isTitleType$1(a.label)&&(s=a.label.toString())),s}function useLayoutEffect(a,s){isBrowserClient$2?reactExports.useLayoutEffect(a,s):reactExports.useEffect(a,s)}function itemKey$1(a){var s;return(s=a.key)!==null&&s!==void 0?s:a.value}var onPreventMouseDown=function a(s){s.preventDefault(),s.stopPropagation()},SelectSelector=function a(s){var c=s.id,u=s.prefixCls,d=s.values,p=s.open,v=s.searchValue,A=s.autoClearSearchValue,b=s.inputRef,g=s.placeholder,x=s.disabled,y=s.mode,f=s.showSearch,m=s.autoFocus,C=s.autoComplete,S=s.activeDescendantId,w=s.tabIndex,I=s.removeIcon,P=s.maxTagCount,$=s.maxTagTextLength,_=s.maxTagPlaceholder,E=_===void 0?function(Se){return"+ ".concat(Se.length," ...")}:_,R=s.tagRender,T=s.onToggleOpen,B=s.onRemove,M=s.onInputChange,D=s.onInputPaste,O=s.onInputKeyDown,H=s.onInputMouseDown,j=s.onInputCompositionStart,Q=s.onInputCompositionEnd,L=s.onInputBlur,F=reactExports.useRef(null),U=reactExports.useState(0),N=_slicedToArray$e(U,2),k=N[0],W=N[1],J=reactExports.useState(!1),q=_slicedToArray$e(J,2),Y=q[0],Z=q[1],ee="".concat(u,"-selection"),re=p||y==="multiple"&&A===!1||y==="tags"?v:"",ae=y==="tags"||y==="multiple"&&A===!1||f&&(p||Y);useLayoutEffect(function(){W(F.current.scrollWidth)},[re]);var V=function(be,me,fe,se,oe){return reactExports.createElement("span",{title:getTitle(be),className:classnames("".concat(ee,"-item"),_defineProperty$a({},"".concat(ee,"-item-disabled"),fe))},reactExports.createElement("span",{className:"".concat(ee,"-item-content")},me),se&&reactExports.createElement(TransBtn,{className:"".concat(ee,"-item-remove"),onMouseDown:onPreventMouseDown,onClick:oe,customizeIcon:I},"×"))},K=function(be,me,fe,se,oe,de){var le=function(Ce){onPreventMouseDown(Ce),T(!p)};return reactExports.createElement("span",{onMouseDown:le},R({label:me,value:be,disabled:fe,closable:se,onClose:oe,isMaxTag:!!de}))},te=function(be){var me=be.disabled,fe=be.label,se=be.value,oe=!x&&!me,de=fe;if(typeof $=="number"&&(typeof fe=="string"||typeof fe=="number")){var le=String(de);le.length>$&&(de="".concat(le.slice(0,$),"..."))}var xe=function($e){$e&&$e.stopPropagation(),B(be)};return typeof R=="function"?K(se,de,me,oe,xe):V(be,de,me,oe,xe)},ie=function(be){if(!d.length)return null;var me=typeof E=="function"?E(be):E;return typeof R=="function"?K(void 0,me,!1,!1,void 0,!0):V({title:me},me,!1)},ce=reactExports.createElement("div",{className:"".concat(ee,"-search"),style:{width:k},onFocus:function(){Z(!0)},onBlur:function(){Z(!1)}},reactExports.createElement(RefInput,{ref:b,open:p,prefixCls:u,id:c,inputElement:null,disabled:x,autoFocus:m,autoComplete:C,editable:ae,activeDescendantId:S,value:re,onKeyDown:O,onMouseDown:H,onChange:M,onPaste:D,onCompositionStart:j,onCompositionEnd:Q,onBlur:L,tabIndex:w,attrs:pickAttrs(s,!0)}),reactExports.createElement("span",{ref:F,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},re," ")),ge=reactExports.createElement(ForwardOverflow,{prefixCls:"".concat(ee,"-overflow"),data:d,renderItem:te,renderRest:ie,suffix:ce,itemKey:itemKey$1,maxCount:P});return reactExports.createElement("span",{className:"".concat(ee,"-wrap")},ge,!d.length&&!re&&reactExports.createElement("span",{className:"".concat(ee,"-placeholder")},g))},SingleSelector$1=function a(s){var c=s.inputElement,u=s.prefixCls,d=s.id,p=s.inputRef,v=s.disabled,A=s.autoFocus,b=s.autoComplete,g=s.activeDescendantId,x=s.mode,y=s.open,f=s.values,m=s.placeholder,C=s.tabIndex,S=s.showSearch,w=s.searchValue,I=s.activeValue,P=s.maxLength,$=s.onInputKeyDown,_=s.onInputMouseDown,E=s.onInputChange,R=s.onInputPaste,T=s.onInputCompositionStart,B=s.onInputCompositionEnd,M=s.onInputBlur,D=s.title,O=reactExports.useState(!1),H=_slicedToArray$e(O,2),j=H[0],Q=H[1],L=x==="combobox",F=L||S,U=f[0],N=w||"";L&&I&&!j&&(N=I),reactExports.useEffect(function(){L&&Q(!1)},[L,I]);var k=x!=="combobox"&&!y&&!S?!1:!!N,W=D===void 0?getTitle(U):D,J=reactExports.useMemo(function(){return U?null:reactExports.createElement("span",{className:"".concat(u,"-selection-placeholder"),style:k?{visibility:"hidden"}:void 0},m)},[U,k,m,u]);return reactExports.createElement("span",{className:"".concat(u,"-selection-wrap")},reactExports.createElement("span",{className:"".concat(u,"-selection-search")},reactExports.createElement(RefInput,{ref:p,prefixCls:u,id:d,open:y,inputElement:c,disabled:v,autoFocus:A,autoComplete:b,editable:F,activeDescendantId:g,value:N,onKeyDown:$,onMouseDown:_,onChange:function(Y){Q(!0),E(Y)},onPaste:R,onCompositionStart:T,onCompositionEnd:B,onBlur:M,tabIndex:C,attrs:pickAttrs(s,!0),maxLength:L?P:void 0})),!L&&U?reactExports.createElement("span",{className:"".concat(u,"-selection-item"),title:W,style:k?{visibility:"hidden"}:void 0},U.label):null,J)},Selector=function a(s,c){var u=reactExports.useRef(null),d=reactExports.useRef(!1),p=s.prefixCls,v=s.open,A=s.mode,b=s.showSearch,g=s.tokenWithEnter,x=s.disabled,y=s.prefix,f=s.autoClearSearchValue,m=s.onSearch,C=s.onSearchSubmit,S=s.onToggleOpen,w=s.onInputKeyDown,I=s.onInputBlur,P=s.domRef;reactExports.useImperativeHandle(c,function(){return{focus:function(W){u.current.focus(W)},blur:function(){u.current.blur()}}});var $=useLock(0),_=_slicedToArray$e($,2),E=_[0],R=_[1],T=function(W){var J=W.which,q=u.current instanceof HTMLTextAreaElement;!q&&v&&(J===KeyCode.UP||J===KeyCode.DOWN)&&W.preventDefault(),w&&w(W),J===KeyCode.ENTER&&A==="tags"&&!d.current&&!v&&(C==null||C(W.target.value)),!(q&&!v&&~[KeyCode.UP,KeyCode.DOWN,KeyCode.LEFT,KeyCode.RIGHT].indexOf(J))&&isValidateOpenKey(J)&&S(!0)},B=function(){R(!0)},M=reactExports.useRef(null),D=function(W){m(W,!0,d.current)!==!1&&S(!0)},O=function(){d.current=!0},H=function(W){d.current=!1,A!=="combobox"&&D(W.target.value)},j=function(W){var J=W.target.value;if(g&&M.current&&/[\r\n]/.test(M.current)){var q=M.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");J=J.replace(q,M.current)}M.current=null,D(J)},Q=function(W){var J=W.clipboardData,q=J==null?void 0:J.getData("text");M.current=q||""},L=function(W){var J=W.target;if(J!==u.current){var q=document.body.style.msTouchAction!==void 0;q?setTimeout(function(){u.current.focus()}):u.current.focus()}},F=function(W){var J=E();W.target!==u.current&&!J&&!(A==="combobox"&&x)&&W.preventDefault(),(A!=="combobox"&&(!b||!J)||!v)&&(v&&f!==!1&&m("",!0,!1),S())},U={inputRef:u,onInputKeyDown:T,onInputMouseDown:B,onInputChange:j,onInputPaste:Q,onInputCompositionStart:O,onInputCompositionEnd:H,onInputBlur:I},N=A==="multiple"||A==="tags"?reactExports.createElement(SelectSelector,_extends$3({},s,U)):reactExports.createElement(SingleSelector$1,_extends$3({},s,U));return reactExports.createElement("div",{ref:P,className:"".concat(p,"-selector"),onClick:L,onMouseDown:F},y&&reactExports.createElement("div",{className:"".concat(p,"-prefix")},y),N)},ForwardSelector=reactExports.forwardRef(Selector);function Arrow(a){var s=a.prefixCls,c=a.align,u=a.arrow,d=a.arrowPos,p=u||{},v=p.className,A=p.content,b=d.x,g=b===void 0?0:b,x=d.y,y=x===void 0?0:x,f=reactExports.useRef();if(!c||!c.points)return null;var m={position:"absolute"};if(c.autoArrow!==!1){var C=c.points[0],S=c.points[1],w=C[0],I=C[1],P=S[0],$=S[1];w===P||!["t","b"].includes(w)?m.top=y:w==="t"?m.top=0:m.bottom=0,I===$||!["l","r"].includes(I)?m.left=g:I==="l"?m.left=0:m.right=0}return reactExports.createElement("div",{ref:f,className:classnames("".concat(s,"-arrow"),v),style:m},A)}function Mask$1(a){var s=a.prefixCls,c=a.open,u=a.zIndex,d=a.mask,p=a.motion;return d?reactExports.createElement(CSSMotion,_extends$3({},p,{motionAppear:!0,visible:c,removeOnLeave:!0}),function(v){var A=v.className;return reactExports.createElement("div",{style:{zIndex:u},className:classnames("".concat(s,"-mask"),A)})}):null}var PopupContent=reactExports.memo(function(a){var s=a.children;return s},function(a,s){return s.cache}),Popup$3=reactExports.forwardRef(function(a,s){var c=a.popup,u=a.className,d=a.prefixCls,p=a.style,v=a.target,A=a.onVisibleChanged,b=a.open,g=a.keepDom,x=a.fresh,y=a.onClick,f=a.mask,m=a.arrow,C=a.arrowPos,S=a.align,w=a.motion,I=a.maskMotion,P=a.forceRender,$=a.getPopupContainer,_=a.autoDestroy,E=a.portal,R=a.zIndex,T=a.onMouseEnter,B=a.onMouseLeave,M=a.onPointerEnter,D=a.onPointerDownCapture,O=a.ready,H=a.offsetX,j=a.offsetY,Q=a.offsetR,L=a.offsetB,F=a.onAlign,U=a.onPrepare,N=a.stretch,k=a.targetWidth,W=a.targetHeight,J=typeof c=="function"?c():c,q=b||g,Y=($==null?void 0:$.length)>0,Z=reactExports.useState(!$||!Y),ee=_slicedToArray$e(Z,2),re=ee[0],ae=ee[1];if(useLayoutEffect$1(function(){!re&&Y&&v&&ae(!0)},[re,Y,v]),!re)return null;var V="auto",K={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(O||!b){var te,ie=S.points,ce=S.dynamicInset||((te=S._experimental)===null||te===void 0?void 0:te.dynamicInset),ge=ce&&ie[0][1]==="r",Se=ce&&ie[0][0]==="b";ge?(K.right=Q,K.left=V):(K.left=H,K.right=V),Se?(K.bottom=L,K.top=V):(K.top=j,K.bottom=V)}var be={};return N&&(N.includes("height")&&W?be.height=W:N.includes("minHeight")&&W&&(be.minHeight=W),N.includes("width")&&k?be.width=k:N.includes("minWidth")&&k&&(be.minWidth=k)),b||(be.pointerEvents="none"),reactExports.createElement(E,{open:P||q,getContainer:$&&function(){return $(v)},autoDestroy:_},reactExports.createElement(Mask$1,{prefixCls:d,open:b,zIndex:R,mask:f,motion:I}),reactExports.createElement(RefResizeObserver,{onResize:F,disabled:!b},function(me){return reactExports.createElement(CSSMotion,_extends$3({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:P,leavedClassName:"".concat(d,"-hidden")},w,{onAppearPrepare:U,onEnterPrepare:U,visible:b,onVisibleChanged:function(se){var oe;w==null||(oe=w.onVisibleChanged)===null||oe===void 0||oe.call(w,se),A(se)}}),function(fe,se){var oe=fe.className,de=fe.style,le=classnames(d,oe,u);return reactExports.createElement("div",{ref:composeRef(me,s,se),className:le,style:_objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},K),be),de),{},{boxSizing:"border-box",zIndex:R},p),onMouseEnter:T,onMouseLeave:B,onPointerEnter:M,onClick:y,onPointerDownCapture:D},m&&reactExports.createElement(Arrow,{prefixCls:d,arrow:m,arrowPos:C,align:S}),reactExports.createElement(PopupContent,{cache:!b&&!x},J))})}))}),TriggerWrapper=reactExports.forwardRef(function(a,s){var c=a.children,u=a.getTriggerDOMNode,d=supportRef(c),p=reactExports.useCallback(function(A){fillRef(s,u?u(A):A)},[u]),v=useComposeRef(p,getNodeRef(c));return d?reactExports.cloneElement(c,{ref:v}):c}),TriggerContext=reactExports.createContext(null);function toArray$5(a){return a?Array.isArray(a)?a:[a]:[]}function useAction(a,s,c,u){return reactExports.useMemo(function(){var d=toArray$5(c??s),p=toArray$5(u??s),v=new Set(d),A=new Set(p);return a&&(v.has("hover")&&(v.delete("hover"),v.add("click")),A.has("hover")&&(A.delete("hover"),A.add("click"))),[v,A]},[a,s,c,u])}function isPointsEq$1(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],c=arguments.length>2?arguments[2]:void 0;return c?a[0]===s[0]:a[0]===s[0]&&a[1]===s[1]}function getAlignPopupClassName(a,s,c,u){for(var d=c.points,p=Object.keys(a),v=0;v<p.length;v+=1){var A,b=p[v];if(isPointsEq$1((A=a[b])===null||A===void 0?void 0:A.points,d,u))return"".concat(s,"-placement-").concat(b)}return""}function getMotion$1(a,s,c,u){return s||(c?{motionName:"".concat(a,"-").concat(c)}:u?{motionName:u}:null)}function getWin(a){return a.ownerDocument.defaultView}function collectScroller(a){for(var s=[],c=a==null?void 0:a.parentElement,u=["hidden","scroll","clip","auto"];c;){var d=getWin(c).getComputedStyle(c),p=d.overflowX,v=d.overflowY,A=d.overflow;[p,v,A].some(function(b){return u.includes(b)})&&s.push(c),c=c.parentElement}return s}function toNum(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(a)?s:a}function getPxValue(a){return toNum(parseFloat(a),0)}function getVisibleArea(a,s){var c=_objectSpread2$1({},a);return(s||[]).forEach(function(u){if(!(u instanceof HTMLBodyElement||u instanceof HTMLHtmlElement)){var d=getWin(u).getComputedStyle(u),p=d.overflow,v=d.overflowClipMargin,A=d.borderTopWidth,b=d.borderBottomWidth,g=d.borderLeftWidth,x=d.borderRightWidth,y=u.getBoundingClientRect(),f=u.offsetHeight,m=u.clientHeight,C=u.offsetWidth,S=u.clientWidth,w=getPxValue(A),I=getPxValue(b),P=getPxValue(g),$=getPxValue(x),_=toNum(Math.round(y.width/C*1e3)/1e3),E=toNum(Math.round(y.height/f*1e3)/1e3),R=(C-S-P-$)*_,T=(f-m-w-I)*E,B=w*E,M=I*E,D=P*_,O=$*_,H=0,j=0;if(p==="clip"){var Q=getPxValue(v);H=Q*_,j=Q*E}var L=y.x+D-H,F=y.y+B-j,U=L+y.width+2*H-D-O-R,N=F+y.height+2*j-B-M-T;c.left=Math.max(c.left,L),c.top=Math.max(c.top,F),c.right=Math.min(c.right,U),c.bottom=Math.min(c.bottom,N)}}),c}function getUnitOffset(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c="".concat(s),u=c.match(/^(.*)\%$/);return u?a*(parseFloat(u[1])/100):parseFloat(c)}function getNumberOffset(a,s){var c=s||[],u=_slicedToArray$e(c,2),d=u[0],p=u[1];return[getUnitOffset(a.width,d),getUnitOffset(a.height,p)]}function splitPoints(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[a[0],a[1]]}function getAlignPoint(a,s){var c=s[0],u=s[1],d,p;return c==="t"?p=a.y:c==="b"?p=a.y+a.height:p=a.y+a.height/2,u==="l"?d=a.x:u==="r"?d=a.x+a.width:d=a.x+a.width/2,{x:d,y:p}}function reversePoints(a,s){var c={t:"b",b:"t",l:"r",r:"l"};return a.map(function(u,d){return d===s?c[u]||"c":u}).join("")}function useAlign(a,s,c,u,d,p,v){var A=reactExports.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:d[u]||{}}),b=_slicedToArray$e(A,2),g=b[0],x=b[1],y=reactExports.useRef(0),f=reactExports.useMemo(function(){return s?collectScroller(s):[]},[s]),m=reactExports.useRef({}),C=function(){m.current={}};a||C();var S=useEvent(function(){if(s&&c&&a){let mr=function(Wr,Gr){var Hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$e,nn=Z.x+Wr,fn=Z.y+Gr,Cn=nn+ge,Rn=fn+ce,Ln=Math.max(nn,Hr.left),ir=Math.max(fn,Hr.top),Ar=Math.min(Cn,Hr.right),Or=Math.min(Rn,Hr.bottom);return Math.max(0,(Ar-Ln)*(Or-ir))},Cr=function(){At=Z.y+Qe,Bt=At+ce,Ut=Z.x+ze,_t=Ut+ge};var P,$,_,E,R=s,T=R.ownerDocument,B=getWin(R),M=B.getComputedStyle(R),D=M.width,O=M.height,H=M.position,j=R.style.left,Q=R.style.top,L=R.style.right,F=R.style.bottom,U=R.style.overflow,N=_objectSpread2$1(_objectSpread2$1({},d[u]),p),k=T.createElement("div");(P=R.parentElement)===null||P===void 0||P.appendChild(k),k.style.left="".concat(R.offsetLeft,"px"),k.style.top="".concat(R.offsetTop,"px"),k.style.position=H,k.style.height="".concat(R.offsetHeight,"px"),k.style.width="".concat(R.offsetWidth,"px"),R.style.left="0",R.style.top="0",R.style.right="auto",R.style.bottom="auto",R.style.overflow="hidden";var W;if(Array.isArray(c))W={x:c[0],y:c[1],width:0,height:0};else{var J,q,Y=c.getBoundingClientRect();Y.x=(J=Y.x)!==null&&J!==void 0?J:Y.left,Y.y=(q=Y.y)!==null&&q!==void 0?q:Y.top,W={x:Y.x,y:Y.y,width:Y.width,height:Y.height}}var Z=R.getBoundingClientRect();Z.x=($=Z.x)!==null&&$!==void 0?$:Z.left,Z.y=(_=Z.y)!==null&&_!==void 0?_:Z.top;var ee=T.documentElement,re=ee.clientWidth,ae=ee.clientHeight,V=ee.scrollWidth,K=ee.scrollHeight,te=ee.scrollTop,ie=ee.scrollLeft,ce=Z.height,ge=Z.width,Se=W.height,be=W.width,me={left:0,top:0,right:re,bottom:ae},fe={left:-ie,top:-te,right:V-ie,bottom:K-te},se=N.htmlRegion,oe="visible",de="visibleFirst";se!=="scroll"&&se!==de&&(se=oe);var le=se===de,xe=getVisibleArea(fe,f),Ce=getVisibleArea(me,f),$e=se===oe?Ce:xe,we=le?Ce:$e;R.style.left="auto",R.style.top="auto",R.style.right="0",R.style.bottom="0";var Ee=R.getBoundingClientRect();R.style.left=j,R.style.top=Q,R.style.right=L,R.style.bottom=F,R.style.overflow=U,(E=R.parentElement)===null||E===void 0||E.removeChild(k);var Ae=toNum(Math.round(ge/parseFloat(D)*1e3)/1e3),pe=toNum(Math.round(ce/parseFloat(O)*1e3)/1e3);if(Ae===0||pe===0||isDOM(c)&&!isVisible(c))return;var he=N.offset,Ie=N.targetOffset,ye=getNumberOffset(Z,he),Pe=_slicedToArray$e(ye,2),Le=Pe[0],Ne=Pe[1],Me=getNumberOffset(W,Ie),Fe=_slicedToArray$e(Me,2),_e=Fe[0],je=Fe[1];W.x-=_e,W.y-=je;var Ye=N.points||[],Te=_slicedToArray$e(Ye,2),ke=Te[0],De=Te[1],Re=splitPoints(De),Ge=splitPoints(ke),Ve=getAlignPoint(W,Re),Xe=getAlignPoint(Z,Ge),We=_objectSpread2$1({},N),ze=Ve.x-Xe.x+Le,Qe=Ve.y-Xe.y+Ne,et=mr(ze,Qe),Ze=mr(ze,Qe,Ce),qe=getAlignPoint(W,["t","l"]),Je=getAlignPoint(Z,["t","l"]),ot=getAlignPoint(W,["b","r"]),nt=getAlignPoint(Z,["b","r"]),ct=N.overflow||{},bt=ct.adjustX,st=ct.adjustY,gt=ct.shiftX,ft=ct.shiftY,pt=function(Gr){return typeof Gr=="boolean"?Gr:Gr>=0},At,Bt,Ut,_t;Cr();var $t=pt(st),Ht=Ge[0]===Re[0];if($t&&Ge[0]==="t"&&(Bt>we.bottom||m.current.bt)){var St=Qe;Ht?St-=ce-Se:St=qe.y-nt.y-Ne;var lt=mr(ze,St),at=mr(ze,St,Ce);lt>et||lt===et&&(!le||at>=Ze)?(m.current.bt=!0,Qe=St,Ne=-Ne,We.points=[reversePoints(Ge,0),reversePoints(Re,0)]):m.current.bt=!1}if($t&&Ge[0]==="b"&&(At<we.top||m.current.tb)){var rt=Qe;Ht?rt+=ce-Se:rt=ot.y-Je.y-Ne;var ut=mr(ze,rt),xt=mr(ze,rt,Ce);ut>et||ut===et&&(!le||xt>=Ze)?(m.current.tb=!0,Qe=rt,Ne=-Ne,We.points=[reversePoints(Ge,0),reversePoints(Re,0)]):m.current.tb=!1}var Rt=pt(bt),It=Ge[1]===Re[1];if(Rt&&Ge[1]==="l"&&(_t>we.right||m.current.rl)){var ht=ze;It?ht-=ge-be:ht=qe.x-nt.x-Le;var wt=mr(ht,Qe),Nt=mr(ht,Qe,Ce);wt>et||wt===et&&(!le||Nt>=Ze)?(m.current.rl=!0,ze=ht,Le=-Le,We.points=[reversePoints(Ge,1),reversePoints(Re,1)]):m.current.rl=!1}if(Rt&&Ge[1]==="r"&&(Ut<we.left||m.current.lr)){var Wt=ze;It?Wt+=ge-be:Wt=ot.x-Je.x-Le;var jt=mr(Wt,Qe),Qt=mr(Wt,Qe,Ce);jt>et||jt===et&&(!le||Qt>=Ze)?(m.current.lr=!0,ze=Wt,Le=-Le,We.points=[reversePoints(Ge,1),reversePoints(Re,1)]):m.current.lr=!1}Cr();var er=gt===!0?0:gt;typeof er=="number"&&(Ut<Ce.left&&(ze-=Ut-Ce.left-Le,W.x+be<Ce.left+er&&(ze+=W.x-Ce.left+be-er)),_t>Ce.right&&(ze-=_t-Ce.right-Le,W.x>Ce.right-er&&(ze+=W.x-Ce.right+er)));var Vt=ft===!0?0:ft;typeof Vt=="number"&&(At<Ce.top&&(Qe-=At-Ce.top-Ne,W.y+Se<Ce.top+Vt&&(Qe+=W.y-Ce.top+Se-Vt)),Bt>Ce.bottom&&(Qe-=Bt-Ce.bottom-Ne,W.y>Ce.bottom-Vt&&(Qe+=W.y-Ce.bottom+Vt)));var rr=Z.x+ze,qt=rr+ge,tr=Z.y+Qe,ur=tr+ce,fr=W.x,Ft=fr+be,Mt=W.y,sr=Mt+Se,Gt=Math.max(rr,fr),Kt=Math.min(qt,Ft),gr=(Gt+Kt)/2,Er=gr-rr,Pr=Math.max(tr,Mt),Br=Math.min(ur,sr),Mr=(Pr+Br)/2,jr=Mr-tr;v==null||v(s,We);var Yt=Ee.right-Z.x-(ze+Z.width),zt=Ee.bottom-Z.y-(Qe+Z.height);Ae===1&&(ze=Math.round(ze),Yt=Math.round(Yt)),pe===1&&(Qe=Math.round(Qe),zt=Math.round(zt));var cr={ready:!0,offsetX:ze/Ae,offsetY:Qe/pe,offsetR:Yt/Ae,offsetB:zt/pe,arrowX:Er/Ae,arrowY:jr/pe,scaleX:Ae,scaleY:pe,align:We};x(cr)}}),w=function(){y.current+=1;var $=y.current;Promise.resolve().then(function(){y.current===$&&S()})},I=function(){x(function($){return _objectSpread2$1(_objectSpread2$1({},$),{},{ready:!1})})};return useLayoutEffect$1(I,[u]),useLayoutEffect$1(function(){a||I()},[a]),[g.ready,g.offsetX,g.offsetY,g.offsetR,g.offsetB,g.arrowX,g.arrowY,g.scaleX,g.scaleY,g.align,w]}function useWatch(a,s,c,u,d){useLayoutEffect$1(function(){if(a&&s&&c){let y=function(){u(),d()};var p=s,v=c,A=collectScroller(p),b=collectScroller(v),g=getWin(v),x=new Set([g].concat(_toConsumableArray$e(A),_toConsumableArray$e(b)));return x.forEach(function(f){f.addEventListener("scroll",y,{passive:!0})}),g.addEventListener("resize",y,{passive:!0}),u(),function(){x.forEach(function(f){f.removeEventListener("scroll",y),g.removeEventListener("resize",y)})}}},[a,s,c])}function useWinClick(a,s,c,u,d,p,v,A){var b=reactExports.useRef(a);b.current=a;var g=reactExports.useRef(!1);reactExports.useEffect(function(){if(s&&u&&(!d||p)){var y=function(){g.current=!1},f=function(w){var I;b.current&&!v(((I=w.composedPath)===null||I===void 0||(I=I.call(w))===null||I===void 0?void 0:I[0])||w.target)&&!g.current&&A(!1)},m=getWin(u);m.addEventListener("pointerdown",y,!0),m.addEventListener("mousedown",f,!0),m.addEventListener("contextmenu",f,!0);var C=getShadowRoot$2(c);return C&&(C.addEventListener("mousedown",f,!0),C.addEventListener("contextmenu",f,!0)),function(){m.removeEventListener("pointerdown",y,!0),m.removeEventListener("mousedown",f,!0),m.removeEventListener("contextmenu",f,!0),C&&(C.removeEventListener("mousedown",f,!0),C.removeEventListener("contextmenu",f,!0))}}},[s,c,u,d,p]);function x(){g.current=!0}return x}var _excluded$Q=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function generateTrigger(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Portal,s=reactExports.forwardRef(function(c,u){var d=c.prefixCls,p=d===void 0?"rc-trigger-popup":d,v=c.children,A=c.action,b=A===void 0?"hover":A,g=c.showAction,x=c.hideAction,y=c.popupVisible,f=c.defaultPopupVisible,m=c.onPopupVisibleChange,C=c.afterPopupVisibleChange,S=c.mouseEnterDelay,w=c.mouseLeaveDelay,I=w===void 0?.1:w,P=c.focusDelay,$=c.blurDelay,_=c.mask,E=c.maskClosable,R=E===void 0?!0:E,T=c.getPopupContainer,B=c.forceRender,M=c.autoDestroy,D=c.destroyPopupOnHide,O=c.popup,H=c.popupClassName,j=c.popupStyle,Q=c.popupPlacement,L=c.builtinPlacements,F=L===void 0?{}:L,U=c.popupAlign,N=c.zIndex,k=c.stretch,W=c.getPopupClassNameFromAlign,J=c.fresh,q=c.alignPoint,Y=c.onPopupClick,Z=c.onPopupAlign,ee=c.arrow,re=c.popupMotion,ae=c.maskMotion,V=c.popupTransitionName,K=c.popupAnimation,te=c.maskTransitionName,ie=c.maskAnimation,ce=c.className,ge=c.getTriggerDOMNode,Se=_objectWithoutProperties$2(c,_excluded$Q),be=M||D||!1,me=reactExports.useState(!1),fe=_slicedToArray$e(me,2),se=fe[0],oe=fe[1];useLayoutEffect$1(function(){oe(isMobile$1())},[]);var de=reactExports.useRef({}),le=reactExports.useContext(TriggerContext),xe=reactExports.useMemo(function(){return{registerSubPopup:function(Ar,Or){de.current[Ar]=Or,le==null||le.registerSubPopup(Ar,Or)}}},[le]),Ce=useId$2(),$e=reactExports.useState(null),we=_slicedToArray$e($e,2),Ee=we[0],Ae=we[1],pe=reactExports.useRef(null),he=useEvent(function(ir){pe.current=ir,isDOM(ir)&&Ee!==ir&&Ae(ir),le==null||le.registerSubPopup(Ce,ir)}),Ie=reactExports.useState(null),ye=_slicedToArray$e(Ie,2),Pe=ye[0],Le=ye[1],Ne=reactExports.useRef(null),Me=useEvent(function(ir){isDOM(ir)&&Pe!==ir&&(Le(ir),Ne.current=ir)}),Fe=reactExports.Children.only(v),_e=(Fe==null?void 0:Fe.props)||{},je={},Ye=useEvent(function(ir){var Ar,Or,zr=Pe;return(zr==null?void 0:zr.contains(ir))||((Ar=getShadowRoot$2(zr))===null||Ar===void 0?void 0:Ar.host)===ir||ir===zr||(Ee==null?void 0:Ee.contains(ir))||((Or=getShadowRoot$2(Ee))===null||Or===void 0?void 0:Or.host)===ir||ir===Ee||Object.values(de.current).some(function(Dr){return(Dr==null?void 0:Dr.contains(ir))||ir===Dr})}),Te=getMotion$1(p,re,K,V),ke=getMotion$1(p,ae,ie,te),De=reactExports.useState(f||!1),Re=_slicedToArray$e(De,2),Ge=Re[0],Ve=Re[1],Xe=y??Ge,We=useEvent(function(ir){y===void 0&&Ve(ir)});useLayoutEffect$1(function(){Ve(y||!1)},[y]);var ze=reactExports.useRef(Xe);ze.current=Xe;var Qe=reactExports.useRef([]);Qe.current=[];var et=useEvent(function(ir){var Ar;We(ir),((Ar=Qe.current[Qe.current.length-1])!==null&&Ar!==void 0?Ar:Xe)!==ir&&(Qe.current.push(ir),m==null||m(ir))}),Ze=reactExports.useRef(),qe=function(){clearTimeout(Ze.current)},Je=function(Ar){var Or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;qe(),Or===0?et(Ar):Ze.current=setTimeout(function(){et(Ar)},Or*1e3)};reactExports.useEffect(function(){return qe},[]);var ot=reactExports.useState(!1),nt=_slicedToArray$e(ot,2),ct=nt[0],bt=nt[1];useLayoutEffect$1(function(ir){(!ir||Xe)&&bt(!0)},[Xe]);var st=reactExports.useState(null),gt=_slicedToArray$e(st,2),ft=gt[0],pt=gt[1],At=reactExports.useState(null),Bt=_slicedToArray$e(At,2),Ut=Bt[0],_t=Bt[1],$t=function(Ar){_t([Ar.clientX,Ar.clientY])},Ht=useAlign(Xe,Ee,q&&Ut!==null?Ut:Pe,Q,F,U,Z),St=_slicedToArray$e(Ht,11),lt=St[0],at=St[1],rt=St[2],ut=St[3],xt=St[4],Rt=St[5],It=St[6],ht=St[7],wt=St[8],Nt=St[9],Wt=St[10],jt=useAction(se,b,g,x),Qt=_slicedToArray$e(jt,2),er=Qt[0],Vt=Qt[1],rr=er.has("click"),qt=Vt.has("click")||Vt.has("contextMenu"),tr=useEvent(function(){ct||Wt()}),ur=function(){ze.current&&q&&qt&&Je(!1)};useWatch(Xe,Pe,Ee,tr,ur),useLayoutEffect$1(function(){tr()},[Ut,Q]),useLayoutEffect$1(function(){Xe&&!(F!=null&&F[Q])&&tr()},[JSON.stringify(U)]);var fr=reactExports.useMemo(function(){var ir=getAlignPopupClassName(F,p,Nt,q);return classnames(ir,W==null?void 0:W(Nt))},[Nt,W,F,p,q]);reactExports.useImperativeHandle(u,function(){return{nativeElement:Ne.current,popupElement:pe.current,forceAlign:tr}});var Ft=reactExports.useState(0),Mt=_slicedToArray$e(Ft,2),sr=Mt[0],Gt=Mt[1],Kt=reactExports.useState(0),gr=_slicedToArray$e(Kt,2),Er=gr[0],Pr=gr[1],Br=function(){if(k&&Pe){var Ar=Pe.getBoundingClientRect();Gt(Ar.width),Pr(Ar.height)}},Mr=function(){Br(),tr()},jr=function(Ar){bt(!1),Wt(),C==null||C(Ar)},Yt=function(){return new Promise(function(Ar){Br(),pt(function(){return Ar})})};useLayoutEffect$1(function(){ft&&(Wt(),ft(),pt(null))},[ft]);function zt(ir,Ar,Or,zr){je[ir]=function(Dr){var yt;zr==null||zr(Dr),Je(Ar,Or);for(var ue=arguments.length,Oe=new Array(ue>1?ue-1:0),mt=1;mt<ue;mt++)Oe[mt-1]=arguments[mt];(yt=_e[ir])===null||yt===void 0||yt.call.apply(yt,[_e,Dr].concat(Oe))}}(rr||qt)&&(je.onClick=function(ir){var Ar;ze.current&&qt?Je(!1):!ze.current&&rr&&($t(ir),Je(!0));for(var Or=arguments.length,zr=new Array(Or>1?Or-1:0),Dr=1;Dr<Or;Dr++)zr[Dr-1]=arguments[Dr];(Ar=_e.onClick)===null||Ar===void 0||Ar.call.apply(Ar,[_e,ir].concat(zr))});var cr=useWinClick(Xe,qt,Pe,Ee,_,R,Ye,Je),mr=er.has("hover"),Cr=Vt.has("hover"),Wr,Gr;mr&&(zt("onMouseEnter",!0,S,function(ir){$t(ir)}),zt("onPointerEnter",!0,S,function(ir){$t(ir)}),Wr=function(Ar){(Xe||ct)&&Ee!==null&&Ee!==void 0&&Ee.contains(Ar.target)&&Je(!0,S)},q&&(je.onMouseMove=function(ir){var Ar;(Ar=_e.onMouseMove)===null||Ar===void 0||Ar.call(_e,ir)})),Cr&&(zt("onMouseLeave",!1,I),zt("onPointerLeave",!1,I),Gr=function(){Je(!1,I)}),er.has("focus")&&zt("onFocus",!0,P),Vt.has("focus")&&zt("onBlur",!1,$),er.has("contextMenu")&&(je.onContextMenu=function(ir){var Ar;ze.current&&Vt.has("contextMenu")?Je(!1):($t(ir),Je(!0)),ir.preventDefault();for(var Or=arguments.length,zr=new Array(Or>1?Or-1:0),Dr=1;Dr<Or;Dr++)zr[Dr-1]=arguments[Dr];(Ar=_e.onContextMenu)===null||Ar===void 0||Ar.call.apply(Ar,[_e,ir].concat(zr))}),ce&&(je.className=classnames(_e.className,ce));var Hr=_objectSpread2$1(_objectSpread2$1({},_e),je),nn={},fn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];fn.forEach(function(ir){Se[ir]&&(nn[ir]=function(){for(var Ar,Or=arguments.length,zr=new Array(Or),Dr=0;Dr<Or;Dr++)zr[Dr]=arguments[Dr];(Ar=Hr[ir])===null||Ar===void 0||Ar.call.apply(Ar,[Hr].concat(zr)),Se[ir].apply(Se,zr)})});var Cn=reactExports.cloneElement(Fe,_objectSpread2$1(_objectSpread2$1({},Hr),nn)),Rn={x:Rt,y:It},Ln=ee?_objectSpread2$1({},ee!==!0?ee:{}):null;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(RefResizeObserver,{disabled:!Xe,ref:Me,onResize:Mr},reactExports.createElement(TriggerWrapper,{getTriggerDOMNode:ge},Cn)),reactExports.createElement(TriggerContext.Provider,{value:xe},reactExports.createElement(Popup$3,{portal:a,ref:he,prefixCls:p,popup:O,className:classnames(H,fr),style:j,target:Pe,onMouseEnter:Wr,onMouseLeave:Gr,onPointerEnter:Wr,zIndex:N,open:Xe,keepDom:ct,fresh:J,onClick:Y,onPointerDownCapture:cr,mask:_,motion:Te,maskMotion:ke,onVisibleChanged:jr,onPrepare:Yt,forceRender:B,autoDestroy:be,getPopupContainer:T,align:Nt,arrow:Ln,arrowPos:Rn,ready:lt,offsetX:at,offsetY:rt,offsetR:ut,offsetB:xt,onAlign:tr,stretch:k,targetWidth:sr/ht,targetHeight:Er/wt})))});return s}const Trigger$1=generateTrigger(Portal);var _excluded$P=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],getBuiltInPlacements$1=function a(s){var c=s===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:c,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:c,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:c,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:c,adjustY:1},htmlRegion:"scroll"}}},SelectTrigger=function a(s,c){var u=s.prefixCls;s.disabled;var d=s.visible,p=s.children,v=s.popupElement,A=s.animation,b=s.transitionName,g=s.dropdownStyle,x=s.dropdownClassName,y=s.direction,f=y===void 0?"ltr":y,m=s.placement,C=s.builtinPlacements,S=s.dropdownMatchSelectWidth,w=s.dropdownRender,I=s.dropdownAlign,P=s.getPopupContainer,$=s.empty,_=s.getTriggerDOMNode,E=s.onPopupVisibleChange,R=s.onPopupMouseEnter,T=_objectWithoutProperties$2(s,_excluded$P),B="".concat(u,"-dropdown"),M=v;w&&(M=w(v));var D=reactExports.useMemo(function(){return C||getBuiltInPlacements$1(S)},[C,S]),O=A?"".concat(B,"-").concat(A):b,H=typeof S=="number",j=reactExports.useMemo(function(){return H?null:S===!1?"minWidth":"width"},[S,H]),Q=g;H&&(Q=_objectSpread2$1(_objectSpread2$1({},Q),{},{width:S}));var L=reactExports.useRef(null);return reactExports.useImperativeHandle(c,function(){return{getPopupElement:function(){var U;return(U=L.current)===null||U===void 0?void 0:U.popupElement}}}),reactExports.createElement(Trigger$1,_extends$3({},T,{showAction:E?["click"]:[],hideAction:E?["click"]:[],popupPlacement:m||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:D,prefixCls:B,popupTransitionName:O,popup:reactExports.createElement("div",{onMouseEnter:R},M),ref:L,stretch:j,popupAlign:I,popupVisible:d,getPopupContainer:P,popupClassName:classnames(x,_defineProperty$a({},"".concat(B,"-empty"),$)),popupStyle:Q,getTriggerDOMNode:_,onPopupVisibleChange:E}),p)},RefSelectTrigger=reactExports.forwardRef(SelectTrigger);function getKey$2(a,s){var c=a.key,u;return"value"in a&&(u=a.value),c??(u!==void 0?u:"rc-index-key-".concat(s))}function isValidCount(a){return typeof a<"u"&&!Number.isNaN(a)}function fillFieldNames$2(a,s){var c=a||{},u=c.label,d=c.value,p=c.options,v=c.groupLabel,A=u||(s?"children":"label");return{label:A,value:d||"value",options:p||"options",groupLabel:v||A}}function flattenOptions(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=s.fieldNames,u=s.childrenAsData,d=[],p=fillFieldNames$2(c,!1),v=p.label,A=p.value,b=p.options,g=p.groupLabel;function x(y,f){Array.isArray(y)&&y.forEach(function(m){if(f||!(b in m)){var C=m[A];d.push({key:getKey$2(m,d.length),groupOption:f,data:m,label:m[v],value:C})}else{var S=m[g];S===void 0&&u&&(S=m.label),d.push({key:getKey$2(m,d.length),group:!0,data:m,label:S}),x(m[b],!0)}})}return x(a,!1),d}function injectPropsWithOption(a){var s=_objectSpread2$1({},a);return"props"in s||Object.defineProperty(s,"props",{get:function(){return warningOnce(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),s}}),s}var getSeparatedContent=function a(s,c,u){if(!c||!c.length)return null;var d=!1,p=function A(b,g){var x=_toArray$1(g),y=x[0],f=x.slice(1);if(!y)return[b];var m=b.split(y);return d=d||m.length>1,m.reduce(function(C,S){return[].concat(_toConsumableArray$e(C),_toConsumableArray$e(A(S,f)))},[]).filter(Boolean)},v=p(s,c);return d?typeof u<"u"?v.slice(0,u):v:null},SelectContext=reactExports.createContext(null);function Polite(a){var s=a.visible,c=a.values;if(!s)return null;var u=50;return reactExports.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(c.slice(0,u).map(function(d){var p=d.label,v=d.value;return["number","string"].includes(_typeof$h(p))?p:v}).join(", ")),c.length>u?", ...":null)}var _excluded$O=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],DEFAULT_OMIT_PROPS=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],isMultiple=function a(s){return s==="tags"||s==="multiple"},BaseSelect=reactExports.forwardRef(function(a,s){var c,u=a.id,d=a.prefixCls,p=a.className,v=a.showSearch,A=a.tagRender,b=a.direction,g=a.omitDomProps,x=a.displayValues,y=a.onDisplayValuesChange,f=a.emptyOptions,m=a.notFoundContent,C=m===void 0?"Not Found":m,S=a.onClear,w=a.mode,I=a.disabled,P=a.loading,$=a.getInputElement,_=a.getRawInputElement,E=a.open,R=a.defaultOpen,T=a.onDropdownVisibleChange,B=a.activeValue,M=a.onActiveValueChange,D=a.activeDescendantId,O=a.searchValue,H=a.autoClearSearchValue,j=a.onSearch,Q=a.onSearchSplit,L=a.tokenSeparators,F=a.allowClear,U=a.prefix,N=a.suffixIcon,k=a.clearIcon,W=a.OptionList,J=a.animation,q=a.transitionName,Y=a.dropdownStyle,Z=a.dropdownClassName,ee=a.dropdownMatchSelectWidth,re=a.dropdownRender,ae=a.dropdownAlign,V=a.placement,K=a.builtinPlacements,te=a.getPopupContainer,ie=a.showAction,ce=ie===void 0?[]:ie,ge=a.onFocus,Se=a.onBlur,be=a.onKeyUp,me=a.onKeyDown,fe=a.onMouseDown,se=_objectWithoutProperties$2(a,_excluded$O),oe=isMultiple(w),de=(v!==void 0?v:oe)||w==="combobox",le=_objectSpread2$1({},se);DEFAULT_OMIT_PROPS.forEach(function(Ft){delete le[Ft]}),g==null||g.forEach(function(Ft){delete le[Ft]});var xe=reactExports.useState(!1),Ce=_slicedToArray$e(xe,2),$e=Ce[0],we=Ce[1];reactExports.useEffect(function(){we(isMobile$1())},[]);var Ee=reactExports.useRef(null),Ae=reactExports.useRef(null),pe=reactExports.useRef(null),he=reactExports.useRef(null),Ie=reactExports.useRef(null),ye=reactExports.useRef(!1),Pe=useDelayReset(),Le=_slicedToArray$e(Pe,3),Ne=Le[0],Me=Le[1],Fe=Le[2];reactExports.useImperativeHandle(s,function(){var Ft,Mt;return{focus:(Ft=he.current)===null||Ft===void 0?void 0:Ft.focus,blur:(Mt=he.current)===null||Mt===void 0?void 0:Mt.blur,scrollTo:function(Gt){var Kt;return(Kt=Ie.current)===null||Kt===void 0?void 0:Kt.scrollTo(Gt)},nativeElement:Ee.current||Ae.current}});var _e=reactExports.useMemo(function(){var Ft;if(w!=="combobox")return O;var Mt=(Ft=x[0])===null||Ft===void 0?void 0:Ft.value;return typeof Mt=="string"||typeof Mt=="number"?String(Mt):""},[O,w,x]),je=w==="combobox"&&typeof $=="function"&&$()||null,Ye=typeof _=="function"&&_(),Te=useComposeRef(Ae,Ye==null||(c=Ye.props)===null||c===void 0?void 0:c.ref),ke=reactExports.useState(!1),De=_slicedToArray$e(ke,2),Re=De[0],Ge=De[1];useLayoutEffect$1(function(){Ge(!0)},[]);var Ve=useMergedState(!1,{defaultValue:R,value:E}),Xe=_slicedToArray$e(Ve,2),We=Xe[0],ze=Xe[1],Qe=Re?We:!1,et=!C&&f;(I||et&&Qe&&w==="combobox")&&(Qe=!1);var Ze=et?!1:Qe,qe=reactExports.useCallback(function(Ft){var Mt=Ft!==void 0?Ft:!Qe;I||(ze(Mt),Qe!==Mt&&(T==null||T(Mt)))},[I,Qe,ze,T]),Je=reactExports.useMemo(function(){return(L||[]).some(function(Ft){return[`
|
372
372
|
`,`\r
|
373
|
-
`].includes(Ft)})},[L]),ot=reactExports.useContext(SelectContext)||{},nt=ot.maxCount,ct=ot.rawValues,bt=function(Mt,sr,Gt){if(!(oe&&isValidCount(nt)&&(ct==null?void 0:ct.size)>=nt)){var Kt=!0,gr=Mt;M==null||M(null);var Er=getSeparatedContent(Mt,L,isValidCount(nt)?nt-ct.size:void 0),Pr=Gt?null:Er;return w!=="combobox"&&Pr&&(gr="",Q==null||Q(Pr),qe(!1),Kt=!1),j&&_e!==gr&&j(gr,{source:sr?"typing":"effect"}),Kt}},st=function(Mt){!Mt||!Mt.trim()||j(Mt,{source:"submit"})};reactExports.useEffect(function(){!Qe&&!oe&&w!=="combobox"&&bt("",!1,!1)},[Qe]),reactExports.useEffect(function(){We&&I&&ze(!1),I&&!ye.current&&Me(!1)},[I]);var gt=useLock(),ft=_slicedToArray$e(gt,2),pt=ft[0],At=ft[1],Bt=reactExports.useRef(!1),Ut=function(Mt){var sr=pt(),Gt=Mt.key,Kt=Gt==="Enter";if(Kt&&(w!=="combobox"&&Mt.preventDefault(),Qe||qe(!0)),At(!!_e),Gt==="Backspace"&&!sr&&oe&&!_e&&x.length){for(var gr=_toConsumableArray$e(x),Er=null,Pr=gr.length-1;Pr>=0;Pr-=1){var Br=gr[Pr];if(!Br.disabled){gr.splice(Pr,1),Er=Br;break}}Er&&y(gr,{type:"remove",values:[Er]})}for(var Mr=arguments.length,jr=new Array(Mr>1?Mr-1:0),Yt=1;Yt<Mr;Yt++)jr[Yt-1]=arguments[Yt];if(Qe&&(!Kt||!Bt.current)){var zt;Kt&&(Bt.current=!0),(zt=Ie.current)===null||zt===void 0||zt.onKeyDown.apply(zt,[Mt].concat(jr))}me==null||me.apply(void 0,[Mt].concat(jr))},_t=function(Mt){for(var sr=arguments.length,Gt=new Array(sr>1?sr-1:0),Kt=1;Kt<sr;Kt++)Gt[Kt-1]=arguments[Kt];if(Qe){var gr;(gr=Ie.current)===null||gr===void 0||gr.onKeyUp.apply(gr,[Mt].concat(Gt))}Mt.key==="Enter"&&(Bt.current=!1),be==null||be.apply(void 0,[Mt].concat(Gt))},$t=function(Mt){var sr=x.filter(function(Gt){return Gt!==Mt});y(sr,{type:"remove",values:[Mt]})},Ht=function(){Bt.current=!1},St=reactExports.useRef(!1),lt=function(){Me(!0),I||(ge&&!St.current&&ge.apply(void 0,arguments),ce.includes("focus")&&qe(!0)),St.current=!0},at=function(){ye.current=!0,Me(!1,function(){St.current=!1,ye.current=!1,qe(!1)}),!I&&(_e&&(w==="tags"?j(_e,{source:"submit"}):w==="multiple"&&j("",{source:"blur"})),Se&&Se.apply(void 0,arguments))},rt=[];reactExports.useEffect(function(){return function(){rt.forEach(function(Ft){return clearTimeout(Ft)}),rt.splice(0,rt.length)}},[]);var ut=function(Mt){var sr,Gt=Mt.target,Kt=(sr=pe.current)===null||sr===void 0?void 0:sr.getPopupElement();if(Kt&&Kt.contains(Gt)){var gr=setTimeout(function(){var Mr=rt.indexOf(gr);if(Mr!==-1&&rt.splice(Mr,1),Fe(),!$e&&!Kt.contains(document.activeElement)){var jr;(jr=he.current)===null||jr===void 0||jr.focus()}});rt.push(gr)}for(var Er=arguments.length,Pr=new Array(Er>1?Er-1:0),Br=1;Br<Er;Br++)Pr[Br-1]=arguments[Br];fe==null||fe.apply(void 0,[Mt].concat(Pr))},xt=reactExports.useState({}),Rt=_slicedToArray$e(xt,2),It=Rt[1];function ht(){It({})}var wt;Ye&&(wt=function(Mt){qe(Mt)}),useSelectTriggerControl(function(){var Ft;return[Ee.current,(Ft=pe.current)===null||Ft===void 0?void 0:Ft.getPopupElement()]},Ze,qe,!!Ye);var Nt=reactExports.useMemo(function(){return _objectSpread2$1(_objectSpread2$1({},a),{},{notFoundContent:C,open:Qe,triggerOpen:Ze,id:u,showSearch:de,multiple:oe,toggleOpen:qe})},[a,C,Ze,Qe,u,de,oe,qe]),Wt=!!N||P,jt;Wt&&(jt=reactExports.createElement(TransBtn,{className:classnames("".concat(d,"-arrow"),_defineProperty$a({},"".concat(d,"-arrow-loading"),P)),customizeIcon:N,customizeIconProps:{loading:P,searchValue:_e,open:Qe,focused:Ne,showSearch:de}}));var Qt=function(){var Mt;S==null||S(),(Mt=he.current)===null||Mt===void 0||Mt.focus(),y([],{type:"clear",values:x}),bt("",!1,!1)},er=useAllowClear(d,Qt,x,F,k,I,_e,w),Vt=er.allowClear,rr=er.clearIcon,qt=reactExports.createElement(W,{ref:Ie}),tr=classnames(d,p,_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a({},"".concat(d,"-focused"),Ne),"".concat(d,"-multiple"),oe),"".concat(d,"-single"),!oe),"".concat(d,"-allow-clear"),F),"".concat(d,"-show-arrow"),Wt),"".concat(d,"-disabled"),I),"".concat(d,"-loading"),P),"".concat(d,"-open"),Qe),"".concat(d,"-customize-input"),je),"".concat(d,"-show-search"),de)),ur=reactExports.createElement(RefSelectTrigger,{ref:pe,disabled:I,prefixCls:d,visible:Ze,popupElement:qt,animation:J,transitionName:q,dropdownStyle:Y,dropdownClassName:Z,direction:b,dropdownMatchSelectWidth:ee,dropdownRender:re,dropdownAlign:ae,placement:V,builtinPlacements:K,getPopupContainer:te,empty:f,getTriggerDOMNode:function(Mt){return Ae.current||Mt},onPopupVisibleChange:wt,onPopupMouseEnter:ht},Ye?reactExports.cloneElement(Ye,{ref:Te}):reactExports.createElement(ForwardSelector,_extends$3({},a,{domRef:Ae,prefixCls:d,inputElement:je,ref:he,id:u,prefix:U,showSearch:de,autoClearSearchValue:H,mode:w,activeDescendantId:D,tagRender:A,values:x,open:Qe,onToggleOpen:qe,activeValue:B,searchValue:_e,onSearch:bt,onSearchSubmit:st,onRemove:$t,tokenWithEnter:Je,onInputBlur:Ht}))),fr;return Ye?fr=ur:fr=reactExports.createElement("div",_extends$3({className:tr},le,{ref:Ee,onMouseDown:ut,onKeyDown:Ut,onKeyUp:_t,onFocus:lt,onBlur:at}),reactExports.createElement(Polite,{visible:Ne&&!Qe,values:x}),ur,jt,Vt&&rr),reactExports.createElement(BaseSelectContext.Provider,{value:Nt},fr)}),OptGroup=function a(){return null};OptGroup.isSelectOptGroup=!0;var Option=function a(){return null};Option.isSelectOption=!0;var Filler=reactExports.forwardRef(function(a,s){var c=a.height,u=a.offsetY,d=a.offsetX,p=a.children,v=a.prefixCls,A=a.onInnerResize,b=a.innerProps,g=a.rtl,x=a.extra,y={},f={display:"flex",flexDirection:"column"};return u!==void 0&&(y={height:c,position:"relative",overflow:"hidden"},f=_objectSpread2$1(_objectSpread2$1({},f),{},_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a({transform:"translateY(".concat(u,"px)")},g?"marginRight":"marginLeft",-d),"position","absolute"),"left",0),"right",0),"top",0))),reactExports.createElement("div",{style:y},reactExports.createElement(RefResizeObserver,{onResize:function(C){var S=C.offsetHeight;S&&A&&A()}},reactExports.createElement("div",_extends$3({style:f,className:classnames(_defineProperty$a({},"".concat(v,"-holder-inner"),v)),ref:s},b),p,x)))});Filler.displayName="Filler";function Item$2(a){var s=a.children,c=a.setRef,u=reactExports.useCallback(function(d){c(d)},[]);return reactExports.cloneElement(s,{ref:u})}function useChildren$1(a,s,c,u,d,p,v,A){var b=A.getKey;return a.slice(s,c+1).map(function(g,x){var y=s+x,f=v(g,y,{style:{width:u},offsetX:d}),m=b(g);return reactExports.createElement(Item$2,{key:m,setRef:function(S){return p(g,S)}},f)})}function findListDiffIndex(a,s,c){var u=a.length,d=s.length,p,v;if(u===0&&d===0)return null;u<d?(p=a,v=s):(p=s,v=a);var A={__EMPTY_ITEM__:!0};function b(C){return C!==void 0?c(C):A}for(var g=null,x=Math.abs(u-d)!==1,y=0;y<v.length;y+=1){var f=b(p[y]),m=b(v[y]);if(f!==m){g=y,x=x||f!==b(v[y+1]);break}}return g===null?null:{index:g,multiple:x}}function useDiffItem(a,s,c){var u=reactExports.useState(a),d=_slicedToArray$e(u,2),p=d[0],v=d[1],A=reactExports.useState(null),b=_slicedToArray$e(A,2),g=b[0],x=b[1];return reactExports.useEffect(function(){var y=findListDiffIndex(p||[],a||[],s);(y==null?void 0:y.index)!==void 0&&x(a[y.index]),v(a)},[a]),[g]}var isFF=(typeof navigator>"u"?"undefined":_typeof$h(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const useOriginScroll=function(a,s,c,u){var d=reactExports.useRef(!1),p=reactExports.useRef(null);function v(){clearTimeout(p.current),d.current=!0,p.current=setTimeout(function(){d.current=!1},50)}var A=reactExports.useRef({top:a,bottom:s,left:c,right:u});return A.current.top=a,A.current.bottom=s,A.current.left=c,A.current.right=u,function(b,g){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,y=b?g<0&&A.current.left||g>0&&A.current.right:g<0&&A.current.top||g>0&&A.current.bottom;return x&&y?(clearTimeout(p.current),d.current=!1):(!y||d.current)&&v(),!d.current&&y}};function useFrameWheel(a,s,c,u,d,p,v){var A=reactExports.useRef(0),b=reactExports.useRef(null),g=reactExports.useRef(null),x=reactExports.useRef(!1),y=useOriginScroll(s,c,u,d);function f(P,$){if(wrapperRaf.cancel(b.current),!y(!1,$)){var _=P;if(!_._virtualHandled)_._virtualHandled=!0;else return;A.current+=$,g.current=$,isFF||_.preventDefault(),b.current=wrapperRaf(function(){var E=x.current?10:1;v(A.current*E,!1),A.current=0})}}function m(P,$){v($,!0),isFF||P.preventDefault()}var C=reactExports.useRef(null),S=reactExports.useRef(null);function w(P){if(a){wrapperRaf.cancel(S.current),S.current=wrapperRaf(function(){C.current=null},2);var $=P.deltaX,_=P.deltaY,E=P.shiftKey,R=$,T=_;(C.current==="sx"||!C.current&&E&&_&&!$)&&(R=_,T=0,C.current="sx");var B=Math.abs(R),M=Math.abs(T);C.current===null&&(C.current=p&&B>M?"x":"y"),C.current==="y"?f(P,T):m(P,R)}}function I(P){a&&(x.current=P.detail===g.current)}return[w,I]}function useGetSize(a,s,c,u){var d=reactExports.useMemo(function(){return[new Map,[]]},[a,c.id,u]),p=_slicedToArray$e(d,2),v=p[0],A=p[1],b=function(x){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,f=v.get(x),m=v.get(y);if(f===void 0||m===void 0)for(var C=a.length,S=A.length;S<C;S+=1){var w,I=a[S],P=s(I);v.set(P,S);var $=(w=c.get(P))!==null&&w!==void 0?w:u;if(A[S]=(A[S-1]||0)+$,P===x&&(f=S),P===y&&(m=S),f!==void 0&&m!==void 0)break}return{top:A[f-1]||0,bottom:A[m]}};return b}var CacheMap=function(){function a(){_classCallCheck$1(this,a),_defineProperty$a(this,"maps",void 0),_defineProperty$a(this,"id",0),_defineProperty$a(this,"diffKeys",new Set),this.maps=Object.create(null)}return _createClass$1(a,[{key:"set",value:function(c,u){this.maps[c]=u,this.id+=1,this.diffKeys.add(c)}},{key:"get",value:function(c){return this.maps[c]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),a}();function parseNumber(a){var s=parseFloat(a);return isNaN(s)?0:s}function useHeights(a,s,c){var u=reactExports.useState(0),d=_slicedToArray$e(u,2),p=d[0],v=d[1],A=reactExports.useRef(new Map),b=reactExports.useRef(new CacheMap),g=reactExports.useRef(0);function x(){g.current+=1}function y(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;x();var C=function(){var I=!1;A.current.forEach(function(P,$){if(P&&P.offsetParent){var _=findDOMNode(P),E=_.offsetHeight,R=getComputedStyle(_),T=R.marginTop,B=R.marginBottom,M=parseNumber(T),D=parseNumber(B),O=E+M+D;b.current.get($)!==O&&(b.current.set($,O),I=!0)}}),I&&v(function(P){return P+1})};if(m)C();else{g.current+=1;var S=g.current;Promise.resolve().then(function(){S===g.current&&C()})}}function f(m,C){var S=a(m);A.current.get(S),C?(A.current.set(S,C),y()):A.current.delete(S)}return reactExports.useEffect(function(){return x},[]),[f,y,b.current,p]}var SMOOTH_PTG=14/15;function useMobileTouchMove(a,s,c){var u=reactExports.useRef(!1),d=reactExports.useRef(0),p=reactExports.useRef(0),v=reactExports.useRef(null),A=reactExports.useRef(null),b,g=function(m){if(u.current){var C=Math.ceil(m.touches[0].pageX),S=Math.ceil(m.touches[0].pageY),w=d.current-C,I=p.current-S,P=Math.abs(w)>Math.abs(I);P?d.current=C:p.current=S;var $=c(P,P?w:I,!1,m);$&&m.preventDefault(),clearInterval(A.current),$&&(A.current=setInterval(function(){P?w*=SMOOTH_PTG:I*=SMOOTH_PTG;var _=Math.floor(P?w:I);(!c(P,_,!0)||Math.abs(_)<=.1)&&clearInterval(A.current)},16))}},x=function(){u.current=!1,b()},y=function(m){b(),m.touches.length===1&&!u.current&&(u.current=!0,d.current=Math.ceil(m.touches[0].pageX),p.current=Math.ceil(m.touches[0].pageY),v.current=m.target,v.current.addEventListener("touchmove",g,{passive:!1}),v.current.addEventListener("touchend",x,{passive:!0}))};b=function(){v.current&&(v.current.removeEventListener("touchmove",g),v.current.removeEventListener("touchend",x))},useLayoutEffect$1(function(){return a&&s.current.addEventListener("touchstart",y,{passive:!0}),function(){var f;(f=s.current)===null||f===void 0||f.removeEventListener("touchstart",y),b(),clearInterval(A.current)}},[a])}function smoothScrollOffset(a){return Math.floor(Math.pow(a,.5))}function getPageXY(a,s){var c="touches"in a?a.touches[0]:a;return c[s?"pageX":"pageY"]-window[s?"scrollX":"scrollY"]}function useScrollDrag(a,s,c){reactExports.useEffect(function(){var u=s.current;if(a&&u){var d=!1,p,v,A=function(){wrapperRaf.cancel(p)},b=function f(){A(),p=wrapperRaf(function(){c(v),f()})},g=function(m){if(!m.target.draggable){var C=m;C._virtualHandled||(C._virtualHandled=!0,d=!0)}},x=function(){d=!1,A()},y=function(m){if(d){var C=getPageXY(m,!1),S=u.getBoundingClientRect(),w=S.top,I=S.bottom;if(C<=w){var P=w-C;v=-smoothScrollOffset(P),b()}else if(C>=I){var $=C-I;v=smoothScrollOffset($),b()}else A()}};return u.addEventListener("mousedown",g),u.ownerDocument.addEventListener("mouseup",x),u.ownerDocument.addEventListener("mousemove",y),function(){u.removeEventListener("mousedown",g),u.ownerDocument.removeEventListener("mouseup",x),u.ownerDocument.removeEventListener("mousemove",y),A()}}},[a])}var MAX_TIMES=10;function useScrollTo$1(a,s,c,u,d,p,v,A){var b=reactExports.useRef(),g=reactExports.useState(null),x=_slicedToArray$e(g,2),y=x[0],f=x[1];return useLayoutEffect$1(function(){if(y&&y.times<MAX_TIMES){if(!a.current){f(function(k){return _objectSpread2$1({},k)});return}p();var m=y.targetAlign,C=y.originAlign,S=y.index,w=y.offset,I=a.current.clientHeight,P=!1,$=m,_=null;if(I){for(var E=m||C,R=0,T=0,B=0,M=Math.min(s.length-1,S),D=0;D<=M;D+=1){var O=d(s[D]);T=R;var H=c.get(O);B=T+(H===void 0?u:H),R=B}for(var j=E==="top"?w:I-w,Q=M;Q>=0;Q-=1){var L=d(s[Q]),F=c.get(L);if(F===void 0){P=!0;break}if(j-=F,j<=0)break}switch(E){case"top":_=T-w;break;case"bottom":_=B-I+w;break;default:{var U=a.current.scrollTop,N=U+I;T<U?$="top":B>N&&($="bottom")}}_!==null&&v(_),_!==y.lastTop&&(P=!0)}P&&f(_objectSpread2$1(_objectSpread2$1({},y),{},{times:y.times+1,targetAlign:$,lastTop:_}))}},[y,a.current]),function(m){if(m==null){A();return}if(wrapperRaf.cancel(b.current),typeof m=="number")v(m);else if(m&&_typeof$h(m)==="object"){var C,S=m.align;"index"in m?C=m.index:C=s.findIndex(function(P){return d(P)===m.key});var w=m.offset,I=w===void 0?0:w;f({times:0,index:C,offset:I,originAlign:S})}}}var ScrollBar=reactExports.forwardRef(function(a,s){var c=a.prefixCls,u=a.rtl,d=a.scrollOffset,p=a.scrollRange,v=a.onStartMove,A=a.onStopMove,b=a.onScroll,g=a.horizontal,x=a.spinSize,y=a.containerSize,f=a.style,m=a.thumbStyle,C=a.showScrollBar,S=reactExports.useState(!1),w=_slicedToArray$e(S,2),I=w[0],P=w[1],$=reactExports.useState(null),_=_slicedToArray$e($,2),E=_[0],R=_[1],T=reactExports.useState(null),B=_slicedToArray$e(T,2),M=B[0],D=B[1],O=!u,H=reactExports.useRef(),j=reactExports.useRef(),Q=reactExports.useState(C),L=_slicedToArray$e(Q,2),F=L[0],U=L[1],N=reactExports.useRef(),k=function(){C===!0||C===!1||(clearTimeout(N.current),U(!0),N.current=setTimeout(function(){U(!1)},3e3))},W=p-y||0,J=y-x||0,q=reactExports.useMemo(function(){if(d===0||W===0)return 0;var ie=d/W;return ie*J},[d,W,J]),Y=function(ce){ce.stopPropagation(),ce.preventDefault()},Z=reactExports.useRef({top:q,dragging:I,pageY:E,startTop:M});Z.current={top:q,dragging:I,pageY:E,startTop:M};var ee=function(ce){P(!0),R(getPageXY(ce,g)),D(Z.current.top),v(),ce.stopPropagation(),ce.preventDefault()};reactExports.useEffect(function(){var ie=function(be){be.preventDefault()},ce=H.current,ge=j.current;return ce.addEventListener("touchstart",ie,{passive:!1}),ge.addEventListener("touchstart",ee,{passive:!1}),function(){ce.removeEventListener("touchstart",ie),ge.removeEventListener("touchstart",ee)}},[]);var re=reactExports.useRef();re.current=W;var ae=reactExports.useRef();ae.current=J,reactExports.useEffect(function(){if(I){var ie,ce=function(be){var me=Z.current,fe=me.dragging,se=me.pageY,oe=me.startTop;wrapperRaf.cancel(ie);var de=H.current.getBoundingClientRect(),le=y/(g?de.width:de.height);if(fe){var xe=(getPageXY(be,g)-se)*le,Ce=oe;!O&&g?Ce-=xe:Ce+=xe;var $e=re.current,we=ae.current,Ee=we?Ce/we:0,Ae=Math.ceil(Ee*$e);Ae=Math.max(Ae,0),Ae=Math.min(Ae,$e),ie=wrapperRaf(function(){b(Ae,g)})}},ge=function(){P(!1),A()};return window.addEventListener("mousemove",ce,{passive:!0}),window.addEventListener("touchmove",ce,{passive:!0}),window.addEventListener("mouseup",ge,{passive:!0}),window.addEventListener("touchend",ge,{passive:!0}),function(){window.removeEventListener("mousemove",ce),window.removeEventListener("touchmove",ce),window.removeEventListener("mouseup",ge),window.removeEventListener("touchend",ge),wrapperRaf.cancel(ie)}}},[I]),reactExports.useEffect(function(){return k(),function(){clearTimeout(N.current)}},[d]),reactExports.useImperativeHandle(s,function(){return{delayHidden:k}});var V="".concat(c,"-scrollbar"),K={position:"absolute",visibility:F?null:"hidden"},te={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return g?(K.height=8,K.left=0,K.right=0,K.bottom=0,te.height="100%",te.width=x,O?te.left=q:te.right=q):(K.width=8,K.top=0,K.bottom=0,O?K.right=0:K.left=0,te.width="100%",te.height=x,te.top=q),reactExports.createElement("div",{ref:H,className:classnames(V,_defineProperty$a(_defineProperty$a(_defineProperty$a({},"".concat(V,"-horizontal"),g),"".concat(V,"-vertical"),!g),"".concat(V,"-visible"),F)),style:_objectSpread2$1(_objectSpread2$1({},K),f),onMouseDown:Y,onMouseMove:k},reactExports.createElement("div",{ref:j,className:classnames("".concat(V,"-thumb"),_defineProperty$a({},"".concat(V,"-thumb-moving"),I)),style:_objectSpread2$1(_objectSpread2$1({},te),m),onMouseDown:ee}))}),MIN_SIZE=20;function getSpinSize(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=a/s*a;return isNaN(c)&&(c=0),c=Math.max(c,MIN_SIZE),Math.floor(c)}var _excluded$N=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],EMPTY_DATA$1=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function RawList(a,s){var c=a.prefixCls,u=c===void 0?"rc-virtual-list":c,d=a.className,p=a.height,v=a.itemHeight,A=a.fullHeight,b=A===void 0?!0:A,g=a.style,x=a.data,y=a.children,f=a.itemKey,m=a.virtual,C=a.direction,S=a.scrollWidth,w=a.component,I=w===void 0?"div":w,P=a.onScroll,$=a.onVirtualScroll,_=a.onVisibleChange,E=a.innerProps,R=a.extraRender,T=a.styles,B=a.showScrollBar,M=B===void 0?"optional":B,D=_objectWithoutProperties$2(a,_excluded$N),O=reactExports.useCallback(function(St){return typeof f=="function"?f(St):St==null?void 0:St[f]},[f]),H=useHeights(O),j=_slicedToArray$e(H,4),Q=j[0],L=j[1],F=j[2],U=j[3],N=!!(m!==!1&&p&&v),k=reactExports.useMemo(function(){return Object.values(F.maps).reduce(function(St,lt){return St+lt},0)},[F.id,F.maps]),W=N&&x&&(Math.max(v*x.length,k)>p||!!S),J=C==="rtl",q=classnames(u,_defineProperty$a({},"".concat(u,"-rtl"),J),d),Y=x||EMPTY_DATA$1,Z=reactExports.useRef(),ee=reactExports.useRef(),re=reactExports.useRef(),ae=reactExports.useState(0),V=_slicedToArray$e(ae,2),K=V[0],te=V[1],ie=reactExports.useState(0),ce=_slicedToArray$e(ie,2),ge=ce[0],Se=ce[1],be=reactExports.useState(!1),me=_slicedToArray$e(be,2),fe=me[0],se=me[1],oe=function(){se(!0)},de=function(){se(!1)},le={getKey:O};function xe(St){te(function(lt){var at;typeof St=="function"?at=St(lt):at=St;var rt=Ge(at);return Z.current.scrollTop=rt,rt})}var Ce=reactExports.useRef({start:0,end:Y.length}),$e=reactExports.useRef(),we=useDiffItem(Y,O),Ee=_slicedToArray$e(we,1),Ae=Ee[0];$e.current=Ae;var pe=reactExports.useMemo(function(){if(!N)return{scrollHeight:void 0,start:0,end:Y.length-1,offset:void 0};if(!W){var St;return{scrollHeight:((St=ee.current)===null||St===void 0?void 0:St.offsetHeight)||0,start:0,end:Y.length-1,offset:void 0}}for(var lt=0,at,rt,ut,xt=Y.length,Rt=0;Rt<xt;Rt+=1){var It=Y[Rt],ht=O(It),wt=F.get(ht),Nt=lt+(wt===void 0?v:wt);Nt>=K&&at===void 0&&(at=Rt,rt=lt),Nt>K+p&&ut===void 0&&(ut=Rt),lt=Nt}return at===void 0&&(at=0,rt=0,ut=Math.ceil(p/v)),ut===void 0&&(ut=Y.length-1),ut=Math.min(ut+1,Y.length-1),{scrollHeight:lt,start:at,end:ut,offset:rt}},[W,N,K,Y,U,p]),he=pe.scrollHeight,Ie=pe.start,ye=pe.end,Pe=pe.offset;Ce.current.start=Ie,Ce.current.end=ye,reactExports.useLayoutEffect(function(){var St=F.getRecord();if(St.size===1){var lt=Array.from(St)[0],at=Y[Ie];if(at){var rt=O(at);if(rt===lt){var ut=F.get(lt),xt=ut-v;xe(function(Rt){return Rt+xt})}}}F.resetRecord()},[he]);var Le=reactExports.useState({width:0,height:p}),Ne=_slicedToArray$e(Le,2),Me=Ne[0],Fe=Ne[1],_e=function(lt){Fe({width:lt.offsetWidth,height:lt.offsetHeight})},je=reactExports.useRef(),Ye=reactExports.useRef(),Te=reactExports.useMemo(function(){return getSpinSize(Me.width,S)},[Me.width,S]),ke=reactExports.useMemo(function(){return getSpinSize(Me.height,he)},[Me.height,he]),De=he-p,Re=reactExports.useRef(De);Re.current=De;function Ge(St){var lt=St;return Number.isNaN(Re.current)||(lt=Math.min(lt,Re.current)),lt=Math.max(lt,0),lt}var Ve=K<=0,Xe=K>=De,We=ge<=0,ze=ge>=S,Qe=useOriginScroll(Ve,Xe,We,ze),et=function(){return{x:J?-ge:ge,y:K}},Ze=reactExports.useRef(et()),qe=useEvent(function(St){if($){var lt=_objectSpread2$1(_objectSpread2$1({},et()),St);(Ze.current.x!==lt.x||Ze.current.y!==lt.y)&&($(lt),Ze.current=lt)}});function Je(St,lt){var at=St;lt?(reactDomExports.flushSync(function(){Se(at)}),qe()):xe(at)}function ot(St){var lt=St.currentTarget.scrollTop;lt!==K&&xe(lt),P==null||P(St),qe()}var nt=function(lt){var at=lt,rt=S?S-Me.width:0;return at=Math.max(at,0),at=Math.min(at,rt),at},ct=useEvent(function(St,lt){lt?(reactDomExports.flushSync(function(){Se(function(at){var rt=at+(J?-St:St);return nt(rt)})}),qe()):xe(function(at){var rt=at+St;return rt})}),bt=useFrameWheel(N,Ve,Xe,We,ze,!!S,ct),st=_slicedToArray$e(bt,2),gt=st[0],ft=st[1];useMobileTouchMove(N,Z,function(St,lt,at,rt){var ut=rt;return Qe(St,lt,at)?!1:!ut||!ut._virtualHandled?(ut&&(ut._virtualHandled=!0),gt({preventDefault:function(){},deltaX:St?lt:0,deltaY:St?0:lt}),!0):!1}),useScrollDrag(W,Z,function(St){xe(function(lt){return lt+St})}),useLayoutEffect$1(function(){function St(at){var rt=Ve&&at.detail<0,ut=Xe&&at.detail>0;N&&!rt&&!ut&&at.preventDefault()}var lt=Z.current;return lt.addEventListener("wheel",gt,{passive:!1}),lt.addEventListener("DOMMouseScroll",ft,{passive:!0}),lt.addEventListener("MozMousePixelScroll",St,{passive:!1}),function(){lt.removeEventListener("wheel",gt),lt.removeEventListener("DOMMouseScroll",ft),lt.removeEventListener("MozMousePixelScroll",St)}},[N,Ve,Xe]),useLayoutEffect$1(function(){if(S){var St=nt(ge);Se(St),qe({x:St})}},[Me.width,S]);var pt=function(){var lt,at;(lt=je.current)===null||lt===void 0||lt.delayHidden(),(at=Ye.current)===null||at===void 0||at.delayHidden()},At=useScrollTo$1(Z,Y,F,v,O,function(){return L(!0)},xe,pt);reactExports.useImperativeHandle(s,function(){return{nativeElement:re.current,getScrollInfo:et,scrollTo:function(lt){function at(rt){return rt&&_typeof$h(rt)==="object"&&("left"in rt||"top"in rt)}at(lt)?(lt.left!==void 0&&Se(nt(lt.left)),At(lt.top)):At(lt)}}}),useLayoutEffect$1(function(){if(_){var St=Y.slice(Ie,ye+1);_(St,Y)}},[Ie,ye,Y]);var Bt=useGetSize(Y,O,F,v),Ut=R==null?void 0:R({start:Ie,end:ye,virtual:W,offsetX:ge,offsetY:Pe,rtl:J,getSize:Bt}),_t=useChildren$1(Y,Ie,ye,S,ge,Q,y,le),$t=null;p&&($t=_objectSpread2$1(_defineProperty$a({},b?"height":"maxHeight",p),ScrollStyle),N&&($t.overflowY="hidden",S&&($t.overflowX="hidden"),fe&&($t.pointerEvents="none")));var Ht={};return J&&(Ht.dir="rtl"),reactExports.createElement("div",_extends$3({ref:re,style:_objectSpread2$1(_objectSpread2$1({},g),{},{position:"relative"}),className:q},Ht,D),reactExports.createElement(RefResizeObserver,{onResize:_e},reactExports.createElement(I,{className:"".concat(u,"-holder"),style:$t,ref:Z,onScroll:ot,onMouseEnter:pt},reactExports.createElement(Filler,{prefixCls:u,height:he,offsetX:ge,offsetY:Pe,scrollWidth:S,onInnerResize:L,ref:ee,innerProps:E,rtl:J,extra:Ut},_t))),W&&he>p&&reactExports.createElement(ScrollBar,{ref:je,prefixCls:u,scrollOffset:K,scrollRange:he,rtl:J,onScroll:Je,onStartMove:oe,onStopMove:de,spinSize:ke,containerSize:Me.height,style:T==null?void 0:T.verticalScrollBar,thumbStyle:T==null?void 0:T.verticalScrollBarThumb,showScrollBar:M}),W&&S>Me.width&&reactExports.createElement(ScrollBar,{ref:Ye,prefixCls:u,scrollOffset:ge,scrollRange:S,rtl:J,onScroll:Je,onStartMove:oe,onStopMove:de,spinSize:Te,containerSize:Me.width,horizontal:!0,style:T==null?void 0:T.horizontalScrollBar,thumbStyle:T==null?void 0:T.horizontalScrollBarThumb,showScrollBar:M}))}var List=reactExports.forwardRef(RawList);List.displayName="List";function isPlatformMac(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _excluded$M=["disabled","title","children","style","className"];function isTitleType(a){return typeof a=="string"||typeof a=="number"}var OptionList$1=function a(s,c){var u=useBaseProps(),d=u.prefixCls,p=u.id,v=u.open,A=u.multiple,b=u.mode,g=u.searchValue,x=u.toggleOpen,y=u.notFoundContent,f=u.onPopupScroll,m=reactExports.useContext(SelectContext),C=m.maxCount,S=m.flattenOptions,w=m.onActiveValue,I=m.defaultActiveFirstOption,P=m.onSelect,$=m.menuItemSelectedIcon,_=m.rawValues,E=m.fieldNames,R=m.virtual,T=m.direction,B=m.listHeight,M=m.listItemHeight,D=m.optionRender,O="".concat(d,"-item"),H=useMemo(function(){return S},[v,S],function(ie,ce){return ce[0]&&ie[1]!==ce[1]}),j=reactExports.useRef(null),Q=reactExports.useMemo(function(){return A&&isValidCount(C)&&(_==null?void 0:_.size)>=C},[A,C,_==null?void 0:_.size]),L=function(ce){ce.preventDefault()},F=function(ce){var ge;(ge=j.current)===null||ge===void 0||ge.scrollTo(typeof ce=="number"?{index:ce}:ce)},U=reactExports.useCallback(function(ie){return b==="combobox"?!1:_.has(ie)},[b,_toConsumableArray$e(_).toString(),_.size]),N=function(ce){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Se=H.length,be=0;be<Se;be+=1){var me=(ce+be*ge+Se)%Se,fe=H[me]||{},se=fe.group,oe=fe.data;if(!se&&!(oe!=null&&oe.disabled)&&(U(oe.value)||!Q))return me}return-1},k=reactExports.useState(function(){return N(0)}),W=_slicedToArray$e(k,2),J=W[0],q=W[1],Y=function(ce){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;q(ce);var Se={source:ge?"keyboard":"mouse"},be=H[ce];if(!be){w(null,-1,Se);return}w(be.value,ce,Se)};reactExports.useEffect(function(){Y(I!==!1?N(0):-1)},[H.length,g]);var Z=reactExports.useCallback(function(ie){return b==="combobox"?String(ie).toLowerCase()===g.toLowerCase():_.has(ie)},[b,g,_toConsumableArray$e(_).toString(),_.size]);reactExports.useEffect(function(){var ie=setTimeout(function(){if(!A&&v&&_.size===1){var ge=Array.from(_)[0],Se=H.findIndex(function(be){var me=be.data;return me.value===ge});Se!==-1&&(Y(Se),F(Se))}});if(v){var ce;(ce=j.current)===null||ce===void 0||ce.scrollTo(void 0)}return function(){return clearTimeout(ie)}},[v,g]);var ee=function(ce){ce!==void 0&&P(ce,{selected:!_.has(ce)}),A||x(!1)};if(reactExports.useImperativeHandle(c,function(){return{onKeyDown:function(ce){var ge=ce.which,Se=ce.ctrlKey;switch(ge){case KeyCode.N:case KeyCode.P:case KeyCode.UP:case KeyCode.DOWN:{var be=0;if(ge===KeyCode.UP?be=-1:ge===KeyCode.DOWN?be=1:isPlatformMac()&&Se&&(ge===KeyCode.N?be=1:ge===KeyCode.P&&(be=-1)),be!==0){var me=N(J+be,be);F(me),Y(me,!0)}break}case KeyCode.TAB:case KeyCode.ENTER:{var fe,se=H[J];se&&!(se!=null&&(fe=se.data)!==null&&fe!==void 0&&fe.disabled)&&!Q?ee(se.value):ee(void 0),v&&ce.preventDefault();break}case KeyCode.ESC:x(!1),v&&ce.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ce){F(ce)}}}),H.length===0)return reactExports.createElement("div",{role:"listbox",id:"".concat(p,"_list"),className:"".concat(O,"-empty"),onMouseDown:L},y);var re=Object.keys(E).map(function(ie){return E[ie]}),ae=function(ce){return ce.label};function V(ie,ce){var ge=ie.group;return{role:ge?"presentation":"option",id:"".concat(p,"_list_").concat(ce)}}var K=function(ce){var ge=H[ce];if(!ge)return null;var Se=ge.data||{},be=Se.value,me=ge.group,fe=pickAttrs(Se,!0),se=ae(ge);return ge?reactExports.createElement("div",_extends$3({"aria-label":typeof se=="string"&&!me?se:null},fe,{key:ce},V(ge,ce),{"aria-selected":Z(be)}),be):null},te={role:"listbox",id:"".concat(p,"_list")};return reactExports.createElement(reactExports.Fragment,null,R&&reactExports.createElement("div",_extends$3({},te,{style:{height:0,width:0,overflow:"hidden"}}),K(J-1),K(J),K(J+1)),reactExports.createElement(List,{itemKey:"key",ref:j,data:H,height:B,itemHeight:M,fullHeight:!1,onMouseDown:L,onScroll:f,virtual:R,direction:T,innerProps:R?null:te},function(ie,ce){var ge=ie.group,Se=ie.groupOption,be=ie.data,me=ie.label,fe=ie.value,se=be.key;if(ge){var oe,de=(oe=be.title)!==null&&oe!==void 0?oe:isTitleType(me)?me.toString():void 0;return reactExports.createElement("div",{className:classnames(O,"".concat(O,"-group"),be.className),title:de},me!==void 0?me:se)}var le=be.disabled,xe=be.title;be.children;var Ce=be.style,$e=be.className,we=_objectWithoutProperties$2(be,_excluded$M),Ee=omit(we,re),Ae=U(fe),pe=le||!Ae&&Q,he="".concat(O,"-option"),Ie=classnames(O,he,$e,_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a({},"".concat(he,"-grouped"),Se),"".concat(he,"-active"),J===ce&&!pe),"".concat(he,"-disabled"),pe),"".concat(he,"-selected"),Ae)),ye=ae(ie),Pe=!$||typeof $=="function"||Ae,Le=typeof ye=="number"?ye:ye||fe,Ne=isTitleType(Le)?Le.toString():void 0;return xe!==void 0&&(Ne=xe),reactExports.createElement("div",_extends$3({},pickAttrs(Ee),R?{}:V(ie,ce),{"aria-selected":Z(fe),className:Ie,title:Ne,onMouseMove:function(){J===ce||pe||Y(ce)},onClick:function(){pe||ee(fe)},style:Ce}),reactExports.createElement("div",{className:"".concat(he,"-content")},typeof D=="function"?D(ie,{index:ce}):Le),reactExports.isValidElement($)||Ae,Pe&&reactExports.createElement(TransBtn,{className:"".concat(O,"-option-state"),customizeIcon:$,customizeIconProps:{value:fe,disabled:pe,isSelected:Ae}},Ae?"✓":null))}))},RefOptionList$1=reactExports.forwardRef(OptionList$1);const useCache$1=function(a,s){var c=reactExports.useRef({values:new Map,options:new Map}),u=reactExports.useMemo(function(){var p=c.current,v=p.values,A=p.options,b=a.map(function(y){if(y.label===void 0){var f;return _objectSpread2$1(_objectSpread2$1({},y),{},{label:(f=v.get(y.value))===null||f===void 0?void 0:f.label})}return y}),g=new Map,x=new Map;return b.forEach(function(y){g.set(y.value,y),x.set(y.value,s.get(y.value)||A.get(y.value))}),c.current.values=g,c.current.options=x,b},[a,s]),d=reactExports.useCallback(function(p){return s.get(p)||c.current.options.get(p)},[s]);return[u,d]};function includes(a,s){return toArray$6(a).join("").toUpperCase().includes(s)}const useFilterOptions=function(a,s,c,u,d){return reactExports.useMemo(function(){if(!c||u===!1)return a;var p=s.options,v=s.label,A=s.value,b=[],g=typeof u=="function",x=c.toUpperCase(),y=g?u:function(m,C){return d?includes(C[d],x):C[p]?includes(C[v!=="children"?v:"label"],x):includes(C[A],x)},f=g?function(m){return injectPropsWithOption(m)}:function(m){return m};return a.forEach(function(m){if(m[p]){var C=y(c,f(m));if(C)b.push(m);else{var S=m[p].filter(function(w){return y(c,f(w))});S.length&&b.push(_objectSpread2$1(_objectSpread2$1({},m),{},_defineProperty$a({},p,S)))}return}y(c,f(m))&&b.push(m)}),b},[a,u,d,c,s])};var uuid$2=0,isBrowserClient$1=canUseDom$1();function getUUID$1(){var a;return isBrowserClient$1?(a=uuid$2,uuid$2+=1):a="TEST_OR_SSR",a}function useId$1(a){var s=reactExports.useState(),c=_slicedToArray$e(s,2),u=c[0],d=c[1];return reactExports.useEffect(function(){d("rc_select_".concat(getUUID$1()))},[]),a||u}var _excluded$L=["children","value"],_excluded2$b=["children"];function convertNodeToOption(a){var s=a,c=s.key,u=s.props,d=u.children,p=u.value,v=_objectWithoutProperties$2(u,_excluded$L);return _objectSpread2$1({key:c,value:p!==void 0?p:c,children:d},v)}function convertChildrenToData$1(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return toArray$8(a).map(function(c,u){if(!reactExports.isValidElement(c)||!c.type)return null;var d=c,p=d.type.isSelectOptGroup,v=d.key,A=d.props,b=A.children,g=_objectWithoutProperties$2(A,_excluded2$b);return s||!p?convertNodeToOption(c):_objectSpread2$1(_objectSpread2$1({key:"__RC_SELECT_GRP__".concat(v===null?u:v,"__"),label:v},g),{},{options:convertChildrenToData$1(b)})}).filter(function(c){return c})}var useOptions=function a(s,c,u,d,p){return reactExports.useMemo(function(){var v=s,A=!s;A&&(v=convertChildrenToData$1(c));var b=new Map,g=new Map,x=function(m,C,S){S&&typeof S=="string"&&m.set(C[S],C)},y=function f(m){for(var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=0;S<m.length;S+=1){var w=m[S];!w[u.options]||C?(b.set(w[u.value],w),x(g,w,u.label),x(g,w,d),x(g,w,p)):f(w[u.options],!0)}};return y(v),{options:v,valueOptions:b,labelOptions:g}},[s,c,u,d,p])};function useRefFunc$1(a){var s=reactExports.useRef();s.current=a;var c=reactExports.useCallback(function(){return s.current.apply(s,arguments)},[]);return c}var _excluded$K=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],OMIT_DOM_PROPS=["inputValue"];function isRawValue$1(a){return!a||_typeof$h(a)!=="object"}var Select$1=reactExports.forwardRef(function(a,s){var c=a.id,u=a.mode,d=a.prefixCls,p=d===void 0?"rc-select":d,v=a.backfill,A=a.fieldNames,b=a.inputValue,g=a.searchValue,x=a.onSearch,y=a.autoClearSearchValue,f=y===void 0?!0:y,m=a.onSelect,C=a.onDeselect,S=a.dropdownMatchSelectWidth,w=S===void 0?!0:S,I=a.filterOption,P=a.filterSort,$=a.optionFilterProp,_=a.optionLabelProp,E=a.options,R=a.optionRender,T=a.children,B=a.defaultActiveFirstOption,M=a.menuItemSelectedIcon,D=a.virtual,O=a.direction,H=a.listHeight,j=H===void 0?200:H,Q=a.listItemHeight,L=Q===void 0?20:Q,F=a.labelRender,U=a.value,N=a.defaultValue,k=a.labelInValue,W=a.onChange,J=a.maxCount,q=_objectWithoutProperties$2(a,_excluded$K),Y=useId$1(c),Z=isMultiple(u),ee=!!(!E&&T),re=reactExports.useMemo(function(){return I===void 0&&u==="combobox"?!1:I},[I,u]),ae=reactExports.useMemo(function(){return fillFieldNames$2(A,ee)},[JSON.stringify(A),ee]),V=useMergedState("",{value:g!==void 0?g:b,postState:function(Je){return Je||""}}),K=_slicedToArray$e(V,2),te=K[0],ie=K[1],ce=useOptions(E,T,ae,$,_),ge=ce.valueOptions,Se=ce.labelOptions,be=ce.options,me=reactExports.useCallback(function(qe){var Je=toArray$6(qe);return Je.map(function(ot){var nt,ct,bt,st,gt;if(isRawValue$1(ot))nt=ot;else{var ft;bt=ot.key,ct=ot.label,nt=(ft=ot.value)!==null&&ft!==void 0?ft:bt}var pt=ge.get(nt);if(pt){var At;ct===void 0&&(ct=pt==null?void 0:pt[_||ae.label]),bt===void 0&&(bt=(At=pt==null?void 0:pt.key)!==null&&At!==void 0?At:nt),st=pt==null?void 0:pt.disabled,gt=pt==null?void 0:pt.title}return{label:ct,value:nt,key:bt,disabled:st,title:gt}})},[ae,_,ge]),fe=useMergedState(N,{value:U}),se=_slicedToArray$e(fe,2),oe=se[0],de=se[1],le=reactExports.useMemo(function(){var qe,Je=Z&&oe===null?[]:oe,ot=me(Je);return u==="combobox"&&isComboNoValue((qe=ot[0])===null||qe===void 0?void 0:qe.value)?[]:ot},[oe,me,u,Z]),xe=useCache$1(le,ge),Ce=_slicedToArray$e(xe,2),$e=Ce[0],we=Ce[1],Ee=reactExports.useMemo(function(){if(!u&&$e.length===1){var qe=$e[0];if(qe.value===null&&(qe.label===null||qe.label===void 0))return[]}return $e.map(function(Je){var ot;return _objectSpread2$1(_objectSpread2$1({},Je),{},{label:(ot=typeof F=="function"?F(Je):Je.label)!==null&&ot!==void 0?ot:Je.value})})},[u,$e,F]),Ae=reactExports.useMemo(function(){return new Set($e.map(function(qe){return qe.value}))},[$e]);reactExports.useEffect(function(){if(u==="combobox"){var qe,Je=(qe=$e[0])===null||qe===void 0?void 0:qe.value;ie(hasValue(Je)?String(Je):"")}},[$e]);var pe=useRefFunc$1(function(qe,Je){var ot=Je??qe;return _defineProperty$a(_defineProperty$a({},ae.value,qe),ae.label,ot)}),he=reactExports.useMemo(function(){if(u!=="tags")return be;var qe=_toConsumableArray$e(be),Je=function(nt){return ge.has(nt)};return _toConsumableArray$e($e).sort(function(ot,nt){return ot.value<nt.value?-1:1}).forEach(function(ot){var nt=ot.value;Je(nt)||qe.push(pe(nt,ot.label))}),qe},[pe,be,ge,$e,u]),Ie=useFilterOptions(he,ae,te,re,$),ye=reactExports.useMemo(function(){return u!=="tags"||!te||Ie.some(function(qe){return qe[$||"value"]===te})||Ie.some(function(qe){return qe[ae.value]===te})?Ie:[pe(te)].concat(_toConsumableArray$e(Ie))},[pe,$,u,Ie,te,ae]),Pe=function qe(Je){var ot=_toConsumableArray$e(Je).sort(function(nt,ct){return P(nt,ct,{searchValue:te})});return ot.map(function(nt){return Array.isArray(nt.options)?_objectSpread2$1(_objectSpread2$1({},nt),{},{options:nt.options.length>0?qe(nt.options):nt.options}):nt})},Le=reactExports.useMemo(function(){return P?Pe(ye):ye},[ye,P,te]),Ne=reactExports.useMemo(function(){return flattenOptions(Le,{fieldNames:ae,childrenAsData:ee})},[Le,ae,ee]),Me=function(Je){var ot=me(Je);if(de(ot),W&&(ot.length!==$e.length||ot.some(function(bt,st){var gt;return((gt=$e[st])===null||gt===void 0?void 0:gt.value)!==(bt==null?void 0:bt.value)}))){var nt=k?ot:ot.map(function(bt){return bt.value}),ct=ot.map(function(bt){return injectPropsWithOption(we(bt.value))});W(Z?nt:nt[0],Z?ct:ct[0])}},Fe=reactExports.useState(null),_e=_slicedToArray$e(Fe,2),je=_e[0],Ye=_e[1],Te=reactExports.useState(0),ke=_slicedToArray$e(Te,2),De=ke[0],Re=ke[1],Ge=B!==void 0?B:u!=="combobox",Ve=reactExports.useCallback(function(qe,Je){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt=ot.source,ct=nt===void 0?"keyboard":nt;Re(Je),v&&u==="combobox"&&qe!==null&&ct==="keyboard"&&Ye(String(qe))},[v,u]),Xe=function(Je,ot,nt){var ct=function(){var $t,Ht=we(Je);return[k?{label:Ht==null?void 0:Ht[ae.label],value:Je,key:($t=Ht==null?void 0:Ht.key)!==null&&$t!==void 0?$t:Je}:Je,injectPropsWithOption(Ht)]};if(ot&&m){var bt=ct(),st=_slicedToArray$e(bt,2),gt=st[0],ft=st[1];m(gt,ft)}else if(!ot&&C&&nt!=="clear"){var pt=ct(),At=_slicedToArray$e(pt,2),Bt=At[0],Ut=At[1];C(Bt,Ut)}},We=useRefFunc$1(function(qe,Je){var ot,nt=Z?Je.selected:!0;nt?ot=Z?[].concat(_toConsumableArray$e($e),[qe]):[qe]:ot=$e.filter(function(ct){return ct.value!==qe}),Me(ot),Xe(qe,nt),u==="combobox"?Ye(""):(!isMultiple||f)&&(ie(""),Ye(""))}),ze=function(Je,ot){Me(Je);var nt=ot.type,ct=ot.values;(nt==="remove"||nt==="clear")&&ct.forEach(function(bt){Xe(bt.value,!1,nt)})},Qe=function(Je,ot){if(ie(Je),Ye(null),ot.source==="submit"){var nt=(Je||"").trim();if(nt){var ct=Array.from(new Set([].concat(_toConsumableArray$e(Ae),[nt])));Me(ct),Xe(nt,!0),ie("")}return}ot.source!=="blur"&&(u==="combobox"&&Me(Je),x==null||x(Je))},et=function(Je){var ot=Je;u!=="tags"&&(ot=Je.map(function(ct){var bt=Se.get(ct);return bt==null?void 0:bt.value}).filter(function(ct){return ct!==void 0}));var nt=Array.from(new Set([].concat(_toConsumableArray$e(Ae),_toConsumableArray$e(ot))));Me(nt),nt.forEach(function(ct){Xe(ct,!0)})},Ze=reactExports.useMemo(function(){var qe=D!==!1&&w!==!1;return _objectSpread2$1(_objectSpread2$1({},ce),{},{flattenOptions:Ne,onActiveValue:Ve,defaultActiveFirstOption:Ge,onSelect:We,menuItemSelectedIcon:M,rawValues:Ae,fieldNames:ae,virtual:qe,direction:O,listHeight:j,listItemHeight:L,childrenAsData:ee,maxCount:J,optionRender:R})},[J,ce,Ne,Ve,Ge,We,M,Ae,ae,D,w,O,j,L,ee,R]);return reactExports.createElement(SelectContext.Provider,{value:Ze},reactExports.createElement(BaseSelect,_extends$3({},q,{id:Y,prefixCls:p,ref:s,omitDomProps:OMIT_DOM_PROPS,mode:u,displayValues:Ee,onDisplayValuesChange:ze,direction:O,searchValue:te,onSearch:Qe,autoClearSearchValue:f,onSearchSplit:et,dropdownMatchSelectWidth:w,OptionList:RefOptionList$1,emptyOptions:!Ne.length,activeValue:je,activeDescendantId:"".concat(Y,"_list_").concat(De)})))}),TypedSelect=Select$1;TypedSelect.Option=Option,TypedSelect.OptGroup=OptGroup;function getStatusClassNames(a,s,c){return classnames({[`${a}-status-success`]:s==="success",[`${a}-status-warning`]:s==="warning",[`${a}-status-error`]:s==="error",[`${a}-status-validating`]:s==="validating",[`${a}-has-feedback`]:c})}const getMergedStatus=(a,s)=>s||a,Empty$1=()=>{const[,a]=useToken$1(),[s]=useLocale$1("Empty"),u=new FastColor(a.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return reactExports.createElement("svg",{style:u,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},reactExports.createElement("title",null,(s==null?void 0:s.description)||"Empty"),reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{transform:"translate(24 31.67)"},reactExports.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),reactExports.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),reactExports.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),reactExports.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),reactExports.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),reactExports.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),reactExports.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},reactExports.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),reactExports.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Simple=()=>{const[,a]=useToken$1(),[s]=useLocale$1("Empty"),{colorFill:c,colorFillTertiary:u,colorFillQuaternary:d,colorBgContainer:p}=a,{borderColor:v,shadowColor:A,contentColor:b}=reactExports.useMemo(()=>({borderColor:new FastColor(c).onBackground(p).toHexString(),shadowColor:new FastColor(u).onBackground(p).toHexString(),contentColor:new FastColor(d).onBackground(p).toHexString()}),[c,u,d,p]);return reactExports.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},reactExports.createElement("title",null,(s==null?void 0:s.description)||"Empty"),reactExports.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},reactExports.createElement("ellipse",{fill:A,cx:"32",cy:"33",rx:"32",ry:"7"}),reactExports.createElement("g",{fillRule:"nonzero",stroke:v},reactExports.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),reactExports.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:b}))))},genSharedEmptyStyle=a=>{const{componentCls:s,margin:c,marginXS:u,marginXL:d,fontSize:p,lineHeight:v}=a;return{[s]:{marginInline:u,fontSize:p,lineHeight:v,textAlign:"center",[`${s}-image`]:{height:a.emptyImgHeight,marginBottom:u,opacity:a.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${s}-description`]:{color:a.colorTextDescription},[`${s}-footer`]:{marginTop:c},"&-normal":{marginBlock:d,color:a.colorTextDescription,[`${s}-description`]:{color:a.colorTextDescription},[`${s}-image`]:{height:a.emptyImgHeightMD}},"&-small":{marginBlock:u,color:a.colorTextDescription,[`${s}-image`]:{height:a.emptyImgHeightSM}}}}},useStyle$t=genStyleHooks("Empty",a=>{const{componentCls:s,controlHeightLG:c,calc:u}=a,d=merge(a,{emptyImgCls:`${s}-img`,emptyImgHeight:u(c).mul(2.5).equal(),emptyImgHeightMD:c,emptyImgHeightSM:u(c).mul(.875).equal()});return[genSharedEmptyStyle(d)]});var __rest$Y=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const defaultEmptyImg=reactExports.createElement(Empty$1,null),simpleEmptyImg=reactExports.createElement(Simple,null),Empty=a=>{const{className:s,rootClassName:c,prefixCls:u,image:d=defaultEmptyImg,description:p,children:v,imageStyle:A,style:b,classNames:g,styles:x}=a,y=__rest$Y(a,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:f,direction:m,className:C,style:S,classNames:w,styles:I}=useComponentConfig("empty"),P=f("empty",u),[$,_,E]=useStyle$t(P),[R]=useLocale$1("Empty"),T=typeof p<"u"?p:R==null?void 0:R.description,B=typeof T=="string"?T:"empty";let M=null;return typeof d=="string"?M=reactExports.createElement("img",{alt:B,src:d}):M=d,$(reactExports.createElement("div",Object.assign({className:classnames(_,E,P,C,{[`${P}-normal`]:d===simpleEmptyImg,[`${P}-rtl`]:m==="rtl"},s,c,w.root,g==null?void 0:g.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},I.root),S),x==null?void 0:x.root),b)},y),reactExports.createElement("div",{className:classnames(`${P}-image`,w.image,g==null?void 0:g.image),style:Object.assign(Object.assign(Object.assign({},A),I.image),x==null?void 0:x.image)},M),T&&reactExports.createElement("div",{className:classnames(`${P}-description`,w.description,g==null?void 0:g.description),style:Object.assign(Object.assign({},I.description),x==null?void 0:x.description)},T),v&&reactExports.createElement("div",{className:classnames(`${P}-footer`,w.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign({},I.footer),x==null?void 0:x.footer)},v)))};Empty.PRESENTED_IMAGE_DEFAULT=defaultEmptyImg,Empty.PRESENTED_IMAGE_SIMPLE=simpleEmptyImg;const DefaultRenderEmpty=a=>{const{componentName:s}=a,{getPrefixCls:c}=reactExports.useContext(ConfigContext$1),u=c("empty");switch(s){case"Table":case"List":return React.createElement(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return React.createElement(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE,className:`${u}-small`});case"Table.filter":return null;default:return React.createElement(Empty,null)}},useVariant=function(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var u,d;const{variant:p,[a]:v}=reactExports.useContext(ConfigContext$1),A=reactExports.useContext(VariantContext),b=v==null?void 0:v.variant;let g;typeof s<"u"?g=s:c===!1?g="borderless":g=(d=(u=A??b)!==null&&u!==void 0?u:p)!==null&&d!==void 0?d:"outlined";const x=Variants.includes(g);return[g,x]},getBuiltInPlacements=a=>{const c={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:a==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},c),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},c),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},c),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},c),{points:["br","tr"],offset:[0,-4]})}};function mergedBuiltinPlacements(a,s){return a||getBuiltInPlacements(s)}const genItemStyle=a=>{const{optionHeight:s,optionFontSize:c,optionLineHeight:u,optionPadding:d}=a;return{position:"relative",display:"block",minHeight:s,padding:d,color:a.colorText,fontWeight:"normal",fontSize:c,lineHeight:u,boxSizing:"border-box"}},genSingleStyle$1=a=>{const{antCls:s,componentCls:c}=a,u=`${c}-item`,d=`&${s}-slide-up-enter${s}-slide-up-enter-active`,p=`&${s}-slide-up-appear${s}-slide-up-appear-active`,v=`&${s}-slide-up-leave${s}-slide-up-leave-active`,A=`${c}-dropdown-placement-`,b=`${u}-option-selected`;return[{[`${c}-dropdown`]:Object.assign(Object.assign({},resetComponent(a)),{position:"absolute",top:-9999,zIndex:a.zIndexPopup,boxSizing:"border-box",padding:a.paddingXXS,overflow:"hidden",fontSize:a.fontSize,fontVariant:"initial",backgroundColor:a.colorBgElevated,borderRadius:a.borderRadiusLG,outline:"none",boxShadow:a.boxShadowSecondary,[`
|
373
|
+
`].includes(Ft)})},[L]),ot=reactExports.useContext(SelectContext)||{},nt=ot.maxCount,ct=ot.rawValues,bt=function(Mt,sr,Gt){if(!(oe&&isValidCount(nt)&&(ct==null?void 0:ct.size)>=nt)){var Kt=!0,gr=Mt;M==null||M(null);var Er=getSeparatedContent(Mt,L,isValidCount(nt)?nt-ct.size:void 0),Pr=Gt?null:Er;return w!=="combobox"&&Pr&&(gr="",Q==null||Q(Pr),qe(!1),Kt=!1),j&&_e!==gr&&j(gr,{source:sr?"typing":"effect"}),Kt}},st=function(Mt){!Mt||!Mt.trim()||j(Mt,{source:"submit"})};reactExports.useEffect(function(){!Qe&&!oe&&w!=="combobox"&&bt("",!1,!1)},[Qe]),reactExports.useEffect(function(){We&&I&&ze(!1),I&&!ye.current&&Me(!1)},[I]);var gt=useLock(),ft=_slicedToArray$e(gt,2),pt=ft[0],At=ft[1],Bt=reactExports.useRef(!1),Ut=function(Mt){var sr=pt(),Gt=Mt.key,Kt=Gt==="Enter";if(Kt&&(w!=="combobox"&&Mt.preventDefault(),Qe||qe(!0)),At(!!_e),Gt==="Backspace"&&!sr&&oe&&!_e&&x.length){for(var gr=_toConsumableArray$e(x),Er=null,Pr=gr.length-1;Pr>=0;Pr-=1){var Br=gr[Pr];if(!Br.disabled){gr.splice(Pr,1),Er=Br;break}}Er&&y(gr,{type:"remove",values:[Er]})}for(var Mr=arguments.length,jr=new Array(Mr>1?Mr-1:0),Yt=1;Yt<Mr;Yt++)jr[Yt-1]=arguments[Yt];if(Qe&&(!Kt||!Bt.current)){var zt;Kt&&(Bt.current=!0),(zt=Ie.current)===null||zt===void 0||zt.onKeyDown.apply(zt,[Mt].concat(jr))}me==null||me.apply(void 0,[Mt].concat(jr))},_t=function(Mt){for(var sr=arguments.length,Gt=new Array(sr>1?sr-1:0),Kt=1;Kt<sr;Kt++)Gt[Kt-1]=arguments[Kt];if(Qe){var gr;(gr=Ie.current)===null||gr===void 0||gr.onKeyUp.apply(gr,[Mt].concat(Gt))}Mt.key==="Enter"&&(Bt.current=!1),be==null||be.apply(void 0,[Mt].concat(Gt))},$t=function(Mt){var sr=x.filter(function(Gt){return Gt!==Mt});y(sr,{type:"remove",values:[Mt]})},Ht=function(){Bt.current=!1},St=reactExports.useRef(!1),lt=function(){Me(!0),I||(ge&&!St.current&&ge.apply(void 0,arguments),ce.includes("focus")&&qe(!0)),St.current=!0},at=function(){ye.current=!0,Me(!1,function(){St.current=!1,ye.current=!1,qe(!1)}),!I&&(_e&&(w==="tags"?j(_e,{source:"submit"}):w==="multiple"&&j("",{source:"blur"})),Se&&Se.apply(void 0,arguments))},rt=[];reactExports.useEffect(function(){return function(){rt.forEach(function(Ft){return clearTimeout(Ft)}),rt.splice(0,rt.length)}},[]);var ut=function(Mt){var sr,Gt=Mt.target,Kt=(sr=pe.current)===null||sr===void 0?void 0:sr.getPopupElement();if(Kt&&Kt.contains(Gt)){var gr=setTimeout(function(){var Mr=rt.indexOf(gr);if(Mr!==-1&&rt.splice(Mr,1),Fe(),!$e&&!Kt.contains(document.activeElement)){var jr;(jr=he.current)===null||jr===void 0||jr.focus()}});rt.push(gr)}for(var Er=arguments.length,Pr=new Array(Er>1?Er-1:0),Br=1;Br<Er;Br++)Pr[Br-1]=arguments[Br];fe==null||fe.apply(void 0,[Mt].concat(Pr))},xt=reactExports.useState({}),Rt=_slicedToArray$e(xt,2),It=Rt[1];function ht(){It({})}var wt;Ye&&(wt=function(Mt){qe(Mt)}),useSelectTriggerControl(function(){var Ft;return[Ee.current,(Ft=pe.current)===null||Ft===void 0?void 0:Ft.getPopupElement()]},Ze,qe,!!Ye);var Nt=reactExports.useMemo(function(){return _objectSpread2$1(_objectSpread2$1({},a),{},{notFoundContent:C,open:Qe,triggerOpen:Ze,id:u,showSearch:de,multiple:oe,toggleOpen:qe})},[a,C,Ze,Qe,u,de,oe,qe]),Wt=!!N||P,jt;Wt&&(jt=reactExports.createElement(TransBtn,{className:classnames("".concat(d,"-arrow"),_defineProperty$a({},"".concat(d,"-arrow-loading"),P)),customizeIcon:N,customizeIconProps:{loading:P,searchValue:_e,open:Qe,focused:Ne,showSearch:de}}));var Qt=function(){var Mt;S==null||S(),(Mt=he.current)===null||Mt===void 0||Mt.focus(),y([],{type:"clear",values:x}),bt("",!1,!1)},er=useAllowClear(d,Qt,x,F,k,I,_e,w),Vt=er.allowClear,rr=er.clearIcon,qt=reactExports.createElement(W,{ref:Ie}),tr=classnames(d,p,_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a({},"".concat(d,"-focused"),Ne),"".concat(d,"-multiple"),oe),"".concat(d,"-single"),!oe),"".concat(d,"-allow-clear"),F),"".concat(d,"-show-arrow"),Wt),"".concat(d,"-disabled"),I),"".concat(d,"-loading"),P),"".concat(d,"-open"),Qe),"".concat(d,"-customize-input"),je),"".concat(d,"-show-search"),de)),ur=reactExports.createElement(RefSelectTrigger,{ref:pe,disabled:I,prefixCls:d,visible:Ze,popupElement:qt,animation:J,transitionName:q,dropdownStyle:Y,dropdownClassName:Z,direction:b,dropdownMatchSelectWidth:ee,dropdownRender:re,dropdownAlign:ae,placement:V,builtinPlacements:K,getPopupContainer:te,empty:f,getTriggerDOMNode:function(Mt){return Ae.current||Mt},onPopupVisibleChange:wt,onPopupMouseEnter:ht},Ye?reactExports.cloneElement(Ye,{ref:Te}):reactExports.createElement(ForwardSelector,_extends$3({},a,{domRef:Ae,prefixCls:d,inputElement:je,ref:he,id:u,prefix:U,showSearch:de,autoClearSearchValue:H,mode:w,activeDescendantId:D,tagRender:A,values:x,open:Qe,onToggleOpen:qe,activeValue:B,searchValue:_e,onSearch:bt,onSearchSubmit:st,onRemove:$t,tokenWithEnter:Je,onInputBlur:Ht}))),fr;return Ye?fr=ur:fr=reactExports.createElement("div",_extends$3({className:tr},le,{ref:Ee,onMouseDown:ut,onKeyDown:Ut,onKeyUp:_t,onFocus:lt,onBlur:at}),reactExports.createElement(Polite,{visible:Ne&&!Qe,values:x}),ur,jt,Vt&&rr),reactExports.createElement(BaseSelectContext.Provider,{value:Nt},fr)}),OptGroup=function a(){return null};OptGroup.isSelectOptGroup=!0;var Option=function a(){return null};Option.isSelectOption=!0;var Filler=reactExports.forwardRef(function(a,s){var c=a.height,u=a.offsetY,d=a.offsetX,p=a.children,v=a.prefixCls,A=a.onInnerResize,b=a.innerProps,g=a.rtl,x=a.extra,y={},f={display:"flex",flexDirection:"column"};return u!==void 0&&(y={height:c,position:"relative",overflow:"hidden"},f=_objectSpread2$1(_objectSpread2$1({},f),{},_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a({transform:"translateY(".concat(u,"px)")},g?"marginRight":"marginLeft",-d),"position","absolute"),"left",0),"right",0),"top",0))),reactExports.createElement("div",{style:y},reactExports.createElement(RefResizeObserver,{onResize:function(C){var S=C.offsetHeight;S&&A&&A()}},reactExports.createElement("div",_extends$3({style:f,className:classnames(_defineProperty$a({},"".concat(v,"-holder-inner"),v)),ref:s},b),p,x)))});Filler.displayName="Filler";function Item$2(a){var s=a.children,c=a.setRef,u=reactExports.useCallback(function(d){c(d)},[]);return reactExports.cloneElement(s,{ref:u})}function useChildren$1(a,s,c,u,d,p,v,A){var b=A.getKey;return a.slice(s,c+1).map(function(g,x){var y=s+x,f=v(g,y,{style:{width:u},offsetX:d}),m=b(g);return reactExports.createElement(Item$2,{key:m,setRef:function(S){return p(g,S)}},f)})}function findListDiffIndex(a,s,c){var u=a.length,d=s.length,p,v;if(u===0&&d===0)return null;u<d?(p=a,v=s):(p=s,v=a);var A={__EMPTY_ITEM__:!0};function b(C){return C!==void 0?c(C):A}for(var g=null,x=Math.abs(u-d)!==1,y=0;y<v.length;y+=1){var f=b(p[y]),m=b(v[y]);if(f!==m){g=y,x=x||f!==b(v[y+1]);break}}return g===null?null:{index:g,multiple:x}}function useDiffItem(a,s,c){var u=reactExports.useState(a),d=_slicedToArray$e(u,2),p=d[0],v=d[1],A=reactExports.useState(null),b=_slicedToArray$e(A,2),g=b[0],x=b[1];return reactExports.useEffect(function(){var y=findListDiffIndex(p||[],a||[],s);(y==null?void 0:y.index)!==void 0&&x(a[y.index]),v(a)},[a]),[g]}var isFF=(typeof navigator>"u"?"undefined":_typeof$h(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const useOriginScroll=function(a,s,c,u){var d=reactExports.useRef(!1),p=reactExports.useRef(null);function v(){clearTimeout(p.current),d.current=!0,p.current=setTimeout(function(){d.current=!1},50)}var A=reactExports.useRef({top:a,bottom:s,left:c,right:u});return A.current.top=a,A.current.bottom=s,A.current.left=c,A.current.right=u,function(b,g){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,y=b?g<0&&A.current.left||g>0&&A.current.right:g<0&&A.current.top||g>0&&A.current.bottom;return x&&y?(clearTimeout(p.current),d.current=!1):(!y||d.current)&&v(),!d.current&&y}};function useFrameWheel(a,s,c,u,d,p,v){var A=reactExports.useRef(0),b=reactExports.useRef(null),g=reactExports.useRef(null),x=reactExports.useRef(!1),y=useOriginScroll(s,c,u,d);function f(P,$){if(wrapperRaf.cancel(b.current),!y(!1,$)){var _=P;if(!_._virtualHandled)_._virtualHandled=!0;else return;A.current+=$,g.current=$,isFF||_.preventDefault(),b.current=wrapperRaf(function(){var E=x.current?10:1;v(A.current*E,!1),A.current=0})}}function m(P,$){v($,!0),isFF||P.preventDefault()}var C=reactExports.useRef(null),S=reactExports.useRef(null);function w(P){if(a){wrapperRaf.cancel(S.current),S.current=wrapperRaf(function(){C.current=null},2);var $=P.deltaX,_=P.deltaY,E=P.shiftKey,R=$,T=_;(C.current==="sx"||!C.current&&E&&_&&!$)&&(R=_,T=0,C.current="sx");var B=Math.abs(R),M=Math.abs(T);C.current===null&&(C.current=p&&B>M?"x":"y"),C.current==="y"?f(P,T):m(P,R)}}function I(P){a&&(x.current=P.detail===g.current)}return[w,I]}function useGetSize(a,s,c,u){var d=reactExports.useMemo(function(){return[new Map,[]]},[a,c.id,u]),p=_slicedToArray$e(d,2),v=p[0],A=p[1],b=function(x){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,f=v.get(x),m=v.get(y);if(f===void 0||m===void 0)for(var C=a.length,S=A.length;S<C;S+=1){var w,I=a[S],P=s(I);v.set(P,S);var $=(w=c.get(P))!==null&&w!==void 0?w:u;if(A[S]=(A[S-1]||0)+$,P===x&&(f=S),P===y&&(m=S),f!==void 0&&m!==void 0)break}return{top:A[f-1]||0,bottom:A[m]}};return b}var CacheMap=function(){function a(){_classCallCheck$1(this,a),_defineProperty$a(this,"maps",void 0),_defineProperty$a(this,"id",0),_defineProperty$a(this,"diffKeys",new Set),this.maps=Object.create(null)}return _createClass$1(a,[{key:"set",value:function(c,u){this.maps[c]=u,this.id+=1,this.diffKeys.add(c)}},{key:"get",value:function(c){return this.maps[c]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),a}();function parseNumber(a){var s=parseFloat(a);return isNaN(s)?0:s}function useHeights(a,s,c){var u=reactExports.useState(0),d=_slicedToArray$e(u,2),p=d[0],v=d[1],A=reactExports.useRef(new Map),b=reactExports.useRef(new CacheMap),g=reactExports.useRef(0);function x(){g.current+=1}function y(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;x();var C=function(){var I=!1;A.current.forEach(function(P,$){if(P&&P.offsetParent){var _=P.offsetHeight,E=getComputedStyle(P),R=E.marginTop,T=E.marginBottom,B=parseNumber(R),M=parseNumber(T),D=_+B+M;b.current.get($)!==D&&(b.current.set($,D),I=!0)}}),I&&v(function(P){return P+1})};if(m)C();else{g.current+=1;var S=g.current;Promise.resolve().then(function(){S===g.current&&C()})}}function f(m,C){var S=a(m);A.current.get(S),C?(A.current.set(S,C),y()):A.current.delete(S)}return reactExports.useEffect(function(){return x},[]),[f,y,b.current,p]}var SMOOTH_PTG=14/15;function useMobileTouchMove(a,s,c){var u=reactExports.useRef(!1),d=reactExports.useRef(0),p=reactExports.useRef(0),v=reactExports.useRef(null),A=reactExports.useRef(null),b,g=function(m){if(u.current){var C=Math.ceil(m.touches[0].pageX),S=Math.ceil(m.touches[0].pageY),w=d.current-C,I=p.current-S,P=Math.abs(w)>Math.abs(I);P?d.current=C:p.current=S;var $=c(P,P?w:I,!1,m);$&&m.preventDefault(),clearInterval(A.current),$&&(A.current=setInterval(function(){P?w*=SMOOTH_PTG:I*=SMOOTH_PTG;var _=Math.floor(P?w:I);(!c(P,_,!0)||Math.abs(_)<=.1)&&clearInterval(A.current)},16))}},x=function(){u.current=!1,b()},y=function(m){b(),m.touches.length===1&&!u.current&&(u.current=!0,d.current=Math.ceil(m.touches[0].pageX),p.current=Math.ceil(m.touches[0].pageY),v.current=m.target,v.current.addEventListener("touchmove",g,{passive:!1}),v.current.addEventListener("touchend",x,{passive:!0}))};b=function(){v.current&&(v.current.removeEventListener("touchmove",g),v.current.removeEventListener("touchend",x))},useLayoutEffect$1(function(){return a&&s.current.addEventListener("touchstart",y,{passive:!0}),function(){var f;(f=s.current)===null||f===void 0||f.removeEventListener("touchstart",y),b(),clearInterval(A.current)}},[a])}function smoothScrollOffset(a){return Math.floor(Math.pow(a,.5))}function getPageXY(a,s){var c="touches"in a?a.touches[0]:a;return c[s?"pageX":"pageY"]-window[s?"scrollX":"scrollY"]}function useScrollDrag(a,s,c){reactExports.useEffect(function(){var u=s.current;if(a&&u){var d=!1,p,v,A=function(){wrapperRaf.cancel(p)},b=function f(){A(),p=wrapperRaf(function(){c(v),f()})},g=function(m){if(!m.target.draggable){var C=m;C._virtualHandled||(C._virtualHandled=!0,d=!0)}},x=function(){d=!1,A()},y=function(m){if(d){var C=getPageXY(m,!1),S=u.getBoundingClientRect(),w=S.top,I=S.bottom;if(C<=w){var P=w-C;v=-smoothScrollOffset(P),b()}else if(C>=I){var $=C-I;v=smoothScrollOffset($),b()}else A()}};return u.addEventListener("mousedown",g),u.ownerDocument.addEventListener("mouseup",x),u.ownerDocument.addEventListener("mousemove",y),function(){u.removeEventListener("mousedown",g),u.ownerDocument.removeEventListener("mouseup",x),u.ownerDocument.removeEventListener("mousemove",y),A()}}},[a])}var MAX_TIMES=10;function useScrollTo$1(a,s,c,u,d,p,v,A){var b=reactExports.useRef(),g=reactExports.useState(null),x=_slicedToArray$e(g,2),y=x[0],f=x[1];return useLayoutEffect$1(function(){if(y&&y.times<MAX_TIMES){if(!a.current){f(function(k){return _objectSpread2$1({},k)});return}p();var m=y.targetAlign,C=y.originAlign,S=y.index,w=y.offset,I=a.current.clientHeight,P=!1,$=m,_=null;if(I){for(var E=m||C,R=0,T=0,B=0,M=Math.min(s.length-1,S),D=0;D<=M;D+=1){var O=d(s[D]);T=R;var H=c.get(O);B=T+(H===void 0?u:H),R=B}for(var j=E==="top"?w:I-w,Q=M;Q>=0;Q-=1){var L=d(s[Q]),F=c.get(L);if(F===void 0){P=!0;break}if(j-=F,j<=0)break}switch(E){case"top":_=T-w;break;case"bottom":_=B-I+w;break;default:{var U=a.current.scrollTop,N=U+I;T<U?$="top":B>N&&($="bottom")}}_!==null&&v(_),_!==y.lastTop&&(P=!0)}P&&f(_objectSpread2$1(_objectSpread2$1({},y),{},{times:y.times+1,targetAlign:$,lastTop:_}))}},[y,a.current]),function(m){if(m==null){A();return}if(wrapperRaf.cancel(b.current),typeof m=="number")v(m);else if(m&&_typeof$h(m)==="object"){var C,S=m.align;"index"in m?C=m.index:C=s.findIndex(function(P){return d(P)===m.key});var w=m.offset,I=w===void 0?0:w;f({times:0,index:C,offset:I,originAlign:S})}}}var ScrollBar=reactExports.forwardRef(function(a,s){var c=a.prefixCls,u=a.rtl,d=a.scrollOffset,p=a.scrollRange,v=a.onStartMove,A=a.onStopMove,b=a.onScroll,g=a.horizontal,x=a.spinSize,y=a.containerSize,f=a.style,m=a.thumbStyle,C=a.showScrollBar,S=reactExports.useState(!1),w=_slicedToArray$e(S,2),I=w[0],P=w[1],$=reactExports.useState(null),_=_slicedToArray$e($,2),E=_[0],R=_[1],T=reactExports.useState(null),B=_slicedToArray$e(T,2),M=B[0],D=B[1],O=!u,H=reactExports.useRef(),j=reactExports.useRef(),Q=reactExports.useState(C),L=_slicedToArray$e(Q,2),F=L[0],U=L[1],N=reactExports.useRef(),k=function(){C===!0||C===!1||(clearTimeout(N.current),U(!0),N.current=setTimeout(function(){U(!1)},3e3))},W=p-y||0,J=y-x||0,q=reactExports.useMemo(function(){if(d===0||W===0)return 0;var ie=d/W;return ie*J},[d,W,J]),Y=function(ce){ce.stopPropagation(),ce.preventDefault()},Z=reactExports.useRef({top:q,dragging:I,pageY:E,startTop:M});Z.current={top:q,dragging:I,pageY:E,startTop:M};var ee=function(ce){P(!0),R(getPageXY(ce,g)),D(Z.current.top),v(),ce.stopPropagation(),ce.preventDefault()};reactExports.useEffect(function(){var ie=function(be){be.preventDefault()},ce=H.current,ge=j.current;return ce.addEventListener("touchstart",ie,{passive:!1}),ge.addEventListener("touchstart",ee,{passive:!1}),function(){ce.removeEventListener("touchstart",ie),ge.removeEventListener("touchstart",ee)}},[]);var re=reactExports.useRef();re.current=W;var ae=reactExports.useRef();ae.current=J,reactExports.useEffect(function(){if(I){var ie,ce=function(be){var me=Z.current,fe=me.dragging,se=me.pageY,oe=me.startTop;wrapperRaf.cancel(ie);var de=H.current.getBoundingClientRect(),le=y/(g?de.width:de.height);if(fe){var xe=(getPageXY(be,g)-se)*le,Ce=oe;!O&&g?Ce-=xe:Ce+=xe;var $e=re.current,we=ae.current,Ee=we?Ce/we:0,Ae=Math.ceil(Ee*$e);Ae=Math.max(Ae,0),Ae=Math.min(Ae,$e),ie=wrapperRaf(function(){b(Ae,g)})}},ge=function(){P(!1),A()};return window.addEventListener("mousemove",ce,{passive:!0}),window.addEventListener("touchmove",ce,{passive:!0}),window.addEventListener("mouseup",ge,{passive:!0}),window.addEventListener("touchend",ge,{passive:!0}),function(){window.removeEventListener("mousemove",ce),window.removeEventListener("touchmove",ce),window.removeEventListener("mouseup",ge),window.removeEventListener("touchend",ge),wrapperRaf.cancel(ie)}}},[I]),reactExports.useEffect(function(){return k(),function(){clearTimeout(N.current)}},[d]),reactExports.useImperativeHandle(s,function(){return{delayHidden:k}});var V="".concat(c,"-scrollbar"),K={position:"absolute",visibility:F?null:"hidden"},te={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return g?(K.height=8,K.left=0,K.right=0,K.bottom=0,te.height="100%",te.width=x,O?te.left=q:te.right=q):(K.width=8,K.top=0,K.bottom=0,O?K.right=0:K.left=0,te.width="100%",te.height=x,te.top=q),reactExports.createElement("div",{ref:H,className:classnames(V,_defineProperty$a(_defineProperty$a(_defineProperty$a({},"".concat(V,"-horizontal"),g),"".concat(V,"-vertical"),!g),"".concat(V,"-visible"),F)),style:_objectSpread2$1(_objectSpread2$1({},K),f),onMouseDown:Y,onMouseMove:k},reactExports.createElement("div",{ref:j,className:classnames("".concat(V,"-thumb"),_defineProperty$a({},"".concat(V,"-thumb-moving"),I)),style:_objectSpread2$1(_objectSpread2$1({},te),m),onMouseDown:ee}))}),MIN_SIZE=20;function getSpinSize(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=a/s*a;return isNaN(c)&&(c=0),c=Math.max(c,MIN_SIZE),Math.floor(c)}var _excluded$N=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],EMPTY_DATA$1=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function RawList(a,s){var c=a.prefixCls,u=c===void 0?"rc-virtual-list":c,d=a.className,p=a.height,v=a.itemHeight,A=a.fullHeight,b=A===void 0?!0:A,g=a.style,x=a.data,y=a.children,f=a.itemKey,m=a.virtual,C=a.direction,S=a.scrollWidth,w=a.component,I=w===void 0?"div":w,P=a.onScroll,$=a.onVirtualScroll,_=a.onVisibleChange,E=a.innerProps,R=a.extraRender,T=a.styles,B=a.showScrollBar,M=B===void 0?"optional":B,D=_objectWithoutProperties$2(a,_excluded$N),O=reactExports.useCallback(function(St){return typeof f=="function"?f(St):St==null?void 0:St[f]},[f]),H=useHeights(O),j=_slicedToArray$e(H,4),Q=j[0],L=j[1],F=j[2],U=j[3],N=!!(m!==!1&&p&&v),k=reactExports.useMemo(function(){return Object.values(F.maps).reduce(function(St,lt){return St+lt},0)},[F.id,F.maps]),W=N&&x&&(Math.max(v*x.length,k)>p||!!S),J=C==="rtl",q=classnames(u,_defineProperty$a({},"".concat(u,"-rtl"),J),d),Y=x||EMPTY_DATA$1,Z=reactExports.useRef(),ee=reactExports.useRef(),re=reactExports.useRef(),ae=reactExports.useState(0),V=_slicedToArray$e(ae,2),K=V[0],te=V[1],ie=reactExports.useState(0),ce=_slicedToArray$e(ie,2),ge=ce[0],Se=ce[1],be=reactExports.useState(!1),me=_slicedToArray$e(be,2),fe=me[0],se=me[1],oe=function(){se(!0)},de=function(){se(!1)},le={getKey:O};function xe(St){te(function(lt){var at;typeof St=="function"?at=St(lt):at=St;var rt=Ge(at);return Z.current.scrollTop=rt,rt})}var Ce=reactExports.useRef({start:0,end:Y.length}),$e=reactExports.useRef(),we=useDiffItem(Y,O),Ee=_slicedToArray$e(we,1),Ae=Ee[0];$e.current=Ae;var pe=reactExports.useMemo(function(){if(!N)return{scrollHeight:void 0,start:0,end:Y.length-1,offset:void 0};if(!W){var St;return{scrollHeight:((St=ee.current)===null||St===void 0?void 0:St.offsetHeight)||0,start:0,end:Y.length-1,offset:void 0}}for(var lt=0,at,rt,ut,xt=Y.length,Rt=0;Rt<xt;Rt+=1){var It=Y[Rt],ht=O(It),wt=F.get(ht),Nt=lt+(wt===void 0?v:wt);Nt>=K&&at===void 0&&(at=Rt,rt=lt),Nt>K+p&&ut===void 0&&(ut=Rt),lt=Nt}return at===void 0&&(at=0,rt=0,ut=Math.ceil(p/v)),ut===void 0&&(ut=Y.length-1),ut=Math.min(ut+1,Y.length-1),{scrollHeight:lt,start:at,end:ut,offset:rt}},[W,N,K,Y,U,p]),he=pe.scrollHeight,Ie=pe.start,ye=pe.end,Pe=pe.offset;Ce.current.start=Ie,Ce.current.end=ye,reactExports.useLayoutEffect(function(){var St=F.getRecord();if(St.size===1){var lt=Array.from(St)[0],at=Y[Ie];if(at){var rt=O(at);if(rt===lt){var ut=F.get(lt),xt=ut-v;xe(function(Rt){return Rt+xt})}}}F.resetRecord()},[he]);var Le=reactExports.useState({width:0,height:p}),Ne=_slicedToArray$e(Le,2),Me=Ne[0],Fe=Ne[1],_e=function(lt){Fe({width:lt.offsetWidth,height:lt.offsetHeight})},je=reactExports.useRef(),Ye=reactExports.useRef(),Te=reactExports.useMemo(function(){return getSpinSize(Me.width,S)},[Me.width,S]),ke=reactExports.useMemo(function(){return getSpinSize(Me.height,he)},[Me.height,he]),De=he-p,Re=reactExports.useRef(De);Re.current=De;function Ge(St){var lt=St;return Number.isNaN(Re.current)||(lt=Math.min(lt,Re.current)),lt=Math.max(lt,0),lt}var Ve=K<=0,Xe=K>=De,We=ge<=0,ze=ge>=S,Qe=useOriginScroll(Ve,Xe,We,ze),et=function(){return{x:J?-ge:ge,y:K}},Ze=reactExports.useRef(et()),qe=useEvent(function(St){if($){var lt=_objectSpread2$1(_objectSpread2$1({},et()),St);(Ze.current.x!==lt.x||Ze.current.y!==lt.y)&&($(lt),Ze.current=lt)}});function Je(St,lt){var at=St;lt?(reactDomExports.flushSync(function(){Se(at)}),qe()):xe(at)}function ot(St){var lt=St.currentTarget.scrollTop;lt!==K&&xe(lt),P==null||P(St),qe()}var nt=function(lt){var at=lt,rt=S?S-Me.width:0;return at=Math.max(at,0),at=Math.min(at,rt),at},ct=useEvent(function(St,lt){lt?(reactDomExports.flushSync(function(){Se(function(at){var rt=at+(J?-St:St);return nt(rt)})}),qe()):xe(function(at){var rt=at+St;return rt})}),bt=useFrameWheel(N,Ve,Xe,We,ze,!!S,ct),st=_slicedToArray$e(bt,2),gt=st[0],ft=st[1];useMobileTouchMove(N,Z,function(St,lt,at,rt){var ut=rt;return Qe(St,lt,at)?!1:!ut||!ut._virtualHandled?(ut&&(ut._virtualHandled=!0),gt({preventDefault:function(){},deltaX:St?lt:0,deltaY:St?0:lt}),!0):!1}),useScrollDrag(W,Z,function(St){xe(function(lt){return lt+St})}),useLayoutEffect$1(function(){function St(at){var rt=Ve&&at.detail<0,ut=Xe&&at.detail>0;N&&!rt&&!ut&&at.preventDefault()}var lt=Z.current;return lt.addEventListener("wheel",gt,{passive:!1}),lt.addEventListener("DOMMouseScroll",ft,{passive:!0}),lt.addEventListener("MozMousePixelScroll",St,{passive:!1}),function(){lt.removeEventListener("wheel",gt),lt.removeEventListener("DOMMouseScroll",ft),lt.removeEventListener("MozMousePixelScroll",St)}},[N,Ve,Xe]),useLayoutEffect$1(function(){if(S){var St=nt(ge);Se(St),qe({x:St})}},[Me.width,S]);var pt=function(){var lt,at;(lt=je.current)===null||lt===void 0||lt.delayHidden(),(at=Ye.current)===null||at===void 0||at.delayHidden()},At=useScrollTo$1(Z,Y,F,v,O,function(){return L(!0)},xe,pt);reactExports.useImperativeHandle(s,function(){return{nativeElement:re.current,getScrollInfo:et,scrollTo:function(lt){function at(rt){return rt&&_typeof$h(rt)==="object"&&("left"in rt||"top"in rt)}at(lt)?(lt.left!==void 0&&Se(nt(lt.left)),At(lt.top)):At(lt)}}}),useLayoutEffect$1(function(){if(_){var St=Y.slice(Ie,ye+1);_(St,Y)}},[Ie,ye,Y]);var Bt=useGetSize(Y,O,F,v),Ut=R==null?void 0:R({start:Ie,end:ye,virtual:W,offsetX:ge,offsetY:Pe,rtl:J,getSize:Bt}),_t=useChildren$1(Y,Ie,ye,S,ge,Q,y,le),$t=null;p&&($t=_objectSpread2$1(_defineProperty$a({},b?"height":"maxHeight",p),ScrollStyle),N&&($t.overflowY="hidden",S&&($t.overflowX="hidden"),fe&&($t.pointerEvents="none")));var Ht={};return J&&(Ht.dir="rtl"),reactExports.createElement("div",_extends$3({ref:re,style:_objectSpread2$1(_objectSpread2$1({},g),{},{position:"relative"}),className:q},Ht,D),reactExports.createElement(RefResizeObserver,{onResize:_e},reactExports.createElement(I,{className:"".concat(u,"-holder"),style:$t,ref:Z,onScroll:ot,onMouseEnter:pt},reactExports.createElement(Filler,{prefixCls:u,height:he,offsetX:ge,offsetY:Pe,scrollWidth:S,onInnerResize:L,ref:ee,innerProps:E,rtl:J,extra:Ut},_t))),W&&he>p&&reactExports.createElement(ScrollBar,{ref:je,prefixCls:u,scrollOffset:K,scrollRange:he,rtl:J,onScroll:Je,onStartMove:oe,onStopMove:de,spinSize:ke,containerSize:Me.height,style:T==null?void 0:T.verticalScrollBar,thumbStyle:T==null?void 0:T.verticalScrollBarThumb,showScrollBar:M}),W&&S>Me.width&&reactExports.createElement(ScrollBar,{ref:Ye,prefixCls:u,scrollOffset:ge,scrollRange:S,rtl:J,onScroll:Je,onStartMove:oe,onStopMove:de,spinSize:Te,containerSize:Me.width,horizontal:!0,style:T==null?void 0:T.horizontalScrollBar,thumbStyle:T==null?void 0:T.horizontalScrollBarThumb,showScrollBar:M}))}var List=reactExports.forwardRef(RawList);List.displayName="List";function isPlatformMac(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _excluded$M=["disabled","title","children","style","className"];function isTitleType(a){return typeof a=="string"||typeof a=="number"}var OptionList$1=function a(s,c){var u=useBaseProps(),d=u.prefixCls,p=u.id,v=u.open,A=u.multiple,b=u.mode,g=u.searchValue,x=u.toggleOpen,y=u.notFoundContent,f=u.onPopupScroll,m=reactExports.useContext(SelectContext),C=m.maxCount,S=m.flattenOptions,w=m.onActiveValue,I=m.defaultActiveFirstOption,P=m.onSelect,$=m.menuItemSelectedIcon,_=m.rawValues,E=m.fieldNames,R=m.virtual,T=m.direction,B=m.listHeight,M=m.listItemHeight,D=m.optionRender,O="".concat(d,"-item"),H=useMemo(function(){return S},[v,S],function(ie,ce){return ce[0]&&ie[1]!==ce[1]}),j=reactExports.useRef(null),Q=reactExports.useMemo(function(){return A&&isValidCount(C)&&(_==null?void 0:_.size)>=C},[A,C,_==null?void 0:_.size]),L=function(ce){ce.preventDefault()},F=function(ce){var ge;(ge=j.current)===null||ge===void 0||ge.scrollTo(typeof ce=="number"?{index:ce}:ce)},U=reactExports.useCallback(function(ie){return b==="combobox"?!1:_.has(ie)},[b,_toConsumableArray$e(_).toString(),_.size]),N=function(ce){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Se=H.length,be=0;be<Se;be+=1){var me=(ce+be*ge+Se)%Se,fe=H[me]||{},se=fe.group,oe=fe.data;if(!se&&!(oe!=null&&oe.disabled)&&(U(oe.value)||!Q))return me}return-1},k=reactExports.useState(function(){return N(0)}),W=_slicedToArray$e(k,2),J=W[0],q=W[1],Y=function(ce){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;q(ce);var Se={source:ge?"keyboard":"mouse"},be=H[ce];if(!be){w(null,-1,Se);return}w(be.value,ce,Se)};reactExports.useEffect(function(){Y(I!==!1?N(0):-1)},[H.length,g]);var Z=reactExports.useCallback(function(ie){return b==="combobox"?String(ie).toLowerCase()===g.toLowerCase():_.has(ie)},[b,g,_toConsumableArray$e(_).toString(),_.size]);reactExports.useEffect(function(){var ie=setTimeout(function(){if(!A&&v&&_.size===1){var ge=Array.from(_)[0],Se=H.findIndex(function(be){var me=be.data;return me.value===ge});Se!==-1&&(Y(Se),F(Se))}});if(v){var ce;(ce=j.current)===null||ce===void 0||ce.scrollTo(void 0)}return function(){return clearTimeout(ie)}},[v,g]);var ee=function(ce){ce!==void 0&&P(ce,{selected:!_.has(ce)}),A||x(!1)};if(reactExports.useImperativeHandle(c,function(){return{onKeyDown:function(ce){var ge=ce.which,Se=ce.ctrlKey;switch(ge){case KeyCode.N:case KeyCode.P:case KeyCode.UP:case KeyCode.DOWN:{var be=0;if(ge===KeyCode.UP?be=-1:ge===KeyCode.DOWN?be=1:isPlatformMac()&&Se&&(ge===KeyCode.N?be=1:ge===KeyCode.P&&(be=-1)),be!==0){var me=N(J+be,be);F(me),Y(me,!0)}break}case KeyCode.TAB:case KeyCode.ENTER:{var fe,se=H[J];se&&!(se!=null&&(fe=se.data)!==null&&fe!==void 0&&fe.disabled)&&!Q?ee(se.value):ee(void 0),v&&ce.preventDefault();break}case KeyCode.ESC:x(!1),v&&ce.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ce){F(ce)}}}),H.length===0)return reactExports.createElement("div",{role:"listbox",id:"".concat(p,"_list"),className:"".concat(O,"-empty"),onMouseDown:L},y);var re=Object.keys(E).map(function(ie){return E[ie]}),ae=function(ce){return ce.label};function V(ie,ce){var ge=ie.group;return{role:ge?"presentation":"option",id:"".concat(p,"_list_").concat(ce)}}var K=function(ce){var ge=H[ce];if(!ge)return null;var Se=ge.data||{},be=Se.value,me=ge.group,fe=pickAttrs(Se,!0),se=ae(ge);return ge?reactExports.createElement("div",_extends$3({"aria-label":typeof se=="string"&&!me?se:null},fe,{key:ce},V(ge,ce),{"aria-selected":Z(be)}),be):null},te={role:"listbox",id:"".concat(p,"_list")};return reactExports.createElement(reactExports.Fragment,null,R&&reactExports.createElement("div",_extends$3({},te,{style:{height:0,width:0,overflow:"hidden"}}),K(J-1),K(J),K(J+1)),reactExports.createElement(List,{itemKey:"key",ref:j,data:H,height:B,itemHeight:M,fullHeight:!1,onMouseDown:L,onScroll:f,virtual:R,direction:T,innerProps:R?null:te},function(ie,ce){var ge=ie.group,Se=ie.groupOption,be=ie.data,me=ie.label,fe=ie.value,se=be.key;if(ge){var oe,de=(oe=be.title)!==null&&oe!==void 0?oe:isTitleType(me)?me.toString():void 0;return reactExports.createElement("div",{className:classnames(O,"".concat(O,"-group"),be.className),title:de},me!==void 0?me:se)}var le=be.disabled,xe=be.title;be.children;var Ce=be.style,$e=be.className,we=_objectWithoutProperties$2(be,_excluded$M),Ee=omit(we,re),Ae=U(fe),pe=le||!Ae&&Q,he="".concat(O,"-option"),Ie=classnames(O,he,$e,_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a({},"".concat(he,"-grouped"),Se),"".concat(he,"-active"),J===ce&&!pe),"".concat(he,"-disabled"),pe),"".concat(he,"-selected"),Ae)),ye=ae(ie),Pe=!$||typeof $=="function"||Ae,Le=typeof ye=="number"?ye:ye||fe,Ne=isTitleType(Le)?Le.toString():void 0;return xe!==void 0&&(Ne=xe),reactExports.createElement("div",_extends$3({},pickAttrs(Ee),R?{}:V(ie,ce),{"aria-selected":Z(fe),className:Ie,title:Ne,onMouseMove:function(){J===ce||pe||Y(ce)},onClick:function(){pe||ee(fe)},style:Ce}),reactExports.createElement("div",{className:"".concat(he,"-content")},typeof D=="function"?D(ie,{index:ce}):Le),reactExports.isValidElement($)||Ae,Pe&&reactExports.createElement(TransBtn,{className:"".concat(O,"-option-state"),customizeIcon:$,customizeIconProps:{value:fe,disabled:pe,isSelected:Ae}},Ae?"✓":null))}))},RefOptionList$1=reactExports.forwardRef(OptionList$1);const useCache$1=function(a,s){var c=reactExports.useRef({values:new Map,options:new Map}),u=reactExports.useMemo(function(){var p=c.current,v=p.values,A=p.options,b=a.map(function(y){if(y.label===void 0){var f;return _objectSpread2$1(_objectSpread2$1({},y),{},{label:(f=v.get(y.value))===null||f===void 0?void 0:f.label})}return y}),g=new Map,x=new Map;return b.forEach(function(y){g.set(y.value,y),x.set(y.value,s.get(y.value)||A.get(y.value))}),c.current.values=g,c.current.options=x,b},[a,s]),d=reactExports.useCallback(function(p){return s.get(p)||c.current.options.get(p)},[s]);return[u,d]};function includes(a,s){return toArray$6(a).join("").toUpperCase().includes(s)}const useFilterOptions=function(a,s,c,u,d){return reactExports.useMemo(function(){if(!c||u===!1)return a;var p=s.options,v=s.label,A=s.value,b=[],g=typeof u=="function",x=c.toUpperCase(),y=g?u:function(m,C){return d?includes(C[d],x):C[p]?includes(C[v!=="children"?v:"label"],x):includes(C[A],x)},f=g?function(m){return injectPropsWithOption(m)}:function(m){return m};return a.forEach(function(m){if(m[p]){var C=y(c,f(m));if(C)b.push(m);else{var S=m[p].filter(function(w){return y(c,f(w))});S.length&&b.push(_objectSpread2$1(_objectSpread2$1({},m),{},_defineProperty$a({},p,S)))}return}y(c,f(m))&&b.push(m)}),b},[a,u,d,c,s])};var uuid$2=0,isBrowserClient$1=canUseDom$1();function getUUID$1(){var a;return isBrowserClient$1?(a=uuid$2,uuid$2+=1):a="TEST_OR_SSR",a}function useId$1(a){var s=reactExports.useState(),c=_slicedToArray$e(s,2),u=c[0],d=c[1];return reactExports.useEffect(function(){d("rc_select_".concat(getUUID$1()))},[]),a||u}var _excluded$L=["children","value"],_excluded2$b=["children"];function convertNodeToOption(a){var s=a,c=s.key,u=s.props,d=u.children,p=u.value,v=_objectWithoutProperties$2(u,_excluded$L);return _objectSpread2$1({key:c,value:p!==void 0?p:c,children:d},v)}function convertChildrenToData$1(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return toArray$8(a).map(function(c,u){if(!reactExports.isValidElement(c)||!c.type)return null;var d=c,p=d.type.isSelectOptGroup,v=d.key,A=d.props,b=A.children,g=_objectWithoutProperties$2(A,_excluded2$b);return s||!p?convertNodeToOption(c):_objectSpread2$1(_objectSpread2$1({key:"__RC_SELECT_GRP__".concat(v===null?u:v,"__"),label:v},g),{},{options:convertChildrenToData$1(b)})}).filter(function(c){return c})}var useOptions=function a(s,c,u,d,p){return reactExports.useMemo(function(){var v=s,A=!s;A&&(v=convertChildrenToData$1(c));var b=new Map,g=new Map,x=function(m,C,S){S&&typeof S=="string"&&m.set(C[S],C)},y=function f(m){for(var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=0;S<m.length;S+=1){var w=m[S];!w[u.options]||C?(b.set(w[u.value],w),x(g,w,u.label),x(g,w,d),x(g,w,p)):f(w[u.options],!0)}};return y(v),{options:v,valueOptions:b,labelOptions:g}},[s,c,u,d,p])};function useRefFunc$1(a){var s=reactExports.useRef();s.current=a;var c=reactExports.useCallback(function(){return s.current.apply(s,arguments)},[]);return c}var _excluded$K=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],OMIT_DOM_PROPS=["inputValue"];function isRawValue$1(a){return!a||_typeof$h(a)!=="object"}var Select$1=reactExports.forwardRef(function(a,s){var c=a.id,u=a.mode,d=a.prefixCls,p=d===void 0?"rc-select":d,v=a.backfill,A=a.fieldNames,b=a.inputValue,g=a.searchValue,x=a.onSearch,y=a.autoClearSearchValue,f=y===void 0?!0:y,m=a.onSelect,C=a.onDeselect,S=a.dropdownMatchSelectWidth,w=S===void 0?!0:S,I=a.filterOption,P=a.filterSort,$=a.optionFilterProp,_=a.optionLabelProp,E=a.options,R=a.optionRender,T=a.children,B=a.defaultActiveFirstOption,M=a.menuItemSelectedIcon,D=a.virtual,O=a.direction,H=a.listHeight,j=H===void 0?200:H,Q=a.listItemHeight,L=Q===void 0?20:Q,F=a.labelRender,U=a.value,N=a.defaultValue,k=a.labelInValue,W=a.onChange,J=a.maxCount,q=_objectWithoutProperties$2(a,_excluded$K),Y=useId$1(c),Z=isMultiple(u),ee=!!(!E&&T),re=reactExports.useMemo(function(){return I===void 0&&u==="combobox"?!1:I},[I,u]),ae=reactExports.useMemo(function(){return fillFieldNames$2(A,ee)},[JSON.stringify(A),ee]),V=useMergedState("",{value:g!==void 0?g:b,postState:function(Je){return Je||""}}),K=_slicedToArray$e(V,2),te=K[0],ie=K[1],ce=useOptions(E,T,ae,$,_),ge=ce.valueOptions,Se=ce.labelOptions,be=ce.options,me=reactExports.useCallback(function(qe){var Je=toArray$6(qe);return Je.map(function(ot){var nt,ct,bt,st,gt;if(isRawValue$1(ot))nt=ot;else{var ft;bt=ot.key,ct=ot.label,nt=(ft=ot.value)!==null&&ft!==void 0?ft:bt}var pt=ge.get(nt);if(pt){var At;ct===void 0&&(ct=pt==null?void 0:pt[_||ae.label]),bt===void 0&&(bt=(At=pt==null?void 0:pt.key)!==null&&At!==void 0?At:nt),st=pt==null?void 0:pt.disabled,gt=pt==null?void 0:pt.title}return{label:ct,value:nt,key:bt,disabled:st,title:gt}})},[ae,_,ge]),fe=useMergedState(N,{value:U}),se=_slicedToArray$e(fe,2),oe=se[0],de=se[1],le=reactExports.useMemo(function(){var qe,Je=Z&&oe===null?[]:oe,ot=me(Je);return u==="combobox"&&isComboNoValue((qe=ot[0])===null||qe===void 0?void 0:qe.value)?[]:ot},[oe,me,u,Z]),xe=useCache$1(le,ge),Ce=_slicedToArray$e(xe,2),$e=Ce[0],we=Ce[1],Ee=reactExports.useMemo(function(){if(!u&&$e.length===1){var qe=$e[0];if(qe.value===null&&(qe.label===null||qe.label===void 0))return[]}return $e.map(function(Je){var ot;return _objectSpread2$1(_objectSpread2$1({},Je),{},{label:(ot=typeof F=="function"?F(Je):Je.label)!==null&&ot!==void 0?ot:Je.value})})},[u,$e,F]),Ae=reactExports.useMemo(function(){return new Set($e.map(function(qe){return qe.value}))},[$e]);reactExports.useEffect(function(){if(u==="combobox"){var qe,Je=(qe=$e[0])===null||qe===void 0?void 0:qe.value;ie(hasValue(Je)?String(Je):"")}},[$e]);var pe=useRefFunc$1(function(qe,Je){var ot=Je??qe;return _defineProperty$a(_defineProperty$a({},ae.value,qe),ae.label,ot)}),he=reactExports.useMemo(function(){if(u!=="tags")return be;var qe=_toConsumableArray$e(be),Je=function(nt){return ge.has(nt)};return _toConsumableArray$e($e).sort(function(ot,nt){return ot.value<nt.value?-1:1}).forEach(function(ot){var nt=ot.value;Je(nt)||qe.push(pe(nt,ot.label))}),qe},[pe,be,ge,$e,u]),Ie=useFilterOptions(he,ae,te,re,$),ye=reactExports.useMemo(function(){return u!=="tags"||!te||Ie.some(function(qe){return qe[$||"value"]===te})||Ie.some(function(qe){return qe[ae.value]===te})?Ie:[pe(te)].concat(_toConsumableArray$e(Ie))},[pe,$,u,Ie,te,ae]),Pe=function qe(Je){var ot=_toConsumableArray$e(Je).sort(function(nt,ct){return P(nt,ct,{searchValue:te})});return ot.map(function(nt){return Array.isArray(nt.options)?_objectSpread2$1(_objectSpread2$1({},nt),{},{options:nt.options.length>0?qe(nt.options):nt.options}):nt})},Le=reactExports.useMemo(function(){return P?Pe(ye):ye},[ye,P,te]),Ne=reactExports.useMemo(function(){return flattenOptions(Le,{fieldNames:ae,childrenAsData:ee})},[Le,ae,ee]),Me=function(Je){var ot=me(Je);if(de(ot),W&&(ot.length!==$e.length||ot.some(function(bt,st){var gt;return((gt=$e[st])===null||gt===void 0?void 0:gt.value)!==(bt==null?void 0:bt.value)}))){var nt=k?ot:ot.map(function(bt){return bt.value}),ct=ot.map(function(bt){return injectPropsWithOption(we(bt.value))});W(Z?nt:nt[0],Z?ct:ct[0])}},Fe=reactExports.useState(null),_e=_slicedToArray$e(Fe,2),je=_e[0],Ye=_e[1],Te=reactExports.useState(0),ke=_slicedToArray$e(Te,2),De=ke[0],Re=ke[1],Ge=B!==void 0?B:u!=="combobox",Ve=reactExports.useCallback(function(qe,Je){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt=ot.source,ct=nt===void 0?"keyboard":nt;Re(Je),v&&u==="combobox"&&qe!==null&&ct==="keyboard"&&Ye(String(qe))},[v,u]),Xe=function(Je,ot,nt){var ct=function(){var $t,Ht=we(Je);return[k?{label:Ht==null?void 0:Ht[ae.label],value:Je,key:($t=Ht==null?void 0:Ht.key)!==null&&$t!==void 0?$t:Je}:Je,injectPropsWithOption(Ht)]};if(ot&&m){var bt=ct(),st=_slicedToArray$e(bt,2),gt=st[0],ft=st[1];m(gt,ft)}else if(!ot&&C&&nt!=="clear"){var pt=ct(),At=_slicedToArray$e(pt,2),Bt=At[0],Ut=At[1];C(Bt,Ut)}},We=useRefFunc$1(function(qe,Je){var ot,nt=Z?Je.selected:!0;nt?ot=Z?[].concat(_toConsumableArray$e($e),[qe]):[qe]:ot=$e.filter(function(ct){return ct.value!==qe}),Me(ot),Xe(qe,nt),u==="combobox"?Ye(""):(!isMultiple||f)&&(ie(""),Ye(""))}),ze=function(Je,ot){Me(Je);var nt=ot.type,ct=ot.values;(nt==="remove"||nt==="clear")&&ct.forEach(function(bt){Xe(bt.value,!1,nt)})},Qe=function(Je,ot){if(ie(Je),Ye(null),ot.source==="submit"){var nt=(Je||"").trim();if(nt){var ct=Array.from(new Set([].concat(_toConsumableArray$e(Ae),[nt])));Me(ct),Xe(nt,!0),ie("")}return}ot.source!=="blur"&&(u==="combobox"&&Me(Je),x==null||x(Je))},et=function(Je){var ot=Je;u!=="tags"&&(ot=Je.map(function(ct){var bt=Se.get(ct);return bt==null?void 0:bt.value}).filter(function(ct){return ct!==void 0}));var nt=Array.from(new Set([].concat(_toConsumableArray$e(Ae),_toConsumableArray$e(ot))));Me(nt),nt.forEach(function(ct){Xe(ct,!0)})},Ze=reactExports.useMemo(function(){var qe=D!==!1&&w!==!1;return _objectSpread2$1(_objectSpread2$1({},ce),{},{flattenOptions:Ne,onActiveValue:Ve,defaultActiveFirstOption:Ge,onSelect:We,menuItemSelectedIcon:M,rawValues:Ae,fieldNames:ae,virtual:qe,direction:O,listHeight:j,listItemHeight:L,childrenAsData:ee,maxCount:J,optionRender:R})},[J,ce,Ne,Ve,Ge,We,M,Ae,ae,D,w,O,j,L,ee,R]);return reactExports.createElement(SelectContext.Provider,{value:Ze},reactExports.createElement(BaseSelect,_extends$3({},q,{id:Y,prefixCls:p,ref:s,omitDomProps:OMIT_DOM_PROPS,mode:u,displayValues:Ee,onDisplayValuesChange:ze,direction:O,searchValue:te,onSearch:Qe,autoClearSearchValue:f,onSearchSplit:et,dropdownMatchSelectWidth:w,OptionList:RefOptionList$1,emptyOptions:!Ne.length,activeValue:je,activeDescendantId:"".concat(Y,"_list_").concat(De)})))}),TypedSelect=Select$1;TypedSelect.Option=Option,TypedSelect.OptGroup=OptGroup;function getStatusClassNames(a,s,c){return classnames({[`${a}-status-success`]:s==="success",[`${a}-status-warning`]:s==="warning",[`${a}-status-error`]:s==="error",[`${a}-status-validating`]:s==="validating",[`${a}-has-feedback`]:c})}const getMergedStatus=(a,s)=>s||a,Empty$1=()=>{const[,a]=useToken$1(),[s]=useLocale$1("Empty"),u=new FastColor(a.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return reactExports.createElement("svg",{style:u,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},reactExports.createElement("title",null,(s==null?void 0:s.description)||"Empty"),reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{transform:"translate(24 31.67)"},reactExports.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),reactExports.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),reactExports.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),reactExports.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),reactExports.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),reactExports.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),reactExports.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},reactExports.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),reactExports.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Simple=()=>{const[,a]=useToken$1(),[s]=useLocale$1("Empty"),{colorFill:c,colorFillTertiary:u,colorFillQuaternary:d,colorBgContainer:p}=a,{borderColor:v,shadowColor:A,contentColor:b}=reactExports.useMemo(()=>({borderColor:new FastColor(c).onBackground(p).toHexString(),shadowColor:new FastColor(u).onBackground(p).toHexString(),contentColor:new FastColor(d).onBackground(p).toHexString()}),[c,u,d,p]);return reactExports.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},reactExports.createElement("title",null,(s==null?void 0:s.description)||"Empty"),reactExports.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},reactExports.createElement("ellipse",{fill:A,cx:"32",cy:"33",rx:"32",ry:"7"}),reactExports.createElement("g",{fillRule:"nonzero",stroke:v},reactExports.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),reactExports.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:b}))))},genSharedEmptyStyle=a=>{const{componentCls:s,margin:c,marginXS:u,marginXL:d,fontSize:p,lineHeight:v}=a;return{[s]:{marginInline:u,fontSize:p,lineHeight:v,textAlign:"center",[`${s}-image`]:{height:a.emptyImgHeight,marginBottom:u,opacity:a.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${s}-description`]:{color:a.colorTextDescription},[`${s}-footer`]:{marginTop:c},"&-normal":{marginBlock:d,color:a.colorTextDescription,[`${s}-description`]:{color:a.colorTextDescription},[`${s}-image`]:{height:a.emptyImgHeightMD}},"&-small":{marginBlock:u,color:a.colorTextDescription,[`${s}-image`]:{height:a.emptyImgHeightSM}}}}},useStyle$t=genStyleHooks("Empty",a=>{const{componentCls:s,controlHeightLG:c,calc:u}=a,d=merge(a,{emptyImgCls:`${s}-img`,emptyImgHeight:u(c).mul(2.5).equal(),emptyImgHeightMD:c,emptyImgHeightSM:u(c).mul(.875).equal()});return[genSharedEmptyStyle(d)]});var __rest$Y=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const defaultEmptyImg=reactExports.createElement(Empty$1,null),simpleEmptyImg=reactExports.createElement(Simple,null),Empty=a=>{const{className:s,rootClassName:c,prefixCls:u,image:d=defaultEmptyImg,description:p,children:v,imageStyle:A,style:b,classNames:g,styles:x}=a,y=__rest$Y(a,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:f,direction:m,className:C,style:S,classNames:w,styles:I}=useComponentConfig("empty"),P=f("empty",u),[$,_,E]=useStyle$t(P),[R]=useLocale$1("Empty"),T=typeof p<"u"?p:R==null?void 0:R.description,B=typeof T=="string"?T:"empty";let M=null;return typeof d=="string"?M=reactExports.createElement("img",{alt:B,src:d}):M=d,$(reactExports.createElement("div",Object.assign({className:classnames(_,E,P,C,{[`${P}-normal`]:d===simpleEmptyImg,[`${P}-rtl`]:m==="rtl"},s,c,w.root,g==null?void 0:g.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},I.root),S),x==null?void 0:x.root),b)},y),reactExports.createElement("div",{className:classnames(`${P}-image`,w.image,g==null?void 0:g.image),style:Object.assign(Object.assign(Object.assign({},A),I.image),x==null?void 0:x.image)},M),T&&reactExports.createElement("div",{className:classnames(`${P}-description`,w.description,g==null?void 0:g.description),style:Object.assign(Object.assign({},I.description),x==null?void 0:x.description)},T),v&&reactExports.createElement("div",{className:classnames(`${P}-footer`,w.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign({},I.footer),x==null?void 0:x.footer)},v)))};Empty.PRESENTED_IMAGE_DEFAULT=defaultEmptyImg,Empty.PRESENTED_IMAGE_SIMPLE=simpleEmptyImg;const DefaultRenderEmpty=a=>{const{componentName:s}=a,{getPrefixCls:c}=reactExports.useContext(ConfigContext$1),u=c("empty");switch(s){case"Table":case"List":return React.createElement(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return React.createElement(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE,className:`${u}-small`});case"Table.filter":return null;default:return React.createElement(Empty,null)}},useVariant=function(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var u,d;const{variant:p,[a]:v}=reactExports.useContext(ConfigContext$1),A=reactExports.useContext(VariantContext),b=v==null?void 0:v.variant;let g;typeof s<"u"?g=s:c===!1?g="borderless":g=(d=(u=A??b)!==null&&u!==void 0?u:p)!==null&&d!==void 0?d:"outlined";const x=Variants.includes(g);return[g,x]},getBuiltInPlacements=a=>{const c={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:a==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},c),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},c),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},c),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},c),{points:["br","tr"],offset:[0,-4]})}};function mergedBuiltinPlacements(a,s){return a||getBuiltInPlacements(s)}const genItemStyle=a=>{const{optionHeight:s,optionFontSize:c,optionLineHeight:u,optionPadding:d}=a;return{position:"relative",display:"block",minHeight:s,padding:d,color:a.colorText,fontWeight:"normal",fontSize:c,lineHeight:u,boxSizing:"border-box"}},genSingleStyle$1=a=>{const{antCls:s,componentCls:c}=a,u=`${c}-item`,d=`&${s}-slide-up-enter${s}-slide-up-enter-active`,p=`&${s}-slide-up-appear${s}-slide-up-appear-active`,v=`&${s}-slide-up-leave${s}-slide-up-leave-active`,A=`${c}-dropdown-placement-`,b=`${u}-option-selected`;return[{[`${c}-dropdown`]:Object.assign(Object.assign({},resetComponent(a)),{position:"absolute",top:-9999,zIndex:a.zIndexPopup,boxSizing:"border-box",padding:a.paddingXXS,overflow:"hidden",fontSize:a.fontSize,fontVariant:"initial",backgroundColor:a.colorBgElevated,borderRadius:a.borderRadiusLG,outline:"none",boxShadow:a.boxShadowSecondary,[`
|
374
374
|
${d}${A}bottomLeft,
|
375
375
|
${p}${A}bottomLeft
|
376
376
|
`]:{animationName:slideUpIn},[`
|
@@ -538,7 +538,7 @@ html body {
|
|
538
538
|
${s}-jump-prev,
|
539
539
|
${s}-jump-next
|
540
540
|
`]:{display:"inline-block",minWidth:a.itemSize,height:a.itemSize,color:a.colorText,fontFamily:a.fontFamily,lineHeight:unit$1(a.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:a.borderRadius,cursor:"pointer",transition:`all ${a.motionDurationMid}`},[`${s}-prev, ${s}-next`]:{outline:0,button:{color:a.colorText,cursor:"pointer",userSelect:"none"},[`${s}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:a.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${unit$1(a.lineWidth)} ${a.lineType} transparent`,borderRadius:a.borderRadius,outline:"none",transition:`all ${a.motionDurationMid}`},[`&:hover ${s}-item-link`]:{backgroundColor:a.colorBgTextHover},[`&:active ${s}-item-link`]:{backgroundColor:a.colorBgTextActive},[`&${s}-disabled:hover`]:{[`${s}-item-link`]:{backgroundColor:"transparent"}}},[`${s}-slash`]:{marginInlineEnd:a.paginationSlashMarginInlineEnd,marginInlineStart:a.paginationSlashMarginInlineStart},[`${s}-options`]:{display:"inline-block",marginInlineStart:a.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:a.controlHeight,marginInlineStart:a.marginXS,lineHeight:unit$1(a.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},genBasicInputStyle(a)),genBaseOutlinedStyle(a,{borderColor:a.colorBorder,hoverBorderColor:a.colorPrimaryHover,activeBorderColor:a.colorPrimary,activeShadow:a.activeShadow})),{"&[disabled]":Object.assign({},genDisabledStyle(a)),width:a.calc(a.controlHeightLG).mul(1.25).equal(),height:a.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:a.marginXS,marginInlineEnd:a.marginXS})}}}},genPaginationItemStyle=a=>{const{componentCls:s}=a;return{[`${s}-item`]:{display:"inline-block",minWidth:a.itemSize,height:a.itemSize,marginInlineEnd:a.marginXS,fontFamily:a.fontFamily,lineHeight:unit$1(a.calc(a.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:a.itemBg,border:`${unit$1(a.lineWidth)} ${a.lineType} transparent`,borderRadius:a.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${unit$1(a.paginationItemPaddingInline)}`,color:a.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${s}-item-active)`]:{"&:hover":{transition:`all ${a.motionDurationMid}`,backgroundColor:a.colorBgTextHover},"&:active":{backgroundColor:a.colorBgTextActive}},"&-active":{fontWeight:a.fontWeightStrong,backgroundColor:a.itemActiveBg,borderColor:a.colorPrimary,a:{color:a.colorPrimary},"&:hover":{borderColor:a.colorPrimaryHover},"&:hover a":{color:a.colorPrimaryHover}}}}},genPaginationStyle$1=a=>{const{componentCls:s}=a;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(a)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${s}-total-text`]:{display:"inline-block",height:a.itemSize,marginInlineEnd:a.marginXS,lineHeight:unit$1(a.calc(a.itemSize).sub(2).equal()),verticalAlign:"middle"}}),genPaginationItemStyle(a)),genPaginationJumpStyle(a)),genPaginationSimpleStyle(a)),genPaginationMiniStyle(a)),genPaginationDisabledStyle(a)),{[`@media only screen and (max-width: ${a.screenLG}px)`]:{[`${s}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${a.screenSM}px)`]:{[`${s}-options`]:{display:"none"}}}),[`&${a.componentCls}-rtl`]:{direction:"rtl"}}},genPaginationFocusStyle=a=>{const{componentCls:s}=a;return{[`${s}:not(${s}-disabled)`]:{[`${s}-item`]:Object.assign({},genFocusStyle(a)),[`${s}-jump-prev, ${s}-jump-next`]:{"&:focus-visible":Object.assign({[`${s}-item-link-icon`]:{opacity:1},[`${s}-item-ellipsis`]:{opacity:0}},genFocusOutline(a))},[`${s}-prev, ${s}-next`]:{[`&:focus-visible ${s}-item-link`]:Object.assign({},genFocusOutline(a))}}}},prepareComponentToken$a=a=>Object.assign({itemBg:a.colorBgContainer,itemSize:a.controlHeight,itemSizeSM:a.controlHeightSM,itemActiveBg:a.colorBgContainer,itemLinkBg:a.colorBgContainer,itemActiveColorDisabled:a.colorTextDisabled,itemActiveBgDisabled:a.controlItemBgActiveDisabled,itemInputBg:a.colorBgContainer,miniOptionsSizeChangerTop:0},initComponentToken$1(a)),prepareToken=a=>merge(a,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:a.calc(a.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:a.calc(a.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:a.calc(a.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:a.calc(a.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:a.marginSM,paginationSlashMarginInlineEnd:a.marginSM,paginationEllipsisTextIndent:"0.13em"},initInputToken(a)),useStyle$a=genStyleHooks("Pagination",a=>{const s=prepareToken(a);return[genPaginationStyle$1(s),genPaginationFocusStyle(s)]},prepareComponentToken$a),genBorderedStyle$1=a=>{const{componentCls:s}=a;return{[`${s}${s}-bordered${s}-disabled:not(${s}-mini)`]:{"&, &:hover":{[`${s}-item-link`]:{borderColor:a.colorBorder}},"&:focus-visible":{[`${s}-item-link`]:{borderColor:a.colorBorder}},[`${s}-item, ${s}-item-link`]:{backgroundColor:a.colorBgContainerDisabled,borderColor:a.colorBorder,[`&:hover:not(${s}-item-active)`]:{backgroundColor:a.colorBgContainerDisabled,borderColor:a.colorBorder,a:{color:a.colorTextDisabled}},[`&${s}-item-active`]:{backgroundColor:a.itemActiveBgDisabled}},[`${s}-prev, ${s}-next`]:{"&:hover button":{backgroundColor:a.colorBgContainerDisabled,borderColor:a.colorBorder,color:a.colorTextDisabled},[`${s}-item-link`]:{backgroundColor:a.colorBgContainerDisabled,borderColor:a.colorBorder}}},[`${s}${s}-bordered:not(${s}-mini)`]:{[`${s}-prev, ${s}-next`]:{"&:hover button":{borderColor:a.colorPrimaryHover,backgroundColor:a.itemBg},[`${s}-item-link`]:{backgroundColor:a.itemLinkBg,borderColor:a.colorBorder},[`&:hover ${s}-item-link`]:{borderColor:a.colorPrimary,backgroundColor:a.itemBg,color:a.colorPrimary},[`&${s}-disabled`]:{[`${s}-item-link`]:{borderColor:a.colorBorder,color:a.colorTextDisabled}}},[`${s}-item`]:{backgroundColor:a.itemBg,border:`${unit$1(a.lineWidth)} ${a.lineType} ${a.colorBorder}`,[`&:hover:not(${s}-item-active)`]:{borderColor:a.colorPrimary,backgroundColor:a.itemBg,a:{color:a.colorPrimary}},"&-active":{borderColor:a.colorPrimary}}}}},BorderedStyle=genSubStyleComponent(["Pagination","bordered"],a=>{const s=prepareToken(a);return[genBorderedStyle$1(s)]},prepareComponentToken$a);function useShowSizeChanger(a){return reactExports.useMemo(()=>typeof a=="boolean"?[a,{}]:a&&typeof a=="object"?[!0,a]:[void 0,void 0],[a])}var __rest$j=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const Pagination=a=>{const{align:s,prefixCls:c,selectPrefixCls:u,className:d,rootClassName:p,style:v,size:A,locale:b,responsive:g,showSizeChanger:x,selectComponentClass:y,pageSizeOptions:f}=a,m=__rest$j(a,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:C}=useBreakpoint(g),[,S]=useToken$1(),{getPrefixCls:w,direction:I,showSizeChanger:P,className:$,style:_}=useComponentConfig("pagination"),E=w("pagination",c),[R,T,B]=useStyle$a(E),M=useSize(A),D=M==="small"||!!(C&&!M&&g),[O]=useLocale$1("Pagination",locale$4),H=Object.assign(Object.assign({},O),b),[j,Q]=useShowSizeChanger(x),[L,F]=useShowSizeChanger(P),U=j??L,N=Q??F,k=y||Select,W=reactExports.useMemo(()=>f?f.map(re=>Number(re)):void 0,[f]),J=re=>{var ae;const{disabled:V,size:K,onSizeChange:te,"aria-label":ie,className:ce,options:ge}=re,{className:Se,onChange:be}=N||{},me=(ae=ge.find(fe=>String(fe.value)===String(K)))===null||ae===void 0?void 0:ae.value;return reactExports.createElement(k,Object.assign({disabled:V,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:fe=>fe.parentNode,"aria-label":ie,options:ge},N,{value:me,onChange:(fe,se)=>{te==null||te(fe),be==null||be(fe,se)},size:D?"small":"middle",className:classnames(ce,Se)}))},q=reactExports.useMemo(()=>{const re=reactExports.createElement("span",{className:`${E}-item-ellipsis`},"•••"),ae=reactExports.createElement("button",{className:`${E}-item-link`,type:"button",tabIndex:-1},I==="rtl"?reactExports.createElement(RefIcon$E,null):reactExports.createElement(RefIcon$A,null)),V=reactExports.createElement("button",{className:`${E}-item-link`,type:"button",tabIndex:-1},I==="rtl"?reactExports.createElement(RefIcon$A,null):reactExports.createElement(RefIcon$E,null)),K=reactExports.createElement("a",{className:`${E}-item-link`},reactExports.createElement("div",{className:`${E}-item-container`},I==="rtl"?reactExports.createElement(RefIcon$k,{className:`${E}-item-link-icon`}):reactExports.createElement(RefIcon$l,{className:`${E}-item-link-icon`}),re)),te=reactExports.createElement("a",{className:`${E}-item-link`},reactExports.createElement("div",{className:`${E}-item-container`},I==="rtl"?reactExports.createElement(RefIcon$l,{className:`${E}-item-link-icon`}):reactExports.createElement(RefIcon$k,{className:`${E}-item-link-icon`}),re));return{prevIcon:ae,nextIcon:V,jumpPrevIcon:K,jumpNextIcon:te}},[I,E]),Y=w("select",u),Z=classnames({[`${E}-${s}`]:!!s,[`${E}-mini`]:D,[`${E}-rtl`]:I==="rtl",[`${E}-bordered`]:S.wireframe},$,d,p,T,B),ee=Object.assign(Object.assign({},_),v);return R(reactExports.createElement(reactExports.Fragment,null,S.wireframe&&reactExports.createElement(BorderedStyle,{prefixCls:E}),reactExports.createElement(Pagination$1,Object.assign({},q,m,{style:ee,prefixCls:E,selectPrefixCls:Y,className:Z,locale:H,pageSizeOptions:W,showSizeChanger:U,sizeChangerRender:J}))))},viewSize=100,borderWidth=viewSize/5,radius=viewSize/2-borderWidth/2,circumference=radius*2*Math.PI,position=50,CustomCircle=a=>{const{dotClassName:s,style:c,hasCircleCls:u}=a;return reactExports.createElement("circle",{className:classnames(`${s}-circle`,{[`${s}-circle-bg`]:u}),r:radius,cx:position,cy:position,strokeWidth:borderWidth,style:c})},Progress$1=a=>{let{percent:s,prefixCls:c}=a;const u=`${c}-dot`,d=`${u}-holder`,p=`${d}-hidden`,[v,A]=reactExports.useState(!1);useLayoutEffect$1(()=>{s!==0&&A(!0)},[s!==0]);const b=Math.max(Math.min(s,100),0);if(!v)return null;const g={strokeDashoffset:`${circumference/4}`,strokeDasharray:`${circumference*b/100} ${circumference*(100-b)/100}`};return reactExports.createElement("span",{className:classnames(d,`${u}-progress`,b<=0&&p)},reactExports.createElement("svg",{viewBox:`0 0 ${viewSize} ${viewSize}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":b},reactExports.createElement(CustomCircle,{dotClassName:u,hasCircleCls:!0}),reactExports.createElement(CustomCircle,{dotClassName:u,style:g})))};function Looper(a){const{prefixCls:s,percent:c=0}=a,u=`${s}-dot`,d=`${u}-holder`,p=`${d}-hidden`;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{className:classnames(d,c>0&&p)},reactExports.createElement("span",{className:classnames(u,`${s}-dot-spin`)},[1,2,3,4].map(v=>reactExports.createElement("i",{className:`${s}-dot-item`,key:v})))),reactExports.createElement(Progress$1,{prefixCls:s,percent:c}))}function Indicator(a){const{prefixCls:s,indicator:c,percent:u}=a,d=`${s}-dot`;return c&&reactExports.isValidElement(c)?cloneElement(c,{className:classnames(c.props.className,d),percent:u}):reactExports.createElement(Looper,{prefixCls:s,percent:u})}const antSpinMove=new Keyframe("antSpinMove",{to:{opacity:1}}),antRotate=new Keyframe("antRotate",{to:{transform:"rotate(405deg)"}}),genSpinStyle=a=>{const{componentCls:s,calc:c}=a;return{[s]:Object.assign(Object.assign({},resetComponent(a)),{position:"absolute",display:"none",color:a.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${a.motionDurationSlow} ${a.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${s}-text`]:{fontSize:a.fontSize,paddingTop:c(c(a.dotSize).sub(a.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:a.colorBgMask,zIndex:a.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${a.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[s]:{[`${s}-dot-holder`]:{color:a.colorWhite},[`${s}-text`]:{color:a.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${s}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:a.contentHeight,[`${s}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:c(a.dotSize).mul(-1).div(2).equal()},[`${s}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${a.colorBgContainer}`},[`&${s}-show-text ${s}-dot`]:{marginTop:c(a.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${s}-dot`]:{margin:c(a.dotSizeSM).mul(-1).div(2).equal()},[`${s}-text`]:{paddingTop:c(c(a.dotSizeSM).sub(a.fontSize)).div(2).add(2).equal()},[`&${s}-show-text ${s}-dot`]:{marginTop:c(a.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${s}-dot`]:{margin:c(a.dotSizeLG).mul(-1).div(2).equal()},[`${s}-text`]:{paddingTop:c(c(a.dotSizeLG).sub(a.fontSize)).div(2).add(2).equal()},[`&${s}-show-text ${s}-dot`]:{marginTop:c(a.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${s}-container`]:{position:"relative",transition:`opacity ${a.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:a.colorBgContainer,opacity:0,transition:`all ${a.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${s}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:a.spinDotDefault},[`${s}-dot-holder`]:{width:"1em",height:"1em",fontSize:a.dotSize,display:"inline-block",transition:`transform ${a.motionDurationSlow} ease, opacity ${a.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:a.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${s}-dot-progress`]:{position:"absolute",inset:0},[`${s}-dot`]:{position:"relative",display:"inline-block",fontSize:a.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:c(a.dotSize).sub(c(a.marginXXS).div(2)).div(2).equal(),height:c(a.dotSize).sub(c(a.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:antSpinMove,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:antRotate,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(u=>`${u} ${a.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:a.colorFillSecondary}},[`&-sm ${s}-dot`]:{"&, &-holder":{fontSize:a.dotSizeSM}},[`&-sm ${s}-dot-holder`]:{i:{width:c(c(a.dotSizeSM).sub(c(a.marginXXS).div(2))).div(2).equal(),height:c(c(a.dotSizeSM).sub(c(a.marginXXS).div(2))).div(2).equal()}},[`&-lg ${s}-dot`]:{"&, &-holder":{fontSize:a.dotSizeLG}},[`&-lg ${s}-dot-holder`]:{i:{width:c(c(a.dotSizeLG).sub(a.marginXXS)).div(2).equal(),height:c(c(a.dotSizeLG).sub(a.marginXXS)).div(2).equal()}},[`&${s}-show-text ${s}-text`]:{display:"block"}})}},prepareComponentToken$9=a=>{const{controlHeightLG:s,controlHeight:c}=a;return{contentHeight:400,dotSize:s/2,dotSizeSM:s*.35,dotSizeLG:c}},useStyle$9=genStyleHooks("Spin",a=>{const s=merge(a,{spinDotDefault:a.colorTextDescription});return[genSpinStyle(s)]},prepareComponentToken$9),AUTO_INTERVAL=200,STEP_BUCKETS=[[30,.05],[70,.03],[96,.01]];function usePercent(a,s){const[c,u]=reactExports.useState(0),d=reactExports.useRef(null),p=s==="auto";return reactExports.useEffect(()=>(p&&a&&(u(0),d.current=setInterval(()=>{u(v=>{const A=100-v;for(let b=0;b<STEP_BUCKETS.length;b+=1){const[g,x]=STEP_BUCKETS[b];if(v<=g)return v+A*x}return v})},AUTO_INTERVAL)),()=>{clearInterval(d.current)}),[p,a]),p?c:s}var __rest$i=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};let defaultIndicator;function shouldDelay(a,s){return!!a&&!!s&&!Number.isNaN(Number(s))}const Spin=a=>{var s;const{prefixCls:c,spinning:u=!0,delay:d=0,className:p,rootClassName:v,size:A="default",tip:b,wrapperClassName:g,style:x,children:y,fullscreen:f=!1,indicator:m,percent:C}=a,S=__rest$i(a,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:w,direction:I,className:P,style:$,indicator:_}=useComponentConfig("spin"),E=w("spin",c),[R,T,B]=useStyle$9(E),[M,D]=reactExports.useState(()=>u&&!shouldDelay(u,d)),O=usePercent(M,C);reactExports.useEffect(()=>{if(u){const N=debounce(d,()=>{D(!0)});return N(),()=>{var k;(k=N==null?void 0:N.cancel)===null||k===void 0||k.call(N)}}D(!1)},[d,u]);const H=reactExports.useMemo(()=>typeof y<"u"&&!f,[y,f]),j=classnames(E,P,{[`${E}-sm`]:A==="small",[`${E}-lg`]:A==="large",[`${E}-spinning`]:M,[`${E}-show-text`]:!!b,[`${E}-rtl`]:I==="rtl"},p,!f&&v,T,B),Q=classnames(`${E}-container`,{[`${E}-blur`]:M}),L=(s=m??_)!==null&&s!==void 0?s:defaultIndicator,F=Object.assign(Object.assign({},$),x),U=reactExports.createElement("div",Object.assign({},S,{style:F,className:j,"aria-live":"polite","aria-busy":M}),reactExports.createElement(Indicator,{prefixCls:E,indicator:L,percent:O}),b&&(H||f)?reactExports.createElement("div",{className:`${E}-text`},b):null);return R(H?reactExports.createElement("div",Object.assign({},S,{className:classnames(`${E}-nested-loading`,g,T,B)}),M&&reactExports.createElement("div",{key:"loading"},U),reactExports.createElement("div",{className:Q,key:"container"},y)):f?reactExports.createElement("div",{className:classnames(`${E}-fullscreen`,{[`${E}-fullscreen-show`]:M},v,T,B)},U):U)};Spin.setDefaultIndicator=a=>{defaultIndicator=a};function toList$1(a){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&a==null?[]:Array.isArray(a)?a:[a]}let message=null,act=a=>a(),taskQueue=[],defaultGlobalConfig={};function getGlobalContext(){const{getContainer:a,duration:s,rtl:c,maxCount:u,top:d}=defaultGlobalConfig,p=(a==null?void 0:a())||document.body;return{getContainer:()=>p,duration:s,rtl:c,maxCount:u,top:d}}const GlobalHolder=React.forwardRef((a,s)=>{const{messageConfig:c,sync:u}=a,{getPrefixCls:d}=reactExports.useContext(ConfigContext$1),p=defaultGlobalConfig.prefixCls||d("message"),v=reactExports.useContext(AppConfigContext),[A,b]=useInternalMessage(Object.assign(Object.assign(Object.assign({},c),{prefixCls:p}),v.message));return React.useImperativeHandle(s,()=>{const g=Object.assign({},A);return Object.keys(g).forEach(x=>{g[x]=function(){return u(),A[x].apply(A,arguments)}}),{instance:g,sync:u}}),b}),GlobalHolderWrapper=React.forwardRef((a,s)=>{const[c,u]=React.useState(getGlobalContext),d=()=>{u(getGlobalContext)};React.useEffect(d,[]);const p=globalConfig(),v=p.getRootPrefixCls(),A=p.getIconPrefixCls(),b=p.getTheme(),g=React.createElement(GlobalHolder,{ref:s,sync:d,messageConfig:c});return React.createElement(ConfigProvider,{prefixCls:v,iconPrefixCls:A,theme:b},p.holderRender?p.holderRender(g):g)});function flushNotice(){if(!message){const a=document.createDocumentFragment(),s={fragment:a};message=s,act(()=>{getReactRender()(React.createElement(GlobalHolderWrapper,{ref:u=>{const{instance:d,sync:p}=u||{};Promise.resolve().then(()=>{!s.instance&&d&&(s.instance=d,s.sync=p,flushNotice())})}}),a)});return}message.instance&&(taskQueue.forEach(a=>{const{type:s,skipped:c}=a;if(!c)switch(s){case"open":{act(()=>{const u=message.instance.open(Object.assign(Object.assign({},defaultGlobalConfig),a.config));u==null||u.then(a.resolve),a.setCloseFn(u)});break}case"destroy":act(()=>{message==null||message.instance.destroy(a.key)});break;default:act(()=>{var u;const d=(u=message.instance)[s].apply(u,_toConsumableArray$e(a.args));d==null||d.then(a.resolve),a.setCloseFn(d)})}}),taskQueue=[])}function setMessageGlobalConfig(a){defaultGlobalConfig=Object.assign(Object.assign({},defaultGlobalConfig),a),act(()=>{var s;(s=message==null?void 0:message.sync)===null||s===void 0||s.call(message)})}function open(a){const s=wrapPromiseFn(c=>{let u;const d={type:"open",config:a,resolve:c,setCloseFn:p=>{u=p}};return taskQueue.push(d),()=>{u?act(()=>{u()}):d.skipped=!0}});return flushNotice(),s}function typeOpen(a,s){const c=wrapPromiseFn(u=>{let d;const p={type:a,args:s,resolve:u,setCloseFn:v=>{d=v}};return taskQueue.push(p),()=>{d?act(()=>{d()}):p.skipped=!0}});return flushNotice(),c}const destroy=a=>{taskQueue.push({type:"destroy",key:a}),flushNotice()},methods=["success","info","warning","error","loading"],baseStaticMethods={open,destroy,config:setMessageGlobalConfig,useMessage,_InternalPanelDoNotUseOrYouWillBeFired:PurePanel$7},staticMethods=baseStaticMethods;methods.forEach(a=>{staticMethods[a]=function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return typeOpen(a,c)}});const genBaseStyle$5=a=>{const{componentCls:s,iconCls:c,antCls:u,zIndexPopup:d,colorText:p,colorWarning:v,marginXXS:A,marginXS:b,fontSize:g,fontWeightStrong:x,colorTextHeading:y}=a;return{[s]:{zIndex:d,[`&${u}-popover`]:{fontSize:g},[`${s}-message`]:{marginBottom:b,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${s}-message-icon ${c}`]:{color:v,fontSize:g,lineHeight:1,marginInlineEnd:b},[`${s}-title`]:{fontWeight:x,color:y,"&:only-child":{fontWeight:"normal"}},[`${s}-description`]:{marginTop:A,color:p}},[`${s}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:b}}}}},prepareComponentToken$8=a=>{const{zIndexPopupBase:s}=a;return{zIndexPopup:s+60}},useStyle$8=genStyleHooks("Popconfirm",a=>genBaseStyle$5(a),prepareComponentToken$8,{resetStyle:!1});var __rest$h=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const Overlay=a=>{const{prefixCls:s,okButtonProps:c,cancelButtonProps:u,title:d,description:p,cancelText:v,okText:A,okType:b="primary",icon:g=reactExports.createElement(RefIcon$H,null),showCancel:x=!0,close:y,onConfirm:f,onCancel:m,onPopupClick:C}=a,{getPrefixCls:S}=reactExports.useContext(ConfigContext$1),[w]=useLocale$1("Popconfirm",localeValues.Popconfirm),I=getRenderPropValue(d),P=getRenderPropValue(p);return reactExports.createElement("div",{className:`${s}-inner-content`,onClick:C},reactExports.createElement("div",{className:`${s}-message`},g&&reactExports.createElement("span",{className:`${s}-message-icon`},g),reactExports.createElement("div",{className:`${s}-message-text`},I&&reactExports.createElement("div",{className:`${s}-title`},I),P&&reactExports.createElement("div",{className:`${s}-description`},P))),reactExports.createElement("div",{className:`${s}-buttons`},x&&reactExports.createElement(Button$1,Object.assign({onClick:m,size:"small"},u),v||(w==null?void 0:w.cancelText)),reactExports.createElement(ActionButton,{buttonProps:Object.assign(Object.assign({size:"small"},convertLegacyProps(b)),c),actionFn:f,close:y,prefixCls:S("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},A||(w==null?void 0:w.okText))))},PurePanel$1=a=>{const{prefixCls:s,placement:c,className:u,style:d}=a,p=__rest$h(a,["prefixCls","placement","className","style"]),{getPrefixCls:v}=reactExports.useContext(ConfigContext$1),A=v("popconfirm",s),[b]=useStyle$8(A);return b(reactExports.createElement(PurePanel$4,{placement:c,className:classnames(A,u),style:d,content:reactExports.createElement(Overlay,Object.assign({prefixCls:A},p))}))};var __rest$g=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const InternalPopconfirm=reactExports.forwardRef((a,s)=>{var c,u;const{prefixCls:d,placement:p="top",trigger:v="click",okType:A="primary",icon:b=reactExports.createElement(RefIcon$H,null),children:g,overlayClassName:x,onOpenChange:y,onVisibleChange:f,overlayStyle:m,styles:C,classNames:S}=a,w=__rest$g(a,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:I,className:P,style:$,classNames:_,styles:E}=useComponentConfig("popconfirm"),[R,T]=useMergedState(!1,{value:(c=a.open)!==null&&c!==void 0?c:a.visible,defaultValue:(u=a.defaultOpen)!==null&&u!==void 0?u:a.defaultVisible}),B=(U,N)=>{T(U,!0),f==null||f(U),y==null||y(U,N)},M=U=>{B(!1,U)},D=U=>{var N;return(N=a.onConfirm)===null||N===void 0?void 0:N.call(void 0,U)},O=U=>{var N;B(!1,U),(N=a.onCancel)===null||N===void 0||N.call(void 0,U)},H=(U,N)=>{const{disabled:k=!1}=a;k||B(U,N)},j=I("popconfirm",d),Q=classnames(j,P,x,_.root,S==null?void 0:S.root),L=classnames(_.body,S==null?void 0:S.body),[F]=useStyle$8(j);return F(reactExports.createElement(Popover,Object.assign({},omit(w,["title"]),{trigger:v,placement:p,onOpenChange:H,open:R,ref:s,classNames:{root:Q,body:L},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},E.root),$),m),C==null?void 0:C.root),body:Object.assign(Object.assign({},E.body),C==null?void 0:C.body)},content:reactExports.createElement(Overlay,Object.assign({okType:A,icon:b},a,{prefixCls:j,close:M,onConfirm:D,onCancel:O})),"data-popover-inject":!0}),g))}),Popconfirm=InternalPopconfirm;Popconfirm._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$1;var defaultProps={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},useTransitionDuration=function a(){var s=reactExports.useRef([]),c=reactExports.useRef(null);return reactExports.useEffect(function(){var u=Date.now(),d=!1;s.current.forEach(function(p){if(p){d=!0;var v=p.style;v.transitionDuration=".3s, .3s, .3s, .06s",c.current&&u-c.current<100&&(v.transitionDuration="0s, 0s")}}),d&&(c.current=Date.now())}),s.current},uuid=0,isBrowserClient=canUseDom$1();function getUUID(){var a;return isBrowserClient?(a=uuid,uuid+=1):a="TEST_OR_SSR",a}const useId=function(a){var s=reactExports.useState(),c=_slicedToArray$e(s,2),u=c[0],d=c[1];return reactExports.useEffect(function(){d("rc_progress_".concat(getUUID()))},[]),a||u};var Block=function a(s){var c=s.bg,u=s.children;return reactExports.createElement("div",{style:{width:"100%",height:"100%",background:c}},u)};function getPtgColors(a,s){return Object.keys(a).map(function(c){var u=parseFloat(c),d="".concat(Math.floor(u*s),"%");return"".concat(a[c]," ").concat(d)})}var PtgCircle=reactExports.forwardRef(function(a,s){var c=a.prefixCls,u=a.color,d=a.gradientId,p=a.radius,v=a.style,A=a.ptg,b=a.strokeLinecap,g=a.strokeWidth,x=a.size,y=a.gapDegree,f=u&&_typeof$h(u)==="object",m=f?"#FFF":void 0,C=x/2,S=reactExports.createElement("circle",{className:"".concat(c,"-circle-path"),r:p,cx:C,cy:C,stroke:m,strokeLinecap:b,strokeWidth:g,opacity:A===0?0:1,style:v,ref:s});if(!f)return S;var w="".concat(d,"-conic"),I=y?"".concat(180+y/2,"deg"):"0deg",P=getPtgColors(u,(360-y)/360),$=getPtgColors(u,1),_="conic-gradient(from ".concat(I,", ").concat(P.join(", "),")"),E="linear-gradient(to ".concat(y?"bottom":"top",", ").concat($.join(", "),")");return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("mask",{id:w},S),reactExports.createElement("foreignObject",{x:0,y:0,width:x,height:x,mask:"url(#".concat(w,")")},reactExports.createElement(Block,{bg:E},reactExports.createElement(Block,{bg:_}))))}),VIEW_BOX_SIZE=100,getCircleStyle=function a(s,c,u,d,p,v,A,b,g,x){var y=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=u/100*360*((360-v)/360),m=v===0?0:{bottom:0,top:180,left:90,right:-90}[A],C=(100-d)/100*c;g==="round"&&d!==100&&(C+=x/2,C>=c&&(C=c-.01));var S=VIEW_BOX_SIZE/2;return{stroke:typeof b=="string"?b:void 0,strokeDasharray:"".concat(c,"px ").concat(s),strokeDashoffset:C+y,transform:"rotate(".concat(p+f+m,"deg)"),transformOrigin:"".concat(S,"px ").concat(S,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},_excluded$f=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function toArray$2(a){var s=a??[];return Array.isArray(s)?s:[s]}var Circle$1=function a(s){var c=_objectSpread2$1(_objectSpread2$1({},defaultProps),s),u=c.id,d=c.prefixCls,p=c.steps,v=c.strokeWidth,A=c.trailWidth,b=c.gapDegree,g=b===void 0?0:b,x=c.gapPosition,y=c.trailColor,f=c.strokeLinecap,m=c.style,C=c.className,S=c.strokeColor,w=c.percent,I=_objectWithoutProperties$2(c,_excluded$f),P=VIEW_BOX_SIZE/2,$=useId(u),_="".concat($,"-gradient"),E=P-v/2,R=Math.PI*2*E,T=g>0?90+g/2:-90,B=R*((360-g)/360),M=_typeof$h(p)==="object"?p:{count:p,gap:2},D=M.count,O=M.gap,H=toArray$2(w),j=toArray$2(S),Q=j.find(function(J){return J&&_typeof$h(J)==="object"}),L=Q&&_typeof$h(Q)==="object",F=L?"butt":f,U=getCircleStyle(R,B,0,100,T,g,x,y,F,v),N=useTransitionDuration(),k=function(){var q=0;return H.map(function(Y,Z){var ee=j[Z]||j[j.length-1],re=getCircleStyle(R,B,q,Y,T,g,x,ee,F,v);return q+=Y,reactExports.createElement(PtgCircle,{key:Z,color:ee,ptg:Y,radius:E,prefixCls:d,gradientId:_,style:re,strokeLinecap:F,strokeWidth:v,gapDegree:g,ref:function(V){N[Z]=V},size:VIEW_BOX_SIZE})}).reverse()},W=function(){var q=Math.round(D*(H[0]/100)),Y=100/D,Z=0;return new Array(D).fill(null).map(function(ee,re){var ae=re<=q-1?j[0]:y,V=ae&&_typeof$h(ae)==="object"?"url(#".concat(_,")"):void 0,K=getCircleStyle(R,B,Z,Y,T,g,x,ae,"butt",v,O);return Z+=(B-K.strokeDashoffset+O)*100/B,reactExports.createElement("circle",{key:re,className:"".concat(d,"-circle-path"),r:E,cx:P,cy:P,stroke:V,strokeWidth:v,opacity:1,style:K,ref:function(ie){N[re]=ie}})})};return reactExports.createElement("svg",_extends$3({className:classnames("".concat(d,"-circle"),C),viewBox:"0 0 ".concat(VIEW_BOX_SIZE," ").concat(VIEW_BOX_SIZE),style:m,id:u,role:"presentation"},I),!D&&reactExports.createElement("circle",{className:"".concat(d,"-circle-trail"),r:E,cx:P,cy:P,stroke:y,strokeLinecap:F,strokeWidth:A||v,style:U}),D?W():k())};function validProgress(a){return!a||a<0?0:a>100?100:a}function getSuccessPercent(a){let{success:s,successPercent:c}=a,u=c;return s&&"progress"in s&&(u=s.progress),s&&"percent"in s&&(u=s.percent),u}const getPercentage=a=>{let{percent:s,success:c,successPercent:u}=a;const d=validProgress(getSuccessPercent({success:c,successPercent:u}));return[d,validProgress(validProgress(s)-d)]},getStrokeColor=a=>{let{success:s={},strokeColor:c}=a;const{strokeColor:u}=s;return[u||presetPrimaryColors$1.green,c||null]},getSize$1=(a,s,c)=>{var u,d,p,v;let A=-1,b=-1;if(s==="step"){const g=c.steps,x=c.strokeWidth;typeof a=="string"||typeof a>"u"?(A=a==="small"?2:14,b=x??8):typeof a=="number"?[A,b]=[a,a]:[A=14,b=8]=Array.isArray(a)?a:[a.width,a.height],A*=g}else if(s==="line"){const g=c==null?void 0:c.strokeWidth;typeof a=="string"||typeof a>"u"?b=g||(a==="small"?6:8):typeof a=="number"?[A,b]=[a,a]:[A=-1,b=8]=Array.isArray(a)?a:[a.width,a.height]}else(s==="circle"||s==="dashboard")&&(typeof a=="string"||typeof a>"u"?[A,b]=a==="small"?[60,60]:[120,120]:typeof a=="number"?[A,b]=[a,a]:Array.isArray(a)&&(A=(d=(u=a[0])!==null&&u!==void 0?u:a[1])!==null&&d!==void 0?d:120,b=(v=(p=a[0])!==null&&p!==void 0?p:a[1])!==null&&v!==void 0?v:120));return[A,b]},CIRCLE_MIN_STROKE_WIDTH=3,getMinPercent=a=>CIRCLE_MIN_STROKE_WIDTH/a*100,Circle=a=>{const{prefixCls:s,trailColor:c=null,strokeLinecap:u="round",gapPosition:d,gapDegree:p,width:v=120,type:A,children:b,success:g,size:x=v,steps:y}=a,[f,m]=getSize$1(x,"circle");let{strokeWidth:C}=a;C===void 0&&(C=Math.max(getMinPercent(f),6));const S={width:f,height:m,fontSize:f*.15+6},w=reactExports.useMemo(()=>{if(p||p===0)return p;if(A==="dashboard")return 75},[p,A]),I=getPercentage(a),P=d||A==="dashboard"&&"bottom"||void 0,$=Object.prototype.toString.call(a.strokeColor)==="[object Object]",_=getStrokeColor({success:g,strokeColor:a.strokeColor}),E=classnames(`${s}-inner`,{[`${s}-circle-gradient`]:$}),R=reactExports.createElement(Circle$1,{steps:y,percent:y?I[1]:I,strokeWidth:C,trailWidth:C,strokeColor:y?_[1]:_,strokeLinecap:u,trailColor:c,prefixCls:s,gapDegree:w,gapPosition:P}),T=f<=20,B=reactExports.createElement("div",{className:E,style:S},R,!T&&b);return T?reactExports.createElement(Tooltip,{title:b},B):B},LineStrokeColorVar="--progress-line-stroke-color",Percent="--progress-percent",genAntProgressActive=a=>{const s=a?"100%":"-100%";return new Keyframe(`antProgress${a?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${s}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${s}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},genBaseStyle$4=a=>{const{componentCls:s,iconCls:c}=a;return{[s]:Object.assign(Object.assign({},resetComponent(a)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:a.fontSize},[`${s}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${s}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:a.remainingColor,borderRadius:a.lineBorderRadius},[`${s}-inner:not(${s}-circle-gradient)`]:{[`${s}-circle-path`]:{stroke:a.defaultColor}},[`${s}-success-bg, ${s}-bg`]:{position:"relative",background:a.defaultColor,borderRadius:a.lineBorderRadius,transition:`all ${a.motionDurationSlow} ${a.motionEaseInOutCirc}`},[`${s}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${s}-text`]:{width:"max-content",marginInlineStart:0,marginTop:a.marginXXS}},[`${s}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${LineStrokeColorVar})`]},height:"100%",width:`calc(1 / var(${Percent}) * 100%)`,display:"block"},[`&${s}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${s}-text-inner`]:{color:a.colorWhite,[`&${s}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${s}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:a.colorSuccess},[`${s}-text`]:{display:"inline-block",marginInlineStart:a.marginXS,color:a.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[c]:{fontSize:a.fontSize},[`&${s}-text-outer`]:{width:"max-content"},[`&${s}-text-outer${s}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:a.marginXS}},[`${s}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${unit$1(a.paddingXXS)}`,[`&${s}-text-start`]:{justifyContent:"start"},[`&${s}-text-end`]:{justifyContent:"end"}},[`&${s}-status-active`]:{[`${s}-bg::before`]:{position:"absolute",inset:0,backgroundColor:a.colorBgContainer,borderRadius:a.lineBorderRadius,opacity:0,animationName:genAntProgressActive(),animationDuration:a.progressActiveMotionDuration,animationTimingFunction:a.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${s}-rtl${s}-status-active`]:{[`${s}-bg::before`]:{animationName:genAntProgressActive(!0)}},[`&${s}-status-exception`]:{[`${s}-bg`]:{backgroundColor:a.colorError},[`${s}-text`]:{color:a.colorError}},[`&${s}-status-exception ${s}-inner:not(${s}-circle-gradient)`]:{[`${s}-circle-path`]:{stroke:a.colorError}},[`&${s}-status-success`]:{[`${s}-bg`]:{backgroundColor:a.colorSuccess},[`${s}-text`]:{color:a.colorSuccess}},[`&${s}-status-success ${s}-inner:not(${s}-circle-gradient)`]:{[`${s}-circle-path`]:{stroke:a.colorSuccess}}})}},genCircleStyle=a=>{const{componentCls:s,iconCls:c}=a;return{[s]:{[`${s}-circle-trail`]:{stroke:a.remainingColor},[`&${s}-circle ${s}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${s}-circle ${s}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:a.circleTextColor,fontSize:a.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[c]:{fontSize:a.circleIconFontSize}},[`${s}-circle&-status-exception`]:{[`${s}-text`]:{color:a.colorError}},[`${s}-circle&-status-success`]:{[`${s}-text`]:{color:a.colorSuccess}}},[`${s}-inline-circle`]:{lineHeight:1,[`${s}-inner`]:{verticalAlign:"bottom"}}}},genStepStyle=a=>{const{componentCls:s}=a;return{[s]:{[`${s}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:a.progressStepMinWidth,marginInlineEnd:a.progressStepMarginInlineEnd,backgroundColor:a.remainingColor,transition:`all ${a.motionDurationSlow}`,"&-active":{backgroundColor:a.defaultColor}}}}}},genSmallLine=a=>{const{componentCls:s,iconCls:c}=a;return{[s]:{[`${s}-small&-line, ${s}-small&-line ${s}-text ${c}`]:{fontSize:a.fontSizeSM}}}},prepareComponentToken$7=a=>({circleTextColor:a.colorText,defaultColor:a.colorInfo,remainingColor:a.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${a.fontSize/a.fontSizeSM}em`}),useStyle$7=genStyleHooks("Progress",a=>{const s=a.calc(a.marginXXS).div(2).equal(),c=merge(a,{progressStepMarginInlineEnd:s,progressStepMinWidth:s,progressActiveMotionDuration:"2.4s"});return[genBaseStyle$4(c),genCircleStyle(c),genStepStyle(c),genSmallLine(c)]},prepareComponentToken$7);var __rest$f=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const sortGradient=a=>{let s=[];return Object.keys(a).forEach(c=>{const u=parseFloat(c.replace(/%/g,""));Number.isNaN(u)||s.push({key:u,value:a[c]})}),s=s.sort((c,u)=>c.key-u.key),s.map(c=>{let{key:u,value:d}=c;return`${d} ${u}%`}).join(", ")},handleGradient=(a,s)=>{const{from:c=presetPrimaryColors$1.blue,to:u=presetPrimaryColors$1.blue,direction:d=s==="rtl"?"to left":"to right"}=a,p=__rest$f(a,["from","to","direction"]);if(Object.keys(p).length!==0){const A=sortGradient(p),b=`linear-gradient(${d}, ${A})`;return{background:b,[LineStrokeColorVar]:b}}const v=`linear-gradient(${d}, ${c}, ${u})`;return{background:v,[LineStrokeColorVar]:v}},Line=a=>{const{prefixCls:s,direction:c,percent:u,size:d,strokeWidth:p,strokeColor:v,strokeLinecap:A="round",children:b,trailColor:g=null,percentPosition:x,success:y}=a,{align:f,type:m}=x,C=v&&typeof v!="string"?handleGradient(v,c):{[LineStrokeColorVar]:v,background:v},S=A==="square"||A==="butt"?0:void 0,w=d??[-1,p||(d==="small"?6:8)],[I,P]=getSize$1(w,"line",{strokeWidth:p}),$={backgroundColor:g||void 0,borderRadius:S},_=Object.assign(Object.assign({width:`${validProgress(u)}%`,height:P,borderRadius:S},C),{[Percent]:validProgress(u)/100}),E=getSuccessPercent(a),R={width:`${validProgress(E)}%`,height:P,borderRadius:S,backgroundColor:y==null?void 0:y.strokeColor},T={width:I<0?"100%":I},B=reactExports.createElement("div",{className:`${s}-inner`,style:$},reactExports.createElement("div",{className:classnames(`${s}-bg`,`${s}-bg-${m}`),style:_},m==="inner"&&b),E!==void 0&&reactExports.createElement("div",{className:`${s}-success-bg`,style:R})),M=m==="outer"&&f==="start",D=m==="outer"&&f==="end";return m==="outer"&&f==="center"?reactExports.createElement("div",{className:`${s}-layout-bottom`},B,b):reactExports.createElement("div",{className:`${s}-outer`,style:T},M&&b,B,D&&b)},Steps=a=>{const{size:s,steps:c,rounding:u=Math.round,percent:d=0,strokeWidth:p=8,strokeColor:v,trailColor:A=null,prefixCls:b,children:g}=a,x=u(c*(d/100)),f=s??[s==="small"?2:14,p],[m,C]=getSize$1(f,"step",{steps:c,strokeWidth:p}),S=m/c,w=Array.from({length:c});for(let I=0;I<c;I++){const P=Array.isArray(v)?v[I]:v;w[I]=reactExports.createElement("div",{key:I,className:classnames(`${b}-steps-item`,{[`${b}-steps-item-active`]:I<=x-1}),style:{backgroundColor:I<=x-1?P:A,width:S,height:C}})}return reactExports.createElement("div",{className:`${b}-steps-outer`},w,g)};var __rest$e=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const ProgressStatuses=["normal","exception","active","success"],Progress=reactExports.forwardRef((a,s)=>{const{prefixCls:c,className:u,rootClassName:d,steps:p,strokeColor:v,percent:A=0,size:b="default",showInfo:g=!0,type:x="line",status:y,format:f,style:m,percentPosition:C={}}=a,S=__rest$e(a,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:w="end",type:I="outer"}=C,P=Array.isArray(v)?v[0]:v,$=typeof v=="string"||Array.isArray(v)?v:void 0,_=reactExports.useMemo(()=>{if(P){const k=typeof P=="string"?P:Object.values(P)[0];return new FastColor(k).isLight()}return!1},[v]),E=reactExports.useMemo(()=>{var k,W;const J=getSuccessPercent(a);return parseInt(J!==void 0?(k=J??0)===null||k===void 0?void 0:k.toString():(W=A??0)===null||W===void 0?void 0:W.toString(),10)},[A,a.success,a.successPercent]),R=reactExports.useMemo(()=>!ProgressStatuses.includes(y)&&E>=100?"success":y||"normal",[y,E]),{getPrefixCls:T,direction:B,progress:M}=reactExports.useContext(ConfigContext$1),D=T("progress",c),[O,H,j]=useStyle$7(D),Q=x==="line",L=Q&&!p,F=reactExports.useMemo(()=>{if(!g)return null;const k=getSuccessPercent(a);let W;const J=f||(Y=>`${Y}%`),q=Q&&_&&I==="inner";return I==="inner"||f||R!=="exception"&&R!=="success"?W=J(validProgress(A),validProgress(k)):R==="exception"?W=Q?reactExports.createElement(RefIcon$J,null):reactExports.createElement(RefIcon$I,null):R==="success"&&(W=Q?reactExports.createElement(RefIcon$K,null):reactExports.createElement(RefIcon$D,null)),reactExports.createElement("span",{className:classnames(`${D}-text`,{[`${D}-text-bright`]:q,[`${D}-text-${w}`]:L,[`${D}-text-${I}`]:L}),title:typeof W=="string"?W:void 0},W)},[g,A,E,R,x,D,f]);let U;x==="line"?U=p?reactExports.createElement(Steps,Object.assign({},a,{strokeColor:$,prefixCls:D,steps:typeof p=="object"?p.count:p}),F):reactExports.createElement(Line,Object.assign({},a,{strokeColor:P,prefixCls:D,direction:B,percentPosition:{align:w,type:I}}),F):(x==="circle"||x==="dashboard")&&(U=reactExports.createElement(Circle,Object.assign({},a,{strokeColor:P,prefixCls:D,progressStatus:R}),F));const N=classnames(D,`${D}-status-${R}`,{[`${D}-${x==="dashboard"&&"circle"||x}`]:x!=="line",[`${D}-inline-circle`]:x==="circle"&&getSize$1(b,"circle")[0]<=20,[`${D}-line`]:L,[`${D}-line-align-${w}`]:L,[`${D}-line-position-${I}`]:L,[`${D}-steps`]:p,[`${D}-show-info`]:g,[`${D}-${b}`]:typeof b=="string",[`${D}-rtl`]:B==="rtl"},M==null?void 0:M.className,u,d,H,j);return O(reactExports.createElement("div",Object.assign({ref:s,style:Object.assign(Object.assign({},M==null?void 0:M.style),m),className:N,role:"progressbar","aria-valuenow":E,"aria-valuemin":0,"aria-valuemax":100},omit(S,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),U))});function _createForOfIteratorHelper(a,s){var c=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=_unsupportedIterableToArray$m(a))||s){c&&(a=c);var u=0,d=function(){};return{s:d,n:function(){return u>=a.length?{done:!0}:{done:!1,value:a[u++]}},e:function(g){throw g},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
541
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p,v=!0,A=!1;return{s:function(){c=c.call(a)},n:function(){var g=c.next();return v=g.done,g},e:function(g){A=!0,p=g},f:function(){try{v||c.return==null||c.return()}finally{if(A)throw p}}}}var CaretDownFilled$1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},CaretDownFilled=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:CaretDownFilled$1}))},RefIcon$j=reactExports.forwardRef(CaretDownFilled),CaretDownOutlined$1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},CaretDownOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:CaretDownOutlined$1}))},RefIcon$i=reactExports.forwardRef(CaretDownOutlined),CaretUpOutlined$1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},CaretUpOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:CaretUpOutlined$1}))},RefIcon$h=reactExports.forwardRef(CaretUpOutlined),CopyOutlined$3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},CopyOutlined$2=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:CopyOutlined$3}))},RefIcon$g=reactExports.forwardRef(CopyOutlined$2),DeleteOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},DeleteOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:DeleteOutlined$1}))},RefIcon$f=reactExports.forwardRef(DeleteOutlined),DownloadOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},DownloadOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:DownloadOutlined$1}))},RefIcon$e=reactExports.forwardRef(DownloadOutlined),EditOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},EditOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:EditOutlined$1}))},RefIcon$d=reactExports.forwardRef(EditOutlined),EnterOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},EnterOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:EnterOutlined$1}))},RefIcon$c=reactExports.forwardRef(EnterOutlined),FileOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},FileOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:FileOutlined$1}))},RefIcon$b=reactExports.forwardRef(FileOutlined),FileTwoTone$1={icon:function a(s,c){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:c}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:s}}]}},name:"file",theme:"twotone"},FileTwoTone=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:FileTwoTone$1}))},RefIcon$a=reactExports.forwardRef(FileTwoTone),FilterFilled$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},FilterFilled=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:FilterFilled$1}))},RefIcon$9=reactExports.forwardRef(FilterFilled),FolderOpenOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},FolderOpenOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:FolderOpenOutlined$1}))},RefIcon$8=reactExports.forwardRef(FolderOpenOutlined),FolderOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},FolderOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:FolderOutlined$1}))},RefIcon$7=reactExports.forwardRef(FolderOutlined),HolderOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},HolderOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:HolderOutlined$1}))},RefIcon$6=reactExports.forwardRef(HolderOutlined),MinusSquareOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},MinusSquareOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:MinusSquareOutlined$1}))},RefIcon$5=reactExports.forwardRef(MinusSquareOutlined),PaperClipOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},PaperClipOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:PaperClipOutlined$1}))},RefIcon$4=reactExports.forwardRef(PaperClipOutlined),PictureTwoTone$1={icon:function a(s,c){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:s}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:c}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:c}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:c}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:s}}]}},name:"picture",theme:"twotone"},PictureTwoTone=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:PictureTwoTone$1}))},RefIcon$3=reactExports.forwardRef(PictureTwoTone),PlusSquareOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},PlusSquareOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:PlusSquareOutlined$1}))},RefIcon$2=reactExports.forwardRef(PlusSquareOutlined),StarFilled$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},StarFilled=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:StarFilled$1}))},RefIcon$1=reactExports.forwardRef(StarFilled),WarningFilled$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},WarningFilled=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:WarningFilled$1}))},RefIcon=reactExports.forwardRef(WarningFilled);function Star(a,s){var c=a.disabled,u=a.prefixCls,d=a.character,p=a.characterRender,v=a.index,A=a.count,b=a.value,g=a.allowHalf,x=a.focused,y=a.onHover,f=a.onClick,m=function(E){y(E,v)},C=function(E){f(E,v)},S=function(E){E.keyCode===KeyCode.ENTER&&f(E,v)},w=v+1,I=new Set([u]);b===0&&v===0&&x?I.add("".concat(u,"-focused")):g&&b+.5>=w&&b<w?(I.add("".concat(u,"-half")),I.add("".concat(u,"-active")),x&&I.add("".concat(u,"-focused"))):(w<=b?I.add("".concat(u,"-full")):I.add("".concat(u,"-zero")),w===b&&x&&I.add("".concat(u,"-focused")));var P=typeof d=="function"?d(a):d,$=React.createElement("li",{className:classnames(Array.from(I)),ref:s},React.createElement("div",{onClick:c?null:C,onKeyDown:c?null:S,onMouseMove:c?null:m,role:"radio","aria-checked":b>v?"true":"false","aria-posinset":v+1,"aria-setsize":A,tabIndex:c?-1:0},React.createElement("div",{className:"".concat(u,"-first")},P),React.createElement("div",{className:"".concat(u,"-second")},P)));return p&&($=p($,a)),$}const Star$1=React.forwardRef(Star);function useRefs(){var a=reactExports.useRef({});function s(u){return a.current[u]}function c(u){return function(d){a.current[u]=d}}return[s,c]}function getScroll$1(a){var s=a.pageXOffset,c="scrollLeft";if(typeof s!="number"){var u=a.document;s=u.documentElement[c],typeof s!="number"&&(s=u.body[c])}return s}function getClientPosition$1(a){var s,c,u=a.ownerDocument,d=u.body,p=u&&u.documentElement,v=a.getBoundingClientRect();return s=v.left,c=v.top,s-=p.clientLeft||d.clientLeft||0,c-=p.clientTop||d.clientTop||0,{left:s,top:c}}function getOffsetLeft(a){var s=getClientPosition$1(a),c=a.ownerDocument,u=c.defaultView||c.parentWindow;return s.left+=getScroll$1(u),s.left}var _excluded$e=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Rate$1(a,s){var c=a.prefixCls,u=c===void 0?"rc-rate":c,d=a.className,p=a.defaultValue,v=a.value,A=a.count,b=A===void 0?5:A,g=a.allowHalf,x=g===void 0?!1:g,y=a.allowClear,f=y===void 0?!0:y,m=a.keyboard,C=m===void 0?!0:m,S=a.character,w=S===void 0?"★":S,I=a.characterRender,P=a.disabled,$=a.direction,_=$===void 0?"ltr":$,E=a.tabIndex,R=E===void 0?0:E,T=a.autoFocus,B=a.onHoverChange,M=a.onChange,D=a.onFocus,O=a.onBlur,H=a.onKeyDown,j=a.onMouseLeave,Q=_objectWithoutProperties$2(a,_excluded$e),L=useRefs(),F=_slicedToArray$e(L,2),U=F[0],N=F[1],k=React.useRef(null),W=function(){if(!P){var pe;(pe=k.current)===null||pe===void 0||pe.focus()}};React.useImperativeHandle(s,function(){return{focus:W,blur:function(){if(!P){var pe;(pe=k.current)===null||pe===void 0||pe.blur()}}}});var J=useMergedState(p||0,{value:v}),q=_slicedToArray$e(J,2),Y=q[0],Z=q[1],ee=useMergedState(null),re=_slicedToArray$e(ee,2),ae=re[0],V=re[1],K=function(pe,he){var Ie=_==="rtl",ye=pe+1;if(x){var Pe=U(pe),Le=getOffsetLeft(Pe),Ne=Pe.clientWidth;(Ie&&he-Le>Ne/2||!Ie&&he-Le<Ne/2)&&(ye-=.5)}return ye},te=function(pe){Z(pe),M==null||M(pe)},ie=React.useState(!1),ce=_slicedToArray$e(ie,2),ge=ce[0],Se=ce[1],be=function(){Se(!0),D==null||D()},me=function(){Se(!1),O==null||O()},fe=React.useState(null),se=_slicedToArray$e(fe,2),oe=se[0],de=se[1],le=function(pe,he){var Ie=K(he,pe.pageX);Ie!==ae&&(de(Ie),V(null)),B==null||B(Ie)},xe=function(pe){P||(de(null),V(null),B==null||B(void 0)),pe&&(j==null||j(pe))},Ce=function(pe,he){var Ie=K(he,pe.pageX),ye=!1;f&&(ye=Ie===Y),xe(),te(ye?0:Ie),V(ye?Ie:null)},$e=function(pe){var he=pe.keyCode,Ie=_==="rtl",ye=x?.5:1;C&&(he===KeyCode.RIGHT&&Y<b&&!Ie?(te(Y+ye),pe.preventDefault()):he===KeyCode.LEFT&&Y>0&&!Ie||he===KeyCode.RIGHT&&Y>0&&Ie?(te(Y-ye),pe.preventDefault()):he===KeyCode.LEFT&&Y<b&&Ie&&(te(Y+ye),pe.preventDefault())),H==null||H(pe)};React.useEffect(function(){T&&!P&&W()},[]);var we=new Array(b).fill(0).map(function(Ae,pe){return React.createElement(Star$1,{ref:N(pe),index:pe,count:b,disabled:P,prefixCls:"".concat(u,"-star"),allowHalf:x,value:oe===null?Y:oe,onClick:Ce,onHover:le,key:Ae||pe,character:w,characterRender:I,focused:ge})}),Ee=classnames(u,d,_defineProperty$a(_defineProperty$a({},"".concat(u,"-disabled"),P),"".concat(u,"-rtl"),_==="rtl"));return React.createElement("ul",_extends$3({className:Ee,onMouseLeave:xe,tabIndex:P?-1:R,onFocus:P?null:be,onBlur:P?null:me,onKeyDown:P?null:$e,ref:k},pickAttrs(Q,{aria:!0,data:!0,attr:!0})),we)}const Rate$2=React.forwardRef(Rate$1),genRateStarStyle=a=>{const{componentCls:s}=a;return{[`${s}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:a.marginXS},"> div":{transition:`all ${a.motionDurationMid}, outline 0s`,"&:hover":{transform:a.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${unit$1(a.lineWidth)} dashed ${a.starColor}`,transform:a.starHoverScale}},"&-first, &-second":{color:a.starBg,transition:`all ${a.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${s}-star-first, &-half ${s}-star-second`]:{opacity:1},[`&-half ${s}-star-first, &-full ${s}-star-second`]:{color:"inherit"}}}},genRateRtlStyle=a=>({[`&-rtl${a.componentCls}`]:{direction:"rtl"}}),genRateStyle=a=>{const{componentCls:s}=a;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(a)),{display:"inline-block",margin:0,padding:0,color:a.starColor,fontSize:a.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${s} ${s}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),genRateStarStyle(a)),genRateRtlStyle(a))}},prepareComponentToken$6=a=>({starColor:a.yellow6,starSize:a.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:a.colorFillContent}),useStyle$6=genStyleHooks("Rate",a=>{const s=merge(a,{});return[genRateStyle(s)]},prepareComponentToken$6);var __rest$d=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const Rate=reactExports.forwardRef((a,s)=>{const{prefixCls:c,className:u,rootClassName:d,style:p,tooltips:v,character:A=reactExports.createElement(RefIcon$1,null),disabled:b}=a,g=__rest$d(a,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),x=(E,R)=>{let{index:T}=R;return v?reactExports.createElement(Tooltip,{title:v[T]},E):E},{getPrefixCls:y,direction:f,rate:m}=reactExports.useContext(ConfigContext$1),C=y("rate",c),[S,w,I]=useStyle$6(C),P=Object.assign(Object.assign({},m==null?void 0:m.style),p),$=reactExports.useContext(DisabledContext),_=b??$;return S(reactExports.createElement(Rate$2,Object.assign({ref:s,character:A,characterRender:x,disabled:_},g,{className:classnames(u,d,w,I,m==null?void 0:m.className),style:P,prefixCls:C,direction:f})))}),NoFound=()=>reactExports.createElement("svg",{width:"252",height:"294"},reactExports.createElement("title",null,"No Found"),reactExports.createElement("defs",null,reactExports.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{transform:"translate(0 .012)"},reactExports.createElement("mask",{fill:"#fff"}),reactExports.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),reactExports.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),reactExports.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),reactExports.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),reactExports.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),reactExports.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),reactExports.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),reactExports.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),reactExports.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),reactExports.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),reactExports.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),reactExports.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),reactExports.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),reactExports.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),reactExports.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),reactExports.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),reactExports.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),reactExports.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),reactExports.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),reactExports.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),reactExports.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),reactExports.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),reactExports.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),reactExports.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),reactExports.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),reactExports.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),reactExports.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),reactExports.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),reactExports.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),reactExports.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),reactExports.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),reactExports.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),reactExports.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),reactExports.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),reactExports.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),reactExports.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),reactExports.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),reactExports.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),ServerError=()=>reactExports.createElement("svg",{width:"254",height:"294"},reactExports.createElement("title",null,"Server Error"),reactExports.createElement("defs",null,reactExports.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),reactExports.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{transform:"translate(0 .067)"},reactExports.createElement("mask",{fill:"#fff"}),reactExports.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),reactExports.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),reactExports.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),reactExports.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),reactExports.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),reactExports.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),reactExports.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),reactExports.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),reactExports.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),reactExports.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),reactExports.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),reactExports.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),reactExports.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),reactExports.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),reactExports.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),reactExports.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),reactExports.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),reactExports.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),reactExports.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),reactExports.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),reactExports.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),reactExports.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),reactExports.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),reactExports.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),reactExports.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),reactExports.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),reactExports.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),reactExports.createElement("mask",{fill:"#fff"}),reactExports.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),reactExports.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),reactExports.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),reactExports.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),reactExports.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),reactExports.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),reactExports.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),reactExports.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),reactExports.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),reactExports.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),reactExports.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),genBaseStyle$3=a=>{const{componentCls:s,lineHeightHeading3:c,iconCls:u,padding:d,paddingXL:p,paddingXS:v,paddingLG:A,marginXS:b,lineHeight:g}=a;return{[s]:{padding:`${unit$1(a.calc(A).mul(2).equal())} ${unit$1(p)}`,"&-rtl":{direction:"rtl"}},[`${s} ${s}-image`]:{width:a.imageWidth,height:a.imageHeight,margin:"auto"},[`${s} ${s}-icon`]:{marginBottom:A,textAlign:"center",[`& > ${u}`]:{fontSize:a.iconFontSize}},[`${s} ${s}-title`]:{color:a.colorTextHeading,fontSize:a.titleFontSize,lineHeight:c,marginBlock:b,textAlign:"center"},[`${s} ${s}-subtitle`]:{color:a.colorTextDescription,fontSize:a.subtitleFontSize,lineHeight:g,textAlign:"center"},[`${s} ${s}-content`]:{marginTop:A,padding:`${unit$1(A)} ${unit$1(a.calc(d).mul(2.5).equal())}`,backgroundColor:a.colorFillAlter},[`${s} ${s}-extra`]:{margin:a.extraMargin,textAlign:"center","& > *":{marginInlineEnd:v,"&:last-child":{marginInlineEnd:0}}}}},genStatusIconStyle=a=>{const{componentCls:s,iconCls:c}=a;return{[`${s}-success ${s}-icon > ${c}`]:{color:a.resultSuccessIconColor},[`${s}-error ${s}-icon > ${c}`]:{color:a.resultErrorIconColor},[`${s}-info ${s}-icon > ${c}`]:{color:a.resultInfoIconColor},[`${s}-warning ${s}-icon > ${c}`]:{color:a.resultWarningIconColor}}},genResultStyle=a=>[genBaseStyle$3(a),genStatusIconStyle(a)],getStyle=a=>genResultStyle(a),prepareComponentToken$5=a=>({titleFontSize:a.fontSizeHeading3,subtitleFontSize:a.fontSize,iconFontSize:a.fontSizeHeading3*3,extraMargin:`${a.paddingLG}px 0 0 0`}),useStyle$5=genStyleHooks("Result",a=>{const s=a.colorInfo,c=a.colorError,u=a.colorSuccess,d=a.colorWarning,p=merge(a,{resultInfoIconColor:s,resultErrorIconColor:c,resultSuccessIconColor:u,resultWarningIconColor:d,imageWidth:250,imageHeight:295});return[getStyle(p)]},prepareComponentToken$5),Unauthorized=()=>reactExports.createElement("svg",{width:"251",height:"294"},reactExports.createElement("title",null,"Unauthorized"),reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),reactExports.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),reactExports.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),reactExports.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),reactExports.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),reactExports.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),reactExports.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),reactExports.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),reactExports.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),reactExports.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),reactExports.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),reactExports.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),reactExports.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),reactExports.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),reactExports.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),reactExports.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),reactExports.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),reactExports.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),reactExports.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),reactExports.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),reactExports.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),reactExports.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),reactExports.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),reactExports.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),reactExports.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),reactExports.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),reactExports.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),reactExports.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),reactExports.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),reactExports.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),reactExports.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),reactExports.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),reactExports.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),reactExports.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),reactExports.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),IconMap={success:RefIcon$K,error:RefIcon$J,info:RefIcon$H,warning:RefIcon},ExceptionMap={404:NoFound,500:ServerError,403:Unauthorized},ExceptionStatus=Object.keys(ExceptionMap),Icon$1=a=>{let{prefixCls:s,icon:c,status:u}=a;const d=classnames(`${s}-icon`);if(ExceptionStatus.includes(`${u}`)){const v=ExceptionMap[u];return reactExports.createElement("div",{className:`${d} ${s}-image`},reactExports.createElement(v,null))}const p=reactExports.createElement(IconMap[u]);return c===null||c===!1?null:reactExports.createElement("div",{className:d},c||p)},Extra=a=>{let{prefixCls:s,extra:c}=a;return c?reactExports.createElement("div",{className:`${s}-extra`},c):null},Result$1=a=>{let{prefixCls:s,className:c,rootClassName:u,subTitle:d,title:p,style:v,children:A,status:b="info",icon:g,extra:x}=a;const{getPrefixCls:y,direction:f,result:m}=reactExports.useContext(ConfigContext$1),C=y("result",s),[S,w,I]=useStyle$5(C),P=classnames(C,`${C}-${b}`,c,m==null?void 0:m.className,u,{[`${C}-rtl`]:f==="rtl"},w,I),$=Object.assign(Object.assign({},m==null?void 0:m.style),v);return S(reactExports.createElement("div",{className:P,style:$},reactExports.createElement(Icon$1,{prefixCls:C,status:b,icon:g}),reactExports.createElement("div",{className:`${C}-title`},p),d&&reactExports.createElement("div",{className:`${C}-subtitle`},d),reactExports.createElement(Extra,{prefixCls:C,extra:x}),A&&reactExports.createElement("div",{className:`${C}-content`},A)))};Result$1.PRESENTED_IMAGE_403=ExceptionMap[403],Result$1.PRESENTED_IMAGE_404=ExceptionMap[404],Result$1.PRESENTED_IMAGE_500=ExceptionMap[500];var _excluded$d=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Switch$2=reactExports.forwardRef(function(a,s){var c,u=a.prefixCls,d=u===void 0?"rc-switch":u,p=a.className,v=a.checked,A=a.defaultChecked,b=a.disabled,g=a.loadingIcon,x=a.checkedChildren,y=a.unCheckedChildren,f=a.onClick,m=a.onChange,C=a.onKeyDown,S=_objectWithoutProperties$2(a,_excluded$d),w=useMergedState(!1,{value:v,defaultValue:A}),I=_slicedToArray$e(w,2),P=I[0],$=I[1];function _(B,M){var D=P;return b||(D=B,$(D),m==null||m(D,M)),D}function E(B){B.which===KeyCode.LEFT?_(!1,B):B.which===KeyCode.RIGHT&&_(!0,B),C==null||C(B)}function R(B){var M=_(!P,B);f==null||f(M,B)}var T=classnames(d,p,(c={},_defineProperty$a(c,"".concat(d,"-checked"),P),_defineProperty$a(c,"".concat(d,"-disabled"),b),c));return reactExports.createElement("button",_extends$3({},S,{type:"button",role:"switch","aria-checked":P,disabled:b,className:T,ref:s,onKeyDown:E,onClick:R}),g,reactExports.createElement("span",{className:"".concat(d,"-inner")},reactExports.createElement("span",{className:"".concat(d,"-inner-checked")},x),reactExports.createElement("span",{className:"".concat(d,"-inner-unchecked")},y)))});Switch$2.displayName="Switch";const genSwitchSmallStyle=a=>{const{componentCls:s,trackHeightSM:c,trackPadding:u,trackMinWidthSM:d,innerMinMarginSM:p,innerMaxMarginSM:v,handleSizeSM:A,calc:b}=a,g=`${s}-inner`,x=unit$1(b(A).add(b(u).mul(2)).equal()),y=unit$1(b(v).mul(2).equal());return{[s]:{[`&${s}-small`]:{minWidth:d,height:c,lineHeight:unit$1(c),[`${s}-inner`]:{paddingInlineStart:v,paddingInlineEnd:p,[`${g}-checked, ${g}-unchecked`]:{minHeight:c},[`${g}-checked`]:{marginInlineStart:`calc(-100% + ${x} - ${y})`,marginInlineEnd:`calc(100% - ${x} + ${y})`},[`${g}-unchecked`]:{marginTop:b(c).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${s}-handle`]:{width:A,height:A},[`${s}-loading-icon`]:{top:b(b(A).sub(a.switchLoadingIconSize)).div(2).equal(),fontSize:a.switchLoadingIconSize},[`&${s}-checked`]:{[`${s}-inner`]:{paddingInlineStart:p,paddingInlineEnd:v,[`${g}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${g}-unchecked`]:{marginInlineStart:`calc(100% - ${x} + ${y})`,marginInlineEnd:`calc(-100% + ${x} - ${y})`}},[`${s}-handle`]:{insetInlineStart:`calc(100% - ${unit$1(b(A).add(u).equal())})`}},[`&:not(${s}-disabled):active`]:{[`&:not(${s}-checked) ${g}`]:{[`${g}-unchecked`]:{marginInlineStart:b(a.marginXXS).div(2).equal(),marginInlineEnd:b(a.marginXXS).mul(-1).div(2).equal()}},[`&${s}-checked ${g}`]:{[`${g}-checked`]:{marginInlineStart:b(a.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:b(a.marginXXS).div(2).equal()}}}}}}},genSwitchLoadingStyle=a=>{const{componentCls:s,handleSize:c,calc:u}=a;return{[s]:{[`${s}-loading-icon${a.iconCls}`]:{position:"relative",top:u(u(c).sub(a.fontSize)).div(2).equal(),color:a.switchLoadingIconColor,verticalAlign:"top"},[`&${s}-checked ${s}-loading-icon`]:{color:a.switchColor}}}},genSwitchHandleStyle=a=>{const{componentCls:s,trackPadding:c,handleBg:u,handleShadow:d,handleSize:p,calc:v}=a,A=`${s}-handle`;return{[s]:{[A]:{position:"absolute",top:c,insetInlineStart:c,width:p,height:p,transition:`all ${a.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:u,borderRadius:v(p).div(2).equal(),boxShadow:d,transition:`all ${a.switchDuration} ease-in-out`,content:'""'}},[`&${s}-checked ${A}`]:{insetInlineStart:`calc(100% - ${unit$1(v(p).add(c).equal())})`},[`&:not(${s}-disabled):active`]:{[`${A}::before`]:{insetInlineEnd:a.switchHandleActiveInset,insetInlineStart:0},[`&${s}-checked ${A}::before`]:{insetInlineEnd:0,insetInlineStart:a.switchHandleActiveInset}}}}},genSwitchInnerStyle=a=>{const{componentCls:s,trackHeight:c,trackPadding:u,innerMinMargin:d,innerMaxMargin:p,handleSize:v,calc:A}=a,b=`${s}-inner`,g=unit$1(A(v).add(A(u).mul(2)).equal()),x=unit$1(A(p).mul(2).equal());return{[s]:{[b]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:p,paddingInlineEnd:d,transition:`padding-inline-start ${a.switchDuration} ease-in-out, padding-inline-end ${a.switchDuration} ease-in-out`,[`${b}-checked, ${b}-unchecked`]:{display:"block",color:a.colorTextLightSolid,fontSize:a.fontSizeSM,transition:`margin-inline-start ${a.switchDuration} ease-in-out, margin-inline-end ${a.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:c},[`${b}-checked`]:{marginInlineStart:`calc(-100% + ${g} - ${x})`,marginInlineEnd:`calc(100% - ${g} + ${x})`},[`${b}-unchecked`]:{marginTop:A(c).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${s}-checked ${b}`]:{paddingInlineStart:d,paddingInlineEnd:p,[`${b}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${b}-unchecked`]:{marginInlineStart:`calc(100% - ${g} + ${x})`,marginInlineEnd:`calc(-100% + ${g} - ${x})`}},[`&:not(${s}-disabled):active`]:{[`&:not(${s}-checked) ${b}`]:{[`${b}-unchecked`]:{marginInlineStart:A(u).mul(2).equal(),marginInlineEnd:A(u).mul(-1).mul(2).equal()}},[`&${s}-checked ${b}`]:{[`${b}-checked`]:{marginInlineStart:A(u).mul(-1).mul(2).equal(),marginInlineEnd:A(u).mul(2).equal()}}}}}},genSwitchStyle=a=>{const{componentCls:s,trackHeight:c,trackMinWidth:u}=a;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(a)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:u,height:c,lineHeight:unit$1(c),verticalAlign:"middle",background:a.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${a.motionDurationMid}`,userSelect:"none",[`&:hover:not(${s}-disabled)`]:{background:a.colorTextTertiary}}),genFocusStyle(a)),{[`&${s}-checked`]:{background:a.switchColor,[`&:hover:not(${s}-disabled)`]:{background:a.colorPrimaryHover}},[`&${s}-loading, &${s}-disabled`]:{cursor:"not-allowed",opacity:a.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${s}-rtl`]:{direction:"rtl"}})}},prepareComponentToken$4=a=>{const{fontSize:s,lineHeight:c,controlHeight:u,colorWhite:d}=a,p=s*c,v=u/2,A=2,b=p-A*2,g=v-A*2;return{trackHeight:p,trackHeightSM:v,trackMinWidth:b*2+A*4,trackMinWidthSM:g*2+A*2,trackPadding:A,handleBg:d,handleSize:b,handleSizeSM:g,handleShadow:`0 2px 4px 0 ${new FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:b/2,innerMaxMargin:b+A+A*2,innerMinMarginSM:g/2,innerMaxMarginSM:g+A+A*2}},useStyle$4=genStyleHooks("Switch",a=>{const s=merge(a,{switchDuration:a.motionDurationMid,switchColor:a.colorPrimary,switchDisabledOpacity:a.opacityLoading,switchLoadingIconSize:a.calc(a.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${a.opacityLoading})`,switchHandleActiveInset:"-30%"});return[genSwitchStyle(s),genSwitchInnerStyle(s),genSwitchHandleStyle(s),genSwitchLoadingStyle(s),genSwitchSmallStyle(s)]},prepareComponentToken$4);var __rest$c=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const InternalSwitch=reactExports.forwardRef((a,s)=>{const{prefixCls:c,size:u,disabled:d,loading:p,className:v,rootClassName:A,style:b,checked:g,value:x,defaultChecked:y,defaultValue:f,onChange:m}=a,C=__rest$c(a,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[S,w]=useMergedState(!1,{value:g??x,defaultValue:y??f}),{getPrefixCls:I,direction:P,switch:$}=reactExports.useContext(ConfigContext$1),_=reactExports.useContext(DisabledContext),E=(d??_)||p,R=I("switch",c),T=reactExports.createElement("div",{className:`${R}-handle`},p&&reactExports.createElement(RefIcon$F,{className:`${R}-loading-icon`})),[B,M,D]=useStyle$4(R),O=useSize(u),H=classnames($==null?void 0:$.className,{[`${R}-small`]:O==="small",[`${R}-loading`]:p,[`${R}-rtl`]:P==="rtl"},v,A,M,D),j=Object.assign(Object.assign({},$==null?void 0:$.style),b),Q=function(){w(arguments.length<=0?void 0:arguments[0]),m==null||m.apply(void 0,arguments)};return B(reactExports.createElement(Wave,{component:"Switch"},reactExports.createElement(Switch$2,Object.assign({},C,{checked:S,onChange:Q,prefixCls:R,className:H,style:j,disabled:E,ref:s,loadingIcon:T}))))}),Switch$1=InternalSwitch;Switch$1.__ANT_SWITCH=!0;var EXPAND_COLUMN={},INTERNAL_HOOKS="rc-table-internal-hook";function createContext(a){var s=reactExports.createContext(void 0),c=function(d){var p=d.value,v=d.children,A=reactExports.useRef(p);A.current=p;var b=reactExports.useState(function(){return{getValue:function(){return A.current},listeners:new Set}}),g=_slicedToArray$e(b,1),x=g[0];return useLayoutEffect$1(function(){reactDomExports.unstable_batchedUpdates(function(){x.listeners.forEach(function(y){y(p)})})},[p]),reactExports.createElement(s.Provider,{value:x},v)};return{Context:s,Provider:c,defaultValue:a}}function useContext(a,s){var c=useEvent(typeof s=="function"?s:function(y){if(s===void 0)return y;if(!Array.isArray(s))return y[s];var f={};return s.forEach(function(m){f[m]=y[m]}),f}),u=reactExports.useContext(a==null?void 0:a.Context),d=u||{},p=d.listeners,v=d.getValue,A=reactExports.useRef();A.current=c(u?v():a==null?void 0:a.defaultValue);var b=reactExports.useState({}),g=_slicedToArray$e(b,2),x=g[1];return useLayoutEffect$1(function(){if(!u)return;function y(f){var m=c(f);isEqual(A.current,m,!0)||x({})}return p.add(y),function(){p.delete(y)}},[u]),A.current}function createImmutable(){var a=reactExports.createContext(null);function s(){return reactExports.useContext(a)}function c(d,p){var v=supportRef(d),A=function(g,x){var y=v?{ref:x}:{},f=reactExports.useRef(0),m=reactExports.useRef(g),C=s();return C!==null?reactExports.createElement(d,_extends$3({},g,y)):((!p||p(m.current,g))&&(f.current+=1),m.current=g,reactExports.createElement(a.Provider,{value:f.current},reactExports.createElement(d,_extends$3({},g,y))))};return v?reactExports.forwardRef(A):A}function u(d,p){var v=supportRef(d),A=function(g,x){var y=v?{ref:x}:{};return s(),reactExports.createElement(d,_extends$3({},g,y))};return v?reactExports.memo(reactExports.forwardRef(A),p):reactExports.memo(A,p)}return{makeImmutable:c,responseImmutable:u,useImmutableMark:s}}var _createImmutable=createImmutable(),makeImmutable=_createImmutable.makeImmutable,responseImmutable=_createImmutable.responseImmutable,useImmutableMark=_createImmutable.useImmutableMark,TableContext=createContext(),PerfContext=reactExports.createContext({renderWithProps:!1}),INTERNAL_KEY_PREFIX="RC_TABLE_KEY";function toArray$1(a){return a==null?[]:Array.isArray(a)?a:[a]}function getColumnsKey(a){var s=[],c={};return a.forEach(function(u){for(var d=u||{},p=d.key,v=d.dataIndex,A=p||toArray$1(v).join("-")||INTERNAL_KEY_PREFIX;c[A];)A="".concat(A,"_next");c[A]=!0,s.push(A)}),s}function validateValue(a){return a!=null}function validNumberValue(a){return typeof a=="number"&&!Number.isNaN(a)}function isRenderCell(a){return a&&_typeof$h(a)==="object"&&!Array.isArray(a)&&!reactExports.isValidElement(a)}function useCellRender(a,s,c,u,d,p){var v=reactExports.useContext(PerfContext),A=useImmutableMark(),b=useMemo(function(){if(validateValue(u))return[u];var g=s==null||s===""?[]:Array.isArray(s)?s:[s],x=get$1(a,g),y=x,f=void 0;if(d){var m=d(x,a,c);isRenderCell(m)?(y=m.children,f=m.props,v.renderWithProps=!0):y=m}return[y,f]},[A,a,u,s,d,c],function(g,x){if(p){var y=_slicedToArray$e(g,2),f=y[1],m=_slicedToArray$e(x,2),C=m[1];return p(C,f)}return v.renderWithProps?!0:!isEqual(g,x,!0)});return b}function inHoverRange(a,s,c,u){var d=a+s-1;return a<=u&&d>=c}function useHoverState(a,s){return useContext(TableContext,function(c){var u=inHoverRange(a,s||1,c.hoverStartRow,c.hoverEndRow);return[u,c.onHover]})}var getTitleFromCellRenderChildren=function a(s){var c=s.ellipsis,u=s.rowType,d=s.children,p,v=c===!0?{showTitle:!0}:c;return v&&(v.showTitle||u==="header")&&(typeof d=="string"||typeof d=="number"?p=d.toString():reactExports.isValidElement(d)&&typeof d.props.children=="string"&&(p=d.props.children)),p};function Cell(a){var s,c,u,d,p,v,A,b,g=a.component,x=a.children,y=a.ellipsis,f=a.scope,m=a.prefixCls,C=a.className,S=a.align,w=a.record,I=a.render,P=a.dataIndex,$=a.renderIndex,_=a.shouldCellUpdate,E=a.index,R=a.rowType,T=a.colSpan,B=a.rowSpan,M=a.fixLeft,D=a.fixRight,O=a.firstFixLeft,H=a.lastFixLeft,j=a.firstFixRight,Q=a.lastFixRight,L=a.appendNode,F=a.additionalProps,U=F===void 0?{}:F,N=a.isSticky,k="".concat(m,"-cell"),W=useContext(TableContext,["supportSticky","allColumnsFixedLeft","rowHoverable"]),J=W.supportSticky,q=W.allColumnsFixedLeft,Y=W.rowHoverable,Z=useCellRender(w,P,$,x,I,_),ee=_slicedToArray$e(Z,2),re=ee[0],ae=ee[1],V={},K=typeof M=="number"&&J,te=typeof D=="number"&&J;K&&(V.position="sticky",V.left=M),te&&(V.position="sticky",V.right=D);var ie=(s=(c=(u=ae==null?void 0:ae.colSpan)!==null&&u!==void 0?u:U.colSpan)!==null&&c!==void 0?c:T)!==null&&s!==void 0?s:1,ce=(d=(p=(v=ae==null?void 0:ae.rowSpan)!==null&&v!==void 0?v:U.rowSpan)!==null&&p!==void 0?p:B)!==null&&d!==void 0?d:1,ge=useHoverState(E,ce),Se=_slicedToArray$e(ge,2),be=Se[0],me=Se[1],fe=useEvent(function($e){var we;w&&me(E,E+ce-1),U==null||(we=U.onMouseEnter)===null||we===void 0||we.call(U,$e)}),se=useEvent(function($e){var we;w&&me(-1,-1),U==null||(we=U.onMouseLeave)===null||we===void 0||we.call(U,$e)});if(ie===0||ce===0)return null;var oe=(A=U.title)!==null&&A!==void 0?A:getTitleFromCellRenderChildren({rowType:R,ellipsis:y,children:re}),de=classnames(k,C,(b={},_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(b,"".concat(k,"-fix-left"),K&&J),"".concat(k,"-fix-left-first"),O&&J),"".concat(k,"-fix-left-last"),H&&J),"".concat(k,"-fix-left-all"),H&&q&&J),"".concat(k,"-fix-right"),te&&J),"".concat(k,"-fix-right-first"),j&&J),"".concat(k,"-fix-right-last"),Q&&J),"".concat(k,"-ellipsis"),y),"".concat(k,"-with-append"),L),"".concat(k,"-fix-sticky"),(K||te)&&N&&J),_defineProperty$a(b,"".concat(k,"-row-hover"),!ae&&be)),U.className,ae==null?void 0:ae.className),le={};S&&(le.textAlign=S);var xe=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},ae==null?void 0:ae.style),V),le),U.style),Ce=re;return _typeof$h(Ce)==="object"&&!Array.isArray(Ce)&&!reactExports.isValidElement(Ce)&&(Ce=null),y&&(H||j)&&(Ce=reactExports.createElement("span",{className:"".concat(k,"-content")},Ce)),reactExports.createElement(g,_extends$3({},ae,U,{className:de,style:xe,title:oe,scope:f,onMouseEnter:Y?fe:void 0,onMouseLeave:Y?se:void 0,colSpan:ie!==1?ie:null,rowSpan:ce!==1?ce:null}),L,Ce)}const Cell$1=reactExports.memo(Cell);function getCellFixedInfo(a,s,c,u,d){var p=c[a]||{},v=c[s]||{},A,b;p.fixed==="left"?A=u.left[d==="rtl"?s:a]:v.fixed==="right"&&(b=u.right[d==="rtl"?a:s]);var g=!1,x=!1,y=!1,f=!1,m=c[s+1],C=c[a-1],S=m&&!m.fixed||C&&!C.fixed||c.every(function(_){return _.fixed==="left"});if(d==="rtl"){if(A!==void 0){var w=C&&C.fixed==="left";f=!w&&S}else if(b!==void 0){var I=m&&m.fixed==="right";y=!I&&S}}else if(A!==void 0){var P=m&&m.fixed==="left";g=!P&&S}else if(b!==void 0){var $=C&&C.fixed==="right";x=!$&&S}return{fixLeft:A,fixRight:b,lastFixLeft:g,firstFixRight:x,lastFixRight:y,firstFixLeft:f,isSticky:u.isSticky}}var SummaryContext=reactExports.createContext({});function SummaryCell(a){var s=a.className,c=a.index,u=a.children,d=a.colSpan,p=d===void 0?1:d,v=a.rowSpan,A=a.align,b=useContext(TableContext,["prefixCls","direction"]),g=b.prefixCls,x=b.direction,y=reactExports.useContext(SummaryContext),f=y.scrollColumnIndex,m=y.stickyOffsets,C=y.flattenColumns,S=c+p-1,w=S+1===f?p+1:p,I=getCellFixedInfo(c,c+w-1,C,m,x);return reactExports.createElement(Cell$1,_extends$3({className:s,index:c,component:"td",prefixCls:g,record:null,dataIndex:null,align:A,colSpan:w,rowSpan:v,render:function(){return u}},I))}var _excluded$c=["children"];function FooterRow(a){var s=a.children,c=_objectWithoutProperties$2(a,_excluded$c);return reactExports.createElement("tr",c,s)}function Summary(a){var s=a.children;return s}Summary.Row=FooterRow,Summary.Cell=SummaryCell;function Footer(a){var s=a.children,c=a.stickyOffsets,u=a.flattenColumns,d=useContext(TableContext,"prefixCls"),p=u.length-1,v=u[p],A=reactExports.useMemo(function(){return{stickyOffsets:c,flattenColumns:u,scrollColumnIndex:v!=null&&v.scrollbar?p:null}},[v,u,p,c]);return reactExports.createElement(SummaryContext.Provider,{value:A},reactExports.createElement("tfoot",{className:"".concat(d,"-summary")},s))}const Footer$1=responseImmutable(Footer);var FooterComponents=Summary;function Column$1(a){return null}function ColumnGroup$1(a){return null}function fillRecords(a,s,c,u,d,p,v){a.push({record:s,indent:c,index:v});var A=p(s),b=d==null?void 0:d.has(A);if(s&&Array.isArray(s[u])&&b)for(var g=0;g<s[u].length;g+=1)fillRecords(a,s[u][g],c+1,u,d,p,g)}function useFlattenRecords(a,s,c,u){var d=reactExports.useMemo(function(){if(c!=null&&c.size){for(var p=[],v=0;v<(a==null?void 0:a.length);v+=1){var A=a[v];fillRecords(p,A,0,s,c,u,v)}return p}return a==null?void 0:a.map(function(b,g){return{record:b,indent:0,index:g}})},[a,s,c,u]);return d}function useRowInfo(a,s,c,u){var d=useContext(TableContext,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),p=d.flattenColumns,v=d.expandableType,A=d.expandedKeys,b=d.childrenColumnName,g=d.onTriggerExpand,x=d.rowExpandable,y=d.onRow,f=d.expandRowByClick,m=d.rowClassName,C=v==="nest",S=v==="row"&&(!x||x(a)),w=S||C,I=A&&A.has(s),P=b&&a&&a[b],$=useEvent(g),_=y==null?void 0:y(a,c),E=_==null?void 0:_.onClick,R=function(D){f&&w&&g(a,D);for(var O=arguments.length,H=new Array(O>1?O-1:0),j=1;j<O;j++)H[j-1]=arguments[j];E==null||E.apply(void 0,[D].concat(H))},T;typeof m=="string"?T=m:typeof m=="function"&&(T=m(a,c,u));var B=getColumnsKey(p);return _objectSpread2$1(_objectSpread2$1({},d),{},{columnsKey:B,nestExpandable:C,expanded:I,hasNestChildren:P,record:a,onTriggerExpand:$,rowSupportExpand:S,expandable:w,rowProps:_objectSpread2$1(_objectSpread2$1({},_),{},{className:classnames(T,_==null?void 0:_.className),onClick:R})})}function ExpandedRow(a){var s=a.prefixCls,c=a.children,u=a.component,d=a.cellComponent,p=a.className,v=a.expanded,A=a.colSpan,b=a.isEmpty,g=useContext(TableContext,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),x=g.scrollbarSize,y=g.fixHeader,f=g.fixColumn,m=g.componentWidth,C=g.horizonScroll,S=c;return(b?C&&m:f)&&(S=reactExports.createElement("div",{style:{width:m-(y&&!b?x:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(s,"-expanded-row-fixed")},S)),reactExports.createElement(u,{className:p,style:{display:v?null:"none"}},reactExports.createElement(Cell$1,{component:d,prefixCls:s,colSpan:A},S))}function renderExpandIcon$1(a){var s=a.prefixCls,c=a.record,u=a.onExpand,d=a.expanded,p=a.expandable,v="".concat(s,"-row-expand-icon");if(!p)return reactExports.createElement("span",{className:classnames(v,"".concat(s,"-row-spaced"))});var A=function(g){u(c,g),g.stopPropagation()};return reactExports.createElement("span",{className:classnames(v,_defineProperty$a(_defineProperty$a({},"".concat(s,"-row-expanded"),d),"".concat(s,"-row-collapsed"),!d)),onClick:A})}function findAllChildrenKeys(a,s,c){var u=[];function d(p){(p||[]).forEach(function(v,A){u.push(s(v,A)),d(v[c])})}return d(a),u}function computedExpandedClassName(a,s,c,u){return typeof a=="string"?a:typeof a=="function"?a(s,c,u):""}function getCellProps(a,s,c,u,d){var p=a.record,v=a.prefixCls,A=a.columnsKey,b=a.fixedInfoList,g=a.expandIconColumnIndex,x=a.nestExpandable,y=a.indentSize,f=a.expandIcon,m=a.expanded,C=a.hasNestChildren,S=a.onTriggerExpand,w=A[c],I=b[c],P;c===(g||0)&&x&&(P=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{style:{paddingLeft:"".concat(y*u,"px")},className:"".concat(v,"-row-indent indent-level-").concat(u)}),f({prefixCls:v,expanded:m,expandable:C,record:p,onExpand:S})));var $;return s.onCell&&($=s.onCell(p,d)),{key:w,fixedInfo:I,appendCellNode:P,additionalCellProps:$||{}}}function BodyRow(a){var s=a.className,c=a.style,u=a.record,d=a.index,p=a.renderIndex,v=a.rowKey,A=a.indent,b=A===void 0?0:A,g=a.rowComponent,x=a.cellComponent,y=a.scopeCellComponent,f=useRowInfo(u,v,d,b),m=f.prefixCls,C=f.flattenColumns,S=f.expandedRowClassName,w=f.expandedRowRender,I=f.rowProps,P=f.expanded,$=f.rowSupportExpand,_=reactExports.useRef(!1);_.current||(_.current=P);var E=computedExpandedClassName(S,u,d,b),R=reactExports.createElement(g,_extends$3({},I,{"data-row-key":v,className:classnames(s,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(b),I==null?void 0:I.className,_defineProperty$a({},E,b>=1)),style:_objectSpread2$1(_objectSpread2$1({},c),I==null?void 0:I.style)}),C.map(function(M,D){var O=M.render,H=M.dataIndex,j=M.className,Q=getCellProps(f,M,D,b,d),L=Q.key,F=Q.fixedInfo,U=Q.appendCellNode,N=Q.additionalCellProps;return reactExports.createElement(Cell$1,_extends$3({className:j,ellipsis:M.ellipsis,align:M.align,scope:M.rowScope,component:M.rowScope?y:x,prefixCls:m,key:L,record:u,index:d,renderIndex:p,dataIndex:H,render:O,shouldCellUpdate:M.shouldCellUpdate},F,{appendNode:U,additionalProps:N}))})),T;if($&&(_.current||P)){var B=w(u,d,b+1,P);T=reactExports.createElement(ExpandedRow,{expanded:P,className:classnames("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(b+1),E),prefixCls:m,component:g,cellComponent:x,colSpan:C.length,isEmpty:!1},B)}return reactExports.createElement(reactExports.Fragment,null,R,T)}const BodyRow$1=responseImmutable(BodyRow);function MeasureCell(a){var s=a.columnKey,c=a.onColumnResize,u=reactExports.useRef();return reactExports.useEffect(function(){u.current&&c(s,u.current.offsetWidth)},[]),reactExports.createElement(RefResizeObserver,{data:s},reactExports.createElement("td",{ref:u,style:{padding:0,border:0,height:0}},reactExports.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function MeasureRow(a){var s=a.prefixCls,c=a.columnsKey,u=a.onColumnResize;return reactExports.createElement("tr",{"aria-hidden":"true",className:"".concat(s,"-measure-row"),style:{height:0,fontSize:0}},reactExports.createElement(RefResizeObserver.Collection,{onBatchResize:function(p){p.forEach(function(v){var A=v.data,b=v.size;u(A,b.offsetWidth)})}},c.map(function(d){return reactExports.createElement(MeasureCell,{key:d,columnKey:d,onColumnResize:u})})))}function Body(a){var s=a.data,c=a.measureColumnWidth,u=useContext(TableContext,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),d=u.prefixCls,p=u.getComponent,v=u.onColumnResize,A=u.flattenColumns,b=u.getRowKey,g=u.expandedKeys,x=u.childrenColumnName,y=u.emptyNode,f=useFlattenRecords(s,x,g,b),m=reactExports.useRef({renderWithProps:!1}),C=p(["body","wrapper"],"tbody"),S=p(["body","row"],"tr"),w=p(["body","cell"],"td"),I=p(["body","cell"],"th"),P;s.length?P=f.map(function(_,E){var R=_.record,T=_.indent,B=_.index,M=b(R,E);return reactExports.createElement(BodyRow$1,{key:M,rowKey:M,record:R,index:E,renderIndex:B,rowComponent:S,cellComponent:w,scopeCellComponent:I,indent:T})}):P=reactExports.createElement(ExpandedRow,{expanded:!0,className:"".concat(d,"-placeholder"),prefixCls:d,component:S,cellComponent:w,colSpan:A.length,isEmpty:!0},y);var $=getColumnsKey(A);return reactExports.createElement(PerfContext.Provider,{value:m.current},reactExports.createElement(C,{className:"".concat(d,"-tbody")},c&&reactExports.createElement(MeasureRow,{prefixCls:d,columnsKey:$,onColumnResize:v}),P))}const Body$1=responseImmutable(Body);var _excluded$b=["expandable"],INTERNAL_COL_DEFINE="RC_TABLE_INTERNAL_COL_DEFINE";function getExpandableProps(a){var s=a.expandable,c=_objectWithoutProperties$2(a,_excluded$b),u;return"expandable"in a?u=_objectSpread2$1(_objectSpread2$1({},c),s):u=c,u.showExpandColumn===!1&&(u.expandIconColumnIndex=-1),u}var _excluded$a=["columnType"];function ColGroup(a){for(var s=a.colWidths,c=a.columns,u=a.columCount,d=useContext(TableContext,["tableLayout"]),p=d.tableLayout,v=[],A=u||c.length,b=!1,g=A-1;g>=0;g-=1){var x=s[g],y=c&&c[g],f=void 0,m=void 0;if(y&&(f=y[INTERNAL_COL_DEFINE],p==="auto"&&(m=y.minWidth)),x||m||f||b){var C=f||{};C.columnType;var S=_objectWithoutProperties$2(C,_excluded$a);v.unshift(reactExports.createElement("col",_extends$3({key:g,style:{width:x,minWidth:m}},S))),b=!0}}return reactExports.createElement("colgroup",null,v)}var _excluded$9=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function useColumnWidth(a,s){return reactExports.useMemo(function(){for(var c=[],u=0;u<s;u+=1){var d=a[u];if(d!==void 0)c[u]=d;else return null}return c},[a.join("_"),s])}var FixedHolder=reactExports.forwardRef(function(a,s){var c=a.className,u=a.noData,d=a.columns,p=a.flattenColumns,v=a.colWidths,A=a.columCount,b=a.stickyOffsets,g=a.direction,x=a.fixHeader,y=a.stickyTopOffset,f=a.stickyBottomOffset,m=a.stickyClassName,C=a.onScroll,S=a.maxContentScroll,w=a.children,I=_objectWithoutProperties$2(a,_excluded$9),P=useContext(TableContext,["prefixCls","scrollbarSize","isSticky","getComponent"]),$=P.prefixCls,_=P.scrollbarSize,E=P.isSticky,R=P.getComponent,T=R(["header","table"],"table"),B=E&&!x?0:_,M=reactExports.useRef(null),D=reactExports.useCallback(function(N){fillRef(s,N),fillRef(M,N)},[]);reactExports.useEffect(function(){var N;function k(W){var J=W,q=J.currentTarget,Y=J.deltaX;Y&&(C({currentTarget:q,scrollLeft:q.scrollLeft+Y}),W.preventDefault())}return(N=M.current)===null||N===void 0||N.addEventListener("wheel",k,{passive:!1}),function(){var W;(W=M.current)===null||W===void 0||W.removeEventListener("wheel",k)}},[]);var O=reactExports.useMemo(function(){return p.every(function(N){return N.width})},[p]),H=p[p.length-1],j={fixed:H?H.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat($,"-cell-scrollbar")}}},Q=reactExports.useMemo(function(){return B?[].concat(_toConsumableArray$e(d),[j]):d},[B,d]),L=reactExports.useMemo(function(){return B?[].concat(_toConsumableArray$e(p),[j]):p},[B,p]),F=reactExports.useMemo(function(){var N=b.right,k=b.left;return _objectSpread2$1(_objectSpread2$1({},b),{},{left:g==="rtl"?[].concat(_toConsumableArray$e(k.map(function(W){return W+B})),[0]):k,right:g==="rtl"?N:[].concat(_toConsumableArray$e(N.map(function(W){return W+B})),[0]),isSticky:E})},[B,b,E]),U=useColumnWidth(v,A);return reactExports.createElement("div",{style:_objectSpread2$1({overflow:"hidden"},E?{top:y,bottom:f}:{}),ref:D,className:classnames(c,_defineProperty$a({},m,!!m))},reactExports.createElement(T,{style:{tableLayout:"fixed",visibility:u||U?null:"hidden"}},(!u||!S||O)&&reactExports.createElement(ColGroup,{colWidths:U?[].concat(_toConsumableArray$e(U),[B]):[],columCount:A+1,columns:L}),w(_objectSpread2$1(_objectSpread2$1({},I),{},{stickyOffsets:F,columns:Q,flattenColumns:L}))))});const FixedHolder$1=reactExports.memo(FixedHolder);var HeaderRow=function a(s){var c=s.cells,u=s.stickyOffsets,d=s.flattenColumns,p=s.rowComponent,v=s.cellComponent,A=s.onHeaderRow,b=s.index,g=useContext(TableContext,["prefixCls","direction"]),x=g.prefixCls,y=g.direction,f;A&&(f=A(c.map(function(C){return C.column}),b));var m=getColumnsKey(c.map(function(C){return C.column}));return reactExports.createElement(p,f,c.map(function(C,S){var w=C.column,I=getCellFixedInfo(C.colStart,C.colEnd,d,u,y),P;return w&&w.onHeaderCell&&(P=C.column.onHeaderCell(w)),reactExports.createElement(Cell$1,_extends$3({},C,{scope:w.title?C.colSpan>1?"colgroup":"col":null,ellipsis:w.ellipsis,align:w.align,component:v,prefixCls:x,key:m[S]},I,{additionalProps:P,rowType:"header"}))}))};function parseHeaderRows(a){var s=[];function c(v,A){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;s[b]=s[b]||[];var g=A,x=v.filter(Boolean).map(function(y){var f={key:y.key,className:y.className||"",children:y.title,column:y,colStart:g},m=1,C=y.children;return C&&C.length>0&&(m=c(C,g,b+1).reduce(function(S,w){return S+w},0),f.hasSubColumns=!0),"colSpan"in y&&(m=y.colSpan),"rowSpan"in y&&(f.rowSpan=y.rowSpan),f.colSpan=m,f.colEnd=f.colStart+m-1,s[b].push(f),g+=m,m});return x}c(a,0);for(var u=s.length,d=function(A){s[A].forEach(function(b){!("rowSpan"in b)&&!b.hasSubColumns&&(b.rowSpan=u-A)})},p=0;p<u;p+=1)d(p);return s}var Header=function a(s){var c=s.stickyOffsets,u=s.columns,d=s.flattenColumns,p=s.onHeaderRow,v=useContext(TableContext,["prefixCls","getComponent"]),A=v.prefixCls,b=v.getComponent,g=reactExports.useMemo(function(){return parseHeaderRows(u)},[u]),x=b(["header","wrapper"],"thead"),y=b(["header","row"],"tr"),f=b(["header","cell"],"th");return reactExports.createElement(x,{className:"".concat(A,"-thead")},g.map(function(m,C){var S=reactExports.createElement(HeaderRow,{key:C,flattenColumns:d,cells:m,stickyOffsets:c,rowComponent:y,cellComponent:f,onHeaderRow:p,index:C});return S}))};const Header$1=responseImmutable(Header);function parseColWidth(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof s=="number"?s:s.endsWith("%")?a*parseFloat(s)/100:null}function useWidthColumns(a,s,c){return reactExports.useMemo(function(){if(s&&s>0){var u=0,d=0;a.forEach(function(f){var m=parseColWidth(s,f.width);m?u+=m:d+=1});var p=Math.max(s,c),v=Math.max(p-u,d),A=d,b=v/d,g=0,x=a.map(function(f){var m=_objectSpread2$1({},f),C=parseColWidth(s,m.width);if(C)m.width=C;else{var S=Math.floor(b);m.width=A===1?v:S,v-=S,A-=1}return g+=m.width,m});if(g<p){var y=p/g;v=p,x.forEach(function(f,m){var C=Math.floor(f.width*y);f.width=m===x.length-1?v:C,v-=C})}return[x,Math.max(g,p)]}return[a,s]},[a,s,c])}var _excluded$8=["children"],_excluded2$1=["fixed"];function convertChildrenToColumns(a){return toArray$8(a).filter(function(s){return reactExports.isValidElement(s)}).map(function(s){var c=s.key,u=s.props,d=u.children,p=_objectWithoutProperties$2(u,_excluded$8),v=_objectSpread2$1({key:c},p);return d&&(v.children=convertChildrenToColumns(d)),v})}function filterHiddenColumns(a){return a.filter(function(s){return s&&_typeof$h(s)==="object"&&!s.hidden}).map(function(s){var c=s.children;return c&&c.length>0?_objectSpread2$1(_objectSpread2$1({},s),{},{children:filterHiddenColumns(c)}):s})}function flatColumns(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return a.filter(function(c){return c&&_typeof$h(c)==="object"}).reduce(function(c,u,d){var p=u.fixed,v=p===!0?"left":p,A="".concat(s,"-").concat(d),b=u.children;return b&&b.length>0?[].concat(_toConsumableArray$e(c),_toConsumableArray$e(flatColumns(b,A).map(function(g){return _objectSpread2$1({fixed:v},g)}))):[].concat(_toConsumableArray$e(c),[_objectSpread2$1(_objectSpread2$1({key:A},u),{},{fixed:v})])},[])}function revertForRtl(a){return a.map(function(s){var c=s.fixed,u=_objectWithoutProperties$2(s,_excluded2$1),d=c;return c==="left"?d="right":c==="right"&&(d="left"),_objectSpread2$1({fixed:d},u)})}function useColumns(a,s){var c=a.prefixCls,u=a.columns,d=a.children,p=a.expandable,v=a.expandedKeys,A=a.columnTitle,b=a.getRowKey,g=a.onTriggerExpand,x=a.expandIcon,y=a.rowExpandable,f=a.expandIconColumnIndex,m=a.direction,C=a.expandRowByClick,S=a.columnWidth,w=a.fixed,I=a.scrollWidth,P=a.clientWidth,$=reactExports.useMemo(function(){var H=u||convertChildrenToColumns(d)||[];return filterHiddenColumns(H.slice())},[u,d]),_=reactExports.useMemo(function(){if(p){var H=$.slice();if(!H.includes(EXPAND_COLUMN)){var j=f||0;j>=0&&(j||w==="left"||!w)&&H.splice(j,0,EXPAND_COLUMN),w==="right"&&H.splice($.length,0,EXPAND_COLUMN)}var Q=H.indexOf(EXPAND_COLUMN);H=H.filter(function(N,k){return N!==EXPAND_COLUMN||k===Q});var L=$[Q],F;w?F=w:F=L?L.fixed:null;var U=_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a({},INTERNAL_COL_DEFINE,{className:"".concat(c,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",A),"fixed",F),"className","".concat(c,"-row-expand-icon-cell")),"width",S),"render",function(k,W,J){var q=b(W,J),Y=v.has(q),Z=y?y(W):!0,ee=x({prefixCls:c,expanded:Y,expandable:Z,record:W,onExpand:g});return C?reactExports.createElement("span",{onClick:function(ae){return ae.stopPropagation()}},ee):ee});return H.map(function(N){return N===EXPAND_COLUMN?U:N})}return $.filter(function(N){return N!==EXPAND_COLUMN})},[p,$,b,v,x,m]),E=reactExports.useMemo(function(){var H=_;return s&&(H=s(H)),H.length||(H=[{render:function(){return null}}]),H},[s,_,m]),R=reactExports.useMemo(function(){return m==="rtl"?revertForRtl(flatColumns(E)):flatColumns(E)},[E,m,I]),T=reactExports.useMemo(function(){for(var H=-1,j=R.length-1;j>=0;j-=1){var Q=R[j].fixed;if(Q==="left"||Q===!0){H=j;break}}if(H>=0)for(var L=0;L<=H;L+=1){var F=R[L].fixed;if(F!=="left"&&F!==!0)return!0}var U=R.findIndex(function(W){var J=W.fixed;return J==="right"});if(U>=0)for(var N=U;N<R.length;N+=1){var k=R[N].fixed;if(k!=="right")return!0}return!1},[R]),B=useWidthColumns(R,I,P),M=_slicedToArray$e(B,2),D=M[0],O=M[1];return[E,D,O,T]}function useExpand(a,s,c){var u=getExpandableProps(a),d=u.expandIcon,p=u.expandedRowKeys,v=u.defaultExpandedRowKeys,A=u.defaultExpandAllRows,b=u.expandedRowRender,g=u.onExpand,x=u.onExpandedRowsChange,y=u.childrenColumnName,f=d||renderExpandIcon$1,m=y||"children",C=reactExports.useMemo(function(){return b?"row":a.expandable&&a.internalHooks===INTERNAL_HOOKS&&a.expandable.__PARENT_RENDER_ICON__||s.some(function(E){return E&&_typeof$h(E)==="object"&&E[m]})?"nest":!1},[!!b,s]),S=reactExports.useState(function(){return v||(A?findAllChildrenKeys(s,c,m):[])}),w=_slicedToArray$e(S,2),I=w[0],P=w[1],$=reactExports.useMemo(function(){return new Set(p||I||[])},[p,I]),_=reactExports.useCallback(function(E){var R=c(E,s.indexOf(E)),T,B=$.has(R);B?($.delete(R),T=_toConsumableArray$e($)):T=[].concat(_toConsumableArray$e($),[R]),P(T),g&&g(!B,E),x&&x(T)},[c,$,s,g,x]);return[u,C,$,f,m,_]}function useFixedInfo(a,s,c){var u=a.map(function(d,p){return getCellFixedInfo(p,p,a,s,c)});return useMemo(function(){return u},[u],function(d,p){return!isEqual(d,p)})}function useLayoutState(a){var s=reactExports.useRef(a),c=reactExports.useState({}),u=_slicedToArray$e(c,2),d=u[1],p=reactExports.useRef(null),v=reactExports.useRef([]);function A(b){v.current.push(b);var g=Promise.resolve();p.current=g,g.then(function(){if(p.current===g){var x=v.current,y=s.current;v.current=[],x.forEach(function(f){s.current=f(s.current)}),p.current=null,y!==s.current&&d({})}})}return reactExports.useEffect(function(){return function(){p.current=null}},[]),[s.current,A]}function useTimeoutLock(a){var s=reactExports.useRef(null),c=reactExports.useRef();function u(){window.clearTimeout(c.current)}function d(v){s.current=v,u(),c.current=window.setTimeout(function(){s.current=null,c.current=void 0},100)}function p(){return s.current}return reactExports.useEffect(function(){return u},[]),[d,p]}function useHover(){var a=reactExports.useState(-1),s=_slicedToArray$e(a,2),c=s[0],u=s[1],d=reactExports.useState(-1),p=_slicedToArray$e(d,2),v=p[0],A=p[1],b=reactExports.useCallback(function(g,x){u(g),A(x)},[]);return[c,v,b]}var defaultContainer=canUseDom$1()?window:null;function useSticky(a,s){var c=_typeof$h(a)==="object"?a:{},u=c.offsetHeader,d=u===void 0?0:u,p=c.offsetSummary,v=p===void 0?0:p,A=c.offsetScroll,b=A===void 0?0:A,g=c.getContainer,x=g===void 0?function(){return defaultContainer}:g,y=x()||defaultContainer,f=!!a;return reactExports.useMemo(function(){return{isSticky:f,stickyClassName:f?"".concat(s,"-sticky-holder"):"",offsetHeader:d,offsetSummary:v,offsetScroll:b,container:y}},[f,b,d,v,s,y])}function useStickyOffsets(a,s,c){var u=reactExports.useMemo(function(){var d=s.length,p=function(g,x,y){for(var f=[],m=0,C=g;C!==x;C+=y)f.push(m),s[C].fixed&&(m+=a[C]||0);return f},v=p(0,d,1),A=p(d-1,-1,-1).reverse();return c==="rtl"?{left:A,right:v}:{left:v,right:A}},[a,s,c]);return u}function Panel$2(a){var s=a.className,c=a.children;return reactExports.createElement("div",{className:s},c)}function getOffset$1(a){var s=getDOM(a),c=s.getBoundingClientRect(),u=document.documentElement;return{left:c.left+(window.pageXOffset||u.scrollLeft)-(u.clientLeft||document.body.clientLeft||0),top:c.top+(window.pageYOffset||u.scrollTop)-(u.clientTop||document.body.clientTop||0)}}var StickyScrollBar=function a(s,c){var u,d,p=s.scrollBodyRef,v=s.onScroll,A=s.offsetScroll,b=s.container,g=s.direction,x=useContext(TableContext,"prefixCls"),y=((u=p.current)===null||u===void 0?void 0:u.scrollWidth)||0,f=((d=p.current)===null||d===void 0?void 0:d.clientWidth)||0,m=y&&f*(f/y),C=reactExports.useRef(),S=useLayoutState({scrollLeft:0,isHiddenScrollBar:!0}),w=_slicedToArray$e(S,2),I=w[0],P=w[1],$=reactExports.useRef({delta:0,x:0}),_=reactExports.useState(!1),E=_slicedToArray$e(_,2),R=E[0],T=E[1],B=reactExports.useRef(null);reactExports.useEffect(function(){return function(){wrapperRaf.cancel(B.current)}},[]);var M=function(){T(!1)},D=function(L){L.persist(),$.current.delta=L.pageX-I.scrollLeft,$.current.x=0,T(!0),L.preventDefault()},O=function(L){var F,U=L||((F=window)===null||F===void 0?void 0:F.event),N=U.buttons;if(!R||N===0){R&&T(!1);return}var k=$.current.x+L.pageX-$.current.x-$.current.delta,W=g==="rtl";k=Math.max(W?m-f:0,Math.min(W?0:f-m,k));var J=!W||Math.abs(k)+Math.abs(m)<f;J&&(v({scrollLeft:k/f*(y+2)}),$.current.x=L.pageX)},H=function(){wrapperRaf.cancel(B.current),B.current=wrapperRaf(function(){if(p.current){var L=getOffset$1(p.current).top,F=L+p.current.offsetHeight,U=b===window?document.documentElement.scrollTop+window.innerHeight:getOffset$1(b).top+b.clientHeight;F-getScrollBarSize()<=U||L>=U-A?P(function(N){return _objectSpread2$1(_objectSpread2$1({},N),{},{isHiddenScrollBar:!0})}):P(function(N){return _objectSpread2$1(_objectSpread2$1({},N),{},{isHiddenScrollBar:!1})})}})},j=function(L){P(function(F){return _objectSpread2$1(_objectSpread2$1({},F),{},{scrollLeft:L/y*f||0})})};return reactExports.useImperativeHandle(c,function(){return{setScrollLeft:j,checkScrollBarVisible:H}}),reactExports.useEffect(function(){var Q=addEventListenerWrap$1(document.body,"mouseup",M,!1),L=addEventListenerWrap$1(document.body,"mousemove",O,!1);return H(),function(){Q.remove(),L.remove()}},[m,R]),reactExports.useEffect(function(){if(p.current){for(var Q=[],L=p.current;L;)Q.push(L),L=L.parentElement;return Q.forEach(function(F){return F.addEventListener("scroll",H,!1)}),window.addEventListener("resize",H,!1),window.addEventListener("scroll",H,!1),b.addEventListener("scroll",H,!1),function(){Q.forEach(function(F){return F.removeEventListener("scroll",H)}),window.removeEventListener("resize",H),window.removeEventListener("scroll",H),b.removeEventListener("scroll",H)}}},[b]),reactExports.useEffect(function(){I.isHiddenScrollBar||P(function(Q){var L=p.current;return L?_objectSpread2$1(_objectSpread2$1({},Q),{},{scrollLeft:L.scrollLeft/L.scrollWidth*L.clientWidth}):Q})},[I.isHiddenScrollBar]),y<=f||!m||I.isHiddenScrollBar?null:reactExports.createElement("div",{style:{height:getScrollBarSize(),width:f,bottom:A},className:"".concat(x,"-sticky-scroll")},reactExports.createElement("div",{onMouseDown:D,ref:C,className:classnames("".concat(x,"-sticky-scroll-bar"),_defineProperty$a({},"".concat(x,"-sticky-scroll-bar-active"),R)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(I.scrollLeft,"px, 0, 0)")}}))};const StickyScrollBar$1=reactExports.forwardRef(StickyScrollBar);var DEFAULT_PREFIX="rc-table",EMPTY_DATA=[],EMPTY_SCROLL_TARGET={};function defaultEmpty(){return"No Data"}function Table$1(a,s){var c=_objectSpread2$1({rowKey:"key",prefixCls:DEFAULT_PREFIX,emptyText:defaultEmpty},a),u=c.prefixCls,d=c.className,p=c.rowClassName,v=c.style,A=c.data,b=c.rowKey,g=c.scroll,x=c.tableLayout,y=c.direction,f=c.title,m=c.footer,C=c.summary,S=c.caption,w=c.id,I=c.showHeader,P=c.components,$=c.emptyText,_=c.onRow,E=c.onHeaderRow,R=c.onScroll,T=c.internalHooks,B=c.transformColumns,M=c.internalRefs,D=c.tailor,O=c.getContainerWidth,H=c.sticky,j=c.rowHoverable,Q=j===void 0?!0:j,L=A||EMPTY_DATA,F=!!L.length,U=T===INTERNAL_HOOKS,N=reactExports.useCallback(function(Yt,zt){return get$1(P,Yt)||zt},[P]),k=reactExports.useMemo(function(){return typeof b=="function"?b:function(Yt){var zt=Yt&&Yt[b];return zt}},[b]),W=N(["body"]),J=useHover(),q=_slicedToArray$e(J,3),Y=q[0],Z=q[1],ee=q[2],re=useExpand(c,L,k),ae=_slicedToArray$e(re,6),V=ae[0],K=ae[1],te=ae[2],ie=ae[3],ce=ae[4],ge=ae[5],Se=g==null?void 0:g.x,be=reactExports.useState(0),me=_slicedToArray$e(be,2),fe=me[0],se=me[1],oe=useColumns(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},c),V),{},{expandable:!!V.expandedRowRender,columnTitle:V.columnTitle,expandedKeys:te,getRowKey:k,onTriggerExpand:ge,expandIcon:ie,expandIconColumnIndex:V.expandIconColumnIndex,direction:y,scrollWidth:U&&D&&typeof Se=="number"?Se:null,clientWidth:fe}),U?B:null),de=_slicedToArray$e(oe,4),le=de[0],xe=de[1],Ce=de[2],$e=de[3],we=Ce??Se,Ee=reactExports.useMemo(function(){return{columns:le,flattenColumns:xe}},[le,xe]),Ae=reactExports.useRef(),pe=reactExports.useRef(),he=reactExports.useRef(),Ie=reactExports.useRef();reactExports.useImperativeHandle(s,function(){return{nativeElement:Ae.current,scrollTo:function(zt){var cr;if(he.current instanceof HTMLElement){var mr=zt.index,Cr=zt.top,Wr=zt.key;if(validNumberValue(Cr)){var Gr;(Gr=he.current)===null||Gr===void 0||Gr.scrollTo({top:Cr})}else{var Hr,nn=Wr??k(L[mr]);(Hr=he.current.querySelector('[data-row-key="'.concat(nn,'"]')))===null||Hr===void 0||Hr.scrollIntoView()}}else(cr=he.current)!==null&&cr!==void 0&&cr.scrollTo&&he.current.scrollTo(zt)}}});var ye=reactExports.useRef(),Pe=reactExports.useState(!1),Le=_slicedToArray$e(Pe,2),Ne=Le[0],Me=Le[1],Fe=reactExports.useState(!1),_e=_slicedToArray$e(Fe,2),je=_e[0],Ye=_e[1],Te=useLayoutState(new Map),ke=_slicedToArray$e(Te,2),De=ke[0],Re=ke[1],Ge=getColumnsKey(xe),Ve=Ge.map(function(Yt){return De.get(Yt)}),Xe=reactExports.useMemo(function(){return Ve},[Ve.join("_")]),We=useStickyOffsets(Xe,xe,y),ze=g&&validateValue(g.y),Qe=g&&validateValue(we)||!!V.fixed,et=Qe&&xe.some(function(Yt){var zt=Yt.fixed;return zt}),Ze=reactExports.useRef(),qe=useSticky(H,u),Je=qe.isSticky,ot=qe.offsetHeader,nt=qe.offsetSummary,ct=qe.offsetScroll,bt=qe.stickyClassName,st=qe.container,gt=reactExports.useMemo(function(){return C==null?void 0:C(L)},[C,L]),ft=(ze||Je)&&reactExports.isValidElement(gt)&>.type===Summary&>.props.fixed,pt,At,Bt;ze&&(At={overflowY:F?"scroll":"auto",maxHeight:g.y}),Qe&&(pt={overflowX:"auto"},ze||(At={overflowY:"hidden"}),Bt={width:we===!0?"auto":we,minWidth:"100%"});var Ut=reactExports.useCallback(function(Yt,zt){isVisible(Ae.current)&&Re(function(cr){if(cr.get(Yt)!==zt){var mr=new Map(cr);return mr.set(Yt,zt),mr}return cr})},[]),_t=useTimeoutLock(),$t=_slicedToArray$e(_t,2),Ht=$t[0],St=$t[1];function lt(Yt,zt){zt&&(typeof zt=="function"?zt(Yt):zt.scrollLeft!==Yt&&(zt.scrollLeft=Yt,zt.scrollLeft!==Yt&&setTimeout(function(){zt.scrollLeft=Yt},0)))}var at=useEvent(function(Yt){var zt=Yt.currentTarget,cr=Yt.scrollLeft,mr=y==="rtl",Cr=typeof cr=="number"?cr:zt.scrollLeft,Wr=zt||EMPTY_SCROLL_TARGET;if(!St()||St()===Wr){var Gr;Ht(Wr),lt(Cr,pe.current),lt(Cr,he.current),lt(Cr,ye.current),lt(Cr,(Gr=Ze.current)===null||Gr===void 0?void 0:Gr.setScrollLeft)}var Hr=zt||pe.current;if(Hr){var nn=U&&D&&typeof we=="number"?we:Hr.scrollWidth,fn=Hr.clientWidth;if(nn===fn){Me(!1),Ye(!1);return}mr?(Me(-Cr<nn-fn),Ye(-Cr>0)):(Me(Cr>0),Ye(Cr<nn-fn))}}),rt=useEvent(function(Yt){at(Yt),R==null||R(Yt)}),ut=function(){if(Qe&&he.current){var zt;at({currentTarget:getDOM(he.current),scrollLeft:(zt=he.current)===null||zt===void 0?void 0:zt.scrollLeft})}else Me(!1),Ye(!1)},xt=function(zt){var cr,mr=zt.width;(cr=Ze.current)===null||cr===void 0||cr.checkScrollBarVisible();var Cr=Ae.current?Ae.current.offsetWidth:mr;U&&O&&Ae.current&&(Cr=O(Ae.current,Cr)||Cr),Cr!==fe&&(ut(),se(Cr))},Rt=reactExports.useRef(!1);reactExports.useEffect(function(){Rt.current&&ut()},[Qe,A,le.length]),reactExports.useEffect(function(){Rt.current=!0},[]);var It=reactExports.useState(0),ht=_slicedToArray$e(It,2),wt=ht[0],Nt=ht[1],Wt=reactExports.useState(!0),jt=_slicedToArray$e(Wt,2),Qt=jt[0],er=jt[1];reactExports.useEffect(function(){(!D||!U)&&(he.current instanceof Element?Nt(getTargetScrollBarSize(he.current).width):Nt(getTargetScrollBarSize(Ie.current).width)),er(isStyleSupport("position","sticky"))},[]),reactExports.useEffect(function(){U&&M&&(M.body.current=he.current)});var Vt=reactExports.useCallback(function(Yt){return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Header$1,Yt),ft==="top"&&reactExports.createElement(Footer$1,Yt,gt))},[ft,gt]),rr=reactExports.useCallback(function(Yt){return reactExports.createElement(Footer$1,Yt,gt)},[gt]),qt=N(["table"],"table"),tr=reactExports.useMemo(function(){return x||(et?we==="max-content"?"auto":"fixed":ze||Je||xe.some(function(Yt){var zt=Yt.ellipsis;return zt})?"fixed":"auto")},[ze,et,xe,x,Je]),ur,fr={colWidths:Xe,columCount:xe.length,stickyOffsets:We,onHeaderRow:E,fixHeader:ze,scroll:g},Ft=reactExports.useMemo(function(){return F?null:typeof $=="function"?$():$},[F,$]),Mt=reactExports.createElement(Body$1,{data:L,measureColumnWidth:ze||Qe||Je}),sr=reactExports.createElement(ColGroup,{colWidths:xe.map(function(Yt){var zt=Yt.width;return zt}),columns:xe}),Gt=S!=null?reactExports.createElement("caption",{className:"".concat(u,"-caption")},S):void 0,Kt=pickAttrs(c,{data:!0}),gr=pickAttrs(c,{aria:!0});if(ze||Je){var Er;typeof W=="function"?(Er=W(L,{scrollbarSize:wt,ref:he,onScroll:at}),fr.colWidths=xe.map(function(Yt,zt){var cr=Yt.width,mr=zt===xe.length-1?cr-wt:cr;return typeof mr=="number"&&!Number.isNaN(mr)?mr:0})):Er=reactExports.createElement("div",{style:_objectSpread2$1(_objectSpread2$1({},pt),At),onScroll:rt,ref:he,className:classnames("".concat(u,"-body"))},reactExports.createElement(qt,_extends$3({style:_objectSpread2$1(_objectSpread2$1({},Bt),{},{tableLayout:tr})},gr),Gt,sr,Mt,!ft&>&&reactExports.createElement(Footer$1,{stickyOffsets:We,flattenColumns:xe},gt)));var Pr=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({noData:!L.length,maxContentScroll:Qe&&we==="max-content"},fr),Ee),{},{direction:y,stickyClassName:bt,onScroll:at});ur=reactExports.createElement(reactExports.Fragment,null,I!==!1&&reactExports.createElement(FixedHolder$1,_extends$3({},Pr,{stickyTopOffset:ot,className:"".concat(u,"-header"),ref:pe}),Vt),Er,ft&&ft!=="top"&&reactExports.createElement(FixedHolder$1,_extends$3({},Pr,{stickyBottomOffset:nt,className:"".concat(u,"-summary"),ref:ye}),rr),Je&&he.current&&he.current instanceof Element&&reactExports.createElement(StickyScrollBar$1,{ref:Ze,offsetScroll:ct,scrollBodyRef:he,onScroll:at,container:st,direction:y}))}else ur=reactExports.createElement("div",{style:_objectSpread2$1(_objectSpread2$1({},pt),At),className:classnames("".concat(u,"-content")),onScroll:at,ref:he},reactExports.createElement(qt,_extends$3({style:_objectSpread2$1(_objectSpread2$1({},Bt),{},{tableLayout:tr})},gr),Gt,sr,I!==!1&&reactExports.createElement(Header$1,_extends$3({},fr,Ee)),Mt,gt&&reactExports.createElement(Footer$1,{stickyOffsets:We,flattenColumns:xe},gt)));var Br=reactExports.createElement("div",_extends$3({className:classnames(u,d,_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a({},"".concat(u,"-rtl"),y==="rtl"),"".concat(u,"-ping-left"),Ne),"".concat(u,"-ping-right"),je),"".concat(u,"-layout-fixed"),x==="fixed"),"".concat(u,"-fixed-header"),ze),"".concat(u,"-fixed-column"),et),"".concat(u,"-fixed-column-gapped"),et&&$e),"".concat(u,"-scroll-horizontal"),Qe),"".concat(u,"-has-fix-left"),xe[0]&&xe[0].fixed),"".concat(u,"-has-fix-right"),xe[xe.length-1]&&xe[xe.length-1].fixed==="right")),style:v,id:w,ref:Ae},Kt),f&&reactExports.createElement(Panel$2,{className:"".concat(u,"-title")},f(L)),reactExports.createElement("div",{ref:Ie,className:"".concat(u,"-container")},ur),m&&reactExports.createElement(Panel$2,{className:"".concat(u,"-footer")},m(L)));Qe&&(Br=reactExports.createElement(RefResizeObserver,{onResize:xt},Br));var Mr=useFixedInfo(xe,We,y),jr=reactExports.useMemo(function(){return{scrollX:we,prefixCls:u,getComponent:N,scrollbarSize:wt,direction:y,fixedInfoList:Mr,isSticky:Je,supportSticky:Qt,componentWidth:fe,fixHeader:ze,fixColumn:et,horizonScroll:Qe,tableLayout:tr,rowClassName:p,expandedRowClassName:V.expandedRowClassName,expandIcon:ie,expandableType:K,expandRowByClick:V.expandRowByClick,expandedRowRender:V.expandedRowRender,onTriggerExpand:ge,expandIconColumnIndex:V.expandIconColumnIndex,indentSize:V.indentSize,allColumnsFixedLeft:xe.every(function(Yt){return Yt.fixed==="left"}),emptyNode:Ft,columns:le,flattenColumns:xe,onColumnResize:Ut,hoverStartRow:Y,hoverEndRow:Z,onHover:ee,rowExpandable:V.rowExpandable,onRow:_,getRowKey:k,expandedKeys:te,childrenColumnName:ce,rowHoverable:Q}},[we,u,N,wt,y,Mr,Je,Qt,fe,ze,et,Qe,tr,p,V.expandedRowClassName,ie,K,V.expandRowByClick,V.expandedRowRender,ge,V.expandIconColumnIndex,V.indentSize,Ft,le,xe,Ut,Y,Z,ee,V.rowExpandable,_,k,te,ce,Q]);return reactExports.createElement(TableContext.Provider,{value:jr},Br)}var RefTable=reactExports.forwardRef(Table$1);function genTable(a){return makeImmutable(RefTable,a)}var ImmutableTable=genTable();ImmutableTable.EXPAND_COLUMN=EXPAND_COLUMN,ImmutableTable.INTERNAL_HOOKS=INTERNAL_HOOKS,ImmutableTable.Column=Column$1,ImmutableTable.ColumnGroup=ColumnGroup$1,ImmutableTable.Summary=FooterComponents;var StaticContext=createContext(null),GridContext=createContext(null);function getColumnWidth(a,s,c){var u=s||1;return c[a+u]-(c[a]||0)}function VirtualCell$1(a){var s=a.rowInfo,c=a.column,u=a.colIndex,d=a.indent,p=a.index,v=a.component,A=a.renderIndex,b=a.record,g=a.style,x=a.className,y=a.inverse,f=a.getHeight,m=c.render,C=c.dataIndex,S=c.className,w=c.width,I=useContext(GridContext,["columnsOffset"]),P=I.columnsOffset,$=getCellProps(s,c,u,d,p),_=$.key,E=$.fixedInfo,R=$.appendCellNode,T=$.additionalCellProps,B=T.style,M=T.colSpan,D=M===void 0?1:M,O=T.rowSpan,H=O===void 0?1:O,j=u-1,Q=getColumnWidth(j,D,P),L=D>1?w-Q:0,F=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},B),g),{},{flex:"0 0 ".concat(Q,"px"),width:"".concat(Q,"px"),marginRight:L,pointerEvents:"auto"}),U=reactExports.useMemo(function(){return y?H<=1:D===0||H===0||H>1},[H,D,y]);U?F.visibility="hidden":y&&(F.height=f==null?void 0:f(H));var N=U?function(){return null}:m,k={};return(H===0||D===0)&&(k.rowSpan=1,k.colSpan=1),reactExports.createElement(Cell$1,_extends$3({className:classnames(S,x),ellipsis:c.ellipsis,align:c.align,scope:c.rowScope,component:v,prefixCls:s.prefixCls,key:_,record:b,index:p,renderIndex:A,dataIndex:C,render:N,shouldCellUpdate:c.shouldCellUpdate},E,{appendNode:R,additionalProps:_objectSpread2$1(_objectSpread2$1({},T),{},{style:F},k)}))}var _excluded$7=["data","index","className","rowKey","style","extra","getHeight"],BodyLine=reactExports.forwardRef(function(a,s){var c=a.data,u=a.index,d=a.className,p=a.rowKey,v=a.style,A=a.extra,b=a.getHeight,g=_objectWithoutProperties$2(a,_excluded$7),x=c.record,y=c.indent,f=c.index,m=useContext(TableContext,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),C=m.scrollX,S=m.flattenColumns,w=m.prefixCls,I=m.fixColumn,P=m.componentWidth,$=useContext(StaticContext,["getComponent"]),_=$.getComponent,E=useRowInfo(x,p,u,y),R=_(["body","row"],"div"),T=_(["body","cell"],"div"),B=E.rowSupportExpand,M=E.expanded,D=E.rowProps,O=E.expandedRowRender,H=E.expandedRowClassName,j;if(B&&M){var Q=O(x,u,y+1,M),L=computedExpandedClassName(H,x,u,y),F={};I&&(F={style:_defineProperty$a({},"--virtual-width","".concat(P,"px"))});var U="".concat(w,"-expanded-row-cell");j=reactExports.createElement(R,{className:classnames("".concat(w,"-expanded-row"),"".concat(w,"-expanded-row-level-").concat(y+1),L)},reactExports.createElement(Cell$1,{component:T,prefixCls:w,className:classnames(U,_defineProperty$a({},"".concat(U,"-fixed"),I)),additionalProps:F},Q))}var N=_objectSpread2$1(_objectSpread2$1({},v),{},{width:C});A&&(N.position="absolute",N.pointerEvents="none");var k=reactExports.createElement(R,_extends$3({},D,g,{"data-row-key":p,ref:B?null:s,className:classnames(d,"".concat(w,"-row"),D==null?void 0:D.className,_defineProperty$a({},"".concat(w,"-row-extra"),A)),style:_objectSpread2$1(_objectSpread2$1({},N),D==null?void 0:D.style)}),S.map(function(W,J){return reactExports.createElement(VirtualCell$1,{key:J,component:T,rowInfo:E,column:W,colIndex:J,indent:y,index:u,renderIndex:f,record:x,inverse:A,getHeight:b})}));return B?reactExports.createElement("div",{ref:s},k,j):k}),ResponseBodyLine=responseImmutable(BodyLine),Grid=reactExports.forwardRef(function(a,s){var c=a.data,u=a.onScroll,d=useContext(TableContext,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),p=d.flattenColumns,v=d.onColumnResize,A=d.getRowKey,b=d.expandedKeys,g=d.prefixCls,x=d.childrenColumnName,y=d.scrollX,f=d.direction,m=useContext(StaticContext),C=m.sticky,S=m.scrollY,w=m.listItemHeight,I=m.getComponent,P=m.onScroll,$=reactExports.useRef(),_=useFlattenRecords(c,x,b,A),E=reactExports.useMemo(function(){var j=0;return p.map(function(Q){var L=Q.width,F=Q.key;return j+=L,[F,L,j]})},[p]),R=reactExports.useMemo(function(){return E.map(function(j){return j[2]})},[E]);reactExports.useEffect(function(){E.forEach(function(j){var Q=_slicedToArray$e(j,2),L=Q[0],F=Q[1];v(L,F)})},[E]),reactExports.useImperativeHandle(s,function(){var j,Q={scrollTo:function(F){var U;(U=$.current)===null||U===void 0||U.scrollTo(F)},nativeElement:(j=$.current)===null||j===void 0?void 0:j.nativeElement};return Object.defineProperty(Q,"scrollLeft",{get:function(){var F;return((F=$.current)===null||F===void 0?void 0:F.getScrollInfo().x)||0},set:function(F){var U;(U=$.current)===null||U===void 0||U.scrollTo({left:F})}}),Q});var T=function(Q,L){var F,U=(F=_[L])===null||F===void 0?void 0:F.record,N=Q.onCell;if(N){var k,W=N(U,L);return(k=W==null?void 0:W.rowSpan)!==null&&k!==void 0?k:1}return 1},B=function(Q){var L=Q.start,F=Q.end,U=Q.getSize,N=Q.offsetY;if(F<0)return null;for(var k=p.filter(function(ie){return T(ie,L)===0}),W=L,J=function(ce){if(k=k.filter(function(ge){return T(ge,ce)===0}),!k.length)return W=ce,1},q=L;q>=0&&!J(q);q-=1);for(var Y=p.filter(function(ie){return T(ie,F)!==1}),Z=F,ee=function(ce){if(Y=Y.filter(function(ge){return T(ge,ce)!==1}),!Y.length)return Z=Math.max(ce-1,F),1},re=F;re<_.length&&!ee(re);re+=1);for(var ae=[],V=function(ce){var ge=_[ce];if(!ge)return 1;p.some(function(Se){return T(Se,ce)>1})&&ae.push(ce)},K=W;K<=Z;K+=1)V(K);var te=ae.map(function(ie){var ce=_[ie],ge=A(ce.record,ie),Se=function(fe){var se=ie+fe-1,oe=A(_[se].record,se),de=U(ge,oe);return de.bottom-de.top},be=U(ge);return reactExports.createElement(ResponseBodyLine,{key:ie,data:ce,rowKey:ge,index:ie,style:{top:-N+be.top},extra:!0,getHeight:Se})});return te},M=reactExports.useMemo(function(){return{columnsOffset:R}},[R]),D="".concat(g,"-tbody"),O=I(["body","wrapper"]),H={};return C&&(H.position="sticky",H.bottom=0,_typeof$h(C)==="object"&&C.offsetScroll&&(H.bottom=C.offsetScroll)),reactExports.createElement(GridContext.Provider,{value:M},reactExports.createElement(List,{fullHeight:!1,ref:$,prefixCls:"".concat(D,"-virtual"),styles:{horizontalScrollBar:H},className:D,height:S,itemHeight:w||24,data:_,itemKey:function(Q){return A(Q.record)},component:O,scrollWidth:y,direction:f,onVirtualScroll:function(Q){var L,F=Q.x;u({currentTarget:(L=$.current)===null||L===void 0?void 0:L.nativeElement,scrollLeft:F})},onScroll:P,extraRender:B},function(j,Q,L){var F=A(j.record,Q);return reactExports.createElement(ResponseBodyLine,{data:j,rowKey:F,index:Q,style:L.style})}))}),ResponseGrid=responseImmutable(Grid),renderBody=function a(s,c){var u=c.ref,d=c.onScroll;return reactExports.createElement(ResponseGrid,{ref:u,data:s,onScroll:d})};function VirtualTable(a,s){var c=a.data,u=a.columns,d=a.scroll,p=a.sticky,v=a.prefixCls,A=v===void 0?DEFAULT_PREFIX:v,b=a.className,g=a.listItemHeight,x=a.components,y=a.onScroll,f=d||{},m=f.x,C=f.y;typeof m!="number"&&(m=1),typeof C!="number"&&(C=500);var S=useEvent(function(P,$){return get$1(x,P)||$}),w=useEvent(y),I=reactExports.useMemo(function(){return{sticky:p,scrollY:C,listItemHeight:g,getComponent:S,onScroll:w}},[p,C,g,S,w]);return reactExports.createElement(StaticContext.Provider,{value:I},reactExports.createElement(ImmutableTable,_extends$3({},a,{className:classnames(b,"".concat(A,"-virtual")),scroll:_objectSpread2$1(_objectSpread2$1({},d),{},{x:m}),components:_objectSpread2$1(_objectSpread2$1({},x),{},{body:c!=null&&c.length?renderBody:void 0}),columns:u,internalHooks:INTERNAL_HOOKS,tailor:!0,ref:s})))}var RefVirtualTable=reactExports.forwardRef(VirtualTable);function genVirtualTable(a){return makeImmutable(RefVirtualTable,a)}genVirtualTable();const Column=a=>null,ColumnGroup=a=>null;var TreeContext=reactExports.createContext(null),UnstableContext=reactExports.createContext({}),Indent=function a(s){for(var c=s.prefixCls,u=s.level,d=s.isStart,p=s.isEnd,v="".concat(c,"-indent-unit"),A=[],b=0;b<u;b+=1)A.push(reactExports.createElement("span",{key:b,className:classnames(v,_defineProperty$a(_defineProperty$a({},"".concat(v,"-start"),d[b]),"".concat(v,"-end"),p[b]))}));return reactExports.createElement("span",{"aria-hidden":"true",className:"".concat(c,"-indent")},A)};const Indent$1=reactExports.memo(Indent);var _excluded$6=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ICON_OPEN="open",ICON_CLOSE="close",defaultTitle="---",TreeNode$1=function a(s){var c,u,d,p=s.eventKey,v=s.className,A=s.style,b=s.dragOver,g=s.dragOverGapTop,x=s.dragOverGapBottom,y=s.isLeaf,f=s.isStart,m=s.isEnd,C=s.expanded,S=s.selected,w=s.checked,I=s.halfChecked,P=s.loading,$=s.domRef,_=s.active,E=s.data,R=s.onMouseMove,T=s.selectable,B=_objectWithoutProperties$2(s,_excluded$6),M=React.useContext(TreeContext),D=React.useContext(UnstableContext),O=React.useRef(null),H=React.useState(!1),j=_slicedToArray$e(H,2),Q=j[0],L=j[1],F=!!(M.disabled||s.disabled||(c=D.nodeDisabled)!==null&&c!==void 0&&c.call(D,E)),U=React.useMemo(function(){return!M.checkable||s.checkable===!1?!1:M.checkable},[M.checkable,s.checkable]),N=function(Pe){F||M.onNodeSelect(Pe,convertNodePropsToEventData(s))},k=function(Pe){F||!U||s.disableCheckbox||M.onNodeCheck(Pe,convertNodePropsToEventData(s),!w)},W=React.useMemo(function(){return typeof T=="boolean"?T:M.selectable},[T,M.selectable]),J=function(Pe){M.onNodeClick(Pe,convertNodePropsToEventData(s)),W?N(Pe):k(Pe)},q=function(Pe){M.onNodeDoubleClick(Pe,convertNodePropsToEventData(s))},Y=function(Pe){M.onNodeMouseEnter(Pe,convertNodePropsToEventData(s))},Z=function(Pe){M.onNodeMouseLeave(Pe,convertNodePropsToEventData(s))},ee=function(Pe){M.onNodeContextMenu(Pe,convertNodePropsToEventData(s))},re=React.useMemo(function(){return!!(M.draggable&&(!M.draggable.nodeDraggable||M.draggable.nodeDraggable(E)))},[M.draggable,E]),ae=function(Pe){Pe.stopPropagation(),L(!0),M.onNodeDragStart(Pe,s);try{Pe.dataTransfer.setData("text/plain","")}catch{}},V=function(Pe){Pe.preventDefault(),Pe.stopPropagation(),M.onNodeDragEnter(Pe,s)},K=function(Pe){Pe.preventDefault(),Pe.stopPropagation(),M.onNodeDragOver(Pe,s)},te=function(Pe){Pe.stopPropagation(),M.onNodeDragLeave(Pe,s)},ie=function(Pe){Pe.stopPropagation(),L(!1),M.onNodeDragEnd(Pe,s)},ce=function(Pe){Pe.preventDefault(),Pe.stopPropagation(),L(!1),M.onNodeDrop(Pe,s)},ge=function(Pe){P||M.onNodeExpand(Pe,convertNodePropsToEventData(s))},Se=React.useMemo(function(){var ye=getEntity(M.keyEntities,p)||{},Pe=ye.children;return!!(Pe||[]).length},[M.keyEntities,p]),be=React.useMemo(function(){return y===!1?!1:y||!M.loadData&&!Se||M.loadData&&s.loaded&&!Se},[y,M.loadData,Se,s.loaded]);React.useEffect(function(){P||typeof M.loadData=="function"&&C&&!be&&!s.loaded&&M.onNodeLoad(convertNodePropsToEventData(s))},[P,M.loadData,M.onNodeLoad,C,be,s]);var me=React.useMemo(function(){var ye;return(ye=M.draggable)!==null&&ye!==void 0&&ye.icon?React.createElement("span",{className:"".concat(M.prefixCls,"-draggable-icon")},M.draggable.icon):null},[M.draggable]),fe=function(Pe){var Le=s.switcherIcon||M.switcherIcon;return typeof Le=="function"?Le(_objectSpread2$1(_objectSpread2$1({},s),{},{isLeaf:Pe})):Le},se=function(){if(be){var Pe=fe(!0);return Pe!==!1?React.createElement("span",{className:classnames("".concat(M.prefixCls,"-switcher"),"".concat(M.prefixCls,"-switcher-noop"))},Pe):null}var Le=fe(!1);return Le!==!1?React.createElement("span",{onClick:ge,className:classnames("".concat(M.prefixCls,"-switcher"),"".concat(M.prefixCls,"-switcher_").concat(C?ICON_OPEN:ICON_CLOSE))},Le):null},oe=React.useMemo(function(){if(!U)return null;var ye=typeof U!="boolean"?U:null;return React.createElement("span",{className:classnames("".concat(M.prefixCls,"-checkbox"),_defineProperty$a(_defineProperty$a(_defineProperty$a({},"".concat(M.prefixCls,"-checkbox-checked"),w),"".concat(M.prefixCls,"-checkbox-indeterminate"),!w&&I),"".concat(M.prefixCls,"-checkbox-disabled"),F||s.disableCheckbox)),onClick:k,role:"checkbox","aria-checked":I?"mixed":w,"aria-disabled":F||s.disableCheckbox,"aria-label":"Select ".concat(typeof s.title=="string"?s.title:"tree node")},ye)},[U,w,I,F,s.disableCheckbox,s.title]),de=React.useMemo(function(){return be?null:C?ICON_OPEN:ICON_CLOSE},[be,C]),le=React.useMemo(function(){return React.createElement("span",{className:classnames("".concat(M.prefixCls,"-iconEle"),"".concat(M.prefixCls,"-icon__").concat(de||"docu"),_defineProperty$a({},"".concat(M.prefixCls,"-icon_loading"),P))})},[M.prefixCls,de,P]),xe=React.useMemo(function(){var ye=!!M.draggable,Pe=!s.disabled&&ye&&M.dragOverNodeKey===p;return Pe?M.dropIndicatorRender({dropPosition:M.dropPosition,dropLevelOffset:M.dropLevelOffset,indent:M.indent,prefixCls:M.prefixCls,direction:M.direction}):null},[M.dropPosition,M.dropLevelOffset,M.indent,M.prefixCls,M.direction,M.draggable,M.dragOverNodeKey,M.dropIndicatorRender]),Ce=React.useMemo(function(){var ye=s.title,Pe=ye===void 0?defaultTitle:ye,Le="".concat(M.prefixCls,"-node-content-wrapper"),Ne;if(M.showIcon){var Me=s.icon||M.icon;Ne=Me?React.createElement("span",{className:classnames("".concat(M.prefixCls,"-iconEle"),"".concat(M.prefixCls,"-icon__customize"))},typeof Me=="function"?Me(s):Me):le}else M.loadData&&P&&(Ne=le);var Fe;return typeof Pe=="function"?Fe=Pe(E):M.titleRender?Fe=M.titleRender(E):Fe=Pe,React.createElement("span",{ref:O,title:typeof Pe=="string"?Pe:"",className:classnames(Le,"".concat(Le,"-").concat(de||"normal"),_defineProperty$a({},"".concat(M.prefixCls,"-node-selected"),!F&&(S||Q))),onMouseEnter:Y,onMouseLeave:Z,onContextMenu:ee,onClick:J,onDoubleClick:q},Ne,React.createElement("span",{className:"".concat(M.prefixCls,"-title")},Fe),xe)},[M.prefixCls,M.showIcon,s,M.icon,le,M.titleRender,E,de,Y,Z,ee,J,q]),$e=pickAttrs(B,{aria:!0,data:!0}),we=getEntity(M.keyEntities,p)||{},Ee=we.level,Ae=m[m.length-1],pe=!F&&re,he=M.draggingNodeKey===p,Ie=T!==void 0?{"aria-selected":!!T}:void 0;return React.createElement("div",_extends$3({ref:$,role:"treeitem","aria-expanded":y?void 0:C,className:classnames(v,"".concat(M.prefixCls,"-treenode"),(d={},_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(d,"".concat(M.prefixCls,"-treenode-disabled"),F),"".concat(M.prefixCls,"-treenode-switcher-").concat(C?"open":"close"),!y),"".concat(M.prefixCls,"-treenode-checkbox-checked"),w),"".concat(M.prefixCls,"-treenode-checkbox-indeterminate"),I),"".concat(M.prefixCls,"-treenode-selected"),S),"".concat(M.prefixCls,"-treenode-loading"),P),"".concat(M.prefixCls,"-treenode-active"),_),"".concat(M.prefixCls,"-treenode-leaf-last"),Ae),"".concat(M.prefixCls,"-treenode-draggable"),re),"dragging",he),_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(d,"drop-target",M.dropTargetKey===p),"drop-container",M.dropContainerKey===p),"drag-over",!F&&b),"drag-over-gap-top",!F&&g),"drag-over-gap-bottom",!F&&x),"filter-node",(u=M.filterTreeNode)===null||u===void 0?void 0:u.call(M,convertNodePropsToEventData(s))),"".concat(M.prefixCls,"-treenode-leaf"),be))),style:A,draggable:pe,onDragStart:pe?ae:void 0,onDragEnter:re?V:void 0,onDragOver:re?K:void 0,onDragLeave:re?te:void 0,onDrop:re?ce:void 0,onDragEnd:re?ie:void 0,onMouseMove:R},Ie,$e),React.createElement(Indent$1,{prefixCls:M.prefixCls,level:Ee,isStart:f,isEnd:m}),me,se(),oe,Ce)};TreeNode$1.isTreeNode=1;function arrDel(a,s){if(!a)return[];var c=a.slice(),u=c.indexOf(s);return u>=0&&c.splice(u,1),c}function arrAdd(a,s){var c=(a||[]).slice();return c.indexOf(s)===-1&&c.push(s),c}function posToArr(a){return a.split("-")}function getDragChildrenKeys(a,s){var c=[],u=getEntity(s,a);function d(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];p.forEach(function(v){var A=v.key,b=v.children;c.push(A),d(b)})}return d(u.children),c}function isLastChild(a){if(a.parent){var s=posToArr(a.pos);return Number(s[s.length-1])===a.parent.children.length-1}return!1}function isFirstChild(a){var s=posToArr(a.pos);return Number(s[s.length-1])===0}function calcDropPosition(a,s,c,u,d,p,v,A,b,g){var x,y=a.clientX,f=a.clientY,m=a.target.getBoundingClientRect(),C=m.top,S=m.height,w=(g==="rtl"?-1:1)*(((d==null?void 0:d.x)||0)-y),I=(w-12)/u,P=b.filter(function(F){var U;return(U=A[F])===null||U===void 0||(U=U.children)===null||U===void 0?void 0:U.length}),$=getEntity(A,c.eventKey);if(f<C+S/2){var _=v.findIndex(function(F){return F.key===$.key}),E=_<=0?0:_-1,R=v[E].key;$=getEntity(A,R)}var T=$.key,B=$,M=$.key,D=0,O=0;if(!P.includes(T))for(var H=0;H<I&&isLastChild($);H+=1)$=$.parent,O+=1;var j=s.data,Q=$.node,L=!0;return isFirstChild($)&&$.level===0&&f<C+S/2&&p({dragNode:j,dropNode:Q,dropPosition:-1})&&$.key===c.eventKey?D=-1:(B.children||[]).length&&P.includes(M)?p({dragNode:j,dropNode:Q,dropPosition:0})?D=0:L=!1:O===0?I>-1.5?p({dragNode:j,dropNode:Q,dropPosition:1})?D=1:L=!1:p({dragNode:j,dropNode:Q,dropPosition:0})?D=0:p({dragNode:j,dropNode:Q,dropPosition:1})?D=1:L=!1:p({dragNode:j,dropNode:Q,dropPosition:1})?D=1:L=!1,{dropPosition:D,dropLevelOffset:O,dropTargetKey:$.key,dropTargetPos:$.pos,dragOverNodeKey:M,dropContainerKey:D===0?null:((x=$.parent)===null||x===void 0?void 0:x.key)||null,dropAllowed:L}}function calcSelectedKeys(a,s){if(a){var c=s.multiple;return c?a.slice():a.length?[a[0]]:a}}function parseCheckedKeys(a){if(!a)return null;var s;if(Array.isArray(a))s={checkedKeys:a,halfCheckedKeys:void 0};else if(_typeof$h(a)==="object")s={checkedKeys:a.checked||void 0,halfCheckedKeys:a.halfChecked||void 0};else return warningOnce(!1,"`checkedKeys` is not an array or an object"),null;return s}function conductExpandParent(a,s){var c=new Set;function u(d){if(!c.has(d)){var p=getEntity(s,d);if(p){c.add(d);var v=p.parent,A=p.node;A.disabled||v&&u(v.key)}}}return(a||[]).forEach(function(d){u(d)}),_toConsumableArray$e(c)}function useMultipleSelect(a){const[s,c]=reactExports.useState(null);return[reactExports.useCallback((p,v,A)=>{const b=s??p,g=Math.min(b||0,p),x=Math.max(b||0,p),y=v.slice(g,x+1).map(C=>a(C)),f=y.some(C=>!A.has(C)),m=[];return y.forEach(C=>{f?(A.has(C)||m.push(C),A.add(C)):(A.delete(C),m.push(C))}),c(f?x:null),m},[s]),p=>{c(p)}]}const SELECTION_COLUMN={},SELECTION_ALL="SELECT_ALL",SELECTION_INVERT="SELECT_INVERT",SELECTION_NONE="SELECT_NONE",EMPTY_LIST$1=[],flattenData=(a,s)=>{let c=[];return(s||[]).forEach(u=>{c.push(u),u&&typeof u=="object"&&a in u&&(c=[].concat(_toConsumableArray$e(c),_toConsumableArray$e(flattenData(a,u[a]))))}),c},useSelection=(a,s)=>{const{preserveSelectedRowKeys:c,selectedRowKeys:u,defaultSelectedRowKeys:d,getCheckboxProps:p,onChange:v,onSelect:A,onSelectAll:b,onSelectInvert:g,onSelectNone:x,onSelectMultiple:y,columnWidth:f,type:m,selections:C,fixed:S,renderCell:w,hideSelectAll:I,checkStrictly:P=!0}=s||{},{prefixCls:$,data:_,pageData:E,getRecordByKey:R,getRowKey:T,expandType:B,childrenColumnName:M,locale:D,getPopupContainer:O}=a,H=devUseWarning(),[j,Q]=useMultipleSelect(ie=>ie),[L,F]=useMergedState(u||d||EMPTY_LIST$1,{value:u}),U=reactExports.useRef(new Map),N=reactExports.useCallback(ie=>{if(c){const ce=new Map;ie.forEach(ge=>{let Se=R(ge);!Se&&U.current.has(ge)&&(Se=U.current.get(ge)),ce.set(ge,Se)}),U.current=ce}},[R,c]);reactExports.useEffect(()=>{N(L)},[L]);const k=reactExports.useMemo(()=>flattenData(M,E),[M,E]),{keyEntities:W}=reactExports.useMemo(()=>{if(P)return{keyEntities:null};let ie=_;if(c){const ce=new Set(k.map((Se,be)=>T(Se,be))),ge=Array.from(U.current).reduce((Se,be)=>{let[me,fe]=be;return ce.has(me)?Se:Se.concat(fe)},[]);ie=[].concat(_toConsumableArray$e(ie),_toConsumableArray$e(ge))}return convertDataToEntities(ie,{externalGetKey:T,childrenPropName:M})},[_,T,P,M,c,k]),J=reactExports.useMemo(()=>{const ie=new Map;return k.forEach((ce,ge)=>{const Se=T(ce,ge),be=(p?p(ce):null)||{};ie.set(Se,be)}),ie},[k,T,p]),q=reactExports.useCallback(ie=>{const ce=T(ie);let ge;return J.has(ce)?ge=J.get(T(ie)):ge=p?p(ie):void 0,!!(ge!=null&&ge.disabled)},[J,T]),[Y,Z]=reactExports.useMemo(()=>{if(P)return[L||[],[]];const{checkedKeys:ie,halfCheckedKeys:ce}=conductCheck(L,!0,W,q);return[ie||[],ce]},[L,P,W,q]),ee=reactExports.useMemo(()=>{const ie=m==="radio"?Y.slice(0,1):Y;return new Set(ie)},[Y,m]),re=reactExports.useMemo(()=>m==="radio"?new Set:new Set(Z),[Z,m]);reactExports.useEffect(()=>{s||F(EMPTY_LIST$1)},[!!s]);const ae=reactExports.useCallback((ie,ce)=>{let ge,Se;N(ie),c?(ge=ie,Se=ie.map(be=>U.current.get(be))):(ge=[],Se=[],ie.forEach(be=>{const me=R(be);me!==void 0&&(ge.push(be),Se.push(me))})),F(ge),v==null||v(ge,Se,{type:ce})},[F,R,v,c]),V=reactExports.useCallback((ie,ce,ge,Se)=>{if(A){const be=ge.map(me=>R(me));A(R(ie),ce,be,Se)}ae(ge,"single")},[A,R,ae]),K=reactExports.useMemo(()=>!C||I?null:(C===!0?[SELECTION_ALL,SELECTION_INVERT,SELECTION_NONE]:C).map(ce=>ce===SELECTION_ALL?{key:"all",text:D.selectionAll,onSelect(){ae(_.map((ge,Se)=>T(ge,Se)).filter(ge=>{const Se=J.get(ge);return!(Se!=null&&Se.disabled)||ee.has(ge)}),"all")}}:ce===SELECTION_INVERT?{key:"invert",text:D.selectInvert,onSelect(){const ge=new Set(ee);E.forEach((be,me)=>{const fe=T(be,me),se=J.get(fe);se!=null&&se.disabled||(ge.has(fe)?ge.delete(fe):ge.add(fe))});const Se=Array.from(ge);g&&(H.deprecated(!1,"onSelectInvert","onChange"),g(Se)),ae(Se,"invert")}}:ce===SELECTION_NONE?{key:"none",text:D.selectNone,onSelect(){x==null||x(),ae(Array.from(ee).filter(ge=>{const Se=J.get(ge);return Se==null?void 0:Se.disabled}),"none")}}:ce).map(ce=>Object.assign(Object.assign({},ce),{onSelect:function(){for(var ge,Se,be=arguments.length,me=new Array(be),fe=0;fe<be;fe++)me[fe]=arguments[fe];(Se=ce.onSelect)===null||Se===void 0||(ge=Se).call.apply(ge,[ce].concat(me)),Q(null)}})),[C,ee,E,T,g,ae]);return[reactExports.useCallback(ie=>{var ce;if(!s)return ie.filter(Ie=>Ie!==SELECTION_COLUMN);let ge=_toConsumableArray$e(ie);const Se=new Set(ee),be=k.map(T).filter(Ie=>!J.get(Ie).disabled),me=be.every(Ie=>Se.has(Ie)),fe=be.some(Ie=>Se.has(Ie)),se=()=>{const Ie=[];me?be.forEach(Pe=>{Se.delete(Pe),Ie.push(Pe)}):be.forEach(Pe=>{Se.has(Pe)||(Se.add(Pe),Ie.push(Pe))});const ye=Array.from(Se);b==null||b(!me,ye.map(Pe=>R(Pe)),Ie.map(Pe=>R(Pe))),ae(ye,"all"),Q(null)};let oe,de;if(m!=="radio"){let Ie;if(K){const Me={getPopupContainer:O,items:K.map((Fe,_e)=>{const{key:je,text:Ye,onSelect:Te}=Fe;return{key:je??_e,onClick:()=>{Te==null||Te(be)},label:Ye}})};Ie=reactExports.createElement("div",{className:`${$}-selection-extra`},reactExports.createElement(Dropdown,{menu:Me,getPopupContainer:O},reactExports.createElement("span",null,reactExports.createElement(RefIcon$C,null))))}const ye=k.map((Me,Fe)=>{const _e=T(Me,Fe),je=J.get(_e)||{};return Object.assign({checked:Se.has(_e)},je)}).filter(Me=>{let{disabled:Fe}=Me;return Fe}),Pe=!!ye.length&&ye.length===k.length,Le=Pe&&ye.every(Me=>{let{checked:Fe}=Me;return Fe}),Ne=Pe&&ye.some(Me=>{let{checked:Fe}=Me;return Fe});de=reactExports.createElement(Checkbox$1,{checked:Pe?Le:!!k.length&&me,indeterminate:Pe?!Le&&Ne:!me&&fe,onChange:se,disabled:k.length===0||Pe,"aria-label":Ie?"Custom selection":"Select all",skipGroup:!0}),oe=!I&&reactExports.createElement("div",{className:`${$}-selection`},de,Ie)}let le;m==="radio"?le=(Ie,ye,Pe)=>{const Le=T(ye,Pe),Ne=Se.has(Le),Me=J.get(Le);return{node:reactExports.createElement(Radio$1,Object.assign({},Me,{checked:Ne,onClick:Fe=>{var _e;Fe.stopPropagation(),(_e=Me==null?void 0:Me.onClick)===null||_e===void 0||_e.call(Me,Fe)},onChange:Fe=>{var _e;Se.has(Le)||V(Le,!0,[Le],Fe.nativeEvent),(_e=Me==null?void 0:Me.onChange)===null||_e===void 0||_e.call(Me,Fe)}})),checked:Ne}}:le=(Ie,ye,Pe)=>{var Le;const Ne=T(ye,Pe),Me=Se.has(Ne),Fe=re.has(Ne),_e=J.get(Ne);let je;return B==="nest"?je=Fe:je=(Le=_e==null?void 0:_e.indeterminate)!==null&&Le!==void 0?Le:Fe,{node:reactExports.createElement(Checkbox$1,Object.assign({},_e,{indeterminate:je,checked:Me,skipGroup:!0,onClick:Ye=>{var Te;Ye.stopPropagation(),(Te=_e==null?void 0:_e.onClick)===null||Te===void 0||Te.call(_e,Ye)},onChange:Ye=>{var Te;const{nativeEvent:ke}=Ye,{shiftKey:De}=ke,Re=be.findIndex(Ve=>Ve===Ne),Ge=Y.some(Ve=>be.includes(Ve));if(De&&P&&Ge){const Ve=j(Re,be,Se),Xe=Array.from(Se);y==null||y(!Me,Xe.map(We=>R(We)),Ve.map(We=>R(We))),ae(Xe,"multiple")}else{const Ve=Y;if(P){const Xe=Me?arrDel(Ve,Ne):arrAdd(Ve,Ne);V(Ne,!Me,Xe,ke)}else{const Xe=conductCheck([].concat(_toConsumableArray$e(Ve),[Ne]),!0,W,q),{checkedKeys:We,halfCheckedKeys:ze}=Xe;let Qe=We;if(Me){const et=new Set(We);et.delete(Ne),Qe=conductCheck(Array.from(et),{halfCheckedKeys:ze},W,q).checkedKeys}V(Ne,!Me,Qe,ke)}}Q(Me?null:Re),(Te=_e==null?void 0:_e.onChange)===null||Te===void 0||Te.call(_e,Ye)}})),checked:Me}};const xe=(Ie,ye,Pe)=>{const{node:Le,checked:Ne}=le(Ie,ye,Pe);return w?w(Ne,ye,Pe,Le):Le};if(!ge.includes(SELECTION_COLUMN))if(ge.findIndex(Ie=>{var ye;return((ye=Ie[INTERNAL_COL_DEFINE])===null||ye===void 0?void 0:ye.columnType)==="EXPAND_COLUMN"})===0){const[Ie,...ye]=ge;ge=[Ie,SELECTION_COLUMN].concat(_toConsumableArray$e(ye))}else ge=[SELECTION_COLUMN].concat(_toConsumableArray$e(ge));const Ce=ge.indexOf(SELECTION_COLUMN);ge=ge.filter((Ie,ye)=>Ie!==SELECTION_COLUMN||ye===Ce);const $e=ge[Ce-1],we=ge[Ce+1];let Ee=S;Ee===void 0&&((we==null?void 0:we.fixed)!==void 0?Ee=we.fixed:($e==null?void 0:$e.fixed)!==void 0&&(Ee=$e.fixed)),Ee&&$e&&((ce=$e[INTERNAL_COL_DEFINE])===null||ce===void 0?void 0:ce.columnType)==="EXPAND_COLUMN"&&$e.fixed===void 0&&($e.fixed=Ee);const Ae=classnames(`${$}-selection-col`,{[`${$}-selection-col-with-dropdown`]:C&&m==="checkbox"}),pe=()=>s!=null&&s.columnTitle?typeof s.columnTitle=="function"?s.columnTitle(de):s.columnTitle:oe,he={fixed:Ee,width:f,className:`${$}-selection-column`,title:pe(),render:xe,onCell:s.onCell,[INTERNAL_COL_DEFINE]:{className:Ae}};return ge.map(Ie=>Ie===SELECTION_COLUMN?he:Ie)},[T,k,s,Y,ee,re,f,K,B,J,y,V,q]),ee]};function fillProxy(a,s){return a._antProxy=a._antProxy||{},Object.keys(s).forEach(c=>{if(!(c in a._antProxy)){const u=a[c];a._antProxy[c]=u,a[c]=s[c]}}),a}function useProxyImperativeHandle(a,s){return reactExports.useImperativeHandle(a,()=>{const c=s(),{nativeElement:u}=c;return typeof Proxy<"u"?new Proxy(u,{get(d,p){return c[p]?c[p]:Reflect.get(d,p)}}):fillProxy(u,c)})}function renderExpandIcon(a){return s=>{const{prefixCls:c,onExpand:u,record:d,expanded:p,expandable:v}=s,A=`${c}-row-expand-icon`;return reactExports.createElement("button",{type:"button",onClick:b=>{u(d,b),b.stopPropagation()},className:classnames(A,{[`${A}-spaced`]:!v,[`${A}-expanded`]:v&&p,[`${A}-collapsed`]:v&&!p}),"aria-label":p?a.collapse:a.expand,"aria-expanded":p})}}function useContainerWidth(a){return(c,u)=>{const d=c.querySelector(`.${a}-container`);let p=u;if(d){const v=getComputedStyle(d),A=parseInt(v.borderLeftWidth,10),b=parseInt(v.borderRightWidth,10);p=u-A-b}return p}}const getColumnKey=(a,s)=>"key"in a&&a.key!==void 0&&a.key!==null?a.key:a.dataIndex?Array.isArray(a.dataIndex)?a.dataIndex.join("."):a.dataIndex:s;function getColumnPos(a,s){return s?`${s}-${a}`:`${a}`}const renderColumnTitle=(a,s)=>typeof a=="function"?a(s):a,safeColumnTitle=(a,s)=>{const c=renderColumnTitle(a,s);return Object.prototype.toString.call(c)==="[object Object]"?"":c};function useSyncState(a){const s=reactExports.useRef(a),c=useForceUpdate();return[()=>s.current,u=>{s.current=u,c()}]}var DropIndicator=function a(s){var c=s.dropPosition,u=s.dropLevelOffset,d=s.indent,p={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(c){case-1:p.top=0,p.left=-u*d;break;case 1:p.bottom=0,p.left=-u*d;break;case 0:p.bottom=0,p.left=d;break}return React.createElement("div",{style:p})};function _objectDestructuringEmpty(a){if(a==null)throw new TypeError("Cannot destructure "+a)}function useUnmount$1(a,s){var c=reactExports.useState(!1),u=_slicedToArray$e(c,2),d=u[0],p=u[1];useLayoutEffect$1(function(){if(d)return a(),function(){s()}},[d]),useLayoutEffect$1(function(){return p(!0),function(){p(!1)}},[])}var _excluded$5=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],MotionTreeNode=reactExports.forwardRef(function(a,s){var c=a.className,u=a.style,d=a.motion,p=a.motionNodes,v=a.motionType,A=a.onMotionStart,b=a.onMotionEnd,g=a.active,x=a.treeNodeRequiredProps,y=_objectWithoutProperties$2(a,_excluded$5),f=reactExports.useState(!0),m=_slicedToArray$e(f,2),C=m[0],S=m[1],w=reactExports.useContext(TreeContext),I=w.prefixCls,P=p&&v!=="hide";useLayoutEffect$1(function(){p&&P!==C&&S(P)},[p]);var $=function(){p&&A()},_=reactExports.useRef(!1),E=function(){p&&!_.current&&(_.current=!0,b())};useUnmount$1($,E);var R=function(B){P===B&&E()};return p?reactExports.createElement(CSSMotion,_extends$3({ref:s,visible:C},d,{motionAppear:v==="show",onVisibleChanged:R}),function(T,B){var M=T.className,D=T.style;return reactExports.createElement("div",{ref:B,className:classnames("".concat(I,"-treenode-motion"),M),style:D},p.map(function(O){var H=Object.assign({},(_objectDestructuringEmpty(O.data),O.data)),j=O.title,Q=O.key,L=O.isStart,F=O.isEnd;delete H.children;var U=getTreeNodeProps(Q,x);return reactExports.createElement(TreeNode$1,_extends$3({},H,U,{title:j,active:g,data:O.data,key:Q,isStart:L,isEnd:F}))}))}):reactExports.createElement(TreeNode$1,_extends$3({domRef:s,className:c,style:u},y,{active:g}))});function findExpandedKeys(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],c=a.length,u=s.length;if(Math.abs(c-u)!==1)return{add:!1,key:null};function d(p,v){var A=new Map;p.forEach(function(g){A.set(g,!0)});var b=v.filter(function(g){return!A.has(g)});return b.length===1?b[0]:null}return c<u?{add:!0,key:d(a,s)}:{add:!1,key:d(s,a)}}function getExpandRange(a,s,c){var u=a.findIndex(function(A){return A.key===c}),d=a[u+1],p=s.findIndex(function(A){return A.key===c});if(d){var v=s.findIndex(function(A){return A.key===d.key});return s.slice(p+1,v)}return s.slice(p+1)}var _excluded$4=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],HIDDEN_STYLE$1={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},noop$2=function a(){},MOTION_KEY="RC_TREE_MOTION_".concat(Math.random()),MotionNode={key:MOTION_KEY},MotionEntity={key:MOTION_KEY,level:0,index:0,pos:"0",node:MotionNode,nodes:[MotionNode]},MotionFlattenData={parent:null,children:[],pos:MotionEntity.pos,data:MotionNode,title:null,key:MOTION_KEY,isStart:[],isEnd:[]};function getMinimumRangeTransitionRange(a,s,c,u){return s===!1||!c?a:a.slice(0,Math.ceil(c/u)+1)}function itemKey(a){var s=a.key,c=a.pos;return getKey$1(s,c)}function getAccessibilityPath(a){for(var s=String(a.data.key),c=a;c.parent;)c=c.parent,s="".concat(c.data.key," > ").concat(s);return s}var NodeList=reactExports.forwardRef(function(a,s){var c=a.prefixCls,u=a.data;a.selectable,a.checkable;var d=a.expandedKeys,p=a.selectedKeys,v=a.checkedKeys,A=a.loadedKeys,b=a.loadingKeys,g=a.halfCheckedKeys,x=a.keyEntities,y=a.disabled,f=a.dragging,m=a.dragOverNodeKey,C=a.dropPosition,S=a.motion,w=a.height,I=a.itemHeight,P=a.virtual,$=a.scrollWidth,_=a.focusable,E=a.activeItem,R=a.focused,T=a.tabIndex,B=a.onKeyDown,M=a.onFocus,D=a.onBlur,O=a.onActiveChange,H=a.onListChangeStart,j=a.onListChangeEnd,Q=_objectWithoutProperties$2(a,_excluded$4),L=reactExports.useRef(null),F=reactExports.useRef(null);reactExports.useImperativeHandle(s,function(){return{scrollTo:function(xe){L.current.scrollTo(xe)},getIndentWidth:function(){return F.current.offsetWidth}}});var U=reactExports.useState(d),N=_slicedToArray$e(U,2),k=N[0],W=N[1],J=reactExports.useState(u),q=_slicedToArray$e(J,2),Y=q[0],Z=q[1],ee=reactExports.useState(u),re=_slicedToArray$e(ee,2),ae=re[0],V=re[1],K=reactExports.useState([]),te=_slicedToArray$e(K,2),ie=te[0],ce=te[1],ge=reactExports.useState(null),Se=_slicedToArray$e(ge,2),be=Se[0],me=Se[1],fe=reactExports.useRef(u);fe.current=u;function se(){var le=fe.current;Z(le),V(le),ce([]),me(null),j()}useLayoutEffect$1(function(){W(d);var le=findExpandedKeys(k,d);if(le.key!==null)if(le.add){var xe=Y.findIndex(function(pe){var he=pe.key;return he===le.key}),Ce=getMinimumRangeTransitionRange(getExpandRange(Y,u,le.key),P,w,I),$e=Y.slice();$e.splice(xe+1,0,MotionFlattenData),V($e),ce(Ce),me("show")}else{var we=u.findIndex(function(pe){var he=pe.key;return he===le.key}),Ee=getMinimumRangeTransitionRange(getExpandRange(u,Y,le.key),P,w,I),Ae=u.slice();Ae.splice(we+1,0,MotionFlattenData),V(Ae),ce(Ee),me("hide")}else Y!==u&&(Z(u),V(u))},[d,u]),reactExports.useEffect(function(){f||se()},[f]);var oe=S?ae:u,de={expandedKeys:d,selectedKeys:p,loadedKeys:A,loadingKeys:b,checkedKeys:v,halfCheckedKeys:g,dragOverNodeKey:m,dropPosition:C,keyEntities:x};return reactExports.createElement(reactExports.Fragment,null,R&&E&&reactExports.createElement("span",{style:HIDDEN_STYLE$1,"aria-live":"assertive"},getAccessibilityPath(E)),reactExports.createElement("div",null,reactExports.createElement("input",{style:HIDDEN_STYLE$1,disabled:_===!1||y,tabIndex:_!==!1?T:null,onKeyDown:B,onFocus:M,onBlur:D,value:"",onChange:noop$2,"aria-label":"for screen reader"})),reactExports.createElement("div",{className:"".concat(c,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},reactExports.createElement("div",{className:"".concat(c,"-indent")},reactExports.createElement("div",{ref:F,className:"".concat(c,"-indent-unit")}))),reactExports.createElement(List,_extends$3({},Q,{data:oe,itemKey,height:w,fullHeight:!1,virtual:P,itemHeight:I,scrollWidth:$,prefixCls:"".concat(c,"-list"),ref:L,role:"tree",onVisibleChange:function(xe){xe.every(function(Ce){return itemKey(Ce)!==MOTION_KEY})&&se()}}),function(le){var xe=le.pos,Ce=Object.assign({},(_objectDestructuringEmpty(le.data),le.data)),$e=le.title,we=le.key,Ee=le.isStart,Ae=le.isEnd,pe=getKey$1(we,xe);delete Ce.key,delete Ce.children;var he=getTreeNodeProps(pe,de);return reactExports.createElement(MotionTreeNode,_extends$3({},Ce,he,{title:$e,active:!!E&&we===E.key,pos:xe,data:le.data,isStart:Ee,isEnd:Ae,motion:S,motionNodes:we===MOTION_KEY?ie:null,motionType:be,onMotionStart:H,onMotionEnd:se,treeNodeRequiredProps:de,onMouseMove:function(){O(null)}}))}))}),MAX_RETRY_TIMES=10,Tree$2=function(a){_inherits$1(c,a);var s=_createSuper(c);function c(){var u;_classCallCheck$1(this,c);for(var d=arguments.length,p=new Array(d),v=0;v<d;v++)p[v]=arguments[v];return u=s.call.apply(s,[this].concat(p)),_defineProperty$a(_assertThisInitialized(u),"destroyed",!1),_defineProperty$a(_assertThisInitialized(u),"delayedDragEnterLogic",void 0),_defineProperty$a(_assertThisInitialized(u),"loadingRetryTimes",{}),_defineProperty$a(_assertThisInitialized(u),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:fillFieldNames$1()}),_defineProperty$a(_assertThisInitialized(u),"dragStartMousePosition",null),_defineProperty$a(_assertThisInitialized(u),"dragNodeProps",null),_defineProperty$a(_assertThisInitialized(u),"currentMouseOverDroppableNodeKey",null),_defineProperty$a(_assertThisInitialized(u),"listRef",reactExports.createRef()),_defineProperty$a(_assertThisInitialized(u),"onNodeDragStart",function(A,b){var g=u.state,x=g.expandedKeys,y=g.keyEntities,f=u.props.onDragStart,m=b.eventKey;u.dragNodeProps=b,u.dragStartMousePosition={x:A.clientX,y:A.clientY};var C=arrDel(x,m);u.setState({draggingNodeKey:m,dragChildrenKeys:getDragChildrenKeys(m,y),indent:u.listRef.current.getIndentWidth()}),u.setExpandedKeys(C),window.addEventListener("dragend",u.onWindowDragEnd),f==null||f({event:A,node:convertNodePropsToEventData(b)})}),_defineProperty$a(_assertThisInitialized(u),"onNodeDragEnter",function(A,b){var g=u.state,x=g.expandedKeys,y=g.keyEntities,f=g.dragChildrenKeys,m=g.flattenNodes,C=g.indent,S=u.props,w=S.onDragEnter,I=S.onExpand,P=S.allowDrop,$=S.direction,_=b.pos,E=b.eventKey;if(u.currentMouseOverDroppableNodeKey!==E&&(u.currentMouseOverDroppableNodeKey=E),!u.dragNodeProps){u.resetDragState();return}var R=calcDropPosition(A,u.dragNodeProps,b,C,u.dragStartMousePosition,P,m,y,x,$),T=R.dropPosition,B=R.dropLevelOffset,M=R.dropTargetKey,D=R.dropContainerKey,O=R.dropTargetPos,H=R.dropAllowed,j=R.dragOverNodeKey;if(f.includes(M)||!H){u.resetDragState();return}if(u.delayedDragEnterLogic||(u.delayedDragEnterLogic={}),Object.keys(u.delayedDragEnterLogic).forEach(function(Q){clearTimeout(u.delayedDragEnterLogic[Q])}),u.dragNodeProps.eventKey!==b.eventKey&&(A.persist(),u.delayedDragEnterLogic[_]=window.setTimeout(function(){if(u.state.draggingNodeKey!==null){var Q=_toConsumableArray$e(x),L=getEntity(y,b.eventKey);L&&(L.children||[]).length&&(Q=arrAdd(x,b.eventKey)),u.props.hasOwnProperty("expandedKeys")||u.setExpandedKeys(Q),I==null||I(Q,{node:convertNodePropsToEventData(b),expanded:!0,nativeEvent:A.nativeEvent})}},800)),u.dragNodeProps.eventKey===M&&B===0){u.resetDragState();return}u.setState({dragOverNodeKey:j,dropPosition:T,dropLevelOffset:B,dropTargetKey:M,dropContainerKey:D,dropTargetPos:O,dropAllowed:H}),w==null||w({event:A,node:convertNodePropsToEventData(b),expandedKeys:x})}),_defineProperty$a(_assertThisInitialized(u),"onNodeDragOver",function(A,b){var g=u.state,x=g.dragChildrenKeys,y=g.flattenNodes,f=g.keyEntities,m=g.expandedKeys,C=g.indent,S=u.props,w=S.onDragOver,I=S.allowDrop,P=S.direction;if(u.dragNodeProps){var $=calcDropPosition(A,u.dragNodeProps,b,C,u.dragStartMousePosition,I,y,f,m,P),_=$.dropPosition,E=$.dropLevelOffset,R=$.dropTargetKey,T=$.dropContainerKey,B=$.dropTargetPos,M=$.dropAllowed,D=$.dragOverNodeKey;x.includes(R)||!M||(u.dragNodeProps.eventKey===R&&E===0?u.state.dropPosition===null&&u.state.dropLevelOffset===null&&u.state.dropTargetKey===null&&u.state.dropContainerKey===null&&u.state.dropTargetPos===null&&u.state.dropAllowed===!1&&u.state.dragOverNodeKey===null||u.resetDragState():_===u.state.dropPosition&&E===u.state.dropLevelOffset&&R===u.state.dropTargetKey&&T===u.state.dropContainerKey&&B===u.state.dropTargetPos&&M===u.state.dropAllowed&&D===u.state.dragOverNodeKey||u.setState({dropPosition:_,dropLevelOffset:E,dropTargetKey:R,dropContainerKey:T,dropTargetPos:B,dropAllowed:M,dragOverNodeKey:D}),w==null||w({event:A,node:convertNodePropsToEventData(b)}))}}),_defineProperty$a(_assertThisInitialized(u),"onNodeDragLeave",function(A,b){u.currentMouseOverDroppableNodeKey===b.eventKey&&!A.currentTarget.contains(A.relatedTarget)&&(u.resetDragState(),u.currentMouseOverDroppableNodeKey=null);var g=u.props.onDragLeave;g==null||g({event:A,node:convertNodePropsToEventData(b)})}),_defineProperty$a(_assertThisInitialized(u),"onWindowDragEnd",function(A){u.onNodeDragEnd(A,null,!0),window.removeEventListener("dragend",u.onWindowDragEnd)}),_defineProperty$a(_assertThisInitialized(u),"onNodeDragEnd",function(A,b){var g=u.props.onDragEnd;u.setState({dragOverNodeKey:null}),u.cleanDragState(),g==null||g({event:A,node:convertNodePropsToEventData(b)}),u.dragNodeProps=null,window.removeEventListener("dragend",u.onWindowDragEnd)}),_defineProperty$a(_assertThisInitialized(u),"onNodeDrop",function(A,b){var g,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,y=u.state,f=y.dragChildrenKeys,m=y.dropPosition,C=y.dropTargetKey,S=y.dropTargetPos,w=y.dropAllowed;if(w){var I=u.props.onDrop;if(u.setState({dragOverNodeKey:null}),u.cleanDragState(),C!==null){var P=_objectSpread2$1(_objectSpread2$1({},getTreeNodeProps(C,u.getTreeNodeRequiredProps())),{},{active:((g=u.getActiveItem())===null||g===void 0?void 0:g.key)===C,data:getEntity(u.state.keyEntities,C).node}),$=f.includes(C);warningOnce(!$,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var _=posToArr(S),E={event:A,node:convertNodePropsToEventData(P),dragNode:u.dragNodeProps?convertNodePropsToEventData(u.dragNodeProps):null,dragNodesKeys:[u.dragNodeProps.eventKey].concat(f),dropToGap:m!==0,dropPosition:m+Number(_[_.length-1])};x||I==null||I(E),u.dragNodeProps=null}}}),_defineProperty$a(_assertThisInitialized(u),"cleanDragState",function(){var A=u.state.draggingNodeKey;A!==null&&u.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),u.dragStartMousePosition=null,u.currentMouseOverDroppableNodeKey=null}),_defineProperty$a(_assertThisInitialized(u),"triggerExpandActionExpand",function(A,b){var g=u.state,x=g.expandedKeys,y=g.flattenNodes,f=b.expanded,m=b.key,C=b.isLeaf;if(!(C||A.shiftKey||A.metaKey||A.ctrlKey)){var S=y.filter(function(I){return I.key===m})[0],w=convertNodePropsToEventData(_objectSpread2$1(_objectSpread2$1({},getTreeNodeProps(m,u.getTreeNodeRequiredProps())),{},{data:S.data}));u.setExpandedKeys(f?arrDel(x,m):arrAdd(x,m)),u.onNodeExpand(A,w)}}),_defineProperty$a(_assertThisInitialized(u),"onNodeClick",function(A,b){var g=u.props,x=g.onClick,y=g.expandAction;y==="click"&&u.triggerExpandActionExpand(A,b),x==null||x(A,b)}),_defineProperty$a(_assertThisInitialized(u),"onNodeDoubleClick",function(A,b){var g=u.props,x=g.onDoubleClick,y=g.expandAction;y==="doubleClick"&&u.triggerExpandActionExpand(A,b),x==null||x(A,b)}),_defineProperty$a(_assertThisInitialized(u),"onNodeSelect",function(A,b){var g=u.state.selectedKeys,x=u.state,y=x.keyEntities,f=x.fieldNames,m=u.props,C=m.onSelect,S=m.multiple,w=b.selected,I=b[f.key],P=!w;P?S?g=arrAdd(g,I):g=[I]:g=arrDel(g,I);var $=g.map(function(_){var E=getEntity(y,_);return E?E.node:null}).filter(Boolean);u.setUncontrolledState({selectedKeys:g}),C==null||C(g,{event:"select",selected:P,node:b,selectedNodes:$,nativeEvent:A.nativeEvent})}),_defineProperty$a(_assertThisInitialized(u),"onNodeCheck",function(A,b,g){var x=u.state,y=x.keyEntities,f=x.checkedKeys,m=x.halfCheckedKeys,C=u.props,S=C.checkStrictly,w=C.onCheck,I=b.key,P,$={event:"check",node:b,checked:g,nativeEvent:A.nativeEvent};if(S){var _=g?arrAdd(f,I):arrDel(f,I),E=arrDel(m,I);P={checked:_,halfChecked:E},$.checkedNodes=_.map(function(O){return getEntity(y,O)}).filter(Boolean).map(function(O){return O.node}),u.setUncontrolledState({checkedKeys:_})}else{var R=conductCheck([].concat(_toConsumableArray$e(f),[I]),!0,y),T=R.checkedKeys,B=R.halfCheckedKeys;if(!g){var M=new Set(T);M.delete(I);var D=conductCheck(Array.from(M),{halfCheckedKeys:B},y);T=D.checkedKeys,B=D.halfCheckedKeys}P=T,$.checkedNodes=[],$.checkedNodesPositions=[],$.halfCheckedKeys=B,T.forEach(function(O){var H=getEntity(y,O);if(H){var j=H.node,Q=H.pos;$.checkedNodes.push(j),$.checkedNodesPositions.push({node:j,pos:Q})}}),u.setUncontrolledState({checkedKeys:T},!1,{halfCheckedKeys:B})}w==null||w(P,$)}),_defineProperty$a(_assertThisInitialized(u),"onNodeLoad",function(A){var b,g=A.key,x=u.state.keyEntities,y=getEntity(x,g);if(!(y!=null&&(b=y.children)!==null&&b!==void 0&&b.length)){var f=new Promise(function(m,C){u.setState(function(S){var w=S.loadedKeys,I=w===void 0?[]:w,P=S.loadingKeys,$=P===void 0?[]:P,_=u.props,E=_.loadData,R=_.onLoad;if(!E||I.includes(g)||$.includes(g))return null;var T=E(A);return T.then(function(){var B=u.state.loadedKeys,M=arrAdd(B,g);R==null||R(M,{event:"load",node:A}),u.setUncontrolledState({loadedKeys:M}),u.setState(function(D){return{loadingKeys:arrDel(D.loadingKeys,g)}}),m()}).catch(function(B){if(u.setState(function(D){return{loadingKeys:arrDel(D.loadingKeys,g)}}),u.loadingRetryTimes[g]=(u.loadingRetryTimes[g]||0)+1,u.loadingRetryTimes[g]>=MAX_RETRY_TIMES){var M=u.state.loadedKeys;warningOnce(!1,"Retry for `loadData` many times but still failed. No more retry."),u.setUncontrolledState({loadedKeys:arrAdd(M,g)}),m()}C(B)}),{loadingKeys:arrAdd($,g)}})});return f.catch(function(){}),f}}),_defineProperty$a(_assertThisInitialized(u),"onNodeMouseEnter",function(A,b){var g=u.props.onMouseEnter;g==null||g({event:A,node:b})}),_defineProperty$a(_assertThisInitialized(u),"onNodeMouseLeave",function(A,b){var g=u.props.onMouseLeave;g==null||g({event:A,node:b})}),_defineProperty$a(_assertThisInitialized(u),"onNodeContextMenu",function(A,b){var g=u.props.onRightClick;g&&(A.preventDefault(),g({event:A,node:b}))}),_defineProperty$a(_assertThisInitialized(u),"onFocus",function(){var A=u.props.onFocus;u.setState({focused:!0});for(var b=arguments.length,g=new Array(b),x=0;x<b;x++)g[x]=arguments[x];A==null||A.apply(void 0,g)}),_defineProperty$a(_assertThisInitialized(u),"onBlur",function(){var A=u.props.onBlur;u.setState({focused:!1}),u.onActiveChange(null);for(var b=arguments.length,g=new Array(b),x=0;x<b;x++)g[x]=arguments[x];A==null||A.apply(void 0,g)}),_defineProperty$a(_assertThisInitialized(u),"getTreeNodeRequiredProps",function(){var A=u.state,b=A.expandedKeys,g=A.selectedKeys,x=A.loadedKeys,y=A.loadingKeys,f=A.checkedKeys,m=A.halfCheckedKeys,C=A.dragOverNodeKey,S=A.dropPosition,w=A.keyEntities;return{expandedKeys:b||[],selectedKeys:g||[],loadedKeys:x||[],loadingKeys:y||[],checkedKeys:f||[],halfCheckedKeys:m||[],dragOverNodeKey:C,dropPosition:S,keyEntities:w}}),_defineProperty$a(_assertThisInitialized(u),"setExpandedKeys",function(A){var b=u.state,g=b.treeData,x=b.fieldNames,y=flattenTreeData(g,A,x);u.setUncontrolledState({expandedKeys:A,flattenNodes:y},!0)}),_defineProperty$a(_assertThisInitialized(u),"onNodeExpand",function(A,b){var g=u.state.expandedKeys,x=u.state,y=x.listChanging,f=x.fieldNames,m=u.props,C=m.onExpand,S=m.loadData,w=b.expanded,I=b[f.key];if(!y){var P=g.includes(I),$=!w;if(warningOnce(w&&P||!w&&!P,"Expand state not sync with index check"),g=$?arrAdd(g,I):arrDel(g,I),u.setExpandedKeys(g),C==null||C(g,{node:b,expanded:$,nativeEvent:A.nativeEvent}),$&&S){var _=u.onNodeLoad(b);_&&_.then(function(){var E=flattenTreeData(u.state.treeData,g,f);u.setUncontrolledState({flattenNodes:E})}).catch(function(){var E=u.state.expandedKeys,R=arrDel(E,I);u.setExpandedKeys(R)})}}}),_defineProperty$a(_assertThisInitialized(u),"onListChangeStart",function(){u.setUncontrolledState({listChanging:!0})}),_defineProperty$a(_assertThisInitialized(u),"onListChangeEnd",function(){setTimeout(function(){u.setUncontrolledState({listChanging:!1})})}),_defineProperty$a(_assertThisInitialized(u),"onActiveChange",function(A){var b=u.state.activeKey,g=u.props,x=g.onActiveChange,y=g.itemScrollOffset,f=y===void 0?0:y;b!==A&&(u.setState({activeKey:A}),A!==null&&u.scrollTo({key:A,offset:f}),x==null||x(A))}),_defineProperty$a(_assertThisInitialized(u),"getActiveItem",function(){var A=u.state,b=A.activeKey,g=A.flattenNodes;return b===null?null:g.find(function(x){var y=x.key;return y===b})||null}),_defineProperty$a(_assertThisInitialized(u),"offsetActiveKey",function(A){var b=u.state,g=b.flattenNodes,x=b.activeKey,y=g.findIndex(function(C){var S=C.key;return S===x});y===-1&&A<0&&(y=g.length),y=(y+A+g.length)%g.length;var f=g[y];if(f){var m=f.key;u.onActiveChange(m)}else u.onActiveChange(null)}),_defineProperty$a(_assertThisInitialized(u),"onKeyDown",function(A){var b=u.state,g=b.activeKey,x=b.expandedKeys,y=b.checkedKeys,f=b.fieldNames,m=u.props,C=m.onKeyDown,S=m.checkable,w=m.selectable;switch(A.which){case KeyCode.UP:{u.offsetActiveKey(-1),A.preventDefault();break}case KeyCode.DOWN:{u.offsetActiveKey(1),A.preventDefault();break}}var I=u.getActiveItem();if(I&&I.data){var P=u.getTreeNodeRequiredProps(),$=I.data.isLeaf===!1||!!(I.data[f.children]||[]).length,_=convertNodePropsToEventData(_objectSpread2$1(_objectSpread2$1({},getTreeNodeProps(g,P)),{},{data:I.data,active:!0}));switch(A.which){case KeyCode.LEFT:{$&&x.includes(g)?u.onNodeExpand({},_):I.parent&&u.onActiveChange(I.parent.key),A.preventDefault();break}case KeyCode.RIGHT:{$&&!x.includes(g)?u.onNodeExpand({},_):I.children&&I.children.length&&u.onActiveChange(I.children[0].key),A.preventDefault();break}case KeyCode.ENTER:case KeyCode.SPACE:{S&&!_.disabled&&_.checkable!==!1&&!_.disableCheckbox?u.onNodeCheck({},_,!y.includes(g)):!S&&w&&!_.disabled&&_.selectable!==!1&&u.onNodeSelect({},_);break}}}C==null||C(A)}),_defineProperty$a(_assertThisInitialized(u),"setUncontrolledState",function(A){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!u.destroyed){var x=!1,y=!0,f={};Object.keys(A).forEach(function(m){if(u.props.hasOwnProperty(m)){y=!1;return}x=!0,f[m]=A[m]}),x&&(!b||y)&&u.setState(_objectSpread2$1(_objectSpread2$1({},f),g))}}),_defineProperty$a(_assertThisInitialized(u),"scrollTo",function(A){u.listRef.current.scrollTo(A)}),u}return _createClass$1(c,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var d=this.props,p=d.activeKey,v=d.itemScrollOffset,A=v===void 0?0:v;p!==void 0&&p!==this.state.activeKey&&(this.setState({activeKey:p}),p!==null&&this.scrollTo({key:p,offset:A}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var d=this.state,p=d.focused,v=d.flattenNodes,A=d.keyEntities,b=d.draggingNodeKey,g=d.activeKey,x=d.dropLevelOffset,y=d.dropContainerKey,f=d.dropTargetKey,m=d.dropPosition,C=d.dragOverNodeKey,S=d.indent,w=this.props,I=w.prefixCls,P=w.className,$=w.style,_=w.showLine,E=w.focusable,R=w.tabIndex,T=R===void 0?0:R,B=w.selectable,M=w.showIcon,D=w.icon,O=w.switcherIcon,H=w.draggable,j=w.checkable,Q=w.checkStrictly,L=w.disabled,F=w.motion,U=w.loadData,N=w.filterTreeNode,k=w.height,W=w.itemHeight,J=w.scrollWidth,q=w.virtual,Y=w.titleRender,Z=w.dropIndicatorRender,ee=w.onContextMenu,re=w.onScroll,ae=w.direction,V=w.rootClassName,K=w.rootStyle,te=pickAttrs(this.props,{aria:!0,data:!0}),ie;H&&(_typeof$h(H)==="object"?ie=H:typeof H=="function"?ie={nodeDraggable:H}:ie={});var ce={prefixCls:I,selectable:B,showIcon:M,icon:D,switcherIcon:O,draggable:ie,draggingNodeKey:b,checkable:j,checkStrictly:Q,disabled:L,keyEntities:A,dropLevelOffset:x,dropContainerKey:y,dropTargetKey:f,dropPosition:m,dragOverNodeKey:C,indent:S,direction:ae,dropIndicatorRender:Z,loadData:U,filterTreeNode:N,titleRender:Y,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return reactExports.createElement(TreeContext.Provider,{value:ce},reactExports.createElement("div",{className:classnames(I,P,V,_defineProperty$a(_defineProperty$a(_defineProperty$a({},"".concat(I,"-show-line"),_),"".concat(I,"-focused"),p),"".concat(I,"-active-focused"),g!==null)),style:K},reactExports.createElement(NodeList,_extends$3({ref:this.listRef,prefixCls:I,style:$,data:v,disabled:L,selectable:B,checkable:!!j,motion:F,dragging:b!==null,height:k,itemHeight:W,virtual:q,focusable:E,focused:p,tabIndex:T,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ee,onScroll:re,scrollWidth:J},this.getTreeNodeRequiredProps(),te))))}}],[{key:"getDerivedStateFromProps",value:function(d,p){var v=p.prevProps,A={prevProps:d};function b(T){return!v&&d.hasOwnProperty(T)||v&&v[T]!==d[T]}var g,x=p.fieldNames;if(b("fieldNames")&&(x=fillFieldNames$1(d.fieldNames),A.fieldNames=x),b("treeData")?g=d.treeData:b("children")&&(warningOnce(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),g=convertTreeToData(d.children)),g){A.treeData=g;var y=convertDataToEntities(g,{fieldNames:x});A.keyEntities=_objectSpread2$1(_defineProperty$a({},MOTION_KEY,MotionEntity),y.keyEntities)}var f=A.keyEntities||p.keyEntities;if(b("expandedKeys")||v&&b("autoExpandParent"))A.expandedKeys=d.autoExpandParent||!v&&d.defaultExpandParent?conductExpandParent(d.expandedKeys,f):d.expandedKeys;else if(!v&&d.defaultExpandAll){var m=_objectSpread2$1({},f);delete m[MOTION_KEY];var C=[];Object.keys(m).forEach(function(T){var B=m[T];B.children&&B.children.length&&C.push(B.key)}),A.expandedKeys=C}else!v&&d.defaultExpandedKeys&&(A.expandedKeys=d.autoExpandParent||d.defaultExpandParent?conductExpandParent(d.defaultExpandedKeys,f):d.defaultExpandedKeys);if(A.expandedKeys||delete A.expandedKeys,g||A.expandedKeys){var S=flattenTreeData(g||p.treeData,A.expandedKeys||p.expandedKeys,x);A.flattenNodes=S}if(d.selectable&&(b("selectedKeys")?A.selectedKeys=calcSelectedKeys(d.selectedKeys,d):!v&&d.defaultSelectedKeys&&(A.selectedKeys=calcSelectedKeys(d.defaultSelectedKeys,d))),d.checkable){var w;if(b("checkedKeys")?w=parseCheckedKeys(d.checkedKeys)||{}:!v&&d.defaultCheckedKeys?w=parseCheckedKeys(d.defaultCheckedKeys)||{}:g&&(w=parseCheckedKeys(d.checkedKeys)||{checkedKeys:p.checkedKeys,halfCheckedKeys:p.halfCheckedKeys}),w){var I=w,P=I.checkedKeys,$=P===void 0?[]:P,_=I.halfCheckedKeys,E=_===void 0?[]:_;if(!d.checkStrictly){var R=conductCheck($,!0,f);$=R.checkedKeys,E=R.halfCheckedKeys}A.checkedKeys=$,A.halfCheckedKeys=E}}return b("loadedKeys")&&(A.loadedKeys=d.loadedKeys),A}}]),c}(reactExports.Component);_defineProperty$a(Tree$2,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:DropIndicator,allowDrop:function a(){return!0},expandAction:!1}),_defineProperty$a(Tree$2,"TreeNode",TreeNode$1);const genDirectoryStyle=a=>{let{treeCls:s,treeNodeCls:c,directoryNodeSelectedBg:u,directoryNodeSelectedColor:d,motionDurationMid:p,borderRadius:v,controlItemBgHover:A}=a;return{[`${s}${s}-directory ${c}`]:{[`${s}-node-content-wrapper`]:{position:"static",[`> *:not(${s}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${p}`,content:'""',borderRadius:v},"&:hover:before":{background:A}},[`${s}-switcher, ${s}-checkbox, ${s}-draggable-icon`]:{zIndex:1},"&-selected":{[`${s}-switcher, ${s}-draggable-icon`]:{color:d},[`${s}-node-content-wrapper`]:{color:d,background:"transparent","&:before, &:hover:before":{background:u}}}}}},treeNodeFX=new Keyframe("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),getSwitchStyle=(a,s)=>({[`.${a}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${s.motionDurationSlow}`}}}),getDropIndicatorStyle=(a,s)=>({[`.${a}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:s.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${unit$1(s.lineWidthBold)} solid ${s.colorPrimary}`,borderRadius:"50%",content:'""'}}}),genBaseStyle$2=(a,s)=>{const{treeCls:c,treeNodeCls:u,treeNodePadding:d,titleHeight:p,indentSize:v,nodeSelectedBg:A,nodeHoverBg:b,colorTextQuaternary:g,controlItemBgActiveDisabled:x}=s;return{[c]:Object.assign(Object.assign({},resetComponent(s)),{background:s.colorBgContainer,borderRadius:s.borderRadius,transition:`background-color ${s.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${c}-rtl ${c}-switcher_close ${c}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${c}-active-focused)`]:Object.assign({},genFocusOutline(s)),[`${c}-list-holder-inner`]:{alignItems:"flex-start"},[`&${c}-block-node`]:{[`${c}-list-holder-inner`]:{alignItems:"stretch",[`${c}-node-content-wrapper`]:{flex:"auto"},[`${u}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${s.colorPrimary}`,opacity:0,animationName:treeNodeFX,animationDuration:s.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:s.borderRadius}}},[u]:{display:"flex",alignItems:"flex-start",marginBottom:d,lineHeight:unit$1(p),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:d},[`&-disabled ${c}-node-content-wrapper`]:{color:s.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${c}-checkbox-disabled + ${c}-node-selected,&${u}-disabled${u}-selected ${c}-node-content-wrapper`]:{backgroundColor:x},[`${c}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${u}-disabled)`]:{[`${c}-node-content-wrapper`]:{"&:hover":{color:s.nodeHoverColor}}},[`&-active ${c}-node-content-wrapper`]:{background:s.controlItemBgHover},[`&:not(${u}-disabled).filter-node ${c}-title`]:{color:s.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${c}-draggable-icon`]:{flexShrink:0,width:p,textAlign:"center",visibility:"visible",color:g},[`&${u}-disabled ${c}-draggable-icon`]:{visibility:"hidden"}}},[`${c}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:v}},[`${c}-draggable-icon`]:{visibility:"hidden"},[`${c}-switcher, ${c}-checkbox`]:{marginInlineEnd:s.calc(s.calc(p).sub(s.controlInteractiveSize)).div(2).equal()},[`${c}-switcher`]:Object.assign(Object.assign({},getSwitchStyle(a,s)),{position:"relative",flex:"none",alignSelf:"stretch",width:p,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${s.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:p,height:p,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:s.borderRadius,transition:`all ${s.motionDurationSlow}`},[`&:not(${c}-switcher-noop):hover:before`]:{backgroundColor:s.colorBgTextHover},[`&_close ${c}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:s.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:s.calc(p).div(2).equal(),bottom:s.calc(d).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${s.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:s.calc(s.calc(p).div(2).equal()).mul(.8).equal(),height:s.calc(p).div(2).equal(),borderBottom:`1px solid ${s.colorBorder}`,content:'""'}}}),[`${c}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:p,paddingBlock:0,paddingInline:s.paddingXS,background:"transparent",borderRadius:s.borderRadius,cursor:"pointer",transition:`all ${s.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},getDropIndicatorStyle(a,s)),{"&:hover":{backgroundColor:b},[`&${c}-node-selected`]:{color:s.nodeSelectedColor,backgroundColor:A},[`${c}-iconEle`]:{display:"inline-block",width:p,height:p,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${c}-unselectable ${c}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${u}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${s.colorPrimary}`},"&-show-line":{[`${c}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:s.calc(p).div(2).equal(),bottom:s.calc(d).mul(-1).equal(),borderInlineEnd:`1px solid ${s.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${c}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${u}-leaf-last ${c}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${unit$1(s.calc(p).div(2).equal())} !important`}})}},genTreeStyle=(a,s)=>{const c=`.${a}`,u=`${c}-treenode`,d=s.calc(s.paddingXS).div(2).equal(),p=merge(s,{treeCls:c,treeNodeCls:u,treeNodePadding:d});return[genBaseStyle$2(a,p),genDirectoryStyle(p)]},initComponentToken=a=>{const{controlHeightSM:s,controlItemBgHover:c,controlItemBgActive:u}=a,d=s;return{titleHeight:d,indentSize:d,nodeHoverBg:c,nodeHoverColor:a.colorText,nodeSelectedBg:u,nodeSelectedColor:a.colorText}},prepareComponentToken$3=a=>{const{colorTextLightSolid:s,colorPrimary:c}=a;return Object.assign(Object.assign({},initComponentToken(a)),{directoryNodeSelectedColor:s,directoryNodeSelectedBg:c})},useStyle$3=genStyleHooks("Tree",(a,s)=>{let{prefixCls:c}=s;return[{[a.componentCls]:getStyle$1(`${c}-checkbox`,a)},genTreeStyle(c,a),genCollapseMotion(a)]},prepareComponentToken$3),offset=4;function dropIndicatorRender(a){const{dropPosition:s,dropLevelOffset:c,prefixCls:u,indent:d,direction:p="ltr"}=a,v=p==="ltr"?"left":"right",A=p==="ltr"?"right":"left",b={[v]:-c*d+offset,[A]:0};switch(s){case-1:b.top=-3;break;case 1:b.bottom=-3;break;default:b.bottom=-3,b[v]=d+offset;break}return React.createElement("div",{style:b,className:`${u}-drop-indicator`})}const SwitcherIconCom=a=>{const{prefixCls:s,switcherIcon:c,treeNodeProps:u,showLine:d,switcherLoadingIcon:p}=a,{isLeaf:v,expanded:A,loading:b}=u;if(b)return reactExports.isValidElement(p)?p:reactExports.createElement(RefIcon$F,{className:`${s}-switcher-loading-icon`});let g;if(d&&typeof d=="object"&&(g=d.showLeafIcon),v){if(!d)return null;if(typeof g!="boolean"&&g){const f=typeof g=="function"?g(u):g,m=`${s}-switcher-line-custom-icon`;return reactExports.isValidElement(f)?cloneElement(f,{className:classnames(f.props.className||"",m)}):f}return g?reactExports.createElement(RefIcon$b,{className:`${s}-switcher-line-icon`}):reactExports.createElement("span",{className:`${s}-switcher-leaf-line`})}const x=`${s}-switcher-icon`,y=typeof c=="function"?c(u):c;return reactExports.isValidElement(y)?cloneElement(y,{className:classnames(y.props.className||"",x)}):y!==void 0?y:d?A?reactExports.createElement(RefIcon$5,{className:`${s}-switcher-line-icon`}):reactExports.createElement(RefIcon$2,{className:`${s}-switcher-line-icon`}):reactExports.createElement(RefIcon$j,{className:x})},Tree$1=React.forwardRef((a,s)=>{var c;const{getPrefixCls:u,direction:d,virtual:p,tree:v}=React.useContext(ConfigContext$1),{prefixCls:A,className:b,showIcon:g=!1,showLine:x,switcherIcon:y,switcherLoadingIcon:f,blockNode:m=!1,children:C,checkable:S=!1,selectable:w=!0,draggable:I,motion:P,style:$}=a,_=u("tree",A),E=u(),R=P??Object.assign(Object.assign({},initCollapseMotion(E)),{motionAppear:!1}),T=Object.assign(Object.assign({},a),{checkable:S,selectable:w,showIcon:g,motion:R,blockNode:m,showLine:!!x,dropIndicatorRender}),[B,M,D]=useStyle$3(_),[,O]=useToken$1(),H=O.paddingXS/2+(((c=O.Tree)===null||c===void 0?void 0:c.titleHeight)||O.controlHeightSM),j=React.useMemo(()=>{if(!I)return!1;let L={};switch(typeof I){case"function":L.nodeDraggable=I;break;case"object":L=Object.assign({},I);break}return L.icon!==!1&&(L.icon=L.icon||React.createElement(RefIcon$6,null)),L},[I]),Q=L=>React.createElement(SwitcherIconCom,{prefixCls:_,switcherIcon:y,switcherLoadingIcon:f,treeNodeProps:L,showLine:x});return B(React.createElement(Tree$2,Object.assign({itemHeight:H,ref:s,virtual:p},T,{style:Object.assign(Object.assign({},v==null?void 0:v.style),$),prefixCls:_,className:classnames({[`${_}-icon-hide`]:!g,[`${_}-block-node`]:m,[`${_}-unselectable`]:!w,[`${_}-rtl`]:d==="rtl"},v==null?void 0:v.className,b,M,D),direction:d,checkable:S&&React.createElement("span",{className:`${_}-checkbox-inner`}),selectable:w,switcherIcon:Q,draggable:j}),C))}),RECORD_NONE=0,RECORD_START=1,RECORD_END=2;function traverseNodesKey(a,s,c){const{key:u,children:d}=c;function p(v){const A=v[u],b=v[d];s(A,v)!==!1&&traverseNodesKey(b||[],s,c)}a.forEach(p)}function calcRangeKeys(a){let{treeData:s,expandedKeys:c,startKey:u,endKey:d,fieldNames:p}=a;const v=[];let A=RECORD_NONE;if(u&&u===d)return[u];if(!u||!d)return[];function b(g){return g===u||g===d}return traverseNodesKey(s,g=>{if(A===RECORD_END)return!1;if(b(g)){if(v.push(g),A===RECORD_NONE)A=RECORD_START;else if(A===RECORD_START)return A=RECORD_END,!1}else A===RECORD_START&&v.push(g);return c.includes(g)},fillFieldNames$1(p)),v}function convertDirectoryKeysToNodes(a,s,c){const u=_toConsumableArray$e(s),d=[];return traverseNodesKey(a,(p,v)=>{const A=u.indexOf(p);return A!==-1&&(d.push(v),u.splice(A,1)),!!u.length},fillFieldNames$1(c)),d}var __rest$b=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};function getIcon(a){const{isLeaf:s,expanded:c}=a;return s?reactExports.createElement(RefIcon$b,null):c?reactExports.createElement(RefIcon$8,null):reactExports.createElement(RefIcon$7,null)}function getTreeData(a){let{treeData:s,children:c}=a;return s||convertTreeToData(c)}const DirectoryTree=(a,s)=>{var{defaultExpandAll:c,defaultExpandParent:u,defaultExpandedKeys:d}=a,p=__rest$b(a,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const v=reactExports.useRef(null),A=reactExports.useRef(null),b=()=>{const{keyEntities:B}=convertDataToEntities(getTreeData(p));let M;return c?M=Object.keys(B):u?M=conductExpandParent(p.expandedKeys||d||[],B):M=p.expandedKeys||d||[],M},[g,x]=reactExports.useState(p.selectedKeys||p.defaultSelectedKeys||[]),[y,f]=reactExports.useState(()=>b());reactExports.useEffect(()=>{"selectedKeys"in p&&x(p.selectedKeys)},[p.selectedKeys]),reactExports.useEffect(()=>{"expandedKeys"in p&&f(p.expandedKeys)},[p.expandedKeys]);const m=(B,M)=>{var D;return"expandedKeys"in p||f(B),(D=p.onExpand)===null||D===void 0?void 0:D.call(p,B,M)},C=(B,M)=>{var D;const{multiple:O,fieldNames:H}=p,{node:j,nativeEvent:Q}=M,{key:L=""}=j,F=getTreeData(p),U=Object.assign(Object.assign({},M),{selected:!0}),N=(Q==null?void 0:Q.ctrlKey)||(Q==null?void 0:Q.metaKey),k=Q==null?void 0:Q.shiftKey;let W;O&&N?(W=B,v.current=L,A.current=W,U.selectedNodes=convertDirectoryKeysToNodes(F,W,H)):O&&k?(W=Array.from(new Set([].concat(_toConsumableArray$e(A.current||[]),_toConsumableArray$e(calcRangeKeys({treeData:F,expandedKeys:y,startKey:L,endKey:v.current,fieldNames:H}))))),U.selectedNodes=convertDirectoryKeysToNodes(F,W,H)):(W=[L],v.current=L,A.current=W,U.selectedNodes=convertDirectoryKeysToNodes(F,W,H)),(D=p.onSelect)===null||D===void 0||D.call(p,W,U),"selectedKeys"in p||x(W)},{getPrefixCls:S,direction:w}=reactExports.useContext(ConfigContext$1),{prefixCls:I,className:P,showIcon:$=!0,expandAction:_="click"}=p,E=__rest$b(p,["prefixCls","className","showIcon","expandAction"]),R=S("tree",I),T=classnames(`${R}-directory`,{[`${R}-directory-rtl`]:w==="rtl"},P);return reactExports.createElement(Tree$1,Object.assign({icon:getIcon,ref:s,blockNode:!0},E,{showIcon:$,expandAction:_,prefixCls:R,className:T,expandedKeys:y,selectedKeys:g,onSelect:C,onExpand:m}))},ForwardDirectoryTree=reactExports.forwardRef(DirectoryTree),Tree=Tree$1;Tree.DirectoryTree=ForwardDirectoryTree,Tree.TreeNode=TreeNode$1;const FilterSearch=a=>{const{value:s,filterSearch:c,tablePrefixCls:u,locale:d,onChange:p}=a;return c?reactExports.createElement("div",{className:`${u}-filter-dropdown-search`},reactExports.createElement(Input$2,{prefix:reactExports.createElement(RefIcon$B,null),placeholder:d.filterSearchPlaceholder,onChange:p,value:s,htmlSize:1,className:`${u}-filter-dropdown-search-input`})):null},onKeyDown=a=>{const{keyCode:s}=a;s===KeyCode.ENTER&&a.stopPropagation()},FilterDropdownMenuWrapper=reactExports.forwardRef((a,s)=>reactExports.createElement("div",{className:a.className,onClick:c=>c.stopPropagation(),onKeyDown,ref:s},a.children));function flattenKeys(a){let s=[];return(a||[]).forEach(c=>{let{value:u,children:d}=c;s.push(u),d&&(s=[].concat(_toConsumableArray$e(s),_toConsumableArray$e(flattenKeys(d))))}),s}function hasSubMenu(a){return a.some(s=>{let{children:c}=s;return c})}function searchValueMatched(a,s){return typeof s=="string"||typeof s=="number"?s==null?void 0:s.toString().toLowerCase().includes(a.trim().toLowerCase()):!1}function renderFilterItems(a){let{filters:s,prefixCls:c,filteredKeys:u,filterMultiple:d,searchValue:p,filterSearch:v}=a;return s.map((A,b)=>{const g=String(A.value);if(A.children)return{key:g||b,label:A.text,popupClassName:`${c}-dropdown-submenu`,children:renderFilterItems({filters:A.children,prefixCls:c,filteredKeys:u,filterMultiple:d,searchValue:p,filterSearch:v})};const x=d?Checkbox$1:Radio$1,y={key:A.value!==void 0?g:b,label:reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(x,{checked:u.includes(g)}),reactExports.createElement("span",null,A.text))};return p.trim()?typeof v=="function"?v(p,A)?y:null:searchValueMatched(p,A.text)?y:null:y})}function wrapStringListType(a){return a||[]}const FilterDropdown=a=>{var s,c,u,d;const{tablePrefixCls:p,prefixCls:v,column:A,dropdownPrefixCls:b,columnKey:g,filterOnClose:x,filterMultiple:y,filterMode:f="menu",filterSearch:m=!1,filterState:C,triggerFilter:S,locale:w,children:I,getPopupContainer:P,rootClassName:$}=a,{filterResetToDefaultFilteredValue:_,defaultFilteredValue:E,filterDropdownProps:R={},filterDropdownOpen:T,filterDropdownVisible:B,onFilterDropdownVisibleChange:M,onFilterDropdownOpenChange:D}=A,[O,H]=reactExports.useState(!1),j=!!(C&&(!((s=C.filteredKeys)===null||s===void 0)&&s.length||C.forceFiltered)),Q=le=>{var xe;H(le),(xe=R.onOpenChange)===null||xe===void 0||xe.call(R,le),D==null||D(le),M==null||M(le)},L=(d=(u=(c=R.open)!==null&&c!==void 0?c:T)!==null&&u!==void 0?u:B)!==null&&d!==void 0?d:O,F=C==null?void 0:C.filteredKeys,[U,N]=useSyncState(wrapStringListType(F)),k=le=>{let{selectedKeys:xe}=le;N(xe)},W=(le,xe)=>{let{node:Ce,checked:$e}=xe;k(y?{selectedKeys:le}:{selectedKeys:$e&&Ce.key?[Ce.key]:[]})};reactExports.useEffect(()=>{O&&k({selectedKeys:wrapStringListType(F)})},[F]);const[J,q]=reactExports.useState([]),Y=le=>{q(le)},[Z,ee]=reactExports.useState(""),re=le=>{const{value:xe}=le.target;ee(xe)};reactExports.useEffect(()=>{O||ee("")},[O]);const ae=le=>{const xe=le!=null&&le.length?le:null;if(xe===null&&(!C||!C.filteredKeys)||isEqual(xe,C==null?void 0:C.filteredKeys,!0))return null;S({column:A,key:g,filteredKeys:xe})},V=()=>{Q(!1),ae(U())},K=function(){let{confirm:le,closeDropdown:xe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};le&&ae([]),xe&&Q(!1),ee(""),N(_?(E||[]).map(Ce=>String(Ce)):[])},te=function(){let{closeDropdown:le}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};le&&Q(!1),ae(U())},ie=(le,xe)=>{xe.source==="trigger"&&(le&&F!==void 0&&N(wrapStringListType(F)),Q(le),!le&&!A.filterDropdown&&x&&V())},ce=classnames({[`${b}-menu-without-submenu`]:!hasSubMenu(A.filters||[])}),ge=le=>{if(le.target.checked){const xe=flattenKeys(A==null?void 0:A.filters).map(Ce=>String(Ce));N(xe)}else N([])},Se=le=>{let{filters:xe}=le;return(xe||[]).map((Ce,$e)=>{const we=String(Ce.value),Ee={title:Ce.text,key:Ce.value!==void 0?we:String($e)};return Ce.children&&(Ee.children=Se({filters:Ce.children})),Ee})},be=le=>{var xe;return Object.assign(Object.assign({},le),{text:le.title,value:le.key,children:((xe=le.children)===null||xe===void 0?void 0:xe.map(Ce=>be(Ce)))||[]})};let me;const{direction:fe,renderEmpty:se}=reactExports.useContext(ConfigContext$1);if(typeof A.filterDropdown=="function")me=A.filterDropdown({prefixCls:`${b}-custom`,setSelectedKeys:le=>k({selectedKeys:le}),selectedKeys:U(),confirm:te,clearFilters:K,filters:A.filters,visible:L,close:()=>{Q(!1)}});else if(A.filterDropdown)me=A.filterDropdown;else{const le=U()||[],xe=()=>{var $e,we;const Ee=($e=se==null?void 0:se("Table.filter"))!==null&&$e!==void 0?$e:reactExports.createElement(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE,description:w.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((A.filters||[]).length===0)return Ee;if(f==="tree")return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(FilterSearch,{filterSearch:m,value:Z,onChange:re,tablePrefixCls:p,locale:w}),reactExports.createElement("div",{className:`${p}-filter-dropdown-tree`},y?reactExports.createElement(Checkbox$1,{checked:le.length===flattenKeys(A.filters).length,indeterminate:le.length>0&&le.length<flattenKeys(A.filters).length,className:`${p}-filter-dropdown-checkall`,onChange:ge},(we=w==null?void 0:w.filterCheckall)!==null&&we!==void 0?we:w==null?void 0:w.filterCheckAll):null,reactExports.createElement(Tree,{checkable:!0,selectable:!1,blockNode:!0,multiple:y,checkStrictly:!y,className:`${b}-menu`,onCheck:W,checkedKeys:le,selectedKeys:le,showIcon:!1,treeData:Se({filters:A.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Z.trim()?he=>typeof m=="function"?m(Z,be(he)):searchValueMatched(Z,he.title):void 0})));const Ae=renderFilterItems({filters:A.filters||[],filterSearch:m,prefixCls:v,filteredKeys:U(),filterMultiple:y,searchValue:Z}),pe=Ae.every(he=>he===null);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(FilterSearch,{filterSearch:m,value:Z,onChange:re,tablePrefixCls:p,locale:w}),pe?Ee:reactExports.createElement(Menu$1,{selectable:!0,multiple:y,prefixCls:`${b}-menu`,className:ce,onSelect:k,onDeselect:k,selectedKeys:le,getPopupContainer:P,openKeys:J,onOpenChange:Y,items:Ae}))},Ce=()=>_?isEqual((E||[]).map($e=>String($e)),le,!0):le.length===0;me=reactExports.createElement(reactExports.Fragment,null,xe(),reactExports.createElement("div",{className:`${v}-dropdown-btns`},reactExports.createElement(Button$1,{type:"link",size:"small",disabled:Ce(),onClick:()=>K()},w.filterReset),reactExports.createElement(Button$1,{type:"primary",size:"small",onClick:V},w.filterConfirm)))}A.filterDropdown&&(me=reactExports.createElement(OverrideProvider,{selectable:void 0},me)),me=reactExports.createElement(FilterDropdownMenuWrapper,{className:`${v}-dropdown`},me);const de=extendsObject({trigger:["click"],placement:fe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let le;return typeof A.filterIcon=="function"?le=A.filterIcon(j):A.filterIcon?le=A.filterIcon:le=reactExports.createElement(RefIcon$9,null),reactExports.createElement("span",{role:"button",tabIndex:-1,className:classnames(`${v}-trigger`,{active:j}),onClick:xe=>{xe.stopPropagation()}},le)})(),getPopupContainer:P},Object.assign(Object.assign({},R),{rootClassName:classnames($,R.rootClassName),open:L,onOpenChange:ie,dropdownRender:()=>typeof(R==null?void 0:R.dropdownRender)=="function"?R.dropdownRender(me):me}));return reactExports.createElement("div",{className:`${v}-column`},reactExports.createElement("span",{className:`${p}-column-title`},I),reactExports.createElement(Dropdown,Object.assign({},de)))},collectFilterStates=(a,s,c)=>{let u=[];return(a||[]).forEach((d,p)=>{var v;const A=getColumnPos(p,c);if(d.filters||"filterDropdown"in d||"onFilter"in d)if("filteredValue"in d){let b=d.filteredValue;"filterDropdown"in d||(b=(v=b==null?void 0:b.map(String))!==null&&v!==void 0?v:b),u.push({column:d,key:getColumnKey(d,A),filteredKeys:b,forceFiltered:d.filtered})}else u.push({column:d,key:getColumnKey(d,A),filteredKeys:s&&d.defaultFilteredValue?d.defaultFilteredValue:void 0,forceFiltered:d.filtered});"children"in d&&(u=[].concat(_toConsumableArray$e(u),_toConsumableArray$e(collectFilterStates(d.children,s,A))))}),u};function injectFilter(a,s,c,u,d,p,v,A,b){return c.map((g,x)=>{const y=getColumnPos(x,A),{filterOnClose:f=!0,filterMultiple:m=!0,filterMode:C,filterSearch:S}=g;let w=g;if(w.filters||w.filterDropdown){const I=getColumnKey(w,y),P=u.find($=>{let{key:_}=$;return I===_});w=Object.assign(Object.assign({},w),{title:$=>reactExports.createElement(FilterDropdown,{tablePrefixCls:a,prefixCls:`${a}-filter`,dropdownPrefixCls:s,column:w,columnKey:I,filterState:P,filterOnClose:f,filterMultiple:m,filterMode:C,filterSearch:S,triggerFilter:p,locale:d,getPopupContainer:v,rootClassName:b},renderColumnTitle(g.title,$))})}return"children"in w&&(w=Object.assign(Object.assign({},w),{children:injectFilter(a,s,w.children,u,d,p,v,y,b)})),w})}const generateFilterInfo=a=>{const s={};return a.forEach(c=>{let{key:u,filteredKeys:d,column:p}=c;const v=u,{filters:A,filterDropdown:b}=p;if(b)s[v]=d||null;else if(Array.isArray(d)){const g=flattenKeys(A);s[v]=g.filter(x=>d.includes(String(x)))}else s[v]=null}),s},getFilterData=(a,s,c)=>s.reduce((d,p)=>{const{column:{onFilter:v,filters:A},filteredKeys:b}=p;return v&&b&&b.length?d.map(g=>Object.assign({},g)).filter(g=>b.some(x=>{const y=flattenKeys(A),f=y.findIndex(C=>String(C)===String(x)),m=f!==-1?y[f]:x;return g[c]&&(g[c]=getFilterData(g[c],s,c)),v(m,g)})):d},a),getMergedColumns=a=>a.flatMap(s=>"children"in s?[s].concat(_toConsumableArray$e(getMergedColumns(s.children||[]))):[s]),useFilter=a=>{const{prefixCls:s,dropdownPrefixCls:c,mergedColumns:u,onFilterChange:d,getPopupContainer:p,locale:v,rootClassName:A}=a;devUseWarning();const b=reactExports.useMemo(()=>getMergedColumns(u||[]),[u]),[g,x]=reactExports.useState(()=>collectFilterStates(b,!0)),y=reactExports.useMemo(()=>{const S=collectFilterStates(b,!1);if(S.length===0)return S;let w=!0;if(S.forEach(I=>{let{filteredKeys:P}=I;P!==void 0&&(w=!1)}),w){const I=(b||[]).map((P,$)=>getColumnKey(P,getColumnPos($)));return g.filter(P=>{let{key:$}=P;return I.includes($)}).map(P=>{const $=b[I.findIndex(_=>_===P.key)];return Object.assign(Object.assign({},P),{column:Object.assign(Object.assign({},P.column),$),forceFiltered:$.filtered})})}return S},[b,g]),f=reactExports.useMemo(()=>generateFilterInfo(y),[y]),m=S=>{const w=y.filter(I=>{let{key:P}=I;return P!==S.key});w.push(S),x(w),d(generateFilterInfo(w),w)};return[S=>injectFilter(s,c,S,y,v,m,p,void 0,A),y,f]},useLazyKVMap=(a,s,c)=>{const u=reactExports.useRef({});function d(p){var v;if(!u.current||u.current.data!==a||u.current.childrenColumnName!==s||u.current.getRowKey!==c){let b=function(g){g.forEach((x,y)=>{const f=c(x,y);A.set(f,x),x&&typeof x=="object"&&s in x&&b(x[s]||[])})};const A=new Map;b(a),u.current={data:a,childrenColumnName:s,kvMap:A,getRowKey:c}}return(v=u.current.kvMap)===null||v===void 0?void 0:v.get(p)}return[d]};var __rest$a=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const DEFAULT_PAGE_SIZE=10;function getPaginationParam(a,s){const c={current:a.current,pageSize:a.pageSize};return Object.keys(s&&typeof s=="object"?s:{}).forEach(d=>{const p=a[d];typeof p!="function"&&(c[d]=p)}),c}function usePagination(a,s,c){const u=c&&typeof c=="object"?c:{},{total:d=0}=u,p=__rest$a(u,["total"]),[v,A]=reactExports.useState(()=>({current:"defaultCurrent"in p?p.defaultCurrent:1,pageSize:"defaultPageSize"in p?p.defaultPageSize:DEFAULT_PAGE_SIZE})),b=extendsObject(v,p,{total:d>0?d:a}),g=Math.ceil((d||a)/b.pageSize);b.current>g&&(b.current=g||1);const x=(f,m)=>{A({current:f??1,pageSize:m||b.pageSize})},y=(f,m)=>{var C;c&&((C=c.onChange)===null||C===void 0||C.call(c,f,m)),x(f,m),s(f,m||(b==null?void 0:b.pageSize))};return c===!1?[{},()=>{}]:[Object.assign(Object.assign({},b),{onChange:y}),x]}const ASCEND="ascend",DESCEND="descend",getMultiplePriority=a=>typeof a.sorter=="object"&&typeof a.sorter.multiple=="number"?a.sorter.multiple:!1,getSortFunction=a=>typeof a=="function"?a:a&&typeof a=="object"&&a.compare?a.compare:!1,nextSortDirection=(a,s)=>s?a[a.indexOf(s)+1]:a[0],collectSortStates=(a,s,c)=>{let u=[];const d=(p,v)=>{u.push({column:p,key:getColumnKey(p,v),multiplePriority:getMultiplePriority(p),sortOrder:p.sortOrder})};return(a||[]).forEach((p,v)=>{const A=getColumnPos(v,c);p.children?("sortOrder"in p&&d(p,A),u=[].concat(_toConsumableArray$e(u),_toConsumableArray$e(collectSortStates(p.children,s,A)))):p.sorter&&("sortOrder"in p?d(p,A):s&&p.defaultSortOrder&&u.push({column:p,key:getColumnKey(p,A),multiplePriority:getMultiplePriority(p),sortOrder:p.defaultSortOrder}))}),u},injectSorter=(a,s,c,u,d,p,v,A)=>(s||[]).map((g,x)=>{const y=getColumnPos(x,A);let f=g;if(f.sorter){const m=f.sortDirections||d,C=f.showSorterTooltip===void 0?v:f.showSorterTooltip,S=getColumnKey(f,y),w=c.find(M=>{let{key:D}=M;return D===S}),I=w?w.sortOrder:null,P=nextSortDirection(m,I);let $;if(g.sortIcon)$=g.sortIcon({sortOrder:I});else{const M=m.includes(ASCEND)&&reactExports.createElement(RefIcon$h,{className:classnames(`${a}-column-sorter-up`,{active:I===ASCEND})}),D=m.includes(DESCEND)&&reactExports.createElement(RefIcon$i,{className:classnames(`${a}-column-sorter-down`,{active:I===DESCEND})});$=reactExports.createElement("span",{className:classnames(`${a}-column-sorter`,{[`${a}-column-sorter-full`]:!!(M&&D)})},reactExports.createElement("span",{className:`${a}-column-sorter-inner`,"aria-hidden":"true"},M,D))}const{cancelSort:_,triggerAsc:E,triggerDesc:R}=p||{};let T=_;P===DESCEND?T=R:P===ASCEND&&(T=E);const B=typeof C=="object"?Object.assign({title:T},C):{title:T};f=Object.assign(Object.assign({},f),{className:classnames(f.className,{[`${a}-column-sort`]:I}),title:M=>{const D=`${a}-column-sorters`,O=reactExports.createElement("span",{className:`${a}-column-title`},renderColumnTitle(g.title,M)),H=reactExports.createElement("div",{className:D},O,$);return C?typeof C!="boolean"&&(C==null?void 0:C.target)==="sorter-icon"?reactExports.createElement("div",{className:`${D} ${a}-column-sorters-tooltip-target-sorter`},O,reactExports.createElement(Tooltip,Object.assign({},B),$)):reactExports.createElement(Tooltip,Object.assign({},B),H):H},onHeaderCell:M=>{var D;const O=((D=g.onHeaderCell)===null||D===void 0?void 0:D.call(g,M))||{},H=O.onClick,j=O.onKeyDown;O.onClick=F=>{u({column:g,key:S,sortOrder:P,multiplePriority:getMultiplePriority(g)}),H==null||H(F)},O.onKeyDown=F=>{F.keyCode===KeyCode.ENTER&&(u({column:g,key:S,sortOrder:P,multiplePriority:getMultiplePriority(g)}),j==null||j(F))};const Q=safeColumnTitle(g.title,{}),L=Q==null?void 0:Q.toString();return I&&(O["aria-sort"]=I==="ascend"?"ascending":"descending"),O["aria-label"]=L||"",O.className=classnames(O.className,`${a}-column-has-sorters`),O.tabIndex=0,g.ellipsis&&(O.title=(Q??"").toString()),O}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:injectSorter(a,f.children,c,u,d,p,v,y)})),f}),stateToInfo=a=>{const{column:s,sortOrder:c}=a;return{column:s,order:c,field:s.dataIndex,columnKey:s.key}},generateSorterInfo=a=>{const s=a.filter(c=>{let{sortOrder:u}=c;return u}).map(stateToInfo);if(s.length===0&&a.length){const c=a.length-1;return Object.assign(Object.assign({},stateToInfo(a[c])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return s.length<=1?s[0]||{}:s},getSortData=(a,s,c)=>{const u=s.slice().sort((v,A)=>A.multiplePriority-v.multiplePriority),d=a.slice(),p=u.filter(v=>{let{column:{sorter:A},sortOrder:b}=v;return getSortFunction(A)&&b});return p.length?d.sort((v,A)=>{for(let b=0;b<p.length;b+=1){const g=p[b],{column:{sorter:x},sortOrder:y}=g,f=getSortFunction(x);if(f&&y){const m=f(v,A,y);if(m!==0)return y===ASCEND?m:-m}}return 0}).map(v=>{const A=v[c];return A?Object.assign(Object.assign({},v),{[c]:getSortData(A,s,c)}):v}):d},useFilterSorter=a=>{const{prefixCls:s,mergedColumns:c,sortDirections:u,tableLocale:d,showSorterTooltip:p,onSorterChange:v}=a,[A,b]=reactExports.useState(collectSortStates(c,!0)),g=(S,w)=>{const I=[];return S.forEach((P,$)=>{const _=getColumnPos($,w);if(I.push(getColumnKey(P,_)),Array.isArray(P.children)){const E=g(P.children,_);I.push.apply(I,_toConsumableArray$e(E))}}),I},x=reactExports.useMemo(()=>{let S=!0;const w=collectSortStates(c,!1);if(!w.length){const _=g(c);return A.filter(E=>{let{key:R}=E;return _.includes(R)})}const I=[];function P(_){S?I.push(_):I.push(Object.assign(Object.assign({},_),{sortOrder:null}))}let $=null;return w.forEach(_=>{$===null?(P(_),_.sortOrder&&(_.multiplePriority===!1?S=!1:$=!0)):($&&_.multiplePriority!==!1||(S=!1),P(_))}),I},[c,A]),y=reactExports.useMemo(()=>{var S,w;const I=x.map(P=>{let{column:$,sortOrder:_}=P;return{column:$,order:_}});return{sortColumns:I,sortColumn:(S=I[0])===null||S===void 0?void 0:S.column,sortOrder:(w=I[0])===null||w===void 0?void 0:w.order}},[x]),f=S=>{let w;S.multiplePriority===!1||!x.length||x[0].multiplePriority===!1?w=[S]:w=[].concat(_toConsumableArray$e(x.filter(I=>{let{key:P}=I;return P!==S.key})),[S]),b(w),v(generateSorterInfo(w),w)};return[S=>injectSorter(s,S,x,f,u,d,p),x,y,()=>generateSorterInfo(x)]},fillTitle=(a,s)=>a.map(u=>{const d=Object.assign({},u);return d.title=renderColumnTitle(u.title,s),"children"in d&&(d.children=fillTitle(d.children,s)),d}),useTitleColumns=a=>[reactExports.useCallback(c=>fillTitle(c,a),[a])],RcTable=genTable((a,s)=>{const{_renderTimes:c}=a,{_renderTimes:u}=s;return c!==u}),RcVirtualTable=genVirtualTable((a,s)=>{const{_renderTimes:c}=a,{_renderTimes:u}=s;return c!==u}),genBorderedStyle=a=>{const{componentCls:s,lineWidth:c,lineType:u,tableBorderColor:d,tableHeaderBg:p,tablePaddingVertical:v,tablePaddingHorizontal:A,calc:b}=a,g=`${unit$1(c)} ${u} ${d}`,x=(y,f,m)=>({[`&${s}-${y}`]:{[`> ${s}-container`]:{[`> ${s}-content, > ${s}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${s}-expanded-row-fixed`]:{margin:`${unit$1(b(f).mul(-1).equal())}
|
541
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p,v=!0,A=!1;return{s:function(){c=c.call(a)},n:function(){var g=c.next();return v=g.done,g},e:function(g){A=!0,p=g},f:function(){try{v||c.return==null||c.return()}finally{if(A)throw p}}}}var CaretDownFilled$1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},CaretDownFilled=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:CaretDownFilled$1}))},RefIcon$j=reactExports.forwardRef(CaretDownFilled),CaretDownOutlined$1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},CaretDownOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:CaretDownOutlined$1}))},RefIcon$i=reactExports.forwardRef(CaretDownOutlined),CaretUpOutlined$1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},CaretUpOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:CaretUpOutlined$1}))},RefIcon$h=reactExports.forwardRef(CaretUpOutlined),CopyOutlined$3={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},CopyOutlined$2=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:CopyOutlined$3}))},RefIcon$g=reactExports.forwardRef(CopyOutlined$2),DeleteOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},DeleteOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:DeleteOutlined$1}))},RefIcon$f=reactExports.forwardRef(DeleteOutlined),DownloadOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},DownloadOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:DownloadOutlined$1}))},RefIcon$e=reactExports.forwardRef(DownloadOutlined),EditOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},EditOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:EditOutlined$1}))},RefIcon$d=reactExports.forwardRef(EditOutlined),EnterOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},EnterOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:EnterOutlined$1}))},RefIcon$c=reactExports.forwardRef(EnterOutlined),FileOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},FileOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:FileOutlined$1}))},RefIcon$b=reactExports.forwardRef(FileOutlined),FileTwoTone$1={icon:function a(s,c){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:c}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:s}}]}},name:"file",theme:"twotone"},FileTwoTone=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:FileTwoTone$1}))},RefIcon$a=reactExports.forwardRef(FileTwoTone),FilterFilled$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},FilterFilled=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:FilterFilled$1}))},RefIcon$9=reactExports.forwardRef(FilterFilled),FolderOpenOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},FolderOpenOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:FolderOpenOutlined$1}))},RefIcon$8=reactExports.forwardRef(FolderOpenOutlined),FolderOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},FolderOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:FolderOutlined$1}))},RefIcon$7=reactExports.forwardRef(FolderOutlined),HolderOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},HolderOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:HolderOutlined$1}))},RefIcon$6=reactExports.forwardRef(HolderOutlined),MinusSquareOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},MinusSquareOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:MinusSquareOutlined$1}))},RefIcon$5=reactExports.forwardRef(MinusSquareOutlined),PaperClipOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},PaperClipOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:PaperClipOutlined$1}))},RefIcon$4=reactExports.forwardRef(PaperClipOutlined),PictureTwoTone$1={icon:function a(s,c){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:s}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:c}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:c}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:c}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:s}}]}},name:"picture",theme:"twotone"},PictureTwoTone=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:PictureTwoTone$1}))},RefIcon$3=reactExports.forwardRef(PictureTwoTone),PlusSquareOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},PlusSquareOutlined=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:PlusSquareOutlined$1}))},RefIcon$2=reactExports.forwardRef(PlusSquareOutlined),StarFilled$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},StarFilled=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:StarFilled$1}))},RefIcon$1=reactExports.forwardRef(StarFilled),WarningFilled$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},WarningFilled=function a(s,c){return reactExports.createElement(Icon$4,_extends$3({},s,{ref:c,icon:WarningFilled$1}))},RefIcon=reactExports.forwardRef(WarningFilled);function Star(a,s){var c=a.disabled,u=a.prefixCls,d=a.character,p=a.characterRender,v=a.index,A=a.count,b=a.value,g=a.allowHalf,x=a.focused,y=a.onHover,f=a.onClick,m=function(E){y(E,v)},C=function(E){f(E,v)},S=function(E){E.keyCode===KeyCode.ENTER&&f(E,v)},w=v+1,I=new Set([u]);b===0&&v===0&&x?I.add("".concat(u,"-focused")):g&&b+.5>=w&&b<w?(I.add("".concat(u,"-half")),I.add("".concat(u,"-active")),x&&I.add("".concat(u,"-focused"))):(w<=b?I.add("".concat(u,"-full")):I.add("".concat(u,"-zero")),w===b&&x&&I.add("".concat(u,"-focused")));var P=typeof d=="function"?d(a):d,$=React.createElement("li",{className:classnames(Array.from(I)),ref:s},React.createElement("div",{onClick:c?null:C,onKeyDown:c?null:S,onMouseMove:c?null:m,role:"radio","aria-checked":b>v?"true":"false","aria-posinset":v+1,"aria-setsize":A,tabIndex:c?-1:0},React.createElement("div",{className:"".concat(u,"-first")},P),React.createElement("div",{className:"".concat(u,"-second")},P)));return p&&($=p($,a)),$}const Star$1=React.forwardRef(Star);function useRefs(){var a=reactExports.useRef({});function s(u){return a.current[u]}function c(u){return function(d){a.current[u]=d}}return[s,c]}function getScroll$1(a){var s=a.pageXOffset,c="scrollLeft";if(typeof s!="number"){var u=a.document;s=u.documentElement[c],typeof s!="number"&&(s=u.body[c])}return s}function getClientPosition$1(a){var s,c,u=a.ownerDocument,d=u.body,p=u&&u.documentElement,v=a.getBoundingClientRect();return s=v.left,c=v.top,s-=p.clientLeft||d.clientLeft||0,c-=p.clientTop||d.clientTop||0,{left:s,top:c}}function getOffsetLeft(a){var s=getClientPosition$1(a),c=a.ownerDocument,u=c.defaultView||c.parentWindow;return s.left+=getScroll$1(u),s.left}var _excluded$e=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Rate$1(a,s){var c=a.prefixCls,u=c===void 0?"rc-rate":c,d=a.className,p=a.defaultValue,v=a.value,A=a.count,b=A===void 0?5:A,g=a.allowHalf,x=g===void 0?!1:g,y=a.allowClear,f=y===void 0?!0:y,m=a.keyboard,C=m===void 0?!0:m,S=a.character,w=S===void 0?"★":S,I=a.characterRender,P=a.disabled,$=a.direction,_=$===void 0?"ltr":$,E=a.tabIndex,R=E===void 0?0:E,T=a.autoFocus,B=a.onHoverChange,M=a.onChange,D=a.onFocus,O=a.onBlur,H=a.onKeyDown,j=a.onMouseLeave,Q=_objectWithoutProperties$2(a,_excluded$e),L=useRefs(),F=_slicedToArray$e(L,2),U=F[0],N=F[1],k=React.useRef(null),W=function(){if(!P){var pe;(pe=k.current)===null||pe===void 0||pe.focus()}};React.useImperativeHandle(s,function(){return{focus:W,blur:function(){if(!P){var pe;(pe=k.current)===null||pe===void 0||pe.blur()}}}});var J=useMergedState(p||0,{value:v}),q=_slicedToArray$e(J,2),Y=q[0],Z=q[1],ee=useMergedState(null),re=_slicedToArray$e(ee,2),ae=re[0],V=re[1],K=function(pe,he){var Ie=_==="rtl",ye=pe+1;if(x){var Pe=U(pe),Le=getOffsetLeft(Pe),Ne=Pe.clientWidth;(Ie&&he-Le>Ne/2||!Ie&&he-Le<Ne/2)&&(ye-=.5)}return ye},te=function(pe){Z(pe),M==null||M(pe)},ie=React.useState(!1),ce=_slicedToArray$e(ie,2),ge=ce[0],Se=ce[1],be=function(){Se(!0),D==null||D()},me=function(){Se(!1),O==null||O()},fe=React.useState(null),se=_slicedToArray$e(fe,2),oe=se[0],de=se[1],le=function(pe,he){var Ie=K(he,pe.pageX);Ie!==ae&&(de(Ie),V(null)),B==null||B(Ie)},xe=function(pe){P||(de(null),V(null),B==null||B(void 0)),pe&&(j==null||j(pe))},Ce=function(pe,he){var Ie=K(he,pe.pageX),ye=!1;f&&(ye=Ie===Y),xe(),te(ye?0:Ie),V(ye?Ie:null)},$e=function(pe){var he=pe.keyCode,Ie=_==="rtl",ye=x?.5:1;C&&(he===KeyCode.RIGHT&&Y<b&&!Ie?(te(Y+ye),pe.preventDefault()):he===KeyCode.LEFT&&Y>0&&!Ie||he===KeyCode.RIGHT&&Y>0&&Ie?(te(Y-ye),pe.preventDefault()):he===KeyCode.LEFT&&Y<b&&Ie&&(te(Y+ye),pe.preventDefault())),H==null||H(pe)};React.useEffect(function(){T&&!P&&W()},[]);var we=new Array(b).fill(0).map(function(Ae,pe){return React.createElement(Star$1,{ref:N(pe),index:pe,count:b,disabled:P,prefixCls:"".concat(u,"-star"),allowHalf:x,value:oe===null?Y:oe,onClick:Ce,onHover:le,key:Ae||pe,character:w,characterRender:I,focused:ge})}),Ee=classnames(u,d,_defineProperty$a(_defineProperty$a({},"".concat(u,"-disabled"),P),"".concat(u,"-rtl"),_==="rtl"));return React.createElement("ul",_extends$3({className:Ee,onMouseLeave:xe,tabIndex:P?-1:R,onFocus:P?null:be,onBlur:P?null:me,onKeyDown:P?null:$e,ref:k},pickAttrs(Q,{aria:!0,data:!0,attr:!0})),we)}const Rate$2=React.forwardRef(Rate$1),genRateStarStyle=a=>{const{componentCls:s}=a;return{[`${s}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:a.marginXS},"> div":{transition:`all ${a.motionDurationMid}, outline 0s`,"&:hover":{transform:a.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${unit$1(a.lineWidth)} dashed ${a.starColor}`,transform:a.starHoverScale}},"&-first, &-second":{color:a.starBg,transition:`all ${a.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${s}-star-first, &-half ${s}-star-second`]:{opacity:1},[`&-half ${s}-star-first, &-full ${s}-star-second`]:{color:"inherit"}}}},genRateRtlStyle=a=>({[`&-rtl${a.componentCls}`]:{direction:"rtl"}}),genRateStyle=a=>{const{componentCls:s}=a;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(a)),{display:"inline-block",margin:0,padding:0,color:a.starColor,fontSize:a.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${s} ${s}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),genRateStarStyle(a)),genRateRtlStyle(a))}},prepareComponentToken$6=a=>({starColor:a.yellow6,starSize:a.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:a.colorFillContent}),useStyle$6=genStyleHooks("Rate",a=>{const s=merge(a,{});return[genRateStyle(s)]},prepareComponentToken$6);var __rest$d=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const Rate=reactExports.forwardRef((a,s)=>{const{prefixCls:c,className:u,rootClassName:d,style:p,tooltips:v,character:A=reactExports.createElement(RefIcon$1,null),disabled:b}=a,g=__rest$d(a,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),x=(E,R)=>{let{index:T}=R;return v?reactExports.createElement(Tooltip,{title:v[T]},E):E},{getPrefixCls:y,direction:f,rate:m}=reactExports.useContext(ConfigContext$1),C=y("rate",c),[S,w,I]=useStyle$6(C),P=Object.assign(Object.assign({},m==null?void 0:m.style),p),$=reactExports.useContext(DisabledContext),_=b??$;return S(reactExports.createElement(Rate$2,Object.assign({ref:s,character:A,characterRender:x,disabled:_},g,{className:classnames(u,d,w,I,m==null?void 0:m.className),style:P,prefixCls:C,direction:f})))}),NoFound=()=>reactExports.createElement("svg",{width:"252",height:"294"},reactExports.createElement("title",null,"No Found"),reactExports.createElement("defs",null,reactExports.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{transform:"translate(0 .012)"},reactExports.createElement("mask",{fill:"#fff"}),reactExports.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),reactExports.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),reactExports.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),reactExports.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),reactExports.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),reactExports.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),reactExports.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),reactExports.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),reactExports.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),reactExports.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),reactExports.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),reactExports.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),reactExports.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),reactExports.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),reactExports.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),reactExports.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),reactExports.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),reactExports.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),reactExports.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),reactExports.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),reactExports.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),reactExports.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),reactExports.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),reactExports.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),reactExports.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),reactExports.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),reactExports.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),reactExports.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),reactExports.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),reactExports.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),reactExports.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),reactExports.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),reactExports.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),reactExports.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),reactExports.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),reactExports.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),reactExports.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),reactExports.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),ServerError=()=>reactExports.createElement("svg",{width:"254",height:"294"},reactExports.createElement("title",null,"Server Error"),reactExports.createElement("defs",null,reactExports.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),reactExports.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("g",{transform:"translate(0 .067)"},reactExports.createElement("mask",{fill:"#fff"}),reactExports.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),reactExports.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),reactExports.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),reactExports.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),reactExports.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),reactExports.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),reactExports.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),reactExports.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),reactExports.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),reactExports.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),reactExports.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),reactExports.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),reactExports.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),reactExports.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),reactExports.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),reactExports.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),reactExports.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),reactExports.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),reactExports.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),reactExports.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),reactExports.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),reactExports.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),reactExports.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),reactExports.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),reactExports.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),reactExports.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),reactExports.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),reactExports.createElement("mask",{fill:"#fff"}),reactExports.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),reactExports.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),reactExports.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),reactExports.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),reactExports.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),reactExports.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),reactExports.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),reactExports.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),reactExports.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),reactExports.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),reactExports.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),genBaseStyle$3=a=>{const{componentCls:s,lineHeightHeading3:c,iconCls:u,padding:d,paddingXL:p,paddingXS:v,paddingLG:A,marginXS:b,lineHeight:g}=a;return{[s]:{padding:`${unit$1(a.calc(A).mul(2).equal())} ${unit$1(p)}`,"&-rtl":{direction:"rtl"}},[`${s} ${s}-image`]:{width:a.imageWidth,height:a.imageHeight,margin:"auto"},[`${s} ${s}-icon`]:{marginBottom:A,textAlign:"center",[`& > ${u}`]:{fontSize:a.iconFontSize}},[`${s} ${s}-title`]:{color:a.colorTextHeading,fontSize:a.titleFontSize,lineHeight:c,marginBlock:b,textAlign:"center"},[`${s} ${s}-subtitle`]:{color:a.colorTextDescription,fontSize:a.subtitleFontSize,lineHeight:g,textAlign:"center"},[`${s} ${s}-content`]:{marginTop:A,padding:`${unit$1(A)} ${unit$1(a.calc(d).mul(2.5).equal())}`,backgroundColor:a.colorFillAlter},[`${s} ${s}-extra`]:{margin:a.extraMargin,textAlign:"center","& > *":{marginInlineEnd:v,"&:last-child":{marginInlineEnd:0}}}}},genStatusIconStyle=a=>{const{componentCls:s,iconCls:c}=a;return{[`${s}-success ${s}-icon > ${c}`]:{color:a.resultSuccessIconColor},[`${s}-error ${s}-icon > ${c}`]:{color:a.resultErrorIconColor},[`${s}-info ${s}-icon > ${c}`]:{color:a.resultInfoIconColor},[`${s}-warning ${s}-icon > ${c}`]:{color:a.resultWarningIconColor}}},genResultStyle=a=>[genBaseStyle$3(a),genStatusIconStyle(a)],getStyle=a=>genResultStyle(a),prepareComponentToken$5=a=>({titleFontSize:a.fontSizeHeading3,subtitleFontSize:a.fontSize,iconFontSize:a.fontSizeHeading3*3,extraMargin:`${a.paddingLG}px 0 0 0`}),useStyle$5=genStyleHooks("Result",a=>{const s=a.colorInfo,c=a.colorError,u=a.colorSuccess,d=a.colorWarning,p=merge(a,{resultInfoIconColor:s,resultErrorIconColor:c,resultSuccessIconColor:u,resultWarningIconColor:d,imageWidth:250,imageHeight:295});return[getStyle(p)]},prepareComponentToken$5),Unauthorized=()=>reactExports.createElement("svg",{width:"251",height:"294"},reactExports.createElement("title",null,"Unauthorized"),reactExports.createElement("g",{fill:"none",fillRule:"evenodd"},reactExports.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),reactExports.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),reactExports.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),reactExports.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),reactExports.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),reactExports.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),reactExports.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),reactExports.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),reactExports.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),reactExports.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),reactExports.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),reactExports.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),reactExports.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),reactExports.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),reactExports.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),reactExports.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),reactExports.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),reactExports.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),reactExports.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),reactExports.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),reactExports.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),reactExports.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),reactExports.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),reactExports.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),reactExports.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),reactExports.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),reactExports.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),reactExports.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),reactExports.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),reactExports.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),reactExports.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),reactExports.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),reactExports.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),reactExports.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),reactExports.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),reactExports.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),reactExports.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),IconMap={success:RefIcon$K,error:RefIcon$J,info:RefIcon$H,warning:RefIcon},ExceptionMap={404:NoFound,500:ServerError,403:Unauthorized},ExceptionStatus=Object.keys(ExceptionMap),Icon$1=a=>{let{prefixCls:s,icon:c,status:u}=a;const d=classnames(`${s}-icon`);if(ExceptionStatus.includes(`${u}`)){const v=ExceptionMap[u];return reactExports.createElement("div",{className:`${d} ${s}-image`},reactExports.createElement(v,null))}const p=reactExports.createElement(IconMap[u]);return c===null||c===!1?null:reactExports.createElement("div",{className:d},c||p)},Extra=a=>{let{prefixCls:s,extra:c}=a;return c?reactExports.createElement("div",{className:`${s}-extra`},c):null},Result$1=a=>{let{prefixCls:s,className:c,rootClassName:u,subTitle:d,title:p,style:v,children:A,status:b="info",icon:g,extra:x}=a;const{getPrefixCls:y,direction:f,result:m}=reactExports.useContext(ConfigContext$1),C=y("result",s),[S,w,I]=useStyle$5(C),P=classnames(C,`${C}-${b}`,c,m==null?void 0:m.className,u,{[`${C}-rtl`]:f==="rtl"},w,I),$=Object.assign(Object.assign({},m==null?void 0:m.style),v);return S(reactExports.createElement("div",{className:P,style:$},reactExports.createElement(Icon$1,{prefixCls:C,status:b,icon:g}),reactExports.createElement("div",{className:`${C}-title`},p),d&&reactExports.createElement("div",{className:`${C}-subtitle`},d),reactExports.createElement(Extra,{prefixCls:C,extra:x}),A&&reactExports.createElement("div",{className:`${C}-content`},A)))};Result$1.PRESENTED_IMAGE_403=ExceptionMap[403],Result$1.PRESENTED_IMAGE_404=ExceptionMap[404],Result$1.PRESENTED_IMAGE_500=ExceptionMap[500];var _excluded$d=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Switch$2=reactExports.forwardRef(function(a,s){var c,u=a.prefixCls,d=u===void 0?"rc-switch":u,p=a.className,v=a.checked,A=a.defaultChecked,b=a.disabled,g=a.loadingIcon,x=a.checkedChildren,y=a.unCheckedChildren,f=a.onClick,m=a.onChange,C=a.onKeyDown,S=_objectWithoutProperties$2(a,_excluded$d),w=useMergedState(!1,{value:v,defaultValue:A}),I=_slicedToArray$e(w,2),P=I[0],$=I[1];function _(B,M){var D=P;return b||(D=B,$(D),m==null||m(D,M)),D}function E(B){B.which===KeyCode.LEFT?_(!1,B):B.which===KeyCode.RIGHT&&_(!0,B),C==null||C(B)}function R(B){var M=_(!P,B);f==null||f(M,B)}var T=classnames(d,p,(c={},_defineProperty$a(c,"".concat(d,"-checked"),P),_defineProperty$a(c,"".concat(d,"-disabled"),b),c));return reactExports.createElement("button",_extends$3({},S,{type:"button",role:"switch","aria-checked":P,disabled:b,className:T,ref:s,onKeyDown:E,onClick:R}),g,reactExports.createElement("span",{className:"".concat(d,"-inner")},reactExports.createElement("span",{className:"".concat(d,"-inner-checked")},x),reactExports.createElement("span",{className:"".concat(d,"-inner-unchecked")},y)))});Switch$2.displayName="Switch";const genSwitchSmallStyle=a=>{const{componentCls:s,trackHeightSM:c,trackPadding:u,trackMinWidthSM:d,innerMinMarginSM:p,innerMaxMarginSM:v,handleSizeSM:A,calc:b}=a,g=`${s}-inner`,x=unit$1(b(A).add(b(u).mul(2)).equal()),y=unit$1(b(v).mul(2).equal());return{[s]:{[`&${s}-small`]:{minWidth:d,height:c,lineHeight:unit$1(c),[`${s}-inner`]:{paddingInlineStart:v,paddingInlineEnd:p,[`${g}-checked, ${g}-unchecked`]:{minHeight:c},[`${g}-checked`]:{marginInlineStart:`calc(-100% + ${x} - ${y})`,marginInlineEnd:`calc(100% - ${x} + ${y})`},[`${g}-unchecked`]:{marginTop:b(c).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${s}-handle`]:{width:A,height:A},[`${s}-loading-icon`]:{top:b(b(A).sub(a.switchLoadingIconSize)).div(2).equal(),fontSize:a.switchLoadingIconSize},[`&${s}-checked`]:{[`${s}-inner`]:{paddingInlineStart:p,paddingInlineEnd:v,[`${g}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${g}-unchecked`]:{marginInlineStart:`calc(100% - ${x} + ${y})`,marginInlineEnd:`calc(-100% + ${x} - ${y})`}},[`${s}-handle`]:{insetInlineStart:`calc(100% - ${unit$1(b(A).add(u).equal())})`}},[`&:not(${s}-disabled):active`]:{[`&:not(${s}-checked) ${g}`]:{[`${g}-unchecked`]:{marginInlineStart:b(a.marginXXS).div(2).equal(),marginInlineEnd:b(a.marginXXS).mul(-1).div(2).equal()}},[`&${s}-checked ${g}`]:{[`${g}-checked`]:{marginInlineStart:b(a.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:b(a.marginXXS).div(2).equal()}}}}}}},genSwitchLoadingStyle=a=>{const{componentCls:s,handleSize:c,calc:u}=a;return{[s]:{[`${s}-loading-icon${a.iconCls}`]:{position:"relative",top:u(u(c).sub(a.fontSize)).div(2).equal(),color:a.switchLoadingIconColor,verticalAlign:"top"},[`&${s}-checked ${s}-loading-icon`]:{color:a.switchColor}}}},genSwitchHandleStyle=a=>{const{componentCls:s,trackPadding:c,handleBg:u,handleShadow:d,handleSize:p,calc:v}=a,A=`${s}-handle`;return{[s]:{[A]:{position:"absolute",top:c,insetInlineStart:c,width:p,height:p,transition:`all ${a.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:u,borderRadius:v(p).div(2).equal(),boxShadow:d,transition:`all ${a.switchDuration} ease-in-out`,content:'""'}},[`&${s}-checked ${A}`]:{insetInlineStart:`calc(100% - ${unit$1(v(p).add(c).equal())})`},[`&:not(${s}-disabled):active`]:{[`${A}::before`]:{insetInlineEnd:a.switchHandleActiveInset,insetInlineStart:0},[`&${s}-checked ${A}::before`]:{insetInlineEnd:0,insetInlineStart:a.switchHandleActiveInset}}}}},genSwitchInnerStyle=a=>{const{componentCls:s,trackHeight:c,trackPadding:u,innerMinMargin:d,innerMaxMargin:p,handleSize:v,calc:A}=a,b=`${s}-inner`,g=unit$1(A(v).add(A(u).mul(2)).equal()),x=unit$1(A(p).mul(2).equal());return{[s]:{[b]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:p,paddingInlineEnd:d,transition:`padding-inline-start ${a.switchDuration} ease-in-out, padding-inline-end ${a.switchDuration} ease-in-out`,[`${b}-checked, ${b}-unchecked`]:{display:"block",color:a.colorTextLightSolid,fontSize:a.fontSizeSM,transition:`margin-inline-start ${a.switchDuration} ease-in-out, margin-inline-end ${a.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:c},[`${b}-checked`]:{marginInlineStart:`calc(-100% + ${g} - ${x})`,marginInlineEnd:`calc(100% - ${g} + ${x})`},[`${b}-unchecked`]:{marginTop:A(c).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${s}-checked ${b}`]:{paddingInlineStart:d,paddingInlineEnd:p,[`${b}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${b}-unchecked`]:{marginInlineStart:`calc(100% - ${g} + ${x})`,marginInlineEnd:`calc(-100% + ${g} - ${x})`}},[`&:not(${s}-disabled):active`]:{[`&:not(${s}-checked) ${b}`]:{[`${b}-unchecked`]:{marginInlineStart:A(u).mul(2).equal(),marginInlineEnd:A(u).mul(-1).mul(2).equal()}},[`&${s}-checked ${b}`]:{[`${b}-checked`]:{marginInlineStart:A(u).mul(-1).mul(2).equal(),marginInlineEnd:A(u).mul(2).equal()}}}}}},genSwitchStyle=a=>{const{componentCls:s,trackHeight:c,trackMinWidth:u}=a;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(a)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:u,height:c,lineHeight:unit$1(c),verticalAlign:"middle",background:a.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${a.motionDurationMid}`,userSelect:"none",[`&:hover:not(${s}-disabled)`]:{background:a.colorTextTertiary}}),genFocusStyle(a)),{[`&${s}-checked`]:{background:a.switchColor,[`&:hover:not(${s}-disabled)`]:{background:a.colorPrimaryHover}},[`&${s}-loading, &${s}-disabled`]:{cursor:"not-allowed",opacity:a.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${s}-rtl`]:{direction:"rtl"}})}},prepareComponentToken$4=a=>{const{fontSize:s,lineHeight:c,controlHeight:u,colorWhite:d}=a,p=s*c,v=u/2,A=2,b=p-A*2,g=v-A*2;return{trackHeight:p,trackHeightSM:v,trackMinWidth:b*2+A*4,trackMinWidthSM:g*2+A*2,trackPadding:A,handleBg:d,handleSize:b,handleSizeSM:g,handleShadow:`0 2px 4px 0 ${new FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:b/2,innerMaxMargin:b+A+A*2,innerMinMarginSM:g/2,innerMaxMarginSM:g+A+A*2}},useStyle$4=genStyleHooks("Switch",a=>{const s=merge(a,{switchDuration:a.motionDurationMid,switchColor:a.colorPrimary,switchDisabledOpacity:a.opacityLoading,switchLoadingIconSize:a.calc(a.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${a.opacityLoading})`,switchHandleActiveInset:"-30%"});return[genSwitchStyle(s),genSwitchInnerStyle(s),genSwitchHandleStyle(s),genSwitchLoadingStyle(s),genSwitchSmallStyle(s)]},prepareComponentToken$4);var __rest$c=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const InternalSwitch=reactExports.forwardRef((a,s)=>{const{prefixCls:c,size:u,disabled:d,loading:p,className:v,rootClassName:A,style:b,checked:g,value:x,defaultChecked:y,defaultValue:f,onChange:m}=a,C=__rest$c(a,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[S,w]=useMergedState(!1,{value:g??x,defaultValue:y??f}),{getPrefixCls:I,direction:P,switch:$}=reactExports.useContext(ConfigContext$1),_=reactExports.useContext(DisabledContext),E=(d??_)||p,R=I("switch",c),T=reactExports.createElement("div",{className:`${R}-handle`},p&&reactExports.createElement(RefIcon$F,{className:`${R}-loading-icon`})),[B,M,D]=useStyle$4(R),O=useSize(u),H=classnames($==null?void 0:$.className,{[`${R}-small`]:O==="small",[`${R}-loading`]:p,[`${R}-rtl`]:P==="rtl"},v,A,M,D),j=Object.assign(Object.assign({},$==null?void 0:$.style),b),Q=function(){w(arguments.length<=0?void 0:arguments[0]),m==null||m.apply(void 0,arguments)};return B(reactExports.createElement(Wave,{component:"Switch"},reactExports.createElement(Switch$2,Object.assign({},C,{checked:S,onChange:Q,prefixCls:R,className:H,style:j,disabled:E,ref:s,loadingIcon:T}))))}),Switch$1=InternalSwitch;Switch$1.__ANT_SWITCH=!0;var EXPAND_COLUMN={},INTERNAL_HOOKS="rc-table-internal-hook";function createContext(a){var s=reactExports.createContext(void 0),c=function(d){var p=d.value,v=d.children,A=reactExports.useRef(p);A.current=p;var b=reactExports.useState(function(){return{getValue:function(){return A.current},listeners:new Set}}),g=_slicedToArray$e(b,1),x=g[0];return useLayoutEffect$1(function(){reactDomExports.unstable_batchedUpdates(function(){x.listeners.forEach(function(y){y(p)})})},[p]),reactExports.createElement(s.Provider,{value:x},v)};return{Context:s,Provider:c,defaultValue:a}}function useContext(a,s){var c=useEvent(typeof s=="function"?s:function(y){if(s===void 0)return y;if(!Array.isArray(s))return y[s];var f={};return s.forEach(function(m){f[m]=y[m]}),f}),u=reactExports.useContext(a==null?void 0:a.Context),d=u||{},p=d.listeners,v=d.getValue,A=reactExports.useRef();A.current=c(u?v():a==null?void 0:a.defaultValue);var b=reactExports.useState({}),g=_slicedToArray$e(b,2),x=g[1];return useLayoutEffect$1(function(){if(!u)return;function y(f){var m=c(f);isEqual(A.current,m,!0)||x({})}return p.add(y),function(){p.delete(y)}},[u]),A.current}function createImmutable(){var a=reactExports.createContext(null);function s(){return reactExports.useContext(a)}function c(d,p){var v=supportRef(d),A=function(g,x){var y=v?{ref:x}:{},f=reactExports.useRef(0),m=reactExports.useRef(g),C=s();return C!==null?reactExports.createElement(d,_extends$3({},g,y)):((!p||p(m.current,g))&&(f.current+=1),m.current=g,reactExports.createElement(a.Provider,{value:f.current},reactExports.createElement(d,_extends$3({},g,y))))};return v?reactExports.forwardRef(A):A}function u(d,p){var v=supportRef(d),A=function(g,x){var y=v?{ref:x}:{};return s(),reactExports.createElement(d,_extends$3({},g,y))};return v?reactExports.memo(reactExports.forwardRef(A),p):reactExports.memo(A,p)}return{makeImmutable:c,responseImmutable:u,useImmutableMark:s}}var _createImmutable=createImmutable(),makeImmutable=_createImmutable.makeImmutable,responseImmutable=_createImmutable.responseImmutable,useImmutableMark=_createImmutable.useImmutableMark,TableContext=createContext(),PerfContext=reactExports.createContext({renderWithProps:!1}),INTERNAL_KEY_PREFIX="RC_TABLE_KEY";function toArray$1(a){return a==null?[]:Array.isArray(a)?a:[a]}function getColumnsKey(a){var s=[],c={};return a.forEach(function(u){for(var d=u||{},p=d.key,v=d.dataIndex,A=p||toArray$1(v).join("-")||INTERNAL_KEY_PREFIX;c[A];)A="".concat(A,"_next");c[A]=!0,s.push(A)}),s}function validateValue(a){return a!=null}function validNumberValue(a){return typeof a=="number"&&!Number.isNaN(a)}function isRenderCell(a){return a&&_typeof$h(a)==="object"&&!Array.isArray(a)&&!reactExports.isValidElement(a)}function useCellRender(a,s,c,u,d,p){var v=reactExports.useContext(PerfContext),A=useImmutableMark(),b=useMemo(function(){if(validateValue(u))return[u];var g=s==null||s===""?[]:Array.isArray(s)?s:[s],x=get$1(a,g),y=x,f=void 0;if(d){var m=d(x,a,c);isRenderCell(m)?(y=m.children,f=m.props,v.renderWithProps=!0):y=m}return[y,f]},[A,a,u,s,d,c],function(g,x){if(p){var y=_slicedToArray$e(g,2),f=y[1],m=_slicedToArray$e(x,2),C=m[1];return p(C,f)}return v.renderWithProps?!0:!isEqual(g,x,!0)});return b}function inHoverRange(a,s,c,u){var d=a+s-1;return a<=u&&d>=c}function useHoverState(a,s){return useContext(TableContext,function(c){var u=inHoverRange(a,s||1,c.hoverStartRow,c.hoverEndRow);return[u,c.onHover]})}var getTitleFromCellRenderChildren=function a(s){var c=s.ellipsis,u=s.rowType,d=s.children,p,v=c===!0?{showTitle:!0}:c;return v&&(v.showTitle||u==="header")&&(typeof d=="string"||typeof d=="number"?p=d.toString():reactExports.isValidElement(d)&&typeof d.props.children=="string"&&(p=d.props.children)),p};function Cell(a){var s,c,u,d,p,v,A,b,g=a.component,x=a.children,y=a.ellipsis,f=a.scope,m=a.prefixCls,C=a.className,S=a.align,w=a.record,I=a.render,P=a.dataIndex,$=a.renderIndex,_=a.shouldCellUpdate,E=a.index,R=a.rowType,T=a.colSpan,B=a.rowSpan,M=a.fixLeft,D=a.fixRight,O=a.firstFixLeft,H=a.lastFixLeft,j=a.firstFixRight,Q=a.lastFixRight,L=a.appendNode,F=a.additionalProps,U=F===void 0?{}:F,N=a.isSticky,k="".concat(m,"-cell"),W=useContext(TableContext,["supportSticky","allColumnsFixedLeft","rowHoverable"]),J=W.supportSticky,q=W.allColumnsFixedLeft,Y=W.rowHoverable,Z=useCellRender(w,P,$,x,I,_),ee=_slicedToArray$e(Z,2),re=ee[0],ae=ee[1],V={},K=typeof M=="number"&&J,te=typeof D=="number"&&J;K&&(V.position="sticky",V.left=M),te&&(V.position="sticky",V.right=D);var ie=(s=(c=(u=ae==null?void 0:ae.colSpan)!==null&&u!==void 0?u:U.colSpan)!==null&&c!==void 0?c:T)!==null&&s!==void 0?s:1,ce=(d=(p=(v=ae==null?void 0:ae.rowSpan)!==null&&v!==void 0?v:U.rowSpan)!==null&&p!==void 0?p:B)!==null&&d!==void 0?d:1,ge=useHoverState(E,ce),Se=_slicedToArray$e(ge,2),be=Se[0],me=Se[1],fe=useEvent(function($e){var we;w&&me(E,E+ce-1),U==null||(we=U.onMouseEnter)===null||we===void 0||we.call(U,$e)}),se=useEvent(function($e){var we;w&&me(-1,-1),U==null||(we=U.onMouseLeave)===null||we===void 0||we.call(U,$e)});if(ie===0||ce===0)return null;var oe=(A=U.title)!==null&&A!==void 0?A:getTitleFromCellRenderChildren({rowType:R,ellipsis:y,children:re}),de=classnames(k,C,(b={},_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(b,"".concat(k,"-fix-left"),K&&J),"".concat(k,"-fix-left-first"),O&&J),"".concat(k,"-fix-left-last"),H&&J),"".concat(k,"-fix-left-all"),H&&q&&J),"".concat(k,"-fix-right"),te&&J),"".concat(k,"-fix-right-first"),j&&J),"".concat(k,"-fix-right-last"),Q&&J),"".concat(k,"-ellipsis"),y),"".concat(k,"-with-append"),L),"".concat(k,"-fix-sticky"),(K||te)&&N&&J),_defineProperty$a(b,"".concat(k,"-row-hover"),!ae&&be)),U.className,ae==null?void 0:ae.className),le={};S&&(le.textAlign=S);var xe=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},ae==null?void 0:ae.style),V),le),U.style),Ce=re;return _typeof$h(Ce)==="object"&&!Array.isArray(Ce)&&!reactExports.isValidElement(Ce)&&(Ce=null),y&&(H||j)&&(Ce=reactExports.createElement("span",{className:"".concat(k,"-content")},Ce)),reactExports.createElement(g,_extends$3({},ae,U,{className:de,style:xe,title:oe,scope:f,onMouseEnter:Y?fe:void 0,onMouseLeave:Y?se:void 0,colSpan:ie!==1?ie:null,rowSpan:ce!==1?ce:null}),L,Ce)}const Cell$1=reactExports.memo(Cell);function getCellFixedInfo(a,s,c,u,d){var p=c[a]||{},v=c[s]||{},A,b;p.fixed==="left"?A=u.left[d==="rtl"?s:a]:v.fixed==="right"&&(b=u.right[d==="rtl"?a:s]);var g=!1,x=!1,y=!1,f=!1,m=c[s+1],C=c[a-1],S=m&&!m.fixed||C&&!C.fixed||c.every(function(_){return _.fixed==="left"});if(d==="rtl"){if(A!==void 0){var w=C&&C.fixed==="left";f=!w&&S}else if(b!==void 0){var I=m&&m.fixed==="right";y=!I&&S}}else if(A!==void 0){var P=m&&m.fixed==="left";g=!P&&S}else if(b!==void 0){var $=C&&C.fixed==="right";x=!$&&S}return{fixLeft:A,fixRight:b,lastFixLeft:g,firstFixRight:x,lastFixRight:y,firstFixLeft:f,isSticky:u.isSticky}}var SummaryContext=reactExports.createContext({});function SummaryCell(a){var s=a.className,c=a.index,u=a.children,d=a.colSpan,p=d===void 0?1:d,v=a.rowSpan,A=a.align,b=useContext(TableContext,["prefixCls","direction"]),g=b.prefixCls,x=b.direction,y=reactExports.useContext(SummaryContext),f=y.scrollColumnIndex,m=y.stickyOffsets,C=y.flattenColumns,S=c+p-1,w=S+1===f?p+1:p,I=getCellFixedInfo(c,c+w-1,C,m,x);return reactExports.createElement(Cell$1,_extends$3({className:s,index:c,component:"td",prefixCls:g,record:null,dataIndex:null,align:A,colSpan:w,rowSpan:v,render:function(){return u}},I))}var _excluded$c=["children"];function FooterRow(a){var s=a.children,c=_objectWithoutProperties$2(a,_excluded$c);return reactExports.createElement("tr",c,s)}function Summary(a){var s=a.children;return s}Summary.Row=FooterRow,Summary.Cell=SummaryCell;function Footer(a){var s=a.children,c=a.stickyOffsets,u=a.flattenColumns,d=useContext(TableContext,"prefixCls"),p=u.length-1,v=u[p],A=reactExports.useMemo(function(){return{stickyOffsets:c,flattenColumns:u,scrollColumnIndex:v!=null&&v.scrollbar?p:null}},[v,u,p,c]);return reactExports.createElement(SummaryContext.Provider,{value:A},reactExports.createElement("tfoot",{className:"".concat(d,"-summary")},s))}const Footer$1=responseImmutable(Footer);var FooterComponents=Summary;function Column$1(a){return null}function ColumnGroup$1(a){return null}function fillRecords(a,s,c,u,d,p,v){a.push({record:s,indent:c,index:v});var A=p(s),b=d==null?void 0:d.has(A);if(s&&Array.isArray(s[u])&&b)for(var g=0;g<s[u].length;g+=1)fillRecords(a,s[u][g],c+1,u,d,p,g)}function useFlattenRecords(a,s,c,u){var d=reactExports.useMemo(function(){if(c!=null&&c.size){for(var p=[],v=0;v<(a==null?void 0:a.length);v+=1){var A=a[v];fillRecords(p,A,0,s,c,u,v)}return p}return a==null?void 0:a.map(function(b,g){return{record:b,indent:0,index:g}})},[a,s,c,u]);return d}function useRowInfo(a,s,c,u){var d=useContext(TableContext,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),p=d.flattenColumns,v=d.expandableType,A=d.expandedKeys,b=d.childrenColumnName,g=d.onTriggerExpand,x=d.rowExpandable,y=d.onRow,f=d.expandRowByClick,m=d.rowClassName,C=v==="nest",S=v==="row"&&(!x||x(a)),w=S||C,I=A&&A.has(s),P=b&&a&&a[b],$=useEvent(g),_=y==null?void 0:y(a,c),E=_==null?void 0:_.onClick,R=function(D){f&&w&&g(a,D);for(var O=arguments.length,H=new Array(O>1?O-1:0),j=1;j<O;j++)H[j-1]=arguments[j];E==null||E.apply(void 0,[D].concat(H))},T;typeof m=="string"?T=m:typeof m=="function"&&(T=m(a,c,u));var B=getColumnsKey(p);return _objectSpread2$1(_objectSpread2$1({},d),{},{columnsKey:B,nestExpandable:C,expanded:I,hasNestChildren:P,record:a,onTriggerExpand:$,rowSupportExpand:S,expandable:w,rowProps:_objectSpread2$1(_objectSpread2$1({},_),{},{className:classnames(T,_==null?void 0:_.className),onClick:R})})}function ExpandedRow(a){var s=a.prefixCls,c=a.children,u=a.component,d=a.cellComponent,p=a.className,v=a.expanded,A=a.colSpan,b=a.isEmpty,g=useContext(TableContext,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),x=g.scrollbarSize,y=g.fixHeader,f=g.fixColumn,m=g.componentWidth,C=g.horizonScroll,S=c;return(b?C&&m:f)&&(S=reactExports.createElement("div",{style:{width:m-(y&&!b?x:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(s,"-expanded-row-fixed")},S)),reactExports.createElement(u,{className:p,style:{display:v?null:"none"}},reactExports.createElement(Cell$1,{component:d,prefixCls:s,colSpan:A},S))}function renderExpandIcon$1(a){var s=a.prefixCls,c=a.record,u=a.onExpand,d=a.expanded,p=a.expandable,v="".concat(s,"-row-expand-icon");if(!p)return reactExports.createElement("span",{className:classnames(v,"".concat(s,"-row-spaced"))});var A=function(g){u(c,g),g.stopPropagation()};return reactExports.createElement("span",{className:classnames(v,_defineProperty$a(_defineProperty$a({},"".concat(s,"-row-expanded"),d),"".concat(s,"-row-collapsed"),!d)),onClick:A})}function findAllChildrenKeys(a,s,c){var u=[];function d(p){(p||[]).forEach(function(v,A){u.push(s(v,A)),d(v[c])})}return d(a),u}function computedExpandedClassName(a,s,c,u){return typeof a=="string"?a:typeof a=="function"?a(s,c,u):""}function getCellProps(a,s,c,u,d){var p=a.record,v=a.prefixCls,A=a.columnsKey,b=a.fixedInfoList,g=a.expandIconColumnIndex,x=a.nestExpandable,y=a.indentSize,f=a.expandIcon,m=a.expanded,C=a.hasNestChildren,S=a.onTriggerExpand,w=A[c],I=b[c],P;c===(g||0)&&x&&(P=reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("span",{style:{paddingLeft:"".concat(y*u,"px")},className:"".concat(v,"-row-indent indent-level-").concat(u)}),f({prefixCls:v,expanded:m,expandable:C,record:p,onExpand:S})));var $;return s.onCell&&($=s.onCell(p,d)),{key:w,fixedInfo:I,appendCellNode:P,additionalCellProps:$||{}}}function BodyRow(a){var s=a.className,c=a.style,u=a.record,d=a.index,p=a.renderIndex,v=a.rowKey,A=a.indent,b=A===void 0?0:A,g=a.rowComponent,x=a.cellComponent,y=a.scopeCellComponent,f=useRowInfo(u,v,d,b),m=f.prefixCls,C=f.flattenColumns,S=f.expandedRowClassName,w=f.expandedRowRender,I=f.rowProps,P=f.expanded,$=f.rowSupportExpand,_=reactExports.useRef(!1);_.current||(_.current=P);var E=computedExpandedClassName(S,u,d,b),R=reactExports.createElement(g,_extends$3({},I,{"data-row-key":v,className:classnames(s,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(b),I==null?void 0:I.className,_defineProperty$a({},E,b>=1)),style:_objectSpread2$1(_objectSpread2$1({},c),I==null?void 0:I.style)}),C.map(function(M,D){var O=M.render,H=M.dataIndex,j=M.className,Q=getCellProps(f,M,D,b,d),L=Q.key,F=Q.fixedInfo,U=Q.appendCellNode,N=Q.additionalCellProps;return reactExports.createElement(Cell$1,_extends$3({className:j,ellipsis:M.ellipsis,align:M.align,scope:M.rowScope,component:M.rowScope?y:x,prefixCls:m,key:L,record:u,index:d,renderIndex:p,dataIndex:H,render:O,shouldCellUpdate:M.shouldCellUpdate},F,{appendNode:U,additionalProps:N}))})),T;if($&&(_.current||P)){var B=w(u,d,b+1,P);T=reactExports.createElement(ExpandedRow,{expanded:P,className:classnames("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(b+1),E),prefixCls:m,component:g,cellComponent:x,colSpan:C.length,isEmpty:!1},B)}return reactExports.createElement(reactExports.Fragment,null,R,T)}const BodyRow$1=responseImmutable(BodyRow);function MeasureCell(a){var s=a.columnKey,c=a.onColumnResize,u=reactExports.useRef();return reactExports.useEffect(function(){u.current&&c(s,u.current.offsetWidth)},[]),reactExports.createElement(RefResizeObserver,{data:s},reactExports.createElement("td",{ref:u,style:{padding:0,border:0,height:0}},reactExports.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function MeasureRow(a){var s=a.prefixCls,c=a.columnsKey,u=a.onColumnResize;return reactExports.createElement("tr",{"aria-hidden":"true",className:"".concat(s,"-measure-row"),style:{height:0,fontSize:0}},reactExports.createElement(RefResizeObserver.Collection,{onBatchResize:function(p){p.forEach(function(v){var A=v.data,b=v.size;u(A,b.offsetWidth)})}},c.map(function(d){return reactExports.createElement(MeasureCell,{key:d,columnKey:d,onColumnResize:u})})))}function Body(a){var s=a.data,c=a.measureColumnWidth,u=useContext(TableContext,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),d=u.prefixCls,p=u.getComponent,v=u.onColumnResize,A=u.flattenColumns,b=u.getRowKey,g=u.expandedKeys,x=u.childrenColumnName,y=u.emptyNode,f=useFlattenRecords(s,x,g,b),m=reactExports.useRef({renderWithProps:!1}),C=p(["body","wrapper"],"tbody"),S=p(["body","row"],"tr"),w=p(["body","cell"],"td"),I=p(["body","cell"],"th"),P;s.length?P=f.map(function(_,E){var R=_.record,T=_.indent,B=_.index,M=b(R,E);return reactExports.createElement(BodyRow$1,{key:M,rowKey:M,record:R,index:E,renderIndex:B,rowComponent:S,cellComponent:w,scopeCellComponent:I,indent:T})}):P=reactExports.createElement(ExpandedRow,{expanded:!0,className:"".concat(d,"-placeholder"),prefixCls:d,component:S,cellComponent:w,colSpan:A.length,isEmpty:!0},y);var $=getColumnsKey(A);return reactExports.createElement(PerfContext.Provider,{value:m.current},reactExports.createElement(C,{className:"".concat(d,"-tbody")},c&&reactExports.createElement(MeasureRow,{prefixCls:d,columnsKey:$,onColumnResize:v}),P))}const Body$1=responseImmutable(Body);var _excluded$b=["expandable"],INTERNAL_COL_DEFINE="RC_TABLE_INTERNAL_COL_DEFINE";function getExpandableProps(a){var s=a.expandable,c=_objectWithoutProperties$2(a,_excluded$b),u;return"expandable"in a?u=_objectSpread2$1(_objectSpread2$1({},c),s):u=c,u.showExpandColumn===!1&&(u.expandIconColumnIndex=-1),u}var _excluded$a=["columnType"];function ColGroup(a){for(var s=a.colWidths,c=a.columns,u=a.columCount,d=useContext(TableContext,["tableLayout"]),p=d.tableLayout,v=[],A=u||c.length,b=!1,g=A-1;g>=0;g-=1){var x=s[g],y=c&&c[g],f=void 0,m=void 0;if(y&&(f=y[INTERNAL_COL_DEFINE],p==="auto"&&(m=y.minWidth)),x||m||f||b){var C=f||{};C.columnType;var S=_objectWithoutProperties$2(C,_excluded$a);v.unshift(reactExports.createElement("col",_extends$3({key:g,style:{width:x,minWidth:m}},S))),b=!0}}return reactExports.createElement("colgroup",null,v)}var _excluded$9=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function useColumnWidth(a,s){return reactExports.useMemo(function(){for(var c=[],u=0;u<s;u+=1){var d=a[u];if(d!==void 0)c[u]=d;else return null}return c},[a.join("_"),s])}var FixedHolder=reactExports.forwardRef(function(a,s){var c=a.className,u=a.noData,d=a.columns,p=a.flattenColumns,v=a.colWidths,A=a.columCount,b=a.stickyOffsets,g=a.direction,x=a.fixHeader,y=a.stickyTopOffset,f=a.stickyBottomOffset,m=a.stickyClassName,C=a.onScroll,S=a.maxContentScroll,w=a.children,I=_objectWithoutProperties$2(a,_excluded$9),P=useContext(TableContext,["prefixCls","scrollbarSize","isSticky","getComponent"]),$=P.prefixCls,_=P.scrollbarSize,E=P.isSticky,R=P.getComponent,T=R(["header","table"],"table"),B=E&&!x?0:_,M=reactExports.useRef(null),D=reactExports.useCallback(function(N){fillRef(s,N),fillRef(M,N)},[]);reactExports.useEffect(function(){var N;function k(W){var J=W,q=J.currentTarget,Y=J.deltaX;Y&&(C({currentTarget:q,scrollLeft:q.scrollLeft+Y}),W.preventDefault())}return(N=M.current)===null||N===void 0||N.addEventListener("wheel",k,{passive:!1}),function(){var W;(W=M.current)===null||W===void 0||W.removeEventListener("wheel",k)}},[]);var O=reactExports.useMemo(function(){return p.every(function(N){return N.width})},[p]),H=p[p.length-1],j={fixed:H?H.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat($,"-cell-scrollbar")}}},Q=reactExports.useMemo(function(){return B?[].concat(_toConsumableArray$e(d),[j]):d},[B,d]),L=reactExports.useMemo(function(){return B?[].concat(_toConsumableArray$e(p),[j]):p},[B,p]),F=reactExports.useMemo(function(){var N=b.right,k=b.left;return _objectSpread2$1(_objectSpread2$1({},b),{},{left:g==="rtl"?[].concat(_toConsumableArray$e(k.map(function(W){return W+B})),[0]):k,right:g==="rtl"?N:[].concat(_toConsumableArray$e(N.map(function(W){return W+B})),[0]),isSticky:E})},[B,b,E]),U=useColumnWidth(v,A);return reactExports.createElement("div",{style:_objectSpread2$1({overflow:"hidden"},E?{top:y,bottom:f}:{}),ref:D,className:classnames(c,_defineProperty$a({},m,!!m))},reactExports.createElement(T,{style:{tableLayout:"fixed",visibility:u||U?null:"hidden"}},(!u||!S||O)&&reactExports.createElement(ColGroup,{colWidths:U?[].concat(_toConsumableArray$e(U),[B]):[],columCount:A+1,columns:L}),w(_objectSpread2$1(_objectSpread2$1({},I),{},{stickyOffsets:F,columns:Q,flattenColumns:L}))))});const FixedHolder$1=reactExports.memo(FixedHolder);var HeaderRow=function a(s){var c=s.cells,u=s.stickyOffsets,d=s.flattenColumns,p=s.rowComponent,v=s.cellComponent,A=s.onHeaderRow,b=s.index,g=useContext(TableContext,["prefixCls","direction"]),x=g.prefixCls,y=g.direction,f;A&&(f=A(c.map(function(C){return C.column}),b));var m=getColumnsKey(c.map(function(C){return C.column}));return reactExports.createElement(p,f,c.map(function(C,S){var w=C.column,I=getCellFixedInfo(C.colStart,C.colEnd,d,u,y),P;return w&&w.onHeaderCell&&(P=C.column.onHeaderCell(w)),reactExports.createElement(Cell$1,_extends$3({},C,{scope:w.title?C.colSpan>1?"colgroup":"col":null,ellipsis:w.ellipsis,align:w.align,component:v,prefixCls:x,key:m[S]},I,{additionalProps:P,rowType:"header"}))}))};function parseHeaderRows(a){var s=[];function c(v,A){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;s[b]=s[b]||[];var g=A,x=v.filter(Boolean).map(function(y){var f={key:y.key,className:y.className||"",children:y.title,column:y,colStart:g},m=1,C=y.children;return C&&C.length>0&&(m=c(C,g,b+1).reduce(function(S,w){return S+w},0),f.hasSubColumns=!0),"colSpan"in y&&(m=y.colSpan),"rowSpan"in y&&(f.rowSpan=y.rowSpan),f.colSpan=m,f.colEnd=f.colStart+m-1,s[b].push(f),g+=m,m});return x}c(a,0);for(var u=s.length,d=function(A){s[A].forEach(function(b){!("rowSpan"in b)&&!b.hasSubColumns&&(b.rowSpan=u-A)})},p=0;p<u;p+=1)d(p);return s}var Header=function a(s){var c=s.stickyOffsets,u=s.columns,d=s.flattenColumns,p=s.onHeaderRow,v=useContext(TableContext,["prefixCls","getComponent"]),A=v.prefixCls,b=v.getComponent,g=reactExports.useMemo(function(){return parseHeaderRows(u)},[u]),x=b(["header","wrapper"],"thead"),y=b(["header","row"],"tr"),f=b(["header","cell"],"th");return reactExports.createElement(x,{className:"".concat(A,"-thead")},g.map(function(m,C){var S=reactExports.createElement(HeaderRow,{key:C,flattenColumns:d,cells:m,stickyOffsets:c,rowComponent:y,cellComponent:f,onHeaderRow:p,index:C});return S}))};const Header$1=responseImmutable(Header);function parseColWidth(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof s=="number"?s:s.endsWith("%")?a*parseFloat(s)/100:null}function useWidthColumns(a,s,c){return reactExports.useMemo(function(){if(s&&s>0){var u=0,d=0;a.forEach(function(f){var m=parseColWidth(s,f.width);m?u+=m:d+=1});var p=Math.max(s,c),v=Math.max(p-u,d),A=d,b=v/d,g=0,x=a.map(function(f){var m=_objectSpread2$1({},f),C=parseColWidth(s,m.width);if(C)m.width=C;else{var S=Math.floor(b);m.width=A===1?v:S,v-=S,A-=1}return g+=m.width,m});if(g<p){var y=p/g;v=p,x.forEach(function(f,m){var C=Math.floor(f.width*y);f.width=m===x.length-1?v:C,v-=C})}return[x,Math.max(g,p)]}return[a,s]},[a,s,c])}var _excluded$8=["children"],_excluded2$1=["fixed"];function convertChildrenToColumns(a){return toArray$8(a).filter(function(s){return reactExports.isValidElement(s)}).map(function(s){var c=s.key,u=s.props,d=u.children,p=_objectWithoutProperties$2(u,_excluded$8),v=_objectSpread2$1({key:c},p);return d&&(v.children=convertChildrenToColumns(d)),v})}function filterHiddenColumns(a){return a.filter(function(s){return s&&_typeof$h(s)==="object"&&!s.hidden}).map(function(s){var c=s.children;return c&&c.length>0?_objectSpread2$1(_objectSpread2$1({},s),{},{children:filterHiddenColumns(c)}):s})}function flatColumns(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return a.filter(function(c){return c&&_typeof$h(c)==="object"}).reduce(function(c,u,d){var p=u.fixed,v=p===!0?"left":p,A="".concat(s,"-").concat(d),b=u.children;return b&&b.length>0?[].concat(_toConsumableArray$e(c),_toConsumableArray$e(flatColumns(b,A).map(function(g){return _objectSpread2$1({fixed:v},g)}))):[].concat(_toConsumableArray$e(c),[_objectSpread2$1(_objectSpread2$1({key:A},u),{},{fixed:v})])},[])}function revertForRtl(a){return a.map(function(s){var c=s.fixed,u=_objectWithoutProperties$2(s,_excluded2$1),d=c;return c==="left"?d="right":c==="right"&&(d="left"),_objectSpread2$1({fixed:d},u)})}function useColumns(a,s){var c=a.prefixCls,u=a.columns,d=a.children,p=a.expandable,v=a.expandedKeys,A=a.columnTitle,b=a.getRowKey,g=a.onTriggerExpand,x=a.expandIcon,y=a.rowExpandable,f=a.expandIconColumnIndex,m=a.direction,C=a.expandRowByClick,S=a.columnWidth,w=a.fixed,I=a.scrollWidth,P=a.clientWidth,$=reactExports.useMemo(function(){var H=u||convertChildrenToColumns(d)||[];return filterHiddenColumns(H.slice())},[u,d]),_=reactExports.useMemo(function(){if(p){var H=$.slice();if(!H.includes(EXPAND_COLUMN)){var j=f||0;j>=0&&(j||w==="left"||!w)&&H.splice(j,0,EXPAND_COLUMN),w==="right"&&H.splice($.length,0,EXPAND_COLUMN)}var Q=H.indexOf(EXPAND_COLUMN);H=H.filter(function(N,k){return N!==EXPAND_COLUMN||k===Q});var L=$[Q],F;w?F=w:F=L?L.fixed:null;var U=_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a({},INTERNAL_COL_DEFINE,{className:"".concat(c,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",A),"fixed",F),"className","".concat(c,"-row-expand-icon-cell")),"width",S),"render",function(k,W,J){var q=b(W,J),Y=v.has(q),Z=y?y(W):!0,ee=x({prefixCls:c,expanded:Y,expandable:Z,record:W,onExpand:g});return C?reactExports.createElement("span",{onClick:function(ae){return ae.stopPropagation()}},ee):ee});return H.map(function(N){return N===EXPAND_COLUMN?U:N})}return $.filter(function(N){return N!==EXPAND_COLUMN})},[p,$,b,v,x,m]),E=reactExports.useMemo(function(){var H=_;return s&&(H=s(H)),H.length||(H=[{render:function(){return null}}]),H},[s,_,m]),R=reactExports.useMemo(function(){return m==="rtl"?revertForRtl(flatColumns(E)):flatColumns(E)},[E,m,I]),T=reactExports.useMemo(function(){for(var H=-1,j=R.length-1;j>=0;j-=1){var Q=R[j].fixed;if(Q==="left"||Q===!0){H=j;break}}if(H>=0)for(var L=0;L<=H;L+=1){var F=R[L].fixed;if(F!=="left"&&F!==!0)return!0}var U=R.findIndex(function(W){var J=W.fixed;return J==="right"});if(U>=0)for(var N=U;N<R.length;N+=1){var k=R[N].fixed;if(k!=="right")return!0}return!1},[R]),B=useWidthColumns(R,I,P),M=_slicedToArray$e(B,2),D=M[0],O=M[1];return[E,D,O,T]}function useExpand(a,s,c){var u=getExpandableProps(a),d=u.expandIcon,p=u.expandedRowKeys,v=u.defaultExpandedRowKeys,A=u.defaultExpandAllRows,b=u.expandedRowRender,g=u.onExpand,x=u.onExpandedRowsChange,y=u.childrenColumnName,f=d||renderExpandIcon$1,m=y||"children",C=reactExports.useMemo(function(){return b?"row":a.expandable&&a.internalHooks===INTERNAL_HOOKS&&a.expandable.__PARENT_RENDER_ICON__||s.some(function(E){return E&&_typeof$h(E)==="object"&&E[m]})?"nest":!1},[!!b,s]),S=reactExports.useState(function(){return v||(A?findAllChildrenKeys(s,c,m):[])}),w=_slicedToArray$e(S,2),I=w[0],P=w[1],$=reactExports.useMemo(function(){return new Set(p||I||[])},[p,I]),_=reactExports.useCallback(function(E){var R=c(E,s.indexOf(E)),T,B=$.has(R);B?($.delete(R),T=_toConsumableArray$e($)):T=[].concat(_toConsumableArray$e($),[R]),P(T),g&&g(!B,E),x&&x(T)},[c,$,s,g,x]);return[u,C,$,f,m,_]}function useFixedInfo(a,s,c){var u=a.map(function(d,p){return getCellFixedInfo(p,p,a,s,c)});return useMemo(function(){return u},[u],function(d,p){return!isEqual(d,p)})}function useLayoutState(a){var s=reactExports.useRef(a),c=reactExports.useState({}),u=_slicedToArray$e(c,2),d=u[1],p=reactExports.useRef(null),v=reactExports.useRef([]);function A(b){v.current.push(b);var g=Promise.resolve();p.current=g,g.then(function(){if(p.current===g){var x=v.current,y=s.current;v.current=[],x.forEach(function(f){s.current=f(s.current)}),p.current=null,y!==s.current&&d({})}})}return reactExports.useEffect(function(){return function(){p.current=null}},[]),[s.current,A]}function useTimeoutLock(a){var s=reactExports.useRef(null),c=reactExports.useRef();function u(){window.clearTimeout(c.current)}function d(v){s.current=v,u(),c.current=window.setTimeout(function(){s.current=null,c.current=void 0},100)}function p(){return s.current}return reactExports.useEffect(function(){return u},[]),[d,p]}function useHover(){var a=reactExports.useState(-1),s=_slicedToArray$e(a,2),c=s[0],u=s[1],d=reactExports.useState(-1),p=_slicedToArray$e(d,2),v=p[0],A=p[1],b=reactExports.useCallback(function(g,x){u(g),A(x)},[]);return[c,v,b]}var defaultContainer=canUseDom$1()?window:null;function useSticky(a,s){var c=_typeof$h(a)==="object"?a:{},u=c.offsetHeader,d=u===void 0?0:u,p=c.offsetSummary,v=p===void 0?0:p,A=c.offsetScroll,b=A===void 0?0:A,g=c.getContainer,x=g===void 0?function(){return defaultContainer}:g,y=x()||defaultContainer,f=!!a;return reactExports.useMemo(function(){return{isSticky:f,stickyClassName:f?"".concat(s,"-sticky-holder"):"",offsetHeader:d,offsetSummary:v,offsetScroll:b,container:y}},[f,b,d,v,s,y])}function useStickyOffsets(a,s,c){var u=reactExports.useMemo(function(){var d=s.length,p=function(g,x,y){for(var f=[],m=0,C=g;C!==x;C+=y)f.push(m),s[C].fixed&&(m+=a[C]||0);return f},v=p(0,d,1),A=p(d-1,-1,-1).reverse();return c==="rtl"?{left:A,right:v}:{left:v,right:A}},[a,s,c]);return u}function Panel$2(a){var s=a.className,c=a.children;return reactExports.createElement("div",{className:s},c)}function getOffset$1(a){var s=getDOM(a),c=s.getBoundingClientRect(),u=document.documentElement;return{left:c.left+(window.pageXOffset||u.scrollLeft)-(u.clientLeft||document.body.clientLeft||0),top:c.top+(window.pageYOffset||u.scrollTop)-(u.clientTop||document.body.clientTop||0)}}var StickyScrollBar=function a(s,c){var u,d,p=s.scrollBodyRef,v=s.onScroll,A=s.offsetScroll,b=s.container,g=s.direction,x=useContext(TableContext,"prefixCls"),y=((u=p.current)===null||u===void 0?void 0:u.scrollWidth)||0,f=((d=p.current)===null||d===void 0?void 0:d.clientWidth)||0,m=y&&f*(f/y),C=reactExports.useRef(),S=useLayoutState({scrollLeft:0,isHiddenScrollBar:!0}),w=_slicedToArray$e(S,2),I=w[0],P=w[1],$=reactExports.useRef({delta:0,x:0}),_=reactExports.useState(!1),E=_slicedToArray$e(_,2),R=E[0],T=E[1],B=reactExports.useRef(null);reactExports.useEffect(function(){return function(){wrapperRaf.cancel(B.current)}},[]);var M=function(){T(!1)},D=function(L){L.persist(),$.current.delta=L.pageX-I.scrollLeft,$.current.x=0,T(!0),L.preventDefault()},O=function(L){var F,U=L||((F=window)===null||F===void 0?void 0:F.event),N=U.buttons;if(!R||N===0){R&&T(!1);return}var k=$.current.x+L.pageX-$.current.x-$.current.delta,W=g==="rtl";k=Math.max(W?m-f:0,Math.min(W?0:f-m,k));var J=!W||Math.abs(k)+Math.abs(m)<f;J&&(v({scrollLeft:k/f*(y+2)}),$.current.x=L.pageX)},H=function(){wrapperRaf.cancel(B.current),B.current=wrapperRaf(function(){if(p.current){var L=getOffset$1(p.current).top,F=L+p.current.offsetHeight,U=b===window?document.documentElement.scrollTop+window.innerHeight:getOffset$1(b).top+b.clientHeight;F-getScrollBarSize()<=U||L>=U-A?P(function(N){return _objectSpread2$1(_objectSpread2$1({},N),{},{isHiddenScrollBar:!0})}):P(function(N){return _objectSpread2$1(_objectSpread2$1({},N),{},{isHiddenScrollBar:!1})})}})},j=function(L){P(function(F){return _objectSpread2$1(_objectSpread2$1({},F),{},{scrollLeft:L/y*f||0})})};return reactExports.useImperativeHandle(c,function(){return{setScrollLeft:j,checkScrollBarVisible:H}}),reactExports.useEffect(function(){var Q=addEventListenerWrap$1(document.body,"mouseup",M,!1),L=addEventListenerWrap$1(document.body,"mousemove",O,!1);return H(),function(){Q.remove(),L.remove()}},[m,R]),reactExports.useEffect(function(){if(p.current){for(var Q=[],L=getDOM(p.current);L;)Q.push(L),L=L.parentElement;return Q.forEach(function(F){return F.addEventListener("scroll",H,!1)}),window.addEventListener("resize",H,!1),window.addEventListener("scroll",H,!1),b.addEventListener("scroll",H,!1),function(){Q.forEach(function(F){return F.removeEventListener("scroll",H)}),window.removeEventListener("resize",H),window.removeEventListener("scroll",H),b.removeEventListener("scroll",H)}}},[b]),reactExports.useEffect(function(){I.isHiddenScrollBar||P(function(Q){var L=p.current;return L?_objectSpread2$1(_objectSpread2$1({},Q),{},{scrollLeft:L.scrollLeft/L.scrollWidth*L.clientWidth}):Q})},[I.isHiddenScrollBar]),y<=f||!m||I.isHiddenScrollBar?null:reactExports.createElement("div",{style:{height:getScrollBarSize(),width:f,bottom:A},className:"".concat(x,"-sticky-scroll")},reactExports.createElement("div",{onMouseDown:D,ref:C,className:classnames("".concat(x,"-sticky-scroll-bar"),_defineProperty$a({},"".concat(x,"-sticky-scroll-bar-active"),R)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(I.scrollLeft,"px, 0, 0)")}}))};const StickyScrollBar$1=reactExports.forwardRef(StickyScrollBar);var DEFAULT_PREFIX="rc-table",EMPTY_DATA=[],EMPTY_SCROLL_TARGET={};function defaultEmpty(){return"No Data"}function Table$1(a,s){var c=_objectSpread2$1({rowKey:"key",prefixCls:DEFAULT_PREFIX,emptyText:defaultEmpty},a),u=c.prefixCls,d=c.className,p=c.rowClassName,v=c.style,A=c.data,b=c.rowKey,g=c.scroll,x=c.tableLayout,y=c.direction,f=c.title,m=c.footer,C=c.summary,S=c.caption,w=c.id,I=c.showHeader,P=c.components,$=c.emptyText,_=c.onRow,E=c.onHeaderRow,R=c.onScroll,T=c.internalHooks,B=c.transformColumns,M=c.internalRefs,D=c.tailor,O=c.getContainerWidth,H=c.sticky,j=c.rowHoverable,Q=j===void 0?!0:j,L=A||EMPTY_DATA,F=!!L.length,U=T===INTERNAL_HOOKS,N=reactExports.useCallback(function(Yt,zt){return get$1(P,Yt)||zt},[P]),k=reactExports.useMemo(function(){return typeof b=="function"?b:function(Yt){var zt=Yt&&Yt[b];return zt}},[b]),W=N(["body"]),J=useHover(),q=_slicedToArray$e(J,3),Y=q[0],Z=q[1],ee=q[2],re=useExpand(c,L,k),ae=_slicedToArray$e(re,6),V=ae[0],K=ae[1],te=ae[2],ie=ae[3],ce=ae[4],ge=ae[5],Se=g==null?void 0:g.x,be=reactExports.useState(0),me=_slicedToArray$e(be,2),fe=me[0],se=me[1],oe=useColumns(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},c),V),{},{expandable:!!V.expandedRowRender,columnTitle:V.columnTitle,expandedKeys:te,getRowKey:k,onTriggerExpand:ge,expandIcon:ie,expandIconColumnIndex:V.expandIconColumnIndex,direction:y,scrollWidth:U&&D&&typeof Se=="number"?Se:null,clientWidth:fe}),U?B:null),de=_slicedToArray$e(oe,4),le=de[0],xe=de[1],Ce=de[2],$e=de[3],we=Ce??Se,Ee=reactExports.useMemo(function(){return{columns:le,flattenColumns:xe}},[le,xe]),Ae=reactExports.useRef(),pe=reactExports.useRef(),he=reactExports.useRef(),Ie=reactExports.useRef();reactExports.useImperativeHandle(s,function(){return{nativeElement:Ae.current,scrollTo:function(zt){var cr;if(he.current instanceof HTMLElement){var mr=zt.index,Cr=zt.top,Wr=zt.key;if(validNumberValue(Cr)){var Gr;(Gr=he.current)===null||Gr===void 0||Gr.scrollTo({top:Cr})}else{var Hr,nn=Wr??k(L[mr]);(Hr=he.current.querySelector('[data-row-key="'.concat(nn,'"]')))===null||Hr===void 0||Hr.scrollIntoView()}}else(cr=he.current)!==null&&cr!==void 0&&cr.scrollTo&&he.current.scrollTo(zt)}}});var ye=reactExports.useRef(),Pe=reactExports.useState(!1),Le=_slicedToArray$e(Pe,2),Ne=Le[0],Me=Le[1],Fe=reactExports.useState(!1),_e=_slicedToArray$e(Fe,2),je=_e[0],Ye=_e[1],Te=useLayoutState(new Map),ke=_slicedToArray$e(Te,2),De=ke[0],Re=ke[1],Ge=getColumnsKey(xe),Ve=Ge.map(function(Yt){return De.get(Yt)}),Xe=reactExports.useMemo(function(){return Ve},[Ve.join("_")]),We=useStickyOffsets(Xe,xe,y),ze=g&&validateValue(g.y),Qe=g&&validateValue(we)||!!V.fixed,et=Qe&&xe.some(function(Yt){var zt=Yt.fixed;return zt}),Ze=reactExports.useRef(),qe=useSticky(H,u),Je=qe.isSticky,ot=qe.offsetHeader,nt=qe.offsetSummary,ct=qe.offsetScroll,bt=qe.stickyClassName,st=qe.container,gt=reactExports.useMemo(function(){return C==null?void 0:C(L)},[C,L]),ft=(ze||Je)&&reactExports.isValidElement(gt)&>.type===Summary&>.props.fixed,pt,At,Bt;ze&&(At={overflowY:F?"scroll":"auto",maxHeight:g.y}),Qe&&(pt={overflowX:"auto"},ze||(At={overflowY:"hidden"}),Bt={width:we===!0?"auto":we,minWidth:"100%"});var Ut=reactExports.useCallback(function(Yt,zt){isVisible(Ae.current)&&Re(function(cr){if(cr.get(Yt)!==zt){var mr=new Map(cr);return mr.set(Yt,zt),mr}return cr})},[]),_t=useTimeoutLock(),$t=_slicedToArray$e(_t,2),Ht=$t[0],St=$t[1];function lt(Yt,zt){zt&&(typeof zt=="function"?zt(Yt):zt.scrollLeft!==Yt&&(zt.scrollLeft=Yt,zt.scrollLeft!==Yt&&setTimeout(function(){zt.scrollLeft=Yt},0)))}var at=useEvent(function(Yt){var zt=Yt.currentTarget,cr=Yt.scrollLeft,mr=y==="rtl",Cr=typeof cr=="number"?cr:zt.scrollLeft,Wr=zt||EMPTY_SCROLL_TARGET;if(!St()||St()===Wr){var Gr;Ht(Wr),lt(Cr,pe.current),lt(Cr,he.current),lt(Cr,ye.current),lt(Cr,(Gr=Ze.current)===null||Gr===void 0?void 0:Gr.setScrollLeft)}var Hr=zt||pe.current;if(Hr){var nn=U&&D&&typeof we=="number"?we:Hr.scrollWidth,fn=Hr.clientWidth;if(nn===fn){Me(!1),Ye(!1);return}mr?(Me(-Cr<nn-fn),Ye(-Cr>0)):(Me(Cr>0),Ye(Cr<nn-fn))}}),rt=useEvent(function(Yt){at(Yt),R==null||R(Yt)}),ut=function(){if(Qe&&he.current){var zt;at({currentTarget:getDOM(he.current),scrollLeft:(zt=he.current)===null||zt===void 0?void 0:zt.scrollLeft})}else Me(!1),Ye(!1)},xt=function(zt){var cr,mr=zt.width;(cr=Ze.current)===null||cr===void 0||cr.checkScrollBarVisible();var Cr=Ae.current?Ae.current.offsetWidth:mr;U&&O&&Ae.current&&(Cr=O(Ae.current,Cr)||Cr),Cr!==fe&&(ut(),se(Cr))},Rt=reactExports.useRef(!1);reactExports.useEffect(function(){Rt.current&&ut()},[Qe,A,le.length]),reactExports.useEffect(function(){Rt.current=!0},[]);var It=reactExports.useState(0),ht=_slicedToArray$e(It,2),wt=ht[0],Nt=ht[1],Wt=reactExports.useState(!0),jt=_slicedToArray$e(Wt,2),Qt=jt[0],er=jt[1];reactExports.useEffect(function(){(!D||!U)&&(he.current instanceof Element?Nt(getTargetScrollBarSize(he.current).width):Nt(getTargetScrollBarSize(Ie.current).width)),er(isStyleSupport("position","sticky"))},[]),reactExports.useEffect(function(){U&&M&&(M.body.current=he.current)});var Vt=reactExports.useCallback(function(Yt){return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Header$1,Yt),ft==="top"&&reactExports.createElement(Footer$1,Yt,gt))},[ft,gt]),rr=reactExports.useCallback(function(Yt){return reactExports.createElement(Footer$1,Yt,gt)},[gt]),qt=N(["table"],"table"),tr=reactExports.useMemo(function(){return x||(et?we==="max-content"?"auto":"fixed":ze||Je||xe.some(function(Yt){var zt=Yt.ellipsis;return zt})?"fixed":"auto")},[ze,et,xe,x,Je]),ur,fr={colWidths:Xe,columCount:xe.length,stickyOffsets:We,onHeaderRow:E,fixHeader:ze,scroll:g},Ft=reactExports.useMemo(function(){return F?null:typeof $=="function"?$():$},[F,$]),Mt=reactExports.createElement(Body$1,{data:L,measureColumnWidth:ze||Qe||Je}),sr=reactExports.createElement(ColGroup,{colWidths:xe.map(function(Yt){var zt=Yt.width;return zt}),columns:xe}),Gt=S!=null?reactExports.createElement("caption",{className:"".concat(u,"-caption")},S):void 0,Kt=pickAttrs(c,{data:!0}),gr=pickAttrs(c,{aria:!0});if(ze||Je){var Er;typeof W=="function"?(Er=W(L,{scrollbarSize:wt,ref:he,onScroll:at}),fr.colWidths=xe.map(function(Yt,zt){var cr=Yt.width,mr=zt===xe.length-1?cr-wt:cr;return typeof mr=="number"&&!Number.isNaN(mr)?mr:0})):Er=reactExports.createElement("div",{style:_objectSpread2$1(_objectSpread2$1({},pt),At),onScroll:rt,ref:he,className:classnames("".concat(u,"-body"))},reactExports.createElement(qt,_extends$3({style:_objectSpread2$1(_objectSpread2$1({},Bt),{},{tableLayout:tr})},gr),Gt,sr,Mt,!ft&>&&reactExports.createElement(Footer$1,{stickyOffsets:We,flattenColumns:xe},gt)));var Pr=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({noData:!L.length,maxContentScroll:Qe&&we==="max-content"},fr),Ee),{},{direction:y,stickyClassName:bt,onScroll:at});ur=reactExports.createElement(reactExports.Fragment,null,I!==!1&&reactExports.createElement(FixedHolder$1,_extends$3({},Pr,{stickyTopOffset:ot,className:"".concat(u,"-header"),ref:pe}),Vt),Er,ft&&ft!=="top"&&reactExports.createElement(FixedHolder$1,_extends$3({},Pr,{stickyBottomOffset:nt,className:"".concat(u,"-summary"),ref:ye}),rr),Je&&he.current&&he.current instanceof Element&&reactExports.createElement(StickyScrollBar$1,{ref:Ze,offsetScroll:ct,scrollBodyRef:he,onScroll:at,container:st,direction:y}))}else ur=reactExports.createElement("div",{style:_objectSpread2$1(_objectSpread2$1({},pt),At),className:classnames("".concat(u,"-content")),onScroll:at,ref:he},reactExports.createElement(qt,_extends$3({style:_objectSpread2$1(_objectSpread2$1({},Bt),{},{tableLayout:tr})},gr),Gt,sr,I!==!1&&reactExports.createElement(Header$1,_extends$3({},fr,Ee)),Mt,gt&&reactExports.createElement(Footer$1,{stickyOffsets:We,flattenColumns:xe},gt)));var Br=reactExports.createElement("div",_extends$3({className:classnames(u,d,_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a({},"".concat(u,"-rtl"),y==="rtl"),"".concat(u,"-ping-left"),Ne),"".concat(u,"-ping-right"),je),"".concat(u,"-layout-fixed"),x==="fixed"),"".concat(u,"-fixed-header"),ze),"".concat(u,"-fixed-column"),et),"".concat(u,"-fixed-column-gapped"),et&&$e),"".concat(u,"-scroll-horizontal"),Qe),"".concat(u,"-has-fix-left"),xe[0]&&xe[0].fixed),"".concat(u,"-has-fix-right"),xe[xe.length-1]&&xe[xe.length-1].fixed==="right")),style:v,id:w,ref:Ae},Kt),f&&reactExports.createElement(Panel$2,{className:"".concat(u,"-title")},f(L)),reactExports.createElement("div",{ref:Ie,className:"".concat(u,"-container")},ur),m&&reactExports.createElement(Panel$2,{className:"".concat(u,"-footer")},m(L)));Qe&&(Br=reactExports.createElement(RefResizeObserver,{onResize:xt},Br));var Mr=useFixedInfo(xe,We,y),jr=reactExports.useMemo(function(){return{scrollX:we,prefixCls:u,getComponent:N,scrollbarSize:wt,direction:y,fixedInfoList:Mr,isSticky:Je,supportSticky:Qt,componentWidth:fe,fixHeader:ze,fixColumn:et,horizonScroll:Qe,tableLayout:tr,rowClassName:p,expandedRowClassName:V.expandedRowClassName,expandIcon:ie,expandableType:K,expandRowByClick:V.expandRowByClick,expandedRowRender:V.expandedRowRender,onTriggerExpand:ge,expandIconColumnIndex:V.expandIconColumnIndex,indentSize:V.indentSize,allColumnsFixedLeft:xe.every(function(Yt){return Yt.fixed==="left"}),emptyNode:Ft,columns:le,flattenColumns:xe,onColumnResize:Ut,hoverStartRow:Y,hoverEndRow:Z,onHover:ee,rowExpandable:V.rowExpandable,onRow:_,getRowKey:k,expandedKeys:te,childrenColumnName:ce,rowHoverable:Q}},[we,u,N,wt,y,Mr,Je,Qt,fe,ze,et,Qe,tr,p,V.expandedRowClassName,ie,K,V.expandRowByClick,V.expandedRowRender,ge,V.expandIconColumnIndex,V.indentSize,Ft,le,xe,Ut,Y,Z,ee,V.rowExpandable,_,k,te,ce,Q]);return reactExports.createElement(TableContext.Provider,{value:jr},Br)}var RefTable=reactExports.forwardRef(Table$1);function genTable(a){return makeImmutable(RefTable,a)}var ImmutableTable=genTable();ImmutableTable.EXPAND_COLUMN=EXPAND_COLUMN,ImmutableTable.INTERNAL_HOOKS=INTERNAL_HOOKS,ImmutableTable.Column=Column$1,ImmutableTable.ColumnGroup=ColumnGroup$1,ImmutableTable.Summary=FooterComponents;var StaticContext=createContext(null),GridContext=createContext(null);function getColumnWidth(a,s,c){var u=s||1;return c[a+u]-(c[a]||0)}function VirtualCell$1(a){var s=a.rowInfo,c=a.column,u=a.colIndex,d=a.indent,p=a.index,v=a.component,A=a.renderIndex,b=a.record,g=a.style,x=a.className,y=a.inverse,f=a.getHeight,m=c.render,C=c.dataIndex,S=c.className,w=c.width,I=useContext(GridContext,["columnsOffset"]),P=I.columnsOffset,$=getCellProps(s,c,u,d,p),_=$.key,E=$.fixedInfo,R=$.appendCellNode,T=$.additionalCellProps,B=T.style,M=T.colSpan,D=M===void 0?1:M,O=T.rowSpan,H=O===void 0?1:O,j=u-1,Q=getColumnWidth(j,D,P),L=D>1?w-Q:0,F=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},B),g),{},{flex:"0 0 ".concat(Q,"px"),width:"".concat(Q,"px"),marginRight:L,pointerEvents:"auto"}),U=reactExports.useMemo(function(){return y?H<=1:D===0||H===0||H>1},[H,D,y]);U?F.visibility="hidden":y&&(F.height=f==null?void 0:f(H));var N=U?function(){return null}:m,k={};return(H===0||D===0)&&(k.rowSpan=1,k.colSpan=1),reactExports.createElement(Cell$1,_extends$3({className:classnames(S,x),ellipsis:c.ellipsis,align:c.align,scope:c.rowScope,component:v,prefixCls:s.prefixCls,key:_,record:b,index:p,renderIndex:A,dataIndex:C,render:N,shouldCellUpdate:c.shouldCellUpdate},E,{appendNode:R,additionalProps:_objectSpread2$1(_objectSpread2$1({},T),{},{style:F},k)}))}var _excluded$7=["data","index","className","rowKey","style","extra","getHeight"],BodyLine=reactExports.forwardRef(function(a,s){var c=a.data,u=a.index,d=a.className,p=a.rowKey,v=a.style,A=a.extra,b=a.getHeight,g=_objectWithoutProperties$2(a,_excluded$7),x=c.record,y=c.indent,f=c.index,m=useContext(TableContext,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),C=m.scrollX,S=m.flattenColumns,w=m.prefixCls,I=m.fixColumn,P=m.componentWidth,$=useContext(StaticContext,["getComponent"]),_=$.getComponent,E=useRowInfo(x,p,u,y),R=_(["body","row"],"div"),T=_(["body","cell"],"div"),B=E.rowSupportExpand,M=E.expanded,D=E.rowProps,O=E.expandedRowRender,H=E.expandedRowClassName,j;if(B&&M){var Q=O(x,u,y+1,M),L=computedExpandedClassName(H,x,u,y),F={};I&&(F={style:_defineProperty$a({},"--virtual-width","".concat(P,"px"))});var U="".concat(w,"-expanded-row-cell");j=reactExports.createElement(R,{className:classnames("".concat(w,"-expanded-row"),"".concat(w,"-expanded-row-level-").concat(y+1),L)},reactExports.createElement(Cell$1,{component:T,prefixCls:w,className:classnames(U,_defineProperty$a({},"".concat(U,"-fixed"),I)),additionalProps:F},Q))}var N=_objectSpread2$1(_objectSpread2$1({},v),{},{width:C});A&&(N.position="absolute",N.pointerEvents="none");var k=reactExports.createElement(R,_extends$3({},D,g,{"data-row-key":p,ref:B?null:s,className:classnames(d,"".concat(w,"-row"),D==null?void 0:D.className,_defineProperty$a({},"".concat(w,"-row-extra"),A)),style:_objectSpread2$1(_objectSpread2$1({},N),D==null?void 0:D.style)}),S.map(function(W,J){return reactExports.createElement(VirtualCell$1,{key:J,component:T,rowInfo:E,column:W,colIndex:J,indent:y,index:u,renderIndex:f,record:x,inverse:A,getHeight:b})}));return B?reactExports.createElement("div",{ref:s},k,j):k}),ResponseBodyLine=responseImmutable(BodyLine),Grid=reactExports.forwardRef(function(a,s){var c=a.data,u=a.onScroll,d=useContext(TableContext,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),p=d.flattenColumns,v=d.onColumnResize,A=d.getRowKey,b=d.expandedKeys,g=d.prefixCls,x=d.childrenColumnName,y=d.scrollX,f=d.direction,m=useContext(StaticContext),C=m.sticky,S=m.scrollY,w=m.listItemHeight,I=m.getComponent,P=m.onScroll,$=reactExports.useRef(),_=useFlattenRecords(c,x,b,A),E=reactExports.useMemo(function(){var j=0;return p.map(function(Q){var L=Q.width,F=Q.key;return j+=L,[F,L,j]})},[p]),R=reactExports.useMemo(function(){return E.map(function(j){return j[2]})},[E]);reactExports.useEffect(function(){E.forEach(function(j){var Q=_slicedToArray$e(j,2),L=Q[0],F=Q[1];v(L,F)})},[E]),reactExports.useImperativeHandle(s,function(){var j,Q={scrollTo:function(F){var U;(U=$.current)===null||U===void 0||U.scrollTo(F)},nativeElement:(j=$.current)===null||j===void 0?void 0:j.nativeElement};return Object.defineProperty(Q,"scrollLeft",{get:function(){var F;return((F=$.current)===null||F===void 0?void 0:F.getScrollInfo().x)||0},set:function(F){var U;(U=$.current)===null||U===void 0||U.scrollTo({left:F})}}),Q});var T=function(Q,L){var F,U=(F=_[L])===null||F===void 0?void 0:F.record,N=Q.onCell;if(N){var k,W=N(U,L);return(k=W==null?void 0:W.rowSpan)!==null&&k!==void 0?k:1}return 1},B=function(Q){var L=Q.start,F=Q.end,U=Q.getSize,N=Q.offsetY;if(F<0)return null;for(var k=p.filter(function(ie){return T(ie,L)===0}),W=L,J=function(ce){if(k=k.filter(function(ge){return T(ge,ce)===0}),!k.length)return W=ce,1},q=L;q>=0&&!J(q);q-=1);for(var Y=p.filter(function(ie){return T(ie,F)!==1}),Z=F,ee=function(ce){if(Y=Y.filter(function(ge){return T(ge,ce)!==1}),!Y.length)return Z=Math.max(ce-1,F),1},re=F;re<_.length&&!ee(re);re+=1);for(var ae=[],V=function(ce){var ge=_[ce];if(!ge)return 1;p.some(function(Se){return T(Se,ce)>1})&&ae.push(ce)},K=W;K<=Z;K+=1)V(K);var te=ae.map(function(ie){var ce=_[ie],ge=A(ce.record,ie),Se=function(fe){var se=ie+fe-1,oe=A(_[se].record,se),de=U(ge,oe);return de.bottom-de.top},be=U(ge);return reactExports.createElement(ResponseBodyLine,{key:ie,data:ce,rowKey:ge,index:ie,style:{top:-N+be.top},extra:!0,getHeight:Se})});return te},M=reactExports.useMemo(function(){return{columnsOffset:R}},[R]),D="".concat(g,"-tbody"),O=I(["body","wrapper"]),H={};return C&&(H.position="sticky",H.bottom=0,_typeof$h(C)==="object"&&C.offsetScroll&&(H.bottom=C.offsetScroll)),reactExports.createElement(GridContext.Provider,{value:M},reactExports.createElement(List,{fullHeight:!1,ref:$,prefixCls:"".concat(D,"-virtual"),styles:{horizontalScrollBar:H},className:D,height:S,itemHeight:w||24,data:_,itemKey:function(Q){return A(Q.record)},component:O,scrollWidth:y,direction:f,onVirtualScroll:function(Q){var L,F=Q.x;u({currentTarget:(L=$.current)===null||L===void 0?void 0:L.nativeElement,scrollLeft:F})},onScroll:P,extraRender:B},function(j,Q,L){var F=A(j.record,Q);return reactExports.createElement(ResponseBodyLine,{data:j,rowKey:F,index:Q,style:L.style})}))}),ResponseGrid=responseImmutable(Grid),renderBody=function a(s,c){var u=c.ref,d=c.onScroll;return reactExports.createElement(ResponseGrid,{ref:u,data:s,onScroll:d})};function VirtualTable(a,s){var c=a.data,u=a.columns,d=a.scroll,p=a.sticky,v=a.prefixCls,A=v===void 0?DEFAULT_PREFIX:v,b=a.className,g=a.listItemHeight,x=a.components,y=a.onScroll,f=d||{},m=f.x,C=f.y;typeof m!="number"&&(m=1),typeof C!="number"&&(C=500);var S=useEvent(function(P,$){return get$1(x,P)||$}),w=useEvent(y),I=reactExports.useMemo(function(){return{sticky:p,scrollY:C,listItemHeight:g,getComponent:S,onScroll:w}},[p,C,g,S,w]);return reactExports.createElement(StaticContext.Provider,{value:I},reactExports.createElement(ImmutableTable,_extends$3({},a,{className:classnames(b,"".concat(A,"-virtual")),scroll:_objectSpread2$1(_objectSpread2$1({},d),{},{x:m}),components:_objectSpread2$1(_objectSpread2$1({},x),{},{body:c!=null&&c.length?renderBody:void 0}),columns:u,internalHooks:INTERNAL_HOOKS,tailor:!0,ref:s})))}var RefVirtualTable=reactExports.forwardRef(VirtualTable);function genVirtualTable(a){return makeImmutable(RefVirtualTable,a)}genVirtualTable();const Column=a=>null,ColumnGroup=a=>null;var TreeContext=reactExports.createContext(null),UnstableContext=reactExports.createContext({}),Indent=function a(s){for(var c=s.prefixCls,u=s.level,d=s.isStart,p=s.isEnd,v="".concat(c,"-indent-unit"),A=[],b=0;b<u;b+=1)A.push(reactExports.createElement("span",{key:b,className:classnames(v,_defineProperty$a(_defineProperty$a({},"".concat(v,"-start"),d[b]),"".concat(v,"-end"),p[b]))}));return reactExports.createElement("span",{"aria-hidden":"true",className:"".concat(c,"-indent")},A)};const Indent$1=reactExports.memo(Indent);var _excluded$6=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ICON_OPEN="open",ICON_CLOSE="close",defaultTitle="---",TreeNode$1=function a(s){var c,u,d,p=s.eventKey,v=s.className,A=s.style,b=s.dragOver,g=s.dragOverGapTop,x=s.dragOverGapBottom,y=s.isLeaf,f=s.isStart,m=s.isEnd,C=s.expanded,S=s.selected,w=s.checked,I=s.halfChecked,P=s.loading,$=s.domRef,_=s.active,E=s.data,R=s.onMouseMove,T=s.selectable,B=_objectWithoutProperties$2(s,_excluded$6),M=React.useContext(TreeContext),D=React.useContext(UnstableContext),O=React.useRef(null),H=React.useState(!1),j=_slicedToArray$e(H,2),Q=j[0],L=j[1],F=!!(M.disabled||s.disabled||(c=D.nodeDisabled)!==null&&c!==void 0&&c.call(D,E)),U=React.useMemo(function(){return!M.checkable||s.checkable===!1?!1:M.checkable},[M.checkable,s.checkable]),N=function(Pe){F||M.onNodeSelect(Pe,convertNodePropsToEventData(s))},k=function(Pe){F||!U||s.disableCheckbox||M.onNodeCheck(Pe,convertNodePropsToEventData(s),!w)},W=React.useMemo(function(){return typeof T=="boolean"?T:M.selectable},[T,M.selectable]),J=function(Pe){M.onNodeClick(Pe,convertNodePropsToEventData(s)),W?N(Pe):k(Pe)},q=function(Pe){M.onNodeDoubleClick(Pe,convertNodePropsToEventData(s))},Y=function(Pe){M.onNodeMouseEnter(Pe,convertNodePropsToEventData(s))},Z=function(Pe){M.onNodeMouseLeave(Pe,convertNodePropsToEventData(s))},ee=function(Pe){M.onNodeContextMenu(Pe,convertNodePropsToEventData(s))},re=React.useMemo(function(){return!!(M.draggable&&(!M.draggable.nodeDraggable||M.draggable.nodeDraggable(E)))},[M.draggable,E]),ae=function(Pe){Pe.stopPropagation(),L(!0),M.onNodeDragStart(Pe,s);try{Pe.dataTransfer.setData("text/plain","")}catch{}},V=function(Pe){Pe.preventDefault(),Pe.stopPropagation(),M.onNodeDragEnter(Pe,s)},K=function(Pe){Pe.preventDefault(),Pe.stopPropagation(),M.onNodeDragOver(Pe,s)},te=function(Pe){Pe.stopPropagation(),M.onNodeDragLeave(Pe,s)},ie=function(Pe){Pe.stopPropagation(),L(!1),M.onNodeDragEnd(Pe,s)},ce=function(Pe){Pe.preventDefault(),Pe.stopPropagation(),L(!1),M.onNodeDrop(Pe,s)},ge=function(Pe){P||M.onNodeExpand(Pe,convertNodePropsToEventData(s))},Se=React.useMemo(function(){var ye=getEntity(M.keyEntities,p)||{},Pe=ye.children;return!!(Pe||[]).length},[M.keyEntities,p]),be=React.useMemo(function(){return y===!1?!1:y||!M.loadData&&!Se||M.loadData&&s.loaded&&!Se},[y,M.loadData,Se,s.loaded]);React.useEffect(function(){P||typeof M.loadData=="function"&&C&&!be&&!s.loaded&&M.onNodeLoad(convertNodePropsToEventData(s))},[P,M.loadData,M.onNodeLoad,C,be,s]);var me=React.useMemo(function(){var ye;return(ye=M.draggable)!==null&&ye!==void 0&&ye.icon?React.createElement("span",{className:"".concat(M.prefixCls,"-draggable-icon")},M.draggable.icon):null},[M.draggable]),fe=function(Pe){var Le=s.switcherIcon||M.switcherIcon;return typeof Le=="function"?Le(_objectSpread2$1(_objectSpread2$1({},s),{},{isLeaf:Pe})):Le},se=function(){if(be){var Pe=fe(!0);return Pe!==!1?React.createElement("span",{className:classnames("".concat(M.prefixCls,"-switcher"),"".concat(M.prefixCls,"-switcher-noop"))},Pe):null}var Le=fe(!1);return Le!==!1?React.createElement("span",{onClick:ge,className:classnames("".concat(M.prefixCls,"-switcher"),"".concat(M.prefixCls,"-switcher_").concat(C?ICON_OPEN:ICON_CLOSE))},Le):null},oe=React.useMemo(function(){if(!U)return null;var ye=typeof U!="boolean"?U:null;return React.createElement("span",{className:classnames("".concat(M.prefixCls,"-checkbox"),_defineProperty$a(_defineProperty$a(_defineProperty$a({},"".concat(M.prefixCls,"-checkbox-checked"),w),"".concat(M.prefixCls,"-checkbox-indeterminate"),!w&&I),"".concat(M.prefixCls,"-checkbox-disabled"),F||s.disableCheckbox)),onClick:k,role:"checkbox","aria-checked":I?"mixed":w,"aria-disabled":F||s.disableCheckbox,"aria-label":"Select ".concat(typeof s.title=="string"?s.title:"tree node")},ye)},[U,w,I,F,s.disableCheckbox,s.title]),de=React.useMemo(function(){return be?null:C?ICON_OPEN:ICON_CLOSE},[be,C]),le=React.useMemo(function(){return React.createElement("span",{className:classnames("".concat(M.prefixCls,"-iconEle"),"".concat(M.prefixCls,"-icon__").concat(de||"docu"),_defineProperty$a({},"".concat(M.prefixCls,"-icon_loading"),P))})},[M.prefixCls,de,P]),xe=React.useMemo(function(){var ye=!!M.draggable,Pe=!s.disabled&&ye&&M.dragOverNodeKey===p;return Pe?M.dropIndicatorRender({dropPosition:M.dropPosition,dropLevelOffset:M.dropLevelOffset,indent:M.indent,prefixCls:M.prefixCls,direction:M.direction}):null},[M.dropPosition,M.dropLevelOffset,M.indent,M.prefixCls,M.direction,M.draggable,M.dragOverNodeKey,M.dropIndicatorRender]),Ce=React.useMemo(function(){var ye=s.title,Pe=ye===void 0?defaultTitle:ye,Le="".concat(M.prefixCls,"-node-content-wrapper"),Ne;if(M.showIcon){var Me=s.icon||M.icon;Ne=Me?React.createElement("span",{className:classnames("".concat(M.prefixCls,"-iconEle"),"".concat(M.prefixCls,"-icon__customize"))},typeof Me=="function"?Me(s):Me):le}else M.loadData&&P&&(Ne=le);var Fe;return typeof Pe=="function"?Fe=Pe(E):M.titleRender?Fe=M.titleRender(E):Fe=Pe,React.createElement("span",{ref:O,title:typeof Pe=="string"?Pe:"",className:classnames(Le,"".concat(Le,"-").concat(de||"normal"),_defineProperty$a({},"".concat(M.prefixCls,"-node-selected"),!F&&(S||Q))),onMouseEnter:Y,onMouseLeave:Z,onContextMenu:ee,onClick:J,onDoubleClick:q},Ne,React.createElement("span",{className:"".concat(M.prefixCls,"-title")},Fe),xe)},[M.prefixCls,M.showIcon,s,M.icon,le,M.titleRender,E,de,Y,Z,ee,J,q]),$e=pickAttrs(B,{aria:!0,data:!0}),we=getEntity(M.keyEntities,p)||{},Ee=we.level,Ae=m[m.length-1],pe=!F&&re,he=M.draggingNodeKey===p,Ie=T!==void 0?{"aria-selected":!!T}:void 0;return React.createElement("div",_extends$3({ref:$,role:"treeitem","aria-expanded":y?void 0:C,className:classnames(v,"".concat(M.prefixCls,"-treenode"),(d={},_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(d,"".concat(M.prefixCls,"-treenode-disabled"),F),"".concat(M.prefixCls,"-treenode-switcher-").concat(C?"open":"close"),!y),"".concat(M.prefixCls,"-treenode-checkbox-checked"),w),"".concat(M.prefixCls,"-treenode-checkbox-indeterminate"),I),"".concat(M.prefixCls,"-treenode-selected"),S),"".concat(M.prefixCls,"-treenode-loading"),P),"".concat(M.prefixCls,"-treenode-active"),_),"".concat(M.prefixCls,"-treenode-leaf-last"),Ae),"".concat(M.prefixCls,"-treenode-draggable"),re),"dragging",he),_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(_defineProperty$a(d,"drop-target",M.dropTargetKey===p),"drop-container",M.dropContainerKey===p),"drag-over",!F&&b),"drag-over-gap-top",!F&&g),"drag-over-gap-bottom",!F&&x),"filter-node",(u=M.filterTreeNode)===null||u===void 0?void 0:u.call(M,convertNodePropsToEventData(s))),"".concat(M.prefixCls,"-treenode-leaf"),be))),style:A,draggable:pe,onDragStart:pe?ae:void 0,onDragEnter:re?V:void 0,onDragOver:re?K:void 0,onDragLeave:re?te:void 0,onDrop:re?ce:void 0,onDragEnd:re?ie:void 0,onMouseMove:R},Ie,$e),React.createElement(Indent$1,{prefixCls:M.prefixCls,level:Ee,isStart:f,isEnd:m}),me,se(),oe,Ce)};TreeNode$1.isTreeNode=1;function arrDel(a,s){if(!a)return[];var c=a.slice(),u=c.indexOf(s);return u>=0&&c.splice(u,1),c}function arrAdd(a,s){var c=(a||[]).slice();return c.indexOf(s)===-1&&c.push(s),c}function posToArr(a){return a.split("-")}function getDragChildrenKeys(a,s){var c=[],u=getEntity(s,a);function d(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];p.forEach(function(v){var A=v.key,b=v.children;c.push(A),d(b)})}return d(u.children),c}function isLastChild(a){if(a.parent){var s=posToArr(a.pos);return Number(s[s.length-1])===a.parent.children.length-1}return!1}function isFirstChild(a){var s=posToArr(a.pos);return Number(s[s.length-1])===0}function calcDropPosition(a,s,c,u,d,p,v,A,b,g){var x,y=a.clientX,f=a.clientY,m=a.target.getBoundingClientRect(),C=m.top,S=m.height,w=(g==="rtl"?-1:1)*(((d==null?void 0:d.x)||0)-y),I=(w-12)/u,P=b.filter(function(F){var U;return(U=A[F])===null||U===void 0||(U=U.children)===null||U===void 0?void 0:U.length}),$=getEntity(A,c.eventKey);if(f<C+S/2){var _=v.findIndex(function(F){return F.key===$.key}),E=_<=0?0:_-1,R=v[E].key;$=getEntity(A,R)}var T=$.key,B=$,M=$.key,D=0,O=0;if(!P.includes(T))for(var H=0;H<I&&isLastChild($);H+=1)$=$.parent,O+=1;var j=s.data,Q=$.node,L=!0;return isFirstChild($)&&$.level===0&&f<C+S/2&&p({dragNode:j,dropNode:Q,dropPosition:-1})&&$.key===c.eventKey?D=-1:(B.children||[]).length&&P.includes(M)?p({dragNode:j,dropNode:Q,dropPosition:0})?D=0:L=!1:O===0?I>-1.5?p({dragNode:j,dropNode:Q,dropPosition:1})?D=1:L=!1:p({dragNode:j,dropNode:Q,dropPosition:0})?D=0:p({dragNode:j,dropNode:Q,dropPosition:1})?D=1:L=!1:p({dragNode:j,dropNode:Q,dropPosition:1})?D=1:L=!1,{dropPosition:D,dropLevelOffset:O,dropTargetKey:$.key,dropTargetPos:$.pos,dragOverNodeKey:M,dropContainerKey:D===0?null:((x=$.parent)===null||x===void 0?void 0:x.key)||null,dropAllowed:L}}function calcSelectedKeys(a,s){if(a){var c=s.multiple;return c?a.slice():a.length?[a[0]]:a}}function parseCheckedKeys(a){if(!a)return null;var s;if(Array.isArray(a))s={checkedKeys:a,halfCheckedKeys:void 0};else if(_typeof$h(a)==="object")s={checkedKeys:a.checked||void 0,halfCheckedKeys:a.halfChecked||void 0};else return warningOnce(!1,"`checkedKeys` is not an array or an object"),null;return s}function conductExpandParent(a,s){var c=new Set;function u(d){if(!c.has(d)){var p=getEntity(s,d);if(p){c.add(d);var v=p.parent,A=p.node;A.disabled||v&&u(v.key)}}}return(a||[]).forEach(function(d){u(d)}),_toConsumableArray$e(c)}function useMultipleSelect(a){const[s,c]=reactExports.useState(null);return[reactExports.useCallback((p,v,A)=>{const b=s??p,g=Math.min(b||0,p),x=Math.max(b||0,p),y=v.slice(g,x+1).map(C=>a(C)),f=y.some(C=>!A.has(C)),m=[];return y.forEach(C=>{f?(A.has(C)||m.push(C),A.add(C)):(A.delete(C),m.push(C))}),c(f?x:null),m},[s]),p=>{c(p)}]}const SELECTION_COLUMN={},SELECTION_ALL="SELECT_ALL",SELECTION_INVERT="SELECT_INVERT",SELECTION_NONE="SELECT_NONE",EMPTY_LIST$1=[],flattenData=(a,s)=>{let c=[];return(s||[]).forEach(u=>{c.push(u),u&&typeof u=="object"&&a in u&&(c=[].concat(_toConsumableArray$e(c),_toConsumableArray$e(flattenData(a,u[a]))))}),c},useSelection=(a,s)=>{const{preserveSelectedRowKeys:c,selectedRowKeys:u,defaultSelectedRowKeys:d,getCheckboxProps:p,onChange:v,onSelect:A,onSelectAll:b,onSelectInvert:g,onSelectNone:x,onSelectMultiple:y,columnWidth:f,type:m,selections:C,fixed:S,renderCell:w,hideSelectAll:I,checkStrictly:P=!0}=s||{},{prefixCls:$,data:_,pageData:E,getRecordByKey:R,getRowKey:T,expandType:B,childrenColumnName:M,locale:D,getPopupContainer:O}=a,H=devUseWarning(),[j,Q]=useMultipleSelect(ie=>ie),[L,F]=useMergedState(u||d||EMPTY_LIST$1,{value:u}),U=reactExports.useRef(new Map),N=reactExports.useCallback(ie=>{if(c){const ce=new Map;ie.forEach(ge=>{let Se=R(ge);!Se&&U.current.has(ge)&&(Se=U.current.get(ge)),ce.set(ge,Se)}),U.current=ce}},[R,c]);reactExports.useEffect(()=>{N(L)},[L]);const k=reactExports.useMemo(()=>flattenData(M,E),[M,E]),{keyEntities:W}=reactExports.useMemo(()=>{if(P)return{keyEntities:null};let ie=_;if(c){const ce=new Set(k.map((Se,be)=>T(Se,be))),ge=Array.from(U.current).reduce((Se,be)=>{let[me,fe]=be;return ce.has(me)?Se:Se.concat(fe)},[]);ie=[].concat(_toConsumableArray$e(ie),_toConsumableArray$e(ge))}return convertDataToEntities(ie,{externalGetKey:T,childrenPropName:M})},[_,T,P,M,c,k]),J=reactExports.useMemo(()=>{const ie=new Map;return k.forEach((ce,ge)=>{const Se=T(ce,ge),be=(p?p(ce):null)||{};ie.set(Se,be)}),ie},[k,T,p]),q=reactExports.useCallback(ie=>{const ce=T(ie);let ge;return J.has(ce)?ge=J.get(T(ie)):ge=p?p(ie):void 0,!!(ge!=null&&ge.disabled)},[J,T]),[Y,Z]=reactExports.useMemo(()=>{if(P)return[L||[],[]];const{checkedKeys:ie,halfCheckedKeys:ce}=conductCheck(L,!0,W,q);return[ie||[],ce]},[L,P,W,q]),ee=reactExports.useMemo(()=>{const ie=m==="radio"?Y.slice(0,1):Y;return new Set(ie)},[Y,m]),re=reactExports.useMemo(()=>m==="radio"?new Set:new Set(Z),[Z,m]);reactExports.useEffect(()=>{s||F(EMPTY_LIST$1)},[!!s]);const ae=reactExports.useCallback((ie,ce)=>{let ge,Se;N(ie),c?(ge=ie,Se=ie.map(be=>U.current.get(be))):(ge=[],Se=[],ie.forEach(be=>{const me=R(be);me!==void 0&&(ge.push(be),Se.push(me))})),F(ge),v==null||v(ge,Se,{type:ce})},[F,R,v,c]),V=reactExports.useCallback((ie,ce,ge,Se)=>{if(A){const be=ge.map(me=>R(me));A(R(ie),ce,be,Se)}ae(ge,"single")},[A,R,ae]),K=reactExports.useMemo(()=>!C||I?null:(C===!0?[SELECTION_ALL,SELECTION_INVERT,SELECTION_NONE]:C).map(ce=>ce===SELECTION_ALL?{key:"all",text:D.selectionAll,onSelect(){ae(_.map((ge,Se)=>T(ge,Se)).filter(ge=>{const Se=J.get(ge);return!(Se!=null&&Se.disabled)||ee.has(ge)}),"all")}}:ce===SELECTION_INVERT?{key:"invert",text:D.selectInvert,onSelect(){const ge=new Set(ee);E.forEach((be,me)=>{const fe=T(be,me),se=J.get(fe);se!=null&&se.disabled||(ge.has(fe)?ge.delete(fe):ge.add(fe))});const Se=Array.from(ge);g&&(H.deprecated(!1,"onSelectInvert","onChange"),g(Se)),ae(Se,"invert")}}:ce===SELECTION_NONE?{key:"none",text:D.selectNone,onSelect(){x==null||x(),ae(Array.from(ee).filter(ge=>{const Se=J.get(ge);return Se==null?void 0:Se.disabled}),"none")}}:ce).map(ce=>Object.assign(Object.assign({},ce),{onSelect:function(){for(var ge,Se,be=arguments.length,me=new Array(be),fe=0;fe<be;fe++)me[fe]=arguments[fe];(Se=ce.onSelect)===null||Se===void 0||(ge=Se).call.apply(ge,[ce].concat(me)),Q(null)}})),[C,ee,E,T,g,ae]);return[reactExports.useCallback(ie=>{var ce;if(!s)return ie.filter(Ie=>Ie!==SELECTION_COLUMN);let ge=_toConsumableArray$e(ie);const Se=new Set(ee),be=k.map(T).filter(Ie=>!J.get(Ie).disabled),me=be.every(Ie=>Se.has(Ie)),fe=be.some(Ie=>Se.has(Ie)),se=()=>{const Ie=[];me?be.forEach(Pe=>{Se.delete(Pe),Ie.push(Pe)}):be.forEach(Pe=>{Se.has(Pe)||(Se.add(Pe),Ie.push(Pe))});const ye=Array.from(Se);b==null||b(!me,ye.map(Pe=>R(Pe)),Ie.map(Pe=>R(Pe))),ae(ye,"all"),Q(null)};let oe,de;if(m!=="radio"){let Ie;if(K){const Me={getPopupContainer:O,items:K.map((Fe,_e)=>{const{key:je,text:Ye,onSelect:Te}=Fe;return{key:je??_e,onClick:()=>{Te==null||Te(be)},label:Ye}})};Ie=reactExports.createElement("div",{className:`${$}-selection-extra`},reactExports.createElement(Dropdown,{menu:Me,getPopupContainer:O},reactExports.createElement("span",null,reactExports.createElement(RefIcon$C,null))))}const ye=k.map((Me,Fe)=>{const _e=T(Me,Fe),je=J.get(_e)||{};return Object.assign({checked:Se.has(_e)},je)}).filter(Me=>{let{disabled:Fe}=Me;return Fe}),Pe=!!ye.length&&ye.length===k.length,Le=Pe&&ye.every(Me=>{let{checked:Fe}=Me;return Fe}),Ne=Pe&&ye.some(Me=>{let{checked:Fe}=Me;return Fe});de=reactExports.createElement(Checkbox$1,{checked:Pe?Le:!!k.length&&me,indeterminate:Pe?!Le&&Ne:!me&&fe,onChange:se,disabled:k.length===0||Pe,"aria-label":Ie?"Custom selection":"Select all",skipGroup:!0}),oe=!I&&reactExports.createElement("div",{className:`${$}-selection`},de,Ie)}let le;m==="radio"?le=(Ie,ye,Pe)=>{const Le=T(ye,Pe),Ne=Se.has(Le),Me=J.get(Le);return{node:reactExports.createElement(Radio$1,Object.assign({},Me,{checked:Ne,onClick:Fe=>{var _e;Fe.stopPropagation(),(_e=Me==null?void 0:Me.onClick)===null||_e===void 0||_e.call(Me,Fe)},onChange:Fe=>{var _e;Se.has(Le)||V(Le,!0,[Le],Fe.nativeEvent),(_e=Me==null?void 0:Me.onChange)===null||_e===void 0||_e.call(Me,Fe)}})),checked:Ne}}:le=(Ie,ye,Pe)=>{var Le;const Ne=T(ye,Pe),Me=Se.has(Ne),Fe=re.has(Ne),_e=J.get(Ne);let je;return B==="nest"?je=Fe:je=(Le=_e==null?void 0:_e.indeterminate)!==null&&Le!==void 0?Le:Fe,{node:reactExports.createElement(Checkbox$1,Object.assign({},_e,{indeterminate:je,checked:Me,skipGroup:!0,onClick:Ye=>{var Te;Ye.stopPropagation(),(Te=_e==null?void 0:_e.onClick)===null||Te===void 0||Te.call(_e,Ye)},onChange:Ye=>{var Te;const{nativeEvent:ke}=Ye,{shiftKey:De}=ke,Re=be.findIndex(Ve=>Ve===Ne),Ge=Y.some(Ve=>be.includes(Ve));if(De&&P&&Ge){const Ve=j(Re,be,Se),Xe=Array.from(Se);y==null||y(!Me,Xe.map(We=>R(We)),Ve.map(We=>R(We))),ae(Xe,"multiple")}else{const Ve=Y;if(P){const Xe=Me?arrDel(Ve,Ne):arrAdd(Ve,Ne);V(Ne,!Me,Xe,ke)}else{const Xe=conductCheck([].concat(_toConsumableArray$e(Ve),[Ne]),!0,W,q),{checkedKeys:We,halfCheckedKeys:ze}=Xe;let Qe=We;if(Me){const et=new Set(We);et.delete(Ne),Qe=conductCheck(Array.from(et),{halfCheckedKeys:ze},W,q).checkedKeys}V(Ne,!Me,Qe,ke)}}Q(Me?null:Re),(Te=_e==null?void 0:_e.onChange)===null||Te===void 0||Te.call(_e,Ye)}})),checked:Me}};const xe=(Ie,ye,Pe)=>{const{node:Le,checked:Ne}=le(Ie,ye,Pe);return w?w(Ne,ye,Pe,Le):Le};if(!ge.includes(SELECTION_COLUMN))if(ge.findIndex(Ie=>{var ye;return((ye=Ie[INTERNAL_COL_DEFINE])===null||ye===void 0?void 0:ye.columnType)==="EXPAND_COLUMN"})===0){const[Ie,...ye]=ge;ge=[Ie,SELECTION_COLUMN].concat(_toConsumableArray$e(ye))}else ge=[SELECTION_COLUMN].concat(_toConsumableArray$e(ge));const Ce=ge.indexOf(SELECTION_COLUMN);ge=ge.filter((Ie,ye)=>Ie!==SELECTION_COLUMN||ye===Ce);const $e=ge[Ce-1],we=ge[Ce+1];let Ee=S;Ee===void 0&&((we==null?void 0:we.fixed)!==void 0?Ee=we.fixed:($e==null?void 0:$e.fixed)!==void 0&&(Ee=$e.fixed)),Ee&&$e&&((ce=$e[INTERNAL_COL_DEFINE])===null||ce===void 0?void 0:ce.columnType)==="EXPAND_COLUMN"&&$e.fixed===void 0&&($e.fixed=Ee);const Ae=classnames(`${$}-selection-col`,{[`${$}-selection-col-with-dropdown`]:C&&m==="checkbox"}),pe=()=>s!=null&&s.columnTitle?typeof s.columnTitle=="function"?s.columnTitle(de):s.columnTitle:oe,he={fixed:Ee,width:f,className:`${$}-selection-column`,title:pe(),render:xe,onCell:s.onCell,[INTERNAL_COL_DEFINE]:{className:Ae}};return ge.map(Ie=>Ie===SELECTION_COLUMN?he:Ie)},[T,k,s,Y,ee,re,f,K,B,J,y,V,q]),ee]};function fillProxy(a,s){return a._antProxy=a._antProxy||{},Object.keys(s).forEach(c=>{if(!(c in a._antProxy)){const u=a[c];a._antProxy[c]=u,a[c]=s[c]}}),a}function useProxyImperativeHandle(a,s){return reactExports.useImperativeHandle(a,()=>{const c=s(),{nativeElement:u}=c;return typeof Proxy<"u"?new Proxy(u,{get(d,p){return c[p]?c[p]:Reflect.get(d,p)}}):fillProxy(u,c)})}function renderExpandIcon(a){return s=>{const{prefixCls:c,onExpand:u,record:d,expanded:p,expandable:v}=s,A=`${c}-row-expand-icon`;return reactExports.createElement("button",{type:"button",onClick:b=>{u(d,b),b.stopPropagation()},className:classnames(A,{[`${A}-spaced`]:!v,[`${A}-expanded`]:v&&p,[`${A}-collapsed`]:v&&!p}),"aria-label":p?a.collapse:a.expand,"aria-expanded":p})}}function useContainerWidth(a){return(c,u)=>{const d=c.querySelector(`.${a}-container`);let p=u;if(d){const v=getComputedStyle(d),A=parseInt(v.borderLeftWidth,10),b=parseInt(v.borderRightWidth,10);p=u-A-b}return p}}const getColumnKey=(a,s)=>"key"in a&&a.key!==void 0&&a.key!==null?a.key:a.dataIndex?Array.isArray(a.dataIndex)?a.dataIndex.join("."):a.dataIndex:s;function getColumnPos(a,s){return s?`${s}-${a}`:`${a}`}const renderColumnTitle=(a,s)=>typeof a=="function"?a(s):a,safeColumnTitle=(a,s)=>{const c=renderColumnTitle(a,s);return Object.prototype.toString.call(c)==="[object Object]"?"":c};function useSyncState(a){const s=reactExports.useRef(a),c=useForceUpdate();return[()=>s.current,u=>{s.current=u,c()}]}var DropIndicator=function a(s){var c=s.dropPosition,u=s.dropLevelOffset,d=s.indent,p={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(c){case-1:p.top=0,p.left=-u*d;break;case 1:p.bottom=0,p.left=-u*d;break;case 0:p.bottom=0,p.left=d;break}return React.createElement("div",{style:p})};function _objectDestructuringEmpty(a){if(a==null)throw new TypeError("Cannot destructure "+a)}function useUnmount$1(a,s){var c=reactExports.useState(!1),u=_slicedToArray$e(c,2),d=u[0],p=u[1];useLayoutEffect$1(function(){if(d)return a(),function(){s()}},[d]),useLayoutEffect$1(function(){return p(!0),function(){p(!1)}},[])}var _excluded$5=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],MotionTreeNode=reactExports.forwardRef(function(a,s){var c=a.className,u=a.style,d=a.motion,p=a.motionNodes,v=a.motionType,A=a.onMotionStart,b=a.onMotionEnd,g=a.active,x=a.treeNodeRequiredProps,y=_objectWithoutProperties$2(a,_excluded$5),f=reactExports.useState(!0),m=_slicedToArray$e(f,2),C=m[0],S=m[1],w=reactExports.useContext(TreeContext),I=w.prefixCls,P=p&&v!=="hide";useLayoutEffect$1(function(){p&&P!==C&&S(P)},[p]);var $=function(){p&&A()},_=reactExports.useRef(!1),E=function(){p&&!_.current&&(_.current=!0,b())};useUnmount$1($,E);var R=function(B){P===B&&E()};return p?reactExports.createElement(CSSMotion,_extends$3({ref:s,visible:C},d,{motionAppear:v==="show",onVisibleChanged:R}),function(T,B){var M=T.className,D=T.style;return reactExports.createElement("div",{ref:B,className:classnames("".concat(I,"-treenode-motion"),M),style:D},p.map(function(O){var H=Object.assign({},(_objectDestructuringEmpty(O.data),O.data)),j=O.title,Q=O.key,L=O.isStart,F=O.isEnd;delete H.children;var U=getTreeNodeProps(Q,x);return reactExports.createElement(TreeNode$1,_extends$3({},H,U,{title:j,active:g,data:O.data,key:Q,isStart:L,isEnd:F}))}))}):reactExports.createElement(TreeNode$1,_extends$3({domRef:s,className:c,style:u},y,{active:g}))});function findExpandedKeys(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],c=a.length,u=s.length;if(Math.abs(c-u)!==1)return{add:!1,key:null};function d(p,v){var A=new Map;p.forEach(function(g){A.set(g,!0)});var b=v.filter(function(g){return!A.has(g)});return b.length===1?b[0]:null}return c<u?{add:!0,key:d(a,s)}:{add:!1,key:d(s,a)}}function getExpandRange(a,s,c){var u=a.findIndex(function(A){return A.key===c}),d=a[u+1],p=s.findIndex(function(A){return A.key===c});if(d){var v=s.findIndex(function(A){return A.key===d.key});return s.slice(p+1,v)}return s.slice(p+1)}var _excluded$4=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],HIDDEN_STYLE$1={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},noop$2=function a(){},MOTION_KEY="RC_TREE_MOTION_".concat(Math.random()),MotionNode={key:MOTION_KEY},MotionEntity={key:MOTION_KEY,level:0,index:0,pos:"0",node:MotionNode,nodes:[MotionNode]},MotionFlattenData={parent:null,children:[],pos:MotionEntity.pos,data:MotionNode,title:null,key:MOTION_KEY,isStart:[],isEnd:[]};function getMinimumRangeTransitionRange(a,s,c,u){return s===!1||!c?a:a.slice(0,Math.ceil(c/u)+1)}function itemKey(a){var s=a.key,c=a.pos;return getKey$1(s,c)}function getAccessibilityPath(a){for(var s=String(a.data.key),c=a;c.parent;)c=c.parent,s="".concat(c.data.key," > ").concat(s);return s}var NodeList=reactExports.forwardRef(function(a,s){var c=a.prefixCls,u=a.data;a.selectable,a.checkable;var d=a.expandedKeys,p=a.selectedKeys,v=a.checkedKeys,A=a.loadedKeys,b=a.loadingKeys,g=a.halfCheckedKeys,x=a.keyEntities,y=a.disabled,f=a.dragging,m=a.dragOverNodeKey,C=a.dropPosition,S=a.motion,w=a.height,I=a.itemHeight,P=a.virtual,$=a.scrollWidth,_=a.focusable,E=a.activeItem,R=a.focused,T=a.tabIndex,B=a.onKeyDown,M=a.onFocus,D=a.onBlur,O=a.onActiveChange,H=a.onListChangeStart,j=a.onListChangeEnd,Q=_objectWithoutProperties$2(a,_excluded$4),L=reactExports.useRef(null),F=reactExports.useRef(null);reactExports.useImperativeHandle(s,function(){return{scrollTo:function(xe){L.current.scrollTo(xe)},getIndentWidth:function(){return F.current.offsetWidth}}});var U=reactExports.useState(d),N=_slicedToArray$e(U,2),k=N[0],W=N[1],J=reactExports.useState(u),q=_slicedToArray$e(J,2),Y=q[0],Z=q[1],ee=reactExports.useState(u),re=_slicedToArray$e(ee,2),ae=re[0],V=re[1],K=reactExports.useState([]),te=_slicedToArray$e(K,2),ie=te[0],ce=te[1],ge=reactExports.useState(null),Se=_slicedToArray$e(ge,2),be=Se[0],me=Se[1],fe=reactExports.useRef(u);fe.current=u;function se(){var le=fe.current;Z(le),V(le),ce([]),me(null),j()}useLayoutEffect$1(function(){W(d);var le=findExpandedKeys(k,d);if(le.key!==null)if(le.add){var xe=Y.findIndex(function(pe){var he=pe.key;return he===le.key}),Ce=getMinimumRangeTransitionRange(getExpandRange(Y,u,le.key),P,w,I),$e=Y.slice();$e.splice(xe+1,0,MotionFlattenData),V($e),ce(Ce),me("show")}else{var we=u.findIndex(function(pe){var he=pe.key;return he===le.key}),Ee=getMinimumRangeTransitionRange(getExpandRange(u,Y,le.key),P,w,I),Ae=u.slice();Ae.splice(we+1,0,MotionFlattenData),V(Ae),ce(Ee),me("hide")}else Y!==u&&(Z(u),V(u))},[d,u]),reactExports.useEffect(function(){f||se()},[f]);var oe=S?ae:u,de={expandedKeys:d,selectedKeys:p,loadedKeys:A,loadingKeys:b,checkedKeys:v,halfCheckedKeys:g,dragOverNodeKey:m,dropPosition:C,keyEntities:x};return reactExports.createElement(reactExports.Fragment,null,R&&E&&reactExports.createElement("span",{style:HIDDEN_STYLE$1,"aria-live":"assertive"},getAccessibilityPath(E)),reactExports.createElement("div",null,reactExports.createElement("input",{style:HIDDEN_STYLE$1,disabled:_===!1||y,tabIndex:_!==!1?T:null,onKeyDown:B,onFocus:M,onBlur:D,value:"",onChange:noop$2,"aria-label":"for screen reader"})),reactExports.createElement("div",{className:"".concat(c,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},reactExports.createElement("div",{className:"".concat(c,"-indent")},reactExports.createElement("div",{ref:F,className:"".concat(c,"-indent-unit")}))),reactExports.createElement(List,_extends$3({},Q,{data:oe,itemKey,height:w,fullHeight:!1,virtual:P,itemHeight:I,scrollWidth:$,prefixCls:"".concat(c,"-list"),ref:L,role:"tree",onVisibleChange:function(xe){xe.every(function(Ce){return itemKey(Ce)!==MOTION_KEY})&&se()}}),function(le){var xe=le.pos,Ce=Object.assign({},(_objectDestructuringEmpty(le.data),le.data)),$e=le.title,we=le.key,Ee=le.isStart,Ae=le.isEnd,pe=getKey$1(we,xe);delete Ce.key,delete Ce.children;var he=getTreeNodeProps(pe,de);return reactExports.createElement(MotionTreeNode,_extends$3({},Ce,he,{title:$e,active:!!E&&we===E.key,pos:xe,data:le.data,isStart:Ee,isEnd:Ae,motion:S,motionNodes:we===MOTION_KEY?ie:null,motionType:be,onMotionStart:H,onMotionEnd:se,treeNodeRequiredProps:de,onMouseMove:function(){O(null)}}))}))}),MAX_RETRY_TIMES=10,Tree$2=function(a){_inherits$1(c,a);var s=_createSuper(c);function c(){var u;_classCallCheck$1(this,c);for(var d=arguments.length,p=new Array(d),v=0;v<d;v++)p[v]=arguments[v];return u=s.call.apply(s,[this].concat(p)),_defineProperty$a(_assertThisInitialized(u),"destroyed",!1),_defineProperty$a(_assertThisInitialized(u),"delayedDragEnterLogic",void 0),_defineProperty$a(_assertThisInitialized(u),"loadingRetryTimes",{}),_defineProperty$a(_assertThisInitialized(u),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:fillFieldNames$1()}),_defineProperty$a(_assertThisInitialized(u),"dragStartMousePosition",null),_defineProperty$a(_assertThisInitialized(u),"dragNodeProps",null),_defineProperty$a(_assertThisInitialized(u),"currentMouseOverDroppableNodeKey",null),_defineProperty$a(_assertThisInitialized(u),"listRef",reactExports.createRef()),_defineProperty$a(_assertThisInitialized(u),"onNodeDragStart",function(A,b){var g=u.state,x=g.expandedKeys,y=g.keyEntities,f=u.props.onDragStart,m=b.eventKey;u.dragNodeProps=b,u.dragStartMousePosition={x:A.clientX,y:A.clientY};var C=arrDel(x,m);u.setState({draggingNodeKey:m,dragChildrenKeys:getDragChildrenKeys(m,y),indent:u.listRef.current.getIndentWidth()}),u.setExpandedKeys(C),window.addEventListener("dragend",u.onWindowDragEnd),f==null||f({event:A,node:convertNodePropsToEventData(b)})}),_defineProperty$a(_assertThisInitialized(u),"onNodeDragEnter",function(A,b){var g=u.state,x=g.expandedKeys,y=g.keyEntities,f=g.dragChildrenKeys,m=g.flattenNodes,C=g.indent,S=u.props,w=S.onDragEnter,I=S.onExpand,P=S.allowDrop,$=S.direction,_=b.pos,E=b.eventKey;if(u.currentMouseOverDroppableNodeKey!==E&&(u.currentMouseOverDroppableNodeKey=E),!u.dragNodeProps){u.resetDragState();return}var R=calcDropPosition(A,u.dragNodeProps,b,C,u.dragStartMousePosition,P,m,y,x,$),T=R.dropPosition,B=R.dropLevelOffset,M=R.dropTargetKey,D=R.dropContainerKey,O=R.dropTargetPos,H=R.dropAllowed,j=R.dragOverNodeKey;if(f.includes(M)||!H){u.resetDragState();return}if(u.delayedDragEnterLogic||(u.delayedDragEnterLogic={}),Object.keys(u.delayedDragEnterLogic).forEach(function(Q){clearTimeout(u.delayedDragEnterLogic[Q])}),u.dragNodeProps.eventKey!==b.eventKey&&(A.persist(),u.delayedDragEnterLogic[_]=window.setTimeout(function(){if(u.state.draggingNodeKey!==null){var Q=_toConsumableArray$e(x),L=getEntity(y,b.eventKey);L&&(L.children||[]).length&&(Q=arrAdd(x,b.eventKey)),u.props.hasOwnProperty("expandedKeys")||u.setExpandedKeys(Q),I==null||I(Q,{node:convertNodePropsToEventData(b),expanded:!0,nativeEvent:A.nativeEvent})}},800)),u.dragNodeProps.eventKey===M&&B===0){u.resetDragState();return}u.setState({dragOverNodeKey:j,dropPosition:T,dropLevelOffset:B,dropTargetKey:M,dropContainerKey:D,dropTargetPos:O,dropAllowed:H}),w==null||w({event:A,node:convertNodePropsToEventData(b),expandedKeys:x})}),_defineProperty$a(_assertThisInitialized(u),"onNodeDragOver",function(A,b){var g=u.state,x=g.dragChildrenKeys,y=g.flattenNodes,f=g.keyEntities,m=g.expandedKeys,C=g.indent,S=u.props,w=S.onDragOver,I=S.allowDrop,P=S.direction;if(u.dragNodeProps){var $=calcDropPosition(A,u.dragNodeProps,b,C,u.dragStartMousePosition,I,y,f,m,P),_=$.dropPosition,E=$.dropLevelOffset,R=$.dropTargetKey,T=$.dropContainerKey,B=$.dropTargetPos,M=$.dropAllowed,D=$.dragOverNodeKey;x.includes(R)||!M||(u.dragNodeProps.eventKey===R&&E===0?u.state.dropPosition===null&&u.state.dropLevelOffset===null&&u.state.dropTargetKey===null&&u.state.dropContainerKey===null&&u.state.dropTargetPos===null&&u.state.dropAllowed===!1&&u.state.dragOverNodeKey===null||u.resetDragState():_===u.state.dropPosition&&E===u.state.dropLevelOffset&&R===u.state.dropTargetKey&&T===u.state.dropContainerKey&&B===u.state.dropTargetPos&&M===u.state.dropAllowed&&D===u.state.dragOverNodeKey||u.setState({dropPosition:_,dropLevelOffset:E,dropTargetKey:R,dropContainerKey:T,dropTargetPos:B,dropAllowed:M,dragOverNodeKey:D}),w==null||w({event:A,node:convertNodePropsToEventData(b)}))}}),_defineProperty$a(_assertThisInitialized(u),"onNodeDragLeave",function(A,b){u.currentMouseOverDroppableNodeKey===b.eventKey&&!A.currentTarget.contains(A.relatedTarget)&&(u.resetDragState(),u.currentMouseOverDroppableNodeKey=null);var g=u.props.onDragLeave;g==null||g({event:A,node:convertNodePropsToEventData(b)})}),_defineProperty$a(_assertThisInitialized(u),"onWindowDragEnd",function(A){u.onNodeDragEnd(A,null,!0),window.removeEventListener("dragend",u.onWindowDragEnd)}),_defineProperty$a(_assertThisInitialized(u),"onNodeDragEnd",function(A,b){var g=u.props.onDragEnd;u.setState({dragOverNodeKey:null}),u.cleanDragState(),g==null||g({event:A,node:convertNodePropsToEventData(b)}),u.dragNodeProps=null,window.removeEventListener("dragend",u.onWindowDragEnd)}),_defineProperty$a(_assertThisInitialized(u),"onNodeDrop",function(A,b){var g,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,y=u.state,f=y.dragChildrenKeys,m=y.dropPosition,C=y.dropTargetKey,S=y.dropTargetPos,w=y.dropAllowed;if(w){var I=u.props.onDrop;if(u.setState({dragOverNodeKey:null}),u.cleanDragState(),C!==null){var P=_objectSpread2$1(_objectSpread2$1({},getTreeNodeProps(C,u.getTreeNodeRequiredProps())),{},{active:((g=u.getActiveItem())===null||g===void 0?void 0:g.key)===C,data:getEntity(u.state.keyEntities,C).node}),$=f.includes(C);warningOnce(!$,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var _=posToArr(S),E={event:A,node:convertNodePropsToEventData(P),dragNode:u.dragNodeProps?convertNodePropsToEventData(u.dragNodeProps):null,dragNodesKeys:[u.dragNodeProps.eventKey].concat(f),dropToGap:m!==0,dropPosition:m+Number(_[_.length-1])};x||I==null||I(E),u.dragNodeProps=null}}}),_defineProperty$a(_assertThisInitialized(u),"cleanDragState",function(){var A=u.state.draggingNodeKey;A!==null&&u.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),u.dragStartMousePosition=null,u.currentMouseOverDroppableNodeKey=null}),_defineProperty$a(_assertThisInitialized(u),"triggerExpandActionExpand",function(A,b){var g=u.state,x=g.expandedKeys,y=g.flattenNodes,f=b.expanded,m=b.key,C=b.isLeaf;if(!(C||A.shiftKey||A.metaKey||A.ctrlKey)){var S=y.filter(function(I){return I.key===m})[0],w=convertNodePropsToEventData(_objectSpread2$1(_objectSpread2$1({},getTreeNodeProps(m,u.getTreeNodeRequiredProps())),{},{data:S.data}));u.setExpandedKeys(f?arrDel(x,m):arrAdd(x,m)),u.onNodeExpand(A,w)}}),_defineProperty$a(_assertThisInitialized(u),"onNodeClick",function(A,b){var g=u.props,x=g.onClick,y=g.expandAction;y==="click"&&u.triggerExpandActionExpand(A,b),x==null||x(A,b)}),_defineProperty$a(_assertThisInitialized(u),"onNodeDoubleClick",function(A,b){var g=u.props,x=g.onDoubleClick,y=g.expandAction;y==="doubleClick"&&u.triggerExpandActionExpand(A,b),x==null||x(A,b)}),_defineProperty$a(_assertThisInitialized(u),"onNodeSelect",function(A,b){var g=u.state.selectedKeys,x=u.state,y=x.keyEntities,f=x.fieldNames,m=u.props,C=m.onSelect,S=m.multiple,w=b.selected,I=b[f.key],P=!w;P?S?g=arrAdd(g,I):g=[I]:g=arrDel(g,I);var $=g.map(function(_){var E=getEntity(y,_);return E?E.node:null}).filter(Boolean);u.setUncontrolledState({selectedKeys:g}),C==null||C(g,{event:"select",selected:P,node:b,selectedNodes:$,nativeEvent:A.nativeEvent})}),_defineProperty$a(_assertThisInitialized(u),"onNodeCheck",function(A,b,g){var x=u.state,y=x.keyEntities,f=x.checkedKeys,m=x.halfCheckedKeys,C=u.props,S=C.checkStrictly,w=C.onCheck,I=b.key,P,$={event:"check",node:b,checked:g,nativeEvent:A.nativeEvent};if(S){var _=g?arrAdd(f,I):arrDel(f,I),E=arrDel(m,I);P={checked:_,halfChecked:E},$.checkedNodes=_.map(function(O){return getEntity(y,O)}).filter(Boolean).map(function(O){return O.node}),u.setUncontrolledState({checkedKeys:_})}else{var R=conductCheck([].concat(_toConsumableArray$e(f),[I]),!0,y),T=R.checkedKeys,B=R.halfCheckedKeys;if(!g){var M=new Set(T);M.delete(I);var D=conductCheck(Array.from(M),{halfCheckedKeys:B},y);T=D.checkedKeys,B=D.halfCheckedKeys}P=T,$.checkedNodes=[],$.checkedNodesPositions=[],$.halfCheckedKeys=B,T.forEach(function(O){var H=getEntity(y,O);if(H){var j=H.node,Q=H.pos;$.checkedNodes.push(j),$.checkedNodesPositions.push({node:j,pos:Q})}}),u.setUncontrolledState({checkedKeys:T},!1,{halfCheckedKeys:B})}w==null||w(P,$)}),_defineProperty$a(_assertThisInitialized(u),"onNodeLoad",function(A){var b,g=A.key,x=u.state.keyEntities,y=getEntity(x,g);if(!(y!=null&&(b=y.children)!==null&&b!==void 0&&b.length)){var f=new Promise(function(m,C){u.setState(function(S){var w=S.loadedKeys,I=w===void 0?[]:w,P=S.loadingKeys,$=P===void 0?[]:P,_=u.props,E=_.loadData,R=_.onLoad;if(!E||I.includes(g)||$.includes(g))return null;var T=E(A);return T.then(function(){var B=u.state.loadedKeys,M=arrAdd(B,g);R==null||R(M,{event:"load",node:A}),u.setUncontrolledState({loadedKeys:M}),u.setState(function(D){return{loadingKeys:arrDel(D.loadingKeys,g)}}),m()}).catch(function(B){if(u.setState(function(D){return{loadingKeys:arrDel(D.loadingKeys,g)}}),u.loadingRetryTimes[g]=(u.loadingRetryTimes[g]||0)+1,u.loadingRetryTimes[g]>=MAX_RETRY_TIMES){var M=u.state.loadedKeys;warningOnce(!1,"Retry for `loadData` many times but still failed. No more retry."),u.setUncontrolledState({loadedKeys:arrAdd(M,g)}),m()}C(B)}),{loadingKeys:arrAdd($,g)}})});return f.catch(function(){}),f}}),_defineProperty$a(_assertThisInitialized(u),"onNodeMouseEnter",function(A,b){var g=u.props.onMouseEnter;g==null||g({event:A,node:b})}),_defineProperty$a(_assertThisInitialized(u),"onNodeMouseLeave",function(A,b){var g=u.props.onMouseLeave;g==null||g({event:A,node:b})}),_defineProperty$a(_assertThisInitialized(u),"onNodeContextMenu",function(A,b){var g=u.props.onRightClick;g&&(A.preventDefault(),g({event:A,node:b}))}),_defineProperty$a(_assertThisInitialized(u),"onFocus",function(){var A=u.props.onFocus;u.setState({focused:!0});for(var b=arguments.length,g=new Array(b),x=0;x<b;x++)g[x]=arguments[x];A==null||A.apply(void 0,g)}),_defineProperty$a(_assertThisInitialized(u),"onBlur",function(){var A=u.props.onBlur;u.setState({focused:!1}),u.onActiveChange(null);for(var b=arguments.length,g=new Array(b),x=0;x<b;x++)g[x]=arguments[x];A==null||A.apply(void 0,g)}),_defineProperty$a(_assertThisInitialized(u),"getTreeNodeRequiredProps",function(){var A=u.state,b=A.expandedKeys,g=A.selectedKeys,x=A.loadedKeys,y=A.loadingKeys,f=A.checkedKeys,m=A.halfCheckedKeys,C=A.dragOverNodeKey,S=A.dropPosition,w=A.keyEntities;return{expandedKeys:b||[],selectedKeys:g||[],loadedKeys:x||[],loadingKeys:y||[],checkedKeys:f||[],halfCheckedKeys:m||[],dragOverNodeKey:C,dropPosition:S,keyEntities:w}}),_defineProperty$a(_assertThisInitialized(u),"setExpandedKeys",function(A){var b=u.state,g=b.treeData,x=b.fieldNames,y=flattenTreeData(g,A,x);u.setUncontrolledState({expandedKeys:A,flattenNodes:y},!0)}),_defineProperty$a(_assertThisInitialized(u),"onNodeExpand",function(A,b){var g=u.state.expandedKeys,x=u.state,y=x.listChanging,f=x.fieldNames,m=u.props,C=m.onExpand,S=m.loadData,w=b.expanded,I=b[f.key];if(!y){var P=g.includes(I),$=!w;if(warningOnce(w&&P||!w&&!P,"Expand state not sync with index check"),g=$?arrAdd(g,I):arrDel(g,I),u.setExpandedKeys(g),C==null||C(g,{node:b,expanded:$,nativeEvent:A.nativeEvent}),$&&S){var _=u.onNodeLoad(b);_&&_.then(function(){var E=flattenTreeData(u.state.treeData,g,f);u.setUncontrolledState({flattenNodes:E})}).catch(function(){var E=u.state.expandedKeys,R=arrDel(E,I);u.setExpandedKeys(R)})}}}),_defineProperty$a(_assertThisInitialized(u),"onListChangeStart",function(){u.setUncontrolledState({listChanging:!0})}),_defineProperty$a(_assertThisInitialized(u),"onListChangeEnd",function(){setTimeout(function(){u.setUncontrolledState({listChanging:!1})})}),_defineProperty$a(_assertThisInitialized(u),"onActiveChange",function(A){var b=u.state.activeKey,g=u.props,x=g.onActiveChange,y=g.itemScrollOffset,f=y===void 0?0:y;b!==A&&(u.setState({activeKey:A}),A!==null&&u.scrollTo({key:A,offset:f}),x==null||x(A))}),_defineProperty$a(_assertThisInitialized(u),"getActiveItem",function(){var A=u.state,b=A.activeKey,g=A.flattenNodes;return b===null?null:g.find(function(x){var y=x.key;return y===b})||null}),_defineProperty$a(_assertThisInitialized(u),"offsetActiveKey",function(A){var b=u.state,g=b.flattenNodes,x=b.activeKey,y=g.findIndex(function(C){var S=C.key;return S===x});y===-1&&A<0&&(y=g.length),y=(y+A+g.length)%g.length;var f=g[y];if(f){var m=f.key;u.onActiveChange(m)}else u.onActiveChange(null)}),_defineProperty$a(_assertThisInitialized(u),"onKeyDown",function(A){var b=u.state,g=b.activeKey,x=b.expandedKeys,y=b.checkedKeys,f=b.fieldNames,m=u.props,C=m.onKeyDown,S=m.checkable,w=m.selectable;switch(A.which){case KeyCode.UP:{u.offsetActiveKey(-1),A.preventDefault();break}case KeyCode.DOWN:{u.offsetActiveKey(1),A.preventDefault();break}}var I=u.getActiveItem();if(I&&I.data){var P=u.getTreeNodeRequiredProps(),$=I.data.isLeaf===!1||!!(I.data[f.children]||[]).length,_=convertNodePropsToEventData(_objectSpread2$1(_objectSpread2$1({},getTreeNodeProps(g,P)),{},{data:I.data,active:!0}));switch(A.which){case KeyCode.LEFT:{$&&x.includes(g)?u.onNodeExpand({},_):I.parent&&u.onActiveChange(I.parent.key),A.preventDefault();break}case KeyCode.RIGHT:{$&&!x.includes(g)?u.onNodeExpand({},_):I.children&&I.children.length&&u.onActiveChange(I.children[0].key),A.preventDefault();break}case KeyCode.ENTER:case KeyCode.SPACE:{S&&!_.disabled&&_.checkable!==!1&&!_.disableCheckbox?u.onNodeCheck({},_,!y.includes(g)):!S&&w&&!_.disabled&&_.selectable!==!1&&u.onNodeSelect({},_);break}}}C==null||C(A)}),_defineProperty$a(_assertThisInitialized(u),"setUncontrolledState",function(A){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!u.destroyed){var x=!1,y=!0,f={};Object.keys(A).forEach(function(m){if(u.props.hasOwnProperty(m)){y=!1;return}x=!0,f[m]=A[m]}),x&&(!b||y)&&u.setState(_objectSpread2$1(_objectSpread2$1({},f),g))}}),_defineProperty$a(_assertThisInitialized(u),"scrollTo",function(A){u.listRef.current.scrollTo(A)}),u}return _createClass$1(c,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var d=this.props,p=d.activeKey,v=d.itemScrollOffset,A=v===void 0?0:v;p!==void 0&&p!==this.state.activeKey&&(this.setState({activeKey:p}),p!==null&&this.scrollTo({key:p,offset:A}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var d=this.state,p=d.focused,v=d.flattenNodes,A=d.keyEntities,b=d.draggingNodeKey,g=d.activeKey,x=d.dropLevelOffset,y=d.dropContainerKey,f=d.dropTargetKey,m=d.dropPosition,C=d.dragOverNodeKey,S=d.indent,w=this.props,I=w.prefixCls,P=w.className,$=w.style,_=w.showLine,E=w.focusable,R=w.tabIndex,T=R===void 0?0:R,B=w.selectable,M=w.showIcon,D=w.icon,O=w.switcherIcon,H=w.draggable,j=w.checkable,Q=w.checkStrictly,L=w.disabled,F=w.motion,U=w.loadData,N=w.filterTreeNode,k=w.height,W=w.itemHeight,J=w.scrollWidth,q=w.virtual,Y=w.titleRender,Z=w.dropIndicatorRender,ee=w.onContextMenu,re=w.onScroll,ae=w.direction,V=w.rootClassName,K=w.rootStyle,te=pickAttrs(this.props,{aria:!0,data:!0}),ie;H&&(_typeof$h(H)==="object"?ie=H:typeof H=="function"?ie={nodeDraggable:H}:ie={});var ce={prefixCls:I,selectable:B,showIcon:M,icon:D,switcherIcon:O,draggable:ie,draggingNodeKey:b,checkable:j,checkStrictly:Q,disabled:L,keyEntities:A,dropLevelOffset:x,dropContainerKey:y,dropTargetKey:f,dropPosition:m,dragOverNodeKey:C,indent:S,direction:ae,dropIndicatorRender:Z,loadData:U,filterTreeNode:N,titleRender:Y,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return reactExports.createElement(TreeContext.Provider,{value:ce},reactExports.createElement("div",{className:classnames(I,P,V,_defineProperty$a(_defineProperty$a(_defineProperty$a({},"".concat(I,"-show-line"),_),"".concat(I,"-focused"),p),"".concat(I,"-active-focused"),g!==null)),style:K},reactExports.createElement(NodeList,_extends$3({ref:this.listRef,prefixCls:I,style:$,data:v,disabled:L,selectable:B,checkable:!!j,motion:F,dragging:b!==null,height:k,itemHeight:W,virtual:q,focusable:E,focused:p,tabIndex:T,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ee,onScroll:re,scrollWidth:J},this.getTreeNodeRequiredProps(),te))))}}],[{key:"getDerivedStateFromProps",value:function(d,p){var v=p.prevProps,A={prevProps:d};function b(T){return!v&&d.hasOwnProperty(T)||v&&v[T]!==d[T]}var g,x=p.fieldNames;if(b("fieldNames")&&(x=fillFieldNames$1(d.fieldNames),A.fieldNames=x),b("treeData")?g=d.treeData:b("children")&&(warningOnce(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),g=convertTreeToData(d.children)),g){A.treeData=g;var y=convertDataToEntities(g,{fieldNames:x});A.keyEntities=_objectSpread2$1(_defineProperty$a({},MOTION_KEY,MotionEntity),y.keyEntities)}var f=A.keyEntities||p.keyEntities;if(b("expandedKeys")||v&&b("autoExpandParent"))A.expandedKeys=d.autoExpandParent||!v&&d.defaultExpandParent?conductExpandParent(d.expandedKeys,f):d.expandedKeys;else if(!v&&d.defaultExpandAll){var m=_objectSpread2$1({},f);delete m[MOTION_KEY];var C=[];Object.keys(m).forEach(function(T){var B=m[T];B.children&&B.children.length&&C.push(B.key)}),A.expandedKeys=C}else!v&&d.defaultExpandedKeys&&(A.expandedKeys=d.autoExpandParent||d.defaultExpandParent?conductExpandParent(d.defaultExpandedKeys,f):d.defaultExpandedKeys);if(A.expandedKeys||delete A.expandedKeys,g||A.expandedKeys){var S=flattenTreeData(g||p.treeData,A.expandedKeys||p.expandedKeys,x);A.flattenNodes=S}if(d.selectable&&(b("selectedKeys")?A.selectedKeys=calcSelectedKeys(d.selectedKeys,d):!v&&d.defaultSelectedKeys&&(A.selectedKeys=calcSelectedKeys(d.defaultSelectedKeys,d))),d.checkable){var w;if(b("checkedKeys")?w=parseCheckedKeys(d.checkedKeys)||{}:!v&&d.defaultCheckedKeys?w=parseCheckedKeys(d.defaultCheckedKeys)||{}:g&&(w=parseCheckedKeys(d.checkedKeys)||{checkedKeys:p.checkedKeys,halfCheckedKeys:p.halfCheckedKeys}),w){var I=w,P=I.checkedKeys,$=P===void 0?[]:P,_=I.halfCheckedKeys,E=_===void 0?[]:_;if(!d.checkStrictly){var R=conductCheck($,!0,f);$=R.checkedKeys,E=R.halfCheckedKeys}A.checkedKeys=$,A.halfCheckedKeys=E}}return b("loadedKeys")&&(A.loadedKeys=d.loadedKeys),A}}]),c}(reactExports.Component);_defineProperty$a(Tree$2,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:DropIndicator,allowDrop:function a(){return!0},expandAction:!1}),_defineProperty$a(Tree$2,"TreeNode",TreeNode$1);const genDirectoryStyle=a=>{let{treeCls:s,treeNodeCls:c,directoryNodeSelectedBg:u,directoryNodeSelectedColor:d,motionDurationMid:p,borderRadius:v,controlItemBgHover:A}=a;return{[`${s}${s}-directory ${c}`]:{[`${s}-node-content-wrapper`]:{position:"static",[`> *:not(${s}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${p}`,content:'""',borderRadius:v},"&:hover:before":{background:A}},[`${s}-switcher, ${s}-checkbox, ${s}-draggable-icon`]:{zIndex:1},"&-selected":{[`${s}-switcher, ${s}-draggable-icon`]:{color:d},[`${s}-node-content-wrapper`]:{color:d,background:"transparent","&:before, &:hover:before":{background:u}}}}}},treeNodeFX=new Keyframe("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),getSwitchStyle=(a,s)=>({[`.${a}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${s.motionDurationSlow}`}}}),getDropIndicatorStyle=(a,s)=>({[`.${a}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:s.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${unit$1(s.lineWidthBold)} solid ${s.colorPrimary}`,borderRadius:"50%",content:'""'}}}),genBaseStyle$2=(a,s)=>{const{treeCls:c,treeNodeCls:u,treeNodePadding:d,titleHeight:p,indentSize:v,nodeSelectedBg:A,nodeHoverBg:b,colorTextQuaternary:g,controlItemBgActiveDisabled:x}=s;return{[c]:Object.assign(Object.assign({},resetComponent(s)),{background:s.colorBgContainer,borderRadius:s.borderRadius,transition:`background-color ${s.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${c}-rtl ${c}-switcher_close ${c}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${c}-active-focused)`]:Object.assign({},genFocusOutline(s)),[`${c}-list-holder-inner`]:{alignItems:"flex-start"},[`&${c}-block-node`]:{[`${c}-list-holder-inner`]:{alignItems:"stretch",[`${c}-node-content-wrapper`]:{flex:"auto"},[`${u}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${s.colorPrimary}`,opacity:0,animationName:treeNodeFX,animationDuration:s.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:s.borderRadius}}},[u]:{display:"flex",alignItems:"flex-start",marginBottom:d,lineHeight:unit$1(p),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:d},[`&-disabled ${c}-node-content-wrapper`]:{color:s.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${c}-checkbox-disabled + ${c}-node-selected,&${u}-disabled${u}-selected ${c}-node-content-wrapper`]:{backgroundColor:x},[`${c}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${u}-disabled)`]:{[`${c}-node-content-wrapper`]:{"&:hover":{color:s.nodeHoverColor}}},[`&-active ${c}-node-content-wrapper`]:{background:s.controlItemBgHover},[`&:not(${u}-disabled).filter-node ${c}-title`]:{color:s.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${c}-draggable-icon`]:{flexShrink:0,width:p,textAlign:"center",visibility:"visible",color:g},[`&${u}-disabled ${c}-draggable-icon`]:{visibility:"hidden"}}},[`${c}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:v}},[`${c}-draggable-icon`]:{visibility:"hidden"},[`${c}-switcher, ${c}-checkbox`]:{marginInlineEnd:s.calc(s.calc(p).sub(s.controlInteractiveSize)).div(2).equal()},[`${c}-switcher`]:Object.assign(Object.assign({},getSwitchStyle(a,s)),{position:"relative",flex:"none",alignSelf:"stretch",width:p,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${s.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:p,height:p,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:s.borderRadius,transition:`all ${s.motionDurationSlow}`},[`&:not(${c}-switcher-noop):hover:before`]:{backgroundColor:s.colorBgTextHover},[`&_close ${c}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:s.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:s.calc(p).div(2).equal(),bottom:s.calc(d).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${s.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:s.calc(s.calc(p).div(2).equal()).mul(.8).equal(),height:s.calc(p).div(2).equal(),borderBottom:`1px solid ${s.colorBorder}`,content:'""'}}}),[`${c}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:p,paddingBlock:0,paddingInline:s.paddingXS,background:"transparent",borderRadius:s.borderRadius,cursor:"pointer",transition:`all ${s.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},getDropIndicatorStyle(a,s)),{"&:hover":{backgroundColor:b},[`&${c}-node-selected`]:{color:s.nodeSelectedColor,backgroundColor:A},[`${c}-iconEle`]:{display:"inline-block",width:p,height:p,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${c}-unselectable ${c}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${u}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${s.colorPrimary}`},"&-show-line":{[`${c}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:s.calc(p).div(2).equal(),bottom:s.calc(d).mul(-1).equal(),borderInlineEnd:`1px solid ${s.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${c}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${u}-leaf-last ${c}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${unit$1(s.calc(p).div(2).equal())} !important`}})}},genTreeStyle=(a,s)=>{const c=`.${a}`,u=`${c}-treenode`,d=s.calc(s.paddingXS).div(2).equal(),p=merge(s,{treeCls:c,treeNodeCls:u,treeNodePadding:d});return[genBaseStyle$2(a,p),genDirectoryStyle(p)]},initComponentToken=a=>{const{controlHeightSM:s,controlItemBgHover:c,controlItemBgActive:u}=a,d=s;return{titleHeight:d,indentSize:d,nodeHoverBg:c,nodeHoverColor:a.colorText,nodeSelectedBg:u,nodeSelectedColor:a.colorText}},prepareComponentToken$3=a=>{const{colorTextLightSolid:s,colorPrimary:c}=a;return Object.assign(Object.assign({},initComponentToken(a)),{directoryNodeSelectedColor:s,directoryNodeSelectedBg:c})},useStyle$3=genStyleHooks("Tree",(a,s)=>{let{prefixCls:c}=s;return[{[a.componentCls]:getStyle$1(`${c}-checkbox`,a)},genTreeStyle(c,a),genCollapseMotion(a)]},prepareComponentToken$3),offset=4;function dropIndicatorRender(a){const{dropPosition:s,dropLevelOffset:c,prefixCls:u,indent:d,direction:p="ltr"}=a,v=p==="ltr"?"left":"right",A=p==="ltr"?"right":"left",b={[v]:-c*d+offset,[A]:0};switch(s){case-1:b.top=-3;break;case 1:b.bottom=-3;break;default:b.bottom=-3,b[v]=d+offset;break}return React.createElement("div",{style:b,className:`${u}-drop-indicator`})}const SwitcherIconCom=a=>{const{prefixCls:s,switcherIcon:c,treeNodeProps:u,showLine:d,switcherLoadingIcon:p}=a,{isLeaf:v,expanded:A,loading:b}=u;if(b)return reactExports.isValidElement(p)?p:reactExports.createElement(RefIcon$F,{className:`${s}-switcher-loading-icon`});let g;if(d&&typeof d=="object"&&(g=d.showLeafIcon),v){if(!d)return null;if(typeof g!="boolean"&&g){const f=typeof g=="function"?g(u):g,m=`${s}-switcher-line-custom-icon`;return reactExports.isValidElement(f)?cloneElement(f,{className:classnames(f.props.className||"",m)}):f}return g?reactExports.createElement(RefIcon$b,{className:`${s}-switcher-line-icon`}):reactExports.createElement("span",{className:`${s}-switcher-leaf-line`})}const x=`${s}-switcher-icon`,y=typeof c=="function"?c(u):c;return reactExports.isValidElement(y)?cloneElement(y,{className:classnames(y.props.className||"",x)}):y!==void 0?y:d?A?reactExports.createElement(RefIcon$5,{className:`${s}-switcher-line-icon`}):reactExports.createElement(RefIcon$2,{className:`${s}-switcher-line-icon`}):reactExports.createElement(RefIcon$j,{className:x})},Tree$1=React.forwardRef((a,s)=>{var c;const{getPrefixCls:u,direction:d,virtual:p,tree:v}=React.useContext(ConfigContext$1),{prefixCls:A,className:b,showIcon:g=!1,showLine:x,switcherIcon:y,switcherLoadingIcon:f,blockNode:m=!1,children:C,checkable:S=!1,selectable:w=!0,draggable:I,motion:P,style:$}=a,_=u("tree",A),E=u(),R=P??Object.assign(Object.assign({},initCollapseMotion(E)),{motionAppear:!1}),T=Object.assign(Object.assign({},a),{checkable:S,selectable:w,showIcon:g,motion:R,blockNode:m,showLine:!!x,dropIndicatorRender}),[B,M,D]=useStyle$3(_),[,O]=useToken$1(),H=O.paddingXS/2+(((c=O.Tree)===null||c===void 0?void 0:c.titleHeight)||O.controlHeightSM),j=React.useMemo(()=>{if(!I)return!1;let L={};switch(typeof I){case"function":L.nodeDraggable=I;break;case"object":L=Object.assign({},I);break}return L.icon!==!1&&(L.icon=L.icon||React.createElement(RefIcon$6,null)),L},[I]),Q=L=>React.createElement(SwitcherIconCom,{prefixCls:_,switcherIcon:y,switcherLoadingIcon:f,treeNodeProps:L,showLine:x});return B(React.createElement(Tree$2,Object.assign({itemHeight:H,ref:s,virtual:p},T,{style:Object.assign(Object.assign({},v==null?void 0:v.style),$),prefixCls:_,className:classnames({[`${_}-icon-hide`]:!g,[`${_}-block-node`]:m,[`${_}-unselectable`]:!w,[`${_}-rtl`]:d==="rtl"},v==null?void 0:v.className,b,M,D),direction:d,checkable:S&&React.createElement("span",{className:`${_}-checkbox-inner`}),selectable:w,switcherIcon:Q,draggable:j}),C))}),RECORD_NONE=0,RECORD_START=1,RECORD_END=2;function traverseNodesKey(a,s,c){const{key:u,children:d}=c;function p(v){const A=v[u],b=v[d];s(A,v)!==!1&&traverseNodesKey(b||[],s,c)}a.forEach(p)}function calcRangeKeys(a){let{treeData:s,expandedKeys:c,startKey:u,endKey:d,fieldNames:p}=a;const v=[];let A=RECORD_NONE;if(u&&u===d)return[u];if(!u||!d)return[];function b(g){return g===u||g===d}return traverseNodesKey(s,g=>{if(A===RECORD_END)return!1;if(b(g)){if(v.push(g),A===RECORD_NONE)A=RECORD_START;else if(A===RECORD_START)return A=RECORD_END,!1}else A===RECORD_START&&v.push(g);return c.includes(g)},fillFieldNames$1(p)),v}function convertDirectoryKeysToNodes(a,s,c){const u=_toConsumableArray$e(s),d=[];return traverseNodesKey(a,(p,v)=>{const A=u.indexOf(p);return A!==-1&&(d.push(v),u.splice(A,1)),!!u.length},fillFieldNames$1(c)),d}var __rest$b=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};function getIcon(a){const{isLeaf:s,expanded:c}=a;return s?reactExports.createElement(RefIcon$b,null):c?reactExports.createElement(RefIcon$8,null):reactExports.createElement(RefIcon$7,null)}function getTreeData(a){let{treeData:s,children:c}=a;return s||convertTreeToData(c)}const DirectoryTree=(a,s)=>{var{defaultExpandAll:c,defaultExpandParent:u,defaultExpandedKeys:d}=a,p=__rest$b(a,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const v=reactExports.useRef(null),A=reactExports.useRef(null),b=()=>{const{keyEntities:B}=convertDataToEntities(getTreeData(p));let M;return c?M=Object.keys(B):u?M=conductExpandParent(p.expandedKeys||d||[],B):M=p.expandedKeys||d||[],M},[g,x]=reactExports.useState(p.selectedKeys||p.defaultSelectedKeys||[]),[y,f]=reactExports.useState(()=>b());reactExports.useEffect(()=>{"selectedKeys"in p&&x(p.selectedKeys)},[p.selectedKeys]),reactExports.useEffect(()=>{"expandedKeys"in p&&f(p.expandedKeys)},[p.expandedKeys]);const m=(B,M)=>{var D;return"expandedKeys"in p||f(B),(D=p.onExpand)===null||D===void 0?void 0:D.call(p,B,M)},C=(B,M)=>{var D;const{multiple:O,fieldNames:H}=p,{node:j,nativeEvent:Q}=M,{key:L=""}=j,F=getTreeData(p),U=Object.assign(Object.assign({},M),{selected:!0}),N=(Q==null?void 0:Q.ctrlKey)||(Q==null?void 0:Q.metaKey),k=Q==null?void 0:Q.shiftKey;let W;O&&N?(W=B,v.current=L,A.current=W,U.selectedNodes=convertDirectoryKeysToNodes(F,W,H)):O&&k?(W=Array.from(new Set([].concat(_toConsumableArray$e(A.current||[]),_toConsumableArray$e(calcRangeKeys({treeData:F,expandedKeys:y,startKey:L,endKey:v.current,fieldNames:H}))))),U.selectedNodes=convertDirectoryKeysToNodes(F,W,H)):(W=[L],v.current=L,A.current=W,U.selectedNodes=convertDirectoryKeysToNodes(F,W,H)),(D=p.onSelect)===null||D===void 0||D.call(p,W,U),"selectedKeys"in p||x(W)},{getPrefixCls:S,direction:w}=reactExports.useContext(ConfigContext$1),{prefixCls:I,className:P,showIcon:$=!0,expandAction:_="click"}=p,E=__rest$b(p,["prefixCls","className","showIcon","expandAction"]),R=S("tree",I),T=classnames(`${R}-directory`,{[`${R}-directory-rtl`]:w==="rtl"},P);return reactExports.createElement(Tree$1,Object.assign({icon:getIcon,ref:s,blockNode:!0},E,{showIcon:$,expandAction:_,prefixCls:R,className:T,expandedKeys:y,selectedKeys:g,onSelect:C,onExpand:m}))},ForwardDirectoryTree=reactExports.forwardRef(DirectoryTree),Tree=Tree$1;Tree.DirectoryTree=ForwardDirectoryTree,Tree.TreeNode=TreeNode$1;const FilterSearch=a=>{const{value:s,filterSearch:c,tablePrefixCls:u,locale:d,onChange:p}=a;return c?reactExports.createElement("div",{className:`${u}-filter-dropdown-search`},reactExports.createElement(Input$2,{prefix:reactExports.createElement(RefIcon$B,null),placeholder:d.filterSearchPlaceholder,onChange:p,value:s,htmlSize:1,className:`${u}-filter-dropdown-search-input`})):null},onKeyDown=a=>{const{keyCode:s}=a;s===KeyCode.ENTER&&a.stopPropagation()},FilterDropdownMenuWrapper=reactExports.forwardRef((a,s)=>reactExports.createElement("div",{className:a.className,onClick:c=>c.stopPropagation(),onKeyDown,ref:s},a.children));function flattenKeys(a){let s=[];return(a||[]).forEach(c=>{let{value:u,children:d}=c;s.push(u),d&&(s=[].concat(_toConsumableArray$e(s),_toConsumableArray$e(flattenKeys(d))))}),s}function hasSubMenu(a){return a.some(s=>{let{children:c}=s;return c})}function searchValueMatched(a,s){return typeof s=="string"||typeof s=="number"?s==null?void 0:s.toString().toLowerCase().includes(a.trim().toLowerCase()):!1}function renderFilterItems(a){let{filters:s,prefixCls:c,filteredKeys:u,filterMultiple:d,searchValue:p,filterSearch:v}=a;return s.map((A,b)=>{const g=String(A.value);if(A.children)return{key:g||b,label:A.text,popupClassName:`${c}-dropdown-submenu`,children:renderFilterItems({filters:A.children,prefixCls:c,filteredKeys:u,filterMultiple:d,searchValue:p,filterSearch:v})};const x=d?Checkbox$1:Radio$1,y={key:A.value!==void 0?g:b,label:reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(x,{checked:u.includes(g)}),reactExports.createElement("span",null,A.text))};return p.trim()?typeof v=="function"?v(p,A)?y:null:searchValueMatched(p,A.text)?y:null:y})}function wrapStringListType(a){return a||[]}const FilterDropdown=a=>{var s,c,u,d;const{tablePrefixCls:p,prefixCls:v,column:A,dropdownPrefixCls:b,columnKey:g,filterOnClose:x,filterMultiple:y,filterMode:f="menu",filterSearch:m=!1,filterState:C,triggerFilter:S,locale:w,children:I,getPopupContainer:P,rootClassName:$}=a,{filterResetToDefaultFilteredValue:_,defaultFilteredValue:E,filterDropdownProps:R={},filterDropdownOpen:T,filterDropdownVisible:B,onFilterDropdownVisibleChange:M,onFilterDropdownOpenChange:D}=A,[O,H]=reactExports.useState(!1),j=!!(C&&(!((s=C.filteredKeys)===null||s===void 0)&&s.length||C.forceFiltered)),Q=le=>{var xe;H(le),(xe=R.onOpenChange)===null||xe===void 0||xe.call(R,le),D==null||D(le),M==null||M(le)},L=(d=(u=(c=R.open)!==null&&c!==void 0?c:T)!==null&&u!==void 0?u:B)!==null&&d!==void 0?d:O,F=C==null?void 0:C.filteredKeys,[U,N]=useSyncState(wrapStringListType(F)),k=le=>{let{selectedKeys:xe}=le;N(xe)},W=(le,xe)=>{let{node:Ce,checked:$e}=xe;k(y?{selectedKeys:le}:{selectedKeys:$e&&Ce.key?[Ce.key]:[]})};reactExports.useEffect(()=>{O&&k({selectedKeys:wrapStringListType(F)})},[F]);const[J,q]=reactExports.useState([]),Y=le=>{q(le)},[Z,ee]=reactExports.useState(""),re=le=>{const{value:xe}=le.target;ee(xe)};reactExports.useEffect(()=>{O||ee("")},[O]);const ae=le=>{const xe=le!=null&&le.length?le:null;if(xe===null&&(!C||!C.filteredKeys)||isEqual(xe,C==null?void 0:C.filteredKeys,!0))return null;S({column:A,key:g,filteredKeys:xe})},V=()=>{Q(!1),ae(U())},K=function(){let{confirm:le,closeDropdown:xe}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};le&&ae([]),xe&&Q(!1),ee(""),N(_?(E||[]).map(Ce=>String(Ce)):[])},te=function(){let{closeDropdown:le}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};le&&Q(!1),ae(U())},ie=(le,xe)=>{xe.source==="trigger"&&(le&&F!==void 0&&N(wrapStringListType(F)),Q(le),!le&&!A.filterDropdown&&x&&V())},ce=classnames({[`${b}-menu-without-submenu`]:!hasSubMenu(A.filters||[])}),ge=le=>{if(le.target.checked){const xe=flattenKeys(A==null?void 0:A.filters).map(Ce=>String(Ce));N(xe)}else N([])},Se=le=>{let{filters:xe}=le;return(xe||[]).map((Ce,$e)=>{const we=String(Ce.value),Ee={title:Ce.text,key:Ce.value!==void 0?we:String($e)};return Ce.children&&(Ee.children=Se({filters:Ce.children})),Ee})},be=le=>{var xe;return Object.assign(Object.assign({},le),{text:le.title,value:le.key,children:((xe=le.children)===null||xe===void 0?void 0:xe.map(Ce=>be(Ce)))||[]})};let me;const{direction:fe,renderEmpty:se}=reactExports.useContext(ConfigContext$1);if(typeof A.filterDropdown=="function")me=A.filterDropdown({prefixCls:`${b}-custom`,setSelectedKeys:le=>k({selectedKeys:le}),selectedKeys:U(),confirm:te,clearFilters:K,filters:A.filters,visible:L,close:()=>{Q(!1)}});else if(A.filterDropdown)me=A.filterDropdown;else{const le=U()||[],xe=()=>{var $e,we;const Ee=($e=se==null?void 0:se("Table.filter"))!==null&&$e!==void 0?$e:reactExports.createElement(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE,description:w.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((A.filters||[]).length===0)return Ee;if(f==="tree")return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(FilterSearch,{filterSearch:m,value:Z,onChange:re,tablePrefixCls:p,locale:w}),reactExports.createElement("div",{className:`${p}-filter-dropdown-tree`},y?reactExports.createElement(Checkbox$1,{checked:le.length===flattenKeys(A.filters).length,indeterminate:le.length>0&&le.length<flattenKeys(A.filters).length,className:`${p}-filter-dropdown-checkall`,onChange:ge},(we=w==null?void 0:w.filterCheckall)!==null&&we!==void 0?we:w==null?void 0:w.filterCheckAll):null,reactExports.createElement(Tree,{checkable:!0,selectable:!1,blockNode:!0,multiple:y,checkStrictly:!y,className:`${b}-menu`,onCheck:W,checkedKeys:le,selectedKeys:le,showIcon:!1,treeData:Se({filters:A.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Z.trim()?he=>typeof m=="function"?m(Z,be(he)):searchValueMatched(Z,he.title):void 0})));const Ae=renderFilterItems({filters:A.filters||[],filterSearch:m,prefixCls:v,filteredKeys:U(),filterMultiple:y,searchValue:Z}),pe=Ae.every(he=>he===null);return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(FilterSearch,{filterSearch:m,value:Z,onChange:re,tablePrefixCls:p,locale:w}),pe?Ee:reactExports.createElement(Menu$1,{selectable:!0,multiple:y,prefixCls:`${b}-menu`,className:ce,onSelect:k,onDeselect:k,selectedKeys:le,getPopupContainer:P,openKeys:J,onOpenChange:Y,items:Ae}))},Ce=()=>_?isEqual((E||[]).map($e=>String($e)),le,!0):le.length===0;me=reactExports.createElement(reactExports.Fragment,null,xe(),reactExports.createElement("div",{className:`${v}-dropdown-btns`},reactExports.createElement(Button$1,{type:"link",size:"small",disabled:Ce(),onClick:()=>K()},w.filterReset),reactExports.createElement(Button$1,{type:"primary",size:"small",onClick:V},w.filterConfirm)))}A.filterDropdown&&(me=reactExports.createElement(OverrideProvider,{selectable:void 0},me)),me=reactExports.createElement(FilterDropdownMenuWrapper,{className:`${v}-dropdown`},me);const de=extendsObject({trigger:["click"],placement:fe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let le;return typeof A.filterIcon=="function"?le=A.filterIcon(j):A.filterIcon?le=A.filterIcon:le=reactExports.createElement(RefIcon$9,null),reactExports.createElement("span",{role:"button",tabIndex:-1,className:classnames(`${v}-trigger`,{active:j}),onClick:xe=>{xe.stopPropagation()}},le)})(),getPopupContainer:P},Object.assign(Object.assign({},R),{rootClassName:classnames($,R.rootClassName),open:L,onOpenChange:ie,dropdownRender:()=>typeof(R==null?void 0:R.dropdownRender)=="function"?R.dropdownRender(me):me}));return reactExports.createElement("div",{className:`${v}-column`},reactExports.createElement("span",{className:`${p}-column-title`},I),reactExports.createElement(Dropdown,Object.assign({},de)))},collectFilterStates=(a,s,c)=>{let u=[];return(a||[]).forEach((d,p)=>{var v;const A=getColumnPos(p,c);if(d.filters||"filterDropdown"in d||"onFilter"in d)if("filteredValue"in d){let b=d.filteredValue;"filterDropdown"in d||(b=(v=b==null?void 0:b.map(String))!==null&&v!==void 0?v:b),u.push({column:d,key:getColumnKey(d,A),filteredKeys:b,forceFiltered:d.filtered})}else u.push({column:d,key:getColumnKey(d,A),filteredKeys:s&&d.defaultFilteredValue?d.defaultFilteredValue:void 0,forceFiltered:d.filtered});"children"in d&&(u=[].concat(_toConsumableArray$e(u),_toConsumableArray$e(collectFilterStates(d.children,s,A))))}),u};function injectFilter(a,s,c,u,d,p,v,A,b){return c.map((g,x)=>{const y=getColumnPos(x,A),{filterOnClose:f=!0,filterMultiple:m=!0,filterMode:C,filterSearch:S}=g;let w=g;if(w.filters||w.filterDropdown){const I=getColumnKey(w,y),P=u.find($=>{let{key:_}=$;return I===_});w=Object.assign(Object.assign({},w),{title:$=>reactExports.createElement(FilterDropdown,{tablePrefixCls:a,prefixCls:`${a}-filter`,dropdownPrefixCls:s,column:w,columnKey:I,filterState:P,filterOnClose:f,filterMultiple:m,filterMode:C,filterSearch:S,triggerFilter:p,locale:d,getPopupContainer:v,rootClassName:b},renderColumnTitle(g.title,$))})}return"children"in w&&(w=Object.assign(Object.assign({},w),{children:injectFilter(a,s,w.children,u,d,p,v,y,b)})),w})}const generateFilterInfo=a=>{const s={};return a.forEach(c=>{let{key:u,filteredKeys:d,column:p}=c;const v=u,{filters:A,filterDropdown:b}=p;if(b)s[v]=d||null;else if(Array.isArray(d)){const g=flattenKeys(A);s[v]=g.filter(x=>d.includes(String(x)))}else s[v]=null}),s},getFilterData=(a,s,c)=>s.reduce((d,p)=>{const{column:{onFilter:v,filters:A},filteredKeys:b}=p;return v&&b&&b.length?d.map(g=>Object.assign({},g)).filter(g=>b.some(x=>{const y=flattenKeys(A),f=y.findIndex(C=>String(C)===String(x)),m=f!==-1?y[f]:x;return g[c]&&(g[c]=getFilterData(g[c],s,c)),v(m,g)})):d},a),getMergedColumns=a=>a.flatMap(s=>"children"in s?[s].concat(_toConsumableArray$e(getMergedColumns(s.children||[]))):[s]),useFilter=a=>{const{prefixCls:s,dropdownPrefixCls:c,mergedColumns:u,onFilterChange:d,getPopupContainer:p,locale:v,rootClassName:A}=a;devUseWarning();const b=reactExports.useMemo(()=>getMergedColumns(u||[]),[u]),[g,x]=reactExports.useState(()=>collectFilterStates(b,!0)),y=reactExports.useMemo(()=>{const S=collectFilterStates(b,!1);if(S.length===0)return S;let w=!0;if(S.forEach(I=>{let{filteredKeys:P}=I;P!==void 0&&(w=!1)}),w){const I=(b||[]).map((P,$)=>getColumnKey(P,getColumnPos($)));return g.filter(P=>{let{key:$}=P;return I.includes($)}).map(P=>{const $=b[I.findIndex(_=>_===P.key)];return Object.assign(Object.assign({},P),{column:Object.assign(Object.assign({},P.column),$),forceFiltered:$.filtered})})}return S},[b,g]),f=reactExports.useMemo(()=>generateFilterInfo(y),[y]),m=S=>{const w=y.filter(I=>{let{key:P}=I;return P!==S.key});w.push(S),x(w),d(generateFilterInfo(w),w)};return[S=>injectFilter(s,c,S,y,v,m,p,void 0,A),y,f]},useLazyKVMap=(a,s,c)=>{const u=reactExports.useRef({});function d(p){var v;if(!u.current||u.current.data!==a||u.current.childrenColumnName!==s||u.current.getRowKey!==c){let b=function(g){g.forEach((x,y)=>{const f=c(x,y);A.set(f,x),x&&typeof x=="object"&&s in x&&b(x[s]||[])})};const A=new Map;b(a),u.current={data:a,childrenColumnName:s,kvMap:A,getRowKey:c}}return(v=u.current.kvMap)===null||v===void 0?void 0:v.get(p)}return[d]};var __rest$a=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const DEFAULT_PAGE_SIZE=10;function getPaginationParam(a,s){const c={current:a.current,pageSize:a.pageSize};return Object.keys(s&&typeof s=="object"?s:{}).forEach(d=>{const p=a[d];typeof p!="function"&&(c[d]=p)}),c}function usePagination(a,s,c){const u=c&&typeof c=="object"?c:{},{total:d=0}=u,p=__rest$a(u,["total"]),[v,A]=reactExports.useState(()=>({current:"defaultCurrent"in p?p.defaultCurrent:1,pageSize:"defaultPageSize"in p?p.defaultPageSize:DEFAULT_PAGE_SIZE})),b=extendsObject(v,p,{total:d>0?d:a}),g=Math.ceil((d||a)/b.pageSize);b.current>g&&(b.current=g||1);const x=(f,m)=>{A({current:f??1,pageSize:m||b.pageSize})},y=(f,m)=>{var C;c&&((C=c.onChange)===null||C===void 0||C.call(c,f,m)),x(f,m),s(f,m||(b==null?void 0:b.pageSize))};return c===!1?[{},()=>{}]:[Object.assign(Object.assign({},b),{onChange:y}),x]}const ASCEND="ascend",DESCEND="descend",getMultiplePriority=a=>typeof a.sorter=="object"&&typeof a.sorter.multiple=="number"?a.sorter.multiple:!1,getSortFunction=a=>typeof a=="function"?a:a&&typeof a=="object"&&a.compare?a.compare:!1,nextSortDirection=(a,s)=>s?a[a.indexOf(s)+1]:a[0],collectSortStates=(a,s,c)=>{let u=[];const d=(p,v)=>{u.push({column:p,key:getColumnKey(p,v),multiplePriority:getMultiplePriority(p),sortOrder:p.sortOrder})};return(a||[]).forEach((p,v)=>{const A=getColumnPos(v,c);p.children?("sortOrder"in p&&d(p,A),u=[].concat(_toConsumableArray$e(u),_toConsumableArray$e(collectSortStates(p.children,s,A)))):p.sorter&&("sortOrder"in p?d(p,A):s&&p.defaultSortOrder&&u.push({column:p,key:getColumnKey(p,A),multiplePriority:getMultiplePriority(p),sortOrder:p.defaultSortOrder}))}),u},injectSorter=(a,s,c,u,d,p,v,A)=>(s||[]).map((g,x)=>{const y=getColumnPos(x,A);let f=g;if(f.sorter){const m=f.sortDirections||d,C=f.showSorterTooltip===void 0?v:f.showSorterTooltip,S=getColumnKey(f,y),w=c.find(M=>{let{key:D}=M;return D===S}),I=w?w.sortOrder:null,P=nextSortDirection(m,I);let $;if(g.sortIcon)$=g.sortIcon({sortOrder:I});else{const M=m.includes(ASCEND)&&reactExports.createElement(RefIcon$h,{className:classnames(`${a}-column-sorter-up`,{active:I===ASCEND})}),D=m.includes(DESCEND)&&reactExports.createElement(RefIcon$i,{className:classnames(`${a}-column-sorter-down`,{active:I===DESCEND})});$=reactExports.createElement("span",{className:classnames(`${a}-column-sorter`,{[`${a}-column-sorter-full`]:!!(M&&D)})},reactExports.createElement("span",{className:`${a}-column-sorter-inner`,"aria-hidden":"true"},M,D))}const{cancelSort:_,triggerAsc:E,triggerDesc:R}=p||{};let T=_;P===DESCEND?T=R:P===ASCEND&&(T=E);const B=typeof C=="object"?Object.assign({title:T},C):{title:T};f=Object.assign(Object.assign({},f),{className:classnames(f.className,{[`${a}-column-sort`]:I}),title:M=>{const D=`${a}-column-sorters`,O=reactExports.createElement("span",{className:`${a}-column-title`},renderColumnTitle(g.title,M)),H=reactExports.createElement("div",{className:D},O,$);return C?typeof C!="boolean"&&(C==null?void 0:C.target)==="sorter-icon"?reactExports.createElement("div",{className:`${D} ${a}-column-sorters-tooltip-target-sorter`},O,reactExports.createElement(Tooltip,Object.assign({},B),$)):reactExports.createElement(Tooltip,Object.assign({},B),H):H},onHeaderCell:M=>{var D;const O=((D=g.onHeaderCell)===null||D===void 0?void 0:D.call(g,M))||{},H=O.onClick,j=O.onKeyDown;O.onClick=F=>{u({column:g,key:S,sortOrder:P,multiplePriority:getMultiplePriority(g)}),H==null||H(F)},O.onKeyDown=F=>{F.keyCode===KeyCode.ENTER&&(u({column:g,key:S,sortOrder:P,multiplePriority:getMultiplePriority(g)}),j==null||j(F))};const Q=safeColumnTitle(g.title,{}),L=Q==null?void 0:Q.toString();return I&&(O["aria-sort"]=I==="ascend"?"ascending":"descending"),O["aria-label"]=L||"",O.className=classnames(O.className,`${a}-column-has-sorters`),O.tabIndex=0,g.ellipsis&&(O.title=(Q??"").toString()),O}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:injectSorter(a,f.children,c,u,d,p,v,y)})),f}),stateToInfo=a=>{const{column:s,sortOrder:c}=a;return{column:s,order:c,field:s.dataIndex,columnKey:s.key}},generateSorterInfo=a=>{const s=a.filter(c=>{let{sortOrder:u}=c;return u}).map(stateToInfo);if(s.length===0&&a.length){const c=a.length-1;return Object.assign(Object.assign({},stateToInfo(a[c])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return s.length<=1?s[0]||{}:s},getSortData=(a,s,c)=>{const u=s.slice().sort((v,A)=>A.multiplePriority-v.multiplePriority),d=a.slice(),p=u.filter(v=>{let{column:{sorter:A},sortOrder:b}=v;return getSortFunction(A)&&b});return p.length?d.sort((v,A)=>{for(let b=0;b<p.length;b+=1){const g=p[b],{column:{sorter:x},sortOrder:y}=g,f=getSortFunction(x);if(f&&y){const m=f(v,A,y);if(m!==0)return y===ASCEND?m:-m}}return 0}).map(v=>{const A=v[c];return A?Object.assign(Object.assign({},v),{[c]:getSortData(A,s,c)}):v}):d},useFilterSorter=a=>{const{prefixCls:s,mergedColumns:c,sortDirections:u,tableLocale:d,showSorterTooltip:p,onSorterChange:v}=a,[A,b]=reactExports.useState(collectSortStates(c,!0)),g=(S,w)=>{const I=[];return S.forEach((P,$)=>{const _=getColumnPos($,w);if(I.push(getColumnKey(P,_)),Array.isArray(P.children)){const E=g(P.children,_);I.push.apply(I,_toConsumableArray$e(E))}}),I},x=reactExports.useMemo(()=>{let S=!0;const w=collectSortStates(c,!1);if(!w.length){const _=g(c);return A.filter(E=>{let{key:R}=E;return _.includes(R)})}const I=[];function P(_){S?I.push(_):I.push(Object.assign(Object.assign({},_),{sortOrder:null}))}let $=null;return w.forEach(_=>{$===null?(P(_),_.sortOrder&&(_.multiplePriority===!1?S=!1:$=!0)):($&&_.multiplePriority!==!1||(S=!1),P(_))}),I},[c,A]),y=reactExports.useMemo(()=>{var S,w;const I=x.map(P=>{let{column:$,sortOrder:_}=P;return{column:$,order:_}});return{sortColumns:I,sortColumn:(S=I[0])===null||S===void 0?void 0:S.column,sortOrder:(w=I[0])===null||w===void 0?void 0:w.order}},[x]),f=S=>{let w;S.multiplePriority===!1||!x.length||x[0].multiplePriority===!1?w=[S]:w=[].concat(_toConsumableArray$e(x.filter(I=>{let{key:P}=I;return P!==S.key})),[S]),b(w),v(generateSorterInfo(w),w)};return[S=>injectSorter(s,S,x,f,u,d,p),x,y,()=>generateSorterInfo(x)]},fillTitle=(a,s)=>a.map(u=>{const d=Object.assign({},u);return d.title=renderColumnTitle(u.title,s),"children"in d&&(d.children=fillTitle(d.children,s)),d}),useTitleColumns=a=>[reactExports.useCallback(c=>fillTitle(c,a),[a])],RcTable=genTable((a,s)=>{const{_renderTimes:c}=a,{_renderTimes:u}=s;return c!==u}),RcVirtualTable=genVirtualTable((a,s)=>{const{_renderTimes:c}=a,{_renderTimes:u}=s;return c!==u}),genBorderedStyle=a=>{const{componentCls:s,lineWidth:c,lineType:u,tableBorderColor:d,tableHeaderBg:p,tablePaddingVertical:v,tablePaddingHorizontal:A,calc:b}=a,g=`${unit$1(c)} ${u} ${d}`,x=(y,f,m)=>({[`&${s}-${y}`]:{[`> ${s}-container`]:{[`> ${s}-content, > ${s}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${s}-expanded-row-fixed`]:{margin:`${unit$1(b(f).mul(-1).equal())}
|
542
542
|
${unit$1(b(b(m).add(c)).mul(-1).equal())}`}}}}}});return{[`${s}-wrapper`]:{[`${s}${s}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${s}-title`]:{border:g,borderBottom:0},[`> ${s}-container`]:{borderInlineStart:g,borderTop:g,[`
|
543
543
|
> ${s}-content,
|
544
544
|
> ${s}-header,
|