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.
43 lines
351 KiB
43 lines
351 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[6444],{18785:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return se}});var E=a(60499),C=a(59301),F={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"},Y=F,A=a(7657),u=function(be,de){return C.createElement(A.Z,(0,E.Z)({},be,{ref:de,icon:Y}))},ce=C.forwardRef(u),se=ce},52671:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return se}});var E=a(60499),C=a(59301),F={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"},Y=F,A=a(7657),u=function(be,de){return C.createElement(A.Z,(0,E.Z)({},be,{ref:de,icon:Y}))},ce=C.forwardRef(u),se=ce},8657:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return se}});var E=a(60499),C=a(59301),F={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"},Y=F,A=a(7657),u=function(be,de){return C.createElement(A.Z,(0,E.Z)({},be,{ref:de,icon:Y}))},ce=C.forwardRef(u),se=ce},56082:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return se}});var E=a(60499),C=a(59301),F={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"},Y=F,A=a(7657),u=function(be,de){return C.createElement(A.Z,(0,E.Z)({},be,{ref:de,icon:Y}))},ce=C.forwardRef(u),se=ce},33853:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return se}});var E=a(60499),C=a(59301),F={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"},Y=F,A=a(7657),u=function(be,de){return C.createElement(A.Z,(0,E.Z)({},be,{ref:de,icon:Y}))},ce=C.forwardRef(u),se=ce},15075:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return se}});var E=a(60499),C=a(59301),F={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"},Y=F,A=a(7657),u=function(be,de){return C.createElement(A.Z,(0,E.Z)({},be,{ref:de,icon:Y}))},ce=C.forwardRef(u),se=ce},43531:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return se}});var E=a(60499),C=a(59301),F={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"},Y=F,A=a(7657),u=function(be,de){return C.createElement(A.Z,(0,E.Z)({},be,{ref:de,icon:Y}))},ce=C.forwardRef(u),se=ce},38819:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return se}});var E=a(60499),C=a(59301),F={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"},Y=F,A=a(7657),u=function(be,de){return C.createElement(A.Z,(0,E.Z)({},be,{ref:de,icon:Y}))},ce=C.forwardRef(u),se=ce},20978:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return ee}});var E=a(59301),C=a(8591),F=a(38854),Y=a(9667),A=a(16471),u=a(7544),ce=a(56102),se=a(1427),oe={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"},be=(Z,Ce,j)=>new Promise((T,P)=>{var g=$=>{try{B(j.next($))}catch(w){P(w)}},R=$=>{try{B(j.throw($))}catch(w){P(w)}},B=$=>$.done?T($.value):Promise.resolve($.value).then(g,R);B((j=j.apply(Z,Ce)).next())});function de(Z){if(isNaN(Z))return{minutes:"00",seconds:"00"};const Ce=new Date(Z*1e3).toISOString().substr(11,8);return{hour:Ce.substr(0,2),minutes:Ce.substr(3,2),seconds:Ce.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function N(Z,Ce){return Z-Ce}function d(Z){Z.sort(N);let Ce=0;for(let j=0;j<Z.length-1;j++){let T=Math.abs(Z[j+1]-Z[j]);T<21&&(Ce+=T)}return Ce}const ne=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var ee=(0,E.forwardRef)(({allow_skip:Z,src:Ce,toLog:j,videoId:T,logWatchHistory:P,courseId:g=null,startTime:R,handlePause:B=()=>{},handlePlay:$=()=>{},handlePlayEnded:w=()=>{},autoPlay:re=!1,onPlayEnded:X=()=>{},isShowWaterMark:he=!0},D)=>{var xe;const M=((xe=Ce==null?void 0:Ce.split("."))==null?void 0:xe.pop())==="flv",m=(0,E.useRef)(),k=(0,E.useRef)(),pe=(0,E.useRef)(),z=(0,E.useRef)(),le=(0,E.useRef)(),Q=(0,E.useRef)(),L=(0,E.useRef)(),H=(0,E.useRef)(),J=(0,E.useRef)(),ae=(0,E.useRef)(),ye=(0,E.useRef)(),Ne=(0,E.useRef)(),ke=(0,E.useRef)(),Oe=(0,E.useRef)(),et=navigator.userAgent.toLowerCase().match(ne),Ke=et?et[0]:"pc",je=(0,E.useRef)(!1),Xe=(0,u.eY)();let G=0,Le=0,f=0,y=null,v=!1,i=20,b=1,U=!1,_=!1,l=[];(0,E.useImperativeHandle)(D,()=>({getLastUpdatedTime:()=>m.current.currentTime,getDuration:()=>m.current.duration})),C.ZP.config({maxCount:1,getContainer:()=>pe.current});const h=(0,E.useCallback)((ie,fe=!1)=>{let W={point:m.current.currentTime};y?(W.log_id=y,W.watch_duration=d(l),W.total_duration=Le):(g?(W.video_id=parseInt(T,10),W.course_id=g):W.video_id=T,W.duration=G,W.device=Ke),fe&&(W.ed="1");function Re(){return be(this,null,function*(){U=!0,y=yield P==null?void 0:P(W),U=!1,ie&&ie()})}Re()},[T,g]);(0,E.useEffect)(()=>{m.current&&(z.current.style.display="none",le.current.style.display="block"),C.ZP.destroy();let ie=null;return Y.Z.isSupported&&M&&Ce&&(Ce==null?void 0:Ce.indexOf(".m3u8"))<0?(ie=Y.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:Ce,muted:!1}),m.current&&(ie.attachMediaElement(m.current),ie.load())):m.current.setAttribute("src",Ce),c(),()=>{ie&&(ie.unload(),ie.pause(),ie.destroy(),ie=null)}},[m,M,Ce]);function o(){m.current.paused?(z.current.style.display="none",le.current.style.display="block"):(z.current.style.display="block",le.current.style.display="none")}function c(){ye.current.style.display="none",ke.current.style.display="none",Ne.current.style.display="none",m.current.muted||m.current.volume===0?ye.current.style.display="block":m.current.volume>0&&m.current.volume<=.5?ke.current.style.display="block":Ne.current.style.display="block"}(0,E.useEffect)(()=>{const ie=document.getElementById("play"),fe=document.querySelectorAll(".playback-icons use");function W(){$(),R&&!je.current&&(m.current.currentTime=R),je.current=!0,l.push(m.current.currentTime),v||(v=!0,j&&h())}function Re(){return be(this,null,function*(){o(),l.push(m.current.currentTime),j&&h(()=>{y=null,f=0,v=!1,U=!1,_=!1,l=[],Le=0,b=1},!0),X()})}function Te(){Q.current.value=Math.round(m.current.currentTime),L.current.value=Math.round(m.current.currentTime)}function V(){const Fe=de(Math.round(m.current.currentTime));J.current.innerText=`${Fe.hour>0?Fe.hour+":":""}${Fe.minutes}:${Fe.seconds}`,J.current.setAttribute("datetime",`${Fe.hour>0?" "+Fe.hour+" ":""}${Fe.minutes}m ${Fe.seconds}s`)}function Pe(){var Fe,tt,Et,mt,xt,Ot,gt;const Rt=Math.round((Fe=m.current)==null?void 0:Fe.duration);(Et=(tt=Q.current)==null?void 0:tt.setAttribute)==null||Et.call(tt,"max",Rt),(xt=(mt=L.current)==null?void 0:mt.setAttribute)==null||xt.call(mt,"max",Rt);const it=de(Rt);H.current&&(H.current.innerText=`${it.hour>0?it.hour+":":""}${it.minutes}:${it.seconds}`,(gt=(Ot=H.current).setAttribute)==null||gt.call(Ot,"datetime",`${it.hour>0?" "+it.hour+" ":""}${it.minutes}m ${it.seconds}s`))}function Ge(){try{const Fe=Math.round(m.current.duration);Q.current.setAttribute("max",Fe),L.current.setAttribute("max",Fe);const tt=de(Fe);H.current.innerText=`${tt.hour>0?tt.hour+":":""}${tt.minutes}:${tt.seconds}`,H.current.setAttribute("datetime",`${tt.hour>0?" "+tt.hour+" ":""}${tt.minutes}m ${tt.seconds}s`),Te(),V();const{width:Et,height:mt,x:xt,y:Ot}=k.current.getBoundingClientRect();if(xt<0||Ot<0||!Et)return;if(!_){let gt=m.current.currentTime,Rt=gt-f;Math.abs(Rt)<10?(Le+=Math.abs(Rt),f=gt,U||Le-b*i>=0&&(b++,l.push(f),j&&h())):(f=gt,j&&h())}}catch(Fe){console.log(Fe)}}function Ze(){_=!0}function ze(){m.current.playing&&l.push(m.current.currentTime,f),f=m.current.currentTime,_=!1}function rt(){G=m.current.duration,G<=20&&(i=G/3),m.current.addEventListener("play",W)}function _t(Fe){Fe.preventDefault(),(0,se.vp)()?(m.current.style.width="100%",m.current.style.height="100%"):m.current.style.cssText=""}function ct(){B()}function st(Fe){if(!Z){C.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const tt=Fe.target.dataset.seek?Fe.target.dataset.seek:Fe.target.value;m.current.currentTime=tt,L.current.value=tt,Q.current.value=tt}function ht(Fe){const tt=Math.round(Fe.offsetX/Fe.target.clientWidth*parseInt(Fe.target.getAttribute("max"),10));Q.current.setAttribute("data-seek",tt);const Et=de(tt);ae.current.textContent=`${Et.hour>0?Et.hour+":":""}${Et.minutes}:${Et.seconds}`;const mt=m.current.getBoundingClientRect();ae.current.style.left=`${Fe.pageX-mt.left}px`}function Ue(Fe){switch(Fe.code){case"Space":Fe.preventDefault(),K();break;case"ArrowRight":if(Fe.preventDefault(),!Z){C.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(m.current.currentTime>=m.current.duration)break;m.current.currentTime=parseInt(m.current.currentTime)+5,Te();break;case"ArrowLeft":if(Fe.preventDefault(),!Z){C.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(m.current.currentTime===0)break;m.current.currentTime=parseInt(m.current.currentTime)-5,Te();break;case"ArrowUp":Fe.preventDefault(),m.current.volume<1&&(m.current.volume=(parseInt(m.current.volume*10)+1)/10);break;case"ArrowDown":Fe.preventDefault(),m.current.volume>0&&(m.current.volume=(parseInt(m.current.volume*10)-1)/10);break}}return pe.current.addEventListener((0,se.gH)(),_t),m.current.addEventListener("canplay",rt),m.current.addEventListener("ended",Re),m.current.addEventListener("seeking",Ze),m.current.addEventListener("seeked",ze),m.current.addEventListener("loadedmetadata",Pe),Q.current.addEventListener("mousemove",ht),Q.current.addEventListener("input",st),m.current.addEventListener("timeupdate",Ge),m.current.addEventListener("pause",ct),m.current.addEventListener("volumechange",c),document.addEventListener("keydown",Ue),()=>{var Fe,tt,Et,mt,xt,Ot,gt,Rt,it,at,Ve,me;(Fe=m.current)==null||Fe.removeEventListener("canplay",rt),(tt=m.current)==null||tt.removeEventListener("play",W),(Et=m.current)==null||Et.removeEventListener("ended",Re),(mt=m.current)==null||mt.removeEventListener("seeking",Ze),(xt=m.current)==null||xt.removeEventListener("seeked",ze),(Ot=Q.current)==null||Ot.removeEventListener("mousemove",ht),(gt=Q.current)==null||gt.removeEventListener("input",st),(Rt=m.current)==null||Rt.removeEventListener("timeupdate",Ge),(it=m.current)==null||it.removeEventListener("pause",ct),(at=m.current)==null||at.removeEventListener("loadedmetadata",Pe),(Ve=m.current)==null||Ve.removeEventListener("volumechange",c),document.removeEventListener("keydown",Ue),(me=m.current)!=null&&me.playing&&(l.push(f,m.current.currentTime),j&&h())}},[m,Ce]),(0,E.useEffect)(()=>{if(m.current.onended=()=>{w(m)},m.current.oncontextmenu=()=>!1,(Ce==null?void 0:Ce.indexOf(".m3u8"))>-1){if(m.current.canPlayType("application/vnd.apple.mpegurl"))m.current.src=Ce;else if(A.ZP.isSupported()){var ie=new A.ZP;ie.loadSource(Ce),ie.attachMedia(m.current)}}},[Ce]);const[p,O]=(0,E.useState)(1),K=()=>{m.current.paused||m.current.ended?m.current.play():m.current.pause(),o()};function ue(){m.current.muted=!m.current.muted,m.current.muted?(Oe.current.setAttribute("data-volume",volume.value),Oe.current.value=0):Oe.current.value=Oe.current.dataset.volume}return E.createElement("div",{style:{position:"relative"},ref:pe},E.createElement("div",{ref:k,className:`${oe.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${oe.animate__loop}`},he&&Xe?Xe.login:" "),E.createElement("div",{className:oe.container},E.createElement("div",{className:oe["video-container"],id:"video-container"},E.createElement("div",{className:oe["playback-animation"],id:"playback-animation"},E.createElement("svg",{className:oe["playback-icons"]},E.createElement("use",{className:"hidden",href:"#play-icon"}),E.createElement("use",{href:"#pause"}))),E.createElement("video",{className:oe.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:m,autoPlay:re}),E.createElement("div",{className:`${oe["video-controls"]} `,id:"video-controls"},E.createElement("div",{className:oe["bottom-controls"]},E.createElement("div",{className:oe["left-controls"]},E.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:K},E.createElement("svg",{className:oe["playback-icons"]},E.createElement("use",{ref:le,href:"#play-icon"}),E.createElement("use",{ref:z,style:{display:"none"},href:"#pause"}))),E.createElement("div",{className:oe.time},E.createElement("time",{id:"time-elapsed",ref:J},"00:00"),E.createElement("span",null," / "),E.createElement("time",{id:"duration",ref:H},"00:00"))),E.createElement("div",{className:oe["right-controls"]},Z&&E.createElement(F.Z,{placement:"top",overlayClassName:oe.rateOverlay,getPopupContainer:ie=>ie.parentNode,menu:{items:[{key:"1",label:E.createElement("span",{onClick:()=>{O(1),m.current.playbackRate=1}},"1.0x")},{key:"2",label:E.createElement("span",{onClick:()=>{O(1.5),m.current.playbackRate=1.5}},"1.5x")},{key:"3",label:E.createElement("span",{onClick:()=>{O(2),m.current.playbackRate=2}},"2.0x")}]}},E.createElement("div",{className:`${oe.controlText} mr5`},"\u500D\u901F")),E.createElement(ce.CopyToClipboard,{text:Ce,onCopy:()=>C.ZP.success("\u590D\u5236\u6210\u529F")},E.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},E.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),E.createElement("div",{className:oe["volume-controls"]},E.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:oe["volume-button"],id:"volume-button",onClick:ue},E.createElement("i",{ref:ye,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),E.createElement("i",{ref:ke,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),E.createElement("i",{ref:Ne,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),E.createElement("input",{className:oe.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Oe,style:{display:"none"},onClick:c})),E.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:oe["fullscreen-button"],onClick:()=>{(0,se.vp)()?(0,se.BU)():(0,se.Dj)(pe.current)}},E.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),E.createElement("div",{className:oe["video-progress"]},E.createElement("progress",{ref:L,value:"0",min:"0"}),E.createElement("input",{className:oe.seek,ref:Q,value:"0",min:"0",type:"range",step:"1"}),E.createElement("div",{className:oe["seek-tooltip"],ref:ae,id:"seek-tooltip"},"00:00"))))),E.createElement("svg",{style:{display:"none"}},E.createElement("defs",null,E.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},E.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),E.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},E.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),E.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},E.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"})),E.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},E.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"})),E.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},E.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"})),E.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},E.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"})),E.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},E.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"})),E.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},E.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"})))))})},57649:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return C}});var E=a(59301);function C(F,Y){const A=(0,E.useRef)();(0,E.useEffect)(()=>{A.current=F}),(0,E.useEffect)(()=>{function u(){A.current()}if(Y!==null){let ce=setInterval(u,Y);return()=>clearInterval(ce)}},[Y])}},49333:function(vt,Me,a){"use strict";a.r(Me),a.d(Me,{default:function(){return o},formatQuery:function(){return l}});var E=a(59301),C=a(91482),F=a(71418),Y={bg:"bg___eq_Aq",container:"container___j770l",widthle:"widthle___ouh1T"},A=a(24334),u=a(20978),ce=a(43418),se=a(13570),oe=a(78673),be=a(64165),de={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"},N=a(57649),d=a(15034),ne=a(25544),ee=a(59301),Z=Object.defineProperty,Ce=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,P=(c,p,O)=>p in c?Z(c,p,{enumerable:!0,configurable:!0,writable:!0,value:O}):c[p]=O,g=(c,p)=>{for(var O in p||(p={}))j.call(p,O)&&P(c,O,p[O]);if(Ce)for(var O of Ce(p))T.call(p,O)&&P(c,O,p[O]);return c},R=(c,p)=>{var O={};for(var K in c)j.call(c,K)&&p.indexOf(K)<0&&(O[K]=c[K]);if(c!=null&&Ce)for(var K of Ce(c))p.indexOf(K)<0&&T.call(c,K)&&(O[K]=c[K]);return O},B=(c,p,O)=>new Promise((K,ue)=>{var ie=Re=>{try{W(O.next(Re))}catch(Te){ue(Te)}},fe=Re=>{try{W(O.throw(Re))}catch(Te){ue(Te)}},W=Re=>Re.done?K(Re.value):Promise.resolve(Re.value).then(ie,fe);W((O=O.apply(c,p)).next())});const $=c=>{var p=c,{videoDetail:O,globalSetting:K,loading:ue,dispatch:ie}=p,fe=R(p,["videoDetail","globalSetting","loading","dispatch"]);const{queryParams:W,selectParams:Re,videoList:Te}=O,{subject_id:V,videoId:Pe}=W,{checkBoxValue:Ge,radioValue:Ze}=Re,ze={videoId:Pe},rt={query:W},_t=(0,E.useRef)(),ct=(0,E.useRef)(),st=(0,E.useRef)(),ht=(0,E.useRef)(5),{video_item:Ue}=O.detail||{};(0,N.Z)(()=>B(void 0,null,function*(){ct.current&&(console.log("videoRef lastUpdatedTime: ",_t.current.getLastUpdatedTime()),console.log(_t.current),yield Fe())}),ht.current*1e3);const Fe=(it=!1)=>{const at=it?{is_f:1}:{};return(0,d.DH)(g(g({},at),{id:ze.videoId,point:_t.current.getLastUpdatedTime(),total:_t.current.getDuration()}))},tt=it=>(it.ed==="1"&&(ct.current=!1,Fe(!0)),!ct.current&&!it.ed&&(ct.current=!0,ht.current=_t.current.getDuration()<=5?1:5,Fe()),ie({type:"userDetail/logWatchHistory",payload:it})),Et=()=>{ct.current=!1},mt=()=>{ct.current=!0},xt=()=>{st.current=5,ce.default.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:ee.createElement("div",{className:"tc font14"},ee.createElement(se.Z,{defaultValue:st.current,onChange:it=>st.current=it,className:de.modalRating})),onOk:()=>B(void 0,null,function*(){if((yield(0,d.jK)({id:ze.videoId,star:st.current})).status===0){const{course_id:at}=(0,ne.oP)();ie({type:"videoDetail/getVideoDetail",payload:{id:ze.videoId,videoId:ze.videoId,course_id:at,subject_id:V}})}})})},Ot=it=>{const at=window.filterVideoSign,Ve=at.findIndex(s=>s.id===Pe);if(Ve===at.length-1)return;const e=at[Ve+1].id,t=at[Ve+1].can_view,n=at[Ve+1].link,r=at[Ve+1].is_public;if(window.checkBoxValue){if(n){window.open(n);return}if(!t){ce.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:ee.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(!r){ce.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:ee.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}ie({type:"videoDetail/handleListItemClick",payload:{videoId:e}}),window.videoTimer=setTimeout(()=>{it.current.play()},2e3)}},gt=(it,at)=>{if(it==="checkBox"){const Ve=at;window.checkBoxValue=Ve,ie({type:"videoDetail/setSelectValue",payload:{radioValue:Ze,checkBoxValue:Ve}});return}ie({type:"videoDetail/setSelectValue",payload:{checkBoxValue:Ge,radioValue:at.target.value}})},Rt=()=>Te.findIndex(Ve=>Ve.id===Pe)===Te.length-1?ee.createElement("div",null,"\u5F53\u524D\u5DF2\u662F\u6700\u540E\u4E00\u4E2A\u89C6\u9891"):ee.createElement("div",null,ee.createElement(oe.Z,{onChange:Ve=>{gt("checkBox",Ve)},defaultChecked:Ge,size:"small"}),ee.createElement("span",{className:de.zdbf},"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891"));return ee.createElement("aside",{className:de.contentWrap},ee.createElement("aside",{className:de.wrap},ee.createElement("header",null),ee.createElement("div",{className:de.title},Ue==null?void 0:Ue.name),!(Ue!=null&&Ue.can_edit)&&!(Ue!=null&&Ue.is_public)?ee.createElement(be.Z,{description:"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85"}):ee.createElement(u.Z,{ref:_t,startTime:Ue==null?void 0:Ue.last_point,src:Ue!=null&&Ue.is_link?Ue==null?void 0:Ue.link:(Ue==null?void 0:Ue.play_url)&&A.Base64.decode(Ue==null?void 0:Ue.play_url),videoId:Ue==null?void 0:Ue.video_id,logWatchHistory:tt,handlePause:Et,handlePlay:mt,allow_skip:Ue==null?void 0:Ue.allow_skip,handlePlayEnded:Ot,toLog:()=>{}}),ee.createElement("div",{className:de.footer},ee.createElement("div",{className:de.footer_left},ee.createElement("div",{className:de.pingfen},"\u8BC4\u5206"),ee.createElement(se.Z,{value:Ue==null?void 0:Ue.star,disabled:!0,className:de.rating,style:{color:"#FFA100",fontSize:12,marginLeft:10}}),ee.createElement("div",{className:de.fenshu},(Ue==null?void 0:Ue.star)||0,"\u5206")),!(Ue!=null&&Ue.can_edit)&&!(Ue!=null&&Ue.is_public)?null:ee.createElement("div",null,ee.createElement("div",{className:de.checkBox},Rt()))),ee.createElement("div",{className:"mt10"},(Ue==null?void 0:Ue.description)&&ee.createElement("span",{className:de.introName},"\u7B80\u4ECB\uFF1A",Ue.description))))};var w=(0,C.connect)(({videoDetail:c,loading:p,globalSetting:O})=>({videoDetail:c,globalSetting:O,loading:p}))($),re=a(8591),X=a(17574),he={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"},D=a(31591),xe=a(44093),x=a(6521),M=a(59301),m=Object.defineProperty,k=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,L=(c,p,O)=>p in c?m(c,p,{enumerable:!0,configurable:!0,writable:!0,value:O}):c[p]=O,H=(c,p)=>{for(var O in p||(p={}))le.call(p,O)&&L(c,O,p[O]);if(z)for(var O of z(p))Q.call(p,O)&&L(c,O,p[O]);return c},J=(c,p)=>k(c,pe(p)),ae=(c,p)=>{var O={};for(var K in c)le.call(c,K)&&p.indexOf(K)<0&&(O[K]=c[K]);if(c!=null&&z)for(var K of z(c))p.indexOf(K)<0&&Q.call(c,K)&&(O[K]=c[K]);return O},ye=(c,p,O)=>new Promise((K,ue)=>{var ie=Re=>{try{W(O.next(Re))}catch(Te){ue(Te)}},fe=Re=>{try{W(O.throw(Re))}catch(Te){ue(Te)}},W=Re=>Re.done?K(Re.value):Promise.resolve(Re.value).then(ie,fe);W((O=O.apply(c,p)).next())});const Ne=[{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",icon:M.createElement("i",{className:"iconfont icon-shixun2 font20"}),bq:M.createElement("span",{style:{border:"1px solid #FF9D18",color:"#FF9D18"},className:he.s1},"\u5B9E\u8BAD")},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",icon:M.createElement("i",{className:"iconfont icon-shipin font20"}),bq:M.createElement("span",{style:{border:"1px solid #9B18FF",color:"#9B18FF"},className:he.s1},"\u89C6\u9891")},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",icon:M.createElement("i",{className:"iconfont icon-jiaoxueanli font20"}),bq:M.createElement("span",{style:{border:"1px solid #3061D0",color:"#3061D0"},className:he.s1},"\u8D44\u6599")},{name:"\u7A7A\u76EE\u5F55",type:"StageCatalog",icon:M.createElement("i",{className:"iconfont icon-kongbai font20"}),bq:M.createElement("span",null)}],ke=c=>{var p=c,{dispatch:O,pathsDetail:K,videoDetail:ue,user:ie}=p,fe=ae(p,["dispatch","pathsDetail","videoDetail","user"]);const{queryParams:W,stages:Re,cust_seq:Te,active:V}=ue,{subject_id:Pe,course_id:Ge}=W,Ze=(0,C.useParams)(),[ze]=(0,C.useSearchParams)(),[rt,_t]=(0,E.useState)([]),[ct,st]=(0,E.useState)([(V==null?void 0:V.id)||Number(Ze.videoId)]),[ht,Ue]=(0,E.useState)("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"),Fe=[".PDF",".DOC",".DOCX",".XLS",".XLSX",".PPT",".PPTX"];(0,E.useEffect)(()=>{O(Pe?{type:"videoDetail/getStageData",payload:{subject_id:Pe,page_type:"video"}}:{type:"videoDetail/getCourseStageData",payload:{coursesId:Ge}})},[]),(0,E.useEffect)(()=>{tt()},[ue==null?void 0:ue.stages]);const tt=()=>{let Ve=rt;Re.forEach((me,e)=>{Ve.push({title:M.createElement("div",{title:me.stage_name,className:he.title},me.stage_name),value:me==null?void 0:me.stage_id,key:me==null?void 0:me.stage_id,icon:M.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Et(me.items||[])})}),_t(Ve)},Et=Ve=>{function me(e){var t;const n=e.children,r=Array.isArray(n)&&n.length>0,s=e==null?void 0:e.id,{name:S,item_type:I,id:Ie}=e,Se=(t=Ne.find(ot=>ot.type===I))==null?void 0:t.bq,De=he.brght,Qe=V.id===Ie?`${De} ${he.active}`:De;return{title:M.createElement("div",{onClick:()=>gt(e),className:De,title:S},Se,M.createElement("div",{className:he.s3},S)),value:s,key:s,icon:M.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:r?n==null?void 0:n.map(ot=>me(ot)):[]}}return Ve==null?void 0:Ve.map(e=>me(e))},mt=(Ve,me)=>ye(void 0,null,function*(){O({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u7A0D\u540E..."}});const e=me?yield(0,xe.BK)({id:Ve}):yield(0,xe.Ir)({id:Ve});if(O({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),e!=null&&e.game_identifier||e!=null&&e.identifier){(0,ne.xg)(me?`/tasks/${e==null?void 0:e.identifier}/jupyter`:`/tasks/${e.game_identifier}`);return}(e==null?void 0:e.status)===2?Ot(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&xt(e==null?void 0:e.message)}),xt=Ve=>{ce.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:M.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Ve,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Ot=Ve=>{Ve=Ve!=null&&Ve.includes(".json")?Ve:`${Ve}.json`,ce.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:M.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>ye(void 0,null,function*(){const me=yield(0,D.L8)({url:Ve});if(!me)return;re.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const e=yield(0,xe.Ir)({id:me.shixun_identifier});if(e!=null&&e.game_identifier){(0,ne.xg)(`/tasks/${e.game_identifier}`);return}(e==null?void 0:e.status)===2?Ot(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&xt(e==null?void 0:e.message)})})},gt=Ve=>{var me,e,t,n,r;if((Ve==null?void 0:Ve.item_type)==="StageCatalog")return;clearTimeout(window.videoTimer);const{id:s,item_type:S,identifier:I,is_jupyter:Ie,url:Se,link:De}=Ve;if(S==="VideoItem"&&!De){if(!((me=ie.userInfo)!=null&&me.admin)&&!((e=ie.userInfo)!=null&&e.business)&&!Ve.can_view){ce.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:M.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}O({type:"videoDetail/handleListItemClick",payload:{videoId:s}}),O({type:"videoDetail/getVideoDetail",payload:J(H({id:s},W),{videoId:s}),callback:Qe=>{if(Qe&&Qe.video_item&&!Qe.video_item.can_edit&&!Ve.is_public){ce.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:M.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}}});return}if(S==="VideoItem"&&De){Ve.link&&(0,d.DH)({is_f:1,id:Ve.id,point:0,total:0}),window.open(De);return}if(S==="Shixun"){mt(I,Ie);return}if(S==="Attachment"){if(De){(0,ne.xg)(De);return}let Qe=(n=Ve==null?void 0:Ve.name)==null?void 0:n.substr((t=Ve==null?void 0:Ve.name)==null?void 0:t.lastIndexOf("."));if(Fe.includes(Qe.toUpperCase())){O({type:"videoDetail/handleListItemClick",payload:{attachmentId:s}});return}else{if(!((r=K.detail)!=null&&r.allow_download)){re.ZP.info("\u6559\u5B66\u8BFE\u4EF6\u4E0D\u652F\u6301\u4E0B\u8F7D");return}(0,ne.FH)(Ve.name,x.Z.API_SERVER+Ve.url);return}}window.open(x.Z.IMG_SERVER+Se)},Rt=Ve=>{let me=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],e=["","\u5341","\u767E","\u5343","\u4E07"];Ve=parseInt(Ve);let t=s=>{let S=s.toString().split("").reverse(),I="";for(var Ie=0;Ie<S.length;Ie++)I=(Ie==0&&S[Ie]==0||Ie>0&&S[Ie]==0&&S[Ie-1]==0?"":me[S[Ie]]+(S[Ie]==0?e[0]:e[Ie]))+I;return I},n=Math.floor(Ve/1e4),r=Ve%1e4;return r.toString().length<4&&(r="0"+r),n?t(n)+"\u4E07"+t(r):t(Ve)},it=(Ve,me,e,t)=>{var n;const{name:r,item_type:s,id:S}=Ve,I=`${me+1}-${e+1}-${t+1}`,Ie=(n=Ne.find(Qe=>Qe.type===s))==null?void 0:n.icon,Se=he.brght,De=V.id===S?`${Se} ${he.active}`:Se;return M.createElement("div",{key:I,onClick:()=>gt(Ve),className:De,style:{paddingLeft:52}},M.createElement("span",{className:he.s1},Ie),!!Te&&M.createElement("span",{className:he.s2},I),M.createElement("span",{className:he.s3},"\u203B ",r))},at=(Ve,me,e)=>{var t;const{name:n,item_type:r,id:s,children:S}=Ve,I=`${me+1}-${e+1}`,Ie=(t=Ne.find(Qe=>Qe.type===r))==null?void 0:t.icon,Se=he.brght,De=V.id===s?`${Se} ${he.active}`:Se;return M.createElement(E.Fragment,{key:I},M.createElement("div",{onClick:()=>gt(Ve),className:De},M.createElement("span",{className:he.s1},Ie),!!Te&&M.createElement("span",{className:he.s2},I),M.createElement("span",{className:he.s3},"\u203B ",n)),!!S.length&&S.map((Qe,ot)=>it(Qe,me,e,ot)))};return M.createElement("aside",{className:he.list},M.createElement("div",{className:he.tabs_style},M.createElement("div",{className:he.tabs_item,onClick:()=>{Ue("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55")}},"\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55",ht=="\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"&&M.createElement("div",{className:he.tabs_item_active}))),M.createElement("div",{className:he.tree_style},(rt==null?void 0:rt.length)>0&&M.createElement(X.default,{selectedKeys:ct,onSelect:(Ve,me)=>{st([...Ve])},blockNode:!0,treeData:rt,defaultExpandAll:!0,className:he.tree_line})))};var Oe=(0,C.connect)(({user:c,videoDetail:p,loading:O,globalSetting:K,pathsDetail:ue})=>({user:c,videoDetail:p,globalSetting:K,loading:O,pathsDetail:ue}))(ke),et=a(99337),Ke=a(59301),je=Object.defineProperty,Xe=Object.defineProperties,G=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,v=(c,p,O)=>p in c?je(c,p,{enumerable:!0,configurable:!0,writable:!0,value:O}):c[p]=O,i=(c,p)=>{for(var O in p||(p={}))f.call(p,O)&&v(c,O,p[O]);if(Le)for(var O of Le(p))y.call(p,O)&&v(c,O,p[O]);return c},b=(c,p)=>Xe(c,G(p)),U=(c,p)=>{var O={};for(var K in c)f.call(c,K)&&p.indexOf(K)<0&&(O[K]=c[K]);if(c!=null&&Le)for(var K of Le(c))p.indexOf(K)<0&&y.call(c,K)&&(O[K]=c[K]);return O},_=(c,p,O)=>new Promise((K,ue)=>{var ie=Re=>{try{W(O.next(Re))}catch(Te){ue(Te)}},fe=Re=>{try{W(O.throw(Re))}catch(Te){ue(Te)}},W=Re=>Re.done?K(Re.value):Promise.resolve(Re.value).then(ie,fe);W((O=O.apply(c,p)).next())});const l=c=>{const{subject_id:p}=c;return{subject_id:p,course_id:p}},h=c=>{var p=c,{videoDetail:O,globalSetting:K,loading:ue,pathsDetail:ie,dispatch:fe}=p,W=U(p,["videoDetail","globalSetting","loading","pathsDetail","dispatch"]),Re,Te;const{queryParams:V,videoList:Pe,attachmentList:Ge,active:Ze}=O,{subject_id:ze,videoId:rt}=V,_t={videoId:rt};(0,E.useEffect)(()=>{if(Ze){const{item_type:ht,id:Ue}=Ze;ht==="VideoItem"&&fe({type:"videoDetail/getVideoDetail",payload:b(i({},V),{id:Ue})})}},[Ze.id]),console.log("---",Ze),(0,E.useEffect)(()=>{ze&&ct()},[]);function ct(){return _(this,null,function*(){const ht=yield fe({type:"pathsDetail/getPathsDetail",payload:{id:ze}})})}(0,E.useEffect)(()=>{var ht,Ue;(0,ne.Dk)((Ue=(ht=O.detail)==null?void 0:ht.video_item)==null?void 0:Ue.name)},[O]);let st={width:1200};return Ze&&Ze.item_type==="Attachment"&&Ze.content_type==="application/pdf"&&(st={width:1250,marginLeft:(document.body.clientWidth-1200)/2}),Ke.createElement(F.Z,{spinning:!1},Ke.createElement("section",{className:Y.bg},Ke.createElement("div",{className:Y.container,style:st},Ke.createElement(Oe,null),Ze&&Ze.item_type==="VideoItem"&&Ke.createElement(w,null),Ze&&Ze.item_type==="Attachment"&&Ze.content_type==="application/pdf"&&Ze.url&&Ke.createElement("div",{className:Y.widthle},Ke.createElement(et.Z,{disabledDownload:!((Re=ie.detail)!=null&&Re.allow_download),type:"pdf",filename:Ze.name,data:x.Z.API_SERVER+Ze.url,style:{position:"absolute",zIndex:1}})),Ze&&Ze.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(Ze.content_type)&&Ze.url&&Ke.createElement("div",{className:Y.widthle},Ke.createElement(et.Z,{disabledDownload:!((Te=ie.detail)!=null&&Te.allow_download),type:"office",data:x.Z.API_SERVER+Ze.url,style:{position:"absolute",zIndex:1}})))))};var o=(0,C.connect)(({videoDetail:c,loading:p,globalSetting:O,pathsDetail:K})=>({videoDetail:c,globalSetting:O,loading:p,pathsDetail:K}))(h)},1427:function(vt,Me,a){"use strict";a.d(Me,{BU:function(){return C},Dj:function(){return E},gH:function(){return F},vp:function(){return Y}});function E(A){try{A.mozRequestFullScreen?A.mozRequestFullScreen():A.webkitRequestFullScreen&&A.webkitRequestFullScreen()}catch(u){console.log(u,":e")}}function C(){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 F=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function Y(){var A=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,u=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",A),window.isFullScreen?window.isFullScreen:A!=null}},9667:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return Ve}});class E{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 r=arguments[n];if(r!=null)for(let s in r)r.hasOwnProperty(s)&&(t[s]=r[s])}return t},typeof self.Promise!="function"&&a(3867).polyfill()}}E.install();var C=E,F=a(86204),Y=a.n(F);class A{static e(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","error",n),A.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}static i(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","info",n),A.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}static w(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","warn",n),A.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}static d(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","debug",n),A.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}static v(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","verbose",n),A.ENABLE_VERBOSE&&console.log(n)}}A.GLOBAL_TAG="flv.js",A.FORCE_GLOBAL_TAG=!1,A.ENABLE_ERROR=!0,A.ENABLE_INFO=!0,A.ENABLE_WARN=!0,A.ENABLE_DEBUG=!0,A.ENABLE_VERBOSE=!0,A.ENABLE_CALLBACK=!1,A.emitter=new(Y());var u=A;class ce{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 se=ce;class oe{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class be extends oe{constructor(e){super(e)}get name(){return"IllegalStateException"}}class de extends oe{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class N extends oe{constructor(e){super(e)}get name(){return"NotImplementedException"}}const d={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},ne={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class ee{constructor(e){this._type=e||"undefined",this._status=d.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=d.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===d.kConnecting||this._status===d.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 N("Unimplemented abstract function!")}abort(){throw new N("Unimplemented abstract function!")}}let Z={};function Ce(){let me=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(me)||/(opr)[\/]([\w.]+)/.exec(me)||/(chrome)[ \/]([\w.]+)/.exec(me)||/(iemobile)[\/]([\w.]+)/.exec(me)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(me)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(me)||/(webkit)[ \/]([\w.]+)/.exec(me)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(me)||/(msie) ([\w.]+)/.exec(me)||me.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(me)||me.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(me)||[],t=/(ipad)/.exec(me)||/(ipod)/.exec(me)||/(windows phone)/.exec(me)||/(iphone)/.exec(me)||/(kindle)/.exec(me)||/(android)/.exec(me)||/(windows)/.exec(me)||/(mac)/.exec(me)||/(linux)/.exec(me)||/(cros)/.exec(me)||[],n={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",majorVersion:e[4]||e[2]||"0",platform:t[0]||""},r={};if(n.browser){r[n.browser]=!0;let s=n.majorVersion.split(".");r.version={major:parseInt(n.majorVersion,10),string:n.version},s.length>1&&(r.version.minor=parseInt(s[1],10)),s.length>2&&(r.version.build=parseInt(s[2],10))}if(n.platform&&(r[n.platform]=!0),(r.chrome||r.opr||r.safari)&&(r.webkit=!0),r.rv||r.iemobile){r.rv&&delete r.rv;let s="msie";n.browser=s,r[s]=!0}if(r.edge){delete r.edge;let s="msedge";n.browser=s,r[s]=!0}if(r.opr){let s="opera";n.browser=s,r[s]=!0}if(r.safari&&r.android){let s="android";n.browser=s,r[s]=!0}r.name=n.browser,r.platform=n.platform;for(let s in Z)Z.hasOwnProperty(s)&&delete Z[s];Object.assign(Z,r)}Ce();var j=Z;class T extends ee{static isSupported(){try{let e=j.msedge&&j.version.minor>=15048,t=j.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 r=this._seekHandler.getConfig(n,t),s=new self.Headers;if(typeof r.headers=="object"){let I=r.headers;for(let Ie in I)I.hasOwnProperty(Ie)&&s.append(Ie,I[Ie])}let S={method:"GET",headers:s,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let I in this._config.headers)s.append(I,this._config.headers[I]);e.cors===!1&&(S.mode="same-origin"),e.withCredentials&&(S.credentials="include"),e.referrerPolicy&&(S.referrerPolicy=e.referrerPolicy),this._status=d.kConnecting,self.fetch(r.url,S).then(I=>{if(this._requestAbort){this._requestAbort=!1,this._status=d.kIdle;return}if(I.ok&&I.status>=200&&I.status<=299){if(I.url!==r.url&&this._onURLRedirect){let Se=this._seekHandler.removeURLParameters(I.url);this._onURLRedirect(Se)}let Ie=I.headers.get("Content-Length");return Ie!=null&&(this._contentLength=parseInt(Ie),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,I.body.getReader())}else if(this._status=d.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:I.status,msg:I.statusText});else throw new oe("FetchStreamLoader: Http code invalid, "+I.status+" "+I.statusText)}).catch(I=>{if(this._status=d.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:I.message});else throw I})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=d.kError;let n=ne.EARLY_EOF,r={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(n,r);else throw new oe(r.msg)}else this._status=d.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=d.kComplete,e.cancel();this._status=d.kBuffering;let n=t.value.buffer,r=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength,this._onDataArrival&&this._onDataArrival(n,r,this._receivedLength),this._pump(e)}}).catch(t=>{if(t.code===11&&j.msedge)return;this._status=d.kError;let n=0,r=null;if((t.code===19||t.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(n=ne.EARLY_EOF,r={code:t.code,msg:"Fetch stream meet Early-EOF"}):(n=ne.EXCEPTION,r={code:t.code,msg:t.message}),this._onError)this._onError(n,r);else throw new oe(r.msg)})}}var P=T;class g extends ee{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 u.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 r=this._seekHandler.getConfig(n,t);this._requestURL=r.url;let s=this._xhr=new XMLHttpRequest;if(s.open("GET",r.url,!0),s.responseType="moz-chunked-arraybuffer",s.onreadystatechange=this._onReadyStateChange.bind(this),s.onprogress=this._onProgress.bind(this),s.onloadend=this._onLoadEnd.bind(this),s.onerror=this._onXhrError.bind(this),e.withCredentials&&(s.withCredentials=!0),typeof r.headers=="object"){let S=r.headers;for(let I in S)S.hasOwnProperty(I)&&s.setRequestHeader(I,S[I])}if(typeof this._config.headers=="object"){let S=this._config.headers;for(let I in S)S.hasOwnProperty(I)&&s.setRequestHeader(I,S[I])}this._status=d.kConnecting,s.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=d.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=d.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new oe("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);else this._status=d.kBuffering}}_onProgress(e){if(this._status===d.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===d.kError)return;this._status=d.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(e){this._status=d.kError;let t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=ne.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=ne.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new oe(n.msg)}}var R=g;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 r=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?r=this._currentRedirectedURL:e.redirectedURL!=null&&(r=e.redirectedURL));let s=this._seekHandler.getConfig(r,t);this._currentRequestURL=s.url;let S=this._reader=new self.MSStreamReader;S.onprogress=this._msrOnProgress.bind(this),S.onload=this._msrOnLoad.bind(this),S.onerror=this._msrOnError.bind(this);let I=this._xhr=new XMLHttpRequest;if(I.open("GET",s.url,!0),I.responseType="ms-stream",I.onreadystatechange=this._xhrOnReadyStateChange.bind(this),I.onerror=this._xhrOnError.bind(this),e.withCredentials&&(I.withCredentials=!0),typeof s.headers=="object"){let Ie=s.headers;for(let Se in Ie)Ie.hasOwnProperty(Se)&&I.setRequestHeader(Se,Ie[Se])}if(typeof this._config.headers=="object"){let Ie=this._config.headers;for(let Se in Ie)Ie.hasOwnProperty(Se)&&I.setRequestHeader(Se,Ie[Se])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,I.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 r=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&r!==this._currentRedirectedURL&&(this._currentRedirectedURL=r,this._onURLRedirect&&this._onURLRedirect(r))}let n=t.getResponseHeader("Content-Length");if(n!=null&&this._contentLength==null){let r=parseInt(n);r>0&&(this._contentLength=r,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 r=n.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=n.byteLength;let s=this._totalRange.from+this._receivedLength;this._receivedLength+=r.byteLength,this._onDataArrival&&this._onDataArrival(r,s,this._receivedLength),n.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${s+r.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 $=null;class w extends ee{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer",e.responseType==="arraybuffer"}catch(e){return u.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 se,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=d.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 r=this._seekHandler.getConfig(n,t);this._currentRequestURL=r.url;let s=this._xhr=new XMLHttpRequest;if(s.open("GET",r.url,!0),s.responseType="arraybuffer",s.onreadystatechange=this._onReadyStateChange.bind(this),s.onprogress=this._onProgress.bind(this),s.onload=this._onLoad.bind(this),s.onerror=this._onXhrError.bind(this),e.withCredentials&&(s.withCredentials=!0),typeof r.headers=="object"){let S=r.headers;for(let I in S)S.hasOwnProperty(I)&&s.setRequestHeader(I,S[I])}if(typeof this._config.headers=="object"){let S=this._config.headers;for(let I in S)S.hasOwnProperty(I)&&s.setRequestHeader(I,S[I])}s.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=d.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=d.kBuffering}else if(this._status=d.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new oe("RangeLoader: Http code invalid, "+t.status+" "+t.statusText)}}_onProgress(e){if(this._status===d.kError)return;if(this._contentLength===null){let n=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,n=!0;let r=e.total;this._internalAbort(),r!=null&r!==0&&(this._totalLength=r)}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,r=0,s=0,S=n;if(e<t[0])return t[0];for(;s<=S;){if(r=s+Math.floor((S-s)/2),r===n||e>=t[r]&&e<t[r+1])return t[r];t[r]<e?s=r+1:S=r-1}}_onLoad(e){if(this._status===d.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 S=this._normalizeSpeed(t);this._currentSpeedNormalized!==S&&(this._currentSpeedNormalized=S,this._currentChunkSizeKB=S)}let n=e.target.response,r=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength;let s=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():s=!0,this._onDataArrival&&this._onDataArrival(n,r,this._receivedLength),s&&(this._status=d.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(e){this._status=d.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=ne.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=ne.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new oe(n.msg)}}var re=w;class X extends ee{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=d.kConnecting}catch(t){this._status=d.kError;let n={code:t.code,msg:t.message};if(this._onError)this._onError(ne.EXCEPTION,n);else throw new oe(n.msg)}}abort(){let e=this._ws;e&&(e.readyState===0||e.readyState===1)&&(this._requestAbort=!0,e.close()),this._ws=null,this._status=d.kComplete}_onWebSocketOpen(e){this._status=d.kBuffering}_onWebSocketClose(e){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=d.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=d.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,t);else throw new oe(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=d.kError;let t={code:e.code,msg:e.message};if(this._onError)this._onError(ne.EXCEPTION,t);else throw new oe(t.msg)}}var he=X;class D{constructor(e){this._zeroStart=e||!1}getConfig(e,t){let n={};if(t.from!==0||t.to!==-1){let r;t.to!==-1?r=`bytes=${t.from.toString()}-${t.to.toString()}`:r=`bytes=${t.from.toString()}-`,n.Range=r}else this._zeroStart&&(n.Range="bytes=0-");return{url:e,headers:n}}removeURLParameters(e){return e}}var xe=D;class x{constructor(e,t){this._startName=e,this._endName=t}getConfig(e,t){let n=e;if(t.from!==0||t.to!==-1){let r=!0;n.indexOf("?")===-1&&(n+="?",r=!1),r&&(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,r=e.indexOf("?");r!==-1&&(n=e.substring(r+1));let s="";if(n!=null&&n.length>0){let S=n.split("&");for(let I=0;I<S.length;I++){let Ie=S[I].split("="),Se=I>0;Ie[0]!==this._startName&&Ie[0]!==this._endName&&(Se&&(s+="&"),s+=S[I])}}return s.length===0?t:t+"?"+s}}var M=x;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 se,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===re?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if(e.seekType==="range")this._seekHandler=new xe(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new M(t,n)}else if(e.seekType==="custom"){if(typeof e.customSeekHandler!="function")throw new de("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new de(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=he;else if(P.isSupported())this._loaderClass=P;else if(R.isSupported())this._loaderClass=R;else if(re.isSupported())this._loaderClass=re;else throw new oe("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 de("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 r=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,t).set(r,0)}this._stashBuffer=n,this._bufferSize=t}_normalizeSpeed(e){let t=this._speedNormalizeList,n=t.length-1,r=0,s=0,S=n;if(e<t[0])return t[0];for(;s<=S;){if(r=s+Math.floor((S-s)/2),r===n||e>=t[r]&&e<t[r+1])return t[r];t[r]<e?s=r+1:S=r-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 be("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 r=this._speedSampler.lastSecondKBps;if(r!==0){let s=this._normalizeSpeed(r);this._speedNormalized!==s&&(this._speedNormalized=s,this._adjustStashSize(s))}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 s=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let S=this._stashBuffer.slice(0,this._stashUsed),I=this._dispatchChunks(S,this._stashByteStart);if(I<S.byteLength){if(I>0){let Ie=new Uint8Array(S,I);s.set(Ie,0),this._stashUsed=Ie.byteLength,this._stashByteStart+=I}}else this._stashUsed=0,this._stashByteStart+=I;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),s=new Uint8Array(this._stashBuffer,0,this._bufferSize)),s.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let S=this._dispatchChunks(e,t);if(S<e.byteLength){let I=e.byteLength-S;I>this._bufferSize&&(this._expandBuffer(I),s=new Uint8Array(this._stashBuffer,0,this._bufferSize)),s.set(new Uint8Array(e,S),0),this._stashUsed+=I,this._stashByteStart=t+S}}}else if(this._stashUsed===0){let s=this._dispatchChunks(e,t);if(s<e.byteLength){let S=e.byteLength-s;S>this._bufferSize&&this._expandBuffer(S),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,s),0),this._stashUsed+=S,this._stashByteStart=t+s}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let s=new Uint8Array(this._stashBuffer,0,this._bufferSize);s.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let S=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(S<this._stashUsed&&S>0){let I=new Uint8Array(this._stashBuffer,S);s.set(I,0)}this._stashUsed-=S,this._stashByteStart+=S}}_flushStashBuffer(e){if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),r=t.byteLength-n;if(n<t.byteLength)if(e)u.w(this.TAG,`${r} bytes unconsumed data remain when flush buffer, dropped`);else{if(n>0){let s=new Uint8Array(this._stashBuffer,0,this._bufferSize),S=new Uint8Array(t,n);s.set(S,0),this._stashUsed=S.byteLength,this._stashByteStart+=n}return 0}return this._stashUsed=0,this._stashByteStart=0,r}return 0}_onLoaderComplete(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(e,t){switch(u.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=ne.UNRECOVERABLE_EARLY_EOF),e){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let n=this._currentRange.to+1;n<this._totalLength&&(u.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1));return}e=ne.UNRECOVERABLE_EARLY_EOF;break}case ne.UNRECOVERABLE_EARLY_EOF:case ne.CONNECTING_TIMEOUT:case ne.HTTP_STATUS_CODE_INVALID:case ne.EXCEPTION:break}if(this._onError)this._onError(e,t);else throw new oe("IOException: "+t.msg)}}var k=m;const pe={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 z(){return Object.assign({},pe)}class le{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let e=new k({},z()),t=e.loaderType;return e.destroy(),t=="fetch-stream-loader"||t=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let e=new k({},z()),t=e.loaderType;return e.destroy(),t}static supportNativeMediaPlayback(e){le.videoElement==null&&(le.videoElement=window.document.createElement("video"));let t=le.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=le.supportMSEH264Playback(),e.networkStreamIO=le.supportNetworkStreamIO(),e.networkLoaderName=le.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=le.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=le.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=le.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var Q=le,H={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 J{static get forceGlobalTag(){return u.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){u.FORCE_GLOBAL_TAG=e,J._notifyChange()}static get globalTag(){return u.GLOBAL_TAG}static set globalTag(e){u.GLOBAL_TAG=e,J._notifyChange()}static get enableAll(){return u.ENABLE_VERBOSE&&u.ENABLE_DEBUG&&u.ENABLE_INFO&&u.ENABLE_WARN&&u.ENABLE_ERROR}static set enableAll(e){u.ENABLE_VERBOSE=e,u.ENABLE_DEBUG=e,u.ENABLE_INFO=e,u.ENABLE_WARN=e,u.ENABLE_ERROR=e,J._notifyChange()}static get enableDebug(){return u.ENABLE_DEBUG}static set enableDebug(e){u.ENABLE_DEBUG=e,J._notifyChange()}static get enableVerbose(){return u.ENABLE_VERBOSE}static set enableVerbose(e){u.ENABLE_VERBOSE=e,J._notifyChange()}static get enableInfo(){return u.ENABLE_INFO}static set enableInfo(e){u.ENABLE_INFO=e,J._notifyChange()}static get enableWarn(){return u.ENABLE_WARN}static set enableWarn(e){u.ENABLE_WARN=e,J._notifyChange()}static get enableError(){return u.ENABLE_ERROR}static set enableError(e){u.ENABLE_ERROR=e,J._notifyChange()}static getConfig(){return{globalTag:u.GLOBAL_TAG,forceGlobalTag:u.FORCE_GLOBAL_TAG,enableVerbose:u.ENABLE_VERBOSE,enableDebug:u.ENABLE_DEBUG,enableInfo:u.ENABLE_INFO,enableWarn:u.ENABLE_WARN,enableError:u.ENABLE_ERROR,enableCallback:u.ENABLE_CALLBACK}}static applyConfig(e){u.GLOBAL_TAG=e.globalTag,u.FORCE_GLOBAL_TAG=e.forceGlobalTag,u.ENABLE_VERBOSE=e.enableVerbose,u.ENABLE_DEBUG=e.enableDebug,u.ENABLE_INFO=e.enableInfo,u.ENABLE_WARN=e.enableWarn,u.ENABLE_ERROR=e.enableError,u.ENABLE_CALLBACK=e.enableCallback}static _notifyChange(){let e=J.emitter;if(e.listenerCount("change")>0){let t=J.getConfig();e.emit("change",t)}}static registerListener(e){J.emitter.addListener("change",e)}static removeListener(e){J.emitter.removeListener("change",e)}static addLogListener(e){u.emitter.addListener("log",e),u.emitter.listenerCount("log")>0&&(u.ENABLE_CALLBACK=!0,J._notifyChange())}static removeLogListener(e){u.emitter.removeListener("log",e),u.emitter.listenerCount("log")===0&&(u.ENABLE_CALLBACK=!1,J._notifyChange())}}J.emitter=new(Y());var ae=J;class ye{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,r=e.length-1,s=0,S=0,I=r;for(t<e[0]&&(n=0,S=I+1);S<=I;)if(s=S+Math.floor((I-S)/2),s===r||t>=e[s]&&t<e[s+1]){n=s;break}else e[s]<t?S=s+1:I=s-1;return n}}var Ne=ye;function ke(me,e,t){let n=me;if(e+t<n.length){for(;t--;)if((n[++e]&192)!==128)return!1;return!0}else return!1}function Oe(me){let e=[],t=me,n=0,r=me.length;for(;n<r;){if(t[n]<128){e.push(String.fromCharCode(t[n])),++n;continue}else if(!(t[n]<192)){if(t[n]<224){if(ke(t,n,1)){let s=(t[n]&31)<<6|t[n+1]&63;if(s>=128){e.push(String.fromCharCode(s&65535)),n+=2;continue}}}else if(t[n]<240){if(ke(t,n,2)){let s=(t[n]&15)<<12|(t[n+1]&63)<<6|t[n+2]&63;if(s>=2048&&(s&63488)!==55296){e.push(String.fromCharCode(s&65535)),n+=3;continue}}}else if(t[n]<248&&ke(t,n,3)){let s=(t[n]&7)<<18|(t[n+1]&63)<<12|(t[n+2]&63)<<6|t[n+3]&63;if(s>65536&&s<1114112){s-=65536,e.push(String.fromCharCode(s>>>10|55296)),e.push(String.fromCharCode(s&1023|56320)),n+=4;continue}}}e.push("\uFFFD"),++n}return e.join("")}var et=Oe;let Ke=function(){let me=new ArrayBuffer(2);return new DataView(me).setInt16(0,256,!0),new Int16Array(me)[0]===256}();class je{static parseScriptData(e,t,n){let r={};try{let s=je.parseValue(e,t,n),S=je.parseValue(e,t+s.size,n-s.size);r[s.data]=S.data}catch(s){u.e("AMF",s.toString())}return r}static parseObject(e,t,n){if(n<3)throw new be("Data not enough when parse ScriptDataObject");let r=je.parseString(e,t,n),s=je.parseValue(e,t+r.size,n-r.size),S=s.objectEnd;return{data:{name:r.data,value:s.data},size:r.size+s.size,objectEnd:S}}static parseVariable(e,t,n){return je.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new be("Data not enough when parse String");let s=new DataView(e,t,n).getUint16(0,!Ke),S;return s>0?S=et(new Uint8Array(e,t+2,s)):S="",{data:S,size:2+s}}static parseLongString(e,t,n){if(n<4)throw new be("Data not enough when parse LongString");let s=new DataView(e,t,n).getUint32(0,!Ke),S;return s>0?S=et(new Uint8Array(e,t+4,s)):S="",{data:S,size:4+s}}static parseDate(e,t,n){if(n<10)throw new be("Data size invalid when parse Date");let r=new DataView(e,t,n),s=r.getFloat64(0,!Ke),S=r.getInt16(8,!Ke);return s+=S*60*1e3,{data:new Date(s),size:10}}static parseValue(e,t,n){if(n<1)throw new be("Data not enough when parse Value");let r=new DataView(e,t,n),s=1,S=r.getUint8(0),I,Ie=!1;try{switch(S){case 0:I=r.getFloat64(1,!Ke),s+=8;break;case 1:{I=!!r.getUint8(1),s+=1;break}case 2:{let Se=je.parseString(e,t+1,n-1);I=Se.data,s+=Se.size;break}case 3:{I={};let Se=0;for((r.getUint32(n-4,!Ke)&16777215)===9&&(Se=3);s<n-4;){let De=je.parseObject(e,t+s,n-s-Se);if(De.objectEnd)break;I[De.data.name]=De.data.value,s+=De.size}s<=n-3&&(r.getUint32(s-1,!Ke)&16777215)===9&&(s+=3);break}case 8:{I={},s+=4;let Se=0;for((r.getUint32(n-4,!Ke)&16777215)===9&&(Se=3);s<n-8;){let De=je.parseVariable(e,t+s,n-s-Se);if(De.objectEnd)break;I[De.data.name]=De.data.value,s+=De.size}s<=n-3&&(r.getUint32(s-1,!Ke)&16777215)===9&&(s+=3);break}case 9:I=void 0,s=1,Ie=!0;break;case 10:{I=[];let Se=r.getUint32(1,!Ke);s+=4;for(let De=0;De<Se;De++){let Qe=je.parseValue(e,t+s,n-s);I.push(Qe.data),s+=Qe.size}break}case 11:{let Se=je.parseDate(e,t+1,n-1);I=Se.data,s+=Se.size;break}case 12:{let Se=je.parseString(e,t+1,n-1);I=Se.data,s+=Se.size;break}default:s=n,u.w("AMF","Unsupported AMF value type "+S)}}catch(Se){u.e("AMF",Se.toString())}return{data:I,size:s,objectEnd:Ie}}}var Xe=je;class G{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 be("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 de("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let S=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,S}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 r=Math.min(n,this._current_word_bits_left),s=this._current_word>>>32-r;return this._current_word<<=r,this._current_word_bits_left-=r,t=t<<r|s,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 Le=G;class f{static _ebsp2rbsp(e){let t=e,n=t.byteLength,r=new Uint8Array(n),s=0;for(let S=0;S<n;S++)S>=2&&t[S]===3&&t[S-1]===0&&t[S-2]===0||(r[s]=t[S],s++);return new Uint8Array(r.buffer,0,s)}static parseSPS(e){let t=f._ebsp2rbsp(e),n=new Le(t);n.readByte();let r=n.readByte();n.readByte();let s=n.readByte();n.readUEG();let S=f.getProfileString(r),I=f.getLevelString(s),Ie=1,Se=420,De=[0,420,422,444],Qe=8;if((r===100||r===110||r===122||r===244||r===44||r===83||r===86||r===118||r===128||r===138||r===144)&&(Ie=n.readUEG(),Ie===3&&n.readBits(1),Ie<=3&&(Se=De[Ie]),Qe=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let bt=Ie!==3?8:12;for(let yt=0;yt<bt;yt++)n.readBool()&&(yt<6?f._skipScalingList(n,16):f._skipScalingList(n,64))}n.readUEG();let ot=n.readUEG();if(ot===0)n.readUEG();else if(ot===1){n.readBits(1),n.readSEG(),n.readSEG();let bt=n.readUEG();for(let yt=0;yt<bt;yt++)n.readSEG()}let Be=n.readUEG();n.readBits(1);let ut=n.readUEG(),We=n.readUEG(),we=n.readBits(1);we===0&&n.readBits(1),n.readBits(1);let $e=0,nt=0,Je=0,pt=0;n.readBool()&&($e=n.readUEG(),nt=n.readUEG(),Je=n.readUEG(),pt=n.readUEG());let It=1,Ye=1,St=0,te=!0,q=0,ve=0;if(n.readBool()){if(n.readBool()){let bt=n.readByte(),yt=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],wt=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];bt>0&&bt<16?(It=yt[bt-1],Ye=wt[bt-1]):bt===255&&(It=n.readByte()<<8|n.readByte(),Ye=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 bt=n.readBits(32),yt=n.readBits(32);te=n.readBool(),q=yt,ve=bt*2,St=q/ve}}let ge=1;(It!==1||Ye!==1)&&(ge=It/Ye);let Ee=0,_e=0;if(Ie===0)Ee=1,_e=2-we;else{let bt=Ie===3?1:2,yt=Ie===1?2:1;Ee=bt,_e=yt*(2-we)}let He=(ut+1)*16,ft=(2-we)*((We+1)*16);He-=($e+nt)*Ee,ft-=(Je+pt)*_e;let dt=Math.ceil(He*ge);return n.destroy(),n=null,{profile_string:S,level_string:I,bit_depth:Qe,ref_frames:Be,chroma_format:Se,chroma_format_string:f.getChromaFormatString(Se),frame_rate:{fixed:te,fps:St,fps_den:ve,fps_num:q},sar_ratio:{width:It,height:Ye},codec_size:{width:He,height:ft},present_size:{width:dt,height:ft}}}static _skipScalingList(e,t){let n=8,r=8,s=0;for(let S=0;S<t;S++)r!==0&&(s=e.readSEG(),r=(n+s+256)%256),n=r===0?n:r}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 y=f,i={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function b(me){return me>>>8&255|(me&255)<<8}function U(me){return(me&4278190080)>>>24|(me&16711680)>>>8|(me&65280)<<8|(me&255)<<24}function _(me,e){return me[e]<<24|me[e+1]<<16|me[e+2]<<8|me[e+3]}class l{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 Ne,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 r=(t[4]&4)>>>2!==0,s=(t[4]&1)!==0,S=_(t,5);return S<9?n:{match:!0,consumed:S,dataOffset:S,hasAudioTrack:r,hasVideoTrack:s}}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 Ne}_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 be("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let n=0,r=this._littleEndian;if(t===0)if(e.byteLength>13)n=l.probe(e).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,t+n!==this._dataOffset&&u.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(e,n).getUint32(0,!r)!==0&&u.w(this.TAG,"PrevTagSize0 !== 0 !!!"),n+=4);n<e.byteLength;){this._dispatch=!0;let s=new DataView(e,n);if(n+11+4>e.byteLength)break;let S=s.getUint8(0),I=s.getUint32(0,!r)&16777215;if(n+11+I+4>e.byteLength)break;if(S!==8&&S!==9&&S!==18){u.w(this.TAG,`Unsupported tag type ${S}, skipped`),n+=11+I+4;continue}let Ie=s.getUint8(4),Se=s.getUint8(5),De=s.getUint8(6),Qe=s.getUint8(7),ot=De|Se<<8|Ie<<16|Qe<<24;(s.getUint32(7,!r)&16777215)!==0&&u.w(this.TAG,"Meet tag which has StreamID != 0!");let ut=n+11;switch(S){case 8:this._parseAudioData(e,ut,I,ot);break;case 9:this._parseVideoData(e,ut,I,ot,t+n);break;case 18:this._parseScriptData(e,ut,I);break}let We=s.getUint32(11+I,!r);We!==11+I&&u.w(this.TAG,`Invalid PrevTagSize ${We}`),n+=11+I+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),n}_parseScriptData(e,t,n){let r=Xe.parseScriptData(e,t,n);if(r.hasOwnProperty("onMetaData")){if(r.onMetaData==null||typeof r.onMetaData!="object"){u.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&u.w(this.TAG,"Found another onMetaData tag!"),this._metadata=r;let s=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},s)),typeof s.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=s.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof s.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=s.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof s.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=s.audiodatarate),typeof s.videodatarate=="number"&&(this._mediaInfo.videoDataRate=s.videodatarate),typeof s.width=="number"&&(this._mediaInfo.width=s.width),typeof s.height=="number"&&(this._mediaInfo.height=s.height),typeof s.duration=="number"){if(!this._durationOverrided){let S=Math.floor(s.duration*this._timescale);this._duration=S,this._mediaInfo.duration=S}}else this._mediaInfo.duration=0;if(typeof s.framerate=="number"){let S=Math.floor(s.framerate*1e3);if(S>0){let I=S/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=I,this._referenceFrameRate.fps_num=S,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=I}}if(typeof s.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let S=s.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(S),s.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=s,u.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(r).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},r))}_parseKeyframesIndex(e){let t=[],n=[];for(let r=1;r<e.times.length;r++){let s=this._timestampBase+Math.floor(e.times[r]*1e3);t.push(s),n.push(e.filepositions[r])}return{times:t,filepositions:n}}_parseAudioData(e,t,n,r){if(n<=1){u.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let s=this._littleEndian,I=new DataView(e,t,n).getUint8(0),Ie=I>>>4;if(Ie!==2&&Ie!==10){this._onError(i.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Ie);return}let Se=0,De=(I&12)>>>2;if(De>=0&&De<=4)Se=this._flvSoundRateTable[De];else{this._onError(i.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+De);return}let Qe=(I&2)>>>1,ot=I&1,Be=this._audioMetadata,ut=this._audioTrack;if(Be||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Be=this._audioMetadata={},Be.type="audio",Be.id=ut.id,Be.timescale=this._timescale,Be.duration=this._duration,Be.audioSampleRate=Se,Be.channelCount=ot===0?1:2),Ie===10){let We=this._parseAACAudioData(e,t+1,n-1);if(We==null)return;if(We.packetType===0){Be.config&&u.w(this.TAG,"Found another AudioSpecificConfig!");let we=We.data;Be.audioSampleRate=we.samplingRate,Be.channelCount=we.channelCount,Be.codec=we.codec,Be.originalCodec=we.originalCodec,Be.config=we.config,Be.refSampleDuration=1024/Be.audioSampleRate*Be.timescale,u.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",Be);let $e=this._mediaInfo;$e.audioCodec=Be.originalCodec,$e.audioSampleRate=Be.audioSampleRate,$e.audioChannelCount=Be.channelCount,$e.hasVideo?$e.videoCodec!=null&&($e.mimeType='video/x-flv; codecs="'+$e.videoCodec+","+$e.audioCodec+'"'):$e.mimeType='video/x-flv; codecs="'+$e.audioCodec+'"',$e.isComplete()&&this._onMediaInfo($e)}else if(We.packetType===1){let we=this._timestampBase+r,$e={unit:We.data,length:We.data.byteLength,dts:we,pts:we};ut.samples.push($e),ut.length+=We.data.length}else u.e(this.TAG,`Flv: Unsupported AAC data type ${We.packetType}`)}else if(Ie===2){if(!Be.codec){let nt=this._parseMP3AudioData(e,t+1,n-1,!0);if(nt==null)return;Be.audioSampleRate=nt.samplingRate,Be.channelCount=nt.channelCount,Be.codec=nt.codec,Be.originalCodec=nt.originalCodec,Be.refSampleDuration=1152/Be.audioSampleRate*Be.timescale,u.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Be);let Je=this._mediaInfo;Je.audioCodec=Be.codec,Je.audioSampleRate=Be.audioSampleRate,Je.audioChannelCount=Be.channelCount,Je.audioDataRate=nt.bitRate,Je.hasVideo?Je.videoCodec!=null&&(Je.mimeType='video/x-flv; codecs="'+Je.videoCodec+","+Je.audioCodec+'"'):Je.mimeType='video/x-flv; codecs="'+Je.audioCodec+'"',Je.isComplete()&&this._onMediaInfo(Je)}let We=this._parseMP3AudioData(e,t+1,n-1,!1);if(We==null)return;let we=this._timestampBase+r,$e={unit:We,length:We.byteLength,dts:we,pts:we};ut.samples.push($e),ut.length+=We.length}}_parseAACAudioData(e,t,n){if(n<=1){u.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let r={},s=new Uint8Array(e,t,n);return r.packetType=s[0],s[0]===0?r.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):r.data=s.subarray(1),r}_parseAACAudioSpecificConfig(e,t,n){let r=new Uint8Array(e,t,n),s=null,S=0,I=0,Ie=null,Se=0,De=null;if(S=I=r[0]>>>3,Se=(r[0]&7)<<1|r[1]>>>7,Se<0||Se>=this._mpegSamplingRates.length){this._onError(i.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Qe=this._mpegSamplingRates[Se],ot=(r[1]&120)>>>3;if(ot<0||ot>=8){this._onError(i.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}S===5&&(De=(r[1]&7)<<1|r[2]>>>7,Ie=(r[2]&124)>>>2);let Be=self.navigator.userAgent.toLowerCase();return Be.indexOf("firefox")!==-1?Se>=6?(S=5,s=new Array(4),De=Se-3):(S=2,s=new Array(2),De=Se):Be.indexOf("android")!==-1?(S=2,s=new Array(2),De=Se):(S=5,De=Se,s=new Array(4),Se>=6?De=Se-3:ot===1&&(S=2,s=new Array(2),De=Se)),s[0]=S<<3,s[0]|=(Se&15)>>>1,s[1]=(Se&15)<<7,s[1]|=(ot&15)<<3,S===5&&(s[1]|=(De&15)>>>1,s[2]=(De&1)<<7,s[2]|=8,s[3]=0),{config:s,samplingRate:Qe,channelCount:ot,codec:"mp4a.40."+S,originalCodec:"mp4a.40."+I}}_parseMP3AudioData(e,t,n,r){if(n<4){u.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let s=this._littleEndian,S=new Uint8Array(e,t,n),I=null;if(r){if(S[0]!==255)return;let Ie=S[1]>>>3&3,Se=(S[1]&6)>>1,De=(S[2]&240)>>>4,Qe=(S[2]&12)>>>2,Be=(S[3]>>>6&3)!==3?2:1,ut=0,We=0,we=34,$e="mp3";switch(Ie){case 0:ut=this._mpegAudioV25SampleRateTable[Qe];break;case 2:ut=this._mpegAudioV20SampleRateTable[Qe];break;case 3:ut=this._mpegAudioV10SampleRateTable[Qe];break}switch(Se){case 1:we=34,De<this._mpegAudioL3BitRateTable.length&&(We=this._mpegAudioL3BitRateTable[De]);break;case 2:we=33,De<this._mpegAudioL2BitRateTable.length&&(We=this._mpegAudioL2BitRateTable[De]);break;case 3:we=32,De<this._mpegAudioL1BitRateTable.length&&(We=this._mpegAudioL1BitRateTable[De]);break}I={bitRate:We,samplingRate:ut,channelCount:Be,codec:$e,originalCodec:$e}}else I=S;return I}_parseVideoData(e,t,n,r,s){if(n<=1){u.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let S=new Uint8Array(e,t,n)[0],I=(S&240)>>>4,Ie=S&15;if(Ie!==7){this._onError(i.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${Ie}`);return}this._parseAVCVideoPacket(e,t+1,n-1,r,s,I)}_parseAVCVideoPacket(e,t,n,r,s,S){if(n<4){u.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let I=this._littleEndian,Ie=new DataView(e,t,n),Se=Ie.getUint8(0),Qe=(Ie.getUint32(0,!I)&16777215)<<8>>8;if(Se===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(Se===1)this._parseAVCVideoData(e,t+4,n-4,r,s,S,Qe);else if(Se!==2){this._onError(i.FORMAT_ERROR,`Flv: Invalid video packet type ${Se}`);return}}_parseAVCDecoderConfigurationRecord(e,t,n){if(n<7){u.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let r=this._videoMetadata,s=this._videoTrack,S=this._littleEndian,I=new DataView(e,t,n);r?typeof r.avcc!="undefined"&&u.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),r=this._videoMetadata={},r.type="video",r.id=s.id,r.timescale=this._timescale,r.duration=this._duration);let Ie=I.getUint8(0),Se=I.getUint8(1),De=I.getUint8(2),Qe=I.getUint8(3);if(Ie!==1||Se===0){this._onError(i.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(I.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(i.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let ot=I.getUint8(5)&31;if(ot===0){this._onError(i.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else ot>1&&u.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${ot}`);let Be=6;for(let We=0;We<ot;We++){let we=I.getUint16(Be,!S);if(Be+=2,we===0)continue;let $e=new Uint8Array(e,t+Be,we);Be+=we;let nt=y.parseSPS($e);if(We!==0)continue;r.codecWidth=nt.codec_size.width,r.codecHeight=nt.codec_size.height,r.presentWidth=nt.present_size.width,r.presentHeight=nt.present_size.height,r.profile=nt.profile_string,r.level=nt.level_string,r.bitDepth=nt.bit_depth,r.chromaFormat=nt.chroma_format,r.sarRatio=nt.sar_ratio,r.frameRate=nt.frame_rate,(nt.frame_rate.fixed===!1||nt.frame_rate.fps_num===0||nt.frame_rate.fps_den===0)&&(r.frameRate=this._referenceFrameRate);let Je=r.frameRate.fps_den,pt=r.frameRate.fps_num;r.refSampleDuration=r.timescale*(Je/pt);let Tt=$e.subarray(1,4),It="avc1.";for(let St=0;St<3;St++){let te=Tt[St].toString(16);te.length<2&&(te="0"+te),It+=te}r.codec=It;let Ye=this._mediaInfo;Ye.width=r.codecWidth,Ye.height=r.codecHeight,Ye.fps=r.frameRate.fps,Ye.profile=r.profile,Ye.level=r.level,Ye.refFrames=nt.ref_frames,Ye.chromaFormat=nt.chroma_format_string,Ye.sarNum=r.sarRatio.width,Ye.sarDen=r.sarRatio.height,Ye.videoCodec=It,Ye.hasAudio?Ye.audioCodec!=null&&(Ye.mimeType='video/x-flv; codecs="'+Ye.videoCodec+","+Ye.audioCodec+'"'):Ye.mimeType='video/x-flv; codecs="'+Ye.videoCodec+'"',Ye.isComplete()&&this._onMediaInfo(Ye)}let ut=I.getUint8(Be);if(ut===0){this._onError(i.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else ut>1&&u.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${ut}`);Be++;for(let We=0;We<ut;We++){let we=I.getUint16(Be,!S);Be+=2,we!==0&&(Be+=we)}r.avcc=new Uint8Array(n),r.avcc.set(new Uint8Array(e,t,n),0),u.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",r)}_parseAVCVideoData(e,t,n,r,s,S,I){let Ie=this._littleEndian,Se=new DataView(e,t,n),De=[],Qe=0,ot=0;const Be=this._naluLengthSize;let ut=this._timestampBase+r,We=S===1;for(;ot<n;){if(ot+4>=n){u.w(this.TAG,`Malformed Nalu near timestamp ${ut}, offset = ${ot}, dataSize = ${n}`);break}let we=Se.getUint32(ot,!Ie);if(Be===3&&(we>>>=8),we>n-Be){u.w(this.TAG,`Malformed Nalus near timestamp ${ut}, NaluSize > DataSize!`);return}let $e=Se.getUint8(ot+Be)&31;$e===5&&(We=!0);let nt=new Uint8Array(e,t+ot,Be+we),Je={type:$e,data:nt};De.push(Je),Qe+=nt.byteLength,ot+=Be+we}if(De.length){let we=this._videoTrack,$e={units:De,length:Qe,isKeyframe:We,dts:ut,cts:I,pts:ut+I};We&&($e.fileposition=s),we.samples.push($e),we.length+=Qe}}}var h=l;class o{static init(){o.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 o.types)o.types.hasOwnProperty(t)&&(o.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=o.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,r=Array.prototype.slice.call(arguments,1),s=r.length;for(let I=0;I<s;I++)t+=r[I].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 S=8;for(let I=0;I<s;I++)n.set(r[I],S),S+=r[I].byteLength;return n}static generateInitSegment(e){let t=o.box(o.types.ftyp,o.constants.FTYP),n=o.moov(e),r=new Uint8Array(t.byteLength+n.byteLength);return r.set(t,0),r.set(n,t.byteLength),r}static moov(e){let t=o.mvhd(e.timescale,e.duration),n=o.trak(e),r=o.mvex(e);return o.box(o.types.moov,t,n,r)}static mvhd(e,t){return o.box(o.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 o.box(o.types.trak,o.tkhd(e),o.mdia(e))}static tkhd(e){let t=e.id,n=e.duration,r=e.presentWidth,s=e.presentHeight;return o.box(o.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,r>>>8&255,r&255,0,0,s>>>8&255,s&255,0,0]))}static mdia(e){return o.box(o.types.mdia,o.mdhd(e),o.hdlr(e),o.minf(e))}static mdhd(e){let t=e.timescale,n=e.duration;return o.box(o.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=o.constants.HDLR_AUDIO:t=o.constants.HDLR_VIDEO,o.box(o.types.hdlr,t)}static minf(e){let t=null;return e.type==="audio"?t=o.box(o.types.smhd,o.constants.SMHD):t=o.box(o.types.vmhd,o.constants.VMHD),o.box(o.types.minf,t,o.dinf(),o.stbl(e))}static dinf(){return o.box(o.types.dinf,o.box(o.types.dref,o.constants.DREF))}static stbl(e){return o.box(o.types.stbl,o.stsd(e),o.box(o.types.stts,o.constants.STTS),o.box(o.types.stsc,o.constants.STSC),o.box(o.types.stsz,o.constants.STSZ),o.box(o.types.stco,o.constants.STCO))}static stsd(e){return e.type==="audio"?e.codec==="mp3"?o.box(o.types.stsd,o.constants.STSD_PREFIX,o.mp3(e)):o.box(o.types.stsd,o.constants.STSD_PREFIX,o.mp4a(e)):o.box(o.types.stsd,o.constants.STSD_PREFIX,o.avc1(e))}static mp3(e){let t=e.channelCount,n=e.audioSampleRate,r=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 o.box(o.types[".mp3"],r)}static mp4a(e){let t=e.channelCount,n=e.audioSampleRate,r=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 o.box(o.types.mp4a,r,o.esds(e))}static esds(e){let t=e.config||[],n=t.length,r=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 o.box(o.types.esds,r)}static avc1(e){let t=e.avcc,n=e.codecWidth,r=e.codecHeight,s=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,r>>>8&255,r&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 o.box(o.types.avc1,s,o.box(o.types.avcC,t))}static mvex(e){return o.box(o.types.mvex,o.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 o.box(o.types.trex,n)}static moof(e,t){return o.box(o.types.moof,o.mfhd(e.sequenceNumber),o.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 o.box(o.types.mfhd,t)}static traf(e,t){let n=e.id,r=o.box(o.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255])),s=o.box(o.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255])),S=o.sdtp(e),I=o.trun(e,S.byteLength+16+16+8+16+8+8);return o.box(o.types.traf,r,s,I,S)}static sdtp(e){let t=e.samples||[],n=t.length,r=new Uint8Array(4+n);for(let s=0;s<n;s++){let S=t[s].flags;r[s+4]=S.isLeading<<6|S.dependsOn<<4|S.isDependedOn<<2|S.hasRedundancy}return o.box(o.types.sdtp,r)}static trun(e,t){let n=e.samples||[],r=n.length,s=12+16*r,S=new Uint8Array(s);t+=8+s,S.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0);for(let I=0;I<r;I++){let Ie=n[I].duration,Se=n[I].size,De=n[I].flags,Qe=n[I].cts;S.set([Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255,De.isLeading<<2|De.dependsOn,De.isDependedOn<<6|De.hasRedundancy<<4|De.isNonSync,0,0,Qe>>>24&255,Qe>>>16&255,Qe>>>8&255,Qe&255],12+16*I)}return o.box(o.types.trun,S)}static mdat(e){return o.box(o.types.mdat,e)}}o.init();var c=o;class p{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 O=p;class K{constructor(e,t,n,r,s){this.dts=e,this.pts=t,this.duration=n,this.originalDts=r,this.isSyncPoint=s,this.fileposition=null}}class ue{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 ie{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,r=t.length-1,s=0,S=0,I=r;for(e<t[0].dts&&(n=0,S=I+1);S<=I;)if(s=S+Math.floor((I-S)/2),s===r||e>=t[s].dts&&e<t[s+1].dts){n=s;break}else t[s].dts<e?S=s+1:I=s-1;return this._list[n]}}class fe{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,r=0,s=0,S=n,I=0;if(e<t[0].originalBeginDts)return I=-1,I;for(;s<=S;)if(r=s+Math.floor((S-s)/2),r===n||e>t[r].lastSample.originalDts&&e<t[r+1].originalBeginDts){I=r;break}else t[r].originalBeginDts<e?s=r+1:S=r-1;return I}_searchNearestSegmentAfter(e){return this._searchNearestSegmentBefore(e)+1}append(e){let t=this._list,n=e,r=this._lastAppendLocation,s=0;r!==-1&&r<t.length&&n.originalBeginDts>=t[r].lastSample.originalDts&&(r===t.length-1||r<t.length-1&&n.originalBeginDts<t[r+1].originalBeginDts)?s=r+1:t.length>0&&(s=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=s,this._list.splice(s,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 W{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 fe("audio"),this._videoSegmentInfoList=new fe("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(j.chrome&&(j.version.major<50||j.version.major===50&&j.version.build<2661)),this._fillSilentAfterSeek=j.msedge||j.msie,this._mp3UseMpegAudio=!j.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 be("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}_onTrackMetadataReceived(e,t){let n=null,r="mp4",s=t.codec;if(e==="audio")this._audioMeta=t,t.codec==="mp3"&&this._mp3UseMpegAudio?(r="mpeg",s="",n=new Uint8Array):n=c.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=c.generateInitSegment(t);else return;if(!this._onInitSegment)throw new be("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:s,container:`${e}/${r}`,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 r={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};t!=null&&(r.samples.push(t),r.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(r,!0)}_remuxAudio(e,t){if(this._audioMeta==null)return;let n=e,r=n.samples,s,S=-1,I=-1,Ie=-1,Se=this._audioMeta.refSampleDuration,De=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Qe=this._dtsBaseInited&&this._audioNextDts===void 0,ot=!1;if(!r||r.length===0||r.length===1&&!t)return;let Be=0,ut=null,We=0;De?(Be=0,We=n.length):(Be=8,We=8+n.length);let we=null;if(r.length>1&&(we=r.pop(),We-=we.length),this._audioStashedLastSample!=null){let Ye=this._audioStashedLastSample;this._audioStashedLastSample=null,r.unshift(Ye),We+=Ye.length}we!=null&&(this._audioStashedLastSample=we);let $e=r[0].dts-this._dtsBase;if(this._audioNextDts)s=$e-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())s=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(ot=!0);else{let Ye=this._audioSegmentInfoList.getLastSampleBefore($e);if(Ye!=null){let St=$e-(Ye.originalDts+Ye.duration);St<=3&&(St=0);let te=Ye.dts+Ye.duration+St;s=$e-te}else s=0}if(ot){let Ye=$e-s,St=this._videoSegmentInfoList.getLastSegmentBefore($e);if(St!=null&&St.beginDts<Ye){let te=O.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(te){let q=St.beginDts,ve=Ye-St.beginDts;u.v(this.TAG,`InsertPrefixSilentAudio: dts: ${q}, duration: ${ve}`),r.unshift({unit:te,dts:q,pts:q}),We+=te.byteLength}}else ot=!1}let nt=[];for(let Ye=0;Ye<r.length;Ye++){let St=r[Ye],te=St.unit,q=St.dts-this._dtsBase,ve=q-s;S===-1&&(S=ve);let Ae=0;Ye!==r.length-1?Ae=r[Ye+1].dts-this._dtsBase-s-ve:we!=null?Ae=we.dts-this._dtsBase-s-ve:nt.length>=1?Ae=nt[nt.length-1].duration:Ae=Math.floor(Se);let ge=!1,Ee=null;if(Ae>Se*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!j.safari){ge=!0;let _e=Math.abs(Ae-Se),He=Math.ceil(_e/Se),ft=ve+Se;u.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
dts: ${ve+Ae} ms, expected: ${ve+Math.round(Se)} ms, delta: ${Math.round(_e)} ms, generate: ${He} frames`);let dt=O.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);dt==null&&(u.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),dt=te),Ee=[];for(let yt=0;yt<He;yt++){let wt=Math.round(ft);if(Ee.length>0){let Dt=Ee[Ee.length-1];Dt.duration=wt-Dt.dts}let Nt={dts:wt,pts:wt,cts:0,unit:dt,size:dt.byteLength,duration:0,originalDts:q,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Ee.push(Nt),We+=Nt.size,ft+=Se}let bt=Ee[Ee.length-1];bt.duration=ve+Ae-bt.dts,Ae=Math.round(Se)}nt.push({dts:ve,pts:ve,cts:0,unit:St.unit,size:St.unit.byteLength,duration:Ae,originalDts:q,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),ge&&nt.push.apply(nt,Ee)}De?ut=new Uint8Array(We):(ut=new Uint8Array(We),ut[0]=We>>>24&255,ut[1]=We>>>16&255,ut[2]=We>>>8&255,ut[3]=We&255,ut.set(c.types.mdat,4));for(let Ye=0;Ye<nt.length;Ye++){let St=nt[Ye].unit;ut.set(St,Be),Be+=St.byteLength}let Je=nt[nt.length-1];I=Je.dts+Je.duration,this._audioNextDts=I;let pt=new ue;pt.beginDts=S,pt.endDts=I,pt.beginPts=S,pt.endPts=I,pt.originalBeginDts=nt[0].originalDts,pt.originalEndDts=Je.originalDts+Je.duration,pt.firstSample=new K(nt[0].dts,nt[0].pts,nt[0].duration,nt[0].originalDts,!1),pt.lastSample=new K(Je.dts,Je.pts,Je.duration,Je.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(pt),n.samples=nt,n.sequenceNumber++;let Tt=null;De?Tt=new Uint8Array:Tt=c.moof(n,S),n.samples=[],n.length=0;let It={type:"audio",data:this._mergeBoxes(Tt,ut).buffer,sampleCount:nt.length,info:pt};De&&Qe&&(It.timestampOffset=S),this._onMediaSegment("audio",It)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,r=n.samples,s,S=-1,I=-1,Ie=-1,Se=-1;if(!r||r.length===0||r.length===1&&!t)return;let De=8,Qe=null,ot=8+e.length,Be=null;if(r.length>1&&(Be=r.pop(),ot-=Be.length),this._videoStashedLastSample!=null){let Je=this._videoStashedLastSample;this._videoStashedLastSample=null,r.unshift(Je),ot+=Je.length}Be!=null&&(this._videoStashedLastSample=Be);let ut=r[0].dts-this._dtsBase;if(this._videoNextDts)s=ut-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())s=0;else{let Je=this._videoSegmentInfoList.getLastSampleBefore(ut);if(Je!=null){let pt=ut-(Je.originalDts+Je.duration);pt<=3&&(pt=0);let Tt=Je.dts+Je.duration+pt;s=ut-Tt}else s=0}let We=new ue,we=[];for(let Je=0;Je<r.length;Je++){let pt=r[Je],Tt=pt.dts-this._dtsBase,It=pt.isKeyframe,Ye=Tt-s,St=pt.cts,te=Ye+St;S===-1&&(S=Ye,Ie=te);let q=0;if(Je!==r.length-1?q=r[Je+1].dts-this._dtsBase-s-Ye:Be!=null?q=Be.dts-this._dtsBase-s-Ye:we.length>=1?q=we[we.length-1].duration:q=Math.floor(this._videoMeta.refSampleDuration),It){let ve=new K(Ye,te,q,pt.dts,!0);ve.fileposition=pt.fileposition,We.appendSyncPoint(ve)}we.push({dts:Ye,pts:te,cts:St,units:pt.units,size:pt.length,isKeyframe:It,duration:q,originalDts:Tt,flags:{isLeading:0,dependsOn:It?2:1,isDependedOn:It?1:0,hasRedundancy:0,isNonSync:It?0:1}})}Qe=new Uint8Array(ot),Qe[0]=ot>>>24&255,Qe[1]=ot>>>16&255,Qe[2]=ot>>>8&255,Qe[3]=ot&255,Qe.set(c.types.mdat,4);for(let Je=0;Je<we.length;Je++){let pt=we[Je].units;for(;pt.length;){let It=pt.shift().data;Qe.set(It,De),De+=It.byteLength}}let $e=we[we.length-1];if(I=$e.dts+$e.duration,Se=$e.pts+$e.duration,this._videoNextDts=I,We.beginDts=S,We.endDts=I,We.beginPts=Ie,We.endPts=Se,We.originalBeginDts=we[0].originalDts,We.originalEndDts=$e.originalDts+$e.duration,We.firstSample=new K(we[0].dts,we[0].pts,we[0].duration,we[0].originalDts,we[0].isKeyframe),We.lastSample=new K($e.dts,$e.pts,$e.duration,$e.originalDts,$e.isKeyframe),this._isLive||this._videoSegmentInfoList.append(We),n.samples=we,n.sequenceNumber++,this._forceFirstIDR){let Je=we[0].flags;Je.dependsOn=2,Je.isNonSync=0}let nt=c.moof(n,S);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(nt,Qe).buffer,sampleCount:we.length,info:We})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var Re=W,V={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 Pe{constructor(e,t){this.TAG="TransmuxingController",this._emitter=new(Y()),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(r=>{r.timestampBase=n,n+=r.duration,r.cors=e.cors,r.withCredentials=e.withCredentials,t.referrerPolicy&&(r.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],r=this._ioctl=new k(n,this._config,e);r.onError=this._onIOException.bind(this),r.onSeeked=this._onIOSeeked.bind(this),r.onComplete=this._onIOComplete.bind(this),r.onRedirect=this._onIORedirect.bind(this),r.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):r.onDataArrival=this._onInitChunkArrival.bind(this),r.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 r=n.getNearestKeyframe(e);this._remuxer.seek(r.milliseconds),this._ioctl.seek(r.fileposition),this._pendingResolveSeekPoint=r.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 r=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,r.fileposition),this._pendingResolveSeekPoint=r.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(e){let t=this._mediaDataSource.segments,n=t.length-1;for(let r=0;r<t.length;r++)if(e<t[r].timestampBase){n=r-1;break}return n}_onInitChunkArrival(e,t){let n=null,r=0;if(t>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,r=this._demuxer.parseChunks(e,t);else if((n=h.probe(e)).match){this._demuxer=new h(n,this._config),this._remuxer||(this._remuxer=new Re(this._config));let s=this._mediaDataSource;s.duration!=null&&!isNaN(s.duration)&&(this._demuxer.overridedDuration=s.duration),typeof s.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=s.hasAudio),typeof s.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=s.hasVideo),this._demuxer.timestampBase=s.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),r=this._demuxer.parseChunks(e,t)}else n=null,u.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(V.DEMUX_ERROR,i.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),r=0;return r}_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,Ne.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,Ne.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(V.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(V.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(V.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(e){let t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}_onIORecoveredEarlyEof(){this._emitter.emit(V.RECOVERED_EARLY_EOF)}_onIOException(e,t){u.e(this.TAG,`IOException: type = ${e}, code = ${t.code}, msg = ${t.msg}`),this._emitter.emit(V.IO_ERROR,e,t),this._disableStatisticsReporter()}_onDemuxException(e,t){u.e(this.TAG,`DemuxException: type = ${e}, info = ${t}`),this._emitter.emit(V.DEMUX_ERROR,e,t)}_onRemuxerInitSegmentArrival(e,t){this._emitter.emit(V.INIT_SEGMENT,e,t)}_onRemuxerMediaSegmentArrival(e,t){if(this._pendingSeekTime==null&&(this._emitter.emit(V.MEDIA_SEGMENT,e,t),this._pendingResolveSeekPoint!=null&&e==="video")){let n=t.info.syncPoints,r=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,j.safari&&n.length>0&&n[0].originalDts===r&&(r=n[0].pts),this._emitter.emit(V.RECOMMEND_SEEKPOINT,r)}}_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(V.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(V.STATISTICS_INFO,e)}}var Ge=Pe,ze=function(me){let e="TransmuxingWorker",t=null,n=We.bind(this);C.install(),me.addEventListener("message",function(we){switch(we.data.cmd){case"init":t=new Ge(we.data.param[0],we.data.param[1]),t.on(V.IO_ERROR,ot.bind(this)),t.on(V.DEMUX_ERROR,Be.bind(this)),t.on(V.INIT_SEGMENT,r.bind(this)),t.on(V.MEDIA_SEGMENT,s.bind(this)),t.on(V.LOADING_COMPLETE,S.bind(this)),t.on(V.RECOVERED_EARLY_EOF,I.bind(this)),t.on(V.MEDIA_INFO,Ie.bind(this)),t.on(V.METADATA_ARRIVED,Se.bind(this)),t.on(V.SCRIPTDATA_ARRIVED,De.bind(this)),t.on(V.STATISTICS_INFO,Qe.bind(this)),t.on(V.RECOMMEND_SEEKPOINT,ut.bind(this));break;case"destroy":t&&(t.destroy(),t=null),me.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(we.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let $e=we.data.param;ae.applyConfig($e),$e.enableCallback===!0?ae.addLogListener(n):ae.removeLogListener(n);break}}});function r(we,$e){let nt={msg:V.INIT_SEGMENT,data:{type:we,data:$e}};me.postMessage(nt,[$e.data])}function s(we,$e){let nt={msg:V.MEDIA_SEGMENT,data:{type:we,data:$e}};me.postMessage(nt,[$e.data])}function S(){let we={msg:V.LOADING_COMPLETE};me.postMessage(we)}function I(){let we={msg:V.RECOVERED_EARLY_EOF};me.postMessage(we)}function Ie(we){let $e={msg:V.MEDIA_INFO,data:we};me.postMessage($e)}function Se(we){let $e={msg:V.METADATA_ARRIVED,data:we};me.postMessage($e)}function De(we){let $e={msg:V.SCRIPTDATA_ARRIVED,data:we};me.postMessage($e)}function Qe(we){let $e={msg:V.STATISTICS_INFO,data:we};me.postMessage($e)}function ot(we,$e){me.postMessage({msg:V.IO_ERROR,data:{type:we,info:$e}})}function Be(we,$e){me.postMessage({msg:V.DEMUX_ERROR,data:{type:we,info:$e}})}function ut(we){me.postMessage({msg:V.RECOMMEND_SEEKPOINT,data:we})}function We(we,$e){me.postMessage({msg:"logcat_callback",data:{type:we,logcat:$e}})}};class rt{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(Y()),t.enableWorker&&typeof Worker!="undefined")try{let n=a(82059);this._worker=n(ze),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)},ae.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:ae.getConfig()})}catch(n){u.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Ge(e,t)}else this._controller=new Ge(e,t);if(this._controller){let n=this._controller;n.on(V.IO_ERROR,this._onIOError.bind(this)),n.on(V.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(V.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(V.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(V.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(V.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(V.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(V.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(V.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(V.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(V.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),ae.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(V.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(V.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(V.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(V.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(V.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(V.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(V.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(V.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(V.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(V.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(V.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 V.INIT_SEGMENT:case V.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case V.LOADING_COMPLETE:case V.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case V.MEDIA_INFO:Object.setPrototypeOf(n,Ne.prototype),this._emitter.emit(t.msg,n);break;case V.METADATA_ARRIVED:case V.SCRIPTDATA_ARRIVED:case V.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case V.IO_ERROR:case V.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case V.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":u.emitter.emit("log",n.type,n.logcat);break;default:break}}}var _t=rt,st={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(Y()),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 ie}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 be("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 r=this._sourceBuffers[t];if(r){if(e.readyState!=="closed"){try{e.removeSourceBuffer(r)}catch(s){u.e(this.TAG,s.message)}r.removeEventListener("error",this.e.onSourceBufferError),r.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if(e.readyState==="open")try{e.endOfStream()}catch(t){u.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,r=`${n.container}`;n.codec&&n.codec.length>0&&(r+=`;codecs=${n.codec}`);let s=!1;if(u.v(this.TAG,"Received Initialization Segment, mimeType: "+r),this._lastInitSegments[n.type]=n,r!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])u.v(this.TAG,`Notice: ${n.type} mimeType changed, origin: ${this._mimeTypes[n.type]}, target: ${r}`);else{s=!0;try{let S=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(r);S.addEventListener("error",this.e.onSourceBufferError),S.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(S){u.e(this.TAG,S.message),this._emitter.emit(st.ERROR,{code:S.code,msg:S.message});return}}this._mimeTypes[n.type]=r}t||this._pendingSegments[n.type].push(n),s||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),j.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(s){u.e(this.TAG,s.message)}this._idrList.clear();let r=this._pendingSegments[t];if(r.splice(0,r.length),this._mediaSource.readyState!=="closed"){for(let s=0;s<n.buffered.length;s++){let S=n.buffered.start(s),I=n.buffered.end(s);this._pendingRemoveRanges[t].push({start:S,end:I})}if(n.updating||this._doRemoveRanges(),j.safari){let s=this._lastInitSegments[t];s&&(this._pendingSegments[t].push(s),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 r=n.buffered;if(r.length>=1&&e-r.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 r=n.buffered,s=!1;for(let S=0;S<r.length;S++){let I=r.start(S),Ie=r.end(S);if(I<=e&&e<Ie+3){if(e-I>=this._config.autoCleanupMaxBackwardDuration){s=!0;let Se=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:I,end:Se})}}else Ie<e&&(s=!0,this._pendingRemoveRanges[t].push({start:I,end:Ie}))}s&&!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)&&(u.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 r=n.shift();t.remove(r.start,r.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 r=this._sourceBuffers[t].timestampOffset,s=n.timestampOffset/1e3;Math.abs(r-s)>.1&&(u.v(this.TAG,`Update MPEG audio timestampOffset from ${r} to ${s}`),this._sourceBuffers[t].timestampOffset=s),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(r){this._pendingSegments[t].unshift(n),r.code===22?(this._isBufferFull||this._emitter.emit(st.BUFFER_FULL),this._isBufferFull=!0):(u.e(this.TAG,r.message),this._emitter.emit(st.ERROR,{code:r.code,msg:r.message}))}}}_onSourceOpen(){if(u.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(st.SOURCE_OPEN)}_onSourceEnded(){u.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){u.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(st.UPDATE_END)}_onSourceBufferError(e){u.e(this.TAG,`SourceBuffer Error: ${e}`)}}var Ue=ht;const Fe={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},tt={NETWORK_EXCEPTION:ne.EXCEPTION,NETWORK_STATUS_CODE_INVALID:ne.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:ne.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:ne.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:i.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:i.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:i.CODEC_UNSUPPORTED};class Et{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(Y()),this._config=z(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()!=="flv")throw new de("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=j.chrome&&(j.version.major<50||j.version.major===50&&j.version.build<2661);this._alwaysSeekKeyframe=!!(n||j.msedge||j.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===H.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(H.MEDIA_INFO,this.mediaInfo)}):e===H.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(H.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 Ue(this._config),this._msectl.on(st.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(st.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(st.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(st.ERROR,t=>{this._emitter.emit(H.ERROR,Fe.MEDIA_ERROR,tt.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 be("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new be("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 _t(this._mediaDataSource,this._config),this._transmuxer.on(V.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(V.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&&(u.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(V.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(H.LOADING_COMPLETE)}),this._transmuxer.on(V.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(H.RECOVERED_EARLY_EOF)}),this._transmuxer.on(V.IO_ERROR,(e,t)=>{this._emitter.emit(H.ERROR,Fe.NETWORK_ERROR,e,t)}),this._transmuxer.on(V.DEMUX_ERROR,(e,t)=>{this._emitter.emit(H.ERROR,Fe.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(V.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(H.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(V.METADATA_ARRIVED,e=>{this._emitter.emit(H.METADATA_ARRIVED,e)}),this._transmuxer.on(V.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(H.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(V.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(H.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(V.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,r=0;if(this._mediaElement.getVideoPlaybackQuality){let s=this._mediaElement.getVideoPlaybackQuality();n=s.totalVideoFrames,r=s.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=r),e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,r=0;for(let s=0;s<e.length;s++){let S=e.start(s),I=e.end(s);if(S<=t&&t<I){n=S,r=I;break}}r>=t+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(u.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){u.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 r=0;r<t.length;r++){let s=t.start(r),S=t.end(r);if(e>=s&&e<S){e>=S-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(u.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 r=t.start(n),s=t.end(n);if(e>=r&&e<s)return!0}return!1}_internalSeek(e){let t=this._isTimepointBuffered(e),n=!1,r=0;if(e<1&&this._mediaElement.buffered.length>0){let s=this._mediaElement.buffered.start(0);(s<1&&e<s||j.safari)&&(n=!0,r=j.safari?.1:s)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=r;else if(t){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=e;else{let s=this._msectl.getNearestKeyframe(Math.floor(e*1e3));this._requestSetTime=!0,s!=null?this._mediaElement.currentTime=s.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)&&(u.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 r=n.start(0);if(r<1&&t<r||j.safari){this._requestSetTime=!0,this._mediaElement.currentTime=j.safari?.1:r;return}}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){let r=this._msectl.getNearestKeyframe(Math.floor(t*1e3));r!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=r.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 mt=Et;class xt{constructor(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(Y()),this._config=z(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()==="flv")throw new de("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new de(`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===H.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(H.MEDIA_INFO,this.mediaInfo)}):e===H.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(H.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 be("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,r=0;if(this._mediaElement.getVideoPlaybackQuality){let s=this._mediaElement.getVideoPlaybackQuality();n=s.totalVideoFrames,r=s.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=r),e}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(H.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(H.STATISTICS_INFO,this.statisticsInfo)}}var Ot=xt;C.install();function gt(me,e){let t=me;if(t==null||typeof t!="object")throw new de("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new de("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new mt(t,e);default:return new Ot(t,e)}}function Rt(){return Q.supportMSEH264Playback()}function it(){return Q.getFeatureList()}let at={};at.createPlayer=gt,at.isSupported=Rt,at.getFeatureList=it,at.BaseLoader=ee,at.LoaderStatus=d,at.LoaderErrors=ne,at.Events=H,at.ErrorTypes=Fe,at.ErrorDetails=tt,at.FlvPlayer=mt,at.NativePlayer=Ot,at.LoggingControl=ae,Object.defineProperty(at,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Ve=at},98447:function(vt,Me,a){"use strict";a.d(Me,{C2:function(){return A}});var E=a(17313),C=a(37613),F=a(83116);const Y=u=>{const{checkboxCls:ce}=u,se=`${ce}-wrapper`;return[{[`${ce}-group`]:Object.assign(Object.assign({},(0,E.Wf)(u)),{display:"inline-flex",flexWrap:"wrap",columnGap:u.marginXS,[`> ${u.antCls}-row`]:{flex:1}}),[se]:Object.assign(Object.assign({},(0,E.Wf)(u)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${se}`]:{marginInlineStart:0},[`&${se}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ce]:Object.assign(Object.assign({},(0,E.Wf)(u)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:u.borderRadiusSM,alignSelf:"center",[`${ce}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ce}-inner`]:Object.assign({},(0,E.oN)(u))},[`${ce}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:u.checkboxSize,height:u.checkboxSize,direction:"ltr",backgroundColor:u.colorBgContainer,border:`${u.lineWidth}px ${u.lineType} ${u.colorBorder}`,borderRadius:u.borderRadiusSM,borderCollapse:"separate",transition:`all ${u.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:u.checkboxSize/14*5,height:u.checkboxSize/14*8,border:`${u.lineWidthBold}px solid ${u.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${u.motionDurationFast} ${u.motionEaseInBack}, opacity ${u.motionDurationFast}`}},"& + span":{paddingInlineStart:u.paddingXS,paddingInlineEnd:u.paddingXS}})},{[`
|
|
${se}:not(${se}-disabled),
|
|
${ce}:not(${ce}-disabled)
|
|
`]:{[`&:hover ${ce}-inner`]:{borderColor:u.colorPrimary}},[`${se}:not(${se}-disabled)`]:{[`&:hover ${ce}-checked:not(${ce}-disabled) ${ce}-inner`]:{backgroundColor:u.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ce}-checked:not(${ce}-disabled):after`]:{borderColor:u.colorPrimaryHover}}},{[`${ce}-checked`]:{[`${ce}-inner`]:{backgroundColor:u.colorPrimary,borderColor:u.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${u.motionDurationMid} ${u.motionEaseOutBack} ${u.motionDurationFast}`}}},[`
|
|
${se}-checked:not(${se}-disabled),
|
|
${ce}-checked:not(${ce}-disabled)
|
|
`]:{[`&:hover ${ce}-inner`]:{backgroundColor:u.colorPrimaryHover,borderColor:"transparent"}}},{[ce]:{"&-indeterminate":{[`${ce}-inner`]:{backgroundColor:u.colorBgContainer,borderColor:u.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:u.fontSizeLG/2,height:u.fontSizeLG/2,backgroundColor:u.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${se}-disabled`]:{cursor:"not-allowed"},[`${ce}-disabled`]:{[`&, ${ce}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ce}-inner`]:{background:u.colorBgContainerDisabled,borderColor:u.colorBorder,"&:after":{borderColor:u.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:u.colorTextDisabled},[`&${ce}-indeterminate ${ce}-inner::after`]:{background:u.colorTextDisabled}}}]};function A(u,ce){const se=(0,C.TS)(ce,{checkboxCls:`.${u}`,checkboxSize:ce.controlInteractiveSize});return[Y(se)]}Me.ZP=(0,F.Z)("Checkbox",(u,ce)=>{let{prefixCls:se}=ce;return[A(se,u)]})},91857:function(vt,Me,a){"use strict";var E=a(59301),C=a(38819),F=a(92310),Y=a.n(F),A=a(31561),u=a(70425),ce=a(18929),se=a(2738),oe=a(79676),be=a(53487),de=a(92343),N=a(36355),d=a(20834),ne=a(40875),ee=a(88088),Z=a(47211);const Ce=null,j=R=>{const{menu:B,arrow:$,prefixCls:w,children:re,trigger:X,disabled:he,dropdownRender:D,getPopupContainer:xe,overlayClassName:x,rootClassName:M,open:m,onOpenChange:k,visible:pe,onVisibleChange:z,mouseEnterDelay:le=.15,mouseLeaveDelay:Q=.1,autoAdjustOverflow:L=!0,placement:H="",overlay:J,transitionName:ae}=R,{getPopupContainer:ye,getPrefixCls:Ne,direction:ke}=E.useContext(N.E_),Oe=E.useMemo(()=>{const c=Ne();return ae!==void 0?ae:H.includes("top")?`${c}-slide-down`:`${c}-slide-up`},[Ne,H,ae]),et=E.useMemo(()=>H?H.includes("Center")?H.slice(0,H.indexOf("Center")):H:ke==="rtl"?"bottomRight":"bottomLeft",[H,ke]),Ke=Ne("dropdown",w),[je,Xe]=(0,Z.Z)(Ke),[,G]=(0,ee.Z)(),Le=E.Children.only(re),f=(0,de.Tm)(Le,{className:Y()(`${Ke}-trigger`,{[`${Ke}-rtl`]:ke==="rtl"},Le.props.className),disabled:he}),y=he?[]:X;let v;y&&y.includes("contextMenu")&&(v=!0);const[i,b]=(0,ce.Z)(!1,{value:m!=null?m:pe}),U=(0,u.useEvent)(c=>{k==null||k(c),z==null||z(c),b(c)}),_=Y()(x,M,Xe,{[`${Ke}-rtl`]:ke==="rtl"}),l=(0,oe.Z)({arrowPointAtCenter:typeof $=="object"&&$.pointAtCenter,autoAdjustOverflow:L,offset:G.marginXXS,arrowWidth:$?G.sizePopupArrow:0,borderRadius:G.borderRadius}),h=E.useCallback(()=>{b(!1)},[]),o=()=>{let c;return B!=null&&B.items?c=E.createElement(d.default,Object.assign({},B)):typeof J=="function"?c=J():c=J,D&&(c=D(c)),c=E.Children.only(typeof c=="string"?E.createElement("span",null,c):c),E.createElement(ne.J,{prefixCls:`${Ke}-menu`,expandIcon:E.createElement("span",{className:`${Ke}-menu-submenu-arrow`},E.createElement(C.Z,{className:`${Ke}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:h,validator:p=>{let{mode:O}=p}},c)};return je(E.createElement(A.Z,Object.assign({alignPoint:v},(0,se.Z)(R,["rootClassName"]),{mouseEnterDelay:le,mouseLeaveDelay:Q,visible:i,builtinPlacements:l,arrow:!!$,overlayClassName:_,prefixCls:Ke,getPopupContainer:xe||ye,transitionName:Oe,trigger:y,overlay:o,placement:et,onVisibleChange:U}),f))};function T(R){return Object.assign(Object.assign({},R),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const P=(0,be.Z)(j,"dropdown",R=>R,T),g=R=>E.createElement(P,Object.assign({},R),E.createElement("span",null));j._InternalPanelDoNotUseOrYouWillBeFired=g,Me.Z=j},38854:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return ee}});var E=a(91857),C=a(92310),F=a.n(C),Y=a(59301),A=a(18785),u=a(3113),ce=a(36355),se=a(81327),oe=a(33234),be=a(47211),de=function(Z,Ce){var j={};for(var T in Z)Object.prototype.hasOwnProperty.call(Z,T)&&Ce.indexOf(T)<0&&(j[T]=Z[T]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,T=Object.getOwnPropertySymbols(Z);P<T.length;P++)Ce.indexOf(T[P])<0&&Object.prototype.propertyIsEnumerable.call(Z,T[P])&&(j[T[P]]=Z[T[P]]);return j};const N=Z=>{const{getPopupContainer:Ce,getPrefixCls:j,direction:T}=Y.useContext(ce.E_),{prefixCls:P,type:g="default",danger:R,disabled:B,loading:$,onClick:w,htmlType:re,children:X,className:he,menu:D,arrow:xe,autoFocus:x,overlay:M,trigger:m,align:k,open:pe,onOpenChange:z,placement:le,getPopupContainer:Q,href:L,icon:H=Y.createElement(A.Z,null),title:J,buttonsRender:ae=o=>o,mouseEnterDelay:ye,mouseLeaveDelay:Ne,overlayClassName:ke,overlayStyle:Oe,destroyPopupOnHide:et,dropdownRender:Ke}=Z,je=de(Z,["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"]),Xe=j("dropdown",P),G=`${Xe}-button`,[Le,f]=(0,be.Z)(Xe),y={menu:D,arrow:xe,autoFocus:x,align:k,disabled:B,trigger:B?[]:m,onOpenChange:z,getPopupContainer:Q||Ce,mouseEnterDelay:ye,mouseLeaveDelay:Ne,overlayClassName:ke,overlayStyle:Oe,destroyPopupOnHide:et,dropdownRender:Ke},{compactSize:v,compactItemClassnames:i}=(0,oe.ri)(Xe,T),b=F()(G,i,he,f);"overlay"in Z&&(y.overlay=M),"open"in Z&&(y.open=pe),"placement"in Z?y.placement=le:y.placement=T==="rtl"?"bottomLeft":"bottomRight";const U=Y.createElement(u.ZP,{type:g,danger:R,disabled:B,loading:$,onClick:w,htmlType:re,href:L,title:J},X),_=Y.createElement(u.ZP,{type:g,danger:R,icon:H}),[l,h]=ae([U,_]);return Le(Y.createElement(se.Z.Compact,Object.assign({className:b,size:v,block:!0},je),l,Y.createElement(E.Z,Object.assign({},y),h)))};N.__ANT_BUTTON=!0;var d=N;const ne=E.Z;ne.Button=d;var ee=ne},47211:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return de}});var E=a(17313),C=a(13826),F=a(92899),Y=a(29878),A=a(19447),u=a(83116),ce=a(37613),oe=N=>{const{componentCls:d,menuCls:ne,colorError:ee,colorTextLightSolid:Z}=N,Ce=`${ne}-item`;return{[`${d}, ${d}-menu-submenu`]:{[`${ne} ${Ce}`]:{[`&${Ce}-danger:not(${Ce}-disabled)`]:{color:ee,"&:hover":{color:Z,backgroundColor:ee}}}}}};const be=N=>{const{componentCls:d,menuCls:ne,zIndexPopup:ee,dropdownArrowDistance:Z,sizePopupArrow:Ce,antCls:j,iconCls:T,motionDurationMid:P,dropdownPaddingVertical:g,fontSize:R,dropdownEdgeChildPadding:B,colorTextDisabled:$,fontSizeIcon:w,controlPaddingHorizontal:re,colorBgElevated:X}=N;return[{[d]:Object.assign(Object.assign({},(0,E.Wf)(N)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ee,display:"block","&::before":{position:"absolute",insetBlock:-Z+Ce/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${j}-btn`]:{[`& > ${T}-down, & > ${j}-btn-icon > ${T}-down`]:{fontSize:w}},[`${d}-wrap`]:{position:"relative",[`${j}-btn > ${T}-down`]:{fontSize:w},[`${T}-down::before`]:{transition:`transform ${P}`}},[`${d}-wrap-open`]:{[`${T}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${j}-slide-down-enter${j}-slide-down-enter-active${d}-placement-bottomLeft,
|
|
&${j}-slide-down-appear${j}-slide-down-appear-active${d}-placement-bottomLeft,
|
|
&${j}-slide-down-enter${j}-slide-down-enter-active${d}-placement-bottom,
|
|
&${j}-slide-down-appear${j}-slide-down-appear-active${d}-placement-bottom,
|
|
&${j}-slide-down-enter${j}-slide-down-enter-active${d}-placement-bottomRight,
|
|
&${j}-slide-down-appear${j}-slide-down-appear-active${d}-placement-bottomRight`]:{animationName:C.fJ},[`&${j}-slide-up-enter${j}-slide-up-enter-active${d}-placement-topLeft,
|
|
&${j}-slide-up-appear${j}-slide-up-appear-active${d}-placement-topLeft,
|
|
&${j}-slide-up-enter${j}-slide-up-enter-active${d}-placement-top,
|
|
&${j}-slide-up-appear${j}-slide-up-appear-active${d}-placement-top,
|
|
&${j}-slide-up-enter${j}-slide-up-enter-active${d}-placement-topRight,
|
|
&${j}-slide-up-appear${j}-slide-up-appear-active${d}-placement-topRight`]:{animationName:C.Qt},[`&${j}-slide-down-leave${j}-slide-down-leave-active${d}-placement-bottomLeft,
|
|
&${j}-slide-down-leave${j}-slide-down-leave-active${d}-placement-bottom,
|
|
&${j}-slide-down-leave${j}-slide-down-leave-active${d}-placement-bottomRight`]:{animationName:C.Uw},[`&${j}-slide-up-leave${j}-slide-up-leave-active${d}-placement-topLeft,
|
|
&${j}-slide-up-leave${j}-slide-up-leave-active${d}-placement-top,
|
|
&${j}-slide-up-leave${j}-slide-up-leave-active${d}-placement-topRight`]:{animationName:C.ly}})},(0,A.ZP)(N,{colorBg:X,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${d} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:ee,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${d}, ${d}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:B,listStyleType:"none",backgroundColor:X,backgroundClip:"padding-box",borderRadius:N.borderRadiusLG,outline:"none",boxShadow:N.boxShadowSecondary},(0,E.Qy)(N)),{[`${ne}-item-group-title`]:{padding:`${g}px ${re}px`,color:N.colorTextDescription,transition:`all ${P}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:R,marginInlineEnd:N.marginXS,fontSize:N.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${P}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${g}px ${re}px`,color:N.colorText,fontWeight:"normal",fontSize:R,lineHeight:N.lineHeight,cursor:"pointer",transition:`all ${P}`,borderRadius:N.borderRadiusSM,"&:hover, &-active":{backgroundColor:N.controlItemBgHover}},(0,E.Qy)(N)),{"&-selected":{color:N.colorPrimary,backgroundColor:N.controlItemBgActive,"&:hover, &-active":{backgroundColor:N.controlItemBgActiveHover}},"&-disabled":{color:$,cursor:"not-allowed","&:hover":{color:$,backgroundColor:X,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${N.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:N.colorSplit},[`${d}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:N.paddingXS,[`${d}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:N.colorTextDescription,fontSize:w,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${N.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:re+N.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${d}-menu-submenu-title`]:{[`&, ${d}-menu-submenu-arrow-icon`]:{color:$,backgroundColor:X,cursor:"not-allowed"}},[`${ne}-submenu-selected ${d}-menu-submenu-title`]:{color:N.colorPrimary}})}},[(0,C.oN)(N,"slide-up"),(0,C.oN)(N,"slide-down"),(0,F.Fm)(N,"move-up"),(0,F.Fm)(N,"move-down"),(0,Y._y)(N,"zoom-big")]]};var de=(0,u.Z)("Dropdown",(N,d)=>{let{rootPrefixCls:ne}=d;const{marginXXS:ee,sizePopupArrow:Z,controlHeight:Ce,fontSize:j,lineHeight:T,paddingXXS:P,componentCls:g,borderRadiusLG:R}=N,B=(Ce-j*T)/2,{dropdownArrowOffset:$}=(0,A.fS)({contentRadius:R}),w=(0,ce.TS)(N,{menuCls:`${g}-menu`,rootPrefixCls:ne,dropdownArrowDistance:Z/2+ee,dropdownArrowOffset:$,dropdownPaddingVertical:B,dropdownEdgeChildPadding:P});return[be(w),oe(w)]},N=>({zIndexPopup:N.zIndexPopupBase+50}))},64165:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return P}});var E=a(92310),C=a.n(E),F=a(59301),Y=a(36355),A=a(9763),u=a(64993),ce=a(88088),oe=()=>{const[,g]=(0,ce.Z)(),B=new u.C(g.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return F.createElement("svg",{style:B,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},F.createElement("g",{fill:"none",fillRule:"evenodd"},F.createElement("g",{transform:"translate(24 31.67)"},F.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),F.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"}),F.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)"}),F.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"}),F.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"})),F.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"}),F.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},F.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),F.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},de=()=>{const[,g]=(0,ce.Z)(),{colorFill:R,colorFillTertiary:B,colorFillQuaternary:$,colorBgContainer:w}=g,{borderColor:re,shadowColor:X,contentColor:he}=(0,F.useMemo)(()=>({borderColor:new u.C(R).onBackground(w).toHexShortString(),shadowColor:new u.C(B).onBackground(w).toHexShortString(),contentColor:new u.C($).onBackground(w).toHexShortString()}),[R,B,$,w]);return F.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},F.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},F.createElement("ellipse",{fill:X,cx:"32",cy:"33",rx:"32",ry:"7"}),F.createElement("g",{fillRule:"nonzero",stroke:re},F.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"}),F.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:he}))))},N=a(83116),d=a(37613);const ne=g=>{const{componentCls:R,margin:B,marginXS:$,marginXL:w,fontSize:re,lineHeight:X}=g;return{[R]:{marginInline:$,fontSize:re,lineHeight:X,textAlign:"center",[`${R}-image`]:{height:g.emptyImgHeight,marginBottom:$,opacity:g.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${R}-description`]:{color:g.colorText},[`${R}-footer`]:{marginTop:B},"&-normal":{marginBlock:w,color:g.colorTextDisabled,[`${R}-description`]:{color:g.colorTextDisabled},[`${R}-image`]:{height:g.emptyImgHeightMD}},"&-small":{marginBlock:$,color:g.colorTextDisabled,[`${R}-image`]:{height:g.emptyImgHeightSM}}}}};var ee=(0,N.Z)("Empty",g=>{const{componentCls:R,controlHeightLG:B}=g,$=(0,d.TS)(g,{emptyImgCls:`${R}-img`,emptyImgHeight:B*2.5,emptyImgHeightMD:B,emptyImgHeightSM:B*.875});return[ne($)]}),Z=function(g,R){var B={};for(var $ in g)Object.prototype.hasOwnProperty.call(g,$)&&R.indexOf($)<0&&(B[$]=g[$]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,$=Object.getOwnPropertySymbols(g);w<$.length;w++)R.indexOf($[w])<0&&Object.prototype.propertyIsEnumerable.call(g,$[w])&&(B[$[w]]=g[$[w]]);return B};const Ce=F.createElement(oe,null),j=F.createElement(de,null),T=g=>{var{className:R,rootClassName:B,prefixCls:$,image:w=Ce,description:re,children:X,imageStyle:he,style:D}=g,xe=Z(g,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:x,direction:M,empty:m}=F.useContext(Y.E_),k=x("empty",$),[pe,z]=ee(k),[le]=(0,A.Z)("Empty"),Q=typeof re!="undefined"?re:le==null?void 0:le.description,L=typeof Q=="string"?Q:"empty";let H=null;return typeof w=="string"?H=F.createElement("img",{alt:L,src:w}):H=w,pe(F.createElement("div",Object.assign({className:C()(z,k,m==null?void 0:m.className,{[`${k}-normal`]:w===j,[`${k}-rtl`]:M==="rtl"},R,B),style:Object.assign(Object.assign({},m==null?void 0:m.style),D)},xe),F.createElement("div",{className:`${k}-image`,style:he},H),Q&&F.createElement("div",{className:`${k}-description`},Q),X&&F.createElement("div",{className:`${k}-footer`},X)))};T.PRESENTED_IMAGE_DEFAULT=Ce,T.PRESENTED_IMAGE_SIMPLE=j;var P=T},45818:function(vt,Me,a){"use strict";a.d(Me,{D:function(){return P},Z:function(){return B}});var E=a(60499),C=a(59301),F={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"},Y=F,A=a(7657),u=function(w,re){return C.createElement(A.Z,(0,E.Z)({},w,{ref:re,icon:Y}))},ce=C.forwardRef(u),se=ce,oe=a(33853),be=a(38819),de=a(92310),N=a.n(de),d=a(2738),ee=$=>!isNaN(parseFloat($))&&isFinite($),Z=a(36355),Ce=a(84966),j=function($,w){var re={};for(var X in $)Object.prototype.hasOwnProperty.call($,X)&&w.indexOf(X)<0&&(re[X]=$[X]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,X=Object.getOwnPropertySymbols($);he<X.length;he++)w.indexOf(X[he])<0&&Object.prototype.propertyIsEnumerable.call($,X[he])&&(re[X[he]]=$[X[he]]);return re};const T={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},P=C.createContext({}),g=(()=>{let $=0;return function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return $+=1,`${w}${$}`}})();var B=C.forwardRef(($,w)=>{const{prefixCls:re,className:X,trigger:he,children:D,defaultCollapsed:xe=!1,theme:x="dark",style:M={},collapsible:m=!1,reverseArrow:k=!1,width:pe=200,collapsedWidth:z=80,zeroWidthTriggerStyle:le,breakpoint:Q,onCollapse:L,onBreakpoint:H}=$,J=j($,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ae}=(0,C.useContext)(Ce.Gs),[ye,Ne]=(0,C.useState)("collapsed"in $?$.collapsed:xe),[ke,Oe]=(0,C.useState)(!1);(0,C.useEffect)(()=>{"collapsed"in $&&Ne($.collapsed)},[$.collapsed]);const et=(f,y)=>{"collapsed"in $||Ne(f),L==null||L(f,y)},Ke=(0,C.useRef)();Ke.current=f=>{Oe(f.matches),H==null||H(f.matches),ye!==f.matches&&et(f.matches,"responsive")},(0,C.useEffect)(()=>{function f(v){return Ke.current(v)}let y;if(typeof window!="undefined"){const{matchMedia:v}=window;if(v&&Q&&Q in T){y=v(`(max-width: ${T[Q]})`);try{y.addEventListener("change",f)}catch(i){y.addListener(f)}f(y)}}return()=>{try{y==null||y.removeEventListener("change",f)}catch(v){y==null||y.removeListener(f)}}},[Q]),(0,C.useEffect)(()=>{const f=g("ant-sider-");return ae.addSider(f),()=>ae.removeSider(f)},[]);const je=()=>{et(!ye,"clickTrigger")},{getPrefixCls:Xe}=(0,C.useContext)(Z.E_),G=()=>{const f=Xe("layout-sider",re),y=(0,d.Z)(J,["collapsed"]),v=ye?z:pe,i=ee(v)?`${v}px`:String(v),b=parseFloat(String(z||0))===0?C.createElement("span",{onClick:je,className:N()(`${f}-zero-width-trigger`,`${f}-zero-width-trigger-${k?"right":"left"}`),style:le},he||C.createElement(se,null)):null,l={expanded:k?C.createElement(be.Z,null):C.createElement(oe.Z,null),collapsed:k?C.createElement(oe.Z,null):C.createElement(be.Z,null)}[ye?"collapsed":"expanded"],h=he!==null?b||C.createElement("div",{className:`${f}-trigger`,onClick:je,style:{width:i}},he||l):null,o=Object.assign(Object.assign({},M),{flex:`0 0 ${i}`,maxWidth:i,minWidth:i,width:i}),c=N()(f,`${f}-${x}`,{[`${f}-collapsed`]:!!ye,[`${f}-has-trigger`]:m&&he!==null&&!b,[`${f}-below`]:!!ke,[`${f}-zero-width`]:parseFloat(i)===0},X);return C.createElement("aside",Object.assign({className:c},y,{style:o,ref:w}),C.createElement("div",{className:`${f}-children`},D),m||ke&&b?h:null)},Le=C.useMemo(()=>({siderCollapsed:ye}),[ye]);return C.createElement(P.Provider,{value:Le},G())})},84966:function(vt,Me,a){"use strict";a.d(Me,{VY:function(){return P},$_:function(){return T},h4:function(){return j},Gs:function(){return d},ZP:function(){return g}});var E=a(77654),C=a(92310),F=a.n(C),Y=a(2738),A=a(59301),u=a(36355),ce=a(83116),oe=R=>{const{componentCls:B,bodyBg:$,lightSiderBg:w,lightTriggerBg:re,lightTriggerColor:X}=R;return{[`${B}-sider-light`]:{background:w,[`${B}-sider-trigger`]:{color:X,background:re},[`${B}-sider-zero-width-trigger`]:{color:X,background:re,border:`1px solid ${$}`,borderInlineStart:0}}}};const be=R=>{const{antCls:B,componentCls:$,colorText:w,triggerColor:re,footerBg:X,triggerBg:he,headerHeight:D,headerPadding:xe,headerColor:x,footerPadding:M,triggerHeight:m,zeroTriggerHeight:k,zeroTriggerWidth:pe,motionDurationMid:z,motionDurationSlow:le,fontSize:Q,borderRadius:L,bodyBg:H,headerBg:J,siderBg:ae}=R;return{[$]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:H,"&, *":{boxSizing:"border-box"},[`&${$}-has-sider`]:{flexDirection:"row",[`> ${$}, > ${$}-content`]:{width:0}},[`${$}-header, &${$}-footer`]:{flex:"0 0 auto"},[`${$}-sider`]:{position:"relative",minWidth:0,background:ae,transition:`all ${z}, 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:re,lineHeight:`${m}px`,textAlign:"center",background:he,cursor:"pointer",transition:`all ${z}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:D,insetInlineEnd:-pe,zIndex:1,width:pe,height:k,color:re,fontSize:R.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ae,borderStartStartRadius:0,borderStartEndRadius:L,borderEndEndRadius:L,borderEndStartRadius:0,cursor:"pointer",transition:`background ${le} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${le}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-pe,borderStartStartRadius:L,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:L}}}}},oe(R)),{"&-rtl":{direction:"rtl"}}),[`${$}-header`]:{height:D,padding:xe,color:x,lineHeight:`${D}px`,background:J,[`${B}-menu`]:{lineHeight:"inherit"}},[`${$}-footer`]:{padding:M,color:w,fontSize:Q,background:X},[`${$}-content`]:{flex:"auto",minHeight:0}}};var de=(0,ce.Z)("Layout",R=>[be(R)],R=>{const{colorBgLayout:B,controlHeight:$,controlHeightLG:w,colorText:re,controlHeightSM:X,marginXXS:he,colorTextLightSolid:D,colorBgContainer:xe}=R,x=w*1.25;return{colorBgHeader:"#001529",colorBgBody:B,colorBgTrigger:"#002140",bodyBg:B,headerBg:"#001529",headerHeight:$*2,headerPadding:`0 ${x}px`,headerColor:re,footerPadding:`${X}px ${x}px`,footerBg:B,siderBg:"#001529",triggerHeight:w+he*2,triggerBg:"#002140",triggerColor:D,zeroTriggerWidth:w,zeroTriggerHeight:w,lightSiderBg:xe,lightTriggerBg:xe,lightTriggerColor:re}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),N=function(R,B){var $={};for(var w in R)Object.prototype.hasOwnProperty.call(R,w)&&B.indexOf(w)<0&&($[w]=R[w]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,w=Object.getOwnPropertySymbols(R);re<w.length;re++)B.indexOf(w[re])<0&&Object.prototype.propertyIsEnumerable.call(R,w[re])&&($[w[re]]=R[w[re]]);return $};const d=A.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(R){let{suffixCls:B,tagName:$,displayName:w}=R;return re=>A.forwardRef((he,D)=>A.createElement(re,Object.assign({ref:D,suffixCls:B,tagName:$},he)))}const ee=A.forwardRef((R,B)=>{const{prefixCls:$,suffixCls:w,className:re,tagName:X}=R,he=N(R,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:D}=A.useContext(u.E_),xe=D("layout",$),[x,M]=de(xe),m=w?`${xe}-${w}`:xe;return x(A.createElement(X,Object.assign({className:F()($||m,re,M),ref:B},he)))}),Z=A.forwardRef((R,B)=>{const{direction:$}=A.useContext(u.E_),[w,re]=A.useState([]),{prefixCls:X,className:he,rootClassName:D,children:xe,hasSider:x,tagName:M,style:m}=R,k=N(R,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),pe=(0,Y.Z)(k,["suffixCls"]),{getPrefixCls:z,layout:le}=A.useContext(u.E_),Q=z("layout",X),[L,H]=de(Q),J=F()(Q,{[`${Q}-has-sider`]:typeof x=="boolean"?x:w.length>0,[`${Q}-rtl`]:$==="rtl"},le==null?void 0:le.className,he,D,H),ae=A.useMemo(()=>({siderHook:{addSider:ye=>{re(Ne=>[].concat((0,E.Z)(Ne),[ye]))},removeSider:ye=>{re(Ne=>Ne.filter(ke=>ke!==ye))}}}),[]);return L(A.createElement(d.Provider,{value:ae},A.createElement(M,Object.assign({ref:B,className:J,style:Object.assign(Object.assign({},le==null?void 0:le.style),m)},pe),xe)))}),Ce=ne({tagName:"div",displayName:"Layout"})(Z),j=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(ee),T=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ee),P=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(ee);var g=Ce},40875:function(vt,Me,a){"use strict";a.d(Me,{J:function(){return u}});var E=a(59301),C=a(33234),F=a(70425),Y=function(ce,se){var oe={};for(var be in ce)Object.prototype.hasOwnProperty.call(ce,be)&&se.indexOf(be)<0&&(oe[be]=ce[be]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,be=Object.getOwnPropertySymbols(ce);de<be.length;de++)se.indexOf(be[de])<0&&Object.prototype.propertyIsEnumerable.call(ce,be[de])&&(oe[be[de]]=ce[be[de]]);return oe};const A=E.createContext(null),u=E.forwardRef((ce,se)=>{const{children:oe}=ce,be=Y(ce,["children"]),de=E.useContext(A),N=E.useMemo(()=>Object.assign(Object.assign({},de),be),[de,be.prefixCls,be.mode,be.selectable]);return E.createElement(A.Provider,{value:N},E.createElement(C.BR,null,(0,F.supportNodeRef)(oe)?E.cloneElement(oe,{ref:se}):oe))});Me.Z=A},20834:function(vt,Me,a){"use strict";a.d(Me,{default:function(){return Le}});var E=a(15285),C=a(59301),F=a(45818),Y=a(92310),A=a.n(Y),u=a(36355),ce=function(f,y){var v={};for(var i in f)Object.prototype.hasOwnProperty.call(f,i)&&y.indexOf(i)<0&&(v[i]=f[i]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,i=Object.getOwnPropertySymbols(f);b<i.length;b++)y.indexOf(i[b])<0&&Object.prototype.propertyIsEnumerable.call(f,i[b])&&(v[i[b]]=f[i[b]]);return v},oe=f=>{const{prefixCls:y,className:v,dashed:i}=f,b=ce(f,["prefixCls","className","dashed"]),{getPrefixCls:U}=C.useContext(u.E_),_=U("menu",y),l=A()({[`${_}-item-divider-dashed`]:!!i},v);return C.createElement(E.iz,Object.assign({className:l},b))},be=a(11592),de=a(2738),N=a(6848),d=a(92343),ee=(0,C.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ce=f=>{var y;const{className:v,children:i,icon:b,title:U,danger:_}=f,{prefixCls:l,firstLevel:h,direction:o,disableMenuItemTitleTooltip:c,inlineCollapsed:p}=C.useContext(ee),O=Re=>{const Te=C.createElement("span",{className:`${l}-title-content`},i);return(!b||(0,d.l$)(i)&&i.type==="span")&&i&&Re&&h&&typeof i=="string"?C.createElement("div",{className:`${l}-inline-collapsed-noicon`},i.charAt(0)):Te},{siderCollapsed:K}=C.useContext(F.D);let ue=U;typeof U=="undefined"?ue=h?i:"":U===!1&&(ue="");const ie={title:ue};!K&&!p&&(ie.title=null,ie.open=!1);const fe=(0,be.Z)(i).length;let W=C.createElement(E.ck,Object.assign({},(0,de.Z)(f,["title","icon","danger"]),{className:A()({[`${l}-item-danger`]:_,[`${l}-item-only-child`]:(b?fe+1:fe)===1},v),title:typeof U=="string"?U:void 0}),(0,d.Tm)(b,{className:A()((0,d.l$)(b)?(y=b.props)===null||y===void 0?void 0:y.className:"",`${l}-item-icon`)}),O(p));return c||(W=C.createElement(N.Z,Object.assign({},ie,{placement:o==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),W)),W},T=f=>{var y;const{popupClassName:v,icon:i,title:b,theme:U}=f,_=C.useContext(ee),{prefixCls:l,inlineCollapsed:h,theme:o}=_,c=(0,E.Xl)();let p;if(!i)p=h&&!c.length&&b&&typeof b=="string"?C.createElement("div",{className:`${l}-inline-collapsed-noicon`},b.charAt(0)):C.createElement("span",{className:`${l}-title-content`},b);else{const K=(0,d.l$)(b)&&b.type==="span";p=C.createElement(C.Fragment,null,(0,d.Tm)(i,{className:A()((0,d.l$)(i)?(y=i.props)===null||y===void 0?void 0:y.className:"",`${l}-item-icon`)}),K?b:C.createElement("span",{className:`${l}-title-content`},b))}const O=C.useMemo(()=>Object.assign(Object.assign({},_),{firstLevel:!1}),[_]);return C.createElement(ee.Provider,{value:O},C.createElement(E.Wd,Object.assign({},(0,de.Z)(f,["icon"]),{title:p,popupClassName:A()(l,v,`${l}-${U||o}`)})))},P=a(18785),g=a(70425),R=a(62892),B=a(40875),$=function(f,y){var v={};for(var i in f)Object.prototype.hasOwnProperty.call(f,i)&&y.indexOf(i)<0&&(v[i]=f[i]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,i=Object.getOwnPropertySymbols(f);b<i.length;b++)y.indexOf(i[b])<0&&Object.prototype.propertyIsEnumerable.call(f,i[b])&&(v[i[b]]=f[i[b]]);return v};function w(f){return(f||[]).map((y,v)=>{if(y&&typeof y=="object"){const i=y,{label:b,children:U,key:_,type:l}=i,h=$(i,["label","children","key","type"]),o=_!=null?_:`tmp-${v}`;return U||l==="group"?l==="group"?C.createElement(E.BW,Object.assign({key:o},h,{title:b}),w(U)):C.createElement(T,Object.assign({key:o},h,{title:b}),w(U)):l==="divider"?C.createElement(oe,Object.assign({key:o},h)):C.createElement(Ce,Object.assign({key:o},h),b)}return null}).filter(y=>y)}function re(f){return C.useMemo(()=>f&&w(f),[f])}var X=a(64993),he=a(17313),D=a(8378),xe=a(13826),x=a(29878),M=a(83116),m=a(37613),pe=f=>{const{componentCls:y,motionDurationSlow:v,horizontalLineHeight:i,colorSplit:b,lineWidth:U,lineType:_,itemPaddingInline:l}=f;return{[`${y}-horizontal`]:{lineHeight:i,border:0,borderBottom:`${U}px ${_} ${b}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${y}-item, ${y}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${y}-item:hover,
|
|
> ${y}-item-active,
|
|
> ${y}-submenu ${y}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${y}-item, ${y}-submenu-title`]:{transition:[`border-color ${v}`,`background ${v}`].join(",")},[`${y}-submenu-arrow`]:{display:"none"}}}},le=f=>{let{componentCls:y,menuArrowOffset:v}=f;return{[`${y}-rtl`]:{direction:"rtl"},[`${y}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${y}-rtl${y}-vertical,
|
|
${y}-submenu-rtl ${y}-vertical`]:{[`${y}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${v})`},"&::after":{transform:`rotate(45deg) translateY(${v})`}}}}};const Q=f=>Object.assign({},(0,he.oN)(f));var H=(f,y)=>{const{componentCls:v,itemColor:i,itemSelectedColor:b,groupTitleColor:U,itemBg:_,subMenuItemBg:l,itemSelectedBg:h,activeBarHeight:o,activeBarWidth:c,activeBarBorderWidth:p,motionDurationSlow:O,motionEaseInOut:K,motionEaseOut:ue,itemPaddingInline:ie,motionDurationMid:fe,itemHoverColor:W,lineType:Re,colorSplit:Te,itemDisabledColor:V,dangerItemColor:Pe,dangerItemHoverColor:Ge,dangerItemSelectedColor:Ze,dangerItemActiveBg:ze,dangerItemSelectedBg:rt,itemHoverBg:_t,itemActiveBg:ct,menuSubMenuBg:st,horizontalItemSelectedColor:ht,horizontalItemSelectedBg:Ue,horizontalItemBorderRadius:Fe,horizontalItemHoverBg:tt,popupBg:Et}=f;return{[`${v}-${y}, ${v}-${y} > ${v}`]:{color:i,background:_,[`&${v}-root:focus-visible`]:Object.assign({},Q(f)),[`${v}-item-group-title`]:{color:U},[`${v}-submenu-selected`]:{[`> ${v}-submenu-title`]:{color:b}},[`${v}-item-disabled, ${v}-submenu-disabled`]:{color:`${V} !important`},[`${v}-item:not(${v}-item-selected):not(${v}-submenu-selected)`]:{[`&:hover, > ${v}-submenu-title:hover`]:{color:W}},[`&:not(${v}-horizontal)`]:{[`${v}-item:not(${v}-item-selected)`]:{"&:hover":{backgroundColor:_t},"&:active":{backgroundColor:ct}},[`${v}-submenu-title`]:{"&:hover":{backgroundColor:_t},"&:active":{backgroundColor:ct}}},[`${v}-item-danger`]:{color:Pe,[`&${v}-item:hover`]:{[`&:not(${v}-item-selected):not(${v}-submenu-selected)`]:{color:Ge}},[`&${v}-item:active`]:{background:ze}},[`${v}-item a`]:{"&, &:hover":{color:"inherit"}},[`${v}-item-selected`]:{color:b,[`&${v}-item-danger`]:{color:Ze},"a, a:hover":{color:"inherit"}},[`& ${v}-item-selected`]:{backgroundColor:h,[`&${v}-item-danger`]:{backgroundColor:rt}},[`${v}-item, ${v}-submenu-title`]:{[`&:not(${v}-item-disabled):focus-visible`]:Object.assign({},Q(f))},[`&${v}-submenu > ${v}`]:{backgroundColor:st},[`&${v}-popup > ${v}`]:{backgroundColor:Et},[`&${v}-horizontal`]:Object.assign(Object.assign({},y==="dark"?{borderBottom:0}:{}),{[`> ${v}-item, > ${v}-submenu`]:{top:p,marginTop:-p,marginBottom:0,borderRadius:Fe,"&::after":{position:"absolute",insetInline:ie,bottom:0,borderBottom:`${o}px solid transparent`,transition:`border-color ${O} ${K}`,content:'""'},"&:hover, &-active, &-open":{background:tt,"&::after":{borderBottomWidth:o,borderBottomColor:ht}},"&-selected":{color:ht,backgroundColor:Ue,"&:hover":{backgroundColor:Ue},"&::after":{borderBottomWidth:o,borderBottomColor:ht}}}}),[`&${v}-root`]:{[`&${v}-inline, &${v}-vertical`]:{borderInlineEnd:`${p}px ${Re} ${Te}`}},[`&${v}-inline`]:{[`${v}-sub${v}-inline`]:{background:l},[`${v}-item, ${v}-submenu-title`]:p&&c?{width:`calc(100% + ${p}px)`}:{},[`${v}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${c}px solid ${b}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${fe} ${ue}`,`opacity ${fe} ${ue}`].join(","),content:'""'},[`&${v}-item-danger`]:{"&::after":{borderInlineEndColor:Ze}}},[`${v}-selected, ${v}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${fe} ${K}`,`opacity ${fe} ${K}`].join(",")}}}}}};const J=f=>{const{componentCls:y,itemHeight:v,itemMarginInline:i,padding:b,menuArrowSize:U,marginXS:_,itemMarginBlock:l}=f,h=b+U+_;return{[`${y}-item`]:{position:"relative",overflow:"hidden"},[`${y}-item, ${y}-submenu-title`]:{height:v,lineHeight:`${v}px`,paddingInline:b,overflow:"hidden",textOverflow:"ellipsis",marginInline:i,marginBlock:l,width:`calc(100% - ${i*2}px)`},[`> ${y}-item,
|
|
> ${y}-submenu > ${y}-submenu-title`]:{height:v,lineHeight:`${v}px`},[`${y}-item-group-list ${y}-submenu-title,
|
|
${y}-submenu-title`]:{paddingInlineEnd:h}}};var ye=f=>{const{componentCls:y,iconCls:v,itemHeight:i,colorTextLightSolid:b,dropdownWidth:U,controlHeightLG:_,motionDurationMid:l,motionEaseOut:h,paddingXL:o,itemMarginInline:c,fontSizeLG:p,motionDurationSlow:O,paddingXS:K,boxShadowSecondary:ue,collapsedWidth:ie,collapsedIconSize:fe}=f,W={height:i,lineHeight:`${i}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[y]:{"&-inline, &-vertical":Object.assign({[`&${y}-root`]:{boxShadow:"none"}},J(f))},[`${y}-submenu-popup`]:{[`${y}-vertical`]:Object.assign(Object.assign({},J(f)),{boxShadow:ue})}},{[`${y}-submenu-popup ${y}-vertical${y}-sub`]:{minWidth:U,maxHeight:`calc(100vh - ${_*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${y}-inline`]:{width:"100%",[`&${y}-root`]:{[`${y}-item, ${y}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${O}`,`background ${O}`,`padding ${l} ${h}`].join(","),[`> ${y}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${y}-sub${y}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${y}-submenu > ${y}-submenu-title`]:W,[`& ${y}-item-group-title`]:{paddingInlineStart:o}},[`${y}-item`]:W}},{[`${y}-inline-collapsed`]:{width:ie,[`&${y}-root`]:{[`${y}-item, ${y}-submenu ${y}-submenu-title`]:{[`> ${y}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center"}}},[`> ${y}-item,
|
|
> ${y}-item-group > ${y}-item-group-list > ${y}-item,
|
|
> ${y}-item-group > ${y}-item-group-list > ${y}-submenu > ${y}-submenu-title,
|
|
> ${y}-submenu > ${y}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${p/2}px - ${c}px)`,textOverflow:"clip",[`
|
|
${y}-submenu-arrow,
|
|
${y}-submenu-expand-icon
|
|
`]:{opacity:0},[`${y}-item-icon, ${v}`]:{margin:0,fontSize:fe,lineHeight:`${i}px`,"+ span":{display:"inline-block",opacity:0}}},[`${y}-item-icon, ${v}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${y}-item-icon, ${v}`]:{display:"none"},"a, a:hover":{color:b}},[`${y}-item-group-title`]:Object.assign(Object.assign({},he.vS),{paddingInline:K})}}]};const Ne=f=>{const{componentCls:y,motionDurationSlow:v,motionDurationMid:i,motionEaseInOut:b,motionEaseOut:U,iconCls:_,iconSize:l,iconMarginInlineEnd:h}=f;return{[`${y}-item, ${y}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${v}`,`background ${v}`,`padding ${v} ${b}`].join(","),[`${y}-item-icon, ${_}`]:{minWidth:l,fontSize:l,transition:[`font-size ${i} ${U}`,`margin ${v} ${b}`,`color ${v}`].join(","),"+ span":{marginInlineStart:h,opacity:1,transition:[`opacity ${v} ${b}`,`margin ${v}`,`color ${v}`].join(",")}},[`${y}-item-icon`]:Object.assign({},(0,he.Ro)()),[`&${y}-item-only-child`]:{[`> ${_}, > ${y}-item-icon`]:{marginInlineEnd:0}}},[`${y}-item-disabled, ${y}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${y}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ke=f=>{const{componentCls:y,motionDurationSlow:v,motionEaseInOut:i,borderRadius:b,menuArrowSize:U,menuArrowOffset:_}=f;return{[`${y}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:f.margin,width:U,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${v} ${i}, opacity ${v}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:U*.6,height:U*.15,backgroundColor:"currentcolor",borderRadius:b,transition:[`background ${v} ${i}`,`transform ${v} ${i}`,`top ${v} ${i}`,`color ${v} ${i}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${_})`},"&::after":{transform:`rotate(-45deg) translateY(${_})`}}}}},Oe=f=>{const{antCls:y,componentCls:v,fontSize:i,motionDurationSlow:b,motionDurationMid:U,motionEaseInOut:_,paddingXS:l,padding:h,colorSplit:o,lineWidth:c,zIndexPopup:p,borderRadiusLG:O,subMenuItemBorderRadius:K,menuArrowSize:ue,menuArrowOffset:ie,lineType:fe,menuPanelMaskInset:W,groupTitleLineHeight:Re,groupTitleFontSize:Te}=f;return[{"":{[`${v}`]:Object.assign(Object.assign({},(0,he.dF)()),{"&-hidden":{display:"none"}})},[`${v}-submenu-hidden`]:{display:"none"}},{[v]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,he.Wf)(f)),(0,he.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:i,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${b} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${v}-item`]:{flex:"none"}},[`${v}-item, ${v}-submenu, ${v}-submenu-title`]:{borderRadius:f.itemBorderRadius},[`${v}-item-group-title`]:{padding:`${l}px ${h}px`,fontSize:Te,lineHeight:Re,transition:`all ${b}`},[`&-horizontal ${v}-submenu`]:{transition:[`border-color ${b} ${_}`,`background ${b} ${_}`].join(",")},[`${v}-submenu, ${v}-submenu-inline`]:{transition:[`border-color ${b} ${_}`,`background ${b} ${_}`,`padding ${U} ${_}`].join(",")},[`${v}-submenu ${v}-sub`]:{cursor:"initial",transition:[`background ${b} ${_}`,`padding ${b} ${_}`].join(",")},[`${v}-title-content`]:{transition:`color ${b}`},[`${v}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${v}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:o,borderStyle:fe,borderWidth:0,borderTopWidth:c,marginBlock:c,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ne(f)),{[`${v}-item-group`]:{[`${v}-item-group-list`]:{margin:0,padding:0,[`${v}-item, ${v}-submenu-title`]:{paddingInline:`${i*2}px ${h}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,borderRadius:O,boxShadow:"none",transformOrigin:"0 0",[`&${v}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${W}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:W},"\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:f.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:f.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:f.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:f.paddingXS},[`> ${v}`]:Object.assign(Object.assign(Object.assign({borderRadius:O},Ne(f)),ke(f)),{[`${v}-item, ${v}-submenu > ${v}-submenu-title`]:{borderRadius:K},[`${v}-submenu-title::after`]:{transition:`transform ${b} ${_}`}})}}),ke(f)),{[`&-inline-collapsed ${v}-submenu-arrow,
|
|
&-inline ${v}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ie})`},"&::after":{transform:`rotate(45deg) translateX(-${ie})`}},[`${v}-submenu-open${v}-submenu-inline > ${v}-submenu-title > ${v}-submenu-arrow`]:{transform:`translateY(-${ue*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ie})`},"&::before":{transform:`rotate(45deg) translateX(${ie})`}}})},{[`${y}-layout-header`]:{[v]:{lineHeight:"inherit"}}}]};var et=(f,y)=>(0,M.Z)("Menu",i=>{if(y===!1)return[];const{colorBgElevated:b,colorPrimary:U,colorTextLightSolid:_,controlHeightLG:l,fontSize:h,darkItemColor:o,darkDangerItemColor:c,darkItemBg:p,darkSubMenuItemBg:O,darkItemSelectedColor:K,darkItemSelectedBg:ue,darkDangerItemSelectedBg:ie,darkItemHoverBg:fe,darkGroupTitleColor:W,darkItemHoverColor:Re,darkItemDisabledColor:Te,darkDangerItemHoverColor:V,darkDangerItemSelectedColor:Pe,darkDangerItemActiveBg:Ge}=i,Ze=h/7*5,ze=(0,m.TS)(i,{menuArrowSize:Ze,menuHorizontalHeight:l*1.15,menuArrowOffset:`${Ze*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:b}),rt=(0,m.TS)(ze,{itemColor:o,itemHoverColor:Re,groupTitleColor:W,itemSelectedColor:K,itemBg:p,popupBg:p,subMenuItemBg:O,itemActiveBg:"transparent",itemSelectedBg:ue,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:fe,itemDisabledColor:Te,dangerItemColor:c,dangerItemHoverColor:V,dangerItemSelectedColor:Pe,dangerItemActiveBg:Ge,dangerItemSelectedBg:ie,menuSubMenuBg:O,horizontalItemSelectedColor:_,horizontalItemSelectedBg:U});return[Oe(ze),pe(ze),ye(ze),H(ze,"light"),H(rt,"dark"),le(ze),(0,D.Z)(ze),(0,xe.oN)(ze,"slide-up"),(0,xe.oN)(ze,"slide-down"),(0,x._y)(ze,"zoom-big")]},i=>{const{colorPrimary:b,colorError:U,colorTextDisabled:_,colorErrorBg:l,colorText:h,colorTextDescription:o,colorBgContainer:c,colorFillAlter:p,colorFillContent:O,lineWidth:K,lineWidthBold:ue,controlItemBgActive:ie,colorBgTextHover:fe,controlHeightLG:W,lineHeight:Re,colorBgElevated:Te,marginXXS:V,padding:Pe,fontSize:Ge,controlHeightSM:Ze,fontSizeLG:ze,colorTextLightSolid:rt,colorErrorHover:_t}=i,ct=new X.C(rt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:i.zIndexPopupBase+50,radiusItem:i.borderRadiusLG,itemBorderRadius:i.borderRadiusLG,radiusSubMenuItem:i.borderRadiusSM,subMenuItemBorderRadius:i.borderRadiusSM,colorItemText:h,itemColor:h,colorItemTextHover:h,itemHoverColor:h,colorItemTextHoverHorizontal:b,horizontalItemHoverColor:b,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:b,itemSelectedColor:b,colorItemTextSelectedHorizontal:b,horizontalItemSelectedColor:b,colorItemBg:c,itemBg:c,colorItemBgHover:fe,itemHoverBg:fe,colorItemBgActive:O,itemActiveBg:ie,colorSubItemBg:p,subMenuItemBg:p,colorItemBgSelected:ie,itemSelectedBg:ie,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ue,activeBarHeight:ue,colorActiveBarBorderSize:K,activeBarBorderWidth:K,colorItemTextDisabled:_,itemDisabledColor:_,colorDangerItemText:U,dangerItemColor:U,colorDangerItemTextHover:U,dangerItemHoverColor:U,colorDangerItemTextSelected:U,dangerItemSelectedColor:U,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:i.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:W,groupTitleLineHeight:Re,collapsedWidth:W*2,popupBg:Te,itemMarginBlock:V,itemPaddingInline:Pe,horizontalLineHeight:`${W*1.15}px`,iconSize:Ge,iconMarginInlineEnd:Ze-Ge,collapsedIconSize:ze,groupTitleFontSize:Ge,darkItemDisabledColor:new X.C(rt).setAlpha(.25).toRgbString(),darkItemColor:ct,darkDangerItemColor:U,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:rt,darkItemSelectedBg:b,darkDangerItemSelectedBg:U,darkItemHoverBg:"transparent",darkGroupTitleColor:ct,darkItemHoverColor:rt,darkDangerItemHoverColor:_t,darkDangerItemSelectedColor:rt,darkDangerItemActiveBg:U}},{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"]]})(f),Ke=function(f,y){var v={};for(var i in f)Object.prototype.hasOwnProperty.call(f,i)&&y.indexOf(i)<0&&(v[i]=f[i]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,i=Object.getOwnPropertySymbols(f);b<i.length;b++)y.indexOf(i[b])<0&&Object.prototype.propertyIsEnumerable.call(f,i[b])&&(v[i[b]]=f[i[b]]);return v},Xe=(0,C.forwardRef)((f,y)=>{var v,i;const b=C.useContext(B.Z),U=b||{},{getPrefixCls:_,getPopupContainer:l,direction:h,menu:o}=C.useContext(u.E_),c=_(),{prefixCls:p,className:O,style:K,theme:ue="light",expandIcon:ie,_internalDisableMenuItemTitleTooltip:fe,inlineCollapsed:W,siderCollapsed:Re,items:Te,children:V,rootClassName:Pe,mode:Ge,selectable:Ze,onClick:ze,overflowedIndicatorPopupClassName:rt}=f,_t=Ke(f,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ct=(0,de.Z)(_t,["collapsedWidth"]),st=re(Te)||V;(v=U.validator)===null||v===void 0||v.call(U,{mode:Ge});const ht=(0,g.useEvent)(function(){var at;ze==null||ze.apply(void 0,arguments),(at=U.onClick)===null||at===void 0||at.call(U)}),Ue=U.mode||Ge,Fe=Ze!=null?Ze:U.selectable,tt=C.useMemo(()=>Re!==void 0?Re:W,[W,Re]),Et={horizontal:{motionName:`${c}-slide-up`},inline:(0,R.Z)(c),other:{motionName:`${c}-zoom-big`}},mt=_("menu",p||U.prefixCls),[xt,Ot]=et(mt,!b),gt=A()(`${mt}-${ue}`,o==null?void 0:o.className,O);let Rt;if(typeof ie=="function")Rt=ie;else if(ie===null||ie===!1)Rt=null;else if(U.expandIcon===null||U.expandIcon===!1)Rt=null;else{const at=ie!=null?ie:U.expandIcon;Rt=(0,d.Tm)(at,{className:A()(`${mt}-submenu-expand-icon`,(0,d.l$)(at)?(i=at.props)===null||i===void 0?void 0:i.className:"")})}const it=C.useMemo(()=>({prefixCls:mt,inlineCollapsed:tt||!1,direction:h,firstLevel:!0,theme:ue,mode:Ue,disableMenuItemTitleTooltip:fe}),[mt,tt,h,fe,ue]);return xt(C.createElement(B.Z.Provider,{value:null},C.createElement(ee.Provider,{value:it},C.createElement(E.ZP,Object.assign({getPopupContainer:l,overflowedIndicator:C.createElement(P.Z,null),overflowedIndicatorPopupClassName:A()(mt,`${mt}-${ue}`,rt),mode:Ue,selectable:Fe,onClick:ht},ct,{inlineCollapsed:tt,style:Object.assign(Object.assign({},o==null?void 0:o.style),K),className:gt,prefixCls:mt,direction:h,defaultMotions:Et,expandIcon:Rt,ref:y,rootClassName:A()(Pe,Ot)}),st))))});const G=(0,C.forwardRef)((f,y)=>{const v=(0,C.useRef)(null),i=C.useContext(F.D);return(0,C.useImperativeHandle)(y,()=>({menu:v.current,focus:b=>{var U;(U=v.current)===null||U===void 0||U.focus(b)}})),C.createElement(Xe,Object.assign({ref:v},f,i))});G.Item=Ce,G.SubMenu=T,G.Divider=oe,G.ItemGroup=E.BW;var Le=G},13570:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return Q}});var E=a(60499),C=a(59301),F={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"},Y=F,A=a(7657),u=function(H,J){return C.createElement(A.Z,(0,E.Z)({},H,{ref:J,icon:Y}))},ce=C.forwardRef(u),se=ce,oe=a(92310),be=a.n(oe),de=a(18642),N=a(72190),d=a(42244),ne=a(18929),ee=a(10228),Z=a(26112);function Ce(L,H){var J=L.disabled,ae=L.prefixCls,ye=L.character,Ne=L.characterRender,ke=L.index,Oe=L.count,et=L.value,Ke=L.allowHalf,je=L.focused,Xe=L.onHover,G=L.onClick,Le=function(l){Xe(l,ke)},f=function(l){G(l,ke)},y=function(l){l.keyCode===ee.Z.ENTER&&G(l,ke)},v=ke+1,i=new Set([ae]);et===0&&ke===0&&je?i.add("".concat(ae,"-focused")):Ke&&et+.5>=v&&et<v?(i.add("".concat(ae,"-half")),i.add("".concat(ae,"-active")),je&&i.add("".concat(ae,"-focused"))):(v<=et?i.add("".concat(ae,"-full")):i.add("".concat(ae,"-zero")),v===et&&je&&i.add("".concat(ae,"-focused")));var b=typeof ye=="function"?ye(L):ye,U=C.createElement("li",{className:be()(Array.from(i)),ref:H},C.createElement("div",{onClick:J?null:f,onKeyDown:J?null:y,onMouseMove:J?null:Le,role:"radio","aria-checked":et>ke?"true":"false","aria-posinset":ke+1,"aria-setsize":Oe,tabIndex:J?-1:0},C.createElement("div",{className:"".concat(ae,"-first")},b),C.createElement("div",{className:"".concat(ae,"-second")},b)));return Ne&&(U=Ne(U,L)),U}var j=C.forwardRef(Ce);function T(){var L=C.useRef({});function H(ae){return L.current[ae]}function J(ae){return function(ye){L.current[ae]=ye}}return[H,J]}function P(L){var H=L.pageXOffset,J="scrollLeft";if(typeof H!="number"){var ae=L.document;H=ae.documentElement[J],typeof H!="number"&&(H=ae.body[J])}return H}function g(L){var H,J,ae=L.ownerDocument,ye=ae.body,Ne=ae&&ae.documentElement,ke=L.getBoundingClientRect();return H=ke.left,J=ke.top,H-=Ne.clientLeft||ye.clientLeft||0,J-=Ne.clientTop||ye.clientTop||0,{left:H,top:J}}function R(L){var H=g(L),J=L.ownerDocument,ae=J.defaultView||J.parentWindow;return H.left+=P(ae),H.left}var B=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function $(L,H){var J,ae=L.prefixCls,ye=ae===void 0?"rc-rate":ae,Ne=L.className,ke=L.defaultValue,Oe=L.value,et=L.count,Ke=et===void 0?5:et,je=L.allowHalf,Xe=je===void 0?!1:je,G=L.allowClear,Le=G===void 0?!0:G,f=L.character,y=f===void 0?"\u2605":f,v=L.characterRender,i=L.disabled,b=L.direction,U=b===void 0?"ltr":b,_=L.tabIndex,l=_===void 0?0:_,h=L.autoFocus,o=L.onHoverChange,c=L.onChange,p=L.onFocus,O=L.onBlur,K=L.onKeyDown,ue=L.onMouseLeave,ie=(0,d.Z)(L,B),fe=T(),W=(0,N.Z)(fe,2),Re=W[0],Te=W[1],V=C.useRef(null),Pe=function(){if(!i){var I;(I=V.current)===null||I===void 0||I.focus()}};C.useImperativeHandle(H,function(){return{focus:Pe,blur:function(){if(!i){var I;(I=V.current)===null||I===void 0||I.blur()}}}});var Ge=(0,ne.Z)(ke||0,{value:Oe}),Ze=(0,N.Z)(Ge,2),ze=Ze[0],rt=Ze[1],_t=(0,ne.Z)(null),ct=(0,N.Z)(_t,2),st=ct[0],ht=ct[1],Ue=function(I,Ie){var Se=U==="rtl",De=I+1;if(Xe){var Qe=Re(I),ot=R(Qe),Be=Qe.clientWidth;(Se&&Ie-ot>Be/2||!Se&&Ie-ot<Be/2)&&(De-=.5)}return De},Fe=function(I){rt(I),c==null||c(I)},tt=C.useState(!1),Et=(0,N.Z)(tt,2),mt=Et[0],xt=Et[1],Ot=function(){xt(!0),p==null||p()},gt=function(){xt(!1),O==null||O()},Rt=C.useState(null),it=(0,N.Z)(Rt,2),at=it[0],Ve=it[1],me=function(I,Ie){var Se=Ue(Ie,I.pageX);Se!==st&&(Ve(Se),ht(null)),o==null||o(Se)},e=function(I){i||(Ve(null),ht(null),o==null||o(void 0)),I&&(ue==null||ue(I))},t=function(I,Ie){var Se=Ue(Ie,I.pageX),De=!1;Le&&(De=Se===ze),e(),Fe(De?0:Se),ht(De?Se:null)},n=function(I){var Ie=I.keyCode,Se=U==="rtl",De=ze;Ie===ee.Z.RIGHT&&De<Ke&&!Se?(Xe?De+=.5:De+=1,Fe(De),I.preventDefault()):Ie===ee.Z.LEFT&&De>0&&!Se||Ie===ee.Z.RIGHT&&De>0&&Se?(Xe?De-=.5:De-=1,Fe(De),I.preventDefault()):Ie===ee.Z.LEFT&&De<Ke&&Se&&(Xe?De+=.5:De+=1,Fe(De),I.preventDefault()),K==null||K(I)};C.useEffect(function(){h&&!i&&Pe()},[]);var r=new Array(Ke).fill(0).map(function(S,I){return C.createElement(j,{ref:Te(I),index:I,count:Ke,disabled:i,prefixCls:"".concat(ye,"-star"),allowHalf:Xe,value:at===null?ze:at,onClick:t,onHover:me,key:S||I,character:y,characterRender:v,focused:mt})}),s=be()(ye,Ne,(J={},(0,de.Z)(J,"".concat(ye,"-disabled"),i),(0,de.Z)(J,"".concat(ye,"-rtl"),U==="rtl"),J));return C.createElement("ul",(0,E.Z)({className:s,onMouseLeave:e,tabIndex:i?-1:l,onFocus:i?null:Ot,onBlur:i?null:gt,onKeyDown:i?null:n,ref:V,role:"radiogroup"},(0,Z.Z)(ie,{aria:!0,data:!0,attr:!0})),r)}var w=C.forwardRef($),re=w,X=a(36355),he=a(6848),D=a(17313),xe=a(83116),x=a(37613);const M=L=>{const{componentCls:H}=L;return{[`${H}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:L.marginXS},"> div":{transition:`all ${L.motionDurationMid}, outline 0s`,"&:hover":{transform:L.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${L.lineWidth}px dashed ${L.starColor}`,transform:L.starHoverScale}},"&-first, &-second":{color:L.starBg,transition:`all ${L.motionDurationMid}`,userSelect:"none",[L.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${H}-star-first, &-half ${H}-star-second`]:{opacity:1},[`&-half ${H}-star-first, &-full ${H}-star-second`]:{color:"inherit"}}}},m=L=>({[`&-rtl${L.componentCls}`]:{direction:"rtl"}}),k=L=>{const{componentCls:H}=L;return{[H]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(L)),{display:"inline-block",margin:0,padding:0,color:L.starColor,fontSize:L.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${H} ${H}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),M(L)),{[`+ ${H}-text`]:{display:"inline-block",marginInlineStart:L.marginXS,fontSize:L.fontSize}}),m(L))}};var pe=(0,xe.Z)("Rate",L=>{const H=(0,x.TS)(L,{});return[k(H)]},L=>({starColor:L.yellow6,starSize:L.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:L.colorFillContent})),z=function(L,H){var J={};for(var ae in L)Object.prototype.hasOwnProperty.call(L,ae)&&H.indexOf(ae)<0&&(J[ae]=L[ae]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,ae=Object.getOwnPropertySymbols(L);ye<ae.length;ye++)H.indexOf(ae[ye])<0&&Object.prototype.propertyIsEnumerable.call(L,ae[ye])&&(J[ae[ye]]=L[ae[ye]]);return J},Q=C.forwardRef((L,H)=>{const{prefixCls:J,className:ae,rootClassName:ye,style:Ne,tooltips:ke,character:Oe=C.createElement(se,null)}=L,et=z(L,["prefixCls","className","rootClassName","style","tooltips","character"]),Ke=(i,b)=>{let{index:U}=b;return ke?C.createElement(he.Z,{title:ke[U]},i):i},{getPrefixCls:je,direction:Xe,rate:G}=C.useContext(X.E_),Le=je("rate",J),[f,y]=pe(Le),v=Object.assign(Object.assign({},G==null?void 0:G.style),Ne);return f(C.createElement(re,Object.assign({ref:H,character:Oe,characterRender:Ke},et,{className:be()(ae,ye,y,G==null?void 0:G.className),style:v,prefixCls:Le,direction:Xe})))})},8378:function(vt,Me){"use strict";const a=E=>({[E.componentCls]:{[`${E.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${E.motionDurationMid} ${E.motionEaseInOut},
|
|
opacity ${E.motionDurationMid} ${E.motionEaseInOut} !important`}},[`${E.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${E.motionDurationMid} ${E.motionEaseInOut},
|
|
opacity ${E.motionDurationMid} ${E.motionEaseInOut} !important`}}});Me.Z=a},92899:function(vt,Me,a){"use strict";a.d(Me,{Fm:function(){return N}});var E=a(36237),C=a(95406);const F=new E.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Y=new E.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),A=new E.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new E.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ce=new E.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),se=new E.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),oe=new E.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),be=new E.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),de={"move-up":{inKeyframes:oe,outKeyframes:be},"move-down":{inKeyframes:F,outKeyframes:Y},"move-left":{inKeyframes:A,outKeyframes:u},"move-right":{inKeyframes:ce,outKeyframes:se}},N=(d,ne)=>{const{antCls:ee}=d,Z=`${ee}-${ne}`,{inKeyframes:Ce,outKeyframes:j}=de[ne];return[(0,C.R)(Z,Ce,j,d.motionDurationMid),{[`
|
|
${Z}-enter,
|
|
${Z}-appear
|
|
`]:{opacity:0,animationTimingFunction:d.motionEaseOutCirc},[`${Z}-leave`]:{animationTimingFunction:d.motionEaseInOutCirc}}]}},13826:function(vt,Me,a){"use strict";a.d(Me,{Qt:function(){return A},Uw:function(){return Y},fJ:function(){return F},ly:function(){return u},oN:function(){return N}});var E=a(36237),C=a(95406);const F=new E.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Y=new E.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),A=new E.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),u=new E.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ce=new E.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),se=new E.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),oe=new E.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),be=new E.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),de={"slide-up":{inKeyframes:F,outKeyframes:Y},"slide-down":{inKeyframes:A,outKeyframes:u},"slide-left":{inKeyframes:ce,outKeyframes:se},"slide-right":{inKeyframes:oe,outKeyframes:be}},N=(d,ne)=>{const{antCls:ee}=d,Z=`${ee}-${ne}`,{inKeyframes:Ce,outKeyframes:j}=de[ne];return[(0,C.R)(Z,Ce,j,d.motionDurationMid),{[`
|
|
${Z}-enter,
|
|
${Z}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:d.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Z}-leave`]:{animationTimingFunction:d.motionEaseInQuint}}]}},78673:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return xe}});var E=a(58617),C=a(92310),F=a.n(C),Y=a(60499),A=a(18642),u=a(72190),ce=a(42244),se=a(59301),oe=a(18929),be=a(10228),de=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],N=se.forwardRef(function(x,M){var m,k=x.prefixCls,pe=k===void 0?"rc-switch":k,z=x.className,le=x.checked,Q=x.defaultChecked,L=x.disabled,H=x.loadingIcon,J=x.checkedChildren,ae=x.unCheckedChildren,ye=x.onClick,Ne=x.onChange,ke=x.onKeyDown,Oe=(0,ce.Z)(x,de),et=(0,oe.Z)(!1,{value:le,defaultValue:Q}),Ke=(0,u.Z)(et,2),je=Ke[0],Xe=Ke[1];function G(v,i){var b=je;return L||(b=v,Xe(b),Ne==null||Ne(b,i)),b}function Le(v){v.which===be.Z.LEFT?G(!1,v):v.which===be.Z.RIGHT&&G(!0,v),ke==null||ke(v)}function f(v){var i=G(!je,v);ye==null||ye(i,v)}var y=F()(pe,z,(m={},(0,A.Z)(m,"".concat(pe,"-checked"),je),(0,A.Z)(m,"".concat(pe,"-disabled"),L),m));return se.createElement("button",(0,Y.Z)({},Oe,{type:"button",role:"switch","aria-checked":je,disabled:L,className:y,ref:M,onKeyDown:Le,onClick:f}),H,se.createElement("span",{className:"".concat(pe,"-inner")},se.createElement("span",{className:"".concat(pe,"-inner-checked")},J),se.createElement("span",{className:"".concat(pe,"-inner-unchecked")},ae)))});N.displayName="Switch";var d=N,ne=a(14088),ee=a(36355),Z=a(1684),Ce=a(19716),j=a(64993),T=a(17313),P=a(83116),g=a(37613);const R=x=>{const{componentCls:M,trackHeightSM:m,trackPadding:k,trackMinWidthSM:pe,innerMinMarginSM:z,innerMaxMarginSM:le,handleSizeSM:Q}=x,L=`${M}-inner`;return{[M]:{[`&${M}-small`]:{minWidth:pe,height:m,lineHeight:`${m}px`,[`${M}-inner`]:{paddingInlineStart:le,paddingInlineEnd:z,[`${L}-checked`]:{marginInlineStart:`calc(-100% + ${Q+k*2}px - ${le*2}px)`,marginInlineEnd:`calc(100% - ${Q+k*2}px + ${le*2}px)`},[`${L}-unchecked`]:{marginTop:-m,marginInlineStart:0,marginInlineEnd:0}},[`${M}-handle`]:{width:Q,height:Q},[`${M}-loading-icon`]:{top:(Q-x.switchLoadingIconSize)/2,fontSize:x.switchLoadingIconSize},[`&${M}-checked`]:{[`${M}-inner`]:{paddingInlineStart:z,paddingInlineEnd:le,[`${L}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${L}-unchecked`]:{marginInlineStart:`calc(100% - ${Q+k*2}px + ${le*2}px)`,marginInlineEnd:`calc(-100% + ${Q+k*2}px - ${le*2}px)`}},[`${M}-handle`]:{insetInlineStart:`calc(100% - ${Q+k}px)`}},[`&:not(${M}-disabled):active`]:{[`&:not(${M}-checked) ${L}`]:{[`${L}-unchecked`]:{marginInlineStart:x.marginXXS/2,marginInlineEnd:-x.marginXXS/2}},[`&${M}-checked ${L}`]:{[`${L}-checked`]:{marginInlineStart:-x.marginXXS/2,marginInlineEnd:x.marginXXS/2}}}}}}},B=x=>{const{componentCls:M,handleSize:m}=x;return{[M]:{[`${M}-loading-icon${x.iconCls}`]:{position:"relative",top:(m-x.fontSize)/2,color:x.switchLoadingIconColor,verticalAlign:"top"},[`&${M}-checked ${M}-loading-icon`]:{color:x.switchColor}}}},$=x=>{const{componentCls:M,motion:m,trackPadding:k,handleBg:pe,handleShadow:z,handleSize:le}=x,Q=`${M}-handle`;return{[M]:{[Q]:{position:"absolute",top:k,insetInlineStart:k,width:le,height:le,transition:`all ${x.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:pe,borderRadius:le/2,boxShadow:z,transition:`all ${x.switchDuration} ease-in-out`,content:'""'}},[`&${M}-checked ${Q}`]:{insetInlineStart:`calc(100% - ${le+k}px)`},[`&:not(${M}-disabled):active`]:m?{[`${Q}::before`]:{insetInlineEnd:x.switchHandleActiveInset,insetInlineStart:0},[`&${M}-checked ${Q}::before`]:{insetInlineEnd:0,insetInlineStart:x.switchHandleActiveInset}}:{}}}},w=x=>{const{componentCls:M,trackHeight:m,trackPadding:k,innerMinMargin:pe,innerMaxMargin:z,handleSize:le}=x,Q=`${M}-inner`;return{[M]:{[Q]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:z,paddingInlineEnd:pe,transition:`padding-inline-start ${x.switchDuration} ease-in-out, padding-inline-end ${x.switchDuration} ease-in-out`,[`${Q}-checked, ${Q}-unchecked`]:{display:"block",color:x.colorTextLightSolid,fontSize:x.fontSizeSM,transition:`margin-inline-start ${x.switchDuration} ease-in-out, margin-inline-end ${x.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Q}-checked`]:{marginInlineStart:`calc(-100% + ${le+k*2}px - ${z*2}px)`,marginInlineEnd:`calc(100% - ${le+k*2}px + ${z*2}px)`},[`${Q}-unchecked`]:{marginTop:-m,marginInlineStart:0,marginInlineEnd:0}},[`&${M}-checked ${Q}`]:{paddingInlineStart:pe,paddingInlineEnd:z,[`${Q}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Q}-unchecked`]:{marginInlineStart:`calc(100% - ${le+k*2}px + ${z*2}px)`,marginInlineEnd:`calc(-100% + ${le+k*2}px - ${z*2}px)`}},[`&:not(${M}-disabled):active`]:{[`&:not(${M}-checked) ${Q}`]:{[`${Q}-unchecked`]:{marginInlineStart:k*2,marginInlineEnd:-k*2}},[`&${M}-checked ${Q}`]:{[`${Q}-checked`]:{marginInlineStart:-k*2,marginInlineEnd:k*2}}}}}},re=x=>{const{componentCls:M,trackHeight:m,trackMinWidth:k}=x;return{[M]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,T.Wf)(x)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:k,height:m,lineHeight:`${m}px`,verticalAlign:"middle",background:x.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${x.motionDurationMid}`,userSelect:"none",[`&:hover:not(${M}-disabled)`]:{background:x.colorTextTertiary}}),(0,T.Qy)(x)),{[`&${M}-checked`]:{background:x.switchColor,[`&:hover:not(${M}-disabled)`]:{background:x.colorPrimaryHover}},[`&${M}-loading, &${M}-disabled`]:{cursor:"not-allowed",opacity:x.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${M}-rtl`]:{direction:"rtl"}})}};var X=(0,P.Z)("Switch",x=>{const M=(0,g.TS)(x,{switchDuration:x.motionDurationMid,switchColor:x.colorPrimary,switchDisabledOpacity:x.opacityLoading,switchLoadingIconSize:x.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${x.opacityLoading})`,switchHandleActiveInset:"-30%"});return[re(M),w(M),$(M),B(M),R(M)]},x=>{const{fontSize:M,lineHeight:m,controlHeight:k,colorWhite:pe}=x,z=M*m,le=k/2,Q=2,L=z-Q*2,H=le-Q*2;return{trackHeight:z,trackHeightSM:le,trackMinWidth:L*2+Q*4,trackMinWidthSM:H*2+Q*2,trackPadding:Q,handleBg:pe,handleSize:L,handleSizeSM:H,handleShadow:`0 2px 4px 0 ${new j.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:L/2,innerMaxMargin:L+Q+Q*2,innerMinMarginSM:H/2,innerMaxMarginSM:H+Q+Q*2}}),he=function(x,M){var m={};for(var k in x)Object.prototype.hasOwnProperty.call(x,k)&&M.indexOf(k)<0&&(m[k]=x[k]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,k=Object.getOwnPropertySymbols(x);pe<k.length;pe++)M.indexOf(k[pe])<0&&Object.prototype.propertyIsEnumerable.call(x,k[pe])&&(m[k[pe]]=x[k[pe]]);return m};const D=se.forwardRef((x,M)=>{const{prefixCls:m,size:k,disabled:pe,loading:z,className:le,rootClassName:Q,style:L}=x,H=he(x,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:J,direction:ae,switch:ye}=se.useContext(ee.E_),Ne=se.useContext(Z.Z),ke=(pe!=null?pe:Ne)||z,Oe=J("switch",m),et=se.createElement("div",{className:`${Oe}-handle`},z&&se.createElement(E.Z,{className:`${Oe}-loading-icon`})),[Ke,je]=X(Oe),Xe=(0,Ce.Z)(k),G=F()(ye==null?void 0:ye.className,{[`${Oe}-small`]:Xe==="small",[`${Oe}-loading`]:z,[`${Oe}-rtl`]:ae==="rtl"},le,Q,je),Le=Object.assign(Object.assign({},ye==null?void 0:ye.style),L);return Ke(se.createElement(ne.Z,{component:"Switch"},se.createElement(d,Object.assign({},H,{prefixCls:Oe,className:G,style:Le,disabled:ke,ref:M,loadingIcon:et}))))});D.__ANT_SWITCH=!0;var xe=D},17574:function(vt,Me,a){"use strict";a.d(Me,{default:function(){return le}});var E=a(38028),C=a(77654),F=a(52671),Y=a(8657),A=a(60499),u=a(59301),ce={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"},se=ce,oe=a(7657),be=function(L,H){return u.createElement(oe.Z,(0,A.Z)({},L,{ref:H,icon:se}))},de=u.forwardRef(be),N=de,d=a(92310),ne=a.n(d),ee=a(35654),Z=a(71430),Ce=a(36355),j=a(56082),T=a(62892),P=a(20648);const g=4;function R(Q){const{dropPosition:L,dropLevelOffset:H,prefixCls:J,indent:ae,direction:ye="ltr"}=Q,Ne=ye==="ltr"?"left":"right",ke=ye==="ltr"?"right":"left",Oe={[Ne]:-H*ae+g,[ke]:0};switch(L){case-1:Oe.top=-3;break;case 1:Oe.bottom=-3;break;default:Oe.bottom=-3,Oe[Ne]=ae+g;break}return u.createElement("div",{style:Oe,className:`${J}-drop-indicator`})}var B=a(71997),w=u.forwardRef((Q,L)=>{const{getPrefixCls:H,direction:J,virtual:ae,tree:ye}=u.useContext(Ce.E_),{prefixCls:Ne,className:ke,showIcon:Oe=!1,showLine:et,switcherIcon:Ke,blockNode:je=!1,children:Xe,checkable:G=!1,selectable:Le=!0,draggable:f,motion:y,style:v}=Q,i=H("tree",Ne),b=H(),U=y!=null?y:Object.assign(Object.assign({},(0,T.Z)(b)),{motionAppear:!1}),_=Object.assign(Object.assign({},Q),{checkable:G,selectable:Le,showIcon:Oe,motion:U,blockNode:je,showLine:!!et,dropIndicatorRender:R}),[l,h]=(0,P.ZP)(i),o=u.useMemo(()=>{if(!f)return!1;let p={};switch(typeof f){case"function":p.nodeDraggable=f;break;case"object":p=Object.assign({},f);break;default:break}return p.icon!==!1&&(p.icon=p.icon||u.createElement(j.Z,null)),p},[f]),c=p=>u.createElement(B.Z,{prefixCls:i,switcherIcon:Ke,treeNodeProps:p,showLine:et});return l(u.createElement(E.Z,Object.assign({itemHeight:20,ref:L,virtual:ae},_,{style:Object.assign(Object.assign({},ye==null?void 0:ye.style),v),prefixCls:i,className:ne()({[`${i}-icon-hide`]:!Oe,[`${i}-block-node`]:je,[`${i}-unselectable`]:!Le,[`${i}-rtl`]:J==="rtl"},ye==null?void 0:ye.className,ke,h),direction:J,checkable:G&&u.createElement("span",{className:`${i}-checkbox-inner`}),selectable:Le,switcherIcon:c,draggable:o}),Xe))}),re;(function(Q){Q[Q.None=0]="None",Q[Q.Start=1]="Start",Q[Q.End=2]="End"})(re||(re={}));function X(Q,L){function H(J){const{key:ae,children:ye}=J;L(ae,J)!==!1&&X(ye||[],L)}Q.forEach(H)}function he(Q){let{treeData:L,expandedKeys:H,startKey:J,endKey:ae}=Q;const ye=[];let Ne=re.None;if(J&&J===ae)return[J];if(!J||!ae)return[];function ke(Oe){return Oe===J||Oe===ae}return X(L,Oe=>{if(Ne===re.End)return!1;if(ke(Oe)){if(ye.push(Oe),Ne===re.None)Ne=re.Start;else if(Ne===re.Start)return Ne=re.End,!1}else Ne===re.Start&&ye.push(Oe);return H.includes(Oe)}),ye}function D(Q,L){const H=(0,C.Z)(L),J=[];return X(Q,(ae,ye)=>{const Ne=H.indexOf(ae);return Ne!==-1&&(J.push(ye),H.splice(Ne,1)),!!H.length}),J}var xe=function(Q,L){var H={};for(var J in Q)Object.prototype.hasOwnProperty.call(Q,J)&&L.indexOf(J)<0&&(H[J]=Q[J]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,J=Object.getOwnPropertySymbols(Q);ae<J.length;ae++)L.indexOf(J[ae])<0&&Object.prototype.propertyIsEnumerable.call(Q,J[ae])&&(H[J[ae]]=Q[J[ae]]);return H};function x(Q){const{isLeaf:L,expanded:H}=Q;return L?u.createElement(F.Z,null):H?u.createElement(Y.Z,null):u.createElement(N,null)}function M(Q){let{treeData:L,children:H}=Q;return L||(0,Z.zn)(H)}const m=(Q,L)=>{var{defaultExpandAll:H,defaultExpandParent:J,defaultExpandedKeys:ae}=Q,ye=xe(Q,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ne=u.useRef(),ke=u.useRef(),Oe=()=>{const{keyEntities:o}=(0,Z.I8)(M(ye));let c;return H?c=Object.keys(o):J?c=(0,ee.r7)(ye.expandedKeys||ae||[],o):c=ye.expandedKeys||ae,c},[et,Ke]=u.useState(ye.selectedKeys||ye.defaultSelectedKeys||[]),[je,Xe]=u.useState(()=>Oe());u.useEffect(()=>{"selectedKeys"in ye&&Ke(ye.selectedKeys)},[ye.selectedKeys]),u.useEffect(()=>{"expandedKeys"in ye&&Xe(ye.expandedKeys)},[ye.expandedKeys]);const G=(o,c)=>{var p;return"expandedKeys"in ye||Xe(o),(p=ye.onExpand)===null||p===void 0?void 0:p.call(ye,o,c)},Le=(o,c)=>{var p;const{multiple:O}=ye,{node:K,nativeEvent:ue}=c,{key:ie=""}=K,fe=M(ye),W=Object.assign(Object.assign({},c),{selected:!0}),Re=(ue==null?void 0:ue.ctrlKey)||(ue==null?void 0:ue.metaKey),Te=ue==null?void 0:ue.shiftKey;let V;O&&Re?(V=o,Ne.current=ie,ke.current=V,W.selectedNodes=D(fe,V)):O&&Te?(V=Array.from(new Set([].concat((0,C.Z)(ke.current||[]),(0,C.Z)(he({treeData:fe,expandedKeys:je,startKey:ie,endKey:Ne.current}))))),W.selectedNodes=D(fe,V)):(V=[ie],Ne.current=ie,ke.current=V,W.selectedNodes=D(fe,V)),(p=ye.onSelect)===null||p===void 0||p.call(ye,V,W),"selectedKeys"in ye||Ke(V)},{getPrefixCls:f,direction:y}=u.useContext(Ce.E_),{prefixCls:v,className:i,showIcon:b=!0,expandAction:U="click"}=ye,_=xe(ye,["prefixCls","className","showIcon","expandAction"]),l=f("tree",v),h=ne()(`${l}-directory`,{[`${l}-directory-rtl`]:y==="rtl"},i);return u.createElement(w,Object.assign({icon:x,ref:L,blockNode:!0},_,{showIcon:b,expandAction:U,prefixCls:l,className:h,expandedKeys:je,selectedKeys:et,onSelect:Le,onExpand:G}))};var pe=u.forwardRef(m);const z=w;z.DirectoryTree=pe,z.TreeNode=E.O;var le=z},20648:function(vt,Me,a){"use strict";a.d(Me,{TM:function(){return d},Yk:function(){return N}});var E=a(36237),C=a(98447),F=a(17313),Y=a(8378),A=a(37613),u=a(83116);const ce=new E.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),se=(ne,ee)=>({[`.${ne}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ee.motionDurationSlow}`}}}),oe=(ne,ee)=>({[`.${ne}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ee.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ee.lineWidthBold}px solid ${ee.colorPrimary}`,borderRadius:"50%",content:'""'}}}),be=(ne,ee)=>{const{treeCls:Z,treeNodeCls:Ce,treeNodePadding:j,titleHeight:T,nodeSelectedBg:P,nodeHoverBg:g}=ee,R=ee.paddingXS;return{[Z]:Object.assign(Object.assign({},(0,F.Wf)(ee)),{background:ee.colorBgContainer,borderRadius:ee.borderRadius,transition:`background-color ${ee.motionDurationSlow}`,[`&${Z}-rtl`]:{[`${Z}-switcher`]:{"&_close":{[`${Z}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Z}-active-focused)`]:Object.assign({},(0,F.oN)(ee)),[`${Z}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Z}-block-node`]:{[`${Z}-list-holder-inner`]:{alignItems:"stretch",[`${Z}-node-content-wrapper`]:{flex:"auto"},[`${Ce}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:j,insetInlineStart:0,border:`1px solid ${ee.colorPrimary}`,opacity:0,animationName:ce,animationDuration:ee.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Ce}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${j}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Z}-node-content-wrapper`]:{color:ee.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Z}-node-content-wrapper`]:Object.assign({},(0,F.oN)(ee)),[`&:not(${Ce}-disabled).filter-node ${Z}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${Z}-draggable-icon`]:{flexShrink:0,width:T,lineHeight:`${T}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${ee.motionDurationSlow}`,[`${Ce}:hover &`]:{opacity:.45}},[`&${Ce}-disabled`]:{[`${Z}-draggable-icon`]:{visibility:"hidden"}}}},[`${Z}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:T}},[`${Z}-draggable-icon`]:{visibility:"hidden"},[`${Z}-switcher`]:Object.assign(Object.assign({},se(ne,ee)),{position:"relative",flex:"none",alignSelf:"stretch",width:T,margin:0,lineHeight:`${T}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${Z}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:ee.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:T/2,bottom:-j,marginInlineStart:-1,borderInlineEnd:`1px solid ${ee.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:T/2*.8,height:T/2,borderBottom:`1px solid ${ee.colorBorder}`,content:'""'}}}),[`${Z}-checkbox`]:{top:"initial",marginInlineEnd:R},[`${Z}-node-content-wrapper, ${Z}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:T,margin:0,padding:`0 ${ee.paddingXS/2}px`,color:"inherit",lineHeight:`${T}px`,background:"transparent",borderRadius:ee.borderRadius,cursor:"pointer",transition:`all ${ee.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:g},[`&${Z}-node-selected`]:{backgroundColor:P},[`${Z}-iconEle`]:{display:"inline-block",width:T,height:T,lineHeight:`${T}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Z}-unselectable ${Z}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Z}-node-content-wrapper`]:Object.assign({lineHeight:`${T}px`,userSelect:"none"},oe(ne,ee)),[`${Ce}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${ee.colorPrimary}`}},"&-show-line":{[`${Z}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:T/2,bottom:-j,borderInlineEnd:`1px solid ${ee.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Z}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Ce}-leaf-last`]:{[`${Z}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${T/2}px !important`}}}}})}},de=ne=>{const{treeCls:ee,treeNodeCls:Z,treeNodePadding:Ce,directoryNodeSelectedBg:j,directoryNodeSelectedColor:T}=ne;return{[`${ee}${ee}-directory`]:{[Z]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Ce,insetInlineStart:0,transition:`background-color ${ne.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ne.controlItemBgHover}},"> *":{zIndex:1},[`${ee}-switcher`]:{transition:`color ${ne.motionDurationMid}`},[`${ee}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${ee}-node-selected`]:{color:T,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:j},[`${ee}-switcher`]:{color:T},[`${ee}-node-content-wrapper`]:{color:T,background:"transparent"}}}}}},N=(ne,ee)=>{const Z=`.${ne}`,Ce=`${Z}-treenode`,j=ee.paddingXS/2,T=(0,A.TS)(ee,{treeCls:Z,treeNodeCls:Ce,treeNodePadding:j});return[be(ne,T),de(T)]},d=ne=>{const{controlHeightSM:ee}=ne;return{titleHeight:ee,nodeHoverBg:ne.controlItemBgHover,nodeSelectedBg:ne.controlItemBgActive}};Me.ZP=(0,u.Z)("Tree",(ne,ee)=>{let{prefixCls:Z}=ee;return[{[ne.componentCls]:(0,C.C2)(`${Z}-checkbox`,ne)},N(Z,ne),(0,Y.Z)(ne)]},ne=>{const{colorTextLightSolid:ee,colorPrimary:Z}=ne;return Object.assign(Object.assign({},d(ne)),{directoryNodeSelectedColor:ee,directoryNodeSelectedBg:Z})})},71997:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return Ce}});var E=a(60499),C=a(59301),F={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"},Y=F,A=a(7657),u=function(T,P){return C.createElement(A.Z,(0,E.Z)({},T,{ref:P,icon:Y}))},ce=C.forwardRef(u),se=ce,oe=a(52671),be=a(58617),de=a(15075),N=a(43531),d=a(92310),ne=a.n(d),ee=a(92343),Ce=j=>{const{prefixCls:T,switcherIcon:P,treeNodeProps:g,showLine:R}=j,{isLeaf:B,expanded:$,loading:w}=g;if(w)return C.createElement(be.Z,{className:`${T}-switcher-loading-icon`});let re;if(R&&typeof R=="object"&&(re=R.showLeafIcon),B){if(!R)return null;if(typeof re!="boolean"&&re){const D=typeof re=="function"?re(g):re,xe=`${T}-switcher-line-custom-icon`;return(0,ee.l$)(D)?(0,ee.Tm)(D,{className:ne()(D.props.className||"",xe)}):D}return re?C.createElement(oe.Z,{className:`${T}-switcher-line-icon`}):C.createElement("span",{className:`${T}-switcher-leaf-line`})}const X=`${T}-switcher-icon`,he=typeof P=="function"?P(g):P;return(0,ee.l$)(he)?(0,ee.Tm)(he,{className:ne()(he.props.className||"",X)}):he!==void 0?he:R?$?C.createElement(de.Z,{className:`${T}-switcher-line-icon`}):C.createElement(N.Z,{className:`${T}-switcher-line-icon`}):C.createElement(se,{className:X})}},3867:function(vt,Me,a){var E=a(97671);(function(C,F){vt.exports=F()})(this,function(){"use strict";function C(_){var l=typeof _;return _!==null&&(l==="object"||l==="function")}function F(_){return typeof _=="function"}var Y=void 0;Array.isArray?Y=Array.isArray:Y=function(_){return Object.prototype.toString.call(_)==="[object Array]"};var A=Y,u=0,ce=void 0,se=void 0,oe=function(l,h){R[u]=l,R[u+1]=h,u+=2,u===2&&(se?se(B):w())};function be(_){se=_}function de(_){oe=_}var N=typeof window!="undefined"?window:void 0,d=N||{},ne=d.MutationObserver||d.WebKitMutationObserver,ee=typeof self=="undefined"&&typeof E!="undefined"&&{}.toString.call(E)==="[object process]",Z=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function Ce(){return function(){return E.nextTick(B)}}function j(){return typeof ce!="undefined"?function(){ce(B)}:g()}function T(){var _=0,l=new ne(B),h=document.createTextNode("");return l.observe(h,{characterData:!0}),function(){h.data=_=++_%2}}function P(){var _=new MessageChannel;return _.port1.onmessage=B,function(){return _.port2.postMessage(0)}}function g(){var _=setTimeout;return function(){return _(B,1)}}var R=new Array(1e3);function B(){for(var _=0;_<u;_+=2){var l=R[_],h=R[_+1];l(h),R[_]=void 0,R[_+1]=void 0}u=0}function $(){try{var _=Function("return this")().require("vertx");return ce=_.runOnLoop||_.runOnContext,j()}catch(l){return g()}}var w=void 0;ee?w=Ce():ne?w=T():Z?w=P():N===void 0?w=$():w=g();function re(_,l){var h=this,o=new this.constructor(D);o[he]===void 0&&je(o);var c=h._state;if(c){var p=arguments[c-1];oe(function(){return ke(c,o,p,h._result)})}else ye(h,o,_,l);return o}function X(_){var l=this;if(_&&typeof _=="object"&&_.constructor===l)return _;var h=new l(D);return L(h,_),h}var he=Math.random().toString(36).substring(2);function D(){}var xe=void 0,x=1,M=2;function m(){return new TypeError("You cannot resolve a promise with itself")}function k(){return new TypeError("A promises callback cannot return that same promise.")}function pe(_,l,h,o){try{_.call(l,h,o)}catch(c){return c}}function z(_,l,h){oe(function(o){var c=!1,p=pe(h,l,function(O){c||(c=!0,l!==O?L(o,O):J(o,O))},function(O){c||(c=!0,ae(o,O))},"Settle: "+(o._label||" unknown promise"));!c&&p&&(c=!0,ae(o,p))},_)}function le(_,l){l._state===x?J(_,l._result):l._state===M?ae(_,l._result):ye(l,void 0,function(h){return L(_,h)},function(h){return ae(_,h)})}function Q(_,l,h){l.constructor===_.constructor&&h===re&&l.constructor.resolve===X?le(_,l):h===void 0?J(_,l):F(h)?z(_,l,h):J(_,l)}function L(_,l){if(_===l)ae(_,m());else if(C(l)){var h=void 0;try{h=l.then}catch(o){ae(_,o);return}Q(_,l,h)}else J(_,l)}function H(_){_._onerror&&_._onerror(_._result),Ne(_)}function J(_,l){_._state===xe&&(_._result=l,_._state=x,_._subscribers.length!==0&&oe(Ne,_))}function ae(_,l){_._state===xe&&(_._state=M,_._result=l,oe(H,_))}function ye(_,l,h,o){var c=_._subscribers,p=c.length;_._onerror=null,c[p]=l,c[p+x]=h,c[p+M]=o,p===0&&_._state&&oe(Ne,_)}function Ne(_){var l=_._subscribers,h=_._state;if(l.length!==0){for(var o=void 0,c=void 0,p=_._result,O=0;O<l.length;O+=3)o=l[O],c=l[O+h],o?ke(h,o,c,p):c(p);_._subscribers.length=0}}function ke(_,l,h,o){var c=F(h),p=void 0,O=void 0,K=!0;if(c){try{p=h(o)}catch(ue){K=!1,O=ue}if(l===p){ae(l,k());return}}else p=o;l._state!==xe||(c&&K?L(l,p):K===!1?ae(l,O):_===x?J(l,p):_===M&&ae(l,p))}function Oe(_,l){try{l(function(o){L(_,o)},function(o){ae(_,o)})}catch(h){ae(_,h)}}var et=0;function Ke(){return et++}function je(_){_[he]=et++,_._state=void 0,_._result=void 0,_._subscribers=[]}function Xe(){return new Error("Array Methods must be provided an Array")}var G=function(){function _(l,h){this._instanceConstructor=l,this.promise=new l(D),this.promise[he]||je(this.promise),A(h)?(this.length=h.length,this._remaining=h.length,this._result=new Array(this.length),this.length===0?J(this.promise,this._result):(this.length=this.length||0,this._enumerate(h),this._remaining===0&&J(this.promise,this._result))):ae(this.promise,Xe())}return _.prototype._enumerate=function(h){for(var o=0;this._state===xe&&o<h.length;o++)this._eachEntry(h[o],o)},_.prototype._eachEntry=function(h,o){var c=this._instanceConstructor,p=c.resolve;if(p===X){var O=void 0,K=void 0,ue=!1;try{O=h.then}catch(fe){ue=!0,K=fe}if(O===re&&h._state!==xe)this._settledAt(h._state,o,h._result);else if(typeof O!="function")this._remaining--,this._result[o]=h;else if(c===b){var ie=new c(D);ue?ae(ie,K):Q(ie,h,O),this._willSettleAt(ie,o)}else this._willSettleAt(new c(function(fe){return fe(h)}),o)}else this._willSettleAt(p(h),o)},_.prototype._settledAt=function(h,o,c){var p=this.promise;p._state===xe&&(this._remaining--,h===M?ae(p,c):this._result[o]=c),this._remaining===0&&J(p,this._result)},_.prototype._willSettleAt=function(h,o){var c=this;ye(h,void 0,function(p){return c._settledAt(x,o,p)},function(p){return c._settledAt(M,o,p)})},_}();function Le(_){return new G(this,_).promise}function f(_){var l=this;return A(_)?new l(function(h,o){for(var c=_.length,p=0;p<c;p++)l.resolve(_[p]).then(h,o)}):new l(function(h,o){return o(new TypeError("You must pass an array to race."))})}function y(_){var l=this,h=new l(D);return ae(h,_),h}function v(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function i(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var b=function(){function _(l){this[he]=Ke(),this._result=this._state=void 0,this._subscribers=[],D!==l&&(typeof l!="function"&&v(),this instanceof _?Oe(this,l):i())}return _.prototype.catch=function(h){return this.then(null,h)},_.prototype.finally=function(h){var o=this,c=o.constructor;return F(h)?o.then(function(p){return c.resolve(h()).then(function(){return p})},function(p){return c.resolve(h()).then(function(){throw p})}):o.then(h,h)},_}();b.prototype.then=re,b.all=Le,b.race=f,b.resolve=X,b.reject=y,b._setScheduler=be,b._setAsap=de,b._asap=oe;function U(){var _=void 0;if(typeof a.g!="undefined")_=a.g;else if(typeof self!="undefined")_=self;else try{_=Function("return this")()}catch(o){throw new Error("polyfill failed because global object is unavailable in this environment")}var l=_.Promise;if(l){var h=null;try{h=Object.prototype.toString.call(l.resolve())}catch(o){}if(h==="[object Promise]"&&!l.cast)return}_.Promise=b}return b.polyfill=U,b.Promise=b,b})},86204:function(vt){"use strict";var Me=typeof Reflect=="object"?Reflect:null,a=Me&&typeof Me.apply=="function"?Me.apply:function(P,g,R){return Function.prototype.apply.call(P,g,R)},E;Me&&typeof Me.ownKeys=="function"?E=Me.ownKeys:Object.getOwnPropertySymbols?E=function(P){return Object.getOwnPropertyNames(P).concat(Object.getOwnPropertySymbols(P))}:E=function(P){return Object.getOwnPropertyNames(P)};function C(T){console&&console.warn&&console.warn(T)}var F=Number.isNaN||function(P){return P!==P};function Y(){Y.init.call(this)}vt.exports=Y,vt.exports.once=Z,Y.EventEmitter=Y,Y.prototype._events=void 0,Y.prototype._eventsCount=0,Y.prototype._maxListeners=void 0;var A=10;function u(T){if(typeof T!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof T)}Object.defineProperty(Y,"defaultMaxListeners",{enumerable:!0,get:function(){return A},set:function(T){if(typeof T!="number"||T<0||F(T))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+T+".");A=T}}),Y.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},Y.prototype.setMaxListeners=function(P){if(typeof P!="number"||P<0||F(P))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+P+".");return this._maxListeners=P,this};function ce(T){return T._maxListeners===void 0?Y.defaultMaxListeners:T._maxListeners}Y.prototype.getMaxListeners=function(){return ce(this)},Y.prototype.emit=function(P){for(var g=[],R=1;R<arguments.length;R++)g.push(arguments[R]);var B=P==="error",$=this._events;if($!==void 0)B=B&&$.error===void 0;else if(!B)return!1;if(B){var w;if(g.length>0&&(w=g[0]),w instanceof Error)throw w;var re=new Error("Unhandled error."+(w?" ("+w.message+")":""));throw re.context=w,re}var X=$[P];if(X===void 0)return!1;if(typeof X=="function")a(X,this,g);else for(var he=X.length,D=d(X,he),R=0;R<he;++R)a(D[R],this,g);return!0};function se(T,P,g,R){var B,$,w;if(u(g),$=T._events,$===void 0?($=T._events=Object.create(null),T._eventsCount=0):($.newListener!==void 0&&(T.emit("newListener",P,g.listener?g.listener:g),$=T._events),w=$[P]),w===void 0)w=$[P]=g,++T._eventsCount;else if(typeof w=="function"?w=$[P]=R?[g,w]:[w,g]:R?w.unshift(g):w.push(g),B=ce(T),B>0&&w.length>B&&!w.warned){w.warned=!0;var re=new Error("Possible EventEmitter memory leak detected. "+w.length+" "+String(P)+" listeners added. Use emitter.setMaxListeners() to increase limit");re.name="MaxListenersExceededWarning",re.emitter=T,re.type=P,re.count=w.length,C(re)}return T}Y.prototype.addListener=function(P,g){return se(this,P,g,!1)},Y.prototype.on=Y.prototype.addListener,Y.prototype.prependListener=function(P,g){return se(this,P,g,!0)};function oe(){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 be(T,P,g){var R={fired:!1,wrapFn:void 0,target:T,type:P,listener:g},B=oe.bind(R);return B.listener=g,R.wrapFn=B,B}Y.prototype.once=function(P,g){return u(g),this.on(P,be(this,P,g)),this},Y.prototype.prependOnceListener=function(P,g){return u(g),this.prependListener(P,be(this,P,g)),this},Y.prototype.removeListener=function(P,g){var R,B,$,w,re;if(u(g),B=this._events,B===void 0)return this;if(R=B[P],R===void 0)return this;if(R===g||R.listener===g)--this._eventsCount===0?this._events=Object.create(null):(delete B[P],B.removeListener&&this.emit("removeListener",P,R.listener||g));else if(typeof R!="function"){for($=-1,w=R.length-1;w>=0;w--)if(R[w]===g||R[w].listener===g){re=R[w].listener,$=w;break}if($<0)return this;$===0?R.shift():ne(R,$),R.length===1&&(B[P]=R[0]),B.removeListener!==void 0&&this.emit("removeListener",P,re||g)}return this},Y.prototype.off=Y.prototype.removeListener,Y.prototype.removeAllListeners=function(P){var g,R,B;if(R=this._events,R===void 0)return this;if(R.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):R[P]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete R[P]),this;if(arguments.length===0){var $=Object.keys(R),w;for(B=0;B<$.length;++B)w=$[B],w!=="removeListener"&&this.removeAllListeners(w);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(g=R[P],typeof g=="function")this.removeListener(P,g);else if(g!==void 0)for(B=g.length-1;B>=0;B--)this.removeListener(P,g[B]);return this};function de(T,P,g){var R=T._events;if(R===void 0)return[];var B=R[P];return B===void 0?[]:typeof B=="function"?g?[B.listener||B]:[B]:g?ee(B):d(B,B.length)}Y.prototype.listeners=function(P){return de(this,P,!0)},Y.prototype.rawListeners=function(P){return de(this,P,!1)},Y.listenerCount=function(T,P){return typeof T.listenerCount=="function"?T.listenerCount(P):N.call(T,P)},Y.prototype.listenerCount=N;function N(T){var P=this._events;if(P!==void 0){var g=P[T];if(typeof g=="function")return 1;if(g!==void 0)return g.length}return 0}Y.prototype.eventNames=function(){return this._eventsCount>0?E(this._events):[]};function d(T,P){for(var g=new Array(P),R=0;R<P;++R)g[R]=T[R];return g}function ne(T,P){for(;P+1<T.length;P++)T[P]=T[P+1];T.pop()}function ee(T){for(var P=new Array(T.length),g=0;g<P.length;++g)P[g]=T[g].listener||T[g];return P}function Z(T,P){return new Promise(function(g,R){function B(w){T.removeListener(P,$),R(w)}function $(){typeof T.removeListener=="function"&&T.removeListener("error",B),g([].slice.call(arguments))}j(T,P,$,{once:!0}),P!=="error"&&Ce(T,B,{once:!0})})}function Ce(T,P,g){typeof T.on=="function"&&j(T,"error",P,g)}function j(T,P,g,R){if(typeof T.on=="function")R.once?T.once(P,g):T.on(P,g);else if(typeof T.addEventListener=="function")T.addEventListener(P,function B($){R.once&&T.removeEventListener(P,B),g($)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof T)}},24334:function(vt,Me,a){var E,C;(function(F,Y){vt.exports=Y(F)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof a.g!="undefined"?a.g:this,function(F){"use strict";F=F||{};var Y=F.Base64,A="2.6.4",u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ce=function(x){for(var M={},m=0,k=x.length;m<k;m++)M[x.charAt(m)]=m;return M}(u),se=String.fromCharCode,oe=function(x){if(x.length<2){var M=x.charCodeAt(0);return M<128?x:M<2048?se(192|M>>>6)+se(128|M&63):se(224|M>>>12&15)+se(128|M>>>6&63)+se(128|M&63)}else{var M=65536+(x.charCodeAt(0)-55296)*1024+(x.charCodeAt(1)-56320);return se(240|M>>>18&7)+se(128|M>>>12&63)+se(128|M>>>6&63)+se(128|M&63)}},be=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,de=function(x){return x.replace(be,oe)},N=function(x){var M=[0,2,1][x.length%3],m=x.charCodeAt(0)<<16|(x.length>1?x.charCodeAt(1):0)<<8|(x.length>2?x.charCodeAt(2):0),k=[u.charAt(m>>>18),u.charAt(m>>>12&63),M>=2?"=":u.charAt(m>>>6&63),M>=1?"=":u.charAt(m&63)];return k.join("")},d=F.btoa&&typeof F.btoa=="function"?function(x){return F.btoa(x)}:function(x){if(x.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return x.replace(/[\s\S]{1,3}/g,N)},ne=function(x){return d(de(String(x)))},ee=function(x){return x.replace(/[+\/]/g,function(M){return M=="+"?"-":"_"}).replace(/=/g,"")},Z=function(x,M){return M?ee(ne(x)):ne(x)},Ce=function(x){return Z(x,!0)},j;F.Uint8Array&&(j=function(x,M){for(var m="",k=0,pe=x.length;k<pe;k+=3){var z=x[k],le=x[k+1],Q=x[k+2],L=z<<16|le<<8|Q;m+=u.charAt(L>>>18)+u.charAt(L>>>12&63)+(typeof le!="undefined"?u.charAt(L>>>6&63):"=")+(typeof Q!="undefined"?u.charAt(L&63):"=")}return M?ee(m):m});var T=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,P=function(x){switch(x.length){case 4:var M=(7&x.charCodeAt(0))<<18|(63&x.charCodeAt(1))<<12|(63&x.charCodeAt(2))<<6|63&x.charCodeAt(3),m=M-65536;return se((m>>>10)+55296)+se((m&1023)+56320);case 3:return se((15&x.charCodeAt(0))<<12|(63&x.charCodeAt(1))<<6|63&x.charCodeAt(2));default:return se((31&x.charCodeAt(0))<<6|63&x.charCodeAt(1))}},g=function(x){return x.replace(T,P)},R=function(x){var M=x.length,m=M%4,k=(M>0?ce[x.charAt(0)]<<18:0)|(M>1?ce[x.charAt(1)]<<12:0)|(M>2?ce[x.charAt(2)]<<6:0)|(M>3?ce[x.charAt(3)]:0),pe=[se(k>>>16),se(k>>>8&255),se(k&255)];return pe.length-=[0,0,2,1][m],pe.join("")},B=F.atob&&typeof F.atob=="function"?function(x){return F.atob(x)}:function(x){return x.replace(/\S{1,4}/g,R)},$=function(x){return B(String(x).replace(/[^A-Za-z0-9\+\/]/g,""))},w=function(x){return g(B(x))},re=function(x){return String(x).replace(/[-_]/g,function(M){return M=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},X=function(x){return w(re(x))},he;F.Uint8Array&&(he=function(x){return Uint8Array.from($(re(x)),function(M){return M.charCodeAt(0)})});var D=function(){var x=F.Base64;return F.Base64=Y,x};if(F.Base64={VERSION:A,atob:$,btoa:d,fromBase64:X,toBase64:Z,utob:de,encode:Z,encodeURI:Ce,btou:g,decode:X,noConflict:D,fromUint8Array:j,toUint8Array:he},typeof Object.defineProperty=="function"){var xe=function(x){return{value:x,enumerable:!1,writable:!0,configurable:!0}};F.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",xe(function(){return X(this)})),Object.defineProperty(String.prototype,"toBase64",xe(function(x){return Z(this,x)})),Object.defineProperty(String.prototype,"toBase64URI",xe(function(){return Z(this,!0)}))}}return F.Meteor&&(Base64=F.Base64),vt.exports?vt.exports.Base64=F.Base64:(E=[],C=function(){return F.Base64}.apply(Me,E),C!==void 0&&(vt.exports=C)),{Base64:F.Base64}})},31561:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return $}});var E=a(60499),C=a(18642),F=a(72190),Y=a(42244),A=a(35593),u=a(92310),ce=a.n(u),se=a(8654),oe=a(59301),be=a(10228),de=a(16089),N=be.Z.ESC,d=be.Z.TAB;function ne(w){var re=w.visible,X=w.triggerRef,he=w.onVisibleChange,D=w.autoFocus,xe=w.overlayRef,x=oe.useRef(!1),M=function(){if(re){var z,le;(z=X.current)===null||z===void 0||(le=z.focus)===null||le===void 0||le.call(z),he==null||he(!1)}},m=function(){var z;return(z=xe.current)!==null&&z!==void 0&&z.focus?(xe.current.focus(),x.current=!0,!0):!1},k=function(z){switch(z.keyCode){case N:M();break;case d:{var le=!1;x.current||(le=m()),le?z.preventDefault():M();break}}};oe.useEffect(function(){return re?(window.addEventListener("keydown",k),D&&(0,de.Z)(m,3),function(){window.removeEventListener("keydown",k),x.current=!1}):function(){x.current=!1}},[re])}var ee=(0,oe.forwardRef)(function(w,re){var X=w.overlay,he=w.arrow,D=w.prefixCls,xe=(0,oe.useMemo)(function(){var M;return typeof X=="function"?M=X():M=X,M},[X]),x=(0,se.sQ)(re,xe==null?void 0:xe.ref);return oe.createElement(oe.Fragment,null,he&&oe.createElement("div",{className:"".concat(D,"-arrow")}),oe.cloneElement(xe,{ref:(0,se.Yr)(xe)?x:void 0}))}),Z=ee,Ce={adjustX:1,adjustY:1},j=[0,0],T={topLeft:{points:["bl","tl"],overflow:Ce,offset:[0,-4],targetOffset:j},top:{points:["bc","tc"],overflow:Ce,offset:[0,-4],targetOffset:j},topRight:{points:["br","tr"],overflow:Ce,offset:[0,-4],targetOffset:j},bottomLeft:{points:["tl","bl"],overflow:Ce,offset:[0,4],targetOffset:j},bottom:{points:["tc","bc"],overflow:Ce,offset:[0,4],targetOffset:j},bottomRight:{points:["tr","br"],overflow:Ce,offset:[0,4],targetOffset:j}},P=T,g=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function R(w,re){var X,he=w.arrow,D=he===void 0?!1:he,xe=w.prefixCls,x=xe===void 0?"rc-dropdown":xe,M=w.transitionName,m=w.animation,k=w.align,pe=w.placement,z=pe===void 0?"bottomLeft":pe,le=w.placements,Q=le===void 0?P:le,L=w.getPopupContainer,H=w.showAction,J=w.hideAction,ae=w.overlayClassName,ye=w.overlayStyle,Ne=w.visible,ke=w.trigger,Oe=ke===void 0?["hover"]:ke,et=w.autoFocus,Ke=w.overlay,je=w.children,Xe=w.onVisibleChange,G=(0,Y.Z)(w,g),Le=oe.useState(),f=(0,F.Z)(Le,2),y=f[0],v=f[1],i="visible"in w?Ne:y,b=oe.useRef(null),U=oe.useRef(null),_=oe.useRef(null);oe.useImperativeHandle(re,function(){return b.current});var l=function(fe){v(fe),Xe==null||Xe(fe)};ne({visible:i,triggerRef:_,onVisibleChange:l,autoFocus:et,overlayRef:U});var h=function(fe){var W=w.onOverlayClick;v(!1),W&&W(fe)},o=function(){return oe.createElement(Z,{ref:U,overlay:Ke,prefixCls:x,arrow:D})},c=function(){return typeof Ke=="function"?o:o()},p=function(){var fe=w.minOverlayWidthMatchTrigger,W=w.alignPoint;return"minOverlayWidthMatchTrigger"in w?fe:!W},O=function(){var fe=w.openClassName;return fe!==void 0?fe:"".concat(x,"-open")},K=oe.cloneElement(je,{className:ce()((X=je.props)===null||X===void 0?void 0:X.className,i&&O()),ref:(0,se.Yr)(je)?(0,se.sQ)(_,je.ref):void 0}),ue=J;return!ue&&Oe.indexOf("contextMenu")!==-1&&(ue=["click"]),oe.createElement(A.Z,(0,E.Z)({builtinPlacements:Q},G,{prefixCls:x,ref:b,popupClassName:ce()(ae,(0,C.Z)({},"".concat(x,"-show-arrow"),D)),popupStyle:ye,action:Oe,showAction:H,hideAction:ue,popupPlacement:z,popupAlign:k,popupTransitionName:M,popupAnimation:m,popupVisible:i,stretch:p()?"minWidth":"",popup:c(),onPopupVisibleChange:l,onPopupClick:h,getPopupContainer:L}),K)}var B=oe.forwardRef(R),$=B},15285:function(vt,Me,a){"use strict";a.d(Me,{iz:function(){return We},ck:function(){return Fe},BW:function(){return ut},sN:function(){return Fe},Wd:function(){return Se},ZP:function(){return St},Xl:function(){return X}});var E=a(60499),C=a(18642),F=a(85899),Y=a(77654),A=a(72190),u=a(42244),ce=a(92310),se=a.n(ce),oe=a(83836),be=a(18929),de=a(13697),N=a(48736),d=a(59301),ne=a(4676),ee=d.createContext(null);function Z(te,q){return te===void 0?null:"".concat(te,"-").concat(q)}function Ce(te){var q=d.useContext(ee);return Z(q,te)}var j=a(80547),T=["children","locked"],P=d.createContext(null);function g(te,q){var ve=(0,F.Z)({},te);return Object.keys(q).forEach(function(Ae){var ge=q[Ae];ge!==void 0&&(ve[Ae]=ge)}),ve}function R(te){var q=te.children,ve=te.locked,Ae=(0,u.Z)(te,T),ge=d.useContext(P),Ee=(0,j.Z)(function(){return g(ge,Ae)},[ge,Ae],function(_e,He){return!ve&&(_e[0]!==He[0]||!(0,de.Z)(_e[1],He[1],!0))});return d.createElement(P.Provider,{value:Ee},q)}var B=[],$=d.createContext(null);function w(){return d.useContext($)}var re=d.createContext(B);function X(te){var q=d.useContext(re);return d.useMemo(function(){return te!==void 0?[].concat((0,Y.Z)(q),[te]):q},[q,te])}var he=d.createContext(null),D=d.createContext({}),xe=D,x=a(29194);function M(te){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,x.Z)(te)){var ve=te.nodeName.toLowerCase(),Ae=["input","select","textarea","button"].includes(ve)||te.isContentEditable||ve==="a"&&!!te.getAttribute("href"),ge=te.getAttribute("tabindex"),Ee=Number(ge),_e=null;return ge&&!Number.isNaN(Ee)?_e=Ee:Ae&&_e===null&&(_e=0),Ae&&te.disabled&&(_e=null),_e!==null&&(_e>=0||q&&_e<0)}return!1}function m(te){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=(0,Y.Z)(te.querySelectorAll("*")).filter(function(Ae){return M(Ae,q)});return M(te,q)&&ve.unshift(te),ve}var k=null;function pe(){k=document.activeElement}function z(){k=null}function le(){if(k)try{k.focus()}catch(te){}}function Q(te,q){if(q.keyCode===9){var ve=m(te),Ae=ve[q.shiftKey?0:ve.length-1],ge=Ae===document.activeElement||te===document.activeElement;if(ge){var Ee=ve[q.shiftKey?ve.length-1:0];Ee.focus(),q.preventDefault()}}}var L=a(10228),H=a(16089),J=L.Z.LEFT,ae=L.Z.RIGHT,ye=L.Z.UP,Ne=L.Z.DOWN,ke=L.Z.ENTER,Oe=L.Z.ESC,et=L.Z.HOME,Ke=L.Z.END,je=[ye,Ne,J,ae];function Xe(te,q,ve,Ae){var ge,Ee,_e,He,ft="prev",dt="next",bt="children",yt="parent";if(te==="inline"&&Ae===ke)return{inlineTrigger:!0};var wt=(ge={},(0,C.Z)(ge,ye,ft),(0,C.Z)(ge,Ne,dt),ge),Nt=(Ee={},(0,C.Z)(Ee,J,ve?dt:ft),(0,C.Z)(Ee,ae,ve?ft:dt),(0,C.Z)(Ee,Ne,bt),(0,C.Z)(Ee,ke,bt),Ee),Dt=(_e={},(0,C.Z)(_e,ye,ft),(0,C.Z)(_e,Ne,dt),(0,C.Z)(_e,ke,bt),(0,C.Z)(_e,Oe,yt),(0,C.Z)(_e,J,ve?bt:yt),(0,C.Z)(_e,ae,ve?yt:bt),_e),zt={inline:wt,horizontal:Nt,vertical:Dt,inlineSub:wt,horizontalSub:Dt,verticalSub:Dt},Ht=(He=zt["".concat(te).concat(q?"":"Sub")])===null||He===void 0?void 0:He[Ae];switch(Ht){case ft:return{offset:-1,sibling:!0};case dt:return{offset:1,sibling:!0};case yt:return{offset:-1,sibling:!1};case bt:return{offset:1,sibling:!1};default:return null}}function G(te){for(var q=te;q;){if(q.getAttribute("data-menu-list"))return q;q=q.parentElement}return null}function Le(te,q){for(var ve=te||document.activeElement;ve;){if(q.has(ve))return ve;ve=ve.parentElement}return null}function f(te,q){var ve=m(te,!0);return ve.filter(function(Ae){return q.has(Ae)})}function y(te,q,ve){var Ae=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!te)return null;var ge=f(te,q),Ee=ge.length,_e=ge.findIndex(function(He){return ve===He});return Ae<0?_e===-1?_e=Ee-1:_e-=1:Ae>0&&(_e+=1),_e=(_e+Ee)%Ee,ge[_e]}var v=function(q,ve){var Ae=new Set,ge=new Map,Ee=new Map;return q.forEach(function(_e){var He=document.querySelector("[data-menu-id='".concat(Z(ve,_e),"']"));He&&(Ae.add(He),Ee.set(He,_e),ge.set(_e,He))}),{elements:Ae,key2element:ge,element2key:Ee}};function i(te,q,ve,Ae,ge,Ee,_e,He,ft,dt){var bt=d.useRef(),yt=d.useRef();yt.current=q;var wt=function(){H.Z.cancel(bt.current)};return d.useEffect(function(){return function(){wt()}},[]),function(Nt){var Dt=Nt.which;if([].concat(je,[ke,Oe,et,Ke]).includes(Dt)){var zt=Ee(),Ht=v(zt,Ae),Ut=Ht,Mt=Ut.elements,Lt=Ut.key2element,At=Ut.element2key,Ft=Lt.get(q),Pt=Le(Ft,Mt),Gt=At.get(Pt),Bt=Xe(te,_e(Gt,!0).length===1,ve,Dt);if(!Bt&&Dt!==et&&Dt!==Ke)return;(je.includes(Dt)||[et,Ke].includes(Dt))&&Nt.preventDefault();var tn=function(Wt){if(Wt){var an=Wt,lt=Wt.querySelector("a");lt!=null&<.getAttribute("href")&&(an=lt);var qe=At.get(Wt);He(qe),wt(),bt.current=(0,H.Z)(function(){yt.current===qe&&an.focus()})}};if([et,Ke].includes(Dt)||Bt.sibling||!Pt){var Kt;!Pt||te==="inline"?Kt=ge.current:Kt=G(Pt);var Jt,Xt=f(Kt,Mt);Dt===et?Jt=Xt[0]:Dt===Ke?Jt=Xt[Xt.length-1]:Jt=y(Kt,Mt,Pt,Bt.offset),tn(Jt)}else if(Bt.inlineTrigger)ft(Gt);else if(Bt.offset>0)ft(Gt,!0),wt(),bt.current=(0,H.Z)(function(){Ht=v(zt,Ae);var fn=Pt.getAttribute("aria-controls"),Wt=document.getElementById(fn),an=y(Wt,Ht.elements);tn(an)},5);else if(Bt.offset<0){var Yt=_e(Gt,!0),nn=Yt[Yt.length-2],rn=Lt.get(nn);ft(nn,!1),tn(rn)}}dt==null||dt(Nt)}}function b(te){Promise.resolve().then(te)}var U="__RC_UTIL_PATH_SPLIT__",_=function(q){return q.join(U)},l=function(q){return q.split(U)},h="rc-menu-more";function o(){var te=d.useState({}),q=(0,A.Z)(te,2),ve=q[1],Ae=(0,d.useRef)(new Map),ge=(0,d.useRef)(new Map),Ee=d.useState([]),_e=(0,A.Z)(Ee,2),He=_e[0],ft=_e[1],dt=(0,d.useRef)(0),bt=(0,d.useRef)(!1),yt=function(){bt.current||ve({})},wt=(0,d.useCallback)(function(Lt,At){var Ft=_(At);ge.current.set(Ft,Lt),Ae.current.set(Lt,Ft),dt.current+=1;var Pt=dt.current;b(function(){Pt===dt.current&&yt()})},[]),Nt=(0,d.useCallback)(function(Lt,At){var Ft=_(At);ge.current.delete(Ft),Ae.current.delete(Lt)},[]),Dt=(0,d.useCallback)(function(Lt){ft(Lt)},[]),zt=(0,d.useCallback)(function(Lt,At){var Ft=Ae.current.get(Lt)||"",Pt=l(Ft);return At&&He.includes(Pt[0])&&Pt.unshift(h),Pt},[He]),Ht=(0,d.useCallback)(function(Lt,At){return Lt.some(function(Ft){var Pt=zt(Ft,!0);return Pt.includes(At)})},[zt]),Ut=function(){var At=(0,Y.Z)(Ae.current.keys());return He.length&&At.push(h),At},Mt=(0,d.useCallback)(function(Lt){var At="".concat(Ae.current.get(Lt)).concat(U),Ft=new Set;return(0,Y.Z)(ge.current.keys()).forEach(function(Pt){Pt.startsWith(At)&&Ft.add(ge.current.get(Pt))}),Ft},[]);return d.useEffect(function(){return function(){bt.current=!0}},[]),{registerPath:wt,unregisterPath:Nt,refreshOverflowKeys:Dt,isSubPathKey:Ht,getKeyPath:zt,getKeys:Ut,getSubPathKeys:Mt}}function c(te){var q=d.useRef(te);q.current=te;var ve=d.useCallback(function(){for(var Ae,ge=arguments.length,Ee=new Array(ge),_e=0;_e<ge;_e++)Ee[_e]=arguments[_e];return(Ae=q.current)===null||Ae===void 0?void 0:Ae.call.apply(Ae,[q].concat(Ee))},[]);return te?ve:void 0}var p=Math.random().toFixed(5).toString().slice(2),O=0;function K(te){var q=(0,be.Z)(te,{value:te}),ve=(0,A.Z)(q,2),Ae=ve[0],ge=ve[1];return d.useEffect(function(){O+=1;var Ee="".concat(p,"-").concat(O);ge("rc-menu-uuid-".concat(Ee))},[]),Ae}var ue=a(38705),ie=a(17212),fe=a(39153),W=a(55401),Re=a(2738),Te=a(8654);function V(te,q,ve,Ae){var ge=d.useContext(P),Ee=ge.activeKey,_e=ge.onActive,He=ge.onInactive,ft={active:Ee===te};return q||(ft.onMouseEnter=function(dt){ve==null||ve({key:te,domEvent:dt}),_e(te)},ft.onMouseLeave=function(dt){Ae==null||Ae({key:te,domEvent:dt}),He(te)}),ft}function Pe(te){var q=d.useContext(P),ve=q.mode,Ae=q.rtl,ge=q.inlineIndent;if(ve!=="inline")return null;var Ee=te;return Ae?{paddingRight:Ee*ge}:{paddingLeft:Ee*ge}}function Ge(te){var q=te.icon,ve=te.props,Ae=te.children,ge;return q===null||q===!1?null:(typeof q=="function"?ge=d.createElement(q,(0,F.Z)({},ve)):typeof q!="boolean"&&(ge=q),ge||Ae||null)}var Ze=["item"];function ze(te){var q=te.item,ve=(0,u.Z)(te,Ze);return Object.defineProperty(ve,"item",{get:function(){return(0,N.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),q}}),ve}var rt=["title","attribute","elementRef"],_t=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ct=["active"],st=function(te){(0,fe.Z)(ve,te);var q=(0,W.Z)(ve);function ve(){return(0,ue.Z)(this,ve),q.apply(this,arguments)}return(0,ie.Z)(ve,[{key:"render",value:function(){var ge=this.props,Ee=ge.title,_e=ge.attribute,He=ge.elementRef,ft=(0,u.Z)(ge,rt),dt=(0,Re.Z)(ft,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,N.ZP)(!_e,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),d.createElement(oe.Z.Item,(0,E.Z)({},_e,{title:typeof Ee=="string"?Ee:void 0},dt,{ref:He}))}}]),ve}(d.Component),ht=d.forwardRef(function(te,q){var ve,Ae=te.style,ge=te.className,Ee=te.eventKey,_e=te.warnKey,He=te.disabled,ft=te.itemIcon,dt=te.children,bt=te.role,yt=te.onMouseEnter,wt=te.onMouseLeave,Nt=te.onClick,Dt=te.onKeyDown,zt=te.onFocus,Ht=(0,u.Z)(te,_t),Ut=Ce(Ee),Mt=d.useContext(P),Lt=Mt.prefixCls,At=Mt.onItemClick,Ft=Mt.disabled,Pt=Mt.overflowDisabled,Gt=Mt.itemIcon,Bt=Mt.selectedKeys,tn=Mt.onActive,Kt=d.useContext(xe),Jt=Kt._internalRenderMenuItem,Xt="".concat(Lt,"-item"),Yt=d.useRef(),nn=d.useRef(),rn=Ft||He,fn=(0,Te.x1)(q,nn),Wt=X(Ee),an=function(en){return{key:Ee,keyPath:(0,Y.Z)(Wt).reverse(),item:Yt.current,domEvent:en}},lt=ft||Gt,qe=V(Ee,rn,yt,wt),Ct=qe.active,$t=(0,u.Z)(qe,ct),Zt=Bt.includes(Ee),dn=Pe(Wt.length),qt=function(en){if(!rn){var mn=an(en);Nt==null||Nt(ze(mn)),At(mn)}},Qt=function(en){if(Dt==null||Dt(en),en.which===L.Z.ENTER){var mn=an(en);Nt==null||Nt(ze(mn)),At(mn)}},on=function(en){tn(Ee),zt==null||zt(en)},gn={};te.role==="option"&&(gn["aria-selected"]=Zt);var hn=d.createElement(st,(0,E.Z)({ref:Yt,elementRef:fn,role:bt===null?"none":bt||"menuitem",tabIndex:He?null:-1,"data-menu-id":Pt&&Ut?null:Ut},Ht,$t,gn,{component:"li","aria-disabled":He,style:(0,F.Z)((0,F.Z)({},dn),Ae),className:se()(Xt,(ve={},(0,C.Z)(ve,"".concat(Xt,"-active"),Ct),(0,C.Z)(ve,"".concat(Xt,"-selected"),Zt),(0,C.Z)(ve,"".concat(Xt,"-disabled"),rn),ve),ge),onClick:qt,onKeyDown:Qt,onFocus:on}),dt,d.createElement(Ge,{props:(0,F.Z)((0,F.Z)({},te),{},{isSelected:Zt}),icon:lt}));return Jt&&(hn=Jt(hn,te,{selected:Zt})),hn});function Ue(te,q){var ve=te.eventKey,Ae=w(),ge=X(ve);return d.useEffect(function(){if(Ae)return Ae.registerPath(ve,ge),function(){Ae.unregisterPath(ve,ge)}},[ge]),Ae?null:d.createElement(ht,(0,E.Z)({},te,{ref:q}))}var Fe=d.forwardRef(Ue),tt=["className","children"],Et=function(q,ve){var Ae=q.className,ge=q.children,Ee=(0,u.Z)(q,tt),_e=d.useContext(P),He=_e.prefixCls,ft=_e.mode,dt=_e.rtl;return d.createElement("ul",(0,E.Z)({className:se()(He,dt&&"".concat(He,"-rtl"),"".concat(He,"-sub"),"".concat(He,"-").concat(ft==="inline"?"inline":"vertical"),Ae),role:"menu"},Ee,{"data-menu-list":!0,ref:ve}),ge)},mt=d.forwardRef(Et);mt.displayName="SubMenuList";var xt=mt,Ot=a(11592);function gt(te,q){return(0,Ot.Z)(te).map(function(ve,Ae){if(d.isValidElement(ve)){var ge,Ee,_e=ve.key,He=(ge=(Ee=ve.props)===null||Ee===void 0?void 0:Ee.eventKey)!==null&&ge!==void 0?ge:_e,ft=He==null;ft&&(He="tmp_key-".concat([].concat((0,Y.Z)(q),[Ae]).join("-")));var dt={key:He,eventKey:He};return d.cloneElement(ve,dt)}return ve})}var Rt=a(35593),it={adjustX:1,adjustY:1},at={topLeft:{points:["bl","tl"],overflow:it},topRight:{points:["br","tr"],overflow:it},bottomLeft:{points:["tl","bl"],overflow:it},bottomRight:{points:["tr","br"],overflow:it},leftTop:{points:["tr","tl"],overflow:it},leftBottom:{points:["br","bl"],overflow:it},rightTop:{points:["tl","tr"],overflow:it},rightBottom:{points:["bl","br"],overflow:it}},Ve={topLeft:{points:["bl","tl"],overflow:it},topRight:{points:["br","tr"],overflow:it},bottomLeft:{points:["tl","bl"],overflow:it},bottomRight:{points:["tr","br"],overflow:it},rightTop:{points:["tr","tl"],overflow:it},rightBottom:{points:["br","bl"],overflow:it},leftTop:{points:["tl","tr"],overflow:it},leftBottom:{points:["bl","br"],overflow:it}},me=null;function e(te,q,ve){if(q)return q;if(ve)return ve[te]||ve.other}var t={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function n(te){var q=te.prefixCls,ve=te.visible,Ae=te.children,ge=te.popup,Ee=te.popupStyle,_e=te.popupClassName,He=te.popupOffset,ft=te.disabled,dt=te.mode,bt=te.onVisibleChange,yt=d.useContext(P),wt=yt.getPopupContainer,Nt=yt.rtl,Dt=yt.subMenuOpenDelay,zt=yt.subMenuCloseDelay,Ht=yt.builtinPlacements,Ut=yt.triggerSubMenuAction,Mt=yt.forceSubMenuRender,Lt=yt.rootClassName,At=yt.motion,Ft=yt.defaultMotions,Pt=d.useState(!1),Gt=(0,A.Z)(Pt,2),Bt=Gt[0],tn=Gt[1],Kt=Nt?(0,F.Z)((0,F.Z)({},Ve),Ht):(0,F.Z)((0,F.Z)({},at),Ht),Jt=t[dt],Xt=e(dt,At,Ft),Yt=d.useRef(Xt);dt!=="inline"&&(Yt.current=Xt);var nn=(0,F.Z)((0,F.Z)({},Yt.current),{},{leavedClassName:"".concat(q,"-hidden"),removeOnLeave:!1,motionAppear:!0}),rn=d.useRef();return d.useEffect(function(){return rn.current=(0,H.Z)(function(){tn(ve)}),function(){H.Z.cancel(rn.current)}},[ve]),d.createElement(Rt.Z,{prefixCls:q,popupClassName:se()("".concat(q,"-popup"),(0,C.Z)({},"".concat(q,"-rtl"),Nt),_e,Lt),stretch:dt==="horizontal"?"minWidth":null,getPopupContainer:wt,builtinPlacements:Kt,popupPlacement:Jt,popupVisible:Bt,popup:ge,popupStyle:Ee,popupAlign:He&&{offset:He},action:ft?[]:[Ut],mouseEnterDelay:Dt,mouseLeaveDelay:zt,onPopupVisibleChange:bt,forceRender:Mt,popupMotion:nn,fresh:!0},Ae)}var r=a(77900);function s(te){var q=te.id,ve=te.open,Ae=te.keyPath,ge=te.children,Ee="inline",_e=d.useContext(P),He=_e.prefixCls,ft=_e.forceSubMenuRender,dt=_e.motion,bt=_e.defaultMotions,yt=_e.mode,wt=d.useRef(!1);wt.current=yt===Ee;var Nt=d.useState(!wt.current),Dt=(0,A.Z)(Nt,2),zt=Dt[0],Ht=Dt[1],Ut=wt.current?ve:!1;d.useEffect(function(){wt.current&&Ht(!1)},[yt]);var Mt=(0,F.Z)({},e(Ee,dt,bt));Ae.length>1&&(Mt.motionAppear=!1);var Lt=Mt.onVisibleChanged;return Mt.onVisibleChanged=function(At){return!wt.current&&!At&&Ht(!0),Lt==null?void 0:Lt(At)},zt?null:d.createElement(R,{mode:Ee,locked:!wt.current},d.createElement(r.default,(0,E.Z)({visible:Ut},Mt,{forceRender:ft,removeOnLeave:!1,leavedClassName:"".concat(He,"-hidden")}),function(At){var Ft=At.className,Pt=At.style;return d.createElement(xt,{id:q,className:Ft,style:Pt},ge)}))}var S=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],I=["active"],Ie=function(q){var ve,Ae=q.style,ge=q.className,Ee=q.title,_e=q.eventKey,He=q.warnKey,ft=q.disabled,dt=q.internalPopupClose,bt=q.children,yt=q.itemIcon,wt=q.expandIcon,Nt=q.popupClassName,Dt=q.popupOffset,zt=q.popupStyle,Ht=q.onClick,Ut=q.onMouseEnter,Mt=q.onMouseLeave,Lt=q.onTitleClick,At=q.onTitleMouseEnter,Ft=q.onTitleMouseLeave,Pt=(0,u.Z)(q,S),Gt=Ce(_e),Bt=d.useContext(P),tn=Bt.prefixCls,Kt=Bt.mode,Jt=Bt.openKeys,Xt=Bt.disabled,Yt=Bt.overflowDisabled,nn=Bt.activeKey,rn=Bt.selectedKeys,fn=Bt.itemIcon,Wt=Bt.expandIcon,an=Bt.onItemClick,lt=Bt.onOpenChange,qe=Bt.onActive,Ct=d.useContext(xe),$t=Ct._internalRenderSubMenuItem,Zt=d.useContext(he),dn=Zt.isSubPathKey,qt=X(),Qt="".concat(tn,"-submenu"),on=Xt||ft,gn=d.useRef(),hn=d.useRef(),En=yt!=null?yt:fn,en=wt!=null?wt:Wt,mn=Jt.includes(_e),yn=!Yt&&mn,$n=dn(rn,_e),xn=V(_e,on,At,Ft),bn=xn.active,zn=(0,u.Z)(xn,I),qn=d.useState(!1),Hn=(0,A.Z)(qn,2),On=Hn[0],Pn=Hn[1],kn=function(un){on||Pn(un)},vn=function(un){kn(!0),Ut==null||Ut({key:_e,domEvent:un})},jn=function(un){kn(!1),Mt==null||Mt({key:_e,domEvent:un})},Ln=d.useMemo(function(){return bn||(Kt!=="inline"?On||dn([nn],_e):!1)},[Kt,bn,nn,On,_e,dn]),Bn=Pe(qt.length),Vn=function(un){on||(Lt==null||Lt({key:_e,domEvent:un}),Kt==="inline"&<(_e,!mn))},Rn=c(function(pn){Ht==null||Ht(ze(pn)),an(pn)}),Dn=function(un){Kt!=="inline"&<(_e,un)},An=function(){qe(_e)},Tn=Gt&&"".concat(Gt,"-popup"),In=d.createElement("div",(0,E.Z)({role:"menuitem",style:Bn,className:"".concat(Qt,"-title"),tabIndex:on?null:-1,ref:gn,title:typeof Ee=="string"?Ee:null,"data-menu-id":Yt&&Gt?null:Gt,"aria-expanded":yn,"aria-haspopup":!0,"aria-controls":Tn,"aria-disabled":on,onClick:Vn,onFocus:An},zn),Ee,d.createElement(Ge,{icon:Kt!=="horizontal"?en:void 0,props:(0,F.Z)((0,F.Z)({},q),{},{isOpen:yn,isSubMenu:!0})},d.createElement("i",{className:"".concat(Qt,"-arrow")}))),cn=d.useRef(Kt);if(Kt!=="inline"&&qt.length>1?cn.current="vertical":cn.current=Kt,!Yt){var wn=cn.current;In=d.createElement(n,{mode:wn,prefixCls:Qt,visible:!dt&&yn&&Kt!=="inline",popupClassName:Nt,popupOffset:Dt,popupStyle:zt,popup:d.createElement(R,{mode:wn==="horizontal"?"vertical":wn},d.createElement(xt,{id:Tn,ref:hn},bt)),disabled:on,onVisibleChange:Dn},In)}var Sn=d.createElement(oe.Z.Item,(0,E.Z)({role:"none"},Pt,{component:"li",style:Ae,className:se()(Qt,"".concat(Qt,"-").concat(Kt),ge,(ve={},(0,C.Z)(ve,"".concat(Qt,"-open"),yn),(0,C.Z)(ve,"".concat(Qt,"-active"),Ln),(0,C.Z)(ve,"".concat(Qt,"-selected"),$n),(0,C.Z)(ve,"".concat(Qt,"-disabled"),on),ve)),onMouseEnter:vn,onMouseLeave:jn}),In,!Yt&&d.createElement(s,{id:Tn,open:yn,keyPath:qt},bt));return $t&&(Sn=$t(Sn,q,{selected:$n,active:Ln,open:yn,disabled:on})),d.createElement(R,{onItemClick:Rn,mode:Kt==="horizontal"?"vertical":Kt,itemIcon:En,expandIcon:en},Sn)};function Se(te){var q=te.eventKey,ve=te.children,Ae=X(q),ge=gt(ve,Ae),Ee=w();d.useEffect(function(){if(Ee)return Ee.registerPath(q,Ae),function(){Ee.unregisterPath(q,Ae)}},[Ae]);var _e;return Ee?_e=ge:_e=d.createElement(Ie,te,ge),d.createElement(re.Provider,{value:Ae},_e)}var De=a(43749),Qe=["className","title","eventKey","children"],ot=["children"],Be=function(q){var ve=q.className,Ae=q.title,ge=q.eventKey,Ee=q.children,_e=(0,u.Z)(q,Qe),He=d.useContext(P),ft=He.prefixCls,dt="".concat(ft,"-item-group");return d.createElement("li",(0,E.Z)({role:"presentation"},_e,{onClick:function(yt){return yt.stopPropagation()},className:se()(dt,ve)}),d.createElement("div",{role:"presentation",className:"".concat(dt,"-title"),title:typeof Ae=="string"?Ae:void 0},Ae),d.createElement("ul",{role:"group",className:"".concat(dt,"-list")},Ee))};function ut(te){var q=te.children,ve=(0,u.Z)(te,ot),Ae=X(ve.eventKey),ge=gt(q,Ae),Ee=w();return Ee?ge:d.createElement(Be,(0,Re.Z)(ve,["warnKey"]),ge)}function We(te){var q=te.className,ve=te.style,Ae=d.useContext(P),ge=Ae.prefixCls,Ee=w();return Ee?null:d.createElement("li",{role:"separator",className:se()("".concat(ge,"-item-divider"),q),style:ve})}var we=["label","children","key","type"];function $e(te){return(te||[]).map(function(q,ve){if(q&&(0,De.Z)(q)==="object"){var Ae=q,ge=Ae.label,Ee=Ae.children,_e=Ae.key,He=Ae.type,ft=(0,u.Z)(Ae,we),dt=_e!=null?_e:"tmp-".concat(ve);return Ee||He==="group"?He==="group"?d.createElement(ut,(0,E.Z)({key:dt},ft,{title:ge}),$e(Ee)):d.createElement(Se,(0,E.Z)({key:dt},ft,{title:ge}),$e(Ee)):He==="divider"?d.createElement(We,(0,E.Z)({key:dt},ft)):d.createElement(Fe,(0,E.Z)({key:dt},ft),ge)}return null}).filter(function(q){return q})}function nt(te,q,ve){var Ae=te;return q&&(Ae=$e(q)),gt(Ae,ve)}var Je=["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"],pt=[],Tt=d.forwardRef(function(te,q){var ve,Ae,ge=te,Ee=ge.prefixCls,_e=Ee===void 0?"rc-menu":Ee,He=ge.rootClassName,ft=ge.style,dt=ge.className,bt=ge.tabIndex,yt=bt===void 0?0:bt,wt=ge.items,Nt=ge.children,Dt=ge.direction,zt=ge.id,Ht=ge.mode,Ut=Ht===void 0?"vertical":Ht,Mt=ge.inlineCollapsed,Lt=ge.disabled,At=ge.disabledOverflow,Ft=ge.subMenuOpenDelay,Pt=Ft===void 0?.1:Ft,Gt=ge.subMenuCloseDelay,Bt=Gt===void 0?.1:Gt,tn=ge.forceSubMenuRender,Kt=ge.defaultOpenKeys,Jt=ge.openKeys,Xt=ge.activeKey,Yt=ge.defaultActiveFirst,nn=ge.selectable,rn=nn===void 0?!0:nn,fn=ge.multiple,Wt=fn===void 0?!1:fn,an=ge.defaultSelectedKeys,lt=ge.selectedKeys,qe=ge.onSelect,Ct=ge.onDeselect,$t=ge.inlineIndent,Zt=$t===void 0?24:$t,dn=ge.motion,qt=ge.defaultMotions,Qt=ge.triggerSubMenuAction,on=Qt===void 0?"hover":Qt,gn=ge.builtinPlacements,hn=ge.itemIcon,En=ge.expandIcon,en=ge.overflowedIndicator,mn=en===void 0?"...":en,yn=ge.overflowedIndicatorPopupClassName,$n=ge.getPopupContainer,xn=ge.onClick,bn=ge.onOpenChange,zn=ge.onKeyDown,qn=ge.openAnimation,Hn=ge.openTransitionName,On=ge._internalRenderMenuItem,Pn=ge._internalRenderSubMenuItem,kn=(0,u.Z)(ge,Je),vn=d.useMemo(function(){return nt(Nt,wt,pt)},[Nt,wt]),jn=d.useState(!1),Ln=(0,A.Z)(jn,2),Bn=Ln[0],Vn=Ln[1],Rn=d.useRef(),Dn=K(zt),An=Dt==="rtl",Tn=(0,be.Z)(Kt,{value:Jt,postState:function(kt){return kt||pt}}),In=(0,A.Z)(Tn,2),cn=In[0],wn=In[1],Sn=function(kt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function sn(){wn(kt),bn==null||bn(kt)}jt?(0,ne.flushSync)(sn):sn()},pn=d.useState(cn),un=(0,A.Z)(pn,2),mr=un[0],vr=un[1],Wn=d.useRef(!1),pr=d.useMemo(function(){return(Ut==="inline"||Ut==="vertical")&&Mt?["vertical",Mt]:[Ut,!1]},[Ut,Mt]),er=(0,A.Z)(pr,2),Kn=er[0],Gn=er[1],tr=Kn==="inline",gr=d.useState(Kn),nr=(0,A.Z)(gr,2),_n=nr[0],yr=nr[1],_r=d.useState(Gn),rr=(0,A.Z)(_r,2),Er=rr[0],br=rr[1];d.useEffect(function(){yr(Kn),br(Gn),Wn.current&&(tr?wn(mr):Sn(pt))},[Kn,Gn]);var Sr=d.useState(0),ir=(0,A.Z)(Sr,2),Fn=ir[0],Cr=ir[1],Xn=Fn>=vn.length-1||_n!=="horizontal"||At;d.useEffect(function(){tr&&vr(cn)},[cn]),d.useEffect(function(){return Wn.current=!0,function(){Wn.current=!1}},[]);var Cn=o(),ar=Cn.registerPath,or=Cn.unregisterPath,xr=Cn.refreshOverflowKeys,sr=Cn.isSubPathKey,Rr=Cn.getKeyPath,lr=Cn.getKeys,Ir=Cn.getSubPathKeys,wr=d.useMemo(function(){return{registerPath:ar,unregisterPath:or}},[ar,or]),Or=d.useMemo(function(){return{isSubPathKey:sr}},[sr]);d.useEffect(function(){xr(Xn?pt:vn.slice(Fn+1).map(function(Vt){return Vt.key}))},[Fn,Xn]);var Lr=(0,be.Z)(Xt||Yt&&((ve=vn[0])===null||ve===void 0?void 0:ve.key),{value:Xt}),dr=(0,A.Z)(Lr,2),Nn=dr[0],Yn=dr[1],Dr=c(function(Vt){Yn(Vt)}),Ar=c(function(){Yn(void 0)});(0,d.useImperativeHandle)(q,function(){return{list:Rn.current,focus:function(kt){var jt,sn=lr(),ln=v(sn,Dn),Un=ln.elements,Qn=ln.key2element,Zr=ln.element2key,fr=f(Rn.current,Un),hr=Nn!=null?Nn:fr[0]?Zr.get(fr[0]):(jt=vn.find(function(Ur){return!Ur.props.disabled}))===null||jt===void 0?void 0:jt.key,Mn=Qn.get(hr);if(hr&&Mn){var Jn;Mn==null||(Jn=Mn.focus)===null||Jn===void 0||Jn.call(Mn,kt)}}}});var Tr=(0,be.Z)(an||[],{value:lt,postState:function(kt){return Array.isArray(kt)?kt:kt==null?pt:[kt]}}),cr=(0,A.Z)(Tr,2),Zn=cr[0],Nr=cr[1],Mr=function(kt){if(rn){var jt=kt.key,sn=Zn.includes(jt),ln;Wt?sn?ln=Zn.filter(function(Qn){return Qn!==jt}):ln=[].concat((0,Y.Z)(Zn),[jt]):ln=[jt],Nr(ln);var Un=(0,F.Z)((0,F.Z)({},kt),{},{selectedKeys:ln});sn?Ct==null||Ct(Un):qe==null||qe(Un)}!Wt&&cn.length&&_n!=="inline"&&Sn(pt)},$r=c(function(Vt){xn==null||xn(ze(Vt)),Mr(Vt)}),ur=c(function(Vt,kt){var jt=cn.filter(function(ln){return ln!==Vt});if(kt)jt.push(Vt);else if(_n!=="inline"){var sn=Ir(Vt);jt=jt.filter(function(ln){return!sn.has(ln)})}(0,de.Z)(cn,jt,!0)||Sn(jt,!0)}),Pr=function(kt,jt){var sn=jt!=null?jt:!cn.includes(kt);ur(kt,sn)},kr=i(_n,Nn,An,Dn,Rn,lr,Rr,Yn,Pr,zn);d.useEffect(function(){Vn(!0)},[]);var Br=d.useMemo(function(){return{_internalRenderMenuItem:On,_internalRenderSubMenuItem:Pn}},[On,Pn]),Kr=_n!=="horizontal"||At?vn:vn.map(function(Vt,kt){return d.createElement(R,{key:Vt.key,overflowDisabled:kt>Fn},Vt)}),Fr=d.createElement(oe.Z,(0,E.Z)({id:zt,ref:Rn,prefixCls:"".concat(_e,"-overflow"),component:"ul",itemComponent:Fe,className:se()(_e,"".concat(_e,"-root"),"".concat(_e,"-").concat(_n),dt,(Ae={},(0,C.Z)(Ae,"".concat(_e,"-inline-collapsed"),Er),(0,C.Z)(Ae,"".concat(_e,"-rtl"),An),Ae),He),dir:Dt,style:ft,role:"menu",tabIndex:yt,data:Kr,renderRawItem:function(kt){return kt},renderRawRest:function(kt){var jt=kt.length,sn=jt?vn.slice(-jt):null;return d.createElement(Se,{eventKey:h,title:mn,disabled:Xn,internalPopupClose:jt===0,popupClassName:yn},sn)},maxCount:_n!=="horizontal"||At?oe.Z.INVALIDATE:oe.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(kt){Cr(kt)},onKeyDown:kr},kn));return d.createElement(xe.Provider,{value:Br},d.createElement(ee.Provider,{value:Dn},d.createElement(R,{prefixCls:_e,rootClassName:He,mode:_n,openKeys:cn,rtl:An,disabled:Lt,motion:Bn?dn:null,defaultMotions:Bn?qt:null,activeKey:Nn,onActive:Dr,onInactive:Ar,selectedKeys:Zn,inlineIndent:Zt,subMenuOpenDelay:Pt,subMenuCloseDelay:Bt,forceSubMenuRender:tn,builtinPlacements:gn,triggerSubMenuAction:on,getPopupContainer:$n,itemIcon:hn,expandIcon:En,onItemClick:$r,onOpenChange:ur},d.createElement(he.Provider,{value:Or},Fr),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement($.Provider,{value:wr},vn)))))}),It=Tt,Ye=It;Ye.Item=Fe,Ye.SubMenu=Se,Ye.ItemGroup=ut,Ye.Divider=We;var St=Ye},83836:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return pe}});var E=a(60499),C=a(85899),F=a(72190),Y=a(42244),A=a(59301),u=a(92310),ce=a.n(u),se=a(29301),oe=a(34280),be=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],de=void 0;function N(z,le){var Q=z.prefixCls,L=z.invalidate,H=z.item,J=z.renderItem,ae=z.responsive,ye=z.responsiveDisabled,Ne=z.registerSize,ke=z.itemKey,Oe=z.className,et=z.style,Ke=z.children,je=z.display,Xe=z.order,G=z.component,Le=G===void 0?"div":G,f=(0,Y.Z)(z,be),y=ae&&!je;function v(l){Ne(ke,l)}A.useEffect(function(){return function(){v(null)}},[]);var i=J&&H!==de?J(H,{index:Xe}):Ke,b;L||(b={opacity:y?0:1,height:y?0:de,overflowY:y?"hidden":de,order:ae?Xe:de,pointerEvents:y?"none":de,position:y?"absolute":de});var U={};y&&(U["aria-hidden"]=!0);var _=A.createElement(Le,(0,E.Z)({className:ce()(!L&&Q,Oe),style:(0,C.Z)((0,C.Z)({},b),et)},U,f,{ref:le}),i);return ae&&(_=A.createElement(se.Z,{onResize:function(h){var o=h.offsetWidth;v(o)},disabled:ye},_)),_}var d=A.forwardRef(N);d.displayName="Item";var ne=d,ee=a(6089),Z=a(4676),Ce=a(16089);function j(z){if(typeof MessageChannel=="undefined")(0,Ce.Z)(z);else{var le=new MessageChannel;le.port1.onmessage=function(){return z()},le.port2.postMessage(void 0)}}function T(){var z=A.useRef(null),le=function(L){z.current||(z.current=[],j(function(){(0,Z.unstable_batchedUpdates)(function(){z.current.forEach(function(H){H()}),z.current=null})})),z.current.push(L)};return le}function P(z,le){var Q=A.useState(le),L=(0,F.Z)(Q,2),H=L[0],J=L[1],ae=(0,ee.Z)(function(ye){z(function(){J(ye)})});return[H,ae]}var g=A.createContext(null),R=["component"],B=["className"],$=["className"],w=function(le,Q){var L=A.useContext(g);if(!L){var H=le.component,J=H===void 0?"div":H,ae=(0,Y.Z)(le,R);return A.createElement(J,(0,E.Z)({},ae,{ref:Q}))}var ye=L.className,Ne=(0,Y.Z)(L,B),ke=le.className,Oe=(0,Y.Z)(le,$);return A.createElement(g.Provider,{value:null},A.createElement(ne,(0,E.Z)({ref:Q,className:ce()(ye,ke)},Ne,Oe)))},re=A.forwardRef(w);re.displayName="RawItem";var X=re,he=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],D="responsive",xe="invalidate";function x(z){return"+ ".concat(z.length," ...")}function M(z,le){var Q=z.prefixCls,L=Q===void 0?"rc-overflow":Q,H=z.data,J=H===void 0?[]:H,ae=z.renderItem,ye=z.renderRawItem,Ne=z.itemKey,ke=z.itemWidth,Oe=ke===void 0?10:ke,et=z.ssr,Ke=z.style,je=z.className,Xe=z.maxCount,G=z.renderRest,Le=z.renderRawRest,f=z.prefix,y=z.suffix,v=z.component,i=v===void 0?"div":v,b=z.itemComponent,U=z.onVisibleChange,_=(0,Y.Z)(z,he),l=et==="full",h=T(),o=P(h,null),c=(0,F.Z)(o,2),p=c[0],O=c[1],K=p||0,ue=P(h,new Map),ie=(0,F.Z)(ue,2),fe=ie[0],W=ie[1],Re=P(h,0),Te=(0,F.Z)(Re,2),V=Te[0],Pe=Te[1],Ge=P(h,0),Ze=(0,F.Z)(Ge,2),ze=Ze[0],rt=Ze[1],_t=P(h,0),ct=(0,F.Z)(_t,2),st=ct[0],ht=ct[1],Ue=P(h,0),Fe=(0,F.Z)(Ue,2),tt=Fe[0],Et=Fe[1],mt=(0,A.useState)(null),xt=(0,F.Z)(mt,2),Ot=xt[0],gt=xt[1],Rt=(0,A.useState)(null),it=(0,F.Z)(Rt,2),at=it[0],Ve=it[1],me=A.useMemo(function(){return at===null&&l?Number.MAX_SAFE_INTEGER:at||0},[at,p]),e=(0,A.useState)(!1),t=(0,F.Z)(e,2),n=t[0],r=t[1],s="".concat(L,"-item"),S=Math.max(V,ze),I=Xe===D,Ie=J.length&&I,Se=Xe===xe,De=Ie||typeof Xe=="number"&&J.length>Xe,Qe=(0,A.useMemo)(function(){var Ee=J;return Ie?p===null&&l?Ee=J:Ee=J.slice(0,Math.min(J.length,K/Oe)):typeof Xe=="number"&&(Ee=J.slice(0,Xe)),Ee},[J,Oe,p,Xe,Ie]),ot=(0,A.useMemo)(function(){return Ie?J.slice(me+1):J.slice(Qe.length)},[J,Qe,Ie,me]),Be=(0,A.useCallback)(function(Ee,_e){var He;return typeof Ne=="function"?Ne(Ee):(He=Ne&&(Ee==null?void 0:Ee[Ne]))!==null&&He!==void 0?He:_e},[Ne]),ut=(0,A.useCallback)(ae||function(Ee){return Ee},[ae]);function We(Ee,_e,He){at===Ee&&(_e===void 0||_e===Ot)||(Ve(Ee),He||(r(Ee<J.length-1),U==null||U(Ee)),_e!==void 0&>(_e))}function we(Ee,_e){O(_e.clientWidth)}function $e(Ee,_e){W(function(He){var ft=new Map(He);return _e===null?ft.delete(Ee):ft.set(Ee,_e),ft})}function nt(Ee,_e){rt(_e),Pe(ze)}function Je(Ee,_e){ht(_e)}function pt(Ee,_e){Et(_e)}function Tt(Ee){return fe.get(Be(Qe[Ee],Ee))}(0,oe.Z)(function(){if(K&&typeof S=="number"&&Qe){var Ee=st+tt,_e=Qe.length,He=_e-1;if(!_e){We(0,null);return}for(var ft=0;ft<_e;ft+=1){var dt=Tt(ft);if(l&&(dt=dt||0),dt===void 0){We(ft-1,void 0,!0);break}if(Ee+=dt,He===0&&Ee<=K||ft===He-1&&Ee+Tt(He)<=K){We(He,null);break}else if(Ee+S>K){We(ft-1,Ee-dt-tt+ze);break}}y&&Tt(0)+tt>K&>(null)}},[K,fe,ze,st,tt,Be,Qe]);var It=n&&!!ot.length,Ye={};Ot!==null&&Ie&&(Ye={position:"absolute",left:Ot,top:0});var St={prefixCls:s,responsive:Ie,component:b,invalidate:Se},te=ye?function(Ee,_e){var He=Be(Ee,_e);return A.createElement(g.Provider,{key:He,value:(0,C.Z)((0,C.Z)({},St),{},{order:_e,item:Ee,itemKey:He,registerSize:$e,display:_e<=me})},ye(Ee,_e))}:function(Ee,_e){var He=Be(Ee,_e);return A.createElement(ne,(0,E.Z)({},St,{order:_e,key:He,item:Ee,renderItem:ut,itemKey:He,registerSize:$e,display:_e<=me}))},q={order:It?me:Number.MAX_SAFE_INTEGER,className:"".concat(s,"-rest"),registerSize:nt,display:It},ve=G||x,Ae=Le?A.createElement(g.Provider,{value:(0,C.Z)((0,C.Z)({},St),q)},Le(ot)):A.createElement(ne,(0,E.Z)({},St,q),typeof ve=="function"?ve(ot):ve),ge=A.createElement(i,(0,E.Z)({className:ce()(!Se&&L,je),style:Ke,ref:le},_),f&&A.createElement(ne,(0,E.Z)({},St,{responsive:I,responsiveDisabled:!Ie,order:-1,className:"".concat(s,"-prefix"),registerSize:Je,display:!0}),f),Qe.map(te),De?Ae:null,y&&A.createElement(ne,(0,E.Z)({},St,{responsive:I,responsiveDisabled:!Ie,order:me,className:"".concat(s,"-suffix"),registerSize:pt,display:!0,style:Ye}),y));return I?A.createElement(se.Z,{onResize:we,disabled:!Ie},ge):ge}var m=A.forwardRef(M);m.displayName="Overflow",m.Item=X,m.RESPONSIVE=D,m.INVALIDATE=xe;var k=m,pe=k},39417:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return w}});var E=a(60499),C=a(18642),F=a(42244),Y=a(85899),A=a(38705),u=a(17212),ce=a(15793),se=a(39153),oe=a(55401),be=a(92310),de=a.n(be),N=a(26112),d=a(59301),ne=a(39378),ee=function(X){for(var he=X.prefixCls,D=X.level,xe=X.isStart,x=X.isEnd,M="".concat(he,"-indent-unit"),m=[],k=0;k<D;k+=1){var pe;m.push(d.createElement("span",{key:k,className:de()(M,(pe={},(0,C.Z)(pe,"".concat(M,"-start"),xe[k]),(0,C.Z)(pe,"".concat(M,"-end"),x[k]),pe))}))}return d.createElement("span",{"aria-hidden":"true",className:"".concat(he,"-indent")},m)},Z=d.memo(ee),Ce=a(67841),j=a(71430),T=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],P="open",g="close",R="---",B=function(re){(0,se.Z)(he,re);var X=(0,oe.Z)(he);function he(){var D;(0,A.Z)(this,he);for(var xe=arguments.length,x=new Array(xe),M=0;M<xe;M++)x[M]=arguments[M];return D=X.call.apply(X,[this].concat(x)),D.state={dragNodeHighlight:!1},D.selectHandle=void 0,D.cacheIndent=void 0,D.onSelectorClick=function(m){var k=D.props.context.onNodeClick;k(m,(0,j.F)(D.props)),D.isSelectable()?D.onSelect(m):D.onCheck(m)},D.onSelectorDoubleClick=function(m){var k=D.props.context.onNodeDoubleClick;k(m,(0,j.F)(D.props))},D.onSelect=function(m){if(!D.isDisabled()){var k=D.props.context.onNodeSelect;k(m,(0,j.F)(D.props))}},D.onCheck=function(m){if(!D.isDisabled()){var k=D.props,pe=k.disableCheckbox,z=k.checked,le=D.props.context.onNodeCheck;if(!(!D.isCheckable()||pe)){var Q=!z;le(m,(0,j.F)(D.props),Q)}}},D.onMouseEnter=function(m){var k=D.props.context.onNodeMouseEnter;k(m,(0,j.F)(D.props))},D.onMouseLeave=function(m){var k=D.props.context.onNodeMouseLeave;k(m,(0,j.F)(D.props))},D.onContextMenu=function(m){var k=D.props.context.onNodeContextMenu;k(m,(0,j.F)(D.props))},D.onDragStart=function(m){var k=D.props.context.onNodeDragStart;m.stopPropagation(),D.setState({dragNodeHighlight:!0}),k(m,(0,ce.Z)(D));try{m.dataTransfer.setData("text/plain","")}catch(pe){}},D.onDragEnter=function(m){var k=D.props.context.onNodeDragEnter;m.preventDefault(),m.stopPropagation(),k(m,(0,ce.Z)(D))},D.onDragOver=function(m){var k=D.props.context.onNodeDragOver;m.preventDefault(),m.stopPropagation(),k(m,(0,ce.Z)(D))},D.onDragLeave=function(m){var k=D.props.context.onNodeDragLeave;m.stopPropagation(),k(m,(0,ce.Z)(D))},D.onDragEnd=function(m){var k=D.props.context.onNodeDragEnd;m.stopPropagation(),D.setState({dragNodeHighlight:!1}),k(m,(0,ce.Z)(D))},D.onDrop=function(m){var k=D.props.context.onNodeDrop;m.preventDefault(),m.stopPropagation(),D.setState({dragNodeHighlight:!1}),k(m,(0,ce.Z)(D))},D.onExpand=function(m){var k=D.props,pe=k.loading,z=k.context.onNodeExpand;pe||z(m,(0,j.F)(D.props))},D.setSelectHandle=function(m){D.selectHandle=m},D.getNodeState=function(){var m=D.props.expanded;return D.isLeaf()?null:m?P:g},D.hasChildren=function(){var m=D.props.eventKey,k=D.props.context.keyEntities,pe=(0,Ce.Z)(k,m)||{},z=pe.children;return!!(z||[]).length},D.isLeaf=function(){var m=D.props,k=m.isLeaf,pe=m.loaded,z=D.props.context.loadData,le=D.hasChildren();return k===!1?!1:k||!z&&!le||z&&pe&&!le},D.isDisabled=function(){var m=D.props.disabled,k=D.props.context.disabled;return!!(k||m)},D.isCheckable=function(){var m=D.props.checkable,k=D.props.context.checkable;return!k||m===!1?!1:k},D.syncLoadData=function(m){var k=m.expanded,pe=m.loading,z=m.loaded,le=D.props.context,Q=le.loadData,L=le.onNodeLoad;pe||Q&&k&&!D.isLeaf()&&!D.hasChildren()&&!z&&L((0,j.F)(D.props))},D.isDraggable=function(){var m=D.props,k=m.data,pe=m.context.draggable;return!!(pe&&(!pe.nodeDraggable||pe.nodeDraggable(k)))},D.renderDragHandler=function(){var m=D.props.context,k=m.draggable,pe=m.prefixCls;return k!=null&&k.icon?d.createElement("span",{className:"".concat(pe,"-draggable-icon")},k.icon):null},D.renderSwitcherIconDom=function(m){var k=D.props.switcherIcon,pe=D.props.context.switcherIcon,z=k||pe;return typeof z=="function"?z((0,Y.Z)((0,Y.Z)({},D.props),{},{isLeaf:m})):z},D.renderSwitcher=function(){var m=D.props.expanded,k=D.props.context.prefixCls;if(D.isLeaf()){var pe=D.renderSwitcherIconDom(!0);return pe!==!1?d.createElement("span",{className:de()("".concat(k,"-switcher"),"".concat(k,"-switcher-noop"))},pe):null}var z=de()("".concat(k,"-switcher"),"".concat(k,"-switcher_").concat(m?P:g)),le=D.renderSwitcherIconDom(!1);return le!==!1?d.createElement("span",{onClick:D.onExpand,className:z},le):null},D.renderCheckbox=function(){var m=D.props,k=m.checked,pe=m.halfChecked,z=m.disableCheckbox,le=D.props.context.prefixCls,Q=D.isDisabled(),L=D.isCheckable();if(!L)return null;var H=typeof L!="boolean"?L:null;return d.createElement("span",{className:de()("".concat(le,"-checkbox"),k&&"".concat(le,"-checkbox-checked"),!k&&pe&&"".concat(le,"-checkbox-indeterminate"),(Q||z)&&"".concat(le,"-checkbox-disabled")),onClick:D.onCheck},H)},D.renderIcon=function(){var m=D.props.loading,k=D.props.context.prefixCls;return d.createElement("span",{className:de()("".concat(k,"-iconEle"),"".concat(k,"-icon__").concat(D.getNodeState()||"docu"),m&&"".concat(k,"-icon_loading"))})},D.renderSelector=function(){var m=D.state.dragNodeHighlight,k=D.props,pe=k.title,z=pe===void 0?R:pe,le=k.selected,Q=k.icon,L=k.loading,H=k.data,J=D.props.context,ae=J.prefixCls,ye=J.showIcon,Ne=J.icon,ke=J.loadData,Oe=J.titleRender,et=D.isDisabled(),Ke="".concat(ae,"-node-content-wrapper"),je;if(ye){var Xe=Q||Ne;je=Xe?d.createElement("span",{className:de()("".concat(ae,"-iconEle"),"".concat(ae,"-icon__customize"))},typeof Xe=="function"?Xe(D.props):Xe):D.renderIcon()}else ke&&L&&(je=D.renderIcon());var G;typeof z=="function"?G=z(H):Oe?G=Oe(H):G=z;var Le=d.createElement("span",{className:"".concat(ae,"-title")},G);return d.createElement("span",{ref:D.setSelectHandle,title:typeof z=="string"?z:"",className:de()("".concat(Ke),"".concat(Ke,"-").concat(D.getNodeState()||"normal"),!et&&(le||m)&&"".concat(ae,"-node-selected")),onMouseEnter:D.onMouseEnter,onMouseLeave:D.onMouseLeave,onContextMenu:D.onContextMenu,onClick:D.onSelectorClick,onDoubleClick:D.onSelectorDoubleClick},je,Le,D.renderDropIndicator())},D.renderDropIndicator=function(){var m=D.props,k=m.disabled,pe=m.eventKey,z=D.props.context,le=z.draggable,Q=z.dropLevelOffset,L=z.dropPosition,H=z.prefixCls,J=z.indent,ae=z.dropIndicatorRender,ye=z.dragOverNodeKey,Ne=z.direction,ke=!!le,Oe=!k&&ke&&ye===pe,et=J!=null?J:D.cacheIndent;return D.cacheIndent=J,Oe?ae({dropPosition:L,dropLevelOffset:Q,indent:et,prefixCls:H,direction:Ne}):null},D}return(0,u.Z)(he,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var xe=this.props.selectable,x=this.props.context.selectable;return typeof xe=="boolean"?xe:x}},{key:"render",value:function(){var xe,x=this.props,M=x.eventKey,m=x.className,k=x.style,pe=x.dragOver,z=x.dragOverGapTop,le=x.dragOverGapBottom,Q=x.isLeaf,L=x.isStart,H=x.isEnd,J=x.expanded,ae=x.selected,ye=x.checked,Ne=x.halfChecked,ke=x.loading,Oe=x.domRef,et=x.active,Ke=x.data,je=x.onMouseMove,Xe=x.selectable,G=(0,F.Z)(x,T),Le=this.props.context,f=Le.prefixCls,y=Le.filterTreeNode,v=Le.keyEntities,i=Le.dropContainerKey,b=Le.dropTargetKey,U=Le.draggingNodeKey,_=this.isDisabled(),l=(0,N.Z)(G,{aria:!0,data:!0}),h=(0,Ce.Z)(v,M)||{},o=h.level,c=H[H.length-1],p=this.isDraggable(),O=!_&&p,K=U===M,ue=Xe!==void 0?{"aria-selected":!!Xe}:void 0;return d.createElement("div",(0,E.Z)({ref:Oe,className:de()(m,"".concat(f,"-treenode"),(xe={},(0,C.Z)(xe,"".concat(f,"-treenode-disabled"),_),(0,C.Z)(xe,"".concat(f,"-treenode-switcher-").concat(J?"open":"close"),!Q),(0,C.Z)(xe,"".concat(f,"-treenode-checkbox-checked"),ye),(0,C.Z)(xe,"".concat(f,"-treenode-checkbox-indeterminate"),Ne),(0,C.Z)(xe,"".concat(f,"-treenode-selected"),ae),(0,C.Z)(xe,"".concat(f,"-treenode-loading"),ke),(0,C.Z)(xe,"".concat(f,"-treenode-active"),et),(0,C.Z)(xe,"".concat(f,"-treenode-leaf-last"),c),(0,C.Z)(xe,"".concat(f,"-treenode-draggable"),p),(0,C.Z)(xe,"dragging",K),(0,C.Z)(xe,"drop-target",b===M),(0,C.Z)(xe,"drop-container",i===M),(0,C.Z)(xe,"drag-over",!_&&pe),(0,C.Z)(xe,"drag-over-gap-top",!_&&z),(0,C.Z)(xe,"drag-over-gap-bottom",!_&&le),(0,C.Z)(xe,"filter-node",y&&y((0,j.F)(this.props))),xe)),style:k,draggable:O,"aria-grabbed":K,onDragStart:O?this.onDragStart:void 0,onDragEnter:p?this.onDragEnter:void 0,onDragOver:p?this.onDragOver:void 0,onDragLeave:p?this.onDragLeave:void 0,onDrop:p?this.onDrop:void 0,onDragEnd:p?this.onDragEnd:void 0,onMouseMove:je},ue,l),d.createElement(Z,{prefixCls:f,level:o,isStart:L,isEnd:H}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),he}(d.Component),$=function(X){return d.createElement(ne.k.Consumer,null,function(he){return d.createElement(B,(0,E.Z)({},X,{context:he}))})};$.displayName="TreeNode",$.isTreeNode=1;var w=$},39378:function(vt,Me,a){"use strict";a.d(Me,{k:function(){return C}});var E=a(59301),C=E.createContext(null)},38028:function(vt,Me,a){"use strict";a.d(Me,{O:function(){return w.Z},Z:function(){return Le}});var E=a(60499),C=a(18642),F=a(43749),Y=a(85899),A=a(77654),u=a(38705),ce=a(17212),se=a(15793),oe=a(39153),be=a(55401),de=a(92310),N=a.n(de),d=a(10228),ne=a(26112),ee=a(48736),Z=a(59301),Ce=a(39378);function j(f){var y=f.dropPosition,v=f.dropLevelOffset,i=f.indent,b={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(y){case-1:b.top=0,b.left=-v*i;break;case 1:b.bottom=0,b.left=-v*i;break;case 0:b.bottom=0,b.left=i;break}return Z.createElement("div",{style:b})}function T(f){if(f==null)throw new TypeError("Cannot destructure "+f)}var P=a(72190),g=a(42244),R=a(34280),B=a(48911),$=a(77900),w=a(39417);function re(f,y){var v=Z.useState(!1),i=(0,P.Z)(v,2),b=i[0],U=i[1];Z.useLayoutEffect(function(){if(b)return f(),function(){y()}},[b]),Z.useLayoutEffect(function(){return U(!0),function(){U(!1)}},[])}var X=a(71430),he=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],D=function(y,v){var i=y.className,b=y.style,U=y.motion,_=y.motionNodes,l=y.motionType,h=y.onMotionStart,o=y.onMotionEnd,c=y.active,p=y.treeNodeRequiredProps,O=(0,g.Z)(y,he),K=Z.useState(!0),ue=(0,P.Z)(K,2),ie=ue[0],fe=ue[1],W=Z.useContext(Ce.k),Re=W.prefixCls,Te=_&&l!=="hide";(0,R.Z)(function(){_&&Te!==ie&&fe(Te)},[_]);var V=function(){_&&h()},Pe=Z.useRef(!1),Ge=function(){_&&!Pe.current&&(Pe.current=!0,o())};re(V,Ge);var Ze=function(rt){Te===rt&&Ge()};return _?Z.createElement($.default,(0,E.Z)({ref:v,visible:ie},U,{motionAppear:l==="show",onVisibleChanged:Ze}),function(ze,rt){var _t=ze.className,ct=ze.style;return Z.createElement("div",{ref:rt,className:N()("".concat(Re,"-treenode-motion"),_t),style:ct},_.map(function(st){var ht=(0,E.Z)({},(T(st.data),st.data)),Ue=st.title,Fe=st.key,tt=st.isStart,Et=st.isEnd;delete ht.children;var mt=(0,X.H8)(Fe,p);return Z.createElement(w.Z,(0,E.Z)({},ht,mt,{title:Ue,active:c,data:st.data,key:Fe,isStart:tt,isEnd:Et}))}))}):Z.createElement(w.Z,(0,E.Z)({domRef:v,className:i,style:b},O,{active:c}))};D.displayName="MotionTreeNode";var xe=Z.forwardRef(D),x=xe;function M(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],v=f.length,i=y.length;if(Math.abs(v-i)!==1)return{add:!1,key:null};function b(U,_){var l=new Map;U.forEach(function(o){l.set(o,!0)});var h=_.filter(function(o){return!l.has(o)});return h.length===1?h[0]:null}return v<i?{add:!0,key:b(f,y)}:{add:!1,key:b(y,f)}}function m(f,y,v){var i=f.findIndex(function(l){return l.key===v}),b=f[i+1],U=y.findIndex(function(l){return l.key===v});if(b){var _=y.findIndex(function(l){return l.key===b.key});return y.slice(U+1,_)}return y.slice(U+1)}var k=["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"],pe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},z=function(){},le="RC_TREE_MOTION_".concat(Math.random()),Q={key:le},L={key:le,level:0,index:0,pos:"0",node:Q,nodes:[Q]},H={parent:null,children:[],pos:L.pos,data:Q,title:null,key:le,isStart:[],isEnd:[]};function J(f,y,v,i){return y===!1||!v?f:f.slice(0,Math.ceil(v/i)+1)}function ae(f){var y=f.key,v=f.pos;return(0,X.km)(y,v)}function ye(f){for(var y=String(f.data.key),v=f;v.parent;)v=v.parent,y="".concat(v.data.key," > ").concat(y);return y}var Ne=Z.forwardRef(function(f,y){var v=f.prefixCls,i=f.data,b=f.selectable,U=f.checkable,_=f.expandedKeys,l=f.selectedKeys,h=f.checkedKeys,o=f.loadedKeys,c=f.loadingKeys,p=f.halfCheckedKeys,O=f.keyEntities,K=f.disabled,ue=f.dragging,ie=f.dragOverNodeKey,fe=f.dropPosition,W=f.motion,Re=f.height,Te=f.itemHeight,V=f.virtual,Pe=f.focusable,Ge=f.activeItem,Ze=f.focused,ze=f.tabIndex,rt=f.onKeyDown,_t=f.onFocus,ct=f.onBlur,st=f.onActiveChange,ht=f.onListChangeStart,Ue=f.onListChangeEnd,Fe=(0,g.Z)(f,k),tt=Z.useRef(null),Et=Z.useRef(null);Z.useImperativeHandle(y,function(){return{scrollTo:function($e){tt.current.scrollTo($e)},getIndentWidth:function(){return Et.current.offsetWidth}}});var mt=Z.useState(_),xt=(0,P.Z)(mt,2),Ot=xt[0],gt=xt[1],Rt=Z.useState(i),it=(0,P.Z)(Rt,2),at=it[0],Ve=it[1],me=Z.useState(i),e=(0,P.Z)(me,2),t=e[0],n=e[1],r=Z.useState([]),s=(0,P.Z)(r,2),S=s[0],I=s[1],Ie=Z.useState(null),Se=(0,P.Z)(Ie,2),De=Se[0],Qe=Se[1],ot=Z.useRef(i);ot.current=i;function Be(){var we=ot.current;Ve(we),n(we),I([]),Qe(null),Ue()}(0,R.Z)(function(){gt(_);var we=M(Ot,_);if(we.key!==null)if(we.add){var $e=at.findIndex(function(Ye){var St=Ye.key;return St===we.key}),nt=J(m(at,i,we.key),V,Re,Te),Je=at.slice();Je.splice($e+1,0,H),n(Je),I(nt),Qe("show")}else{var pt=i.findIndex(function(Ye){var St=Ye.key;return St===we.key}),Tt=J(m(i,at,we.key),V,Re,Te),It=i.slice();It.splice(pt+1,0,H),n(It),I(Tt),Qe("hide")}else at!==i&&(Ve(i),n(i))},[_,i]),Z.useEffect(function(){ue||Be()},[ue]);var ut=W?t:i,We={expandedKeys:_,selectedKeys:l,loadedKeys:o,loadingKeys:c,checkedKeys:h,halfCheckedKeys:p,dragOverNodeKey:ie,dropPosition:fe,keyEntities:O};return Z.createElement(Z.Fragment,null,Ze&&Ge&&Z.createElement("span",{style:pe,"aria-live":"assertive"},ye(Ge)),Z.createElement("div",null,Z.createElement("input",{style:pe,disabled:Pe===!1||K,tabIndex:Pe!==!1?ze:null,onKeyDown:rt,onFocus:_t,onBlur:ct,value:"",onChange:z,"aria-label":"for screen reader"})),Z.createElement("div",{className:"".concat(v,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Z.createElement("div",{className:"".concat(v,"-indent")},Z.createElement("div",{ref:Et,className:"".concat(v,"-indent-unit")}))),Z.createElement(B.Z,(0,E.Z)({},Fe,{data:ut,itemKey:ae,height:Re,fullHeight:!1,virtual:V,itemHeight:Te,prefixCls:"".concat(v,"-list"),ref:tt,onVisibleChange:function($e,nt){var Je=new Set($e),pt=nt.filter(function(Tt){return!Je.has(Tt)});pt.some(function(Tt){return ae(Tt)===le})&&Be()}}),function(we){var $e=we.pos,nt=(0,E.Z)({},(T(we.data),we.data)),Je=we.title,pt=we.key,Tt=we.isStart,It=we.isEnd,Ye=(0,X.km)(pt,$e);delete nt.key,delete nt.children;var St=(0,X.H8)(Ye,We);return Z.createElement(x,(0,E.Z)({},nt,St,{title:Je,active:!!Ge&&pt===Ge.key,pos:$e,data:we.data,isStart:Tt,isEnd:It,motion:W,motionNodes:pt===le?S:null,motionType:De,onMotionStart:ht,onMotionEnd:Be,treeNodeRequiredProps:We,onMouseMove:function(){st(null)}}))}))});Ne.displayName="NodeList";var ke=Ne,Oe=a(35654),et=a(90782),Ke=a(67841),je=10,Xe=function(f){(0,oe.Z)(v,f);var y=(0,be.Z)(v);function v(){var i;(0,u.Z)(this,v);for(var b=arguments.length,U=new Array(b),_=0;_<b;_++)U[_]=arguments[_];return i=y.call.apply(y,[this].concat(U)),i.destroyed=!1,i.delayedDragEnterLogic=void 0,i.loadingRetryTimes={},i.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,X.w$)()},i.dragStartMousePosition=null,i.dragNode=void 0,i.currentMouseOverDroppableNodeKey=null,i.listRef=Z.createRef(),i.onNodeDragStart=function(l,h){var o=i.state,c=o.expandedKeys,p=o.keyEntities,O=i.props.onDragStart,K=h.props.eventKey;i.dragNode=h,i.dragStartMousePosition={x:l.clientX,y:l.clientY};var ue=(0,Oe._5)(c,K);i.setState({draggingNodeKey:K,dragChildrenKeys:(0,Oe.wA)(K,p),indent:i.listRef.current.getIndentWidth()}),i.setExpandedKeys(ue),window.addEventListener("dragend",i.onWindowDragEnd),O==null||O({event:l,node:(0,X.F)(h.props)})},i.onNodeDragEnter=function(l,h){var o=i.state,c=o.expandedKeys,p=o.keyEntities,O=o.dragChildrenKeys,K=o.flattenNodes,ue=o.indent,ie=i.props,fe=ie.onDragEnter,W=ie.onExpand,Re=ie.allowDrop,Te=ie.direction,V=h.props,Pe=V.pos,Ge=V.eventKey,Ze=(0,se.Z)(i),ze=Ze.dragNode;if(i.currentMouseOverDroppableNodeKey!==Ge&&(i.currentMouseOverDroppableNodeKey=Ge),!ze){i.resetDragState();return}var rt=(0,Oe.OM)(l,ze,h,ue,i.dragStartMousePosition,Re,K,p,c,Te),_t=rt.dropPosition,ct=rt.dropLevelOffset,st=rt.dropTargetKey,ht=rt.dropContainerKey,Ue=rt.dropTargetPos,Fe=rt.dropAllowed,tt=rt.dragOverNodeKey;if(O.indexOf(st)!==-1||!Fe){i.resetDragState();return}if(i.delayedDragEnterLogic||(i.delayedDragEnterLogic={}),Object.keys(i.delayedDragEnterLogic).forEach(function(Et){clearTimeout(i.delayedDragEnterLogic[Et])}),ze.props.eventKey!==h.props.eventKey&&(l.persist(),i.delayedDragEnterLogic[Pe]=window.setTimeout(function(){if(i.state.draggingNodeKey!==null){var Et=(0,A.Z)(c),mt=(0,Ke.Z)(p,h.props.eventKey);mt&&(mt.children||[]).length&&(Et=(0,Oe.L0)(c,h.props.eventKey)),"expandedKeys"in i.props||i.setExpandedKeys(Et),W==null||W(Et,{node:(0,X.F)(h.props),expanded:!0,nativeEvent:l.nativeEvent})}},800)),ze.props.eventKey===st&&ct===0){i.resetDragState();return}i.setState({dragOverNodeKey:tt,dropPosition:_t,dropLevelOffset:ct,dropTargetKey:st,dropContainerKey:ht,dropTargetPos:Ue,dropAllowed:Fe}),fe==null||fe({event:l,node:(0,X.F)(h.props),expandedKeys:c})},i.onNodeDragOver=function(l,h){var o=i.state,c=o.dragChildrenKeys,p=o.flattenNodes,O=o.keyEntities,K=o.expandedKeys,ue=o.indent,ie=i.props,fe=ie.onDragOver,W=ie.allowDrop,Re=ie.direction,Te=(0,se.Z)(i),V=Te.dragNode;if(V){var Pe=(0,Oe.OM)(l,V,h,ue,i.dragStartMousePosition,W,p,O,K,Re),Ge=Pe.dropPosition,Ze=Pe.dropLevelOffset,ze=Pe.dropTargetKey,rt=Pe.dropContainerKey,_t=Pe.dropAllowed,ct=Pe.dropTargetPos,st=Pe.dragOverNodeKey;c.indexOf(ze)!==-1||!_t||(V.props.eventKey===ze&&Ze===0?i.state.dropPosition===null&&i.state.dropLevelOffset===null&&i.state.dropTargetKey===null&&i.state.dropContainerKey===null&&i.state.dropTargetPos===null&&i.state.dropAllowed===!1&&i.state.dragOverNodeKey===null||i.resetDragState():Ge===i.state.dropPosition&&Ze===i.state.dropLevelOffset&&ze===i.state.dropTargetKey&&rt===i.state.dropContainerKey&&ct===i.state.dropTargetPos&&_t===i.state.dropAllowed&&st===i.state.dragOverNodeKey||i.setState({dropPosition:Ge,dropLevelOffset:Ze,dropTargetKey:ze,dropContainerKey:rt,dropTargetPos:ct,dropAllowed:_t,dragOverNodeKey:st}),fe==null||fe({event:l,node:(0,X.F)(h.props)}))}},i.onNodeDragLeave=function(l,h){i.currentMouseOverDroppableNodeKey===h.props.eventKey&&!l.currentTarget.contains(l.relatedTarget)&&(i.resetDragState(),i.currentMouseOverDroppableNodeKey=null);var o=i.props.onDragLeave;o==null||o({event:l,node:(0,X.F)(h.props)})},i.onWindowDragEnd=function(l){i.onNodeDragEnd(l,null,!0),window.removeEventListener("dragend",i.onWindowDragEnd)},i.onNodeDragEnd=function(l,h){var o=i.props.onDragEnd;i.setState({dragOverNodeKey:null}),i.cleanDragState(),o==null||o({event:l,node:(0,X.F)(h.props)}),i.dragNode=null,window.removeEventListener("dragend",i.onWindowDragEnd)},i.onNodeDrop=function(l,h){var o,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=i.state,O=p.dragChildrenKeys,K=p.dropPosition,ue=p.dropTargetKey,ie=p.dropTargetPos,fe=p.dropAllowed;if(fe){var W=i.props.onDrop;if(i.setState({dragOverNodeKey:null}),i.cleanDragState(),ue!==null){var Re=(0,Y.Z)((0,Y.Z)({},(0,X.H8)(ue,i.getTreeNodeRequiredProps())),{},{active:((o=i.getActiveItem())===null||o===void 0?void 0:o.key)===ue,data:(0,Ke.Z)(i.state.keyEntities,ue).node}),Te=O.indexOf(ue)!==-1;(0,ee.ZP)(!Te,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var V=(0,Oe.yx)(ie),Pe={event:l,node:(0,X.F)(Re),dragNode:i.dragNode?(0,X.F)(i.dragNode.props):null,dragNodesKeys:[i.dragNode.props.eventKey].concat(O),dropToGap:K!==0,dropPosition:K+Number(V[V.length-1])};c||W==null||W(Pe),i.dragNode=null}}},i.cleanDragState=function(){var l=i.state.draggingNodeKey;l!==null&&i.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),i.dragStartMousePosition=null,i.currentMouseOverDroppableNodeKey=null},i.triggerExpandActionExpand=function(l,h){var o=i.state,c=o.expandedKeys,p=o.flattenNodes,O=h.expanded,K=h.key,ue=h.isLeaf;if(!(ue||l.shiftKey||l.metaKey||l.ctrlKey)){var ie=p.filter(function(W){return W.key===K})[0],fe=(0,X.F)((0,Y.Z)((0,Y.Z)({},(0,X.H8)(K,i.getTreeNodeRequiredProps())),{},{data:ie.data}));i.setExpandedKeys(O?(0,Oe._5)(c,K):(0,Oe.L0)(c,K)),i.onNodeExpand(l,fe)}},i.onNodeClick=function(l,h){var o=i.props,c=o.onClick,p=o.expandAction;p==="click"&&i.triggerExpandActionExpand(l,h),c==null||c(l,h)},i.onNodeDoubleClick=function(l,h){var o=i.props,c=o.onDoubleClick,p=o.expandAction;p==="doubleClick"&&i.triggerExpandActionExpand(l,h),c==null||c(l,h)},i.onNodeSelect=function(l,h){var o=i.state.selectedKeys,c=i.state,p=c.keyEntities,O=c.fieldNames,K=i.props,ue=K.onSelect,ie=K.multiple,fe=h.selected,W=h[O.key],Re=!fe;Re?ie?o=(0,Oe.L0)(o,W):o=[W]:o=(0,Oe._5)(o,W);var Te=o.map(function(V){var Pe=(0,Ke.Z)(p,V);return Pe?Pe.node:null}).filter(function(V){return V});i.setUncontrolledState({selectedKeys:o}),ue==null||ue(o,{event:"select",selected:Re,node:h,selectedNodes:Te,nativeEvent:l.nativeEvent})},i.onNodeCheck=function(l,h,o){var c=i.state,p=c.keyEntities,O=c.checkedKeys,K=c.halfCheckedKeys,ue=i.props,ie=ue.checkStrictly,fe=ue.onCheck,W=h.key,Re,Te={event:"check",node:h,checked:o,nativeEvent:l.nativeEvent};if(ie){var V=o?(0,Oe.L0)(O,W):(0,Oe._5)(O,W),Pe=(0,Oe._5)(K,W);Re={checked:V,halfChecked:Pe},Te.checkedNodes=V.map(function(ct){return(0,Ke.Z)(p,ct)}).filter(function(ct){return ct}).map(function(ct){return ct.node}),i.setUncontrolledState({checkedKeys:V})}else{var Ge=(0,et.S)([].concat((0,A.Z)(O),[W]),!0,p),Ze=Ge.checkedKeys,ze=Ge.halfCheckedKeys;if(!o){var rt=new Set(Ze);rt.delete(W);var _t=(0,et.S)(Array.from(rt),{checked:!1,halfCheckedKeys:ze},p);Ze=_t.checkedKeys,ze=_t.halfCheckedKeys}Re=Ze,Te.checkedNodes=[],Te.checkedNodesPositions=[],Te.halfCheckedKeys=ze,Ze.forEach(function(ct){var st=(0,Ke.Z)(p,ct);if(st){var ht=st.node,Ue=st.pos;Te.checkedNodes.push(ht),Te.checkedNodesPositions.push({node:ht,pos:Ue})}}),i.setUncontrolledState({checkedKeys:Ze},!1,{halfCheckedKeys:ze})}fe==null||fe(Re,Te)},i.onNodeLoad=function(l){var h=l.key,o=new Promise(function(c,p){i.setState(function(O){var K=O.loadedKeys,ue=K===void 0?[]:K,ie=O.loadingKeys,fe=ie===void 0?[]:ie,W=i.props,Re=W.loadData,Te=W.onLoad;if(!Re||ue.indexOf(h)!==-1||fe.indexOf(h)!==-1)return null;var V=Re(l);return V.then(function(){var Pe=i.state.loadedKeys,Ge=(0,Oe.L0)(Pe,h);Te==null||Te(Ge,{event:"load",node:l}),i.setUncontrolledState({loadedKeys:Ge}),i.setState(function(Ze){return{loadingKeys:(0,Oe._5)(Ze.loadingKeys,h)}}),c()}).catch(function(Pe){if(i.setState(function(Ze){return{loadingKeys:(0,Oe._5)(Ze.loadingKeys,h)}}),i.loadingRetryTimes[h]=(i.loadingRetryTimes[h]||0)+1,i.loadingRetryTimes[h]>=je){var Ge=i.state.loadedKeys;(0,ee.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),i.setUncontrolledState({loadedKeys:(0,Oe.L0)(Ge,h)}),c()}p(Pe)}),{loadingKeys:(0,Oe.L0)(fe,h)}})});return o.catch(function(){}),o},i.onNodeMouseEnter=function(l,h){var o=i.props.onMouseEnter;o==null||o({event:l,node:h})},i.onNodeMouseLeave=function(l,h){var o=i.props.onMouseLeave;o==null||o({event:l,node:h})},i.onNodeContextMenu=function(l,h){var o=i.props.onRightClick;o&&(l.preventDefault(),o({event:l,node:h}))},i.onFocus=function(){var l=i.props.onFocus;i.setState({focused:!0});for(var h=arguments.length,o=new Array(h),c=0;c<h;c++)o[c]=arguments[c];l==null||l.apply(void 0,o)},i.onBlur=function(){var l=i.props.onBlur;i.setState({focused:!1}),i.onActiveChange(null);for(var h=arguments.length,o=new Array(h),c=0;c<h;c++)o[c]=arguments[c];l==null||l.apply(void 0,o)},i.getTreeNodeRequiredProps=function(){var l=i.state,h=l.expandedKeys,o=l.selectedKeys,c=l.loadedKeys,p=l.loadingKeys,O=l.checkedKeys,K=l.halfCheckedKeys,ue=l.dragOverNodeKey,ie=l.dropPosition,fe=l.keyEntities;return{expandedKeys:h||[],selectedKeys:o||[],loadedKeys:c||[],loadingKeys:p||[],checkedKeys:O||[],halfCheckedKeys:K||[],dragOverNodeKey:ue,dropPosition:ie,keyEntities:fe}},i.setExpandedKeys=function(l){var h=i.state,o=h.treeData,c=h.fieldNames,p=(0,X.oH)(o,l,c);i.setUncontrolledState({expandedKeys:l,flattenNodes:p},!0)},i.onNodeExpand=function(l,h){var o=i.state.expandedKeys,c=i.state,p=c.listChanging,O=c.fieldNames,K=i.props,ue=K.onExpand,ie=K.loadData,fe=h.expanded,W=h[O.key];if(!p){var Re=o.indexOf(W),Te=!fe;if((0,ee.ZP)(fe&&Re!==-1||!fe&&Re===-1,"Expand state not sync with index check"),Te?o=(0,Oe.L0)(o,W):o=(0,Oe._5)(o,W),i.setExpandedKeys(o),ue==null||ue(o,{node:h,expanded:Te,nativeEvent:l.nativeEvent}),Te&&ie){var V=i.onNodeLoad(h);V&&V.then(function(){var Pe=(0,X.oH)(i.state.treeData,o,O);i.setUncontrolledState({flattenNodes:Pe})}).catch(function(){var Pe=i.state.expandedKeys,Ge=(0,Oe._5)(Pe,W);i.setExpandedKeys(Ge)})}}},i.onListChangeStart=function(){i.setUncontrolledState({listChanging:!0})},i.onListChangeEnd=function(){setTimeout(function(){i.setUncontrolledState({listChanging:!1})})},i.onActiveChange=function(l){var h=i.state.activeKey,o=i.props.onActiveChange;h!==l&&(i.setState({activeKey:l}),l!==null&&i.scrollTo({key:l}),o==null||o(l))},i.getActiveItem=function(){var l=i.state,h=l.activeKey,o=l.flattenNodes;return h===null?null:o.find(function(c){var p=c.key;return p===h})||null},i.offsetActiveKey=function(l){var h=i.state,o=h.flattenNodes,c=h.activeKey,p=o.findIndex(function(ue){var ie=ue.key;return ie===c});p===-1&&l<0&&(p=o.length),p=(p+l+o.length)%o.length;var O=o[p];if(O){var K=O.key;i.onActiveChange(K)}else i.onActiveChange(null)},i.onKeyDown=function(l){var h=i.state,o=h.activeKey,c=h.expandedKeys,p=h.checkedKeys,O=h.fieldNames,K=i.props,ue=K.onKeyDown,ie=K.checkable,fe=K.selectable;switch(l.which){case d.Z.UP:{i.offsetActiveKey(-1),l.preventDefault();break}case d.Z.DOWN:{i.offsetActiveKey(1),l.preventDefault();break}}var W=i.getActiveItem();if(W&&W.data){var Re=i.getTreeNodeRequiredProps(),Te=W.data.isLeaf===!1||!!(W.data[O.children]||[]).length,V=(0,X.F)((0,Y.Z)((0,Y.Z)({},(0,X.H8)(o,Re)),{},{data:W.data,active:!0}));switch(l.which){case d.Z.LEFT:{Te&&c.includes(o)?i.onNodeExpand({},V):W.parent&&i.onActiveChange(W.parent.key),l.preventDefault();break}case d.Z.RIGHT:{Te&&!c.includes(o)?i.onNodeExpand({},V):W.children&&W.children.length&&i.onActiveChange(W.children[0].key),l.preventDefault();break}case d.Z.ENTER:case d.Z.SPACE:{ie&&!V.disabled&&V.checkable!==!1&&!V.disableCheckbox?i.onNodeCheck({},V,!p.includes(o)):!ie&&fe&&!V.disabled&&V.selectable!==!1&&i.onNodeSelect({},V);break}}}ue==null||ue(l)},i.setUncontrolledState=function(l){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!i.destroyed){var c=!1,p=!0,O={};Object.keys(l).forEach(function(K){if(K in i.props){p=!1;return}c=!0,O[K]=l[K]}),c&&(!h||p)&&i.setState((0,Y.Z)((0,Y.Z)({},O),o))}},i.scrollTo=function(l){i.listRef.current.scrollTo(l)},i}return(0,ce.Z)(v,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var b=this.props.activeKey;b!==void 0&&b!==this.state.activeKey&&(this.setState({activeKey:b}),b!==null&&this.scrollTo({key:b}))}},{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 b,U=this.state,_=U.focused,l=U.flattenNodes,h=U.keyEntities,o=U.draggingNodeKey,c=U.activeKey,p=U.dropLevelOffset,O=U.dropContainerKey,K=U.dropTargetKey,ue=U.dropPosition,ie=U.dragOverNodeKey,fe=U.indent,W=this.props,Re=W.prefixCls,Te=W.className,V=W.style,Pe=W.showLine,Ge=W.focusable,Ze=W.tabIndex,ze=Ze===void 0?0:Ze,rt=W.selectable,_t=W.showIcon,ct=W.icon,st=W.switcherIcon,ht=W.draggable,Ue=W.checkable,Fe=W.checkStrictly,tt=W.disabled,Et=W.motion,mt=W.loadData,xt=W.filterTreeNode,Ot=W.height,gt=W.itemHeight,Rt=W.virtual,it=W.titleRender,at=W.dropIndicatorRender,Ve=W.onContextMenu,me=W.onScroll,e=W.direction,t=W.rootClassName,n=W.rootStyle,r=(0,ne.Z)(this.props,{aria:!0,data:!0}),s;return ht&&((0,F.Z)(ht)==="object"?s=ht:typeof ht=="function"?s={nodeDraggable:ht}:s={}),Z.createElement(Ce.k.Provider,{value:{prefixCls:Re,selectable:rt,showIcon:_t,icon:ct,switcherIcon:st,draggable:s,draggingNodeKey:o,checkable:Ue,checkStrictly:Fe,disabled:tt,keyEntities:h,dropLevelOffset:p,dropContainerKey:O,dropTargetKey:K,dropPosition:ue,dragOverNodeKey:ie,indent:fe,direction:e,dropIndicatorRender:at,loadData:mt,filterTreeNode:xt,titleRender:it,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}},Z.createElement("div",{role:"tree",className:N()(Re,Te,t,(b={},(0,C.Z)(b,"".concat(Re,"-show-line"),Pe),(0,C.Z)(b,"".concat(Re,"-focused"),_),(0,C.Z)(b,"".concat(Re,"-active-focused"),c!==null),b)),style:n},Z.createElement(ke,(0,E.Z)({ref:this.listRef,prefixCls:Re,style:V,data:l,disabled:tt,selectable:rt,checkable:!!Ue,motion:Et,dragging:o!==null,height:Ot,itemHeight:gt,virtual:Rt,focusable:Ge,focused:_,tabIndex:ze,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ve,onScroll:me},this.getTreeNodeRequiredProps(),r))))}}],[{key:"getDerivedStateFromProps",value:function(b,U){var _=U.prevProps,l={prevProps:b};function h(Ge){return!_&&Ge in b||_&&_[Ge]!==b[Ge]}var o,c=U.fieldNames;if(h("fieldNames")&&(c=(0,X.w$)(b.fieldNames),l.fieldNames=c),h("treeData")?o=b.treeData:h("children")&&((0,ee.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),o=(0,X.zn)(b.children)),o){l.treeData=o;var p=(0,X.I8)(o,{fieldNames:c});l.keyEntities=(0,Y.Z)((0,C.Z)({},le,L),p.keyEntities)}var O=l.keyEntities||U.keyEntities;if(h("expandedKeys")||_&&h("autoExpandParent"))l.expandedKeys=b.autoExpandParent||!_&&b.defaultExpandParent?(0,Oe.r7)(b.expandedKeys,O):b.expandedKeys;else if(!_&&b.defaultExpandAll){var K=(0,Y.Z)({},O);delete K[le],l.expandedKeys=Object.keys(K).map(function(Ge){return K[Ge].key})}else!_&&b.defaultExpandedKeys&&(l.expandedKeys=b.autoExpandParent||b.defaultExpandParent?(0,Oe.r7)(b.defaultExpandedKeys,O):b.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,o||l.expandedKeys){var ue=(0,X.oH)(o||U.treeData,l.expandedKeys||U.expandedKeys,c);l.flattenNodes=ue}if(b.selectable&&(h("selectedKeys")?l.selectedKeys=(0,Oe.BT)(b.selectedKeys,b):!_&&b.defaultSelectedKeys&&(l.selectedKeys=(0,Oe.BT)(b.defaultSelectedKeys,b))),b.checkable){var ie;if(h("checkedKeys")?ie=(0,Oe.E6)(b.checkedKeys)||{}:!_&&b.defaultCheckedKeys?ie=(0,Oe.E6)(b.defaultCheckedKeys)||{}:o&&(ie=(0,Oe.E6)(b.checkedKeys)||{checkedKeys:U.checkedKeys,halfCheckedKeys:U.halfCheckedKeys}),ie){var fe=ie,W=fe.checkedKeys,Re=W===void 0?[]:W,Te=fe.halfCheckedKeys,V=Te===void 0?[]:Te;if(!b.checkStrictly){var Pe=(0,et.S)(Re,!0,O);Re=Pe.checkedKeys,V=Pe.halfCheckedKeys}l.checkedKeys=Re,l.halfCheckedKeys=V}}return h("loadedKeys")&&(l.loadedKeys=b.loadedKeys),l}}]),v}(Z.Component);Xe.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:j,allowDrop:function(){return!0},expandAction:!1},Xe.TreeNode=w.Z;var G=Xe,Le=G},35654:function(vt,Me,a){"use strict";a.d(Me,{BT:function(){return Z},E6:function(){return T},L0:function(){return be},OM:function(){return ee},_5:function(){return oe},r7:function(){return P},wA:function(){return N},yx:function(){return de}});var E=a(77654),C=a(43749),F=a(48736),Y=a(59301),A=a(39417),u=a(67841),ce=a(71430),se=null;function oe(g,R){if(!g)return[];var B=g.slice(),$=B.indexOf(R);return $>=0&&B.splice($,1),B}function be(g,R){var B=(g||[]).slice();return B.indexOf(R)===-1&&B.push(R),B}function de(g){return g.split("-")}function N(g,R){var B=[],$=(0,u.Z)(R,g);function w(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];re.forEach(function(X){var he=X.key,D=X.children;B.push(he),w(D)})}return w($.children),B}function d(g){if(g.parent){var R=de(g.pos);return Number(R[R.length-1])===g.parent.children.length-1}return!1}function ne(g){var R=de(g.pos);return Number(R[R.length-1])===0}function ee(g,R,B,$,w,re,X,he,D,xe){var x,M=g.clientX,m=g.clientY,k=g.target.getBoundingClientRect(),pe=k.top,z=k.height,le=(xe==="rtl"?-1:1)*(((w==null?void 0:w.x)||0)-M),Q=(le-12)/$,L=(0,u.Z)(he,B.props.eventKey);if(m<pe+z/2){var H=X.findIndex(function(Le){return Le.key===L.key}),J=H<=0?0:H-1,ae=X[J].key;L=(0,u.Z)(he,ae)}var ye=L.key,Ne=L,ke=L.key,Oe=0,et=0;if(!D.includes(ye))for(var Ke=0;Ke<Q&&d(L);Ke+=1)L=L.parent,et+=1;var je=R.props.data,Xe=L.node,G=!0;return ne(L)&&L.level===0&&m<pe+z/2&&re({dragNode:je,dropNode:Xe,dropPosition:-1})&&L.key===B.props.eventKey?Oe=-1:(Ne.children||[]).length&&D.includes(ke)?re({dragNode:je,dropNode:Xe,dropPosition:0})?Oe=0:G=!1:et===0?Q>-1.5?re({dragNode:je,dropNode:Xe,dropPosition:1})?Oe=1:G=!1:re({dragNode:je,dropNode:Xe,dropPosition:0})?Oe=0:re({dragNode:je,dropNode:Xe,dropPosition:1})?Oe=1:G=!1:re({dragNode:je,dropNode:Xe,dropPosition:1})?Oe=1:G=!1,{dropPosition:Oe,dropLevelOffset:et,dropTargetKey:L.key,dropTargetPos:L.pos,dragOverNodeKey:ke,dropContainerKey:Oe===0?null:((x=L.parent)===null||x===void 0?void 0:x.key)||null,dropAllowed:G}}function Z(g,R){if(g){var B=R.multiple;return B?g.slice():g.length?[g[0]]:g}}var Ce=function(R){return R};function j(g,R){if(!g)return[];var B=R||{},$=B.processProps,w=$===void 0?Ce:$,re=Array.isArray(g)?g:[g];return re.map(function(X){var he=X.children,D=_objectWithoutProperties(X,se),xe=j(he,R);return React.createElement(TreeNode,_extends({key:D.key},w(D)),xe)})}function T(g){if(!g)return null;var R;if(Array.isArray(g))R={checkedKeys:g,halfCheckedKeys:void 0};else if((0,C.Z)(g)==="object")R={checkedKeys:g.checked||void 0,halfCheckedKeys:g.halfChecked||void 0};else return(0,F.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return R}function P(g,R){var B=new Set;function $(w){if(!B.has(w)){var re=(0,u.Z)(R,w);if(re){B.add(w);var X=re.parent,he=re.node;he.disabled||X&&$(X.key)}}}return(g||[]).forEach(function(w){$(w)}),(0,E.Z)(B)}},90782:function(vt,Me,a){"use strict";a.d(Me,{S:function(){return ce}});var E=a(48736),C=a(67841);function F(se,oe){var be=new Set;return se.forEach(function(de){oe.has(de)||be.add(de)}),be}function Y(se){var oe=se||{},be=oe.disabled,de=oe.disableCheckbox,N=oe.checkable;return!!(be||de)||N===!1}function A(se,oe,be,de){for(var N=new Set(se),d=new Set,ne=0;ne<=be;ne+=1){var ee=oe.get(ne)||new Set;ee.forEach(function(T){var P=T.key,g=T.node,R=T.children,B=R===void 0?[]:R;N.has(P)&&!de(g)&&B.filter(function($){return!de($.node)}).forEach(function($){N.add($.key)})})}for(var Z=new Set,Ce=be;Ce>=0;Ce-=1){var j=oe.get(Ce)||new Set;j.forEach(function(T){var P=T.parent,g=T.node;if(!(de(g)||!T.parent||Z.has(T.parent.key))){if(de(T.parent.node)){Z.add(P.key);return}var R=!0,B=!1;(P.children||[]).filter(function($){return!de($.node)}).forEach(function($){var w=$.key,re=N.has(w);R&&!re&&(R=!1),!B&&(re||d.has(w))&&(B=!0)}),R&&N.add(P.key),B&&d.add(P.key),Z.add(P.key)}})}return{checkedKeys:Array.from(N),halfCheckedKeys:Array.from(F(d,N))}}function u(se,oe,be,de,N){for(var d=new Set(se),ne=new Set(oe),ee=0;ee<=de;ee+=1){var Z=be.get(ee)||new Set;Z.forEach(function(P){var g=P.key,R=P.node,B=P.children,$=B===void 0?[]:B;!d.has(g)&&!ne.has(g)&&!N(R)&&$.filter(function(w){return!N(w.node)}).forEach(function(w){d.delete(w.key)})})}ne=new Set;for(var Ce=new Set,j=de;j>=0;j-=1){var T=be.get(j)||new Set;T.forEach(function(P){var g=P.parent,R=P.node;if(!(N(R)||!P.parent||Ce.has(P.parent.key))){if(N(P.parent.node)){Ce.add(g.key);return}var B=!0,$=!1;(g.children||[]).filter(function(w){return!N(w.node)}).forEach(function(w){var re=w.key,X=d.has(re);B&&!X&&(B=!1),!$&&(X||ne.has(re))&&($=!0)}),B||d.delete(g.key),$&&ne.add(g.key),Ce.add(g.key)}})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(F(ne,d))}}function ce(se,oe,be,de){var N=[],d;de?d=de:d=Y;var ne=new Set(se.filter(function(j){var T=!!(0,C.Z)(be,j);return T||N.push(j),T})),ee=new Map,Z=0;Object.keys(be).forEach(function(j){var T=be[j],P=T.level,g=ee.get(P);g||(g=new Set,ee.set(P,g)),g.add(T),Z=Math.max(Z,P)}),(0,E.ZP)(!N.length,"Tree missing follow keys: ".concat(N.slice(0,100).map(function(j){return"'".concat(j,"'")}).join(", ")));var Ce;return oe===!0?Ce=A(ne,ee,Z,d):Ce=u(ne,oe.halfCheckedKeys,ee,Z,d),Ce}},67841:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return E}});function E(C,F){return C[F]}},71430:function(vt,Me,a){"use strict";a.d(Me,{F:function(){return P},H8:function(){return T},I8:function(){return j},km:function(){return N},oH:function(){return Z},w$:function(){return d},zn:function(){return ee}});var E=a(43749),C=a(77654),F=a(85899),Y=a(42244),A=a(11592),u=a(2738),ce=a(48736),se=a(67841),oe=["children"];function be(g,R){return"".concat(g,"-").concat(R)}function de(g){return g&&g.type&&g.type.isTreeNode}function N(g,R){return g!=null?g:R}function d(g){var R=g||{},B=R.title,$=R._title,w=R.key,re=R.children,X=B||"title";return{title:X,_title:$||[X],key:w||"key",children:re||"children"}}function ne(g,R){var B=new Map;function $(w){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(w||[]).forEach(function(X){var he=X[R.key],D=X[R.children];warning(he!=null,"Tree node must have a certain key: [".concat(re).concat(he,"]"));var xe=String(he);warning(!B.has(xe)||he===null||he===void 0,"Same 'key' exist in the Tree: ".concat(xe)),B.set(xe,!0),$(D,"".concat(re).concat(xe," > "))})}$(g)}function ee(g){function R(B){var $=(0,A.Z)(B);return $.map(function(w){if(!de(w))return(0,ce.ZP)(!w,"Tree/TreeNode can only accept TreeNode as children."),null;var re=w.key,X=w.props,he=X.children,D=(0,Y.Z)(X,oe),xe=(0,F.Z)({key:re},D),x=R(he);return x.length&&(xe.children=x),xe}).filter(function(w){return w})}return R(g)}function Z(g,R,B){var $=d(B),w=$._title,re=$.key,X=$.children,he=new Set(R===!0?[]:R),D=[];function xe(x){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return x.map(function(m,k){for(var pe=be(M?M.pos:"0",k),z=N(m[re],pe),le,Q=0;Q<w.length;Q+=1){var L=w[Q];if(m[L]!==void 0){le=m[L];break}}var H=(0,F.Z)((0,F.Z)({},(0,u.Z)(m,[].concat((0,C.Z)(w),[re,X]))),{},{title:le,key:z,parent:M,pos:pe,children:null,data:m,isStart:[].concat((0,C.Z)(M?M.isStart:[]),[k===0]),isEnd:[].concat((0,C.Z)(M?M.isEnd:[]),[k===x.length-1])});return D.push(H),R===!0||he.has(z)?H.children=xe(m[X]||[],H):H.children=[],H})}return xe(g),D}function Ce(g,R,B){var $={};(0,E.Z)(B)==="object"?$=B:$={externalGetKey:B},$=$||{};var w=$,re=w.childrenPropName,X=w.externalGetKey,he=w.fieldNames,D=d(he),xe=D.key,x=D.children,M=re||x,m;X?typeof X=="string"?m=function(z){return z[X]}:typeof X=="function"&&(m=function(z){return X(z)}):m=function(z,le){return N(z[xe],le)};function k(pe,z,le,Q){var L=pe?pe[M]:g,H=pe?be(le.pos,z):"0",J=pe?[].concat((0,C.Z)(Q),[pe]):[];if(pe){var ae=m(pe,H),ye={node:pe,index:z,pos:H,key:ae,parentPos:le.node?le.pos:null,level:le.level+1,nodes:J};R(ye)}L&&L.forEach(function(Ne,ke){k(Ne,ke,{node:pe,pos:H,level:le?le.level+1:-1},J)})}k(null)}function j(g){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=R.initWrapper,$=R.processEntity,w=R.onProcessFinished,re=R.externalGetKey,X=R.childrenPropName,he=R.fieldNames,D=arguments.length>2?arguments[2]:void 0,xe=re||D,x={},M={},m={posEntities:x,keyEntities:M};return B&&(m=B(m)||m),Ce(g,function(k){var pe=k.node,z=k.index,le=k.pos,Q=k.key,L=k.parentPos,H=k.level,J=k.nodes,ae={node:pe,nodes:J,index:z,key:Q,pos:le,level:H},ye=N(Q,le);x[le]=ae,M[ye]=ae,ae.parent=x[L],ae.parent&&(ae.parent.children=ae.parent.children||[],ae.parent.children.push(ae)),$&&$(ae,m)},{externalGetKey:xe,childrenPropName:X,fieldNames:he}),w&&w(m),m}function T(g,R){var B=R.expandedKeys,$=R.selectedKeys,w=R.loadedKeys,re=R.loadingKeys,X=R.checkedKeys,he=R.halfCheckedKeys,D=R.dragOverNodeKey,xe=R.dropPosition,x=R.keyEntities,M=(0,se.Z)(x,g),m={eventKey:g,expanded:B.indexOf(g)!==-1,selected:$.indexOf(g)!==-1,loaded:w.indexOf(g)!==-1,loading:re.indexOf(g)!==-1,checked:X.indexOf(g)!==-1,halfChecked:he.indexOf(g)!==-1,pos:String(M?M.pos:""),dragOver:D===g&&xe===0,dragOverGapTop:D===g&&xe===-1,dragOverGapBottom:D===g&&xe===1};return m}function P(g){var R=g.data,B=g.expanded,$=g.selected,w=g.checked,re=g.loaded,X=g.loading,he=g.halfChecked,D=g.dragOver,xe=g.dragOverGapTop,x=g.dragOverGapBottom,M=g.pos,m=g.active,k=g.eventKey,pe=(0,F.Z)((0,F.Z)({},R),{},{expanded:B,selected:$,checked:w,loaded:re,loading:X,halfChecked:he,dragOver:D,dragOverGapTop:xe,dragOverGapBottom:x,pos:M,active:m,key:k});return"props"in pe||Object.defineProperty(pe,"props",{get:function(){return(0,ce.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),g}}),pe}},48911:function(vt,Me,a){"use strict";a.d(Me,{Z:function(){return Xe}});var E=a(60499),C=a(43749),F=a(85899),Y=a(18642),A=a(72190),u=a(42244),ce=a(92310),se=a.n(ce),oe=a(29301),be=a(70425),de=a(34280),N=a(59301),d=a(4676),ne=N.forwardRef(function(G,Le){var f=G.height,y=G.offsetY,v=G.offsetX,i=G.children,b=G.prefixCls,U=G.onInnerResize,_=G.innerProps,l=G.rtl,h=G.extra,o={},c={display:"flex",flexDirection:"column"};return y!==void 0&&(o={height:f,position:"relative",overflow:"hidden"},c=(0,F.Z)((0,F.Z)({},c),{},(0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)((0,Y.Z)({transform:"translateY(".concat(y,"px)")},l?"marginRight":"marginLeft",-v),"position","absolute"),"left",0),"right",0),"top",0))),N.createElement("div",{style:o},N.createElement(oe.Z,{onResize:function(O){var K=O.offsetHeight;K&&U&&U()}},N.createElement("div",(0,E.Z)({style:c,className:se()((0,Y.Z)({},"".concat(b,"-holder-inner"),b)),ref:Le},_),i,h)))});ne.displayName="Filler";var ee=ne;function Z(G){var Le=G.children,f=G.setRef,y=N.useCallback(function(v){f(v)},[]);return N.cloneElement(Le,{ref:y})}function Ce(G,Le,f,y,v,i,b,U){var _=U.getKey;return G.slice(Le,f+1).map(function(l,h){var o=Le+h,c=b(l,o,{style:{width:y},offsetX:v}),p=_(l);return N.createElement(Z,{key:p,setRef:function(K){return i(l,K)}},c)})}function j(G,Le,f,y){var v=f-G,i=Le-f,b=Math.min(v,i)*2;if(y<=b){var U=Math.floor(y/2);return y%2?f+U+1:f-U}return v>i?f-(y-i):f+(y-v)}function T(G,Le,f){var y=G.length,v=Le.length,i,b;if(y===0&&v===0)return null;y<v?(i=G,b=Le):(i=Le,b=G);var U={__EMPTY_ITEM__:!0};function _(O){return O!==void 0?f(O):U}for(var l=null,h=Math.abs(y-v)!==1,o=0;o<b.length;o+=1){var c=_(i[o]),p=_(b[o]);if(c!==p){l=o,h=h||c!==_(b[o+1]);break}}return l===null?null:{index:l,multiple:h}}function P(G,Le,f){var y=N.useState(G),v=(0,A.Z)(y,2),i=v[0],b=v[1],U=N.useState(null),_=(0,A.Z)(U,2),l=_[0],h=_[1];return N.useEffect(function(){var o=T(i||[],G||[],Le);(o==null?void 0:o.index)!==void 0&&(f==null||f(o.index),h(G[o.index])),b(G)},[G]),[l]}var g=a(16089),R=(typeof navigator=="undefined"?"undefined":(0,C.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),B=R,$=function(G,Le,f,y){var v=(0,N.useRef)(!1),i=(0,N.useRef)(null);function b(){clearTimeout(i.current),v.current=!0,i.current=setTimeout(function(){v.current=!1},50)}var U=(0,N.useRef)({top:G,bottom:Le,left:f,right:y});return U.current.top=G,U.current.bottom=Le,U.current.left=f,U.current.right=y,function(_,l){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=_?l<0&&U.current.left||l>0&&U.current.right:l<0&&U.current.top||l>0&&U.current.bottom;return h&&o?(clearTimeout(i.current),v.current=!1):(!o||v.current)&&b(),!v.current&&o}};function w(G,Le,f,y,v,i,b){var U=(0,N.useRef)(0),_=(0,N.useRef)(null),l=(0,N.useRef)(null),h=(0,N.useRef)(!1),o=$(Le,f,y,v);function c(fe,W){if(g.Z.cancel(_.current),!o(!1,W)){var Re=fe;if(!Re._virtualHandled)Re._virtualHandled=!0;else return;U.current+=W,l.current=W,B||Re.preventDefault(),_.current=(0,g.Z)(function(){var Te=h.current?10:1;b(U.current*Te,!1),U.current=0})}}function p(fe,W){b(W,!0),B||fe.preventDefault()}var O=(0,N.useRef)(null),K=(0,N.useRef)(null);function ue(fe){if(G){g.Z.cancel(K.current),K.current=(0,g.Z)(function(){O.current=null},2);var W=fe.deltaX,Re=fe.deltaY,Te=fe.shiftKey,V=W,Pe=Re;(O.current==="sx"||!O.current&&Te&&Re&&!W)&&(V=Re,Pe=0,O.current="sx");var Ge=Math.abs(V),Ze=Math.abs(Pe);O.current===null&&(O.current=i&&Ge>Ze?"x":"y"),O.current==="y"?c(fe,Pe):p(fe,V)}}function ie(fe){G&&(h.current=fe.detail===l.current)}return[ue,ie]}function re(G,Le,f,y){var v=N.useMemo(function(){return[new Map,[]]},[G,f.id,y]),i=(0,A.Z)(v,2),b=i[0],U=i[1],_=function(h){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h,c=b.get(h),p=b.get(o);if(c===void 0||p===void 0)for(var O=G.length,K=U.length;K<O;K+=1){var ue,ie=G[K],fe=Le(ie);b.set(fe,K);var W=(ue=f.get(fe))!==null&&ue!==void 0?ue:y;if(U[K]=(U[K-1]||0)+W,fe===h&&(c=K),fe===o&&(p=K),c!==void 0&&p!==void 0)break}return{top:U[c-1]||0,bottom:U[p]}};return _}var X=a(38705),he=a(17212),D=function(){function G(){(0,X.Z)(this,G),(0,Y.Z)(this,"maps",void 0),(0,Y.Z)(this,"id",0),(0,Y.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,he.Z)(G,[{key:"set",value:function(f,y){this.diffRecords.set(f,this.maps[f]),this.maps[f]=y,this.id+=1}},{key:"get",value:function(f){return this.maps[f]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),G}(),xe=D;function x(G){var Le=parseFloat(G);return isNaN(Le)?0:Le}function M(G,Le,f){var y=N.useState(0),v=(0,A.Z)(y,2),i=v[0],b=v[1],U=(0,N.useRef)(new Map),_=(0,N.useRef)(new xe),l=(0,N.useRef)(0);function h(){l.current+=1}function o(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;h();var O=function(){var ie=!1;U.current.forEach(function(fe,W){if(fe&&fe.offsetParent){var Re=fe.offsetHeight,Te=getComputedStyle(fe),V=Te.marginTop,Pe=Te.marginBottom,Ge=x(V),Ze=x(Pe),ze=Re+Ge+Ze;_.current.get(W)!==ze&&(_.current.set(W,ze),ie=!0)}}),ie&&b(function(fe){return fe+1})};if(p)O();else{l.current+=1;var K=l.current;Promise.resolve().then(function(){K===l.current&&O()})}}function c(p,O){var K=G(p),ue=U.current.get(K);O?(U.current.set(K,O),o()):U.current.delete(K),!ue!=!O&&(O?Le==null||Le(p):f==null||f(p))}return(0,N.useEffect)(function(){return h},[]),[c,o,_.current,i]}var m=14/15;function k(G,Le,f){var y=(0,N.useRef)(!1),v=(0,N.useRef)(0),i=(0,N.useRef)(0),b=(0,N.useRef)(null),U=(0,N.useRef)(null),_,l=function(p){if(y.current){var O=Math.ceil(p.touches[0].pageX),K=Math.ceil(p.touches[0].pageY),ue=v.current-O,ie=i.current-K,fe=Math.abs(ue)>Math.abs(ie);fe?v.current=O:i.current=K;var W=f(fe,fe?ue:ie,!1,p);W&&p.preventDefault(),clearInterval(U.current),W&&(U.current=setInterval(function(){fe?ue*=m:ie*=m;var Re=Math.floor(fe?ue:ie);(!f(fe,Re,!0)||Math.abs(Re)<=.1)&&clearInterval(U.current)},16))}},h=function(){y.current=!1,_()},o=function(p){_(),p.touches.length===1&&!y.current&&(y.current=!0,v.current=Math.ceil(p.touches[0].pageX),i.current=Math.ceil(p.touches[0].pageY),b.current=p.target,b.current.addEventListener("touchmove",l,{passive:!1}),b.current.addEventListener("touchend",h,{passive:!0}))};_=function(){b.current&&(b.current.removeEventListener("touchmove",l),b.current.removeEventListener("touchend",h))},(0,de.Z)(function(){return G&&Le.current.addEventListener("touchstart",o,{passive:!0}),function(){var c;(c=Le.current)===null||c===void 0||c.removeEventListener("touchstart",o),_(),clearInterval(U.current)}},[G])}function pe(G){return Math.floor(Math.pow(G,.5))}function z(G,Le){var f="touches"in G?G.touches[0]:G;return f[Le?"pageX":"pageY"]-window[Le?"scrollX":"scrollY"]}function le(G,Le,f){N.useEffect(function(){var y=Le.current;if(G&&y){var v=!1,i,b,U=function(){g.Z.cancel(i)},_=function c(){U(),i=(0,g.Z)(function(){f(b),c()})},l=function(){v=!1,U()},h=function(p){if(!(p.target.draggable||p.button!==0)){var O=p;O._virtualHandled||(O._virtualHandled=!0,v=!0)}},o=function(p){if(v){var O=z(p,!1),K=y.getBoundingClientRect(),ue=K.top,ie=K.bottom;if(O<=ue){var fe=ue-O;b=-pe(fe),_()}else if(O>=ie){var W=O-ie;b=pe(W),_()}else U()}};return y.addEventListener("mousedown",h),y.ownerDocument.addEventListener("mouseup",l),y.ownerDocument.addEventListener("mousemove",o),y.ownerDocument.addEventListener("dragend",l),function(){y.removeEventListener("mousedown",h),y.ownerDocument.removeEventListener("mouseup",l),y.ownerDocument.removeEventListener("mousemove",o),y.ownerDocument.removeEventListener("dragend",l),U()}}},[G])}var Q=10;function L(G,Le,f,y,v,i,b,U){var _=N.useRef(),l=N.useState(null),h=(0,A.Z)(l,2),o=h[0],c=h[1];return(0,de.Z)(function(){if(o&&o.times<Q){if(!G.current){c(function(Et){return(0,F.Z)({},Et)});return}i();var p=o.targetAlign,O=o.originAlign,K=o.index,ue=o.offset,ie=G.current.clientHeight,fe=!1,W=p,Re=null;if(ie){for(var Te=p||O,V=0,Pe=0,Ge=0,Ze=Math.min(Le.length-1,K),ze=0;ze<=Ze;ze+=1){var rt=v(Le[ze]);Pe=V;var _t=f.get(rt);Ge=Pe+(_t===void 0?y:_t),V=Ge}for(var ct=Te==="top"?ue:ie-ue,st=Ze;st>=0;st-=1){var ht=v(Le[st]),Ue=f.get(ht);if(Ue===void 0){fe=!0;break}if(ct-=Ue,ct<=0)break}switch(Te){case"top":Re=Pe-ue;break;case"bottom":Re=Ge-ie+ue;break;default:{var Fe=G.current.scrollTop,tt=Fe+ie;Pe<Fe?W="top":Ge>tt&&(W="bottom")}}Re!==null&&b(Re),Re!==o.lastTop&&(fe=!0)}fe&&c((0,F.Z)((0,F.Z)({},o),{},{times:o.times+1,targetAlign:W,lastTop:Re}))}},[o,G.current]),function(p){if(p==null){U();return}if(g.Z.cancel(_.current),typeof p=="number")b(p);else if(p&&(0,C.Z)(p)==="object"){var O,K=p.align;"index"in p?O=p.index:O=Le.findIndex(function(fe){return v(fe)===p.key});var ue=p.offset,ie=ue===void 0?0:ue;c({times:0,index:O,offset:ie,originAlign:K})}}}var H=N.forwardRef(function(G,Le){var f=G.prefixCls,y=G.rtl,v=G.scrollOffset,i=G.scrollRange,b=G.onStartMove,U=G.onStopMove,_=G.onScroll,l=G.horizontal,h=G.spinSize,o=G.containerSize,c=G.style,p=G.thumbStyle,O=G.showScrollBar,K=N.useState(!1),ue=(0,A.Z)(K,2),ie=ue[0],fe=ue[1],W=N.useState(null),Re=(0,A.Z)(W,2),Te=Re[0],V=Re[1],Pe=N.useState(null),Ge=(0,A.Z)(Pe,2),Ze=Ge[0],ze=Ge[1],rt=!y,_t=N.useRef(),ct=N.useRef(),st=N.useState(O),ht=(0,A.Z)(st,2),Ue=ht[0],Fe=ht[1],tt=N.useRef(),Et=function(){O===!0||O===!1||(clearTimeout(tt.current),Fe(!0),tt.current=setTimeout(function(){Fe(!1)},3e3))},mt=i-o||0,xt=o-h||0,Ot=N.useMemo(function(){if(v===0||mt===0)return 0;var n=v/mt;return n*xt},[v,mt,xt]),gt=function(r){r.stopPropagation(),r.preventDefault()},Rt=N.useRef({top:Ot,dragging:ie,pageY:Te,startTop:Ze});Rt.current={top:Ot,dragging:ie,pageY:Te,startTop:Ze};var it=function(r){fe(!0),V(z(r,l)),ze(Rt.current.top),b(),r.stopPropagation(),r.preventDefault()};N.useEffect(function(){var n=function(I){I.preventDefault()},r=_t.current,s=ct.current;return r.addEventListener("touchstart",n,{passive:!1}),s.addEventListener("touchstart",it,{passive:!1}),function(){r.removeEventListener("touchstart",n),s.removeEventListener("touchstart",it)}},[]);var at=N.useRef();at.current=mt;var Ve=N.useRef();Ve.current=xt,N.useEffect(function(){if(ie){var n,r=function(I){var Ie=Rt.current,Se=Ie.dragging,De=Ie.pageY,Qe=Ie.startTop;g.Z.cancel(n);var ot=_t.current.getBoundingClientRect(),Be=o/(l?ot.width:ot.height);if(Se){var ut=(z(I,l)-De)*Be,We=Qe;!rt&&l?We-=ut:We+=ut;var we=at.current,$e=Ve.current,nt=$e?We/$e:0,Je=Math.ceil(nt*we);Je=Math.max(Je,0),Je=Math.min(Je,we),n=(0,g.Z)(function(){_(Je,l)})}},s=function(){fe(!1),U()};return window.addEventListener("mousemove",r,{passive:!0}),window.addEventListener("touchmove",r,{passive:!0}),window.addEventListener("mouseup",s,{passive:!0}),window.addEventListener("touchend",s,{passive:!0}),function(){window.removeEventListener("mousemove",r),window.removeEventListener("touchmove",r),window.removeEventListener("mouseup",s),window.removeEventListener("touchend",s),g.Z.cancel(n)}}},[ie]),N.useEffect(function(){return Et(),function(){clearTimeout(tt.current)}},[v]),N.useImperativeHandle(Le,function(){return{delayHidden:Et}});var me="".concat(f,"-scrollbar"),e={position:"absolute",visibility:Ue?null:"hidden"},t={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return l?(Object.assign(e,{height:8,left:0,right:0,bottom:0}),Object.assign(t,(0,Y.Z)({height:"100%",width:h},rt?"left":"right",Ot))):(Object.assign(e,(0,Y.Z)({width:8,top:0,bottom:0},rt?"right":"left",0)),Object.assign(t,{width:"100%",height:h,top:Ot})),N.createElement("div",{ref:_t,className:se()(me,(0,Y.Z)((0,Y.Z)((0,Y.Z)({},"".concat(me,"-horizontal"),l),"".concat(me,"-vertical"),!l),"".concat(me,"-visible"),Ue)),style:(0,F.Z)((0,F.Z)({},e),c),onMouseDown:gt,onMouseMove:Et},N.createElement("div",{ref:ct,className:se()("".concat(me,"-thumb"),(0,Y.Z)({},"".concat(me,"-thumb-moving"),ie)),style:(0,F.Z)((0,F.Z)({},t),p),onMouseDown:it}))}),J=H,ae=20;function ye(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f=G/Le*G;return isNaN(f)&&(f=0),f=Math.max(f,ae),Math.floor(f)}var Ne=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],ke=[],Oe={overflowY:"auto",overflowAnchor:"none"};function et(G,Le){var f=G.prefixCls,y=f===void 0?"rc-virtual-list":f,v=G.className,i=G.height,b=G.itemHeight,U=G.fullHeight,_=U===void 0?!0:U,l=G.style,h=G.data,o=G.children,c=G.itemKey,p=G.virtual,O=G.direction,K=G.scrollWidth,ue=G.component,ie=ue===void 0?"div":ue,fe=G.onScroll,W=G.onVirtualScroll,Re=G.onVisibleChange,Te=G.innerProps,V=G.extraRender,Pe=G.styles,Ge=G.showScrollBar,Ze=Ge===void 0?"optional":Ge,ze=(0,u.Z)(G,Ne),rt=N.useCallback(function(lt){return typeof c=="function"?c(lt):lt==null?void 0:lt[c]},[c]),_t=M(rt,null,null),ct=(0,A.Z)(_t,4),st=ct[0],ht=ct[1],Ue=ct[2],Fe=ct[3],tt=!!(p!==!1&&i&&b),Et=N.useMemo(function(){return Object.values(Ue.maps).reduce(function(lt,qe){return lt+qe},0)},[Ue.id,Ue.maps]),mt=tt&&h&&(Math.max(b*h.length,Et)>i||!!K),xt=O==="rtl",Ot=se()(y,(0,Y.Z)({},"".concat(y,"-rtl"),xt),v),gt=h||ke,Rt=(0,N.useRef)(),it=(0,N.useRef)(),at=(0,N.useRef)(),Ve=(0,N.useState)(0),me=(0,A.Z)(Ve,2),e=me[0],t=me[1],n=(0,N.useState)(0),r=(0,A.Z)(n,2),s=r[0],S=r[1],I=(0,N.useState)(!1),Ie=(0,A.Z)(I,2),Se=Ie[0],De=Ie[1],Qe=function(){De(!0)},ot=function(){De(!1)},Be={getKey:rt};function ut(lt){t(function(qe){var Ct;typeof lt=="function"?Ct=lt(qe):Ct=lt;var $t=yt(Ct);return Rt.current.scrollTop=$t,$t})}var We=(0,N.useRef)({start:0,end:gt.length}),we=(0,N.useRef)(),$e=P(gt,rt),nt=(0,A.Z)($e,1),Je=nt[0];we.current=Je;var pt=N.useMemo(function(){if(!tt)return{scrollHeight:void 0,start:0,end:gt.length-1,offset:void 0};if(!mt){var lt;return{scrollHeight:((lt=it.current)===null||lt===void 0?void 0:lt.offsetHeight)||0,start:0,end:gt.length-1,offset:void 0}}for(var qe=0,Ct,$t,Zt,dn=gt.length,qt=0;qt<dn;qt+=1){var Qt=gt[qt],on=rt(Qt),gn=Ue.get(on),hn=qe+(gn===void 0?b:gn);hn>=e&&Ct===void 0&&(Ct=qt,$t=qe),hn>e+i&&Zt===void 0&&(Zt=qt),qe=hn}return Ct===void 0&&(Ct=0,$t=0,Zt=Math.ceil(i/b)),Zt===void 0&&(Zt=gt.length-1),Zt=Math.min(Zt+1,gt.length-1),{scrollHeight:qe,start:Ct,end:Zt,offset:$t}},[mt,tt,e,gt,Fe,i]),Tt=pt.scrollHeight,It=pt.start,Ye=pt.end,St=pt.offset;We.current.start=It,We.current.end=Ye,N.useLayoutEffect(function(){var lt=Ue.getRecord();if(lt.size===1){var qe=Array.from(lt.keys())[0],Ct=lt.get(qe),$t=gt[It];if($t&&Ct===void 0){var Zt=rt($t);if(Zt===qe){var dn=Ue.get(qe),qt=dn-b;ut(function(Qt){return Qt+qt})}}}Ue.resetRecord()},[Tt]);var te=N.useState({width:0,height:i}),q=(0,A.Z)(te,2),ve=q[0],Ae=q[1],ge=function(qe){Ae({width:qe.offsetWidth,height:qe.offsetHeight})},Ee=(0,N.useRef)(),_e=(0,N.useRef)(),He=N.useMemo(function(){return ye(ve.width,K)},[ve.width,K]),ft=N.useMemo(function(){return ye(ve.height,Tt)},[ve.height,Tt]),dt=Tt-i,bt=(0,N.useRef)(dt);bt.current=dt;function yt(lt){var qe=lt;return Number.isNaN(bt.current)||(qe=Math.min(qe,bt.current)),qe=Math.max(qe,0),qe}var wt=e<=0,Nt=e>=dt,Dt=s<=0,zt=s>=K,Ht=$(wt,Nt,Dt,zt),Ut=function(){return{x:xt?-s:s,y:e}},Mt=(0,N.useRef)(Ut()),Lt=(0,be.useEvent)(function(lt){if(W){var qe=(0,F.Z)((0,F.Z)({},Ut()),lt);(Mt.current.x!==qe.x||Mt.current.y!==qe.y)&&(W(qe),Mt.current=qe)}});function At(lt,qe){var Ct=lt;qe?((0,d.flushSync)(function(){S(Ct)}),Lt()):ut(Ct)}function Ft(lt){var qe=lt.currentTarget.scrollTop;qe!==e&&ut(qe),fe==null||fe(lt),Lt()}var Pt=function(qe){var Ct=qe,$t=K?K-ve.width:0;return Ct=Math.max(Ct,0),Ct=Math.min(Ct,$t),Ct},Gt=(0,be.useEvent)(function(lt,qe){qe?((0,d.flushSync)(function(){S(function(Ct){var $t=Ct+(xt?-lt:lt);return Pt($t)})}),Lt()):ut(function(Ct){var $t=Ct+lt;return $t})}),Bt=w(tt,wt,Nt,Dt,zt,!!K,Gt),tn=(0,A.Z)(Bt,2),Kt=tn[0],Jt=tn[1];k(tt,Rt,function(lt,qe,Ct,$t){var Zt=$t;return Ht(lt,qe,Ct)?!1:!Zt||!Zt._virtualHandled?(Zt&&(Zt._virtualHandled=!0),Kt({preventDefault:function(){},deltaX:lt?qe:0,deltaY:lt?0:qe}),!0):!1}),le(mt,Rt,function(lt){ut(function(qe){return qe+lt})}),(0,de.Z)(function(){function lt(Ct){var $t=wt&&Ct.detail<0,Zt=Nt&&Ct.detail>0;tt&&!$t&&!Zt&&Ct.preventDefault()}var qe=Rt.current;return qe.addEventListener("wheel",Kt,{passive:!1}),qe.addEventListener("DOMMouseScroll",Jt,{passive:!0}),qe.addEventListener("MozMousePixelScroll",lt,{passive:!1}),function(){qe.removeEventListener("wheel",Kt),qe.removeEventListener("DOMMouseScroll",Jt),qe.removeEventListener("MozMousePixelScroll",lt)}},[tt,wt,Nt]),(0,de.Z)(function(){if(K){var lt=Pt(s);S(lt),Lt({x:lt})}},[ve.width,K]);var Xt=function(){var qe,Ct;(qe=Ee.current)===null||qe===void 0||qe.delayHidden(),(Ct=_e.current)===null||Ct===void 0||Ct.delayHidden()},Yt=L(Rt,gt,Ue,b,rt,function(){return ht(!0)},ut,Xt);N.useImperativeHandle(Le,function(){return{nativeElement:at.current,getScrollInfo:Ut,scrollTo:function(qe){function Ct($t){return $t&&(0,C.Z)($t)==="object"&&("left"in $t||"top"in $t)}Ct(qe)?(qe.left!==void 0&&S(Pt(qe.left)),Yt(qe.top)):Yt(qe)}}}),(0,de.Z)(function(){if(Re){var lt=gt.slice(It,Ye+1);Re(lt,gt)}},[It,Ye,gt]);var nn=re(gt,rt,Ue,b),rn=V==null?void 0:V({start:It,end:Ye,virtual:mt,offsetX:s,offsetY:St,rtl:xt,getSize:nn}),fn=Ce(gt,It,Ye,K,s,st,o,Be),Wt=null;i&&(Wt=(0,F.Z)((0,Y.Z)({},_?"height":"maxHeight",i),Oe),tt&&(Wt.overflowY="hidden",K&&(Wt.overflowX="hidden"),Se&&(Wt.pointerEvents="none")));var an={};return xt&&(an.dir="rtl"),N.createElement("div",(0,E.Z)({ref:at,style:(0,F.Z)((0,F.Z)({},l),{},{position:"relative"}),className:Ot},an,ze),N.createElement(oe.Z,{onResize:ge},N.createElement(ie,{className:"".concat(y,"-holder"),style:Wt,ref:Rt,onScroll:Ft,onMouseEnter:Xt},N.createElement(ee,{prefixCls:y,height:Tt,offsetX:s,offsetY:St,scrollWidth:K,onInnerResize:ht,ref:it,innerProps:Te,rtl:xt,extra:rn},fn))),mt&&Tt>i&&N.createElement(J,{ref:Ee,prefixCls:y,scrollOffset:e,scrollRange:Tt,rtl:xt,onScroll:At,onStartMove:Qe,onStopMove:ot,spinSize:ft,containerSize:ve.height,style:Pe==null?void 0:Pe.verticalScrollBar,thumbStyle:Pe==null?void 0:Pe.verticalScrollBarThumb,showScrollBar:Ze}),mt&&K>ve.width&&N.createElement(J,{ref:_e,prefixCls:y,scrollOffset:s,scrollRange:K,rtl:xt,onScroll:At,onStartMove:Qe,onStopMove:ot,spinSize:He,containerSize:ve.width,horizontal:!0,style:Pe==null?void 0:Pe.horizontalScrollBar,thumbStyle:Pe==null?void 0:Pe.horizontalScrollBarThumb,showScrollBar:Ze}))}var Ke=N.forwardRef(et);Ke.displayName="List";var je=Ke,Xe=je},82059:function(vt){var Me=arguments[3],a=arguments[4],E=arguments[5],C=JSON.stringify;vt.exports=function(F,Y){for(var A,u=Object.keys(E),ce=0,se=u.length;ce<se;ce++){var oe=u[ce],be=E[oe].exports;if(be===F||be&&be.default===F){A=oe;break}}if(!A){A=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var de={},ce=0,se=u.length;ce<se;ce++){var oe=u[ce];de[oe]=oe}a[A]=["function(require,module,exports){"+F+"(self); }",de]}var N=Math.floor(Math.pow(16,8)*Math.random()).toString(16),d={};d[A]=A,a[N]=["function(require,module,exports){var f = require("+C(A)+");(f.default ? f.default : f)(self);}",d];var ne={};ee(N);function ee(g){ne[g]=!0;for(var R in a[g][1]){var B=a[g][1][R];ne[B]||ee(B)}}var Z="("+Me+")({"+Object.keys(ne).map(function(g){return C(g)+":["+a[g][0]+","+C(a[g][1])+"]"}).join(",")+"},{},["+C(N)+"])",Ce=window.URL||window.webkitURL||window.mozURL||window.msURL,j=new Blob([Z],{type:"text/javascript"});if(Y&&Y.bare)return j;var T=Ce.createObjectURL(j),P=new Worker(T);return P.objectURL=T,P}}}]);
|