You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
392 KiB
79 lines
392 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[6444],{25877:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return I}});var l=r(87462),E=r(67294),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},$=j,T=r(74643),m=function(f,X){return E.createElement(T.Z,(0,l.Z)({},f,{ref:X,icon:$}))},I=E.forwardRef(m)},73148:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return I}});var l=r(87462),E=r(67294),j={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"},$=j,T=r(74643),m=function(f,X){return E.createElement(T.Z,(0,l.Z)({},f,{ref:X,icon:$}))},I=E.forwardRef(m)},56747:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return I}});var l=r(87462),E=r(67294),j={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"},$=j,T=r(74643),m=function(f,X){return E.createElement(T.Z,(0,l.Z)({},f,{ref:X,icon:$}))},I=E.forwardRef(m)},50881:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return I}});var l=r(87462),E=r(67294),j={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"},$=j,T=r(74643),m=function(f,X){return E.createElement(T.Z,(0,l.Z)({},f,{ref:X,icon:$}))},I=E.forwardRef(m)},22751:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return I}});var l=r(87462),E=r(67294),j={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"},$=j,T=r(74643),m=function(f,X){return E.createElement(T.Z,(0,l.Z)({},f,{ref:X,icon:$}))},I=E.forwardRef(m)},34182:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return I}});var l=r(87462),E=r(67294),j={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"},$=j,T=r(74643),m=function(f,X){return E.createElement(T.Z,(0,l.Z)({},f,{ref:X,icon:$}))},I=E.forwardRef(m)},74664:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return I}});var l=r(87462),E=r(67294),j={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"},$=j,T=r(74643),m=function(f,X){return E.createElement(T.Z,(0,l.Z)({},f,{ref:X,icon:$}))},I=E.forwardRef(m)},91034:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return I}});var l=r(87462),E=r(67294),j={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"},$=j,T=r(74643),m=function(f,X){return E.createElement(T.Z,(0,l.Z)({},f,{ref:X,icon:$}))},I=E.forwardRef(m)},6104:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return ae}});var l=r(67294),E=r(2453),j=r(85418),$=r(24577),T=r(67631),m=r.n(T),I=r(52262),oe=r(74855),f=r(51959),X={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"},ie=(c,D,N)=>new Promise((L,x)=>{var d=F=>{try{Z(N.next(F))}catch(te){x(te)}},b=F=>{try{Z(N.throw(F))}catch(te){x(te)}},Z=F=>F.done?L(F.value):Promise.resolve(F.value).then(d,b);Z((N=N.apply(c,D)).next())});function ue(c){if(isNaN(c))return{minutes:"00",seconds:"00"};const D=new Date(c*1e3).toISOString().substr(11,8);return{hour:D.substr(0,2),minutes:D.substr(3,2),seconds:D.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function w(c,D){return c-D}function Y(c){c.sort(w);let D=0;for(let N=0;N<c.length-1;N++){let L=Math.abs(c[N+1]-c[N]);L<21&&(D+=L)}return D}const ne=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var ae=(0,l.forwardRef)(({allow_skip:c,src:D,toLog:N,videoId:L,logWatchHistory:x,courseId:d=null,startTime:b,handlePause:Z=()=>{},handlePlay:F=()=>{},handlePlayEnded:te=()=>{},autoPlay:ye=!1,onPlayEnded:xe=()=>{},isShowWaterMark:k=!0},Be)=>{var Q;const M=((Q=D==null?void 0:D.split("."))==null?void 0:Q.pop())==="flv",O=(0,l.useRef)(),ke=(0,l.useRef)(),Fe=(0,l.useRef)(),Te=(0,l.useRef)(),q=(0,l.useRef)(),ge=(0,l.useRef)(),Le=(0,l.useRef)(),Ce=(0,l.useRef)(),$e=(0,l.useRef)(),Tt=(0,l.useRef)(),ot=(0,l.useRef)(),Mt=(0,l.useRef)(),bt=(0,l.useRef)(),Nt=(0,l.useRef)(),xt=navigator.userAgent.toLowerCase().match(ne),Ct=xt?xt[0]:"pc",Rt=(0,l.useRef)(!1),Pt=(0,I.eY)();let rt=0,fe=0,J=0,o=null,s=!1,_=20,B=1,S=!1,K=!1,U=[];(0,l.useImperativeHandle)(Be,()=>({getLastUpdatedTime:()=>O.current.currentTime,getDuration:()=>O.current.duration})),E.ZP.config({maxCount:1,getContainer:()=>Fe.current});const g=(0,l.useCallback)((ct,ht=!1)=>{let et={point:O.current.currentTime};o?(et.log_id=o,et.watch_duration=Y(U),et.total_duration=fe):(d?(et.video_id=parseInt(L,10),et.course_id=d):et.video_id=L,et.duration=rt,et.device=Ct),ht&&(et.ed="1");function It(){return ie(this,null,function*(){S=!0,o=yield x==null?void 0:x(et),S=!1,ct&&ct()})}It()},[L,d]);(0,l.useEffect)(()=>{O.current&&(Te.current.style.display="none",q.current.style.display="block"),E.ZP.destroy();let ct=null;return $.Z.isSupported&&M&&D&&(D==null?void 0:D.indexOf(".m3u8"))<0?(ct=$.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:D,muted:!1}),O.current&&(ct.attachMediaElement(O.current),ct.load())):O.current.setAttribute("src",D),G(),()=>{ct&&(ct.unload(),ct.pause(),ct.destroy(),ct=null)}},[O,M,D]);function H(){O.current.paused?(Te.current.style.display="none",q.current.style.display="block"):(Te.current.style.display="block",q.current.style.display="none")}function G(){ot.current.style.display="none",bt.current.style.display="none",Mt.current.style.display="none",O.current.muted||O.current.volume===0?ot.current.style.display="block":O.current.volume>0&&O.current.volume<=.5?bt.current.style.display="block":Mt.current.style.display="block"}(0,l.useEffect)(()=>{const ct=document.getElementById("play"),ht=document.querySelectorAll(".playback-icons use");function et(){F(),b&&!Rt.current&&(O.current.currentTime=b),Rt.current=!0,U.push(O.current.currentTime),s||(s=!0,N&&g())}function It(){return ie(this,null,function*(){H(),U.push(O.current.currentTime),N&&g(()=>{o=null,J=0,s=!1,S=!1,K=!1,U=[],fe=0,B=1},!0),xe()})}function Re(){ge.current.value=Math.round(O.current.currentTime),Le.current.value=Math.round(O.current.currentTime)}function Kt(){const yt=ue(Math.round(O.current.currentTime));$e.current.innerText=`${yt.hour>0?yt.hour+":":""}${yt.minutes}:${yt.seconds}`,$e.current.setAttribute("datetime",`${yt.hour>0?" "+yt.hour+" ":""}${yt.minutes}m ${yt.seconds}s`)}function Ft(){var yt,P,de,me,_e,He,Me;const Pe=Math.round((yt=O.current)==null?void 0:yt.duration);(de=(P=ge.current)==null?void 0:P.setAttribute)==null||de.call(P,"max",Pe),(_e=(me=Le.current)==null?void 0:me.setAttribute)==null||_e.call(me,"max",Pe);const Oe=ue(Pe);Ce.current&&(Ce.current.innerText=`${Oe.hour>0?Oe.hour+":":""}${Oe.minutes}:${Oe.seconds}`,(Me=(He=Ce.current).setAttribute)==null||Me.call(He,"datetime",`${Oe.hour>0?" "+Oe.hour+" ":""}${Oe.minutes}m ${Oe.seconds}s`))}function Ot(){try{const yt=Math.round(O.current.duration);ge.current.setAttribute("max",yt),Le.current.setAttribute("max",yt);const P=ue(yt);Ce.current.innerText=`${P.hour>0?P.hour+":":""}${P.minutes}:${P.seconds}`,Ce.current.setAttribute("datetime",`${P.hour>0?" "+P.hour+" ":""}${P.minutes}m ${P.seconds}s`),Re(),Kt();const{width:de,height:me,x:_e,y:He}=ke.current.getBoundingClientRect();if(_e<0||He<0||!de)return;if(!K){let Me=O.current.currentTime,Pe=Me-J;Math.abs(Pe)<10?(fe+=Math.abs(Pe),J=Me,S||fe-B*_>=0&&(B++,U.push(J),N&&g())):(J=Me,N&&g())}}catch(yt){console.log(yt)}}function Bt(){K=!0}function Wt(){O.current.playing&&U.push(O.current.currentTime,J),J=O.current.currentTime,K=!1}function kt(){rt=O.current.duration,rt<=20&&(_=rt/3),O.current.addEventListener("play",et)}function Zt(yt){yt.preventDefault(),(0,f.vp)()?(O.current.style.width="100%",O.current.style.height="100%"):O.current.style.cssText=""}function $t(){Z()}function Ht(yt){if(!c){E.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const P=yt.target.dataset.seek?yt.target.dataset.seek:yt.target.value;O.current.currentTime=P,Le.current.value=P,ge.current.value=P}function mt(yt){const P=Math.round(yt.offsetX/yt.target.clientWidth*parseInt(yt.target.getAttribute("max"),10));ge.current.setAttribute("data-seek",P);const de=ue(P);Tt.current.textContent=`${de.hour>0?de.hour+":":""}${de.minutes}:${de.seconds}`;const me=O.current.getBoundingClientRect();Tt.current.style.left=`${yt.pageX-me.left}px`}function en(yt){switch(yt.code){case"Space":yt.preventDefault(),Ze();break;case"ArrowRight":if(yt.preventDefault(),!c){E.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(O.current.currentTime>=O.current.duration)break;O.current.currentTime=parseInt(O.current.currentTime)+5,Re();break;case"ArrowLeft":if(yt.preventDefault(),!c){E.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(O.current.currentTime===0)break;O.current.currentTime=parseInt(O.current.currentTime)-5,Re();break;case"ArrowUp":yt.preventDefault(),O.current.volume<1&&(O.current.volume=(parseInt(O.current.volume*10)+1)/10);break;case"ArrowDown":yt.preventDefault(),O.current.volume>0&&(O.current.volume=(parseInt(O.current.volume*10)-1)/10);break}}return Fe.current.addEventListener((0,f.gH)(),Zt),O.current.addEventListener("canplay",kt),O.current.addEventListener("ended",It),O.current.addEventListener("seeking",Bt),O.current.addEventListener("seeked",Wt),O.current.addEventListener("loadedmetadata",Ft),ge.current.addEventListener("mousemove",mt),ge.current.addEventListener("input",Ht),O.current.addEventListener("timeupdate",Ot),O.current.addEventListener("pause",$t),O.current.addEventListener("volumechange",G),document.addEventListener("keydown",en),()=>{var yt,P,de,me,_e,He,Me,Pe,Oe,we,ee,e;(yt=O.current)==null||yt.removeEventListener("canplay",kt),(P=O.current)==null||P.removeEventListener("play",et),(de=O.current)==null||de.removeEventListener("ended",It),(me=O.current)==null||me.removeEventListener("seeking",Bt),(_e=O.current)==null||_e.removeEventListener("seeked",Wt),(He=ge.current)==null||He.removeEventListener("mousemove",mt),(Me=ge.current)==null||Me.removeEventListener("input",Ht),(Pe=O.current)==null||Pe.removeEventListener("timeupdate",Ot),(Oe=O.current)==null||Oe.removeEventListener("pause",$t),(we=O.current)==null||we.removeEventListener("loadedmetadata",Ft),(ee=O.current)==null||ee.removeEventListener("volumechange",G),document.removeEventListener("keydown",en),(e=O.current)!=null&&e.playing&&(U.push(J,O.current.currentTime),N&&g())}},[O,D]),(0,l.useEffect)(()=>{if(O.current.onended=()=>{te(O)},O.current.oncontextmenu=()=>!1,(D==null?void 0:D.indexOf(".m3u8"))>-1){if(O.current.canPlayType("application/vnd.apple.mpegurl"))O.current.src=D;else if(m().isSupported()){var ct=new(m());ct.loadSource(D),ct.attachMedia(O.current)}}},[D]);const[le,Ne]=(0,l.useState)(1),Ze=()=>{O.current.paused||O.current.ended?O.current.play():O.current.pause(),H()};function Ye(){O.current.muted=!O.current.muted,O.current.muted?(Nt.current.setAttribute("data-volume",volume.value),Nt.current.value=0):Nt.current.value=Nt.current.dataset.volume}return l.createElement("div",{style:{position:"relative"},ref:Fe},l.createElement("div",{ref:ke,className:`${X.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${X.animate__loop}`},k&&Pt?Pt.login:" "),l.createElement("div",{className:X.container},l.createElement("div",{className:X["video-container"],id:"video-container"},l.createElement("div",{className:X["playback-animation"],id:"playback-animation"},l.createElement("svg",{className:X["playback-icons"]},l.createElement("use",{className:"hidden",href:"#play-icon"}),l.createElement("use",{href:"#pause"}))),l.createElement("video",{className:X.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:O,autoPlay:ye}),l.createElement("div",{className:`${X["video-controls"]} `,id:"video-controls"},l.createElement("div",{className:X["bottom-controls"]},l.createElement("div",{className:X["left-controls"]},l.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Ze},l.createElement("svg",{className:X["playback-icons"]},l.createElement("use",{ref:q,href:"#play-icon"}),l.createElement("use",{ref:Te,style:{display:"none"},href:"#pause"}))),l.createElement("div",{className:X.time},l.createElement("time",{id:"time-elapsed",ref:$e},"00:00"),l.createElement("span",null," / "),l.createElement("time",{id:"duration",ref:Ce},"00:00"))),l.createElement("div",{className:X["right-controls"]},c&&l.createElement(j.Z,{placement:"top",overlayClassName:X.rateOverlay,getPopupContainer:ct=>ct.parentNode,menu:{items:[{key:"1",label:l.createElement("span",{onClick:()=>{Ne(1),O.current.playbackRate=1}},"1.0x")},{key:"2",label:l.createElement("span",{onClick:()=>{Ne(1.5),O.current.playbackRate=1.5}},"1.5x")},{key:"3",label:l.createElement("span",{onClick:()=>{Ne(2),O.current.playbackRate=2}},"2.0x")}]}},l.createElement("div",{className:`${X.controlText} mr5`},"\u500D\u901F")),l.createElement(oe.CopyToClipboard,{text:D,onCopy:()=>E.ZP.success("\u590D\u5236\u6210\u529F")},l.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},l.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),l.createElement("div",{className:X["volume-controls"]},l.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:X["volume-button"],id:"volume-button",onClick:Ye},l.createElement("i",{ref:ot,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),l.createElement("i",{ref:bt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),l.createElement("i",{ref:Mt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),l.createElement("input",{className:X.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Nt,style:{display:"none"},onClick:G})),l.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:X["fullscreen-button"],onClick:()=>{(0,f.vp)()?(0,f.BU)():(0,f.Dj)(Fe.current)}},l.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),l.createElement("div",{className:X["video-progress"]},l.createElement("progress",{ref:Le,value:"0",min:"0"}),l.createElement("input",{className:X.seek,ref:ge,value:"0",min:"0",type:"range",step:"1"}),l.createElement("div",{className:X["seek-tooltip"],ref:Tt,id:"seek-tooltip"},"00:00"))))),l.createElement("svg",{style:{display:"none"}},l.createElement("defs",null,l.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},l.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),l.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},l.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),l.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},l.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),l.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},l.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),l.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},l.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),l.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},l.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),l.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},l.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),l.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},l.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},99914:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return E}});var l=r(67294);function E(j,$){const T=(0,l.useRef)();(0,l.useEffect)(()=>{T.current=j}),(0,l.useEffect)(()=>{function m(){T.current()}if($!==null){let I=setInterval(m,$);return()=>clearInterval(I)}},[$])}},28805:function(_t,Ae,r){"use strict";r.r(Ae),r.d(Ae,{default:function(){return g},formatQuery:function(){return K}});var l=r(67294),E=r(35973),j=r(57953),$={bg:"bg___eq_Aq",container:"container___j770l",widthle:"widthle___ouh1T"},T=r(19575),m=r(6104),I=r(14446),oe=r(12604),f=r(47897),X=r(32983),ie={contentWrap:"contentWrap___xMJQi",title:"title___z4t4P",footer:"footer___CLzrT",footer_left:"footer_left___N2sZZ",footer_bfcs:"footer_bfcs___UmvUE",footer_bfcs_value:"footer_bfcs_value___yiYga",pingfen:"pingfen___aEEMe",fenshu:"fenshu___I6HCo",radioGroup:"radioGroup___RT1dL",wrap:"wrap___QZGSJ",introName:"introName___m17tA",rating:"rating___MXLBr",modalRating:"modalRating___aluwj",zdbf:"zdbf___9PNEF"},ue=r(99914),w=r(56188),Y=r(28706),ne=r(67294),ae=Object.defineProperty,c=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,L=(H,G,le)=>G in H?ae(H,G,{enumerable:!0,configurable:!0,writable:!0,value:le}):H[G]=le,x=(H,G)=>{for(var le in G||(G={}))D.call(G,le)&&L(H,le,G[le]);if(c)for(var le of c(G))N.call(G,le)&&L(H,le,G[le]);return H},d=(H,G)=>{var le={};for(var Ne in H)D.call(H,Ne)&&G.indexOf(Ne)<0&&(le[Ne]=H[Ne]);if(H!=null&&c)for(var Ne of c(H))G.indexOf(Ne)<0&&N.call(H,Ne)&&(le[Ne]=H[Ne]);return le},b=(H,G,le)=>new Promise((Ne,Ze)=>{var Ye=et=>{try{ht(le.next(et))}catch(It){Ze(It)}},ct=et=>{try{ht(le.throw(et))}catch(It){Ze(It)}},ht=et=>et.done?Ne(et.value):Promise.resolve(et.value).then(Ye,ct);ht((le=le.apply(H,G)).next())});const Z=H=>{var G=H,{videoDetail:le,globalSetting:Ne,loading:Ze,dispatch:Ye}=G,ct=d(G,["videoDetail","globalSetting","loading","dispatch"]);const{queryParams:ht,selectParams:et,videoList:It}=le,{subject_id:Re,videoId:Kt}=ht,{checkBoxValue:Ft,radioValue:Ot}=et,Bt={videoId:Kt},Wt={query:ht},kt=(0,l.useRef)(),Zt=(0,l.useRef)(),$t=(0,l.useRef)(),Ht=(0,l.useRef)(5),{video_item:mt}=le.detail||{};(0,ue.Z)(()=>b(void 0,null,function*(){Zt.current&&(console.log("videoRef lastUpdatedTime: ",kt.current.getLastUpdatedTime()),console.log(kt.current),yield en())}),Ht.current*1e3);const en=(Pe=!1)=>{const Oe=Pe?{is_f:1}:{};return(0,w.DH)(x(x({},Oe),{id:Bt.videoId,point:kt.current.getLastUpdatedTime(),total:kt.current.getDuration()}))},yt=Pe=>(Pe.ed==="1"&&(Zt.current=!1,en(!0)),!Zt.current&&!Pe.ed&&(Zt.current=!0,Ht.current=kt.current.getDuration()<=5?1:5,en()),Ye({type:"userDetail/logWatchHistory",payload:Pe})),P=()=>{Zt.current=!1},de=()=>{Zt.current=!0},me=()=>{$t.current=5,I.default.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:ne.createElement("div",{className:"tc font14"},ne.createElement(oe.Z,{defaultValue:$t.current,onChange:Pe=>$t.current=Pe,className:ie.modalRating})),onOk:()=>b(void 0,null,function*(){if((yield(0,w.jK)({id:Bt.videoId,star:$t.current})).status===0){const{course_id:Oe}=(0,Y.oP)();Ye({type:"videoDetail/getVideoDetail",payload:{id:Bt.videoId,videoId:Bt.videoId,course_id:Oe,subject_id:Re}})}})})},_e=Pe=>{const Oe=window.filterVideoSign,we=Oe.findIndex(a=>a.id===Kt);if(we===Oe.length-1)return;const e=Oe[we+1].id,t=Oe[we+1].can_view,n=Oe[we+1].link,i=Oe[we+1].is_public;if(window.checkBoxValue){if(n){window.open(n);return}if(!t){I.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:ne.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}if(!i){I.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:ne.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}Ye({type:"videoDetail/handleListItemClick",payload:{videoId:e}}),window.videoTimer=setTimeout(()=>{Pe.current.play()},2e3)}},He=(Pe,Oe)=>{if(Pe==="checkBox"){const we=Oe;window.checkBoxValue=we,Ye({type:"videoDetail/setSelectValue",payload:{radioValue:Ot,checkBoxValue:we}});return}Ye({type:"videoDetail/setSelectValue",payload:{checkBoxValue:Ft,radioValue:Oe.target.value}})},Me=()=>It.findIndex(we=>we.id===Kt)===It.length-1?ne.createElement("div",null,"\u5F53\u524D\u5DF2\u662F\u6700\u540E\u4E00\u4E2A\u89C6\u9891"):ne.createElement("div",null,ne.createElement(f.Z,{onChange:we=>{He("checkBox",we)},defaultChecked:Ft,size:"small"}),ne.createElement("span",{className:ie.zdbf},"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891"));return ne.createElement("aside",{className:ie.contentWrap},ne.createElement("aside",{className:ie.wrap},ne.createElement("header",null),ne.createElement("div",{className:ie.title},mt==null?void 0:mt.name),!(mt!=null&&mt.can_edit)&&!(mt!=null&&mt.is_public)?ne.createElement(X.Z,{description:"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85"}):ne.createElement(m.Z,{ref:kt,startTime:mt==null?void 0:mt.last_point,src:mt!=null&&mt.is_link?mt==null?void 0:mt.link:(mt==null?void 0:mt.play_url)&&T.Base64.decode(mt==null?void 0:mt.play_url),videoId:mt==null?void 0:mt.video_id,logWatchHistory:yt,handlePause:P,handlePlay:de,allow_skip:mt==null?void 0:mt.allow_skip,handlePlayEnded:_e,toLog:()=>{}}),ne.createElement("div",{className:ie.footer},ne.createElement("div",{className:ie.footer_left},ne.createElement("div",{className:ie.pingfen},"\u8BC4\u5206"),ne.createElement(oe.Z,{value:mt==null?void 0:mt.star,disabled:!0,className:ie.rating,style:{color:"#FFA100",fontSize:12,marginLeft:10}}),ne.createElement("div",{className:ie.fenshu},(mt==null?void 0:mt.star)||0,"\u5206")),!(mt!=null&&mt.can_edit)&&!(mt!=null&&mt.is_public)?null:ne.createElement("div",null,ne.createElement("div",{className:ie.checkBox},Me()))),ne.createElement("div",{className:"mt10"},(mt==null?void 0:mt.description)&&ne.createElement("span",{className:ie.introName},"\u7B80\u4ECB\uFF1A",mt.description))))};var F=(0,E.connect)(({videoDetail:H,loading:G,globalSetting:le})=>({videoDetail:H,globalSetting:le,loading:G}))(Z),te=r(2453),ye=r(79870),xe={flex_box_center:"flex_box_center___yWqSL",flex_space_between:"flex_space_between___LgFmv",flex_box_vertical_center:"flex_box_vertical_center____lt6U",flex_box_center_end:"flex_box_center_end___UqkaD",flex_box_column:"flex_box_column___V8XLF",list:"list___8tjfT",tree_style:"tree_style___ZzDvO",title:"title___IVfkQ",gray:"gray___RnyYk",brght:"brght___EWRNa",s1:"s1___dPBQg",s3:"s3___SRBBG",active:"active___hsNCX",tree_line:"tree_line___EGn30",tabs_style:"tabs_style___Nwkiq",tabs_item:"tabs_item___Vzu_U",tabs_item_active:"tabs_item_active___BcIwZ"},k=r(15835),Be=r(93686),Q=r(11320),ce=r(67294),M=Object.defineProperty,O=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ge=(H,G,le)=>G in H?M(H,G,{enumerable:!0,configurable:!0,writable:!0,value:le}):H[G]=le,Le=(H,G)=>{for(var le in G||(G={}))Te.call(G,le)&&ge(H,le,G[le]);if(Fe)for(var le of Fe(G))q.call(G,le)&&ge(H,le,G[le]);return H},Ce=(H,G)=>O(H,ke(G)),$e=(H,G)=>{var le={};for(var Ne in H)Te.call(H,Ne)&&G.indexOf(Ne)<0&&(le[Ne]=H[Ne]);if(H!=null&&Fe)for(var Ne of Fe(H))G.indexOf(Ne)<0&&q.call(H,Ne)&&(le[Ne]=H[Ne]);return le},Tt=(H,G,le)=>new Promise((Ne,Ze)=>{var Ye=et=>{try{ht(le.next(et))}catch(It){Ze(It)}},ct=et=>{try{ht(le.throw(et))}catch(It){Ze(It)}},ht=et=>et.done?Ne(et.value):Promise.resolve(et.value).then(Ye,ct);ht((le=le.apply(H,G)).next())});const ot=[{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",icon:ce.createElement("i",{className:"iconfont icon-shixun2 font20"}),bq:ce.createElement("span",{style:{border:"1px solid #FF9D18",color:"#FF9D18"},className:xe.s1},"\u5B9E\u8BAD")},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",icon:ce.createElement("i",{className:"iconfont icon-shipin font20"}),bq:ce.createElement("span",{style:{border:"1px solid #9B18FF",color:"#9B18FF"},className:xe.s1},"\u89C6\u9891")},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",icon:ce.createElement("i",{className:"iconfont icon-jiaoxueanli font20"}),bq:ce.createElement("span",{style:{border:"1px solid #3061D0",color:"#3061D0"},className:xe.s1},"\u8D44\u6599")},{name:"\u7A7A\u76EE\u5F55",type:"StageCatalog",icon:ce.createElement("i",{className:"iconfont icon-kongbai font20"}),bq:ce.createElement("span",null)}],Mt=H=>{var G=H,{dispatch:le,pathsDetail:Ne,videoDetail:Ze,user:Ye}=G,ct=$e(G,["dispatch","pathsDetail","videoDetail","user"]);const{queryParams:ht,stages:et,cust_seq:It,active:Re}=Ze,{subject_id:Kt,course_id:Ft}=ht,Ot=(0,E.useParams)(),[Bt]=(0,E.useSearchParams)(),[Wt,kt]=(0,l.useState)([]),[Zt,$t]=(0,l.useState)([(Re==null?void 0:Re.id)||Number(Ot.videoId)]),[Ht,mt]=(0,l.useState)("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"),en=[".PDF",".DOC",".DOCX",".XLS",".XLSX",".PPT",".PPTX"];(0,l.useEffect)(()=>{le(Kt?{type:"videoDetail/getStageData",payload:{subject_id:Kt,page_type:"video"}}:{type:"videoDetail/getCourseStageData",payload:{coursesId:Ft}})},[]),(0,l.useEffect)(()=>{yt()},[Ze==null?void 0:Ze.stages]);const yt=()=>{let we=Wt;et.forEach((ee,e)=>{we.push({title:ce.createElement("div",{title:ee.stage_name,className:xe.title},ee.stage_name),value:ee==null?void 0:ee.stage_id,key:ee==null?void 0:ee.stage_id,icon:ce.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:P(ee.items||[])})}),kt(we)},P=we=>{function ee(e){var t;const n=e.children,i=Array.isArray(n)&&n.length>0,a=e==null?void 0:e.id,{name:v,item_type:A,id:pe}=e,se=(t=ot.find(gt=>gt.type===A))==null?void 0:t.bq,Ke=xe.brght,Qe=Re.id===pe?`${Ke} ${xe.active}`:Ke;return{title:ce.createElement("div",{onClick:()=>He(e),className:Ke,title:v},se,ce.createElement("div",{className:xe.s3},v)),value:a,key:a,icon:ce.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:i?n==null?void 0:n.map(gt=>ee(gt)):[]}}return we==null?void 0:we.map(e=>ee(e))},de=(we,ee)=>Tt(void 0,null,function*(){le({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u7A0D\u540E..."}});const e=ee?yield(0,Be.BK)({id:we}):yield(0,Be.Ir)({id:we});if(le({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),e!=null&&e.game_identifier||e!=null&&e.identifier){(0,Y.xg)(ee?`/tasks/${e==null?void 0:e.identifier}/jupyter`:`/tasks/${e.game_identifier}`);return}(e==null?void 0:e.status)===2?_e(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&me(e==null?void 0:e.message)}),me=we=>{I.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ce.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",we,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},_e=we=>{we=we!=null&&we.includes(".json")?we:`${we}.json`,I.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ce.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>Tt(void 0,null,function*(){const ee=yield(0,k.L8)({url:we});if(!ee)return;te.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const e=yield(0,Be.Ir)({id:ee.shixun_identifier});if(e!=null&&e.game_identifier){(0,Y.xg)(`/tasks/${e.game_identifier}`);return}(e==null?void 0:e.status)===2?_e(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&me(e==null?void 0:e.message)})})},He=we=>{var ee,e,t,n,i;if((we==null?void 0:we.item_type)==="StageCatalog")return;clearTimeout(window.videoTimer);const{id:a,item_type:v,identifier:A,is_jupyter:pe,url:se,link:Ke}=we;if(v==="VideoItem"&&!Ke){if(!((ee=Ye.userInfo)!=null&&ee.admin)&&!((e=Ye.userInfo)!=null&&e.business)&&!we.can_view){I.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:ce.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}le({type:"videoDetail/handleListItemClick",payload:{videoId:a}}),le({type:"videoDetail/getVideoDetail",payload:Ce(Le({id:a},ht),{videoId:a}),callback:Qe=>{if(Qe&&Qe.video_item&&!Qe.video_item.can_edit&&!we.is_public){I.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:ce.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}}});return}if(v==="VideoItem"&&Ke){we.link&&(0,w.DH)({is_f:1,id:we.id,point:0,total:0}),window.open(Ke);return}if(v==="Shixun"){de(A,pe);return}if(v==="Attachment"){if(Ke){(0,Y.xg)(Ke);return}let Qe=(n=we==null?void 0:we.name)==null?void 0:n.substr((t=we==null?void 0:we.name)==null?void 0:t.lastIndexOf("."));if(en.includes(Qe.toUpperCase())){le({type:"videoDetail/handleListItemClick",payload:{attachmentId:a}});return}else{if(!((i=Ne.detail)!=null&&i.allow_download)){te.ZP.info("\u6559\u5B66\u8BFE\u4EF6\u4E0D\u652F\u6301\u4E0B\u8F7D");return}(0,Y.FH)(we.name,Q.Z.API_SERVER+we.url);return}}window.open(Q.Z.IMG_SERVER+se)},Me=we=>{let ee=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],e=["","\u5341","\u767E","\u5343","\u4E07"];we=parseInt(we);let t=a=>{let v=a.toString().split("").reverse(),A="";for(var pe=0;pe<v.length;pe++)A=(pe==0&&v[pe]==0||pe>0&&v[pe]==0&&v[pe-1]==0?"":ee[v[pe]]+(v[pe]==0?e[0]:e[pe]))+A;return A},n=Math.floor(we/1e4),i=we%1e4;return i.toString().length<4&&(i="0"+i),n?t(n)+"\u4E07"+t(i):t(we)},Pe=(we,ee,e,t)=>{var n;const{name:i,item_type:a,id:v}=we,A=`${ee+1}-${e+1}-${t+1}`,pe=(n=ot.find(Qe=>Qe.type===a))==null?void 0:n.icon,se=xe.brght,Ke=Re.id===v?`${se} ${xe.active}`:se;return ce.createElement("div",{key:A,onClick:()=>He(we),className:Ke,style:{paddingLeft:52}},ce.createElement("span",{className:xe.s1},pe),!!It&&ce.createElement("span",{className:xe.s2},A),ce.createElement("span",{className:xe.s3},"\u203B ",i))},Oe=(we,ee,e)=>{var t;const{name:n,item_type:i,id:a,children:v}=we,A=`${ee+1}-${e+1}`,pe=(t=ot.find(Qe=>Qe.type===i))==null?void 0:t.icon,se=xe.brght,Ke=Re.id===a?`${se} ${xe.active}`:se;return ce.createElement(l.Fragment,{key:A},ce.createElement("div",{onClick:()=>He(we),className:Ke},ce.createElement("span",{className:xe.s1},pe),!!It&&ce.createElement("span",{className:xe.s2},A),ce.createElement("span",{className:xe.s3},"\u203B ",n)),!!v.length&&v.map((Qe,gt)=>Pe(Qe,ee,e,gt)))};return ce.createElement("aside",{className:xe.list},ce.createElement("div",{className:xe.tabs_style},ce.createElement("div",{className:xe.tabs_item,onClick:()=>{mt("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55")}},"\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55",Ht=="\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"&&ce.createElement("div",{className:xe.tabs_item_active}))),ce.createElement("div",{className:xe.tree_style},(Wt==null?void 0:Wt.length)>0&&ce.createElement(ye.default,{selectedKeys:Zt,onSelect:(we,ee)=>{$t([...we])},blockNode:!0,treeData:Wt,defaultExpandAll:!0,className:xe.tree_line})))};var bt=(0,E.connect)(({user:H,videoDetail:G,loading:le,globalSetting:Ne,pathsDetail:Ze})=>({user:H,videoDetail:G,globalSetting:Ne,loading:le,pathsDetail:Ze}))(Mt),Nt=r(91613),xt=r(67294),Ct=Object.defineProperty,Rt=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,o=(H,G,le)=>G in H?Ct(H,G,{enumerable:!0,configurable:!0,writable:!0,value:le}):H[G]=le,s=(H,G)=>{for(var le in G||(G={}))fe.call(G,le)&&o(H,le,G[le]);if(rt)for(var le of rt(G))J.call(G,le)&&o(H,le,G[le]);return H},_=(H,G)=>Rt(H,Pt(G)),B=(H,G)=>{var le={};for(var Ne in H)fe.call(H,Ne)&&G.indexOf(Ne)<0&&(le[Ne]=H[Ne]);if(H!=null&&rt)for(var Ne of rt(H))G.indexOf(Ne)<0&&J.call(H,Ne)&&(le[Ne]=H[Ne]);return le},S=(H,G,le)=>new Promise((Ne,Ze)=>{var Ye=et=>{try{ht(le.next(et))}catch(It){Ze(It)}},ct=et=>{try{ht(le.throw(et))}catch(It){Ze(It)}},ht=et=>et.done?Ne(et.value):Promise.resolve(et.value).then(Ye,ct);ht((le=le.apply(H,G)).next())});const K=H=>{const{subject_id:G}=H;return{subject_id:G,course_id:G}},U=H=>{var G=H,{videoDetail:le,globalSetting:Ne,loading:Ze,pathsDetail:Ye,dispatch:ct}=G,ht=B(G,["videoDetail","globalSetting","loading","pathsDetail","dispatch"]),et,It;const{queryParams:Re,videoList:Kt,attachmentList:Ft,active:Ot}=le,{subject_id:Bt,videoId:Wt}=Re,kt={videoId:Wt};(0,l.useEffect)(()=>{if(Ot){const{item_type:Ht,id:mt}=Ot;Ht==="VideoItem"&&ct({type:"videoDetail/getVideoDetail",payload:_(s({},Re),{id:mt})})}},[Ot.id]),console.log("---",Ot),(0,l.useEffect)(()=>{Bt&&Zt()},[]);function Zt(){return S(this,null,function*(){const Ht=yield ct({type:"pathsDetail/getPathsDetail",payload:{id:Bt}})})}(0,l.useEffect)(()=>{var Ht,mt;(0,Y.Dk)((mt=(Ht=le.detail)==null?void 0:Ht.video_item)==null?void 0:mt.name)},[le]);let $t={width:1200};return Ot&&Ot.item_type==="Attachment"&&Ot.content_type==="application/pdf"&&($t={width:1250,marginLeft:(document.body.clientWidth-1200)/2}),xt.createElement(j.Z,{spinning:!1},xt.createElement("section",{className:$.bg},xt.createElement("div",{className:$.container,style:$t},xt.createElement(bt,null),Ot&&Ot.item_type==="VideoItem"&&xt.createElement(F,null),Ot&&Ot.item_type==="Attachment"&&Ot.content_type==="application/pdf"&&Ot.url&&xt.createElement("div",{className:$.widthle},xt.createElement(Nt.Z,{disabledDownload:!((et=Ye.detail)!=null&&et.allow_download),type:"pdf",filename:Ot.name,data:Q.Z.API_SERVER+Ot.url,style:{position:"absolute",zIndex:1}})),Ot&&Ot.item_type==="Attachment"&&["application/msword","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(Ot.content_type)&&Ot.url&&xt.createElement("div",{className:$.widthle},xt.createElement(Nt.Z,{disabledDownload:!((It=Ye.detail)!=null&&It.allow_download),type:"office",data:Q.Z.API_SERVER+Ot.url,style:{position:"absolute",zIndex:1}})))))};var g=(0,E.connect)(({videoDetail:H,loading:G,globalSetting:le,pathsDetail:Ne})=>({videoDetail:H,globalSetting:le,loading:G,pathsDetail:Ne}))(U)},51959:function(_t,Ae,r){"use strict";r.d(Ae,{BU:function(){return E},Dj:function(){return l},gH:function(){return j},vp:function(){return $}});function l(T){try{T.mozRequestFullScreen?T.mozRequestFullScreen():T.webkitRequestFullScreen&&T.webkitRequestFullScreen()}catch(m){console.log(m,":e")}}function E(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const j=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function $(){var T=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,m=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",T),window.isFullScreen?window.isFullScreen:T!=null}},24577:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return we}});class l{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");let t=Object(e);for(let n=1;n<arguments.length;n++){let i=arguments[n];if(i!=null)for(let a in i)i.hasOwnProperty(a)&&(t[a]=i[a])}return t},typeof self.Promise!="function"&&r(82702).polyfill()}}l.install();var E=l,j=r(17187),$=r.n(j);class T{static e(e,t){(!e||T.FORCE_GLOBAL_TAG)&&(e=T.GLOBAL_TAG);let n=`[${e}] > ${t}`;T.ENABLE_CALLBACK&&T.emitter.emit("log","error",n),T.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}static i(e,t){(!e||T.FORCE_GLOBAL_TAG)&&(e=T.GLOBAL_TAG);let n=`[${e}] > ${t}`;T.ENABLE_CALLBACK&&T.emitter.emit("log","info",n),T.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}static w(e,t){(!e||T.FORCE_GLOBAL_TAG)&&(e=T.GLOBAL_TAG);let n=`[${e}] > ${t}`;T.ENABLE_CALLBACK&&T.emitter.emit("log","warn",n),T.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}static d(e,t){(!e||T.FORCE_GLOBAL_TAG)&&(e=T.GLOBAL_TAG);let n=`[${e}] > ${t}`;T.ENABLE_CALLBACK&&T.emitter.emit("log","debug",n),T.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}static v(e,t){(!e||T.FORCE_GLOBAL_TAG)&&(e=T.GLOBAL_TAG);let n=`[${e}] > ${t}`;T.ENABLE_CALLBACK&&T.emitter.emit("log","verbose",n),T.ENABLE_VERBOSE&&console.log(n)}}T.GLOBAL_TAG="flv.js",T.FORCE_GLOBAL_TAG=!1,T.ENABLE_ERROR=!0,T.ENABLE_INFO=!0,T.ENABLE_WARN=!0,T.ENABLE_DEBUG=!0,T.ENABLE_VERBOSE=!0,T.ENABLE_CALLBACK=!1,T.emitter=new($());var m=T;class I{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(e){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let e=(this._now()-this._lastCheckpoint)/1e3;return e==0&&(e=1),this._intervalBytes/e/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}var oe=I;class f{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class X extends f{constructor(e){super(e)}get name(){return"IllegalStateException"}}class ie extends f{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class ue extends f{constructor(e){super(e)}get name(){return"NotImplementedException"}}const w={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},Y={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class ne{constructor(e){this._type=e||"undefined",this._status=w.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=w.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===w.kConnecting||this._status===w.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(e){this._onContentLengthKnown=e}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(e){this._onURLRedirect=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}open(e,t){throw new ue("Unimplemented abstract function!")}abort(){throw new ue("Unimplemented abstract function!")}}let ae={};function c(){let ee=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(ee)||/(opr)[\/]([\w.]+)/.exec(ee)||/(chrome)[ \/]([\w.]+)/.exec(ee)||/(iemobile)[\/]([\w.]+)/.exec(ee)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(ee)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(ee)||/(webkit)[ \/]([\w.]+)/.exec(ee)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ee)||/(msie) ([\w.]+)/.exec(ee)||ee.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(ee)||ee.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(ee)||[],t=/(ipad)/.exec(ee)||/(ipod)/.exec(ee)||/(windows phone)/.exec(ee)||/(iphone)/.exec(ee)||/(kindle)/.exec(ee)||/(android)/.exec(ee)||/(windows)/.exec(ee)||/(mac)/.exec(ee)||/(linux)/.exec(ee)||/(cros)/.exec(ee)||[],n={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",majorVersion:e[4]||e[2]||"0",platform:t[0]||""},i={};if(n.browser){i[n.browser]=!0;let a=n.majorVersion.split(".");i.version={major:parseInt(n.majorVersion,10),string:n.version},a.length>1&&(i.version.minor=parseInt(a[1],10)),a.length>2&&(i.version.build=parseInt(a[2],10))}if(n.platform&&(i[n.platform]=!0),(i.chrome||i.opr||i.safari)&&(i.webkit=!0),i.rv||i.iemobile){i.rv&&delete i.rv;let a="msie";n.browser=a,i[a]=!0}if(i.edge){delete i.edge;let a="msedge";n.browser=a,i[a]=!0}if(i.opr){let a="opera";n.browser=a,i[a]=!0}if(i.safari&&i.android){let a="android";n.browser=a,i[a]=!0}i.name=n.browser,i.platform=n.platform;for(let a in ae)ae.hasOwnProperty(a)&&delete ae[a];Object.assign(ae,i)}c();var D=ae;class N extends ne{static isSupported(){try{let e=D.msedge&&D.version.minor>=15048,t=D.msedge?e:!0;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}}constructor(e,t){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let n=e.url;this._config.reuseRedirectedURL&&e.redirectedURL!=null&&(n=e.redirectedURL);let i=this._seekHandler.getConfig(n,t),a=new self.Headers;if(typeof i.headers=="object"){let A=i.headers;for(let pe in A)A.hasOwnProperty(pe)&&a.append(pe,A[pe])}let v={method:"GET",headers:a,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let A in this._config.headers)a.append(A,this._config.headers[A]);e.cors===!1&&(v.mode="same-origin"),e.withCredentials&&(v.credentials="include"),e.referrerPolicy&&(v.referrerPolicy=e.referrerPolicy),this._status=w.kConnecting,self.fetch(i.url,v).then(A=>{if(this._requestAbort){this._requestAbort=!1,this._status=w.kIdle;return}if(A.ok&&A.status>=200&&A.status<=299){if(A.url!==i.url&&this._onURLRedirect){let se=this._seekHandler.removeURLParameters(A.url);this._onURLRedirect(se)}let pe=A.headers.get("Content-Length");return pe!=null&&(this._contentLength=parseInt(pe),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,A.body.getReader())}else if(this._status=w.kError,this._onError)this._onError(Y.HTTP_STATUS_CODE_INVALID,{code:A.status,msg:A.statusText});else throw new f("FetchStreamLoader: Http code invalid, "+A.status+" "+A.statusText)}).catch(A=>{if(this._status=w.kError,this._onError)this._onError(Y.EXCEPTION,{code:-1,msg:A.message});else throw A})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=w.kError;let n=Y.EARLY_EOF,i={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(n,i);else throw new f(i.msg)}else this._status=w.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1);else{if(this._requestAbort===!0)return this._requestAbort=!1,this._status=w.kComplete,e.cancel();this._status=w.kBuffering;let n=t.value.buffer,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),this._pump(e)}}).catch(t=>{if(t.code===11&&D.msedge)return;this._status=w.kError;let n=0,i=null;if((t.code===19||t.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(n=Y.EARLY_EOF,i={code:t.code,msg:"Fetch stream meet Early-EOF"}):(n=Y.EXCEPTION,i={code:t.code,msg:t.message}),this._onError)this._onError(n,i);else throw new f(i.msg)})}}var L=N;class x extends ne{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="moz-chunked-arraybuffer",e.responseType==="moz-chunked-arraybuffer"}catch(e){return m.w("MozChunkedLoader",e.message),!1}}constructor(e,t){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let n=e.url;this._config.reuseRedirectedURL&&e.redirectedURL!=null&&(n=e.redirectedURL);let i=this._seekHandler.getConfig(n,t);this._requestURL=i.url;let a=this._xhr=new XMLHttpRequest;if(a.open("GET",i.url,!0),a.responseType="moz-chunked-arraybuffer",a.onreadystatechange=this._onReadyStateChange.bind(this),a.onprogress=this._onProgress.bind(this),a.onloadend=this._onLoadEnd.bind(this),a.onerror=this._onXhrError.bind(this),e.withCredentials&&(a.withCredentials=!0),typeof i.headers=="object"){let v=i.headers;for(let A in v)v.hasOwnProperty(A)&&a.setRequestHeader(A,v[A])}if(typeof this._config.headers=="object"){let v=this._config.headers;for(let A in v)v.hasOwnProperty(A)&&a.setRequestHeader(A,v[A])}this._status=w.kConnecting,a.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=w.kComplete}_onReadyStateChange(e){let t=e.target;if(t.readyState===2){if(t.responseURL!=null&&t.responseURL!==this._requestURL&&this._onURLRedirect){let n=this._seekHandler.removeURLParameters(t.responseURL);this._onURLRedirect(n)}if(t.status!==0&&(t.status<200||t.status>299))if(this._status=w.kError,this._onError)this._onError(Y.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new f("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);else this._status=w.kBuffering}}_onProgress(e){if(this._status===w.kError)return;this._contentLength===null&&e.total!==null&&e.total!==0&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let t=e.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}_onLoadEnd(e){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===w.kError)return;this._status=w.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(e){this._status=w.kError;let t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=Y.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=Y.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new f(n.msg)}}var d=x;class b extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="ms-stream",e.responseType==="ms-stream"}catch(e){return Log.w("MSStreamLoader",e.message),!1}}constructor(e,t){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(e,t){this._internalOpen(e,t,!1)}_internalOpen(e,t,n){this._dataSource=e,n?this._currentRange=t:this._totalRange=t;let i=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?i=this._currentRedirectedURL:e.redirectedURL!=null&&(i=e.redirectedURL));let a=this._seekHandler.getConfig(i,t);this._currentRequestURL=a.url;let v=this._reader=new self.MSStreamReader;v.onprogress=this._msrOnProgress.bind(this),v.onload=this._msrOnLoad.bind(this),v.onerror=this._msrOnError.bind(this);let A=this._xhr=new XMLHttpRequest;if(A.open("GET",a.url,!0),A.responseType="ms-stream",A.onreadystatechange=this._xhrOnReadyStateChange.bind(this),A.onerror=this._xhrOnError.bind(this),e.withCredentials&&(A.withCredentials=!0),typeof a.headers=="object"){let pe=a.headers;for(let se in pe)pe.hasOwnProperty(se)&&A.setRequestHeader(se,pe[se])}if(typeof this._config.headers=="object"){let pe=this._config.headers;for(let se in pe)pe.hasOwnProperty(se)&&A.setRequestHeader(se,pe[se])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,A.send()}abort(){this._internalAbort(),this._status=LoaderStatus.kComplete}_internalAbort(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}_xhrOnReadyStateChange(e){let t=e.target;if(t.readyState===2)if(t.status>=200&&t.status<=299){if(this._status=LoaderStatus.kBuffering,t.responseURL!=null){let i=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&i!==this._currentRedirectedURL&&(this._currentRedirectedURL=i,this._onURLRedirect&&this._onURLRedirect(i))}let n=t.getResponseHeader("Content-Length");if(n!=null&&this._contentLength==null){let i=parseInt(n);i>0&&(this._contentLength=i,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+t.status+" "+t.statusText);else if(t.readyState===3&&t.status>=200&&t.status<=299){this._status=LoaderStatus.kBuffering;let n=t.response;this._reader.readAsArrayBuffer(n)}}_xhrOnError(e){this._status=LoaderStatus.kError;let t=LoaderErrors.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type};if(this._onError)this._onError(t,n);else throw new RuntimeException(n.msg)}_msrOnProgress(e){let n=e.target.result;if(n==null){this._doReconnectIfNeeded();return}let i=n.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=n.byteLength;let a=this._totalRange.from+this._receivedLength;this._receivedLength+=i.byteLength,this._onDataArrival&&this._onDataArrival(i,a,this._receivedLength),n.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${a+i.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let e={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,e,!0)}}_msrOnLoad(e){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(e){this._status=LoaderStatus.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength<this._contentLength?(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:"MSStream meet Early-Eof"}):(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new RuntimeException(n.msg)}}var Z=null;class F extends ne{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer",e.responseType==="arraybuffer"}catch(e){return m.w("RangeLoader",e.message),!1}}constructor(e,t){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=e,this._config=t,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new oe,this._requestAbort=!1,this._waitForTotalLength=!1,this._totalLengthReceived=!1,this._currentRequestURL=null,this._currentRedirectedURL=null,this._currentRequestRange=null,this._totalLength=null,this._contentLength=null,this._receivedLength=0,this._lastTimeLoaded=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}get currentSpeed(){return this._speedSampler.lastSecondKBps}open(e,t){this._dataSource=e,this._range=t,this._status=w.kConnecting;let n=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(n=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!n?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let e=this._currentChunkSizeKB*1024,t=this._range.from+this._receivedLength,n=t+e;this._contentLength!=null&&n-this._range.from>=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(e,t){this._lastTimeLoaded=0;let n=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?n=this._currentRedirectedURL:e.redirectedURL!=null&&(n=e.redirectedURL));let i=this._seekHandler.getConfig(n,t);this._currentRequestURL=i.url;let a=this._xhr=new XMLHttpRequest;if(a.open("GET",i.url,!0),a.responseType="arraybuffer",a.onreadystatechange=this._onReadyStateChange.bind(this),a.onprogress=this._onProgress.bind(this),a.onload=this._onLoad.bind(this),a.onerror=this._onXhrError.bind(this),e.withCredentials&&(a.withCredentials=!0),typeof i.headers=="object"){let v=i.headers;for(let A in v)v.hasOwnProperty(A)&&a.setRequestHeader(A,v[A])}if(typeof this._config.headers=="object"){let v=this._config.headers;for(let A in v)v.hasOwnProperty(A)&&a.setRequestHeader(A,v[A])}a.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=w.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(e){let t=e.target;if(t.readyState===2){if(t.responseURL!=null){let n=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=w.kBuffering}else if(this._status=w.kError,this._onError)this._onError(Y.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new f("RangeLoader: Http code invalid, "+t.status+" "+t.statusText)}}_onProgress(e){if(this._status===w.kError)return;if(this._contentLength===null){let n=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,n=!0;let i=e.total;this._internalAbort(),i!=null&i!==0&&(this._totalLength=i)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,n){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let t=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(t)}_normalizeSpeed(e){let t=this._chunkSizeKBList,n=t.length-1,i=0,a=0,v=n;if(e<t[0])return t[0];for(;a<=v;){if(i=a+Math.floor((v-a)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?a=i+1:v=i-1}}_onLoad(e){if(this._status===w.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let t=this._speedSampler.lastSecondKBps;if(t===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(t=this._speedSampler.currentKBps)),t!==0){let v=this._normalizeSpeed(t);this._currentSpeedNormalized!==v&&(this._currentSpeedNormalized=v,this._currentChunkSizeKB=v)}let n=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength;let a=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():a=!0,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),a&&(this._status=w.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(e){this._status=w.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=Y.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=Y.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new f(n.msg)}}var te=F;class ye extends ne{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(e){return!1}}constructor(){super("websocket-loader"),this.TAG="WebSocketLoader",this._needStash=!0,this._ws=null,this._requestAbort=!1,this._receivedLength=0}destroy(){this._ws&&this.abort(),super.destroy()}open(e){try{let t=this._ws=new self.WebSocket(e.url);t.binaryType="arraybuffer",t.onopen=this._onWebSocketOpen.bind(this),t.onclose=this._onWebSocketClose.bind(this),t.onmessage=this._onWebSocketMessage.bind(this),t.onerror=this._onWebSocketError.bind(this),this._status=w.kConnecting}catch(t){this._status=w.kError;let n={code:t.code,msg:t.message};if(this._onError)this._onError(Y.EXCEPTION,n);else throw new f(n.msg)}}abort(){let e=this._ws;e&&(e.readyState===0||e.readyState===1)&&(this._requestAbort=!0,e.close()),this._ws=null,this._status=w.kComplete}_onWebSocketOpen(e){this._status=w.kBuffering}_onWebSocketClose(e){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=w.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(e){if(e.data instanceof ArrayBuffer)this._dispatchArrayBuffer(e.data);else if(e.data instanceof Blob){let t=new FileReader;t.onload=()=>{this._dispatchArrayBuffer(t.result)},t.readAsArrayBuffer(e.data)}else{this._status=w.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(this._onError)this._onError(Y.EXCEPTION,t);else throw new f(t.msg)}}_dispatchArrayBuffer(e){let t=e,n=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}_onWebSocketError(e){this._status=w.kError;let t={code:e.code,msg:e.message};if(this._onError)this._onError(Y.EXCEPTION,t);else throw new f(t.msg)}}var xe=ye;class k{constructor(e){this._zeroStart=e||!1}getConfig(e,t){let n={};if(t.from!==0||t.to!==-1){let i;t.to!==-1?i=`bytes=${t.from.toString()}-${t.to.toString()}`:i=`bytes=${t.from.toString()}-`,n.Range=i}else this._zeroStart&&(n.Range="bytes=0-");return{url:e,headers:n}}removeURLParameters(e){return e}}var Be=k;class Q{constructor(e,t){this._startName=e,this._endName=t}getConfig(e,t){let n=e;if(t.from!==0||t.to!==-1){let i=!0;n.indexOf("?")===-1&&(n+="?",i=!1),i&&(n+="&"),n+=`${this._startName}=${t.from.toString()}`,t.to!==-1&&(n+=`&${this._endName}=${t.to.toString()}`)}return{url:n,headers:{}}}removeURLParameters(e){let t=e.split("?")[0],n,i=e.indexOf("?");i!==-1&&(n=e.substring(i+1));let a="";if(n!=null&&n.length>0){let v=n.split("&");for(let A=0;A<v.length;A++){let pe=v[A].split("="),se=A>0;pe[0]!==this._startName&&pe[0]!==this._endName&&(se&&(a+="&"),a+=v[A])}}return a.length===0?t:t+"?"+a}}var ce=Q;class M{constructor(e,t,n){this.TAG="IOController",this._config=t,this._extraData=n,this._stashInitialSize=1024*384,t.stashInitialSize!=null&&t.stashInitialSize>0&&(this._stashInitialSize=t.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,t.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new oe,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(e){this._extraData=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onSeeked(){return this._onSeeked}set onSeeked(e){this._onSeeked=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}get onRedirect(){return this._onRedirect}set onRedirect(e){this._onRedirect=e}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(e){this._onRecoveredEarlyEof=e}get currentURL(){return this._dataSource.url}get hasRedirect(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===te?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if(e.seekType==="range")this._seekHandler=new Be(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new ce(t,n)}else if(e.seekType==="custom"){if(typeof e.customSeekHandler!="function")throw new ie("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new ie(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=xe;else if(L.isSupported())this._loaderClass=L;else if(d.isSupported())this._loaderClass=d;else if(te.isSupported())this._loaderClass=te;else throw new f("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}}seek(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)}_internalSeek(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;let n={from:e,to:-1};this._currentRange={from:n.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,n),this._onSeeked&&this._onSeeked()}updateUrl(e){if(!e||typeof e!="string"||e.length===0)throw new ie("Url must be a non-empty string!");this._dataSource.url=e}_expandBuffer(e){let t=this._stashSize;for(;t+1024*1024*1<e;)t*=2;if(t+=1024*1024*1,t===this._bufferSize)return;let n=new ArrayBuffer(t);if(this._stashUsed>0){let i=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,t).set(i,0)}this._stashBuffer=n,this._bufferSize=t}_normalizeSpeed(e){let t=this._speedNormalizeList,n=t.length-1,i=0,a=0,v=n;if(e<t[0])return t[0];for(;a<=v;){if(i=a+Math.floor((v-a)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?a=i+1:v=i-1}}_adjustStashSize(e){let t=0;this._config.isLive||e<512?t=e:e>=512&&e<=1024?t=Math.floor(e*1.5):t=e*2,t>8192&&(t=8192);let n=t*1024+1024*1024*1;this._bufferSize<n&&this._expandBuffer(n),this._stashSize=t*1024}_dispatchChunks(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)}_onURLRedirect(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)}_onContentLengthKnown(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)}_onLoaderChunkArrival(e,t,n){if(!this._onDataArrival)throw new X("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(e.byteLength);let i=this._speedSampler.lastSecondKBps;if(i!==0){let a=this._normalizeSpeed(i);this._speedNormalized!==a&&(this._speedNormalized=a,this._adjustStashSize(a))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=t),this._stashUsed+e.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;else{let a=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let v=this._stashBuffer.slice(0,this._stashUsed),A=this._dispatchChunks(v,this._stashByteStart);if(A<v.byteLength){if(A>0){let pe=new Uint8Array(v,A);a.set(pe,0),this._stashUsed=pe.byteLength,this._stashByteStart+=A}}else this._stashUsed=0,this._stashByteStart+=A;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let v=this._dispatchChunks(e,t);if(v<e.byteLength){let A=e.byteLength-v;A>this._bufferSize&&(this._expandBuffer(A),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e,v),0),this._stashUsed+=A,this._stashByteStart=t+v}}}else if(this._stashUsed===0){let a=this._dispatchChunks(e,t);if(a<e.byteLength){let v=e.byteLength-a;v>this._bufferSize&&this._expandBuffer(v),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,a),0),this._stashUsed+=v,this._stashByteStart=t+a}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let a=new Uint8Array(this._stashBuffer,0,this._bufferSize);a.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let v=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(v<this._stashUsed&&v>0){let A=new Uint8Array(this._stashBuffer,v);a.set(A,0)}this._stashUsed-=v,this._stashByteStart+=v}}_flushStashBuffer(e){if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),i=t.byteLength-n;if(n<t.byteLength)if(e)m.w(this.TAG,`${i} bytes unconsumed data remain when flush buffer, dropped`);else{if(n>0){let a=new Uint8Array(this._stashBuffer,0,this._bufferSize),v=new Uint8Array(t,n);a.set(v,0),this._stashUsed=v.byteLength,this._stashByteStart+=n}return 0}return this._stashUsed=0,this._stashByteStart=0,i}return 0}_onLoaderComplete(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(e,t){switch(m.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=Y.UNRECOVERABLE_EARLY_EOF),e){case Y.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let n=this._currentRange.to+1;n<this._totalLength&&(m.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1));return}e=Y.UNRECOVERABLE_EARLY_EOF;break}case Y.UNRECOVERABLE_EARLY_EOF:case Y.CONNECTING_TIMEOUT:case Y.HTTP_STATUS_CODE_INVALID:case Y.EXCEPTION:break}if(this._onError)this._onError(e,t);else throw new f("IOException: "+t.msg)}}var O=M;const ke={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function Fe(){return Object.assign({},ke)}class Te{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let e=new O({},Fe()),t=e.loaderType;return e.destroy(),t=="fetch-stream-loader"||t=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let e=new O({},Fe()),t=e.loaderType;return e.destroy(),t}static supportNativeMediaPlayback(e){Te.videoElement==null&&(Te.videoElement=window.document.createElement("video"));let t=Te.videoElement.canPlayType(e);return t==="probably"||t=="maybe"}static getFeatureList(){let e={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return e.mseFlvPlayback=Te.supportMSEH264Playback(),e.networkStreamIO=Te.supportNetworkStreamIO(),e.networkLoaderName=Te.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=Te.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=Te.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=Te.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var q=Te,Le={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};class Ce{static get forceGlobalTag(){return m.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){m.FORCE_GLOBAL_TAG=e,Ce._notifyChange()}static get globalTag(){return m.GLOBAL_TAG}static set globalTag(e){m.GLOBAL_TAG=e,Ce._notifyChange()}static get enableAll(){return m.ENABLE_VERBOSE&&m.ENABLE_DEBUG&&m.ENABLE_INFO&&m.ENABLE_WARN&&m.ENABLE_ERROR}static set enableAll(e){m.ENABLE_VERBOSE=e,m.ENABLE_DEBUG=e,m.ENABLE_INFO=e,m.ENABLE_WARN=e,m.ENABLE_ERROR=e,Ce._notifyChange()}static get enableDebug(){return m.ENABLE_DEBUG}static set enableDebug(e){m.ENABLE_DEBUG=e,Ce._notifyChange()}static get enableVerbose(){return m.ENABLE_VERBOSE}static set enableVerbose(e){m.ENABLE_VERBOSE=e,Ce._notifyChange()}static get enableInfo(){return m.ENABLE_INFO}static set enableInfo(e){m.ENABLE_INFO=e,Ce._notifyChange()}static get enableWarn(){return m.ENABLE_WARN}static set enableWarn(e){m.ENABLE_WARN=e,Ce._notifyChange()}static get enableError(){return m.ENABLE_ERROR}static set enableError(e){m.ENABLE_ERROR=e,Ce._notifyChange()}static getConfig(){return{globalTag:m.GLOBAL_TAG,forceGlobalTag:m.FORCE_GLOBAL_TAG,enableVerbose:m.ENABLE_VERBOSE,enableDebug:m.ENABLE_DEBUG,enableInfo:m.ENABLE_INFO,enableWarn:m.ENABLE_WARN,enableError:m.ENABLE_ERROR,enableCallback:m.ENABLE_CALLBACK}}static applyConfig(e){m.GLOBAL_TAG=e.globalTag,m.FORCE_GLOBAL_TAG=e.forceGlobalTag,m.ENABLE_VERBOSE=e.enableVerbose,m.ENABLE_DEBUG=e.enableDebug,m.ENABLE_INFO=e.enableInfo,m.ENABLE_WARN=e.enableWarn,m.ENABLE_ERROR=e.enableError,m.ENABLE_CALLBACK=e.enableCallback}static _notifyChange(){let e=Ce.emitter;if(e.listenerCount("change")>0){let t=Ce.getConfig();e.emit("change",t)}}static registerListener(e){Ce.emitter.addListener("change",e)}static removeListener(e){Ce.emitter.removeListener("change",e)}static addLogListener(e){m.emitter.addListener("log",e),m.emitter.listenerCount("log")>0&&(m.ENABLE_CALLBACK=!0,Ce._notifyChange())}static removeLogListener(e){m.emitter.removeListener("log",e),m.emitter.listenerCount("log")===0&&(m.ENABLE_CALLBACK=!1,Ce._notifyChange())}}Ce.emitter=new($());var $e=Ce;class Tt{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let e=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,t=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&e&&t}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(e){if(this.keyframesIndex==null)return null;let t=this.keyframesIndex,n=this._search(t.times,e);return{index:n,milliseconds:t.times[n],fileposition:t.filepositions[n]}}_search(e,t){let n=0,i=e.length-1,a=0,v=0,A=i;for(t<e[0]&&(n=0,v=A+1);v<=A;)if(a=v+Math.floor((A-v)/2),a===i||t>=e[a]&&t<e[a+1]){n=a;break}else e[a]<t?v=a+1:A=a-1;return n}}var ot=Tt;function Mt(ee,e,t){let n=ee;if(e+t<n.length){for(;t--;)if((n[++e]&192)!==128)return!1;return!0}else return!1}function bt(ee){let e=[],t=ee,n=0,i=ee.length;for(;n<i;){if(t[n]<128){e.push(String.fromCharCode(t[n])),++n;continue}else if(!(t[n]<192)){if(t[n]<224){if(Mt(t,n,1)){let a=(t[n]&31)<<6|t[n+1]&63;if(a>=128){e.push(String.fromCharCode(a&65535)),n+=2;continue}}}else if(t[n]<240){if(Mt(t,n,2)){let a=(t[n]&15)<<12|(t[n+1]&63)<<6|t[n+2]&63;if(a>=2048&&(a&63488)!==55296){e.push(String.fromCharCode(a&65535)),n+=3;continue}}}else if(t[n]<248&&Mt(t,n,3)){let a=(t[n]&7)<<18|(t[n+1]&63)<<12|(t[n+2]&63)<<6|t[n+3]&63;if(a>65536&&a<1114112){a-=65536,e.push(String.fromCharCode(a>>>10|55296)),e.push(String.fromCharCode(a&1023|56320)),n+=4;continue}}}e.push("\uFFFD"),++n}return e.join("")}var Nt=bt;let xt=function(){let ee=new ArrayBuffer(2);return new DataView(ee).setInt16(0,256,!0),new Int16Array(ee)[0]===256}();class Ct{static parseScriptData(e,t,n){let i={};try{let a=Ct.parseValue(e,t,n),v=Ct.parseValue(e,t+a.size,n-a.size);i[a.data]=v.data}catch(a){m.e("AMF",a.toString())}return i}static parseObject(e,t,n){if(n<3)throw new X("Data not enough when parse ScriptDataObject");let i=Ct.parseString(e,t,n),a=Ct.parseValue(e,t+i.size,n-i.size),v=a.objectEnd;return{data:{name:i.data,value:a.data},size:i.size+a.size,objectEnd:v}}static parseVariable(e,t,n){return Ct.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new X("Data not enough when parse String");let a=new DataView(e,t,n).getUint16(0,!xt),v;return a>0?v=Nt(new Uint8Array(e,t+2,a)):v="",{data:v,size:2+a}}static parseLongString(e,t,n){if(n<4)throw new X("Data not enough when parse LongString");let a=new DataView(e,t,n).getUint32(0,!xt),v;return a>0?v=Nt(new Uint8Array(e,t+4,a)):v="",{data:v,size:4+a}}static parseDate(e,t,n){if(n<10)throw new X("Data size invalid when parse Date");let i=new DataView(e,t,n),a=i.getFloat64(0,!xt),v=i.getInt16(8,!xt);return a+=v*60*1e3,{data:new Date(a),size:10}}static parseValue(e,t,n){if(n<1)throw new X("Data not enough when parse Value");let i=new DataView(e,t,n),a=1,v=i.getUint8(0),A,pe=!1;try{switch(v){case 0:A=i.getFloat64(1,!xt),a+=8;break;case 1:{A=!!i.getUint8(1),a+=1;break}case 2:{let se=Ct.parseString(e,t+1,n-1);A=se.data,a+=se.size;break}case 3:{A={};let se=0;for((i.getUint32(n-4,!xt)&16777215)===9&&(se=3);a<n-4;){let Ke=Ct.parseObject(e,t+a,n-a-se);if(Ke.objectEnd)break;A[Ke.data.name]=Ke.data.value,a+=Ke.size}a<=n-3&&(i.getUint32(a-1,!xt)&16777215)===9&&(a+=3);break}case 8:{A={},a+=4;let se=0;for((i.getUint32(n-4,!xt)&16777215)===9&&(se=3);a<n-8;){let Ke=Ct.parseVariable(e,t+a,n-a-se);if(Ke.objectEnd)break;A[Ke.data.name]=Ke.data.value,a+=Ke.size}a<=n-3&&(i.getUint32(a-1,!xt)&16777215)===9&&(a+=3);break}case 9:A=void 0,a=1,pe=!0;break;case 10:{A=[];let se=i.getUint32(1,!xt);a+=4;for(let Ke=0;Ke<se;Ke++){let Qe=Ct.parseValue(e,t+a,n-a);A.push(Qe.data),a+=Qe.size}break}case 11:{let se=Ct.parseDate(e,t+1,n-1);A=se.data,a+=se.size;break}case 12:{let se=Ct.parseString(e,t+1,n-1);A=se.data,a+=se.size;break}default:a=n,m.w("AMF","Unsupported AMF value type "+v)}}catch(se){m.e("AMF",se.toString())}return{data:A,size:a,objectEnd:pe}}}var Rt=Ct;class Pt{constructor(e){this.TAG="ExpGolomb",this._buffer=e,this._buffer_index=0,this._total_bytes=e.byteLength,this._total_bits=e.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let e=this._total_bytes-this._buffer_index;if(e<=0)throw new X("ExpGolomb: _fillCurrentWord() but no bytes available");let t=Math.min(4,e),n=new Uint8Array(4);n.set(this._buffer.subarray(this._buffer_index,this._buffer_index+t)),this._current_word=new DataView(n.buffer).getUint32(0,!1),this._buffer_index+=t,this._current_word_bits_left=t*8}readBits(e){if(e>32)throw new ie("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let v=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,v}let t=this._current_word_bits_left?this._current_word:0;t=t>>>32-this._current_word_bits_left;let n=e-this._current_word_bits_left;this._fillCurrentWord();let i=Math.min(n,this._current_word_bits_left),a=this._current_word>>>32-i;return this._current_word<<=i,this._current_word_bits_left-=i,t=t<<i|a,t}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let e;for(e=0;e<this._current_word_bits_left;e++)if(this._current_word&2147483648>>>e)return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}readUEG(){let e=this._skipLeadingZero();return this.readBits(e+1)-1}readSEG(){let e=this.readUEG();return e&1?e+1>>>1:-1*(e>>>1)}}var rt=Pt;class fe{static _ebsp2rbsp(e){let t=e,n=t.byteLength,i=new Uint8Array(n),a=0;for(let v=0;v<n;v++)v>=2&&t[v]===3&&t[v-1]===0&&t[v-2]===0||(i[a]=t[v],a++);return new Uint8Array(i.buffer,0,a)}static parseSPS(e){let t=fe._ebsp2rbsp(e),n=new rt(t);n.readByte();let i=n.readByte();n.readByte();let a=n.readByte();n.readUEG();let v=fe.getProfileString(i),A=fe.getLevelString(a),pe=1,se=420,Ke=[0,420,422,444],Qe=8;if((i===100||i===110||i===122||i===244||i===44||i===83||i===86||i===118||i===128||i===138||i===144)&&(pe=n.readUEG(),pe===3&&n.readBits(1),pe<=3&&(se=Ke[pe]),Qe=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let vn=pe!==3?8:12;for(let ln=0;ln<vn;ln++)n.readBool()&&(ln<6?fe._skipScalingList(n,16):fe._skipScalingList(n,64))}n.readUEG();let gt=n.readUEG();if(gt===0)n.readUEG();else if(gt===1){n.readBits(1),n.readSEG(),n.readSEG();let vn=n.readUEG();for(let ln=0;ln<vn;ln++)n.readSEG()}let Xe=n.readUEG();n.readBits(1);let pt=n.readUEG(),dt=n.readUEG(),De=n.readBits(1);De===0&&n.readBits(1),n.readBits(1);let Ve=0,vt=0,wt=0,Je=0;n.readBool()&&(Ve=n.readUEG(),vt=n.readUEG(),wt=n.readUEG(),Je=n.readUEG());let Qt=1,St=1,Ut=0,Jt=!0,rn=0,an=0;if(n.readBool()){if(n.readBool()){let vn=n.readByte(),ln=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],dn=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];vn>0&&vn<16?(Qt=ln[vn-1],St=dn[vn-1]):vn===255&&(Qt=n.readByte()<<8|n.readByte(),St=n.readByte()<<8|n.readByte())}if(n.readBool()&&n.readBool(),n.readBool()&&(n.readBits(4),n.readBool()&&n.readBits(24)),n.readBool()&&(n.readUEG(),n.readUEG()),n.readBool()){let vn=n.readBits(32),ln=n.readBits(32);Jt=n.readBool(),rn=ln,an=vn*2,Ut=rn/an}}let Mn=1;(Qt!==1||St!==1)&&(Mn=Qt/St);let un=0,Fn=0;if(pe===0)un=1,Fn=2-De;else{let vn=pe===3?1:2,ln=pe===1?2:1;un=vn,Fn=ln*(2-De)}let on=(pt+1)*16,Un=(2-De)*((dt+1)*16);on-=(Ve+vt)*un,Un-=(wt+Je)*Fn;let Pn=Math.ceil(on*Mn);return n.destroy(),n=null,{profile_string:v,level_string:A,bit_depth:Qe,ref_frames:Xe,chroma_format:se,chroma_format_string:fe.getChromaFormatString(se),frame_rate:{fixed:Jt,fps:Ut,fps_den:an,fps_num:rn},sar_ratio:{width:Qt,height:St},codec_size:{width:on,height:Un},present_size:{width:Pn,height:Un}}}static _skipScalingList(e,t){let n=8,i=8,a=0;for(let v=0;v<t;v++)i!==0&&(a=e.readSEG(),i=(n+a+256)%256),n=i===0?n:i}static getProfileString(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(e){return(e/10).toFixed(1)}static getChromaFormatString(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var J=fe,s={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function _(ee){return ee>>>8&255|(ee&255)<<8}function B(ee){return(ee&4278190080)>>>24|(ee&16711680)>>>8|(ee&65280)<<8|(ee&255)<<24}function S(ee,e){return ee[e]<<24|ee[e+1]<<16|ee[e+2]<<8|ee[e+3]}class K{constructor(e,t){this.TAG="FLVDemuxer",this._config=t,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=e.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=e.hasAudioTrack,this._hasVideo=e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new ot,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let n=new ArrayBuffer(2);return new DataView(n).setInt16(0,256,!0),new Int16Array(n)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(e){let t=new Uint8Array(e),n={match:!1};if(t[0]!==70||t[1]!==76||t[2]!==86||t[3]!==1)return n;let i=(t[4]&4)>>>2!==0,a=(t[4]&1)!==0,v=S(t,5);return v<9?n:{match:!0,consumed:v,dataOffset:v,hasAudioTrack:i,hasVideoTrack:a}}bindDataSource(e){return e.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(e){this._onTrackMetadata=e}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(e){this._onMediaInfo=e}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(e){this._onMetaDataArrived=e}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(e){this._onScriptDataArrived=e}get onError(){return this._onError}set onError(e){this._onError=e}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(e){this._onDataAvailable=e}get timestampBase(){return this._timestampBase}set timestampBase(e){this._timestampBase=e}get overridedDuration(){return this._duration}set overridedDuration(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e}set overridedHasAudio(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e}set overridedHasVideo(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e}resetMediaInfo(){this._mediaInfo=new ot}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(e,t){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new X("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let n=0,i=this._littleEndian;if(t===0)if(e.byteLength>13)n=K.probe(e).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,t+n!==this._dataOffset&&m.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(e,n).getUint32(0,!i)!==0&&m.w(this.TAG,"PrevTagSize0 !== 0 !!!"),n+=4);n<e.byteLength;){this._dispatch=!0;let a=new DataView(e,n);if(n+11+4>e.byteLength)break;let v=a.getUint8(0),A=a.getUint32(0,!i)&16777215;if(n+11+A+4>e.byteLength)break;if(v!==8&&v!==9&&v!==18){m.w(this.TAG,`Unsupported tag type ${v}, skipped`),n+=11+A+4;continue}let pe=a.getUint8(4),se=a.getUint8(5),Ke=a.getUint8(6),Qe=a.getUint8(7),gt=Ke|se<<8|pe<<16|Qe<<24;(a.getUint32(7,!i)&16777215)!==0&&m.w(this.TAG,"Meet tag which has StreamID != 0!");let pt=n+11;switch(v){case 8:this._parseAudioData(e,pt,A,gt);break;case 9:this._parseVideoData(e,pt,A,gt,t+n);break;case 18:this._parseScriptData(e,pt,A);break}let dt=a.getUint32(11+A,!i);dt!==11+A&&m.w(this.TAG,`Invalid PrevTagSize ${dt}`),n+=11+A+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),n}_parseScriptData(e,t,n){let i=Rt.parseScriptData(e,t,n);if(i.hasOwnProperty("onMetaData")){if(i.onMetaData==null||typeof i.onMetaData!="object"){m.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&m.w(this.TAG,"Found another onMetaData tag!"),this._metadata=i;let a=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},a)),typeof a.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=a.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof a.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=a.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof a.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=a.audiodatarate),typeof a.videodatarate=="number"&&(this._mediaInfo.videoDataRate=a.videodatarate),typeof a.width=="number"&&(this._mediaInfo.width=a.width),typeof a.height=="number"&&(this._mediaInfo.height=a.height),typeof a.duration=="number"){if(!this._durationOverrided){let v=Math.floor(a.duration*this._timescale);this._duration=v,this._mediaInfo.duration=v}}else this._mediaInfo.duration=0;if(typeof a.framerate=="number"){let v=Math.floor(a.framerate*1e3);if(v>0){let A=v/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=A,this._referenceFrameRate.fps_num=v,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=A}}if(typeof a.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let v=a.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(v),a.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=a,m.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(i).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},i))}_parseKeyframesIndex(e){let t=[],n=[];for(let i=1;i<e.times.length;i++){let a=this._timestampBase+Math.floor(e.times[i]*1e3);t.push(a),n.push(e.filepositions[i])}return{times:t,filepositions:n}}_parseAudioData(e,t,n,i){if(n<=1){m.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let a=this._littleEndian,A=new DataView(e,t,n).getUint8(0),pe=A>>>4;if(pe!==2&&pe!==10){this._onError(s.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+pe);return}let se=0,Ke=(A&12)>>>2;if(Ke>=0&&Ke<=4)se=this._flvSoundRateTable[Ke];else{this._onError(s.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Ke);return}let Qe=(A&2)>>>1,gt=A&1,Xe=this._audioMetadata,pt=this._audioTrack;if(Xe||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Xe=this._audioMetadata={},Xe.type="audio",Xe.id=pt.id,Xe.timescale=this._timescale,Xe.duration=this._duration,Xe.audioSampleRate=se,Xe.channelCount=gt===0?1:2),pe===10){let dt=this._parseAACAudioData(e,t+1,n-1);if(dt==null)return;if(dt.packetType===0){Xe.config&&m.w(this.TAG,"Found another AudioSpecificConfig!");let De=dt.data;Xe.audioSampleRate=De.samplingRate,Xe.channelCount=De.channelCount,Xe.codec=De.codec,Xe.originalCodec=De.originalCodec,Xe.config=De.config,Xe.refSampleDuration=1024/Xe.audioSampleRate*Xe.timescale,m.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",Xe);let Ve=this._mediaInfo;Ve.audioCodec=Xe.originalCodec,Ve.audioSampleRate=Xe.audioSampleRate,Ve.audioChannelCount=Xe.channelCount,Ve.hasVideo?Ve.videoCodec!=null&&(Ve.mimeType='video/x-flv; codecs="'+Ve.videoCodec+","+Ve.audioCodec+'"'):Ve.mimeType='video/x-flv; codecs="'+Ve.audioCodec+'"',Ve.isComplete()&&this._onMediaInfo(Ve)}else if(dt.packetType===1){let De=this._timestampBase+i,Ve={unit:dt.data,length:dt.data.byteLength,dts:De,pts:De};pt.samples.push(Ve),pt.length+=dt.data.length}else m.e(this.TAG,`Flv: Unsupported AAC data type ${dt.packetType}`)}else if(pe===2){if(!Xe.codec){let vt=this._parseMP3AudioData(e,t+1,n-1,!0);if(vt==null)return;Xe.audioSampleRate=vt.samplingRate,Xe.channelCount=vt.channelCount,Xe.codec=vt.codec,Xe.originalCodec=vt.originalCodec,Xe.refSampleDuration=1152/Xe.audioSampleRate*Xe.timescale,m.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Xe);let wt=this._mediaInfo;wt.audioCodec=Xe.codec,wt.audioSampleRate=Xe.audioSampleRate,wt.audioChannelCount=Xe.channelCount,wt.audioDataRate=vt.bitRate,wt.hasVideo?wt.videoCodec!=null&&(wt.mimeType='video/x-flv; codecs="'+wt.videoCodec+","+wt.audioCodec+'"'):wt.mimeType='video/x-flv; codecs="'+wt.audioCodec+'"',wt.isComplete()&&this._onMediaInfo(wt)}let dt=this._parseMP3AudioData(e,t+1,n-1,!1);if(dt==null)return;let De=this._timestampBase+i,Ve={unit:dt,length:dt.byteLength,dts:De,pts:De};pt.samples.push(Ve),pt.length+=dt.length}}_parseAACAudioData(e,t,n){if(n<=1){m.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let i={},a=new Uint8Array(e,t,n);return i.packetType=a[0],a[0]===0?i.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):i.data=a.subarray(1),i}_parseAACAudioSpecificConfig(e,t,n){let i=new Uint8Array(e,t,n),a=null,v=0,A=0,pe=null,se=0,Ke=null;if(v=A=i[0]>>>3,se=(i[0]&7)<<1|i[1]>>>7,se<0||se>=this._mpegSamplingRates.length){this._onError(s.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Qe=this._mpegSamplingRates[se],gt=(i[1]&120)>>>3;if(gt<0||gt>=8){this._onError(s.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}v===5&&(Ke=(i[1]&7)<<1|i[2]>>>7,pe=(i[2]&124)>>>2);let Xe=self.navigator.userAgent.toLowerCase();return Xe.indexOf("firefox")!==-1?se>=6?(v=5,a=new Array(4),Ke=se-3):(v=2,a=new Array(2),Ke=se):Xe.indexOf("android")!==-1?(v=2,a=new Array(2),Ke=se):(v=5,Ke=se,a=new Array(4),se>=6?Ke=se-3:gt===1&&(v=2,a=new Array(2),Ke=se)),a[0]=v<<3,a[0]|=(se&15)>>>1,a[1]=(se&15)<<7,a[1]|=(gt&15)<<3,v===5&&(a[1]|=(Ke&15)>>>1,a[2]=(Ke&1)<<7,a[2]|=8,a[3]=0),{config:a,samplingRate:Qe,channelCount:gt,codec:"mp4a.40."+v,originalCodec:"mp4a.40."+A}}_parseMP3AudioData(e,t,n,i){if(n<4){m.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let a=this._littleEndian,v=new Uint8Array(e,t,n),A=null;if(i){if(v[0]!==255)return;let pe=v[1]>>>3&3,se=(v[1]&6)>>1,Ke=(v[2]&240)>>>4,Qe=(v[2]&12)>>>2,Xe=(v[3]>>>6&3)!==3?2:1,pt=0,dt=0,De=34,Ve="mp3";switch(pe){case 0:pt=this._mpegAudioV25SampleRateTable[Qe];break;case 2:pt=this._mpegAudioV20SampleRateTable[Qe];break;case 3:pt=this._mpegAudioV10SampleRateTable[Qe];break}switch(se){case 1:De=34,Ke<this._mpegAudioL3BitRateTable.length&&(dt=this._mpegAudioL3BitRateTable[Ke]);break;case 2:De=33,Ke<this._mpegAudioL2BitRateTable.length&&(dt=this._mpegAudioL2BitRateTable[Ke]);break;case 3:De=32,Ke<this._mpegAudioL1BitRateTable.length&&(dt=this._mpegAudioL1BitRateTable[Ke]);break}A={bitRate:dt,samplingRate:pt,channelCount:Xe,codec:Ve,originalCodec:Ve}}else A=v;return A}_parseVideoData(e,t,n,i,a){if(n<=1){m.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let v=new Uint8Array(e,t,n)[0],A=(v&240)>>>4,pe=v&15;if(pe!==7){this._onError(s.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${pe}`);return}this._parseAVCVideoPacket(e,t+1,n-1,i,a,A)}_parseAVCVideoPacket(e,t,n,i,a,v){if(n<4){m.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let A=this._littleEndian,pe=new DataView(e,t,n),se=pe.getUint8(0),Qe=(pe.getUint32(0,!A)&16777215)<<8>>8;if(se===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(se===1)this._parseAVCVideoData(e,t+4,n-4,i,a,v,Qe);else if(se!==2){this._onError(s.FORMAT_ERROR,`Flv: Invalid video packet type ${se}`);return}}_parseAVCDecoderConfigurationRecord(e,t,n){if(n<7){m.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let i=this._videoMetadata,a=this._videoTrack,v=this._littleEndian,A=new DataView(e,t,n);i?typeof i.avcc!="undefined"&&m.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),i=this._videoMetadata={},i.type="video",i.id=a.id,i.timescale=this._timescale,i.duration=this._duration);let pe=A.getUint8(0),se=A.getUint8(1),Ke=A.getUint8(2),Qe=A.getUint8(3);if(pe!==1||se===0){this._onError(s.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(A.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(s.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let gt=A.getUint8(5)&31;if(gt===0){this._onError(s.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else gt>1&&m.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${gt}`);let Xe=6;for(let dt=0;dt<gt;dt++){let De=A.getUint16(Xe,!v);if(Xe+=2,De===0)continue;let Ve=new Uint8Array(e,t+Xe,De);Xe+=De;let vt=J.parseSPS(Ve);if(dt!==0)continue;i.codecWidth=vt.codec_size.width,i.codecHeight=vt.codec_size.height,i.presentWidth=vt.present_size.width,i.presentHeight=vt.present_size.height,i.profile=vt.profile_string,i.level=vt.level_string,i.bitDepth=vt.bit_depth,i.chromaFormat=vt.chroma_format,i.sarRatio=vt.sar_ratio,i.frameRate=vt.frame_rate,(vt.frame_rate.fixed===!1||vt.frame_rate.fps_num===0||vt.frame_rate.fps_den===0)&&(i.frameRate=this._referenceFrameRate);let wt=i.frameRate.fps_den,Je=i.frameRate.fps_num;i.refSampleDuration=i.timescale*(wt/Je);let sn=Ve.subarray(1,4),Qt="avc1.";for(let Ut=0;Ut<3;Ut++){let Jt=sn[Ut].toString(16);Jt.length<2&&(Jt="0"+Jt),Qt+=Jt}i.codec=Qt;let St=this._mediaInfo;St.width=i.codecWidth,St.height=i.codecHeight,St.fps=i.frameRate.fps,St.profile=i.profile,St.level=i.level,St.refFrames=vt.ref_frames,St.chromaFormat=vt.chroma_format_string,St.sarNum=i.sarRatio.width,St.sarDen=i.sarRatio.height,St.videoCodec=Qt,St.hasAudio?St.audioCodec!=null&&(St.mimeType='video/x-flv; codecs="'+St.videoCodec+","+St.audioCodec+'"'):St.mimeType='video/x-flv; codecs="'+St.videoCodec+'"',St.isComplete()&&this._onMediaInfo(St)}let pt=A.getUint8(Xe);if(pt===0){this._onError(s.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else pt>1&&m.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${pt}`);Xe++;for(let dt=0;dt<pt;dt++){let De=A.getUint16(Xe,!v);Xe+=2,De!==0&&(Xe+=De)}i.avcc=new Uint8Array(n),i.avcc.set(new Uint8Array(e,t,n),0),m.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",i)}_parseAVCVideoData(e,t,n,i,a,v,A){let pe=this._littleEndian,se=new DataView(e,t,n),Ke=[],Qe=0,gt=0;const Xe=this._naluLengthSize;let pt=this._timestampBase+i,dt=v===1;for(;gt<n;){if(gt+4>=n){m.w(this.TAG,`Malformed Nalu near timestamp ${pt}, offset = ${gt}, dataSize = ${n}`);break}let De=se.getUint32(gt,!pe);if(Xe===3&&(De>>>=8),De>n-Xe){m.w(this.TAG,`Malformed Nalus near timestamp ${pt}, NaluSize > DataSize!`);return}let Ve=se.getUint8(gt+Xe)&31;Ve===5&&(dt=!0);let vt=new Uint8Array(e,t+gt,Xe+De),wt={type:Ve,data:vt};Ke.push(wt),Qe+=vt.byteLength,gt+=Xe+De}if(Ke.length){let De=this._videoTrack,Ve={units:Ke,length:Qe,isKeyframe:dt,dts:pt,cts:A,pts:pt+A};dt&&(Ve.fileposition=a),De.samples.push(Ve),De.length+=Qe}}}var U=K;class g{static init(){g.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let t in g.types)g.types.hasOwnProperty(t)&&(g.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=g.constants={};e.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),e.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),e.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSC=e.STCO=e.STTS,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),e.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),e.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(e){let t=8,n=null,i=Array.prototype.slice.call(arguments,1),a=i.length;for(let A=0;A<a;A++)t+=i[A].byteLength;n=new Uint8Array(t),n[0]=t>>>24&255,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n.set(e,4);let v=8;for(let A=0;A<a;A++)n.set(i[A],v),v+=i[A].byteLength;return n}static generateInitSegment(e){let t=g.box(g.types.ftyp,g.constants.FTYP),n=g.moov(e),i=new Uint8Array(t.byteLength+n.byteLength);return i.set(t,0),i.set(n,t.byteLength),i}static moov(e){let t=g.mvhd(e.timescale,e.duration),n=g.trak(e),i=g.mvex(e);return g.box(g.types.moov,t,n,i)}static mvhd(e,t){return g.box(g.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,e&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(e){return g.box(g.types.trak,g.tkhd(e),g.mdia(e))}static tkhd(e){let t=e.id,n=e.duration,i=e.presentWidth,a=e.presentHeight;return g.box(g.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>>8&255,i&255,0,0,a>>>8&255,a&255,0,0]))}static mdia(e){return g.box(g.types.mdia,g.mdhd(e),g.hdlr(e),g.minf(e))}static mdhd(e){let t=e.timescale,n=e.duration;return g.box(g.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255,85,196,0,0]))}static hdlr(e){let t=null;return e.type==="audio"?t=g.constants.HDLR_AUDIO:t=g.constants.HDLR_VIDEO,g.box(g.types.hdlr,t)}static minf(e){let t=null;return e.type==="audio"?t=g.box(g.types.smhd,g.constants.SMHD):t=g.box(g.types.vmhd,g.constants.VMHD),g.box(g.types.minf,t,g.dinf(),g.stbl(e))}static dinf(){return g.box(g.types.dinf,g.box(g.types.dref,g.constants.DREF))}static stbl(e){return g.box(g.types.stbl,g.stsd(e),g.box(g.types.stts,g.constants.STTS),g.box(g.types.stsc,g.constants.STSC),g.box(g.types.stsz,g.constants.STSZ),g.box(g.types.stco,g.constants.STCO))}static stsd(e){return e.type==="audio"?e.codec==="mp3"?g.box(g.types.stsd,g.constants.STSD_PREFIX,g.mp3(e)):g.box(g.types.stsd,g.constants.STSD_PREFIX,g.mp4a(e)):g.box(g.types.stsd,g.constants.STSD_PREFIX,g.avc1(e))}static mp3(e){let t=e.channelCount,n=e.audioSampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,n>>>8&255,n&255,0,0]);return g.box(g.types[".mp3"],i)}static mp4a(e){let t=e.channelCount,n=e.audioSampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,n>>>8&255,n&255,0,0]);return g.box(g.types.mp4a,i,g.esds(e))}static esds(e){let t=e.config||[],n=t.length,i=new Uint8Array([0,0,0,0,3,23+n,0,1,0,4,15+n,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([n]).concat(t).concat([6,1,2]));return g.box(g.types.esds,i)}static avc1(e){let t=e.avcc,n=e.codecWidth,i=e.codecHeight,a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n>>>8&255,n&255,i>>>8&255,i&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return g.box(g.types.avc1,a,g.box(g.types.avcC,t))}static mvex(e){return g.box(g.types.mvex,g.trex(e))}static trex(e){let t=e.id,n=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return g.box(g.types.trex,n)}static moof(e,t){return g.box(g.types.moof,g.mfhd(e.sequenceNumber),g.traf(e,t))}static mfhd(e){let t=new Uint8Array([0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,e&255]);return g.box(g.types.mfhd,t)}static traf(e,t){let n=e.id,i=g.box(g.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255])),a=g.box(g.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255])),v=g.sdtp(e),A=g.trun(e,v.byteLength+16+16+8+16+8+8);return g.box(g.types.traf,i,a,A,v)}static sdtp(e){let t=e.samples||[],n=t.length,i=new Uint8Array(4+n);for(let a=0;a<n;a++){let v=t[a].flags;i[a+4]=v.isLeading<<6|v.dependsOn<<4|v.isDependedOn<<2|v.hasRedundancy}return g.box(g.types.sdtp,i)}static trun(e,t){let n=e.samples||[],i=n.length,a=12+16*i,v=new Uint8Array(a);t+=8+a,v.set([0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0);for(let A=0;A<i;A++){let pe=n[A].duration,se=n[A].size,Ke=n[A].flags,Qe=n[A].cts;v.set([pe>>>24&255,pe>>>16&255,pe>>>8&255,pe&255,se>>>24&255,se>>>16&255,se>>>8&255,se&255,Ke.isLeading<<2|Ke.dependsOn,Ke.isDependedOn<<6|Ke.hasRedundancy<<4|Ke.isNonSync,0,0,Qe>>>24&255,Qe>>>16&255,Qe>>>8&255,Qe&255],12+16*A)}return g.box(g.types.trun,v)}static mdat(e){return g.box(g.types.mdat,e)}}g.init();var H=g;class G{static getSilentFrame(e,t){if(e==="mp4a.40.2"){if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}var le=G;class Ne{constructor(e,t,n,i,a){this.dts=e,this.pts=t,this.duration=n,this.originalDts=i,this.isSyncPoint=a,this.fileposition=null}}class Ze{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(e){e.isSyncPoint=!0,this.syncPoints.push(e)}}class Ye{constructor(){this._list=[]}clear(){this._list=[]}appendArray(e){let t=this._list;e.length!==0&&(t.length>0&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))}getLastSyncPointBeforeDts(e){if(this._list.length==0)return null;let t=this._list,n=0,i=t.length-1,a=0,v=0,A=i;for(e<t[0].dts&&(n=0,v=A+1);v<=A;)if(a=v+Math.floor((A-v)/2),a===i||e>=t[a].dts&&e<t[a+1].dts){n=a;break}else t[a].dts<e?v=a+1:A=a-1;return this._list[n]}}class ct{constructor(e){this._type=e,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return this._list.length===0}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(e){let t=this._list;if(t.length===0)return-2;let n=t.length-1,i=0,a=0,v=n,A=0;if(e<t[0].originalBeginDts)return A=-1,A;for(;a<=v;)if(i=a+Math.floor((v-a)/2),i===n||e>t[i].lastSample.originalDts&&e<t[i+1].originalBeginDts){A=i;break}else t[i].originalBeginDts<e?a=i+1:v=i-1;return A}_searchNearestSegmentAfter(e){return this._searchNearestSegmentBefore(e)+1}append(e){let t=this._list,n=e,i=this._lastAppendLocation,a=0;i!==-1&&i<t.length&&n.originalBeginDts>=t[i].lastSample.originalDts&&(i===t.length-1||i<t.length-1&&n.originalBeginDts<t[i+1].originalBeginDts)?a=i+1:t.length>0&&(a=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=a,this._list.splice(a,0,n)}getLastSegmentBefore(e){let t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null}getLastSampleBefore(e){let t=this.getLastSegmentBefore(e);return t!=null?t.lastSample:null}getLastSyncPointBefore(e){let t=this._searchNearestSegmentBefore(e),n=this._list[t].syncPoints;for(;n.length===0&&t>0;)t--,n=this._list[t].syncPoints;return n.length>0?n[n.length-1]:null}}class ht{constructor(e){this.TAG="MP4Remuxer",this._config=e,this._isLive=e.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new ct("audio"),this._videoSegmentInfoList=new ct("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(D.chrome&&(D.version.major<50||D.version.major===50&&D.version.build<2661)),this._fillSilentAfterSeek=D.msedge||D.msie,this._mp3UseMpegAudio=!D.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(e){this._onInitSegment=e}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(e){this._onMediaSegment=e}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(e,t){if(!this._onMediaSegment)throw new X("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}_onTrackMetadataReceived(e,t){let n=null,i="mp4",a=t.codec;if(e==="audio")this._audioMeta=t,t.codec==="mp3"&&this._mp3UseMpegAudio?(i="mpeg",a="",n=new Uint8Array):n=H.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=H.generateInitSegment(t);else return;if(!this._onInitSegment)throw new X("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:a,container:`${e}/${i}`,mediaDuration:t.duration})}_calculateDtsBase(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let e=this._videoStashedLastSample,t=this._audioStashedLastSample,n={type:"video",id:1,sequenceNumber:0,samples:[],length:0};e!=null&&(n.samples.push(e),n.length=e.length);let i={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};t!=null&&(i.samples.push(t),i.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(i,!0)}_remuxAudio(e,t){if(this._audioMeta==null)return;let n=e,i=n.samples,a,v=-1,A=-1,pe=-1,se=this._audioMeta.refSampleDuration,Ke=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Qe=this._dtsBaseInited&&this._audioNextDts===void 0,gt=!1;if(!i||i.length===0||i.length===1&&!t)return;let Xe=0,pt=null,dt=0;Ke?(Xe=0,dt=n.length):(Xe=8,dt=8+n.length);let De=null;if(i.length>1&&(De=i.pop(),dt-=De.length),this._audioStashedLastSample!=null){let St=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(St),dt+=St.length}De!=null&&(this._audioStashedLastSample=De);let Ve=i[0].dts-this._dtsBase;if(this._audioNextDts)a=Ve-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())a=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(gt=!0);else{let St=this._audioSegmentInfoList.getLastSampleBefore(Ve);if(St!=null){let Ut=Ve-(St.originalDts+St.duration);Ut<=3&&(Ut=0);let Jt=St.dts+St.duration+Ut;a=Ve-Jt}else a=0}if(gt){let St=Ve-a,Ut=this._videoSegmentInfoList.getLastSegmentBefore(Ve);if(Ut!=null&&Ut.beginDts<St){let Jt=le.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Jt){let rn=Ut.beginDts,an=St-Ut.beginDts;m.v(this.TAG,`InsertPrefixSilentAudio: dts: ${rn}, duration: ${an}`),i.unshift({unit:Jt,dts:rn,pts:rn}),dt+=Jt.byteLength}}else gt=!1}let vt=[];for(let St=0;St<i.length;St++){let Ut=i[St],Jt=Ut.unit,rn=Ut.dts-this._dtsBase,an=rn-a;v===-1&&(v=an);let _n=0;St!==i.length-1?_n=i[St+1].dts-this._dtsBase-a-an:De!=null?_n=De.dts-this._dtsBase-a-an:vt.length>=1?_n=vt[vt.length-1].duration:_n=Math.floor(se);let Mn=!1,un=null;if(_n>se*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!D.safari){Mn=!0;let Fn=Math.abs(_n-se),on=Math.ceil(Fn/se),Un=an+se;m.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
dts: ${an+_n} ms, expected: ${an+Math.round(se)} ms, delta: ${Math.round(Fn)} ms, generate: ${on} frames`);let Pn=le.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Pn==null&&(m.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Pn=Jt),un=[];for(let ln=0;ln<on;ln++){let dn=Math.round(Un);if(un.length>0){let Sn=un[un.length-1];Sn.duration=dn-Sn.dts}let Nn={dts:dn,pts:dn,cts:0,unit:Pn,size:Pn.byteLength,duration:0,originalDts:rn,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};un.push(Nn),dt+=Nn.size,Un+=se}let vn=un[un.length-1];vn.duration=an+_n-vn.dts,_n=Math.round(se)}vt.push({dts:an,pts:an,cts:0,unit:Ut.unit,size:Ut.unit.byteLength,duration:_n,originalDts:rn,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Mn&&vt.push.apply(vt,un)}Ke?pt=new Uint8Array(dt):(pt=new Uint8Array(dt),pt[0]=dt>>>24&255,pt[1]=dt>>>16&255,pt[2]=dt>>>8&255,pt[3]=dt&255,pt.set(H.types.mdat,4));for(let St=0;St<vt.length;St++){let Ut=vt[St].unit;pt.set(Ut,Xe),Xe+=Ut.byteLength}let wt=vt[vt.length-1];A=wt.dts+wt.duration,this._audioNextDts=A;let Je=new Ze;Je.beginDts=v,Je.endDts=A,Je.beginPts=v,Je.endPts=A,Je.originalBeginDts=vt[0].originalDts,Je.originalEndDts=wt.originalDts+wt.duration,Je.firstSample=new Ne(vt[0].dts,vt[0].pts,vt[0].duration,vt[0].originalDts,!1),Je.lastSample=new Ne(wt.dts,wt.pts,wt.duration,wt.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Je),n.samples=vt,n.sequenceNumber++;let sn=null;Ke?sn=new Uint8Array:sn=H.moof(n,v),n.samples=[],n.length=0;let Qt={type:"audio",data:this._mergeBoxes(sn,pt).buffer,sampleCount:vt.length,info:Je};Ke&&Qe&&(Qt.timestampOffset=v),this._onMediaSegment("audio",Qt)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,i=n.samples,a,v=-1,A=-1,pe=-1,se=-1;if(!i||i.length===0||i.length===1&&!t)return;let Ke=8,Qe=null,gt=8+e.length,Xe=null;if(i.length>1&&(Xe=i.pop(),gt-=Xe.length),this._videoStashedLastSample!=null){let wt=this._videoStashedLastSample;this._videoStashedLastSample=null,i.unshift(wt),gt+=wt.length}Xe!=null&&(this._videoStashedLastSample=Xe);let pt=i[0].dts-this._dtsBase;if(this._videoNextDts)a=pt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())a=0;else{let wt=this._videoSegmentInfoList.getLastSampleBefore(pt);if(wt!=null){let Je=pt-(wt.originalDts+wt.duration);Je<=3&&(Je=0);let sn=wt.dts+wt.duration+Je;a=pt-sn}else a=0}let dt=new Ze,De=[];for(let wt=0;wt<i.length;wt++){let Je=i[wt],sn=Je.dts-this._dtsBase,Qt=Je.isKeyframe,St=sn-a,Ut=Je.cts,Jt=St+Ut;v===-1&&(v=St,pe=Jt);let rn=0;if(wt!==i.length-1?rn=i[wt+1].dts-this._dtsBase-a-St:Xe!=null?rn=Xe.dts-this._dtsBase-a-St:De.length>=1?rn=De[De.length-1].duration:rn=Math.floor(this._videoMeta.refSampleDuration),Qt){let an=new Ne(St,Jt,rn,Je.dts,!0);an.fileposition=Je.fileposition,dt.appendSyncPoint(an)}De.push({dts:St,pts:Jt,cts:Ut,units:Je.units,size:Je.length,isKeyframe:Qt,duration:rn,originalDts:sn,flags:{isLeading:0,dependsOn:Qt?2:1,isDependedOn:Qt?1:0,hasRedundancy:0,isNonSync:Qt?0:1}})}Qe=new Uint8Array(gt),Qe[0]=gt>>>24&255,Qe[1]=gt>>>16&255,Qe[2]=gt>>>8&255,Qe[3]=gt&255,Qe.set(H.types.mdat,4);for(let wt=0;wt<De.length;wt++){let Je=De[wt].units;for(;Je.length;){let Qt=Je.shift().data;Qe.set(Qt,Ke),Ke+=Qt.byteLength}}let Ve=De[De.length-1];if(A=Ve.dts+Ve.duration,se=Ve.pts+Ve.duration,this._videoNextDts=A,dt.beginDts=v,dt.endDts=A,dt.beginPts=pe,dt.endPts=se,dt.originalBeginDts=De[0].originalDts,dt.originalEndDts=Ve.originalDts+Ve.duration,dt.firstSample=new Ne(De[0].dts,De[0].pts,De[0].duration,De[0].originalDts,De[0].isKeyframe),dt.lastSample=new Ne(Ve.dts,Ve.pts,Ve.duration,Ve.originalDts,Ve.isKeyframe),this._isLive||this._videoSegmentInfoList.append(dt),n.samples=De,n.sequenceNumber++,this._forceFirstIDR){let wt=De[0].flags;wt.dependsOn=2,wt.isNonSync=0}let vt=H.moof(n,v);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(vt,Qe).buffer,sampleCount:De.length,info:dt})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var et=ht,Re={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};class Kt{constructor(e,t){this.TAG="TransmuxingController",this._emitter=new($()),this._config=t,e.segments||(e.segments=[{duration:e.duration,filesize:e.filesize,url:e.url}]),typeof e.cors!="boolean"&&(e.cors=!0),typeof e.withCredentials!="boolean"&&(e.withCredentials=!1),this._mediaDataSource=e,this._currentSegmentIndex=0;let n=0;this._mediaDataSource.segments.forEach(i=>{i.timestampBase=n,n+=i.duration,i.cors=e.cors,i.withCredentials=e.withCredentials,t.referrerPolicy&&(i.referrerPolicy=t.referrerPolicy)}),!isNaN(n)&&this._mediaDataSource.duration!==n&&(this._mediaDataSource.duration=n),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(e,t){this._currentSegmentIndex=e;let n=this._mediaDataSource.segments[e],i=this._ioctl=new O(n,this._config,e);i.onError=this._onIOException.bind(this),i.onSeeked=this._onIOSeeked.bind(this),i.onComplete=this._onIOComplete.bind(this),i.onRedirect=this._onIORedirect.bind(this),i.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):i.onDataArrival=this._onInitChunkArrival.bind(this),i.open(t)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(e){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){let n=this._mediaInfo.segments[t];if(n==null)this._pendingSeekTime=e;else{let i=n.getNearestKeyframe(e);this._remuxer.seek(i.milliseconds),this._ioctl.seek(i.fileposition),this._pendingResolveSeekPoint=i.milliseconds}}else{let n=this._mediaInfo.segments[t];if(n==null)this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t);else{let i=n.getNearestKeyframe(e);this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,i.fileposition),this._pendingResolveSeekPoint=i.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(e){let t=this._mediaDataSource.segments,n=t.length-1;for(let i=0;i<t.length;i++)if(e<t[i].timestampBase){n=i-1;break}return n}_onInitChunkArrival(e,t){let n=null,i=0;if(t>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,i=this._demuxer.parseChunks(e,t);else if((n=U.probe(e)).match){this._demuxer=new U(n,this._config),this._remuxer||(this._remuxer=new et(this._config));let a=this._mediaDataSource;a.duration!=null&&!isNaN(a.duration)&&(this._demuxer.overridedDuration=a.duration),typeof a.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=a.hasAudio),typeof a.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=a.hasVideo),this._demuxer.timestampBase=a.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),i=this._demuxer.parseChunks(e,t)}else n=null,m.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Re.DEMUX_ERROR,s.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),i=0;return i}_onMediaInfo(e){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,ot.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,ot.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=t,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let n=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(n)})}_onMetaDataArrived(e){this._emitter.emit(Re.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(Re.SCRIPTDATA_ARRIVED,e)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(e){let n=e+1;n<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(n)):(this._remuxer.flushStashedSamples(),this._emitter.emit(Re.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(e){let t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}_onIORecoveredEarlyEof(){this._emitter.emit(Re.RECOVERED_EARLY_EOF)}_onIOException(e,t){m.e(this.TAG,`IOException: type = ${e}, code = ${t.code}, msg = ${t.msg}`),this._emitter.emit(Re.IO_ERROR,e,t),this._disableStatisticsReporter()}_onDemuxException(e,t){m.e(this.TAG,`DemuxException: type = ${e}, info = ${t}`),this._emitter.emit(Re.DEMUX_ERROR,e,t)}_onRemuxerInitSegmentArrival(e,t){this._emitter.emit(Re.INIT_SEGMENT,e,t)}_onRemuxerMediaSegmentArrival(e,t){if(this._pendingSeekTime==null&&(this._emitter.emit(Re.MEDIA_SEGMENT,e,t),this._pendingResolveSeekPoint!=null&&e==="video")){let n=t.info.syncPoints,i=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,D.safari&&n.length>0&&n[0].originalDts===i&&(i=n[0].pts),this._emitter.emit(Re.RECOMMEND_SEEKPOINT,i)}}_enableStatisticsReporter(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(e){let t=this._mediaInfo.segments[e],n=Object.assign({},t);n.duration=this._mediaInfo.duration,n.segmentCount=this._mediaInfo.segmentCount,delete n.segments,delete n.keyframesIndex,this._emitter.emit(Re.MEDIA_INFO,n)}_reportStatisticsInfo(){let e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Re.STATISTICS_INFO,e)}}var Ft=Kt,Bt=function(ee){let e="TransmuxingWorker",t=null,n=dt.bind(this);E.install(),ee.addEventListener("message",function(De){switch(De.data.cmd){case"init":t=new Ft(De.data.param[0],De.data.param[1]),t.on(Re.IO_ERROR,gt.bind(this)),t.on(Re.DEMUX_ERROR,Xe.bind(this)),t.on(Re.INIT_SEGMENT,i.bind(this)),t.on(Re.MEDIA_SEGMENT,a.bind(this)),t.on(Re.LOADING_COMPLETE,v.bind(this)),t.on(Re.RECOVERED_EARLY_EOF,A.bind(this)),t.on(Re.MEDIA_INFO,pe.bind(this)),t.on(Re.METADATA_ARRIVED,se.bind(this)),t.on(Re.SCRIPTDATA_ARRIVED,Ke.bind(this)),t.on(Re.STATISTICS_INFO,Qe.bind(this)),t.on(Re.RECOMMEND_SEEKPOINT,pt.bind(this));break;case"destroy":t&&(t.destroy(),t=null),ee.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(De.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let Ve=De.data.param;$e.applyConfig(Ve),Ve.enableCallback===!0?$e.addLogListener(n):$e.removeLogListener(n);break}}});function i(De,Ve){let vt={msg:Re.INIT_SEGMENT,data:{type:De,data:Ve}};ee.postMessage(vt,[Ve.data])}function a(De,Ve){let vt={msg:Re.MEDIA_SEGMENT,data:{type:De,data:Ve}};ee.postMessage(vt,[Ve.data])}function v(){let De={msg:Re.LOADING_COMPLETE};ee.postMessage(De)}function A(){let De={msg:Re.RECOVERED_EARLY_EOF};ee.postMessage(De)}function pe(De){let Ve={msg:Re.MEDIA_INFO,data:De};ee.postMessage(Ve)}function se(De){let Ve={msg:Re.METADATA_ARRIVED,data:De};ee.postMessage(Ve)}function Ke(De){let Ve={msg:Re.SCRIPTDATA_ARRIVED,data:De};ee.postMessage(Ve)}function Qe(De){let Ve={msg:Re.STATISTICS_INFO,data:De};ee.postMessage(Ve)}function gt(De,Ve){ee.postMessage({msg:Re.IO_ERROR,data:{type:De,info:Ve}})}function Xe(De,Ve){ee.postMessage({msg:Re.DEMUX_ERROR,data:{type:De,info:Ve}})}function pt(De){ee.postMessage({msg:Re.RECOMMEND_SEEKPOINT,data:De})}function dt(De,Ve){ee.postMessage({msg:"logcat_callback",data:{type:De,logcat:Ve}})}};class Wt{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new($()),t.enableWorker&&typeof Worker!="undefined")try{let n=r(18034);this._worker=n(Bt),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[e,t]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},$e.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:$e.getConfig()})}catch(n){m.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Ft(e,t)}else this._controller=new Ft(e,t);if(this._controller){let n=this._controller;n.on(Re.IO_ERROR,this._onIOError.bind(this)),n.on(Re.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(Re.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(Re.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(Re.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(Re.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(Re.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(Re.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(Re.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(Re.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(Re.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),$e.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}hasWorker(){return this._worker!=null}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(Re.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(Re.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Re.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Re.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(Re.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(Re.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(Re.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(Re.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(Re.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(Re.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(Re.RECOMMEND_SEEKPOINT,e)})}_onLoggingConfigChanged(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})}_onWorkerMessage(e){let t=e.data,n=t.data;if(t.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(t.msg){case Re.INIT_SEGMENT:case Re.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case Re.LOADING_COMPLETE:case Re.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case Re.MEDIA_INFO:Object.setPrototypeOf(n,ot.prototype),this._emitter.emit(t.msg,n);break;case Re.METADATA_ARRIVED:case Re.SCRIPTDATA_ARRIVED:case Re.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case Re.IO_ERROR:case Re.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case Re.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":m.emitter.emit("log",n.type,n.logcat);break;default:break}}}var kt=Wt,$t={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Ht{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new($()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new Ye}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaSource)throw new X("MediaSource has been attached to an HTMLMediaElement!");let t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let e=this._mediaSource;for(let t in this._sourceBuffers){let n=this._pendingSegments[t];n.splice(0,n.length),this._pendingSegments[t]=null,this._pendingRemoveRanges[t]=null,this._lastInitSegments[t]=null;let i=this._sourceBuffers[t];if(i){if(e.readyState!=="closed"){try{e.removeSourceBuffer(i)}catch(a){m.e(this.TAG,a.message)}i.removeEventListener("error",this.e.onSourceBufferError),i.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if(e.readyState==="open")try{e.endOfStream()}catch(t){m.e(this.TAG,t.message)}e.removeEventListener("sourceopen",this.e.onSourceOpen),e.removeEventListener("sourceended",this.e.onSourceEnded),e.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(e,t){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(e),this._pendingSegments[e.type].push(e);return}let n=e,i=`${n.container}`;n.codec&&n.codec.length>0&&(i+=`;codecs=${n.codec}`);let a=!1;if(m.v(this.TAG,"Received Initialization Segment, mimeType: "+i),this._lastInitSegments[n.type]=n,i!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])m.v(this.TAG,`Notice: ${n.type} mimeType changed, origin: ${this._mimeTypes[n.type]}, target: ${i}`);else{a=!0;try{let v=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);v.addEventListener("error",this.e.onSourceBufferError),v.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(v){m.e(this.TAG,v.message),this._emitter.emit($t.ERROR,{code:v.code,msg:v.message});return}}this._mimeTypes[n.type]=i}t||this._pendingSegments[n.type].push(n),a||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),D.safari&&n.container==="audio/mpeg"&&n.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(e){let t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let n=this._sourceBuffers[t.type];n&&!n.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(e){for(let t in this._sourceBuffers){if(!this._sourceBuffers[t])continue;let n=this._sourceBuffers[t];if(this._mediaSource.readyState==="open")try{n.abort()}catch(a){m.e(this.TAG,a.message)}this._idrList.clear();let i=this._pendingSegments[t];if(i.splice(0,i.length),this._mediaSource.readyState!=="closed"){for(let a=0;a<n.buffered.length;a++){let v=n.buffered.start(a),A=n.buffered.end(a);this._pendingRemoveRanges[t].push({start:v,end:A})}if(n.updating||this._doRemoveRanges(),D.safari){let a=this._lastInitSegments[t];a&&(this._pendingSegments[t].push(a),n.updating||this._doAppendSegments())}}}}endOfStream(){let e=this._mediaSource,t=this._sourceBuffers;if(!e||e.readyState!=="open"){e&&e.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream())}getNearestKeyframe(e){return this._idrList.getLastSyncPointBeforeDts(e)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let i=n.buffered;if(i.length>=1&&e-i.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let i=n.buffered,a=!1;for(let v=0;v<i.length;v++){let A=i.start(v),pe=i.end(v);if(A<=e&&e<pe+3){if(e-A>=this._config.autoCleanupMaxBackwardDuration){a=!0;let se=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:A,end:se})}}else pe<e&&(a=!0,this._pendingRemoveRanges[t].push({start:A,end:pe}))}a&&!n.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let e=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||e.video&&e.video.updating||e.audio&&e.audio.updating)return;let t=this._mediaSource.duration,n=this._pendingMediaDuration;n>0&&(isNaN(t)||n>t)&&(m.v(this.TAG,`Update MediaSource duration from ${t} to ${n}`),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let e in this._pendingRemoveRanges){if(!this._sourceBuffers[e]||this._sourceBuffers[e].updating)continue;let t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];for(;n.length&&!t.updating;){let i=n.shift();t.remove(i.start,i.end)}}}_doAppendSegments(){let e=this._pendingSegments;for(let t in e)if(!(!this._sourceBuffers[t]||this._sourceBuffers[t].updating)&&e[t].length>0){let n=e[t].shift();if(n.timestampOffset){let i=this._sourceBuffers[t].timestampOffset,a=n.timestampOffset/1e3;Math.abs(i-a)>.1&&(m.v(this.TAG,`Update MPEG audio timestampOffset from ${i} to ${a}`),this._sourceBuffers[t].timestampOffset=a),delete n.timestampOffset}if(!n.data||n.data.byteLength===0)continue;try{this._sourceBuffers[t].appendBuffer(n.data),this._isBufferFull=!1,t==="video"&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(i){this._pendingSegments[t].unshift(n),i.code===22?(this._isBufferFull||this._emitter.emit($t.BUFFER_FULL),this._isBufferFull=!0):(m.e(this.TAG,i.message),this._emitter.emit($t.ERROR,{code:i.code,msg:i.message}))}}}_onSourceOpen(){if(m.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let e=this._pendingSourceBufferInit;for(;e.length;){let t=e.shift();this.appendInitSegment(t,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit($t.SOURCE_OPEN)}_onSourceEnded(){m.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){m.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let e=this._pendingSegments;return e.video.length>0||e.audio.length>0}_hasPendingRemoveRanges(){let e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit($t.UPDATE_END)}_onSourceBufferError(e){m.e(this.TAG,`SourceBuffer Error: ${e}`)}}var mt=Ht;const en={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},yt={NETWORK_EXCEPTION:Y.EXCEPTION,NETWORK_STATUS_CODE_INVALID:Y.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:Y.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:Y.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:s.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:s.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:s.CODEC_UNSUPPORTED};class P{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new($()),this._config=Fe(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()!=="flv")throw new ie("FlvPlayer requires an flv MediaDataSource input!");e.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let n=D.chrome&&(D.version.major<50||D.version.major===50&&D.version.build<2661);this._alwaysSeekKeyframe=!!(n||D.msedge||D.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===Le.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Le.MEDIA_INFO,this.mediaInfo)}):e===Le.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Le.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new mt(this._config),this._msectl.on($t.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on($t.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on($t.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on($t.ERROR,t=>{this._emitter.emit(Le.ERROR,en.MEDIA_ERROR,yt.MEDIA_MSE_ERROR,t)}),this._msectl.attachMediaElement(e),this._pendingSeekTime!=null)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new X("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new X("FlvPlayer.load() has been called, please call unload() first!");if(!this._hasPendingLoad){if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new kt(this._mediaDataSource,this._config),this._transmuxer.on(Re.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(Re.MEDIA_SEGMENT,(e,t)=>{if(this._msectl.appendMediaSegment(t),this._config.lazyLoad&&!this._config.isLive){let n=this._mediaElement.currentTime;t.info.endDts>=(n+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(m.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Re.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(Le.LOADING_COMPLETE)}),this._transmuxer.on(Re.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(Le.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Re.IO_ERROR,(e,t)=>{this._emitter.emit(Le.ERROR,en.NETWORK_ERROR,e,t)}),this._transmuxer.on(Re.DEMUX_ERROR,(e,t)=>{this._emitter.emit(Le.ERROR,en.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(Re.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(Le.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(Re.METADATA_ARRIVED,e=>{this._emitter.emit(Le.METADATA_ARRIVED,e)}),this._transmuxer.on(Re.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(Le.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(Re.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(Le.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Re.RECOMMEND_SEEKPOINT,e=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e/1e3)}),this._transmuxer.open()}}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){let a=this._mediaElement.getVideoPlaybackQuality();n=a.totalVideoFrames,i=a.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,i=0;for(let a=0;a<e.length;a++){let v=e.start(a),A=e.end(a);if(v<=t&&t<A){n=v,i=A;break}}i>=t+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(m.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){m.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1;for(let i=0;i<t.length;i++){let a=t.start(i),v=t.end(i);if(e>=a&&e<v){e>=v-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(m.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(e){let t=this._mediaElement.buffered;for(let n=0;n<t.length;n++){let i=t.start(n),a=t.end(n);if(e>=i&&e<a)return!0}return!1}_internalSeek(e){let t=this._isTimepointBuffered(e),n=!1,i=0;if(e<1&&this._mediaElement.buffered.length>0){let a=this._mediaElement.buffered.start(0);(a<1&&e<a||D.safari)&&(n=!0,i=D.safari?.1:a)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=i;else if(t){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=e;else{let a=this._msectl.getNearestKeyframe(Math.floor(e*1e3));this._requestSetTime=!0,a!=null?this._mediaElement.currentTime=a.dts/1e3:this._mediaElement.currentTime=e}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(e*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let e=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(e)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(e*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(e){let t=this._mediaElement;if(e||!this._receivedCanPlay||t.readyState<2){let n=t.buffered;n.length>0&&t.currentTime<n.start(0)&&(m.w(this.TAG,`Playback seems stuck at ${t.currentTime}, seek to ${n.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=n.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(e){let t=this._mediaElement.currentTime,n=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(t<1&&n.length>0){let i=n.start(0);if(i<1&&t<i||D.safari){this._requestSetTime=!0,this._mediaElement.currentTime=D.safari?.1:i;return}}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){let i=this._msectl.getNearestKeyframe(Math.floor(t*1e3));i!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=i.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(e){this._checkAndResumeStuckPlayback(!0)}_onvProgress(e){this._checkAndResumeStuckPlayback()}}var de=P;class me{constructor(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new($()),this._config=Fe(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()==="flv")throw new ie("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new ie(`NativePlayer(${e.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=e,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===Le.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Le.MEDIA_INFO,this.mediaInfo)}):e===Le.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Le.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new X("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e}get mediaInfo(){let t={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t}get statisticsInfo(){let e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){let a=this._mediaElement.getVideoPlaybackQuality();n=a.totalVideoFrames,i=a.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Le.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(Le.STATISTICS_INFO,this.statisticsInfo)}}var _e=me;E.install();function He(ee,e){let t=ee;if(t==null||typeof t!="object")throw new ie("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new ie("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new de(t,e);default:return new _e(t,e)}}function Me(){return q.supportMSEH264Playback()}function Pe(){return q.getFeatureList()}let Oe={};Oe.createPlayer=He,Oe.isSupported=Me,Oe.getFeatureList=Pe,Oe.BaseLoader=ne,Oe.LoaderStatus=w,Oe.LoaderErrors=Y,Oe.Events=Le,Oe.ErrorTypes=en,Oe.ErrorDetails=yt,Oe.FlvPlayer=de,Oe.NativePlayer=_e,Oe.LoggingControl=$e,Object.defineProperty(Oe,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var we=Oe},63185:function(_t,Ae,r){"use strict";r.d(Ae,{C2:function(){return T}});var l=r(14747),E=r(45503),j=r(67968);const $=m=>{const{checkboxCls:I}=m,oe=`${I}-wrapper`;return[{[`${I}-group`]:Object.assign(Object.assign({},(0,l.Wf)(m)),{display:"inline-flex",flexWrap:"wrap",columnGap:m.marginXS,[`> ${m.antCls}-row`]:{flex:1}}),[oe]:Object.assign(Object.assign({},(0,l.Wf)(m)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${oe}`]:{marginInlineStart:0},[`&${oe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[I]:Object.assign(Object.assign({},(0,l.Wf)(m)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:m.borderRadiusSM,alignSelf:"center",[`${I}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${I}-inner`]:Object.assign({},(0,l.oN)(m))},[`${I}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:m.checkboxSize,height:m.checkboxSize,direction:"ltr",backgroundColor:m.colorBgContainer,border:`${m.lineWidth}px ${m.lineType} ${m.colorBorder}`,borderRadius:m.borderRadiusSM,borderCollapse:"separate",transition:`all ${m.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:m.checkboxSize/14*5,height:m.checkboxSize/14*8,border:`${m.lineWidthBold}px solid ${m.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${m.motionDurationFast} ${m.motionEaseInBack}, opacity ${m.motionDurationFast}`}},"& + span":{paddingInlineStart:m.paddingXS,paddingInlineEnd:m.paddingXS}})},{[`
|
|
${oe}:not(${oe}-disabled),
|
|
${I}:not(${I}-disabled)
|
|
`]:{[`&:hover ${I}-inner`]:{borderColor:m.colorPrimary}},[`${oe}:not(${oe}-disabled)`]:{[`&:hover ${I}-checked:not(${I}-disabled) ${I}-inner`]:{backgroundColor:m.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${I}-checked:not(${I}-disabled):after`]:{borderColor:m.colorPrimaryHover}}},{[`${I}-checked`]:{[`${I}-inner`]:{backgroundColor:m.colorPrimary,borderColor:m.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${m.motionDurationMid} ${m.motionEaseOutBack} ${m.motionDurationFast}`}}},[`
|
|
${oe}-checked:not(${oe}-disabled),
|
|
${I}-checked:not(${I}-disabled)
|
|
`]:{[`&:hover ${I}-inner`]:{backgroundColor:m.colorPrimaryHover,borderColor:"transparent"}}},{[I]:{"&-indeterminate":{[`${I}-inner`]:{backgroundColor:m.colorBgContainer,borderColor:m.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:m.fontSizeLG/2,height:m.fontSizeLG/2,backgroundColor:m.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${oe}-disabled`]:{cursor:"not-allowed"},[`${I}-disabled`]:{[`&, ${I}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${I}-inner`]:{background:m.colorBgContainerDisabled,borderColor:m.colorBorder,"&:after":{borderColor:m.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:m.colorTextDisabled},[`&${I}-indeterminate ${I}-inner::after`]:{background:m.colorTextDisabled}}}]};function T(m,I){const oe=(0,E.TS)(I,{checkboxCls:`.${m}`,checkboxSize:I.controlInteractiveSize});return[$(oe)]}Ae.ZP=(0,j.Z)("Checkbox",(m,I)=>{let{prefixCls:oe}=I;return[T(oe,m)]})},35874:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return o}});var l=r(67294),E=r(91034),j=r(94184),$=r.n(j),T=r(87462),m=r(4942),I=r(97685),oe=r(45987),f=r(62709),X=r(71002),ie=r(12060);function ue(s,_,B){var S=React.useRef({});return(!("value"in S.current)||B(S.current.condition,_))&&(S.current.value=s(),S.current.condition=_),S.current.value}function w(s,_){typeof s=="function"?s(_):(0,X.Z)(s)==="object"&&s&&"current"in s&&(s.current=_)}function Y(){for(var s=arguments.length,_=new Array(s),B=0;B<s;B++)_[B]=arguments[B];var S=_.filter(function(K){return K});return S.length<=1?S[0]:function(K){_.forEach(function(U){w(U,K)})}}function ne(){for(var s=arguments.length,_=new Array(s),B=0;B<s;B++)_[B]=arguments[B];return useMemo(function(){return Y.apply(void 0,_)},_,function(S,K){return S.length===K.length&&S.every(function(U,g){return U===K[g]})})}function ae(s){var _,B,S=(0,ie.isMemo)(s)?s.type.type:s.type;return!(typeof S=="function"&&!((_=S.prototype)!==null&&_!==void 0&&_.render)||typeof s=="function"&&!((B=s.prototype)!==null&&B!==void 0&&B.render))}var c={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(_){var B=_.keyCode;if(_.altKey&&!_.ctrlKey||_.metaKey||B>=c.F1&&B<=c.F12)return!1;switch(B){case c.ALT:case c.CAPS_LOCK:case c.CONTEXT_MENU:case c.CTRL:case c.DOWN:case c.END:case c.ESC:case c.HOME:case c.INSERT:case c.LEFT:case c.MAC_FF_META:case c.META:case c.NUMLOCK:case c.NUM_CENTER:case c.PAGE_DOWN:case c.PAGE_UP:case c.PAUSE:case c.PRINT_SCREEN:case c.RIGHT:case c.SHIFT:case c.UP:case c.WIN_KEY:case c.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(_){if(_>=c.ZERO&&_<=c.NINE||_>=c.NUM_ZERO&&_<=c.NUM_MULTIPLY||_>=c.A&&_<=c.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&_===0)return!0;switch(_){case c.SPACE:case c.QUESTION_MARK:case c.NUM_PLUS:case c.NUM_MINUS:case c.NUM_PERIOD:case c.NUM_DIVISION:case c.SEMICOLON:case c.DASH:case c.EQUALS:case c.COMMA:case c.PERIOD:case c.SLASH:case c.APOSTROPHE:case c.SINGLE_QUOTE:case c.OPEN_SQUARE_BRACKET:case c.BACKSLASH:case c.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},D=c,N=function(_){return+setTimeout(_,16)},L=function(_){return clearTimeout(_)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(N=function(_){return window.requestAnimationFrame(_)},L=function(_){return window.cancelAnimationFrame(_)});var x=0,d=new Map;function b(s){d.delete(s)}var Z=function(_){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;x+=1;var S=x;function K(U){if(U===0)b(S),_();else{var g=N(function(){K(U-1)});d.set(S,g)}}return K(B),S};Z.cancel=function(s){var _=d.get(s);return b(_),L(_)};var F=Z,te=D.ESC,ye=D.TAB;function xe(s){var _=s.visible,B=s.triggerRef,S=s.onVisibleChange,K=s.autoFocus,U=s.overlayRef,g=l.useRef(!1),H=function(){if(_){var Ze,Ye;(Ze=B.current)===null||Ze===void 0||(Ye=Ze.focus)===null||Ye===void 0||Ye.call(Ze),S==null||S(!1)}},G=function(){var Ze;return(Ze=U.current)!==null&&Ze!==void 0&&Ze.focus?(U.current.focus(),g.current=!0,!0):!1},le=function(Ze){switch(Ze.keyCode){case te:H();break;case ye:{var Ye=!1;g.current||(Ye=G()),Ye?Ze.preventDefault():H();break}}};l.useEffect(function(){return _?(window.addEventListener("keydown",le),K&&F(G,3),function(){window.removeEventListener("keydown",le),g.current=!1}):function(){g.current=!1}},[_])}var k=(0,l.forwardRef)(function(s,_){var B=s.overlay,S=s.arrow,K=s.prefixCls,U=(0,l.useMemo)(function(){var H;return typeof B=="function"?H=B():H=B,H},[B]),g=Y(_,U==null?void 0:U.ref);return l.createElement(l.Fragment,null,S&&l.createElement("div",{className:"".concat(K,"-arrow")}),l.cloneElement(U,{ref:ae(U)?g:void 0}))}),Be=k,Q={adjustX:1,adjustY:1},ce=[0,0],M={topLeft:{points:["bl","tl"],overflow:Q,offset:[0,-4],targetOffset:ce},top:{points:["bc","tc"],overflow:Q,offset:[0,-4],targetOffset:ce},topRight:{points:["br","tr"],overflow:Q,offset:[0,-4],targetOffset:ce},bottomLeft:{points:["tl","bl"],overflow:Q,offset:[0,4],targetOffset:ce},bottom:{points:["tc","bc"],overflow:Q,offset:[0,4],targetOffset:ce},bottomRight:{points:["tr","br"],overflow:Q,offset:[0,4],targetOffset:ce}},O=M,ke=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Fe(s,_){var B,S=s.arrow,K=S===void 0?!1:S,U=s.prefixCls,g=U===void 0?"rc-dropdown":U,H=s.transitionName,G=s.animation,le=s.align,Ne=s.placement,Ze=Ne===void 0?"bottomLeft":Ne,Ye=s.placements,ct=Ye===void 0?O:Ye,ht=s.getPopupContainer,et=s.showAction,It=s.hideAction,Re=s.overlayClassName,Kt=s.overlayStyle,Ft=s.visible,Ot=s.trigger,Bt=Ot===void 0?["hover"]:Ot,Wt=s.autoFocus,kt=s.overlay,Zt=s.children,$t=s.onVisibleChange,Ht=(0,oe.Z)(s,ke),mt=l.useState(),en=(0,I.Z)(mt,2),yt=en[0],P=en[1],de="visible"in s?Ft:yt,me=l.useRef(null),_e=l.useRef(null),He=l.useRef(null);l.useImperativeHandle(_,function(){return me.current});var Me=function(a){P(a),$t==null||$t(a)};xe({visible:de,triggerRef:He,onVisibleChange:Me,autoFocus:Wt,overlayRef:_e});var Pe=function(a){var v=s.onOverlayClick;P(!1),v&&v(a)},Oe=function(){return l.createElement(Be,{ref:_e,overlay:kt,prefixCls:g,arrow:K})},we=function(){return typeof kt=="function"?Oe:Oe()},ee=function(){var a=s.minOverlayWidthMatchTrigger,v=s.alignPoint;return"minOverlayWidthMatchTrigger"in s?a:!v},e=function(){var a=s.openClassName;return a!==void 0?a:"".concat(g,"-open")},t=l.cloneElement(Zt,{className:$()((B=Zt.props)===null||B===void 0?void 0:B.className,de&&e()),ref:ae(Zt)?Y(He,Zt.ref):void 0}),n=It;return!n&&Bt.indexOf("contextMenu")!==-1&&(n=["click"]),l.createElement(f.Z,(0,T.Z)({builtinPlacements:ct},Ht,{prefixCls:g,ref:me,popupClassName:$()(Re,(0,m.Z)({},"".concat(g,"-show-arrow"),K)),popupStyle:Kt,action:Bt,showAction:et,hideAction:n,popupPlacement:Ze,popupAlign:le,popupTransitionName:H,popupAnimation:G,popupVisible:de,stretch:ee()?"minWidth":"",popup:we(),onPopupVisibleChange:Me,onPopupClick:Pe,getPopupContainer:ht}),t)}var Te=l.forwardRef(Fe),q=Te,ge=r(60276),Le=r(5663),Ce=r(10366),$e=r(80636),Tt=r(8745),ot=r(96159),Mt=r(53124),bt=r(68508),Nt=r(76529),xt=r(46605),Ct=r(66748);const Rt=null,Pt=s=>{const{menu:_,arrow:B,prefixCls:S,children:K,trigger:U,disabled:g,dropdownRender:H,getPopupContainer:G,overlayClassName:le,rootClassName:Ne,open:Ze,onOpenChange:Ye,visible:ct,onVisibleChange:ht,mouseEnterDelay:et=.15,mouseLeaveDelay:It=.1,autoAdjustOverflow:Re=!0,placement:Kt="",overlay:Ft,transitionName:Ot}=s,{getPopupContainer:Bt,getPrefixCls:Wt,direction:kt}=l.useContext(Mt.E_),Zt=l.useMemo(()=>{const t=Wt();return Ot!==void 0?Ot:Kt.includes("top")?`${t}-slide-down`:`${t}-slide-up`},[Wt,Kt,Ot]),$t=l.useMemo(()=>Kt?Kt.includes("Center")?Kt.slice(0,Kt.indexOf("Center")):Kt:kt==="rtl"?"bottomRight":"bottomLeft",[Kt,kt]),Ht=Wt("dropdown",S),[mt,en]=(0,Ct.Z)(Ht),[,yt]=(0,xt.Z)(),P=l.Children.only(K),de=(0,ot.Tm)(P,{className:$()(`${Ht}-trigger`,{[`${Ht}-rtl`]:kt==="rtl"},P.props.className),disabled:g}),me=g?[]:U;let _e;me&&me.includes("contextMenu")&&(_e=!0);const[He,Me]=(0,Le.Z)(!1,{value:Ze!=null?Ze:ct}),Pe=(0,ge.useEvent)(t=>{Ye==null||Ye(t),ht==null||ht(t),Me(t)}),Oe=$()(le,Ne,en,{[`${Ht}-rtl`]:kt==="rtl"}),we=(0,$e.Z)({arrowPointAtCenter:typeof B=="object"&&B.pointAtCenter,autoAdjustOverflow:Re,offset:yt.marginXXS,arrowWidth:B?yt.sizePopupArrow:0,borderRadius:yt.borderRadius}),ee=l.useCallback(()=>{Me(!1)},[]),e=()=>{let t;return _!=null&&_.items?t=l.createElement(bt.default,Object.assign({},_)):typeof Ft=="function"?t=Ft():t=Ft,H&&(t=H(t)),t=l.Children.only(typeof t=="string"?l.createElement("span",null,t):t),l.createElement(Nt.J,{prefixCls:`${Ht}-menu`,expandIcon:l.createElement("span",{className:`${Ht}-menu-submenu-arrow`},l.createElement(E.Z,{className:`${Ht}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ee,validator:n=>{let{mode:i}=n}},t)};return mt(l.createElement(q,Object.assign({alignPoint:_e},(0,Ce.Z)(s,["rootClassName"]),{mouseEnterDelay:et,mouseLeaveDelay:It,visible:He,builtinPlacements:we,arrow:!!B,overlayClassName:Oe,prefixCls:Ht,getPopupContainer:G||Bt,transitionName:Zt,trigger:me,overlay:e,placement:$t,onVisibleChange:Pe}),de))};function rt(s){return Object.assign(Object.assign({},s),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const fe=(0,Tt.Z)(Pt,"dropdown",s=>s,rt),J=s=>l.createElement(fe,Object.assign({},s),l.createElement("span",null));Pt._InternalPanelDoNotUseOrYouWillBeFired=J;var o=Pt},85418:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return ne}});var l=r(35874),E=r(94184),j=r.n(E),$=r(67294),T=r(25877),m=r(71577),I=r(53124),oe=r(93421),f=r(4173),X=r(66748),ie=function(ae,c){var D={};for(var N in ae)Object.prototype.hasOwnProperty.call(ae,N)&&c.indexOf(N)<0&&(D[N]=ae[N]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,N=Object.getOwnPropertySymbols(ae);L<N.length;L++)c.indexOf(N[L])<0&&Object.prototype.propertyIsEnumerable.call(ae,N[L])&&(D[N[L]]=ae[N[L]]);return D};const ue=ae=>{const{getPopupContainer:c,getPrefixCls:D,direction:N}=$.useContext(I.E_),{prefixCls:L,type:x="default",danger:d,disabled:b,loading:Z,onClick:F,htmlType:te,children:ye,className:xe,menu:k,arrow:Be,autoFocus:Q,overlay:ce,trigger:M,align:O,open:ke,onOpenChange:Fe,placement:Te,getPopupContainer:q,href:ge,icon:Le=$.createElement(T.Z,null),title:Ce,buttonsRender:$e=g=>g,mouseEnterDelay:Tt,mouseLeaveDelay:ot,overlayClassName:Mt,overlayStyle:bt,destroyPopupOnHide:Nt,dropdownRender:xt}=ae,Ct=ie(ae,["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","destroyPopupOnHide","dropdownRender"]),Rt=D("dropdown",L),Pt=`${Rt}-button`,[rt,fe]=(0,X.Z)(Rt),J={menu:k,arrow:Be,autoFocus:Q,align:O,disabled:b,trigger:b?[]:M,onOpenChange:Fe,getPopupContainer:q||c,mouseEnterDelay:Tt,mouseLeaveDelay:ot,overlayClassName:Mt,overlayStyle:bt,destroyPopupOnHide:Nt,dropdownRender:xt},{compactSize:o,compactItemClassnames:s}=(0,f.ri)(Rt,N),_=j()(Pt,s,xe,fe);"overlay"in ae&&(J.overlay=ce),"open"in ae&&(J.open=ke),"placement"in ae?J.placement=Te:J.placement=N==="rtl"?"bottomLeft":"bottomRight";const B=$.createElement(m.ZP,{type:x,danger:d,disabled:b,loading:Z,onClick:F,htmlType:te,href:ge,title:Ce},ye),S=$.createElement(m.ZP,{type:x,danger:d,icon:Le}),[K,U]=$e([B,S]);return rt($.createElement(oe.Z.Compact,Object.assign({className:_,size:o,block:!0},Ct),K,$.createElement(l.Z,Object.assign({},J),U)))};ue.__ANT_BUTTON=!0;var w=ue;const Y=l.Z;Y.Button=w;var ne=Y},66748:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return ie}});var l=r(14747),E=r(67771),j=r(33297),$=r(50438),T=r(97414),m=r(67968),I=r(45503),f=ue=>{const{componentCls:w,menuCls:Y,colorError:ne,colorTextLightSolid:ae}=ue,c=`${Y}-item`;return{[`${w}, ${w}-menu-submenu`]:{[`${Y} ${c}`]:{[`&${c}-danger:not(${c}-disabled)`]:{color:ne,"&:hover":{color:ae,backgroundColor:ne}}}}}};const X=ue=>{const{componentCls:w,menuCls:Y,zIndexPopup:ne,dropdownArrowDistance:ae,sizePopupArrow:c,antCls:D,iconCls:N,motionDurationMid:L,dropdownPaddingVertical:x,fontSize:d,dropdownEdgeChildPadding:b,colorTextDisabled:Z,fontSizeIcon:F,controlPaddingHorizontal:te,colorBgElevated:ye}=ue;return[{[w]:Object.assign(Object.assign({},(0,l.Wf)(ue)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ne,display:"block","&::before":{position:"absolute",insetBlock:-ae+c/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${D}-btn`]:{[`& > ${N}-down, & > ${D}-btn-icon > ${N}-down`]:{fontSize:F}},[`${w}-wrap`]:{position:"relative",[`${D}-btn > ${N}-down`]:{fontSize:F},[`${N}-down::before`]:{transition:`transform ${L}`}},[`${w}-wrap-open`]:{[`${N}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${D}-slide-down-enter${D}-slide-down-enter-active${w}-placement-bottomLeft,
|
|
&${D}-slide-down-appear${D}-slide-down-appear-active${w}-placement-bottomLeft,
|
|
&${D}-slide-down-enter${D}-slide-down-enter-active${w}-placement-bottom,
|
|
&${D}-slide-down-appear${D}-slide-down-appear-active${w}-placement-bottom,
|
|
&${D}-slide-down-enter${D}-slide-down-enter-active${w}-placement-bottomRight,
|
|
&${D}-slide-down-appear${D}-slide-down-appear-active${w}-placement-bottomRight`]:{animationName:E.fJ},[`&${D}-slide-up-enter${D}-slide-up-enter-active${w}-placement-topLeft,
|
|
&${D}-slide-up-appear${D}-slide-up-appear-active${w}-placement-topLeft,
|
|
&${D}-slide-up-enter${D}-slide-up-enter-active${w}-placement-top,
|
|
&${D}-slide-up-appear${D}-slide-up-appear-active${w}-placement-top,
|
|
&${D}-slide-up-enter${D}-slide-up-enter-active${w}-placement-topRight,
|
|
&${D}-slide-up-appear${D}-slide-up-appear-active${w}-placement-topRight`]:{animationName:E.Qt},[`&${D}-slide-down-leave${D}-slide-down-leave-active${w}-placement-bottomLeft,
|
|
&${D}-slide-down-leave${D}-slide-down-leave-active${w}-placement-bottom,
|
|
&${D}-slide-down-leave${D}-slide-down-leave-active${w}-placement-bottomRight`]:{animationName:E.Uw},[`&${D}-slide-up-leave${D}-slide-up-leave-active${w}-placement-topLeft,
|
|
&${D}-slide-up-leave${D}-slide-up-leave-active${w}-placement-top,
|
|
&${D}-slide-up-leave${D}-slide-up-leave-active${w}-placement-topRight`]:{animationName:E.ly}})},(0,T.ZP)(ue,{colorBg:ye,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${w} ${Y}`]:{position:"relative",margin:0},[`${Y}-submenu-popup`]:{position:"absolute",zIndex:ne,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${w}, ${w}-menu-submenu`]:{[Y]:Object.assign(Object.assign({padding:b,listStyleType:"none",backgroundColor:ye,backgroundClip:"padding-box",borderRadius:ue.borderRadiusLG,outline:"none",boxShadow:ue.boxShadowSecondary},(0,l.Qy)(ue)),{[`${Y}-item-group-title`]:{padding:`${x}px ${te}px`,color:ue.colorTextDescription,transition:`all ${L}`},[`${Y}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Y}-item-icon`]:{minWidth:d,marginInlineEnd:ue.marginXS,fontSize:ue.fontSizeSM},[`${Y}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${L}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Y}-item, ${Y}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${x}px ${te}px`,color:ue.colorText,fontWeight:"normal",fontSize:d,lineHeight:ue.lineHeight,cursor:"pointer",transition:`all ${L}`,borderRadius:ue.borderRadiusSM,"&:hover, &-active":{backgroundColor:ue.controlItemBgHover}},(0,l.Qy)(ue)),{"&-selected":{color:ue.colorPrimary,backgroundColor:ue.controlItemBgActive,"&:hover, &-active":{backgroundColor:ue.controlItemBgActiveHover}},"&-disabled":{color:Z,cursor:"not-allowed","&:hover":{color:Z,backgroundColor:ye,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ue.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ue.colorSplit},[`${w}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ue.paddingXS,[`${w}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ue.colorTextDescription,fontSize:F,fontStyle:"normal"}}}),[`${Y}-item-group-list`]:{margin:`0 ${ue.marginXS}px`,padding:0,listStyle:"none"},[`${Y}-submenu-title`]:{paddingInlineEnd:te+ue.fontSizeSM},[`${Y}-submenu-vertical`]:{position:"relative"},[`${Y}-submenu${Y}-submenu-disabled ${w}-menu-submenu-title`]:{[`&, ${w}-menu-submenu-arrow-icon`]:{color:Z,backgroundColor:ye,cursor:"not-allowed"}},[`${Y}-submenu-selected ${w}-menu-submenu-title`]:{color:ue.colorPrimary}})}},[(0,E.oN)(ue,"slide-up"),(0,E.oN)(ue,"slide-down"),(0,j.Fm)(ue,"move-up"),(0,j.Fm)(ue,"move-down"),(0,$._y)(ue,"zoom-big")]]};var ie=(0,m.Z)("Dropdown",(ue,w)=>{let{rootPrefixCls:Y}=w;const{marginXXS:ne,sizePopupArrow:ae,controlHeight:c,fontSize:D,lineHeight:N,paddingXXS:L,componentCls:x,borderRadiusLG:d}=ue,b=(c-D*N)/2,{dropdownArrowOffset:Z}=(0,T.fS)({contentRadius:d}),F=(0,I.TS)(ue,{menuCls:`${x}-menu`,rootPrefixCls:Y,dropdownArrowDistance:ae/2+ne,dropdownArrowOffset:Z,dropdownPaddingVertical:b,dropdownEdgeChildPadding:L});return[X(F),f(F)]},ue=>({zIndexPopup:ue.zIndexPopupBase+50}))},32983:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return L}});var l=r(94184),E=r.n(l),j=r(67294),$=r(53124),T=r(10110),m=r(84780),I=r(46605),f=()=>{const[,x]=(0,I.Z)(),b=new m.C(x.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return j.createElement("svg",{style:b,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},j.createElement("g",{fill:"none",fillRule:"evenodd"},j.createElement("g",{transform:"translate(24 31.67)"},j.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),j.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"}),j.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)"}),j.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"}),j.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"})),j.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"}),j.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},j.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),j.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ie=()=>{const[,x]=(0,I.Z)(),{colorFill:d,colorFillTertiary:b,colorFillQuaternary:Z,colorBgContainer:F}=x,{borderColor:te,shadowColor:ye,contentColor:xe}=(0,j.useMemo)(()=>({borderColor:new m.C(d).onBackground(F).toHexShortString(),shadowColor:new m.C(b).onBackground(F).toHexShortString(),contentColor:new m.C(Z).onBackground(F).toHexShortString()}),[d,b,Z,F]);return j.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},j.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},j.createElement("ellipse",{fill:ye,cx:"32",cy:"33",rx:"32",ry:"7"}),j.createElement("g",{fillRule:"nonzero",stroke:te},j.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"}),j.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:xe}))))},ue=r(67968),w=r(45503);const Y=x=>{const{componentCls:d,margin:b,marginXS:Z,marginXL:F,fontSize:te,lineHeight:ye}=x;return{[d]:{marginInline:Z,fontSize:te,lineHeight:ye,textAlign:"center",[`${d}-image`]:{height:x.emptyImgHeight,marginBottom:Z,opacity:x.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${d}-description`]:{color:x.colorText},[`${d}-footer`]:{marginTop:b},"&-normal":{marginBlock:F,color:x.colorTextDisabled,[`${d}-description`]:{color:x.colorTextDisabled},[`${d}-image`]:{height:x.emptyImgHeightMD}},"&-small":{marginBlock:Z,color:x.colorTextDisabled,[`${d}-image`]:{height:x.emptyImgHeightSM}}}}};var ne=(0,ue.Z)("Empty",x=>{const{componentCls:d,controlHeightLG:b}=x,Z=(0,w.TS)(x,{emptyImgCls:`${d}-img`,emptyImgHeight:b*2.5,emptyImgHeightMD:b,emptyImgHeightSM:b*.875});return[Y(Z)]}),ae=function(x,d){var b={};for(var Z in x)Object.prototype.hasOwnProperty.call(x,Z)&&d.indexOf(Z)<0&&(b[Z]=x[Z]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,Z=Object.getOwnPropertySymbols(x);F<Z.length;F++)d.indexOf(Z[F])<0&&Object.prototype.propertyIsEnumerable.call(x,Z[F])&&(b[Z[F]]=x[Z[F]]);return b};const c=j.createElement(f,null),D=j.createElement(ie,null),N=x=>{var{className:d,rootClassName:b,prefixCls:Z,image:F=c,description:te,children:ye,imageStyle:xe,style:k}=x,Be=ae(x,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Q,direction:ce,empty:M}=j.useContext($.E_),O=Q("empty",Z),[ke,Fe]=ne(O),[Te]=(0,T.Z)("Empty"),q=typeof te!="undefined"?te:Te==null?void 0:Te.description,ge=typeof q=="string"?q:"empty";let Le=null;return typeof F=="string"?Le=j.createElement("img",{alt:ge,src:F}):Le=F,ke(j.createElement("div",Object.assign({className:E()(Fe,O,M==null?void 0:M.className,{[`${O}-normal`]:F===D,[`${O}-rtl`]:ce==="rtl"},d,b),style:Object.assign(Object.assign({},M==null?void 0:M.style),k)},Be),j.createElement("div",{className:`${O}-image`,style:xe},Le),q&&j.createElement("div",{className:`${O}-description`},q),ye&&j.createElement("div",{className:`${O}-footer`},ye)))};N.PRESENTED_IMAGE_DEFAULT=c,N.PRESENTED_IMAGE_SIMPLE=D;var L=N},71322:function(_t,Ae,r){"use strict";r.d(Ae,{D:function(){return N},Z:function(){return d}});var l=r(87462),E=r(67294),j={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},$=j,T=r(74643),m=function(Z,F){return E.createElement(T.Z,(0,l.Z)({},Z,{ref:F,icon:$}))},I=E.forwardRef(m),oe=r(22751),f=r(91034),X=r(94184),ie=r.n(X),ue=r(10366),Y=b=>!isNaN(parseFloat(b))&&isFinite(b),ne=r(53124),ae=r(84321),c=function(b,Z){var F={};for(var te in b)Object.prototype.hasOwnProperty.call(b,te)&&Z.indexOf(te)<0&&(F[te]=b[te]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,te=Object.getOwnPropertySymbols(b);ye<te.length;ye++)Z.indexOf(te[ye])<0&&Object.prototype.propertyIsEnumerable.call(b,te[ye])&&(F[te[ye]]=b[te[ye]]);return F};const D={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},N=E.createContext({}),L=(()=>{let b=0;return function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return b+=1,`${Z}${b}`}})();var d=E.forwardRef((b,Z)=>{const{prefixCls:F,className:te,trigger:ye,children:xe,defaultCollapsed:k=!1,theme:Be="dark",style:Q={},collapsible:ce=!1,reverseArrow:M=!1,width:O=200,collapsedWidth:ke=80,zeroWidthTriggerStyle:Fe,breakpoint:Te,onCollapse:q,onBreakpoint:ge}=b,Le=c(b,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ce}=(0,E.useContext)(ae.Gs),[$e,Tt]=(0,E.useState)("collapsed"in b?b.collapsed:k),[ot,Mt]=(0,E.useState)(!1);(0,E.useEffect)(()=>{"collapsed"in b&&Tt(b.collapsed)},[b.collapsed]);const bt=(rt,fe)=>{"collapsed"in b||Tt(rt),q==null||q(rt,fe)},Nt=(0,E.useRef)();Nt.current=rt=>{Mt(rt.matches),ge==null||ge(rt.matches),$e!==rt.matches&&bt(rt.matches,"responsive")},(0,E.useEffect)(()=>{function rt(J){return Nt.current(J)}let fe;if(typeof window!="undefined"){const{matchMedia:J}=window;if(J&&Te&&Te in D){fe=J(`(max-width: ${D[Te]})`);try{fe.addEventListener("change",rt)}catch(o){fe.addListener(rt)}rt(fe)}}return()=>{try{fe==null||fe.removeEventListener("change",rt)}catch(J){fe==null||fe.removeListener(rt)}}},[Te]),(0,E.useEffect)(()=>{const rt=L("ant-sider-");return Ce.addSider(rt),()=>Ce.removeSider(rt)},[]);const xt=()=>{bt(!$e,"clickTrigger")},{getPrefixCls:Ct}=(0,E.useContext)(ne.E_),Rt=()=>{const rt=Ct("layout-sider",F),fe=(0,ue.Z)(Le,["collapsed"]),J=$e?ke:O,o=Y(J)?`${J}px`:String(J),s=parseFloat(String(ke||0))===0?E.createElement("span",{onClick:xt,className:ie()(`${rt}-zero-width-trigger`,`${rt}-zero-width-trigger-${M?"right":"left"}`),style:Fe},ye||E.createElement(I,null)):null,S={expanded:M?E.createElement(f.Z,null):E.createElement(oe.Z,null),collapsed:M?E.createElement(oe.Z,null):E.createElement(f.Z,null)}[$e?"collapsed":"expanded"],K=ye!==null?s||E.createElement("div",{className:`${rt}-trigger`,onClick:xt,style:{width:o}},ye||S):null,U=Object.assign(Object.assign({},Q),{flex:`0 0 ${o}`,maxWidth:o,minWidth:o,width:o}),g=ie()(rt,`${rt}-${Be}`,{[`${rt}-collapsed`]:!!$e,[`${rt}-has-trigger`]:ce&&ye!==null&&!s,[`${rt}-below`]:!!ot,[`${rt}-zero-width`]:parseFloat(o)===0},te);return E.createElement("aside",Object.assign({className:g},fe,{style:U,ref:Z}),E.createElement("div",{className:`${rt}-children`},xe),ce||ot&&s?K:null)},Pt=E.useMemo(()=>({siderCollapsed:$e}),[$e]);return E.createElement(N.Provider,{value:Pt},Rt())})},84321:function(_t,Ae,r){"use strict";r.d(Ae,{VY:function(){return L},$_:function(){return N},h4:function(){return D},Gs:function(){return w},ZP:function(){return x}});var l=r(74902),E=r(94184),j=r.n(E),$=r(10366),T=r(67294),m=r(53124),I=r(67968),f=d=>{const{componentCls:b,bodyBg:Z,lightSiderBg:F,lightTriggerBg:te,lightTriggerColor:ye}=d;return{[`${b}-sider-light`]:{background:F,[`${b}-sider-trigger`]:{color:ye,background:te},[`${b}-sider-zero-width-trigger`]:{color:ye,background:te,border:`1px solid ${Z}`,borderInlineStart:0}}}};const X=d=>{const{antCls:b,componentCls:Z,colorText:F,triggerColor:te,footerBg:ye,triggerBg:xe,headerHeight:k,headerPadding:Be,headerColor:Q,footerPadding:ce,triggerHeight:M,zeroTriggerHeight:O,zeroTriggerWidth:ke,motionDurationMid:Fe,motionDurationSlow:Te,fontSize:q,borderRadius:ge,bodyBg:Le,headerBg:Ce,siderBg:$e}=d;return{[Z]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Le,"&, *":{boxSizing:"border-box"},[`&${Z}-has-sider`]:{flexDirection:"row",[`> ${Z}, > ${Z}-content`]:{width:0}},[`${Z}-header, &${Z}-footer`]:{flex:"0 0 auto"},[`${Z}-sider`]:{position:"relative",minWidth:0,background:$e,transition:`all ${Fe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${b}-menu${b}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:M},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:M,color:te,lineHeight:`${M}px`,textAlign:"center",background:xe,cursor:"pointer",transition:`all ${Fe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:k,insetInlineEnd:-ke,zIndex:1,width:ke,height:O,color:te,fontSize:d.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:$e,borderStartStartRadius:0,borderStartEndRadius:ge,borderEndEndRadius:ge,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Te} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Te}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ke,borderStartStartRadius:ge,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ge}}}}},f(d)),{"&-rtl":{direction:"rtl"}}),[`${Z}-header`]:{height:k,padding:Be,color:Q,lineHeight:`${k}px`,background:Ce,[`${b}-menu`]:{lineHeight:"inherit"}},[`${Z}-footer`]:{padding:ce,color:F,fontSize:q,background:ye},[`${Z}-content`]:{flex:"auto",minHeight:0}}};var ie=(0,I.Z)("Layout",d=>[X(d)],d=>{const{colorBgLayout:b,controlHeight:Z,controlHeightLG:F,colorText:te,controlHeightSM:ye,marginXXS:xe,colorTextLightSolid:k,colorBgContainer:Be}=d,Q=F*1.25;return{colorBgHeader:"#001529",colorBgBody:b,colorBgTrigger:"#002140",bodyBg:b,headerBg:"#001529",headerHeight:Z*2,headerPadding:`0 ${Q}px`,headerColor:te,footerPadding:`${ye}px ${Q}px`,footerBg:b,siderBg:"#001529",triggerHeight:F+xe*2,triggerBg:"#002140",triggerColor:k,zeroTriggerWidth:F,zeroTriggerHeight:F,lightSiderBg:Be,lightTriggerBg:Be,lightTriggerColor:te}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ue=function(d,b){var Z={};for(var F in d)Object.prototype.hasOwnProperty.call(d,F)&&b.indexOf(F)<0&&(Z[F]=d[F]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,F=Object.getOwnPropertySymbols(d);te<F.length;te++)b.indexOf(F[te])<0&&Object.prototype.propertyIsEnumerable.call(d,F[te])&&(Z[F[te]]=d[F[te]]);return Z};const w=T.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Y(d){let{suffixCls:b,tagName:Z,displayName:F}=d;return te=>T.forwardRef((xe,k)=>T.createElement(te,Object.assign({ref:k,suffixCls:b,tagName:Z},xe)))}const ne=T.forwardRef((d,b)=>{const{prefixCls:Z,suffixCls:F,className:te,tagName:ye}=d,xe=ue(d,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:k}=T.useContext(m.E_),Be=k("layout",Z),[Q,ce]=ie(Be),M=F?`${Be}-${F}`:Be;return Q(T.createElement(ye,Object.assign({className:j()(Z||M,te,ce),ref:b},xe)))}),ae=T.forwardRef((d,b)=>{const{direction:Z}=T.useContext(m.E_),[F,te]=T.useState([]),{prefixCls:ye,className:xe,rootClassName:k,children:Be,hasSider:Q,tagName:ce,style:M}=d,O=ue(d,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ke=(0,$.Z)(O,["suffixCls"]),{getPrefixCls:Fe,layout:Te}=T.useContext(m.E_),q=Fe("layout",ye),[ge,Le]=ie(q),Ce=j()(q,{[`${q}-has-sider`]:typeof Q=="boolean"?Q:F.length>0,[`${q}-rtl`]:Z==="rtl"},Te==null?void 0:Te.className,xe,k,Le),$e=T.useMemo(()=>({siderHook:{addSider:Tt=>{te(ot=>[].concat((0,l.Z)(ot),[Tt]))},removeSider:Tt=>{te(ot=>ot.filter(Mt=>Mt!==Tt))}}}),[]);return ge(T.createElement(w.Provider,{value:$e},T.createElement(ce,Object.assign({ref:b,className:Ce,style:Object.assign(Object.assign({},Te==null?void 0:Te.style),M)},ke),Be)))}),c=Y({tagName:"div",displayName:"Layout"})(ae),D=Y({suffixCls:"header",tagName:"header",displayName:"Header"})(ne),N=Y({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ne),L=Y({suffixCls:"content",tagName:"main",displayName:"Content"})(ne);var x=c},76529:function(_t,Ae,r){"use strict";r.d(Ae,{J:function(){return m}});var l=r(67294),E=r(4173),j=r(60276),$=function(I,oe){var f={};for(var X in I)Object.prototype.hasOwnProperty.call(I,X)&&oe.indexOf(X)<0&&(f[X]=I[X]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,X=Object.getOwnPropertySymbols(I);ie<X.length;ie++)oe.indexOf(X[ie])<0&&Object.prototype.propertyIsEnumerable.call(I,X[ie])&&(f[X[ie]]=I[X[ie]]);return f};const T=l.createContext(null),m=l.forwardRef((I,oe)=>{const{children:f}=I,X=$(I,["children"]),ie=l.useContext(T),ue=l.useMemo(()=>Object.assign(Object.assign({},ie),X),[ie,X.prefixCls,X.mode,X.selectable]);return l.createElement(T.Provider,{value:ue},l.createElement(E.BR,null,(0,j.supportNodeRef)(f)?l.cloneElement(f,{ref:oe}):f))});Ae.Z=T},68508:function(_t,Ae,r){"use strict";r.d(Ae,{default:function(){return rt}});var l=r(78595),E=r(67294),j=r(71322),$=r(94184),T=r.n($),m=r(53124),I=function(fe,J){var o={};for(var s in fe)Object.prototype.hasOwnProperty.call(fe,s)&&J.indexOf(s)<0&&(o[s]=fe[s]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,s=Object.getOwnPropertySymbols(fe);_<s.length;_++)J.indexOf(s[_])<0&&Object.prototype.propertyIsEnumerable.call(fe,s[_])&&(o[s[_]]=fe[s[_]]);return o},f=fe=>{const{prefixCls:J,className:o,dashed:s}=fe,_=I(fe,["prefixCls","className","dashed"]),{getPrefixCls:B}=E.useContext(m.E_),S=B("menu",J),K=T()({[`${S}-item-divider-dashed`]:!!s},o);return E.createElement(l.iz,Object.assign({className:K},_))},X=r(37419),ie=r(10366),ue=r(83062),w=r(96159),ne=(0,E.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),c=fe=>{var J;const{className:o,children:s,icon:_,title:B,danger:S}=fe,{prefixCls:K,firstLevel:U,direction:g,disableMenuItemTitleTooltip:H,inlineCollapsed:G}=E.useContext(ne),le=et=>{const It=E.createElement("span",{className:`${K}-title-content`},s);return(!_||(0,w.l$)(s)&&s.type==="span")&&s&&et&&U&&typeof s=="string"?E.createElement("div",{className:`${K}-inline-collapsed-noicon`},s.charAt(0)):It},{siderCollapsed:Ne}=E.useContext(j.D);let Ze=B;typeof B=="undefined"?Ze=U?s:"":B===!1&&(Ze="");const Ye={title:Ze};!Ne&&!G&&(Ye.title=null,Ye.open=!1);const ct=(0,X.Z)(s).length;let ht=E.createElement(l.ck,Object.assign({},(0,ie.Z)(fe,["title","icon","danger"]),{className:T()({[`${K}-item-danger`]:S,[`${K}-item-only-child`]:(_?ct+1:ct)===1},o),title:typeof B=="string"?B:void 0}),(0,w.Tm)(_,{className:T()((0,w.l$)(_)?(J=_.props)===null||J===void 0?void 0:J.className:"",`${K}-item-icon`)}),le(G));return H||(ht=E.createElement(ue.Z,Object.assign({},Ye,{placement:g==="rtl"?"left":"right",overlayClassName:`${K}-inline-collapsed-tooltip`}),ht)),ht},N=fe=>{var J;const{popupClassName:o,icon:s,title:_,theme:B}=fe,S=E.useContext(ne),{prefixCls:K,inlineCollapsed:U,theme:g}=S,H=(0,l.Xl)();let G;if(!s)G=U&&!H.length&&_&&typeof _=="string"?E.createElement("div",{className:`${K}-inline-collapsed-noicon`},_.charAt(0)):E.createElement("span",{className:`${K}-title-content`},_);else{const Ne=(0,w.l$)(_)&&_.type==="span";G=E.createElement(E.Fragment,null,(0,w.Tm)(s,{className:T()((0,w.l$)(s)?(J=s.props)===null||J===void 0?void 0:J.className:"",`${K}-item-icon`)}),Ne?_:E.createElement("span",{className:`${K}-title-content`},_))}const le=E.useMemo(()=>Object.assign(Object.assign({},S),{firstLevel:!1}),[S]);return E.createElement(ne.Provider,{value:le},E.createElement(l.Wd,Object.assign({},(0,ie.Z)(fe,["icon"]),{title:G,popupClassName:T()(K,o,`${K}-${B||g}`)})))},L=r(25877),x=r(60276),d=r(33603),b=r(76529),Z=function(fe,J){var o={};for(var s in fe)Object.prototype.hasOwnProperty.call(fe,s)&&J.indexOf(s)<0&&(o[s]=fe[s]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,s=Object.getOwnPropertySymbols(fe);_<s.length;_++)J.indexOf(s[_])<0&&Object.prototype.propertyIsEnumerable.call(fe,s[_])&&(o[s[_]]=fe[s[_]]);return o};function F(fe){return(fe||[]).map((J,o)=>{if(J&&typeof J=="object"){const s=J,{label:_,children:B,key:S,type:K}=s,U=Z(s,["label","children","key","type"]),g=S!=null?S:`tmp-${o}`;return B||K==="group"?K==="group"?E.createElement(l.BW,Object.assign({key:g},U,{title:_}),F(B)):E.createElement(N,Object.assign({key:g},U,{title:_}),F(B)):K==="divider"?E.createElement(f,Object.assign({key:g},U)):E.createElement(c,Object.assign({key:g},U),_)}return null}).filter(J=>J)}function te(fe){return E.useMemo(()=>fe&&F(fe),[fe])}var ye=r(84780),xe=r(14747),k=r(33507),Be=r(67771),Q=r(50438),ce=r(67968),M=r(45503),ke=fe=>{const{componentCls:J,motionDurationSlow:o,horizontalLineHeight:s,colorSplit:_,lineWidth:B,lineType:S,itemPaddingInline:K}=fe;return{[`${J}-horizontal`]:{lineHeight:s,border:0,borderBottom:`${B}px ${S} ${_}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${J}-item, ${J}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:K},[`> ${J}-item:hover,
|
|
> ${J}-item-active,
|
|
> ${J}-submenu ${J}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${J}-item, ${J}-submenu-title`]:{transition:[`border-color ${o}`,`background ${o}`].join(",")},[`${J}-submenu-arrow`]:{display:"none"}}}},Te=fe=>{let{componentCls:J,menuArrowOffset:o}=fe;return{[`${J}-rtl`]:{direction:"rtl"},[`${J}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${J}-rtl${J}-vertical,
|
|
${J}-submenu-rtl ${J}-vertical`]:{[`${J}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${o})`},"&::after":{transform:`rotate(45deg) translateY(${o})`}}}}};const q=fe=>Object.assign({},(0,xe.oN)(fe));var Le=(fe,J)=>{const{componentCls:o,itemColor:s,itemSelectedColor:_,groupTitleColor:B,itemBg:S,subMenuItemBg:K,itemSelectedBg:U,activeBarHeight:g,activeBarWidth:H,activeBarBorderWidth:G,motionDurationSlow:le,motionEaseInOut:Ne,motionEaseOut:Ze,itemPaddingInline:Ye,motionDurationMid:ct,itemHoverColor:ht,lineType:et,colorSplit:It,itemDisabledColor:Re,dangerItemColor:Kt,dangerItemHoverColor:Ft,dangerItemSelectedColor:Ot,dangerItemActiveBg:Bt,dangerItemSelectedBg:Wt,itemHoverBg:kt,itemActiveBg:Zt,menuSubMenuBg:$t,horizontalItemSelectedColor:Ht,horizontalItemSelectedBg:mt,horizontalItemBorderRadius:en,horizontalItemHoverBg:yt,popupBg:P}=fe;return{[`${o}-${J}, ${o}-${J} > ${o}`]:{color:s,background:S,[`&${o}-root:focus-visible`]:Object.assign({},q(fe)),[`${o}-item-group-title`]:{color:B},[`${o}-submenu-selected`]:{[`> ${o}-submenu-title`]:{color:_}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${Re} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:ht}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:kt},"&:active":{backgroundColor:Zt}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:kt},"&:active":{backgroundColor:Zt}}},[`${o}-item-danger`]:{color:Kt,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:Ft}},[`&${o}-item:active`]:{background:Bt}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:_,[`&${o}-item-danger`]:{color:Ot},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:U,[`&${o}-item-danger`]:{backgroundColor:Wt}},[`${o}-item, ${o}-submenu-title`]:{[`&:not(${o}-item-disabled):focus-visible`]:Object.assign({},q(fe))},[`&${o}-submenu > ${o}`]:{backgroundColor:$t},[`&${o}-popup > ${o}`]:{backgroundColor:P},[`&${o}-horizontal`]:Object.assign(Object.assign({},J==="dark"?{borderBottom:0}:{}),{[`> ${o}-item, > ${o}-submenu`]:{top:G,marginTop:-G,marginBottom:0,borderRadius:en,"&::after":{position:"absolute",insetInline:Ye,bottom:0,borderBottom:`${g}px solid transparent`,transition:`border-color ${le} ${Ne}`,content:'""'},"&:hover, &-active, &-open":{background:yt,"&::after":{borderBottomWidth:g,borderBottomColor:Ht}},"&-selected":{color:Ht,backgroundColor:mt,"&:hover":{backgroundColor:mt},"&::after":{borderBottomWidth:g,borderBottomColor:Ht}}}}),[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${G}px ${et} ${It}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:K},[`${o}-item, ${o}-submenu-title`]:G&&H?{width:`calc(100% + ${G}px)`}:{},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${H}px solid ${_}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ct} ${Ze}`,`opacity ${ct} ${Ze}`].join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:Ot}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ct} ${Ne}`,`opacity ${ct} ${Ne}`].join(",")}}}}}};const Ce=fe=>{const{componentCls:J,itemHeight:o,itemMarginInline:s,padding:_,menuArrowSize:B,marginXS:S,itemMarginBlock:K}=fe,U=_+B+S;return{[`${J}-item`]:{position:"relative",overflow:"hidden"},[`${J}-item, ${J}-submenu-title`]:{height:o,lineHeight:`${o}px`,paddingInline:_,overflow:"hidden",textOverflow:"ellipsis",marginInline:s,marginBlock:K,width:`calc(100% - ${s*2}px)`},[`> ${J}-item,
|
|
> ${J}-submenu > ${J}-submenu-title`]:{height:o,lineHeight:`${o}px`},[`${J}-item-group-list ${J}-submenu-title,
|
|
${J}-submenu-title`]:{paddingInlineEnd:U}}};var Tt=fe=>{const{componentCls:J,iconCls:o,itemHeight:s,colorTextLightSolid:_,dropdownWidth:B,controlHeightLG:S,motionDurationMid:K,motionEaseOut:U,paddingXL:g,itemMarginInline:H,fontSizeLG:G,motionDurationSlow:le,paddingXS:Ne,boxShadowSecondary:Ze,collapsedWidth:Ye,collapsedIconSize:ct}=fe,ht={height:s,lineHeight:`${s}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[J]:{"&-inline, &-vertical":Object.assign({[`&${J}-root`]:{boxShadow:"none"}},Ce(fe))},[`${J}-submenu-popup`]:{[`${J}-vertical`]:Object.assign(Object.assign({},Ce(fe)),{boxShadow:Ze})}},{[`${J}-submenu-popup ${J}-vertical${J}-sub`]:{minWidth:B,maxHeight:`calc(100vh - ${S*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${J}-inline`]:{width:"100%",[`&${J}-root`]:{[`${J}-item, ${J}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${le}`,`background ${le}`,`padding ${K} ${U}`].join(","),[`> ${J}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${J}-sub${J}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${J}-submenu > ${J}-submenu-title`]:ht,[`& ${J}-item-group-title`]:{paddingInlineStart:g}},[`${J}-item`]:ht}},{[`${J}-inline-collapsed`]:{width:Ye,[`&${J}-root`]:{[`${J}-item, ${J}-submenu ${J}-submenu-title`]:{[`> ${J}-inline-collapsed-noicon`]:{fontSize:G,textAlign:"center"}}},[`> ${J}-item,
|
|
> ${J}-item-group > ${J}-item-group-list > ${J}-item,
|
|
> ${J}-item-group > ${J}-item-group-list > ${J}-submenu > ${J}-submenu-title,
|
|
> ${J}-submenu > ${J}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${G/2}px - ${H}px)`,textOverflow:"clip",[`
|
|
${J}-submenu-arrow,
|
|
${J}-submenu-expand-icon
|
|
`]:{opacity:0},[`${J}-item-icon, ${o}`]:{margin:0,fontSize:ct,lineHeight:`${s}px`,"+ span":{display:"inline-block",opacity:0}}},[`${J}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${J}-item-icon, ${o}`]:{display:"none"},"a, a:hover":{color:_}},[`${J}-item-group-title`]:Object.assign(Object.assign({},xe.vS),{paddingInline:Ne})}}]};const ot=fe=>{const{componentCls:J,motionDurationSlow:o,motionDurationMid:s,motionEaseInOut:_,motionEaseOut:B,iconCls:S,iconSize:K,iconMarginInlineEnd:U}=fe;return{[`${J}-item, ${J}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${_}`].join(","),[`${J}-item-icon, ${S}`]:{minWidth:K,fontSize:K,transition:[`font-size ${s} ${B}`,`margin ${o} ${_}`,`color ${o}`].join(","),"+ span":{marginInlineStart:U,opacity:1,transition:[`opacity ${o} ${_}`,`margin ${o}`,`color ${o}`].join(",")}},[`${J}-item-icon`]:Object.assign({},(0,xe.Ro)()),[`&${J}-item-only-child`]:{[`> ${S}, > ${J}-item-icon`]:{marginInlineEnd:0}}},[`${J}-item-disabled, ${J}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${J}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Mt=fe=>{const{componentCls:J,motionDurationSlow:o,motionEaseInOut:s,borderRadius:_,menuArrowSize:B,menuArrowOffset:S}=fe;return{[`${J}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:fe.margin,width:B,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${o} ${s}, opacity ${o}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:B*.6,height:B*.15,backgroundColor:"currentcolor",borderRadius:_,transition:[`background ${o} ${s}`,`transform ${o} ${s}`,`top ${o} ${s}`,`color ${o} ${s}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${S})`},"&::after":{transform:`rotate(-45deg) translateY(${S})`}}}}},bt=fe=>{const{antCls:J,componentCls:o,fontSize:s,motionDurationSlow:_,motionDurationMid:B,motionEaseInOut:S,paddingXS:K,padding:U,colorSplit:g,lineWidth:H,zIndexPopup:G,borderRadiusLG:le,subMenuItemBorderRadius:Ne,menuArrowSize:Ze,menuArrowOffset:Ye,lineType:ct,menuPanelMaskInset:ht,groupTitleLineHeight:et,groupTitleFontSize:It}=fe;return[{"":{[`${o}`]:Object.assign(Object.assign({},(0,xe.dF)()),{"&-hidden":{display:"none"}})},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(fe)),(0,xe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:s,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${_} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:fe.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${K}px ${U}px`,fontSize:It,lineHeight:et,transition:`all ${_}`},[`&-horizontal ${o}-submenu`]:{transition:[`border-color ${_} ${S}`,`background ${_} ${S}`].join(",")},[`${o}-submenu, ${o}-submenu-inline`]:{transition:[`border-color ${_} ${S}`,`background ${_} ${S}`,`padding ${B} ${S}`].join(",")},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:[`background ${_} ${S}`,`padding ${_} ${S}`].join(",")},[`${o}-title-content`]:{transition:`color ${_}`},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:g,borderStyle:ct,borderWidth:0,borderTopWidth:H,marginBlock:H,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ot(fe)),{[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${s*2}px ${U}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:G,borderRadius:le,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ht}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ht},"\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:fe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:fe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:fe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:fe.paddingXS},[`> ${o}`]:Object.assign(Object.assign(Object.assign({borderRadius:le},ot(fe)),Mt(fe)),{[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:Ne},[`${o}-submenu-title::after`]:{transition:`transform ${_} ${S}`}})}}),Mt(fe)),{[`&-inline-collapsed ${o}-submenu-arrow,
|
|
&-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ye})`},"&::after":{transform:`rotate(45deg) translateX(-${Ye})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(-${Ze*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ye})`},"&::before":{transform:`rotate(45deg) translateX(${Ye})`}}})},{[`${J}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]};var Nt=(fe,J)=>(0,ce.Z)("Menu",s=>{if(J===!1)return[];const{colorBgElevated:_,colorPrimary:B,colorTextLightSolid:S,controlHeightLG:K,fontSize:U,darkItemColor:g,darkDangerItemColor:H,darkItemBg:G,darkSubMenuItemBg:le,darkItemSelectedColor:Ne,darkItemSelectedBg:Ze,darkDangerItemSelectedBg:Ye,darkItemHoverBg:ct,darkGroupTitleColor:ht,darkItemHoverColor:et,darkItemDisabledColor:It,darkDangerItemHoverColor:Re,darkDangerItemSelectedColor:Kt,darkDangerItemActiveBg:Ft}=s,Ot=U/7*5,Bt=(0,M.TS)(s,{menuArrowSize:Ot,menuHorizontalHeight:K*1.15,menuArrowOffset:`${Ot*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:_}),Wt=(0,M.TS)(Bt,{itemColor:g,itemHoverColor:et,groupTitleColor:ht,itemSelectedColor:Ne,itemBg:G,popupBg:G,subMenuItemBg:le,itemActiveBg:"transparent",itemSelectedBg:Ze,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ct,itemDisabledColor:It,dangerItemColor:H,dangerItemHoverColor:Re,dangerItemSelectedColor:Kt,dangerItemActiveBg:Ft,dangerItemSelectedBg:Ye,menuSubMenuBg:le,horizontalItemSelectedColor:S,horizontalItemSelectedBg:B});return[bt(Bt),ke(Bt),Tt(Bt),Le(Bt,"light"),Le(Wt,"dark"),Te(Bt),(0,k.Z)(Bt),(0,Be.oN)(Bt,"slide-up"),(0,Be.oN)(Bt,"slide-down"),(0,Q._y)(Bt,"zoom-big")]},s=>{const{colorPrimary:_,colorError:B,colorTextDisabled:S,colorErrorBg:K,colorText:U,colorTextDescription:g,colorBgContainer:H,colorFillAlter:G,colorFillContent:le,lineWidth:Ne,lineWidthBold:Ze,controlItemBgActive:Ye,colorBgTextHover:ct,controlHeightLG:ht,lineHeight:et,colorBgElevated:It,marginXXS:Re,padding:Kt,fontSize:Ft,controlHeightSM:Ot,fontSizeLG:Bt,colorTextLightSolid:Wt,colorErrorHover:kt}=s,Zt=new ye.C(Wt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:s.zIndexPopupBase+50,radiusItem:s.borderRadiusLG,itemBorderRadius:s.borderRadiusLG,radiusSubMenuItem:s.borderRadiusSM,subMenuItemBorderRadius:s.borderRadiusSM,colorItemText:U,itemColor:U,colorItemTextHover:U,itemHoverColor:U,colorItemTextHoverHorizontal:_,horizontalItemHoverColor:_,colorGroupTitle:g,groupTitleColor:g,colorItemTextSelected:_,itemSelectedColor:_,colorItemTextSelectedHorizontal:_,horizontalItemSelectedColor:_,colorItemBg:H,itemBg:H,colorItemBgHover:ct,itemHoverBg:ct,colorItemBgActive:le,itemActiveBg:Ye,colorSubItemBg:G,subMenuItemBg:G,colorItemBgSelected:Ye,itemSelectedBg:Ye,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ze,activeBarHeight:Ze,colorActiveBarBorderSize:Ne,activeBarBorderWidth:Ne,colorItemTextDisabled:S,itemDisabledColor:S,colorDangerItemText:B,dangerItemColor:B,colorDangerItemTextHover:B,dangerItemHoverColor:B,colorDangerItemTextSelected:B,dangerItemSelectedColor:B,colorDangerItemBgActive:K,dangerItemActiveBg:K,colorDangerItemBgSelected:K,dangerItemSelectedBg:K,itemMarginInline:s.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ht,groupTitleLineHeight:et,collapsedWidth:ht*2,popupBg:It,itemMarginBlock:Re,itemPaddingInline:Kt,horizontalLineHeight:`${ht*1.15}px`,iconSize:Ft,iconMarginInlineEnd:Ot-Ft,collapsedIconSize:Bt,groupTitleFontSize:Ft,darkItemDisabledColor:new ye.C(Wt).setAlpha(.25).toRgbString(),darkItemColor:Zt,darkDangerItemColor:B,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Wt,darkItemSelectedBg:_,darkDangerItemSelectedBg:B,darkItemHoverBg:"transparent",darkGroupTitleColor:Zt,darkItemHoverColor:Wt,darkDangerItemHoverColor:kt,darkDangerItemSelectedColor:Wt,darkDangerItemActiveBg:B}},{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"]]})(fe),xt=function(fe,J){var o={};for(var s in fe)Object.prototype.hasOwnProperty.call(fe,s)&&J.indexOf(s)<0&&(o[s]=fe[s]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,s=Object.getOwnPropertySymbols(fe);_<s.length;_++)J.indexOf(s[_])<0&&Object.prototype.propertyIsEnumerable.call(fe,s[_])&&(o[s[_]]=fe[s[_]]);return o},Rt=(0,E.forwardRef)((fe,J)=>{var o,s;const _=E.useContext(b.Z),B=_||{},{getPrefixCls:S,getPopupContainer:K,direction:U,menu:g}=E.useContext(m.E_),H=S(),{prefixCls:G,className:le,style:Ne,theme:Ze="light",expandIcon:Ye,_internalDisableMenuItemTitleTooltip:ct,inlineCollapsed:ht,siderCollapsed:et,items:It,children:Re,rootClassName:Kt,mode:Ft,selectable:Ot,onClick:Bt,overflowedIndicatorPopupClassName:Wt}=fe,kt=xt(fe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Zt=(0,ie.Z)(kt,["collapsedWidth"]),$t=te(It)||Re;(o=B.validator)===null||o===void 0||o.call(B,{mode:Ft});const Ht=(0,x.useEvent)(function(){var Oe;Bt==null||Bt.apply(void 0,arguments),(Oe=B.onClick)===null||Oe===void 0||Oe.call(B)}),mt=B.mode||Ft,en=Ot!=null?Ot:B.selectable,yt=E.useMemo(()=>et!==void 0?et:ht,[ht,et]),P={horizontal:{motionName:`${H}-slide-up`},inline:(0,d.Z)(H),other:{motionName:`${H}-zoom-big`}},de=S("menu",G||B.prefixCls),[me,_e]=Nt(de,!_),He=T()(`${de}-${Ze}`,g==null?void 0:g.className,le);let Me;if(typeof Ye=="function")Me=Ye;else if(Ye===null||Ye===!1)Me=null;else if(B.expandIcon===null||B.expandIcon===!1)Me=null;else{const Oe=Ye!=null?Ye:B.expandIcon;Me=(0,w.Tm)(Oe,{className:T()(`${de}-submenu-expand-icon`,(0,w.l$)(Oe)?(s=Oe.props)===null||s===void 0?void 0:s.className:"")})}const Pe=E.useMemo(()=>({prefixCls:de,inlineCollapsed:yt||!1,direction:U,firstLevel:!0,theme:Ze,mode:mt,disableMenuItemTitleTooltip:ct}),[de,yt,U,ct,Ze]);return me(E.createElement(b.Z.Provider,{value:null},E.createElement(ne.Provider,{value:Pe},E.createElement(l.ZP,Object.assign({getPopupContainer:K,overflowedIndicator:E.createElement(L.Z,null),overflowedIndicatorPopupClassName:T()(de,`${de}-${Ze}`,Wt),mode:mt,selectable:en,onClick:Ht},Zt,{inlineCollapsed:yt,style:Object.assign(Object.assign({},g==null?void 0:g.style),Ne),className:He,prefixCls:de,direction:U,defaultMotions:P,expandIcon:Me,ref:J,rootClassName:T()(Kt,_e)}),$t))))});const Pt=(0,E.forwardRef)((fe,J)=>{const o=(0,E.useRef)(null),s=E.useContext(j.D);return(0,E.useImperativeHandle)(J,()=>({menu:o.current,focus:_=>{var B;(B=o.current)===null||B===void 0||B.focus(_)}})),E.createElement(Rt,Object.assign({ref:o},fe,s))});Pt.Item=c,Pt.SubMenu=N,Pt.Divider=f,Pt.ItemGroup=l.BW;var rt=Pt},12604:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return Te}});var l=r(87462),E=r(67294),j={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"},$=j,T=r(74643),m=function(ge,Le){return E.createElement(T.Z,(0,l.Z)({},ge,{ref:Le,icon:$}))},I=E.forwardRef(m),oe=r(94184),f=r.n(oe),X=r(4942),ie=r(97685),ue=r(45987),w=r(21770),Y=r(15105),ne=r(64217);function ae(q,ge){var Le=q.disabled,Ce=q.prefixCls,$e=q.character,Tt=q.characterRender,ot=q.index,Mt=q.count,bt=q.value,Nt=q.allowHalf,xt=q.focused,Ct=q.onHover,Rt=q.onClick,Pt=function(S){Ct(S,ot)},rt=function(S){Rt(S,ot)},fe=function(S){S.keyCode===Y.Z.ENTER&&Rt(S,ot)},J=ot+1,o=new Set([Ce]);bt===0&&ot===0&&xt?o.add("".concat(Ce,"-focused")):Nt&&bt+.5>=J&&bt<J?(o.add("".concat(Ce,"-half")),o.add("".concat(Ce,"-active")),xt&&o.add("".concat(Ce,"-focused"))):(J<=bt?o.add("".concat(Ce,"-full")):o.add("".concat(Ce,"-zero")),J===bt&&xt&&o.add("".concat(Ce,"-focused")));var s=typeof $e=="function"?$e(q):$e,_=E.createElement("li",{className:f()(Array.from(o)),ref:ge},E.createElement("div",{onClick:Le?null:rt,onKeyDown:Le?null:fe,onMouseMove:Le?null:Pt,role:"radio","aria-checked":bt>ot?"true":"false","aria-posinset":ot+1,"aria-setsize":Mt,tabIndex:Le?-1:0},E.createElement("div",{className:"".concat(Ce,"-first")},s),E.createElement("div",{className:"".concat(Ce,"-second")},s)));return Tt&&(_=Tt(_,q)),_}var c=E.forwardRef(ae);function D(){var q=E.useRef({});function ge(Ce){return q.current[Ce]}function Le(Ce){return function($e){q.current[Ce]=$e}}return[ge,Le]}function N(q){var ge=q.pageXOffset,Le="scrollLeft";if(typeof ge!="number"){var Ce=q.document;ge=Ce.documentElement[Le],typeof ge!="number"&&(ge=Ce.body[Le])}return ge}function L(q){var ge,Le,Ce=q.ownerDocument,$e=Ce.body,Tt=Ce&&Ce.documentElement,ot=q.getBoundingClientRect();return ge=ot.left,Le=ot.top,ge-=Tt.clientLeft||$e.clientLeft||0,Le-=Tt.clientTop||$e.clientTop||0,{left:ge,top:Le}}function x(q){var ge=L(q),Le=q.ownerDocument,Ce=Le.defaultView||Le.parentWindow;return ge.left+=N(Ce),ge.left}var d=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function b(q,ge){var Le,Ce=q.prefixCls,$e=Ce===void 0?"rc-rate":Ce,Tt=q.className,ot=q.defaultValue,Mt=q.value,bt=q.count,Nt=bt===void 0?5:bt,xt=q.allowHalf,Ct=xt===void 0?!1:xt,Rt=q.allowClear,Pt=Rt===void 0?!0:Rt,rt=q.character,fe=rt===void 0?"\u2605":rt,J=q.characterRender,o=q.disabled,s=q.direction,_=s===void 0?"ltr":s,B=q.tabIndex,S=B===void 0?0:B,K=q.autoFocus,U=q.onHoverChange,g=q.onChange,H=q.onFocus,G=q.onBlur,le=q.onKeyDown,Ne=q.onMouseLeave,Ze=(0,ue.Z)(q,d),Ye=D(),ct=(0,ie.Z)(Ye,2),ht=ct[0],et=ct[1],It=E.useRef(null),Re=function(){if(!o){var v;(v=It.current)===null||v===void 0||v.focus()}};E.useImperativeHandle(ge,function(){return{focus:Re,blur:function(){if(!o){var v;(v=It.current)===null||v===void 0||v.blur()}}}});var Kt=(0,w.Z)(ot||0,{value:Mt}),Ft=(0,ie.Z)(Kt,2),Ot=Ft[0],Bt=Ft[1],Wt=(0,w.Z)(null),kt=(0,ie.Z)(Wt,2),Zt=kt[0],$t=kt[1],Ht=function(v,A){var pe=_==="rtl",se=v+1;if(Ct){var Ke=ht(v),Qe=x(Ke),gt=Ke.clientWidth;(pe&&A-Qe>gt/2||!pe&&A-Qe<gt/2)&&(se-=.5)}return se},mt=function(v){Bt(v),g==null||g(v)},en=E.useState(!1),yt=(0,ie.Z)(en,2),P=yt[0],de=yt[1],me=function(){de(!0),H==null||H()},_e=function(){de(!1),G==null||G()},He=E.useState(null),Me=(0,ie.Z)(He,2),Pe=Me[0],Oe=Me[1],we=function(v,A){var pe=Ht(A,v.pageX);pe!==Zt&&(Oe(pe),$t(null)),U==null||U(pe)},ee=function(v){o||(Oe(null),$t(null),U==null||U(void 0)),v&&(Ne==null||Ne(v))},e=function(v,A){var pe=Ht(A,v.pageX),se=!1;Pt&&(se=pe===Ot),ee(),mt(se?0:pe),$t(se?pe:null)},t=function(v){var A=v.keyCode,pe=_==="rtl",se=Ot;A===Y.Z.RIGHT&&se<Nt&&!pe?(Ct?se+=.5:se+=1,mt(se),v.preventDefault()):A===Y.Z.LEFT&&se>0&&!pe||A===Y.Z.RIGHT&&se>0&&pe?(Ct?se-=.5:se-=1,mt(se),v.preventDefault()):A===Y.Z.LEFT&&se<Nt&&pe&&(Ct?se+=.5:se+=1,mt(se),v.preventDefault()),le==null||le(v)};E.useEffect(function(){K&&!o&&Re()},[]);var n=new Array(Nt).fill(0).map(function(a,v){return E.createElement(c,{ref:et(v),index:v,count:Nt,disabled:o,prefixCls:"".concat($e,"-star"),allowHalf:Ct,value:Pe===null?Ot:Pe,onClick:e,onHover:we,key:a||v,character:fe,characterRender:J,focused:P})}),i=f()($e,Tt,(Le={},(0,X.Z)(Le,"".concat($e,"-disabled"),o),(0,X.Z)(Le,"".concat($e,"-rtl"),_==="rtl"),Le));return E.createElement("ul",(0,l.Z)({className:i,onMouseLeave:ee,tabIndex:o?-1:S,onFocus:o?null:me,onBlur:o?null:_e,onKeyDown:o?null:t,ref:It,role:"radiogroup"},(0,ne.Z)(Ze,{aria:!0,data:!0,attr:!0})),n)}var Z=E.forwardRef(b),F=Z,te=r(53124),ye=r(83062),xe=r(14747),k=r(67968),Be=r(45503);const Q=q=>{const{componentCls:ge}=q;return{[`${ge}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:q.marginXS},"> div":{transition:`all ${q.motionDurationMid}, outline 0s`,"&:hover":{transform:q.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${q.lineWidth}px dashed ${q.starColor}`,transform:q.starHoverScale}},"&-first, &-second":{color:q.starBg,transition:`all ${q.motionDurationMid}`,userSelect:"none",[q.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${ge}-star-first, &-half ${ge}-star-second`]:{opacity:1},[`&-half ${ge}-star-first, &-full ${ge}-star-second`]:{color:"inherit"}}}},ce=q=>({[`&-rtl${q.componentCls}`]:{direction:"rtl"}}),M=q=>{const{componentCls:ge}=q;return{[ge]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(q)),{display:"inline-block",margin:0,padding:0,color:q.starColor,fontSize:q.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${ge} ${ge}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Q(q)),{[`+ ${ge}-text`]:{display:"inline-block",marginInlineStart:q.marginXS,fontSize:q.fontSize}}),ce(q))}};var O=(0,k.Z)("Rate",q=>{const ge=(0,Be.TS)(q,{});return[M(ge)]},q=>({starColor:q.yellow6,starSize:q.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:q.colorFillContent})),ke=function(q,ge){var Le={};for(var Ce in q)Object.prototype.hasOwnProperty.call(q,Ce)&&ge.indexOf(Ce)<0&&(Le[Ce]=q[Ce]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Ce=Object.getOwnPropertySymbols(q);$e<Ce.length;$e++)ge.indexOf(Ce[$e])<0&&Object.prototype.propertyIsEnumerable.call(q,Ce[$e])&&(Le[Ce[$e]]=q[Ce[$e]]);return Le},Te=E.forwardRef((q,ge)=>{const{prefixCls:Le,className:Ce,rootClassName:$e,style:Tt,tooltips:ot,character:Mt=E.createElement(I,null)}=q,bt=ke(q,["prefixCls","className","rootClassName","style","tooltips","character"]),Nt=(o,s)=>{let{index:_}=s;return ot?E.createElement(ye.Z,{title:ot[_]},o):o},{getPrefixCls:xt,direction:Ct,rate:Rt}=E.useContext(te.E_),Pt=xt("rate",Le),[rt,fe]=O(Pt),J=Object.assign(Object.assign({},Rt==null?void 0:Rt.style),Tt);return rt(E.createElement(F,Object.assign({ref:ge,character:Mt,characterRender:Nt},bt,{className:f()(Ce,$e,fe,Rt==null?void 0:Rt.className),style:J,prefixCls:Pt,direction:Ct})))})},93421:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return c}});var l=r(67294),E=r(94184),j=r.n(E),$=r(37419),T=r(53124),m=r(4173);const I=l.createContext({latestIndex:0}),oe=I.Provider;var X=D=>{let{className:N,index:L,children:x,split:d,style:b}=D;const{latestIndex:Z}=l.useContext(I);return x==null?null:l.createElement(l.Fragment,null,l.createElement("div",{className:N,style:b},x),L<Z&&d&&l.createElement("span",{className:`${N}-split`},d))},ie=r(51916);function ue(D){return["small","middle","large"].includes(D)}function w(D){return D?typeof D=="number"&&!Number.isNaN(D):!1}var Y=function(D,N){var L={};for(var x in D)Object.prototype.hasOwnProperty.call(D,x)&&N.indexOf(x)<0&&(L[x]=D[x]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,x=Object.getOwnPropertySymbols(D);d<x.length;d++)N.indexOf(x[d])<0&&Object.prototype.propertyIsEnumerable.call(D,x[d])&&(L[x[d]]=D[x[d]]);return L};const ae=l.forwardRef((D,N)=>{var L,x;const{getPrefixCls:d,space:b,direction:Z}=l.useContext(T.E_),{size:F=(b==null?void 0:b.size)||"small",align:te,className:ye,rootClassName:xe,children:k,direction:Be="horizontal",prefixCls:Q,split:ce,style:M,wrap:O=!1,classNames:ke,styles:Fe}=D,Te=Y(D,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[q,ge]=Array.isArray(F)?F:[F,F],Le=ue(ge),Ce=ue(q),$e=w(ge),Tt=w(q),ot=(0,$.Z)(k,{keepEmpty:!0}),Mt=te===void 0&&Be==="horizontal"?"center":te,bt=d("space",Q),[Nt,xt]=(0,ie.Z)(bt),Ct=j()(bt,b==null?void 0:b.className,xt,`${bt}-${Be}`,{[`${bt}-rtl`]:Z==="rtl",[`${bt}-align-${Mt}`]:Mt,[`${bt}-gap-row-${ge}`]:Le,[`${bt}-gap-col-${q}`]:Ce},ye,xe),Rt=j()(`${bt}-item`,(L=ke==null?void 0:ke.item)!==null&&L!==void 0?L:(x=b==null?void 0:b.classNames)===null||x===void 0?void 0:x.item);let Pt=0;const rt=ot.map((o,s)=>{var _,B;o!=null&&(Pt=s);const S=o&&o.key||`${Rt}-${s}`;return l.createElement(X,{className:Rt,key:S,index:s,split:ce,style:(_=Fe==null?void 0:Fe.item)!==null&&_!==void 0?_:(B=b==null?void 0:b.styles)===null||B===void 0?void 0:B.item},o)}),fe=l.useMemo(()=>({latestIndex:Pt}),[Pt]);if(ot.length===0)return null;const J={};return O&&(J.flexWrap="wrap"),!Ce&&Tt&&(J.columnGap=q),!Le&&$e&&(J.rowGap=ge),Nt(l.createElement("div",Object.assign({ref:N,className:Ct,style:Object.assign(Object.assign(Object.assign({},J),b==null?void 0:b.style),M)},Te),l.createElement(oe,{value:fe},rt)))});ae.Compact=m.ZP;var c=ae},33507:function(_t,Ae){"use strict";const r=l=>({[l.componentCls]:{[`${l.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${l.motionDurationMid} ${l.motionEaseInOut},
|
|
opacity ${l.motionDurationMid} ${l.motionEaseInOut} !important`}},[`${l.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${l.motionDurationMid} ${l.motionEaseInOut},
|
|
opacity ${l.motionDurationMid} ${l.motionEaseInOut} !important`}}});Ae.Z=r},33297:function(_t,Ae,r){"use strict";r.d(Ae,{Fm:function(){return ue}});var l=r(45930),E=r(93590);const j=new l.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),$=new l.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),T=new l.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),m=new l.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),I=new l.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oe=new l.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),f=new l.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),X=new l.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ie={"move-up":{inKeyframes:f,outKeyframes:X},"move-down":{inKeyframes:j,outKeyframes:$},"move-left":{inKeyframes:T,outKeyframes:m},"move-right":{inKeyframes:I,outKeyframes:oe}},ue=(w,Y)=>{const{antCls:ne}=w,ae=`${ne}-${Y}`,{inKeyframes:c,outKeyframes:D}=ie[Y];return[(0,E.R)(ae,c,D,w.motionDurationMid),{[`
|
|
${ae}-enter,
|
|
${ae}-appear
|
|
`]:{opacity:0,animationTimingFunction:w.motionEaseOutCirc},[`${ae}-leave`]:{animationTimingFunction:w.motionEaseInOutCirc}}]}},67771:function(_t,Ae,r){"use strict";r.d(Ae,{Qt:function(){return T},Uw:function(){return $},fJ:function(){return j},ly:function(){return m},oN:function(){return ue}});var l=r(45930),E=r(93590);const j=new l.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),$=new l.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),T=new l.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),m=new l.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),I=new l.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),oe=new l.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),f=new l.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),X=new l.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ie={"slide-up":{inKeyframes:j,outKeyframes:$},"slide-down":{inKeyframes:T,outKeyframes:m},"slide-left":{inKeyframes:I,outKeyframes:oe},"slide-right":{inKeyframes:f,outKeyframes:X}},ue=(w,Y)=>{const{antCls:ne}=w,ae=`${ne}-${Y}`,{inKeyframes:c,outKeyframes:D}=ie[Y];return[(0,E.R)(ae,c,D,w.motionDurationMid),{[`
|
|
${ae}-enter,
|
|
${ae}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:w.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${ae}-leave`]:{animationTimingFunction:w.motionEaseInQuint}}]}},47897:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return J}});var l=r(3407),E=r(94184),j=r.n(E);function $(){return $=Object.assign?Object.assign.bind():function(o){for(var s=1;s<arguments.length;s++){var _=arguments[s];for(var B in _)Object.prototype.hasOwnProperty.call(_,B)&&(o[B]=_[B])}return o},$.apply(this,arguments)}function T(o){"@babel/helpers - typeof";return T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},T(o)}function m(o,s){if(T(o)!=="object"||o===null)return o;var _=o[Symbol.toPrimitive];if(_!==void 0){var B=_.call(o,s||"default");if(T(B)!=="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}function I(o){var s=m(o,"string");return T(s)==="symbol"?s:String(s)}function oe(o,s,_){return s=I(s),s in o?Object.defineProperty(o,s,{value:_,enumerable:!0,configurable:!0,writable:!0}):o[s]=_,o}function f(o){if(Array.isArray(o))return o}function X(o,s){var _=o==null?null:typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(_!=null){var B,S,K,U,g=[],H=!0,G=!1;try{if(K=(_=_.call(o)).next,s===0){if(Object(_)!==_)return;H=!1}else for(;!(H=(B=K.call(_)).done)&&(g.push(B.value),g.length!==s);H=!0);}catch(le){G=!0,S=le}finally{try{if(!H&&_.return!=null&&(U=_.return(),Object(U)!==U))return}finally{if(G)throw S}}return g}}function ie(o,s){(s==null||s>o.length)&&(s=o.length);for(var _=0,B=new Array(s);_<s;_++)B[_]=o[_];return B}function ue(o,s){if(o){if(typeof o=="string")return ie(o,s);var _=Object.prototype.toString.call(o).slice(8,-1);if(_==="Object"&&o.constructor&&(_=o.constructor.name),_==="Map"||_==="Set")return Array.from(o);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return ie(o,s)}}function w(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y(o,s){return f(o)||X(o,s)||ue(o,s)||w()}function ne(o,s){if(o==null)return{};var _={},B=Object.keys(o),S,K;for(K=0;K<B.length;K++)S=B[K],!(s.indexOf(S)>=0)&&(_[S]=o[S]);return _}function ae(o,s){if(o==null)return{};var _=ne(o,s),B,S;if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(o);for(S=0;S<K.length;S++)B=K[S],!(s.indexOf(B)>=0)&&Object.prototype.propertyIsEnumerable.call(o,B)&&(_[B]=o[B])}return _}var c=r(67294);function D(o){if(Array.isArray(o))return o}function N(o,s){var _=o==null?null:typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(_!=null){var B,S,K,U,g=[],H=!0,G=!1;try{if(K=(_=_.call(o)).next,s===0){if(Object(_)!==_)return;H=!1}else for(;!(H=(B=K.call(_)).done)&&(g.push(B.value),g.length!==s);H=!0);}catch(le){G=!0,S=le}finally{try{if(!H&&_.return!=null&&(U=_.return(),Object(U)!==U))return}finally{if(G)throw S}}return g}}function L(o,s){(s==null||s>o.length)&&(s=o.length);for(var _=0,B=new Array(s);_<s;_++)B[_]=o[_];return B}function x(o,s){if(o){if(typeof o=="string")return L(o,s);var _=Object.prototype.toString.call(o).slice(8,-1);if(_==="Object"&&o.constructor&&(_=o.constructor.name),_==="Map"||_==="Set")return Array.from(o);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return L(o,s)}}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(o,s){return D(o)||N(o,s)||x(o,s)||d()}function Z(o){var s=c.useRef();s.current=o;var _=c.useCallback(function(){for(var B,S=arguments.length,K=new Array(S),U=0;U<S;U++)K[U]=arguments[U];return(B=s.current)===null||B===void 0?void 0:B.call.apply(B,[s].concat(K))},[]);return _}function F(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var te=F()?c.useLayoutEffect:c.useEffect,ye=function(s,_){var B=c.useRef(!0);te(function(){return s(B.current)},_),te(function(){return B.current=!1,function(){B.current=!0}},[])},xe=function(s,_){ye(function(B){if(!B)return s()},_)},k=null;function Be(o){var s=c.useRef(!1),_=c.useState(o),B=b(_,2),S=B[0],K=B[1];c.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);function U(g,H){H&&s.current||K(g)}return[S,U]}function Q(o){return o!==void 0}function ce(o,s){var _=s||{},B=_.defaultValue,S=_.value,K=_.onChange,U=_.postState,g=Be(function(){return Q(S)?S:Q(B)?typeof B=="function"?B():B:typeof o=="function"?o():o}),H=b(g,2),G=H[0],le=H[1],Ne=S!==void 0?S:G,Ze=U?U(Ne):Ne,Ye=Z(K),ct=Be([Ne]),ht=b(ct,2),et=ht[0],It=ht[1];xe(function(){var Kt=et[0];G!==Kt&&Ye(G,Kt)},[et]),xe(function(){Q(S)||le(S)},[S]);var Re=Z(function(Kt,Ft){le(Kt,Ft),It([Ne],Ft)});return[Ze,Re]}var M={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(s){var _=s.keyCode;if(s.altKey&&!s.ctrlKey||s.metaKey||_>=M.F1&&_<=M.F12)return!1;switch(_){case M.ALT:case M.CAPS_LOCK:case M.CONTEXT_MENU:case M.CTRL:case M.DOWN:case M.END:case M.ESC:case M.HOME:case M.INSERT:case M.LEFT:case M.MAC_FF_META:case M.META:case M.NUMLOCK:case M.NUM_CENTER:case M.PAGE_DOWN:case M.PAGE_UP:case M.PAUSE:case M.PRINT_SCREEN:case M.RIGHT:case M.SHIFT:case M.UP:case M.WIN_KEY:case M.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(s){if(s>=M.ZERO&&s<=M.NINE||s>=M.NUM_ZERO&&s<=M.NUM_MULTIPLY||s>=M.A&&s<=M.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&s===0)return!0;switch(s){case M.SPACE:case M.QUESTION_MARK:case M.NUM_PLUS:case M.NUM_MINUS:case M.NUM_PERIOD:case M.NUM_DIVISION:case M.SEMICOLON:case M.DASH:case M.EQUALS:case M.COMMA:case M.PERIOD:case M.SLASH:case M.APOSTROPHE:case M.SINGLE_QUOTE:case M.OPEN_SQUARE_BRACKET:case M.BACKSLASH:case M.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},O=M,ke=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Fe=c.forwardRef(function(o,s){var _,B=o.prefixCls,S=B===void 0?"rc-switch":B,K=o.className,U=o.checked,g=o.defaultChecked,H=o.disabled,G=o.loadingIcon,le=o.checkedChildren,Ne=o.unCheckedChildren,Ze=o.onClick,Ye=o.onChange,ct=o.onKeyDown,ht=ae(o,ke),et=ce(!1,{value:U,defaultValue:g}),It=Y(et,2),Re=It[0],Kt=It[1];function Ft(kt,Zt){var $t=Re;return H||($t=kt,Kt($t),Ye==null||Ye($t,Zt)),$t}function Ot(kt){kt.which===O.LEFT?Ft(!1,kt):kt.which===O.RIGHT&&Ft(!0,kt),ct==null||ct(kt)}function Bt(kt){var Zt=Ft(!Re,kt);Ze==null||Ze(Zt,kt)}var Wt=j()(S,K,(_={},oe(_,"".concat(S,"-checked"),Re),oe(_,"".concat(S,"-disabled"),H),_));return c.createElement("button",$({},ht,{type:"button",role:"switch","aria-checked":Re,disabled:H,className:Wt,ref:s,onKeyDown:Ot,onClick:Bt}),G,c.createElement("span",{className:"".concat(S,"-inner")},c.createElement("span",{className:"".concat(S,"-inner-checked")},le),c.createElement("span",{className:"".concat(S,"-inner-unchecked")},Ne)))});Fe.displayName="Switch";var Te=Fe,q=r(45353),ge=r(53124),Le=r(98866),Ce=r(98675),$e=r(84780),Tt=r(14747),ot=r(67968),Mt=r(45503);const bt=o=>{const{componentCls:s,trackHeightSM:_,trackPadding:B,trackMinWidthSM:S,innerMinMarginSM:K,innerMaxMarginSM:U,handleSizeSM:g}=o,H=`${s}-inner`;return{[s]:{[`&${s}-small`]:{minWidth:S,height:_,lineHeight:`${_}px`,[`${s}-inner`]:{paddingInlineStart:U,paddingInlineEnd:K,[`${H}-checked`]:{marginInlineStart:`calc(-100% + ${g+B*2}px - ${U*2}px)`,marginInlineEnd:`calc(100% - ${g+B*2}px + ${U*2}px)`},[`${H}-unchecked`]:{marginTop:-_,marginInlineStart:0,marginInlineEnd:0}},[`${s}-handle`]:{width:g,height:g},[`${s}-loading-icon`]:{top:(g-o.switchLoadingIconSize)/2,fontSize:o.switchLoadingIconSize},[`&${s}-checked`]:{[`${s}-inner`]:{paddingInlineStart:K,paddingInlineEnd:U,[`${H}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${H}-unchecked`]:{marginInlineStart:`calc(100% - ${g+B*2}px + ${U*2}px)`,marginInlineEnd:`calc(-100% + ${g+B*2}px - ${U*2}px)`}},[`${s}-handle`]:{insetInlineStart:`calc(100% - ${g+B}px)`}},[`&:not(${s}-disabled):active`]:{[`&:not(${s}-checked) ${H}`]:{[`${H}-unchecked`]:{marginInlineStart:o.marginXXS/2,marginInlineEnd:-o.marginXXS/2}},[`&${s}-checked ${H}`]:{[`${H}-checked`]:{marginInlineStart:-o.marginXXS/2,marginInlineEnd:o.marginXXS/2}}}}}}},Nt=o=>{const{componentCls:s,handleSize:_}=o;return{[s]:{[`${s}-loading-icon${o.iconCls}`]:{position:"relative",top:(_-o.fontSize)/2,color:o.switchLoadingIconColor,verticalAlign:"top"},[`&${s}-checked ${s}-loading-icon`]:{color:o.switchColor}}}},xt=o=>{const{componentCls:s,motion:_,trackPadding:B,handleBg:S,handleShadow:K,handleSize:U}=o,g=`${s}-handle`;return{[s]:{[g]:{position:"absolute",top:B,insetInlineStart:B,width:U,height:U,transition:`all ${o.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:S,borderRadius:U/2,boxShadow:K,transition:`all ${o.switchDuration} ease-in-out`,content:'""'}},[`&${s}-checked ${g}`]:{insetInlineStart:`calc(100% - ${U+B}px)`},[`&:not(${s}-disabled):active`]:_?{[`${g}::before`]:{insetInlineEnd:o.switchHandleActiveInset,insetInlineStart:0},[`&${s}-checked ${g}::before`]:{insetInlineEnd:0,insetInlineStart:o.switchHandleActiveInset}}:{}}}},Ct=o=>{const{componentCls:s,trackHeight:_,trackPadding:B,innerMinMargin:S,innerMaxMargin:K,handleSize:U}=o,g=`${s}-inner`;return{[s]:{[g]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:K,paddingInlineEnd:S,transition:`padding-inline-start ${o.switchDuration} ease-in-out, padding-inline-end ${o.switchDuration} ease-in-out`,[`${g}-checked, ${g}-unchecked`]:{display:"block",color:o.colorTextLightSolid,fontSize:o.fontSizeSM,transition:`margin-inline-start ${o.switchDuration} ease-in-out, margin-inline-end ${o.switchDuration} ease-in-out`,pointerEvents:"none"},[`${g}-checked`]:{marginInlineStart:`calc(-100% + ${U+B*2}px - ${K*2}px)`,marginInlineEnd:`calc(100% - ${U+B*2}px + ${K*2}px)`},[`${g}-unchecked`]:{marginTop:-_,marginInlineStart:0,marginInlineEnd:0}},[`&${s}-checked ${g}`]:{paddingInlineStart:S,paddingInlineEnd:K,[`${g}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${g}-unchecked`]:{marginInlineStart:`calc(100% - ${U+B*2}px + ${K*2}px)`,marginInlineEnd:`calc(-100% + ${U+B*2}px - ${K*2}px)`}},[`&:not(${s}-disabled):active`]:{[`&:not(${s}-checked) ${g}`]:{[`${g}-unchecked`]:{marginInlineStart:B*2,marginInlineEnd:-B*2}},[`&${s}-checked ${g}`]:{[`${g}-checked`]:{marginInlineStart:-B*2,marginInlineEnd:B*2}}}}}},Rt=o=>{const{componentCls:s,trackHeight:_,trackMinWidth:B}=o;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Tt.Wf)(o)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:B,height:_,lineHeight:`${_}px`,verticalAlign:"middle",background:o.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${o.motionDurationMid}`,userSelect:"none",[`&:hover:not(${s}-disabled)`]:{background:o.colorTextTertiary}}),(0,Tt.Qy)(o)),{[`&${s}-checked`]:{background:o.switchColor,[`&:hover:not(${s}-disabled)`]:{background:o.colorPrimaryHover}},[`&${s}-loading, &${s}-disabled`]:{cursor:"not-allowed",opacity:o.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${s}-rtl`]:{direction:"rtl"}})}};var Pt=(0,ot.Z)("Switch",o=>{const s=(0,Mt.TS)(o,{switchDuration:o.motionDurationMid,switchColor:o.colorPrimary,switchDisabledOpacity:o.opacityLoading,switchLoadingIconSize:o.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${o.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Rt(s),Ct(s),xt(s),Nt(s),bt(s)]},o=>{const{fontSize:s,lineHeight:_,controlHeight:B,colorWhite:S}=o,K=s*_,U=B/2,g=2,H=K-g*2,G=U-g*2;return{trackHeight:K,trackHeightSM:U,trackMinWidth:H*2+g*4,trackMinWidthSM:G*2+g*2,trackPadding:g,handleBg:S,handleSize:H,handleSizeSM:G,handleShadow:`0 2px 4px 0 ${new $e.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:H/2,innerMaxMargin:H+g+g*2,innerMinMarginSM:G/2,innerMaxMarginSM:G+g+g*2}}),rt=function(o,s){var _={};for(var B in o)Object.prototype.hasOwnProperty.call(o,B)&&s.indexOf(B)<0&&(_[B]=o[B]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,B=Object.getOwnPropertySymbols(o);S<B.length;S++)s.indexOf(B[S])<0&&Object.prototype.propertyIsEnumerable.call(o,B[S])&&(_[B[S]]=o[B[S]]);return _};const fe=c.forwardRef((o,s)=>{const{prefixCls:_,size:B,disabled:S,loading:K,className:U,rootClassName:g,style:H}=o,G=rt(o,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:le,direction:Ne,switch:Ze}=c.useContext(ge.E_),Ye=c.useContext(Le.Z),ct=(S!=null?S:Ye)||K,ht=le("switch",_),et=c.createElement("div",{className:`${ht}-handle`},K&&c.createElement(l.Z,{className:`${ht}-loading-icon`})),[It,Re]=Pt(ht),Kt=(0,Ce.Z)(B),Ft=j()(Ze==null?void 0:Ze.className,{[`${ht}-small`]:Kt==="small",[`${ht}-loading`]:K,[`${ht}-rtl`]:Ne==="rtl"},U,g,Re),Ot=Object.assign(Object.assign({},Ze==null?void 0:Ze.style),H);return It(c.createElement(q.Z,{component:"Switch"},c.createElement(Te,Object.assign({},G,{prefixCls:ht,className:Ft,style:Ot,disabled:ct,ref:s,loadingIcon:et}))))});fe.__ANT_SWITCH=!0;var J=fe},79870:function(_t,Ae,r){"use strict";r.d(Ae,{default:function(){return gr}});var l=r(87462),E=r(4942),j=r(71002),$=r(1413),T=r(74902),m=r(15671),I=r(43144),oe=r(97326),f=r(60136),X=r(51630),ie=r(94184),ue=r.n(ie),w={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(re){var ve=re.keyCode;if(re.altKey&&!re.ctrlKey||re.metaKey||ve>=w.F1&&ve<=w.F12)return!1;switch(ve){case w.ALT:case w.CAPS_LOCK:case w.CONTEXT_MENU:case w.CTRL:case w.DOWN:case w.END:case w.ESC:case w.HOME:case w.INSERT:case w.LEFT:case w.MAC_FF_META:case w.META:case w.NUMLOCK:case w.NUM_CENTER:case w.PAGE_DOWN:case w.PAGE_UP:case w.PAUSE:case w.PRINT_SCREEN:case w.RIGHT:case w.SHIFT:case w.UP:case w.WIN_KEY:case w.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(re){if(re>=w.ZERO&&re<=w.NINE||re>=w.NUM_ZERO&&re<=w.NUM_MULTIPLY||re>=w.A&&re<=w.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&re===0)return!0;switch(re){case w.SPACE:case w.QUESTION_MARK:case w.NUM_PLUS:case w.NUM_MINUS:case w.NUM_PERIOD:case w.NUM_DIVISION:case w.SEMICOLON:case w.DASH:case w.EQUALS:case w.COMMA:case w.PERIOD:case w.SLASH:case w.APOSTROPHE:case w.SINGLE_QUOTE:case w.OPEN_SQUARE_BRACKET:case w.BACKSLASH:case w.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Y=w,ne=r(34952),ae=r(72978),c=r(67294),D=r(69610);function N(W){var re=W.dropPosition,ve=W.dropLevelOffset,u=W.indent,he={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(re){case-1:he.top=0,he.left=-ve*u;break;case 1:he.bottom=0,he.left=-ve*u;break;case 0:he.bottom=0,he.left=u;break}return c.createElement("div",{style:he})}var L=r(36459),x=r(97685),d=r(45987);function b(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Z=b()?c.useLayoutEffect:c.useEffect,F=Z,te=function(re,ve){var u=React.useRef(!0);Z(function(){if(!u.current)return re()},ve),Z(function(){return u.current=!1,function(){u.current=!0}},[])},ye=r(73299),xe=r(73935);function k(W){return W instanceof HTMLElement||W instanceof SVGElement}function Be(W){return k(W)?W:W instanceof c.Component?xe.findDOMNode(W):null}var Q=r(28580);function ce(W,re,ve){var u=React.useRef({});return(!("value"in u.current)||ve(u.current.condition,re))&&(u.current.value=W(),u.current.condition=re),u.current.value}function M(W,re){typeof W=="function"?W(re):(0,j.Z)(W)==="object"&&W&&"current"in W&&(W.current=re)}function O(){for(var W=arguments.length,re=new Array(W),ve=0;ve<W;ve++)re[ve]=arguments[ve];var u=re.filter(function(he){return he});return u.length<=1?u[0]:function(he){re.forEach(function(h){M(h,he)})}}function ke(){for(var W=arguments.length,re=new Array(W),ve=0;ve<W;ve++)re[ve]=arguments[ve];return useMemo(function(){return O.apply(void 0,re)},re,function(u,he){return u.length===he.length&&u.every(function(h,C){return h===he[C]})})}function Fe(W){var re,ve,u=(0,Q.isMemo)(W)?W.type.type:W.type;return!(typeof u=="function"&&!((re=u.prototype)!==null&&re!==void 0&&re.render)||typeof W=="function"&&!((ve=W.prototype)!==null&&ve!==void 0&&ve.render))}function Te(W,re){var ve={};return ve[W.toLowerCase()]=re.toLowerCase(),ve["Webkit".concat(W)]="webkit".concat(re),ve["Moz".concat(W)]="moz".concat(re),ve["ms".concat(W)]="MS".concat(re),ve["O".concat(W)]="o".concat(re.toLowerCase()),ve}function q(W,re){var ve={animationend:Te("Animation","AnimationEnd"),transitionend:Te("Transition","TransitionEnd")};return W&&("AnimationEvent"in re||delete ve.animationend.animation,"TransitionEvent"in re||delete ve.transitionend.transition),ve}var ge=q(b(),typeof window!="undefined"?window:{}),Le={};if(b()){var Ce=document.createElement("div");Le=Ce.style}var $e={};function Tt(W){if($e[W])return $e[W];var re=ge[W];if(re)for(var ve=Object.keys(re),u=ve.length,he=0;he<u;he+=1){var h=ve[he];if(Object.prototype.hasOwnProperty.call(re,h)&&h in Le)return $e[W]=re[h],$e[W]}return""}var ot=Tt("animationend"),Mt=Tt("transitionend"),bt=!!(ot&&Mt),Nt=ot||"animationend",xt=Mt||"transitionend";function Ct(W,re){if(!W)return null;if((0,j.Z)(W)==="object"){var ve=re.replace(/-\w/g,function(u){return u[1].toUpperCase()});return W[ve]}return"".concat(W,"-").concat(re)}var Rt="none",Pt="appear",rt="enter",fe="leave",J="none",o="prepare",s="start",_="active",B="end";function S(W){var re=c.useRef(!1),ve=c.useState(W),u=(0,x.Z)(ve,2),he=u[0],h=u[1];c.useEffect(function(){return re.current=!1,function(){re.current=!0}},[]);function C(y,R){R&&re.current||h(y)}return[he,C]}var K=function(re){return+setTimeout(re,16)},U=function(re){return clearTimeout(re)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(K=function(re){return window.requestAnimationFrame(re)},U=function(re){return window.cancelAnimationFrame(re)});var g=0,H=new Map;function G(W){H.delete(W)}var le=function(re){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;g+=1;var u=g;function he(h){if(h===0)G(u),re();else{var C=K(function(){he(h-1)});H.set(u,C)}}return he(ve),u};le.cancel=function(W){var re=H.get(W);return G(re),U(re)};var Ne=le,Ze=function(){var W=c.useRef(null);function re(){Ne.cancel(W.current)}function ve(u){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;re();var h=Ne(function(){he<=1?u({isCanceled:function(){return h!==W.current}}):ve(u,he-1)});W.current=h}return c.useEffect(function(){return function(){re()}},[]),[ve,re]},Ye=b()?c.useLayoutEffect:c.useEffect,ct=Ye,ht=[o,s,_,B],et=!1,It=!0;function Re(W){return W===_||W===B}var Kt=function(W,re){var ve=S(J),u=(0,x.Z)(ve,2),he=u[0],h=u[1],C=Ze(),y=(0,x.Z)(C,2),R=y[0],p=y[1];function z(){h(o,!0)}return ct(function(){if(he!==J&&he!==B){var V=ht.indexOf(he),Ee=ht[V+1],Se=re(he);Se===et?h(Ee,!0):R(function(Ie){function Ue(){Ie.isCanceled()||h(Ee,!0)}Se===!0?Ue():Promise.resolve(Se).then(Ue)})}},[W,he]),c.useEffect(function(){return function(){p()}},[]),[z,he]},Ft=function(W){var re=(0,c.useRef)(),ve=(0,c.useRef)(W);ve.current=W;var u=c.useCallback(function(C){ve.current(C)},[]);function he(C){C&&(C.removeEventListener(xt,u),C.removeEventListener(Nt,u))}function h(C){re.current&&re.current!==C&&he(re.current),C&&C!==re.current&&(C.addEventListener(xt,u),C.addEventListener(Nt,u),re.current=C)}return c.useEffect(function(){return function(){he(re.current)}},[]),[h,he]};function Ot(W,re,ve,u){var he=u.motionEnter,h=he===void 0?!0:he,C=u.motionAppear,y=C===void 0?!0:C,R=u.motionLeave,p=R===void 0?!0:R,z=u.motionDeadline,V=u.motionLeaveImmediately,Ee=u.onAppearPrepare,Se=u.onEnterPrepare,Ie=u.onLeavePrepare,Ue=u.onAppearStart,ze=u.onEnterStart,be=u.onLeaveStart,Ge=u.onAppearActive,je=u.onEnterActive,We=u.onLeaveActive,tt=u.onAppearEnd,st=u.onEnterEnd,ft=u.onLeaveEnd,it=u.onVisibleChanged,qe=S(),ut=(0,x.Z)(qe,2),at=ut[0],Dt=ut[1],Et=S(Rt),jt=(0,x.Z)(Et,2),Lt=jt[0],Vt=jt[1],Gt=S(null),nt=(0,x.Z)(Gt,2),lt=nt[0],At=nt[1],zt=(0,c.useRef)(!1),tn=(0,c.useRef)(null);function bn(){return ve()}var mn=(0,c.useRef)(!1);function wn(Yt){var nn=bn();if(!(Yt&&!Yt.deadline&&Yt.target!==nn)){var gn=mn.current,Hn;Lt===Pt&&gn?Hn=tt==null?void 0:tt(nn,Yt):Lt===rt&&gn?Hn=st==null?void 0:st(nn,Yt):Lt===fe&&gn&&(Hn=ft==null?void 0:ft(nn,Yt)),Lt!==Rt&&gn&&Hn!==!1&&(Vt(Rt,!0),At(null,!0))}}var Bn=Ft(wn),On=(0,x.Z)(Bn,1),In=On[0],pn=c.useMemo(function(){var Yt,nn,gn;switch(Lt){case Pt:return Yt={},(0,E.Z)(Yt,o,Ee),(0,E.Z)(Yt,s,Ue),(0,E.Z)(Yt,_,Ge),Yt;case rt:return nn={},(0,E.Z)(nn,o,Se),(0,E.Z)(nn,s,ze),(0,E.Z)(nn,_,je),nn;case fe:return gn={},(0,E.Z)(gn,o,Ie),(0,E.Z)(gn,s,be),(0,E.Z)(gn,_,We),gn;default:return{}}},[Lt]),zn=Kt(Lt,function(Yt){if(Yt===o){var nn=pn[o];return nn?nn(bn()):et}if(Cn in pn){var gn;At(((gn=pn[Cn])===null||gn===void 0?void 0:gn.call(pn,bn(),null))||null)}return Cn===_&&(In(bn()),z>0&&(clearTimeout(tn.current),tn.current=setTimeout(function(){wn({deadline:!0})},z))),It}),fn=(0,x.Z)(zn,2),Ln=fn[0],Cn=fn[1],nr=Re(Cn);mn.current=nr,ct(function(){Dt(re);var Yt=zt.current;if(zt.current=!0,!!W){var nn;!Yt&&re&&y&&(nn=Pt),Yt&&re&&h&&(nn=rt),(Yt&&!re&&p||!Yt&&V&&!re&&p)&&(nn=fe),nn&&(Vt(nn),Ln())}},[re]),(0,c.useEffect)(function(){(Lt===Pt&&!y||Lt===rt&&!h||Lt===fe&&!p)&&Vt(Rt)},[y,h,p]),(0,c.useEffect)(function(){return function(){zt.current=!1,clearTimeout(tn.current)}},[]);var Zn=c.useRef(!1);(0,c.useEffect)(function(){at&&(Zn.current=!0),at!==void 0&&Lt===Rt&&((Zn.current||at)&&(it==null||it(at)),Zn.current=!0)},[at,Lt]);var yn=lt;return pn[o]&&Cn===s&&(yn=(0,$.Z)({transition:"none"},yn)),[Lt,Cn,yn,at!=null?at:re]}var Bt=function(W){(0,f.Z)(ve,W);var re=(0,X.Z)(ve);function ve(){return(0,m.Z)(this,ve),re.apply(this,arguments)}return(0,I.Z)(ve,[{key:"render",value:function(){return this.props.children}}]),ve}(c.Component),Wt=Bt;function kt(W){var re=W;(0,j.Z)(W)==="object"&&(re=W.transitionSupport);function ve(he){return!!(he.motionName&&re)}var u=c.forwardRef(function(he,h){var C=he.visible,y=C===void 0?!0:C,R=he.removeOnLeave,p=R===void 0?!0:R,z=he.forceRender,V=he.children,Ee=he.motionName,Se=he.leavedClassName,Ie=he.eventProps,Ue=ve(he),ze=(0,c.useRef)(),be=(0,c.useRef)();function Ge(){try{return ze.current instanceof HTMLElement?ze.current:Be(be.current)}catch(Gt){return null}}var je=Ot(Ue,y,Ge,he),We=(0,x.Z)(je,4),tt=We[0],st=We[1],ft=We[2],it=We[3],qe=c.useRef(it);it&&(qe.current=!0);var ut=c.useCallback(function(Gt){ze.current=Gt,M(h,Gt)},[h]),at,Dt=(0,$.Z)((0,$.Z)({},Ie),{},{visible:y});if(!V)at=null;else if(tt===Rt||!ve(he))it?at=V((0,$.Z)({},Dt),ut):!p&&qe.current&&Se?at=V((0,$.Z)((0,$.Z)({},Dt),{},{className:Se}),ut):z||!p&&!Se?at=V((0,$.Z)((0,$.Z)({},Dt),{},{style:{display:"none"}}),ut):at=null;else{var Et,jt;st===o?jt="prepare":Re(st)?jt="active":st===s&&(jt="start"),at=V((0,$.Z)((0,$.Z)({},Dt),{},{className:ue()(Ct(Ee,tt),(Et={},(0,E.Z)(Et,Ct(Ee,"".concat(tt,"-").concat(jt)),jt),(0,E.Z)(Et,Ee,typeof Ee=="string"),Et)),style:ft}),ut)}if(c.isValidElement(at)&&Fe(at)){var Lt=at,Vt=Lt.ref;Vt||(at=c.cloneElement(at,{ref:ut}))}return c.createElement(Wt,{ref:be},at)});return u.displayName="CSSMotion",u}var Zt=kt(bt),$t="add",Ht="keep",mt="remove",en="removed";function yt(W){var re;return W&&(0,j.Z)(W)==="object"&&"key"in W?re=W:re={key:W},(0,$.Z)((0,$.Z)({},re),{},{key:String(re.key)})}function P(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return W.map(yt)}function de(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ve=[],u=0,he=re.length,h=P(W),C=P(re);h.forEach(function(p){for(var z=!1,V=u;V<he;V+=1){var Ee=C[V];if(Ee.key===p.key){u<V&&(ve=ve.concat(C.slice(u,V).map(function(Se){return(0,$.Z)((0,$.Z)({},Se),{},{status:$t})})),u=V),ve.push((0,$.Z)((0,$.Z)({},Ee),{},{status:Ht})),u+=1,z=!0;break}}z||ve.push((0,$.Z)((0,$.Z)({},p),{},{status:mt}))}),u<he&&(ve=ve.concat(C.slice(u).map(function(p){return(0,$.Z)((0,$.Z)({},p),{},{status:$t})})));var y={};ve.forEach(function(p){var z=p.key;y[z]=(y[z]||0)+1});var R=Object.keys(y).filter(function(p){return y[p]>1});return R.forEach(function(p){ve=ve.filter(function(z){var V=z.key,Ee=z.status;return V!==p||Ee!==mt}),ve.forEach(function(z){z.key===p&&(z.status=Ht)})}),ve}var me=["component","children","onVisibleChanged","onAllRemoved"],_e=["status"],He=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Me(W){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt,ve=function(u){(0,f.Z)(h,u);var he=(0,X.Z)(h);function h(){var C;(0,m.Z)(this,h);for(var y=arguments.length,R=new Array(y),p=0;p<y;p++)R[p]=arguments[p];return C=he.call.apply(he,[this].concat(R)),(0,E.Z)((0,oe.Z)(C),"state",{keyEntities:[]}),(0,E.Z)((0,oe.Z)(C),"removeKey",function(z){var V=C.state.keyEntities,Ee=V.map(function(Se){return Se.key!==z?Se:(0,$.Z)((0,$.Z)({},Se),{},{status:en})});return C.setState({keyEntities:Ee}),Ee.filter(function(Se){var Ie=Se.status;return Ie!==en}).length}),C}return(0,I.Z)(h,[{key:"render",value:function(){var y=this,R=this.state.keyEntities,p=this.props,z=p.component,V=p.children,Ee=p.onVisibleChanged,Se=p.onAllRemoved,Ie=(0,d.Z)(p,me),Ue=z||c.Fragment,ze={};return He.forEach(function(be){ze[be]=Ie[be],delete Ie[be]}),delete Ie.keys,c.createElement(Ue,Ie,R.map(function(be){var Ge=be.status,je=(0,d.Z)(be,_e),We=Ge===$t||Ge===Ht;return c.createElement(re,(0,l.Z)({},ze,{key:je.key,visible:We,eventProps:je,onVisibleChanged:function(st){if(Ee==null||Ee(st,{key:je.key}),!st){var ft=y.removeKey(je.key);ft===0&&Se&&Se()}}}),V)}))}}],[{key:"getDerivedStateFromProps",value:function(y,R){var p=y.keys,z=R.keyEntities,V=P(p),Ee=de(z,V);return{keyEntities:Ee.filter(function(Se){var Ie=z.find(function(Ue){var ze=Ue.key;return Se.key===ze});return!(Ie&&Ie.status===en&&Se.status===mt)})}}}]),h}(c.Component);return(0,E.Z)(ve,"defaultProps",{component:"div"}),ve}var Pe=Me(bt),Oe=Zt,we=r(56261);function ee(W,re){var ve=c.useState(!1),u=(0,x.Z)(ve,2),he=u[0],h=u[1];c.useLayoutEffect(function(){if(he)return W(),function(){re()}},[he]),c.useLayoutEffect(function(){return h(!0),function(){h(!1)}},[])}var e=r(83898),t=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],n=function(re,ve){var u=re.className,he=re.style,h=re.motion,C=re.motionNodes,y=re.motionType,R=re.onMotionStart,p=re.onMotionEnd,z=re.active,V=re.treeNodeRequiredProps,Ee=(0,d.Z)(re,t),Se=c.useState(!0),Ie=(0,x.Z)(Se,2),Ue=Ie[0],ze=Ie[1],be=c.useContext(D.k),Ge=be.prefixCls,je=C&&y!=="hide";F(function(){C&&je!==Ue&&ze(je)},[C]);var We=function(){C&&R()},tt=c.useRef(!1),st=function(){C&&!tt.current&&(tt.current=!0,p())};ee(We,st);var ft=function(qe){je===qe&&st()};return C?c.createElement(Oe,(0,l.Z)({ref:ve,visible:Ue},h,{motionAppear:y==="show",onVisibleChanged:ft}),function(it,qe){var ut=it.className,at=it.style;return c.createElement("div",{ref:qe,className:ue()("".concat(Ge,"-treenode-motion"),ut),style:at},C.map(function(Dt){var Et=(0,l.Z)({},((0,L.Z)(Dt.data),Dt.data)),jt=Dt.title,Lt=Dt.key,Vt=Dt.isStart,Gt=Dt.isEnd;delete Et.children;var nt=(0,e.H8)(Lt,V);return c.createElement(we.Z,(0,l.Z)({},Et,nt,{title:jt,active:z,data:Dt.data,key:Lt,isStart:Vt,isEnd:Gt}))}))}):c.createElement(we.Z,(0,l.Z)({domRef:ve,className:u,style:he},Ee,{active:z}))};n.displayName="MotionTreeNode";var i=c.forwardRef(n),a=i;function v(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ve=W.length,u=re.length;if(Math.abs(ve-u)!==1)return{add:!1,key:null};function he(h,C){var y=new Map;h.forEach(function(p){y.set(p,!0)});var R=C.filter(function(p){return!y.has(p)});return R.length===1?R[0]:null}return ve<u?{add:!0,key:he(W,re)}:{add:!1,key:he(re,W)}}function A(W,re,ve){var u=W.findIndex(function(y){return y.key===ve}),he=W[u+1],h=re.findIndex(function(y){return y.key===ve});if(he){var C=re.findIndex(function(y){return y.key===he.key});return re.slice(h+1,C)}return re.slice(h+1)}var pe=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],se={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ke=function(){},Qe="RC_TREE_MOTION_".concat(Math.random()),gt={key:Qe},Xe={key:Qe,level:0,index:0,pos:"0",node:gt,nodes:[gt]},pt={parent:null,children:[],pos:Xe.pos,data:gt,title:null,key:Qe,isStart:[],isEnd:[]};function dt(W,re,ve,u){return re===!1||!ve?W:W.slice(0,Math.ceil(ve/u)+1)}function De(W){var re=W.key,ve=W.pos;return(0,e.km)(re,ve)}function Ve(W){for(var re=String(W.data.key),ve=W;ve.parent;)ve=ve.parent,re="".concat(ve.data.key," > ").concat(re);return re}var vt=c.forwardRef(function(W,re){var ve=W.prefixCls,u=W.data,he=W.selectable,h=W.checkable,C=W.expandedKeys,y=W.selectedKeys,R=W.checkedKeys,p=W.loadedKeys,z=W.loadingKeys,V=W.halfCheckedKeys,Ee=W.keyEntities,Se=W.disabled,Ie=W.dragging,Ue=W.dragOverNodeKey,ze=W.dropPosition,be=W.motion,Ge=W.height,je=W.itemHeight,We=W.virtual,tt=W.focusable,st=W.activeItem,ft=W.focused,it=W.tabIndex,qe=W.onKeyDown,ut=W.onFocus,at=W.onBlur,Dt=W.onActiveChange,Et=W.onListChangeStart,jt=W.onListChangeEnd,Lt=(0,d.Z)(W,pe),Vt=c.useRef(null),Gt=c.useRef(null);c.useImperativeHandle(re,function(){return{scrollTo:function(Dn){Vt.current.scrollTo(Dn)},getIndentWidth:function(){return Gt.current.offsetWidth}}});var nt=c.useState(C),lt=(0,x.Z)(nt,2),At=lt[0],zt=lt[1],tn=c.useState(u),bn=(0,x.Z)(tn,2),mn=bn[0],wn=bn[1],Bn=c.useState(u),On=(0,x.Z)(Bn,2),In=On[0],pn=On[1],zn=c.useState([]),fn=(0,x.Z)(zn,2),Ln=fn[0],Cn=fn[1],nr=c.useState(null),Zn=(0,x.Z)(nr,2),yn=Zn[0],Yt=Zn[1],nn=c.useRef(u);nn.current=u;function gn(){var hn=nn.current;wn(hn),pn(hn),Cn([]),Yt(null),jt()}F(function(){zt(C);var hn=v(At,C);if(hn.key!==null)if(hn.add){var Dn=mn.findIndex(function(lr){var Wn=lr.key;return Wn===hn.key}),rr=dt(A(mn,u,hn.key),We,Ge,je),Vn=mn.slice();Vn.splice(Dn+1,0,pt),pn(Vn),Cn(rr),Yt("show")}else{var Jn=u.findIndex(function(lr){var Wn=lr.key;return Wn===hn.key}),qn=dt(A(u,mn,hn.key),We,Ge,je),Tn=u.slice();Tn.splice(Jn+1,0,pt),pn(Tn),Cn(qn),Yt("hide")}else mn!==u&&(wn(u),pn(u))},[C,u]),c.useEffect(function(){Ie||gn()},[Ie]);var Hn=be?In:u,jn={expandedKeys:C,selectedKeys:y,loadedKeys:p,loadingKeys:z,checkedKeys:R,halfCheckedKeys:V,dragOverNodeKey:Ue,dropPosition:ze,keyEntities:Ee};return c.createElement(c.Fragment,null,ft&&st&&c.createElement("span",{style:se,"aria-live":"assertive"},Ve(st)),c.createElement("div",null,c.createElement("input",{style:se,disabled:tt===!1||Se,tabIndex:tt!==!1?it:null,onKeyDown:qe,onFocus:ut,onBlur:at,value:"",onChange:Ke,"aria-label":"for screen reader"})),c.createElement("div",{className:"".concat(ve,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},c.createElement("div",{className:"".concat(ve,"-indent")},c.createElement("div",{ref:Gt,className:"".concat(ve,"-indent-unit")}))),c.createElement(ye.Z,(0,l.Z)({},Lt,{data:Hn,itemKey:De,height:Ge,fullHeight:!1,virtual:We,itemHeight:je,prefixCls:"".concat(ve,"-list"),ref:Vt,onVisibleChange:function(Dn,rr){var Vn=new Set(Dn),Jn=rr.filter(function(qn){return!Vn.has(qn)});Jn.some(function(qn){return De(qn)===Qe})&&gn()}}),function(hn){var Dn=hn.pos,rr=(0,l.Z)({},((0,L.Z)(hn.data),hn.data)),Vn=hn.title,Jn=hn.key,qn=hn.isStart,Tn=hn.isEnd,lr=(0,e.km)(Jn,Dn);delete rr.key,delete rr.children;var Wn=(0,e.H8)(lr,jn);return c.createElement(a,(0,l.Z)({},rr,Wn,{title:Vn,active:!!st&&Jn===st.key,pos:Dn,data:hn.data,isStart:qn,isEnd:Tn,motion:be,motionNodes:Jn===Qe?Ln:null,motionType:yn,onMotionStart:Et,onMotionEnd:gn,treeNodeRequiredProps:jn,onMouseMove:function(){Dt(null)}}))}))});vt.displayName="NodeList";var wt=vt,Je=r(29873),sn=r(97153),Qt=r(3596),St=10,Ut=function(W){(0,f.Z)(ve,W);var re=(0,X.Z)(ve);function ve(){var u;(0,m.Z)(this,ve);for(var he=arguments.length,h=new Array(he),C=0;C<he;C++)h[C]=arguments[C];return u=re.call.apply(re,[this].concat(h)),u.destroyed=!1,u.delayedDragEnterLogic=void 0,u.loadingRetryTimes={},u.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,e.w$)()},u.dragStartMousePosition=null,u.dragNode=void 0,u.currentMouseOverDroppableNodeKey=null,u.listRef=c.createRef(),u.onNodeDragStart=function(y,R){var p=u.state,z=p.expandedKeys,V=p.keyEntities,Ee=u.props.onDragStart,Se=R.props.eventKey;u.dragNode=R,u.dragStartMousePosition={x:y.clientX,y:y.clientY};var Ie=(0,Je._5)(z,Se);u.setState({draggingNodeKey:Se,dragChildrenKeys:(0,Je.wA)(Se,V),indent:u.listRef.current.getIndentWidth()}),u.setExpandedKeys(Ie),window.addEventListener("dragend",u.onWindowDragEnd),Ee==null||Ee({event:y,node:(0,e.F)(R.props)})},u.onNodeDragEnter=function(y,R){var p=u.state,z=p.expandedKeys,V=p.keyEntities,Ee=p.dragChildrenKeys,Se=p.flattenNodes,Ie=p.indent,Ue=u.props,ze=Ue.onDragEnter,be=Ue.onExpand,Ge=Ue.allowDrop,je=Ue.direction,We=R.props,tt=We.pos,st=We.eventKey,ft=(0,oe.Z)(u),it=ft.dragNode;if(u.currentMouseOverDroppableNodeKey!==st&&(u.currentMouseOverDroppableNodeKey=st),!it){u.resetDragState();return}var qe=(0,Je.OM)(y,it,R,Ie,u.dragStartMousePosition,Ge,Se,V,z,je),ut=qe.dropPosition,at=qe.dropLevelOffset,Dt=qe.dropTargetKey,Et=qe.dropContainerKey,jt=qe.dropTargetPos,Lt=qe.dropAllowed,Vt=qe.dragOverNodeKey;if(Ee.indexOf(Dt)!==-1||!Lt){u.resetDragState();return}if(u.delayedDragEnterLogic||(u.delayedDragEnterLogic={}),Object.keys(u.delayedDragEnterLogic).forEach(function(Gt){clearTimeout(u.delayedDragEnterLogic[Gt])}),it.props.eventKey!==R.props.eventKey&&(y.persist(),u.delayedDragEnterLogic[tt]=window.setTimeout(function(){if(u.state.draggingNodeKey!==null){var Gt=(0,T.Z)(z),nt=(0,Qt.Z)(V,R.props.eventKey);nt&&(nt.children||[]).length&&(Gt=(0,Je.L0)(z,R.props.eventKey)),"expandedKeys"in u.props||u.setExpandedKeys(Gt),be==null||be(Gt,{node:(0,e.F)(R.props),expanded:!0,nativeEvent:y.nativeEvent})}},800)),it.props.eventKey===Dt&&at===0){u.resetDragState();return}u.setState({dragOverNodeKey:Vt,dropPosition:ut,dropLevelOffset:at,dropTargetKey:Dt,dropContainerKey:Et,dropTargetPos:jt,dropAllowed:Lt}),ze==null||ze({event:y,node:(0,e.F)(R.props),expandedKeys:z})},u.onNodeDragOver=function(y,R){var p=u.state,z=p.dragChildrenKeys,V=p.flattenNodes,Ee=p.keyEntities,Se=p.expandedKeys,Ie=p.indent,Ue=u.props,ze=Ue.onDragOver,be=Ue.allowDrop,Ge=Ue.direction,je=(0,oe.Z)(u),We=je.dragNode;if(We){var tt=(0,Je.OM)(y,We,R,Ie,u.dragStartMousePosition,be,V,Ee,Se,Ge),st=tt.dropPosition,ft=tt.dropLevelOffset,it=tt.dropTargetKey,qe=tt.dropContainerKey,ut=tt.dropAllowed,at=tt.dropTargetPos,Dt=tt.dragOverNodeKey;z.indexOf(it)!==-1||!ut||(We.props.eventKey===it&&ft===0?u.state.dropPosition===null&&u.state.dropLevelOffset===null&&u.state.dropTargetKey===null&&u.state.dropContainerKey===null&&u.state.dropTargetPos===null&&u.state.dropAllowed===!1&&u.state.dragOverNodeKey===null||u.resetDragState():st===u.state.dropPosition&&ft===u.state.dropLevelOffset&&it===u.state.dropTargetKey&&qe===u.state.dropContainerKey&&at===u.state.dropTargetPos&&ut===u.state.dropAllowed&&Dt===u.state.dragOverNodeKey||u.setState({dropPosition:st,dropLevelOffset:ft,dropTargetKey:it,dropContainerKey:qe,dropTargetPos:at,dropAllowed:ut,dragOverNodeKey:Dt}),ze==null||ze({event:y,node:(0,e.F)(R.props)}))}},u.onNodeDragLeave=function(y,R){u.currentMouseOverDroppableNodeKey===R.props.eventKey&&!y.currentTarget.contains(y.relatedTarget)&&(u.resetDragState(),u.currentMouseOverDroppableNodeKey=null);var p=u.props.onDragLeave;p==null||p({event:y,node:(0,e.F)(R.props)})},u.onWindowDragEnd=function(y){u.onNodeDragEnd(y,null,!0),window.removeEventListener("dragend",u.onWindowDragEnd)},u.onNodeDragEnd=function(y,R){var p=u.props.onDragEnd;u.setState({dragOverNodeKey:null}),u.cleanDragState(),p==null||p({event:y,node:(0,e.F)(R.props)}),u.dragNode=null,window.removeEventListener("dragend",u.onWindowDragEnd)},u.onNodeDrop=function(y,R){var p,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,V=u.state,Ee=V.dragChildrenKeys,Se=V.dropPosition,Ie=V.dropTargetKey,Ue=V.dropTargetPos,ze=V.dropAllowed;if(ze){var be=u.props.onDrop;if(u.setState({dragOverNodeKey:null}),u.cleanDragState(),Ie!==null){var Ge=(0,$.Z)((0,$.Z)({},(0,e.H8)(Ie,u.getTreeNodeRequiredProps())),{},{active:((p=u.getActiveItem())===null||p===void 0?void 0:p.key)===Ie,data:(0,Qt.Z)(u.state.keyEntities,Ie).node}),je=Ee.indexOf(Ie)!==-1;(0,ae.ZP)(!je,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var We=(0,Je.yx)(Ue),tt={event:y,node:(0,e.F)(Ge),dragNode:u.dragNode?(0,e.F)(u.dragNode.props):null,dragNodesKeys:[u.dragNode.props.eventKey].concat(Ee),dropToGap:Se!==0,dropPosition:Se+Number(We[We.length-1])};z||be==null||be(tt),u.dragNode=null}}},u.cleanDragState=function(){var y=u.state.draggingNodeKey;y!==null&&u.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),u.dragStartMousePosition=null,u.currentMouseOverDroppableNodeKey=null},u.triggerExpandActionExpand=function(y,R){var p=u.state,z=p.expandedKeys,V=p.flattenNodes,Ee=R.expanded,Se=R.key,Ie=R.isLeaf;if(!(Ie||y.shiftKey||y.metaKey||y.ctrlKey)){var Ue=V.filter(function(be){return be.key===Se})[0],ze=(0,e.F)((0,$.Z)((0,$.Z)({},(0,e.H8)(Se,u.getTreeNodeRequiredProps())),{},{data:Ue.data}));u.setExpandedKeys(Ee?(0,Je._5)(z,Se):(0,Je.L0)(z,Se)),u.onNodeExpand(y,ze)}},u.onNodeClick=function(y,R){var p=u.props,z=p.onClick,V=p.expandAction;V==="click"&&u.triggerExpandActionExpand(y,R),z==null||z(y,R)},u.onNodeDoubleClick=function(y,R){var p=u.props,z=p.onDoubleClick,V=p.expandAction;V==="doubleClick"&&u.triggerExpandActionExpand(y,R),z==null||z(y,R)},u.onNodeSelect=function(y,R){var p=u.state.selectedKeys,z=u.state,V=z.keyEntities,Ee=z.fieldNames,Se=u.props,Ie=Se.onSelect,Ue=Se.multiple,ze=R.selected,be=R[Ee.key],Ge=!ze;Ge?Ue?p=(0,Je.L0)(p,be):p=[be]:p=(0,Je._5)(p,be);var je=p.map(function(We){var tt=(0,Qt.Z)(V,We);return tt?tt.node:null}).filter(function(We){return We});u.setUncontrolledState({selectedKeys:p}),Ie==null||Ie(p,{event:"select",selected:Ge,node:R,selectedNodes:je,nativeEvent:y.nativeEvent})},u.onNodeCheck=function(y,R,p){var z=u.state,V=z.keyEntities,Ee=z.checkedKeys,Se=z.halfCheckedKeys,Ie=u.props,Ue=Ie.checkStrictly,ze=Ie.onCheck,be=R.key,Ge,je={event:"check",node:R,checked:p,nativeEvent:y.nativeEvent};if(Ue){var We=p?(0,Je.L0)(Ee,be):(0,Je._5)(Ee,be),tt=(0,Je._5)(Se,be);Ge={checked:We,halfChecked:tt},je.checkedNodes=We.map(function(at){return(0,Qt.Z)(V,at)}).filter(function(at){return at}).map(function(at){return at.node}),u.setUncontrolledState({checkedKeys:We})}else{var st=(0,sn.S)([].concat((0,T.Z)(Ee),[be]),!0,V),ft=st.checkedKeys,it=st.halfCheckedKeys;if(!p){var qe=new Set(ft);qe.delete(be);var ut=(0,sn.S)(Array.from(qe),{checked:!1,halfCheckedKeys:it},V);ft=ut.checkedKeys,it=ut.halfCheckedKeys}Ge=ft,je.checkedNodes=[],je.checkedNodesPositions=[],je.halfCheckedKeys=it,ft.forEach(function(at){var Dt=(0,Qt.Z)(V,at);if(Dt){var Et=Dt.node,jt=Dt.pos;je.checkedNodes.push(Et),je.checkedNodesPositions.push({node:Et,pos:jt})}}),u.setUncontrolledState({checkedKeys:ft},!1,{halfCheckedKeys:it})}ze==null||ze(Ge,je)},u.onNodeLoad=function(y){var R=y.key,p=new Promise(function(z,V){u.setState(function(Ee){var Se=Ee.loadedKeys,Ie=Se===void 0?[]:Se,Ue=Ee.loadingKeys,ze=Ue===void 0?[]:Ue,be=u.props,Ge=be.loadData,je=be.onLoad;if(!Ge||Ie.indexOf(R)!==-1||ze.indexOf(R)!==-1)return null;var We=Ge(y);return We.then(function(){var tt=u.state.loadedKeys,st=(0,Je.L0)(tt,R);je==null||je(st,{event:"load",node:y}),u.setUncontrolledState({loadedKeys:st}),u.setState(function(ft){return{loadingKeys:(0,Je._5)(ft.loadingKeys,R)}}),z()}).catch(function(tt){if(u.setState(function(ft){return{loadingKeys:(0,Je._5)(ft.loadingKeys,R)}}),u.loadingRetryTimes[R]=(u.loadingRetryTimes[R]||0)+1,u.loadingRetryTimes[R]>=St){var st=u.state.loadedKeys;(0,ae.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),u.setUncontrolledState({loadedKeys:(0,Je.L0)(st,R)}),z()}V(tt)}),{loadingKeys:(0,Je.L0)(ze,R)}})});return p.catch(function(){}),p},u.onNodeMouseEnter=function(y,R){var p=u.props.onMouseEnter;p==null||p({event:y,node:R})},u.onNodeMouseLeave=function(y,R){var p=u.props.onMouseLeave;p==null||p({event:y,node:R})},u.onNodeContextMenu=function(y,R){var p=u.props.onRightClick;p&&(y.preventDefault(),p({event:y,node:R}))},u.onFocus=function(){var y=u.props.onFocus;u.setState({focused:!0});for(var R=arguments.length,p=new Array(R),z=0;z<R;z++)p[z]=arguments[z];y==null||y.apply(void 0,p)},u.onBlur=function(){var y=u.props.onBlur;u.setState({focused:!1}),u.onActiveChange(null);for(var R=arguments.length,p=new Array(R),z=0;z<R;z++)p[z]=arguments[z];y==null||y.apply(void 0,p)},u.getTreeNodeRequiredProps=function(){var y=u.state,R=y.expandedKeys,p=y.selectedKeys,z=y.loadedKeys,V=y.loadingKeys,Ee=y.checkedKeys,Se=y.halfCheckedKeys,Ie=y.dragOverNodeKey,Ue=y.dropPosition,ze=y.keyEntities;return{expandedKeys:R||[],selectedKeys:p||[],loadedKeys:z||[],loadingKeys:V||[],checkedKeys:Ee||[],halfCheckedKeys:Se||[],dragOverNodeKey:Ie,dropPosition:Ue,keyEntities:ze}},u.setExpandedKeys=function(y){var R=u.state,p=R.treeData,z=R.fieldNames,V=(0,e.oH)(p,y,z);u.setUncontrolledState({expandedKeys:y,flattenNodes:V},!0)},u.onNodeExpand=function(y,R){var p=u.state.expandedKeys,z=u.state,V=z.listChanging,Ee=z.fieldNames,Se=u.props,Ie=Se.onExpand,Ue=Se.loadData,ze=R.expanded,be=R[Ee.key];if(!V){var Ge=p.indexOf(be),je=!ze;if((0,ae.ZP)(ze&&Ge!==-1||!ze&&Ge===-1,"Expand state not sync with index check"),je?p=(0,Je.L0)(p,be):p=(0,Je._5)(p,be),u.setExpandedKeys(p),Ie==null||Ie(p,{node:R,expanded:je,nativeEvent:y.nativeEvent}),je&&Ue){var We=u.onNodeLoad(R);We&&We.then(function(){var tt=(0,e.oH)(u.state.treeData,p,Ee);u.setUncontrolledState({flattenNodes:tt})}).catch(function(){var tt=u.state.expandedKeys,st=(0,Je._5)(tt,be);u.setExpandedKeys(st)})}}},u.onListChangeStart=function(){u.setUncontrolledState({listChanging:!0})},u.onListChangeEnd=function(){setTimeout(function(){u.setUncontrolledState({listChanging:!1})})},u.onActiveChange=function(y){var R=u.state.activeKey,p=u.props.onActiveChange;R!==y&&(u.setState({activeKey:y}),y!==null&&u.scrollTo({key:y}),p==null||p(y))},u.getActiveItem=function(){var y=u.state,R=y.activeKey,p=y.flattenNodes;return R===null?null:p.find(function(z){var V=z.key;return V===R})||null},u.offsetActiveKey=function(y){var R=u.state,p=R.flattenNodes,z=R.activeKey,V=p.findIndex(function(Ie){var Ue=Ie.key;return Ue===z});V===-1&&y<0&&(V=p.length),V=(V+y+p.length)%p.length;var Ee=p[V];if(Ee){var Se=Ee.key;u.onActiveChange(Se)}else u.onActiveChange(null)},u.onKeyDown=function(y){var R=u.state,p=R.activeKey,z=R.expandedKeys,V=R.checkedKeys,Ee=R.fieldNames,Se=u.props,Ie=Se.onKeyDown,Ue=Se.checkable,ze=Se.selectable;switch(y.which){case Y.UP:{u.offsetActiveKey(-1),y.preventDefault();break}case Y.DOWN:{u.offsetActiveKey(1),y.preventDefault();break}}var be=u.getActiveItem();if(be&&be.data){var Ge=u.getTreeNodeRequiredProps(),je=be.data.isLeaf===!1||!!(be.data[Ee.children]||[]).length,We=(0,e.F)((0,$.Z)((0,$.Z)({},(0,e.H8)(p,Ge)),{},{data:be.data,active:!0}));switch(y.which){case Y.LEFT:{je&&z.includes(p)?u.onNodeExpand({},We):be.parent&&u.onActiveChange(be.parent.key),y.preventDefault();break}case Y.RIGHT:{je&&!z.includes(p)?u.onNodeExpand({},We):be.children&&be.children.length&&u.onActiveChange(be.children[0].key),y.preventDefault();break}case Y.ENTER:case Y.SPACE:{Ue&&!We.disabled&&We.checkable!==!1&&!We.disableCheckbox?u.onNodeCheck({},We,!V.includes(p)):!Ue&&ze&&!We.disabled&&We.selectable!==!1&&u.onNodeSelect({},We);break}}}Ie==null||Ie(y)},u.setUncontrolledState=function(y){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!u.destroyed){var z=!1,V=!0,Ee={};Object.keys(y).forEach(function(Se){if(Se in u.props){V=!1;return}z=!0,Ee[Se]=y[Se]}),z&&(!R||V)&&u.setState((0,$.Z)((0,$.Z)({},Ee),p))}},u.scrollTo=function(y){u.listRef.current.scrollTo(y)},u}return(0,I.Z)(ve,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var he=this.props.activeKey;he!==void 0&&he!==this.state.activeKey&&(this.setState({activeKey:he}),he!==null&&this.scrollTo({key:he}))}},{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 he,h=this.state,C=h.focused,y=h.flattenNodes,R=h.keyEntities,p=h.draggingNodeKey,z=h.activeKey,V=h.dropLevelOffset,Ee=h.dropContainerKey,Se=h.dropTargetKey,Ie=h.dropPosition,Ue=h.dragOverNodeKey,ze=h.indent,be=this.props,Ge=be.prefixCls,je=be.className,We=be.style,tt=be.showLine,st=be.focusable,ft=be.tabIndex,it=ft===void 0?0:ft,qe=be.selectable,ut=be.showIcon,at=be.icon,Dt=be.switcherIcon,Et=be.draggable,jt=be.checkable,Lt=be.checkStrictly,Vt=be.disabled,Gt=be.motion,nt=be.loadData,lt=be.filterTreeNode,At=be.height,zt=be.itemHeight,tn=be.virtual,bn=be.titleRender,mn=be.dropIndicatorRender,wn=be.onContextMenu,Bn=be.onScroll,On=be.direction,In=be.rootClassName,pn=be.rootStyle,zn=(0,ne.Z)(this.props,{aria:!0,data:!0}),fn;return Et&&((0,j.Z)(Et)==="object"?fn=Et:typeof Et=="function"?fn={nodeDraggable:Et}:fn={}),c.createElement(D.k.Provider,{value:{prefixCls:Ge,selectable:qe,showIcon:ut,icon:at,switcherIcon:Dt,draggable:fn,draggingNodeKey:p,checkable:jt,checkStrictly:Lt,disabled:Vt,keyEntities:R,dropLevelOffset:V,dropContainerKey:Ee,dropTargetKey:Se,dropPosition:Ie,dragOverNodeKey:Ue,indent:ze,direction:On,dropIndicatorRender:mn,loadData:nt,filterTreeNode:lt,titleRender:bn,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}},c.createElement("div",{role:"tree",className:ue()(Ge,je,In,(he={},(0,E.Z)(he,"".concat(Ge,"-show-line"),tt),(0,E.Z)(he,"".concat(Ge,"-focused"),C),(0,E.Z)(he,"".concat(Ge,"-active-focused"),z!==null),he)),style:pn},c.createElement(wt,(0,l.Z)({ref:this.listRef,prefixCls:Ge,style:We,data:y,disabled:Vt,selectable:qe,checkable:!!jt,motion:Gt,dragging:p!==null,height:At,itemHeight:zt,virtual:tn,focusable:st,focused:C,tabIndex:it,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:wn,onScroll:Bn},this.getTreeNodeRequiredProps(),zn))))}}],[{key:"getDerivedStateFromProps",value:function(he,h){var C=h.prevProps,y={prevProps:he};function R(st){return!C&&st in he||C&&C[st]!==he[st]}var p,z=h.fieldNames;if(R("fieldNames")&&(z=(0,e.w$)(he.fieldNames),y.fieldNames=z),R("treeData")?p=he.treeData:R("children")&&((0,ae.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),p=(0,e.zn)(he.children)),p){y.treeData=p;var V=(0,e.I8)(p,{fieldNames:z});y.keyEntities=(0,$.Z)((0,E.Z)({},Qe,Xe),V.keyEntities)}var Ee=y.keyEntities||h.keyEntities;if(R("expandedKeys")||C&&R("autoExpandParent"))y.expandedKeys=he.autoExpandParent||!C&&he.defaultExpandParent?(0,Je.r7)(he.expandedKeys,Ee):he.expandedKeys;else if(!C&&he.defaultExpandAll){var Se=(0,$.Z)({},Ee);delete Se[Qe],y.expandedKeys=Object.keys(Se).map(function(st){return Se[st].key})}else!C&&he.defaultExpandedKeys&&(y.expandedKeys=he.autoExpandParent||he.defaultExpandParent?(0,Je.r7)(he.defaultExpandedKeys,Ee):he.defaultExpandedKeys);if(y.expandedKeys||delete y.expandedKeys,p||y.expandedKeys){var Ie=(0,e.oH)(p||h.treeData,y.expandedKeys||h.expandedKeys,z);y.flattenNodes=Ie}if(he.selectable&&(R("selectedKeys")?y.selectedKeys=(0,Je.BT)(he.selectedKeys,he):!C&&he.defaultSelectedKeys&&(y.selectedKeys=(0,Je.BT)(he.defaultSelectedKeys,he))),he.checkable){var Ue;if(R("checkedKeys")?Ue=(0,Je.E6)(he.checkedKeys)||{}:!C&&he.defaultCheckedKeys?Ue=(0,Je.E6)(he.defaultCheckedKeys)||{}:p&&(Ue=(0,Je.E6)(he.checkedKeys)||{checkedKeys:h.checkedKeys,halfCheckedKeys:h.halfCheckedKeys}),Ue){var ze=Ue,be=ze.checkedKeys,Ge=be===void 0?[]:be,je=ze.halfCheckedKeys,We=je===void 0?[]:je;if(!he.checkStrictly){var tt=(0,sn.S)(Ge,!0,Ee);Ge=tt.checkedKeys,We=tt.halfCheckedKeys}y.checkedKeys=Ge,y.halfCheckedKeys=We}}return R("loadedKeys")&&(y.loadedKeys=he.loadedKeys),y}}]),ve}(c.Component);Ut.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:N,allowDrop:function(){return!0},expandAction:!1},Ut.TreeNode=we.Z;var Jt=Ut,rn=Jt,an=r(73148),_n=r(56747),Mn={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"},un=Mn,Fn=r(74643),on=function(re,ve){return c.createElement(Fn.Z,(0,l.Z)({},re,{ref:ve,icon:un}))},Un=c.forwardRef(on),Pn=r(53124),vn=r(50881),ln=r(33603),dn=r(32157);const Nn=4;function Sn(W){const{dropPosition:re,dropLevelOffset:ve,prefixCls:u,indent:he,direction:h="ltr"}=W,C=h==="ltr"?"left":"right",y=h==="ltr"?"right":"left",R={[C]:-ve*he+Nn,[y]:0};switch(re){case-1:R.top=-3;break;case 1:R.bottom=-3;break;default:R.bottom=-3,R[C]=he+Nn;break}return c.createElement("div",{style:R,className:`${u}-drop-indicator`})}var xn=r(99184),vr=c.forwardRef((W,re)=>{const{getPrefixCls:ve,direction:u,virtual:he,tree:h}=c.useContext(Pn.E_),{prefixCls:C,className:y,showIcon:R=!1,showLine:p,switcherIcon:z,blockNode:V=!1,children:Ee,checkable:Se=!1,selectable:Ie=!0,draggable:Ue,motion:ze,style:be}=W,Ge=ve("tree",C),je=ve(),We=ze!=null?ze:Object.assign(Object.assign({},(0,ln.Z)(je)),{motionAppear:!1}),tt=Object.assign(Object.assign({},W),{checkable:Se,selectable:Ie,showIcon:R,motion:We,blockNode:V,showLine:!!p,dropIndicatorRender:Sn}),[st,ft]=(0,dn.ZP)(Ge),it=c.useMemo(()=>{if(!Ue)return!1;let ut={};switch(typeof Ue){case"function":ut.nodeDraggable=Ue;break;case"object":ut=Object.assign({},Ue);break;default:break}return ut.icon!==!1&&(ut.icon=ut.icon||c.createElement(vn.Z,null)),ut},[Ue]),qe=ut=>c.createElement(xn.Z,{prefixCls:Ge,switcherIcon:z,treeNodeProps:ut,showLine:p});return st(c.createElement(rn,Object.assign({itemHeight:20,ref:re,virtual:he},tt,{style:Object.assign(Object.assign({},h==null?void 0:h.style),be),prefixCls:Ge,className:ue()({[`${Ge}-icon-hide`]:!R,[`${Ge}-block-node`]:V,[`${Ge}-unselectable`]:!Ie,[`${Ge}-rtl`]:u==="rtl"},h==null?void 0:h.className,y,ft),direction:u,checkable:Se&&c.createElement("span",{className:`${Ge}-checkbox-inner`}),selectable:Ie,switcherIcon:qe,draggable:it}),Ee))}),$n;(function(W){W[W.None=0]="None",W[W.Start=1]="Start",W[W.End=2]="End"})($n||($n={}));function Xn(W,re){function ve(u){const{key:he,children:h}=u;re(he,u)!==!1&&Xn(h||[],re)}W.forEach(ve)}function xr(W){let{treeData:re,expandedKeys:ve,startKey:u,endKey:he}=W;const h=[];let C=$n.None;if(u&&u===he)return[u];if(!u||!he)return[];function y(R){return R===u||R===he}return Xn(re,R=>{if(C===$n.End)return!1;if(y(R)){if(h.push(R),C===$n.None)C=$n.Start;else if(C===$n.Start)return C=$n.End,!1}else C===$n.Start&&h.push(R);return ve.includes(R)}),h}function sr(W,re){const ve=(0,T.Z)(re),u=[];return Xn(W,(he,h)=>{const C=ve.indexOf(he);return C!==-1&&(u.push(h),ve.splice(C,1)),!!ve.length}),u}var Er=function(W,re){var ve={};for(var u in W)Object.prototype.hasOwnProperty.call(W,u)&&re.indexOf(u)<0&&(ve[u]=W[u]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,u=Object.getOwnPropertySymbols(W);he<u.length;he++)re.indexOf(u[he])<0&&Object.prototype.propertyIsEnumerable.call(W,u[he])&&(ve[u[he]]=W[u[he]]);return ve};function pr(W){const{isLeaf:re,expanded:ve}=W;return re?c.createElement(an.Z,null):ve?c.createElement(_n.Z,null):c.createElement(Un,null)}function Yn(W){let{treeData:re,children:ve}=W;return re||(0,e.zn)(ve)}const dr=(W,re)=>{var{defaultExpandAll:ve,defaultExpandParent:u,defaultExpandedKeys:he}=W,h=Er(W,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const C=c.useRef(),y=c.useRef(),R=()=>{const{keyEntities:it}=(0,e.I8)(Yn(h));let qe;return ve?qe=Object.keys(it):u?qe=(0,Je.r7)(h.expandedKeys||he||[],it):qe=h.expandedKeys||he,qe},[p,z]=c.useState(h.selectedKeys||h.defaultSelectedKeys||[]),[V,Ee]=c.useState(()=>R());c.useEffect(()=>{"selectedKeys"in h&&z(h.selectedKeys)},[h.selectedKeys]),c.useEffect(()=>{"expandedKeys"in h&&Ee(h.expandedKeys)},[h.expandedKeys]);const Se=(it,qe)=>{var ut;return"expandedKeys"in h||Ee(it),(ut=h.onExpand)===null||ut===void 0?void 0:ut.call(h,it,qe)},Ie=(it,qe)=>{var ut;const{multiple:at}=h,{node:Dt,nativeEvent:Et}=qe,{key:jt=""}=Dt,Lt=Yn(h),Vt=Object.assign(Object.assign({},qe),{selected:!0}),Gt=(Et==null?void 0:Et.ctrlKey)||(Et==null?void 0:Et.metaKey),nt=Et==null?void 0:Et.shiftKey;let lt;at&&Gt?(lt=it,C.current=jt,y.current=lt,Vt.selectedNodes=sr(Lt,lt)):at&&nt?(lt=Array.from(new Set([].concat((0,T.Z)(y.current||[]),(0,T.Z)(xr({treeData:Lt,expandedKeys:V,startKey:jt,endKey:C.current}))))),Vt.selectedNodes=sr(Lt,lt)):(lt=[jt],C.current=jt,y.current=lt,Vt.selectedNodes=sr(Lt,lt)),(ut=h.onSelect)===null||ut===void 0||ut.call(h,lt,Vt),"selectedKeys"in h||z(lt)},{getPrefixCls:Ue,direction:ze}=c.useContext(Pn.E_),{prefixCls:be,className:Ge,showIcon:je=!0,expandAction:We="click"}=h,tt=Er(h,["prefixCls","className","showIcon","expandAction"]),st=Ue("tree",be),ft=ue()(`${st}-directory`,{[`${st}-directory-rtl`]:ze==="rtl"},Ge);return c.createElement(vr,Object.assign({icon:pr,ref:re,blockNode:!0},tt,{showIcon:je,expandAction:We,prefixCls:st,className:ft,expandedKeys:V,selectedKeys:p,onSelect:Ie,onExpand:Se}))};var Qn=c.forwardRef(dr);const kn=vr;kn.DirectoryTree=Qn,kn.TreeNode=we.Z;var gr=kn},32157:function(_t,Ae,r){"use strict";r.d(Ae,{TM:function(){return w},Yk:function(){return ue}});var l=r(45930),E=r(63185),j=r(14747),$=r(33507),T=r(45503),m=r(67968);const I=new l.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),oe=(Y,ne)=>({[`.${Y}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ne.motionDurationSlow}`}}}),f=(Y,ne)=>({[`.${Y}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ne.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ne.lineWidthBold}px solid ${ne.colorPrimary}`,borderRadius:"50%",content:'""'}}}),X=(Y,ne)=>{const{treeCls:ae,treeNodeCls:c,treeNodePadding:D,titleHeight:N,nodeSelectedBg:L,nodeHoverBg:x}=ne,d=ne.paddingXS;return{[ae]:Object.assign(Object.assign({},(0,j.Wf)(ne)),{background:ne.colorBgContainer,borderRadius:ne.borderRadius,transition:`background-color ${ne.motionDurationSlow}`,[`&${ae}-rtl`]:{[`${ae}-switcher`]:{"&_close":{[`${ae}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${ae}-active-focused)`]:Object.assign({},(0,j.oN)(ne)),[`${ae}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ae}-block-node`]:{[`${ae}-list-holder-inner`]:{alignItems:"stretch",[`${ae}-node-content-wrapper`]:{flex:"auto"},[`${c}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:D,insetInlineStart:0,border:`1px solid ${ne.colorPrimary}`,opacity:0,animationName:I,animationDuration:ne.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${c}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${D}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${ae}-node-content-wrapper`]:{color:ne.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${ae}-node-content-wrapper`]:Object.assign({},(0,j.oN)(ne)),[`&:not(${c}-disabled).filter-node ${ae}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${ae}-draggable-icon`]:{flexShrink:0,width:N,lineHeight:`${N}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${ne.motionDurationSlow}`,[`${c}:hover &`]:{opacity:.45}},[`&${c}-disabled`]:{[`${ae}-draggable-icon`]:{visibility:"hidden"}}}},[`${ae}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:N}},[`${ae}-draggable-icon`]:{visibility:"hidden"},[`${ae}-switcher`]:Object.assign(Object.assign({},oe(Y,ne)),{position:"relative",flex:"none",alignSelf:"stretch",width:N,margin:0,lineHeight:`${N}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${ae}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:ne.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:N/2,bottom:-D,marginInlineStart:-1,borderInlineEnd:`1px solid ${ne.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:N/2*.8,height:N/2,borderBottom:`1px solid ${ne.colorBorder}`,content:'""'}}}),[`${ae}-checkbox`]:{top:"initial",marginInlineEnd:d},[`${ae}-node-content-wrapper, ${ae}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:N,margin:0,padding:`0 ${ne.paddingXS/2}px`,color:"inherit",lineHeight:`${N}px`,background:"transparent",borderRadius:ne.borderRadius,cursor:"pointer",transition:`all ${ne.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:x},[`&${ae}-node-selected`]:{backgroundColor:L},[`${ae}-iconEle`]:{display:"inline-block",width:N,height:N,lineHeight:`${N}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${ae}-unselectable ${ae}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ae}-node-content-wrapper`]:Object.assign({lineHeight:`${N}px`,userSelect:"none"},f(Y,ne)),[`${c}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${ne.colorPrimary}`}},"&-show-line":{[`${ae}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:N/2,bottom:-D,borderInlineEnd:`1px solid ${ne.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${ae}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${c}-leaf-last`]:{[`${ae}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${N/2}px !important`}}}}})}},ie=Y=>{const{treeCls:ne,treeNodeCls:ae,treeNodePadding:c,directoryNodeSelectedBg:D,directoryNodeSelectedColor:N}=Y;return{[`${ne}${ne}-directory`]:{[ae]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:c,insetInlineStart:0,transition:`background-color ${Y.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Y.controlItemBgHover}},"> *":{zIndex:1},[`${ne}-switcher`]:{transition:`color ${Y.motionDurationMid}`},[`${ne}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${ne}-node-selected`]:{color:N,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:D},[`${ne}-switcher`]:{color:N},[`${ne}-node-content-wrapper`]:{color:N,background:"transparent"}}}}}},ue=(Y,ne)=>{const ae=`.${Y}`,c=`${ae}-treenode`,D=ne.paddingXS/2,N=(0,T.TS)(ne,{treeCls:ae,treeNodeCls:c,treeNodePadding:D});return[X(Y,N),ie(N)]},w=Y=>{const{controlHeightSM:ne}=Y;return{titleHeight:ne,nodeHoverBg:Y.controlItemBgHover,nodeSelectedBg:Y.controlItemBgActive}};Ae.ZP=(0,m.Z)("Tree",(Y,ne)=>{let{prefixCls:ae}=ne;return[{[Y.componentCls]:(0,E.C2)(`${ae}-checkbox`,Y)},ue(ae,Y),(0,$.Z)(Y)]},Y=>{const{colorTextLightSolid:ne,colorPrimary:ae}=Y;return Object.assign(Object.assign({},w(Y)),{directoryNodeSelectedColor:ne,directoryNodeSelectedBg:ae})})},99184:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return ae}});var l=r(87462),E=r(67294),j={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"},$=j,T=r(74643),m=function(D,N){return E.createElement(T.Z,(0,l.Z)({},D,{ref:N,icon:$}))},I=E.forwardRef(m),oe=r(73148),f=r(3407),X=r(34182),ie=r(74664),ue=r(94184),w=r.n(ue),Y=r(96159),ae=c=>{const{prefixCls:D,switcherIcon:N,treeNodeProps:L,showLine:x}=c,{isLeaf:d,expanded:b,loading:Z}=L;if(Z)return E.createElement(f.Z,{className:`${D}-switcher-loading-icon`});let F;if(x&&typeof x=="object"&&(F=x.showLeafIcon),d){if(!x)return null;if(typeof F!="boolean"&&F){const xe=typeof F=="function"?F(L):F,k=`${D}-switcher-line-custom-icon`;return(0,Y.l$)(xe)?(0,Y.Tm)(xe,{className:w()(xe.props.className||"",k)}):xe}return F?E.createElement(oe.Z,{className:`${D}-switcher-line-icon`}):E.createElement("span",{className:`${D}-switcher-leaf-line`})}const te=`${D}-switcher-icon`,ye=typeof N=="function"?N(L):N;return(0,Y.l$)(ye)?(0,Y.Tm)(ye,{className:w()(ye.props.className||"",te)}):ye!==void 0?ye:x?b?E.createElement(X.Z,{className:`${D}-switcher-line-icon`}):E.createElement(ie.Z,{className:`${D}-switcher-line-icon`}):E.createElement(I,{className:te})}},72665:function(_t,Ae){"use strict";var r;var l=typeof Symbol=="function"&&Symbol.for,E=l?Symbol.for("react.element"):60103,j=l?Symbol.for("react.portal"):60106,$=l?Symbol.for("react.fragment"):60107,T=l?Symbol.for("react.strict_mode"):60108,m=l?Symbol.for("react.profiler"):60114,I=l?Symbol.for("react.provider"):60109,oe=l?Symbol.for("react.context"):60110,f=l?Symbol.for("react.async_mode"):60111,X=l?Symbol.for("react.concurrent_mode"):60111,ie=l?Symbol.for("react.forward_ref"):60112,ue=l?Symbol.for("react.suspense"):60113,w=l?Symbol.for("react.suspense_list"):60120,Y=l?Symbol.for("react.memo"):60115,ne=l?Symbol.for("react.lazy"):60116,ae=l?Symbol.for("react.block"):60121,c=l?Symbol.for("react.fundamental"):60117,D=l?Symbol.for("react.responder"):60118,N=l?Symbol.for("react.scope"):60119;function L(d){if(typeof d=="object"&&d!==null){var b=d.$$typeof;switch(b){case E:switch(d=d.type,d){case f:case X:case $:case m:case T:case ue:return d;default:switch(d=d&&d.$$typeof,d){case oe:case ie:case ne:case Y:case I:return d;default:return b}}case j:return b}}}function x(d){return L(d)===X}r=f,r=X,r=oe,r=I,r=E,r=ie,r=$,r=ne,r=Y,r=j,r=m,r=T,r=ue,r=function(d){return x(d)||L(d)===f},r=x,r=function(d){return L(d)===oe},r=function(d){return L(d)===I},r=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===E},r=function(d){return L(d)===ie},r=function(d){return L(d)===$},r=function(d){return L(d)===ne},Ae.isMemo=function(d){return L(d)===Y},r=function(d){return L(d)===j},r=function(d){return L(d)===m},r=function(d){return L(d)===T},r=function(d){return L(d)===ue},r=function(d){return typeof d=="string"||typeof d=="function"||d===$||d===X||d===m||d===T||d===ue||d===w||typeof d=="object"&&d!==null&&(d.$$typeof===ne||d.$$typeof===Y||d.$$typeof===I||d.$$typeof===oe||d.$$typeof===ie||d.$$typeof===c||d.$$typeof===D||d.$$typeof===N||d.$$typeof===ae)},r=L},12060:function(_t,Ae,r){"use strict";_t.exports=r(72665)},56261:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return F}});var l=r(87462),E=r(4942),j=r(45987),$=r(1413),T=r(15671),m=r(43144),I=r(97326),oe=r(60136),f=r(51630),X=r(94184),ie=r.n(X),ue=r(34952),w=r(67294),Y=r(69610),ne=function(ye){for(var xe=ye.prefixCls,k=ye.level,Be=ye.isStart,Q=ye.isEnd,ce="".concat(xe,"-indent-unit"),M=[],O=0;O<k;O+=1){var ke;M.push(w.createElement("span",{key:O,className:ie()(ce,(ke={},(0,E.Z)(ke,"".concat(ce,"-start"),Be[O]),(0,E.Z)(ke,"".concat(ce,"-end"),Q[O]),ke))}))}return w.createElement("span",{"aria-hidden":"true",className:"".concat(xe,"-indent")},M)},ae=w.memo(ne),c=r(3596),D=r(83898),N=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],L="open",x="close",d="---",b=function(te){(0,oe.Z)(xe,te);var ye=(0,f.Z)(xe);function xe(){var k;(0,T.Z)(this,xe);for(var Be=arguments.length,Q=new Array(Be),ce=0;ce<Be;ce++)Q[ce]=arguments[ce];return k=ye.call.apply(ye,[this].concat(Q)),k.state={dragNodeHighlight:!1},k.selectHandle=void 0,k.cacheIndent=void 0,k.onSelectorClick=function(M){var O=k.props.context.onNodeClick;O(M,(0,D.F)(k.props)),k.isSelectable()?k.onSelect(M):k.onCheck(M)},k.onSelectorDoubleClick=function(M){var O=k.props.context.onNodeDoubleClick;O(M,(0,D.F)(k.props))},k.onSelect=function(M){if(!k.isDisabled()){var O=k.props.context.onNodeSelect;O(M,(0,D.F)(k.props))}},k.onCheck=function(M){if(!k.isDisabled()){var O=k.props,ke=O.disableCheckbox,Fe=O.checked,Te=k.props.context.onNodeCheck;if(!(!k.isCheckable()||ke)){var q=!Fe;Te(M,(0,D.F)(k.props),q)}}},k.onMouseEnter=function(M){var O=k.props.context.onNodeMouseEnter;O(M,(0,D.F)(k.props))},k.onMouseLeave=function(M){var O=k.props.context.onNodeMouseLeave;O(M,(0,D.F)(k.props))},k.onContextMenu=function(M){var O=k.props.context.onNodeContextMenu;O(M,(0,D.F)(k.props))},k.onDragStart=function(M){var O=k.props.context.onNodeDragStart;M.stopPropagation(),k.setState({dragNodeHighlight:!0}),O(M,(0,I.Z)(k));try{M.dataTransfer.setData("text/plain","")}catch(ke){}},k.onDragEnter=function(M){var O=k.props.context.onNodeDragEnter;M.preventDefault(),M.stopPropagation(),O(M,(0,I.Z)(k))},k.onDragOver=function(M){var O=k.props.context.onNodeDragOver;M.preventDefault(),M.stopPropagation(),O(M,(0,I.Z)(k))},k.onDragLeave=function(M){var O=k.props.context.onNodeDragLeave;M.stopPropagation(),O(M,(0,I.Z)(k))},k.onDragEnd=function(M){var O=k.props.context.onNodeDragEnd;M.stopPropagation(),k.setState({dragNodeHighlight:!1}),O(M,(0,I.Z)(k))},k.onDrop=function(M){var O=k.props.context.onNodeDrop;M.preventDefault(),M.stopPropagation(),k.setState({dragNodeHighlight:!1}),O(M,(0,I.Z)(k))},k.onExpand=function(M){var O=k.props,ke=O.loading,Fe=O.context.onNodeExpand;ke||Fe(M,(0,D.F)(k.props))},k.setSelectHandle=function(M){k.selectHandle=M},k.getNodeState=function(){var M=k.props.expanded;return k.isLeaf()?null:M?L:x},k.hasChildren=function(){var M=k.props.eventKey,O=k.props.context.keyEntities,ke=(0,c.Z)(O,M)||{},Fe=ke.children;return!!(Fe||[]).length},k.isLeaf=function(){var M=k.props,O=M.isLeaf,ke=M.loaded,Fe=k.props.context.loadData,Te=k.hasChildren();return O===!1?!1:O||!Fe&&!Te||Fe&&ke&&!Te},k.isDisabled=function(){var M=k.props.disabled,O=k.props.context.disabled;return!!(O||M)},k.isCheckable=function(){var M=k.props.checkable,O=k.props.context.checkable;return!O||M===!1?!1:O},k.syncLoadData=function(M){var O=M.expanded,ke=M.loading,Fe=M.loaded,Te=k.props.context,q=Te.loadData,ge=Te.onNodeLoad;ke||q&&O&&!k.isLeaf()&&!k.hasChildren()&&!Fe&&ge((0,D.F)(k.props))},k.isDraggable=function(){var M=k.props,O=M.data,ke=M.context.draggable;return!!(ke&&(!ke.nodeDraggable||ke.nodeDraggable(O)))},k.renderDragHandler=function(){var M=k.props.context,O=M.draggable,ke=M.prefixCls;return O!=null&&O.icon?w.createElement("span",{className:"".concat(ke,"-draggable-icon")},O.icon):null},k.renderSwitcherIconDom=function(M){var O=k.props.switcherIcon,ke=k.props.context.switcherIcon,Fe=O||ke;return typeof Fe=="function"?Fe((0,$.Z)((0,$.Z)({},k.props),{},{isLeaf:M})):Fe},k.renderSwitcher=function(){var M=k.props.expanded,O=k.props.context.prefixCls;if(k.isLeaf()){var ke=k.renderSwitcherIconDom(!0);return ke!==!1?w.createElement("span",{className:ie()("".concat(O,"-switcher"),"".concat(O,"-switcher-noop"))},ke):null}var Fe=ie()("".concat(O,"-switcher"),"".concat(O,"-switcher_").concat(M?L:x)),Te=k.renderSwitcherIconDom(!1);return Te!==!1?w.createElement("span",{onClick:k.onExpand,className:Fe},Te):null},k.renderCheckbox=function(){var M=k.props,O=M.checked,ke=M.halfChecked,Fe=M.disableCheckbox,Te=k.props.context.prefixCls,q=k.isDisabled(),ge=k.isCheckable();if(!ge)return null;var Le=typeof ge!="boolean"?ge:null;return w.createElement("span",{className:ie()("".concat(Te,"-checkbox"),O&&"".concat(Te,"-checkbox-checked"),!O&&ke&&"".concat(Te,"-checkbox-indeterminate"),(q||Fe)&&"".concat(Te,"-checkbox-disabled")),onClick:k.onCheck},Le)},k.renderIcon=function(){var M=k.props.loading,O=k.props.context.prefixCls;return w.createElement("span",{className:ie()("".concat(O,"-iconEle"),"".concat(O,"-icon__").concat(k.getNodeState()||"docu"),M&&"".concat(O,"-icon_loading"))})},k.renderSelector=function(){var M=k.state.dragNodeHighlight,O=k.props,ke=O.title,Fe=ke===void 0?d:ke,Te=O.selected,q=O.icon,ge=O.loading,Le=O.data,Ce=k.props.context,$e=Ce.prefixCls,Tt=Ce.showIcon,ot=Ce.icon,Mt=Ce.loadData,bt=Ce.titleRender,Nt=k.isDisabled(),xt="".concat($e,"-node-content-wrapper"),Ct;if(Tt){var Rt=q||ot;Ct=Rt?w.createElement("span",{className:ie()("".concat($e,"-iconEle"),"".concat($e,"-icon__customize"))},typeof Rt=="function"?Rt(k.props):Rt):k.renderIcon()}else Mt&&ge&&(Ct=k.renderIcon());var Pt;typeof Fe=="function"?Pt=Fe(Le):bt?Pt=bt(Le):Pt=Fe;var rt=w.createElement("span",{className:"".concat($e,"-title")},Pt);return w.createElement("span",{ref:k.setSelectHandle,title:typeof Fe=="string"?Fe:"",className:ie()("".concat(xt),"".concat(xt,"-").concat(k.getNodeState()||"normal"),!Nt&&(Te||M)&&"".concat($e,"-node-selected")),onMouseEnter:k.onMouseEnter,onMouseLeave:k.onMouseLeave,onContextMenu:k.onContextMenu,onClick:k.onSelectorClick,onDoubleClick:k.onSelectorDoubleClick},Ct,rt,k.renderDropIndicator())},k.renderDropIndicator=function(){var M=k.props,O=M.disabled,ke=M.eventKey,Fe=k.props.context,Te=Fe.draggable,q=Fe.dropLevelOffset,ge=Fe.dropPosition,Le=Fe.prefixCls,Ce=Fe.indent,$e=Fe.dropIndicatorRender,Tt=Fe.dragOverNodeKey,ot=Fe.direction,Mt=!!Te,bt=!O&&Mt&&Tt===ke,Nt=Ce!=null?Ce:k.cacheIndent;return k.cacheIndent=Ce,bt?$e({dropPosition:ge,dropLevelOffset:q,indent:Nt,prefixCls:Le,direction:ot}):null},k}return(0,m.Z)(xe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Be=this.props.selectable,Q=this.props.context.selectable;return typeof Be=="boolean"?Be:Q}},{key:"render",value:function(){var Be,Q=this.props,ce=Q.eventKey,M=Q.className,O=Q.style,ke=Q.dragOver,Fe=Q.dragOverGapTop,Te=Q.dragOverGapBottom,q=Q.isLeaf,ge=Q.isStart,Le=Q.isEnd,Ce=Q.expanded,$e=Q.selected,Tt=Q.checked,ot=Q.halfChecked,Mt=Q.loading,bt=Q.domRef,Nt=Q.active,xt=Q.data,Ct=Q.onMouseMove,Rt=Q.selectable,Pt=(0,j.Z)(Q,N),rt=this.props.context,fe=rt.prefixCls,J=rt.filterTreeNode,o=rt.keyEntities,s=rt.dropContainerKey,_=rt.dropTargetKey,B=rt.draggingNodeKey,S=this.isDisabled(),K=(0,ue.Z)(Pt,{aria:!0,data:!0}),U=(0,c.Z)(o,ce)||{},g=U.level,H=Le[Le.length-1],G=this.isDraggable(),le=!S&&G,Ne=B===ce,Ze=Rt!==void 0?{"aria-selected":!!Rt}:void 0;return w.createElement("div",(0,l.Z)({ref:bt,className:ie()(M,"".concat(fe,"-treenode"),(Be={},(0,E.Z)(Be,"".concat(fe,"-treenode-disabled"),S),(0,E.Z)(Be,"".concat(fe,"-treenode-switcher-").concat(Ce?"open":"close"),!q),(0,E.Z)(Be,"".concat(fe,"-treenode-checkbox-checked"),Tt),(0,E.Z)(Be,"".concat(fe,"-treenode-checkbox-indeterminate"),ot),(0,E.Z)(Be,"".concat(fe,"-treenode-selected"),$e),(0,E.Z)(Be,"".concat(fe,"-treenode-loading"),Mt),(0,E.Z)(Be,"".concat(fe,"-treenode-active"),Nt),(0,E.Z)(Be,"".concat(fe,"-treenode-leaf-last"),H),(0,E.Z)(Be,"".concat(fe,"-treenode-draggable"),G),(0,E.Z)(Be,"dragging",Ne),(0,E.Z)(Be,"drop-target",_===ce),(0,E.Z)(Be,"drop-container",s===ce),(0,E.Z)(Be,"drag-over",!S&&ke),(0,E.Z)(Be,"drag-over-gap-top",!S&&Fe),(0,E.Z)(Be,"drag-over-gap-bottom",!S&&Te),(0,E.Z)(Be,"filter-node",J&&J((0,D.F)(this.props))),Be)),style:O,draggable:le,"aria-grabbed":Ne,onDragStart:le?this.onDragStart:void 0,onDragEnter:G?this.onDragEnter:void 0,onDragOver:G?this.onDragOver:void 0,onDragLeave:G?this.onDragLeave:void 0,onDrop:G?this.onDrop:void 0,onDragEnd:G?this.onDragEnd:void 0,onMouseMove:Ct},Ze,K),w.createElement(ae,{prefixCls:fe,level:g,isStart:ge,isEnd:Le}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),xe}(w.Component),Z=function(ye){return w.createElement(Y.k.Consumer,null,function(xe){return w.createElement(b,(0,l.Z)({},ye,{context:xe}))})};Z.displayName="TreeNode",Z.isTreeNode=1;var F=Z},69610:function(_t,Ae,r){"use strict";r.d(Ae,{k:function(){return E}});var l=r(67294),E=l.createContext(null)},29873:function(_t,Ae,r){"use strict";r.d(Ae,{BT:function(){return ae},E6:function(){return N},L0:function(){return X},OM:function(){return ne},_5:function(){return f},r7:function(){return L},wA:function(){return ue},yx:function(){return ie}});var l=r(74902),E=r(71002),j=r(72978),$=r(67294),T=r(56261),m=r(3596),I=r(83898),oe=null;function f(x,d){if(!x)return[];var b=x.slice(),Z=b.indexOf(d);return Z>=0&&b.splice(Z,1),b}function X(x,d){var b=(x||[]).slice();return b.indexOf(d)===-1&&b.push(d),b}function ie(x){return x.split("-")}function ue(x,d){var b=[],Z=(0,m.Z)(d,x);function F(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];te.forEach(function(ye){var xe=ye.key,k=ye.children;b.push(xe),F(k)})}return F(Z.children),b}function w(x){if(x.parent){var d=ie(x.pos);return Number(d[d.length-1])===x.parent.children.length-1}return!1}function Y(x){var d=ie(x.pos);return Number(d[d.length-1])===0}function ne(x,d,b,Z,F,te,ye,xe,k,Be){var Q,ce=x.clientX,M=x.clientY,O=x.target.getBoundingClientRect(),ke=O.top,Fe=O.height,Te=(Be==="rtl"?-1:1)*(((F==null?void 0:F.x)||0)-ce),q=(Te-12)/Z,ge=(0,m.Z)(xe,b.props.eventKey);if(M<ke+Fe/2){var Le=ye.findIndex(function(rt){return rt.key===ge.key}),Ce=Le<=0?0:Le-1,$e=ye[Ce].key;ge=(0,m.Z)(xe,$e)}var Tt=ge.key,ot=ge,Mt=ge.key,bt=0,Nt=0;if(!k.includes(Tt))for(var xt=0;xt<q&&w(ge);xt+=1)ge=ge.parent,Nt+=1;var Ct=d.props.data,Rt=ge.node,Pt=!0;return Y(ge)&&ge.level===0&&M<ke+Fe/2&&te({dragNode:Ct,dropNode:Rt,dropPosition:-1})&&ge.key===b.props.eventKey?bt=-1:(ot.children||[]).length&&k.includes(Mt)?te({dragNode:Ct,dropNode:Rt,dropPosition:0})?bt=0:Pt=!1:Nt===0?q>-1.5?te({dragNode:Ct,dropNode:Rt,dropPosition:1})?bt=1:Pt=!1:te({dragNode:Ct,dropNode:Rt,dropPosition:0})?bt=0:te({dragNode:Ct,dropNode:Rt,dropPosition:1})?bt=1:Pt=!1:te({dragNode:Ct,dropNode:Rt,dropPosition:1})?bt=1:Pt=!1,{dropPosition:bt,dropLevelOffset:Nt,dropTargetKey:ge.key,dropTargetPos:ge.pos,dragOverNodeKey:Mt,dropContainerKey:bt===0?null:((Q=ge.parent)===null||Q===void 0?void 0:Q.key)||null,dropAllowed:Pt}}function ae(x,d){if(x){var b=d.multiple;return b?x.slice():x.length?[x[0]]:x}}var c=function(d){return d};function D(x,d){if(!x)return[];var b=d||{},Z=b.processProps,F=Z===void 0?c:Z,te=Array.isArray(x)?x:[x];return te.map(function(ye){var xe=ye.children,k=_objectWithoutProperties(ye,oe),Be=D(xe,d);return React.createElement(TreeNode,_extends({key:k.key},F(k)),Be)})}function N(x){if(!x)return null;var d;if(Array.isArray(x))d={checkedKeys:x,halfCheckedKeys:void 0};else if((0,E.Z)(x)==="object")d={checkedKeys:x.checked||void 0,halfCheckedKeys:x.halfChecked||void 0};else return(0,j.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return d}function L(x,d){var b=new Set;function Z(F){if(!b.has(F)){var te=(0,m.Z)(d,F);if(te){b.add(F);var ye=te.parent,xe=te.node;xe.disabled||ye&&Z(ye.key)}}}return(x||[]).forEach(function(F){Z(F)}),(0,l.Z)(b)}},97153:function(_t,Ae,r){"use strict";r.d(Ae,{S:function(){return I}});var l=r(72978),E=r(3596);function j(oe,f){var X=new Set;return oe.forEach(function(ie){f.has(ie)||X.add(ie)}),X}function $(oe){var f=oe||{},X=f.disabled,ie=f.disableCheckbox,ue=f.checkable;return!!(X||ie)||ue===!1}function T(oe,f,X,ie){for(var ue=new Set(oe),w=new Set,Y=0;Y<=X;Y+=1){var ne=f.get(Y)||new Set;ne.forEach(function(N){var L=N.key,x=N.node,d=N.children,b=d===void 0?[]:d;ue.has(L)&&!ie(x)&&b.filter(function(Z){return!ie(Z.node)}).forEach(function(Z){ue.add(Z.key)})})}for(var ae=new Set,c=X;c>=0;c-=1){var D=f.get(c)||new Set;D.forEach(function(N){var L=N.parent,x=N.node;if(!(ie(x)||!N.parent||ae.has(N.parent.key))){if(ie(N.parent.node)){ae.add(L.key);return}var d=!0,b=!1;(L.children||[]).filter(function(Z){return!ie(Z.node)}).forEach(function(Z){var F=Z.key,te=ue.has(F);d&&!te&&(d=!1),!b&&(te||w.has(F))&&(b=!0)}),d&&ue.add(L.key),b&&w.add(L.key),ae.add(L.key)}})}return{checkedKeys:Array.from(ue),halfCheckedKeys:Array.from(j(w,ue))}}function m(oe,f,X,ie,ue){for(var w=new Set(oe),Y=new Set(f),ne=0;ne<=ie;ne+=1){var ae=X.get(ne)||new Set;ae.forEach(function(L){var x=L.key,d=L.node,b=L.children,Z=b===void 0?[]:b;!w.has(x)&&!Y.has(x)&&!ue(d)&&Z.filter(function(F){return!ue(F.node)}).forEach(function(F){w.delete(F.key)})})}Y=new Set;for(var c=new Set,D=ie;D>=0;D-=1){var N=X.get(D)||new Set;N.forEach(function(L){var x=L.parent,d=L.node;if(!(ue(d)||!L.parent||c.has(L.parent.key))){if(ue(L.parent.node)){c.add(x.key);return}var b=!0,Z=!1;(x.children||[]).filter(function(F){return!ue(F.node)}).forEach(function(F){var te=F.key,ye=w.has(te);b&&!ye&&(b=!1),!Z&&(ye||Y.has(te))&&(Z=!0)}),b||w.delete(x.key),Z&&Y.add(x.key),c.add(x.key)}})}return{checkedKeys:Array.from(w),halfCheckedKeys:Array.from(j(Y,w))}}function I(oe,f,X,ie){var ue=[],w;ie?w=ie:w=$;var Y=new Set(oe.filter(function(D){var N=!!(0,E.Z)(X,D);return N||ue.push(D),N})),ne=new Map,ae=0;Object.keys(X).forEach(function(D){var N=X[D],L=N.level,x=ne.get(L);x||(x=new Set,ne.set(L,x)),x.add(N),ae=Math.max(ae,L)}),(0,l.ZP)(!ue.length,"Tree missing follow keys: ".concat(ue.slice(0,100).map(function(D){return"'".concat(D,"'")}).join(", ")));var c;return f===!0?c=T(Y,ne,ae,w):c=m(Y,f.halfCheckedKeys,ne,ae,w),c}},3596:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return l}});function l(E,j){return E[j]}},83898:function(_t,Ae,r){"use strict";r.d(Ae,{I8:function(){return L},F:function(){return d},zn:function(){return c},w$:function(){return ne},oH:function(){return D},km:function(){return Y},H8:function(){return x}});var l=r(71002),E=r(74902),j=r(1413),$=r(45987),T=r(67294),m=r(28580);function I(b){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=[];return T.Children.forEach(b,function(te){te==null&&!Z.keepEmpty||(Array.isArray(te)?F=F.concat(I(te)):(0,m.isFragment)(te)&&te.props?F=F.concat(I(te.props.children,Z)):F.push(te))}),F}function oe(b,Z){var F=(0,j.Z)({},b);return Array.isArray(Z)&&Z.forEach(function(te){delete F[te]}),F}var f=r(72978),X=r(3596),ie=["children"];function ue(b,Z){return"".concat(b,"-").concat(Z)}function w(b){return b&&b.type&&b.type.isTreeNode}function Y(b,Z){return b!=null?b:Z}function ne(b){var Z=b||{},F=Z.title,te=Z._title,ye=Z.key,xe=Z.children,k=F||"title";return{title:k,_title:te||[k],key:ye||"key",children:xe||"children"}}function ae(b,Z){var F=new Map;function te(ye){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ye||[]).forEach(function(k){var Be=k[Z.key],Q=k[Z.children];warning(Be!=null,"Tree node must have a certain key: [".concat(xe).concat(Be,"]"));var ce=String(Be);warning(!F.has(ce)||Be===null||Be===void 0,"Same 'key' exist in the Tree: ".concat(ce)),F.set(ce,!0),te(Q,"".concat(xe).concat(ce," > "))})}te(b)}function c(b){function Z(F){var te=I(F);return te.map(function(ye){if(!w(ye))return(0,f.ZP)(!ye,"Tree/TreeNode can only accept TreeNode as children."),null;var xe=ye.key,k=ye.props,Be=k.children,Q=(0,$.Z)(k,ie),ce=(0,j.Z)({key:xe},Q),M=Z(Be);return M.length&&(ce.children=M),ce}).filter(function(ye){return ye})}return Z(b)}function D(b,Z,F){var te=ne(F),ye=te._title,xe=te.key,k=te.children,Be=new Set(Z===!0?[]:Z),Q=[];function ce(M){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return M.map(function(ke,Fe){for(var Te=ue(O?O.pos:"0",Fe),q=Y(ke[xe],Te),ge,Le=0;Le<ye.length;Le+=1){var Ce=ye[Le];if(ke[Ce]!==void 0){ge=ke[Ce];break}}var $e=(0,j.Z)((0,j.Z)({},oe(ke,[].concat((0,E.Z)(ye),[xe,k]))),{},{title:ge,key:q,parent:O,pos:Te,children:null,data:ke,isStart:[].concat((0,E.Z)(O?O.isStart:[]),[Fe===0]),isEnd:[].concat((0,E.Z)(O?O.isEnd:[]),[Fe===M.length-1])});return Q.push($e),Z===!0||Be.has(q)?$e.children=ce(ke[k]||[],$e):$e.children=[],$e})}return ce(b),Q}function N(b,Z,F){var te={};(0,l.Z)(F)==="object"?te=F:te={externalGetKey:F},te=te||{};var ye=te,xe=ye.childrenPropName,k=ye.externalGetKey,Be=ye.fieldNames,Q=ne(Be),ce=Q.key,M=Q.children,O=xe||M,ke;k?typeof k=="string"?ke=function(q){return q[k]}:typeof k=="function"&&(ke=function(q){return k(q)}):ke=function(q,ge){return Y(q[ce],ge)};function Fe(Te,q,ge,Le){var Ce=Te?Te[O]:b,$e=Te?ue(ge.pos,q):"0",Tt=Te?[].concat((0,E.Z)(Le),[Te]):[];if(Te){var ot=ke(Te,$e),Mt={node:Te,index:q,pos:$e,key:ot,parentPos:ge.node?ge.pos:null,level:ge.level+1,nodes:Tt};Z(Mt)}Ce&&Ce.forEach(function(bt,Nt){Fe(bt,Nt,{node:Te,pos:$e,level:ge?ge.level+1:-1},Tt)})}Fe(null)}function L(b){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=Z.initWrapper,te=Z.processEntity,ye=Z.onProcessFinished,xe=Z.externalGetKey,k=Z.childrenPropName,Be=Z.fieldNames,Q=arguments.length>2?arguments[2]:void 0,ce=xe||Q,M={},O={},ke={posEntities:M,keyEntities:O};return F&&(ke=F(ke)||ke),N(b,function(Fe){var Te=Fe.node,q=Fe.index,ge=Fe.pos,Le=Fe.key,Ce=Fe.parentPos,$e=Fe.level,Tt=Fe.nodes,ot={node:Te,nodes:Tt,index:q,key:Le,pos:ge,level:$e},Mt=Y(Le,ge);M[ge]=ot,O[Mt]=ot,ot.parent=M[Ce],ot.parent&&(ot.parent.children=ot.parent.children||[],ot.parent.children.push(ot)),te&&te(ot,ke)},{externalGetKey:ce,childrenPropName:k,fieldNames:Be}),ye&&ye(ke),ke}function x(b,Z){var F=Z.expandedKeys,te=Z.selectedKeys,ye=Z.loadedKeys,xe=Z.loadingKeys,k=Z.checkedKeys,Be=Z.halfCheckedKeys,Q=Z.dragOverNodeKey,ce=Z.dropPosition,M=Z.keyEntities,O=(0,X.Z)(M,b),ke={eventKey:b,expanded:F.indexOf(b)!==-1,selected:te.indexOf(b)!==-1,loaded:ye.indexOf(b)!==-1,loading:xe.indexOf(b)!==-1,checked:k.indexOf(b)!==-1,halfChecked:Be.indexOf(b)!==-1,pos:String(O?O.pos:""),dragOver:Q===b&&ce===0,dragOverGapTop:Q===b&&ce===-1,dragOverGapBottom:Q===b&&ce===1};return ke}function d(b){var Z=b.data,F=b.expanded,te=b.selected,ye=b.checked,xe=b.loaded,k=b.loading,Be=b.halfChecked,Q=b.dragOver,ce=b.dragOverGapTop,M=b.dragOverGapBottom,O=b.pos,ke=b.active,Fe=b.eventKey,Te=(0,j.Z)((0,j.Z)({},Z),{},{expanded:F,selected:te,checked:ye,loaded:xe,loading:k,halfChecked:Be,dragOver:Q,dragOverGapTop:ce,dragOverGapBottom:M,pos:O,active:ke,key:Fe});return"props"in Te||Object.defineProperty(Te,"props",{get:function(){return(0,f.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),b}}),Te}},34952:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return oe}});var l=r(1413),E=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,j=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,$="".concat(E," ").concat(j).split(/[\s\n]+/),T="aria-",m="data-";function I(f,X){return f.indexOf(X)===0}function oe(f){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie;X===!1?ie={aria:!0,data:!0,attr:!0}:X===!0?ie={aria:!0}:ie=(0,l.Z)({},X);var ue={};return Object.keys(f).forEach(function(w){(ie.aria&&(w==="role"||I(w,T))||ie.data&&I(w,m)||ie.attr&&$.includes(w))&&(ue[w]=f[w])}),ue}},72978:function(_t,Ae,r){"use strict";var l={};function E(oe,f){}function j(oe,f){}function $(){l={}}function T(oe,f,X){!f&&!l[X]&&(oe(!1,X),l[X]=!0)}function m(oe,f){T(E,oe,f)}function I(oe,f){T(j,oe,f)}Ae.ZP=m},81533:function(_t,Ae){"use strict";var r;var l=typeof Symbol=="function"&&Symbol.for,E=l?Symbol.for("react.element"):60103,j=l?Symbol.for("react.portal"):60106,$=l?Symbol.for("react.fragment"):60107,T=l?Symbol.for("react.strict_mode"):60108,m=l?Symbol.for("react.profiler"):60114,I=l?Symbol.for("react.provider"):60109,oe=l?Symbol.for("react.context"):60110,f=l?Symbol.for("react.async_mode"):60111,X=l?Symbol.for("react.concurrent_mode"):60111,ie=l?Symbol.for("react.forward_ref"):60112,ue=l?Symbol.for("react.suspense"):60113,w=l?Symbol.for("react.suspense_list"):60120,Y=l?Symbol.for("react.memo"):60115,ne=l?Symbol.for("react.lazy"):60116,ae=l?Symbol.for("react.block"):60121,c=l?Symbol.for("react.fundamental"):60117,D=l?Symbol.for("react.responder"):60118,N=l?Symbol.for("react.scope"):60119;function L(d){if(typeof d=="object"&&d!==null){var b=d.$$typeof;switch(b){case E:switch(d=d.type,d){case f:case X:case $:case m:case T:case ue:return d;default:switch(d=d&&d.$$typeof,d){case oe:case ie:case ne:case Y:case I:return d;default:return b}}case j:return b}}}function x(d){return L(d)===X}r=f,r=X,r=oe,r=I,r=E,r=ie,r=$,r=ne,r=Y,r=j,r=m,r=T,r=ue,r=function(d){return x(d)||L(d)===f},r=x,r=function(d){return L(d)===oe},r=function(d){return L(d)===I},r=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===E},r=function(d){return L(d)===ie},Ae.isFragment=function(d){return L(d)===$},r=function(d){return L(d)===ne},Ae.isMemo=function(d){return L(d)===Y},r=function(d){return L(d)===j},r=function(d){return L(d)===m},r=function(d){return L(d)===T},r=function(d){return L(d)===ue},r=function(d){return typeof d=="string"||typeof d=="function"||d===$||d===X||d===m||d===T||d===ue||d===w||typeof d=="object"&&d!==null&&(d.$$typeof===ne||d.$$typeof===Y||d.$$typeof===I||d.$$typeof===oe||d.$$typeof===ie||d.$$typeof===c||d.$$typeof===D||d.$$typeof===N||d.$$typeof===ae)},r=L},28580:function(_t,Ae,r){"use strict";_t.exports=r(81533)},82702:function(_t,Ae,r){var l=r(34155);(function(E,j){_t.exports=j()})(this,function(){"use strict";function E(S){var K=typeof S;return S!==null&&(K==="object"||K==="function")}function j(S){return typeof S=="function"}var $=void 0;Array.isArray?$=Array.isArray:$=function(S){return Object.prototype.toString.call(S)==="[object Array]"};var T=$,m=0,I=void 0,oe=void 0,f=function(K,U){d[m]=K,d[m+1]=U,m+=2,m===2&&(oe?oe(b):F())};function X(S){oe=S}function ie(S){f=S}var ue=typeof window!="undefined"?window:void 0,w=ue||{},Y=w.MutationObserver||w.WebKitMutationObserver,ne=typeof self=="undefined"&&typeof l!="undefined"&&{}.toString.call(l)==="[object process]",ae=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function c(){return function(){return l.nextTick(b)}}function D(){return typeof I!="undefined"?function(){I(b)}:x()}function N(){var S=0,K=new Y(b),U=document.createTextNode("");return K.observe(U,{characterData:!0}),function(){U.data=S=++S%2}}function L(){var S=new MessageChannel;return S.port1.onmessage=b,function(){return S.port2.postMessage(0)}}function x(){var S=setTimeout;return function(){return S(b,1)}}var d=new Array(1e3);function b(){for(var S=0;S<m;S+=2){var K=d[S],U=d[S+1];K(U),d[S]=void 0,d[S+1]=void 0}m=0}function Z(){try{var S=Function("return this")().require("vertx");return I=S.runOnLoop||S.runOnContext,D()}catch(K){return x()}}var F=void 0;ne?F=c():Y?F=N():ae?F=L():ue===void 0?F=Z():F=x();function te(S,K){var U=this,g=new this.constructor(k);g[xe]===void 0&&Ct(g);var H=U._state;if(H){var G=arguments[H-1];f(function(){return Mt(H,g,G,U._result)})}else Tt(U,g,S,K);return g}function ye(S){var K=this;if(S&&typeof S=="object"&&S.constructor===K)return S;var U=new K(k);return ge(U,S),U}var xe=Math.random().toString(36).substring(2);function k(){}var Be=void 0,Q=1,ce=2;function M(){return new TypeError("You cannot resolve a promise with itself")}function O(){return new TypeError("A promises callback cannot return that same promise.")}function ke(S,K,U,g){try{S.call(K,U,g)}catch(H){return H}}function Fe(S,K,U){f(function(g){var H=!1,G=ke(U,K,function(le){H||(H=!0,K!==le?ge(g,le):Ce(g,le))},function(le){H||(H=!0,$e(g,le))},"Settle: "+(g._label||" unknown promise"));!H&&G&&(H=!0,$e(g,G))},S)}function Te(S,K){K._state===Q?Ce(S,K._result):K._state===ce?$e(S,K._result):Tt(K,void 0,function(U){return ge(S,U)},function(U){return $e(S,U)})}function q(S,K,U){K.constructor===S.constructor&&U===te&&K.constructor.resolve===ye?Te(S,K):U===void 0?Ce(S,K):j(U)?Fe(S,K,U):Ce(S,K)}function ge(S,K){if(S===K)$e(S,M());else if(E(K)){var U=void 0;try{U=K.then}catch(g){$e(S,g);return}q(S,K,U)}else Ce(S,K)}function Le(S){S._onerror&&S._onerror(S._result),ot(S)}function Ce(S,K){S._state===Be&&(S._result=K,S._state=Q,S._subscribers.length!==0&&f(ot,S))}function $e(S,K){S._state===Be&&(S._state=ce,S._result=K,f(Le,S))}function Tt(S,K,U,g){var H=S._subscribers,G=H.length;S._onerror=null,H[G]=K,H[G+Q]=U,H[G+ce]=g,G===0&&S._state&&f(ot,S)}function ot(S){var K=S._subscribers,U=S._state;if(K.length!==0){for(var g=void 0,H=void 0,G=S._result,le=0;le<K.length;le+=3)g=K[le],H=K[le+U],g?Mt(U,g,H,G):H(G);S._subscribers.length=0}}function Mt(S,K,U,g){var H=j(U),G=void 0,le=void 0,Ne=!0;if(H){try{G=U(g)}catch(Ze){Ne=!1,le=Ze}if(K===G){$e(K,O());return}}else G=g;K._state!==Be||(H&&Ne?ge(K,G):Ne===!1?$e(K,le):S===Q?Ce(K,G):S===ce&&$e(K,G))}function bt(S,K){try{K(function(g){ge(S,g)},function(g){$e(S,g)})}catch(U){$e(S,U)}}var Nt=0;function xt(){return Nt++}function Ct(S){S[xe]=Nt++,S._state=void 0,S._result=void 0,S._subscribers=[]}function Rt(){return new Error("Array Methods must be provided an Array")}var Pt=function(){function S(K,U){this._instanceConstructor=K,this.promise=new K(k),this.promise[xe]||Ct(this.promise),T(U)?(this.length=U.length,this._remaining=U.length,this._result=new Array(this.length),this.length===0?Ce(this.promise,this._result):(this.length=this.length||0,this._enumerate(U),this._remaining===0&&Ce(this.promise,this._result))):$e(this.promise,Rt())}return S.prototype._enumerate=function(U){for(var g=0;this._state===Be&&g<U.length;g++)this._eachEntry(U[g],g)},S.prototype._eachEntry=function(U,g){var H=this._instanceConstructor,G=H.resolve;if(G===ye){var le=void 0,Ne=void 0,Ze=!1;try{le=U.then}catch(ct){Ze=!0,Ne=ct}if(le===te&&U._state!==Be)this._settledAt(U._state,g,U._result);else if(typeof le!="function")this._remaining--,this._result[g]=U;else if(H===_){var Ye=new H(k);Ze?$e(Ye,Ne):q(Ye,U,le),this._willSettleAt(Ye,g)}else this._willSettleAt(new H(function(ct){return ct(U)}),g)}else this._willSettleAt(G(U),g)},S.prototype._settledAt=function(U,g,H){var G=this.promise;G._state===Be&&(this._remaining--,U===ce?$e(G,H):this._result[g]=H),this._remaining===0&&Ce(G,this._result)},S.prototype._willSettleAt=function(U,g){var H=this;Tt(U,void 0,function(G){return H._settledAt(Q,g,G)},function(G){return H._settledAt(ce,g,G)})},S}();function rt(S){return new Pt(this,S).promise}function fe(S){var K=this;return T(S)?new K(function(U,g){for(var H=S.length,G=0;G<H;G++)K.resolve(S[G]).then(U,g)}):new K(function(U,g){return g(new TypeError("You must pass an array to race."))})}function J(S){var K=this,U=new K(k);return $e(U,S),U}function o(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function s(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var _=function(){function S(K){this[xe]=xt(),this._result=this._state=void 0,this._subscribers=[],k!==K&&(typeof K!="function"&&o(),this instanceof S?bt(this,K):s())}return S.prototype.catch=function(U){return this.then(null,U)},S.prototype.finally=function(U){var g=this,H=g.constructor;return j(U)?g.then(function(G){return H.resolve(U()).then(function(){return G})},function(G){return H.resolve(U()).then(function(){throw G})}):g.then(U,U)},S}();_.prototype.then=te,_.all=rt,_.race=fe,_.resolve=ye,_.reject=J,_._setScheduler=X,_._setAsap=ie,_._asap=f;function B(){var S=void 0;if(typeof r.g!="undefined")S=r.g;else if(typeof self!="undefined")S=self;else try{S=Function("return this")()}catch(g){throw new Error("polyfill failed because global object is unavailable in this environment")}var K=S.Promise;if(K){var U=null;try{U=Object.prototype.toString.call(K.resolve())}catch(g){}if(U==="[object Promise]"&&!K.cast)return}S.Promise=_}return _.polyfill=B,_.Promise=_,_})},17187:function(_t){"use strict";var Ae=typeof Reflect=="object"?Reflect:null,r=Ae&&typeof Ae.apply=="function"?Ae.apply:function(L,x,d){return Function.prototype.apply.call(L,x,d)},l;Ae&&typeof Ae.ownKeys=="function"?l=Ae.ownKeys:Object.getOwnPropertySymbols?l=function(L){return Object.getOwnPropertyNames(L).concat(Object.getOwnPropertySymbols(L))}:l=function(L){return Object.getOwnPropertyNames(L)};function E(N){console&&console.warn&&console.warn(N)}var j=Number.isNaN||function(L){return L!==L};function $(){$.init.call(this)}_t.exports=$,_t.exports.once=ae,$.EventEmitter=$,$.prototype._events=void 0,$.prototype._eventsCount=0,$.prototype._maxListeners=void 0;var T=10;function m(N){if(typeof N!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof N)}Object.defineProperty($,"defaultMaxListeners",{enumerable:!0,get:function(){return T},set:function(N){if(typeof N!="number"||N<0||j(N))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+N+".");T=N}}),$.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},$.prototype.setMaxListeners=function(L){if(typeof L!="number"||L<0||j(L))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+L+".");return this._maxListeners=L,this};function I(N){return N._maxListeners===void 0?$.defaultMaxListeners:N._maxListeners}$.prototype.getMaxListeners=function(){return I(this)},$.prototype.emit=function(L){for(var x=[],d=1;d<arguments.length;d++)x.push(arguments[d]);var b=L==="error",Z=this._events;if(Z!==void 0)b=b&&Z.error===void 0;else if(!b)return!1;if(b){var F;if(x.length>0&&(F=x[0]),F instanceof Error)throw F;var te=new Error("Unhandled error."+(F?" ("+F.message+")":""));throw te.context=F,te}var ye=Z[L];if(ye===void 0)return!1;if(typeof ye=="function")r(ye,this,x);else for(var xe=ye.length,k=w(ye,xe),d=0;d<xe;++d)r(k[d],this,x);return!0};function oe(N,L,x,d){var b,Z,F;if(m(x),Z=N._events,Z===void 0?(Z=N._events=Object.create(null),N._eventsCount=0):(Z.newListener!==void 0&&(N.emit("newListener",L,x.listener?x.listener:x),Z=N._events),F=Z[L]),F===void 0)F=Z[L]=x,++N._eventsCount;else if(typeof F=="function"?F=Z[L]=d?[x,F]:[F,x]:d?F.unshift(x):F.push(x),b=I(N),b>0&&F.length>b&&!F.warned){F.warned=!0;var te=new Error("Possible EventEmitter memory leak detected. "+F.length+" "+String(L)+" listeners added. Use emitter.setMaxListeners() to increase limit");te.name="MaxListenersExceededWarning",te.emitter=N,te.type=L,te.count=F.length,E(te)}return N}$.prototype.addListener=function(L,x){return oe(this,L,x,!1)},$.prototype.on=$.prototype.addListener,$.prototype.prependListener=function(L,x){return oe(this,L,x,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function X(N,L,x){var d={fired:!1,wrapFn:void 0,target:N,type:L,listener:x},b=f.bind(d);return b.listener=x,d.wrapFn=b,b}$.prototype.once=function(L,x){return m(x),this.on(L,X(this,L,x)),this},$.prototype.prependOnceListener=function(L,x){return m(x),this.prependListener(L,X(this,L,x)),this},$.prototype.removeListener=function(L,x){var d,b,Z,F,te;if(m(x),b=this._events,b===void 0)return this;if(d=b[L],d===void 0)return this;if(d===x||d.listener===x)--this._eventsCount===0?this._events=Object.create(null):(delete b[L],b.removeListener&&this.emit("removeListener",L,d.listener||x));else if(typeof d!="function"){for(Z=-1,F=d.length-1;F>=0;F--)if(d[F]===x||d[F].listener===x){te=d[F].listener,Z=F;break}if(Z<0)return this;Z===0?d.shift():Y(d,Z),d.length===1&&(b[L]=d[0]),b.removeListener!==void 0&&this.emit("removeListener",L,te||x)}return this},$.prototype.off=$.prototype.removeListener,$.prototype.removeAllListeners=function(L){var x,d,b;if(d=this._events,d===void 0)return this;if(d.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):d[L]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete d[L]),this;if(arguments.length===0){var Z=Object.keys(d),F;for(b=0;b<Z.length;++b)F=Z[b],F!=="removeListener"&&this.removeAllListeners(F);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(x=d[L],typeof x=="function")this.removeListener(L,x);else if(x!==void 0)for(b=x.length-1;b>=0;b--)this.removeListener(L,x[b]);return this};function ie(N,L,x){var d=N._events;if(d===void 0)return[];var b=d[L];return b===void 0?[]:typeof b=="function"?x?[b.listener||b]:[b]:x?ne(b):w(b,b.length)}$.prototype.listeners=function(L){return ie(this,L,!0)},$.prototype.rawListeners=function(L){return ie(this,L,!1)},$.listenerCount=function(N,L){return typeof N.listenerCount=="function"?N.listenerCount(L):ue.call(N,L)},$.prototype.listenerCount=ue;function ue(N){var L=this._events;if(L!==void 0){var x=L[N];if(typeof x=="function")return 1;if(x!==void 0)return x.length}return 0}$.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]};function w(N,L){for(var x=new Array(L),d=0;d<L;++d)x[d]=N[d];return x}function Y(N,L){for(;L+1<N.length;L++)N[L]=N[L+1];N.pop()}function ne(N){for(var L=new Array(N.length),x=0;x<L.length;++x)L[x]=N[x].listener||N[x];return L}function ae(N,L){return new Promise(function(x,d){function b(F){N.removeListener(L,Z),d(F)}function Z(){typeof N.removeListener=="function"&&N.removeListener("error",b),x([].slice.call(arguments))}D(N,L,Z,{once:!0}),L!=="error"&&c(N,b,{once:!0})})}function c(N,L,x){typeof N.on=="function"&&D(N,"error",L,x)}function D(N,L,x,d){if(typeof N.on=="function")d.once?N.once(L,x):N.on(L,x);else if(typeof N.addEventListener=="function")N.addEventListener(L,function b(Z){d.once&&N.removeEventListener(L,b),x(Z)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof N)}},19575:function(_t,Ae,r){var l,E;(function(j,$){_t.exports=$(j)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof r.g!="undefined"?r.g:this,function(j){"use strict";j=j||{};var $=j.Base64,T="2.6.4",m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",I=function(Q){for(var ce={},M=0,O=Q.length;M<O;M++)ce[Q.charAt(M)]=M;return ce}(m),oe=String.fromCharCode,f=function(Q){if(Q.length<2){var ce=Q.charCodeAt(0);return ce<128?Q:ce<2048?oe(192|ce>>>6)+oe(128|ce&63):oe(224|ce>>>12&15)+oe(128|ce>>>6&63)+oe(128|ce&63)}else{var ce=65536+(Q.charCodeAt(0)-55296)*1024+(Q.charCodeAt(1)-56320);return oe(240|ce>>>18&7)+oe(128|ce>>>12&63)+oe(128|ce>>>6&63)+oe(128|ce&63)}},X=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ie=function(Q){return Q.replace(X,f)},ue=function(Q){var ce=[0,2,1][Q.length%3],M=Q.charCodeAt(0)<<16|(Q.length>1?Q.charCodeAt(1):0)<<8|(Q.length>2?Q.charCodeAt(2):0),O=[m.charAt(M>>>18),m.charAt(M>>>12&63),ce>=2?"=":m.charAt(M>>>6&63),ce>=1?"=":m.charAt(M&63)];return O.join("")},w=j.btoa&&typeof j.btoa=="function"?function(Q){return j.btoa(Q)}:function(Q){if(Q.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Q.replace(/[\s\S]{1,3}/g,ue)},Y=function(Q){return w(ie(String(Q)))},ne=function(Q){return Q.replace(/[+\/]/g,function(ce){return ce=="+"?"-":"_"}).replace(/=/g,"")},ae=function(Q,ce){return ce?ne(Y(Q)):Y(Q)},c=function(Q){return ae(Q,!0)},D;j.Uint8Array&&(D=function(Q,ce){for(var M="",O=0,ke=Q.length;O<ke;O+=3){var Fe=Q[O],Te=Q[O+1],q=Q[O+2],ge=Fe<<16|Te<<8|q;M+=m.charAt(ge>>>18)+m.charAt(ge>>>12&63)+(typeof Te!="undefined"?m.charAt(ge>>>6&63):"=")+(typeof q!="undefined"?m.charAt(ge&63):"=")}return ce?ne(M):M});var N=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,L=function(Q){switch(Q.length){case 4:var ce=(7&Q.charCodeAt(0))<<18|(63&Q.charCodeAt(1))<<12|(63&Q.charCodeAt(2))<<6|63&Q.charCodeAt(3),M=ce-65536;return oe((M>>>10)+55296)+oe((M&1023)+56320);case 3:return oe((15&Q.charCodeAt(0))<<12|(63&Q.charCodeAt(1))<<6|63&Q.charCodeAt(2));default:return oe((31&Q.charCodeAt(0))<<6|63&Q.charCodeAt(1))}},x=function(Q){return Q.replace(N,L)},d=function(Q){var ce=Q.length,M=ce%4,O=(ce>0?I[Q.charAt(0)]<<18:0)|(ce>1?I[Q.charAt(1)]<<12:0)|(ce>2?I[Q.charAt(2)]<<6:0)|(ce>3?I[Q.charAt(3)]:0),ke=[oe(O>>>16),oe(O>>>8&255),oe(O&255)];return ke.length-=[0,0,2,1][M],ke.join("")},b=j.atob&&typeof j.atob=="function"?function(Q){return j.atob(Q)}:function(Q){return Q.replace(/\S{1,4}/g,d)},Z=function(Q){return b(String(Q).replace(/[^A-Za-z0-9\+\/]/g,""))},F=function(Q){return x(b(Q))},te=function(Q){return String(Q).replace(/[-_]/g,function(ce){return ce=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ye=function(Q){return F(te(Q))},xe;j.Uint8Array&&(xe=function(Q){return Uint8Array.from(Z(te(Q)),function(ce){return ce.charCodeAt(0)})});var k=function(){var Q=j.Base64;return j.Base64=$,Q};if(j.Base64={VERSION:T,atob:Z,btoa:w,fromBase64:ye,toBase64:ae,utob:ie,encode:ae,encodeURI:c,btou:x,decode:ye,noConflict:k,fromUint8Array:D,toUint8Array:xe},typeof Object.defineProperty=="function"){var Be=function(Q){return{value:Q,enumerable:!1,writable:!0,configurable:!0}};j.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Be(function(){return ye(this)})),Object.defineProperty(String.prototype,"toBase64",Be(function(Q){return ae(this,Q)})),Object.defineProperty(String.prototype,"toBase64URI",Be(function(){return ae(this,!0)}))}}return j.Meteor&&(Base64=j.Base64),_t.exports?_t.exports.Base64=j.Base64:(l=[],E=function(){return j.Base64}.apply(Ae,l),E!==void 0&&(_t.exports=E)),{Base64:j.Base64}})},78595:function(_t,Ae,r){"use strict";r.d(Ae,{iz:function(){return dr},ck:function(){return Ut},BW:function(){return Yn},sN:function(){return Ut},Wd:function(){return Xn},ZP:function(){return he},Xl:function(){return H}});var l=r(87462),E=r(4942),j=r(1413),$=r(74902),T=r(97685),m=r(45987),I=r(94184),oe=r.n(I),f=r(67294),X=r(48555);function ie(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ue=ie()?f.useLayoutEffect:f.useEffect,w=function(C,y){var R=f.useRef(!0);ue(function(){return C(R.current)},y),ue(function(){return R.current=!1,function(){R.current=!0}},[])},Y=function(C,y){w(function(R){if(!R)return C()},y)},ne=w,ae=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],c=void 0;function D(h,C){var y=h.prefixCls,R=h.invalidate,p=h.item,z=h.renderItem,V=h.responsive,Ee=h.responsiveDisabled,Se=h.registerSize,Ie=h.itemKey,Ue=h.className,ze=h.style,be=h.children,Ge=h.display,je=h.order,We=h.component,tt=We===void 0?"div":We,st=(0,m.Z)(h,ae),ft=V&&!Ge;function it(Et){Se(Ie,Et)}f.useEffect(function(){return function(){it(null)}},[]);var qe=z&&p!==c?z(p):be,ut;R||(ut={opacity:ft?0:1,height:ft?0:c,overflowY:ft?"hidden":c,order:V?je:c,pointerEvents:ft?"none":c,position:ft?"absolute":c});var at={};ft&&(at["aria-hidden"]=!0);var Dt=f.createElement(tt,(0,l.Z)({className:oe()(!R&&y,Ue),style:(0,j.Z)((0,j.Z)({},ut),ze)},at,st,{ref:C}),qe);return V&&(Dt=f.createElement(X.Z,{onResize:function(jt){var Lt=jt.offsetWidth;it(Lt)},disabled:Ee},Dt)),Dt}var N=f.forwardRef(D);N.displayName="Item";var L=N;function x(h){var C=f.useRef();C.current=h;var y=f.useCallback(function(){for(var R,p=arguments.length,z=new Array(p),V=0;V<p;V++)z[V]=arguments[V];return(R=C.current)===null||R===void 0?void 0:R.call.apply(R,[C].concat(z))},[]);return y}var d=r(73935),b=function(C){return+setTimeout(C,16)},Z=function(C){return clearTimeout(C)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(b=function(C){return window.requestAnimationFrame(C)},Z=function(C){return window.cancelAnimationFrame(C)});var F=0,te=new Map;function ye(h){te.delete(h)}var xe=function(C){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;F+=1;var R=F;function p(z){if(z===0)ye(R),C();else{var V=b(function(){p(z-1)});te.set(R,V)}}return p(y),R};xe.cancel=function(h){var C=te.get(h);return ye(C),Z(C)};var k=xe;function Be(h){if(typeof MessageChannel=="undefined")k(h);else{var C=new MessageChannel;C.port1.onmessage=function(){return h()},C.port2.postMessage(void 0)}}function Q(){var h=f.useRef(null),C=function(R){h.current||(h.current=[],Be(function(){(0,d.unstable_batchedUpdates)(function(){h.current.forEach(function(p){p()}),h.current=null})})),h.current.push(R)};return C}function ce(h,C){var y=f.useState(C),R=(0,T.Z)(y,2),p=R[0],z=R[1],V=x(function(Ee){h(function(){z(Ee)})});return[p,V]}var M=f.createContext(null),O=["component"],ke=["className"],Fe=["className"],Te=function(C,y){var R=f.useContext(M);if(!R){var p=C.component,z=p===void 0?"div":p,V=(0,m.Z)(C,O);return f.createElement(z,(0,l.Z)({},V,{ref:y}))}var Ee=R.className,Se=(0,m.Z)(R,ke),Ie=C.className,Ue=(0,m.Z)(C,Fe);return f.createElement(M.Provider,{value:null},f.createElement(L,(0,l.Z)({ref:y,className:oe()(Ee,Ie)},Se,Ue)))},q=f.forwardRef(Te);q.displayName="RawItem";var ge=q,Le=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ce="responsive",$e="invalidate";function Tt(h){return"+ ".concat(h.length," ...")}function ot(h,C){var y=h.prefixCls,R=y===void 0?"rc-overflow":y,p=h.data,z=p===void 0?[]:p,V=h.renderItem,Ee=h.renderRawItem,Se=h.itemKey,Ie=h.itemWidth,Ue=Ie===void 0?10:Ie,ze=h.ssr,be=h.style,Ge=h.className,je=h.maxCount,We=h.renderRest,tt=h.renderRawRest,st=h.suffix,ft=h.component,it=ft===void 0?"div":ft,qe=h.itemComponent,ut=h.onVisibleChange,at=(0,m.Z)(h,Le),Dt=ze==="full",Et=Q(),jt=ce(Et,null),Lt=(0,T.Z)(jt,2),Vt=Lt[0],Gt=Lt[1],nt=Vt||0,lt=ce(Et,new Map),At=(0,T.Z)(lt,2),zt=At[0],tn=At[1],bn=ce(Et,0),mn=(0,T.Z)(bn,2),wn=mn[0],Bn=mn[1],On=ce(Et,0),In=(0,T.Z)(On,2),pn=In[0],zn=In[1],fn=ce(Et,0),Ln=(0,T.Z)(fn,2),Cn=Ln[0],nr=Ln[1],Zn=(0,f.useState)(null),yn=(0,T.Z)(Zn,2),Yt=yn[0],nn=yn[1],gn=(0,f.useState)(null),Hn=(0,T.Z)(gn,2),jn=Hn[0],hn=Hn[1],Dn=f.useMemo(function(){return jn===null&&Dt?Number.MAX_SAFE_INTEGER:jn||0},[jn,Vt]),rr=(0,f.useState)(!1),Vn=(0,T.Z)(rr,2),Jn=Vn[0],qn=Vn[1],Tn="".concat(R,"-item"),lr=Math.max(wn,pn),Wn=je===Ce,Gn=z.length&&Wn,Or=je===$e,_r=Gn||typeof je=="number"&&z.length>je,ir=(0,f.useMemo)(function(){var Xt=z;return Gn?Vt===null&&Dt?Xt=z:Xt=z.slice(0,Math.min(z.length,nt/Ue)):typeof je=="number"&&(Xt=z.slice(0,je)),Xt},[z,Ue,Vt,je,Gn]),yr=(0,f.useMemo)(function(){return Gn?z.slice(Dn+1):z.slice(ir.length)},[z,ir,Gn,Dn]),hr=(0,f.useCallback)(function(Xt,qt){var An;return typeof Se=="function"?Se(Xt):(An=Se&&(Xt==null?void 0:Xt[Se]))!==null&&An!==void 0?An:qt},[Se]),Sr=(0,f.useCallback)(V||function(Xt){return Xt},[V]);function Kn(Xt,qt,An){jn===Xt&&(qt===void 0||qt===Yt)||(hn(Xt),An||(qn(Xt<z.length-1),ut==null||ut(Xt)),qt!==void 0&&nn(qt))}function br(Xt,qt){Gt(qt.clientWidth)}function mr(Xt,qt){tn(function(An){var cr=new Map(An);return qt===null?cr.delete(Xt):cr.set(Xt,qt),cr})}function ur(Xt,qt){zn(qt),Bn(pn)}function er(Xt,qt){nr(qt)}function Dr(Xt){return zt.get(hr(ir[Xt],Xt))}ne(function(){if(nt&&typeof lr=="number"&&ir){var Xt=Cn,qt=ir.length,An=qt-1;if(!qt){Kn(0,null);return}for(var cr=0;cr<qt;cr+=1){var Rr=Dr(cr);if(Dt&&(Rr=Rr||0),Rr===void 0){Kn(cr-1,void 0,!0);break}if(Xt+=Rr,An===0&&Xt<=nt||cr===An-1&&Xt+Dr(An)<=nt){Kn(An,null);break}else if(Xt+lr>nt){Kn(cr-1,Xt-Rr-Cn+pn);break}}st&&Dr(0)+Cn>nt&&nn(null)}},[nt,zt,pn,Cn,hr,ir]);var kr=Jn&&!!yr.length,Lr={};Yt!==null&&Gn&&(Lr={position:"absolute",left:Yt,top:0});var Ir={prefixCls:Tn,responsive:Gn,component:qe,invalidate:Or},Br=Ee?function(Xt,qt){var An=hr(Xt,qt);return f.createElement(M.Provider,{key:An,value:(0,j.Z)((0,j.Z)({},Ir),{},{order:qt,item:Xt,itemKey:An,registerSize:mr,display:qt<=Dn})},Ee(Xt,qt))}:function(Xt,qt){var An=hr(Xt,qt);return f.createElement(L,(0,l.Z)({},Ir,{order:qt,key:An,item:Xt,renderItem:Sr,itemKey:An,registerSize:mr,display:qt<=Dn}))},Cr,Tr={order:kr?Dn:Number.MAX_SAFE_INTEGER,className:"".concat(Tn,"-rest"),registerSize:ur,display:kr};if(tt)tt&&(Cr=f.createElement(M.Provider,{value:(0,j.Z)((0,j.Z)({},Ir),Tr)},tt(yr)));else{var Nr=We||Tt;Cr=f.createElement(L,(0,l.Z)({},Ir,Tr),typeof Nr=="function"?Nr(yr):Nr)}var Mr=f.createElement(it,(0,l.Z)({className:oe()(!Or&&R,Ge),style:be,ref:C},at),ir.map(Br),_r?Cr:null,st&&f.createElement(L,(0,l.Z)({},Ir,{responsive:Wn,responsiveDisabled:!Gn,order:Dn,className:"".concat(Tn,"-suffix"),registerSize:er,display:!0,style:Lr}),st));return Wn&&(Mr=f.createElement(X.Z,{onResize:br,disabled:!Gn},Mr)),Mr}var Mt=f.forwardRef(ot);Mt.displayName="Overflow",Mt.Item=ge,Mt.RESPONSIVE=Ce,Mt.INVALIDATE=$e;var bt=Mt,Nt=bt,xt=r(21770),Ct=r(80334),Rt=r(91881),Pt=f.createContext(null);function rt(h,C){return h===void 0?null:"".concat(h,"-").concat(C)}function fe(h){var C=f.useContext(Pt);return rt(C,h)}var J=r(56982),o=["children","locked"],s=f.createContext(null);function _(h,C){var y=(0,j.Z)({},h);return Object.keys(C).forEach(function(R){var p=C[R];p!==void 0&&(y[R]=p)}),y}function B(h){var C=h.children,y=h.locked,R=(0,m.Z)(h,o),p=f.useContext(s),z=(0,J.Z)(function(){return _(p,R)},[p,R],function(V,Ee){return!y&&(V[0]!==Ee[0]||!(0,Rt.Z)(V[1],Ee[1],!0))});return f.createElement(s.Provider,{value:z},C)}var S=[],K=f.createContext(null);function U(){return f.useContext(K)}var g=f.createContext(S);function H(h){var C=f.useContext(g);return f.useMemo(function(){return h!==void 0?[].concat((0,$.Z)(C),[h]):C},[C,h])}var G=f.createContext(null),le=f.createContext({}),Ne=le,Ze=r(15105),Ye=r(75164),ct=function(h){if(!h)return!1;if(h instanceof Element){if(h.offsetParent)return!0;if(h.getBBox){var C=h.getBBox(),y=C.width,R=C.height;if(y||R)return!0}if(h.getBoundingClientRect){var p=h.getBoundingClientRect(),z=p.width,V=p.height;if(z||V)return!0}}return!1};function ht(h){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ct(h)){var y=h.nodeName.toLowerCase(),R=["input","select","textarea","button"].includes(y)||h.isContentEditable||y==="a"&&!!h.getAttribute("href"),p=h.getAttribute("tabindex"),z=Number(p),V=null;return p&&!Number.isNaN(z)?V=z:R&&V===null&&(V=0),R&&h.disabled&&(V=null),V!==null&&(V>=0||C&&V<0)}return!1}function et(h){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=(0,$.Z)(h.querySelectorAll("*")).filter(function(R){return ht(R,C)});return ht(h,C)&&y.unshift(h),y}var It=null;function Re(){It=document.activeElement}function Kt(){It=null}function Ft(){if(It)try{It.focus()}catch(h){}}function Ot(h,C){if(C.keyCode===9){var y=et(h),R=y[C.shiftKey?0:y.length-1],p=R===document.activeElement||h===document.activeElement;if(p){var z=y[C.shiftKey?y.length-1:0];z.focus(),C.preventDefault()}}}var Bt=Ze.Z.LEFT,Wt=Ze.Z.RIGHT,kt=Ze.Z.UP,Zt=Ze.Z.DOWN,$t=Ze.Z.ENTER,Ht=Ze.Z.ESC,mt=Ze.Z.HOME,en=Ze.Z.END,yt=[kt,Zt,Bt,Wt];function P(h,C,y,R){var p,z,V,Ee,Se="prev",Ie="next",Ue="children",ze="parent";if(h==="inline"&&R===$t)return{inlineTrigger:!0};var be=(p={},(0,E.Z)(p,kt,Se),(0,E.Z)(p,Zt,Ie),p),Ge=(z={},(0,E.Z)(z,Bt,y?Ie:Se),(0,E.Z)(z,Wt,y?Se:Ie),(0,E.Z)(z,Zt,Ue),(0,E.Z)(z,$t,Ue),z),je=(V={},(0,E.Z)(V,kt,Se),(0,E.Z)(V,Zt,Ie),(0,E.Z)(V,$t,Ue),(0,E.Z)(V,Ht,ze),(0,E.Z)(V,Bt,y?Ue:ze),(0,E.Z)(V,Wt,y?ze:Ue),V),We={inline:be,horizontal:Ge,vertical:je,inlineSub:be,horizontalSub:je,verticalSub:je},tt=(Ee=We["".concat(h).concat(C?"":"Sub")])===null||Ee===void 0?void 0:Ee[R];switch(tt){case Se:return{offset:-1,sibling:!0};case Ie:return{offset:1,sibling:!0};case ze:return{offset:-1,sibling:!1};case Ue:return{offset:1,sibling:!1};default:return null}}function de(h){for(var C=h;C;){if(C.getAttribute("data-menu-list"))return C;C=C.parentElement}return null}function me(h,C){for(var y=h||document.activeElement;y;){if(C.has(y))return y;y=y.parentElement}return null}function _e(h,C){var y=et(h,!0);return y.filter(function(R){return C.has(R)})}function He(h,C,y){var R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!h)return null;var p=_e(h,C),z=p.length,V=p.findIndex(function(Ee){return y===Ee});return R<0?V===-1?V=z-1:V-=1:R>0&&(V+=1),V=(V+z)%z,p[V]}function Me(h,C,y,R,p,z,V,Ee,Se,Ie){var Ue=f.useRef(),ze=f.useRef();ze.current=C;var be=function(){Ye.Z.cancel(Ue.current)};return f.useEffect(function(){return function(){be()}},[]),function(Ge){var je=Ge.which;if([].concat(yt,[$t,Ht,mt,en]).includes(je)){var We,tt,st,ft=function(){We=new Set,tt=new Map,st=new Map;var At=z();return At.forEach(function(zt){var tn=document.querySelector("[data-menu-id='".concat(rt(R,zt),"']"));tn&&(We.add(tn),st.set(tn,zt),tt.set(zt,tn))}),We};ft();var it=tt.get(C),qe=me(it,We),ut=st.get(qe),at=P(h,V(ut,!0).length===1,y,je);if(!at&&je!==mt&&je!==en)return;(yt.includes(je)||[mt,en].includes(je))&&Ge.preventDefault();var Dt=function(At){if(At){var zt=At,tn=At.querySelector("a");tn!=null&&tn.getAttribute("href")&&(zt=tn);var bn=st.get(At);Ee(bn),be(),Ue.current=(0,Ye.Z)(function(){ze.current===bn&&zt.focus()})}};if([mt,en].includes(je)||at.sibling||!qe){var Et;!qe||h==="inline"?Et=p.current:Et=de(qe);var jt,Lt=_e(Et,We);je===mt?jt=Lt[0]:je===en?jt=Lt[Lt.length-1]:jt=He(Et,We,qe,at.offset),Dt(jt)}else if(at.inlineTrigger)Se(ut);else if(at.offset>0)Se(ut,!0),be(),Ue.current=(0,Ye.Z)(function(){ft();var lt=qe.getAttribute("aria-controls"),At=document.getElementById(lt),zt=He(At,We);Dt(zt)},5);else if(at.offset<0){var Vt=V(ut,!0),Gt=Vt[Vt.length-2],nt=tt.get(Gt);Se(Gt,!1),Dt(nt)}}Ie==null||Ie(Ge)}}function Pe(h){Promise.resolve().then(h)}var Oe="__RC_UTIL_PATH_SPLIT__",we=function(C){return C.join(Oe)},ee=function(C){return C.split(Oe)},e="rc-menu-more";function t(){var h=f.useState({}),C=(0,T.Z)(h,2),y=C[1],R=(0,f.useRef)(new Map),p=(0,f.useRef)(new Map),z=f.useState([]),V=(0,T.Z)(z,2),Ee=V[0],Se=V[1],Ie=(0,f.useRef)(0),Ue=(0,f.useRef)(!1),ze=function(){Ue.current||y({})},be=(0,f.useCallback)(function(it,qe){var ut=we(qe);p.current.set(ut,it),R.current.set(it,ut),Ie.current+=1;var at=Ie.current;Pe(function(){at===Ie.current&&ze()})},[]),Ge=(0,f.useCallback)(function(it,qe){var ut=we(qe);p.current.delete(ut),R.current.delete(it)},[]),je=(0,f.useCallback)(function(it){Se(it)},[]),We=(0,f.useCallback)(function(it,qe){var ut=R.current.get(it)||"",at=ee(ut);return qe&&Ee.includes(at[0])&&at.unshift(e),at},[Ee]),tt=(0,f.useCallback)(function(it,qe){return it.some(function(ut){var at=We(ut,!0);return at.includes(qe)})},[We]),st=function(){var qe=(0,$.Z)(R.current.keys());return Ee.length&&qe.push(e),qe},ft=(0,f.useCallback)(function(it){var qe="".concat(R.current.get(it)).concat(Oe),ut=new Set;return(0,$.Z)(p.current.keys()).forEach(function(at){at.startsWith(qe)&&ut.add(p.current.get(at))}),ut},[]);return f.useEffect(function(){return function(){Ue.current=!0}},[]),{registerPath:be,unregisterPath:Ge,refreshOverflowKeys:je,isSubPathKey:tt,getKeyPath:We,getKeys:st,getSubPathKeys:ft}}function n(h){var C=f.useRef(h);C.current=h;var y=f.useCallback(function(){for(var R,p=arguments.length,z=new Array(p),V=0;V<p;V++)z[V]=arguments[V];return(R=C.current)===null||R===void 0?void 0:R.call.apply(R,[C].concat(z))},[]);return h?y:void 0}var i=Math.random().toFixed(5).toString().slice(2),a=0;function v(h){var C=(0,xt.Z)(h,{value:h}),y=(0,T.Z)(C,2),R=y[0],p=y[1];return f.useEffect(function(){a+=1;var z="".concat(i,"-").concat(a);p("rc-menu-uuid-".concat(z))},[]),R}var A=r(15671),pe=r(43144),se=r(60136),Ke=r(51630),Qe=r(98423),gt=r(42550);function Xe(h,C,y,R){var p=f.useContext(s),z=p.activeKey,V=p.onActive,Ee=p.onInactive,Se={active:z===h};return C||(Se.onMouseEnter=function(Ie){y==null||y({key:h,domEvent:Ie}),V(h)},Se.onMouseLeave=function(Ie){R==null||R({key:h,domEvent:Ie}),Ee(h)}),Se}function pt(h){var C=f.useContext(s),y=C.mode,R=C.rtl,p=C.inlineIndent;if(y!=="inline")return null;var z=h;return R?{paddingRight:z*p}:{paddingLeft:z*p}}function dt(h){var C=h.icon,y=h.props,R=h.children,p;return C===null||C===!1?null:(typeof C=="function"?p=f.createElement(C,(0,j.Z)({},y)):typeof C!="boolean"&&(p=C),p||R||null)}var De=["item"];function Ve(h){var C=h.item,y=(0,m.Z)(h,De);return Object.defineProperty(y,"item",{get:function(){return(0,Ct.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),C}}),y}var vt=["title","attribute","elementRef"],wt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Je=["active"],sn=function(h){(0,se.Z)(y,h);var C=(0,Ke.Z)(y);function y(){return(0,A.Z)(this,y),C.apply(this,arguments)}return(0,pe.Z)(y,[{key:"render",value:function(){var p=this.props,z=p.title,V=p.attribute,Ee=p.elementRef,Se=(0,m.Z)(p,vt),Ie=(0,Qe.Z)(Se,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Ct.ZP)(!V,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f.createElement(Nt.Item,(0,l.Z)({},V,{title:typeof z=="string"?z:void 0},Ie,{ref:Ee}))}}]),y}(f.Component),Qt=f.forwardRef(function(h,C){var y,R=h.style,p=h.className,z=h.eventKey,V=h.warnKey,Ee=h.disabled,Se=h.itemIcon,Ie=h.children,Ue=h.role,ze=h.onMouseEnter,be=h.onMouseLeave,Ge=h.onClick,je=h.onKeyDown,We=h.onFocus,tt=(0,m.Z)(h,wt),st=fe(z),ft=f.useContext(s),it=ft.prefixCls,qe=ft.onItemClick,ut=ft.disabled,at=ft.overflowDisabled,Dt=ft.itemIcon,Et=ft.selectedKeys,jt=ft.onActive,Lt=f.useContext(Ne),Vt=Lt._internalRenderMenuItem,Gt="".concat(it,"-item"),nt=f.useRef(),lt=f.useRef(),At=ut||Ee,zt=(0,gt.x1)(C,lt),tn=H(z),bn=function(yn){return{key:z,keyPath:(0,$.Z)(tn).reverse(),item:nt.current,domEvent:yn}},mn=Se||Dt,wn=Xe(z,At,ze,be),Bn=wn.active,On=(0,m.Z)(wn,Je),In=Et.includes(z),pn=pt(tn.length),zn=function(yn){if(!At){var Yt=bn(yn);Ge==null||Ge(Ve(Yt)),qe(Yt)}},fn=function(yn){if(je==null||je(yn),yn.which===Ze.Z.ENTER){var Yt=bn(yn);Ge==null||Ge(Ve(Yt)),qe(Yt)}},Ln=function(yn){jt(z),We==null||We(yn)},Cn={};h.role==="option"&&(Cn["aria-selected"]=In);var nr=f.createElement(sn,(0,l.Z)({ref:nt,elementRef:zt,role:Ue===null?"none":Ue||"menuitem",tabIndex:Ee?null:-1,"data-menu-id":at&&st?null:st},tt,On,Cn,{component:"li","aria-disabled":Ee,style:(0,j.Z)((0,j.Z)({},pn),R),className:oe()(Gt,(y={},(0,E.Z)(y,"".concat(Gt,"-active"),Bn),(0,E.Z)(y,"".concat(Gt,"-selected"),In),(0,E.Z)(y,"".concat(Gt,"-disabled"),At),y),p),onClick:zn,onKeyDown:fn,onFocus:Ln}),Ie,f.createElement(dt,{props:(0,j.Z)((0,j.Z)({},h),{},{isSelected:In}),icon:mn}));return Vt&&(nr=Vt(nr,h,{selected:In})),nr});function St(h,C){var y=h.eventKey,R=U(),p=H(y);return f.useEffect(function(){if(R)return R.registerPath(y,p),function(){R.unregisterPath(y,p)}},[p]),R?null:f.createElement(Qt,(0,l.Z)({},h,{ref:C}))}var Ut=f.forwardRef(St),Jt=["className","children"],rn=function(C,y){var R=C.className,p=C.children,z=(0,m.Z)(C,Jt),V=f.useContext(s),Ee=V.prefixCls,Se=V.mode,Ie=V.rtl;return f.createElement("ul",(0,l.Z)({className:oe()(Ee,Ie&&"".concat(Ee,"-rtl"),"".concat(Ee,"-sub"),"".concat(Ee,"-").concat(Se==="inline"?"inline":"vertical"),R),role:"menu"},z,{"data-menu-list":!0,ref:y}),p)},an=f.forwardRef(rn);an.displayName="SubMenuList";var _n=an,Mn=r(50344);function un(h,C){return(0,Mn.Z)(h).map(function(y,R){if(f.isValidElement(y)){var p,z,V=y.key,Ee=(p=(z=y.props)===null||z===void 0?void 0:z.eventKey)!==null&&p!==void 0?p:V,Se=Ee==null;Se&&(Ee="tmp_key-".concat([].concat((0,$.Z)(C),[R]).join("-")));var Ie={key:Ee,eventKey:Ee};return f.cloneElement(y,Ie)}return y})}var Fn=r(62709),on={adjustX:1,adjustY:1},Un={topLeft:{points:["bl","tl"],overflow:on},topRight:{points:["br","tr"],overflow:on},bottomLeft:{points:["tl","bl"],overflow:on},bottomRight:{points:["tr","br"],overflow:on},leftTop:{points:["tr","tl"],overflow:on},leftBottom:{points:["br","bl"],overflow:on},rightTop:{points:["tl","tr"],overflow:on},rightBottom:{points:["bl","br"],overflow:on}},Pn={topLeft:{points:["bl","tl"],overflow:on},topRight:{points:["br","tr"],overflow:on},bottomLeft:{points:["tl","bl"],overflow:on},bottomRight:{points:["tr","br"],overflow:on},rightTop:{points:["tr","tl"],overflow:on},rightBottom:{points:["br","bl"],overflow:on},leftTop:{points:["tl","tr"],overflow:on},leftBottom:{points:["bl","br"],overflow:on}},vn=null;function ln(h,C,y){if(C)return C;if(y)return y[h]||y.other}var dn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Nn(h){var C=h.prefixCls,y=h.visible,R=h.children,p=h.popup,z=h.popupStyle,V=h.popupClassName,Ee=h.popupOffset,Se=h.disabled,Ie=h.mode,Ue=h.onVisibleChange,ze=f.useContext(s),be=ze.getPopupContainer,Ge=ze.rtl,je=ze.subMenuOpenDelay,We=ze.subMenuCloseDelay,tt=ze.builtinPlacements,st=ze.triggerSubMenuAction,ft=ze.forceSubMenuRender,it=ze.rootClassName,qe=ze.motion,ut=ze.defaultMotions,at=f.useState(!1),Dt=(0,T.Z)(at,2),Et=Dt[0],jt=Dt[1],Lt=Ge?(0,j.Z)((0,j.Z)({},Pn),tt):(0,j.Z)((0,j.Z)({},Un),tt),Vt=dn[Ie],Gt=ln(Ie,qe,ut),nt=f.useRef(Gt);Ie!=="inline"&&(nt.current=Gt);var lt=(0,j.Z)((0,j.Z)({},nt.current),{},{leavedClassName:"".concat(C,"-hidden"),removeOnLeave:!1,motionAppear:!0}),At=f.useRef();return f.useEffect(function(){return At.current=(0,Ye.Z)(function(){jt(y)}),function(){Ye.Z.cancel(At.current)}},[y]),f.createElement(Fn.Z,{prefixCls:C,popupClassName:oe()("".concat(C,"-popup"),(0,E.Z)({},"".concat(C,"-rtl"),Ge),V,it),stretch:Ie==="horizontal"?"minWidth":null,getPopupContainer:be,builtinPlacements:Lt,popupPlacement:Vt,popupVisible:Et,popup:p,popupStyle:z,popupAlign:Ee&&{offset:Ee},action:Se?[]:[st],mouseEnterDelay:je,mouseLeaveDelay:We,onPopupVisibleChange:Ue,forceRender:ft,popupMotion:lt,fresh:!0},R)}var Sn=r(62874);function xn(h){var C=h.id,y=h.open,R=h.keyPath,p=h.children,z="inline",V=f.useContext(s),Ee=V.prefixCls,Se=V.forceSubMenuRender,Ie=V.motion,Ue=V.defaultMotions,ze=V.mode,be=f.useRef(!1);be.current=ze===z;var Ge=f.useState(!be.current),je=(0,T.Z)(Ge,2),We=je[0],tt=je[1],st=be.current?y:!1;f.useEffect(function(){be.current&&tt(!1)},[ze]);var ft=(0,j.Z)({},ln(z,Ie,Ue));R.length>1&&(ft.motionAppear=!1);var it=ft.onVisibleChanged;return ft.onVisibleChanged=function(qe){return!be.current&&!qe&&tt(!0),it==null?void 0:it(qe)},We?null:f.createElement(B,{mode:z,locked:!be.current},f.createElement(Sn.Z,(0,l.Z)({visible:st},ft,{forceRender:Se,removeOnLeave:!1,leavedClassName:"".concat(Ee,"-hidden")}),function(qe){var ut=qe.className,at=qe.style;return f.createElement(_n,{id:C,className:ut,style:at},p)}))}var or=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],vr=["active"],$n=function(C){var y,R=C.style,p=C.className,z=C.title,V=C.eventKey,Ee=C.warnKey,Se=C.disabled,Ie=C.internalPopupClose,Ue=C.children,ze=C.itemIcon,be=C.expandIcon,Ge=C.popupClassName,je=C.popupOffset,We=C.popupStyle,tt=C.onClick,st=C.onMouseEnter,ft=C.onMouseLeave,it=C.onTitleClick,qe=C.onTitleMouseEnter,ut=C.onTitleMouseLeave,at=(0,m.Z)(C,or),Dt=fe(V),Et=f.useContext(s),jt=Et.prefixCls,Lt=Et.mode,Vt=Et.openKeys,Gt=Et.disabled,nt=Et.overflowDisabled,lt=Et.activeKey,At=Et.selectedKeys,zt=Et.itemIcon,tn=Et.expandIcon,bn=Et.onItemClick,mn=Et.onOpenChange,wn=Et.onActive,Bn=f.useContext(Ne),On=Bn._internalRenderSubMenuItem,In=f.useContext(G),pn=In.isSubPathKey,zn=H(),fn="".concat(jt,"-submenu"),Ln=Gt||Se,Cn=f.useRef(),nr=f.useRef(),Zn=ze!=null?ze:zt,yn=be!=null?be:tn,Yt=Vt.includes(V),nn=!nt&&Yt,gn=pn(At,V),Hn=Xe(V,Ln,qe,ut),jn=Hn.active,hn=(0,m.Z)(Hn,vr),Dn=f.useState(!1),rr=(0,T.Z)(Dn,2),Vn=rr[0],Jn=rr[1],qn=function(er){Ln||Jn(er)},Tn=function(er){qn(!0),st==null||st({key:V,domEvent:er})},lr=function(er){qn(!1),ft==null||ft({key:V,domEvent:er})},Wn=f.useMemo(function(){return jn||(Lt!=="inline"?Vn||pn([lt],V):!1)},[Lt,jn,lt,Vn,V,pn]),Gn=pt(zn.length),Or=function(er){Ln||(it==null||it({key:V,domEvent:er}),Lt==="inline"&&mn(V,!Yt))},_r=n(function(ur){tt==null||tt(Ve(ur)),bn(ur)}),ir=function(er){Lt!=="inline"&&mn(V,er)},yr=function(){wn(V)},hr=Dt&&"".concat(Dt,"-popup"),Sr=f.createElement("div",(0,l.Z)({role:"menuitem",style:Gn,className:"".concat(fn,"-title"),tabIndex:Ln?null:-1,ref:Cn,title:typeof z=="string"?z:null,"data-menu-id":nt&&Dt?null:Dt,"aria-expanded":nn,"aria-haspopup":!0,"aria-controls":hr,"aria-disabled":Ln,onClick:Or,onFocus:yr},hn),z,f.createElement(dt,{icon:Lt!=="horizontal"?yn:void 0,props:(0,j.Z)((0,j.Z)({},C),{},{isOpen:nn,isSubMenu:!0})},f.createElement("i",{className:"".concat(fn,"-arrow")}))),Kn=f.useRef(Lt);if(Lt!=="inline"&&zn.length>1?Kn.current="vertical":Kn.current=Lt,!nt){var br=Kn.current;Sr=f.createElement(Nn,{mode:br,prefixCls:fn,visible:!Ie&&nn&&Lt!=="inline",popupClassName:Ge,popupOffset:je,popupStyle:We,popup:f.createElement(B,{mode:br==="horizontal"?"vertical":br},f.createElement(_n,{id:hr,ref:nr},Ue)),disabled:Ln,onVisibleChange:ir},Sr)}var mr=f.createElement(Nt.Item,(0,l.Z)({role:"none"},at,{component:"li",style:R,className:oe()(fn,"".concat(fn,"-").concat(Lt),p,(y={},(0,E.Z)(y,"".concat(fn,"-open"),nn),(0,E.Z)(y,"".concat(fn,"-active"),Wn),(0,E.Z)(y,"".concat(fn,"-selected"),gn),(0,E.Z)(y,"".concat(fn,"-disabled"),Ln),y)),onMouseEnter:Tn,onMouseLeave:lr}),Sr,!nt&&f.createElement(xn,{id:hr,open:nn,keyPath:zn},Ue));return On&&(mr=On(mr,C,{selected:gn,active:Wn,open:nn,disabled:Ln})),f.createElement(B,{onItemClick:_r,mode:Lt==="horizontal"?"vertical":Lt,itemIcon:Zn,expandIcon:yn},mr)};function Xn(h){var C=h.eventKey,y=h.children,R=H(C),p=un(y,R),z=U();f.useEffect(function(){if(z)return z.registerPath(C,R),function(){z.unregisterPath(C,R)}},[R]);var V;return z?V=p:V=f.createElement($n,h,p),f.createElement(g.Provider,{value:R},V)}var xr=r(71002),sr=["className","title","eventKey","children"],Er=["children"],pr=function(C){var y=C.className,R=C.title,p=C.eventKey,z=C.children,V=(0,m.Z)(C,sr),Ee=f.useContext(s),Se=Ee.prefixCls,Ie="".concat(Se,"-item-group");return f.createElement("li",(0,l.Z)({role:"presentation"},V,{onClick:function(ze){return ze.stopPropagation()},className:oe()(Ie,y)}),f.createElement("div",{role:"presentation",className:"".concat(Ie,"-title"),title:typeof R=="string"?R:void 0},R),f.createElement("ul",{role:"group",className:"".concat(Ie,"-list")},z))};function Yn(h){var C=h.children,y=(0,m.Z)(h,Er),R=H(y.eventKey),p=un(C,R),z=U();return z?p:f.createElement(pr,(0,Qe.Z)(y,["warnKey"]),p)}function dr(h){var C=h.className,y=h.style,R=f.useContext(s),p=R.prefixCls,z=U();return z?null:f.createElement("li",{role:"separator",className:oe()("".concat(p,"-item-divider"),C),style:y})}var fr=["label","children","key","type"];function Qn(h){return(h||[]).map(function(C,y){if(C&&(0,xr.Z)(C)==="object"){var R=C,p=R.label,z=R.children,V=R.key,Ee=R.type,Se=(0,m.Z)(R,fr),Ie=V!=null?V:"tmp-".concat(y);return z||Ee==="group"?Ee==="group"?f.createElement(Yn,(0,l.Z)({key:Ie},Se,{title:p}),Qn(z)):f.createElement(Xn,(0,l.Z)({key:Ie},Se,{title:p}),Qn(z)):Ee==="divider"?f.createElement(dr,(0,l.Z)({key:Ie},Se)):f.createElement(Ut,(0,l.Z)({key:Ie},Se),p)}return null}).filter(function(C){return C})}function kn(h,C,y){var R=h;return C&&(R=Qn(C)),un(R,y)}var gr=["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"],W=[],re=f.forwardRef(function(h,C){var y,R,p=h,z=p.prefixCls,V=z===void 0?"rc-menu":z,Ee=p.rootClassName,Se=p.style,Ie=p.className,Ue=p.tabIndex,ze=Ue===void 0?0:Ue,be=p.items,Ge=p.children,je=p.direction,We=p.id,tt=p.mode,st=tt===void 0?"vertical":tt,ft=p.inlineCollapsed,it=p.disabled,qe=p.disabledOverflow,ut=p.subMenuOpenDelay,at=ut===void 0?.1:ut,Dt=p.subMenuCloseDelay,Et=Dt===void 0?.1:Dt,jt=p.forceSubMenuRender,Lt=p.defaultOpenKeys,Vt=p.openKeys,Gt=p.activeKey,nt=p.defaultActiveFirst,lt=p.selectable,At=lt===void 0?!0:lt,zt=p.multiple,tn=zt===void 0?!1:zt,bn=p.defaultSelectedKeys,mn=p.selectedKeys,wn=p.onSelect,Bn=p.onDeselect,On=p.inlineIndent,In=On===void 0?24:On,pn=p.motion,zn=p.defaultMotions,fn=p.triggerSubMenuAction,Ln=fn===void 0?"hover":fn,Cn=p.builtinPlacements,nr=p.itemIcon,Zn=p.expandIcon,yn=p.overflowedIndicator,Yt=yn===void 0?"...":yn,nn=p.overflowedIndicatorPopupClassName,gn=p.getPopupContainer,Hn=p.onClick,jn=p.onOpenChange,hn=p.onKeyDown,Dn=p.openAnimation,rr=p.openTransitionName,Vn=p._internalRenderMenuItem,Jn=p._internalRenderSubMenuItem,qn=(0,m.Z)(p,gr),Tn=f.useMemo(function(){return kn(Ge,be,W)},[Ge,be]),lr=f.useState(!1),Wn=(0,T.Z)(lr,2),Gn=Wn[0],Or=Wn[1],_r=f.useRef(),ir=v(We),yr=je==="rtl",hr=(0,xt.Z)(Lt,{value:Vt,postState:function(cn){return cn||W}}),Sr=(0,T.Z)(hr,2),Kn=Sr[0],br=Sr[1],mr=function(cn){var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function tr(){br(cn),jn==null||jn(cn)}En?(0,d.flushSync)(tr):tr()},ur=f.useState(Kn),er=(0,T.Z)(ur,2),Dr=er[0],kr=er[1],Lr=f.useRef(!1),Ir=f.useMemo(function(){return(st==="inline"||st==="vertical")&&ft?["vertical",ft]:[st,!1]},[st,ft]),Br=(0,T.Z)(Ir,2),Cr=Br[0],Tr=Br[1],Nr=Cr==="inline",Mr=f.useState(Cr),Xt=(0,T.Z)(Mr,2),qt=Xt[0],An=Xt[1],cr=f.useState(Tr),Rr=(0,T.Z)(cr,2),Yr=Rr[0],Qr=Rr[1];f.useEffect(function(){An(Cr),Qr(Tr),Lr.current&&(Nr?br(Dr):mr(W))},[Cr,Tr]);var Jr=f.useState(0),Hr=(0,T.Z)(Jr,2),Kr=Hr[0],qr=Hr[1],Ur=Kr>=Tn.length-1||qt!=="horizontal"||qe;f.useEffect(function(){Nr&&kr(Kn)},[Kn]),f.useEffect(function(){return Lr.current=!0,function(){Lr.current=!1}},[]);var wr=t(),zr=wr.registerPath,jr=wr.unregisterPath,ei=wr.refreshOverflowKeys,Vr=wr.isSubPathKey,ti=wr.getKeyPath,ni=wr.getKeys,ri=wr.getSubPathKeys,ii=f.useMemo(function(){return{registerPath:zr,unregisterPath:jr}},[zr,jr]),ai=f.useMemo(function(){return{isSubPathKey:Vr}},[Vr]);f.useEffect(function(){ei(Ur?W:Tn.slice(Kr+1).map(function(Rn){return Rn.key}))},[Kr,Ur]);var oi=(0,xt.Z)(Gt||nt&&((y=Tn[0])===null||y===void 0?void 0:y.key),{value:Gt}),Wr=(0,T.Z)(oi,2),Pr=Wr[0],Zr=Wr[1],si=n(function(Rn){Zr(Rn)}),li=n(function(){Zr(void 0)});(0,f.useImperativeHandle)(C,function(){return{list:_r.current,focus:function(cn){var En,tr=Pr!=null?Pr:(En=Tn.find(function(yi){return!yi.props.disabled}))===null||En===void 0?void 0:En.key;if(tr){var ar,Ar,$r;(ar=_r.current)===null||ar===void 0||(Ar=ar.querySelector("li[data-menu-id='".concat(rt(ir,tr),"']")))===null||Ar===void 0||($r=Ar.focus)===null||$r===void 0||$r.call(Ar,cn)}}}});var ui=(0,xt.Z)(bn||[],{value:mn,postState:function(cn){return Array.isArray(cn)?cn:cn==null?W:[cn]}}),Gr=(0,T.Z)(ui,2),Fr=Gr[0],ci=Gr[1],di=function(cn){if(At){var En=cn.key,tr=Fr.includes(En),ar;tn?tr?ar=Fr.filter(function($r){return $r!==En}):ar=[].concat((0,$.Z)(Fr),[En]):ar=[En],ci(ar);var Ar=(0,j.Z)((0,j.Z)({},cn),{},{selectedKeys:ar});tr?Bn==null||Bn(Ar):wn==null||wn(Ar)}!tn&&Kn.length&&qt!=="inline"&&mr(W)},fi=n(function(Rn){Hn==null||Hn(Ve(Rn)),di(Rn)}),Xr=n(function(Rn,cn){var En=Kn.filter(function(ar){return ar!==Rn});if(cn)En.push(Rn);else if(qt!=="inline"){var tr=ri(Rn);En=En.filter(function(ar){return!tr.has(ar)})}(0,Rt.Z)(Kn,En,!0)||mr(En,!0)}),hi=function(cn,En){var tr=En!=null?En:!Kn.includes(cn);Xr(cn,tr)},mi=Me(qt,Pr,yr,ir,_r,ni,ti,Zr,hi,hn);f.useEffect(function(){Or(!0)},[]);var vi=f.useMemo(function(){return{_internalRenderMenuItem:Vn,_internalRenderSubMenuItem:Jn}},[Vn,Jn]),pi=qt!=="horizontal"||qe?Tn:Tn.map(function(Rn,cn){return f.createElement(B,{key:Rn.key,overflowDisabled:cn>Kr},Rn)}),gi=f.createElement(Nt,(0,l.Z)({id:We,ref:_r,prefixCls:"".concat(V,"-overflow"),component:"ul",itemComponent:Ut,className:oe()(V,"".concat(V,"-root"),"".concat(V,"-").concat(qt),Ie,(R={},(0,E.Z)(R,"".concat(V,"-inline-collapsed"),Yr),(0,E.Z)(R,"".concat(V,"-rtl"),yr),R),Ee),dir:je,style:Se,role:"menu",tabIndex:ze,data:pi,renderRawItem:function(cn){return cn},renderRawRest:function(cn){var En=cn.length,tr=En?Tn.slice(-En):null;return f.createElement(Xn,{eventKey:e,title:Yt,disabled:Ur,internalPopupClose:En===0,popupClassName:nn},tr)},maxCount:qt!=="horizontal"||qe?Nt.INVALIDATE:Nt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(cn){qr(cn)},onKeyDown:mi},qn));return f.createElement(Ne.Provider,{value:vi},f.createElement(Pt.Provider,{value:ir},f.createElement(B,{prefixCls:V,rootClassName:Ee,mode:qt,openKeys:Kn,rtl:yr,disabled:it,motion:Gn?pn:null,defaultMotions:Gn?zn:null,activeKey:Pr,onActive:si,onInactive:li,selectedKeys:Fr,inlineIndent:In,subMenuOpenDelay:at,subMenuCloseDelay:Et,forceSubMenuRender:jt,builtinPlacements:Cn,triggerSubMenuAction:Ln,getPopupContainer:gn,itemIcon:nr,expandIcon:Zn,onItemClick:fi,onOpenChange:Xr},f.createElement(G.Provider,{value:ai},gi),f.createElement("div",{style:{display:"none"},"aria-hidden":!0},f.createElement(K.Provider,{value:ii},Tn)))))}),ve=re,u=ve;u.Item=Ut,u.SubMenu=Xn,u.ItemGroup=Yn,u.Divider=dr;var he=u},66680:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return E}});var l=r(67294);function E(j){var $=l.useRef();$.current=j;var T=l.useCallback(function(){for(var m,I=arguments.length,oe=new Array(I),f=0;f<I;f++)oe[f]=arguments[f];return(m=$.current)===null||m===void 0?void 0:m.call.apply(m,[$].concat(oe))},[]);return T}},21770:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return m}});var l=r(97685),E=r(66680),j=r(8410),$=r(63896);function T(I){return I!==void 0}function m(I,oe){var f=oe||{},X=f.defaultValue,ie=f.value,ue=f.onChange,w=f.postState,Y=(0,$.Z)(function(){return T(ie)?ie:T(X)?typeof X=="function"?X():X:typeof I=="function"?I():I}),ne=(0,l.Z)(Y,2),ae=ne[0],c=ne[1],D=ie!==void 0?ie:ae,N=w?w(D):D,L=(0,E.Z)(ue),x=(0,$.Z)([D]),d=(0,l.Z)(x,2),b=d[0],Z=d[1];(0,j.o)(function(){var te=b[0];ae!==te&&L(ae,te)},[b]),(0,j.o)(function(){T(ie)||c(ie)},[ie]);var F=(0,E.Z)(function(te,ye){c(te,ye),Z([D],ye)});return[N,F]}},91881:function(_t,Ae,r){"use strict";var l=r(71002),E=r(80334);function j($,T){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,I=new Set;function oe(f,X){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ue=I.has(f);if((0,E.ZP)(!ue,"Warning: There may be circular references"),ue)return!1;if(f===X)return!0;if(m&&ie>1)return!1;I.add(f);var w=ie+1;if(Array.isArray(f)){if(!Array.isArray(X)||f.length!==X.length)return!1;for(var Y=0;Y<f.length;Y++)if(!oe(f[Y],X[Y],w))return!1;return!0}if(f&&X&&(0,l.Z)(f)==="object"&&(0,l.Z)(X)==="object"){var ne=Object.keys(f);return ne.length!==Object.keys(X).length?!1:ne.every(function(ae){return oe(f[ae],X[ae],w)})}return!1}return oe($,T)}Ae.Z=j},98423:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return E}});var l=r(1413);function E(j,$){var T=(0,l.Z)({},j);return Array.isArray($)&&$.forEach(function(m){delete T[m]}),T}},64217:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return oe}});var l=r(1413),E=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,j=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,$="".concat(E," ").concat(j).split(/[\s\n]+/),T="aria-",m="data-";function I(f,X){return f.indexOf(X)===0}function oe(f){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie;X===!1?ie={aria:!0,data:!0,attr:!0}:X===!0?ie={aria:!0}:ie=(0,l.Z)({},X);var ue={};return Object.keys(f).forEach(function(w){(ie.aria&&(w==="role"||I(w,T))||ie.data&&I(w,m)||ie.attr&&$.includes(w))&&(ue[w]=f[w])}),ue}},73299:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return yt}});var l=r(87462),E=r(1413),j=r(71002),$=r(97685),T=r(4942),m=r(45987),I=r(67294),oe=r(73935),f=r(94184),X=r.n(f),ie=r(48555),ue=I.forwardRef(function(P,de){var me=P.height,_e=P.offsetY,He=P.offsetX,Me=P.children,Pe=P.prefixCls,Oe=P.onInnerResize,we=P.innerProps,ee=P.rtl,e=P.extra,t={},n={display:"flex",flexDirection:"column"};if(_e!==void 0){var i;t={height:me,position:"relative",overflow:"hidden"},n=(0,E.Z)((0,E.Z)({},n),{},(i={transform:"translateY(".concat(_e,"px)")},(0,T.Z)(i,ee?"marginRight":"marginLeft",-He),(0,T.Z)(i,"position","absolute"),(0,T.Z)(i,"left",0),(0,T.Z)(i,"right",0),(0,T.Z)(i,"top",0),i))}return I.createElement("div",{style:t},I.createElement(ie.Z,{onResize:function(v){var A=v.offsetHeight;A&&Oe&&Oe()}},I.createElement("div",(0,l.Z)({style:n,className:X()((0,T.Z)({},"".concat(Pe,"-holder-inner"),Pe)),ref:de},we),Me,e)))});ue.displayName="Filler";var w=ue,Y=function(de){return+setTimeout(de,16)},ne=function(de){return clearTimeout(de)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Y=function(de){return window.requestAnimationFrame(de)},ne=function(de){return window.cancelAnimationFrame(de)});var ae=0,c=new Map;function D(P){c.delete(P)}var N=function(de){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ae+=1;var _e=ae;function He(Me){if(Me===0)D(_e),de();else{var Pe=Y(function(){He(Me-1)});c.set(_e,Pe)}}return He(me),_e};N.cancel=function(P){var de=c.get(P);return D(de),ne(de)};var L=N;function x(P,de){var me="touches"in P?P.touches[0]:P;return me[de?"pageX":"pageY"]}var d=I.forwardRef(function(P,de){var me,_e=P.prefixCls,He=P.rtl,Me=P.scrollOffset,Pe=P.scrollRange,Oe=P.onStartMove,we=P.onStopMove,ee=P.onScroll,e=P.horizontal,t=P.spinSize,n=P.containerSize,i=P.style,a=P.thumbStyle,v=I.useState(!1),A=(0,$.Z)(v,2),pe=A[0],se=A[1],Ke=I.useState(null),Qe=(0,$.Z)(Ke,2),gt=Qe[0],Xe=Qe[1],pt=I.useState(null),dt=(0,$.Z)(pt,2),De=dt[0],Ve=dt[1],vt=!He,wt=I.useRef(),Je=I.useRef(),sn=I.useState(!1),Qt=(0,$.Z)(sn,2),St=Qt[0],Ut=Qt[1],Jt=I.useRef(),rn=function(){clearTimeout(Jt.current),Ut(!0),Jt.current=setTimeout(function(){Ut(!1)},3e3)},an=Pe-n||0,_n=n-t||0,Mn=an>0,un=I.useMemo(function(){if(Me===0||an===0)return 0;var Sn=Me/an;return Sn*_n},[Me,an,_n]),Fn=function(xn){xn.stopPropagation(),xn.preventDefault()},on=I.useRef({top:un,dragging:pe,pageY:gt,startTop:De});on.current={top:un,dragging:pe,pageY:gt,startTop:De};var Un=function(xn){se(!0),Xe(x(xn,e)),Ve(on.current.top),Oe(),xn.stopPropagation(),xn.preventDefault()};I.useEffect(function(){var Sn=function($n){$n.preventDefault()},xn=wt.current,or=Je.current;return xn.addEventListener("touchstart",Sn),or.addEventListener("touchstart",Un),function(){xn.removeEventListener("touchstart",Sn),or.removeEventListener("touchstart",Un)}},[]);var Pn=I.useRef();Pn.current=an;var vn=I.useRef();vn.current=_n,I.useEffect(function(){if(pe){var Sn,xn=function($n){var Xn=on.current,xr=Xn.dragging,sr=Xn.pageY,Er=Xn.startTop;if(L.cancel(Sn),xr){var pr=x($n,e)-sr,Yn=Er;!vt&&e?Yn-=pr:Yn+=pr;var dr=Pn.current,fr=vn.current,Qn=fr?Yn/fr:0,kn=Math.ceil(Qn*dr);kn=Math.max(kn,0),kn=Math.min(kn,dr),Sn=L(function(){ee(kn,e)})}},or=function(){se(!1),we()};return window.addEventListener("mousemove",xn),window.addEventListener("touchmove",xn),window.addEventListener("mouseup",or),window.addEventListener("touchend",or),function(){window.removeEventListener("mousemove",xn),window.removeEventListener("touchmove",xn),window.removeEventListener("mouseup",or),window.removeEventListener("touchend",or),L.cancel(Sn)}}},[pe]),I.useEffect(function(){rn()},[Me]),I.useImperativeHandle(de,function(){return{delayHidden:rn}});var ln="".concat(_e,"-scrollbar"),dn={position:"absolute",visibility:St&&Mn?null:"hidden"},Nn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return e?(dn.height=8,dn.left=0,dn.right=0,dn.bottom=0,Nn.height="100%",Nn.width=t,vt?Nn.left=un:Nn.right=un):(dn.width=8,dn.top=0,dn.bottom=0,vt?dn.right=0:dn.left=0,Nn.width="100%",Nn.height=t,Nn.top=un),I.createElement("div",{ref:wt,className:X()(ln,(me={},(0,T.Z)(me,"".concat(ln,"-horizontal"),e),(0,T.Z)(me,"".concat(ln,"-vertical"),!e),(0,T.Z)(me,"".concat(ln,"-visible"),St),me)),style:(0,E.Z)((0,E.Z)({},dn),i),onMouseDown:Fn,onMouseMove:rn},I.createElement("div",{ref:Je,className:X()("".concat(ln,"-thumb"),(0,T.Z)({},"".concat(ln,"-thumb-moving"),pe)),style:(0,E.Z)((0,E.Z)({},Nn),a),onMouseDown:Un}))}),b=d;function Z(P){var de=P.children,me=P.setRef,_e=I.useCallback(function(He){me(He)},[]);return I.cloneElement(de,{ref:_e})}function F(P,de,me,_e,He,Me,Pe){var Oe=Pe.getKey;return P.slice(de,me+1).map(function(we,ee){var e=de+ee,t=Me(we,e,{style:{width:_e}}),n=Oe(we);return I.createElement(Z,{key:n,setRef:function(a){return He(we,a)}},t)})}function te(P){return P instanceof HTMLElement||P instanceof SVGElement}function ye(P){return te(P)?P:P instanceof I.Component?oe.findDOMNode(P):null}var xe=r(15671),k=r(43144),Be=function(){function P(){(0,xe.Z)(this,P),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,k.Z)(P,[{key:"set",value:function(me,_e){this.maps[me]=_e,this.id+=1}},{key:"get",value:function(me){return this.maps[me]}}]),P}(),Q=Be;function ce(P,de,me){var _e=I.useState(0),He=(0,$.Z)(_e,2),Me=He[0],Pe=He[1],Oe=(0,I.useRef)(new Map),we=(0,I.useRef)(new Q),ee=(0,I.useRef)();function e(){L.cancel(ee.current)}function t(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;e();var a=function(){Oe.current.forEach(function(A,pe){if(A&&A.offsetParent){var se=ye(A),Ke=se.offsetHeight;we.current.get(pe)!==Ke&&we.current.set(pe,se.offsetHeight)}}),Pe(function(A){return A+1})};i?a():ee.current=L(a)}function n(i,a){var v=P(i),A=Oe.current.get(v);a?(Oe.current.set(v,a),t()):Oe.current.delete(v),!A!=!a&&(a?de==null||de(i):me==null||me(i))}return(0,I.useEffect)(function(){return e},[]),[n,t,we.current,Me]}function M(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var O=M()?I.useLayoutEffect:I.useEffect,ke=function(de,me){var _e=I.useRef(!0);O(function(){return de(_e.current)},me),O(function(){return _e.current=!1,function(){_e.current=!0}},[])},Fe=function(de,me){ke(function(_e){if(!_e)return de()},me)},Te=ke;function q(P){var de=I.useRef();de.current=P;var me=I.useCallback(function(){for(var _e,He=arguments.length,Me=new Array(He),Pe=0;Pe<He;Pe++)Me[Pe]=arguments[Pe];return(_e=de.current)===null||_e===void 0?void 0:_e.call.apply(_e,[de].concat(Me))},[]);return me}function ge(P){var de=React.useRef(!1),me=React.useState(P),_e=_slicedToArray(me,2),He=_e[0],Me=_e[1];React.useEffect(function(){return de.current=!1,function(){de.current=!0}},[]);function Pe(Oe,we){we&&de.current||Me(Oe)}return[He,Pe]}function Le(P){return P!==void 0}function Ce(P,de){var me=de||{},_e=me.defaultValue,He=me.value,Me=me.onChange,Pe=me.postState,Oe=useState(function(){return Le(He)?He:Le(_e)?typeof _e=="function"?_e():_e:typeof P=="function"?P():P}),we=_slicedToArray(Oe,2),ee=we[0],e=we[1],t=He!==void 0?He:ee,n=Pe?Pe(t):t,i=useEvent(Me),a=useState([t]),v=_slicedToArray(a,2),A=v[0],pe=v[1];useLayoutUpdateEffect(function(){var Ke=A[0];ee!==Ke&&i(ee,Ke)},[A]),useLayoutUpdateEffect(function(){Le(He)||e(He)},[He]);var se=useEvent(function(Ke,Qe){e(Ke,Qe),pe([t],Qe)});return[n,se]}var $e=r(31461);function Tt(P,de,me){var _e=React.useRef({});return(!("value"in _e.current)||me(_e.current.condition,de))&&(_e.current.value=P(),_e.current.condition=de),_e.current.value}function ot(P,de){typeof P=="function"?P(de):_typeof(P)==="object"&&P&&"current"in P&&(P.current=de)}function Mt(){for(var P=arguments.length,de=new Array(P),me=0;me<P;me++)de[me]=arguments[me];var _e=de.filter(function(He){return He});return _e.length<=1?_e[0]:function(He){de.forEach(function(Me){ot(Me,He)})}}function bt(){for(var P=arguments.length,de=new Array(P),me=0;me<P;me++)de[me]=arguments[me];return useMemo(function(){return Mt.apply(void 0,de)},de,function(_e,He){return _e.length!==He.length||_e.every(function(Me,Pe){return Me!==He[Pe]})})}function Nt(P){var de,me,_e=isMemo(P)?P.type.type:P.type;return!(typeof _e=="function"&&!((de=_e.prototype)!==null&&de!==void 0&&de.render)||typeof P=="function"&&!((me=P.prototype)!==null&&me!==void 0&&me.render))}function xt(P){return!isValidElement(P)||isFragment(P)?!1:Nt(P)}function Ct(P,de,me,_e){if(!de.length)return me;var He=_toArray(de),Me=He[0],Pe=He.slice(1),Oe;return!P&&typeof Me=="number"?Oe=[]:Array.isArray(P)?Oe=_toConsumableArray(P):Oe=_objectSpread({},P),_e&&me===void 0&&Pe.length===1?delete Oe[Me][Pe[0]]:Oe[Me]=Ct(Oe[Me],Pe,me,_e),Oe}function Rt(P,de,me){var _e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return de.length&&_e&&me===void 0&&!get(P,de.slice(0,-1))?P:Ct(P,de,me,_e)}function Pt(P){return _typeof(P)==="object"&&P!==null&&Object.getPrototypeOf(P)===Object.prototype}function rt(P){return Array.isArray(P)?[]:{}}var fe=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function J(){for(var P=arguments.length,de=new Array(P),me=0;me<P;me++)de[me]=arguments[me];var _e=rt(de[0]);return de.forEach(function(He){function Me(Pe,Oe){var we=new Set(Oe),ee=get(He,Pe),e=Array.isArray(ee);if(e||Pt(ee)){if(!we.has(ee)){we.add(ee);var t=get(_e,Pe);e?_e=Rt(_e,Pe,[]):(!t||_typeof(t)!=="object")&&(_e=Rt(_e,Pe,rt(ee))),fe(ee).forEach(function(n){Me([].concat(_toConsumableArray(Pe),[n]),we)})}}else _e=Rt(_e,Pe,ee)}Me([])}),_e}var o={},s=[],_=function(de){s.push(de)};function B(P,de){if(0)var me}function S(P,de){if(0)var me}function K(){o={}}function U(P,de,me){!de&&!o[me]&&(P(!1,me),o[me]=!0)}function g(P,de){U(B,P,de)}function H(P,de){U(S,P,de)}g.preMessage=_,g.resetWarned=K,g.noteOnce=H;var G=null,le=10;function Ne(P,de,me,_e,He,Me,Pe,Oe){var we=I.useRef(),ee=I.useState(null),e=(0,$.Z)(ee,2),t=e[0],n=e[1];return Te(function(){if(t&&t.times<le){if(!P.current){n(function(rn){return(0,E.Z)({},rn)});return}Me();var i=t.targetAlign,a=t.originAlign,v=t.index,A=t.offset,pe=P.current.clientHeight,se=!1,Ke=i,Qe=null;if(pe){for(var gt=i||a,Xe=0,pt=0,dt=0,De=Math.min(de.length-1,v),Ve=0;Ve<=De;Ve+=1){var vt=He(de[Ve]);pt=Xe;var wt=me.get(vt);dt=pt+(wt===void 0?_e:wt),Xe=dt}for(var Je=gt==="top"?A:pe-A,sn=De;sn>=0;sn-=1){var Qt=He(de[sn]),St=me.get(Qt);if(St===void 0){se=!0;break}if(Je-=St,Je<=0)break}switch(gt){case"top":Qe=pt-A;break;case"bottom":Qe=dt-pe+A;break;default:{var Ut=P.current.scrollTop,Jt=Ut+pe;pt<Ut?Ke="top":dt>Jt&&(Ke="bottom")}}Qe!==null&&Pe(Qe),Qe!==t.lastTop&&(se=!0)}se&&n(function(rn){return(0,E.Z)((0,E.Z)({},rn),{},{times:rn.times+1,targetAlign:Ke,lastTop:Qe})})}},[t,P.current]),function(i){if(i==null){Oe();return}if(L.cancel(we.current),typeof i=="number")Pe(i);else if(i&&(0,j.Z)(i)==="object"){var a,v=i.align;"index"in i?a=i.index:a=de.findIndex(function(se){return He(se)===i.key});var A=i.offset,pe=A===void 0?0:A;n({times:0,index:a,offset:pe,originAlign:v})}}}function Ze(P,de,me,_e){var He=me-P,Me=de-me,Pe=Math.min(He,Me)*2;if(_e<=Pe){var Oe=Math.floor(_e/2);return _e%2?me+Oe+1:me-Oe}return He>Me?me-(_e-Me):me+(_e-He)}function Ye(P,de,me){var _e=P.length,He=de.length,Me,Pe;if(_e===0&&He===0)return null;_e<He?(Me=P,Pe=de):(Me=de,Pe=P);var Oe={__EMPTY_ITEM__:!0};function we(a){return a!==void 0?me(a):Oe}for(var ee=null,e=Math.abs(_e-He)!==1,t=0;t<Pe.length;t+=1){var n=we(Me[t]),i=we(Pe[t]);if(n!==i){ee=t,e=e||n!==we(Pe[t+1]);break}}return ee===null?null:{index:ee,multiple:e}}function ct(P,de,me){var _e=I.useState(P),He=(0,$.Z)(_e,2),Me=He[0],Pe=He[1],Oe=I.useState(null),we=(0,$.Z)(Oe,2),ee=we[0],e=we[1];return I.useEffect(function(){var t=Ye(Me||[],P||[],de);(t==null?void 0:t.index)!==void 0&&(me==null||me(t.index),e(P[t.index])),Pe(P)},[P]),[ee]}var ht=(typeof navigator=="undefined"?"undefined":(0,j.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),et=ht,It=function(P,de){var me=(0,I.useRef)(!1),_e=(0,I.useRef)(null);function He(){clearTimeout(_e.current),me.current=!0,_e.current=setTimeout(function(){me.current=!1},50)}var Me=(0,I.useRef)({top:P,bottom:de});return Me.current.top=P,Me.current.bottom=de,function(Pe){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,we=Pe<0&&Me.current.top||Pe>0&&Me.current.bottom;return Oe&&we?(clearTimeout(_e.current),me.current=!1):(!we||me.current)&&He(),!me.current&&we}};function Re(P,de,me,_e,He){var Me=(0,I.useRef)(0),Pe=(0,I.useRef)(null),Oe=(0,I.useRef)(null),we=(0,I.useRef)(!1),ee=It(de,me);function e(A,pe){L.cancel(Pe.current),Me.current+=pe,Oe.current=pe,!ee(pe)&&(et||A.preventDefault(),Pe.current=L(function(){var se=we.current?10:1;He(Me.current*se),Me.current=0}))}function t(A,pe){He(pe,!0),et||A.preventDefault()}var n=(0,I.useRef)(null),i=(0,I.useRef)(null);function a(A){if(P){L.cancel(i.current),i.current=L(function(){n.current=null},2);var pe=A.deltaX,se=A.deltaY,Ke=A.shiftKey,Qe=pe,gt=se;(n.current==="sx"||!n.current&&Ke&&se&&!pe)&&(Qe=se,gt=0,n.current="sx");var Xe=Math.abs(Qe),pt=Math.abs(gt);n.current===null&&(n.current=_e&&Xe>pt?"x":"y"),n.current==="y"?e(A,gt):t(A,Qe)}}function v(A){P&&(we.current=A.detail===Oe.current)}return[a,v]}var Kt=14/15;function Ft(P,de,me){var _e=(0,I.useRef)(!1),He=(0,I.useRef)(0),Me=(0,I.useRef)(null),Pe=(0,I.useRef)(null),Oe,we=function(n){if(_e.current){var i=Math.ceil(n.touches[0].pageY),a=He.current-i;He.current=i,me(a)&&n.preventDefault(),clearInterval(Pe.current),Pe.current=setInterval(function(){a*=Kt,(!me(a,!0)||Math.abs(a)<=.1)&&clearInterval(Pe.current)},16)}},ee=function(){_e.current=!1,Oe()},e=function(n){Oe(),n.touches.length===1&&!_e.current&&(_e.current=!0,He.current=Math.ceil(n.touches[0].pageY),Me.current=n.target,Me.current.addEventListener("touchmove",we),Me.current.addEventListener("touchend",ee))};Oe=function(){Me.current&&(Me.current.removeEventListener("touchmove",we),Me.current.removeEventListener("touchend",ee))},Te(function(){return P&&de.current.addEventListener("touchstart",e),function(){var t;(t=de.current)===null||t===void 0||t.removeEventListener("touchstart",e),Oe(),clearInterval(Pe.current)}},[P])}var Ot=20;function Bt(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,me=P/de*100;return isNaN(me)&&(me=0),me=Math.max(me,Ot),me=Math.min(me,P/2),Math.floor(me)}function Wt(P,de,me,_e){var He=I.useMemo(function(){return[new Map,[]]},[P,me.id,_e]),Me=(0,$.Z)(He,2),Pe=Me[0],Oe=Me[1],we=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=Pe.get(e),i=Pe.get(t);if(n===void 0||i===void 0)for(var a=P.length,v=Oe.length;v<a;v+=1){var A,pe=P[v],se=de(pe);Pe.set(se,v);var Ke=(A=me.get(se))!==null&&A!==void 0?A:_e;if(Oe[v]=(Oe[v-1]||0)+Ke,se===e&&(n=v),se===t&&(i=v),n!==void 0&&i!==void 0)break}return{top:Oe[n-1]||0,bottom:Oe[i]}};return we}var kt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Zt=[],$t={overflowY:"auto",overflowAnchor:"none"};function Ht(P,de){var me=P.prefixCls,_e=me===void 0?"rc-virtual-list":me,He=P.className,Me=P.height,Pe=P.itemHeight,Oe=P.fullHeight,we=Oe===void 0?!0:Oe,ee=P.style,e=P.data,t=P.children,n=P.itemKey,i=P.virtual,a=P.direction,v=P.scrollWidth,A=P.component,pe=A===void 0?"div":A,se=P.onScroll,Ke=P.onVirtualScroll,Qe=P.onVisibleChange,gt=P.innerProps,Xe=P.extraRender,pt=P.styles,dt=(0,m.Z)(P,kt),De=!!(i!==!1&&Me&&Pe),Ve=De&&e&&(Pe*e.length>Me||!!v),vt=a==="rtl",wt=X()(_e,(0,T.Z)({},"".concat(_e,"-rtl"),vt),He),Je=e||Zt,sn=(0,I.useRef)(),Qt=(0,I.useRef)(),St=(0,I.useState)(0),Ut=(0,$.Z)(St,2),Jt=Ut[0],rn=Ut[1],an=(0,I.useState)(0),_n=(0,$.Z)(an,2),Mn=_n[0],un=_n[1],Fn=(0,I.useState)(!1),on=(0,$.Z)(Fn,2),Un=on[0],Pn=on[1],vn=function(){Pn(!0)},ln=function(){Pn(!1)},dn=I.useCallback(function(nt){return typeof n=="function"?n(nt):nt==null?void 0:nt[n]},[n]),Nn={getKey:dn};function Sn(nt){rn(function(lt){var At;typeof nt=="function"?At=nt(lt):At=nt;var zt=Ee(At);return sn.current.scrollTop=zt,zt})}var xn=(0,I.useRef)({start:0,end:Je.length}),or=(0,I.useRef)(),vr=ct(Je,dn),$n=(0,$.Z)(vr,1),Xn=$n[0];or.current=Xn;var xr=ce(dn,null,null),sr=(0,$.Z)(xr,4),Er=sr[0],pr=sr[1],Yn=sr[2],dr=sr[3],fr=I.useMemo(function(){if(!De)return{scrollHeight:void 0,start:0,end:Je.length-1,offset:void 0};if(!Ve){var nt;return{scrollHeight:((nt=Qt.current)===null||nt===void 0?void 0:nt.offsetHeight)||0,start:0,end:Je.length-1,offset:void 0}}for(var lt=0,At,zt,tn,bn=Je.length,mn=0;mn<bn;mn+=1){var wn=Je[mn],Bn=dn(wn),On=Yn.get(Bn),In=lt+(On===void 0?Pe:On);In>=Jt&&At===void 0&&(At=mn,zt=lt),In>Jt+Me&&tn===void 0&&(tn=mn),lt=In}return At===void 0&&(At=0,zt=0,tn=Math.ceil(Me/Pe)),tn===void 0&&(tn=Je.length-1),tn=Math.min(tn+1,Je.length-1),{scrollHeight:lt,start:At,end:tn,offset:zt}},[Ve,De,Jt,Je,dr,Me]),Qn=fr.scrollHeight,kn=fr.start,gr=fr.end,W=fr.offset;xn.current.start=kn,xn.current.end=gr;var re=I.useState({width:0,height:Me}),ve=(0,$.Z)(re,2),u=ve[0],he=ve[1],h=function(lt){he({width:lt.width||lt.offsetWidth,height:lt.height||lt.offsetHeight})},C=(0,I.useRef)(),y=(0,I.useRef)(),R=I.useMemo(function(){return Bt(u.width,v)},[u.width,v]),p=I.useMemo(function(){return Bt(u.height,Qn)},[u.height,Qn]),z=Qn-Me,V=(0,I.useRef)(z);V.current=z;function Ee(nt){var lt=nt;return Number.isNaN(V.current)||(lt=Math.min(lt,V.current)),lt=Math.max(lt,0),lt}var Se=Jt<=0,Ie=Jt>=z,Ue=It(Se,Ie),ze=function(){return{x:vt?-Mn:Mn,y:Jt}},be=(0,I.useRef)(ze()),Ge=q(function(){if(Ke){var nt=ze();(be.current.x!==nt.x||be.current.y!==nt.y)&&(Ke(nt),be.current=nt)}});function je(nt,lt){var At=nt;lt?((0,oe.flushSync)(function(){un(At)}),Ge()):Sn(At)}function We(nt){var lt=nt.currentTarget.scrollTop;lt!==Jt&&Sn(lt),se==null||se(nt),Ge()}var tt=function(lt){var At=lt,zt=v-u.width;return At=Math.max(At,0),At=Math.min(At,zt),At},st=q(function(nt,lt){lt?((0,oe.flushSync)(function(){un(function(At){var zt=At+(vt?-nt:nt);return tt(zt)})}),Ge()):Sn(function(At){var zt=At+nt;return zt})}),ft=Re(De,Se,Ie,!!v,st),it=(0,$.Z)(ft,2),qe=it[0],ut=it[1];Ft(De,sn,function(nt,lt){return Ue(nt,lt)?!1:(qe({preventDefault:function(){},deltaY:nt}),!0)}),Te(function(){function nt(At){De&&At.preventDefault()}var lt=sn.current;return lt.addEventListener("wheel",qe),lt.addEventListener("DOMMouseScroll",ut),lt.addEventListener("MozMousePixelScroll",nt),function(){lt.removeEventListener("wheel",qe),lt.removeEventListener("DOMMouseScroll",ut),lt.removeEventListener("MozMousePixelScroll",nt)}},[De]),Te(function(){v&&un(function(nt){return tt(nt)})},[u.width,v]);var at=function(){var lt,At;(lt=C.current)===null||lt===void 0||lt.delayHidden(),(At=y.current)===null||At===void 0||At.delayHidden()},Dt=Ne(sn,Je,Yn,Pe,dn,function(){return pr(!0)},Sn,at);I.useImperativeHandle(de,function(){return{getScrollInfo:ze,scrollTo:function(lt){function At(zt){return zt&&(0,j.Z)(zt)==="object"&&("left"in zt||"top"in zt)}At(lt)?(lt.left!==void 0&&un(tt(lt.left)),Dt(lt.top)):Dt(lt)}}}),Te(function(){if(Qe){var nt=Je.slice(kn,gr+1);Qe(nt,Je)}},[kn,gr,Je]);var Et=Wt(Je,dn,Yn,Pe),jt=Xe==null?void 0:Xe({start:kn,end:gr,virtual:Ve,offsetX:Mn,offsetY:W,rtl:vt,getSize:Et}),Lt=F(Je,kn,gr,v,Er,t,Nn),Vt=null;Me&&(Vt=(0,E.Z)((0,T.Z)({},we?"height":"maxHeight",Me),$t),De&&(Vt.overflowY="hidden",v&&(Vt.overflowX="hidden"),Un&&(Vt.pointerEvents="none")));var Gt={};return vt&&(Gt.dir="rtl"),I.createElement("div",(0,l.Z)({style:(0,E.Z)((0,E.Z)({},ee),{},{position:"relative"}),className:wt},Gt,dt),I.createElement(ie.Z,{onResize:h},I.createElement(pe,{className:"".concat(_e,"-holder"),style:Vt,ref:sn,onScroll:We,onMouseEnter:at},I.createElement(w,{prefixCls:_e,height:Qn,offsetX:Mn,offsetY:W,scrollWidth:v,onInnerResize:pr,ref:Qt,innerProps:gt,rtl:vt,extra:jt},Lt))),Ve&&Qn>Me&&I.createElement(b,{ref:C,prefixCls:_e,scrollOffset:Jt,scrollRange:Qn,rtl:vt,onScroll:je,onStartMove:vn,onStopMove:ln,spinSize:p,containerSize:u.height,style:pt==null?void 0:pt.verticalScrollBar,thumbStyle:pt==null?void 0:pt.verticalScrollBarThumb}),Ve&&v&&I.createElement(b,{ref:y,prefixCls:_e,scrollOffset:Mn,scrollRange:v,rtl:vt,onScroll:je,onStartMove:vn,onStopMove:ln,spinSize:R,containerSize:u.width,horizontal:!0,style:pt==null?void 0:pt.horizontalScrollBar,thumbStyle:pt==null?void 0:pt.horizontalScrollBarThumb}))}var mt=I.forwardRef(Ht);mt.displayName="List";var en=mt,yt=en},66392:function(_t,Ae){"use strict";var r;var l=Symbol.for("react.element"),E=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),I=Symbol.for("react.context"),oe=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),ne;ne=Symbol.for("react.module.reference");function ae(c){if(typeof c=="object"&&c!==null){var D=c.$$typeof;switch(D){case l:switch(c=c.type,c){case j:case T:case $:case X:case ie:return c;default:switch(c=c&&c.$$typeof,c){case oe:case I:case f:case w:case ue:case m:return c;default:return D}}case E:return D}}}r=I,r=m,r=l,r=f,r=j,r=w,r=ue,r=E,r=T,r=$,r=X,r=ie,r=function(){return!1},r=function(){return!1},r=function(c){return ae(c)===I},r=function(c){return ae(c)===m},r=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===l},r=function(c){return ae(c)===f},r=function(c){return ae(c)===j},r=function(c){return ae(c)===w},r=function(c){return ae(c)===ue},r=function(c){return ae(c)===E},r=function(c){return ae(c)===T},r=function(c){return ae(c)===$},r=function(c){return ae(c)===X},r=function(c){return ae(c)===ie},r=function(c){return typeof c=="string"||typeof c=="function"||c===j||c===T||c===$||c===X||c===ie||c===Y||typeof c=="object"&&c!==null&&(c.$$typeof===w||c.$$typeof===ue||c.$$typeof===m||c.$$typeof===I||c.$$typeof===f||c.$$typeof===ne||c.getModuleId!==void 0)},r=ae},31461:function(_t,Ae,r){"use strict";r(66392)},18034:function(_t){var Ae=arguments[3],r=arguments[4],l=arguments[5],E=JSON.stringify;_t.exports=function(j,$){for(var T,m=Object.keys(l),I=0,oe=m.length;I<oe;I++){var f=m[I],X=l[f].exports;if(X===j||X&&X.default===j){T=f;break}}if(!T){T=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var ie={},I=0,oe=m.length;I<oe;I++){var f=m[I];ie[f]=f}r[T]=["function(require,module,exports){"+j+"(self); }",ie]}var ue=Math.floor(Math.pow(16,8)*Math.random()).toString(16),w={};w[T]=T,r[ue]=["function(require,module,exports){var f = require("+E(T)+");(f.default ? f.default : f)(self);}",w];var Y={};ne(ue);function ne(x){Y[x]=!0;for(var d in r[x][1]){var b=r[x][1][d];Y[b]||ne(b)}}var ae="("+Ae+")({"+Object.keys(Y).map(function(x){return E(x)+":["+r[x][0]+","+E(r[x][1])+"]"}).join(",")+"},{},["+E(ue)+"])",c=window.URL||window.webkitURL||window.mozURL||window.msURL,D=new Blob([ae],{type:"text/javascript"});if($&&$.bare)return D;var N=c.createObjectURL(D),L=new Worker(N);return L.objectURL=N,L}},36459:function(_t,Ae,r){"use strict";r.d(Ae,{Z:function(){return l}});function l(E){if(E==null)throw new TypeError("Cannot destructure "+E)}}}]);
|