diff --git a/start/src/main/resources/templates/safetyDutyList.html b/start/src/main/resources/templates/safetyDutyList.html new file mode 100644 index 0000000..cabc62f --- /dev/null +++ b/start/src/main/resources/templates/safetyDutyList.html @@ -0,0 +1,23 @@ +--
\ No newline at end of file diff --git a/start/src/main/resources/templates/safetyDutyList/static/css/main.c74fbb90829596498e3a.css b/start/src/main/resources/templates/safetyDutyList/static/css/main.c74fbb90829596498e3a.css new file mode 100644 index 0000000..946d273 --- /dev/null +++ b/start/src/main/resources/templates/safetyDutyList/static/css/main.c74fbb90829596498e3a.css @@ -0,0 +1 @@ +.header-back{background-color:#fff;border-bottom:1px solid #dcdfe6;margin-bottom:0;padding:10px 20px;position:sticky;top:0;z-index:9}.header-back .action,.header-back .action .back{align-items:center;display:flex}.header-back .action .back{cursor:pointer;font-size:14px;gap:10px}.header-back .action .title{font-size:17px}:root{--react-pdf-annotation-layer:1;--annotation-unfocused-field-background:url('data:image/svg+xml;charset=utf-8,');--input-focus-border-color:Highlight;--input-focus-outline:1px solid Canvas;--input-unfocused-border-color:transparent;--input-disabled-border-color:transparent;--input-hover-border-color:#000;--link-outline:none}@media screen and (forced-colors:active){:root{--input-focus-border-color:CanvasText;--input-unfocused-border-color:ActiveText;--input-disabled-border-color:GrayText;--input-hover-border-color:Highlight;--link-outline:1.5px solid LinkText}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .textWidgetAnnotation :is(input,textarea):required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{backdrop-filter:invert(100%)}}.annotationLayer{left:0;pointer-events:none;position:absolute;top:0;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translateX(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{height:100%;position:absolute;width:100%}.annotationLayer section{box-sizing:border-box;margin:0;pointer-events:auto;position:absolute;text-align:initial;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{font-size:1em;height:100%;left:0;position:absolute;top:0;width:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{background:#ff0;box-shadow:0 2px 10px #ff0;opacity:.2}.annotationLayer .textAnnotation img{cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input,.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .textWidgetAnnotation :is(input,textarea){background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px*var(--total-scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .textWidgetAnnotation :is(input,textarea):required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .textWidgetAnnotation :is(input,textarea):hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .textWidgetAnnotation :is(input,textarea):hover{border-radius:2px}.annotationLayer .choiceWidgetAnnotation select:focus,.annotationLayer .textWidgetAnnotation :is(input,textarea):focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-color:transparent;background-image:none}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{font-size:calc(9px*var(--total-scale-factor));min-width:calc(180px*var(--total-scale-factor));pointer-events:none;position:absolute;width:100%}.annotationLayer .popup{background-color:#ff9;border-radius:calc(2px*var(--total-scale-factor));box-shadow:0 calc(2px*var(--total-scale-factor)) calc(5px*var(--total-scale-factor)) #888;cursor:pointer;font:message-box;margin-left:calc(5px*var(--total-scale-factor));max-width:calc(180px*var(--total-scale-factor));padding:calc(6px*var(--total-scale-factor));position:absolute;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px*var(--total-scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px*var(--total-scale-factor))}.annotationLayer .popupContent{border-top:1px solid #333;margin-top:calc(2px*var(--total-scale-factor));padding-top:calc(2px*var(--total-scale-factor))}.annotationLayer .richText>*{font-size:calc(9px*var(--total-scale-factor));white-space:pre-wrap}.annotationLayer .caretAnnotation,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .fileAttachmentAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .highlightAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .lineAnnotation svg line,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .squareAnnotation svg rect,.annotationLayer .squigglyAnnotation,.annotationLayer .stampAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .underlineAnnotation{cursor:pointer}.annotationLayer section svg{height:100%;left:0;position:absolute;top:0;width:100%}.annotationLayer .annotationTextContent{color:transparent;height:100%;opacity:0;pointer-events:none;position:absolute;user-select:none;width:100%}.annotationLayer .annotationTextContent span{display:inline-block;width:100%}:root{--react-pdf-text-layer:1;--highlight-bg-color:#b400aa;--highlight-selected-bg-color:#006400}@media screen and (forced-colors:active){:root{--highlight-bg-color:Highlight;--highlight-selected-bg-color:ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translateX(-100%)}.textLayer{inset:0;line-height:1;overflow:hidden;position:absolute;text-align:initial;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;cursor:text;margin:0;position:absolute;transform-origin:0 0;white-space:pre}.textLayer span.markedContent{height:0;top:0}.textLayer .highlight{background-color:var(--highlight-bg-color);border-radius:4px;margin:-1px;padding:1px}.textLayer .highlight.appended{position:static}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{cursor:default;display:block;inset:100% 0 0;position:absolute;user-select:none;z-index:-1}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{display:none;height:0;left:0;position:absolute;top:0;width:0}.react-pdf__Page__canvas{margin:0 auto}.micro-temp-table-cell-scrollbar{width:15px}.micro-temp-table-cell .micro-temp-btn-link{padding:0}.micro-temp-pro-table-list-toolbar-container{padding-bottom:16px;padding-top:0!important}body,html{height:100%;width:100%}input::-ms-clear,input::-ms-reveal{display:none}*,:after,:before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{font-weight:500;margin-bottom:.5em;margin-top:0}p{margin-bottom:1em;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit;margin-bottom:1em}input[type=number],input[type=password],input[type=text],textarea{-webkit-appearance:none}dl,ol,ul{margin-bottom:1em;margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}pre{margin-bottom:1em;margin-top:0;overflow:auto}figure{margin:0 0 1em}img{border-style:none;vertical-align:middle}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;padding-bottom:.3em;padding-top:.75em;text-align:left}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5em;line-height:inherit;margin-bottom:.5em;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{background-color:#feffe6;padding:.2em}.micro-temp-modal-header{border-bottom:1px solid #ccc!important;margin:0 -24px 15px!important;padding:0 24px 15px!important}.micro-temp-modal-footer{text-align:center!important}.search-layout{position:relative}.search-layout:after{background-color:#f1f1f2;bottom:-10px;content:"";height:10px;left:-20px;position:absolute;right:-20px}.search-layout+.table-layout{padding-top:26px!important}.card-layout{background-color:#fff;border-radius:6px} \ No newline at end of file diff --git a/start/src/main/resources/templates/safetyDutyList/static/jjb.babel.js b/start/src/main/resources/templates/safetyDutyList/static/jjb.babel.js new file mode 100644 index 0000000..bfda984 --- /dev/null +++ b/start/src/main/resources/templates/safetyDutyList/static/jjb.babel.js @@ -0,0 +1 @@ +module.exports={compact:!1,plugins:[["@babel/plugin-proposal-decorators",{legacy:!0}]],presets:[["@babel/preset-env",{targets:{browsers:["ie >= 10"]}}],["@babel/preset-react",{runtime:"automatic"}]]}; \ No newline at end of file diff --git a/start/src/main/resources/templates/safetyDutyList/static/jjb.config.js b/start/src/main/resources/templates/safetyDutyList/static/jjb.config.js new file mode 100644 index 0000000..4724e85 --- /dev/null +++ b/start/src/main/resources/templates/safetyDutyList/static/jjb.config.js @@ -0,0 +1 @@ +module.exports={javaGit:"",javaGitName:"",environment:{development:{javaGitBranch:"",API_HOST:"https://gbs-gateway.qhdsafety.com"},production:{javaGitBranch:"",API_HOST:""}},appIdentifier:"safetyDutyList",contextInject:{appKey:"",fileUrl:"https://jpfz.qhdsafety.com/gbsFileTest/"},windowInject:{title:"微应用模板",links:[],element:{root:{id:"root"}},scripts:[]},server:{port:"8080",host:"127.0.0.1",open:!0},framework:{antd:{"ant-prefix":"micro-temp",fontFamily:"PingFangSC-Regular",colorPrimary:"#1677ff",borderRadius:2}},webpackConfig:{htmlWebpackPluginOption:{inject:!0}}}; \ No newline at end of file diff --git a/start/src/main/resources/templates/safetyDutyList/static/js/185.46e52d05996ddef5e7f4.js b/start/src/main/resources/templates/safetyDutyList/static/js/185.46e52d05996ddef5e7f4.js new file mode 100644 index 0000000..c7c5395 --- /dev/null +++ b/start/src/main/resources/templates/safetyDutyList/static/js/185.46e52d05996ddef5e7f4.js @@ -0,0 +1,2 @@ +/*! For license information please see 185.46e52d05996ddef5e7f4.js.LICENSE.txt */ +(self.webpackChunkjjb_micro_app_safetyDutyList=self.webpackChunkjjb_micro_app_safetyDutyList||[]).push([[185],{84054(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(68645),o=n(59452),i=n(86663),a=n(96540);const s=n(56347),l={parseNumbers:!1,parseBooleans:!1},c={skipNull:!1,skipEmptyString:!1},d=(e,t)=>{var n,d;const{navigateMode:u="push",parseOptions:h,stringifyOptions:p}=t||{},f=Object.assign(Object.assign({},l),h),m=Object.assign(Object.assign({},c),p),g=s.useLocation(),b=null===(n=s.useHistory)||void 0===n?void 0:n.call(s),v=null===(d=s.useNavigate)||void 0===d?void 0:d.call(s),y=(0,o.A)(),x=(0,a.useRef)("function"==typeof e?e():e||{}),w=(0,a.useMemo)(()=>(0,i.parse)(g.search,f),[g.search]),A=(0,a.useMemo)(()=>Object.assign(Object.assign({},x.current),w),[w]);return[A,(0,r.A)(e=>{const t="function"==typeof e?e(A):e;y(),b&&b[u]({hash:g.hash,search:(0,i.stringify)(Object.assign(Object.assign({},w),t),m)||"?"},g.state),v&&v({hash:g.hash,search:(0,i.stringify)(Object.assign(Object.assign({},w),t),m)||"?"},{replace:"replace"===u,state:g.state})})]}},45748(e,t,n){"use strict";n.d(t,{z1:()=>v,cM:()=>l,bK:()=>p,UA:()=>S,uy:()=>c});var r=n(2616),o=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function i(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function a(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function s(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function l(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],l=new r.Y(e),c=l.toHsv(),d=5;d>0;d-=1){var u=new r.Y({h:i(c,d,!0),s:a(c,d,!0),v:s(c,d,!0)});n.push(u)}n.push(l);for(var h=1;h<=4;h+=1){var p=new r.Y({h:i(c,h),s:a(c,h),v:s(c,h)});n.push(p)}return"dark"===t.theme?o.map(function(e){var o=e.index,i=e.amount;return new r.Y(t.backgroundColor||"#141414").mix(n[o],i).toHexString()}):n.map(function(e){return e.toHexString()})}var c={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},d=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];d.primary=d[5];var u=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];u.primary=u[5];var h=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];h.primary=h[5];var p=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];p.primary=p[5];var f=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];f.primary=f[5];var m=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];m.primary=m[5];var g=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];g.primary=g[5];var b=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];b.primary=b[5];var v=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];v.primary=v[5];var y=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];y.primary=y[5];var x=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];x.primary=x[5];var w=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];w.primary=w[5];var A=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];A.primary=A[5];var S={red:d,volcano:u,orange:h,gold:p,yellow:f,lime:m,green:g,cyan:b,blue:v,geekblue:y,purple:x,magenta:w,grey:A},C=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];C.primary=C[5];var $=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];$.primary=$[5];var k=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];k.primary=k[5];var E=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];E.primary=E[5];var O=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];O.primary=O[5];var P=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];P.primary=P[5];var j=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];j.primary=j[5];var I=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];I.primary=I[5];var M=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];M.primary=M[5];var T=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];T.primary=T[5];var _=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];_.primary=_[5];var R=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];R.primary=R[5];var B=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];B.primary=B[5]},14277(e,t,n){"use strict";n.d(t,{L_:()=>_,oX:()=>$});var r=n(82284),o=n(5544),i=n(64467),a=n(89379),s=n(96540),l=n(85530),c=n(23029),d=n(92901),u=n(9417),h=n(85501),p=n(49640);const f=(0,d.A)(function e(){(0,c.A)(this,e)});var m="CALC_UNIT",g=new RegExp(m,"g");function b(e){return"number"==typeof e?"".concat(e).concat(m):e}var v=function(e){(0,h.A)(n,e);var t=(0,p.A)(n);function n(e,o){var a;(0,c.A)(this,n),a=t.call(this),(0,i.A)((0,u.A)(a),"result",""),(0,i.A)((0,u.A)(a),"unitlessCssVar",void 0),(0,i.A)((0,u.A)(a),"lowPriority",void 0);var s=(0,r.A)(e);return a.unitlessCssVar=o,e instanceof n?a.result="(".concat(e.result,")"):"number"===s?a.result=b(e):"string"===s&&(a.result=e),a}return(0,d.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(b(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(b(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(g,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(f);const y=function(e){(0,h.A)(n,e);var t=(0,p.A)(n);function n(e){var r;return(0,c.A)(this,n),r=t.call(this),(0,i.A)((0,u.A)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,d.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(f);const x=function(e,t){var n="css"===e?v:y;return function(e){return new n(e,t)}};const w=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};n(81470);const A=function(e,t,n,r){var i=(0,a.A)({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t,n=(0,o.A)(e,2),r=n[0],a=n[1];(null!=i&&i[r]||null!=i&&i[a])&&(null!==(t=i[a])&&void 0!==t||(i[a]=null==i?void 0:i[r]))});var s=(0,a.A)((0,a.A)({},n),i);return Object.keys(s).forEach(function(e){s[e]===t[e]&&delete s[e]}),s};var S="undefined"!=typeof CSSINJS_STATISTIC,C=!0;function $(){for(var e=arguments.length,t=new Array(e),n=0;n1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());const M=function(e,t){return s.useMemo(function(){var n=I.get(t);if(n)return n;var r=e();return I.set(t,r),r},t)};const T=function(){return{}};const _=function(e){var t=e.useCSP,n=void 0===t?T:t,c=e.useToken,d=e.usePrefix,u=e.getResetStyles,h=e.getCommonStyle,p=e.getCompUnitless;function f(t,i,s){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=Array.isArray(t)?t:[t,t],m=(0,o.A)(f,1)[0],g=f.join("-"),b=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=c(),f=o.theme,v=o.realToken,y=o.hashId,S=o.token,C=o.cssVar,k=d(),E=k.rootPrefixCls,I=k.iconPrefixCls,T=n(),_=C?"css":"js",R=M(function(){var e=new Set;return C&&Object.keys(p.unitless||{}).forEach(function(t){e.add((0,l.Ki)(t,C.prefix)),e.add((0,l.Ki)(t,w(m,C.prefix)))}),x(_,e)},[_,m,null==C?void 0:C.prefix]),B=j(_),F=B.max,D=B.min,z={theme:f,token:S,hashId:y,nonce:function(){return T.nonce},clientOnly:p.clientOnly,layer:b,order:p.order||-999};return"function"==typeof u&&(0,l.IV)((0,a.A)((0,a.A)({},z),{},{clientOnly:!1,path:["Shared",E]}),function(){return u(S,{prefix:{rootPrefixCls:E,iconPrefixCls:I},csp:T})}),[(0,l.IV)((0,a.A)((0,a.A)({},z),{},{path:[g,e,I]}),function(){if(!1===p.injectStyle)return[];var n=O(S),o=n.token,a=n.flush,c=P(m,v,s),d=".".concat(e),u=A(m,v,c,{deprecatedTokens:p.deprecatedTokens});C&&c&&"object"===(0,r.A)(c)&&Object.keys(c).forEach(function(e){c[e]="var(".concat((0,l.Ki)(e,w(m,C.prefix)),")")});var f=$(o,{componentCls:d,prefixCls:e,iconCls:".".concat(I),antCls:".".concat(E),calc:R,max:F,min:D},C?c:u),g=i(f,{hashId:y,prefixCls:e,rootPrefixCls:E,iconPrefixCls:I});a(m,u);var b="function"==typeof h?h(f,e,t,p.resetFont):null;return[!1===p.resetStyle?null:b,g]}),y]}}return{genStyleHooks:function(e,t,n,r){var d=Array.isArray(e)?e[0]:e;function u(e){return"".concat(String(d)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var h=(null==r?void 0:r.unitless)||{},m="function"==typeof p?p(e):{},g=(0,a.A)((0,a.A)({},m),{},(0,i.A)({},u("zIndexPopup"),!0));Object.keys(h).forEach(function(e){g[u(e)]=h[e]});var b=(0,a.A)((0,a.A)({},r),{},{unitless:g,prefixToken:u}),v=f(e,t,n,b),y=function(e,t,n){var r=n.unitless,o=n.injectStyle,i=void 0===o||o,a=n.prefixToken,d=n.ignore,u=function(o){var i=o.rootCls,s=o.cssVar,u=void 0===s?{}:s,h=c().realToken;return(0,l.RC)({path:[e],prefix:u.prefix,key:u.key,unitless:r,ignore:d,token:h,scope:i},function(){var r=P(e,h,t),o=A(e,h,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach(function(e){o[a(e)]=o[e],delete o[e]}),o}),null},h=function(t){var n=c().cssVar;return[function(r){return i&&n?s.createElement(s.Fragment,null,s.createElement(u,{rootCls:t,cssVar:n,component:e}),r):r},null==n?void 0:n.key]};return h}(d,n,b);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=v(e,t),r=(0,o.A)(n,2)[1],i=y(t),a=(0,o.A)(i,2);return[a[0],r,a[1]]}},genSubStyleComponent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=f(e,t,n,(0,a.A)({resetStyle:!1,order:-998},r));return function(e){var t=e.prefixCls,n=e.rootCls;return o(t,void 0===n?t:n),null}},genComponentStyleHook:f}}},85530(e,t,n){"use strict";n.d(t,{Mo:()=>nt,J:()=>x,an:()=>P,lO:()=>Y,Ki:()=>D,zA:()=>B,RC:()=>et,hV:()=>J,IV:()=>Je});var r=n(64467),o=n(5544),i=n(60436),a=n(89379);const s=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var l=n(85089),c=n(96540),d=n.t(c,2),u=(n(28104),n(43210),n(23029)),h=n(92901);function p(e){return e.join("%")}const f=function(){function e(t){(0,u.A)(this,e),(0,r.A)(this,"instanceId",void 0),(0,r.A)(this,"cache",new Map),(0,r.A)(this,"extracted",new Set),this.instanceId=t}return(0,h.A)(e,[{key:"get",value:function(e){return this.opGet(p(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(p(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();var m="data-token-hash",g="data-css-hash",b="__cssinjs_instance__";function v(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(g,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[b]=t[b]||e,t[b]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(g,"]"))).forEach(function(t){var n,o=t.getAttribute(g);r[o]?t[b]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new f(e)}var y=c.createContext({hashPriority:"low",cache:v(),defaultCache:!0});const x=y;var w=n(82284),A=n(20998),S="CALC_UNIT";new RegExp(S,"g");var C=function(){function e(){(0,u.A)(this,e),(0,r.A)(this,"cache",void 0),(0,r.A)(this,"keys",void 0),(0,r.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,h.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(e,t){var n=(0,o.A)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),k+=1}return(0,h.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),O=new C;function P(e){var t=Array.isArray(e)?e:[e];return O.has(t)||O.set(t,new E(t)),O.get(t)}var j=new WeakMap,I={};var M=new WeakMap;function T(e){var t=M.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof E?t+=r.id:r&&"object"===(0,w.A)(r)?t+=T(r):t+=r}),t=s(t),M.set(e,t)),t}function _(e,t){return s("".concat(t,"_").concat(T(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var R=(0,A.A)();function B(e){return"number"==typeof e?"".concat(e,"px"):e}function F(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var i=(0,a.A)((0,a.A)({},o),{},(0,r.A)((0,r.A)({},m,t),g,n)),s=Object.keys(i).map(function(e){var t=i[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"")}var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},z=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},N=function(e,t,n){var r={},i={};return Object.entries(e).forEach(function(e){var t,a,s=(0,o.A)(e,2),l=s[0],c=s[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])i[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[l])){var d,u=D(l,null==n?void 0:n.prefix);r[u]="number"!=typeof c||null!=n&&null!==(d=n.unitless)&&void 0!==d&&d[l]?String(c):"".concat(c,"px"),i[l]="var(".concat(u,")")}}),[i,z(r,t,{scope:null==n?void 0:n.scope})]},L=n(30981),H=(0,a.A)({},d).useInsertionEffect;const W=H?function(e,t,n){return H(function(){return e(),t()},n)}:function(e,t,n){c.useMemo(e,n),(0,L.A)(function(){return t(!0)},n)};const U=void 0!==(0,a.A)({},d).useInsertionEffect?function(e){var t=[],n=!1;return c.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};const V=function(){return!1};function G(e,t,n,r,a){var s=c.useContext(x).cache,l=p([e].concat((0,i.A)(t))),d=U([l]),u=(V(),function(e){s.opUpdate(l,function(t){var r=t||[void 0,void 0],i=(0,o.A)(r,2),a=i[0];var s=[void 0===a?0:a,i[1]||n()];return e?e(s):s})});c.useMemo(function(){u()},[l]);var h=s.opGet(l)[1];return W(function(){null==a||a(h)},function(e){return u(function(t){var n=(0,o.A)(t,2),r=n[0],i=n[1];return e&&0===r&&(null==a||a(h)),[r+1,i]}),function(){s.opUpdate(l,function(t){var n=t||[],i=(0,o.A)(n,2),a=i[0],c=void 0===a?0:a,u=i[1];return 0===c-1?(d(function(){!e&&s.opGet(l)||null==r||r(u,!1)}),null):[c-1,u]})}},[l]),h}var q={},X=new Map;function K(e,t){X.set(e,(X.get(e)||0)-1);var n=new Set;X.forEach(function(e,t){e<=0&&n.add(t)}),X.size-n.size>0&&n.forEach(function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(m,'="').concat(e,'"]')).forEach(function(e){var n;e[b]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}(e,t),X.delete(e)})}var Y=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,a.A)((0,a.A)({},o),t);return r&&(i=r(i)),i},Q="token";function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,c.useContext)(x),d=r.cache.instanceId,u=r.container,h=n.salt,p=void 0===h?"":h,f=n.override,v=void 0===f?q:f,y=n.formatToken,w=n.getComputedToken,A=n.cssVar,S=function(e,t){for(var n=j,r=0;r0?le(ye,--be):0,me--,10===ve&&(me=1,fe--),ve}function Ae(){return ve=be2||ke(ve)>3?"":" "}function Ie(e,t){for(;--t&&Ae()&&!(ve<48||ve>102||ve>57&&ve<65||ve>70&&ve<97););return $e(e,Ce()+(t<6&&32==Se()&&32==Ae()))}function Me(e){for(;Ae();)switch(ve){case e:return be;case 34:case 39:34!==e&&39!==e&&Me(ve);break;case 40:41===e&&Me(e);break;case 92:Ae()}return be}function Te(e,t){for(;Ae()&&e+ve!==57&&(e+ve!==84||47!==Se()););return"/*"+$e(t,be-1)+"*"+ie(47===e?e:Ae())}function _e(e){for(;!ke(Se());)Ae();return $e(e,be)}function Re(e){return Oe(Be("",null,null,null,[""],e=Ee(e),0,[0],e))}function Be(e,t,n,r,o,i,a,s,l){for(var c=0,d=0,u=a,h=0,p=0,f=0,m=1,g=1,b=1,v=0,y=0,x="",w=o,A=i,S=r,C=x;g;)switch(f=y,y=Ae()){case 40:108!=f&&58==le(C,u-1)?(v++,C+="("):C+=Pe(y);break;case 41:v--,C+=")";break;case 34:case 39:case 91:C+=Pe(y);break;case 9:case 10:case 13:case 32:if(v>0){C+=ie(y);break}C+=je(f);break;case 92:C+=Ie(Ce()-1,7);continue;case 47:switch(Se()){case 42:case 47:ue(De(Te(Ae(),Ce()),t,n,l),l),5!=ke(f||1)&&5!=ke(Se()||1)||!de(C)||" "===ce(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[c++]=de(C)*b;case 125*m:case 59:case 0:if(v>0&&y){C+=ie(y);break}switch(y){case 0:case 125:g=0;case 59+d:-1==b&&(C=se(C,/\f/g,"")),p>0&&(de(C)-u||0===m)&&ue(p>32?ze(C+";",r,n,u-1,l):ze(se(C," ","")+";",r,n,u-2,l),l);break;case 59:C+=";";default:if(ue(S=Fe(C,t,n,c,d,o,s,x,w=[],A=[],u,i),i),123===y)if(0===d)Be(C,t,S,S,w,i,u,s,A);else{switch(h){case 99:if(110===le(C,3))break;case 108:if(97===le(C,2))break;default:d=0;case 100:case 109:case 115:}d?Be(e,S,S,r&&ue(Fe(e,S,S,0,0,o,s,x,o,w=[],u,A),A),o,A,u,s,r?w:A):Be(C,S,S,S,[""],A,0,s,A)}}c=d=p=0,m=b=1,x=C="",u=a;break;case 58:u=1+de(C),p=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==we())continue;switch(C+=ie(y),y*m){case 38:b=d>0?1:(C+="\f",-1);break;case 44:if(v>0)break;s[c++]=(de(C)-1)*b,b=1;break;case 64:45===Se()&&(C+=Pe(Ae())),h=Se(),d=u=de(x=C+=_e(Ce())),y++;break;case 45:45===f&&2==de(C)&&(m=0)}}return i}function Fe(e,t,n,r,o,i,a,s,l,c,d,u){for(var h=o-1,p=0===o?i:[""],f=function(e){return e.length}(p),m=0,g=0,b=0;m0?p[v]+" "+y:se(y,/&\f/g,p[v])))&&(l[b++]=x);return xe(e,t,n,0===o?ne:s,l,c,d,u)}function De(e,t,n,r){return xe(e,t,n,te,ie(ve),ce(e,2,-2),0,r)}function ze(e,t,n,r,o){return xe(e,t,n,re,ce(e,0,r),ce(e,r+1,-1),r,o)}var Ne,Le="data-ant-cssinjs-cache-path",He="_FILE_STYLE__";var We=!0;function Ue(e){return function(){if(!Ne&&(Ne={},(0,A.A)())){var e=document.createElement("div");e.className=Le,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,o.A)(t,2),r=n[0],i=n[1];Ne[r]=i});var n,r=document.querySelector("style[".concat(Le,"]"));r&&(We=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ne[e]}var Ve="_multi_value_";function Ge(e){return he(Re(e),pe).replace(/\{%%%\:[^;];}/g,";")}function qe(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,i.A)(n.slice(1))).join(" ")}).join(",")}var Xe=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},s=r.root,l=r.injectHash,c=r.parentSelectors,d=n.hashId,u=n.layer,h=(n.path,n.hashPriority),p=n.transformers,f=void 0===p?[]:p,m=(n.linters,""),g={};function b(t){var r=t.getName(d);if(!g[r]){var i=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,o.A)(i,1)[0];g[r]="@keyframes ".concat(t.getName(d)).concat(a)}}var v=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(t)?t:[t]);return v.forEach(function(t){var r="string"!=typeof t||s?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)b(r);else{var u=f.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(u).forEach(function(t){var r=u[t];if("object"!==(0,w.A)(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===(0,w.A)(e)&&e&&("_skip_check_"in e||Ve in e)}(r)){var p;function k(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;ee[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(b(t),r=t.getName(d)),m+="".concat(n,":").concat(r,";")}var f=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,w.A)(r)&&null!=r&&r[Ve]&&Array.isArray(f)?f.forEach(function(e){k(t,e)}):k(t,f)}else{var v=!1,y=t.trim(),x=!1;(s||l)&&d?y.startsWith("@")?v=!0:y=qe("&"===y?"":t,d,h):!s||d||"&"!==y&&""!==y||(y="",x=!0);var A=e(r,n,{root:x,injectHash:v,parentSelectors:[].concat((0,i.A)(c),[y])}),S=(0,o.A)(A,2),C=S[0],$=S[1];g=(0,a.A)((0,a.A)({},g),$),m+="".concat(y).concat(C)}})}}),s?u&&(m&&(m="@layer ".concat(u.name," {").concat(m,"}")),u.dependencies&&(g["@layer ".concat(u.name)]=u.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(u.name,";")}).join("\n"))):m="{".concat(m,"}"),[m,g]};function Ke(e,t){return s("".concat(e.join("%")).concat(t))}function Ye(){return null}var Qe="style";function Je(e,t){var n=e.token,s=e.path,d=e.hashId,u=e.layer,h=e.nonce,p=e.clientOnly,f=e.order,v=void 0===f?0:f,y=c.useContext(x),w=y.autoClear,S=(y.mock,y.defaultCache),C=y.hashPriority,$=y.container,k=y.ssrInline,E=y.transformers,O=y.linters,P=y.cache,j=y.layer,I=n._tokenKey,M=[I];j&&M.push("layer"),M.push.apply(M,(0,i.A)(s));var T=R;var _=G(Qe,M,function(){var e=M.join("|");if(Ue(e)){var n=function(e){var t=Ne[e],n=null;if(t&&(0,A.A)())if(We)n=He;else{var r=document.querySelector("style[".concat(g,'="').concat(Ne[e],'"]'));r?n=r.innerHTML:delete Ne[e]}return[n,t]}(e),r=(0,o.A)(n,2),i=r[0],a=r[1];if(i)return[i,I,a,{},p,v]}var l=t(),c=Xe(l,{hashId:d,hashPriority:C,layer:j?u:void 0,path:s.join("-"),transformers:E,linters:O}),h=(0,o.A)(c,2),f=h[0],m=h[1],b=Ge(f),y=Ke(M,b);return[b,I,y,m,p,v]},function(e,t){var n=(0,o.A)(e,3)[2];(t||w)&&R&&(0,l.m6)(n,{mark:g,attachTo:$})},function(e){var t=(0,o.A)(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(T&&n!==He){var s={mark:g,prepend:!j&&"queue",attachTo:$,priority:v},c="function"==typeof h?h():h;c&&(s.csp={nonce:c});var d=[],u=[];Object.keys(i).forEach(function(e){e.startsWith("@layer")?d.push(e):u.push(e)}),d.forEach(function(e){(0,l.BD)(Ge(i[e]),"_layer-".concat(e),(0,a.A)((0,a.A)({},s),{},{prepend:!0}))});var p=(0,l.BD)(n,r,s);p[b]=P.instanceId,p.setAttribute(m,I),u.forEach(function(e){(0,l.BD)(Ge(i[e]),"_effect-".concat(e),s)})}}),B=(0,o.A)(_,3),F=B[0],D=B[1],z=B[2];return function(e){var t;return t=k&&!T&&S?c.createElement("style",(0,Z.A)({},(0,r.A)((0,r.A)({},m,D),g,z),{dangerouslySetInnerHTML:{__html:F}})):c.createElement(Ye,null),c.createElement(c.Fragment,null,t,e)}}var Ze="cssVar";const et=function(e,t){var n=e.key,r=e.prefix,a=e.unitless,s=e.ignore,d=e.token,u=e.scope,h=void 0===u?"":u,p=(0,c.useContext)(x),f=p.cache.instanceId,v=p.container,y=d._tokenKey,w=[].concat((0,i.A)(e.path),[n,h,y]);return G(Ze,w,function(){var e=t(),i=N(e,n,{prefix:r,unitless:a,ignore:s,scope:h}),l=(0,o.A)(i,2),c=l[0],d=l[1];return[c,d,Ke(w,d),n]},function(e){var t=(0,o.A)(e,3)[2];R&&(0,l.m6)(t,{mark:g,attachTo:v})},function(e){var t=(0,o.A)(e,3),r=t[1],i=t[2];if(r){var a=(0,l.BD)(r,i,{mark:g,prepend:"queue",attachTo:v,priority:-999});a[b]=f,a.setAttribute(m,n)}})};(0,r.A)((0,r.A)((0,r.A)({},Qe,function(e,t,n){var r=(0,o.A)(e,6),i=r[0],a=r[1],s=r[2],l=r[3],c=r[4],d=r[5],u=(n||{}).plain;if(c)return null;var h=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return h=F(i,a,s,p,u),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=F(Ge(l[e]),a,"_effect-".concat(e),p,u);e.startsWith("@layer")?h=n+h:h+=n}}),[d,s,h]}),Q,function(e,t,n){var r=(0,o.A)(e,5),i=r[2],a=r[3],s=r[4],l=(n||{}).plain;if(!a)return null;var c=i._tokenKey;return[-999,c,F(a,s,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}),Ze,function(e,t,n){var r=(0,o.A)(e,4),i=r[1],a=r[2],s=r[3],l=(n||{}).plain;if(!i)return null;return[-999,a,F(i,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]});var tt=function(){function e(t,n){(0,u.A)(this,e),(0,r.A)(this,"name",void 0),(0,r.A)(this,"style",void 0),(0,r.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,h.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const nt=tt;function rt(e){return e.notSplit=!0,e}rt(["borderTop","borderBottom"]),rt(["borderTop"]),rt(["borderBottom"]),rt(["borderLeft","borderRight"]),rt(["borderLeft"]),rt(["borderRight"])},2616(e,t,n){"use strict";n.d(t,{Y:()=>l});var r=n(64467);const o=Math.round;function i(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const a=(e,t,n)=>0===n?e:e/100;function s(e,t){const n=t||255;return e>n?n:e<0?0:e}class l{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,r.A)(this,"isValid",!0),(0,r.A)(this,"r",0),(0,r.A)(this,"g",0),(0,r.A)(this,"b",0),(0,r.A)(this,"a",1),(0,r.A)(this,"_h",void 0),(0,r.A)(this,"_s",void 0),(0,r.A)(this,"_l",void 0),(0,r.A)(this,"_v",void 0),(0,r.A)(this,"_max",void 0),(0,r.A)(this,"_min",void 0),(0,r.A)(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function o(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(e instanceof l)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=s(e.r),this.g=s(e.g),this.b=s(e.b),this.a="number"==typeof e.a?s(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:o(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],a={r:o(i("r")),g:o(i("g")),b:o(i("b")),a:o(100*i("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>o((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=o(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=o(100*this.getSaturation()),n=o(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=s(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=o(255*n);this.r=e,this.g=e,this.b=e}let i=0,a=0,s=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,d=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=d):l>=1&&l<2?(i=d,a=c):l>=2&&l<3?(a=c,s=d):l>=3&&l<4?(a=d,s=c):l>=4&&l<5?(i=d,s=c):l>=5&&l<6&&(i=c,s=d);const u=n-c/2;this.r=o(255*(i+u)),this.g=o(255*(a+u)),this.b=o(255*(s+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const i=o(255*n);if(this.r=i,this.g=i,this.b=i,t<=0)return;const a=e/60,s=Math.floor(a),l=a-s,c=o(n*(1-t)*255),d=o(n*(1-t*l)*255),u=o(n*(1-t*(1-l))*255);switch(s){case 0:this.g=u,this.b=c;break;case 1:this.r=d,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=d;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=d}}fromHsvString(e){const t=i(e,a);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=i(e,a);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=i(e,(e,t)=>t.includes("%")?o(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}},87064(e,t,n){"use strict";n.d(t,{A:()=>P});var r=n(58168),o=n(5544),i=n(64467),a=n(80045),s=n(96540),l=n(46942),c=n.n(l),d=n(45748),u=n(61053),h=n(89379),p=n(82284),f=n(85089),m=n(72633),g=n(68210);function b(e){return"object"===(0,p.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.A)(e.icon)||"function"==typeof e.icon)}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[r=n,r.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=o;return t},{})}function y(e,t,n){return n?s.createElement(e.tag,(0,h.A)((0,h.A)({key:t},v(e.attrs)),n),(e.children||[]).map(function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})):s.createElement(e.tag,(0,h.A)({key:t},v(e.attrs)),(e.children||[]).map(function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))}function x(e){return(0,d.cM)(e)[0]}function w(e){return e?Array.isArray(e)?e:[e]:[]}var A=["icon","className","onClick","style","primaryColor","secondaryColor"],S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var C=function(e){var t,n,r,o,i,l,c,d,p=e.icon,v=e.className,w=e.onClick,C=e.style,$=e.primaryColor,k=e.secondaryColor,E=(0,a.A)(e,A),O=s.useRef(),P=S;if($&&(P={primaryColor:$,secondaryColor:k||x($)}),t=O,n=(0,s.useContext)(u.A),r=n.csp,o=n.prefixCls,i=n.layer,l="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(l=l.replace(/anticon/g,o)),i&&(l="@layer ".concat(i," {\n").concat(l,"\n}")),(0,s.useEffect)(function(){var e=t.current,n=(0,m.j)(e);(0,f.BD)(l,"@ant-design-icons",{prepend:!i,csp:r,attachTo:n})},[]),c=b(p),d="icon should be icon definiton, but got ".concat(p),(0,g.Ay)(c,"[@ant-design/icons] ".concat(d)),!b(p))return null;var j=p;return j&&"function"==typeof j.icon&&(j=(0,h.A)((0,h.A)({},j),{},{icon:j.icon(P.primaryColor,P.secondaryColor)})),y(j.icon,"svg-".concat(j.name),(0,h.A)((0,h.A)({className:v,onClick:w,style:C,"data-icon":j.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},E),{},{ref:O}))};C.displayName="IconReact",C.getTwoToneColors=function(){return(0,h.A)({},S)},C.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;S.primaryColor=t,S.secondaryColor=n||x(t),S.calculated=!!n};const $=C;function k(e){var t=w(e),n=(0,o.A)(t,2),r=n[0],i=n[1];return $.setTwoToneColors({primaryColor:r,secondaryColor:i})}var E=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k(d.z1.primary);var O=s.forwardRef(function(e,t){var n=e.className,l=e.icon,d=e.spin,h=e.rotate,p=e.tabIndex,f=e.onClick,m=e.twoToneColor,g=(0,a.A)(e,E),b=s.useContext(u.A),v=b.prefixCls,y=void 0===v?"anticon":v,x=b.rootClassName,A=c()(x,y,(0,i.A)((0,i.A)({},"".concat(y,"-").concat(l.name),!!l.name),"".concat(y,"-spin"),!!d||"loading"===l.name),n),S=p;void 0===S&&f&&(S=-1);var C=h?{msTransform:"rotate(".concat(h,"deg)"),transform:"rotate(".concat(h,"deg)")}:void 0,k=w(m),O=(0,o.A)(k,2),P=O[0],j=O[1];return s.createElement("span",(0,r.A)({role:"img","aria-label":l.name},g,{ref:t,tabIndex:S,onClick:f,className:A}),s.createElement($,{icon:l,primaryColor:P,secondaryColor:j,style:C}))});O.displayName="AntdIcon",O.getTwoToneColor=function(){var e=$.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},O.setTwoToneColor=k;const P=O},61053(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(96540).createContext)({})},36207(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},38811(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},26067(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},36029(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},47852(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},93598(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={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"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},14103(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},7541(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},8597(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},30234(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},17850(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},29248(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},50329(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},93567(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},49237(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},80581(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},68e3(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},42877(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},83853(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},77028(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},78504(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(58168),o=n(96540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M368 724H252V608c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v116H72c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h116v116c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V788h116c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v352h72V232h576v560H448v72h272c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM888 625l-104-59.8V458.9L888 399v226z"}},{tag:"path",attrs:{d:"M320 360c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h112z"}}]},name:"video-camera-add",theme:"outlined"};var a=n(87064),s=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},93135(e,t,n){"use strict";n.d(t,{A:()=>LC});var r={};n.r(r),n.d(r,{defaultToken:()=>De,emptyTheme:()=>Ne,hashCode:()=>ze,token:()=>Le,useToken:()=>He});var o=n(55041),i=n(10467),a=n(82284),s=n(5544),l=n(64467),c=n(60436),d=n(89379),u=n(80045),h=n(68e3),p=n(29248),f=n(20867),m=n(37977),g=n(46942),b=n.n(g),v=n(96540),y=n(85530);function x(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function w(e){return Math.min(1,Math.max(0,e))}function A(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function S(e){return e<=1?"".concat(100*Number(e),"%"):e}function C(e){return 1===e.length?"0"+e:String(e)}function $(e,t,n){e=x(e,255),t=x(t,255),n=x(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function E(e,t,n){e=x(e,255),t=x(t,255),n=x(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=0===r?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=T(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=A(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=E(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=E(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=$(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=$(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),O(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i=[C(Math.round(e).toString(16)),C(Math.round(t).toString(16)),C(Math.round(n).toString(16)),C(P(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*x(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*x(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+O(this.r,this.g,this.b,!1),t=0,n=Object.entries(M);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=w(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=w(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=w(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=w(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a1&&void 0!==arguments[1]?arguments[1]:1,r=3735928559^n,o=1103547991^n,i=0;i>>16,2246822507)^Math.imul(o^o>>>13,3266489909),4294967296*(2097151&(o=Math.imul(o^o>>>16,2246822507)^Math.imul(r^r>>>13,3266489909)))+(r>>>0)},Ne=(0,y.an)(function(e){return e}),Le={theme:Ne,token:(0,d.A)((0,d.A)({},De),null===N.A||void 0===N.A||null===(J=N.A.defaultAlgorithm)||void 0===J?void 0:J.call(N.A,null===N.A||void 0===N.A?void 0:N.A.defaultSeed)),hashId:"pro-".concat(ze(JSON.stringify(De)))},He=function(){return Le},We=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r{var t;const n=null!==(t=e.destroyOnHidden)&&void 0!==t?t:e.destroyInactiveTabPane;return Object.assign(Object.assign({},e),{destroyInactiveTabPane:n})}):function(e){return e.filter(e=>e)}((0,At.A)(t).map(e=>{if(v.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=St(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null}))};var $t=n(25905),kt=n(37358),Et=n(14277),Ot=n(53561);const Pt=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,Ot._j)(e,"slide-up"),(0,Ot._j)(e,"slide-down")]]},jt=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:(0,$t.jk)(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,y.zA)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,y.zA)(e.borderRadiusLG)} ${(0,y.zA)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,y.zA)(e.borderRadiusLG)} ${(0,y.zA)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,y.zA)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,y.zA)(e.borderRadiusLG)} 0 0 ${(0,y.zA)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,y.zA)(e.borderRadiusLG)} ${(0,y.zA)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},It=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,$t.dF)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,y.zA)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},$t.L9),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,y.zA)(e.paddingXXS)} ${(0,y.zA)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Mt=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,y.zA)(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Tt=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,y.zA)(e.borderRadius)} ${(0,y.zA)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,y.zA)(e.borderRadius)} ${(0,y.zA)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,y.zA)(e.borderRadius)} ${(0,y.zA)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,y.zA)(e.borderRadius)} 0 0 ${(0,y.zA)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},_t=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},(0,$t.K8)(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn:focus-visible`]:(0,$t.jk)(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},Rt=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,y.zA)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,y.zA)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,y.zA)(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Bt=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,$t.dF)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${(0,y.zA)(e.borderRadiusLG)} ${(0,y.zA)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},(0,$t.K8)(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),_t(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},(0,$t.K8)(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},Ft=(0,kt.OF)("Tabs",e=>{const t=(0,Et.oX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,y.zA)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,y.zA)(e.horizontalItemGutter)}`});return[Tt(t),Rt(t),Mt(t),It(t),jt(t),Bt(t),Pt(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:i}=e,a=t||i,s=n||o,l=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:s,cardHeightLG:l,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(l-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}});const Dt=()=>null;var zt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a,s,l,c,d,u,h;const{type:p,className:f,rootClassName:m,size:g,onEdit:y,hideAdd:x,centered:w,addIcon:A,removeIcon:S,moreIcon:C,more:$,popupClassName:k,children:E,items:O,animated:P,style:j,indicatorSize:I,indicator:M,destroyInactiveTabPane:T,destroyOnHidden:_}=e,R=zt(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:B}=R,{direction:F,tabs:D,getPrefixCls:z,getPopupContainer:N}=v.useContext(bt.QO),L=z("tabs",B),H=(0,vt.A)(L),[W,U,V]=Ft(L,H),G=v.useRef(null);let q;v.useImperativeHandle(t,()=>({nativeElement:G.current})),"editable-card"===p&&(q={onEdit:(e,{key:t,event:n})=>{null==y||y("add"===e?n:t,e)},removeIcon:null!==(n=null!=S?S:null==D?void 0:D.removeIcon)&&void 0!==n?n:v.createElement(ct.A,null),addIcon:(null!=A?A:null==D?void 0:D.addIcon)||v.createElement(mt.A,null),showAdd:!0!==x});const X=z();const K=(0,yt.A)(g),Y=Ct(O,E),Q=function(e,t={inkBar:!0,tabPane:!1}){let n;return n=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof t?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},wt),{motionName:(0,xt.b)(e,"switch")})),n}(L,P),J=Object.assign(Object.assign({},null==D?void 0:D.style),j),Z={align:null!==(r=null==M?void 0:M.align)&&void 0!==r?r:null===(o=null==D?void 0:D.indicator)||void 0===o?void 0:o.align,size:null!==(l=null!==(a=null!==(i=null==M?void 0:M.size)&&void 0!==i?i:I)&&void 0!==a?a:null===(s=null==D?void 0:D.indicator)||void 0===s?void 0:s.size)&&void 0!==l?l:null==D?void 0:D.indicatorSize};return W(v.createElement(gt.A,Object.assign({ref:G,direction:F,getPopupContainer:N},R,{items:Y,className:b()({[`${L}-${K}`]:K,[`${L}-card`]:["card","editable-card"].includes(p),[`${L}-editable-card`]:"editable-card"===p,[`${L}-centered`]:w},null==D?void 0:D.className,f,m,U,V,H),popupClassName:b()(k,U,V,H),style:J,editable:q,more:Object.assign({icon:null!==(h=null!==(u=null!==(d=null===(c=null==D?void 0:D.more)||void 0===c?void 0:c.icon)&&void 0!==d?d:null==D?void 0:D.moreIcon)&&void 0!==u?u:C)&&void 0!==h?h:v.createElement(ft,null),transitionName:`${X}-slide-up`},$),prefixCls:L,animated:Q,indicator:Z,destroyInactiveTabPane:null!=_?_:T})))}),Lt=Nt;Lt.TabPane=Dt;const Ht=Lt;var Wt=n(78551),Ut=n(12533),Vt=n(19853),Gt=function(e){var t=e.componentCls,n=e.antCls;return(0,l.A)({},"".concat(t,"-actions"),(0,l.A)((0,l.A)({marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:e.marginXS,background:e.colorBgContainer,borderBlockStart:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit),minHeight:42},"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),"& > li > div",{flex:1,width:"100%",marginBlock:e.marginSM,marginInline:0,color:e.colorTextSecondary,textAlign:"center",a:{color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}},div:(0,l.A)((0,l.A)({position:"relative",display:"block",minWidth:32,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimaryHover,transition:"color 0.3s"}},"a:not(".concat(n,"-btn),\n > .anticon"),{display:"inline-block",width:"100%",color:e.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),".anticon",{fontSize:e.cardActionIconSize,lineHeight:"22px"}),"&:not(:last-child)":{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}}))};const qt=function(e){var t=e.actions,n=e.prefixCls,r=function(e){return at("ProCardActions",function(t){var n=(0,d.A)((0,d.A)({},t),{},{componentCls:".".concat(e),cardActionIconSize:16});return[Gt(n)]})}(n),o=r.wrapSSR,i=r.hashId;return Array.isArray(t)&&null!=t&&t.length?o((0,Ue.jsx)("ul",{className:b()("".concat(n,"-actions"),i),children:t.map(function(e,r){return(0,Ue.jsx)("li",{style:{width:"".concat(100/t.length,"%"),padding:0,margin:0},className:b()("".concat(n,"-actions-item"),i),children:e},"action-".concat(r))})})):o((0,Ue.jsx)("ul",{className:b()("".concat(n,"-actions"),i),children:t}))};var Xt=n(47152),Kt=n(16370),Yt=new y.Mo("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Qt=function(e){return(0,l.A)({},e.componentCls,(0,l.A)((0,l.A)({"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},"".concat(e.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),"".concat(e.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:e.borderRadius,animationName:Yt,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}))};const Jt=function(e){var t,n=e.style,r=e.prefix,o=(t=r||"ant-pro-card",at("ProCardLoading",function(e){var n=(0,d.A)((0,d.A)({},e),{},{componentCls:".".concat(t)});return[Qt(n)]}));return(0,o.wrapSSR)((0,Ue.jsxs)("div",{className:"".concat(r,"-loading-content"),style:n,children:[(0,Ue.jsx)(Xt.A,{gutter:8,children:(0,Ue.jsx)(Kt.A,{span:22,children:(0,Ue.jsx)("div",{className:"".concat(r,"-loading-block")})})}),(0,Ue.jsxs)(Xt.A,{gutter:8,children:[(0,Ue.jsx)(Kt.A,{span:8,children:(0,Ue.jsx)("div",{className:"".concat(r,"-loading-block")})}),(0,Ue.jsx)(Kt.A,{span:15,children:(0,Ue.jsx)("div",{className:"".concat(r,"-loading-block")})})]}),(0,Ue.jsxs)(Xt.A,{gutter:8,children:[(0,Ue.jsx)(Kt.A,{span:6,children:(0,Ue.jsx)("div",{className:"".concat(r,"-loading-block")})}),(0,Ue.jsx)(Kt.A,{span:18,children:(0,Ue.jsx)("div",{className:"".concat(r,"-loading-block")})})]}),(0,Ue.jsxs)(Xt.A,{gutter:8,children:[(0,Ue.jsx)(Kt.A,{span:13,children:(0,Ue.jsx)("div",{className:"".concat(r,"-loading-block")})}),(0,Ue.jsx)(Kt.A,{span:9,children:(0,Ue.jsx)("div",{className:"".concat(r,"-loading-block")})})]}),(0,Ue.jsxs)(Xt.A,{gutter:8,children:[(0,Ue.jsx)(Kt.A,{span:4,children:(0,Ue.jsx)("div",{className:"".concat(r,"-loading-block")})}),(0,Ue.jsx)(Kt.A,{span:3,children:(0,Ue.jsx)("div",{className:"".concat(r,"-loading-block")})}),(0,Ue.jsx)(Kt.A,{span:16,children:(0,Ue.jsx)("div",{className:"".concat(r,"-loading-block")})})]})]}))};var Zt=n(25640),en=n(68210),tn=["tab","children"],nn=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];const rn=function(e){var t=(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls;if(Zt.A.startsWith("5"))return(0,Ue.jsx)(Ue.Fragment,{});var n=e.key,r=e.tab,o=e.tabKey,i=e.disabled,a=e.destroyInactiveTabPane,s=e.children,l=e.className,c=e.style,h=e.cardProps,p=(0,u.A)(e,nn),m=t("pro-card-tabpane"),g=b()(m,l);return(0,Ue.jsx)(Ht.TabPane,(0,d.A)((0,d.A)({tabKey:o,tab:r,className:g,style:c,disabled:i,destroyInactiveTabPane:a},p),{},{children:(0,Ue.jsx)(dn,(0,d.A)((0,d.A)({},h),{},{children:s}))}),n)};var on=function(e){return{backgroundColor:e.controlItemBgActive,borderColor:e.controlOutline}},an=function(e){var t=e.componentCls;return(0,l.A)((0,l.A)((0,l.A)({},t,(0,d.A)((0,d.A)({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:e.colorBgContainer,borderRadius:e.borderRadius,transition:"all 0.3s"},null==it?void 0:it(e)),{},(0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)({"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)},"&-hoverable":(0,l.A)({cursor:"pointer",transition:"box-shadow 0.3s, border-color 0.3s","&:hover":{borderColor:"transparent",boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017"}},"&".concat(t,"-checked:hover"),{borderColor:e.controlOutline}),"&-checked":(0,d.A)((0,d.A)({},on(e)),{},{"&::after":{visibility:"visible",position:"absolute",insetBlockStart:2,insetInlineEnd:2,opacity:1,width:0,height:0,border:"6px solid ".concat(e.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:2,content:'""'}}),"&:focus":(0,d.A)({},on(e)),"&&-ghost":(0,l.A)({backgroundColor:"transparent"},"> ".concat(t),{"&-header":{paddingInlineEnd:0,paddingBlockEnd:e.padding,paddingInlineStart:0},"&-body":{paddingBlock:0,paddingInline:0,backgroundColor:"transparent"}}),"&&-split > &-body":{paddingBlock:0,paddingInline:0},"&&-contain-card > &-body":{display:"flex"}},"".concat(t,"-body-direction-column"),{flexDirection:"column"}),"".concat(t,"-body-wrap"),{flexWrap:"wrap"}),"&&-collapse",(0,l.A)({},"> ".concat(t),{"&-header":{paddingBlockEnd:e.padding,borderBlockEnd:0},"&-body":{display:"none"}})),"".concat(t,"-header"),{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:e.paddingLG,paddingBlock:e.padding,paddingBlockEnd:0,"&-border":{"&":{paddingBlockEnd:e.padding},borderBlockEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)},"&-collapsible":{cursor:"pointer"}}),"".concat(t,"-title"),{color:e.colorText,fontWeight:500,fontSize:e.fontSizeLG,lineHeight:e.lineHeight}),"".concat(t,"-extra"),{color:e.colorText}),"".concat(t,"-type-inner"),(0,l.A)({},"".concat(t,"-header"),{backgroundColor:e.colorFillAlter})),"".concat(t,"-collapsible-icon"),{marginInlineEnd:e.marginXS,color:e.colorIconHover,":hover":{color:e.colorPrimaryHover},"& svg":{transition:"transform ".concat(e.motionDurationMid)}}),"".concat(t,"-body"),{display:"block",boxSizing:"border-box",height:"100%",paddingInline:e.paddingLG,paddingBlock:e.padding,"&-center":{display:"flex",alignItems:"center",justifyContent:"center"}}),"&&-size-small",(0,l.A)((0,l.A)({},t,{"&-header":{paddingInline:e.paddingSM,paddingBlock:e.paddingXS,paddingBlockEnd:0,"&-border":{paddingBlockEnd:e.paddingXS}},"&-title":{fontSize:e.fontSize},"&-body":{paddingInline:e.paddingSM,paddingBlock:e.paddingSM}}),"".concat(t,"-header").concat(t,"-header-collapsible"),{paddingBlock:e.paddingXS})))),"".concat(t,"-col"),(0,l.A)((0,l.A)({},"&".concat(t,"-split-vertical"),{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}),"&".concat(t,"-split-horizontal"),{borderBlockEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)})),"".concat(t,"-tabs"),(0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)({},"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),(0,l.A)({marginBlockEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:e.marginXS,paddingInlineStart:e.padding})),"".concat(e.antCls,"-tabs-bottom > ").concat(e.antCls,"-tabs-nav"),(0,l.A)({marginBlockEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{paddingInlineStart:e.padding})),"".concat(e.antCls,"-tabs-left"),(0,l.A)({},"".concat(e.antCls,"-tabs-content-holder"),(0,l.A)({},"".concat(e.antCls,"-tabs-content"),(0,l.A)({},"".concat(e.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(e.antCls,"-tabs-left > ").concat(e.antCls,"-tabs-nav"),(0,l.A)({marginInlineEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{paddingBlockStart:e.padding})),"".concat(e.antCls,"-tabs-right"),(0,l.A)({},"".concat(e.antCls,"-tabs-content-holder"),(0,l.A)({},"".concat(e.antCls,"-tabs-content"),(0,l.A)({},"".concat(e.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(e.antCls,"-tabs-right > ").concat(e.antCls,"-tabs-nav"),(0,l.A)({},"".concat(e.antCls,"-tabs-nav-list"),{paddingBlockStart:e.padding})))},sn=function(e){return Array(25).fill(1).map(function(t,n){return function(e,t){var n=t.componentCls;return 0===e?(0,l.A)({},"".concat(n,"-col-0"),{display:"none"}):(0,l.A)({},"".concat(n,"-col-").concat(e),{flexShrink:0,width:"".concat(e/24*100,"%")})}(n,e)})};var ln=["className","style","bodyStyle","headStyle","title","subTitle","extra","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","boxShadow","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","colStyle","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],cn=v.forwardRef(function(e,t){var n,r,o,i=e.className,c=e.style,p=e.bodyStyle,m=e.headStyle,g=e.title,y=e.subTitle,x=e.extra,w=e.wrap,A=void 0!==w&&w,S=e.layout,C=e.loading,$=e.gutter,k=void 0===$?0:$,E=e.tooltip,O=e.split,P=e.headerBordered,j=void 0!==P&&P,I=e.bordered,M=void 0!==I&&I,T=e.boxShadow,_=void 0!==T&&T,R=e.children,B=e.size,F=e.actions,D=e.ghost,z=void 0!==D&&D,N=e.hoverable,L=void 0!==N&&N,H=e.direction,W=e.collapsed,U=e.collapsible,V=void 0!==U&&U,G=e.collapsibleIconRender,q=e.colStyle,X=e.defaultCollapsed,K=void 0!==X&&X,Y=e.onCollapse,Q=e.checked,J=e.onChecked,Z=e.tabs,ee=e.type,te=(0,u.A)(e,ln),ne=(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls,re=(0,Wt.A)()||{lg:!0,md:!0,sm:!0,xl:!1,xs:!1,xxl:!1},oe=(0,Ut.A)(K,{value:W,onChange:Y}),ie=(0,s.A)(oe,2),ae=ie[0],se=ie[1],le=["xxl","xl","lg","md","sm","xs"],ce=function(e,t,n){return e?e.map(function(e){return(0,d.A)((0,d.A)({},e),{},{children:(0,Ue.jsx)(dn,(0,d.A)((0,d.A)({},null==n?void 0:n.cardProps),{},{children:e.children}))})}):((0,en.g9)(!n,"Tabs.TabPane is deprecated. Please use `items` directly."),function(e){return e.filter(function(e){return e})}((0,At.A)(t).map(function(e){if(v.isValidElement(e)){var t=e.key,r=e.props||{},o=r.tab,i=r.children,a=(0,u.A)(r,tn);return(0,d.A)((0,d.A)({key:String(t)},a),{},{children:(0,Ue.jsx)(dn,(0,d.A)((0,d.A)({},null==n?void 0:n.cardProps),{},{children:i})),label:o})}return null})))}(null==Z?void 0:Z.items,R,Z),de=function(e,t){return e?t:{}},ue=ne("pro-card"),he=function(e){return at("ProCard",function(t){var n=(0,d.A)((0,d.A)({},t),{},{componentCls:".".concat(e)});return[an(n),sn(n)]})}(ue),pe=he.wrapSSR,fe=he.hashId,me=(r=k,o=[0,0],(Array.isArray(r)?r:[r,0]).forEach(function(e,t){if("object"===(0,a.A)(e))for(var n=0;n=0&&o<=24)),c=pe((0,Ue.jsx)("div",{style:(0,d.A)((0,d.A)((0,d.A)((0,d.A)({},i),de(be>0,{paddingInlineEnd:be/2,paddingInlineStart:be/2})),de(ve>0,{paddingBlockStart:ve/2,paddingBlockEnd:ve/2})),q),className:s,children:v.cloneElement(e)}));return v.cloneElement(c,{key:"pro-card-col-".concat((null==e?void 0:e.key)||t)})}return e}),Ae=b()("".concat(ue),i,fe,(n={},(0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)(n,"".concat(ue,"-border"),M),"".concat(ue,"-box-shadow"),_),"".concat(ue,"-contain-card"),ye),"".concat(ue,"-loading"),C),"".concat(ue,"-split"),"vertical"===O||"horizontal"===O),"".concat(ue,"-ghost"),z),"".concat(ue,"-hoverable"),L),"".concat(ue,"-size-").concat(B),B),"".concat(ue,"-type-").concat(ee),ee),"".concat(ue,"-collapse"),ae),(0,l.A)(n,"".concat(ue,"-checked"),Q))),Se=b()("".concat(ue,"-body"),fe,(0,l.A)((0,l.A)((0,l.A)({},"".concat(ue,"-body-center"),"center"===S),"".concat(ue,"-body-direction-column"),"horizontal"===O||"column"===H),"".concat(ue,"-body-wrap"),A&&ye)),Ce=p,$e=v.isValidElement(C)?C:(0,Ue.jsx)(Jt,{prefix:ue,style:0===(null==p?void 0:p.padding)||"0px"===(null==p?void 0:p.padding)?{padding:24}:void 0}),ke=V&&void 0===W&&(G?G({collapsed:ae}):(0,Ue.jsx)(h.A,{onClick:function(){"icon"===V&&se(!ae)},rotate:ae?void 0:90,className:"".concat(ue,"-collapsible-icon ").concat(fe).trim()}));return pe((0,Ue.jsxs)("div",(0,d.A)((0,d.A)({className:Ae,style:c,ref:t,onClick:function(e){var t;null==J||J(e),null==te||null===(t=te.onClick)||void 0===t||t.call(te,e)}},(0,Vt.A)(te,["prefixCls","colSpan"])),{},{children:[(g||x||ke)&&(0,Ue.jsxs)("div",{className:b()("".concat(ue,"-header"),fe,(0,l.A)((0,l.A)({},"".concat(ue,"-header-border"),j||"inner"===ee),"".concat(ue,"-header-collapsible"),ke)),style:m,onClick:function(){"header"!==V&&!0!==V||se(!ae)},children:[(0,Ue.jsxs)("div",{className:"".concat(ue,"-title ").concat(fe).trim(),children:[ke,(0,Ue.jsx)(lt,{label:g,tooltip:E,subTitle:y})]}),x&&(0,Ue.jsx)("div",{className:"".concat(ue,"-extra ").concat(fe).trim(),onClick:function(e){return e.stopPropagation()},children:x})]}),Z?(0,Ue.jsx)("div",{className:"".concat(ue,"-tabs ").concat(fe).trim(),children:(0,Ue.jsx)(Ht,(0,d.A)((0,d.A)({onChange:Z.onChange},(0,Vt.A)(Z,["cardProps"])),{},{items:ce,children:C?$e:R}))}):(0,Ue.jsx)("div",{className:Se,style:Ce,children:C?$e:we}),F?(0,Ue.jsx)(qt,{actions:F,prefixCls:ue}):null]})))});const dn=cn;var un=function(e){var t=e.componentCls;return(0,l.A)({},t,{"&-divider":{flex:"none",width:e.lineWidth,marginInline:e.marginXS,marginBlock:e.marginLG,backgroundColor:e.colorSplit,"&-horizontal":{width:"initial",height:e.lineWidth,marginInline:e.marginLG,marginBlock:e.marginXS}},"&&-size-small &-divider":{marginBlock:e.marginLG,marginInline:e.marginXS,"&-horizontal":{marginBlock:e.marginXS,marginInline:e.marginLG}}})};const hn=function(e){var t=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-card"),n="".concat(t,"-divider"),r=function(e){return at("ProCardDivider",function(t){var n=(0,d.A)((0,d.A)({},t),{},{componentCls:".".concat(e)});return[un(n)]})}(t),o=r.wrapSSR,i=r.hashId,a=e.className,s=e.style,c=void 0===s?{}:s,u=e.type,h=b()(n,a,i,(0,l.A)({},"".concat(n,"-").concat(u),u));return o((0,Ue.jsx)("div",{className:h,style:c}))};var pn=dn;pn.isProCard=!0,pn.Divider=hn,pn.TabPane=rn,pn.Group=function(e){return(0,Ue.jsx)(dn,(0,d.A)({bodyStyle:{padding:0}},e))};const fn=pn;var mn=["children","Wrapper"],gn=["children","Wrapper"],bn=(0,v.createContext)({grid:!1,colProps:void 0,rowProps:void 0}),vn=function(e){var t=(0,v.useMemo)(function(){return"object"===(0,a.A)(e)?e:{grid:e}},[e]),n=(0,v.useContext)(bn),r=n.grid,o=n.colProps;return(0,v.useMemo)(function(){return function(e){var t=e.grid,n=e.rowProps,r=e.colProps;return{grid:!!t,RowWrapper:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.children,o=e.Wrapper,i=(0,u.A)(e,mn);return t?(0,Ue.jsx)(Xt.A,(0,d.A)((0,d.A)((0,d.A)({gutter:8},n),i),{},{children:r})):o?(0,Ue.jsx)(o,{children:r}):r},ColWrapper:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.children,o=e.Wrapper,i=(0,u.A)(e,gn),a=(0,v.useMemo)(function(){var e=(0,d.A)((0,d.A)({},r),i);return void 0===e.span&&void 0===e.xs&&(e.xs=24),e},[i]);return t?(0,Ue.jsx)(Kt.A,(0,d.A)((0,d.A)({},a),{},{children:n})):o?(0,Ue.jsx)(o,{children:n}):n}}}({grid:!(!r&&!t.grid),rowProps:null==t?void 0:t.rowProps,colProps:(null==t?void 0:t.colProps)||o,Wrapper:null==t?void 0:t.Wrapper})},[null==t?void 0:t.Wrapper,t.grid,r,JSON.stringify([o,null==t?void 0:t.colProps,null==t?void 0:t.rowProps])])},yn=n(53691);function xn(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:21;if("undefined"==typeof window)return(kn+=1).toFixed(0);if(!window.crypto)return(kn+=1).toFixed(0);for(var t="",n=crypto.getRandomValues(new Uint8Array(e));e--;){var r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},On=function(){return"undefined"==typeof window?En():window.crypto&&window.crypto.randomUUID&&"function"==typeof crypto.randomUUID?crypto.randomUUID():En()},Pn=0;const jn=function(){this.__data__=[],this.size=0};const In=function(e,t){return e===t||e!=e&&t!=t};const Mn=function(e,t){for(var n=e.length;n--;)if(In(e[n][0],t))return n;return-1};var Tn=Array.prototype.splice;const _n=function(e){var t=this.__data__,n=Mn(t,e);return!(n<0)&&(n==t.length-1?t.pop():Tn.call(t,n,1),--this.size,!0)};const Rn=function(e){var t=this.__data__,n=Mn(t,e);return n<0?void 0:t[n][1]};const Bn=function(e){return Mn(this.__data__,e)>-1};const Fn=function(e,t){var n=this.__data__,r=Mn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991};const wo=function(e){return null!=e&&xo(e.length)&&!or(e)};const Ao=function(e){return ho(e)&&wo(e)};const So=function(){return!1};var Co="object"==typeof exports&&exports&&!exports.nodeType&&exports,$o=Co&&"object"==typeof module&&module&&!module.nodeType&&module,ko=$o&&$o.exports===Co?Gn.Buffer:void 0;const Eo=(ko?ko.isBuffer:void 0)||So;var Oo=Function.prototype,Po=Object.prototype,jo=Oo.toString,Io=Po.hasOwnProperty,Mo=jo.call(Object);const To=function(e){if(!ho(e)||"[object Object]"!=nr(e))return!1;var t=so(e);if(null===t)return!0;var n=Io.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&jo.call(n)==Mo};var _o={};_o["[object Float32Array]"]=_o["[object Float64Array]"]=_o["[object Int8Array]"]=_o["[object Int16Array]"]=_o["[object Int32Array]"]=_o["[object Uint8Array]"]=_o["[object Uint8ClampedArray]"]=_o["[object Uint16Array]"]=_o["[object Uint32Array]"]=!0,_o["[object Arguments]"]=_o["[object Array]"]=_o["[object ArrayBuffer]"]=_o["[object Boolean]"]=_o["[object DataView]"]=_o["[object Date]"]=_o["[object Error]"]=_o["[object Function]"]=_o["[object Map]"]=_o["[object Number]"]=_o["[object Object]"]=_o["[object RegExp]"]=_o["[object Set]"]=_o["[object String]"]=_o["[object WeakMap]"]=!1;const Ro=function(e){return ho(e)&&xo(e.length)&&!!_o[nr(e)]};const Bo=function(e){return function(t){return e(t)}};var Fo="object"==typeof exports&&exports&&!exports.nodeType&&exports,Do=Fo&&"object"==typeof module&&module&&!module.nodeType&&module,zo=Do&&Do.exports===Fo&&Un.process,No=function(){try{var e=Do&&Do.require&&Do.require("util").types;return e||zo&&zo.binding&&zo.binding("util")}catch(e){}}();var Lo=No&&No.isTypedArray;const Ho=Lo?Bo(Lo):Ro;const Wo=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var Uo=Object.prototype.hasOwnProperty;const Vo=function(e,t,n){var r=e[t];Uo.call(e,t)&&In(r,n)&&(void 0!==n||t in e)||Ur(e,t,n)};const Go=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}};const pi=hi(di);const fi=function(e,t){return pi(li(e,t,ii),e+"")};const mi=function(e,t,n){if(!rr(n))return!1;var r=typeof t;return!!("number"==r?wo(n)&&Ko(t,n.length):"string"==r&&t in n)&&In(n[t],e)};const gi=function(e){return fi(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&mi(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r2&&void 0!==arguments[2])||arguments[2],r=Object.keys(t).reduce(function(e,n){var r=t[n];return xi(r)||(e[n]=r),e},{});if(Object.keys(r).length<1)return e;if("undefined"==typeof window)return e;if("object"!==(0,a.A)(e)||xi(e)||e instanceof Blob)return e;var o=Array.isArray(e)?[]:{},i=function e(t,i){var s=Array.isArray(t)?[]:{};return null==t||void 0===t?s:(Object.keys(t).forEach(function(n){var l=function e(r,o){return Array.isArray(r)?(r.forEach(function(r,i){if(r){var s=null==o?void 0:o[i];"function"==typeof r&&(o[i]=r(o,n,t)),"object"!==(0,a.A)(r)||Array.isArray(r)||Object.keys(r).forEach(function(o){var i=null==s?void 0:s[o];if("function"==typeof r[o]&&i){var l=r[o](s[o],n,t);s[o]="object"===(0,a.A)(l)?l[o]:l}else"object"===(0,a.A)(r[o])&&Array.isArray(r[o])&&i&&e(r[o],i)}),"object"===(0,a.A)(r)&&Array.isArray(r)&&s&&e(r,s)}}),n):n},c=i?[i,n].flat(1):[n].flat(1),u=t[n],h=(0,vi.A)(r,c),p=function(){var e,r,i=!1;if("function"==typeof h){r=null==h?void 0:h(u,n,t);var c=(0,a.A)(r);"object"!==c&&"undefined"!==c?(e=n,i=!0):e=r}else e=l(h,u);Array.isArray(e)?s=(0,yi.A)(s,e,u):"object"!==(0,a.A)(e)||Array.isArray(o)?"object"===(0,a.A)(e)&&Array.isArray(o)?s=(0,d.A)((0,d.A)({},s),e):null===e&&void 0===e||(s=(0,yi.A)(s,[e],i?r:u)):o=bi(o,e)};if(h&&"function"==typeof h&&p(),"undefined"!=typeof window)if(function(e){return!("object"!==(0,a.A)(e)||null!==e&&(v.isValidElement(e)||e.constructor===RegExp||e instanceof Map||e instanceof Set||e instanceof HTMLElement||e instanceof Blob||e instanceof File||Array.isArray(e)))}(u)){var f=e(u,c);if(Object.keys(f).length<1)return;s=(0,yi.A)(s,[n],f)}else p()}),n?s:t)};return o=Array.isArray(e)&&Array.isArray(o)?(0,c.A)(i(e)):wi({},i(e),o)},Si=n(41816),Ci=n.n(Si);Fe().extend(Ci());var $i={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function ki(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ei=function(e){return!(null==e||!e._isAMomentObject)},Oi=function(e,t,n){if(!t)return e;if(Fe().isDayjs(e)||Ei(e)){if("number"===t)return e.valueOf();if("string"===t)return e.format($i[n]||"YYYY-MM-DD HH:mm:ss");if("string"==typeof t&&"string"!==t)return e.format(t);if("function"==typeof t)return t(e,n)}return e},Pi=function e(t,n,r,o,i){var s={};return"undefined"==typeof window||"object"!==(0,a.A)(t)||xi(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(a){var l,c=i?[i,a].flat(1):[a],d=(0,vi.A)(r,c)||"text",u="text";"string"==typeof d?u=d:d&&(u=d.valueType,l=d.dateFormat);var h=t[a];xi(h)&&o||(!function(e){if(!1===ki(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!1!==ki(n)&&!1!==n.hasOwnProperty("isPrototypeOf")}(h)||Array.isArray(h)||Fe().isDayjs(h)||Ei(h)?Array.isArray(h)?s[a]=h.map(function(t,i){return Fe().isDayjs(t)||Ei(t)?Oi(t,l||n,u):e(t,n,r,o,[a,"".concat(i)].flat(1))}):s[a]=Oi(h,l||n,u):s[a]=e(h,n,r,o,c))}),s)},ji=n(26729),Ii=n(29029),Mi=v.createContext({});const Ti=Mi;var _i=n(79249);const Ri=function(e){var t=Ze(),n=yn.A.useFormInstance();if(!1===e.render)return null;var r=e.onSubmit,o=e.render,i=e.onReset,a=e.searchConfig,s=void 0===a?{}:a,l=e.submitButtonProps,c=e.resetButtonProps,u=rt.useToken().token,h=function(){n.submit(),null==r||r()},p=function(){n.resetFields(),null==i||i()},f=s.submitText,m=void 0===f?t.getMessage("tableForm.submit","提交"):f,g=s.resetText,b=void 0===g?t.getMessage("tableForm.reset","重置"):g,y=[];!1!==c&&y.push((0,v.createElement)(_i.Ay,(0,d.A)((0,d.A)({},(0,Vt.A)(null!=c?c:{},["preventDefault"])),{},{key:"rest",onClick:function(e){var t;null!=c&&c.preventDefault||p(),null==c||null===(t=c.onClick)||void 0===t||t.call(c,e)}}),b)),!1!==l&&y.push((0,v.createElement)(_i.Ay,(0,d.A)((0,d.A)({type:"primary"},(0,Vt.A)(l||{},["preventDefault"])),{},{key:"submit",onClick:function(e){var t;null!=l&&l.preventDefault||h(),null==l||null===(t=l.onClick)||void 0===t||t.call(l,e)}}),m));var x=o?o((0,d.A)((0,d.A)({},e),{},{form:n,submit:h,reset:p}),y):y;return x?Array.isArray(x)?(null==x?void 0:x.length)<1?null:1===(null==x?void 0:x.length)?x[0]:(0,Ue.jsx)("div",{style:{display:"flex",gap:u.marginXS,alignItems:"center"},children:x}):x:null};const Bi={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"};var Fi=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:Bi}))};const Di=v.forwardRef(Fi);var zi=n(93598);const Ni={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};var Li=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:Ni}))};const Hi=v.forwardRef(Li);const Wi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"};var Ui=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:Wi}))};const Vi=v.forwardRef(Ui);var Gi=v.createContext({mode:"edit"}),qi=n(93567),Xi=["creatorButtonProps","deleteIconProps","copyIconProps","arrowSort","upIconProps","downIconProps","itemContainerRender","itemRender","alwaysShowItemLabel","prefixCls","creatorRecord","action","actionGuard","children","actionRender","fields","meta","field","index","formInstance","originName","containerClassName","containerStyle","min","max","count"],Ki=function(e){e.creatorButtonProps;var t,n,r=e.deleteIconProps,a=e.copyIconProps,c=e.arrowSort,h=e.upIconProps,p=e.downIconProps,g=e.itemContainerRender,y=e.itemRender,x=e.alwaysShowItemLabel,w=e.prefixCls,A=(e.creatorRecord,e.action),S=(e.actionGuard,e.children),C=e.actionRender,$=e.fields,k=e.meta,E=e.field,O=e.index,P=e.formInstance,j=e.originName,I=e.containerClassName,M=e.containerStyle,T=e.min,_=e.max,R=e.count,B=(0,u.A)(e,Xi),F=(0,v.useContext)(et).hashId,D=((null===(t=f.Ay.useConfig)||void 0===t?void 0:t.call(f.Ay))||{componentSize:"middle"}).componentSize,z=(0,v.useContext)(Zi),N=(0,v.useRef)(!1),L=(0,v.useContext)(Gi).mode,H=(0,v.useState)(!1),W=(0,s.A)(H,2),U=W[0],V=W[1],G=(0,v.useState)(!1),q=(0,s.A)(G,2),X=q[0],K=q[1];(0,v.useEffect)(function(){return function(){N.current=!0}},[]);var Y=function(){return P.getFieldValue([z.listName,j,null==O?void 0:O.toString()].flat(1).filter(function(e){return null!=e}))},Q={getCurrentRowData:Y,setCurrentRowData:function(e){var t,n=(null==P||null===(t=P.getFieldsValue)||void 0===t?void 0:t.call(P))||{},r=[z.listName,j,null==O?void 0:O.toString()].flat(1).filter(function(e){return null!=e}),o=(0,yi.A)(n,r,(0,d.A)((0,d.A)({},Y()),e||{}));return P.setFieldsValue(o)}},J=function(e){return Array.isArray(e)?e:"function"==typeof e?[e]:(0,At.A)(e)}(S).map(function(e){return"function"==typeof e?null==e?void 0:e(E,O,(0,d.A)((0,d.A)({},A),Q),R):e}).map(function(e,t){var n;return v.isValidElement(e)?v.cloneElement(e,(0,d.A)({key:e.key||(null==e||null===(n=e.props)||void 0===n?void 0:n.name)||t},(null==e?void 0:e.props)||{})):e}),Z=(0,v.useMemo)(function(){if("read"===L)return null;if(!1===a||_===R)return null;var e=a,t=e.Icon,n=void 0===t?Di:t,r=e.tooltipText;return(0,Ue.jsx)(m.A,{title:r,children:X?(0,Ue.jsx)(qi.A,{}):(0,Ue.jsx)(n,{className:b()("".concat(w,"-action-icon action-copy"),F),onClick:(0,i.A)((0,o.A)().mark(function e(){var t;return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return K(!0),t=null==P?void 0:P.getFieldValue([z.listName,j,E.name].filter(function(e){return void 0!==e}).flat(1)),e.next=4,A.add(t,R);case 4:K(!1);case 5:case"end":return e.stop()}},e)}))})},"copy")},[a,_,R,X,w,F,P,z.listName,E.name,j,A]),ee=(0,v.useMemo)(function(){if("read"===L)return null;if(!1===r||T===R)return null;var e=r,t=e.Icon,n=void 0===t?zi.A:t,a=e.tooltipText;return(0,Ue.jsx)(m.A,{title:a,children:U?(0,Ue.jsx)(qi.A,{}):(0,Ue.jsx)(n,{className:b()("".concat(w,"-action-icon action-remove"),F),onClick:(0,i.A)((0,o.A)().mark(function e(){return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return V(!0),e.next=3,A.remove(E.name);case 3:N.current||V(!1);case 4:case"end":return e.stop()}},e)}))})},"delete")},[r,T,R,U,w,F,A,E.name]),te=(0,v.useMemo)(function(){if(!c)return null;if("read"===L)return null;if(!1===h)return null;var e=O-1;if(e<0)return null;var t=h,n=t.Icon,r=void 0===n?Hi:n,a=t.tooltipText;return(0,Ue.jsx)(m.A,{title:a,children:(0,Ue.jsx)(r,{className:b()("".concat(w,"-action-icon action-up"),F),onClick:(0,i.A)((0,o.A)().mark(function t(){return(0,o.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A.move(O,e);case 2:case"end":return t.stop()}},t)}))})},"up")},[h,w,F,A,c]),ne=(0,v.useMemo)(function(){if(!c)return null;if("read"===L)return null;if(!1===p)return null;var e=O+1;if(e>=R)return null;var t=p,n=t.Icon,r=void 0===n?Vi:n,a=t.tooltipText;return(0,Ue.jsx)(m.A,{title:a,children:(0,Ue.jsx)(r,{className:b()("".concat(w,"-action-icon action-down"),F),onClick:(0,i.A)((0,o.A)().mark(function t(){return(0,o.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,A.move(O,e);case 2:case"end":return t.stop()}},t)}))})},"down")},[h,w,F,A,c]),re=(0,v.useMemo)(function(){return[Z,ee,te,ne].filter(function(e){return null!=e})},[Z,ee,te,ne]),oe=(null==C?void 0:C(E,A,re,R))||re,ie=oe.length>0&&"read"!==L?(0,Ue.jsx)("div",{className:b()("".concat(w,"-action"),(0,l.A)({},"".concat(w,"-action-small"),"small"===D),F),children:oe}):null,ae={name:B.name,field:E,index:O,record:null==P||null===(n=P.getFieldValue)||void 0===n?void 0:n.call(P,[z.listName,j,E.name].filter(function(e){return void 0!==e}).flat(1)),fields:$,operation:A,meta:k},se=vn().grid,le=(null==g?void 0:g(J,ae))||J,ce=(null==y?void 0:y({listDom:(0,Ue.jsx)("div",{className:b()("".concat(w,"-container"),I,F),style:(0,d.A)({width:se?"100%":void 0},M),children:le}),action:ie},ae))||(0,Ue.jsxs)("div",{className:b()("".concat(w,"-item"),F,(0,l.A)((0,l.A)({},"".concat(w,"-item-default"),void 0===x),"".concat(w,"-item-show-label"),x)),style:{display:"flex",alignItems:"flex-end"},children:[(0,Ue.jsx)("div",{className:b()("".concat(w,"-container"),I,F),style:(0,d.A)({width:se?"100%":void 0},M),children:le}),ie]});return(0,Ue.jsx)(Zi.Provider,{value:(0,d.A)((0,d.A)({},E),{},{listName:[z.listName,j,E.name].filter(function(e){return void 0!==e}).flat(1)}),children:ce})},Yi=function(e){var t=Ze(),n=e.creatorButtonProps,r=e.prefixCls,a=e.children,l=e.creatorRecord,c=e.action,u=e.fields,h=e.actionGuard,p=e.max,f=e.fieldExtraRender,m=e.meta,g=e.containerClassName,b=e.containerStyle,y=e.onAfterAdd,x=e.onAfterRemove,w=(0,v.useContext)(et).hashId,A=(0,v.useRef)(new Map),S=(0,v.useState)(!1),C=(0,s.A)(S,2),$=C[0],k=C[1],E=(0,v.useMemo)(function(){return u.map(function(e){var t,n,r;null!==(t=A.current)&&void 0!==t&&t.has(e.key.toString())||(null===(r=A.current)||void 0===r||r.set(e.key.toString(),On()));var o=null===(n=A.current)||void 0===n?void 0:n.get(e.key.toString());return(0,d.A)((0,d.A)({},e),{},{uuid:o})})},[u]),O=(0,v.useMemo)(function(){var e=(0,d.A)({},c),t=E.length;return null!=h&&h.beforeAddRow?e.add=(0,i.A)((0,o.A)().mark(function e(){var n,r,i,a,s=arguments;return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n=s.length,r=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:[]);if(!t)throw new Error("nameList is require");var n=null===(e=R())||void 0===e?void 0:e.getFieldValue(t),r=t?(0,yi.A)({},t,n):n,o=(0,c.A)(t);return o.shift(),(0,vi.A)(s(r,C,o),t)},getFieldFormatValueObject:function(e){var t,n=oa(e),r=null===(t=R())||void 0===t?void 0:t.getFieldValue(n),o=n?(0,yi.A)({},n,r):r;return s(o,C,n)},validateFieldsReturnFormatValue:(e=(0,i.A)((0,o.A)().mark(function e(t){var n,r,i;return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Array.isArray(t)||!t){e.next=2;break}throw new Error("nameList must be array");case 2:return e.next=4,null===(n=R())||void 0===n?void 0:n.validateFields(t);case 4:return r=e.sent,i=s(r,C),e.abrupt("return",i||{});case 7:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})};var e},[C,s]),F=(0,v.useMemo)(function(){return v.Children.toArray(n).map(function(e,t){return 0===t&&v.isValidElement(e)&&k?v.cloneElement(e,(0,d.A)((0,d.A)({},e.props),{},{autoFocus:k})):e})},[k,n]),D=(0,v.useMemo)(function(){return"boolean"!=typeof a&&a?a:{}},[a]),z=(0,v.useMemo)(function(){if(!1!==a)return(0,Ue.jsx)(Ri,(0,d.A)((0,d.A)({},D),{},{onReset:function(){var e,t,n=s(null===(e=T.current)||void 0===e?void 0:e.getFieldsValue(),C);if(null==D||null===(t=D.onReset)||void 0===t||t.call(D,n),null==A||A(n),x){var r,o=Object.keys(s(null===(r=T.current)||void 0===r?void 0:r.getFieldsValue(),!1)).reduce(function(e,t){return(0,d.A)((0,d.A)({},e),{},(0,l.A)({},t,n[t]||void 0))},y);w(ra(x,o||{},"set"))}},submitButtonProps:(0,d.A)({loading:g},D.submitButtonProps)}),"submitter")},[a,D,g,s,C,A,x,y,w]),N=(0,v.useMemo)(function(){var e=E?(0,Ue.jsx)(_,{children:F}):F;return r?r(e,z,T.current):e},[E,_,F,r,z]),L=An(e.initialValues);return(0,v.useEffect)(function(){if(!x&&e.initialValues&&L&&!j.request){var t=Cn(e.initialValues,L);(0,en.g9)(t,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ?
: null "),(0,en.g9)(t,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),(0,v.useImperativeHandle)(h,function(){return(0,d.A)((0,d.A)({},T.current),B)},[B,T.current]),(0,v.useEffect)(function(){var e,t,n=s(null===(e=T.current)||void 0===e||null===(t=e.getFieldsValue)||void 0===t?void 0:t.call(e,!0),C);null==p||p(n,(0,d.A)((0,d.A)({},T.current),B))},[]),(0,Ue.jsx)($n.Provider,{value:(0,d.A)((0,d.A)({},B),{},{formRef:T}),children:(0,Ue.jsx)(f.Ay,{componentSize:j.size||M,children:(0,Ue.jsxs)(bn.Provider,{value:{grid:E,colProps:P},children:[!1!==j.component&&(0,Ue.jsx)("input",{type:"text",style:{display:"none"}}),N]})})})}var aa=0;function sa(e){var t=e.extraUrlParams,n=void 0===t?{}:t,r=e.syncToUrl,a=e.isKeyPressSubmit,c=e.syncToUrlAsImportant,h=void 0!==c&&c,p=e.syncToInitialValues,m=void 0===p||p,g=(e.children,e.contentRender,e.submitter,e.fieldProps),y=e.proFieldProps,x=e.formItemProps,w=e.groupProps,A=e.dateFormatter,S=void 0===A?"string":A,C=e.formRef,$=(e.onInit,e.form),k=e.formComponentType,E=(e.onReset,e.grid,e.rowProps,e.colProps,e.omitNil),O=void 0===E||E,P=e.request,j=e.params,I=e.initialValues,M=e.formKey,T=void 0===M?aa:M,_=(e.readonly,e.onLoadingChange),R=e.loading,B=(0,u.A)(e,na),F=(0,v.useRef)({}),D=(0,Ut.A)(!1,{onChange:_,value:R}),z=(0,s.A)(D,2),N=z[0],L=z[1],H=(0,ji.$)({},{disabled:!r}),W=(0,s.A)(H,2),U=W[0],V=W[1],G=(0,v.useRef)(On());(0,v.useEffect)(function(){aa+=0},[]);var q=function(e){var t=(0,v.useRef)(null),n=(0,v.useState)(function(){return e.proFieldKey?e.proFieldKey.toString():(Pn+=1).toString()}),r=(0,s.A)(n,1)[0],a=(0,v.useRef)(r),l=function(){var n=(0,i.A)((0,o.A)().mark(function n(){var r,i,a,s;return(0,o.A)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return null===(r=t.current)||void 0===r||r.abort(),a=new AbortController,t.current=a,n.next=5,Promise.race([null===(i=e.request)||void 0===i?void 0:i.call(e,e.params,e),new Promise(function(e,n){var r;null===(r=t.current)||void 0===r||null===(r=r.signal)||void 0===r||r.addEventListener("abort",function(){n(new Error("aborted"))})})]);case 5:return s=n.sent,n.abrupt("return",s);case 7:case"end":return n.stop()}},n)}));return function(){return n.apply(this,arguments)}}();(0,v.useEffect)(function(){return function(){Pn+=1}},[]);var c=(0,Y.Ay)([a.current,e.params],l,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),d=c.data,u=c.error;return[d||u]}({request:P,params:j,proFieldKey:T}),X=(0,s.A)(q,1)[0],K=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-form"),Q=at("ProForm",function(e){return(0,l.A)({},".".concat(K),(0,l.A)({},"> div:not(".concat(e.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),J=Q.wrapSSR,Z=Q.hashId,ee=(0,v.useState)(function(){return r?ra(r,U,"get"):{}}),te=(0,s.A)(ee,2),ne=te[0],re=te[1],oe=(0,v.useRef)({}),ie=(0,v.useRef)({}),ae=wn(function(e,t,n){return Ai(Pi(e,S,ie.current,t,n),oe.current,t)});(0,v.useEffect)(function(){m||re({})},[m]);var se=wn(function(){return(0,d.A)((0,d.A)({},U),n)});(0,v.useEffect)(function(){r&&V(ra(r,se(),"set"))},[n,se,r]);var le=(0,v.useMemo)(function(){if("undefined"!=typeof window)return k&&["DrawerForm"].includes(k)?function(e){return e.parentNode||document.body}:void 0},[k]),ce=wn((0,i.A)((0,o.A)().mark(function e(){var t,i,a,s,c,u,h;return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(B.onFinish){e.next=2;break}return e.abrupt("return");case 2:if(!N){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,a=null==F||null===(t=F.current)||void 0===t||null===(i=t.getFieldsFormatValue)||void 0===i?void 0:i.call(t),(s=B.onFinish(a))instanceof Promise&&L(!0),e.next=10,s;case 10:r&&(h=Object.keys(null==F||null===(c=F.current)||void 0===c||null===(u=c.getFieldsFormatValue)||void 0===u?void 0:u.call(c,void 0,!1)).reduce(function(e,t){var n;return(0,d.A)((0,d.A)({},e),{},(0,l.A)({},t,null!==(n=a[t])&&void 0!==n?n:void 0))},n),Object.keys(U).forEach(function(e){!1===h[e]||0===h[e]||h[e]||(h[e]=void 0)}),V(ra(r,h,"set"))),L(!1),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(4),L(!1);case 18:case"end":return e.stop()}},e,null,[[4,14]])})));return(0,v.useImperativeHandle)(C,function(){return F.current},[!X]),!X&&e.request?(0,Ue.jsx)("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:(0,Ue.jsx)(Ii.A,{})}):J((0,Ue.jsx)(Gi.Provider,{value:{mode:e.readonly?"read":"edit"},children:(0,Ue.jsx)(Je,{needDeps:!0,children:(0,Ue.jsx)(Ti.Provider,{value:{formRef:F,fieldProps:g,proFieldProps:y,formItemProps:x,groupProps:w,formComponentType:k,getPopupContainer:le,formKey:G.current,setFieldValueType:function(e,t){var n=t.valueType,r=void 0===n?"text":n,o=t.dateFormat,i=t.transform;Array.isArray(e)&&(oe.current=(0,yi.A)(oe.current,e,i),ie.current=(0,yi.A)(ie.current,e,{valueType:r,dateFormat:o}))}},children:(0,Ue.jsx)(Zi.Provider,{value:{},children:(0,Ue.jsx)(yn.A,(0,d.A)((0,d.A)({onKeyPress:function(e){var t;a&&("Enter"===e.key&&(null===(t=F.current)||void 0===t||t.submit()))},autoComplete:"off",form:$},(0,Vt.A)(B,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(e){F.current&&(F.current.nativeElement=null==e?void 0:e.nativeElement)},initialValues:h?(0,d.A)((0,d.A)((0,d.A)({},I),X),ne):(0,d.A)((0,d.A)((0,d.A)({},ne),I),X),onValuesChange:function(e,t){var n;null==B||null===(n=B.onValuesChange)||void 0===n||n.call(B,ae(e,!!O),ae(t,!!O))},className:b()(e.className,K,Z),onFinish:ce,children:(0,Ue.jsx)(ia,(0,d.A)((0,d.A)({transformKey:ae,autoComplete:"off",loading:N,onUrlSearchChange:V},e),{},{formRef:F,initialValues:(0,d.A)((0,d.A)({},I),X)}))}))})})})}))}var la=n(6984),ca=function(e){return(0,l.A)({},e.componentCls,{"&-title":{marginBlockEnd:e.marginXL,fontWeight:"bold"},"&-container":(0,l.A)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(e.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(0,l.A)((0,l.A)((0,l.A)((0,l.A)({display:"block",width:"100%"},"".concat(e.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(e.componentCls,"-container"),{paddingInlineStart:16}),"".concat(e.antCls,"-space-item,").concat(e.antCls,"-form-item"),{width:"100%"}),"".concat(e.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};var da=v.forwardRef(function(e,t){var n,r=v.useContext(Ti).groupProps,o=(0,d.A)((0,d.A)({},r),e),i=o.children,a=o.collapsible,c=o.defaultCollapsed,u=o.style,p=o.labelLayout,m=o.title,g=void 0===m?e.label:m,y=o.tooltip,x=o.align,w=void 0===x?"start":x,A=o.direction,S=o.size,C=void 0===S?32:S,$=o.titleStyle,k=o.titleRender,E=o.spaceProps,O=o.extra,P=o.autoFocus,j=(0,Ut.A)(function(){return c||!1},{value:e.collapsed,onChange:e.onCollapse}),I=(0,s.A)(j,2),M=I[0],T=I[1],_=(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls,R=vn(e),B=R.ColWrapper,F=R.RowWrapper,D=_("pro-form-group"),z=(n=D,at("ProFormGroup",function(e){var t=(0,d.A)((0,d.A)({},e),{},{componentCls:".".concat(n)});return[ca(t)]})),N=z.wrapSSR,L=z.hashId,H=a&&(0,Ue.jsx)(h.A,{style:{marginInlineEnd:8},rotate:M?void 0:90}),W=(0,Ue.jsx)(lt,{label:H?(0,Ue.jsxs)("div",{children:[H,g]}):g,tooltip:y}),U=(0,v.useCallback)(function(e){var t=e.children;return(0,Ue.jsx)(la.A,(0,d.A)((0,d.A)({},E),{},{className:b()("".concat(D,"-container ").concat(L),null==E?void 0:E.className),size:C,align:w,direction:A,style:(0,d.A)({rowGap:0},null==E?void 0:E.style),children:t}))},[w,D,A,L,C,E]),V=k?k(W,e):W,G=(0,v.useMemo)(function(){var e=[],t=v.Children.toArray(i).map(function(t,n){var r;return v.isValidElement(t)&&null!=t&&null!==(r=t.props)&&void 0!==r&&r.hidden?(e.push(t),null):0===n&&v.isValidElement(t)&&P?v.cloneElement(t,(0,d.A)((0,d.A)({},t.props),{},{autoFocus:P})):t});return[(0,Ue.jsx)(F,{Wrapper:U,children:t},"children"),e.length>0?(0,Ue.jsx)("div",{style:{display:"none"},children:e}):null]},[i,F,U,P]),q=(0,s.A)(G,2),X=q[0],K=q[1];return N((0,Ue.jsx)(B,{children:(0,Ue.jsxs)("div",{className:b()(D,L,(0,l.A)({},"".concat(D,"-twoLine"),"twoLine"===p)),style:u,ref:t,children:[K,(g||y||O)&&(0,Ue.jsx)("div",{className:"".concat(D,"-title ").concat(L).trim(),style:$,onClick:function(){T(!M)},children:O?(0,Ue.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[V,(0,Ue.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:O})]}):V}),(0,Ue.jsx)("div",{style:{display:a&&M?"none":void 0},children:X})]})}))});da.displayName="ProForm-Group";const ua=da;function ha(e,t){var n=wn(e),r=(0,v.useRef)(),a=(0,v.useCallback)(function(){r.current&&(clearTimeout(r.current),r.current=null)},[]),s=(0,v.useCallback)((0,i.A)((0,o.A)().mark(function e(){var s,l,c,d=arguments;return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(s=d.length,l=new Array(s),c=0;ce?"function"==typeof e?e():e:null;var wa=n(40682),Aa=n(80427),Sa=n(99077),Ca=n(95201),$a=n(20791),ka=n(13950);const Ea=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:d,colorBgElevated:u,popoverBg:h,titleBorderBottom:p,innerContentPadding:f,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},(0,$t.dF)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":u,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:o,borderBottom:p,padding:m},[`${t}-inner-content`]:{color:n,padding:f}})},(0,Ca.Ay)(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Oa=e=>{const{componentCls:t}=e;return{[t]:ka.s.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},Pa=(0,kt.OF)("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=(0,Et.oX)(e,{popoverBg:t,popoverColor:n});return[Ea(r),Oa(r),(0,Sa.aB)(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:d,paddingSM:u}=e,h=n-r,p=h/2,f=h/2-t,m=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},(0,$a.n)(e)),(0,Ca.Ke)({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${p}px ${m}px ${f}px`:0,titleBorderBottom:i?`${t}px ${c} ${d}`:"none",innerContentPadding:i?`${u}px ${m}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var ja=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe||t?v.createElement(v.Fragment,null,e&&v.createElement("div",{className:`${n}-title`},e),t&&v.createElement("div",{className:`${n}-inner-content`},t)):null,Ma=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e,c=xa(a),d=xa(s),u=b()(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return v.createElement("div",{className:u,style:o},v.createElement("div",{className:`${n}-arrow`}),v.createElement(Aa.z,Object.assign({},e,{className:t,prefixCls:n}),l||v.createElement(Ia,{prefixCls:n,title:c,content:d})))},Ta=e=>{const{prefixCls:t,className:n}=e,r=ja(e,["prefixCls","className"]),{getPrefixCls:o}=v.useContext(bt.QO),i=o("popover",t),[a,s,l]=Pa(i);return a(v.createElement(Ma,Object.assign({},r,{prefixCls:i,hashId:s,className:b()(n,l)})))};var _a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:s,placement:l="top",trigger:c="hover",children:d,mouseEnterDelay:u=.1,mouseLeaveDelay:h=.1,onOpenChange:p,overlayStyle:f={},styles:g,classNames:y}=e,x=_a(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,className:A,style:S,classNames:C,styles:$}=(0,bt.TP)("popover"),k=w("popover",o),[E,O,P]=Pa(k),j=w(),I=b()(s,O,P,A,C.root,null==y?void 0:y.root),M=b()(C.body,null==y?void 0:y.body),[T,_]=(0,Ut.A)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),R=(e,t)=>{_(e,!0),null==p||p(e,t)},B=xa(i),F=xa(a);return E(v.createElement(m.A,Object.assign({placement:l,trigger:c,mouseEnterDelay:u,mouseLeaveDelay:h},x,{prefixCls:k,classNames:{root:I,body:M},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),S),f),null==g?void 0:g.root),body:Object.assign(Object.assign({},$.body),null==g?void 0:g.body)},ref:t,open:T,onOpenChange:e=>{R(e)},overlay:B||F?v.createElement(Ia,{prefixCls:k,title:B,content:F}):null,transitionName:(0,xt.b)(j,"zoom-big",x.transitionName),"data-popover-inject":!0}),(0,wa.Ob)(d,{onKeyDown:e=>{var t,n;(0,v.isValidElement)(d)&&(null===(n=null==d?void 0:(t=d.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===ya.A.ESC&&R(!1,e)})(e)}})))});Ra._InternalPanelDoNotUseOrYouWillBeFired=Ta;const Ba=Ra;var Fa=function(e){return(0,l.A)({},e.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(e.colorSplit)})};var Da=function(e){var t=Ze(),n=e.onClear,r=e.onConfirm,o=e.disabled,i=e.footerRender,a=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-core-dropdown-footer"),s=function(e){return at("DropdownFooter",function(t){var n=(0,d.A)((0,d.A)({},t),{},{componentCls:".".concat(e)});return[Fa(n)]})}(a),l=s.wrapSSR,c=s.hashId,u=[(0,Ue.jsx)(_i.Ay,{style:{visibility:n?"visible":"hidden"},type:"link",size:"small",disabled:o,onClick:function(e){n&&n(e),e.stopPropagation()},children:t.getMessage("form.lightFilter.clear","清除")},"clear"),(0,Ue.jsx)(_i.Ay,{"data-type":"confirm",type:"primary",size:"small",onClick:r,disabled:o,children:t.getMessage("form.lightFilter.confirm","确认")},"confirm")];if(!1===i||!1===(null==i?void 0:i(r,n)))return null;var h=(null==i?void 0:i(r,n))||u;return l((0,Ue.jsx)("div",{className:b()(a,c),onClick:function(e){return"confirm"!==e.target.getAttribute("data-type")&&e.stopPropagation()},children:h}))},za=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Na=function(e){return"*"===e||"x"===e||"X"===e},La=function(e){var t=parseInt(e,10);return isNaN(t)?e:t},Ha=function(e,t){if(Na(e)||Na(t))return 0;var n=function(e,t){return(0,a.A)(e)!==(0,a.A)(t)?[String(e),String(t)]:[e,t]}(La(e),La(t)),r=(0,s.A)(n,2),o=r[0],i=r[1];return o>i?1:o-1?{open:e,onOpenChange:t}:{visible:e,onVisibleChange:t};return ba(n)},qa=function(e){return(0,l.A)((0,l.A)((0,l.A)({},"".concat(e.componentCls,"-label"),{cursor:"pointer"}),"".concat(e.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(e.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};var Xa=function(e){var t=e.children,n=e.label,r=e.footer,o=e.open,i=e.onOpenChange,a=e.disabled,s=e.onVisibleChange,c=e.visible,u=e.footerRender,h=e.placement,p=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-core-field-dropdown"),m=function(e){return at("FilterDropdown",function(t){var n=(0,d.A)((0,d.A)({},t),{},{componentCls:".".concat(e)});return[qa(n)]})}(p),g=m.wrapSSR,y=m.hashId,x=Ga(o||c||!1,i||s),w=(0,v.useRef)(null);return g((0,Ue.jsx)(Ba,(0,d.A)((0,d.A)({placement:h,trigger:["click"]},x),{},{styles:{body:{padding:0}},content:(0,Ue.jsxs)("div",{ref:w,className:b()("".concat(p,"-overlay"),(0,l.A)((0,l.A)({},"".concat(p,"-overlay-").concat(h),h),"hashId",y)),children:[(0,Ue.jsx)(f.Ay,{getPopupContainer:function(){return w.current||document.body},children:(0,Ue.jsx)("div",{className:"".concat(p,"-content ").concat(y).trim(),children:t})}),r&&(0,Ue.jsx)(Da,(0,d.A)({disabled:a,footerRender:u},r))]}),children:(0,Ue.jsx)("span",{className:"".concat(p,"-label ").concat(y).trim(),children:n})})))},Ka=n(36029),Ya=n(14103),Qa=function(e){return(0,l.A)({},e.componentCls,(0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)({display:"inline-flex",gap:e.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:e.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:e.colorBgTextHover},"&-active":(0,l.A)({paddingBlock:0,paddingInline:8,backgroundColor:e.colorBgTextHover},"&".concat(e.componentCls,"-allow-clear:hover:not(").concat(e.componentCls,"-disabled)"),(0,l.A)((0,l.A)({},"".concat(e.componentCls,"-arrow"),{display:"none"}),"".concat(e.componentCls,"-close"),{display:"inline-flex"}))},"".concat(e.antCls,"-select"),(0,l.A)({},"".concat(e.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(e.antCls,"-picker"),(0,l.A)({},"".concat(e.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",(0,l.A)((0,l.A)({color:e.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},"&".concat(e.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:e.colorTextPlaceholder,borderRadius:"50%"}),"&:hover",{color:e.colorIconHover})),"&-disabled",(0,l.A)({color:e.colorTextPlaceholder,cursor:"not-allowed"},"".concat(e.componentCls,"-icon"),{color:e.colorTextPlaceholder})),"&-small",(0,l.A)((0,l.A)((0,l.A)({height:"24px",paddingBlock:0,paddingInline:4,fontSize:e.fontSizeSM,lineHeight:"24px"},"&".concat(e.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),"".concat(e.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),"".concat(e.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"})),"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(e.lineWidth,"px solid ").concat(e.colorBorder),borderRadius:"@border-radius-base"}),"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),"&-bordered&-active",{backgroundColor:e.colorBgContainer}))};var Ja=function(e,t){var n,r,o,i=e.label,a=e.onClear,s=e.value,c=e.disabled,u=e.onLabelClick,h=e.ellipsis,p=e.placeholder,m=e.className,g=e.formatter,y=e.bordered,x=e.style,w=e.downIcon,A=e.allowClear,S=void 0===A||A,C=e.valueMaxLength,$=void 0===C?41:C,k=((null===f.Ay||void 0===f.Ay||null===(n=f.Ay.useConfig)||void 0===n?void 0:n.call(f.Ay))||{componentSize:"middle"}).componentSize,E=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-core-field-label"),O=function(e){return at("FieldLabel",function(t){var n=(0,d.A)((0,d.A)({},t),{},{componentCls:".".concat(e)});return[Qa(n)]})}(E),P=O.wrapSSR,j=O.hashId,I=Ze(),M=(0,v.useRef)(null),T=(0,v.useRef)(null);(0,v.useImperativeHandle)(t,function(){return{labelRef:T,clearRef:M}});var _=function(e){return g?g(e):Array.isArray(e)?(t=e).every(function(e){return"string"==typeof e})?t.join(","):t.map(function(e,n){var r=n===t.length-1?"":",";return"string"==typeof e?(0,Ue.jsxs)("span",{children:[e,r]},n):(0,Ue.jsxs)("span",{style:{display:"flex"},children:[e,r]},n)}):e;var t};return P((0,Ue.jsxs)("span",{className:b()(E,j,"".concat(E,"-").concat(null!==(r=null!==(o=e.size)&&void 0!==o?o:k)&&void 0!==r?r:"middle"),(0,l.A)((0,l.A)((0,l.A)((0,l.A)({},"".concat(E,"-active"),(Array.isArray(s)?s.length>0:!!s)||0===s),"".concat(E,"-disabled"),c),"".concat(E,"-bordered"),y),"".concat(E,"-allow-clear"),S),m),style:x,ref:T,onClick:function(){var t;null==e||null===(t=e.onClick)||void 0===t||t.call(e)},children:[function(e,t){if(null!=t&&""!==t&&(!Array.isArray(t)||t.length)){var n,r,o=e?(0,Ue.jsxs)("span",{onClick:function(){null==u||u()},className:"".concat(E,"-text"),children:[e,": "]}):"",i=_(t);if(!h)return(0,Ue.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[o,_(t)]});var a=(s=Array.isArray(t)&&t.length>1,l=I.getMessage("form.lightFilter.itemUnit","项"),"string"==typeof i&&i.length>$&&s?"...".concat(t.length).concat(l):"");return(0,Ue.jsxs)("span",{title:"string"==typeof i?i:void 0,style:{display:"inline-flex",alignItems:"center"},children:[o,(0,Ue.jsx)("span",{style:{paddingInlineStart:4,display:"flex"},children:"string"==typeof i?null==i||null===(n=i.toString())||void 0===n||null===(r=n.slice)||void 0===r?void 0:r.call(n,0,$):i}),a]})}var s,l;return e||p}(i,s),(s||0===s)&&S&&(0,Ue.jsx)(Ka.A,{role:"button",title:I.getMessage("form.lightFilter.clear","清除"),className:b()("".concat(E,"-icon"),j,"".concat(E,"-close")),onClick:function(e){c||null==a||a(),e.stopPropagation()},ref:M}),!1!==w?null!=w?w:(0,Ue.jsx)(Ya.A,{className:b()("".concat(E,"-icon"),j,"".concat(E,"-arrow"))}):null]}))},Za=v.forwardRef(Ja),es=function(e){return(0,l.A)((0,l.A)({},"".concat(e.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(e.componentCls,"-container"),(0,l.A)({},"".concat(e.antCls,"-form-item"),{marginBlockEnd:0}))};var ts=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],ns=function(e){var t=e.label,n=e.size,r=e.disabled,o=e.onChange,i=e.className,c=e.style,h=e.children,p=e.valuePropName,m=e.placeholder,g=e.labelFormatter,y=e.bordered,x=e.footerRender,w=e.allowClear,A=e.otherFieldProps,S=e.valueType,C=e.placement,$=(0,u.A)(e,ts),k=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-field-light-wrapper"),E=function(e){return at("LightWrapper",function(t){var n=(0,d.A)((0,d.A)({},t),{},{componentCls:".".concat(e)});return[es(n)]})}(k),O=E.wrapSSR,P=E.hashId,j=(0,v.useState)(e[p]),I=(0,s.A)(j,2),M=I[0],T=I[1],_=(0,Ut.A)(!1),R=(0,s.A)(_,2),B=R[0],F=R[1],D=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r(e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:d,colorTextHeading:u}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:d,color:u,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}})(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1});var xs=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=v.createElement(fs.A,null),showCancel:d=!0,close:u,onConfirm:h,onCancel:p,onPopupClick:f}=e,{getPrefixCls:m}=v.useContext(bt.QO),[g]=(0,bs.A)("Popconfirm",vs.A.Popconfirm),b=xa(o),y=xa(i);return v.createElement("div",{className:`${t}-inner-content`,onClick:f},v.createElement("div",{className:`${t}-message`},c&&v.createElement("span",{className:`${t}-message-icon`},c),v.createElement("div",{className:`${t}-message-text`},b&&v.createElement("div",{className:`${t}-title`},b),y&&v.createElement("div",{className:`${t}-description`},y))),v.createElement("div",{className:`${t}-buttons`},d&&v.createElement(_i.Ay,Object.assign({onClick:p,size:"small"},r),a||(null==g?void 0:g.cancelText)),v.createElement(ms.A,{buttonProps:Object.assign(Object.assign({size:"small"},(0,gs.DU)(l)),n),actionFn:h,close:u,prefixCls:m("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(null==g?void 0:g.okText))))},As=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=xs(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=v.useContext(bt.QO),s=a("popconfirm",t),[l]=ys(s);return l(v.createElement(Ta,{placement:n,className:b()(s,r),style:o,content:v.createElement(ws,Object.assign({prefixCls:s},i))}))};var Ss=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,placement:i="top",trigger:a="click",okType:s="primary",icon:l=v.createElement(fs.A,null),children:c,overlayClassName:d,onOpenChange:u,onVisibleChange:h,overlayStyle:p,styles:f,classNames:m}=e,g=Ss(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:x,style:w,classNames:A,styles:S}=(0,bt.TP)("popconfirm"),[C,$]=(0,Ut.A)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),k=(e,t)=>{$(e,!0),null==h||h(e),null==u||u(e,t)},E=y("popconfirm",o),O=b()(E,x,d,A.root,null==m?void 0:m.root),P=b()(A.body,null==m?void 0:m.body),[j]=ys(E);return j(v.createElement(Ba,Object.assign({},(0,Vt.A)(g,["title"]),{trigger:a,placement:i,onOpenChange:(t,n)=>{const{disabled:r=!1}=e;r||k(t,n)},open:C,ref:t,classNames:{root:O,body:P},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},S.root),w),p),null==f?void 0:f.root),body:Object.assign(Object.assign({},S.body),null==f?void 0:f.body)},content:v.createElement(ws,Object.assign({okType:s,icon:l},e,{prefixCls:E,close:e=>{k(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(void 0,t)},onCancel:t=>{var n;k(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)}})),"data-popover-inject":!0}),c))});Cs._InternalPanelDoNotUseOrYouWillBeFired=As;const $s=Cs,ks=(e,t,n)=>{const r=v.useRef({});return[function(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const a=new Map;function s(e){e.forEach((e,r)=>{const o=n(e,r);a.set(o,e),e&&"object"==typeof e&&t in e&&s(e[t]||[])})}s(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return null===(i=r.current.kvMap)||void 0===i?void 0:i.get(o)}]};var Es=["map_row_parentKey"],Os=["map_row_parentKey","map_row_key"],Ps=["map_row_key"],js=function(e){return(ps.Ay.warn||ps.Ay.warning)(e)},Is=function(e){return Array.isArray(e)?e.join(","):e};function Ms(e,t){var n,r=e.getRowKey,o=e.row,i=e.data,s=e.childrenColumnName,c=void 0===s?"children":s,h=null===(n=Is(e.key))||void 0===n?void 0:n.toString(),p=new Map;"top"===t&&p.set(h,(0,d.A)((0,d.A)({},p.get(h)),o)),function e(t,n,o){t.forEach(function(t,i){var s=10*(o||0)+i,l=r(t,s).toString();t&&"object"===(0,a.A)(t)&&c in t&&e(t[c]||[],l,s);var u=(0,d.A)((0,d.A)({},t),{},{map_row_key:l,children:void 0,map_row_parentKey:n});delete u.children,n||delete u.map_row_parentKey,p.set(l,u)})}(i),"update"===t&&p.set(h,(0,d.A)((0,d.A)({},p.get(h)),o)),"delete"===t&&p.delete(h);var f,m,g,b;return f=p,m=new Map,g=[],b=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f.forEach(function(t){if(t.map_row_parentKey&&!t.map_row_key){var n,r=t.map_row_parentKey,o=(0,u.A)(t,Es);m.has(r)||m.set(r,[]),e&&(null===(n=m.get(r))||void 0===n||n.push(o))}})},b("top"===t),f.forEach(function(e){if(e.map_row_parentKey&&e.map_row_key){var t,n=e.map_row_parentKey,r=e.map_row_key,o=(0,u.A)(e,Os);m.has(r)&&(o[c]=m.get(r)),m.has(n)||m.set(n,[]),null===(t=m.get(n))||void 0===t||t.push(o)}}),b("update"===t),f.forEach(function(e){if(!e.map_row_parentKey){var t=e.map_row_key,n=(0,u.A)(e,Ps);if(t&&m.has(t)){var r=(0,d.A)((0,d.A)({},n),{},(0,l.A)({},c,m.get(t)));return void g.push(r)}g.push(n)}}),g}function Ts(e,t){var n=e.recordKey,r=e.onSave,a=e.row,l=e.children,c=e.newLineConfig,d=e.editorType,u=e.tableName,h=(0,v.useContext)($n),p=yn.A.useFormInstance(),f=(0,Ut.A)(!1),m=(0,s.A)(f,2),g=m[0],b=m[1],y=wn((0,i.A)((0,o.A)().mark(function e(){var t,i,s,l,f,m,g,v,y;return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i="Map"===d,s=[u,Array.isArray(n)?n[0]:n].map(function(e){return null==e?void 0:e.toString()}).flat(1).filter(Boolean),b(!0),e.next=6,p.validateFields(s,{recursive:!0});case 6:return l=(null==h||null===(t=h.getFieldFormatValue)||void 0===t?void 0:t.call(h,s))||p.getFieldValue(s),Array.isArray(n)&&n.length>1&&(f=(0,hs.A)(n),m=f.slice(1),g=(0,vi.A)(l,m),(0,yi.A)(l,m,g)),v=i?(0,yi.A)({},s,l):l,e.next=11,null==r?void 0:r(n,wi({},a,v),a,c);case 11:return y=e.sent,b(!1),e.abrupt("return",y);case 16:throw e.prev=16,e.t0=e.catch(0),b(!1),e.t0;case 21:case"end":return e.stop()}},e,null,[[0,16]])})));return(0,v.useImperativeHandle)(t,function(){return{save:y}},[y]),(0,Ue.jsxs)("a",{onClick:function(){var e=(0,i.A)((0,o.A)().mark(function e(t){return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.stopPropagation(),t.preventDefault(),e.prev=2,e.next=5,y();case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(2);case 9:case"end":return e.stop()}},e,null,[[2,7]])}));return function(t){return e.apply(this,arguments)}}(),children:[g?(0,Ue.jsx)(qi.A,{style:{marginInlineEnd:8}}):null,l||"保存"]},"save")}var _s=function(e){var t=e.recordKey,n=e.onDelete,r=e.preEditRowRef,a=e.row,l=e.children,c=e.deletePopconfirmMessage,d=(0,Ut.A)(function(){return!1}),u=(0,s.A)(d,2),h=u[0],p=u[1],f=wn((0,i.A)((0,o.A)().mark(function e(){var i;return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,p(!0),e.next=4,null==n?void 0:n(t,a);case 4:return i=e.sent,p(!1),e.abrupt("return",i);case 9:return e.prev=9,e.t0=e.catch(0),p(!1),e.abrupt("return",null);case 14:return e.prev=14,r&&(r.current=null),e.finish(14);case 17:case"end":return e.stop()}},e,null,[[0,9,14,17]])})));return!1!==l?(0,Ue.jsx)($s,{title:c,onConfirm:function(){return f()},children:(0,Ue.jsxs)("a",{children:[h?(0,Ue.jsx)(qi.A,{style:{marginInlineEnd:8}}):null,l||"删除"]})},"delete"):null},Rs=function(e){var t=e.recordKey,n=e.tableName,r=e.newLineConfig,a=e.editorType,s=e.onCancel,l=e.cancelEditable,c=e.row,d=e.cancelText,u=e.preEditRowRef,h=(0,v.useContext)($n),p=yn.A.useFormInstance();return(0,Ue.jsx)("a",{onClick:function(){var d=(0,i.A)((0,o.A)().mark(function i(d){var f,m,g,b,v,y,x;return(0,o.A)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return d.stopPropagation(),d.preventDefault(),m="Map"===a,g=[n,t].flat(1).filter(Boolean),b=(null==h||null===(f=h.getFieldFormatValue)||void 0===f?void 0:f.call(h,g))||(null==p?void 0:p.getFieldValue(g)),v=m?(0,yi.A)({},g,b):b,o.next=8,null==s?void 0:s(t,v,c,r);case 8:return y=o.sent,o.next=11,l(t);case 11:if(null===(null==u?void 0:u.current)){o.next=15;break}p.setFieldsValue((0,yi.A)({},g,null==u?void 0:u.current)),o.next=17;break;case 15:return o.next=17,null===(x=e.onDelete)||void 0===x?void 0:x.call(e,t,c);case 17:return u&&(u.current=null),o.abrupt("return",y);case 19:case"end":return o.stop()}},i)}));return function(e){return d.apply(this,arguments)}}(),children:d||"取消"},"cancel")};function Bs(e){var t=Ze(),n=(0,v.useRef)(null),r=(0,v.useState)(void 0),a=(0,s.A)(r,2),l=a[0],u=a[1],h=function(){var t=new Map;return function n(r,o){null==r||r.forEach(function(r,i){var a,s=null==o?i.toString():o+"_"+i.toString();t.set(s,Is(e.getRowKey(r,-1))),t.set(null===(a=Is(e.getRowKey(r,-1)))||void 0===a?void 0:a.toString(),s),e.childrenColumnName&&null!=r&&r[e.childrenColumnName]&&n(r[e.childrenColumnName],s)})}(e.dataSource),t},p=(0,v.useMemo)(function(){return h()},[]),f=(0,v.useRef)(p),m=(0,v.useRef)(void 0);ma(function(){f.current=h()},[e.dataSource]),m.current=l;var g=e.type||"single",b=ks(e.dataSource,"children",e.getRowKey),y=(0,s.A)(b,1)[0],x=(0,Ut.A)([],{value:e.editableKeys,onChange:e.onChange?function(t){var n,r,o;null==e||null===(n=e.onChange)||void 0===n||n.call(e,null!==(r=null==t?void 0:t.filter(function(e){return void 0!==e}))&&void 0!==r?r:[],null!==(o=null==t?void 0:t.map(function(e){return y(e)}).filter(function(e){return void 0!==e}))&&void 0!==o?o:[])}:void 0}),w=(0,s.A)(x,2),A=w[0],S=w[1],C=(0,v.useMemo)(function(){var e="single"===g?null==A?void 0:A.slice(0,1):A;return new Set(e)},[(A||[]).join(","),g]),$=An(A),k=wn(function(t){var n,r,o,i,a=null===(n=e.getRowKey(t,t.index))||void 0===n||null===(r=n.toString)||void 0===r?void 0:r.call(n),s=null===(o=e.getRowKey(t,-1))||void 0===o||null===(i=o.toString)||void 0===i?void 0:i.call(o),l=null==A?void 0:A.map(function(e){return null==e?void 0:e.toString()}),c=(null==$?void 0:$.map(function(e){return null==e?void 0:e.toString()}))||[],d=e.tableName&&!(null==c||!c.includes(s))||!(null==c||!c.includes(a));return{recordKey:s,isEditable:e.tableName&&(null==l?void 0:l.includes(s))||(null==l?void 0:l.includes(a)),preIsEditable:d}}),E=wn(function(r,o){var i,a;return C.size>0&&"single"===g&&!1!==e.onlyOneLineEditorAlertMessage?(js(e.onlyOneLineEditorAlertMessage||t.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1):(C.add(r),S(Array.from(C)),n.current=null!==(i=null!=o?o:null===(a=e.dataSource)||void 0===a?void 0:a.find(function(t,n){return e.getRowKey(t,n)===r}))&&void 0!==i?i:null,!0)}),O=wn(function(){var t=(0,i.A)((0,o.A)().mark(function t(n,r){var i,a;return(0,o.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=Is(n).toString(),a=f.current.get(i),C.has(i)||!a||null!=r&&!r||!e.tableName){t.next=5;break}return O(a,!1),t.abrupt("return");case 5:return l&&l.options.recordKey===n&&u(void 0),C.delete(i),C.delete(Is(n)),S(Array.from(C)),t.abrupt("return",!0);case 10:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()),P=ha((0,i.A)((0,o.A)().mark(function t(){var n,r,i,a,s=arguments;return(0,o.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(r=s.length,i=new Array(r),a=0;a0&&"single"===g&&!1!==e.onlyOneLineEditorAlertMessage)return js(e.onlyOneLineEditorAlertMessage||t.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1;var o=e.getRowKey(n,-1);if(!o&&0!==o)throw(0,en.g9)(!!o,"请设置 recordCreatorProps.record 并返回一个唯一的key \n https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C"),new Error("请设置 recordCreatorProps.record 并返回一个唯一的key");if(C.add(o),S(Array.from(C)),"dataSource"===(null==r?void 0:r.newRecordType)||e.tableName){var i,a={data:e.dataSource,getRowKey:e.getRowKey,row:(0,d.A)((0,d.A)({},n),{},{map_row_parentKey:null!=r&&r.parentKey?null===(i=Is(null==r?void 0:r.parentKey))||void 0===i?void 0:i.toString():void 0}),key:o,childrenColumnName:e.childrenColumnName||"children"};e.setDataSource(Ms(a,"top"===(null==r?void 0:r.position)?"top":"update"))}else u({defaultValue:n,options:(0,d.A)((0,d.A)({},r),{},{recordKey:o})});return!0}),_=(null==e?void 0:e.saveText)||t.getMessage("editableTable.action.save","保存"),R=(null==e?void 0:e.deleteText)||t.getMessage("editableTable.action.delete","删除"),B=(null==e?void 0:e.cancelText)||t.getMessage("editableTable.action.cancel","取消"),F=wn(function(){var t=(0,i.A)((0,o.A)().mark(function t(n,r,i,a){var s,l,u,h,p,f,g;return(0,o.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null==e||null===(s=e.onSave)||void 0===s?void 0:s.call(e,n,r,i,a);case 2:return h=t.sent,t.next=5,O(n);case 5:if(p=a||m.current||{},null!=(f=p.options)&&f.parentKey||(null==f?void 0:f.recordKey)!==n){t.next=9;break}return"top"===(null==f?void 0:f.position)?e.setDataSource([r].concat((0,c.A)(e.dataSource))):e.setDataSource([].concat((0,c.A)(e.dataSource),[r])),t.abrupt("return",h);case 9:return g={data:e.dataSource,getRowKey:e.getRowKey,row:f?(0,d.A)((0,d.A)({},r),{},{map_row_parentKey:null===(l=Is(null!==(u=null==f?void 0:f.parentKey)&&void 0!==u?u:""))||void 0===l?void 0:l.toString()}):r,key:n,childrenColumnName:e.childrenColumnName||"children"},e.setDataSource(Ms(g,"top"===(null==f?void 0:f.position)?"top":"update")),t.next=13,O(n);case 13:return t.abrupt("return",h);case 14:case"end":return t.stop()}},t)}));return function(e,n,r,o){return t.apply(this,arguments)}}()),D=wn(function(){var t=(0,i.A)((0,o.A)().mark(function t(n,r){var i,a,s;return(0,o.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a={data:e.dataSource,getRowKey:e.getRowKey,row:r,key:n,childrenColumnName:e.childrenColumnName||"children"},t.next=3,null==e||null===(i=e.onDelete)||void 0===i?void 0:i.call(e,n,r);case 3:return s=t.sent,t.next=6,O(n,!1);case 6:return e.setDataSource(Ms(a,"delete")),t.abrupt("return",s);case 8:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()),z=wn(function(){var t=(0,i.A)((0,o.A)().mark(function t(n,r,i,a){var s,l;return(0,o.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null==e||null===(s=e.onCancel)||void 0===s?void 0:s.call(e,n,r,i,a);case 2:return l=t.sent,t.abrupt("return",l);case 4:case"end":return t.stop()}},t)}));return function(e,n,r,o){return t.apply(this,arguments)}}()),N=e.actionRender&&"function"==typeof e.actionRender,L=N?e.actionRender:function(){},H=wn(L);return{editableKeys:A,setEditableRowKeys:S,isEditable:k,actionRender:function(r){var o=e.getRowKey(r,r.index),i={saveText:_,cancelText:B,deleteText:R,addEditRecord:T,recordKey:o,cancelEditable:O,index:r.index,tableName:e.tableName,newLineConfig:l,onCancel:z,onDelete:D,onSave:F,editableKeys:A,setEditableRowKeys:S,preEditRowRef:n,deletePopconfirmMessage:e.deletePopconfirmMessage||"".concat(t.getMessage("deleteThisLine","删除此项"),"?")},a=function(e,t){var n=t.recordKey,r=t.newLineConfig,o=t.saveText,i=t.deleteText,a=(0,v.forwardRef)(Ts),s=(0,v.createRef)();return{save:(0,Ue.jsx)(a,(0,d.A)((0,d.A)({},t),{},{row:e,ref:s,children:o}),"save"+n),saveRef:s,delete:(null==r?void 0:r.options.recordKey)!==n?(0,Ue.jsx)(_s,(0,d.A)((0,d.A)({},t),{},{row:e,children:i}),"delete"+n):void 0,cancel:(0,Ue.jsx)(Rs,(0,d.A)((0,d.A)({},t),{},{row:e}),"cancel"+n)}}(r,i);return e.tableName?I.current.set(f.current.get(Is(o))||Is(o),a.saveRef):I.current.set(Is(o),a.saveRef),N?H(r,i,{save:a.save,delete:a.delete,cancel:a.cancel}):[a.save,a.delete,a.cancel]},startEditable:E,cancelEditable:O,addEditRecord:T,saveEditable:M,newLineRecord:l,preEditableKeys:$,onValuesChange:j,getRealIndex:e.getRealIndex}}const Fs=(0,n(272).jK)({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});var Ds=n(23029),zs=n(92901),Ns=n(9417),Ls=n(85501),Hs=n(49640),Ws=n(1568),Us=function(e){(0,Ls.A)(n,e);var t=(0,Hs.A)(n);function n(){var e;(0,Ds.A)(this,n);for(var r=arguments.length,o=new Array(r),i=0;inull,qs=e=>null;var Xs=n(84036),Ks=n(38820),Ys=n(7974);var Qs=n(18877),Js=n(91196),Zs=n(50329),el=n(3497),tl=n(26956),nl=n(60275);const rl=e=>"object"!=typeof e&&"function"!=typeof e||null===e;var ol=n(13257),il=n(53425),al=n(72616),sl=n(48810);const ll=v.createContext({});(()=>{let e=0})();const cl=(0,v.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var dl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=dl(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=v.useContext(bt.QO),a=i("menu",t),s=b()({[`${a}-item-divider-dashed`]:!!r},n);return v.createElement(sl.cG,Object.assign({className:s},o))},hl=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a,extra:s}=e,{prefixCls:l,firstLevel:c,direction:d,disableMenuItemTitleTooltip:u,inlineCollapsed:h}=v.useContext(cl),{siderCollapsed:p}=v.useContext(ll);let f=i;void 0===i?f=c?r:"":!1===i&&(f="");const g={title:f};p||h||(g.title=null,g.open=!1);const y=(0,At.A)(r).length;let x=v.createElement(sl.q7,Object.assign({},(0,Vt.A)(e,["title","icon","danger"]),{className:b()({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:1===(o?y+1:y)},n),title:"string"==typeof i?i:void 0}),(0,wa.Ob)(o,{className:b()(v.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:void 0,`${l}-item-icon`)}),(e=>{const t=null==r?void 0:r[0],n=v.createElement("span",{className:b()(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||0===s})},r);return(!o||v.isValidElement(r)&&"span"===r.type)&&r&&e&&c&&"string"==typeof t?v.createElement("div",{className:`${l}-inline-collapsed-noicon`},t.charAt(0)):n})(h));return u||(x=v.createElement(m.A,Object.assign({},g,{placement:"rtl"===d?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),x)),x};var pl=n(8719),fl=n(62897),ml=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=ml(e,["children"]),o=v.useContext(gl),i=v.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=(0,pl.H3)(n),s=(0,pl.xK)(t,a?(0,pl.A9)(n):null);return v.createElement(gl.Provider,{value:i},v.createElement(fl.A,{space:!0},a?v.cloneElement(n,{ref:s}):n))}),vl=gl;var yl=n(2616),xl=n(60977);const wl=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${(0,y.zA)(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Al=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,\n ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,y.zA)(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,y.zA)(t)})`}}}}),Sl=e=>(0,$t.jk)(e),Cl=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:d,activeBarWidth:u,activeBarBorderWidth:h,motionDurationSlow:p,motionEaseInOut:f,motionEaseOut:m,itemPaddingInline:g,motionDurationMid:b,itemHoverColor:v,lineType:x,colorSplit:w,itemDisabledColor:A,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:$,dangerItemActiveBg:k,dangerItemSelectedBg:E,popupBg:O,itemHoverBg:P,itemActiveBg:j,menuSubMenuBg:I,horizontalItemSelectedColor:M,horizontalItemSelectedBg:T,horizontalItemBorderRadius:_,horizontalItemHoverBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},Sl(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Sl(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${A} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:j}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:j}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:k}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:I},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:_,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${(0,y.zA)(d)} solid transparent`,transition:`border-color ${p} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:d,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:T,"&:hover":{backgroundColor:T},"&::after":{borderBottomWidth:d,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${(0,y.zA)(h)} ${x} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,y.zA)(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${m}`,`opacity ${b} ${m}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${f}`,`opacity ${b} ${f}`].join(",")}}}}}},$l=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,d=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:(0,y.zA)(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:(0,y.zA)(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:d}}},kl=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:d,motionDurationFast:u,motionDurationSlow:h,paddingXS:p,boxShadowSecondary:f,collapsedWidth:m,collapsedIconSize:g}=e,b={height:r,lineHeight:(0,y.zA)(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},$l(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},$l(e)),{boxShadow:f})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${(0,y.zA)(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${h}`,`background ${h}`,`padding ${u} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,y.zA)(e.calc(g).div(2).equal())} - ${(0,y.zA)(c)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:(0,y.zA)(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},$t.L9),{paddingInline:p})}}]},El=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},(0,$t.Nk)()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ol=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,y.zA)(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,y.zA)(a)})`}}}}},Pl=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:d,zIndexPopup:u,borderRadiusLG:h,subMenuItemBorderRadius:p,menuArrowSize:f,menuArrowOffset:m,lineType:g,groupTitleLineHeight:b,groupTitleFontSize:v}=e;return[{"":{[n]:Object.assign(Object.assign({},(0,$t.t6)()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,$t.dF)(e)),(0,$t.t6)()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${(0,y.zA)(s)} ${(0,y.zA)(l)}`,fontSize:v,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),El(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${(0,y.zA)(e.calc(r).mul(2).equal())} ${(0,y.zA)(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:h,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:h},El(e)),Ol(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Ol(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,y.zA)(m)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,y.zA)(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${(0,y.zA)(e.calc(f).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,y.zA)(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,y.zA)(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},jl=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:d,colorFillAlter:u,colorFillContent:h,lineWidth:p,lineWidthBold:f,controlItemBgActive:m,colorBgTextHover:g,controlHeightLG:b,lineHeight:v,colorBgElevated:y,marginXXS:x,padding:w,fontSize:A,controlHeightSM:S,fontSizeLG:C,colorTextLightSolid:$,colorErrorHover:k}=e,E=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,O=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,P=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,j=new yl.Y($).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:h,itemActiveBg:m,colorSubItemBg:u,subMenuItemBg:u,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:E,colorActiveBarHeight:f,activeBarHeight:f,colorActiveBarBorderSize:p,activeBarBorderWidth:O,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:v,collapsedWidth:2*b,popupBg:y,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:1.15*b+"px",iconSize:A,iconMarginInlineEnd:S-A,collapsedIconSize:C,groupTitleFontSize:A,darkItemDisabledColor:new yl.Y($).setA(.25).toRgbString(),darkItemColor:j,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:$,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:j,darkItemHoverColor:$,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:i,itemWidth:E?`calc(100% + ${O}px)`:`calc(100% - ${2*P}px)`}},Il=(e,t=e,n=!0)=>{const r=(0,kt.OF)("Menu",e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:l,darkItemSelectedBg:c,darkDangerItemSelectedBg:d,darkItemHoverBg:u,darkGroupTitleColor:h,darkItemHoverColor:p,darkItemDisabledColor:f,darkDangerItemHoverColor:m,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:b,popupBg:v,darkPopupBg:y}=e,x=e.calc(r).div(7).mul(5).equal(),w=(0,Et.oX)(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),A=(0,Et.oX)(w,{itemColor:o,itemHoverColor:p,groupTitleColor:h,itemSelectedColor:l,subMenuItemSelectedColor:l,itemBg:a,popupBg:y,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:u,itemDisabledColor:f,dangerItemColor:i,dangerItemHoverColor:m,dangerItemSelectedColor:g,dangerItemActiveBg:b,dangerItemSelectedBg:d,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[Pl(w),wl(w),kl(w),Cl(w,"light"),Cl(A,"dark"),Al(w),(0,xl.A)(w),(0,Ot._j)(w,"slide-up"),(0,Ot._j)(w,"slide-down"),(0,Sa.aB)(w,"zoom-big")]},jl,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}});return r(e,t)};(Object.getOwnPropertyDescriptor(Il,"name")||{}).writable||Object.defineProperty(Il,"name",{value:"default",configurable:!0});const Ml=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=v.useContext(cl),{prefixCls:s,inlineCollapsed:l,theme:c}=a,d=(0,sl.Wj)();let u;if(r){const e=v.isValidElement(o)&&"span"===o.type;u=v.createElement(v.Fragment,null,(0,wa.Ob)(r,{className:b()(v.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:void 0,`${s}-item-icon`)}),e?o:v.createElement("span",{className:`${s}-title-content`},o))}else u=l&&!d.length&&o&&"string"==typeof o?v.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):v.createElement("span",{className:`${s}-title-content`},o);const h=v.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[p]=(0,nl.YK)("Menu");return v.createElement(cl.Provider,{value:h},v.createElement(sl.g8,Object.assign({},(0,Vt.A)(e,["icon"]),{title:u,popupClassName:b()(s,n,`${s}-${i||c}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};var Tl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const r=v.useContext(vl),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:s,menu:l}=v.useContext(bt.QO),c=i(),{prefixCls:d,className:u,style:h,theme:p="light",expandIcon:f,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:g,siderCollapsed:y,rootClassName:x,mode:w,selectable:A,onClick:S,overflowedIndicatorPopupClassName:C}=e,$=Tl(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),k=(0,Vt.A)($,["collapsedWidth"]);null===(n=o.validator)||void 0===n||n.call(o,{mode:w});const E=(0,tl.A)((...e)=>{var t;null==S||S.apply(void 0,e),null===(t=o.onClick)||void 0===t||t.call(o)}),O=o.mode||w,P=null!=A?A:o.selectable,j=null!=g?g:y,I={horizontal:{motionName:`${c}-slide-up`},inline:(0,xt.A)(c),other:{motionName:`${c}-zoom-big`}},M=i("menu",d||o.prefixCls),T=(0,vt.A)(M),[_,R,B]=Il(M,T,!r),F=b()(`${M}-${p}`,null==l?void 0:l.className,u),D=v.useMemo(()=>{var e,t;if("function"==typeof f||_l(f))return f||null;if("function"==typeof o.expandIcon||_l(o.expandIcon))return o.expandIcon||null;if("function"==typeof(null==l?void 0:l.expandIcon)||_l(null==l?void 0:l.expandIcon))return(null==l?void 0:l.expandIcon)||null;const n=null!==(e=null!=f?f:null==o?void 0:o.expandIcon)&&void 0!==e?e:null==l?void 0:l.expandIcon;return(0,wa.Ob)(n,{className:b()(`${M}-submenu-expand-icon`,v.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})},[f,null==o?void 0:o.expandIcon,null==l?void 0:l.expandIcon,M]),z=v.useMemo(()=>({prefixCls:M,inlineCollapsed:j||!1,direction:s,firstLevel:!0,theme:p,mode:O,disableMenuItemTitleTooltip:m}),[M,j,s,m,p]);return _(v.createElement(vl.Provider,{value:null},v.createElement(cl.Provider,{value:z},v.createElement(sl.Ay,Object.assign({getPopupContainer:a,overflowedIndicator:v.createElement(ft,null),overflowedIndicatorPopupClassName:b()(M,`${M}-${p}`,C),mode:O,selectable:P,onClick:E},k,{inlineCollapsed:j,style:Object.assign(Object.assign({},null==l?void 0:l.style),h),className:F,prefixCls:M,direction:s,defaultMotions:I,expandIcon:D,ref:t,rootClassName:b()(x,R,o.rootClassName,B,T),_internalComponents:Rl})))))}),Fl=Bl,Dl=(0,v.forwardRef)((e,t)=>{const n=(0,v.useRef)(null),r=v.useContext(ll);return(0,v.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}})),v.createElement(Fl,Object.assign({ref:n},e,r))});Dl.Item=hl,Dl.SubMenu=Ml,Dl.Divider=ul,Dl.ItemGroup=sl.te;const zl=Dl;var Nl=n(93093),Ll=n(24211);const Hl=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},Wl=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:d,dropdownEdgeChildPadding:u,colorTextDisabled:h,fontSizeIcon:p,controlPaddingHorizontal:f,colorBgElevated:m}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Ot.ox},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Ot.nP},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Ot.vR},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Ot.YU}}},(0,Ca.Ay)(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},(0,$t.dF)(e)),{[n]:Object.assign(Object.assign({padding:u,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,$t.K8)(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${(0,y.zA)(c)} ${(0,y.zA)(f)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,y.zA)(c)} ${(0,y.zA)(f)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,$t.K8)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,y.zA)(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${(0,y.zA)(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(f).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[(0,Ot._j)(e,"slide-up"),(0,Ot._j)(e,"slide-down"),(0,Ll.Mh)(e,"move-up"),(0,Ll.Mh)(e,"move-down"),(0,Sa.aB)(e,"zoom-big")]]},Ul=(0,kt.OF)("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=(0,Et.oX)(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Wl(i),Hl(i)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,Ca.Ke)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,$a.n)(e)),{resetStyle:!1}),Vl=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:i,trigger:a,disabled:s,dropdownRender:l,popupRender:c,getPopupContainer:d,overlayClassName:u,rootClassName:p,overlayStyle:f,open:m,onOpenChange:g,visible:y,onVisibleChange:x,mouseEnterDelay:w=.15,mouseLeaveDelay:A=.1,autoAdjustOverflow:S=!0,placement:C="",overlay:$,transitionName:k,destroyOnHidden:E,destroyPopupOnHide:O}=e,{getPopupContainer:P,getPrefixCls:j,direction:I,dropdown:M}=v.useContext(bt.QO),T=c||l;(0,Qs.rJ)("Dropdown");const _=v.useMemo(()=>{const e=j();return void 0!==k?k:C.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[j,C,k]),R=v.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:"rtl"===I?"bottomRight":"bottomLeft",[C,I]),B=j("dropdown",o),F=(0,vt.A)(B),[D,z,N]=Ul(B,F),[,L]=(0,Nl.Ay)(),H=v.Children.only(rl(i)?v.createElement("span",null,i):i),W=(0,wa.Ob)(H,{className:b()(`${B}-trigger`,{[`${B}-rtl`]:"rtl"===I},H.props.className),disabled:null!==(t=H.props.disabled)&&void 0!==t?t:s}),U=s?[]:a,V=!!(null==U?void 0:U.includes("contextMenu")),[G,q]=(0,Ut.A)(!1,{value:null!=m?m:y}),X=(0,tl.A)(e=>{null==g||g(e,{source:"trigger"}),null==x||x(e),q(e)}),K=b()(u,p,z,N,F,null==M?void 0:M.className,{[`${B}-rtl`]:"rtl"===I}),Y=(0,ol.A)({arrowPointAtCenter:"object"==typeof r&&r.pointAtCenter,autoAdjustOverflow:S,offset:L.marginXXS,arrowWidth:r?L.sizePopupArrow:0,borderRadius:L.borderRadius}),Q=(0,tl.A)(()=>{(null==n?void 0:n.selectable)&&(null==n?void 0:n.multiple)||(null==g||g(!1,{source:"menu"}),q(!1))}),[J,Z]=(0,nl.YK)("Dropdown",null==f?void 0:f.zIndex);let ee=v.createElement(el.A,Object.assign({alignPoint:V},(0,Vt.A)(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:A,visible:G,builtinPlacements:Y,arrow:!!r,overlayClassName:K,prefixCls:B,getPopupContainer:d||P,transitionName:_,trigger:U,overlay:()=>{let e;return e=(null==n?void 0:n.items)?v.createElement(zl,Object.assign({},n)):"function"==typeof $?$():$,T&&(e=T(e)),e=v.Children.only("string"==typeof e?v.createElement("span",null,e):e),v.createElement(bl,{prefixCls:`${B}-menu`,rootClassName:b()(N,F),expandIcon:v.createElement("span",{className:`${B}-menu-submenu-arrow`},"rtl"===I?v.createElement(Zs.A,{className:`${B}-menu-submenu-arrow-icon`}):v.createElement(h.A,{className:`${B}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Q,validator:({mode:e})=>{}},e)},placement:R,onVisibleChange:X,overlayStyle:Object.assign(Object.assign(Object.assign({},null==M?void 0:M.style),f),{zIndex:J}),autoDestroy:null!=E?E:O}),W);return J&&(ee=v.createElement(al.A.Provider,{value:Z},ee)),D(ee)},Gl=(0,il.A)(Vl,"align",void 0,"dropdown",e=>e);Vl._InternalPanelDoNotUseOrYouWillBeFired=e=>v.createElement(Gl,Object.assign({},e),v.createElement("span",null));const ql=Vl;var Xl=n(37090),Kl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=v.useContext(bt.QO),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:d,children:u,className:h,menu:p,arrow:f,autoFocus:m,overlay:g,trigger:y,align:x,open:w,onOpenChange:A,placement:S,getPopupContainer:C,href:$,icon:k=v.createElement(ft,null),title:E,buttonsRender:O=e=>e,mouseEnterDelay:P,mouseLeaveDelay:j,overlayClassName:I,overlayStyle:M,destroyOnHidden:T,destroyPopupOnHide:_,dropdownRender:R,popupRender:B}=e,F=Kl(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),D=n("dropdown",o),z=`${D}-button`,N={menu:p,arrow:f,autoFocus:m,align:x,disabled:s,trigger:s?[]:y,onOpenChange:A,getPopupContainer:C||t,mouseEnterDelay:P,mouseLeaveDelay:j,overlayClassName:I,overlayStyle:M,destroyOnHidden:T,popupRender:B||R},{compactSize:L,compactItemClassnames:H}=(0,Xl.RQ)(D,r),W=b()(z,H,h);"destroyPopupOnHide"in e&&(N.destroyPopupOnHide=_),"overlay"in e&&(N.overlay=g),"open"in e&&(N.open=w),N.placement="placement"in e?S:"rtl"===r?"bottomLeft":"bottomRight";const U=v.createElement(_i.Ay,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:d,href:$,title:E},u),V=v.createElement(_i.Ay,{type:i,danger:a,icon:k}),[G,q]=O([U,V]);return v.createElement(la.A.Compact,Object.assign({className:W,size:L,block:!0},F),G,v.createElement(ql,Object.assign({},N),q))};Yl.__ANT_BUTTON=!0;const Ql=Yl,Jl=ql;Jl.Button=Ql;const Zl=Jl;var ec=n(50770);const tc={},nc="SELECT_ALL",rc="SELECT_INVERT",oc="SELECT_NONE",ic=[],ac=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),t&&"object"==typeof t&&e in t&&ac(e,t[e],n)}),n),sc=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,getTitleCheckboxProps:a,onChange:s,onSelect:l,onSelectAll:d,onSelectInvert:u,onSelectNone:h,onSelectMultiple:p,columnWidth:f,type:m,selections:g,fixed:y,renderCell:x,hideSelectAll:w,checkStrictly:A=!0}=t||{},{prefixCls:S,data:C,pageData:$,getRecordByKey:k,getRowKey:E,expandType:O,childrenColumnName:P,locale:j,getPopupContainer:I}=e,M=(0,Qs.rJ)("Table"),[T,_]=(e=>{const[t,n]=(0,v.useState)(null);return[(0,v.useCallback)((r,o,i)=>{const a=null!=t?t:r,s=Math.min(a||0,r),l=Math.max(a||0,r),c=o.slice(s,l+1).map(e),d=c.some(e=>!i.has(e)),u=[];return c.forEach(e=>{d?(i.has(e)||u.push(e),i.add(e)):(i.delete(e),u.push(e))}),n(d?l:null),u},[t]),n]})(e=>e),[R,B]=(0,Ut.A)(r||o||ic,{value:r}),F=v.useRef(new Map),D=(0,v.useCallback)(e=>{if(n){const t=new Map;e.forEach(e=>{let n=k(e);!n&&F.current.has(e)&&(n=F.current.get(e)),t.set(e,n)}),F.current=t}},[k,n]);v.useEffect(()=>{D(R)},[R]);const z=(0,v.useMemo)(()=>ac(P,$),[P,$]),{keyEntities:N}=(0,v.useMemo)(()=>{if(A)return{keyEntities:null};let e=C;if(n){const t=new Set(z.map((e,t)=>E(e,t))),n=Array.from(F.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat((0,c.A)(e),(0,c.A)(n))}return(0,Ys.cG)(e,{externalGetKey:E,childrenPropName:P})},[C,E,A,P,n,z]),L=(0,v.useMemo)(()=>{const e=new Map;return z.forEach((t,n)=>{const r=E(t,n),o=(i?i(t):null)||{};e.set(r,o)}),e},[z,E,i]),H=(0,v.useCallback)(e=>{const t=E(e);let n;return n=L.has(t)?L.get(E(e)):i?i(e):void 0,!!(null==n?void 0:n.disabled)},[L,E]),[W,U]=(0,v.useMemo)(()=>{if(A)return[R||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=(0,Ks.p)(R,!0,N,H);return[e||[],t]},[R,A,N,H]),V=(0,v.useMemo)(()=>{const e="radio"===m?W.slice(0,1):W;return new Set(e)},[W,m]),G=(0,v.useMemo)(()=>"radio"===m?new Set:new Set(U),[U,m]);v.useEffect(()=>{t||B(ic)},[!!t]);const q=(0,v.useCallback)((e,t)=>{let r,o;D(e),n?(r=e,o=e.map(e=>F.current.get(e))):(r=[],o=[],e.forEach(e=>{const t=k(e);void 0!==t&&(r.push(e),o.push(t))})),B(r),null==s||s(r,o,{type:t})},[B,k,s,n]),X=(0,v.useCallback)((e,t,n,r)=>{if(l){const o=n.map(e=>k(e));l(k(e),t,o,r)}q(n,"single")},[l,k,q]),K=(0,v.useMemo)(()=>{if(!g||w)return null;return(!0===g?[nc,rc,oc]:g).map(e=>e===nc?{key:"all",text:j.selectionAll,onSelect(){q(C.map((e,t)=>E(e,t)).filter(e=>{const t=L.get(e);return!(null==t?void 0:t.disabled)||V.has(e)}),"all")}}:e===rc?{key:"invert",text:j.selectInvert,onSelect(){const e=new Set(V);$.forEach((t,n)=>{const r=E(t,n),o=L.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))});const t=Array.from(e);u&&(M.deprecated(!1,"onSelectInvert","onChange"),u(t)),q(t,"invert")}}:e===oc?{key:"none",text:j.selectNone,onSelect(){null==h||h(),q(Array.from(V).filter(e=>{const t=L.get(e);return null==t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:(...t)=>{var n,r;null===(r=e.onSelect)||void 0===r||(n=r).call.apply(n,[e].concat(t)),_(null)}}))},[g,V,$,E,u,q]),Y=(0,v.useCallback)(e=>{var n;if(!t)return e.filter(e=>e!==tc);let r=(0,c.A)(e);const o=new Set(V),i=z.map(E).filter(e=>!L.get(e).disabled),s=i.every(e=>o.has(e)),l=i.some(e=>o.has(e));let u,h,C;if("radio"!==m){let e;if(K){const t={getPopupContainer:I,items:K.map((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(i)},label:r}})};e=v.createElement("div",{className:`${S}-selection-extra`},v.createElement(Zl,{menu:t,getPopupContainer:I},v.createElement("span",null,v.createElement(Ya.A,null))))}const t=z.map((e,t)=>{const n=E(e,t),r=L.get(n)||{};return Object.assign({checked:o.has(n)},r)}).filter(({disabled:e})=>e),n=!!t.length&&t.length===z.length,r=n&&t.every(({checked:e})=>e),c=n&&t.some(({checked:e})=>e),p=(null==a?void 0:a())||{},{onChange:f,disabled:m}=p;h=v.createElement(Js.A,Object.assign({"aria-label":e?"Custom selection":"Select all"},p,{checked:n?r:!!z.length&&s,indeterminate:n?!r&&c:!s&&l,onChange:e=>{(()=>{const e=[];s?i.forEach(t=>{o.delete(t),e.push(t)}):i.forEach(t=>{o.has(t)||(o.add(t),e.push(t))});const t=Array.from(o);null==d||d(!s,t.map(e=>k(e)),e.map(e=>k(e))),q(t,"all"),_(null)})(),null==f||f(e)},disabled:null!=m?m:0===z.length||n,skipGroup:!0})),u=!w&&v.createElement("div",{className:`${S}-selection`},h,e)}C="radio"===m?(e,t,n)=>{const r=E(t,n),i=o.has(r),a=L.get(r);return{node:v.createElement(ec.Ay,Object.assign({},a,{checked:i,onClick:e=>{var t;e.stopPropagation(),null===(t=null==a?void 0:a.onClick)||void 0===t||t.call(a,e)},onChange:e=>{var t;o.has(r)||X(r,!0,[r],e.nativeEvent),null===(t=null==a?void 0:a.onChange)||void 0===t||t.call(a,e)}})),checked:i}}:(e,t,n)=>{var r;const a=E(t,n),s=o.has(a),l=G.has(a),d=L.get(a);let u;return u="nest"===O?l:null!==(r=null==d?void 0:d.indeterminate)&&void 0!==r?r:l,{node:v.createElement(Js.A,Object.assign({},d,{indeterminate:u,checked:s,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null===(t=null==d?void 0:d.onClick)||void 0===t||t.call(d,e)},onChange:e=>{var t;const{nativeEvent:n}=e,{shiftKey:r}=n,l=i.indexOf(a),u=W.some(e=>i.includes(e));if(r&&A&&u){const e=T(l,i,o),t=Array.from(o);null==p||p(!s,t.map(e=>k(e)),e.map(e=>k(e))),q(t,"multiple")}else{const e=W;if(A){const t=s?(0,Xs.BA)(e,a):(0,Xs.$s)(e,a);X(a,!s,t,n)}else{const t=(0,Ks.p)([].concat((0,c.A)(e),[a]),!0,N,H),{checkedKeys:r,halfCheckedKeys:o}=t;let i=r;if(s){const e=new Set(r);e.delete(a),i=(0,Ks.p)(Array.from(e),{checked:!1,halfCheckedKeys:o},N,H).checkedKeys}X(a,!s,i,n)}}_(s?null:l),null===(t=null==d?void 0:d.onChange)||void 0===t||t.call(d,e)}})),checked:s}};if(!r.includes(tc))if(0===r.findIndex(e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[Vs.PL])||void 0===t?void 0:t.columnType)})){const[e,...t]=r;r=[e,tc].concat((0,c.A)(t))}else r=[tc].concat((0,c.A)(r));const $=r.indexOf(tc);r=r.filter((e,t)=>e!==tc||t===$);const P=r[$-1],j=r[$+1];let M=y;void 0===M&&(void 0!==(null==j?void 0:j.fixed)?M=j.fixed:void 0!==(null==P?void 0:P.fixed)&&(M=P.fixed)),M&&P&&"EXPAND_COLUMN"===(null===(n=P[Vs.PL])||void 0===n?void 0:n.columnType)&&void 0===P.fixed&&(P.fixed=M);const R=b()(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:g&&"checkbox"===m}),B={fixed:M,width:f,className:`${S}-selection-column`,title:(null==t?void 0:t.columnTitle)?"function"==typeof t.columnTitle?t.columnTitle(h):t.columnTitle:u,render:(e,t,n)=>{const{node:r,checked:o}=C(e,t,n);return x?x(o,t,n,r):r},onCell:t.onCell,align:t.align,[Vs.PL]:{className:R}};return r.map(e=>e===tc?B:e)},[E,z,t,W,V,G,f,K,O,L,p,X,H]);return[Y,V]};var lc=n(86639);const cc=(e,t)=>(0,v.useImperativeHandle)(e,()=>{const e=t(),{nativeElement:n}=e;return"undefined"!=typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(o=e,(r=n)._antProxy=r._antProxy||{},Object.keys(o).forEach(e=>{if(!(e in r._antProxy)){const t=r[e];r._antProxy[e]=t,r[e]=o[e]}}),r);var r,o});var dc=n(25371);function uc(e){return null!=e&&e===e.window}const hc=e=>{var t,n;if("undefined"==typeof window)return 0;let r=0;return uc(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:e instanceof HTMLElement?r=e.scrollTop:e&&(r=e.scrollTop),e&&!uc(e)&&"number"!=typeof r&&(r=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),r};var pc=n(35128);const fc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var mc=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:fc}))};const gc=v.forwardRef(mc);const bc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var vc=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:bc}))};const yc=v.forwardRef(vc);var xc=n(9479),wc=n(96069),Ac=n(36492),Sc=n(81594),Cc=n(44335),$c=n(89222);const kc=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},Ec=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:(0,y.zA)(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,y.zA)(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,y.zA)(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:(0,y.zA)(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,y.zA)(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:(0,y.zA)(e.itemSizeSM),input:Object.assign(Object.assign({},(0,Sc.BZ)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Oc=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:(0,y.zA)(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:(0,y.zA)(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${(0,y.zA)(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${(0,y.zA)(e.inputOutlineOffset)} 0 ${(0,y.zA)(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:(0,y.zA)(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:(0,y.zA)(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Pc=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:(0,y.zA)(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,y.zA)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:(0,y.zA)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Sc.wj)(e)),(0,$c.nI)(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},(0,$c.eT)(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},jc=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:(0,y.zA)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${(0,y.zA)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,y.zA)(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},Ic=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,$t.dF)(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-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:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:(0,y.zA)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),jc(e)),Pc(e)),Oc(e)),Ec(e)),kc(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Mc=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,$t.K8)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,$t.jk)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:(0,$t.jk)(e)}}}},Tc=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Cc.b)(e)),_c=e=>(0,Et.oX)(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Cc.C)(e)),Rc=(0,kt.OF)("Pagination",e=>{const t=_c(e);return[Ic(t),Mc(t)]},Tc),Bc=(0,kt.bf)(["Pagination","bordered"],e=>(e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}})(_c(e)),Tc);function Fc(e){return(0,v.useMemo)(()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0],[e])}var Dc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:i,style:a,size:s,locale:l,responsive:c,showSizeChanger:d,selectComponentClass:u,pageSizeOptions:p}=e,f=Dc(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:m}=(0,Wt.A)(c),[,g]=(0,Nl.Ay)(),{getPrefixCls:y,direction:x,showSizeChanger:w,className:A,style:S}=(0,bt.TP)("pagination"),C=y("pagination",n),[$,k,E]=Rc(C),O=(0,yt.A)(s),P="small"===O||!(!m||O||!c),[j]=(0,bs.A)("Pagination",wc.A),I=Object.assign(Object.assign({},j),l),[M,T]=Fc(d),[_,R]=Fc(w),B=null!=M?M:_,F=null!=T?T:R,D=u||Ac.A,z=v.useMemo(()=>p?p.map(e=>Number(e)):void 0,[p]);const N=v.useMemo(()=>{const e=v.createElement("span",{className:`${C}-item-ellipsis`},"•••");return{prevIcon:v.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},"rtl"===x?v.createElement(h.A,null):v.createElement(Zs.A,null)),nextIcon:v.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},"rtl"===x?v.createElement(Zs.A,null):v.createElement(h.A,null)),jumpPrevIcon:v.createElement("a",{className:`${C}-item-link`},v.createElement("div",{className:`${C}-item-container`},"rtl"===x?v.createElement(yc,{className:`${C}-item-link-icon`}):v.createElement(gc,{className:`${C}-item-link-icon`}),e)),jumpNextIcon:v.createElement("a",{className:`${C}-item-link`},v.createElement("div",{className:`${C}-item-container`},"rtl"===x?v.createElement(gc,{className:`${C}-item-link-icon`}):v.createElement(yc,{className:`${C}-item-link-icon`}),e))}},[x,C]),L=y("select",r),H=b()({[`${C}-${t}`]:!!t,[`${C}-mini`]:P,[`${C}-rtl`]:"rtl"===x,[`${C}-bordered`]:g.wireframe},A,o,i,k,E),W=Object.assign(Object.assign({},S),a);return $(v.createElement(v.Fragment,null,g.wireframe&&v.createElement(Bc,{prefixCls:C}),v.createElement(xc.A,Object.assign({},N,f,{style:W,prefixCls:C,selectPrefixCls:L,className:H,locale:I,pageSizeOptions:z,showSizeChanger:B,sizeChangerRender:e=>{var t;const{disabled:n,size:r,onSizeChange:o,"aria-label":i,className:a,options:s}=e,{className:l,onChange:c}=F||{},d=null===(t=s.find(e=>String(e.value)===String(r)))||void 0===t?void 0:t.value;return v.createElement(D,Object.assign({disabled:n,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:s},F,{value:d,onChange:(e,t)=>{null==o||o(e),null==c||c(e,t)},size:P?"small":"middle",className:b()(a,l)}))}}))))},Nc=zc;const Lc=function(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:i,expandable:a}=t,s=`${n}-row-expand-icon`;return v.createElement("button",{type:"button",onClick:e=>{r(o,e),e.stopPropagation()},className:b()(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&i,[`${s}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}};const Hc=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function Wc(e,t){return t?`${t}-${e}`:`${e}`}const Uc=(e,t)=>"function"==typeof e?e(t):e;const Vc={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"};var Gc=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:Vc}))};const qc=v.forwardRef(Gc);var Xc=n(43210),Kc=n(51679),Yc=n(47447);var Qc=n(17308),Jc=n(1444);const Zc={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"};var ed=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:Zc}))};const td=v.forwardRef(ed);const nd={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"};var rd=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:nd}))};const od=v.forwardRef(rd);const id={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"};var ad=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:id}))};const sd=v.forwardRef(ad);const ld={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"};var cd=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:ld}))};const dd=v.forwardRef(cd);var ud=n(98119),hd=n(77391);const pd=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:i,controlItemBgHover:a})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:i},"&:hover:before":{background:a}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:i,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),fd=new y.Mo("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),md=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),gd=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,y.zA)(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),bd=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:a,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},(0,$t.dF)(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:(0,$t.jk)(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:fd,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:(0,y.zA)(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},md(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},gd(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,y.zA)(t.calc(i).div(2).equal())} !important`}})}},vd=(e,t,n=!0)=>{const r=`.${e}`,o=`${r}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=(0,Et.oX)(t,{treeCls:r,treeNodeCls:o,treeNodePadding:i});return[bd(e,a),n&&pd(a)].filter(Boolean)},yd=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},xd=(0,kt.OF)("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:(0,hd.gd)(`${t}-checkbox`,e)},vd(t,e),(0,xl.A)(e)],e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},yd(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})});const wd=function(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a="ltr"===i?"left":"right",s="ltr"===i?"right":"left",l={[a]:-n*o+4,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=o+4}return v.createElement("div",{style:l,className:`${r}-drop-indicator`})};const Ad={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"};var Sd=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:Ad}))};const Cd=v.forwardRef(Sd);const $d={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"};var kd=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:$d}))};const Ed=v.forwardRef(kd);const Od={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"};var Pd=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:Od}))};const jd=v.forwardRef(Pd),Id=e=>{var t,n;const{prefixCls:r,switcherIcon:o,treeNodeProps:i,showLine:a,switcherLoadingIcon:s}=e,{isLeaf:l,expanded:c,loading:d}=i;if(d)return v.isValidElement(s)?s:v.createElement(qi.A,{className:`${r}-switcher-loading-icon`});let u;if(a&&"object"==typeof a&&(u=a.showLeafIcon),l){if(!a)return null;if("boolean"!=typeof u&&u){const e="function"==typeof u?u(i):u,n=`${r}-switcher-line-custom-icon`;return v.isValidElement(e)?(0,wa.Ob)(e,{className:b()(null===(t=e.props)||void 0===t?void 0:t.className,n)}):e}return u?v.createElement(td,{className:`${r}-switcher-line-icon`}):v.createElement("span",{className:`${r}-switcher-leaf-line`})}const h=`${r}-switcher-icon`,p="function"==typeof o?o(i):o;return v.isValidElement(p)?(0,wa.Ob)(p,{className:b()(null===(n=p.props)||void 0===n?void 0:n.className,h)}):void 0!==p?p:a?c?v.createElement(Ed,{className:`${r}-switcher-line-icon`}):v.createElement(jd,{className:`${r}-switcher-line-icon`}):v.createElement(Cd,{className:h})},Md=v.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=v.useContext(bt.QO),{prefixCls:s,className:l,showIcon:c=!1,showLine:d,switcherIcon:u,switcherLoadingIcon:h,blockNode:p=!1,children:f,checkable:m=!1,selectable:g=!0,draggable:y,disabled:x,motion:w,style:A}=e,S=r("tree",s),C=r(),$=v.useContext(ud.A),k=null!=x?x:$,E=null!=w?w:Object.assign(Object.assign({},(0,xt.A)(C)),{motionAppear:!1}),O=Object.assign(Object.assign({},e),{checkable:m,selectable:g,showIcon:c,motion:E,blockNode:p,disabled:k,showLine:Boolean(d),dropIndicatorRender:wd}),[P,j,I]=xd(S),[,M]=(0,Nl.Ay)(),T=M.paddingXS/2+((null===(n=M.Tree)||void 0===n?void 0:n.titleHeight)||M.controlHeightSM),_=v.useMemo(()=>{if(!y)return!1;let e={};switch(typeof y){case"function":e.nodeDraggable=y;break;case"object":e=Object.assign({},y)}return!1!==e.icon&&(e.icon=e.icon||v.createElement(dd,null)),e},[y]);return P(v.createElement(Jc.Ay,Object.assign({itemHeight:T,ref:t,virtual:i},O,{style:Object.assign(Object.assign({},null==a?void 0:a.style),A),prefixCls:S,className:b()({[`${S}-icon-hide`]:!c,[`${S}-block-node`]:p,[`${S}-unselectable`]:!g,[`${S}-rtl`]:"rtl"===o,[`${S}-disabled`]:k},null==a?void 0:a.className,l,j,I),direction:o,checkable:m?v.createElement("span",{className:`${S}-checkbox-inner`}):m,selectable:g,switcherIcon:e=>v.createElement(Id,{prefixCls:S,switcherIcon:u,switcherLoadingIcon:h,treeNodeProps:e,showLine:d}),draggable:_}),f))});const Td=Md;function _d(e,t,n){const{key:r,children:o}=n;e.forEach(function(e){const i=e[r],a=e[o];!1!==t(i,e)&&_d(a||[],t,n)})}function Rd({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:o}){const i=[];let a=0;if(n&&n===r)return[n];if(!n||!r)return[];return _d(e,e=>{if(2===a)return!1;if(function(e){return e===n||e===r}(e)){if(i.push(e),0===a)a=1;else if(1===a)return a=2,!1}else 1===a&&i.push(e);return t.includes(e)},(0,Ys.AZ)(o)),i}function Bd(e,t,n){const r=(0,c.A)(t),o=[];return _d(e,(e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length},(0,Ys.AZ)(n)),o}var Fd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=Fd(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=v.useRef(null),s=v.useRef(null),[l,d]=v.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[u,h]=v.useState(()=>(()=>{const{keyEntities:e}=(0,Ys.cG)(zd(i),{fieldNames:i.fieldNames});let t;return t=n?Object.keys(e):r?(0,Xs.hr)(i.expandedKeys||o||[],e):i.expandedKeys||o||[],t})());v.useEffect(()=>{"selectedKeys"in i&&d(i.selectedKeys)},[i.selectedKeys]),v.useEffect(()=>{"expandedKeys"in i&&h(i.expandedKeys)},[i.expandedKeys]);const{getPrefixCls:p,direction:f}=v.useContext(bt.QO),{prefixCls:m,className:g,showIcon:y=!0,expandAction:x="click"}=i,w=Fd(i,["prefixCls","className","showIcon","expandAction"]),A=p("tree",m),S=b()(`${A}-directory`,{[`${A}-directory-rtl`]:"rtl"===f},g);return v.createElement(Td,Object.assign({icon:Dd,ref:t,blockNode:!0},w,{showIcon:y,expandAction:x,prefixCls:A,className:S,expandedKeys:u,selectedKeys:l,onSelect:(e,t)=>{var n;const{multiple:r,fieldNames:o}=i,{node:l,nativeEvent:h}=t,{key:p=""}=l,f=zd(i),m=Object.assign(Object.assign({},t),{selected:!0}),g=(null==h?void 0:h.ctrlKey)||(null==h?void 0:h.metaKey),b=null==h?void 0:h.shiftKey;let v;r&&g?(v=e,a.current=p,s.current=v,m.selectedNodes=Bd(f,v,o)):r&&b?(v=Array.from(new Set([].concat((0,c.A)(s.current||[]),(0,c.A)(Rd({treeData:f,expandedKeys:u,startKey:p,endKey:a.current,fieldNames:o}))))),m.selectedNodes=Bd(f,v,o)):(v=[p],a.current=p,s.current=v,m.selectedNodes=Bd(f,v,o)),null===(n=i.onSelect)||void 0===n||n.call(i,v,m),"selectedKeys"in i||d(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in i||h(e),null===(n=i.onExpand)||void 0===n?void 0:n.call(i,e,t)}}))};const Ld=v.forwardRef(Nd),Hd=Td;Hd.DirectoryTree=Ld,Hd.TreeNode=Jc.nF;const Wd=Hd;var Ud=n(42877),Vd=n(18017);const Gd=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:i}=e;return n?v.createElement("div",{className:`${r}-filter-dropdown-search`},v.createElement(Vd.A,{prefix:v.createElement(Ud.A,null),placeholder:o.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},qd=e=>{const{keyCode:t}=e;t===ya.A.ENTER&&e.stopPropagation()};const Xd=v.forwardRef((e,t)=>v.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:qd,ref:t},e.children));function Kd(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat((0,c.A)(t),(0,c.A)(Kd(n))))}),t}function Yd(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function Qd({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:i}){return e.map((e,a)=>{const s=String(e.value);if(e.children)return{key:s||a,label:e.text,popupClassName:`${t}-dropdown-submenu`,children:Qd({filters:e.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:i})};const l=r?Js.A:ec.Ay,c={key:void 0!==e.value?s:a,label:v.createElement(v.Fragment,null,v.createElement(l,{checked:n.includes(s)}),v.createElement("span",null,e.text))};return o.trim()?"function"==typeof i?i(o,e)?c:null:Yd(o,e.text)?c:null:c})}function Jd(e){return e||[]}const Zd=e=>{var t,n,r,o;const{tablePrefixCls:i,prefixCls:a,column:s,dropdownPrefixCls:l,columnKey:c,filterOnClose:d,filterMultiple:u,filterMode:h="menu",filterSearch:p=!1,filterState:f,triggerFilter:m,locale:g,children:y,getPopupContainer:x,rootClassName:w}=e,{filterResetToDefaultFilteredValue:A,defaultFilteredValue:S,filterDropdownProps:C={},filterDropdownOpen:$,filterDropdownVisible:k,onFilterDropdownVisibleChange:E,onFilterDropdownOpenChange:O}=s,[P,j]=v.useState(!1),I=!(!f||!(null===(t=f.filteredKeys)||void 0===t?void 0:t.length)&&!f.forceFiltered),M=e=>{var t;j(e),null===(t=C.onOpenChange)||void 0===t||t.call(C,e),null==O||O(e),null==E||E(e)};const T=null!==(o=null!==(r=null!==(n=C.open)&&void 0!==n?n:$)&&void 0!==r?r:k)&&void 0!==o?o:P,_=null==f?void 0:f.filteredKeys,[R,B]=(e=>{const t=v.useRef(e),[,n]=(0,Yc.C)();return[()=>t.current,e=>{t.current=e,n()}]})(Jd(_)),F=({selectedKeys:e})=>{B(e)},D=(e,{node:t,checked:n})=>{F(u?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};v.useEffect(()=>{P&&F({selectedKeys:Jd(_)})},[_]);const[z,N]=v.useState([]),L=e=>{N(e)},[H,W]=v.useState(""),U=e=>{const{value:t}=e.target;W(t)};v.useEffect(()=>{P||W("")},[P]);const V=e=>{const t=(null==e?void 0:e.length)?e:null;return null!==t||f&&f.filteredKeys?(0,Xc.A)(t,null==f?void 0:f.filteredKeys,!0)?null:void m({column:s,key:c,filteredKeys:t}):null},G=()=>{M(!1),V(R())},q=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&V([]),t&&M(!1),W(""),B(A?(S||[]).map(e=>String(e)):[])},X=({closeDropdown:e}={closeDropdown:!0})=>{e&&M(!1),V(R())},K=b()({[`${l}-menu-without-submenu`]:(Y=s.filters||[],!Y.some(({children:e})=>e))});var Y;const Q=e=>{if(e.target.checked){const e=Kd(null==s?void 0:s.filters).map(e=>String(e));B(e)}else B([])},J=({filters:e})=>(e||[]).map((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(r.children=J({filters:e.children})),r}),Z=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>Z(e)))||[]})};let ee;const{direction:te,renderEmpty:ne}=v.useContext(bt.QO);if("function"==typeof s.filterDropdown)ee=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:e=>F({selectedKeys:e}),selectedKeys:R(),confirm:X,clearFilters:q,filters:s.filters,visible:T,close:()=>{M(!1)}});else if(s.filterDropdown)ee=s.filterDropdown;else{const e=R()||[],t=()=>{var t,n;const r=null!==(t=null==ne?void 0:ne("Table.filter"))&&void 0!==t?t:v.createElement(Qc.A,{image:Qc.A.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(s.filters||[]).length)return r;if("tree"===h)return v.createElement(v.Fragment,null,v.createElement(Gd,{filterSearch:p,value:H,onChange:U,tablePrefixCls:i,locale:g}),v.createElement("div",{className:`${i}-filter-dropdown-tree`},u?v.createElement(Js.A,{checked:e.length===Kd(s.filters).length,indeterminate:e.length>0&&e.length"function"==typeof p?p(H,Z(e)):Yd(H,e.title):void 0})));const o=Qd({filters:s.filters||[],filterSearch:p,prefixCls:a,filteredKeys:R(),filterMultiple:u,searchValue:H}),c=o.every(e=>null===e);return v.createElement(v.Fragment,null,v.createElement(Gd,{filterSearch:p,value:H,onChange:U,tablePrefixCls:i,locale:g}),c?r:v.createElement(zl,{selectable:!0,multiple:u,prefixCls:`${l}-menu`,className:K,onSelect:F,onDeselect:F,selectedKeys:e,getPopupContainer:x,openKeys:z,onOpenChange:L,items:o}))},n=()=>A?(0,Xc.A)((S||[]).map(e=>String(e)),e,!0):0===e.length;ee=v.createElement(v.Fragment,null,t(),v.createElement("div",{className:`${a}-dropdown-btns`},v.createElement(_i.Ay,{type:"link",size:"small",disabled:n(),onClick:()=>q()},g.filterReset),v.createElement(_i.Ay,{type:"primary",size:"small",onClick:G},g.filterConfirm)))}s.filterDropdown&&(ee=v.createElement(bl,{selectable:void 0},ee)),ee=v.createElement(Xd,{className:`${a}-dropdown`},ee);const re=(0,Kc.A)({trigger:["click"],placement:"rtl"===te?"bottomLeft":"bottomRight",children:(()=>{let e;return e="function"==typeof s.filterIcon?s.filterIcon(I):s.filterIcon?s.filterIcon:v.createElement(qc,null),v.createElement("span",{role:"button",tabIndex:-1,className:b()(`${a}-trigger`,{active:I}),onClick:e=>{e.stopPropagation()}},e)})(),getPopupContainer:x},Object.assign(Object.assign({},C),{rootClassName:b()(w,C.rootClassName),open:T,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==_&&B(Jd(_)),M(e),e||s.filterDropdown||!d||G())},popupRender:()=>"function"==typeof(null==C?void 0:C.dropdownRender)?C.dropdownRender(ee):ee}));return v.createElement("div",{className:`${a}-column`},v.createElement("span",{className:`${i}-column-title`},y),v.createElement(Zl,Object.assign({},re)))},eu=(e,t,n)=>{let r=[];return(e||[]).forEach((e,o)=>{var i;const a=Wc(o,n),s=void 0!==e.filterDropdown;if(e.filters||s||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;s||(t=null!==(i=null==t?void 0:t.map(String))&&void 0!==i?i:t),r.push({column:e,key:Hc(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:Hc(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat((0,c.A)(r),(0,c.A)(eu(e.children,t,a))))}),r};function tu(e,t,n,r,o,i,a,s,l){return n.map((n,c)=>{const d=Wc(c,s),{filterOnClose:u=!0,filterMultiple:h=!0,filterMode:p,filterSearch:f}=n;let m=n;if(m.filters||m.filterDropdown){const s=Hc(m,d),c=r.find(({key:e})=>s===e);m=Object.assign(Object.assign({},m),{title:r=>v.createElement(Zd,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:s,filterState:c,filterOnClose:u,filterMultiple:h,filterMode:p,filterSearch:f,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:l},Uc(n.title,r))})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:tu(e,t,m.children,r,o,i,a,d,l)})),m})}const nu=e=>{const t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{const o=e,{filters:i,filterDropdown:a}=r;if(a)t[o]=n||null;else if(Array.isArray(n)){const e=Kd(i);t[o]=e.filter(e=>n.includes(String(e)))}else t[o]=null}),t},ru=(e,t,n)=>{const r=t.reduce((e,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?e.map(e=>Object.assign({},e)).filter(e=>a.some(r=>{const a=Kd(i),s=a.findIndex(e=>String(e)===String(r)),l=-1!==s?a[s]:r;return e[n]&&(e[n]=ru(e[n],t,n)),o(l,e)})):e},e);return r},ou=e=>e.flatMap(e=>"children"in e?[e].concat((0,c.A)(ou(e.children||[]))):[e]),iu=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:s}=e,l=((0,Qs.rJ)("Table"),v.useMemo(()=>ou(r||[]),[r])),[c,d]=v.useState(()=>eu(l,!0)),u=v.useMemo(()=>{const e=eu(l,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach(({filteredKeys:e})=>{void 0!==e?t=!1:n=!1}),t){const e=(l||[]).map((e,t)=>Hc(e,Wc(t)));return c.filter(({key:t})=>e.includes(t)).map(t=>{const n=l[e.indexOf(t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[l,c]),h=v.useMemo(()=>nu(u),[u]),p=e=>{const t=u.filter(({key:t})=>t!==e.key);t.push(e),d(t),o(nu(t),t)};return[e=>tu(t,n,e,u,a,p,i,void 0,s),u,h]};var au=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:su})),l=(0,Kc.A)(a,i,{total:o>0?o:e}),c=Math.ceil((o||e)/l.pageSize);l.current>c&&(l.current=c||1);const d=(e,t)=>{s({current:null!=e?e:1,pageSize:t||l.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:(e,r)=>{var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),d(e,r),t(e,r||(null==l?void 0:l.pageSize))}}),d]};const cu={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"};var du=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:cu}))};const uu=v.forwardRef(du);const hu={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"};var pu=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:hu}))};const fu=v.forwardRef(pu),mu="ascend",gu="descend",bu=e=>"object"==typeof e.sorter&&"number"==typeof e.sorter.multiple&&e.sorter.multiple,vu=e=>"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare)&&e.compare,yu=(e,t,n)=>{let r=[];const o=(e,t)=>{r.push({column:e,key:Hc(e,t),multiplePriority:bu(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,i)=>{const a=Wc(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat((0,c.A)(r),(0,c.A)(yu(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:Hc(e,a),multiplePriority:bu(e),sortOrder:e.defaultSortOrder}))}),r},xu=(e,t,n,r,o,i,a,s)=>{const l=(t||[]).map((t,l)=>{const c=Wc(l,s);let d=t;if(d.sorter){const s=d.sortDirections||o,l=void 0===d.showSorterTooltip?a:d.showSorterTooltip,u=Hc(d,c),h=n.find(({key:e})=>e===u),p=h?h.sortOrder:null,f=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(s,p);let g;if(t.sortIcon)g=t.sortIcon({sortOrder:p});else{const t=s.includes(mu)&&v.createElement(fu,{className:b()(`${e}-column-sorter-up`,{active:p===mu})}),n=s.includes(gu)&&v.createElement(uu,{className:b()(`${e}-column-sorter-down`,{active:p===gu})});g=v.createElement("span",{className:b()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},v.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:y,triggerAsc:x,triggerDesc:w}=i||{};let A=y;f===gu?A=w:f===mu&&(A=x);const S="object"==typeof l?Object.assign({title:A},l):{title:A};d=Object.assign(Object.assign({},d),{className:b()(d.className,{[`${e}-column-sort`]:p}),title:n=>{const r=`${e}-column-sorters`,o=v.createElement("span",{className:`${e}-column-title`},Uc(t.title,n)),i=v.createElement("div",{className:r},o,g);return l?"boolean"!=typeof l&&"sorter-icon"===(null==l?void 0:l.target)?v.createElement("div",{className:b()(r,`${r}-tooltip-target-sorter`)},o,v.createElement(m.A,Object.assign({},S),g)):v.createElement(m.A,Object.assign({},S),i):i},onHeaderCell:n=>{var o;const i=(null===(o=t.onHeaderCell)||void 0===o?void 0:o.call(t,n))||{},a=i.onClick,s=i.onKeyDown;i.onClick=e=>{r({column:t,key:u,sortOrder:f,multiplePriority:bu(t)}),null==a||a(e)},i.onKeyDown=e=>{e.keyCode===ya.A.ENTER&&(r({column:t,key:u,sortOrder:f,multiplePriority:bu(t)}),null==s||s(e))};const l=((e,t)=>{const n=Uc(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),c=null==l?void 0:l.toString();return p&&(i["aria-sort"]="ascend"===p?"ascending":"descending"),i["aria-label"]=c||"",i.className=b()(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(null!=l?l:"").toString()),i}})}return"children"in d&&(d=Object.assign(Object.assign({},d),{children:xu(e,d.children,n,r,o,i,a,c)})),d});return l},wu=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Au=e=>{const t=e.filter(({sortOrder:e})=>e).map(wu);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},wu(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Su=(e,t,n)=>{const r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),o=e.slice(),i=r.filter(({column:{sorter:e},sortOrder:t})=>vu(e)&&t);return i.length?o.sort((e,t)=>{for(let n=0;n{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:Su(r,t,n)}):e}):o},Cu=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:i,onSorterChange:a}=e,[s,l]=v.useState(()=>yu(n,!0)),d=(e,t)=>{const n=[];return e.forEach((e,r)=>{const o=Wc(r,t);if(n.push(Hc(e,o)),Array.isArray(e.children)){const t=d(e.children,o);n.push.apply(n,(0,c.A)(t))}}),n},u=v.useMemo(()=>{let e=!0;const t=yu(n,!1);if(!t.length){const e=d(n);return s.filter(({key:t})=>e.includes(t))}const r=[];function o(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach(t=>{null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))}),r},[n,s]),h=v.useMemo(()=>{var e,t;const n=u.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}},[u]),p=e=>{let t;t=!1!==e.multiplePriority&&u.length&&!1!==u[0].multiplePriority?[].concat((0,c.A)(u.filter(({key:t})=>t!==e.key)),[e]):[e],l(t),a(Au(t),t)};return[e=>xu(t,e,u,p,r,o,i),u,h,()=>Au(u)]},$u=(e,t)=>e.map(e=>{const n=Object.assign({},e);return n.title=Uc(e.title,t),"children"in n&&(n.children=$u(n.children,t)),n}),ku=e=>{const t=v.useCallback(t=>$u(t,e),[e]);return[t]},Eu=(0,Vs.T)((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Ou=(0,Vs.Y9)((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Pu=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${(0,y.zA)(n)} ${r} ${o}`,d=(e,r,o)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,y.zA)(l(r).mul(-1).equal())}\n ${(0,y.zA)(l(l(o).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,y.zA)(l(a).mul(-1).equal())} ${(0,y.zA)(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,y.zA)(n)} 0 ${(0,y.zA)(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},ju=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},$t.L9),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Iu=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Mu=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:d,tablePaddingVertical:u,tablePaddingHorizontal:h,tableExpandedRowBg:p,paddingXXS:f,expandIconMarginTop:m,expandIconSize:g,expandIconHalfInner:b,expandIconScale:v,calc:x}=e,w=`${(0,y.zA)(o)} ${a} ${s}`,A=x(f).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},(0,$t.Y1)(e)),{position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:(0,y.zA)(g),background:l,border:w,borderRadius:d,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:A,insetInlineStart:A,height:o},"&::after":{top:A,bottom:A,insetInlineStart:b,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:m,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,y.zA)(x(u).mul(-1).equal())} ${(0,y.zA)(x(h).mul(-1).equal())}`,padding:`${(0,y.zA)(u)} ${(0,y.zA)(h)}`}}}},Tu=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:c,lineType:d,tableBorderColor:u,headerIconColor:h,fontSizeSM:p,tablePaddingHorizontal:f,borderRadius:m,motionDurationSlow:g,colorIcon:b,colorPrimary:v,tableHeaderFilterActiveBg:x,colorTextDisabled:w,tableFilterDropdownBg:A,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:$,boxShadowSecondary:k,filterDropdownMenuBg:E,calc:O}=e,P=`${n}-dropdown`,j=`${t}-filter-dropdown`,I=`${n}-tree`,M=`${(0,y.zA)(c)} ${d} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:O(a).mul(-1).equal(),marginInline:`${(0,y.zA)(a)} ${(0,y.zA)(O(f).div(2).mul(-1).equal())}`,padding:`0 ${(0,y.zA)(a)}`,color:h,fontSize:p,borderRadius:m,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:b,background:x},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[j]:Object.assign(Object.assign({},(0,$t.dF)(e)),{minWidth:o,backgroundColor:A,borderRadius:m,boxShadow:k,overflow:"hidden",[`${P}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:E,"&:empty::after":{display:"block",padding:`${(0,y.zA)(s)} 0`,color:w,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${j}-tree`]:{paddingBlock:`${(0,y.zA)(s)} 0`,paddingInline:s,[I]:{padding:0},[`${I}-treenode ${I}-node-content-wrapper:hover`]:{backgroundColor:C},[`${I}-treenode-checkbox-checked ${I}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:$}}},[`${j}-search`]:{padding:s,borderBottom:M,"&-input":{input:{minWidth:i},[r]:{color:w}}},[`${j}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${j}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,y.zA)(O(s).sub(c).equal())} ${(0,y.zA)(s)}`,overflow:"hidden",borderTop:M}})}},{[`${n}-dropdown ${j}, ${j}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},_u=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:s,calc:l}=e,c=r;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:l(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},Ru=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${(0,y.zA)(r)} 0`}}},Bu=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,y.zA)(n)} ${(0,y.zA)(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${(0,y.zA)(n)} ${(0,y.zA)(n)}`}}}}},Fu=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Du=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:d,tableSelectedRowHoverBg:u,tableRowHoverBg:h,tablePaddingHorizontal:p,calc:f}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(o).add(f(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:f(c).add(f(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:f(c).add(o).add(f(i).div(4)).add(f(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:f(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,y.zA)(f(p).div(4).equal()),[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:h}}}}}},zu=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(e,o,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${(0,y.zA)(o)} ${(0,y.zA)(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,y.zA)(r(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,y.zA)(r(o).mul(-1).equal())} ${(0,y.zA)(r(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,y.zA)(r(o).mul(-1).equal()),marginInline:`${(0,y.zA)(r(n).sub(i).equal())} ${(0,y.zA)(r(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,y.zA)(r(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Nu=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},Lu=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:d,tableBorderColor:u}=e,h=`${(0,y.zA)(c)} ${d} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,y.zA)(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:h,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},Hu=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${(0,y.zA)(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,y.zA)(o(n).mul(-1).equal())} 0 ${r}`}}}},Wu=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,s=`${(0,y.zA)(r)} ${o} ${i}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,y.zA)(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},Uu=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:d,tableRadius:u,tableHeaderTextColor:h,motionDurationMid:p,tableHeaderBg:f,tableHeaderCellSplitColor:m,tableFooterTextColor:g,tableFooterBg:b,calc:v}=e,x=`${(0,y.zA)(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},(0,$t.t6)()),{[t]:Object.assign(Object.assign({},(0,$t.dF)(e)),{fontSize:c,background:d,borderRadius:`${(0,y.zA)(u)} ${(0,y.zA)(u)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,y.zA)(u)} ${(0,y.zA)(u)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${(0,y.zA)(r)} ${(0,y.zA)(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,y.zA)(r)} ${(0,y.zA)(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:f,borderBottom:x,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:m,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:x,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:(0,y.zA)(v(r).mul(-1).equal()),marginInline:`${(0,y.zA)(v(i).sub(o).equal())}\n ${(0,y.zA)(v(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:f,borderBottom:x,transition:`background ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${(0,y.zA)(r)} ${(0,y.zA)(o)}`,color:g,background:b}})}},Vu=(0,kt.OF)("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:d,rowSelectedBg:u,rowSelectedHoverBg:h,rowExpandedBg:p,cellPaddingBlock:f,cellPaddingInline:m,cellPaddingBlockMD:g,cellPaddingInlineMD:b,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:x,footerBg:w,footerColor:A,headerBorderRadius:S,cellFontSize:C,cellFontSizeMD:$,cellFontSizeSM:k,headerSplitColor:E,fixedHeaderSortActiveBg:O,headerFilterHoverBg:P,filterDropdownBg:j,expandIconBg:I,selectionColumnWidth:M,stickyScrollBarBg:T,calc:_}=e,R=(0,Et.oX)(e,{tableFontSize:C,tableBg:r,tableRadius:S,tablePaddingVertical:f,tablePaddingHorizontal:m,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:A,tableFooterBg:w,tableHeaderCellSplitColor:E,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:P,tableFilterDropdownBg:j,tableRowHoverBg:d,tableSelectedRowBg:u,tableSelectedRowHoverBg:h,zIndexTableFixed:2,zIndexTableSticky:_(2).add(1).equal({unit:!1}),tableFontSizeMiddle:$,tableFontSizeSmall:k,tableSelectionColumnWidth:M,tableExpandIconBg:I,tableExpandColumnWidth:_(o).add(_(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:T,tableScrollThumbBgHover:t,tableScrollBg:n});return[Uu(R),Ru(R),Hu(R),Nu(R),Tu(R),Pu(R),Bu(R),Mu(R),Hu(R),Iu(R),Du(R),_u(R),Lu(R),ju(R),zu(R),Fu(R),Wu(R)]},e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:d,colorBorderSecondary:u,borderRadiusLG:h,controlHeight:p,colorTextPlaceholder:f,fontSize:m,fontSizeSM:g,lineHeight:b,lineWidth:v,colorIcon:y,colorIconHover:x,opacityLoading:w,controlInteractiveSize:A}=e,S=new yl.Y(o).onBackground(n).toHexString(),C=new yl.Y(i).onBackground(n).toHexString(),$=new yl.Y(t).onBackground(n).toHexString(),k=new yl.Y(y),E=new yl.Y(x),O=A/2-v,P=2*O+3*v;return{headerBg:$,headerColor:r,headerSortActiveBg:S,headerSortHoverBg:C,bodySortBg:$,rowHoverBg:$,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:u,headerBorderRadius:h,footerBg:$,footerColor:r,cellFontSize:m,cellFontSizeMD:m,cellFontSizeSM:m,headerSplitColor:u,fixedHeaderSortActiveBg:S,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:f,stickyScrollBarBorderRadius:100,expandIconMarginTop:(m*b-3*v)/2-Math.ceil((1.4*g-3*v)/2),headerIconColor:k.clone().setA(k.a*w).toRgbString(),headerIconHoverColor:E.clone().setA(E.a*w).toRgbString(),expandIconHalfInner:O,expandIconSize:P,expandIconScale:A/P}},{unitless:{expandIconScale:!0}}),Gu=[],qu=(e,t)=>{var n,r;const{prefixCls:o,className:i,rootClassName:a,style:s,size:l,bordered:c,dropdownPrefixCls:d,dataSource:u,pagination:h,rowSelection:p,rowKey:m="key",rowClassName:g,columns:y,children:x,childrenColumnName:w,onChange:A,getPopupContainer:S,loading:C,expandIcon:$,expandable:k,expandedRowRender:E,expandIconColumnIndex:O,indentSize:P,scroll:j,sortDirections:I,locale:M,showSorterTooltip:T={target:"full-header"},virtual:_}=e;(0,Qs.rJ)("Table");const R=v.useMemo(()=>y||(0,lc.P)(x),[y,x]),B=v.useMemo(()=>R.some(e=>e.responsive),[R]),F=(0,Wt.A)(B),D=v.useMemo(()=>{const e=new Set(Object.keys(F).filter(e=>F[e]));return R.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[R,F]),z=(0,Vt.A)(e,["className","style","columns"]),{locale:N=vs.A,direction:L,table:H,renderEmpty:W,getPrefixCls:U,getPopupContainer:V}=v.useContext(bt.QO),G=(0,yt.A)(l),q=Object.assign(Object.assign({},N.Table),M),X=u||Gu,K=U("table",o),Y=U("dropdown",d),[,Q]=(0,Nl.Ay)(),J=(0,vt.A)(K),[Z,ee,te]=Vu(K,J),ne=Object.assign(Object.assign({childrenColumnName:w,expandIconColumnIndex:O},k),{expandIcon:null!==(n=null==k?void 0:k.expandIcon)&&void 0!==n?n:null===(r=null==H?void 0:H.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:re="children"}=ne,oe=v.useMemo(()=>X.some(e=>null==e?void 0:e[re])?"nest":E||(null==k?void 0:k.expandedRowRender)?"row":null,[X]),ie={body:v.useRef(null)},ae=function(e){return(t,n)=>{const r=t.querySelector(`.${e}-container`);let o=n;if(r){const e=getComputedStyle(r);o=n-Number.parseInt(e.borderLeftWidth,10)-Number.parseInt(e.borderRightWidth,10)}return o}}(K),se=v.useRef(null),le=v.useRef(null);cc(t,()=>Object.assign(Object.assign({},le.current),{nativeElement:se.current}));const ce=v.useMemo(()=>"function"==typeof m?m:e=>null==e?void 0:e[m],[m]),[de]=ks(X,re,ce),ue={},he=(e,t,n=!1)=>{var r,o,i,a;const s=Object.assign(Object.assign({},ue),e);n&&(null===(r=ue.resetPagination)||void 0===r||r.call(ue),(null===(o=s.pagination)||void 0===o?void 0:o.current)&&(s.pagination.current=1),h&&(null===(i=h.onChange)||void 0===i||i.call(h,1,null===(a=s.pagination)||void 0===a?void 0:a.pageSize))),j&&!1!==j.scrollToFirstRowOnChange&&ie.body.current&&function(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=hc(i),s=Date.now(),l=()=>{const t=Date.now()-s,n=function(e,t,n,r){const o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(t>o?o:t,a,e,o);uc(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,tie.body.current}),null==A||A(s.pagination,s.filters,s.sorter,{currentDataSource:ru(Su(X,s.sorterStates,re),s.filterStates,re),action:t})},[pe,fe,me,ge]=Cu({prefixCls:K,mergedColumns:D,onSorterChange:(e,t)=>{he({sorter:e,sorterStates:t},"sort",!1)},sortDirections:I||["ascend","descend"],tableLocale:q,showSorterTooltip:T}),be=v.useMemo(()=>Su(X,fe,re),[X,fe]);ue.sorter=ge(),ue.sorterStates=fe;const[ve,ye,xe]=iu({prefixCls:K,locale:q,dropdownPrefixCls:Y,mergedColumns:D,onFilterChange:(e,t)=>{he({filters:e,filterStates:t},"filter",!0)},getPopupContainer:S||V,rootClassName:b()(a,J)}),we=ru(be,ye,re);ue.filters=xe,ue.filterStates=ye;const Ae=v.useMemo(()=>{const e={};return Object.keys(xe).forEach(t=>{null!==xe[t]&&(e[t]=xe[t])}),Object.assign(Object.assign({},me),{filters:e})},[me,xe]),[Se]=ku(Ae),[Ce,$e]=lu(we.length,(e,t)=>{he({pagination:Object.assign(Object.assign({},ue.pagination),{current:e,pageSize:t})},"paginate")},h);ue.pagination=!1===h?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach(t=>{const r=e[t];"function"!=typeof r&&(n[t]=r)}),n}(Ce,h),ue.resetPagination=$e;const ke=v.useMemo(()=>{if(!1===h||!Ce.pageSize)return we;const{current:e=1,total:t,pageSize:n=su}=Ce;return we.lengthn?we.slice((e-1)*n,e*n):we:we.slice((e-1)*n,e*n)},[!!h,we,null==Ce?void 0:Ce.current,null==Ce?void 0:Ce.pageSize,null==Ce?void 0:Ce.total]),[Ee,Oe]=sc({prefixCls:K,data:we,pageData:ke,getRowKey:ce,getRecordByKey:de,expandType:oe,childrenColumnName:re,locale:q,getPopupContainer:S||V},p);ne.__PARENT_RENDER_ICON__=ne.expandIcon,ne.expandIcon=ne.expandIcon||$||Lc(q),"nest"===oe&&void 0===ne.expandIconColumnIndex?ne.expandIconColumnIndex=p?1:0:ne.expandIconColumnIndex>0&&p&&(ne.expandIconColumnIndex-=1),"number"!=typeof ne.indentSize&&(ne.indentSize="number"==typeof P?P:15);const Pe=v.useCallback(e=>Se(Ee(ve(pe(e)))),[pe,ve,Ee]),je=v.useMemo(()=>"boolean"==typeof C?{spinning:C}:"object"==typeof C&&null!==C?Object.assign({spinning:!0},C):void 0,[C]),Ie=b()(te,J,`${K}-wrapper`,null==H?void 0:H.className,{[`${K}-wrapper-rtl`]:"rtl"===L},i,a,ee),Me=Object.assign(Object.assign({},null==H?void 0:H.style),s),Te=v.useMemo(()=>(null==je?void 0:je.spinning)&&X===Gu?null:void 0!==(null==M?void 0:M.emptyText)?M.emptyText:(null==W?void 0:W("Table"))||v.createElement(pc.A,{componentName:"Table"}),[null==je?void 0:je.spinning,X,null==M?void 0:M.emptyText,W]),_e=_?Ou:Eu,Re={},Be=v.useMemo(()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:o,paddingSM:i}=Q,a=Math.floor(e*t);switch(G){case"middle":return 2*i+a+n;case"small":return 2*o+a+n;default:return 2*r+a+n}},[Q,G]);_&&(Re.listItemHeight=Be);const{top:Fe,bottom:De}=(()=>{if(!1===h||!(null==Ce?void 0:Ce.total))return{};const e=e=>{const t="left"===e?"start":"right"===e?"end":e;return v.createElement(Nc,Object.assign({},Ce,{align:Ce.align||t,className:b()(`${K}-pagination`,Ce.className),size:Ce.size||("small"===G||"middle"===G?"small":void 0)}))},t="rtl"===L?"left":"right",n=Ce.position;if(null===n||!Array.isArray(n))return{bottom:e(t)};const r=n.find(e=>"string"==typeof e&&e.toLowerCase().includes("top")),o=n.find(e=>"string"==typeof e&&e.toLowerCase().includes("bottom")),i=n.every(e=>"none"==`${e}`),a=r?r.toLowerCase().replace("top",""):"",s=o?o.toLowerCase().replace("bottom",""):"",l=!r&&!o&&!i;return{top:a?e(a):void 0,bottom:s?e(s):l?e(t):void 0}})();return Z(v.createElement("div",{ref:se,className:Ie,style:Me},v.createElement(Ii.A,Object.assign({spinning:!1},je),Fe,v.createElement(_e,Object.assign({},Re,z,{ref:le,columns:D,direction:L,expandable:ne,prefixCls:K,className:b()({[`${K}-middle`]:"middle"===G,[`${K}-small`]:"small"===G,[`${K}-bordered`]:c,[`${K}-empty`]:0===X.length},te,J,ee),data:ke,rowKey:ce,rowClassName:(e,t,n)=>{let r;return r="function"==typeof g?b()(g(e,t,n)):b()(g),b()({[`${K}-row-selected`]:Oe.has(ce(e,t))},r)},emptyText:Te,internalHooks:Vs.Fh,internalRefs:ie,transformColumns:Pe,getContainerWidth:ae,measureRowRender:e=>v.createElement(f.Ay,{getPopupContainer:e=>e},e)})),De)))},Xu=v.forwardRef(qu),Ku=(e,t)=>{const n=v.useRef(0);return n.current+=1,v.createElement(Xu,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Yu=v.forwardRef(Ku);Yu.SELECTION_COLUMN=tc,Yu.EXPAND_COLUMN=Vs.kD,Yu.SELECTION_ALL=nc,Yu.SELECTION_INVERT=rc,Yu.SELECTION_NONE=oc,Yu.Column=Gs,Yu.ColumnGroup=qs,Yu.Summary=Vs.BD;const Qu=Yu;const Ju=ao(Object.keys,Object);var Zu=Object.prototype.hasOwnProperty;const eh=function(e){if(!co(e))return Ju(e);var t=[];for(var n in Object(e))Zu.call(e,n)&&"constructor"!=n&&t.push(n);return t};const th=yr(Gn,"DataView");const nh=yr(Gn,"Promise");const rh=yr(Gn,"Set");const oh=yr(Gn,"WeakMap");var ih="[object Map]",ah="[object Promise]",sh="[object Set]",lh="[object WeakMap]",ch="[object DataView]",dh=dr(th),uh=dr(xr),hh=dr(nh),ph=dr(rh),fh=dr(oh),mh=nr;(th&&mh(new th(new ArrayBuffer(1)))!=ch||xr&&mh(new xr)!=ih||nh&&mh(nh.resolve())!=ah||rh&&mh(new rh)!=sh||oh&&mh(new oh)!=lh)&&(mh=function(e){var t=nr(e),n="[object Object]"==t?e.constructor:void 0,r=n?dr(n):"";if(r)switch(r){case dh:return ch;case uh:return ih;case hh:return ah;case ph:return sh;case fh:return lh}return t});const gh=mh;var bh=Object.prototype.hasOwnProperty;const vh=function(e){if(null==e)return!0;if(wo(e)&&(yo(e)||"string"==typeof e||"function"==typeof e.splice||Eo(e)||Ho(e)||vo(e)))return!e.length;var t=gh(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(co(e))return!eh(e).length;for(var n in e)if(bh.call(e,n))return!1;return!0};const yh=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const xh=function(e){return this.__data__.has(e)};function wh(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new zr;++ts))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,h=!0,p=2&n?new Ah:void 0;for(i.set(e,t),i.set(t,e);++u0&&void 0!==arguments[0]?arguments[0]:{},l=(0,v.useRef)(),c=(0,v.useRef)(null),d=(0,v.useRef)(),u=(0,v.useRef)(),h=(0,v.useState)(""),p=(0,s.A)(h,2),f=p[0],m=p[1],g=(0,v.useRef)([]),b=(0,Ut.A)(function(){return a.size||a.defaultSize||"middle"},{value:a.size,onChange:a.onSizeChange}),y=(0,s.A)(b,2),x=y[0],w=y[1],A=(0,v.useMemo)(function(){var e,t;if(null!=a&&null!==(e=a.columnsState)&&void 0!==e&&e.defaultValue)return a.columnsState.defaultValue;var n={};return null===(t=a.columns)||void 0===t||t.forEach(function(e,t){var r=e.key,o=e.dataIndex,i=e.fixed,a=e.disable,s=Qh(null!=r?r:o,t);s&&(n[s]={show:!0,fixed:i,disable:a})}),n},[a.columns]),S=(0,Ut.A)(function(){var e,t,n=a.columnsState||{},r=n.persistenceType,o=n.persistenceKey;if(o&&r&&"undefined"!=typeof window){var i=window[r];try{var s,l,c=null==i?void 0:i.getItem(o);if(c)return null!=a&&null!==(s=a.columnsState)&&void 0!==s&&s.defaultValue?bi({},null==a||null===(l=a.columnsState)||void 0===l?void 0:l.defaultValue,JSON.parse(c)):JSON.parse(c)}catch(e){}}return a.columnsStateMap||(null===(e=a.columnsState)||void 0===e?void 0:e.value)||(null===(t=a.columnsState)||void 0===t?void 0:t.defaultValue)||A},{value:(null===(e=a.columnsState)||void 0===e?void 0:e.value)||a.columnsStateMap,onChange:(null===(t=a.columnsState)||void 0===t?void 0:t.onChange)||a.onColumnsStateChange}),C=(0,s.A)(S,2),$=C[0],k=C[1];(0,v.useEffect)(function(){var e=a.columnsState||{},t=e.persistenceType,n=e.persistenceKey;if(n&&t&&"undefined"!=typeof window){var r=window[t];try{var o,i,s=null==r?void 0:r.getItem(n);s?null!=a&&null!==(o=a.columnsState)&&void 0!==o&&o.defaultValue?k(bi({},null==a||null===(i=a.columnsState)||void 0===i?void 0:i.defaultValue,JSON.parse(s))):k(JSON.parse(s)):k(A)}catch(e){}}},[null===(n=a.columnsState)||void 0===n?void 0:n.persistenceKey,null===(r=a.columnsState)||void 0===r?void 0:r.persistenceType,A]),(0,en.g9)(!a.columnsStateMap,"columnsStateMap已经废弃,请使用 columnsState.value 替换"),(0,en.g9)(!a.columnsStateMap,"columnsStateMap has been discarded, please use columnsState.value replacement");var E=(0,v.useCallback)(function(){var e=a.columnsState||{},t=e.persistenceType,n=e.persistenceKey;if(n&&t&&"undefined"!=typeof window){var r=window[t];try{null==r||r.removeItem(n)}catch(e){}}},[a.columnsState]);(0,v.useEffect)(function(){var e,t;if(null!==(e=a.columnsState)&&void 0!==e&&e.persistenceKey&&null!==(t=a.columnsState)&&void 0!==t&&t.persistenceType&&"undefined"!=typeof window){var n=a.columnsState,r=n.persistenceType,o=n.persistenceKey,i=window[r];try{null==i||i.setItem(o,JSON.stringify($))}catch(e){E()}}},[null===(o=a.columnsState)||void 0===o?void 0:o.persistenceKey,$,null===(i=a.columnsState)||void 0===i?void 0:i.persistenceType]);var O={action:l.current,setAction:function(e){l.current=e},sortKeyColumns:g.current,setSortKeyColumns:function(e){g.current=e},propsRef:u,columnsMap:$,keyWords:f,setKeyWords:function(e){return m(e)},setTableSize:w,tableSize:x,prefixName:d.current,setPrefixName:function(e){d.current=e},setColumnsMap:k,columns:a.columns,rootDomRef:c,clearPersistenceStorage:E,defaultColumnKeyMap:A};return Object.defineProperty(O,"prefixName",{get:function(){return d.current}}),Object.defineProperty(O,"sortKeyColumns",{get:function(){return g.current}}),Object.defineProperty(O,"action",{get:function(){return l.current}}),O}(e.initValue);return(0,Ue.jsx)(Zh.Provider,{value:t,children:e.children})},tp=function(e){return(0,l.A)({},e.componentCls,{marginBlockEnd:16,backgroundColor:nt(e.colorTextBase,.02),borderRadius:e.borderRadius,border:"none","&-container":{paddingBlock:e.paddingSM,paddingInline:e.paddingLG},"&-info":{display:"flex",alignItems:"center",transition:"all 0.3s",color:e.colorTextTertiary,"&-content":{flex:1},"&-option":{minWidth:48,paddingInlineStart:16}}})};var np=function(e){var t=e.intl,n=e.onCleanSelected;return[(0,Ue.jsx)("a",{onClick:n,children:t.getMessage("alert.clear","清空")},"0")]};const rp=function(e){var t,n=e.selectedRowKeys,r=void 0===n?[]:n,o=e.onCleanSelected,i=e.alwaysShowAlert,a=e.selectedRows,s=e.alertInfoRender,l=void 0===s?function(e){var t=e.intl;return(0,Ue.jsxs)(la.A,{children:[t.getMessage("alert.selected","已选择"),r.length,t.getMessage("alert.item","项"),"  "]})}:s,c=e.alertOptionRender,u=void 0===c?np:c,h=Ze(),p=u&&u({onCleanSelected:o,selectedRowKeys:r,selectedRows:a,intl:h}),m=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-table-alert"),g=(t=m,at("ProTableAlert",function(e){var n=(0,d.A)((0,d.A)({},e),{},{componentCls:".".concat(t)});return[tp(n)]})),b=g.wrapSSR,y=g.hashId;if(!1===l)return null;var x=l({intl:h,selectedRowKeys:r,selectedRows:a,onCleanSelected:o});return!1===x||r.length<1&&!i?null:b((0,Ue.jsx)("div",{className:"".concat(m," ").concat(y).trim(),children:(0,Ue.jsx)("div",{className:"".concat(m,"-container ").concat(y).trim(),children:(0,Ue.jsxs)("div",{className:"".concat(m,"-info ").concat(y).trim(),children:[(0,Ue.jsx)("div",{className:"".concat(m,"-info-content ").concat(y).trim(),children:x}),p?(0,Ue.jsx)("div",{className:"".concat(m,"-info-option ").concat(y).trim(),children:p}):null]})})}))};function op(e){var t,n,r=function(e,t){var n=(0,v.useMemo)(function(){return new Proxy({current:t},{set:function(t,r,o){return Object.is(t[r],o)||(t[r]=o,e(n)),!0}})},[]);return n}((t=(0,v.useState)(!0),n=(0,s.A)(t,2)[1],(0,v.useCallback)(function(){return n(function(e){return!e})},[])),e);return r}var ip=function(e){var t=(0,v.useRef)(e);return t.current=e,t},ap="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node,sp=function(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.matchMedia&&!ap},lp=n(50848),cp=n(56855),dp=n(28557),up=n(70064),hp=n(97072);const pp=e=>{var t,n;const{prefixCls:r,ariaId:o,title:i,footer:a,extra:s,closable:l,loading:c,onClose:d,headerStyle:u,bodyStyle:h,footerStyle:p,children:f,classNames:m,styles:g}=e,y=(0,bt.TP)("drawer");let x;x=!1===l?void 0:void 0===l||!0===l?"start":"end"===(null==l?void 0:l.placement)?"end":"start";const w=v.useCallback(e=>v.createElement("button",{type:"button",onClick:d,className:b()(`${r}-close`,{[`${r}-close-${x}`]:"end"===x})},e),[d,r,x]),[A,S]=(0,up.$)((0,up.d)(e),(0,up.d)(y),{closable:!0,closeIconRender:w});return v.createElement(v.Fragment,null,(()=>{var e,t;return i||A?v.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=y.styles)||void 0===e?void 0:e.header),u),null==g?void 0:g.header),className:b()(`${r}-header`,{[`${r}-header-close-only`]:A&&!i&&!s},null===(t=y.classNames)||void 0===t?void 0:t.header,null==m?void 0:m.header)},v.createElement("div",{className:`${r}-header-title`},"start"===x&&S,i&&v.createElement("div",{className:`${r}-title`,id:o},i)),s&&v.createElement("div",{className:`${r}-extra`},s),"end"===x&&S):null})(),v.createElement("div",{className:b()(`${r}-body`,null==m?void 0:m.body,null===(t=y.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=y.styles)||void 0===n?void 0:n.body),h),null==g?void 0:g.body)},c?v.createElement(hp.A,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):f),(()=>{var e,t;if(!a)return null;const n=`${r}-footer`;return v.createElement("div",{className:b()(n,null===(e=y.classNames)||void 0===e?void 0:e.footer,null==m?void 0:m.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=y.styles)||void 0===t?void 0:t.footer),p),null==g?void 0:g.footer)},a)})())},fp=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},mp=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),gp=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},mp({opacity:e},{opacity:1})),bp=(e,t)=>[gp(.7,t),mp({transform:fp(e)},{transform:"none"})],vp=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:gp(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((e,t)=>Object.assign(Object.assign({},e),{[`&-${t}`]:bp(t,n)}),{})}}},yp=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:d,fontSizeLG:u,lineHeightLG:h,lineWidth:p,lineType:f,colorSplit:m,marginXS:g,colorIcon:b,colorIconHover:v,colorBgTextHover:x,colorBgTextActive:w,colorText:A,fontWeightStrong:S,footerPaddingBlock:C,footerPaddingInline:$,calc:k}=e,E=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:A,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[E]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${E}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${E}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${E}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${E}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,y.zA)(c)} ${(0,y.zA)(d)}`,fontSize:u,lineHeight:h,borderBottom:`${(0,y.zA)(p)} ${f} ${m}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:k(u).add(l).equal(),height:k(u).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:b,fontWeight:S,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:g},[`&:not(${n}-close-end)`]:{marginInlineEnd:g},"&:hover":{color:v,backgroundColor:x,textDecoration:"none"},"&:active":{backgroundColor:w}},(0,$t.K8)(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:h},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${(0,y.zA)(C)} ${(0,y.zA)($)}`,borderTop:`${(0,y.zA)(p)} ${f} ${m}`},"&-rtl":{direction:"rtl"}}}},xp=(0,kt.OF)("Drawer",e=>{const t=(0,Et.oX)(e,{});return[yp(t),vp(t)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}));var wp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{rootClassName:t,width:n,height:r,size:o="default",mask:i=!0,push:a=Ap,open:s,afterOpenChange:l,onClose:c,prefixCls:d,getContainer:u,panelRef:h=null,style:p,className:f,"aria-labelledby":m,visible:g,afterVisibleChange:y,maskStyle:x,drawerStyle:w,contentWrapperStyle:A,destroyOnClose:S,destroyOnHidden:C}=e,$=wp(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","panelRef","style","className","aria-labelledby","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),k=(0,cp.A)(),E=$.title?k:void 0,{getPopupContainer:O,getPrefixCls:P,direction:j,className:I,style:M,classNames:T,styles:_}=(0,bt.TP)("drawer"),R=P("drawer",d),[B,F,D]=xp(R),z=void 0===u&&O?()=>O(document.body):u,N=b()({"no-mask":!i,[`${R}-rtl`]:"rtl"===j},t,F,D);const L=v.useMemo(()=>null!=n?n:"large"===o?736:378,[n,o]),H=v.useMemo(()=>null!=r?r:"large"===o?736:378,[r,o]),W={motionName:(0,xt.b)(R,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},U=(0,dp.f)(),V=(0,pl.K4)(h,U),[G,q]=(0,nl.YK)("Drawer",$.zIndex),{classNames:X={},styles:K={}}=$;return B(v.createElement(fl.A,{form:!0,space:!0},v.createElement(al.A.Provider,{value:q},v.createElement(lp.A,Object.assign({prefixCls:R,onClose:c,maskMotion:W,motion:e=>({motionName:(0,xt.b)(R,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},$,{classNames:{mask:b()(X.mask,T.mask),content:b()(X.content,T.content),wrapper:b()(X.wrapper,T.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},K.mask),x),_.mask),content:Object.assign(Object.assign(Object.assign({},K.content),w),_.content),wrapper:Object.assign(Object.assign(Object.assign({},K.wrapper),A),_.wrapper)},open:null!=s?s:g,mask:i,push:a,width:L,height:H,style:Object.assign(Object.assign({},M),p),className:b()(I,f),rootClassName:N,getContainer:z,afterOpenChange:null!=l?l:y,panelRef:V,zIndex:G,"aria-labelledby":null!=m?m:E,destroyOnClose:null!=C?C:S}),v.createElement(pp,Object.assign({prefixCls:R},$,{ariaId:E,onClose:c}))))))};Sp._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=wp(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=v.useContext(bt.QO),s=a("drawer",t),[l,c,d]=xp(s),u=b()(s,`${s}-pure`,`${s}-${o}`,c,d,r);return l(v.createElement("div",{className:u,style:n},v.createElement(pp,Object.assign({prefixCls:s},i))))};const Cp=Sp;var $p=n(40961),kp=function(e){return(0,l.A)({},e.componentCls,{"&-sidebar-dragger":{width:"5px",cursor:"ew-resize",padding:"4px 0 0",borderTop:"1px solid transparent",position:"absolute",top:0,left:0,bottom:0,zIndex:100,backgroundColor:"transparent","&-min-disabled":{cursor:"w-resize"},"&-max-disabled":{cursor:"e-resize"}}})};var Ep=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","resize","onOpenChange","visible","open"];const Op={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};var Pp=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:Op}))};const jp=v.forwardRef(Pp);var Ip=function(e){return(0,l.A)({},e.componentCls,{lineHeight:"30px","&::before":{display:"block",height:0,visibility:"hidden",content:"'.'"},"&-small":{lineHeight:e.lineHeight},"&-container":{display:"flex",flexWrap:"wrap",gap:e.marginXS},"&-item":(0,l.A)({whiteSpace:"nowrap"},"".concat(e.antCls,"-form-item"),{marginBlock:0}),"&-line":{minWidth:"198px"},"&-line:not(:first-child)":{marginBlockStart:"16px",marginBlockEnd:8},"&-collapse-icon":{width:e.controlHeight,height:e.controlHeight,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},"&-effective":(0,l.A)({},"".concat(e.componentCls,"-collapse-icon"),{backgroundColor:e.colorBgTextHover})})};var Mp=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],Tp=function(e){var t=e.items,n=e.prefixCls,r=e.size,o=void 0===r?"middle":r,i=e.collapse,a=e.collapseLabel,c=e.onValuesChange,u=e.bordered,h=e.values,p=e.footerRender,f=e.placement,m=Ze(),g="".concat(n,"-light-filter"),y=function(e){return at("LightFilter",function(t){var n=(0,d.A)((0,d.A)({},t),{},{componentCls:".".concat(e)});return[Ip(n)]})}(g),x=y.wrapSSR,w=y.hashId,A=(0,v.useState)(!1),S=(0,s.A)(A,2),C=S[0],$=S[1],k=(0,v.useState)(function(){return(0,d.A)({},h)}),E=(0,s.A)(k,2),O=E[0],P=E[1];(0,v.useEffect)(function(){P((0,d.A)({},h))},[h]);var j=(0,v.useMemo)(function(){var e=[],n=[];return t.forEach(function(t){(t.props||{}).secondary||i?e.push(t):n.push(t)}),{collapseItems:e,outsideItems:n}},[e.items]),I=j.collapseItems,M=j.outsideItems;return x((0,Ue.jsx)("div",{className:b()(g,w,"".concat(g,"-").concat(o),(0,l.A)({},"".concat(g,"-effective"),Object.keys(h).some(function(e){return Array.isArray(h[e])?h[e].length>0:h[e]}))),children:(0,Ue.jsxs)("div",{className:"".concat(g,"-container ").concat(w).trim(),children:[M.map(function(e,t){if(null==e||!e.props)return e;var n=e.key,r=((null==e?void 0:e.props)||{}).fieldProps,o=null!=r&&r.placement?null==r?void 0:r.placement:f;return(0,Ue.jsx)("div",{className:"".concat(g,"-item ").concat(w).trim(),children:v.cloneElement(e,{fieldProps:(0,d.A)((0,d.A)({},e.props.fieldProps),{},{placement:o}),proFieldProps:(0,d.A)((0,d.A)({},e.props.proFieldProps),{},{light:!0,label:e.props.label,bordered:u}),bordered:u})},n||t)}),I.length?(0,Ue.jsx)("div",{className:"".concat(g,"-item ").concat(w).trim(),children:(0,Ue.jsx)(Xa,{padding:24,open:C,onOpenChange:function(e){$(e)},placement:f,label:a||(i?(0,Ue.jsx)(jp,{className:"".concat(g,"-collapse-icon ").concat(w).trim()}):(0,Ue.jsx)(Za,{size:o,label:m.getMessage("form.lightFilter.more","更多筛选")})),footerRender:p,footer:{onConfirm:function(){c((0,d.A)({},O)),$(!1)},onClear:function(){var e={};I.forEach(function(t){var n=t.props.name;e[n]=void 0}),c(e)}},children:I.map(function(e){var t=e.key,n=e.props,r=n.name,o=n.fieldProps,i=(0,d.A)((0,d.A)({},o),{},{onChange:function(e){return P((0,d.A)((0,d.A)({},O),{},(0,l.A)({},r,null!=e&&e.target?e.target.value:e))),!1}});O.hasOwnProperty(r)&&(i[e.props.valuePropName||"value"]=O[r]);var a=null!=o&&o.placement?null==o?void 0:o.placement:f;return(0,Ue.jsx)("div",{className:"".concat(g,"-line ").concat(w).trim(),children:v.cloneElement(e,{fieldProps:(0,d.A)((0,d.A)({},i),{},{placement:a})})},t)})})},"more"):null]})}))};var _p=n(49222),Rp=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];var Bp=n(18462),Fp=function(e){if(e&&!0!==e)return e},Dp=function(e,t,n,r){return e?(0,Ue.jsxs)(Ue.Fragment,{children:[n.getMessage("tableForm.collapsed","展开"),r&&"(".concat(r,")"),(0,Ue.jsx)(Ya.A,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]}):(0,Ue.jsxs)(Ue.Fragment,{children:[n.getMessage("tableForm.expand","收起"),(0,Ue.jsx)(Ya.A,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]})};const zp=function(e){var t=e.setCollapsed,n=e.collapsed,r=void 0!==n&&n,o=e.submitter,i=e.style,a=e.hiddenNum,s=(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls,l=Ze(),c=(0,v.useContext)(et).hashId,d=Fp(e.collapseRender)||Dp;return(0,Ue.jsxs)(la.A,{style:i,size:16,children:[o,!1!==e.collapseRender&&(0,Ue.jsx)("a",{className:"".concat(s("pro-query-filter-collapse-button")," ").concat(c).trim(),onClick:function(){return t(!r)},children:null==d?void 0:d(r,e,l,a)})]})};var Np=function(e){return(0,l.A)({},e.componentCls,(0,l.A)((0,l.A)((0,l.A)((0,l.A)({"&&":{padding:24}},"".concat(e.antCls,"-form-item"),{marginBlock:0}),"".concat(e.proComponentsCls,"-form-group-title"),{marginBlock:0}),"&-row",{rowGap:24,"&-split":(0,l.A)((0,l.A)({},"".concat(e.proComponentsCls,"-form-group"),{display:"flex",alignItems:"center",gap:e.marginXS}),"&:last-child",{marginBlockEnd:12}),"&-split-line":{"&:after":{position:"absolute",width:"100%",content:'""',height:1,insetBlockEnd:-12,borderBlockEnd:"1px dashed ".concat(e.colorSplit)}}}),"&-collapse-button",{display:"flex",alignItems:"center",color:e.colorPrimary}))};var Lp,Hp=["collapsed","layout","defaultCollapsed","defaultColsNumber","defaultFormItemsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum","submitterColSpanProps"],Wp={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:1/0},Up={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[1/0,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[1/0,4,"horizontal"]]},Vp=function(e){var t,n,r,o,i=Ze(),a=(0,v.useContext)(et).hashId,l=e.resetText||i.getMessage("tableForm.reset","重置"),c=e.searchText||i.getMessage("tableForm.search","搜索"),u=(0,Ut.A)(function(){return e.defaultCollapsed&&!!e.submitter},{value:e.collapsed,onChange:e.onCollapse}),h=(0,s.A)(u,2),p=h[0],m=h[1],g=e.optionRender,y=e.collapseRender,x=e.split,w=e.items,A=e.spanSize,S=e.showLength,C=e.searchGutter,$=e.showHiddenNum,k=(0,v.useMemo)(function(){return e.submitter&&!1!==g?v.cloneElement(e.submitter,(0,d.A)({searchConfig:{resetText:l,submitText:c},render:g?function(t,n){return g((0,d.A)((0,d.A)({},e),{},{resetText:l,searchText:c}),e,n)}:g},e.submitter.props)):null},[e,l,c,g]),E=0,O=0,P=!1,j=0,I=0,M=function(e,t){return null==e?void 0:e.flatMap(function(e){var n,r,o;return"ProForm-Group"!==(null==e||null===(n=e.type)||void 0===n?void 0:n.displayName)||null!==(r=e.props)&&void 0!==r&&r.title?t&&v.isValidElement(e)?v.cloneElement(e,(0,d.A)((0,d.A)({},e.props),{},{formItemProps:(0,d.A)((0,d.A)({},null===(o=e.props)||void 0===o?void 0:o.formItemProps),{},{rules:[]})})):e:e.props.children})}(w,e.ignoreRules).map(function(t,n){var r,o,i,a,s,l=v.isValidElement(t)&&null!==(r=null==t||null===(o=t.props)||void 0===o?void 0:o.colSize)&&void 0!==r?r:1,c=Math.min(A.span*(l||1),24);(E+=c,j+=l,0===n)&&(P=24===c&&!(null!=t&&null!==(s=t.props)&&void 0!==s&&s.hidden));var d=(null==t||null===(i=t.props)||void 0===i?void 0:i.hidden)||p&&(P||j>S)&&!!n;O+=1;var u=v.isValidElement(t)&&(t.key||"".concat(null===(a=t.props)||void 0===a?void 0:a.name))||n;return v.isValidElement(t)&&d?e.preserve?{itemDom:v.cloneElement(t,{hidden:!0,key:u||n}),hidden:!0,colSpan:c}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:t,colSpan:c,hidden:!1}}),T=M.map(function(t,n){var r,o,i=t.itemDom,s=t.colSpan;if(null==i||null===(r=i.props)||void 0===r?void 0:r.hidden)return i;var l=v.isValidElement(i)&&(i.key||"".concat(null===(o=i.props)||void 0===o?void 0:o.name))||n;return 24-I%2424?24-(null!==(r=null===(o=e.submitterColSpanProps)||void 0===o?void 0:o.span)&&void 0!==r?r:A.span):24-i},[I,I%24+(null!==(t=null===(n=e.submitterColSpanProps)||void 0===n?void 0:n.span)&&void 0!==t?t:A.span),null===(r=e.submitterColSpanProps)||void 0===r?void 0:r.span]),F=(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls("pro-query-filter");return(0,Ue.jsxs)(Xt.A,{gutter:C,justify:"start",className:b()("".concat(F,"-row"),a),children:[T,k&&(0,Ue.jsx)(Kt.A,(0,d.A)((0,d.A)({span:A.span,offset:B,className:b()(null===(o=e.submitterColSpanProps)||void 0===o?void 0:o.className)},e.submitterColSpanProps),{},{style:{textAlign:"end"},children:(0,Ue.jsx)(yn.A.Item,{label:" ",colon:!1,shouldUpdate:!1,className:"".concat(F,"-actions ").concat(a).trim(),children:(0,Ue.jsx)(zp,{hiddenNum:_,collapsed:p,collapseRender:!!R&&y,submitter:k,setCollapsed:m},"pro-form-query-filter-actions")})}),"submitter")]},"resize-observer-row")},Gp=sp()?null===(Lp=document)||void 0===Lp||null===(Lp=Lp.body)||void 0===Lp?void 0:Lp.clientWidth:1024;var qp=n(26067),Xp=n(92387),Kp=n(6754);const Yp=e=>{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:o,lineHeight:(0,y.zA)(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},Qp=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},Jp=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:o}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${(0,y.zA)(i)} ${(0,y.zA)(e.paddingXXS)} 0`,margin:`0 ${(0,y.zA)(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${(0,y.zA)(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(i).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${o}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${(0,y.zA)(e.calc(n).div(2).equal())})`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},Zp=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${(0,y.zA)(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(o).div(2).add(e.controlHeightLG).equal()}}}}}},ef=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:o,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},$t.L9),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${(0,y.zA)(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${(0,y.zA)(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},tf=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:o,processIconColor:i,marginXXS:a,lineWidthBold:s,lineWidth:l,paddingXXS:c}=e,d=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),u=e.calc(o).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:c,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:i}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:c,[`> ${n}-item-container > ${n}-item-tail`]:{top:a,insetInlineStart:e.calc(r).div(2).sub(l).add(c).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(o).div(2).sub(l).add(c).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(c).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${(0,y.zA)(d)} !important`,height:`${(0,y.zA)(d)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(o).div(2).add(c).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${(0,y.zA)(u)} !important`,height:`${(0,y.zA)(u)} !important`}}}}},nf=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:o,dotSize:i,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${(0,y.zA)(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${(0,y.zA)(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:(0,y.zA)(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(o).div(2).equal(),width:o,height:o,lineHeight:(0,y.zA)(o),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),top:0,insetInlineStart:e.calc(i).sub(o).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${(0,y.zA)(e.calc(i).add(e.paddingXS).equal())} 0 ${(0,y.zA)(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},rf=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},of=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:o,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${(0,y.zA)(e.marginXS)}`,fontSize:r,lineHeight:(0,y.zA)(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:(0,y.zA)(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:i,fontSize:o},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:(0,y.zA)(n),transform:"none"}}}}},af=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:(0,y.zA)(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${(0,y.zA)(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${(0,y.zA)(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${(0,y.zA)(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${(0,y.zA)(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:(0,y.zA)(n)}}}}},sf=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,o=`${e}TitleColor`,i=`${e}DescriptionColor`,a=`${e}TailColor`,s=`${e}IconBgColor`,l=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[l],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[o],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},lf=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,o=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none",[`&:focus-visible ${o}`]:(0,$t.jk)(e)},[`${o}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[o]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:(0,y.zA)(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${(0,y.zA)(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:(0,y.zA)(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},sf("wait",e)),sf("process",e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),sf("finish",e)),sf("error",e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},cf=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},df=(0,kt.OF)("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:o,colorPrimary:i,colorTextDescription:a,colorTextQuaternary:s,colorError:l,colorBorderSecondary:c,colorSplit:d}=e;return(e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,$t.dF)(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),lf(e)),cf(e)),Yp(e)),of(e)),af(e)),Qp(e)),Zp(e)),nf(e)),ef(e)),rf(e)),tf(e)),Jp(e))}})((0,Et.oX)(e,{processIconColor:r,processTitleColor:o,processDescriptionColor:o,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:d,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:d,waitDotColor:t,finishIconColor:i,finishTitleColor:o,finishDescriptionColor:a,finishTailColor:i,finishDotColor:i,errorIconColor:r,errorTitleColor:l,errorDescriptionColor:l,errorTailColor:d,errorIconBgColor:l,errorIconBorderColor:l,errorDotColor:l,stepsNavActiveColor:i,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:c}))},e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}));const uf=function(e,t){return e||function(e){return e.filter(e=>e)}((0,At.A)(t).map(e=>{if(v.isValidElement(e)){const{props:t}=e;return Object.assign({},t)}return null}))};var hf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{percent:t,size:n,className:r,rootClassName:o,direction:i,items:a,responsive:s=!0,current:l=0,children:c,style:d}=e,u=hf(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:h}=(0,Wt.A)(s),{getPrefixCls:p,direction:f,className:g,style:y}=(0,bt.TP)("steps"),x=v.useMemo(()=>s&&h?"vertical":i,[s,h,i]),w=(0,yt.A)(n),A=p("steps",e.prefixCls),[S,C,$]=df(A),k="inline"===e.type,E=p("",e.iconPrefix),O=uf(a,c),P=k?void 0:t,j=Object.assign(Object.assign({},y),d),I=b()(g,{[`${A}-rtl`]:"rtl"===f,[`${A}-with-progress`]:void 0!==P},r,o,C,$),M={finish:v.createElement(qp.A,{className:`${A}-finish-icon`}),error:v.createElement(ct.A,{className:`${A}-error-icon`})};return S(v.createElement(Xp.A,Object.assign({icons:M},u,{style:j,current:l,size:w,items:O,itemRender:k?(e,t)=>e.description?v.createElement(m.A,{title:e.description},t):t:void 0,stepIcon:({node:e,status:t})=>{if("process"===t&&void 0!==P){const t="small"===w?32:40;return v.createElement("div",{className:`${A}-progress-icon`},v.createElement(Kp.A,{type:"circle",percent:P,size:t,strokeWidth:4,format:()=>null}),e)}return e},direction:x,prefixCls:A,iconPrefix:E,className:I})))};pf.Step=Xp.A.Step;const ff=pf;var mf=["onFinish","step","formRef","title","stepProps"];const gf=function(e){var t=(0,v.useRef)(),n=(0,v.useContext)(yf),r=(0,v.useContext)(wf),a=(0,d.A)((0,d.A)({},e),r),s=a.onFinish,l=a.step,c=a.formRef,h=(a.title,a.stepProps,(0,u.A)(a,mf));return(0,en.g9)(!h.submitter,"StepForm 不包含提交按钮,请在 StepsForm 上"),(0,v.useImperativeHandle)(c,function(){return t.current},[null==c?void 0:c.current]),(0,v.useEffect)(function(){if(a.name||a.step){var e=(a.name||a.step).toString();return null==n||n.regForm(e,a),function(){null==n||n.unRegForm(e)}}},[]),n&&null!=n&&n.formArrayRef&&(n.formArrayRef.current[l||0]=t),(0,Ue.jsx)(sa,(0,d.A)({formRef:t,onFinish:function(){var e=(0,i.A)((0,o.A)().mark(function e(t){return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(h.name&&(null==n||n.onFormFinish(h.name,t)),!s){e.next=9;break}return null==n||n.setLoading(!0),e.next=5,null==s?void 0:s(t);case 5:return e.sent&&(null==n||n.next()),null==n||n.setLoading(!1),e.abrupt("return");case 9:null!=n&&n.lastStep||null==n||n.next();case 10:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),onInit:function(e,r){var o;t.current=r,n&&null!=n&&n.formArrayRef&&(n.formArrayRef.current[l||0]=t),null==h||null===(o=h.onInit)||void 0===o||o.call(h,e,r)},layout:"vertical"},(0,Vt.A)(h,["layoutType","columns"])))};var bf=function(e){return(0,l.A)({},e.componentCls,{"&-container":{width:"max-content",minWidth:"420px",maxWidth:"100%",margin:"auto"},"&-steps-container":(0,l.A)({maxWidth:"1160px",margin:"auto"},"".concat(e.antCls,"-steps-vertical"),{height:"100%"}),"&-step":{display:"none",marginBlockStart:"32px","&-active":{display:"block"},"> form":{maxWidth:"100%"}}})};var vf=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef","layoutRender"],yf=v.createContext(void 0),xf={horizontal:function(e){var t=e.stepsDom,n=e.formDom;return(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)(Xt.A,{gutter:{xs:8,sm:16,md:24},children:(0,Ue.jsx)(Kt.A,{span:24,children:t})}),(0,Ue.jsx)(Xt.A,{gutter:{xs:8,sm:16,md:24},children:(0,Ue.jsx)(Kt.A,{span:24,children:n})})]})},vertical:function(e){var t=e.stepsDom,n=e.formDom;return(0,Ue.jsxs)(Xt.A,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[(0,Ue.jsx)(Kt.A,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:v.cloneElement(t,{style:{height:"100%"}})}),(0,Ue.jsx)(Kt.A,{children:(0,Ue.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:n})})]})}},wf=v.createContext(null);function Af(e){var t=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-steps-form"),n=function(e){return at("StepsForm",function(t){var n=(0,d.A)((0,d.A)({},t),{},{componentCls:".".concat(e)});return[bf(n)]})}(t),r=n.wrapSSR,a=n.hashId,h=(e.current,e.onCurrentChange,e.submitter),p=e.stepsFormRender,m=e.stepsRender,g=e.stepFormRender,y=e.stepsProps,x=e.onFinish,w=e.formProps,A=e.containerStyle,S=e.formRef,C=e.formMapRef,$=e.layoutRender,k=(0,u.A)(e,vf),E=(0,v.useRef)(new Map),O=(0,v.useRef)(new Map),P=(0,v.useRef)([]),j=(0,v.useState)([]),I=(0,s.A)(j,2),M=I[0],T=I[1],_=(0,v.useState)(!1),R=(0,s.A)(_,2),B=R[0],F=R[1],D=Ze(),z=(0,Ut.A)(0,{value:e.current,onChange:e.onCurrentChange}),N=(0,s.A)(z,2),L=N[0],H=N[1],W=(0,v.useMemo)(function(){return xf[(null==y?void 0:y.direction)||"horizontal"]},[null==y?void 0:y.direction]),U=(0,v.useMemo)(function(){return L===M.length-1},[M.length,L]),V=(0,v.useCallback)(function(e,t){O.current.has(e)||T(function(t){return[].concat((0,c.A)(t),[e])}),O.current.set(e,t)},[]),G=(0,v.useCallback)(function(e){T(function(t){return t.filter(function(t){return t!==e})}),O.current.delete(e),E.current.delete(e)},[]);(0,v.useImperativeHandle)(C,function(){return P.current},[P.current]),(0,v.useImperativeHandle)(S,function(){var e;return null===(e=P.current[L||0])||void 0===e?void 0:e.current},[L,P.current]);var q=(0,v.useCallback)(function(){var e=(0,i.A)((0,o.A)().mark(function e(t,n){var r;return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(E.current.set(t,n),U&&x){e.next=3;break}return e.abrupt("return");case 3:return F(!0),r=wi.apply(void 0,[{}].concat((0,c.A)(Array.from(E.current.values())))),e.prev=5,e.next=8,x(r);case 8:e.sent&&(H(0),P.current.forEach(function(e){var t;return null===(t=e.current)||void 0===t?void 0:t.resetFields()})),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5);case 15:return e.prev=15,F(!1),e.finish(15);case 18:case"end":return e.stop()}},e,null,[[5,12,15,18]])}));return function(t,n){return e.apply(this,arguments)}}(),[U,x,F,H]),X=(0,v.useMemo)(function(){var e=Ua(Zt.A,"4.24.0")>-1,n=e?{items:M.map(function(e){var t=O.current.get(e);return(0,d.A)({key:e,title:null==t?void 0:t.title},null==t?void 0:t.stepProps)})}:{};return(0,Ue.jsx)("div",{className:"".concat(t,"-steps-container ").concat(a).trim(),style:{maxWidth:Math.min(320*M.length,1160)},children:(0,Ue.jsx)(ff,(0,d.A)((0,d.A)((0,d.A)({},y),n),{},{current:L,onChange:void 0,children:!e&&M.map(function(e){var t=O.current.get(e);return(0,Ue.jsx)(ff.Step,(0,d.A)({title:null==t?void 0:t.title},null==t?void 0:t.stepProps),e)})}))})},[M,a,t,L,y]),K=wn(function(){var e;null===(e=P.current[L].current)||void 0===e||e.submit()}),Y=wn(function(){L<1||H(L-1)}),Q=(0,v.useMemo)(function(){return!1!==h&&(0,Ue.jsx)(_i.Ay,(0,d.A)((0,d.A)({type:"primary",loading:B},null==h?void 0:h.submitButtonProps),{},{onClick:function(){var e;null==h||null===(e=h.onSubmit)||void 0===e||e.call(h),K()},children:D.getMessage("stepsForm.next","下一步")}),"next")},[D,B,K,h]),J=(0,v.useMemo)(function(){return!1!==h&&(0,Ue.jsx)(_i.Ay,(0,d.A)((0,d.A)({},null==h?void 0:h.resetButtonProps),{},{onClick:function(){var e;Y(),null==h||null===(e=h.onReset)||void 0===e||e.call(h)},children:D.getMessage("stepsForm.prev","上一步")}),"pre")},[D,Y,h]),Z=(0,v.useMemo)(function(){return!1!==h&&(0,Ue.jsx)(_i.Ay,(0,d.A)((0,d.A)({type:"primary",loading:B},null==h?void 0:h.submitButtonProps),{},{onClick:function(){var e;null==h||null===(e=h.onSubmit)||void 0===e||e.call(h),K()},children:D.getMessage("stepsForm.submit","提交")}),"submit")},[D,B,K,h]),ee=wn(function(){L>M.length-2||H(L+1)}),te=(0,v.useMemo)(function(){var e=[],t=L||0;if(t<1?1===M.length?e.push(Z):e.push(Q):t+1===M.length?e.push(J,Z):e.push(J,Q),e=e.filter(v.isValidElement),h&&h.render){var n,r={form:null===(n=P.current[L])||void 0===n?void 0:n.current,onSubmit:K,step:L,onPre:Y};return h.render(r,e)}return h&&!1===(null==h?void 0:h.render)?null:e},[M.length,Q,K,J,Y,L,Z,h]),ne=(0,v.useMemo)(function(){return(0,At.A)(e.children).map(function(e,n){var r=e.props,o=r.name||"".concat(n),i=L===n,s=i?{contentRender:g,submitter:!1}:{};return(0,Ue.jsx)("div",{className:b()("".concat(t,"-step"),a,(0,l.A)({},"".concat(t,"-step-active"),i)),children:(0,Ue.jsx)(wf.Provider,{value:(0,d.A)((0,d.A)((0,d.A)((0,d.A)({},s),w),r),{},{name:o,step:n}),children:e})},o)})},[w,a,t,e.children,L,g]),re=(0,v.useMemo)(function(){return m?m(M.map(function(e){var t;return{key:e,title:null===(t=O.current.get(e))||void 0===t?void 0:t.title}}),X):X},[M,X,m]),oe=(0,v.useMemo)(function(){return(0,Ue.jsxs)("div",{className:"".concat(t,"-container ").concat(a).trim(),style:A,children:[ne,p?null:(0,Ue.jsx)(la.A,{children:te})]})},[A,ne,a,t,p,te]),ie=(0,v.useMemo)(function(){var e={stepsDom:re,formDom:oe};return p?p($?$(e):W(e),te):$?$(e):W(e)},[re,oe,W,p,te,$]);return r((0,Ue.jsx)("div",{className:b()(t,a),children:(0,Ue.jsx)(yn.A.Provider,(0,d.A)((0,d.A)({},k),{},{children:(0,Ue.jsx)(yf.Provider,{value:{loading:B,setLoading:F,regForm:V,keyArray:M,next:ee,formArrayRef:P,formMapRef:O,lastStep:U,unRegForm:G,onFormFinish:q},children:ie})}))}))}function Sf(e){return(0,Ue.jsx)(Je,{needDeps:!0,children:(0,Ue.jsx)(Af,(0,d.A)({},e))})}Sf.StepForm=gf,Sf.useForm=yn.A.useForm;var Cf=["steps","columns","forceUpdate","grid"];const $f=function(e){var t=e.steps,n=e.columns,r=e.forceUpdate,o=e.grid,i=(0,u.A)(e,Cf),a=ip(i),s=(0,v.useCallback)(function(e){var t,n;null===(t=(n=a.current).onCurrentChange)||void 0===t||t.call(n,e),r([])},[r,a]),l=(0,v.useMemo)(function(){return null==t?void 0:t.map(function(e,t){return(0,v.createElement)(vA,(0,d.A)((0,d.A)({grid:o},e),{},{key:t,layoutType:"StepForm",columns:n[t]}))})},[n,o,t]);return(0,Ue.jsx)(Sf,(0,d.A)((0,d.A)({},i),{},{onCurrentChange:s,children:l}))};const kf=function(e){var t=e.children;return(0,Ue.jsx)(Ue.Fragment,{children:t})};var Ef=["name","originDependencies","children","ignoreFormListField"],Of=function(e){var t=e.name,n=e.originDependencies,r=void 0===n?t:n,o=e.children,i=e.ignoreFormListField,a=(0,u.A)(e,Ef),s=(0,v.useContext)($n),l=(0,v.useContext)(Zi),c=(0,v.useMemo)(function(){return t.map(function(e){var t,n=[e];return!i&&void 0!==l.name&&null!==(t=l.listName)&&void 0!==t&&t.length&&n.unshift(l.listName),n.flat(1)})},[l.listName,l.name,i,null==t?void 0:t.toString()]);return(0,Ue.jsx)(yn.A.Item,(0,d.A)((0,d.A)({},a),{},{noStyle:!0,shouldUpdate:function(e,t,n){return"boolean"==typeof a.shouldUpdate?a.shouldUpdate:"function"==typeof a.shouldUpdate?null===(r=a.shouldUpdate)||void 0===r?void 0:r.call(a,e,t,n):c.some(function(n){return!Cn((0,vi.A)(e,n),(0,vi.A)(t,n))});var r},children:function(e){for(var n={},i=0;i1&&void 0!==arguments[1]&&arguments[1],n="".concat("valueType request plain renderFormItem render text formItemProps valueEnum"," ").concat("fieldProps isDefaultDom groupProps contentRender submitterProps submitter").split(/[\s\n]+/),r={};return Object.keys(e||{}).forEach(function(o){n.includes(o)&&!t||(r[o]=e[o])}),r}var Mf=n(14703);const Tf=v.createContext({}),_f=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:d,textFontSizeSM:u,iconFontSize:h,iconFontSizeLG:p,iconFontSizeSM:f,borderRadius:m,borderRadiusLG:g,borderRadiusSM:b,lineWidth:v,lineType:x}=e,w=(e,t,o,i)=>({width:e,height:e,borderRadius:"50%",fontSize:t,[`&${n}-square`]:{borderRadius:i},[`&${n}-icon`]:{fontSize:o,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,$t.dF)(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${(0,y.zA)(v)} ${x} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),w(a,c,h,m)),{"&-lg":Object.assign({},w(s,d,p,g)),"&-sm":Object.assign({},w(l,u,f,b)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Rf=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},Bf=(0,kt.OF)("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=(0,Et.oX)(e,{avatarBg:n,avatarColor:t});return[_f(r),Rf(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:o,textFontSizeLG:o,textFontSizeSM:o,iconFontSize:Math.round((i+a)/2),iconFontSizeLG:s,iconFontSizeSM:o,groupSpace:c,groupOverlapping:-l,groupBorderColor:d}});var Ff=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,shape:r,size:o,src:i,srcSet:a,icon:s,className:l,rootClassName:c,style:d,alt:u,draggable:h,children:p,crossOrigin:f,gap:m=4,onError:g}=e,y=Ff(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[x,w]=v.useState(1),[A,S]=v.useState(!1),[C,$]=v.useState(!0),k=v.useRef(null),E=v.useRef(null),O=(0,pl.K4)(t,k),{getPrefixCls:P,avatar:j}=v.useContext(bt.QO),I=v.useContext(Tf),M=()=>{if(!E.current||!k.current)return;const e=E.current.offsetWidth,t=k.current.offsetWidth;0!==e&&0!==t&&2*m{S(!0)},[]),v.useEffect(()=>{$(!0),w(1)},[i]),v.useEffect(M,[m]);const T=()=>{!1!==(null==g?void 0:g())&&$(!1)},_=(0,yt.A)(e=>{var t,n;return null!==(n=null!==(t=null!=o?o:null==I?void 0:I.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"}),R=Object.keys("object"==typeof _&&_||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e)),B=(0,Wt.A)(R),F=v.useMemo(()=>{if("object"!=typeof _)return{};const e=Mf.ye.find(e=>B[e]),t=_[e];return t?{width:t,height:t,fontSize:t&&(s||p)?t/2:18}:{}},[B,_,s,p]);const D=P("avatar",n),z=(0,vt.A)(D),[N,L,H]=Bf(D,z),W=b()({[`${D}-lg`]:"large"===_,[`${D}-sm`]:"small"===_}),U=v.isValidElement(i),V=r||(null==I?void 0:I.shape)||"circle",G=b()(D,W,null==j?void 0:j.className,`${D}-${V}`,{[`${D}-image`]:U||i&&C,[`${D}-icon`]:!!s},H,z,l,c,L),q="number"==typeof _?{width:_,height:_,fontSize:s?_/2:18}:{};let X;if("string"==typeof i&&C)X=v.createElement("img",{src:i,draggable:h,srcSet:a,onError:T,alt:u,crossOrigin:f});else if(U)X=i;else if(s)X=s;else if(A||1!==x){const e=`scale(${x})`,t={msTransform:e,WebkitTransform:e,transform:e};X=v.createElement(Bp.A,{onResize:M},v.createElement("span",{className:`${D}-string`,ref:E,style:t},p))}else X=v.createElement("span",{className:`${D}-string`,style:{opacity:0},ref:E},p);return N(v.createElement("span",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign(Object.assign({},q),F),null==j?void 0:j.style),d),className:G,ref:O}),X))});const zf=Df,Nf=e=>{const{size:t,shape:n}=v.useContext(Tf),r=v.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return v.createElement(Tf.Provider,{value:r},e.children)},Lf=e=>{var t,n,r,o;const{getPrefixCls:i,direction:a}=v.useContext(bt.QO),{prefixCls:s,className:l,rootClassName:c,style:d,maxCount:u,maxStyle:h,size:p,shape:f,maxPopoverPlacement:m,maxPopoverTrigger:g,children:y,max:x}=e;const w=i("avatar",s),A=`${w}-group`,S=(0,vt.A)(w),[C,$,k]=Bf(w,S),E=b()(A,{[`${A}-rtl`]:"rtl"===a},k,S,l,c,$),O=(0,At.A)(y).map((e,t)=>(0,wa.Ob)(e,{key:`avatar-key-${t}`})),P=(null==x?void 0:x.count)||u,j=O.length;if(P&&P{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return(0,Et.oX)(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},em=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},tm=(0,kt.OF)("Badge",e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:d,indicatorHeightSM:u,marginXS:h,calc:p}=e,f=`${r}-scroll-number`,m=(0,Gf.A)(e,(e,{darkColor:n})=>({[`&${t} ${t}-color-${e}`]:{background:n,[`&:not(${t}-count)`]:{color:n},"a:hover &":{background:n}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,$t.dF)(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:(0,y.zA)(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(d).div(2).equal(),boxShadow:`0 0 0 ${(0,y.zA)(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:u,height:u,fontSize:a,lineHeight:(0,y.zA)(u),borderRadius:p(u).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${(0,y.zA)(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${(0,y.zA)(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${f}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Jf,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:qf,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}}}),m),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Xf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Kf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Yf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Qf,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${f}-custom-component, ${t}-count`]:{transform:"none"},[`${f}-custom-component, ${f}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[f]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${f}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${f}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${f}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${f}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(Zf(e)),em),nm=(0,kt.OF)(["Badge","Ribbon"],e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=(0,Gf.A)(e,(e,{darkColor:t})=>({[`&${a}-color-${e}`]:{background:t,color:t}}));return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,$t.dF)(e)),{position:"absolute",top:r,padding:`0 ${(0,y.zA)(e.paddingXS)}`,color:e.colorPrimary,lineHeight:(0,y.zA)(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${(0,y.zA)(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(Zf(e)),em);const rm=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:d}=v.useContext(bt.QO),u=c("ribbon",n),h=`${u}-wrapper`,[p,f,m]=nm(u,h),g=(0,Vf.nP)(o,!1),y=b()(u,`${u}-placement-${s}`,{[`${u}-rtl`]:"rtl"===d,[`${u}-color-${o}`]:g},t),x={},w={};return o&&!g&&(x.background=o,w.color=o),p(v.createElement("div",{className:b()(h,l,f,m)},i,v.createElement("div",{className:b()(y,f),style:Object.assign(Object.assign({},x),r)},v.createElement("span",{className:`${u}-text`},a),v.createElement("div",{className:`${u}-corner`,style:w}))))},om=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),v.createElement("span",{style:i,className:b()(`${t}-only-unit`,{current:r})},n)};function im(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const am=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,s]=v.useState(o),[l,c]=v.useState(i),d=()=>{s(o),c(i)};let u,h;if(v.useEffect(()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)},[o]),a===o||Number.isNaN(o)||Number.isNaN(a))u=[v.createElement(om,Object.assign({},e,{key:o,current:!0}))],h={transition:"none"};else{u=[];const t=o+10,n=[];for(let e=o;e<=t;e+=1)n.push(e);const r=le%10===a);u=(r<0?n.slice(0,s+1):n.slice(s)).map((t,n)=>{const o=t%10;return v.createElement(om,Object.assign({},e,{key:t,value:o,offset:r<0?n-s:n,current:n===s}))}),h={transform:`translateY(${-im(a,o,r)}00%)`}}return v.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:d},u)};var sm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:s,show:l,component:c="sup",children:d}=e,u=sm(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=v.useContext(bt.QO),p=h("scroll-number",n),f=Object.assign(Object.assign({},u),{"data-show":l,style:a,className:b()(p,o,i),title:s});let m=r;if(r&&Number(r)%1==0){const e=String(r).split("");m=v.createElement("bdi",null,e.map((t,n)=>v.createElement(am,{prefixCls:p,count:Number(r),value:t,key:e.length-n})))}return(null==a?void 0:a.borderColor)&&(f.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),d?(0,wa.Ob)(d,e=>({className:b()(`${p}-custom-component`,null==e?void 0:e.className,i)})):v.createElement(c,Object.assign({},f,{ref:t}),m)}),cm=lm;var dm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:d,text:u,color:h,count:p=null,overflowCount:f=99,dot:m=!1,size:g="default",title:y,offset:x,style:w,className:A,rootClassName:S,classNames:C,styles:$,showZero:k=!1}=e,E=dm(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:P,badge:j}=v.useContext(bt.QO),I=O("badge",s),[M,T,_]=tm(I),R=p>f?`${f}+`:p,B="0"===R||0===R||"0"===u||0===u,F=null===p||B&&!k,D=(null!=d||null!=h)&&F,z=null!=d||!B,N=m&&!B,L=N?"":R,H=(0,v.useMemo)(()=>(!(null!=L&&""!==L||null!=u&&""!==u)||B&&!k)&&!N,[L,B,k,N,u]),W=(0,v.useRef)(p);H||(W.current=p);const U=W.current,V=(0,v.useRef)(L);H||(V.current=L);const G=V.current,q=(0,v.useRef)(N);H||(q.current=N);const X=(0,v.useMemo)(()=>{if(!x)return Object.assign(Object.assign({},null==j?void 0:j.style),w);const e={marginTop:x[1]};return"rtl"===P?e.left=Number.parseInt(x[0],10):e.right=-Number.parseInt(x[0],10),Object.assign(Object.assign(Object.assign({},e),null==j?void 0:j.style),w)},[P,x,w,null==j?void 0:j.style]),K=null!=y?y:"string"==typeof U||"number"==typeof U?U:void 0,Y=!H&&(0===u?k:!!u&&!0!==u),Q=Y?v.createElement("span",{className:`${I}-status-text`},u):null,J=U&&"object"==typeof U?(0,wa.Ob)(U,e=>({style:Object.assign(Object.assign({},X),e.style)})):void 0,Z=(0,Vf.nP)(h,!1),ee=b()(null==C?void 0:C.indicator,null===(n=null==j?void 0:j.classNames)||void 0===n?void 0:n.indicator,{[`${I}-status-dot`]:D,[`${I}-status-${d}`]:!!d,[`${I}-color-${h}`]:Z}),te={};h&&!Z&&(te.color=h,te.background=h);const ne=b()(I,{[`${I}-status`]:D,[`${I}-not-a-wrapper`]:!c,[`${I}-rtl`]:"rtl"===P},A,S,null==j?void 0:j.className,null===(r=null==j?void 0:j.classNames)||void 0===r?void 0:r.root,null==C?void 0:C.root,T,_);if(!c&&D&&(u||z||!F)){const e=X.color;return M(v.createElement("span",Object.assign({},E,{className:ne,style:Object.assign(Object.assign(Object.assign({},null==$?void 0:$.root),null===(o=null==j?void 0:j.styles)||void 0===o?void 0:o.root),X)}),v.createElement("span",{className:ee,style:Object.assign(Object.assign(Object.assign({},null==$?void 0:$.indicator),null===(i=null==j?void 0:j.styles)||void 0===i?void 0:i.indicator),te)}),Y&&v.createElement("span",{style:{color:e},className:`${I}-status-text`},u)))}return M(v.createElement("span",Object.assign({ref:t},E,{className:ne,style:Object.assign(Object.assign({},null===(a=null==j?void 0:j.styles)||void 0===a?void 0:a.root),null==$?void 0:$.root)}),c,v.createElement(Uf.Ay,{visible:!H,motionName:`${I}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:e})=>{var t,n;const r=O("scroll-number",l),o=q.current,i=b()(null==C?void 0:C.indicator,null===(t=null==j?void 0:j.classNames)||void 0===t?void 0:t.indicator,{[`${I}-dot`]:o,[`${I}-count`]:!o,[`${I}-count-sm`]:"small"===g,[`${I}-multiple-words`]:!o&&G&&G.toString().length>1,[`${I}-status-${d}`]:!!d,[`${I}-color-${h}`]:Z});let a=Object.assign(Object.assign(Object.assign({},null==$?void 0:$.indicator),null===(n=null==j?void 0:j.styles)||void 0===n?void 0:n.indicator),X);return h&&!Z&&(a=a||{},a.background=h),v.createElement(cm,{prefixCls:r,show:!H,motionClassName:e,className:i,count:G,title:K,style:a,key:"scrollNumber"},J)}),Q))}),hm=um;hm.Ribbon=rm;const pm=hm;var fm=function(e){var t=e.color,n=e.children;return(0,Ue.jsx)(pm,{color:t,text:n})},mm=function(e){return"map"===(t=e,"string"===(n=Object.prototype.toString.call(t).match(/^\[object (.*)\]$/)[1].toLowerCase())&&"object"===(0,a.A)(t)?"object":null===t?"null":void 0===t?"undefined":n)?e:new Map(Object.entries(e||{}));var t,n},gm={Success:function(e){var t=e.children;return(0,Ue.jsx)(pm,{status:"success",text:t})},Error:function(e){var t=e.children;return(0,Ue.jsx)(pm,{status:"error",text:t})},Default:function(e){var t=e.children;return(0,Ue.jsx)(pm,{status:"default",text:t})},Processing:function(e){var t=e.children;return(0,Ue.jsx)(pm,{status:"processing",text:t})},Warning:function(e){var t=e.children;return(0,Ue.jsx)(pm,{status:"warning",text:t})},success:function(e){var t=e.children;return(0,Ue.jsx)(pm,{status:"success",text:t})},error:function(e){var t=e.children;return(0,Ue.jsx)(pm,{status:"error",text:t})},default:function(e){var t=e.children;return(0,Ue.jsx)(pm,{status:"default",text:t})},processing:function(e){var t=e.children;return(0,Ue.jsx)(pm,{status:"processing",text:t})},warning:function(e){var t=e.children;return(0,Ue.jsx)(pm,{status:"warning",text:t})}},bm=function e(t,n,r){if(Array.isArray(t))return(0,Ue.jsx)(la.A,{split:",",size:2,wrap:!0,children:t.map(function(t,r){return e(t,n,r)})},r);var o=mm(n);if(!o.has(t)&&!o.has("".concat(t)))return(null==t?void 0:t.label)||t;var i=o.get(t)||o.get("".concat(t));if(!i)return(0,Ue.jsx)(v.Fragment,{children:(null==t?void 0:t.label)||t},r);var a=i.status,s=i.color,l=gm[a||"Init"];return l?(0,Ue.jsx)(l,{children:i.text},r):s?(0,Ue.jsx)(fm,{color:s,children:i.text},r):(0,Ue.jsx)(v.Fragment,{children:i.text||i},r)},vm=function(e){return void 0===e?{}:Ua(Zt.A,"5.13.0")<=0?{bordered:e}:{variant:e?void 0:"borderless"}},ym=n(55901),xm=n(58182),wm=n(94241),Am=n(90124),Sm=n(36467),Cm=n(21560),$m=n(26017),km=n(37729),Em=n(21381);const Om=function(e,t){const{getPrefixCls:n,direction:r,renderEmpty:o}=v.useContext(bt.QO),i=t||r;return[n("select",e),n("cascader",e),i,o]};function Pm(e,t){return v.useMemo(()=>!!t&&v.createElement("span",{className:`${e}-checkbox-inner`}),[e,t])}const jm=(e,t,n)=>{let r=n;n||(r=t?v.createElement(Zs.A,null):v.createElement(h.A,null));const o=v.useMemo(()=>v.createElement("span",{className:`${e}-menu-item-loading-icon`},v.createElement(qi.A,{spin:!0})),[e]);return v.useMemo(()=>[r,o],[r,o])};var Im=n(55974);const Mm=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,o=`\n &${r}-expand ${r}-expand-icon,\n ${r}-loading-icon\n`;return[(0,hd.gd)(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},$t.L9),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},Tm=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},_m=(0,kt.OF)("Cascader",e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},Mm(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},(0,Im.G)(e)]},Tm,{unitless:{optionSelectedFontWeight:!0}}),Rm=(0,kt.Or)(["Cascader","Panel"],e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[Mm(e),{display:"inline-flex",border:`${(0,y.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},Tm);const Bm=function(e){const{prefixCls:t,className:n,multiple:r,rootClassName:o,notFoundContent:i,direction:a,expandIcon:s,disabled:l}=e,c=v.useContext(ud.A),d=null!=l?l:c,[u,h,p,f]=Om(t,a),m=(0,vt.A)(h),[g,y,x]=_m(h,m);Rm(h);const w="rtl"===p,[A,S]=jm(u,w,s),C=i||(null==f?void 0:f("Cascader"))||v.createElement(pc.A,{componentName:"Cascader"}),$=Pm(h,r);return g(v.createElement(ym.Z,Object.assign({},e,{checkable:$,prefixCls:h,className:b()(n,y,o,x,m),notFoundContent:C,direction:p,expandIcon:A,loadingIcon:S,disabled:d})))};var Fm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const o=[],i=e.toLowerCase();return t.forEach((e,t)=>{0!==t&&o.push(" / ");let a=e[r.label];const s=typeof a;"string"!==s&&"number"!==s||(a=function(e,t,n){const r=e.toLowerCase().split(t).reduce((e,n,r)=>0===r?[n]:[].concat((0,c.A)(e),[t,n]),[]),o=[];let i=0;return r.forEach((t,r)=>{const a=i+t.length;let s=e.slice(i,a);i=a,r%2==1&&(s=v.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${r}`},s)),o.push(s)}),o}(String(a),i,n)),o.push(a)}),o},Lm=v.forwardRef((e,t)=>{var n,r,o,i;const{prefixCls:a,size:s,disabled:l,className:c,rootClassName:d,multiple:u,bordered:h=!0,transitionName:p,choiceTransitionName:f="",popupClassName:m,dropdownClassName:g,expandIcon:y,placement:x,showSearch:w,allowClear:A=!0,notFoundContent:S,direction:C,getPopupContainer:$,status:k,showArrow:E,builtinPlacements:O,style:P,variant:j,dropdownRender:I,onDropdownVisibleChange:M,dropdownMenuColumnStyle:T,popupRender:_,dropdownStyle:R,popupMenuColumnStyle:B,onOpenChange:F,styles:D,classNames:z}=e,N=Fm(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant","dropdownRender","onDropdownVisibleChange","dropdownMenuColumnStyle","popupRender","dropdownStyle","popupMenuColumnStyle","onOpenChange","styles","classNames"]),L=(0,Vt.A)(N,["suffixIcon"]),{getPrefixCls:H,getPopupContainer:W,className:U,style:V,classNames:G,styles:q}=(0,bt.TP)("cascader"),{popupOverflow:X}=v.useContext(bt.QO),{status:K,hasFeedback:Y,isFormItemInput:Q,feedbackIcon:J}=v.useContext(wm.$W),Z=(0,xm.v)(K,k);const[ee,te,ne,re]=Om(a,C),oe="rtl"===ne,ie=H(),ae=(0,vt.A)(ee),[se,le,ce]=(0,Cm.A)(ee,ae),de=(0,vt.A)(te),[ue]=_m(te,de),{compactSize:he,compactItemClassnames:pe}=(0,Xl.RQ)(ee,C),[fe,me]=(0,Am.A)("cascader",j,h),ge=S||(null==re?void 0:re("Cascader"))||v.createElement(pc.A,{componentName:"Cascader"}),be=b()((null===(n=null==z?void 0:z.popup)||void 0===n?void 0:n.root)||(null===(r=G.popup)||void 0===r?void 0:r.root)||m||g,`${te}-dropdown`,{[`${te}-dropdown-rtl`]:"rtl"===ne},d,ae,G.root,null==z?void 0:z.root,de,le,ce),ve=(0,km.A)(_||I),ye=B||T,xe=F||M,we=(null===(o=null==D?void 0:D.popup)||void 0===o?void 0:o.root)||(null===(i=q.popup)||void 0===i?void 0:i.root)||R,Ae=v.useMemo(()=>{if(!w)return w;let e={render:Nm};return"object"==typeof w&&(e=Object.assign(Object.assign({},e),w)),e},[w]),Se=(0,yt.A)(e=>{var t;return null!==(t=null!=s?s:he)&&void 0!==t?t:e}),Ce=v.useContext(ud.A),$e=null!=l?l:Ce,[ke,Ee]=jm(ee,oe,y),Oe=Pm(te,u),Pe=(0,Em.A)(e.suffixIcon,E),{suffixIcon:je,removeIcon:Ie,clearIcon:Me}=(0,$m.A)(Object.assign(Object.assign({},e),{hasFeedback:Y,feedbackIcon:J,showSuffixIcon:Pe,multiple:u,prefixCls:ee,componentName:"Cascader"})),Te=v.useMemo(()=>void 0!==x?x:oe?"bottomRight":"bottomLeft",[x,oe]),_e=!0===A?{clearIcon:Me}:A,[Re]=(0,nl.YK)("SelectLike",null==we?void 0:we.zIndex);return ue(se(v.createElement(ym.A,Object.assign({prefixCls:ee,className:b()(!a&&te,{[`${ee}-lg`]:"large"===Se,[`${ee}-sm`]:"small"===Se,[`${ee}-rtl`]:oe,[`${ee}-${fe}`]:me,[`${ee}-in-form-item`]:Q},(0,xm.L)(ee,Z,Y),pe,U,c,d,null==z?void 0:z.root,G.root,ae,de,le,ce),disabled:$e,style:Object.assign(Object.assign(Object.assign(Object.assign({},q.root),null==D?void 0:D.root),V),P)},L,{builtinPlacements:(0,Sm.A)(O,X),direction:ne,placement:Te,notFoundContent:ge,allowClear:_e,showSearch:Ae,expandIcon:ke,suffixIcon:je,removeIcon:Ie,loadingIcon:Ee,checkable:Oe,dropdownClassName:be,dropdownPrefixCls:a||te,dropdownStyle:Object.assign(Object.assign({},we),{zIndex:Re}),dropdownRender:ve,dropdownMenuColumnStyle:ye,onOpenChange:xe,choiceTransitionName:(0,xt.b)(ie,"",f),transitionName:(0,xt.b)(ie,"slide-up",p),getPopupContainer:$||W,ref:t}))))});const Hm=(0,il.A)(Lm,"dropdownAlign",e=>(0,Vt.A)(e,["visible"]));Lm.SHOW_PARENT=zm,Lm.SHOW_CHILD=Dm,Lm.Panel=Bm,Lm._InternalPanelDoNotUseOrYouWillBeFired=Hm;const Wm=Lm;var Um=n(17355),Vm=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger","optionFilterProp","optionLabelProp","valueMaxLength","fetchDataOnSearch","fetchData"],Gm=function(e,t){return"object"!==(0,a.A)(t)?e[t]||t:e[null==t?void 0:t.value]||t.label},qm=function(e,t){var n=e.label,r=e.prefixCls,o=e.onChange,i=e.value,a=e.mode,c=(e.children,e.defaultValue,e.size),h=e.showSearch,p=e.disabled,m=e.style,g=e.className,y=e.bordered,x=e.options,w=e.onSearch,A=e.allowClear,S=e.labelInValue,C=e.fieldNames,$=e.lightLabel,k=e.labelTrigger,E=e.optionFilterProp,O=e.optionLabelProp,P=void 0===O?"":O,j=e.valueMaxLength,I=void 0===j?41:j,M=e.fetchDataOnSearch,T=void 0!==M&&M,_=e.fetchData,R=(0,u.A)(e,Vm),B=e.placeholder,F=void 0===B?n:B,D=C||{},z=D.label,N=void 0===z?"label":z,L=D.value,H=void 0===L?"value":L,W=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-field-select-light-select"),U=(0,v.useState)(!1),V=(0,s.A)(U,2),G=V[0],q=V[1],X=(0,v.useState)(""),K=(0,s.A)(X,2),Y=K[0],Q=K[1],J=at("LightSelect",function(e){return(0,l.A)({},".".concat(W),(0,l.A)((0,l.A)({},"".concat(e.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),"&.".concat(W,"-searchable"),(0,l.A)({},"".concat(e.antCls,"-select"),{width:"200px","&-selector":{height:28}})))}),Z=J.wrapSSR,ee=J.hashId,te=(0,v.useMemo)(function(){var e={};return null==x||x.forEach(function(t){var n=t[P]||t[N],r=t[H];e[r]=n||r}),e},[N,x,H,P]),ne=(0,v.useMemo)(function(){return Reflect.has(R,"open")?null==R?void 0:R.open:G},[G,R]),re=Array.isArray(i)?i.map(function(e){return Gm(te,e)}):Gm(te,i);return Z((0,Ue.jsxs)("div",{className:b()(W,ee,(0,l.A)({},"".concat(W,"-searchable"),h),"".concat(W,"-container-").concat(R.placement||"bottomLeft"),g),style:m,onClick:function(e){var t;p||(null==$||null===(t=$.current)||void 0===t||null===(t=t.labelRef)||void 0===t||null===(t=t.current)||void 0===t?void 0:t.contains(e.target))&&q(!G)},children:[(0,Ue.jsx)(Ac.A,(0,d.A)((0,d.A)((0,d.A)({},R),{},{allowClear:A,value:i,mode:a,labelInValue:S,size:c,disabled:p,onChange:function(e,t){null==o||o(e,t),"multiple"!==a&&q(!1)}},vm(y)),{},{showSearch:h,onSearch:h?function(e){T&&_&&_(e),null==w||w(e)}:void 0,style:m,dropdownRender:function(e){return(0,Ue.jsxs)("div",{ref:t,children:[h&&(0,Ue.jsx)("div",{style:{margin:"4px 8px"},children:(0,Ue.jsx)(Um.A,{value:Y,allowClear:!!A,onChange:function(e){Q(e.target.value),T&&_&&_(e.target.value),null==w||w(e.target.value)},onKeyDown:function(e){"Backspace"!==e.key?"ArrowUp"!==e.key&&"ArrowDown"!==e.key||e.preventDefault():e.stopPropagation()},style:{width:"100%"},prefix:(0,Ue.jsx)(Ud.A,{})})}),e]})},open:ne,onDropdownVisibleChange:function(e){var t;e||Q(""),k||q(e),null==R||null===(t=R.onDropdownVisibleChange)||void 0===t||t.call(R,e)},prefixCls:r,options:w||!Y?x:null==x?void 0:x.filter(function(e){var t,n;return E?(0,At.A)(e[E]).join("").toLowerCase().includes(Y):(null===(t=String(e[N]))||void 0===t||null===(t=t.toLowerCase())||void 0===t?void 0:t.includes(null==Y?void 0:Y.toLowerCase()))||(null===(n=e[H])||void 0===n||null===(n=n.toString())||void 0===n||null===(n=n.toLowerCase())||void 0===n?void 0:n.includes(null==Y?void 0:Y.toLowerCase()))})})),(0,Ue.jsx)(Za,{ellipsis:!0,label:n,placeholder:F,disabled:p,bordered:y,allowClear:!!A,value:re||(null==i?void 0:i.label)||i,onClear:function(){null==o||o(void 0,void 0)},ref:$,valueMaxLength:I})]}))};const Xm=v.forwardRef(qm);var Km=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue","preserveOriginalLabel"],Ym=["className","optionType"],Qm=function(e,t){var n=e.optionItemRender,r=e.mode,o=e.onSearch,i=e.onFocus,a=e.onChange,c=e.autoClearSearchValue,h=void 0===c||c,p=e.searchOnFocus,m=void 0!==p&&p,g=e.resetAfterSelect,y=void 0!==g&&g,x=e.fetchDataOnSearch,w=void 0===x||x,A=e.optionFilterProp,S=void 0===A?"label":A,C=e.optionLabelProp,$=void 0===C?"label":C,k=e.className,E=e.disabled,O=e.options,P=e.fetchData,j=e.resetData,I=e.prefixCls,M=e.onClear,T=e.searchValue,_=e.showSearch,R=e.fieldNames,B=e.defaultSearchValue,F=e.preserveOriginalLabel,D=void 0!==F&&F,z=(0,u.A)(e,Km),N=R||{},L=N.label,H=void 0===L?"label":L,W=N.value,U=void 0===W?"value":W,V=N.options,G=void 0===V?"options":V,q=(0,v.useState)(null!=T?T:B),X=(0,s.A)(q,2),K=X[0],Y=X[1],Q=(0,v.useRef)();(0,v.useImperativeHandle)(t,function(){return Q.current}),(0,v.useEffect)(function(){var e;z.autoFocus&&(null==Q||null===(e=Q.current)||void 0===e||e.focus())},[z.autoFocus]),(0,v.useEffect)(function(){Y(T)},[T]);var J=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-filed-search-select",I),Z=b()(J,k,(0,l.A)({},"".concat(J,"-disabled"),E));return(0,Ue.jsx)(Ac.A,(0,d.A)((0,d.A)({ref:Q,className:Z,allowClear:!0,autoClearSearchValue:h,disabled:E,mode:r,showSearch:_,searchValue:K,optionFilterProp:S,optionLabelProp:$,onClear:function(){null==M||M(),P(void 0),_&&Y(void 0)}},z),{},{filterOption:0!=z.filterOption&&function(e,t){var n,r;return z.filterOption&&"function"==typeof z.filterOption?z.filterOption(e,(0,d.A)((0,d.A)({},t),{},{label:null==t?void 0:t.data_title})):!!(null!=t&&null!==(n=t.data_title)&&void 0!==n&&n.toString().toLowerCase().includes(e.toLowerCase())||null!=t&&null!==(r=t[S])&&void 0!==r&&r.toString().toLowerCase().includes(e.toLowerCase()))},onSearch:_?function(e){w&&P(e),null==o||o(e),Y(e)}:void 0,onChange:function(t,n){_&&h&&(P(void 0),null==o||o(""),Y(void 0));for(var i=arguments.length,s=new Array(i>2?i-2:0),l=2;l0?e.map(function(e,n){var r=null==t?void 0:t[n],o=null==r?void 0:r["data-item"];return(0,d.A)((0,d.A)((0,d.A)({},o||{}),e),{},{label:D&&o?o.label:e.label})}):[]}(t,n);null==a||a.apply(void 0,[c,n].concat(s)),y&&j()}else{var u=n&&n["data-item"];if(t&&u)null==a||a.apply(void 0,[(0,d.A)((0,d.A)((0,d.A)({},t),u),{},{label:D&&u?u.label:t.label}),n].concat(s));else{var p=t?(0,d.A)((0,d.A)({},t),{},{label:D&&u&&(null==u?void 0:u.label)||t.label}):t;null==a||a.apply(void 0,[p,n].concat(s))}}else null==a||a.apply(void 0,[t,n].concat(s))},onFocus:function(e){m&&P(K),null==i||i(e)},options:function e(t){return t.map(function(t,r){var o,i=t,a=i.className,s=i.optionType,l=(0,u.A)(i,Ym),c=t[H],h=t[U],p=null!==(o=t[G])&&void 0!==o?o:[];return"optGroup"===s||t.options?(0,d.A)((0,d.A)({label:c},l),{},{data_title:c,title:c,key:null!=h?h:"".concat(null==c?void 0:c.toString(),"-").concat(r,"-").concat(On()),children:e(p)}):(0,d.A)((0,d.A)({title:c},l),{},{data_title:c,value:null!=h?h:r,key:null!=h?h:"".concat(null==c?void 0:c.toString(),"-").concat(r,"-").concat(On()),"data-item":t,className:"".concat(J,"-option ").concat(a||"").trim(),label:(null==n?void 0:n(t))||c})})}(O||[])}))};const Jm=v.forwardRef(Qm);var Zm=["value","text"],eg=["mode","valueEnum","render","renderFormItem","request","fieldProps","plain","children","light","proFieldKey","params","label","bordered","id","lightLabel","labelTrigger"],tg=function(e){for(var t=e.label,n=e.words,r=(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls,o=r("pro-select-item-option-content-light"),i=r("pro-select-item-option-content"),a=at("Highlight",function(e){return(0,l.A)((0,l.A)({},".".concat(o),{color:e.colorPrimary}),".".concat(i),{flex:"auto",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"})}),s=a.wrapSSR,c=new RegExp(n.map(function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}).join("|"),"gi"),d=t,u=[];d.length;){var h=c.exec(d);if(!h){u.push(d);break}var p=h.index,m=h[0].length+p;u.push(d.slice(0,p),v.createElement("span",{className:o},d.slice(p,m))),d=d.slice(m)}return s(v.createElement.apply(v,["div",{title:t,className:i}].concat(u)))};function ng(e,t){var n,r;if(!t)return!0;if(null!=e&&null!==(n=e.label)&&void 0!==n&&n.toString().toLowerCase().includes(t.toLowerCase())||null!=e&&null!==(r=e.value)&&void 0!==r&&r.toString().toLowerCase().includes(t.toLowerCase()))return!0;if((e.children||e.options)&&[].concat((0,c.A)(e.children||[]),[e.options||[]]).find(function(e){return ng(e,t)}))return!0;return!1}var rg=function(e){var t=[],n=mm(e);return n.forEach(function(e,r){var o=n.get(r)||n.get("".concat(r));o&&("object"===(0,a.A)(o)&&null!=o&&o.text?t.push({text:null==o?void 0:o.text,value:r,label:null==o?void 0:o.text,disabled:o.disabled}):t.push({text:o,value:r}))}),t},og=function(e){var t,n,r,o,i=e.cacheForSwr,a=e.fieldProps,l=(0,v.useState)(e.defaultKeyWords),h=(0,s.A)(l,2),p=h[0],f=h[1],m=(0,v.useState)(function(){return e.proFieldKey?e.proFieldKey.toString():e.request?On():"no-fetch"}),g=(0,s.A)(m,1)[0],b=(0,v.useRef)(g),y=wn(function(e){return rg(mm(e)).map(function(e){var t=e.value,n=e.text,r=(0,u.A)(e,Zm);return(0,d.A)({label:n,value:t,key:t},r)})}),x=ga(function(){if(a){var e=(null==a?void 0:a.options)||(null==a?void 0:a.treeData);if(e){var t=a.fieldNames||{},n=t.children,r=t.label,o=t.value,i=function e(t,i){if(null!=t&&t.length)for(var a=t.length,s=0;s1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=(0,v.useState)(e),o=(0,s.A)(r,2),i=o[0],a=o[1],l=ip(e);return(0,v.useEffect)(function(){var e=setTimeout(function(){a(l.current)},t);return function(){return clearTimeout(e)}},n?[t].concat((0,c.A)(n)):void 0),i}([b.current,e.params,p],null!==(t=null!==(n=e.debounceTime)&&void 0!==n?n:null==e||null===(r=e.fieldProps)||void 0===r?void 0:r.debounceTime)&&void 0!==t?t:0,[e.params,p]),k=(0,Y.Ay)(function(){return e.request?$:null},function(t){var n=(0,s.A)(t,3),r=n[1],o=n[2];return e.request((0,d.A)((0,d.A)({},r),{},{keyWords:o}),e)},{revalidateIfStale:!i,revalidateOnReconnect:i,shouldRetryOnError:!1,revalidateOnFocus:!1}),E=k.data,O=k.mutate,P=k.isValidating,j=(0,v.useMemo)(function(){var t,n,r=null==S?void 0:S.map(function(e){if("string"==typeof e)return{label:e,value:e};if(e.children||e.options){var t=[].concat((0,c.A)(e.children||[]),(0,c.A)(e.options||[])).filter(function(e){return ng(e,p)});return(0,d.A)((0,d.A)({},e),{},{children:t,options:t})}return e});return!0===(null===(t=e.fieldProps)||void 0===t?void 0:t.filterOption)||void 0===(null===(n=e.fieldProps)||void 0===n?void 0:n.filterOption)?null==r?void 0:r.filter(function(e){return!!e&&(!p||ng(e,p))}):r},[S,p,null===(o=e.fieldProps)||void 0===o?void 0:o.filterOption]);return[P,(e.request?null==E?void 0:E.map(function(e){return function(e){if(null==a||!a.fieldNames)return e;var t=a.fieldNames,n=t.label,r=void 0===n?"label":n,o=t.value,i=void 0===o?"value":o;return(0,d.A)((0,d.A)({},e),{},{label:e[r],value:e[i]})}(e)}):void 0)||j,function(e){f(e)},function(){f(void 0),O([],!1)}]},ig=function(e,t){var n,r=e.mode,o=e.valueEnum,i=e.render,a=e.renderFormItem,l=(e.request,e.fieldProps),c=(e.plain,e.children,e.light),h=(e.proFieldKey,e.params,e.label),p=e.bordered,m=e.id,g=e.lightLabel,b=e.labelTrigger,y=(0,u.A)(e,eg),x=(0,v.useRef)(),w=Ze(),A=(0,v.useRef)("");(0,v.useEffect)(function(){A.current=null==l?void 0:l.searchValue},[null==l?void 0:l.searchValue]);var S=og(e),C=(0,s.A)(S,4),$=C[0],k=C[1],E=C[2],O=C[3],P=((null===f.Ay||void 0===f.Ay||null===(n=f.Ay.useConfig)||void 0===n?void 0:n.call(f.Ay))||{componentSize:"middle"}).componentSize;(0,v.useImperativeHandle)(t,function(){return(0,d.A)((0,d.A)({},x.current||{}),{},{fetchData:function(e){return E(e)}})},[E]);var j=(0,v.useMemo)(function(){if("read"===r){var e=(null==l?void 0:l.fieldNames)||{},t=e.value,n=void 0===t?"value":t,o=e.label,i=void 0===o?"label":o,a=e.options,s=void 0===a?"options":a;return function e(t){var r=new Map;if(null==t||!t.length)return r;for(var o=t.length,a=0;a{const{lineWidth:t,calc:n}=e;return(e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,$t.dF)(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),(0,$t.K8)(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${(0,y.zA)(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},wg(e)),{color:e.itemSelectedColor}),"&-focused":(0,$t.jk)(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:(0,y.zA)(n),padding:`0 ${(0,y.zA)(e.segmentedPaddingHorizontal)}`},Ag),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},wg(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,y.zA)(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:(0,y.zA)(r),padding:`0 ${(0,y.zA)(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:(0,y.zA)(o),padding:`0 ${(0,y.zA)(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),xg(`&-disabled ${t}-item`,e)),xg(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}})((0,Et.oX)(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:s}=e;return{trackPadding:a,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}});var Cg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=(0,cp.A)(),{prefixCls:r,className:o,rootClassName:i,block:a,options:s=[],size:l="middle",style:c,vertical:d,shape:u="default",name:h=n}=e,p=Cg(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:f,direction:m,className:g,style:y}=(0,bt.TP)("segmented"),x=f("segmented",r),[w,A,S]=Sg(x),C=(0,yt.A)(l),$=v.useMemo(()=>s.map(e=>{if(function(e){return"object"==typeof e&&!!(null==e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,r=Cg(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:v.createElement(v.Fragment,null,v.createElement("span",{className:`${x}-item-icon`},t),n&&v.createElement("span",null,n))})}return e}),[s,x]),k=b()(o,i,g,{[`${x}-block`]:a,[`${x}-sm`]:"small"===C,[`${x}-lg`]:"large"===C,[`${x}-vertical`]:d,[`${x}-shape-${u}`]:"round"===u},A,S),E=Object.assign(Object.assign({},y),c);return w(v.createElement(yg.A,Object.assign({},p,{name:h,className:k,style:E,options:$,ref:t,prefixCls:x,direction:m,vertical:d})))});const kg=$g,Eg=v.createContext({}),Og=v.createContext({});var Pg=n(36058);const jg=({prefixCls:e,value:t,onChange:n})=>v.createElement("div",{className:`${e}-clear`,onClick:()=>{if(n&&t&&!t.cleared){const e=t.toHsb();e.a=0;const r=(0,Pg.Z6)(e);r.cleared=!0,n(r)}}}),Ig="hex",Mg="rgb",Tg="hsb";var _g=n(7142);const Rg=({prefixCls:e,min:t=0,max:n=100,value:r,onChange:o,className:i,formatter:a})=>{const s=`${e}-steppers`,[l,c]=(0,v.useState)(0),d=Number.isNaN(r)?l:r;return v.createElement(_g.A,{className:b()(s,i),min:t,max:n,value:d,formatter:a,size:"small",onChange:e=>{c(e||0),null==o||o(e)}})},Bg=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-alpha-input`,[o,i]=(0,v.useState)(()=>(0,Pg.Z6)(t||"#000")),a=t||o;return v.createElement(Rg,{value:(0,Pg.Gp)(a),prefixCls:e,formatter:e=>`${e}%`,className:r,onChange:e=>{const t=a.toHsb();t.a=(e||0)/100;const r=(0,Pg.Z6)(t);i(r),null==n||n(r)}})},Fg=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Dg=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hex-input`,[o,i]=(0,v.useState)(()=>t?(0,gg.Ol)(t.toHexString()):void 0);(0,v.useEffect)(()=>{t&&i((0,gg.Ol)(t.toHexString()))},[t]);return v.createElement(Vd.A,{className:r,value:o,prefix:"#",onChange:e=>{const t=e.target.value;var r;i((0,gg.Ol)(t)),r=(0,gg.Ol)(t,!0),Fg.test(`#${r}`)&&(null==n||n((0,Pg.Z6)(t)))},size:"small"})},zg=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hsb-input`,[o,i]=(0,v.useState)(()=>(0,Pg.Z6)(t||"#000")),a=t||o,s=(e,t)=>{const r=a.toHsb();r[t]="h"===t?e:(e||0)/100;const o=(0,Pg.Z6)(r);i(o),null==n||n(o)};return v.createElement("div",{className:r},v.createElement(Rg,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:e,className:r,formatter:e=>(0,Pg.W)(e||0).toString(),onChange:e=>s(Number(e),"h")}),v.createElement(Rg,{max:100,min:0,value:100*Number(a.toHsb().s),prefixCls:e,className:r,formatter:e=>`${(0,Pg.W)(e||0)}%`,onChange:e=>s(Number(e),"s")}),v.createElement(Rg,{max:100,min:0,value:100*Number(a.toHsb().b),prefixCls:e,className:r,formatter:e=>`${(0,Pg.W)(e||0)}%`,onChange:e=>s(Number(e),"b")}))},Ng=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-rgb-input`,[o,i]=(0,v.useState)(()=>(0,Pg.Z6)(t||"#000")),a=t||o,s=(e,t)=>{const r=a.toRgb();r[t]=e||0;const o=(0,Pg.Z6)(r);i(o),null==n||n(o)};return v.createElement("div",{className:r},v.createElement(Rg,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:e,className:r,onChange:e=>s(Number(e),"r")}),v.createElement(Rg,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:e,className:r,onChange:e=>s(Number(e),"g")}),v.createElement(Rg,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:e,className:r,onChange:e=>s(Number(e),"b")}))},Lg=[Ig,Tg,Mg].map(e=>({value:e,label:e.toUpperCase()})),Hg=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:i,onChange:a,disabledFormat:s}=e,[l,c]=(0,Ut.A)(Ig,{value:n,onChange:i}),d=`${t}-input`,u=(0,v.useMemo)(()=>{const e={value:r,prefixCls:t,onChange:a};switch(l){case Tg:return v.createElement(zg,Object.assign({},e));case Mg:return v.createElement(Ng,Object.assign({},e));default:return v.createElement(Dg,Object.assign({},e))}},[l,t,r,a]);return v.createElement("div",{className:`${d}-container`},!s&&v.createElement(Ac.A,{value:l,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{c(e)},className:`${t}-format-select`,size:"small",options:Lg}),v.createElement("div",{className:d},u),!o&&v.createElement(Bg,{prefixCls:t,value:r,onChange:a}))};var Wg=n(55168);const Ug=(0,v.createContext)({});const Vg=v.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:o}=e,i=(0,v.useRef)(null),a=n&&!r,s=(0,v.useRef)(null);function l(){dc.A.cancel(s.current),s.current=null}return v.useEffect(()=>(a?s.current=(0,dc.A)(()=>{var e;null===(e=i.current)||void 0===e||e.forceAlign(),s.current=null}):l(),l),[a,e.title,o]),v.createElement(m.A,Object.assign({ref:(0,pl.K4)(i,t)},e,{open:a}))}),Gg=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:d,handleSizeHover:u,handleActiveColor:h,handleActiveOutlineColor:p,handleLineWidth:f,handleLineWidthHover:m,motionDurationMid:g}=e;return{[t]:Object.assign(Object.assign({},(0,$t.dF)(e)),{position:"relative",height:r,margin:`${(0,y.zA)(a)} ${(0,y.zA)(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${(0,y.zA)(i)} ${(0,y.zA)(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${(0,y.zA)(f)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(f).mul(-1).equal(),insetBlockStart:c(f).mul(-1).equal(),width:c(d).add(c(f).mul(2)).equal(),height:c(d).add(c(f).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${(0,y.zA)(f)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${g},\n inset-block-start ${g},\n width ${g},\n height ${g},\n box-shadow ${g},\n outline ${g}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(u).sub(d).div(2).add(m).mul(-1).equal(),insetBlockStart:c(u).sub(d).div(2).add(m).mul(-1).equal(),width:c(u).add(c(m).mul(2)).equal(),height:c(u).add(c(m).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${(0,y.zA)(m)} ${h}`,outline:`6px solid ${p}`,width:u,height:u,insetInlineStart:e.calc(d).sub(u).div(2).equal(),insetBlockStart:e.calc(d).sub(u).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${(0,y.zA)(f)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${(0,y.zA)(f)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},qg=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",d=t?"height":"width",u=t?"insetBlockStart":"insetInlineStart",h=t?"top":"insetInlineStart",p=s(r).mul(3).sub(o).div(2).equal(),f=s(o).sub(r).div(2).equal(),m=t?{borderWidth:`${(0,y.zA)(f)} 0`,transform:`translateY(${(0,y.zA)(s(f).mul(-1).equal())})`}:{borderWidth:`0 ${(0,y.zA)(f)}`,transform:`translateX(${(0,y.zA)(e.calc(f).mul(-1).equal())})`};return{[l]:r,[d]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},m),[`${n}-handle`]:{[u]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[h]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[h]:r,[c]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[u]:s(r).sub(i).div(2).equal()}}},Xg=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},qg(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Kg=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},qg(e,!1)),{height:"100%"})}},Yg=(0,kt.OF)("Slider",e=>{const t=(0,Et.oX)(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[Gg(t),Xg(t),Kg(t)]},e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,r=e.lineWidth+1,o=e.lineWidth+1.5,i=e.colorPrimary,a=new yl.Y(i).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:r,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:a,handleColorDisabled:new yl.Y(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});function Qg(){const[e,t]=v.useState(!1),n=v.useRef(null),r=()=>{dc.A.cancel(n.current)};return v.useEffect(()=>r,[]),[e,e=>{r(),e?t(e):n.current=(0,dc.A)(()=>{t(e)})}]}var Jg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,range:r,className:o,rootClassName:i,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:d,getTooltipPopupContainer:u,tooltipPlacement:h,tooltip:p={},onChangeComplete:f,classNames:m,styles:g}=e,y=Jg(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:x}=e,{getPrefixCls:w,direction:A,className:S,style:C,classNames:$,styles:k,getPopupContainer:E}=(0,bt.TP)("slider"),O=v.useContext(ud.A),P=null!=s?s:O,{handleRender:j,direction:I}=v.useContext(Ug),M="rtl"===(I||A),[T,_]=Qg(),[R,B]=Qg(),F=Object.assign({},p),{open:D,placement:z,getPopupContainer:N,prefixCls:L,formatter:H}=F,W=null!=D?D:d,U=(T||R)&&!1!==W,V=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"==typeof e?e.toString():""}(H,c),[G,q]=Qg(),X=(e,t)=>e||(t?M?"left":"right":"top"),K=w("slider",n),[Y,Q,J]=Yg(K),Z=b()(o,S,$.root,null==m?void 0:m.root,i,{[`${K}-rtl`]:M,[`${K}-lock`]:G},Q,J);M&&!y.vertical&&(y.reverse=!y.reverse),v.useEffect(()=>{const e=()=>{(0,dc.A)(()=>{B(!1)},1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}},[]);const ee=r&&!W,te=j||((e,t)=>{const{index:n}=t,r=e.props;function o(e,t,n){var o,i,a,s;n&&(null===(i=(o=y)[e])||void 0===i||i.call(o,t)),null===(s=(a=r)[e])||void 0===s||s.call(a,t)}const i=Object.assign(Object.assign({},r),{onMouseEnter:e=>{_(!0),o("onMouseEnter",e)},onMouseLeave:e=>{_(!1),o("onMouseLeave",e)},onMouseDown:e=>{B(!0),q(!0),o("onMouseDown",e)},onFocus:e=>{var t;B(!0),null===(t=y.onFocus)||void 0===t||t.call(y,e),o("onFocus",e,!0)},onBlur:e=>{var t;B(!1),null===(t=y.onBlur)||void 0===t||t.call(y,e),o("onBlur",e,!0)}}),a=v.cloneElement(e,i),s=(!!W||U)&&null!==V;return ee?a:v.createElement(Vg,Object.assign({},F,{prefixCls:w("tooltip",null!=L?L:l),title:V?V(t.value):"",value:t.value,open:s,placement:X(null!=z?z:h,x),key:n,classNames:{root:`${K}-tooltip`},getPopupContainer:N||u||E}),a)}),ne=ee?(e,t)=>{const n=v.cloneElement(e,{style:Object.assign(Object.assign({},e.props.style),{visibility:"hidden"})});return v.createElement(Vg,Object.assign({},F,{prefixCls:w("tooltip",null!=L?L:l),title:V?V(t.value):"",open:null!==V&&U,placement:X(null!=z?z:h,x),key:"tooltip",classNames:{root:`${K}-tooltip`},getPopupContainer:N||u||E,draggingDelete:t.draggingDelete}),n)}:void 0,re=Object.assign(Object.assign(Object.assign(Object.assign({},k.root),C),null==g?void 0:g.root),a),oe=Object.assign(Object.assign({},k.tracks),null==g?void 0:g.tracks),ie=b()($.tracks,null==m?void 0:m.tracks);return Y(v.createElement(Wg.A,Object.assign({},y,{classNames:Object.assign({handle:b()($.handle,null==m?void 0:m.handle),rail:b()($.rail,null==m?void 0:m.rail),track:b()($.track,null==m?void 0:m.track)},ie?{tracks:ie}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},k.handle),null==g?void 0:g.handle),rail:Object.assign(Object.assign({},k.rail),null==g?void 0:g.rail),track:Object.assign(Object.assign({},k.track),null==g?void 0:g.track)},Object.keys(oe).length?{tracks:oe}:{}),step:y.step,range:r,className:Z,style:re,disabled:P,ref:t,prefixCls:K,handleRender:te,activeHandleRender:ne,onChangeComplete:e=>{null==f||f(e),q(!1)}})))});const eb=Zg;var tb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,colors:n,type:r,color:o,range:i=!1,className:a,activeIndex:s,onActive:l,onDragStart:c,onDragChange:d,onKeyDelete:u}=e,h=tb(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),p=Object.assign(Object.assign({},h),{track:!1}),f=v.useMemo(()=>`linear-gradient(90deg, ${n.map(e=>`${e.color} ${e.percent}%`).join(", ")})`,[n]),m=v.useMemo(()=>o&&r?"alpha"===r?o.toRgbString():`hsl(${o.toHsb().h}, 100%, 50%)`:null,[o,r]),g=(0,tl.A)(c),y=(0,tl.A)(d),x=v.useMemo(()=>({onDragStart:g,onDragChange:y}),[]),w=(0,tl.A)((e,o)=>{const{onFocus:i,style:a,className:c,onKeyDown:d}=e.props,h=Object.assign({},a);return"gradient"===r&&(h.background=(0,Pg.PU)(n,o.value)),v.cloneElement(e,{onFocus:e=>{null==l||l(o.index),null==i||i(e)},style:h,className:b()(c,{[`${t}-slider-handle-active`]:s===o.index}),onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||!u||u(o.index),null==d||d(e)}})}),A=v.useMemo(()=>({direction:"ltr",handleRender:w}),[]);return v.createElement(Ug.Provider,{value:A},v.createElement(Wg.Q.Provider,{value:x},v.createElement(eb,Object.assign({},p,{className:b()(a,`${t}-slider`),tooltip:{open:!1},range:{editable:i,minCount:2},styles:{rail:{background:f},handle:m?{background:m}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},rb=e=>{const{value:t,onChange:n,onChangeComplete:r}=e;return v.createElement(nb,Object.assign({},e,{value:[t],onChange:e=>n(e[0]),onChangeComplete:e=>r(e[0])}))};function ob(e){return(0,c.A)(e).sort((e,t)=>e.percent-t.percent)}const ib=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:o,onActive:i,activeIndex:a,onGradientDragging:s,colors:l}=e,d="gradient"===n,u=v.useMemo(()=>l.map(e=>({percent:e.percent,color:e.color.toRgbString()})),[l]),h=v.useMemo(()=>u.map(e=>e.percent),[u]),p=v.useRef(u);return d?v.createElement(nb,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:h,range:!0,onChangeComplete:e=>{o(new gg.kf(u)),a>=e.length&&i(e.length-1),s(!1)},disabled:!1,type:"gradient",activeIndex:a,onActive:i,onDragStart:({rawValues:e,draggingIndex:t,draggingValue:n})=>{if(e.length>u.length){const e=(0,Pg.PU)(u,n),r=(0,c.A)(u);r.splice(t,0,{percent:n,color:e}),p.current=r}else p.current=u;s(!0),r(new gg.kf(ob(p.current)),!0)},onDragChange:({deleteIndex:e,draggingIndex:t,draggingValue:n})=>{let o=(0,c.A)(p.current);-1!==e?o.splice(e,1):(o[t]=Object.assign(Object.assign({},o[t]),{percent:n}),o=ob(o)),r(new gg.kf(o),!0)},onKeyDelete:e=>{const t=(0,c.A)(u);t.splice(e,1);const n=new gg.kf(t);r(n),o(n)}}):null},ab=v.memo(ib);var sb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const e=(0,v.useContext)(Eg),{mode:t,onModeChange:n,modeOptions:r,prefixCls:o,allowClear:i,value:a,disabledAlpha:s,onChange:l,onClear:d,onChangeComplete:u,activeIndex:h,gradientDragging:p}=e,f=sb(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),m=v.useMemo(()=>a.cleared?[{percent:0,color:new gg.kf("")},{percent:100,color:new gg.kf("")}]:a.getColors(),[a]),g=!a.isGradient(),[b,y]=v.useState(a);(0,vg.A)(()=>{var e;g||y(null===(e=m[h])||void 0===e?void 0:e.color)},[g,m,p,h]);const x=v.useMemo(()=>{var e;return g?a:p?b:null===(e=m[h])||void 0===e?void 0:e.color},[m,a,h,g,b,p]),[w,A]=v.useState(x),[S,C]=(0,Yc.C)(),$=(null==w?void 0:w.equals(x))?x:w;(0,vg.A)(()=>{A(x)},[S,null==x?void 0:x.toHexString()]);const k=(e,n)=>{let r=(0,Pg.Z6)(e);if(a.cleared){const e=r.toRgb();if(e.r||e.g||e.b||!n)r=(0,Pg.E)(r);else{const{type:e,value:t=0}=n;r=new gg.kf({h:"hue"===e?t:0,s:1,b:1,a:"alpha"===e?t/100:1})}}if("single"===t)return r;const o=(0,c.A)(m);return o[h]=Object.assign(Object.assign({},o[h]),{color:r}),new gg.kf(o)};let E=null;const O=r.length>1;return(i||O)&&(E=v.createElement("div",{className:`${o}-operation`},O&&v.createElement(kg,{size:"small",options:r,value:t,onChange:n}),v.createElement(jg,Object.assign({prefixCls:o,value:a,onChange:e=>{l(e),null==d||d()}},f)))),v.createElement(v.Fragment,null,E,v.createElement(ab,Object.assign({},e,{colors:m})),v.createElement(bg.Ay,{prefixCls:o,value:null==$?void 0:$.toHsb(),disabledAlpha:s,onChange:(e,t)=>{((e,t,n)=>{const r=k(e,n);A(r.isGradient()?r.getColors()[h].color:r),l(r,t)})(e,!0,t)},onChangeComplete:(e,t)=>{((e,t)=>{u(k(e,t)),C()})(e,t)},components:lb}),v.createElement(Hg,Object.assign({value:x,onChange:e=>{l(k(e))},prefixCls:o,disabledAlpha:s},f)))};var db=n(49185);const ub=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=(0,v.useContext)(Og);return Array.isArray(n)?v.createElement(db.A,{value:t,presets:n,prefixCls:e,onChange:r}):null};const hb=e=>{const{prefixCls:t,presets:n,panelRender:r,value:o,onChange:i,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:d,modeOptions:u,onChangeComplete:h,activeIndex:p,onActive:f,format:m,onFormatChange:g,gradientDragging:b,onGradientDragging:y,disabledFormat:x}=e,w=`${t}-inner`,A=v.useMemo(()=>({prefixCls:t,value:o,onChange:i,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:d,modeOptions:u,onChangeComplete:h,activeIndex:p,onActive:f,format:m,onFormatChange:g,gradientDragging:b,onGradientDragging:y,disabledFormat:x}),[t,o,i,a,s,l,c,d,u,h,p,f,m,g,b,y,x]),S=v.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:i}),[t,o,n,i]),C=v.createElement("div",{className:`${w}-content`},v.createElement(cb,null),Array.isArray(n)&&v.createElement(jf.A,null),v.createElement(ub,null));return v.createElement(Eg.Provider,{value:A},v.createElement(Og.Provider,{value:S},v.createElement("div",{className:w},"function"==typeof r?r(C,{components:{Picker:cb,Presets:ub}}):C)))};var pb=n(72065),fb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{color:n,prefixCls:r,open:o,disabled:i,format:a,className:s,showText:l,activeIndex:c}=e,d=fb(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),u=`${r}-trigger`,h=`${u}-text`,p=`${h}-cell`,[f]=(0,bs.A)("ColorPicker"),m=v.useMemo(()=>{if(!l)return"";if("function"==typeof l)return l(n);if(n.cleared)return f.transparent;if(n.isGradient())return n.getColors().map((e,t)=>{const n=-1!==c&&c!==t;return v.createElement("span",{key:t,className:b()(p,n&&`${p}-inactive`)},e.color.toRgbString()," ",e.percent,"%")});const e=n.toHexString().toUpperCase(),t=(0,Pg.Gp)(n);switch(a){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return t<100?`${e.slice(0,7)},${t}%`:e}},[n,a,l,c,f.transparent,p]),g=(0,v.useMemo)(()=>n.cleared?v.createElement(jg,{prefixCls:r}):v.createElement(bg.ZC,{prefixCls:r,color:n.toCssString()}),[n,r]);return v.createElement("div",Object.assign({ref:t,className:b()(u,s,{[`${u}-active`]:o,[`${u}-disabled`]:i})},(0,pb.A)(d)),g,l&&v.createElement("div",{className:h},m))}),gb=mb;const bb=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),vb=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o,flex:"none"},bb("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${(0,y.zA)(i)} ${a}`,borderRadius:"inherit"}})}},yb=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:d,paddingXS:u,colorTextPlaceholder:h,colorPickerInputNumberHandleWidth:p,lineWidth:f}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${(0,y.zA)(i)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(d).add(a).equal(),fontSize:r,lineHeight:(0,y.zA)(l)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,y.zA)(u)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:(0,y.zA)(e.calc(l).sub(e.calc(f).mul(2)).equal())},[`${n}-input-prefix`]:{color:h}}}}}},xb=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${(0,y.zA)(l)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`}}},wb=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:d,colorFill:u,colorWhite:h,marginXXS:p,paddingXS:f,fontHeightSM:m}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:m,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${(0,y.zA)(f)} 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(c).mul(4)).equal(),height:e.calc(i).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:d,border:`${(0,y.zA)(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:u},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${(0,y.zA)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:h,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},Ab=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:o,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,d=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),u=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),h={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[bb((0,y.zA)(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:d,height:d,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:u,height:u,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${(0,y.zA)(i)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":h}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":h}}}},Sb=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${(0,y.zA)(e.controlOutlineWidth)} ${n}`,outline:0}),Cb=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},$b=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,colorBorder:s,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${(0,y.zA)(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},kb=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},Sb(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},Sb(e,r,s))}}},Eb=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:d}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:d}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:(0,y.zA)(i)}}}},Ob=(0,kt.OF)("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e;return(e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:d,marginXS:u,marginSM:h,controlHeight:p,controlHeightSM:f,colorBgTextActive:m,colorPickerPresetColorSize:g,colorPickerPreviewSize:b,lineWidth:v,colorBorder:x,paddingXXS:w,fontSize:A,colorPrimaryHover:S,controlOutline:C}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${(0,y.zA)(h)} 0 ${(0,y.zA)(u)}`}},[`${n}-panel`]:Object.assign({},xb(e))},Ab(e)),vb(e,b)),yb(e)),wb(e)),$b(e,g,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:u}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:d,border:`${(0,y.zA)(v)} solid ${x}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(w).sub(v).equal(),[`${n}-trigger-text`]:{marginInlineStart:u,marginInlineEnd:e.calc(u).sub(e.calc(w).sub(v)).equal(),fontSize:A,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:S},[`&${n}-trigger-active`]:Object.assign({},Sb(e,o,C)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:m},[`${n}-trigger-text`]:{color:s}}},$b(e,f)),vb(e,f)),kb(e)),Eb(e))},Cb(e))},(0,Im.G)(e,{focusElCls:`${n}-trigger-active`})]})((0,Et.oX)(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(n).equal()}))});var Pb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{mode:t,value:n,defaultValue:r,format:o,defaultFormat:i,allowClear:a=!1,presets:s,children:l,trigger:c="click",open:d,disabled:u,placement:h="bottomLeft",arrow:p=!0,panelRender:f,showText:m,style:g,className:y,size:x,rootClassName:w,prefixCls:A,styles:S,disabledAlpha:C=!1,onFormatChange:$,onChange:k,onClear:E,onOpenChange:O,onChangeComplete:P,getPopupContainer:j,autoAdjustOverflow:I=!0,destroyTooltipOnHide:M,destroyOnHidden:T,disabledFormat:_}=e,R=Pb(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","destroyOnHidden","disabledFormat"]),{getPrefixCls:B,direction:F,colorPicker:D}=(0,v.useContext)(bt.QO),z=(0,v.useContext)(ud.A),N=null!=u?u:z,[L,H]=(0,Ut.A)(!1,{value:d,postState:e=>!N&&e,onChange:O}),[W,U]=(0,Ut.A)(o,{value:o,defaultValue:i,onChange:$}),V=B("color-picker",A),[G,q,X,K,Y]=function(e,t,n){const[r]=(0,bs.A)("ColorPicker"),[o,i]=(0,Ut.A)(e,{value:t}),[a,s]=v.useState("single"),[l,c]=v.useMemo(()=>{const e=(Array.isArray(n)?n:[n]).filter(e=>e);e.length||e.push("single");const t=new Set(e),o=[],i=(e,n)=>{t.has(e)&&o.push({label:n,value:e})};return i("single",r.singleColor),i("gradient",r.gradientColor),[o,t]},[n,r.singleColor,r.gradientColor]),[d,u]=v.useState(null),h=(0,tl.A)(e=>{u(e),i(e)}),p=v.useMemo(()=>{const e=(0,Pg.Z6)(o||"");return e.equals(d)?d:e},[o,d]),f=v.useMemo(()=>{var e;return c.has(a)?a:null===(e=l[0])||void 0===e?void 0:e.value},[c,a,l]);return v.useEffect(()=>{s(p.isGradient()?"gradient":"single")},[p]),[p,h,f,s,l]}(r,n,t),Q=(0,v.useMemo)(()=>(0,Pg.Gp)(G)<100,[G]),[J,Z]=v.useState(null),ee=e=>{if(P){let t=(0,Pg.Z6)(e);C&&Q&&(t=(0,Pg.E)(e)),P(t)}},te=(e,t)=>{let n=(0,Pg.Z6)(e);C&&Q&&(n=(0,Pg.E)(n)),q(n),Z(null),k&&k(n,n.toCssString()),t||ee(n)},[ne,re]=v.useState(0),[oe,ie]=v.useState(!1),{status:ae}=v.useContext(wm.$W),{compactSize:se,compactItemClassnames:le}=(0,Xl.RQ)(V,F),ce=(0,yt.A)(e=>{var t;return null!==(t=null!=x?x:se)&&void 0!==t?t:e}),de=(0,vt.A)(V),[ue,he,pe]=Ob(V,de),fe={[`${V}-rtl`]:F},me=b()(w,pe,de,fe),ge=b()((0,xm.L)(V,ae),{[`${V}-sm`]:"small"===ce,[`${V}-lg`]:"large"===ce},le,null==D?void 0:D.className,me,y,he),be=b()(V,me);const ve={open:L,trigger:c,placement:h,arrow:p,rootClassName:w,getPopupContainer:j,autoAdjustOverflow:I,destroyOnHidden:null!=T?T:!!M},ye=Object.assign(Object.assign({},null==D?void 0:D.style),g);return ue(v.createElement(Ba,Object.assign({style:null==S?void 0:S.popup,styles:{body:null==S?void 0:S.popupOverlayInner},onOpenChange:e=>{e&&N||H(e)},content:v.createElement(fl.A,{form:!0},v.createElement(hb,{mode:X,onModeChange:e=>{if(K(e),"single"===e&&G.isGradient())re(0),te(new gg.kf(G.getColors()[0].color)),Z(G);else if("gradient"===e&&!G.isGradient()){const e=Q?(0,Pg.E)(G):G;te(new gg.kf(J||[{percent:0,color:e},{percent:100,color:e}]))}},modeOptions:Y,prefixCls:V,value:G,allowClear:a,disabled:N,disabledAlpha:C,presets:s,panelRender:f,format:W,onFormatChange:U,onChange:te,onChangeComplete:ee,onClear:E,activeIndex:ne,onActive:re,gradientDragging:oe,onGradientDragging:ie,disabledFormat:_})),classNames:{root:be}},ve),l||v.createElement(gb,Object.assign({activeIndex:L?ne:-1,open:L,className:ge,style:ye,prefixCls:V,disabled:N,showText:m,format:W},R,{color:G}))))};const Ib=(0,il.A)(jb,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);jb._InternalPanelDoNotUseOrYouWillBeFired=Ib;const Mb=jb;var Tb=n(58527),_b=n(55364),Rb=n.n(_b),Bb={},Fb=function(e,t,n,r){var o="".concat(e,"-").concat(t,"-").concat(n).concat(r?"-server":"");if(Bb[o])return Bb[o];var i=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null}(e,t,n,r);return Bb[o]=i,i};function Db(e){return Db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Db(e)}function zb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nb(e){for(var t=1;tl?1:Math.round(100*h/l)/100,t.a!==i)return{h:t.h,s:t.s,l:t.l,a:i,source:"rgb"}}else if(r!==(a=u<0?0:u>s?1:Math.round(100*u/s)/100))return{h:t.h,s:t.s,l:t.l,a,source:"rgb"};return null}(t,e.props.hsl,e.props.direction,e.props.a,e.container);n&&"function"==typeof e.props.onChange&&e.props.onChange(n,t)},e.handleMouseDown=function(t){e.handleChange(t),window.addEventListener("mousemove",e.handleChange),window.addEventListener("mouseup",e.handleMouseUp)},e.handleMouseUp=function(){e.unbindEventListeners()},e.unbindEventListeners=function(){window.removeEventListener("mousemove",e.handleChange),window.removeEventListener("mouseup",e.handleMouseUp)},e}return t=i,(n=[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,Tb.Ay)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,", 0) 0%,\n rgba(").concat(t.r,",").concat(t.g,",").concat(t.b,", 1) 100%)"),boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:"".concat(100*t.a,"%")},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,", 0) 0%,\n rgba(").concat(t.r,",").concat(t.g,",").concat(t.b,", 1) 100%)")},pointer:{left:0,top:"".concat(100*t.a,"%")}},overwrite:Gb({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return v.createElement("div",{style:n.alpha},v.createElement("div",{style:n.checkboard},v.createElement(Wb,{renderers:this.props.renderers})),v.createElement("div",{style:n.gradient}),v.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},v.createElement("div",{style:n.pointer},this.props.pointer?v.createElement(this.props.pointer,this.props):v.createElement("div",{style:n.slider}))))}}])&&Xb(t.prototype,n),r&&Xb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(v.PureComponent||v.Component);const ev=Zb;function tv(e){return tv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tv(e)}function nv(e,t){for(var n=0;ni?0:360*(-100*c/i+100)/100,n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var u;if(u=l<0?0:l>o?359:100*l/o*360/100,n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(t,e.props.direction,e.props.hsl,e.container);n&&"function"==typeof e.props.onChange&&e.props.onChange(n,t)},e.handleMouseDown=function(t){e.handleChange(t),window.addEventListener("mousemove",e.handleChange),window.addEventListener("mouseup",e.handleMouseUp)},e.handleMouseUp=function(){e.unbindEventListeners()},e}return t=i,(n=[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,Tb.Ay)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:"".concat(100*this.props.hsl.h/360,"%")},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:"".concat(-100*this.props.hsl.h/360+100,"%")}}},{vertical:"vertical"===n});return v.createElement("div",{style:r.hue},v.createElement("div",{className:"hue-".concat(n),style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},v.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),v.createElement("div",{style:r.pointer},this.props.pointer?v.createElement(this.props.pointer,this.props):v.createElement("div",{style:r.slider}))))}}])&&nv(t.prototype,n),r&&nv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(v.PureComponent||v.Component);const lv=sv;var cv=n(7350),dv=n.n(cv);function uv(e){return uv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uv(e)}function hv(e,t){for(var n=0;no&&(l=o),c<0?c=0:c>i&&(c=i);var d=l/o,u=1-c/i;return{h:t.h,s:d,v:u,a:t.a,source:"hsv"}}(e,t.props.hsl,t.container),e)},t.handleMouseDown=function(e){t.handleChange(e);var n=t.getContainerRenderWindow();n.addEventListener("mousemove",t.handleChange),n.addEventListener("mouseup",t.handleMouseUp)},t.handleMouseUp=function(){t.unbindEventListeners()},t.throttle=dv()(function(e,t,n){e(t,n)},50),t}return t=i,n=[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,o=t.black,i=t.pointer,a=t.circle,s=(0,Tb.Ay)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-100*this.props.hsv.v+100,"%"),left:"".concat(100*this.props.hsv.s,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:o,pointer:i,circle:a}},{custom:!!this.props.style});return v.createElement("div",{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},v.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),v.createElement("div",{style:s.white,className:"saturation-white"},v.createElement("div",{style:s.black,className:"saturation-black"}),v.createElement("div",{style:s.pointer},this.props.pointer?v.createElement(this.props.pointer,this.props):v.createElement("div",{style:s.circle}))))}}],n&&hv(t.prototype,n),r&&hv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(v.PureComponent||v.Component);const vv=bv;var yv=n(38221),xv=n.n(yv),wv=n(76135),Av=n.n(wv),Sv=n(84140),Cv=function(e){var t=0,n=0;return Av()(["r","g","b","a","h","s","l","v"],function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}}),t===n&&e},$v=function(e,t){var n=e.hex?(0,Sv.A)(e.hex):(0,Sv.A)(e),r=n.toHsl(),o=n.toHsv(),i=n.toRgb(),a=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===a&&0===i.a?"transparent":"#".concat(a),rgb:i,hsv:o,oldHue:e.h||t||r.h,source:e.source}};function kv(e){return kv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kv(e)}function Ev(){return Ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t-1)){var o=t.getArrowOffset(),i=38===e.keyCode?r+o:r-o;t.setUpdatedValue(i,e)}},t.handleDrag=function(e){if(t.props.dragLabel){var n=Math.round(t.props.value+e.movementX);n>=0&&n<=t.props.dragMax&&t.props.onChange&&t.props.onChange(t.getValueObjectWithLabel(n),e)}},t.handleMouseDown=function(e){t.props.dragLabel&&(e.preventDefault(),t.handleDrag(e),window.addEventListener("mousemove",t.handleDrag),window.addEventListener("mouseup",t.handleMouseUp))},t.handleMouseUp=function(){t.unbindEventListeners()},t.unbindEventListeners=function(){window.removeEventListener("mousemove",t.handleDrag),window.removeEventListener("mouseup",t.handleMouseUp)},t.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},t.inputId="rc-editable-input-".concat(Uv++),t}return t=i,n=[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return(t=zv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,Tb.Ay)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return v.createElement("div",{style:t.wrap},v.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?v.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}],n&&Dv(t.prototype,n),r&&Dv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(v.PureComponent||v.Component);const Gv=Vv;function qv(e){return qv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qv(e)}function Xv(){return Xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qv(e,t)}(s,n);var r,o,i,a=Jv(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r100&&(e.a=100),e.a/=100,null==t||t({h:null==r?void 0:r.h,s:null==r?void 0:r.s,l:null==r?void 0:r.l,a:e.a,source:"rgb"},o))};return v.createElement("div",{style:a.fields,className:"flexbox-fix"},v.createElement("div",{style:a.double},v.createElement(Gv,{style:{input:a.input,label:a.label},label:"hex",value:null==o?void 0:o.replace("#",""),onChange:s})),v.createElement("div",{style:a.single},v.createElement(Gv,{style:{input:a.input,label:a.label},label:"r",value:null==n?void 0:n.r,onChange:s,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:a.single},v.createElement(Gv,{style:{input:a.input,label:a.label},label:"g",value:null==n?void 0:n.g,onChange:s,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:a.single},v.createElement(Gv,{style:{input:a.input,label:a.label},label:"b",value:null==n?void 0:n.b,onChange:s,dragLabel:"true",dragMax:"255"})),v.createElement("div",{style:a.alpha},v.createElement(Gv,{style:{input:a.input,label:a.label},label:"a",value:Math.round(100*((null==n?void 0:n.a)||0)),onChange:s,dragLabel:"true",dragMax:"100"})))};function sy(e){return sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sy(e)}function ly(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cy(e){for(var t=1;t-1}var Sy=function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.renderFormItem,a=e.fieldProps,s=e.old,c=(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls,u=v.useMemo(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return void 0!==e&&!1!==e||!Ay()?xy:Mb}(s)},[s]),h=c("pro-field-color-picker"),p=(0,v.useMemo)(function(){return s?"":b()((0,l.A)({},h,Ay()))},[h,s]);if("read"===r){var m=(0,Ue.jsx)(u,{value:n,mode:"read",ref:t,className:p,open:!1});return o?o(n,(0,d.A)({mode:r},a),m):m}if("edit"===r||"update"===r){var g=(0,d.A)({display:"table-cell"},a.style),y=(0,Ue.jsx)(u,(0,d.A)((0,d.A)({ref:t,presets:[wy]},a),{},{style:g,className:p}));return i?i(n,(0,d.A)((0,d.A)({mode:r},a),{},{style:g}),y):y}return null};const Cy=v.forwardRef(Sy);var $y=n(90445),ky=n.n($y);Fe().extend(ky());var Ey=function(e){return!(null==e||!e._isAMomentObject)},Oy=function e(t,n){return xi(t)||Fe().isDayjs(t)||Ey(t)?Ey(t)?Fe()(t):t:Array.isArray(t)?t.map(function(t){return e(t,n)}):"number"==typeof t?Fe()(t):Fe()(t,n)},Py=n(93298),jy=n(8134),Iy=n.n(jy);Fe().extend(Iy());var My=function(e,t){var n=e.text,r=e.mode,o=e.format,i=e.label,a=e.light,l=e.render,c=e.renderFormItem,u=e.plain,h=e.showTime,p=e.fieldProps,f=e.picker,m=e.bordered,g=e.lightLabel,b=Ze(),y=(0,v.useState)(!1),x=(0,s.A)(y,2),w=x[0],A=x[1];if("read"===r){var S=function(e,t){return e?"function"==typeof t?t(Fe()(e)):Fe()(e).format((Array.isArray(t)?t[0]:t)||"YYYY-MM-DD"):"-"}(n,p.format||o);return l?l(n,(0,d.A)({mode:r},p),(0,Ue.jsx)(Ue.Fragment,{children:S})):(0,Ue.jsx)(Ue.Fragment,{children:S})}if("edit"===r||"update"===r){var C,$=p.disabled,k=p.value,E=p.placeholder,O=void 0===E?b.getMessage("tableForm.selectPlaceholder","请选择"):E,P=Oy(k);return C=a?(0,Ue.jsx)(Za,{label:i,onClick:function(){var e;null==p||null===(e=p.onOpenChange)||void 0===e||e.call(p,!0),A(!0)},style:P?{paddingInlineEnd:0}:void 0,disabled:$,value:P||w?(0,Ue.jsx)(Py.A,(0,d.A)((0,d.A)((0,d.A)({picker:f,showTime:h,format:o,ref:t},p),{},{value:P,onOpenChange:function(e){var t;A(e),null==p||null===(t=p.onOpenChange)||void 0===t||t.call(p,e)}},vm(!1)),{},{open:w})):void 0,allowClear:!1,downIcon:!P&&!w&&void 0,bordered:m,ref:g}):(0,Ue.jsx)(Py.A,(0,d.A)((0,d.A)((0,d.A)({picker:f,showTime:h,format:o,placeholder:O},vm(void 0===u||!u)),{},{ref:t},p),{},{value:P})),c?c(n,(0,d.A)({mode:r},p),C):C}return null};const Ty=v.forwardRef(My);var _y=function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.placeholder,a=e.renderFormItem,s=e.fieldProps,l=Ze(),c=i||l.getMessage("tableForm.inputPlaceholder","请输入"),u=(0,v.useCallback)(function(e){var t=null!=e?e:void 0;return s.stringMode||"string"!=typeof t||(t=Number(t)),"number"!=typeof t||xi(t)||xi(s.precision)||(t=Number(t.toFixed(s.precision))),t},[s]);if("read"===r){var h,p={};null!=s&&s.precision&&(p={minimumFractionDigits:Number(s.precision),maximumFractionDigits:Number(s.precision)});var f=new Intl.NumberFormat(void 0,(0,d.A)((0,d.A)({},p),(null==s?void 0:s.intlProps)||{})).format(Number(n)),m=null!=s&&s.stringMode?(0,Ue.jsx)("span",{children:n}):(0,Ue.jsx)("span",{ref:t,children:(null==s||null===(h=s.formatter)||void 0===h?void 0:h.call(s,f))||f});return o?o(n,(0,d.A)({mode:r},s),m):m}if("edit"===r||"update"===r){var g=(0,Ue.jsx)(_g.A,(0,d.A)((0,d.A)({ref:t,min:0,placeholder:c},(0,Vt.A)(s,["onChange","onBlur"])),{},{onChange:function(e){var t;return null==s||null===(t=s.onChange)||void 0===t?void 0:t.call(s,u(e))},onBlur:function(e){var t;return null==s||null===(t=s.onBlur)||void 0===t?void 0:t.call(s,u(e.target.value))}}));return a?a(n,(0,d.A)({mode:r},s),g):g}return null};const Ry=v.forwardRef(_y);var By=function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.placeholder,a=e.renderFormItem,l=e.fieldProps,u=e.separator,h=void 0===u?"~":u,p=e.separatorWidth,f=void 0===p?30:p,m=l.value,g=l.defaultValue,b=l.onChange,y=l.id,x=Ze(),w=rt.useToken().token,A=(0,Ut.A)(function(){return g},{value:m,onChange:b}),S=(0,s.A)(A,2),C=S[0],$=S[1],k=(0,v.useRef)(C);if("read"===r){var E=function(e){var t,n=new Intl.NumberFormat(void 0,(0,d.A)({minimumSignificantDigits:2},(null==l?void 0:l.intlProps)||{})).format(Number(e));return(null==l||null===(t=l.formatter)||void 0===t?void 0:t.call(l,n))||n},O=(0,Ue.jsxs)("span",{ref:t,children:[E(n[0])," ",h," ",E(n[1])]});return o?o(n,(0,d.A)({mode:r},l),O):O}if("edit"===r||"update"===r){var P=function(e,t){var n=(0,c.A)(C||[]);n[e]=null===t?void 0:t,k.current=n,$(n)},j=(null==l?void 0:l.placeholder)||i||[x.getMessage("tableForm.inputPlaceholder","请输入"),x.getMessage("tableForm.inputPlaceholder","请输入")],I=function(e){return Array.isArray(j)?j[e]:j},M=la.A.Compact||Um.A.Group,T=la.A.Compact?{}:{compact:!0},_=(0,Ue.jsxs)(M,(0,d.A)((0,d.A)({},T),{},{onBlur:function(){if(Array.isArray(k.current)){var e=(0,s.A)(k.current,2),t=e[0],n=e[1];"number"==typeof t&&"number"==typeof n&&t>n?$([n,t]):void 0===t&&void 0===n&&$(void 0)}},children:[(0,Ue.jsx)(_g.A,(0,d.A)((0,d.A)({},l),{},{placeholder:I(0),id:null!=y?y:"".concat(y,"-0"),style:{width:"calc((100% - ".concat(f,"px) / 2)")},value:null==C?void 0:C[0],defaultValue:null==g?void 0:g[0],onChange:function(e){return P(0,e)}})),(0,Ue.jsx)(Um.A,{style:{width:f,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:null==w?void 0:w.colorBgContainer},placeholder:h,disabled:!0}),(0,Ue.jsx)(_g.A,(0,d.A)((0,d.A)({},l),{},{placeholder:I(1),id:null!=y?y:"".concat(y,"-1"),style:{width:"calc((100% - ".concat(f,"px) / 2)"),borderInlineStart:0},value:null==C?void 0:C[1],defaultValue:null==g?void 0:g[1],onChange:function(e){return P(1,e)}}))]}));return a?a(n,(0,d.A)({mode:r},l),_):_}return null};const Fy=v.forwardRef(By);var Dy=n(6279),zy=n.n(Dy);Fe().extend(zy());var Ny=function(e,t){var n=e.text,r=e.mode,o=e.plain,i=e.render,a=e.renderFormItem,s=e.format,l=e.fieldProps,c=Ze();if("read"===r){var u=(0,Ue.jsx)(m.A,{title:Fe()(n).format((null==l?void 0:l.format)||s||"YYYY-MM-DD HH:mm:ss"),children:Fe()(n).fromNow()});return i?i(n,(0,d.A)({mode:r},l),(0,Ue.jsx)(Ue.Fragment,{children:u})):(0,Ue.jsx)(Ue.Fragment,{children:u})}if("edit"===r||"update"===r){var h=c.getMessage("tableForm.selectPlaceholder","请选择"),p=Oy(l.value),f=(0,Ue.jsx)(Py.A,(0,d.A)((0,d.A)((0,d.A)({ref:t,placeholder:h,showTime:!0},vm(void 0===o||!o)),l),{},{value:p}));return a?a(n,(0,d.A)({mode:r},l),f):f}return null};const Ly=v.forwardRef(Ny);var Hy=n(26398),Wy=v.forwardRef(function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.renderFormItem,a=e.fieldProps,s=e.placeholder,l=e.width,c=Ze(),u=s||c.getMessage("tableForm.inputPlaceholder","请输入");if("read"===r){var h=(0,Ue.jsx)(Hy.A,(0,d.A)({ref:t,width:l||32,src:n},a));return o?o(n,(0,d.A)({mode:r},a),h):h}if("edit"===r||"update"===r){var p=(0,Ue.jsx)(Um.A,(0,d.A)({ref:t,placeholder:u},a));return i?i(n,(0,d.A)({mode:r},a),p):p}return null});const Uy=Wy;var Vy=function(e,t){var n=e.border,r=void 0!==n&&n,o=e.children,i=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-field-index-column"),a=at("IndexColumn",function(){return(0,l.A)({},".".concat(i),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),s=a.wrapSSR,c=a.hashId;return s((0,Ue.jsx)("div",{ref:t,className:b()(i,c,(0,l.A)((0,l.A)({},"".concat(i,"-border"),r),"top-three",o>3)),children:o}))};const Gy=v.forwardRef(Vy);var qy=["contentRender","numberFormatOptions","numberPopoverRender","open"],Xy=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],Ky=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),Yy={default:Ky,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":{style:"currency",currency:"USD"},"ru-RU":{style:"currency",currency:"RUB"},"ms-MY":{style:"currency",currency:"MYR"},"sr-RS":{style:"currency",currency:"RSD"},"pt-BR":{style:"currency",currency:"BRL"}},Qy=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=null==t?void 0:t.toString().replaceAll(",","");if("string"==typeof i){var a=Number(i);if(Number.isNaN(a))return i;i=a}if(!i&&0!==i)return"";var l=!1;try{l=!1!==e&&Intl.NumberFormat.supportedLocalesOf([e.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch(e){}try{var c=new Intl.NumberFormat(l&&!1!==e&&(null==e?void 0:e.replace("_","-"))||"zh-Hans-CN",(0,d.A)((0,d.A)({},Yy[e||"zh-Hans-CN"]||Ky),{},{maximumFractionDigits:n},r)).format(i),u=function(e){var t=e.match(/\d+/);if(t){var n=t[0];return e.slice(e.indexOf(n))}return e}(c),h=c||"",p=(0,s.A)(h,1)[0];return["+","-"].includes(p)?"".concat(o||"").concat(p).concat(u):"".concat(o||"").concat(u)}catch(e){return i}},Jy=v.forwardRef(function(e,t){var n=e.contentRender,r=(e.numberFormatOptions,e.numberPopoverRender,e.open),o=(0,u.A)(e,qy),i=(0,Ut.A)(function(){return o.defaultValue},{value:o.value,onChange:o.onChange}),a=(0,s.A)(i,2),l=a[0],c=a[1],h=null==n?void 0:n((0,d.A)((0,d.A)({},o),{},{value:l})),p=Ga(!!h&&r);return(0,Ue.jsx)(Ba,(0,d.A)((0,d.A)({placement:"topLeft"},p),{},{trigger:["focus","click"],content:h,getPopupContainer:function(e){return(null==e?void 0:e.parentElement)||document.body},children:(0,Ue.jsx)(_g.A,(0,d.A)((0,d.A)({ref:t},o),{},{value:l,onChange:c}))}))}),Zy=function(e,t){var n,r=e.text,o=e.mode,i=e.render,a=e.renderFormItem,l=e.fieldProps,c=(e.proFieldKey,e.plain,e.valueEnum,e.placeholder),h=e.locale,p=e.customSymbol,f=void 0===p?l.customSymbol:p,m=e.numberFormatOptions,g=void 0===m?null==l?void 0:l.numberFormatOptions:m,b=e.numberPopoverRender,y=void 0===b?(null==l?void 0:l.numberPopoverRender)||!1:b,x=(0,u.A)(e,Xy),w=null!==(n=null==l?void 0:l.precision)&&void 0!==n?n:2,A=Ze();h&&Te[h]&&(A=Te[h]);var S=c||A.getMessage("tableForm.inputPlaceholder","请输入"),C=(0,v.useMemo)(function(){return f||(!1!==x.moneySymbol&&!1!==l.moneySymbol?A.getMessage("moneySymbol","¥"):void 0)},[f,l.moneySymbol,A,x.moneySymbol]),$=(0,v.useCallback)(function(e){var t=new RegExp("\\B(?=(\\d{".concat(3+Math.max(w-2,0),"})+(?!\\d))"),"g"),n=String(e).split("."),r=(0,s.A)(n,2),o=r[0],i=r[1],a=o.replace(t,","),l="";return i&&w>0&&(l=".".concat(i.slice(0,void 0===w?2:w))),"".concat(a).concat(l)},[w]);if("read"===o){var k=(0,Ue.jsx)("span",{ref:t,children:Qy(h||!1,r,w,null!=g?g:l.numberFormatOptions,C)});return i?i(r,(0,d.A)({mode:o},l),k):k}if("edit"===o||"update"===o){var E=(0,Ue.jsx)(Jy,(0,d.A)((0,d.A)({contentRender:function(e){if(!1===y)return null;if(!e.value)return null;var t=Qy(C||h||!1,"".concat($(e.value)),w,(0,d.A)((0,d.A)({},g),{},{notation:"compact"}),C);return"function"==typeof y?null==y?void 0:y(e,t):t},ref:t,precision:w,formatter:function(e){return e&&C?"".concat(C," ").concat($(e)):null==e?void 0:e.toString()},parser:function(e){return C&&e?e.replace(new RegExp("\\".concat(C,"\\s?|(,*)"),"g"),""):e},placeholder:S},(0,Vt.A)(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function(e){var t,n=e.target.value;C&&n&&(n=n.replace(new RegExp("\\".concat(C,"\\s?|(,*)"),"g"),"")),null===(t=l.onBlur)||void 0===t||t.call(l,n)}:void 0}));return a?a(r,(0,d.A)({mode:o},l),E):E}return null};const ex=v.forwardRef(Zy);var tx=function(e){return e.map(function(e,t){var n;return v.isValidElement(e)?v.cloneElement(e,(0,d.A)((0,d.A)({key:t},null==e?void 0:e.props),{},{style:(0,d.A)({},null==e||null===(n=e.props)||void 0===n?void 0:n.style)})):(0,Ue.jsx)(v.Fragment,{children:e},t)})},nx=function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.fieldProps,a=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-field-option"),s=rt.useToken().token;if((0,v.useImperativeHandle)(t,function(){return{}}),o){var l=o(n,(0,d.A)({mode:r},i),(0,Ue.jsx)(Ue.Fragment,{}));return!l||(null==l?void 0:l.length)<1||!Array.isArray(l)?null:(0,Ue.jsx)("div",{style:{display:"flex",gap:s.margin,alignItems:"center"},className:a,children:tx(l)})}return n&&Array.isArray(n)?(0,Ue.jsx)("div",{style:{display:"flex",gap:s.margin,alignItems:"center"},className:a,children:tx(n)}):v.isValidElement(n)?n:null};const rx=v.forwardRef(nx);var ox=n(30234),ix=n(8597),ax=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],sx=function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.renderFormItem,a=e.fieldProps,l=(e.proFieldKey,(0,u.A)(e,ax)),c=Ze(),h=(0,Ut.A)(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),p=(0,s.A)(h,2),f=p[0],m=p[1];if("read"===r){var g=(0,Ue.jsx)(Ue.Fragment,{children:"-"});return n&&(g=(0,Ue.jsxs)(la.A,{children:[(0,Ue.jsx)("span",{ref:t,children:f?n:"********"}),(0,Ue.jsx)("a",{onClick:function(){return m(!f)},children:f?(0,Ue.jsx)(ox.A,{}):(0,Ue.jsx)(ix.A,{})})]})),o?o(n,(0,d.A)({mode:r},a),g):g}if("edit"===r||"update"===r){var b=(0,Ue.jsx)(Um.A.Password,(0,d.A)({placeholder:c.getMessage("tableForm.inputPlaceholder","请输入"),ref:t},a));return i?i(n,(0,d.A)({mode:r},a),b):b}return null};const lx=v.forwardRef(sx);function cx(e){return 0===e?null:e>0?"+":"-"}function dx(e){return 0===e?"#595959":e>0?"#ff4d4f":"#52c41a"}function ux(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return t>=0?null==e?void 0:e.toFixed(t):e}function hx(e){return"symbol"===(0,a.A)(e)||e instanceof Symbol?NaN:Number(e)}var px=function(e,t){var n=e.text,r=e.prefix,o=e.precision,i=e.suffix,a=void 0===i?"%":i,s=e.mode,l=e.showColor,c=void 0!==l&&l,u=e.render,h=e.renderFormItem,p=e.fieldProps,f=e.placeholder,m=e.showSymbol,g=Ze(),b=f||g.getMessage("tableForm.inputPlaceholder","请输入"),y=(0,v.useMemo)(function(){return"string"==typeof n&&n.includes("%")?hx(n.replace("%","")):hx(n)},[n]),x=(0,v.useMemo)(function(){return"function"==typeof m?null==m?void 0:m(n):m},[m,n]);if("read"===s){var w=c?{color:dx(y)}:{},A=(0,Ue.jsxs)("span",{style:w,ref:t,children:[r&&(0,Ue.jsx)("span",{children:r}),x&&(0,Ue.jsxs)(v.Fragment,{children:[cx(y)," "]}),ux(Math.abs(y),o),a&&a]});return u?u(n,(0,d.A)((0,d.A)({mode:s},p),{},{prefix:r,precision:o,showSymbol:x,suffix:a}),A):A}if("edit"===s||"update"===s){var S=(0,Ue.jsx)(_g.A,(0,d.A)({ref:t,formatter:function(e){return e&&r?"".concat(r," ").concat(e).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):e},parser:function(e){return e?e.replace(/.*\s|,/g,""):""},placeholder:b},p));return h?h(n,(0,d.A)({mode:s},p),S):S}return null};const fx=v.forwardRef(px);function mx(e){return 100===e?"success":e<0?"exception":e<100?"active":"normal"}var gx=function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.plain,a=e.renderFormItem,s=e.fieldProps,l=e.placeholder,c=Ze(),u=l||c.getMessage("tableForm.inputPlaceholder","请输入"),h=(0,v.useMemo)(function(){return"string"==typeof n&&n.includes("%")?hx(n.replace("%","")):hx(n)},[n]);if("read"===r){var p=(0,Ue.jsx)(Kp.A,(0,d.A)({ref:t,size:"small",style:{minWidth:100,maxWidth:320},percent:h,steps:i?10:void 0,status:mx(h)},s));return o?o(h,(0,d.A)({mode:r},s),p):p}if("edit"===r||"update"===r){var f=(0,Ue.jsx)(_g.A,(0,d.A)({ref:t,placeholder:u},s));return a?a(n,(0,d.A)({mode:r},s),f):f}return null};const bx=v.forwardRef(gx);var vx=["radioType","renderFormItem","mode","render"],yx=function(e,t){var n,r,o=e.radioType,i=e.renderFormItem,a=e.mode,c=e.render,h=(0,u.A)(e,vx),p=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-field-radio"),m=og(h),g=(0,s.A)(m,3),y=g[0],x=g[1],w=g[2],A=(0,v.useRef)(),S=null===(n=yn.A.Item)||void 0===n||null===(r=n.useStatus)||void 0===r?void 0:r.call(n);(0,v.useImperativeHandle)(t,function(){return(0,d.A)((0,d.A)({},A.current||{}),{},{fetchData:function(e){return w(e)}})},[w]);var C=at("FieldRadioRadio",function(e){return(0,l.A)((0,l.A)((0,l.A)({},".".concat(p,"-error"),{span:{color:e.colorError}}),".".concat(p,"-warning"),{span:{color:e.colorWarning}}),".".concat(p,"-vertical"),(0,l.A)({},"".concat(e.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),$=C.wrapSSR,k=C.hashId;if(y)return(0,Ue.jsx)(Ii.A,{size:"small"});if("read"===a){var E,O=null!=x&&x.length?null==x?void 0:x.reduce(function(e,t){var n;return(0,d.A)((0,d.A)({},e),{},(0,l.A)({},null!==(n=t.value)&&void 0!==n?n:"",t.label))},{}):void 0,P=(0,Ue.jsx)(Ue.Fragment,{children:bm(h.text,mm(h.valueEnum||O))});return c?null!==(E=c(h.text,(0,d.A)({mode:a},h.fieldProps),P))&&void 0!==E?E:null:P}if("edit"===a){var j,I,M=$((0,Ue.jsx)(ec.Ay.Group,(0,d.A)((0,d.A)({ref:A,optionType:o},h.fieldProps),{},{className:b()(null===(j=h.fieldProps)||void 0===j?void 0:j.className,(0,l.A)((0,l.A)({},"".concat(p,"-error"),"error"===(null==S?void 0:S.status)),"".concat(p,"-warning"),"warning"===(null==S?void 0:S.status)),k,"".concat(p,"-").concat(h.fieldProps.layout||"horizontal")),options:x})));return i?null!==(I=i(h.text,(0,d.A)((0,d.A)({mode:a},h.fieldProps),{},{options:x,loading:y}),M))&&void 0!==I?I:null:M}return null};const xx=v.forwardRef(yx);var wx=function(e,t){var n=e.text,r=e.mode,o=e.light,i=e.label,a=e.format,l=e.render,c=e.picker,u=e.renderFormItem,h=e.plain,p=e.showTime,f=e.lightLabel,m=e.bordered,g=e.fieldProps,b=Ze(),y=Array.isArray(n)?n:[],x=(0,s.A)(y,2),w=x[0],A=x[1],S=v.useState(!1),C=(0,s.A)(S,2),$=C[0],k=C[1],E=(0,v.useCallback)(function(e){var t;return"function"==typeof(null==g?void 0:g.format)?null==g||null===(t=g.format)||void 0===t?void 0:t.call(g,e):(null==g?void 0:g.format)||a||"YYYY-MM-DD"},[g,a]),O=w?Fe()(w).format(E(Fe()(w))):"",P=A?Fe()(A).format(E(Fe()(A))):"";if("read"===r){var j=(0,Ue.jsxs)("div",{ref:t,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[(0,Ue.jsx)("div",{children:O||"-"}),(0,Ue.jsx)("div",{children:P||"-"})]});return l?l(n,(0,d.A)({mode:r},g),(0,Ue.jsx)("span",{children:j})):j}if("edit"===r||"update"===r){var I,M,T=Oy(g.value);if(o)I=(0,Ue.jsx)(Za,{label:i,onClick:function(){var e;null==g||null===(e=g.onOpenChange)||void 0===e||e.call(g,!0),k(!0)},style:T?{paddingInlineEnd:0}:void 0,disabled:g.disabled,value:T||$?(0,Ue.jsx)(Py.A.RangePicker,(0,d.A)((0,d.A)((0,d.A)({picker:c,showTime:p,format:a},vm(!1)),g),{},{placeholder:null!==(M=g.placeholder)&&void 0!==M?M:[b.getMessage("tableForm.selectPlaceholder","请选择"),b.getMessage("tableForm.selectPlaceholder","请选择")],value:T,onOpenChange:function(e){var t;T&&k(e),null==g||null===(t=g.onOpenChange)||void 0===t||t.call(g,e)},onChange:function(e){var t;null==g||null===(t=g.onChange)||void 0===t||t.call(g,e),e||k(!1)}})):null,allowClear:!1,bordered:m,ref:f,downIcon:!T&&!$&&void 0});else I=(0,Ue.jsx)(Py.A.RangePicker,(0,d.A)((0,d.A)((0,d.A)({ref:t,format:a,showTime:p,placeholder:[b.getMessage("tableForm.selectPlaceholder","请选择"),b.getMessage("tableForm.selectPlaceholder","请选择")]},vm(void 0===h||!h)),g),{},{value:T}));return u?u(n,(0,d.A)({mode:r},g),I):I}return null};const Ax=v.forwardRef(wx);const Sx={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"};var Cx=function(e,t){return v.createElement(ht.A,(0,dt.A)({},e,{ref:t,icon:Sx}))};const $x=v.forwardRef(Cx);var kx=n(51379);const Ex=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,y.zA)(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},Ox=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),Px=(0,kt.OF)("Rate",e=>(e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,$t.dF)(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ex(e)),Ox(e))}})((0,Et.oX)(e,{})),e=>({starColor:e.yellow6,starSize:.5*e.controlHeightLG,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}));var jx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:i,tooltips:a,character:s=v.createElement($x,null),disabled:l}=e,c=jx(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),{getPrefixCls:d,direction:u,rate:h}=v.useContext(bt.QO),p=d("rate",n),[f,g,y]=Px(p),x=Object.assign(Object.assign({},null==h?void 0:h.style),i),w=v.useContext(ud.A),A=null!=l?l:w;return f(v.createElement(kx.A,Object.assign({ref:t,character:s,characterRender:(e,{index:t})=>a?v.createElement(m.A,{title:a[t]},e):e,disabled:A},c,{className:b()(r,o,g,y,null==h?void 0:h.className),style:x,prefixCls:p,direction:u})))});const Mx=Ix;var Tx=function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.renderFormItem,a=e.fieldProps;if("read"===r){var s=(0,Ue.jsx)(Mx,(0,d.A)((0,d.A)({allowHalf:!0,disabled:!0,ref:t},a),{},{value:n}));return o?o(n,(0,d.A)({mode:r},a),(0,Ue.jsx)(Ue.Fragment,{children:s})):s}if("edit"===r||"update"===r){var l=(0,Ue.jsx)(Mx,(0,d.A)({allowHalf:!0,ref:t},a));return i?i(n,(0,d.A)({mode:r},a),l):l}return null};const _x=v.forwardRef(Tx);var Rx=function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.renderFormItem,a=e.fieldProps,s=e.placeholder,l=Ze(),c=s||l.getMessage("tableForm.inputPlaceholder","请输入");if("read"===r){var u=function(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var o=Math.floor(t/86400),i=Math.floor(t/3600%24),a=Math.floor(t/60%60),s=Math.floor(t%60);return n="".concat(s,"秒"),a>0&&(n="".concat(a,"分钟").concat(n)),i>0&&(n="".concat(i,"小时").concat(n)),o>0&&(n="".concat(o,"天").concat(n)),r&&(n+="前"),n}(Number(n)),h=(0,Ue.jsx)("span",{ref:t,children:u});return o?o(n,(0,d.A)({mode:r},a),h):h}if("edit"===r||"update"===r){var p=(0,Ue.jsx)(_g.A,(0,d.A)({ref:t,min:0,style:{width:"100%"},placeholder:c},a));return i?i(n,(0,d.A)({mode:r},a),p):p}return null};const Bx=v.forwardRef(Rx);var Fx=["mode","render","renderFormItem","fieldProps","emptyText"],Dx=function(e,t){var n=e.mode,r=e.render,o=e.renderFormItem,i=e.fieldProps,a=e.emptyText,c=void 0===a?"-":a,h=(0,u.A)(e,Fx),p=(0,v.useRef)(),f=og(e),m=(0,s.A)(f,3),g=m[0],b=m[1],y=m[2];if((0,v.useImperativeHandle)(t,function(){return(0,d.A)((0,d.A)({},p.current||{}),{},{fetchData:function(e){return y(e)}})},[y]),g)return(0,Ue.jsx)(Ii.A,{size:"small"});if("read"===n){var x,w=null!=b&&b.length?null==b?void 0:b.reduce(function(e,t){var n;return(0,d.A)((0,d.A)({},e),{},(0,l.A)({},null!==(n=t.value)&&void 0!==n?n:"",t.label))},{}):void 0,A=(0,Ue.jsx)(Ue.Fragment,{children:bm(h.text,mm(h.valueEnum||w))});return r?null!==(x=r(h.text,(0,d.A)({mode:n},i),(0,Ue.jsx)(Ue.Fragment,{children:A})))&&void 0!==x?x:c:A}if("edit"===n||"update"===n){var S=(0,Ue.jsx)(kg,(0,d.A)((0,d.A)({ref:p},(0,Vt.A)(i||{},["allowClear"])),{},{options:b}));return o?o(h.text,(0,d.A)((0,d.A)({mode:n},i),{},{options:b,loading:g}),S):S}return null};const zx=v.forwardRef(Dx);var Nx=function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.renderFormItem,a=e.fieldProps;if("read"===r){var s=n;return o?o(n,(0,d.A)({mode:r},a),(0,Ue.jsx)(Ue.Fragment,{children:s})):(0,Ue.jsx)(Ue.Fragment,{children:s})}if("edit"===r||"update"===r){var l=(0,Ue.jsx)(eb,(0,d.A)((0,d.A)({ref:t},a),{},{style:(0,d.A)({minWidth:120},null==a?void 0:a.style)}));return i?i(n,(0,d.A)({mode:r},a),l):l}return null};const Lx=v.forwardRef(Nx);var Hx=n(81102),Wx=n(57);const Ux=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,d=(0,y.zA)(l(s).add(l(r).mul(2)).equal()),u=(0,y.zA)(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:(0,y.zA)(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${u})`,marginInlineEnd:`calc(100% - ${d} + ${u})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${u})`,marginInlineEnd:`calc(-100% + ${d} - ${u})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${(0,y.zA)(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},Vx=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Gx=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${(0,y.zA)(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},qx=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:s}=e,l=`${t}-inner`,c=(0,y.zA)(s(a).add(s(r).mul(2)).equal()),d=(0,y.zA)(s(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${d})`,marginInlineEnd:`calc(100% - ${c} + ${d})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${d})`,marginInlineEnd:`calc(-100% + ${c} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},Xx=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,$t.dF)(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:(0,y.zA)(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),(0,$t.K8)(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},Kx=(0,kt.OF)("Switch",e=>{const t=(0,Et.oX)(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Xx(t),qx(t),Gx(t),Vx(t),Ux(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,s=i-4,l=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:o,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new yl.Y("#00230b").setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}});var Yx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l,checked:c,value:d,defaultChecked:u,defaultValue:h,onChange:p}=e,f=Yx(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[m,g]=(0,Ut.A)(!1,{value:null!=c?c:d,defaultValue:null!=u?u:h}),{getPrefixCls:y,direction:x,switch:w}=v.useContext(bt.QO),A=v.useContext(ud.A),S=(null!=o?o:A)||i,C=y("switch",n),$=v.createElement("div",{className:`${C}-handle`},i&&v.createElement(qi.A,{className:`${C}-loading-icon`})),[k,E,O]=Kx(C),P=(0,yt.A)(r),j=b()(null==w?void 0:w.className,{[`${C}-small`]:"small"===P,[`${C}-loading`]:i,[`${C}-rtl`]:"rtl"===x},a,s,E,O),I=Object.assign(Object.assign({},null==w?void 0:w.style),l);return k(v.createElement(Wx.A,{component:"Switch",disabled:S},v.createElement(Hx.A,Object.assign({},f,{checked:m,onChange:(...e)=>{g(e[0]),null==p||p.apply(void 0,e)},prefixCls:C,className:j,style:I,disabled:S,ref:t,loadingIcon:$}))))}),Jx=Qx;Jx.__ANT_SWITCH=!0;const Zx=Jx;var ew=function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.light,a=e.label,s=e.renderFormItem,l=e.fieldProps,c=Ze(),u=(0,v.useMemo)(function(){var e,t;return null==n||"".concat(n).length<1?"-":n?null!==(e=null==l?void 0:l.checkedChildren)&&void 0!==e?e:c.getMessage("switch.open","打开"):null!==(t=null==l?void 0:l.unCheckedChildren)&&void 0!==t?t:c.getMessage("switch.close","关闭")},[null==l?void 0:l.checkedChildren,null==l?void 0:l.unCheckedChildren,n]);if("read"===r)return o?o(n,(0,d.A)({mode:r},l),(0,Ue.jsx)(Ue.Fragment,{children:u})):null!=u?u:"-";if("edit"===r||"update"===r){var h,p=(0,Ue.jsx)(Zx,(0,d.A)((0,d.A)({ref:t,size:i?"small":void 0},(0,Vt.A)(l,["value"])),{},{checked:null!==(h=null==l?void 0:l.checked)&&void 0!==h?h:null==l?void 0:l.value}));if(i){var f=l.disabled,m=l.bordered;return(0,Ue.jsx)(Za,{label:a,disabled:f,bordered:m,downIcon:!1,value:(0,Ue.jsx)("div",{style:{paddingLeft:8},children:p}),allowClear:!1})}return s?s(n,(0,d.A)({mode:r},l),p):p}return null};const tw=v.forwardRef(ew);var nw=function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.renderFormItem,a=e.fieldProps,s=e.emptyText,l=void 0===s?"-":s,c=a||{},u=c.autoFocus,h=c.prefix,p=void 0===h?"":h,f=c.suffix,m=void 0===f?"":f,g=Ze(),b=(0,v.useRef)();if((0,v.useImperativeHandle)(t,function(){return b.current},[]),(0,v.useEffect)(function(){var e;u&&(null===(e=b.current)||void 0===e||e.focus())},[u]),"read"===r){var y,x=(0,Ue.jsxs)(Ue.Fragment,{children:[p,null!=n?n:l,m]});return o?null!==(y=o(n,(0,d.A)({mode:r},a),x))&&void 0!==y?y:l:x}if("edit"===r||"update"===r){var w=g.getMessage("tableForm.inputPlaceholder","请输入"),A=(0,Ue.jsx)(Um.A,(0,d.A)({ref:b,placeholder:w,allowClear:!0},a));return i?i(n,(0,d.A)({mode:r},a),A):A}return null};const rw=v.forwardRef(nw);var ow=function(e,t){var n=e.text,r=e.fieldProps,o=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-field-readonly"),i="".concat(o,"-textarea"),a=at("TextArea",function(){return(0,l.A)({},".".concat(i),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),s=a.wrapSSR,c=a.hashId;return s((0,Ue.jsx)("span",(0,d.A)((0,d.A)({ref:t,className:b()(c,o,i)},(0,Vt.A)(r,["autoSize","classNames","styles"])),{},{children:null!=n?n:"-"})))};const iw=v.forwardRef(ow);var aw=function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.renderFormItem,a=e.fieldProps,s=Ze();if("read"===r){var l=(0,Ue.jsx)(iw,(0,d.A)((0,d.A)({},e),{},{ref:t}));return o?o(n,(0,d.A)({mode:r},(0,Vt.A)(a,["showCount"])),l):l}if("edit"===r||"update"===r){var c=(0,Ue.jsx)(Um.A.TextArea,(0,d.A)({ref:t,rows:3,onKeyPress:function(e){"Enter"===e.key&&e.stopPropagation()},placeholder:s.getMessage("tableForm.inputPlaceholder","请输入")},a));return i?i(n,(0,d.A)({mode:r},a),c):c}return null};const sw=v.forwardRef(aw);var lw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ov.createElement(dw,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),hw=v.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:o,bordered:i}=e,a=lw(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=(0,Am.A)("timePicker",o,i),l=v.useMemo(()=>r||(n||void 0),[n,r]);return v.createElement(cw,Object.assign({},a,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))});const pw=(0,il.A)(hw,"popupAlign",void 0,"picker");hw._InternalPanelDoNotUseOrYouWillBeFired=pw,hw.RangePicker=uw,hw._InternalPanelDoNotUseOrYouWillBeFired=pw;const fw=hw;var mw=function(e,t){var n=e.text,r=e.mode,o=e.light,i=e.label,a=e.format,l=e.render,c=e.renderFormItem,u=e.plain,h=e.fieldProps,p=e.lightLabel,f=(0,v.useState)(!1),m=(0,s.A)(f,2),g=m[0],b=m[1],y=Ze(),x=(null==h?void 0:h.format)||a||"HH:mm:ss",w=Fe().isDayjs(n)||"number"==typeof n;if("read"===r){var A=(0,Ue.jsx)("span",{ref:t,children:n?Fe()(n,w?void 0:x).format(x):"-"});return l?l(n,(0,d.A)({mode:r},h),(0,Ue.jsx)("span",{children:A})):A}if("edit"===r||"update"===r){var S,C,$=h.disabled,k=h.value,E=Oy(k,x);if(o)S=(0,Ue.jsx)(Za,{onClick:function(){var e;null==h||null===(e=h.onOpenChange)||void 0===e||e.call(h,!0),b(!0)},style:E?{paddingInlineEnd:0}:void 0,label:i,disabled:$,value:E||g?(0,Ue.jsx)(fw,(0,d.A)((0,d.A)((0,d.A)({},vm(!1)),{},{format:a,ref:t},h),{},{placeholder:null!==(C=h.placeholder)&&void 0!==C?C:y.getMessage("tableForm.selectPlaceholder","请选择"),value:E,onOpenChange:function(e){var t;b(e),null==h||null===(t=h.onOpenChange)||void 0===t||t.call(h,e)},open:g})):null,downIcon:!E&&!g&&void 0,allowClear:!1,ref:p});else S=(0,Ue.jsx)(Py.A.TimePicker,(0,d.A)((0,d.A)((0,d.A)({ref:t,format:a},vm(void 0===u||!u)),h),{},{value:E}));return c?c(n,(0,d.A)({mode:r},h),S):S}return null},gw=function(e,t){var n=e.text,r=e.light,o=e.label,i=e.mode,a=e.lightLabel,l=e.format,c=e.render,u=e.renderFormItem,h=e.plain,p=e.fieldProps,f=Ze(),m=(0,v.useState)(!1),g=(0,s.A)(m,2),b=g[0],y=g[1],x=(null==p?void 0:p.format)||l||"HH:mm:ss",w=Array.isArray(n)?n:[],A=(0,s.A)(w,2),S=A[0],C=A[1],$=Fe().isDayjs(S)||"number"==typeof S,k=Fe().isDayjs(C)||"number"==typeof C,E=S?Fe()(S,$?void 0:x).format(x):"",O=C?Fe()(C,k?void 0:x).format(x):"";if("read"===i){var P=(0,Ue.jsxs)("div",{ref:t,children:[(0,Ue.jsx)("div",{children:E||"-"}),(0,Ue.jsx)("div",{children:O||"-"})]});return c?c(n,(0,d.A)({mode:i},p),(0,Ue.jsx)("span",{children:P})):P}if("edit"===i||"update"===i){var j,I=Oy(p.value,x);if(r){var M=p.disabled,T=p.placeholder,_=void 0===T?[f.getMessage("tableForm.selectPlaceholder","请选择"),f.getMessage("tableForm.selectPlaceholder","请选择")]:T;j=(0,Ue.jsx)(Za,{onClick:function(){var e;null==p||null===(e=p.onOpenChange)||void 0===e||e.call(p,!0),y(!0)},style:I?{paddingInlineEnd:0}:void 0,label:o,disabled:M,placeholder:_,value:I||b?(0,Ue.jsx)(fw.RangePicker,(0,d.A)((0,d.A)((0,d.A)({},vm(!1)),{},{format:l,ref:t},p),{},{placeholder:_,value:I,onOpenChange:function(e){var t;y(e),null==p||null===(t=p.onOpenChange)||void 0===t||t.call(p,e)},open:b})):null,downIcon:!I&&!b&&void 0,allowClear:!1,ref:a})}else j=(0,Ue.jsx)(fw.RangePicker,(0,d.A)((0,d.A)((0,d.A)({ref:t,format:l},vm(void 0===h||!h)),p),{},{value:I}));return u?u(n,(0,d.A)({mode:i},p),j):j}return null},bw=v.forwardRef(gw);const vw=v.forwardRef(mw);var yw=n(14884);function xw(e,t,n){return(0,kt.OF)("TreeSelect",e=>(e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${(0,y.zA)(e.paddingXS)} ${(0,y.zA)(e.calc(e.paddingXS).div(2).equal())}`},vd(n,(0,Et.oX)(e,{colorBgContainer:r}),!1),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},(0,hd.gd)(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]})((0,Et.oX)(e,{treePrefixCls:t})),yd)(e,n)}var ww=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a;const{prefixCls:s,size:l,disabled:c,bordered:d=!0,style:u,className:h,rootClassName:p,treeCheckable:f,multiple:m,listHeight:g=256,listItemHeight:y,placement:x,notFoundContent:w,switcherIcon:A,treeLine:S,getPopupContainer:C,popupClassName:$,dropdownClassName:k,treeIcon:E=!1,transitionName:O,choiceTransitionName:P="",status:j,treeExpandAction:I,builtinPlacements:M,dropdownMatchSelectWidth:T,popupMatchSelectWidth:_,allowClear:R,variant:B,dropdownStyle:F,dropdownRender:D,popupRender:z,onDropdownVisibleChange:N,onOpenChange:L,tagRender:H,maxCount:W,showCheckedStrategy:U,treeCheckStrictly:V,styles:G,classNames:q}=e,X=ww(e,["prefixCls","size","disabled","bordered","style","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly","styles","classNames"]),{getPopupContainer:K,getPrefixCls:Y,renderEmpty:Q,direction:J,virtual:Z,popupMatchSelectWidth:ee,popupOverflow:te}=v.useContext(bt.QO),{styles:ne,classNames:re,switcherIcon:oe}=(0,bt.TP)("treeSelect"),[,ie]=(0,Nl.Ay)(),ae=null!=y?y:(null==ie?void 0:ie.controlHeightSM)+(null==ie?void 0:ie.paddingXXS);const se=Y(),le=Y("select",s),ce=Y("select-tree",s),de=Y("tree-select",s),{compactSize:ue,compactItemClassnames:he}=(0,Xl.RQ)(le,J),pe=(0,vt.A)(le),fe=(0,vt.A)(de),[me,ge,be]=(0,Cm.A)(le,pe),[ve]=xw(de,ce,fe),[ye,xe]=(0,Am.A)("treeSelect",B,d),we=b()((null===(n=null==q?void 0:q.popup)||void 0===n?void 0:n.root)||(null===(r=null==re?void 0:re.popup)||void 0===r?void 0:r.root)||$||k,`${de}-dropdown`,{[`${de}-dropdown-rtl`]:"rtl"===J},p,re.root,null==q?void 0:q.root,be,pe,fe,ge),Ae=(null===(o=null==G?void 0:G.popup)||void 0===o?void 0:o.root)||(null===(i=null==ne?void 0:ne.popup)||void 0===i?void 0:i.root)||F,Se=(0,km.A)(z||D),Ce=L||N,$e=!(!f&&!m),ke=v.useMemo(()=>{if(!W||("SHOW_ALL"!==U||V)&&"SHOW_PARENT"!==U)return W},[W,U,V]),Ee=(0,Em.A)(e.suffixIcon,e.showArrow),Oe=null!==(a=null!=_?_:T)&&void 0!==a?a:ee,{status:Pe,hasFeedback:je,isFormItemInput:Ie,feedbackIcon:Me}=v.useContext(wm.$W),Te=(0,xm.v)(Pe,j),{suffixIcon:_e,removeIcon:Re,clearIcon:Be}=(0,$m.A)(Object.assign(Object.assign({},X),{multiple:$e,showSuffixIcon:Ee,hasFeedback:je,feedbackIcon:Me,prefixCls:le,componentName:"TreeSelect"})),Fe=!0===R?{clearIcon:Be}:R;let De;De=void 0!==w?w:(null==Q?void 0:Q("Select"))||v.createElement(pc.A,{componentName:"Select"});const ze=(0,Vt.A)(X,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon","style"]),Ne=v.useMemo(()=>void 0!==x?x:"rtl"===J?"bottomRight":"bottomLeft",[x,J]),Le=(0,yt.A)(e=>{var t;return null!==(t=null!=l?l:ue)&&void 0!==t?t:e}),He=v.useContext(ud.A),We=null!=c?c:He,Ue=b()(!s&&de,{[`${le}-lg`]:"large"===Le,[`${le}-sm`]:"small"===Le,[`${le}-rtl`]:"rtl"===J,[`${le}-${ye}`]:xe,[`${le}-in-form-item`]:Ie},(0,xm.L)(le,Te,je),he,h,p,re.root,null==q?void 0:q.root,be,pe,fe,ge),Ve=null!=A?A:oe,[Ge]=(0,nl.YK)("SelectLike",null==Ae?void 0:Ae.zIndex);return me(ve(v.createElement(yw.Ay,Object.assign({virtual:Z,disabled:We},ze,{dropdownMatchSelectWidth:Oe,builtinPlacements:(0,Sm.A)(M,te),ref:t,prefixCls:le,className:Ue,style:Object.assign(Object.assign({},null==G?void 0:G.root),u),listHeight:g,listItemHeight:ae,treeCheckable:f?v.createElement("span",{className:`${le}-tree-checkbox-inner`}):f,treeLine:!!S,suffixIcon:_e,multiple:$e,placement:Ne,removeIcon:Re,allowClear:Fe,switcherIcon:e=>v.createElement(Id,{prefixCls:ce,switcherIcon:Ve,treeNodeProps:e,showLine:S}),showTreeIcon:E,notFoundContent:De,getPopupContainer:C||K,treeMotion:null,dropdownClassName:we,dropdownStyle:Object.assign(Object.assign({},Ae),{zIndex:Ge}),dropdownRender:Se,onDropdownVisibleChange:Ce,choiceTransitionName:(0,xt.b)(se,"",P),transitionName:(0,xt.b)(se,"slide-up",O),treeExpandAction:I,tagRender:$e?H:void 0,maxCount:ke,showCheckedStrategy:U,treeCheckStrictly:V}))))},Sw=v.forwardRef(Aw),Cw=(0,il.A)(Sw,"dropdownAlign",e=>(0,Vt.A)(e,["visible"]));Sw.TreeNode=yw.nF,Sw.SHOW_ALL=yw.u6,Sw.SHOW_PARENT=yw.FA,Sw.SHOW_CHILD=yw.vj,Sw._InternalPanelDoNotUseOrYouWillBeFired=Cw;const $w=Sw;var kw=["radioType","renderFormItem","mode","light","label","render"],Ew=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],Ow=function(e,t){e.radioType;var n=e.renderFormItem,r=e.mode,o=e.light,i=e.label,a=e.render,l=(0,u.A)(e,kw),c=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-field-tree-select"),h=(0,v.useRef)(null),p=(0,v.useState)(!1),m=(0,s.A)(p,2),g=m[0],y=m[1],x=l.fieldProps,w=x.onSearch,A=x.onClear,S=x.onChange,C=x.onBlur,$=x.showSearch,k=x.autoClearSearchValue,E=(x.treeData,x.fetchDataOnSearch),O=x.searchValue,P=(0,u.A)(x,Ew),j=Ze(),I=og((0,d.A)((0,d.A)({},l),{},{defaultKeyWords:O})),M=(0,s.A)(I,3),T=M[0],_=M[1],R=M[2],B=(0,Ut.A)(void 0,{onChange:w,value:O}),F=(0,s.A)(B,2),D=F[0],z=F[1];(0,v.useImperativeHandle)(t,function(){return(0,d.A)((0,d.A)({},h.current||{}),{},{fetchData:function(e){return R(e)}})});var N=(0,v.useMemo)(function(){if("read"===r){var e=(null==P?void 0:P.fieldNames)||{},t=e.value,n=void 0===t?"value":t,o=e.label,i=void 0===o?"label":o,a=e.children,s=void 0===a?"children":a,l=new Map;return function e(t){if(null==t||!t.length)return l;for(var r=t.length,o=0;oi?i:r)},[null==k?void 0:k.maxWidth,null==k?void 0:k.minWidth,y]),se=(0,v.useCallback)(function(){document.removeEventListener("mousemove",ae),document.removeEventListener("mouseup",se)},[ae]);return j((0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsxs)(Cp,(0,d.A)((0,d.A)((0,d.A)({title:g,width:V},h),ie),{},{afterOpenChange:function(e){var t;e||ee(),null==h||null===(t=h.afterOpenChange)||void 0===t||t.call(h,e)},onClose:function(e){var t;m&&F||(Y(!1),null==h||null===(t=h.onClose)||void 0===t||t.call(h,e))},footer:!1!==C.submitter&&(0,Ue.jsx)("div",{ref:J,style:{display:"flex",justifyContent:"flex-end"}}),children:[x?(0,Ue.jsx)("div",{className:b()(M("sidebar-dragger"),I,(0,l.A)((0,l.A)({},M("sidebar-dragger-min-disabled"),V===(null==k?void 0:k.minWidth)),M("sidebar-dragger-max-disabled"),V===(null==k?void 0:k.maxWidth))),onMouseDown:function(e){var t;null==k||null===(t=k.onResize)||void 0===t||t.call(k),e.stopPropagation(),e.preventDefault(),document.addEventListener("mousemove",ae),document.addEventListener("mouseup",se),H(!0)}}):null,(0,Ue.jsx)(Ue.Fragment,{children:(0,Ue.jsx)(sa,(0,d.A)((0,d.A)({formComponentType:"DrawerForm",layout:"vertical"},C),{},{formRef:Z,onInit:function(e,t){var n;C.formRef&&(C.formRef.current=t),null==C||null===(n=C.onInit)||void 0===n||n.call(C,e,t),Z.current=t},submitter:ne,onFinish:function(){var e=(0,i.A)((0,o.A)().mark(function e(t){var n;return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oe(t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),contentRender:re,children:r}))})]})),te]}))},QueryFilter:function(e){var t,n=e.collapsed,r=e.layout,o=e.defaultCollapsed,i=void 0===o||o,a=e.defaultColsNumber,l=e.defaultFormItemsNumber,c=e.span,h=e.searchGutter,p=void 0===h?24:h,m=(e.searchText,e.resetText,e.optionRender),g=e.collapseRender,y=e.onReset,x=e.onCollapse,w=e.labelWidth,A=void 0===w?"80":w,S=e.style,C=e.split,$=e.preserve,k=void 0===$||$,E=e.ignoreRules,O=e.showHiddenNum,P=void 0!==O&&O,j=e.submitterColSpanProps,I=(0,u.A)(e,Hp),M=(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls("pro-query-filter"),T=(t=M,at("QueryFilter",function(e){var n=(0,d.A)((0,d.A)({},e),{},{componentCls:".".concat(t)});return[Np(n)]})),_=T.wrapSSR,R=T.hashId,B=(0,Ut.A)(function(){return"number"==typeof(null==S?void 0:S.width)?null==S?void 0:S.width:Gp}),F=(0,s.A)(B,2),D=F[0],z=F[1],N=(0,v.useMemo)(function(){return function(e,t,n){if(n&&"number"==typeof n)return{span:n,layout:e};var r=((n?["xs","sm","md","lg","xl","xxl"].map(function(e){return[Wp[e],24/n[e],"horizontal"]}):Up[e||"default"])||Up.default).find(function(e){return te?e:a}return Math.max(1,24/N.span-1)},[a,l,N.span]),H=(0,v.useMemo)(function(){if(A&&"vertical"!==N.layout&&"auto"!==A)return{labelCol:{flex:"0 0 ".concat(A,"px")},wrapperCol:{style:{maxWidth:"calc(100% - ".concat(A,"px)")}},style:{flexWrap:"nowrap"}}},[N.layout,A]);return _((0,Ue.jsx)(Bp.A,{onResize:function(e){D!==e.width&&e.width>17&&z(e.width)},children:(0,Ue.jsx)("div",{className:"".concat(M,"-container ").concat(R),style:e.containerStyle,children:(0,Ue.jsx)(sa,(0,d.A)((0,d.A)({isKeyPressSubmit:!0,preserve:k},I),{},{className:b()(M,R,I.className),onReset:y,style:S,layout:N.layout,fieldProps:{style:{width:"100%"}},formItemProps:H,groupProps:{titleStyle:{display:"inline-block",marginInlineEnd:16}},contentRender:function(t,r,o){return(0,Ue.jsx)(Vp,{spanSize:N,collapsed:n,form:o,submitterColSpanProps:j,collapseRender:g,defaultCollapsed:i,onCollapse:x,optionRender:m,submitter:r,items:t,split:C,baseClassName:M,resetText:e.resetText,searchText:e.searchText,searchGutter:p,preserve:k,ignoreRules:E,showLength:L,showHiddenNum:P})}}))})},"resize-observer"))},LightFilter:function(e){var t=e.size,n=e.collapse,r=e.collapseLabel,o=e.initialValues,i=e.onValuesChange,a=e.form,l=e.placement,c=e.formRef,h=e.bordered,p=(e.ignoreRules,e.footerRender),m=(0,u.A)(e,Mp),g=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-form"),b=(0,v.useState)(function(){return(0,d.A)({},o)}),y=(0,s.A)(b,2),x=y[0],w=y[1],A=(0,v.useRef)();return(0,v.useImperativeHandle)(c,function(){return A.current},[A.current]),(0,Ue.jsx)(sa,(0,d.A)((0,d.A)({size:t,initialValues:o,form:a,contentRender:function(e){return(0,Ue.jsx)(Tp,{prefixCls:g,items:null==e?void 0:e.flatMap(function(e){var t;return e&&null!=e&&e.type&&"ProForm-Group"===(null==e||null===(t=e.type)||void 0===t?void 0:t.displayName)?e.props.children:e}),size:t,bordered:h,collapse:n,collapseLabel:r,placement:l,values:x||{},footerRender:p,onValuesChange:function(e){var t,n,r=(0,d.A)((0,d.A)({},x),e);w(r),null===(t=A.current)||void 0===t||t.setFieldsValue(r),null===(n=A.current)||void 0===n||n.submit(),i&&i(e,r)}})},formRef:A,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},(0,Vt.A)(m,["labelWidth"])),{},{onValuesChange:function(e,t){var n;w(t),null==i||i(e,t),null===(n=A.current)||void 0===n||n.submit()}}))},StepForm:Sf.StepForm,StepsForm:$f,ModalForm:function(e){var t,n,r=e.children,a=e.trigger,l=e.onVisibleChange,c=e.onOpenChange,h=e.modalProps,p=e.onFinish,m=e.submitTimeout,g=e.title,b=e.width,y=e.visible,x=e.open,w=(0,u.A)(e,Rp);(0,en.g9)(!w.footer||!(null!=h&&h.footer),"ModalForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");var A=(0,v.useContext)(f.Ay.ConfigContext),S=(0,v.useState)([]),C=(0,s.A)(S,2)[1],$=(0,v.useState)(!1),k=(0,s.A)($,2),E=k[0],O=k[1],P=(0,Ut.A)(!!y,{value:x||y,onChange:c||l}),j=(0,s.A)(P,2),I=j[0],M=j[1],T=(0,v.useRef)(null),_=(0,v.useCallback)(function(e){null===T.current&&e&&C([]),T.current=e},[]),R=(0,v.useRef)(),B=(0,v.useCallback)(function(){var e,t,n,r=null!==(e=null!==(t=w.form)&&void 0!==t?t:null===(n=w.formRef)||void 0===n?void 0:n.current)&&void 0!==e?e:R.current;r&&null!=h&&h.destroyOnClose&&r.resetFields()},[null==h?void 0:h.destroyOnClose,w.form,w.formRef]);(0,v.useImperativeHandle)(w.formRef,function(){return R.current},[R.current]),(0,v.useEffect)(function(){(x||y)&&(null==c||c(!0),null==l||l(!0))},[y,x]);var F=(0,v.useMemo)(function(){return a?v.cloneElement(a,(0,d.A)((0,d.A)({key:"trigger"},a.props),{},{onClick:(e=(0,i.A)((0,o.A)().mark(function e(t){var n,r;return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:M(!I),null===(n=a.props)||void 0===n||null===(r=n.onClick)||void 0===r||r.call(n,t);case 2:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)})})):null;var e},[M,a,I]),D=(0,v.useMemo)(function(){var e,t,n,r,o,i,a;return!1!==w.submitter&&(0,yi.h)({searchConfig:{submitText:null!==(e=null!==(t=null==h?void 0:h.okText)&&void 0!==t?t:null===(n=A.locale)||void 0===n||null===(n=n.Modal)||void 0===n?void 0:n.okText)&&void 0!==e?e:"确认",resetText:null!==(r=null!==(o=null==h?void 0:h.cancelText)&&void 0!==o?o:null===(i=A.locale)||void 0===i||null===(i=i.Modal)||void 0===i?void 0:i.cancelText)&&void 0!==r?r:"取消"},resetButtonProps:{preventDefault:!0,disabled:m?E:void 0,onClick:function(e){var t;M(!1),null==h||null===(t=h.onCancel)||void 0===t||t.call(h,e)}}},null!==(a=w.submitter)&&void 0!==a?a:{})},[null===(t=A.locale)||void 0===t||null===(t=t.Modal)||void 0===t?void 0:t.cancelText,null===(n=A.locale)||void 0===n||null===(n=n.Modal)||void 0===n?void 0:n.okText,h,w.submitter,M,E,m]),z=(0,v.useCallback)(function(e,t){return(0,Ue.jsxs)(Ue.Fragment,{children:[e,T.current&&t?(0,Ue.jsx)(v.Fragment,{children:(0,$p.createPortal)(t,T.current)},"submitter"):t]})},[]),N=(0,v.useCallback)(function(){var e=(0,i.A)((0,o.A)().mark(function e(t){var n,r,i;return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=null==p?void 0:p(t),m&&n instanceof Promise&&(O(!0),r=setTimeout(function(){return O(!1)},m),n.finally(function(){clearTimeout(r),O(!1)})),e.next=4,n;case 4:return(i=e.sent)&&M(!1),e.abrupt("return",i);case 7:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),[p,M,m]),L=Ga(I);return(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)(_p.A,(0,d.A)((0,d.A)((0,d.A)({title:g,width:b||800},h),L),{},{onCancel:function(e){var t;m&&E||(M(!1),null==h||null===(t=h.onCancel)||void 0===t||t.call(h,e))},afterClose:function(){var e;B(),I&&M(!1),null==h||null===(e=h.afterClose)||void 0===e||e.call(h)},footer:!1!==w.submitter?(0,Ue.jsx)("div",{ref:_,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,Ue.jsx)(sa,(0,d.A)((0,d.A)({formComponentType:"ModalForm",layout:"vertical"},w),{},{onInit:function(e,t){var n;w.formRef&&(w.formRef.current=t),null==w||null===(n=w.onInit)||void 0===n||n.call(w,e,t),R.current=t},formRef:R,submitter:D,onFinish:function(){var e=(0,i.A)((0,o.A)().mark(function e(t){var n;return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N(t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),contentRender:z,children:r}))})),F]})},Embed:kf,Form:ds};const vA=function(e){var t=e.columns,n=e.layoutType,r=void 0===n?"Form":n,o=e.type,i=void 0===o?"form":o,a=e.action,l=e.shouldUpdate,c=void 0===l?function(e,t){return Fs(e)!==Fs(t)}:l,h=e.formRef,p=(0,u.A)(e,gA),f=bA[r]||ds,m=yn.A.useForm(),g=(0,s.A)(m,1)[0],b=yn.A.useFormInstance(),y=(0,v.useState)([]),x=(0,s.A)(y,2)[1],w=(0,v.useState)(function(){return[]}),A=(0,s.A)(w,2),S=A[0],C=A[1],$=op(e.form||b||g),k=(0,v.useRef)(),E=ip(e),O=wn(function(e){return e.filter(function(e){return!(e.hideInForm&&"form"===i)}).sort(function(e,t){return t.order||e.order?(t.order||0)-(e.order||0):(t.index||0)-(e.index||0)}).map(function(e,t){var n=xn(e.title,e,"form",(0,Ue.jsx)(lt,{label:e.title,tooltip:e.tooltip||e.tip})),r=ba({title:n,label:n,name:e.name,valueType:xn(e.valueType,{}),key:e.key||e.dataIndex||t,columns:e.columns,valueEnum:e.valueEnum,dataIndex:e.dataIndex||e.key,initialValue:e.initialValue,width:e.width,index:e.index,readonly:e.readonly,colSize:e.colSize,colProps:e.colProps,rowProps:e.rowProps,className:e.className,tooltip:e.tooltip||e.tip,dependencies:e.dependencies,proFieldProps:e.proFieldProps,ignoreFormItem:e.ignoreFormItem,getFieldProps:e.fieldProps?function(){return xn(e.fieldProps,$.current,e)}:void 0,getFormItemProps:e.formItemProps?function(){return xn(e.formItemProps,$.current,e)}:void 0,render:e.render,renderFormItem:e.renderFormItem,renderText:e.renderText,request:e.request,params:e.params,transform:e.transform,convertValue:e.convertValue,debounceTime:e.debounceTime,defaultKeyWords:e.defaultKeyWords});return mA(r,{action:a,type:i,originItem:e,formRef:$,genItems:O})}).filter(function(e){return Boolean(e)})}),P=(0,v.useCallback)(function(e,t){var n=E.current.onValuesChange;(!0===c||"function"==typeof c&&c(t,k.current))&&C([]),k.current=t,null==n||n(e,t)},[E,c]),j=ga(function(){if($.current&&(!t.length||!Array.isArray(t[0])))return O(t)},[t,null==p?void 0:p.open,a,i,S]),I=ga(function(){return"StepsForm"===r?{forceUpdate:x,columns:t}:{}},[t,r]);return(0,v.useImperativeHandle)(h,function(){return $.current},[$.current]),(0,Ue.jsx)(f,(0,d.A)((0,d.A)((0,d.A)({},I),p),{},{onInit:function(e,t){var n;h&&(h.current=t),null==p||null===(n=p.onInit)||void 0===n||n.call(p,e,t),$.current=t},form:e.form||g,formRef:$,onValuesChange:P,children:j}))};var yA=function(e,t,n){return e||"LightFilter"!==n?e?{}:(0,Vt.A)((0,d.A)({labelWidth:t?null==t?void 0:t.labelWidth:void 0,defaultCollapsed:!0},t),["filterType"]):(0,Vt.A)((0,d.A)({},t),["labelWidth","defaultCollapsed","filterType"])},xA=function(e,t){return e?(0,Vt.A)(t,["ignoreRules"]):(0,d.A)({ignoreRules:!0},t)};const wA=function(e){var t,n,r=e.onSubmit,s=e.formRef,c=e.dateFormatter,u=void 0===c?"string":c,h=e.type,p=e.columns,m=e.action,g=e.ghost,y=e.manualRequest,x=e.onReset,w=e.submitButtonLoading,A=e.search,S=e.form,C=e.bordered,$=(0,v.useContext)(et).hashId,k="form"===h,E=function(){var e=(0,i.A)((0,o.A)().mark(function e(t,n){return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r&&r(t,n);case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),O=(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls,P=(0,v.useMemo)(function(){return p.filter(function(e){return e!==Qu.EXPAND_COLUMN&&e!==Qu.SELECTION_COLUMN&&((!e.hideInSearch&&!1!==e.search||"form"===h)&&("form"!==h||!e.hideInForm))}).map(function(e){var t,n=!e.valueType||["textarea","jsonCode","code"].includes(null==e?void 0:e.valueType)&&"table"===h?"text":null==e?void 0:e.valueType,r=(null==e?void 0:e.key)||(null==e||null===(t=e.dataIndex)||void 0===t?void 0:t.toString());return(0,d.A)((0,d.A)((0,d.A)({},e),{},{width:void 0},e.search&&"object"===(0,a.A)(e.search)?e.search:{}),{},{valueType:n,proFieldProps:(0,d.A)((0,d.A)({},e.proFieldProps),{},{proFieldKey:r?"table-field-".concat(r):void 0})})})},[p,h]),j=O("pro-table-search"),I=O("pro-table-form"),M=(0,v.useMemo)(function(){return function(e,t){return e||!1===t?"Form":"light"===(null==t?void 0:t.filterType)?"LightFilter":"QueryFilter"}(k,A)},[A,k]),T=(0,v.useMemo)(function(){return{submitter:{submitButtonProps:{loading:w}}}},[w]);return(0,Ue.jsx)("div",{className:b()($,(0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)((0,l.A)({},O("pro-card"),!0),"".concat(O("pro-card"),"-border"),!!C),"".concat(O("pro-card"),"-bordered"),!!C),"".concat(O("pro-card"),"-ghost"),!!g),j,!0),I,k),O("pro-table-search-".concat((t=M,n=t.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n.startsWith("-")&&(n=n.slice(1)),n))),!0),"".concat(j,"-ghost"),g),null==A?void 0:A.className,!1!==A&&(null==A?void 0:A.className))),children:(0,Ue.jsx)(vA,(0,d.A)((0,d.A)((0,d.A)((0,d.A)({layoutType:M,columns:P,type:h},T),yA(k,A,M)),xA(k,S||{})),{},{formRef:s,action:m,dateFormatter:u,onInit:function(e,t){if(s.current=t,"form"!==h){var n,r,o,i=null===(n=m.current)||void 0===n?void 0:n.pageInfo,a=e,l=a.current,c=void 0===l?null==i?void 0:i.current:l,u=a.pageSize,p=void 0===u?null==i?void 0:i.pageSize:u;if(null===(r=m.current)||void 0===r||null===(o=r.setPageInfo)||void 0===o||o.call(r,(0,d.A)((0,d.A)({},i),{},{current:parseInt(c,10),pageSize:parseInt(p,10)})),y)return;E(e,!0)}},onReset:function(e){null==x||x(e)},onFinish:function(e){E(e,!1)},initialValues:null==S?void 0:S.initialValues}))})};var AA=function(e){(0,Ls.A)(n,e);var t=(0,Hs.A)(n);function n(){var e;(0,Ds.A)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i{const t={};return[1,2,3,4,5].forEach(n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),t},qA=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},(0,$t.Y1)(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},XA=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:VA.bK[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),KA=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},YA=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),QA=(0,kt.OF)("Typography",e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},GA(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),XA(e)),qA(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},(0,$t.Y1)(e)),{marginInlineStart:e.marginXXS})}),KA(e)),YA(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),JA=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:s=!0,value:l,onSave:c,onCancel:d,onEnd:u,component:h,enterIcon:p=v.createElement(WA,null)}=e,f=v.useRef(null),m=v.useRef(!1),g=v.useRef(null),[y,x]=v.useState(l);v.useEffect(()=>{x(l)},[l]),v.useEffect(()=>{var e;if(null===(e=f.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=f.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}},[]);const w=()=>{c(y.trim())},[A,S,C]=QA(t),$=b()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===i,[`${t}-${h}`]:!!h},r,S,C);return A(v.createElement("div",{className:$,style:o},v.createElement(UA.A,{ref:f,maxLength:a,value:y,onChange:({target:e})=>{x(e.value.replace(/[\n\r]/g,""))},onKeyDown:({keyCode:e})=>{m.current||(g.current=e)},onKeyUp:({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:o})=>{g.current!==e||m.current||t||n||r||o||(e===ya.A.ENTER?(w(),null==u||u()):e===ya.A.ESC&&d())},onCompositionStart:()=>{m.current=!0},onCompositionEnd:()=>{m.current=!1},onBlur:()=>{w()},"aria-label":n,rows:1,autoSize:s}),null!==p?(0,wa.Ob)(p,{className:`${t}-edit-content-confirm`}):null))};var ZA=n(17965),eS=n.n(ZA);const tS=(e,t=!1)=>t&&null==e?[]:Array.isArray(e)?e:[e];var nS=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})};const rS=({copyConfig:e,children:t})=>{const[n,r]=v.useState(!1),[o,i]=v.useState(!1),a=v.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},l={};e.format&&(l.format=e.format),v.useEffect(()=>s,[]);return{copied:n,copyLoading:o,onClick:(0,tl.A)(n=>nS(void 0,void 0,void 0,function*(){var o;null==n||n.preventDefault(),null==n||n.stopPropagation(),i(!0);try{const c="function"==typeof e.text?yield e.text():e.text;eS()(c||tS(t,!0).join("")||"",l),i(!1),r(!0),s(),a.current=setTimeout(()=>{r(!1)},3e3),null===(o=e.onCopy)||void 0===o||o.call(e,n)}catch(e){throw i(!1),e}}))}};function oS(e,t){return v.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"==typeof e?e:null)]},[e])}const iS=e=>{const t=(0,v.useRef)(void 0);return(0,v.useEffect)(()=>{t.current=e}),t.current},aS=(e,t,n)=>(0,v.useMemo)(()=>!0===e?{title:null!=t?t:n}:(0,v.isValidElement)(e)?{title:e}:"object"==typeof e?Object.assign({title:null!=t?t:n},e):{title:e},[e,t,n]);var sS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:s,direction:l,style:c}=e,d=sS(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:u,direction:h,className:p,style:f}=(0,bt.TP)("typography"),m=null!=l?l:h,g=a?(0,pl.K4)(t,a):t,y=u("typography",n);const[x,w,A]=QA(y),S=b()(y,p,{[`${y}-rtl`]:"rtl"===m},o,i,w,A),C=Object.assign(Object.assign({},f),c);return x(v.createElement(r,Object.assign({className:S,style:C,ref:g},d),s))});const cS=lS;function dS(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function uS(e,t,n){return!0===e||void 0===e?t:e||n&&t}const hS=e=>["string","number"].includes(typeof e),pS=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:i,tabIndex:a,onCopy:s,loading:l})=>{const c=dS(o),d=dS(i),{copied:u,copy:h}=null!=n?n:{},p=t?u:h,f=uS(c[t?1:0],p),g="string"==typeof f?f:p;return v.createElement(m.A,{title:f},v.createElement("button",{type:"button",className:b()(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:s,"aria-label":g,tabIndex:a},t?uS(d[1],v.createElement(qp.A,null),!0):uS(d[0],l?v.createElement(qi.A,null):v.createElement(Di,null),!0)))},fS=v.forwardRef(({style:e,children:t},n)=>{const r=v.useRef(null);return v.useImperativeHandle(n,()=>({isExceed:()=>{const e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),v.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)});function mS(e,t){let n=0;const r=[];for(let o=0;ot){const e=t-n;return r.push(String(i).slice(0,e)),r}r.push(i),n=a}return e}const gS=0,bS=4,vS={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function yS(e){const{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:a,miscDeps:s,onEllipsis:l}=e,d=v.useMemo(()=>(0,At.A)(r),[r]),u=v.useMemo(()=>(e=>e.reduce((e,t)=>e+(hS(t)?String(t).length:1),0))(d),[r]),h=v.useMemo(()=>o(d,!1),[r]),[p,f]=v.useState(null),m=v.useRef(null),g=v.useRef(null),b=v.useRef(null),y=v.useRef(null),x=v.useRef(null),[w,A]=v.useState(!1),[S,C]=v.useState(gS),[$,k]=v.useState(0),[E,O]=v.useState(null);(0,vg.A)(()=>{C(t&&n&&u?1:gS)},[n,r,i,t,d]),(0,vg.A)(()=>{var e,t,n,r;if(1===S){C(2);const e=g.current&&getComputedStyle(g.current).whiteSpace;O(e)}else if(2===S){const o=!!(null===(e=b.current)||void 0===e?void 0:e.isExceed());C(o?3:bS),f(o?[0,u]:null),A(o);const a=(null===(t=b.current)||void 0===t?void 0:t.getHeight())||0,s=1===i?0:(null===(n=y.current)||void 0===n?void 0:n.getHeight())||0,c=(null===(r=x.current)||void 0===r?void 0:r.getHeight())||0,d=Math.max(a,s+c);k(d+1),l(o)}},[S]);const P=p?Math.ceil((p[0]+p[1])/2):0;(0,vg.A)(()=>{var e;const[t,n]=p||[0,0];if(t!==n){const r=((null===(e=m.current)||void 0===e?void 0:e.getHeight())||0)>$;let o=P;n-t===1&&(o=r?t:n),f(r?[t,o]:[o,n])}},[p,P]);const j=v.useMemo(()=>{if(!t)return o(d,!1);if(3!==S||!p||p[0]!==p[1]){const e=o(d,!1);return[bS,gS].includes(S)?e:v.createElement("span",{style:Object.assign(Object.assign({},vS),{WebkitLineClamp:i})},e)}return o(a?d:mS(d,p[0]),w)},[a,S,p,d].concat((0,c.A)(s))),I={width:n,margin:0,padding:0,whiteSpace:"nowrap"===E?"normal":"inherit"};return v.createElement(v.Fragment,null,j,2===S&&v.createElement(v.Fragment,null,v.createElement(fS,{style:Object.assign(Object.assign(Object.assign({},I),vS),{WebkitLineClamp:i}),ref:b},h),v.createElement(fS,{style:Object.assign(Object.assign(Object.assign({},I),vS),{WebkitLineClamp:i-1}),ref:y},h),v.createElement(fS,{style:Object.assign(Object.assign(Object.assign({},I),vS),{WebkitLineClamp:1}),ref:x},o([],!0))),3===S&&p&&p[0]!==p[1]&&v.createElement(fS,{style:Object.assign(Object.assign({},I),{top:400}),ref:m},o(mS(d,P),!0)),1===S&&v.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const xS=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>(null==r?void 0:r.title)&&e?v.createElement(m.A,Object.assign({open:!!t&&void 0},r),n):n;var wS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,className:o,style:i,type:a,disabled:s,children:l,ellipsis:d,editable:u,copyable:h,component:p,title:f}=e,g=wS(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:y,direction:x}=v.useContext(bt.QO),[w]=(0,bs.A)("Text"),A=v.useRef(null),S=v.useRef(null),C=y("typography",r),$=(0,Vt.A)(g,AS),[k,E]=oS(u),[O,P]=(0,Ut.A)(!1,{value:E.editing}),{triggerType:j=["icon"]}=E,I=e=>{var t;e&&(null===(t=E.onStart)||void 0===t||t.call(E)),P(e)},M=iS(O);(0,vg.A)(()=>{var e;!O&&M&&(null===(e=S.current)||void 0===e||e.focus())},[O]);const T=e=>{null==e||e.preventDefault(),I(!0)},_=e=>{var t;null===(t=E.onChange)||void 0===t||t.call(E,e),I(!1)},R=()=>{var e;null===(e=E.onCancel)||void 0===e||e.call(E),I(!1)},[B,F]=oS(h),{copied:D,copyLoading:z,onClick:N}=rS({copyConfig:F,children:l}),[L,H]=v.useState(!1),[W,U]=v.useState(!1),[V,G]=v.useState(!1),[q,X]=v.useState(!1),[K,Y]=v.useState(!0),[Q,J]=oS(d,{expandable:!1,symbol:e=>e?null==w?void 0:w.collapse:null==w?void 0:w.expand}),[Z,ee]=(0,Ut.A)(J.defaultExpanded||!1,{value:J.expanded}),te=Q&&(!Z||"collapsible"===J.expandable),{rows:ne=1}=J,re=v.useMemo(()=>te&&(void 0!==J.suffix||J.onEllipsis||J.expandable||k||B),[te,J,k,B]);(0,vg.A)(()=>{Q&&!re&&(H((0,NA.F)("webkitLineClamp")),U((0,NA.F)("textOverflow")))},[re,Q]);const[oe,ie]=v.useState(te),ae=v.useMemo(()=>!re&&(1===ne?W:L),[re,W,L]);(0,vg.A)(()=>{ie(ae&&te)},[ae,te]);const se=te&&(oe?q:V),le=te&&1===ne&&oe,ce=te&&ne>1&&oe,[de,ue]=v.useState(0),he=e=>{var t;G(e),V!==e&&(null===(t=J.onEllipsis)||void 0===t||t.call(J,e))};v.useEffect(()=>{const e=A.current;if(Q&&oe&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}(e);q!==t&&X(t)}},[Q,oe,l,ce,K,de]),v.useEffect(()=>{const e=A.current;if("undefined"==typeof IntersectionObserver||!e||!oe||!te)return;const t=new IntersectionObserver(()=>{Y(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[oe,te]);const pe=aS(J.tooltip,E.text,l),fe=v.useMemo(()=>{if(Q&&!oe)return[E.text,l,f,pe.title].find(hS)},[Q,oe,f,pe.title,se]);if(O)return v.createElement(JA,{value:null!==(n=E.text)&&void 0!==n?n:"string"==typeof l?l:"",onSave:_,onCancel:R,onEnd:E.onEnd,prefixCls:C,className:o,style:i,direction:x,component:p,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const me=()=>{const{expandable:e,symbol:t}=J;return e?v.createElement("button",{type:"button",key:"expand",className:`${C}-${Z?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;ee(t.expanded),null===(n=J.onExpand)||void 0===n||n.call(J,e,t)})(e,{expanded:!Z}),"aria-label":Z?w.collapse:null==w?void 0:w.expand},"function"==typeof t?t(Z):t):null},ge=()=>{if(!k)return;const{icon:e,tooltip:t,tabIndex:n}=E,r=(0,At.A)(t)[0]||(null==w?void 0:w.edit),o="string"==typeof r?r:"";return j.includes("icon")?v.createElement(m.A,{key:"edit",title:!1===t?"":r},v.createElement("button",{type:"button",ref:S,className:`${C}-edit`,onClick:T,"aria-label":o,tabIndex:n},e||v.createElement(zA,{role:"button"}))):null},be=e=>[e&&me(),ge(),B?v.createElement(pS,Object.assign({key:"copy"},F,{prefixCls:C,copied:D,locale:w,onCopy:N,loading:z,iconOnly:null==l})):null];return v.createElement(Bp.A,{onResize:({offsetWidth:e})=>{ue(e)},disabled:!te},n=>v.createElement(xS,{tooltipProps:pe,enableEllipsis:te,isEllipsis:se},v.createElement(cS,Object.assign({className:b()({[`${C}-${a}`]:a,[`${C}-disabled`]:s,[`${C}-ellipsis`]:Q,[`${C}-ellipsis-single-line`]:le,[`${C}-ellipsis-multiple-line`]:ce},o),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:ce?ne:void 0}),component:p,ref:(0,pl.K4)(n,A,t),direction:x,onClick:j.includes("text")?T:void 0,"aria-label":null==fe?void 0:fe.toString(),title:f},$),v.createElement(yS,{enableMeasure:te&&!oe,text:l,rows:ne,width:de,onEllipsis:he,expanded:Z,miscDeps:[D,Z,z,k,B,w].concat((0,c.A)(AS.map(t=>e[t])))},(t,n)=>function({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:i,italic:a},s){let l=s;function c(e,t){t&&(l=v.createElement(e,{},l))}return c("strong",o),c("u",n),c("del",r),c("code",t),c("mark",e),c("kbd",i),c("i",a),l}(e,v.createElement(v.Fragment,null,t.length>0&&n&&!Z&&fe?v.createElement("span",{key:"show-content","aria-hidden":!0},t):t,(e=>[e&&!Z&&v.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),J.suffix,be(e)])(n)))))))}),CS=SS;var $S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{ellipsis:n,rel:r,children:o,navigate:i}=e,a=$S(e,["ellipsis","rel","children","navigate"]);const s=Object.assign(Object.assign({},a),{rel:void 0===r&&"_blank"===a.target?"noopener noreferrer":r});return v.createElement(CS,Object.assign({},s,{ref:t,ellipsis:!!n,component:"a"}),o)}),ES=kS;var OS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=OS(e,["children"]);return v.createElement(CS,Object.assign({ref:t},r,{component:"div"}),n)});var jS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{ellipsis:n,children:r}=e,o=jS(e,["ellipsis","children"]),i=v.useMemo(()=>n&&"object"==typeof n?(0,Vt.A)(n,["expandable","rows"]):n,[n]);return v.createElement(CS,Object.assign({ref:t},o,{ellipsis:i,component:"span"}),r)},MS=v.forwardRef(IS);var TS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{level:n=1,children:r}=e,o=TS(e,["level","children"]);const i=_S.includes(n)?`h${n}`:"h1";return v.createElement(CS,Object.assign({ref:t},o,{component:i}),r)}),BS=cS;BS.Text=MS,BS.Link=ES,BS.Title=RS,BS.Paragraph=PS;const FS=BS;var DS=function(e){return(0,l.A)((0,l.A)((0,l.A)({},e.componentCls,{width:"auto","&-title":{display:"flex",alignItems:"center",justifyContent:"space-between",height:"32px"},"&-overlay":(0,l.A)((0,l.A)((0,l.A)((0,l.A)({},"".concat(e.antCls,"-popover-inner-content"),{width:"200px",paddingBlock:0,paddingInline:0,paddingBlockEnd:8}),"".concat(e.antCls,"-tree-node-content-wrapper:hover"),{backgroundColor:"transparent"}),"".concat(e.antCls,"-tree-draggable-icon"),{cursor:"grab"}),"".concat(e.antCls,"-tree-treenode"),(0,l.A)((0,l.A)({alignItems:"center","&:hover":(0,l.A)({},"".concat(e.componentCls,"-list-item-option"),{display:"block"})},"".concat(e.antCls,"-tree-checkbox"),{marginInlineEnd:"4px"}),"".concat(e.antCls,"-tree-title"),{width:"100%"}))}),"".concat(e.componentCls,"-action-rest-button"),{color:e.colorPrimary}),"".concat(e.componentCls,"-list"),(0,l.A)((0,l.A)((0,l.A)({display:"flex",flexDirection:"column",width:"100%",paddingBlockStart:8},"&".concat(e.componentCls,"-list-group"),{paddingBlockStart:0}),"&-title",{marginBlockStart:"6px",marginBlockEnd:"6px",paddingInlineStart:"24px",color:e.colorTextSecondary,fontSize:"12px"}),"&-item",{display:"flex",alignItems:"center",maxHeight:24,justifyContent:"space-between","&-title":{flex:1,maxWidth:80,textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"},"&-option":{display:"none",float:"right",cursor:"pointer","> span":{"> span.anticon":{color:e.colorPrimary}},"> span + span":{marginInlineStart:4}}}))};var zS=["key","dataIndex","children"],NS=["disabled"],LS=function(e){var t=e.title,n=e.show,r=e.children,o=e.columnKey,i=e.fixed,a=(0,v.useContext)(Zh),s=a.columnsMap,c=a.setColumnsMap;return n?(0,Ue.jsx)(m.A,{title:t,children:(0,Ue.jsx)("span",{onClick:function(e){e.stopPropagation(),e.preventDefault();var t=s[o]||{},n=(0,d.A)((0,d.A)({},s),{},(0,l.A)({},o,(0,d.A)((0,d.A)({},t),{},{fixed:i})));c(n)},children:r})}):null},HS=function(e){var t=e.columnKey,n=e.isLeaf,r=e.title,o=e.className,i=e.fixed,a=e.showListItemOption,s=Ze(),l=(0,v.useContext)(et).hashId,c=(0,Ue.jsxs)("span",{className:"".concat(o,"-list-item-option ").concat(l).trim(),children:[(0,Ue.jsx)(LS,{columnKey:t,fixed:"left",title:s.getMessage("tableToolBar.leftPin","固定在列首"),show:"left"!==i,children:(0,Ue.jsx)(EA,{})}),(0,Ue.jsx)(LS,{columnKey:t,fixed:void 0,title:s.getMessage("tableToolBar.noPin","不固定"),show:!!i,children:(0,Ue.jsx)(jA,{})}),(0,Ue.jsx)(LS,{columnKey:t,fixed:"right",title:s.getMessage("tableToolBar.rightPin","固定在列尾"),show:"right"!==i,children:(0,Ue.jsx)(TA,{})})]});return(0,Ue.jsxs)("span",{className:"".concat(o,"-list-item ").concat(l).trim(),children:[(0,Ue.jsx)("div",{className:"".concat(o,"-list-item-title ").concat(l).trim(),children:r}),a&&!n?c:null]},t)},WS=function(e){var t,n,r,o=e.list,i=e.draggable,a=e.checkable,s=e.showListItemOption,l=e.className,h=e.showTitle,p=void 0===h||h,f=e.title,m=e.listHeight,g=void 0===m?280:m,b=(0,v.useContext)(et).hashId,y=(0,v.useContext)(Zh),x=y.columnsMap,w=y.setColumnsMap,A=y.sortKeyColumns,S=y.setSortKeyColumns,C=o&&o.length>0,$=(0,v.useMemo)(function(){if(!C)return{};var e=[],t=new Map;return{list:function n(r,o){return r.map(function(r){var i,a=r.key,s=(r.dataIndex,r.children),l=(0,u.A)(r,zS),c=Qh(a,[null==o?void 0:o.columnKey,l.index].filter(Boolean).join("-")),h=x[c||"null"]||{show:!0};!1===h.show||s||e.push(c);var p,f=(0,d.A)((0,d.A)({key:c},(0,Vt.A)(l,["className"])),{},{selectable:!1,disabled:!0===h.disable,disableCheckbox:"boolean"==typeof h.disable?h.disable:null===(i=h.disable)||void 0===i?void 0:i.checkbox,isLeaf:!!o||void 0});s&&(f.children=n(s,(0,d.A)((0,d.A)({},h),{},{columnKey:c})),null!==(p=f.children)&&void 0!==p&&p.every(function(t){return null==e?void 0:e.includes(t.key)})&&e.push(c));return t.set(a,f),f})}(o),keys:e,map:t}},[x,o,C]),k=wn(function(e,t,n){var r=(0,d.A)({},x),o=(0,c.A)(A),i=o.findIndex(function(t){return t===e}),a=o.findIndex(function(e){return e===t}),s=n>=i;if(!(i<0)){var l=o[i];o.splice(i,1),0===n?o.unshift(l):o.splice(s?a:a+1,0,l),o.forEach(function(e,t){r[e]=(0,d.A)((0,d.A)({},r[e]||{}),{},{order:t})}),w(r),S(o)}}),E=wn(function(e){var t=(0,d.A)({},x);!function n(r){var o,i,a=(0,d.A)({},t[r]);(a.show=e.checked,null!==(o=$.map)&&void 0!==o&&null!==(o=o.get(r))&&void 0!==o&&o.children)&&(null===(i=$.map.get(r))||void 0===i||null===(i=i.children)||void 0===i||i.forEach(function(e){return n(e.key)}));t[r]=a}(e.node.key),w((0,d.A)({},t))});if(!C)return null;var O=(0,Ue.jsx)(Wd,{itemHeight:24,draggable:i&&!(null===(t=$.list)||void 0===t||!t.length)&&(null===(n=$.list)||void 0===n?void 0:n.length)>1,checkable:a,onDrop:function(e){var t=e.node.key,n=e.dragNode.key,r=e.dropPosition,o=e.dropToGap;k(n,t,-1!==r&&o?r:r+1)},blockNode:!0,onCheck:function(e,t){return E(t)},checkedKeys:$.keys,showLine:!1,titleRender:function(e){var t=(0,d.A)((0,d.A)({},e),{},{children:void 0});if(!t.title)return null;var n=xn(t.title,t),r=(0,Ue.jsx)(FS.Text,{style:{width:80},ellipsis:{tooltip:n},children:n});return(0,Ue.jsx)(HS,(0,d.A)((0,d.A)({className:l},(0,Vt.A)(t,["key"])),{},{showListItemOption:s,title:r,columnKey:t.key}))},height:g,treeData:null===(r=$.list)||void 0===r?void 0:r.map(function(e){e.disabled;return(0,u.A)(e,NS)})});return(0,Ue.jsxs)(Ue.Fragment,{children:[p&&(0,Ue.jsx)("span",{className:"".concat(l,"-list-title ").concat(b).trim(),children:f}),O]})},US=function(e){var t=e.localColumns,n=e.className,r=e.draggable,o=e.checkable,i=e.showListItemOption,a=e.listsHeight,s=(0,v.useContext)(et).hashId,c=[],d=[],u=[],h=Ze();t.forEach(function(e){if(!e.hideInSetting){var t=e.fixed;"left"!==t?"right"!==t?u.push(e):c.push(e):d.push(e)}});var p=c&&c.length>0,f=d&&d.length>0;return(0,Ue.jsxs)("div",{className:b()("".concat(n,"-list"),s,(0,l.A)({},"".concat(n,"-list-group"),p||f)),children:[(0,Ue.jsx)(WS,{title:h.getMessage("tableToolBar.leftFixedTitle","固定在左侧"),list:d,draggable:r,checkable:o,showListItemOption:i,className:n,listHeight:a}),(0,Ue.jsx)(WS,{list:u,draggable:r,checkable:o,showListItemOption:i,title:h.getMessage("tableToolBar.noFixedTitle","不固定"),showTitle:f||p,className:n,listHeight:a}),(0,Ue.jsx)(WS,{title:h.getMessage("tableToolBar.rightFixedTitle","固定在右侧"),list:c,draggable:r,checkable:o,showListItemOption:i,className:n,listHeight:a})]})};const VS=function(e){var t,n,r,o,i=(0,v.useRef)(null),a=(0,v.useContext)(Zh),s=e.columns,l=e.checkedReset,c=void 0===l||l,u=a.columnsMap,h=a.setColumnsMap,p=a.clearPersistenceStorage;(0,v.useEffect)(function(){var e,t;null!==(e=a.propsRef.current)&&void 0!==e&&null!==(e=e.columnsState)&&void 0!==e&&e.value&&(i.current=JSON.parse(JSON.stringify((null===(t=a.propsRef.current)||void 0===t||null===(t=t.columnsState)||void 0===t?void 0:t.value)||{})))},[]);var g,b=wn(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};!function n(r){r.forEach(function(r){var o,i,a=r.key,s=r.fixed,l=r.index,c=r.children,d=r.disable,h=Qh(a,l);h&&(t[h]={show:d?null===(o=u[h])||void 0===o?void 0:o.show:e,fixed:s,disable:d,order:null===(i=u[h])||void 0===i?void 0:i.order});c&&n(c)})}(s),h(t)}),y=wn(function(e){e.target.checked?b():b(!1)}),x=wn(function(){var e;null==p||p(),h((null===(e=a.propsRef.current)||void 0===e||null===(e=e.columnsState)||void 0===e?void 0:e.defaultValue)||i.current||a.defaultColumnKeyMap)}),w=Object.values(u).filter(function(e){return!e||!1===e.show}),A=w.length>0&&w.length!==s.length,S=Ze(),C=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)("pro-table-column-setting"),$=(g=C,at("ColumnSetting",function(e){var t=(0,d.A)((0,d.A)({},e),{},{componentCls:".".concat(g)});return[DS(t)]})),k=$.wrapSSR,E=$.hashId;return k((0,Ue.jsx)(Ba,{arrow:!1,title:(0,Ue.jsxs)("div",{className:"".concat(C,"-title ").concat(E).trim(),children:[!1===e.checkable?(0,Ue.jsx)("div",{}):(0,Ue.jsx)(Js.A,{indeterminate:A,checked:0===w.length&&w.length!==s.length,onChange:function(e){y(e)},children:S.getMessage("tableToolBar.columnDisplay","列展示")}),c?(0,Ue.jsx)("a",{onClick:x,className:"".concat(C,"-action-rest-button ").concat(E).trim(),children:S.getMessage("tableToolBar.reset","重置")}):null,null!=e&&e.extra?(0,Ue.jsx)(la.A,{size:12,align:"center",children:e.extra}):null]}),overlayClassName:"".concat(C,"-overlay ").concat(E).trim(),trigger:"click",placement:"bottomRight",content:(0,Ue.jsx)(US,{checkable:null===(t=e.checkable)||void 0===t||t,draggable:null===(n=e.draggable)||void 0===n||n,showListItemOption:null===(r=e.showListItemOption)||void 0===r||r,className:C,localColumns:s,listsHeight:e.listsHeight}),children:e.children||(0,Ue.jsx)(m.A,{title:S.getMessage("tableToolBar.columnSetting","列设置"),children:null!==(o=e.settingIcon)&&void 0!==o?o:(0,Ue.jsx)(BA,{})})}))};var GS=function(e){var t=Ua(Va(),"4.24.0")>-1?{menu:e}:{overlay:(0,Ue.jsx)(zl,(0,d.A)({},e))};return ba(t)};const qS=function(e){var t=(0,v.useContext)(et).hashId,n=e.items,r=void 0===n?[]:n,o=e.type,i=void 0===o?"inline":o,a=e.prefixCls,l=e.activeKey,c=e.defaultActiveKey,u=(0,Ut.A)(l||c,{value:l,onChange:e.onChange}),h=(0,s.A)(u,2),p=h[0],f=h[1];if(r.length<1)return null;var m=r.find(function(e){return e.key===p})||r[0];if("inline"===i)return(0,Ue.jsx)("div",{className:b()("".concat(a,"-menu"),"".concat(a,"-inline-menu"),t),children:r.map(function(e,n){return(0,Ue.jsx)("div",{onClick:function(){f(e.key)},className:b()("".concat(a,"-inline-menu-item"),m.key===e.key?"".concat(a,"-inline-menu-item-active"):void 0,t),children:e.label},e.key||n)})});if("tab"===i)return(0,Ue.jsx)(Ht,{items:r.map(function(e){var t;return(0,d.A)((0,d.A)({},e),{},{key:null===(t=e.key)||void 0===t?void 0:t.toString()})}),activeKey:m.key,onTabClick:function(e){return f(e)},children:Ua(Zt.A,"4.23.0")<0?null==r?void 0:r.map(function(e,t){return(0,v.createElement)(Ht.TabPane,(0,d.A)((0,d.A)({},e),{},{key:e.key||t,tab:e.label}))}):null});var g=GS({selectedKeys:[m.key],onClick:function(e){f(e.key)},items:r.map(function(e,t){return{key:e.key||t,disabled:e.disabled,label:e.label}})});return(0,Ue.jsx)("div",{className:b()("".concat(a,"-menu"),"".concat(a,"-dropdownmenu")),children:(0,Ue.jsx)(Zl,(0,d.A)((0,d.A)({trigger:["click"]},g),{},{children:(0,Ue.jsxs)(la.A,{className:"".concat(a,"-dropdownmenu-label"),children:[m.label,(0,Ue.jsx)(Ya.A,{})]})}))})};var XS=function(e){return(0,l.A)({},e.componentCls,(0,l.A)((0,l.A)((0,l.A)({lineHeight:"1","&-container":{display:"flex",justifyContent:"space-between",paddingBlock:e.padding,paddingInline:0,"&-mobile":{flexDirection:"column"}},"&-title":{display:"flex",alignItems:"center",justifyContent:"flex-start",color:e.colorTextHeading,fontWeight:"500",fontSize:e.fontSizeLG},"&-search:not(:last-child)":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"&-setting-item":{marginBlock:0,marginInline:4,color:e.colorIconHover,fontSize:e.fontSizeLG,cursor:"pointer","> span":{display:"block",width:"100%",height:"100%"},"&:hover":{color:e.colorPrimary}},"&-left":(0,l.A)((0,l.A)({display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.marginXS,justifyContent:"flex-start",maxWidth:"calc(100% - 200px)"},"".concat(e.antCls,"-tabs"),{width:"100%"}),"&-has-tabs",{overflow:"hidden"}),"&-right":{flex:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-end",gap:e.marginXS},"&-extra-line":{marginBlockEnd:e.margin},"&-setting-items":{display:"flex",gap:e.marginXS,lineHeight:"32px",alignItems:"center"},"&-filter":(0,l.A)({"&:not(:last-child)":{marginInlineEnd:e.margin},display:"flex",alignItems:"center"},"div$".concat(e.antCls,"-pro-table-search"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0}),"&-inline-menu-item":{display:"inline-block",marginInlineEnd:e.marginLG,cursor:"pointer",opacity:"0.75","&-active":{fontWeight:"bold",opacity:"1"}}},"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),(0,l.A)({marginBlockEnd:0,"&::before":{borderBlockEnd:0}},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:0,"${token.antCls}-tabs-tab":{paddingBlockStart:0}})),"&-dropdownmenu-label",{fontWeight:"bold",fontSize:e.fontSizeIcon,textAlign:"center",cursor:"pointer"}),"@media (max-width: 768px)",(0,l.A)({},e.componentCls,{"&-container":{display:"flex",flexWrap:"wrap",flexDirection:"column"},"&-left":{marginBlockEnd:"16px",maxWidth:"100%"}})))};var KS=function(e){var t,n=e.prefixCls,r=e.tabs,o=e.multipleLine,i=e.filtersNode;return o?(0,Ue.jsx)("div",{className:"".concat(n,"-extra-line"),children:null!=r&&r.items&&null!=r&&r.items.length?(0,Ue.jsx)(Ht,{style:{width:"100%"},defaultActiveKey:r.defaultActiveKey,activeKey:r.activeKey,items:r.items.map(function(e,t){var n;return(0,d.A)((0,d.A)({label:e.tab},e),{},{key:(null===(n=e.key)||void 0===n?void 0:n.toString())||(null==t?void 0:t.toString())})}),onChange:r.onChange,tabBarExtraContent:i,children:null===(t=r.items)||void 0===t?void 0:t.map(function(e,t){return Ua(Zt.A,"4.23.0")<0?(0,v.createElement)(Ht.TabPane,(0,d.A)((0,d.A)({},e),{},{key:e.key||t,tab:e.tab})):null})}):i}):null};const YS=function(e){var t=e.prefixCls,n=e.title,r=e.subTitle,a=e.tooltip,c=e.className,u=e.style,h=e.search,p=e.onSearch,g=e.multipleLine,y=void 0!==g&&g,x=e.filter,w=e.actions,A=void 0===w?[]:w,S=e.settings,C=void 0===S?[]:S,$=e.tabs,k=e.menu,E=(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls,O=rt.useToken().token,P=E("pro-table-list-toolbar",t),j=function(e){return at("ProTableListToolBar",function(t){var n=(0,d.A)((0,d.A)({},t),{},{componentCls:".".concat(e)});return[XS(n)]})}(P),I=j.wrapSSR,M=j.hashId,T=Ze(),_=(0,v.useState)(!1),R=(0,s.A)(_,2),B=R[0],F=R[1],D=T.getMessage("tableForm.inputPlaceholder","请输入"),z=(0,v.useMemo)(function(){return h?v.isValidElement(h)?h:(0,Ue.jsx)(Um.A.Search,(0,d.A)((0,d.A)({style:{width:200},placeholder:D},h),{},{onSearch:(0,i.A)((0,o.A)().mark(function e(){var t,n,r,i,a,s=arguments;return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(r=s.length,i=new Array(r),a=0;aa":{fontSize:e.fontSize}}),"".concat(e.antCls,"-table").concat(e.antCls,"-table-tbody").concat(e.antCls,"-table-wrapper:only-child").concat(e.antCls,"-table"),{marginBlock:0,marginInline:0}),"".concat(e.antCls,"-table").concat(e.antCls,"-table-middle ").concat(e.componentCls),(0,l.A)({marginBlock:0,marginInline:-8},"".concat(e.proComponentsCls,"-card"),{backgroundColor:"initial"})),"& &-search",(0,l.A)((0,l.A)((0,l.A)((0,l.A)({marginBlockEnd:"16px",background:e.colorBgContainer,"&-ghost":{background:"transparent"}},"&".concat(e.componentCls,"-form"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:16,overflow:"unset"}),"&-light-filter",{marginBlockEnd:0,paddingBlock:0,paddingInline:0}),"&-form-option",(0,l.A)((0,l.A)((0,l.A)({},"".concat(e.antCls,"-form-item"),{}),"".concat(e.antCls,"-form-item-label"),{}),"".concat(e.antCls,"-form-item-control-input"),{})),"@media (max-width: 575px)",(0,l.A)({},e.componentCls,(0,l.A)({height:"auto !important",paddingBlockEnd:"24px"},"".concat(e.antCls,"-form-item-label"),{minWidth:"80px",textAlign:"start"})))),"&-toolbar",{display:"flex",alignItems:"center",justifyContent:"space-between",height:"64px",paddingInline:24,paddingBlock:0,"&-option":{display:"flex",alignItems:"center",justifyContent:"flex-end"},"&-title":{flex:"1",color:e.colorTextLabel,fontWeight:"500",fontSize:"16px",lineHeight:"24px",opacity:"0.85"}})),"@media (max-width: ".concat(e.screenXS,")px"),(0,l.A)({},e.componentCls,(0,l.A)({},"".concat(e.antCls,"-table"),{width:"100%",overflowX:"auto","&-thead > tr,&-tbody > tr":{"> th,> td":{whiteSpace:"pre",">span":{display:"block"}}}}))),"@media (max-width: 575px)",(0,l.A)({},"".concat(e.componentCls,"-toolbar"),{flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",height:"auto",marginBlockEnd:"16px",marginInlineStart:"16px",paddingBlock:8,paddingInline:8,paddingBlockStart:"16px",lineHeight:"normal","&-title":{marginBlockEnd:16},"&-option":{display:"flex",justifyContent:"space-between",width:"100%"},"&-default-option":{display:"flex",flex:"1",alignItems:"center",justifyContent:"flex-end"}}))};var bC=["data","success","total"];const vC=function(e,t,n){var r,l,h,p,f=(0,v.useRef)(!1),m=(0,v.useRef)(null),g=n||{},b=g.onLoad,y=g.manual,x=g.polling,w=g.onRequestError,A=g.debounceTime,S=void 0===A?20:A,C=g.effects,$=void 0===C?[]:C,k=(0,v.useRef)(y),E=(0,v.useRef)(),O=(0,Ut.A)(t,{value:null==n?void 0:n.dataSource,onChange:null==n?void 0:n.onDataSourceChange}),P=(0,s.A)(O,2),j=P[0],I=P[1],M=(0,Ut.A)(!1,{value:"object"===(0,a.A)(null==n?void 0:n.loading)?null==n||null===(r=n.loading)||void 0===r?void 0:r.spinning:null==n?void 0:n.loading,onChange:null==n?void 0:n.onLoadingChange}),T=(0,s.A)(M,2),_=T[0],R=T[1],B=(0,Ut.A)(function(){return function(e){var t=e.pageInfo;if(t){var n=t.current,r=t.defaultCurrent,o=t.pageSize,i=t.defaultPageSize;return{current:n||r||1,total:0,pageSize:o||i||20}}return{current:1,total:0,pageSize:20}}(n)},{onChange:null==n?void 0:n.onPageInfoChange}),F=(0,s.A)(B,2),D=F[0],z=F[1],N=wn(function(e){e.current===D.current&&e.pageSize===D.pageSize&&e.total===D.total||z(e)}),L=(0,Ut.A)(!1),H=(0,s.A)(L,2),W=H[0],U=H[1],V=function(e,t){(0,$p.unstable_batchedUpdates)(function(){I(e),(null==D?void 0:D.total)!==t&&N((0,d.A)((0,d.A)({},D),{},{total:t||e.length}))})},G=An(null==D?void 0:D.current),q=An(null==D?void 0:D.pageSize),X=An(x),K=wn(function(){(0,$p.unstable_batchedUpdates)(function(){R(!1),U(!1)})}),Y=function(){var t=(0,i.A)((0,o.A)().mark(function t(r){var i,a,s,l,c,d,h,p,f,m,g,v;return(0,o.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!k.current){t.next=3;break}return k.current=!1,t.abrupt("return");case 3:return r?U(!0):R(!0),a=(i=D||{}).pageSize,s=i.current,t.prev=5,l=!1!==(null==n?void 0:n.pageInfo)?{current:s,pageSize:a}:void 0,t.next=9,null==e?void 0:e(l);case 9:if(t.t0=t.sent,t.t0){t.next=12;break}t.t0={};case 12:if(c=t.t0,d=c.data,h=void 0===d?[]:d,p=c.success,f=c.total,m=void 0===f?0:f,g=(0,u.A)(c,bC),!1!==p){t.next=21;break}return t.abrupt("return",[]);case 21:return v=Kh(h,[n.postData].filter(function(e){return e})),V(v,m),null==b||b(v,g),t.abrupt("return",v);case 27:if(t.prev=27,t.t1=t.catch(5),void 0!==w){t.next=31;break}throw new Error(t.t1);case 31:void 0===j&&I([]),w(t.t1);case 33:return t.prev=33,K(),t.finish(33);case 36:return t.abrupt("return",[]);case 37:case"end":return t.stop()}},t,null,[[5,27,33,36]])}));return function(e){return t.apply(this,arguments)}}(),Q=ha(function(){var t=(0,i.A)((0,o.A)().mark(function t(n){var r,i,a;return(0,o.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(E.current&&clearTimeout(E.current),e){t.next=3;break}return t.abrupt("return");case 3:return r=new AbortController,m.current=r,t.prev=5,t.next=8,Promise.race([Y(n),new Promise(function(e,t){var n,r;null===(n=m.current)||void 0===n||null===(n=n.signal)||void 0===n||null===(r=n.addEventListener)||void 0===r||r.call(n,"abort",function(){t("aborted"),Q.cancel(),K()})})]);case 8:if(i=t.sent,!r.signal.aborted){t.next=11;break}return t.abrupt("return");case 11:return(a=xn(x,i))&&!f.current&&(E.current=setTimeout(function(){Q.run(a)},Math.max(a,2e3))),t.abrupt("return",i);case 16:if(t.prev=16,t.t0=t.catch(5),"aborted"!==t.t0){t.next=20;break}return t.abrupt("return");case 20:throw t.t0;case 21:case"end":return t.stop()}},t,null,[[5,16]])}));return function(e){return t.apply(this,arguments)}}(),S||30),J=function(){var e;null===(e=m.current)||void 0===e||e.abort(),Q.cancel(),K()};return(0,v.useEffect)(function(){return x||clearTimeout(E.current),!X&&x&&Q.run(!0),function(){clearTimeout(E.current)}},[x]),(0,v.useEffect)(function(){return f.current=!1,function(){f.current=!0}},[]),(0,v.useEffect)(function(){var e=D||{},t=e.current,r=e.pageSize;(G&&G!==t||q&&q!==r)&&(n.pageInfo&&j&&(null==j?void 0:j.length)>r||void 0!==t&&j&&j.length<=r&&(J(),Q.run(!1)))},[null==D?void 0:D.current]),(0,v.useEffect)(function(){q&&(J(),Q.run(!1))},[null==D?void 0:D.pageSize]),fa(function(){return J(),Q.run(!1),y||(k.current=!1),function(){J()}},[].concat((0,c.A)($),[y])),{dataSource:j,setDataSource:I,loading:"object"===(0,a.A)(null==n?void 0:n.loading)?(0,d.A)((0,d.A)({},null==n?void 0:n.loading),{},{spinning:_}):_,reload:(p=(0,i.A)((0,o.A)().mark(function e(){return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return J(),e.abrupt("return",Q.run(!1));case 2:case"end":return e.stop()}},e)})),function(){return p.apply(this,arguments)}),pageInfo:D,pollingLoading:W,reset:(h=(0,i.A)((0,o.A)().mark(function e(){var t,r,i,a,s;return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=(n||{}).pageInfo,i=(r=t||{}).defaultCurrent,a=void 0===i?1:i,s=r.defaultPageSize,N({current:a,total:0,pageSize:void 0===s?20:s});case 4:case"end":return e.stop()}},e)})),function(){return h.apply(this,arguments)}),setPageInfo:(l=(0,i.A)((0,o.A)().mark(function e(t){return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:N((0,d.A)((0,d.A)({},D),t));case 1:case"end":return e.stop()}},e)})),function(e){return l.apply(this,arguments)})}};var yC=function(e){var t="".concat(e.antCls,"-progress-bg");return(0,l.A)({},e.componentCls,{"&-multiple":{paddingBlockStart:6,paddingBlockEnd:12,paddingInline:8},"&-progress":{"&-success":(0,l.A)({},t,{backgroundColor:e.colorSuccess}),"&-error":(0,l.A)({},t,{backgroundColor:e.colorError}),"&-warning":(0,l.A)({},t,{backgroundColor:e.colorWarning})},"&-rule":{display:"flex",alignItems:"center","&-icon":{"&-default":{display:"flex",alignItems:"center",justifyContent:"center",width:"14px",height:"22px","&-circle":{width:"6px",height:"6px",backgroundColor:e.colorTextSecondary,borderRadius:"4px"}},"&-loading":{color:e.colorPrimary},"&-error":{color:e.colorError},"&-success":{color:e.colorSuccess}},"&-text":{color:e.colorText}}})};var xC=["rules","name","children","popoverProps"],wC=["errorType","rules","name","popoverProps","children"],AC={marginBlockStart:-5,marginBlockEnd:-5,marginInlineStart:0,marginInlineEnd:0},SC=function(e){var t=e.inputProps,n=e.input,r=e.extra,o=e.errorList,i=e.popoverProps,a=(0,v.useState)(!1),l=(0,s.A)(a,2),c=l[0],u=l[1],h=(0,v.useState)([]),p=(0,s.A)(h,2),m=p[0],g=p[1],b=(0,(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls)(),y=ot(),x=function(e){return at("InlineErrorFormItem",function(t){var n=(0,d.A)((0,d.A)({},t),{},{componentCls:".".concat(e)});return[yC(n)]})}("".concat(b,"-form-item-with-help")),w=x.wrapSSR,A=x.hashId;(0,v.useEffect)(function(){"validating"!==t.validateStatus&&g(t.errors)},[t.errors,t.validateStatus]);var S=Ga(!(m.length<1)&&c,function(e){e!==c&&u(e)}),C="validating"===t.validateStatus;return(0,Ue.jsx)(Ba,(0,d.A)((0,d.A)((0,d.A)({trigger:(null==i?void 0:i.trigger)||["click"],placement:(null==i?void 0:i.placement)||"topLeft"},S),{},{getPopupContainer:null==i?void 0:i.getPopupContainer,getTooltipContainer:null==i?void 0:i.getTooltipContainer,content:w((0,Ue.jsx)("div",{className:"".concat(b,"-form-item ").concat(A," ").concat(y.hashId).trim(),style:{margin:0,padding:0},children:(0,Ue.jsxs)("div",{className:"".concat(b,"-form-item-with-help ").concat(A," ").concat(y.hashId).trim(),children:[C?(0,Ue.jsx)(qi.A,{}):null,o]})}))},i),{},{children:(0,Ue.jsxs)(Ue.Fragment,{children:[n,r]})}),"popover")},CC=function(e){var t=e.rules,n=e.name,r=e.children,o=e.popoverProps,i=(0,u.A)(e,xC);return(0,Ue.jsx)(yn.A.Item,(0,d.A)((0,d.A)({name:n,rules:t,hasFeedback:!1,shouldUpdate:function(e,t){if(e===t)return!1;var r=[n].flat(1);r.length>1&&r.pop();try{return JSON.stringify((0,vi.A)(e,r))!==JSON.stringify((0,vi.A)(t,r))}catch(e){return!0}},_internalItemRender:{mark:"pro_table_render",render:function(e,t){return(0,Ue.jsx)(SC,(0,d.A)({inputProps:e,popoverProps:o},t))}}},i),{},{style:(0,d.A)((0,d.A)({},AC),null==i?void 0:i.style),children:r}))},$C=function(e){var t=e.errorType,n=e.rules,r=e.name,o=e.popoverProps,i=e.children,a=(0,u.A)(e,wC);return r&&null!=n&&n.length&&"popover"===t?(0,Ue.jsx)(CC,(0,d.A)((0,d.A)({name:r,rules:n,popoverProps:o},a),{},{children:i})):(0,Ue.jsx)(yn.A.Item,(0,d.A)((0,d.A)({rules:n,shouldUpdate:r?function(e,t){if(e===t)return!1;var n=[r].flat(1);n.length>1&&n.pop();try{return JSON.stringify((0,vi.A)(e,n))!==JSON.stringify((0,vi.A)(t,n))}catch(e){return!0}}:void 0},a),{},{style:(0,d.A)((0,d.A)({},AC),a.style),name:r,children:i}))},kC=function(e,t,n){return void 0===t?e:xn(e,t,n)},EC=["children"],OC=["",null,void 0],PC=function(){for(var e=arguments.length,t=new Array(e),n=0;nh.length?(h.push(l),h):(h.splice((null==s?void 0:s.current)*(null==s?void 0:s.pageSize)-1,0,l),h)}return[].concat((0,c.A)(o.dataSource),[l])},B=function(){return(0,d.A)((0,d.A)({},M),{},{size:p,rowSelection:!1===h?void 0:h,className:n,style:m,columns:_,loading:o.loading,dataSource:j.newLineRecord?R(o.dataSource):o.dataSource,pagination:s,onChange:function(e,t,n,r){var o;if(null===(o=M.onChange)||void 0===o||o.call(M,e,t,n,r),$(ba(t)),Array.isArray(n)){var i,a=n.reduce(function(e,t){return(0,d.A)((0,d.A)({},e),{},(0,l.A)({},"".concat(t.field),t.order))},{});C(null!==(i=ba(a))&&void 0!==i?i:{})}else{var s,c,u=null===(s=n.column)||void 0===s?void 0:s.sorter,h=(null==u?void 0:u.toString())===u;C(null!==(c=ba((0,l.A)({},"".concat(h?u:n.field),n.order)))&&void 0!==c?c:{})}}})},F=(0,v.useMemo)(function(){return!1===e.search&&!e.headerTitle&&!1===e.toolBarRender},[]),D=(0,Ue.jsx)(bn.Provider,{value:{grid:!1,colProps:void 0,rowProps:void 0},children:(0,Ue.jsx)(Qu,(0,d.A)((0,d.A)({},B()),{},{rowKey:t}))}),z=e.tableViewRender?e.tableViewRender((0,d.A)((0,d.A)({},B()),{},{rowSelection:!1!==h?h:void 0}),D):D,N=(0,v.useMemo)(function(){var t,n,r;return e.editable&&!e.name?(0,Ue.jsxs)(Ue.Fragment,{children:[g,S,(0,v.createElement)(us,(0,d.A)((0,d.A)({},null===(t=e.editable)||void 0===t?void 0:t.formProps),{},{formRef:null===(n=e.editable)||void 0===n||null===(n=n.formProps)||void 0===n?void 0:n.formRef,component:!1,form:null===(r=e.editable)||void 0===r?void 0:r.form,onValuesChange:j.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:e.dateFormatter}),z)]}):(0,Ue.jsxs)(Ue.Fragment,{children:[g,S,z]})},[S,e.loading,!!e.editable,z,g]),L=(0,v.useMemo)(function(){return!1===A||!0===F||e.name?{}:y?{padding:0}:g||g&&!1===s?{paddingBlockStart:0}:{padding:0}},[F,s,e.name,A,g,y]),H=!1===A||!0===F||e.name?N:(0,Ue.jsx)(fn,(0,d.A)((0,d.A)({ghost:e.ghost,bordered:Yh("table",P),bodyStyle:L},A),{},{children:N})),W=(0,Ue.jsxs)("div",{className:b()(O,(0,l.A)({},"".concat(r,"-polling"),o.pollingLoading)),style:w,ref:T.rootDomRef,children:[E?null:x,"form"!==a&&e.tableExtraRender&&(0,Ue.jsx)("div",{className:b()(O,"".concat(r,"-extra")),children:e.tableExtraRender(e,o.dataSource||[])}),"form"!==a&&(e.tableRender?e.tableRender(e,H,{toolbar:g||void 0,alert:S||void 0,table:z||void 0}):H)]});return k&&null!=k&&k.fullScreen?(0,Ue.jsx)(f.Ay,{getPopupContainer:function(){return T.rootDomRef.current||document.body},children:W}):W}var DC={},zC=function(e){e.cardBordered;var t,n,r=e.request,c=e.className,h=e.params,p=void 0===h?DC:h,f=e.defaultData,m=e.headerTitle,g=e.postData,y=e.ghost,x=e.pagination,w=e.actionRef,A=e.columns,S=void 0===A?[]:A,C=e.toolBarRender,$=e.optionsRender,k=e.onLoad,E=e.onRequestError,O=(e.style,e.cardProps,e.tableStyle,e.tableClassName,e.columnsStateMap,e.onColumnsStateChange,e.options),P=e.search,j=e.name,I=e.onLoadingChange,M=e.rowSelection,T=void 0!==M&&M,_=e.beforeSearchSubmit,R=e.tableAlertRender,B=e.defaultClassName,F=e.formRef,D=e.type,z=void 0===D?"table":D,N=e.columnEmptyText,L=void 0===N?"-":N,H=e.toolbar,W=e.rowKey,U=e.manualRequest,V=e.polling,G=e.tooltip,q=e.revalidateOnFocus,X=void 0!==q&&q,K=e.searchFormRender,Y=(0,u.A)(e,BC),Q=(n=e.defaultClassName,at("ProTable",function(e){var t=(0,d.A)((0,d.A)({},e),{},{componentCls:".".concat(n)});return[gC(t)]})),J=Q.wrapSSR,Z=Q.hashId,ee=b()(B,c,Z),te=(0,v.useRef)(),ne=(0,v.useRef)(),re=F||ne;(0,v.useImperativeHandle)(w,function(){return te.current});var oe=(0,Ut.A)(T?(null==T?void 0:T.defaultSelectedRowKeys)||[]:void 0,{value:T?T.selectedRowKeys:void 0}),ie=(0,s.A)(oe,2),ae=ie[0],se=ie[1],le=(0,Ut.A)(function(){if(!U&&!1===P)return{}}),ce=(0,s.A)(le,2),de=ce[0],ue=ce[1],he=(0,Ut.A)({}),pe=(0,s.A)(he,2),fe=pe[0],me=pe[1],ge=(0,Ut.A)({}),be=(0,s.A)(ge,2),ve=be[0],ye=be[1],xe=(0,v.useCallback)(function(e){for(var t=[],n=0;n0){var e=_e.map(function(e){return Qh(e.key,e.index)});$e.setSortKeyColumns(e)}},[_e],["render","renderFormItem"],100),fa(function(){var e=Ee.pageInfo,t=x||{},n=t.current,r=void 0===n?null==e?void 0:e.current:n,o=t.pageSize,i=void 0===o?null==e?void 0:e.pageSize:o;!x||!r&&!i||i===(null==e?void 0:e.pageSize)&&r===(null==e?void 0:e.current)||Ee.setPageInfo({pageSize:i||e.pageSize,current:r||e.current})},[x&&x.pageSize,x&&x.current]);var Re=(0,d.A)((0,d.A)({selectedRowKeys:ae},T),{},{onChange:function(e,t,n){T&&T.onChange&&T.onChange(e,t,n),se(e)}}),Be=!1!==P&&"light"===(null==P?void 0:P.filterType),Fe=(0,v.useCallback)(function(e){if(O&&O.search){var t,n,r=(!0===O.search?{}:O.search).name,o=void 0===r?"keyword":r;if(!1!==(null===(t=O.search)||void 0===t||null===(n=t.onSearch)||void 0===n?void 0:n.call(t,$e.keyWords)))return void ue((0,d.A)((0,d.A)({},e),{},(0,l.A)({},o,$e.keyWords)))}ue(e)},[$e.keyWords,O,ue]),De=(0,v.useMemo)(function(){var e;return"object"===(0,a.A)(Ee.loading)?(null===(e=Ee.loading)||void 0===e?void 0:e.spinning)||!1:Ee.loading},[Ee.loading]),ze=(0,v.useMemo)(function(){var t=!1===P&&"form"!==z?null:(0,Ue.jsx)(SA,{pagination:je,beforeSearchSubmit:_,action:te,columns:S,onFormSearchSubmit:function(e){Fe(e)},ghost:y,onReset:e.onReset,onSubmit:e.onSubmit,loading:!!De,manualRequest:U,search:P,form:e.form,formRef:re,type:e.type||"table",cardBordered:e.cardBordered,dateFormatter:e.dateFormatter});return K&&t?(0,Ue.jsx)(Ue.Fragment,{children:K(e,t)}):t},[_,re,y,De,U,Fe,je,e,S,P,K,z]),Ne=(0,v.useMemo)(function(){return null==ae?void 0:ae.map(function(e){var t;return null===(t=Oe.current)||void 0===t?void 0:t.get(e)})},[Ee.dataSource,ae]),Le=(0,v.useMemo)(function(){return!(!1!==O||m||C||H||Be)},[O,m,C,H,Be]),He=!1===C?null:(0,Ue.jsx)(fC,{headerTitle:m,hideToolbar:Le,selectedRows:Ne,selectedRowKeys:ae,tableColumn:_e,tooltip:G,toolbar:H,onFormSearchSubmit:function(e){ue((0,d.A)((0,d.A)({},de),e))},searchNode:Be?ze:null,options:O,optionsRender:$,actionRef:te,toolBarRender:C}),We=!1!==T?(0,Ue.jsx)(rp,{selectedRowKeys:ae,selectedRows:Ne,onCleanSelected:Ie,alertOptionRender:Y.tableAlertOptionRender,alertInfoRender:R,alwaysShowAlert:null==T?void 0:T.alwaysShowAlert}):null;return J((0,Ue.jsx)(FC,(0,d.A)((0,d.A)({},e),{},{name:j,defaultClassName:B,size:$e.tableSize,onSizeChange:$e.setTableSize,pagination:je,searchNode:ze,rowSelection:!1!==T?Re:void 0,className:ee,tableColumn:_e,isLightFilter:Be,action:Ee,alertDom:We,toolbarDom:He,hideToolbar:Le,onSortChange:function(e){Ae||e===ve||ye(e)},onFilterChange:function(e){we||e===fe||me(e)},editableUtils:Me,getRowKey:Pe})))},NC=function(e){var t=(0,v.useContext)(f.Ay.ConfigContext).getPrefixCls,n=!1===e.ErrorBoundary?v.Fragment:e.ErrorBoundary||Us;return(0,Ue.jsx)(ep,{initValue:e,children:(0,Ue.jsx)(Je,{needDeps:!0,children:(0,Ue.jsx)(n,{children:(0,Ue.jsx)(zC,(0,d.A)({defaultClassName:"".concat(t("pro-table"))},e))})})})};NC.Summary=Qu.Summary;const LC=NC},60344(e,t,n){"use strict";n.d(t,{XK:()=>r});n(96540);function r(e){const t=-1!==(n=e.lib||"__coreLib").indexOf(".")?n:`.${n}`;var n;return new Promise(n=>{const r=new XMLHttpRequest;r.open("get",`${e.from}${-1!==e.from.indexOf("?")?"&":"?"}v=${(new Date).getTime()}`),r.timeout=e.timeout||12e4,r.onerror=()=>{n({name:e.name,status:!1,module:{}})},r.ontimeout=()=>{n({name:e.name,status:!1,module:{}})},r.onreadystatechange=()=>{if(200===r.status&&4===r.readyState)try{let o;try{o=JSON.parse(r.response)}catch(e){o={library:r.response}}const i=new Function(`\n var module = { exports: null }, exports = {}, require = function (id) {\n return window${t}[ id ];\n };\n ${o.library} \n return Object.assign(module.exports, exports);\n `)();o.parameter&&(i.parameter=o.parameter),n({name:e.name,status:!0,module:i})}catch(t){n({name:e.name,status:!1,module:{}})}},r.send()})}},57971(e,t,n){"use strict";n.d(t,{a:()=>i});var r=n(96540),o=n(28958);function i(e){const t=e=>{const t=r.forwardRef((t,n)=>{const[i,a]=r.useState([]);return r.useEffect(()=>{o.http.Get("/system/operation/menus/list/current/buttons-perms",{path:window.location.pathname},{token:window.sessionStorage.getItem("token")}).then(e=>a(e.data||[]))},[]),r.createElement(e,{...t,ref:n,permissionList:i,permission:e=>Array.isArray(e)?i.some(t=>e.includes(t)):i.includes(e)})});return t.displayName=`Permission(${e.displayName||e.name||"Component"})`,t};return"object"==typeof e&&"debug"in e?e=>t(e):t(e)}},8421(e,t,n){"use strict";n.r(t),n.d(t,{Delete:()=>Nt,Get:()=>Dt,HTTP_URL_REG:()=>Mt,Patch:()=>Ht,Post:()=>zt,Put:()=>Lt,request:()=>Ft});var r={};function o(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:()=>Se,hasStandardBrowserEnv:()=>$e,hasStandardBrowserWebWorkerEnv:()=>ke,navigator:()=>Ce,origin:()=>Ee});const{toString:i}=Object.prototype,{getPrototypeOf:a}=Object,{iterator:s,toStringTag:l}=Symbol,c=(d=Object.create(null),e=>{const t=i.call(e);return d[t]||(d[t]=t.slice(8,-1).toLowerCase())});var d;const u=e=>(e=e.toLowerCase(),t=>c(t)===e),h=e=>t=>typeof t===e,{isArray:p}=Array,f=h("undefined");function m(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g=u("ArrayBuffer");const b=h("string"),v=h("function"),y=h("number"),x=e=>null!==e&&"object"==typeof e,w=e=>{if("object"!==c(e))return!1;const t=a(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||l in e||s in e)},A=u("Date"),S=u("File"),C=u("Blob"),$=u("FileList");const k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},E=void 0!==k.FormData?k.FormData:void 0,O=u("URLSearchParams"),[P,j,I,M]=["ReadableStream","Request","Response","Headers"].map(u);function T(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),p(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,B=e=>!f(e)&&e!==R;const F=(D="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>D&&e instanceof D);var D;const z=u("HTMLFormElement"),N=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),L=u("RegExp"),H=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};T(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const W=u("AsyncFunction"),U=(V="function"==typeof setImmediate,G=v(R.postMessage),V?setImmediate:G?(q=`axios@${Math.random()}`,X=[],R.addEventListener("message",({source:e,data:t})=>{e===R&&t===q&&X.length&&X.shift()()},!1),e=>{X.push(e),R.postMessage(q,"*")}):e=>setTimeout(e));var V,G,q,X;const K="undefined"!=typeof queueMicrotask?queueMicrotask.bind(R):"undefined"!=typeof process&&process.nextTick||U,Y={isArray:p,isArrayBuffer:g,isBuffer:m,isFormData:e=>{if(!e)return!1;if(E&&e instanceof E)return!0;const t=a(e);if(!t||t===Object.prototype)return!1;if(!v(e.append))return!1;const n=c(e);return"formdata"===n||"object"===n&&v(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:b,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:x,isPlainObject:w,isEmptyObject:e=>{if(!x(e)||m(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:P,isRequest:j,isResponse:I,isHeaders:M,isUndefined:f,isDate:A,isFile:S,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:C,isRegExp:L,isFunction:v,isStream:e=>x(e)&&v(e.pipe),isURLSearchParams:O,isTypedArray:F,isFileList:$,forEach:T,merge:function e(...t){const{caseless:n,skipUndefined:r}=B(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=n&&_(o,i)||i,s=N(o,a)?o[a]:void 0;w(s)&&w(t)?o[a]=e(s,t):w(t)?o[a]=e({},t):p(t)?o[a]=t.slice():r&&f(t)||(o[a]=t)};for(let e=0,n=t.length;e(T(t,(t,r)=>{n&&v(t)?Object.defineProperty(e,r,{__proto__:null,value:o(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:u,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[s]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:z,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:H,freezeMethods:e=>{H(e,(t,n)=>{if(v(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:_,global:R,isContextDefined:B,isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[l]&&e[s])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(x(e)){if(t.indexOf(e)>=0)return;if(m(e))return e;if(!("toJSON"in e)){t[r]=e;const o=p(e)?[]:{};return T(e,(e,t)=>{const i=n(e,r+1);!f(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:W,isThenable:e=>e&&(x(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:U,asap:K,isIterable:e=>null!=e&&v(e[s])},Q=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),J=e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Q[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};(Object.getOwnPropertyDescriptor(J,"name")||{}).writable||Object.defineProperty(J,"name",{value:"default",configurable:!0});const Z=Symbol("internals"),ee=/[^\x09\x20-\x7E\x80-\xFF]/g;function te(e){return e&&String(e).trim().toLowerCase()}function ne(e){return!1===e||null==e?e:Y.isArray(e)?e.map(ne):function(e){let t=0,n=e.length;for(;tt;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(ee,""))}function re(e,t,n,r,o){return Y.isFunction(r)?r.call(this,t,n):(o&&(t=n),Y.isString(t)?Y.isString(r)?-1!==t.indexOf(r):Y.isRegExp(r)?r.test(t):void 0:void 0)}class oe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=te(t);if(!o)throw new Error("header name must be a non-empty string");const i=Y.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ne(e))}const i=(e,t)=>Y.forEach(e,(e,n)=>o(e,n,t));if(Y.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Y.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(J(e),t);else if(Y.isObject(e)&&Y.isIterable(e)){let n,r,o={};for(const t of e){if(!Y.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?Y.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=te(e)){const n=Y.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Y.isFunction(t))return t.call(this,e,n);if(Y.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=te(e)){const n=Y.findKey(this,e);return!(!n||void 0===this[n]||t&&!re(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=te(e)){const o=Y.findKey(n,e);!o||t&&!re(0,n[o],o,t)||(delete n[o],r=!0)}}return Y.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!re(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Y.forEach(this,(r,o)=>{const i=Y.findKey(n,o);if(i)return t[i]=ne(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=ne(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Y.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Y.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Z]=this[Z]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=te(e);t[r]||(!function(e,t){const n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return Y.isArray(e)?e.forEach(r):r(e),this}}oe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(oe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Y.freezeMethods(oe);const ie=oe;function ae(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(Y.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof ie&&(e=e.toJSON()),r.push(e),Y.isArray(e))t=[],e.forEach((e,n)=>{const r=o(e);Y.isUndefined(r)||(t[n]=r)});else{if(!Y.isPlainObject(e)&&function(e){if(Y.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Y.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,i]of Object.entries(e)){const e=n.has(r.toLowerCase())?"[REDACTED ****]":o(i);Y.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return o(e)}class se extends Error{static from(e,t,n,r,o,i){const a=new se(e.message,t||e.code,n,r,o);return a.cause=e,a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&Y.hasOwnProp(e,"redact")?e.redact:void 0,n=Y.isArray(t)&&t.length>0?ae(e,t):Y.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",se.ERR_BAD_OPTION="ERR_BAD_OPTION",se.ECONNABORTED="ECONNABORTED",se.ETIMEDOUT="ETIMEDOUT",se.ECONNREFUSED="ECONNREFUSED",se.ERR_NETWORK="ERR_NETWORK",se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",se.ERR_DEPRECATED="ERR_DEPRECATED",se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",se.ERR_BAD_REQUEST="ERR_BAD_REQUEST",se.ERR_CANCELED="ERR_CANCELED",se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",se.ERR_INVALID_URL="ERR_INVALID_URL",se.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const le=se;function ce(e){return Y.isPlainObject(e)||Y.isArray(e)}function de(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function ue(e,t,n){return e?e.concat(t).map(function(e,t){return e=de(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const he=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});const pe=function(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])})).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=n.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=s&&Y.isSpecCompliantForm(t);if(!Y.isFunction(o))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(Y.isDate(e))return e.toISOString();if(Y.isBoolean(e))return e.toString();if(!c&&Y.isBlob(e))throw new le("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(e)||Y.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(Y.isReactNative(t)&&Y.isReactNativeBlob(e))return t.append(ue(o,n,i),d(e)),!1;if(e&&!o&&"object"==typeof e)if(Y.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Y.isArray(e)&&function(e){return Y.isArray(e)&&!e.some(ce)}(e)||(Y.isFileList(e)||Y.endsWith(n,"[]"))&&(s=Y.toArray(e)))return n=de(n),s.forEach(function(e,r){!Y.isUndefined(e)&&null!==e&&t.append(!0===a?ue([n],r,i):null===a?n:n+"[]",d(e))}),!1;return!!ce(e)||(t.append(ue(o,n,i),d(e)),!1)}const h=[],p=Object.assign(he,{defaultVisitor:u,convertValue:d,isVisitable:ce});if(!Y.isObject(e))throw new TypeError("data must be an object");return function e(n,r,i=0){if(!Y.isUndefined(n)){if(i>l)throw new le("Object is too deeply nested ("+i+" levels). Max depth: "+l,le.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==h.indexOf(n))throw Error("Circular reference detected in "+r.join("."));h.push(n),Y.forEach(n,function(n,a){!0===(!(Y.isUndefined(n)||null===n)&&o.call(t,n,Y.isString(a)?a.trim():a,r,p))&&e(n,r?r.concat(a):[a],i+1)}),h.pop()}}(e),t};function fe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function me(e,t){this._pairs=[],e&&pe(e,this,t)}const ge=me.prototype;ge.append=function(e,t){this._pairs.push([e,t])},ge.toString=function(e){const t=e?function(t){return e.call(this,t,fe)}:fe;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const be=me;function ve(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ye(e,t,n){if(!t)return e;const r=n&&n.encode||ve,o=Y.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let a;if(a=i?i(t,o):Y.isURLSearchParams(t)?t.toString():new be(t,o).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const xe=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(t){null!==t&&e(t)})}},we={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Ae={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:be,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Se="undefined"!=typeof window&&"undefined"!=typeof document,Ce="object"==typeof navigator&&navigator||void 0,$e=Se&&(!Ce||["ReactNative","NativeScript","NS"].indexOf(Ce.product)<0),ke="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ee=Se&&window.location.href||"http://localhost",Oe={...r,...Ae};const Pe=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&Y.isArray(r)?r.length:i,s)return Y.hasOwnProp(r,i)?r[i]=Y.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a;r[i]&&Y.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Y.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r{t(function(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},je=(e,t)=>null!=e&&Y.hasOwnProp(e,t)?e[t]:void 0;const Ie={transitional:we,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Y.isObject(e);o&&Y.isHTMLForm(e)&&(e=new FormData(e));if(Y.isFormData(e))return r?JSON.stringify(Pe(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=je(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return pe(e,new Oe.classes.URLSearchParams,{visitor:function(e,t,n,r){return Oe.isNode&&Y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=Y.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=je(this,"env"),r=n&&n.FormData;return pe(i?{"files[]":e}:e,r&&new r,t)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=je(this,"transitional")||Ie.transitional,n=t&&t.forcedJSONParsing,r=je(this,"responseType"),o="json"===r;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(n&&!r||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,je(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw le.from(e,le.ERR_BAD_RESPONSE,this,null,je(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oe.classes.FormData,Blob:Oe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch","query"],e=>{Ie.headers[e]={}});const Me=Ie;function Te(e,t){const n=this||Me,r=t||n,o=ie.from(r.headers);let i=r.data;return Y.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function _e(e){return!(!e||!e.__CANCEL__)}const Re=class extends le{constructor(e,t,n){super(e??"canceled",le.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Be(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new le("Request failed with status code "+n.status,n.status>=400&&n.status<500?le.ERR_BAD_REQUEST:le.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const Fe=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let d=a,u=0;for(;d!==i;)u+=n[d++],d%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]},ze=(e,t,n=3)=>{let r=0;const o=Fe(50,250);return De(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(i,a):i,l=Math.max(0,s-r),c=o(l);r=Math.max(r,s);e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},Ne=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Le=e=>(...t)=>Y.asap(()=>e(...t)),He=Oe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Oe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Oe.origin),Oe.navigator&&/(msie|trident)/i.test(Oe.navigator.userAgent)):()=>!0,We=Oe.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];Y.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Y.isString(r)&&s.push(`path=${r}`),Y.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),Y.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;nnull,remove(){}};function Ue(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ve=e=>e instanceof ie?{...e}:e;function Ge(e,t){t=t||{};const n=Object.create(null);function r(e,t,n,r){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:r},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function o(e,t,n,o){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Y.isUndefined(t))return r(void 0,t)}function a(e,t){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return Y.hasOwnProp(t,i)?r(n,o):Y.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Ve(e),Ve(t),0,!0)};return Y.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=Y.hasOwnProp(l,r)?l[r]:o,a=i(Y.hasOwnProp(e,r)?e[r]:void 0,Y.hasOwnProp(t,r)?t[r]:void 0,r);Y.isUndefined(a)&&i!==s||(n[r]=a)}),n}const qe=["content-type","content-length"];const Xe=e=>{const t=Ge({},e),n=e=>Y.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let o=n("withXSRFToken");const i=n("xsrfHeaderName"),a=n("xsrfCookieName");let s=n("headers");const l=n("auth"),c=n("baseURL"),d=n("allowAbsoluteUrls"),u=n("url");var h;if(t.headers=s=ie.from(s),t.url=ye(Ue(c,u,d),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?(h=l.password,encodeURIComponent(h).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),Y.isFormData(r)&&(Oe.hasStandardBrowserEnv||Oe.hasStandardBrowserWebWorkerEnv?s.setContentType(void 0):Y.isFunction(r.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{qe.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(s,r.getHeaders(),n("formDataHeaderPolicy"))),Oe.hasStandardBrowserEnv){Y.isFunction(o)&&(o=o(t));if(!0===o||null==o&&He(t.url)){const e=i&&a&&We.read(a);e&&s.set(i,e)}}return t};(Object.getOwnPropertyDescriptor(Xe,"name")||{}).writable||Object.defineProperty(Xe,"name",{value:"default",configurable:!0});const Ke="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Xe(e);let o=r.data;const i=ie.from(r.headers).normalize();let a,s,l,c,d,{responseType:u,onUploadProgress:h,onDownloadProgress:p}=r;function f(){c&&c(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=ie.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Be(function(e){t(e),f()},function(e){n(e),f()},{data:u&&"text"!==u&&"json"!==u?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new le("Request aborted",le.ECONNABORTED,e,m)),f(),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new le(r,le.ERR_NETWORK,e,m);o.event=t||null,n(o),f(),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||we;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new le(t,o.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,e,m)),f(),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&Y.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Y.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),u&&"json"!==u&&(m.responseType=r.responseType),p&&([l,d]=ze(p,!0),m.addEventListener("progress",l)),h&&m.upload&&([s,c]=ze(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Re(null,e,m):t),m.abort(),f(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const b=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(r.url);!b||Oe.protocols.includes(b)?m.send(o||null):n(new le("Unsupported protocol "+b+":",le.ERR_BAD_REQUEST,e))})},Ye=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof le?t:new Re(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new le(`timeout of ${t}ms exceeded`,le.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>Y.asap(a),s}},Qe=function*(e,t){let n=e.byteLength;if(!t||n{const o=async function*(e,t){for await(const n of Je(e))yield*Qe(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})};const et="1.16.0",{isFunction:tt}=Y,nt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},rt=e=>{const t=Y.global??globalThis,{ReadableStream:n,TextEncoder:r}=t;e=Y.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:a}=e,s=o?tt(o):"function"==typeof fetch,l=tt(i),c=tt(a);if(!s)return!1;const d=s&&tt(n),u=s&&("function"==typeof r?(h=new r,e=>h.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var h;const p=l&&d&&nt(()=>{let e=!1;const t=new i(Oe.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),f=c&&d&&nt(()=>Y.isReadableStream(new a("").body)),m={stream:f&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new le(`Response type '${e}' is not supported`,le.ERR_NOT_SUPPORT,n)})});const g=async(e,t)=>{const n=Y.toFiniteNumber(e.getContentLength());return n??(async e=>{if(null==e)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e)){const t=new i(Oe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Y.isArrayBufferView(e)||Y.isArrayBuffer(e)?e.byteLength:(Y.isURLSearchParams(e)&&(e+=""),Y.isString(e)?(await u(e)).byteLength:void 0)})(t)};return async e=>{let{url:t,method:n,data:s,signal:c,cancelToken:d,timeout:u,onDownloadProgress:h,onUploadProgress:b,responseType:v,headers:y,withCredentials:x="same-origin",fetchOptions:w,maxContentLength:A,maxBodyLength:S}=Xe(e);const C=Y.isNumber(A)&&A>-1,$=Y.isNumber(S)&&S>-1;let k=o||fetch;v=v?(v+"").toLowerCase():"text";let E=Ye([c,d&&d.toAbortSignal()],u),O=null;const P=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let j;try{if(C&&"string"==typeof t&&t.startsWith("data:")){const n=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let n=0;n=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,n+=2)}let n=0,o=t-1;const i=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));o>=0&&(61===r.charCodeAt(o)?(n++,o--):i(o)&&(n++,o-=3)),1===n&&o>=0&&(61===r.charCodeAt(o)||i(o))&&n++;const a=3*Math.floor(e/4)-(n||0);return a>0?a:0}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(r,"utf8");let o=0;for(let e=0,t=r.length;e=55296&&n<=56319&&e+1=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(t);if(n>A)throw new le("maxContentLength size of "+A+" exceeded",le.ERR_BAD_RESPONSE,e,O)}if($&&"get"!==n&&"head"!==n){const t=await g(y,s);if("number"==typeof t&&isFinite(t)&&t>S)throw new le("Request body larger than maxBodyLength limit",le.ERR_BAD_REQUEST,e,O)}if(b&&p&&"get"!==n&&"head"!==n&&0!==(j=await g(y,s))){let e,n=new i(t,{method:"POST",body:s,duplex:"half"});if(Y.isFormData(s)&&(e=n.headers.get("content-type"))&&y.setContentType(e),n.body){const[e,t]=Ne(j,ze(Le(b)));s=Ze(n.body,65536,e,t)}}Y.isString(x)||(x=x?"include":"omit");const o=l&&"credentials"in i.prototype;if(Y.isFormData(s)){const e=y.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&y.delete("content-type")}y.set("User-Agent","axios/"+et,!1);const c={...w,signal:E,method:n.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:o?x:void 0};O=l&&new i(t,c);let d=await(l?k(O,w):k(t,c));if(C){const t=Y.toFiniteNumber(d.headers.get("content-length"));if(null!=t&&t>A)throw new le("maxContentLength size of "+A+" exceeded",le.ERR_BAD_RESPONSE,e,O)}const u=f&&("stream"===v||"response"===v);if(f&&d.body&&(h||C||u&&P)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=d[e]});const n=Y.toFiniteNumber(d.headers.get("content-length")),[r,o]=h&&Ne(n,ze(Le(h),!0))||[];let i=0;const s=t=>{if(C&&(i=t,i>A))throw new le("maxContentLength size of "+A+" exceeded",le.ERR_BAD_RESPONSE,e,O);r&&r(t)};d=new a(Ze(d.body,65536,s,()=>{o&&o(),P&&P()}),t)}v=v||"text";let I=await m[Y.findKey(m,v)||"text"](d,e);if(C&&!f&&!u){let t;if(null!=I&&("number"==typeof I.byteLength?t=I.byteLength:"number"==typeof I.size?t=I.size:"string"==typeof I&&(t="function"==typeof r?(new r).encode(I).byteLength:I.length)),"number"==typeof t&&t>A)throw new le("maxContentLength size of "+A+" exceeded",le.ERR_BAD_RESPONSE,e,O)}return!u&&P&&P(),await new Promise((t,n)=>{Be(t,n,{data:I,headers:ie.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:O})})}catch(t){if(P&&P(),E&&E.aborted&&E.reason instanceof le){const n=E.reason;throw n.config=e,O&&(n.request=O),t!==n&&(n.cause=t),n}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new le("Network Error",le.ERR_NETWORK,e,O,t&&t.response),{cause:t.cause||t});throw le.from(t,t&&t.code,e,O,t&&t.response)}}},ot=new Map,it=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,l=i.length,c=ot;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:rt(t)),c=s;return s},at=(it(),{http:null,xhr:Ke,fetch:{get:it}});Y.forEach(at,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const st=e=>`- ${e}`,lt=e=>Y.isFunction(e)||null===e||!1===e;const ct={getAdapter:function(e,t){e=Y.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(st).join("\n"):" "+st(e[0]):"as no adapter specified";throw new le("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:at};function dt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Re(null,e)}function ut(e){dt(e),e.headers=ie.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ct.getAdapter(e.adapter||Me.adapter,e)(e).then(function(t){dt(e),e.response=t;try{t.data=Te.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=ie.from(t.headers),t},function(t){if(!_e(t)&&(dt(e),t&&t.response)){e.response=t.response;try{t.response.data=Te.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=ie.from(t.response.headers)}return Promise.reject(t)})}const ht={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ht[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const pt={};ht.transitional=function(e,t,n){return(r,o,i)=>{if(!1===e)throw new le(function(e,t){return"[Axios v"+et+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),le.ERR_DEPRECATED);return t&&!pt[o]&&(pt[o]=!0),!e||e(r,o,i)}},ht.spelling=function(e){return(e,t)=>!0};const ft={assertOptions:function(e,t,n){if("object"!=typeof e)throw new le("options must be an object",le.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new le("option "+i+" must be "+n,le.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new le("Unknown option "+i,le.ERR_BAD_OPTION)}},validators:ht},mt=ft.validators;class gt{constructor(e){this.defaults=e||{},this.interceptors={request:new xe,response:new xe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),o=-1===r?"":n.slice(r+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ge(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ft.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean),legacyInterceptorReqResOrdering:mt.transitional(mt.boolean)},!1),null!=r&&(Y.isFunction(r)?t.paramsSerializer={serialize:r}:ft.assertOptions(r,{encode:mt.function,serialize:mt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ft.assertOptions(t,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Y.merge(o.common,o[t.method]);o&&Y.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete o[e]}),t.headers=ie.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||we;n&&n.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let d,u=0;if(!s){const e=[ut.bind(this),void 0];for(e.unshift(...a),e.push(...l),d=e.length,c=Promise.resolve(t);u{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Re(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new vt(function(t){e=t}),cancel:e}}}const yt=vt;const xt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xt).forEach(([e,t])=>{xt[t]=e});const wt=xt;const At=function e(t){const n=new bt(t),r=o(bt.prototype.request,n);return Y.extend(r,bt.prototype,n,{allOwnKeys:!0}),Y.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ge(t,n))},r}(Me);At.Axios=bt,At.CanceledError=Re,At.CancelToken=yt,At.isCancel=_e,At.VERSION=et,At.toFormData=pe,At.AxiosError=le,At.Cancel=At.CanceledError,At.all=function(e){return Promise.all(e)},At.spread=function(e){return function(t){return e.apply(null,t)}},At.isAxiosError=function(e){return Y.isObject(e)&&!0===e.isAxiosError},At.mergeConfig=Ge,At.AxiosHeaders=ie,At.formToJSON=e=>Pe(Y.isHTMLForm(e)?new FormData(e):e),At.getAdapter=ct.getAdapter,At.HttpStatusCode=wt,At.default=At;const St=At;var Ct=n(87959),$t=n(89038);function kt(){return(0,$t.toObject)(window.jjbCommonHttpConfig)}(0,$t.isUndefined)(window.__JJB_ENVIRONMENT__);const Et=(0,$t.toObject)(window.__JJB_ENVIRONMENT__),Ot=(0,$t.toObject)(window.jjbCommonGlobalConfig),Pt=(0,$t.toObject)(Ot.httpInterceptor),jt=Pt.request,It=Pt.response,Mt=/^http[s]?:\/\//;function Tt(e,t,n={},r={}){(0,$t.isUndefined)(Et.API_HOST);const o=function(e){const{baseUrl:t,API_HOST:n}=kt();if(!(0,$t.isUndefined)(t)||!(0,$t.isUndefined)(n)){const r=n||t;return Mt.test(e)?e:r+e}return Mt.test(e)?e:Et.API_HOST?Et.API_HOST+e:e}(e),i=String(t).toUpperCase();const a=function(e,t){return{["GET"===e?"params":"data"]:t||{}}}(i,n),s=r||{};return new Promise((e,t)=>St({...a,url:o,method:i,headers:s,timeout:Ot.httpTimeout||3e5,responseType:Ot.httpResponseType||"json"}).then(t=>{if((0,$t.isFunction)(It)){const n=It(t);(0,$t.isPromise)(n)?n.then(t=>e(t)):e(t)}else e(t)}).catch(e=>{if(e.response&&401===e.response.status&&(window.onTokenExpire&&window.onTokenExpire(),window.postMessage({type:"__TOKEN_EXPIRE__"})),(0,$t.isFunction)(It)){const n=It(e);(0,$t.isPromise)(n)?n.then(e=>t(e)):t(e)}else t(e)}))}const _t="token";function Rt(e){let t=!1;return-1!==e.indexOf("@")&&(t=!0),{has:t,url:e.replace(/@/g,"")}}function Bt(e,t,n={},r=!1){let o=(0,$t.toObject)(r);const{header:i}=kt();return(0,$t.isUndefined)(i)?!o[_t]&&window.sessionStorage[_t]&&(o[_t]=window.sessionStorage[_t]):o=i,Et.tenantCode&&(o.tenantCode=Et.tenantCode),new Promise((r,i)=>{Tt(e,t,n,o).then(e=>r(function(e){if(200===e.status){const t=(0,$t.toObject)(e.data);return t.success||t.errMessage&&Ct.Ay.error(t.errMessage),{...t,success:!(0,$t.isUndefined)(t.success)&&t.success,message:t.errMessage,respMsg:t.errMessage,respCode:t.errCode||"0000",respDesc:t.errMessage}}}(e))).catch(e=>i(e))})}function Ft(e,t,n={},r=!1){return(0,$t.isFunction)(jt)?new Promise((o,i)=>{const a=jt(e,t,n,r);(0,$t.isPromise)(a)&&a.then(e=>{Bt(...e).then(e=>o(e)).catch(e=>i(e))})}):Bt(e,t,n,r)}function Dt(e,t={},n={}){if(Rt(e).has)throw Error("[@cqsjjb/jjb-common-lib]: Get请求不允许使用“@”操作符!");return Ft(e,"get",t,n)}function zt(e,t={},n={}){const{has:r,url:o}=Rt(e);return Ft(o,"post",r?t:{request:t},n)}function Nt(e,t={},n={}){const{has:r,url:o}=Rt(e);return Ft(o,"delete",r?t:{request:t},n)}function Lt(e,t={},n={},r=""){const{has:o,url:i}=Rt(e);return Ft(i,"put",o?t:{request:t},n)}function Ht(e,t={},n={}){const{has:r,url:o}=Rt(e);return Ft(o,"patch",r?t:{request:t},n)}},28958(e,t,n){"use strict";n.r(t),n.d(t,{color:()=>i,crypto:()=>r,eventBus:()=>o,http:()=>s,qs:()=>a,setJJBCommonAntdMessage:()=>g,tools:()=>l});var r={};n.r(r),n.d(r,{AES_128_Decrypt:()=>p,AES_128_Encrypt:()=>h,MD5:()=>f});var o={};n.r(o),n.d(o,{eventBus:()=>m});const i={BLANK:"#000",BLUE:"#1890FF",Blue_10:"#199BFF",CYAN:"#13C2C2",GEEKBLUE:"#2F54EB",GRAY:"gray",GRAYSKYBLUE:"#F2F9FF",GRAY_333:"#333",GRAY_444:"#444",GRAY_555:"#555",GRAY_666:"#666",GRAY_777:"#777",GRAY_888:"#888",GRAY_999:"#595959",GRAY_AAA:"#AAA",GRAY_B8:"#b8b8b8",GRAY_BBB:"#BBB",GRAY_CCC:"#888",GRAY_DDD:"#DDD",GRAY_EEE:"#EEE",GRAY_F0:"#F0F0F0",GRAY_F1:"#F1F1F1",GRAY_F2:"#F2F2F2",GRAY_F3:"#F3F3F3",GRAY_F4:"#F4F4F4",GRAY_F5:"#F5F5F5",GRAY_F6:"#F6F6F6",GRAY_F7:"#F7F7F7",GRAY_F8:"#F8F8F8",GRAY_F9:"#F9F9F9",GRAY_F9FA:"#F9FAFA",GRAY_FA:"#FAFAFA",GRAY_FB:"#FBFBFB",GRAY_FC:"#FCFCFC",GRAY_FD:"#FDFDFD",GRAY_FE:"#FEFEFE",GRAY_a2:"#a2a2a2",GRAY_f5fe:"#edf5fe",GREEN:"#52C41A",GREEN_10:"#52C41A",GREEN_4B:"#70BA4B",GREY_10:"grey",MAGENTA:"#EB2F96",ORANGE:"#FA8C16",PINK:"#EB2F96",PURPLE:"#722ED1",RED:"#F5222D",RED_10:"#FF4D4F",RED_5:"#F16C69",VOLCANO:"#FA541C",WHITE:"#FFFFFF",YELLOW:"#fadb14"};var a=n(20049),s=n(8421),l=n(89038),c=n(21396),d=n.n(c);const u="f4k9f5w7f8g4er26";function h(e){try{return d().AES.encrypt(d().enc.Utf8.parse(e),d().enc.Utf8.parse(u),{iv:d().enc.Utf8.parse("0000000000000000"),mode:d().mode.ECB,padding:d().pad.Pkcs7}).toString()}catch(e){return""}}function p(e){try{return d().AES.decrypt(e,d().enc.Utf8.parse(u),{mode:d().mode.ECB,padding:d().pad.Pkcs7}).toString(d().enc.Utf8).toString()}catch(e){return""}}function f(e){try{return d().MD5(e).toString()}catch(e){return""}}const m=new class{constructor(){this.eventTarget=window,this.eventDataStore={}}on(e,t,n=!1){const r=e=>{t(e.detail)};return this.eventTarget.addEventListener(e,r),n&&this.eventDataStore.hasOwnProperty(e)&&t(this.eventDataStore[e]),r}emit(e,t){this.eventDataStore[e]=t;const n=new CustomEvent(e,{detail:t,bubbles:!1,cancelable:!1});this.eventTarget.dispatchEvent(n)}off(e,t){t&&this.eventTarget.removeEventListener(e,t)}getEventData(e){return this.eventDataStore[e]}clearEventData(e){e?delete this.eventDataStore[e]:this.eventDataStore={}}};function g(){}},20049(e,t,n){"use strict";n.r(t),n.d(t,{parse:()=>o,stringify:()=>i});var r=n(89038);function o(e){const t={};if(!(0,r.isString)(e))return t;try{const n=new URL(e);if(n.search){const n=new URL(e).searchParams;for(const[e,r]of n.entries())t[e]=decodeURIComponent(r);return t}return n.hash?o(`http://127.0.0.1?${(0,r.toString)(location.hash.split("?")[1])}`):{}}catch(e){return t}}function i(e,t=!0){if(!(0,r.isObject)(e))return;const n=new URLSearchParams;return Object.keys(e).forEach(t=>{const r=e[t];n.append(t,r)}),n.size?`${t?"?":""}${n.toString()}`:""}},89038(e,t,n){"use strict";n.r(t),n.d(t,{FALSE_ENUM:()=>I,TRUE_ENUM:()=>j,arrayHelper:()=>ze,arrayStringTrim:()=>We,asyncWait:()=>Ne,base64ToFile:()=>Je,classNames:()=>Be,cleanArray:()=>F,cleanObject:()=>D,createOnlyKey:()=>Qe,fileToBase64:()=>et,getAllAntProTableConfigCache:()=>v,getAntProTableConfigCache:()=>b,getBase64ToFile:()=>Ze,getCalcAspectRadio:()=>nt,getDynamicFormilyDesignScheme:()=>$,getDynamicFormilyFieldValue:()=>k,getDynamicFormilyFields:()=>P,getDynamicFormilyUploadFileUrl:()=>C,getDynamicUploadFileList:()=>S,getEnumLabel:()=>lt,getEnumValue:()=>ct,getFileToBase64:()=>tt,getPaginationNumberCalc:()=>st,getPrimaryType:()=>G,getSplitStringValue:()=>ot,getSplitterValue:()=>rt,getTargetValue:()=>it,groupByDynamicFormilyField:()=>E,inIframe:()=>Fe,inWxBrowser:()=>De,is2DArray:()=>Z,isArray:()=>X,isBodyElement:()=>_e,isBool:()=>q,isBoolEnum:()=>ue,isDate:()=>$e,isDocumentElement:()=>Te,isElement:()=>U,isEmptyArray:()=>Ge,isEmptyObject:()=>z,isEmptyString:()=>Ue,isEmptyStringArray:()=>ne,isEmptyStringObject:()=>te,isFalseEnum:()=>de,isFalseStr:()=>ce,isFalseValue:()=>Ve,isFunction:()=>fe,isImageURL:()=>ie,isMap:()=>Ee,isNativeEvent:()=>V,isNull:()=>pe,isNumber:()=>je,isNumberArray:()=>Y,isObject:()=>Ce,isObjectArray:()=>J,isPrimaryBigint:()=>Ae,isPrimaryBool:()=>ye,isPrimaryFunction:()=>me,isPrimaryNumber:()=>ge,isPrimaryObject:()=>ve,isPrimaryString:()=>be,isPrimarySymbol:()=>we,isPrimaryUndefined:()=>xe,isPromise:()=>Se,isRegExp:()=>Pe,isSet:()=>Oe,isString:()=>Ie,isStringArray:()=>ee,isSymbol:()=>ke,isTrueEnum:()=>se,isTrueStr:()=>le,isUndefined:()=>he,isUploadFileListArray:()=>Q,isValidArray:()=>K,isWindow:()=>Me,modalConfirmHelper:()=>at,noop:()=>re,parseArray:()=>_,parseJSON:()=>M,parseObject:()=>T,removeAntProTableConfigCache:()=>m,router:()=>Xe,routerParamMerge:()=>Ye,routerParamQuery:()=>Ke,setAntProTableConfigCache:()=>g,stringifyArray:()=>B,stringifyObject:()=>R,textPlaceholder:()=>ae,toArray:()=>oe,toArrayForce:()=>Re,toBoolEnum:()=>He,toCamelCase:()=>dt,toFunction:()=>W,toNumber:()=>H,toObject:()=>N,toPascalCase:()=>ut,toString:()=>L,uniqueArray:()=>Le});var r,o=n(58168);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));var i=function(e){return e};var a="beforeunload",s="popstate";function l(e){e.preventDefault(),e.returnValue=""}function c(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function d(){return Math.random().toString(36).substr(2,8)}function u(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,i=e.hash,a=void 0===i?"":i;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function h(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var p=n(20049),f=n(8421);function m(e){try{0;const t=`safetyDutyList#${decodeURIComponent(e)}`;window.localStorage.removeItem(t)}catch(e){}}function g(e,t){try{0;const n=`safetyDutyList#${decodeURIComponent(e)}`;try{window.localStorage.setItem(n,JSON.stringify(t))}catch(e){}}catch(e){}}function b(e){try{0;const t=`safetyDutyList#${decodeURIComponent(e)}`;try{return JSON.parse(window.localStorage.getItem(t))}catch(e){return{}}}catch(e){}}function v(){try{const e=[];return Object.keys(localStorage).filter(e=>/^[a-zA-Z]+#/.test(e)).forEach(t=>{const[n,r]=t.split("#");e.push({route:r,identify:n,cache:b(r)})}),e}catch(e){return[]}}const y="FIELD_SELECT",x="FIELD_FILE",w="FIELD_TEXT",A="FIELD_CHECKBOX";function S(e=[]){return e&&X(e)&&e.length?e.map(e=>N(e.response)).map(e=>{let t,n,r;return e?.data?(t=C(e.data),r=e.data?.ext,n=e.data?.name):(t=C(e),r=e.ext,n=e.name),{url:t,ext:r,name:`${n}.${r}`,isImage:ie(t)}}):[]}function C(e){return e.url||e.fileUrl||e.src}function $(e,t){const n=N(t);return e?t.token?t.host?new Promise((t,r)=>{(0,f.Get)(`${n.host}/design/designs/${e}`,{},{token:n.token}).then(e=>{if(e.success)if(pe(e.data))t({});else{const n=N(e.data);t(T(n.config))}else r(`[@cqsjjb/jjb-common-lib]: ${e.errMessage}`)})}):Promise.reject("[@cqsjjb/jjb-common-lib]: 表单设计入参 'option.host' 不能为空!"):Promise.reject("[@cqsjjb/jjb-common-lib]: 表单设计入参 'option.token' 不能为空!"):Promise.reject("[@cqsjjb/jjb-common-lib]: 表单设计入参 'code' 不能为空!")}function k(e={},t,n={}){if(z(e))return t;const{formType:r,fromComponentEnum:o}=N(e),i=oe(T(e.extJson).enums);if(o===y){const e=i.find(e=>e.value===rt(t));if(e&&e.label)return rt(e.label)}if(o===A&&X(t)){const e=i.filter(e=>t.includes(e.value));return e.length>0?e.map(e=>e.label).join("、"):void 0}if(o===w){if("Cascader"===r)return function(e=[],t){return e?.find(e=>e.parentCodes===oe(t)?.join(","))}(n.regions,t)?.parentNames||"-";return!he(e.httpInfo)?{load:()=>{const{httpUrl:t,headers:n}=N(e.httpInfo);return t?fetch(t,{headers:N(n)}):Promise.resolve(null)},selected:rt(t,!0)}:rt(t)}return o===x?S(t):t}function E(e){const[t,n]=[[],new Map];for(const t of e)t.parentCode?n.get(t.parentCode)?n.set(t.parentCode,[...n.get(t.parentCode),t]):n.set(t.parentCode,[t]):n.set(t.fieldCode,t);return Array.from(n.keys()).forEach(e=>{const r=n.get(e);X(r)?t.push({children:r,fieldCode:e,fromComponentEnum:"GRID_FORM"}):t.push(r)}),t}function O(e=[]){const t=[];return function e(n){for(let r=0;r{const o=k(e,t[e.fieldCode],n),i=T(e.extJson),a=X(i)?[]:i.enums,s=X(i)?i:[],{name:l,formType:c,extValues:d,fieldCode:u,parentCode:h,requiredEnum:p,fromComponentEnum:f,fieldDataTypeEnum:m}=e;r.push({name:l,value:o,extValues:d,enumList:a,tableColumns:s,formType:X(i)?"Table":c,fieldCode:u,parentCode:h,requiredEnum:p,fromComponentEnum:f,fieldDataTypeEnum:m})}),e.forEach(({name:e,formType:t,fieldCode:n,parentCode:i,requiredEnum:a,fromComponentEnum:s,fieldDataTypeEnum:l})=>{r.some(e=>e.fieldCode===n)||o.push({name:e,formType:t,fieldCode:n,parentCode:i,requiredEnum:a,fromComponentEnum:s,fieldDataTypeEnum:l,value:null,enumList:[]})}),r.concat(o))}(e,t,{regions:O(oe(n?.regions))});return E(r)}const j="TRUE",I="FALSE";function M(e){if("string"!=typeof e||!e.trim())return e;const t=e.trim();if(!t.startsWith("{")&&!t.startsWith("["))return t;try{return JSON.parse(t)}catch(e){return t}}function T(e){try{return JSON.parse(e||"{}")}catch(e){return{}}}function _(e){try{return JSON.parse(e||"[]")}catch(e){return[]}}function R(e,t=null,n=2){try{return JSON.stringify(e,t,n)}catch(e){return"{}"}}function B(e,t=null,n=2){try{return JSON.stringify(e,t,n)}catch(e){return"[]"}}function F(e){return _(B(e))}function D(e){return T(R(e))}function z(e){return!Ce(e)||0===Object.keys(e).length}function N(e){return z(e)?{}:e}function L(e){return Ie(e)?e:""}function H(e){const t=Ie(e)?Number(e):NaN;return isNaN(t)?e:t}function W(e){return me(e)?e:re}function U(e){return e instanceof Element}function V(e){return e instanceof Event}function G(e){return Object.prototype.toString.call(e).replace(/(\W|object)/g,"")}function q(e){return"Boolean"===G(e)}function X(e){return"Array"===G(e)}function K(e){return X(e)&&0!==e.length}function Y(e){if(K(e)){let t=0;for(const n of e)je(n)||(t+=1);return 0===t}return!1}function Q(e){return X(e)&&0!==e.length&&!he(e[0].status)}function J(e){if(K(e)){let t=0;for(const n of e)Ce(n)||(t+=1);return 0===t}return!1}function Z(e){if(K(e)){let t=0;for(const n of e)X(n)||(t+=1);return 0===t}return!1}function ee(e){if(K(e)){let t=0;for(const n of e)Ie(n)||(t+=1);return 0===t}return!1}function te(e){return Ie(e)&&"{}"===e}function ne(e){return Ie(e)&&"[]"===e}function re(){}function oe(e){return X(e)?e:[]}function ie(e){return/\.(png|jpeg|jpg|gif|ico|ebp)$/.test(e)}function ae(e,t){return e||t||"--"}function se(e){return e===j}function le(e){return"true"===e}function ce(e){return"false"===e}function de(e){return e===I}function ue(e){return se(e)||de(e)}function he(e){return"Undefined"===G(e)}function pe(e){return"Null"===G(e)}function fe(e){return"Function"===G(e)}function me(e){return"function"==typeof e}function ge(e){return"number"==typeof e}function be(e){return"string"==typeof e}function ve(e){return!pe(e)&&"object"==typeof e}function ye(e){return"boolean"==typeof e}function xe(e){return void 0===e}function we(e){return"symbol"==typeof e}function Ae(e){return"bigint"==typeof e}function Se(e){return"Promise"===G(e)}function Ce(e){return"Object"===G(e)}function $e(e){return"Date"===G(e)}function ke(e){return"Symbol"===G(e)}function Ee(e){return"Map"===G(e)}function Oe(e){return"Set"===G(e)}function Pe(e){return"RegExp"===G(e)}function je(e){return"Number"===G(e)}function Ie(e){return"String"===G(e)}function Me(e){return"Window"===G(e)}function Te(e){return"HTMLDocument"===G(e)}function _e(e){return"HTMLBodyElement"===G(e)}function Re(e){return X(e)?e:[].concat(e).filter(Boolean)}function Be(...e){const t=[];return function e(n){for(const r of n)X(r)&&r.length?e(r):r&&t.push(r)}(e),t.join(" ")}function Fe(){return window.top!==window.self}function De(){const e=window.navigator.userAgent.toLowerCase();return-1!==e.indexOf("micromessenger")&&-1!==e.indexOf("miniprogram")}const ze={find:{array(e=[],t){const n=oe(e).find(t);return X(n)?n:[]},object(e=[],t){const n=oe(e).find(t);return Ce(n)?n:{}},string(e=[],t){const n=oe(e).find(t);return Ie(n)?n:""},number(e=[],t){const n=oe(e).find(t);return je(n)?n:-1},func(e=[],t){const n=oe(e).find(t);return fe(n)?n:re}},at(e=[],t){if((X(e)||je(t))&&!(t>e.length))return 0===t?e[0]:-1===t?e[e.length-1]:e[t]},trim:e=>ee(e)?e.map(e=>e.trim()):[],copy(e){const t=[];if(X(e))for(let n=0;nY(e)?e.reduce((e,t)=>e+t):-1,group(e=[],t){if(isNaN(t)||t<1||t>=e.length)return[e];let n=[];for(let r=0,o=e.length;r{const i=e();n&&r++,(i||n&&r>=n)&&(clearInterval(o),me(t)&&t(i))},100)}function Le(e=[]){return Array.from(new Set(e))}function He(e){return e.toString().toUpperCase()}function We(e){return ze.trim(e)}function Ue(e){return Ie(e)&&""===e}function Ve(e){return""===e||0===e||null==e}function Ge(e){return!X(e)||0===e.length}const qe=e=>{const t=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,p=n.history;function f(){var e=n.location,t=e.pathname,r=e.search,o=e.hash,a=p.state||{};return[a.idx,i({pathname:t,search:r,hash:o,state:a.usr||null,key:a.key||"default"})]}var m=null;n.addEventListener(s,function(){if(m)w.call(m),m=null;else{var e=r.Pop,t=f(),n=t[0],o=t[1];if(w.length){if(null!=n){var i=v-n;i&&(m={action:e,location:o,retry:function(){E(-1*i)}},E(i))}}else k(e)}});var g=r.Pop,b=f(),v=b[0],y=b[1],x=c(),w=c();function A(e){return"string"==typeof e?e:u(e)}function S(e,t){return void 0===t&&(t=null),i((0,o.A)({pathname:y.pathname,hash:"",search:""},"string"==typeof e?h(e):e,{state:t,key:d()}))}function C(e,t){return[{usr:e.state,key:e.key,idx:t},A(e)]}function $(e,t,n){return!w.length||(w.call({action:e,location:t,retry:n}),!1)}function k(e){g=e;var t=f();v=t[0],y=t[1],x.call({action:g,location:y})}function E(e){p.go(e)}null==v&&(v=0,p.replaceState((0,o.A)({},p.state,{idx:v}),""));var O={get action(){return g},get location(){return y},createHref:A,push:function e(t,o){var i=r.Push,a=S(t,o);if($(i,a,function(){e(t,o)})){var s=C(a,v+1),l=s[0],c=s[1];try{p.pushState(l,"",c)}catch(e){n.location.assign(c)}k(i)}},replace:function e(t,n){var o=r.Replace,i=S(t,n);if($(o,i,function(){e(t,n)})){var a=C(i,v),s=a[0],l=a[1];p.replaceState(s,"",l),k(o)}},go:E,back:function(){E(-1)},forward:function(){E(1)},listen:function(e){return x.push(e)},block:function(e){var t=w.push(e);return 1===w.length&&n.addEventListener(a,l),function(){t(),w.length||n.removeEventListener(a,l)}}};return O}(),n=[],p={...Xe.query,...N(e)};Object.keys(p).forEach(e=>{const t=p[e];pe(t)||he(t)||Ue(t)||n.push(`${e}=${window.decodeURIComponent(t)}`)});const{location:{hash:f,pathname:m}}=t;t.replace(`${m}${f.split("?")[0]}${n.length?`?${n.join("&")}`:""}`)},Xe={values:()=>Object.values(Xe.query),keys:()=>Object.keys(Xe.query),get length(){return Xe.toString().length},toString:(e=!1)=>(0,p.stringify)(Xe.query,e),has:e=>Ie(e)&&Xe.keys().includes(e),get query(){const e=(0,p.parse)(window.location.href);return new Proxy(e,{get:(e,t)=>e[t]||void 0,set:(e,t,n)=>(qe({[t]:n}),!0),deleteProperty:(e,t)=>(qe({[t]:void 0}),!0)})},add(e,t){Ie(e)&&(Xe.query={[e]:t})},delete(e){Ie(e)&&(Xe.query={[e]:void 0})},set query(e){qe(e)}};function Ke(){return Xe.query}function Ye(...e){return Xe.query=arguments[0],Promise.resolve()}function Qe(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZ",t=[];for(let n=0;n<26;n++)t.push(e[Math.floor(26*Math.random())]);return`__KEY_${t.join("")}__`}function Je(e,t){try{const n=e.split(","),r=n[0].match(/:(.*?);/)[1],o=atob(n[1]);let i=o.length;const a=new Uint8Array(i);for(;i--;)a[i]=o.charCodeAt(i);return new File([a],t,{type:r})}catch(e){return}}function Ze(e,t){return Je(e,t)}function et(e){return new Promise((t,n)=>{const r=new FileReader;let o;r.readAsDataURL(e),r.onload=()=>o=r.result,r.onerror=e=>n(e),r.onloadend=()=>t(o)})}function tt(e){return et(e)}function nt(e,t){return{x:16,y:16/(e/t),width:e,height:t,different:e/t}}function rt(e,t=!1){if(!Ie(e)||-1===e.indexOf("&"))return X(e)?e.map(e=>rt(e,t)):e;if(f.HTTP_URL_REG.test(e))return e;{const n=e.split("&");if(t){const[e,t]=n;return{key:e?.trim(),label:t?.trim()}}if(n.length>1)return n[n.length-1]}}const ot=rt;function it(e){if(V(e))return N(e.target).value}function at(e){const{title:t,actionType:n,config:r={},payload:o={},showMsg:i=!1,needMsg:a=!1,success:s}=e,l=window.$$jjbCommonAntdMessage||{success:re};return{title:t,...r,onOk:()=>this.props[n](o).then(e=>{e.success&&((a||i)&&l.success(e.respMsg),s&&s())})}}function st(e){const t=Xe.query,n=t.page?"page":"pageIndex";let r=parseInt(t[n]||1,0);return Xe.query={...t,[n]:1===r?r:1===e?r-1:r},Promise.resolve()}function lt(e){return Ie(e)?e:Ce(e)?e.label:void 0}function ct(e){return Ie(e)?e:Ce(e)?e.value:void 0}function dt(e){return Ie(e)?e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase()):""}function ut(e){return Ie(e)?e.replace(/(^\w|_\w)/g,e=>e.replace("_","").toUpperCase()):""}},38105(e,t,n){"use strict";n.d(t,{P:()=>f});var r=n(96540),o=n(54625),i=n(56347),a=n(1568);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t!!e&&"index"!==e);t.stat=n.length>0,t.param=n.join("_")}return t}function d(e){return`${e[0].toLowerCase()}${e.substring(1)}`}function u(e=[]){const t=[],r=e.find(e=>"/"===e.path);return e.forEach(n=>{if("/"===n.path)return;const r=n.path.split("/").slice(1);n.parentFile=1===r.length?null:e.find(e=>e.path==="/"+r.slice(0,-1).join("/"))?.file,t.push(n)}),r&&(Object.assign(r,{parentFile:null}),t.push(r)),t.forEach(e=>{e.children=t.filter(t=>t.parentFile===e.file)}),function(e=[]){return function e(t=[]){return t.map(t=>({...t,children:t.children?.length?e(t.children):[],Component:n(10016)(`./pages${t.file.replace(/^\./,"")}`).default}))}(e)}(t.filter(e=>null===e.parentFile))}class h extends r.Component{constructor(e){super(e),this.state={hasError:!1,error:null,componentStack:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.setState({componentStack:t?.componentStack})}render(){return this.state.hasError?r.createElement(a.Ay,{status:"error",title:"抱歉,应用内部发生异常错误。",subTitle:r.createElement("div",null,r.createElement("div",{style:{color:"#333"}},this.state.error?.message),r.createElement("div",{style:{width:500,margin:"auto",textAlign:"left",whiteSpace:"pre"}},this.state.componentStack))}):this.props.children}}function p(e=[],{app:t}){return r.createElement(i.Switch,null,e.map(({path:e,children:n,Component:o},a)=>r.createElement(i.Route,{key:a,path:e,exact:"/"===e,render:e=>r.createElement(o,s({},e,{_app:t}),n.length>0&&p(n,{app:t}))})),r.createElement(i.Route,{path:"*",render:({location:t})=>e.some(e=>{if("/"===e.path)return!1;const n=e.path.replace(/\/$/,""),r=t.pathname.replace(/\/$/,"");return r.startsWith(n+"/")||r===n||n.includes(r)})?null:r.createElement(a.Ay,{status:"info",title:"抱歉,您访问的应用页面不存在。",subTitle:r.createElement("div",{style:{textAlign:"left",maxWidth:360,margin:"auto"}},r.createElement("div",{style:{marginBottom:16}},"路径: ",r.createElement("span",{style:{color:"#000"}},t.pathname)),r.createElement("div",{style:{color:"#666"}},"可能的原因是:"),r.createElement("ul",null,r.createElement("li",null,"应用可能正在发版更新中,请稍后再试。"),r.createElement("li",null,"此页面不在应用的页面目录中,或已被删除。"),r.createElement("li",null,"页面地址拼写错误,请检查页面地址是否正确。")))})}))}const f=({app:e})=>{const t=u(function(){const e=[];return n(2778).keys().forEach(t=>{if(/components|tools|assets/.test(t))return;const n=t.split("/"),r=n[n.length-1],{stat:o,param:i}=c(r),a=n.slice(1,n.length-1).map(e=>{const{stat:t,param:n}=c(e);return t?`:${n}`:e});if(o||["index.js","index.ts","index.cjs","index.mjs","index.tsx","index.jsx"].includes(r)){const n="/"+a.map(d).join("/")+(o?`/:${i}`:"");/\s/.test(n),e.push({path:n,file:t})}}),e.reverse()}());return r.createElement(o.Kd,{basename:l},r.createElement(h,null,p(t,{app:e})))}},90146(e,t,n){"use strict";n.d(t,{dm:()=>rt,CV:()=>Ke,Hx:()=>tt,$R:()=>et,mj:()=>Qe});var r=n(96540),o=n(61225),i=n(89038),a=n(28958),s=n(89379),l=n(82284),c=n(60436),d=n(20311),u=n.n(d),h=n(44499),p=n(49697),f=n.n(p),m=n(64467);function g(e){for(var t=1;t-1,"plugin.apply: hook ".concat(e," cannot be applied"));var r=n[e];return function(){if(r.length){var e=!0,n=!1,o=void 0;try{for(var i,a=r[Symbol.iterator]();!(e=(i=a.next()).done);e=!0){i.value.apply(void 0,arguments)}}catch(e){n=!0,o=e}finally{try{e||null==a.return||a.return()}finally{if(n)throw o}}}else t&&t.apply(void 0,arguments)}}},{key:"get",value:function(e){var t,n=this.hooks;return u()(e in n,"plugin.get: hook ".concat(e," cannot be got")),"extraReducers"===e?function(e){var t={},n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){t=g({},t,i.value)}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}(n[e]):"onReducer"===e?(t=n[e],function(e){var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0)e=(0,i.value)(e)}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return e}):n[e]}}]),e}();function H(e,t){var n="".concat(t.namespace).concat(F).concat(e),r=n.replace(/\/@@[^/]+?$/,"");return(Array.isArray(t.reducers)?t.reducers[0][r]:t.reducers&&t.reducers[r])||t.effects&&t.effects[r]?n:e}function W(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return j().mark(function i(){var a;return j().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:i.t0=j().keys(e);case 1:if((i.t1=i.t0()).done){i.next=7;break}if(a=i.t1.value,!Object.prototype.hasOwnProperty.call(e,a)){i.next=5;break}return i.delegateYield(j().mark(function i(){var s,l;return j().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return s=U(a,e[a],t,n,r,o),i.next=3,v.zb.fork(s);case 3:return l=i.sent,i.next=6,v.zb.fork(j().mark(function e(){return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.zb.take("".concat(t.namespace,"/@@CANCEL_EFFECTS"));case 2:return e.next=4,v.zb.cancel(l);case 4:case"end":return e.stop()}},e)}));case 6:case"end":return i.stop()}},i)})(),"t2",5);case 5:i.next=1;break;case 7:case"end":return i.stop()}},i)})}function U(e,t,n,r,o,i){var a,s,l=j().mark(g),d=t,h="takeEvery";if(Array.isArray(t)){var p=(0,O.A)(t,1);d=p[0];var f=t[1];f&&f.type&&("throttle"===(h=f.type)&&(u()(f.ms,"app.start: opts.ms should be defined if type is throttle"),a=f.ms),"poll"===h&&(u()(f.delay,"app.start: opts.delay should be defined if type is poll"),s=f.delay)),u()(["watcher","takeEvery","takeLatest","throttle","poll"].indexOf(h)>-1,"app.start: effect type should be takeEvery, takeLatest, throttle, poll or watcher")}function m(){}function g(){var t,o,a,s,u,h,p,f,g,b=arguments;return j().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:for(t=b.length,o=new Array(t),a=0;a0?o[0]:{},u=s.__dva_resolve,h=void 0===u?m:u,p=s.__dva_reject,f=void 0===p?m:p,l.prev=2,l.next=5,v.zb.put({type:"".concat(e).concat(F,"@@start")});case 5:return l.next=7,d.apply(void 0,(0,c.A)(o.concat(V(n,i))));case 7:return g=l.sent,l.next=10,v.zb.put({type:"".concat(e).concat(F,"@@end")});case 10:h(g),l.next=17;break;case 13:l.prev=13,l.t0=l.catch(2),r(l.t0,{key:e,effectArgs:o}),l.t0._dontReject||f(l.t0);case 17:case"end":return l.stop()}},l,null,[[2,13]])}var b=function(e,t,n,r){var o=!0,i=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){t=(0,s.value)(t,v.zb,n,r)}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}return t}(o,g,n,e);switch(h){case"watcher":return g;case"takeLatest":return j().mark(function t(){return j().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v.zb.takeLatest(e,b);case 2:case"end":return t.stop()}},t)});case"throttle":return j().mark(function t(){return j().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v.zb.throttle(a,e,b);case 2:case"end":return t.stop()}},t)});case"poll":return j().mark(function t(){var n,r,o,i,a,l,c;return j().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:o=function(e,t){var o;return j().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:o=e.call;case 1:return n.next=4,o(b,t);case 4:return n.next=6,o(r,s);case 6:n.next=1;break;case 8:case"end":return n.stop()}},n)},r=function(e){return new Promise(function(t){return setTimeout(t,e)})},n=j().mark(o),i=v.zb.call,a=v.zb.take,l=v.zb.race;case 4:return t.next=7,a("".concat(e,"-start"));case 7:return c=t.sent,t.next=10,l([i(o,v.zb,c),a("".concat(e,"-stop"))]);case 10:t.next=4;break;case 12:case"end":return t.stop()}},t)});default:return j().mark(function t(){return j().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v.zb.takeEvery(e,b);case 2:case"end":return t.stop()}},t)})}}function V(e,t){function n(n,r){u()(n,"dispatch: action should be a plain Object with type");var o=t.namespacePrefixWarning;(void 0===o||o)&&S()(0!==n.indexOf("".concat(e.namespace).concat(F)),"[".concat(r,"] ").concat(n," should not be prefixed with namespace ").concat(e.namespace))}function r(t){var r=t.type;return n(r,"sagaEffects.put"),v.zb.put(g({},t,{type:H(r,e)}))}return r.resolve=function(t){var r=t.type;return n(r,"sagaEffects.put.resolve"),v.zb.put.resolve(g({},t,{type:H(r,e)}))},g({},v.zb,{put:r,take:function(t){return"string"==typeof t?(n(t,"sagaEffects.take"),v.zb.take(H(t,e))):Array.isArray(t)?v.zb.take(t.map(function(t){return"string"==typeof t?(n(t,"sagaEffects.take"),H(t,e)):t})):v.zb.take(t)}})}function G(e){return e}function q(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:G;return function(n,r){var o=r.type;return u()(o,"dispatch: action should be a plain Object with type"),e===o?t(n,r):n}}(t,e[t])}),r=q.apply(void 0,(0,c.A)(n));return function(){return r(arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,arguments.length>1?arguments[1]:void 0)}}function K(e,t,n){return Array.isArray(e)?e[1]((n||X)(e[0],t)):(n||X)(e||{},t)}function Y(e){return function(){return function(t){return function(n){return function(t){if(!t||"string"!=typeof t)return!1;var n=t.split(F),r=(0,O.A)(n,1)[0],o=e._models.filter(function(e){return e.namespace===r})[0];if(o&&o.effects&&o.effects[t])return!0;return!1}(n.type)?new Promise(function(e,r){t(g({__dva_resolve:e,__dva_reject:r},n))}):t(n)}}}}function Q(e,t){return function(n){var r=n.type;return u()(r,"dispatch: action should be a plain Object with type"),S()(0!==r.indexOf("".concat(t.namespace).concat(F)),"dispatch: ".concat(r," should not be prefixed with namespace ").concat(t.namespace)),e(g({},n,{type:H(r,t)}))}}function J(e,t,n,r){var o=[],i=[];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=(0,e[a])({dispatch:Q(n._store.dispatch,t),history:n._history},r);M(s)?o.push(s):i.push(a)}return{funcs:o,nonFuncs:i}}function Z(e,t){if(e[t]){var n=e[t],r=n.funcs,o=n.nonFuncs;S()(0===o.length,"[app.unmodel] subscription should return unlistener function, check these subscriptions ".concat(o.join(", ")));var i=!0,a=!1,s=void 0;try{for(var l,c=r[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){(0,l.value)()}}catch(e){a=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}delete e[t]}}var ee=_,te=R,ne={namespace:"@@dva",state:0,reducers:{UPDATE:function(e){return e+1}}};function re(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.initialReducer,o=n.setupApp,i=void 0===o?ee:o,a=new L;a.use((e=t,Object.keys(e).reduce(function(t,n){return N.indexOf(n)>-1&&(t[n]=e[n]),t},{})));var s={_models:[z(g({},ne))],_store:null,_plugin:a,use:a.use.bind(a),model:d,start:function(){var e=function(e,t){e&&("string"==typeof e&&(e=new Error(e)),e.preventDefault=function(){e._dontReject=!0},a.apply("onError",function(e){throw new Error(e.stack||e)})(e,s._store.dispatch,t))},o=(0,v.Ay)(),d=Y(s);s._getSaga=W.bind(null);var m=[],y=g({},r),x=!0,w=!1,A=void 0;try{for(var S,C=s._models[Symbol.iterator]();!(x=(S=C.next()).done);x=!0){var $=S.value;y[$.namespace]=K($.reducers,$.state,a._handleActions),$.effects&&m.push(s._getSaga($.effects,$,e,a.get("onEffect"),t))}}catch(e){w=!0,A=e}finally{try{x||null==C.return||C.return()}finally{if(w)throw A}}var k=a.get("onReducer"),O=a.get("extraReducers");u()(Object.keys(O).every(function(e){return!(e in y)}),"[app.start] extraReducers is conflict with other reducers, reducers list: ".concat(Object.keys(y).join(", "))),s._store=function(e){var t=e.reducers,n=e.initialState,r=e.plugin,o=e.sagaMiddleware,i=e.promiseMiddleware,a=e.createOpts.setupMiddlewares,s=void 0===a?T:a,d=r.get("extraEnhancers");u()(I(d),"[app.start] extraEnhancers should be array, but got ".concat((0,l.A)(d)));var h=r.get("onAction"),p=s([i,o].concat((0,c.A)(E()(h)))),f=b.Zz,m=[b.Tw.apply(void 0,(0,c.A)(p))].concat((0,c.A)(d));return(0,b.y$)(t,n,f.apply(void 0,(0,c.A)(m)))}({reducers:q(),initialState:t.initialState||{},plugin:a,createOpts:n,sagaMiddleware:o,promiseMiddleware:d});var P=s._store;P.runSaga=o.run,P.asyncReducers={};var j=a.get("onStateChange"),M=!0,_=!1,R=void 0;try{for(var B,F=function(){var e=B.value;P.subscribe(function(){e(P.getState())})},D=j[Symbol.iterator]();!(M=(B=D.next()).done);M=!0)F()}catch(e){_=!0,R=e}finally{try{M||null==D.return||D.return()}finally{if(_)throw R}}m.forEach(o.run),i(s);var z={},N=!0,L=!1,H=void 0;try{for(var U,V=this._models[Symbol.iterator]();!(N=(U=V.next()).done);N=!0){var G=U.value;G.subscriptions&&(z[G.namespace]=J(G.subscriptions,G,s,e))}}catch(e){L=!0,H=e}finally{try{N||null==V.return||V.return()}finally{if(L)throw H}}function q(){return k((0,b.HY)(g({},y,O,s._store?s._store.asyncReducers:{})))}s.model=h.bind(s,q,e,z),s.unmodel=p.bind(s,q,y,z),s.replaceModel=f.bind(s,q,y,z,e)}};return s;function d(e){var t=z(g({},e));return s._models.push(t),t}function h(e,n,r,o){o=d(o);var i=s._store;i.asyncReducers[o.namespace]=K(o.reducers,o.state,a._handleActions),i.replaceReducer(e()),o.effects&&i.runSaga(s._getSaga(o.effects,o,n,a.get("onEffect"),t)),o.subscriptions&&(r[o.namespace]=J(o.subscriptions,o,s,n))}function p(e,t,n,r){var o=s._store;delete o.asyncReducers[r],delete t[r],o.replaceReducer(e()),o.dispatch({type:"@@dva/UPDATE"}),o.dispatch({type:"".concat(r,"/@@CANCEL_EFFECTS")}),Z(n,r),s._models=s._models.filter(function(e){return e.namespace!==r})}function f(e,t,n,r,o){var i=s._store,a=o.namespace,l=te(s._models,function(e){return e.namespace===a});~l&&(i.dispatch({type:"".concat(a,"/@@CANCEL_EFFECTS")}),delete i.asyncReducers[a],delete t[a],Z(n,a),s._models.splice(l,1)),s.model(o),i.dispatch({type:"@@dva/UPDATE"})}}var oe="@@router/LOCATION_CHANGE",ie="@@router/CALL_HISTORY_METHOD",ae=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.type,a=o.payload;if(i===oe){var s=a.location,l=a.action;return a.isFirstRendering?e:n(e,{location:t(s),action:l})}return e}}};var le=n(56347);function ce(e){return ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ce(e)}const de=function(e){var t=e.getIn,n=e.toJS,r=function(e){var r,o=n(t(e,["router"]));if(null==(r=o)||"object"!==ce(r)||!t(r,["location"])||!t(r,["action"]))throw'Could not find router reducer in state tree, it must be mounted under "router"';return o},o=function(e){return n(t(r(e),["location"]))};return{getLocation:o,getAction:function(e){return n(t(r(e),["action"]))},getRouter:r,getSearch:function(e){return n(t(r(e),["location","search"]))},getHash:function(e){return n(t(r(e),["location","hash"]))},createMatchSelector:function(e){var t=null,n=null;return function(r){var i=(o(r)||{}).pathname;if(i===t)return n;t=i;var a=(0,le.matchPath)(i,e);return a&&n&&a.url===n.url||(n=a),n}}}};function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var he={fromJS:function(e){return e},getIn:function(e,t){if(!e)return e;var n=t.length;if(n){for(var r=e,o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.history||(0,h.TM)(),n={initialReducer:{router:ve(t)},setupMiddlewares:function(e){return[ye(t)].concat((0,c.A)(e))},setupApp:function(e){e._history=function(e){var t=e.listen;return e.listen=function(n){var r=n.toString(),o="handleLocationChange"===n.name&&r.indexOf("onLocationChanged")>-1||r.indexOf(".inTimeTravelling")>-1&&r.indexOf(".inTimeTravelling")>-1&&r.indexOf("arguments[2]")>-1;return n(e.location,e.action,{__isDvaPatch:!0}),t.call(e,function(){for(var e=arguments.length,t=new Array(e),r=0;r=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}const Be="call",Fe="assign",De="property",ze="function",Ne=["Post","Get","Put","Patch","Delete"],Le=e=>new Error(`[@cqsjjb/jjb-dva-runtime-models]: ${e}`);function He(e){if(a.tools.isString(e)){const t=e.trim();if((e=>/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e))(e))return{type:De,value:t};if((e=>/^(Post|Get|Patch|Delete|Put)\s*>\s*.+$/.test(e))(e))return{type:Be,value:t};if((e=>/(\||res|&)/g.test(e))(e))return{type:Fe,value:t};throw Le(`参数无效,可能原因:\nA: 不是有效loading属性\nB: 不是有效调用指令\nC: 不是有效赋值指令 -> ${e}`)}if("function"==typeof e)return{type:ze,value:e};throw Le(`参数无效, 不是string或function -> ${e}`)}const We=e=>e.map(e=>e.trim()).filter(Boolean),Ue=e=>e||"__noSetValue";function Ve(e,t,n){let r=n;return t.forEach(t=>{const n=t.replace(/[{}]/g,"");r=r.replace(t,encodeURIComponent(Ue(e[n])))}),r}function Ge(e,t){const n=t.map(e=>e.replace(/[{}]/g,""));return Object.fromEntries(Object.entries(e).filter(([e])=>!n.includes(e)))}function qe(e){if(!e||!e.includes(">"))throw Le(`表达式错误, 缺少箭头 -> ${e}`);const[t]=We(e.split(">"));if(!Ne.includes(t))throw Le(`表达式错误, ${t}不是有效Send类型 -> ${e}`);return(n={})=>{const r=function(e,t){const[,n]=We(t.split(/^(Post|Put|Patch|Delete|Get)\s*>\s*/));if(n.includes("{")&&n.includes("}")){const t=n.match(/{([^{}]+)}/g);return t?{url:Ve(e,t,n),data:Ge(e,t)}:{url:n,data:e}}if(n.includes(">")){const t=We(n.split(">")),r=t.slice(1);return{url:t[0]+"/"+r.map(t=>Ue(e[t])).join("/"),data:Ge(e,r)}}return{url:n,data:e}}(n,e);return a.http[t](r.url,r.data)}}function Xe(e){const{done:t,state:n}="function"==typeof e.res?{done:()=>{},state:{}}:function(e){if(!e)return{done:()=>({}),state:{}};const t={},n=[];return We(e.split("&")).forEach(r=>{const[o,i]=We(r.split(":"));if(!i)throw Le(`表达式错误 '${o}' 缺少默认值 -> ${e}`);const[a,s]=We(i.split(/\s\|\s/));if(!s)throw Le(`表达式错误 '${o}' 缺少被赋值字段 -> ${e}`);t[o]=new Function(`return ${a}`)(),n.push(`${o}: ${s}`)}),{done:new Function(`return function($){const res=$||{};return{${n.join(",")}}}`)(),state:t}}(e.res);return{state:{...(r=e.state,r?{[r]:!1}:{}),...n},effect:()=>[e.state,"function"==typeof e.req?e.req:qe(e.req),"function"==typeof e.res?e.res:t]};var r}function Ke(e=null,t=null,n=null){return Xe(function(e,t,n){const r=Array.from(arguments).filter(Boolean);if(r.length>3)throw Le(`输入参数长度无效,最大3个 -> 当前长度 ${r.length}`);let o=null,i=null,a=null;const s=r.map(He);if(3===r.length){if(s[0].type!==De||s[1].type!==Be&&s[1].type!==ze||s[2].type!==Fe&&s[2].type!==ze)throw Le(`配置错误! args: ${e}, ${t}, ${n}`);[a,o,i]=s.map(e=>e.value)}if(2===r.length)if(s[0].type!==De||s[1].type!==Be&&s[1].type!==ze){if(s[0].type!==Be&&s[0].type!==ze||s[1].type!==Fe&&s[1].type!==ze)throw Le(`配置错误! args: ${e}, ${t}`);[o,i]=[s[0].value,s[1].value]}else[a,o]=[s[0].value,s[1].value];if(1===r.length){if(s[0].type!==Be&&s[0].type!==ze)throw Le(`配置错误! 参数 '<${e}>' 应该是http-request配置.`);o=s[0].value}return{req:o,res:i,state:a,parameter:{a:e,b:t,c:n}}}(...arguments))}function Ye(e){return Object.values(e).reduce((e,t)=>Object.keys(t).length&&a.tools.isUndefined(t.name)&&a.tools.isUndefined(t.paths)&&a.tools.isUndefined(t.isIntegrated)?e.concat(Ye(t)):e.concat(t),[])}const Qe=(e={})=>{const t=e.selector||"#root";try{const e=Se({history:je()}),r=Ye(n(88648));n(65044).keys().forEach(t=>{const o=t.replace(/^\.\//,"").replace(/\/index\.(js|ts)$/,""),i=n(63271)(`./${t.replace(/^\.\//,"")}`),{state:a,effects:s}=Object.entries(i).reduce((e,[t,n])=>(e.effects[t]=n.effect,Object.assign(e.state,n.state),e),{state:{},effects:{}});try{const t=r.find(e=>e.paths===o);if(!t)throw new Error;e.model(et({name:t.name},{state:a,effects:s}))}catch{}}),e.router(e=>n(38105).P(e));const o=()=>e.start(t);return window.__POWERED_BY_QIANKUN__||o(),{mount:o,unmount:({container:e})=>{const n=e?e.querySelector(t):document.querySelector(t);$e.unmountComponentAtNode(n)},bootstrap:e=>e}}catch(e){}};function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=function*(t,r){const[o,a,s]=e[n](t),l=(0,i.isString)(o)&&o?o:`UNSET_LOADING_ACTION_${n}`;yield r.put({type:"updateState",payload:{[l]:!0}});const c=yield r.call(a,t.payload);if(yield r.put({type:"updateState",payload:{[l]:!1}}),(0,i.isFunction)(s))try{yield r.put({type:"updateState",payload:s(c)})}catch(e){}return c}}),t}function et(e,{state:t={},effects:n={},reducers:r={},subscriptions:o={}}){return{state:{...t,__EFFECTS_KEY__:Object.keys(n)},effects:Ze(n),reducers:{...r,updateState:(e={},{payload:t})=>({...e,...t})},namespace:nt(e),subscriptions:o}}function tt(e,t=!1){try{const n=e.split("/"),r=t?n.map((e,t)=>t?e.replace(/\b(\w)|\s(\w)/g,e=>e.toUpperCase()):e).join(""):n[n.length-1],o=Object.create(null);return o.name=r,o.paths=n.join("/"),o.isIntegrated=t,o[Symbol("_KEY_")]=Symbol(Math.random()),o}catch{throw new Error("dva.namespace invalid.")}}function nt(e){if(e&&"object"==typeof e)return e.name;throw new Error("dva.namespace invalid name.")}function rt(e,t=!1){return function(n){class s extends r.Component{render(){const o={},i={};e.forEach(e=>{if(!this.props[e.name])throw new Error(`Connect[${e.name}] parsing failed. Please check named path.`);(this.props[e.name].__EFFECTS_KEY__||[]).forEach(t=>{const n=`${e.name}/${t}`;i[t]=n,o[n]=n,o[`${e.name}/updateState`]=`${e.name}/updateState`})});const s={};return t&&Object.keys(i).forEach(e=>{s[e]=t=>this.props.dispatch({type:i[e],payload:t})}),r.createElement(n,Je({ref:this.props.forwardedRef,models:e,getModelState:(e,t)=>{try{return this.props[nt(e)][t]}catch(e){return}},resetModelState:(e,t={})=>{this.props.dispatch({type:`${nt(e)}/updateState`,payload:a.tools.toObject(t)})},dispatchModelAction:(e,t,n={})=>this.props.dispatch({type:`${nt(e)}/${t}`,payload:a.tools.toObject(n)})},this.props,o,t?s:{}))}}const l=(0,o.Ng)(function(e){if(!(0,i.isArray)(e))throw new Error("connect(...args) must be an array.");const t=e.map(nt);try{return new Function(`return (({ ${t.join(", ")} }) => ({ ${t.join(", ")} }))`)()}catch{throw new Error("connect() automatic programming reorganization failed.")}}(e))(s);return(0,r.forwardRef)((e,t)=>r.createElement(l,Je({},e,{forwardedRef:t})))}}},12689(e,t,n){"use strict";n.d(t,{A:()=>G});var r=n(31635),o=n(96540),i=n(68645),a=function(e){return function(t,n){var r=(0,o.useRef)(!1);e(function(){return function(){r.current=!1}},[]),e(function(){if(r.current)return t();r.current=!0},n)}};const s=a(o.useEffect);var l=function(e,t){var n=t.manual,i=t.ready,a=void 0===i||i,l=t.defaultParams,c=void 0===l?[]:l,d=t.refreshDeps,u=void 0===d?[]:d,h=t.refreshDepsAction,p=(0,o.useRef)(!1);return p.current=!1,s(function(){!n&&a&&(p.current=!0,e.run.apply(e,(0,r.fX)([],(0,r.zs)(c),!1)))},[a]),s(function(){p.current||n||(p.current=!0,h?h():e.refresh())},(0,r.fX)([],(0,r.zs)(u),!1)),{onBefore:function(){if(!a)return{stopNow:!0}}}};l.onInit=function(e){var t=e.ready,n=void 0===t||t;return{loading:!e.manual&&n}};const c=l;const d=function(e,t){if(e===t)return!0;for(var n=0;n-1&&(i=setTimeout(function(){g.delete(e)},t)),g.set(e,(0,r.Cl)((0,r.Cl)({},n),{timer:i}))}(e,a,t),function(e,t){v[e]&&v[e].forEach(function(e){return e(t)})}(e,t.data)},x=function(e,t){return void 0===t&&(t=[]),d?d(t):function(e){return g.get(e)}(e)};return u(function(){if(n){var t=x(n);t&&Object.hasOwnProperty.call(t,"data")&&(e.state.data=t.data,e.state.params=t.params,(-1===l||Date.now()-t.time<=l)&&(e.state.loading=!1)),h.current=y(n,function(t){e.setState({data:t})})}},[]),m(function(){var e;null===(e=h.current)||void 0===e||e.call(h)}),n?{onBefore:function(e){var t=x(n,e);return t&&Object.hasOwnProperty.call(t,"data")?-1===l||Date.now()-t.time<=l?{loading:!1,data:null==t?void 0:t.data,error:void 0,returnNow:!0}:{data:null==t?void 0:t.data,error:void 0}:{}},onRequest:function(e,t){var o=function(e){return b.get(e)}(n);return o&&o!==p.current||(o=e.apply(void 0,(0,r.fX)([],(0,r.zs)(t),!1)),p.current=o,function(e,t){b.set(e,t),t.then(function(t){return b.delete(e),t}).catch(function(){b.delete(e)})}(n,o)),{servicePromise:o}},onSuccess:function(t,r){var o;n&&(null===(o=h.current)||void 0===o||o.call(h),f(n,{data:t,params:r,time:Date.now()}),h.current=y(n,function(t){e.setState({data:t})}))},onMutate:function(t){var r;n&&(null===(r=h.current)||void 0===r||r.call(h),f(n,{data:t,params:e.state.params,time:Date.now()}),h.current=y(n,function(t){e.setState({data:t})}))}}:{}};var w=n(38221),A=n.n(w);const S=function(e,t){var n=t.debounceWait,i=t.debounceLeading,a=t.debounceTrailing,s=t.debounceMaxWait,l=(0,o.useRef)(void 0),c=(0,o.useMemo)(function(){var e={};return void 0!==i&&(e.leading=i),void 0!==a&&(e.trailing=a),void 0!==s&&(e.maxWait=s),e},[i,a,s]);return(0,o.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return l.current=A()(function(e){e()},n,c),e.runAsync=function(){for(var e=[],n=0;ni&&(n=Math.max(1,i));var a=(0,r.zs)(u.params||[]),s=a[0],l=void 0===s?{}:s,c=a.slice(1);u.run.apply(u,(0,r.fX)([],(0,r.zs)((0,r.fX)([(0,r.Cl)((0,r.Cl)({},l),{current:n,pageSize:o})],(0,r.zs)(c),!1)),!1))},x=function(e){y(e,g)};return(0,r.Cl)((0,r.Cl)({},u),{pagination:{current:f,pageSize:g,total:b,totalPage:v,onChange:(0,i.A)(y),changeCurrent:(0,i.A)(x),changePageSize:(0,i.A)(function(e){y(f,e)})}})};const G=function(e,t){var n;void 0===t&&(t={});var a=t.form,l=t.defaultType,c=void 0===l?"simple":l,d=t.defaultParams,u=t.manual,h=void 0!==u&&u,p=t.refreshDeps,f=void 0===p?[]:p,m=t.ready,g=void 0===m||m,b=(0,r.Tt)(t,["form","defaultType","defaultParams","manual","refreshDeps","ready"]),v=V(e,(0,r.Cl)((0,r.Cl)({ready:g,manual:!0},b),{onSuccess:function(){for(var e,t=[],n=0;n0)return k.current=(null==A?void 0:A.allFormData)||{},I(),void w.apply(void 0,(0,r.fX)([],(0,r.zs)(x),!1));g&&(k.current=(null==d?void 0:d[1])||{},I(),h||M(null==d?void 0:d[0]))},[]),s(function(){g&&I()},[C]);var T=(0,o.useRef)(!1);return T.current=!1,s(function(){!h&&g&&(T.current=!0,a&&a.resetFields(),k.current=(null==d?void 0:d[1])||{},I(),M(null==d?void 0:d[0]))},[g]),s(function(){T.current||g&&(h||(T.current=!0,t.refreshDepsAction?t.refreshDepsAction():v.pagination.changeCurrent(1)))},(0,r.fX)([],(0,r.zs)(f),!1)),(0,r.Cl)((0,r.Cl)({},v),{tableProps:{dataSource:(null===(n=v.data)||void 0===n?void 0:n.list)||E.current,loading:v.loading,onChange:(0,i.A)(function(e,t,n,o){var i=(0,r.zs)(x||[]),a=i[0],s=i.slice(1);w.apply(void 0,(0,r.fX)([(0,r.Cl)((0,r.Cl)({},a),{current:e.current,pageSize:e.pageSize,filters:t,sorter:n,extra:o})],(0,r.zs)(s),!1))}),pagination:{current:v.pagination.current,pageSize:v.pagination.pageSize,total:v.pagination.total}},search:{submit:(0,i.A)(function(e){var n,o,i;null===(n=null==e?void 0:e.preventDefault)||void 0===n||n.call(e),M(O.current?void 0:(0,r.Cl)({pageSize:t.defaultPageSize||(null===(i=null===(o=t.defaultParams)||void 0===o?void 0:o[0])||void 0===i?void 0:i.pageSize)||10,current:1},(null==d?void 0:d[0])||{}))}),type:C,changeType:(0,i.A)(function(){var e=j();k.current=(0,r.Cl)((0,r.Cl)({},k.current),e),$(function(e){return"simple"===e?"advance":"simple"})}),reset:(0,i.A)(function(){var e,n;a&&a.resetFields(),M((0,r.Cl)((0,r.Cl)({},(null==d?void 0:d[0])||{}),{pageSize:t.defaultPageSize||(null===(n=null===(e=t.defaultParams)||void 0===e?void 0:e[0])||void 0===n?void 0:n.pageSize)||10,current:1}))})}})}},80343(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(31635),o=n(96540),i=n(51916),a=n.n(i),s=n(38258),l=n(68645),c=n(65523),d=n(50127);function u(e,t){if(d.A)return e?(0,c.Tn)(e)?e():"current"in e?e.current:e:t}const h=function(e,t){var n=t||{},i=n.onExit,d=n.onEnter,h=n.pageFullscreen,p=void 0!==h&&h,f=(0,c.Lm)(p)||!p?{}:p,m=f.className,g=void 0===m?"ahooks-page-fullscreen":m,b=f.zIndex,v=void 0===b?999999:b,y=(0,s.A)(i),x=(0,s.A)(d),w=(0,r.zs)((0,o.useState)($),2),A=w[0],S=w[1],C=(0,o.useRef)($());function $(){return a().isEnabled&&!!a().element&&a().element===u(e)}var k=function(e){C.current!==e&&(!function(e){var t,n;e?null===(t=x.current)||void 0===t||t.call(x):null===(n=y.current)||void 0===n||n.call(y)}(e),S(e),C.current=e)},E=function(){var e=$();k(e)},O=function(t){var n=u(e);if(n){var r=document.getElementById(g);t?(n.classList.add(g),r||((r=document.createElement("style")).setAttribute("id",g),r.textContent="\n .".concat(g," {\n position: fixed; left: 0; top: 0; right: 0; bottom: 0;\n width: 100% !important; height: 100% !important;\n z-index: ").concat(v,";\n }"),n.appendChild(r))):(n.classList.remove(g),r&&r.remove()),k(t)}},P=function(){var t=u(e);if(t)if(p)O(!0);else if(a().isEnabled)try{a().request(t)}catch(e){}},j=function(){var t=u(e);t&&(p?O(!1):a().isEnabled&&a().element===t&&a().exit())};return(0,o.useEffect)(function(){if(a().isEnabled&&!p)return a().on("change",E),function(){a().off("change",E)}},[]),[A,{enterFullscreen:(0,l.A)(P),exitFullscreen:(0,l.A)(j),toggleFullscreen:(0,l.A)(function(){A?j():P()}),isEnabled:a().isEnabled}]}},38258(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(96540);const o=function(e){var t=(0,r.useRef)(e);return t.current=e,t}},68645(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(96540),o=n(65523),i=n(40860);const a=function(e){i.A&&(0,o.Tn)(e);var t=(0,r.useRef)(e);t.current=(0,r.useMemo)(function(){return e},[e]);var n=(0,r.useRef)(void 0);return n.current||(n.current=function(){for(var e=[],n=0;na});var r=n(31635),o=n(96540),i=n(68645);const a=function(){var e=(0,r.zs)((0,o.useState)({}),2)[1];return(0,i.A)(function(){return e({})})}},65523(e,t,n){"use strict";n.d(t,{Lm:()=>o,Tn:()=>r});var r=function(e){return"function"==typeof e},o=function(e){return"boolean"==typeof e}},50127(e,t,n){"use strict";n.d(t,{A:()=>r});const r=!("undefined"==typeof window||!window.document||!window.document.createElement)},40860(e,t,n){"use strict";n.d(t,{A:()=>r});const r=!1},58431(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(96540),o=n(1233),i=n(79249),a=n(39449);const s=e=>"function"==typeof(null==e?void 0:e.then),l=e=>{const{type:t,children:n,prefixCls:l,buttonProps:c,close:d,autoFocus:u,emitEvent:h,isSilent:p,quitOnNullishReturnValue:f,actionFn:m}=e,g=r.useRef(!1),b=r.useRef(null),[v,y]=(0,o.A)(!1),x=(...e)=>{null==d||d.apply(void 0,e)};r.useEffect(()=>{let e=null;return u&&(e=setTimeout(()=>{var e;null===(e=b.current)||void 0===e||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[u]);return r.createElement(i.Ay,Object.assign({},(0,a.DU)(t),{onClick:e=>{if(g.current)return;if(g.current=!0,!m)return void x();let t;if(h){if(t=m(e),f&&!s(t))return g.current=!1,void x(e)}else if(m.length)t=m(d),g.current=!1;else if(t=m(),!s(t))return void x();(e=>{s(e)&&(y(!0),e.then((...e)=>{y(!1,!0),x.apply(void 0,e),g.current=!1},e=>{if(y(!1,!0),g.current=!1,!(null==p?void 0:p()))return Promise.reject(e)}))})(t)},loading:v,prefixCls:l},c,{ref:b}),n)}},62897(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(96540),o=n(94241),i=n(37090);const a=e=>{const{space:t,form:n,children:a}=e;if(null==a)return null;let s=a;return n&&(s=r.createElement(o.XB,{override:!0,status:!0},s)),t&&(s=r.createElement(i.K6,null,s)),s}},53425(e,t,n){"use strict";n.d(t,{A:()=>l,U:()=>s});var r=n(96540),o=n(12533),i=n(20867),a=n(62279);function s(e){return t=>r.createElement(i.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}const l=(e,t,n,i,l)=>s(s=>{const{prefixCls:c,style:d}=s,u=r.useRef(null),[h,p]=r.useState(0),[f,m]=r.useState(0),[g,b]=(0,o.A)(!1,{value:s.open}),{getPrefixCls:v}=r.useContext(a.QO),y=v(i||"select",c);r.useEffect(()=>{if(b(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver(e=>{const t=e[0].target;p(t.offsetHeight+8),m(t.offsetWidth)}),t=setInterval(()=>{var n;const r=l?`.${l(y)}`:`.${y}-dropdown`,o=null===(n=u.current)||void 0===n?void 0:n.querySelector(r);o&&(clearInterval(t),e.observe(o))},10);return()=>{clearInterval(t),e.disconnect()}}},[y]);let x=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},d),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});n&&(x=n(x)),t&&Object.assign(x,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const w={paddingBottom:h,position:"relative",minWidth:f};return r.createElement("div",{ref:u,style:w},r.createElement(e,Object.assign({},x)))})},54121(e,t,n){"use strict";n.d(t,{nP:()=>a});var r=n(60436),o=n(13950);const i=o.s.map(e=>`${e}-inverse`);function a(e,t=!0){return t?[].concat((0,r.A)(i),(0,r.A)(o.s)).includes(e):o.s.includes(e)}},51679(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(...e){const t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{void 0!==e[n]&&(t[n]=e[n])})}),t}},96311(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(96540),o=n(36029);const i=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:r.createElement(o.A,null)}),t}},70064(e,t,n){"use strict";n.d(t,{$:()=>h,d:()=>c});var r=n(96540),o=n(47852),i=n(72065),a=n(19155),s=n(83480),l=n(51679);function c(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function d(e){const{closable:t,closeIcon:n}=e||{};return r.useMemo(()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e},[t,n])}const u={},h=(e,t,n=u)=>{const c=d(e),h=d(t),[p]=(0,a.A)("global",s.A.global),f="boolean"!=typeof c&&!!(null==c?void 0:c.disabled),m=r.useMemo(()=>Object.assign({closeIcon:r.createElement(o.A,null)},n),[n]),g=r.useMemo(()=>!1!==c&&(c?(0,l.A)(m,h,c):!1!==h&&(h?(0,l.A)(m,h):!!m.closable&&m)),[c,h,m]);return r.useMemo(()=>{var e,t;if(!1===g)return[!1,null,f,{}];const{closeIconRender:n}=m,{closeIcon:o}=g;let a=o;const s=(0,i.A)(g,!0);return null!=a&&(n&&(a=n(o)),a=r.isValidElement(a)?r.cloneElement(a,Object.assign(Object.assign(Object.assign({},a.props),{"aria-label":null!==(t=null===(e=a.props)||void 0===e?void 0:e["aria-label"])&&void 0!==t?t:p.close}),s)):r.createElement("span",Object.assign({"aria-label":p.close},s),a)),[!0,a,f,s]},[f,p.close,g,m])}},47447(e,t,n){"use strict";n.d(t,{C:()=>o});var r=n(96540);const o=()=>r.useReducer(e=>e+1,0)},60275(e,t,n){"use strict";n.d(t,{YK:()=>d,jH:()=>s});var r=n(96540),o=n(93093),i=n(72616);const a=100,s=1e3,l={Modal:a,Drawer:a,Popover:a,Popconfirm:a,Tooltip:a,Tour:a,FloatButton:a},c={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const d=(e,t)=>{const[,n]=(0,o.Ay)(),a=r.useContext(i.A),s=e in l;let d;if(void 0!==t)d=[t,t];else{let r=null!=a?a:0;r+=s?(a?0:n.zIndexPopupBase)+l[e]:c[e],d=[void 0===a?t:r,r]}return d}},23723(e,t,n){"use strict";n.d(t,{A:()=>c,b:()=>l});var r=n(62279);const o=()=>({height:0,opacity:0}),i=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},a=e=>({height:e?e.offsetHeight:0}),s=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,l=(e,t,n)=>void 0!==n?n:`${e}-${t}`,c=(e=r.yH)=>({motionName:`${e}-motion-collapse`,onAppearStart:o,onEnterStart:o,onAppearActive:i,onEnterActive:i,onLeaveStart:a,onLeaveActive:o,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500})},13257(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(95201);const o={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},i={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},a=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function s(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:s,offset:l,borderRadius:c,visibleFirst:d}=e,u=t/2,h={},p=(0,r.Ke)({contentRadius:c,limitVerticalRadius:!0});return Object.keys(o).forEach(e=>{const r=s&&i[e]||o[e],c=Object.assign(Object.assign({},r),{offset:[0,0],dynamicInset:!0});switch(h[e]=c,a.has(e)&&(c.autoArrow=!1),e){case"top":case"topLeft":case"topRight":c.offset[1]=-u-l;break;case"bottom":case"bottomLeft":case"bottomRight":c.offset[1]=u+l;break;case"left":case"leftTop":case"leftBottom":c.offset[0]=-u-l;break;case"right":case"rightTop":case"rightBottom":c.offset[0]=u+l}if(s)switch(e){case"topLeft":case"bottomLeft":c.offset[0]=-p.arrowOffsetHorizontal-u;break;case"topRight":case"bottomRight":c.offset[0]=p.arrowOffsetHorizontal+u;break;case"leftTop":case"rightTop":c.offset[1]=2*-p.arrowOffsetHorizontal+u;break;case"leftBottom":case"rightBottom":c.offset[1]=2*p.arrowOffsetHorizontal-u}c.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,p,t,n),d&&(c.htmlRegion="visibleFirst")}),h}},40682(e,t,n){"use strict";n.d(t,{Ob:()=>i,zv:()=>o});var r=n(96540);function o(e){return e&&r.isValidElement(e)&&e.type===r.Fragment}function i(e,t){return((e,t,n)=>r.isValidElement(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t)(e,e,t)}},14703(e,t,n){"use strict";n.d(t,{Ay:()=>s,ko:()=>a,ye:()=>i});var r=n(96540),o=n(93093);const i=["xxl","xl","lg","md","sm","xs"],a=(e,t)=>{if(t)for(const n of i)if(e[n]&&void 0!==(null==t?void 0:t[n]))return t[n]},s=()=>{const[,e]=(0,o.Ay)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(i).reverse();return n.forEach((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const e=new Map;let n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{const n=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},r),{[e]:t}))},o=window.matchMedia(t);((e,t)=>{void 0!==(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):void 0!==(null==e?void 0:e.addListener)&&e.addListener(t)})(o,n),this.matchHandlers[t]={mql:o,listener:n},n(o)})},unregister(){Object.values(t).forEach(e=>{const t=this.matchHandlers[e];((e,t)=>{void 0!==(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):void 0!==(null==e?void 0:e.removeListener)&&e.removeListener(t)})(null==t?void 0:t.mql,null==t?void 0:t.listener)}),e.clear()}}},[t])}},58182(e,t,n){"use strict";n.d(t,{L:()=>i,v:()=>a});var r=n(46942),o=n.n(r);function i(e,t,n){return o()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const a=(e,t)=>t||e},18877(e,t,n){"use strict";n.d(t,{_n:()=>i,rJ:()=>a});var r=n(96540);n(68210);function o(){}const i=r.createContext({}),a=()=>{const e=()=>{};return e.deprecated=o,e}},57(e,t,n){"use strict";n.d(t,{A:()=>A});var r=n(96540),o=n(46942),i=n.n(o),a=n(42467),s=n(8719),l=n(62279),c=n(40682);const d=(0,n(37358).Or)("Wave",e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}});var u=n(26956),h=n(25371),p=n(93093),f=n(4424),m=n(90754),g=n(71919);function b(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e&&"canvastext"!==e}function v(e){return Number.isNaN(e)?0:e}const y=e=>{const{className:t,target:n,component:o,registerUnmount:a}=e,l=r.useRef(null),c=r.useRef(null);r.useEffect(()=>{c.current=a()},[]);const[d,u]=r.useState(null),[p,g]=r.useState([]),[y,x]=r.useState(0),[w,A]=r.useState(0),[S,C]=r.useState(0),[$,k]=r.useState(0),[E,O]=r.useState(!1),P={left:y,top:w,width:S,height:$,borderRadius:p.map(e=>`${e}px`).join(" ")};function j(){const e=getComputedStyle(n);u(function(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return null!==(t=[n,r,o].find(b))&&void 0!==t?t:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;x(t?n.offsetLeft:v(-Number.parseFloat(r))),A(t?n.offsetTop:v(-Number.parseFloat(o))),C(n.offsetWidth),k(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:l}=e;g([i,a,l,s].map(e=>v(Number.parseFloat(e))))}if(d&&(P["--wave-color"]=d),r.useEffect(()=>{if(n){const e=(0,h.A)(()=>{j(),O(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(j),t.observe(n)),()=>{h.A.cancel(e),null==t||t.disconnect()}}},[n]),!E)return null;const I=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(f.D));return r.createElement(m.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=l.current)||void 0===n?void 0:n.parentElement;null===(r=c.current)||void 0===r||r.call(c).then(()=>{null==e||e.remove()})}return!1}},({className:e},n)=>r.createElement("div",{ref:(0,s.K4)(l,n),className:i()(t,e,{"wave-quick":I}),style:P}))},x=(e,t)=>{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild);const a=(0,g.L)();let s=null;s=a(r.createElement(y,Object.assign({},t,{target:e,registerUnmount:function(){return s}})),i)},w=(e,t,n)=>{const{wave:o}=r.useContext(l.QO),[,i,a]=(0,p.Ay)(),s=(0,u.A)(r=>{const s=e.current;if((null==o?void 0:o.disabled)||!s)return;const l=s.querySelector(`.${f.D}`)||s,{showEffect:c}=o||{};(c||x)(l,{className:t,token:i,component:n,event:r,hashId:a})}),c=r.useRef(null);return e=>{h.A.cancel(c.current),c.current=(0,h.A)(()=>{s(e)})}};const A=e=>{const{children:t,disabled:n,component:o}=e,{getPrefixCls:u}=(0,r.useContext)(l.QO),h=(0,r.useRef)(null),p=u("wave"),[,f]=d(p),m=w(h,i()(p,f),o);if(r.useEffect(()=>{const e=h.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;const t=t=>{!(0,a.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||m(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!r.isValidElement(t))return null!=t?t:null;const g=(0,s.f3)(t)?(0,s.K4)((0,s.A9)(t),h):h;return(0,c.Ob)(t,{ref:g})}},4424(e,t,n){"use strict";n.d(t,{D:()=>r});const r=`${n(62279).yH}-wave-target`},72616(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(96540).createContext(void 0)},41240(e,t,n){"use strict";n.d(t,{A:()=>i,B:()=>o});var r=n(96540);const o=r.createContext({}),i=r.createContext({message:{},notification:{},modal:{}})},83217(e,t,n){"use strict";n.d(t,{A:()=>G});var r=n(96540),o=n(46942),i=n.n(o),a=n(18877),s=n(62279),l=n(89585),c=n(56777),d=n(22370),u=n(20934),h=n(93093),p=n(38811),f=n(36029),m=n(47852),g=n(7541),b=n(17850),v=n(93567);b.A,p.A,f.A,g.A,v.A;function y(e,t){return null===t||!1===t?null:t||r.createElement(m.A,{className:`${e}-close-icon`})}const x={success:p.A,info:b.A,error:f.A,warning:g.A},w=e=>{const{prefixCls:t,icon:n,type:o,message:a,description:s,actions:l,role:c="alert"}=e;let d=null;return n?d=r.createElement("span",{className:`${t}-icon`},n):o&&(d=r.createElement(x[o]||null,{className:i()(`${t}-icon`,`${t}-icon-${o}`)})),r.createElement("div",{className:i()({[`${t}-with-icon`]:d}),role:c},d,r.createElement("div",{className:`${t}-message`},a),s&&r.createElement("div",{className:`${t}-description`},s),l&&r.createElement("div",{className:`${t}-actions`},l))};var A=n(85530),S=n(60275),C=n(25905),$=n(14277),k=n(37358);const E=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new A.Mo("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new A.Mo("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new A.Mo("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new A.Mo("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},O=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],P={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},j=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},I=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},j(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},I(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},O.map(t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[P[t]]:{value:0,_skip_check_:!0}}}}})(e,t)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{}))},T=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:d,colorTextHeading:u,notificationBg:h,notificationPadding:p,notificationMarginEdge:f,notificationProgressBg:m,notificationProgressHeight:g,fontSize:b,lineHeight:v,width:y,notificationIconSize:x,colorText:w,colorSuccessBg:S,colorErrorBg:$,colorInfoBg:k,colorWarningBg:E}=e,O=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:h,borderRadius:a,boxShadow:r,[O]:{padding:p,width:y,maxWidth:`calc(100vw - ${(0,A.zA)(e.calc(f).mul(2).equal())})`,lineHeight:v,wordWrap:"break-word",borderRadius:a,overflow:"hidden","&-success":S?{background:S}:{},"&-error":$?{background:$}:{},"&-info":k?{background:k}:{},"&-warning":E?{background:E}:{}},[`${O}-message`]:{color:u,fontSize:o,lineHeight:e.lineHeightLG},[`${O}-description`]:{fontSize:b,color:w,marginTop:e.marginXS},[`${O}-closable ${O}-message`]:{paddingInlineEnd:e.paddingLG},[`${O}-with-icon ${O}-message`]:{marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:o},[`${O}-with-icon ${O}-description`]:{marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:b},[`${O}-icon`]:{position:"absolute",fontSize:x,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:d}},[`${O}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},(0,C.K8)(e)),[`${O}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${(0,A.zA)(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:m},"&::-webkit-progress-value":{borderRadius:a,background:m}},[`${O}-actions`]:{float:"right",marginTop:e.marginSM}}},_=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,s=new A.Mo("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},(0,C.dF)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-actions`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:T(e)}}]},R=(0,k.OF)("Notification",e=>{const t=(e=>{const t=e.paddingMD,n=e.paddingLG;return(0,$.oX)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${(0,A.zA)(e.paddingMD)} ${(0,A.zA)(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})})(e);return[_(t),E(t),M(t)]},e=>({zIndexPopup:e.zIndexPopupBase+S.jH+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}));var B=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=(0,u.A)(t),[o,a,s]=R(t,n);return o(r.createElement(d.ph,{classNames:{list:i()(a,s,n)}},e))},D=(e,{prefixCls:t,key:n})=>r.createElement(F,{prefixCls:t,key:n},e),z=r.forwardRef((e,t)=>{const{top:n,bottom:o,prefixCls:a,getContainer:l,maxCount:c,rtl:u,onAllRemoved:p,stack:f,duration:m,pauseOnHover:g=!0,showProgress:b}=e,{getPrefixCls:v,getPopupContainer:x,notification:w,direction:A}=(0,r.useContext)(s.QO),[,S]=(0,h.Ay)(),C=a||v("notification"),[$,k]=(0,d.hN)({prefixCls:C,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=o?o:24),className:()=>i()({[`${C}-rtl`]:null!=u?u:"rtl"===A}),motion:()=>function(e){return{motionName:`${e}-fade`}}(C),closable:!0,closeIcon:y(C),duration:null!=m?m:4.5,getContainer:()=>(null==l?void 0:l())||(null==x?void 0:x())||document.body,maxCount:c,pauseOnHover:g,showProgress:b,onAllRemoved:p,renderNotifications:D,stack:!1!==f&&{threshold:"object"==typeof f?null==f?void 0:f.threshold:void 0,offset:8,gap:S.margin}});return r.useImperativeHandle(t,()=>Object.assign(Object.assign({},$),{prefixCls:C,notification:w})),k});function N(e){return function(e){const t=r.useRef(null),n=((0,a.rJ)("Notification"),r.useMemo(()=>{const n=n=>{var o;if(!t.current)return;const{open:a,prefixCls:s,notification:l}=t.current,c=`${s}-notice`,{message:d,description:u,icon:h,type:p,btn:f,actions:m,className:g,style:b,role:v="alert",closeIcon:x,closable:A}=n,S=B(n,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),C=null!=m?m:f,$=y(c,function(e,t,n){return void 0!==e?e:void 0!==(null==t?void 0:t.closeIcon)?t.closeIcon:null==n?void 0:n.closeIcon}(x,e,l));return a(Object.assign(Object.assign({placement:null!==(o=null==e?void 0:e.placement)&&void 0!==o?o:"topRight"},S),{content:r.createElement(w,{prefixCls:c,icon:h,type:p,message:d,description:u,actions:C,role:v}),className:i()(p&&`${c}-${p}`,g,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),b),closeIcon:$,closable:null!=A?A:!!$}))},o={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach(e=>{o[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))}),o},[]));return[n,r.createElement(z,Object.assign({key:"notification-holder"},e,{ref:t}))]}(e)}var L=n(41240);const H=(0,k.OF)("App",e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},()=>({}));const W=e=>{const{prefixCls:t,children:n,className:o,rootClassName:d,message:u,notification:h,style:p,component:f="div"}=e,{direction:m,getPrefixCls:g}=(0,r.useContext)(s.QO),b=g("app",t),[v,y,x]=H(b),w=i()(y,b,o,d,x,{[`${b}-rtl`]:"rtl"===m}),A=(0,r.useContext)(L.B),S=r.useMemo(()=>({message:Object.assign(Object.assign({},A.message),u),notification:Object.assign(Object.assign({},A.notification),h)}),[u,h,A.message,A.notification]),[C,$]=(0,l.A)(S.message),[k,E]=N(S.notification),[O,P]=(0,c.A)(),j=r.useMemo(()=>({message:C,notification:k,modal:O}),[C,k,O]);(0,a.rJ)("App")(!(x&&!1===f),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const I=!1===f?r.Fragment:f,M={className:w,style:p};return v(r.createElement(L.A.Provider,{value:j},r.createElement(L.B.Provider,{value:S},r.createElement(I,Object.assign({},!1===f?void 0:M),P,$,E,n))))},U=()=>r.useContext(L.A),V=W;V.useApp=U;const G=V},39449(e,t,n){"use strict";n.d(t,{Ap:()=>l,DU:()=>c,u1:()=>u,uR:()=>h});var r=n(60436),o=n(96540),i=n(40682),a=n(13950);const s=/^[\u4E00-\u9FA5]{2}$/,l=s.test.bind(s);function c(e){return"danger"===e?{danger:!0}:{type:e}}function d(e){return"string"==typeof e}function u(e){return"text"===e||"link"===e}function h(e,t){let n=!1;const r=[];return o.Children.forEach(e,e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=o}),o.Children.map(r,e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&d(e.type)&&l(e.props.children)?(0,i.Ob)(e,{children:e.props.children.split("").join(n)}):d(e)?l(e)?o.createElement("span",null,e.split("").join(n)):o.createElement("span",null,e):(0,i.zv)(e)?o.createElement("span",null,e):e}(e,t))}["default","primary","danger"].concat((0,r.A)(a.s))},79249(e,t,n){"use strict";n.d(t,{Ay:()=>xe});var r=n(96540),o=n(46942),i=n.n(o),a=n(30981),s=n(19853),l=n(8719),c=n(57),d=n(62279),u=n(98119),h=n(829),p=n(37090),f=n(93093),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=r.useContext(d.QO),{prefixCls:o,size:a,className:s}=e,l=m(e,["prefixCls","size","className"]),c=t("btn-group",o),[,,u]=(0,f.Ay)(),h=r.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]);const p=i()(c,{[`${c}-${h}`]:h,[`${c}-rtl`]:"rtl"===n},s,u);return r.createElement(g.Provider,{value:a},r.createElement("div",Object.assign({},l,{className:p})))};var v=n(39449),y=n(93567),x=n(90754);const w=(0,r.forwardRef)((e,t)=>{const{className:n,style:o,children:a,prefixCls:s}=e,l=i()(`${s}-icon`,n);return r.createElement("span",{ref:t,className:l,style:o},a)}),A=w,S=(0,r.forwardRef)((e,t)=>{const{prefixCls:n,className:o,style:a,iconClassName:s}=e,l=i()(`${n}-loading-icon`,o);return r.createElement(A,{prefixCls:n,className:l,style:a,ref:t},r.createElement(y.A,{className:s}))}),C=()=>({width:0,opacity:0,transform:"scale(0)"}),$=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),k=e=>{const{prefixCls:t,loading:n,existIcon:o,className:a,style:s,mount:l}=e,c=!!n;return o?r.createElement(S,{prefixCls:t,className:a,style:s}):r.createElement(x.Ay,{visible:c,motionName:`${t}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:C,onAppearActive:$,onEnterStart:C,onEnterActive:$,onLeaveStart:$,onLeaveActive:C},({className:e,style:n},o)=>{const l=Object.assign(Object.assign({},s),n);return r.createElement(S,{prefixCls:t,className:i()(a,e),style:l,ref:o})})};var E=n(85530),O=n(25905),P=n(13950),j=n(14277),I=n(37358);const M=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),T=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},M(`${t}-primary`,o),M(`${t}-danger`,i)]}};var _=n(19911),R=n(49185),B=n(94925),F=n(85045);const D=e=>{const{paddingInline:t,onlyIconSize:n}=e;return(0,j.oX)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},z=e=>{var t,n,r,o,i,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,d=null!==(o=e.contentLineHeight)&&void 0!==o?o:(0,B.k)(s),u=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:(0,B.k)(l),h=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:(0,B.k)(c),p=(0,R.z)(new _.kf(e.colorBgSolid),"#fff")?"#000":"#fff",f=P.s.reduce((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${(0,E.zA)(e.controlOutlineWidth)} 0 ${(0,F.A)(e[`${n}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},f),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:u,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*u)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)})},N=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,E.zA)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:(0,O.Nk)(),"> a":{color:"currentColor"},"&:not(:disabled)":(0,O.K8)(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},L=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),H=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),W=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),U=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},L(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),V=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},W(e))}),G=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),q=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?G:V;return Object.assign(Object.assign({},o(e)),L(e.componentCls,t,n))},X=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},q(e,r,o))}),K=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},q(e,r,o))}),Y=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Q=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},q(e,n,r))}),J=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},q(e,r,o,n))}),Z=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},X(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Y(e)),Q(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),U(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),J(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ee=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},K(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Y(e)),Q(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),J(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),J(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),U(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),te=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},X(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),K(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Y(e)),Q(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),J(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),J(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),U(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ne=e=>Object.assign(Object.assign({},J(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),U(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),re=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Z(e),[`${t}-color-primary`]:ee(e),[`${t}-color-dangerous`]:te(e),[`${t}-color-link`]:ne(e)},(e=>{const{componentCls:t}=e;return P.s.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},X(e,e.colorTextLightSolid,o,{background:a},{background:c})),K(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Y(e)),Q(e,i,{color:o,background:s},{color:o,background:l})),J(e,o,"link",{color:a},{color:c})),J(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})})(e))},oe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},K(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),J(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),X(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),J(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),ie=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${(0,E.zA)(l)} ${(0,E.zA)(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:H(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},ae=e=>{const t=(0,j.oX)(e,{fontSize:e.contentFontSize});return ie(t,e.componentCls)},se=e=>{const t=(0,j.oX)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return ie(t,`${e.componentCls}-sm`)},le=e=>{const t=(0,j.oX)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return ie(t,`${e.componentCls}-lg`)},ce=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},de=(0,I.OF)("Button",e=>{const t=D(e);return[N(t),ae(t),se(t),le(t),ce(t),re(t),oe(t),T(t)]},z,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var ue=n(55974);function he(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function pe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},he(e,t,e.componentCls)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const fe=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>{const o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},me=(0,I.bf)(["Button","compact"],e=>{const t=D(e);return[(0,ue.G)(t),pe(t),fe(t)]},z);var ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o;const{loading:f=!1,prefixCls:m,color:b,variant:y,type:x,danger:w=!1,shape:S,size:C,styles:$,disabled:E,className:O,rootClassName:P,children:j,icon:I,iconPosition:M="start",ghost:T=!1,block:_=!1,htmlType:R="button",classNames:B,style:F={},autoInsertSpace:D,autoFocus:z}=e,N=ge(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),L=x||"default",{button:H}=r.useContext(d.QO),W=S||(null==H?void 0:H.shape)||"default",[U,V]=(0,r.useMemo)(()=>{if(b&&y)return[b,y];if(x||w){const e=be[L]||[];return w?["danger",e[1]]:e}return(null==H?void 0:H.color)&&(null==H?void 0:H.variant)?[H.color,H.variant]:["default","outlined"]},[b,y,x,w,null==H?void 0:H.color,null==H?void 0:H.variant,L]),G="danger"===U?"dangerous":U,{getPrefixCls:q,direction:X,autoInsertSpace:K,className:Y,style:Q,classNames:J,styles:Z}=(0,d.TP)("button"),ee=null===(n=null!=D?D:K)||void 0===n||n,te=q("btn",m),[ne,re,oe]=de(te),ie=(0,r.useContext)(u.A),ae=null!=E?E:ie,se=(0,r.useContext)(g),le=(0,r.useMemo)(()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(f),[f]),[ce,ue]=(0,r.useState)(le.loading),[he,pe]=(0,r.useState)(!1),fe=(0,r.useRef)(null),ve=(0,l.xK)(t,fe),ye=1===r.Children.count(j)&&!I&&!(0,v.u1)(V),xe=(0,r.useRef)(!0);r.useEffect(()=>(xe.current=!1,()=>{xe.current=!0}),[]),(0,a.A)(()=>{let e=null;return le.delay>0?e=setTimeout(()=>{e=null,ue(!0)},le.delay):ue(le.loading),function(){e&&(clearTimeout(e),e=null)}},[le.delay,le.loading]),(0,r.useEffect)(()=>{if(!fe.current||!ee)return;const e=fe.current.textContent||"";ye&&(0,v.Ap)(e)?he||pe(!0):he&&pe(!1)}),(0,r.useEffect)(()=>{z&&fe.current&&fe.current.focus()},[]);const we=r.useCallback(t=>{var n;ce||ae?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)},[e.onClick,ce,ae]);const{compactSize:Ae,compactItemClassnames:Se}=(0,p.RQ)(te,X),Ce={large:"lg",small:"sm",middle:void 0},$e=(0,h.A)(e=>{var t,n;return null!==(n=null!==(t=null!=C?C:Ae)&&void 0!==t?t:se)&&void 0!==n?n:e}),ke=$e&&null!==(o=Ce[$e])&&void 0!==o?o:"",Ee=ce?"loading":I,Oe=(0,s.A)(N,["navigate"]),Pe=i()(te,re,oe,{[`${te}-${W}`]:"default"!==W&&W,[`${te}-${L}`]:L,[`${te}-dangerous`]:w,[`${te}-color-${G}`]:G,[`${te}-variant-${V}`]:V,[`${te}-${ke}`]:ke,[`${te}-icon-only`]:!j&&0!==j&&!!Ee,[`${te}-background-ghost`]:T&&!(0,v.u1)(V),[`${te}-loading`]:ce,[`${te}-two-chinese-chars`]:he&&ee&&!ce,[`${te}-block`]:_,[`${te}-rtl`]:"rtl"===X,[`${te}-icon-end`]:"end"===M},Se,O,P,Y),je=Object.assign(Object.assign({},Q),F),Ie=i()(null==B?void 0:B.icon,J.icon),Me=Object.assign(Object.assign({},(null==$?void 0:$.icon)||{}),Z.icon||{}),Te=e=>r.createElement(A,{prefixCls:te,className:Ie,style:Me},e);let _e;_e=I&&!ce?Te(I):f&&"object"==typeof f&&f.icon?Te(f.icon):r.createElement(k,{existIcon:!!I,prefixCls:te,loading:ce,mount:xe.current});const Re=j||0===j?(0,v.uR)(j,ye&&ee):null;if(void 0!==Oe.href)return ne(r.createElement("a",Object.assign({},Oe,{className:i()(Pe,{[`${te}-disabled`]:ae}),href:ae?void 0:Oe.href,style:je,onClick:we,ref:ve,tabIndex:ae?-1:0,"aria-disabled":ae}),_e,Re));let Be=r.createElement("button",Object.assign({},N,{type:R,className:Pe,style:je,onClick:we,disabled:ae,ref:ve}),_e,Re,Se&&r.createElement(me,{prefixCls:te}));return(0,v.u1)(V)||(Be=r.createElement(c.A,{component:"Button",disabled:ce},Be)),ne(Be)}),ye=ve;ye.Group=b,ye.__ANT_BUTTON=!0;const xe=ye},91196(e,t,n){"use strict";n.d(t,{A:()=>$});var r=n(96540),o=n(46942),i=n.n(o),a=n(38873),s=n(8719),l=n(57),c=n(4424),d=n(62279),u=n(98119),h=n(20934),p=n(94241);const f=r.createContext(null);var m=n(77391),g=n(96827),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:o,className:v,rootClassName:y,children:x,indeterminate:w=!1,style:A,onMouseEnter:S,onMouseLeave:C,skipGroup:$=!1,disabled:k}=e,E=b(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:O,direction:P,checkbox:j}=r.useContext(d.QO),I=r.useContext(f),{isFormItemInput:M}=r.useContext(p.$W),T=r.useContext(u.A),_=null!==(n=(null==I?void 0:I.disabled)||k)&&void 0!==n?n:T,R=r.useRef(E.value),B=r.useRef(null),F=(0,s.K4)(t,B);r.useEffect(()=>{null==I||I.registerValue(E.value)},[]),r.useEffect(()=>{if(!$)return E.value!==R.current&&(null==I||I.cancelValue(R.current),null==I||I.registerValue(E.value),R.current=E.value),()=>null==I?void 0:I.cancelValue(E.value)},[E.value]),r.useEffect(()=>{var e;(null===(e=B.current)||void 0===e?void 0:e.input)&&(B.current.input.indeterminate=w)},[w]);const D=O("checkbox",o),z=(0,h.A)(D),[N,L,H]=(0,m.Ay)(D,z),W=Object.assign({},E);I&&!$&&(W.onChange=(...e)=>{E.onChange&&E.onChange.apply(E,e),I.toggleOption&&I.toggleOption({label:x,value:E.value})},W.name=I.name,W.checked=I.value.includes(E.value));const U=i()(`${D}-wrapper`,{[`${D}-rtl`]:"rtl"===P,[`${D}-wrapper-checked`]:W.checked,[`${D}-wrapper-disabled`]:_,[`${D}-wrapper-in-form-item`]:M},null==j?void 0:j.className,v,y,H,z,L),V=i()({[`${D}-indeterminate`]:w},c.D,L),[G,q]=(0,g.A)(W.onClick);return N(r.createElement(l.A,{component:"Checkbox",disabled:_},r.createElement("label",{className:U,style:Object.assign(Object.assign({},null==j?void 0:j.style),A),onMouseEnter:S,onMouseLeave:C,onClick:G},r.createElement(a.A,Object.assign({},W,{onClick:q,prefixCls:D,className:V,disabled:_,ref:F})),null!=x&&r.createElement("span",{className:`${D}-label`},x))))};const y=r.forwardRef(v);var x=n(60436),w=n(19853),A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{defaultValue:n,children:o,options:a=[],prefixCls:s,className:l,rootClassName:c,style:u,onChange:p}=e,g=A(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:b,direction:v}=r.useContext(d.QO),[S,C]=r.useState(g.value||n||[]),[$,k]=r.useState([]);r.useEffect(()=>{"value"in g&&C(g.value||[])},[g.value]);const E=r.useMemo(()=>a.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[a]),O=e=>{k(t=>t.filter(t=>t!==e))},P=e=>{k(t=>[].concat((0,x.A)(t),[e]))},j=e=>{const t=S.indexOf(e.value),n=(0,x.A)(S);-1===t?n.push(e.value):n.splice(t,1),"value"in g||C(n),null==p||p(n.filter(e=>$.includes(e)).sort((e,t)=>E.findIndex(t=>t.value===e)-E.findIndex(e=>e.value===t)))},I=b("checkbox",s),M=`${I}-group`,T=(0,h.A)(I),[_,R,B]=(0,m.Ay)(I,T),F=(0,w.A)(g,["value","disabled"]),D=a.length?E.map(e=>r.createElement(y,{prefixCls:I,key:e.value.toString(),disabled:"disabled"in e?e.disabled:g.disabled,value:e.value,checked:S.includes(e.value),onChange:e.onChange,className:i()(`${M}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):o,z=r.useMemo(()=>({toggleOption:j,value:S,disabled:g.disabled,name:g.name,registerValue:P,cancelValue:O}),[j,S,g.disabled,g.name,P,O]),N=i()(M,{[`${M}-rtl`]:"rtl"===v},l,c,B,T,R);return _(r.createElement("div",Object.assign({className:N,style:u},F,{ref:t}),r.createElement(f.Provider,{value:z},D)))}),C=y;C.Group=S,C.__ANT_CHECKBOX=!0;const $=C},77391(e,t,n){"use strict";n.d(t,{Ay:()=>l,gd:()=>s});var r=n(85530),o=n(25905),i=n(14277),a=n(37358);function s(e,t){return(e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,o.dF)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},(0,o.dF)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,o.dF)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:(0,o.jk)(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,r.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${(0,r.zA)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]})((0,i.oX)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}const l=(0,a.OF)("Checkbox",(e,{prefixCls:t})=>[s(t,e)])},96827(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(96540),o=n(25371);function i(e){const t=r.useRef(null),n=()=>{o.A.cancel(t.current),t.current=null};return[()=>{n(),t.current=(0,o.A)(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),null==e||e(r)}]}},16370(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(26606).A},19911(e,t,n){"use strict";n.d(t,{Ol:()=>a,kf:()=>s});var r=n(23029),o=n(92901),i=n(83643);const a=(e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"";let s=function(){return(0,o.A)(function e(t){var n;if((0,r.A)(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const o=Array.isArray(t);o&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new i.Q1(this.colors[0].color.metaColor)):this.metaColor=new i.Q1(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?a(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){return`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString())}}])}()},49185(e,t,n){"use strict";n.d(t,{A:()=>R,z:()=>T});var r=n(96540),o=n(83643),i=n(46942),a=n.n(i),s=n(12533),l=n(68e3),c=n(71057),d=n(82546),u=n(19853),h=n(23723),p=n(40682),f=n(62279),m=n(829);const g=r.forwardRef((e,t)=>{const{getPrefixCls:n}=r.useContext(f.QO),{prefixCls:o,className:i,showArrow:s=!0}=e,l=n("collapse",o),d=a()({[`${l}-no-arrow`]:!s},i);return r.createElement(c.A.Panel,Object.assign({ref:t},e,{prefixCls:l,className:d}))});var b=n(85530),v=n(25905),y=n(60977),x=n(37358),w=n(14277);const A=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:d,colorBorder:u,colorText:h,colorTextHeading:p,colorTextDisabled:f,fontSizeLG:m,lineHeight:g,lineHeightLG:y,marginSM:x,paddingSM:w,paddingLG:A,paddingXS:S,motionDurationSlow:C,fontSizeIcon:$,contentPadding:k,fontHeight:E,fontHeightLG:O}=e,P=`${(0,b.zA)(c)} ${d} ${u}`;return{[t]:Object.assign(Object.assign({},(0,v.dF)(e)),{backgroundColor:o,border:P,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:P,"&:first-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`${(0,b.zA)(l)} ${(0,b.zA)(l)} 0 0`}},"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${(0,b.zA)(l)} ${(0,b.zA)(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:g,cursor:"pointer",transition:`all ${C}, visibility 0s`},(0,v.K8)(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:x},[`${t}-arrow`]:Object.assign(Object.assign({},(0,v.Nk)()),{fontSize:$,transition:`transform ${C}`,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:h,backgroundColor:n,borderTop:P,[`& > ${t}-content-box`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:S,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(w).sub(S).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},"&-large":{[`> ${t}-item`]:{fontSize:m,lineHeight:y,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(A).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:A}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${(0,b.zA)(l)} ${(0,b.zA)(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:f,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:x}}}}})}},S=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},C=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},$=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},k=(0,x.OF)("Collapse",e=>{const t=(0,w.oX)(e,{collapseHeaderPaddingSM:`${(0,b.zA)(e.paddingXS)} ${(0,b.zA)(e.paddingSM)}`,collapseHeaderPaddingLG:`${(0,b.zA)(e.padding)} ${(0,b.zA)(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[A(t),C(t),$(t),S(t),(0,y.A)(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"})),E=r.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o,expandIcon:i,className:s,style:g}=(0,f.TP)("collapse"),{prefixCls:b,className:v,rootClassName:y,style:x,bordered:w=!0,ghost:A,size:S,expandIconPosition:C="start",children:$,destroyInactivePanel:E,destroyOnHidden:O,expandIcon:P}=e,j=(0,m.A)(e=>{var t;return null!==(t=null!=S?S:e)&&void 0!==t?t:"middle"}),I=n("collapse",b),M=n(),[T,_,R]=k(I);const B=r.useMemo(()=>"left"===C?"start":"right"===C?"end":C,[C]),F=null!=P?P:i,D=r.useCallback((e={})=>{const t="function"==typeof F?F(e):r.createElement(l.A,{rotate:e.isActive?"rtl"===o?-90:90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return(0,p.Ob)(t,()=>{var e;return{className:a()(null===(e=t.props)||void 0===e?void 0:e.className,`${I}-arrow`)}})},[F,I,o]),z=a()(`${I}-icon-position-${B}`,{[`${I}-borderless`]:!w,[`${I}-rtl`]:"rtl"===o,[`${I}-ghost`]:!!A,[`${I}-${j}`]:"middle"!==j},s,v,y,_,R),N=r.useMemo(()=>Object.assign(Object.assign({},(0,h.A)(M)),{motionAppear:!1,leavedClassName:`${I}-content-hidden`}),[M,I]),L=r.useMemo(()=>$?(0,d.A)($).map((e,t)=>{var n,r;const o=e.props;if(null==o?void 0:o.disabled){const i=null!==(n=e.key)&&void 0!==n?n:String(t),a=Object.assign(Object.assign({},(0,u.A)(e.props,["disabled"])),{key:i,collapsible:null!==(r=o.collapsible)&&void 0!==r?r:"disabled"});return(0,p.Ob)(e,a)}return e}):null,[$]);return T(r.createElement(c.A,Object.assign({ref:t,openMotion:N},(0,u.A)(e,["rootClassName"]),{expandIcon:D,prefixCls:I,className:z,style:Object.assign(Object.assign({},g),x),destroyInactivePanel:null!=O?O:E}),L))});const O=Object.assign(E,{Panel:g});var P=n(19155),j=n(93093),I=n(36058);const M=e=>e.map(e=>(e.colors=e.colors.map(I.Z6),e)),T=(e,t)=>{const{r:n,g:r,b:i,a}=e.toRgb(),s=new o.Q1(e.toRgbString()).onBackground(t).toHsv();return a<=.5?s.v>.5:.299*n+.587*r+.114*i>192},_=(e,t)=>{var n;return`panel-${null!==(n=e.key)&&void 0!==n?n:t}`},R=({prefixCls:e,presets:t,value:n,onChange:i})=>{const[l]=(0,P.A)("ColorPicker"),[,c]=(0,j.Ay)(),[d]=(0,s.A)(M(t),{value:M(t),postState:M}),u=`${e}-presets`,h=(0,r.useMemo)(()=>d.reduce((e,t,n)=>{const{defaultOpen:r=!0}=t;return r&&e.push(_(t,n)),e},[]),[d]),p=d.map((t,s)=>{var d;return{key:_(t,s),label:r.createElement("div",{className:`${u}-label`},null==t?void 0:t.label),children:r.createElement("div",{className:`${u}-items`},Array.isArray(null==t?void 0:t.colors)&&(null===(d=t.colors)||void 0===d?void 0:d.length)>0?t.colors.map((t,s)=>r.createElement(o.ZC,{key:`preset-${s}-${t.toHexString()}`,color:(0,I.Z6)(t).toRgbString(),prefixCls:e,className:a()(`${u}-color`,{[`${u}-color-checked`]:t.toHexString()===(null==n?void 0:n.toHexString()),[`${u}-color-bright`]:T(t,c.colorBgElevated)}),onClick:()=>{return e=t,void(null==i||i(e));var e}})):r.createElement("span",{className:`${u}-empty`},l.presetEmpty))}});return r.createElement("div",{className:u},r.createElement(O,{defaultActiveKey:h,ghost:!0,items:p}))}},36058(e,t,n){"use strict";n.d(t,{E:()=>c,Gp:()=>l,PU:()=>d,W:()=>s,Z6:()=>a});var r=n(60436),o=n(83643),i=n(19911);const a=e=>e instanceof i.kf?e:new i.kf(e),s=e=>Math.round(Number(e||0)),l=e=>s(100*e.toHsb().a),c=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const n=e.toHsb();return n.a=t||1,a(n)}return n.a=t||1,a(n)},d=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat((0,r.A)(e),[{percent:100,color:e[e.length-1].color}]);for(let e=0;ea,X:()=>i});var r=n(96540);const o=r.createContext(!1),i=({children:e,disabled:t})=>{const n=r.useContext(o);return r.createElement(o.Provider,{value:null!=t?t:n},e)},a=o},48224(e,t,n){"use strict";n.d(t,{A:()=>a,c:()=>i});var r=n(96540);const o=r.createContext(void 0),i=({children:e,size:t})=>{const n=r.useContext(o);return r.createElement(o.Provider,{value:t||n},e)},a=o},71919(e,t,n){"use strict";n.d(t,{L:()=>i});n(96540),n(40961);var r=n(14832);let o=(e,t)=>((0,r.X)(e,t),()=>(0,r.v)(t));function i(e){return e&&(o=e),o}},62279(e,t,n){"use strict";n.d(t,{QO:()=>s,TP:()=>d,lJ:()=>a,pM:()=>i,yH:()=>o});var r=n(96540);const o="ant",i="anticon",a=["outlined","borderless","filled","underlined"],s=r.createContext({getPrefixCls:(e,t)=>t||(e?`${o}-${e}`:o),iconPrefixCls:i}),{Consumer:l}=s,c={};function d(e){const t=r.useContext(s),{getPrefixCls:n,direction:o,getPopupContainer:i}=t,a=t[e];return Object.assign(Object.assign({classNames:c,styles:c},a),{getPrefixCls:n,direction:o,getPopupContainer:i})}},35128(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(96540),o=n(62279),i=n(17308);const a=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,r.useContext)(o.QO),a=n("empty");switch(t){case"Table":case"List":return r.createElement(i.A,{image:i.A.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(i.A,{image:i.A.PRESENTED_IMAGE_SIMPLE,className:`${a}-small`});case"Table.filter":return null;default:return r.createElement(i.A,null)}}},20934(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(93093);const o=e=>{const[,,,,t]=(0,r.Ay)();return t?`${e}-css-var`:""}},829(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(96540),o=n(48224);const i=e=>{const t=r.useContext(o.A);return r.useMemo(()=>e?"string"==typeof e?null!=e?e:t:"function"==typeof e?e(t):t:t,[e,t])}},20867(e,t,n){"use strict";n.d(t,{Ay:()=>Y,cr:()=>q});var r=n(96540),o=n.t(r,2),i=n(85530),a=n(61053),s=n(28104),l=n(20488),c=n(18877),d=n(69407),u=n(21815),h=n(60685);const p=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;r.useEffect(()=>(0,u.L)(null==t?void 0:t.Modal),[t]);const i=r.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return r.createElement(h.A.Provider,{value:i},n)};var f=n(83480),m=n(17595),g=n(49806),b=n(50723),v=n(62279),y=n(45748),x=n(2616),w=n(20998),A=n(85089);const S=`-ant-${Date.now()}-${Math.random()}`;function C(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new x.Y(e),i=(0,y.cM)(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new x.Y(t.primaryColor),i=(0,y.cM)(e.toRgbString());i.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setA(.12*e.a));const a=new x.Y(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,e=>e.setA(.3*e.a)),n["primary-color-active-deprecated-d-02"]=r(a,e=>e.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`).join("\n")}\n }\n `.trim()}(e,t);(0,w.A)()&&(0,A.BD)(n,`${S}-dynamic-theme`)}var $=n(98119),k=n(48224);const E=function(){return{componentDisabled:(0,r.useContext)($.A),componentSize:(0,r.useContext)(k.A)}};var O=n(43210);const P=Object.assign({},o),{useId:j}=P,I=void 0===j?()=>"":j;var M=n(90754),T=n(93093);const _=r.createContext(!0);function R(e){const t=r.useContext(_),{children:n}=e,[,o]=(0,T.Ay)(),{motion:i}=o,a=r.useRef(!1);return a.current||(a.current=t!==i),a.current?r.createElement(_.Provider,{value:i},r.createElement(M.Kq,{motion:i},n)):n}const B=()=>null;var F=n(25905);const D=(e,t)=>{const[n,r]=(0,T.Ay)();return(0,i.IV)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>(0,F.jz)(e))};var z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({getPrefixCls:(e,t)=>t||(e?`${V()}-${e}`:V()),getIconPrefixCls:G,getRootPrefixCls:()=>L||V(),getTheme:()=>W,holderRender:U}),X=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:u,anchor:h,form:y,locale:x,componentSize:w,direction:A,space:S,splitter:C,virtual:E,dropdownMatchSelectWidth:P,popupMatchSelectWidth:j,popupOverflow:M,legacyLocale:T,parentContext:_,iconPrefixCls:F,theme:L,componentDisabled:H,segmented:W,statistic:U,spin:V,calendar:G,carousel:q,cascader:X,collapse:K,typography:Y,checkbox:Q,descriptions:J,divider:Z,drawer:ee,skeleton:te,steps:ne,image:re,layout:oe,list:ie,mentions:ae,modal:se,progress:le,result:ce,slider:de,breadcrumb:ue,menu:he,pagination:pe,input:fe,textArea:me,empty:ge,badge:be,radio:ve,rate:ye,switch:xe,transfer:we,avatar:Ae,message:Se,tag:Ce,table:$e,card:ke,tabs:Ee,timeline:Oe,timePicker:Pe,upload:je,notification:Ie,tree:Me,colorPicker:Te,datePicker:_e,rangePicker:Re,flex:Be,wave:Fe,dropdown:De,warning:ze,tour:Ne,tooltip:Le,popover:He,popconfirm:We,floatButton:Ue,floatButtonGroup:Ve,variant:Ge,inputNumber:qe,treeSelect:Xe}=e,Ke=r.useCallback((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||_.getPrefixCls("");return t?`${o}-${t}`:o},[_.getPrefixCls,e.prefixCls]),Ye=F||_.iconPrefixCls||v.pM,Qe=n||_.csp;D(Ye,Qe);const Je=function(e,t,n){var r;(0,c.rJ)("ConfigProvider");const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},g.sb),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:g.sb.hashed,cssVar:null==t?void 0:t.cssVar}),a=I();return(0,s.A)(()=>{var r,s;if(!e)return t;const l=Object.assign({},i.components);Object.keys(e.components||{}).forEach(t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])});const c=`css-var-${a.replace(/:/g,"")}`,d=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(s=o.cssVar)||void 0===s?void 0:s.key)||c});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:l,cssVar:d})},[o,i],(e,t)=>e.some((e,n)=>{const r=t[n];return!(0,O.A)(e,r,!0)}))}(L,_.theme,{prefixCls:Ke("")});const Ze={csp:Qe,autoInsertSpaceInButton:o,alert:u,anchor:h,locale:x||T,direction:A,space:S,splitter:C,virtual:E,popupMatchSelectWidth:null!=j?j:P,popupOverflow:M,getPrefixCls:Ke,iconPrefixCls:Ye,theme:Je,segmented:W,statistic:U,spin:V,calendar:G,carousel:q,cascader:X,collapse:K,typography:Y,checkbox:Q,descriptions:J,divider:Z,drawer:ee,skeleton:te,steps:ne,image:re,input:fe,textArea:me,layout:oe,list:ie,mentions:ae,modal:se,progress:le,result:ce,slider:de,breadcrumb:ue,menu:he,pagination:pe,empty:ge,badge:be,radio:ve,rate:ye,switch:xe,transfer:we,avatar:Ae,message:Se,tag:Ce,table:$e,card:ke,tabs:Ee,timeline:Oe,timePicker:Pe,upload:je,notification:Ie,tree:Me,colorPicker:Te,datePicker:_e,rangePicker:Re,flex:Be,wave:Fe,dropdown:De,warning:ze,tour:Ne,tooltip:Le,popover:He,popconfirm:We,floatButton:Ue,floatButtonGroup:Ve,variant:Ge,inputNumber:qe,treeSelect:Xe};const et=Object.assign({},_);Object.keys(Ze).forEach(e=>{void 0!==Ze[e]&&(et[e]=Ze[e])}),N.forEach(t=>{const n=e[t];n&&(et[t]=n)}),void 0!==o&&(et.button=Object.assign({autoInsertSpace:o},et.button));const tt=(0,s.A)(()=>et,et,(e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:nt}=r.useContext(i.J),rt=r.useMemo(()=>({prefixCls:Ye,csp:Qe,layer:nt?"antd":void 0}),[Ye,Qe,nt]);let ot=r.createElement(r.Fragment,null,r.createElement(B,{dropdownMatchSelectWidth:P}),t);const it=r.useMemo(()=>{var e,t,n,r;return(0,l.h)((null===(e=f.A.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=tt.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=tt.form)||void 0===r?void 0:r.validateMessages)||{},(null==y?void 0:y.validateMessages)||{})},[tt,null==y?void 0:y.validateMessages]);Object.keys(it).length>0&&(ot=r.createElement(d.A.Provider,{value:it},ot)),x&&(ot=r.createElement(p,{locale:x,_ANT_MARK__:"internalMark"},ot)),(Ye||Qe)&&(ot=r.createElement(a.A.Provider,{value:rt},ot)),w&&(ot=r.createElement(k.c,{size:w},ot)),ot=r.createElement(R,null,ot);const at=r.useMemo(()=>{const e=Je||{},{algorithm:t,token:n,components:r,cssVar:o}=e,a=z(e,["algorithm","token","components","cssVar"]),s=t&&(!Array.isArray(t)||t.length>0)?(0,i.an)(t):m.A,l={};Object.entries(r||{}).forEach(([e,t])=>{const n=Object.assign({},t);"algorithm"in n&&(!0===n.algorithm?n.theme=s:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=(0,i.an)(n.algorithm)),delete n.algorithm),l[e]=n});const c=Object.assign(Object.assign({},b.A),n);return Object.assign(Object.assign({},a),{theme:s,token:c,components:l,override:Object.assign({override:c},l),cssVar:o})},[Je]);return L&&(ot=r.createElement(g.vG.Provider,{value:at},ot)),tt.warning&&(ot=r.createElement(c._n.Provider,{value:tt.warning},ot)),void 0!==H&&(ot=r.createElement($.X,{disabled:H},ot)),r.createElement(v.QO.Provider,{value:tt},ot)},K=e=>{const t=r.useContext(v.QO),n=r.useContext(h.A);return r.createElement(X,Object.assign({parentContext:t,legacyLocale:n},e))};K.ConfigContext=v.QO,K.SizeContext=k.A,K.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(L=t),void 0!==n&&(H=n),"holderRender"in e&&(U=o),r&&(!function(e){return Object.keys(e).some(e=>e.endsWith("Color"))}(r)?W=r:C(V(),r))},K.useConfig=E,Object.defineProperty(K,"SizeContext",{get:()=>k.A});const Y=K},93298(e,t,n){"use strict";n.d(t,{A:()=>_e});var r=n(52699),o=n(53425),i=n(96540),a=n(58168);const s={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};var l=n(87064),c=function(e,t){return i.createElement(l.A,(0,a.A)({},e,{ref:t,icon:s}))};const d=i.forwardRef(c);var u=n(46942),h=n.n(u),p=n(88966),f=n(62897),m=n(60275),g=n(58182),b=n(62279),v=n(98119),y=n(20934),x=n(829),w=n(94241),A=n(90124),S=n(19155),C=n(37090),$=n(60436);function k(e,...t){const n=e||{};return t.reduce((e,t)=>(Object.keys(t||{}).forEach(r=>{const o=n[r],i=t[r];if(o&&"object"==typeof o)if(i&&"object"==typeof i)e[r]=k(o,e[r],i);else{const{_default:t}=o;t&&(e[r]=e[r]||{},e[r][t]=h()(e[r][t],i))}else e[r]=h()(e[r],i)}),e),{})}function E(e,...t){return i.useMemo(()=>k.apply(void 0,[e].concat(t)),[t,e])}function O(...e){return i.useMemo(()=>e.reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]=Object.assign(Object.assign({},e[n]),t[n])}),e),{}),[e])}function P(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(e=>{if("_default"!==e){const r=t[e],o=n[e]||{};n[e]=r?P(o,r):o}}),n}const j=(e,t,n)=>{const r=E.apply(void 0,[n].concat((0,$.A)(e))),o=O.apply(void 0,(0,$.A)(t));return i.useMemo(()=>[P(r,n),P(o,n)],[r,o,n])},I=(e,t,n,r,o)=>{const{classNames:a,styles:s}=(0,b.TP)(e),[l,c]=j([a,t],[s,n],{popup:{_default:"root"}});return i.useMemo(()=>{var e,t;return[Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:h()(null===(e=l.popup)||void 0===e?void 0:e.root,r)})}),Object.assign(Object.assign({},c),{popup:Object.assign(Object.assign({},c.popup),{root:Object.assign(Object.assign({},null===(t=c.popup)||void 0===t?void 0:t.root),o)})})]},[l,c,r,o])};var M=n(61340),T=n(85530),_=n(81594),R=n(44335),B=n(25905),F=n(55974),D=n(53561),z=n(24211),N=n(20791),L=n(37358),H=n(14277),W=n(36784);const U=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=(0,W._8)(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:(0,T.zA)(i.itemLineHeight)}}}]},V=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=(0,H.oX)(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=(0,H.oX)(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[U(o,"small"),U(e),U(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},(0,W.Q3)(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]};var G=n(2616);const q=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:d,colorTextLightSolid:u,colorTextDisabled:h,cellBgDisabled:p,colorFillSecondary:f}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:(0,T.zA)(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,T.zA)(s)} ${l} ${c}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:u,background:c},[`&${t}-disabled ${n}`]:{background:f}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:h,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:h}}},X=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:d,lineWidth:u,lineType:h,borderRadiusLG:p,colorPrimary:f,colorTextHeading:m,colorSplit:g,pickerControlIconBorderWidth:b,colorIcon:v,textHeight:y,motionDurationMid:x,colorIconHover:w,fontWeightStrong:A,cellHeight:S,pickerCellPaddingVertical:C,colorTextDisabled:$,colorText:k,fontSize:E,motionDurationSlow:O,withoutTimeCellHeight:P,pickerQuarterPanelContentHeight:j,borderRadiusSM:I,colorTextLightSolid:M,cellHoverBg:_,timeColumnHeight:R,timeColumnWidth:B,timeCellHeight:F,controlItemBgActive:D,marginXXS:z,pickerDatePanelPaddingHorizontal:N,pickerControlIconMargin:L}=e,H=e.calc(a).mul(7).add(e.calc(N).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:p,outline:"none","&-focused":{borderColor:f},"&-rtl":{[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:H},"&-header":{display:"flex",padding:`0 ${(0,T.zA)(l)}`,color:m,borderBottom:`${(0,T.zA)(u)} ${h} ${g}`,"> *":{flex:"none"},button:{padding:0,color:v,lineHeight:(0,T.zA)(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${x}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:E,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:A,lineHeight:(0,T.zA)(y),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:f}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:L,insetInlineStart:L,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:b,borderInlineStartWidth:b,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:S,fontWeight:"normal"},th:{height:e.calc(S).add(e.calc(C).mul(2)).equal(),color:k,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,T.zA)(C)} 0`,color:$,cursor:"pointer","&-in-view":{color:k}},q(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(P).mul(4).equal()},[r]:{padding:`0 ${(0,T.zA)(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:j}},"&-decade-panel":{[r]:{padding:`0 ${(0,T.zA)(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${(0,T.zA)(l)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${(0,T.zA)(l)} ${(0,T.zA)(N)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${x}`},"&:first-child:before":{borderStartStartRadius:I,borderEndStartRadius:I},"&:last-child:before":{borderStartEndRadius:I,borderEndEndRadius:I}},"&:hover td:before":{background:_},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:f},[`&${t}-cell-week`]:{color:new G.Y(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:D}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${(0,T.zA)(l)} ${(0,T.zA)(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${(0,T.zA)(u)} ${h} ${g}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${O}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:R},"&-column":{flex:"1 0 auto",width:B,margin:`${(0,T.zA)(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${x}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${(0,T.zA)(F)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,T.zA)(u)} ${h} ${g}`},"&-active":{background:new G.Y(D).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:z,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(B).sub(e.calc(z).mul(2)).equal(),height:F,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(B).sub(F).div(2).equal(),color:k,lineHeight:(0,T.zA)(F),borderRadius:I,cursor:"pointer",transition:`background ${x}`,"&:hover":{background:_}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:D}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:$,background:"transparent",cursor:"not-allowed"}}}}}}}}},K=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${(0,T.zA)(r)} ${c} ${d}`,"&-extra":{padding:`0 ${(0,T.zA)(o)}`,lineHeight:(0,T.zA)(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,T.zA)(r)} ${c} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:(0,T.zA)(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:(0,T.zA)(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}};var Y=n(89222);const Q=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},(0,Y.Eb)(e)),(0,Y.aP)(e)),(0,Y.sA)(e)),(0,Y.lB)(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,T.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${(0,T.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,T.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${(0,T.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},J=(e,t)=>({padding:`${(0,T.zA)(e)} ${(0,T.zA)(t)}`}),Z=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},ee=e=>{var t;const{componentCls:n,antCls:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:d,colorTextPlaceholder:u,colorTextQuaternary:h,fontSizeLG:p,inputFontSizeLG:f,fontSizeSM:m,inputFontSizeSM:g,controlHeightSM:b,paddingInlineSM:v,paddingXS:y,marginXS:x,colorIcon:w,lineWidthBold:A,colorPrimary:S,motionDurationSlow:C,zIndexPopup:$,paddingXXS:k,sizePopupArrow:E,colorBgElevated:O,borderRadiusLG:P,boxShadowSecondary:j,borderRadiusSM:I,colorSplit:M,cellHoverBg:R,presetsWidth:F,presetsMaxWidth:L,boxShadowPopoverArrow:H,fontHeight:W,lineHeightLG:U}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},(0,B.dF)(e)),J(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:null!==(t=e.inputFontSize)&&void 0!==t?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},(0,_.j_)(u)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:u}}},"&-large":Object.assign(Object.assign({},J(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:null!=f?f:p,lineHeight:U}}),"&-small":Object.assign(Object.assign({},J(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:null!=g?g:m}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:h,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:x}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:h,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:w}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:h,fontSize:p,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:w},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:A,background:S,opacity:0,transition:`all ${C} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${(0,T.zA)(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:o},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:v}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,B.dF)(e)),X(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:$,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,\n &${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,\n &${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,\n &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,\n &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:D.nP},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,\n &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,\n &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:D.ox},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,\n &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:D.YU},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,\n &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:D.vR},[`${n}-panel > ${n}-time-panel`]:{paddingTop:k},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${C} ease-out`},(0,N.j)(e,O,H)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:O,borderRadius:P,boxShadow:j,transition:`margin ${C}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:F,maxWidth:L,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${(0,T.zA)(i)} ${a} ${M}`,li:Object.assign(Object.assign({},B.L9),{borderRadius:I,paddingInline:y,paddingBlock:e.calc(b).sub(W).div(2).equal(),cursor:"pointer",transition:`all ${C}`,"+ li":{marginTop:x},"&:hover":{background:R}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${(0,T.zA)(e.calc(E).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,D._j)(e,"slide-up"),(0,D._j)(e,"slide-down"),(0,z.Mh)(e,"move-up"),(0,z.Mh)(e,"move-down")]},te=(0,L.OF)("DatePicker",e=>{const t=(0,H.oX)((0,R.C)(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[K(t),ee(t),Q(t),Z(t),V(t),(0,F.G)(e,{focusElCls:`${e.componentCls}-focused`})]},e=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,R.b)(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,s=2*i,l=2*a,c=Math.min(n-s,n-l),d=Math.min(r-s,r-l),u=Math.min(o-s,o-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new G.Y(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new G.Y(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:d,multipleItemHeightLG:u,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),(0,N.n)(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}));var ne=n(26017);function re(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function oe(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function ie(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=(0,ne.A)(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[i.useMemo(()=>{if(!1===n)return!1;const e=!0===n?{}:n;return Object.assign({clearIcon:r},e)},[n,r]),o]}const[ae,se]=["week","WeekPicker"],[le,ce]=["month","MonthPicker"],[de,ue]=["year","YearPicker"],[he,pe]=["quarter","QuarterPicker"],[fe,me]=["time","TimePicker"];const ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var be=function(e,t){return i.createElement(l.A,(0,a.A)({},e,{ref:t,icon:ge}))};const ve=i.forwardRef(be);const ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var xe=function(e,t){return i.createElement(l.A,(0,a.A)({},e,{ref:t,icon:ye}))};const we=i.forwardRef(xe),Ae=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>null===r||!1===r?null:!0===r||void 0===r?i.createElement(i.Fragment,null,e===fe?i.createElement(we,null):i.createElement(ve,null),t&&n):r;var Se=n(79249);const Ce=e=>i.createElement(Se.Ay,Object.assign({size:"small",type:"primary"},e));function $e(e){return(0,i.useMemo)(()=>Object.assign({button:Ce},e),[e])}var ke=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const t=(0,i.forwardRef)((t,n)=>{var r;const{prefixCls:o,getPopupContainer:a,components:s,className:l,style:c,placement:u,size:$,disabled:k,bordered:E=!0,placeholder:O,popupStyle:P,popupClassName:j,dropdownClassName:T,status:_,rootClassName:R,variant:B,picker:F,styles:D,classNames:z,suffixIcon:N}=t,L=ke(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),H=F===fe?"timePicker":"datePicker",W=i.useRef(null),{getPrefixCls:U,direction:V,getPopupContainer:G,rangePicker:q}=(0,i.useContext)(b.QO),X=U("picker",o),{compactSize:K,compactItemClassnames:Y}=(0,C.RQ)(X,V),Q=U(),[J,Z]=(0,A.A)("rangePicker",B,E),ee=(0,y.A)(X),[ne,re,ae]=te(X,ee);const[se,le]=I(H,z,D,j||T,P),[ce]=ie(t,X),de=$e(s),ue=(0,x.A)(e=>{var t;return null!==(t=null!=$?$:K)&&void 0!==t?t:e}),he=i.useContext(v.A),pe=null!=k?k:he,me=(0,i.useContext)(w.$W),{hasFeedback:ge,status:be,feedbackIcon:ve}=me,ye=i.createElement(Ae,{picker:F,hasFeedback:ge,feedbackIcon:ve,suffixIcon:N});(0,i.useImperativeHandle)(n,()=>W.current);const[xe]=(0,S.A)("Calendar",M.A),we=Object.assign(Object.assign({},xe),t.locale),[Se]=(0,m.YK)("DatePicker",null===(r=le.popup.root)||void 0===r?void 0:r.zIndex);return ne(i.createElement(f.A,{space:!0},i.createElement(p.cv,Object.assign({separator:i.createElement("span",{"aria-label":"to",className:`${X}-separator`},i.createElement(d,null)),disabled:pe,ref:W,placement:u,placeholder:oe(we,F,O),suffixIcon:ye,prevIcon:i.createElement("span",{className:`${X}-prev-icon`}),nextIcon:i.createElement("span",{className:`${X}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${X}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${X}-super-next-icon`}),transitionName:`${Q}-slide-up`,picker:F},L,{className:h()({[`${X}-${ue}`]:ue,[`${X}-${J}`]:Z},(0,g.L)(X,(0,g.v)(be,_),ge),re,Y,l,null==q?void 0:q.className,ae,ee,R,se.root),style:Object.assign(Object.assign(Object.assign({},null==q?void 0:q.style),c),le.root),locale:we.lang,prefixCls:X,getPopupContainer:a||G,generateConfig:e,components:de,direction:V,classNames:{popup:h()(re,ae,ee,R,se.popup.root)},styles:{popup:Object.assign(Object.assign({},le.popup.root),{zIndex:Se})},allowClear:ce}))))});return t};var Oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const t=(t,n)=>{const r=n===me?"timePicker":"datePicker",o=(0,i.forwardRef)((n,o)=>{var a;const{prefixCls:s,getPopupContainer:l,components:c,style:d,className:u,rootClassName:$,size:k,bordered:E,placement:O,placeholder:P,popupStyle:j,popupClassName:T,dropdownClassName:_,disabled:R,status:B,variant:F,onCalendarChange:D,styles:z,classNames:N,suffixIcon:L}=n,H=Oe(n,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:W,direction:U,getPopupContainer:V,[r]:G}=(0,i.useContext)(b.QO),q=W("picker",s),{compactSize:X,compactItemClassnames:K}=(0,C.RQ)(q,U),Y=i.useRef(null),[Q,J]=(0,A.A)("datePicker",F,E),Z=(0,y.A)(q),[ee,ne,oe]=te(q,Z);(0,i.useImperativeHandle)(o,()=>Y.current);const ae=t||n.picker,se=W(),{onSelect:le,multiple:ce}=H,de=le&&"time"===t&&!ce;const[ue,he]=I(r,N,z,T||_,j),[pe,fe]=ie(n,q),me=$e(c),ge=(0,x.A)(e=>{var t;return null!==(t=null!=k?k:X)&&void 0!==t?t:e}),be=i.useContext(v.A),ve=null!=R?R:be,ye=(0,i.useContext)(w.$W),{hasFeedback:xe,status:we,feedbackIcon:Se}=ye,Ce=i.createElement(Ae,{picker:ae,hasFeedback:xe,feedbackIcon:Se,suffixIcon:L}),[ke]=(0,S.A)("DatePicker",M.A),Ee=Object.assign(Object.assign({},ke),n.locale),[Pe]=(0,m.YK)("DatePicker",null===(a=he.popup.root)||void 0===a?void 0:a.zIndex);return ee(i.createElement(f.A,{space:!0},i.createElement(p.Ay,Object.assign({ref:Y,placeholder:re(Ee,ae,P),suffixIcon:Ce,placement:O,prevIcon:i.createElement("span",{className:`${q}-prev-icon`}),nextIcon:i.createElement("span",{className:`${q}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${q}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${q}-super-next-icon`}),transitionName:`${se}-slide-up`,picker:t,onCalendarChange:(e,t,n)=>{null==D||D(e,t,n),de&&le(e)}},{showToday:!0},H,{locale:Ee.lang,className:h()({[`${q}-${ge}`]:ge,[`${q}-${Q}`]:J},(0,g.L)(q,(0,g.v)(we,B),xe),ne,K,null==G?void 0:G.className,u,oe,Z,$,ue.root),style:Object.assign(Object.assign(Object.assign({},null==G?void 0:G.style),d),he.root),prefixCls:q,getPopupContainer:l||V,generateConfig:e,components:me,direction:U,disabled:ve,classNames:{popup:h()(ne,oe,Z,$,ue.popup.root)},styles:{popup:Object.assign(Object.assign({},he.popup.root),{zIndex:Pe})},allowClear:pe,removeIcon:fe}))))});return o},n=t(),r=t(ae,se),o=t(le,ce),a=t(de,ue),s=t(he,pe);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:t(fe,me),QuarterPicker:s}},je=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=Pe(e),s=Ee(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=o,l.RangePicker=s,l.TimePicker=i,l.QuarterPicker=a,l},Ie=je(r.A),Me=(0,o.A)(Ie,"popupAlign",void 0,"picker");Ie._InternalPanelDoNotUseOrYouWillBeFired=Me;const Te=(0,o.A)(Ie.RangePicker,"popupAlign",void 0,"picker");Ie._InternalRangePanelDoNotUseOrYouWillBeFired=Te,Ie.generatePicker=je;const _e=Ie},61340(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(64395),o=n(65341);const i={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},r.A),timePickerLocale:Object.assign({},o.A)}},55957(e,t,n){"use strict";n.d(t,{A:()=>j});var r=n(96540),o=n(46942),i=n.n(o),a=n(14703),s=n(62279),l=n(829),c=n(78551);const d={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},u=r.createContext({});var h=n(82546),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{return t||(e=n,(0,h.A)(e).map(e=>Object.assign(Object.assign({},null==e?void 0:e.props),{key:e.key})));var e},[t,n]);return r.useMemo(()=>o.map(t=>{var{span:n}=t,r=p(t,["span"]);return"filled"===n?Object.assign(Object.assign({},r),{filled:!0}):Object.assign(Object.assign({},r),{span:"number"==typeof n?n:(0,a.ko)(e,n)})}),[o,e])}var m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const[n,o]=(0,r.useMemo)(()=>function(e,t){let n=[],r=[],o=!1,i=0;return e.filter(e=>e).forEach(e=>{const{filled:a}=e,s=m(e,["filled"]);if(a)return r.push(s),n.push(r),r=[],void(i=0);const l=t-i;i+=e.span||1,i>=t?(i>t?(o=!0,r.push(Object.assign(Object.assign({},s),{span:l}))):r.push(s),n.push(r),r=[],i=0):r.push(s)}),r.length>0&&n.push(r),n=n.map(e=>{const n=e.reduce((e,t)=>e+(t.span||1),0);if(ne,v=e=>null!=e,y=e=>{const{itemPrefixCls:t,component:n,span:o,className:a,style:s,labelStyle:l,contentStyle:c,bordered:d,label:h,content:p,colon:f,type:m,styles:g}=e,b=n,{classNames:y}=r.useContext(u),x=Object.assign(Object.assign({},l),null==g?void 0:g.label),w=Object.assign(Object.assign({},c),null==g?void 0:g.content);return d?r.createElement(b,{colSpan:o,style:s,className:i()(a,{[`${t}-item-${m}`]:"label"===m||"content"===m,[null==y?void 0:y.label]:(null==y?void 0:y.label)&&"label"===m,[null==y?void 0:y.content]:(null==y?void 0:y.content)&&"content"===m})},v(h)&&r.createElement("span",{style:x},h),v(p)&&r.createElement("span",{style:w},p)):r.createElement(b,{colSpan:o,style:s,className:i()(`${t}-item`,a)},r.createElement("div",{className:`${t}-item-container`},v(h)&&r.createElement("span",{style:x,className:i()(`${t}-item-label`,null==y?void 0:y.label,{[`${t}-item-no-colon`]:!f})},h),v(p)&&r.createElement("span",{style:w,className:i()(`${t}-item-content`,null==y?void 0:y.content)},p)))};function x(e,{colon:t,prefixCls:n,bordered:o},{component:i,type:a,showLabel:s,showContent:l,labelStyle:c,contentStyle:d,styles:u}){return e.map(({label:e,children:h,prefixCls:p=n,className:f,style:m,labelStyle:g,contentStyle:b,span:v=1,key:x,styles:w},A)=>"string"==typeof i?r.createElement(y,{key:`${a}-${x||A}`,className:f,style:m,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},c),null==u?void 0:u.label),g),null==w?void 0:w.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},d),null==u?void 0:u.content),b),null==w?void 0:w.content)},span:v,colon:t,component:i,itemPrefixCls:p,bordered:o,label:s?e:null,content:l?h:null,type:a}):[r.createElement(y,{key:`label-${x||A}`,className:f,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),null==u?void 0:u.label),m),g),null==w?void 0:w.label),span:1,colon:t,component:i[0],itemPrefixCls:p,bordered:o,label:e,type:"label"}),r.createElement(y,{key:`content-${x||A}`,className:f,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},d),null==u?void 0:u.content),m),b),null==w?void 0:w.content),span:2*v-1,component:i[1],itemPrefixCls:p,bordered:o,content:h,type:"content"})])}const w=e=>{const t=r.useContext(u),{prefixCls:n,vertical:o,row:i,index:a,bordered:s}=e;return o?r.createElement(r.Fragment,null,r.createElement("tr",{key:`label-${a}`,className:`${n}-row`},x(i,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),r.createElement("tr",{key:`content-${a}`,className:`${n}-row`},x(i,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):r.createElement("tr",{key:a,className:`${n}-row`},x(i,e,Object.assign({component:s?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))};var A=n(85530),S=n(25905),C=n(37358),$=n(14277);const k=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${(0,A.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${(0,A.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,A.zA)(e.padding)} ${(0,A.zA)(e.paddingLG)}`,borderInlineEnd:`${(0,A.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,A.zA)(e.paddingSM)} ${(0,A.zA)(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,A.zA)(e.paddingXS)} ${(0,A.zA)(e.padding)}`}}}}}},E=(0,C.OF)("Descriptions",e=>(e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},(0,S.dF)(e)),k(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},S.L9),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,A.zA)(a)} ${(0,A.zA)(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}})((0,$.oX)(e,{})),e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}));var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,title:n,extra:o,column:h,colon:p=!0,bordered:m,layout:b,children:v,className:y,rootClassName:x,style:A,size:S,labelStyle:C,contentStyle:$,styles:k,items:P,classNames:j}=e,I=O(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:M,direction:T,className:_,style:R,classNames:B,styles:F}=(0,s.TP)("descriptions"),D=M("descriptions",t),z=(0,c.A)();const N=r.useMemo(()=>{var e;return"number"==typeof h?h:null!==(e=(0,a.ko)(z,Object.assign(Object.assign({},d),h)))&&void 0!==e?e:3},[z,h]),L=f(z,P,v),H=(0,l.A)(S),W=g(N,L),[U,V,G]=E(D),q=r.useMemo(()=>({labelStyle:C,contentStyle:$,styles:{content:Object.assign(Object.assign({},F.content),null==k?void 0:k.content),label:Object.assign(Object.assign({},F.label),null==k?void 0:k.label)},classNames:{label:i()(B.label,null==j?void 0:j.label),content:i()(B.content,null==j?void 0:j.content)}}),[C,$,k,j,B,F]);return U(r.createElement(u.Provider,{value:q},r.createElement("div",Object.assign({className:i()(D,_,B.root,null==j?void 0:j.root,{[`${D}-${H}`]:H&&"default"!==H,[`${D}-bordered`]:!!m,[`${D}-rtl`]:"rtl"===T},y,x,V,G),style:Object.assign(Object.assign(Object.assign(Object.assign({},R),F.root),null==k?void 0:k.root),A)},I),(n||o)&&r.createElement("div",{className:i()(`${D}-header`,B.header,null==j?void 0:j.header),style:Object.assign(Object.assign({},F.header),null==k?void 0:k.header)},n&&r.createElement("div",{className:i()(`${D}-title`,B.title,null==j?void 0:j.title),style:Object.assign(Object.assign({},F.title),null==k?void 0:k.title)},n),o&&r.createElement("div",{className:i()(`${D}-extra`,B.extra,null==j?void 0:j.extra),style:Object.assign(Object.assign({},F.extra),null==k?void 0:k.extra)},o)),r.createElement("div",{className:`${D}-view`},r.createElement("table",null,r.createElement("tbody",null,W.map((e,t)=>r.createElement(w,{key:t,index:t,colon:p,prefixCls:D,vertical:"vertical"===b,bordered:m,row:e}))))))))};P.Item=b;const j=P},36552(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(96540),o=n(46942),i=n.n(o),a=n(62279),s=n(829),l=n(85530),c=n(25905),d=n(37358),u=n(14277);const h=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},p=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,c.dF)(e)),{borderBlockStart:`${(0,l.zA)(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,l.zA)(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,l.zA)(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,l.zA)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,l.zA)(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${(0,l.zA)(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${(0,l.zA)(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},f=(0,d.OF)("Divider",e=>{const t=(0,u.oX)(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[p(t),h(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});var m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,className:o,style:l}=(0,a.TP)("divider"),{prefixCls:c,type:d="horizontal",orientation:u="center",orientationMargin:h,className:p,rootClassName:b,children:v,dashed:y,variant:x="solid",plain:w,style:A,size:S}=e,C=m(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),$=t("divider",c),[k,E,O]=f($),P=(0,s.A)(S),j=g[P],I=!!v,M=r.useMemo(()=>"left"===u?"rtl"===n?"end":"start":"right"===u?"rtl"===n?"start":"end":u,[n,u]),T="start"===M&&null!=h,_="end"===M&&null!=h,R=i()($,o,E,O,`${$}-${d}`,{[`${$}-with-text`]:I,[`${$}-with-text-${M}`]:I,[`${$}-dashed`]:!!y,[`${$}-${x}`]:"solid"!==x,[`${$}-plain`]:!!w,[`${$}-rtl`]:"rtl"===n,[`${$}-no-default-orientation-margin-start`]:T,[`${$}-no-default-orientation-margin-end`]:_,[`${$}-${j}`]:!!j},p,b),B=r.useMemo(()=>"number"==typeof h?h:/^\d+$/.test(h)?Number(h):h,[h]),F={marginInlineStart:T?B:void 0,marginInlineEnd:_?B:void 0};return k(r.createElement("div",Object.assign({className:R,style:Object.assign(Object.assign({},l),A)},C,{role:"separator"}),v&&"vertical"!==d&&r.createElement("span",{className:`${$}-inner-text`,style:F},v)))}},17308(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(96540),o=n(46942),i=n.n(o),a=n(62279),s=n(19155),l=n(2616),c=n(93093);const d=()=>{const[,e]=(0,c.Ay)(),[t]=(0,s.A)("Empty"),n=new l.Y(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return r.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,(null==t?void 0:t.description)||"Empty"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.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"}),r.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)"}),r.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"}),r.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"})),r.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"}),r.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const u=()=>{const[,e]=(0,c.Ay)(),[t]=(0,s.A)("Empty"),{colorFill:n,colorFillTertiary:o,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:d,shadowColor:u,contentColor:h}=(0,r.useMemo)(()=>({borderColor:new l.Y(n).onBackground(a).toHexString(),shadowColor:new l.Y(o).onBackground(a).toHexString(),contentColor:new l.Y(i).onBackground(a).toHexString()}),[n,o,i,a]);return r.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,(null==t?void 0:t.description)||"Empty"),r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{fill:u,cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{fillRule:"nonzero",stroke:d},r.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"}),r.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:h}))))};var h=n(37358),p=n(14277);const f=(0,h.OF)("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e;return(e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}})((0,p.oX)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))});var m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;const{className:n,rootClassName:o,prefixCls:l,image:c,description:d,children:u,imageStyle:h,style:p,classNames:v,styles:y}=e,x=m(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:w,direction:A,className:S,style:C,classNames:$,styles:k,image:E}=(0,a.TP)("empty"),O=w("empty",l),[P,j,I]=f(O),[M]=(0,s.A)("Empty"),T=void 0!==d?d:null==M?void 0:M.description,_="string"==typeof T?T:"empty",R=null!==(t=null!=c?c:E)&&void 0!==t?t:g;let B=null;return B="string"==typeof R?r.createElement("img",{draggable:!1,alt:_,src:R}):R,P(r.createElement("div",Object.assign({className:i()(j,I,O,S,{[`${O}-normal`]:R===b,[`${O}-rtl`]:"rtl"===A},n,o,$.root,null==v?void 0:v.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},k.root),C),null==y?void 0:y.root),p)},x),r.createElement("div",{className:i()(`${O}-image`,$.image,null==v?void 0:v.image),style:Object.assign(Object.assign(Object.assign({},h),k.image),null==y?void 0:y.image)},B),T&&r.createElement("div",{className:i()(`${O}-description`,$.description,null==v?void 0:v.description),style:Object.assign(Object.assign({},k.description),null==y?void 0:y.description)},T),u&&r.createElement("div",{className:i()(`${O}-footer`,$.footer,null==v?void 0:v.footer),style:Object.assign(Object.assign({},k.footer),null==y?void 0:y.footer)},u)))};v.PRESENTED_IMAGE_DEFAULT=g,v.PRESENTED_IMAGE_SIMPLE=b;const y=v},94241(e,t,n){"use strict";n.d(t,{$W:()=>d,Op:()=>l,Pp:()=>h,XB:()=>u,cK:()=>a,hb:()=>c,jC:()=>s});var r=n(96540),o=n(93592),i=n(19853);const a=r.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),s=r.createContext(null),l=e=>{const t=(0,i.A)(e,["prefixCls"]);return r.createElement(o.Op,Object.assign({},t))},c=r.createContext({prefixCls:""}),d=r.createContext({});const u=({children:e,status:t,override:n})=>{const o=r.useContext(d),i=r.useMemo(()=>{const e=Object.assign({},o);return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,o]);return r.createElement(d.Provider,{value:i},e)},h=r.createContext(void 0)},52292(e,t,n){"use strict";n.d(t,{A:()=>u,H:()=>c});var r=n(96540),o=n(93592),i=n(66588),a=n(68499),s=n(16984),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);onull!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=c(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:(e,t={})=>{const{focus:n}=t,r=l(t,["focus"]),o=d(e,i);o&&((0,a.A)(o,Object.assign({scrollMode:"if-needed",block:"nearest"},r)),n&&i.focusField(e))},focusField:e=>{var t,n;const r=i.getFieldInstance(e);"function"==typeof(null==r?void 0:r.focus)?r.focus():null===(n=null===(t=d(e,i))||void 0===t?void 0:t.focus)||void 0===n||n.call(t)},getFieldInstance:e=>{const t=c(e);return n.current[t]}}),[e,t]);return[i]}},90124(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(96540),o=n(62279),i=n(94241);const a=(e,t,n)=>{var a,s;const{variant:l,[e]:c}=r.useContext(o.QO),d=r.useContext(i.Pp),u=null==c?void 0:c.variant;let h;h=void 0!==t?t:!1===n?"borderless":null!==(s=null!==(a=null!=d?d:u)&&void 0!==a?a:l)&&void 0!==s?s:"outlined";return[h,o.lJ.includes(h)]}},53691(e,t,n){"use strict";n.d(t,{A:()=>Me});var r=n(94241),o=n(60436),i=n(96540),a=n(46942),s=n.n(a),l=n(90754),c=n(23723),d=n(20934);function u(e){const[t,n]=i.useState(e);return i.useEffect(()=>{const t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}var h=n(85530),p=n(25905),f=n(99077),m=n(60977),g=n(14277),b=n(37358);const v=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},\n opacity ${e.motionDurationFast} ${e.motionEaseInOut},\n transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},y=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,h.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,h.zA)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),x=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},w=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,p.dF)(e)),y(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},x(e,e.controlHeightSM)),"&-large":Object.assign({},x(e,e.controlHeightLG))})}},A=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:d,itemMarginBottom:u}=e;return{[t]:Object.assign(Object.assign({},(0,p.dF)(e)),{marginBottom:u,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:a,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:f.nF,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},S=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),C=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,\n ${t}-col-xl-24${n}-label`]:S(e)}}},$=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},k=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:S(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},E=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${r}-col-24${n}-label,\n ${r}-col-xl-24${n}-label`]:S(e)},[`@media (max-width: ${(0,h.zA)(e.screenXSMax)})`]:[k(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:S(e)}}}],[`@media (max-width: ${(0,h.zA)(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:S(e)}}},[`@media (max-width: ${(0,h.zA)(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:S(e)}}},[`@media (max-width: ${(0,h.zA)(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:S(e)}}}}},O=(e,t)=>(0,g.oX)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),P=(0,b.OF)("Form",(e,{rootPrefixCls:t})=>{const n=O(e,t);return[w(n),A(n),v(n),C(n),$(n),E(n),(0,m.A)(n),f.nF]},e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),{order:-1e3}),j=[];function I(e,t,n,r=0){return{key:"string"==typeof e?e:`${t}-${r}`,error:e,errorStatus:n}}const M=({help:e,helpStatus:t,errors:n=j,warnings:a=j,className:h,fieldId:p,onVisibleChanged:f})=>{const{prefixCls:m}=i.useContext(r.hb),g=`${m}-item-explain`,b=(0,d.A)(m),[v,y,x]=P(m,b),w=i.useMemo(()=>(0,c.A)(m),[m]),A=u(n),S=u(a),C=i.useMemo(()=>null!=e?[I(e,"help",t)]:[].concat((0,o.A)(A.map((e,t)=>I(e,"error","error",t))),(0,o.A)(S.map((e,t)=>I(e,"warning","warning",t)))),[e,t,A,S]),$=i.useMemo(()=>{const e={};return C.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),C.map((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[C]),k={};return p&&(k.id=`${p}_help`),v(i.createElement(l.Ay,{motionDeadline:w.motionDeadline,motionName:`${m}-show-help`,visible:!!$.length,onVisibleChanged:f},e=>{const{className:t,style:n}=e;return i.createElement("div",Object.assign({},k,{className:s()(g,t,x,b,h,y),style:n}),i.createElement(l.aF,Object.assign({keys:$},(0,c.A)(m),{motionName:`${m}-show-help-item`,component:!1}),e=>{const{key:t,error:n,errorStatus:r,className:o,style:a}=e;return i.createElement("div",{key:t,className:s()(o,{[`${g}-${r}`]:r}),style:a},n)}))}))};var T=n(93592),_=n(62279),R=n(98119),B=n(829),F=n(48224),D=n(52292),z=n(69407),N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=i.useContext(R.A),{getPrefixCls:o,direction:a,requiredMark:l,colon:c,scrollToFirstError:u,className:h,style:p}=(0,_.TP)("form"),{prefixCls:f,className:m,rootClassName:g,size:b,disabled:v=n,form:y,colon:x,labelAlign:w,labelWrap:A,labelCol:S,wrapperCol:C,hideRequiredMark:$,layout:k="horizontal",scrollToFirstError:E,requiredMark:O,onFinishFailed:j,name:I,style:M,feedbackIcons:L,variant:H}=e,W=N(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),U=(0,B.A)(b),V=i.useContext(z.A);const G=i.useMemo(()=>void 0!==O?O:!$&&(void 0===l||l),[$,O,l]),q=null!=x?x:c,X=o("form",f),K=(0,d.A)(X),[Y,Q,J]=P(X,K),Z=s()(X,`${X}-${k}`,{[`${X}-hide-required-mark`]:!1===G,[`${X}-rtl`]:"rtl"===a,[`${X}-${U}`]:U},J,K,Q,h,m,g),[ee]=(0,D.A)(y),{__INTERNAL__:te}=ee;te.name=I;const ne=i.useMemo(()=>({name:I,labelAlign:w,labelCol:S,labelWrap:A,wrapperCol:C,layout:k,colon:q,requiredMark:G,itemRef:te.itemRef,form:ee,feedbackIcons:L}),[I,w,S,C,k,q,G,ee,L]),re=i.useRef(null);i.useImperativeHandle(t,()=>{var e;return Object.assign(Object.assign({},ee),{nativeElement:null===(e=re.current)||void 0===e?void 0:e.nativeElement})});const oe=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=Object.assign(Object.assign({},n),e)),ee.scrollToField(t,n)}};return Y(i.createElement(r.Pp.Provider,{value:H},i.createElement(R.X,{disabled:v},i.createElement(F.A.Provider,{value:U},i.createElement(r.Op,{validateMessages:V},i.createElement(r.cK.Provider,{value:ne},i.createElement(r.XB,{status:!0},i.createElement(T.Ay,Object.assign({id:I},W,{name:I,onFinishFailed:e=>{if(null==j||j(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==E)return void oe(E,t);void 0!==u&&oe(u,t)}},form:ee,ref:re,style:Object.assign(Object.assign({},p),M),className:Z})))))))))};const H=i.forwardRef(L);var W=n(1233),U=n(8719),V=n(40682),G=n(18877),q=n(82546);const X=()=>{const{status:e,errors:t=[],warnings:n=[]}=i.useContext(r.$W);return{status:e,errors:t,warnings:n}};X.Context=r.$W;const K=X;var Y=n(25371);var Q=n(16984),J=n(42467),Z=n(30981),ee=n(19853),te=n(32915),ne=n(81470),re=n(26606);const oe=(0,b.bf)(["Form","item-item"],(e,{rootPrefixCls:t})=>(e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}})(O(e,t)));var ie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,status:n,labelCol:o,wrapperCol:a,children:l,errors:c,warnings:d,_internalItemRender:u,extra:h,help:p,fieldId:f,marginBottom:m,onErrorVisibleChanged:g,label:b}=e,v=`${t}-item`,y=i.useContext(r.cK),x=i.useMemo(()=>{let e=Object.assign({},a||y.wrapperCol||{});if(null===b&&!o&&!a&&y.labelCol){[void 0,"xs","sm","md","lg","xl","xxl"].forEach(t=>{const n=t?[t]:[],r=(0,ne.Jt)(y.labelCol,n),o="object"==typeof r?r:{},i=(0,ne.Jt)(e,n);"span"in o&&!("offset"in("object"==typeof i?i:{}))&&o.span<24&&(e=(0,ne.hZ)(e,[].concat(n,["offset"]),o.span))})}return e},[a,y.wrapperCol,y.labelCol,b,o]),w=s()(`${v}-control`,x.className),A=i.useMemo(()=>{const{labelCol:e,wrapperCol:t}=y;return ie(y,["labelCol","wrapperCol"])},[y]),S=i.useRef(null),[C,$]=i.useState(0);(0,Z.A)(()=>{h&&S.current?$(S.current.clientHeight):$(0)},[h]);const k=i.createElement("div",{className:`${v}-control-input`},i.createElement("div",{className:`${v}-control-input-content`},l)),E=i.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=null!==m||c.length||d.length?i.createElement(r.hb.Provider,{value:E},i.createElement(M,{fieldId:f,errors:c,warnings:d,help:p,helpStatus:n,className:`${v}-explain-connected`,onVisibleChanged:g})):null,P={};f&&(P.id=`${f}_extra`);const j=h?i.createElement("div",Object.assign({},P,{className:`${v}-extra`,ref:S}),h):null,I=O||j?i.createElement("div",{className:`${v}-additional`,style:m?{minHeight:m+C}:{}},O,j):null,T=u&&"pro_table_render"===u.mark&&u.render?u.render(e,{input:k,errorList:O,extra:j}):i.createElement(i.Fragment,null,k,I);return i.createElement(r.cK.Provider,{value:A},i.createElement(re.A,Object.assign({},x,{className:w}),T),i.createElement(oe,{prefixCls:t}))};var se=n(58168);const le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var ce=n(87064),de=function(e,t){return i.createElement(ce.A,(0,se.A)({},e,{ref:t,icon:le}))};const ue=i.forwardRef(de);const he=function(e){return null==e?null:"object"!=typeof e||(0,i.isValidElement)(e)?{title:e}:e};var pe=n(19155),fe=n(83480),me=n(37977),ge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var p;const[f]=(0,pe.A)("Form"),{labelAlign:m,labelCol:g,labelWrap:b,colon:v}=i.useContext(r.cK);if(!t)return null;const y=o||g||{},x=a||m,w=`${e}-item-label`,A=s()(w,"left"===x&&`${w}-left`,y.className,{[`${w}-wrap`]:!!b});let S=t;const C=!0===l||!1!==v&&!1!==l;C&&!h&&"string"==typeof t&&t.trim()&&(S=t.replace(/[:|:]\s*$/,""));const $=he(u);if($){const{icon:t=i.createElement(ue,null)}=$,n=ge($,["icon"]),r=i.createElement(me.A,Object.assign({},n),i.cloneElement(t,{className:`${e}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));S=i.createElement(i.Fragment,null,S,r)}const k="optional"===d,E="function"==typeof d,O=!1===d;let P;E?S=d(S,{required:!!c}):k&&!c&&(S=i.createElement(i.Fragment,null,S,i.createElement("span",{className:`${e}-item-optional`,title:""},(null==f?void 0:f.optional)||(null===(p=fe.A.Form)||void 0===p?void 0:p.optional)))),O?P="hidden":(k||E)&&(P="optional");const j=s()({[`${e}-item-required`]:c,[`${e}-item-required-mark-${P}`]:P,[`${e}-item-no-colon`]:!C});return i.createElement(re.A,Object.assign({},y,{className:A}),i.createElement("label",{htmlFor:n,className:j,title:"string"==typeof t?t:""},S))};var ve=n(38811),ye=n(36029),xe=n(7541),we=n(93567);const Ae={success:ve.A,warning:xe.A,error:ye.A,validating:we.A};function Se({children:e,errors:t,warnings:n,hasFeedback:o,validateStatus:a,prefixCls:l,meta:c,noStyle:d,name:u}){const h=`${l}-item`,{feedbackIcons:p}=i.useContext(r.cK),f=(0,Q.BS)(t,n,c,null,!!o,a),{isFormItemInput:m,status:g,hasFeedback:b,feedbackIcon:v,name:y}=i.useContext(r.$W),x=i.useMemo(()=>{var e;let r;if(o){const a=!0!==o&&o.icons||p,l=f&&(null===(e=null==a?void 0:a({status:f,errors:t,warnings:n}))||void 0===e?void 0:e[f]),c=f?Ae[f]:null;r=!1!==l&&c?i.createElement("span",{className:s()(`${h}-feedback-icon`,`${h}-feedback-icon-${f}`)},l||i.createElement(c,null)):null}const a={status:f||"",errors:t,warnings:n,hasFeedback:!!o,feedbackIcon:r,isFormItemInput:!0,name:u};return d&&(a.status=(null!=f?f:g)||"",a.isFormItemInput=m,a.hasFeedback=!!(null!=o?o:b),a.feedbackIcon=void 0!==o?a.feedbackIcon:v,a.name=null!=u?u:y),a},[f,o,d,m,g]);return i.createElement(r.$W.Provider,{value:x},e)}var Ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(T&&P.current){const e=getComputedStyle(P.current);B(Number.parseInt(e.marginBottom,10))}},[T,_]);const F=((e=!1)=>{const t=e?j:p.errors,n=e?I:p.warnings;return(0,Q.BS)(t,n,p,"",!!f,h)})(),D=s()(C,n,o,{[`${C}-with-help`]:M||j.length||I.length,[`${C}-has-feedback`]:F&&f,[`${C}-has-success`]:"success"===F,[`${C}-has-warning`]:"warning"===F,[`${C}-has-error`]:"error"===F,[`${C}-is-validating`]:"validating"===F,[`${C}-hidden`]:m,[`${C}-${E}`]:E});return i.createElement("div",{className:D,style:a,ref:P},i.createElement(te.A,Object.assign({className:`${C}-row`},(0,ee.A)(S,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),i.createElement(be,Object.assign({htmlFor:b},e,{requiredMark:$,required:null!=v?v:y,prefixCls:t,vertical:O})),i.createElement(ae,Object.assign({},e,p,{errors:j,warnings:I,prefixCls:t,status:F,help:l,marginBottom:R,onErrorVisibleChanged:e=>{e||B(null)}}),i.createElement(r.jC.Provider,{value:x},i.createElement(Se,{prefixCls:t,meta:p,errors:p.errors,warnings:p.warnings,hasFeedback:f,validateStatus:F,name:A},g)))),!!R&&i.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-R}}))}const ke=i.memo(({children:e})=>e,(e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{const r=e[n],o=t[n];return r===o||"function"==typeof r||"function"==typeof o})}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));const Ee=function(e){const{name:t,noStyle:n,className:a,dependencies:l,prefixCls:c,shouldUpdate:u,rules:h,children:p,required:f,label:m,messageVariables:g,trigger:b="onChange",validateTrigger:v,hidden:y,help:x,layout:w}=e,{getPrefixCls:A}=i.useContext(_.QO),{name:S}=i.useContext(r.cK),C=function(e){if("function"==typeof e)return e;const t=(0,q.A)(e);return t.length<=1?t[0]:t}(p),$="function"==typeof C,k=i.useContext(r.jC),{validateTrigger:E}=i.useContext(T._z),O=void 0!==v?v:E,j=!(null==t),I=A("form",c),M=(0,d.A)(I),[R,B,F]=P(I,M);(0,G.rJ)("Form.Item");const D=i.useContext(T.EF),z=i.useRef(null),[N,L]=function(e){const[t,n]=i.useState(e),r=i.useRef(null),o=i.useRef([]),a=i.useRef(!1);return i.useEffect(()=>(a.current=!1,()=>{a.current=!0,Y.A.cancel(r.current),r.current=null}),[]),[t,function(e){a.current||(null===r.current&&(o.current=[],r.current=(0,Y.A)(()=>{r.current=null,n(e=>{let t=e;return o.current.forEach(e=>{t=e(t)}),t})})),o.current.push(e))}]}({}),[H,X]=(0,W.A)(()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1})),K=(e,t)=>{L(n=>{const r=Object.assign({},n),i=[].concat((0,o.A)(e.name.slice(0,-1)),(0,o.A)(t)).join("__SPLIT__");return e.destroy?delete r[i]:r[i]=e,r})},[J,Z]=i.useMemo(()=>{const e=(0,o.A)(H.errors),t=(0,o.A)(H.warnings);return Object.values(N).forEach(n=>{e.push.apply(e,(0,o.A)(n.errors||[])),t.push.apply(t,(0,o.A)(n.warnings||[]))}),[e,t]},[N,H.errors,H.warnings]),ee=function(){const{itemRef:e}=i.useContext(r.cK),t=i.useRef({});return function(n,r){const o=r&&"object"==typeof r&&(0,U.A9)(r),i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=(0,U.K4)(e(n),o)),t.current.ref}}();function te(r,o,l){return n&&!y?i.createElement(Se,{prefixCls:I,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:H,errors:J,warnings:Z,noStyle:!0,name:t},r):i.createElement($e,Object.assign({key:"row"},e,{className:s()(a,F,M,B),prefixCls:I,fieldId:o,isRequired:l,errors:J,warnings:Z,meta:H,onSubItemMetaChange:K,layout:w,name:t}),r)}if(!j&&!$&&!l)return R(te(C));let ne={};return"string"==typeof m?ne.label=m:t&&(ne.label=String(t)),g&&(ne=Object.assign(Object.assign({},ne),g)),R(i.createElement(T.D0,Object.assign({},e,{messageVariables:ne,trigger:b,validateTrigger:O,onMetaChange:e=>{const t=null==D?void 0:D.getKey(e.name);if(X(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==x&&k){let n=e.name;if(e.destroy)n=z.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat((0,o.A)(r)),z.current=n}k(e,n)}}}),(n,r,a)=>{const s=(0,Q.$r)(t).length&&r?r.name:[],c=(0,Q.kV)(s,S),d=void 0!==f?f:!!(null==h?void 0:h.some(e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1})),p=Object.assign({},n);let m=null;if(Array.isArray(C)&&j)m=C;else if($&&(!u&&!l||j));else if(!l||$||j)if(i.isValidElement(C)){const t=Object.assign(Object.assign({},C.props),p);if(t.id||(t.id=c),x||J.length>0||Z.length>0||e.extra){const n=[];(x||J.length>0)&&n.push(`${c}_help`),e.extra&&n.push(`${c}_extra`),t["aria-describedby"]=n.join(" ")}J.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),(0,U.f3)(C)&&(t.ref=ee(s,C));new Set([].concat((0,o.A)((0,Q.$r)(b)),(0,o.A)((0,Q.$r)(O)))).forEach(e=>{t[e]=(...t)=>{var n,r,o,i,a;null===(o=p[e])||void 0===o||(n=o).call.apply(n,[p].concat(t)),null===(a=(i=C.props)[e])||void 0===a||(r=a).call.apply(r,[i].concat(t))}});const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];m=i.createElement(ke,{control:p,update:C,childProps:n},(0,V.Ob)(C,t))}else m=$&&(u||l)&&!j?C(a):C;else;return te(m,c,d)}))};Ee.useStatus=K;const Oe=Ee;var Pe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,children:n}=e,o=Pe(e,["prefixCls","children"]);const{getPrefixCls:a}=i.useContext(_.QO),s=a("form",t),l=i.useMemo(()=>({prefixCls:s,status:"error"}),[s]);return i.createElement(T.B8,Object.assign({},o),(e,t,o)=>i.createElement(r.hb.Provider,{value:l},n(e.map(e=>Object.assign(Object.assign({},e),{fieldKey:e.key})),t,{errors:o.errors,warnings:o.warnings})))};const Ie=H;Ie.Item=Oe,Ie.List=je,Ie.ErrorList=M,Ie.useForm=D.A,Ie.useFormInstance=function(){const{form:e}=i.useContext(r.cK);return e},Ie.useWatch=T.FH,Ie.Provider=r.Op,Ie.create=()=>{};const Me=Ie},16984(e,t,n){"use strict";n.d(t,{$r:()=>o,BS:()=>a,kV:()=>i});const r=["parentNode"];function o(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function i(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return r.includes(n)?`form_item_${n}`:n}function a(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}},69407(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(96540).createContext)(void 0)},36121(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(96540).createContext)({})},26606(e,t,n){"use strict";n.d(t,{A:()=>h});var r=n(96540),o=n(46942),i=n.n(o),a=n(62279),s=n(36121),l=n(25006),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:o}=r.useContext(a.QO),{gutter:h,wrap:p}=r.useContext(s.A),{prefixCls:f,span:m,order:g,offset:b,push:v,pull:y,className:x,children:w,flex:A,style:S}=e,C=c(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),$=n("col",f),[k,E,O]=(0,l.xV)($),P={};let j={};u.forEach(t=>{let n={};const r=e[t];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete C[t],j=Object.assign(Object.assign({},j),{[`${$}-${t}-${n.span}`]:void 0!==n.span,[`${$}-${t}-order-${n.order}`]:n.order||0===n.order,[`${$}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${$}-${t}-push-${n.push}`]:n.push||0===n.push,[`${$}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${$}-rtl`]:"rtl"===o}),n.flex&&(j[`${$}-${t}-flex`]=!0,P[`--${$}-${t}-flex`]=d(n.flex))});const I=i()($,{[`${$}-${m}`]:void 0!==m,[`${$}-order-${g}`]:g,[`${$}-offset-${b}`]:b,[`${$}-push-${v}`]:v,[`${$}-pull-${y}`]:y},x,j,E,O),M={};if(null==h?void 0:h[0]){const e="number"==typeof h[0]?h[0]/2+"px":`calc(${h[0]} / 2)`;M.paddingLeft=e,M.paddingRight=e}return A&&(M.flex=d(A),!1!==p||M.minWidth||(M.minWidth=0)),k(r.createElement("div",Object.assign({},C,{style:Object.assign(Object.assign(Object.assign({},M),S),P),className:I,ref:t}),w))})},78551(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(96540),o=n(30981),i=n(47447),a=n(14703);const s=function(e=!0,t={}){const n=(0,r.useRef)(t),[,s]=(0,i.C)(),l=(0,a.Ay)();return(0,o.A)(()=>{const t=l.subscribe(t=>{n.current=t,e&&s()});return()=>l.unsubscribe(t)},[]),n.current}},32915(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(96540),o=n(46942),i=n.n(o),a=n(14703),s=n(62279),l=n(78551);var c=n(36121),d=n(25006),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{(()=>{if("string"==typeof e&&o(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:o,align:p,className:f,style:m,children:g,gutter:b=0,wrap:v}=e,y=u(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:x,direction:w}=r.useContext(s.QO),A=(0,l.A)(!0,null),S=h(p,A),C=h(o,A),$=x("row",n),[k,E,O]=(0,d.L3)($),P=function(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((e,t)=>{if("object"==typeof e&&null!==e)for(let r=0;r({gutter:[M,T],wrap:v}),[M,T,v]);return k(r.createElement(c.A.Provider,{value:_},r.createElement("div",Object.assign({},y,{className:j,style:Object.assign(Object.assign({},I),m),ref:t}),g)))})},25006(e,t,n){"use strict";n.d(t,{L3:()=>l,i4:()=>c,xV:()=>d});var r=n(85530),o=n(14277),i=n(37358);const a=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},s=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let e=o;e>=0;e--)0===e?(i[`${r}${t}-${e}`]={display:"none"},i[`${r}-push-${e}`]={insetInlineStart:"auto"},i[`${r}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${e}`]={marginInlineStart:0},i[`${r}${t}-order-${e}`]={order:0}):(i[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"}],i[`${r}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},i[`${r}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},i[`${r}${t}-order-${e}`]={order:e});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),l=(0,i.OF)("Grid",e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),c=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),d=(0,i.OF)("Grid",e=>{const t=(0,o.oX)(e,{gridColumns:24}),n=c(t);return delete n.xs,[a(t),s(t,""),s(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${(0,r.zA)(t)})`]:Object.assign({},s(e,n))}))(t,n[e],`-${e}`)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}))},26398(e,t,n){"use strict";n.d(t,{A:()=>Z});var r=n(96540),o=n(30234),i=n(46942),a=n.n(i),s=n(9857),l=n(60275),c=n(23723),d=n(62279),u=n(20934),h=n(19155),p=n(47852),f=n(50329),m=n(68e3),g=n(58168);const b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};var v=n(87064),y=function(e,t){return r.createElement(v.A,(0,g.A)({},e,{ref:t,icon:b}))};const x=r.forwardRef(y);const w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};var A=function(e,t){return r.createElement(v.A,(0,g.A)({},e,{ref:t,icon:w}))};const S=r.forwardRef(A);const C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};var $=function(e,t){return r.createElement(v.A,(0,g.A)({},e,{ref:t,icon:C}))};const k=r.forwardRef($);const E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};var O=function(e,t){return r.createElement(v.A,(0,g.A)({},e,{ref:t,icon:E}))};const P=r.forwardRef(O);const j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};var I=function(e,t){return r.createElement(v.A,(0,g.A)({},e,{ref:t,icon:j}))};const M=r.forwardRef(I);var T=n(85530),_=n(2616),R=n(98071),B=n(25905),F=n(99077),D=n(28680),z=n(37358),N=n(14277);const L=e=>({position:e||"absolute",inset:0}),H=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new _.Y("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},B.L9),{padding:`0 ${(0,T.zA)(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},W=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:d,colorTextLightSolid:u}=e,h=new _.Y(n).setA(.1),p=h.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:u,backgroundColor:h.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,T.zA)(a)}`,backgroundColor:h.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},U=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,s=new _.Y(t).setA(.1),l=s.clone().setA(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},V=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},L()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},L()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[W(e),U(e)]}]},G=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},H(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},L())}}},q=e=>{const{previewCls:t}=e;return{[`${t}-root`]:(0,F.aB)(e,"zoom"),"&":(0,D.p9)(e,!0)}},X=(0,z.OF)("Image",e=>{const t=`${e.componentCls}-preview`,n=(0,N.oX)(e,{previewCls:t,modalMaskBg:new _.Y("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[G(n),V(n),(0,R.Dk)((0,N.oX)(n,{componentCls:t})),q(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new _.Y(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new _.Y(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new _.Y(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}));var K=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,preview:n,className:i,rootClassName:p,style:f,fallback:m}=e,g=Q(e,["prefixCls","preview","className","rootClassName","style","fallback"]);const{getPrefixCls:b,getPopupContainer:v,className:y,style:x,preview:w,fallback:A}=(0,d.TP)("image"),[S]=(0,h.A)("Image"),C=b("image",t),$=b(),k=(0,u.A)(C),[E,O,P]=X(C,k),j=a()(p,O,P,k),I=a()(i,O,y),[M]=(0,l.YK)("ImagePreview","object"==typeof n?n.zIndex:void 0),T=r.useMemo(()=>{if(!1===n)return n;const e="object"==typeof n?n:{},{getContainer:t,closeIcon:i,rootClassName:s,destroyOnClose:l,destroyOnHidden:d}=e,u=Q(e,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:r.createElement("div",{className:`${C}-mask-info`},r.createElement(o.A,null),null==S?void 0:S.preview),icons:Y},u),{destroyOnClose:null!=d?d:l,rootClassName:a()(j,s),getContainer:null!=t?t:v,transitionName:(0,c.b)($,"zoom",e.transitionName),maskTransitionName:(0,c.b)($,"fade",e.maskTransitionName),zIndex:M,closeIcon:null!=i?i:null==w?void 0:w.closeIcon})},[n,S,null==w?void 0:w.closeIcon]),_=Object.assign(Object.assign({},x),f),R=null!=m?m:A;return E(r.createElement(s.A,Object.assign({prefixCls:C,preview:T,rootClassName:j,className:I,style:_,fallback:R},g)))};J.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,o=K(e,["previewPrefixCls","preview"]);const{getPrefixCls:i,direction:h}=r.useContext(d.QO),p=i("image",t),g=`${p}-preview`,b=i(),v=(0,u.A)(p),[y,x,w]=X(p,v),[A]=(0,l.YK)("ImagePreview","object"==typeof n?n.zIndex:void 0),S=r.useMemo(()=>Object.assign(Object.assign({},Y),{left:"rtl"===h?r.createElement(m.A,null):r.createElement(f.A,null),right:"rtl"===h?r.createElement(f.A,null):r.createElement(m.A,null)}),[h]),C=r.useMemo(()=>{var e;if(!1===n)return n;const t="object"==typeof n?n:{},r=a()(x,w,v,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:(0,c.b)(b,"zoom",t.transitionName),maskTransitionName:(0,c.b)(b,"fade",t.maskTransitionName),rootClassName:r,zIndex:A})},[n,b,A,x,w,v]);return y(r.createElement(s.A.PreviewGroup,Object.assign({preview:C,previewPrefixCls:g,icons:S},o)))};const Z=J},7142(e,t,n){"use strict";n.d(t,{A:()=>R});var r=n(96540),o=n(14103),i=n(83853),a=n(46942),s=n.n(a),l=n(46049),c=n(62897),d=n(58182),u=n(62279),h=n(20867),p=n(98119),f=n(20934),m=n(829),g=n(94241),b=n(90124),v=n(37090),y=n(85530),x=n(81594),w=n(44335),A=n(89222),S=n(25905),C=n(55974),$=n(37358),k=n(14277),E=n(2616);const O=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const o="lg"===r?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}}}},P=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:d,paddingBlockSM:u,paddingBlockLG:h,paddingInlineLG:p,colorIcon:f,motionDurationMid:m,handleHoverColor:g,handleOpacity:b,paddingInline:v,paddingBlock:w,handleBg:C,handleActiveBg:$,colorTextDisabled:k,borderRadiusSM:E,borderRadiusLG:P,controlWidth:j,handleBorderColor:I,filledHandleBg:M,lineHeightLG:T,calc:_}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,S.dF)(e)),(0,x.wj)(e)),{display:"inline-block",width:j,margin:0,padding:0,borderRadius:o}),(0,A.Eb)(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${(0,y.zA)(n)} ${r} ${I}`}}})),(0,A.sA)(e,{[`${t}-handler-wrap`]:{background:M,[`${t}-handler-down`]:{borderBlockStart:`${(0,y.zA)(n)} ${r} ${I}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),(0,A.aP)(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${(0,y.zA)(n)} ${r} ${I}`}}})),(0,A.lB)(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:T,borderRadius:P,[`input${t}-input`]:{height:_(s).sub(_(n).mul(2)).equal(),padding:`${(0,y.zA)(h)} ${(0,y.zA)(p)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:E,[`input${t}-input`]:{height:_(l).sub(_(n).mul(2)).equal(),padding:`${(0,y.zA)(u)} ${(0,y.zA)(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,S.dF)(e)),(0,x.XM)(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:P,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},(0,A.nm)(e)),(0,A.Vy)(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,S.dF)(e)),{width:"100%",padding:`${(0,y.zA)(w)} ${(0,y.zA)(v)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),(0,x.j_)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:b,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${m}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:f,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,y.zA)(n)} ${r} ${I}`,transition:`all ${m} linear`,"&:active":{background:$},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,S.Nk)()),{color:f,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},O(e,"lg")),O(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:k}})}]},j=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:d,paddingBlockSM:u,motionDurationMid:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${(0,y.zA)(n)} 0`}},(0,x.wj)(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${(0,y.zA)(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${(0,y.zA)(u)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${h}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},I=(0,$.OF)("InputNumber",e=>{const t=(0,k.oX)(e,(0,w.C)(e));return[P(t),j(t),(0,C.G)(t)]},e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto",r=e.controlHeightSM-2*e.lineWidth;return Object.assign(Object.assign({},(0,w.b)(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new E.Y(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0,handleVisibleWidth:!0===n?r:0})},{unitless:{handleOpacity:!0},resetFont:!1});var M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:a}=r.useContext(u.QO),h=r.useRef(null);r.useImperativeHandle(t,()=>h.current);const{className:y,rootClassName:x,size:w,disabled:A,prefixCls:S,addonBefore:C,addonAfter:$,prefix:k,suffix:E,bordered:O,readOnly:P,status:j,controls:T,variant:_}=e,R=M(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),B=n("input-number",S),F=(0,f.A)(B),[D,z,N]=I(B,F),{compactSize:L,compactItemClassnames:H}=(0,v.RQ)(B,a);let W=r.createElement(i.A,{className:`${B}-handler-up-inner`}),U=r.createElement(o.A,{className:`${B}-handler-down-inner`});const V="boolean"==typeof T?T:void 0;"object"==typeof T&&(W=void 0===T.upIcon?W:r.createElement("span",{className:`${B}-handler-up-inner`},T.upIcon),U=void 0===T.downIcon?U:r.createElement("span",{className:`${B}-handler-down-inner`},T.downIcon));const{hasFeedback:G,status:q,isFormItemInput:X,feedbackIcon:K}=r.useContext(g.$W),Y=(0,d.v)(q,j),Q=(0,m.A)(e=>{var t;return null!==(t=null!=w?w:L)&&void 0!==t?t:e}),J=r.useContext(p.A),Z=null!=A?A:J,[ee,te]=(0,b.A)("inputNumber",_,O),ne=G&&r.createElement(r.Fragment,null,K),re=s()({[`${B}-lg`]:"large"===Q,[`${B}-sm`]:"small"===Q,[`${B}-rtl`]:"rtl"===a,[`${B}-in-form-item`]:X},z),oe=`${B}-group`;return D(r.createElement(l.A,Object.assign({ref:h,disabled:Z,className:s()(N,F,y,x,H),upHandler:W,downHandler:U,prefixCls:B,readOnly:P,controls:V,prefix:k,suffix:ne||E,addonBefore:C&&r.createElement(c.A,{form:!0,space:!0},C),addonAfter:$&&r.createElement(c.A,{form:!0,space:!0},$),classNames:{input:re,variant:s()({[`${B}-${ee}`]:te},(0,d.L)(B,Y,G)),affixWrapper:s()({[`${B}-affix-wrapper-sm`]:"small"===Q,[`${B}-affix-wrapper-lg`]:"large"===Q,[`${B}-affix-wrapper-rtl`]:"rtl"===a,[`${B}-affix-wrapper-without-controls`]:!1===T||Z||P},z),wrapper:s()({[`${oe}-rtl`]:"rtl"===a},z),groupWrapper:s()({[`${B}-group-wrapper-sm`]:"small"===Q,[`${B}-group-wrapper-lg`]:"large"===Q,[`${B}-group-wrapper-rtl`]:"rtl"===a,[`${B}-group-wrapper-${ee}`]:te},(0,d.L)(`${B}-group-wrapper`,Y,G),z)}},R)))}),_=T;_._InternalPanelDoNotUseOrYouWillBeFired=e=>r.createElement(h.Ay,{theme:{components:{InputNumber:{handleVisible:!0}}}},r.createElement(T,Object.assign({},e)));const R=_},18017(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(96540),o=n(46942),i=n.n(o),a=n(48491),s=n(8719),l=n(62897),c=n(96311),d=n(58182),u=n(62279),h=n(98119),p=n(20934),f=n(829),m=n(94241),g=n(90124),b=n(37090),v=n(55254),y=n(81594);var x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,bordered:o=!0,status:w,size:A,disabled:S,onBlur:C,onFocus:$,suffix:k,allowClear:E,addonAfter:O,addonBefore:P,className:j,style:I,styles:M,rootClassName:T,onChange:_,classNames:R,variant:B,_skipAddonWarning:F}=e,D=x(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]);const{getPrefixCls:z,direction:N,allowClear:L,autoComplete:H,className:W,style:U,classNames:V,styles:G}=(0,u.TP)("input"),q=z("input",n),X=(0,r.useRef)(null),K=(0,p.A)(q),[Y,Q,J]=(0,y.MG)(q,T),[Z]=(0,y.Ay)(q,K),{compactSize:ee,compactItemClassnames:te}=(0,b.RQ)(q,N),ne=(0,f.A)(e=>{var t;return null!==(t=null!=A?A:ee)&&void 0!==t?t:e}),re=r.useContext(h.A),oe=null!=S?S:re,{status:ie,hasFeedback:ae,feedbackIcon:se}=(0,r.useContext)(m.$W),le=(0,d.v)(ie,w),ce=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!ae;(0,r.useRef)(ce);const de=(0,v.A)(X,!0),ue=(ae||k)&&r.createElement(r.Fragment,null,k,ae&&se),he=(0,c.A)(null!=E?E:L),[pe,fe]=(0,g.A)("input",B,o);return Y(Z(r.createElement(a.A,Object.assign({ref:(0,s.K4)(t,X),prefixCls:q,autoComplete:H},D,{disabled:oe,onBlur:e=>{de(),null==C||C(e)},onFocus:e=>{de(),null==$||$(e)},style:Object.assign(Object.assign({},U),I),styles:Object.assign(Object.assign({},G),M),suffix:ue,allowClear:he,className:i()(j,T,J,K,te,W),onChange:e=>{de(),null==_||_(e)},addonBefore:P&&r.createElement(l.A,{form:!0,space:!0},P),addonAfter:O&&r.createElement(l.A,{form:!0,space:!0},O),classNames:Object.assign(Object.assign(Object.assign({},R),V),{input:i()({[`${q}-sm`]:"small"===ne,[`${q}-lg`]:"large"===ne,[`${q}-rtl`]:"rtl"===N},null==R?void 0:R.input,V.input,Q),variant:i()({[`${q}-${pe}`]:fe},(0,d.L)(q,le)),affixWrapper:i()({[`${q}-affix-wrapper-sm`]:"small"===ne,[`${q}-affix-wrapper-lg`]:"large"===ne,[`${q}-affix-wrapper-rtl`]:"rtl"===N},Q),wrapper:i()({[`${q}-group-rtl`]:"rtl"===N},Q),groupWrapper:i()({[`${q}-group-wrapper-sm`]:"small"===ne,[`${q}-group-wrapper-lg`]:"large"===ne,[`${q}-group-wrapper-rtl`]:"rtl"===N,[`${q}-group-wrapper-${pe}`]:fe},(0,d.L)(`${q}-group-wrapper`,le,ae),Q)})}))))})},82322(e,t,n){"use strict";n.d(t,{A:()=>S});var r=n(96540),o=n(46942),i=n.n(o),a=n(9919),s=n(96311),l=n(58182),c=n(62279),d=n(98119),u=n(20934),h=n(829),p=n(94241),f=n(90124),m=n(37090),g=n(11980),b=n(81594),v=n(37358),y=n(14277),x=n(44335);const w=(0,v.OF)(["Input","TextArea"],e=>(e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}})((0,y.oX)(e,(0,x.C)(e))),x.b,{resetFont:!1});var A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:o,bordered:v=!0,size:y,disabled:x,status:S,allowClear:C,classNames:$,rootClassName:k,className:E,style:O,styles:P,variant:j,showCount:I,onMouseDown:M,onResize:T}=e,_=A(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);const{getPrefixCls:R,direction:B,allowClear:F,autoComplete:D,className:z,style:N,classNames:L,styles:H}=(0,c.TP)("textArea"),W=r.useContext(d.A),U=null!=x?x:W,{status:V,hasFeedback:G,feedbackIcon:q}=r.useContext(p.$W),X=(0,l.v)(V,S),K=r.useRef(null);r.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=K.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;(0,g.F4)(null===(n=null===(t=K.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=K.current)||void 0===e?void 0:e.blur()}}});const Y=R("input",o),Q=(0,u.A)(Y),[J,Z,ee]=(0,b.MG)(Y,k),[te]=w(Y,Q),{compactSize:ne,compactItemClassnames:re}=(0,m.RQ)(Y,B),oe=(0,h.A)(e=>{var t;return null!==(t=null!=y?y:ne)&&void 0!==t?t:e}),[ie,ae]=(0,f.A)("textArea",j,v),se=(0,s.A)(null!=C?C:F),[le,ce]=r.useState(!1),[de,ue]=r.useState(!1);return J(te(r.createElement(a.A,Object.assign({autoComplete:D},_,{style:Object.assign(Object.assign({},N),O),styles:Object.assign(Object.assign({},H),P),disabled:U,allowClear:se,className:i()(ee,Q,E,k,re,z,de&&`${Y}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},$),L),{textarea:i()({[`${Y}-sm`]:"small"===oe,[`${Y}-lg`]:"large"===oe},Z,null==$?void 0:$.textarea,L.textarea,le&&`${Y}-mouse-active`),variant:i()({[`${Y}-${ie}`]:ae},(0,l.L)(Y,X)),affixWrapper:i()(`${Y}-textarea-affix-wrapper`,{[`${Y}-affix-wrapper-rtl`]:"rtl"===B,[`${Y}-affix-wrapper-sm`]:"small"===oe,[`${Y}-affix-wrapper-lg`]:"large"===oe,[`${Y}-textarea-show-count`]:I||(null===(n=e.count)||void 0===n?void 0:n.show)},Z)}),prefixCls:Y,suffix:G&&r.createElement("span",{className:`${Y}-textarea-suffix`},q),showCount:I,ref:K,onResize:e=>{var t,n;if(null==T||T(e),le&&"function"==typeof getComputedStyle){const e=null===(n=null===(t=K.current)||void 0===t?void 0:t.nativeElement)||void 0===n?void 0:n.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&ue(!0)}},onMouseDown:e=>{ce(!0),null==M||M(e);const t=()=>{ce(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}}))))})},55254(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(96540);function o(e,t){const n=(0,r.useRef)([]),o=()=>{n.current.push(setTimeout(()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))}))};return(0,r.useEffect)(()=>(t&&o(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),o}},17355(e,t,n){"use strict";n.d(t,{A:()=>V});var r=n(96540),o=n(46942),i=n.n(o),a=n(62279),s=n(94241),l=n(81594);const c=e=>{const{getPrefixCls:t,direction:n}=(0,r.useContext)(a.QO),{prefixCls:o,className:c}=e,d=t("input-group",o),u=t("input"),[h,p,f]=(0,l.Ay)(u),m=i()(d,f,{[`${d}-lg`]:"large"===e.size,[`${d}-sm`]:"small"===e.size,[`${d}-compact`]:e.compact,[`${d}-rtl`]:"rtl"===n},p,c),g=(0,r.useContext)(s.$W),b=(0,r.useMemo)(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]);return h(r.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},r.createElement(s.$W.Provider,{value:b},e.children)))};var d=n(18017),u=n(60436),h=n(26956),p=n(72065),f=n(58182),m=n(829),g=n(37358),b=n(14277),v=n(44335);const y=(0,g.OF)(["Input","OTP"],e=>(e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}})((0,b.oX)(e,(0,v.C)(e))),v.b);var x=n(25371),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{className:n,value:o,onChange:s,onActiveChange:l,index:c,mask:u}=e,h=w(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:p}=r.useContext(a.QO),f=p("otp"),m="string"==typeof u?u:o,g=r.useRef(null);r.useImperativeHandle(t,()=>g.current);const b=()=>{(0,x.A)(()=>{var e;const t=null===(e=g.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()})};return r.createElement("span",{className:`${f}-input-wrapper`,role:"presentation"},u&&""!==o&&void 0!==o&&r.createElement("span",{className:`${f}-mask-icon`,"aria-hidden":"true"},m),r.createElement(d.A,Object.assign({"aria-label":`OTP Input ${c+1}`,type:!0===u?"password":"text"},h,{ref:g,value:o,onInput:e=>{s(c,e.target.value)},onFocus:b,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:r}=e;"ArrowLeft"===t?l(c-1):"ArrowRight"===t?l(c+1):"z"===t&&(n||r)?e.preventDefault():"Backspace"!==t||o||l(c-1),b()},onMouseDown:b,onMouseUp:b,className:i()(n,{[`${f}-mask-input`]:u})})))});var S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{index:t,prefixCls:n,separator:o}=e,i="function"==typeof o?o(t):o;return i?r.createElement("span",{className:`${n}-separator`},i):null},k=r.forwardRef((e,t)=>{const{prefixCls:n,length:o=6,size:l,defaultValue:c,value:d,onChange:g,formatter:b,separator:v,variant:x,disabled:w,status:k,autoFocus:E,mask:O,type:P,onInput:j,inputMode:I}=e,M=S(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);const{getPrefixCls:T,direction:_}=r.useContext(a.QO),R=T("otp",n),B=(0,p.A)(M,{aria:!0,data:!0,attr:!0}),[F,D,z]=y(R),N=(0,m.A)(e=>null!=l?l:e),L=r.useContext(s.$W),H=(0,f.v)(L.status,k),W=r.useMemo(()=>Object.assign(Object.assign({},L),{status:H,hasFeedback:!1,feedbackIcon:null}),[L,H]),U=r.useRef(null),V=r.useRef({});r.useImperativeHandle(t,()=>({focus:()=>{var e;null===(e=V.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;tb?b(e):e,[q,X]=r.useState(()=>C(G(c||"")));r.useEffect(()=>{void 0!==d&&X(C(d))},[d]);const K=(0,h.A)(e=>{X(e),j&&j(e),g&&e.length===o&&e.every(e=>e)&&e.some((e,t)=>q[t]!==e)&&g(e.join(""))}),Y=(0,h.A)((e,t)=>{let n=(0,u.A)(q);for(let t=0;t=0&&!n[e];e-=1)n.pop();const r=G(n.map(e=>e||" ").join(""));return n=C(r).map((e,t)=>" "!==e||n[t]?e:n[t]),n}),Q=(e,t)=>{var n;const r=Y(e,t),i=Math.min(e+t.length,o-1);i!==e&&void 0!==r[e]&&(null===(n=V.current[i])||void 0===n||n.focus()),K(r)},J=e=>{var t;null===(t=V.current[e])||void 0===t||t.focus()},Z={variant:x,disabled:w,status:H,mask:O,type:P,inputMode:I};return F(r.createElement("div",Object.assign({},B,{ref:U,className:i()(R,{[`${R}-sm`]:"small"===N,[`${R}-lg`]:"large"===N,[`${R}-rtl`]:"rtl"===_},z,D),role:"group"}),r.createElement(s.$W.Provider,{value:W},Array.from({length:o}).map((e,t)=>{const n=`otp-${t}`,i=q[t]||"";return r.createElement(r.Fragment,{key:n},r.createElement(A,Object.assign({ref:e=>{V.current[t]=e},index:t,size:N,htmlSize:1,className:`${R}-input`,onChange:Q,value:i,onActiveChange:J,autoFocus:0===t&&E},Z)),te?r.createElement(O.A,null):r.createElement(E.A,null),R={click:"onClick",hover:"onMouseOver"};const B=r.forwardRef((e,t)=>{const{disabled:n,action:o="click",visibilityToggle:s=!0,iconRender:l=_,suffix:c}=e,u=r.useContext(I.A),h=null!=n?n:u,p="object"==typeof s&&void 0!==s.visible,[f,m]=(0,r.useState)(()=>!!p&&s.visible),g=(0,r.useRef)(null);r.useEffect(()=>{p&&m(s.visible)},[p,s]);const b=(0,M.A)(g),v=()=>{var e;if(h)return;f&&b();const t=!f;m(t),"object"==typeof s&&(null===(e=s.onVisibleChange)||void 0===e||e.call(s,t))},{className:y,prefixCls:x,inputPrefixCls:w,size:A}=e,S=T(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=r.useContext(a.QO),$=C("input",w),k=C("input-password",x),E=s&&(e=>{const t=R[o]||"",n=l(f),i={[t]:v,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return r.cloneElement(r.isValidElement(n)?n:r.createElement("span",null,n),i)})(k),O=i()(k,y,{[`${k}-${A}`]:!!A}),B=Object.assign(Object.assign({},(0,P.A)(S,["suffix","iconRender","visibilityToggle"])),{type:f?"text":"password",className:O,prefixCls:$,suffix:r.createElement(r.Fragment,null,E,c)});return A&&(B.size=A),r.createElement(d.A,Object.assign({ref:(0,j.K4)(t,g)},B))});var F=n(42877),D=n(40682),z=n(79249),N=n(37090),L=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:o,className:s,size:l,suffix:c,enterButton:u=!1,addonAfter:h,loading:p,disabled:f,onSearch:g,onChange:b,onCompositionStart:v,onCompositionEnd:y,variant:x,onPressEnter:w}=e,A=L(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:S,direction:C}=r.useContext(a.QO),$=r.useRef(!1),k=S("input-search",n),E=S("input",o),{compactSize:O}=(0,N.RQ)(k,C),P=(0,m.A)(e=>{var t;return null!==(t=null!=l?l:O)&&void 0!==t?t:e}),I=r.useRef(null),M=e=>{var t;document.activeElement===(null===(t=I.current)||void 0===t?void 0:t.input)&&e.preventDefault()},T=e=>{var t,n;g&&g(null===(n=null===(t=I.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},_="boolean"==typeof u?r.createElement(F.A,null):null,R=`${k}-button`;let B;const H=u||{},W=H.type&&!0===H.type.__ANT_BUTTON;B=W||"button"===H.type?(0,D.Ob)(H,Object.assign({onMouseDown:M,onClick:e=>{var t,n;null===(n=null===(t=null==H?void 0:H.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),T(e)},key:"enterButton"},W?{className:R,size:P}:{})):r.createElement(z.Ay,{className:R,color:u?"primary":"default",size:P,disabled:f,key:"enterButton",onMouseDown:M,onClick:T,loading:p,icon:_,variant:"borderless"===x||"filled"===x||"underlined"===x?"text":u?"solid":void 0},u),h&&(B=[B,(0,D.Ob)(h,{key:"addonAfter"})]);const U=i()(k,{[`${k}-rtl`]:"rtl"===C,[`${k}-${P}`]:!!P,[`${k}-with-button`]:!!u},s),V=Object.assign(Object.assign({},A),{className:U,prefixCls:E,type:"search",size:P,variant:x,onPressEnter:e=>{$.current||p||(null==w||w(e),T(e))},onCompositionStart:e=>{$.current=!0,null==v||v(e)},onCompositionEnd:e=>{$.current=!1,null==y||y(e)},addonAfter:B,suffix:c,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&g&&g(e.target.value,e,{source:"clear"}),null==b||b(e)},disabled:f,_skipAddonWarning:!0});return r.createElement(d.A,Object.assign({ref:(0,j.K4)(I,t)},V))});var W=n(82322);const U=d.A;U.Group=c,U.Search=H,U.TextArea=W.A,U.Password=B,U.OTP=k;const V=U},81594(e,t,n){"use strict";n.d(t,{Ay:()=>A,BZ:()=>h,MG:()=>w,XM:()=>f,j_:()=>d,wj:()=>p});var r=n(85530),o=n(25905),i=n(55974),a=n(14277),s=n(37358),l=n(44335),c=n(89222);const d=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),u=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:i}=e;return{padding:`${(0,r.zA)(t)} ${(0,r.zA)(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},h=e=>({padding:`${(0,r.zA)(e.paddingBlockSM)} ${(0,r.zA)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),p=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,r.zA)(e.paddingBlock)} ${(0,r.zA)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},d(e.colorTextPlaceholder)),{"&-lg":Object.assign({},u(e)),"&-sm":Object.assign({},h(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),f=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},u(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},h(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${(0,r.zA)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${(0,r.zA)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,r.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${(0,r.zA)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${(0,r.zA)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,o.t6)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},m=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,o.dF)(e)),p(e)),(0,c.Eb)(e)),(0,c.sA)(e)),(0,c.lB)(e)),(0,c.aP)(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},g=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${(0,r.zA)(e.inputAffixPadding)}`}}}},b=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},p(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),g(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},v=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,o.dF)(e)),f(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},(0,c.nm)(e)),(0,c.Vy)(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},y=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},x=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},w=(0,s.OF)(["Input","Shared"],e=>{const t=(0,a.oX)(e,(0,l.C)(e));return[m(t),b(t)]},l.b,{resetFont:!1}),A=(0,s.OF)(["Input","Component"],e=>{const t=(0,a.oX)(e,(0,l.C)(e));return[v(t),y(t),x(t),(0,i.G)(t)]},l.b,{resetFont:!1})},44335(e,t,n){"use strict";n.d(t,{C:()=>o,b:()=>i});var r=n(14277);function o(e){return(0,r.oX)(e,{inputAffixPadding:e.paddingXXS})}const i=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:u,colorFillAlter:h,colorPrimaryHover:p,colorPrimary:f,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:b,colorWarningOutline:v,colorBgContainer:y,inputFontSize:x,inputFontSizeLG:w,inputFontSizeSM:A}=e,S=x||n,C=A||S,$=w||s,k=Math.round((t-S*r)/2*10)/10-o,E=Math.round((i-C*r)/2*10)/10-o,O=Math.ceil((a-$*l)/2*10)/10-o;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(E,0),paddingBlockLG:Math.max(O,0),paddingInline:c-o,paddingInlineSM:d-o,paddingInlineLG:u-o,addonBg:h,activeBorderColor:f,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${b}`,warningActiveShadow:`0 0 0 ${m}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:S,inputFontSizeLG:$,inputFontSizeSM:C}}},89222(e,t,n){"use strict";n.d(t,{Eb:()=>c,Vy:()=>b,aP:()=>x,eT:()=>a,lB:()=>h,nI:()=>s,nm:()=>u,sA:()=>m});var r=n(85530),o=n(14277);const i=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),a=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},i((0,o.oX)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),s=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),l=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},s(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),c=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},s(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},a(e))}),l(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),l(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),d=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),u=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,r.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},d(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),d(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},a(e))}})}),h=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},p=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(n=null==t?void 0:t.inputColor)&&void 0!==n?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},f=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},p(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),m=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},a(e))}),f(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),f(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),g=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),b=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},g(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),g(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${(0,r.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,r.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,r.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,r.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,r.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,r.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),v=(e,t)=>({background:e.colorBgContainer,borderWidth:`${(0,r.zA)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),y=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},v(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),x=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),y(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),y(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)})},60685(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(96540).createContext)(void 0)},83480(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(96069),o=n(61340);const i=o.A;var a=n(65341);const s="${label} is not a valid ${type}",l={locale:"en",Pagination:r.A,DatePicker:o.A,TimePicker:a.A,Calendar:i,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}}},19155(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(96540),o=n(60685),i=n(83480);const a=(e,t)=>{const n=r.useContext(o.A);return[r.useMemo(()=>{var r;const o=t||i.A[e],a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),a||{})},[e,t,n]),r.useMemo(()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?i.A.locale:e},[n])]}},5903(e,t,n){"use strict";n.d(t,{Ay:()=>v,Mb:()=>b});var r=n(96540),o=n(38811),i=n(36029),a=n(7541),s=n(17850),l=n(93567),c=n(46942),d=n.n(c),u=n(22370),h=n(62279),p=n(20934),f=n(98889),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);or.createElement("div",{className:d()(`${e}-custom-content`,`${e}-${t}`)},n||g[t],r.createElement("span",null,o)),v=e=>{const{prefixCls:t,className:n,type:o,icon:i,content:a}=e,s=m(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=r.useContext(h.QO),c=t||l("message"),g=(0,p.A)(c),[v,y,x]=(0,f.A)(c,g);return v(r.createElement(u.$T,Object.assign({},s,{prefixCls:c,className:d()(n,y,`${c}-notice-pure-panel`,x,g),eventKey:"pure",duration:null,content:r.createElement(b,{prefixCls:c,type:o,icon:i},a)})))}},87959(e,t,n){"use strict";n.d(t,{Ay:()=>w});var r=n(60436),o=n(96540),i=n(41240),a=n(20867),s=n(62279),l=n(71919),c=n(5903),d=n(89585),u=n(25783);let h=null,p=e=>e(),f=[],m={};function g(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=m,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const b=o.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=(0,o.useContext)(s.QO),l=m.prefixCls||a("message"),c=(0,o.useContext)(i.B),[u,h]=(0,d.y)(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),c.message));return o.useImperativeHandle(t,()=>{const e=Object.assign({},u);return Object.keys(e).forEach(t=>{e[t]=(...e)=>(r(),u[t].apply(u,e))}),{instance:e,sync:r}}),h}),v=o.forwardRef((e,t)=>{const[n,r]=o.useState(g),i=()=>{r(g)};o.useEffect(i,[]);const s=(0,a.cr)(),l=s.getRootPrefixCls(),c=s.getIconPrefixCls(),d=s.getTheme(),u=o.createElement(b,{ref:t,sync:i,messageConfig:n});return o.createElement(a.Ay,{prefixCls:l,iconPrefixCls:c,theme:d},s.holderRender?s.holderRender(u):u)}),y=()=>{if(!h){const e=document.createDocumentFragment(),t={fragment:e};return h=t,void p(()=>{(0,l.L)()(o.createElement(v,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,y())})}}),e)})}h.instance&&(f.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":p(()=>{const t=h.instance.open(Object.assign(Object.assign({},m),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":p(()=>{null==h||h.instance.destroy(e.key)});break;default:p(()=>{var n;const o=(n=h.instance)[t].apply(n,(0,r.A)(e.args));null==o||o.then(e.resolve),e.setCloseFn(o)})}}),f=[])};const x={open:function(e){const t=(0,u.E)(t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return f.push(r),()=>{n?p(()=>{n()}):r.skipped=!0}});return y(),t},destroy:e=>{f.push({type:"destroy",key:e}),y()},config:function(e){m=Object.assign(Object.assign({},m),e),p(()=>{var e;null===(e=null==h?void 0:h.sync)||void 0===e||e.call(h)})},useMessage:d.A,_InternalPanelDoNotUseOrYouWillBeFired:c.Ay};["success","info","warning","error","loading"].forEach(e=>{x[e]=(...t)=>function(e,t){(0,a.cr)();const n=(0,u.E)(n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return f.push(o),()=>{r?p(()=>{r()}):o.skipped=!0}});return y(),n}(e,t)});const w=x},98889(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(85530),o=n(60275),i=n(25905),a=n(14277),s=n(37358);const l=(0,s.OF)("Message",e=>(e=>{const{componentCls:t,iconCls:n,boxShadow:o,colorText:a,colorSuccess:s,colorError:l,colorWarning:c,colorInfo:d,fontSizeLG:u,motionEaseInOutCirc:h,motionDurationSlow:p,marginXS:f,paddingXS:m,borderRadiusLG:g,zIndexPopup:b,contentPadding:v,contentBg:y}=e,x=`${t}-notice`,w=new r.Mo("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),A=new r.Mo("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:m,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:f,fontSize:u},[`${x}-content`]:{display:"inline-block",padding:v,background:y,borderRadius:g,boxShadow:o,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:s},[`${t}-error > ${n}`]:{color:l},[`${t}-warning > ${n}`]:{color:c},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:d}};return[{[t]:Object.assign(Object.assign({},(0,i.dF)(e)),{color:a,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:b,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:w,animationDuration:p,animationPlayState:"paused",animationTimingFunction:h},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:A,animationDuration:p,animationPlayState:"paused",animationTimingFunction:h},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${x}-wrapper`]:Object.assign({},S)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]})((0,a.oX)(e,{height:150})),e=>({zIndexPopup:e.zIndexPopupBase+o.jH+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}))},89585(e,t,n){"use strict";n.d(t,{A:()=>w,y:()=>x});var r=n(96540),o=n(47852),i=n(46942),a=n.n(i),s=n(22370),l=n(18877),c=n(62279),d=n(20934),u=n(5903),h=n(98889),p=n(25783),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=(0,d.A)(t),[o,i,l]=(0,h.A)(t,n);return o(r.createElement(s.ph,{classNames:{list:a()(i,l,n)}},e))},b=(e,{prefixCls:t,key:n})=>r.createElement(g,{prefixCls:t,key:n},e),v=r.forwardRef((e,t)=>{const{top:n,prefixCls:i,getContainer:l,maxCount:d,duration:u=m,rtl:h,transitionName:f,onAllRemoved:g}=e,{getPrefixCls:v,getPopupContainer:y,message:x,direction:w}=r.useContext(c.QO),A=i||v("message"),S=r.createElement("span",{className:`${A}-close-x`},r.createElement(o.A,{className:`${A}-close-icon`})),[C,$]=(0,s.hN)({prefixCls:A,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>a()({[`${A}-rtl`]:null!=h?h:"rtl"===w}),motion:()=>(0,p.V)(A,f),closable:!1,closeIcon:S,duration:u,getContainer:()=>(null==l?void 0:l())||(null==y?void 0:y())||document.body,maxCount:d,onAllRemoved:g,renderNotifications:b});return r.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:A,message:x})),$});let y=0;function x(e){const t=r.useRef(null);(0,l.rJ)("Message");return[r.useMemo(()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:o,prefixCls:i,message:s}=t.current,l=`${i}-notice`,{content:c,icon:d,type:h,key:m,className:g,style:b,onClose:v}=n,x=f(n,["content","icon","type","key","className","style","onClose"]);let w=m;return null==w&&(y+=1,w=`antd-message-${y}`),(0,p.E)(t=>(o(Object.assign(Object.assign({},x),{key:w,content:r.createElement(u.Mb,{prefixCls:i,type:h,icon:d},c),placement:"top",className:a()(h&&`${l}-${h}`,g,null==s?void 0:s.className),style:Object.assign(Object.assign({},null==s?void 0:s.style),b),onClose:()=>{null==v||v(),t()}})),()=>{e(w)}))},o={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{o[e]=(t,r,o)=>{let i,a,s;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?s=r:(a=r,s=o);const l=Object.assign(Object.assign({onClose:s,duration:a},i),{type:e});return n(l)}}),o},[]),r.createElement(v,Object.assign({key:"message-holder"},e,{ref:t}))]}function w(e){return x(e)}},25783(e,t,n){"use strict";function r(e,t){return{motionName:null!=t?t:`${e}-move-up`}}function o(e){let t;const n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}n.d(t,{E:()=>o,V:()=>r})},90078(e,t,n){"use strict";n.d(t,{k:()=>k,A:()=>O});var r=n(96540),o=n(38811),i=n(36029),a=n(7541),s=n(17850),l=n(46942),c=n.n(l),d=n(60275),u=n(23723),h=n(20867),p=n(19155),f=n(93093),m=n(58431),g=n(11914);const b=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:o,mergedOkCancel:i,rootPrefixCls:a,close:s,onCancel:l,onConfirm:c}=(0,r.useContext)(g.V);return i?r.createElement(m.A,{isSilent:o,actionFn:l,close:(...e)=>{null==s||s.apply(void 0,e),null==c||c(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${a}-btn`},n):null},v=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:o,rootPrefixCls:i,okTextLocale:a,okType:s,onConfirm:l,onOk:c}=(0,r.useContext)(g.V);return r.createElement(m.A,{isSilent:n,type:s||"primary",actionFn:c,close:(...e)=>{null==t||t.apply(void 0,e),null==l||l(!0)},autoFocus:"ok"===e,buttonProps:o,prefixCls:`${i}-btn`},a)};var y=n(76943),x=n(85530),w=n(98071),A=n(25905),S=n(37358);const C=(0,S.bf)(["Modal","confirm"],e=>(e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},(0,A.t6)()),[`&${t} ${t}-body`]:{padding:c},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${(0,x.zA)(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${(0,x.zA)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},\n ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}})((0,w.FY)(e)),w.cH,{order:-1e3});var $=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,icon:n,okText:l,cancelText:d,confirmPrefixCls:u,type:h,okCancel:f,footer:m,locale:y}=e,x=$(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let w=n;if(!n&&null!==n)switch(h){case"info":w=r.createElement(s.A,null);break;case"success":w=r.createElement(o.A,null);break;case"error":w=r.createElement(i.A,null);break;default:w=r.createElement(a.A,null)}const A=null!=f?f:"confirm"===h,S=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[k]=(0,p.A)("Modal"),E=y||k,O=l||(A?null==E?void 0:E.okText:null==E?void 0:E.justOkText),P=d||(null==E?void 0:E.cancelText),j=r.useMemo(()=>Object.assign({autoFocusButton:S,cancelTextLocale:P,okTextLocale:O,mergedOkCancel:A},x),[S,P,O,A,x]),I=r.createElement(r.Fragment,null,r.createElement(b,null),r.createElement(v,null)),M=void 0!==e.title&&null!==e.title,T=`${u}-body`;return r.createElement("div",{className:`${u}-body-wrapper`},r.createElement("div",{className:c()(T,{[`${T}-has-title`]:M})},w,r.createElement("div",{className:`${u}-paragraph`},M&&r.createElement("span",{className:`${u}-title`},e.title),r.createElement("div",{className:`${u}-content`},e.content))),void 0===m||"function"==typeof m?r.createElement(g.i,{value:j},r.createElement("div",{className:`${u}-btns`},"function"==typeof m?m(I,{OkBtn:v,CancelBtn:b}):I)):m,r.createElement(C,{prefixCls:t}))},E=e=>{const{close:t,zIndex:n,maskStyle:o,direction:i,prefixCls:a,wrapClassName:s,rootPrefixCls:l,bodyStyle:h,closable:p=!1,onConfirm:m,styles:g,title:b}=e;const v=`${a}-confirm`,x=e.width||416,w=e.style||{},A=void 0===e.mask||e.mask,S=void 0!==e.maskClosable&&e.maskClosable,C=c()(v,`${v}-${e.type}`,{[`${v}-rtl`]:"rtl"===i},e.className),[,$]=(0,f.Ay)(),E=r.useMemo(()=>void 0!==n?n:$.zIndexPopupBase+d.jH,[n,$]);return r.createElement(y.A,Object.assign({},e,{className:C,wrapClassName:c()({[`${v}-centered`]:!!e.centered},s),onCancel:()=>{null==t||t({triggerCancel:!0}),null==m||m(!1)},title:b,footer:null,transitionName:(0,u.b)(l||"","zoom",e.transitionName),maskTransitionName:(0,u.b)(l||"","fade",e.maskTransitionName),mask:A,maskClosable:S,style:w,styles:Object.assign({body:h,mask:o},g),width:x,zIndex:E,closable:p}),r.createElement(k,Object.assign({},e,{confirmPrefixCls:v})))};const O=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:o,theme:i}=e;return r.createElement(h.Ay,{prefixCls:t,iconPrefixCls:n,direction:o,theme:i},r.createElement(E,Object.assign({},e)))}},76943(e,t,n){"use strict";n.d(t,{A:()=>C});var r=n(96540),o=n(47852),i=n(46942),a=n.n(i),s=n(33766),l=n(8719),c=n(62897),d=n(70064),u=n(60275),h=n(23723),p=n(20998);var f=n(72616),m=n(62279),g=n(20934),b=n(97072),v=n(28557),y=n(43075),x=n(98071),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{A={x:e.pageX,y:e.pageY},setTimeout(()=>{A=null},100)};(0,p.A)()&&window.document.documentElement&&document.documentElement.addEventListener("click",S,!0);const C=e=>{const{prefixCls:t,className:n,rootClassName:i,open:p,wrapClassName:S,centered:C,getContainer:$,focusTriggerAfterClose:k=!0,style:E,visible:O,width:P=520,footer:j,classNames:I,styles:M,children:T,loading:_,confirmLoading:R,zIndex:B,mousePosition:F,onOk:D,onCancel:z,destroyOnHidden:N,destroyOnClose:L,panelRef:H=null,modalRender:W}=e,U=w(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:V,getPrefixCls:G,direction:q,modal:X}=r.useContext(m.QO),K=e=>{R||null==z||z(e)};const Y=G("modal",t),Q=G(),J=(0,g.A)(Y),[Z,ee,te]=(0,x.Ay)(Y,J),ne=a()(S,{[`${Y}-centered`]:null!=C?C:null==X?void 0:X.centered,[`${Y}-wrap-rtl`]:"rtl"===q}),re=null===j||_?null:r.createElement(y.w,Object.assign({},e,{onOk:e=>{null==D||D(e)},onCancel:K})),[oe,ie,ae,se]=(0,d.$)((0,d.d)(e),(0,d.d)(X),{closable:!0,closeIcon:r.createElement(o.A,{className:`${Y}-close-icon`}),closeIconRender:e=>(0,y.O)(Y,e)}),le=W?e=>r.createElement("div",{className:`${Y}-render`},W(e)):void 0,ce=`.${Y}-${W?"render":"content"}`,de=(0,v.f)(ce),ue=(0,l.K4)(H,de),[he,pe]=(0,u.YK)("Modal",B),[fe,me]=r.useMemo(()=>P&&"object"==typeof P?[void 0,P]:[P,void 0],[P]),ge=r.useMemo(()=>{const e={};return me&&Object.keys(me).forEach(t=>{const n=me[t];void 0!==n&&(e[`--${Y}-${t}-width`]="number"==typeof n?`${n}px`:n)}),e},[Y,me]);return Z(r.createElement(c.A,{form:!0,space:!0},r.createElement(f.A.Provider,{value:pe},r.createElement(s.A,Object.assign({width:fe},U,{zIndex:he,getContainer:void 0===$?V:$,prefixCls:Y,rootClassName:a()(ee,i,te,J),footer:re,visible:null!=p?p:O,mousePosition:null!=F?F:A,onClose:K,closable:oe?Object.assign({disabled:ae,closeIcon:ie},se):oe,closeIcon:ie,focusTriggerAfterClose:k,transitionName:(0,h.b)(Q,"zoom",e.transitionName),maskTransitionName:(0,h.b)(Q,"fade",e.maskTransitionName),className:a()(ee,n,null==X?void 0:X.className),style:Object.assign(Object.assign(Object.assign({},null==X?void 0:X.style),E),ge),classNames:Object.assign(Object.assign(Object.assign({},null==X?void 0:X.classNames),I),{wrapper:a()(ne,null==I?void 0:I.wrapper)}),styles:Object.assign(Object.assign({},null==X?void 0:X.styles),M),panelRef:ue,destroyOnClose:null!=N?N:L,modalRender:le}),_?r.createElement(b.A,{active:!0,title:!1,paragraph:{rows:4},className:`${Y}-body-skeleton`}):T))))}},60425(e,t,n){"use strict";n.d(t,{$D:()=>g,Ay:()=>f,Ej:()=>b,FB:()=>x,fp:()=>m,jT:()=>v,lr:()=>y});var r=n(60436),o=n(96540),i=n(20867),a=n(62279),s=n(71919),l=n(90078),c=n(80174),d=n(21815);let u="";function h(){return u}const p=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:s}=e,c=(0,d.l)(),u=(0,o.useContext)(a.QO),p=h()||u.getPrefixCls(),f=r||`${p}-modal`;let m=i;return!1===m&&(m=void 0),o.createElement(l.A,Object.assign({},e,{rootPrefixCls:p,prefixCls:f,iconPrefixCls:u.iconPrefixCls,theme:u.theme,direction:null!=s?s:u.direction,locale:null!==(n=null===(t=u.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:c,getContainer:m}))};function f(e){const t=(0,i.cr)();const n=document.createDocumentFragment();let a,l,d=Object.assign(Object.assign({},e),{close:m,open:!0});function u(...t){var n;var o;t.some(e=>null==e?void 0:e.triggerCancel)&&(null===(n=e.onCancel)||void 0===n||(o=n).call.apply(o,[e,()=>{}].concat((0,r.A)(t.slice(1)))));for(let e=0;e{clearTimeout(a),a=setTimeout(()=>{const r=t.getPrefixCls(void 0,h()),a=t.getIconPrefixCls(),c=t.getTheme(),d=o.createElement(p,Object.assign({},e)),u=(0,s.L)();l=u(o.createElement(i.Ay,{prefixCls:r,iconPrefixCls:a,theme:c},"function"==typeof t.holderRender?t.holderRender(d):d),n)})};function m(...t){d=Object.assign(Object.assign({},d),{open:!1,afterClose:()=>{"function"==typeof e.afterClose&&e.afterClose(),u.apply(this,t)}}),d.visible&&delete d.visible,f(d)}return f(d),c.A.push(m),{destroy:m,update:function(e){d="function"==typeof e?e(d):Object.assign(Object.assign({},d),e),f(d)}}}function m(e){return Object.assign(Object.assign({},e),{type:"warning"})}function g(e){return Object.assign(Object.assign({},e),{type:"info"})}function b(e){return Object.assign(Object.assign({},e),{type:"success"})}function v(e){return Object.assign(Object.assign({},e),{type:"error"})}function y(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function x({rootPrefixCls:e}){u=e}},11914(e,t,n){"use strict";n.d(t,{V:()=>r,i:()=>o});const r=n(96540).createContext({}),{Provider:o}=r},80174(e,t,n){"use strict";n.d(t,{A:()=>r});const r=[]},49222(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(60425),o=n(80174),i=n(76943),a=n(96540),s=n(46942),l=n.n(s),c=n(33766),d=n(53425),u=n(62279),h=n(20934),p=n(90078),f=n(43075),m=n(98071),g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:s,children:d,footer:b}=e,v=g(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:y}=a.useContext(u.QO),x=y(),w=t||y("modal"),A=(0,h.A)(x),[S,C,$]=(0,m.Ay)(w,A),k=`${w}-confirm`;let E={};return E=i?{closable:null!=o&&o,title:"",footer:"",children:a.createElement(p.k,Object.assign({},e,{prefixCls:w,confirmPrefixCls:k,rootPrefixCls:x,content:d}))}:{closable:null==o||o,title:s,footer:null!==b&&a.createElement(f.w,Object.assign({},e)),children:d},S(a.createElement(c.Z,Object.assign({prefixCls:w,className:l()(C,`${w}-pure-panel`,i&&k,i&&`${k}-${i}`,n,$,A)},v,{closeIcon:(0,f.O)(w,r),closable:o},E)))});var v=n(56777);function y(e){return(0,r.Ay)((0,r.fp)(e))}const x=i.A;x.useModal=v.A,x.info=function(e){return(0,r.Ay)((0,r.$D)(e))},x.success=function(e){return(0,r.Ay)((0,r.Ej)(e))},x.error=function(e){return(0,r.Ay)((0,r.jT)(e))},x.warning=y,x.warn=y,x.confirm=function(e){return(0,r.Ay)((0,r.lr)(e))},x.destroyAll=function(){for(;o.A.length;){const e=o.A.pop();e&&e()}},x.config=r.FB,x._InternalPanelDoNotUseOrYouWillBeFired=b;const w=x},21815(e,t,n){"use strict";n.d(t,{L:()=>s,l:()=>l});var r=n(83480);let o=Object.assign({},r.A.Modal),i=[];const a=()=>i.reduce((e,t)=>Object.assign(Object.assign({},e),t),r.A.Modal);function s(e){if(e){const t=Object.assign({},e);return i.push(t),o=a(),()=>{i=i.filter(e=>e!==t),o=a()}}o=Object.assign({},r.A.Modal)}function l(){return o}},43075(e,t,n){"use strict";n.d(t,{w:()=>f,O:()=>p});var r=n(96540),o=n(47852),i=n(98119),a=n(19155),s=n(79249),l=n(11914);const c=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,r.useContext)(l.V);return r.createElement(s.Ay,Object.assign({onClick:n},e),t)};var d=n(39449);const u=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:o,onOk:i}=(0,r.useContext)(l.V);return r.createElement(s.Ay,Object.assign({},(0,d.DU)(n),{loading:e,onClick:i},t),o)};var h=n(21815);function p(e,t){return r.createElement("span",{className:`${e}-close-x`},t||r.createElement(o.A,{className:`${e}-close-icon`}))}const f=e=>{const{okText:t,okType:n="primary",cancelText:o,confirmLoading:s,onOk:d,onCancel:p,okButtonProps:f,cancelButtonProps:m,footer:g}=e,[b]=(0,a.A)("Modal",(0,h.l)()),v=t||(null==b?void 0:b.okText),y=o||(null==b?void 0:b.cancelText),x=r.useMemo(()=>({confirmLoading:s,okButtonProps:f,cancelButtonProps:m,okTextLocale:v,cancelTextLocale:y,okType:n,onOk:d,onCancel:p}),[s,f,m,v,y,n,d,p]);let w;return"function"==typeof g||void 0===g?(w=r.createElement(r.Fragment,null,r.createElement(c,null),r.createElement(u,null)),"function"==typeof g&&(w=g(w,{OkBtn:u,CancelBtn:c})),w=r.createElement(l.i,{value:x},w)):w=g,r.createElement(i.X,{disabled:!1},w)}},98071(e,t,n){"use strict";n.d(t,{Ay:()=>v,Dk:()=>h,FY:()=>g,cH:()=>b});var r=n(60436),o=n(85530),i=n(25006),a=n(25905),s=n(28680),l=n(99077),c=n(14277),d=n(37358);function u(e){return{position:e,inset:0}}const h=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},u("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},u("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:(0,s.p9)(e)}]},p=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,o.zA)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,a.dF)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,o.zA)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:(0,o.zA)(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},(0,a.K8)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,o.zA)(e.borderRadiusLG)} ${(0,o.zA)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${(0,o.zA)(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},f=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},m=e=>{const{componentCls:t}=e,n=(0,i.i4)(e),a=Object.assign({},n);delete a.xs;const s=`--${t.replace(".","")}-`,l=Object.keys(a).map(e=>({[`@media (min-width: ${(0,o.zA)(a[e])})`]:{width:`var(${s}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat((0,r.A)(Object.keys(n).map((e,t)=>{const r=Object.keys(n)[t-1];return r?{[`${s}${e}-width`]:`var(${s}${r}-width)`}:null})),[{width:`var(${s}xs-width)`}],(0,r.A)(l))}}},g=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,c.oX)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},b=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,o.zA)(e.paddingMD)} ${(0,o.zA)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,o.zA)(e.padding)} ${(0,o.zA)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,o.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,o.zA)(e.paddingXS)} ${(0,o.zA)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,o.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,o.zA)(e.borderRadiusLG)} ${(0,o.zA)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,o.zA)(2*e.padding)} ${(0,o.zA)(2*e.padding)} ${(0,o.zA)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),v=(0,d.OF)("Modal",e=>{const t=g(e);return[p(t),f(t),h(t),(0,l.aB)(t,"zoom"),m(t)]},b,{unitless:{titleLineHeight:!0}})},56777(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(60436),o=n(96540);var i=n(60425),a=n(80174),s=n(62279),l=n(83480),c=n(19155),d=n(90078),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:i,config:a}=e,h=u(e,["afterClose","config"]);const[p,f]=o.useState(!0),[m,g]=o.useState(a),{direction:b,getPrefixCls:v}=o.useContext(s.QO),y=v("modal"),x=v(),w=(...e)=>{var t;f(!1);var n;e.some(e=>null==e?void 0:e.triggerCancel)&&(null===(t=m.onCancel)||void 0===t||(n=t).call.apply(n,[m,()=>{}].concat((0,r.A)(e.slice(1)))))};o.useImperativeHandle(t,()=>({destroy:w,update:e=>{g(t=>{const n="function"==typeof e?e(t):e;return Object.assign(Object.assign({},t),n)})}}));const A=null!==(n=m.okCancel)&&void 0!==n?n:"confirm"===m.type,[S]=(0,c.A)("Modal",l.A.Modal);return o.createElement(d.A,Object.assign({prefixCls:y,rootPrefixCls:x},m,{close:w,open:p,afterClose:()=>{var e;i(),null===(e=m.afterClose)||void 0===e||e.call(m)},okText:m.okText||(A?null==S?void 0:S.okText:null==S?void 0:S.justOkText),direction:m.direction||b,cancelText:m.cancelText||(null==S?void 0:S.cancelText)},h))},p=o.forwardRef(h);let f=0;const m=o.memo(o.forwardRef((e,t)=>{const[n,i]=(()=>{const[e,t]=o.useState([]);return[e,o.useCallback(e=>(t(t=>[].concat((0,r.A)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]})();return o.useImperativeHandle(t,()=>({patchElement:i}),[i]),o.createElement(o.Fragment,null,n)}));const g=function(){const e=o.useRef(null),[t,n]=o.useState([]);o.useEffect(()=>{if(t.length){(0,r.A)(t).forEach(e=>{e()}),n([])}},[t]);const s=o.useCallback(t=>function(i){var s;f+=1;const l=o.createRef();let c;const d=new Promise(e=>{c=e});let u,h=!1;const m=o.createElement(p,{key:`modal-${f}`,config:t(i),ref:l,afterClose:()=>{null==u||u()},isSilent:()=>h,onConfirm:e=>{c(e)}});u=null===(s=e.current)||void 0===s?void 0:s.patchElement(m),u&&a.A.push(u);const g={destroy:()=>{function e(){var e;null===(e=l.current)||void 0===e||e.destroy()}l.current?e():n(t=>[].concat((0,r.A)(t),[e]))},update:e=>{function t(){var t;null===(t=l.current)||void 0===t||t.update(e)}l.current?t():n(e=>[].concat((0,r.A)(e),[t]))},then:e=>(h=!0,d.then(e))};return g},[]);return[o.useMemo(()=>({info:s(i.$D),success:s(i.Ej),error:s(i.jT),warning:s(i.fp),confirm:s(i.lr)}),[s]),o.createElement(m,{key:"modal-holder",ref:e})]}},6754(e,t,n){"use strict";n.d(t,{A:()=>z});var r=n(96540),o=n(2616),i=n(38811),a=n(26067),s=n(36029),l=n(47852),c=n(46942),d=n.n(c),u=n(19853),h=n(62279),p=n(71559),f=n(37977),m=n(45748);function g(e){return!e||e<0?0:e>100?100:e}function b({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const v=(e,t,n)=>{var r,o,i,a;let s=-1,l=-1;if("step"===t){const t=n.steps,r=n.strokeWidth;"string"==typeof e||void 0===e?(s="small"===e?2:14,l=null!=r?r:8):"number"==typeof e?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?l=t||("small"===e?6:8):"number"==typeof e?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[s,l]="small"===e?[60,60]:[120,120]:"number"==typeof e?[s,l]=[e,e]:Array.isArray(e)&&(s=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,l=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[s,l]},y=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:o="round",gapPosition:i,gapDegree:a,width:s=120,type:l,children:c,success:u,size:h=s,steps:y}=e,[x,w]=v(h,"circle");let{strokeWidth:A}=e;void 0===A&&(A=Math.max((e=>3/e*100)(x),6));const S={width:x,height:w,fontSize:.15*x+6},C=r.useMemo(()=>a||0===a?a:"dashboard"===l?75:void 0,[a,l]),$=(({percent:e,success:t,successPercent:n})=>{const r=g(b({success:t,successPercent:n}));return[r,g(g(e)-r)]})(e),k=i||"dashboard"===l&&"bottom"||void 0,E="[object Object]"===Object.prototype.toString.call(e.strokeColor),O=(({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||m.uy.green,t||null]})({success:u,strokeColor:e.strokeColor}),P=d()(`${t}-inner`,{[`${t}-circle-gradient`]:E}),j=r.createElement(p.jl,{steps:y,percent:y?$[1]:$,strokeWidth:A,trailWidth:A,strokeColor:y?O[1]:O,strokeLinecap:o,trailColor:n,prefixCls:t,gapDegree:C,gapPosition:k}),I=x<=20,M=r.createElement("div",{className:P,style:S},j,!I&&c);return I?r.createElement(f.A,{title:c},M):M};var x=n(85530),w=n(25905),A=n(37358),S=n(14277);const C="--progress-line-stroke-color",$="--progress-percent",k=e=>{const t=e?"100%":"-100%";return new x.Mo(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},E=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,w.dF)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${C})`]},height:"100%",width:`calc(1 / var(${$}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,x.zA)(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:k(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:k(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},O=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},P=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},j=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},I=(0,A.OF)("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=(0,S.oX)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[E(n),O(n),P(n),j(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"}));var M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{from:n=m.uy.blue,to:r=m.uy.blue,direction:o=("rtl"===t?"to left":"to right")}=e,i=M(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=`linear-gradient(${o}, ${(e=>{let t=[];return Object.keys(e).forEach(n=>{const r=Number.parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(({key:e,value:t})=>`${t} ${e}%`).join(", ")})(i)})`;return{background:e,[C]:e}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[C]:a}},_=e=>{const{prefixCls:t,direction:n,percent:o,size:i,strokeWidth:a,strokeColor:s,strokeLinecap:l="round",children:c,trailColor:u=null,percentPosition:h,success:p}=e,{align:f,type:m}=h,y=s&&"string"!=typeof s?T(s,n):{[C]:s,background:s},x="square"===l||"butt"===l?0:void 0,w=null!=i?i:[-1,a||("small"===i?6:8)],[A,S]=v(w,"line",{strokeWidth:a});const k={backgroundColor:u||void 0,borderRadius:x},E=Object.assign(Object.assign({width:`${g(o)}%`,height:S,borderRadius:x},y),{[$]:g(o)/100}),O=b(e),P={width:`${g(O)}%`,height:S,borderRadius:x,backgroundColor:null==p?void 0:p.strokeColor},j={width:A<0?"100%":A},I=r.createElement("div",{className:`${t}-inner`,style:k},r.createElement("div",{className:d()(`${t}-bg`,`${t}-bg-${m}`),style:E},"inner"===m&&c),void 0!==O&&r.createElement("div",{className:`${t}-success-bg`,style:P})),M="outer"===m&&"start"===f,_="outer"===m&&"end"===f;return"outer"===m&&"center"===f?r.createElement("div",{className:`${t}-layout-bottom`},I,c):r.createElement("div",{className:`${t}-outer`,style:j},M&&c,I,_&&c)},R=e=>{const{size:t,steps:n,rounding:o=Math.round,percent:i=0,strokeWidth:a=8,strokeColor:s,trailColor:l=null,prefixCls:c,children:u}=e,h=o(n*(i/100)),p=null!=t?t:["small"===t?2:14,a],[f,m]=v(p,"step",{steps:n,strokeWidth:a}),g=f/n,b=Array.from({length:n});for(let e=0;e{const{prefixCls:n,className:c,rootClassName:p,steps:f,strokeColor:m,percent:x=0,size:w="default",showInfo:A=!0,type:S="line",status:C,format:$,style:k,percentPosition:E={}}=e,O=B(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:P="end",type:j="outer"}=E,M=Array.isArray(m)?m[0]:m,T="string"==typeof m||Array.isArray(m)?m:void 0,D=r.useMemo(()=>{if(M){const e="string"==typeof M?M:Object.values(M)[0];return new o.Y(e).isLight()}return!1},[m]),z=r.useMemo(()=>{var t,n;const r=b(e);return Number.parseInt(void 0!==r?null===(t=null!=r?r:0)||void 0===t?void 0:t.toString():null===(n=null!=x?x:0)||void 0===n?void 0:n.toString(),10)},[x,e.success,e.successPercent]),N=r.useMemo(()=>!F.includes(C)&&z>=100?"success":C||"normal",[C,z]),{getPrefixCls:L,direction:H,progress:W}=r.useContext(h.QO),U=L("progress",n),[V,G,q]=I(U),X="line"===S,K=X&&!f,Y=r.useMemo(()=>{if(!A)return null;const t=b(e);let n;const o=X&&D&&"inner"===j;return"inner"===j||$||"exception"!==N&&"success"!==N?n=($||(e=>`${e}%`))(g(x),g(t)):"exception"===N?n=X?r.createElement(s.A,null):r.createElement(l.A,null):"success"===N&&(n=X?r.createElement(i.A,null):r.createElement(a.A,null)),r.createElement("span",{className:d()(`${U}-text`,{[`${U}-text-bright`]:o,[`${U}-text-${P}`]:K,[`${U}-text-${j}`]:K}),title:"string"==typeof n?n:void 0},n)},[A,x,z,N,S,U,$]);let Q;"line"===S?Q=f?r.createElement(R,Object.assign({},e,{strokeColor:T,prefixCls:U,steps:"object"==typeof f?f.count:f}),Y):r.createElement(_,Object.assign({},e,{strokeColor:M,prefixCls:U,direction:H,percentPosition:{align:P,type:j}}),Y):"circle"!==S&&"dashboard"!==S||(Q=r.createElement(y,Object.assign({},e,{strokeColor:M,prefixCls:U,progressStatus:N}),Y));const J=d()(U,`${U}-status-${N}`,{[`${U}-${"dashboard"===S?"circle":S}`]:"line"!==S,[`${U}-inline-circle`]:"circle"===S&&v(w,"circle")[0]<=20,[`${U}-line`]:K,[`${U}-line-align-${P}`]:K,[`${U}-line-position-${j}`]:K,[`${U}-steps`]:f,[`${U}-show-info`]:A,[`${U}-${w}`]:"string"==typeof w,[`${U}-rtl`]:"rtl"===H},null==W?void 0:W.className,c,p,G,q);return V(r.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==W?void 0:W.style),k),className:J,role:"progressbar","aria-valuenow":z,"aria-valuemin":0,"aria-valuemax":100},(0,u.A)(O,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Q))});const z=D},50770(e,t,n){"use strict";n.d(t,{Ay:()=>H});var r=n(96540),o=n(46942),i=n.n(o),a=n(56855),s=n(12533),l=n(72065),c=n(62279),d=n(20934),u=n(829);const h=r.createContext(null),p=h.Provider,f=h,m=r.createContext(null),g=m.Provider;var b=n(38873),v=n(8719),y=n(57),x=n(4424),w=n(96827),A=n(98119),S=n(94241),C=n(85530),$=n(25905),k=n(37358),E=n(14277);const O=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},(0,$.dF)(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},P=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:d,colorBgContainerDisabled:u,colorTextDisabled:h,paddingXS:p,dotColorDisabled:f,lineType:m,radioColor:g,radioBgColor:b,calc:v}=e,y=`${t}-inner`,x=v(o).sub(v(4).mul(2)),w=v(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,$.dF)(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,C.zA)(d)} ${m} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},(0,$.dF)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:(0,$.jk)(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:w,height:w,marginBlockStart:v(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:v(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:u,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:f}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${v(x).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},j=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationMid:s,buttonPaddingInline:l,fontSize:c,buttonBg:d,fontSizeLG:u,controlHeightLG:h,controlHeightSM:p,paddingXS:f,borderRadius:m,borderRadiusSM:g,borderRadiusLG:b,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:x,colorBgContainerDisabled:w,buttonCheckedBgDisabled:A,buttonCheckedColorDisabled:S,colorPrimary:k,colorPrimaryHover:E,colorPrimaryActive:O,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:j,buttonSolidCheckedActiveBg:I,calc:M}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:c,lineHeight:(0,C.zA)(M(n).sub(M(o).mul(2)).equal()),background:d,border:`${(0,C.zA)(o)} ${i} ${a}`,borderBlockStartWidth:M(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:M(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${(0,C.zA)(o)} ${i} ${a}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${r}-group-large &`]:{height:h,fontSize:u,lineHeight:(0,C.zA)(M(h).sub(M(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:p,paddingInline:M(f).sub(o).equal(),paddingBlock:0,lineHeight:(0,C.zA)(M(p).sub(M(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:k},"&:has(:focus-visible)":(0,$.jk)(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:k,background:v,borderColor:k,"&::before":{backgroundColor:k},"&:first-child":{borderColor:k},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:O,borderColor:O,"&::before":{backgroundColor:O}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:P,borderColor:P,"&:hover":{color:y,background:j,borderColor:j},"&:active":{color:y,background:I,borderColor:I}},"&-disabled":{color:x,backgroundColor:w,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:w,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:S,backgroundColor:A,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},I=(0,k.OF)("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${(0,C.zA)(n)} ${t}`,o=r,i=(0,E.oX)(e,{radioFocusShadow:r,radioButtonFocusShadow:o});return[O(i),P(i),j(i)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:d,colorPrimary:u,colorPrimaryHover:h,colorPrimaryActive:p,colorWhite:f}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+o),dotColorDisabled:l,buttonSolidCheckedColor:d,buttonSolidCheckedBg:u,buttonSolidCheckedHoverBg:h,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?u:f,radioBgColor:t?s:u}},{unitless:{radioSize:!0,dotSize:!0}});var M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o;const a=r.useContext(f),s=r.useContext(m),{getPrefixCls:l,direction:u,radio:h}=r.useContext(c.QO),p=r.useRef(null),g=(0,v.K4)(t,p),{isFormItemInput:C}=r.useContext(S.$W);const $=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==a?void 0:a.onChange)||void 0===r||r.call(a,t)},{prefixCls:k,className:E,rootClassName:O,children:P,style:j,title:T}=e,_=M(e,["prefixCls","className","rootClassName","children","style","title"]),R=l("radio",k),B="button"===((null==a?void 0:a.optionType)||s),F=B?`${R}-button`:R,D=(0,d.A)(R),[z,N,L]=I(R,D),H=Object.assign({},_),W=r.useContext(A.A);a&&(H.name=a.name,H.onChange=$,H.checked=e.value===a.value,H.disabled=null!==(n=H.disabled)&&void 0!==n?n:a.disabled),H.disabled=null!==(o=H.disabled)&&void 0!==o?o:W;const U=i()(`${F}-wrapper`,{[`${F}-wrapper-checked`]:H.checked,[`${F}-wrapper-disabled`]:H.disabled,[`${F}-wrapper-rtl`]:"rtl"===u,[`${F}-wrapper-in-form-item`]:C,[`${F}-wrapper-block`]:!!(null==a?void 0:a.block)},null==h?void 0:h.className,E,O,N,L,D),[V,G]=(0,w.A)(H.onClick);return z(r.createElement(y.A,{component:"Radio",disabled:H.disabled},r.createElement("label",{className:U,style:Object.assign(Object.assign({},null==h?void 0:h.style),j),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:T,onClick:V},r.createElement(b.A,Object.assign({},H,{className:i()(H.className,{[x.D]:!B}),type:"radio",prefixCls:F,ref:g,onClick:G})),void 0!==P?r.createElement("span",{className:`${F}-label`},P):null)))};const _=r.forwardRef(T);var R=n(52292);const B=r.forwardRef((e,t)=>{const{getPrefixCls:n,direction:o}=r.useContext(c.QO),{name:h}=r.useContext(S.$W),f=(0,a.A)((0,R.H)(h)),{prefixCls:m,className:g,rootClassName:b,options:v,buttonStyle:y="outline",disabled:x,children:w,size:A,style:C,id:$,optionType:k,name:E=f,defaultValue:O,value:P,block:j=!1,onChange:M,onMouseEnter:T,onMouseLeave:B,onFocus:F,onBlur:D}=e,[z,N]=(0,s.A)(O,{value:P}),L=r.useCallback(t=>{const n=z,r=t.target.value;"value"in e||N(r),r!==n&&(null==M||M(t))},[z,N,M]),H=n("radio",m),W=`${H}-group`,U=(0,d.A)(H),[V,G,q]=I(H,U);let X=w;v&&v.length>0&&(X=v.map(e=>"string"==typeof e||"number"==typeof e?r.createElement(_,{key:e.toString(),prefixCls:H,disabled:x,value:e,checked:z===e},e):r.createElement(_,{key:`radio-group-value-options-${e.value}`,prefixCls:H,disabled:e.disabled||x,value:e.value,checked:z===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));const K=(0,u.A)(A),Y=i()(W,`${W}-${y}`,{[`${W}-${K}`]:K,[`${W}-rtl`]:"rtl"===o,[`${W}-block`]:j},g,b,G,q,U),Q=r.useMemo(()=>({onChange:L,value:z,disabled:x,name:E,optionType:k,block:j}),[L,z,x,E,k,j]);return V(r.createElement("div",Object.assign({},(0,l.A)(e,{aria:!0,data:!0}),{className:Y,style:C,onMouseEnter:T,onMouseLeave:B,onFocus:F,onBlur:D,id:$,ref:t}),r.createElement(p,{value:Q},X)))}),F=r.memo(B);var D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=r.useContext(c.QO),{prefixCls:o}=e,i=D(e,["prefixCls"]),a=n("radio",o);return r.createElement(g,{value:"button"},r.createElement(_,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))},N=r.forwardRef(z),L=_;L.Button=N,L.Group=F,L.__ANT_RADIO=!0;const H=L},1568(e,t,n){"use strict";n.d(t,{Ay:()=>I});var r=n(96540),o=n(38811),i=n(36029),a=n(7541),s=n(58168);const l={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"};var c=n(87064),d=function(e,t){return r.createElement(c.A,(0,s.A)({},e,{ref:t,icon:l}))};const u=r.forwardRef(d);var h=n(46942),p=n.n(h),f=n(62279);const m=()=>r.createElement("svg",{width:"252",height:"294"},r.createElement("title",null,"No Found"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),r.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),r.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),r.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),r.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),r.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),r.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),r.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),r.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),r.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),r.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),r.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),r.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),r.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),r.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),r.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),r.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),r.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),r.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),r.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),r.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),r.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),r.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),r.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),r.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),r.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),r.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),r.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),r.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),r.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),r.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),r.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z"}),r.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),r.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),r.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),r.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),r.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),r.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),r.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),r.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),g=()=>r.createElement("svg",{width:"254",height:"294"},r.createElement("title",null,"Server Error"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),r.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),r.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),r.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),r.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),r.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),r.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),r.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),r.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),r.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),r.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),r.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),r.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),r.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),r.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),r.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),r.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),r.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),r.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),r.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),r.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),r.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),r.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),r.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),r.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),r.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),r.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),r.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),r.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),r.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),r.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),r.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),r.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),r.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),r.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),r.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),r.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),r.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),r.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),r.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),r.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),r.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"})));var b=n(85530),v=n(37358),y=n(14277);const x=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:i,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${(0,b.zA)(e.calc(s).mul(2).equal())} ${(0,b.zA)(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${(0,b.zA)(s)} ${(0,b.zA)(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},w=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},A=e=>(e=>[x(e),w(e)])(e),S=(0,v.OF)("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,o=e.colorWarning,i=(0,y.oX)(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[A(i)]},e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:3*e.fontSizeHeading3,extraMargin:`${e.paddingLG}px 0 0 0`})),C=()=>r.createElement("svg",{width:"251",height:"294"},r.createElement("title",null,"Unauthorized"),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),r.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),r.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),r.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),r.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),r.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),r.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),r.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),r.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),r.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),r.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),r.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),r.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),r.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),r.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),r.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),r.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),r.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),r.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),r.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),r.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),r.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z"}),r.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),r.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),r.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),r.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),r.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),r.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),r.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),r.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),r.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),r.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),r.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),r.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),r.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),r.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),r.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),r.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),r.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),r.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),r.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),r.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),$={success:o.A,error:i.A,info:a.A,warning:u},k={404:m,500:g,403:C},E=Object.keys(k),O=({prefixCls:e,icon:t,status:n})=>{const o=p()(`${e}-icon`);if(E.includes(`${n}`)){const t=k[n];return r.createElement("div",{className:`${o} ${e}-image`},r.createElement(t,null))}const i=r.createElement($[n]);return null===t||!1===t?null:r.createElement("div",{className:o},t||i)},P=({prefixCls:e,extra:t})=>t?r.createElement("div",{className:`${e}-extra`},t):null,j=({prefixCls:e,className:t,rootClassName:n,subTitle:o,title:i,style:a,children:s,status:l="info",icon:c,extra:d})=>{const{getPrefixCls:u,direction:h,result:m}=r.useContext(f.QO),g=u("result",e),[b,v,y]=S(g),x=p()(g,`${g}-${l}`,t,null==m?void 0:m.className,n,{[`${g}-rtl`]:"rtl"===h},v,y),w=Object.assign(Object.assign({},null==m?void 0:m.style),a);return b(r.createElement("div",{className:x,style:w},r.createElement(O,{prefixCls:g,status:l,icon:c}),r.createElement("div",{className:`${g}-title`},i),o&&r.createElement("div",{className:`${g}-subtitle`},o),r.createElement(P,{prefixCls:g,extra:d}),s&&r.createElement("div",{className:`${g}-content`},s)))};j.PRESENTED_IMAGE_403=k[403],j.PRESENTED_IMAGE_404=k[404],j.PRESENTED_IMAGE_500=k[500];const I=j},47152(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(32915).A},36492(e,t,n){"use strict";n.d(t,{A:()=>I});var r=n(96540),o=n(46942),i=n.n(o),a=n(43599),s=n(19853),l=n(60275),c=n(23723),d=n(53425),u=n(58182),h=n(62279),p=n(35128),f=n(98119),m=n(20934),g=n(829),b=n(94241),v=n(90124),y=n(37090),x=n(93093),w=n(36467),A=n(21560),S=n(26017),C=n(37729),$=n(21381),k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o,d,O,P;const{prefixCls:j,bordered:I,className:M,rootClassName:T,getPopupContainer:_,popupClassName:R,dropdownClassName:B,listHeight:F=256,placement:D,listItemHeight:z,size:N,disabled:L,notFoundContent:H,status:W,builtinPlacements:U,dropdownMatchSelectWidth:V,popupMatchSelectWidth:G,direction:q,style:X,allowClear:K,variant:Y,dropdownStyle:Q,transitionName:J,tagRender:Z,maxCount:ee,prefix:te,dropdownRender:ne,popupRender:re,onDropdownVisibleChange:oe,onOpenChange:ie,styles:ae,classNames:se}=e,le=k(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:ce,getPrefixCls:de,renderEmpty:ue,direction:he,virtual:pe,popupMatchSelectWidth:fe,popupOverflow:me}=r.useContext(h.QO),{showSearch:ge,style:be,styles:ve,className:ye,classNames:xe}=(0,h.TP)("select"),[,we]=(0,x.Ay)(),Ae=null!=z?z:null==we?void 0:we.controlHeight,Se=de("select",j),Ce=de(),$e=null!=q?q:he,{compactSize:ke,compactItemClassnames:Ee}=(0,y.RQ)(Se,$e),[Oe,Pe]=(0,v.A)("select",Y,I),je=(0,m.A)(Se),[Ie,Me,Te]=(0,A.A)(Se,je),_e=r.useMemo(()=>{const{mode:t}=e;if("combobox"!==t)return t===E?"combobox":t},[e.mode]),Re="multiple"===_e||"tags"===_e,Be=(0,$.A)(e.suffixIcon,e.showArrow),Fe=null!==(n=null!=G?G:V)&&void 0!==n?n:fe,De=(null===(o=null==ae?void 0:ae.popup)||void 0===o?void 0:o.root)||(null===(d=ve.popup)||void 0===d?void 0:d.root)||Q,ze=(0,C.A)(re||ne),Ne=ie||oe,{status:Le,hasFeedback:He,isFormItemInput:We,feedbackIcon:Ue}=r.useContext(b.$W),Ve=(0,u.v)(Le,W);let Ge;Ge=void 0!==H?H:"combobox"===_e?null:(null==ue?void 0:ue("Select"))||r.createElement(p.A,{componentName:"Select"});const{suffixIcon:qe,itemIcon:Xe,removeIcon:Ke,clearIcon:Ye}=(0,S.A)(Object.assign(Object.assign({},le),{multiple:Re,hasFeedback:He,feedbackIcon:Ue,showSuffixIcon:Be,prefixCls:Se,componentName:"Select"})),Qe=!0===K?{clearIcon:Ye}:K,Je=(0,s.A)(le,["suffixIcon","itemIcon"]),Ze=i()((null===(O=null==se?void 0:se.popup)||void 0===O?void 0:O.root)||(null===(P=null==xe?void 0:xe.popup)||void 0===P?void 0:P.root)||R||B,{[`${Se}-dropdown-${$e}`]:"rtl"===$e},T,xe.root,null==se?void 0:se.root,Te,je,Me),et=(0,g.A)(e=>{var t;return null!==(t=null!=N?N:ke)&&void 0!==t?t:e}),tt=r.useContext(f.A),nt=null!=L?L:tt,rt=i()({[`${Se}-lg`]:"large"===et,[`${Se}-sm`]:"small"===et,[`${Se}-rtl`]:"rtl"===$e,[`${Se}-${Oe}`]:Pe,[`${Se}-in-form-item`]:We},(0,u.L)(Se,Ve,He),Ee,ye,M,xe.root,null==se?void 0:se.root,T,Te,je,Me),ot=r.useMemo(()=>void 0!==D?D:"rtl"===$e?"bottomRight":"bottomLeft",[D,$e]);const[it]=(0,l.YK)("SelectLike",null==De?void 0:De.zIndex);return Ie(r.createElement(a.Ay,Object.assign({ref:t,virtual:pe,showSearch:ge},Je,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ve.root),null==ae?void 0:ae.root),be),X),dropdownMatchSelectWidth:Fe,transitionName:(0,c.b)(Ce,"slide-up",J),builtinPlacements:(0,w.A)(U,me),listHeight:F,listItemHeight:Ae,mode:_e,prefixCls:Se,placement:ot,direction:$e,prefix:te,suffixIcon:qe,menuItemSelectedIcon:Xe,removeIcon:Ke,allowClear:Qe,notFoundContent:Ge,className:rt,getPopupContainer:_||ce,dropdownClassName:Ze,disabled:nt,dropdownStyle:Object.assign(Object.assign({},De),{zIndex:it}),maxCount:Re?ee:void 0,tagRender:Re?Z:void 0,dropdownRender:ze,onDropdownVisibleChange:Ne})))};const P=r.forwardRef(O),j=(0,d.A)(P,"dropdownAlign");P.SECRET_COMBOBOX_MODE_DO_NOT_USE=E,P.Option=a.c$,P.OptGroup=a.JM,P._InternalPanelDoNotUseOrYouWillBeFired=j;const I=P},36467(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}},21560(e,t,n){"use strict";n.d(t,{A:()=>j});var r=n(25905),o=n(55974),i=n(37358),a=n(14277),s=n(53561),l=n(24211);const c=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},d=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,d=`&${t}-slide-up-leave${t}-slide-up-leave-active`,u=`${n}-dropdown-placement-`,h=`${o}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,r.dF)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${i}${u}bottomLeft,\n ${a}${u}bottomLeft\n `]:{animationName:s.ox},[`\n ${i}${u}topLeft,\n ${a}${u}topLeft,\n ${i}${u}topRight,\n ${a}${u}topRight\n `]:{animationName:s.nP},[`${d}${u}bottomLeft`]:{animationName:s.vR},[`\n ${d}${u}topLeft,\n ${d}${u}topRight\n `]:{animationName:s.YU},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},c(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},r.L9),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},c(e)),{color:e.colorTextDisabled})}),[`${h}:has(+ ${h})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${h}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,s._j)(e,"slide-up"),(0,s._j)(e,"slide-down"),(0,l.Mh)(e,"move-up"),(0,l.Mh)(e,"move-down")]};var u=n(36784),h=n(85530);function p(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},(0,r.dF)(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:(0,h.zA)(a)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{display:"block",padding:0,lineHeight:(0,h.zA)(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-search,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,h.zA)(o)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:(0,h.zA)(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,h.zA)(o)}`,"&:after":{display:"none"}}}}}}}function f(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[p(e),p((0,a.oX)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${(0,h.zA)(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},p((0,a.oX)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const m=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${(0,h.zA)(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${(0,h.zA)(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},g=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},m(e,t))}),b=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},m(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),g(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),g(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,h.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),v=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${(0,h.zA)(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},y=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},v(e,t))}),x=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},v(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),y(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),y(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${(0,h.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),w=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${(0,h.zA)(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,h.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),A=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${(0,h.zA)(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},S=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},A(e,t))}),C=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},A(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),S(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),S(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,h.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),$=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},b(e)),x(e)),w(e)),C(e))}),k=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},E=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},O=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},(0,r.dF)(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},k(e)),E(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},r.L9),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},r.L9),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},(0,r.Nk)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},P=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},O(e),f(e),(0,u.Ay)(e),d(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,o.G)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},j=(0,i.OF)("Select",(e,{rootPrefixCls:t})=>{const n=(0,a.oX)(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[P(n),$(n)]},e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:d,fontWeightStrong:u,controlItemBgActive:h,controlItemBgHover:p,colorBgContainer:f,colorFillSecondary:m,colorBgContainerDisabled:g,colorTextDisabled:b,colorPrimaryHover:v,colorPrimary:y,controlOutline:x}=e,w=2*s,A=2*r,S=Math.min(o-w,o-A),C=Math.min(i-w,i-A),$=Math.min(a-w,a-A);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:u,optionSelectedBg:h,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:f,clearBg:f,singleItemHeightLG:a,multipleItemBg:m,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:C,multipleItemHeightLG:$,multipleSelectorBgDisabled:g,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:x,selectAffixPadding:s}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},36784(e,t,n){"use strict";n.d(t,{Ay:()=>d,Q3:()=>s,_8:()=>a});var r=n(85530),o=n(25905),i=n(14277);const a=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:o,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(o).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:(0,r.zA)(t),itemLineHeight:(0,r.zA)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},s=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:d,INTERNAL_FIXED_ITEM_MARGIN:u}=e,h=`${t}-selection-overflow`;return{[h]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:s,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,o.Nk)()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:d}})}}}},l=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=`${n}-selection-overflow`,l=e.multipleSelectItemHeight,c=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),d=t?`${n}-${t}`:"",u=a(e);return{[`${n}-multiple${d}`]:Object.assign(Object.assign({},s(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:u.basePadding,paddingBlock:u.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,r.zA)(o)} 0`,lineHeight:(0,r.zA)(l),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:u.itemHeight,lineHeight:(0,r.zA)(u.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,r.zA)(l),marginBlock:o}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(u.basePadding).equal()},[`${i}-item + ${i}-item,\n ${n}-prefix + ${n}-selection-wrap\n `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:u.itemHeight,marginBlock:o},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c).equal(),"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:(0,r.zA)(l),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(u.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function c(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[l(e,t),o]}const d=e=>{const{componentCls:t}=e,n=(0,i.oX)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,i.oX)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[c(e),c(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},c(r,"lg")]}},26017(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(96540),o=n(26067),i=n(36029),a=n(47852),s=n(14103),l=n(93567),c=n(42877);function d({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:d,loading:u,multiple:h,hasFeedback:p,prefixCls:f,showSuffixIcon:m,feedbackIcon:g,showArrow:b,componentName:v}){const y=null!=t?t:r.createElement(i.A,null),x=t=>null!==e||p||b?r.createElement(r.Fragment,null,!1!==m&&t,p&&g):null;let w=null;if(void 0!==e)w=x(e);else if(u)w=x(r.createElement(l.A,{spin:!0}));else{const e=`${f}-suffix`;w=({open:t,showSearch:n})=>x(t&&n?r.createElement(c.A,{className:e}):r.createElement(s.A,{className:e}))}let A=null;A=void 0!==n?n:h?r.createElement(o.A,null):null;let S=null;return S=void 0!==d?d:r.createElement(a.A,null),{clearIcon:y,suffixIcon:w,itemIcon:A,removeIcon:S}}},37729(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(96540),o=n(62897);const i=function(e){return r.useMemo(()=>{if(e)return(...t)=>r.createElement(o.A,{space:!0},e.apply(void 0,t))},[e])}},21381(e,t,n){"use strict";function r(e,t){return void 0!==t?t:null!==e}n.d(t,{A:()=>r})},97072(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(96540),o=n(46942),i=n.n(o),a=n(62279),s=n(19853);const l=e=>{const{prefixCls:t,className:n,style:o,size:a,shape:s}=e,l=i()({[`${t}-lg`]:"large"===a,[`${t}-sm`]:"small"===a}),c=i()({[`${t}-circle`]:"circle"===s,[`${t}-square`]:"square"===s,[`${t}-round`]:"round"===s}),d=r.useMemo(()=>"number"==typeof a?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return r.createElement("span",{className:i()(t,l,c,n),style:Object.assign(Object.assign({},d),o)})};var c=n(85530),d=n(37358),u=n(14277);const h=new c.Mo("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),p=e=>({height:e,lineHeight:(0,c.zA)(e)}),f=e=>Object.assign({width:e},p(e)),m=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:h,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),g=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},p(e)),b=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},f(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},f(o)),[`${t}${t}-sm`]:Object.assign({},f(i))}},v=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},g(t,s)),[`${r}-lg`]:Object.assign({},g(o,s)),[`${r}-sm`]:Object.assign({},g(i,s))}},y=e=>Object.assign({width:e},p(e)),x=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},y(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},y(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},w=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},A=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},p(e)),S=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},A(r,s))},w(e,r,n)),{[`${n}-lg`]:Object.assign({},A(o,s))}),w(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},A(i,s))}),w(e,i,`${n}-sm`))},C=(0,d.OF)("Skeleton",e=>{const{componentCls:t,calc:n}=e;return(e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:d,gradientFromColor:u,padding:h,marginSM:p,borderRadius:g,titleHeight:y,blockRadius:w,paragraphLiHeight:A,controlHeightXS:C,paragraphMarginTop:$}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:u},f(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},f(c)),[`${n}-sm`]:Object.assign({},f(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:y,background:u,borderRadius:w,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:A,listStyle:"none",background:u,borderRadius:w,"+ li":{marginBlockStart:C}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:g}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:$}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},S(e)),b(e)),v(e)),x(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${s}\n `]:Object.assign({},m(e))}}})((0,u.oX)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"}))},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),$=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,shape:d="circle",size:u="default"}=e,{getPrefixCls:h}=r.useContext(a.QO),p=h("skeleton",t),[f,m,g]=C(p),b=(0,s.A)(e,["prefixCls","className"]),v=i()(p,`${p}-element`,{[`${p}-active`]:c},n,o,m,g);return f(r.createElement("div",{className:v},r.createElement(l,Object.assign({prefixCls:`${p}-avatar`,shape:d,size:u},b))))},k=e=>{const{prefixCls:t,className:n,rootClassName:o,style:s,active:l}=e,{getPrefixCls:c}=r.useContext(a.QO),d=c("skeleton",t),[u,h,p]=C(d),f=i()(d,`${d}-element`,{[`${d}-active`]:l},n,o,h,p);return u(r.createElement("div",{className:f},r.createElement("div",{className:i()(`${d}-image`,n),style:s},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${d}-image-svg`},r.createElement("title",null,"Image placeholder"),r.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${d}-image-path`})))))},E=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,block:d,size:u="default"}=e,{getPrefixCls:h}=r.useContext(a.QO),p=h("skeleton",t),[f,m,g]=C(p),b=(0,s.A)(e,["prefixCls"]),v=i()(p,`${p}-element`,{[`${p}-active`]:c,[`${p}-block`]:d},n,o,m,g);return f(r.createElement("div",{className:v},r.createElement(l,Object.assign({prefixCls:`${p}-input`,size:u},b))))},O=e=>{const{prefixCls:t,className:n,rootClassName:o,style:s,active:l,children:c}=e,{getPrefixCls:d}=r.useContext(a.QO),u=d("skeleton",t),[h,p,f]=C(u),m=i()(u,`${u}-element`,{[`${u}-active`]:l},p,n,o,f);return h(r.createElement("div",{className:m},r.createElement("div",{className:i()(`${u}-image`,n),style:s},c)))},P=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},j=e=>{const{prefixCls:t,className:n,style:o,rows:a=0}=e,s=Array.from({length:a}).map((t,n)=>r.createElement("li",{key:n,style:{width:P(n,e)}}));return r.createElement("ul",{className:i()(t,n),style:o},s)},I=({prefixCls:e,className:t,width:n,style:o})=>r.createElement("h3",{className:i()(e,t),style:Object.assign({width:n},o)});function M(e){return e&&"object"==typeof e?e:{}}const T=e=>{const{prefixCls:t,loading:n,className:o,rootClassName:s,style:c,children:d,avatar:u=!1,title:h=!0,paragraph:p=!0,active:f,round:m}=e,{getPrefixCls:g,direction:b,className:v,style:y}=(0,a.TP)("skeleton"),x=g("skeleton",t),[w,A,S]=C(x);if(n||!("loading"in e)){const e=!!u,t=!!h,n=!!p;let a,d;if(e){const e=Object.assign(Object.assign({prefixCls:`${x}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),M(u));a=r.createElement("div",{className:`${x}-header`},r.createElement(l,Object.assign({},e)))}if(t||n){let o,i;if(t){const t=Object.assign(Object.assign({prefixCls:`${x}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),M(h));o=r.createElement(I,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${x}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),M(p));i=r.createElement(j,Object.assign({},n))}d=r.createElement("div",{className:`${x}-content`},o,i)}const g=i()(x,{[`${x}-with-avatar`]:e,[`${x}-active`]:f,[`${x}-rtl`]:"rtl"===b,[`${x}-round`]:m},v,o,s,A,S);return w(r.createElement("div",{className:g,style:Object.assign(Object.assign({},y),c)},a,d))}return null!=d?d:null};T.Button=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,block:d=!1,size:u="default"}=e,{getPrefixCls:h}=r.useContext(a.QO),p=h("skeleton",t),[f,m,g]=C(p),b=(0,s.A)(e,["prefixCls"]),v=i()(p,`${p}-element`,{[`${p}-active`]:c,[`${p}-block`]:d},n,o,m,g);return f(r.createElement("div",{className:v},r.createElement(l,Object.assign({prefixCls:`${p}-button`,size:u},b))))},T.Avatar=$,T.Input=E,T.Image=k,T.Node=O;const _=T},37090(e,t,n){"use strict";n.d(t,{K6:()=>m,Ay:()=>b,RQ:()=>f});var r=n(96540),o=n(46942),i=n.n(o),a=n(82546),s=n(62279),l=n(829),c=n(37358);const d=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},u=(0,c.OF)(["Space","Compact"],e=>[d(e)],()=>({}),{resetStyle:!1});var h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=r.useContext(p),o=r.useMemo(()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:a}=n,s="vertical"===r?"-vertical-":"-";return i()(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:o}},m=e=>{const{children:t}=e;return r.createElement(p.Provider,{value:null},t)},g=e=>{const{children:t}=e,n=h(e,["children"]);return r.createElement(p.Provider,{value:r.useMemo(()=>n,[n])},t)},b=e=>{const{getPrefixCls:t,direction:n}=r.useContext(s.QO),{size:o,direction:c,block:d,prefixCls:f,className:m,rootClassName:b,children:v}=e,y=h(e,["size","direction","block","prefixCls","className","rootClassName","children"]),x=(0,l.A)(e=>null!=o?o:e),w=t("space-compact",f),[A,S]=u(w),C=i()(w,S,{[`${w}-rtl`]:"rtl"===n,[`${w}-block`]:d,[`${w}-vertical`]:"vertical"===c},m,b),$=r.useContext(p),k=(0,a.A)(v),E=r.useMemo(()=>k.map((e,t)=>{const n=(null==e?void 0:e.key)||`${w}-item-${t}`;return r.createElement(g,{key:n,compactSize:x,compactDirection:c,isFirstItem:0===t&&(!$||(null==$?void 0:$.isFirstItem)),isLastItem:t===k.length-1&&(!$||(null==$?void 0:$.isLastItem))},e)}),[k,$,c,x,w]);return 0===k.length?null:A(r.createElement("div",Object.assign({className:C},y),E))}},6984(e,t,n){"use strict";n.d(t,{A:()=>k});var r=n(96540),o=n(46942),i=n.n(o),a=n(82546);function s(e){return["small","middle","large"].includes(e)}function l(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}var c=n(62279),d=n(37090),u=n(55974),h=n(37358);const p=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:i,fontSizeLG:a,fontSizeSM:s,borderRadiusLG:l,borderRadiusSM:c,colorBgContainerDisabled:d,lineWidth:h}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:d,borderWidth:h,borderStyle:"solid",borderColor:o,borderRadius:n,"&-large":{fontSize:a,borderRadius:l},"&-small":{paddingInline:i,borderRadius:c,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},(0,u.G)(e,{focus:!1})]}},f=(0,h.OF)(["Space","Addon"],e=>[p(e)]);var m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{className:n,children:o,style:a,prefixCls:s}=e,l=m(e,["className","children","style","prefixCls"]),{getPrefixCls:u,direction:h}=r.useContext(c.QO),p=u("space-addon",s),[g,b,v]=f(p),{compactItemClassnames:y,compactSize:x}=(0,d.RQ)(p,h),w=i()(p,b,y,v,{[`${p}-${x}`]:x},n);return g(r.createElement("div",Object.assign({ref:t,className:w,style:a},l),o))}),b=r.createContext({latestIndex:0}),v=b.Provider,y=({className:e,index:t,children:n,split:o,style:i})=>{const{latestIndex:a}=r.useContext(b);return null==n?null:r.createElement(r.Fragment,null,r.createElement("div",{className:e,style:i},n),t{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},A=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},S=(0,h.OF)("Space",e=>{const t=(0,x.oX)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[w(t),A(t)]},()=>({}),{resetStyle:!1});var C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{getPrefixCls:o,direction:d,size:u,className:h,style:p,classNames:f,styles:m}=(0,c.TP)("space"),{size:g=(null!=u?u:"small"),align:b,className:x,rootClassName:w,children:A,direction:$="horizontal",prefixCls:k,split:E,style:O,wrap:P=!1,classNames:j,styles:I}=e,M=C(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[T,_]=Array.isArray(g)?g:[g,g],R=s(_),B=s(T),F=l(_),D=l(T),z=(0,a.A)(A,{keepEmpty:!0}),N=void 0===b&&"horizontal"===$?"center":b,L=o("space",k),[H,W,U]=S(L),V=i()(L,h,W,`${L}-${$}`,{[`${L}-rtl`]:"rtl"===d,[`${L}-align-${N}`]:N,[`${L}-gap-row-${_}`]:R,[`${L}-gap-col-${T}`]:B},x,w,U),G=i()(`${L}-item`,null!==(n=null==j?void 0:j.item)&&void 0!==n?n:f.item),q=Object.assign(Object.assign({},m.item),null==I?void 0:I.item),X=z.map((e,t)=>{const n=(null==e?void 0:e.key)||`${G}-${t}`;return r.createElement(y,{className:G,key:n,index:t,split:E,style:q},e)}),K=r.useMemo(()=>({latestIndex:z.reduce((e,t,n)=>null!=t?n:e,0)}),[z]);if(0===z.length)return null;const Y={};return P&&(Y.flexWrap="wrap"),!B&&D&&(Y.columnGap=T),!R&&F&&(Y.rowGap=_),H(r.createElement("div",Object.assign({ref:t,className:V,style:Object.assign(Object.assign(Object.assign({},Y),p),O)},M),r.createElement(v,{value:K},X)))});$.Compact=d.Ay,$.Addon=g;const k=$},29029(e,t,n){"use strict";n.d(t,{A:()=>k});var r=n(96540),o=n(46942),i=n.n(o),a=n(73700),s=n(62279),l=n(40682),c=n(30981);const d=80*Math.PI,u=e=>{const{dotClassName:t,style:n,hasCircleCls:o}=e;return r.createElement("circle",{className:i()(`${t}-circle`,{[`${t}-circle-bg`]:o}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},h=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,o=`${n}-holder`,a=`${o}-hidden`,[s,l]=r.useState(!1);(0,c.A)(()=>{0!==e&&l(!0)},[0!==e]);const h=Math.max(Math.min(e,100),0);if(!s)return null;const p={strokeDashoffset:""+d/4,strokeDasharray:`${d*h/100} ${d*(100-h)/100}`};return r.createElement("span",{className:i()(o,`${n}-progress`,h<=0&&a)},r.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":h},r.createElement(u,{dotClassName:n,hasCircleCls:!0}),r.createElement(u,{dotClassName:n,style:p})))};function p(e){const{prefixCls:t,percent:n=0}=e,o=`${t}-dot`,a=`${o}-holder`,s=`${a}-hidden`;return r.createElement(r.Fragment,null,r.createElement("span",{className:i()(a,n>0&&s)},r.createElement("span",{className:i()(o,`${t}-dot-spin`)},[1,2,3,4].map(e=>r.createElement("i",{className:`${t}-dot-item`,key:e})))),r.createElement(h,{prefixCls:t,percent:n}))}function f(e){var t;const{prefixCls:n,indicator:o,percent:a}=e,s=`${n}-dot`;return o&&r.isValidElement(o)?(0,l.Ob)(o,{className:i()(null===(t=o.props)||void 0===t?void 0:t.className,s),percent:a}):r.createElement(p,{prefixCls:n,percent:a})}var m=n(85530),g=n(25905),b=n(37358),v=n(14277);const y=new m.Mo("antSpinMove",{to:{opacity:1}}),x=new m.Mo("antRotate",{to:{transform:"rotate(405deg)"}}),w=(0,b.OF)("Spin",e=>(e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},(0,g.dF)(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:y,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:x,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(t=>`${t} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}})((0,v.oX)(e,{spinDotDefault:e.colorTextDescription})),e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}),A=[[30,.05],[70,.03],[96,.01]];var S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,spinning:o=!0,delay:l=0,className:c,rootClassName:d,size:u="default",tip:h,wrapperClassName:p,style:m,children:g,fullscreen:b=!1,indicator:v,percent:y}=e,x=S(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:$,direction:k,className:E,style:O,indicator:P}=(0,s.TP)("spin"),j=$("spin",n),[I,M,T]=w(j),[_,R]=r.useState(()=>o&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(o,l)),B=function(e,t){const[n,o]=r.useState(0),i=r.useRef(null),a="auto"===t;return r.useEffect(()=>(a&&e&&(o(0),i.current=setInterval(()=>{o(e=>{const t=100-e;for(let n=0;n{i.current&&(clearInterval(i.current),i.current=null)}),[a,e]),a?n:t}(_,y);r.useEffect(()=>{if(o){const e=(0,a.s)(l,()=>{R(!0)});return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}R(!1)},[l,o]);const F=r.useMemo(()=>void 0!==g&&!b,[g,b]);const D=i()(j,E,{[`${j}-sm`]:"small"===u,[`${j}-lg`]:"large"===u,[`${j}-spinning`]:_,[`${j}-show-text`]:!!h,[`${j}-rtl`]:"rtl"===k},c,!b&&d,M,T),z=i()(`${j}-container`,{[`${j}-blur`]:_}),N=null!==(t=null!=v?v:P)&&void 0!==t?t:C,L=Object.assign(Object.assign({},O),m),H=r.createElement("div",Object.assign({},x,{style:L,className:D,"aria-live":"polite","aria-busy":_}),r.createElement(f,{prefixCls:j,indicator:N,percent:B}),h&&(F||b)?r.createElement("div",{className:`${j}-text`},h):null);return I(F?r.createElement("div",Object.assign({},x,{className:i()(`${j}-nested-loading`,p,M,T)}),_&&r.createElement("div",{key:"loading"},H),r.createElement("div",{className:z,key:"container"},g)):b?r.createElement("div",{className:i()(`${j}-fullscreen`,{[`${j}-fullscreen-show`]:_},d,M,T)},H):H)};$.setDefaultIndicator=e=>{C=e};const k=$},55974(e,t,n){"use strict";function r(e,t,n,r){const{focusElCls:o,focus:i,borderElCls:a}=n,s=a?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function o(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function i(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:i}=t,a=i||n,s=`${a}-compact`;return{[s]:Object.assign(Object.assign({},r(e,s,t,a)),o(a,s,t))}}n.d(t,{G:()=>i})},25905(e,t,n){"use strict";n.d(t,{K8:()=>u,L9:()=>o,Nk:()=>a,Y1:()=>p,av:()=>l,dF:()=>i,jk:()=>d,jz:()=>h,t6:()=>s,vj:()=>c});var r=n(85530);const o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},i=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),a=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),s=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),l=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==r&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},d=(e,t)=>({outline:`${(0,r.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),u=(e,t)=>({"&:focus-visible":d(e,t)}),h=e=>({[`.${e}`]:Object.assign(Object.assign({},a()),{[`.${e} .${e}-icon`]:{display:"block"}})}),p=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},u(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}})},60977(e,t,n){"use strict";n.d(t,{A:()=>r});const r=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},28680(e,t,n){"use strict";n.d(t,{p9:()=>s});var r=n(85530),o=n(14980);const i=new r.Mo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),a=new r.Mo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),s=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,s=t?"&":"";return[(0,o.b)(r,i,a,e.motionDurationMid,t),{[`\n ${s}${r}-enter,\n ${s}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${s}${r}-leave`]:{animationTimingFunction:"linear"}}]}},14980(e,t,n){"use strict";n.d(t,{b:()=>i});const r=e=>({animationDuration:e,animationFillMode:"both"}),o=e=>({animationDuration:e,animationFillMode:"both"}),i=(e,t,n,i,a=!1)=>{const s=a?"&":"";return{[`\n ${s}${e}-enter,\n ${s}${e}-appear\n `]:Object.assign(Object.assign({},r(i)),{animationPlayState:"paused"}),[`${s}${e}-leave`]:Object.assign(Object.assign({},o(i)),{animationPlayState:"paused"}),[`\n ${s}${e}-enter${e}-enter-active,\n ${s}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${s}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},24211(e,t,n){"use strict";n.d(t,{Mh:()=>h});var r=n(85530),o=n(14980);const i=new r.Mo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new r.Mo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),s=new r.Mo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new r.Mo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),c=new r.Mo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),d=new r.Mo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),u={"move-up":{inKeyframes:new r.Mo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new r.Mo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:i,outKeyframes:a},"move-left":{inKeyframes:s,outKeyframes:l},"move-right":{inKeyframes:c,outKeyframes:d}},h=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=u[t];return[(0,o.b)(r,i,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},53561(e,t,n){"use strict";n.d(t,{YU:()=>l,_j:()=>f,nP:()=>s,ox:()=>i,vR:()=>a});var r=n(85530),o=n(14980);const i=new r.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new r.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),s=new r.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),l=new r.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new r.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),d=new r.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),u=new r.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),h=new r.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),p={"slide-up":{inKeyframes:i,outKeyframes:a},"slide-down":{inKeyframes:s,outKeyframes:l},"slide-left":{inKeyframes:c,outKeyframes:d},"slide-right":{inKeyframes:u,outKeyframes:h}},f=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=p[t];return[(0,o.b)(r,i,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},99077(e,t,n){"use strict";n.d(t,{aB:()=>v,nF:()=>i});var r=n(85530),o=n(14980);const i=new r.Mo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a=new r.Mo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),s=new r.Mo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),l=new r.Mo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new r.Mo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),d=new r.Mo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),u=new r.Mo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),h=new r.Mo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),p=new r.Mo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),f=new r.Mo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),m=new r.Mo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),g=new r.Mo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),b={zoom:{inKeyframes:i,outKeyframes:a},"zoom-big":{inKeyframes:s,outKeyframes:l},"zoom-big-fast":{inKeyframes:s,outKeyframes:l},"zoom-left":{inKeyframes:u,outKeyframes:h},"zoom-right":{inKeyframes:p,outKeyframes:f},"zoom-up":{inKeyframes:c,outKeyframes:d},"zoom-down":{inKeyframes:m,outKeyframes:g}},v=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=b[t];return[(0,o.b)(r,i,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},95201(e,t,n){"use strict";n.d(t,{Ay:()=>l,Ke:()=>a,Zs:()=>i});var r=n(85530),o=n(20791);const i=8;function a(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?i:r}}function s(e,t){return e?t:{}}function l(e,t,n){const{componentCls:i,boxShadowPopoverArrow:a,arrowOffsetVertical:l,arrowOffsetHorizontal:c}=e,{arrowDistance:d=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[i]:Object.assign(Object.assign(Object.assign(Object.assign({[`${i}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,o.j)(e,t,a)),{"&:before":{background:t}})]},s(!!u.top,{[[`&-placement-top > ${i}-arrow`,`&-placement-topLeft > ${i}-arrow`,`&-placement-topRight > ${i}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":c,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,r.zA)(c)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),s(!!u.bottom,{[[`&-placement-bottom > ${i}-arrow`,`&-placement-bottomLeft > ${i}-arrow`,`&-placement-bottomRight > ${i}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":c,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${(0,r.zA)(c)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:c}}}})),s(!!u.left,{[[`&-placement-left > ${i}-arrow`,`&-placement-leftTop > ${i}-arrow`,`&-placement-leftBottom > ${i}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${i}-arrow`]:{top:l},[`&-placement-leftBottom > ${i}-arrow`]:{bottom:l}})),s(!!u.right,{[[`&-placement-right > ${i}-arrow`,`&-placement-rightTop > ${i}-arrow`,`&-placement-rightBottom > ${i}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${i}-arrow`]:{top:l},[`&-placement-rightBottom > ${i}-arrow`]:{bottom:l}}))}}},20791(e,t,n){"use strict";n.d(t,{j:()=>i,n:()=>o});var r=n(85530);function o(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),l=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*o-l,u=c,h=2*o-a,p=s,f=2*o-0,m=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${d} ${u} L ${h} ${p} A ${r} ${r} 0 0 0 ${f} ${m} Z')`,arrowPolygon:`polygon(${b}px 100%, 50% ${b}px, ${2*o-b}px 100%, ${b}px 100%)`}}const i=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:i,arrowPath:a,arrowShadowWidth:s,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:c(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,r.zA)(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}}},49806(e,t,n){"use strict";n.d(t,{sb:()=>i,vG:()=>a});var r=n(96540),o=n(50723);const i={token:o.A,override:{override:o.A},hashed:!0},a=r.createContext(i)},5131(e,t,n){"use strict";n.d(t,{A:()=>A});var r=n(85530),o=n(17595),i=n(50723),a=n(68734);const s=e=>{const t=(null==e?void 0:e.algorithm)?(0,r.an)(e.algorithm):o.A,n=Object.assign(Object.assign({},i.A),null==e?void 0:e.token);return(0,r.lO)(n,{override:null==e?void 0:e.token},t,a.A)};var l=n(93093),c=n(49806),d=n(14184),u=n(78690),h=n(51892);const p=(e,t)=>{const n=null!=t?t:(0,d.A)(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),(0,h.A)(r)),{controlHeight:o}),(0,u.A)(Object.assign(Object.assign({},n),{controlHeight:o})))};var f=n(45748),m=n(27484),g=n(2616);const b=(e,t)=>new g.Y(e).setA(t).toRgbString(),v=(e,t)=>new g.Y(e).lighten(t).toHexString(),y=e=>{const t=(0,f.cM)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},x=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:b(r,.85),colorTextSecondary:b(r,.65),colorTextTertiary:b(r,.45),colorTextQuaternary:b(r,.25),colorFill:b(r,.18),colorFillSecondary:b(r,.12),colorFillTertiary:b(r,.08),colorFillQuaternary:b(r,.04),colorBgSolid:b(r,.95),colorBgSolidHover:b(r,1),colorBgSolidActive:b(r,.9),colorBgElevated:v(n,12),colorBgContainer:v(n,8),colorBgLayout:v(n,0),colorBgSpotlight:v(n,26),colorBgBlur:b(r,.04),colorBorder:v(n,26),colorBorderSecondary:v(n,19)}},w=(e,t)=>{const n=Object.keys(i.r).map(t=>{const n=(0,f.cM)(e[t],{theme:"dark"});return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{}),r=null!=t?t:(0,d.A)(e),o=(0,m.A)(e,{generateColorPalettes:y,generateNeutralColorPalettes:x});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})};const A={defaultSeed:c.sb.token,useToken:function(){const[e,t,n]=(0,l.Ay)();return{theme:e,token:t,hashId:n}},defaultAlgorithm:d.A,darkAlgorithm:w,compactAlgorithm:p,getDesignToken:s,defaultConfig:c.sb,_internalContext:c.vG}},13950(e,t,n){"use strict";n.d(t,{s:()=>r});const r=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},14184(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(45748),o=n(50723),i=n(27484);const a=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};var s=n(78690),l=n(51892);var c=n(2616);const d=(e,t)=>new c.Y(e).setA(t).toRgbString(),u=(e,t)=>new c.Y(e).darken(t).toHexString(),h=e=>{const t=(0,r.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},p=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:d(r,.88),colorTextSecondary:d(r,.65),colorTextTertiary:d(r,.45),colorTextQuaternary:d(r,.25),colorFill:d(r,.15),colorFillSecondary:d(r,.06),colorFillTertiary:d(r,.04),colorFillQuaternary:d(r,.02),colorBgSolid:d(r,1),colorBgSolidHover:d(r,.75),colorBgSolidActive:d(r,.95),colorBgLayout:u(n,4),colorBgContainer:u(n,0),colorBgElevated:u(n,0),colorBgSpotlight:d(r,.85),colorBgBlur:"transparent",colorBorder:u(n,15),colorBorderSecondary:u(n,6)}};function f(e){r.uy.pink=r.uy.magenta,r.UA.pink=r.UA.magenta;const t=Object.keys(o.r).map(t=>{const n=e[t]===r.uy[t]?r.UA[t]:(0,r.cM)(e[t]);return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),(0,i.A)(e,{generateColorPalettes:h,generateNeutralColorPalettes:p})),(0,l.A)(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(0,s.A)(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},a(r))}(e))}},17595(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(85530),o=n(14184);const i=(0,r.an)(o.A)},50723(e,t,n){"use strict";n.d(t,{A:()=>o,r:()=>r});const r={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o=Object.assign(Object.assign({},r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0})},27484(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(2616);function o(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:d}=e,u=t(l),h=t(o),p=t(i),f=t(a),m=t(s),g=n(c,d),b=t(e.colorLink||e.colorInfo),v=new r.Y(f[1]).mix(new r.Y(f[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:v,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new r.Y("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}},78690(e,t,n){"use strict";n.d(t,{A:()=>r});const r=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}}},51892(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(94925);const o=e=>{const t=(0,r.A)(e),n=t.map(e=>e.size),o=t.map(e=>e.lineHeight),i=n[1],a=n[0],s=n[2],l=o[1],c=o[0],d=o[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:s,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:d,lineHeightSM:c,fontHeight:Math.round(l*i),fontHeightLG:Math.round(d*s),fontHeightSM:Math.round(c*a),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}}},94925(e,t,n){"use strict";function r(e){return(e+8)/e}function o(e){const t=Array.from({length:10}).map((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:r(e)}))}n.d(t,{A:()=>o,k:()=>r})},93093(e,t,n){"use strict";n.d(t,{Ay:()=>m,Is:()=>u});var r=n(96540),o=n(85530),i=n(25640),a=n(49806),s=n(17595),l=n(50723),c=n(68734),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=d(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=(0,c.A)(a),i&&Object.entries(i).forEach(([e,t])=>{const{theme:n}=t,r=d(t,["theme"]);let o=r;n&&(o=f(Object.assign(Object.assign({},a),r),{override:r},n)),a[e]=o}),a};function m(){const{token:e,hashed:t,theme:n,override:d,cssVar:m}=r.useContext(a.vG),g=`${i.A}-${t||""}`,b=n||s.A,[v,y,x]=(0,o.hV)(b,[l.A,e],{salt:g,override:d,getComputedToken:f,formatToken:c.A,cssVar:m&&{prefix:m.prefix,key:m.key,unitless:u,ignore:h,preserve:p}});return[b,x,t?y:"",v,m]}},68734(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(2616),o=n(50723),i=n(85045),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{delete s[e]});const l=Object.assign(Object.assign({},n),s),c=1200,d=1600;if(!1===l.motion){const e="0s";l.motionDurationFast=e,l.motionDurationMid=e,l.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},l),{colorFillContent:l.colorFillSecondary,colorFillContentHover:l.colorFill,colorFillAlter:l.colorFillQuaternary,colorBgContainerDisabled:l.colorFillTertiary,colorBorderBg:l.colorBgContainer,colorSplit:(0,i.A)(l.colorBorderSecondary,l.colorBgContainer),colorTextPlaceholder:l.colorTextQuaternary,colorTextDisabled:l.colorTextQuaternary,colorTextHeading:l.colorText,colorTextLabel:l.colorTextSecondary,colorTextDescription:l.colorTextTertiary,colorTextLightSolid:l.colorWhite,colorHighlight:l.colorError,colorBgTextHover:l.colorFillSecondary,colorBgTextActive:l.colorFill,colorIcon:l.colorTextTertiary,colorIconHover:l.colorText,colorErrorOutline:(0,i.A)(l.colorErrorBg,l.colorBgContainer),colorWarningOutline:(0,i.A)(l.colorWarningBg,l.colorBgContainer),fontSizeIcon:l.fontSizeSM,lineWidthFocus:3*l.lineWidth,lineWidth:l.lineWidth,controlOutlineWidth:2*l.lineWidth,controlInteractiveSize:l.controlHeight/2,controlItemBgHover:l.colorFillTertiary,controlItemBgActive:l.colorPrimaryBg,controlItemBgActiveHover:l.colorPrimaryBgHover,controlItemBgActiveDisabled:l.colorFill,controlTmpOutline:l.colorFillQuaternary,controlOutline:(0,i.A)(l.colorPrimaryBg,l.colorBgContainer),lineType:l.lineType,borderRadius:l.borderRadius,borderRadiusXS:l.borderRadiusXS,borderRadiusSM:l.borderRadiusSM,borderRadiusLG:l.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:l.sizeXXS,paddingXS:l.sizeXS,paddingSM:l.sizeSM,padding:l.size,paddingMD:l.sizeMD,paddingLG:l.sizeLG,paddingXL:l.sizeXL,paddingContentHorizontalLG:l.sizeLG,paddingContentVerticalLG:l.sizeMS,paddingContentHorizontal:l.sizeMS,paddingContentVertical:l.sizeSM,paddingContentHorizontalSM:l.size,paddingContentVerticalSM:l.sizeXS,marginXXS:l.sizeXXS,marginXS:l.sizeXS,marginSM:l.sizeSM,margin:l.size,marginMD:l.sizeMD,marginLG:l.sizeLG,marginXL:l.sizeXL,marginXXL:l.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:c,screenXLMin:c,screenXLMax:1599,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new r.Y("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new r.Y("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new r.Y("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),s)}},31108(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(13950);function o(e,t){return r.s.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}},37358(e,t,n){"use strict";n.d(t,{OF:()=>l,Or:()=>c,bf:()=>d});var r=n(96540),o=n(14277),i=n(62279),a=n(25905),s=n(93093);const{genStyleHooks:l,genComponentStyleHook:c,genSubStyleComponent:d}=(0,o.L_)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,r.useContext)(i.QO);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=(0,s.Ay)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=(0,r.useContext)(i.QO);return null!=e?e:{}},getResetStyles:(e,t)=>{var n;const r=(0,a.av)(e);return[r,{"&":r},(0,a.jz)(null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:i.pM)]},getCommonStyle:a.vj,getCompUnitless:()=>s.Is})},85045(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(2616);function o(e){return e>=0&&e<=255}const i=function(e,t){const{r:n,g:i,b:a,a:s}=new r.Y(e).toRgb();if(s<1)return e;const{r:l,g:c,b:d}=new r.Y(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-l*(1-e))/e),s=Math.round((i-c*(1-e))/e),u=Math.round((a-d*(1-e))/e);if(o(t)&&o(s)&&o(u))return new r.Y({r:t,g:s,b:u,a:Math.round(100*e)/100}).toRgbString()}return new r.Y({r:n,g:i,b:a,a:1}).toRgbString()}},65341(e,t,n){"use strict";n.d(t,{A:()=>r});const r={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},37977(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(96540),o=n(46942),i=n.n(o),a=n(80427),s=n(12533),l=n(62897),c=n(60275),d=n(23723),u=n(13257),h=n(40682),p=n(18877),f=n(72616),m=n(62279),g=n(93093),b=n(85530),v=n(25905),y=n(99077),x=n(95201),w=n(20791),A=n(31108),S=n(14277),C=n(37358);const $=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:d,paddingXS:u,arrowOffsetHorizontal:h,sizePopupArrow:p}=e,f=t(a).add(p).add(h).equal(),m=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.dF)(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:m,minHeight:l,padding:`${(0,b.zA)(e.calc(d).div(2).equal())} ${(0,b.zA)(u)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:f},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,x.Zs)}},[`${n}-content`]:{position:"relative"}}),(0,A.A)(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{"--antd-arrow-background-color":t}}}))),{"&-rtl":{direction:"rtl"}})},(0,x.Ay)(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},k=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},(0,x.Ke)({contentRadius:e.borderRadius,limitVerticalRadius:!0})),(0,w.n)((0,S.oX)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),E=(e,t=!0)=>(0,C.OF)("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=(0,S.oX)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[$(o),(0,y.aB)(e,"zoom-big-fast")]},k,{resetStyle:!1,injectStyle:t})(e);(Object.getOwnPropertyDescriptor(E,"name")||{}).writable||Object.defineProperty(E,"name",{value:"default",configurable:!0});var O=n(54121),P=n(36058);function j(e,t){const n=(0,O.nP)(t),r=i()({[`${e}-${t}`]:t&&n}),o={},a={},s=(0,P.Z6)(t).toRgb(),l=(.299*s.r+.587*s.g+.114*s.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=l,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const I=e=>{const{prefixCls:t,className:n,placement:o="top",title:s,color:l,overlayInnerStyle:c}=e,{getPrefixCls:d}=r.useContext(m.QO),u=d("tooltip",t),[h,p,f]=E(u),g=j(u,l),b=g.arrowStyle,v=Object.assign(Object.assign({},c),g.overlayStyle),y=i()(p,f,u,`${u}-pure`,`${u}-placement-${o}`,n,g.className);return h(r.createElement("div",{className:y,style:b},r.createElement("div",{className:`${u}-arrow`}),r.createElement(a.z,Object.assign({},e,{className:p,prefixCls:u,overlayInnerStyle:v}),s)))};var M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o;const{prefixCls:b,openClassName:v,getTooltipContainer:y,color:x,overlayInnerStyle:w,children:A,afterOpenChange:S,afterVisibleChange:C,destroyTooltipOnHide:$,destroyOnHidden:k,arrow:O=!0,title:P,overlay:I,builtinPlacements:T,arrowPointAtCenter:_=!1,autoAdjustOverflow:R=!0,motion:B,getPopupContainer:F,placement:D="top",mouseEnterDelay:z=.1,mouseLeaveDelay:N=.1,overlayStyle:L,rootClassName:H,overlayClassName:W,styles:U,classNames:V}=e,G=M(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),q=!!O,[,X]=(0,g.Ay)(),{getPopupContainer:K,getPrefixCls:Y,direction:Q,className:J,style:Z,classNames:ee,styles:te}=(0,m.TP)("tooltip"),ne=(0,p.rJ)("Tooltip"),re=r.useRef(null),oe=()=>{var e;null===(e=re.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,()=>{var e,t;return{forceAlign:oe,forcePopupAlign:()=>{ne.deprecated(!1,"forcePopupAlign","forceAlign"),oe()},nativeElement:null===(e=re.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=re.current)||void 0===t?void 0:t.popupElement}});const[ie,ae]=(0,s.A)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),se=!P&&!I&&0!==P,le=r.useMemo(()=>{var e,t;let n=_;return"object"==typeof O&&(n=null!==(t=null!==(e=O.pointAtCenter)&&void 0!==e?e:O.arrowPointAtCenter)&&void 0!==t?t:_),T||(0,u.A)({arrowPointAtCenter:n,autoAdjustOverflow:R,arrowWidth:q?X.sizePopupArrow:0,borderRadius:X.borderRadius,offset:X.marginXXS,visibleFirst:!0})},[_,O,T,X]),ce=r.useMemo(()=>0===P?P:I||P||"",[I,P]),de=r.createElement(l.A,{space:!0},"function"==typeof ce?ce():ce),ue=Y("tooltip",b),he=Y(),pe=e["data-popover-inject"];let fe=ie;"open"in e||"visible"in e||!se||(fe=!1);const me=r.isValidElement(A)&&!(0,h.zv)(A)?A:r.createElement("span",null,A),ge=me.props,be=ge.className&&"string"!=typeof ge.className?ge.className:i()(ge.className,v||`${ue}-open`),[ve,ye,xe]=E(ue,!pe),we=j(ue,x),Ae=we.arrowStyle,Se=i()(W,{[`${ue}-rtl`]:"rtl"===Q},we.className,H,ye,xe,J,ee.root,null==V?void 0:V.root),Ce=i()(ee.body,null==V?void 0:V.body),[$e,ke]=(0,c.YK)("Tooltip",G.zIndex),Ee=r.createElement(a.A,Object.assign({},G,{zIndex:$e,showArrow:q,placement:D,mouseEnterDelay:z,mouseLeaveDelay:N,prefixCls:ue,classNames:{root:Se,body:Ce},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ae),te.root),Z),L),null==U?void 0:U.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},te.body),w),null==U?void 0:U.body),we.overlayStyle)},getTooltipContainer:F||y||K,ref:re,builtinPlacements:le,overlay:de,visible:fe,onVisibleChange:t=>{var n,r;ae(!se&&t),se||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=S?S:C,arrowContent:r.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:(0,d.b)(he,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!=k?k:!!$}),fe?(0,h.Ob)(me,{className:be}):me);return ve(r.createElement(f.A.Provider,{value:ke},Ee))});T._InternalPanelDoNotUseOrYouWillBeFired=I;const _=T},63496(e,t,n){"use strict";n.d(t,{A:()=>ye});var r=n(96540),o=n(60436),i=n(40961),a=n(46942),s=n.n(a),l=n(40778),c=n(12533),d=n(62279),u=n(98119),h=n(19155),p=n(83480),f=n(25905),m=n(60977),g=n(37358),b=n(14277),v=n(85530);const y=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${(0,v.zA)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${(0,v.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${(0,v.zA)(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},x=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,f.t6)()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},f.L9),{padding:`0 ${(0,v.zA)(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${l}:focus-visible,\n &.picture ${l}\n `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}};var w=n(28680);const A=e=>{const{componentCls:t}=e,n=new v.Mo("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new v.Mo("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:(0,w.p9)(e)},n,r]};var S=n(45748);const C=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`\n ${a}${a}-picture,\n ${a}${a}-picture-card,\n ${a}${a}-picture-circle\n `]:{[s]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,v.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},f.L9),{width:r,height:r,lineHeight:(0,v.zA)(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${(0,v.zA)(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${S.z1[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${S.z1.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},$=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},(0,f.t6)()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${(0,v.zA)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,v.zA)(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,v.zA)(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${n}-eye,\n ${n}-download,\n ${n}-delete\n `]:{zIndex:10,width:r,margin:`0 ${(0,v.zA)(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,v.zA)(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${(0,v.zA)(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},k=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},E=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,f.dF)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},O=(0,g.OF)("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:o,calc:i}=e,a=(0,b.oX)(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:o});return[E(a),y(a),C(a),$(a),x(a),A(a),k(a),(0,m.A)(a)]},e=>({actionsColor:e.colorIcon,pictureCardSize:2.55*e.controlHeightLG}));var P=n(58168);const j={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{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:e}}]}},name:"file",theme:"twotone"};var I=n(87064),M=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:j}))};const T=r.forwardRef(M);var _=n(93567);const R={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"};var B=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:R}))};const F=r.forwardRef(B);const D={icon:function(e,t){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:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{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:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{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:e}}]}},name:"picture",theme:"twotone"};var z=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:D}))};const N=r.forwardRef(z);var L=n(90754),H=n(19853),W=n(47447),U=n(23723),V=n(40682),G=n(79249);function q(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function X(e,t){const n=(0,o.A)(t),r=n.findIndex(({uid:t})=>t===e.uid);return-1===r?n.push(e):n[r]=e,n}function K(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}const Y=e=>0===e.indexOf("image/"),Q=e=>{if(e.type&&!e.thumbUrl)return Y(e.type);const t=e.thumbUrl||e.url||"",n=((e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]})(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},J=200;function Z(e){return new Promise(t=>{if(!e.type||!Y(e.type))return void t("");const n=document.createElement("canvas");n.width=J,n.height=J,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:e,height:i}=o;let a=J,s=J,l=0,c=0;e>i?(s=i*(J/e),c=-(s-a)/2):(a=e*(J/i),l=-(a-s)/2),r.drawImage(o,l,c,a,s);const d=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(d)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"==typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var ee=n(93598);const te={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"};var ne=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:te}))};const re=r.forwardRef(ne);var oe=n(30234),ie=n(6754),ae=n(37977);const se=r.forwardRef(({prefixCls:e,className:t,style:n,locale:o,listType:i,file:a,items:l,progress:c,iconRender:u,actionIconRender:h,itemRender:p,isImgUrl:f,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:b,previewIcon:v,removeIcon:y,downloadIcon:x,extra:w,onPreview:A,onDownload:S,onClose:C},$)=>{var k,E;const{status:O}=a,[P,j]=r.useState(O);r.useEffect(()=>{"removed"!==O&&j(O)},[O]);const[I,M]=r.useState(!1);r.useEffect(()=>{const e=setTimeout(()=>{M(!0)},300);return()=>{clearTimeout(e)}},[]);const T=u(a);let _=r.createElement("div",{className:`${e}-icon`},T);if("picture"===i||"picture-card"===i||"picture-circle"===i)if("uploading"===P||!a.thumbUrl&&!a.url){const t=s()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:"uploading"!==P});_=r.createElement("div",{className:t},T)}else{const t=(null==f?void 0:f(a))?r.createElement("img",{src:a.thumbUrl||a.url,alt:a.name,className:`${e}-list-item-image`,crossOrigin:a.crossOrigin}):T,n=s()(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:f&&!f(a)});_=r.createElement("a",{className:n,onClick:e=>A(a,e),href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer"},t)}const R=s()(`${e}-list-item`,`${e}-list-item-${P}`),B="string"==typeof a.linkProps?JSON.parse(a.linkProps):a.linkProps,F=("function"==typeof g?g(a):g)?h(("function"==typeof y?y(a):y)||r.createElement(ee.A,null),()=>C(a),e,o.removeFile,!0):null,D=("function"==typeof b?b(a):b)&&"done"===P?h(("function"==typeof x?x(a):x)||r.createElement(re,null),()=>S(a),e,o.downloadFile):null,z="picture-card"!==i&&"picture-circle"!==i&&r.createElement("span",{key:"download-delete",className:s()(`${e}-list-item-actions`,{picture:"picture"===i})},D,F),N="function"==typeof w?w(a):w,H=N&&r.createElement("span",{className:`${e}-list-item-extra`},N),W=s()(`${e}-list-item-name`),U=a.url?r.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:W,title:a.name},B,{href:a.url,onClick:e=>A(a,e)}),a.name,H):r.createElement("span",{key:"view",className:W,onClick:e=>A(a,e),title:a.name},a.name,H),V=("function"==typeof m?m(a):m)&&(a.url||a.thumbUrl)?r.createElement("a",{href:a.url||a.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>A(a,e),title:o.previewFile},"function"==typeof v?v(a):v||r.createElement(oe.A,null)):null,G=("picture-card"===i||"picture-circle"===i)&&"uploading"!==P&&r.createElement("span",{className:`${e}-list-item-actions`},V,"done"===P&&D,F),{getPrefixCls:q}=r.useContext(d.QO),X=q(),K=r.createElement("div",{className:R},_,U,z,G,I&&r.createElement(L.Ay,{motionName:`${X}-fade`,visible:"uploading"===P,motionDeadline:2e3},({className:t})=>{const n="percent"in a?r.createElement(ie.A,Object.assign({type:"line",percent:a.percent,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"]},c)):null;return r.createElement("div",{className:s()(`${e}-list-item-progress`,t)},n)})),Y=a.response&&"string"==typeof a.response?a.response:(null===(k=a.error)||void 0===k?void 0:k.statusText)||(null===(E=a.error)||void 0===E?void 0:E.message)||o.uploadError,Q="error"===P?r.createElement(ae.A,{title:Y,getPopupContainer:e=>e.parentNode},K):K;return r.createElement("div",{className:s()(`${e}-list-item-container`,t),style:n,ref:$},p?p(Q,a,l,{download:S.bind(null,a),preview:A.bind(null,a),remove:C.bind(null,a)}):Q)}),le=se,ce=(e,t)=>{const{listType:n="text",previewFile:i=Z,onPreview:a,onDownload:l,onRemove:c,locale:u,iconRender:h,isImageUrl:p=Q,prefixCls:f,items:m=[],showPreviewIcon:g=!0,showRemoveIcon:b=!0,showDownloadIcon:v=!1,removeIcon:y,previewIcon:x,downloadIcon:w,extra:A,progress:S={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:$=!0,itemRender:k,disabled:E}=e,[,O]=(0,W.C)(),[P,j]=r.useState(!1),I=["picture-card","picture-circle"].includes(n);r.useEffect(()=>{n.startsWith("picture")&&(m||[]).forEach(e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null==i||i(e.originFileObj).then(t=>{e.thumbUrl=t||"",O()}))})},[n,m,i]),r.useEffect(()=>{j(!0)},[]);const M=(e,t)=>{if(a)return null==t||t.preventDefault(),a(e)},R=e=>{"function"==typeof l?l(e):e.url&&window.open(e.url)},B=e=>{null==c||c(e)},D=e=>{if(h)return h(e,n);const t="uploading"===e.status;if(n.startsWith("picture")){const o="picture"===n?r.createElement(_.A,null):u.uploading,i=(null==p?void 0:p(e))?r.createElement(N,null):r.createElement(T,null);return t?o:i}return t?r.createElement(_.A,null):r.createElement(F,null)},z=(e,t,n,o,i)=>{const a={type:"text",size:"small",title:o,onClick:n=>{var o,i;t(),r.isValidElement(e)&&(null===(i=(o=e.props).onClick)||void 0===i||i.call(o,n))},className:`${n}-list-item-action`,disabled:!!i&&E};return r.isValidElement(e)?r.createElement(G.Ay,Object.assign({},a,{icon:(0,V.Ob)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):r.createElement(G.Ay,Object.assign({},a),r.createElement("span",null,e))};r.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:R}));const{getPrefixCls:q}=r.useContext(d.QO),X=q("upload",f),K=q(),Y=s()(`${X}-list`,`${X}-list-${n}`),J=r.useMemo(()=>(0,H.A)((0,U.A)(K),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[K]),ee=Object.assign(Object.assign({},I?{}:J),{motionDeadline:2e3,motionName:`${X}-${I?"animate-inline":"animate"}`,keys:(0,o.A)(m.map(e=>({key:e.uid,file:e}))),motionAppear:P});return r.createElement("div",{className:Y},r.createElement(L.aF,Object.assign({},ee,{component:!1}),({key:e,file:t,className:o,style:i})=>r.createElement(le,{key:e,locale:u,prefixCls:X,className:o,style:i,file:t,items:m,progress:S,listType:n,isImgUrl:p,showPreviewIcon:g,showRemoveIcon:b,showDownloadIcon:v,removeIcon:y,previewIcon:x,downloadIcon:w,extra:A,iconRender:D,actionIconRender:z,itemRender:k,onPreview:M,onDownload:R,onClose:B})),C&&r.createElement(L.Ay,Object.assign({},ee,{visible:$,forceRender:!0}),({className:e,style:t})=>(0,V.Ob)(C,n=>({className:s()(n.className,e),style:Object.assign(Object.assign(Object.assign({},t),{pointerEvents:e?"none":void 0}),n.style)}))))};const de=r.forwardRef(ce);var ue=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})};const he=`__LIST_IGNORE_${Date.now()}__`,pe=(e,t)=>{const n=(0,d.TP)("upload"),{fileList:a,defaultFileList:f,onRemove:m,showUploadList:g=!0,listType:b="text",onPreview:v,onDownload:y,onChange:x,onDrop:w,previewFile:A,disabled:S,locale:C,iconRender:$,isImageUrl:k,progress:E,prefixCls:P,className:j,type:I="select",children:M,style:T,itemRender:_,maxCount:R,data:B={},multiple:F=!1,hasControlInside:D=!0,action:z="",accept:N="",supportServerRender:L=!0,rootClassName:H}=e,W=r.useContext(u.A),U=null!=S?S:W,V=e.customRequest||n.customRequest,[G,Y]=(0,c.A)(f||[],{value:a,postState:e=>null!=e?e:[]}),[Q,J]=r.useState("drop"),Z=r.useRef(null),ee=r.useRef(null);r.useMemo(()=>{const e=Date.now();(a||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)})},[a]);const te=(e,t,n)=>{let r=(0,o.A)(t),a=!1;1===R?r=r.slice(-1):R&&(a=r.length>R,r=r.slice(0,R)),(0,i.flushSync)(()=>{Y(r)});const s={file:e,fileList:r};n&&(s.event=n),a&&"removed"!==e.status&&!r.some(t=>t.uid===e.uid)||(0,i.flushSync)(()=>{null==x||x(s)})},ne=e=>{const t=e.filter(e=>!e.file[he]);if(!t.length)return;const n=t.map(e=>q(e.file));let r=(0,o.A)(G);n.forEach(e=>{r=X(e,r)}),n.forEach((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(e){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,o=n}te(o,r)})},re=(e,t,n)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!K(t,G))return;const r=q(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;const o=X(r,G);te(r,o)},oe=(e,t)=>{if(!K(t,G))return;const n=q(t);n.status="uploading",n.percent=e.percent;const r=X(n,G);te(n,r,e)},ie=(e,t,n)=>{if(!K(n,G))return;const r=q(n);r.error=e,r.response=t,r.status="error";const o=X(r,G);te(r,o)},ae=e=>{let t;Promise.resolve("function"==typeof m?m(e):m).then(n=>{var r;if(!1===n)return;const o=function(e,t){const n=void 0!==e.uid?"uid":"name",r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}(e,G);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==G||G.forEach(e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null===(r=Z.current)||void 0===r||r.abort(t),te(t,o))})},se=e=>{J(e.type),"drop"===e.type&&(null==w||w(e))};r.useImperativeHandle(t,()=>({onBatchStart:ne,onSuccess:re,onProgress:oe,onError:ie,fileList:G,upload:Z.current,nativeElement:ee.current}));const{getPrefixCls:le,direction:ce,upload:pe}=r.useContext(d.QO),fe=le("upload",P),me=Object.assign(Object.assign({onBatchStart:ne,onError:ie,onProgress:oe,onSuccess:re},e),{customRequest:V,data:B,multiple:F,action:z,accept:N,supportServerRender:L,prefixCls:fe,disabled:U,beforeUpload:(t,n)=>ue(void 0,void 0,void 0,function*(){const{beforeUpload:r,transformFile:o}=e;let i=t;if(r){const e=yield r(t,n);if(!1===e)return!1;if(delete t[he],e===he)return Object.defineProperty(t,he,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i}),onChange:void 0,hasControlInside:D});delete me.className,delete me.style,M&&!U||delete me.id;const ge=`${fe}-wrapper`,[be,ve,ye]=O(fe,ge),[xe]=(0,h.A)("Upload",p.A.Upload),{showRemoveIcon:we,showPreviewIcon:Ae,showDownloadIcon:Se,removeIcon:Ce,previewIcon:$e,downloadIcon:ke,extra:Ee}="boolean"==typeof g?{}:g,Oe=void 0===we?!U:we,Pe=(e,t)=>g?r.createElement(de,{prefixCls:fe,listType:b,items:G,previewFile:A,onPreview:v,onDownload:y,onRemove:ae,showRemoveIcon:Oe,showPreviewIcon:Ae,showDownloadIcon:Se,removeIcon:Ce,previewIcon:$e,downloadIcon:ke,iconRender:$,extra:Ee,locale:Object.assign(Object.assign({},xe),C),isImageUrl:k,progress:E,appendAction:e,appendActionVisible:t,itemRender:_,disabled:U}):e,je=s()(ge,j,H,ve,ye,null==pe?void 0:pe.className,{[`${fe}-rtl`]:"rtl"===ce,[`${fe}-picture-card-wrapper`]:"picture-card"===b,[`${fe}-picture-circle-wrapper`]:"picture-circle"===b}),Ie=Object.assign(Object.assign({},null==pe?void 0:pe.style),T);if("drag"===I){const e=s()(ve,fe,`${fe}-drag`,{[`${fe}-drag-uploading`]:G.some(e=>"uploading"===e.status),[`${fe}-drag-hover`]:"dragover"===Q,[`${fe}-disabled`]:U,[`${fe}-rtl`]:"rtl"===ce});return be(r.createElement("span",{className:je,ref:ee},r.createElement("div",{className:e,style:Ie,onDrop:se,onDragOver:se,onDragLeave:se},r.createElement(l.A,Object.assign({},me,{ref:Z,className:`${fe}-btn`}),r.createElement("div",{className:`${fe}-drag-container`},M))),Pe()))}const Me=s()(fe,`${fe}-select`,{[`${fe}-disabled`]:U,[`${fe}-hidden`]:!M}),Te=r.createElement("div",{className:Me,style:Ie},r.createElement(l.A,Object.assign({},me,{ref:Z})));return be("picture-card"===b||"picture-circle"===b?r.createElement("span",{className:je,ref:ee},Pe(Te,!!M)):r.createElement("span",{className:je,ref:ee},Te,Pe()))};const fe=r.forwardRef(pe);var me=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{style:n,height:o,hasControlInside:i=!1,children:a}=e,s=me(e,["style","height","hasControlInside","children"]),l=Object.assign(Object.assign({},n),{height:o});return r.createElement(fe,Object.assign({ref:t,hasControlInside:i},s,{style:l,type:"drag"}),a)});const be=ge,ve=fe;ve.Dragger=be,ve.LIST_IGNORE=he;const ye=ve},25640(e,t,n){"use strict";n.d(t,{A:()=>r});const r="5.29.3"},28557(e,t,n){"use strict";n.d(t,{f:()=>s});var r=n(96540),o=n(26956);function i(){}const a=r.createContext({add:i,remove:i});function s(e){const t=r.useContext(a),n=r.useRef(null);return(0,o.A)(r=>{if(r){const o=e?r.querySelector(e):r;o&&(t.add(o),n.current=o)}else t.remove(n.current)})}},41702(e,t,n){"use strict";var r=n(24994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(83009));t.default=o.default},83009(e,t,n){"use strict";var r=n(24994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(57536)),i=r(n(82348));const a={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},o.default),timePickerLocale:Object.assign({},i.default)};a.lang.ok="确定";t.default=a},92187(e,t,n){"use strict";var r=n(24994).default;t.A=void 0;var o=r(n(67018)),i=r(n(41702)),a=r(n(83009)),s=r(n(82348));const l="${label}不是一个有效的${type}",c={locale:"zh-cn",Pagination:o.default,DatePicker:a.default,TimePicker:s.default,Calendar:i.default,global:{placeholder:"请选择",close:"关闭"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};t.A=c},82348(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]}},71508(e){function t(e){var n,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(n=0;n>>8^255&f^99,o[n]=f,i[f]=n;var m=e[n],g=e[m],b=e[g],v=257*e[f]^16843008*f;a[n]=v<<24|v>>>8,s[n]=v<<16|v>>>16,l[n]=v<<8|v>>>24,c[n]=v,v=16843009*b^65537*g^257*m^16843008*n,d[f]=v<<24|v>>>8,u[f]=v<<16|v>>>16,h[f]=v<<8|v>>>24,p[f]=v,n?(n=m^e[e[e[b^m]]],r^=e[e[r]]):n=r=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],a=0;a6&&a%n==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=f[a/n|0]<<24),i[a]=i[a-n]^c);for(var s=this._invKeySchedule=[],l=0;l>>24]]^u[o[c>>>16&255]]^h[o[c>>>8&255]]^p[o[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,u,h,p,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,a,s){for(var l=this._nRounds,c=e[t]^n[0],d=e[t+1]^n[1],u=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f>>24]^o[d>>>16&255]^i[u>>>8&255]^a[255&h]^n[p++],g=r[d>>>24]^o[u>>>16&255]^i[h>>>8&255]^a[255&c]^n[p++],b=r[u>>>24]^o[h>>>16&255]^i[c>>>8&255]^a[255&d]^n[p++],v=r[h>>>24]^o[c>>>16&255]^i[d>>>8&255]^a[255&u]^n[p++];c=m,d=g,u=b,h=v}m=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^n[p++],g=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],b=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^n[p++],v=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^n[p++],e[t]=m,e[t+1]=g,e[t+2]=b,e[t+3]=v},keySize:8});e.AES=t._createHelper(m)}(),r.AES)},43128(e,t,n){var r;e.exports=(r=n(19021),n(80754),n(84636),n(39506),n(57165),function(){var e=r,t=e.lib.BlockCipher,n=e.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(e,t){let n=t>>24&255,r=t>>16&255,o=t>>8&255,i=255&t,a=e.sbox[0][n]+e.sbox[1][r];return a^=e.sbox[2][o],a+=e.sbox[3][i],a}function c(e,t,n){let r,i=t,a=n;for(let t=0;t1;--t)i^=e.pbox[t],a=l(e,i)^a,r=i,i=a,a=r;return r=i,i=a,a=r,a^=e.pbox[1],i^=e.pbox[0],{left:i,right:a}}function u(e,t,n){for(let t=0;t<4;t++){e.sbox[t]=[];for(let n=0;n<256;n++)e.sbox[t][n]=a[t][n]}let r=0;for(let a=0;a=n&&(r=0);let s=0,l=0,d=0;for(let t=0;t>>2];e.sigBytes-=t}},m=(n.BlockCipher=d.extend({cfg:d.cfg.extend({mode:p,padding:f}),reset:function(){var e;d.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),n.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),g=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},b=n.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),a=o.cfg;return m.create({ciphertext:i,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(t.kdf={}).OpenSSL={execute:function(e,t,n,r,o){if(r||(r=i.random(8)),o)a=c.create({keySize:t+n,hasher:o}).compute(e,r);else var a=c.create({keySize:t+n}).compute(e,r);var s=i.create(a.words.slice(t),4*n);return a.sigBytes=4*t,m.create({key:a,iv:s,salt:r})}},y=n.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:v}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=b.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,b.decrypt.call(this,e,t,o.key,r)}})}()))},19021(e,t,n){var r;e.exports=(r=r||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(50477)}catch(e){}var o=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},l=s.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},h=d.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},p=d.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},f=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,s=i/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,d=e.min(4*l,i);if(l){for(var u=0;u>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return t.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>6-a%4*2;o[i>>>2]|=s<<24-i%4*8,i++}return t.create(o,i)}e.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l>>6*(3-l)&63));var c=o.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var r=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var n=e.length,r=[],o=0;o>>1]|=e.charCodeAt(o)<<16-o%2*16;return t.create(r,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var n=e.length,r=[],i=0;i>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return t.create(r,2*n)}}}(),r.enc.Utf16)},39506(e,t,n){var r,o,i,a,s,l,c,d;e.exports=(d=n(19021),n(45471),n(51025),o=(r=d).lib,i=o.Base,a=o.WordArray,s=r.algo,l=s.MD5,c=s.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,o=r.hasher.create(),i=a.create(),s=i.words,l=r.keySize,c=r.iterations;s.lengthr&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),s=o.words,l=i.words,c=0;c>>2]|=e[o]<<24-o%4*8;t.call(this,r,n)}else t.apply(this,arguments)};n.prototype=e}}(),r.lib.WordArray)},84636(e,t,n){var r;e.exports=(r=n(19021),function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],b=e[t+6],v=e[t+7],y=e[t+8],x=e[t+9],w=e[t+10],A=e[t+11],S=e[t+12],C=e[t+13],$=e[t+14],k=e[t+15],E=i[0],O=i[1],P=i[2],j=i[3];E=c(E,O,P,j,a,7,s[0]),j=c(j,E,O,P,l,12,s[1]),P=c(P,j,E,O,p,17,s[2]),O=c(O,P,j,E,f,22,s[3]),E=c(E,O,P,j,m,7,s[4]),j=c(j,E,O,P,g,12,s[5]),P=c(P,j,E,O,b,17,s[6]),O=c(O,P,j,E,v,22,s[7]),E=c(E,O,P,j,y,7,s[8]),j=c(j,E,O,P,x,12,s[9]),P=c(P,j,E,O,w,17,s[10]),O=c(O,P,j,E,A,22,s[11]),E=c(E,O,P,j,S,7,s[12]),j=c(j,E,O,P,C,12,s[13]),P=c(P,j,E,O,$,17,s[14]),E=d(E,O=c(O,P,j,E,k,22,s[15]),P,j,l,5,s[16]),j=d(j,E,O,P,b,9,s[17]),P=d(P,j,E,O,A,14,s[18]),O=d(O,P,j,E,a,20,s[19]),E=d(E,O,P,j,g,5,s[20]),j=d(j,E,O,P,w,9,s[21]),P=d(P,j,E,O,k,14,s[22]),O=d(O,P,j,E,m,20,s[23]),E=d(E,O,P,j,x,5,s[24]),j=d(j,E,O,P,$,9,s[25]),P=d(P,j,E,O,f,14,s[26]),O=d(O,P,j,E,y,20,s[27]),E=d(E,O,P,j,C,5,s[28]),j=d(j,E,O,P,p,9,s[29]),P=d(P,j,E,O,v,14,s[30]),E=u(E,O=d(O,P,j,E,S,20,s[31]),P,j,g,4,s[32]),j=u(j,E,O,P,y,11,s[33]),P=u(P,j,E,O,A,16,s[34]),O=u(O,P,j,E,$,23,s[35]),E=u(E,O,P,j,l,4,s[36]),j=u(j,E,O,P,m,11,s[37]),P=u(P,j,E,O,v,16,s[38]),O=u(O,P,j,E,w,23,s[39]),E=u(E,O,P,j,C,4,s[40]),j=u(j,E,O,P,a,11,s[41]),P=u(P,j,E,O,f,16,s[42]),O=u(O,P,j,E,b,23,s[43]),E=u(E,O,P,j,x,4,s[44]),j=u(j,E,O,P,S,11,s[45]),P=u(P,j,E,O,k,16,s[46]),E=h(E,O=u(O,P,j,E,p,23,s[47]),P,j,a,6,s[48]),j=h(j,E,O,P,v,10,s[49]),P=h(P,j,E,O,$,15,s[50]),O=h(O,P,j,E,g,21,s[51]),E=h(E,O,P,j,S,6,s[52]),j=h(j,E,O,P,f,10,s[53]),P=h(P,j,E,O,w,15,s[54]),O=h(O,P,j,E,l,21,s[55]),E=h(E,O,P,j,y,6,s[56]),j=h(j,E,O,P,k,10,s[57]),P=h(P,j,E,O,b,15,s[58]),O=h(O,P,j,E,C,21,s[59]),E=h(E,O,P,j,m,6,s[60]),j=h(j,E,O,P,A,10,s[61]),P=h(P,j,E,O,p,15,s[62]),O=h(O,P,j,E,x,21,s[63]),i[0]=i[0]+E|0,i[1]=i[1]+O|0,i[2]=i[2]+P|0,i[3]=i[3]+j|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var d=l[c];l[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return s},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+o+a;return(s<>>32-i)+t}function d(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<>>32-i)+t}function u(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<>>32-i)+t}function h(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<>>32-i)+t}t.MD5=i._createHelper(l),t.HmacMD5=i._createHmacHelper(l)}(Math),r.MD5)},82169(e,t,n){var r;e.exports=(r=n(19021),n(57165),r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();function t(e,t,n,r){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var a=0;a>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var o=e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),n(a);var s=a.slice(0);r.encryptBlock(s,0);for(var l=0;l>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Ansix923)},54905(e,t,n){var r;e.exports=(r=n(19021),n(57165),r.pad.Iso10126={pad:function(e,t){var n=4*t,o=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(o-1)).concat(r.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Iso10126)},10482(e,t,n){var r;e.exports=(r=n(19021),n(57165),r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971)},58124(e,t,n){var r;e.exports=(r=n(19021),n(57165),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)},52155(e,t,n){var r;e.exports=(r=n(19021),n(57165),r.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},r.pad.ZeroPadding)},70019(e,t,n){var r,o,i,a,s,l,c,d,u;e.exports=(u=n(19021),n(63009),n(51025),o=(r=u).lib,i=o.Base,a=o.WordArray,s=r.algo,l=s.SHA256,c=s.HMAC,d=s.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:l,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=c.create(n.hasher,e),o=a.create(),i=a.create([1]),s=o.words,l=i.words,d=n.keySize,u=n.iterations;s.length>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var i=t.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=c>>>16|4294901760&d,h=d<<16|65535&c;for(r[0]^=c,r[1]^=u,r[2]^=d,r[3]^=h,r[4]^=c,r[5]^=u,r[6]^=d,r[7]^=h,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),r.RabbitLegacy)},96298(e,t,n){var r;e.exports=(r=n(19021),n(80754),n(84636),n(39506),n(57165),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,o=[],i=[],a=[],s=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var i=t.words,a=i[0],s=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=c>>>16|4294901760&d,h=d<<16|65535&c;for(o[0]^=c,o[1]^=u,o[2]^=d,o[3]^=h,o[4]^=c,o[5]^=u,o[6]^=d,o[7]^=h,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,l=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),r.Rabbit)},77193(e,t,n){var r;e.exports=(r=n(19021),n(80754),n(84636),n(39506),n(57165),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,o=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var i=0;o<256;o++){var a=o%n,s=t[a>>>2]>>>24-a%4*8&255;i=(i+r[o]+s)%256;var l=r[o];r[o]=r[i],r[i]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}e.RC4=t._createHelper(o);var a=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(a)}(),r.RC4)},78056(e,t,n){var r;e.exports=(r=n(19021),function(){var e=r,t=e.lib,n=t.WordArray,o=t.Hasher,i=e.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]),h=i.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,h,y,x,w,A,S,C,$,k,E,O=this._hash.words,P=d.words,j=u.words,I=a.words,M=s.words,T=l.words,_=c.words;for(A=i=O[0],S=h=O[1],C=y=O[2],$=x=O[3],k=w=O[4],n=0;n<80;n+=1)E=i+e[t+I[n]]|0,E+=n<16?p(h,y,x)+P[0]:n<32?f(h,y,x)+P[1]:n<48?m(h,y,x)+P[2]:n<64?g(h,y,x)+P[3]:b(h,y,x)+P[4],E=(E=v(E|=0,T[n]))+w|0,i=w,w=x,x=v(y,10),y=h,h=E,E=A+e[t+M[n]]|0,E+=n<16?b(S,C,$)+j[0]:n<32?g(S,C,$)+j[1]:n<48?m(S,C,$)+j[2]:n<64?f(S,C,$)+j[3]:p(S,C,$)+j[4],E=(E=v(E|=0,_[n]))+k|0,A=k,k=$,$=v(C,10),C=S,S=E;E=O[1]+y+$|0,O[1]=O[2]+x+k|0,O[2]=O[3]+w+A|0,O[3]=O[4]+i+S|0,O[4]=O[0]+h+C|0,O[0]=E},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function f(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function b(e,t,n){return e^(t|~n)}function v(e,t){return e<>>32-t}e.RIPEMD160=o._createHelper(h),e.HmacRIPEMD160=o._createHmacHelper(h)}(Math),r.RIPEMD160)},45471(e,t,n){var r,o,i,a,s,l,c,d;e.exports=(d=n(19021),o=(r=d).lib,i=o.WordArray,a=o.Hasher,s=r.algo,l=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var d=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=d<<1|d>>>31}var u=(r<<5|r>>>27)+s+l[c];u+=c<20?1518500249+(o&i|~o&a):c<40?1859775393+(o^i^a):c<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,s=a,a=i,i=o<<30|o>>>2,o=r,r=u}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=a._createHelper(c),r.HmacSHA1=a._createHmacHelper(c),d.SHA1)},36308(e,t,n){var r,o,i,a,s,l;e.exports=(l=n(19021),n(63009),o=(r=l).lib.WordArray,i=r.algo,a=i.SHA256,s=i.SHA224=a.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),r.SHA224=a._createHelper(s),r.HmacSHA224=a._createHmacHelper(s),l.SHA224)},63009(e,t,n){var r;e.exports=(r=n(19021),function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(s[o]=n(e.pow(r,.5))),l[o]=n(e.pow(r,1/3)),o++),r++}();var c=[],d=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],d=n[5],u=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],b=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+b+c[p-16]}var v=r&o^r&i^o&i,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&d^~s&u)+l[p]+c[p];h=u,u=d,d=s,s=a+x|0,a=i,i=o,o=r,r=x+(y+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+d|0,n[6]=n[6]+u|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(d),t.HmacSHA256=i._createHmacHelper(d)}(Math),r.SHA256)},45953(e,t,n){var r;e.exports=(r=n(19021),n(43240),function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.x64.Word,s=t.algo,l=[],c=[],d=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var s=0,u=0,h=0;h<7;h++){if(1&o){var p=(1<>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(O=n[o]).high^=a,O.low^=i}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var p=0,f=0,m=0;m<5;m++)p^=(O=n[h+5*m]).high,f^=O.low;var g=u[h];g.high=p,g.low=f}for(h=0;h<5;h++){var b=u[(h+4)%5],v=u[(h+1)%5],y=v.high,x=v.low;for(p=b.high^(y<<1|x>>>31),f=b.low^(x<<1|y>>>31),m=0;m<5;m++)(O=n[h+5*m]).high^=p,O.low^=f}for(var w=1;w<25;w++){var A=(O=n[w]).high,S=O.low,C=l[w];C<32?(p=A<>>32-C,f=S<>>32-C):(p=S<>>64-C,f=A<>>64-C);var $=u[c[w]];$.high=p,$.low=f}var k=u[0],E=n[0];for(k.high=E.high,k.low=E.low,h=0;h<5;h++)for(m=0;m<5;m++){var O=n[w=h+5*m],P=u[w],j=u[(h+1)%5+5*m],I=u[(h+2)%5+5*m];O.high=P.high^~j.high&I.high,O.low=P.low^~j.low&I.low}O=n[0];var M=d[s];O.high^=M.high,O.low^=M.low}},_doFinalize:function(){var t=this._data,n=t.words,r=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],d=0;d>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new o.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=i._createHelper(h),t.HmacSHA3=i._createHmacHelper(h)}(Math),r.SHA3)},89557(e,t,n){var r,o,i,a,s,l,c,d;e.exports=(d=n(19021),n(43240),n(81380),o=(r=d).x64,i=o.Word,a=o.WordArray,s=r.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c),d.SHA384)},81380(e,t,n){var r;e.exports=(r=n(19021),n(43240),function(){var e=r,t=e.lib.Hasher,n=e.x64,o=n.Word,i=n.WordArray,a=e.algo;function s(){return o.create.apply(o,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var d=a.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],d=n[5],u=n[6],h=n[7],p=r.high,f=r.low,m=o.high,g=o.low,b=i.high,v=i.low,y=a.high,x=a.low,w=s.high,A=s.low,S=d.high,C=d.low,$=u.high,k=u.low,E=h.high,O=h.low,P=p,j=f,I=m,M=g,T=b,_=v,R=y,B=x,F=w,D=A,z=S,N=C,L=$,H=k,W=E,U=O,V=0;V<80;V++){var G,q,X=c[V];if(V<16)q=X.high=0|e[t+2*V],G=X.low=0|e[t+2*V+1];else{var K=c[V-15],Y=K.high,Q=K.low,J=(Y>>>1|Q<<31)^(Y>>>8|Q<<24)^Y>>>7,Z=(Q>>>1|Y<<31)^(Q>>>8|Y<<24)^(Q>>>7|Y<<25),ee=c[V-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=c[V-7],ae=ie.high,se=ie.low,le=c[V-16],ce=le.high,de=le.low;q=(q=(q=J+ae+((G=Z+se)>>>0>>0?1:0))+re+((G+=oe)>>>0>>0?1:0))+ce+((G+=de)>>>0>>0?1:0),X.high=q,X.low=G}var ue,he=F&z^~F&L,pe=D&N^~D&H,fe=P&I^P&T^I&T,me=j&M^j&_^M&_,ge=(P>>>28|j<<4)^(P<<30|j>>>2)^(P<<25|j>>>7),be=(j>>>28|P<<4)^(j<<30|P>>>2)^(j<<25|P>>>7),ve=(F>>>14|D<<18)^(F>>>18|D<<14)^(F<<23|D>>>9),ye=(D>>>14|F<<18)^(D>>>18|F<<14)^(D<<23|F>>>9),xe=l[V],we=xe.high,Ae=xe.low,Se=W+ve+((ue=U+ye)>>>0>>0?1:0),Ce=be+me;W=L,U=H,L=z,H=N,z=F,N=D,F=R+(Se=(Se=(Se=Se+he+((ue+=pe)>>>0>>0?1:0))+we+((ue+=Ae)>>>0>>0?1:0))+q+((ue+=G)>>>0>>0?1:0))+((D=B+ue|0)>>>0>>0?1:0)|0,R=T,B=_,T=I,_=M,I=P,M=j,P=Se+(ge+fe+(Ce>>>0>>0?1:0))+((j=ue+Ce|0)>>>0>>0?1:0)|0}f=r.low=f+j,r.high=p+P+(f>>>0>>0?1:0),g=o.low=g+M,o.high=m+I+(g>>>0>>0?1:0),v=i.low=v+_,i.high=b+T+(v>>>0<_>>>0?1:0),x=a.low=x+B,a.high=y+R+(x>>>0>>0?1:0),A=s.low=A+D,s.high=w+F+(A>>>0>>0?1:0),C=d.low=C+N,d.high=S+z+(C>>>0>>0?1:0),k=u.low=k+H,u.high=$+L+(k>>>0>>0?1:0),O=h.low=O+U,h.high=E+W+(O>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(d),e.HmacSHA512=t._createHmacHelper(d)}(),r.SHA512)},7628(e,t,n){var r;e.exports=(r=n(19021),n(80754),n(84636),n(39506),n(57165),function(){var e=r,t=e.lib,n=t.WordArray,o=t.BlockCipher,i=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var c=o[i]=[],d=l[i];for(n=0;n<24;n++)c[n/6|0]|=t[(s[n]-1+d)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(s[n+24]-1+d)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var u=this._invSubKeys=[];for(n=0;n<16;n++)u[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^o[l])&d[l])>>>0];this._lBlock=a,this._rBlock=i^s}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=u.createEncryptor(n.create(t)),this._des2=u.createEncryptor(n.create(r)),this._des3=u.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(f)}(),r.TripleDES)},43240(e,t,n){var r;e.exports=(r=n(19021),function(e){var t=r,n=t.lib,o=n.Base,i=n.WordArray,a=t.x64={};a.Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=o.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r=t?e:""+Array(t+1-r.length).join(n)+e},v={s:b,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+b(r,2,"0")+":"+b(o,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;x[s]=t,o=s}return!r&&o&&(y=o),o||!r&&y},C=function(e,t){if(A(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},$=v;$.l=S,$.i=A,$.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var b=g.prototype;return b.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if($.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},b.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},b.$utils=function(){return $},b.isValid=function(){return!(this.$d.toString()===p)},b.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},b.isAfter=function(e,t){return C(e)68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],d=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},h={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,l("seconds")],ss:[o,l("seconds")],m:[o,l("minutes")],mm:[o,l("minutes")],H:[o,l("hours")],h:[o,l("hours")],HH:[o,l("hours")],hh:[o,l("hours")],D:[o,l("day")],DD:[r,l("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,l("week")],ww:[r,l("week")],M:[o,l("month")],MM:[r,l("month")],MMM:[i,function(e){var t=d("months"),n=(d("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=d("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function p(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=i.length,l=0;l-1)return new Date(("X"===t?1e3:1)*e);var o=p(t)(e),i=o.year,a=o.month,s=o.day,l=o.hours,c=o.minutes,d=o.seconds,u=o.milliseconds,h=o.zone,f=o.week,m=new Date,g=s||(i||a?1:m.getDate()),b=i||m.getFullYear(),v=0;i&&!a||(v=a>0?a-1:m.getMonth());var y,x=l||0,w=c||0,A=d||0,S=u||0;return h?new Date(Date.UTC(b,v,g,x,w,A,S+60*h.offset*1e3)):n?new Date(Date.UTC(b,v,g,x,w,A,S)):(y=new Date(b,v,g,x,w,A,S),f&&(y=r(y).week(f).toDate()),y)}catch(e){return new Date("")}}(t,s,r,n),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),d&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var h=s.length,f=1;f<=h;f+=1){i[1]=s[f-1];var m=n.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}f===h&&(this.$d=new Date(""))}else o.call(this,e)}}}()},68313(e){e.exports=function(){"use strict";var e="day";return function(t,n,r){var o=function(t){return t.add(4-t.isoWeekday(),e)},i=n.prototype;i.isoWeekYear=function(){return o(this).year()},i.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,i,a,s=o(this),l=(n=this.isoWeekYear(),a=4-(i=(this.$u?r.utc:r)().year(n).startOf("year")).isoWeekday(),i.isoWeekday()>4&&(a+=7),i.add(a,e));return s.diff(l,"week")+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return"isoweek"===n.p(e)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}}}()},21840(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),s=o(a[t]),l=o(a[n]),c=s||l.map(function(e){return e.slice(0,r)});if(!i)return c;var d=a.weekStart;return c.map(function(e,t){return c[(t+(d||0))%7]})},a=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},15750(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var o=n.prototype,i=o.format;r.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,o){var i=o&&o.toUpperCase();return r||n[o]||e[o]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})}(t,void 0===n?{}:n);return i.call(this,r)}}}()},41816(e){e.exports=function(){"use strict";var e="month",t="quarter";return function(n,r){var o=r.prototype;o.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var i=o.add;o.add=function(n,r){return n=Number(n),this.$utils().p(r)===t?this.add(3*n,e):i.bind(this)(n,r)};var a=o.startOf;o.startOf=function(n,r){var o=this.$utils(),i=!!o.u(r)||r;if(o.p(n)===t){var s=this.quarter()-1;return i?this.month(3*s).startOf(e).startOf("day"):this.month(3*s+2).endOf(e).endOf("day")}return a.bind(this)(n,r)}}}()},6279(e){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var r=t.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,n,o){return r.fromToBase(e,t,n,o)}n.en.relativeTime=o,r.fromToBase=function(t,r,i,a,s){for(var l,c,d,u=i.$locale().relativeTime||o,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=h.length,f=0;f0,g<=m.r||!m.r){g<=1&&f>0&&(m=h[f-1]);var b=u[m.l];s&&(g=s(""+g)),c="string"==typeof b?b.replace("%d",g):b(g,r,m.l,d);break}}if(r)return c;var v=d?u.future:u.past;return"function"==typeof v?v(c):v.replace("%s",c)},r.to=function(e,t){return i(e,t,this,!0)},r.from=function(e,t){return i(e,t,this)};var a=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(a(this),e)},r.fromNow=function(e){return this.from(a(this),e)}}}()},8134(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var s=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?o(this).startOf("week").week():Math.ceil(l)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},28623(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},46986(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(nu,Fu:()=>p,TM:()=>k,sC:()=>O,yJ:()=>h,zR:()=>x});var r=n(58168),o=n(34307),i=n(78783),a=n(11561);function s(e){return"/"===e.charAt(0)?e:"/"+e}function l(e){return"/"===e.charAt(0)?e.substr(1):e}function c(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function u(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function h(e,t,n,i){var a;"string"==typeof e?(a=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),a.state=t):(void 0===(a=(0,r.A)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),i?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=(0,o.A)(a.pathname,i.pathname)):a.pathname=i.pathname:a.pathname||(a.pathname="/"),a}function p(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,i.A)(e.state,t.state)}function f(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,o):n.push(o),p({action:r,location:o,index:t,entries:n})}})},replace:function(e,t){var r="REPLACE",o=h(e,t,m(),x.location);d.confirmTransitionTo(o,r,n,function(e){e&&(x.entries[x.index]=o,p({action:r,location:o}))})},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=x.index+e;return t>=0&&t1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++rd))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f-1&&e%1==0&&e-1}},31175(e,t,n){var r=n(26025);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},63040(e,t,n){var r=n(21549),o=n(80079),i=n(68223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},17670(e,t,n){var r=n(12651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},90289(e,t,n){var r=n(12651);e.exports=function(e){return r(this,e).get(e)}},4509(e,t,n){var r=n(12651);e.exports=function(e){return r(this,e).has(e)}},72949(e,t,n){var r=n(12651);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},20317(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},67197(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},62224(e,t,n){var r=n(50104);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},81042(e,t,n){var r=n(56110)(Object,"create");e.exports=r},3650(e,t,n){var r=n(74335)(Object.keys,Object);e.exports=r},90181(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},86009(e,t,n){e=n.nmd(e);var r=n(34840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},59350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},74335(e){e.exports=function(e,t){return function(n){return e(t(n))}}},56757(e,t,n){var r=n(91033),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},51420(e,t,n){var r=n(80079);e.exports=function(){this.__data__=new r,this.size=0}},90938(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},63605(e){e.exports=function(e){return this.__data__.get(e)}},29817(e){e.exports=function(e){return this.__data__.has(e)}},80945(e,t,n){var r=n(80079),o=n(68223),i=n(53661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},61802(e,t,n){var r=n(62224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},77797(e,t,n){var r=n(44394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},47473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},31800(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},88055(e,t,n){var r=n(9999);e.exports=function(e){return r(e,5)}},37334(e){e.exports=function(e){return function(){return e}}},38221(e,t,n){var r=n(23805),o=n(10124),i=n(99374),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,d,u,h,p,f=0,m=!1,g=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,r=c;return l=c=void 0,f=t,u=e.apply(r,n)}function y(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-f>=d}function x(){var e=o();if(y(e))return w(e);h=setTimeout(x,function(e){var n=t-(e-p);return g?s(n,d-(e-f)):n}(e))}function w(e){return h=void 0,b&&l?v(e):(l=c=void 0,u)}function A(){var e=o(),n=y(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return function(e){return f=e,h=setTimeout(x,t),m?v(e):u}(p);if(g)return clearTimeout(h),h=setTimeout(x,t),v(p)}return void 0===h&&(h=setTimeout(x,t)),u}return t=i(t)||0,r(n)&&(m=!!n.leading,d=(g="maxWait"in n)?a(i(n.maxWait)||0,t):d,b="trailing"in n?!!n.trailing:b),A.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=c=h=void 0},A.flush=function(){return void 0===h?u:w(o())},A}},76135(e,t,n){e.exports=n(39754)},75288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},39754(e,t,n){var r=n(83729),o=n(80909),i=n(24066),a=n(56449);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},33215(e,t,n){var r=n(30641),o=n(24066);e.exports=function(e,t){return e&&r(e,o(t))}},58156(e,t,n){var r=n(47422);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},80631(e,t,n){var r=n(28077),o=n(49326);e.exports=function(e,t){return null!=e&&o(e,t,r)}},83488(e){e.exports=function(e){return e}},72428(e,t,n){var r=n(27534),o=n(40346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},56449(e){var t=Array.isArray;e.exports=t},64894(e,t,n){var r=n(1882),o=n(30294);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},83693(e,t,n){var r=n(64894),o=n(40346);e.exports=function(e){return o(e)&&r(e)}},3656(e,t,n){e=n.nmd(e);var r=n(9325),o=n(89935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},1882(e,t,n){var r=n(72552),o=n(23805);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},30294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},87730(e,t,n){var r=n(29172),o=n(27301),i=n(86009),a=i&&i.isMap,s=a?o(a):r;e.exports=s},23805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},40346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},11331(e,t,n){var r=n(72552),o=n(28879),i=n(40346),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,d=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}},38440(e,t,n){var r=n(16038),o=n(27301),i=n(86009),a=i&&i.isSet,s=a?o(a):r;e.exports=s},85015(e,t,n){var r=n(72552),o=n(56449),i=n(40346);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},44394(e,t,n){var r=n(72552),o=n(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},37167(e,t,n){var r=n(4901),o=n(27301),i=n(86009),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},95950(e,t,n){var r=n(70695),o=n(88984),i=n(64894);e.exports=function(e){return i(e)?r(e):o(e)}},37241(e,t,n){var r=n(70695),o=n(72903),i=n(64894);e.exports=function(e){return i(e)?r(e,!0):o(e)}},55378(e,t,n){var r=n(34932),o=n(15389),i=n(5128),a=n(56449);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},50104(e,t,n){var r=n(53661);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},55364(e,t,n){var r=n(85250),o=n(20999)(function(e,t,n){r(e,t,n)});e.exports=o},10124(e,t,n){var r=n(9325);e.exports=function(){return r.Date.now()}},50583(e,t,n){var r=n(47237),o=n(17255),i=n(28586),a=n(77797);e.exports=function(e){return i(e)?r(a(e)):o(e)}},63345(e){e.exports=function(){return[]}},89935(e){e.exports=function(){return!1}},7350(e,t,n){var r=n(38221),o=n(23805);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},99374(e,t,n){var r=n(54128),o=n(23805),i=n(44394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},69884(e,t,n){var r=n(21791),o=n(37241);e.exports=function(e){return r(e,o(e))}},13222(e,t,n){var r=n(77556);e.exports=function(e){return null==e?"":r(e)}},19133(e,t,n){"use strict";n.r(t)},2694(e,t,n){"use strict";var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},86663(e,t,n){"use strict";const r=n(24280),o=n(30454),i=n(528),a=n(73055);function s(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function c(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function u(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){const t=(e=u(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function p(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function f(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&c(n,e).includes(e.arrayFormatSeparator);n=i?c(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map(t=>c(t,e)):null===n?n:c(n,e);r[t]=a};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator"].includes(t.arrayFormat)?a:c(a,t),n(c(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=p(n[e],t);else r[e]=p(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e},Object.create(null))}t.extract=h,t.parse=f,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[",o,"]"].join("")]:[...n,[l(t,e),"[",l(o,e),"]=",l(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[l(t,e),"=",l(r,e)].join("")]:[[n,l(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,l(t,e)]:[...n,[l(t,e),"=",l(r,e)].join("")]}}(t),o={};for(const t of Object.keys(e))n(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map(n=>{const o=e[n];return void 0===o?"":null===o?l(n,t):Array.isArray(o)?o.reduce(r(n),[]).join("&"):l(n,t)+"="+l(o,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:f(h(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:c(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=u(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let s=t.stringify(a,n);s&&(s=`?${s}`);let c=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(c=`#${l(e.fragmentIdentifier,n)}`),`${r}${s}${c}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0},r);const{url:o,query:i,fragmentIdentifier:s}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:a(i,n),fragmentIdentifier:s},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},25172(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},43693(e,t,n){var r=n(77736);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},24994(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},12897(e,t,n){var r=n(43693);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t3?(o=f===r)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=e<2&&pr||r>f)&&(i[4]=e,i[5]=r,h.n=f,a=0))}if(o||e>1)return c;throw u=!0,r}return function(o,d,f){if(l>1)throw TypeError("Generator is already running");for(u&&1===d&&p(d,f),a=d,s=f;(n=a<2?t:s)||!u;){i||(a?a<3?(a>1&&(h.n=-1),p(a,s)):h.n=s:h.v=s);try{if(l=2,i){if(a||(o="next"),n=i[o]){if(!(n=n.call(i,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((n=(u=h.n<0)?s:e.call(r,h))!==c)break}catch(e){i=t,a=1,s=e}finally{l=1}}return{value:n,done:u}}}(e,i,a),!0),l}var c={};function d(){}function u(){}function h(){}n=Object.getPrototypeOf;var p=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),f=h.prototype=d.prototype=Object.create(p);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,r(e,s,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=h,r(f,"constructor",h),r(h,"constructor",u),u.displayName="GeneratorFunction",r(h,s,"GeneratorFunction"),r(f),r(f,s,"Generator"),r(f,a,function(){return this}),r(f,"toString",function(){return"[object Generator]"}),(e.exports=o=function(){return{w:l,m}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},55869(e,t,n){var r=n(887);e.exports=function(e,t,n,o,i){var a=r(e,t,n,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},887(e,t,n){var r=n(16993),o=n(11791);e.exports=function(e,t,n,i,a){return new o(r().w(e,t,n,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},11791(e,t,n){var r=n(25172),o=n(75546);e.exports=function e(t,n){function i(e,o,a,s){try{var l=t[e](o),c=l.value;return c instanceof r?n.resolve(c.v).then(function(e){i("next",e,a,s)},function(e){i("throw",e,a,s)}):n.resolve(c).then(function(e){l.value=e,a(l)},function(e){return i("throw",e,a,s)})}catch(e){s(e)}}var a;this.next||(o(e.prototype),o(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(e,t,r){function o(){return new n(function(t,n){i(e,r,t,n)})}return a=a?a.then(o,o):o()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},75546(e){function t(n,r,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}e.exports=t=function(e,n,r,o){function i(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4373(e){e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},4633(e,t,n){var r=n(25172),o=n(16993),i=n(55869),a=n(887),s=n(11791),l=n(4373),c=n(30579);function d(){"use strict";var t=o(),n=t.m(d),u=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function h(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===u||"GeneratorFunction"===(t.displayName||t.name))}var p={throw:1,return:2,break:3,continue:3};function f(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,p[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,c(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=d=function(){return{wrap:function(e,n,r,o){return t.w(f(e),n,r,o&&o.reverse())},isGeneratorFunction:h,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,o){return(h(t)?a:i)(f(e),t,n,r,o)},keys:l,values:c}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=d,e.exports.__esModule=!0,e.exports.default=e.exports},30579(e,t,n){var r=n(73738).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},89045(e,t,n){var r=n(73738).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},77736(e,t,n){var r=n(73738).default,o=n(89045);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},73738(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},54756(e,t,n){var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},46942(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr})},96369(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},9417(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},10467(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,l,"next",e)}function l(e){r(a,o,i,s,l,"throw",e)}s(void 0)})}}n.d(t,{A:()=>o})},23029(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(20816);function o(e,t){for(var n=0;no});var r=n(27800);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,r.A)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}},49640(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(53954),o=n(52176),i=n(82284),a=n(9417);function s(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var s=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==(0,i.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.A)(e)}(this,n)}}},64467(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(20816);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})},53954(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},77387(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},52176(e,t,n){"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},73893(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},76562(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},20454(e,t,n){"use strict";function r(e){if(null==e)throw new TypeError("Cannot destructure "+e)}n.d(t,{A:()=>r})},89379(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(64467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;to});var r=n(98587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;or})},55041(e,t,n){"use strict";function r(e,t){this.v=e,this.k=t}function o(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}o=function(e,t,n,r){function a(t,n){o(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},o(e,t,n,r)}function i(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function s(n,r,i,a){var s=r&&r.prototype instanceof c?r:c,d=Object.create(s.prototype);return o(d,"_invoke",function(n,r,o){var i,a,s,c=0,d=o||[],u=!1,h={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,a=0,s=e,h.n=n,l}};function p(n,r){for(a=n,s=r,t=0;!u&&c&&!o&&t3?(o=f===r)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&pr||r>f)&&(i[4]=n,i[5]=r,h.n=f,a=0))}if(o||n>1)return l;throw u=!0,r}return function(o,d,f){if(c>1)throw TypeError("Generator is already running");for(u&&1===d&&p(d,f),a=d,s=f;(t=a<2?e:s)||!u;){i||(a?a<3?(a>1&&(h.n=-1),p(a,s)):h.n=s:h.v=s);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(u=h.n<0)?s:n.call(r,h))!==l)break}catch(t){i=e,a=1,s=t}finally{c=1}}return{value:t,done:u}}}(n,i,a),!0),d}var l={};function c(){}function d(){}function u(){}t=Object.getPrototypeOf;var h=[][r]?t(t([][r]())):(o(t={},r,function(){return this}),t),p=u.prototype=c.prototype=Object.create(h);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,o(e,a,"GeneratorFunction")),e.prototype=Object.create(p),e}return d.prototype=u,o(p,"constructor",u),o(u,"constructor",d),d.displayName="GeneratorFunction",o(u,a,"GeneratorFunction"),o(p),o(p,a,"Generator"),o(p,r,function(){return this}),o(p,"toString",function(){return"[object Generator]"}),(i=function(){return{w:s,m:f}})()}function a(e,t){function n(o,i,a,s){try{var l=e[o](i),c=l.value;return c instanceof r?t.resolve(c.v).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(c).then(function(e){l.value=e,a(l)},function(e){return n("throw",e,a,s)})}catch(e){s(e)}}var i;this.next||(o(a.prototype),o(a.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(e,r,o){function a(){return new t(function(t,r){n(e,o,t,r)})}return i=i?i.then(a,a):a()},!0)}function s(e,t,n,r,o){return new a(i().w(e,t,n,r),o||Promise)}function l(e,t,n,r,o){var i=s(e,t,n,r,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function c(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}n.d(t,{A:()=>h});var d=n(82284);function u(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError((0,d.A)(e)+" is not iterable")}function h(){var e=i(),t=e.m(h),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function o(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var d={throw:1,return:2,break:3,continue:3};function p(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,d[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,u(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(h=function(){return{wrap:function(t,n,r,o){return e.w(p(t),n,r,o&&o.reverse())},isGeneratorFunction:o,mark:e.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:a,async:function(e,t,n,r,i){return(o(t)?s:l)(p(e),t,n,r,i)},keys:c,values:u}})()}},63662(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},5544(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(96369);var o=n(27800),i=n(76562);function a(e,t){return(0,r.A)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||(0,o.A)(e,t)||(0,i.A)()}},87695(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(96369),o=n(73893),i=n(27800),a=n(76562);function s(e){return(0,r.A)(e)||(0,o.A)(e)||(0,i.A)(e)||(0,a.A)()}},60436(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(43145);var o=n(73893),i=n(27800);function a(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,o.A)(e)||(0,i.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},20816(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},27800(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},73437(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(53954),o=n(63662);var i=n(52176);function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if((0,i.A)())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&(0,o.A)(a,n.prototype),a}(e,arguments,(0,r.A)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,o.A)(n,e)},a(e)}},34164(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;to});const o=function(){for(var e,t,n=0,o="",i=arguments.length;nl});const r=e=>"object"==typeof e&&null!=e&&1===e.nodeType,o=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,i=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightit||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0,s=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},l=(e,t)=>{var n,o,l,c;if("undefined"==typeof document)return[];const{scrollMode:d,block:u,inline:h,boundary:p,skipOverflowHiddenElements:f}=t,m="function"==typeof p?p:e=>e!==p;if(!r(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,b=[];let v=e;for(;r(v)&&m(v);){if(v=s(v),v===g){b.push(v);break}null!=v&&v===document.body&&i(v)&&!i(document.documentElement)||null!=v&&i(v,f)&&b.push(v)}const y=null!=(o=null==(n=window.visualViewport)?void 0:n.width)?o:innerWidth,x=null!=(c=null==(l=window.visualViewport)?void 0:l.height)?c:innerHeight,{scrollX:w,scrollY:A}=window,{height:S,width:C,top:$,right:k,bottom:E,left:O}=e.getBoundingClientRect(),{top:P,right:j,bottom:I,left:M}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let T="start"===u||"nearest"===u?$-P:"end"===u?E+I:$+S/2-P+I,_="center"===h?O+C/2-M+j:"end"===h?k+j:O-M;const R=[];for(let e=0;e=0&&O>=0&&E<=x&&k<=y&&(t===g&&!i(t)||$>=o&&E<=l&&O>=c&&k<=s))return R;const p=getComputedStyle(t),f=parseInt(p.borderLeftWidth,10),m=parseInt(p.borderTopWidth,10),v=parseInt(p.borderRightWidth,10),P=parseInt(p.borderBottomWidth,10);let j=0,I=0;const M="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-v:0,B="offsetHeight"in t?t.offsetHeight-t.clientHeight-m-P:0,F="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,D="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(g===t)j="start"===u?T:"end"===u?T-x:"nearest"===u?a(A,A+x,x,m,P,A+T,A+T+S,S):T-x/2,I="start"===h?_:"center"===h?_-y/2:"end"===h?_-y:a(w,w+y,y,f,v,w+_,w+_+C,C),j=Math.max(0,j+A),I=Math.max(0,I+w);else{j="start"===u?T-o-m:"end"===u?T-l+P+B:"nearest"===u?a(o,l,n,m,P+B,T,T+S,S):T-(o+n/2)+B/2,I="start"===h?_-c-f:"center"===h?_-(c+r/2)+M/2:"end"===h?_-s+v+M:a(c,s,r,f,v+M,_,_+C,C);const{scrollLeft:e,scrollTop:i}=t;j=0===D?0:Math.max(0,Math.min(i+j/D,t.scrollHeight-n/D+B)),I=0===F?0:Math.max(0,Math.min(e+I/F,t.scrollWidth-r/F+M)),T+=i-j,_+=e-I}R.push({el:t,top:j,left:I})}return R}},38460(e,t,n){"use strict";n.d(t,{j:()=>i});var r=Object.prototype.hasOwnProperty;function o(e,t,n){for(n of e.keys())if(i(n,t))return n}function i(e,t){var n,a,s;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((a=e.length)===t.length)for(;a--&&i(e[a],t[a]););return-1===a}if(n===Set){if(e.size!==t.size)return!1;for(a of e){if((s=a)&&"object"==typeof s&&!(s=o(t,s)))return!1;if(!t.has(s))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(a of e){if((s=a[0])&&"object"==typeof s&&!(s=o(t,s)))return!1;if(!i(a[1],t.get(s)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((a=e.byteLength)===t.byteLength)for(;a--&&e.getInt8(a)===t.getInt8(a););return-1===a}if(ArrayBuffer.isView(e)){if((a=e.byteLength)===t.byteLength)for(;a--&&e[a]===t[a];);return-1===a}if(!n||"object"==typeof e){for(n in a=0,e){if(r.call(e,n)&&++a&&!r.call(t,n))return!1;if(!(n in t)||!i(e[n],t[n]))return!1}return Object.keys(t).length===a}}return e!=e&&t!=t}},64348(e,t,n){"use strict";n.d(t,{j:()=>o});var r=Object.prototype.hasOwnProperty;function o(e,t){var n,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((i=e.length)===t.length)for(;i--&&o(e[i],t[i]););return-1===i}if(!n||"object"==typeof e){for(n in i=0,e){if(r.call(e,n)&&++i&&!r.call(t,n))return!1;if(!(n in t)||!o(e[n],t[n]))return!1}return Object.keys(t).length===i}}return e!=e&&t!=t}},36226(e,t,n){"use strict";function r(e){let t=!1;return{promise:new Promise((n,r)=>{e.then(e=>!t&&n(e)).catch(e=>!t&&r(e))}),cancel(){t=!0}}}n.d(t,{A:()=>r})},81605(e,t,n){"use strict";n.d(t,{Ay:()=>o});const r=["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onBlur","onInput","onInvalid","onReset","onSubmit","onLoad","onError","onKeyDown","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd","onChange","onToggle"];function o(e,t){const n={};for(const o of r){const r=e[o];r&&(n[o]=t?e=>r(e,t(o)):r)}return n}},55446(e,t,n){"use strict";function r(){for(var e=[],t=0;tr})},91100(e,t,n){"use strict";n.d(t,{D6:()=>ur,EA:()=>Bn,Tm:()=>fr,YE:()=>hr,dU:()=>io,ng:()=>f,rE:()=>wr});const r=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type),o=[.001,0,0,.001,0,0],i=1.35,a=1,s=2,l=4,c=16,d=32,u=64,h=128,p=256,f={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},m="pdfjs_internal_editor_",g={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},b={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_THICKNESS:32,HIGHLIGHT_FREE:33,HIGHLIGHT_SHOW_ALL:34,DRAW_STEP:41},v=0,y=1,x=2,w=3,A=3,S=4,C={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},$={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},k=1,E=2,O=3,P=4,j=5,I={ERRORS:0,WARNINGS:1,INFOS:5},M={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,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},T=0,_=1,R=2,B=3;let F=I.WARNINGS;function D(e){Number.isInteger(e)&&(F=e)}function z(){return F}function N(e){}function L(e){throw new Error(e)}function H(e,t){e||L(t)}function W(e,t=null,n=null){if(!e)return null;if(n&&"string"==typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t?.length>=2&&(e=`http://${e}`)}if(n.tryConvertEncoding)try{e=decodeURIComponent(escape(e))}catch{}}const r=t?URL.parse(e,t):URL.parse(e);return function(e){switch(e?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r)?r:null}function U(e,t,n=!1){const r=URL.parse(e);return r?(r.hash=t,r.href):n&&W(e,"http://example.com")?e.split("#",1)[0]+""+(t?`#${t}`:""):""}function V(e,t,n,r=!1){return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!0,writable:!1}),n}const G=function(){function e(e,t){this.message=e,this.name=t}return e.prototype=new Error,e.constructor=e,e}();class q extends G{constructor(e,t){super(e,"PasswordException"),this.code=t}}class X extends G{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}}class K extends G{constructor(e){super(e,"InvalidPDFException")}}class Y extends G{constructor(e,t,n){super(e,"ResponseException"),this.status=t,this.missing=n}}class Q extends G{constructor(e){super(e,"FormatError")}}class J extends G{constructor(e){super(e,"AbortException")}}function Z(e){"object"==typeof e&&void 0!==e?.length||L("Invalid argument for bytesToString");const t=e.length,n=8192;if(te.toString(16).padStart(2,"0"));class re{static makeHexColor(e,t,n){return`#${ne[e]}${ne[t]}${ne[n]}`}static domMatrixToTransform(e){return[e.a,e.b,e.c,e.d,e.e,e.f]}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[2],t[2]=n),t[0]*=e[0],t[2]*=e[0],e[3]<0&&(n=t[1],t[1]=t[3],t[3]=n),t[1]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[1],t[1]=n,n=t[2],t[2]=t[3],t[3]=n,e[1]<0&&(n=t[1],t[1]=t[3],t[3]=n),t[1]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[2],t[2]=n),t[0]*=e[2],t[2]*=e[2]),t[0]+=e[4],t[1]+=e[5],t[2]+=e[4],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static multiplyByDOMMatrix(e,t){return[e[0]*t.a+e[2]*t.b,e[1]*t.a+e[3]*t.b,e[0]*t.c+e[2]*t.d,e[1]*t.c+e[3]*t.d,e[0]*t.e+e[2]*t.f+e[4],e[1]*t.e+e[3]*t.f+e[5]]}static applyTransform(e,t,n=0){const r=e[n],o=e[n+1];e[n]=r*t[0]+o*t[2]+t[4],e[n+1]=r*t[1]+o*t[3]+t[5]}static applyTransformToBezier(e,t,n=0){const r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],l=t[5];for(let t=0;t<6;t+=2){const c=e[n+t],d=e[n+t+1];e[n+t]=c*r+d*i+s,e[n+t+1]=c*o+d*a+l}}static applyInverseTransform(e,t){const n=e[0],r=e[1],o=t[0]*t[3]-t[1]*t[2];e[0]=(n*t[3]-r*t[2]+t[2]*t[5]-t[4]*t[3])/o,e[1]=(-n*t[1]+r*t[0]+t[4]*t[1]-t[5]*t[0])/o}static axialAlignedBoundingBox(e,t,n){const r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],l=t[5],c=e[0],d=e[1],u=e[2],h=e[3];let p=r*c+s,f=p,m=r*u+s,g=m,b=a*d+l,v=b,y=a*h+l,x=y;if(0!==o||0!==i){const e=o*c,t=o*u,n=i*d,r=i*h;p+=n,g+=n,m+=r,f+=r,b+=e,x+=e,y+=t,v+=t}n[0]=Math.min(n[0],p,m,f,g),n[1]=Math.min(n[1],b,y,v,x),n[2]=Math.max(n[2],p,m,f,g),n[3]=Math.max(n[3],b,y,v,x)}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e,t){const n=e[0],r=e[1],o=e[2],i=e[3],a=n**2+r**2,s=n*o+r*i,l=o**2+i**2,c=(a+l)/2,d=Math.sqrt(c**2-(a*l-s**2));t[0]=Math.sqrt(c+d||1),t[1]=Math.sqrt(c-d||1)}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>r)return null;const o=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),i=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return o>i?null:[n,o,r,i]}static pointBoundingBox(e,t,n){n[0]=Math.min(n[0],e),n[1]=Math.min(n[1],t),n[2]=Math.max(n[2],e),n[3]=Math.max(n[3],t)}static rectBoundingBox(e,t,n,r,o){o[0]=Math.min(o[0],e,n),o[1]=Math.min(o[1],t,r),o[2]=Math.max(o[2],e,n),o[3]=Math.max(o[3],t,r)}static#e(e,t,n,r,o,i,a,s,l,c){if(l<=0||l>=1)return;const d=1-l,u=l*l,h=u*l,p=d*(d*(d*e+3*l*t)+3*u*n)+h*r,f=d*(d*(d*o+3*l*i)+3*u*a)+h*s;c[0]=Math.min(c[0],p),c[1]=Math.min(c[1],f),c[2]=Math.max(c[2],p),c[3]=Math.max(c[3],f)}static#t(e,t,n,r,o,i,a,s,l,c,d,u){if(Math.abs(l)<1e-12)return void(Math.abs(c)>=1e-12&&this.#e(e,t,n,r,o,i,a,s,-d/c,u));const h=c**2-4*d*l;if(h<0)return;const p=Math.sqrt(h),f=2*l;this.#e(e,t,n,r,o,i,a,s,(-c+p)/f,u),this.#e(e,t,n,r,o,i,a,s,(-c-p)/f,u)}static bezierBoundingBox(e,t,n,r,o,i,a,s,l){l[0]=Math.min(l[0],e,a),l[1]=Math.min(l[1],t,s),l[2]=Math.max(l[2],e,a),l[3]=Math.max(l[3],t,s),this.#t(e,n,o,a,t,r,i,s,3*(3*(n-o)-e+a),6*(e-2*n+o),3*(n-e),l),this.#t(e,n,o,a,t,r,i,s,3*(3*(r-i)-t+s),6*(t-2*r+i),3*(r-t),l)}}let oe=null,ie=null;function ae(){if("function"==typeof crypto.randomUUID)return crypto.randomUUID();const e=new Uint8Array(32);return crypto.getRandomValues(e),Z(e)}const se="pdfjs_internal_id_";function le(e,t,n){return Math.min(Math.max(e,t),n)}function ce(e){return Uint8Array.prototype.toBase64?e.toBase64():btoa(Z(e))}"function"!=typeof Promise.try&&(Promise.try=function(e,...t){return new Promise(n=>{n(e(...t))})}),"function"!=typeof Math.sumPrecise&&(Math.sumPrecise=function(e){return e.reduce((e,t)=>e+t,0)});class de{static textContent(e){const t=[],n={items:t,styles:Object.create(null)};return function e(n){if(!n)return;let r=null;const o=n.name;if("#text"===o)r=n.value;else{if(!de.shouldBuildText(o))return;n?.attributes?.textContent?r=n.attributes.textContent:n.value&&(r=n.value)}if(null!==r&&t.push({str:r}),n.children)for(const t of n.children)e(t)}(e),n}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}class ue{static setupStorage(e,t,n,r,o){const i=r.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==i.value&&(e.textContent=i.value),"print"===o)break;e.addEventListener("input",e=>{r.setValue(t,{value:e.target.value})});break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(i.value===n.attributes.xfaOn?e.setAttribute("checked",!0):i.value===n.attributes.xfaOff&&e.removeAttribute("checked"),"print"===o)break;e.addEventListener("change",e=>{r.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})})}else{if(null!==i.value&&e.setAttribute("value",i.value),"print"===o)break;e.addEventListener("input",e=>{r.setValue(t,{value:e.target.value})})}break;case"select":if(null!==i.value){e.setAttribute("value",i.value);for(const e of n.children)e.attributes.value===i.value?e.attributes.selected=!0:e.attributes.hasOwnProperty("selected")&&delete e.attributes.selected}e.addEventListener("input",e=>{const n=e.target.options,o=-1===n.selectedIndex?"":n[n.selectedIndex].value;r.setValue(t,{value:o})})}}static setAttributes({html:e,element:t,storage:n=null,intent:r,linkService:o}){const{attributes:i}=t,a=e instanceof HTMLAnchorElement;"radio"===i.type&&(i.name=`${i.name}-${r}`);for(const[t,n]of Object.entries(i))if(null!=n)switch(t){case"class":n.length&&e.setAttribute(t,n.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",n);break;case"style":Object.assign(e.style,n);break;case"textContent":e.textContent=n;break;default:(!a||"href"!==t&&"newWindow"!==t)&&e.setAttribute(t,n)}a&&o.addLinkAttributes(e,i.href,i.newWindow),n&&i.dataId&&this.setupStorage(e,i.dataId,t,n)}static render(e){const t=e.annotationStorage,n=e.linkService,r=e.xfaHtml,o=e.intent||"display",i=document.createElement(r.name);r.attributes&&this.setAttributes({html:i,element:r,intent:o,linkService:n});const a="richText"!==o,s=e.div;if(s.append(i),e.viewport){const t=`matrix(${e.viewport.transform.join(",")})`;s.style.transform=t}a&&s.setAttribute("class","xfaLayer xfaFont");const l=[];if(0===r.children.length){if(r.value){const e=document.createTextNode(r.value);i.append(e),a&&de.shouldBuildText(r.name)&&l.push(e)}return{textDivs:l}}const c=[[r,-1,i]];for(;c.length>0;){const[e,r,i]=c.at(-1);if(r+1===e.children.length){c.pop();continue}const s=e.children[++c.at(-1)[1]];if(null===s)continue;const{name:d}=s;if("#text"===d){const e=document.createTextNode(s.value);l.push(e),i.append(e);continue}const u=s?.attributes?.xmlns?document.createElementNS(s.attributes.xmlns,d):document.createElement(d);if(i.append(u),s.attributes&&this.setAttributes({html:u,element:s,storage:t,intent:o,linkService:n}),s.children?.length>0)c.push([s,-1,u]);else if(s.value){const e=document.createTextNode(s.value);a&&de.shouldBuildText(d)&&l.push(e),u.append(e)}}for(const e of s.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))e.setAttribute("readOnly",!0);return{textDivs:l}}static update(e){const t=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=t,e.div.hidden=!1}}const he="http://www.w3.org/2000/svg";class pe{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}async function fe(e,t="text"){if(xe(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);switch(t){case"arraybuffer":return n.arrayBuffer();case"blob":return n.blob();case"json":return n.json()}return n.text()}return new Promise((n,r)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType=t,o.onreadystatechange=()=>{if(o.readyState===XMLHttpRequest.DONE)if(200!==o.status&&0!==o.status)r(new Error(o.statusText));else{switch(t){case"arraybuffer":case"blob":case"json":return void n(o.response)}n(o.responseText)}},o.send(null)})}class me{constructor({viewBox:e,userUnit:t,scale:n,rotation:r,offsetX:o=0,offsetY:i=0,dontFlip:a=!1}){this.viewBox=e,this.userUnit=t,this.scale=n,this.rotation=r,this.offsetX=o,this.offsetY=i,n*=t;const s=(e[2]+e[0])/2,l=(e[3]+e[1])/2;let c,d,u,h,p,f,m,g;switch((r%=360)<0&&(r+=360),r){case 180:c=-1,d=0,u=0,h=1;break;case 90:c=0,d=1,u=1,h=0;break;case 270:c=0,d=-1,u=-1,h=0;break;case 0:c=1,d=0,u=0,h=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(u=-u,h=-h),0===c?(p=Math.abs(l-e[1])*n+o,f=Math.abs(s-e[0])*n+i,m=(e[3]-e[1])*n,g=(e[2]-e[0])*n):(p=Math.abs(s-e[0])*n+o,f=Math.abs(l-e[1])*n+i,m=(e[2]-e[0])*n,g=(e[3]-e[1])*n),this.transform=[c*n,d*n,u*n,h*n,p-c*n*s-u*n*l,f-d*n*s-h*n*l],this.width=m,this.height=g}get rawDims(){const e=this.viewBox;return V(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:r=this.offsetY,dontFlip:o=!1}={}){return new me({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:o})}convertToViewportPoint(e,t){const n=[e,t];return re.applyTransform(n,this.transform),n}convertToViewportRectangle(e){const t=[e[0],e[1]];re.applyTransform(t,this.transform);const n=[e[2],e[3]];return re.applyTransform(n,this.transform),[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){const n=[e,t];return re.applyInverseTransform(n,this.transform),n}}class ge extends G{constructor(e,t=0){super(e,"RenderingCancelledException"),this.extraDelay=t}}function be(e){const t=e.length;let n=0;for(;n=1&&r<=12?r-1:0;let o=parseInt(t[3],10);o=o>=1&&o<=31?o:1;let i=parseInt(t[4],10);i=i>=0&&i<=23?i:0;let a=parseInt(t[5],10);a=a>=0&&a<=59?a:0;let s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;const l=t[7]||"Z";let c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;let d=parseInt(t[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===l?(i+=c,a+=d):"+"===l&&(i-=c,a-=d),new Date(Date.UTC(n,r,o,i,a,s))}}function Ce(e){if(e.startsWith("#")){const t=parseInt(e.slice(1),16);return[(16711680&t)>>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map(e=>parseInt(e)):e.startsWith("rgba(")?e.slice(5,-1).split(",").map(e=>parseInt(e)).slice(0,3):[0,0,0]}function $e(e){const{a:t,b:n,c:r,d:o,e:i,f:a}=e.getTransform();return[t,n,r,o,i,a]}function ke(e){const{a:t,b:n,c:r,d:o,e:i,f:a}=e.getTransform().invertSelf();return[t,n,r,o,i,a]}function Ee(e,t,n=!1,r=!0){if(t instanceof me){const{pageWidth:r,pageHeight:o}=t.rawDims,{style:i}=e,a=te.isCSSRoundSupported,s=`var(--total-scale-factor) * ${r}px`,l=`var(--total-scale-factor) * ${o}px`,c=a?`round(down, ${s}, var(--scale-round-x))`:`calc(${s})`,d=a?`round(down, ${l}, var(--scale-round-y))`:`calc(${l})`;n&&t.rotation%180!=0?(i.width=d,i.height=c):(i.width=c,i.height=d)}r&&e.setAttribute("data-main-rotation",t.rotation)}class Oe{constructor(){const{pixelRatio:e}=Oe;this.sx=e,this.sy=e}get scaled(){return 1!==this.sx||1!==this.sy}get symmetric(){return this.sx===this.sy}limitCanvas(e,t,n,r,o=-1){let i=1/0,a=1/0,s=1/0;(n=Oe.capPixels(n,o))>0&&(i=Math.sqrt(n/(e*t))),-1!==r&&(a=r/e,s=r/t);const l=Math.min(i,a,s);return(this.sx>l||this.sy>l)&&(this.sx=l,this.sy=l,!0)}static get pixelRatio(){return globalThis.devicePixelRatio||1}static capPixels(e,t){if(t>=0){const n=Math.ceil(window.screen.availWidth*window.screen.availHeight*this.pixelRatio**2*(1+t/100));return e>0?Math.min(e,n):n}return e}}const Pe=["image/apng","image/avif","image/bmp","image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/x-icon"];class je{static get isDarkMode(){return V(this,"isDarkMode",!!window?.matchMedia?.("(prefers-color-scheme: dark)").matches)}}function Ie(e,t){const n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(n,r,o),a=Math.min(n,r,o),s=(i+a)/2;if(i===a)t[0]=t[1]=0;else{const e=i-a;switch(t[1]=s<.5?e/(i+a):e/(2-i-a),i){case n:t[0]=60*((r-o)/e+(ro?(r+.05)/(o+.05):(o+.05)/(r+.05)}const Re=new Map;function Be({html:e,dir:t,className:n},r){const o=document.createDocumentFragment();if("string"==typeof e){const n=document.createElement("p");n.dir=t||"auto";const r=e.split(/(?:\r\n?|\n)/);for(let e=0,t=r.length;e{t.delete()},{signal:t._signal}),this.#a.append(n)}get#g(){const e=document.createElement("div");return e.className="divider",e}async addAltText(e){const t=await e.render();this.#m(t),this.#a.append(t,this.#g),this.#s=e}addComment(e,t=null){if(this.#l)return;const n=e.renderForToolbar();if(!n)return;this.#m(n);const r=this.#c=this.#g;t?(this.#a.insertBefore(n,t),this.#a.insertBefore(r,t)):this.#a.append(n,r),this.#l=e,e.toolbar=this}addColorPicker(e){if(this.#o)return;this.#o=e;const t=e.renderButton();this.#m(t),this.#a.append(t,this.#g)}async addEditSignatureButton(e){const t=this.#d=await e.renderEditButton(this.#i);this.#m(t),this.#a.append(t,this.#g)}removeButton(e){if("comment"===e)this.#l?.removeToolbarCommentButton(),this.#l=null,this.#c?.remove(),this.#c=null}async addButton(e,t){switch(e){case"colorPicker":this.addColorPicker(t);break;case"altText":await this.addAltText(t);break;case"editSignature":await this.addEditSignatureButton(t);break;case"delete":this.addDeleteButton();break;case"comment":this.addComment(t)}}async addButtonBefore(e,t,n){const r=this.#a.querySelector(n);r&&"comment"===e&&this.addComment(t,r)}updateEditSignatureButton(e){this.#d&&(this.#d.title=e)}remove(){this.#r.remove(),this.#o?.destroy(),this.#o=null}}class De{#a=null;#r=null;#b;constructor(e){this.#b=e}#v(){const e=this.#r=document.createElement("div");e.className="editToolbar",e.setAttribute("role","toolbar");const t=this.#b._signal;t instanceof AbortSignal&&!t.aborted&&e.addEventListener("contextmenu",we,{signal:t});const n=this.#a=document.createElement("div");return n.className="buttons",e.append(n),this.#b.hasCommentManager()&&this.#y("commentButton","pdfjs-comment-floating-button","pdfjs-comment-floating-button-label",()=>{this.#b.commentSelection("floating_button")}),this.#y("highlightButton","pdfjs-highlight-floating-button1","pdfjs-highlight-floating-button-label",()=>{this.#b.highlightSelection("floating_button")}),e}#x(e,t){let n=0,r=0;for(const o of e){const e=o.y+o.height;if(en?(r=i,n=e):t?i>r&&(r=i):i(e.drawImage(t,0,0,1,1,0,0,1,3),0===new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0])))}async#C(e,t){this.#S||=new Map;let n=this.#S.get(e);if(null===n)return null;if(n?.bitmap)return n.refCounter+=1,n;try{let e;if(n||={bitmap:null,id:`image_${this.#A}_${this.#w++}`,refCounter:0,isSvg:!1},"string"==typeof t?(n.url=t,e=await fe(t,"blob")):t instanceof File?e=n.file=t:t instanceof Blob&&(e=t),"image/svg+xml"===e.type){const t=Le._isSVGFittingCanvas,r=new FileReader,o=new Image,i=new Promise((e,i)=>{o.onload=()=>{n.bitmap=o,n.isSvg=!0,e()},r.onload=async()=>{const e=n.svgUrl=r.result;o.src=await t?`${e}#svgView(preserveAspectRatio(none))`:e},o.onerror=r.onerror=i});r.readAsDataURL(e),await i}else n.bitmap=await createImageBitmap(e);n.refCounter=1}catch(e){n=null}return this.#S.set(e,n),n&&this.#S.set(n.id,n),n}async getFromFile(e){const{lastModified:t,name:n,size:r,type:o}=e;return this.#C(`${t}_${n}_${r}_${o}`,e)}async getFromUrl(e){return this.#C(e,e)}async getFromBlob(e,t){const n=await t;return this.#C(e,n)}async getFromId(e){this.#S||=new Map;const t=this.#S.get(e);if(!t)return null;if(t.bitmap)return t.refCounter+=1,t;if(t.file)return this.getFromFile(t.file);if(t.blobPromise){const{blobPromise:e}=t;return delete t.blobPromise,this.getFromBlob(t.id,e)}return this.getFromUrl(t.url)}getFromCanvas(e,t){this.#S||=new Map;let n=this.#S.get(e);if(n?.bitmap)return n.refCounter+=1,n;const r=new OffscreenCanvas(t.width,t.height);return r.getContext("2d").drawImage(t,0,0),n={bitmap:r.transferToImageBitmap(),id:`image_${this.#A}_${this.#w++}`,refCounter:1,isSvg:!1},this.#S.set(e,n),this.#S.set(n.id,n),n}getSvgUrl(e){const t=this.#S.get(e);return t?.isSvg?t.svgUrl:null}deleteId(e){this.#S||=new Map;const t=this.#S.get(e);if(!t)return;if(t.refCounter-=1,0!==t.refCounter)return;const{bitmap:n}=t;if(!t.url&&!t.file){const e=new OffscreenCanvas(n.width,n.height);e.getContext("bitmaprenderer").transferFromImageBitmap(n),t.blobPromise=e.convertToBlob()}n.close?.(),t.bitmap=null}isValidId(e){return e.startsWith(`image_${this.#A}_`)}}class He{#$=[];#k=!1;#E;#O=-1;constructor(e=128){this.#E=e}add({cmd:e,undo:t,post:n,mustExec:r,type:o=NaN,overwriteIfSameType:i=!1,keepUndo:a=!1}){if(r&&e(),this.#k)return;const s={cmd:e,undo:t,post:n,type:o};if(-1===this.#O)return this.#$.length>0&&(this.#$.length=0),this.#O=0,void this.#$.push(s);if(i&&this.#$[this.#O].type===o)return a&&(s.undo=this.#$[this.#O].undo),void(this.#$[this.#O]=s);const l=this.#O+1;l===this.#E?this.#$.splice(0,1):(this.#O=l,l=0;t--)if(this.#$[t].type!==e)return this.#$.splice(t+1,this.#O-t),void(this.#O=t);this.#$.length=0,this.#O=-1}}destroy(){this.#$=null}}class We{constructor(e){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:t}=te.platform;for(const[n,r,o={}]of e)for(const e of n){const n=e.startsWith("mac+");t&&n?(this.callbacks.set(e.slice(4),{callback:r,options:o}),this.allKeys.add(e.split("+").at(-1))):t||n||(this.callbacks.set(e,{callback:r,options:o}),this.allKeys.add(e.split("+").at(-1)))}}#P(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const t=this.buffer.join("+");return this.buffer.length=0,t}exec(e,t){if(!this.allKeys.has(t.key))return;const n=this.callbacks.get(this.#P(t));if(!n)return;const{callback:r,options:{bubbles:o=!1,args:i=[],checker:a=null}}=n;a&&!a(e,t)||(r.bind(e,...i,t)(),o||Ae(t))}}class Ue{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return function(e){const t=document.createElement("span");t.style.visibility="hidden",t.style.colorScheme="only light",document.body.append(t);for(const n of e.keys()){t.style.color=n;const r=window.getComputedStyle(t).color;e.set(n,Ce(r))}t.remove()}(e),V(this,"_colors",e)}convert(e){const t=Ce(e);if(!window.matchMedia("(forced-colors: active)").matches)return t;for(const[e,n]of this._colors)if(n.every((e,n)=>e===t[n]))return Ue._colorsMapping.get(e);return t}getHexCode(e){const t=this._colors.get(e);return t?re.makeHexColor(...t):e}}class Ve{#j=new AbortController;#I=null;#M=null;#T=new Map;#_=new Map;#R=null;#B=null;#F=null;#D=new He;#z=null;#N=null;#L=null;#H=0;#W=new Set;#U=null;#V=null;#G=new Set;_editorUndoBar=null;#q=!1;#X=!1;#K=!1;#Y=null;#Q=null;#J=null;#Z=null;#ee=!1;#te=null;#ne=new Ne;#re=!1;#oe=!1;#ie=!1;#ae=null;#se=null;#le=null;#ce=null;#de=null;#ue=g.NONE;#he=new Set;#pe=null;#fe=null;#me=null;#ge=null;#be=null;#ve={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#ye=[0,0];#xe=null;#we=null;#Ae=null;#Se=null;#Ce=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const e=Ve.prototype,t=e=>e.#we.contains(document.activeElement)&&"BUTTON"!==document.activeElement.tagName&&e.hasSomethingToControl(),n=(e,{target:t})=>{if(t instanceof HTMLInputElement){const{type:e}=t;return"text"!==e&&"number"!==e}return!0},r=this.TRANSLATE_SMALL,o=this.TRANSLATE_BIG;return V(this,"_keyboardManager",new We([[["ctrl+a","mac+meta+a"],e.selectAll,{checker:n}],[["ctrl+z","mac+meta+z"],e.undo,{checker:n}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo,{checker:n}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete,{checker:n}],[["Enter","mac+Enter"],e.addNewEditorFromKeyboard,{checker:(e,{target:t})=>!(t instanceof HTMLButtonElement)&&e.#we.contains(t)&&!e.isEnterHandled}],[[" ","mac+ "],e.addNewEditorFromKeyboard,{checker:(e,{target:t})=>!(t instanceof HTMLButtonElement)&&e.#we.contains(document.activeElement)}],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-r,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-o,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[r,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[o,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-r],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-o],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,r],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,o],checker:t}]]))}constructor(e,t,n,r,o,i,a,s,l,c,d,u,h,p,f,m){const g=this._signal=this.#j.signal;this.#we=e,this.#Ae=t,this.#Se=n,this.#R=r,this.#z=o,this.#fe=i,this.#be=s,this._eventBus=a,a._on("editingaction",this.onEditingAction.bind(this),{signal:g}),a._on("pagechanging",this.onPageChanging.bind(this),{signal:g}),a._on("scalechanging",this.onScaleChanging.bind(this),{signal:g}),a._on("rotationchanging",this.onRotationChanging.bind(this),{signal:g}),a._on("setpreference",this.onSetPreference.bind(this),{signal:g}),a._on("switchannotationeditorparams",e=>this.updateParams(e.type,e.value),{signal:g}),window.addEventListener("pointerdown",()=>{this.#oe=!0},{capture:!0,signal:g}),window.addEventListener("pointerup",()=>{this.#oe=!1},{capture:!0,signal:g}),this.#$e(),this.#ke(),this.#Ee(),this.#B=s.annotationStorage,this.#Y=s.filterFactory,this.#me=l,this.#Z=c||null,this.#q=d,this.#X=u,this.#K=h,this.#de=p||null,this.viewParameters={realScale:pe.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=f||null,this._supportsPinchToZoom=!1!==m,o?.setSidebarUiManager(this)}destroy(){this.#Ce?.resolve(),this.#Ce=null,this.#j?.abort(),this.#j=null,this._signal=null;for(const e of this.#_.values())e.destroy();this.#_.clear(),this.#T.clear(),this.#G.clear(),this.#ce?.clear(),this.#I=null,this.#he.clear(),this.#D.destroy(),this.#R?.destroy(),this.#z?.destroy(),this.#fe?.destroy(),this.#te?.hide(),this.#te=null,this.#le?.destroy(),this.#le=null,this.#M=null,this.#Q&&(clearTimeout(this.#Q),this.#Q=null),this.#xe&&(clearTimeout(this.#xe),this.#xe=null),this._editorUndoBar?.destroy(),this.#be=null}combinedSignal(e){return AbortSignal.any([this._signal,e.signal])}get mlManager(){return this.#de}get useNewAltTextFlow(){return this.#X}get useNewAltTextWhenAddingImage(){return this.#K}get hcmFilter(){return V(this,"hcmFilter",this.#me?this.#Y.addHCMFilter(this.#me.foreground,this.#me.background):"none")}get direction(){return V(this,"direction",getComputedStyle(this.#we).direction)}get _highlightColors(){return V(this,"_highlightColors",this.#Z?new Map(this.#Z.split(",").map(e=>((e=e.split("=").map(e=>e.trim()))[1]=e[1].toUpperCase(),e))):null)}get highlightColors(){const{_highlightColors:e}=this;if(!e)return V(this,"highlightColors",null);const t=new Map,n=!!this.#me;for(const[r,o]of e){const e=r.endsWith("_HCM");n&&e?t.set(r.replace("_HCM",""),o):n||e||t.set(r,o)}return V(this,"highlightColors",t)}get highlightColorNames(){return V(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,e=>e.reverse())):null)}getNonHCMColor(e){if(!this._highlightColors)return e;const t=this.highlightColorNames.get(e);return this._highlightColors.get(t)||e}getNonHCMColorName(e){return this.highlightColorNames.get(e)||e}setCurrentDrawingSession(e){e?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),this.#L=e}setMainHighlightColorPicker(e){this.#le=e}editAltText(e,t=!1){this.#R?.editAltText(this,e,t)}hasCommentManager(){return!!this.#z}editComment(e,t,n,r){this.#z?.showDialog(this,e,t,n,r)}selectComment(e,t){const n=this.#_.get(e),r=n?.getEditorByUID(t);r?.toggleComment(!0,!0)}updateComment(e){this.#z?.updateComment(e.getData())}updatePopupColor(e){this.#z?.updatePopupColor(e)}removeComment(e){this.#z?.removeComments([e.uid])}toggleComment(e,t,n=void 0){this.#z?.toggleCommentPopup(e,t,n)}makeCommentColor(e,t){return e&&this.#z?.makeCommentColor(e,t)||null}getCommentDialogElement(){return this.#z?.dialogElement||null}async waitForEditorsRendered(e){if(this.#_.has(e-1))return;const{resolve:t,promise:n}=Promise.withResolvers(),r=n=>{n.pageNumber===e&&(this._eventBus._off("editorsrendered",r),t())};this._eventBus.on("editorsrendered",r),await n}getSignature(e){this.#fe?.getSignature({uiManager:this,editor:e})}get signatureManager(){return this.#fe}switchToMode(e,t){this._eventBus.on("annotationeditormodechanged",t,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:e})}setPreference(e,t){this._eventBus.dispatch("setpreference",{source:this,name:e,value:t})}onSetPreference({name:e,value:t}){if("enableNewAltTextWhenAddingImage"===e)this.#K=t}onPageChanging({pageNumber:e}){this.#H=e-1}focusMainContainer(){this.#we.focus()}findParent(e,t){for(const n of this.#_.values()){const{x:r,y:o,width:i,height:a}=n.div.getBoundingClientRect();if(e>=r&&e<=r+i&&t>=o&&t<=o+a)return n}return null}disableUserSelect(e=!1){this.#Ae.classList.toggle("noUserSelect",e)}addShouldRescale(e){this.#G.add(e)}removeShouldRescale(e){this.#G.delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*pe.PDF_TO_CSS_UNITS;for(const e of this.#G)e.onScaleChanging();this.#L?.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}#Oe({anchorNode:e}){return e.nodeType===Node.TEXT_NODE?e.parentElement:e}#Pe(e){const{currentLayer:t}=this;if(t.hasTextLayer(e))return t;for(const t of this.#_.values())if(t.hasTextLayer(e))return t;return null}highlightSelection(e="",t=!1){const n=document.getSelection();if(!n||n.isCollapsed)return;const{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a}=n,s=n.toString(),l=this.#Oe(n).closest(".textLayer"),c=this.getSelectionBoxes(l);if(!c)return;n.empty();const d=this.#Pe(l),u=this.#ue===g.NONE,h=()=>{const n=d?.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:c,anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:a,text:s});u&&this.showAllEditors("highlight",!0,!0),t&&n?.editComment()};u?this.switchToMode(g.HIGHLIGHT,h):h()}commentSelection(e=""){this.highlightSelection(e,!0)}#je(){const e=document.getSelection();if(!e||e.isCollapsed)return;const t=this.#Oe(e).closest(".textLayer"),n=this.getSelectionBoxes(t);n&&(this.#te||=new De(this),this.#te.show(t,n,"ltr"===this.direction))}getAndRemoveDataFromAnnotationStorage(e){if(!this.#B)return null;const t=`${m}${e}`,n=this.#B.getRawValue(t);return n&&this.#B.remove(t),n}addToAnnotationStorage(e){e.isEmpty()||!this.#B||this.#B.has(e.id)||this.#B.setValue(e.id,e)}a11yAlert(e,t=null){const n=this.#Se;n&&(n.setAttribute("data-l10n-id",e),t?n.setAttribute("data-l10n-args",JSON.stringify(t)):n.removeAttribute("data-l10n-args"))}#Ie(){const e=document.getSelection();if(!e||e.isCollapsed)return void(this.#pe&&(this.#te?.hide(),this.#pe=null,this.#Me({hasSelectedText:!1})));const{anchorNode:t}=e;if(t===this.#pe)return;const n=this.#Oe(e).closest(".textLayer");if(n){if(this.#te?.hide(),this.#pe=t,this.#Me({hasSelectedText:!0}),(this.#ue===g.HIGHLIGHT||this.#ue===g.NONE)&&(this.#ue===g.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#ee=this.isShiftKeyDown,!this.isShiftKeyDown)){const e=this.#ue===g.HIGHLIGHT?this.#Pe(n):null;if(e?.toggleDrawing(),this.#oe){const t=new AbortController,n=this.combinedSignal(t),r=n=>{"pointerup"===n.type&&0!==n.button||(t.abort(),e?.toggleDrawing(!0),"pointerup"===n.type&&this.#Te("main_toolbar"))};window.addEventListener("pointerup",r,{signal:n}),window.addEventListener("blur",r,{signal:n})}else e?.toggleDrawing(!0),this.#Te("main_toolbar")}}else this.#pe&&(this.#te?.hide(),this.#pe=null,this.#Me({hasSelectedText:!1}))}#Te(e=""){this.#ue===g.HIGHLIGHT?this.highlightSelection(e):this.#q&&this.#je()}#$e(){document.addEventListener("selectionchange",this.#Ie.bind(this),{signal:this._signal})}#_e(){if(this.#J)return;this.#J=new AbortController;const e=this.combinedSignal(this.#J);window.addEventListener("focus",this.focus.bind(this),{signal:e}),window.addEventListener("blur",this.blur.bind(this),{signal:e})}#Re(){this.#J?.abort(),this.#J=null}blur(){if(this.isShiftKeyDown=!1,this.#ee&&(this.#ee=!1,this.#Te("main_toolbar")),!this.hasSelection)return;const{activeElement:e}=document;for(const t of this.#he)if(t.div.contains(e)){this.#se=[t,e],t._focusEventsAllowed=!1;break}}focus(){if(!this.#se)return;const[e,t]=this.#se;this.#se=null,t.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this._signal}),t.focus()}#Ee(){if(this.#ae)return;this.#ae=new AbortController;const e=this.combinedSignal(this.#ae);window.addEventListener("keydown",this.keydown.bind(this),{signal:e}),window.addEventListener("keyup",this.keyup.bind(this),{signal:e})}#Be(){this.#ae?.abort(),this.#ae=null}#Fe(){if(this.#N)return;this.#N=new AbortController;const e=this.combinedSignal(this.#N);document.addEventListener("copy",this.copy.bind(this),{signal:e}),document.addEventListener("cut",this.cut.bind(this),{signal:e}),document.addEventListener("paste",this.paste.bind(this),{signal:e})}#De(){this.#N?.abort(),this.#N=null}#ke(){const e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})}addEditListeners(){this.#Ee(),this.#Fe()}removeEditListeners(){this.#Be(),this.#De()}dragOver(e){for(const{type:t}of e.dataTransfer.items)for(const n of this.#V)if(n.isHandlingMimeForPasting(t))return e.dataTransfer.dropEffect="copy",void e.preventDefault()}drop(e){for(const t of e.dataTransfer.items)for(const n of this.#V)if(n.isHandlingMimeForPasting(t.type))return n.paste(t,this.currentLayer),void e.preventDefault()}copy(e){if(e.preventDefault(),this.#I?.commitOrRemove(),!this.hasSelection)return;const t=[];for(const e of this.#he){const n=e.serialize(!0);n&&t.push(n)}0!==t.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(t))}cut(e){this.copy(e),this.delete()}async paste(e){e.preventDefault();const{clipboardData:t}=e;for(const e of t.items)for(const t of this.#V)if(t.isHandlingMimeForPasting(e.type))return void t.paste(e,this.currentLayer);let n=t.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(e){return void e.message}if(!Array.isArray(n))return;this.unselectAll();const r=this.currentLayer;try{const e=[];for(const t of n){const n=await r.deserialize(t);if(!n)return;e.push(n)}const t=()=>{for(const t of e)this.#ze(t);this.#Ne(e)},o=()=>{for(const t of e)t.remove()};this.addCommands({cmd:t,undo:o,mustExec:!0})}catch(e){e.message}}keydown(e){this.isShiftKeyDown||"Shift"!==e.key||(this.isShiftKeyDown=!0),this.#ue===g.NONE||this.isEditorHandlingKeyboard||Ve._keyboardManager.exec(this,e)}keyup(e){this.isShiftKeyDown&&"Shift"===e.key&&(this.isShiftKeyDown=!1,this.#ee&&(this.#ee=!1,this.#Te("main_toolbar")))}onEditingAction({name:e}){switch(e){case"undo":case"redo":case"delete":case"selectAll":this[e]();break;case"highlightSelection":this.highlightSelection("context_menu");break;case"commentSelection":this.commentSelection("context_menu")}}#Me(e){Object.entries(e).some(([e,t])=>this.#ve[e]!==t)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#ve,e)}),this.#ue===g.HIGHLIGHT&&!1===e.hasSelectedEditor&&this.#Le([[b.HIGHLIGHT_FREE,!0]]))}#Le(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#_e(),this.#Fe(),this.#Me({isEditing:this.#ue!==g.NONE,isEmpty:this.#He(),hasSomethingToUndo:this.#D.hasSomethingToUndo(),hasSomethingToRedo:this.#D.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#Re(),this.#De(),this.#Me({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!this.#V){this.#V=e;for(const e of this.#V)this.#Le(e.defaultPropertiesToUpdate)}}getId(){return this.#ne.id}get currentLayer(){return this.#_.get(this.#H)}getLayer(e){return this.#_.get(e)}get currentPageIndex(){return this.#H}addLayer(e){this.#_.set(e.pageIndex,e),this.#re?e.enable():e.disable()}removeLayer(e){this.#_.delete(e.pageIndex)}async updateMode(e,t=null,n=!1,r=!1,o=!1){if(this.#ue!==e&&(!this.#Ce||(await this.#Ce.promise,this.#Ce))){if(this.#Ce=Promise.withResolvers(),this.#L?.commitOrRemove(),this.#ue===g.POPUP&&this.#z?.hideSidebar(),this.#z?.destroyPopup(),this.#ue=e,e===g.NONE){this.setEditingState(!1),this.#We();for(const e of this.#T.values())e.hideStandaloneCommentButton();return this._editorUndoBar?.hide(),this.toggleComment(null),void this.#Ce.resolve()}for(const e of this.#T.values())e.addStandaloneCommentButton();e===g.SIGNATURE&&await(this.#fe?.loadSignatures()),this.setEditingState(!0),await this.#Ue(),this.unselectAll();for(const t of this.#_.values())t.updateMode(e);if(e===g.POPUP){this.#M||=await this.#be.getAnnotationsByType(new Set(this.#V.map(e=>e._editorType)));const e=new Set,t=[];for(const n of this.#T.values()){const{annotationElementId:r,hasComment:o,deleted:i}=n;r&&e.add(r),o&&!i&&t.push(n.getData())}for(const n of this.#M){const{id:r,popupRef:o,contentsObj:i}=n;o&&i?.str&&!e.has(r)&&!this.#W.has(r)&&t.push(n)}this.#z?.showSidebar(t)}if(!t)return n&&this.addNewEditorFromKeyboard(),void this.#Ce.resolve();for(const e of this.#T.values())e.uid===t?(this.setSelected(e),o?e.editComment():r?e.enterInEditMode():e.focus()):e.unselect();this.#Ce.resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(e){e.mode!==this.#ue&&this._eventBus.dispatch("switchannotationeditormode",{source:this,...e})}updateParams(e,t){if(this.#V){switch(e){case b.CREATE:return void this.currentLayer.addNewEditor(t);case b.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#ge||=new Map).set(e,t),this.showAllEditors("highlight",t)}if(this.hasSelection)for(const n of this.#he)n.updateParams(e,t);else for(const n of this.#V)n.updateDefaultParams(e,t)}}showAllEditors(e,t,n=!1){for(const n of this.#T.values())n.editorType===e&&n.show(t);(this.#ge?.get(b.HIGHLIGHT_SHOW_ALL)??!0)!==t&&this.#Le([[b.HIGHLIGHT_SHOW_ALL,t]])}enableWaiting(e=!1){if(this.#ie!==e){this.#ie=e;for(const t of this.#_.values())e?t.disableClick():t.enableClick(),t.div.classList.toggle("waiting",e)}}async#Ue(){if(!this.#re){this.#re=!0;const e=[];for(const t of this.#_.values())e.push(t.enable());await Promise.all(e);for(const e of this.#T.values())e.enable()}}#We(){if(this.unselectAll(),this.#re){this.#re=!1;for(const e of this.#_.values())e.disable();for(const e of this.#T.values())e.disable()}}*getEditors(e){for(const t of this.#T.values())t.pageIndex===e&&(yield t)}getEditor(e){return this.#T.get(e)}addEditor(e){this.#T.set(e.id,e)}removeEditor(e){e.div.contains(document.activeElement)&&(this.#Q&&clearTimeout(this.#Q),this.#Q=setTimeout(()=>{this.focusMainContainer(),this.#Q=null},0)),this.#T.delete(e.id),e.annotationElementId&&this.#ce?.delete(e.annotationElementId),this.unselect(e),e.annotationElementId&&this.#W.has(e.annotationElementId)||this.#B?.remove(e.id)}addDeletedAnnotationElement(e){this.#W.add(e.annotationElementId),this.addChangedExistingAnnotation(e),e.deleted=!0}isDeletedAnnotationElement(e){return this.#W.has(e)}removeDeletedAnnotationElement(e){this.#W.delete(e.annotationElementId),this.removeChangedExistingAnnotation(e),e.deleted=!1}#ze(e){const t=this.#_.get(e.pageIndex);t?t.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))}setActiveEditor(e){this.#I!==e&&(this.#I=e,e&&this.#Le(e.propertiesToUpdate))}get#Ve(){let e=null;for(e of this.#he);return e}updateUI(e){this.#Ve===e&&this.#Le(e.propertiesToUpdate)}updateUIForDefaultProperties(e){this.#Le(e.defaultPropertiesToUpdate)}toggleSelected(e){if(this.#he.has(e))return this.#he.delete(e),e.unselect(),void this.#Me({hasSelectedEditor:this.hasSelection});this.#he.add(e),e.select(),this.#Le(e.propertiesToUpdate),this.#Me({hasSelectedEditor:!0})}setSelected(e){this.updateToolbar({mode:e.mode,editId:e.id}),this.#L?.commitOrRemove();for(const t of this.#he)t!==e&&t.unselect();this.#he.clear(),this.#he.add(e),e.select(),this.#Le(e.propertiesToUpdate),this.#Me({hasSelectedEditor:!0})}isSelected(e){return this.#he.has(e)}get firstSelectedEditor(){return this.#he.values().next().value}unselect(e){e.unselect(),this.#he.delete(e),this.#Me({hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==this.#he.size}get isEnterHandled(){return 1===this.#he.size&&this.firstSelectedEditor.isEnterHandled}undo(){this.#D.undo(),this.#Me({hasSomethingToUndo:this.#D.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#He()}),this._editorUndoBar?.hide()}redo(){this.#D.redo(),this.#Me({hasSomethingToUndo:!0,hasSomethingToRedo:this.#D.hasSomethingToRedo(),isEmpty:this.#He()})}addCommands(e){this.#D.add(e),this.#Me({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#He()})}cleanUndoStack(e){this.#D.cleanType(e)}#He(){if(0===this.#T.size)return!0;if(1===this.#T.size)for(const e of this.#T.values())return e.isEmpty();return!1}delete(){this.commitOrRemove();const e=this.currentLayer?.endDrawingSession(!0);if(!this.hasSelection&&!e)return;const t=e?[e]:[...this.#he],n=()=>{for(const e of t)this.#ze(e)};this.addCommands({cmd:()=>{this._editorUndoBar?.show(n,1===t.length?t[0].editorType:t.length);for(const e of t)e.remove()},undo:n,mustExec:!0})}commitOrRemove(){this.#I?.commitOrRemove()}hasSomethingToControl(){return this.#I||this.hasSelection}#Ne(e){for(const e of this.#he)e.unselect();this.#he.clear();for(const t of e)t.isEmpty()||(this.#he.add(t),t.select());this.#Me({hasSelectedEditor:this.hasSelection})}selectAll(){for(const e of this.#he)e.commit();this.#Ne(this.#T.values())}unselectAll(){if((!this.#I||(this.#I.commitOrRemove(),this.#ue===g.NONE))&&!this.#L?.commitOrRemove()&&this.hasSelection){for(const e of this.#he)e.unselect();this.#he.clear(),this.#Me({hasSelectedEditor:!1})}}translateSelectedEditors(e,t,n=!1){if(n||this.commitOrRemove(),!this.hasSelection)return;this.#ye[0]+=e,this.#ye[1]+=t;const[r,o]=this.#ye,i=[...this.#he];this.#xe&&clearTimeout(this.#xe),this.#xe=setTimeout(()=>{this.#xe=null,this.#ye[0]=this.#ye[1]=0,this.addCommands({cmd:()=>{for(const e of i)this.#T.has(e.id)&&(e.translateInPage(r,o),e.translationDone())},undo:()=>{for(const e of i)this.#T.has(e.id)&&(e.translateInPage(-r,-o),e.translationDone())},mustExec:!1})},1e3);for(const n of i)n.translateInPage(e,t),n.translationDone()}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#U=new Map;for(const e of this.#he)this.#U.set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#U)return!1;this.disableUserSelect(!1);const e=this.#U;this.#U=null;let t=!1;for(const[{x:n,y:r,pageIndex:o},i]of e)i.newX=n,i.newY=r,i.newPageIndex=o,t||=n!==i.savedX||r!==i.savedY||o!==i.savedPageIndex;if(!t)return!1;const n=(e,t,n,r)=>{if(this.#T.has(e.id)){const o=this.#_.get(r);o?e._setParentAndPosition(o,t,n):(e.pageIndex=r,e.x=t,e.y=n)}};return this.addCommands({cmd:()=>{for(const[t,{newX:r,newY:o,newPageIndex:i}]of e)n(t,r,o,i)},undo:()=>{for(const[t,{savedX:r,savedY:o,savedPageIndex:i}]of e)n(t,r,o,i)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(this.#U)for(const n of this.#U.keys())n.drag(e,t)}rebuild(e){if(null===e.parent){const t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||1===this.#he.size&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(e){return this.#I===e}getActive(){return this.#I}getMode(){return this.#ue}isEditingMode(){return this.#ue!==g.NONE}get imageManager(){return V(this,"imageManager",new Le)}getSelectionBoxes(e){if(!e)return null;const t=document.getSelection();for(let n=0,r=t.rangeCount;n({x:(t-r)/i,y:1-(e+a-n)/o,width:s/i,height:a/o});break;case"180":a=(e,t,a,s)=>({x:1-(e+a-n)/o,y:1-(t+s-r)/i,width:a/o,height:s/i});break;case"270":a=(e,t,a,s)=>({x:1-(t+s-r)/i,y:(e-n)/o,width:s/i,height:a/o});break;default:a=(e,t,a,s)=>({x:(e-n)/o,y:(t-r)/i,width:a/o,height:s/i})}const s=[];for(let e=0,n=t.rangeCount;ee.stopPropagation(),{signal:n});const r=e=>{e.preventDefault(),this.#i._uiManager.editAltText(this.#i),this.#tt&&this.#i._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:this.#rt}})};return e.addEventListener("click",r,{capture:!0,signal:n}),e.addEventListener("keydown",t=>{t.target===e&&"Enter"===t.key&&(this.#Qe=!0,r(t))},{signal:n}),await this.#ot(),e}get#rt(){return(this.#s?"added":null===this.#s&&this.guessedText&&"review")||"missing"}finish(){this.#qe&&(this.#qe.focus({focusVisible:this.#Qe}),this.#Qe=!1)}isEmpty(){return this.#tt?null===this.#s:!this.#s&&!this.#Ge}hasData(){return this.#tt?null!==this.#s||!!this.#Ze:this.isEmpty()}get guessedText(){return this.#Ze}async setGuessedText(e){null===this.#s&&(this.#Ze=e,this.#et=await Ge._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:e}),this.#ot())}toggleAltTextBadge(e=!1){if(!this.#tt||this.#s)return this.#Je?.remove(),void(this.#Je=null);if(!this.#Je){const e=this.#Je=document.createElement("div");e.className="noAltTextBadge",this.#i.div.append(e)}this.#Je.classList.toggle("hidden",!e)}serialize(e){let t=this.#s;return e||this.#Ze!==t||(t=this.#et),{altText:t,decorative:this.#Ge,guessedText:this.#Ze,textWithDisclaimer:this.#et}}get data(){return{altText:this.#s,decorative:this.#Ge}}set data({altText:e,decorative:t,guessedText:n,textWithDisclaimer:r,cancel:o=!1}){n&&(this.#Ze=n,this.#et=r),this.#s===e&&this.#Ge===t||(o||(this.#s=e,this.#Ge=t),this.#ot())}toggle(e=!1){this.#qe&&(!e&&this.#Ye&&(clearTimeout(this.#Ye),this.#Ye=null),this.#qe.disabled=!e)}shown(){this.#i._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:this.#rt}})}destroy(){this.#qe?.remove(),this.#qe=null,this.#Xe=null,this.#Ke=null,this.#Je?.remove(),this.#Je=null}async#ot(){const e=this.#qe;if(!e)return;if(this.#tt){if(e.classList.toggle("done",!!this.#s),e.setAttribute("data-l10n-id",Ge.#nt[this.#rt]),this.#Xe?.setAttribute("data-l10n-id",Ge.#nt[`${this.#rt}-label`]),!this.#s)return void this.#Ke?.remove()}else{if(!this.#s&&!this.#Ge)return e.classList.remove("done"),void this.#Ke?.remove();e.classList.add("done"),e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let t=this.#Ke;if(!t){this.#Ke=t=document.createElement("span"),t.className="tooltip",t.setAttribute("role","tooltip"),t.id=`alt-text-tooltip-${this.#i.id}`;const n=100,r=this.#i._uiManager._signal;r.addEventListener("abort",()=>{clearTimeout(this.#Ye),this.#Ye=null},{once:!0}),e.addEventListener("mouseenter",()=>{this.#Ye=setTimeout(()=>{this.#Ye=null,this.#Ke.classList.add("show"),this.#i._reportTelemetry({action:"alt_text_tooltip"})},n)},{signal:r}),e.addEventListener("mouseleave",()=>{this.#Ye&&(clearTimeout(this.#Ye),this.#Ye=null),this.#Ke?.classList.remove("show")},{signal:r})}this.#Ge?t.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(t.removeAttribute("data-l10n-id"),t.textContent=this.#s),t.parentNode||e.append(t);const n=this.#i.getElementForAltText();n?.setAttribute("aria-describedby",t.id)}}class qe{#it=null;#at=null;#st=!1;#i=null;#lt=null;#ct=null;#dt=null;#ut=null;#ht=!1;#pt=null;constructor(e){this.#i=e}renderForToolbar(){const e=this.#at=document.createElement("button");return e.className="comment",this.#v(e,!1)}renderForStandalone(){const e=this.#it=document.createElement("button");e.className="annotationCommentButton";const t=this.#i.commentButtonPosition;if(t){const{style:n}=e;n.insetInlineEnd=`calc(${100*("ltr"===this.#i._uiManager.direction?1-t[0]:t[0])}% - var(--comment-button-dim))`,n.top=`calc(${100*t[1]}% - var(--comment-button-dim))`;const r=this.#i.commentButtonColor;r&&(n.backgroundColor=r)}return this.#v(e,!0)}focusButton(){setTimeout(()=>{(this.#it??this.#at)?.focus()},0)}onUpdatedColor(){if(!this.#it)return;const e=this.#i.commentButtonColor;e&&(this.#it.style.backgroundColor=e),this.#i._uiManager.updatePopupColor(this.#i)}get commentButtonWidth(){return(this.#it?.getBoundingClientRect().width??0)/this.#i.parent.boundingClientRect.width}get commentPopupPositionInLayer(){if(this.#pt)return this.#pt;if(!this.#it)return null;const{x:e,y:t,height:n}=this.#it.getBoundingClientRect(),{x:r,y:o,width:i,height:a}=this.#i.parent.boundingClientRect;return[(e-r)/i,(t+n-o)/a]}set commentPopupPositionInLayer(e){this.#pt=e}hasDefaultPopupPosition(){return null===this.#pt}removeStandaloneCommentButton(){this.#it?.remove(),this.#it=null}removeToolbarCommentButton(){this.#at?.remove(),this.#at=null}setCommentButtonStates({selected:e,hasPopup:t}){this.#it&&(this.#it.classList.toggle("selected",e),this.#it.ariaExpanded=t)}#v(e,t){if(!this.#i._uiManager.hasCommentManager())return null;e.tabIndex="0",e.ariaHasPopup="dialog",t?(e.ariaControls="commentPopup",e.setAttribute("data-l10n-id","pdfjs-show-comment-button")):(e.ariaControlsElements=[this.#i._uiManager.getCommentDialogElement()],e.setAttribute("data-l10n-id","pdfjs-editor-edit-comment-button"));const n=this.#i._uiManager._signal;if(!(n instanceof AbortSignal)||n.aborted)return e;e.addEventListener("contextmenu",we,{signal:n}),t&&(e.addEventListener("focusin",e=>{this.#i._focusEventsAllowed=!1,Ae(e)},{capture:!0,signal:n}),e.addEventListener("focusout",e=>{this.#i._focusEventsAllowed=!0,Ae(e)},{capture:!0,signal:n})),e.addEventListener("pointerdown",e=>e.stopPropagation(),{signal:n});const r=t=>{t.preventDefault(),e===this.#at?this.edit():this.#i.toggleComment(!0)};return e.addEventListener("click",r,{capture:!0,signal:n}),e.addEventListener("keydown",t=>{t.target===e&&"Enter"===t.key&&(this.#st=!0,r(t))},{signal:n}),e.addEventListener("pointerenter",()=>{this.#i.toggleComment(!1,!0)},{signal:n}),e.addEventListener("pointerleave",()=>{this.#i.toggleComment(!1,!1)},{signal:n}),e}edit(e){const t=this.commentPopupPositionInLayer;let n,r;if(t)[n,r]=t;else{[n,r]=this.#i.commentButtonPosition;const{width:e,height:t,x:o,y:i}=this.#i;n=o+n*e,r=i+r*t}const o=this.#i.parent.boundingClientRect,{x:i,y:a,width:s,height:l}=o;this.#i._uiManager.editComment(this.#i,i+n*s,a+r*l,{...e,parentDimensions:o})}finish(){this.#at&&(this.#at.focus({focusVisible:this.#st}),this.#st=!1)}isDeleted(){return this.#ht||""===this.#dt}isEmpty(){return null===this.#dt}hasBeenEdited(){return this.isDeleted()||this.#dt!==this.#lt}serialize(){return this.data}get data(){return{text:this.#dt,richText:this.#ct,date:this.#ut,deleted:this.isDeleted()}}set data(e){if(e!==this.#dt&&(this.#ct=null),null===e)return this.#dt="",void(this.#ht=!0);this.#dt=e,this.#ut=new Date,this.#ht=!1}setInitialText(e,t=null){this.#lt=e,this.data=e,this.#ut=null,this.#ct=t}shown(){}destroy(){this.#at?.remove(),this.#at=null,this.#it?.remove(),this.#it=null,this.#dt="",this.#ct=null,this.#ut=null,this.#i=null,this.#st=!1,this.#ht=!1}}class Xe{#we;#ft=!1;#mt=null;#gt;#bt;#vt;#yt;#xt=null;#wt;#At=null;#St;#Ct=null;constructor({container:e,isPinchingDisabled:t=null,isPinchingStopped:n=null,onPinchStart:r=null,onPinching:o=null,onPinchEnd:i=null,signal:a}){this.#we=e,this.#mt=n,this.#gt=t,this.#bt=r,this.#vt=o,this.#yt=i,this.#St=new AbortController,this.#wt=AbortSignal.any([a,this.#St.signal]),e.addEventListener("touchstart",this.#$t.bind(this),{passive:!1,signal:this.#wt})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return 35/Oe.pixelRatio}#$t(e){if(this.#gt?.())return;if(1===e.touches.length){if(this.#xt)return;const e=this.#xt=new AbortController,t=AbortSignal.any([this.#wt,e.signal]),n=this.#we,r={capture:!0,signal:t,passive:!1},o=e=>{"touch"===e.pointerType&&(this.#xt?.abort(),this.#xt=null)};return n.addEventListener("pointerdown",e=>{"touch"===e.pointerType&&(Ae(e),o(e))},r),n.addEventListener("pointerup",o,r),void n.addEventListener("pointercancel",o,r)}if(!this.#Ct){this.#Ct=new AbortController;const e=AbortSignal.any([this.#wt,this.#Ct.signal]),t=this.#we,n={signal:e,capture:!1,passive:!1};t.addEventListener("touchmove",this.#kt.bind(this),n);const r=this.#Et.bind(this);t.addEventListener("touchend",r,n),t.addEventListener("touchcancel",r,n),n.capture=!0,t.addEventListener("pointerdown",Ae,n),t.addEventListener("pointermove",Ae,n),t.addEventListener("pointercancel",Ae,n),t.addEventListener("pointerup",Ae,n),this.#bt?.()}if(Ae(e),2!==e.touches.length||this.#mt?.())return void(this.#At=null);let[t,n]=e.touches;t.identifier>n.identifier&&([t,n]=[n,t]),this.#At={touch0X:t.screenX,touch0Y:t.screenY,touch1X:n.screenX,touch1Y:n.screenY}}#kt(e){if(!this.#At||2!==e.touches.length)return;Ae(e);let[t,n]=e.touches;t.identifier>n.identifier&&([t,n]=[n,t]);const{screenX:r,screenY:o}=t,{screenX:i,screenY:a}=n,s=this.#At,{touch0X:l,touch0Y:c,touch1X:d,touch1Y:u}=s,h=d-l,p=u-c,f=i-r,m=a-o,g=Math.hypot(f,m)||1,b=Math.hypot(h,p)||1;if(!this.#ft&&Math.abs(b-g)<=Xe.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(s.touch0X=r,s.touch0Y=o,s.touch1X=i,s.touch1Y=a,!this.#ft)return void(this.#ft=!0);const v=[(r+i)/2,(o+a)/2];this.#vt?.(v,b,g)}#Et(e){e.touches.length>=2||(this.#Ct&&(this.#Ct.abort(),this.#Ct=null,this.#yt?.()),this.#At&&(Ae(e),this.#At=null,this.#ft=!1))}destroy(){this.#St?.abort(),this.#St=null,this.#xt?.abort(),this.#xt=null}}class Ke{#Ot=null;#Pt=null;#s=null;#l=null;#it=null;#jt=!1;#It=null;#Mt="";#Tt=null;#_t=null;#Rt=null;#Bt=null;#Ft=null;#Dt="";#zt=!1;#Nt=null;#Lt=!1;#Ht=!1;#Wt=!1;#Ut=null;#Vt=0;#Gt=0;#qt=null;#Xt=null;isSelected=!1;_isCopy=!1;_editToolbar=null;_initialOptions=Object.create(null);_initialData=null;_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;static _l10n=null;static _l10nResizer=null;#Kt=!1;#Yt=Ke._zIndex++;static _borderLineWidth=-1;static _colorManager=new Ue;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){const e=Ke.prototype._resizeWithKeyboard,t=Ve.TRANSLATE_SMALL,n=Ve.TRANSLATE_BIG;return V(this,"_resizerKeyboardManager",new We([[["ArrowLeft","mac+ArrowLeft"],e,{args:[-t,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e,{args:[-n,0]}],[["ArrowRight","mac+ArrowRight"],e,{args:[t,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e,{args:[n,0]}],[["ArrowUp","mac+ArrowUp"],e,{args:[0,-t]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e,{args:[0,-n]}],[["ArrowDown","mac+ArrowDown"],e,{args:[0,t]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e,{args:[0,n]}],[["Escape","mac+Escape"],Ke.prototype._stopResizingWithKeyboard]]))}constructor(e){this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null,this.annotationElementId=e.annotationElementId||null,this.creationDate=e.creationDate||new Date,this.modificationDate=e.modificationDate||null;const{rotation:t,rawDims:{pageWidth:n,pageHeight:r,pageX:o,pageY:i}}=this.parent.viewport;this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,r],this.pageTranslation=[o,i];const[a,s]=this.parentDimensions;this.x=e.x/a,this.y=e.y/s,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}get mode(){return Object.getPrototypeOf(this).constructor._editorType}static get isDrawer(){return!1}static get _defaultLineColor(){return V(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){const t=new Ye({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}static initialize(e,t){if(Ke._l10n??=e,Ke._l10nResizer||=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"}),-1!==Ke._borderLineWidth)return;const n=getComputedStyle(document.documentElement);Ke._borderLineWidth=parseFloat(n.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){L("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#Kt}set _isDraggable(e){this.#Kt=e,this.div?.classList.toggle("draggable",e)}get uid(){return this.annotationElementId||this.id}get isEnterHandled(){return!0}center(){const[e,t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*t/(2*e),this.y+=this.width*e/(2*t);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*t/(2*e),this.y-=this.width*e/(2*t);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#Yt}setParent(e){null!==e?(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions):(this.#Qt(),this.#Bt?.remove(),this.#Bt=null),this.parent=e}focusin(e){this._focusEventsAllowed&&(this.#zt?this.#zt=!1:this.parent.setSelected(this))}focusout(e){if(!this._focusEventsAllowed)return;if(!this.isAttachedToDOM)return;const t=e.relatedTarget;t?.closest(`#${this.id}`)||(e.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.isInEditMode()&&this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,n,r){const[o,i]=this.parentDimensions;[n,r]=this.screenToPageTranslation(n,r),this.x=(e+n)/o,this.y=(t+r)/i,this.fixAndSetPosition()}_moveAfterPaste(e,t){const[n,r]=this.parentDimensions;this.setAt(e*n,t*r,this.width*n,this.height*r),this._onTranslated()}#Jt([e,t],n,r){[n,r]=this.screenToPageTranslation(n,r),this.x+=n/e,this.y+=r/t,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}translate(e,t){this.#Jt(this.parentDimensions,e,t)}translateInPage(e,t){this.#Nt||=[this.x,this.y,this.width,this.height],this.#Jt(this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}translationDone(){this._onTranslated(this.x,this.y)}drag(e,t){this.#Nt||=[this.x,this.y,this.width,this.height];const{div:n,parentDimensions:[r,o]}=this;if(this.x+=e/r,this.y+=t/o,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:e,y:t}=this.div.getBoundingClientRect();this.parent.findNewParent(this,e,t)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:i,y:a}=this;const[s,l]=this.getBaseTranslation();i+=s,a+=l;const{style:c}=n;c.left=`${(100*i).toFixed(2)}%`,c.top=`${(100*a).toFixed(2)}%`,this._onTranslating(i,a),n.scrollIntoView({block:"nearest"})}_onTranslating(e,t){}_onTranslated(e,t){}get _hasBeenMoved(){return!!this.#Nt&&(this.#Nt[0]!==this.x||this.#Nt[1]!==this.y)}get _hasBeenResized(){return!!this.#Nt&&(this.#Nt[2]!==this.width||this.#Nt[3]!==this.height)}getBaseTranslation(){const[e,t]=this.parentDimensions,{_borderLineWidth:n}=Ke,r=n/e,o=n/t;switch(this.rotation){case 90:return[-r,o];case 180:return[r,o];case 270:return[r,-o];default:return[-r,-o]}}get _mustFixPosition(){return!0}fixAndSetPosition(e=this.rotation){const{div:{style:t},pageDimensions:[n,r]}=this;let{x:o,y:i,width:a,height:s}=this;if(a*=n,s*=r,o*=n,i*=r,this._mustFixPosition)switch(e){case 0:o=le(o,0,n-a),i=le(i,0,r-s);break;case 90:o=le(o,0,n-s),i=le(i,a,r);break;case 180:o=le(o,a,n),i=le(i,s,r);break;case 270:o=le(o,s,n),i=le(i,0,r-a)}this.x=o/=n,this.y=i/=r;const[l,c]=this.getBaseTranslation();o+=l,i+=c,t.left=`${(100*o).toFixed(2)}%`,t.top=`${(100*i).toFixed(2)}%`,this.moveInDOM()}static#Zt(e,t,n){switch(n){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}screenToPageTranslation(e,t){return Ke.#Zt(e,t,this.parentRotation)}pageTranslationToScreen(e,t){return Ke.#Zt(e,t,360-this.parentRotation)}#en(e){switch(e){case 90:{const[e,t]=this.pageDimensions;return[0,-e/t,t/e,0]}case 180:return[-1,0,0,-1];case 270:{const[e,t]=this.pageDimensions;return[0,e/t,-t/e,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:e,pageDimensions:[t,n]}=this;return[t*e,n*e]}setDims(){const{div:{style:e},width:t,height:n}=this;e.width=`${(100*t).toFixed(2)}%`,e.height=`${(100*n).toFixed(2)}%`}getInitialTranslation(){return[0,0]}#tn(){if(this.#Tt)return;this.#Tt=document.createElement("div"),this.#Tt.classList.add("resizers");const e=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],t=this._uiManager._signal;for(const n of e){const e=document.createElement("div");this.#Tt.append(e),e.classList.add("resizer",n),e.setAttribute("data-resizer-name",n),e.addEventListener("pointerdown",this.#nn.bind(this,n),{signal:t}),e.addEventListener("contextmenu",we,{signal:t}),e.tabIndex=-1}this.div.prepend(this.#Tt)}#nn(e,t){t.preventDefault();const{isMac:n}=te.platform;if(0!==t.button||t.ctrlKey&&n)return;this.#s?.toggle(!1);const r=this._isDraggable;this._isDraggable=!1,this.#_t=[t.screenX,t.screenY];const o=new AbortController,i=this._uiManager.combinedSignal(o);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",this.#rn.bind(this,e),{passive:!0,capture:!0,signal:i}),window.addEventListener("touchmove",Ae,{passive:!1,signal:i}),window.addEventListener("contextmenu",we,{signal:i}),this.#Rt={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const a=this.parent.div.style.cursor,s=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(t.target).cursor;const l=()=>{o.abort(),this.parent.togglePointerEvents(!0),this.#s?.toggle(!0),this._isDraggable=r,this.parent.div.style.cursor=a,this.div.style.cursor=s,this.#on()};window.addEventListener("pointerup",l,{signal:i}),window.addEventListener("blur",l,{signal:i})}#in(e,t,n,r){this.width=n,this.height=r,this.x=e,this.y=t,this.setDims(),this.fixAndSetPosition(),this._onResized()}_onResized(){}#on(){if(!this.#Rt)return;const{savedX:e,savedY:t,savedWidth:n,savedHeight:r}=this.#Rt;this.#Rt=null;const o=this.x,i=this.y,a=this.width,s=this.height;o===e&&i===t&&a===n&&s===r||this.addCommands({cmd:this.#in.bind(this,o,i,a,s),undo:this.#in.bind(this,e,t,n,r),mustExec:!0})}static _round(e){return Math.round(1e4*e)/1e4}#rn(e,t){const[n,r]=this.parentDimensions,o=this.x,i=this.y,a=this.width,s=this.height,l=Ke.MIN_SIZE/n,c=Ke.MIN_SIZE/r,d=this.#en(this.rotation),u=(e,t)=>[d[0]*e+d[2]*t,d[1]*e+d[3]*t],h=this.#en(360-this.rotation);let p,f,m=!1,g=!1;switch(e){case"topLeft":m=!0,p=(e,t)=>[0,0],f=(e,t)=>[e,t];break;case"topMiddle":p=(e,t)=>[e/2,0],f=(e,t)=>[e/2,t];break;case"topRight":m=!0,p=(e,t)=>[e,0],f=(e,t)=>[0,t];break;case"middleRight":g=!0,p=(e,t)=>[e,t/2],f=(e,t)=>[0,t/2];break;case"bottomRight":m=!0,p=(e,t)=>[e,t],f=(e,t)=>[0,0];break;case"bottomMiddle":p=(e,t)=>[e/2,t],f=(e,t)=>[e/2,0];break;case"bottomLeft":m=!0,p=(e,t)=>[0,t],f=(e,t)=>[e,0];break;case"middleLeft":g=!0,p=(e,t)=>[0,t/2],f=(e,t)=>[e,t/2]}const b=p(a,s),v=f(a,s);let y=u(...v);const x=Ke._round(o+y[0]),w=Ke._round(i+y[1]);let A,S,C=1,$=1;if(t.fromKeyboard)({deltaX:A,deltaY:S}=t);else{const{screenX:e,screenY:n}=t,[r,o]=this.#_t;[A,S]=this.screenToPageTranslation(e-r,n-o),this.#_t[0]=e,this.#_t[1]=n}var k,E;if([A,S]=(k=A/n,E=S/r,[h[0]*k+h[2]*E,h[1]*k+h[3]*E]),m){const e=Math.hypot(a,s);C=$=Math.max(Math.min(Math.hypot(v[0]-b[0]-A,v[1]-b[1]-S)/e,1/a,1/s),l/a,c/s)}else g?C=le(Math.abs(v[0]-b[0]-A),l,1)/a:$=le(Math.abs(v[1]-b[1]-S),c,1)/s;const O=Ke._round(a*C),P=Ke._round(s*$);y=u(...f(O,P));const j=x-y[0],I=w-y[1];this.#Nt||=[this.x,this.y,this.width,this.height],this.width=O,this.height=P,this.x=j,this.y=I,this.setDims(),this.fixAndSetPosition(),this._onResizing()}_onResizing(){}altTextFinish(){this.#s?.finish()}get toolbarButtons(){return null}async addEditToolbar(){if(this._editToolbar||this.#Ht)return this._editToolbar;this._editToolbar=new Fe(this),this.div.append(this._editToolbar.render());const{toolbarButtons:e}=this;if(e)for(const[t,n]of e)await this._editToolbar.addButton(t,n);return this.hasComment||this._editToolbar.addButton("comment",this.addCommentButton()),this._editToolbar.addButton("delete"),this._editToolbar}addCommentButtonInToolbar(){this._editToolbar?.addButtonBefore("comment",this.addCommentButton(),".deleteButton")}removeCommentButtonFromToolbar(){this._editToolbar?.removeButton("comment")}removeEditToolbar(){this._editToolbar?.remove(),this._editToolbar=null,this.#s?.destroy()}addContainer(e){const t=this._editToolbar?.div;t?t.before(e):this.div.append(e)}getClientDimensions(){return this.div.getBoundingClientRect()}createAltText(){return this.#s||(Ge.initialize(Ke._l10n),this.#s=new Ge(this),this.#Ot&&(this.#s.data=this.#Ot,this.#Ot=null)),this.#s}get altTextData(){return this.#s?.data}set altTextData(e){this.#s&&(this.#s.data=e)}get guessedAltText(){return this.#s?.guessedText}async setGuessedAltText(e){await(this.#s?.setGuessedText(e))}serializeAltText(e){return this.#s?.serialize(e)}hasAltText(){return!!this.#s&&!this.#s.isEmpty()}hasAltTextData(){return this.#s?.hasData()??!1}focusCommentButton(){this.#l?.focusButton()}addCommentButton(){return this.#l||=new qe(this)}addStandaloneCommentButton(){this.#it?this._uiManager.isEditingMode()&&this.#it.classList.remove("hidden"):this.hasComment&&(this.#it=this.#l.renderForStandalone(),this.div.append(this.#it))}removeStandaloneCommentButton(){this.#l.removeStandaloneCommentButton(),this.#it=null}hideStandaloneCommentButton(){this.#it?.classList.add("hidden")}get comment(){const{data:{richText:e,text:t,date:n,deleted:r}}=this.#l;return{text:t,richText:e,date:n,deleted:r,color:this.getNonHCMColor(),opacity:this.opacity??1}}set comment(e){this.#l||=new qe(this),this.#l.data=e,this.hasComment?(this.removeCommentButtonFromToolbar(),this.addStandaloneCommentButton(),this._uiManager.updateComment(this)):(this.addCommentButtonInToolbar(),this.removeStandaloneCommentButton(),this._uiManager.removeComment(this))}setCommentData({comment:e,popupRef:t,richText:n}){if(!t)return;if(this.#l||=new qe(this),this.#l.setInitialText(e,n),!this.annotationElementId)return;const r=this._uiManager.getAndRemoveDataFromAnnotationStorage(this.annotationElementId);r&&this.updateFromAnnotationLayer(r)}get hasEditedComment(){return this.#l?.hasBeenEdited()}get hasDeletedComment(){return this.#l?.isDeleted()}get hasComment(){return!!this.#l&&!this.#l.isEmpty()&&!this.#l.isDeleted()}async editComment(e){this.#l||=new qe(this),this.#l.edit(e)}toggleComment(e,t=void 0){this.hasComment&&this._uiManager.toggleComment(this,e,t)}setSelectedCommentButton(e){this.#l.setSelectedButton(e)}addComment(e){if(this.hasEditedComment){const t=180,n=100,[,,,r]=e.rect,[o]=this.pageDimensions,[i]=this.pageTranslation,a=i+o+1,s=r-n,l=a+t;e.popup={contents:this.comment.text,deleted:this.comment.deleted,rect:[a,s,l,r]}}}updateFromAnnotationLayer({popup:{contents:e,deleted:t}}){this.#l.data=t?null:e}get parentBoundingClientRect(){return this.parent.boundingClientRect}render(){const e=this.div=document.createElement("div");e.setAttribute("data-editor-rotation",(360-this.rotation)%360),e.className=this.name,e.setAttribute("id",this.id),e.tabIndex=this.#jt?-1:0,e.setAttribute("role","application"),this.defaultL10nId&&e.setAttribute("data-l10n-id",this.defaultL10nId),this._isVisible||e.classList.add("hidden"),this.setInForeground(),this.#an();const[t,n]=this.parentDimensions;this.parentRotation%180!=0&&(e.style.maxWidth=`${(100*n/t).toFixed(2)}%`,e.style.maxHeight=`${(100*t/n).toFixed(2)}%`);const[r,o]=this.getInitialTranslation();return this.translate(r,o),ze(this,e,["keydown","pointerdown","dblclick"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(this.#Xt||=new Xe({container:e,isPinchingDisabled:()=>!this.isSelected,onPinchStart:this.#sn.bind(this),onPinching:this.#ln.bind(this),onPinchEnd:this.#cn.bind(this),signal:this._uiManager._signal})),this.addStandaloneCommentButton(),this._uiManager._editorUndoBar?.hide(),e}#sn(){this.#Rt={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height},this.#s?.toggle(!1),this.parent.togglePointerEvents(!1)}#ln(e,t,n){let r=n/t*.7+1-.7;if(1===r)return;const o=this.#en(this.rotation),i=(e,t)=>[o[0]*e+o[2]*t,o[1]*e+o[3]*t],[a,s]=this.parentDimensions,l=this.x,c=this.y,d=this.width,u=this.height,h=Ke.MIN_SIZE/a,p=Ke.MIN_SIZE/s;r=Math.max(Math.min(r,1/d,1/u),h/d,p/u);const f=Ke._round(d*r),m=Ke._round(u*r);if(f===d&&m===u)return;this.#Nt||=[l,c,d,u];const g=i(d/2,u/2),b=Ke._round(l+g[0]),v=Ke._round(c+g[1]),y=i(f/2,m/2);this.x=b-y[0],this.y=v-y[1],this.width=f,this.height=m,this.setDims(),this.fixAndSetPosition(),this._onResizing()}#cn(){this.#s?.toggle(!0),this.parent.togglePointerEvents(!0),this.#on()}pointerdown(e){const{isMac:t}=te.platform;0!==e.button||e.ctrlKey&&t?e.preventDefault():(this.#zt=!0,this._isDraggable?this.#dn(e):this.#un(e))}#un(e){const{isMac:t}=te.platform;e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this)}#dn(e){const{isSelected:t}=this;this._uiManager.setUpDragSession();let n=!1;const r=new AbortController,o=this._uiManager.combinedSignal(r),i={capture:!0,passive:!1,signal:o},a=e=>{r.abort(),this.#It=null,this.#zt=!1,this._uiManager.endDragSession()||this.#un(e),n&&this._onStopDragging()};t&&(this.#Vt=e.clientX,this.#Gt=e.clientY,this.#It=e.pointerId,this.#Mt=e.pointerType,window.addEventListener("pointermove",e=>{n||(n=!0,this._uiManager.toggleComment(this,!0,!1),this._onStartDragging());const{clientX:t,clientY:r,pointerId:o}=e;if(o!==this.#It)return void Ae(e);const[i,a]=this.screenToPageTranslation(t-this.#Vt,r-this.#Gt);this.#Vt=t,this.#Gt=r,this._uiManager.dragSelectedEditors(i,a)},i),window.addEventListener("touchmove",Ae,i),window.addEventListener("pointerdown",e=>{e.pointerType===this.#Mt&&(this.#Xt||e.isPrimary)&&a(e),Ae(e)},i));const s=e=>{this.#It&&this.#It!==e.pointerId?Ae(e):a(e)};window.addEventListener("pointerup",s,{signal:o}),window.addEventListener("blur",s,{signal:o})}_onStartDragging(){}_onStopDragging(){}moveInDOM(){this.#Ut&&clearTimeout(this.#Ut),this.#Ut=setTimeout(()=>{this.#Ut=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(e,t,n){e.changeParent(this),this.x=t,this.y=n,this.fixAndSetPosition(),this._onTranslated()}getRect(e,t,n=this.rotation){const r=this.parentScale,[o,i]=this.pageDimensions,[a,s]=this.pageTranslation,l=e/r,c=t/r,d=this.x*o,u=this.y*i,h=this.width*o,p=this.height*i;switch(n){case 0:return[d+l+a,i-u-c-p+s,d+l+h+a,i-u-c+s];case 90:return[d+c+a,i-u+l+s,d+c+p+a,i-u+l+h+s];case 180:return[d-l-h+a,i-u+c+s,d-l+a,i-u+c+p+s];case 270:return[d-c-p+a,i-u-l-h+s,d-c+a,i-u-l+s];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){const[n,r,o,i]=e,a=o-n,s=i-r;switch(this.rotation){case 0:return[n,t-i,a,s];case 90:return[n,t-r,s,a];case 180:return[o,t-r,a,s];case 270:return[o,t-i,s,a];default:throw new Error("Invalid rotation")}}getPDFRect(){return this.getRect(0,0)}getNonHCMColor(){return this.color&&Ke._colorManager.convert(this._uiManager.getNonHCMColor(this.color))}onUpdatedColor(){this.#l?.onUpdatedColor()}getData(){const{comment:{text:e,color:t,date:n,opacity:r,deleted:o,richText:i},uid:a,pageIndex:s,creationDate:l,modificationDate:c}=this;return{id:a,pageIndex:s,rect:this.getPDFRect(),richText:i,contentsObj:{str:e},creationDate:l,modificationDate:n||c,popupRef:!o,color:t,opacity:r}}onceAdded(e){}isEmpty(){return!1}enableEditMode(){return!this.isInEditMode()&&(this.parent.setEditingState(!1),this.#Ht=!0,!0)}disableEditMode(){return!!this.isInEditMode()&&(this.parent.setEditingState(!0),this.#Ht=!1,!0)}isInEditMode(){return this.#Ht}shouldGetKeyboardEvents(){return this.#Wt}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){const{top:e,left:t,bottom:n,right:r}=this.getClientDimensions(),{innerHeight:o,innerWidth:i}=window;return t0&&e0}#an(){if(this.#Ft||!this.div)return;this.#Ft=new AbortController;const e=this._uiManager.combinedSignal(this.#Ft);this.div.addEventListener("focusin",this.focusin.bind(this),{signal:e}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:e})}rebuild(){this.#an()}rotate(e){}resize(){}serializeDeleted(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:this._initialData?.popupRef||""}}serialize(e=!1,t=null){return{annotationType:this.mode,pageIndex:this.pageIndex,rect:this.getPDFRect(),rotation:this.rotation,structTreeParentId:this._structTreeParentId,popupRef:this._initialData?.popupRef||""}}static async deserialize(e,t,n){const r=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:n,annotationElementId:e.annotationElementId,creationDate:e.creationDate,modificationDate:e.modificationDate});r.rotation=e.rotation,r.#Ot=e.accessibilityData,r._isCopy=e.isCopy||!1;const[o,i]=r.pageDimensions,[a,s,l,c]=r.getRectInCurrentCoords(e.rect,i);return r.x=a/o,r.y=s/i,r.width=l/o,r.height=c/i,r}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||null!==this.serialize())}remove(){if(this.#Ft?.abort(),this.#Ft=null,this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#Ut&&(clearTimeout(this.#Ut),this.#Ut=null),this.#Qt(),this.removeEditToolbar(),this.#qt){for(const e of this.#qt.values())clearTimeout(e);this.#qt=null}this.parent=null,this.#Xt?.destroy(),this.#Xt=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#tn(),this.#Tt.classList.remove("hidden"))}get toolbarPosition(){return null}get commentButtonPosition(){return"ltr"===this._uiManager.direction?[1,0]:[0,0]}get commentButtonPositionInPage(){const{commentButtonPosition:[e,t]}=this,[n,r,o,i]=this.getPDFRect();return[Ke._round(n+(o-n)*e),Ke._round(r+(i-r)*(1-t))]}get commentButtonColor(){return this._uiManager.makeCommentColor(this.getNonHCMColor(),this.opacity)}get commentPopupPosition(){return this.#l.commentPopupPositionInLayer}set commentPopupPosition(e){this.#l.commentPopupPositionInLayer=e}hasDefaultPopupPosition(){return this.#l.hasDefaultPopupPosition()}get commentButtonWidth(){return this.#l.commentButtonWidth}get elementBeforePopup(){return this.div}setCommentButtonStates(e){this.#l.setCommentButtonStates(e)}keydown(e){if(!this.isResizable||e.target!==this.div||"Enter"!==e.key)return;this._uiManager.setSelected(this),this.#Rt={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const t=this.#Tt.children;if(!this.#Pt){this.#Pt=Array.from(t);const e=this.#hn.bind(this),n=this.#pn.bind(this),r=this._uiManager._signal;for(const t of this.#Pt){const o=t.getAttribute("data-resizer-name");t.setAttribute("role","spinbutton"),t.addEventListener("keydown",e,{signal:r}),t.addEventListener("blur",n,{signal:r}),t.addEventListener("focus",this.#fn.bind(this,o),{signal:r}),t.setAttribute("data-l10n-id",Ke._l10nResizer[o])}}const n=this.#Pt[0];let r=0;for(const e of t){if(e===n)break;r++}const o=(360-this.rotation+this.parentRotation)%360/90*(this.#Pt.length/4);if(o!==r){if(or)for(let e=0;e{this.div?.classList.contains("selectedEditor")&&this._editToolbar?.show()}))}focus(){this.div&&!this.div.contains(document.activeElement)&&setTimeout(()=>this.div?.focus({preventScroll:!0}),0)}unselect(){this.isSelected&&(this.isSelected=!1,this.#Tt?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this._editToolbar?.hide(),this.#s?.toggleAltTextBadge(!0),this.hasComment&&this._uiManager.toggleComment(this,!1,!1))}updateParams(e,t){}disableEditing(){}enableEditing(){}get canChangeContent(){return!1}enterInEditMode(){this.canChangeContent&&(this.enableEditMode(),this.div.focus())}dblclick(e){"BUTTON"!==e.target.nodeName&&(this.enterInEditMode(),this.parent.updateToolbar({mode:this.constructor._editorType,editId:this.id}))}getElementForAltText(){return this.div}get contentDiv(){return this.div}get isEditing(){return this.#Lt}set isEditing(e){this.#Lt=e,this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(e,t=!1){if(t){this.#qt||=new Map;const{action:t}=e;let n=this.#qt.get(t);return n&&clearTimeout(n),n=setTimeout(()=>{this._reportTelemetry(e),this.#qt.delete(t),0===this.#qt.size&&(this.#qt=null)},Ke._telemetryTimeout),void this.#qt.set(t,n)}e.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}show(e=this._isVisible){this.div.classList.toggle("hidden",!e),this._isVisible=e}enable(){this.div&&(this.div.tabIndex=0),this.#jt=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#jt=!0}updateFakeAnnotationElement(e){if(this.#Bt||this.deleted)return this.deleted?(this.#Bt.remove(),void(this.#Bt=null)):void((this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized)&&this.#Bt.updateEdited({rect:this.getPDFRect(),popup:this.comment}));this.#Bt=e.addFakeAnnotation(this)}renderAnnotationElement(e){if(this.deleted)return e.hide(),null;let t=e.container.querySelector(".annotationContent");if(t){if("CANVAS"===t.nodeName){const e=t;t=document.createElement("div"),t.classList.add("annotationContent",this.editorType),e.before(t)}}else t=document.createElement("div"),t.classList.add("annotationContent",this.editorType),e.container.prepend(t);return t}resetAnnotationElement(e){const{firstChild:t}=e.container;"DIV"===t?.nodeName&&t.classList.contains("annotationContent")&&t.remove()}}class Ye extends Ke{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}}const Qe=3285377520,Je=4294901760,Ze=65535;class et{constructor(e){this.h1=e?4294967295&e:Qe,this.h2=e?4294967295&e:Qe}update(e){let t,n;if("string"==typeof e){t=new Uint8Array(2*e.length),n=0;for(let r=0,o=e.length;r>>8,t[n++]=255&o)}}else{if(!ArrayBuffer.isView(e))throw new Error("Invalid data format, must be a string or TypedArray.");t=e.slice(),n=t.byteLength}const r=n>>2,o=n-4*r,i=new Uint32Array(t.buffer,0,r);let a=0,s=0,l=this.h1,c=this.h2;const d=3432918353,u=461845907,h=11601,p=13715;for(let e=0;e>>17,a=a*u&Je|a*p&Ze,l^=a,l=l<<13|l>>>19,l=5*l+3864292196):(s=i[e],s=s*d&Je|s*h&Ze,s=s<<15|s>>>17,s=s*u&Je|s*p&Ze,c^=s,c=c<<13|c>>>19,c=5*c+3864292196);switch(a=0,o){case 3:a^=t[4*r+2]<<16;case 2:a^=t[4*r+1]<<8;case 1:a^=t[4*r],a=a*d&Je|a*h&Ze,a=a<<15|a>>>17,a=a*u&Je|a*p&Ze,1&r?l^=a:c^=a}this.h1=l,this.h2=c}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=3981806797*e&Je|36045*e&Ze,t=4283543511*t&Je|(2950163797*(t<<16|e>>>16)&Je)>>>16,e^=t>>>1,e=444984403*e&Je|60499*e&Ze,t=3301882366*t&Je|(3120437893*(t<<16|e>>>16)&Je)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}const tt=Object.freeze({map:null,hash:"",transfer:void 0});class nt{#gn=!1;#bn=null;#vn=null;#yn=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){const n=this.#yn.get(e);return void 0===n?t:Object.assign(t,n)}getRawValue(e){return this.#yn.get(e)}remove(e){const t=this.#yn.get(e);if(void 0!==t&&(t instanceof Ke&&this.#vn.delete(t.annotationElementId),this.#yn.delete(e),0===this.#yn.size&&this.resetModified(),"function"==typeof this.onAnnotationEditor)){for(const e of this.#yn.values())if(e instanceof Ke)return;this.onAnnotationEditor(null)}}setValue(e,t){const n=this.#yn.get(e);let r=!1;if(void 0!==n)for(const[e,o]of Object.entries(t))n[e]!==o&&(r=!0,n[e]=o);else r=!0,this.#yn.set(e,t);r&&this.#xn(),t instanceof Ke&&((this.#vn||=new Map).set(t.annotationElementId,t),"function"==typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type))}has(e){return this.#yn.has(e)}get size(){return this.#yn.size}#xn(){this.#gn||(this.#gn=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this.#gn&&(this.#gn=!1,"function"==typeof this.onResetModified&&this.onResetModified())}get print(){return new rt(this)}get serializable(){if(0===this.#yn.size)return tt;const e=new Map,t=new et,n=[],r=Object.create(null);let o=!1;for(const[n,i]of this.#yn){const a=i instanceof Ke?i.serialize(!1,r):i;a&&(e.set(n,a),t.update(`${n}:${JSON.stringify(a)}`),o||=!!a.bitmap)}if(o)for(const t of e.values())t.bitmap&&n.push(t.bitmap);return e.size>0?{map:e,hash:t.hexdigest(),transfer:n}:tt}get editorStats(){let e=null;const t=new Map;let n=0,r=0;for(const o of this.#yn.values()){if(!(o instanceof Ke)){o.popup&&(o.popup.deleted?r+=1:n+=1);continue}o.isCommentDeleted?r+=1:o.hasEditedComment&&(n+=1);const i=o.telemetryFinalData;if(!i)continue;const{type:a}=i;t.has(a)||t.set(a,Object.getPrototypeOf(o).constructor),e||=Object.create(null);const s=e[a]||=new Map;for(const[e,t]of Object.entries(i)){if("type"===e)continue;let n=s.get(e);n||(n=new Map,s.set(e,n));const r=n.get(t)??0;n.set(t,r+1)}}if((r>0||n>0)&&(e||=Object.create(null),e.comments={deleted:r,edited:n}),!e)return null;for(const[n,r]of t)e[n]=r.computeTelemetryFinalData(e[n]);return e}resetModifiedIds(){this.#bn=null}updateEditor(e,t){const n=this.#vn?.get(e);return!!n&&(n.updateFromAnnotationLayer(t),!0)}getEditor(e){return this.#vn?.get(e)||null}get modifiedIds(){if(this.#bn)return this.#bn;const e=[];if(this.#vn)for(const t of this.#vn.values())t.serialize()&&e.push(t.annotationElementId);return this.#bn={ids:new Set(e),hash:e.join(",")}}[Symbol.iterator](){return this.#yn.entries()}}class rt extends nt{#wn;constructor(e){super();const{map:t,hash:n,transfer:r}=e.serializable,o=structuredClone(t,r?{transfer:r}:null);this.#wn={map:o,hash:n,transfer:r}}get print(){L("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#wn}get modifiedIds(){return V(this,"modifiedIds",{ids:new Set,hash:""})}}class ot{#An=new Set;constructor({ownerDocument:e=globalThis.document,styleElement:t=null}){this._document=e,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),this.#An.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:e,disableFontFace:t,_inspectFont:n}){if(e&&!this.#An.has(e.loadedName)){if(H(!t,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:t,src:r,style:o}=e,i=new FontFace(t,r,o);this.addNativeFontFace(i);try{await i.load(),this.#An.add(t),n?.(e)}catch{e.baseFontName,this.removeNativeFontFace(i)}return}L("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo)return void await this.loadSystemFont(e);if(this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw t.family,e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise(t=>{const n=this._queueLoadingCallback(t);this._prepareFontLoadEvent(e,n)})}}get isFontLoadingAPISupported(){return V(this,"isFontLoadingAPISupported",!!this._document?.fonts)}get isSyncFontLoadingSupported(){return V(this,"isSyncFontLoadingSupported",r||te.platform.isFirefox)}_queueLoadingCallback(e){const{loadingRequests:t}=this,n={done:!1,complete:function(){for(H(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.length>0&&t[0].done;){const e=t.shift();setTimeout(e.callback,0)}},callback:e};return t.push(n),n}get _loadTestFont(){return V(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function r(e,t,n,r){return e.substring(0,t)+r+e.substring(t+n)}let o,i;const a=this._document.createElement("canvas");a.width=1,a.height=1;const s=a.getContext("2d");let l=0;const c=`lt${Date.now()}${this.loadTestFontId++}`;let d=this._loadTestFont;d=r(d,976,c.length,c);const u=1482184792;let h=n(d,16);for(o=0,i=c.length-3;o>24&255,p>>16&255,p>>8&255,255&p)));const f=`@font-face {font-family:"${c}";src:${`url(data:font/opentype;base64,${btoa(d)});`}}`;this.insertRule(f);const m=this._document.createElement("div");m.style.visibility="hidden",m.style.width=m.style.height="10px",m.style.position="absolute",m.style.top=m.style.left="0px";for(const t of[e.loadedName,c]){const e=this._document.createElement("span");e.textContent="Hi",e.style.fontFamily=t,m.append(e)}this._document.body.append(m),function e(t,n){if(++l>30)return void n();s.font="30px "+t,s.fillText(".",0,20),s.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(c,()=>{m.remove(),t.complete()})}}class it{#Sn;constructor(e,t=null,n,r){this.compiledGlyphs=Object.create(null),this.#Sn=e,this._inspectFont=t,n&&Object.assign(this,n),r&&(this.charProcOperatorList=r)}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(this.cssFontInfo){const t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}else e=new FontFace(this.loadedName,this.data,{});return this._inspectFont?.(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=`url(data:${this.mimetype};base64,${ce(this.data)});`;let t;if(this.cssFontInfo){let n=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(n+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),t=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${n}src:${e}}`}else t=`@font-face {font-family:"${this.loadedName}";src:${e}}`;return this._inspectFont?.(this,e),t}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];const n=this.loadedName+"_path_"+t;let r;try{r=e.get(n)}catch(e){}const o=new Path2D(r||"");return this.fontExtraProperties||e.delete(n),this.compiledGlyphs[t]=o}get black(){return this.#Sn.black}get bold(){return this.#Sn.bold}get disableFontFace(){return this.#Sn.disableFontFace??!1}get fontExtraProperties(){return this.#Sn.fontExtraProperties??!1}get isInvalidPDFjsFont(){return this.#Sn.isInvalidPDFjsFont}get isType3Font(){return this.#Sn.isType3Font}get italic(){return this.#Sn.italic}get missingFile(){return this.#Sn.missingFile}get remeasure(){return this.#Sn.remeasure}get vertical(){return this.#Sn.vertical}get ascent(){return this.#Sn.ascent}get defaultWidth(){return this.#Sn.defaultWidth}get descent(){return this.#Sn.descent}get bbox(){return this.#Sn.bbox}get fontMatrix(){return this.#Sn.fontMatrix}get fallbackName(){return this.#Sn.fallbackName}get loadedName(){return this.#Sn.loadedName}get mimetype(){return this.#Sn.mimetype}get name(){return this.#Sn.name}get data(){return this.#Sn.data}clearData(){this.#Sn.clearData()}get cssFontInfo(){return this.#Sn.cssFontInfo}get systemFontInfo(){return this.#Sn.systemFontInfo}get defaultVMetrics(){return this.#Sn.defaultVMetrics}}function at(e){if("string"!=typeof e)return null;if(e.endsWith("/"))return e;throw new Error(`Invalid factory url: "${e}" must include trailing slash.`)}const st=e=>"object"==typeof e&&Number.isInteger(e?.num)&&e.num>=0&&Number.isInteger(e?.gen)&&e.gen>=0,lt=function(e,t,n){if(!Array.isArray(n)||n.length<2)return!1;const[r,o,...i]=n;if(!e(r)&&!Number.isInteger(r))return!1;if(!t(o))return!1;const a=i.length;let s=!0;switch(o.name){case"XYZ":if(a<2||a>3)return!1;break;case"Fit":case"FitB":return 0===a;case"FitH":case"FitBH":case"FitV":case"FitBV":if(a>1)return!1;break;case"FitR":if(4!==a)return!1;s=!1;break;default:return!1}for(const e of i)if(!("number"==typeof e||s&&null===e))return!1;return!0}.bind(null,st,e=>"object"==typeof e&&"string"==typeof e?.name);class ct{#Cn=new Map;#$n=Promise.resolve();postMessage(e,t){const n={data:structuredClone(e,t?{transfer:t}:null)};this.#$n.then(()=>{for(const[e]of this.#Cn)e.call(this,n)})}addEventListener(e,t,n=null){let r=null;if(n?.signal instanceof AbortSignal){const{signal:o}=n;if(o.aborted)return;const i=()=>this.removeEventListener(e,t);r=()=>o.removeEventListener("abort",i),o.addEventListener("abort",i)}this.#Cn.set(t,r)}removeEventListener(e,t){const n=this.#Cn.get(t);n?.(),this.#Cn.delete(t)}terminate(){for(const[,e]of this.#Cn)e?.();this.#Cn.clear()}}const dt=1,ut=2,ht=1,pt=2,ft=3,mt=4,gt=5,bt=6,vt=7,yt=8;function xt(){}function wt(e){if(e instanceof J||e instanceof K||e instanceof q||e instanceof Y||e instanceof X)return e;switch(e instanceof Error||"object"==typeof e&&null!==e||L('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new J(e.message);case"InvalidPDFException":return new K(e.message);case"PasswordException":return new q(e.message,e.code);case"ResponseException":return new Y(e.message,e.status,e.missing);case"UnknownErrorException":return new X(e.message,e.details)}return new X(e.message,e.toString())}class At{#kn=new AbortController;constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,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),n.addEventListener("message",this.#En.bind(this),{signal:this.#kn.signal})}#En({data:e}){if(e.targetName!==this.sourceName)return;if(e.stream)return void this.#On(e);if(e.callback){const t=e.callbackId,n=this.callbackCapabilities[t];if(!n)throw new Error(`Cannot resolve callback ${t}`);if(delete this.callbackCapabilities[t],e.callback===dt)n.resolve(e.data);else{if(e.callback!==ut)throw new Error("Unexpected callback case");n.reject(wt(e.reason))}return}const t=this.actionHandler[e.action];if(!t)throw new Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){const n=this.sourceName,r=e.sourceName,o=this.comObj;return void Promise.try(t,e.data).then(function(t){o.postMessage({sourceName:n,targetName:r,callback:dt,callbackId:e.callbackId,data:t})},function(t){o.postMessage({sourceName:n,targetName:r,callback:ut,callbackId:e.callbackId,reason:wt(t)})})}e.streamId?this.#Pn(e):t(e.data)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const r=this.callbackId++,o=Promise.withResolvers();this.callbackCapabilities[r]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:t},n)}catch(e){o.reject(e)}return o.promise}sendWithStream(e,t,n,r){const o=this.streamId++,i=this.sourceName,a=this.targetName,s=this.comObj;return new ReadableStream({start:n=>{const l=Promise.withResolvers();return this.streamControllers[o]={controller:n,startCall:l,pullCall:null,cancelCall:null,isClosed:!1},s.postMessage({sourceName:i,targetName:a,action:e,streamId:o,data:t,desiredSize:n.desiredSize},r),l.promise},pull:e=>{const t=Promise.withResolvers();return this.streamControllers[o].pullCall=t,s.postMessage({sourceName:i,targetName:a,stream:bt,streamId:o,desiredSize:e.desiredSize}),t.promise},cancel:e=>{H(e instanceof Error,"cancel must have a valid reason");const t=Promise.withResolvers();return this.streamControllers[o].cancelCall=t,this.streamControllers[o].isClosed=!0,s.postMessage({sourceName:i,targetName:a,stream:ht,streamId:o,reason:wt(e)}),t.promise}},n)}#Pn(e){const t=e.streamId,n=this.sourceName,r=e.sourceName,o=this.comObj,i=this,a=this.actionHandler[e.action],s={enqueue(e,i=1,a){if(this.isCancelled)return;const s=this.desiredSize;this.desiredSize-=i,s>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),o.postMessage({sourceName:n,targetName:r,stream:mt,streamId:t,chunk:e},a)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:r,stream:ft,streamId:t}),delete i.streamSinks[t])},error(e){H(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:r,stream:gt,streamId:t,reason:wt(e)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};s.sinkCapability.resolve(),s.ready=s.sinkCapability.promise,this.streamSinks[t]=s,Promise.try(a,e.data,s).then(function(){o.postMessage({sourceName:n,targetName:r,stream:yt,streamId:t,success:!0})},function(e){o.postMessage({sourceName:n,targetName:r,stream:yt,streamId:t,reason:wt(e)})})}#On(e){const t=e.streamId,n=this.sourceName,r=e.sourceName,o=this.comObj,i=this.streamControllers[t],a=this.streamSinks[t];switch(e.stream){case yt:e.success?i.startCall.resolve():i.startCall.reject(wt(e.reason));break;case vt:e.success?i.pullCall.resolve():i.pullCall.reject(wt(e.reason));break;case bt:if(!a){o.postMessage({sourceName:n,targetName:r,stream:vt,streamId:t,success:!0});break}a.desiredSize<=0&&e.desiredSize>0&&a.sinkCapability.resolve(),a.desiredSize=e.desiredSize,Promise.try(a.onPull||xt).then(function(){o.postMessage({sourceName:n,targetName:r,stream:vt,streamId:t,success:!0})},function(e){o.postMessage({sourceName:n,targetName:r,stream:vt,streamId:t,reason:wt(e)})});break;case mt:if(H(i,"enqueue should have stream controller"),i.isClosed)break;i.controller.enqueue(e.chunk);break;case ft:if(H(i,"close should have stream controller"),i.isClosed)break;i.isClosed=!0,i.controller.close(),this.#jn(i,t);break;case gt:H(i,"error should have stream controller"),i.controller.error(wt(e.reason)),this.#jn(i,t);break;case pt:e.success?i.cancelCall.resolve():i.cancelCall.reject(wt(e.reason)),this.#jn(i,t);break;case ht:if(!a)break;const s=wt(e.reason);Promise.try(a.onCancel||xt,s).then(function(){o.postMessage({sourceName:n,targetName:r,stream:pt,streamId:t,success:!0})},function(e){o.postMessage({sourceName:n,targetName:r,stream:pt,streamId:t,reason:wt(e)})}),a.sinkCapability.reject(s),a.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async#jn(e,t){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[t]}destroy(){this.#kn?.abort(),this.#kn=null}}class St{#In=!1;constructor({enableHWA:e=!1}){this.#In=e}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d",{willReadFrequently:!this.#In})}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){L("Abstract method `_createCanvas` called.")}}class Ct extends St{constructor({ownerDocument:e=globalThis.document,enableHWA:t=!1}){super({enableHWA:t}),this._document=e}_createCanvas(e,t){const n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}class $t{constructor({baseUrl:e=null,isCompressed:t=!0}){this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!e)throw new Error("CMap name must be specified.");const t=this.baseUrl+e+(this.isCompressed?".bcmap":"");return this._fetch(t).then(e=>({cMapData:e,isCompressed:this.isCompressed})).catch(e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${t}`)})}async _fetch(e){L("Abstract method `_fetch` called.")}}class kt extends $t{async _fetch(e){const t=await fe(e,this.isCompressed?"arraybuffer":"text");return t instanceof ArrayBuffer?new Uint8Array(t):ee(t)}}class Et{addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addAlphaFilter(e){return"none"}addLuminosityFilter(e){return"none"}addHighlightHCMFilter(e,t,n,r,o){return"none"}destroy(e=!1){}}class Ot extends Et{#Mn;#Tn;#_n;#Rn;#Bn;#Fn;#w=0;constructor({docId:e,ownerDocument:t=globalThis.document}){super(),this.#Rn=e,this.#Bn=t}get#S(){return this.#Tn||=new Map}get#Dn(){return this.#Fn||=new Map}get#zn(){if(!this.#_n){const e=this.#Bn.createElement("div"),{style:t}=e;t.visibility="hidden",t.contain="strict",t.width=t.height=0,t.position="absolute",t.top=t.left=0,t.zIndex=-1;const n=this.#Bn.createElementNS(he,"svg");n.setAttribute("width",0),n.setAttribute("height",0),this.#_n=this.#Bn.createElementNS(he,"defs"),e.append(n),n.append(this.#_n),this.#Bn.body.append(e)}return this.#_n}#Nn(e){if(1===e.length){const t=e[0],n=new Array(256);for(let e=0;e<256;e++)n[e]=t[e]/255;const r=n.join(",");return[r,r,r]}const[t,n,r]=e,o=new Array(256),i=new Array(256),a=new Array(256);for(let e=0;e<256;e++)o[e]=t[e]/255,i[e]=n[e]/255,a[e]=r[e]/255;return[o.join(","),i.join(","),a.join(",")]}#Ln(e){if(void 0===this.#Mn){this.#Mn="";const e=this.#Bn.URL;e!==this.#Bn.baseURI&&(be(e)||(this.#Mn=U(e,"")))}return`url(${this.#Mn}#${e})`}addFilter(e){if(!e)return"none";let t=this.#S.get(e);if(t)return t;const[n,r,o]=this.#Nn(e),i=1===e.length?n:`${n}${r}${o}`;if(t=this.#S.get(i),t)return this.#S.set(e,t),t;const a=`g_${this.#Rn}_transfer_map_${this.#w++}`,s=this.#Ln(a);this.#S.set(e,s),this.#S.set(i,s);const l=this.#Hn(a);return this.#Wn(n,r,o,l),s}addHCMFilter(e,t){const n=`${e}-${t}`,r="base";let o=this.#Dn.get(r);if(o?.key===n)return o.url;if(o?(o.filter?.remove(),o.key=n,o.url="none",o.filter=null):(o={key:n,url:"none",filter:null},this.#Dn.set(r,o)),!e||!t)return o.url;const i=this.#Un(e);e=re.makeHexColor(...i);const a=this.#Un(t);if(t=re.makeHexColor(...a),this.#zn.style.color="","#000000"===e&&"#ffffff"===t||e===t)return o.url;const s=new Array(256);for(let e=0;e<=255;e++){const t=e/255;s[e]=t<=.03928?t/12.92:((t+.055)/1.055)**2.4}const l=s.join(","),c=`g_${this.#Rn}_hcm_filter`,d=o.filter=this.#Hn(c);this.#Wn(l,l,l,d),this.#Vn(d);const u=(e,t)=>{const n=i[e]/255,r=a[e]/255,o=new Array(t+1);for(let e=0;e<=t;e++)o[e]=n+e/t*(r-n);return o.join(",")};return this.#Wn(u(0,5),u(1,5),u(2,5),d),o.url=this.#Ln(c),o.url}addAlphaFilter(e){let t=this.#S.get(e);if(t)return t;const[n]=this.#Nn([e]),r=`alpha_${n}`;if(t=this.#S.get(r),t)return this.#S.set(e,t),t;const o=`g_${this.#Rn}_alpha_map_${this.#w++}`,i=this.#Ln(o);this.#S.set(e,i),this.#S.set(r,i);const a=this.#Hn(o);return this.#Gn(n,a),i}addLuminosityFilter(e){let t,n,r=this.#S.get(e||"luminosity");if(r)return r;if(e?([t]=this.#Nn([e]),n=`luminosity_${t}`):n="luminosity",r=this.#S.get(n),r)return this.#S.set(e,r),r;const o=`g_${this.#Rn}_luminosity_map_${this.#w++}`,i=this.#Ln(o);this.#S.set(e,i),this.#S.set(n,i);const a=this.#Hn(o);return this.#qn(a),e&&this.#Gn(t,a),i}addHighlightHCMFilter(e,t,n,r,o){const i=`${t}-${n}-${r}-${o}`;let a=this.#Dn.get(e);if(a?.key===i)return a.url;if(a?(a.filter?.remove(),a.key=i,a.url="none",a.filter=null):(a={key:i,url:"none",filter:null},this.#Dn.set(e,a)),!t||!n)return a.url;const[s,l]=[t,n].map(this.#Un.bind(this));let c=Math.round(.2126*s[0]+.7152*s[1]+.0722*s[2]),d=Math.round(.2126*l[0]+.7152*l[1]+.0722*l[2]),[u,h]=[r,o].map(this.#Un.bind(this));d{const r=new Array(256),o=(d-c)/n,i=e/255,a=(t-e)/(255*n);let s=0;for(let e=0;e<=n;e++){const t=Math.round(c+e*o),n=i+e*a;for(let e=s;e<=t;e++)r[e]=n;s=t+1}for(let e=s;e<256;e++)r[e]=r[s-1];return r.join(",")},f=`g_${this.#Rn}_hcm_${e}_filter`,m=a.filter=this.#Hn(f);return this.#Vn(m),this.#Wn(p(u[0],h[0],5),p(u[1],h[1],5),p(u[2],h[2],5),m),a.url=this.#Ln(f),a.url}destroy(e=!1){e&&this.#Fn?.size||(this.#_n?.parentNode.parentNode.remove(),this.#_n=null,this.#Tn?.clear(),this.#Tn=null,this.#Fn?.clear(),this.#Fn=null,this.#w=0)}#qn(e){const t=this.#Bn.createElementNS(he,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),e.append(t)}#Vn(e){const t=this.#Bn.createElementNS(he,"feColorMatrix");t.setAttribute("type","matrix"),t.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"),e.append(t)}#Hn(e){const t=this.#Bn.createElementNS(he,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),this.#zn.append(t),t}#Xn(e,t,n){const r=this.#Bn.createElementNS(he,t);r.setAttribute("type","discrete"),r.setAttribute("tableValues",n),e.append(r)}#Wn(e,t,n,r){const o=this.#Bn.createElementNS(he,"feComponentTransfer");r.append(o),this.#Xn(o,"feFuncR",e),this.#Xn(o,"feFuncG",t),this.#Xn(o,"feFuncB",n)}#Gn(e,t){const n=this.#Bn.createElementNS(he,"feComponentTransfer");t.append(n),this.#Xn(n,"feFuncA",e)}#Un(e){return this.#zn.style.color=e,Ce(getComputedStyle(this.#zn).getPropertyValue("color"))}}class Pt{constructor({baseUrl:e=null}){this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!e)throw new Error("Font filename must be specified.");const t=`${this.baseUrl}${e}`;return this._fetch(t).catch(e=>{throw new Error(`Unable to load font data at: ${t}`)})}async _fetch(e){L("Abstract method `_fetch` called.")}}class jt extends Pt{async _fetch(e){const t=await fe(e,"arraybuffer");return new Uint8Array(t)}}class It{constructor({baseUrl:e=null}){this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error("Ensure that the `wasmUrl` API parameter is provided.");if(!e)throw new Error("Wasm filename must be specified.");const t=`${this.baseUrl}${e}`;return this._fetch(t).catch(e=>{throw new Error(`Unable to load wasm data at: ${t}`)})}async _fetch(e){L("Abstract method `_fetch` called.")}}class Mt extends It{async _fetch(e){const t=await fe(e,"arraybuffer");return new Uint8Array(t)}}async function Tt(e){const t=process.getBuiltinModule("fs"),n=await t.promises.readFile(e);return new Uint8Array(n)}class _t extends Et{}class Rt extends St{_createCanvas(e,t){return process.getBuiltinModule("module").createRequire("file:///E:/GWJ/zcloud_gbs_safety_accountability_list_react/node_modules/pdfjs-dist/build/pdf.mjs")("@napi-rs/canvas").createCanvas(e,t)}}class Bt extends $t{async _fetch(e){return Tt(e)}}class Ft extends Pt{async _fetch(e){return Tt(e)}}class Dt extends It{async _fetch(e){return Tt(e)}}const zt="__forcedDependency",{floor:Nt,ceil:Lt}=Math;function Ht(e,t,n,r,o,i){e[4*t+0]=Math.min(e[4*t+0],n),e[4*t+1]=Math.min(e[4*t+1],r),e[4*t+2]=Math.max(e[4*t+2],o),e[4*t+3]=Math.max(e[4*t+3],i)}const Wt=new Uint32Array(new Uint8Array([255,255,0,0]).buffer)[0];class Ut{#Kn;#Yn;constructor(e,t){this.#Kn=e,this.#Yn=t}get length(){return this.#Kn.length}isEmpty(e){return this.#Kn[e]===Wt}minX(e){return this.#Yn[4*e+0]/256}minY(e){return this.#Yn[4*e+1]/256}maxX(e){return(this.#Yn[4*e+2]+1)/256}maxY(e){return(this.#Yn[4*e+3]+1)/256}}const Vt=(e,t)=>{if(!e)return;let n=e.get(t);return n||(n={dependencies:new Set,isRenderingOperation:!1},e.set(t,n)),n};class Gt{#Qn={__proto__:null};#Jn={__proto__:null,transform:[],moveText:[],sameLineText:[],[zt]:[]};#Zn=new Map;#er=[];#tr=[];#nr=[[1,0,0,1,0,0]];#rr=[-1/0,-1/0,1/0,1/0];#or=new Float64Array([1/0,1/0,-1/0,-1/0]);#ir=-1;#ar=new Set;#sr=new Map;#lr=new Map;#cr;#dr;#ur;#Kn;#hr;constructor(e,t,n=!1){this.#cr=e.width,this.#dr=e.height,this.#pr(t),n&&(this.#hr=new Map)}growOperationsCount(e){e>=this.#Kn.length&&this.#pr(e,this.#Kn)}#pr(e,t){const n=new ArrayBuffer(4*e);this.#ur=new Uint8ClampedArray(n),this.#Kn=new Uint32Array(n),t&&t.length>0?(this.#Kn.set(t),this.#Kn.fill(Wt,t.length)):this.#Kn.fill(Wt)}save(e){return this.#Qn={__proto__:this.#Qn},this.#Jn={__proto__:this.#Jn,transform:{__proto__:this.#Jn.transform},moveText:{__proto__:this.#Jn.moveText},sameLineText:{__proto__:this.#Jn.sameLineText},[zt]:{__proto__:this.#Jn[zt]}},this.#rr={__proto__:this.#rr},this.#er.push(e),this}restore(e){const t=Object.getPrototypeOf(this.#Qn);if(null===t)return this;this.#Qn=t,this.#Jn=Object.getPrototypeOf(this.#Jn),this.#rr=Object.getPrototypeOf(this.#rr);const n=this.#er.pop();return void 0!==n&&(Vt(this.#hr,e)?.dependencies.add(n),this.#Kn[e]=this.#Kn[n]),this}recordOpenMarker(e){return this.#er.push(e),this}getOpenMarker(){return 0===this.#er.length?null:this.#er.at(-1)}recordCloseMarker(e){const t=this.#er.pop();return void 0!==t&&(Vt(this.#hr,e)?.dependencies.add(t),this.#Kn[e]=this.#Kn[t]),this}beginMarkedContent(e){return this.#tr.push(e),this}endMarkedContent(e){const t=this.#tr.pop();return void 0!==t&&(Vt(this.#hr,e)?.dependencies.add(t),this.#Kn[e]=this.#Kn[t]),this}pushBaseTransform(e){return this.#nr.push(re.multiplyByDOMMatrix(this.#nr.at(-1),e.getTransform())),this}popBaseTransform(){return this.#nr.length>1&&this.#nr.pop(),this}recordSimpleData(e,t){return this.#Qn[e]=t,this}recordIncrementalData(e,t){return this.#Jn[e].push(t),this}resetIncrementalData(e,t){return this.#Jn[e].length=0,this}recordNamedData(e,t){return this.#Zn.set(e,t),this}recordSimpleDataFromNamed(e,t,n){this.#Qn[e]=this.#Zn.get(t)??n}recordFutureForcedDependency(e,t){return this.recordIncrementalData(zt,t),this}inheritSimpleDataAsFutureForcedDependencies(e){for(const t of e)t in this.#Qn&&this.recordFutureForcedDependency(t,this.#Qn[t]);return this}inheritPendingDependenciesAsFutureForcedDependencies(){for(const e of this.#ar)this.recordFutureForcedDependency(zt,e);return this}resetBBox(e){return this.#ir!==e&&(this.#ir=e,this.#or[0]=1/0,this.#or[1]=1/0,this.#or[2]=-1/0,this.#or[3]=-1/0),this}recordClipBox(e,t,n,r,o,i){const a=re.multiplyByDOMMatrix(this.#nr.at(-1),t.getTransform()),s=[1/0,1/0,-1/0,-1/0];re.axialAlignedBoundingBox([n,o,r,i],a,s);const l=re.intersect(this.#rr,s);return l?(this.#rr[0]=l[0],this.#rr[1]=l[1],this.#rr[2]=l[2],this.#rr[3]=l[3]):(this.#rr[0]=this.#rr[1]=1/0,this.#rr[2]=this.#rr[3]=-1/0),this}recordBBox(e,t,n,r,o,i){const a=this.#rr;if(a[0]===1/0)return this;const s=re.multiplyByDOMMatrix(this.#nr.at(-1),t.getTransform());if(a[0]===-1/0)return re.axialAlignedBoundingBox([n,o,r,i],s,this.#or),this;const l=[1/0,1/0,-1/0,-1/0];return re.axialAlignedBoundingBox([n,o,r,i],s,l),this.#or[0]=Math.min(this.#or[0],Math.max(l[0],a[0])),this.#or[1]=Math.min(this.#or[1],Math.max(l[1],a[1])),this.#or[2]=Math.max(this.#or[2],Math.min(l[2],a[2])),this.#or[3]=Math.max(this.#or[3],Math.min(l[3],a[3])),this}recordCharacterBBox(e,t,n,r=1,o=0,i=0,a){const s=n.bbox;let l,c;if(s&&(l=s[2]!==s[0]&&s[3]!==s[1]&&this.#lr.get(n),!1!==l&&(c=[0,0,0,0],re.axialAlignedBoundingBox(s,n.fontMatrix,c),1===r&&0===o&&0===i||re.scaleMinMax([r,0,0,-r,o,i],c),l)))return this.recordBBox(e,t,c[0],c[2],c[1],c[3]);if(!a)return this.recordFullPageBBox(e);const d=a();return s&&c&&void 0===l&&(l=c[0]<=o-d.actualBoundingBoxLeft&&c[2]>=o+d.actualBoundingBoxRight&&c[1]<=i-d.actualBoundingBoxAscent&&c[3]>=i+d.actualBoundingBoxDescent,this.#lr.set(n,l),l)?this.recordBBox(e,t,c[0],c[2],c[1],c[3]):this.recordBBox(e,t,o-d.actualBoundingBoxLeft,o+d.actualBoundingBoxRight,i-d.actualBoundingBoxAscent,i+d.actualBoundingBoxDescent)}recordFullPageBBox(e){return this.#or[0]=Math.max(0,this.#rr[0]),this.#or[1]=Math.max(0,this.#rr[1]),this.#or[2]=Math.min(this.#cr,this.#rr[2]),this.#or[3]=Math.min(this.#dr,this.#rr[3]),this}getSimpleIndex(e){return this.#Qn[e]}recordDependencies(e,t){const n=this.#ar,r=this.#Qn,o=this.#Jn;for(const e of t)e in this.#Qn?n.add(r[e]):e in o&&o[e].forEach(n.add,n);return this}recordNamedDependency(e,t){return this.#Zn.has(t)&&this.#ar.add(this.#Zn.get(t)),this}recordOperation(e,t=!1){if(this.recordDependencies(e,[zt]),this.#hr){const t=Vt(this.#hr,e),{dependencies:n}=t;this.#ar.forEach(n.add,n),this.#er.forEach(n.add,n),this.#tr.forEach(n.add,n),n.delete(e),t.isRenderingOperation=!0}if(this.#ir===e){const n=Nt(256*this.#or[0]/this.#cr),r=Nt(256*this.#or[1]/this.#dr),o=Lt(256*this.#or[2]/this.#cr),i=Lt(256*this.#or[3]/this.#dr);Ht(this.#ur,e,n,r,o,i);for(const t of this.#ar)t!==e&&Ht(this.#ur,t,n,r,o,i);for(const t of this.#er)t!==e&&Ht(this.#ur,t,n,r,o,i);for(const t of this.#tr)t!==e&&Ht(this.#ur,t,n,r,o,i);t||(this.#ar.clear(),this.#ir=-1)}return this}recordShowTextOperation(e,t=!1){const n=Array.from(this.#ar);this.recordOperation(e,t),this.recordIncrementalData("sameLineText",e);for(const e of n)this.recordIncrementalData("sameLineText",e);return this}bboxToClipBoxDropOperation(e,t=!1){return this.#ir===e&&(this.#ir=-1,this.#rr[0]=Math.max(this.#rr[0],this.#or[0]),this.#rr[1]=Math.max(this.#rr[1],this.#or[1]),this.#rr[2]=Math.min(this.#rr[2],this.#or[2]),this.#rr[3]=Math.min(this.#rr[3],this.#or[3]),t||this.#ar.clear()),this}_takePendingDependencies(){const e=this.#ar;return this.#ar=new Set,e}_extractOperation(e){const t=this.#sr.get(e);return this.#sr.delete(e),t}_pushPendingDependencies(e){for(const t of e)this.#ar.add(t)}take(){return this.#lr.clear(),new Ut(this.#Kn,this.#ur)}takeDebugMetadata(){return this.#hr}}class qt{#fr;#mr;#gr;#br=0;#vr=0;constructor(e,t,n){if(e instanceof qt&&e.#gr===!!n)return e;this.#fr=e,this.#mr=t,this.#gr=!!n}growOperationsCount(){throw new Error("Unreachable")}save(e){return this.#vr++,this.#fr.save(this.#mr),this}restore(e){return this.#vr>0&&(this.#fr.restore(this.#mr),this.#vr--),this}recordOpenMarker(e){return this.#br++,this}getOpenMarker(){return this.#br>0?this.#mr:this.#fr.getOpenMarker()}recordCloseMarker(e){return this.#br--,this}beginMarkedContent(e){return this}endMarkedContent(e){return this}pushBaseTransform(e){return this.#fr.pushBaseTransform(e),this}popBaseTransform(){return this.#fr.popBaseTransform(),this}recordSimpleData(e,t){return this.#fr.recordSimpleData(e,this.#mr),this}recordIncrementalData(e,t){return this.#fr.recordIncrementalData(e,this.#mr),this}resetIncrementalData(e,t){return this.#fr.resetIncrementalData(e,this.#mr),this}recordNamedData(e,t){return this}recordSimpleDataFromNamed(e,t,n){return this.#fr.recordSimpleDataFromNamed(e,t,this.#mr),this}recordFutureForcedDependency(e,t){return this.#fr.recordFutureForcedDependency(e,this.#mr),this}inheritSimpleDataAsFutureForcedDependencies(e){return this.#fr.inheritSimpleDataAsFutureForcedDependencies(e),this}inheritPendingDependenciesAsFutureForcedDependencies(){return this.#fr.inheritPendingDependenciesAsFutureForcedDependencies(),this}resetBBox(e){return this.#gr||this.#fr.resetBBox(this.#mr),this}recordClipBox(e,t,n,r,o,i){return this.#gr||this.#fr.recordClipBox(this.#mr,t,n,r,o,i),this}recordBBox(e,t,n,r,o,i){return this.#gr||this.#fr.recordBBox(this.#mr,t,n,r,o,i),this}recordCharacterBBox(e,t,n,r,o,i,a){return this.#gr||this.#fr.recordCharacterBBox(this.#mr,t,n,r,o,i,a),this}recordFullPageBBox(e){return this.#gr||this.#fr.recordFullPageBBox(this.#mr),this}getSimpleIndex(e){return this.#fr.getSimpleIndex(e)}recordDependencies(e,t){return this.#fr.recordDependencies(this.#mr,t),this}recordNamedDependency(e,t){return this.#fr.recordNamedDependency(this.#mr,t),this}recordOperation(e){return this.#fr.recordOperation(this.#mr,!0),this}recordShowTextOperation(e){return this.#fr.recordShowTextOperation(this.#mr,!0),this}bboxToClipBoxDropOperation(e){return this.#gr||this.#fr.bboxToClipBoxDropOperation(this.#mr,!0),this}take(){throw new Error("Unreachable")}takeDebugMetadata(){throw new Error("Unreachable")}}const Xt=["path","transform","filter","strokeColor","strokeAlpha","lineWidth","lineCap","lineJoin","miterLimit","dash"],Kt=["path","transform","filter","fillColor","fillAlpha","globalCompositeOperation","SMask"],Yt=["transform","SMask","filter","fillAlpha","strokeAlpha","globalCompositeOperation"],Qt=["filter","fillColor","fillAlpha"],Jt=["transform","leading","charSpacing","wordSpacing","hScale","textRise","moveText","textMatrix","font","fontObj","filter","fillColor","textRenderingMode","SMask","fillAlpha","strokeAlpha","globalCompositeOperation","sameLineText"],Zt=["transform"],en=["transform","fillColor"],tn="Fill",nn="Stroke",rn="Shading";function on(e,t){if(!t)return;const n=t[2]-t[0],r=t[3]-t[1],o=new Path2D;o.rect(t[0],t[1],n,r),e.clip(o)}class an{isModifyingCurrentTransform(){return!1}getPattern(){L("Abstract method `getPattern` called.")}}class sn extends an{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const e of this._colorStops)t.addColorStop(e[0],e[1]);return t}getPattern(e,t,n,r){let o;if(r===nn||r===tn){const i=t.current.getClippedPathBoundingBox(r,$e(e))||[0,0,0,0],a=Math.ceil(i[2]-i[0])||1,s=Math.ceil(i[3]-i[1])||1,l=t.cachedCanvases.getCanvas("pattern",a,s),c=l.context;c.clearRect(0,0,c.canvas.width,c.canvas.height),c.beginPath(),c.rect(0,0,c.canvas.width,c.canvas.height),c.translate(-i[0],-i[1]),n=re.transform(n,[1,0,0,1,i[0],i[1]]),c.transform(...t.baseTransform),this.matrix&&c.transform(...this.matrix),on(c,this._bbox),c.fillStyle=this._createGradient(c),c.fill(),o=e.createPattern(l.canvas,"no-repeat");const d=new DOMMatrix(n);o.setTransform(d)}else on(e,this._bbox),o=this._createGradient(e);return o}}function ln(e,t,n,r,o,i,a,s){const l=t.coords,c=t.colors,d=e.data,u=4*e.width;let h;l[n+1]>l[r+1]&&(h=n,n=r,r=h,h=i,i=a,a=h),l[r+1]>l[o+1]&&(h=r,r=o,o=h,h=a,a=s,s=h),l[n+1]>l[r+1]&&(h=n,n=r,r=h,h=i,i=a,a=h);const p=(l[n]+t.offsetX)*t.scaleX,f=(l[n+1]+t.offsetY)*t.scaleY,m=(l[r]+t.offsetX)*t.scaleX,g=(l[r+1]+t.offsetY)*t.scaleY,b=(l[o]+t.offsetX)*t.scaleX,v=(l[o+1]+t.offsetY)*t.scaleY;if(f>=v)return;const y=c[i],x=c[i+1],w=c[i+2],A=c[a],S=c[a+1],C=c[a+2],$=c[s],k=c[s+1],E=c[s+2],O=Math.round(f),P=Math.round(v);let j,I,M,T,_,R,B,F;for(let e=O;e<=P;e++){if(ev?1:g===v?0:(g-e)/(g-v),j=m-(m-b)*t,I=A-(A-$)*t,M=S-(S-k)*t,T=C-(C-E)*t}let t;t=ev?1:(f-e)/(f-v),_=p-(p-b)*t,R=y-(y-$)*t,B=x-(x-k)*t,F=w-(w-E)*t;const n=Math.round(Math.min(j,_)),r=Math.round(Math.max(j,_));let o=u*e+4*n;for(let e=n;e<=r;e++)t=(j-e)/(j-_),t<0?t=0:t>1&&(t=1),d[o++]=I-(I-R)*t|0,d[o++]=M-(M-B)*t|0,d[o++]=T-(T-F)*t|0,d[o++]=255}}function cn(e,t,n){const r=t.coords,o=t.colors;let i,a;switch(t.type){case"lattice":const s=t.verticesPerRow,l=Math.floor(r.length/s)-1,c=s-1;for(i=0;i=Math.ceil(f*y)?w=l:S=!0,k>=Math.ceil(m*x)?A=c:C=!0;const E=this.getSizeAndScale(w,this.ctx.canvas.width,y),O=this.getSizeAndScale(A,this.ctx.canvas.height,x),P=e.cachedCanvases.getCanvas("pattern",E.size,O.size),j=P.context,I=s.createCanvasGraphics(j,t);if(I.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(I,o,a),j.translate(-E.scale*d,-O.scale*u),I.transform(0,E.scale,0,0,O.scale,0,0),j.save(),I.dependencyTracker?.save(),this.clipBbox(I,d,u,h,p),I.baseTransform=$e(I.ctx),I.executeOperatorList(r),I.endDrawing(),I.dependencyTracker?.restore(),j.restore(),S||C){const t=P.canvas;S&&(w=l),C&&(A=c);const n=this.getSizeAndScale(w,this.ctx.canvas.width,y),r=this.getSizeAndScale(A,this.ctx.canvas.height,x),o=n.size,i=r.size,a=e.cachedCanvases.getCanvas("pattern-workaround",o,i),s=a.context,h=S?Math.floor(f/l):0,p=C?Math.floor(m/c):0;for(let e=0;e<=h;e++)for(let n=0;n<=p;n++)s.drawImage(t,o*e,i*n,o,i,0,0,o,i);return{canvas:a.canvas,scaleX:n.scale,scaleY:r.scale,offsetX:d,offsetY:u}}return{canvas:P.canvas,scaleX:E.scale,scaleY:O.scale,offsetX:d,offsetY:u}}getSizeAndScale(e,t,n){const r=Math.max(fn.MAX_PATTERN_SIZE,t);let o=Math.ceil(e*n);return o>=r?o=r:n=o/e,{scale:n,size:o}}clipBbox(e,t,n,r,o){const i=r-t,a=o-n;e.ctx.rect(t,n,i,a),re.axialAlignedBoundingBox([t,n,r,o],$e(e.ctx),e.current.minMax),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){const r=e.ctx,o=e.current;switch(t){case hn:const{fillStyle:e,strokeStyle:i}=this.ctx;r.fillStyle=o.fillColor=e,r.strokeStyle=o.strokeColor=i;break;case pn:r.fillStyle=r.strokeStyle=n,o.fillColor=o.strokeColor=n;break;default:throw new Q(`Unsupported paint type: ${t}`)}}isModifyingCurrentTransform(){return!1}getPattern(e,t,n,r,o){let i=n;r!==rn&&(i=re.transform(i,t.baseTransform),this.matrix&&(i=re.transform(i,this.matrix)));const a=this.createPatternCanvas(t,o);let s=new DOMMatrix(i);s=s.translate(a.offsetX,a.offsetY),s=s.scale(1/a.scaleX,1/a.scaleY);const l=e.createPattern(a.canvas,"repeat");return l.setTransform(s),l}}function mn({src:e,srcPos:t=0,dest:n,width:r,height:o,nonBlackColor:i=4294967295,inverseDecode:a=!1}){const s=te.isLittleEndian?4278190080:255,[l,c]=a?[i,s]:[s,i],d=r>>3,u=7&r,h=e.length;n=new Uint32Array(n.buffer);let p=0;for(let r=0;r>2),m=n.length,g=r+7>>3,b=4294967295,v=te.isLittleEndian?4278190080:255;for(h=0;hg?r:8*e-7,a=-8&i;let s=0,u=0;for(;o>=1}for(;l=i&&(f=o,m=r*f),l=0,p=m;p--;)u[l++]=d[c++],u[l++]=d[c++],u[l++]=d[c++],u[l++]=255;e.putImageData(s,0,h*gn)}}}function Cn(e,t){if(t.bitmap)return void e.drawImage(t.bitmap,0,0);const n=t.height,r=t.width,o=n%gn,i=(n-o)/gn,a=0===o?i:i+1,s=e.createImageData(r,gn);let l=0;const c=t.data,d=s.data;for(let t=0;t10&&"function"==typeof n,d=c?Date.now()+15:0;let u=0;const h=this.commonObjs,p=this.objs;let f,m;for(;;){if(void 0!==r&&s===r.nextBreakPoint)return r.breakIt(s,n),s;if(!o||o(s))if(f=a[s],m=i[s]??null,f!==M.dependency)null===m?this[f](s):this[f](s,...m);else for(const e of m){this.dependencyTracker?.recordNamedData(e,s);const t=e.startsWith("g_")?h:p;if(!t.has(e))return t.get(e,n),s}if(s++,s===l)return s;if(c&&++u>10){if(Date.now()>d)return n(),s;u=0}}}#yr(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,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)}endDrawing(){this.#yr(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.#xr()}#xr(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==e){const t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}_scaleImage(e,t){const n=e.width??e.displayWidth,r=e.height??e.displayHeight;let o,i,a=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),l=n,c=r,d="prescale1";for(;a>2&&l>1||s>2&&c>1;){let t=l,n=c;a>2&&l>1&&(t=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2),a/=l/t),s>2&&c>1&&(n=c>=16384?Math.floor(c/2)-1||1:Math.ceil(c)/2,s/=c/n),o=this.cachedCanvases.getCanvas(d,t,n),i=o.context,i.clearRect(0,0,t,n),i.drawImage(e,0,0,l,c,0,0,t,n),e=o.canvas,l=t,c=n,d="prescale1"===d?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e,t){const n=this.ctx,{width:r,height:o}=t,i=this.current.fillColor,a=this.current.patternFill,s=$e(n);let l,c,d,u;if((t.bitmap||t.data)&&t.count>1){const n=t.bitmap||t.data.buffer;c=JSON.stringify(a?s:[s.slice(0,4),i]),l=this._cachedBitmapsMap.get(n),l||(l=new Map,this._cachedBitmapsMap.set(n,l));const r=l.get(c);if(r&&!a){const t=Math.round(Math.min(s[0],s[2])+s[4]),n=Math.round(Math.min(s[1],s[3])+s[5]);return this.dependencyTracker?.recordDependencies(e,en),{canvas:r,offsetX:t,offsetY:n}}d=r}d||(u=this.cachedCanvases.getCanvas("maskCanvas",r,o),Cn(u.context,t));let h=re.transform(s,[1/r,0,0,-1/o,0,0]);h=re.transform(h,[1,0,0,1,0,-o]);const p=yn.slice();re.axialAlignedBoundingBox([0,0,r,o],h,p);const[f,m,g,b]=p,v=Math.round(g-f)||1,y=Math.round(b-m)||1,x=this.cachedCanvases.getCanvas("fillCanvas",v,y),w=x.context,A=f,S=m;w.translate(-A,-S),w.transform(...h),d||(d=this._scaleImage(u.canvas,ke(w)),d=d.img,l&&a&&l.set(c,d)),w.imageSmoothingEnabled=En($e(w),t.interpolate),wn(w,d,0,0,d.width,d.height,0,0,r,o),w.globalCompositeOperation="source-in";const C=re.transform(ke(w),[1,0,0,1,-A,-S]);return w.fillStyle=a?i.getPattern(n,this,C,tn,e):i,w.fillRect(0,0,r,o),l&&!a&&(this.cachedCanvases.delete("fillCanvas"),l.set(c,x.canvas)),this.dependencyTracker?.recordDependencies(e,en),{canvas:x.canvas,offsetX:Math.round(A),offsetY:Math.round(S)}}setLineWidth(e,t){this.dependencyTracker?.recordSimpleData("lineWidth",e),t!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=t,this.ctx.lineWidth=t}setLineCap(e,t){this.dependencyTracker?.recordSimpleData("lineCap",e),this.ctx.lineCap=On[t]}setLineJoin(e,t){this.dependencyTracker?.recordSimpleData("lineJoin",e),this.ctx.lineJoin=Pn[t]}setMiterLimit(e,t){this.dependencyTracker?.recordSimpleData("miterLimit",e),this.ctx.miterLimit=t}setDash(e,t,n){this.dependencyTracker?.recordSimpleData("dash",e);const r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(t),r.lineDashOffset=n)}setRenderingIntent(e,t){}setFlatness(e,t){}setGState(e,t){for(const[n,r]of t)switch(n){case"LW":this.setLineWidth(e,r);break;case"LC":this.setLineCap(e,r);break;case"LJ":this.setLineJoin(e,r);break;case"ML":this.setMiterLimit(e,r);break;case"D":this.setDash(e,r[0],r[1]);break;case"RI":this.setRenderingIntent(e,r);break;case"FL":this.setFlatness(e,r);break;case"Font":this.setFont(e,r[0],r[1]);break;case"CA":this.dependencyTracker?.recordSimpleData("strokeAlpha",e),this.current.strokeAlpha=r;break;case"ca":this.dependencyTracker?.recordSimpleData("fillAlpha",e),this.ctx.globalAlpha=this.current.fillAlpha=r;break;case"BM":this.dependencyTracker?.recordSimpleData("globalCompositeOperation",e),this.ctx.globalCompositeOperation=r;break;case"SMask":this.dependencyTracker?.recordSimpleData("SMask",e),this.current.activeSMask=r?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.dependencyTracker?.recordSimpleData("filter",e),this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(r)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(e){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const t=this.ctx.canvas.width,n=this.ctx.canvas.height,r="smaskGroupAt"+this.groupLevel,o=this.cachedCanvases.getCanvas(r,t,n);this.suspendedCtx=this.ctx;const i=this.ctx=o.context;i.setTransform(this.suspendedCtx.getTransform()),$n(this.suspendedCtx,i),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,n){t.translate(e,n),this.__originalTranslate(e,n)},e.scale=function(e,n){t.scale(e,n),this.__originalScale(e,n)},e.transform=function(e,n,r,o,i,a){t.transform(e,n,r,o,i,a),this.__originalTransform(e,n,r,o,i,a)},e.setTransform=function(e,n,r,o,i,a){t.setTransform(e,n,r,o,i,a),this.__originalSetTransform(e,n,r,o,i,a)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,n){t.moveTo(e,n),this.__originalMoveTo(e,n)},e.lineTo=function(e,n){t.lineTo(e,n),this.__originalLineTo(e,n)},e.bezierCurveTo=function(e,n,r,o,i,a){t.bezierCurveTo(e,n,r,o,i,a),this.__originalBezierCurveTo(e,n,r,o,i,a)},e.rect=function(e,n,r,o){t.rect(e,n,r,o),this.__originalRect(e,n,r,o)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(i,this.suspendedCtx),this.setGState(e,[["BM","source-over"]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),$n(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask,n=this.suspendedCtx;this.composeSMask(n,t,this.ctx,e),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()}composeSMask(e,t,n,r){const o=r[0],i=r[1],a=r[2]-o,s=r[3]-i;0!==a&&0!==s&&(this.genericComposeSMask(t.context,n,a,s,t.subtype,t.backdrop,t.transferMap,o,i,t.offsetX,t.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(n.canvas,0,0),e.restore())}genericComposeSMask(e,t,n,r,o,i,a,s,l,c,d){let u=e.canvas,h=s-c,p=l-d;if(i)if(h<0||p<0||h+n>u.width||p+r>u.height){const e=this.cachedCanvases.getCanvas("maskExtension",n,r),t=e.context;t.drawImage(u,-h,-p),t.globalCompositeOperation="destination-atop",t.fillStyle=i,t.fillRect(0,0,n,r),t.globalCompositeOperation="source-over",u=e.canvas,h=p=0}else{e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0);const t=new Path2D;t.rect(h,p,n,r),e.clip(t),e.globalCompositeOperation="destination-atop",e.fillStyle=i,e.fillRect(h,p,n,r),e.restore()}t.save(),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0),"Alpha"===o&&a?t.filter=this.filterFactory.addAlphaFilter(a):"Luminosity"===o&&(t.filter=this.filterFactory.addLuminosityFilter(a));const f=new Path2D;f.rect(s,l,n,r),t.clip(f),t.globalCompositeOperation="destination-in",t.drawImage(u,h,p,n,r,s,l,n,r),t.restore()}save(e){this.inSMaskMode&&$n(this.ctx,this.suspendedCtx),this.ctx.save();const t=this.current;this.stateStack.push(t),this.current=t.clone(),this.dependencyTracker?.save(e)}restore(e){this.dependencyTracker?.restore(e),0!==this.stateStack.length?(this.current=this.stateStack.pop(),this.ctx.restore(),this.inSMaskMode&&$n(this.suspendedCtx,this.ctx),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null):this.inSMaskMode&&this.endSMaskMode()}transform(e,t,n,r,o,i,a){this.dependencyTracker?.recordIncrementalData("transform",e),this.ctx.transform(t,n,r,o,i,a),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,t,n,r){let[o]=n;if(!r)return o||=n[0]=new Path2D,void this[t](e,o);if(null!==this.dependencyTracker){const n=t===M.stroke?this.current.lineWidth/2:0;this.dependencyTracker.resetBBox(e).recordBBox(e,this.ctx,r[0]-n,r[2]+n,r[1]-n,r[3]+n).recordDependencies(e,["transform"])}if(!(o instanceof Path2D)){const e=n[0]=new Path2D;for(let t=0,n=o.length;t100&&(d=100),this.current.fontSizeScale=n/d,this.ctx.font=`${c} ${l} ${d}px ${s}`}setTextRenderingMode(e,t){this.dependencyTracker?.recordSimpleData("textRenderingMode",e),this.current.textRenderingMode=t}setTextRise(e,t){this.dependencyTracker?.recordSimpleData("textRise",e),this.current.textRise=t}moveText(e,t,n){this.dependencyTracker?.resetIncrementalData("sameLineText").recordIncrementalData("moveText",e),this.current.x=this.current.lineX+=t,this.current.y=this.current.lineY+=n}setLeadingMoveText(e,t,n){this.setLeading(e,-n),this.moveText(e,t,n)}setTextMatrix(e,t){this.dependencyTracker?.recordSimpleData("textMatrix",e);const{current:n}=this;n.textMatrix=t,n.textMatrixScale=Math.hypot(t[0],t[1]),n.x=n.lineX=0,n.y=n.lineY=0}nextLine(e){this.moveText(e,0,this.current.leading),this.dependencyTracker?.recordIncrementalData("moveText",this.dependencyTracker.getSimpleIndex("leading")??e)}#wr(e,t,n){const r=new Path2D;return r.addPath(e,new DOMMatrix(n).invertSelf().multiplySelf(t)),r}paintChar(e,t,n,r,o,i){const a=this.ctx,s=this.current,l=s.font,c=s.textRenderingMode,d=s.fontSize/s.fontSizeScale,u=c&A,h=!!(c&S),p=s.patternFill&&!l.missingFile,f=s.patternStroke&&!l.missingFile;let m;if((l.disableFontFace||h||p||f)&&!l.missingFile&&(m=l.getPathGenerator(this.commonObjs,t)),m&&(l.disableFontFace||p||f)){let t;if(a.save(),a.translate(n,r),a.scale(d,-d),this.dependencyTracker?.recordCharacterBBox(e,a,l),u===v||u===x)if(o){t=a.getTransform(),a.setTransform(...o);const e=this.#wr(m,t,o);a.fill(e)}else a.fill(m);if(u===y||u===x)if(i){t||=a.getTransform(),a.setTransform(...i);const{a:e,b:n,c:r,d:o}=t,s=re.inverseTransform(i),l=re.transform([e,n,r,o,0,0],s);re.singularValueDecompose2dScale(l,vn),a.lineWidth*=Math.max(vn[0],vn[1])/d,a.stroke(this.#wr(m,t,i))}else a.lineWidth/=d,a.stroke(m);a.restore()}else u!==v&&u!==x||(a.fillText(t,n,r),this.dependencyTracker?.recordCharacterBBox(e,a,l,d,n,r,()=>a.measureText(t))),u!==y&&u!==x||(this.dependencyTracker&&this.dependencyTracker?.recordCharacterBBox(e,a,l,d,n,r,()=>a.measureText(t)).recordDependencies(e,Xt),a.strokeText(t,n,r));if(h){(this.pendingTextPaths||=[]).push({transform:$e(a),x:n,y:r,fontSize:d,path:m}),this.dependencyTracker?.recordCharacterBBox(e,a,l,d,n,r)}}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let n=!1;for(let e=3;e0&&t[e]<255){n=!0;break}return V(this,"isFontSubpixelAAEnabled",n)}showText(e,t){this.dependencyTracker&&(this.dependencyTracker.recordDependencies(e,Jt).resetBBox(e),this.current.textRenderingMode&S&&this.dependencyTracker.recordFutureForcedDependency("textClip",e).inheritPendingDependenciesAsFutureForcedDependencies());const n=this.current,r=n.font;if(r.isType3Font)return this.showType3Text(e,t),void this.dependencyTracker?.recordShowTextOperation(e);const o=n.fontSize;if(0===o)return void this.dependencyTracker?.recordOperation(e);const i=this.ctx,a=n.fontSizeScale,s=n.charSpacing,l=n.wordSpacing,c=n.fontDirection,d=n.textHScale*c,u=t.length,h=r.vertical,p=h?1:-1,f=r.defaultVMetrics,m=o*n.fontMatrix[0],g=n.textRenderingMode===v&&!r.disableFontFace&&!n.patternFill;let b,w;if(i.save(),n.textMatrix&&i.transform(...n.textMatrix),i.translate(n.x,n.y+n.textRise),c>0?i.scale(d,-1):i.scale(d,1),n.patternFill){i.save();const t=n.fillColor.getPattern(i,this,ke(i),tn,e);b=$e(i),i.restore(),i.fillStyle=t}if(n.patternStroke){i.save();const t=n.strokeColor.getPattern(i,this,ke(i),nn,e);w=$e(i),i.restore(),i.strokeStyle=t}let C=n.lineWidth;const $=n.textMatrixScale;if(0===$||0===C){const e=n.textRenderingMode&A;e!==y&&e!==x||(C=this.getSinglePixelWidth())}else C/=$;if(1!==a&&(i.scale(a,a),C/=a),i.lineWidth=C,r.isInvalidPDFjsFont){const r=[];let o=0;for(const e of t)r.push(e.unicode),o+=e.width;const a=r.join("");if(i.fillText(a,0,0),null!==this.dependencyTracker){const t=i.measureText(a);this.dependencyTracker.recordBBox(e,this.ctx,-t.actualBoundingBoxLeft,t.actualBoundingBoxRight,-t.actualBoundingBoxAscent,t.actualBoundingBoxDescent).recordShowTextOperation(e)}return n.x+=o*m*d,i.restore(),void this.compose()}let k,E=0;for(k=0;k0){S=i.measureText(v);const e=1e3*S.width/o*a;if(CS??i.measureText(v));else if(this.paintChar(e,v,x,A,b,w),y){const t=x+o*y.offset.x/a,n=A-o*y.offset.y/a;this.paintChar(e,y.fontChar,t,n,b,w)}E+=h?C*m-u*c:C*m+u*c,d&&i.restore()}h?n.y-=E:n.x+=E*d,i.restore(),this.compose(),this.dependencyTracker?.recordShowTextOperation(e)}showType3Text(e,t){const n=this.ctx,r=this.current,i=r.font,a=r.fontSize,s=r.fontDirection,l=i.vertical?1:-1,c=r.charSpacing,d=r.wordSpacing,u=r.textHScale*s,h=r.fontMatrix||o,p=t.length;let f,m,g,b;if(r.textRenderingMode===w||0===a)return;this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,n.save(),r.textMatrix&&n.transform(...r.textMatrix),n.translate(r.x,r.y+r.textRise),n.scale(u,s);const v=this.dependencyTracker;for(this.dependencyTracker=v?new qt(v,e):null,f=0;fnew Mn(e,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack},void 0,void 0,this.dependencyTracker?new qt(this.dependencyTracker,t,!0):null)};n=new fn(t,this.ctx,r,e)}else n=this._getPattern(e,t[1],t[2]);return n}setStrokeColorN(e,...t){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.current.strokeColor=this.getColorN_Pattern(e,t),this.current.patternStroke=!0}setFillColorN(e,...t){this.dependencyTracker?.recordSimpleData("fillColor",e),this.current.fillColor=this.getColorN_Pattern(e,t),this.current.patternFill=!0}setStrokeRGBColor(e,t){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.ctx.strokeStyle=this.current.strokeColor=t,this.current.patternStroke=!1}setStrokeTransparent(e){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(e,t){this.dependencyTracker?.recordSimpleData("fillColor",e),this.ctx.fillStyle=this.current.fillColor=t,this.current.patternFill=!1}setFillTransparent(e){this.dependencyTracker?.recordSimpleData("fillColor",e),this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(e,t,n=null){let r;return this.cachedPatterns.has(t)?r=this.cachedPatterns.get(t):(r=function(e){switch(e[0]){case"RadialAxial":return new sn(e);case"Mesh":return new dn(e);case"Dummy":return new un}throw new Error(`Unknown IR type: ${e[0]}`)}(this.getObject(e,t)),this.cachedPatterns.set(t,r)),n&&(r.matrix=n),r}shadingFill(e,t){if(!this.contentVisible)return;const n=this.ctx;this.save(e);const r=this._getPattern(e,t);n.fillStyle=r.getPattern(n,this,ke(n),rn,e);const o=ke(n);if(o){const{width:e,height:t}=n.canvas,r=yn.slice();re.axialAlignedBoundingBox([0,0,e,t],o,r);const[i,a,s,l]=r;this.ctx.fillRect(i,a,s-i,l-a)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.dependencyTracker?.resetBBox(e).recordFullPageBBox(e).recordDependencies(e,Zt).recordDependencies(e,Kt).recordOperation(e),this.compose(this.current.getClippedPathBoundingBox()),this.restore(e)}beginInlineImage(){L("Should not call beginInlineImage")}beginImageData(){L("Should not call beginImageData")}paintFormXObjectBegin(e,t,n){if(this.contentVisible&&(this.save(e),this.baseTransformStack.push(this.baseTransform),t&&this.transform(e,...t),this.baseTransform=$e(this.ctx),n)){re.axialAlignedBoundingBox(n,this.baseTransform,this.current.minMax);const[t,r,o,i]=n,a=new Path2D;a.rect(t,r,o-t,i-r),this.ctx.clip(a),this.dependencyTracker?.recordClipBox(e,this.ctx,t,o,r,i),this.endPath(e)}}paintFormXObjectEnd(e){this.contentVisible&&(this.restore(e),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e,t){if(!this.contentVisible)return;this.save(e),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const n=this.ctx;t.isolated,t.knockout;const r=$e(n);if(t.matrix&&n.transform(...t.matrix),!t.bbox)throw new Error("Bounding box is required.");let o=yn.slice();re.axialAlignedBoundingBox(t.bbox,$e(n),o);const i=[0,0,n.canvas.width,n.canvas.height];o=re.intersect(o,i)||[0,0,0,0];const a=Math.floor(o[0]),s=Math.floor(o[1]),l=Math.max(Math.ceil(o[2])-a,1),c=Math.max(Math.ceil(o[3])-s,1);this.current.startNewPathAndClipBox([0,0,l,c]);let d="groupAt"+this.groupLevel;t.smask&&(d+="_smask_"+this.smaskCounter++%2);const u=this.cachedCanvases.getCanvas(d,l,c),h=u.context;h.translate(-a,-s),h.transform(...r);let p=new Path2D;const[f,m,g,b]=t.bbox;if(p.rect(f,m,g-f,b-m),t.matrix){const e=new Path2D;e.addPath(p,new DOMMatrix(t.matrix)),p=e}h.clip(p),t.smask&&this.smaskStack.push({canvas:u.canvas,context:h,offsetX:a,offsetY:s,subtype:t.smask.subtype,backdrop:t.smask.backdrop,transferMap:t.smask.transferMap||null,startTransformInverse:null}),t.smask&&!this.dependencyTracker||(n.setTransform(1,0,0,1,0,0),n.translate(a,s),n.save()),$n(n,h),this.ctx=h,this.dependencyTracker?.inheritSimpleDataAsFutureForcedDependencies(["fillAlpha","strokeAlpha","globalCompositeOperation"]).pushBaseTransform(n),this.setGState(e,[["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(n),this.groupLevel++}endGroup(e,t){if(!this.contentVisible)return;this.groupLevel--;const n=this.ctx,r=this.groupStack.pop();if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,this.dependencyTracker?.popBaseTransform(),t.smask)this.tempSMask=this.smaskStack.pop(),this.restore(e),this.dependencyTracker&&this.ctx.restore();else{this.ctx.restore();const t=$e(this.ctx);this.restore(e),this.ctx.save(),this.ctx.setTransform(...t);const r=yn.slice();re.axialAlignedBoundingBox([0,0,n.canvas.width,n.canvas.height],t,r),this.ctx.drawImage(n.canvas,0,0),this.ctx.restore(),this.compose(r)}}beginAnnotation(e,t,n,r,o,i){if(this.#yr(),kn(this.ctx),this.ctx.save(),this.save(e),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),n){const o=n[2]-n[0],a=n[3]-n[1];if(i&&this.annotationCanvasMap){(r=r.slice())[4]-=n[0],r[5]-=n[1],(n=n.slice())[0]=n[1]=0,n[2]=o,n[3]=a,re.singularValueDecompose2dScale($e(this.ctx),vn);const{viewportScale:e}=this,i=Math.ceil(o*this.outputScaleX*e),s=Math.ceil(a*this.outputScaleY*e);this.annotationCanvas=this.canvasFactory.create(i,s);const{canvas:l,context:c}=this.annotationCanvas;this.annotationCanvasMap.set(t,l),this.annotationCanvas.savedCtx=this.ctx,this.ctx=c,this.ctx.save(),this.ctx.setTransform(vn[0],0,0,-vn[1],0,a*vn[1]),kn(this.ctx)}else{kn(this.ctx),this.endPath(e);const t=new Path2D;t.rect(n[0],n[1],o,a),this.ctx.clip(t)}}this.current=new An(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(e,...r),this.transform(e,...o)}endAnnotation(e){this.annotationCanvas&&(this.ctx.restore(),this.#xr(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e,t){if(!this.contentVisible)return;const n=t.count;(t=this.getObject(e,t.data,t)).count=n;const r=this.ctx,o=this._createMaskCanvas(e,t),i=o.canvas;r.save(),r.setTransform(1,0,0,1,0,0),r.drawImage(i,o.offsetX,o.offsetY),this.dependencyTracker?.resetBBox(e).recordBBox(e,this.ctx,o.offsetX,o.offsetX+i.width,o.offsetY,o.offsetY+i.height).recordOperation(e),r.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t,n,r=0,o=0,i,a){if(!this.contentVisible)return;t=this.getObject(e,t.data,t);const s=this.ctx;s.save();const l=$e(s);s.transform(n,r,o,i,0,0);const c=this._createMaskCanvas(e,t);s.setTransform(1,0,0,1,c.offsetX-l[4],c.offsetY-l[5]),this.dependencyTracker?.resetBBox(e);for(let t=0,d=a.length;tt?c/t:1,a=l>t?l/t:1}}this._cachedScaleForStroking[0]=i,this._cachedScaleForStroking[1]=a}return this._cachedScaleForStroking}rescaleAndStroke(e,t){const{ctx:n,current:{lineWidth:r}}=this,[o,i]=this.getScaleForStroking();if(o===i)return n.lineWidth=(r||1)*o,void n.stroke(e);const a=n.getLineDash();t&&n.save(),n.scale(o,i),bn.a=1/o,bn.d=1/i;const s=new Path2D;if(s.addPath(e,bn),a.length>0){const e=Math.max(o,i);n.setLineDash(a.map(t=>t/e)),n.lineDashOffset/=e}n.lineWidth=r||1,n.stroke(s),t&&n.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}for(const e in M)void 0!==Mn.prototype[e]&&(Mn.prototype[M[e]]=Mn.prototype[e]);class Tn{#Ar;#Sr;#Cr;static strings=["fontFamily","fontWeight","italicAngle"];static write(e){const t=new TextEncoder,n={};let r=0;for(const o of Tn.strings){const i=t.encode(e[o]);n[o]=i,r+=4+i.length}const o=new ArrayBuffer(r),i=new Uint8Array(o),a=new DataView(o);let s=0;for(const e of Tn.strings){const t=n[e],r=t.length;a.setUint32(s,r),i.set(t,s+4),s+=4+r}return H(s===o.byteLength,"CssFontInfo.write: Buffer overflow"),o}constructor(e){this.#Ar=e,this.#Sr=new DataView(this.#Ar),this.#Cr=new TextDecoder}#$r(e){H(e>n&3;return 0===r?void 0:2===r}get black(){return this.#Ir(0)}get bold(){return this.#Ir(1)}get disableFontFace(){return this.#Ir(2)}get fontExtraProperties(){return this.#Ir(3)}get isInvalidPDFjsFont(){return this.#Ir(4)}get isType3Font(){return this.#Ir(5)}get italic(){return this.#Ir(6)}get missingFile(){return this.#Ir(7)}get remeasure(){return this.#Ir(8)}get vertical(){return this.#Ir(9)}#Mr(e){return H(e0){const e=o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=e,this._isStreamingSupported=!n,this._isRangeSupported=!t,this._contentLength=r,this._fullRequestReader=null,this._rangeReaders=[],e.addRangeListener((e,t)=>{this._onReceiveData({begin:e,chunk:t})}),e.addProgressListener((e,t)=>{this._onProgress({loaded:e,total:t})}),e.addProgressiveReadListener(e=>{this._onReceiveData({chunk:e})}),e.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),e.transportReady()}_onReceiveData({begin:e,chunk:t}){const n=t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength?t.buffer:new Uint8Array(t).buffer;if(void 0===e)this._fullRequestReader?this._fullRequestReader._enqueue(n):this._queuedChunks.push(n);else{H(this._rangeReaders.some(function(t){return t._begin===e&&(t._enqueue(n),!0)}),"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){void 0===e.total?this._rangeReaders[0]?.onProgress?.({loaded:e.loaded}):this._fullRequestReader?.onProgress?.({loaded:e.loaded,total:e.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){H(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new Hn(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new Wn(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeReaders.slice(0))t.cancel(e);this._pdfDataRangeTransport.abort()}}class Hn{constructor(e,t,n=!1,r=null){this._stream=e,this._done=n||!1,this._filename=ve(r)?r:null,this._queuedChunks=t||[],this._loaded=0;for(const e of this._queuedChunks)this._loaded+=e.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){if(!this._done){if(this._requests.length>0){this._requests.shift().resolve({value:e,done:!1})}else this._queuedChunks.push(e);this._loaded+=e.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 e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class Wn{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const e of this._requests)e.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 e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function Un(e,t){const n=new Headers;if(!e||!t||"object"!=typeof t)return n;for(const e in t){const r=t[e];void 0!==r&&n.append(e,r)}return n}function Vn(e){return URL.parse(e)?.origin??null}function Gn({responseHeaders:e,isHttp:t,rangeChunkSize:n,disableRange:r}){const o={allowRangeRequests:!1,suggestedLength:void 0},i=parseInt(e.get("Content-Length"),10);if(!Number.isInteger(i))return o;if(o.suggestedLength=i,i<=2*n)return o;if(r||!t)return o;if("bytes"!==e.get("Accept-Ranges"))return o;return"identity"!==(e.get("Content-Encoding")||"identity")||(o.allowRangeRequests=!0),o}function qn(e){const t=e.get("Content-Disposition");if(t){let e=function(e){let t=!0,n=r("filename\\*","i").exec(e);if(n){n=n[1];let e=a(n);return e=unescape(e),e=s(e),e=l(e),i(e)}if(n=function(e){const t=[];let n;const o=r("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=o.exec(e));){let[,e,r,o]=n;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[r,o]}const i=[];for(let e=0;e{if(e._responseOrigin=Vn(t.url),!Kn(t.status))throw Xn(t.status,r);this._reader=t.body.getReader(),this._headersCapability.resolve();const n=t.headers,{allowRangeRequests:o,suggestedLength:i}=Gn({responseHeaders:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=i||this._contentLength,this._filename=qn(n),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new J("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(){await this._headersCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:Qn(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}class er{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const r=e.source;this._withCredentials=r.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!r.disableStream,this._abortController=new AbortController;const o=new Headers(e.headers);o.append("Range",`bytes=${t}-${n-1}`);const i=r.url;fetch(i,Yn(o,this._withCredentials,this._abortController)).then(t=>{const n=Vn(t.url);if(n!==e._responseOrigin)throw new Error(`Expected range response-origin "${n}" to match "${e._responseOrigin}".`);if(!Kn(t.status))throw Xn(t.status,i);this._readCapability.resolve(),this._reader=t.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded}),{value:Qn(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}class tr{_responseOrigin=null;constructor({url:e,httpHeaders:t,withCredentials:n}){this.url=e,this.isHttp=/^https?:/i.test(e),this.headers=Un(this.isHttp,t),this.withCredentials=n||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}request(e){const t=new XMLHttpRequest,n=this.currXhrId++,r=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const[e,n]of this.headers)t.setRequestHeader(e,n);return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),r.expectedStatus=206):r.expectedStatus=200,t.responseType="arraybuffer",H(e.onError,"Expected `onError` callback to be provided."),t.onerror=()=>{e.onError(t.status)},t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=e.onHeadersReceived,r.onDone=e.onDone,r.onError=e.onError,r.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){const n=this.pendingRequests[e];n&&n.onProgress?.(t)}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const r=n.xhr;if(r.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==r.readyState)return;if(!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],0===r.status&&this.isHttp)return void n.onError(r.status);const o=r.status||200;if(!(200===o&&206===n.expectedStatus)&&o!==n.expectedStatus)return void n.onError(r.status);const i=function(e){const t=e.response;return"string"!=typeof t?t:ee(t).buffer}(r);if(206===o){const e=r.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);t?n.onDone({begin:parseInt(t[1],10),chunk:i}):n.onError(0)}else i?n.onDone({begin:0,chunk:i}):n.onError(r.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}class nr{constructor(e){this._source=e,this._manager=new tr(e),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return H(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new rr(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new or(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}}class rr{constructor(e,t){this._manager=e,this._url=t.url,this._fullRequestId=e.request({onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._headersCapability=Promise.withResolvers(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.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 e=this._fullRequestId,t=this._manager.getRequestXhr(e);this._manager._responseOrigin=Vn(t.responseURL);const n=t.getAllResponseHeaders(),r=new Headers(n?n.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map(e=>{const[t,...n]=e.split(": ");return[t,n.join(": ")]}):[]),{allowRangeRequests:o,suggestedLength:i}=Gn({responseHeaders:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});o&&(this._isRangeSupported=!0),this._contentLength=i||this._contentLength,this._filename=qn(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersCapability.resolve()}_onDone(e){if(e)if(this._requests.length>0){this._requests.shift().resolve({value:e.chunk,done:!1})}else this._cachedChunks.push(e.chunk);if(this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=Xn(e,this._url),this._headersCapability.reject(this._storedError);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.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._headersCapability.promise}async read(){if(await this._headersCapability.promise,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 e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersCapability.reject(e);for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class or{constructor(e,t,n){this._manager=e,this._url=e.url,this._requestId=e.request({begin:t,end:n,onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_onHeadersReceived(){const e=Vn(this._manager.getRequestXhr(this._requestId)?.responseURL);e!==this._manager._responseOrigin&&(this._storedError=new Error(`Expected range response-origin "${e}" to match "${this._manager._responseOrigin}".`),this._onError(0))}_close(){this.onClosed?.(this)}_onDone(e){const t=e.chunk;if(this._requests.length>0){this._requests.shift().resolve({value:t,done:!1})}else this._queuedChunk=t;this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError??=Xn(e,this._url);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){this.isStreamingSupported||this.onProgress?.({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const ir=/^[a-z][a-z0-9\-+.]+:/i;class ar{constructor(e){this.source=e,this.url=function(e){if(ir.test(e))return new URL(e);const t=process.getBuiltinModule("url");return new URL(t.pathToFileURL(e))}(e.url),H("file:"===this.url.protocol,"PDFNodeStream only supports file:// URLs."),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return H(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new sr(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new lr(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}}class sr{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers();const n=process.getBuiltinModule("fs");n.promises.lstat(this._url).then(e=>{this._contentLength=e.size,this._setReadableStream(n.createReadStream(this._url)),this._headersCapability.resolve()},e=>{"ENOENT"===e.code&&(e=Xn(0,this._url.href)),this._storedError=e,this._headersCapability.reject(e)})}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(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();if(null===e)return this._readCapability=Promise.withResolvers(),this.read();this._loaded+=e.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength});return{value:new Uint8Array(e).buffer,done:!1}}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",e=>{this._error(e)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new J("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class lr{constructor(e,t,n){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const r=e.source;this._isStreamingSupported=!r.disableStream;const o=process.getBuiltinModule("fs");this._setReadableStream(o.createReadStream(this._url,{start:t,end:n-1}))}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();if(null===e)return this._readCapability=Promise.withResolvers(),this.read();this._loaded+=e.length,this.onProgress?.({loaded:this._loaded});return{value:new Uint8Array(e).buffer,done:!1}}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",e=>{this._error(e)}),this._storedError&&this._readableStream.destroy(this._storedError)}}const cr=Symbol("INITIAL_DATA");class dr{#Gr=Object.create(null);#qr(e){return this.#Gr[e]||={...Promise.withResolvers(),data:cr}}get(e,t=null){if(t){const n=this.#qr(e);return n.promise.then(()=>t(n.data)),null}const n=this.#Gr[e];if(!n||n.data===cr)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return n.data}has(e){const t=this.#Gr[e];return!!t&&t.data!==cr}delete(e){const t=this.#Gr[e];return!(!t||t.data===cr)&&(delete this.#Gr[e],!0)}resolve(e,t=null){const n=this.#qr(e);n.data=t,n.resolve()}clear(){for(const e in this.#Gr){const{data:t}=this.#Gr[e];t?.bitmap?.close()}this.#Gr=Object.create(null)}*[Symbol.iterator](){for(const e in this.#Gr){const{data:t}=this.#Gr[e];t!==cr&&(yield[e,t])}}}class ur{#Xr=Promise.withResolvers();#we=null;#Kr=!1;#Yr=!!globalThis.FontInspector?.enabled;#Qr=null;#Jr=null;#Zr=0;#eo=0;#to=null;#no=null;#ro=0;#oo=0;#io=Object.create(null);#ao=[];#so=null;#lo=[];#co=new WeakMap;#do=null;static#uo=new Map;static#ho=new Map;static#po=new WeakMap;static#fo=null;static#mo=new Set;constructor({textContentSource:e,container:t,viewport:n}){if(e instanceof ReadableStream)this.#so=e;else{if("object"!=typeof e)throw new Error('No "textContentSource" parameter specified.');this.#so=new ReadableStream({start(t){t.enqueue(e),t.close()}})}this.#we=this.#no=t,this.#oo=n.scale*Oe.pixelRatio,this.#ro=n.rotation,this.#Jr={div:null,properties:null,ctx:null};const{pageWidth:r,pageHeight:o,pageX:i,pageY:a}=n.rawDims;this.#do=[1,0,0,-1,-i,a+o],this.#eo=r,this.#Zr=o,ur.#go(),Ee(t,n),this.#Xr.promise.finally(()=>{ur.#mo.delete(this),this.#Jr=null,this.#io=null}).catch(()=>{})}static get fontFamilyMap(){const{isWindows:e,isFirefox:t}=te.platform;return V(this,"fontFamilyMap",new Map([["sans-serif",(e&&t?"Calibri, ":"")+"sans-serif"],["monospace",(e&&t?"Lucida Console, ":"")+"monospace"]]))}render(){const e=()=>{this.#to.read().then(({value:t,done:n})=>{n?this.#Xr.resolve():(this.#Qr??=t.lang,Object.assign(this.#io,t.styles),this.#bo(t.items),e())},this.#Xr.reject)};return this.#to=this.#so.getReader(),ur.#mo.add(this),e(),this.#Xr.promise}update({viewport:e,onBefore:t=null}){const n=e.scale*Oe.pixelRatio,r=e.rotation;if(r!==this.#ro&&(t?.(),this.#ro=r,Ee(this.#no,{rotation:r})),n!==this.#oo){t?.(),this.#oo=n;const e={div:null,properties:null,ctx:ur.#vo(this.#Qr)};for(const t of this.#lo)e.properties=this.#co.get(t),e.div=t,this.#yo(e)}}cancel(){const e=new J("TextLayer task cancelled.");this.#to?.cancel(e).catch(()=>{}),this.#to=null,this.#Xr.reject(e)}get textDivs(){return this.#lo}get textContentItemsStr(){return this.#ao}#bo(e){if(this.#Kr)return;this.#Jr.ctx??=ur.#vo(this.#Qr);const t=this.#lo,n=this.#ao;for(const r of e){if(t.length>1e5)return N(),void(this.#Kr=!0);if(void 0!==r.str)n.push(r.str),this.#xo(r);else if("beginMarkedContentProps"===r.type||"beginMarkedContent"===r.type){const e=this.#we;this.#we=document.createElement("span"),this.#we.classList.add("markedContent"),r.id&&this.#we.setAttribute("id",`${r.id}`),e.append(this.#we)}else"endMarkedContent"===r.type&&(this.#we=this.#we.parentNode)}}#xo(e){const t=document.createElement("span"),n={angle:0,canvasWidth:0,hasText:""!==e.str,hasEOL:e.hasEOL,fontSize:0};this.#lo.push(t);const r=re.transform(this.#do,e.transform);let o=Math.atan2(r[1],r[0]);const i=this.#io[e.fontName];i.vertical&&(o+=Math.PI/2);let a=this.#Yr&&i.fontSubstitution||i.fontFamily;a=ur.fontFamilyMap.get(a)||a;const s=Math.hypot(r[2],r[3]),l=s*ur.#wo(a,i,this.#Qr);let c,d;0===o?(c=r[4],d=r[5]-l):(c=r[4]+l*Math.sin(o),d=r[5]-l*Math.cos(o));const u="calc(var(--total-scale-factor) *",h=t.style;this.#we===this.#no?(h.left=`${(100*c/this.#eo).toFixed(2)}%`,h.top=`${(100*d/this.#Zr).toFixed(2)}%`):(h.left=`${u}${c.toFixed(2)}px)`,h.top=`${u}${d.toFixed(2)}px)`),h.fontSize=`${u}${(ur.#fo*s).toFixed(2)}px)`,h.fontFamily=a,n.fontSize=s,t.setAttribute("role","presentation"),t.textContent=e.str,t.dir=e.dir,this.#Yr&&(t.dataset.fontName=i.fontSubstitutionLoadedName||e.fontName),0!==o&&(n.angle=o*(180/Math.PI));let p=!1;if(e.str.length>1)p=!0;else if(" "!==e.str&&e.transform[0]!==e.transform[3]){const t=Math.abs(e.transform[0]),n=Math.abs(e.transform[3]);t!==n&&Math.max(t,n)/Math.min(t,n)>1.5&&(p=!0)}if(p&&(n.canvasWidth=i.vertical?e.height:e.width),this.#co.set(t,n),this.#Jr.div=t,this.#Jr.properties=n,this.#yo(this.#Jr),n.hasText&&this.#we.append(t),n.hasEOL){const e=document.createElement("br");e.setAttribute("role","presentation"),this.#we.append(e)}}#yo(e){const{div:t,properties:n,ctx:r}=e,{style:o}=t;let i="";if(ur.#fo>1&&(i=`scale(${1/ur.#fo})`),0!==n.canvasWidth&&n.hasText){const{fontFamily:e}=o,{canvasWidth:a,fontSize:s}=n;ur.#Ao(r,s*this.#oo,e);const{width:l}=r.measureText(t.textContent);l>0&&(i=`scaleX(${a*this.#oo/l}) ${i}`)}0!==n.angle&&(i=`rotate(${n.angle}deg) ${i}`),i.length>0&&(o.transform=i)}static cleanup(){if(!(this.#mo.size>0)){this.#uo.clear();for(const{canvas:e}of this.#ho.values())e.remove();this.#ho.clear()}}static#vo(e=null){let t=this.#ho.get(e||="");if(!t){const n=document.createElement("canvas");n.className="hiddenCanvasElement",n.lang=e,document.body.append(n),t=n.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#ho.set(e,t),this.#po.set(t,{size:0,family:""})}return t}static#Ao(e,t,n){const r=this.#po.get(e);t===r.size&&n===r.family||(e.font=`${t}px ${n}`,r.size=t,r.family=n)}static#go(){if(null!==this.#fo)return;const e=document.createElement("div");e.style.opacity=0,e.style.lineHeight=1,e.style.fontSize="1px",e.style.position="absolute",e.textContent="X",document.body.append(e),this.#fo=e.getBoundingClientRect().height,e.remove()}static#wo(e,t,n){const r=this.#uo.get(e);if(r)return r;const o=this.#vo(n);o.canvas.width=o.canvas.height=30,this.#Ao(o,30,e);const i=o.measureText(""),a=i.fontBoundingBoxAscent,s=Math.abs(i.fontBoundingBoxDescent);o.canvas.width=o.canvas.height=0;let l=.8;return a?l=a/(a+s):(te.platform.isFirefox,t.ascent?l=t.ascent:t.descent&&(l=1+t.descent)),this.#uo.set(e,l),l}}function hr(e={}){"string"==typeof e||e instanceof URL?e={url:e}:(e instanceof ArrayBuffer||ArrayBuffer.isView(e))&&(e={data:e});const t=new pr,{docId:n}=t,o=e.url?function(e){if(e instanceof URL)return e.href;if("string"==typeof e){if(r)return e;const t=URL.parse(e,window.location);if(t)return t.href}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}(e.url):null,i=e.data?function(e){if(r&&"undefined"!=typeof Buffer&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if("string"==typeof e)return ee(e);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)||"object"==typeof e&&!isNaN(e?.length))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}(e.data):null,a=e.httpHeaders||null,s=!0===e.withCredentials,l=e.password??null,c=e.range instanceof fr?e.range:null,d=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:65536;let u=e.worker instanceof br?e.worker:null;const h=e.verbosity,p="string"!=typeof e.docBaseUrl||be(e.docBaseUrl)?null:e.docBaseUrl,f=at(e.cMapUrl),m=!1!==e.cMapPacked,g=e.CMapReaderFactory||(r?Bt:kt),b=at(e.iccUrl),v=at(e.standardFontDataUrl),y=e.StandardFontDataFactory||(r?Ft:jt),x=at(e.wasmUrl),w=e.WasmFactory||(r?Dt:Mt),A=!0!==e.stopAtErrors,S=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,C=!1!==e.isEvalSupported,$="boolean"==typeof e.isOffscreenCanvasSupported?e.isOffscreenCanvasSupported:!r,k="boolean"==typeof e.isImageDecoderSupported?e.isImageDecoderSupported:!r&&(te.platform.isFirefox||!globalThis.chrome),E=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,O="boolean"==typeof e.disableFontFace?e.disableFontFace:r,P=!0===e.fontExtraProperties,j=!0===e.enableXfa,I=e.ownerDocument||globalThis.document,M=!0===e.disableRange,T=!0===e.disableStream,_=!0===e.disableAutoFetch,R=!0===e.pdfBug,B=e.CanvasFactory||(r?Rt:Ct),F=e.FilterFactory||(r?_t:Ot),z=!0===e.enableHWA,N=!1!==e.useWasm,L=c?c.length:e.length??NaN,H="boolean"==typeof e.useSystemFonts?e.useSystemFonts:!r&&!O,W="boolean"==typeof e.useWorkerFetch?e.useWorkerFetch:!!(g===kt&&y===jt&&w===Mt&&f&&v&&x&&xe(f,document.baseURI)&&xe(v,document.baseURI)&&xe(x,document.baseURI));D(h);const U={canvasFactory:new B({ownerDocument:I,enableHWA:z}),filterFactory:new F({docId:n,ownerDocument:I}),cMapReaderFactory:W?null:new g({baseUrl:f,isCompressed:m}),standardFontDataFactory:W?null:new y({baseUrl:v}),wasmFactory:W?null:new w({baseUrl:x})};u||(u=br.create({verbosity:h,port:Bn.workerPort}),t._worker=u);const V={docId:n,apiVersion:"5.4.296",data:i,password:l,disableAutoFetch:_,rangeChunkSize:d,length:L,docBaseUrl:p,enableXfa:j,evaluatorOptions:{maxImageSize:S,disableFontFace:O,ignoreErrors:A,isEvalSupported:C,isOffscreenCanvasSupported:$,isImageDecoderSupported:k,canvasMaxAreaInBytes:E,fontExtraProperties:P,useSystemFonts:H,useWasm:N,useWorkerFetch:W,cMapUrl:f,iccUrl:b,standardFontDataUrl:v,wasmUrl:x}},G={ownerDocument:I,pdfBug:R,styleElement:null,loadingParams:{disableAutoFetch:_,enableXfa:j}};return u.promise.then(function(){if(t.destroyed)throw new Error("Loading aborted");if(u.destroyed)throw new Error("Worker was destroyed");const e=u.messageHandler.sendWithPromise("GetDocRequest",V,i?[i.buffer]:null);let l;if(c)l=new Ln(c,{disableRange:M,disableStream:T});else if(!i){if(!o)throw new Error("getDocument - no `url` parameter provided.");const e=xe(o)?Jn:r?ar:nr;l=new e({url:o,length:L,httpHeaders:a,withCredentials:s,rangeChunkSize:d,disableRange:M,disableStream:T})}return e.then(e=>{if(t.destroyed)throw new Error("Loading aborted");if(u.destroyed)throw new Error("Worker was destroyed");const r=new At(n,e,u.port),o=new vr(r,t,l,G,U,z);t._transport=o,r.send("Ready",null)})}).catch(t._capability.reject),t}class pr{static#Rn=0;_capability=Promise.withResolvers();_transport=null;_worker=null;docId="d"+pr.#Rn++;destroyed=!1;onPassword=null;onProgress=null;get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await(this._transport?.destroy())}catch(e){throw this._worker?.port&&delete this._worker._pendingDestroy,e}this._transport=null,this._worker?.destroy(),this._worker=null}async getData(){return this._transport.getData()}}class fr{#Xr=Promise.withResolvers();#So=[];#Co=[];#$o=[];#ko=[];constructor(e,t,n=!1,r=null){this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=r}addRangeListener(e){this.#ko.push(e)}addProgressListener(e){this.#$o.push(e)}addProgressiveReadListener(e){this.#Co.push(e)}addProgressiveDoneListener(e){this.#So.push(e)}onDataRange(e,t){for(const n of this.#ko)n(e,t)}onDataProgress(e,t){this.#Xr.promise.then(()=>{for(const n of this.#$o)n(e,t)})}onDataProgressiveRead(e){this.#Xr.promise.then(()=>{for(const t of this.#Co)t(e)})}onDataProgressiveDone(){this.#Xr.promise.then(()=>{for(const e of this.#So)e()})}transportReady(){this.#Xr.resolve()}requestDataRange(e,t){L("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}class mr{constructor(e,t){this._pdfInfo=e,this._transport=t}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return V(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}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()}getAnnotationsByType(e,t){return this._transport.getAnnotationsByType(e,t)}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:e="display"}={}){const{renderingIntent:t}=this._transport.getRenderingIntent(e);return this._transport.getOptionalContentConfig(t)}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(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(e){return this._transport.cachedPageNumber(e)}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()}}class gr{#Eo=!1;constructor(e,t,n,r=!1){this._pageIndex=e,this._pageInfo=t,this._transport=n,this._stats=r?new ye:null,this._pdfBug=r,this.commonObjs=n.commonObjs,this.objs=new dr,this._intentStates=new Map,this.destroyed=!1,this.recordedBBoxes=null}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:e,rotation:t=this.rotate,offsetX:n=0,offsetY:r=0,dontFlip:o=!1}={}){return new me({viewBox:this.view,userUnit:this.userUnit,scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:o})}getAnnotations({intent:e="display"}={}){const{renderingIntent:t}=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,t)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return V(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,canvas:t=e.canvas,viewport:n,intent:r="display",annotationMode:o=f.ENABLE,transform:i=null,background:a=null,optionalContentConfigPromise:s=null,annotationCanvasMap:c=null,pageColors:d=null,printAnnotationStorage:u=null,isEditing:h=!1,recordOperations:p=!1,operationsFilter:m=null}){this._stats?.time("Overall");const g=this._transport.getRenderingIntent(r,o,u,h),{renderingIntent:b,cacheKey:v}=g;this.#Eo=!1,s||=this._transport.getOptionalContentConfig(b);let y=this._intentStates.get(v);y||(y=Object.create(null),this._intentStates.set(v,y)),y.streamReaderCancelTimeout&&(clearTimeout(y.streamReaderCancelTimeout),y.streamReaderCancelTimeout=null);const x=!!(b&l);y.displayReadyCapability||(y.displayReadyCapability=Promise.withResolvers(),y.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(g));const w=Boolean(this._pdfBug&&globalThis.StepperManager?.enabled),A=!this.recordedBBoxes&&(p||w),S=e=>{if(y.renderTasks.delete(C),A){const e=C.gfx?.dependencyTracker.take();e&&(C.stepper&&C.stepper.setOperatorBBoxes(e,C.gfx.dependencyTracker.takeDebugMetadata()),p&&(this.recordedBBoxes=e))}x&&(this.#Eo=!0),this.#Oo(),e?(C.capability.reject(e),this._abortOperatorList({intentState:y,reason:e instanceof Error?e:new Error(e)})):C.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},C=new xr({callback:S,params:{canvas:t,canvasContext:e,dependencyTracker:A?new Gt(t,y.operatorList.length,w):null,viewport:n,transform:i,background:a},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:c,operatorList:y.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!x,pdfBug:this._pdfBug,pageColors:d,enableHWA:this._transport.enableHWA,operationsFilter:m});(y.renderTasks||=new Set).add(C);const $=C.task;return Promise.all([y.displayReadyCapability.promise,s]).then(([e,t])=>{if(this.destroyed)S();else{if(this._stats?.time("Rendering"),!(t.renderingIntent&b))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");C.initializeGraphics({transparency:e,optionalContentConfig:t}),C.operatorListChanged()}}).catch(S),$}getOperatorList({intent:e="display",annotationMode:t=f.ENABLE,printAnnotationStorage:n=null,isEditing:r=!1}={}){const o=this._transport.getRenderingIntent(e,t,n,r,!0);let i,a=this._intentStates.get(o.cacheKey);return a||(a=Object.create(null),this._intentStates.set(o.cacheKey,a)),a.opListReadCapability||(i=Object.create(null),i.operatorListChanged=function(){a.operatorList.lastChunk&&(a.opListReadCapability.resolve(a.operatorList),a.renderTasks.delete(i))},a.opListReadCapability=Promise.withResolvers(),(a.renderTasks||=new Set).add(i),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(o)),a.opListReadCapability.promise}streamTextContent({includeMarkedContent:e=!1,disableNormalization:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===e,disableNormalization:!0===t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then(e=>de.textContent(e));const t=this.streamTextContent(e);return new Promise(function(e,n){const r=t.getReader(),o={items:[],styles:Object.create(null),lang:null};!function t(){r.read().then(function({value:n,done:r}){r?e(o):(o.lang??=n.lang,Object.assign(o.styles,n.styles),o.items.push(...n.items),t())},n)}()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const n of t.renderTasks)e.push(n.completed),n.cancel();return this.objs.clear(),this.#Eo=!1,Promise.all(e)}cleanup(e=!1){this.#Eo=!0;const t=this.#Oo();return e&&t&&(this._stats&&=new ye),t}#Oo(){if(!this.#Eo||this.destroyed)return!1;for(const{renderTasks:e,operatorList:t}of this._intentStates.values())if(e.size>0||!t.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#Eo=!1,!0}_startRenderPage(e,t){const n=this._intentStates.get(t);n&&(this._stats?.timeEnd("Page Request"),n.displayReadyCapability?.resolve(e))}_renderPageChunk(e,t){for(let n=0,r=e.length;n{a.read().then(({value:e,done:t})=>{t?s.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,s),l())},e=>{if(s.streamReader=null,!this._transport.destroyed){if(s.operatorList){s.operatorList.lastChunk=!0;for(const e of s.renderTasks)e.operatorListChanged();this.#Oo()}if(s.displayReadyCapability)s.displayReadyCapability.reject(e);else{if(!s.opListReadCapability)throw e;s.opListReadCapability.reject(e)}}})};l()}_abortOperatorList({intentState:e,reason:t,force:n=!1}){if(e.streamReader){if(e.streamReaderCancelTimeout&&(clearTimeout(e.streamReaderCancelTimeout),e.streamReaderCancelTimeout=null),!n){if(e.renderTasks.size>0)return;if(t instanceof ge){let n=100;return t.extraDelay>0&&t.extraDelay<1e3&&(n+=t.extraDelay),void(e.streamReaderCancelTimeout=setTimeout(()=>{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:t,force:!0})},n))}}if(e.streamReader.cancel(new J(t.message)).catch(()=>{}),e.streamReader=null,!this._transport.destroyed){for(const[t,n]of this._intentStates)if(n===e){this._intentStates.delete(t);break}this.cleanup()}}}get stats(){return this._stats}}class br{#Xr=Promise.withResolvers();#Po=null;#Tr=null;#jo=null;static#Io=0;static#Mo=!1;static#To=new WeakMap;static{r&&(this.#Mo=!0,Bn.workerSrc||="./pdf.worker.mjs"),this._isSameOrigin=(e,t)=>{const n=URL.parse(e);if(!n?.origin||"null"===n.origin)return!1;const r=new URL(t,n);return n.origin===r.origin},this._createCDNWrapper=e=>{const t=`await import("${e}");`;return URL.createObjectURL(new Blob([t],{type:"text/javascript"}))},this.fromPort=e=>{if(!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return this.create(e)}}constructor({name:e=null,port:t=null,verbosity:n=z()}={}){if(this.name=e,this.destroyed=!1,this.verbosity=n,t){if(br.#To.has(t))throw new Error("Cannot use more than one PDFWorker per port.");br.#To.set(t,this),this.#_o(t)}else this.#Ro()}get promise(){return this.#Xr.promise}#Bo(){this.#Xr.resolve(),this.#Po.send("configure",{verbosity:this.verbosity})}get port(){return this.#Tr}get messageHandler(){return this.#Po}#_o(e){this.#Tr=e,this.#Po=new At("main","worker",e),this.#Po.on("ready",()=>{}),this.#Bo()}#Ro(){if(br.#Mo||br.#Fo)return void this.#Do();let{workerSrc:e}=br;try{br._isSameOrigin(window.location,e)||(e=br._createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e,{type:"module"}),n=new At("main","worker",t),r=()=>{o.abort(),n.destroy(),t.terminate(),this.destroyed?this.#Xr.reject(new Error("Worker was destroyed")):this.#Do()},o=new AbortController;t.addEventListener("error",()=>{this.#jo||r()},{signal:o.signal}),n.on("test",e=>{o.abort(),!this.destroyed&&e?(this.#Po=n,this.#Tr=t,this.#jo=t,this.#Bo()):r()}),n.on("ready",e=>{if(o.abort(),this.destroyed)r();else try{i()}catch{this.#Do()}});const i=()=>{const e=new Uint8Array;n.send("test",e,[e.buffer])};return void i()}catch{}this.#Do()}#Do(){br.#Mo||(br.#Mo=!0),br._setupFakeWorkerGlobal.then(e=>{if(this.destroyed)return void this.#Xr.reject(new Error("Worker was destroyed"));const t=new ct;this.#Tr=t;const n="fake"+br.#Io++,r=new At(n+"_worker",n,t);e.setup(r,t),this.#Po=new At(n,n+"_worker",t),this.#Bo()}).catch(e=>{this.#Xr.reject(new Error(`Setting up fake worker failed: "${e.message}".`))})}destroy(){this.destroyed=!0,this.#jo?.terminate(),this.#jo=null,br.#To.delete(this.#Tr),this.#Tr=null,this.#Po?.destroy(),this.#Po=null}static create(e){const t=this.#To.get(e?.port);if(t){if(t._pendingDestroy)throw new Error("PDFWorker.create - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return t}return new br(e)}static get workerSrc(){if(Bn.workerSrc)return Bn.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get#Fo(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){return V(this,"_setupFakeWorkerGlobal",(async()=>{if(this.#Fo)return this.#Fo;return(await import(this.workerSrc)).WorkerMessageHandler})())}}class vr{#zo=new Map;#No=new Map;#Lo=new Map;#Ho=new Map;#Wo=null;constructor(e,t,n,r,o,i){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new dr,this.fontLoader=new ot({ownerDocument:r.ownerDocument,styleElement:r.styleElement}),this.loadingParams=r.loadingParams,this._params=r,this.canvasFactory=o.canvasFactory,this.filterFactory=o.filterFactory,this.cMapReaderFactory=o.cMapReaderFactory,this.standardFontDataFactory=o.standardFontDataFactory,this.wasmFactory=o.wasmFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.enableHWA=i,this.setupMessageHandler()}#Uo(e,t=null){const n=this.#zo.get(e);if(n)return n;const r=this.messageHandler.sendWithPromise(e,t);return this.#zo.set(e,r),r}get annotationStorage(){return V(this,"annotationStorage",new nt)}getRenderingIntent(e,t=f.ENABLE,n=null,r=!1,o=!1){let i=s,m=tt;switch(e){case"any":i=a;break;case"display":break;case"print":i=l}const g=i&l&&n instanceof rt?n:this.annotationStorage;switch(t){case f.DISABLE:i+=u;break;case f.ENABLE:break;case f.ENABLE_FORMS:i+=c;break;case f.ENABLE_STORAGE:i+=d,m=g.serializable}r&&(i+=h),o&&(i+=p);const{ids:b,hash:v}=g.modifiedIds;return{renderingIntent:i,cacheKey:[i,m.hash,v].join("_"),annotationStorageSerializable:m,modifiedIds:b}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#Wo?.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const t of this.#No.values())e.push(t._destroy());this.#No.clear(),this.#Lo.clear(),this.#Ho.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#zo.clear(),this.filterFactory.destroy(),ur.cleanup(),this._networkStream?.cancelAllRequests(new J("Worker was terminated.")),this.messageHandler?.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",(e,t)=>{H(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then(function({value:e,done:n}){n?t.close():(H(e instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))}).catch(e=>{t.error(e)})},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch(e=>{if(!this.destroyed)throw e})}}),e.on("ReaderHeadersReady",async e=>{await this._fullReader.headersReady;const{isStreamingSupported:n,isRangeSupported:r,contentLength:o}=this._fullReader;return n&&r||(this._lastProgress&&t.onProgress?.(this._lastProgress),this._fullReader.onProgress=e=>{t.onProgress?.({loaded:e.loaded,total:e.total})}),{isStreamingSupported:n,isRangeSupported:r,contentLength:o}}),e.on("GetRangeReader",(e,t)=>{H(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=()=>{n.read().then(function({value:e,done:n}){n?t.close():(H(e instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))}).catch(e=>{t.error(e)})},t.onCancel=e=>{n.cancel(e),t.ready.catch(e=>{if(!this.destroyed)throw e})}):t.close()}),e.on("GetDoc",({pdfInfo:e})=>{this._numPages=e.numPages,this._htmlForXfa=e.htmlForXfa,delete e.htmlForXfa,t._capability.resolve(new mr(e,this))}),e.on("DocException",e=>{t._capability.reject(wt(e))}),e.on("PasswordRequest",e=>{this.#Wo=Promise.withResolvers();try{if(!t.onPassword)throw wt(e);const n=e=>{e instanceof Error?this.#Wo.reject(e):this.#Wo.resolve({password:e})};t.onPassword(n,e.code)}catch(e){this.#Wo.reject(e)}return this.#Wo.promise}),e.on("DataLoaded",e=>{t.onProgress?.({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)}),e.on("StartRenderPage",e=>{if(this.destroyed)return;this.#No.get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)}),e.on("commonobj",([t,n,r])=>{if(this.destroyed)return null;if(this.commonObjs.has(t))return null;switch(n){case"Font":if("error"in r){const e=r.error;this.commonObjs.resolve(t,e);break}const o=new Rn(r),i=this._params.pdfBug&&globalThis.FontInspector?.enabled?(e,t)=>globalThis.FontInspector.fontAdded(e,t):null,a=new it(o,i,r.extra,r.charProcOperatorList);this.fontLoader.bind(a).catch(()=>e.sendWithPromise("FontFallback",{id:t})).finally(()=>{!a.fontExtraProperties&&a.data&&a.clearData(),this.commonObjs.resolve(t,a)});break;case"CopyLocalImage":const{imageRef:s}=r;H(s,"The imageRef must be defined.");for(const e of this.#No.values())for(const[,n]of e.objs)if(n?.ref===s)return n.dataLen?(this.commonObjs.resolve(t,structuredClone(n)),n.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(t,r);break;default:throw new Error(`Got unknown common object type ${n}`)}return null}),e.on("obj",([e,t,n,r])=>{if(this.destroyed)return;const o=this.#No.get(t);if(!o.objs.has(e))if(0!==o._intentStates.size)switch(n){case"Image":case"Pattern":o.objs.resolve(e,r);break;default:throw new Error(`Got unknown object type ${n}`)}else r?.bitmap?.close()}),e.on("DocProgress",e=>{this.destroyed||t.onProgress?.({loaded:e.loaded,total:e.total})}),e.on("FetchBinaryData",async e=>{if(this.destroyed)throw new Error("Worker was destroyed.");const t=this[e.type];if(!t)throw new Error(`${e.type} not initialized, see the \`useWorkerFetch\` parameter.`);return t.fetch(e)})}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size;const{map:e,transfer:t}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,filename:this._fullReader?.filename??null},t).finally(()=>{this.annotationStorage.resetModified()})}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,n=this.#Lo.get(t);if(n)return n;const r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then(n=>{if(this.destroyed)throw new Error("Transport destroyed");n.refStr&&this.#Ho.set(n.refStr,e);const r=new gr(t,n,this,this._params.pdfBug);return this.#No.set(t,r),r});return this.#Lo.set(t,r),r}getPageIndex(e){return st(e)?this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return this.#Uo("GetFieldObjects")}hasJSActions(){return this.#Uo("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}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)}getAnnotationsByType(e,t){return this.messageHandler.sendWithPromise("GetAnnotationsByType",{types:e,pageIndexesToSkip:t})}getDocJSActions(){return this.#Uo("GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(e){return this.#Uo("GetOptionalContentConfig").then(t=>new Nn(t,e))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const e="GetMetadata",t=this.#zo.get(e);if(t)return t;const n=this.messageHandler.sendWithPromise(e,null).then(e=>({info:e[0],metadata:e[1]?new Fn(e[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#zo.set(e,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const e of this.#No.values()){if(!e.cleanup())throw new Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`)}this.commonObjs.clear(),e||this.fontLoader.clear(),this.#zo.clear(),this.filterFactory.destroy(!0),ur.cleanup()}}cachedPageNumber(e){if(!st(e))return null;const t=0===e.gen?`${e.num}R`:`${e.num}R${e.gen}`;return this.#Ho.get(t)??null}}class yr{#Vo=null;onContinue=null;onError=null;constructor(e){this.#Vo=e}get promise(){return this.#Vo.capability.promise}cancel(e=0){this.#Vo.cancel(null,e)}get separateAnnots(){const{separateAnnots:e}=this.#Vo.operatorList;if(!e)return!1;const{annotationCanvasMap:t}=this.#Vo;return e.form||e.canvas&&t?.size>0}}class xr{#Go=null;static#qo=new WeakSet;constructor({callback:e,params:t,objs:n,commonObjs:r,annotationCanvasMap:o,operatorList:i,pageIndex:a,canvasFactory:s,filterFactory:l,useRequestAnimationFrame:c=!1,pdfBug:d=!1,pageColors:u=null,enableHWA:h=!1,operationsFilter:p=null}){this.callback=e,this.params=t,this.objs=n,this.commonObjs=r,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=i,this._pageIndex=a,this.canvasFactory=s,this.filterFactory=l,this._pdfBug=d,this.pageColors=u,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===c&&"undefined"!=typeof window,this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new yr(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=t.canvas,this._canvasContext=t.canvas?null:t.canvasContext,this._enableHWA=h,this._dependencyTracker=t.dependencyTracker,this._operationsFilter=p}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:e=!1,optionalContentConfig:t}){if(this.cancelled)return;if(this._canvas){if(xr.#qo.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.");xr.#qo.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{viewport:n,transform:r,background:o,dependencyTracker:i}=this.params,a=this._canvasContext||this._canvas.getContext("2d",{alpha:!1,willReadFrequently:!this._enableHWA});this.gfx=new Mn(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:t},this.annotationCanvasMap,this.pageColors,i),this.gfx.beginDrawing({transform:r,viewport:n,transparency:e,background:o}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(e=null,t=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#Go&&(window.cancelAnimationFrame(this.#Go),this.#Go=null),xr.#qo.delete(this._canvas),e||=new ge(`Rendering cancelled, page ${this._pageIndex+1}`,t),this.callback(e),this.task.onError?.(e)}operatorListChanged(){this.graphicsReady?(this.gfx.dependencyTracker?.growOperationsCount(this.operatorList.fnArray.length),this.stepper?.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||=this._continueBound}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#Go=window.requestAnimationFrame(()=>{this.#Go=null,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._operationsFilter),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),xr.#qo.delete(this._canvas),this.callback())))}}const wr="5.4.296";class Ar{#Xo=null;#Ko=null;#Yo;#Qo=null;#Jo=!1;#Zo=!1;#i=null;#ei;#ti=null;#b=null;static#ni=null;static get _keyboardManager(){return V(this,"_keyboardManager",new We([[["Escape","mac+Escape"],Ar.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],Ar.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],Ar.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],Ar.prototype._moveToPrevious],[["Home","mac+Home"],Ar.prototype._moveToBeginning],[["End","mac+End"],Ar.prototype._moveToEnd]]))}constructor({editor:e=null,uiManager:t=null}){e?(this.#Zo=!1,this.#i=e):this.#Zo=!0,this.#b=e?._uiManager||t,this.#ei=this.#b._eventBus,this.#Yo=e?.color?.toUpperCase()||this.#b?.highlightColors.values().next().value||"#FFFF98",Ar.#ni||=Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"})}renderButton(){const e=this.#Xo=document.createElement("button");e.className="colorPicker",e.tabIndex="0",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),e.ariaHasPopup="true",this.#i&&(e.ariaControls=`${this.#i.id}_colorpicker_dropdown`);const t=this.#b._signal;e.addEventListener("click",this.#ri.bind(this),{signal:t}),e.addEventListener("keydown",this.#oi.bind(this),{signal:t});const n=this.#Ko=document.createElement("span");return n.className="swatch",n.ariaHidden="true",n.style.backgroundColor=this.#Yo,e.append(n),e}renderMainDropdown(){const e=this.#Qo=this.#ii();return e.ariaOrientation="horizontal",e.ariaLabelledBy="highlightColorPickerLabel",e}#ii(){const e=document.createElement("div"),t=this.#b._signal;e.addEventListener("contextmenu",we,{signal:t}),e.className="dropdown",e.role="listbox",e.ariaMultiSelectable="false",e.ariaOrientation="vertical",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown"),this.#i&&(e.id=`${this.#i.id}_colorpicker_dropdown`);for(const[n,r]of this.#b.highlightColors){const o=document.createElement("button");o.tabIndex="0",o.role="option",o.setAttribute("data-color",r),o.title=n,o.setAttribute("data-l10n-id",Ar.#ni[n]);const i=document.createElement("span");o.append(i),i.className="swatch",i.style.backgroundColor=r,o.ariaSelected=r===this.#Yo,o.addEventListener("click",this.#ai.bind(this,r),{signal:t}),e.append(o)}return e.addEventListener("keydown",this.#oi.bind(this),{signal:t}),e}#ai(e,t){t.stopPropagation(),this.#ei.dispatch("switchannotationeditorparams",{source:this,type:b.HIGHLIGHT_COLOR,value:e}),this.updateColor(e)}_colorSelectFromKeyboard(e){if(e.target===this.#Xo)return void this.#ri(e);const t=e.target.getAttribute("data-color");t&&this.#ai(t,e)}_moveToNext(e){this.#si?e.target!==this.#Xo?e.target.nextSibling?.focus():this.#Qo.firstChild?.focus():this.#ri(e)}_moveToPrevious(e){e.target!==this.#Qo?.firstChild&&e.target!==this.#Xo?(this.#si||this.#ri(e),e.target.previousSibling?.focus()):this.#si&&this._hideDropdownFromKeyboard()}_moveToBeginning(e){this.#si?this.#Qo.firstChild?.focus():this.#ri(e)}_moveToEnd(e){this.#si?this.#Qo.lastChild?.focus():this.#ri(e)}#oi(e){Ar._keyboardManager.exec(this,e)}#ri(e){if(this.#si)return void this.hideDropdown();if(this.#Jo=0===e.detail,this.#ti||(this.#ti=new AbortController,window.addEventListener("pointerdown",this.#h.bind(this),{signal:this.#b.combinedSignal(this.#ti)})),this.#Xo.ariaExpanded="true",this.#Qo)return void this.#Qo.classList.remove("hidden");const t=this.#Qo=this.#ii();this.#Xo.append(t)}#h(e){this.#Qo?.contains(e.target)||this.hideDropdown()}hideDropdown(){this.#Qo?.classList.add("hidden"),this.#Xo.ariaExpanded="false",this.#ti?.abort(),this.#ti=null}get#si(){return this.#Qo&&!this.#Qo.classList.contains("hidden")}_hideDropdownFromKeyboard(){this.#Zo||(this.#si?(this.hideDropdown(),this.#Xo.focus({preventScroll:!0,focusVisible:this.#Jo})):this.#i?.unselect())}updateColor(e){if(this.#Ko&&(this.#Ko.style.backgroundColor=e),!this.#Qo)return;const t=this.#b.highlightColors.values();for(const n of this.#Qo.children)n.ariaSelected=t.next().value===e.toUpperCase()}destroy(){this.#Xo?.remove(),this.#Xo=null,this.#Ko=null,this.#Qo?.remove(),this.#Qo=null}}class Sr{#li=null;#i=null;#b=null;static#ni=null;constructor(e){this.#i=e,this.#b=e._uiManager,Sr.#ni||=Object.freeze({freetext:"pdfjs-editor-color-picker-free-text-input",ink:"pdfjs-editor-color-picker-ink-input"})}renderButton(){if(this.#li)return this.#li;const{editorType:e,colorType:t,colorValue:n}=this.#i,r=this.#li=document.createElement("input");return r.type="color",r.value=n||"#000000",r.className="basicColorPicker",r.tabIndex=0,r.setAttribute("data-l10n-id",Sr.#ni[e]),r.addEventListener("input",()=>{this.#b.updateParams(t,r.value)},{signal:this.#b._signal}),r}update(e){this.#li&&(this.#li.value=e)}destroy(){this.#li?.remove(),this.#li=null}hideDropdown(){}}function Cr(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}function $r(e){return Math.max(0,Math.min(255,255*e))}class kr{static CMYK_G([e,t,n,r]){return["G",1-Math.min(1,.3*e+.59*n+.11*t+r)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_rgb([e]){return[e=$r(e),e,e]}static G_HTML([e]){const t=Cr(e);return`#${t}${t}${t}`}static RGB_G([e,t,n]){return["G",.3*e+.59*t+.11*n]}static RGB_rgb(e){return e.map($r)}static RGB_HTML(e){return`#${e.map(Cr).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([e,t,n,r]){return["RGB",1-Math.min(1,e+r),1-Math.min(1,n+r),1-Math.min(1,t+r)]}static CMYK_rgb([e,t,n,r]){return[$r(1-Math.min(1,e+r)),$r(1-Math.min(1,n+r)),$r(1-Math.min(1,t+r))]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK([e,t,n]){const r=1-e,o=1-t,i=1-n;return["CMYK",r,o,i,Math.min(r,o,i)]}}class Er{create(e,t,n=!1){if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const r=this._createSVG("svg:svg");return r.setAttribute("version","1.1"),n||(r.setAttribute("width",`${e}px`),r.setAttribute("height",`${t}px`)),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox",`0 0 ${e} ${t}`),r}createElement(e){if("string"!=typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){L("Abstract method `_createSVG` called.")}}class Or extends Er{_createSVG(e){return document.createElementNS(he,e)}}const Pr=new WeakSet,jr=60*(new Date).getTimezoneOffset()*1e3;class Ir{static create(e){switch(e.data.annotationType){case $.LINK:return new _r(e);case $.TEXT:return new Rr(e);case $.WIDGET:switch(e.data.fieldType){case"Tx":return new Fr(e);case"Btn":return e.data.radioButton?new Nr(e):e.data.checkBox?new zr(e):new Lr(e);case"Ch":return new Hr(e);case"Sig":return new Dr(e)}return new Br(e);case $.POPUP:return new Wr(e);case $.FREETEXT:return new Vr(e);case $.LINE:return new Gr(e);case $.SQUARE:return new qr(e);case $.CIRCLE:return new Xr(e);case $.POLYLINE:return new Kr(e);case $.CARET:return new Qr(e);case $.INK:return new Jr(e);case $.POLYGON:return new Yr(e);case $.HIGHLIGHT:return new Zr(e);case $.UNDERLINE:return new eo(e);case $.SQUIGGLY:return new to(e);case $.STRIKEOUT:return new no(e);case $.STAMP:return new ro(e);case $.FILEATTACHMENT:return new oo(e);default:return new Mr(e)}}}class Mr{#ci=null;#di=!1;#ui=null;constructor(e,{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:r=!1}={}){this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableComment=e.enableComment,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,t&&(this.container=this._createContainer(n)),r&&this._createQuadrilaterals()}static _hasPopupData({contentsObj:e,richText:t}){return!(!e?.str&&!t?.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return Mr._hasPopupData(this.data)||this.enableComment&&!!this.commentText}get commentData(){const{data:e}=this,t=this.annotationStorage?.getEditor(e.id);return t?t.getData():e}get hasCommentButton(){return this.enableComment&&this.hasPopupElement}get commentButtonPosition(){const e=this.annotationStorage?.getEditor(this.data.id);if(e)return e.commentButtonPositionInPage;const{quadPoints:t,inkLists:n,rect:r}=this.data;let o=-1/0,i=-1/0;if(t?.length>=8){for(let e=0;ei?(i=t[e+1],o=t[e+2]):t[e+1]===i&&(o=Math.max(o,t[e+2]));return[o,i]}if(n?.length>=1){for(const e of n)for(let t=0,n=e.length;ti?(i=e[t+1],o=e[t]):e[t+1]===i&&(o=Math.max(o,e[t]));if(o!==1/0)return[o,i]}return r?[r[2],r[3]]:null}_normalizePoint(e){const{page:{view:t},viewport:{rawDims:{pageWidth:n,pageHeight:r,pageX:o,pageY:i}}}=this.parent;return e[1]=t[3]-e[1]+t[1],e[0]=100*(e[0]-o)/n,e[1]=100*(e[1]-i)/r,e}get commentText(){const{data:e}=this;return this.annotationStorage.getRawValue(`${m}${e.id}`)?.popup?.contents||e.contentsObj?.str||""}set commentText(e){const{data:t}=this,n={deleted:!e,contents:e||""};this.annotationStorage.updateEditor(t.id,{popup:n})||this.annotationStorage.setValue(`${m}${t.id}`,{id:t.id,annotationType:t.annotationType,pageIndex:this.parent.page._pageIndex,popup:n,popupRef:t.popupRef,modificationDate:new Date}),e||this.removePopup()}removePopup(){(this.#ui?.popup||this.popup)?.remove(),this.#ui=this.popup=null}updateEdited(e){if(!this.container)return;e.rect&&(this.#ci||={rect:this.data.rect.slice(0)});const{rect:t,popup:n}=e;t&&this.#hi(t);let r=this.#ui?.popup||this.popup;!r&&n?.text&&(this._createPopup(n),r=this.#ui.popup),r&&(r.updateEdited(e),n?.deleted&&(r.remove(),this.#ui=null,this.popup=null))}resetEdited(){this.#ci&&(this.#hi(this.#ci.rect),this.#ui?.popup.resetEdited(),this.#ci=null)}#hi(e){const{container:{style:t},data:{rect:n,rotation:r},parent:{viewport:{rawDims:{pageWidth:o,pageHeight:i,pageX:a,pageY:s}}}}=this;n?.splice(0,4,...e),t.left=100*(e[0]-a)/o+"%",t.top=100*(i-e[3]+s)/i+"%",0===r?(t.width=100*(e[2]-e[0])/o+"%",t.height=100*(e[3]-e[1])/i+"%"):this.setRotation(r)}_createContainer(e){const{data:t,parent:{page:n,viewport:r}}=this,o=document.createElement("section");o.setAttribute("data-annotation-id",t.id),this instanceof Br||this instanceof _r||(o.tabIndex=0);const{style:i}=o;if(i.zIndex=this.parent.zIndex,this.parent.zIndex+=2,t.alternativeText&&(o.title=t.alternativeText),t.noRotate&&o.classList.add("norotate"),!t.rect||this instanceof Wr){const{rotation:e}=t;return t.hasOwnCanvas||0===e||this.setRotation(e,o),o}const{width:a,height:s}=this;if(!e&&t.borderStyle.width>0){i.borderWidth=`${t.borderStyle.width}px`;const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t=`calc(${e}px * var(--total-scale-factor)) / calc(${n}px * var(--total-scale-factor))`;i.borderRadius=t}else if(this instanceof Nr){const e=`calc(${a}px * var(--total-scale-factor)) / calc(${s}px * var(--total-scale-factor))`;i.borderRadius=e}switch(t.borderStyle.style){case k:i.borderStyle="solid";break;case E:i.borderStyle="dashed";break;case O:case P:break;case j:i.borderBottomStyle="solid"}const r=t.borderColor||null;r?(this.#di=!0,i.borderColor=re.makeHexColor(0|r[0],0|r[1],0|r[2])):i.borderWidth=0}const l=re.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]),{pageWidth:c,pageHeight:d,pageX:u,pageY:h}=r.rawDims;i.left=100*(l[0]-u)/c+"%",i.top=100*(l[1]-h)/d+"%";const{rotation:p}=t;return t.hasOwnCanvas||0===p?(i.width=100*a/c+"%",i.height=100*s/d+"%"):this.setRotation(p,o),o}setRotation(e,t=this.container){if(!this.data.rect)return;const{pageWidth:n,pageHeight:r}=this.parent.viewport.rawDims;let{width:o,height:i}=this;e%180!=0&&([o,i]=[i,o]),t.style.width=100*o/n+"%",t.style.height=100*i/r+"%",t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(e,t,n)=>{const r=n.detail[e],o=r[0],i=r.slice(1);n.target.style[t]=kr[`${o}_HTML`](i),this.annotationStorage.setValue(this.data.id,{[t]:kr[`${o}_rgb`](i)})};return V(this,"_commonActions",{display:e=>{const{display:t}=e.detail,n=t%2==1;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:n,noPrint:1===t||2===t})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{const{hidden:t}=e.detail;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:t,noView:t})},focus:e=>{setTimeout(()=>e.target.focus({preventScroll:!1}),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:e=>{const t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){const n=this._commonActions;for(const r of Object.keys(t.detail)){const o=e[r]||n[r];o?.(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const n=this._commonActions;for(const[r,o]of Object.entries(t)){const i=n[r];if(i){i({detail:{[r]:o},target:e}),delete t[r]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:e}=this.data;if(!e)return;const[t,n,r,o]=this.data.rect.map(e=>Math.fround(e));if(8===e.length){const[i,a,s,l]=e.subarray(2,6);if(r===i&&o===a&&t===s&&n===l)return}const{style:i}=this.container;let a;if(this.#di){const{borderColor:e,borderWidth:t}=i;i.borderWidth=0,a=["url('data:image/svg+xml;utf8,",'',``],this.container.classList.add("hasBorder")}const s=r-t,l=o-n,{svgFactory:c}=this,d=c.createElement("svg");d.classList.add("quadrilateralsContainer"),d.setAttribute("width",0),d.setAttribute("height",0),d.role="none";const u=c.createElement("defs");d.append(u);const h=c.createElement("clipPath"),p=`clippath_${this.data.id}`;h.setAttribute("id",p),h.setAttribute("clipPathUnits","objectBoundingBox"),u.append(h);for(let n=2,r=e.length;n`)}this.#di&&(a.push("')"),i.backgroundImage=a.join("")),this.container.append(d),this.container.style.clipPath=`url(#${p})`}_createPopup(e=null){const{data:t}=this;let n,r;e?(n={str:e.text},r=e.date):(n=t.contentsObj,r=t.modificationDate);const o=this.#ui=new Wr({data:{color:t.color,titleObj:t.titleObj,modificationDate:r,contentsObj:n,richText:t.richText,parentRect:t.rect,borderStyle:0,id:`popup_${t.id}`,rotation:t.rotation,noRotate:!0},linkService:this.linkService,parent:this.parent,elements:[this]});this.parent._commentManager||this.parent.div.append(o.render())}get hasPopupElement(){return!!(this.#ui||this.popup||this.data.popupRef)}get extraPopupElement(){return this.#ui}render(){L("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,t=null){const n=[];if(this._fieldObjects){const r=this._fieldObjects[e];if(r)for(const{page:e,id:o,exportValues:i}of r){if(-1===e)continue;if(o===t)continue;const r="string"==typeof i?i:null,a=document.querySelector(`[data-element-id="${o}"]`);!a||Pr.has(a)?n.push({id:o,exportValue:r,domElement:a}):N()}return n}for(const r of document.getElementsByName(e)){const{exportValue:e}=r,o=r.getAttribute("data-element-id");o!==t&&(Pr.has(r)&&n.push({id:o,exportValue:e,domElement:r}))}return n}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(const t of e)t.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:e,data:{id:t}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t,mustEnterInEditMode:!0})})}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}}class Tr extends Mr{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.editor=e.editor}render(){return this.container.className="editorAnnotation",this.container}createOrUpdatePopup(){const{editor:e}=this;e.hasComment&&(this._createPopup(e.comment),this.extraPopupElement.popup.renderCommentButton())}get hasCommentButton(){return this.enableComment&&this.editor.hasComment}get commentButtonPosition(){return this.editor.commentButtonPositionInPage}get commentText(){return this.editor.comment.text}set commentText(e){this.editor.comment=e,e||this.removePopup()}get commentData(){return this.editor.getData()}remove(){this.container.remove(),this.container=null,this.removePopup()}}class _r extends Mr{constructor(e,t=null){super(e,{isRenderable:!0,ignoreBorder:!!t?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:t}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let r=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),r=!0):e.action?(this._bindNamedAction(n,e.action,e.overlaidText),r=!0):e.attachment?(this.#pi(n,e.attachment,e.overlaidText,e.attachmentDest),r=!0):e.setOCGState?(this.#fi(n,e.setOCGState,e.overlaidText),r=!0):e.dest?(this._bindLink(n,e.dest,e.overlaidText),r=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),r=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),r=!0):this.isTooltipOnly&&!r&&(this._bindLink(n,""),r=!0)),this.container.classList.add("linkAnnotation"),r&&this.container.append(n),this.container}#mi(){this.container.setAttribute("data-internal-link","")}_bindLink(e,t,n=""){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&this.#mi(),n&&(e.title=n)}_bindNamedAction(e,t,n=""){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),n&&(e.title=n),this.#mi()}#pi(e,t,n="",r=null){e.href=this.linkService.getAnchorUrl(""),t.description?e.title=t.description:n&&(e.title=n),e.onclick=()=>(this.downloadManager?.openOrDownloadData(t.content,t.filename,r),!1),this.#mi()}#fi(e,t,n=""){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),n&&(e.title=n),this.#mi()}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const r of Object.keys(t.actions)){const o=n.get(r);o&&(e[o]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:r}}),!1))}t.overlaidText&&(e.title=t.overlaidText),e.onclick||(e.onclick=()=>!1),this.#mi()}_bindResetFormAction(e,t){const n=e.onclick;n||(e.href=this.linkService.getAnchorUrl("")),this.#mi(),this._fieldObjects?e.onclick=()=>{n?.();const{fields:e,refs:r,include:o}=t,i=[];if(0!==e.length||0!==r.length){const t=new Set(r);for(const n of e){const e=this._fieldObjects[n]||[];for(const{id:n}of e)t.add(n)}for(const e of Object.values(this._fieldObjects))for(const n of e)t.has(n.id)===o&&i.push(n)}else for(const e of Object.values(this._fieldObjects))i.push(...e);const a=this.annotationStorage,s=[];for(const e of i){const{id:t}=e;switch(s.push(t),e.type){case"text":{const n=e.defaultValue||"";a.setValue(t,{value:n});break}case"checkbox":case"radiobutton":{const n=e.defaultValue===e.exportValues;a.setValue(t,{value:n});break}case"combobox":case"listbox":{const n=e.defaultValue||"";a.setValue(t,{value:n});break}default:continue}const n=document.querySelector(`[data-element-id="${t}"]`);n&&(Pr.has(n)?n.dispatchEvent(new Event("resetform")):N())}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:s,name:"ResetForm"}}),!1}:n||(e.onclick=()=>!1)}}class Rr extends Mr{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),e.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}class Br extends Mr{render(){return this.container}showElementAndHideCanvas(e){this.data.hasOwnCanvas&&("CANVAS"===e.previousSibling?.nodeName&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){return te.platform.isMac?e.metaKey:e.ctrlKey}_setEventListener(e,t,n,r,o){n.includes("mouse")?e.addEventListener(n,e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:o(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})}):e.addEventListener(n,e=>{if("blur"===n){if(!t.focused||!e.relatedTarget)return;t.focused=!1}else if("focus"===n){if(t.focused)return;t.focused=!0}o&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:o(e)}})})}_setEventListeners(e,t,n,r){for(const[o,i]of n)("Action"===i||this.data.actions?.[i])&&("Focus"!==i&&"Blur"!==i||(t||={focused:!1}),this._setEventListener(e,t,o,i,r),"Focus"!==i||this.data.actions?.Blur?"Blur"!==i||this.data.actions?.Focus||this._setEventListener(e,t,"focus","Focus",null):this._setEventListener(e,t,"blur","Blur",null))}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":re.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const t=["left","center","right"],{fontColor:n}=this.data.defaultAppearanceData,r=this.data.defaultAppearanceData.fontSize||9,o=e.style;let a;const s=e=>Math.round(10*e)/10;if(this.data.multiLine){const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2),t=e/(Math.round(e/(i*r))||1);a=Math.min(r,s(t/i))}else{const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2);a=Math.min(r,s(e/i))}o.fontSize=`calc(${a}px * var(--total-scale-factor))`,o.color=re.makeHexColor(n[0],n[1],n[2]),null!==this.data.textAlignment&&(o.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class Fr extends Br{constructor(e){super(e,{isRenderable:e.renderForms||e.data.hasOwnCanvas||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,n,r){const o=this.annotationStorage;for(const i of this._getElementsByName(e.name,e.id))i.domElement&&(i.domElement[t]=n),o.setValue(i.id,{[r]:n})}render(){const e=this.annotationStorage,t=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){const r=e.getValue(t,{value:this.data.fieldValue});let o=r.value||"";const i=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;i&&o.length>i&&(o=o.slice(0,i));let a=r.formattedValue||this.data.textContent?.join("\n")||null;a&&this.data.comb&&(a=a.replaceAll(/\s+/g,""));const s={userValue:o,formattedValue:a,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=a??o,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type=this.data.password?"password":"text",n.setAttribute("value",a??o),this.data.doNotScroll&&(n.style.overflowX="hidden")),this.data.hasOwnCanvas&&(n.hidden=!0),Pr.add(n),n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=0;const{datetimeFormat:l,datetimeType:c,timeStep:d}=this.data,u=!!c&&this.enableScripting;l&&(n.title=l),this._setRequired(n,this.data.required),i&&(n.maxLength=i),n.addEventListener("input",r=>{e.setValue(t,{value:r.target.value}),this.setPropertyOnSiblings(n,"value",r.target.value,"value"),s.formattedValue=null}),n.addEventListener("resetform",e=>{const t=this.data.defaultFieldValue??"";n.value=s.userValue=t,s.formattedValue=null});let h=e=>{const{formattedValue:t}=s;null!=t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){n.addEventListener("focus",e=>{if(s.focused)return;const{target:t}=e;if(u&&(t.type=c,d&&(t.step=d)),s.userValue){const e=s.userValue;if(u)if("time"===c){const n=new Date(e),r=[n.getHours(),n.getMinutes(),n.getSeconds()];t.value=r.map(e=>e.toString().padStart(2,"0")).join(":")}else t.value=new Date(e-jr).toISOString().split("date"===c?"T":".",1)[0];else t.value=e}s.lastCommittedValue=t.value,s.commitKey=1,this.data.actions?.Focus||(s.focused=!0)}),n.addEventListener("updatefromsandbox",n=>{this.showElementAndHideCanvas(n.target);const r={value(n){s.userValue=n.detail.value??"",u||e.setValue(t,{value:s.userValue.toString()}),n.target.value=s.userValue},formattedValue(n){const{formattedValue:r}=n.detail;s.formattedValue=r,null!=r&&n.target!==document.activeElement&&(n.target.value=r);const o={formattedValue:r};u&&(o.value=r),e.setValue(t,o)},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:n=>{const{charLimit:r}=n.detail,{target:o}=n;if(0===r)return void o.removeAttribute("maxLength");o.setAttribute("maxLength",r);let i=s.userValue;!i||i.length<=r||(i=i.slice(0,r),o.value=s.userValue=i,e.setValue(t,{value:i}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,willCommit:!0,commitKey:1,selStart:o.selectionStart,selEnd:o.selectionEnd}}))}};this._dispatchEventFromSandbox(r,n)}),n.addEventListener("keydown",e=>{s.commitKey=1;let n=-1;if("Escape"===e.key?n=0:"Enter"!==e.key||this.data.multiLine?"Tab"===e.key&&(s.commitKey=3):n=2,-1===n)return;const{value:r}=e.target;s.lastCommittedValue!==r&&(s.lastCommittedValue=r,s.userValue=r,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:r,willCommit:!0,commitKey:n,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))});const r=h;h=null,n.addEventListener("blur",e=>{if(!s.focused||!e.relatedTarget)return;this.data.actions?.Blur||(s.focused=!1);const{target:n}=e;let{value:o}=n;if(u){if(o&&"time"===c){const e=o.split(":").map(e=>parseInt(e,10));o=new Date(2e3,0,1,e[0],e[1],e[2]||0).valueOf(),n.step=""}else o.includes("T")||(o=`${o}T00:00`),o=new Date(o).valueOf();n.type="text"}s.userValue=o,s.lastCommittedValue!==o&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,willCommit:!0,commitKey:s.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}),r(e)}),this.data.actions?.Keystroke&&n.addEventListener("beforeinput",e=>{s.lastCommittedValue=null;const{data:n,target:r}=e,{value:o,selectionStart:i,selectionEnd:a}=r;let l=i,c=a;switch(e.inputType){case"deleteWordBackward":{const e=o.substring(0,i).match(/\w*[^\w]*$/);e&&(l-=e[0].length);break}case"deleteWordForward":{const e=o.substring(i).match(/^[^\w]*\w*/);e&&(c+=e[0].length);break}case"deleteContentBackward":i===a&&(l-=1);break;case"deleteContentForward":i===a&&(c+=1)}e.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,change:n||"",willCommit:!1,selStart:l,selEnd:c}})}),this._setEventListeners(n,s,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],e=>e.target.value)}if(h&&n.addEventListener("blur",h),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/i;n.classList.add("comb"),n.style.letterSpacing=`calc(${e}px * var(--total-scale-factor) - 1ch)`}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell",this.data.hasOwnCanvas&&(n.hidden=!0);return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class Dr extends Br{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class zr extends Br{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;"string"==typeof r&&(r="Off"!==r,e.setValue(n,{value:r})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const o=document.createElement("input");return Pr.add(o),o.setAttribute("data-element-id",n),o.disabled=t.readOnly,this._setRequired(o,this.data.required),o.type="checkbox",o.name=t.fieldName,r&&o.setAttribute("checked",!0),o.setAttribute("exportValue",t.exportValue),o.tabIndex=0,o.addEventListener("change",r=>{const{name:o,checked:i}=r.target;for(const r of this._getElementsByName(o,n)){const n=i&&r.exportValue===t.exportValue;r.domElement&&(r.domElement.checked=n),e.setValue(r.id,{value:n})}e.setValue(n,{value:i})}),o.addEventListener("resetform",e=>{const n=t.defaultFieldValue||"Off";e.target.checked=n===t.exportValue}),this.enableScripting&&this.hasJSActions&&(o.addEventListener("updatefromsandbox",t=>{const r={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};this._dispatchEventFromSandbox(r,t)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],e=>e.target.checked)),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class Nr extends Br{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;if("string"==typeof r&&(r=r!==t.buttonValue,e.setValue(n,{value:r})),r)for(const r of this._getElementsByName(t.fieldName,n))e.setValue(r.id,{value:!1});const o=document.createElement("input");if(Pr.add(o),o.setAttribute("data-element-id",n),o.disabled=t.readOnly,this._setRequired(o,this.data.required),o.type="radio",o.name=t.fieldName,r&&o.setAttribute("checked",!0),o.tabIndex=0,o.addEventListener("change",t=>{const{name:r,checked:o}=t.target;for(const t of this._getElementsByName(r,n))e.setValue(t.id,{value:!1});e.setValue(n,{value:o})}),o.addEventListener("resetform",e=>{const n=t.defaultFieldValue;e.target.checked=null!=n&&n===t.buttonValue}),this.enableScripting&&this.hasJSActions){const r=t.buttonValue;o.addEventListener("updatefromsandbox",t=>{const o={value:t=>{const o=r===t.detail.value;for(const r of this._getElementsByName(t.target.name)){const t=o&&r.id===n;r.domElement&&(r.domElement.checked=t),e.setValue(r.id,{value:t})}}};this._dispatchEventFromSandbox(o,t)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],e=>e.target.checked)}return this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class Lr extends _r{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton");const t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",e=>{this._dispatchEventFromSandbox({},e)})),e}}class Hr extends Br{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue}),r=document.createElement("select");Pr.add(r),r.setAttribute("data-element-id",t),r.disabled=this.data.readOnly,this._setRequired(r,this.data.required),r.name=this.data.fieldName,r.tabIndex=0;let o=this.data.combo&&this.data.options.length>0;this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0)),r.addEventListener("resetform",e=>{const t=this.data.defaultFieldValue;for(const e of r.options)e.selected=e.value===t});for(const e of this.data.options){const t=document.createElement("option");t.textContent=e.displayValue,t.value=e.exportValue,n.value.includes(e.exportValue)&&(t.setAttribute("selected",!0),o=!1),r.append(t)}let i=null;if(o){const e=document.createElement("option");e.value=" ",e.setAttribute("hidden",!0),e.setAttribute("selected",!0),r.prepend(e),i=()=>{e.remove(),r.removeEventListener("input",i),i=null},r.addEventListener("input",i)}const a=e=>{const t=e?"value":"textContent",{options:n,multiple:o}=r;return o?Array.prototype.filter.call(n,e=>e.selected).map(e=>e[t]):-1===n.selectedIndex?null:n[n.selectedIndex][t]};let s=a(!1);const l=e=>{const t=e.target.options;return Array.prototype.map.call(t,e=>({displayValue:e.textContent,exportValue:e.value}))};return this.enableScripting&&this.hasJSActions?(r.addEventListener("updatefromsandbox",n=>{const o={value(n){i?.();const o=n.detail.value,l=new Set(Array.isArray(o)?o:[o]);for(const e of r.options)e.selected=l.has(e.value);e.setValue(t,{value:a(!0)}),s=a(!1)},multipleSelection(e){r.multiple=!0},remove(n){const o=r.options,i=n.detail.remove;if(o[i].selected=!1,r.remove(i),o.length>0){-1===Array.prototype.findIndex.call(o,e=>e.selected)&&(o[0].selected=!0)}e.setValue(t,{value:a(!0),items:l(n)}),s=a(!1)},clear(n){for(;0!==r.length;)r.remove(0);e.setValue(t,{value:null,items:[]}),s=a(!1)},insert(n){const{index:o,displayValue:i,exportValue:c}=n.detail.insert,d=r.children[o],u=document.createElement("option");u.textContent=i,u.value=c,d?d.before(u):r.append(u),e.setValue(t,{value:a(!0),items:l(n)}),s=a(!1)},items(n){const{items:o}=n.detail;for(;0!==r.length;)r.remove(0);for(const e of o){const{displayValue:t,exportValue:n}=e,o=document.createElement("option");o.textContent=t,o.value=n,r.append(o)}r.options.length>0&&(r.options[0].selected=!0),e.setValue(t,{value:a(!0),items:l(n)}),s=a(!1)},indices(n){const r=new Set(n.detail.indices);for(const e of n.target.options)e.selected=r.has(e.index);e.setValue(t,{value:a(!0)}),s=a(!1)},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(o,n)}),r.addEventListener("input",n=>{const r=a(!0),o=a(!1);e.setValue(t,{value:r}),n.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:s,change:o,changeEx:r,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(r,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],e=>e.target.value)):r.addEventListener("input",function(n){e.setValue(t,{value:a(!0)})}),this.data.combo&&this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class Wr extends Mr{constructor(e){const{data:t,elements:n,parent:r}=e,o=!!r._commentManager;if(super(e,{isRenderable:!o&&Mr._hasPopupData(t)}),this.elements=n,o&&Mr._hasPopupData(t)){const e=this.popup=this.#gi();for(const t of n)t.popup=e}else this.popup=null}#gi(){return new Ur({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate||this.data.creationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open,commentManager:this.parent._commentManager})}render(){const{container:e}=this;e.classList.add("popupAnnotation"),e.role="comment";const t=this.popup=this.#gi(),n=[];for(const e of this.elements)e.popup=t,e.container.ariaHasPopup="dialog",n.push(e.data.id),e.addHighlightArea();return this.container.setAttribute("aria-controls",n.map(e=>`${se}${e}`).join(",")),this.container}}class Ur{#z=null;#bi=this.#oi.bind(this);#vi=this.#yi.bind(this);#xi=this.#wi.bind(this);#Ai=this.#Si.bind(this);#Ci=null;#we=null;#$i=null;#ki=null;#Ei=null;#Oi=null;#Pi=null;#ji=!1;#Ii=null;#Mi=null;#O=null;#Ti=null;#_i=null;#pt=null;#Ri=null;#ct=null;#Bi=null;#ci=null;#Fi=!1;#Di=null;#zi=null;constructor({container:e,color:t,elements:n,titleObj:r,modificationDate:o,contentsObj:i,richText:a,parent:s,rect:l,parentRect:c,open:d,commentManager:u=null}){this.#we=e,this.#Bi=r,this.#$i=i,this.#ct=a,this.#Oi=s,this.#Ci=t,this.#Ri=l,this.#Pi=c,this.#Ei=n,this.#z=u,this.#Di=n[0],this.#ki=Se.toDateObject(o),this.trigger=n.flatMap(e=>e.getElementsToTriggerPopup()),u?this.renderCommentButton():(this.#Ni(),this.#we.hidden=!0,d&&this.#Si())}#Ni(){if(this.#Mi)return;this.#Mi=new AbortController;const{signal:e}=this.#Mi;for(const t of this.trigger)t.addEventListener("click",this.#Ai,{signal:e}),t.addEventListener("pointerenter",this.#xi,{signal:e}),t.addEventListener("pointerleave",this.#vi,{signal:e}),t.classList.add("popupTriggerArea");for(const t of this.#Ei)t.container?.addEventListener("keydown",this.#bi,{signal:e})}#Li(){const e=this.#Ei.find(e=>e.hasCommentButton);e&&(this.#_i=e._normalizePoint(e.commentButtonPosition))}renderCommentButton(){if(this.#Ti)return;if(this.#_i||this.#Li(),!this.#_i)return;const{signal:e}=this.#Mi=new AbortController,t=!!this.#Di.extraPopupElement,n=()=>{this.#z.toggleCommentPopup(this,!0,void 0,!t)},r=()=>{this.#z.toggleCommentPopup(this,!1,!0,!t)},o=()=>{this.#z.toggleCommentPopup(this,!1,!1)};if(t){this.#Ti=this.#Di.container;for(const t of this.trigger)t.ariaHasPopup="dialog",t.ariaControls="commentPopup",t.addEventListener("keydown",this.#bi,{signal:e}),t.addEventListener("click",n,{signal:e}),t.addEventListener("pointerenter",r,{signal:e}),t.addEventListener("pointerleave",o,{signal:e}),t.classList.add("popupTriggerArea")}else{const t=this.#Ti=document.createElement("button");t.className="annotationCommentButton";const i=this.#Di.container;t.style.zIndex=i.style.zIndex+1,t.tabIndex=0,t.ariaHasPopup="dialog",t.ariaControls="commentPopup",t.setAttribute("data-l10n-id","pdfjs-show-comment-button"),this.#Hi(),this.#Wi(),t.addEventListener("keydown",this.#bi,{signal:e}),t.addEventListener("click",n,{signal:e}),t.addEventListener("pointerenter",r,{signal:e}),t.addEventListener("pointerleave",o,{signal:e}),i.after(t)}}#Wi(){if(this.#Di.extraPopupElement&&!this.#Di.editor)return;this.renderCommentButton();const[e,t]=this.#_i,{style:n}=this.#Ti;n.left=`calc(${e}%)`,n.top=`calc(${t}% - var(--comment-button-dim))`}#Hi(){this.#Di.extraPopupElement||(this.renderCommentButton(),this.#Ti.style.backgroundColor=this.commentButtonColor||"")}get commentButtonColor(){const{color:e,opacity:t}=this.#Di.commentData;return e?this.#Oi._commentManager.makeCommentColor(e,t):null}focusCommentButton(){setTimeout(()=>{this.#Ti?.focus()},0)}getData(){const{richText:e,color:t,opacity:n,creationDate:r,modificationDate:o}=this.#Di.commentData;return{contentsObj:{str:this.comment},richText:e,color:t,opacity:n,creationDate:r,modificationDate:o}}get elementBeforePopup(){return this.#Ti}get comment(){return this.#zi||=this.#Di.commentText,this.#zi}set comment(e){e!==this.comment&&(this.#Di.commentText=this.#zi=e)}get parentBoundingClientRect(){return this.#Di.layer.getBoundingClientRect()}setCommentButtonStates({selected:e,hasPopup:t}){this.#Ti&&(this.#Ti.classList.toggle("selected",e),this.#Ti.ariaExpanded=t)}setSelectedCommentButton(e){this.#Ti.classList.toggle("selected",e)}get commentPopupPosition(){if(this.#pt)return this.#pt;const{x:e,y:t,height:n}=this.#Ti.getBoundingClientRect(),{x:r,y:o,width:i,height:a}=this.#Di.layer.getBoundingClientRect();return[(e-r)/i,(t+n-o)/a]}set commentPopupPosition(e){this.#pt=e}hasDefaultPopupPosition(){return null===this.#pt}get commentButtonPosition(){return this.#_i}get commentButtonWidth(){return this.#Ti.getBoundingClientRect().width/this.parentBoundingClientRect.width}editComment(e){const[t,n]=this.#pt||this.commentButtonPosition.map(e=>e/100),r=this.parentBoundingClientRect,{x:o,y:i,width:a,height:s}=r;this.#z.showDialog(null,this,o+t*a,i+n*s,{...e,parentDimensions:r})}render(){if(this.#Ii)return;const e=this.#Ii=document.createElement("div");if(e.className="popup",this.#Ci){const t=e.style.outlineColor=re.makeHexColor(...this.#Ci);e.style.backgroundColor=`color-mix(in srgb, ${t} 30%, white)`}const t=document.createElement("span");if(t.className="header",this.#Bi?.str){const e=document.createElement("span");e.className="title",t.append(e),({dir:e.dir,str:e.textContent}=this.#Bi)}if(e.append(t),this.#ki){const e=document.createElement("time");e.className="popupDate",e.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),e.setAttribute("data-l10n-args",JSON.stringify({dateObj:this.#ki.valueOf()})),e.dateTime=this.#ki.toISOString(),t.append(e)}Be({html:this.#Ui||this.#$i.str,dir:this.#$i?.dir,className:"popupContent"},e),this.#we.append(e)}get#Ui(){const e=this.#ct,t=this.#$i;return!e?.str||t?.str&&t.str!==e.str?null:this.#ct.html||null}get#Vi(){return this.#Ui?.attributes?.style?.fontSize||0}get#Gi(){return this.#Ui?.attributes?.style?.color||null}#qi(e){const t=[],n={str:e,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:t}]}},r={style:{color:this.#Gi,fontSize:this.#Vi?`calc(${this.#Vi}px * var(--total-scale-factor))`:""}};for(const n of e.split("\n"))t.push({name:"span",value:n,attributes:r});return n}#oi(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||("Enter"===e.key||"Escape"===e.key&&this.#ji)&&this.#Si()}updateEdited({rect:e,popup:t,deleted:n}){if(this.#z)return n?(this.remove(),this.#zi=null):t&&(t.deleted?this.remove():(this.#Hi(),this.#zi=t.text)),void(e&&(this.#_i=null,this.#Li(),this.#Wi()));n||t?.deleted?this.remove():(this.#Ni(),this.#ci||={contentsObj:this.#$i,richText:this.#ct},e&&(this.#O=null),t&&t.text&&(this.#ct=this.#qi(t.text),this.#ki=Se.toDateObject(t.date),this.#$i=null),this.#Ii?.remove(),this.#Ii=null)}resetEdited(){this.#ci&&(({contentsObj:this.#$i,richText:this.#ct}=this.#ci),this.#ci=null,this.#Ii?.remove(),this.#Ii=null,this.#O=null)}remove(){if(this.#Mi?.abort(),this.#Mi=null,this.#Ii?.remove(),this.#Ii=null,this.#Fi=!1,this.#ji=!1,this.#Ti?.remove(),this.#Ti=null,this.trigger)for(const e of this.trigger)e.classList.remove("popupTriggerArea")}#Xi(){if(null!==this.#O)return;const{page:{view:e},viewport:{rawDims:{pageWidth:t,pageHeight:n,pageX:r,pageY:o}}}=this.#Oi;let i=!!this.#Pi,a=i?this.#Pi:this.#Ri;for(const e of this.#Ei)if(!a||null!==re.intersect(e.data.rect,a)){a=e.data.rect,i=!0;break}const s=re.normalizeRect([a[0],e[3]-a[1]+e[1],a[2],e[3]-a[3]+e[1]]),l=i?a[2]-a[0]+5:0,c=s[0]+l,d=s[1];this.#O=[100*(c-r)/t,100*(d-o)/n];const{style:u}=this.#we;u.left=`${this.#O[0]}%`,u.top=`${this.#O[1]}%`}#Si(){this.#z?this.#z.toggleCommentPopup(this,!1):(this.#ji=!this.#ji,this.#ji?(this.#wi(),this.#we.addEventListener("click",this.#Ai),this.#we.addEventListener("keydown",this.#bi)):(this.#yi(),this.#we.removeEventListener("click",this.#Ai),this.#we.removeEventListener("keydown",this.#bi)))}#wi(){this.#Ii||this.render(),this.isVisible?this.#ji&&this.#we.classList.add("focused"):(this.#Xi(),this.#we.hidden=!1,this.#we.style.zIndex=parseInt(this.#we.style.zIndex)+1e3)}#yi(){this.#we.classList.remove("focused"),!this.#ji&&this.isVisible&&(this.#we.hidden=!0,this.#we.style.zIndex=parseInt(this.#we.style.zIndex)-1e3)}forceHide(){this.#Fi=this.isVisible,this.#Fi&&(this.#we.hidden=!0)}maybeShow(){this.#z||(this.#Ni(),this.#Fi&&(this.#Ii||this.#wi(),this.#Fi=!1,this.#we.hidden=!1))}get isVisible(){return!this.#z&&!1===this.#we.hidden}}class Vr extends Mr{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.textContent=e.data.textContent,this.textPosition=e.data.textPosition,this.annotationEditorType=g.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const e=document.createElement("div");e.classList.add("annotationTextContent"),e.setAttribute("role","comment");for(const t of this.textContent){const n=document.createElement("span");n.textContent=t,e.append(n)}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class Gr extends Mr{#Ki=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation");const{data:e,width:t,height:n}=this,r=this.svgFactory.create(t,n,!0),o=this.#Ki=this.svgFactory.createElement("svg:line");return o.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),o.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),o.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),o.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),o.setAttribute("stroke-width",e.borderStyle.width||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),r.append(o),this.container.append(r),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#Ki}addHighlightArea(){this.container.classList.add("highlightArea")}}class qr extends Mr{#Yi=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation");const{data:e,width:t,height:n}=this,r=this.svgFactory.create(t,n,!0),o=e.borderStyle.width,i=this.#Yi=this.svgFactory.createElement("svg:rect");return i.setAttribute("x",o/2),i.setAttribute("y",o/2),i.setAttribute("width",t-o),i.setAttribute("height",n-o),i.setAttribute("stroke-width",o||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),r.append(i),this.container.append(r),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#Yi}addHighlightArea(){this.container.classList.add("highlightArea")}}class Xr extends Mr{#Qi=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation");const{data:e,width:t,height:n}=this,r=this.svgFactory.create(t,n,!0),o=e.borderStyle.width,i=this.#Qi=this.svgFactory.createElement("svg:ellipse");return i.setAttribute("cx",t/2),i.setAttribute("cy",n/2),i.setAttribute("rx",t/2-o/2),i.setAttribute("ry",n/2-o/2),i.setAttribute("stroke-width",o||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","transparent"),r.append(i),this.container.append(r),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#Qi}addHighlightArea(){this.container.classList.add("highlightArea")}}class Kr extends Mr{#Ji=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:e,vertices:t,borderStyle:n,popupRef:r},width:o,height:i}=this;if(!t)return this.container;const a=this.svgFactory.create(o,i,!0);let s=[];for(let n=0,r=t.length;n=0&&o.setAttribute("stroke-width",t||1),n)for(let e=0,t=this.#ea.length;e{"Enter"===e.key&&(r?e.metaKey:e.ctrlKey)&&this.#ra()}),!t.popupRef&&this.hasPopupData?this._createPopup():n.classList.add("popupTriggerArea"),e.append(n),e}getElementsToTriggerPopup(){return this.#na}addHighlightArea(){this.container.classList.add("highlightArea")}#ra(){this.downloadManager?.openOrDownloadData(this.content,this.filename)}}class io{#oa=null;#ia=null;#B=null;#aa=new Map;#sa=null;#la=null;constructor({div:e,accessibilityManager:t,annotationCanvasMap:n,annotationEditorUIManager:r,page:o,viewport:i,structTreeLayer:a,commentManager:s,linkService:l,annotationStorage:c}){this.div=e,this.#oa=t,this.#ia=n,this.#sa=a||null,this.#la=l||null,this.#B=c||new nt,this.page=o,this.viewport=i,this.zIndex=0,this._annotationEditorUIManager=r,this._commentManager=s||null}hasEditableAnnotations(){return this.#aa.size>0}async#ca(e,t,n){const r=e.firstChild||e,o=r.id=`${se}${t}`,i=await(this.#sa?.getAriaAttributes(o));if(i)for(const[e,t]of i)r.setAttribute(e,t);n?n.at(-1).container.after(e):(this.div.append(e),this.#oa?.moveElementInDOM(this.div,e,r,!1))}async render(e){const{annotations:t}=e,n=this.div;Ee(n,this.viewport);const r=new Map,o={data:null,layer:n,linkService:this.#la,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new Or,annotationStorage:this.#B,enableComment:!0===e.enableComment,enableScripting:!0===e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(const e of t){if(e.noHTML)continue;const t=e.annotationType===$.POPUP;if(t){const t=r.get(e.id);if(!t)continue;o.elements=t}else if(e.rect[2]===e.rect[0]||e.rect[3]===e.rect[1])continue;o.data=e;const n=Ir.create(o);if(!n.isRenderable)continue;if(!t&&e.popupRef){const t=r.get(e.popupRef);t?t.push(n):r.set(e.popupRef,[n])}const i=n.render();e.hidden&&(i.style.visibility="hidden"),await this.#ca(i,e.id,o.elements),n.extraPopupElement?.popup?.renderCommentButton(),n._isEditable&&(this.#aa.set(n.data.id,n),this._annotationEditorUIManager?.renderAnnotationElement(n))}this.#da()}async addLinkAnnotations(e){const t={data:null,layer:this.div,linkService:this.#la,svgFactory:new Or,parent:this};for(const n of e){n.borderStyle||=io._defaultBorderStyle,t.data=n;const e=Ir.create(t);if(!e.isRenderable)continue;const r=e.render();await this.#ca(r,n.id,null)}}update({viewport:e}){const t=this.div;this.viewport=e,Ee(t,{rotation:e.rotation}),this.#da(),t.hidden=!1}#da(){if(!this.#ia)return;const e=this.div;for(const[t,n]of this.#ia){const r=e.querySelector(`[data-annotation-id="${t}"]`);if(!r)continue;n.className="annotationContent";const{firstChild:o}=r;o?"CANVAS"===o.nodeName?o.replaceWith(n):o.classList.contains("annotationContent")?o.after(n):o.before(n):r.append(n);const i=this.#aa.get(t);i&&(i._hasNoCanvas?(this._annotationEditorUIManager?.setMissingCanvas(t,r.id,n),i._hasNoCanvas=!1):i.canvas=n)}this.#ia.clear()}getEditableAnnotations(){return Array.from(this.#aa.values())}getEditableAnnotation(e){return this.#aa.get(e)}addFakeAnnotation(e){const{div:t}=this,{id:n,rotation:r}=e,o=new Tr({data:{id:n,rect:e.getPDFRect(),rotation:r},editor:e,layer:t,parent:this,enableComment:!!this._commentManager,linkService:this.#la,annotationStorage:this.#B}),i=o.render();return t.append(i),this.#oa?.moveElementInDOM(t,i,i,!1),o.createOrUpdatePopup(),o}static get _defaultBorderStyle(){return V(this,"_defaultBorderStyle",Object.freeze({width:1,rawWidth:1,style:k,dashArray:[3],horizontalCornerRadius:0,verticalCornerRadius:0}))}}const ao=/\r\n?|\n/g;class so extends Ke{#ua="";#ha=`${this.id}-editor`;#pa=null;#Vi;_colorPicker=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){const e=so.prototype,t=e=>e.isEmpty(),n=Ve.TRANSLATE_SMALL,r=Ve.TRANSLATE_BIG;return V(this,"_keyboardManager",new We([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-n,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-r,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[n,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[r,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-n],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-r],checker:t}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,n],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,r],checker:t}]]))}static _type="freetext";static _editorType=g.FREETEXT;constructor(e){super({...e,name:"freeTextEditor"}),this.color=e.color||so._defaultColor||Ke._defaultLineColor,this.#Vi=e.fontSize||so._defaultFontSize,this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-freetext-added-alert")}static initialize(e,t){Ke.initialize(e,t);const n=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(n.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case b.FREETEXT_SIZE:so._defaultFontSize=t;break;case b.FREETEXT_COLOR:so._defaultColor=t}}updateParams(e,t){switch(e){case b.FREETEXT_SIZE:this.#fa(t);break;case b.FREETEXT_COLOR:this.#Hi(t)}}static get defaultPropertiesToUpdate(){return[[b.FREETEXT_SIZE,so._defaultFontSize],[b.FREETEXT_COLOR,so._defaultColor||Ke._defaultLineColor]]}get propertiesToUpdate(){return[[b.FREETEXT_SIZE,this.#Vi],[b.FREETEXT_COLOR,this.color]]}get toolbarButtons(){return this._colorPicker||=new Sr(this),[["colorPicker",this._colorPicker]]}get colorType(){return b.FREETEXT_COLOR}#fa(e){const t=e=>{this.editorDiv.style.fontSize=`calc(${e}px * var(--total-scale-factor))`,this.translate(0,-(e-this.#Vi)*this.parentScale),this.#Vi=e,this.#ma()},n=this.#Vi;this.addCommands({cmd:t.bind(this,e),undo:t.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:b.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}onUpdatedColor(){this.editorDiv.style.color=this.color,this._colorPicker?.update(this.color),super.onUpdatedColor()}#Hi(e){const t=e=>{this.color=e,this.onUpdatedColor()},n=this.color;this.addCommands({cmd:t.bind(this,e),undo:t.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:b.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}getInitialTranslation(){const e=this.parentScale;return[-so._internalPadding*e,-(so._internalPadding+this.#Vi)*e]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(!super.enableEditMode())return!1;this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.#pa=new AbortController;const e=this._uiManager.combinedSignal(this.#pa);return this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:e}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:e}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:e}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:e}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:e}),!0}disableEditMode(){return!!super.disableEditMode()&&(this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#ha),this._isDraggable=!0,this.#pa?.abort(),this.#pa=null,this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"),!0)}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(e){this.width||(this.enableEditMode(),e&&this.editorDiv.focus(),this._initialOptions?.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()}#ga(){const e=[];this.editorDiv.normalize();let t=null;for(const n of this.editorDiv.childNodes)t?.nodeType===Node.TEXT_NODE&&"BR"===n.nodeName||(e.push(so.#ba(n)),t=n);return e.join("\n")}#ma(){const[e,t]=this.parentDimensions;let n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{const{currentLayer:e,div:t}=this,r=t.style.display,o=t.classList.contains("hidden");t.classList.remove("hidden"),t.style.display="hidden",e.div.append(this.div),n=t.getBoundingClientRect(),t.remove(),t.style.display=r,t.classList.toggle("hidden",o)}this.rotation%180==this.parentRotation%180?(this.width=n.width/e,this.height=n.height/t):(this.width=n.height/e,this.height=n.width/t),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const e=this.#ua,t=this.#ua=this.#ga().trimEnd();if(e===t)return;const n=e=>{this.#ua=e,e?(this.#va(),this._uiManager.rebuild(this),this.#ma()):this.remove()};this.addCommands({cmd:()=>{n(t)},undo:()=>{n(e)},mustExec:!1}),this.#ma()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}keydown(e){e.target===this.div&&"Enter"===e.key&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){so._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){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)}get canChangeContent(){return!0}render(){if(this.div)return this.div;let e,t;(this._isCopy||this.annotationElementId)&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#ha),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text2"),this.editorDiv.setAttribute("data-l10n-attrs","default-content"),this.enableEditing(),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize=`calc(${this.#Vi}px * var(--total-scale-factor))`,n.color=this.color,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),this._isCopy||this.annotationElementId){const[n,r]=this.parentDimensions;if(this.annotationElementId){const{position:o}=this._initialData;let[i,a]=this.getInitialTranslation();[i,a]=this.pageTranslationToScreen(i,a);const[s,l]=this.pageDimensions,[c,d]=this.pageTranslation;let u,h;switch(this.rotation){case 0:u=e+(o[0]-c)/s,h=t+this.height-(o[1]-d)/l;break;case 90:u=e+(o[0]-c)/s,h=t-(o[1]-d)/l,[i,a]=[a,-i];break;case 180:u=e-this.width+(o[0]-c)/s,h=t-(o[1]-d)/l,[i,a]=[-i,-a];break;case 270:u=e+(o[0]-c-this.height*l)/s,h=t+(o[1]-d-this.width*s)/l,[i,a]=[-a,i]}this.setAt(u*n,h*r,i,a)}else this._moveAfterPaste(e,t);this.#va(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}static#ba(e){return(e.nodeType===Node.TEXT_NODE?e.nodeValue:e.innerText).replaceAll(ao,"")}editorDivPaste(e){const t=e.clipboardData||window.clipboardData,{types:n}=t;if(1===n.length&&"text/plain"===n[0])return;e.preventDefault();const r=so.#ya(t.getData("text")||"").replaceAll(ao,"\n");if(!r)return;const o=window.getSelection();if(!o.rangeCount)return;this.editorDiv.normalize(),o.deleteFromDocument();const i=o.getRangeAt(0);if(!r.includes("\n"))return i.insertNode(document.createTextNode(r)),this.editorDiv.normalize(),void o.collapseToStart();const{startContainer:a,startOffset:s}=i,l=[],c=[];if(a.nodeType===Node.TEXT_NODE){const e=a.parentElement;if(c.push(a.nodeValue.slice(s).replaceAll(ao,"")),e!==this.editorDiv){let t=l;for(const n of this.editorDiv.childNodes)n!==e?t.push(so.#ba(n)):t=c}l.push(a.nodeValue.slice(0,s).replaceAll(ao,""))}else if(a===this.editorDiv){let e=l,t=0;for(const n of this.editorDiv.childNodes)t++===s&&(e=c),e.push(so.#ba(n))}this.#ua=`${l.join("\n")}${r}${c.join("\n")}`,this.#va();const d=new Range;let u=Math.sumPrecise(l.map(e=>e.length));for(const{firstChild:e}of this.editorDiv.childNodes)if(e.nodeType===Node.TEXT_NODE){const t=e.nodeValue.length;if(u<=t){d.setStart(e,u),d.setEnd(e,u);break}u-=t}o.removeAllRanges(),o.addRange(d)}#va(){if(this.editorDiv.replaceChildren(),this.#ua)for(const e of this.#ua.split("\n")){const t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}}#xa(){return this.#ua.replaceAll(" "," ")}static#ya(e){return e.replaceAll(" "," ")}get contentDiv(){return this.editorDiv}getPDFRect(){const e=so._internalPadding*this.parentScale;return this.getRect(e,e)}static async deserialize(e,t,n){let r=null;if(e instanceof Vr){const{data:{defaultAppearanceData:{fontSize:t,fontColor:n},rect:o,rotation:i,id:a,popupRef:s,richText:l,contentsObj:c,creationDate:d,modificationDate:u},textContent:h,textPosition:p,parent:{page:{pageNumber:f}}}=e;if(!h||0===h.length)return null;r=e={annotationType:g.FREETEXT,color:Array.from(n),fontSize:t,value:h.join("\n"),position:p,pageIndex:f-1,rect:o.slice(0),rotation:i,annotationElementId:a,id:a,deleted:!1,popupRef:s,comment:c?.str||null,richText:l,creationDate:d,modificationDate:u}}const o=await super.deserialize(e,t,n);return o.#Vi=e.fontSize,o.color=re.makeHexColor(...e.color),o.#ua=so.#ya(e.value),o._initialData=r,e.comment&&o.setCommentData(e),o}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const t=Ke._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.color),n=Object.assign(super.serialize(e),{color:t,fontSize:this.#Vi,value:this.#xa()});return this.addComment(n),e?(n.isCopy=!0,n):this.annotationElementId&&!this.#wa(n)?null:(n.id=this.annotationElementId,n)}#wa(e){const{value:t,fontSize:n,color:r,pageIndex:o}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||e.value!==t||e.fontSize!==n||e.color.some((e,t)=>e!==r[t])||e.pageIndex!==o}renderAnnotationElement(e){const t=super.renderAnnotationElement(e);if(!t)return null;const{style:n}=t;n.fontSize=`calc(${this.#Vi}px * var(--total-scale-factor))`,n.color=this.color,t.replaceChildren();for(const e of this.#ua.split("\n")){const n=document.createElement("div");n.append(e?document.createTextNode(e):document.createElement("br")),t.append(n)}return e.updateEdited({rect:this.getPDFRect(),popup:this._uiManager.hasCommentManager()||this.hasEditedComment?this.comment:{text:this.#ua}}),t}resetAnnotationElement(e){super.resetAnnotationElement(e),e.resetEdited()}}class lo{static PRECISION=1e-4;toSVGPath(){L("Abstract method `toSVGPath` must be implemented.")}get box(){L("Abstract getter `box` must be implemented.")}serialize(e,t){L("Abstract method `serialize` must be implemented.")}static _rescale(e,t,n,r,o,i){i||=new Float32Array(e.length);for(let a=0,s=e.length;a=6;e-=6)isNaN(t[e])?n.push(`L${t[e+4]} ${t[e+5]}`):n.push(`C${t[e]} ${t[e+1]} ${t[e+2]} ${t[e+3]} ${t[e+4]} ${t[e+5]}`);return this.#La(n),n.join(" ")}#za(){const[e,t,n,r]=this.#Aa,[o,i,a,s]=this.#Da();return`M${(this.#Ea[2]-e)/n} ${(this.#Ea[3]-t)/r} L${(this.#Ea[4]-e)/n} ${(this.#Ea[5]-t)/r} L${o} ${i} L${a} ${s} L${(this.#Ea[16]-e)/n} ${(this.#Ea[17]-t)/r} L${(this.#Ea[14]-e)/n} ${(this.#Ea[15]-t)/r} Z`}#La(e){const t=this.#Sa;e.push(`L${t[4]} ${t[5]} Z`)}#Na(e){const[t,n,r,o]=this.#Aa,i=this.#Ea.subarray(4,6),a=this.#Ea.subarray(16,18),[s,l,c,d]=this.#Da();e.push(`L${(i[0]-t)/r} ${(i[1]-n)/o} L${s} ${l} L${c} ${d} L${(a[0]-t)/r} ${(a[1]-n)/o}`)}newFreeDrawOutline(e,t,n,r,o,i){return new uo(e,t,n,r,o,i)}getOutlines(){const e=this.#ka,t=this.#Sa,n=this.#Ea,[r,o,i,a]=this.#Aa,s=new Float32Array((this.#_a?.length??0)+2);for(let e=0,t=s.length-2;e=6;e-=6)for(let n=0;n<6;n+=2)isNaN(t[e+n])?(l[c]=l[c+1]=NaN,c+=2):(l[c]=t[e+n],l[c+1]=t[e+n+1],c+=2);return this.#Ua(l,c),this.newFreeDrawOutline(l,s,this.#Aa,this.#Ma,this.#Ca,this.#$a)}#Ha(e){const t=this.#Ea,[n,r,o,i]=this.#Aa,[a,s,l,c]=this.#Da(),d=new Float32Array(36);return d.set([NaN,NaN,NaN,NaN,(t[2]-n)/o,(t[3]-r)/i,NaN,NaN,NaN,NaN,(t[4]-n)/o,(t[5]-r)/i,NaN,NaN,NaN,NaN,a,s,NaN,NaN,NaN,NaN,l,c,NaN,NaN,NaN,NaN,(t[16]-n)/o,(t[17]-r)/i,NaN,NaN,NaN,NaN,(t[14]-n)/o,(t[15]-r)/i],0),this.newFreeDrawOutline(d,e,this.#Aa,this.#Ma,this.#Ca,this.#$a)}#Ua(e,t){const n=this.#Sa;return e.set([NaN,NaN,NaN,NaN,n[4],n[5]],t),t+6}#Wa(e,t){const n=this.#Ea.subarray(4,6),r=this.#Ea.subarray(16,18),[o,i,a,s]=this.#Aa,[l,c,d,u]=this.#Da();return e.set([NaN,NaN,NaN,NaN,(n[0]-o)/a,(n[1]-i)/s,NaN,NaN,NaN,NaN,l,c,NaN,NaN,NaN,NaN,d,u,NaN,NaN,NaN,NaN,(r[0]-o)/a,(r[1]-i)/s],t),t+24}}class uo extends lo{#Aa;#Va=new Float32Array(4);#Ca;#$a;#_a;#Ma;#Ga;constructor(e,t,n,r,o,i){super(),this.#Ga=e,this.#_a=t,this.#Aa=n,this.#Ma=r,this.#Ca=o,this.#$a=i,this.firstPoint=[NaN,NaN],this.lastPoint=[NaN,NaN],this.#qa(i);const[a,s,l,c]=this.#Va;for(let t=0,n=e.length;th?(i=u,a=h):a===h&&(i=c(i,u)),ld[1]?(i=d[0],a=d[1]):a===d[1]&&(i=c(i,d[0])),le[0]-t[0]||e[1]-t[1]||e[2]-t[2]);const e=[];for(const t of this.#Ya)t[3]?(e.push(...this.#Ja(t)),this.#Za(t)):(this.#es(t),e.push(...this.#Ja(t)));return this.#ts(e)}#ts(e){const t=[],n=new Set;for(const n of e){const[e,r,o]=n;t.push([e,r,n],[e,o,n])}t.sort((e,t)=>e[1]-t[1]||e[0]-t[0]);for(let e=0,r=t.length;e0;){const e=n.values().next().value;let[t,i,a,s,l]=e;n.delete(e);let c=t,d=i;for(o=[t,a],r.push(o);;){let e;if(n.has(s))e=s;else{if(!n.has(l))break;e=l}n.delete(e),[t,i,a,s,l]=e,c!==t&&(o.push(c,d,t,d===i?i:a),c=t),d=d===i?a:i}o.push(c,d)}return new po(r,this.#Aa,this.#Xa,this.#Ka)}#ns(e){const t=this.#Qa;let n=0,r=t.length-1;for(;n<=r;){const o=n+r>>1,i=t[o][0];if(i===e)return o;i=0;r--){const[n,o]=this.#Qa[r];if(n!==e)break;if(n===e&&o===t)return void this.#Qa.splice(r,1)}}#Ja(e){const[t,n,r]=e,o=[[t,n,r]],i=this.#ns(r);for(let e=0;e=n)if(s>r)o[e][1]=r;else{if(1===i)return[];o.splice(e,1),e--,i--}else o[e][2]=n,s>r&&o.push([t,r,s])}}return o}}class po extends lo{#Aa;#rs;constructor(e,t,n,r){super(),this.#rs=e,this.#Aa=t,this.firstPoint=n,this.lastPoint=r}toSVGPath(){const e=[];for(const t of this.#rs){let[n,r]=t;e.push(`M${n} ${r}`);for(let o=2;o-1?(this.#ps=!0,this.#gs(e),this.#bs()):this.#as&&(this.#os=e.anchorNode,this.#is=e.anchorOffset,this.#cs=e.focusNode,this.#ds=e.focusOffset,this.#vs(),this.#bs(),this.rotate(this.rotation)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-highlight-added-alert")}get telemetryInitialData(){return{action:"added",type:this.#ps?"free_highlight":"highlight",color:this._uiManager.getNonHCMColorName(this.color),thickness:this.#Ta,methodOfCreation:this.#ms}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.getNonHCMColorName(this.color)}}static computeTelemetryFinalData(e){return{numberOfColors:e.get("color").size}}#vs(){const e=new ho(this.#as,.001);this.#hs=e.getOutlines(),[this.x,this.y,this.width,this.height]=this.#hs.box;const t=new ho(this.#as,.0025,.001,"ltr"===this._uiManager.direction);this.#ls=t.getOutlines();const{firstPoint:n}=this.#hs;this.#Xa=[(n[0]-this.x)/this.width,(n[1]-this.y)/this.height];const{lastPoint:r}=this.#ls;this.#Ka=[(r[0]-this.x)/this.width,(r[1]-this.y)/this.height]}#gs({highlightOutlines:e,highlightId:t,clipPathId:n}){this.#hs=e;if(this.#ls=e.getNewOutline(this.#Ta/2+1.5,.0025),t>=0)this.#w=t,this.#ss=n,this.parent.drawLayer.finalizeDraw(t,{bbox:e.box,path:{d:e.toSVGPath()}}),this.#fs=this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:this.#ls.box,path:{d:this.#ls.toSVGPath()}},!0);else if(this.parent){const t=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(this.#w,{bbox:go.#ys(this.#hs.box,(t-this.rotation+360)%360),path:{d:e.toSVGPath()}}),this.parent.drawLayer.updateProperties(this.#fs,{bbox:go.#ys(this.#ls.box,t),path:{d:this.#ls.toSVGPath()}})}const[r,o,i,a]=e.box;switch(this.rotation){case 0:this.x=r,this.y=o,this.width=i,this.height=a;break;case 90:{const[e,t]=this.parentDimensions;this.x=o,this.y=1-r,this.width=i*t/e,this.height=a*e/t;break}case 180:this.x=1-r,this.y=1-o,this.width=i,this.height=a;break;case 270:{const[e,t]=this.parentDimensions;this.x=1-o,this.y=r,this.width=i*t/e,this.height=a*e/t;break}}const{firstPoint:s}=e;this.#Xa=[(s[0]-r)/i,(s[1]-o)/a];const{lastPoint:l}=this.#ls;this.#Ka=[(l[0]-r)/i,(l[1]-o)/a]}static initialize(e,t){Ke.initialize(e,t),go._defaultColor||=t.highlightColors?.values().next().value||"#fff066"}static updateDefaultParams(e,t){switch(e){case b.HIGHLIGHT_COLOR:go._defaultColor=t;break;case b.HIGHLIGHT_THICKNESS:go._defaultThickness=t}}translateInPage(e,t){}get toolbarPosition(){return this.#Ka}get commentButtonPosition(){return this.#Xa}updateParams(e,t){switch(e){case b.HIGHLIGHT_COLOR:this.#Hi(t);break;case b.HIGHLIGHT_THICKNESS:this.#xs(t)}}static get defaultPropertiesToUpdate(){return[[b.HIGHLIGHT_COLOR,go._defaultColor],[b.HIGHLIGHT_THICKNESS,go._defaultThickness]]}get propertiesToUpdate(){return[[b.HIGHLIGHT_COLOR,this.color||go._defaultColor],[b.HIGHLIGHT_THICKNESS,this.#Ta||go._defaultThickness],[b.HIGHLIGHT_FREE,this.#ps]]}onUpdatedColor(){this.parent?.drawLayer.updateProperties(this.#w,{root:{fill:this.color,"fill-opacity":this.opacity}}),this.#o?.updateColor(this.color),super.onUpdatedColor()}#Hi(e){const t=(e,t)=>{this.color=e,this.opacity=t,this.onUpdatedColor()},n=this.color,r=this.opacity;this.addCommands({cmd:t.bind(this,e,go._defaultOpacity),undo:t.bind(this,n,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:b.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.getNonHCMColorName(e)},!0)}#xs(e){const t=this.#Ta,n=e=>{this.#Ta=e,this.#ws(e)};this.addCommands({cmd:n.bind(this,e),undo:n.bind(this,t),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:b.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:e},!0)}get toolbarButtons(){if(this._uiManager.highlightColors){return[["colorPicker",this.#o=new Ar({editor:this})]]}return super.toolbarButtons}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(this.#As())}getBaseTranslation(){return[0,0]}getRect(e,t){return super.getRect(e,t,this.#As())}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),e&&this.div.focus()}remove(){this.#Ss(),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.#bs(),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let t=!1;this.parent&&!e?this.#Ss():e&&(this.#bs(e),t=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(e),this.show(this._isVisible),t&&this.select()}#ws(e){this.#ps&&(this.#gs({highlightOutlines:this.#hs.getNewOutline(e/2)}),this.fixAndSetPosition(),this.setDims(this.width,this.height))}#Ss(){null!==this.#w&&this.parent&&(this.parent.drawLayer.remove(this.#w),this.#w=null,this.parent.drawLayer.remove(this.#fs),this.#fs=null)}#bs(e=this.parent){null===this.#w&&(({id:this.#w,clipPathId:this.#ss}=e.drawLayer.draw({bbox:this.#hs.box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":this.opacity},rootClass:{highlight:!0,free:this.#ps},path:{d:this.#hs.toSVGPath()}},!1,!0)),this.#fs=e.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:this.#ps},bbox:this.#ls.box,path:{d:this.#ls.toSVGPath()}},this.#ps),this.#us&&(this.#us.style.clipPath=this.#ss))}static#ys([e,t,n,r],o){switch(o){case 90:return[1-t-r,e,r,n];case 180:return[1-e-n,1-t-r,n,r];case 270:return[t,1-e-n,r,n]}return[e,t,n,r]}rotate(e){const{drawLayer:t}=this.parent;let n;this.#ps?(e=(e-this.rotation+360)%360,n=go.#ys(this.#hs.box,e)):n=go.#ys([this.x,this.y,this.width,this.height],e),t.updateProperties(this.#w,{bbox:n,root:{"data-main-rotation":e}}),t.updateProperties(this.#fs,{bbox:go.#ys(this.#ls.box,e),root:{"data-main-rotation":e}})}render(){if(this.div)return this.div;const e=super.render();this.#dt&&(e.setAttribute("aria-label",this.#dt),e.setAttribute("role","mark")),this.#ps?e.classList.add("free"):this.div.addEventListener("keydown",this.#Cs.bind(this),{signal:this._uiManager._signal});const t=this.#us=document.createElement("div");return e.append(t),t.setAttribute("aria-hidden","true"),t.className="internal",t.style.clipPath=this.#ss,this.setDims(this.width,this.height),ze(this,this.#us,["pointerover","pointerleave"]),this.enableEditing(),e}pointerover(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#fs,{rootClass:{hovered:!0}})}pointerleave(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#fs,{rootClass:{hovered:!1}})}#Cs(e){go._keyboardManager.exec(this,e)}_moveCaret(e){switch(this.parent.unselect(this),e){case 0:case 2:this.#$s(!0);break;case 1:case 3:this.#$s(!1)}}#$s(e){if(!this.#os)return;const t=window.getSelection();e?t.setPosition(this.#os,this.#is):t.setPosition(this.#cs,this.#ds)}select(){super.select(),this.#fs&&this.parent?.drawLayer.updateProperties(this.#fs,{rootClass:{hovered:!1,selected:!0}})}unselect(){super.unselect(),this.#fs&&(this.parent?.drawLayer.updateProperties(this.#fs,{rootClass:{selected:!1}}),this.#ps||this.#$s(!1))}get _mustFixPosition(){return!this.#ps}show(e=this._isVisible){super.show(e),this.parent&&(this.parent.drawLayer.updateProperties(this.#w,{rootClass:{hidden:!e}}),this.parent.drawLayer.updateProperties(this.#fs,{rootClass:{hidden:!e}}))}#As(){return this.#ps?this.rotation:0}#ks(){if(this.#ps)return null;const[e,t]=this.pageDimensions,[n,r]=this.pageTranslation,o=this.#as,i=new Float32Array(8*o.length);let a=0;for(const{x:s,y:l,width:c,height:d}of o){const o=s*e+n,u=(1-l)*t+r;i[a]=i[a+4]=o,i[a+1]=i[a+3]=u,i[a+2]=i[a+6]=o+c*e,i[a+5]=i[a+7]=u-d*t,a+=8}return i}#Es(e){return this.#hs.serialize(e,this.#As())}static startHighlighting(e,t,{target:n,x:r,y:o}){const{x:i,y:a,width:s,height:l}=n.getBoundingClientRect(),c=new AbortController,d=e.combinedSignal(c),u=t=>{c.abort(),this.#Os(e,t)};window.addEventListener("blur",u,{signal:d}),window.addEventListener("pointerup",u,{signal:d}),window.addEventListener("pointerdown",Ae,{capture:!0,passive:!1,signal:d}),window.addEventListener("contextmenu",we,{signal:d}),n.addEventListener("pointermove",this.#Ps.bind(this,e),{signal:d}),this._freeHighlight=new fo({x:r,y:o},[i,a,s,l],e.scale,this._defaultThickness/2,t,.001),({id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=e.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0))}static#Ps(e,t){this._freeHighlight.add(t)&&e.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})}static#Os(e,t){this._freeHighlight.isEmpty()?e.drawLayer.remove(this._freeHighlightId):e.createAndAddNewEditor(t,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""}static async deserialize(e,t,n){let r=null;if(e instanceof Zr){const{data:{quadPoints:t,rect:n,rotation:o,id:i,color:a,opacity:s,popupRef:l,richText:c,contentsObj:d,creationDate:u,modificationDate:h},parent:{page:{pageNumber:p}}}=e;r=e={annotationType:g.HIGHLIGHT,color:Array.from(a),opacity:s,quadPoints:t,boxes:null,pageIndex:p-1,rect:n.slice(0),rotation:o,annotationElementId:i,id:i,deleted:!1,popupRef:l,richText:c,comment:d?.str||null,creationDate:u,modificationDate:h}}else if(e instanceof Jr){const{data:{inkLists:t,rect:n,rotation:o,id:i,color:a,borderStyle:{rawWidth:s},popupRef:l,richText:c,contentsObj:d,creationDate:u,modificationDate:h},parent:{page:{pageNumber:p}}}=e;r=e={annotationType:g.HIGHLIGHT,color:Array.from(a),thickness:s,inkLists:t,boxes:null,pageIndex:p-1,rect:n.slice(0),rotation:o,annotationElementId:i,id:i,deleted:!1,popupRef:l,richText:c,comment:d?.str||null,creationDate:u,modificationDate:h}}const{color:o,quadPoints:i,inkLists:a,opacity:s}=e,l=await super.deserialize(e,t,n);l.color=re.makeHexColor(...o),l.opacity=s||1,a&&(l.#Ta=e.thickness),l._initialData=r,e.comment&&l.setCommentData(e);const[c,d]=l.pageDimensions,[u,h]=l.pageTranslation;if(i){const e=l.#as=[];for(let t=0;te!==t[n])}renderAnnotationElement(e){return this.deleted?(e.hide(),null):(e.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}static canCreateNewEmptyEditor(){return!1}}class bo{#js=Object.create(null);updateProperty(e,t){this[e]=t,this.updateSVGProperty(e,t)}updateProperties(e){if(e)for(const[t,n]of Object.entries(e))t.startsWith("_")||this.updateProperty(t,n)}updateSVGProperty(e,t){this.#js[e]=t}toSVGProperties(){const e=this.#js;return this.#js=Object.create(null),{root:e}}reset(){this.#js=Object.create(null)}updateAll(e=this){this.updateProperties(e)}clone(){L("Not implemented")}}class vo extends Ke{#Is=null;#Ms;_colorPicker=null;_drawId=null;static _currentDrawId=-1;static _currentParent=null;static#Ts=null;static#_s=null;static#Rs=null;static#Bs=NaN;static#Fs=null;static#Ds=null;static#zs=NaN;static _INNER_MARGIN=3;constructor(e){super(e),this.#Ms=e.mustBeCommitted||!1,this._addOutlines(e)}onUpdatedColor(){this._colorPicker?.update(this.color),super.onUpdatedColor()}_addOutlines(e){e.drawOutlines&&(this.#Ns(e),this.#bs())}#Ns({drawOutlines:e,drawId:t,drawingOptions:n}){this.#Is=e,this._drawingOptions||=n,this.annotationElementId||this._uiManager.a11yAlert(`pdfjs-editor-${this.editorType}-added-alert`),t>=0?(this._drawId=t,this.parent.drawLayer.finalizeDraw(t,e.defaultProperties)):this._drawId=this.#Ls(e,this.parent),this.#Hs(e.box)}#Ls(e,t){const{id:n}=t.drawLayer.draw(vo._mergeSVGProperties(this._drawingOptions.toSVGProperties(),e.defaultSVGProperties),!1,!1);return n}static _mergeSVGProperties(e,t){const n=new Set(Object.keys(e));for(const[r,o]of Object.entries(t))n.has(r)?Object.assign(e[r],o):e[r]=o;return e}static getDefaultDrawingOptions(e){L("Not implemented")}static get typesMap(){L("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(e,t){const n=this.typesMap.get(e);n&&this._defaultDrawingOptions.updateProperty(n,t),this._currentParent&&(vo.#Ts.updateProperty(n,t),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(e,t){const n=this.constructor.typesMap.get(e);n&&this._updateProperty(e,n,t)}static get defaultPropertiesToUpdate(){const e=[],t=this._defaultDrawingOptions;for(const[n,r]of this.typesMap)e.push([n,t[r]]);return e}get propertiesToUpdate(){const e=[],{_drawingOptions:t}=this;for(const[n,r]of this.constructor.typesMap)e.push([n,t[r]]);return e}_updateProperty(e,t,n){const r=this._drawingOptions,o=r[t],i=n=>{r.updateProperty(t,n);const o=this.#Is.updateProperty(t,n);o&&this.#Hs(o),this.parent?.drawLayer.updateProperties(this._drawId,r.toSVGProperties()),e===this.colorType&&this.onUpdatedColor()};this.addCommands({cmd:i.bind(this,n),undo:i.bind(this,o),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:e,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){this.parent?.drawLayer.updateProperties(this._drawId,vo._mergeSVGProperties(this.#Is.getPathResizingSVGProperties(this.#Ws()),{bbox:this.#Us()}))}_onResized(){this.parent?.drawLayer.updateProperties(this._drawId,vo._mergeSVGProperties(this.#Is.getPathResizedSVGProperties(this.#Ws()),{bbox:this.#Us()}))}_onTranslating(e,t){this.parent?.drawLayer.updateProperties(this._drawId,{bbox:this.#Us()})}_onTranslated(){this.parent?.drawLayer.updateProperties(this._drawId,vo._mergeSVGProperties(this.#Is.getPathTranslatedSVGProperties(this.#Ws(),this.parentDimensions),{bbox:this.#Us()}))}_onStartDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,this.#Ms&&(this.#Ms=!1,this.commit(),this.parent.setSelected(this),e&&this.isOnScreen&&this.div.focus())}remove(){this.#Ss(),super.remove()}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.#bs(),this.#Hs(this.#Is.box),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let t=!1;this.parent&&!e?(this._uiManager.removeShouldRescale(this),this.#Ss()):e&&(this._uiManager.addShouldRescale(this),this.#bs(e),t=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(e),t&&this.select()}#Ss(){null!==this._drawId&&this.parent&&(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())}#bs(e=this.parent){null!==this._drawId&&this.parent===e||(null===this._drawId?(this._drawingOptions.updateAll(),this._drawId=this.#Ls(this.#Is,e)):this.parent.drawLayer.updateParent(this._drawId,e.drawLayer))}#Vs([e,t,n,r]){const{parentDimensions:[o,i],rotation:a}=this;switch(a){case 90:return[t,1-e,n*(i/o),r*(o/i)];case 180:return[1-e,1-t,n,r];case 270:return[1-t,e,n*(i/o),r*(o/i)];default:return[e,t,n,r]}}#Ws(){const{x:e,y:t,width:n,height:r,parentDimensions:[o,i],rotation:a}=this;switch(a){case 90:return[1-t,e,n*(o/i),r*(i/o)];case 180:return[1-e,1-t,n,r];case 270:return[t,1-e,n*(o/i),r*(i/o)];default:return[e,t,n,r]}}#Hs(e){[this.x,this.y,this.width,this.height]=this.#Vs(e),this.div&&(this.fixAndSetPosition(),this.setDims()),this._onResized()}#Us(){const{x:e,y:t,width:n,height:r,rotation:o,parentRotation:i,parentDimensions:[a,s]}=this;switch((4*o+i)/90){case 1:return[1-t-r,e,r,n];case 2:return[1-e-n,1-t-r,n,r];case 3:return[t,1-e-n,r,n];case 4:return[e,t-n*(a/s),r*(s/a),n*(a/s)];case 5:return[1-t,e,n*(a/s),r*(s/a)];case 6:return[1-e-r*(s/a),1-t,r*(s/a),n*(a/s)];case 7:return[t-n*(a/s),1-e-r*(s/a),n*(a/s),r*(s/a)];case 8:return[e-n,t-r,n,r];case 9:return[1-t,e-n,r,n];case 10:return[1-e,1-t,n,r];case 11:return[t-r,1-e,r,n];case 12:return[e-r*(s/a),t,r*(s/a),n*(a/s)];case 13:return[1-t-n*(a/s),e-r*(s/a),n*(a/s),r*(s/a)];case 14:return[1-e,1-t-n*(a/s),r*(s/a),n*(a/s)];case 15:return[t,1-e,n*(a/s),r*(s/a)];default:return[e,t,n,r]}}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,vo._mergeSVGProperties({bbox:this.#Us()},this.#Is.updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&this.#Hs(this.#Is.updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let e,t;this._isCopy&&(e=this.x,t=this.y);const n=super.render();n.classList.add("draw");const r=document.createElement("div");return n.append(r),r.setAttribute("aria-hidden","true"),r.className="internal",this.setDims(),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(e,t),n}static createDrawerInstance(e,t,n,r,o){L("Not implemented")}static startDrawing(e,t,n,r){const{target:o,offsetX:i,offsetY:a,pointerId:s,pointerType:l}=r;if(vo.#Fs&&vo.#Fs!==l)return;const{viewport:{rotation:c}}=e,{width:d,height:u}=o.getBoundingClientRect(),h=vo.#_s=new AbortController,p=e.combinedSignal(h);vo.#Bs||=s,vo.#Fs??=l,window.addEventListener("pointerup",e=>{vo.#Bs===e.pointerId?this._endDraw(e):vo.#Ds?.delete(e.pointerId)},{signal:p}),window.addEventListener("pointercancel",e=>{vo.#Bs===e.pointerId?this._currentParent.endDrawingSession():vo.#Ds?.delete(e.pointerId)},{signal:p}),window.addEventListener("pointerdown",e=>{vo.#Fs===e.pointerType&&((vo.#Ds||=new Set).add(e.pointerId),vo.#Ts.isCancellable()&&(vo.#Ts.removeLastElement(),vo.#Ts.isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:p}),window.addEventListener("contextmenu",we,{signal:p}),o.addEventListener("pointermove",this._drawMove.bind(this),{signal:p}),o.addEventListener("touchmove",e=>{e.timeStamp===vo.#zs&&Ae(e)},{signal:p}),e.toggleDrawing(),t._editorUndoBar?.hide(),vo.#Ts?e.drawLayer.updateProperties(this._currentDrawId,vo.#Ts.startNew(i,a,d,u,c)):(t.updateUIForDefaultProperties(this),vo.#Ts=this.createDrawerInstance(i,a,d,u,c),vo.#Rs=this.getDefaultDrawingOptions(),this._currentParent=e,({id:this._currentDrawId}=e.drawLayer.draw(this._mergeSVGProperties(vo.#Rs.toSVGProperties(),vo.#Ts.defaultSVGProperties),!0,!1)))}static _drawMove(e){if(vo.#zs=-1,!vo.#Ts)return;const{offsetX:t,offsetY:n,pointerId:r}=e;vo.#Bs===r&&(vo.#Ds?.size>=1?this._endDraw(e):(this._currentParent.drawLayer.updateProperties(this._currentDrawId,vo.#Ts.add(t,n)),vo.#zs=e.timeStamp,Ae(e)))}static _cleanup(e){e&&(this._currentDrawId=-1,this._currentParent=null,vo.#Ts=null,vo.#Rs=null,vo.#Fs=null,vo.#zs=NaN),vo.#_s&&(vo.#_s.abort(),vo.#_s=null,vo.#Bs=NaN,vo.#Ds=null)}static _endDraw(e){const t=this._currentParent;if(t){if(t.toggleDrawing(!0),this._cleanup(!1),e?.target===t.div&&t.drawLayer.updateProperties(this._currentDrawId,vo.#Ts.end(e.offsetX,e.offsetY)),this.supportMultipleDrawings){const e=vo.#Ts,n=this._currentDrawId,r=e.getLastElement();return void t.addCommands({cmd:()=>{t.drawLayer.updateProperties(n,e.setLastElement(r))},undo:()=>{t.drawLayer.updateProperties(n,e.removeLastElement())},mustExec:!1,type:b.DRAW_STEP})}this.endDrawing(!1)}}static endDrawing(e){const t=this._currentParent;if(!t)return null;if(t.toggleDrawing(!0),t.cleanUndoStack(b.DRAW_STEP),!vo.#Ts.isEmpty()){const{pageDimensions:[n,r],scale:o}=t,i=t.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:vo.#Ts.getOutlines(n*o,r*o,o,this._INNER_MARGIN),drawingOptions:vo.#Rs,mustBeCommitted:!e});return this._cleanup(!0),i}return t.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(e){}static deserializeDraw(e,t,n,r,o,i){L("Not implemented")}static async deserialize(e,t,n){const{rawDims:{pageWidth:r,pageHeight:o,pageX:i,pageY:a}}=t.viewport,s=this.deserializeDraw(i,a,r,o,this._INNER_MARGIN,e),l=await super.deserialize(e,t,n);return l.createDrawingOptions(e),l.#Ns({drawOutlines:s}),l.#bs(),l.onScaleChanging(),l.rotate(),l}serializeDraw(e){const[t,n]=this.pageTranslation,[r,o]=this.pageDimensions;return this.#Is.serialize([t,n,r,o],e)}renderAnnotationElement(e){return e.updateEdited({rect:this.getPDFRect()}),null}static canCreateNewEmptyEditor(){return!1}}class yo{#Ea=new Float64Array(6);#Ki;#Gs;#ro;#Ta;#_a;#qs="";#Xs=0;#rs=new xo;#Ks;#Ys;constructor(e,t,n,r,o,i){this.#Ks=n,this.#Ys=r,this.#ro=o,this.#Ta=i,[e,t]=this.#Qs(e,t);const a=this.#Ki=[NaN,NaN,NaN,NaN,e,t];this.#_a=[e,t],this.#Gs=[{line:a,points:this.#_a}],this.#Ea.set(a,0)}updateProperty(e,t){"stroke-width"===e&&(this.#Ta=t)}#Qs(e,t){return lo._normalizePoint(e,t,this.#Ks,this.#Ys,this.#ro)}isEmpty(){return!this.#Gs||0===this.#Gs.length}isCancellable(){return this.#_a.length<=10}add(e,t){[e,t]=this.#Qs(e,t);const[n,r,o,i]=this.#Ea.subarray(2,6),a=e-o,s=t-i;return Math.hypot(this.#Ks*a,this.#Ys*s)<=2?null:(this.#_a.push(e,t),isNaN(n)?(this.#Ea.set([o,i,e,t],2),this.#Ki.push(NaN,NaN,NaN,NaN,e,t),{path:{d:this.toSVGPath()}}):(isNaN(this.#Ea[0])&&this.#Ki.splice(6,6),this.#Ea.set([n,r,o,i,e,t],0),this.#Ki.push(...lo.createBezierPoints(n,r,o,i,e,t)),{path:{d:this.toSVGPath()}}))}end(e,t){const n=this.add(e,t);return n||(2===this.#_a.length?{path:{d:this.toSVGPath()}}:null)}startNew(e,t,n,r,o){this.#Ks=n,this.#Ys=r,this.#ro=o,[e,t]=this.#Qs(e,t);const i=this.#Ki=[NaN,NaN,NaN,NaN,e,t];this.#_a=[e,t];const a=this.#Gs.at(-1);return a&&(a.line=new Float32Array(a.line),a.points=new Float32Array(a.points)),this.#Gs.push({line:i,points:this.#_a}),this.#Ea.set(i,0),this.#Xs=0,this.toSVGPath(),null}getLastElement(){return this.#Gs.at(-1)}setLastElement(e){return this.#Gs?(this.#Gs.push(e),this.#Ki=e.line,this.#_a=e.points,this.#Xs=0,{path:{d:this.toSVGPath()}}):this.#rs.setLastElement(e)}removeLastElement(){if(!this.#Gs)return this.#rs.removeLastElement();this.#Gs.pop(),this.#qs="";for(let e=0,t=this.#Gs.length;ee??NaN),d,u,h,p),points:f(a[e].map(e=>e??NaN),d,u,h,p)});const m=new this.prototype.constructor;return m.build(c,n,r,1,s,l,o),m}#nl(e=this.#Ta){const t=this.#Ca+e/2*this.#Zs;return this.#ro%180==0?[t/this.#Ks,t/this.#Ys]:[t/this.#Ys,t/this.#Ks]}#tl(){const[e,t,n,r]=this.#Va,[o,i]=this.#nl(0);return[e+o,t+i,n-2*o,r-2*i]}#el(){const e=this.#Va=new Float32Array([1/0,1/0,-1/0,-1/0]);for(const{line:t}of this.#Gs){if(t.length<=12){for(let n=4,r=t.length;ne!==t[n])||e.thickness!==n||e.opacity!==r||e.pageIndex!==o}renderAnnotationElement(e){if(this.deleted)return e.hide(),null;const{points:t,rect:n}=this.serializeDraw(!1);return e.updateEdited({rect:n,thickness:this._drawingOptions["stroke-width"],points:t,popup:this.comment}),null}}class So extends xo{toSVGPath(){let e=super.toSVGPath();return e.endsWith("Z")||(e+="Z"),e}}class Co{static#rl={maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16};static#ol(e,t,n,r){return r-=t,0===(n-=e)?r>0?0:4:1===n?r+6:2-r}static#il=new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1]);static#al(e,t,n,r,o,i,a){const s=this.#ol(n,r,o,i);for(let o=0;o<8;o++){const i=(-o+s-a+16)%8;if(0!==e[(n+this.#il[2*i])*t+(r+this.#il[2*i+1])])return i}return-1}static#sl(e,t,n,r,o,i,a){const s=this.#ol(n,r,o,i);for(let o=0;o<8;o++){const i=(o+s+a+16)%8;if(0!==e[(n+this.#il[2*i])*t+(r+this.#il[2*i+1])])return i}return-1}static#ll(e,t,n,r){const o=e.length,i=new Int32Array(o);for(let t=0;t=1&&0===i[r+1])){1!==o&&(a=Math.abs(o));continue}s+=1,d+=1,o>1&&(a=o)}const u=[n,e],h=d===n+1,p={isHole:h,points:u,id:s,parent:0};let f;l.push(p);for(const e of l)if(e.id===a){f=e;break}f?f.isHole?p.parent=h?f.parent:a:p.parent=h?a:f.parent:p.parent=h?a:0;const m=this.#al(i,t,e,n,c,d,0);if(-1===m){i[r]=-s,1!==i[r]&&(a=Math.abs(i[r]));continue}let g=this.#il[2*m],b=this.#il[2*m+1];const v=e+g,y=n+b;c=v,d=y;let x=e,w=n;for(;;){const o=this.#sl(i,t,x,w,c,d,1);g=this.#il[2*o],b=this.#il[2*o+1];const l=x+g,h=w+b;u.push(h,l);const p=x*t+w;if(0===i[p+1]?i[p]=-s:1===i[p]&&(i[p]=s),l===e&&h===n&&x===v&&w===y){1!==i[r]&&(a=Math.abs(i[r]));break}c=x,d=w,x=l,w=h}}}return l}static#cl(e,t,n,r){if(n-t<=4){for(let o=t;ox&&(w=r,x=t)}x>(l*y)**2?(this.#cl(e,t,w+2,r),this.#cl(e,w,n,r)):r.push(o,i)}static#dl(e){const t=[],n=e.length;return this.#cl(e,0,n,t),t.push(e[n-2],e[n-1]),t.length<=4?null:t}static#ul(e,t,n,r,o,i){const a=new Float32Array(i**2),s=-2*r**2,l=i>>1;for(let e=0;e=n))for(let n=0;n=t)continue;const p=e[h*t+r],m=a[s*i+n]*c[Math.abs(p-d)];u+=p*m,f+=m}}p[h[s]=Math.round(u/f)]++}return[h,p]}static#hl(e){const t=new Uint32Array(256);for(const n of e)t[n]++;return t}static#pl(e){const t=e.length,n=new Uint8ClampedArray(t>>2);let r=-1/0,o=1/0;for(let t=0,i=n.length;t0!==e);let i=o,a=o;for(t=o;t<256;t++){const o=e[t];o>n&&(t-i>r&&(r=t-i,a=t-1),n=o,i=t)}for(t=a-1;t>=0&&!(e[t]>e[t+1]);t--);return t}static#ml(e){const t=e,{width:n,height:r}=e,{maxDim:o}=this.#rl;let i=n,a=r;if(n>o||r>o){let s=n,l=r,c=Math.log2(Math.max(n,r)/o);const d=Math.floor(c);c=c===d?d-1:d;for(let n=0;n=-128&&s<=127?Int8Array:a>=-32768&&s<=32767?Int16Array:Int32Array;const c=e.length,d=8+3*c,u=new Uint32Array(d);let h=0;u[h++]=d*Uint32Array.BYTES_PER_ELEMENT+(l-2*c)*i.BYTES_PER_ELEMENT,u[h++]=0,u[h++]=r,u[h++]=o,u[h++]=t?0:1,u[h++]=Math.max(0,Math.floor(n??0)),u[h++]=c,u[h++]=i.BYTES_PER_ELEMENT;for(const t of e)u[h++]=t.length-2,u[h++]=t[0],u[h++]=t[1];const p=new CompressionStream("deflate-raw"),f=p.writable.getWriter();await f.ready,f.write(u);const m=i.prototype.constructor;for(const t of e){const e=new m(t.length-2);for(let n=2,r=t.length;n{await i.ready,await i.close()}).catch(()=>{});let a=null,s=0;for await(const e of r)a||=new Uint8Array(new Uint32Array(e.buffer,0,4)[0]),a.set(e,s),s+=e.length;const l=new Uint32Array(a.buffer,0,a.length>>2),c=l[1];if(0!==c)throw new Error(`Invalid version: ${c}`);const d=l[2],u=l[3],h=0===l[4],p=l[5],f=l[6],m=l[7],g=[],b=(8+3*f)*Uint32Array.BYTES_PER_ELEMENT;let v;switch(m){case Int8Array.BYTES_PER_ELEMENT:v=new Int8Array(a.buffer,b);break;case Int16Array.BYTES_PER_ELEMENT:v=new Int16Array(a.buffer,b);break;case Int32Array.BYTES_PER_ELEMENT:v=new Int32Array(a.buffer,b)}s=0;for(let e=0;e{t?.updateEditSignatureButton(e)}))}getSignaturePreview(){const{newCurves:e,areContours:t,thickness:n,width:r,height:o}=this.#vl,i=Math.max(r,o);return{areContours:t,outline:Co.processDrawnLines({lines:{curves:e.map(e=>({points:e})),thickness:n,width:r,height:o},pageWidth:i,pageHeight:i,rotation:0,innerMargin:0,mustSmooth:!1,areContours:t}).outline}}get toolbarButtons(){return this._uiManager.signatureManager?[["editSignature",this._uiManager.signatureManager]]:super.toolbarButtons}addSignature(e,t,n,r){const{x:o,y:i}=this,{outline:a}=this.#vl=e;let s;this.#gl=a instanceof So,this.description=n,this.#gl?s=Eo.getDefaultDrawingOptions():(s=Eo._defaultDrawnSignatureOptions.clone(),s.updateProperties({"stroke-width":a.thickness})),this._addOutlines({drawOutlines:a,drawingOptions:s});const[,l]=this.pageDimensions;let c=t/l;c=c>=1?.5:c,this.width*=c/this.height,this.width>=1&&(c*=.9/this.width,this.width=.9),this.height=c,this.setDims(),this.x=o,this.y=i,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(r),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!r,hasDescription:!!n}}),this.div.hidden=!1}getFromImage(e){const{rawDims:{pageWidth:t,pageHeight:n},rotation:r}=this.parent.viewport;return Co.process(e,t,n,r,Eo._INNER_MARGIN)}getFromText(e,t){const{rawDims:{pageWidth:n,pageHeight:r},rotation:o}=this.parent.viewport;return Co.extractContoursFromText(e,t,n,r,o,Eo._INNER_MARGIN)}getDrawnSignature(e){const{rawDims:{pageWidth:t,pageHeight:n},rotation:r}=this.parent.viewport;return Co.processDrawnLines({lines:e,pageWidth:t,pageHeight:n,rotation:r,innerMargin:Eo._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions({areContours:e,thickness:t}){e?this._drawingOptions=Eo.getDefaultDrawingOptions():(this._drawingOptions=Eo._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":t}))}serialize(e=!1){if(this.isEmpty())return null;const{lines:t,points:n}=this.serializeDraw(e),{_drawingOptions:{"stroke-width":r}}=this,o=Object.assign(super.serialize(e),{isSignature:!0,areContours:this.#gl,color:[0,0,0],thickness:this.#gl?0:r});return this.addComment(o),e?(o.paths={lines:t,points:n},o.uuid=this.#yl,o.isCopy=!0):o.lines=t,this.#bl&&(o.accessibilityData={type:"Figure",alt:this.#bl}),o}static deserializeDraw(e,t,n,r,o,i){return i.areContours?So.deserialize(e,t,n,r,o,i):xo.deserialize(e,t,n,r,o,i)}static async deserialize(e,t,n){const r=await super.deserialize(e,t,n);return r.#gl=e.areContours,r.description=e.accessibilityData?.alt||"",r.#yl=e.uuid,r}}class Oo extends Ke{#xl=null;#wl=null;#Al=null;#Sl=null;#Cl=null;#$l="";#kl=null;#El=!1;#Ol=null;#Pl=!1;#jl=!1;static _type="stamp";static _editorType=g.STAMP;constructor(e){super({...e,name:"stampEditor"}),this.#Sl=e.bitmapUrl,this.#Cl=e.bitmapFile,this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(e,t){Ke.initialize(e,t)}static isHandlingMimeForPasting(e){return Pe.includes(e)}static paste(e,t){t.pasteEditor({mode:g.STAMP},{bitmapFile:e.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){return{type:"stamp",hasAltText:!!this.altTextData?.altText}}static computeTelemetryFinalData(e){const t=e.get("hasAltText");return{hasAltText:t.get(!0)??0,hasNoAltText:t.get(!1)??0}}#Il(e,t=!1){e?(this.#xl=e.bitmap,t||(this.#wl=e.id,this.#Pl=e.isSvg),e.file&&(this.#$l=e.file.name),this.#Ml()):this.remove()}#Tl(){if(this.#Al=null,this._uiManager.enableWaiting(!1),this.#kl)if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#xl)this.addEditToolbar().then(()=>{this._editToolbar.hide(),this._uiManager.editAltText(this,!0)});else{if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#xl){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}}async mlGuessAltText(e=null,t=!0){if(this.hasAltTextData())return null;const{mlManager:n}=this._uiManager;if(!n)throw new Error("No ML.");if(!await n.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:r,width:o,height:i}=e||this.copyCanvas(null,null,!0).imageData,a=await n.guess({name:"altText",request:{data:r,width:o,height:i,channels:r.length/(o*i)}});if(!a)throw new Error("No response from the AI service.");if(a.error)throw new Error("Error from the AI service.");if(a.cancel)return null;if(!a.output)throw new Error("No valid response from the AI service.");const s=a.output;return await this.setGuessedAltText(s),t&&!this.hasAltTextData()&&(this.altTextData={alt:s,decorative:!1}),s}#_l(){if(this.#wl)return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(this.#wl).then(e=>this.#Il(e,!0)).finally(()=>this.#Tl());if(this.#Sl){const e=this.#Sl;return this.#Sl=null,this._uiManager.enableWaiting(!0),void(this.#Al=this._uiManager.imageManager.getFromUrl(e).then(e=>this.#Il(e)).finally(()=>this.#Tl()))}if(this.#Cl){const e=this.#Cl;return this.#Cl=null,this._uiManager.enableWaiting(!0),void(this.#Al=this._uiManager.imageManager.getFromFile(e).then(e=>this.#Il(e)).finally(()=>this.#Tl()))}const e=document.createElement("input");e.type="file",e.accept=Pe.join(",");const t=this._uiManager._signal;this.#Al=new Promise(n=>{e.addEventListener("change",async()=>{if(e.files&&0!==e.files.length){this._uiManager.enableWaiting(!0);const t=await this._uiManager.imageManager.getFromFile(e.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),this.#Il(t)}else this.remove();n()},{signal:t}),e.addEventListener("cancel",()=>{this.remove(),n()},{signal:t})}).finally(()=>this.#Tl()),e.click()}remove(){this.#wl&&(this.#xl=null,this._uiManager.imageManager.deleteId(this.#wl),this.#kl?.remove(),this.#kl=null,this.#Ol&&(clearTimeout(this.#Ol),this.#Ol=null)),super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(this.#wl&&null===this.#kl&&this.#_l(),this.isAttachedToDOM||this.parent.add(this))):this.#wl&&this.#_l()}onceAdded(e){this._isDraggable=!0,e&&this.div.focus()}isEmpty(){return!(this.#Al||this.#xl||this.#Sl||this.#Cl||this.#wl||this.#El)}get toolbarButtons(){return[["altText",this.createAltText()]]}get isResizable(){return!0}render(){if(this.div)return this.div;let e,t;return this._isCopy&&(e=this.x,t=this.y),super.render(),this.div.hidden=!0,this.createAltText(),this.#El||(this.#xl?this.#Ml():this.#_l()),this._isCopy&&this._moveAfterPaste(e,t),this._uiManager.addShouldRescale(this),this.div}setCanvas(e,t){const{id:n,bitmap:r}=this._uiManager.imageManager.getFromCanvas(e,t);t.remove(),n&&this._uiManager.imageManager.isValidId(n)&&(this.#wl=n,r&&(this.#xl=r),this.#El=!1,this.#Ml())}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;null!==this.#Ol&&clearTimeout(this.#Ol);this.#Ol=setTimeout(()=>{this.#Ol=null,this.#Rl()},200)}#Ml(){const{div:e}=this;let{width:t,height:n}=this.#xl;const[r,o]=this.pageDimensions,i=.75;if(this.width)t=this.width*r,n=this.height*o;else if(t>i*r||n>i*o){const e=Math.min(i*r/t,i*o/n);t*=e,n*=e}this._uiManager.enableWaiting(!1);const a=this.#kl=document.createElement("canvas");a.setAttribute("role","img"),this.addContainer(a),this.width=t/r,this.height=n/o,this.setDims(),this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&!this.annotationElementId||(e.hidden=!1),this.#Rl(),this.#jl||(this.parent.addUndoableEditor(this),this.#jl=!0),this._reportTelemetry({action:"inserted_image"}),this.#$l&&this.div.setAttribute("aria-description",this.#$l),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-stamp-added-alert")}copyCanvas(e,t,n=!1){e||(e=224);const{width:r,height:o}=this.#xl,i=new Oe;let a=this.#xl,s=r,l=o,c=null;if(t){if(r>t||o>t){const e=Math.min(t/r,t/o);s=Math.floor(r*e),l=Math.floor(o*e)}c=document.createElement("canvas");const e=c.width=Math.ceil(s*i.sx),n=c.height=Math.ceil(l*i.sy);this.#Pl||(a=this.#Bl(e,n));const d=c.getContext("2d");d.filter=this._uiManager.hcmFilter;let u="white",h="#cfcfd8";"none"!==this._uiManager.hcmFilter?h="black":je.isDarkMode&&(u="#8f8f9d",h="#42414d");const p=15,f=p*i.sx,m=p*i.sy,g=new OffscreenCanvas(2*f,2*m),b=g.getContext("2d");b.fillStyle=u,b.fillRect(0,0,2*f,2*m),b.fillStyle=h,b.fillRect(0,0,f,m),b.fillRect(f,m,f,m),d.fillStyle=d.createPattern(g,"repeat"),d.fillRect(0,0,e,n),d.drawImage(a,0,0,a.width,a.height,0,0,e,n)}let d=null;if(n){let t,n;if(i.symmetric&&a.widthe||o>e){const i=Math.min(e/r,e/o);t=Math.floor(r*i),n=Math.floor(o*i),this.#Pl||(a=this.#Bl(t,n))}const s=new OffscreenCanvas(t,n).getContext("2d",{willReadFrequently:!0});s.drawImage(a,0,0,a.width,a.height,0,0,t,n),d={width:t,height:n,data:s.getImageData(0,0,t,n).data}}return{canvas:c,width:s,height:l,imageData:d}}#Bl(e,t){const{width:n,height:r}=this.#xl;let o=n,i=r,a=this.#xl;for(;o>2*e||i>2*t;){const n=o,r=i;o>2*e&&(o=o>=16384?Math.floor(o/2)-1:Math.ceil(o/2)),i>2*t&&(i=i>=16384?Math.floor(i/2)-1:Math.ceil(i/2));const s=new OffscreenCanvas(o,i);s.getContext("2d").drawImage(a,0,0,n,r,0,0,o,i),a=s.transferToImageBitmap()}return a}#Rl(){const[e,t]=this.parentDimensions,{width:n,height:r}=this,o=new Oe,i=Math.ceil(n*e*o.sx),a=Math.ceil(r*t*o.sy),s=this.#kl;if(!s||s.width===i&&s.height===a)return;s.width=i,s.height=a;const l=this.#Pl?this.#xl:this.#Bl(i,a),c=s.getContext("2d");c.filter=this._uiManager.hcmFilter,c.drawImage(l,0,0,l.width,l.height,0,0,i,a)}#Fl(e){if(e){if(this.#Pl){const e=this._uiManager.imageManager.getSvgUrl(this.#wl);if(e)return e}const e=document.createElement("canvas");({width:e.width,height:e.height}=this.#xl);return e.getContext("2d").drawImage(this.#xl,0,0),e.toDataURL()}if(this.#Pl){const[e,t]=this.pageDimensions,n=Math.round(this.width*e*pe.PDF_TO_CSS_UNITS),r=Math.round(this.height*t*pe.PDF_TO_CSS_UNITS),o=new OffscreenCanvas(n,r);return o.getContext("2d").drawImage(this.#xl,0,0,this.#xl.width,this.#xl.height,0,0,n,r),o.transferToImageBitmap()}return structuredClone(this.#xl)}static async deserialize(e,t,n){let r=null,o=!1;if(e instanceof ro){const{data:{rect:i,rotation:a,id:s,structParent:l,popupRef:c,richText:d,contentsObj:u,creationDate:h,modificationDate:p},container:f,parent:{page:{pageNumber:m}},canvas:b}=e;let v,y;b?(delete e.canvas,({id:v,bitmap:y}=n.imageManager.getFromCanvas(f.id,b)),b.remove()):(o=!0,e._hasNoCanvas=!0);const x=(await t._structTree.getAriaAttributes(`${se}${s}`))?.get("aria-label")||"";r=e={annotationType:g.STAMP,bitmapId:v,bitmap:y,pageIndex:m-1,rect:i.slice(0),rotation:a,annotationElementId:s,id:s,deleted:!1,accessibilityData:{decorative:!1,altText:x},isSvg:!1,structParent:l,popupRef:c,richText:d,comment:u?.str||null,creationDate:h,modificationDate:p}}const i=await super.deserialize(e,t,n),{rect:a,bitmap:s,bitmapUrl:l,bitmapId:c,isSvg:d,accessibilityData:u}=e;o?(n.addMissingCanvas(e.id,i),i.#El=!0):c&&n.imageManager.isValidId(c)?(i.#wl=c,s&&(i.#xl=s)):i.#Sl=l,i.#Pl=d;const[h,p]=i.pageDimensions;return i.width=(a[2]-a[0])/h,i.height=(a[3]-a[1])/p,u&&(i.altTextData=u),i._initialData=r,e.comment&&i.setCommentData(e),i.#jl=!!r,i}serialize(e=!1,t=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const n=Object.assign(super.serialize(e),{bitmapId:this.#wl,isSvg:this.#Pl});if(this.addComment(n),e)return n.bitmapUrl=this.#Fl(!0),n.accessibilityData=this.serializeAltText(!0),n.isCopy=!0,n;const{decorative:r,altText:o}=this.serializeAltText(!1);if(!r&&o&&(n.accessibilityData={type:"Figure",alt:o}),this.annotationElementId){const e=this.#wa(n);return e.isSame?null:(e.isSameAltText?delete n.accessibilityData:n.accessibilityData.structParent=this._initialData.structParent??-1,n.id=this.annotationElementId,delete n.bitmapId,n)}if(null===t)return n;t.stamps||=new Map;const i=this.#Pl?(n.rect[2]-n.rect[0])*(n.rect[3]-n.rect[1]):null;if(t.stamps.has(this.#wl)){if(this.#Pl){const e=t.stamps.get(this.#wl);i>e.area&&(e.area=i,e.serialized.bitmap.close(),e.serialized.bitmap=this.#Fl(!1))}}else t.stamps.set(this.#wl,{area:i,serialized:n}),n.bitmap=this.#Fl(!1);return n}#wa(e){const{pageIndex:t,accessibilityData:{altText:n}}=this._initialData,r=e.pageIndex===t,o=(e.accessibilityData?.alt||"")===n;return{isSame:!this.hasEditedComment&&!this._hasBeenMoved&&!this._hasBeenResized&&r&&o,isSameAltText:o}}renderAnnotationElement(e){return this.deleted?(e.hide(),null):(e.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}}class Po{#oa;#Dl=!1;#zl=null;#Nl=null;#Ll=null;#Hl=new Map;#Wl=!1;#Ul=!1;#Vl=!1;#Gl=null;#ql=null;#Xl=null;#Kl=null;#Yl=null;#Ql=-1;#b;static _initialized=!1;static#V=new Map([so,Ao,Oo,go,Eo].map(e=>[e._editorType,e]));constructor({uiManager:e,pageIndex:t,div:n,structTreeLayer:r,accessibilityManager:o,annotationLayer:i,drawLayer:a,textLayer:s,viewport:l,l10n:c}){const d=[...Po.#V.values()];if(!Po._initialized){Po._initialized=!0;for(const t of d)t.initialize(c,e)}e.registerEditorTypes(d),this.#b=e,this.pageIndex=t,this.div=n,this.#oa=o,this.#zl=i,this.viewport=l,this.#Xl=s,this.drawLayer=a,this._structTree=r,this.#b.addLayer(this)}get isEmpty(){return 0===this.#Hl.size}get isInvisible(){return this.isEmpty&&this.#b.getMode()===g.NONE}updateToolbar(e){this.#b.updateToolbar(e)}updateMode(e=this.#b.getMode()){switch(this.#Jl(),e){case g.NONE:return this.div.classList.toggle("nonEditing",!0),this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),void this.disableClick();case g.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case g.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:t}=this.div;if(t.toggle("nonEditing",!1),e===g.POPUP)t.toggle("commentEditing",!0);else{t.toggle("commentEditing",!1);for(const n of Po.#V.values())t.toggle(`${n._type}Editing`,e===n._editorType)}this.div.hidden=!1}hasTextLayer(e){return e===this.#Xl?.div}setEditingState(e){this.#b.setEditingState(e)}addCommands(e){this.#b.addCommands(e)}cleanUndoStack(e){this.#b.cleanUndoStack(e)}toggleDrawing(e=!1){this.div.classList.toggle("drawing",!e)}togglePointerEvents(e=!1){this.div.classList.toggle("disabled",!e)}toggleAnnotationLayerPointerEvents(e=!1){this.#zl?.div.classList.toggle("disabled",!e)}get#Zl(){return 0!==this.#Hl.size?this.#Hl.values():this.#b.getEditors(this.pageIndex)}async enable(){this.#Vl=!0,this.div.tabIndex=0,this.togglePointerEvents(!0),this.div.classList.toggle("nonEditing",!1),this.#Yl?.abort(),this.#Yl=null;const e=new Set;for(const t of this.#Zl)t.enableEditing(),t.show(!0),t.annotationElementId&&(this.#b.removeChangedExistingAnnotation(t),e.add(t.annotationElementId));const t=this.#zl;if(t)for(const n of t.getEditableAnnotations()){if(n.hide(),this.#b.isDeletedAnnotationElement(n.data.id))continue;if(e.has(n.data.id))continue;const t=await this.deserialize(n);t&&(this.addOrRebuild(t),t.enableEditing())}this.#Vl=!1,this.#b._eventBus.dispatch("editorsrendered",{source:this,pageNumber:this.pageIndex+1})}disable(){if(this.#Ul=!0,this.div.tabIndex=-1,this.togglePointerEvents(!1),this.div.classList.toggle("nonEditing",!0),this.#Xl&&!this.#Yl){this.#Yl=new AbortController;const e=this.#b.combinedSignal(this.#Yl);this.#Xl.div.addEventListener("pointerdown",e=>{const{clientX:t,clientY:n,timeStamp:r}=e;if(r-this.#Ql>500)return void(this.#Ql=r);this.#Ql=-1;const{classList:o}=this.div;o.toggle("getElements",!0);const i=document.elementsFromPoint(t,n);if(o.toggle("getElements",!1),!this.div.contains(i[0]))return;let a;const s=new RegExp(`^${m}[0-9]+$`);for(const e of i)if(s.test(e.id)){a=e.id;break}if(!a)return;const l=this.#Hl.get(a);null===l?.annotationElementId&&(e.stopPropagation(),e.preventDefault(),l.dblclick(e))},{signal:e,capture:!0})}const e=this.#zl;if(e){const t=new Map,n=new Map;for(const r of this.#Zl)r.disableEditing(),r.annotationElementId?null===r.serialize()?(n.set(r.annotationElementId,r),this.getEditableAnnotation(r.annotationElementId)?.show(),r.remove()):t.set(r.annotationElementId,r):r.updateFakeAnnotationElement(e);const r=e.getEditableAnnotations();for(const e of r){const{id:r}=e.data;if(this.#b.isDeletedAnnotationElement(r)){e.updateEdited({deleted:!0});continue}let o=n.get(r);o?(o.resetAnnotationElement(e),o.show(!1),e.show()):(o=t.get(r),o&&(this.#b.addChangedExistingAnnotation(o),o.renderAnnotationElement(e)&&o.show(!1)),e.show())}}this.#Jl(),this.isEmpty&&(this.div.hidden=!0);const{classList:t}=this.div;for(const e of Po.#V.values())t.remove(`${e._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),this.#Ul=!1}getEditableAnnotation(e){return this.#zl?.getEditableAnnotation(e)||null}setActiveEditor(e){this.#b.getActive()!==e&&this.#b.setActiveEditor(e)}enableTextSelection(){if(this.div.tabIndex=-1,this.#Xl?.div&&!this.#Kl){this.#Kl=new AbortController;const e=this.#b.combinedSignal(this.#Kl);this.#Xl.div.addEventListener("pointerdown",this.#ec.bind(this),{signal:e}),this.#Xl.div.classList.add("highlighting")}}disableTextSelection(){this.div.tabIndex=0,this.#Xl?.div&&this.#Kl&&(this.#Kl.abort(),this.#Kl=null,this.#Xl.div.classList.remove("highlighting"))}#ec(e){this.#b.unselectAll();const{target:t}=e;if(t===this.#Xl.div||("img"===t.getAttribute("role")||t.classList.contains("endOfContent"))&&this.#Xl.div.contains(t)){const{isMac:t}=te.platform;if(0!==e.button||e.ctrlKey&&t)return;this.#b.showAllEditors("highlight",!0,!0),this.#Xl.div.classList.add("free"),this.toggleDrawing(),go.startHighlighting(this,"ltr"===this.#b.direction,{target:this.#Xl.div,x:e.x,y:e.y}),this.#Xl.div.addEventListener("pointerup",()=>{this.#Xl.div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:this.#b._signal}),e.preventDefault()}}enableClick(){if(this.#Nl)return;this.#Nl=new AbortController;const e=this.#b.combinedSignal(this.#Nl);this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:e});const t=this.pointerup.bind(this);this.div.addEventListener("pointerup",t,{signal:e}),this.div.addEventListener("pointercancel",t,{signal:e})}disableClick(){this.#Nl?.abort(),this.#Nl=null}attach(e){this.#Hl.set(e.id,e);const{annotationElementId:t}=e;t&&this.#b.isDeletedAnnotationElement(t)&&this.#b.removeDeletedAnnotationElement(e)}detach(e){this.#Hl.delete(e.id),this.#oa?.removePointerInTextLayer(e.contentDiv),!this.#Ul&&e.annotationElementId&&this.#b.addDeletedAnnotationElement(e)}remove(e){this.detach(e),this.#b.removeEditor(e),e.div.remove(),e.isAttachedToDOM=!1}changeParent(e){e.parent!==this&&(e.parent&&e.annotationElementId&&(this.#b.addDeletedAnnotationElement(e.annotationElementId),Ke.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),e.parent?.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(e.parent!==this||!e.isAttachedToDOM){if(this.changeParent(e),this.#b.addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(!this.#Vl),this.#b.addToAnnotationStorage(e),e._reportTelemetry(e.telemetryInitialData)}}moveEditorInDOM(e){if(!e.isAttachedToDOM)return;const{activeElement:t}=document;e.div.contains(t)&&!this.#Ll&&(e._focusEventsAllowed=!1,this.#Ll=setTimeout(()=>{this.#Ll=null,e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this.#b._signal}),t.focus())},0)),e._structTreeParentId=this.#oa?.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?(e.parent||=this,e.rebuild(),e.show()):this.add(e)}addUndoableEditor(e){this.addCommands({cmd:()=>e._uiManager.rebuild(e),undo:()=>{e.remove()},mustExec:!1})}getEditorByUID(e){for(const t of this.#Hl.values())if(t.uid===e)return t;return null}getNextId(){return this.#b.getId()}get#tc(){return Po.#V.get(this.#b.getMode())}combinedSignal(e){return this.#b.combinedSignal(e)}#nc(e){const t=this.#tc;return t?new t.prototype.constructor(e):null}canCreateNewEmptyEditor(){return this.#tc?.canCreateNewEmptyEditor()}async pasteEditor(e,t){this.updateToolbar(e),await this.#b.updateMode(e.mode);const{offsetX:n,offsetY:r}=this.#rc(),o=this.getNextId(),i=this.#nc({parent:this,id:o,x:n,y:r,uiManager:this.#b,isCentered:!0,...t});i&&this.add(i)}async deserialize(e){return await(Po.#V.get(e.annotationType??e.annotationEditorType)?.deserialize(e,this,this.#b))||null}createAndAddNewEditor(e,t,n={}){const r=this.getNextId(),o=this.#nc({parent:this,id:r,x:e.offsetX,y:e.offsetY,uiManager:this.#b,isCentered:t,...n});return o&&this.add(o),o}get boundingClientRect(){return this.div.getBoundingClientRect()}#rc(){const{x:e,y:t,width:n,height:r}=this.boundingClientRect,o=Math.max(0,e),i=Math.max(0,t),a=(o+Math.min(window.innerWidth,e+n))/2-e,s=(i+Math.min(window.innerHeight,t+r))/2-t,[l,c]=this.viewport.rotation%180==0?[a,s]:[s,a];return{offsetX:l,offsetY:c}}addNewEditor(e={}){this.createAndAddNewEditor(this.#rc(),!0,e)}setSelected(e){this.#b.setSelected(e)}toggleSelected(e){this.#b.toggleSelected(e)}unselect(e){this.#b.unselect(e)}pointerup(e){const{isMac:t}=te.platform;if(0!==e.button||e.ctrlKey&&t)return;if(e.target!==this.div)return;if(!this.#Wl)return;if(this.#Wl=!1,this.#tc?.isDrawer&&this.#tc.supportMultipleDrawings)return;if(!this.#Dl)return void(this.#Dl=!0);const n=this.#b.getMode();n!==g.STAMP&&n!==g.SIGNATURE?this.createAndAddNewEditor(e,!1):this.#b.unselectAll()}pointerdown(e){if(this.#b.getMode()===g.HIGHLIGHT&&this.enableTextSelection(),this.#Wl)return void(this.#Wl=!1);const{isMac:t}=te.platform;if(0!==e.button||e.ctrlKey&&t)return;if(e.target!==this.div)return;if(this.#Wl=!0,this.#tc?.isDrawer)return void this.startDrawingSession(e);const n=this.#b.getActive();this.#Dl=!n||n.isEmpty()}startDrawingSession(e){if(this.div.focus({preventScroll:!0}),this.#Gl)return void this.#tc.startDrawing(this,this.#b,!1,e);this.#b.setCurrentDrawingSession(this),this.#Gl=new AbortController;const t=this.#b.combinedSignal(this.#Gl);this.div.addEventListener("blur",({relatedTarget:e})=>{e&&!this.div.contains(e)&&(this.#ql=null,this.commitOrRemove())},{signal:t}),this.#tc.startDrawing(this,this.#b,!1,e)}pause(e){if(e){const{activeElement:e}=document;return void(this.div.contains(e)&&(this.#ql=e))}this.#ql&&setTimeout(()=>{this.#ql?.focus(),this.#ql=null},0)}endDrawingSession(e=!1){return this.#Gl?(this.#b.setCurrentDrawingSession(null),this.#Gl.abort(),this.#Gl=null,this.#ql=null,this.#tc.endDrawing(e)):null}findNewParent(e,t,n){const r=this.#b.findParent(t,n);return null!==r&&r!==this&&(r.changeParent(e),!0)}commitOrRemove(){return!!this.#Gl&&(this.endDrawingSession(),!0)}onScaleChanging(){this.#Gl&&this.#tc.onScaleChangingWhenDrawing(this)}destroy(){this.commitOrRemove(),this.#b.getActive()?.parent===this&&(this.#b.commitOrRemove(),this.#b.setActiveEditor(null)),this.#Ll&&(clearTimeout(this.#Ll),this.#Ll=null);for(const e of this.#Hl.values())this.#oa?.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,this.#Hl.clear(),this.#b.removeLayer(this)}#Jl(){for(const e of this.#Hl.values())e.isEmpty()&&e.remove()}render({viewport:e}){this.viewport=e,Ee(this.div,e);for(const e of this.#b.getEditors(this.pageIndex))this.add(e),e.rebuild();this.updateMode()}update({viewport:e}){this.#b.commitOrRemove(),this.#Jl();const t=this.viewport.rotation,n=e.rotation;if(this.viewport=e,Ee(this.div,{rotation:n}),t!==n)for(const e of this.#Hl.values())e.rotate(n)}get pageDimensions(){const{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}get scale(){return this.#b.viewParameters.realScale}}class jo{#Oi=null;#oc=new Map;#ic=new Map;static#w=0;constructor({pageIndex:e}){this.pageIndex=e}setParent(e){if(this.#Oi){if(this.#Oi!==e){if(this.#oc.size>0)for(const t of this.#oc.values())t.remove(),e.append(t);this.#Oi=e}}else this.#Oi=e}static get _svgFactory(){return V(this,"_svgFactory",new Or)}static#ac(e,[t,n,r,o]){const{style:i}=e;i.top=100*n+"%",i.left=100*t+"%",i.width=100*r+"%",i.height=100*o+"%"}#sc(){const e=jo._svgFactory.create(1,1,!0);return this.#Oi.append(e),e.setAttribute("aria-hidden",!0),e}#lc(e,t){const n=jo._svgFactory.createElement("clipPath");e.append(n);const r=`clip_${t}`;n.setAttribute("id",r),n.setAttribute("clipPathUnits","objectBoundingBox");const o=jo._svgFactory.createElement("use");return n.append(o),o.setAttribute("href",`#${t}`),o.classList.add("clip"),r}#cc(e,t){for(const[n,r]of Object.entries(t))null===r?e.removeAttribute(n):e.setAttribute(n,r)}draw(e,t=!1,n=!1){const r=jo.#w++,o=this.#sc(),i=jo._svgFactory.createElement("defs");o.append(i);const a=jo._svgFactory.createElement("path");i.append(a);const s=`path_p${this.pageIndex}_${r}`;a.setAttribute("id",s),a.setAttribute("vector-effect","non-scaling-stroke"),t&&this.#ic.set(r,a);const l=n?this.#lc(i,s):null,c=jo._svgFactory.createElement("use");return o.append(c),c.setAttribute("href",`#${s}`),this.updateProperties(o,e),this.#oc.set(r,o),{id:r,clipPathId:`url(#${l})`}}drawOutline(e,t){const n=jo.#w++,r=this.#sc(),o=jo._svgFactory.createElement("defs");r.append(o);const i=jo._svgFactory.createElement("path");o.append(i);const a=`path_p${this.pageIndex}_${n}`;let s;if(i.setAttribute("id",a),i.setAttribute("vector-effect","non-scaling-stroke"),t){const e=jo._svgFactory.createElement("mask");o.append(e),s=`mask_p${this.pageIndex}_${n}`,e.setAttribute("id",s),e.setAttribute("maskUnits","objectBoundingBox");const t=jo._svgFactory.createElement("rect");e.append(t),t.setAttribute("width","1"),t.setAttribute("height","1"),t.setAttribute("fill","white");const r=jo._svgFactory.createElement("use");e.append(r),r.setAttribute("href",`#${a}`),r.setAttribute("stroke","none"),r.setAttribute("fill","black"),r.setAttribute("fill-rule","nonzero"),r.classList.add("mask")}const l=jo._svgFactory.createElement("use");r.append(l),l.setAttribute("href",`#${a}`),s&&l.setAttribute("mask",`url(#${s})`);const c=l.cloneNode();return r.append(c),l.classList.add("mainOutline"),c.classList.add("secondaryOutline"),this.updateProperties(r,e),this.#oc.set(n,r),n}finalizeDraw(e,t){this.#ic.delete(e),this.updateProperties(e,t)}updateProperties(e,t){if(!t)return;const{root:n,bbox:r,rootClass:o,path:i}=t,a="number"==typeof e?this.#oc.get(e):e;if(a){if(n&&this.#cc(a,n),r&&jo.#ac(a,r),o){const{classList:e}=a;for(const[t,n]of Object.entries(o))e.toggle(t,n)}if(i){const e=a.firstChild.firstChild;this.#cc(e,i)}}}updateParent(e,t){if(t===this)return;const n=this.#oc.get(e);n&&(t.#Oi.append(n),this.#oc.delete(e),t.#oc.set(e,n))}remove(e){this.#ic.delete(e),null!==this.#Oi&&(this.#oc.get(e).remove(),this.#oc.delete(e))}destroy(){this.#Oi=null;for(const e of this.#oc.values())e.remove();this.#oc.clear(),this.#ic.clear()}}globalThis._pdfjsTestingUtils={HighlightOutliner:ho},globalThis.pdfjsLib={AbortException:J,AnnotationEditorLayer:Po,AnnotationEditorParamsType:b,AnnotationEditorType:g,AnnotationEditorUIManager:Ve,AnnotationLayer:io,AnnotationMode:f,AnnotationType:$,applyOpacity:function(e,t,n,r){const o=255*(1-(r=Math.min(Math.max(r??1,0),1)));return[e=Math.round(e*r+o),t=Math.round(t*r+o),n=Math.round(n*r+o)]},build:"f56dc8601",ColorPicker:Ar,createValidAbsoluteUrl:W,CSSConstants:class{static get commentForegroundColor(){const e=document.createElement("span");e.classList.add("comment","sidebar");const{style:t}=e;t.width=t.height="0",t.display="none",t.color="var(--comment-fg-color)",document.body.append(e);const{color:n}=window.getComputedStyle(e);return e.remove(),V(this,"commentForegroundColor",Ce(n))}},DOMSVGFactory:Or,DrawLayer:jo,FeatureTest:te,fetchData:fe,findContrastColor:function(e,t){const n=e[0]+256*e[1]+65536*e[2]+16777216*t[0]+4294967296*t[1]+1099511627776*t[2];let r=Re.get(n);if(r)return r;const o=new Float32Array(9),i=o.subarray(0,3),a=o.subarray(3,6);Ie(e,a);const s=o.subarray(6,9);Ie(t,s);const l=s[2]<.5,c=l?12:4.5;if(a[2]=l?Math.sqrt(a[2]):1-Math.sqrt(1-a[2]),_e(a,s,i)n;){const n=a[2]=(e+t)/2;l===_e(a,s,i){try{return new URL(e)}catch{try{return new URL(decodeURIComponent(e))}catch{try{return new URL(e,"https://foo.bar")}catch{try{return new URL(decodeURIComponent(e),"https://foo.bar")}catch{return null}}}}})(e);if(!n)return t;const r=e=>{try{let t=decodeURIComponent(e);return t.includes("/")?(t=t.split("/").at(-1),t.test(/^\.pdf$/i)?t:e):t}catch{return e}},o=/\.pdf$/i,i=n.pathname.split("/").at(-1);if(o.test(i))return r(i);if(n.searchParams.size>0){const e=Array.from(n.searchParams.values()).reverse();for(const t of e)if(o.test(t))return r(t);const t=Array.from(n.searchParams.keys()).reverse();for(const e of t)if(o.test(e))return r(e)}if(n.hash){const e=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i.exec(n.hash);if(e)return r(e[0])}return t},getRGB:Ce,getUuid:ae,getXfaPageViewport:function(e,{scale:t=1,rotation:n=0}){const{width:r,height:o}=e.attributes.style,i=[0,0,parseInt(r),parseInt(o)];return new me({viewBox:i,userUnit:1,scale:t,rotation:n})},GlobalWorkerOptions:Bn,ImageKind:C,InvalidPDFException:K,isDataScheme:be,isPdfFile:ve,isValidExplicitDest:lt,MathClamp:le,noContextMenu:we,normalizeUnicode:function(e){return oe||(oe=/([\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"]])),e.replaceAll(oe,(e,t,n)=>t?t.normalize("NFKC"):ie.get(n))},OPS:M,OutputScale:Oe,PasswordResponses:{NEED_PASSWORD:1,INCORRECT_PASSWORD:2},PDFDataRangeTransport:fr,PDFDateString:Se,PDFWorker:br,PermissionFlag:{PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},PixelsPerInch:pe,RenderingCancelledException:ge,renderRichText:Be,ResponseException:Y,setLayerDimensions:Ee,shadow:V,SignatureExtractor:Co,stopEvent:Ae,SupportedImageMimeTypes:Pe,TextLayer:ur,TouchManager:Xe,updateUrlHash:U,Util:re,VerbosityLevel:I,version:wr,XfaLayer:ue}}}]); \ No newline at end of file diff --git a/start/src/main/resources/templates/safetyDutyList/static/js/185.46e52d05996ddef5e7f4.js.LICENSE.txt b/start/src/main/resources/templates/safetyDutyList/static/js/185.46e52d05996ddef5e7f4.js.LICENSE.txt new file mode 100644 index 0000000..2d13f96 --- /dev/null +++ b/start/src/main/resources/templates/safetyDutyList/static/js/185.46e52d05996ddef5e7f4.js.LICENSE.txt @@ -0,0 +1,106 @@ +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ + +/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ + +/*! + * isobject + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ + +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ + +/** @preserve + * Counter block mode compatible with Dr Brian Gladman fileenc.c + * derived from CryptoJS.mode.CTR + * Jan Hruby jhruby.web@gmail.com + */ + +/** @preserve + (c) 2012 by Cédric Mesnil. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/**![arrow-down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg2MiA0NjUuM2gtODFjLTQuNiAwLTkgMi0xMi4xIDUuNUw1NTAgNzIzLjFWMTYwYzAtNC40LTMuNi04LTgtOGgtNjBjLTQuNCAwLTggMy42LTggOHY1NjMuMUwyNTUuMSA0NzAuOGMtMy0zLjUtNy40LTUuNS0xMi4xLTUuNWgtODFjLTYuOCAwLTEwLjUgOC4xLTYgMTMuMkw0ODcuOSA4NjFhMzEuOTYgMzEuOTYgMCAwMDQ4LjMgMEw4NjggNDc4LjVjNC41LTUuMi44LTEzLjItNi0xMy4yeiIgLz48L3N2Zz4=) */ + +/**![arrow-up](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg2OCA1NDUuNUw1MzYuMSAxNjNhMzEuOTYgMzEuOTYgMCAwMC00OC4zIDBMMTU2IDU0NS41YTcuOTcgNy45NyAwIDAwNiAxMy4yaDgxYzQuNiAwIDktMiAxMi4xLTUuNUw0NzQgMzAwLjlWODY0YzAgNC40IDMuNiA4IDggOGg2MGM0LjQgMCA4LTMuNiA4LThWMzAwLjlsMjE4LjkgMjUyLjNjMyAzLjUgNy40IDUuNSAxMi4xIDUuNWg4MWM2LjggMCAxMC41LTggNi0xMy4yeiIgLz48L3N2Zz4=) */ + +/**![calendar](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4MCAxODRINzEydi02NGMwLTQuNC0zLjYtOC04LThoLTU2Yy00LjQgMC04IDMuNi04IDh2NjRIMzg0di02NGMwLTQuNC0zLjYtOC04LThoLTU2Yy00LjQgMC04IDMuNi04IDh2NjRIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY2NjRjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjIxNmMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDY1NkgxODRWNDYwaDY1NnYzODB6TTE4NCAzOTJWMjU2aDEyOHY0OGMwIDQuNCAzLjYgOCA4IDhoNTZjNC40IDAgOC0zLjYgOC04di00OGgyNTZ2NDhjMCA0LjQgMy42IDggOCA4aDU2YzQuNCAwIDgtMy42IDgtOHYtNDhoMTI4djEzNkgxODR6IiAvPjwvc3ZnPg==) */ + +/**![caret-down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg0MC40IDMwMEgxODMuNmMtMTkuNyAwLTMwLjcgMjAuOC0xOC41IDM1bDMyOC40IDM4MC44YzkuNCAxMC45IDI3LjUgMTAuOSAzNyAwTDg1OC45IDMzNWMxMi4yLTE0LjIgMS4yLTM1LTE4LjUtMzV6IiAvPjwvc3ZnPg==) */ + +/**![caret-up](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1OC45IDY4OUw1MzAuNSAzMDguMmMtOS40LTEwLjktMjcuNS0xMC45LTM3IDBMMTY1LjEgNjg5Yy0xMi4yIDE0LjItMS4yIDM1IDE4LjUgMzVoNjU2LjhjMTkuNyAwIDMwLjctMjAuOCAxOC41LTM1eiIgLz48L3N2Zz4=) */ + +/**![clock-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTY4Ni43IDYzOC42TDU0NC4xIDUzNS41VjI4OGMwLTQuNC0zLjYtOC04LThINDg4Yy00LjQgMC04IDMuNi04IDh2Mjc1LjRjMCAyLjYgMS4yIDUgMy4zIDYuNWwxNjUuNCAxMjAuNmMzLjYgMi42IDguNiAxLjggMTEuMi0xLjdsMjguNi0zOWMyLjYtMy43IDEuOC04LjctMS44LTExLjJ6IiAvPjwvc3ZnPg==) */ + +/**![column-height](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg0MCA4MzZIMTg0Yy00LjQgMC04IDMuNi04IDh2NjBjMCA0LjQgMy42IDggOCA4aDY1NmM0LjQgMCA4LTMuNiA4LTh2LTYwYzAtNC40LTMuNi04LTgtOHptMC03MjRIMTg0Yy00LjQgMC04IDMuNi04IDh2NjBjMCA0LjQgMy42IDggOCA4aDY1NmM0LjQgMCA4LTMuNiA4LTh2LTYwYzAtNC40LTMuNi04LTgtOHpNNjEwLjggMzc4YzYgMCA5LjQtNyA1LjctMTEuN0w1MTUuNyAyMzguN2E3LjE0IDcuMTQgMCAwMC0xMS4zIDBMNDAzLjYgMzY2LjNhNy4yMyA3LjIzIDAgMDA1LjcgMTEuN0g0NzZ2MjY4aC02Mi44Yy02IDAtOS40IDctNS43IDExLjdsMTAwLjggMTI3LjVjMi45IDMuNyA4LjUgMy43IDExLjMgMGwxMDAuOC0xMjcuNWMzLjctNC43LjQtMTEuNy01LjctMTEuN0g1NDhWMzc4aDYyLjh6IiAvPjwvc3ZnPg==) */ + +/**![copy](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTgzMiA2NEgyOTZjLTQuNCAwLTggMy42LTggOHY1NmMwIDQuNCAzLjYgOCA4IDhoNDk2djY4OGMwIDQuNCAzLjYgOCA4IDhoNTZjNC40IDAgOC0zLjYgOC04Vjk2YzAtMTcuNy0xNC4zLTMyLTMyLTMyek03MDQgMTkySDE5MmMtMTcuNyAwLTMyIDE0LjMtMzIgMzJ2NTMwLjdjMCA4LjUgMy40IDE2LjYgOS40IDIyLjZsMTczLjMgMTczLjNjMi4yIDIuMiA0LjcgNCA3LjQgNS41djEuOWg0LjJjMy41IDEuMyA3LjIgMiAxMSAySDcwNGMxNy43IDAgMzItMTQuMyAzMi0zMlYyMjRjMC0xNy43LTE0LjMtMzItMzItMzJ6TTM1MCA4NTYuMkwyNjMuOSA3NzBIMzUwdjg2LjJ6TTY2NCA4ODhINDE0Vjc0NmMwLTIyLjEtMTcuOS00MC00MC00MEgyMzJWMjY0aDQzMnY2MjR6IiAvPjwvc3ZnPg==) */ + +/**![double-left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI3Mi45IDUxMmwyNjUuNC0zMzkuMWM0LjEtNS4yLjQtMTIuOS02LjMtMTIuOWgtNzcuM2MtNC45IDAtOS42IDIuMy0xMi42IDYuMUwxODYuOCA0OTIuM2EzMS45OSAzMS45OSAwIDAwMCAzOS41bDI1NS4zIDMyNi4xYzMgMy45IDcuNyA2LjEgMTIuNiA2LjFINTMyYzYuNyAwIDEwLjQtNy43IDYuMy0xMi45TDI3Mi45IDUxMnptMzA0IDBsMjY1LjQtMzM5LjFjNC4xLTUuMi40LTEyLjktNi4zLTEyLjloLTc3LjNjLTQuOSAwLTkuNiAyLjMtMTIuNiA2LjFMNDkwLjggNDkyLjNhMzEuOTkgMzEuOTkgMCAwMDAgMzkuNWwyNTUuMyAzMjYuMWMzIDMuOSA3LjcgNi4xIDEyLjYgNi4xSDgzNmM2LjcgMCAxMC40LTcuNyA2LjMtMTIuOUw1NzYuOSA1MTJ6IiAvPjwvc3ZnPg==) */ + +/**![double-right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUzMy4yIDQ5Mi4zTDI3Ny45IDE2Ni4xYy0zLTMuOS03LjctNi4xLTEyLjYtNi4xSDE4OGMtNi43IDAtMTAuNCA3LjctNi4zIDEyLjlMNDQ3LjEgNTEyIDE4MS43IDg1MS4xQTcuOTggNy45OCAwIDAwMTg4IDg2NGg3Ny4zYzQuOSAwIDkuNi0yLjMgMTIuNi02LjFsMjU1LjMtMzI2LjFjOS4xLTExLjcgOS4xLTI3LjkgMC0zOS41em0zMDQgMEw1ODEuOSAxNjYuMWMtMy0zLjktNy43LTYuMS0xMi42LTYuMUg0OTJjLTYuNyAwLTEwLjQgNy43LTYuMyAxMi45TDc1MS4xIDUxMiA0ODUuNyA4NTEuMUE3Ljk4IDcuOTggMCAwMDQ5MiA4NjRoNzcuM2M0LjkgMCA5LjYtMi4zIDEyLjYtNi4xbDI1NS4zLTMyNi4xYzkuMS0xMS43IDkuMS0yNy45IDAtMzkuNXoiIC8+PC9zdmc+) */ + +/**![download](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUwNS43IDY2MWE4IDggMCAwMDEyLjYgMGwxMTItMTQxLjdjNC4xLTUuMi40LTEyLjktNi4zLTEyLjloLTc0LjFWMTY4YzAtNC40LTMuNi04LTgtOGgtNjBjLTQuNCAwLTggMy42LTggOHYzMzguM0g0MDBjLTYuNyAwLTEwLjQgNy43LTYuMyAxMi45bDExMiAxNDEuOHpNODc4IDYyNmgtNjBjLTQuNCAwLTggMy42LTggOHYxNTRIMjE0VjYzNGMwLTQuNC0zLjYtOC04LThoLTYwYy00LjQgMC04IDMuNi04IDh2MTk4YzAgMTcuNyAxNC4zIDMyIDMyIDMyaDY4NGMxNy43IDAgMzItMTQuMyAzMi0zMlY2MzRjMC00LjQtMy42LTgtOC04eiIgLz48L3N2Zz4=) */ + +/**![edit](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI1Ny43IDc1MmMyIDAgNC0uMiA2LS41TDQzMS45IDcyMmMyLS40IDMuOS0xLjMgNS4zLTIuOGw0MjMuOS00MjMuOWE5Ljk2IDkuOTYgMCAwMDAtMTQuMUw2OTQuOSAxMTQuOWMtMS45LTEuOS00LjQtMi45LTcuMS0yLjlzLTUuMiAxLTcuMSAyLjlMMjU2LjggNTM4LjhjLTEuNSAxLjUtMi40IDMuMy0yLjggNS4zbC0yOS41IDE2OC4yYTMzLjUgMzMuNSAwIDAwOS40IDI5LjhjNi42IDYuNCAxNC45IDkuOSAyMy44IDkuOXptNjcuNC0xNzQuNEw2ODcuOCAyMTVsNzMuMyA3My4zLTM2Mi43IDM2Mi42LTg4LjkgMTUuNyAxNS42LTg5ek04ODAgODM2SDE0NGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJ2MzZjMCA0LjQgMy42IDggOCA4aDc4NGM0LjQgMCA4LTMuNiA4LTh2LTM2YzAtMTcuNy0xNC4zLTMyLTMyLTMyeiIgLz48L3N2Zz4=) */ + +/**![enter](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg2NCAxNzBoLTYwYy00LjQgMC04IDMuNi04IDh2NTE4SDMxMHYtNzNjMC02LjctNy44LTEwLjUtMTMtNi4zbC0xNDEuOSAxMTJhOCA4IDAgMDAwIDEyLjZsMTQxLjkgMTEyYzUuMyA0LjIgMTMgLjQgMTMtNi4zdi03NWg0OThjMzUuMyAwIDY0LTI4LjcgNjQtNjRWMTc4YzAtNC40LTMuNi04LTgtOHoiIC8+PC9zdmc+) */ + +/**![file](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1NC42IDI4OC42TDYzOS40IDczLjRjLTYtNi0xNC4xLTkuNC0yMi42LTkuNEgxOTJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjgzMmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2NDBjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzExLjNjMC04LjUtMy40LTE2LjctOS40LTIyLjd6TTc5MC4yIDMyNkg2MDJWMTM3LjhMNzkwLjIgMzI2em0xLjggNTYySDIzMlYxMzZoMzAydjIxNmE0MiA0MiAwIDAwNDIgNDJoMjE2djQ5NHoiIC8+PC9zdmc+) */ + +/**![filter](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTM0OSA4MzhjMCAxNy43IDE0LjIgMzIgMzEuOCAzMmgyNjIuNGMxNy42IDAgMzEuOC0xNC4zIDMxLjgtMzJWNjQySDM0OXYxOTZ6bTUzMS4xLTY4NEgxNDMuOWMtMjQuNSAwLTM5LjggMjYuNy0yNy41IDQ4bDIyMS4zIDM3NmgzNDguOGwyMjEuMy0zNzZjMTIuMS0yMS4zLTMuMi00OC0yNy43LTQ4eiIgLz48L3N2Zz4=) */ + +/**![filter](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4MC4xIDE1NEgxNDMuOWMtMjQuNSAwLTM5LjggMjYuNy0yNy41IDQ4TDM0OSA1OTcuNFY4MzhjMCAxNy43IDE0LjIgMzIgMzEuOCAzMmgyNjIuNGMxNy42IDAgMzEuOC0xNC4zIDMxLjgtMzJWNTk3LjRMOTA3LjcgMjAyYzEyLjItMjEuMy0zLjEtNDgtMjcuNi00OHpNNjAzLjQgNzk4SDQyMC42VjY0MmgxODIuOXYxNTZ6bTkuNi0yMzYuNmwtOS41IDE2LjZoLTE4M2wtOS41LTE2LjZMMjEyLjcgMjI2aDU5OC42TDYxMyA1NjEuNHoiIC8+PC9zdmc+) */ + +/**![folder-open](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyOCA0NDRIODIwVjMzMC40YzAtMTcuNy0xNC4zLTMyLTMyLTMySDQ3M0wzNTUuNyAxODYuMmE4LjE1IDguMTUgMCAwMC01LjUtMi4ySDk2Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY1OTJjMCAxNy43IDE0LjMgMzIgMzIgMzJoNjk4YzEzIDAgMjQuOC03LjkgMjkuNy0yMGwxMzQtMzMyYzEuNS0zLjggMi4zLTcuOSAyLjMtMTIgMC0xNy43LTE0LjMtMzItMzItMzJ6TTEzNiAyNTZoMTg4LjVsMTE5LjYgMTE0LjRINzQ4VjQ0NEgyMzhjLTEzIDAtMjQuOCA3LjktMjkuNyAyMEwxMzYgNjQzLjJWMjU2em02MzUuMyA1MTJIMTU5bDEwMy4zLTI1Nmg2MTIuNEw3NzEuMyA3Njh6IiAvPjwvc3ZnPg==) */ + +/**![folder](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4MCAyOTguNEg1MjFMNDAzLjcgMTg2LjJhOC4xNSA4LjE1IDAgMDAtNS41LTIuMkgxNDRjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjU5MmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg3MzZjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzMwLjRjMC0xNy43LTE0LjMtMzItMzItMzJ6TTg0MCA3NjhIMTg0VjI1NmgxODguNWwxMTkuNiAxMTQuNEg4NDBWNzY4eiIgLz48L3N2Zz4=) */ + +/**![fullscreen-exit](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTM5MSAyNDAuOWMtLjgtNi42LTguOS05LjQtMTMuNi00LjdsLTQzLjcgNDMuN0wyMDAgMTQ2LjNhOC4wMyA4LjAzIDAgMDAtMTEuMyAwbC00Mi40IDQyLjNhOC4wMyA4LjAzIDAgMDAwIDExLjNMMjgwIDMzMy42bC00My45IDQzLjlhOC4wMSA4LjAxIDAgMDA0LjcgMTMuNkw0MDEgNDEwYzUuMS42IDkuNS0zLjcgOC45LTguOUwzOTEgMjQwLjl6bTEwLjEgMzczLjJMMjQwLjggNjMzYy02LjYuOC05LjQgOC45LTQuNyAxMy42bDQzLjkgNDMuOUwxNDYuMyA4MjRhOC4wMyA4LjAzIDAgMDAwIDExLjNsNDIuNCA0Mi4zYzMuMSAzLjEgOC4yIDMuMSAxMS4zIDBMMzMzLjcgNzQ0bDQzLjcgNDMuN0E4LjAxIDguMDEgMCAwMDM5MSA3ODNsMTguOS0xNjAuMWMuNi01LjEtMy43LTkuNC04LjgtOC44em0yMjEuOC0yMDQuMkw3ODMuMiAzOTFjNi42LS44IDkuNC04LjkgNC43LTEzLjZMNzQ0IDMzMy42IDg3Ny43IDIwMGMzLjEtMy4xIDMuMS04LjIgMC0xMS4zbC00Mi40LTQyLjNhOC4wMyA4LjAzIDAgMDAtMTEuMyAwTDY5MC4zIDI3OS45bC00My43LTQzLjdhOC4wMSA4LjAxIDAgMDAtMTMuNiA0LjdMNjE0LjEgNDAxYy0uNiA1LjIgMy43IDkuNSA4LjggOC45ek03NDQgNjkwLjRsNDMuOS00My45YTguMDEgOC4wMSAwIDAwLTQuNy0xMy42TDYyMyA2MTRjLTUuMS0uNi05LjUgMy43LTguOSA4LjlMNjMzIDc4My4xYy44IDYuNiA4LjkgOS40IDEzLjYgNC43bDQzLjctNDMuN0w4MjQgODc3LjdjMy4xIDMuMSA4LjIgMy4xIDExLjMgMGw0Mi40LTQyLjNjMy4xLTMuMSAzLjEtOC4yIDAtMTEuM0w3NDQgNjkwLjR6IiAvPjwvc3ZnPg==) */ + +/**![fullscreen](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI5MCAyMzYuNGw0My45LTQzLjlhOC4wMSA4LjAxIDAgMDAtNC43LTEzLjZMMTY5IDE2MGMtNS4xLS42LTkuNSAzLjctOC45IDguOUwxNzkgMzI5LjFjLjggNi42IDguOSA5LjQgMTMuNiA0LjdsNDMuNy00My43TDM3MCA0MjMuN2MzLjEgMy4xIDguMiAzLjEgMTEuMyAwbDQyLjQtNDIuM2MzLjEtMy4xIDMuMS04LjIgMC0xMS4zTDI5MCAyMzYuNHptMzUyLjcgMTg3LjNjMy4xIDMuMSA4LjIgMy4xIDExLjMgMGwxMzMuNy0xMzMuNiA0My43IDQzLjdhOC4wMSA4LjAxIDAgMDAxMy42LTQuN0w4NjMuOSAxNjljLjYtNS4xLTMuNy05LjUtOC45LTguOUw2OTQuOCAxNzljLTYuNi44LTkuNCA4LjktNC43IDEzLjZsNDMuOSA0My45TDYwMC4zIDM3MGE4LjAzIDguMDMgMCAwMDAgMTEuM2w0Mi40IDQyLjR6TTg0NSA2OTQuOWMtLjgtNi42LTguOS05LjQtMTMuNi00LjdsLTQzLjcgNDMuN0w2NTQgNjAwLjNhOC4wMyA4LjAzIDAgMDAtMTEuMyAwbC00Mi40IDQyLjNhOC4wMyA4LjAzIDAgMDAwIDExLjNMNzM0IDc4Ny42bC00My45IDQzLjlhOC4wMSA4LjAxIDAgMDA0LjcgMTMuNkw4NTUgODY0YzUuMS42IDkuNS0zLjcgOC45LTguOUw4NDUgNjk0Ljl6bS00NjMuNy05NC42YTguMDMgOC4wMyAwIDAwLTExLjMgMEwyMzYuMyA3MzMuOWwtNDMuNy00My43YTguMDEgOC4wMSAwIDAwLTEzLjYgNC43TDE2MC4xIDg1NWMtLjYgNS4xIDMuNyA5LjUgOC45IDguOUwzMjkuMiA4NDVjNi42LS44IDkuNC04LjkgNC43LTEzLjZMMjkwIDc4Ny42IDQyMy43IDY1NGMzLjEtMy4xIDMuMS04LjIgMC0xMS4zbC00Mi40LTQyLjR6IiAvPjwvc3ZnPg==) */ + +/**![holder](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMwMCAyNzYuNWE1NiA1NiAwIDEwNTYtOTcgNTYgNTYgMCAwMC01NiA5N3ptMCAyODRhNTYgNTYgMCAxMDU2LTk3IDU2IDU2IDAgMDAtNTYgOTd6TTY0MCAyMjhhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMDAtMTEyIDB6bTAgMjg0YTU2IDU2IDAgMTAxMTIgMCA1NiA1NiAwIDAwLTExMiAwek0zMDAgODQ0LjVhNTYgNTYgMCAxMDU2LTk3IDU2IDU2IDAgMDAtNTYgOTd6TTY0MCA3OTZhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMDAtMTEyIDB6IiAvPjwvc3ZnPg==) */ + +/**![minus-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMyOCA1NDRoMzY4YzQuNCAwIDgtMy42IDgtOHYtNDhjMC00LjQtMy42LTgtOC04SDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOHoiIC8+PHBhdGggZD0iTTg4MCAxMTJIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY3MzZjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE0NGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDcyOEgxODRWMTg0aDY1NnY2NTZ6IiAvPjwvc3ZnPg==) */ + +/**![paper-clip](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc3OS4zIDE5Ni42Yy05NC4yLTk0LjItMjQ3LjYtOTQuMi0zNDEuNyAwbC0yNjEgMjYwLjhjLTEuNyAxLjctMi42IDQtMi42IDYuNHMuOSA0LjcgMi42IDYuNGwzNi45IDM2LjlhOSA5IDAgMDAxMi43IDBsMjYxLTI2MC44YzMyLjQtMzIuNCA3NS41LTUwLjIgMTIxLjMtNTAuMnM4OC45IDE3LjggMTIxLjIgNTAuMmMzMi40IDMyLjQgNTAuMiA3NS41IDUwLjIgMTIxLjIgMCA0NS44LTE3LjggODguOC01MC4yIDEyMS4ybC0yNjYgMjY1LjktNDMuMSA0My4xYy00MC4zIDQwLjMtMTA1LjggNDAuMy0xNDYuMSAwLTE5LjUtMTkuNS0zMC4yLTQ1LjQtMzAuMi03M3MxMC43LTUzLjUgMzAuMi03M2wyNjMuOS0yNjMuOGM2LjctNi42IDE1LjUtMTAuMyAyNC45LTEwLjNoLjFjOS40IDAgMTguMSAzLjcgMjQuNyAxMC4zIDYuNyA2LjcgMTAuMyAxNS41IDEwLjMgMjQuOSAwIDkuMy0zLjcgMTguMS0xMC4zIDI0LjdMMzcyLjQgNjUzYy0xLjcgMS43LTIuNiA0LTIuNiA2LjRzLjkgNC43IDIuNiA2LjRsMzYuOSAzNi45YTkgOSAwIDAwMTIuNyAwbDIxNS42LTIxNS42YzE5LjktMTkuOSAzMC44LTQ2LjMgMzAuOC03NC40cy0xMS01NC42LTMwLjgtNzQuNGMtNDEuMS00MS4xLTEwNy45LTQxLTE0OSAwTDQ2MyAzNjQgMjI0LjggNjAyLjFBMTcyLjIyIDE3Mi4yMiAwIDAwMTc0IDcyNC44YzAgNDYuMyAxOC4xIDg5LjggNTAuOCAxMjIuNSAzMy45IDMzLjggNzguMyA1MC43IDEyMi43IDUwLjcgNDQuNCAwIDg4LjgtMTYuOSAxMjIuNi01MC43bDMwOS4yLTMwOUM4MjQuOCA0OTIuNyA4NTAgNDMyIDg1MCAzNjcuNWMuMS02NC42LTI1LjEtMTI1LjMtNzAuNy0xNzAuOXoiIC8+PC9zdmc+) */ + +/**![picture](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyOCAxNjBIOTZjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjY0MGMwIDE3LjcgMTQuMyAzMiAzMiAzMmg4MzJjMTcuNyAwIDMyLTE0LjMgMzItMzJWMTkyYzAtMTcuNy0xNC4zLTMyLTMyLTMyem0tNDAgNjMySDEzNnYtMzkuOWwxMzguNS0xNjQuMyAxNTAuMSAxNzhMNjU4LjEgNDg5IDg4OCA3NjEuNlY3OTJ6bTAtMTI5LjhMNjY0LjIgMzk2LjhjLTMuMi0zLjgtOS0zLjgtMTIuMiAwTDQyNC42IDY2Ni40bC0xNDQtMTcwLjdjLTMuMi0zLjgtOS0zLjgtMTIuMiAwTDEzNiA2NTIuN1YyMzJoNzUydjQzMC4yeiIgZmlsbD0iIzE2NzdmZiIgLz48cGF0aCBkPSJNNDI0LjYgNzY1LjhsLTE1MC4xLTE3OEwxMzYgNzUyLjFWNzkyaDc1MnYtMzAuNEw2NTguMSA0ODl6IiBmaWxsPSIjZTZmNGZmIiAvPjxwYXRoIGQ9Ik0xMzYgNjUyLjdsMTMyLjQtMTU3YzMuMi0zLjggOS0zLjggMTIuMiAwbDE0NCAxNzAuN0w2NTIgMzk2LjhjMy4yLTMuOCA5LTMuOCAxMi4yIDBMODg4IDY2Mi4yVjIzMkgxMzZ2NDIwLjd6TTMwNCAyODBhODggODggMCAxMTAgMTc2IDg4IDg4IDAgMDEwLTE3NnoiIGZpbGw9IiNlNmY0ZmYiIC8+PHBhdGggZD0iTTI3NiAzNjhhMjggMjggMCAxMDU2IDAgMjggMjggMCAxMC01NiAweiIgZmlsbD0iI2U2ZjRmZiIgLz48cGF0aCBkPSJNMzA0IDQ1NmE4OCA4OCAwIDEwMC0xNzYgODggODggMCAwMDAgMTc2em0wLTExNmMxNS41IDAgMjggMTIuNSAyOCAyOHMtMTIuNSAyOC0yOCAyOC0yOC0xMi41LTI4LTI4IDEyLjUtMjggMjgtMjh6IiBmaWxsPSIjMTY3N2ZmIiAvPjwvc3ZnPg==) */ + +/**![plus-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMyOCA1NDRoMTUydjE1MmMwIDQuNCAzLjYgOCA4IDhoNDhjNC40IDAgOC0zLjYgOC04VjU0NGgxNTJjNC40IDAgOC0zLjYgOC04di00OGMwLTQuNC0zLjYtOC04LThINTQ0VjMyOGMwLTQuNC0zLjYtOC04LThoLTQ4Yy00LjQgMC04IDMuNi04IDh2MTUySDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOHoiIC8+PHBhdGggZD0iTTg4MCAxMTJIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY3MzZjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE0NGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDcyOEgxODRWMTg0aDY1NnY2NTZ6IiAvPjwvc3ZnPg==) */ + +/**![rotate-right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHN0eWxlIC8+PC9kZWZzPjxwYXRoIGQ9Ik00ODAuNSAyNTEuMmMxMy0xLjYgMjUuOS0yLjQgMzguOC0yLjV2NjMuOWMwIDYuNSA3LjUgMTAuMSAxMi42IDYuMUw2NjAgMjE3LjZjNC0zLjIgNC05LjIgMC0xMi4zbC0xMjgtMTAxYy01LjEtNC0xMi42LS40LTEyLjYgNi4xbC0uMiA2NGMtMTE4LjYuNS0yMzUuOCA1My40LTMxNC42IDE1NC4yQTM5OS43NSAzOTkuNzUgMCAwMDEyMy41IDYzMWg3NC45Yy0uOS01LjMtMS43LTEwLjctMi40LTE2LjEtNS4xLTQyLjEtMi4xLTg0LjEgOC45LTEyNC44IDExLjQtNDIuMiAzMS04MS4xIDU4LjEtMTE1LjggMjcuMi0zNC43IDYwLjMtNjMuMiA5OC40LTg0LjMgMzctMjAuNiA3Ni45LTMzLjYgMTE5LjEtMzguOHoiIC8+PHBhdGggZD0iTTg4MCA0MThIMzUyYy0xNy43IDAtMzIgMTQuMy0zMiAzMnY0MTRjMCAxNy43IDE0LjMgMzIgMzIgMzJoNTI4YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjQ1MGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQ0IDQwMkgzOTZWNDk0aDQ0MHYzMjZ6IiAvPjwvc3ZnPg==) */ + +/**![setting](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyNC44IDYyNS43bC02NS41LTU2YzMuMS0xOSA0LjctMzguNCA0LjctNTcuOHMtMS42LTM4LjgtNC43LTU3LjhsNjUuNS01NmEzMi4wMyAzMi4wMyAwIDAwOS4zLTM1LjJsLS45LTIuNmE0NDMuNzQgNDQzLjc0IDAgMDAtNzkuNy0xMzcuOWwtMS44LTIuMWEzMi4xMiAzMi4xMiAwIDAwLTM1LjEtOS41bC04MS4zIDI4LjljLTMwLTI0LjYtNjMuNS00NC05OS43LTU3LjZsLTE1LjctODVhMzIuMDUgMzIuMDUgMCAwMC0yNS44LTI1LjdsLTIuNy0uNWMtNTIuMS05LjQtMTA2LjktOS40LTE1OSAwbC0yLjcuNWEzMi4wNSAzMi4wNSAwIDAwLTI1LjggMjUuN2wtMTUuOCA4NS40YTM1MS44NiAzNTEuODYgMCAwMC05OSA1Ny40bC04MS45LTI5LjFhMzIgMzIgMCAwMC0zNS4xIDkuNWwtMS44IDIuMWE0NDYuMDIgNDQ2LjAyIDAgMDAtNzkuNyAxMzcuOWwtLjkgMi42Yy00LjUgMTIuNS0uOCAyNi41IDkuMyAzNS4ybDY2LjMgNTYuNmMtMy4xIDE4LjgtNC42IDM4LTQuNiA1Ny4xIDAgMTkuMiAxLjUgMzguNCA0LjYgNTcuMUw5OSA2MjUuNWEzMi4wMyAzMi4wMyAwIDAwLTkuMyAzNS4ybC45IDIuNmMxOC4xIDUwLjQgNDQuOSA5Ni45IDc5LjcgMTM3LjlsMS44IDIuMWEzMi4xMiAzMi4xMiAwIDAwMzUuMSA5LjVsODEuOS0yOS4xYzI5LjggMjQuNSA2My4xIDQzLjkgOTkgNTcuNGwxNS44IDg1LjRhMzIuMDUgMzIuMDUgMCAwMDI1LjggMjUuN2wyLjcuNWE0NDkuNCA0NDkuNCAwIDAwMTU5IDBsMi43LS41YTMyLjA1IDMyLjA1IDAgMDAyNS44LTI1LjdsMTUuNy04NWEzNTAgMzUwIDAgMDA5OS43LTU3LjZsODEuMyAyOC45YTMyIDMyIDAgMDAzNS4xLTkuNWwxLjgtMi4xYzM0LjgtNDEuMSA2MS42LTg3LjUgNzkuNy0xMzcuOWwuOS0yLjZjNC41LTEyLjMuOC0yNi4zLTkuMy0zNXpNNzg4LjMgNDY1LjljMi41IDE1LjEgMy44IDMwLjYgMy44IDQ2LjFzLTEuMyAzMS0zLjggNDYuMWwtNi42IDQwLjEgNzQuNyA2My45YTM3MC4wMyAzNzAuMDMgMCAwMS00Mi42IDczLjZMNzIxIDcwMi44bC0zMS40IDI1LjhjLTIzLjkgMTkuNi01MC41IDM1LTc5LjMgNDUuOGwtMzguMSAxNC4zLTE3LjkgOTdhMzc3LjUgMzc3LjUgMCAwMS04NSAwbC0xNy45LTk3LjItMzcuOC0xNC41Yy0yOC41LTEwLjgtNTUtMjYuMi03OC43LTQ1LjdsLTMxLjQtMjUuOS05My40IDMzLjJjLTE3LTIyLjktMzEuMi00Ny42LTQyLjYtNzMuNmw3NS41LTY0LjUtNi41LTQwYy0yLjQtMTQuOS0zLjctMzAuMy0zLjctNDUuNSAwLTE1LjMgMS4yLTMwLjYgMy43LTQ1LjVsNi41LTQwLTc1LjUtNjQuNWMxMS4zLTI2LjEgMjUuNi01MC43IDQyLjYtNzMuNmw5My40IDMzLjIgMzEuNC0yNS45YzIzLjctMTkuNSA1MC4yLTM0LjkgNzguNy00NS43bDM3LjktMTQuMyAxNy45LTk3LjJjMjguMS0zLjIgNTYuOC0zLjIgODUgMGwxNy45IDk3IDM4LjEgMTQuM2MyOC43IDEwLjggNTUuNCAyNi4yIDc5LjMgNDUuOGwzMS40IDI1LjggOTIuOC0zMi45YzE3IDIyLjkgMzEuMiA0Ny42IDQyLjYgNzMuNkw3ODEuOCA0MjZsNi41IDM5Ljl6TTUxMiAzMjZjLTk3LjIgMC0xNzYgNzguOC0xNzYgMTc2czc4LjggMTc2IDE3NiAxNzYgMTc2LTc4LjggMTc2LTE3Ni03OC44LTE3Ni0xNzYtMTc2em03OS4yIDI1NS4yQTExMS42IDExMS42IDAgMDE1MTIgNjE0Yy0yOS45IDAtNTgtMTEuNy03OS4yLTMyLjhBMTExLjYgMTExLjYgMCAwMTQwMCA1MDJjMC0yOS45IDExLjctNTggMzIuOC03OS4yQzQ1NCA0MDEuNiA0ODIuMSAzOTAgNTEyIDM5MGMyOS45IDAgNTggMTEuNiA3OS4yIDMyLjhBMTExLjYgMTExLjYgMCAwMTYyNCA1MDJjMCAyOS45LTExLjcgNTgtMzIuOCA3OS4yeiIgLz48L3N2Zz4=) */ + +/**![star](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkwOC4xIDM1My4xbC0yNTMuOS0zNi45TDU0MC43IDg2LjFjLTMuMS02LjMtOC4yLTExLjQtMTQuNS0xNC41LTE1LjgtNy44LTM1LTEuMy00Mi45IDE0LjVMMzY5LjggMzE2LjJsLTI1My45IDM2LjljLTcgMS0xMy40IDQuMy0xOC4zIDkuM2EzMi4wNSAzMi4wNSAwIDAwLjYgNDUuM2wxODMuNyAxNzkuMS00My40IDI1Mi45YTMxLjk1IDMxLjk1IDAgMDA0Ni40IDMzLjdMNTEyIDc1NGwyMjcuMSAxMTkuNGM2LjIgMy4zIDEzLjQgNC40IDIwLjMgMy4yIDE3LjQtMyAyOS4xLTE5LjUgMjYuMS0zNi45bC00My40LTI1Mi45IDE4My43LTE3OS4xYzUtNC45IDguMy0xMS4zIDkuMy0xOC4zIDIuNy0xNy41LTkuNS0zMy43LTI3LTM2LjN6IiAvPjwvc3ZnPg==) */ + +/**![swap](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg0Ny45IDU5MkgxNTJjLTQuNCAwLTggMy42LTggOHY2MGMwIDQuNCAzLjYgOCA4IDhoNjA1LjJMNjEyLjkgODUxYy00LjEgNS4yLS40IDEzIDYuMyAxM2g3Mi41YzQuOSAwIDkuNS0yLjIgMTIuNi02LjFsMTY4LjgtMjE0LjFjMTYuNS0yMSAxLjYtNTEuOC0yNS4yLTUxLjh6TTg3MiAzNTZIMjY2LjhsMTQ0LjMtMTgzYzQuMS01LjIuNC0xMy02LjMtMTNoLTcyLjVjLTQuOSAwLTkuNSAyLjItMTIuNiA2LjFMMTUwLjkgMzgwLjJjLTE2LjUgMjEtMS42IDUxLjggMjUuMSA1MS44aDY5NmM0LjQgMCA4LTMuNiA4LTh2LTYwYzAtNC40LTMuNi04LTgtOHoiIC8+PC9zdmc+) */ + +/**![vertical-align-bottom](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1OS45IDc4MEgxNjQuMWMtNC41IDAtOC4xIDMuNi04LjEgOHY2MGMwIDQuNCAzLjYgOCA4LjEgOGg2OTUuOGM0LjUgMCA4LjEtMy42IDguMS04di02MGMwLTQuNC0zLjYtOC04LjEtOHpNNTA1LjcgNjY5YTggOCAwIDAwMTIuNiAwbDExMi0xNDEuN2M0LjEtNS4yLjQtMTIuOS02LjMtMTIuOWgtNzQuMVYxNzZjMC00LjQtMy42LTgtOC04aC02MGMtNC40IDAtOCAzLjYtOCA4djMzOC4zSDQwMGMtNi43IDAtMTAuNCA3LjctNi4zIDEyLjlsMTEyIDE0MS44eiIgLz48L3N2Zz4=) */ + +/**![vertical-align-middle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1OS45IDQ3NEgxNjQuMWMtNC41IDAtOC4xIDMuNi04LjEgOHY2MGMwIDQuNCAzLjYgOCA4LjEgOGg2OTUuOGM0LjUgMCA4LjEtMy42IDguMS04di02MGMwLTQuNC0zLjYtOC04LjEtOHptLTM1My42LTc0LjdjMi45IDMuNyA4LjUgMy43IDExLjMgMGwxMDAuOC0xMjcuNWMzLjctNC43LjQtMTEuNy01LjctMTEuN0g1NTBWMTA0YzAtNC40LTMuNi04LTgtOGgtNjBjLTQuNCAwLTggMy42LTggOHYxNTZoLTYyLjhjLTYgMC05LjQgNy01LjcgMTEuN2wxMDAuOCAxMjcuNnptMTEuNCAyMjUuNGE3LjE0IDcuMTQgMCAwMC0xMS4zIDBMNDA1LjYgNzUyLjNhNy4yMyA3LjIzIDAgMDA1LjcgMTEuN0g0NzR2MTU2YzAgNC40IDMuNiA4IDggOGg2MGM0LjQgMCA4LTMuNiA4LThWNzY0aDYyLjhjNiAwIDkuNC03IDUuNy0xMS43TDUxNy43IDYyNC43eiIgLz48L3N2Zz4=) */ + +/**![vertical-align-top](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1OS45IDE2OEgxNjQuMWMtNC41IDAtOC4xIDMuNi04LjEgOHY2MGMwIDQuNCAzLjYgOCA4LjEgOGg2OTUuOGM0LjUgMCA4LjEtMy42IDguMS04di02MGMwLTQuNC0zLjYtOC04LjEtOHpNNTE4LjMgMzU1YTggOCAwIDAwLTEyLjYgMGwtMTEyIDE0MS43YTcuOTggNy45OCAwIDAwNi4zIDEyLjloNzMuOVY4NDhjMCA0LjQgMy42IDggOCA4aDYwYzQuNCAwIDgtMy42IDgtOFY1MDkuN0g2MjRjNi43IDAgMTAuNC03LjcgNi4zLTEyLjlMNTE4LjMgMzU1eiIgLz48L3N2Zz4=) */ + +/**![zoom-in](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYzNyA0NDNINTE5VjMwOWMwLTQuNC0zLjYtOC04LThoLTYwYy00LjQgMC04IDMuNi04IDh2MTM0SDMyNWMtNC40IDAtOCAzLjYtOCA4djYwYzAgNC40IDMuNiA4IDggOGgxMTh2MTM0YzAgNC40IDMuNiA4IDggOGg2MGM0LjQgMCA4LTMuNiA4LThWNTE5aDExOGM0LjQgMCA4LTMuNiA4LTh2LTYwYzAtNC40LTMuNi04LTgtOHptMjg0IDQyNEw3NzUgNzIxYzEyMi4xLTE0OC45IDExMy42LTM2OS41LTI2LTUwOS0xNDgtMTQ4LjEtMzg4LjQtMTQ4LjEtNTM3IDAtMTQ4LjEgMTQ4LjYtMTQ4LjEgMzg5IDAgNTM3IDEzOS41IDEzOS42IDM2MC4xIDE0OC4xIDUwOSAyNmwxNDYgMTQ2YzMuMiAyLjggOC4zIDIuOCAxMSAwbDQzLTQzYzIuOC0yLjcgMi44LTcuOCAwLTExek02OTYgNjk2Yy0xMTguOCAxMTguNy0zMTEuMiAxMTguNy00MzAgMC0xMTguNy0xMTguOC0xMTguNy0zMTEuMiAwLTQzMCAxMTguOC0xMTguNyAzMTEuMi0xMTguNyA0MzAgMCAxMTguNyAxMTguOCAxMTguNyAzMTEuMiAwIDQzMHoiIC8+PC9zdmc+) */ + +/**![zoom-out](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYzNyA0NDNIMzI1Yy00LjQgMC04IDMuNi04IDh2NjBjMCA0LjQgMy42IDggOCA4aDMxMmM0LjQgMCA4LTMuNiA4LTh2LTYwYzAtNC40LTMuNi04LTgtOHptMjg0IDQyNEw3NzUgNzIxYzEyMi4xLTE0OC45IDExMy42LTM2OS41LTI2LTUwOS0xNDgtMTQ4LjEtMzg4LjQtMTQ4LjEtNTM3IDAtMTQ4LjEgMTQ4LjYtMTQ4LjEgMzg5IDAgNTM3IDEzOS41IDEzOS42IDM2MC4xIDE0OC4xIDUwOSAyNmwxNDYgMTQ2YzMuMiAyLjggOC4zIDIuOCAxMSAwbDQzLTQzYzIuOC0yLjcgMi44LTcuOCAwLTExek02OTYgNjk2Yy0xMTguOCAxMTguNy0zMTEuMiAxMTguNy00MzAgMC0xMTguNy0xMTguOC0xMTguNy0zMTEuMiAwLTQzMCAxMTguOC0xMTguNyAzMTEuMi0xMTguNyA0MzAgMCAxMTguNyAxMTguOCAxMTguNyAzMTEuMiAwIDQzMHoiIC8+PC9zdmc+) */ diff --git a/start/src/main/resources/templates/safetyDutyList/static/js/26.7e37655f7b2954f97c50.js b/start/src/main/resources/templates/safetyDutyList/static/js/26.7e37655f7b2954f97c50.js new file mode 100644 index 0000000..f01d063 --- /dev/null +++ b/start/src/main/resources/templates/safetyDutyList/static/js/26.7e37655f7b2954f97c50.js @@ -0,0 +1,2 @@ +/*! For license information please see 26.7e37655f7b2954f97c50.js.LICENSE.txt */ +(self.webpackChunkjjb_micro_app_safetyDutyList=self.webpackChunkjjb_micro_app_safetyDutyList||[]).push([[26],{83643(e,t,n){"use strict";n.d(t,{Q1:()=>y,ZC:()=>k,Ay:()=>L});var r=n(58168),o=n(64467),a=n(5544),i=n(96540),l=n(89379),u=n(23029),c=n(92901),s=n(85501),f=n(49640),d=n(80045),p=n(82284),v=n(2616),h=["b"],m=["v"],g=function(e){return Math.round(Number(e||0))},y=function(e){(0,s.A)(n,e);var t=(0,f.A)(n);function n(e){return(0,u.A)(this,n),t.call(this,function(e){if(e instanceof v.Y)return e;if(e&&"object"===(0,p.A)(e)&&"h"in e&&"b"in e){var t=e,n=t.b,r=(0,d.A)(t,h);return(0,l.A)((0,l.A)({},r),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return(0,c.A)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=g(100*e.s),n=g(100*e.b),r=g(e.h),o=e.a,a="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),i="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?a:i}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=(0,d.A)(e,m);return(0,l.A)((0,l.A)({},n),{},{b:t,a:this.a})}}]),n}(v.Y),b=function(e){return e instanceof y?e:new y(e)},A=b("#1677ff"),w=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,o=e.color,a=e.type,i=r.current.getBoundingClientRect(),u=i.width,c=i.height,s=n.current.getBoundingClientRect(),f=s.width/2,d=s.height/2,p=(t.x+f)/u,v=1-(t.y+d)/c,h=o.toHsb(),m=p,g=(t.x+f)/u*360;if(a)switch(a){case"hue":return b((0,l.A)((0,l.A)({},h),{},{h:g<=0?0:g}));case"alpha":return b((0,l.A)((0,l.A)({},h),{},{a:m<=0?0:m}))}return b({h:h.h,s:p<=0?0:p,b:v>=1?1:v,a:h.a})},E=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},x=n(46942),C=n.n(x);const k=function(e){var t=e.color,n=e.prefixCls,r=e.className,o=e.style,a=e.onClick,l="".concat(n,"-color-block");return i.createElement("div",{className:C()(l,r),style:o,onClick:a},i.createElement("div",{className:"".concat(l,"-inner"),style:{background:t}}))};const S=function(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,l=e.onDragChangeComplete,u=e.calculate,c=e.color,s=e.disabledDrag,f=(0,i.useState)({x:0,y:0}),d=(0,a.A)(f,2),p=d[0],v=d[1],h=(0,i.useRef)(null),m=(0,i.useRef)(null);(0,i.useEffect)(function(){v(u())},[c]),(0,i.useEffect)(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",m.current),h.current=null,m.current=null}},[]);var g=function(e){var a=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),i=a.pageX,l=a.pageY,u=n.current.getBoundingClientRect(),c=u.x,s=u.y,f=u.width,d=u.height,v=t.current.getBoundingClientRect(),h=v.width,m=v.height,g=h/2,y=m/2,b=Math.max(0,Math.min(i-c,f))-g,A=Math.max(0,Math.min(l-s,d))-y,w={x:b,y:"x"===r?p.y:A};if(0===h&&0===m||h!==m)return!1;null==o||o(w)},y=function(e){e.preventDefault(),g(e)},b=function(e){e.preventDefault(),document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",m.current),h.current=null,m.current=null,null==l||l()};return[p,function(e){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",m.current),s||(g(e),document.addEventListener("mousemove",y),document.addEventListener("mouseup",b),document.addEventListener("touchmove",y),document.addEventListener("touchend",b),h.current=y,m.current=b)}]};var N=n(81470);const _=function(e){var t=e.size,n=void 0===t?"default":t,r=e.color,a=e.prefixCls;return i.createElement("div",{className:C()("".concat(a,"-handler"),(0,o.A)({},"".concat(a,"-handler-sm"),"small"===n)),style:{backgroundColor:r}})};const R=function(e){var t=e.children,n=e.style,r=e.prefixCls;return i.createElement("div",{className:"".concat(r,"-palette"),style:(0,l.A)({position:"relative"},n)},t)};const M=(0,i.forwardRef)(function(e,t){var n=e.children,r=e.x,o=e.y;return i.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)});const P=function(e){var t=e.color,n=e.onChange,r=e.prefixCls,o=e.onChangeComplete,l=e.disabled,u=(0,i.useRef)(),c=(0,i.useRef)(),s=(0,i.useRef)(t),f=(0,N._q)(function(e){var r=w({offset:e,targetRef:c,containerRef:u,color:t});s.current=r,n(r)}),d=S({color:t,containerRef:u,targetRef:c,calculate:function(){return E(t)},onDragChange:f,onDragChangeComplete:function(){return null==o?void 0:o(s.current)},disabledDrag:l}),p=(0,a.A)(d,2),v=p[0],h=p[1];return i.createElement("div",{ref:u,className:"".concat(r,"-select"),onMouseDown:h,onTouchStart:h},i.createElement(R,{prefixCls:r},i.createElement(M,{x:v.x,y:v.y,ref:c},i.createElement(_,{color:t.toRgbString(),prefixCls:r})),i.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))};const O=function(e,t){var n=(0,N.vz)(e,{value:t}),r=(0,a.A)(n,2),o=r[0],l=r[1];return[(0,i.useMemo)(function(){return b(o)},[o]),l]};const T=function(e){var t=e.colors,n=e.children,r=e.direction,o=void 0===r?"to right":r,a=e.type,l=e.prefixCls,u=(0,i.useMemo)(function(){return t.map(function(e,n){var r=b(e);return"alpha"===a&&n===t.length-1&&(r=new y(r.setA(1))),r.toRgbString()}).join(",")},[t,a]);return i.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(u,")")}},n)};const D=function(e){var t=e.prefixCls,n=e.colors,r=e.disabled,o=e.onChange,l=e.onChangeComplete,u=e.color,c=e.type,s=(0,i.useRef)(),f=(0,i.useRef)(),d=(0,i.useRef)(u),p=function(e){return"hue"===c?e.getHue():100*e.a},v=(0,N._q)(function(e){var t=w({offset:e,targetRef:f,containerRef:s,color:u,type:c});d.current=t,o(p(t))}),h=S({color:u,targetRef:f,containerRef:s,calculate:function(){return E(u,c)},onDragChange:v,onDragChangeComplete:function(){l(p(d.current))},direction:"x",disabledDrag:r}),m=(0,a.A)(h,2),g=m[0],b=m[1],A=i.useMemo(function(){if("hue"===c){var e=u.toHsb();return e.s=1,e.b=1,e.a=1,new y(e)}return u},[u,c]),x=i.useMemo(function(){return n.map(function(e){return"".concat(e.color," ").concat(e.percent,"%")})},[n]);return i.createElement("div",{ref:s,className:C()("".concat(t,"-slider"),"".concat(t,"-slider-").concat(c)),onMouseDown:b,onTouchStart:b},i.createElement(R,{prefixCls:t},i.createElement(M,{x:g.x,y:g.y,ref:f},i.createElement(_,{size:"small",color:A.toHexString(),prefixCls:t})),i.createElement(T,{colors:x,type:c,prefixCls:t})))};var I=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],F=(0,i.forwardRef)(function(e,t){var n=e.value,l=e.defaultValue,u=e.prefixCls,c=void 0===u?"rc-color-picker":u,s=e.onChange,f=e.onChangeComplete,d=e.className,p=e.style,v=e.panelRender,h=e.disabledAlpha,m=void 0!==h&&h,g=e.disabled,b=void 0!==g&&g,w=function(e){return i.useMemo(function(){return[(e||{}).slider||D]},[e])}(e.components),E=(0,a.A)(w,1)[0],x=O(l||A,n),S=(0,a.A)(x,2),N=S[0],_=S[1],R=(0,i.useMemo)(function(){return N.setA(1).toRgbString()},[N]),M=function(e,t){n||_(e),null==s||s(e,t)},T=function(e){return new y(N.setHue(e))},F=function(e){return new y(N.setA(e/100))},L=C()("".concat(c,"-panel"),d,(0,o.A)({},"".concat(c,"-panel-disabled"),b)),j={prefixCls:c,disabled:b,color:N},z=i.createElement(i.Fragment,null,i.createElement(P,(0,r.A)({onChange:M},j,{onChangeComplete:f})),i.createElement("div",{className:"".concat(c,"-slider-container")},i.createElement("div",{className:C()("".concat(c,"-slider-group"),(0,o.A)({},"".concat(c,"-slider-group-disabled-alpha"),m))},i.createElement(E,(0,r.A)({},j,{type:"hue",colors:I,min:0,max:359,value:N.getHue(),onChange:function(e){M(T(e),{type:"hue",value:e})},onChangeComplete:function(e){f&&f(T(e))}})),!m&&i.createElement(E,(0,r.A)({},j,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:R}],min:0,max:100,value:100*N.a,onChange:function(e){M(F(e),{type:"alpha",value:e})},onChangeComplete:function(e){f&&f(F(e))}}))),i.createElement(k,{color:N.toRgbString(),prefixCls:c})));return i.createElement("div",{className:L,style:p,ref:t},"function"==typeof v?v(z):z)});const L=F},45062(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(5544),o=n(96540),a=n(40961),i=n(20998),l=(n(68210),n(8719));const u=o.createContext(null);var c=n(60436),s=n(30981),f=[];var d=n(85089),p=n(82987);var v="rc-util-locker-".concat(Date.now()),h=0;function m(e){var t=!!e,n=o.useState(function(){return h+=1,"".concat(v,"_").concat(h)}),a=(0,r.A)(n,1)[0];(0,s.A)(function(){if(t){var e=(0,p.V)(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,d.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),a)}else(0,d.m6)(a);return function(){(0,d.m6)(a)}},[t,a])}var g=!1;var y=function(e){return!1!==e&&((0,i.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};const b=o.forwardRef(function(e,t){var n=e.open,d=e.autoLock,p=e.getContainer,v=(e.debug,e.autoDestroy),h=void 0===v||v,b=e.children,A=o.useState(n),w=(0,r.A)(A,2),E=w[0],x=w[1],C=E||n;o.useEffect(function(){(h||n)&&x(n)},[n,h]);var k=o.useState(function(){return y(p)}),S=(0,r.A)(k,2),N=S[0],_=S[1];o.useEffect(function(){var e=y(p);_(null!=e?e:null)});var R=function(e){var t=o.useState(function(){return(0,i.A)()?document.createElement("div"):null}),n=(0,r.A)(t,1)[0],a=o.useRef(!1),l=o.useContext(u),d=o.useState(f),p=(0,r.A)(d,2),v=p[0],h=p[1],m=l||(a.current?void 0:function(e){h(function(t){return[e].concat((0,c.A)(t))})});function g(){n.parentElement||document.body.appendChild(n),a.current=!0}function y(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),a.current=!1}return(0,s.A)(function(){return e?l?l(g):g():y(),y},[e]),(0,s.A)(function(){v.length&&(v.forEach(function(e){return e()}),h(f))},[v]),[n,m]}(C&&!N),M=(0,r.A)(R,2),P=M[0],O=M[1],T=null!=N?N:P;m(d&&n&&(0,i.A)()&&(T===P||T===document.body));var D=null;b&&(0,l.f3)(b)&&t&&(D=b.ref);var I=(0,l.xK)(D,t);if(!C||!(0,i.A)()||void 0===N)return null;var F,L=!1===T||("boolean"==typeof F&&(g=F),g),j=b;return t&&(j=o.cloneElement(b,{ref:I})),o.createElement(u.Provider,{value:O},L?j:(0,a.createPortal)(j,T))})},62427(e,t,n){"use strict";n.d(t,{A:()=>H});var r=n(89379),o=n(5544),a=n(80045),i=n(45062),l=n(46942),u=n.n(l),c=n(18462),s=n(66588),f=n(72633),d=n(26956),p=n(56855),v=n(30981),h=n(68430),m=n(96540),g=n(58168),y=n(90754),b=n(8719);function A(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},i=a.className,l=a.content,c=o.x,s=void 0===c?0:c,f=o.y,d=void 0===f?0:f,p=m.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],g=n.points[1],y=h[0],b=h[1],A=g[0],w=g[1];y!==A&&["t","b"].includes(y)?"t"===y?v.top=0:v.bottom=0:v.top=d,b!==w&&["l","r"].includes(b)?"l"===b?v.left=0:v.right=0:v.left=s}return m.createElement("div",{ref:p,className:u()("".concat(t,"-arrow"),i),style:v},l)}function w(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?m.createElement(y.Ay,(0,g.A)({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return m.createElement("div",{style:{zIndex:r},className:u()("".concat(t,"-mask"),n)})}):null}const E=m.memo(function(e){return e.children},function(e,t){return t.cache});const x=m.forwardRef(function(e,t){var n=e.popup,a=e.className,i=e.prefixCls,l=e.style,s=e.target,f=e.onVisibleChanged,d=e.open,p=e.keepDom,h=e.fresh,x=e.onClick,C=e.mask,k=e.arrow,S=e.arrowPos,N=e.align,_=e.motion,R=e.maskMotion,M=e.forceRender,P=e.getPopupContainer,O=e.autoDestroy,T=e.portal,D=e.zIndex,I=e.onMouseEnter,F=e.onMouseLeave,L=e.onPointerEnter,j=e.onPointerDownCapture,z=e.ready,K=e.offsetX,V=e.offsetY,H=e.offsetR,B=e.offsetB,U=e.onAlign,W=e.onPrepare,$=e.stretch,q=e.targetWidth,Y=e.targetHeight,X="function"==typeof n?n():n,G=d||p,Q=(null==P?void 0:P.length)>0,J=m.useState(!P||!Q),Z=(0,o.A)(J,2),ee=Z[0],te=Z[1];if((0,v.A)(function(){!ee&&Q&&s&&te(!0)},[ee,Q,s]),!ee)return null;var ne="auto",re={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(z||!d){var oe,ae=N.points,ie=N.dynamicInset||(null===(oe=N._experimental)||void 0===oe?void 0:oe.dynamicInset),le=ie&&"r"===ae[0][1],ue=ie&&"b"===ae[0][0];le?(re.right=H,re.left=ne):(re.left=K,re.right=ne),ue?(re.bottom=B,re.top=ne):(re.top=V,re.bottom=ne)}var ce={};return $&&($.includes("height")&&Y?ce.height=Y:$.includes("minHeight")&&Y&&(ce.minHeight=Y),$.includes("width")&&q?ce.width=q:$.includes("minWidth")&&q&&(ce.minWidth=q)),d||(ce.pointerEvents="none"),m.createElement(T,{open:M||G,getContainer:P&&function(){return P(s)},autoDestroy:O},m.createElement(w,{prefixCls:i,open:d,zIndex:D,mask:C,motion:R}),m.createElement(c.A,{onResize:U,disabled:!d},function(e){return m.createElement(y.Ay,(0,g.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:M,leavedClassName:"".concat(i,"-hidden")},_,{onAppearPrepare:W,onEnterPrepare:W,visible:d,onVisibleChanged:function(e){var t;null==_||null===(t=_.onVisibleChanged)||void 0===t||t.call(_,e),f(e)}}),function(n,o){var c=n.className,s=n.style,f=u()(i,c,a);return m.createElement("div",{ref:(0,b.K4)(e,t,o),className:f,style:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({"--arrow-x":"".concat(S.x||0,"px"),"--arrow-y":"".concat(S.y||0,"px")},re),ce),s),{},{boxSizing:"border-box",zIndex:D},l),onMouseEnter:I,onMouseLeave:F,onPointerEnter:L,onClick:x,onPointerDownCapture:j},k&&m.createElement(A,{prefixCls:i,arrow:k,arrowPos:S,align:N}),m.createElement(E,{cache:!d&&!h},X))})}))});const C=m.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,b.f3)(n),a=m.useCallback(function(e){(0,b.Xf)(t,r?r(e):e)},[r]),i=(0,b.xK)(a,(0,b.A9)(n));return o?m.cloneElement(n,{ref:i}):n});const k=m.createContext(null);function S(e){return e?Array.isArray(e)?e:[e]:[]}var N=n(42467);function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function R(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function M(e){return e.ownerDocument.defaultView}function P(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=M(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function T(e){return O(parseFloat(e),0)}function D(e,t){var n=(0,r.A)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=M(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,a=t.borderTopWidth,i=t.borderBottomWidth,l=t.borderLeftWidth,u=t.borderRightWidth,c=e.getBoundingClientRect(),s=e.offsetHeight,f=e.clientHeight,d=e.offsetWidth,p=e.clientWidth,v=T(a),h=T(i),m=T(l),g=T(u),y=O(Math.round(c.width/d*1e3)/1e3),b=O(Math.round(c.height/s*1e3)/1e3),A=(d-p-m-g)*y,w=(s-f-v-h)*b,E=v*b,x=h*b,C=m*y,k=g*y,S=0,N=0;if("clip"===r){var _=T(o);S=_*y,N=_*b}var R=c.x+C-S,P=c.y+E-N,D=R+c.width+2*S-C-k-A,I=P+c.height+2*N-E-x-w;n.left=Math.max(n.left,R),n.top=Math.max(n.top,P),n.right=Math.min(n.right,D),n.bottom=Math.min(n.bottom,I)}}),n}function I(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function F(e,t){var n=t||[],r=(0,o.A)(n,2),a=r[0],i=r[1];return[I(e.width,a),I(e.height,i)]}function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function j(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function z(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var K=n(60436);n(68210);var V=["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"];const H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.A,t=m.forwardRef(function(t,n){var i=t.prefixCls,l=void 0===i?"rc-trigger-popup":i,g=t.children,y=t.action,b=void 0===y?"hover":y,A=t.showAction,w=t.hideAction,E=t.popupVisible,T=t.defaultPopupVisible,I=t.onPopupVisibleChange,H=t.afterPopupVisibleChange,B=t.mouseEnterDelay,U=t.mouseLeaveDelay,W=void 0===U?.1:U,$=t.focusDelay,q=t.blurDelay,Y=t.mask,X=t.maskClosable,G=void 0===X||X,Q=t.getPopupContainer,J=t.forceRender,Z=t.autoDestroy,ee=t.destroyPopupOnHide,te=t.popup,ne=t.popupClassName,re=t.popupStyle,oe=t.popupPlacement,ae=t.builtinPlacements,ie=void 0===ae?{}:ae,le=t.popupAlign,ue=t.zIndex,ce=t.stretch,se=t.getPopupClassNameFromAlign,fe=t.fresh,de=t.alignPoint,pe=t.onPopupClick,ve=t.onPopupAlign,he=t.arrow,me=t.popupMotion,ge=t.maskMotion,ye=t.popupTransitionName,be=t.popupAnimation,Ae=t.maskTransitionName,we=t.maskAnimation,Ee=t.className,xe=t.getTriggerDOMNode,Ce=(0,a.A)(t,V),ke=Z||ee||!1,Se=m.useState(!1),Ne=(0,o.A)(Se,2),_e=Ne[0],Re=Ne[1];(0,v.A)(function(){Re((0,h.A)())},[]);var Me=m.useRef({}),Pe=m.useContext(k),Oe=m.useMemo(function(){return{registerSubPopup:function(e,t){Me.current[e]=t,null==Pe||Pe.registerSubPopup(e,t)}}},[Pe]),Te=(0,p.A)(),De=m.useState(null),Ie=(0,o.A)(De,2),Fe=Ie[0],Le=Ie[1],je=m.useRef(null),ze=(0,d.A)(function(e){je.current=e,(0,s.fk)(e)&&Fe!==e&&Le(e),null==Pe||Pe.registerSubPopup(Te,e)}),Ke=m.useState(null),Ve=(0,o.A)(Ke,2),He=Ve[0],Be=Ve[1],Ue=m.useRef(null),We=(0,d.A)(function(e){(0,s.fk)(e)&&He!==e&&(Be(e),Ue.current=e)}),$e=m.Children.only(g),qe=(null==$e?void 0:$e.props)||{},Ye={},Xe=(0,d.A)(function(e){var t,n,r=He;return(null==r?void 0:r.contains(e))||(null===(t=(0,f.j)(r))||void 0===t?void 0:t.host)===e||e===r||(null==Fe?void 0:Fe.contains(e))||(null===(n=(0,f.j)(Fe))||void 0===n?void 0:n.host)===e||e===Fe||Object.values(Me.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),Ge=R(l,me,be,ye),Qe=R(l,ge,we,Ae),Je=m.useState(T||!1),Ze=(0,o.A)(Je,2),et=Ze[0],tt=Ze[1],nt=null!=E?E:et,rt=(0,d.A)(function(e){void 0===E&&tt(e)});(0,v.A)(function(){tt(E||!1)},[E]);var ot=m.useRef(nt);ot.current=nt;var at=m.useRef([]);at.current=[];var it=(0,d.A)(function(e){var t;rt(e),(null!==(t=at.current[at.current.length-1])&&void 0!==t?t:nt)!==e&&(at.current.push(e),null==I||I(e))}),lt=m.useRef(),ut=function(){clearTimeout(lt.current)},ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ut(),0===t?it(e):lt.current=setTimeout(function(){it(e)},1e3*t)};m.useEffect(function(){return ut},[]);var st=m.useState(!1),ft=(0,o.A)(st,2),dt=ft[0],pt=ft[1];(0,v.A)(function(e){e&&!nt||pt(!0)},[nt]);var vt=m.useState(null),ht=(0,o.A)(vt,2),mt=ht[0],gt=ht[1],yt=m.useState(null),bt=(0,o.A)(yt,2),At=bt[0],wt=bt[1],Et=function(e){wt([e.clientX,e.clientY])},xt=function(e,t,n,a,i,l,u){var c=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[a]||{}}),f=(0,o.A)(c,2),p=f[0],h=f[1],g=m.useRef(0),y=m.useMemo(function(){return t?P(t):[]},[t]),b=m.useRef({});e||(b.current={});var A=(0,d.A)(function(){if(t&&n&&e){var c,f,d,p,v,m=t,g=m.ownerDocument,A=M(m),w=A.getComputedStyle(m).position,E=m.style.left,x=m.style.top,C=m.style.right,k=m.style.bottom,S=m.style.overflow,_=(0,r.A)((0,r.A)({},i[a]),l),R=g.createElement("div");if(null===(c=m.parentElement)||void 0===c||c.appendChild(R),R.style.left="".concat(m.offsetLeft,"px"),R.style.top="".concat(m.offsetTop,"px"),R.style.position=w,R.style.height="".concat(m.offsetHeight,"px"),R.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(n))v={x:n[0],y:n[1],width:0,height:0};else{var P,T,I=n.getBoundingClientRect();I.x=null!==(P=I.x)&&void 0!==P?P:I.left,I.y=null!==(T=I.y)&&void 0!==T?T:I.top,v={x:I.x,y:I.y,width:I.width,height:I.height}}var K=m.getBoundingClientRect(),V=A.getComputedStyle(m),H=V.height,B=V.width;K.x=null!==(f=K.x)&&void 0!==f?f:K.left,K.y=null!==(d=K.y)&&void 0!==d?d:K.top;var U=g.documentElement,W=U.clientWidth,$=U.clientHeight,q=U.scrollWidth,Y=U.scrollHeight,X=U.scrollTop,G=U.scrollLeft,Q=K.height,J=K.width,Z=v.height,ee=v.width,te={left:0,top:0,right:W,bottom:$},ne={left:-G,top:-X,right:q-G,bottom:Y-X},re=_.htmlRegion,oe="visible",ae="visibleFirst";"scroll"!==re&&re!==ae&&(re=oe);var ie=re===ae,le=D(ne,y),ue=D(te,y),ce=re===oe?ue:le,se=ie?ue:ce;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var fe=m.getBoundingClientRect();m.style.left=E,m.style.top=x,m.style.right=C,m.style.bottom=k,m.style.overflow=S,null===(p=m.parentElement)||void 0===p||p.removeChild(R);var de=O(Math.round(J/parseFloat(B)*1e3)/1e3),pe=O(Math.round(Q/parseFloat(H)*1e3)/1e3);if(0===de||0===pe||(0,s.fk)(n)&&!(0,N.A)(n))return;var ve=_.offset,he=_.targetOffset,me=F(K,ve),ge=(0,o.A)(me,2),ye=ge[0],be=ge[1],Ae=F(v,he),we=(0,o.A)(Ae,2),Ee=we[0],xe=we[1];v.x-=Ee,v.y-=xe;var Ce=_.points||[],ke=(0,o.A)(Ce,2),Se=ke[0],Ne=L(ke[1]),_e=L(Se),Re=j(v,Ne),Me=j(K,_e),Pe=(0,r.A)({},_),Oe=Re.x-Me.x+ye,Te=Re.y-Me.y+be;function St(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ce,r=K.x+e,o=K.y+t,a=r+J,i=o+Q,l=Math.max(r,n.left),u=Math.max(o,n.top),c=Math.min(a,n.right),s=Math.min(i,n.bottom);return Math.max(0,(c-l)*(s-u))}var De,Ie,Fe,Le,je=St(Oe,Te),ze=St(Oe,Te,ue),Ke=j(v,["t","l"]),Ve=j(K,["t","l"]),He=j(v,["b","r"]),Be=j(K,["b","r"]),Ue=_.overflow||{},We=Ue.adjustX,$e=Ue.adjustY,qe=Ue.shiftX,Ye=Ue.shiftY,Xe=function(e){return"boolean"==typeof e?e:e>=0};function Nt(){De=K.y+Te,Ie=De+Q,Fe=K.x+Oe,Le=Fe+J}Nt();var Ge=Xe($e),Qe=_e[0]===Ne[0];if(Ge&&"t"===_e[0]&&(Ie>se.bottom||b.current.bt)){var Je=Te;Qe?Je-=Q-Z:Je=Ke.y-Be.y-be;var Ze=St(Oe,Je),et=St(Oe,Je,ue);Ze>je||Ze===je&&(!ie||et>=ze)?(b.current.bt=!0,Te=Je,be=-be,Pe.points=[z(_e,0),z(Ne,0)]):b.current.bt=!1}if(Ge&&"b"===_e[0]&&(Deje||nt===je&&(!ie||rt>=ze)?(b.current.tb=!0,Te=tt,be=-be,Pe.points=[z(_e,0),z(Ne,0)]):b.current.tb=!1}var ot=Xe(We),at=_e[1]===Ne[1];if(ot&&"l"===_e[1]&&(Le>se.right||b.current.rl)){var it=Oe;at?it-=J-ee:it=Ke.x-Be.x-ye;var lt=St(it,Te),ut=St(it,Te,ue);lt>je||lt===je&&(!ie||ut>=ze)?(b.current.rl=!0,Oe=it,ye=-ye,Pe.points=[z(_e,1),z(Ne,1)]):b.current.rl=!1}if(ot&&"r"===_e[1]&&(Feje||st===je&&(!ie||ft>=ze)?(b.current.lr=!0,Oe=ct,ye=-ye,Pe.points=[z(_e,1),z(Ne,1)]):b.current.lr=!1}Nt();var dt=!0===qe?0:qe;"number"==typeof dt&&(Feue.right&&(Oe-=Le-ue.right-ye,v.x>ue.right-dt&&(Oe+=v.x-ue.right+dt)));var pt=!0===Ye?0:Ye;"number"==typeof pt&&(Deue.bottom&&(Te-=Ie-ue.bottom-be,v.y>ue.bottom-pt&&(Te+=v.y-ue.bottom+pt)));var vt=K.x+Oe,ht=vt+J,mt=K.y+Te,gt=mt+Q,yt=v.x,bt=yt+ee,At=v.y,wt=At+Z,Et=(Math.max(vt,yt)+Math.min(ht,bt))/2-vt,xt=(Math.max(mt,At)+Math.min(gt,wt))/2-mt;null==u||u(t,Pe);var Ct=fe.right-K.x-(Oe+K.width),kt=fe.bottom-K.y-(Te+K.height);1===de&&(Oe=Math.floor(Oe),Ct=Math.floor(Ct)),1===pe&&(Te=Math.floor(Te),kt=Math.floor(kt)),h({ready:!0,offsetX:Oe/de,offsetY:Te/pe,offsetR:Ct/de,offsetB:kt/pe,arrowX:Et/de,arrowY:xt/pe,scaleX:de,scaleY:pe,align:Pe})}}),w=function(){h(function(e){return(0,r.A)((0,r.A)({},e),{},{ready:!1})})};return(0,v.A)(w,[a]),(0,v.A)(function(){e||w()},[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,function(){g.current+=1;var e=g.current;Promise.resolve().then(function(){g.current===e&&A()})}]}(nt,Fe,de&&null!==At?At:He,oe,ie,le,ve),Ct=(0,o.A)(xt,11),kt=Ct[0],St=Ct[1],Nt=Ct[2],_t=Ct[3],Rt=Ct[4],Mt=Ct[5],Pt=Ct[6],Ot=Ct[7],Tt=Ct[8],Dt=Ct[9],It=Ct[10],Ft=function(e,t,n,r){return m.useMemo(function(){var o=S(null!=n?n:t),a=S(null!=r?r:t),i=new Set(o),l=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}(_e,b,A,w),Lt=(0,o.A)(Ft,2),jt=Lt[0],zt=Lt[1],Kt=jt.has("click"),Vt=zt.has("click")||zt.has("contextMenu"),Ht=(0,d.A)(function(){dt||It()});!function(e,t,n,r,o){(0,v.A)(function(){if(e&&t&&n){var a=n,i=P(t),l=P(a),u=M(a),c=new Set([u].concat((0,K.A)(i),(0,K.A)(l)));function s(){r(),o()}return c.forEach(function(e){e.addEventListener("scroll",s,{passive:!0})}),u.addEventListener("resize",s,{passive:!0}),r(),function(){c.forEach(function(e){e.removeEventListener("scroll",s),u.removeEventListener("resize",s)})}}},[e,t,n])}(nt,He,Fe,Ht,function(){ot.current&&de&&Vt&&ct(!1)}),(0,v.A)(function(){Ht()},[At,oe]),(0,v.A)(function(){!nt||null!=ie&&ie[oe]||Ht()},[JSON.stringify(le)]);var Bt=m.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i1?i-1:0),u=1;u1?n-1:0),o=1;o1?n-1:0),o=1;oa});var r=n(96540),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;nee,A:()=>re});var r=n(58168),o=n(89379),a=n(60436),i=n(5544),l=n(80045),u=n(43599),c=n(3979),s=n(26956),f=n(12533),d=n(96540);const p=d.createContext({});var v=n(82284),h=n(64467),m="__rc_cascader_search_mark__",g=function(e,t,n){var r=n.label,o=void 0===r?"":r;return t.some(function(t){return String(t[o]).toLowerCase().includes(e.toLowerCase())})},y=function(e,t,n,r){return t.map(function(e){return e[r.label]}).join(" / ")};const b=function(e,t,n,r,i,l){var u=i.filter,c=void 0===u?g:u,s=i.render,f=void 0===s?y:s,p=i.limit,v=void 0===p?50:p,b=i.sort;return d.useMemo(function(){var i=[];if(!e)return[];return function t(u,s){var d=arguments.length>2&&void 0!==arguments[2]&&arguments[2];u.forEach(function(u){if(!(!b&&!1!==v&&v>0&&i.length>=v)){var p,g=[].concat((0,a.A)(s),[u]),y=u[n.children],A=d||u.disabled;if(!y||0===y.length||l)if(c(e,g,{label:n.label}))i.push((0,o.A)((0,o.A)({},u),{},(p={disabled:A},(0,h.A)(p,n.label,f(e,g,r,n)),(0,h.A)(p,m,g),(0,h.A)(p,n.children,void 0),p)));y&&t(u[n.children],g,A)}})}(t,[]),b&&i.sort(function(t,r){return b(t[m],r[m],e,n)}),!1!==v&&v>0?i.slice(0,v):i},[e,t,n,r,f,l,c,b,v])};var A="__RC_CASCADER_SPLIT__",w="SHOW_PARENT",E="SHOW_CHILD";function x(e){return e.join(A)}function C(e){return e.map(x)}function k(e){var t=e||{},n=t.label,r=t.value||"value";return{label:n||"label",value:r,key:r,children:t.children||"children"}}function S(e,t){var n,r;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null!==(r=e[t.children])&&void 0!==r&&r.length)}function N(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function _(e,t){return e.map(function(e){var n;return null===(n=e[m])||void 0===n?void 0:n.map(function(e){return e[t.value]})})}function R(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map(function(e){return Array.isArray(e)?e:[e]}):[]}function M(e,t,n){var r=new Set(e),o=t();return e.filter(function(e){var t=o[e],a=t?t.parent:null,i=t?t.children:null;return!(!t||!t.node.disabled)||(n===E?!(i&&i.some(function(e){return e.key&&r.has(e.key)})):!(a&&!a.node.disabled&&r.has(a.key)))})}function P(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t,a=[],i=function(){var t,i,u,c=e[l],s=null===(t=o)||void 0===t?void 0:t.findIndex(function(e){var t=e[n.value];return r?String(t)===String(c):t===c}),f=-1!==s?null===(i=o)||void 0===i?void 0:i[s]:null;a.push({value:null!==(u=null==f?void 0:f[n.value])&&void 0!==u?u:c,index:s,option:f}),o=null==f?void 0:f[n.children]},l=0;l1){var e=y.slice(0,-1);E(e)}else f(!1)},k=function(){var e,t=((null===(e=A[b])||void 0===e?void 0:e[n.children])||[]).find(function(e){return!e.disabled});if(t){var r=[].concat((0,a.A)(y),[t[n.value]]);E(r)}};d.useImperativeHandle(e,function(){return{onKeyDown:function(e){var t=e.which;switch(t){case q.A.UP:case q.A.DOWN:var r=0;t===q.A.UP?r=-1:t===q.A.DOWN&&(r=1),0!==r&&function(e){var t=A.length,r=b;-1===r&&e<0&&(r=t);for(var o=0;o2&&void 0!==arguments[2]&&arguments[2];I(e),!s&&(t||D&&("hover"===z||n))&&v(!1)},ie=d.useMemo(function(){return f?F:R},[f,F,R]),le=d.useMemo(function(){for(var e=[{options:ie}],t=ie,n=_(t,T),r=function(){var r=te[o],a=t.find(function(e,t){return(n[t]?x(n[t]):e[T.value])===r}),i=null==a?void 0:a[T.children];if(null==i||!i.length)return 1;t=i,e.push({options:i})},o=0;o":w,x=n.loadingIcon,C=n.direction,S=n.notFoundContent,N=void 0===S?"Not Found":S,_=n.disabled,M=!!c,O=(0,J.vz)(s,{value:f,postState:R}),D=(0,i.A)(O,2),I=D[0],L=D[1],K=d.useMemo(function(){return k(v)},[JSON.stringify(v)]),H=F(K,u),B=(0,i.A)(H,3),U=B[0],W=B[1],$=B[2],q=T(U,K),Y=z(M,I,W,$,q),X=(0,i.A)(Y,3),Q=X[0],ee=X[1],te=X[2],ne=(0,J._q)(function(e){if(L(e),g){var t=R(e),n=t.map(function(e){return P(e,U,K).map(function(e){return e.option})}),r=M?t:t[0],o=M?n:n[0];g(r,o)}}),re=j(M,ne,Q,ee,te,W,$,y),oe=(0,J._q)(function(e){re(e)}),ae=d.useMemo(function(){return{options:U,fieldNames:K,values:Q,halfValues:ee,changeOnSelect:m,onSelect:oe,checkable:c,searchOptions:[],dropdownPrefixCls:void 0,loadData:b,expandTrigger:A,expandIcon:E,loadingIcon:x,dropdownMenuColumnStyle:void 0}},[U,K,Q,ee,m,oe,c,b,A,E,x]),ie="".concat(o,"-panel"),le=!U.length;return d.createElement(p.Provider,{value:ae},d.createElement("div",{className:V()(ie,(t={},(0,h.A)(t,"".concat(ie,"-rtl"),"rtl"===C),(0,h.A)(t,"".concat(ie,"-empty"),le),t),l),style:a},le?N:d.createElement(G,{prefixCls:o,searchValue:"",multiple:M,toggleOpen:Z,open:!0,direction:C,disabled:_})))}var te=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","onOpenChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],ne=d.forwardRef(function(e,t){var n=e.id,h=e.prefixCls,m=void 0===h?"rc-cascader":h,g=e.fieldNames,y=e.defaultValue,A=e.value,E=e.changeOnSelect,x=e.onChange,S=e.displayRender,N=e.checkable,_=e.autoClearSearchValue,D=void 0===_||_,I=e.searchValue,L=e.onSearch,K=e.showSearch,V=e.expandTrigger,H=e.options,B=e.dropdownPrefixCls,U=e.loadData,W=e.popupVisible,$=e.open,q=e.popupClassName,Y=e.dropdownClassName,X=e.dropdownMenuColumnStyle,G=e.dropdownStyle,J=e.popupPlacement,Z=e.placement,ee=e.onDropdownVisibleChange,ne=e.onPopupVisibleChange,re=e.onOpenChange,oe=e.expandIcon,ae=void 0===oe?">":oe,ie=e.loadingIcon,le=e.children,ue=e.dropdownMatchSelectWidth,ce=void 0!==ue&&ue,se=e.showCheckedStrategy,fe=void 0===se?w:se,de=e.optionRender,pe=(0,l.A)(e,te),ve=(0,c.Ay)(n),he=!!N,me=(0,f.A)(y,{value:A,postState:R}),ge=(0,i.A)(me,2),ye=ge[0],be=ge[1],Ae=d.useMemo(function(){return k(g)},[JSON.stringify(g)]),we=F(Ae,H),Ee=(0,i.A)(we,3),xe=Ee[0],Ce=Ee[1],ke=Ee[2],Se=(0,f.A)("",{value:I,postState:function(e){return e||""}}),Ne=(0,i.A)(Se,2),_e=Ne[0],Re=Ne[1],Me=function(e){return d.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&"object"===(0,v.A)(e)&&(t=(0,o.A)((0,o.A)({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}(K),Pe=(0,i.A)(Me,2),Oe=Pe[0],Te=Pe[1],De=b(_e,xe,Ae,B||m,Te,E||he),Ie=T(xe,Ae),Fe=z(he,ye,Ce,ke,Ie),Le=(0,i.A)(Fe,3),je=Le[0],ze=Le[1],Ke=Le[2],Ve=d.useMemo(function(){var e=M(C(je),Ce,fe);return[].concat((0,a.A)(Ke),(0,a.A)(ke(e)))},[je,Ce,ke,Ke,fe]),He=O(Ve,xe,Ae,he,S),Be=(0,s.A)(function(e){if(be(e),x){var t=R(e),n=t.map(function(e){return P(e,xe,Ae).map(function(e){return e.option})}),r=he?t:t[0],o=he?n:n[0];x(r,o)}}),Ue=j(he,Be,je,ze,Ke,Ce,ke,fe),We=(0,s.A)(function(e){he&&!D||Re(""),Ue(e)}),$e=void 0!==$?$:W,qe=Y||q,Ye=Z||J;var Xe=d.useMemo(function(){return{options:xe,fieldNames:Ae,values:je,halfValues:ze,changeOnSelect:E,onSelect:We,checkable:N,searchOptions:De,dropdownPrefixCls:B,loadData:U,expandTrigger:V,expandIcon:ae,loadingIcon:ie,dropdownMenuColumnStyle:X,optionRender:de}},[xe,Ae,je,ze,E,We,N,De,B,U,V,ae,ie,X,de]),Ge=!(_e?De:xe).length,Qe=_e&&Te.matchInputWidth||Ge?{}:{minWidth:"auto"};return d.createElement(p.Provider,{value:Xe},d.createElement(u.g3,(0,r.A)({},pe,{ref:t,id:ve,prefixCls:m,autoClearSearchValue:D,dropdownMatchSelectWidth:ce,dropdownStyle:(0,o.A)((0,o.A)({},Qe),G),displayValues:He,onDisplayValuesChange:function(e,t){if("clear"!==t.type){var n=t.values[0].valueCells;We(n)}else Be([])},mode:he?"multiple":void 0,searchValue:_e,onSearch:function(e,t){Re(e),"blur"!==t.source&&L&&L(e)},showSearch:Oe,OptionList:Q,emptyOptions:Ge,open:$e,dropdownClassName:qe,placement:Ye,onDropdownVisibleChange:function(e){null==re||re(e),null==ee||ee(e),null==ne||ne(e)},getRawInputElement:function(){return le}})))});ne.SHOW_PARENT=w,ne.SHOW_CHILD=E,ne.Panel=ee;const re=ne},38873(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(58168),o=n(89379),a=n(64467),i=n(5544),l=n(80045),u=n(46942),c=n.n(u),s=n(12533),f=n(96540),d=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"];const p=(0,f.forwardRef)(function(e,t){var n=e.prefixCls,u=void 0===n?"rc-checkbox":n,p=e.className,v=e.style,h=e.checked,m=e.disabled,g=e.defaultChecked,y=void 0!==g&&g,b=e.type,A=void 0===b?"checkbox":b,w=e.title,E=e.onChange,x=(0,l.A)(e,d),C=(0,f.useRef)(null),k=(0,f.useRef)(null),S=(0,s.A)(y,{value:h}),N=(0,i.A)(S,2),_=N[0],R=N[1];(0,f.useImperativeHandle)(t,function(){return{focus:function(e){var t;null===(t=C.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=C.current)||void 0===e||e.blur()},input:C.current,nativeElement:k.current}});var M=c()(u,p,(0,a.A)((0,a.A)({},"".concat(u,"-checked"),_),"".concat(u,"-disabled"),m));return f.createElement("span",{className:M,title:w,style:v,ref:k},f.createElement("input",(0,r.A)({},x,{className:"".concat(u,"-input"),ref:C,onChange:function(t){m||("checked"in e||R(t.target.checked),null==E||E({target:(0,o.A)((0,o.A)({},e),{},{type:A,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:m,checked:!!_,type:A})),f.createElement("span",{className:"".concat(u,"-inner")}))})},71057(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(58168),o=n(60436),a=n(5544),i=n(82284),l=n(46942),u=n.n(l),c=n(12533),s=n(68210),f=n(96540),d=n(80045),p=n(82546),v=n(89379),h=n(64467),m=n(90754),g=n(16928),y=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,i=e.style,l=e.children,c=e.isActive,s=e.role,d=e.classNames,p=e.styles,v=f.useState(c||r),m=(0,a.A)(v,2),g=m[0],y=m[1];return f.useEffect(function(){(r||c)&&y(!0)},[r,c]),g?f.createElement("div",{ref:t,className:u()("".concat(n,"-content"),(0,h.A)((0,h.A)({},"".concat(n,"-content-active"),c),"".concat(n,"-content-inactive"),!c),o),style:i,role:s},f.createElement("div",{className:u()("".concat(n,"-content-box"),null==d?void 0:d.body),style:null==p?void 0:p.body},l)):null});y.displayName="PanelContent";const b=y;var A=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"];const w=f.forwardRef(function(e,t){var n=e.showArrow,o=void 0===n||n,a=e.headerClass,i=e.isActive,l=e.onItemClick,c=e.forceRender,s=e.className,p=e.classNames,y=void 0===p?{}:p,w=e.styles,E=void 0===w?{}:w,x=e.prefixCls,C=e.collapsible,k=e.accordion,S=e.panelKey,N=e.extra,_=e.header,R=e.expandIcon,M=e.openMotion,P=e.destroyInactivePanel,O=e.children,T=(0,d.A)(e,A),D="disabled"===C,I=null!=N&&"boolean"!=typeof N,F=(0,h.A)((0,h.A)((0,h.A)({onClick:function(){null==l||l(S)},onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==g.A.ENTER&&e.which!==g.A.ENTER||null==l||l(S)},role:k?"tab":"button"},"aria-expanded",i),"aria-disabled",D),"tabIndex",D?-1:0),L="function"==typeof R?R(e):f.createElement("i",{className:"arrow"}),j=L&&f.createElement("div",(0,r.A)({className:"".concat(x,"-expand-icon")},["header","icon"].includes(C)?F:{}),L),z=u()("".concat(x,"-item"),(0,h.A)((0,h.A)({},"".concat(x,"-item-active"),i),"".concat(x,"-item-disabled"),D),s),K=u()(a,"".concat(x,"-header"),(0,h.A)({},"".concat(x,"-collapsible-").concat(C),!!C),y.header),V=(0,v.A)({className:K,style:E.header},["header","icon"].includes(C)?{}:F);return f.createElement("div",(0,r.A)({},T,{ref:t,className:z}),f.createElement("div",V,o&&j,f.createElement("span",(0,r.A)({className:"".concat(x,"-header-text")},"header"===C?F:{}),_),I&&f.createElement("div",{className:"".concat(x,"-extra")},N)),f.createElement(m.Ay,(0,r.A)({visible:i,leavedClassName:"".concat(x,"-content-hidden")},M,{forceRender:c,removeOnLeave:P}),function(e,t){var n=e.className,r=e.style;return f.createElement(b,{ref:t,prefixCls:x,className:n,classNames:y,style:r,styles:E,isActive:i,forceRender:c,role:k?"tabpanel":void 0},O)}))});var E=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];const x=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,o=t.accordion,a=t.collapsible,i=t.destroyInactivePanel,l=t.onItemClick,u=t.activeKey,c=t.openMotion,s=t.expandIcon;return e.map(function(e,t){var p=e.children,v=e.label,h=e.key,m=e.collapsible,g=e.onItemClick,y=e.destroyInactivePanel,b=(0,d.A)(e,E),A=String(null!=h?h:t),x=null!=m?m:a,C=null!=y?y:i,k=!1;return k=o?u[0]===A:u.indexOf(A)>-1,f.createElement(w,(0,r.A)({},b,{prefixCls:n,key:A,panelKey:A,isActive:k,accordion:o,openMotion:c,expandIcon:s,header:v,collapsible:x,onItemClick:function(e){"disabled"!==x&&(l(e),null==g||g(e))},destroyInactivePanel:C}),p)})}(e,n):(0,p.A)(t).map(function(e,t){return function(e,t,n){if(!e)return null;var r=n.prefixCls,o=n.accordion,a=n.collapsible,i=n.destroyInactivePanel,l=n.onItemClick,u=n.activeKey,c=n.openMotion,s=n.expandIcon,d=e.key||String(t),p=e.props,v=p.header,h=p.headerClass,m=p.destroyInactivePanel,g=p.collapsible,y=p.onItemClick,b=!1;b=o?u[0]===d:u.indexOf(d)>-1;var A=null!=g?g:a,w={key:d,panelKey:d,header:v,headerClass:h,isActive:b,prefixCls:r,destroyInactivePanel:null!=m?m:i,openMotion:c,accordion:o,children:e.props.children,onItemClick:function(e){"disabled"!==A&&(l(e),null==y||y(e))},expandIcon:s,collapsible:A};return"string"==typeof e.type?e:(Object.keys(w).forEach(function(e){void 0===w[e]&&delete w[e]}),f.cloneElement(e,w))}(e,t,n)})};var C=n(72065);function k(e){var t=e;if(!Array.isArray(t)){var n=(0,i.A)(t);t="number"===n||"string"===n?[t]:[]}return t.map(function(e){return String(e)})}var S=f.forwardRef(function(e,t){var n=e.prefixCls,i=void 0===n?"rc-collapse":n,l=e.destroyInactivePanel,d=void 0!==l&&l,p=e.style,v=e.accordion,h=e.className,m=e.children,g=e.collapsible,y=e.openMotion,b=e.expandIcon,A=e.activeKey,w=e.defaultActiveKey,E=e.onChange,S=e.items,N=u()(i,h),_=(0,c.A)([],{value:A,onChange:function(e){return null==E?void 0:E(e)},defaultValue:w,postState:k}),R=(0,a.A)(_,2),M=R[0],P=R[1];(0,s.Ay)(!m,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var O=x(S,m,{prefixCls:i,accordion:v,openMotion:y,expandIcon:b,collapsible:g,destroyInactivePanel:d,onItemClick:function(e){return P(function(){return v?M[0]===e?[]:[e]:M.indexOf(e)>-1?M.filter(function(t){return t!==e}):[].concat((0,o.A)(M),[e])})},activeKey:M});return f.createElement("div",(0,r.A)({ref:t,className:N,style:p,role:v?"tablist":void 0},(0,C.A)(e,{aria:!0,data:!0})),O)});const N=Object.assign(S,{Panel:w}),_=N;N.Panel},33766(e,t,n){"use strict";n.d(t,{Z:()=>x,A:()=>R});var r=n(58168),o=n(5544),a=n(45062),i=n(96540),l=i.createContext({}),u=n(89379),c=n(46942),s=n.n(c),f=n(54808),d=n(56855),p=n(16928),v=n(72065);function h(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function m(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var g=n(90754),y=n(82284),b=n(8719);const A=i.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate});var w={width:0,height:0,overflow:"hidden",outline:"none"},E={outline:"none"};const x=i.forwardRef(function(e,t){var n=e.prefixCls,o=e.className,a=e.style,c=e.title,f=e.ariaId,d=e.footer,p=e.closable,h=e.closeIcon,m=e.onClose,g=e.children,x=e.bodyStyle,C=e.bodyProps,k=e.modalRender,S=e.onMouseDown,N=e.onMouseUp,_=e.holderRef,R=e.visible,M=e.forceRender,P=e.width,O=e.height,T=e.classNames,D=e.styles,I=i.useContext(l).panel,F=(0,b.xK)(_,I),L=(0,i.useRef)(),j=(0,i.useRef)();i.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=L.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===j.current?L.current.focus({preventScroll:!0}):e||t!==L.current||j.current.focus({preventScroll:!0})}}});var z={};void 0!==P&&(z.width=P),void 0!==O&&(z.height=O);var K=d?i.createElement("div",{className:s()("".concat(n,"-footer"),null==T?void 0:T.footer),style:(0,u.A)({},null==D?void 0:D.footer)},d):null,V=c?i.createElement("div",{className:s()("".concat(n,"-header"),null==T?void 0:T.header),style:(0,u.A)({},null==D?void 0:D.header)},i.createElement("div",{className:"".concat(n,"-title"),id:f},c)):null,H=(0,i.useMemo)(function(){return"object"===(0,y.A)(p)&&null!==p?p:p?{closeIcon:null!=h?h:i.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[p,h,n]),B=(0,v.A)(H,!0),U="object"===(0,y.A)(p)&&p.disabled,W=p?i.createElement("button",(0,r.A)({type:"button",onClick:m,"aria-label":"Close"},B,{className:"".concat(n,"-close"),disabled:U}),H.closeIcon):null,$=i.createElement("div",{className:s()("".concat(n,"-content"),null==T?void 0:T.content),style:null==D?void 0:D.content},W,V,i.createElement("div",(0,r.A)({className:s()("".concat(n,"-body"),null==T?void 0:T.body),style:(0,u.A)((0,u.A)({},x),null==D?void 0:D.body)},C),g),K);return i.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":c?f:null,"aria-modal":"true",ref:F,style:(0,u.A)((0,u.A)({},a),z),className:s()(n,o),onMouseDown:S,onMouseUp:N},i.createElement("div",{ref:L,tabIndex:0,style:E},i.createElement(A,{shouldUpdate:R||M},k?k($):$)),i.createElement("div",{tabIndex:0,ref:j,style:w}))});var C=i.forwardRef(function(e,t){var n=e.prefixCls,a=e.title,l=e.style,c=e.className,f=e.visible,d=e.forceRender,p=e.destroyOnClose,v=e.motionName,h=e.ariaId,y=e.onVisibleChanged,b=e.mousePosition,A=(0,i.useRef)(),w=i.useState(),E=(0,o.A)(w,2),C=E[0],k=E[1],S={};function N(){var e,t,n,r,o,a=(e=A.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=m(o),n.top+=m(o,!0),n);k(b&&(b.x||b.y)?"".concat(b.x-a.left,"px ").concat(b.y-a.top,"px"):"")}return C&&(S.transformOrigin=C),i.createElement(g.Ay,{visible:f,onVisibleChanged:y,onAppearPrepare:N,onEnterPrepare:N,forceRender:d,motionName:v,removeOnLeave:p,ref:A},function(o,f){var d=o.className,p=o.style;return i.createElement(x,(0,r.A)({},e,{ref:t,title:a,ariaId:h,prefixCls:n,holderRef:f,style:(0,u.A)((0,u.A)((0,u.A)({},p),l),S),className:s()(c,d)}))})});C.displayName="Content";const k=C;const S=function(e){var t=e.prefixCls,n=e.style,o=e.visible,a=e.maskProps,l=e.motionName,c=e.className;return i.createElement(g.Ay,{key:"mask",visible:o,motionName:l,leavedClassName:"".concat(t,"-mask-hidden")},function(e,o){var l=e.className,f=e.style;return i.createElement("div",(0,r.A)({ref:o,style:(0,u.A)((0,u.A)({},f),n),className:s()("".concat(t,"-mask"),l,c)},a))})};n(68210);const N=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,a=e.zIndex,l=e.visible,c=void 0!==l&&l,m=e.keyboard,g=void 0===m||m,y=e.focusTriggerAfterClose,b=void 0===y||y,A=e.wrapStyle,w=e.wrapClassName,E=e.wrapProps,x=e.onClose,C=e.afterOpenChange,N=e.afterClose,_=e.transitionName,R=e.animation,M=e.closable,P=void 0===M||M,O=e.mask,T=void 0===O||O,D=e.maskTransitionName,I=e.maskAnimation,F=e.maskClosable,L=void 0===F||F,j=e.maskStyle,z=e.maskProps,K=e.rootClassName,V=e.classNames,H=e.styles;var B=(0,i.useRef)(),U=(0,i.useRef)(),W=(0,i.useRef)(),$=i.useState(c),q=(0,o.A)($,2),Y=q[0],X=q[1],G=(0,d.A)();function Q(e){null==x||x(e)}var J=(0,i.useRef)(!1),Z=(0,i.useRef)(),ee=null;L&&(ee=function(e){J.current?J.current=!1:U.current===e.target&&Q(e)}),(0,i.useEffect)(function(){c&&(X(!0),(0,f.A)(U.current,document.activeElement)||(B.current=document.activeElement))},[c]),(0,i.useEffect)(function(){return function(){clearTimeout(Z.current)}},[]);var te=(0,u.A)((0,u.A)((0,u.A)({zIndex:a},A),null==H?void 0:H.wrapper),{},{display:Y?null:"none"});return i.createElement("div",(0,r.A)({className:s()("".concat(n,"-root"),K)},(0,v.A)(e,{data:!0})),i.createElement(S,{prefixCls:n,visible:T&&c,motionName:h(n,D,I),style:(0,u.A)((0,u.A)({zIndex:a},j),null==H?void 0:H.mask),maskProps:z,className:null==V?void 0:V.mask}),i.createElement("div",(0,r.A)({tabIndex:-1,onKeyDown:function(e){if(g&&e.keyCode===p.A.ESC)return e.stopPropagation(),void Q(e);c&&e.keyCode===p.A.TAB&&W.current.changeActive(!e.shiftKey)},className:s()("".concat(n,"-wrap"),w,null==V?void 0:V.wrapper),ref:U,onClick:ee,style:te},E),i.createElement(k,(0,r.A)({},e,{onMouseDown:function(){clearTimeout(Z.current),J.current=!0},onMouseUp:function(){Z.current=setTimeout(function(){J.current=!1})},ref:W,closable:P,ariaId:G,prefixCls:n,visible:c&&Y,onClose:Q,onVisibleChanged:function(e){if(e)(0,f.A)(U.current,document.activeElement)||null===(t=W.current)||void 0===t||t.focus();else{if(X(!1),T&&B.current&&b){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}Y&&(null==N||N())}var t;null==C||C(e)},motionName:h(n,_,R)}))))};var _=function(e){var t=e.visible,n=e.getContainer,u=e.forceRender,c=e.destroyOnClose,s=void 0!==c&&c,f=e.afterClose,d=e.panelRef,p=i.useState(t),v=(0,o.A)(p,2),h=v[0],m=v[1],g=i.useMemo(function(){return{panel:d}},[d]);return i.useEffect(function(){t&&m(!0)},[t]),u||!s||h?i.createElement(l.Provider,{value:g},i.createElement(a.A,{open:t||u||h,autoDestroy:!1,getContainer:n,autoLock:t||h},i.createElement(N,(0,r.A)({},e,{destroyOnClose:s,afterClose:function(){null==f||f(),m(!1)}})))):null};_.displayName="Dialog";const R=_},50848(e,t,n){"use strict";n.d(t,{A:()=>N});var r=n(89379),o=n(5544),a=n(45062),i=n(30981),l=n(96540),u=l.createContext(null),c=l.createContext({});const s=u;var f=n(64467),d=n(58168),p=n(46942),v=n.n(p),h=n(90754),m=n(16928),g=n(72065),y=n(80045),b=n(8719),A=["prefixCls","className","containerRef"];const w=function(e){var t=e.prefixCls,n=e.className,r=e.containerRef,o=(0,y.A)(e,A),a=l.useContext(c).panel,i=(0,b.xK)(a,r);return l.createElement("div",(0,d.A)({className:v()("".concat(t,"-content"),n),role:"dialog",ref:i},(0,g.A)(e,{aria:!0}),{"aria-modal":"true"},o))};var E=n(68210);function x(e){return"string"==typeof e&&String(Number(e))===e?((0,E.Ay)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var C={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function k(e,t){var n,a,i,u=e.prefixCls,c=e.open,p=e.placement,y=e.inline,b=e.push,A=e.forceRender,E=e.autoFocus,k=e.keyboard,S=e.classNames,N=e.rootClassName,_=e.rootStyle,R=e.zIndex,M=e.className,P=e.id,O=e.style,T=e.motion,D=e.width,I=e.height,F=e.children,L=e.mask,j=e.maskClosable,z=e.maskMotion,K=e.maskClassName,V=e.maskStyle,H=e.afterOpenChange,B=e.onClose,U=e.onMouseEnter,W=e.onMouseOver,$=e.onMouseLeave,q=e.onClick,Y=e.onKeyDown,X=e.onKeyUp,G=e.styles,Q=e.drawerRender,J=l.useRef(),Z=l.useRef(),ee=l.useRef();l.useImperativeHandle(t,function(){return J.current});l.useEffect(function(){var e;c&&E&&(null===(e=J.current)||void 0===e||e.focus({preventScroll:!0}))},[c]);var te=l.useState(!1),ne=(0,o.A)(te,2),re=ne[0],oe=ne[1],ae=l.useContext(s),ie=null!==(n=null!==(a=null===(i="boolean"==typeof b?b?{}:{distance:0}:b||{})||void 0===i?void 0:i.distance)&&void 0!==a?a:null==ae?void 0:ae.pushDistance)&&void 0!==n?n:180,le=l.useMemo(function(){return{pushDistance:ie,push:function(){oe(!0)},pull:function(){oe(!1)}}},[ie]);l.useEffect(function(){var e,t;c?null==ae||null===(e=ae.push)||void 0===e||e.call(ae):null==ae||null===(t=ae.pull)||void 0===t||t.call(ae)},[c]),l.useEffect(function(){return function(){var e;null==ae||null===(e=ae.pull)||void 0===e||e.call(ae)}},[]);var ue=l.createElement(h.Ay,(0,d.A)({key:"mask"},z,{visible:L&&c}),function(e,t){var n=e.className,o=e.style;return l.createElement("div",{className:v()("".concat(u,"-mask"),n,null==S?void 0:S.mask,K),style:(0,r.A)((0,r.A)((0,r.A)({},o),V),null==G?void 0:G.mask),onClick:j&&c?B:void 0,ref:t})}),ce="function"==typeof T?T(p):T,se={};if(re&&ie)switch(p){case"top":se.transform="translateY(".concat(ie,"px)");break;case"bottom":se.transform="translateY(".concat(-ie,"px)");break;case"left":se.transform="translateX(".concat(ie,"px)");break;default:se.transform="translateX(".concat(-ie,"px)")}"left"===p||"right"===p?se.width=x(D):se.height=x(I);var fe={onMouseEnter:U,onMouseOver:W,onMouseLeave:$,onClick:q,onKeyDown:Y,onKeyUp:X},de=l.createElement(h.Ay,(0,d.A)({key:"panel"},ce,{visible:c,forceRender:A,onVisibleChanged:function(e){null==H||H(e)},removeOnLeave:!1,leavedClassName:"".concat(u,"-content-wrapper-hidden")}),function(t,n){var o=t.className,a=t.style,i=l.createElement(w,(0,d.A)({id:P,containerRef:n,prefixCls:u,className:v()(M,null==S?void 0:S.content),style:(0,r.A)((0,r.A)({},O),null==G?void 0:G.content)},(0,g.A)(e,{aria:!0}),fe),F);return l.createElement("div",(0,d.A)({className:v()("".concat(u,"-content-wrapper"),null==S?void 0:S.wrapper,o),style:(0,r.A)((0,r.A)((0,r.A)({},se),a),null==G?void 0:G.wrapper)},(0,g.A)(e,{data:!0})),Q?Q(i):i)}),pe=(0,r.A)({},_);return R&&(pe.zIndex=R),l.createElement(s.Provider,{value:le},l.createElement("div",{className:v()(u,"".concat(u,"-").concat(p),N,(0,f.A)((0,f.A)({},"".concat(u,"-open"),c),"".concat(u,"-inline"),y)),style:pe,tabIndex:-1,ref:J,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case m.A.TAB:var r;if(t===m.A.TAB)if(n||document.activeElement!==ee.current){if(n&&document.activeElement===Z.current){var o;null===(o=ee.current)||void 0===o||o.focus({preventScroll:!0})}}else null===(r=Z.current)||void 0===r||r.focus({preventScroll:!0});break;case m.A.ESC:B&&k&&(e.stopPropagation(),B(e))}}},ue,l.createElement("div",{tabIndex:0,ref:Z,style:C,"aria-hidden":"true","data-sentinel":"start"}),de,l.createElement("div",{tabIndex:0,ref:ee,style:C,"aria-hidden":"true","data-sentinel":"end"})))}const S=l.forwardRef(k);const N=function(e){var t=e.open,n=void 0!==t&&t,u=e.prefixCls,s=void 0===u?"rc-drawer":u,f=e.placement,d=void 0===f?"right":f,p=e.autoFocus,v=void 0===p||p,h=e.keyboard,m=void 0===h||h,g=e.width,y=void 0===g?378:g,b=e.mask,A=void 0===b||b,w=e.maskClosable,E=void 0===w||w,x=e.getContainer,C=e.forceRender,k=e.afterOpenChange,N=e.destroyOnClose,_=e.onMouseEnter,R=e.onMouseOver,M=e.onMouseLeave,P=e.onClick,O=e.onKeyDown,T=e.onKeyUp,D=e.panelRef,I=l.useState(!1),F=(0,o.A)(I,2),L=F[0],j=F[1];var z=l.useState(!1),K=(0,o.A)(z,2),V=K[0],H=K[1];(0,i.A)(function(){H(!0)},[]);var B=!!V&&n,U=l.useRef(),W=l.useRef();(0,i.A)(function(){B&&(W.current=document.activeElement)},[B]);var $=l.useMemo(function(){return{panel:D}},[D]);if(!C&&!L&&!B&&N)return null;var q={onMouseEnter:_,onMouseOver:R,onMouseLeave:M,onClick:P,onKeyDown:O,onKeyUp:T},Y=(0,r.A)((0,r.A)({},e),{},{open:B,prefixCls:s,placement:d,autoFocus:v,keyboard:m,width:y,mask:A,maskClosable:E,inline:!1===x,afterOpenChange:function(e){var t,n;(j(e),null==k||k(e),e||!W.current||null!==(t=U.current)&&void 0!==t&&t.contains(W.current))||(null===(n=W.current)||void 0===n||n.focus({preventScroll:!0}))},ref:U},q);return l.createElement(c.Provider,{value:$},l.createElement(a.A,{open:B||C||L,autoDestroy:!1,getContainer:x,autoLock:A&&(B||L)},l.createElement(S,Y)))}},3497(e,t,n){"use strict";n.d(t,{A:()=>E});var r=n(58168),o=n(64467),a=n(5544),i=n(80045),l=n(62427),u=n(46942),c=n.n(u),s=n(8719),f=n(96540),d=n(16928),p=n(25371),v=d.A.ESC,h=d.A.TAB;const m=(0,f.forwardRef)(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=(0,f.useMemo)(function(){return"function"==typeof n?n():n},[n]),i=(0,s.K4)(t,(0,s.A9)(a));return f.createElement(f.Fragment,null,r&&f.createElement("div",{className:"".concat(o,"-arrow")}),f.cloneElement(a,{ref:(0,s.f3)(a)?i:void 0}))});var g={adjustX:1,adjustY:1},y=[0,0];const b={topLeft:{points:["bl","tl"],overflow:g,offset:[0,-4],targetOffset:y},top:{points:["bc","tc"],overflow:g,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:g,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:g,offset:[0,4],targetOffset:y},bottom:{points:["tc","bc"],overflow:g,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:g,offset:[0,4],targetOffset:y}};var A=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w(e,t){var n,u=e.arrow,d=void 0!==u&&u,g=e.prefixCls,y=void 0===g?"rc-dropdown":g,w=e.transitionName,E=e.animation,x=e.align,C=e.placement,k=void 0===C?"bottomLeft":C,S=e.placements,N=void 0===S?b:S,_=e.getPopupContainer,R=e.showAction,M=e.hideAction,P=e.overlayClassName,O=e.overlayStyle,T=e.visible,D=e.trigger,I=void 0===D?["hover"]:D,F=e.autoFocus,L=e.overlay,j=e.children,z=e.onVisibleChange,K=(0,i.A)(e,A),V=f.useState(),H=(0,a.A)(V,2),B=H[0],U=H[1],W="visible"in e?T:B,$=f.useRef(null),q=f.useRef(null),Y=f.useRef(null);f.useImperativeHandle(t,function(){return $.current});var X=function(e){U(e),null==z||z(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,i=f.useRef(!1),l=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},u=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),i.current=!0,0))},c=function(e){switch(e.keyCode){case v:l();break;case h:var t=!1;i.current||(t=u()),t?e.preventDefault():l()}};f.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&(0,p.A)(u,3),function(){window.removeEventListener("keydown",c),i.current=!1}):function(){i.current=!1}},[t])}({visible:W,triggerRef:Y,onVisibleChange:X,autoFocus:F,overlayRef:q});var G,Q,J,Z=function(){return f.createElement(m,{ref:q,overlay:L,prefixCls:y,arrow:d})},ee=f.cloneElement(j,{className:c()(null===(n=j.props)||void 0===n?void 0:n.className,W&&(G=e.openClassName,void 0!==G?G:"".concat(y,"-open"))),ref:(0,s.f3)(j)?(0,s.K4)(Y,(0,s.A9)(j)):void 0}),te=M;return te||-1===I.indexOf("contextMenu")||(te=["click"]),f.createElement(l.A,(0,r.A)({builtinPlacements:N},K,{prefixCls:y,ref:$,popupClassName:c()(P,(0,o.A)({},"".concat(y,"-show-arrow"),d)),popupStyle:O,action:I,showAction:R,hideAction:te,popupPlacement:k,popupAlign:x,popupTransitionName:w,popupAnimation:E,popupVisible:W,stretch:(Q=e.minOverlayWidthMatchTrigger,J=e.alignPoint,("minOverlayWidthMatchTrigger"in e?Q:!J)?"minWidth":""),popup:"function"==typeof L?Z:Z(),onPopupVisibleChange:X,onPopupClick:function(t){var n=e.onOverlayClick;U(!1),n&&n(t)},getPopupContainer:_}),ee)}const E=f.forwardRef(w)},93592(e,t,n){"use strict";n.d(t,{D0:()=>xe,_z:()=>w,Op:()=>De,B8:()=>Ce,EF:()=>E,Ay:()=>He,mN:()=>Oe,FH:()=>Ke});var r=n(96540),o=n(58168),a=n(80045),i=n(55041),l=n(10467),u=n(89379),c=n(60436),s=n(23029),f=n(92901),d=n(9417),p=n(85501),v=n(49640),h=n(64467),m=n(82546),g=n(43210),y=n(68210),b="RC_FORM_INTERNAL_HOOKS",A=function(){(0,y.Ay)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const w=r.createContext({getFieldValue:A,getFieldsValue:A,getFieldError:A,getFieldWarning:A,getFieldsError:A,isFieldsTouched:A,isFieldTouched:A,isFieldValidating:A,isFieldsValidating:A,resetFields:A,setFields:A,setFieldValue:A,setFieldsValue:A,validateFields:A,submit:A,getInternalHooks:function(){return A(),{dispatch:A,initEntityValue:A,registerField:A,useSubscribe:A,setInitialValues:A,destroyForm:A,setCallbacks:A,registerWatch:A,getFields:A,setValidateMessages:A,setPreserve:A,getInitialValue:A}}});const E=r.createContext(null);function x(e){return null==e?[]:Array.isArray(e)?e:[e]}var C=n(82284);function k(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var S=k(),N=n(73437),_=/%[sdj%]/g;function R(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function M(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=a)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}default:return e}}):e}function P(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e||"tel"===e}(t)||"string"!=typeof e||e))}function O(e,t,n){var r=0,o=e.length;!function a(i){if(i&&i.length)n(i);else{var l=r;r+=1,le.max?r.push(M(o.messages[c].max,e.fullField,e.max)):i&&l&&(ue.max)&&r.push(M(o.messages[c].range,e.fullField,e.min,e.max))};const V=function(e,t,n,r,o,a){!e.required||n.hasOwnProperty(e.field)&&!P(t,a||e.type)||r.push(M(o.messages.required,e.fullField))};var H;const B=function(){if(H)return H;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),i=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(a,"$")),c=function(e){return e&&e.exact?i:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(a).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?u:new RegExp("".concat(t(e)).concat(a).concat(t(e)),"g")};var s=c.v4().source,f=c.v6().source,d="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(s,"|").concat(f,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return H=new RegExp("(?:^".concat(d,"$)"),"i")};(Object.getOwnPropertyDescriptor(B,"name")||{}).writable||Object.defineProperty(B,"name",{value:"default",configurable:!0});var U=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,W=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,$=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,q={integer:function(e){return q.number(e)&&parseInt(e,10)===e},float:function(e){return q.number(e)&&!q.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(0,C.A)(e)&&!q.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(U)},tel:function(e){return"string"==typeof e&&e.length<=32&&!!e.match(W)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(B())},hex:function(e){return"string"==typeof e&&!!e.match($)}};const Y=function(e,t,n,r,o){if(e.required&&void 0===t)V(e,t,n,r,o);else{var a=e.type;["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(a)>-1?q[a](t)||r.push(M(o.messages.types[a],e.fullField,e.type)):a&&(0,C.A)(t)!==e.type&&r.push(M(o.messages.types[a],e.fullField,e.type))}};const X={required:V,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(M(o.messages.whitespace,e.fullField))},type:Y,range:K,enum:j,pattern:z};const G=function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":(0,C.A)(t);X.required(e,t,r,a,o,i),n(a)};const Q=function(e,t,n,r,o){var a=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(P(t,a)&&!e.required)return n();X.required(e,t,r,i,o,a),P(t,a)||X.type(e,t,r,i,o)}n(i)},J={string:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(P(t,"string")&&!e.required)return n();X.required(e,t,r,a,o,"string"),P(t,"string")||(X.type(e,t,r,a,o),X.range(e,t,r,a,o),X.pattern(e,t,r,a,o),!0===e.whitespace&&X.whitespace(e,t,r,a,o))}n(a)},method:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(P(t)&&!e.required)return n();X.required(e,t,r,a,o),void 0!==t&&X.type(e,t,r,a,o)}n(a)},number:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),P(t)&&!e.required)return n();X.required(e,t,r,a,o),void 0!==t&&(X.type(e,t,r,a,o),X.range(e,t,r,a,o))}n(a)},boolean:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(P(t)&&!e.required)return n();X.required(e,t,r,a,o),void 0!==t&&X.type(e,t,r,a,o)}n(a)},regexp:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(P(t)&&!e.required)return n();X.required(e,t,r,a,o),P(t)||X.type(e,t,r,a,o)}n(a)},integer:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(P(t)&&!e.required)return n();X.required(e,t,r,a,o),void 0!==t&&(X.type(e,t,r,a,o),X.range(e,t,r,a,o))}n(a)},float:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(P(t)&&!e.required)return n();X.required(e,t,r,a,o),void 0!==t&&(X.type(e,t,r,a,o),X.range(e,t,r,a,o))}n(a)},array:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();X.required(e,t,r,a,o,"array"),null!=t&&(X.type(e,t,r,a,o),X.range(e,t,r,a,o))}n(a)},object:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(P(t)&&!e.required)return n();X.required(e,t,r,a,o),void 0!==t&&X.type(e,t,r,a,o)}n(a)},enum:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(P(t)&&!e.required)return n();X.required(e,t,r,a,o),void 0!==t&&X.enum(e,t,r,a,o)}n(a)},pattern:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(P(t,"string")&&!e.required)return n();X.required(e,t,r,a,o),P(t,"string")||X.pattern(e,t,r,a,o)}n(a)},date:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(P(t,"date")&&!e.required)return n();var i;if(X.required(e,t,r,a,o),!P(t,"date"))i=t instanceof Date?t:new Date(t),X.type(e,i,r,a,o),i&&X.range(e,i.getTime(),r,a,o)}n(a)},url:Q,hex:Q,email:Q,tel:Q,required:G,any:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(P(t)&&!e.required)return n();X.required(e,t,r,a,o)}n(a)}};var Z=function(){function e(t){(0,s.A)(this,e),(0,h.A)(this,"rules",null),(0,h.A)(this,"_messages",S),this.define(t)}return(0,f.A)(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,C.A)(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(e){return e&&(this._messages=F(k(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(a=o,o={}),!this.rules||0===Object.keys(this.rules).length)return a&&a(null,r),Promise.resolve(r);if(o.messages){var i=this.messages();i===S&&(i=k()),F(i,o.messages),o.messages=i}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach(function(e){var o=n.rules[e],a=r[e];o.forEach(function(o){var i=o;"function"==typeof i.transform&&(r===t&&(r=(0,u.A)({},r)),null!=(a=r[e]=i.transform(a))&&(i.type=i.type||(Array.isArray(a)?"array":(0,C.A)(a)))),(i="function"==typeof i?{validator:i}:(0,u.A)({},i)).validator=n.getValidationMethod(i),i.validator&&(i.field=e,i.fullField=i.fullField||e,i.type=n.getType(i),l[e]=l[e]||[],l[e].push({rule:i,value:a,source:r,field:e}))})});var s={};return D(l,o,function(t,n){var a,i=t.rule,l=!("object"!==i.type&&"array"!==i.type||"object"!==(0,C.A)(i.fields)&&"object"!==(0,C.A)(i.defaultField));function f(e,t){return(0,u.A)((0,u.A)({},t),{},{fullField:"".concat(i.fullField,".").concat(e),fullFields:i.fullFields?[].concat((0,c.A)(i.fullFields),[e]):[e]})}function d(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],d=Array.isArray(a)?a:[a];!o.suppressWarning&&d.length&&e.warning("async-validator:",d),d.length&&void 0!==i.message&&null!==i.message&&(d=[].concat(i.message));var p=d.map(I(i,r));if(o.first&&p.length)return s[i.field]=1,n(p);if(l){if(i.required&&!t.value)return void 0!==i.message?p=[].concat(i.message).map(I(i,r)):o.error&&(p=[o.error(i,M(o.messages.required,i.field))]),n(p);var v={};i.defaultField&&Object.keys(t.value).map(function(e){v[e]=i.defaultField}),v=(0,u.A)((0,u.A)({},v),t.rule.fields);var h={};Object.keys(v).forEach(function(e){var t=v[e],n=Array.isArray(t)?t:[t];h[e]=n.map(f.bind(null,e))});var m=new e(h);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,function(e){var t=[];p&&p.length&&t.push.apply(t,(0,c.A)(p)),e&&e.length&&t.push.apply(t,(0,c.A)(e)),n(t.length?t:null)})}else n(p)}if(l=l&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)a=i.asyncValidator(i,t.value,d,t.source,o);else if(i.validator){try{a=i.validator(i,t.value,d,t.source,o)}catch(e){var p,v;null===(p=(v=console).error)||void 0===p||p.call(v,e),o.suppressValidatorError||setTimeout(function(){throw e},0),d(e.message)}!0===a?d():!1===a?d("function"==typeof i.message?i.message(i.fullField||i.field):i.message||"".concat(i.fullField||i.field," fails")):a instanceof Array?d(a):a instanceof Error&&d(a.message)}a&&a.then&&a.then(function(){return d()},function(e){return d(e)})},function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,(0,c.A)(e)):t.push(e)}for(var i=0;i0)){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return le("".concat(t,".").concat(n),e,d,a,l)}));case 21:return g=e.sent,e.abrupt("return",g.reduce(function(e,t){return[].concat((0,c.A)(e),(0,c.A)(t))},[]));case 23:return y=(0,u.A)((0,u.A)({},o),{},{name:t,enum:(o.enum||[]).join(", ")},l),b=m.map(function(e){return"string"==typeof e?ae(e,y):e}),e.abrupt("return",b);case 26:case"end":return e.stop()}},e,null,[[10,15]])})),ue.apply(this,arguments)}function ce(e,t,n,r,o,a){var c,s=e.join("."),f=n.map(function(e,t){var n=e.validator,r=(0,u.A)((0,u.A)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,a=n(e,t,function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return me(t,e,n)})}function me(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every(function(t,n){return e[n]===t}))}function ge(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,C.A)(t.target)&&e in t.target?t.target[e]:t}function ye(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat((0,c.A)(e.slice(0,n)),[o],(0,c.A)(e.slice(n,t)),(0,c.A)(e.slice(t+1,r))):a<0?[].concat((0,c.A)(e.slice(0,t)),(0,c.A)(e.slice(t+1,n+1)),[o],(0,c.A)(e.slice(n+1,r))):e}var be=["name"],Ae=[];function we(e,t,n,r,o,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var Ee=function(e){(0,p.A)(n,e);var t=(0,v.A)(n);function n(e){var o;((0,s.A)(this,n),o=t.call(this,e),(0,h.A)((0,d.A)(o),"state",{resetCount:0}),(0,h.A)((0,d.A)(o),"cancelRegisterFunc",null),(0,h.A)((0,d.A)(o),"mounted",!1),(0,h.A)((0,d.A)(o),"touched",!1),(0,h.A)((0,d.A)(o),"dirty",!1),(0,h.A)((0,d.A)(o),"validatePromise",void 0),(0,h.A)((0,d.A)(o),"prevValidating",void 0),(0,h.A)((0,d.A)(o),"errors",Ae),(0,h.A)((0,d.A)(o),"warnings",Ae),(0,h.A)((0,d.A)(o),"cancelRegister",function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,pe(r)),o.cancelRegisterFunc=null}),(0,h.A)((0,d.A)(o),"getNamePath",function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName,r=void 0===n?[]:n;return void 0!==t?[].concat((0,c.A)(r),(0,c.A)(t)):[]}),(0,h.A)((0,d.A)(o),"getRules",function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map(function(e){return"function"==typeof e?e(r):e})}),(0,h.A)((0,d.A)(o),"refresh",function(){o.mounted&&o.setState(function(e){return{resetCount:e.resetCount+1}})}),(0,h.A)((0,d.A)(o),"metaCache",null),(0,h.A)((0,d.A)(o),"triggerMetaEvent",function(e){var t=o.props.onMetaChange;if(t){var n=(0,u.A)((0,u.A)({},o.getMeta()),{},{destroy:e});(0,g.A)(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null}),(0,h.A)((0,d.A)(o),"onStoreChange",function(e,t,n){var r=o.props,a=r.shouldUpdate,i=r.dependencies,l=void 0===i?[]:i,u=r.onReset,c=n.store,s=o.getNamePath(),f=o.getValue(e),d=o.getValue(c),p=t&&he(t,s);switch("valueUpdate"!==n.type||"external"!==n.source||(0,g.A)(f,d)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Ae,o.warnings=Ae,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Ae,o.warnings=Ae,o.triggerMetaEvent(),null==u||u(),void o.refresh();break;case"remove":if(a&&we(a,e,c,f,d,n))return void o.reRender();break;case"setField":var v=n.data;if(p)return"touched"in v&&(o.touched=v.touched),"validating"in v&&!("originRCField"in v)&&(o.validatePromise=v.validating?Promise.resolve([]):null),"errors"in v&&(o.errors=v.errors||Ae),"warnings"in v&&(o.warnings=v.warnings||Ae),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in v&&he(t,s,!0))return void o.reRender();if(a&&!s.length&&we(a,e,c,f,d,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(pe).some(function(e){return he(n.relatedFields,e)}))return void o.reRender();break;default:if(p||(!l.length||s.length||a)&&we(a,e,c,f,d,n))return void o.reRender()}!0===a&&o.reRender()}),(0,h.A)((0,d.A)(o),"validateRules",function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},a=r.triggerName,u=r.validateOnly,s=void 0!==u&&u,f=Promise.resolve().then((0,l.A)((0,i.A)().mark(function r(){var l,u,s,d,p,v,h;return(0,i.A)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(l=o.props,u=l.validateFirst,s=void 0!==u&&u,d=l.messageVariables,p=l.validateDebounce,v=o.getRules(),a&&(v=v.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||x(t).includes(a)})),!p||!a){r.next=10;break}return r.next=8,new Promise(function(e){setTimeout(e,p)});case 8:if(o.validatePromise===f){r.next=10;break}return r.abrupt("return",[]);case 10:return(h=ce(t,n,v,e,s,d)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ae;if(o.validatePromise===f){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,o=e.errors,a=void 0===o?Ae:o;t?r.push.apply(r,(0,c.A)(a)):n.push.apply(n,(0,c.A)(a))}),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}}),r.abrupt("return",h);case 13:case"end":return r.stop()}},r)})));return s||(o.validatePromise=f,o.dirty=!0,o.errors=Ae,o.warnings=Ae,o.triggerMetaEvent(),o.reRender()),f}),(0,h.A)((0,d.A)(o),"isFieldValidating",function(){return!!o.validatePromise}),(0,h.A)((0,d.A)(o),"isFieldTouched",function(){return o.touched}),(0,h.A)((0,d.A)(o),"isFieldDirty",function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(b).getInitialValue)(o.getNamePath())}),(0,h.A)((0,d.A)(o),"getErrors",function(){return o.errors}),(0,h.A)((0,d.A)(o),"getWarnings",function(){return o.warnings}),(0,h.A)((0,d.A)(o),"isListField",function(){return o.props.isListField}),(0,h.A)((0,d.A)(o),"isList",function(){return o.props.isList}),(0,h.A)((0,d.A)(o),"isPreserve",function(){return o.props.preserve}),(0,h.A)((0,d.A)(o),"getMeta",function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}}),(0,h.A)((0,d.A)(o),"getOnlyChild",function(e){if("function"==typeof e){var t=o.getMeta();return(0,u.A)((0,u.A)({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=(0,m.A)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),(0,h.A)((0,d.A)(o),"getValue",function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return(0,de.A)(e||t(!0),n)}),(0,h.A)((0,d.A)(o),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,a=t.validateTrigger,i=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,f=t.fieldContext,d=void 0!==a?a:f.validateTrigger,p=o.getNamePath(),v=f.getInternalHooks,m=f.getFieldsValue,g=v(b).dispatch,y=o.getValue(),A=s||function(e){return(0,h.A)({},c,e)},w=e[r],E=void 0!==n?A(y):{};var C=(0,u.A)((0,u.A)({},e),E);return C[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(d.keys=[].concat((0,c.A)(d.keys.slice(0,t)),[d.id],(0,c.A)(d.keys.slice(t))),a([].concat((0,c.A)(n.slice(0,t)),[e],(0,c.A)(n.slice(t))))):(d.keys=[].concat((0,c.A)(d.keys),[d.id]),a([].concat((0,c.A)(n),[e]))),d.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(d.keys=d.keys.filter(function(e,t){return!n.has(t)}),a(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(d.keys=ye(d.keys,e,t),a(ye(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),o(f.map(function(e,t){var n=d.keys[t];return void 0===n&&(d.keys[t]=d.id,n=d.keys[t],d.id+=1),{name:t,key:n,isListField:!0}}),u,t)})))};var ke=n(5544);var Se="__@field_split__";function Ne(e){return e.map(function(e){return"".concat((0,C.A)(e),":").concat(e)}).join(Se)}var _e=function(){function e(){(0,s.A)(this,e),(0,h.A)(this,"kvs",new Map)}return(0,f.A)(e,[{key:"set",value:function(e,t){this.kvs.set(Ne(e),t)}},{key:"get",value:function(e){return this.kvs.get(Ne(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Ne(e))}},{key:"map",value:function(e){return(0,c.A)(this.kvs.entries()).map(function(t){var n=(0,ke.A)(t,2),r=n[0],o=n[1],a=r.split(Se);return e({key:a.map(function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,ke.A)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}();const Re=_e;var Me=["name"],Pe=(0,f.A)(function e(t){var n=this;(0,s.A)(this,e),(0,h.A)(this,"formHooked",!1),(0,h.A)(this,"forceRootUpdate",void 0),(0,h.A)(this,"subscribable",!0),(0,h.A)(this,"store",{}),(0,h.A)(this,"fieldEntities",[]),(0,h.A)(this,"initialValues",{}),(0,h.A)(this,"callbacks",{}),(0,h.A)(this,"validateMessages",null),(0,h.A)(this,"preserve",null),(0,h.A)(this,"lastValidatePromise",null),(0,h.A)(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),(0,h.A)(this,"getInternalHooks",function(e){return e===b?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,y.Ay)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),(0,h.A)(this,"useSubscribe",function(e){n.subscribable=e}),(0,h.A)(this,"prevWithoutPreserves",null),(0,h.A)(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,o=(0,re.h)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;o=(0,re.A)(o,n,(0,de.A)(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),(0,h.A)(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new Re;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),(0,h.A)(this,"getInitialValue",function(e){var t=(0,de.A)(n.initialValues,e);return e.length?(0,re.h)(t):t}),(0,h.A)(this,"setCallbacks",function(e){n.callbacks=e}),(0,h.A)(this,"setValidateMessages",function(e){n.validateMessages=e}),(0,h.A)(this,"setPreserve",function(e){n.preserve=e}),(0,h.A)(this,"watchList",[]),(0,h.A)(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),(0,h.A)(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),(0,h.A)(this,"timeoutId",null),(0,h.A)(this,"warningUnhooked",function(){0}),(0,h.A)(this,"updateStore",function(e){n.store=e}),(0,h.A)(this,"getFieldEntities",function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),(0,h.A)(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Re;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),(0,h.A)(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=pe(e);return t.get(n)||{INVALIDATE_NAME_PATH:pe(e)}})}),(0,h.A)(this,"getFieldsValue",function(e,t){var r,o,a;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===(0,C.A)(e)&&(a=e.strict,o=e.filter),!0===r&&!o)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return i.forEach(function(e){var t,n,i,u,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(a){if(null!==(i=(u=e).isList)&&void 0!==i&&i.call(u))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var s="getMeta"in e?e.getMeta():null;o(s)&&l.push(c)}else l.push(c)}),ve(n.store,l.map(pe))}),(0,h.A)(this,"getFieldValue",function(e){n.warningUnhooked();var t=pe(e);return(0,de.A)(n.store,t)}),(0,h.A)(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:pe(e[n]),errors:[],warnings:[]}})}),(0,h.A)(this,"getFieldError",function(e){n.warningUnhooked();var t=pe(e);return n.getFieldsError([t])[0].errors}),(0,h.A)(this,"getFieldWarning",function(e){n.warningUnhooked();var t=pe(e);return n.getFieldsError([t])[0].warnings}),(0,h.A)(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=new Re,r=n.getFieldEntities(!0);r.forEach(function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}});var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach(function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,(0,c.A)((0,c.A)(r).map(function(e){return e.entity})))})):o=r,o.forEach(function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))(0,y.Ay)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var a=t.get(o);if(a&&a.size>1)(0,y.Ay)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(a){var i=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==i||n.updateStore((0,re.A)(n.store,o,(0,c.A)(a)[0].value))}}}})}),(0,h.A)(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore((0,re.h)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(pe);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore((0,re.A)(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),(0,h.A)(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=(0,a.A)(e,Me),l=pe(o);r.push(l),"value"in i&&n.updateStore((0,re.A)(n.store,l,i.value)),n.notifyObservers(t,[l],{type:"setField",data:e})}),n.notifyWatch(r)}),(0,h.A)(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=e.getMeta(),o=(0,u.A)((0,u.A)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o})}),(0,h.A)(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===(0,de.A)(n.store,r)&&n.updateStore((0,re.A)(n.store,r,t))}}),(0,h.A)(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null==t||t}),(0,h.A)(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||a.length>1)){var i=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==i&&n.fieldEntities.every(function(e){return!me(e.getNamePath(),t)})){var l=n.store;n.updateStore((0,re.A)(l,t,i,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}}),(0,h.A)(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,a=e.triggerName;n.validateFields([o],{triggerName:a})}}),(0,h.A)(this,"notifyObservers",function(e,t,r){if(n.subscribable){var o=(0,u.A)((0,u.A)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()}),(0,h.A)(this,"triggerDependenciesUpdate",function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,c.A)(r))}),r}),(0,h.A)(this,"updateValue",function(e,t){var r=pe(e),o=n.store;n.updateStore((0,re.A)(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var a=n.triggerDependenciesUpdate(o,r),i=n.callbacks.onValuesChange;i&&i(ve(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat((0,c.A)(a)))}),(0,h.A)(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=(0,re.h)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),(0,h.A)(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),(0,h.A)(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],o=new Re;n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=pe(t);o.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})});return function e(n){(o.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}})}(e),r}),(0,h.A)(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var a=new Re;t.forEach(function(e){var t=e.name,n=e.errors;a.set(t,n)}),o.forEach(function(e){e.errors=a.get(e.name)||e.errors})}var i=o.filter(function(t){var n=t.name;return he(e,n)});i.length&&r(i,o)}}),(0,h.A)(this,"validateFields",function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var a=!!r,i=a?r.map(pe):[],l=[],s=String(Date.now()),f=new Set,d=o||{},p=d.recursive,v=d.dirty;n.getFieldEntities(!0).forEach(function(e){if(a||i.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!v||e.isFieldDirty())){var t=e.getNamePath();if(f.add(t.join(s)),!a||he(i,t,p)){var r=e.validateRules((0,u.A)({validateMessages:(0,u.A)((0,u.A)({},ne),n.validateMessages)},o));l.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,(0,c.A)(n)):r.push.apply(r,(0,c.A)(n))}),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}}});var h=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(e,i){e.catch(function(e){return t=!0,e}).then(function(e){n-=1,r[i]=e,n>0||(t&&a(r),o(r))})})}):Promise.resolve([])}(l);n.lastValidatePromise=h,h.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var m=h.then(function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==h})});m.catch(function(e){return e});var g=i.filter(function(e){return f.has(e.join(s))});return n.triggerOnFieldsChange(g),m}),(0,h.A)(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});const Oe=function(e){var t=r.useRef(),n=r.useState({}),o=(0,ke.A)(n,2)[1];if(!t.current)if(e)t.current=e;else{var a=new Pe(function(){o({})});t.current=a.getForm()}return[t.current]};var Te=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),De=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,a=e.children,i=r.useContext(Te),l=r.useRef({});return r.createElement(Te.Provider,{value:(0,u.A)((0,u.A)({},i),{},{validateMessages:(0,u.A)((0,u.A)({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=(0,u.A)((0,u.A)({},l.current),{},(0,h.A)({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=(0,u.A)({},l.current);delete t[e],l.current=t,i.unregisterForm(e)}})},a)};const Ie=Te;var Fe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const Le=function(e,t){var n=e.name,i=e.initialValues,l=e.fields,s=e.form,f=e.preserve,d=e.children,p=e.component,v=void 0===p?"form":p,h=e.validateMessages,m=e.validateTrigger,g=void 0===m?"onChange":m,y=e.onValuesChange,A=e.onFieldsChange,x=e.onFinish,k=e.onFinishFailed,S=e.clearOnDestroy,N=(0,a.A)(e,Fe),_=r.useRef(null),R=r.useContext(Ie),M=Oe(s),P=(0,ke.A)(M,1)[0],O=P.getInternalHooks(b),T=O.useSubscribe,D=O.setInitialValues,I=O.setCallbacks,F=O.setValidateMessages,L=O.setPreserve,j=O.destroyForm;r.useImperativeHandle(t,function(){return(0,u.A)((0,u.A)({},P),{},{nativeElement:_.current})}),r.useEffect(function(){return R.registerForm(n,P),function(){R.unregisterForm(n)}},[R,P,n]),F((0,u.A)((0,u.A)({},R.validateMessages),h)),I({onValuesChange:y,onFieldsChange:function(e){if(R.triggerFormChange(n,e),A){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;oH});var r=n(58168),o=n(89379),a=n(64467),i=n(5544),l=n(82284),u=n(80045),c=n(46942),s=n.n(c);function f(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}var d=n(12533),p=n(96540),v=n(33766),h=n(69916),m=n(16928),g=n(45062),y=n(90754),b=p.createContext(null);const A=function(e){var t=e.visible,n=e.maskTransitionName,r=e.getContainer,i=e.prefixCls,l=e.rootClassName,u=e.icons,c=e.countRender,f=e.showSwitch,d=e.showProgress,v=e.current,h=e.transform,A=e.count,w=e.scale,E=e.minScale,x=e.maxScale,C=e.closeIcon,k=e.onActive,S=e.onClose,N=e.onZoomIn,_=e.onZoomOut,R=e.onRotateRight,M=e.onRotateLeft,P=e.onFlipX,O=e.onFlipY,T=e.onReset,D=e.toolbarRender,I=e.zIndex,F=e.image,L=(0,p.useContext)(b),j=u.rotateLeft,z=u.rotateRight,K=u.zoomIn,V=u.zoomOut,H=u.close,B=u.left,U=u.right,W=u.flipX,$=u.flipY,q="".concat(i,"-operations-operation");p.useEffect(function(){var e=function(e){e.keyCode===m.A.ESC&&S()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[t]);var Y=function(e,t){e.preventDefault(),e.stopPropagation(),k(t)},X=p.useCallback(function(e){var t=e.type,n=e.disabled,r=e.onClick,o=e.icon;return p.createElement("div",{key:t,className:s()(q,"".concat(i,"-operations-operation-").concat(t),(0,a.A)({},"".concat(i,"-operations-operation-disabled"),!!n)),onClick:r},o)},[q,i]),G=f?X({icon:B,onClick:function(e){return Y(e,-1)},type:"prev",disabled:0===v}):void 0,Q=f?X({icon:U,onClick:function(e){return Y(e,1)},type:"next",disabled:v===A-1}):void 0,J=X({icon:$,onClick:O,type:"flipY"}),Z=X({icon:W,onClick:P,type:"flipX"}),ee=X({icon:j,onClick:M,type:"rotateLeft"}),te=X({icon:z,onClick:R,type:"rotateRight"}),ne=X({icon:V,onClick:_,type:"zoomOut",disabled:w<=E}),re=X({icon:K,onClick:N,type:"zoomIn",disabled:w===x}),oe=p.createElement("div",{className:"".concat(i,"-operations")},J,Z,ee,te,ne,re);return p.createElement(y.Ay,{visible:t,motionName:n},function(e){var t=e.className,n=e.style;return p.createElement(g.A,{open:!0,getContainer:null!=r?r:document.body},p.createElement("div",{className:s()("".concat(i,"-operations-wrapper"),t,l),style:(0,o.A)((0,o.A)({},n),{},{zIndex:I})},null===C?null:p.createElement("button",{className:"".concat(i,"-close"),onClick:S},C||H),f&&p.createElement(p.Fragment,null,p.createElement("div",{className:s()("".concat(i,"-switch-left"),(0,a.A)({},"".concat(i,"-switch-left-disabled"),0===v)),onClick:function(e){return Y(e,-1)}},B),p.createElement("div",{className:s()("".concat(i,"-switch-right"),(0,a.A)({},"".concat(i,"-switch-right-disabled"),v===A-1)),onClick:function(e){return Y(e,1)}},U)),p.createElement("div",{className:"".concat(i,"-footer")},d&&p.createElement("div",{className:"".concat(i,"-progress")},c?c(v+1,A):p.createElement("bdi",null,"".concat(v+1," / ").concat(A))),D?D(oe,(0,o.A)((0,o.A)({icons:{prevIcon:G,nextIcon:Q,flipYIcon:J,flipXIcon:Z,rotateLeftIcon:ee,rotateRightIcon:te,zoomOutIcon:ne,zoomInIcon:re},actions:{onActive:k,onFlipY:O,onFlipX:P,onRotateLeft:M,onRotateRight:R,onZoomOut:_,onZoomIn:N,onReset:T,onClose:S},transform:h},L?{current:v,total:A}:{}),{},{image:F})):oe)))})};var w=n(43210),E=n(25371),x={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};var C=n(68210);function k(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return(0,a.A)({},e,i);if(t<0&&or)return(0,a.A)({},e,t<0?i:-i);return{}}function S(e,t,n,r){var a=f(),i=a.width,l=a.height,u=null;return e<=i&&t<=l?u={x:0,y:0}:(e>i||t>l)&&(u=(0,o.A)((0,o.A)({},k("x",n,e,i)),k("y",r,t,l))),u}function N(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,o=(0,p.useState)(n?"loading":"normal"),a=(0,i.A)(o,2),l=a[0],u=a[1],c=(0,p.useRef)(!1),s="error"===l;(0,p.useEffect)(function(){var e=!0;return function(e){return new Promise(function(t){if(e){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}else t(!1)})}(t).then(function(t){!t&&e&&u("error")}),function(){e=!1}},[t]),(0,p.useEffect)(function(){n&&!c.current?u("loading"):s&&u("normal")},[t]);var f=function(){u("normal")};return[function(e){c.current=!1,"loading"===l&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,f())},s&&r?{src:r}:{onLoad:f,src:t},l]}function _(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function R(e,t,n,r,a,l,u){var c=a.rotate,s=a.scale,f=a.x,d=a.y,v=(0,p.useState)(!1),m=(0,i.A)(v,2),g=m[0],y=m[1],b=(0,p.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),A=function(e){b.current=(0,o.A)((0,o.A)({},b.current),e)};return(0,p.useEffect)(function(){var e;return n&&t&&(e=(0,h.A)(window,"touchmove",function(e){return e.preventDefault()},{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}},[n,t]),{isTouching:g,onTouchStart:function(e){if(t){e.stopPropagation(),y(!0);var n=e.touches,r=void 0===n?[]:n;r.length>1?A({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):A({point1:{x:r[0].clientX-f,y:r[0].clientY-d},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=b.current,o=r.point1,a=r.point2,c=r.eventType;if(n.length>1&&"touchZoom"===c){var s={x:n[0].clientX,y:n[0].clientY},f={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,r){var o=_(e,n),a=_(t,r);if(0===o&&0===a)return[e.x,e.y];var i=o/(o+a);return[e.x+i*(t.x-e.x),e.y+i*(t.y-e.y)]}(o,a,s,f),p=(0,i.A)(d,2),v=p[0],h=p[1],m=_(s,f)/_(o,a);u(m,"touchZoom",v,h,!0),A({point1:s,point2:f,eventType:"touchZoom"})}else"move"===c&&(l({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),A({eventType:"move"}))},onTouchEnd:function(){if(n){if(g&&y(!1),A({eventType:"none"}),r>s)return l({x:0,y:0,scale:r},"touchZoom");var t=e.current.offsetWidth*s,a=e.current.offsetHeight*s,i=e.current.getBoundingClientRect(),u=i.left,f=i.top,d=c%180!=0,p=S(d?a:t,d?t:a,u,f);p&&l((0,o.A)({},p),"dragRebound")}}}}var M=["fallback","src","imgRef"],P=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],O=function(e){var t=e.fallback,n=e.src,o=e.imgRef,a=(0,u.A)(e,M),l=N({src:n,fallback:t}),c=(0,i.A)(l,2),s=c[0],f=c[1];return p.createElement("img",(0,r.A)({ref:function(e){o.current=e,s(e)}},a,f))};const T=function(e){var t=e.prefixCls,n=e.src,l=e.alt,c=e.imageInfo,d=e.fallback,g=e.movable,y=void 0===g||g,k=e.onClose,N=e.visible,_=e.icons,M=void 0===_?{}:_,T=e.rootClassName,D=e.closeIcon,I=e.getContainer,F=e.current,L=void 0===F?0:F,j=e.count,z=void 0===j?1:j,K=e.countRender,V=e.scaleStep,H=void 0===V?.5:V,B=e.minScale,U=void 0===B?1:B,W=e.maxScale,$=void 0===W?50:W,q=e.transitionName,Y=void 0===q?"zoom":q,X=e.maskTransitionName,G=void 0===X?"fade":X,Q=e.imageRender,J=e.imgCommonProps,Z=e.toolbarRender,ee=e.onTransform,te=e.onChange,ne=(0,u.A)(e,P),re=(0,p.useRef)(),oe=(0,p.useContext)(b),ae=oe&&z>1,ie=oe&&z>=1,le=(0,p.useState)(!0),ue=(0,i.A)(le,2),ce=ue[0],se=ue[1],fe=function(e,t,n,r){var a=(0,p.useRef)(null),l=(0,p.useRef)([]),u=(0,p.useState)(x),c=(0,i.A)(u,2),s=c[0],d=c[1],v=function(e,t){null===a.current&&(l.current=[],a.current=(0,E.A)(function(){d(function(e){var n=e;return l.current.forEach(function(e){n=(0,o.A)((0,o.A)({},n),e)}),a.current=null,null==r||r({transform:n,action:t}),n})})),l.current.push((0,o.A)((0,o.A)({},s),e))};return{transform:s,resetTransform:function(e){d(x),(0,w.A)(x,s)||null==r||r({transform:x,action:e})},updateTransform:v,dispatchZoomChange:function(r,o,a,i,l){var u=e.current,c=u.width,d=u.height,p=u.offsetWidth,h=u.offsetHeight,m=u.offsetLeft,g=u.offsetTop,y=r,b=s.scale*r;b>n?(b=n,y=n/s.scale):b0&&(o=1/o),u(o,"wheel",e.clientX,e.clientY)}}}}(re,y,N,H,de,ve,he),ge=me.isMoving,ye=me.onMouseDown,be=me.onWheel,Ae=R(re,y,N,U,de,ve,he),we=Ae.isTouching,Ee=Ae.onTouchStart,xe=Ae.onTouchMove,Ce=Ae.onTouchEnd,ke=de.rotate,Se=de.scale,Ne=s()((0,a.A)({},"".concat(t,"-moving"),ge));(0,p.useEffect)(function(){ce||se(!0)},[ce]);var _e=function(e){var t=L+e;!Number.isInteger(t)||t<0||t>z-1||(se(!1),pe(e<0?"prev":"next"),null==te||te(t,L))},Re=function(e){N&&ae&&(e.keyCode===m.A.LEFT?_e(-1):e.keyCode===m.A.RIGHT&&_e(1))};(0,p.useEffect)(function(){var e=(0,h.A)(window,"keydown",Re,!1);return function(){e.remove()}},[N,ae,L]);var Me=p.createElement(O,(0,r.A)({},J,{width:e.width,height:e.height,imgRef:re,className:"".concat(t,"-img"),alt:l,style:{transform:"translate3d(".concat(de.x,"px, ").concat(de.y,"px, 0) scale3d(").concat(de.flipX?"-":"").concat(Se,", ").concat(de.flipY?"-":"").concat(Se,", 1) rotate(").concat(ke,"deg)"),transitionDuration:(!ce||we)&&"0s"},fallback:d,src:n,onWheel:be,onMouseDown:ye,onDoubleClick:function(e){N&&(1!==Se?ve({x:0,y:0,scale:1},"doubleClick"):he(1+H,"doubleClick",e.clientX,e.clientY))},onTouchStart:Ee,onTouchMove:xe,onTouchEnd:Ce,onTouchCancel:Ce})),Pe=(0,o.A)({url:n,alt:l},c);return p.createElement(p.Fragment,null,p.createElement(v.A,(0,r.A)({transitionName:Y,maskTransitionName:G,closable:!1,keyboard:!0,prefixCls:t,onClose:k,visible:N,classNames:{wrapper:Ne},rootClassName:T,getContainer:I},ne,{afterClose:function(){pe("close")}}),p.createElement("div",{className:"".concat(t,"-img-wrapper")},Q?Q(Me,(0,o.A)({transform:de,image:Pe},oe?{current:L}:{})):Me)),p.createElement(A,{visible:N,transform:de,maskTransitionName:G,closeIcon:D,getContainer:I,prefixCls:t,rootClassName:T,icons:M,countRender:K,showSwitch:ae,showProgress:ie,current:L,count:z,scale:Se,minScale:U,maxScale:$,toolbarRender:Z,onActive:_e,onZoomIn:function(){he(1+H,"zoomIn")},onZoomOut:function(){he(1/(1+H),"zoomOut")},onRotateRight:function(){ve({rotate:ke+90},"rotateRight")},onRotateLeft:function(){ve({rotate:ke-90},"rotateLeft")},onFlipX:function(){ve({flipX:!de.flipX},"flipX")},onFlipY:function(){ve({flipY:!de.flipY},"flipY")},onClose:k,onReset:function(){pe("reset")},zIndex:void 0!==ne.zIndex?ne.zIndex+1:void 0,image:Pe}))};var D=n(60436),I=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var F=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],L=["src"];var j=0;var z=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],K=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],V=function(e){var t=e.src,n=e.alt,c=e.onPreviewClose,f=e.prefixCls,v=void 0===f?"rc-image":f,h=e.previewPrefixCls,m=void 0===h?"".concat(v,"-preview"):h,g=e.placeholder,y=e.fallback,A=e.width,w=e.height,E=e.style,x=e.preview,C=void 0===x||x,k=e.className,S=e.onClick,_=e.onError,R=e.wrapperClassName,M=e.wrapperStyle,P=e.rootClassName,O=(0,u.A)(e,z),D=g&&!0!==g,F="object"===(0,l.A)(C)?C:{},L=F.src,V=F.visible,H=void 0===V?void 0:V,B=F.onVisibleChange,U=void 0===B?c:B,W=F.getContainer,$=void 0===W?void 0:W,q=F.mask,Y=F.maskClassName,X=F.movable,G=F.icons,Q=F.scaleStep,J=F.minScale,Z=F.maxScale,ee=F.imageRender,te=F.toolbarRender,ne=(0,u.A)(F,K),re=null!=L?L:t,oe=(0,d.A)(!!H,{value:H,onChange:U}),ae=(0,i.A)(oe,2),ie=ae[0],le=ae[1],ue=N({src:t,isCustomPlaceholder:D,fallback:y}),ce=(0,i.A)(ue,3),se=ce[0],fe=ce[1],de=ce[2],pe=(0,p.useState)(null),ve=(0,i.A)(pe,2),he=ve[0],me=ve[1],ge=(0,p.useContext)(b),ye=!!C,be=s()(v,R,P,(0,a.A)({},"".concat(v,"-error"),"error"===de)),Ae=(0,p.useMemo)(function(){var t={};return I.forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t},I.map(function(t){return e[t]})),we=function(e,t){var n=p.useState(function(){return String(j+=1)}),r=(0,i.A)(n,1)[0],o=p.useContext(b),a={data:t,canPreview:e};return p.useEffect(function(){if(o)return o.register(r,a)},[]),p.useEffect(function(){o&&o.register(r,a)},[e,t]),r}(ye,(0,p.useMemo)(function(){return(0,o.A)((0,o.A)({},Ae),{},{src:re})},[re,Ae]));return p.createElement(p.Fragment,null,p.createElement("div",(0,r.A)({},O,{className:be,onClick:ye?function(e){var t,n,r,o=(t=e.target,n=t.getBoundingClientRect(),r=document.documentElement,{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}),a=o.left,i=o.top;ge?ge.onPreview(we,re,a,i):(me({x:a,y:i}),le(!0)),null==S||S(e)}:S,style:(0,o.A)({width:A,height:w},M)}),p.createElement("img",(0,r.A)({},Ae,{className:s()("".concat(v,"-img"),(0,a.A)({},"".concat(v,"-img-placeholder"),!0===g),k),style:(0,o.A)({height:w},E),ref:se},fe,{width:A,height:w,onError:_})),"loading"===de&&p.createElement("div",{"aria-hidden":"true",className:"".concat(v,"-placeholder")},g),q&&ye&&p.createElement("div",{className:s()("".concat(v,"-mask"),Y),style:{display:"none"===(null==E?void 0:E.display)?"none":void 0}},q)),!ge&&ye&&p.createElement(T,(0,r.A)({"aria-hidden":!ie,visible:ie,prefixCls:m,onClose:function(){le(!1),me(null)},mousePosition:he,src:re,alt:n,imageInfo:{width:A,height:w},fallback:y,getContainer:$,icons:G,movable:X,scaleStep:Q,minScale:J,maxScale:Z,rootClassName:P,imageRender:ee,imgCommonProps:Ae,toolbarRender:te},ne)))};V.PreviewGroup=function(e){var t,n=e.previewPrefixCls,c=void 0===n?"rc-image-preview":n,s=e.children,f=e.icons,v=void 0===f?{}:f,h=e.items,m=e.preview,g=e.fallback,y="object"===(0,l.A)(m)?m:{},A=y.visible,w=y.onVisibleChange,E=y.getContainer,x=y.current,C=y.movable,k=y.minScale,S=y.maxScale,N=y.countRender,_=y.closeIcon,R=y.onChange,M=y.onTransform,P=y.toolbarRender,O=y.imageRender,j=(0,u.A)(y,F),z=function(e){var t=p.useState({}),n=(0,i.A)(t,2),r=n[0],l=n[1],u=p.useCallback(function(e,t){return l(function(n){return(0,o.A)((0,o.A)({},n),{},(0,a.A)({},e,t))}),function(){l(function(t){var n=(0,o.A)({},t);return delete n[e],n})}},[]);return[p.useMemo(function(){return e?e.map(function(e){if("string"==typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach(function(n){["src"].concat((0,D.A)(I)).includes(n)&&(t[n]=e[n])}),{data:t}}):Object.keys(r).reduce(function(e,t){var n=r[t],o=n.canPreview,a=n.data;return o&&e.push({data:a,id:t}),e},[])},[e,r]),u,!!e]}(h),K=(0,i.A)(z,3),V=K[0],H=K[1],B=K[2],U=(0,d.A)(0,{value:x}),W=(0,i.A)(U,2),$=W[0],q=W[1],Y=(0,p.useState)(!1),X=(0,i.A)(Y,2),G=X[0],Q=X[1],J=(null===(t=V[$])||void 0===t?void 0:t.data)||{},Z=J.src,ee=(0,u.A)(J,L),te=(0,d.A)(!!A,{value:A,onChange:function(e,t){null==w||w(e,t,$)}}),ne=(0,i.A)(te,2),re=ne[0],oe=ne[1],ae=(0,p.useState)(null),ie=(0,i.A)(ae,2),le=ie[0],ue=ie[1],ce=p.useCallback(function(e,t,n,r){var o=B?V.findIndex(function(e){return e.data.src===t}):V.findIndex(function(t){return t.id===e});q(o<0?0:o),oe(!0),ue({x:n,y:r}),Q(!0)},[V,B]);p.useEffect(function(){re?G||q(0):Q(!1)},[re]);var se=p.useMemo(function(){return{register:H,onPreview:ce}},[H,ce]);return p.createElement(b.Provider,{value:se},s,p.createElement(T,(0,r.A)({"aria-hidden":!re,movable:C,visible:re,prefixCls:c,closeIcon:_,onClose:function(){oe(!1),ue(null)},mousePosition:le,imgCommonProps:ee,src:Z,fallback:g,icons:v,minScale:k,maxScale:S,getContainer:E,current:$,count:V.length,countRender:N,onTransform:M,toolbarRender:P,imageRender:O,onChange:function(e,t){q(e),null==R||R(e,t)}},j)))};const H=V},46049(e,t,n){"use strict";n.d(t,{A:()=>B});var r=n(58168),o=n(64467),a=n(82284),i=n(5544),l=n(80045),u=n(23029),c=n(92901);function s(){return"function"==typeof BigInt}function f(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function d(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";"0"===a&&"0"===i&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(r)}}function p(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function v(e){var t=e.toLowerCase().split("e"),n=(0,i.A)(t,2),r=n[0],o=n[1],a=void 0===o?"0":o,l=r.startsWith("-"),u=(l?r.slice(1):r).split("."),c=(0,i.A)(u,2),s=c[0],f=void 0===s?"0":s,d=c[1],p=void 0===d?"":d;return{decimal:p,digits:"".concat(f).concat(p).replace(/^0+/,"")||"0",exponent:Number(a),integer:f,negative:l}}function h(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function m(e){var t=String(e);return p(e)?h(v(t)):t.includes(".")&&y(t)?t.length-t.indexOf(".")-1:0}function g(e){var t=String(e);if(p(e)){if(e>Number.MAX_SAFE_INTEGER)return String(s()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e100?function(e){var t=e.decimal,n=e.digits,r=e.exponent,o=e.integer,a=e.negative;if("0"===n)return"0";var i=o.replace(/^0+/,"").length,l=(t.match(/^0*/)||[""])[0].length,u=(i||-l)+r,c="";return c=u<=0?"0.".concat("0".repeat(-u)).concat(n):u>=n.length?"".concat(n).concat("0".repeat(u-n.length)):"".concat(n.slice(0,u),".").concat(n.slice(u)),"".concat(a?"-":"").concat(c)}(n):e.toFixed(r)}return d(t).fullStr}function y(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var b=function(){function e(t){if((0,u.A)(this,e),(0,o.A)(this,"origin",""),(0,o.A)(this,"negative",void 0),(0,o.A)(this,"integer",void 0),(0,o.A)(this,"decimal",void 0),(0,o.A)(this,"decimalLen",void 0),(0,o.A)(this,"empty",void 0),(0,o.A)(this,"nan",void 0),f(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(p(n)&&(n=Number(n)),y(n="string"==typeof n?n:g(n))){var r=d(n);this.negative=r.negative;var a=r.trimStr.split(".");this.integer=BigInt(a[0]);var i=a[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return(0,c.A)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),a=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),i=r(o),l=d(a),u=l.negativeStr,c=l.trimStr,s="".concat(u).concat(c.padStart(i+1,"0"));return new e("".concat(s.slice(0,-i),".").concat(s.slice(-i)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return 2*e})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":d("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),A=function(){function e(t){(0,u.A)(this,e),(0,o.A)(this,"origin",""),(0,o.A)(this,"number",void 0),(0,o.A)(this,"empty",void 0),f(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return(0,c.A)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":p(this.number)&&m(this.number)>100?String(this.number):g(this.number):this.origin}}]),e}();function w(e){return s()?new b(e):new A(e)}function E(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=d(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,u="".concat(t).concat(l),c="".concat(a).concat(i);if(n>=0){var s=Number(l[n]);return s>=5&&!r?E(w(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-s)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===u?c:"".concat(c).concat(u)}const x=w;var C=n(46942),k=n.n(C),S=n(48491),N=n(30981);var _=n(8719),R=n(96540),M=n(68210);var P=n(68430);const O=function(){var e=(0,R.useState)(!1),t=(0,i.A)(e,2),n=t[0],r=t[1];return(0,N.A)(function(){r((0,P.A)())},[]),n};var T=n(25371);function D(e){var t=e.prefixCls,n=e.upNode,a=e.downNode,i=e.upDisabled,l=e.downDisabled,u=e.onStep,c=R.useRef(),s=R.useRef([]),f=R.useRef();f.current=u;var d=function(){clearTimeout(c.current)},p=function(e,t){e.preventDefault(),d(),f.current(t),c.current=setTimeout(function e(){f.current(t),c.current=setTimeout(e,200)},600)};if(R.useEffect(function(){return function(){d(),s.current.forEach(function(e){return T.A.cancel(e)})}},[]),O())return null;var v="".concat(t,"-handler"),h=k()(v,"".concat(v,"-up"),(0,o.A)({},"".concat(v,"-up-disabled"),i)),m=k()(v,"".concat(v,"-down"),(0,o.A)({},"".concat(v,"-down-disabled"),l)),g=function(){return s.current.push((0,T.A)(d))},y={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return R.createElement("div",{className:"".concat(v,"-wrap")},R.createElement("span",(0,r.A)({},y,{onMouseDown:function(e){p(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:h}),n||R.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),R.createElement("span",(0,r.A)({},y,{onMouseDown:function(e){p(e,!1)},"aria-label":"Decrease Value","aria-disabled":l,className:m}),a||R.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function I(e){var t="number"==typeof e?g(e):d(e).fullStr;return t.includes(".")?d(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var F=n(11980);const L=function(){var e=(0,R.useRef)(0),t=function(){T.A.cancel(e.current)};return(0,R.useEffect)(function(){return t},[]),function(n){t(),e.current=(0,T.A)(function(){n()})}};(Object.getOwnPropertyDescriptor(L,"name")||{}).writable||Object.defineProperty(L,"name",{value:"default",configurable:!0});var j=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],z=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],K=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},V=function(e){var t=x(e);return t.isInvalidate()?null:t},H=R.forwardRef(function(e,t){var n=e.prefixCls,u=e.className,c=e.style,s=e.min,f=e.max,d=e.step,p=void 0===d?1:d,v=e.defaultValue,h=e.value,b=e.disabled,A=e.readOnly,w=e.upHandler,C=e.downHandler,S=e.keyboard,P=e.changeOnWheel,O=void 0!==P&&P,T=e.controls,F=void 0===T||T,z=(e.classNames,e.stringMode),H=e.parser,B=e.formatter,U=e.precision,W=e.decimalSeparator,$=e.onChange,q=e.onInput,Y=e.onPressEnter,X=e.onStep,G=e.changeOnBlur,Q=void 0===G||G,J=e.domRef,Z=(0,l.A)(e,j),ee="".concat(n,"-input"),te=R.useRef(null),ne=R.useState(!1),re=(0,i.A)(ne,2),oe=re[0],ae=re[1],ie=R.useRef(!1),le=R.useRef(!1),ue=R.useRef(!1),ce=R.useState(function(){return x(null!=h?h:v)}),se=(0,i.A)(ce,2),fe=se[0],de=se[1];var pe=R.useCallback(function(e,t){if(!t)return U>=0?U:Math.max(m(e),m(p))},[U,p]),ve=R.useCallback(function(e){var t=String(e);if(H)return H(t);var n=t;return W&&(n=n.replace(W,".")),n.replace(/[^\w.-]+/g,"")},[H,W]),he=R.useRef(""),me=R.useCallback(function(e,t){if(B)return B(e,{userTyping:t,input:String(he.current)});var n="number"==typeof e?g(e):e;if(!t){var r=pe(n,t);if(y(n)&&(W||r>=0))n=E(n,W||".",r)}return n},[B,pe,W]),ge=R.useState(function(){var e=null!=v?v:h;return fe.isInvalidate()&&["string","number"].includes((0,a.A)(e))?Number.isNaN(e)?"":e:me(fe.toString(),!1)}),ye=(0,i.A)(ge,2),be=ye[0],Ae=ye[1];function we(e,t){Ae(me(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}he.current=be;var Ee,xe,Ce,ke=R.useMemo(function(){return V(f)},[f,U]),Se=R.useMemo(function(){return V(s)},[s,U]),Ne=R.useMemo(function(){return!(!ke||!fe||fe.isInvalidate())&&ke.lessEquals(fe)},[ke,fe]),_e=R.useMemo(function(){return!(!Se||!fe||fe.isInvalidate())&&fe.lessEquals(Se)},[Se,fe]),Re=(Ee=te.current,xe=oe,Ce=(0,R.useRef)(null),[function(){try{var e=Ee.selectionStart,t=Ee.selectionEnd,n=Ee.value,r=n.substring(0,e),o=n.substring(t);Ce.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(e){}},function(){if(Ee&&Ce.current&&xe)try{var e=Ee.value,t=Ce.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,a=e.length;if(e.startsWith(n))a=n.length;else if(e.endsWith(r))a=e.length-Ce.current.afterTxt.length;else{var i=n[o-1],l=e.indexOf(i,o-1);-1!==l&&(a=l+1)}Ee.setSelectionRange(a,a)}catch(e){(0,M.Ay)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),Me=(0,i.A)(Re,2),Pe=Me[0],Oe=Me[1],Te=function(e){return ke&&!e.lessEquals(ke)?ke:Se&&!Se.lessEquals(e)?Se:null},De=function(e){return!Te(e)},Ie=function(e,t){var n,r=e,o=De(r)||r.isEmpty();if(r.isEmpty()||t||(r=Te(r)||r,o=!0),!A&&!b&&o){var a=r.toString(),i=pe(a,t);return i>=0&&(r=x(E(a,".",i)),De(r)||(r=x(E(a,".",i,!0)))),r.equals(fe)||(n=r,void 0===h&&de(n),null==$||$(r.isEmpty()?null:K(z,r)),void 0===h&&we(r,t)),r}return fe},Fe=L(),Le=function e(t){if(Pe(),he.current=t,Ae(t),!le.current){var n=ve(t),r=x(n);r.isNaN()||Ie(r,!0)}null==q||q(t),Fe(function(){var n=t;H||(n=t.replace(/。/g,".")),n!==t&&e(n)})},je=function(e){var t;if(!(e&&Ne||!e&&_e)){ie.current=!1;var n=x(ue.current?I(p):p);e||(n=n.negate());var r=(fe||x(0)).add(n.toString()),o=Ie(r,!1);null==X||X(K(z,o),{offset:ue.current?I(p):p,type:e?"up":"down"}),null===(t=te.current)||void 0===t||t.focus()}},ze=function(e){var t,n=x(ve(be));t=n.isNaN()?Ie(fe,e):Ie(n,e),void 0!==h?we(fe,!1):t.isNaN()||we(t,!1)};R.useEffect(function(){if(O&&oe){var e=function(e){je(e.deltaY<0),e.preventDefault()},t=te.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}});return(0,N.o)(function(){fe.isInvalidate()||we(fe,!1)},[U,B]),(0,N.o)(function(){var e=x(h);de(e);var t=x(ve(be));e.equals(t)&&ie.current&&!B||we(e,ie.current)},[h]),(0,N.o)(function(){B&&Oe()},[be]),R.createElement("div",{ref:J,className:k()(n,u,(0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)({},"".concat(n,"-focused"),oe),"".concat(n,"-disabled"),b),"".concat(n,"-readonly"),A),"".concat(n,"-not-a-number"),fe.isNaN()),"".concat(n,"-out-of-range"),!fe.isInvalidate()&&!De(fe))),style:c,onFocus:function(){ae(!0)},onBlur:function(){Q&&ze(!1),ae(!1),ie.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;ie.current=!0,ue.current=n,"Enter"===t&&(le.current||(ie.current=!1),ze(!1),null==Y||Y(e)),!1!==S&&!le.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(je("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){ie.current=!1,ue.current=!1},onCompositionStart:function(){le.current=!0},onCompositionEnd:function(){le.current=!1,Le(te.current.value)},onBeforeInput:function(){ie.current=!0}},F&&R.createElement(D,{prefixCls:n,upNode:w,downNode:C,upDisabled:Ne,downDisabled:_e,onStep:je}),R.createElement("div",{className:"".concat(ee,"-wrap")},R.createElement("input",(0,r.A)({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":f,"aria-valuenow":fe.isInvalidate()?null:fe.toString(),step:p},Z,{ref:(0,_.K4)(te,t),className:ee,value:be,onChange:function(e){Le(e.target.value)},disabled:b,readOnly:A}))))});const B=R.forwardRef(function(e,t){var n=e.disabled,o=e.style,a=e.prefixCls,i=void 0===a?"rc-input-number":a,u=e.value,c=e.prefix,s=e.suffix,f=e.addonBefore,d=e.addonAfter,p=e.className,v=e.classNames,h=(0,l.A)(e,z),m=R.useRef(null),g=R.useRef(null),y=R.useRef(null),b=function(e){y.current&&(0,F.F4)(y.current,e)};return R.useImperativeHandle(t,function(){return e=y.current,t={focus:b,nativeElement:m.current.nativeElement||g.current},"undefined"!=typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var r=e[n];return"function"==typeof r?r.bind(e):r}}):e;var e,t}),R.createElement(S.a,{className:p,triggerFocus:b,prefixCls:i,value:u,disabled:n,style:o,prefix:c,suffix:s,addonAfter:d,addonBefore:f,classNames:v,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:m},R.createElement(H,(0,r.A)({prefixCls:i,disabled:n,ref:y,domRef:g,className:null==v?void 0:v.input},h)))})},22489(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(80045),o=n(89379),a=n(82284),i=n(96540),l=["show"];function u(e,t){return i.useMemo(function(){var n={};t&&(n.show="object"===(0,a.A)(t)&&t.formatter?t.formatter:!!t);var i=n=(0,o.A)((0,o.A)({},n),e),u=i.show,c=(0,r.A)(i,l);return(0,o.A)((0,o.A)({},c),{},{show:!!u,showFormatter:"function"==typeof u?u:void 0,strategy:c.strategy||function(e){return e.length}})},[e,t])}},48491(e,t,n){"use strict";n.d(t,{a:()=>f,A:()=>b});var r=n(89379),o=n(58168),a=n(64467),i=n(82284),l=n(46942),u=n.n(l),c=n(96540),s=n(11980);const f=c.forwardRef(function(e,t){var n,l,f,d=e.inputElement,p=e.children,v=e.prefixCls,h=e.prefix,m=e.suffix,g=e.addonBefore,y=e.addonAfter,b=e.className,A=e.style,w=e.disabled,E=e.readOnly,x=e.focused,C=e.triggerFocus,k=e.allowClear,S=e.value,N=e.handleReset,_=e.hidden,R=e.classes,M=e.classNames,P=e.dataAttrs,O=e.styles,T=e.components,D=e.onClear,I=null!=p?p:d,F=(null==T?void 0:T.affixWrapper)||"span",L=(null==T?void 0:T.groupWrapper)||"span",j=(null==T?void 0:T.wrapper)||"span",z=(null==T?void 0:T.groupAddon)||"span",K=(0,c.useRef)(null),V=(0,s.OL)(e),H=(0,c.cloneElement)(I,{value:S,className:u()(null===(n=I.props)||void 0===n?void 0:n.className,!V&&(null==M?void 0:M.variant))||null}),B=(0,c.useRef)(null);if(c.useImperativeHandle(t,function(){return{nativeElement:B.current||K.current}}),V){var U=null;if(k){var W=!w&&!E&&S,$="".concat(v,"-clear-icon"),q="object"===(0,i.A)(k)&&null!=k&&k.clearIcon?k.clearIcon:"✖";U=c.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==N||N(e),null==D||D()},onMouseDown:function(e){return e.preventDefault()},className:u()($,(0,a.A)((0,a.A)({},"".concat($,"-hidden"),!W),"".concat($,"-has-suffix"),!!m))},q)}var Y="".concat(v,"-affix-wrapper"),X=u()(Y,(0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)({},"".concat(v,"-disabled"),w),"".concat(Y,"-disabled"),w),"".concat(Y,"-focused"),x),"".concat(Y,"-readonly"),E),"".concat(Y,"-input-with-clear-btn"),m&&k&&S),null==R?void 0:R.affixWrapper,null==M?void 0:M.affixWrapper,null==M?void 0:M.variant),G=(m||k)&&c.createElement("span",{className:u()("".concat(v,"-suffix"),null==M?void 0:M.suffix),style:null==O?void 0:O.suffix},U,m);H=c.createElement(F,(0,o.A)({className:X,style:null==O?void 0:O.affixWrapper,onClick:function(e){var t;null!==(t=K.current)&&void 0!==t&&t.contains(e.target)&&(null==C||C())}},null==P?void 0:P.affixWrapper,{ref:K}),h&&c.createElement("span",{className:u()("".concat(v,"-prefix"),null==M?void 0:M.prefix),style:null==O?void 0:O.prefix},h),H,G)}if((0,s.bk)(e)){var Q="".concat(v,"-group"),J="".concat(Q,"-addon"),Z="".concat(Q,"-wrapper"),ee=u()("".concat(v,"-wrapper"),Q,null==R?void 0:R.wrapper,null==M?void 0:M.wrapper),te=u()(Z,(0,a.A)({},"".concat(Z,"-disabled"),w),null==R?void 0:R.group,null==M?void 0:M.groupWrapper);H=c.createElement(L,{className:te,ref:B},c.createElement(j,{className:ee},g&&c.createElement(z,{className:J},g),H,y&&c.createElement(z,{className:J},y)))}return c.cloneElement(H,{className:u()(null===(l=H.props)||void 0===l?void 0:l.className,b)||null,style:(0,r.A)((0,r.A)({},null===(f=H.props)||void 0===f?void 0:f.style),A),hidden:_})});var d=n(60436),p=n(5544),v=n(80045),h=n(12533),m=n(19853),g=n(22489),y=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"];const b=(0,c.forwardRef)(function(e,t){var n=e.autoComplete,i=e.onChange,l=e.onFocus,b=e.onBlur,A=e.onPressEnter,w=e.onKeyDown,E=e.onKeyUp,x=e.prefixCls,C=void 0===x?"rc-input":x,k=e.disabled,S=e.htmlSize,N=e.className,_=e.maxLength,R=e.suffix,M=e.showCount,P=e.count,O=e.type,T=void 0===O?"text":O,D=e.classes,I=e.classNames,F=e.styles,L=e.onCompositionStart,j=e.onCompositionEnd,z=(0,v.A)(e,y),K=(0,c.useState)(!1),V=(0,p.A)(K,2),H=V[0],B=V[1],U=(0,c.useRef)(!1),W=(0,c.useRef)(!1),$=(0,c.useRef)(null),q=(0,c.useRef)(null),Y=function(e){$.current&&(0,s.F4)($.current,e)},X=(0,h.A)(e.defaultValue,{value:e.value}),G=(0,p.A)(X,2),Q=G[0],J=G[1],Z=null==Q?"":String(Q),ee=(0,c.useState)(null),te=(0,p.A)(ee,2),ne=te[0],re=te[1],oe=(0,g.A)(P,M),ae=oe.max||_,ie=oe.strategy(Z),le=!!ae&&ie>ae;(0,c.useImperativeHandle)(t,function(){var e;return{focus:Y,blur:function(){var e;null===(e=$.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=$.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=$.current)||void 0===e||e.select()},input:$.current,nativeElement:(null===(e=q.current)||void 0===e?void 0:e.nativeElement)||$.current}}),(0,c.useEffect)(function(){W.current&&(W.current=!1),B(function(e){return(!e||!k)&&e})},[k]);var ue=function(e,t,n){var r,o,a=t;if(!U.current&&oe.exceedFormatter&&oe.max&&oe.strategy(t)>oe.max)t!==(a=oe.exceedFormatter(t,{max:oe.max}))&&re([(null===(r=$.current)||void 0===r?void 0:r.selectionStart)||0,(null===(o=$.current)||void 0===o?void 0:o.selectionEnd)||0]);else if("compositionEnd"===n.source)return;J(a),$.current&&(0,s.gS)($.current,e,i,a)};(0,c.useEffect)(function(){var e;ne&&(null===(e=$.current)||void 0===e||e.setSelectionRange.apply(e,(0,d.A)(ne)))},[ne]);var ce,se=function(e){ue(e,e.target.value,{source:"change"})},fe=function(e){U.current=!1,ue(e,e.currentTarget.value,{source:"compositionEnd"}),null==j||j(e)},de=function(e){A&&"Enter"===e.key&&!W.current&&(W.current=!0,A(e)),null==w||w(e)},pe=function(e){"Enter"===e.key&&(W.current=!1),null==E||E(e)},ve=function(e){B(!0),null==l||l(e)},he=function(e){W.current&&(W.current=!1),B(!1),null==b||b(e)},me=le&&"".concat(C,"-out-of-range");return c.createElement(f,(0,o.A)({},z,{prefixCls:C,className:u()(N,me),handleReset:function(e){J(""),Y(),$.current&&(0,s.gS)($.current,e,i)},value:Z,focused:H,triggerFocus:Y,suffix:function(){var e=Number(ae)>0;if(R||oe.show){var t=oe.showFormatter?oe.showFormatter({value:Z,count:ie,maxLength:ae}):"".concat(ie).concat(e?" / ".concat(ae):"");return c.createElement(c.Fragment,null,oe.show&&c.createElement("span",{className:u()("".concat(C,"-show-count-suffix"),(0,a.A)({},"".concat(C,"-show-count-has-suffix"),!!R),null==I?void 0:I.count),style:(0,r.A)({},null==F?void 0:F.count)},t),R)}return null}(),disabled:k,classes:D,classNames:I,styles:F,ref:q}),(ce=(0,m.A)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),c.createElement("input",(0,o.A)({autoComplete:n},ce,{onChange:se,onFocus:ve,onBlur:he,onKeyDown:de,onKeyUp:pe,className:u()(C,(0,a.A)({},"".concat(C,"-disabled"),k),null==I?void 0:I.input),style:null==F?void 0:F.input,ref:$,size:S,type:T,onCompositionStart:function(e){U.current=!0,null==L||L(e)},onCompositionEnd:fe}))))})},11980(e,t,n){"use strict";function r(e){return!(!e.addonBefore&&!e.addonAfter)}function o(e){return!!(e.prefix||e.suffix||e.allowClear)}function a(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function i(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=a(t,e,r)):n(o=a(t,e,""))}}function l(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}n.d(t,{F4:()=>l,OL:()=>o,bk:()=>r,gS:()=>i})},48810(e,t,n){"use strict";n.d(t,{cG:()=>Ke,q7:()=>be,te:()=>Be,Dr:()=>be,g8:()=>je,Ay:()=>Qe,Wj:()=>_});var r=n(58168),o=n(64467),a=n(89379),i=n(60436),l=n(5544),u=n(80045),c=n(46942),s=n.n(c),f=n(99591),d=n(12533),p=n(43210),v=n(68210),h=n(96540),m=n(40961),g=h.createContext(null);function y(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function b(e){return y(h.useContext(g),e)}var A=n(28104),w=["children","locked"],E=h.createContext(null);function x(e){var t=e.children,n=e.locked,r=(0,u.A)(e,w),o=h.useContext(E),i=(0,A.A)(function(){return e=o,t=r,n=(0,a.A)({},e),Object.keys(t).forEach(function(e){var r=t[e];void 0!==r&&(n[e]=r)}),n;var e,t,n},[o,r],function(e,t){return!(n||e[0]===t[0]&&(0,p.A)(e[1],t[1],!0))});return h.createElement(E.Provider,{value:i},t)}var C=[],k=h.createContext(null);function S(){return h.useContext(k)}var N=h.createContext(C);function _(e){var t=h.useContext(N);return h.useMemo(function(){return void 0!==e?[].concat((0,i.A)(t),[e]):t},[t,e])}var R=h.createContext(null);const M=h.createContext({});var P=n(42467);function O(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,P.A)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}function T(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,i.A)(e.querySelectorAll("*")).filter(function(e){return O(e,t)});return O(e,t)&&n.unshift(e),n}var D=n(16928),I=n(25371),F=D.A.LEFT,L=D.A.RIGHT,j=D.A.UP,z=D.A.DOWN,K=D.A.ENTER,V=D.A.ESC,H=D.A.HOME,B=D.A.END,U=[j,z,F,L];function W(e,t){return T(e,!0).filter(function(e){return t.has(e)})}function $(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=W(e,t),a=o.length,i=o.findIndex(function(e){return n===e});return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),o[i=(i+a)%a]}var q=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach(function(e){var a=document.querySelector("[data-menu-id='".concat(y(t,e),"']"));a&&(n.add(a),o.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:o}};function Y(e,t,n,r,a,i,l,u,c,s){var f=h.useRef(),d=h.useRef();d.current=t;var p=function(){I.A.cancel(f.current)};return h.useEffect(function(){return function(){p()}},[]),function(v){var h=v.which;if([].concat(U,[K,V,H,B]).includes(h)){var m=i(),g=q(m,r),y=g,b=y.elements,A=y.key2element,w=y.element2key,E=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(A.get(t),b),x=w.get(E),C=function(e,t,n,r){var a,i="prev",l="next",u="children",c="parent";if("inline"===e&&r===K)return{inlineTrigger:!0};var s=(0,o.A)((0,o.A)({},j,i),z,l),f=(0,o.A)((0,o.A)((0,o.A)((0,o.A)({},F,n?l:i),L,n?i:l),z,u),K,u),d=(0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)({},j,i),z,l),K,u),V,c),F,n?u:c),L,n?c:u);switch(null===(a={inline:s,horizontal:f,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===a?void 0:a[r]){case i:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===l(x,!0).length,n,h);if(!C&&h!==H&&h!==B)return;(U.includes(h)||[H,B].includes(h))&&v.preventDefault();var k=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);u(r),p(),f.current=(0,I.A)(function(){d.current===r&&t.focus()})}};if([H,B].includes(h)||C.sibling||!E){var S,N,_=W(S=E&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(E):a.current,b);N=h===H?_[0]:h===B?_[_.length-1]:$(S,b,E,C.offset),k(N)}else if(C.inlineTrigger)c(x);else if(C.offset>0)c(x,!0),p(),f.current=(0,I.A)(function(){g=q(m,r);var e=E.getAttribute("aria-controls"),t=$(document.getElementById(e),g.elements);k(t)},5);else if(C.offset<0){var R=l(x,!0),M=R[R.length-2],P=A.get(M);c(M,!1),k(P)}}null==s||s(v)}}var X="__RC_UTIL_PATH_SPLIT__",G=function(e){return e.join(X)},Q="rc-menu-more";function J(){var e=h.useState({}),t=(0,l.A)(e,2)[1],n=(0,h.useRef)(new Map),r=(0,h.useRef)(new Map),o=h.useState([]),a=(0,l.A)(o,2),u=a[0],c=a[1],s=(0,h.useRef)(0),f=(0,h.useRef)(!1),d=(0,h.useCallback)(function(e,o){var a=G(o);r.current.set(a,e),n.current.set(e,a),s.current+=1;var i,l=s.current;i=function(){l===s.current&&(f.current||t({}))},Promise.resolve().then(i)},[]),p=(0,h.useCallback)(function(e,t){var o=G(t);r.current.delete(o),n.current.delete(e)},[]),v=(0,h.useCallback)(function(e){c(e)},[]),m=(0,h.useCallback)(function(e,t){var r=n.current.get(e)||"",o=r.split(X);return t&&u.includes(o[0])&&o.unshift(Q),o},[u]),g=(0,h.useCallback)(function(e,t){return e.filter(function(e){return void 0!==e}).some(function(e){return m(e,!0).includes(t)})},[m]),y=(0,h.useCallback)(function(e){var t="".concat(n.current.get(e)).concat(X),o=new Set;return(0,i.A)(r.current.keys()).forEach(function(e){e.startsWith(t)&&o.add(r.current.get(e))}),o},[]);return h.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:d,unregisterPath:p,refreshOverflowKeys:v,isSubPathKey:g,getKeyPath:m,getKeys:function(){var e=(0,i.A)(n.current.keys());return u.length&&e.push(Q),e},getSubPathKeys:y}}function Z(e){var t=h.useRef(e);t.current=e;var n=h.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&(C.motionAppear=!1);var k=C.onVisibleChanged;return C.onVisibleChanged=function(e){return m.current||e||A(!0),null==k?void 0:k(e)},b?null:h.createElement(x,{mode:u,locked:!m.current},h.createElement(Te.Ay,(0,r.A)({visible:w},C,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(e){var n=e.className,r=e.style;return h.createElement(xe,{id:t,className:n,style:r},i)}))}var Ie=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Fe=["active"],Le=h.forwardRef(function(e,t){var n=e.style,i=e.className,c=e.title,d=e.eventKey,p=(e.warnKey,e.disabled),v=e.internalPopupClose,m=e.children,g=e.itemIcon,y=e.expandIcon,A=e.popupClassName,w=e.popupOffset,C=e.popupStyle,k=e.onClick,S=e.onMouseEnter,N=e.onMouseLeave,P=e.onTitleClick,O=e.onTitleMouseEnter,T=e.onTitleMouseLeave,D=(0,u.A)(e,Ie),I=b(d),F=h.useContext(E),L=F.prefixCls,j=F.mode,z=F.openKeys,K=F.disabled,V=F.overflowDisabled,H=F.activeKey,B=F.selectedKeys,U=F.itemIcon,W=F.expandIcon,$=F.onItemClick,q=F.onOpenChange,Y=F.onActive,X=h.useContext(M)._internalRenderSubMenuItem,G=h.useContext(R).isSubPathKey,Q=_(),J="".concat(L,"-submenu"),ee=K||p,te=h.useRef(),ne=h.useRef();var re=null!=g?g:U,oe=null!=y?y:W,ae=z.includes(d),ie=!V&&ae,le=G(B,d),fe=ue(d,ee,O,T),pe=fe.active,ve=(0,u.A)(fe,Fe),he=h.useState(!1),me=(0,l.A)(he,2),ge=me[0],ye=me[1],be=function(e){ee||ye(e)},Ae=h.useMemo(function(){return pe||"inline"!==j&&(ge||G([H],d))},[j,pe,H,ge,d,G]),we=ce(Q.length),Ee=Z(function(e){null==k||k(de(e)),$(e)}),Ce=I&&"".concat(I,"-popup"),ke=h.useMemo(function(){return h.createElement(se,{icon:"horizontal"!==j?oe:void 0,props:(0,a.A)((0,a.A)({},e),{},{isOpen:ie,isSubMenu:!0})},h.createElement("i",{className:"".concat(J,"-arrow")}))},[j,oe,e,ie,J]),Se=h.createElement("div",(0,r.A)({role:"menuitem",style:we,className:"".concat(J,"-title"),tabIndex:ee?null:-1,ref:te,title:"string"==typeof c?c:null,"data-menu-id":V&&I?null:I,"aria-expanded":ie,"aria-haspopup":!0,"aria-controls":Ce,"aria-disabled":ee,onClick:function(e){ee||(null==P||P({key:d,domEvent:e}),"inline"===j&&q(d,!ae))},onFocus:function(){Y(d)}},ve),c,ke),Ne=h.useRef(j);if("inline"!==j&&Q.length>1?Ne.current="vertical":Ne.current=j,!V){var _e=Ne.current;Se=h.createElement(Oe,{mode:_e,prefixCls:J,visible:!v&&ie&&"inline"!==j,popupClassName:A,popupOffset:w,popupStyle:C,popup:h.createElement(x,{mode:"horizontal"===_e?"vertical":_e},h.createElement(xe,{id:Ce,ref:ne},m)),disabled:ee,onVisibleChange:function(e){"inline"!==j&&q(d,e)}},Se)}var Re=h.createElement(f.A.Item,(0,r.A)({ref:t,role:"none"},D,{component:"li",style:n,className:s()(J,"".concat(J,"-").concat(j),i,(0,o.A)((0,o.A)((0,o.A)((0,o.A)({},"".concat(J,"-open"),ie),"".concat(J,"-active"),Ae),"".concat(J,"-selected"),le),"".concat(J,"-disabled"),ee)),onMouseEnter:function(e){be(!0),null==S||S({key:d,domEvent:e})},onMouseLeave:function(e){be(!1),null==N||N({key:d,domEvent:e})}}),Se,!V&&h.createElement(De,{id:Ce,open:ie,keyPath:Q},m));return X&&(Re=X(Re,e,{selected:le,active:Ae,open:ie,disabled:ee})),h.createElement(x,{onItemClick:Ee,mode:"horizontal"===j?"vertical":j,itemIcon:re,expandIcon:oe},Re)});const je=h.forwardRef(function(e,t){var n,o=e.eventKey,a=e.children,i=_(o),l=ke(a,i),u=S();return h.useEffect(function(){if(u)return u.registerPath(o,i),function(){u.unregisterPath(o,i)}},[i]),n=u?l:h.createElement(Le,(0,r.A)({ref:t},e),l),h.createElement(N.Provider,{value:i},n)});var ze=n(82284);function Ke(e){var t=e.className,n=e.style,r=h.useContext(E).prefixCls;return S()?null:h.createElement("li",{role:"separator",className:s()("".concat(r,"-item-divider"),t),style:n})}var Ve=["className","title","eventKey","children"],He=h.forwardRef(function(e,t){var n=e.className,o=e.title,a=(e.eventKey,e.children),i=(0,u.A)(e,Ve),l=h.useContext(E).prefixCls,c="".concat(l,"-item-group");return h.createElement("li",(0,r.A)({ref:t,role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:s()(c,n)}),h.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof o?o:void 0},o),h.createElement("ul",{role:"group",className:"".concat(c,"-list")},a))});const Be=h.forwardRef(function(e,t){var n=e.eventKey,o=ke(e.children,_(n));return S()?o:h.createElement(He,(0,r.A)({ref:t},(0,ie.A)(e,["warnKey"])),o)});var Ue=["label","children","key","type","extra"];function We(e,t,n){var o=t.item,a=t.group,i=t.submenu,l=t.divider;return(e||[]).map(function(e,c){if(e&&"object"===(0,ze.A)(e)){var s=e,f=s.label,d=s.children,p=s.key,v=s.type,m=s.extra,g=(0,u.A)(s,Ue),y=null!=p?p:"tmp-".concat(c);return d||"group"===v?"group"===v?h.createElement(a,(0,r.A)({key:y},g,{title:f}),We(d,t,n)):h.createElement(i,(0,r.A)({key:y},g,{title:f}),We(d,t,n)):"divider"===v?h.createElement(l,(0,r.A)({key:y},g)):h.createElement(o,(0,r.A)({key:y},g,{extra:m}),f,(!!m||0===m)&&h.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(e){return e})}function $e(e,t,n,r,o){var i=e,l=(0,a.A)({divider:Ke,item:be,group:Be,submenu:je},r);return t&&(i=We(t,l,o)),ke(i,n)}var qe=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Ye=[],Xe=h.forwardRef(function(e,t){var n,c=e,v=c.prefixCls,y=void 0===v?"rc-menu":v,b=c.rootClassName,A=c.style,w=c.className,E=c.tabIndex,C=void 0===E?0:E,S=c.items,N=c.children,_=c.direction,P=c.id,O=c.mode,T=void 0===O?"vertical":O,D=c.inlineCollapsed,I=c.disabled,F=c.disabledOverflow,L=c.subMenuOpenDelay,j=void 0===L?.1:L,z=c.subMenuCloseDelay,K=void 0===z?.1:z,V=c.forceSubMenuRender,H=c.defaultOpenKeys,B=c.openKeys,U=c.activeKey,$=c.defaultActiveFirst,X=c.selectable,G=void 0===X||X,ne=c.multiple,re=void 0!==ne&&ne,oe=c.defaultSelectedKeys,ae=c.selectedKeys,ie=c.onSelect,le=c.onDeselect,ue=c.inlineIndent,ce=void 0===ue?24:ue,se=c.motion,fe=c.defaultMotions,pe=c.triggerSubMenuAction,ve=void 0===pe?"hover":pe,he=c.builtinPlacements,me=c.itemIcon,ge=c.expandIcon,ye=c.overflowedIndicator,Ae=void 0===ye?"...":ye,we=c.overflowedIndicatorPopupClassName,Ee=c.getPopupContainer,xe=c.onClick,Ce=c.onOpenChange,ke=c.onKeyDown,Se=(c.openAnimation,c.openTransitionName,c._internalRenderMenuItem),Ne=c._internalRenderSubMenuItem,_e=c._internalComponents,Re=(0,u.A)(c,qe),Me=h.useMemo(function(){return[$e(N,S,Ye,_e,y),$e(N,S,Ye,{},y)]},[N,S,_e]),Pe=(0,l.A)(Me,2),Oe=Pe[0],Te=Pe[1],De=h.useState(!1),Ie=(0,l.A)(De,2),Fe=Ie[0],Le=Ie[1],ze=h.useRef(),Ke=function(e){var t=(0,d.A)(e,{value:e}),n=(0,l.A)(t,2),r=n[0],o=n[1];return h.useEffect(function(){te+=1;var e="".concat(ee,"-").concat(te);o("rc-menu-uuid-".concat(e))},[]),r}(P),Ve="rtl"===_;var He=(0,d.A)(H,{value:B,postState:function(e){return e||Ye}}),Be=(0,l.A)(He,2),Ue=Be[0],We=Be[1],Xe=function(e){function t(){We(e),null==Ce||Ce(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,m.flushSync)(t):t()},Ge=h.useState(Ue),Qe=(0,l.A)(Ge,2),Je=Qe[0],Ze=Qe[1],et=h.useRef(!1),tt=h.useMemo(function(){return"inline"!==T&&"vertical"!==T||!D?[T,!1]:["vertical",D]},[T,D]),nt=(0,l.A)(tt,2),rt=nt[0],ot=nt[1],at="inline"===rt,it=h.useState(rt),lt=(0,l.A)(it,2),ut=lt[0],ct=lt[1],st=h.useState(ot),ft=(0,l.A)(st,2),dt=ft[0],pt=ft[1];h.useEffect(function(){ct(rt),pt(ot),et.current&&(at?We(Je):Xe(Ye))},[rt,ot]);var vt=h.useState(0),ht=(0,l.A)(vt,2),mt=ht[0],gt=ht[1],yt=mt>=Oe.length-1||"horizontal"!==ut||F;h.useEffect(function(){at&&Ze(Ue)},[Ue]),h.useEffect(function(){return et.current=!0,function(){et.current=!1}},[]);var bt=J(),At=bt.registerPath,wt=bt.unregisterPath,Et=bt.refreshOverflowKeys,xt=bt.isSubPathKey,Ct=bt.getKeyPath,kt=bt.getKeys,St=bt.getSubPathKeys,Nt=h.useMemo(function(){return{registerPath:At,unregisterPath:wt}},[At,wt]),_t=h.useMemo(function(){return{isSubPathKey:xt}},[xt]);h.useEffect(function(){Et(yt?Ye:Oe.slice(mt+1).map(function(e){return e.key}))},[mt,yt]);var Rt=(0,d.A)(U||$&&(null===(n=Oe[0])||void 0===n?void 0:n.key),{value:U}),Mt=(0,l.A)(Rt,2),Pt=Mt[0],Ot=Mt[1],Tt=Z(function(e){Ot(e)}),Dt=Z(function(){Ot(void 0)});(0,h.useImperativeHandle)(t,function(){return{list:ze.current,focus:function(e){var t,n,r=kt(),o=q(r,Ke),a=o.elements,i=o.key2element,l=o.element2key,u=W(ze.current,a),c=null!=Pt?Pt:u[0]?l.get(u[0]):null===(t=Oe.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key,s=i.get(c);c&&s&&(null==s||null===(n=s.focus)||void 0===n||n.call(s,e))}}});var It=(0,d.A)(oe||[],{value:ae,postState:function(e){return Array.isArray(e)?e:null==e?Ye:[e]}}),Ft=(0,l.A)(It,2),Lt=Ft[0],jt=Ft[1],zt=Z(function(e){null==xe||xe(de(e)),function(e){if(G){var t,n=e.key,r=Lt.includes(n);t=re?r?Lt.filter(function(e){return e!==n}):[].concat((0,i.A)(Lt),[n]):[n],jt(t);var o=(0,a.A)((0,a.A)({},e),{},{selectedKeys:t});r?null==le||le(o):null==ie||ie(o)}!re&&Ue.length&&"inline"!==ut&&Xe(Ye)}(e)}),Kt=Z(function(e,t){var n=Ue.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==ut){var r=St(e);n=n.filter(function(e){return!r.has(e)})}(0,p.A)(Ue,n,!0)||Xe(n,!0)}),Vt=Y(ut,Pt,Ve,Ke,ze,kt,Ct,Ot,function(e,t){var n=null!=t?t:!Ue.includes(e);Kt(e,n)},ke);h.useEffect(function(){Le(!0)},[]);var Ht=h.useMemo(function(){return{_internalRenderMenuItem:Se,_internalRenderSubMenuItem:Ne}},[Se,Ne]),Bt="horizontal"!==ut||F?Oe:Oe.map(function(e,t){return h.createElement(x,{key:e.key,overflowDisabled:t>mt},e)}),Ut=h.createElement(f.A,(0,r.A)({id:P,ref:ze,prefixCls:"".concat(y,"-overflow"),component:"ul",itemComponent:be,className:s()(y,"".concat(y,"-root"),"".concat(y,"-").concat(ut),w,(0,o.A)((0,o.A)({},"".concat(y,"-inline-collapsed"),dt),"".concat(y,"-rtl"),Ve),b),dir:_,style:A,role:"menu",tabIndex:C,data:Bt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?Oe.slice(-t):null;return h.createElement(je,{eventKey:Q,title:Ae,disabled:yt,internalPopupClose:0===t,popupClassName:we},n)},maxCount:"horizontal"!==ut||F?f.A.INVALIDATE:f.A.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){gt(e)},onKeyDown:Vt},Re));return h.createElement(M.Provider,{value:Ht},h.createElement(g.Provider,{value:Ke},h.createElement(x,{prefixCls:y,rootClassName:b,mode:ut,openKeys:Ue,rtl:Ve,disabled:I,motion:Fe?se:null,defaultMotions:Fe?fe:null,activeKey:Pt,onActive:Tt,onInactive:Dt,selectedKeys:Lt,inlineIndent:ce,subMenuOpenDelay:j,subMenuCloseDelay:K,forceSubMenuRender:V,builtinPlacements:he,triggerSubMenuAction:ve,getPopupContainer:Ee,itemIcon:me,expandIcon:ge,onItemClick:zt,onOpenChange:Kt},h.createElement(R.Provider,{value:_t},Ut),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(k.Provider,{value:Nt},Te)))))});var Ge=Xe;Ge.Item=be,Ge.SubMenu=je,Ge.ItemGroup=Be,Ge.Divider=Ke;const Qe=Ge},90754(e,t,n){"use strict";n.d(t,{aF:()=>be,Kq:()=>h,Ay:()=>Ae});var r=n(64467),o=n(89379),a=n(5544),i=n(82284),l=n(46942),u=n.n(l),c=n(66588),s=n(8719),f=n(96540),d=n(80045),p=["children"],v=f.createContext({});function h(e){var t=e.children,n=(0,d.A)(e,p);return f.createElement(v.Provider,{value:n},t)}var m=n(23029),g=n(92901),y=n(85501),b=n(49640),A=function(e){(0,y.A)(n,e);var t=(0,b.A)(n);function n(){return(0,m.A)(this,n),t.apply(this,arguments)}return(0,g.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component);const w=A;var E=n(81470),x=n(1233),C=n(26956);var k="none",S="appear",N="enter",_="leave",R="none",M="prepare",P="start",O="active",T="end",D="prepared",I=n(20998);function F(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var L,j,z,K=(L=(0,I.A)(),j="undefined"!=typeof window?window:{},z={animationend:F("Animation","AnimationEnd"),transitionend:F("Transition","TransitionEnd")},L&&("AnimationEvent"in j||delete z.animationend.animation,"TransitionEvent"in j||delete z.transitionend.transition),z),V={};if((0,I.A)()){var H=document.createElement("div");V=H.style}var B={};function U(e){if(B[e])return B[e];var t=K[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,Z.A)(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a},t]};(Object.getOwnPropertyDescriptor(ee,"name")||{}).writable||Object.defineProperty(ee,"name",{value:"default",configurable:!0});var te=[M,P,O,T],ne=[M,D],re=!1;function oe(e){return e===O||e===T}const ae=function(e,t,n){var r=(0,x.A)(R),o=(0,a.A)(r,2),i=o[0],l=o[1],u=ee(),c=(0,a.A)(u,2),s=c[0],d=c[1];var p=t?ne:te;return J(function(){if(i!==R&&i!==T){var e=p.indexOf(i),t=p[e+1],r=n(i);r===re?l(t,!0):t&&s(function(e){function n(){e.isCanceled()||l(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,i]),f.useEffect(function(){return function(){d()}},[]),[function(){l(M,!0)},i]};function ie(e,t,n,i){var l,u,c,s,d=i.motionEnter,p=void 0===d||d,v=i.motionAppear,h=void 0===v||v,m=i.motionLeave,g=void 0===m||m,y=i.motionDeadline,b=i.motionLeaveImmediately,A=i.onAppearPrepare,w=i.onEnterPrepare,R=i.onLeavePrepare,T=i.onAppearStart,I=i.onEnterStart,F=i.onLeaveStart,L=i.onAppearActive,j=i.onEnterActive,z=i.onLeaveActive,K=i.onAppearEnd,V=i.onEnterEnd,H=i.onLeaveEnd,B=i.onVisibleChanged,U=(0,x.A)(),W=(0,a.A)(U,2),$=W[0],q=W[1],Y=(l=k,u=f.useReducer(function(e){return e+1},0),c=(0,a.A)(u,2)[1],s=f.useRef(l),[(0,C.A)(function(){return s.current}),(0,C.A)(function(e){s.current="function"==typeof e?e(s.current):e,c()})]),X=(0,a.A)(Y,2),G=X[0],Z=X[1],ee=(0,x.A)(null),te=(0,a.A)(ee,2),ne=te[0],ie=te[1],le=G(),ue=(0,f.useRef)(!1),ce=(0,f.useRef)(null);function se(){return n()}var fe=(0,f.useRef)(!1);function de(){Z(k),ie(null,!0)}var pe=(0,E._q)(function(e){var t=G();if(t!==k){var n=se();if(!e||e.deadline||e.target===n){var r,o=fe.current;t===S&&o?r=null==K?void 0:K(n,e):t===N&&o?r=null==V?void 0:V(n,e):t===_&&o&&(r=null==H?void 0:H(n,e)),o&&!1!==r&&de()}}}),ve=Q(pe),he=(0,a.A)(ve,1)[0],me=function(e){switch(e){case S:return(0,r.A)((0,r.A)((0,r.A)({},M,A),P,T),O,L);case N:return(0,r.A)((0,r.A)((0,r.A)({},M,w),P,I),O,j);case _:return(0,r.A)((0,r.A)((0,r.A)({},M,R),P,F),O,z);default:return{}}},ge=f.useMemo(function(){return me(le)},[le]),ye=ae(le,!e,function(e){if(e===M){var t=ge[M];return t?t(se()):re}var n;we in ge&&ie((null===(n=ge[we])||void 0===n?void 0:n.call(ge,se(),null))||null);return we===O&&le!==k&&(he(se()),y>0&&(clearTimeout(ce.current),ce.current=setTimeout(function(){pe({deadline:!0})},y))),we===D&&de(),true}),be=(0,a.A)(ye,2),Ae=be[0],we=be[1],Ee=oe(we);fe.current=Ee;var xe=(0,f.useRef)(null);J(function(){if(!ue.current||xe.current!==t){q(t);var n,r=ue.current;ue.current=!0,!r&&t&&h&&(n=S),r&&t&&p&&(n=N),(r&&!t&&g||!r&&b&&!t&&g)&&(n=_);var o=me(n);n&&(e||o[M])?(Z(n),Ae()):Z(k),xe.current=t}},[t]),(0,f.useEffect)(function(){(le===S&&!h||le===N&&!p||le===_&&!g)&&Z(k)},[h,p,g]),(0,f.useEffect)(function(){return function(){ue.current=!1,clearTimeout(ce.current)}},[]);var Ce=f.useRef(!1);(0,f.useEffect)(function(){$&&(Ce.current=!0),void 0!==$&&le===k&&((Ce.current||$)&&(null==B||B($)),Ce.current=!0)},[$,le]);var ke=ne;return ge[M]&&we===P&&(ke=(0,o.A)({transition:"none"},ke)),[le,we,ke,null!=$?$:t]}(Object.getOwnPropertyDescriptor(ae,"name")||{}).writable||Object.defineProperty(ae,"name",{value:"default",configurable:!0});const le=function(e){var t=e;"object"===(0,i.A)(e)&&(t=e.transitionSupport);var n=f.forwardRef(function(e,n){var i=e.visible,l=void 0===i||i,d=e.removeOnLeave,p=void 0===d||d,h=e.forceRender,m=e.children,g=e.motionName,y=e.leavedClassName,b=e.eventProps,A=function(e,n){return!(!e.motionName||!t||!1===n)}(e,f.useContext(v).motion),E=(0,f.useRef)(),x=(0,f.useRef)();var C=ie(A,l,function(){try{return E.current instanceof HTMLElement?E.current:(0,c.Ay)(x.current)}catch(e){return null}},e),S=(0,a.A)(C,4),N=S[0],_=S[1],R=S[2],O=S[3],T=f.useRef(O);O&&(T.current=!0);var D,I=f.useCallback(function(e){E.current=e,(0,s.Xf)(n,e)},[n]),F=(0,o.A)((0,o.A)({},b),{},{visible:l});if(m)if(N===k)D=O?m((0,o.A)({},F),I):!p&&T.current&&y?m((0,o.A)((0,o.A)({},F),{},{className:y}),I):h||!p&&!y?m((0,o.A)((0,o.A)({},F),{},{style:{display:"none"}}),I):null;else{var L;_===M?L="prepare":oe(_)?L="active":_===P&&(L="start");var j=G(g,"".concat(N,"-").concat(L));D=m((0,o.A)((0,o.A)({},F),{},{className:u()(G(g,N),(0,r.A)((0,r.A)({},j,j&&L),g,"string"==typeof g)),style:R}),I)}else D=null;f.isValidElement(D)&&(0,s.f3)(D)&&((0,s.A9)(D)||(D=f.cloneElement(D,{ref:I})));return f.createElement(w,{ref:x},D)});return n.displayName="CSSMotion",n}(q);var ue=n(58168),ce=n(9417),se="add",fe="keep",de="remove",pe="removed";function ve(e){var t;return t=e&&"object"===(0,i.A)(e)&&"key"in e?e:{key:e},(0,o.A)((0,o.A)({},t),{},{key:String(t.key)})}function he(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ve)}var me=["component","children","onVisibleChanged","onAllRemoved"],ge=["status"],ye=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const be=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:le,t=function(t){(0,y.A)(a,t);var n=(0,b.A)(a);function a(){var e;(0,m.A)(this,a);for(var t=arguments.length,i=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,a=t.length,i=he(e),l=he(t);i.forEach(function(e){for(var t=!1,i=r;i1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==de})).forEach(function(t){t.key===e&&(t.status=fe)})}),n}(r,a);return{keyEntities:i.filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==pe||e.status!==de})}}}]),a}(f.Component);return(0,r.A)(t,"defaultProps",{component:"div"}),t}(q),Ae=le},22370(e,t,n){"use strict";n.d(t,{$T:()=>g,ph:()=>b,hN:()=>_});var r=n(60436),o=n(5544),a=n(80045),i=n(96540),l=n(89379),u=n(40961),c=n(58168),s=n(64467),f=n(46942),d=n.n(f),p=n(90754),v=n(82284),h=n(16928),m=n(72065);const g=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,l=e.duration,u=void 0===l?4.5:l,f=e.showProgress,p=e.pauseOnHover,g=void 0===p||p,y=e.eventKey,b=e.content,A=e.closable,w=e.closeIcon,E=void 0===w?"x":w,x=e.props,C=e.onClick,k=e.onNoticeClose,S=e.times,N=e.hovering,_=i.useState(!1),R=(0,o.A)(_,2),M=R[0],P=R[1],O=i.useState(0),T=(0,o.A)(O,2),D=T[0],I=T[1],F=i.useState(0),L=(0,o.A)(F,2),j=L[0],z=L[1],K=N||M,V=u>0&&f,H=function(){k(y)};i.useEffect(function(){if(!K&&u>0){var e=Date.now()-j,t=setTimeout(function(){H()},1e3*u-j);return function(){g&&clearTimeout(t),z(Date.now()-e)}}},[u,K,S]),i.useEffect(function(){if(!K&&V&&(g||0===j)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){var r=e+j-t,o=Math.min(r/(1e3*u),1);I(100*o),o<1&&n()})}(),function(){g&&cancelAnimationFrame(e)}}},[u,j,K,V,S]);var B=i.useMemo(function(){return"object"===(0,v.A)(A)&&null!==A?A:A?{closeIcon:E}:{}},[A,E]),U=(0,m.A)(B,!0),W=100-(!D||D<0?0:D>100?100:D),$="".concat(n,"-notice");return i.createElement("div",(0,c.A)({},x,{ref:t,className:d()($,a,(0,s.A)({},"".concat($,"-closable"),A)),style:r,onMouseEnter:function(e){var t;P(!0),null==x||null===(t=x.onMouseEnter)||void 0===t||t.call(x,e)},onMouseLeave:function(e){var t;P(!1),null==x||null===(t=x.onMouseLeave)||void 0===t||t.call(x,e)},onClick:C}),i.createElement("div",{className:"".concat($,"-content")},b),A&&i.createElement("a",(0,c.A)({tabIndex:0,className:"".concat($,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==h.A.ENTER||H()},"aria-label":"Close"},U,{onClick:function(e){e.preventDefault(),e.stopPropagation(),H()}}),B.closeIcon),V&&i.createElement("progress",{className:"".concat($,"-progress"),max:"100",value:W},W+"%"))});var y=i.createContext({});const b=function(e){var t=e.children,n=e.classNames;return i.createElement(y.Provider,{value:{classNames:n}},t)};const A=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};e&&"object"===(0,v.A)(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16);return[!!e,o]};var w=["className","style","classNames","styles"];const E=function(e){var t=e.configList,n=e.placement,u=e.prefixCls,f=e.className,v=e.style,h=e.motion,m=e.onAllNoticeRemoved,b=e.onNoticeClose,E=e.stack,x=(0,i.useContext)(y).classNames,C=(0,i.useRef)({}),k=(0,i.useState)(null),S=(0,o.A)(k,2),N=S[0],_=S[1],R=(0,i.useState)([]),M=(0,o.A)(R,2),P=M[0],O=M[1],T=t.map(function(e){return{config:e,key:String(e.key)}}),D=A(E),I=(0,o.A)(D,2),F=I[0],L=I[1],j=L.offset,z=L.threshold,K=L.gap,V=F&&(P.length>0||T.length<=z),H="function"==typeof h?h(n):h;return(0,i.useEffect)(function(){F&&P.length>1&&O(function(e){return e.filter(function(e){return T.some(function(t){var n=t.key;return e===n})})})},[P,T,F]),(0,i.useEffect)(function(){var e,t;F&&C.current[null===(e=T[T.length-1])||void 0===e?void 0:e.key]&&_(C.current[null===(t=T[T.length-1])||void 0===t?void 0:t.key])},[T,F]),i.createElement(p.aF,(0,c.A)({key:n,className:d()(u,"".concat(u,"-").concat(n),null==x?void 0:x.list,f,(0,s.A)((0,s.A)({},"".concat(u,"-stack"),!!F),"".concat(u,"-stack-expanded"),V)),style:v,keys:T,motionAppear:!0},H,{onAllRemoved:function(){m(n)}}),function(e,t){var o=e.config,s=e.className,f=e.style,p=e.index,v=o,h=v.key,m=v.times,y=String(h),A=o,E=A.className,k=A.style,S=A.classNames,_=A.styles,R=(0,a.A)(A,w),M=T.findIndex(function(e){return e.key===y}),D={};if(F){var I=T.length-1-(M>-1?M:p-1),L="top"===n||"bottom"===n?"-50%":"0";if(I>0){var z,H,B;D.height=V?null===(z=C.current[y])||void 0===z?void 0:z.offsetHeight:null==N?void 0:N.offsetHeight;for(var U=0,W=0;W-1?C.current[y]=e:delete C.current[y]},prefixCls:u,classNames:S,styles:_,className:d()(E,null==x?void 0:x.notice),style:k,times:m,key:h,eventKey:h,onNoticeClose:b,hovering:F&&P.length>0})))})};const x=i.forwardRef(function(e,t){var n=e.prefixCls,a=void 0===n?"rc-notification":n,c=e.container,s=e.motion,f=e.maxCount,d=e.className,p=e.style,v=e.onAllRemoved,h=e.stack,m=e.renderNotifications,g=i.useState([]),y=(0,o.A)(g,2),b=y[0],A=y[1],w=function(e){var t,n=b.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),A(function(t){return t.filter(function(t){return t.key!==e})})};i.useImperativeHandle(t,function(){return{open:function(e){A(function(t){var n,o=(0,r.A)(t),a=o.findIndex(function(t){return t.key===e.key}),i=(0,l.A)({},e);a>=0?(i.times=((null===(n=t[a])||void 0===n?void 0:n.times)||0)+1,o[a]=i):(i.times=0,o.push(i));return f>0&&o.length>f&&(o=o.slice(-f)),o})},close:function(e){w(e)},destroy:function(){A([])}}});var x=i.useState({}),C=(0,o.A)(x,2),k=C[0],S=C[1];i.useEffect(function(){var e={};b.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(k).forEach(function(t){e[t]=e[t]||[]}),S(e)},[b]);var N=function(e){S(function(t){var n=(0,l.A)({},t);return(n[e]||[]).length||delete n[e],n})},_=i.useRef(!1);if(i.useEffect(function(){Object.keys(k).length>0?_.current=!0:_.current&&(null==v||v(),_.current=!1)},[k]),!c)return null;var R=Object.keys(k);return(0,u.createPortal)(i.createElement(i.Fragment,null,R.map(function(e){var t=k[e],n=i.createElement(E,{key:e,configList:t,placement:e,prefixCls:a,className:null==d?void 0:d(e),style:null==p?void 0:p(e),motion:s,onNoticeClose:w,onAllNoticeRemoved:N,stack:h});return m?m(n,{prefixCls:a,key:e}):n})),c)});var C=n(81470),k=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],S=function(){return document.body},N=0;function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?S:t,l=e.motion,u=e.prefixCls,c=e.maxCount,s=e.className,f=e.style,d=e.onAllRemoved,p=e.stack,v=e.renderNotifications,h=(0,a.A)(e,k),m=i.useState(),g=(0,o.A)(m,2),y=g[0],b=g[1],A=i.useRef(),w=i.createElement(x,{container:y,ref:A,prefixCls:u,motion:l,maxCount:c,className:s,style:f,onAllRemoved:d,stack:p,renderNotifications:v}),E=i.useState([]),_=(0,o.A)(E,2),R=_[0],M=_[1],P=(0,C._q)(function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;rI});var r=n(58168),o=n(89379),a=n(5544),i=n(80045),l=n(96540),u=n(46942),c=n.n(u),s=n(18462),f=n(30981),d=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],p=void 0;function v(e,t){var n=e.prefixCls,a=e.invalidate,u=e.item,f=e.renderItem,v=e.responsive,h=e.responsiveDisabled,m=e.registerSize,g=e.itemKey,y=e.className,b=e.style,A=e.children,w=e.display,E=e.order,x=e.component,C=void 0===x?"div":x,k=(0,i.A)(e,d),S=v&&!w;function N(e){m(g,e)}l.useEffect(function(){return function(){N(null)}},[]);var _,R=f&&u!==p?f(u,{index:E}):A;a||(_={opacity:S?0:1,height:S?0:p,overflowY:S?"hidden":p,order:v?E:p,pointerEvents:S?"none":p,position:S?"absolute":p});var M={};S&&(M["aria-hidden"]=!0);var P=l.createElement(C,(0,r.A)({className:c()(!a&&n,y),style:(0,o.A)((0,o.A)({},_),b)},M,k,{ref:t}),R);return v&&(P=l.createElement(s.A,{onResize:function(e){N(e.offsetWidth)},disabled:h},P)),P}var h=l.forwardRef(v);h.displayName="Item";const m=h;var g=n(26956),y=n(40961),b=n(25371);function A(){var e=l.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,b.A)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){(0,y.unstable_batchedUpdates)(function(){e.current.forEach(function(e){e()}),e.current=null})})),e.current.push(t)}}function w(e,t){var n=l.useState(t),r=(0,a.A)(n,2),o=r[0],i=r[1];return[o,(0,g.A)(function(t){e(function(){i(t)})})]}var E=l.createContext(null),x=["component"],C=["className"],k=["className"],S=function(e,t){var n=l.useContext(E);if(!n){var o=e.component,a=void 0===o?"div":o,u=(0,i.A)(e,x);return l.createElement(a,(0,r.A)({},u,{ref:t}))}var s=n.className,f=(0,i.A)(n,C),d=e.className,p=(0,i.A)(e,k);return l.createElement(E.Provider,{value:null},l.createElement(m,(0,r.A)({ref:t,className:c()(s,d)},f,p)))},N=l.forwardRef(S);N.displayName="RawItem";const _=N;var R=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],M="responsive",P="invalidate";function O(e){return"+ ".concat(e.length," ...")}function T(e,t){var n=e.prefixCls,u=void 0===n?"rc-overflow":n,d=e.data,p=void 0===d?[]:d,v=e.renderItem,h=e.renderRawItem,g=e.itemKey,y=e.itemWidth,b=void 0===y?10:y,x=e.ssr,C=e.style,k=e.className,S=e.maxCount,N=e.renderRest,_=e.renderRawRest,T=e.prefix,D=e.suffix,I=e.component,F=void 0===I?"div":I,L=e.itemComponent,j=e.onVisibleChange,z=(0,i.A)(e,R),K="full"===x,V=A(),H=w(V,null),B=(0,a.A)(H,2),U=B[0],W=B[1],$=U||0,q=w(V,new Map),Y=(0,a.A)(q,2),X=Y[0],G=Y[1],Q=w(V,0),J=(0,a.A)(Q,2),Z=J[0],ee=J[1],te=w(V,0),ne=(0,a.A)(te,2),re=ne[0],oe=ne[1],ae=w(V,0),ie=(0,a.A)(ae,2),le=ie[0],ue=ie[1],ce=w(V,0),se=(0,a.A)(ce,2),fe=se[0],de=se[1],pe=(0,l.useState)(null),ve=(0,a.A)(pe,2),he=ve[0],me=ve[1],ge=(0,l.useState)(null),ye=(0,a.A)(ge,2),be=ye[0],Ae=ye[1],we=l.useMemo(function(){return null===be&&K?Number.MAX_SAFE_INTEGER:be||0},[be,U]),Ee=(0,l.useState)(!1),xe=(0,a.A)(Ee,2),Ce=xe[0],ke=xe[1],Se="".concat(u,"-item"),Ne=Math.max(Z,re),_e=S===M,Re=p.length&&_e,Me=S===P,Pe=Re||"number"==typeof S&&p.length>S,Oe=(0,l.useMemo)(function(){var e=p;return Re?e=null===U&&K?p:p.slice(0,Math.min(p.length,$/b)):"number"==typeof S&&(e=p.slice(0,S)),e},[p,b,U,S,Re]),Te=(0,l.useMemo)(function(){return Re?p.slice(we+1):p.slice(Oe.length)},[p,Oe,Re,we]),De=(0,l.useCallback)(function(e,t){var n;return"function"==typeof g?g(e):null!==(n=g&&(null==e?void 0:e[g]))&&void 0!==n?n:t},[g]),Ie=(0,l.useCallback)(v||function(e){return e},[v]);function Fe(e,t,n){(be!==e||void 0!==t&&t!==he)&&(Ae(e),n||(ke(e$){Fe(r-1,e-o-fe+re);break}}D&&je(0)+fe>$&&me(null)}},[$,X,re,le,fe,De,Oe]);var ze=Ce&&!!Te.length,Ke={};null!==he&&Re&&(Ke={position:"absolute",left:he,top:0});var Ve={prefixCls:Se,responsive:Re,component:L,invalidate:Me},He=h?function(e,t){var n=De(e,t);return l.createElement(E.Provider,{key:n,value:(0,o.A)((0,o.A)({},Ve),{},{order:t,item:e,itemKey:n,registerSize:Le,display:t<=we})},h(e,t))}:function(e,t){var n=De(e,t);return l.createElement(m,(0,r.A)({},Ve,{order:t,key:n,item:e,renderItem:Ie,itemKey:n,registerSize:Le,display:t<=we}))},Be={order:ze?we:Number.MAX_SAFE_INTEGER,className:"".concat(Se,"-rest"),registerSize:function(e,t){oe(t),ee(re)},display:ze},Ue=N||O,We=_?l.createElement(E.Provider,{value:(0,o.A)((0,o.A)({},Ve),Be)},_(Te)):l.createElement(m,(0,r.A)({},Ve,Be),"function"==typeof Ue?Ue(Te):Ue),$e=l.createElement(F,(0,r.A)({className:c()(!Me&&u,k),style:C,ref:t},z),T&&l.createElement(m,(0,r.A)({},Ve,{responsive:_e,responsiveDisabled:!Re,order:-1,className:"".concat(Se,"-prefix"),registerSize:function(e,t){ue(t)},display:!0}),T),Oe.map(He),Pe?We:null,D&&l.createElement(m,(0,r.A)({},Ve,{responsive:_e,responsiveDisabled:!Re,order:we,className:"".concat(Se,"-suffix"),registerSize:function(e,t){de(t)},display:!0,style:Ke}),D));return _e?l.createElement(s.A,{onResize:function(e,t){W(t.clientWidth)},disabled:!Re},$e):$e}var D=l.forwardRef(T);D.displayName="Overflow",D.Item=_,D.RESPONSIVE=M,D.INVALIDATE=P;const I=D},9479(e,t,n){"use strict";n.d(t,{A:()=>E});var r=n(64467),o=n(58168),a=n(82284),i=n(89379),l=n(5544),u=n(46942),c=n.n(u),s=n(12533),f=n(16928),d=n(72065),p=(n(68210),n(96540)),v=n(80651),h=[10,20,50,100];const m=function(e){var t=e.pageSizeOptions,n=void 0===t?h:t,r=e.locale,o=e.changeSize,a=e.pageSize,i=e.goButton,u=e.quickGo,c=e.rootPrefixCls,s=e.disabled,d=e.buildOptionText,v=e.showSizeChanger,m=e.sizeChangerRender,g=p.useState(""),y=(0,l.A)(g,2),b=y[0],A=y[1],w=function(){return!b||Number.isNaN(b)?void 0:Number(b)},E="function"==typeof d?d:function(e){return"".concat(e," ").concat(r.items_per_page)},x=function(e){""!==b&&(e.keyCode!==f.A.ENTER&&"click"!==e.type||(A(""),null==u||u(w())))},C="".concat(c,"-options");if(!v&&!u)return null;var k=null,S=null,N=null;return v&&m&&(k=m({disabled:s,size:a,onSizeChange:function(e){null==o||o(Number(e))},"aria-label":r.page_size,className:"".concat(C,"-size-changer"),options:(n.some(function(e){return e.toString()===a.toString()})?n:n.concat([a]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})).map(function(e){return{label:E(e),value:e}})})),u&&(i&&(N="boolean"==typeof i?p.createElement("button",{type:"button",onClick:x,onKeyUp:x,disabled:s,className:"".concat(C,"-quick-jumper-button")},r.jump_to_confirm):p.createElement("span",{onClick:x,onKeyUp:x},i)),S=p.createElement("div",{className:"".concat(C,"-quick-jumper")},r.jump_to,p.createElement("input",{disabled:s,type:"text",value:b,onChange:function(e){A(e.target.value)},onKeyUp:x,onBlur:function(e){i||""===b||(A(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==u||u(w()))},"aria-label":r.page}),r.page,N)),p.createElement("li",{className:C},k,S)};const g=function(e){var t=e.rootPrefixCls,n=e.page,o=e.active,a=e.className,i=e.showTitle,l=e.onClick,u=e.onKeyPress,s=e.itemRender,f="".concat(t,"-item"),d=c()(f,"".concat(f,"-").concat(n),(0,r.A)((0,r.A)({},"".concat(f,"-active"),o),"".concat(f,"-disabled"),!n),a),v=s(n,"page",p.createElement("a",{rel:"nofollow"},n));return v?p.createElement("li",{title:i?String(n):null,className:d,onClick:function(){l(n)},onKeyDown:function(e){u(e,l,n)},tabIndex:0},v):null};var y=function(e,t,n){return n};function b(){}function A(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function w(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}const E=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,u=e.selectPrefixCls,h=void 0===u?"rc-select":u,E=e.className,x=e.current,C=e.defaultCurrent,k=void 0===C?1:C,S=e.total,N=void 0===S?0:S,_=e.pageSize,R=e.defaultPageSize,M=void 0===R?10:R,P=e.onChange,O=void 0===P?b:P,T=e.hideOnSinglePage,D=e.align,I=e.showPrevNextJumpers,F=void 0===I||I,L=e.showQuickJumper,j=e.showLessItems,z=e.showTitle,K=void 0===z||z,V=e.onShowSizeChange,H=void 0===V?b:V,B=e.locale,U=void 0===B?v.A:B,W=e.style,$=e.totalBoundaryShowSizeChanger,q=void 0===$?50:$,Y=e.disabled,X=e.simple,G=e.showTotal,Q=e.showSizeChanger,J=void 0===Q?N>q:Q,Z=e.sizeChangerRender,ee=e.pageSizeOptions,te=e.itemRender,ne=void 0===te?y:te,re=e.jumpPrevIcon,oe=e.jumpNextIcon,ae=e.prevIcon,ie=e.nextIcon,le=p.useRef(null),ue=(0,s.A)(10,{value:_,defaultValue:M}),ce=(0,l.A)(ue,2),se=ce[0],fe=ce[1],de=(0,s.A)(1,{value:x,defaultValue:k,postState:function(e){return Math.max(1,Math.min(e,w(void 0,se,N)))}}),pe=(0,l.A)(de,2),ve=pe[0],he=pe[1],me=p.useState(ve),ge=(0,l.A)(me,2),ye=ge[0],be=ge[1];(0,p.useEffect)(function(){be(ve)},[ve]);var Ae=Math.max(1,ve-(j?3:5)),we=Math.min(w(void 0,se,N),ve+(j?3:5));function Ee(t,r){var o=t||p.createElement("button",{type:"button","aria-label":r,className:"".concat(n,"-item-link")});return"function"==typeof t&&(o=p.createElement(t,(0,i.A)({},e))),o}function xe(e){var t=e.target.value,n=w(void 0,se,N);return""===t?t:Number.isNaN(Number(t))?ye:t>=n?n:Number(t)}var Ce=N>se&&L;function ke(e){var t=xe(e);switch(t!==ye&&be(t),e.keyCode){case f.A.ENTER:Se(t);break;case f.A.UP:Se(t-1);break;case f.A.DOWN:Se(t+1)}}function Se(e){if(function(e){return A(e)&&e!==ve&&A(N)&&N>0}(e)&&!Y){var t=w(void 0,se,N),n=e;return e>t?n=t:e<1&&(n=1),n!==ye&&be(n),he(n),null==O||O(n,se),n}return ve}var Ne=ve>1,_e=ve2?n-2:0),o=2;oN?N:ve*se])),je=null,ze=w(void 0,se,N);if(T&&N<=se)return null;var Ke=[],Ve={rootPrefixCls:n,onClick:Se,onKeyPress:Te,showTitle:K,itemRender:ne,page:-1},He=ve-1>0?ve-1:0,Be=ve+1=2*Ye&&3!==ve&&(Ke[0]=p.cloneElement(Ke[0],{className:c()("".concat(n,"-item-after-jump-prev"),Ke[0].props.className)}),Ke.unshift(Ie)),ze-ve>=2*Ye&&ve!==ze-2){var rt=Ke[Ke.length-1];Ke[Ke.length-1]=p.cloneElement(rt,{className:c()("".concat(n,"-item-before-jump-next"),rt.props.className)}),Ke.push(je)}1!==et&&Ke.unshift(p.createElement(g,(0,o.A)({},Ve,{key:1,page:1}))),tt!==ze&&Ke.push(p.createElement(g,(0,o.A)({},Ve,{key:ze,page:ze})))}var ot=function(e){var t=ne(e,"prev",Ee(ae,"prev page"));return p.isValidElement(t)?p.cloneElement(t,{disabled:!Ne}):t}(He);if(ot){var at=!Ne||!ze;ot=p.createElement("li",{title:K?U.prev_page:null,onClick:Re,tabIndex:at?null:0,onKeyDown:function(e){Te(e,Re)},className:c()("".concat(n,"-prev"),(0,r.A)({},"".concat(n,"-disabled"),at)),"aria-disabled":at},ot)}var it,lt,ut=function(e){var t=ne(e,"next",Ee(ie,"next page"));return p.isValidElement(t)?p.cloneElement(t,{disabled:!_e}):t}(Be);ut&&(X?(it=!_e,lt=Ne?0:null):lt=(it=!_e||!ze)?null:0,ut=p.createElement("li",{title:K?U.next_page:null,onClick:Me,tabIndex:lt,onKeyDown:function(e){Te(e,Me)},className:c()("".concat(n,"-next"),(0,r.A)({},"".concat(n,"-disabled"),it)),"aria-disabled":it},ut));var ct=c()(n,E,(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},"".concat(n,"-start"),"start"===D),"".concat(n,"-center"),"center"===D),"".concat(n,"-end"),"end"===D),"".concat(n,"-simple"),X),"".concat(n,"-disabled"),Y));return p.createElement("ul",(0,o.A)({className:ct,style:W,ref:le},Fe),Le,ot,X?qe:Ke,ut,p.createElement(m,{locale:U,rootPrefixCls:n,disabled:Y,selectPrefixCls:h,changeSize:function(e){var t=w(e,se,N),n=ve>t&&0!==t?t:ve;fe(e),be(n),null==H||H(ve,e),he(n),null==O||O(n,e)},pageSize:se,pageSizeOptions:ee,quickGo:Ce?Se:null,goButton:$e,showSizeChanger:J,sizeChangerRender:Z}))}},96069(e,t,n){"use strict";n.d(t,{A:()=>r});const r={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},80651(e,t,n){"use strict";n.d(t,{A:()=>r});const r={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}},67018(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"}},52699(e,t,n){"use strict";n.d(t,{A:()=>A});var r=n(74353),o=n.n(r),a=n(46986),i=n.n(a),l=n(21840),u=n.n(l),c=n(8134),s=n.n(c),f=n(28623),d=n.n(f),p=n(97375),v=n.n(p),h=n(90445),m=n.n(h);o().extend(m()),o().extend(v()),o().extend(i()),o().extend(u()),o().extend(s()),o().extend(d()),o().extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}});var g={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},y=function(e){return g[e]||e.split("_")[0]},b=function(){};const A={getNow:function(){var e=o()();return"function"==typeof e.tz?e.tz():e},getFixedDate:function(e){return o()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return o()().locale(y(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(y(e)).weekday(0)},getWeek:function(e,t){return t.locale(y(e)).week()},getShortWeekDays:function(e){return o()().locale(y(e)).localeData().weekdaysMin()},getShortMonths:function(e){return o()().locale(y(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(y(e)).format(n)},parse:function(e,t,n){for(var r=y(e),a=0;apt,Ay:()=>At});var r=n(58168),o=n(60436),a=n(89379),i=n(5544),l=n(81470),u=n(30981),c=n(19853),s=n(72065),f=n(68210),d=n(96540),p=n(64467),v=n(62427),h=n(46942),m=n.n(h);const g=d.createContext(null);var y={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};const b=function(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,a=e.transitionName,i=e.getPopupContainer,l=e.children,u=e.range,c=e.placement,s=e.builtinPlacements,f=void 0===s?y:s,h=e.direction,b=e.visible,A=e.onClose,w=d.useContext(g).prefixCls,E="".concat(w,"-dropdown"),x=function(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}(c,"rtl"===h);return d.createElement(v.A,{showAction:[],hideAction:["click"],popupPlacement:x,builtinPlacements:f,prefixCls:E,popupTransitionName:a,popup:t,popupAlign:o,popupVisible:b,popupClassName:m()(r,(0,p.A)((0,p.A)({},"".concat(E,"-range"),u),"".concat(E,"-rtl"),"rtl"===h)),popupStyle:n,stretch:"minWidth",getPopupContainer:i,onPopupVisibleChange:function(e){e||A()}},l)};function A(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length2&&void 0!==arguments[2]?arguments[2]:[],r=d.useState([!1,!1]),o=(0,i.A)(r,2),a=o[0],l=o[1];return[d.useMemo(function(){return a.map(function(r,o){if(r)return!0;var a=e[o];return!!a&&(!n[o]&&!a||!(!a||!t(a,{activeIndex:o})))})},[e,a,t,n]),function(e,t){l(function(n){return E(n,t,e)})}]}function R(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function M(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,i=t.showMillisecond,l=t.use12Hours;return d.useMemo(function(){return function(e,t,n,r,o,i){var l=e.fieldDateTimeFormat,u=e.fieldDateFormat,c=e.fieldTimeFormat,s=e.fieldMonthFormat,f=e.fieldYearFormat,d=e.fieldWeekFormat,p=e.fieldQuarterFormat,v=e.yearFormat,h=e.cellYearFormat,m=e.cellQuarterFormat,g=e.dayFormat,y=e.cellDateFormat,b=R(t,n,r,o,i);return(0,a.A)((0,a.A)({},e),{},{fieldDateTimeFormat:l||"YYYY-MM-DD ".concat(b),fieldDateFormat:u||"YYYY-MM-DD",fieldTimeFormat:c||b,fieldMonthFormat:s||"YYYY-MM",fieldYearFormat:f||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:v||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:m||"[Q]Q",cellDateFormat:y||g||"D"})}(e,n,r,o,i,l)},[e,n,r,o,i,l])}var P=n(82284);function O(e,t,n){return null!=n?n:t.some(function(t){return e.includes(t)})}var T=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function D(e){return e&&"string"==typeof e}function I(e,t,n,r){return[e,t,n,r].some(function(e){return void 0!==e})}function F(e,t,n,r,o){var a=t,i=n,l=r;if(e||a||i||l||o){if(e){var u,c,s,f=[a,i,l].some(function(e){return!1===e}),d=[a,i,l].some(function(e){return!0===e}),p=!!f||!d;a=null!==(u=a)&&void 0!==u?u:p,i=null!==(c=i)&&void 0!==c?c:p,l=null!==(s=l)&&void 0!==s?s:p}}else a=!0,i=!0,l=!0;return[a,i,l,o]}function L(e){var t=e.showTime,n=function(e){var t=x(e,T),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o="object"===(0,P.A)(o)?o.format:o),"time"===r&&(t.format=o),[t,o]}(e),r=(0,i.A)(n,2),o=r[0],l=r[1],u=t&&"object"===(0,P.A)(t)?t:{},c=(0,a.A)((0,a.A)({defaultOpenValue:u.defaultOpenValue||u.defaultValue},o),u),s=c.showMillisecond,f=c.showHour,d=c.showMinute,p=c.showSecond,v=F(I(f,d,p,s),f,d,p,s),h=(0,i.A)(v,3);return f=h[0],d=h[1],p=h[2],[c,(0,a.A)((0,a.A)({},c),{},{showHour:f,showMinute:d,showSecond:p,showMillisecond:s}),c.format,l]}function j(e,t,n,r,o){if("datetime"===e||"time"===e){for(var l=r,u=C(e,o,null),c=[t,n],s=0;s1&&void 0!==arguments[1]&&arguments[1];return d.useMemo(function(){var n=e?w(e):e;return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function te(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,u=void 0===o?"date":o,c=e.prefixCls,s=void 0===c?"rc-picker":c,f=e.styles,p=void 0===f?{}:f,v=e.classNames,h=void 0===v?{}:v,m=e.order,g=void 0===m||m,y=e.components,b=void 0===y?{}:y,A=e.inputRender,E=e.allowClear,x=e.clearIcon,k=e.needConfirm,S=e.multiple,N=e.format,_=e.inputReadOnly,R=e.disabledDate,O=e.minDate,T=e.maxDate,D=e.showTime,I=e.value,F=e.defaultValue,K=e.pickerValue,V=e.defaultPickerValue,H=ee(I),B=ee(F),U=ee(K),W=ee(V),$="date"===u&&D?"datetime":u,q="time"===$||"datetime"===$,Y=q||S,G=null!=k?k:q,Q=L(e),J=(0,i.A)(Q,4),Z=J[0],te=J[1],ne=J[2],re=J[3],oe=M(r,te),ae=d.useMemo(function(){return j($,ne,re,Z,oe)},[$,ne,re,Z,oe]);var ie=d.useMemo(function(){return(0,a.A)((0,a.A)({},e),{},{prefixCls:s,locale:oe,picker:u,styles:p,classNames:h,order:g,components:(0,a.A)({input:A},b),clearIcon:z(s,E,x),showTime:ae,value:H,defaultValue:B,pickerValue:U,defaultPickerValue:W},null==t?void 0:t())},[e]),le=function(e,t,n){return d.useMemo(function(){var r=w(C(e,t,n)),o=r[0],a="object"===(0,P.A)(o)&&"mask"===o.type?o.format:null;return[r.map(function(e){return"string"==typeof e||"function"==typeof e?e:e.format}),a]},[e,t,n])}($,oe,N),ue=(0,i.A)(le,2),ce=ue[0],se=ue[1],fe=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(ce,_,S),de=function(e,t,n,r,o){return(0,l._q)(function(a,i){return!(!n||!n(a,i))||!(!r||!e.isAfter(r,a)||X(e,t,r,a,i.type))||!(!o||!e.isAfter(a,o)||X(e,t,o,a,i.type))})}(n,r,R,O,T),pe=function(e,t,n,r){return(0,l._q)(function(o,i){var l=(0,a.A)({type:t},i);if(delete l.activeIndex,!e.isValidate(o)||n&&n(o,l))return!0;if(("date"===t||"time"===t)&&r){var u,c=i&&1===i.activeIndex?"end":"start",s=(null===(u=r.disabledTime)||void 0===u?void 0:u.call(r,o,c,{from:l.from}))||{},f=s.disabledHours,d=s.disabledMinutes,p=s.disabledSeconds,v=s.disabledMilliseconds,h=r.disabledHours,m=r.disabledMinutes,g=r.disabledSeconds,y=f||h,b=d||m,A=p||g,w=e.getHour(o),E=e.getMinute(o),x=e.getSecond(o),C=e.getMillisecond(o);if(y&&y().includes(w))return!0;if(b&&b(w).includes(E))return!0;if(A&&A(w,E).includes(x))return!0;if(v&&v(w,E,x).includes(C))return!0}return!1})}(n,u,de,ae);return[d.useMemo(function(){return(0,a.A)((0,a.A)({},ie),{},{needConfirm:G,inputReadOnly:fe,disabledDate:de})},[ie,G,fe,de]),$,Y,ce,se,pe]}var ne=n(25371);function re(e,t){var n,r,o,a,u,c,s,f,p,v,h,m,g=arguments.length>3?arguments[3]:void 0,y=!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every(function(e){return e})&&e,b=(n=y,r=t||!1,o=g,a=(0,l.vz)(r,{value:n}),u=(0,i.A)(a,2),c=u[0],s=u[1],f=d.useRef(n),p=d.useRef(),v=function(){ne.A.cancel(p.current)},h=(0,l._q)(function(){s(f.current),o&&c!==f.current&&o(f.current)}),m=(0,l._q)(function(e,t){v(),f.current=e,e||t?h():p.current=(0,ne.A)(h)}),d.useEffect(function(){return v},[]),[c,m]),A=(0,i.A)(b,2),w=A[0],E=A[1];return[w,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!w||E(e,t.force)}]}function oe(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}}),t}function ae(e,t){return d.useMemo(function(){return e||(t?((0,f.Ay)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(e){var t=(0,i.A)(e,2);return{label:t[0],value:t[1]}})):[])},[e,t])}function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=d.useRef(t);r.current=t,(0,u.o)(function(){if(!e){var t=(0,ne.A)(function(){r.current(e)},n);return function(){ne.A.cancel(t)}}r.current(e)},[e])}function le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d.useState(0),o=(0,i.A)(r,2),a=o[0],l=o[1],u=d.useState(!1),c=(0,i.A)(u,2),s=c[0],f=c[1],p=d.useRef([]),v=d.useRef(null),h=d.useRef(null),m=function(e){v.current=e};return ie(s||n,function(){s||(p.current=[],m(null))}),d.useEffect(function(){s&&p.current.push(a)},[s,a]),[s,function(e){f(e)},function(e){return e&&(h.current=e),h.current},a,l,function(n){var r=p.current,o=new Set(r.filter(function(e){return n[e]||t[e]})),a=0===r[r.length-1]?1:0;return o.size>=2||e[a]?null:a},p.current,m,function(e){return v.current===e}]}function ue(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var ce=[];function se(e,t,n,r,o,a,c,s){var f=arguments.length>8&&void 0!==arguments[8]?arguments[8]:ce,p=arguments.length>9&&void 0!==arguments[9]?arguments[9]:ce,v=arguments.length>10&&void 0!==arguments[10]?arguments[10]:ce,h=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,g=arguments.length>13?arguments[13]:void 0,y="time"===c,b=a||0,A=function(t){var r=e.getNow();return y&&(r=Z(e,r)),f[t]||n[t]||r},w=(0,i.A)(p,2),E=w[0],x=w[1],C=(0,l.vz)(function(){return A(0)},{value:E}),k=(0,i.A)(C,2),S=k[0],N=k[1],_=(0,l.vz)(function(){return A(1)},{value:x}),R=(0,i.A)(_,2),M=R[0],P=R[1],O=d.useMemo(function(){var t=[S,M][b];return y?t:Z(e,t,v[b])},[y,S,M,b,e,v]),T=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[N,P][b])(n);var a=[S,M];a[b]=n,!h||X(e,t,S,a[0],c)&&X(e,t,M,a[1],c)||h(a,{source:o,range:1===b?"end":"start",mode:r})},D=d.useRef(null);return(0,u.A)(function(){if(o&&!f[b]){var r=y?null:e.getNow();if(null!==D.current&&D.current!==b?r=[S,M][1^b]:n[b]?r=0===b?n[0]:function(n,r){if(s){var o={date:"month",week:"month",month:"year",quarter:"year"}[c];if(o&&!X(e,t,n,r,o))return ue(e,c,r,-1);if("year"===c&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return ue(e,c,r,-1)}return r}(n[0],n[1]):n[1^b]&&(r=n[1^b]),r){m&&e.isAfter(m,r)&&(r=m);var a=s?ue(e,c,r,1):r;g&&e.isAfter(a,g)&&(r=s?ue(e,c,g,-1):g),T(r,"reset")}}},[o,b,n[b]]),d.useEffect(function(){D.current=o?b:null},[o,b]),(0,u.A)(function(){o&&f&&f[b]&&T(f[b],"reset")},[o,b]),[O,T]}function fe(e,t){var n=d.useRef(e),r=d.useState({}),o=(0,i.A)(r,2)[1],a=function(e){return e&&void 0!==t?t:n.current};return[a,function(e){n.current=e,o({})},a(!0)]}var de=[];function pe(e,t,n){return[function(r){return r.map(function(r){return J(r,{generateConfig:e,locale:t,format:n[0]})})},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,a=0;a2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,i=[],l=n>=1?0|n:1,u=e;u<=t;u+=l){var c=o.includes(u);c&&r||i.push({label:A(u,a),value:u,disabled:c})}return i}function we(e){var t=arguments.length>2?arguments[2]:void 0,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},r=n.use12Hours,l=n.hourStep,u=void 0===l?1:l,c=n.minuteStep,s=void 0===c?1:c,f=n.secondStep,p=void 0===f?1:f,v=n.millisecondStep,h=void 0===v?100:v,m=n.hideDisabledOptions,g=n.disabledTime,y=n.disabledHours,b=n.disabledMinutes,w=n.disabledSeconds,E=d.useMemo(function(){return t||e.getNow()},[t,e]),x=d.useCallback(function(e){var t=(null==g?void 0:g(e))||{};return[t.disabledHours||y||be,t.disabledMinutes||b||be,t.disabledSeconds||w||be,t.disabledMilliseconds||be]},[g,y,b,w]),C=d.useMemo(function(){return x(E)},[E,x]),k=(0,i.A)(C,4),S=k[0],N=k[1],_=k[2],R=k[3],M=d.useCallback(function(e,t,n,o){var i=Ae(0,23,u,m,e());return[r?i.map(function(e){return(0,a.A)((0,a.A)({},e),{},{label:A(e.value%12||12,2)})}):i,function(e){return Ae(0,59,s,m,t(e))},function(e,t){return Ae(0,59,p,m,n(e,t))},function(e,t,n){return Ae(0,999,h,m,o(e,t,n),3)}]},[m,u,r,h,s,p]),P=d.useMemo(function(){return M(S,N,_,R)},[M,S,N,_,R]),O=(0,i.A)(P,4),T=O[0],D=O[1],I=O[2],F=O[3];return[function(t,n){var r=function(){return T},a=D,l=I,u=F;if(n){var c=x(n),s=(0,i.A)(c,4),f=s[0],d=s[1],p=s[2],v=s[3],h=M(f,d,p,v),m=(0,i.A)(h,4),g=m[0];r=function(){return g},a=m[1],l=m[2],u=m[3]}var y=function(e,t,n,r,a,i){var l=e;function u(e,t,n){var r=i[e](l),a=n.find(function(e){return e.value===r});if(!a||a.disabled){var u=n.filter(function(e){return!e.disabled}),c=(0,o.A)(u).reverse().find(function(e){return e.value<=r})||u[0];c&&(r=c.value,l=i[t](l,r))}return r}var c=u("getHour","setHour",t()),s=u("getMinute","setMinute",n(c)),f=u("getSecond","setSecond",r(c,s));return u("getMillisecond","setMillisecond",a(c,s,f)),l}(t,r,a,l,u,e);return y},T,D,I,F]}function Ee(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,a=e.showTime,l=e.onSubmit,u=e.onNow,c=e.invalid,s=e.needConfirm,f=e.generateConfig,p=e.disabledDate,v=d.useContext(g),h=v.prefixCls,y=v.locale,b=v.button,A=void 0===b?"button":b,w=f.getNow(),E=we(f,a,w),x=(0,i.A)(E,1)[0],C=null==r?void 0:r(t),k=p(w,{type:t}),S="".concat(h,"-now"),N="".concat(S,"-btn"),_=o&&d.createElement("li",{className:S},d.createElement("a",{className:m()(N,k&&"".concat(N,"-disabled")),"aria-disabled":k,onClick:function(){if(!k){var e=x(w);u(e)}}},"date"===n?y.today:y.now)),R=s&&d.createElement("li",{className:"".concat(h,"-ok")},d.createElement(A,{disabled:c,onClick:l},y.ok)),M=(_||R)&&d.createElement("ul",{className:"".concat(h,"-ranges")},_,R);return C||M?d.createElement("div",{className:"".concat(h,"-footer")},C&&d.createElement("div",{className:"".concat(h,"-footer-extra")},C),M):null}function xe(e,t,n){return function(r,a){var i=r.findIndex(function(r){return X(e,t,r,a,n)});if(-1===i)return[].concat((0,o.A)(r),[a]);var l=(0,o.A)(r);return l.splice(i,1),l}}var Ce=d.createContext(null);function ke(){return d.useContext(Ce)}function Se(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,l=e.maxDate,u=e.cellRender,c=e.hoverValue,s=e.hoverRangeValue,f=e.onHover,d=e.values,p=e.pickerValue,v=e.onSelect,h=e.prevIcon,m=e.nextIcon,g=e.superPrevIcon,y=e.superNextIcon,b=r.getNow();return[{now:b,values:d,pickerValue:p,prefixCls:n,disabledDate:a,minDate:i,maxDate:l,cellRender:u,hoverValue:c,hoverRangeValue:s,onHover:f,locale:o,generateConfig:r,onSelect:v,panelType:t,prevIcon:h,nextIcon:m,superPrevIcon:g,superNextIcon:y},b]}var Ne=d.createContext({});function _e(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,l=e.prefixColumn,u=e.rowClassName,c=e.titleFormat,s=e.getCellText,f=e.getCellClassName,v=e.headerCells,h=e.cellSelection,g=void 0===h||h,y=e.disabledDate,b=ke(),A=b.prefixCls,w=b.panelType,E=b.now,x=b.disabledDate,C=b.cellRender,k=b.onHover,S=b.hoverValue,N=b.hoverRangeValue,_=b.generateConfig,R=b.values,M=b.locale,P=b.onSelect,O=y||x,T="".concat(A,"-cell"),D=d.useContext(Ne).onCellDblClick,I=[],F=0;F1&&(i=t.addDate(i,-7)),i}(a.locale,l,_),M=l.getMonth(u),P=(void 0===b?E:b)?function(e){var t=null==h?void 0:h(e,{type:"week"});return d.createElement("td",{key:"week",className:m()(w,"".concat(w,"-week"),(0,p.A)({},"".concat(w,"-disabled"),t)),onClick:function(){t||g(e)},onMouseEnter:function(){t||null==y||y(e)},onMouseLeave:function(){t||null==y||y(null)}},d.createElement("div",{className:"".concat(w,"-inner")},l.locale.getWeek(a.locale,e)))}:null,O=[],T=a.shortWeekDays||(l.locale.getShortWeekDays?l.locale.getShortWeekDays(a.locale):[]);P&&O.push(d.createElement("th",{key:"empty"},d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},a.week)));for(var D=0;D<7;D+=1)O.push(d.createElement("th",{key:D},T[(D+N)%7]));var I=a.shortMonths||(l.locale.getShortMonths?l.locale.getShortMonths(a.locale):[]),F=d.createElement("button",{type:"button","aria-label":a.yearSelect,key:"year",onClick:function(){s("year",u)},tabIndex:-1,className:"".concat(t,"-year-btn")},J(u,{locale:a,format:a.yearFormat,generateConfig:l})),L=d.createElement("button",{type:"button","aria-label":a.monthSelect,key:"month",onClick:function(){s("month",u)},tabIndex:-1,className:"".concat(t,"-month-btn")},a.monthFormat?J(u,{locale:a,format:a.monthFormat,generateConfig:l}):I[M]),j=a.monthBeforeYear?[L,F]:[F,L];return d.createElement(Ce.Provider,{value:k},d.createElement("div",{className:m()(A,b&&"".concat(A,"-show-week"))},d.createElement(Me,{offset:function(e){return l.addMonth(u,e)},superOffset:function(e){return l.addYear(u,e)},onChange:c,getStart:function(e){return l.setDate(e,1)},getEnd:function(e){var t=l.setDate(e,1);return t=l.addMonth(t,1),l.addDate(t,-1)}},j),d.createElement(_e,(0,r.A)({titleFormat:a.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:R,headerCells:O,getCellDate:function(e,t){return l.addDate(e,t)},getCellText:function(e){return J(e,{locale:a,format:a.cellDateFormat,generateConfig:l})},getCellClassName:function(e){return(0,p.A)((0,p.A)({},"".concat(t,"-cell-in-view"),U(l,e,u)),"".concat(t,"-cell-today"),W(l,e,S))},prefixColumn:P,cellSelection:!E}))))}var Oe=n(42467),Te=1/3;function De(e){return e.map(function(e){return[e.value,e.label,e.disabled].join(",")}).join(";")}function Ie(e){var t=e.units,n=e.value,r=e.optionalValue,a=e.type,c=e.onChange,s=e.onHover,f=e.onDblClick,v=e.changeOnScroll,h=ke(),g=h.prefixCls,y=h.cellRender,b=h.now,A=h.locale,w="".concat(g,"-time-panel"),E="".concat(g,"-time-panel-cell"),x=d.useRef(null),C=d.useRef(),k=function(){clearTimeout(C.current)},S=function(e,t){var n=d.useRef(!1),r=d.useRef(null),o=d.useRef(null),a=function(){ne.A.cancel(r.current),n.current=!1},i=d.useRef();return[(0,l._q)(function(){var l=e.current;if(o.current=null,i.current=0,l){var u=l.querySelector('[data-value="'.concat(t,'"]')),c=l.querySelector("li");u&&c&&function e(){a(),n.current=!0,i.current+=1;var t=l.scrollTop,s=c.offsetTop,f=u.offsetTop,d=f-s;if(0===f&&u!==c||!(0,Oe.A)(l))i.current<=5&&(r.current=(0,ne.A)(e));else{var p=t+(d-t)*Te,v=Math.abs(d-p);if(null!==o.current&&o.current1&&void 0!==arguments[1]&&arguments[1];Ae(e),null==_||_(e),t&&we(e)},Ce=function(e,t){le(e),t&&Ee(t),we(t,e)},ke=d.useMemo(function(){var e,t;if(Array.isArray(F)){var n=(0,i.A)(F,2);e=n[0],t=n[1]}else e=F;return e||t?(e=e||t,t=t||e,c.isAfter(e,t)?[t,e]:[e,t]):null},[F,c]),Se=N(z,K,V),_e=B[ue]||ze[ue]||Pe,Re=d.useContext(Ne),Me=d.useMemo(function(){return(0,a.A)((0,a.A)({},Re),{},{hideHeader:U})},[Re,U]);var Oe="".concat(W,"-panel"),Te=x(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(Ne.Provider,{value:Me},d.createElement("div",{ref:$,tabIndex:h,className:m()(Oe,(0,p.A)({},"".concat(Oe,"-rtl"),"rtl"===s))},d.createElement(_e,(0,r.A)({},Te,{showTime:ne,prefixCls:W,locale:ee,generateConfig:c,onModeChange:Ce,pickerValue:be,onPickerValueChange:function(e){Ee(e,!0)},value:ve[0],onSelect:function(e){if(me(e),Ee(e),ie!==T){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat((0,o.A)(n),["week"]),date:[].concat((0,o.A)(n),["date"])}[T]||n,a=r.indexOf(ie),i=r[a+1];i&&Ce(i,e)}},values:ve,cellRender:Se,hoverRangeValue:ke,hoverValue:I}))))}const Ve=d.memo(d.forwardRef(Ke));function He(e){var t=e.picker,n=e.multiplePanel,o=e.pickerValue,i=e.onPickerValueChange,l=e.needConfirm,u=e.onSubmit,c=e.range,s=e.hoverValue,f=d.useContext(g),p=f.prefixCls,v=f.generateConfig,h=d.useCallback(function(e,n){return ue(v,t,e,n)},[v,t]),m=d.useMemo(function(){return h(o,1)},[o,h]),y={onCellDblClick:function(){l&&u()}},b="time"===t,A=(0,a.A)((0,a.A)({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:b});return c?A.hoverRangeValue=s:A.hoverValue=s,n?d.createElement("div",{className:"".concat(p,"-panels")},d.createElement(Ne.Provider,{value:(0,a.A)((0,a.A)({},y),{},{hideNext:!0})},d.createElement(Ve,A)),d.createElement(Ne.Provider,{value:(0,a.A)((0,a.A)({},y),{},{hidePrev:!0})},d.createElement(Ve,(0,r.A)({},A,{pickerValue:m,onPickerValueChange:function(e){i(h(e,-1))}})))):d.createElement(Ne.Provider,{value:(0,a.A)({},y)},d.createElement(Ve,A))}function Be(e){return"function"==typeof e?e():e}function Ue(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,n.map(function(e,t){var n=e.label,a=e.value;return d.createElement("li",{key:t,onClick:function(){r(Be(a))},onMouseEnter:function(){o(Be(a))},onMouseLeave:function(){o(null)}},n)}))):null}function We(e){var t=e.panelRender,n=e.internalMode,o=e.picker,a=e.showNow,l=e.range,u=e.multiple,c=e.activeInfo,s=void 0===c?[0,0,0]:c,f=e.presets,v=e.onPresetHover,h=e.onPresetSubmit,y=e.onFocus,b=e.onBlur,A=e.onPanelMouseDown,E=e.direction,x=e.value,C=e.onSelect,k=e.isInvalid,S=e.defaultOpenValue,N=e.onOk,_=e.onSubmit,R=d.useContext(g).prefixCls,M="".concat(R,"-panel"),P="rtl"===E,O=d.useRef(null),T=d.useRef(null),D=d.useState(0),I=(0,i.A)(D,2),F=I[0],L=I[1],j=d.useState(0),z=(0,i.A)(j,2),K=z[0],V=z[1],H=d.useState(0),B=(0,i.A)(H,2),U=B[0],W=B[1],$=(0,i.A)(s,3),q=$[0],Y=$[1],X=$[2],G=d.useState(0),Q=(0,i.A)(G,2),J=Q[0],Z=Q[1];function ee(e){return e.filter(function(e){return e})}d.useEffect(function(){Z(10)},[q]),d.useEffect(function(){if(l&&T.current){var e,t=(null===(e=O.current)||void 0===e?void 0:e.offsetWidth)||0,n=T.current.getBoundingClientRect();if(!n.height||n.right<0)return void Z(function(e){return Math.max(0,e-1)});var r=(P?Y-t:q)-n.left;if(W(r),F&&F=a&&e<=i)return r;var l=Math.min(Math.abs(e-a),Math.abs(e-i));l0?r:o));var s=o-r+1;return String(r+(s+(c+e)-r)%s)};switch(t){case"Backspace":case"Delete":n="",r=a;break;case"ArrowLeft":n="",l(-1);break;case"ArrowRight":n="",l(1);break;case"ArrowUp":n="",r=u(1);break;case"ArrowDown":n="",r=u(-1);break;default:isNaN(Number(t))||(r=n=$+t)}if(null!==n&&(q(n),n.length>=o&&(l(1),q(""))),null!==r){var c=re.slice(0,se)+A(r,o)+re.slice(fe);pe(c.slice(0,s.length))}te({})},onMouseDown:function(){ve.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=le.getMaskCellIndex(t);Q(n),te({}),null==M||M(e),ve.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");f(t)&&pe(t)}}:{};return d.createElement("div",{ref:oe,className:m()(I,(0,p.A)((0,p.A)({},"".concat(I,"-active"),n&&a),"".concat(I,"-placeholder"),h))},d.createElement(D,(0,r.A)({ref:ae,"aria-invalid":C,autoComplete:"off"},S,{onKeyDown:me,onBlur:he},ye,{value:re,onChange:function(e){if(!s){var t=e.target.value;de(t),B(t),v(t)}}})),d.createElement(Je,{type:"suffix",icon:c}),k)});var it=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],lt=["index"];function ut(e,t){var n=e.id,o=e.prefix,u=e.clearIcon,c=e.suffixIcon,s=e.separator,f=void 0===s?"~":s,v=e.activeIndex,h=(e.activeHelp,e.allHelp,e.focused),y=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),b=e.className,A=e.style,w=e.onClick,E=e.onClear,x=e.value,C=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),k=e.invalid,S=(e.inputReadOnly,e.direction),N=(e.onOpenChange,e.onActiveInfo),_=(e.placement,e.onMouseDown),R=(e.required,e["aria-required"],e.autoFocus),M=e.tabIndex,O=(0,$e.A)(e,it),T="rtl"===S,D=d.useContext(g).prefixCls,I=d.useMemo(function(){if("string"==typeof n)return[n];var e=n||{};return[e.start,e.end]},[n]),F=d.useRef(),L=d.useRef(),j=d.useRef(),z=function(e){var t;return null===(t=[L,j][e])||void 0===t?void 0:t.current};d.useImperativeHandle(t,function(){return{nativeElement:F.current,focus:function(e){if("object"===(0,P.A)(e)){var t,n=e||{},r=n.index,o=void 0===r?0:r,a=(0,$e.A)(n,lt);null===(t=z(o))||void 0===t||t.focus(a)}else{var i;null===(i=z(null!=e?e:0))||void 0===i||i.focus()}},blur:function(){var e,t;null===(e=z(0))||void 0===e||e.blur(),null===(t=z(1))||void 0===t||t.blur()}}});var K=Xe(O),V=d.useMemo(function(){return Array.isArray(y)?y:[y,y]},[y]),H=qe((0,a.A)((0,a.A)({},e),{},{id:I,placeholder:V})),B=(0,i.A)(H,1)[0],U=d.useState({position:"absolute",width:0}),W=(0,i.A)(U,2),$=W[0],q=W[1],Y=(0,l._q)(function(){var e=z(v);if(e){var t=e.nativeElement.getBoundingClientRect(),n=F.current.getBoundingClientRect(),r=t.left-n.left;q(function(e){return(0,a.A)((0,a.A)({},e),{},{width:t.width,left:r})}),N([t.left,t.right,n.width])}});d.useEffect(function(){Y()},[v]);var X=u&&(x[0]&&!C[0]||x[1]&&!C[1]),G=R&&!C[0],Q=R&&!G&&!C[1];return d.createElement(ye.A,{onResize:Y},d.createElement("div",(0,r.A)({},K,{className:m()(D,"".concat(D,"-range"),(0,p.A)((0,p.A)((0,p.A)((0,p.A)({},"".concat(D,"-focused"),h),"".concat(D,"-disabled"),C.every(function(e){return e})),"".concat(D,"-invalid"),k.some(function(e){return e})),"".concat(D,"-rtl"),T),b),style:A,ref:F,onClick:w,onMouseDown:function(e){var t=e.target;t!==L.current.inputElement&&t!==j.current.inputElement&&e.preventDefault(),null==_||_(e)}}),o&&d.createElement("div",{className:"".concat(D,"-prefix")},o),d.createElement(at,(0,r.A)({ref:L},B(0),{autoFocus:G,tabIndex:M,"date-range":"start"})),d.createElement("div",{className:"".concat(D,"-range-separator")},f),d.createElement(at,(0,r.A)({ref:j},B(1),{autoFocus:Q,tabIndex:M,"date-range":"end"})),d.createElement("div",{className:"".concat(D,"-active-bar"),style:$}),d.createElement(Je,{type:"suffix",icon:c}),X&&d.createElement(Ze,{icon:u,onClear:E})))}const ct=d.forwardRef(ut);function st(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function ft(e){return 1===e?"end":"start"}function dt(e,t){var n=te(e,function(){var t=e.disabled,n=e.allowEmpty;return{disabled:st(t,!1),allowEmpty:st(n,!1)}}),f=(0,i.A)(n,6),p=f[0],v=f[1],h=f[2],m=f[3],y=f[4],A=f[5],x=p.prefixCls,C=p.styles,R=p.classNames,M=p.defaultValue,P=p.value,O=p.needConfirm,T=p.onKeyDown,D=p.disabled,I=p.allowEmpty,F=p.disabledDate,L=p.minDate,j=p.maxDate,z=p.defaultOpen,K=p.open,V=p.onOpenChange,H=p.locale,B=p.generateConfig,U=p.picker,W=p.showNow,$=p.showToday,q=p.showTime,Y=p.mode,G=p.onPanelChange,Q=p.onCalendarChange,J=p.onOk,Z=p.defaultPickerValue,ee=p.pickerValue,ne=p.onPickerValueChange,ie=p.inputReadOnly,ue=p.suffixIcon,ce=p.onFocus,fe=p.onBlur,de=p.presets,pe=p.ranges,ve=p.components,ye=p.cellRender,be=p.dateRender,Ae=p.monthCellRender,we=p.onClick,Ee=oe(t),xe=re(K,z,D,V),Ce=(0,i.A)(xe,2),ke=Ce[0],Se=Ce[1],Ne=function(e,t){!D.some(function(e){return!e})&&e||Se(e,t)},_e=he(B,H,m,!0,!1,M,P,Q,J),Re=(0,i.A)(_e,5),Me=Re[0],Pe=Re[1],Oe=Re[2],Te=Re[3],De=Re[4],Ie=Oe(),Fe=le(D,I,ke),Le=(0,i.A)(Fe,9),je=Le[0],ze=Le[1],Ke=Le[2],Ve=Le[3],He=Le[4],Be=Le[5],Ue=Le[6],$e=Le[7],qe=Le[8],Ye=function(e,t){ze(!0),null==ce||ce(e,{range:ft(null!=t?t:Ve)})},Xe=function(e,t){ze(!1),null==fe||fe(e,{range:ft(null!=t?t:Ve)})},Ge=d.useMemo(function(){if(!q)return null;var e=q.disabledTime,t=e?function(t){var n=ft(Ve),r=k(Ie,Ue,Ve);return e(t,n,{from:r})}:void 0;return(0,a.A)((0,a.A)({},q),{},{disabledTime:t})},[q,Ve,Ie,Ue]),Qe=(0,l.vz)([U,U],{value:Y}),Je=(0,i.A)(Qe,2),Ze=Je[0],et=Je[1],tt=Ze[Ve]||U,nt="date"===tt&&Ge?"datetime":tt,rt=nt===U&&"time"!==nt,ot=ge(U,tt,W,$,!0),at=me(p,Me,Pe,Oe,Te,D,m,je,ke,A),it=(0,i.A)(at,2),lt=it[0],ut=it[1],dt=function(e,t,n,r,o,l){var u=n[n.length-1];return function(c,s){var f=(0,i.A)(e,2),d=f[0],p=f[1],v=(0,a.A)((0,a.A)({},s),{},{from:k(e,n)});return!(1!==u||!t[0]||!d||X(r,o,d,c,v.type)||!r.isAfter(d,c))||!(0!==u||!t[1]||!p||X(r,o,p,c,v.type)||!r.isAfter(c,p))||(null==l?void 0:l(c,v))}}(Ie,D,Ue,B,H,F),pt=_(Ie,A,I),vt=(0,i.A)(pt,2),ht=vt[0],mt=vt[1],gt=se(B,H,Ie,Ze,ke,Ve,v,rt,Z,ee,null==Ge?void 0:Ge.defaultOpenValue,ne,L,j),yt=(0,i.A)(gt,2),bt=yt[0],At=yt[1],wt=(0,l._q)(function(e,t,n){var r=E(Ze,Ve,t);if(r[0]===Ze[0]&&r[1]===Ze[1]||et(r),G&&!1!==n){var a=(0,o.A)(Ie);e&&(a[Ve]=e),G(a,r)}}),Et=function(e,t){return E(Ie,t,e)},xt=function(e,t){var n=Ie;e&&(n=Et(e,Ve)),$e(Ve);var r=Be(n);Te(n),lt(Ve,null===r),null===r?Ne(!1,{force:!0}):t||Ee.current.focus({index:r})},Ct=d.useState(null),kt=(0,i.A)(Ct,2),St=kt[0],Nt=kt[1],_t=d.useState(null),Rt=(0,i.A)(_t,2),Mt=Rt[0],Pt=Rt[1],Ot=d.useMemo(function(){return Mt||Ie},[Ie,Mt]);d.useEffect(function(){ke||Pt(null)},[ke]);var Tt=d.useState([0,0,0]),Dt=(0,i.A)(Tt,2),It=Dt[0],Ft=Dt[1],Lt=ae(de,pe),jt=N(ye,be,Ae,ft(Ve)),zt=Ie[Ve]||null,Kt=(0,l._q)(function(e){return A(e,{activeIndex:Ve})}),Vt=d.useMemo(function(){var e=(0,s.A)(p,!1);return(0,c.A)(p,[].concat((0,o.A)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))},[p]),Ht=d.createElement(We,(0,r.A)({},Vt,{showNow:ot,showTime:Ge,range:!0,multiplePanel:rt,activeInfo:It,disabledDate:dt,onFocus:function(e){Ne(!0),Ye(e)},onBlur:Xe,onPanelMouseDown:function(){Ke("panel")},picker:U,mode:tt,internalMode:nt,onPanelChange:wt,format:y,value:zt,isInvalid:Kt,onChange:null,onSelect:function(e){var t=E(Ie,Ve,e);Te(t),O||h||v!==nt||xt(e)},pickerValue:bt,defaultOpenValue:w(null==q?void 0:q.defaultOpenValue)[Ve],onPickerValueChange:At,hoverValue:Ot,onHover:function(e){Pt(e?Et(e,Ve):null),Nt("cell")},needConfirm:O,onSubmit:xt,onOk:De,presets:Lt,onPresetHover:function(e){Pt(e),Nt("preset")},onPresetSubmit:function(e){ut(e)&&Ne(!1,{force:!0})},onNow:function(e){xt(e)},cellRender:jt})),Bt=d.useMemo(function(){return{prefixCls:x,locale:H,generateConfig:B,button:ve.button,input:ve.input}},[x,H,B,ve.button,ve.input]);return(0,u.A)(function(){ke&&void 0!==Ve&&wt(null,U,!1)},[ke,Ve,U]),(0,u.A)(function(){var e=Ke();ke||"input"!==e||(Ne(!1),xt(null,!0)),ke||!h||O||"panel"!==e||(Ne(!0),xt())},[ke]),d.createElement(g.Provider,{value:Bt},d.createElement(b,(0,r.A)({},S(p),{popupElement:Ht,popupStyle:C.popup,popupClassName:R.popup,visible:ke,onClose:function(){Ne(!1)},range:!0}),d.createElement(ct,(0,r.A)({},p,{ref:Ee,suffixIcon:ue,activeIndex:je||ke?Ve:null,activeHelp:!!Mt,allHelp:!!Mt&&"preset"===St,focused:je,onFocus:function(e,t){var n=Ue.length,r=Ue[n-1];n&&r!==t&&O&&!I[r]&&!qe(r)&&Ie[r]?Ee.current.focus({index:r}):(Ke("input"),Ne(!0,{inherit:!0}),Ve!==t&&ke&&!O&&h&&xt(null,!0),He(t),Ye(e,t))},onBlur:function(e,t){if(Ne(!1),!O&&"input"===Ke()){var n=Be(Ie);lt(Ve,null===n)}Xe(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&xt(null,!0),null==T||T(e,t)},onSubmit:xt,value:Ot,maskFormat:y,onChange:function(e,t){var n=Et(e,t);Te(n)},onInputChange:function(){Ke("input")},format:m,inputReadOnly:ie,disabled:D,open:ke,onOpenChange:Ne,onClick:function(e){var t,n=e.target.getRootNode();if(!Ee.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var r=D.findIndex(function(e){return!e});r>=0&&Ee.current.focus({index:r})}Ne(!0),null==we||we(e)},onClear:function(){ut(null),Ne(!1,{force:!0})},invalid:ht,onInvalid:mt,onActiveInfo:Ft}))))}const pt=d.forwardRef(dt);var vt=n(99591);function ht(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,a=void 0===o?"×":o,i=e.formatDate,l=e.disabled,u=e.maxTagCount,c=e.placeholder,s="".concat(t,"-selector"),f="".concat(t,"-selection"),p="".concat(f,"-overflow");function v(e,t){return d.createElement("span",{className:m()("".concat(f,"-item")),title:"string"==typeof e?e:null},d.createElement("span",{className:"".concat(f,"-item-content")},e),!l&&t&&d.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(f,"-item-remove")},a))}return d.createElement("div",{className:s},d.createElement(vt.A,{prefixCls:p,data:n,renderItem:function(e){return v(i(e),function(t){t&&t.stopPropagation(),r(e)})},renderRest:function(e){return v("+ ".concat(e.length," ..."))},itemKey:function(e){return i(e)},maxCount:u}),!n.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var mt=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function gt(e,t){e.id;var n=e.open,o=e.prefix,l=e.clearIcon,u=e.suffixIcon,c=(e.activeHelp,e.allHelp,e.focused),s=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),f=e.generateConfig,v=e.placeholder,h=e.className,y=e.style,b=e.onClick,A=e.onClear,w=e.internalPicker,E=e.value,x=e.onChange,C=e.onSubmit,k=(e.onInputChange,e.multiple),S=e.maxTagCount,N=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),_=e.invalid,R=(e.inputReadOnly,e.direction),M=(e.onOpenChange,e.onMouseDown),P=(e.required,e["aria-required"],e.autoFocus),O=e.tabIndex,T=e.removeIcon,D=(0,$e.A)(e,mt),I="rtl"===R,F=d.useContext(g).prefixCls,L=d.useRef(),j=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:L.current,focus:function(e){var t;null===(t=j.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=j.current)||void 0===e||e.blur()}}});var z=Xe(D),K=qe((0,a.A)((0,a.A)({},e),{},{onChange:function(e){x([e])}}),function(e){return{value:e.valueTexts[0]||"",active:c}}),V=(0,i.A)(K,2),H=V[0],B=V[1],U=!(!l||!E.length||N),W=k?d.createElement(d.Fragment,null,d.createElement(ht,{prefixCls:F,value:E,onRemove:function(e){var t=E.filter(function(t){return t&&!X(f,s,t,e,w)});x(t),n||C()},formatDate:B,maxTagCount:S,disabled:N,removeIcon:T,placeholder:v}),d.createElement("input",{className:"".concat(F,"-multiple-input"),value:E.map(B).join(","),ref:j,readOnly:!0,autoFocus:P,tabIndex:O}),d.createElement(Je,{type:"suffix",icon:u}),U&&d.createElement(Ze,{icon:l,onClear:A})):d.createElement(at,(0,r.A)({ref:j},H(),{autoFocus:P,tabIndex:O,suffixIcon:u,clearIcon:U&&d.createElement(Ze,{icon:l,onClear:A}),showActiveCls:!1}));return d.createElement("div",(0,r.A)({},z,{className:m()(F,(0,p.A)((0,p.A)((0,p.A)((0,p.A)((0,p.A)({},"".concat(F,"-multiple"),k),"".concat(F,"-focused"),c),"".concat(F,"-disabled"),N),"".concat(F,"-invalid"),_),"".concat(F,"-rtl"),I),h),style:y,ref:L,onClick:b,onMouseDown:function(e){var t;e.target!==(null===(t=j.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==M||M(e)}}),o&&d.createElement("div",{className:"".concat(F,"-prefix")},o),W)}const yt=d.forwardRef(gt);function bt(e,t){var n=te(e),f=(0,i.A)(n,6),p=f[0],v=f[1],h=f[2],m=f[3],y=f[4],A=f[5],E=p,x=E.prefixCls,C=E.styles,k=E.classNames,R=E.order,M=E.defaultValue,P=E.value,O=E.needConfirm,T=E.onChange,D=E.onKeyDown,I=E.disabled,F=E.disabledDate,L=E.minDate,j=E.maxDate,z=E.defaultOpen,K=E.open,V=E.onOpenChange,H=E.locale,B=E.generateConfig,U=E.picker,W=E.showNow,$=E.showToday,q=E.showTime,Y=E.mode,X=E.onPanelChange,G=E.onCalendarChange,Q=E.onOk,J=E.multiple,Z=E.defaultPickerValue,ee=E.pickerValue,ne=E.onPickerValueChange,ie=E.inputReadOnly,ue=E.suffixIcon,ce=E.removeIcon,fe=E.onFocus,de=E.onBlur,pe=E.presets,ve=E.components,ye=E.cellRender,be=E.dateRender,Ae=E.monthCellRender,we=E.onClick,Ee=oe(t);function Ce(e){return null===e?null:J?e:e[0]}var ke=xe(B,H,v),Se=re(K,z,[I],V),Ne=(0,i.A)(Se,2),_e=Ne[0],Re=Ne[1],Me=he(B,H,m,!1,R,M,P,function(e,t,n){if(G){var r=(0,a.A)({},n);delete r.range,G(Ce(e),Ce(t),r)}},function(e){null==Q||Q(Ce(e))}),Pe=(0,i.A)(Me,5),Oe=Pe[0],Te=Pe[1],De=Pe[2],Ie=Pe[3],Fe=Pe[4],Le=De(),je=le([I]),ze=(0,i.A)(je,4),Ke=ze[0],Ve=ze[1],He=ze[2],Be=ze[3],Ue=function(e){Ve(!0),null==fe||fe(e,{})},$e=function(e){Ve(!1),null==de||de(e,{})},qe=(0,l.vz)(U,{value:Y}),Ye=(0,i.A)(qe,2),Xe=Ye[0],Ge=Ye[1],Qe="date"===Xe&&q?"datetime":Xe,Je=ge(U,Xe,W,$),Ze=T&&function(e,t){T(Ce(e),Ce(t))},et=me((0,a.A)((0,a.A)({},p),{},{onChange:Ze}),Oe,Te,De,Ie,[],m,Ke,_e,A),tt=(0,i.A)(et,2)[1],nt=_(Le,A),rt=(0,i.A)(nt,2),ot=rt[0],at=rt[1],it=d.useMemo(function(){return ot.some(function(e){return e})},[ot]),lt=se(B,H,Le,[Xe],_e,Be,v,!1,Z,ee,w(null==q?void 0:q.defaultOpenValue),function(e,t){if(ne){var n=(0,a.A)((0,a.A)({},t),{},{mode:t.mode[0]});delete n.range,ne(e[0],n)}},L,j),ut=(0,i.A)(lt,2),ct=ut[0],st=ut[1],ft=(0,l._q)(function(e,t,n){if(Ge(t),X&&!1!==n){var r=e||Le[Le.length-1];X(r,t)}}),dt=function(){tt(De()),Re(!1,{force:!0})},pt=d.useState(null),vt=(0,i.A)(pt,2),ht=vt[0],mt=vt[1],gt=d.useState(null),bt=(0,i.A)(gt,2),At=bt[0],wt=bt[1],Et=d.useMemo(function(){var e=[At].concat((0,o.A)(Le)).filter(function(e){return e});return J?e:e.slice(0,1)},[Le,At,J]),xt=d.useMemo(function(){return!J&&At?[At]:Le.filter(function(e){return e})},[Le,At,J]);d.useEffect(function(){_e||wt(null)},[_e]);var Ct=ae(pe),kt=function(e){var t=J?ke(De(),e):[e];tt(t)&&!J&&Re(!1,{force:!0})},St=N(ye,be,Ae),Nt=d.useMemo(function(){var e=(0,s.A)(p,!1),t=(0,c.A)(p,[].concat((0,o.A)(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,a.A)((0,a.A)({},t),{},{multiple:p.multiple})},[p]),_t=d.createElement(We,(0,r.A)({},Nt,{showNow:Je,showTime:q,disabledDate:F,onFocus:function(e){Re(!0),Ue(e)},onBlur:$e,picker:U,mode:Xe,internalMode:Qe,onPanelChange:ft,format:y,value:Le,isInvalid:A,onChange:null,onSelect:function(e){if(He("panel"),!J||Qe===U){var t=J?ke(De(),e):[e];Ie(t),O||h||v!==Qe||dt()}},pickerValue:ct,defaultOpenValue:null==q?void 0:q.defaultOpenValue,onPickerValueChange:st,hoverValue:Et,onHover:function(e){wt(e),mt("cell")},needConfirm:O,onSubmit:dt,onOk:Fe,presets:Ct,onPresetHover:function(e){wt(e),mt("preset")},onPresetSubmit:kt,onNow:function(e){kt(e)},cellRender:St})),Rt=d.useMemo(function(){return{prefixCls:x,locale:H,generateConfig:B,button:ve.button,input:ve.input}},[x,H,B,ve.button,ve.input]);return(0,u.A)(function(){_e&&void 0!==Be&&ft(null,U,!1)},[_e,Be,U]),(0,u.A)(function(){var e=He();_e||"input"!==e||(Re(!1),dt()),_e||!h||O||"panel"!==e||dt()},[_e]),d.createElement(g.Provider,{value:Rt},d.createElement(b,(0,r.A)({},S(p),{popupElement:_t,popupStyle:C.popup,popupClassName:k.popup,visible:_e,onClose:function(){Re(!1)}}),d.createElement(yt,(0,r.A)({},p,{ref:Ee,suffixIcon:ue,removeIcon:ce,activeHelp:!!At,allHelp:!!At&&"preset"===ht,focused:Ke,onFocus:function(e){He("input"),Re(!0,{inherit:!0}),Ue(e)},onBlur:function(e){Re(!1),$e(e)},onKeyDown:function(e,t){"Tab"===e.key&&dt(),null==D||D(e,t)},onSubmit:dt,value:xt,maskFormat:y,onChange:function(e){Ie(e)},onInputChange:function(){He("input")},internalPicker:v,format:m,inputReadOnly:ie,disabled:I,open:_e,onOpenChange:Re,onClick:function(e){I||Ee.current.nativeElement.contains(document.activeElement)||Ee.current.focus(),Re(!0),null==we||we(e)},onClear:function(){tt(null),Re(!1,{force:!0})},invalid:it,onInvalid:function(e){at(e,0)}}))))}const At=d.forwardRef(bt)},45966(e,t,n){"use strict";n.d(t,{I:()=>r});var r={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}},64395(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(89379),o=n(45966);const a=(0,r.A)((0,r.A)({},o.I),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"})},61757(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(89379),o=n(45966);const a=(0,r.A)((0,r.A)({},o.I),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1})},89569(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commonLocale=void 0;t.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}},57536(e,t,n){"use strict";var r=n(24994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(12897)),a=n(89569),i=(0,o.default)((0,o.default)({},a.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});t.default=i},71559(e,t,n){"use strict";n.d(t,{jl:()=>C});var r=n(58168),o=n(89379),a=n(80045),i=n(96540),l=n(46942),u=n.n(l),c={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},s=function(){var e=(0,i.useRef)([]),t=(0,i.useRef)(null);return(0,i.useEffect)(function(){var n=Date.now(),r=!1;e.current.forEach(function(e){if(e){r=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(o.transitionDuration="0s, 0s")}}),r&&(t.current=Date.now())}),e.current};var f=n(82284),d=n(5544),p=n(20998),v=0,h=(0,p.A)();const m=function(e){var t=i.useState(),n=(0,d.A)(t,2),r=n[0],o=n[1];return i.useEffect(function(){var e;o("rc_progress_".concat((h?(e=v,v+=1):e="TEST_OR_SSR",e)))},[]),e||r};(Object.getOwnPropertyDescriptor(m,"name")||{}).writable||Object.defineProperty(m,"name",{value:"default",configurable:!0});var g=function(e){var t=e.bg,n=e.children;return i.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function y(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}const b=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,a=e.radius,l=e.style,u=e.ptg,c=e.strokeLinecap,s=e.strokeWidth,d=e.size,p=e.gapDegree,v=r&&"object"===(0,f.A)(r),h=v?"#FFF":void 0,m=d/2,b=i.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:m,cy:m,stroke:h,strokeLinecap:c,strokeWidth:s,opacity:0===u?0:1,style:l,ref:t});if(!v)return b;var A="".concat(o,"-conic"),w=p?"".concat(180+p/2,"deg"):"0deg",E=y(r,(360-p)/360),x=y(r,1),C="conic-gradient(from ".concat(w,", ").concat(E.join(", "),")"),k="linear-gradient(to ".concat(p?"bottom":"top",", ").concat(x.join(", "),")");return i.createElement(i.Fragment,null,i.createElement("mask",{id:A},b),i.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(A,")")},i.createElement(g,{bg:k},i.createElement(g,{bg:C}))))});var A=100,w=function(e,t,n,r,o,a,i,l,u,c){var s=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,f=n/100*360*((360-a)/360),d=0===a?0:{bottom:0,top:180,left:90,right:-90}[i],p=(100-r)/100*t;"round"===u&&100!==r&&(p+=c/2)>=t&&(p=t-.01);return{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:p+s,transform:"rotate(".concat(o+f+d,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"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}},E=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function x(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}const C=function(e){var t,n,l,d=(0,o.A)((0,o.A)({},c),e),p=d.id,v=d.prefixCls,h=d.steps,g=d.strokeWidth,y=d.trailWidth,C=d.gapDegree,k=void 0===C?0:C,S=d.gapPosition,N=d.trailColor,_=d.strokeLinecap,R=d.style,M=d.className,P=d.strokeColor,O=d.percent,T=(0,a.A)(d,E),D=m(p),I="".concat(D,"-gradient"),F=50-g/2,L=2*Math.PI*F,j=k>0?90+k/2:-90,z=L*((360-k)/360),K="object"===(0,f.A)(h)?h:{count:h,gap:2},V=K.count,H=K.gap,B=x(O),U=x(P),W=U.find(function(e){return e&&"object"===(0,f.A)(e)}),$=W&&"object"===(0,f.A)(W)?"butt":_,q=w(L,z,0,100,j,k,S,N,$,g),Y=s();return i.createElement("svg",(0,r.A)({className:u()("".concat(v,"-circle"),M),viewBox:"0 0 ".concat(A," ").concat(A),style:R,id:p,role:"presentation"},T),!V&&i.createElement("circle",{className:"".concat(v,"-circle-trail"),r:F,cx:50,cy:50,stroke:N,strokeLinecap:$,strokeWidth:y||g,style:q}),V?(t=Math.round(V*(B[0]/100)),n=100/V,l=0,new Array(V).fill(null).map(function(e,r){var o=r<=t-1?U[0]:N,a=o&&"object"===(0,f.A)(o)?"url(#".concat(I,")"):void 0,u=w(L,z,l,n,j,k,S,o,"butt",g,H);return l+=100*(z-u.strokeDashoffset+H)/z,i.createElement("circle",{key:r,className:"".concat(v,"-circle-path"),r:F,cx:50,cy:50,stroke:a,strokeWidth:g,opacity:1,style:u,ref:function(e){Y[r]=e}})})):function(){var e=0;return B.map(function(t,n){var r=U[n]||U[U.length-1],o=w(L,z,e,t,j,k,S,r,$,g);return e+=t,i.createElement(b,{key:n,color:r,ptg:t,radius:F,prefixCls:v,gradientId:I,style:o,strokeLinecap:$,strokeWidth:g,gapDegree:k,ref:function(e){Y[n]=e},size:A})}).reverse()}())}},51379(e,t,n){"use strict";n.d(t,{A:()=>g});var r=n(58168),o=n(64467),a=n(5544),i=n(80045),l=n(46942),u=n.n(l),c=n(12533),s=n(16928),f=n(72065),d=n(96540);function p(e,t){var n=e.disabled,r=e.prefixCls,o=e.character,a=e.characterRender,i=e.index,l=e.count,c=e.value,f=e.allowHalf,p=e.focused,v=e.onHover,h=e.onClick,m=i+1,g=new Set([r]);0===c&&0===i&&p?g.add("".concat(r,"-focused")):f&&c+.5>=m&&ci?"true":"false","aria-posinset":i+1,"aria-setsize":l,tabIndex:n?-1:0},d.createElement("div",{className:"".concat(r,"-first")},y),d.createElement("div",{className:"".concat(r,"-second")},y)));return a&&(b=a(b,e)),b}const v=d.forwardRef(p);var h=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function m(e,t){var n,l=e.prefixCls,p=void 0===l?"rc-rate":l,m=e.className,g=e.defaultValue,y=e.value,b=e.count,A=void 0===b?5:b,w=e.allowHalf,E=void 0!==w&&w,x=e.allowClear,C=void 0===x||x,k=e.keyboard,S=void 0===k||k,N=e.character,_=void 0===N?"★":N,R=e.characterRender,M=e.disabled,P=e.direction,O=void 0===P?"ltr":P,T=e.tabIndex,D=void 0===T?0:T,I=e.autoFocus,F=e.onHoverChange,L=e.onChange,j=e.onFocus,z=e.onBlur,K=e.onKeyDown,V=e.onMouseLeave,H=(0,i.A)(e,h),B=(n=d.useRef({}),[function(e){return n.current[e]},function(e){return function(t){n.current[e]=t}}]),U=(0,a.A)(B,2),W=U[0],$=U[1],q=d.useRef(null),Y=function(){var e;M||(null===(e=q.current)||void 0===e||e.focus())};d.useImperativeHandle(t,function(){return{focus:Y,blur:function(){var e;M||(null===(e=q.current)||void 0===e||e.blur())}}});var X=(0,c.A)(g||0,{value:y}),G=(0,a.A)(X,2),Q=G[0],J=G[1],Z=(0,c.A)(null),ee=(0,a.A)(Z,2),te=ee[0],ne=ee[1],re=function(e,t){var n,r,o,a,i="rtl"===O,l=e+1;if(E){var u=W(e),c=(r=function(e){var t,n,r=e.ownerDocument,o=r.body,a=r&&r.documentElement,i=e.getBoundingClientRect();return t=i.left,n=i.top,{left:t-=a.clientLeft||o.clientLeft||0,top:n-=a.clientTop||o.clientTop||0}}(n=u),o=n.ownerDocument,a=o.defaultView||o.parentWindow,r.left+=function(e){var t=e.pageXOffset,n="scrollLeft";if("number"!=typeof t){var r=e.document;"number"!=typeof(t=r.documentElement[n])&&(t=r.body[n])}return t}(a),r.left),s=u.clientWidth;(i&&t-c>s/2||!i&&t-c0&&!n||t===s.A.RIGHT&&Q>0&&n?(oe(Q-r),e.preventDefault()):t===s.A.LEFT&&QU});var r=n(58168),o=n(96540),a=n(82546),i=(n(68210),n(89379)),l=n(82284),u=n(66588),c=n(8719),s=o.createContext(null);var f=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){d&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),m?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){d&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;h.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),y=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),M="undefined"!=typeof WeakMap?new WeakMap:new f,P=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=g.getInstance(),r=new R(t,n,this);M.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){P.prototype[e]=function(){var t;return(t=M.get(this))[e].apply(t,arguments)}});const O=void 0!==p.ResizeObserver?p.ResizeObserver:P;var T=new Map;var D=new O(function(e){e.forEach(function(e){var t,n=e.target;null===(t=T.get(n))||void 0===t||t.forEach(function(e){return e(n)})})});var I=n(23029),F=n(92901),L=n(85501),j=n(49640),z=function(e){(0,L.A)(n,e);var t=(0,j.A)(n);function n(){return(0,I.A)(this,n),t.apply(this,arguments)}return(0,F.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function K(e,t){var n=e.children,r=e.disabled,a=o.useRef(null),f=o.useRef(null),d=o.useContext(s),p="function"==typeof n,v=p?n(a):n,h=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!p&&o.isValidElement(v)&&(0,c.f3)(v),g=m?(0,c.A9)(v):null,y=(0,c.xK)(g,a),b=function(){var e;return(0,u.Ay)(a.current)||(a.current&&"object"===(0,l.A)(a.current)?(0,u.Ay)(null===(e=a.current)||void 0===e?void 0:e.nativeElement):null)||(0,u.Ay)(f.current)};o.useImperativeHandle(t,function(){return b()});var A=o.useRef(e);A.current=e;var w=o.useCallback(function(e){var t=A.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),a=o.width,l=o.height,u=e.offsetWidth,c=e.offsetHeight,s=Math.floor(a),f=Math.floor(l);if(h.current.width!==s||h.current.height!==f||h.current.offsetWidth!==u||h.current.offsetHeight!==c){var p={width:s,height:f,offsetWidth:u,offsetHeight:c};h.current=p;var v=u===Math.round(a)?a:u,m=c===Math.round(l)?l:c,g=(0,i.A)((0,i.A)({},p),{},{offsetWidth:v,offsetHeight:m});null==d||d(g,e,r),n&&Promise.resolve().then(function(){n(g,e)})}},[]);return o.useEffect(function(){var e,t,n=b();return n&&!r&&(e=n,t=w,T.has(e)||(T.set(e,new Set),D.observe(e)),T.get(e).add(t)),function(){return function(e,t){T.has(e)&&(T.get(e).delete(t),T.get(e).size||(D.unobserve(e),T.delete(e)))}(n,w)}},[a.current,r]),o.createElement(z,{ref:f},m?o.cloneElement(v,{ref:y}):v)}const V=o.forwardRef(K);function H(e,t){var n=e.children;return("function"==typeof n?[n]:(0,a.A)(n)).map(function(n,a){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(a);return o.createElement(V,(0,r.A)({},e,{key:i,ref:0===a?t:void 0}),n)})}var B=o.forwardRef(H);B.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),a=o.useRef([]),i=o.useContext(s),l=o.useCallback(function(e,t,o){r.current+=1;var l=r.current;a.current.push({size:e,element:t,data:o}),Promise.resolve().then(function(){l===r.current&&(null==n||n(a.current),a.current=[])}),null==i||i(e,t,o)},[n,i]);return o.createElement(s.Provider,{value:l},t)};const U=B},92849(e,t,n){"use strict";n.d(t,{A:()=>x});var r=n(58168),o=n(5544),a=n(80045),i=n(64467),l=n(89379),u=n(82284),c=n(46942),s=n.n(c),f=n(12533),d=n(19853),p=n(8719),v=n(96540),h=n(90754),m=n(30981),g=function(e,t){if(!e)return null;var n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},y=function(e){return void 0!==e?"".concat(e,"px"):void 0};function b(e){var t=e.prefixCls,n=e.containerRef,r=e.value,a=e.getValueIndex,i=e.motionName,u=e.onMotionStart,c=e.onMotionEnd,f=e.direction,d=e.vertical,b=void 0!==d&&d,A=v.useRef(null),w=v.useState(r),E=(0,o.A)(w,2),x=E[0],C=E[1],k=function(e){var r,o=a(e),i=null===(r=n.current)||void 0===r?void 0:r.querySelectorAll(".".concat(t,"-item"))[o];return(null==i?void 0:i.offsetParent)&&i},S=v.useState(null),N=(0,o.A)(S,2),_=N[0],R=N[1],M=v.useState(null),P=(0,o.A)(M,2),O=P[0],T=P[1];(0,m.A)(function(){if(x!==r){var e=k(x),t=k(r),n=g(e,b),o=g(t,b);C(r),R(n),T(o),e&&t?u():c()}},[r]);var D=v.useMemo(function(){var e;return y(b?null!==(e=null==_?void 0:_.top)&&void 0!==e?e:0:"rtl"===f?-(null==_?void 0:_.right):null==_?void 0:_.left)},[b,f,_]),I=v.useMemo(function(){var e;return y(b?null!==(e=null==O?void 0:O.top)&&void 0!==e?e:0:"rtl"===f?-(null==O?void 0:O.right):null==O?void 0:O.left)},[b,f,O]);return _&&O?v.createElement(h.Ay,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:function(){return b?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return b?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){R(null),T(null),c()}},function(e,n){var r=e.className,o=e.style,a=(0,l.A)((0,l.A)({},o),{},{"--thumb-start-left":D,"--thumb-start-width":y(null==_?void 0:_.width),"--thumb-active-left":I,"--thumb-active-width":y(null==O?void 0:O.width),"--thumb-start-top":D,"--thumb-start-height":y(null==_?void 0:_.height),"--thumb-active-top":I,"--thumb-active-height":y(null==O?void 0:O.height)}),i={ref:(0,p.K4)(A,n),style:a,className:s()("".concat(t,"-thumb"),r)};return v.createElement("div",i)}):null}var A=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function w(e){return e.map(function(e){if("object"===(0,u.A)(e)&&null!==e){var t=function(e){return void 0!==e.title?e.title:"object"!==(0,u.A)(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return(0,l.A)((0,l.A)({},e),{},{title:t})}return{label:null==e?void 0:e.toString(),title:null==e?void 0:e.toString(),value:e}})}var E=function(e){var t=e.prefixCls,n=e.className,r=e.disabled,o=e.checked,a=e.label,l=e.title,u=e.value,c=e.name,f=e.onChange,d=e.onFocus,p=e.onBlur,h=e.onKeyDown,m=e.onKeyUp,g=e.onMouseDown;return v.createElement("label",{className:s()(n,(0,i.A)({},"".concat(t,"-item-disabled"),r)),onMouseDown:g},v.createElement("input",{name:c,className:"".concat(t,"-item-input"),type:"radio",disabled:r,checked:o,onChange:function(e){r||f(e,u)},onFocus:d,onBlur:p,onKeyDown:h,onKeyUp:m}),v.createElement("div",{className:"".concat(t,"-item-label"),title:l},a))};const x=v.forwardRef(function(e,t){var n,l=e.prefixCls,u=void 0===l?"rc-segmented":l,c=e.direction,h=e.vertical,m=e.options,g=void 0===m?[]:m,y=e.disabled,x=e.defaultValue,C=e.value,k=e.name,S=e.onChange,N=e.className,_=void 0===N?"":N,R=e.motionName,M=void 0===R?"thumb-motion":R,P=(0,a.A)(e,A),O=v.useRef(null),T=v.useMemo(function(){return(0,p.K4)(O,t)},[O,t]),D=v.useMemo(function(){return w(g)},[g]),I=(0,f.A)(null===(n=D[0])||void 0===n?void 0:n.value,{value:C,defaultValue:x}),F=(0,o.A)(I,2),L=F[0],j=F[1],z=v.useState(!1),K=(0,o.A)(z,2),V=K[0],H=K[1],B=function(e,t){j(t),null==S||S(t)},U=(0,d.A)(P,["children"]),W=v.useState(!1),$=(0,o.A)(W,2),q=$[0],Y=$[1],X=v.useState(!1),G=(0,o.A)(X,2),Q=G[0],J=G[1],Z=function(){J(!0)},ee=function(){J(!1)},te=function(){Y(!1)},ne=function(e){"Tab"===e.key&&Y(!0)},re=function(e){var t=D.findIndex(function(e){return e.value===L}),n=D.length,r=D[(t+e+n)%n];r&&(j(r.value),null==S||S(r.value))},oe=function(e){switch(e.key){case"ArrowLeft":case"ArrowUp":re(-1);break;case"ArrowRight":case"ArrowDown":re(1)}};return v.createElement("div",(0,r.A)({role:"radiogroup","aria-label":"segmented control",tabIndex:y?void 0:0,"aria-orientation":h?"vertical":"horizontal"},U,{className:s()(u,(0,i.A)((0,i.A)((0,i.A)({},"".concat(u,"-rtl"),"rtl"===c),"".concat(u,"-disabled"),y),"".concat(u,"-vertical"),h),_),ref:T}),v.createElement("div",{className:"".concat(u,"-group")},v.createElement(b,{vertical:h,prefixCls:u,value:L,containerRef:O,motionName:"".concat(u,"-").concat(M),direction:c,getValueIndex:function(e){return D.findIndex(function(t){return t.value===e})},onMotionStart:function(){H(!0)},onMotionEnd:function(){H(!1)}}),D.map(function(e){return v.createElement(E,(0,r.A)({},e,{name:k,key:e.value,prefixCls:u,className:s()(e.className,"".concat(u,"-item"),(0,i.A)((0,i.A)({},"".concat(u,"-item-selected"),e.value===L&&!V),"".concat(u,"-item-focused"),Q&&q&&e.value===L)),checked:e.value===L,onChange:B,onFocus:Z,onBlur:ee,onKeyDown:oe,onKeyUp:ne,onMouseDown:te,disabled:!!y||!!e.disabled}))})))})},3979(e,t,n){"use strict";n.d(t,{Ay:()=>u});var r=n(5544),o=n(96540),a=n(20998),i=0,l=(0,a.A)();function u(e){var t=o.useState(),n=(0,r.A)(t,2),a=n[0],u=n[1];return o.useEffect(function(){var e;u("rc_select_".concat((l?(e=i,i+=1):e="TEST_OR_SSR",e)))},[]),e||a}},43599(e,t,n){"use strict";n.d(t,{g3:()=>ee,JM:()=>ne,c$:()=>oe,Ay:()=>Se,Vm:()=>A});var r=n(58168),o=n(60436),a=n(64467),i=n(89379),l=n(5544),u=n(80045),c=n(82284),s=n(12533),f=n(68210),d=n(96540),p=n(46942),v=n.n(p),h=n(30981),m=n(68430),g=n(8719);const y=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,a=e.onMouseDown,i=e.onClick,l="function"==typeof n?n(r):n;return d.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==l?l:d.createElement("span",{className:v()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},o))};var b=d.createContext(null);function A(){return d.useContext(b)}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);return d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var E=n(16928);var x=n(72065),C=n(99591);const k=function(e,t,n){var r=(0,i.A)((0,i.A)({},e),n?t:{});return Object.keys(t).forEach(function(n){var o=t[n];"function"==typeof o&&(r[n]=function(){for(var t,r=arguments.length,a=new Array(r),i=0;iN&&(a="".concat(i.slice(0,N),"..."))}var l=function(t){t&&t.stopPropagation(),L(e)};return"function"==typeof I?oe(r,a,t,o,l):re(e,a,t,o,l)},renderRest:function(e){if(!i.length)return null;var t="function"==typeof P?P(e):P;return"function"==typeof I?oe(void 0,t,!1,!1,void 0,!0):re({title:t},t,!1)},suffix:ae,itemKey:T,maxCount:S});return d.createElement("span",{className:"".concat(ee,"-wrap")},ie,!i.length&&!te&&d.createElement("span",{className:"".concat(ee,"-placeholder")},p))};const F=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,i=e.autoFocus,u=e.autoComplete,c=e.activeDescendantId,s=e.mode,f=e.open,p=e.values,v=e.placeholder,h=e.tabIndex,m=e.showSearch,g=e.searchValue,y=e.activeValue,b=e.maxLength,A=e.onInputKeyDown,w=e.onInputMouseDown,E=e.onInputChange,C=e.onInputPaste,k=e.onInputCompositionStart,S=e.onInputCompositionEnd,N=e.onInputBlur,R=e.title,M=d.useState(!1),P=(0,l.A)(M,2),T=P[0],D=P[1],I="combobox"===s,F=I||m,L=p[0],j=g||"";I&&y&&!T&&(j=y),d.useEffect(function(){I&&D(!1)},[I,y]);var z=!("combobox"!==s&&!f&&!m)&&!!j,K=void 0===R?O(L):R,V=d.useMemo(function(){return L?null:d.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:z?{visibility:"hidden"}:void 0},v)},[L,z,v,n]);return d.createElement("span",{className:"".concat(n,"-selection-wrap")},d.createElement("span",{className:"".concat(n,"-selection-search")},d.createElement(_,{ref:o,prefixCls:n,id:r,open:f,inputElement:t,disabled:a,autoFocus:i,autoComplete:u,editable:F,activeDescendantId:c,value:j,onKeyDown:A,onMouseDown:w,onChange:function(e){D(!0),E(e)},onPaste:C,onCompositionStart:k,onCompositionEnd:S,onBlur:N,tabIndex:h,attrs:(0,x.A)(e,!0),maxLength:I?b:void 0})),!I&&L?d.createElement("span",{className:"".concat(n,"-selection-item"),title:K,style:z?{visibility:"hidden"}:void 0},L.label):null,V)};var L=function(e,t){var n=(0,d.useRef)(null),o=(0,d.useRef)(!1),a=e.prefixCls,i=e.open,u=e.mode,c=e.showSearch,s=e.tokenWithEnter,f=e.disabled,p=e.prefix,v=e.autoClearSearchValue,h=e.onSearch,m=e.onSearchSubmit,g=e.onToggleOpen,y=e.onInputKeyDown,b=e.onInputBlur,A=e.domRef;d.useImperativeHandle(t,function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}});var x=w(0),C=(0,l.A)(x,2),k=C[0],S=C[1],N=(0,d.useRef)(null),_=function(e){!1!==h(e,!0,o.current)&&g(!0)},R={inputRef:n,onInputKeyDown:function(e){var t,r=e.which,a=n.current instanceof HTMLTextAreaElement;(a||!i||r!==E.A.UP&&r!==E.A.DOWN||e.preventDefault(),y&&y(e),r!==E.A.ENTER||"tags"!==u||o.current||i||null==m||m(e.target.value),a&&!i&&~[E.A.UP,E.A.DOWN,E.A.LEFT,E.A.RIGHT].indexOf(r))||(t=r)&&![E.A.ESC,E.A.SHIFT,E.A.BACKSPACE,E.A.TAB,E.A.WIN_KEY,E.A.ALT,E.A.META,E.A.WIN_KEY_RIGHT,E.A.CTRL,E.A.SEMICOLON,E.A.EQUALS,E.A.CAPS_LOCK,E.A.CONTEXT_MENU,E.A.F1,E.A.F2,E.A.F3,E.A.F4,E.A.F5,E.A.F6,E.A.F7,E.A.F8,E.A.F9,E.A.F10,E.A.F11,E.A.F12].includes(t)&&g(!0)},onInputMouseDown:function(){S(!0)},onInputChange:function(e){var t=e.target.value;if(s&&N.current&&/[\r\n]/.test(N.current)){var n=N.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,N.current)}N.current=null,_(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");N.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==u&&_(e.target.value)},onInputBlur:b},M="multiple"===u||"tags"===u?d.createElement(I,(0,r.A)({},e,R)):d.createElement(F,(0,r.A)({},e,R));return d.createElement("div",{ref:A,className:"".concat(a,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=k();e.target===n.current||t||"combobox"===u&&f||e.preventDefault(),("combobox"===u||c&&t)&&i||(i&&!1!==v&&h("",!0,!1),g())}},p&&d.createElement("div",{className:"".concat(a,"-prefix")},p),M)};const j=d.forwardRef(L);var z=n(62427),K=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],V=function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),l=e.children,c=e.popupElement,s=e.animation,f=e.transitionName,p=e.dropdownStyle,h=e.dropdownClassName,m=e.direction,g=void 0===m?"ltr":m,y=e.placement,b=e.builtinPlacements,A=e.dropdownMatchSelectWidth,w=e.dropdownRender,E=e.dropdownAlign,x=e.getPopupContainer,C=e.empty,k=e.getTriggerDOMNode,S=e.onPopupVisibleChange,N=e.onPopupMouseEnter,_=(0,u.A)(e,K),R="".concat(n,"-dropdown"),M=c;w&&(M=w(c));var P=d.useMemo(function(){return b||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(A)},[b,A]),O=s?"".concat(R,"-").concat(s):f,T="number"==typeof A,D=d.useMemo(function(){return T?null:!1===A?"minWidth":"width"},[A,T]),I=p;T&&(I=(0,i.A)((0,i.A)({},I),{},{width:A}));var F=d.useRef(null);return d.useImperativeHandle(t,function(){return{getPopupElement:function(){var e;return null===(e=F.current)||void 0===e?void 0:e.popupElement}}}),d.createElement(z.A,(0,r.A)({},_,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:y||("rtl"===g?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:R,popupTransitionName:O,popup:d.createElement("div",{onMouseEnter:N},M),ref:F,stretch:D,popupAlign:E,popupVisible:o,getPopupContainer:x,popupClassName:v()(h,(0,a.A)({},"".concat(R,"-empty"),C)),popupStyle:I,getTriggerDOMNode:k,onPopupVisibleChange:S}),l)};const H=d.forwardRef(V);var B=n(87695);function U(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function W(e){return void 0!==e&&!Number.isNaN(e)}function $(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function q(e){var t=(0,i.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,f.Ay)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const Y=d.createContext(null);function X(e){var t=e.visible,n=e.values;if(!t)return null;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map(function(e){var t=e.label,n=e.value;return["number","string"].includes((0,c.A)(t))?t:n}).join(", ")),n.length>50?", ...":null)}var G=["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"],Q=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],J=function(e){return"tags"===e||"multiple"===e},Z=d.forwardRef(function(e,t){var n,f=e.id,p=e.prefixCls,A=e.className,E=e.showSearch,x=e.tagRender,C=e.direction,k=e.omitDomProps,S=e.displayValues,N=e.onDisplayValuesChange,_=e.emptyOptions,R=e.notFoundContent,M=void 0===R?"Not Found":R,P=e.onClear,O=e.mode,T=e.disabled,D=e.loading,I=e.getInputElement,F=e.getRawInputElement,L=e.open,z=e.defaultOpen,K=e.onDropdownVisibleChange,V=e.activeValue,U=e.onActiveValueChange,$=e.activeDescendantId,q=e.searchValue,Z=e.autoClearSearchValue,ee=e.onSearch,te=e.onSearchSplit,ne=e.tokenSeparators,re=e.allowClear,oe=e.prefix,ae=e.suffixIcon,ie=e.clearIcon,le=e.OptionList,ue=e.animation,ce=e.transitionName,se=e.dropdownStyle,fe=e.dropdownClassName,de=e.dropdownMatchSelectWidth,pe=e.dropdownRender,ve=e.dropdownAlign,he=e.placement,me=e.builtinPlacements,ge=e.getPopupContainer,ye=e.showAction,be=void 0===ye?[]:ye,Ae=e.onFocus,we=e.onBlur,Ee=e.onKeyUp,xe=e.onKeyDown,Ce=e.onMouseDown,ke=(0,u.A)(e,G),Se=J(O),Ne=(void 0!==E?E:Se)||"combobox"===O,_e=(0,i.A)({},ke);Q.forEach(function(e){delete _e[e]}),null==k||k.forEach(function(e){delete _e[e]});var Re=d.useState(!1),Me=(0,l.A)(Re,2),Pe=Me[0],Oe=Me[1];d.useEffect(function(){Oe((0,m.A)())},[]);var Te=d.useRef(null),De=d.useRef(null),Ie=d.useRef(null),Fe=d.useRef(null),Le=d.useRef(null),je=d.useRef(!1),ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=d.useState(!1),n=(0,l.A)(t,2),r=n[0],o=n[1],a=d.useRef(null),i=function(){window.clearTimeout(a.current)};return d.useEffect(function(){return i},[]),[r,function(t,n){i(),a.current=window.setTimeout(function(){o(t),n&&n()},e)},i]}(),Ke=(0,l.A)(ze,3),Ve=Ke[0],He=Ke[1],Be=Ke[2];d.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=Fe.current)||void 0===e?void 0:e.focus,blur:null===(t=Fe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Le.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:Te.current||De.current}});var Ue=d.useMemo(function(){var e;if("combobox"!==O)return q;var t=null===(e=S[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[q,O,S]),We="combobox"===O&&"function"==typeof I&&I()||null,$e="function"==typeof F&&F(),qe=(0,g.xK)(De,null==$e||null===(n=$e.props)||void 0===n?void 0:n.ref),Ye=d.useState(!1),Xe=(0,l.A)(Ye,2),Ge=Xe[0],Qe=Xe[1];(0,h.A)(function(){Qe(!0)},[]);var Je=(0,s.A)(!1,{defaultValue:z,value:L}),Ze=(0,l.A)(Je,2),et=Ze[0],tt=Ze[1],nt=!!Ge&&et,rt=!M&&_;(T||rt&&nt&&"combobox"===O)&&(nt=!1);var ot=!rt&&nt,at=d.useCallback(function(e){var t=void 0!==e?e:!nt;T||(tt(t),nt!==t&&(null==K||K(t)))},[T,nt,tt,K]),it=d.useMemo(function(){return(ne||[]).some(function(e){return["\n","\r\n"].includes(e)})},[ne]),lt=d.useContext(Y)||{},ut=lt.maxCount,ct=lt.rawValues,st=function(e,t,n){if(!(Se&&W(ut)&&(null==ct?void 0:ct.size)>=ut)){var r=!0,a=e;null==U||U(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,a=function e(t,n){var a=(0,B.A)(n),i=a[0],l=a.slice(1);if(!i)return[t];var u=t.split(i);return r=r||u.length>1,u.reduce(function(t,n){return[].concat((0,o.A)(t),(0,o.A)(e(n,l)))},[]).filter(Boolean)}(e,t);return r?void 0!==n?a.slice(0,n):a:null}(e,ne,W(ut)?ut-ct.size:void 0),l=n?null:i;return"combobox"!==O&&l&&(a="",null==te||te(l),at(!1),r=!1),ee&&Ue!==a&&ee(a,{source:t?"typing":"effect"}),r}};d.useEffect(function(){nt||Se||"combobox"===O||st("",!1,!1)},[nt]),d.useEffect(function(){et&&T&&tt(!1),T&&!je.current&&He(!1)},[T]);var ft=w(),dt=(0,l.A)(ft,2),pt=dt[0],vt=dt[1],ht=d.useRef(!1),mt=d.useRef(!1),gt=[];d.useEffect(function(){return function(){gt.forEach(function(e){return clearTimeout(e)}),gt.splice(0,gt.length)}},[]);var yt,bt=d.useState({}),At=(0,l.A)(bt,2)[1];$e&&(yt=function(e){at(e)}),function(e,t,n,r){var o=d.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}},[])}(function(){var e;return[Te.current,null===(e=Ie.current)||void 0===e?void 0:e.getPopupElement()]},ot,at,!!$e);var wt,Et=d.useMemo(function(){return(0,i.A)((0,i.A)({},e),{},{notFoundContent:M,open:nt,triggerOpen:ot,id:f,showSearch:Ne,multiple:Se,toggleOpen:at})},[e,M,ot,nt,f,Ne,Se,at]),xt=!!ae||D;xt&&(wt=d.createElement(y,{className:v()("".concat(p,"-arrow"),(0,a.A)({},"".concat(p,"-arrow-loading"),D)),customizeIcon:ae,customizeIconProps:{loading:D,searchValue:Ue,open:nt,focused:Ve,showSearch:Ne}}));var Ct,kt=function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,u=d.useMemo(function(){return"object"===(0,c.A)(r)?r.clearIcon:o||void 0},[r,o]);return{allowClear:d.useMemo(function(){return!(a||!r||!n.length&&!i||"combobox"===l&&""===i)},[r,a,n.length,i,l]),clearIcon:d.createElement(y,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:u},"×")}}(p,function(){var e;null==P||P(),null===(e=Fe.current)||void 0===e||e.focus(),N([],{type:"clear",values:S}),st("",!1,!1)},S,re,ie,T,Ue,O),St=kt.allowClear,Nt=kt.clearIcon,_t=d.createElement(le,{ref:Le}),Rt=v()(p,A,(0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)({},"".concat(p,"-focused"),Ve),"".concat(p,"-multiple"),Se),"".concat(p,"-single"),!Se),"".concat(p,"-allow-clear"),re),"".concat(p,"-show-arrow"),xt),"".concat(p,"-disabled"),T),"".concat(p,"-loading"),D),"".concat(p,"-open"),nt),"".concat(p,"-customize-input"),We),"".concat(p,"-show-search"),Ne)),Mt=d.createElement(H,{ref:Ie,disabled:T,prefixCls:p,visible:ot,popupElement:_t,animation:ue,transitionName:ce,dropdownStyle:se,dropdownClassName:fe,direction:C,dropdownMatchSelectWidth:de,dropdownRender:pe,dropdownAlign:ve,placement:he,builtinPlacements:me,getPopupContainer:ge,empty:_,getTriggerDOMNode:function(e){return De.current||e},onPopupVisibleChange:yt,onPopupMouseEnter:function(){At({})}},$e?d.cloneElement($e,{ref:qe}):d.createElement(j,(0,r.A)({},e,{domRef:De,prefixCls:p,inputElement:We,ref:Fe,id:f,prefix:oe,showSearch:Ne,autoClearSearchValue:Z,mode:O,activeDescendantId:$,tagRender:x,values:S,open:nt,onToggleOpen:at,activeValue:V,searchValue:Ue,onSearch:st,onSearchSubmit:function(e){e&&e.trim()&&ee(e,{source:"submit"})},onRemove:function(e){var t=S.filter(function(t){return t!==e});N(t,{type:"remove",values:[e]})},tokenWithEnter:it,onInputBlur:function(){ht.current=!1}})));return Ct=$e?Mt:d.createElement("div",(0,r.A)({className:Rt},_e,{ref:Te,onMouseDown:function(e){var t,n=e.target,r=null===(t=Ie.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=gt.indexOf(o);-1!==t&>.splice(t,1),Be(),Pe||r.contains(document.activeElement)||null===(e=Fe.current)||void 0===e||e.focus()});gt.push(o)}for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l=0;u-=1){var c=i[u];if(!c.disabled){i.splice(u,1),l=c;break}}l&&N(i,{type:"remove",values:[l]})}for(var s=arguments.length,f=new Array(s>1?s-1:0),d=1;d1?t-1:0),r=1;r=C},[f,C,null==M?void 0:M.size]),V=function(e){e.preventDefault()},H=function(e){var t;null===(t=z.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},B=d.useCallback(function(e){return"combobox"!==p&&M.has(e)},[p,(0,o.A)(M).toString(),M.size]),U=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=j.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];G(e);var n={source:t?"keyboard":"mouse"},r=j[e];r?S(r.value,e,n):S(null,-1,n)};(0,d.useEffect)(function(){Q(!1!==N?U(0):-1)},[j.length,h]);var J=d.useCallback(function(e){return"combobox"===p?String(e).toLowerCase()===h.toLowerCase():M.has(e)},[p,h,(0,o.A)(M).toString(),M.size]);(0,d.useEffect)(function(){var e,t=setTimeout(function(){if(!f&&s&&1===M.size){var e=Array.from(M)[0],t=j.findIndex(function(t){var n=t.data;return h?String(n.value).startsWith(h):n.value===e});-1!==t&&(Q(t),H(t))}});s&&(null===(e=z.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}},[s,h]);var Z=function(e){void 0!==e&&_(e,{selected:!M.has(e)}),f||m(!1)};if(d.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case E.A.N:case E.A.P:case E.A.UP:case E.A.DOWN:var r=0;if(t===E.A.UP?r=-1:t===E.A.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===E.A.N?r=1:t===E.A.P&&(r=-1)),0!==r){var o=U(X+r,r);H(o),Q(o,!0)}break;case E.A.TAB:case E.A.ENTER:var a,i=j[X];!i||null!=i&&null!==(a=i.data)&&void 0!==a&&a.disabled||K?Z(void 0):Z(i.value),s&&e.preventDefault();break;case E.A.ESC:m(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){H(e)}}}),0===j.length)return d.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(L,"-empty"),onMouseDown:V},g);var ee=Object.keys(P).map(function(e){return P[e]}),te=function(e){return e.label};function ne(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var re=function(e){var t=j[e];if(!t)return null;var n=t.data||{},o=n.value,a=t.group,i=(0,x.A)(n,!0),l=te(t);return t?d.createElement("div",(0,r.A)({"aria-label":"string"!=typeof l||a?null:l},i,{key:e},ne(t,e),{"aria-selected":J(o)}),o):null},oe={role:"listbox",id:"".concat(c,"_list")};return d.createElement(d.Fragment,null,O&&d.createElement("div",(0,r.A)({},oe,{style:{height:0,width:0,overflow:"hidden"}}),re(X-1),re(X),re(X+1)),d.createElement(le.A,{itemKey:"key",ref:z,data:j,height:D,itemHeight:I,fullHeight:!1,onMouseDown:V,onScroll:b,virtual:O,direction:T,innerProps:O?null:oe},function(e,t){var n=e.group,o=e.groupOption,i=e.data,l=e.label,c=e.value,s=i.key;if(n){var f,p=null!==(f=i.title)&&void 0!==f?f:ce(l)?l.toString():void 0;return d.createElement("div",{className:v()(L,"".concat(L,"-group"),i.className),title:p},void 0!==l?l:s)}var h=i.disabled,m=i.title,g=(i.children,i.style),b=i.className,A=(0,u.A)(i,ue),w=(0,ie.A)(A,ee),E=B(c),C=h||!E&&K,k="".concat(L,"-option"),S=v()(L,k,b,(0,a.A)((0,a.A)((0,a.A)((0,a.A)({},"".concat(k,"-grouped"),o),"".concat(k,"-active"),X===t&&!C),"".concat(k,"-disabled"),C),"".concat(k,"-selected"),E)),N=te(e),_=!R||"function"==typeof R||E,M="number"==typeof N?N:N||c,P=ce(M)?M.toString():void 0;return void 0!==m&&(P=m),d.createElement("div",(0,r.A)({},(0,x.A)(w),O?{}:ne(e,t),{"aria-selected":J(c),className:S,title:P,onMouseMove:function(){X===t||C||Q(t)},onClick:function(){C||Z(c)},style:g}),d.createElement("div",{className:"".concat(k,"-content")},"function"==typeof F?F(e,{index:t}):M),d.isValidElement(R)||E,_&&d.createElement(y,{className:"".concat(L,"-option-state"),customizeIcon:R,customizeIconProps:{value:c,disabled:C,isSelected:E}},E?"✓":null))}))};const fe=d.forwardRef(se),de=function(e,t){var n=d.useRef({values:new Map,options:new Map});return[d.useMemo(function(){var r=n.current,o=r.values,a=r.options,l=e.map(function(e){var t;return void 0===e.label?(0,i.A)((0,i.A)({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e}),u=new Map,c=new Map;return l.forEach(function(e){u.set(e.value,e),c.set(e.value,t.get(e.value)||a.get(e.value))}),n.current.values=u,n.current.options=c,l},[e,t]),d.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]};function pe(e,t){return R(e).join("").toUpperCase().includes(t)}(Object.getOwnPropertyDescriptor(de,"name")||{}).writable||Object.defineProperty(de,"name",{value:"default",configurable:!0});const ve=function(e,t,n,r,o){return d.useMemo(function(){if(!n||!1===r)return e;var l=t.options,u=t.label,c=t.value,s=[],f="function"==typeof r,d=n.toUpperCase(),p=f?r:function(e,t){return o?pe(t[o],d):t[l]?pe(t["children"!==u?u:"label"],d):pe(t[c],d)},v=f?function(e){return q(e)}:function(e){return e};return e.forEach(function(e){if(e[l])if(p(n,v(e)))s.push(e);else{var t=e[l].filter(function(e){return p(n,v(e))});t.length&&s.push((0,i.A)((0,i.A)({},e),{},(0,a.A)({},l,t)))}else p(n,v(e))&&s.push(e)}),s},[e,r,o,n,t])};(Object.getOwnPropertyDescriptor(ve,"name")||{}).writable||Object.defineProperty(ve,"name",{value:"default",configurable:!0});var he=n(3979),me=n(82546),ge=["children","value"],ye=["children"];function be(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,me.A)(e).map(function(e,n){if(!d.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,a=r.key,l=r.props,c=l.children,s=(0,u.A)(l,ye);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,l=(0,u.A)(r,ge);return(0,i.A)({key:n,value:void 0!==a?a:n,children:o},l)}(e):(0,i.A)((0,i.A)({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},s),{},{options:be(c)})}).filter(function(e){return e})}const Ae=function(e,t,n,r,o){return d.useMemo(function(){var a=e;!e&&(a=be(t));var i=new Map,l=new Map,u=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c0?e(t.options):t.options}):t})},ze=d.useMemo(function(){return N?je(Le):Le},[Le,N,ue]),Ke=d.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=$(n,!1),i=a.label,l=a.value,u=a.options,c=a.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(n||!(u in t)){var a=t[l];o.push({key:U(t,o.length),groupOption:n,data:t,label:t[i],value:a})}else{var s=t[c];void 0===s&&r&&(s=t.label),o.push({key:U(t,o.length),group:!0,data:t,label:s}),e(t[u],!0)}})}(e,!1),o}(ze,{fieldNames:ae,childrenAsData:re})},[ze,ae,re]),Ve=function(e){var t=ye(e);if(Se(t),G&&(t.length!==Me.length||t.some(function(e,t){var n;return(null===(n=Me[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=X?t:t.map(function(e){return e.value}),r=t.map(function(e){return q(Pe(e.value))});G(ne?n:n[0],ne?r:r[0])}},He=d.useState(null),Be=(0,l.A)(He,2),Ue=Be[0],We=Be[1],$e=d.useState(0),qe=(0,l.A)($e,2),Ye=qe[0],Xe=qe[1],Ge=void 0!==D?D:"combobox"!==f,Qe=d.useCallback(function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Xe(t),h&&"combobox"===f&&null!==e&&"keyboard"===r&&We(String(e))},[h,f]),Je=function(e,t,n){var r=function(){var t,n=Pe(e);return[X?{label:null==n?void 0:n[ae.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,q(n)]};if(t&&E){var o=r(),a=(0,l.A)(o,2),i=a[0],u=a[1];E(i,u)}else if(!t&&x&&"clear"!==n){var c=r(),s=(0,l.A)(c,2),f=s[0],d=s[1];x(f,d)}},Ze=we(function(e,t){var n,r=!ne||t.selected;n=r?ne?[].concat((0,o.A)(Me),[e]):[e]:Me.filter(function(t){return t.value!==e}),Ve(n),Je(e,r),"combobox"===f?We(""):J&&!w||(ce(""),We(""))}),et=d.useMemo(function(){var e=!1!==F&&!1!==k;return(0,i.A)((0,i.A)({},se),{},{flattenOptions:Ke,onActiveValue:Qe,defaultActiveFirstOption:Ge,onSelect:Ze,menuItemSelectedIcon:I,rawValues:Te,fieldNames:ae,virtual:e,direction:L,listHeight:z,listItemHeight:V,childrenAsData:re,maxCount:Q,optionRender:O})},[Q,se,Ke,Qe,Ge,Ze,I,Te,ae,F,k,L,z,V,re,O]);return d.createElement(Y.Provider,{value:et},d.createElement(ee,(0,r.A)({},Z,{id:te,prefixCls:v,ref:t,omitDomProps:xe,mode:f,displayValues:Oe,onDisplayValuesChange:function(e,t){Ve(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach(function(e){Je(e.value,!1,n)})},direction:L,searchValue:ue,onSearch:function(e,t){if(ce(e),We(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===f&&Ve(e),null==b||b(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,o.A)(Te),[n])));Ve(r),Je(n,!0),ce("")}}},autoClearSearchValue:w,onSearchSplit:function(e){var t=e;"tags"!==f&&(t=e.map(function(e){var t=me.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,o.A)(Te),(0,o.A)(t))));Ve(n),n.forEach(function(e){Je(e,!0)})},dropdownMatchSelectWidth:k,OptionList:fe,emptyOptions:!Ke.length,activeValue:Ue,activeDescendantId:"".concat(te,"_list_").concat(Ye)})))});var ke=Ce;ke.Option=oe,ke.OptGroup=ne;const Se=ke},55168(e,t,n){"use strict";n.d(t,{Q:()=>x,A:()=>j});var r=n(89379),o=n(64467),a=n(60436),i=n(82284),l=n(5544),u=n(46942),c=n.n(u),s=n(26956),f=n(12533),d=n(43210),p=n(68210),v=n(96540),h=n(58168),m=n(80045),g=n(40961);function y(e,t,n){return(e-t)/(n-t)}function b(e,t,n,r){var o=y(t,n,r),a={};switch(e){case"rtl":a.right="".concat(100*o,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(100*o,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(100*o,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(100*o,"%"),a.transform="translateX(-50%)"}return a}function A(e,t){return Array.isArray(e)?e[t]:e}var w=n(16928);const E=v.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});var x=v.createContext({}),C=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"];const k=v.forwardRef(function(e,t){var n,a=e.prefixCls,i=e.value,l=e.valueIndex,u=e.onStartMove,s=e.onDelete,f=e.style,d=e.render,p=e.dragging,g=e.draggingDelete,y=e.onOffsetChange,x=e.onChangeComplete,k=e.onFocus,S=e.onMouseEnter,N=(0,m.A)(e,C),_=v.useContext(E),R=_.min,M=_.max,P=_.direction,O=_.disabled,T=_.keyboard,D=_.range,I=_.tabIndex,F=_.ariaLabelForHandle,L=_.ariaLabelledByForHandle,j=_.ariaRequired,z=_.ariaValueTextFormatterForHandle,K=_.styles,V=_.classNames,H="".concat(a,"-handle"),B=function(e){O||u(e,l)},U=b(P,i,R,M),W={};null!==l&&(W={tabIndex:O?null:A(I,l),role:"slider","aria-valuemin":R,"aria-valuemax":M,"aria-valuenow":i,"aria-disabled":O,"aria-label":A(F,l),"aria-labelledby":A(L,l),"aria-required":A(j,l),"aria-valuetext":null===(n=A(z,l))||void 0===n?void 0:n(i),"aria-orientation":"ltr"===P||"rtl"===P?"horizontal":"vertical",onMouseDown:B,onTouchStart:B,onFocus:function(e){null==k||k(e,l)},onMouseEnter:function(e){S(e,l)},onKeyDown:function(e){if(!O&&T){var t=null;switch(e.which||e.keyCode){case w.A.LEFT:t="ltr"===P||"btt"===P?-1:1;break;case w.A.RIGHT:t="ltr"===P||"btt"===P?1:-1;break;case w.A.UP:t="ttb"!==P?1:-1;break;case w.A.DOWN:t="ttb"!==P?-1:1;break;case w.A.HOME:t="min";break;case w.A.END:t="max";break;case w.A.PAGE_UP:t=2;break;case w.A.PAGE_DOWN:t=-2;break;case w.A.BACKSPACE:case w.A.DELETE:null==s||s(l)}null!==t&&(e.preventDefault(),y(t,l))}},onKeyUp:function(e){switch(e.which||e.keyCode){case w.A.LEFT:case w.A.RIGHT:case w.A.UP:case w.A.DOWN:case w.A.HOME:case w.A.END:case w.A.PAGE_UP:case w.A.PAGE_DOWN:null==x||x()}}});var $=v.createElement("div",(0,h.A)({ref:t,className:c()(H,(0,o.A)((0,o.A)((0,o.A)({},"".concat(H,"-").concat(l+1),null!==l&&D),"".concat(H,"-dragging"),p),"".concat(H,"-dragging-delete"),g),V.handle),style:(0,r.A)((0,r.A)((0,r.A)({},U),f),K.handle)},W,N));return d&&($=d($,{index:l,prefixCls:a,value:i,dragging:p,draggingDelete:g})),$});var S=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"];const N=v.forwardRef(function(e,t){var n=e.prefixCls,o=e.style,a=e.onStartMove,i=e.onOffsetChange,u=e.values,c=e.handleRender,s=e.activeHandleRender,f=e.draggingIndex,d=e.draggingDelete,p=e.onFocus,y=(0,m.A)(e,S),b=v.useRef({}),w=v.useState(!1),E=(0,l.A)(w,2),x=E[0],C=E[1],N=v.useState(-1),_=(0,l.A)(N,2),R=_[0],M=_[1],P=function(e){M(e),C(!0)};v.useImperativeHandle(t,function(){return{focus:function(e){var t;null===(t=b.current[e])||void 0===t||t.focus()},hideHelp:function(){(0,g.flushSync)(function(){C(!1)})}}});var O=(0,r.A)({prefixCls:n,onStartMove:a,onOffsetChange:i,render:c,onFocus:function(e,t){P(t),null==p||p(e)},onMouseEnter:function(e,t){P(t)}},y);return v.createElement(v.Fragment,null,u.map(function(e,t){var n=f===t;return v.createElement(k,(0,h.A)({ref:function(e){e?b.current[t]=e:delete b.current[t]},dragging:n,draggingDelete:n&&d,style:A(o,t),key:t,value:e,valueIndex:t},O))}),s&&x&&v.createElement(k,(0,h.A)({key:"a11y"},O,{value:u[R],valueIndex:null,dragging:-1!==f,draggingDelete:d,render:s,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))});const _=function(e){var t=e.prefixCls,n=e.style,a=e.children,i=e.value,l=e.onClick,u=v.useContext(E),s=u.min,f=u.max,d=u.direction,p=u.includedStart,h=u.includedEnd,m=u.included,g="".concat(t,"-text"),y=b(d,i,s,f);return v.createElement("span",{className:c()(g,(0,o.A)({},"".concat(g,"-active"),m&&p<=i&&i<=h)),style:(0,r.A)((0,r.A)({},y),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){l(i)}},a)};const R=function(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?v.createElement("div",{className:o},n.map(function(e){var t=e.value,n=e.style,a=e.label;return v.createElement(_,{key:t,prefixCls:o,style:n,value:t,onClick:r},a)})):null};const M=function(e){var t=e.prefixCls,n=e.value,a=e.style,i=e.activeStyle,l=v.useContext(E),u=l.min,s=l.max,f=l.direction,d=l.included,p=l.includedStart,h=l.includedEnd,m="".concat(t,"-dot"),g=d&&p<=n&&n<=h,y=(0,r.A)((0,r.A)({},b(f,n,u,s)),"function"==typeof a?a(n):a);return g&&(y=(0,r.A)((0,r.A)({},y),"function"==typeof i?i(n):i)),v.createElement("span",{className:c()(m,(0,o.A)({},"".concat(m,"-active"),g)),style:y})};const P=function(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,i=v.useContext(E),l=i.min,u=i.max,c=i.step,s=v.useMemo(function(){var e=new Set;if(n.forEach(function(t){e.add(t.value)}),r&&null!==c)for(var t=l;t<=u;)e.add(t),t+=c;return Array.from(e)},[l,u,c,r,n]);return v.createElement("div",{className:"".concat(t,"-step")},s.map(function(e){return v.createElement(M,{prefixCls:t,key:e,value:e,style:o,activeStyle:a})}))};const O=function(e){var t=e.prefixCls,n=e.style,a=e.start,i=e.end,l=e.index,u=e.onStartMove,s=e.replaceCls,f=v.useContext(E),d=f.direction,p=f.min,h=f.max,m=f.disabled,g=f.range,b=f.classNames,A="".concat(t,"-track"),w=y(a,p,h),x=y(i,p,h),C=function(e){!m&&u&&u(e,-1)},k={};switch(d){case"rtl":k.right="".concat(100*w,"%"),k.width="".concat(100*x-100*w,"%");break;case"btt":k.bottom="".concat(100*w,"%"),k.height="".concat(100*x-100*w,"%");break;case"ttb":k.top="".concat(100*w,"%"),k.height="".concat(100*x-100*w,"%");break;default:k.left="".concat(100*w,"%"),k.width="".concat(100*x-100*w,"%")}var S=s||c()(A,(0,o.A)((0,o.A)({},"".concat(A,"-").concat(l+1),null!==l&&g),"".concat(t,"-track-draggable"),u),b.track);return v.createElement("div",{className:S,style:(0,r.A)((0,r.A)({},k),n),onMouseDown:C,onTouchStart:C})};const T=function(e){var t=e.prefixCls,n=e.style,o=e.values,a=e.startPoint,i=e.onStartMove,l=v.useContext(E),u=l.included,s=l.range,f=l.min,d=l.styles,p=l.classNames,h=v.useMemo(function(){if(!s){if(0===o.length)return[];var e=null!=a?a:f,t=o[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],r=0;r130&&p=0&&G},[G,Me]),Oe=v.useMemo(function(){return Object.keys(le||{}).map(function(e){var t=le[e],n={value:Number(e)};return t&&"object"===(0,i.A)(t)&&!v.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n}).filter(function(e){var t=e.label;return t||"number"==typeof t}).sort(function(e,t){return e.value-t.value})},[le]),Te=function(e,t,n,r,o,i){var l=v.useCallback(function(n){return Math.max(e,Math.min(t,n))},[e,t]),u=v.useCallback(function(r){if(null!==n){var o=e+Math.round((l(r)-e)/n)*n,a=function(e){return(String(e).split(".")[1]||"").length},i=Math.max(a(n),a(t),a(e)),u=Number(o.toFixed(i));return e<=u&&u<=t?u:null}return null},[n,e,t,l]),c=v.useCallback(function(o){var a=l(o),i=r.map(function(e){return e.value});null!==n&&i.push(u(o)),i.push(e,t);var c=i[0],s=t-e;return i.forEach(function(e){var t=Math.abs(a-e);t<=s&&(c=e,s=t)}),c},[e,t,r,n,l,u]),s=function o(i,l,c){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof l){var f,d=i[c],p=d+l,v=[];r.forEach(function(e){v.push(e.value)}),v.push(e,t),v.push(u(d));var h=l>0?1:-1;"unit"===s?v.push(u(d+h*n)):v.push(u(p)),v=v.filter(function(e){return null!==e}).filter(function(e){return l<0?e<=d:e>=d}),"unit"===s&&(v=v.filter(function(e){return e!==d}));var m="unit"===s?d:p;f=v[0];var g=Math.abs(f-m);if(v.forEach(function(e){var t=Math.abs(e-m);t1){var y=(0,a.A)(i);return y[c]=f,o(y,l-h,c,s)}return f}return"min"===l?e:"max"===l?t:void 0},f=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[n],a=s(e,t,n,r);return{value:a,changed:a!==o}},d=function(e){return null===i&&0===e||"number"==typeof i&&e3&&void 0!==arguments[3]?arguments[3]:"unit",a=e.map(c),l=a[n],u=s(a,t,n,r);if(a[n]=u,!1===o){var p=i||0;n>0&&a[n-1]!==l&&(a[n]=Math.max(a[n],a[n-1]+p)),n0;g-=1)for(var y=!0;d(a[g]-a[g-1])&&y;){var b=f(a,-1,g-1);a[g-1]=b.value,y=b.changed}for(var A=a.length-1;A>0;A-=1)for(var w=!0;d(a[A]-a[A-1])&&w;){var E=f(a,-1,A-1);a[A-1]=E.value,w=E.changed}for(var x=0;x=0?H+1:2;for(n=n.slice(0,r);n.length=0&&ye.current.focus(e)}nt(null)},[tt]);var rt=v.useMemo(function(){return(!ke||null!==Me)&&ke},[ke,Me]),ot=(0,s.A)(function(e,t){Qe(e,t),null==U||U(He(Ve))}),at=-1!==qe;v.useEffect(function(){if(!at){var e=Ve.lastIndexOf(Ye);ye.current.focus(e)}},[at]);var it=v.useMemo(function(){return(0,a.A)(Ge).sort(function(e,t){return e-t})},[Ge]),lt=v.useMemo(function(){return xe?[it[0],it[it.length-1]]:[_e,it[0]]},[it,xe,_e]),ut=(0,l.A)(lt,2),ct=ut[0],st=ut[1];v.useImperativeHandle(t,function(){return{focus:function(){ye.current.focus(0)},blur:function(){var e,t=document.activeElement;null!==(e=be.current)&&void 0!==e&&e.contains(t)&&(null==t||t.blur())}}}),v.useEffect(function(){k&&ye.current.focus(0)},[]);var ft=v.useMemo(function(){return{min:_e,max:Re,direction:Ae,disabled:w,keyboard:C,step:Me,included:ee,includedStart:ct,includedEnd:st,range:xe,tabIndex:pe,ariaLabelForHandle:ve,ariaLabelledByForHandle:he,ariaRequired:me,ariaValueTextFormatterForHandle:ge,styles:y||{},classNames:g||{}}},[_e,Re,Ae,w,C,Me,ee,ct,st,xe,pe,ve,he,me,ge,y,g]);return v.createElement(E.Provider,{value:ft},v.createElement("div",{ref:be,className:c()(u,h,(0,o.A)((0,o.A)((0,o.A)((0,o.A)({},"".concat(u,"-disabled"),w),"".concat(u,"-vertical"),J),"".concat(u,"-horizontal"),!J),"".concat(u,"-with-marks"),Oe.length)),style:m,onMouseDown:function(e){e.preventDefault();var t,n=be.current.getBoundingClientRect(),r=n.width,o=n.height,a=n.left,i=n.top,l=n.bottom,u=n.right,c=e.clientX,s=e.clientY;switch(Ae){case"btt":t=(l-s)/o;break;case"ttb":t=(s-i)/o;break;case"rtl":t=(u-c)/r;break;default:t=(c-a)/r}Je(Ie(_e+t*(Re-_e)),e)},id:b},v.createElement("div",{className:c()("".concat(u,"-rail"),null==g?void 0:g.rail),style:(0,r.A)((0,r.A)({},oe),null==y?void 0:y.rail)}),!1!==fe&&v.createElement(T,{prefixCls:u,style:ne,values:Ve,startPoint:te,onStartMove:rt?ot:void 0}),v.createElement(P,{prefixCls:u,marks:Oe,dots:ue,style:ae,activeStyle:ie}),v.createElement(N,{ref:ye,prefixCls:u,style:re,values:Ge,draggingIndex:qe,draggingDelete:Xe,onStartMove:ot,onOffsetChange:function(e,t){if(!w){var n=Fe(Ve,e,t);null==U||U(He(Ve)),Be(n.values),nt(n.value)}},onFocus:S,onBlur:_,handleRender:ce,activeHandleRender:se,onChangeComplete:Ue,onDelete:Ce?function(e){if(!(w||!Ce||Ve.length<=Se)){var t=(0,a.A)(Ve);t.splice(e,1),null==U||U(He(t)),Be(t);var n=Math.max(0,e-1);ye.current.hideHelp(),ye.current.focus(n)}}:void 0}),v.createElement(R,{prefixCls:u,marks:Oe,onClick:Je})))});const j=L},92387(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(58168),o=n(89379),a=n(64467),i=n(80045),l=n(46942),u=n.n(l),c=n(96540),s=n(16928),f=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function d(e){return"string"==typeof e}const p=function(e){var t,n=e.className,l=e.prefixCls,p=e.style,v=e.active,h=e.status,m=e.iconPrefix,g=e.icon,y=(e.wrapperStyle,e.stepNumber),b=e.disabled,A=e.description,w=e.title,E=e.subTitle,x=e.progressDot,C=e.stepIcon,k=e.tailContent,S=e.icons,N=e.stepIndex,_=e.onStepClick,R=e.onClick,M=e.render,P=(0,i.A)(e,f),O={};!!_&&!b&&(O.role="button",O.tabIndex=0,O.onClick=function(e){null==R||R(e),_(N)},O.onKeyDown=function(e){var t=e.which;t!==s.A.ENTER&&t!==s.A.SPACE||_(N)});var T,D,I,F,L=h||"wait",j=u()("".concat(l,"-item"),"".concat(l,"-item-").concat(L),n,(t={},(0,a.A)(t,"".concat(l,"-item-custom"),g),(0,a.A)(t,"".concat(l,"-item-active"),v),(0,a.A)(t,"".concat(l,"-item-disabled"),!0===b),t)),z=(0,o.A)({},p),K=c.createElement("div",(0,r.A)({},P,{className:j,style:z}),c.createElement("div",(0,r.A)({onClick:R},O,{className:"".concat(l,"-item-container")}),c.createElement("div",{className:"".concat(l,"-item-tail")},k),c.createElement("div",{className:"".concat(l,"-item-icon")},(I=u()("".concat(l,"-icon"),"".concat(m,"icon"),(T={},(0,a.A)(T,"".concat(m,"icon-").concat(g),g&&d(g)),(0,a.A)(T,"".concat(m,"icon-check"),!g&&"finish"===h&&(S&&!S.finish||!S)),(0,a.A)(T,"".concat(m,"icon-cross"),!g&&"error"===h&&(S&&!S.error||!S)),T)),F=c.createElement("span",{className:"".concat(l,"-icon-dot")}),D=x?"function"==typeof x?c.createElement("span",{className:"".concat(l,"-icon")},x(F,{index:y-1,status:h,title:w,description:A})):c.createElement("span",{className:"".concat(l,"-icon")},F):g&&!d(g)?c.createElement("span",{className:"".concat(l,"-icon")},g):S&&S.finish&&"finish"===h?c.createElement("span",{className:"".concat(l,"-icon")},S.finish):S&&S.error&&"error"===h?c.createElement("span",{className:"".concat(l,"-icon")},S.error):g||"finish"===h||"error"===h?c.createElement("span",{className:I}):c.createElement("span",{className:"".concat(l,"-icon")},y),C&&(D=C({index:y-1,status:h,title:w,description:A,node:D})),D)),c.createElement("div",{className:"".concat(l,"-item-content")},c.createElement("div",{className:"".concat(l,"-item-title")},w,E&&c.createElement("div",{title:"string"==typeof E?E:void 0,className:"".concat(l,"-item-subtitle")},E)),A&&c.createElement("div",{className:"".concat(l,"-item-description")},A))));return M&&(K=M(K)||null),K};var v=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function h(e){var t,n=e.prefixCls,l=void 0===n?"rc-steps":n,s=e.style,f=void 0===s?{}:s,d=e.className,h=(e.children,e.direction),m=void 0===h?"horizontal":h,g=e.type,y=void 0===g?"default":g,b=e.labelPlacement,A=void 0===b?"horizontal":b,w=e.iconPrefix,E=void 0===w?"rc":w,x=e.status,C=void 0===x?"process":x,k=e.size,S=e.current,N=void 0===S?0:S,_=e.progressDot,R=void 0!==_&&_,M=e.stepIcon,P=e.initial,O=void 0===P?0:P,T=e.icons,D=e.onChange,I=e.itemRender,F=e.items,L=void 0===F?[]:F,j=(0,i.A)(e,v),z="navigation"===y,K="inline"===y,V=K||R,H=K?"horizontal":m,B=K?void 0:k,U=V?"vertical":A,W=u()(l,"".concat(l,"-").concat(H),d,(t={},(0,a.A)(t,"".concat(l,"-").concat(B),B),(0,a.A)(t,"".concat(l,"-label-").concat(U),"horizontal"===H),(0,a.A)(t,"".concat(l,"-dot"),!!V),(0,a.A)(t,"".concat(l,"-navigation"),z),(0,a.A)(t,"".concat(l,"-inline"),K),t)),$=function(e){D&&N!==e&&D(e)};return c.createElement("div",(0,r.A)({className:W,style:f},j),L.filter(function(e){return e}).map(function(e,t){var n=(0,o.A)({},e),a=O+t;return"error"===C&&t===N-1&&(n.className="".concat(l,"-next-error")),n.status||(n.status=a===N?C:av});var r=n(58168),o=n(64467),a=n(5544),i=n(80045),l=n(96540),u=n(46942),c=n.n(u),s=n(12533),f=n(16928),d=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],p=l.forwardRef(function(e,t){var n,u=e.prefixCls,p=void 0===u?"rc-switch":u,v=e.className,h=e.checked,m=e.defaultChecked,g=e.disabled,y=e.loadingIcon,b=e.checkedChildren,A=e.unCheckedChildren,w=e.onClick,E=e.onChange,x=e.onKeyDown,C=(0,i.A)(e,d),k=(0,s.A)(!1,{value:h,defaultValue:m}),S=(0,a.A)(k,2),N=S[0],_=S[1];function R(e,t){var n=N;return g||(_(n=e),null==E||E(n,t)),n}var M=c()(p,v,(n={},(0,o.A)(n,"".concat(p,"-checked"),N),(0,o.A)(n,"".concat(p,"-disabled"),g),n));return l.createElement("button",(0,r.A)({},C,{type:"button",role:"switch","aria-checked":N,disabled:g,className:M,ref:t,onKeyDown:function(e){e.which===f.A.LEFT?R(!1,e):e.which===f.A.RIGHT&&R(!0,e),null==x||x(e)},onClick:function(e){var t=R(!N,e);null==w||w(t,e)}}),y,l.createElement("span",{className:"".concat(p,"-inner")},l.createElement("span",{className:"".concat(p,"-inner-checked")},b),l.createElement("span",{className:"".concat(p,"-inner-unchecked")},A)))});p.displayName="Switch";const v=p},82930(e,t,n){"use strict";n.d(t,{F:()=>o,k:()=>r});var r={},o="rc-table-internal-hook"},86639(e,t,n){"use strict";n.d(t,{P:()=>m,A:()=>b});var r=n(5544),o=n(64467),a=n(60436),i=n(82284),l=n(89379),u=n(80045),c=n(82546),s=(n(68210),n(96540)),f=n(82930),d=n(755);function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var v=["children"],h=["fixed"];function m(e){return(0,c.A)(e).filter(function(e){return s.isValidElement(e)}).map(function(e){var t=e.key,n=e.props,r=n.children,o=(0,u.A)(n,v),a=(0,l.A)({key:t},o);return r&&(a.children=m(r)),a})}function g(e){return e.filter(function(e){return e&&"object"===(0,i.A)(e)&&!e.hidden}).map(function(e){var t=e.children;return t&&t.length>0?(0,l.A)((0,l.A)({},e),{},{children:g(t)}):e})}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter(function(e){return e&&"object"===(0,i.A)(e)}).reduce(function(e,n,r){var o=n.fixed,i=!0===o?"left":o,u="".concat(t,"-").concat(r),c=n.children;return c&&c.length>0?[].concat((0,a.A)(e),(0,a.A)(y(c,u).map(function(e){var t;return(0,l.A)((0,l.A)({},e),{},{fixed:null!==(t=e.fixed)&&void 0!==t?t:i})}))):[].concat((0,a.A)(e),[(0,l.A)((0,l.A)({key:u},n),{},{fixed:i})])},[])}const b=function(e,t){var n=e.prefixCls,a=e.columns,i=e.children,c=e.expandable,v=e.expandedKeys,b=e.columnTitle,A=e.getRowKey,w=e.onTriggerExpand,E=e.expandIcon,x=e.rowExpandable,C=e.expandIconColumnIndex,k=e.expandedRowOffset,S=void 0===k?0:k,N=e.direction,_=e.expandRowByClick,R=e.columnWidth,M=e.fixed,P=e.scrollWidth,O=e.clientWidth,T=s.useMemo(function(){return g((a||m(i)||[]).slice())},[a,i]),D=s.useMemo(function(){if(c){var e=T.slice();if(!e.includes(f.k)){var t=C||0,r=0===t&&"right"===M?T.length:t;r>=0&&e.splice(r,0,f.k)}0;var a=e.indexOf(f.k);e=e.filter(function(e,t){return e!==f.k||t===a});var i,u=T[a];i=M||(u?u.fixed:null);var p=(0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)({},d.P,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",b),"fixed",i),"className","".concat(n,"-row-expand-icon-cell")),"width",R),"render",function(e,t,r){var o=A(t,r),a=v.has(o),i=!x||x(t),l=E({prefixCls:n,expanded:a,expandable:i,record:t,onExpand:w});return _?s.createElement("span",{onClick:function(e){return e.stopPropagation()}},l):l});return e.map(function(e,t){var n=e===f.k?p:e;return t=0;t-=1){var n=F[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var o=F[r].fixed;if("left"!==o&&!0!==o)return!0}var a=F.findIndex(function(e){return"right"===e.fixed});if(a>=0)for(var i=a;i0){var r=0,o=0;e.forEach(function(e){var n=p(t,e.width);n?r+=n:o+=1});var a=Math.max(t,n),i=Math.max(a-r,o),u=o,c=i/o,s=0,f=e.map(function(e){var n=(0,l.A)({},e),r=p(t,n.width);if(r)n.width=r;else{var o=Math.floor(c);n.width=1===u?i:o,i-=o,u-=1}return s+=n.width,n});if(sr.k,PL:()=>ae.P,Fh:()=>r.F,BD:()=>H,T:()=>Oe,Y9:()=>We});var r=n(82930),o=n(5544),a=n(26956),i=n(30981),l=n(43210),u=n(96540),c=n(40961);function s(e){var t=u.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,r=e.children,a=u.useRef(n);a.current=n;var l=u.useState(function(){return{getValue:function(){return a.current},listeners:new Set}}),s=(0,o.A)(l,1)[0];return(0,i.A)(function(){(0,c.unstable_batchedUpdates)(function(){s.listeners.forEach(function(e){e(n)})})},[n]),u.createElement(t.Provider,{value:s},r)},defaultValue:e}}function f(e,t){var n=(0,a.A)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach(function(t){n[t]=e[t]}),n}),r=u.useContext(null==e?void 0:e.Context),c=r||{},s=c.listeners,f=c.getValue,d=u.useRef();d.current=n(r?f():null==e?void 0:e.defaultValue);var p=u.useState({}),v=(0,o.A)(p,2)[1];return(0,i.A)(function(){if(r)return s.add(e),function(){s.delete(e)};function e(e){var t=n(e);(0,l.A)(d.current,t,!0)||v({})}},[r]),d.current}var d=n(58168),p=n(8719);function v(){var e=u.createContext(null);function t(){return u.useContext(e)}return{makeImmutable:function(n,r){var o=(0,p.f3)(n),a=function(a,i){var l=o?{ref:i}:{},c=u.useRef(0),s=u.useRef(a);return null!==t()?u.createElement(n,(0,d.A)({},a,l)):(r&&!r(s.current,a)||(c.current+=1),s.current=a,u.createElement(e.Provider,{value:c.current},u.createElement(n,(0,d.A)({},a,l))))};return o?u.forwardRef(a):a},responseImmutable:function(e,n){var r=(0,p.f3)(e),o=function(n,o){var a=r?{ref:o}:{};return t(),u.createElement(e,(0,d.A)({},n,a))};return r?u.memo(u.forwardRef(o),n):u.memo(o,n)},useImmutableMark:t}}var h=v(),m=(h.makeImmutable,h.responseImmutable,h.useImmutableMark,v()),g=m.makeImmutable,y=m.responseImmutable,b=m.useImmutableMark;const A=s();var w=n(82284),E=n(89379),x=n(64467),C=n(46942),k=n.n(C),S=n(28104),N=n(16300);n(68210);const _=u.createContext({renderWithProps:!1});function R(e){var t=[],n={};return e.forEach(function(e){for(var r,o=e||{},a=o.key,i=o.dataIndex,l=a||(r=i,null==r?[]:Array.isArray(r)?r:[r]).join("-")||"RC_TABLE_KEY";n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function M(e){return null!=e}function P(e,t,n,r,a,i){var c=u.useContext(_),s=b();return(0,S.A)(function(){if(M(r))return[r];var o,i=null==t||""===t?[]:Array.isArray(t)?t:[t],l=(0,N.A)(e,i),s=l,f=void 0;if(a){var d=a(l,e,n);!(o=d)||"object"!==(0,w.A)(o)||Array.isArray(o)||u.isValidElement(o)?s=d:(s=d.children,f=d.props,c.renderWithProps=!0)}return[s,f]},[s,e,r,t,a,n],function(e,t){if(i){var n=(0,o.A)(e,2)[1],r=(0,o.A)(t,2)[1];return i(r,n)}return!!c.renderWithProps||!(0,l.A)(e,t,!0)})}var O=n(81470);function T(e){var t,n,r,a,i,l,c,s;var p=e.component,v=e.children,h=e.ellipsis,m=e.scope,g=e.prefixCls,y=e.className,b=e.align,C=e.record,S=e.render,N=e.dataIndex,_=e.renderIndex,R=e.shouldCellUpdate,M=e.index,T=e.rowType,D=e.colSpan,I=e.rowSpan,F=e.fixLeft,L=e.fixRight,j=e.firstFixLeft,z=e.lastFixLeft,K=e.firstFixRight,V=e.lastFixRight,H=e.appendNode,B=e.additionalProps,U=void 0===B?{}:B,W=e.isSticky,$="".concat(g,"-cell"),q=f(A,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Y=q.supportSticky,X=q.allColumnsFixedLeft,G=q.rowHoverable,Q=P(C,N,_,v,S,R),J=(0,o.A)(Q,2),Z=J[0],ee=J[1],te={},ne="number"==typeof F&&Y,re="number"==typeof L&&Y;ne&&(te.position="sticky",te.left=F),re&&(te.position="sticky",te.right=L);var oe=null!==(t=null!==(n=null!==(r=null==ee?void 0:ee.colSpan)&&void 0!==r?r:U.colSpan)&&void 0!==n?n:D)&&void 0!==t?t:1,ae=null!==(a=null!==(i=null!==(l=null==ee?void 0:ee.rowSpan)&&void 0!==l?l:U.rowSpan)&&void 0!==i?i:I)&&void 0!==a?a:1,ie=function(e,t){return f(A,function(n){var r,o,a,i;return[(r=e,o=t||1,a=n.hoverStartRow,i=n.hoverEndRow,r<=i&&r+o-1>=a),n.onHover]})}(M,ae),le=(0,o.A)(ie,2),ue=le[0],ce=le[1],se=(0,O._q)(function(e){var t;C&&ce(M,M+ae-1),null==U||null===(t=U.onMouseEnter)||void 0===t||t.call(U,e)}),fe=(0,O._q)(function(e){var t;C&&ce(-1,-1),null==U||null===(t=U.onMouseLeave)||void 0===t||t.call(U,e)});if(0===oe||0===ae)return null;var de=null!==(c=U.title)&&void 0!==c?c:function(e){var t,n=e.ellipsis,r=e.rowType,o=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===r)&&("string"==typeof o||"number"==typeof o?t=o.toString():u.isValidElement(o)&&"string"==typeof o.props.children&&(t=o.props.children)),t}({rowType:T,ellipsis:h,children:Z}),pe=k()($,y,(s={},(0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)((0,x.A)(s,"".concat($,"-fix-left"),ne&&Y),"".concat($,"-fix-left-first"),j&&Y),"".concat($,"-fix-left-last"),z&&Y),"".concat($,"-fix-left-all"),z&&X&&Y),"".concat($,"-fix-right"),re&&Y),"".concat($,"-fix-right-first"),K&&Y),"".concat($,"-fix-right-last"),V&&Y),"".concat($,"-ellipsis"),h),"".concat($,"-with-append"),H),"".concat($,"-fix-sticky"),(ne||re)&&W&&Y),(0,x.A)(s,"".concat($,"-row-hover"),!ee&&ue)),U.className,null==ee?void 0:ee.className),ve={};b&&(ve.textAlign=b);var he=(0,E.A)((0,E.A)((0,E.A)((0,E.A)({},null==ee?void 0:ee.style),te),ve),U.style),me=Z;return"object"!==(0,w.A)(me)||Array.isArray(me)||u.isValidElement(me)||(me=null),h&&(z||K)&&(me=u.createElement("span",{className:"".concat($,"-content")},me)),u.createElement(p,(0,d.A)({},ee,U,{className:pe,style:he,title:de,scope:m,onMouseEnter:G?se:void 0,onMouseLeave:G?fe:void 0,colSpan:1!==oe?oe:null,rowSpan:1!==ae?ae:null}),H,me)}const D=u.memo(T);function I(e,t,n,r,o){var a,i,l=n[e]||{},u=n[t]||{};"left"===l.fixed?a=r.left["rtl"===o?t:e]:"right"===u.fixed&&(i=r.right["rtl"===o?e:t]);var c=!1,s=!1,f=!1,d=!1,p=n[t+1],v=n[e-1],h=p&&!p.fixed||v&&!v.fixed||n.every(function(e){return"left"===e.fixed});if("rtl"===o){if(void 0!==a)d=!(v&&"left"===v.fixed)&&h;else if(void 0!==i){f=!(p&&"right"===p.fixed)&&h}}else if(void 0!==a){c=!(p&&"left"===p.fixed)&&h}else if(void 0!==i){s=!(v&&"right"===v.fixed)&&h}return{fixLeft:a,fixRight:i,lastFixLeft:c,firstFixRight:s,lastFixRight:f,firstFixLeft:d,isSticky:r.isSticky}}const F=u.createContext({});var L=n(80045),j=["children"];function z(e){return e.children}z.Row=function(e){var t=e.children,n=(0,L.A)(e,j);return u.createElement("tr",n,t)},z.Cell=function(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,a=void 0===o?1:o,i=e.rowSpan,l=e.align,c=f(A,["prefixCls","direction"]),s=c.prefixCls,p=c.direction,v=u.useContext(F),h=v.scrollColumnIndex,m=v.stickyOffsets,g=n+a-1+1===h?a+1:a,y=I(n,n+g-1,v.flattenColumns,m,p);return u.createElement(D,(0,d.A)({className:t,index:n,component:"td",prefixCls:s,record:null,dataIndex:null,align:l,colSpan:g,rowSpan:i,render:function(){return r}},y))};const K=z;const V=y(function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=f(A,"prefixCls"),a=r.length-1,i=r[a],l=u.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=i&&i.scrollbar?a:null}},[i,r,a,n]);return u.createElement(F.Provider,{value:l},u.createElement("tfoot",{className:"".concat(o,"-summary")},t))});var H=K,B=n(18462),U=n(99777),W=n(82987),$=n(72065);function q(e,t,n,r,o,a,i){var l=a(t,i);e.push({record:t,indent:n,index:i,rowKey:l});var u=null==o?void 0:o.has(l);if(t&&Array.isArray(t[r])&&u)for(var c=0;c1?n-1:0),o=1;o5&&void 0!==arguments[5]?arguments[5]:[],c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=e.record,f=e.prefixCls,d=e.columnsKey,p=e.fixedInfoList,v=e.expandIconColumnIndex,h=e.nestExpandable,m=e.indentSize,g=e.expandIcon,y=e.expanded,b=e.hasNestChildren,A=e.onTriggerExpand,w=e.expandable,E=e.expandedKeys,x=d[n],C=p[n];n===(v||0)&&h&&(i=u.createElement(u.Fragment,null,u.createElement("span",{style:{paddingLeft:"".concat(m*r,"px")},className:"".concat(f,"-row-indent indent-level-").concat(r)}),g({prefixCls:f,expanded:y,expandable:b,record:s,onExpand:A})));var k=(null===(a=t.onCell)||void 0===a?void 0:a.call(t,s,o))||{};if(c){var S=k.rowSpan,N=void 0===S?1:S;if(w&&N&&n=1)),style:(0,E.A)((0,E.A)({},n),null==w?void 0:w.style)}),y.map(function(e,t){var n=e.render,i=e.dataIndex,c=e.className,f=Z(m,e,t,s,o,l,null==h?void 0:h.offset),y=f.key,b=f.fixedInfo,A=f.appendCellNode,w=f.additionalCellProps;return u.createElement(D,(0,d.A)({className:c,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?v:p,prefixCls:g,key:y,record:r,index:o,renderIndex:a,dataIndex:i,render:n,shouldCellUpdate:e.shouldCellUpdate},b,{appendNode:A,additionalProps:w}))}));if(S&&(N.current||C)){var P=A(r,o,s+1,C);_=u.createElement(G,{expanded:C,className:k()("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(s+1),R),prefixCls:g,component:f,cellComponent:p,colSpan:h?h.colSpan:y.length,stickyOffset:null==h?void 0:h.sticky,isEmpty:!1},P)}return u.createElement(u.Fragment,null,M,_)});function te(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,o=e.title,a=u.useRef();return(0,i.A)(function(){a.current&&n(t,a.current.offsetWidth)},[]),u.createElement(B.A,{data:t},u.createElement("th",{ref:a,className:"".concat(r,"-measure-cell")},u.createElement("div",{className:"".concat(r,"-measure-cell-content")},o||" ")))}var ne=n(42467);function re(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,o=e.columns,a=u.useRef(null),i=f(A,["measureRowRender"]).measureRowRender,l=u.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:a,tabIndex:-1},u.createElement(B.A.Collection,{onBatchResize:function(e){(0,ne.A)(a.current)&&e.forEach(function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)})}},n.map(function(e){var n=o.find(function(t){return t.key===e}),a=null==n?void 0:n.title,i=u.isValidElement(a)?u.cloneElement(a,{ref:null}):a;return u.createElement(te,{prefixCls:t,key:e,columnKey:e,onColumnResize:r,title:i})})));return i?i(l):l}const oe=y(function(e){var t,n=e.data,r=e.measureColumnWidth,o=f(A,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=o.prefixCls,i=o.getComponent,l=o.onColumnResize,c=o.flattenColumns,s=o.getRowKey,d=o.expandedKeys,p=o.childrenColumnName,v=o.emptyNode,h=o.expandedRowOffset,m=void 0===h?0:h,g=o.colWidths,y=Y(n,p,d,s),b=u.useMemo(function(){return y.map(function(e){return e.rowKey})},[y]),w=u.useRef({renderWithProps:!1}),E=u.useMemo(function(){for(var e=c.length-m,t=0,n=0;n=0;l-=1){var c=t[l],s=n&&n[l],p=void 0,v=void 0;if(s&&(p=s[ae.P],"auto"===o&&(v=s.minWidth)),c||v||p||i){var h=p||{},m=(h.columnType,(0,L.A)(h,ie));a.unshift(u.createElement("col",(0,d.A)({key:l,style:{width:c,minWidth:v}},m))),i=!0}}return a.length>0?u.createElement("colgroup",null,a):null};var ue=n(60436),ce=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];var se=u.forwardRef(function(e,t){var n=e.className,r=e.noData,o=e.columns,a=e.flattenColumns,i=e.colWidths,l=e.colGroup,c=e.columCount,s=e.stickyOffsets,d=e.direction,v=e.fixHeader,h=e.stickyTopOffset,m=e.stickyBottomOffset,g=e.stickyClassName,y=e.scrollX,b=e.tableLayout,w=void 0===b?"fixed":b,C=e.onScroll,S=e.children,N=(0,L.A)(e,ce),_=f(A,["prefixCls","scrollbarSize","isSticky","getComponent"]),R=_.prefixCls,M=_.scrollbarSize,P=_.isSticky,O=(0,_.getComponent)(["header","table"],"table"),T=P&&!v?0:M,D=u.useRef(null),I=u.useCallback(function(e){(0,p.Xf)(t,e),(0,p.Xf)(D,e)},[]);u.useEffect(function(){function e(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(C({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}var t=D.current;return null==t||t.addEventListener("wheel",e,{passive:!1}),function(){null==t||t.removeEventListener("wheel",e)}},[]);var F=a[a.length-1],j={fixed:F?F.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(R,"-cell-scrollbar")}}},z=(0,u.useMemo)(function(){return T?[].concat((0,ue.A)(o),[j]):o},[T,o]),K=(0,u.useMemo)(function(){return T?[].concat((0,ue.A)(a),[j]):a},[T,a]),V=(0,u.useMemo)(function(){var e=s.right,t=s.left;return(0,E.A)((0,E.A)({},s),{},{left:"rtl"===d?[].concat((0,ue.A)(t.map(function(e){return e+T})),[0]):t,right:"rtl"===d?e:[].concat((0,ue.A)(e.map(function(e){return e+T})),[0]),isSticky:P})},[T,s,P]),H=function(e,t){return(0,u.useMemo)(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:i,prefixCls:p,key:h[t]},l,{additionalProps:n,rowType:"header"}))}))};const pe=y(function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=f(A,["prefixCls","getComponent"]),i=a.prefixCls,l=a.getComponent,c=u.useMemo(function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var a=r;return n.filter(Boolean).map(function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:a},i=1,l=n.children;return l&&l.length>0&&(i=e(l,a,o+1).reduce(function(e,t){return e+t},0),r.hasSubColumns=!0),"colSpan"in n&&(i=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=i,r.colEnd=r.colStart+i-1,t[o].push(r),a+=i,i})}(e,0);for(var n=t.length,r=function(e){t[e].forEach(function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)})},o=0;o=n-h})})}})},K=function(e){M(function(t){return(0,E.A)((0,E.A)({},t),{},{scrollLeft:b?e/b*w:0})})};return u.useImperativeHandle(t,function(){return{setScrollLeft:K,checkScrollBarVisible:z}}),u.useEffect(function(){var e=(0,ye.A)(document.body,"mouseup",L,!1),t=(0,ye.A)(document.body,"mousemove",j,!1);return z(),function(){e.remove(),t.remove()}},[C,D]),u.useEffect(function(){if(p.current){for(var e=[],t=(0,Ae.rb)(p.current);t;)e.push(t),t=t.parentElement;return e.forEach(function(e){return e.addEventListener("scroll",z,!1)}),window.addEventListener("resize",z,!1),window.addEventListener("scroll",z,!1),m.addEventListener("scroll",z,!1),function(){e.forEach(function(e){return e.removeEventListener("scroll",z)}),window.removeEventListener("resize",z),window.removeEventListener("scroll",z),m.removeEventListener("scroll",z)}}},[m]),u.useEffect(function(){R.isHiddenScrollBar||M(function(e){var t=p.current;return t?(0,E.A)((0,E.A)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[R.isHiddenScrollBar]),b<=w||!C||R.isHiddenScrollBar?null:u.createElement("div",{style:{height:(0,W.A)(),width:w,bottom:h},className:"".concat(y,"-sticky-scroll")},u.createElement("div",{onMouseDown:function(e){e.persist(),P.current.delta=e.pageX-R.scrollLeft,P.current.x=0,I(!0),e.preventDefault()},ref:S,className:k()("".concat(y,"-sticky-scroll-bar"),(0,x.A)({},"".concat(y,"-sticky-scroll-bar-active"),D)),style:{width:"".concat(C,"px"),transform:"translate3d(".concat(R.scrollLeft,"px, 0, 0)")}}))};const xe=u.forwardRef(Ee);const Ce=function(e){return null};const ke=function(e){return null};var Se="rc-table",Ne=[],_e={};function Re(){return"No Data"}function Me(e,t){var n=(0,E.A)({rowKey:"key",prefixCls:Se,emptyText:Re},e),c=n.prefixCls,s=n.className,f=n.rowClassName,p=n.style,v=n.data,h=n.rowKey,m=n.scroll,g=n.tableLayout,y=n.direction,b=n.title,C=n.footer,_=n.summary,P=n.caption,O=n.id,T=n.showHeader,D=n.components,F=n.emptyText,L=n.onRow,j=n.onHeaderRow,z=n.measureRowRender,H=n.onScroll,q=n.internalHooks,Y=n.transformColumns,X=n.internalRefs,G=n.tailor,J=n.getContainerWidth,Z=n.sticky,ee=n.rowHoverable,te=void 0===ee||ee,ne=v||Ne,re=!!ne.length,ie=q===r.F;var ce=u.useCallback(function(e,t){return(0,N.A)(D,e)||t},[D]),se=u.useMemo(function(){return"function"==typeof h?h:function(e){return e&&e[h]}},[h]),de=ce(["body"]),ye=function(){var e=u.useState(-1),t=(0,o.A)(e,2),n=t[0],r=t[1],a=u.useState(-1),i=(0,o.A)(a,2),l=i[0],c=i[1];return[n,l,u.useCallback(function(e,t){r(e),c(t)},[])]}(),be=(0,o.A)(ye,3),we=be[0],Ee=be[1],Ce=be[2],ke=function(e,t,n){var a=(0,ae.T)(e),i=a.expandIcon,l=a.expandedRowKeys,c=a.defaultExpandedRowKeys,s=a.defaultExpandAllRows,f=a.expandedRowRender,d=a.onExpand,p=a.onExpandedRowsChange,v=i||Q,h=a.childrenColumnName||"children",m=u.useMemo(function(){return f?"row":!!(e.expandable&&e.internalHooks===r.F&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(e){return e&&"object"===(0,w.A)(e)&&e[h]}))&&"nest"},[!!f,t]),g=u.useState(function(){return c||(s?function(e,t,n){var r=[];return function e(o){(o||[]).forEach(function(o,a){r.push(t(o,a)),e(o[n])})}(e),r}(t,n,h):[])}),y=(0,o.A)(g,2),b=y[0],A=y[1],E=u.useMemo(function(){return new Set(l||b||[])},[l,b]),x=u.useCallback(function(e){var r,o=n(e,t.indexOf(e)),a=E.has(o);a?(E.delete(o),r=(0,ue.A)(E)):r=[].concat((0,ue.A)(E),[o]),A(r),d&&d(!a,e),p&&p(r)},[n,E,t,d,p]);return[a,m,E,v,h,x]}(n,ne,se),Me=(0,o.A)(ke,6),Pe=Me[0],Oe=Me[1],Te=Me[2],De=Me[3],Ie=Me[4],Fe=Me[5],Le=null==m?void 0:m.x,je=u.useState(0),ze=(0,o.A)(je,2),Ke=ze[0],Ve=ze[1],He=(0,ve.A)((0,E.A)((0,E.A)((0,E.A)({},n),Pe),{},{expandable:!!Pe.expandedRowRender,columnTitle:Pe.columnTitle,expandedKeys:Te,getRowKey:se,onTriggerExpand:Fe,expandIcon:De,expandIconColumnIndex:Pe.expandIconColumnIndex,direction:y,scrollWidth:ie&&G&&"number"==typeof Le?Le:null,clientWidth:Ke}),ie?Y:null),Be=(0,o.A)(He,4),Ue=Be[0],We=Be[1],$e=Be[2],qe=Be[3],Ye=null!=$e?$e:Le,Xe=u.useMemo(function(){return{columns:Ue,flattenColumns:We}},[Ue,We]),Ge=u.useRef(),Qe=u.useRef(),Je=u.useRef(),Ze=u.useRef();u.useImperativeHandle(t,function(){return{nativeElement:Ge.current,scrollTo:function(e){var t,n;if(Je.current instanceof HTMLElement){var r=e.index,o=e.top,a=e.key;if("number"!=typeof(n=o)||Number.isNaN(n)){var i,l=null!=a?a:se(ne[r]);null===(i=Je.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===i||i.scrollIntoView()}else{var u;null===(u=Je.current)||void 0===u||u.scrollTo({top:o})}}else null!==(t=Je.current)&&void 0!==t&&t.scrollTo&&Je.current.scrollTo(e)}}});var et,tt,nt,rt=u.useRef(),ot=u.useState(!1),at=(0,o.A)(ot,2),it=at[0],lt=at[1],ut=u.useState(!1),ct=(0,o.A)(ut,2),st=ct[0],ft=ct[1],dt=u.useState(new Map),pt=(0,o.A)(dt,2),vt=pt[0],ht=pt[1],mt=R(We).map(function(e){return vt.get(e)}),gt=u.useMemo(function(){return mt},[mt.join("_")]),yt=me(gt,We,y),bt=m&&M(m.y),At=m&&M(Ye)||Boolean(Pe.fixed),wt=At&&We.some(function(e){return e.fixed}),Et=u.useRef(),xt=function(e,t){var n="object"===(0,w.A)(e)?e:{},r=n.offsetHeader,o=void 0===r?0:r,a=n.offsetSummary,i=void 0===a?0:a,l=n.offsetScroll,c=void 0===l?0:l,s=n.getContainer,f=(void 0===s?function(){return he}:s)()||he,d=!!e;return u.useMemo(function(){return{isSticky:d,stickyClassName:d?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:i,offsetScroll:c,container:f}},[d,c,o,i,t,f])}(Z,c),Ct=xt.isSticky,kt=xt.offsetHeader,St=xt.offsetSummary,Nt=xt.offsetScroll,_t=xt.stickyClassName,Rt=xt.container,Mt=u.useMemo(function(){return null==_?void 0:_(ne)},[_,ne]),Pt=(bt||Ct)&&u.isValidElement(Mt)&&Mt.type===K&&Mt.props.fixed;bt&&(tt={overflowY:re?"scroll":"auto",maxHeight:m.y}),At&&(et={overflowX:"auto"},bt||(tt={overflowY:"hidden"}),nt={width:!0===Ye?"auto":Ye,minWidth:"100%"});var Ot=u.useCallback(function(e,t){ht(function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n})},[]),Tt=function(e){var t=(0,u.useRef)(e||null),n=(0,u.useRef)();function r(){window.clearTimeout(n.current)}return(0,u.useEffect)(function(){return r},[]),[function(e){t.current=e,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)},function(){return t.current}]}(null),Dt=(0,o.A)(Tt,2),It=Dt[0],Ft=Dt[1];function Lt(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(function(){t.scrollLeft=e},0)))}var jt=(0,a.A)(function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===y,a="number"==typeof r?r:n.scrollLeft,i=n||_e;Ft()&&Ft()!==i||(It(i),Lt(a,Qe.current),Lt(a,Je.current),Lt(a,rt.current),Lt(a,null===(t=Et.current)||void 0===t?void 0:t.setScrollLeft));var l=n||Qe.current;if(l){var u=ie&&G&&"number"==typeof Ye?Ye:l.scrollWidth,c=l.clientWidth;if(u===c)return lt(!1),void ft(!1);o?(lt(-a0)):(lt(a>0),ft(a1?b-T:0,F=(0,E.A)((0,E.A)((0,E.A)({},_),s),{},{flex:"0 0 ".concat(T,"px"),width:"".concat(T,"px"),marginRight:I,pointerEvents:"auto"}),L=u.useMemo(function(){return v?O<=1:0===M||0===O||O>1},[O,M,v]);L?F.visibility="hidden":v&&(F.height=null==h?void 0:h(O));var j=L?function(){return null}:m,z={};return 0!==O&&0!==M||(z.rowSpan=1,z.colSpan=1),u.createElement(D,(0,d.A)({className:k()(y,p),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:x,record:c,index:a,renderIndex:l,dataIndex:g,render:j,shouldCellUpdate:n.shouldCellUpdate},C,{appendNode:S,additionalProps:(0,E.A)((0,E.A)({},N),{},{style:F},z)}))};var ze=["data","index","className","rowKey","style","extra","getHeight"];const Ke=y(u.forwardRef(function(e,t){var n,r=e.data,o=e.index,a=e.className,i=e.rowKey,l=e.style,c=e.extra,s=e.getHeight,p=(0,L.A)(e,ze),v=r.record,h=r.indent,m=r.index,g=f(A,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),y=g.scrollX,b=g.flattenColumns,w=g.prefixCls,C=g.fixColumn,S=g.componentWidth,N=f(Fe,["getComponent"]).getComponent,_=X(v,i,o,h),R=N(["body","row"],"div"),M=N(["body","cell"],"div"),P=_.rowSupportExpand,O=_.expanded,T=_.rowProps,I=_.expandedRowRender,F=_.expandedRowClassName;if(P&&O){var j=I(v,o,h+1,O),z=J(F,v,o,h),K={};C&&(K={style:(0,x.A)({},"--virtual-width","".concat(S,"px"))});var V="".concat(w,"-expanded-row-cell");n=u.createElement(R,{className:k()("".concat(w,"-expanded-row"),"".concat(w,"-expanded-row-level-").concat(h+1),z)},u.createElement(D,{component:M,prefixCls:w,className:k()(V,(0,x.A)({},"".concat(V,"-fixed"),C)),additionalProps:K},j))}var H=(0,E.A)((0,E.A)({},l),{},{width:y});c&&(H.position="absolute",H.pointerEvents="none");var B=u.createElement(R,(0,d.A)({},T,p,{"data-row-key":i,ref:P?null:t,className:k()(a,"".concat(w,"-row"),null==T?void 0:T.className,(0,x.A)({},"".concat(w,"-row-extra"),c)),style:(0,E.A)((0,E.A)({},H),null==T?void 0:T.style)}),b.map(function(e,t){return u.createElement(je,{key:t,component:M,rowInfo:_,column:e,colIndex:t,indent:h,index:o,renderIndex:m,record:v,inverse:c,getHeight:s})}));return P?u.createElement("div",{ref:t},B,n):B}));const Ve=y(u.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=f(A,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=a.flattenColumns,l=a.onColumnResize,c=a.getRowKey,s=a.expandedKeys,d=a.prefixCls,p=a.childrenColumnName,v=a.scrollX,h=a.direction,m=f(Fe),g=m.sticky,y=m.scrollY,b=m.listItemHeight,E=m.getComponent,x=m.onScroll,C=u.useRef(),k=Y(n,p,s,c),S=u.useMemo(function(){var e=0;return i.map(function(t){var n=t.width,r=t.minWidth,o=t.key,a=Math.max(n||0,r||0);return[o,a,e+=a]})},[i]),N=u.useMemo(function(){return S.map(function(e){return e[2]})},[S]);u.useEffect(function(){S.forEach(function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];l(n,r)})},[S]),u.useImperativeHandle(t,function(){var e,t={scrollTo:function(e){var t;null===(t=C.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=C.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=C.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=C.current)||void 0===t||t.scrollTo({left:e})}}),Object.defineProperty(t,"scrollTop",{get:function(){var e;return(null===(e=C.current)||void 0===e?void 0:e.getScrollInfo().y)||0},set:function(e){var t;null===(t=C.current)||void 0===t||t.scrollTo({top:e})}}),t});var _=function(e,t){var n,r=null===(n=k[t])||void 0===n?void 0:n.record,o=e.onCell;if(o){var a,i=o(r,t);return null!==(a=null==i?void 0:i.rowSpan)&&void 0!==a?a:1}return 1},R=u.useMemo(function(){return{columnsOffset:N}},[N]),M="".concat(d,"-tbody"),P=E(["body","wrapper"]),O={};return g&&(O.position="sticky",O.bottom=0,"object"===(0,w.A)(g)&&g.offsetScroll&&(O.bottom=g.offsetScroll)),u.createElement(Le.Provider,{value:R},u.createElement(Ie.A,{fullHeight:!1,ref:C,prefixCls:"".concat(M,"-virtual"),styles:{horizontalScrollBar:O},className:M,height:y,itemHeight:b||24,data:k,itemKey:function(e){return c(e.record)},component:P,scrollWidth:v,direction:h,onVirtualScroll:function(e){var t,n=e.x;r({currentTarget:null===(t=C.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:x,extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,o=e.offsetY;if(n<0)return null;for(var a=i.filter(function(e){return 0===_(e,t)}),l=t,s=function(e){if(!(a=a.filter(function(t){return 0===_(t,e)})).length)return l=e,1},f=t;f>=0&&!s(f);f-=1);for(var d=i.filter(function(e){return 1!==_(e,n)}),p=n,v=function(e){if(!(d=d.filter(function(t){return 1!==_(t,e)})).length)return p=Math.max(e-1,n),1},h=n;h1})&&m.push(e)},y=l;y<=p;y+=1)g(y);return m.map(function(e){var t=k[e],n=c(t.record,e),a=r(n);return u.createElement(Ke,{key:e,data:t,rowKey:n,index:e,style:{top:-o+a.top},extra:!0,getHeight:function(t){var o=e+t-1,a=c(k[o].record,o),i=r(n,a);return i.bottom-i.top}})})}},function(e,t,n){var r=c(e.record,t);return u.createElement(Ke,{data:e,rowKey:r,index:t,style:n.style})}))}));var He=function(e,t){var n=t.ref,r=t.onScroll;return u.createElement(Ve,{ref:n,data:e,onScroll:r})};function Be(e,t){var n=e.data,o=e.columns,a=e.scroll,i=e.sticky,l=e.prefixCls,c=void 0===l?Se:l,s=e.className,f=e.listItemHeight,p=e.components,v=e.onScroll,h=a||{},m=h.x,g=h.y;"number"!=typeof m&&(m=1),"number"!=typeof g&&(g=500);var y=(0,O._q)(function(e,t){return(0,N.A)(p,e)||t}),b=(0,O._q)(v),A=u.useMemo(function(){return{sticky:i,scrollY:g,listItemHeight:f,getComponent:y,onScroll:b}},[i,g,f,y,b]);return u.createElement(Fe.Provider,{value:A},u.createElement(De,(0,d.A)({},e,{className:k()(s,"".concat(c,"-virtual")),scroll:(0,E.A)((0,E.A)({},a),{},{x:m}),components:(0,E.A)((0,E.A)({},p),{},{body:null!=n&&n.length?He:void 0}),columns:o,internalHooks:r.F,tailor:!0,ref:t})))}var Ue=u.forwardRef(Be);function We(e){return g(Ue,e)}We()},755(e,t,n){"use strict";n.d(t,{P:()=>i,T:()=>l});var r=n(89379),o=n(80045),a=(n(68210),["expandable"]),i="RC_TABLE_INTERNAL_COL_DEFINE";function l(e){var t,n=e.expandable,i=(0,o.A)(e,a);return!1===(t="expandable"in e?(0,r.A)((0,r.A)({},i),n):i).showExpandColumn&&(t.expandIconColumnIndex=-1),t}},55465(e,t,n){"use strict";n.d(t,{A:()=>J});var r=n(58168),o=n(64467),a=n(89379),i=n(5544),l=n(82284),u=n(80045),c=n(46942),s=n.n(c),f=n(12533),d=n(68430),p=n(96540);const v=(0,p.createContext)(null);var h=n(60436),m=n(18462),g=n(26956),y=n(8719),b=n(25371);const A=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicator,a=void 0===o?{}:o,l=a.size,u=a.align,c=void 0===u?"center":u,s=(0,p.useState)(),f=(0,i.A)(s,2),d=f[0],v=f[1],h=(0,p.useRef)(),m=p.useCallback(function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e},[l]);function g(){b.A.cancel(h.current)}return(0,p.useEffect)(function(){var e={};if(t)if(n){e.width=m(t.width);var o=r?"right":"left";"start"===c&&(e[o]=t[o]),"center"===c&&(e[o]=t[o]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===c&&(e[o]=t[o]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===c&&(e.top=t.top),"center"===c&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===c&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return g(),h.current=(0,b.A)(function(){var t=d&&e&&Object.keys(e).every(function(t){var n=e[t],r=d[t];return"number"==typeof n&&"number"==typeof r?Math.round(n)===Math.round(r):n===r});t||v(e)}),g},[JSON.stringify(t),n,r,c,m]),{style:d}};var w={width:0,height:0,left:0,top:0};function E(e,t){var n=p.useRef(e),r=p.useState({}),o=(0,i.A)(r,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var x=Math.pow(.995,20);var C=n(30981);function k(e){var t=(0,p.useState)(0),n=(0,i.A)(t,2),r=n[0],o=n[1],a=(0,p.useRef)(0),l=(0,p.useRef)();return l.current=e,(0,C.o)(function(){var e;null===(e=l.current)||void 0===e||e.call(l)},[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}var S={width:0,height:0,left:0,top:0,right:0};function N(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]=e})):t=e,JSON.stringify(t)}function _(e){return String(e).replace(/"/g,"TABS_DQ")}function R(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}const M=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return r&&!1!==r.showAdd?p.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null});const P=p.forwardRef(function(e,t){var n,r=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var i={};return"object"!==(0,l.A)(a)||p.isValidElement(a)?i.right=a:i=a,"right"===r&&(n=i.right),"left"===r&&(n=i.left),n?p.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null});var O=n(3497),T=n(48810),D=n(16928),I=p.forwardRef(function(e,t){var n=e.prefixCls,a=e.id,l=e.tabs,u=e.locale,c=e.mobile,f=e.more,d=void 0===f?{}:f,v=e.style,h=e.className,m=e.editable,g=e.tabBarGutter,y=e.rtl,b=e.removeAriaLabel,A=e.onTabClick,w=e.getPopupContainer,E=e.popupClassName,x=(0,p.useState)(!1),C=(0,i.A)(x,2),k=C[0],S=C[1],N=(0,p.useState)(null),_=(0,i.A)(N,2),P=_[0],I=_[1],F=d.icon,L=void 0===F?"More":F,j="".concat(a,"-more-popup"),z="".concat(n,"-dropdown"),K=null!==P?"".concat(j,"-").concat(P):null,V=null==u?void 0:u.dropdownAriaLabel;var H=p.createElement(T.Ay,{onClick:function(e){var t=e.key,n=e.domEvent;A(t,n),S(!1)},prefixCls:"".concat(z,"-menu"),id:j,tabIndex:-1,role:"listbox","aria-activedescendant":K,selectedKeys:[P],"aria-label":void 0!==V?V:"expanded dropdown"},l.map(function(e){var t=e.closable,n=e.disabled,r=e.closeIcon,o=e.key,i=e.label,l=R(t,r,m,n);return p.createElement(T.Dr,{key:o,id:"".concat(j,"-").concat(o),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(o),disabled:n},p.createElement("span",null,i),l&&p.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(z,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,o)}},r||m.removeIcon||"×"))}));function B(e){for(var t=l.filter(function(e){return!e.disabled}),n=t.findIndex(function(e){return e.key===P})||0,r=t.length,o=0;ot?"left":"right"})}),te=(0,i.A)(ee,2),ne=te[0],re=te[1],oe=E(0,function(e,t){!Z&&V&&V({direction:e>t?"top":"bottom"})}),ae=(0,i.A)(oe,2),ie=ae[0],le=ae[1],ue=(0,p.useState)([0,0]),ce=(0,i.A)(ue,2),se=ce[0],fe=ce[1],de=(0,p.useState)([0,0]),pe=(0,i.A)(de,2),ve=pe[0],he=pe[1],me=(0,p.useState)([0,0]),ge=(0,i.A)(me,2),ye=ge[0],be=ge[1],Ae=(0,p.useState)([0,0]),we=(0,i.A)(Ae,2),Ee=we[0],xe=we[1],Ce=function(e){var t=(0,p.useRef)([]),n=(0,p.useState)({}),r=(0,i.A)(n,2)[1],o=(0,p.useRef)("function"==typeof e?e():e),a=k(function(){var e=o.current;t.current.forEach(function(t){e=t(e)}),t.current=[],o.current=e,r({})});return[o.current,function(e){t.current.push(e),a()}]}(new Map),ke=(0,i.A)(Ce,2),Se=ke[0],Ne=ke[1],_e=function(e,t,n){return(0,p.useMemo)(function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||w,i=o.left+o.width,l=0;lLe?Le:e}Z&&d?(Fe=0,Le=Math.max(0,Me-De)):(Fe=Math.min(0,De-Me),Le=0);var ze=(0,p.useRef)(null),Ke=(0,p.useState)(),Ve=(0,i.A)(Ke,2),He=Ve[0],Be=Ve[1];function Ue(){Be(Date.now())}function We(){ze.current&&clearTimeout(ze.current)}!function(e,t){var n=(0,p.useState)(),r=(0,i.A)(n,2),o=r[0],a=r[1],l=(0,p.useState)(0),u=(0,i.A)(l,2),c=u[0],s=u[1],f=(0,p.useState)(0),d=(0,i.A)(f,2),v=d[0],h=d[1],m=(0,p.useState)(),g=(0,i.A)(m,2),y=g[0],b=g[1],A=(0,p.useRef)(),w=(0,p.useRef)(),E=(0,p.useRef)(null);E.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(A.current)},onTouchMove:function(e){if(o){var n=e.touches[0],r=n.screenX,i=n.screenY;a({x:r,y:i});var l=r-o.x,u=i-o.y;t(l,u);var f=Date.now();s(f),h(f-c),b({x:l,y:u})}},onTouchEnd:function(){if(o&&(a(null),b(null),y)){var e=y.x/v,n=y.y/v,r=Math.abs(e),i=Math.abs(n);if(Math.max(r,i)<.1)return;var l=e,u=n;A.current=window.setInterval(function(){Math.abs(l)<.01&&Math.abs(u)<.01?window.clearInterval(A.current):t(20*(l*=x),20*(u*=x))},20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,a=Math.abs(n),i=Math.abs(r);a===i?o="x"===w.current?n:r:a>i?(o=n,w.current="x"):(o=r,w.current="y"),t(-o,-o)&&e.preventDefault()}},p.useEffect(function(){function t(e){E.current.onTouchMove(e)}function n(e){E.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",function(e){E.current.onTouchStart(e)},{passive:!0}),e.current.addEventListener("wheel",function(e){E.current.onWheel(e)},{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}},[])}(X,function(e,t){function n(e,t){e(function(e){return je(e+t)})}return!!Te&&(Z?n(re,e):n(le,t),We(),Ue(),!0)}),(0,p.useEffect)(function(){return We(),He&&(ze.current=setTimeout(function(){Be(0)},100)),We},[He]);var $e=function(e,t,n,r,o,a,i){var l,u,c,s=i.tabs,f=i.tabPosition,d=i.rtl;return["top","bottom"].includes(f)?(l="width",u=d?"right":"left",c=Math.abs(n)):(l="height",u="top",c=-n),(0,p.useMemo)(function(){if(!s.length)return[0,0];for(var n=s.length,r=n,o=0;oMath.floor(c+t)){r=o-1;break}}for(var i=0,f=n-1;f>=0;f-=1)if((e.get(s[f].key)||S)[u]r?[0,-1]:[i,r]},[e,t,r,o,a,c,f,s.map(function(e){return e.key}).join("_"),d])}(_e,De,Z?ne:ie,Me,Pe,Oe,(0,a.A)((0,a.A)({},e),{},{tabs:W})),qe=(0,i.A)($e,2),Ye=qe[0],Xe=qe[1],Ge=(0,g.A)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=_e.get(e)||{width:0,height:0,left:0,right:0,top:0};if(Z){var n=ne;d?t.rightne+De&&(n=t.right+t.width-De):t.left<-ne?n=-t.left:t.left+t.width>-ne+De&&(n=-(t.left+t.width-De)),le(0),re(je(n))}else{var r=ie;t.top<-ie?r=-t.top:t.top+t.height>-ie+De&&(r=-(t.top+t.height-De)),re(0),le(je(r))}}),Qe=(0,p.useState)(),Je=(0,i.A)(Qe,2),Ze=Je[0],et=Je[1],tt=(0,p.useState)(!1),nt=(0,i.A)(tt,2),rt=nt[0],ot=nt[1],at=W.filter(function(e){return!e.disabled}).map(function(e){return e.key}),it=function(e){var t=at.indexOf(Ze||f),n=at.length,r=at[(t+e+n)%n];et(r)},lt=function(e,t){var n=at.indexOf(e),r=W.find(function(t){return t.key===e});R(null==r?void 0:r.closable,null==r?void 0:r.closeIcon,C,null==r?void 0:r.disabled)&&(t.preventDefault(),t.stopPropagation(),C.onEdit("remove",{key:e,event:t}),n===at.length-1?it(-1):it(1))},ut=function(e){var t=e.code,n=d&&Z,r=at[0],o=at[at.length-1];switch(t){case"ArrowLeft":Z&&it(n?1:-1);break;case"ArrowRight":Z&&it(n?-1:1);break;case"ArrowUp":e.preventDefault(),Z||it(-1);break;case"ArrowDown":e.preventDefault(),Z||it(1);break;case"Home":e.preventDefault(),et(r);break;case"End":e.preventDefault(),et(o);break;case"Enter":case"Space":e.preventDefault(),K(null!=Ze?Ze:f,e);break;case"Backspace":case"Delete":lt(Ze,e)}},ct={};Z?ct[d?"marginRight":"marginLeft"]=D:ct.marginTop=D;var st=W.map(function(e,t){var n=e.key;return p.createElement(L,{id:u,prefixCls:U,key:n,tab:e,style:0===t?void 0:ct,closable:e.closable,editable:C,active:n===f,focus:n===Ze,renderWrapper:I,removeAriaLabel:null==O?void 0:O.removeAriaLabel,tabCount:at.length,currentPosition:t+1,onClick:function(e){K(n,e)},onKeyDown:ut,onFocus:function(){rt||et(n),Ge(n),Ue(),X.current&&(d||(X.current.scrollLeft=0),X.current.scrollTop=0)},onBlur:function(){et(void 0)},onMouseDown:function(e){return function(e,t){ot(!0),1===t.button&<(e,t)}(n,e)},onMouseUp:function(){ot(!1)}})}),ft=function(){return Ne(function(){var e,t=new Map,n=null===(e=G.current)||void 0===e?void 0:e.getBoundingClientRect();return W.forEach(function(e){var r,o=e.key,a=null===(r=G.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(_(o),'"]'));if(a){var l=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,a=e.offsetLeft,i=e.getBoundingClientRect(),l=i.width,u=i.height,c=i.left,s=i.top;return Math.abs(l-n)<1?[l,u,c-t.left,s-t.top]:[n,r,a,o]}(a,n),u=(0,i.A)(l,4),c=u[0],s=u[1],f=u[2],d=u[3];t.set(o,{width:c,height:s,left:f,top:d})}}),t})};(0,p.useEffect)(function(){ft()},[W.map(function(e){return e.key}).join("_")]);var dt=k(function(){var e=j($),t=j(q),n=j(Y);fe([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=j(J);be(r);var o=j(Q);xe(o);var a=j(G);he([a[0]-r[0],a[1]-r[1]]),ft()}),pt=W.slice(0,Ye),vt=W.slice(Xe+1),ht=[].concat((0,h.A)(pt),(0,h.A)(vt)),mt=_e.get(f),gt=A({activeTabOffset:mt,horizontal:Z,indicator:H,rtl:d}).style;(0,p.useEffect)(function(){Ge()},[f,Fe,Le,N(mt),N(_e),Z]),(0,p.useEffect)(function(){dt()},[d]);var yt,bt,At,wt,Et=!!ht.length,xt="".concat(U,"-nav-wrap");return Z?d?(bt=ne>0,yt=ne!==Le):(yt=ne<0,bt=ne!==Fe):(At=ie<0,wt=ie!==Fe),p.createElement(m.A,{onResize:dt},p.createElement("div",{ref:(0,y.xK)(t,$),role:"tablist","aria-orientation":Z?"horizontal":"vertical",className:s()("".concat(U,"-nav"),n),style:l,onKeyDown:function(){Ue()}},p.createElement(P,{ref:q,position:"left",extra:b,prefixCls:U}),p.createElement(m.A,{onResize:dt},p.createElement("div",{className:s()(xt,(0,o.A)((0,o.A)((0,o.A)((0,o.A)({},"".concat(xt,"-ping-left"),yt),"".concat(xt,"-ping-right"),bt),"".concat(xt,"-ping-top"),At),"".concat(xt,"-ping-bottom"),wt)),ref:X},p.createElement(m.A,{onResize:dt},p.createElement("div",{ref:G,className:"".concat(U,"-nav-list"),style:{transform:"translate(".concat(ne,"px, ").concat(ie,"px)"),transition:He?"none":void 0}},st,p.createElement(M,{ref:J,prefixCls:U,locale:O,editable:C,style:(0,a.A)((0,a.A)({},0===st.length?void 0:ct),{},{visibility:Et?"hidden":null})}),p.createElement("div",{className:s()("".concat(U,"-ink-bar"),(0,o.A)({},"".concat(U,"-ink-bar-animated"),c.inkBar)),style:gt}))))),p.createElement(F,(0,r.A)({},e,{removeAriaLabel:null==O?void 0:O.removeAriaLabel,ref:Q,prefixCls:U,tabs:ht,className:!Et&&Ie,tabMoving:!!He})),p.createElement(P,{ref:Y,position:"right",extra:b,prefixCls:U})))});const V=K;const H=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,l=e.tabKey,u=e.children;return p.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!i,style:o,className:s()(n,i&&"".concat(n,"-active"),r),ref:t},u)});var B=["renderTabBar"],U=["label","key"];const W=function(e){var t=e.renderTabBar,n=(0,u.A)(e,B),o=p.useContext(v).tabs;return t?t((0,a.A)((0,a.A)({},n),{},{panes:o.map(function(e){var t=e.label,n=e.key,o=(0,u.A)(e,U);return p.createElement(H,(0,r.A)({tab:t,key:n,tabKey:n},o))})}),V):p.createElement(V,n)};var $=n(90754),q=["key","forceRender","style","className","destroyInactiveTabPane"];const Y=function(e){var t=e.id,n=e.activeKey,i=e.animated,l=e.tabPosition,c=e.destroyInactiveTabPane,f=p.useContext(v),d=f.prefixCls,h=f.tabs,m=i.tabPane,g="".concat(d,"-tabpane");return p.createElement("div",{className:s()("".concat(d,"-content-holder"))},p.createElement("div",{className:s()("".concat(d,"-content"),"".concat(d,"-content-").concat(l),(0,o.A)({},"".concat(d,"-content-animated"),m))},h.map(function(e){var o=e.key,l=e.forceRender,f=e.style,d=e.className,v=e.destroyInactiveTabPane,h=(0,u.A)(e,q),y=o===n;return p.createElement($.Ay,(0,r.A)({key:o,visible:y,forceRender:l,removeOnLeave:!(!c&&!v),leavedClassName:"".concat(g,"-hidden")},i.tabPaneMotion),function(e,n){var i=e.style,l=e.className;return p.createElement(H,(0,r.A)({},h,{prefixCls:g,id:t,tabKey:o,animated:m,active:y,style:(0,a.A)((0,a.A)({},f),i),className:s()(d,l),ref:n}))})})))};n(68210);var X=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],G=0,Q=p.forwardRef(function(e,t){var n=e.id,c=e.prefixCls,h=void 0===c?"rc-tabs":c,m=e.className,g=e.items,y=e.direction,b=e.activeKey,A=e.defaultActiveKey,w=e.editable,E=e.animated,x=e.tabPosition,C=void 0===x?"top":x,k=e.tabBarGutter,S=e.tabBarStyle,N=e.tabBarExtraContent,_=e.locale,R=e.more,M=e.destroyInactiveTabPane,P=e.renderTabBar,O=e.onChange,T=e.onTabClick,D=e.onTabScroll,I=e.getPopupContainer,F=e.popupClassName,L=e.indicator,j=(0,u.A)(e,X),z=p.useMemo(function(){return(g||[]).filter(function(e){return e&&"object"===(0,l.A)(e)&&"key"in e})},[g]),K="rtl"===y,V=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,a.A)({inkBar:!0},"object"===(0,l.A)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(E),H=(0,p.useState)(!1),B=(0,i.A)(H,2),U=B[0],$=B[1];(0,p.useEffect)(function(){$((0,d.A)())},[]);var q=(0,f.A)(function(){var e;return null===(e=z[0])||void 0===e?void 0:e.key},{value:b,defaultValue:A}),Q=(0,i.A)(q,2),J=Q[0],Z=Q[1],ee=(0,p.useState)(function(){return z.findIndex(function(e){return e.key===J})}),te=(0,i.A)(ee,2),ne=te[0],re=te[1];(0,p.useEffect)(function(){var e,t=z.findIndex(function(e){return e.key===J});-1===t&&(t=Math.max(0,Math.min(ne,z.length-1)),Z(null===(e=z[t])||void 0===e?void 0:e.key));re(t)},[z.map(function(e){return e.key}).join("_"),J,ne]);var oe=(0,f.A)(null,{value:n}),ae=(0,i.A)(oe,2),ie=ae[0],le=ae[1];(0,p.useEffect)(function(){n||(le("rc-tabs-".concat(G)),G+=1)},[]);var ue={id:ie,activeKey:J,animated:V,tabPosition:C,rtl:K,mobile:U},ce=(0,a.A)((0,a.A)({},ue),{},{editable:w,locale:_,more:R,tabBarGutter:k,onTabClick:function(e,t){null==T||T(e,t);var n=e!==J;Z(e),n&&(null==O||O(e))},onTabScroll:D,extra:N,style:S,panes:null,getPopupContainer:I,popupClassName:F,indicator:L});return p.createElement(v.Provider,{value:{tabs:z,prefixCls:h}},p.createElement("div",(0,r.A)({ref:t,id:n,className:s()(h,"".concat(h,"-").concat(C),(0,o.A)((0,o.A)((0,o.A)({},"".concat(h,"-mobile"),U),"".concat(h,"-editable"),w),"".concat(h,"-rtl"),K),m)},j),p.createElement(W,(0,r.A)({},ce,{renderTabBar:P})),p.createElement(Y,(0,r.A)({destroyInactiveTabPane:M},ue,{animated:V}))))});const J=Q},9919(e,t,n){"use strict";n.d(t,{A:()=>N});var r,o=n(58168),a=n(64467),i=n(89379),l=n(60436),u=n(5544),c=n(80045),s=n(46942),f=n.n(s),d=n(48491),p=n(22489),v=n(11980),h=n(12533),m=n(96540),g=n(82284),y=n(18462),b=n(30981),A=n(25371),w=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],E={};function x(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),r.setAttribute("name","hiddenTextarea"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&E[n])return E[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:w.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(E[n]=l),l}(e,t),i=a.paddingSize,l=a.borderSize,u=a.boxSizing,c=a.sizingStyle;r.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),r.value=e.value||e.placeholder||"";var s,f=void 0,d=void 0,p=r.scrollHeight;if("border-box"===u?p+=l:"content-box"===u&&(p-=i),null!==n||null!==o){r.value=" ";var v=r.scrollHeight-i;null!==n&&(f=v*n,"border-box"===u&&(f=f+i+l),p=Math.max(f,p)),null!==o&&(d=v*o,"border-box"===u&&(d=d+i+l),s=p>d?"":"hidden",p=Math.min(d,p))}var h={height:p,overflowY:s,resize:"none"};return f&&(h.minHeight=f),d&&(h.maxHeight=d),h}var C=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"];const k=m.forwardRef(function(e,t){var n=e,r=n.prefixCls,l=n.defaultValue,s=n.value,d=n.autoSize,p=n.onResize,v=n.className,w=n.style,E=n.disabled,k=n.onChange,S=(n.onInternalAutoSize,(0,c.A)(n,C)),N=(0,h.A)(l,{value:s,postState:function(e){return null!=e?e:""}}),_=(0,u.A)(N,2),R=_[0],M=_[1],P=m.useRef();m.useImperativeHandle(t,function(){return{textArea:P.current}});var O=m.useMemo(function(){return d&&"object"===(0,g.A)(d)?[d.minRows,d.maxRows]:[]},[d]),T=(0,u.A)(O,2),D=T[0],I=T[1],F=!!d,L=m.useState(2),j=(0,u.A)(L,2),z=j[0],K=j[1],V=m.useState(),H=(0,u.A)(V,2),B=H[0],U=H[1],W=function(){K(0)};(0,b.A)(function(){F&&W()},[s,D,I,F]),(0,b.A)(function(){if(0===z)K(1);else if(1===z){var e=x(P.current,!1,D,I);K(2),U(e)}},[z]);var $=m.useRef(),q=function(){A.A.cancel($.current)};m.useEffect(function(){return q},[]);var Y=F?B:null,X=(0,i.A)((0,i.A)({},w),Y);return 0!==z&&1!==z||(X.overflowY="hidden",X.overflowX="hidden"),m.createElement(y.A,{onResize:function(e){2===z&&(null==p||p(e),d&&(q(),$.current=(0,A.A)(function(){W()})))},disabled:!(d||p)},m.createElement("textarea",(0,o.A)({},S,{ref:P,style:X,className:f()(r,v,(0,a.A)({},"".concat(r,"-disabled"),E)),disabled:E,value:R,onChange:function(e){M(e.target.value),null==k||k(e)}})))});var S=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"];const N=m.forwardRef(function(e,t){var n,r=e.defaultValue,s=e.value,g=e.onFocus,y=e.onBlur,b=e.onChange,A=e.allowClear,w=e.maxLength,E=e.onCompositionStart,x=e.onCompositionEnd,C=e.suffix,N=e.prefixCls,_=void 0===N?"rc-textarea":N,R=e.showCount,M=e.count,P=e.className,O=e.style,T=e.disabled,D=e.hidden,I=e.classNames,F=e.styles,L=e.onResize,j=e.onClear,z=e.onPressEnter,K=e.readOnly,V=e.autoSize,H=e.onKeyDown,B=(0,c.A)(e,S),U=(0,h.A)(r,{value:s,defaultValue:r}),W=(0,u.A)(U,2),$=W[0],q=W[1],Y=null==$?"":String($),X=m.useState(!1),G=(0,u.A)(X,2),Q=G[0],J=G[1],Z=m.useRef(!1),ee=m.useState(null),te=(0,u.A)(ee,2),ne=te[0],re=te[1],oe=(0,m.useRef)(null),ae=(0,m.useRef)(null),ie=function(){var e;return null===(e=ae.current)||void 0===e?void 0:e.textArea},le=function(){ie().focus()};(0,m.useImperativeHandle)(t,function(){var e;return{resizableTextArea:ae.current,focus:le,blur:function(){ie().blur()},nativeElement:(null===(e=oe.current)||void 0===e?void 0:e.nativeElement)||ie()}}),(0,m.useEffect)(function(){J(function(e){return!T&&e})},[T]);var ue=m.useState(null),ce=(0,u.A)(ue,2),se=ce[0],fe=ce[1];m.useEffect(function(){var e;se&&(e=ie()).setSelectionRange.apply(e,(0,l.A)(se))},[se]);var de,pe=(0,p.A)(M,R),ve=null!==(n=pe.max)&&void 0!==n?n:w,he=Number(ve)>0,me=pe.strategy(Y),ge=!!ve&&me>ve,ye=function(e,t){var n=t;!Z.current&&pe.exceedFormatter&&pe.max&&pe.strategy(t)>pe.max&&t!==(n=pe.exceedFormatter(t,{max:pe.max}))&&fe([ie().selectionStart||0,ie().selectionEnd||0]),q(n),(0,v.gS)(e.currentTarget,e,b,n)},be=C;pe.show&&(de=pe.showFormatter?pe.showFormatter({value:Y,count:me,maxLength:ve}):"".concat(me).concat(he?" / ".concat(ve):""),be=m.createElement(m.Fragment,null,be,m.createElement("span",{className:f()("".concat(_,"-data-count"),null==I?void 0:I.count),style:null==F?void 0:F.count},de)));var Ae=!V&&!R&&!A;return m.createElement(d.a,{ref:oe,value:Y,allowClear:A,handleReset:function(e){q(""),le(),(0,v.gS)(ie(),e,b)},suffix:be,prefixCls:_,classNames:(0,i.A)((0,i.A)({},I),{},{affixWrapper:f()(null==I?void 0:I.affixWrapper,(0,a.A)((0,a.A)({},"".concat(_,"-show-count"),R),"".concat(_,"-textarea-allow-clear"),A))}),disabled:T,focused:Q,className:f()(P,ge&&"".concat(_,"-out-of-range")),style:(0,i.A)((0,i.A)({},O),ne&&!Ae?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof de?de:void 0}},hidden:D,readOnly:K,onClear:j},m.createElement(k,(0,o.A)({},B,{autoSize:V,maxLength:w,onKeyDown:function(e){"Enter"===e.key&&z&&z(e),null==H||H(e)},onChange:function(e){ye(e,e.target.value)},onFocus:function(e){J(!0),null==g||g(e)},onBlur:function(e){J(!1),null==y||y(e)},onCompositionStart:function(e){Z.current=!0,null==E||E(e)},onCompositionEnd:function(e){Z.current=!1,ye(e,e.currentTarget.value),null==x||x(e)},className:f()(null==I?void 0:I.textarea),style:(0,i.A)((0,i.A)({},null==F?void 0:F.textarea),{},{resize:null==O?void 0:O.resize}),disabled:T,prefixCls:_,onResize:function(e){var t;null==L||L(e),null!==(t=ie())&&void 0!==t&&t.style.height&&re(!0)},ref:ae,readOnly:K})))})},80427(e,t,n){"use strict";n.d(t,{z:()=>i,A:()=>y});var r=n(46942),o=n.n(r),a=n(96540);function i(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,l=e.bodyClassName,u=e.className,c=e.style;return a.createElement("div",{className:o()("".concat(n,"-content"),u),style:c},a.createElement("div",{className:o()("".concat(n,"-inner"),l),id:r,role:"tooltip",style:i},"function"==typeof t?t():t))}var l=n(58168),u=n(89379),c=n(80045),s=n(62427),f={shiftX:64,adjustY:1},d={adjustX:1,shiftY:!0},p=[0,0],v={left:{points:["cr","cl"],overflow:d,offset:[-4,0],targetOffset:p},right:{points:["cl","cr"],overflow:d,offset:[4,0],targetOffset:p},top:{points:["bc","tc"],overflow:f,offset:[0,-4],targetOffset:p},bottom:{points:["tc","bc"],overflow:f,offset:[0,4],targetOffset:p},topLeft:{points:["bl","tl"],overflow:f,offset:[0,-4],targetOffset:p},leftTop:{points:["tr","tl"],overflow:d,offset:[-4,0],targetOffset:p},topRight:{points:["br","tr"],overflow:f,offset:[0,-4],targetOffset:p},rightTop:{points:["tl","tr"],overflow:d,offset:[4,0],targetOffset:p},bottomRight:{points:["tr","br"],overflow:f,offset:[0,4],targetOffset:p},rightBottom:{points:["bl","br"],overflow:d,offset:[4,0],targetOffset:p},bottomLeft:{points:["tl","bl"],overflow:f,offset:[0,4],targetOffset:p},leftBottom:{points:["br","bl"],overflow:d,offset:[-4,0],targetOffset:p}};var h=n(56855),m=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],g=function(e,t){var n=e.overlayClassName,r=e.trigger,f=void 0===r?["hover"]:r,d=e.mouseEnterDelay,p=void 0===d?0:d,g=e.mouseLeaveDelay,y=void 0===g?.1:g,b=e.overlayStyle,A=e.prefixCls,w=void 0===A?"rc-tooltip":A,E=e.children,x=e.onVisibleChange,C=e.afterVisibleChange,k=e.transitionName,S=e.animation,N=e.motion,_=e.placement,R=void 0===_?"right":_,M=e.align,P=void 0===M?{}:M,O=e.destroyTooltipOnHide,T=void 0!==O&&O,D=e.defaultVisible,I=e.getTooltipContainer,F=e.overlayInnerStyle,L=(e.arrowContent,e.overlay),j=e.id,z=e.showArrow,K=void 0===z||z,V=e.classNames,H=e.styles,B=(0,c.A)(e,m),U=(0,h.A)(j),W=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,function(){return W.current});var $=(0,u.A)({},B);"visible"in e&&($.popupVisible=e.visible);var q,Y,X;return a.createElement(s.A,(0,l.A)({popupClassName:o()(n,null==V?void 0:V.root),prefixCls:w,popup:function(){return a.createElement(i,{key:"content",prefixCls:w,id:U,bodyClassName:null==V?void 0:V.body,overlayInnerStyle:(0,u.A)((0,u.A)({},F),null==H?void 0:H.body)},L)},action:f,builtinPlacements:v,popupPlacement:R,ref:W,popupAlign:P,getPopupContainer:I,onPopupVisibleChange:x,afterPopupVisibleChange:C,popupTransitionName:k,popupAnimation:S,popupMotion:N,defaultPopupVisible:D,autoDestroy:T,mouseLeaveDelay:y,popupStyle:(0,u.A)((0,u.A)({},b),null==H?void 0:H.root),mouseEnterDelay:p,arrow:K},$),(q=a.Children.only(E),Y=(null==q?void 0:q.props)||{},X=(0,u.A)((0,u.A)({},Y),{},{"aria-describedby":L?U:null}),a.cloneElement(E,X)))};const y=(0,a.forwardRef)(g)},14884(e,t,n){"use strict";n.d(t,{u6:()=>K,vj:()=>H,FA:()=>V,nF:()=>w,Ay:()=>q});var r=n(58168),o=n(60436),a=n(89379),i=n(5544),l=n(80045),u=n(82284),c=n(43599),s=n(3979),f=n(38820),d=n(12533),p=n(68210),v=n(96540);const h=function(e){var t=v.useRef({valueLabels:new Map});return v.useMemo(function(){var n=t.current.valueLabels,r=new Map,o=e.map(function(e){var t=e.value,o=e.label,i=null!=o?o:n.get(t);return r.set(t,i),(0,a.A)((0,a.A)({},e),{},{label:i})});return t.current.valueLabels=r,[o]},[e])};(Object.getOwnPropertyDescriptor(h,"name")||{}).writable||Object.defineProperty(h,"name",{value:"default",configurable:!0});const m=function(e,t,n,r){return v.useMemo(function(){var a=function(e){return e.map(function(e){return e.value})},i=a(e),l=a(t),u=i.filter(function(e){return!r[e]}),c=i,s=l;if(n){var d=(0,f.p)(i,!0,r);c=d.checkedKeys,s=d.halfCheckedKeys}return[Array.from(new Set([].concat((0,o.A)(u),(0,o.A)(c)))),s]},[e,t,n,r])};var g=n(7974);const y=function(e,t){return v.useMemo(function(){return(0,g.cG)(e,{fieldNames:t,initWrapper:function(e){return(0,a.A)((0,a.A)({},e),{},{valueEntities:new Map})},processEntity:function(e,n){var r=e.node[t.value];n.valueEntities.set(r,e)}})},[e,t])};(Object.getOwnPropertyDescriptor(y,"name")||{}).writable||Object.defineProperty(y,"name",{value:"default",configurable:!0});var b=n(64467),A=n(82546);const w=function(){return null};var E=["children","value"];function x(e){return(0,A.A)(e).map(function(e){if(!v.isValidElement(e)||!e.type)return null;var t=e,n=t.key,r=t.props,o=r.children,i=r.value,u=(0,l.A)(r,E),c=(0,a.A)({key:n,value:i},u),s=x(o);return s.length&&(c.children=s),c}).filter(function(e){return e})}function C(e){if(!e)return e;var t=(0,a.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,p.Ay)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}const k=function(e,t,n){var r=n.fieldNames,o=n.treeNodeFilterProp,i=n.filterTreeNode,l=r.children;return v.useMemo(function(){if(!t||!1===i)return e;var n="function"==typeof i?i:function(e,n){return String(n[o]).toUpperCase().includes(t.toUpperCase())};return function e(r){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.reduce(function(r,i){var u=i[l],c=o||n(t,C(i)),s=e(u||[],c);return(c||s.length)&&r.push((0,a.A)((0,a.A)({},i),{},(0,b.A)({isLeaf:void 0},l,s))),r},[])}(e)},[e,t,l,o,i])};function S(e){var t=v.useRef();t.current=e;var n=v.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function N(e,t,n){return v.useMemo(function(){if(e){if(n){var r=(0,a.A)({id:"id",pId:"pId",rootPId:null},"object"===(0,u.A)(n)?n:{});return function(e,t){var n=t.id,r=t.pId,o=t.rootPId,i=new Map,l=[];return e.forEach(function(e){var t=e[n],r=(0,a.A)((0,a.A)({},e),{},{key:e.key||t});i.set(t,r)}),i.forEach(function(e){var t=e[r],n=i.get(t);n?(n.children=n.children||[],n.children.push(e)):t!==o&&null!==o||l.push(e)}),l}(e,r)}return e}return x(t)},[t,n,e])}const _=v.createContext(null);var R=n(24765),M=n(1444),P=n(16928),O=n(28104);const T=v.createContext(null);var D=function(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable},I=function(e){return null==e},F=n(81470),L={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},j=function(e,t){var n=(0,c.Vm)(),a=n.prefixCls,l=n.multiple,u=n.searchValue,s=n.toggleOpen,f=n.open,d=n.notFoundContent,p=v.useContext(T),h=p.virtual,m=p.listHeight,g=p.listItemHeight,y=p.listItemScrollOffset,b=p.treeData,A=p.fieldNames,w=p.onSelect,E=p.dropdownMatchSelectWidth,x=p.treeExpandAction,C=p.treeTitleRender,k=p.onPopupScroll,S=p.leftMaxCount,N=p.leafCountOnly,I=p.valueEntities,j=v.useContext(_),z=j.checkable,K=j.checkedKeys,V=j.halfCheckedKeys,H=j.treeExpandedKeys,B=j.treeDefaultExpandAll,U=j.treeDefaultExpandedKeys,W=j.onTreeExpand,$=j.treeIcon,q=j.showTreeIcon,Y=j.switcherIcon,X=j.treeLine,G=j.treeNodeFilterProp,Q=j.loadData,J=j.treeLoadedKeys,Z=j.treeMotion,ee=j.onTreeLoad,te=j.keyEntities,ne=v.useRef(),re=(0,O.A)(function(){return b},[f,b],function(e,t){return t[0]&&e[1]!==t[1]}),oe=v.useMemo(function(){return z?{checked:K,halfChecked:V}:null},[z,K,V]);v.useEffect(function(){var e;f&&!l&&K.length&&(null===(e=ne.current)||void 0===e||e.scrollTo({key:K[0]}))},[f]);var ae=function(e){e.preventDefault()},ie=function(e,t){var n=t.node;z&&D(n)||(w(n.key,{selected:!K.includes(n.key)}),l||s(!1))},le=v.useState(U),ue=(0,i.A)(le,2),ce=ue[0],se=ue[1],fe=v.useState(null),de=(0,i.A)(fe,2),pe=de[0],ve=de[1],he=v.useMemo(function(){return H?(0,o.A)(H):u?pe:ce},[ce,pe,H,u]),me=String(u).toLowerCase(),ge=function(e){return!!me&&String(e[G]).toLowerCase().includes(me)};v.useEffect(function(){u&&ve(function(e,t){var n=[];return function e(r){r.forEach(function(r){var o=r[t.children];o&&(n.push(r[t.value]),e(o))})}(e),n}(b,A))},[u]);var ye=v.useState(function(){return new Map}),be=(0,i.A)(ye,2),Ae=be[0],we=be[1];v.useEffect(function(){S&&we(new Map)},[S]);var Ee=(0,F._q)(function(e){var t=e[A.value];return!K.includes(t)&&(null!==S&&(S<=0||!(!N||!S)&&function(e){var t=e[A.value];if(!Ae.has(t)){var n=I.get(t);if(0===(n.children||[]).length)Ae.set(t,!1);else{var r=n.children.filter(function(e){return!e.node.disabled&&!e.node.disableCheckbox&&!K.includes(e.node[A.value])}).length;Ae.set(t,r>S)}}return Ae.get(t)}(e)))}),xe=function e(t){var n,r=(0,R.A)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!o.disabled&&!1!==o.selectable){if(!u)return o;if(ge(o))return o;if(o[A.children]){var a=e(o[A.children]);if(a)return a}}}}catch(e){r.e(e)}finally{r.f()}return null},Ce=v.useState(null),ke=(0,i.A)(Ce,2),Se=ke[0],Ne=ke[1],_e=te[Se];v.useEffect(function(){if(f){var e,t=null;t=l||!K.length||u?(e=xe(re))?e[A.value]:null:K[0],Ne(t)}},[f,u]),v.useImperativeHandle(t,function(){var e;return{scrollTo:null===(e=ne.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case P.A.UP:case P.A.DOWN:case P.A.LEFT:case P.A.RIGHT:null===(t=ne.current)||void 0===t||t.onKeyDown(e);break;case P.A.ENTER:if(_e){var n=Ee(_e.node),r=(null==_e?void 0:_e.node)||{},o=r.selectable,a=r.value,i=r.disabled;!1===o||i||n||ie(0,{node:{key:Se},selected:!K.includes(a)})}break;case P.A.ESC:s(!1)}},onKeyUp:function(){}}});var Re=(0,O.A)(function(){return!u},[u,H||ce],function(e,t){var n=(0,i.A)(e,1)[0],r=(0,i.A)(t,2),o=r[0],a=r[1];return n!==o&&!(!o&&!a)})?Q:null;if(0===re.length)return v.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:ae},d);var Me={fieldNames:A};return J&&(Me.loadedKeys=J),he&&(Me.expandedKeys=he),v.createElement("div",{onMouseDown:ae},_e&&f&&v.createElement("span",{style:L,"aria-live":"assertive"},_e.node.value),v.createElement(M.QB.Provider,{value:{nodeDisabled:Ee}},v.createElement(M.Ay,(0,r.A)({ref:ne,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:re,height:m,itemHeight:g,itemScrollOffset:y,virtual:!1!==h&&!1!==E,multiple:l,icon:$,showIcon:q,switcherIcon:Y,showLine:X,loadData:Re,motion:Z,activeKey:Se,checkable:z,checkStrictly:!0,checkedKeys:oe,selectedKeys:z?[]:K,defaultExpandAll:B,titleRender:C},Me,{onActiveChange:Ne,onSelect:ie,onCheck:ie,onExpand:function(e){se(e),ve(e),W&&W(e)},onLoad:ee,filterTreeNode:ge,expandAction:x,onScroll:k}))))};const z=v.forwardRef(j);var K="SHOW_ALL",V="SHOW_PARENT",H="SHOW_CHILD";function B(e,t,n,r){var o=new Set(e);return t===H?e.filter(function(e){var t=n[e];return!(t&&t.children&&t.children.some(function(e){var t=e.node;return o.has(t[r.value])})&&t.children.every(function(e){var t=e.node;return D(t)||o.has(t[r.value])}))}):t===V?e.filter(function(e){var t=n[e],r=t?t.parent:null;return!r||D(r.node)||!o.has(r.key)}):e}var U=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];var W=v.forwardRef(function(e,t){var n=e.id,g=e.prefixCls,b=void 0===g?"rc-tree-select":g,A=e.value,E=e.defaultValue,x=e.onChange,R=e.onSelect,M=e.onDeselect,P=e.searchValue,O=e.inputValue,D=e.onSearch,F=e.autoClearSearchValue,L=void 0===F||F,j=e.filterTreeNode,V=e.treeNodeFilterProp,W=void 0===V?"value":V,$=e.showCheckedStrategy,q=e.treeNodeLabelProp,Y=e.multiple,X=e.treeCheckable,G=e.treeCheckStrictly,Q=e.labelInValue,J=e.maxCount,Z=e.fieldNames,ee=e.treeDataSimpleMode,te=e.treeData,ne=e.children,re=e.loadData,oe=e.treeLoadedKeys,ae=e.onTreeLoad,ie=e.treeDefaultExpandAll,le=e.treeExpandedKeys,ue=e.treeDefaultExpandedKeys,ce=e.onTreeExpand,se=e.treeExpandAction,fe=e.virtual,de=e.listHeight,pe=void 0===de?200:de,ve=e.listItemHeight,he=void 0===ve?20:ve,me=e.listItemScrollOffset,ge=void 0===me?0:me,ye=e.onDropdownVisibleChange,be=e.dropdownMatchSelectWidth,Ae=void 0===be||be,we=e.treeLine,Ee=e.treeIcon,xe=e.showTreeIcon,Ce=e.switcherIcon,ke=e.treeMotion,Se=e.treeTitleRender,Ne=e.onPopupScroll,_e=(0,l.A)(e,U),Re=(0,s.Ay)(n),Me=X&&!G,Pe=X||G,Oe=G||Q,Te=Pe||Y,De=(0,d.A)(E,{value:A}),Ie=(0,i.A)(De,2),Fe=Ie[0],Le=Ie[1],je=v.useMemo(function(){return X?$||H:K},[$,X]);var ze=v.useMemo(function(){return function(e){var t=e||{},n=t.label,r=t.value;return{_title:n?[n]:["title","label"],value:r||"value",key:r||"value",children:t.children||"children"}}(Z)},[JSON.stringify(Z)]),Ke=(0,d.A)("",{value:void 0!==P?P:O,postState:function(e){return e||""}}),Ve=(0,i.A)(Ke,2),He=Ve[0],Be=Ve[1],Ue=N(te,ne,ee),We=y(Ue,ze),$e=We.keyEntities,qe=We.valueEntities,Ye=v.useCallback(function(e){var t=[],n=[];return e.forEach(function(e){qe.has(e)?n.push(e):t.push(e)}),{missingRawValues:t,existRawValues:n}},[qe]),Xe=k(Ue,He,{fieldNames:ze,treeNodeFilterProp:W,filterTreeNode:j}),Ge=v.useCallback(function(e){if(e){if(q)return e[q];for(var t=ze._title,n=0;ndt)){var a=Je(e);if(Le(a),L&&Be(""),x){var i=e;Me&&(i=r.map(function(e){var t=qe.get(e);return t?t.node[ze.value]:e}));var l=t||{triggerValue:void 0,selected:void 0},u=l.triggerValue,c=l.selected,s=i;if(G){var f=rt.filter(function(e){return!i.includes(e.value)});s=[].concat((0,o.A)(s),(0,o.A)(f))}var d=Je(s),h={preValue:nt,triggerValue:u},m=!0;(G||"selection"===n&&!c)&&(m=!1),function(e,t,n,r,o,a){var i=null,l=null;function u(){l||(l=[],function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r.map(function(r,c){var s="".concat(o,"-").concat(c),f=r[a.value],d=n.includes(f),p=e(r[a.children]||[],s,d),h=v.createElement(w,r,p.map(function(e){return e.node}));if(t===f&&(i=h),d){var m={pos:s,node:h,children:p};return u||l.push(m),m}return null}).filter(function(e){return e})}(r),l.sort(function(e,t){var r=e.node.props.value,o=t.node.props.value;return n.indexOf(r)-n.indexOf(o)}))}Object.defineProperty(e,"triggerNode",{get:function(){return(0,p.Ay)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),u(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return(0,p.Ay)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),u(),o?l:l.map(function(e){return e.node})}})}(h,u,e,Ue,m,ze),Pe?h.checked=c:h.selected=c;var g=Oe?d:d.map(function(e){return e.value});x(Te?g:g[0],Oe?null:d.map(function(e){return e.label}),h)}}}),vt=v.useCallback(function(e,t){var n,r=t.selected,a=t.source,i=$e[e],l=null==i?void 0:i.node,u=null!==(n=null==l?void 0:l[ze.value])&&void 0!==n?n:e;if(Te){var c=r?[].concat((0,o.A)(ot),[u]):lt.filter(function(e){return e!==u});if(Me){var s,d=Ye(c),p=d.missingRawValues,v=d.existRawValues.map(function(e){return qe.get(e).key});if(r)s=(0,f.p)(v,!0,$e).checkedKeys;else s=(0,f.p)(v,{checked:!1,halfCheckedKeys:ut},$e).checkedKeys;c=[].concat((0,o.A)(p),(0,o.A)(s.map(function(e){return $e[e].node[ze.value]})))}pt(c,{selected:r,triggerValue:u},a||"option")}else pt([u],{selected:!0,triggerValue:u},"option");r||!Te?null==R||R(u,C(l)):null==M||M(u,C(l))},[Ye,qe,$e,ze,Te,ot,pt,Me,R,M,lt,ut,J]),ht=v.useCallback(function(e){if(ye){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return(0,p.Ay)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),ye(e,t)}},[ye]),mt=S(function(e,t){var n=e.map(function(e){return e.value});"clear"!==t.type?t.values.length&&vt(t.values[0].value,{selected:!1,source:"selection"}):pt(n,{},"selection")}),gt=v.useMemo(function(){return{virtual:fe,dropdownMatchSelectWidth:Ae,listHeight:pe,listItemHeight:he,listItemScrollOffset:ge,treeData:Xe,fieldNames:ze,onSelect:vt,treeExpandAction:se,treeTitleRender:Se,onPopupScroll:Ne,leftMaxCount:void 0===J?null:J-ft.length,leafCountOnly:"SHOW_CHILD"===je&&!G&&!!X,valueEntities:qe}},[fe,Ae,pe,he,ge,Xe,ze,vt,se,Se,Ne,J,ft.length,je,G,X,qe]),yt=v.useMemo(function(){return{checkable:Pe,loadData:re,treeLoadedKeys:oe,onTreeLoad:ae,checkedKeys:lt,halfCheckedKeys:ut,treeDefaultExpandAll:ie,treeExpandedKeys:le,treeDefaultExpandedKeys:ue,onTreeExpand:ce,treeIcon:Ee,treeMotion:ke,showTreeIcon:xe,switcherIcon:Ce,treeLine:we,treeNodeFilterProp:W,keyEntities:$e}},[Pe,re,oe,ae,lt,ut,ie,le,ue,ce,Ee,ke,xe,Ce,we,W,$e]);return v.createElement(T.Provider,{value:gt},v.createElement(_.Provider,{value:yt},v.createElement(c.g3,(0,r.A)({ref:t},_e,{id:Re,prefixCls:b,mode:Te?"multiple":void 0,displayValues:ft,onDisplayValuesChange:mt,searchValue:He,onSearch:function(e){Be(e),null==D||D(e)},OptionList:z,emptyOptions:!Ue.length,onDropdownVisibleChange:ht,dropdownMatchSelectWidth:Ae}))))});var $=W;$.TreeNode=w,$.SHOW_ALL=K,$.SHOW_PARENT=V,$.SHOW_CHILD=H;const q=$},81955(e,t,n){"use strict";n.d(t,{A:()=>w});var r=n(58168),o=n(64467),a=n(89379),i=n(5544),l=n(80045),u=n(96540),c=n(46942),s=n.n(c),f=n(72065),d=n(28528),p=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,a=e.isEnd,i="".concat(t,"-indent-unit"),l=[],c=0;ca,U:()=>o});var r=n(96540),o=r.createContext(null),a=r.createContext({})},1444(e,t,n){"use strict";n.d(t,{nF:()=>N.A,QB:()=>b.Q,Ay:()=>Y});var r=n(58168),o=n(82284),a=n(89379),i=n(60436),l=n(23029),u=n(92901),c=n(9417),s=n(85501),f=n(49640),d=n(64467),p=n(46942),v=n.n(p),h=n(16928),m=n(72065),g=n(68210),y=n(96540),b=n(28528);const A=function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r}return y.createElement("div",{style:o})};var w=n(20454),E=n(5544),x=n(80045),C=n(30981),k=n(60551),S=n(90754),N=n(81955);const _=function(e,t){var n=y.useState(!1),r=(0,E.A)(n,2),o=r[0],a=r[1];(0,C.A)(function(){if(o)return e(),function(){t()}},[o]),(0,C.A)(function(){return a(!0),function(){a(!1)}},[])};var R=n(7974),M=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"];const P=y.forwardRef(function(e,t){var n=e.className,o=e.style,a=e.motion,i=e.motionNodes,l=e.motionType,u=e.onMotionStart,c=e.onMotionEnd,s=e.active,f=e.treeNodeRequiredProps,d=(0,x.A)(e,M),p=y.useState(!0),h=(0,E.A)(p,2),m=h[0],g=h[1],A=y.useContext(b.U).prefixCls,k=i&&"hide"!==l;(0,C.A)(function(){i&&k!==m&&g(k)},[i]);var P=y.useRef(!1),O=function(){i&&!P.current&&(P.current=!0,c())};_(function(){i&&u()},O);return i?y.createElement(S.Ay,(0,r.A)({ref:t,visible:m},a,{motionAppear:"show"===l,onVisibleChanged:function(e){k===e&&O()}}),function(e,t){var n=e.className,o=e.style;return y.createElement("div",{ref:t,className:v()("".concat(A,"-treenode-motion"),n),style:o},i.map(function(e){var t=Object.assign({},((0,w.A)(e.data),e.data)),n=e.title,o=e.key,a=e.isStart,i=e.isEnd;delete t.children;var l=(0,R.N5)(o,f);return y.createElement(N.A,(0,r.A)({},t,l,{title:n,active:s,data:e.data,key:o,isStart:a,isEnd:i}))}))}):y.createElement(N.A,(0,r.A)({domRef:t,className:n,style:o},d,{active:s}))});function O(e,t,n){var r=e.findIndex(function(e){return e.key===n}),o=e[r+1],a=t.findIndex(function(e){return e.key===n});if(o){var i=t.findIndex(function(e){return e.key===o.key});return t.slice(a+1,i)}return t.slice(a+1)}var T=["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"],D={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},I=function(){},F="RC_TREE_MOTION_".concat(Math.random()),L={key:F},j={key:F,level:0,index:0,pos:"0",node:L,nodes:[L]},z={parent:null,children:[],pos:j.pos,data:L,title:null,key:F,isStart:[],isEnd:[]};function K(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function V(e){var t=e.key,n=e.pos;return(0,R.i7)(t,n)}var H=y.forwardRef(function(e,t){var n=e.prefixCls,o=e.data,a=(e.selectable,e.checkable,e.expandedKeys),i=e.selectedKeys,l=e.checkedKeys,u=e.loadedKeys,c=e.loadingKeys,s=e.halfCheckedKeys,f=e.keyEntities,d=e.disabled,p=e.dragging,v=e.dragOverNodeKey,h=e.dropPosition,m=e.motion,g=e.height,b=e.itemHeight,A=e.virtual,S=e.scrollWidth,N=e.focusable,_=e.activeItem,M=e.focused,L=e.tabIndex,j=e.onKeyDown,H=e.onFocus,B=e.onBlur,U=e.onActiveChange,W=e.onListChangeStart,$=e.onListChangeEnd,q=(0,x.A)(e,T),Y=y.useRef(null),X=y.useRef(null);y.useImperativeHandle(t,function(){return{scrollTo:function(e){Y.current.scrollTo(e)},getIndentWidth:function(){return X.current.offsetWidth}}});var G=y.useState(a),Q=(0,E.A)(G,2),J=Q[0],Z=Q[1],ee=y.useState(o),te=(0,E.A)(ee,2),ne=te[0],re=te[1],oe=y.useState(o),ae=(0,E.A)(oe,2),ie=ae[0],le=ae[1],ue=y.useState([]),ce=(0,E.A)(ue,2),se=ce[0],fe=ce[1],de=y.useState(null),pe=(0,E.A)(de,2),ve=pe[0],he=pe[1],me=y.useRef(o);function ge(){var e=me.current;re(e),le(e),fe([]),he(null),$()}me.current=o,(0,C.A)(function(){Z(a);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach(function(e){n.set(e,!0)});var r=t.filter(function(e){return!n.has(e)});return 1===r.length?r[0]:null}return n ").concat(t);return t}(_)),y.createElement("div",null,y.createElement("input",{style:D,disabled:!1===N||d,tabIndex:!1!==N?L:null,onKeyDown:j,onFocus:H,onBlur:B,value:"",onChange:I,"aria-label":"for screen reader"})),y.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},y.createElement("div",{className:"".concat(n,"-indent")},y.createElement("div",{ref:X,className:"".concat(n,"-indent-unit")}))),y.createElement(k.A,(0,r.A)({},q,{data:ye,itemKey:V,height:g,fullHeight:!1,virtual:A,itemHeight:b,scrollWidth:S,prefixCls:"".concat(n,"-list"),ref:Y,role:"tree",onVisibleChange:function(e){e.every(function(e){return V(e)!==F})&&ge()}}),function(e){var t=e.pos,n=Object.assign({},((0,w.A)(e.data),e.data)),o=e.title,a=e.key,i=e.isStart,l=e.isEnd,u=(0,R.i7)(a,t);delete n.key,delete n.children;var c=(0,R.N5)(u,be);return y.createElement(P,(0,r.A)({},n,c,{title:o,active:!!_&&a===_.key,pos:t,data:e.data,isStart:i,isEnd:l,motion:m,motionNodes:a===F?se:null,motionType:ve,onMotionStart:W,onMotionEnd:ge,treeNodeRequiredProps:be,onMouseMove:function(){U(null)}}))}))});const B=H;var U=n(84036),W=n(38820),$=n(84963),q=function(e){(0,s.A)(n,e);var t=(0,f.A)(n);function n(){var e;(0,l.A)(this,n);for(var r=arguments.length,o=new Array(r),u=0;u2&&void 0!==arguments[2]&&arguments[2],i=e.state,l=i.dragChildrenKeys,u=i.dropPosition,c=i.dropTargetKey,s=i.dropTargetPos;if(i.dropAllowed){var f=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var d=(0,a.A)((0,a.A)({},(0,R.N5)(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:(0,$.A)(e.state.keyEntities,c).node}),p=l.includes(c);(0,g.Ay)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var v=(0,U.LI)(s),h={event:t,node:(0,R.Hj)(d),dragNode:e.dragNodeProps?(0,R.Hj)(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(l),dropToGap:0!==u,dropPosition:u+Number(v[v.length-1])};o||null==f||f(h),e.dragNodeProps=null}}}),(0,d.A)((0,c.A)(e),"cleanDragState",function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null}),(0,d.A)((0,c.A)(e),"triggerExpandActionExpand",function(t,n){var r=e.state,o=r.expandedKeys,i=r.flattenNodes,l=n.expanded,u=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var c=i.filter(function(e){return e.key===u})[0],s=(0,R.Hj)((0,a.A)((0,a.A)({},(0,R.N5)(u,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(l?(0,U.BA)(o,u):(0,U.$s)(o,u)),e.onNodeExpand(t,s)}}),(0,d.A)((0,c.A)(e),"onNodeClick",function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)}),(0,d.A)((0,c.A)(e),"onNodeDoubleClick",function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)}),(0,d.A)((0,c.A)(e),"onNodeSelect",function(t,n){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,i=o.fieldNames,l=e.props,u=l.onSelect,c=l.multiple,s=n.selected,f=n[i.key],d=!s,p=(r=d?c?(0,U.$s)(r,f):[f]:(0,U.BA)(r,f)).map(function(e){var t=(0,$.A)(a,e);return t?t.node:null}).filter(Boolean);e.setUncontrolledState({selectedKeys:r}),null==u||u(r,{event:"select",selected:d,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})}),(0,d.A)((0,c.A)(e),"onNodeCheck",function(t,n,r){var o,a=e.state,l=a.keyEntities,u=a.checkedKeys,c=a.halfCheckedKeys,s=e.props,f=s.checkStrictly,d=s.onCheck,p=n.key,v={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(f){var h=r?(0,U.$s)(u,p):(0,U.BA)(u,p);o={checked:h,halfChecked:(0,U.BA)(c,p)},v.checkedNodes=h.map(function(e){return(0,$.A)(l,e)}).filter(Boolean).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:h})}else{var m=(0,W.p)([].concat((0,i.A)(u),[p]),!0,l),g=m.checkedKeys,y=m.halfCheckedKeys;if(!r){var b=new Set(g);b.delete(p);var A=(0,W.p)(Array.from(b),{checked:!1,halfCheckedKeys:y},l);g=A.checkedKeys,y=A.halfCheckedKeys}o=g,v.checkedNodes=[],v.checkedNodesPositions=[],v.halfCheckedKeys=y,g.forEach(function(e){var t=(0,$.A)(l,e);if(t){var n=t.node,r=t.pos;v.checkedNodes.push(n),v.checkedNodesPositions.push({node:n,pos:r})}}),e.setUncontrolledState({checkedKeys:g},!1,{halfCheckedKeys:y})}null==d||d(o,v)}),(0,d.A)((0,c.A)(e),"onNodeLoad",function(t){var n,r=t.key,o=e.state.keyEntities,a=(0,$.A)(o,r);if(null==a||null===(n=a.children)||void 0===n||!n.length){var i=new Promise(function(n,o){e.setState(function(a){var i=a.loadedKeys,l=void 0===i?[]:i,u=a.loadingKeys,c=void 0===u?[]:u,s=e.props,f=s.loadData,d=s.onLoad;return!f||l.includes(r)||c.includes(r)?null:(f(t).then(function(){var o=e.state.loadedKeys,a=(0,U.$s)(o,r);null==d||d(a,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:a}),e.setState(function(e){return{loadingKeys:(0,U.BA)(e.loadingKeys,r)}}),n()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:(0,U.BA)(e.loadingKeys,r)}}),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=10){var a=e.state.loadedKeys;(0,g.Ay)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,U.$s)(a,r)}),n()}o(t)}),{loadingKeys:(0,U.$s)(c,r)})})});return i.catch(function(){}),i}}),(0,d.A)((0,c.A)(e),"onNodeMouseEnter",function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})}),(0,d.A)((0,c.A)(e),"onNodeMouseLeave",function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})}),(0,d.A)((0,c.A)(e),"onNodeContextMenu",function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))}),(0,d.A)((0,c.A)(e),"onFocus",function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,l={};Object.keys(t).forEach(function(n){e.props.hasOwnProperty(n)?i=!1:(o=!0,l[n]=t[n])}),!o||n&&!i||e.setState((0,a.A)((0,a.A)({},l),r))}}),(0,d.A)((0,c.A)(e),"scrollTo",function(t){e.listRef.current.scrollTo(t)}),e}return(0,u.A)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{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 e,t=this.state,n=t.focused,a=t.flattenNodes,i=t.keyEntities,l=t.draggingNodeKey,u=t.activeKey,c=t.dropLevelOffset,s=t.dropContainerKey,f=t.dropTargetKey,p=t.dropPosition,h=t.dragOverNodeKey,g=t.indent,A=this.props,w=A.prefixCls,E=A.className,x=A.style,C=A.showLine,k=A.focusable,S=A.tabIndex,N=void 0===S?0:S,_=A.selectable,R=A.showIcon,M=A.icon,P=A.switcherIcon,O=A.draggable,T=A.checkable,D=A.checkStrictly,I=A.disabled,F=A.motion,L=A.loadData,j=A.filterTreeNode,z=A.height,K=A.itemHeight,V=A.scrollWidth,H=A.virtual,U=A.titleRender,W=A.dropIndicatorRender,$=A.onContextMenu,q=A.onScroll,Y=A.direction,X=A.rootClassName,G=A.rootStyle,Q=(0,m.A)(this.props,{aria:!0,data:!0});O&&(e="object"===(0,o.A)(O)?O:"function"==typeof O?{nodeDraggable:O}:{});var J={prefixCls:w,selectable:_,showIcon:R,icon:M,switcherIcon:P,draggable:e,draggingNodeKey:l,checkable:T,checkStrictly:D,disabled:I,keyEntities:i,dropLevelOffset:c,dropContainerKey:s,dropTargetKey:f,dropPosition:p,dragOverNodeKey:h,indent:g,direction:Y,dropIndicatorRender:W,loadData:L,filterTreeNode:j,titleRender:U,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 y.createElement(b.U.Provider,{value:J},y.createElement("div",{className:v()(w,E,X,(0,d.A)((0,d.A)((0,d.A)({},"".concat(w,"-show-line"),C),"".concat(w,"-focused"),n),"".concat(w,"-active-focused"),null!==u)),style:G},y.createElement(B,(0,r.A)({ref:this.listRef,prefixCls:w,style:x,data:a,disabled:I,selectable:_,checkable:!!T,motion:F,dragging:null!==l,height:z,itemHeight:K,virtual:H,focusable:k,focused:n,tabIndex:N,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:$,onScroll:q,scrollWidth:V},this.getTreeNodeRequiredProps(),Q))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function i(t){return!r&&e.hasOwnProperty(t)||r&&r[t]!==e[t]}var l=t.fieldNames;if(i("fieldNames")&&(l=(0,R.AZ)(e.fieldNames),o.fieldNames=l),i("treeData")?n=e.treeData:i("children")&&((0,g.Ay)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=(0,R.vH)(e.children)),n){o.treeData=n;var u=(0,R.cG)(n,{fieldNames:l});o.keyEntities=(0,a.A)((0,d.A)({},F,j),u.keyEntities)}var c,s=o.keyEntities||t.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?(0,U.hr)(e.expandedKeys,s):e.expandedKeys;else if(!r&&e.defaultExpandAll){var f=(0,a.A)({},s);delete f[F];var p=[];Object.keys(f).forEach(function(e){var t=f[e];t.children&&t.children.length&&p.push(t.key)}),o.expandedKeys=p}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?(0,U.hr)(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var v=(0,R.$9)(n||t.treeData,o.expandedKeys||t.expandedKeys,l);o.flattenNodes=v}if((e.selectable&&(i("selectedKeys")?o.selectedKeys=(0,U.BE)(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=(0,U.BE)(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?c=(0,U.tg)(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?c=(0,U.tg)(e.defaultCheckedKeys)||{}:n&&(c=(0,U.tg)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var h=c,m=h.checkedKeys,y=void 0===m?[]:m,b=h.halfCheckedKeys,A=void 0===b?[]:b;if(!e.checkStrictly){var w=(0,W.p)(y,!0,s);y=w.checkedKeys,A=w.halfCheckedKeys}o.checkedKeys=y,o.halfCheckedKeys=A}return i("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),n}(y.Component);(0,d.A)(q,"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:A,allowDrop:function(){return!0},expandAction:!1}),(0,d.A)(q,"TreeNode",N.A);const Y=q},84036(e,t,n){"use strict";n.d(t,{$s:()=>u,BA:()=>l,BE:()=>p,LI:()=>c,Oh:()=>d,hr:()=>h,kG:()=>s,tg:()=>v});var r=n(60436),o=n(82284),a=n(68210),i=(n(96540),n(81955),n(84963));n(7974);function l(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function u(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function c(e){return e.split("-")}function s(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(t){var r=t.key,o=t.children;n.push(r),e(o)})}((0,i.A)(t,e).children),n}function f(e){if(e.parent){var t=c(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function d(e,t,n,r,o,a,l,u,s,d){var p,v=e.clientX,h=e.clientY,m=e.target.getBoundingClientRect(),g=m.top,y=m.height,b=(("rtl"===d?-1:1)*(((null==o?void 0:o.x)||0)-v)-12)/r,A=s.filter(function(e){var t;return null===(t=u[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length}),w=(0,i.A)(u,n.eventKey);if(h-1.5?a({dragNode:P,dropNode:O,dropPosition:1})?N=1:T=!1:a({dragNode:P,dropNode:O,dropPosition:0})?N=0:a({dragNode:P,dropNode:O,dropPosition:1})?N=1:T=!1:a({dragNode:P,dropNode:O,dropPosition:1})?N=1:T=!1,{dropPosition:N,dropLevelOffset:_,dropTargetKey:w.key,dropTargetPos:w.pos,dragOverNodeKey:S,dropContainerKey:0===N?null:(null===(p=w.parent)||void 0===p?void 0:p.key)||null,dropAllowed:T}}function p(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function v(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,o.A)(e))return(0,a.Ay)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function h(e,t){var n=new Set;function o(e){if(!n.has(e)){var r=(0,i.A)(t,e);if(r){n.add(e);var a=r.parent;r.node.disabled||a&&o(a.key)}}}return(e||[]).forEach(function(e){o(e)}),(0,r.A)(n)}},38820(e,t,n){"use strict";n.d(t,{p:()=>l});var r=n(68210),o=n(84963);function a(e,t){var n=new Set;return e.forEach(function(e){t.has(e)||n.add(e)}),n}function i(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function l(e,t,n,l){var u,c=[];u=l||i;var s,f=new Set(e.filter(function(e){var t=!!(0,o.A)(n,e);return t||c.push(e),t})),d=new Map,p=0;return Object.keys(n).forEach(function(e){var t=n[e],r=t.level,o=d.get(r);o||(o=new Set,d.set(r,o)),o.add(t),p=Math.max(p,r)}),(0,r.Ay)(!c.length,"Tree missing follow keys: ".concat(c.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),s=!0===t?function(e,t,n,r){for(var o=new Set(e),i=new Set,l=0;l<=n;l+=1)(t.get(l)||new Set).forEach(function(e){var t=e.key,n=e.node,a=e.children,i=void 0===a?[]:a;o.has(t)&&!r(n)&&i.filter(function(e){return!r(e.node)}).forEach(function(e){o.add(e.key)})});for(var u=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach(function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!u.has(e.parent.key))if(r(e.parent.node))u.add(t.key);else{var a=!0,l=!1;(t.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),l||!n&&!i.has(t)||(l=!0)}),a&&o.add(t.key),l&&i.add(t.key),u.add(t.key)}});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(a(i,o))}}(f,d,p,u):function(e,t,n,r,o){for(var i=new Set(e),l=new Set(t),u=0;u<=r;u+=1)(n.get(u)||new Set).forEach(function(e){var t=e.key,n=e.node,r=e.children,a=void 0===r?[]:r;i.has(t)||l.has(t)||o(n)||a.filter(function(e){return!o(e.node)}).forEach(function(e){i.delete(e.key)})});l=new Set;for(var c=new Set,s=r;s>=0;s-=1)(n.get(s)||new Set).forEach(function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(t.key);else{var r=!0,a=!1;(t.children||[]).filter(function(e){return!o(e.node)}).forEach(function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),a||!n&&!l.has(t)||(a=!0)}),r||i.delete(t.key),a&&l.add(t.key),c.add(t.key)}});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(a(l,i))}}(f,t.halfCheckedKeys,d,p,u),s}},84963(e,t,n){"use strict";function r(e,t){return e[t]}n.d(t,{A:()=>r})},7974(e,t,n){"use strict";n.d(t,{$9:()=>m,AZ:()=>v,Hj:()=>b,N5:()=>y,cG:()=>g,i7:()=>p,vH:()=>h});var r=n(82284),o=n(60436),a=n(89379),i=n(80045),l=n(82546),u=n(19853),c=n(68210),s=n(84963),f=["children"];function d(e,t){return"".concat(e,"-").concat(t)}function p(e,t){return null!=e?e:t}function v(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function h(e){return function e(t){return(0,l.A)(t).map(function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return(0,c.Ay)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,l=(0,i.A)(r,f),u=(0,a.A)({key:n},l),s=e(o);return s.length&&(u.children=s),u}).filter(function(e){return e})}(e)}function m(e,t,n){var r=v(n),a=r._title,i=r.key,l=r.children,c=new Set(!0===t?[]:t),s=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map(function(f,v){for(var h,m=d(r?r.pos:"0",v),g=p(f[i],m),y=0;y1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,a=t.processEntity,i=t.onProcessFinished,l=t.externalGetKey,u=t.childrenPropName,c=t.fieldNames,s=l||(arguments.length>2?arguments[2]:void 0),f={},h={},m={posEntities:f,keyEntities:h};return n&&(m=n(m)||m),function(e,t,n){var a,i=("object"===(0,r.A)(n)?n:{externalGetKey:n})||{},l=i.childrenPropName,u=i.externalGetKey,c=v(i.fieldNames),s=c.key,f=c.children,h=l||f;u?"string"==typeof u?a=function(e){return e[u]}:"function"==typeof u&&(a=function(e){return u(e)}):a=function(e,t){return p(e[s],t)},function n(r,i,l,u){var c=r?r[h]:e,s=r?d(l.pos,i):"0",f=r?[].concat((0,o.A)(u),[r]):[];if(r){var p=a(r,s),v={node:r,index:i,pos:s,key:p,parentPos:l.node?l.pos:null,level:l.level+1,nodes:f};t(v)}c&&c.forEach(function(e,t){n(e,t,{node:r,pos:s,level:l?l.level+1:-1},f)})}(null)}(e,function(e){var t=e.node,n=e.index,r=e.pos,o=e.key,i=e.parentPos,l=e.level,u={node:t,nodes:e.nodes,index:n,key:o,pos:r,level:l},c=p(o,r);f[r]=u,h[c]=u,u.parent=f[i],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),a&&a(u,m)},{externalGetKey:s,childrenPropName:u,fieldNames:c}),i&&i(m),m}function y(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,l=t.halfCheckedKeys,u=t.dragOverNodeKey,c=t.dropPosition,f=t.keyEntities,d=(0,s.A)(f,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(d?d.pos:""),dragOver:u===e&&0===c,dragOverGapTop:u===e&&-1===c,dragOverGapBottom:u===e&&1===c}}function b(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,l=e.loading,u=e.halfChecked,s=e.dragOver,f=e.dragOverGapTop,d=e.dragOverGapBottom,p=e.pos,v=e.active,h=e.eventKey,m=(0,a.A)((0,a.A)({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:l,halfChecked:u,dragOver:s,dragOverGapTop:f,dragOverGapBottom:d,pos:p,active:v,key:h});return"props"in m||Object.defineProperty(m,"props",{get:function(){return(0,c.Ay)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}},40778(e,t,n){"use strict";n.d(t,{A:()=>D});var r=n(58168),o=n(23029),a=n(92901),i=n(9417),l=n(85501),u=n(49640),c=n(64467),s=n(96540),f=n(89379),d=n(80045),p=n(82284),v=n(55041),h=n(10467),m=n(60436),g=n(46942),y=n.n(g),b=n(72065),A=n(68210);const w=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),i=t.toLowerCase(),l=[i];return".jpg"!==i&&".jpeg"!==i||(l=[".jpg",".jpeg"]),l.some(function(e){return n.endsWith(e)})}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,A.Ay)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0};function E(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function x(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var r=e.data[t];Array.isArray(r)?r.forEach(function(e){n.append("".concat(t,"[]"),e)}):n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),E(t)):e.onSuccess(E(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(e){null!==r[e]&&t.setRequestHeader(e,r[e])}),t.send(n),{abort:function(){t.abort()}}}(Object.getOwnPropertyDescriptor(w,"name")||{}).writable||Object.defineProperty(w,"name",{value:"default",configurable:!0});var C=function(){var e=(0,h.A)((0,v.A)().mark(function e(t,n){var r,o,a,i,l,u,c,s;return(0,v.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:u=function(){return(u=(0,h.A)((0,v.A)().mark(function e(t){return(0,v.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){t.file(function(r){n(r)?(t.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),e(r)):e(null)})}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return u.apply(this,arguments)},i=function(){return(i=(0,h.A)((0,v.A)().mark(function e(t){var n,r,o,a,i;return(0,v.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.createReader(),r=[];case 2:return e.next=5,new Promise(function(e){n.readEntries(e,function(){return e([])})});case 5:if(o=e.sent,a=o.length){e.next=9;break}return e.abrupt("break",12);case 9:for(i=0;i0||u.some(function(e){return"file"===e.kind}))&&(null==r||r()),!l){t.next=11;break}return t.next=7,k(Array.prototype.slice.call(u),function(t){return w(t,e.props.accept)});case 7:c=t.sent,e.uploadFiles(c),t.next=14;break;case 11:s=(0,m.A)(c).filter(function(e){return w(e,i)}),!1===a&&(s=c.slice(0,1)),e.uploadFiles(s);case 14:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()),(0,c.A)((0,i.A)(e),"onFilePaste",function(){var t=(0,h.A)((0,v.A)().mark(function t(n){var r;return(0,v.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.props.pastable){t.next=3;break}return t.abrupt("return");case 3:if("paste"!==n.type){t.next=6;break}return r=n.clipboardData,t.abrupt("return",e.onDataTransferFiles(r,function(){n.preventDefault()}));case 6:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),(0,c.A)((0,i.A)(e),"onFileDragOver",function(e){e.preventDefault()}),(0,c.A)((0,i.A)(e),"onFileDrop",function(){var t=(0,h.A)((0,v.A)().mark(function t(n){var r;return(0,v.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),"drop"!==n.type){t.next=4;break}return r=n.dataTransfer,t.abrupt("return",e.onDataTransferFiles(r));case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),(0,c.A)((0,i.A)(e),"uploadFiles",function(t){var n=(0,m.A)(t),r=n.map(function(t){return t.uid=_(),e.processFile(t,n)});Promise.all(r).then(function(t){var n=e.props.onBatchStart;null==n||n(t.map(function(e){return{file:e.origin,parsedFile:e.parsedFile}})),t.filter(function(e){return null!==e.parsedFile}).forEach(function(t){e.post(t)})})}),(0,c.A)((0,i.A)(e),"processFile",function(){var t=(0,h.A)((0,v.A)().mark(function t(n,r){var o,a,i,l,u,c,s,f,d;return(0,v.A)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.props.beforeUpload,a=n,!o){t.next=14;break}return t.prev=3,t.next=6,o(n,r);case 6:a=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),a=!1;case 12:if(!1!==a){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(i=e.props.action)){t.next=21;break}return t.next=18,i(n);case 18:l=t.sent,t.next=22;break;case 21:l=i;case 22:if("function"!=typeof(u=e.props.data)){t.next=29;break}return t.next=26,u(n);case 26:c=t.sent,t.next=30;break;case 29:c=u;case 30:return s="object"!==(0,p.A)(a)&&"string"!=typeof a||!a?n:a,f=s instanceof File?s:new File([s],n.name,{type:n.type}),(d=f).uid=n.uid,t.abrupt("return",{origin:n,data:c,parsedFile:d,action:l});case 35:case"end":return t.stop()}},t,null,[[3,9]])}));return function(e,n){return t.apply(this,arguments)}}()),(0,c.A)((0,i.A)(e),"saveFileInput",function(t){e.fileInput=t}),e}return(0,a.A)(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.props.pastable&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(e){var t=this.props.pastable;t&&!e.pastable?document.addEventListener("paste",this.onFilePaste):!t&&e.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(e){var t=this,n=e.data,r=e.origin,o=e.action,a=e.parsedFile;if(this._isMounted){var i=this.props,l=i.onStart,u=i.customRequest,c=i.name,s=i.headers,f=i.withCredentials,d=i.method,p=r.uid,v=u||x,h={action:o,filename:c,data:n,file:a,headers:s,withCredentials:f,method:d||"post",onProgress:function(e){var n=t.props.onProgress;null==n||n(e,a)},onSuccess:function(e,n){var r=t.props.onSuccess;null==r||r(e,a,n),delete t.reqs[p]},onError:function(e,n){var r=t.props.onError;null==r||r(e,n,a),delete t.reqs[p]}};l(r),this.reqs[p]=v(h,{defaultRequest:x})}}},{key:"reset",value:function(){this.setState({uid:_()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}},{key:"render",value:function(){var e=this.props,t=e.component,n=e.prefixCls,o=e.className,a=e.classNames,i=void 0===a?{}:a,l=e.disabled,u=e.id,p=e.name,v=e.style,h=e.styles,m=void 0===h?{}:h,g=e.multiple,A=e.accept,w=e.capture,E=e.children,x=e.directory,C=e.folder,k=e.openFileDialogOnClick,S=e.onMouseEnter,N=e.onMouseLeave,_=e.hasControlInside,M=(0,d.A)(e,R),P=y()((0,c.A)((0,c.A)((0,c.A)({},n,!0),"".concat(n,"-disabled"),l),o,o)),O=x||C?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},T=l?{}:{onClick:k?this.onClick:function(){},onKeyDown:k?this.onKeyDown:function(){},onMouseEnter:S,onMouseLeave:N,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:_?void 0:"0"};return s.createElement(t,(0,r.A)({},T,{className:P,role:_?void 0:"button",style:v}),s.createElement("input",(0,r.A)({},(0,b.A)(M,{aria:!0,data:!0}),{id:u,name:p,disabled:l,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:(0,f.A)({display:"none"},m.input),className:i.input,accept:A},O,{multiple:g,onChange:this.onChange},null!=w?{capture:w}:{})),E)}}]),n}(s.Component);const P=M;function O(){}var T=function(e){(0,l.A)(n,e);var t=(0,u.A)(n);function n(){var e;(0,o.A)(this,n);for(var r=arguments.length,a=new Array(r),l=0;la});var r=n(76288),o=n(96540);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return o.Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(a(e)):(0,r.A)(e)&&e.props?n=n.concat(a(e.props.children,t)):n.push(e))}),n}},69916(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(40961);function o(e,t,n,o){var a=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,a,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,a,o)}}}},20998(e,t,n){"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},54808(e,t,n){"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},85089(e,t,n){"use strict";n.d(t,{BD:()=>h,m6:()=>v});var r=n(89379),o=n(20998),a=n(54808),i="data-rc-order",l="data-rc-priority",u=new Map;function c(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function s(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function f(e){return Array.from((u.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.A)())return null;var n=t.csp,r=t.prepend,a=t.priority,u=void 0===a?0:a,c=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),d="prependQueue"===c,p=document.createElement("style");p.setAttribute(i,c),d&&u&&p.setAttribute(l,"".concat(u)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var v=s(t),h=v.firstChild;if(r){if(d){var m=(t.styles||f(v)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(i)))return!1;var t=Number(e.getAttribute(l)||0);return u>=t});if(m.length)return v.insertBefore(p,m[m.length-1].nextSibling),p}v.insertBefore(p,h)}else v.appendChild(p);return p}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=s(t);return(t.styles||f(n)).find(function(n){return n.getAttribute(c(t))===e})}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=p(e,t);n&&s(t).removeChild(n)}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=s(n),i=f(o),l=(0,r.A)((0,r.A)({},n),{},{styles:i});!function(e,t){var n=u.get(e);if(!n||!(0,a.A)(document,n)){var r=d("",t),o=r.parentNode;u.set(e,o),e.removeChild(r)}}(o,l);var v=p(t,l);if(v){var h,m,g;if(null!==(h=l.csp)&&void 0!==h&&h.nonce&&v.nonce!==(null===(m=l.csp)||void 0===m?void 0:m.nonce))v.nonce=null===(g=l.csp)||void 0===g?void 0:g.nonce;return v.innerHTML!==e&&(v.innerHTML=e),v}var y=d(e,l);return y.setAttribute(c(l),t),y}},66588(e,t,n){"use strict";n.d(t,{Ay:()=>u,fk:()=>i,rb:()=>l});var r=n(82284),o=n(96540),a=n(40961);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function l(e){return e&&"object"===(0,r.A)(e)&&i(e.nativeElement)?e.nativeElement:i(e)?e:null}function u(e){var t,n=l(e);return n||(e instanceof o.Component?null===(t=a.findDOMNode)||void 0===t?void 0:t.call(a,e):null)}},42467(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1};(Object.getOwnPropertyDescriptor(r,"name")||{}).writable||Object.defineProperty(r,"name",{value:"default",configurable:!0})},72633(e,t,n){"use strict";function r(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return function(e){return r(e)instanceof ShadowRoot}(e)?r(e):null}n.d(t,{j:()=>o})},99777(e,t,n){"use strict";n.d(t,{F:()=>a});var r=n(20998),o=function(e){if((0,r.A)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1};function a(e,t){return Array.isArray(e)||void 0===t?o(e):function(e,t){if(!o(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}},16928(e,t,n){"use strict";n.d(t,{A:()=>o});var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const o=r},76288(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(82284),o=Symbol.for("react.element"),a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(e){return e&&"object"===(0,r.A)(e)&&(e.$$typeof===o||e.$$typeof===a)&&e.type===i}},14832(e,t,n){"use strict";var r;n.d(t,{X:()=>m,v:()=>A});var o,a=n(55041),i=n(10467),l=n(82284),u=n(89379),c=n(40961),s=(0,u.A)({},r||(r=n.t(c,2))),f=s.version,d=s.render,p=s.unmountComponentAtNode;try{Number((f||"").split(".")[0])>=18&&(o=s.createRoot)}catch(e){}function v(e){var t=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,l.A)(t)&&(t.usingClientEntryPoint=e)}var h="__rc_react_root__";function m(e,t){o?function(e,t){v(!0);var n=t[h]||o(t);v(!1),n.render(e),t[h]=n}(e,t):function(e,t){null==d||d(e,t)}(e,t)}function g(e){return y.apply(this,arguments)}function y(){return(y=(0,i.A)((0,a.A)().mark(function e(t){return(0,a.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[h])||void 0===e||e.unmount(),delete t[h]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function b(e){p(e)}function A(e){return w.apply(this,arguments)}function w(){return(w=(0,i.A)((0,a.A)().mark(function e(t){return(0,a.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===o){e.next=2;break}return e.abrupt("return",g(t));case 2:b(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}},82987(e,t,n){"use strict";n.d(t,{A:()=>i,V:()=>l});var r,o=n(85089);function a(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,a,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var l=getComputedStyle(e);i.scrollbarColor=l.scrollbarColor,i.scrollbarWidth=l.scrollbarWidth;var u=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(u.width,10),s=parseInt(u.height,10);try{var f=c?"width: ".concat(u.width,";"):"",d=s?"height: ".concat(u.height,";"):"";(0,o.BD)("\n#".concat(t,"::-webkit-scrollbar {\n").concat(f,"\n").concat(d,"\n}"),t)}catch(e){r=c,a=s}}document.body.appendChild(n);var p=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,v=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),(0,o.m6)(t),{width:p,height:v}}function i(e){return"undefined"==typeof document?0:((e||void 0===r)&&(r=a()),r.width)}function l(e){return"undefined"!=typeof document&&e&&e instanceof Element?a(e):{width:0,height:0}}},26956(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(96540);function o(e){var t=r.useRef();t.current=e;var n=r.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),o=0;oc});var o=n(5544),a=n(89379),i=n(96540);var l=0;var u=(0,a.A)({},r||(r=n.t(i,2))).useId;const c=u?function(e){var t=u();return e||t}:function(e){var t=i.useState("ssr-id"),n=(0,o.A)(t,2),r=n[0],a=n[1];return i.useEffect(function(){var e=l;l+=1,a("rc_unique_".concat(e))},[]),e||r}},30981(e,t,n){"use strict";n.d(t,{A:()=>l,o:()=>i});var r=n(96540),o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect,a=function(e,t){var n=r.useRef(!0);o(function(){return e(n.current)},t),o(function(){return n.current=!1,function(){n.current=!0}},[])},i=function(e,t){a(function(t){if(!t)return e()},t)};const l=a},28104(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(96540);function o(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},12533(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(5544),o=n(26956),a=n(30981),i=n(1233);function l(e){return void 0!==e}function u(e,t){var n=t||{},u=n.defaultValue,c=n.value,s=n.onChange,f=n.postState,d=(0,i.A)(function(){return l(c)?c:l(u)?"function"==typeof u?u():u:"function"==typeof e?e():e}),p=(0,r.A)(d,2),v=p[0],h=p[1],m=void 0!==c?c:v,g=f?f(m):m,y=(0,o.A)(s),b=(0,i.A)([m]),A=(0,r.A)(b,2),w=A[0],E=A[1];return(0,a.o)(function(){var e=w[0];v!==e&&y(v,e)},[w]),(0,a.o)(function(){l(c)||h(c)},[c]),[g,(0,o.A)(function(e,t){h(e,t),E([m],t)})]}},1233(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(5544),o=n(96540);function a(e){var t=o.useRef(!1),n=o.useState(e),a=(0,r.A)(n,2),i=a[0],l=a[1];return o.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[i,function(e,n){n&&t.current||l(e)}]}},81470(e,t,n){"use strict";n.d(t,{Jt:()=>a.A,_q:()=>r.A,hZ:()=>i.A,vz:()=>o.A});var r=n(26956),o=n(12533),a=(n(8719),n(16300)),i=n(20488);n(68210)},43210(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(82284),o=n(68210);const a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=new Set;return function e(t,i){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,u=a.has(t);if((0,o.Ay)(!u,"Warning: There may be circular references"),u)return!1;if(t===i)return!0;if(n&&l>1)return!1;a.add(t);var c=l+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var s=0;sr});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=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(e)||/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(null==e?void 0:e.substr(0,4))};(Object.getOwnPropertyDescriptor(r,"name")||{}).writable||Object.defineProperty(r,"name",{value:"default",configurable:!0})},19853(e,t,n){"use strict";function r(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}n.d(t,{A:()=>r})},72065(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(89379),o="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function a(e,t){return 0===e.indexOf(t)}function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,r.A)({},n);var i={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||a(n,"aria-"))||t.data&&a(n,"data-")||t.attr&&o.includes(n))&&(i[n]=e[n])}),i}},25371(e,t,n){"use strict";n.d(t,{A:()=>c});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var a=0,i=new Map;function l(e){i.delete(e)}var u=function(e){var t=a+=1;return function n(o){if(0===o)l(t),e();else{var a=r(function(){n(o-1)});i.set(t,a)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};u.cancel=function(e){var t=i.get(e);return l(e),o(t)};const c=u},8719(e,t,n){"use strict";n.d(t,{A9:()=>h,H3:()=>v,K4:()=>s,Xf:()=>c,f3:()=>d,xK:()=>f});var r=n(82284),o=n(96540),a=n(66351),i=n(28104),l=n(76288),u=Number(o.version.split(".")[0]),c=function(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)},s=function(){for(var e=arguments.length,t=new Array(e),n=0;n=19)return!0;var r=(0,a.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===a.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===a.ForwardRef)};function p(e){return(0,o.isValidElement)(e)&&!(0,l.A)(e)}var v=function(e){return p(e)&&d(e)},h=function(e){if(e&&p(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null}},16300(e,t,n){"use strict";function r(e,t){for(var n=e,r=0;rr})},20488(e,t,n){"use strict";n.d(t,{A:()=>c,h:()=>d});var r=n(82284),o=n(89379),a=n(60436),i=n(87695),l=n(16300);function u(e,t,n,r){if(!t.length)return n;var l,c=(0,i.A)(t),s=c[0],f=c.slice(1);return l=e||"number"!=typeof s?Array.isArray(e)?(0,a.A)(e):(0,o.A)({},e):[],r&&void 0===n&&1===f.length?delete l[s][f[0]]:l[s]=u(l[s],f,n,r),l}function c(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!(0,l.A)(e,t.slice(0,-1))?e:u(e,t,n,r)}function s(e){return Array.isArray(e)?[]:{}}var f="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function d(){for(var e=arguments.length,t=new Array(e),n=0;na,Ay:()=>s,g9:()=>c});var r={},o=[];function a(e,t){}function i(e,t){}function l(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function u(e,t){l(a,e,t)}function c(e,t){l(i,e,t)}u.preMessage=function(e){o.push(e)},u.resetWarned=function(){r={}},u.noteOnce=c;const s=u},57787(e,t){"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case l:case i:case d:case p:return e;default:switch(e=e&&e.$$typeof){case s:case c:case f:case h:case v:case u:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=f,t.isMemo=function(e){return g(e)===v}},66351(e,t,n){"use strict";e.exports=n(57787)},60551(e,t,n){"use strict";n.d(t,{A:()=>j});var r=n(58168),o=n(82284),a=n(89379),i=n(64467),l=n(5544),u=n(80045),c=n(46942),s=n.n(c),f=n(18462),d=n(81470),p=n(30981),v=n(96540),h=n(40961),m=v.forwardRef(function(e,t){var n=e.height,o=e.offsetY,l=e.offsetX,u=e.children,c=e.prefixCls,d=e.onInnerResize,p=e.innerProps,h=e.rtl,m=e.extra,g={},y={display:"flex",flexDirection:"column"};return void 0!==o&&(g={height:n,position:"relative",overflow:"hidden"},y=(0,a.A)((0,a.A)({},y),{},(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({transform:"translateY(".concat(o,"px)")},h?"marginRight":"marginLeft",-l),"position","absolute"),"left",0),"right",0),"top",0))),v.createElement("div",{style:g},v.createElement(f.A,{onResize:function(e){e.offsetHeight&&d&&d()}},v.createElement("div",(0,r.A)({style:y,className:s()((0,i.A)({},"".concat(c,"-holder-inner"),c)),ref:t},p),u,m)))});m.displayName="Filler";const g=m;function y(e){var t=e.children,n=e.setRef,r=v.useCallback(function(e){n(e)},[]);return v.cloneElement(t,{ref:r})}function b(e,t,n){var r=v.useState(e),o=(0,l.A)(r,2),a=o[0],i=o[1],u=v.useState(null),c=(0,l.A)(u,2),s=c[0],f=c[1];return v.useEffect(function(){var r=function(e,t,n){var r,o,a=e.length,i=t.length;if(0===a&&0===i)return null;a2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&i.current.left||t>0&&i.current.right:t<0&&i.current.top||t>0&&i.current.bottom;return n&&r?(clearTimeout(a.current),o.current=!1):r&&!o.current||(clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)),!o.current&&r}};function x(e,t,n,r,o,a,i){var l=(0,v.useRef)(0),u=(0,v.useRef)(null),c=(0,v.useRef)(null),s=(0,v.useRef)(!1),f=E(t,n,r,o);var d=(0,v.useRef)(null),p=(0,v.useRef)(null);return[function(t){if(e){A.A.cancel(p.current),p.current=(0,A.A)(function(){d.current=null},2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,v=n,h=r;("sx"===d.current||!d.current&&o&&r&&!n)&&(v=r,h=0,d.current="sx");var m=Math.abs(v),g=Math.abs(h);null===d.current&&(d.current=a&&m>g?"x":"y"),"y"===d.current?function(e,t){if(A.A.cancel(u.current),!f(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,c.current=t,w||n.preventDefault(),u.current=(0,A.A)(function(){var e=s.current?10:1;i(l.current*e,!1),l.current=0}))}}(t,h):function(e,t){i(t,!0),w||e.preventDefault()}(t,v)}},function(t){e&&(s.current=t.detail===c.current)}]}(Object.getOwnPropertyDescriptor(E,"name")||{}).writable||Object.defineProperty(E,"name",{value:"default",configurable:!0});var C=n(23029),k=n(92901);const S=function(){function e(){(0,C.A)(this,e),(0,i.A)(this,"maps",void 0),(0,i.A)(this,"id",0),(0,i.A)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,k.A)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function N(e){var t=parseFloat(e);return isNaN(t)?0:t}var _=14/15;function R(e){return Math.floor(Math.pow(e,.5))}function M(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}const P=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,u=e.scrollRange,c=e.onStartMove,f=e.onStopMove,d=e.onScroll,p=e.horizontal,h=e.spinSize,m=e.containerSize,g=e.style,y=e.thumbStyle,b=e.showScrollBar,w=v.useState(!1),E=(0,l.A)(w,2),x=E[0],C=E[1],k=v.useState(null),S=(0,l.A)(k,2),N=S[0],_=S[1],R=v.useState(null),P=(0,l.A)(R,2),O=P[0],T=P[1],D=!r,I=v.useRef(),F=v.useRef(),L=v.useState(b),j=(0,l.A)(L,2),z=j[0],K=j[1],V=v.useRef(),H=function(){!0!==b&&!1!==b&&(clearTimeout(V.current),K(!0),V.current=setTimeout(function(){K(!1)},3e3))},B=u-m||0,U=m-h||0,W=v.useMemo(function(){return 0===o||0===B?0:o/B*U},[o,B,U]),$=v.useRef({top:W,dragging:x,pageY:N,startTop:O});$.current={top:W,dragging:x,pageY:N,startTop:O};var q=function(e){C(!0),_(M(e,p)),T($.current.top),c(),e.stopPropagation(),e.preventDefault()};v.useEffect(function(){var e=function(e){e.preventDefault()},t=I.current,n=F.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",q,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",q)}},[]);var Y=v.useRef();Y.current=B;var X=v.useRef();X.current=U,v.useEffect(function(){if(x){var e,t=function(t){var n=$.current,r=n.dragging,o=n.pageY,a=n.startTop;A.A.cancel(e);var i=I.current.getBoundingClientRect(),l=m/(p?i.width:i.height);if(r){var u=(M(t,p)-o)*l,c=a;!D&&p?c-=u:c+=u;var s=Y.current,f=X.current,v=f?c/f:0,h=Math.ceil(v*s);h=Math.max(h,0),h=Math.min(h,s),e=(0,A.A)(function(){d(h,p)})}},n=function(){C(!1),f()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),A.A.cancel(e)}}},[x]),v.useEffect(function(){return H(),function(){clearTimeout(V.current)}},[o]),v.useImperativeHandle(t,function(){return{delayHidden:H}});var G="".concat(n,"-scrollbar"),Q={position:"absolute",visibility:z?null:"hidden"},J={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return p?(Object.assign(Q,{height:8,left:0,right:0,bottom:0}),Object.assign(J,(0,i.A)({height:"100%",width:h},D?"left":"right",W))):(Object.assign(Q,(0,i.A)({width:8,top:0,bottom:0},D?"right":"left",0)),Object.assign(J,{width:"100%",height:h,top:W})),v.createElement("div",{ref:I,className:s()(G,(0,i.A)((0,i.A)((0,i.A)({},"".concat(G,"-horizontal"),p),"".concat(G,"-vertical"),!p),"".concat(G,"-visible"),z)),style:(0,a.A)((0,a.A)({},Q),g),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:H},v.createElement("div",{ref:F,className:s()("".concat(G,"-thumb"),(0,i.A)({},"".concat(G,"-thumb-moving"),x)),style:(0,a.A)((0,a.A)({},J),y),onMouseDown:q}))});function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var T=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],D=[],I={overflowY:"auto",overflowAnchor:"none"};function F(e,t){var n=e.prefixCls,c=void 0===n?"rc-virtual-list":n,m=e.className,w=e.height,C=e.itemHeight,k=e.fullHeight,F=void 0===k||k,L=e.style,j=e.data,z=e.children,K=e.itemKey,V=e.virtual,H=e.direction,B=e.scrollWidth,U=e.component,W=void 0===U?"div":U,$=e.onScroll,q=e.onVirtualScroll,Y=e.onVisibleChange,X=e.innerProps,G=e.extraRender,Q=e.styles,J=e.showScrollBar,Z=void 0===J?"optional":J,ee=(0,u.A)(e,T),te=v.useCallback(function(e){return"function"==typeof K?K(e):null==e?void 0:e[K]},[K]),ne=function(e,t,n){var r=v.useState(0),o=(0,l.A)(r,2),a=o[0],i=o[1],u=(0,v.useRef)(new Map),c=(0,v.useRef)(new S),s=(0,v.useRef)(0);function f(){s.current+=1}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f();var t=function(){var e=!1;u.current.forEach(function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),a=o.marginTop,i=o.marginBottom,l=r+N(a)+N(i);c.current.get(n)!==l&&(c.current.set(n,l),e=!0)}}),e&&i(function(e){return e+1})};if(e)t();else{s.current+=1;var n=s.current;Promise.resolve().then(function(){n===s.current&&t()})}}return(0,v.useEffect)(function(){return f},[]),[function(r,o){var a=e(r),i=u.current.get(a);o?(u.current.set(a,o),d()):u.current.delete(a),!i!=!o&&(o?null==t||t(r):null==n||n(r))},d,c.current,a]}(te,null,null),re=(0,l.A)(ne,4),oe=re[0],ae=re[1],ie=re[2],le=re[3],ue=!(!1===V||!w||!C),ce=v.useMemo(function(){return Object.values(ie.maps).reduce(function(e,t){return e+t},0)},[ie.id,ie.maps]),se=ue&&j&&(Math.max(C*j.length,ce)>w||!!B),fe="rtl"===H,de=s()(c,(0,i.A)({},"".concat(c,"-rtl"),fe),m),pe=j||D,ve=(0,v.useRef)(),he=(0,v.useRef)(),me=(0,v.useRef)(),ge=(0,v.useState)(0),ye=(0,l.A)(ge,2),be=ye[0],Ae=ye[1],we=(0,v.useState)(0),Ee=(0,l.A)(we,2),xe=Ee[0],Ce=Ee[1],ke=(0,v.useState)(!1),Se=(0,l.A)(ke,2),Ne=Se[0],_e=Se[1],Re=function(){_e(!0)},Me=function(){_e(!1)},Pe={getKey:te};function Oe(e){Ae(function(t){var n=function(e){var t=e;Number.isNaN(Qe.current)||(t=Math.min(t,Qe.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return ve.current.scrollTop=n,n})}var Te=(0,v.useRef)({start:0,end:pe.length}),De=(0,v.useRef)(),Ie=b(pe,te),Fe=(0,l.A)(Ie,1)[0];De.current=Fe;var Le=v.useMemo(function(){if(!ue)return{scrollHeight:void 0,start:0,end:pe.length-1,offset:void 0};var e;if(!se)return{scrollHeight:(null===(e=he.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:pe.length-1,offset:void 0};for(var t,n,r,o=0,a=pe.length,i=0;i=be&&void 0===t&&(t=i,n=o),s>be+w&&void 0===r&&(r=i),o=s}return void 0===t&&(t=0,n=0,r=Math.ceil(w/C)),void 0===r&&(r=pe.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,pe.length-1),offset:n}},[se,ue,be,pe,le,w]),je=Le.scrollHeight,ze=Le.start,Ke=Le.end,Ve=Le.offset;Te.current.start=ze,Te.current.end=Ke,v.useLayoutEffect(function(){var e=ie.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=pe[ze];if(r&&void 0===n)if(te(r)===t){var o=ie.get(t)-C;Oe(function(e){return e+o})}}ie.resetRecord()},[je]);var He=v.useState({width:0,height:w}),Be=(0,l.A)(He,2),Ue=Be[0],We=Be[1],$e=(0,v.useRef)(),qe=(0,v.useRef)(),Ye=v.useMemo(function(){return O(Ue.width,B)},[Ue.width,B]),Xe=v.useMemo(function(){return O(Ue.height,je)},[Ue.height,je]),Ge=je-w,Qe=(0,v.useRef)(Ge);Qe.current=Ge;var Je=be<=0,Ze=be>=Ge,et=xe<=0,tt=xe>=B,nt=E(Je,Ze,et,tt),rt=function(){return{x:fe?-xe:xe,y:be}},ot=(0,v.useRef)(rt()),at=(0,d._q)(function(e){if(q){var t=(0,a.A)((0,a.A)({},rt()),e);ot.current.x===t.x&&ot.current.y===t.y||(q(t),ot.current=t)}});function it(e,t){var n=e;t?((0,h.flushSync)(function(){Ce(n)}),at()):Oe(n)}var lt=function(e){var t=e,n=B?B-Ue.width:0;return t=Math.max(t,0),t=Math.min(t,n)},ut=(0,d._q)(function(e,t){t?((0,h.flushSync)(function(){Ce(function(t){return lt(t+(fe?-e:e))})}),at()):Oe(function(t){return t+e})}),ct=x(ue,Je,Ze,et,tt,!!B,ut),st=(0,l.A)(ct,2),ft=st[0],dt=st[1];!function(e,t,n){var r,o=(0,v.useRef)(!1),a=(0,v.useRef)(0),i=(0,v.useRef)(0),l=(0,v.useRef)(null),u=(0,v.useRef)(null),c=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),l=a.current-t,c=i.current-r,s=Math.abs(l)>Math.abs(c);s?a.current=t:i.current=r;var f=n(s,s?l:c,!1,e);f&&e.preventDefault(),clearInterval(u.current),f&&(u.current=setInterval(function(){s?l*=_:c*=_;var e=Math.floor(s?l:c);(!n(s,e,!0)||Math.abs(e)<=.1)&&clearInterval(u.current)},16))}},s=function(){o.current=!1,r()},f=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,a.current=Math.ceil(e.touches[0].pageX),i.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",c,{passive:!1}),l.current.addEventListener("touchend",s,{passive:!0}))};r=function(){l.current&&(l.current.removeEventListener("touchmove",c),l.current.removeEventListener("touchend",s))},(0,p.A)(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),r(),clearInterval(u.current)}},[e])}(ue,ve,function(e,t,n,r){var o=r;return!nt(e,t,n)&&((!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),ft({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))}),function(e,t,n){v.useEffect(function(){var r=t.current;if(e&&r){var o,a,i=!1,l=function(){A.A.cancel(o)},u=function e(){l(),o=(0,A.A)(function(){n(a),e()})},c=function(){i=!1,l()},s=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,i=!0)}},f=function(e){if(i){var t=M(e,!1),n=r.getBoundingClientRect(),o=n.top,c=n.bottom;t<=o?(a=-R(o-t),u()):t>=c?(a=R(t-c),u()):l()}};return r.addEventListener("mousedown",s),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",c),function(){r.removeEventListener("mousedown",s),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",c),l()}}},[e])}(se,ve,function(e){Oe(function(t){return t+e})}),(0,p.A)(function(){function e(e){var t=Je&&e.detail<0,n=Ze&&e.detail>0;!ue||t||n||e.preventDefault()}var t=ve.current;return t.addEventListener("wheel",ft,{passive:!1}),t.addEventListener("DOMMouseScroll",dt,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",ft),t.removeEventListener("DOMMouseScroll",dt),t.removeEventListener("MozMousePixelScroll",e)}},[ue,Je,Ze]),(0,p.A)(function(){if(B){var e=lt(xe);Ce(e),at({x:e})}},[Ue.width,B]);var pt=function(){var e,t;null===(e=$e.current)||void 0===e||e.delayHidden(),null===(t=qe.current)||void 0===t||t.delayHidden()},vt=function(e,t,n,r,i,u,c,s){var f=v.useRef(),d=v.useState(null),h=(0,l.A)(d,2),m=h[0],g=h[1];return(0,p.A)(function(){if(m&&m.times<10){if(!e.current)return void g(function(e){return(0,a.A)({},e)});u();var o=m.targetAlign,l=m.originAlign,s=m.index,f=m.offset,d=e.current.clientHeight,p=!1,v=o,h=null;if(d){for(var y=o||l,b=0,A=0,w=0,E=Math.min(t.length-1,s),x=0;x<=E;x+=1){var C=i(t[x]);A=b;var k=n.get(C);b=w=A+(void 0===k?r:k)}for(var S="top"===y?f:d-f,N=E;N>=0;N-=1){var _=i(t[N]),R=n.get(_);if(void 0===R){p=!0;break}if((S-=R)<=0)break}switch(y){case"top":h=A-f;break;case"bottom":h=w-d+f;break;default:var M=e.current.scrollTop;AM+d&&(v="bottom")}null!==h&&c(h),h!==m.lastTop&&(p=!0)}p&&g((0,a.A)((0,a.A)({},m),{},{times:m.times+1,targetAlign:v,lastTop:h}))}},[m,e.current]),function(e){if(null!=e){if(A.A.cancel(f.current),"number"==typeof e)c(e);else if(e&&"object"===(0,o.A)(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex(function(t){return i(t)===e.key});var a=e.offset;g({times:0,index:n,offset:void 0===a?0:a,originAlign:r})}}else s()}}(ve,pe,ie,C,te,function(){return ae(!0)},Oe,pt);v.useImperativeHandle(t,function(){return{nativeElement:me.current,getScrollInfo:rt,scrollTo:function(e){var t;(t=e)&&"object"===(0,o.A)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Ce(lt(e.left)),vt(e.top)):vt(e)}}}),(0,p.A)(function(){if(Y){var e=pe.slice(ze,Ke+1);Y(e,pe)}},[ze,Ke,pe]);var ht=function(e,t,n,r){var o=v.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=(0,l.A)(o,2),i=a[0],u=a[1];return function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,l=i.get(o),c=i.get(a);if(void 0===l||void 0===c)for(var s=e.length,f=u.length;fw&&v.createElement(P,{ref:$e,prefixCls:c,scrollOffset:be,scrollRange:je,rtl:fe,onScroll:it,onStartMove:Re,onStopMove:Me,spinSize:Xe,containerSize:Ue.height,style:null==Q?void 0:Q.verticalScrollBar,thumbStyle:null==Q?void 0:Q.verticalScrollBarThumb,showScrollBar:Z}),se&&B>Ue.width&&v.createElement(P,{ref:qe,prefixCls:c,scrollOffset:xe,scrollRange:B,rtl:fe,onScroll:it,onStartMove:Re,onStopMove:Me,spinSize:Ye,containerSize:Ue.width,horizontal:!0,style:null==Q?void 0:Q.horizontalScrollBar,thumbStyle:null==Q?void 0:Q.horizontalScrollBarThumb,showScrollBar:Z}))}var L=v.forwardRef(F);L.displayName="List";const j=L},22551(e,t,n){"use strict";var r=n(96540),o=n(69982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n