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.
NewEduCoderBuild/p__Classrooms__Lists__Learn...

44 lines
279 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[4928],{18785:function(dt,Ae,l){"use strict";l.d(Ae,{Z:function(){return de}});var a=l(54476),C=l(59301),P={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"},z=P,y=l(7657),g=function(J,oe){return C.createElement(y.Z,(0,a.Z)({},J,{ref:oe,icon:z}))},he=C.forwardRef(g),de=he},33853:function(dt,Ae,l){"use strict";l.d(Ae,{Z:function(){return de}});var a=l(54476),C=l(59301),P={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"},z=P,y=l(7657),g=function(J,oe){return C.createElement(y.Z,(0,a.Z)({},J,{ref:oe,icon:z}))},he=C.forwardRef(g),de=he},38819:function(dt,Ae,l){"use strict";l.d(Ae,{Z:function(){return de}});var a=l(54476),C=l(59301),P={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"},z=P,y=l(7657),g=function(J,oe){return C.createElement(y.Z,(0,a.Z)({},J,{ref:oe,icon:z}))},he=C.forwardRef(g),de=he},44080:function(dt,Ae,l){"use strict";l.d(Ae,{Z:function(){return we}});var a=l(59301),C=l(8591),P=l(38854),z=l(73217),y=l(80360),g=l(41867),he=l(56102),de=l(84056),U={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"},J=(q,te,_)=>new Promise((S,v)=>{var L=$=>{try{F(_.next($))}catch(w){v(w)}},I=$=>{try{F(_.throw($))}catch(w){v(w)}},F=$=>$.done?S($.value):Promise.resolve($.value).then(L,I);F((_=_.apply(q,te)).next())});function oe(q){if(isNaN(q))return{minutes:"00",seconds:"00"};const te=new Date(q*1e3).toISOString().substr(11,8);return{hour:te.substr(0,2),minutes:te.substr(3,2),seconds:te.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function Y(q,te){return q-te}function o(q){q.sort(Y);let te=0;for(let _=0;_<q.length-1;_++){let S=Math.abs(q[_+1]-q[_]);S<21&&(te+=S)}return te}const V=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var we=(0,a.forwardRef)(({allow_skip:q,src:te,toLog:_,videoId:S,logWatchHistory:v,courseId:L=null,startTime:I,handlePause:F=()=>{},handlePlay:$=()=>{},handlePlayEnded:w=()=>{},autoPlay:Q=!1,onPlayEnded:se=()=>{},isShowWaterMark:ce=!0},Le)=>{var Se;const Ue=((Se=te==null?void 0:te.split("."))==null?void 0:Se.pop())==="flv",D=(0,a.useRef)(),Ve=(0,a.useRef)(),Ge=(0,a.useRef)(),Z=(0,a.useRef)(),fe=(0,a.useRef)(),ie=(0,a.useRef)(),ye=(0,a.useRef)(),le=(0,a.useRef)(),ue=(0,a.useRef)(),ve=(0,a.useRef)(),je=(0,a.useRef)(),Te=(0,a.useRef)(),Ze=(0,a.useRef)(),We=(0,a.useRef)(),it=navigator.userAgent.toLowerCase().match(V),Me=it?it[0]:"pc",He=(0,a.useRef)(!1),Ye=(0,g.eY)();let Je=0,et=0,R=0,E=null,s=!1,c=20,m=1,N=!1,d=!1,p=[];(0,a.useImperativeHandle)(Le,()=>({getLastUpdatedTime:()=>D.current.currentTime,getDuration:()=>D.current.duration})),C.ZP.config({maxCount:1,getContainer:()=>Ge.current});const b=(0,a.useCallback)((_e,Oe=!1)=>{let Ce={point:D.current.currentTime};E?(Ce.log_id=E,Ce.watch_duration=o(p),Ce.total_duration=et):(L?(Ce.video_id=parseInt(S,10),Ce.course_id=L):Ce.video_id=S,Ce.duration=Je,Ce.device=Me),Oe&&(Ce.ed="1");function ut(){return J(this,null,function*(){N=!0,E=yield v==null?void 0:v(Ce),N=!1,_e&&_e()})}ut()},[S,L]);(0,a.useEffect)(()=>{D.current&&(Z.current.style.display="none",fe.current.style.display="block"),C.ZP.destroy();let _e=null;return z.Z.isSupported&&Ue&&te&&(te==null?void 0:te.indexOf(".m3u8"))<0?(_e=z.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:te,muted:!1}),D.current&&(_e.attachMediaElement(D.current),_e.load())):D.current.setAttribute("src",te),B(),()=>{_e&&(_e.unload(),_e.pause(),_e.destroy(),_e=null)}},[D,Ue,te]);function u(){D.current.paused?(Z.current.style.display="none",fe.current.style.display="block"):(Z.current.style.display="block",fe.current.style.display="none")}function B(){je.current.style.display="none",Ze.current.style.display="none",Te.current.style.display="none",D.current.muted||D.current.volume===0?je.current.style.display="block":D.current.volume>0&&D.current.volume<=.5?Ze.current.style.display="block":Te.current.style.display="block"}(0,a.useEffect)(()=>{const _e=document.getElementById("play"),Oe=document.querySelectorAll(".playback-icons use");function Ce(){$(),I&&!He.current&&(D.current.currentTime=I),He.current=!0,p.push(D.current.currentTime),s||(s=!0,_&&b())}function ut(){return J(this,null,function*(){u(),p.push(D.current.currentTime),_&&b(()=>{E=null,R=0,s=!1,N=!1,d=!1,p=[],et=0,m=1},!0),se()})}function gt(){ie.current.value=Math.round(D.current.currentTime),ye.current.value=Math.round(D.current.currentTime)}function K(){const Re=oe(Math.round(D.current.currentTime));ue.current.innerText=`${Re.hour>0?Re.hour+":":""}${Re.minutes}:${Re.seconds}`,ue.current.setAttribute("datetime",`${Re.hour>0?" "+Re.hour+" ":""}${Re.minutes}m ${Re.seconds}s`)}function bt(){var Re,Qe,Rt,_t,Nt,Mt,kt;const Lt=Math.round((Re=D.current)==null?void 0:Re.duration);(Rt=(Qe=ie.current)==null?void 0:Qe.setAttribute)==null||Rt.call(Qe,"max",Lt),(Nt=(_t=ye.current)==null?void 0:_t.setAttribute)==null||Nt.call(_t,"max",Lt);const tt=oe(Lt);le.current&&(le.current.innerText=`${tt.hour>0?tt.hour+":":""}${tt.minutes}:${tt.seconds}`,(kt=(Mt=le.current).setAttribute)==null||kt.call(Mt,"datetime",`${tt.hour>0?" "+tt.hour+" ":""}${tt.minutes}m ${tt.seconds}s`))}function mt(){try{const Re=Math.round(D.current.duration);ie.current.setAttribute("max",Re),ye.current.setAttribute("max",Re);const Qe=oe(Re);le.current.innerText=`${Qe.hour>0?Qe.hour+":":""}${Qe.minutes}:${Qe.seconds}`,le.current.setAttribute("datetime",`${Qe.hour>0?" "+Qe.hour+" ":""}${Qe.minutes}m ${Qe.seconds}s`),gt(),K();const{width:Rt,height:_t,x:Nt,y:Mt}=Ve.current.getBoundingClientRect();if(Nt<0||Mt<0||!Rt)return;if(!d){let kt=D.current.currentTime,Lt=kt-R;Math.abs(Lt)<10?(et+=Math.abs(Lt),R=kt,N||et-m*c>=0&&(m++,p.push(R),_&&b())):(R=kt,_&&b())}}catch(Re){console.log(Re)}}function xt(){d=!0}function qe(){D.current.playing&&p.push(D.current.currentTime,R),R=D.current.currentTime,d=!1}function wt(){Je=D.current.duration,Je<=20&&(c=Je/3),D.current.addEventListener("play",Ce)}function Tt(Re){Re.preventDefault(),(0,de.vp)()?(D.current.style.width="100%",D.current.style.height="100%"):D.current.style.cssText=""}function Ft(){F()}function Et(Re){if(!q){C.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Qe=Re.target.dataset.seek?Re.target.dataset.seek:Re.target.value;D.current.currentTime=Qe,ye.current.value=Qe,ie.current.value=Qe}function Zt(Re){const Qe=Math.round(Re.offsetX/Re.target.clientWidth*parseInt(Re.target.getAttribute("max"),10));ie.current.setAttribute("data-seek",Qe);const Rt=oe(Qe);ve.current.textContent=`${Rt.hour>0?Rt.hour+":":""}${Rt.minutes}:${Rt.seconds}`;const _t=D.current.getBoundingClientRect();ve.current.style.left=`${Re.pageX-_t.left}px`}function Kt(Re){switch(Re.code){case"Space":Re.preventDefault(),be();break;case"ArrowRight":if(Re.preventDefault(),!q){C.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(D.current.currentTime>=D.current.duration)break;D.current.currentTime=parseInt(D.current.currentTime)+5,gt();break;case"ArrowLeft":if(Re.preventDefault(),!q){C.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(D.current.currentTime===0)break;D.current.currentTime=parseInt(D.current.currentTime)-5,gt();break;case"ArrowUp":Re.preventDefault(),D.current.volume<1&&(D.current.volume=(parseInt(D.current.volume*10)+1)/10);break;case"ArrowDown":Re.preventDefault(),D.current.volume>0&&(D.current.volume=(parseInt(D.current.volume*10)-1)/10);break}}return Ge.current.addEventListener((0,de.gH)(),Tt),D.current.addEventListener("canplay",wt),D.current.addEventListener("ended",ut),D.current.addEventListener("seeking",xt),D.current.addEventListener("seeked",qe),D.current.addEventListener("loadedmetadata",bt),ie.current.addEventListener("mousemove",Zt),ie.current.addEventListener("input",Et),D.current.addEventListener("timeupdate",mt),D.current.addEventListener("pause",Ft),D.current.addEventListener("volumechange",B),document.addEventListener("keydown",Kt),()=>{var Re,Qe,Rt,_t,Nt,Mt,kt,Lt,tt,rt,dn,H;(Re=D.current)==null||Re.removeEventListener("canplay",wt),(Qe=D.current)==null||Qe.removeEventListener("play",Ce),(Rt=D.current)==null||Rt.removeEventListener("ended",ut),(_t=D.current)==null||_t.removeEventListener("seeking",xt),(Nt=D.current)==null||Nt.removeEventListener("seeked",qe),(Mt=ie.current)==null||Mt.removeEventListener("mousemove",Zt),(kt=ie.current)==null||kt.removeEventListener("input",Et),(Lt=D.current)==null||Lt.removeEventListener("timeupdate",mt),(tt=D.current)==null||tt.removeEventListener("pause",Ft),(rt=D.current)==null||rt.removeEventListener("loadedmetadata",bt),(dn=D.current)==null||dn.removeEventListener("volumechange",B),document.removeEventListener("keydown",Kt),(H=D.current)!=null&&H.playing&&(p.push(R,D.current.currentTime),_&&b())}},[D,te]),(0,a.useEffect)(()=>{if(D.current.onended=()=>{w(D)},D.current.oncontextmenu=()=>!1,(te==null?void 0:te.indexOf(".m3u8"))>-1){if(D.current.canPlayType("application/vnd.apple.mpegurl"))D.current.src=te;else if(y.ZP.isSupported()){var _e=new y.ZP;_e.loadSource(te),_e.attachMedia(D.current)}}},[te]);const[W,pe]=(0,a.useState)(1),be=()=>{D.current.paused||D.current.ended?D.current.play():D.current.pause(),u()};function Fe(){D.current.muted=!D.current.muted,D.current.muted?(We.current.setAttribute("data-volume",volume.value),We.current.value=0):We.current.value=We.current.dataset.volume}return a.createElement("div",{style:{position:"relative"},ref:Ge},a.createElement("div",{ref:Ve,className:`${U.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${U.animate__loop}`},ce&&Ye?Ye.login:" "),a.createElement("div",{className:U.container},a.createElement("div",{className:U["video-container"],id:"video-container"},a.createElement("div",{className:U["playback-animation"],id:"playback-animation"},a.createElement("svg",{className:U["playback-icons"]},a.createElement("use",{className:"hidden",href:"#play-icon"}),a.createElement("use",{href:"#pause"}))),a.createElement("video",{className:U.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:D,autoPlay:Q}),a.createElement("div",{className:`${U["video-controls"]} `,id:"video-controls"},a.createElement("div",{className:U["bottom-controls"]},a.createElement("div",{className:U["left-controls"]},a.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:be},a.createElement("svg",{className:U["playback-icons"]},a.createElement("use",{ref:fe,href:"#play-icon"}),a.createElement("use",{ref:Z,style:{display:"none"},href:"#pause"}))),a.createElement("div",{className:U.time},a.createElement("time",{id:"time-elapsed",ref:ue},"00:00"),a.createElement("span",null," / "),a.createElement("time",{id:"duration",ref:le},"00:00"))),a.createElement("div",{className:U["right-controls"]},q&&a.createElement(P.Z,{placement:"top",overlayClassName:U.rateOverlay,getPopupContainer:_e=>_e.parentNode,menu:{items:[{key:"1",label:a.createElement("span",{onClick:()=>{pe(1),D.current.playbackRate=1}},"1.0x")},{key:"2",label:a.createElement("span",{onClick:()=>{pe(1.5),D.current.playbackRate=1.5}},"1.5x")},{key:"3",label:a.createElement("span",{onClick:()=>{pe(2),D.current.playbackRate=2}},"2.0x")}]}},a.createElement("div",{className:`${U.controlText} mr5`},"\u500D\u901F")),a.createElement(he.CopyToClipboard,{text:te,onCopy:()=>C.ZP.success("\u590D\u5236\u6210\u529F")},a.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},a.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),a.createElement("div",{className:U["volume-controls"]},a.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:U["volume-button"],id:"volume-button",onClick:Fe},a.createElement("i",{ref:je,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),a.createElement("i",{ref:Ze,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),a.createElement("i",{ref:Te,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),a.createElement("input",{className:U.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:We,style:{display:"none"},onClick:B})),a.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:U["fullscreen-button"],onClick:()=>{(0,de.vp)()?(0,de.BU)():(0,de.Dj)(Ge.current)}},a.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),a.createElement("div",{className:U["video-progress"]},a.createElement("progress",{ref:ye,value:"0",min:"0"}),a.createElement("input",{className:U.seek,ref:ie,value:"0",min:"0",type:"range",step:"1"}),a.createElement("div",{className:U["seek-tooltip"],ref:ve,id:"seek-tooltip"},"00:00"))))),a.createElement("svg",{style:{display:"none"}},a.createElement("defs",null,a.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},a.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),a.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},a.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),a.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},a.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"})),a.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},a.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"})),a.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},a.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"})),a.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},a.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"})),a.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},a.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"})),a.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},a.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"})))))})},47318:function(dt,Ae,l){"use strict";l.r(Ae),l.d(Ae,{default:function(){return te}});var a=l(59301),C=l(65582),P=l(61621),z=l(43418),y={flex_box_center:"flex_box_center___yF0Vb",flex_space_between:"flex_space_between___vsNYO",flex_box_vertical_center:"flex_box_vertical_center___C4UqH",flex_box_center_end:"flex_box_center_end___EGtmE",flex_box_column:"flex_box_column___uX9g9",bg:"bg___sRga2",menu:"menu___s8xQl",desc:"desc___poG1Z",listItem:"listItem___ml9kN",info:"info___Z8R2Z",add:"add___jH8te",addForm:"addForm___O999t",attendanceCode:"attendanceCode___hPKyl",signInStatus:"signInStatus___usMPT",colorE02020:"colorE02020___hZvSz",color0152d9:"color0152d9___RgXzd",colorFA6400:"colorFA6400___g2yU6",iframe:"iframe___HRzMh"},g=l(41867);const he={init:[{stage_name:"\u521D\u59CB\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7EEA\u8BBA",parent:0,key:1},{discipline_name:"\u7EEA\u8BBA",shixun_count:"1",video_count:"2",parent:1,key:"11"},{shixun_name:"\u7EEA\u8BBA1",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f066ae1a9a8f418f837e5bf8d02b2690/76df907c20efd95bea0fa23424f10693-hd.m3u8",parent:"11",key:"111"},{shixun_name:"\u7EEA\u8BBA2",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/068ca7853da448c794eeffb0dee8bed4/5bb446a882043683e37474ff408f601b-hd.m3u8",parent:"11",key:"112"},{shixun_name:"C++\u5F00\u53D1\u73AF\u5883\u5E94\u7528\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/zxb937qn/challenges",parent:"11",key:"113"},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:2},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:2,key:"21"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"21",key:"212"},{discipline_name:"\u5224\u65AD\u8BED\u53E5",shixun_count:"2",video_count:"2",parent:2,key:"22"},{shixun_name:"if\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/3b4e821b200443948c553e4c6b51d940/b9601216238e60440192c2deb58adc53-hd.m3u8",parent:"22",key:"221"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08if\u591A\u91CD\u9009\u62E9\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/23xkyrmn/challenges",parent:"22",key:"222"},{shixun_name:"switch\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/3b4e821b200443948c553e4c6b51d940/b9601216238e60440192c2deb58adc53-hd.m3u8",parent:"22",key:"223"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"22",key:"224"},{discipline_name:"\u5FAA\u73AF",shixun_count:"2",video_count:"2",parent:2,key:"23"},{shixun_name:"while\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/dda06371a1594f5d865479a0fadc77bb/cb504e3af36ebe2ba979e8fe5fbb2222-hd.m3u8",parent:"23",key:"231"},{shixun_name:"C++\u5FAA\u73AF\u7ED3\u6784\u2014\u2014\uFF08\u719F\u6089while\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/8yhf4sn6/challenges",parent:"23",key:"232"},{shixun_name:"for\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/503194c483f44ccfacc7f9ee14cda70a/36cbd964c6657d1bbc43eb33b98f0c51-hd.m3u8",parent:"23",key:"233"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"23",key:"234"},{stage_name:"\u51FD\u6570",parent:0,key:3},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"31",key:"311"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"31",key:"312"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"31",key:"313"},{discipline_name:"\u4F20\u8F93\u4F20\u9012",shixun_count:"2",video_count:"1",parent:3,key:"32"},{shixun_name:"\u51FD\u6570\u7684\u53C2\u6570",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"32",key:"321"},{shixun_name:"C++\u53C2\u6570\u4F20\u90121",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/2phrn8yk/challenges",parent:"32",key:"322"},{shixun_name:"C++\u53C2\u6570\u4F20\u90122",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xsq7p4a6/challenges",parent:"32",key:"323"},{discipline_name:"\u51FD\u6570\u91CD\u8F7D",shixun_count:"1",video_count:"1",parent:3,key:"33"},{shixun_name:"\u51FD\u6570\u91CD\u8F7D",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"33",key:"331"},{shixun_name:"C++\u51FD\u6570\u91CD\u8F7D",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/6hbqpv7e/challenges",parent:"33",key:"332"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"34"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"34",key:"341"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"34",key:"342"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"34",key:"343"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:4},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"41",key:"411"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"41",key:"412"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"41",key:"413"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:5},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"51",key:"511"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"51",key:"512"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:6},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:6,key:"61"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"61",key:"611"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"61",key:"612"},{discipline_name:"\u6307\u9488",shixun_count:"3",video_count:"1",parent:6,key:"62"},{shixun_name:"\u6307\u9488",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/00a5448862c84c42b1a369ac2be88ae9/9b9627710a725e570ede478663c2589d-hd.m3u8",parent:"62",key:"621"},{shixun_name:"\u6307\u9488\u7EC3\u624B-\u5B57\u7B26\u4E32\u5012\u5E8F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lkn6xuc3/challenges",parent:"62",key:"622"},{shixun_name:"\u6307\u9488\u6570\u7EC4-\u5355\u8BCD\u5012\u5E8F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/vtk73ny2/challenges",parent:"62",key:"623"},{shixun_name:"\u7528\u6307\u9488\u89E3\u51B3\u95EE\u9898-\u6587\u672C\u683C\u5F0F\u5904\u7406",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xfnp73fz/challenges",parent:"62",key:"624"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:7},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"1",video_count:"3",parent:7,key:"71"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(3)",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7806?subject_id=jpl5vs26",parent:"71",key:"713"},{shixun_name:"\u7EE7\u627F\u4E0E\u6D3E\u751F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/f83ipgyo/challenges",parent:"71",key:"714"},{stage_name:"\u591A\u6001\u6027",parent:0,key:8},{discipline_name:"\u591A\u6001\u6027",shixun_count:"1",video_count:"2",parent:8,key:"81"},{shixun_name:"\u591A\u6001\u6027(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/5a960b51ebf346d2b77afb3b70d00768/73d6fa00824f4c73b885d33f688c3294-hd.m3u8",parent:"81",key:"811"},{shixun_name:"\u591A\u6001\u6027(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/08fe97a36e184cf1bf27cdd7a24794c9/625c4e9e863840443f5332ccc02761fc-hd.m3u8",parent:"81",key:"812"},{shixun_name:"\u865A\u51FD\u6570\u4E0E\u591A\u6001\u6027",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/9pjmg7uf/challenges",parent:"81",key:"813"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:9},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"1",video_count:"3",parent:9,key:"91"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/459f2693af7b48f8b854033e666a77f8/f5b140c5adc0f24ac56b72492373306a-hd.m3u8",parent:"91",key:"912"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(3)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/ccea50bc15d2468aab99aff19eb69e16/a5ecac1ee0c07360d07880187a787085-hd.m3u8",parent:"91",key:"913"},{shixun_name:"\u7FA4\u4F53\u7C7B\u548C\u7FA4\u4F53\u6570\u636E\u7684\u7EC4\u7EC7",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/kfv3my9o/challenges",parent:"91",key:"914"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:10},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"1",video_count:"3",parent:10,key:"101"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"101",key:"1011"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/23be6a61e4e54db398b9172b1213a1f2/3f1e88f97957369e29ef2bde63640004-hd.m3u8",parent:"101",key:"1012"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(3)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/a5887adcc34445bba695de7dcadb781e/0fb3a6a6ad38f7a107054c5f2f0de262-hd.m3u8",parent:"101",key:"1013"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hmtw5iq6/challenges",parent:"101",key:"1014"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA11",parent:0,key:1911},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"1",video_count:"2",parent:1911,key:9111},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)22222",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:9111,key:"91111"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/65c02365a4ad40858b69b8cbe3ca4aa1/18a2c5697d4a84a971c500565509f038-hd.m3u8",parent:"9111",key:"91112"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hsvuixpm/challenges",parent:"9111",key:"91113"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:12},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:12,key:"121"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"121",key:"1211"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"121",key:"1212"}].map(_=>(_.parent=Number(_.parent),_.key=Number(_.key),_)),review:[{stage_name:"\u590D\u4E60\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:1},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:1,key:"11"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"11",key:"111"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"11",key:"112"},{discipline_name:"\u5FAA\u73AF",shixun_count:"2",video_count:"2",parent:1,key:"12"},{shixun_name:"while\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/dda06371a1594f5d865479a0fadc77bb/cb504e3af36ebe2ba979e8fe5fbb2222-hd.m3u8",parent:"12",key:"121"},{shixun_name:"C++\u5FAA\u73AF\u7ED3\u6784\u2014\u2014\uFF08\u719F\u6089while\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/8yhf4sn6/challenges",parent:"12",key:"122"},{shixun_name:"for\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/503194c483f44ccfacc7f9ee14cda70a/36cbd964c6657d1bbc43eb33b98f0c51-hd.m3u8",parent:"12",key:"123"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"12",key:"124"},{stage_name:"\u51FD\u6570",parent:0,key:2},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:2,key:"21"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"21",key:"212"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"21",key:"213"},{discipline_name:"\u4F20\u8F93\u4F20\u9012",shixun_count:"2",video_count:"1",parent:2,key:"22"},{shixun_name:"\u51FD\u6570\u7684\u53C2\u6570",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"22",key:"221"},{shixun_name:"C++\u53C2\u6570\u4F20\u90121",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/2phrn8yk/challenges",parent:"22",key:"222"},{shixun_name:"C++\u53C2\u6570\u4F20\u90122",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xsq7p4a6/challenges",parent:"22",key:"223"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"2",parent:2,key:"23"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"23",key:"231"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"23",key:"232"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"23",key:"233"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:3},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"31",key:"311"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"31",key:"312"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"31",key:"313"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:4},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"41",key:"411"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"41",key:"412"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:5},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"51",key:"511"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"51",key:"512"},{discipline_name:"\u6307\u9488",shixun_count:"1",video_count:"1",parent:5,key:"52"},{shixun_name:"\u6307\u9488",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/00a5448862c84c42b1a369ac2be88ae9/9b9627710a725e570ede478663c2589d-hd.m3u8",parent:"52",key:"521"},{shixun_name:"\u7528\u6307\u9488\u89E3\u51B3\u95EE\u9898-\u6587\u672C\u683C\u5F0F\u5904\u7406",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xfnp73fz/challenges",parent:"52",key:"522"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:6},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"0",video_count:"2",parent:6,key:"61"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"61",key:"611"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"61",key:"612"},{stage_name:"\u591A\u6001\u6027",parent:0,key:7},{discipline_name:"\u591A\u6001\u6027",shixun_count:"1",video_count:"2",parent:7,key:"71"},{shixun_name:"\u591A\u6001\u6027(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/5a960b51ebf346d2b77afb3b70d00768/73d6fa00824f4c73b885d33f688c3294-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u591A\u6001\u6027(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/08fe97a36e184cf1bf27cdd7a24794c9/625c4e9e863840443f5332ccc02761fc-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u865A\u51FD\u6570\u4E0E\u591A\u6001\u6027",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/9pjmg7uf/challenges",parent:"71",key:"713"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:8},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"1",video_count:"1",parent:8,key:"81"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"81",key:"811"},{shixun_name:"\u7FA4\u4F53\u7C7B\u548C\u7FA4\u4F53\u6570\u636E\u7684\u7EC4\u7EC7",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/kfv3my9o/challenges",parent:"81",key:"812"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:9},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"1",video_count:"1",parent:9,key:"91"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hmtw5iq6/challenges",parent:"91",key:"912"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",parent:0,key:10},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"0",video_count:"2",parent:10,key:"101"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:"101",key:"1011"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/65c02365a4ad40858b69b8cbe3ca4aa1/18a2c5697d4a84a971c500565509f038-hd.m3u8",parent:"101",key:"1012"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hsvuixpm/challenges",parent:"101",key:"1013"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:9911},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:9911,key:"99111"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"99111",key:"991111"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"99111",key:"991112"}].map(_=>(_.parent=Number(_.parent),_.key=Number(_.key),_)),before:[{stage_name:"\u8003\u524D\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7EEA\u8BBA",parent:0,key:1},{discipline_name:"\u7EEA\u8BBA",shixun_count:"1",video_count:"2",parent:1,key:"11"},{shixun_name:"\u7EEA\u8BBA1",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f066ae1a9a8f418f837e5bf8d02b2690/76df907c20efd95bea0fa23424f10693-hd.m3u8",parent:"11",key:"111"},{shixun_name:"\u7EEA\u8BBA2",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/068ca7853da448c794eeffb0dee8bed4/5bb446a882043683e37474ff408f601b-hd.m3u8",parent:"11",key:"112"},{shixun_name:"C++\u5F00\u53D1\u73AF\u5883\u5E94\u7528\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/zxb937qn/challenges",parent:"11",key:"113"},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:2},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:2,key:"21"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"21",key:"212"},{stage_name:"\u51FD\u6570",parent:0,key:3},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"31",key:"311"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"31",key:"312"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"31",key:"313"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"32"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"32",key:"321"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"32",key:"322"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"32",key:"323"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:4},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"41",key:"411"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"41",key:"412"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"41",key:"413"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:5},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"51",key:"511"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"51",key:"512"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:6},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:6,key:"61"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"61",key:"611"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"61",key:"612"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:7},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"1",video_count:"3",parent:7,key:"71"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(3)",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7806?subject_id=jpl5vs26",parent:"71",key:"713"},{shixun_name:"\u7EE7\u627F\u4E0E\u6D3E\u751F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/f83ipgyo/challenges",parent:"71",key:"714"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:8},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"0",video_count:"1",parent:8,key:"81"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"81",key:"811"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:9},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"0",video_count:"1",parent:9,key:"91"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/23be6a61e4e54db398b9172b1213a1f2/3f1e88f97957369e29ef2bde63640004-hd.m3u8",parent:"91",key:"912"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",parent:0,key:10},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"0",video_count:"1",parent:10,key:"101"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:"101",key:"1011"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:9911},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:9911,key:"99111"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"99111",key:"991111"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"99111",key:"991112"}].map(_=>(_.parent=Number(_.parent),_.key=Number(_.key),_))};var de=l(95651),U=l(44080),J=Object.defineProperty,oe=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,V=(_,S,v)=>S in _?J(_,S,{enumerable:!0,configurable:!0,writable:!0,value:v}):_[S]=v,we=(_,S)=>{for(var v in S||(S={}))Y.call(S,v)&&V(_,v,S[v]);if(oe)for(var v of oe(S))o.call(S,v)&&V(_,v,S[v]);return _};const q=({classroomList:_,loading:S,dispatch:v})=>{const L=(0,C.useIntl)(),[I]=(0,C.useSearchParams)(),[F]=(0,a.useState)(we({},(0,C.useParams)())),[$,w]=(0,a.useState)("init"),[Q,se]=(0,a.useState)(""),ce=(0,a.useRef)();(0,a.useEffect)(()=>{const D=I.get("tabId");D&&(w(D),F.status=D)},[F.categoryId,I.get("tabId")]);const Le=D=>{w(D.key)},Se=[{name:"\u521D\u59CB\u5B66\u4E60",id:"init"},{name:"\u590D\u4E60\u5B66\u4E60",id:"review"},{name:"\u8003\u524D\u5B66\u4E60",id:"before"}],ke=D=>{D.data.type==="playVideo"&&se(D.data.url)};(0,a.useEffect)(()=>{$&&Ue(),window.addEventListener("message",ke)},[$]);const Ue=()=>{var D;(D=ce.current.contentWindow)==null||D.postMessage({data:he[$]},"*")};return a.createElement("section",null,a.createElement(de.Z,{isLoading:S["classroomList/getClassroomAttendancesList"],tabDataSource:Se,isAdmin:(0,g.GJ)(),onTabMenuClick:Le,defaultSelectedKeys:[$]}),a.createElement("section",null,a.createElement(P.Z,{loading:S["classroomList/getClassroomAttendancesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},a.createElement("iframe",{src:"/knowledgegraph/parseTree.html",onLoad:Ue,className:y.iframe,ref:ce}))),a.createElement(z.default,{open:!!Q,onCancel:()=>se(""),width:800,footer:null,bodyStyle:{padding:0},centered:!0,destroyOnClose:!0},a.createElement(U.Z,{src:Q,autoPlay:!0,toLog:!1})))};var te=(0,C.connect)(({classroomList:_,loading:S,globalSetting:v})=>({classroomList:_,globalSetting:v,loading:S.effects}))(q)},95651:function(dt,Ae,l){"use strict";l.d(Ae,{Z:function(){return Y}});var a=l(59301),C=l(95237),P=l(43604),z=l(20834),y=l(38854),g=l(8591),he=l(6848),de={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},U=l(65582),J=l(41867),Y=({isLoading:o,addText:V,tabDataSource:we,isAdmin:q,dispatch:te,classroomList:_,type:S,isExercise:v,defaultSelectedKeys:L,onTabMenuClick:I,getDropdownMenu:F,showControlButton:$,buttonText:w,buttonIcon:Q="icon-tianjiadaohang",extraNode:se,user:ce,onButtonClick:Le,isModelUser:Se})=>{var ke,Ue,D,Ve,Ge;const Z=(0,U.useIntl)(),fe=(0,U.useParams)();return a.createElement("div",{className:de.tabMenuContainer},a.createElement(C.Z,null,a.createElement(P.Z,{flex:"1"},a.createElement(z.default,{onSelect:ie=>o?{}:I(ie),mode:"horizontal",selectedKeys:L},we.map(ie=>a.createElement(z.default.Item,{key:typeof ie.index=="number"?ie.index:ie.id},a.createElement("span",{className:"c-grey-666"},ie.name),ie.total!==void 0&&q&&a.createElement("span",{className:"c-grey-999 ml20"},ie.total||0))))),q&&v&&a.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{te({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),q&&a.createElement(P.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},v&&a.createElement(y.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>a.createElement(z.default,null,a.createElement(z.default.Item,{key:1,onClick:()=>{var ie;if((0,J.Rm)()&&!((ie=_.AssistantObject.exercise)!=null&&ie.can_download)){g.ZP.warning(Z.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"}));return}te({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:S,exportType:"exercise",category_id:fe.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),a.createElement(z.default.Item,{key:3,onClick:()=>{var ie;if((0,J.Rm)()&&!((ie=_.AssistantObject.exercise)!=null&&ie.can_download)){g.ZP.warning(Z.formatMessage({id:"classrooms.noPermissionApplyToAdmin",defaultMessage:"\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"}));return}U.history.push(`/classrooms/${fe==null?void 0:fe.coursesId}/exportlist/exercise_score,export_exercise_users`)}},Z.formatMessage({id:"classrooms.historicalExport",defaultMessage:"\u5386\u53F2\u5BFC\u51FA"})))},a.createElement("div",{className:"c-blue font16 ml20 current",style:{marginTop:2}},a.createElement("span",{style:{color:"#666666",cursor:"pointer"}},a.createElement("i",{className:"iconfont icon-xiazai6"})))),a.createElement("div",{className:de.control},a.createElement("div",{className:de.extra},se),$&&(w==Z.formatMessage({id:"classrooms.addLiveBroadcast",defaultMessage:"\u6DFB\u52A0\u76F4\u64AD"})?a.createElement(y.Z,{menu:{items:(Ue=(ke=[{label:a.createElement("div",{onClick:()=>{Le("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Se&&{label:a.createElement("div",{onClick:()=>{Le("\u5934\u6B4C")}},Z.formatMessage({id:"classrooms.liveBroadcast",defaultMessage:"\u76F4\u64AD"})),key:"2",show:!0}])==null?void 0:ke.filter(ie=>ie==null?void 0:ie.show))==null?void 0:Ue.map(ie=>({label:ie==null?void 0:ie.label,key:ie==null?void 0:ie.key}))}},a.createElement("span",{className:de.selectBtn},a.createElement("span",null,a.createElement("i",{className:`iconfont ${Q}`})),a.createElement("span",null,w))):a.createElement("span",{onClick:Le,style:{cursor:"pointer"},className:de.selectBtn},a.createElement("span",null,a.createElement("i",{className:`iconfont ${Q}`})),a.createElement("span",null,w))),!!F&&a.createElement(y.Z,{disabled:((D=ce==null?void 0:ce.userInfo)==null?void 0:D.user_status)===2,className:"ml10",dropdownRender:F},a.createElement("span",{className:((Ve=ce==null?void 0:ce.userInfo)==null?void 0:Ve.user_status)===2?de.selectBtn1:de.selectBtn},a.createElement("span",null,a.createElement("i",{className:"iconfont icon-tianjiadaohang"})),a.createElement(he.Z,{title:((Ge=ce==null?void 0:ce.userInfo)==null?void 0:Ge.user_status)===2&&"\u6559\u5B66\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5E73\u53F0\u5DF2\u6682\u505C\u63D0\u4F9B\u5728\u7EBF\u8003\u8BD5\u521B\u5EFA\u529F\u80FD"},a.createElement("span",null,V||"\u521B\u5EFA\u8BD5\u5377"))))))))}},84056:function(dt,Ae,l){"use strict";l.d(Ae,{BU:function(){return C},Dj:function(){return a},gH:function(){return P},vp:function(){return z}});function a(y){try{y.mozRequestFullScreen?y.mozRequestFullScreen():y.webkitRequestFullScreen&&y.webkitRequestFullScreen()}catch(g){console.log(g,":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 P=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function z(){var y=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,g=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",y),window.isFullScreen?window.isFullScreen:y!=null}},73217:function(dt,Ae,l){"use strict";l.d(Ae,{Z:function(){return dn}});class a{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");let t=Object(e);for(let n=1;n<arguments.length;n++){let i=arguments[n];if(i!=null)for(let r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t},typeof self.Promise!="function"&&l(3867).polyfill()}}a.install();var C=a,P=l(86204),z=l.n(P);class y{static e(e,t){(!e||y.FORCE_GLOBAL_TAG)&&(e=y.GLOBAL_TAG);let n=`[${e}] > ${t}`;y.ENABLE_CALLBACK&&y.emitter.emit("log","error",n),y.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}static i(e,t){(!e||y.FORCE_GLOBAL_TAG)&&(e=y.GLOBAL_TAG);let n=`[${e}] > ${t}`;y.ENABLE_CALLBACK&&y.emitter.emit("log","info",n),y.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}static w(e,t){(!e||y.FORCE_GLOBAL_TAG)&&(e=y.GLOBAL_TAG);let n=`[${e}] > ${t}`;y.ENABLE_CALLBACK&&y.emitter.emit("log","warn",n),y.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}static d(e,t){(!e||y.FORCE_GLOBAL_TAG)&&(e=y.GLOBAL_TAG);let n=`[${e}] > ${t}`;y.ENABLE_CALLBACK&&y.emitter.emit("log","debug",n),y.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}static v(e,t){(!e||y.FORCE_GLOBAL_TAG)&&(e=y.GLOBAL_TAG);let n=`[${e}] > ${t}`;y.ENABLE_CALLBACK&&y.emitter.emit("log","verbose",n),y.ENABLE_VERBOSE&&console.log(n)}}y.GLOBAL_TAG="flv.js",y.FORCE_GLOBAL_TAG=!1,y.ENABLE_ERROR=!0,y.ENABLE_INFO=!0,y.ENABLE_WARN=!0,y.ENABLE_DEBUG=!0,y.ENABLE_VERBOSE=!0,y.ENABLE_CALLBACK=!1,y.emitter=new(z());var g=y;class he{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 de=he;class U{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class J extends U{constructor(e){super(e)}get name(){return"IllegalStateException"}}class oe extends U{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class Y extends U{constructor(e){super(e)}get name(){return"NotImplementedException"}}const o={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},V={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class we{constructor(e){this._type=e||"undefined",this._status=o.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=o.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===o.kConnecting||this._status===o.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 Y("Unimplemented abstract function!")}abort(){throw new Y("Unimplemented abstract function!")}}let q={};function te(){let H=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(H)||/(opr)[\/]([\w.]+)/.exec(H)||/(chrome)[ \/]([\w.]+)/.exec(H)||/(iemobile)[\/]([\w.]+)/.exec(H)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(H)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(H)||/(webkit)[ \/]([\w.]+)/.exec(H)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(H)||/(msie) ([\w.]+)/.exec(H)||H.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(H)||H.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(H)||[],t=/(ipad)/.exec(H)||/(ipod)/.exec(H)||/(windows phone)/.exec(H)||/(iphone)/.exec(H)||/(kindle)/.exec(H)||/(android)/.exec(H)||/(windows)/.exec(H)||/(mac)/.exec(H)||/(linux)/.exec(H)||/(cros)/.exec(H)||[],n={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",majorVersion:e[4]||e[2]||"0",platform:t[0]||""},i={};if(n.browser){i[n.browser]=!0;let r=n.majorVersion.split(".");i.version={major:parseInt(n.majorVersion,10),string:n.version},r.length>1&&(i.version.minor=parseInt(r[1],10)),r.length>2&&(i.version.build=parseInt(r[2],10))}if(n.platform&&(i[n.platform]=!0),(i.chrome||i.opr||i.safari)&&(i.webkit=!0),i.rv||i.iemobile){i.rv&&delete i.rv;let r="msie";n.browser=r,i[r]=!0}if(i.edge){delete i.edge;let r="msedge";n.browser=r,i[r]=!0}if(i.opr){let r="opera";n.browser=r,i[r]=!0}if(i.safari&&i.android){let r="android";n.browser=r,i[r]=!0}i.name=n.browser,i.platform=n.platform;for(let r in q)q.hasOwnProperty(r)&&delete q[r];Object.assign(q,i)}te();var _=q;class S extends we{static isSupported(){try{let e=_.msedge&&_.version.minor>=15048,t=_.msedge?e:!0;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}}constructor(e,t){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let n=e.url;this._config.reuseRedirectedURL&&e.redirectedURL!=null&&(n=e.redirectedURL);let i=this._seekHandler.getConfig(n,t),r=new self.Headers;if(typeof i.headers=="object"){let f=i.headers;for(let ee in f)f.hasOwnProperty(ee)&&r.append(ee,f[ee])}let h={method:"GET",headers:r,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let f in this._config.headers)r.append(f,this._config.headers[f]);e.cors===!1&&(h.mode="same-origin"),e.withCredentials&&(h.credentials="include"),e.referrerPolicy&&(h.referrerPolicy=e.referrerPolicy),this._status=o.kConnecting,self.fetch(i.url,h).then(f=>{if(this._requestAbort){this._requestAbort=!1,this._status=o.kIdle;return}if(f.ok&&f.status>=200&&f.status<=299){if(f.url!==i.url&&this._onURLRedirect){let G=this._seekHandler.removeURLParameters(f.url);this._onURLRedirect(G)}let ee=f.headers.get("Content-Length");return ee!=null&&(this._contentLength=parseInt(ee),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,f.body.getReader())}else if(this._status=o.kError,this._onError)this._onError(V.HTTP_STATUS_CODE_INVALID,{code:f.status,msg:f.statusText});else throw new U("FetchStreamLoader: Http code invalid, "+f.status+" "+f.statusText)}).catch(f=>{if(this._status=o.kError,this._onError)this._onError(V.EXCEPTION,{code:-1,msg:f.message});else throw f})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=o.kError;let n=V.EARLY_EOF,i={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(n,i);else throw new U(i.msg)}else this._status=o.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=o.kComplete,e.cancel();this._status=o.kBuffering;let n=t.value.buffer,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),this._pump(e)}}).catch(t=>{if(t.code===11&&_.msedge)return;this._status=o.kError;let n=0,i=null;if((t.code===19||t.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(n=V.EARLY_EOF,i={code:t.code,msg:"Fetch stream meet Early-EOF"}):(n=V.EXCEPTION,i={code:t.code,msg:t.message}),this._onError)this._onError(n,i);else throw new U(i.msg)})}}var v=S;class L extends we{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 g.w("MozChunkedLoader",e.message),!1}}constructor(e,t){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let n=e.url;this._config.reuseRedirectedURL&&e.redirectedURL!=null&&(n=e.redirectedURL);let i=this._seekHandler.getConfig(n,t);this._requestURL=i.url;let r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="moz-chunked-arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onloadend=this._onLoadEnd.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),typeof i.headers=="object"){let h=i.headers;for(let f in h)h.hasOwnProperty(f)&&r.setRequestHeader(f,h[f])}if(typeof this._config.headers=="object"){let h=this._config.headers;for(let f in h)h.hasOwnProperty(f)&&r.setRequestHeader(f,h[f])}this._status=o.kConnecting,r.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=o.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=o.kError,this._onError)this._onError(V.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new U("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);else this._status=o.kBuffering}}_onProgress(e){if(this._status===o.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===o.kError)return;this._status=o.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(e){this._status=o.kError;let t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=V.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=V.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new U(n.msg)}}var I=L;class F extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="ms-stream",e.responseType==="ms-stream"}catch(e){return Log.w("MSStreamLoader",e.message),!1}}constructor(e,t){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(e,t){this._internalOpen(e,t,!1)}_internalOpen(e,t,n){this._dataSource=e,n?this._currentRange=t:this._totalRange=t;let i=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?i=this._currentRedirectedURL:e.redirectedURL!=null&&(i=e.redirectedURL));let r=this._seekHandler.getConfig(i,t);this._currentRequestURL=r.url;let h=this._reader=new self.MSStreamReader;h.onprogress=this._msrOnProgress.bind(this),h.onload=this._msrOnLoad.bind(this),h.onerror=this._msrOnError.bind(this);let f=this._xhr=new XMLHttpRequest;if(f.open("GET",r.url,!0),f.responseType="ms-stream",f.onreadystatechange=this._xhrOnReadyStateChange.bind(this),f.onerror=this._xhrOnError.bind(this),e.withCredentials&&(f.withCredentials=!0),typeof r.headers=="object"){let ee=r.headers;for(let G in ee)ee.hasOwnProperty(G)&&f.setRequestHeader(G,ee[G])}if(typeof this._config.headers=="object"){let ee=this._config.headers;for(let G in ee)ee.hasOwnProperty(G)&&f.setRequestHeader(G,ee[G])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,f.send()}abort(){this._internalAbort(),this._status=LoaderStatus.kComplete}_internalAbort(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}_xhrOnReadyStateChange(e){let t=e.target;if(t.readyState===2)if(t.status>=200&&t.status<=299){if(this._status=LoaderStatus.kBuffering,t.responseURL!=null){let i=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&i!==this._currentRedirectedURL&&(this._currentRedirectedURL=i,this._onURLRedirect&&this._onURLRedirect(i))}let n=t.getResponseHeader("Content-Length");if(n!=null&&this._contentLength==null){let i=parseInt(n);i>0&&(this._contentLength=i,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+t.status+" "+t.statusText);else if(t.readyState===3&&t.status>=200&&t.status<=299){this._status=LoaderStatus.kBuffering;let n=t.response;this._reader.readAsArrayBuffer(n)}}_xhrOnError(e){this._status=LoaderStatus.kError;let t=LoaderErrors.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type};if(this._onError)this._onError(t,n);else throw new RuntimeException(n.msg)}_msrOnProgress(e){let n=e.target.result;if(n==null){this._doReconnectIfNeeded();return}let i=n.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=n.byteLength;let r=this._totalRange.from+this._receivedLength;this._receivedLength+=i.byteLength,this._onDataArrival&&this._onDataArrival(i,r,this._receivedLength),n.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${r+i.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let e={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,e,!0)}}_msrOnLoad(e){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(e){this._status=LoaderStatus.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength<this._contentLength?(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:"MSStream meet Early-Eof"}):(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new RuntimeException(n.msg)}}var $=null;class w extends we{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer",e.responseType==="arraybuffer"}catch(e){return g.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 de,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=o.kConnecting;let n=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(n=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!n?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let e=this._currentChunkSizeKB*1024,t=this._range.from+this._receivedLength,n=t+e;this._contentLength!=null&&n-this._range.from>=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(e,t){this._lastTimeLoaded=0;let n=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?n=this._currentRedirectedURL:e.redirectedURL!=null&&(n=e.redirectedURL));let i=this._seekHandler.getConfig(n,t);this._currentRequestURL=i.url;let r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onload=this._onLoad.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),typeof i.headers=="object"){let h=i.headers;for(let f in h)h.hasOwnProperty(f)&&r.setRequestHeader(f,h[f])}if(typeof this._config.headers=="object"){let h=this._config.headers;for(let f in h)h.hasOwnProperty(f)&&r.setRequestHeader(f,h[f])}r.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=o.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=o.kBuffering}else if(this._status=o.kError,this._onError)this._onError(V.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new U("RangeLoader: Http code invalid, "+t.status+" "+t.statusText)}}_onProgress(e){if(this._status===o.kError)return;if(this._contentLength===null){let n=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,n=!0;let i=e.total;this._internalAbort(),i!=null&i!==0&&(this._totalLength=i)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,n){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let t=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(t)}_normalizeSpeed(e){let t=this._chunkSizeKBList,n=t.length-1,i=0,r=0,h=n;if(e<t[0])return t[0];for(;r<=h;){if(i=r+Math.floor((h-r)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?r=i+1:h=i-1}}_onLoad(e){if(this._status===o.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 h=this._normalizeSpeed(t);this._currentSpeedNormalized!==h&&(this._currentSpeedNormalized=h,this._currentChunkSizeKB=h)}let n=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength;let r=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():r=!0,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),r&&(this._status=o.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(e){this._status=o.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=V.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=V.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new U(n.msg)}}var Q=w;class se extends we{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=o.kConnecting}catch(t){this._status=o.kError;let n={code:t.code,msg:t.message};if(this._onError)this._onError(V.EXCEPTION,n);else throw new U(n.msg)}}abort(){let e=this._ws;e&&(e.readyState===0||e.readyState===1)&&(this._requestAbort=!0,e.close()),this._ws=null,this._status=o.kComplete}_onWebSocketOpen(e){this._status=o.kBuffering}_onWebSocketClose(e){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=o.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=o.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(this._onError)this._onError(V.EXCEPTION,t);else throw new U(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=o.kError;let t={code:e.code,msg:e.message};if(this._onError)this._onError(V.EXCEPTION,t);else throw new U(t.msg)}}var ce=se;class Le{constructor(e){this._zeroStart=e||!1}getConfig(e,t){let n={};if(t.from!==0||t.to!==-1){let i;t.to!==-1?i=`bytes=${t.from.toString()}-${t.to.toString()}`:i=`bytes=${t.from.toString()}-`,n.Range=i}else this._zeroStart&&(n.Range="bytes=0-");return{url:e,headers:n}}removeURLParameters(e){return e}}var Se=Le;class ke{constructor(e,t){this._startName=e,this._endName=t}getConfig(e,t){let n=e;if(t.from!==0||t.to!==-1){let i=!0;n.indexOf("?")===-1&&(n+="?",i=!1),i&&(n+="&"),n+=`${this._startName}=${t.from.toString()}`,t.to!==-1&&(n+=`&${this._endName}=${t.to.toString()}`)}return{url:n,headers:{}}}removeURLParameters(e){let t=e.split("?")[0],n,i=e.indexOf("?");i!==-1&&(n=e.substring(i+1));let r="";if(n!=null&&n.length>0){let h=n.split("&");for(let f=0;f<h.length;f++){let ee=h[f].split("="),G=f>0;ee[0]!==this._startName&&ee[0]!==this._endName&&(G&&(r+="&"),r+=h[f])}}return r.length===0?t:t+"?"+r}}var Ue=ke;class D{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 de,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===Q?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if(e.seekType==="range")this._seekHandler=new Se(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new Ue(t,n)}else if(e.seekType==="custom"){if(typeof e.customSeekHandler!="function")throw new oe("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new oe(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=ce;else if(v.isSupported())this._loaderClass=v;else if(I.isSupported())this._loaderClass=I;else if(Q.isSupported())this._loaderClass=Q;else throw new U("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 oe("Url must be a non-empty string!");this._dataSource.url=e}_expandBuffer(e){let t=this._stashSize;for(;t+1024*1024*1<e;)t*=2;if(t+=1024*1024*1,t===this._bufferSize)return;let n=new ArrayBuffer(t);if(this._stashUsed>0){let i=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,t).set(i,0)}this._stashBuffer=n,this._bufferSize=t}_normalizeSpeed(e){let t=this._speedNormalizeList,n=t.length-1,i=0,r=0,h=n;if(e<t[0])return t[0];for(;r<=h;){if(i=r+Math.floor((h-r)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?r=i+1:h=i-1}}_adjustStashSize(e){let t=0;this._config.isLive||e<512?t=e:e>=512&&e<=1024?t=Math.floor(e*1.5):t=e*2,t>8192&&(t=8192);let n=t*1024+1024*1024*1;this._bufferSize<n&&this._expandBuffer(n),this._stashSize=t*1024}_dispatchChunks(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)}_onURLRedirect(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)}_onContentLengthKnown(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)}_onLoaderChunkArrival(e,t,n){if(!this._onDataArrival)throw new J("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(e.byteLength);let i=this._speedSampler.lastSecondKBps;if(i!==0){let r=this._normalizeSpeed(i);this._speedNormalized!==r&&(this._speedNormalized=r,this._adjustStashSize(r))}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 r=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let h=this._stashBuffer.slice(0,this._stashUsed),f=this._dispatchChunks(h,this._stashByteStart);if(f<h.byteLength){if(f>0){let ee=new Uint8Array(h,f);r.set(ee,0),this._stashUsed=ee.byteLength,this._stashByteStart+=f}}else this._stashUsed=0,this._stashByteStart+=f;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),r=new Uint8Array(this._stashBuffer,0,this._bufferSize)),r.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let h=this._dispatchChunks(e,t);if(h<e.byteLength){let f=e.byteLength-h;f>this._bufferSize&&(this._expandBuffer(f),r=new Uint8Array(this._stashBuffer,0,this._bufferSize)),r.set(new Uint8Array(e,h),0),this._stashUsed+=f,this._stashByteStart=t+h}}}else if(this._stashUsed===0){let r=this._dispatchChunks(e,t);if(r<e.byteLength){let h=e.byteLength-r;h>this._bufferSize&&this._expandBuffer(h),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,r),0),this._stashUsed+=h,this._stashByteStart=t+r}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let r=new Uint8Array(this._stashBuffer,0,this._bufferSize);r.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let h=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(h<this._stashUsed&&h>0){let f=new Uint8Array(this._stashBuffer,h);r.set(f,0)}this._stashUsed-=h,this._stashByteStart+=h}}_flushStashBuffer(e){if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),i=t.byteLength-n;if(n<t.byteLength)if(e)g.w(this.TAG,`${i} bytes unconsumed data remain when flush buffer, dropped`);else{if(n>0){let r=new Uint8Array(this._stashBuffer,0,this._bufferSize),h=new Uint8Array(t,n);r.set(h,0),this._stashUsed=h.byteLength,this._stashByteStart+=n}return 0}return this._stashUsed=0,this._stashByteStart=0,i}return 0}_onLoaderComplete(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(e,t){switch(g.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=V.UNRECOVERABLE_EARLY_EOF),e){case V.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let n=this._currentRange.to+1;n<this._totalLength&&(g.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1));return}e=V.UNRECOVERABLE_EARLY_EOF;break}case V.UNRECOVERABLE_EARLY_EOF:case V.CONNECTING_TIMEOUT:case V.HTTP_STATUS_CODE_INVALID:case V.EXCEPTION:break}if(this._onError)this._onError(e,t);else throw new U("IOException: "+t.msg)}}var Ve=D;const Ge={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({},Ge)}class fe{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let e=new Ve({},Z()),t=e.loaderType;return e.destroy(),t=="fetch-stream-loader"||t=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let e=new Ve({},Z()),t=e.loaderType;return e.destroy(),t}static supportNativeMediaPlayback(e){fe.videoElement==null&&(fe.videoElement=window.document.createElement("video"));let t=fe.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=fe.supportMSEH264Playback(),e.networkStreamIO=fe.supportNetworkStreamIO(),e.networkLoaderName=fe.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=fe.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=fe.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=fe.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var ie=fe,le={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};class ue{static get forceGlobalTag(){return g.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){g.FORCE_GLOBAL_TAG=e,ue._notifyChange()}static get globalTag(){return g.GLOBAL_TAG}static set globalTag(e){g.GLOBAL_TAG=e,ue._notifyChange()}static get enableAll(){return g.ENABLE_VERBOSE&&g.ENABLE_DEBUG&&g.ENABLE_INFO&&g.ENABLE_WARN&&g.ENABLE_ERROR}static set enableAll(e){g.ENABLE_VERBOSE=e,g.ENABLE_DEBUG=e,g.ENABLE_INFO=e,g.ENABLE_WARN=e,g.ENABLE_ERROR=e,ue._notifyChange()}static get enableDebug(){return g.ENABLE_DEBUG}static set enableDebug(e){g.ENABLE_DEBUG=e,ue._notifyChange()}static get enableVerbose(){return g.ENABLE_VERBOSE}static set enableVerbose(e){g.ENABLE_VERBOSE=e,ue._notifyChange()}static get enableInfo(){return g.ENABLE_INFO}static set enableInfo(e){g.ENABLE_INFO=e,ue._notifyChange()}static get enableWarn(){return g.ENABLE_WARN}static set enableWarn(e){g.ENABLE_WARN=e,ue._notifyChange()}static get enableError(){return g.ENABLE_ERROR}static set enableError(e){g.ENABLE_ERROR=e,ue._notifyChange()}static getConfig(){return{globalTag:g.GLOBAL_TAG,forceGlobalTag:g.FORCE_GLOBAL_TAG,enableVerbose:g.ENABLE_VERBOSE,enableDebug:g.ENABLE_DEBUG,enableInfo:g.ENABLE_INFO,enableWarn:g.ENABLE_WARN,enableError:g.ENABLE_ERROR,enableCallback:g.ENABLE_CALLBACK}}static applyConfig(e){g.GLOBAL_TAG=e.globalTag,g.FORCE_GLOBAL_TAG=e.forceGlobalTag,g.ENABLE_VERBOSE=e.enableVerbose,g.ENABLE_DEBUG=e.enableDebug,g.ENABLE_INFO=e.enableInfo,g.ENABLE_WARN=e.enableWarn,g.ENABLE_ERROR=e.enableError,g.ENABLE_CALLBACK=e.enableCallback}static _notifyChange(){let e=ue.emitter;if(e.listenerCount("change")>0){let t=ue.getConfig();e.emit("change",t)}}static registerListener(e){ue.emitter.addListener("change",e)}static removeListener(e){ue.emitter.removeListener("change",e)}static addLogListener(e){g.emitter.addListener("log",e),g.emitter.listenerCount("log")>0&&(g.ENABLE_CALLBACK=!0,ue._notifyChange())}static removeLogListener(e){g.emitter.removeListener("log",e),g.emitter.listenerCount("log")===0&&(g.ENABLE_CALLBACK=!1,ue._notifyChange())}}ue.emitter=new(z());var ve=ue;class je{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let e=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,t=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&e&&t}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(e){if(this.keyframesIndex==null)return null;let t=this.keyframesIndex,n=this._search(t.times,e);return{index:n,milliseconds:t.times[n],fileposition:t.filepositions[n]}}_search(e,t){let n=0,i=e.length-1,r=0,h=0,f=i;for(t<e[0]&&(n=0,h=f+1);h<=f;)if(r=h+Math.floor((f-h)/2),r===i||t>=e[r]&&t<e[r+1]){n=r;break}else e[r]<t?h=r+1:f=r-1;return n}}var Te=je;function Ze(H,e,t){let n=H;if(e+t<n.length){for(;t--;)if((n[++e]&192)!==128)return!1;return!0}else return!1}function We(H){let e=[],t=H,n=0,i=H.length;for(;n<i;){if(t[n]<128){e.push(String.fromCharCode(t[n])),++n;continue}else if(!(t[n]<192)){if(t[n]<224){if(Ze(t,n,1)){let r=(t[n]&31)<<6|t[n+1]&63;if(r>=128){e.push(String.fromCharCode(r&65535)),n+=2;continue}}}else if(t[n]<240){if(Ze(t,n,2)){let r=(t[n]&15)<<12|(t[n+1]&63)<<6|t[n+2]&63;if(r>=2048&&(r&63488)!==55296){e.push(String.fromCharCode(r&65535)),n+=3;continue}}}else if(t[n]<248&&Ze(t,n,3)){let r=(t[n]&7)<<18|(t[n+1]&63)<<12|(t[n+2]&63)<<6|t[n+3]&63;if(r>65536&&r<1114112){r-=65536,e.push(String.fromCharCode(r>>>10|55296)),e.push(String.fromCharCode(r&1023|56320)),n+=4;continue}}}e.push("\uFFFD"),++n}return e.join("")}var it=We;let Me=function(){let H=new ArrayBuffer(2);return new DataView(H).setInt16(0,256,!0),new Int16Array(H)[0]===256}();class He{static parseScriptData(e,t,n){let i={};try{let r=He.parseValue(e,t,n),h=He.parseValue(e,t+r.size,n-r.size);i[r.data]=h.data}catch(r){g.e("AMF",r.toString())}return i}static parseObject(e,t,n){if(n<3)throw new J("Data not enough when parse ScriptDataObject");let i=He.parseString(e,t,n),r=He.parseValue(e,t+i.size,n-i.size),h=r.objectEnd;return{data:{name:i.data,value:r.data},size:i.size+r.size,objectEnd:h}}static parseVariable(e,t,n){return He.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new J("Data not enough when parse String");let r=new DataView(e,t,n).getUint16(0,!Me),h;return r>0?h=it(new Uint8Array(e,t+2,r)):h="",{data:h,size:2+r}}static parseLongString(e,t,n){if(n<4)throw new J("Data not enough when parse LongString");let r=new DataView(e,t,n).getUint32(0,!Me),h;return r>0?h=it(new Uint8Array(e,t+4,r)):h="",{data:h,size:4+r}}static parseDate(e,t,n){if(n<10)throw new J("Data size invalid when parse Date");let i=new DataView(e,t,n),r=i.getFloat64(0,!Me),h=i.getInt16(8,!Me);return r+=h*60*1e3,{data:new Date(r),size:10}}static parseValue(e,t,n){if(n<1)throw new J("Data not enough when parse Value");let i=new DataView(e,t,n),r=1,h=i.getUint8(0),f,ee=!1;try{switch(h){case 0:f=i.getFloat64(1,!Me),r+=8;break;case 1:{f=!!i.getUint8(1),r+=1;break}case 2:{let G=He.parseString(e,t+1,n-1);f=G.data,r+=G.size;break}case 3:{f={};let G=0;for((i.getUint32(n-4,!Me)&16777215)===9&&(G=3);r<n-4;){let ge=He.parseObject(e,t+r,n-r-G);if(ge.objectEnd)break;f[ge.data.name]=ge.data.value,r+=ge.size}r<=n-3&&(i.getUint32(r-1,!Me)&16777215)===9&&(r+=3);break}case 8:{f={},r+=4;let G=0;for((i.getUint32(n-4,!Me)&16777215)===9&&(G=3);r<n-8;){let ge=He.parseVariable(e,t+r,n-r-G);if(ge.objectEnd)break;f[ge.data.name]=ge.data.value,r+=ge.size}r<=n-3&&(i.getUint32(r-1,!Me)&16777215)===9&&(r+=3);break}case 9:f=void 0,r=1,ee=!0;break;case 10:{f=[];let G=i.getUint32(1,!Me);r+=4;for(let ge=0;ge<G;ge++){let $e=He.parseValue(e,t+r,n-r);f.push($e.data),r+=$e.size}break}case 11:{let G=He.parseDate(e,t+1,n-1);f=G.data,r+=G.size;break}case 12:{let G=He.parseString(e,t+1,n-1);f=G.data,r+=G.size;break}default:r=n,g.w("AMF","Unsupported AMF value type "+h)}}catch(G){g.e("AMF",G.toString())}return{data:f,size:r,objectEnd:ee}}}var Ye=He;class Je{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 J("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 oe("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let h=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,h}let t=this._current_word_bits_left?this._current_word:0;t=t>>>32-this._current_word_bits_left;let n=e-this._current_word_bits_left;this._fillCurrentWord();let i=Math.min(n,this._current_word_bits_left),r=this._current_word>>>32-i;return this._current_word<<=i,this._current_word_bits_left-=i,t=t<<i|r,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 et=Je;class R{static _ebsp2rbsp(e){let t=e,n=t.byteLength,i=new Uint8Array(n),r=0;for(let h=0;h<n;h++)h>=2&&t[h]===3&&t[h-1]===0&&t[h-2]===0||(i[r]=t[h],r++);return new Uint8Array(i.buffer,0,r)}static parseSPS(e){let t=R._ebsp2rbsp(e),n=new et(t);n.readByte();let i=n.readByte();n.readByte();let r=n.readByte();n.readUEG();let h=R.getProfileString(i),f=R.getLevelString(r),ee=1,G=420,ge=[0,420,422,444],$e=8;if((i===100||i===110||i===122||i===244||i===44||i===83||i===86||i===118||i===128||i===138||i===144)&&(ee=n.readUEG(),ee===3&&n.readBits(1),ee<=3&&(G=ge[ee]),$e=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let Ke=ee!==3?8:12;for(let Pe=0;Pe<Ke;Pe++)n.readBool()&&(Pe<6?R._skipScalingList(n,16):R._skipScalingList(n,64))}n.readUEG();let ze=n.readUEG();if(ze===0)n.readUEG();else if(ze===1){n.readBits(1),n.readSEG(),n.readSEG();let Ke=n.readUEG();for(let Pe=0;Pe<Ke;Pe++)n.readSEG()}let ae=n.readUEG();n.readBits(1);let Ne=n.readUEG(),me=n.readUEG(),X=n.readBits(1);X===0&&n.readBits(1),n.readBits(1);let ne=0,Be=0,De=0,Xe=0;n.readBool()&&(ne=n.readUEG(),Be=n.readUEG(),De=n.readUEG(),Xe=n.readUEG());let vt=1,Ee=1,nt=0,A=!0,x=0,k=0;if(n.readBool()){if(n.readBool()){let Ke=n.readByte(),Pe=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],st=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Ke>0&&Ke<16?(vt=Pe[Ke-1],Ee=st[Ke-1]):Ke===255&&(vt=n.readByte()<<8|n.readByte(),Ee=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 Ke=n.readBits(32),Pe=n.readBits(32);A=n.readBool(),x=Pe,k=Ke*2,nt=x/k}}let O=1;(vt!==1||Ee!==1)&&(O=vt/Ee);let M=0,T=0;if(ee===0)M=1,T=2-X;else{let Ke=ee===3?1:2,Pe=ee===1?2:1;M=Ke,T=Pe*(2-X)}let re=(Ne+1)*16,Ie=(2-X)*((me+1)*16);re-=(ne+Be)*M,Ie-=(De+Xe)*T;let xe=Math.ceil(re*O);return n.destroy(),n=null,{profile_string:h,level_string:f,bit_depth:$e,ref_frames:ae,chroma_format:G,chroma_format_string:R.getChromaFormatString(G),frame_rate:{fixed:A,fps:nt,fps_den:k,fps_num:x},sar_ratio:{width:vt,height:Ee},codec_size:{width:re,height:Ie},present_size:{width:xe,height:Ie}}}static _skipScalingList(e,t){let n=8,i=8,r=0;for(let h=0;h<t;h++)i!==0&&(r=e.readSEG(),i=(n+r+256)%256),n=i===0?n:i}static getProfileString(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(e){return(e/10).toFixed(1)}static getChromaFormatString(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var E=R,c={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function m(H){return H>>>8&255|(H&255)<<8}function N(H){return(H&4278190080)>>>24|(H&16711680)>>>8|(H&65280)<<8|(H&255)<<24}function d(H,e){return H[e]<<24|H[e+1]<<16|H[e+2]<<8|H[e+3]}class p{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 Te,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let n=new ArrayBuffer(2);return new DataView(n).setInt16(0,256,!0),new Int16Array(n)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(e){let t=new Uint8Array(e),n={match:!1};if(t[0]!==70||t[1]!==76||t[2]!==86||t[3]!==1)return n;let i=(t[4]&4)>>>2!==0,r=(t[4]&1)!==0,h=d(t,5);return h<9?n:{match:!0,consumed:h,dataOffset:h,hasAudioTrack:i,hasVideoTrack:r}}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 Te}_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 J("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let n=0,i=this._littleEndian;if(t===0)if(e.byteLength>13)n=p.probe(e).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,t+n!==this._dataOffset&&g.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(e,n).getUint32(0,!i)!==0&&g.w(this.TAG,"PrevTagSize0 !== 0 !!!"),n+=4);n<e.byteLength;){this._dispatch=!0;let r=new DataView(e,n);if(n+11+4>e.byteLength)break;let h=r.getUint8(0),f=r.getUint32(0,!i)&16777215;if(n+11+f+4>e.byteLength)break;if(h!==8&&h!==9&&h!==18){g.w(this.TAG,`Unsupported tag type ${h}, skipped`),n+=11+f+4;continue}let ee=r.getUint8(4),G=r.getUint8(5),ge=r.getUint8(6),$e=r.getUint8(7),ze=ge|G<<8|ee<<16|$e<<24;(r.getUint32(7,!i)&16777215)!==0&&g.w(this.TAG,"Meet tag which has StreamID != 0!");let Ne=n+11;switch(h){case 8:this._parseAudioData(e,Ne,f,ze);break;case 9:this._parseVideoData(e,Ne,f,ze,t+n);break;case 18:this._parseScriptData(e,Ne,f);break}let me=r.getUint32(11+f,!i);me!==11+f&&g.w(this.TAG,`Invalid PrevTagSize ${me}`),n+=11+f+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),n}_parseScriptData(e,t,n){let i=Ye.parseScriptData(e,t,n);if(i.hasOwnProperty("onMetaData")){if(i.onMetaData==null||typeof i.onMetaData!="object"){g.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&g.w(this.TAG,"Found another onMetaData tag!"),this._metadata=i;let r=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},r)),typeof r.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=r.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof r.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=r.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof r.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=r.audiodatarate),typeof r.videodatarate=="number"&&(this._mediaInfo.videoDataRate=r.videodatarate),typeof r.width=="number"&&(this._mediaInfo.width=r.width),typeof r.height=="number"&&(this._mediaInfo.height=r.height),typeof r.duration=="number"){if(!this._durationOverrided){let h=Math.floor(r.duration*this._timescale);this._duration=h,this._mediaInfo.duration=h}}else this._mediaInfo.duration=0;if(typeof r.framerate=="number"){let h=Math.floor(r.framerate*1e3);if(h>0){let f=h/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=f,this._referenceFrameRate.fps_num=h,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=f}}if(typeof r.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let h=r.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(h),r.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=r,g.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(i).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},i))}_parseKeyframesIndex(e){let t=[],n=[];for(let i=1;i<e.times.length;i++){let r=this._timestampBase+Math.floor(e.times[i]*1e3);t.push(r),n.push(e.filepositions[i])}return{times:t,filepositions:n}}_parseAudioData(e,t,n,i){if(n<=1){g.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let r=this._littleEndian,f=new DataView(e,t,n).getUint8(0),ee=f>>>4;if(ee!==2&&ee!==10){this._onError(c.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+ee);return}let G=0,ge=(f&12)>>>2;if(ge>=0&&ge<=4)G=this._flvSoundRateTable[ge];else{this._onError(c.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+ge);return}let $e=(f&2)>>>1,ze=f&1,ae=this._audioMetadata,Ne=this._audioTrack;if(ae||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),ae=this._audioMetadata={},ae.type="audio",ae.id=Ne.id,ae.timescale=this._timescale,ae.duration=this._duration,ae.audioSampleRate=G,ae.channelCount=ze===0?1:2),ee===10){let me=this._parseAACAudioData(e,t+1,n-1);if(me==null)return;if(me.packetType===0){ae.config&&g.w(this.TAG,"Found another AudioSpecificConfig!");let X=me.data;ae.audioSampleRate=X.samplingRate,ae.channelCount=X.channelCount,ae.codec=X.codec,ae.originalCodec=X.originalCodec,ae.config=X.config,ae.refSampleDuration=1024/ae.audioSampleRate*ae.timescale,g.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",ae);let ne=this._mediaInfo;ne.audioCodec=ae.originalCodec,ne.audioSampleRate=ae.audioSampleRate,ne.audioChannelCount=ae.channelCount,ne.hasVideo?ne.videoCodec!=null&&(ne.mimeType='video/x-flv; codecs="'+ne.videoCodec+","+ne.audioCodec+'"'):ne.mimeType='video/x-flv; codecs="'+ne.audioCodec+'"',ne.isComplete()&&this._onMediaInfo(ne)}else if(me.packetType===1){let X=this._timestampBase+i,ne={unit:me.data,length:me.data.byteLength,dts:X,pts:X};Ne.samples.push(ne),Ne.length+=me.data.length}else g.e(this.TAG,`Flv: Unsupported AAC data type ${me.packetType}`)}else if(ee===2){if(!ae.codec){let Be=this._parseMP3AudioData(e,t+1,n-1,!0);if(Be==null)return;ae.audioSampleRate=Be.samplingRate,ae.channelCount=Be.channelCount,ae.codec=Be.codec,ae.originalCodec=Be.originalCodec,ae.refSampleDuration=1152/ae.audioSampleRate*ae.timescale,g.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",ae);let De=this._mediaInfo;De.audioCodec=ae.codec,De.audioSampleRate=ae.audioSampleRate,De.audioChannelCount=ae.channelCount,De.audioDataRate=Be.bitRate,De.hasVideo?De.videoCodec!=null&&(De.mimeType='video/x-flv; codecs="'+De.videoCodec+","+De.audioCodec+'"'):De.mimeType='video/x-flv; codecs="'+De.audioCodec+'"',De.isComplete()&&this._onMediaInfo(De)}let me=this._parseMP3AudioData(e,t+1,n-1,!1);if(me==null)return;let X=this._timestampBase+i,ne={unit:me,length:me.byteLength,dts:X,pts:X};Ne.samples.push(ne),Ne.length+=me.length}}_parseAACAudioData(e,t,n){if(n<=1){g.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let i={},r=new Uint8Array(e,t,n);return i.packetType=r[0],r[0]===0?i.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):i.data=r.subarray(1),i}_parseAACAudioSpecificConfig(e,t,n){let i=new Uint8Array(e,t,n),r=null,h=0,f=0,ee=null,G=0,ge=null;if(h=f=i[0]>>>3,G=(i[0]&7)<<1|i[1]>>>7,G<0||G>=this._mpegSamplingRates.length){this._onError(c.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let $e=this._mpegSamplingRates[G],ze=(i[1]&120)>>>3;if(ze<0||ze>=8){this._onError(c.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}h===5&&(ge=(i[1]&7)<<1|i[2]>>>7,ee=(i[2]&124)>>>2);let ae=self.navigator.userAgent.toLowerCase();return ae.indexOf("firefox")!==-1?G>=6?(h=5,r=new Array(4),ge=G-3):(h=2,r=new Array(2),ge=G):ae.indexOf("android")!==-1?(h=2,r=new Array(2),ge=G):(h=5,ge=G,r=new Array(4),G>=6?ge=G-3:ze===1&&(h=2,r=new Array(2),ge=G)),r[0]=h<<3,r[0]|=(G&15)>>>1,r[1]=(G&15)<<7,r[1]|=(ze&15)<<3,h===5&&(r[1]|=(ge&15)>>>1,r[2]=(ge&1)<<7,r[2]|=8,r[3]=0),{config:r,samplingRate:$e,channelCount:ze,codec:"mp4a.40."+h,originalCodec:"mp4a.40."+f}}_parseMP3AudioData(e,t,n,i){if(n<4){g.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let r=this._littleEndian,h=new Uint8Array(e,t,n),f=null;if(i){if(h[0]!==255)return;let ee=h[1]>>>3&3,G=(h[1]&6)>>1,ge=(h[2]&240)>>>4,$e=(h[2]&12)>>>2,ae=(h[3]>>>6&3)!==3?2:1,Ne=0,me=0,X=34,ne="mp3";switch(ee){case 0:Ne=this._mpegAudioV25SampleRateTable[$e];break;case 2:Ne=this._mpegAudioV20SampleRateTable[$e];break;case 3:Ne=this._mpegAudioV10SampleRateTable[$e];break}switch(G){case 1:X=34,ge<this._mpegAudioL3BitRateTable.length&&(me=this._mpegAudioL3BitRateTable[ge]);break;case 2:X=33,ge<this._mpegAudioL2BitRateTable.length&&(me=this._mpegAudioL2BitRateTable[ge]);break;case 3:X=32,ge<this._mpegAudioL1BitRateTable.length&&(me=this._mpegAudioL1BitRateTable[ge]);break}f={bitRate:me,samplingRate:Ne,channelCount:ae,codec:ne,originalCodec:ne}}else f=h;return f}_parseVideoData(e,t,n,i,r){if(n<=1){g.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let h=new Uint8Array(e,t,n)[0],f=(h&240)>>>4,ee=h&15;if(ee!==7){this._onError(c.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${ee}`);return}this._parseAVCVideoPacket(e,t+1,n-1,i,r,f)}_parseAVCVideoPacket(e,t,n,i,r,h){if(n<4){g.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let f=this._littleEndian,ee=new DataView(e,t,n),G=ee.getUint8(0),$e=(ee.getUint32(0,!f)&16777215)<<8>>8;if(G===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(G===1)this._parseAVCVideoData(e,t+4,n-4,i,r,h,$e);else if(G!==2){this._onError(c.FORMAT_ERROR,`Flv: Invalid video packet type ${G}`);return}}_parseAVCDecoderConfigurationRecord(e,t,n){if(n<7){g.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let i=this._videoMetadata,r=this._videoTrack,h=this._littleEndian,f=new DataView(e,t,n);i?typeof i.avcc!="undefined"&&g.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),i=this._videoMetadata={},i.type="video",i.id=r.id,i.timescale=this._timescale,i.duration=this._duration);let ee=f.getUint8(0),G=f.getUint8(1),ge=f.getUint8(2),$e=f.getUint8(3);if(ee!==1||G===0){this._onError(c.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(f.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(c.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let ze=f.getUint8(5)&31;if(ze===0){this._onError(c.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else ze>1&&g.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${ze}`);let ae=6;for(let me=0;me<ze;me++){let X=f.getUint16(ae,!h);if(ae+=2,X===0)continue;let ne=new Uint8Array(e,t+ae,X);ae+=X;let Be=E.parseSPS(ne);if(me!==0)continue;i.codecWidth=Be.codec_size.width,i.codecHeight=Be.codec_size.height,i.presentWidth=Be.present_size.width,i.presentHeight=Be.present_size.height,i.profile=Be.profile_string,i.level=Be.level_string,i.bitDepth=Be.bit_depth,i.chromaFormat=Be.chroma_format,i.sarRatio=Be.sar_ratio,i.frameRate=Be.frame_rate,(Be.frame_rate.fixed===!1||Be.frame_rate.fps_num===0||Be.frame_rate.fps_den===0)&&(i.frameRate=this._referenceFrameRate);let De=i.frameRate.fps_den,Xe=i.frameRate.fps_num;i.refSampleDuration=i.timescale*(De/Xe);let $t=ne.subarray(1,4),vt="avc1.";for(let nt=0;nt<3;nt++){let A=$t[nt].toString(16);A.length<2&&(A="0"+A),vt+=A}i.codec=vt;let Ee=this._mediaInfo;Ee.width=i.codecWidth,Ee.height=i.codecHeight,Ee.fps=i.frameRate.fps,Ee.profile=i.profile,Ee.level=i.level,Ee.refFrames=Be.ref_frames,Ee.chromaFormat=Be.chroma_format_string,Ee.sarNum=i.sarRatio.width,Ee.sarDen=i.sarRatio.height,Ee.videoCodec=vt,Ee.hasAudio?Ee.audioCodec!=null&&(Ee.mimeType='video/x-flv; codecs="'+Ee.videoCodec+","+Ee.audioCodec+'"'):Ee.mimeType='video/x-flv; codecs="'+Ee.videoCodec+'"',Ee.isComplete()&&this._onMediaInfo(Ee)}let Ne=f.getUint8(ae);if(Ne===0){this._onError(c.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Ne>1&&g.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${Ne}`);ae++;for(let me=0;me<Ne;me++){let X=f.getUint16(ae,!h);ae+=2,X!==0&&(ae+=X)}i.avcc=new Uint8Array(n),i.avcc.set(new Uint8Array(e,t,n),0),g.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",i)}_parseAVCVideoData(e,t,n,i,r,h,f){let ee=this._littleEndian,G=new DataView(e,t,n),ge=[],$e=0,ze=0;const ae=this._naluLengthSize;let Ne=this._timestampBase+i,me=h===1;for(;ze<n;){if(ze+4>=n){g.w(this.TAG,`Malformed Nalu near timestamp ${Ne}, offset = ${ze}, dataSize = ${n}`);break}let X=G.getUint32(ze,!ee);if(ae===3&&(X>>>=8),X>n-ae){g.w(this.TAG,`Malformed Nalus near timestamp ${Ne}, NaluSize > DataSize!`);return}let ne=G.getUint8(ze+ae)&31;ne===5&&(me=!0);let Be=new Uint8Array(e,t+ze,ae+X),De={type:ne,data:Be};ge.push(De),$e+=Be.byteLength,ze+=ae+X}if(ge.length){let X=this._videoTrack,ne={units:ge,length:$e,isKeyframe:me,dts:Ne,cts:f,pts:Ne+f};me&&(ne.fileposition=r),X.samples.push(ne),X.length+=$e}}}var b=p;class u{static init(){u.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 u.types)u.types.hasOwnProperty(t)&&(u.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=u.constants={};e.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),e.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),e.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSC=e.STCO=e.STTS,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),e.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),e.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(e){let t=8,n=null,i=Array.prototype.slice.call(arguments,1),r=i.length;for(let f=0;f<r;f++)t+=i[f].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 h=8;for(let f=0;f<r;f++)n.set(i[f],h),h+=i[f].byteLength;return n}static generateInitSegment(e){let t=u.box(u.types.ftyp,u.constants.FTYP),n=u.moov(e),i=new Uint8Array(t.byteLength+n.byteLength);return i.set(t,0),i.set(n,t.byteLength),i}static moov(e){let t=u.mvhd(e.timescale,e.duration),n=u.trak(e),i=u.mvex(e);return u.box(u.types.moov,t,n,i)}static mvhd(e,t){return u.box(u.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 u.box(u.types.trak,u.tkhd(e),u.mdia(e))}static tkhd(e){let t=e.id,n=e.duration,i=e.presentWidth,r=e.presentHeight;return u.box(u.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>>8&255,i&255,0,0,r>>>8&255,r&255,0,0]))}static mdia(e){return u.box(u.types.mdia,u.mdhd(e),u.hdlr(e),u.minf(e))}static mdhd(e){let t=e.timescale,n=e.duration;return u.box(u.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=u.constants.HDLR_AUDIO:t=u.constants.HDLR_VIDEO,u.box(u.types.hdlr,t)}static minf(e){let t=null;return e.type==="audio"?t=u.box(u.types.smhd,u.constants.SMHD):t=u.box(u.types.vmhd,u.constants.VMHD),u.box(u.types.minf,t,u.dinf(),u.stbl(e))}static dinf(){return u.box(u.types.dinf,u.box(u.types.dref,u.constants.DREF))}static stbl(e){return u.box(u.types.stbl,u.stsd(e),u.box(u.types.stts,u.constants.STTS),u.box(u.types.stsc,u.constants.STSC),u.box(u.types.stsz,u.constants.STSZ),u.box(u.types.stco,u.constants.STCO))}static stsd(e){return e.type==="audio"?e.codec==="mp3"?u.box(u.types.stsd,u.constants.STSD_PREFIX,u.mp3(e)):u.box(u.types.stsd,u.constants.STSD_PREFIX,u.mp4a(e)):u.box(u.types.stsd,u.constants.STSD_PREFIX,u.avc1(e))}static mp3(e){let t=e.channelCount,n=e.audioSampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,n>>>8&255,n&255,0,0]);return u.box(u.types[".mp3"],i)}static mp4a(e){let t=e.channelCount,n=e.audioSampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,n>>>8&255,n&255,0,0]);return u.box(u.types.mp4a,i,u.esds(e))}static esds(e){let t=e.config||[],n=t.length,i=new Uint8Array([0,0,0,0,3,23+n,0,1,0,4,15+n,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([n]).concat(t).concat([6,1,2]));return u.box(u.types.esds,i)}static avc1(e){let t=e.avcc,n=e.codecWidth,i=e.codecHeight,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n>>>8&255,n&255,i>>>8&255,i&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return u.box(u.types.avc1,r,u.box(u.types.avcC,t))}static mvex(e){return u.box(u.types.mvex,u.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 u.box(u.types.trex,n)}static moof(e,t){return u.box(u.types.moof,u.mfhd(e.sequenceNumber),u.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 u.box(u.types.mfhd,t)}static traf(e,t){let n=e.id,i=u.box(u.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255])),r=u.box(u.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255])),h=u.sdtp(e),f=u.trun(e,h.byteLength+16+16+8+16+8+8);return u.box(u.types.traf,i,r,f,h)}static sdtp(e){let t=e.samples||[],n=t.length,i=new Uint8Array(4+n);for(let r=0;r<n;r++){let h=t[r].flags;i[r+4]=h.isLeading<<6|h.dependsOn<<4|h.isDependedOn<<2|h.hasRedundancy}return u.box(u.types.sdtp,i)}static trun(e,t){let n=e.samples||[],i=n.length,r=12+16*i,h=new Uint8Array(r);t+=8+r,h.set([0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0);for(let f=0;f<i;f++){let ee=n[f].duration,G=n[f].size,ge=n[f].flags,$e=n[f].cts;h.set([ee>>>24&255,ee>>>16&255,ee>>>8&255,ee&255,G>>>24&255,G>>>16&255,G>>>8&255,G&255,ge.isLeading<<2|ge.dependsOn,ge.isDependedOn<<6|ge.hasRedundancy<<4|ge.isNonSync,0,0,$e>>>24&255,$e>>>16&255,$e>>>8&255,$e&255],12+16*f)}return u.box(u.types.trun,h)}static mdat(e){return u.box(u.types.mdat,e)}}u.init();var B=u;class W{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 pe=W;class be{constructor(e,t,n,i,r){this.dts=e,this.pts=t,this.duration=n,this.originalDts=i,this.isSyncPoint=r,this.fileposition=null}}class Fe{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 _e{constructor(){this._list=[]}clear(){this._list=[]}appendArray(e){let t=this._list;e.length!==0&&(t.length>0&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))}getLastSyncPointBeforeDts(e){if(this._list.length==0)return null;let t=this._list,n=0,i=t.length-1,r=0,h=0,f=i;for(e<t[0].dts&&(n=0,h=f+1);h<=f;)if(r=h+Math.floor((f-h)/2),r===i||e>=t[r].dts&&e<t[r+1].dts){n=r;break}else t[r].dts<e?h=r+1:f=r-1;return this._list[n]}}class Oe{constructor(e){this._type=e,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return this._list.length===0}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(e){let t=this._list;if(t.length===0)return-2;let n=t.length-1,i=0,r=0,h=n,f=0;if(e<t[0].originalBeginDts)return f=-1,f;for(;r<=h;)if(i=r+Math.floor((h-r)/2),i===n||e>t[i].lastSample.originalDts&&e<t[i+1].originalBeginDts){f=i;break}else t[i].originalBeginDts<e?r=i+1:h=i-1;return f}_searchNearestSegmentAfter(e){return this._searchNearestSegmentBefore(e)+1}append(e){let t=this._list,n=e,i=this._lastAppendLocation,r=0;i!==-1&&i<t.length&&n.originalBeginDts>=t[i].lastSample.originalDts&&(i===t.length-1||i<t.length-1&&n.originalBeginDts<t[i+1].originalBeginDts)?r=i+1:t.length>0&&(r=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=r,this._list.splice(r,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 Ce{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 Oe("audio"),this._videoSegmentInfoList=new Oe("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(_.chrome&&(_.version.major<50||_.version.major===50&&_.version.build<2661)),this._fillSilentAfterSeek=_.msedge||_.msie,this._mp3UseMpegAudio=!_.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 J("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}_onTrackMetadataReceived(e,t){let n=null,i="mp4",r=t.codec;if(e==="audio")this._audioMeta=t,t.codec==="mp3"&&this._mp3UseMpegAudio?(i="mpeg",r="",n=new Uint8Array):n=B.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=B.generateInitSegment(t);else return;if(!this._onInitSegment)throw new J("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:r,container:`${e}/${i}`,mediaDuration:t.duration})}_calculateDtsBase(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let e=this._videoStashedLastSample,t=this._audioStashedLastSample,n={type:"video",id:1,sequenceNumber:0,samples:[],length:0};e!=null&&(n.samples.push(e),n.length=e.length);let i={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};t!=null&&(i.samples.push(t),i.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(i,!0)}_remuxAudio(e,t){if(this._audioMeta==null)return;let n=e,i=n.samples,r,h=-1,f=-1,ee=-1,G=this._audioMeta.refSampleDuration,ge=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,$e=this._dtsBaseInited&&this._audioNextDts===void 0,ze=!1;if(!i||i.length===0||i.length===1&&!t)return;let ae=0,Ne=null,me=0;ge?(ae=0,me=n.length):(ae=8,me=8+n.length);let X=null;if(i.length>1&&(X=i.pop(),me-=X.length),this._audioStashedLastSample!=null){let Ee=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(Ee),me+=Ee.length}X!=null&&(this._audioStashedLastSample=X);let ne=i[0].dts-this._dtsBase;if(this._audioNextDts)r=ne-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())r=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(ze=!0);else{let Ee=this._audioSegmentInfoList.getLastSampleBefore(ne);if(Ee!=null){let nt=ne-(Ee.originalDts+Ee.duration);nt<=3&&(nt=0);let A=Ee.dts+Ee.duration+nt;r=ne-A}else r=0}if(ze){let Ee=ne-r,nt=this._videoSegmentInfoList.getLastSegmentBefore(ne);if(nt!=null&&nt.beginDts<Ee){let A=pe.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(A){let x=nt.beginDts,k=Ee-nt.beginDts;g.v(this.TAG,`InsertPrefixSilentAudio: dts: ${x}, duration: ${k}`),i.unshift({unit:A,dts:x,pts:x}),me+=A.byteLength}}else ze=!1}let Be=[];for(let Ee=0;Ee<i.length;Ee++){let nt=i[Ee],A=nt.unit,x=nt.dts-this._dtsBase,k=x-r;h===-1&&(h=k);let j=0;Ee!==i.length-1?j=i[Ee+1].dts-this._dtsBase-r-k:X!=null?j=X.dts-this._dtsBase-r-k:Be.length>=1?j=Be[Be.length-1].duration:j=Math.floor(G);let O=!1,M=null;if(j>G*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!_.safari){O=!0;let T=Math.abs(j-G),re=Math.ceil(T/G),Ie=k+G;g.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
dts: ${k+j} ms, expected: ${k+Math.round(G)} ms, delta: ${Math.round(T)} ms, generate: ${re} frames`);let xe=pe.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);xe==null&&(g.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),xe=A),M=[];for(let Pe=0;Pe<re;Pe++){let st=Math.round(Ie);if(M.length>0){let at=M[M.length-1];at.duration=st-at.dts}let ct={dts:st,pts:st,cts:0,unit:xe,size:xe.byteLength,duration:0,originalDts:x,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};M.push(ct),me+=ct.size,Ie+=G}let Ke=M[M.length-1];Ke.duration=k+j-Ke.dts,j=Math.round(G)}Be.push({dts:k,pts:k,cts:0,unit:nt.unit,size:nt.unit.byteLength,duration:j,originalDts:x,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),O&&Be.push.apply(Be,M)}ge?Ne=new Uint8Array(me):(Ne=new Uint8Array(me),Ne[0]=me>>>24&255,Ne[1]=me>>>16&255,Ne[2]=me>>>8&255,Ne[3]=me&255,Ne.set(B.types.mdat,4));for(let Ee=0;Ee<Be.length;Ee++){let nt=Be[Ee].unit;Ne.set(nt,ae),ae+=nt.byteLength}let De=Be[Be.length-1];f=De.dts+De.duration,this._audioNextDts=f;let Xe=new Fe;Xe.beginDts=h,Xe.endDts=f,Xe.beginPts=h,Xe.endPts=f,Xe.originalBeginDts=Be[0].originalDts,Xe.originalEndDts=De.originalDts+De.duration,Xe.firstSample=new be(Be[0].dts,Be[0].pts,Be[0].duration,Be[0].originalDts,!1),Xe.lastSample=new be(De.dts,De.pts,De.duration,De.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Xe),n.samples=Be,n.sequenceNumber++;let $t=null;ge?$t=new Uint8Array:$t=B.moof(n,h),n.samples=[],n.length=0;let vt={type:"audio",data:this._mergeBoxes($t,Ne).buffer,sampleCount:Be.length,info:Xe};ge&&$e&&(vt.timestampOffset=h),this._onMediaSegment("audio",vt)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,i=n.samples,r,h=-1,f=-1,ee=-1,G=-1;if(!i||i.length===0||i.length===1&&!t)return;let ge=8,$e=null,ze=8+e.length,ae=null;if(i.length>1&&(ae=i.pop(),ze-=ae.length),this._videoStashedLastSample!=null){let De=this._videoStashedLastSample;this._videoStashedLastSample=null,i.unshift(De),ze+=De.length}ae!=null&&(this._videoStashedLastSample=ae);let Ne=i[0].dts-this._dtsBase;if(this._videoNextDts)r=Ne-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())r=0;else{let De=this._videoSegmentInfoList.getLastSampleBefore(Ne);if(De!=null){let Xe=Ne-(De.originalDts+De.duration);Xe<=3&&(Xe=0);let $t=De.dts+De.duration+Xe;r=Ne-$t}else r=0}let me=new Fe,X=[];for(let De=0;De<i.length;De++){let Xe=i[De],$t=Xe.dts-this._dtsBase,vt=Xe.isKeyframe,Ee=$t-r,nt=Xe.cts,A=Ee+nt;h===-1&&(h=Ee,ee=A);let x=0;if(De!==i.length-1?x=i[De+1].dts-this._dtsBase-r-Ee:ae!=null?x=ae.dts-this._dtsBase-r-Ee:X.length>=1?x=X[X.length-1].duration:x=Math.floor(this._videoMeta.refSampleDuration),vt){let k=new be(Ee,A,x,Xe.dts,!0);k.fileposition=Xe.fileposition,me.appendSyncPoint(k)}X.push({dts:Ee,pts:A,cts:nt,units:Xe.units,size:Xe.length,isKeyframe:vt,duration:x,originalDts:$t,flags:{isLeading:0,dependsOn:vt?2:1,isDependedOn:vt?1:0,hasRedundancy:0,isNonSync:vt?0:1}})}$e=new Uint8Array(ze),$e[0]=ze>>>24&255,$e[1]=ze>>>16&255,$e[2]=ze>>>8&255,$e[3]=ze&255,$e.set(B.types.mdat,4);for(let De=0;De<X.length;De++){let Xe=X[De].units;for(;Xe.length;){let vt=Xe.shift().data;$e.set(vt,ge),ge+=vt.byteLength}}let ne=X[X.length-1];if(f=ne.dts+ne.duration,G=ne.pts+ne.duration,this._videoNextDts=f,me.beginDts=h,me.endDts=f,me.beginPts=ee,me.endPts=G,me.originalBeginDts=X[0].originalDts,me.originalEndDts=ne.originalDts+ne.duration,me.firstSample=new be(X[0].dts,X[0].pts,X[0].duration,X[0].originalDts,X[0].isKeyframe),me.lastSample=new be(ne.dts,ne.pts,ne.duration,ne.originalDts,ne.isKeyframe),this._isLive||this._videoSegmentInfoList.append(me),n.samples=X,n.sequenceNumber++,this._forceFirstIDR){let De=X[0].flags;De.dependsOn=2,De.isNonSync=0}let Be=B.moof(n,h);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Be,$e).buffer,sampleCount:X.length,info:me})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var ut=Ce,K={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 bt{constructor(e,t){this.TAG="TransmuxingController",this._emitter=new(z()),this._config=t,e.segments||(e.segments=[{duration:e.duration,filesize:e.filesize,url:e.url}]),typeof e.cors!="boolean"&&(e.cors=!0),typeof e.withCredentials!="boolean"&&(e.withCredentials=!1),this._mediaDataSource=e,this._currentSegmentIndex=0;let n=0;this._mediaDataSource.segments.forEach(i=>{i.timestampBase=n,n+=i.duration,i.cors=e.cors,i.withCredentials=e.withCredentials,t.referrerPolicy&&(i.referrerPolicy=t.referrerPolicy)}),!isNaN(n)&&this._mediaDataSource.duration!==n&&(this._mediaDataSource.duration=n),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(e,t){this._currentSegmentIndex=e;let n=this._mediaDataSource.segments[e],i=this._ioctl=new Ve(n,this._config,e);i.onError=this._onIOException.bind(this),i.onSeeked=this._onIOSeeked.bind(this),i.onComplete=this._onIOComplete.bind(this),i.onRedirect=this._onIORedirect.bind(this),i.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):i.onDataArrival=this._onInitChunkArrival.bind(this),i.open(t)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(e){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){let n=this._mediaInfo.segments[t];if(n==null)this._pendingSeekTime=e;else{let i=n.getNearestKeyframe(e);this._remuxer.seek(i.milliseconds),this._ioctl.seek(i.fileposition),this._pendingResolveSeekPoint=i.milliseconds}}else{let n=this._mediaInfo.segments[t];if(n==null)this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t);else{let i=n.getNearestKeyframe(e);this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,i.fileposition),this._pendingResolveSeekPoint=i.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(e){let t=this._mediaDataSource.segments,n=t.length-1;for(let i=0;i<t.length;i++)if(e<t[i].timestampBase){n=i-1;break}return n}_onInitChunkArrival(e,t){let n=null,i=0;if(t>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,i=this._demuxer.parseChunks(e,t);else if((n=b.probe(e)).match){this._demuxer=new b(n,this._config),this._remuxer||(this._remuxer=new ut(this._config));let r=this._mediaDataSource;r.duration!=null&&!isNaN(r.duration)&&(this._demuxer.overridedDuration=r.duration),typeof r.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=r.hasAudio),typeof r.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=r.hasVideo),this._demuxer.timestampBase=r.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),i=this._demuxer.parseChunks(e,t)}else n=null,g.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(K.DEMUX_ERROR,c.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),i=0;return i}_onMediaInfo(e){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Te.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,Te.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(K.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(K.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(K.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(e){let t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}_onIORecoveredEarlyEof(){this._emitter.emit(K.RECOVERED_EARLY_EOF)}_onIOException(e,t){g.e(this.TAG,`IOException: type = ${e}, code = ${t.code}, msg = ${t.msg}`),this._emitter.emit(K.IO_ERROR,e,t),this._disableStatisticsReporter()}_onDemuxException(e,t){g.e(this.TAG,`DemuxException: type = ${e}, info = ${t}`),this._emitter.emit(K.DEMUX_ERROR,e,t)}_onRemuxerInitSegmentArrival(e,t){this._emitter.emit(K.INIT_SEGMENT,e,t)}_onRemuxerMediaSegmentArrival(e,t){if(this._pendingSeekTime==null&&(this._emitter.emit(K.MEDIA_SEGMENT,e,t),this._pendingResolveSeekPoint!=null&&e==="video")){let n=t.info.syncPoints,i=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,_.safari&&n.length>0&&n[0].originalDts===i&&(i=n[0].pts),this._emitter.emit(K.RECOMMEND_SEEKPOINT,i)}}_enableStatisticsReporter(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(e){let t=this._mediaInfo.segments[e],n=Object.assign({},t);n.duration=this._mediaInfo.duration,n.segmentCount=this._mediaInfo.segmentCount,delete n.segments,delete n.keyframesIndex,this._emitter.emit(K.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(K.STATISTICS_INFO,e)}}var mt=bt,qe=function(H){let e="TransmuxingWorker",t=null,n=me.bind(this);C.install(),H.addEventListener("message",function(X){switch(X.data.cmd){case"init":t=new mt(X.data.param[0],X.data.param[1]),t.on(K.IO_ERROR,ze.bind(this)),t.on(K.DEMUX_ERROR,ae.bind(this)),t.on(K.INIT_SEGMENT,i.bind(this)),t.on(K.MEDIA_SEGMENT,r.bind(this)),t.on(K.LOADING_COMPLETE,h.bind(this)),t.on(K.RECOVERED_EARLY_EOF,f.bind(this)),t.on(K.MEDIA_INFO,ee.bind(this)),t.on(K.METADATA_ARRIVED,G.bind(this)),t.on(K.SCRIPTDATA_ARRIVED,ge.bind(this)),t.on(K.STATISTICS_INFO,$e.bind(this)),t.on(K.RECOMMEND_SEEKPOINT,Ne.bind(this));break;case"destroy":t&&(t.destroy(),t=null),H.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(X.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let ne=X.data.param;ve.applyConfig(ne),ne.enableCallback===!0?ve.addLogListener(n):ve.removeLogListener(n);break}}});function i(X,ne){let Be={msg:K.INIT_SEGMENT,data:{type:X,data:ne}};H.postMessage(Be,[ne.data])}function r(X,ne){let Be={msg:K.MEDIA_SEGMENT,data:{type:X,data:ne}};H.postMessage(Be,[ne.data])}function h(){let X={msg:K.LOADING_COMPLETE};H.postMessage(X)}function f(){let X={msg:K.RECOVERED_EARLY_EOF};H.postMessage(X)}function ee(X){let ne={msg:K.MEDIA_INFO,data:X};H.postMessage(ne)}function G(X){let ne={msg:K.METADATA_ARRIVED,data:X};H.postMessage(ne)}function ge(X){let ne={msg:K.SCRIPTDATA_ARRIVED,data:X};H.postMessage(ne)}function $e(X){let ne={msg:K.STATISTICS_INFO,data:X};H.postMessage(ne)}function ze(X,ne){H.postMessage({msg:K.IO_ERROR,data:{type:X,info:ne}})}function ae(X,ne){H.postMessage({msg:K.DEMUX_ERROR,data:{type:X,info:ne}})}function Ne(X){H.postMessage({msg:K.RECOMMEND_SEEKPOINT,data:X})}function me(X,ne){H.postMessage({msg:"logcat_callback",data:{type:X,logcat:ne}})}};class wt{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(z()),t.enableWorker&&typeof Worker!="undefined")try{let n=l(82059);this._worker=n(qe),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)},ve.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:ve.getConfig()})}catch(n){g.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new mt(e,t)}else this._controller=new mt(e,t);if(this._controller){let n=this._controller;n.on(K.IO_ERROR,this._onIOError.bind(this)),n.on(K.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(K.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(K.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(K.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(K.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(K.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(K.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(K.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(K.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(K.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),ve.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(K.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(K.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(K.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(K.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(K.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(K.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(K.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(K.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(K.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(K.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(K.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 K.INIT_SEGMENT:case K.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case K.LOADING_COMPLETE:case K.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case K.MEDIA_INFO:Object.setPrototypeOf(n,Te.prototype),this._emitter.emit(t.msg,n);break;case K.METADATA_ARRIVED:case K.SCRIPTDATA_ARRIVED:case K.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case K.IO_ERROR:case K.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case K.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":g.emitter.emit("log",n.type,n.logcat);break;default:break}}}var Tt=wt,Et={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Zt{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new(z()),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 _e}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 J("MediaSource has been attached to an HTMLMediaElement!");let t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let e=this._mediaSource;for(let t in this._sourceBuffers){let n=this._pendingSegments[t];n.splice(0,n.length),this._pendingSegments[t]=null,this._pendingRemoveRanges[t]=null,this._lastInitSegments[t]=null;let i=this._sourceBuffers[t];if(i){if(e.readyState!=="closed"){try{e.removeSourceBuffer(i)}catch(r){g.e(this.TAG,r.message)}i.removeEventListener("error",this.e.onSourceBufferError),i.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if(e.readyState==="open")try{e.endOfStream()}catch(t){g.e(this.TAG,t.message)}e.removeEventListener("sourceopen",this.e.onSourceOpen),e.removeEventListener("sourceended",this.e.onSourceEnded),e.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(e,t){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(e),this._pendingSegments[e.type].push(e);return}let n=e,i=`${n.container}`;n.codec&&n.codec.length>0&&(i+=`;codecs=${n.codec}`);let r=!1;if(g.v(this.TAG,"Received Initialization Segment, mimeType: "+i),this._lastInitSegments[n.type]=n,i!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])g.v(this.TAG,`Notice: ${n.type} mimeType changed, origin: ${this._mimeTypes[n.type]}, target: ${i}`);else{r=!0;try{let h=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);h.addEventListener("error",this.e.onSourceBufferError),h.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(h){g.e(this.TAG,h.message),this._emitter.emit(Et.ERROR,{code:h.code,msg:h.message});return}}this._mimeTypes[n.type]=i}t||this._pendingSegments[n.type].push(n),r||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),_.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(r){g.e(this.TAG,r.message)}this._idrList.clear();let i=this._pendingSegments[t];if(i.splice(0,i.length),this._mediaSource.readyState!=="closed"){for(let r=0;r<n.buffered.length;r++){let h=n.buffered.start(r),f=n.buffered.end(r);this._pendingRemoveRanges[t].push({start:h,end:f})}if(n.updating||this._doRemoveRanges(),_.safari){let r=this._lastInitSegments[t];r&&(this._pendingSegments[t].push(r),n.updating||this._doAppendSegments())}}}}endOfStream(){let e=this._mediaSource,t=this._sourceBuffers;if(!e||e.readyState!=="open"){e&&e.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream())}getNearestKeyframe(e){return this._idrList.getLastSyncPointBeforeDts(e)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let i=n.buffered;if(i.length>=1&&e-i.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let i=n.buffered,r=!1;for(let h=0;h<i.length;h++){let f=i.start(h),ee=i.end(h);if(f<=e&&e<ee+3){if(e-f>=this._config.autoCleanupMaxBackwardDuration){r=!0;let G=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:f,end:G})}}else ee<e&&(r=!0,this._pendingRemoveRanges[t].push({start:f,end:ee}))}r&&!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)&&(g.v(this.TAG,`Update MediaSource duration from ${t} to ${n}`),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let e in this._pendingRemoveRanges){if(!this._sourceBuffers[e]||this._sourceBuffers[e].updating)continue;let t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];for(;n.length&&!t.updating;){let i=n.shift();t.remove(i.start,i.end)}}}_doAppendSegments(){let e=this._pendingSegments;for(let t in e)if(!(!this._sourceBuffers[t]||this._sourceBuffers[t].updating)&&e[t].length>0){let n=e[t].shift();if(n.timestampOffset){let i=this._sourceBuffers[t].timestampOffset,r=n.timestampOffset/1e3;Math.abs(i-r)>.1&&(g.v(this.TAG,`Update MPEG audio timestampOffset from ${i} to ${r}`),this._sourceBuffers[t].timestampOffset=r),delete n.timestampOffset}if(!n.data||n.data.byteLength===0)continue;try{this._sourceBuffers[t].appendBuffer(n.data),this._isBufferFull=!1,t==="video"&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(i){this._pendingSegments[t].unshift(n),i.code===22?(this._isBufferFull||this._emitter.emit(Et.BUFFER_FULL),this._isBufferFull=!0):(g.e(this.TAG,i.message),this._emitter.emit(Et.ERROR,{code:i.code,msg:i.message}))}}}_onSourceOpen(){if(g.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(Et.SOURCE_OPEN)}_onSourceEnded(){g.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){g.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(Et.UPDATE_END)}_onSourceBufferError(e){g.e(this.TAG,`SourceBuffer Error: ${e}`)}}var Kt=Zt;const Re={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Qe={NETWORK_EXCEPTION:V.EXCEPTION,NETWORK_STATUS_CODE_INVALID:V.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:V.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:V.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:c.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:c.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:c.CODEC_UNSUPPORTED};class Rt{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(z()),this._config=Z(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()!=="flv")throw new oe("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=_.chrome&&(_.version.major<50||_.version.major===50&&_.version.build<2661);this._alwaysSeekKeyframe=!!(n||_.msedge||_.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===le.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(le.MEDIA_INFO,this.mediaInfo)}):e===le.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(le.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new Kt(this._config),this._msectl.on(Et.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Et.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Et.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Et.ERROR,t=>{this._emitter.emit(le.ERROR,Re.MEDIA_ERROR,Qe.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 J("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new J("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 Tt(this._mediaDataSource,this._config),this._transmuxer.on(K.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(K.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&&(g.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(K.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(le.LOADING_COMPLETE)}),this._transmuxer.on(K.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(le.RECOVERED_EARLY_EOF)}),this._transmuxer.on(K.IO_ERROR,(e,t)=>{this._emitter.emit(le.ERROR,Re.NETWORK_ERROR,e,t)}),this._transmuxer.on(K.DEMUX_ERROR,(e,t)=>{this._emitter.emit(le.ERROR,Re.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(K.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(le.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(K.METADATA_ARRIVED,e=>{this._emitter.emit(le.METADATA_ARRIVED,e)}),this._transmuxer.on(K.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(le.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(K.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(le.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(K.RECOMMEND_SEEKPOINT,e=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e/1e3)}),this._transmuxer.open()}}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){let r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,i=0;for(let r=0;r<e.length;r++){let h=e.start(r),f=e.end(r);if(h<=t&&t<f){n=h,i=f;break}}i>=t+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(g.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){g.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1;for(let i=0;i<t.length;i++){let r=t.start(i),h=t.end(i);if(e>=r&&e<h){e>=h-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(g.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(e){let t=this._mediaElement.buffered;for(let n=0;n<t.length;n++){let i=t.start(n),r=t.end(n);if(e>=i&&e<r)return!0}return!1}_internalSeek(e){let t=this._isTimepointBuffered(e),n=!1,i=0;if(e<1&&this._mediaElement.buffered.length>0){let r=this._mediaElement.buffered.start(0);(r<1&&e<r||_.safari)&&(n=!0,i=_.safari?.1:r)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=i;else if(t){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=e;else{let r=this._msectl.getNearestKeyframe(Math.floor(e*1e3));this._requestSetTime=!0,r!=null?this._mediaElement.currentTime=r.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)&&(g.w(this.TAG,`Playback seems stuck at ${t.currentTime}, seek to ${n.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=n.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(e){let t=this._mediaElement.currentTime,n=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(t<1&&n.length>0){let i=n.start(0);if(i<1&&t<i||_.safari){this._requestSetTime=!0,this._mediaElement.currentTime=_.safari?.1:i;return}}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){let i=this._msectl.getNearestKeyframe(Math.floor(t*1e3));i!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=i.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(e){this._checkAndResumeStuckPlayback(!0)}_onvProgress(e){this._checkAndResumeStuckPlayback()}}var _t=Rt;class Nt{constructor(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(z()),this._config=Z(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()==="flv")throw new oe("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new oe(`NativePlayer(${e.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=e,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===le.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(le.MEDIA_INFO,this.mediaInfo)}):e===le.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(le.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new J("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e}get mediaInfo(){let t={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t}get statisticsInfo(){let e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){let r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(le.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(le.STATISTICS_INFO,this.statisticsInfo)}}var Mt=Nt;C.install();function kt(H,e){let t=H;if(t==null||typeof t!="object")throw new oe("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new oe("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new _t(t,e);default:return new Mt(t,e)}}function Lt(){return ie.supportMSEH264Playback()}function tt(){return ie.getFeatureList()}let rt={};rt.createPlayer=kt,rt.isSupported=Lt,rt.getFeatureList=tt,rt.BaseLoader=we,rt.LoaderStatus=o,rt.LoaderErrors=V,rt.Events=le,rt.ErrorTypes=Re,rt.ErrorDetails=Qe,rt.FlvPlayer=_t,rt.NativePlayer=Mt,rt.LoggingControl=ve,Object.defineProperty(rt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var dn=rt},91857:function(dt,Ae,l){"use strict";var a=l(59301),C=l(38819),P=l(92310),z=l.n(P),y=l(31561),g=l(70425),he=l(18929),de=l(2738),U=l(79676),J=l(53487),oe=l(92343),Y=l(36355),o=l(20834),V=l(40875),we=l(88088),q=l(47211);const te=null,_=I=>{const{menu:F,arrow:$,prefixCls:w,children:Q,trigger:se,disabled:ce,dropdownRender:Le,getPopupContainer:Se,overlayClassName:ke,rootClassName:Ue,open:D,onOpenChange:Ve,visible:Ge,onVisibleChange:Z,mouseEnterDelay:fe=.15,mouseLeaveDelay:ie=.1,autoAdjustOverflow:ye=!0,placement:le="",overlay:ue,transitionName:ve}=I,{getPopupContainer:je,getPrefixCls:Te,direction:Ze}=a.useContext(Y.E_),We=a.useMemo(()=>{const B=Te();return ve!==void 0?ve:le.includes("top")?`${B}-slide-down`:`${B}-slide-up`},[Te,le,ve]),it=a.useMemo(()=>le?le.includes("Center")?le.slice(0,le.indexOf("Center")):le:Ze==="rtl"?"bottomRight":"bottomLeft",[le,Ze]),Me=Te("dropdown",w),[He,Ye]=(0,q.Z)(Me),[,Je]=(0,we.Z)(),et=a.Children.only(Q),R=(0,oe.Tm)(et,{className:z()(`${Me}-trigger`,{[`${Me}-rtl`]:Ze==="rtl"},et.props.className),disabled:ce}),E=ce?[]:se;let s;E&&E.includes("contextMenu")&&(s=!0);const[c,m]=(0,he.Z)(!1,{value:D!=null?D:Ge}),N=(0,g.useEvent)(B=>{Ve==null||Ve(B),Z==null||Z(B),m(B)}),d=z()(ke,Ue,Ye,{[`${Me}-rtl`]:Ze==="rtl"}),p=(0,U.Z)({arrowPointAtCenter:typeof $=="object"&&$.pointAtCenter,autoAdjustOverflow:ye,offset:Je.marginXXS,arrowWidth:$?Je.sizePopupArrow:0,borderRadius:Je.borderRadius}),b=a.useCallback(()=>{m(!1)},[]),u=()=>{let B;return F!=null&&F.items?B=a.createElement(o.default,Object.assign({},F)):typeof ue=="function"?B=ue():B=ue,Le&&(B=Le(B)),B=a.Children.only(typeof B=="string"?a.createElement("span",null,B):B),a.createElement(V.J,{prefixCls:`${Me}-menu`,expandIcon:a.createElement("span",{className:`${Me}-menu-submenu-arrow`},a.createElement(C.Z,{className:`${Me}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:b,validator:W=>{let{mode:pe}=W}},B)};return He(a.createElement(y.Z,Object.assign({alignPoint:s},(0,de.Z)(I,["rootClassName"]),{mouseEnterDelay:fe,mouseLeaveDelay:ie,visible:c,builtinPlacements:p,arrow:!!$,overlayClassName:d,prefixCls:Me,getPopupContainer:Se||je,transitionName:We,trigger:E,overlay:u,placement:it,onVisibleChange:N}),R))};function S(I){return Object.assign(Object.assign({},I),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const v=(0,J.Z)(_,"dropdown",I=>I,S),L=I=>a.createElement(v,Object.assign({},I),a.createElement("span",null));_._InternalPanelDoNotUseOrYouWillBeFired=L,Ae.Z=_},38854:function(dt,Ae,l){"use strict";l.d(Ae,{Z:function(){return we}});var a=l(91857),C=l(92310),P=l.n(C),z=l(59301),y=l(18785),g=l(3113),he=l(36355),de=l(81327),U=l(33234),J=l(47211),oe=function(q,te){var _={};for(var S in q)Object.prototype.hasOwnProperty.call(q,S)&&te.indexOf(S)<0&&(_[S]=q[S]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,S=Object.getOwnPropertySymbols(q);v<S.length;v++)te.indexOf(S[v])<0&&Object.prototype.propertyIsEnumerable.call(q,S[v])&&(_[S[v]]=q[S[v]]);return _};const Y=q=>{const{getPopupContainer:te,getPrefixCls:_,direction:S}=z.useContext(he.E_),{prefixCls:v,type:L="default",danger:I,disabled:F,loading:$,onClick:w,htmlType:Q,children:se,className:ce,menu:Le,arrow:Se,autoFocus:ke,overlay:Ue,trigger:D,align:Ve,open:Ge,onOpenChange:Z,placement:fe,getPopupContainer:ie,href:ye,icon:le=z.createElement(y.Z,null),title:ue,buttonsRender:ve=u=>u,mouseEnterDelay:je,mouseLeaveDelay:Te,overlayClassName:Ze,overlayStyle:We,destroyPopupOnHide:it,dropdownRender:Me}=q,He=oe(q,["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"]),Ye=_("dropdown",v),Je=`${Ye}-button`,[et,R]=(0,J.Z)(Ye),E={menu:Le,arrow:Se,autoFocus:ke,align:Ve,disabled:F,trigger:F?[]:D,onOpenChange:Z,getPopupContainer:ie||te,mouseEnterDelay:je,mouseLeaveDelay:Te,overlayClassName:Ze,overlayStyle:We,destroyPopupOnHide:it,dropdownRender:Me},{compactSize:s,compactItemClassnames:c}=(0,U.ri)(Ye,S),m=P()(Je,c,ce,R);"overlay"in q&&(E.overlay=Ue),"open"in q&&(E.open=Ge),"placement"in q?E.placement=fe:E.placement=S==="rtl"?"bottomLeft":"bottomRight";const N=z.createElement(g.ZP,{type:L,danger:I,disabled:F,loading:$,onClick:w,htmlType:Q,href:ye,title:ue},se),d=z.createElement(g.ZP,{type:L,danger:I,icon:le}),[p,b]=ve([N,d]);return et(z.createElement(de.Z.Compact,Object.assign({className:m,size:s,block:!0},He),p,z.createElement(a.Z,Object.assign({},E),b)))};Y.__ANT_BUTTON=!0;var o=Y;const V=a.Z;V.Button=o;var we=V},47211:function(dt,Ae,l){"use strict";l.d(Ae,{Z:function(){return oe}});var a=l(17313),C=l(13826),P=l(92899),z=l(29878),y=l(19447),g=l(83116),he=l(37613),U=Y=>{const{componentCls:o,menuCls:V,colorError:we,colorTextLightSolid:q}=Y,te=`${V}-item`;return{[`${o}, ${o}-menu-submenu`]:{[`${V} ${te}`]:{[`&${te}-danger:not(${te}-disabled)`]:{color:we,"&:hover":{color:q,backgroundColor:we}}}}}};const J=Y=>{const{componentCls:o,menuCls:V,zIndexPopup:we,dropdownArrowDistance:q,sizePopupArrow:te,antCls:_,iconCls:S,motionDurationMid:v,dropdownPaddingVertical:L,fontSize:I,dropdownEdgeChildPadding:F,colorTextDisabled:$,fontSizeIcon:w,controlPaddingHorizontal:Q,colorBgElevated:se}=Y;return[{[o]:Object.assign(Object.assign({},(0,a.Wf)(Y)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:we,display:"block","&::before":{position:"absolute",insetBlock:-q+te/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${_}-btn`]:{[`& > ${S}-down, & > ${_}-btn-icon > ${S}-down`]:{fontSize:w}},[`${o}-wrap`]:{position:"relative",[`${_}-btn > ${S}-down`]:{fontSize:w},[`${S}-down::before`]:{transition:`transform ${v}`}},[`${o}-wrap-open`]:{[`${S}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${_}-slide-down-enter${_}-slide-down-enter-active${o}-placement-bottomLeft,
&${_}-slide-down-appear${_}-slide-down-appear-active${o}-placement-bottomLeft,
&${_}-slide-down-enter${_}-slide-down-enter-active${o}-placement-bottom,
&${_}-slide-down-appear${_}-slide-down-appear-active${o}-placement-bottom,
&${_}-slide-down-enter${_}-slide-down-enter-active${o}-placement-bottomRight,
&${_}-slide-down-appear${_}-slide-down-appear-active${o}-placement-bottomRight`]:{animationName:C.fJ},[`&${_}-slide-up-enter${_}-slide-up-enter-active${o}-placement-topLeft,
&${_}-slide-up-appear${_}-slide-up-appear-active${o}-placement-topLeft,
&${_}-slide-up-enter${_}-slide-up-enter-active${o}-placement-top,
&${_}-slide-up-appear${_}-slide-up-appear-active${o}-placement-top,
&${_}-slide-up-enter${_}-slide-up-enter-active${o}-placement-topRight,
&${_}-slide-up-appear${_}-slide-up-appear-active${o}-placement-topRight`]:{animationName:C.Qt},[`&${_}-slide-down-leave${_}-slide-down-leave-active${o}-placement-bottomLeft,
&${_}-slide-down-leave${_}-slide-down-leave-active${o}-placement-bottom,
&${_}-slide-down-leave${_}-slide-down-leave-active${o}-placement-bottomRight`]:{animationName:C.Uw},[`&${_}-slide-up-leave${_}-slide-up-leave-active${o}-placement-topLeft,
&${_}-slide-up-leave${_}-slide-up-leave-active${o}-placement-top,
&${_}-slide-up-leave${_}-slide-up-leave-active${o}-placement-topRight`]:{animationName:C.ly}})},(0,y.ZP)(Y,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${o} ${V}`]:{position:"relative",margin:0},[`${V}-submenu-popup`]:{position:"absolute",zIndex:we,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${o}, ${o}-menu-submenu`]:{[V]:Object.assign(Object.assign({padding:F,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:Y.borderRadiusLG,outline:"none",boxShadow:Y.boxShadowSecondary},(0,a.Qy)(Y)),{[`${V}-item-group-title`]:{padding:`${L}px ${Q}px`,color:Y.colorTextDescription,transition:`all ${v}`},[`${V}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${V}-item-icon`]:{minWidth:I,marginInlineEnd:Y.marginXS,fontSize:Y.fontSizeSM},[`${V}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${v}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${V}-item, ${V}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${L}px ${Q}px`,color:Y.colorText,fontWeight:"normal",fontSize:I,lineHeight:Y.lineHeight,cursor:"pointer",transition:`all ${v}`,borderRadius:Y.borderRadiusSM,"&:hover, &-active":{backgroundColor:Y.controlItemBgHover}},(0,a.Qy)(Y)),{"&-selected":{color:Y.colorPrimary,backgroundColor:Y.controlItemBgActive,"&:hover, &-active":{backgroundColor:Y.controlItemBgActiveHover}},"&-disabled":{color:$,cursor:"not-allowed","&:hover":{color:$,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Y.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Y.colorSplit},[`${o}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Y.paddingXS,[`${o}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Y.colorTextDescription,fontSize:w,fontStyle:"normal"}}}),[`${V}-item-group-list`]:{margin:`0 ${Y.marginXS}px`,padding:0,listStyle:"none"},[`${V}-submenu-title`]:{paddingInlineEnd:Q+Y.fontSizeSM},[`${V}-submenu-vertical`]:{position:"relative"},[`${V}-submenu${V}-submenu-disabled ${o}-menu-submenu-title`]:{[`&, ${o}-menu-submenu-arrow-icon`]:{color:$,backgroundColor:se,cursor:"not-allowed"}},[`${V}-submenu-selected ${o}-menu-submenu-title`]:{color:Y.colorPrimary}})}},[(0,C.oN)(Y,"slide-up"),(0,C.oN)(Y,"slide-down"),(0,P.Fm)(Y,"move-up"),(0,P.Fm)(Y,"move-down"),(0,z._y)(Y,"zoom-big")]]};var oe=(0,g.Z)("Dropdown",(Y,o)=>{let{rootPrefixCls:V}=o;const{marginXXS:we,sizePopupArrow:q,controlHeight:te,fontSize:_,lineHeight:S,paddingXXS:v,componentCls:L,borderRadiusLG:I}=Y,F=(te-_*S)/2,{dropdownArrowOffset:$}=(0,y.fS)({contentRadius:I}),w=(0,he.TS)(Y,{menuCls:`${L}-menu`,rootPrefixCls:V,dropdownArrowDistance:q/2+we,dropdownArrowOffset:$,dropdownPaddingVertical:F,dropdownEdgeChildPadding:v});return[J(w),U(w)]},Y=>({zIndexPopup:Y.zIndexPopupBase+50}))},45818:function(dt,Ae,l){"use strict";l.d(Ae,{D:function(){return v},Z:function(){return F}});var a=l(54476),C=l(59301),P={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"},z=P,y=l(7657),g=function(w,Q){return C.createElement(y.Z,(0,a.Z)({},w,{ref:Q,icon:z}))},he=C.forwardRef(g),de=he,U=l(33853),J=l(38819),oe=l(92310),Y=l.n(oe),o=l(2738),we=$=>!isNaN(parseFloat($))&&isFinite($),q=l(36355),te=l(84966),_=function($,w){var Q={};for(var se in $)Object.prototype.hasOwnProperty.call($,se)&&w.indexOf(se)<0&&(Q[se]=$[se]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,se=Object.getOwnPropertySymbols($);ce<se.length;ce++)w.indexOf(se[ce])<0&&Object.prototype.propertyIsEnumerable.call($,se[ce])&&(Q[se[ce]]=$[se[ce]]);return Q};const S={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},v=C.createContext({}),L=(()=>{let $=0;return function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return $+=1,`${w}${$}`}})();var F=C.forwardRef(($,w)=>{const{prefixCls:Q,className:se,trigger:ce,children:Le,defaultCollapsed:Se=!1,theme:ke="dark",style:Ue={},collapsible:D=!1,reverseArrow:Ve=!1,width:Ge=200,collapsedWidth:Z=80,zeroWidthTriggerStyle:fe,breakpoint:ie,onCollapse:ye,onBreakpoint:le}=$,ue=_($,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ve}=(0,C.useContext)(te.Gs),[je,Te]=(0,C.useState)("collapsed"in $?$.collapsed:Se),[Ze,We]=(0,C.useState)(!1);(0,C.useEffect)(()=>{"collapsed"in $&&Te($.collapsed)},[$.collapsed]);const it=(R,E)=>{"collapsed"in $||Te(R),ye==null||ye(R,E)},Me=(0,C.useRef)();Me.current=R=>{We(R.matches),le==null||le(R.matches),je!==R.matches&&it(R.matches,"responsive")},(0,C.useEffect)(()=>{function R(s){return Me.current(s)}let E;if(typeof window!="undefined"){const{matchMedia:s}=window;if(s&&ie&&ie in S){E=s(`(max-width: ${S[ie]})`);try{E.addEventListener("change",R)}catch(c){E.addListener(R)}R(E)}}return()=>{try{E==null||E.removeEventListener("change",R)}catch(s){E==null||E.removeListener(R)}}},[ie]),(0,C.useEffect)(()=>{const R=L("ant-sider-");return ve.addSider(R),()=>ve.removeSider(R)},[]);const He=()=>{it(!je,"clickTrigger")},{getPrefixCls:Ye}=(0,C.useContext)(q.E_),Je=()=>{const R=Ye("layout-sider",Q),E=(0,o.Z)(ue,["collapsed"]),s=je?Z:Ge,c=we(s)?`${s}px`:String(s),m=parseFloat(String(Z||0))===0?C.createElement("span",{onClick:He,className:Y()(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${Ve?"right":"left"}`),style:fe},ce||C.createElement(de,null)):null,p={expanded:Ve?C.createElement(J.Z,null):C.createElement(U.Z,null),collapsed:Ve?C.createElement(U.Z,null):C.createElement(J.Z,null)}[je?"collapsed":"expanded"],b=ce!==null?m||C.createElement("div",{className:`${R}-trigger`,onClick:He,style:{width:c}},ce||p):null,u=Object.assign(Object.assign({},Ue),{flex:`0 0 ${c}`,maxWidth:c,minWidth:c,width:c}),B=Y()(R,`${R}-${ke}`,{[`${R}-collapsed`]:!!je,[`${R}-has-trigger`]:D&&ce!==null&&!m,[`${R}-below`]:!!Ze,[`${R}-zero-width`]:parseFloat(c)===0},se);return C.createElement("aside",Object.assign({className:B},E,{style:u,ref:w}),C.createElement("div",{className:`${R}-children`},Le),D||Ze&&m?b:null)},et=C.useMemo(()=>({siderCollapsed:je}),[je]);return C.createElement(v.Provider,{value:et},Je())})},84966:function(dt,Ae,l){"use strict";l.d(Ae,{VY:function(){return v},$_:function(){return S},h4:function(){return _},Gs:function(){return o},ZP:function(){return L}});var a=l(94480),C=l(92310),P=l.n(C),z=l(2738),y=l(59301),g=l(36355),he=l(83116),U=I=>{const{componentCls:F,bodyBg:$,lightSiderBg:w,lightTriggerBg:Q,lightTriggerColor:se}=I;return{[`${F}-sider-light`]:{background:w,[`${F}-sider-trigger`]:{color:se,background:Q},[`${F}-sider-zero-width-trigger`]:{color:se,background:Q,border:`1px solid ${$}`,borderInlineStart:0}}}};const J=I=>{const{antCls:F,componentCls:$,colorText:w,triggerColor:Q,footerBg:se,triggerBg:ce,headerHeight:Le,headerPadding:Se,headerColor:ke,footerPadding:Ue,triggerHeight:D,zeroTriggerHeight:Ve,zeroTriggerWidth:Ge,motionDurationMid:Z,motionDurationSlow:fe,fontSize:ie,borderRadius:ye,bodyBg:le,headerBg:ue,siderBg:ve}=I;return{[$]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:le,"&, *":{boxSizing:"border-box"},[`&${$}-has-sider`]:{flexDirection:"row",[`> ${$}, > ${$}-content`]:{width:0}},[`${$}-header, &${$}-footer`]:{flex:"0 0 auto"},[`${$}-sider`]:{position:"relative",minWidth:0,background:ve,transition:`all ${Z}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${F}-menu${F}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:D},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:D,color:Q,lineHeight:`${D}px`,textAlign:"center",background:ce,cursor:"pointer",transition:`all ${Z}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Le,insetInlineEnd:-Ge,zIndex:1,width:Ge,height:Ve,color:Q,fontSize:I.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ve,borderStartStartRadius:0,borderStartEndRadius:ye,borderEndEndRadius:ye,borderEndStartRadius:0,cursor:"pointer",transition:`background ${fe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${fe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ge,borderStartStartRadius:ye,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ye}}}}},U(I)),{"&-rtl":{direction:"rtl"}}),[`${$}-header`]:{height:Le,padding:Se,color:ke,lineHeight:`${Le}px`,background:ue,[`${F}-menu`]:{lineHeight:"inherit"}},[`${$}-footer`]:{padding:Ue,color:w,fontSize:ie,background:se},[`${$}-content`]:{flex:"auto",minHeight:0}}};var oe=(0,he.Z)("Layout",I=>[J(I)],I=>{const{colorBgLayout:F,controlHeight:$,controlHeightLG:w,colorText:Q,controlHeightSM:se,marginXXS:ce,colorTextLightSolid:Le,colorBgContainer:Se}=I,ke=w*1.25;return{colorBgHeader:"#001529",colorBgBody:F,colorBgTrigger:"#002140",bodyBg:F,headerBg:"#001529",headerHeight:$*2,headerPadding:`0 ${ke}px`,headerColor:Q,footerPadding:`${se}px ${ke}px`,footerBg:F,siderBg:"#001529",triggerHeight:w+ce*2,triggerBg:"#002140",triggerColor:Le,zeroTriggerWidth:w,zeroTriggerHeight:w,lightSiderBg:Se,lightTriggerBg:Se,lightTriggerColor:Q}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Y=function(I,F){var $={};for(var w in I)Object.prototype.hasOwnProperty.call(I,w)&&F.indexOf(w)<0&&($[w]=I[w]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,w=Object.getOwnPropertySymbols(I);Q<w.length;Q++)F.indexOf(w[Q])<0&&Object.prototype.propertyIsEnumerable.call(I,w[Q])&&($[w[Q]]=I[w[Q]]);return $};const o=y.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function V(I){let{suffixCls:F,tagName:$,displayName:w}=I;return Q=>y.forwardRef((ce,Le)=>y.createElement(Q,Object.assign({ref:Le,suffixCls:F,tagName:$},ce)))}const we=y.forwardRef((I,F)=>{const{prefixCls:$,suffixCls:w,className:Q,tagName:se}=I,ce=Y(I,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Le}=y.useContext(g.E_),Se=Le("layout",$),[ke,Ue]=oe(Se),D=w?`${Se}-${w}`:Se;return ke(y.createElement(se,Object.assign({className:P()($||D,Q,Ue),ref:F},ce)))}),q=y.forwardRef((I,F)=>{const{direction:$}=y.useContext(g.E_),[w,Q]=y.useState([]),{prefixCls:se,className:ce,rootClassName:Le,children:Se,hasSider:ke,tagName:Ue,style:D}=I,Ve=Y(I,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ge=(0,z.Z)(Ve,["suffixCls"]),{getPrefixCls:Z,layout:fe}=y.useContext(g.E_),ie=Z("layout",se),[ye,le]=oe(ie),ue=P()(ie,{[`${ie}-has-sider`]:typeof ke=="boolean"?ke:w.length>0,[`${ie}-rtl`]:$==="rtl"},fe==null?void 0:fe.className,ce,Le,le),ve=y.useMemo(()=>({siderHook:{addSider:je=>{Q(Te=>[].concat((0,a.Z)(Te),[je]))},removeSider:je=>{Q(Te=>Te.filter(Ze=>Ze!==je))}}}),[]);return ye(y.createElement(o.Provider,{value:ve},y.createElement(Ue,Object.assign({ref:F,className:ue,style:Object.assign(Object.assign({},fe==null?void 0:fe.style),D)},Ge),Se)))}),te=V({tagName:"div",displayName:"Layout"})(q),_=V({suffixCls:"header",tagName:"header",displayName:"Header"})(we),S=V({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(we),v=V({suffixCls:"content",tagName:"main",displayName:"Content"})(we);var L=te},40875:function(dt,Ae,l){"use strict";l.d(Ae,{J:function(){return g}});var a=l(59301),C=l(33234),P=l(70425),z=function(he,de){var U={};for(var J in he)Object.prototype.hasOwnProperty.call(he,J)&&de.indexOf(J)<0&&(U[J]=he[J]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,J=Object.getOwnPropertySymbols(he);oe<J.length;oe++)de.indexOf(J[oe])<0&&Object.prototype.propertyIsEnumerable.call(he,J[oe])&&(U[J[oe]]=he[J[oe]]);return U};const y=a.createContext(null),g=a.forwardRef((he,de)=>{const{children:U}=he,J=z(he,["children"]),oe=a.useContext(y),Y=a.useMemo(()=>Object.assign(Object.assign({},oe),J),[oe,J.prefixCls,J.mode,J.selectable]);return a.createElement(y.Provider,{value:Y},a.createElement(C.BR,null,(0,P.supportNodeRef)(U)?a.cloneElement(U,{ref:de}):U))});Ae.Z=y},20834:function(dt,Ae,l){"use strict";l.d(Ae,{default:function(){return et}});var a=l(15285),C=l(59301),P=l(45818),z=l(92310),y=l.n(z),g=l(36355),he=function(R,E){var s={};for(var c in R)Object.prototype.hasOwnProperty.call(R,c)&&E.indexOf(c)<0&&(s[c]=R[c]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,c=Object.getOwnPropertySymbols(R);m<c.length;m++)E.indexOf(c[m])<0&&Object.prototype.propertyIsEnumerable.call(R,c[m])&&(s[c[m]]=R[c[m]]);return s},U=R=>{const{prefixCls:E,className:s,dashed:c}=R,m=he(R,["prefixCls","className","dashed"]),{getPrefixCls:N}=C.useContext(g.E_),d=N("menu",E),p=y()({[`${d}-item-divider-dashed`]:!!c},s);return C.createElement(a.iz,Object.assign({className:p},m))},J=l(11592),oe=l(2738),Y=l(6848),o=l(92343),we=(0,C.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),te=R=>{var E;const{className:s,children:c,icon:m,title:N,danger:d}=R,{prefixCls:p,firstLevel:b,direction:u,disableMenuItemTitleTooltip:B,inlineCollapsed:W}=C.useContext(we),pe=ut=>{const gt=C.createElement("span",{className:`${p}-title-content`},c);return(!m||(0,o.l$)(c)&&c.type==="span")&&c&&ut&&b&&typeof c=="string"?C.createElement("div",{className:`${p}-inline-collapsed-noicon`},c.charAt(0)):gt},{siderCollapsed:be}=C.useContext(P.D);let Fe=N;typeof N=="undefined"?Fe=b?c:"":N===!1&&(Fe="");const _e={title:Fe};!be&&!W&&(_e.title=null,_e.open=!1);const Oe=(0,J.Z)(c).length;let Ce=C.createElement(a.ck,Object.assign({},(0,oe.Z)(R,["title","icon","danger"]),{className:y()({[`${p}-item-danger`]:d,[`${p}-item-only-child`]:(m?Oe+1:Oe)===1},s),title:typeof N=="string"?N:void 0}),(0,o.Tm)(m,{className:y()((0,o.l$)(m)?(E=m.props)===null||E===void 0?void 0:E.className:"",`${p}-item-icon`)}),pe(W));return B||(Ce=C.createElement(Y.Z,Object.assign({},_e,{placement:u==="rtl"?"left":"right",overlayClassName:`${p}-inline-collapsed-tooltip`}),Ce)),Ce},S=R=>{var E;const{popupClassName:s,icon:c,title:m,theme:N}=R,d=C.useContext(we),{prefixCls:p,inlineCollapsed:b,theme:u}=d,B=(0,a.Xl)();let W;if(!c)W=b&&!B.length&&m&&typeof m=="string"?C.createElement("div",{className:`${p}-inline-collapsed-noicon`},m.charAt(0)):C.createElement("span",{className:`${p}-title-content`},m);else{const be=(0,o.l$)(m)&&m.type==="span";W=C.createElement(C.Fragment,null,(0,o.Tm)(c,{className:y()((0,o.l$)(c)?(E=c.props)===null||E===void 0?void 0:E.className:"",`${p}-item-icon`)}),be?m:C.createElement("span",{className:`${p}-title-content`},m))}const pe=C.useMemo(()=>Object.assign(Object.assign({},d),{firstLevel:!1}),[d]);return C.createElement(we.Provider,{value:pe},C.createElement(a.Wd,Object.assign({},(0,oe.Z)(R,["icon"]),{title:W,popupClassName:y()(p,s,`${p}-${N||u}`)})))},v=l(18785),L=l(70425),I=l(62892),F=l(40875),$=function(R,E){var s={};for(var c in R)Object.prototype.hasOwnProperty.call(R,c)&&E.indexOf(c)<0&&(s[c]=R[c]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,c=Object.getOwnPropertySymbols(R);m<c.length;m++)E.indexOf(c[m])<0&&Object.prototype.propertyIsEnumerable.call(R,c[m])&&(s[c[m]]=R[c[m]]);return s};function w(R){return(R||[]).map((E,s)=>{if(E&&typeof E=="object"){const c=E,{label:m,children:N,key:d,type:p}=c,b=$(c,["label","children","key","type"]),u=d!=null?d:`tmp-${s}`;return N||p==="group"?p==="group"?C.createElement(a.BW,Object.assign({key:u},b,{title:m}),w(N)):C.createElement(S,Object.assign({key:u},b,{title:m}),w(N)):p==="divider"?C.createElement(U,Object.assign({key:u},b)):C.createElement(te,Object.assign({key:u},b),m)}return null}).filter(E=>E)}function Q(R){return C.useMemo(()=>R&&w(R),[R])}var se=l(64993),ce=l(17313),Le=l(8378),Se=l(13826),ke=l(29878),Ue=l(83116),D=l(37613),Ge=R=>{const{componentCls:E,motionDurationSlow:s,horizontalLineHeight:c,colorSplit:m,lineWidth:N,lineType:d,itemPaddingInline:p}=R;return{[`${E}-horizontal`]:{lineHeight:c,border:0,borderBottom:`${N}px ${d} ${m}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${E}-item, ${E}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:p},[`> ${E}-item:hover,
> ${E}-item-active,
> ${E}-submenu ${E}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${E}-item, ${E}-submenu-title`]:{transition:[`border-color ${s}`,`background ${s}`].join(",")},[`${E}-submenu-arrow`]:{display:"none"}}}},fe=R=>{let{componentCls:E,menuArrowOffset:s}=R;return{[`${E}-rtl`]:{direction:"rtl"},[`${E}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${E}-rtl${E}-vertical,
${E}-submenu-rtl ${E}-vertical`]:{[`${E}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${s})`},"&::after":{transform:`rotate(45deg) translateY(${s})`}}}}};const ie=R=>Object.assign({},(0,ce.oN)(R));var le=(R,E)=>{const{componentCls:s,itemColor:c,itemSelectedColor:m,groupTitleColor:N,itemBg:d,subMenuItemBg:p,itemSelectedBg:b,activeBarHeight:u,activeBarWidth:B,activeBarBorderWidth:W,motionDurationSlow:pe,motionEaseInOut:be,motionEaseOut:Fe,itemPaddingInline:_e,motionDurationMid:Oe,itemHoverColor:Ce,lineType:ut,colorSplit:gt,itemDisabledColor:K,dangerItemColor:bt,dangerItemHoverColor:mt,dangerItemSelectedColor:xt,dangerItemActiveBg:qe,dangerItemSelectedBg:wt,itemHoverBg:Tt,itemActiveBg:Ft,menuSubMenuBg:Et,horizontalItemSelectedColor:Zt,horizontalItemSelectedBg:Kt,horizontalItemBorderRadius:Re,horizontalItemHoverBg:Qe,popupBg:Rt}=R;return{[`${s}-${E}, ${s}-${E} > ${s}`]:{color:c,background:d,[`&${s}-root:focus-visible`]:Object.assign({},ie(R)),[`${s}-item-group-title`]:{color:N},[`${s}-submenu-selected`]:{[`> ${s}-submenu-title`]:{color:m}},[`${s}-item-disabled, ${s}-submenu-disabled`]:{color:`${K} !important`},[`${s}-item:not(${s}-item-selected):not(${s}-submenu-selected)`]:{[`&:hover, > ${s}-submenu-title:hover`]:{color:Ce}},[`&:not(${s}-horizontal)`]:{[`${s}-item:not(${s}-item-selected)`]:{"&:hover":{backgroundColor:Tt},"&:active":{backgroundColor:Ft}},[`${s}-submenu-title`]:{"&:hover":{backgroundColor:Tt},"&:active":{backgroundColor:Ft}}},[`${s}-item-danger`]:{color:bt,[`&${s}-item:hover`]:{[`&:not(${s}-item-selected):not(${s}-submenu-selected)`]:{color:mt}},[`&${s}-item:active`]:{background:qe}},[`${s}-item a`]:{"&, &:hover":{color:"inherit"}},[`${s}-item-selected`]:{color:m,[`&${s}-item-danger`]:{color:xt},"a, a:hover":{color:"inherit"}},[`& ${s}-item-selected`]:{backgroundColor:b,[`&${s}-item-danger`]:{backgroundColor:wt}},[`${s}-item, ${s}-submenu-title`]:{[`&:not(${s}-item-disabled):focus-visible`]:Object.assign({},ie(R))},[`&${s}-submenu > ${s}`]:{backgroundColor:Et},[`&${s}-popup > ${s}`]:{backgroundColor:Rt},[`&${s}-horizontal`]:Object.assign(Object.assign({},E==="dark"?{borderBottom:0}:{}),{[`> ${s}-item, > ${s}-submenu`]:{top:W,marginTop:-W,marginBottom:0,borderRadius:Re,"&::after":{position:"absolute",insetInline:_e,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${pe} ${be}`,content:'""'},"&:hover, &-active, &-open":{background:Qe,"&::after":{borderBottomWidth:u,borderBottomColor:Zt}},"&-selected":{color:Zt,backgroundColor:Kt,"&:hover":{backgroundColor:Kt},"&::after":{borderBottomWidth:u,borderBottomColor:Zt}}}}),[`&${s}-root`]:{[`&${s}-inline, &${s}-vertical`]:{borderInlineEnd:`${W}px ${ut} ${gt}`}},[`&${s}-inline`]:{[`${s}-sub${s}-inline`]:{background:p},[`${s}-item, ${s}-submenu-title`]:W&&B?{width:`calc(100% + ${W}px)`}:{},[`${s}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${B}px solid ${m}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Oe} ${Fe}`,`opacity ${Oe} ${Fe}`].join(","),content:'""'},[`&${s}-item-danger`]:{"&::after":{borderInlineEndColor:xt}}},[`${s}-selected, ${s}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Oe} ${be}`,`opacity ${Oe} ${be}`].join(",")}}}}}};const ue=R=>{const{componentCls:E,itemHeight:s,itemMarginInline:c,padding:m,menuArrowSize:N,marginXS:d,itemMarginBlock:p}=R,b=m+N+d;return{[`${E}-item`]:{position:"relative",overflow:"hidden"},[`${E}-item, ${E}-submenu-title`]:{height:s,lineHeight:`${s}px`,paddingInline:m,overflow:"hidden",textOverflow:"ellipsis",marginInline:c,marginBlock:p,width:`calc(100% - ${c*2}px)`},[`> ${E}-item,
> ${E}-submenu > ${E}-submenu-title`]:{height:s,lineHeight:`${s}px`},[`${E}-item-group-list ${E}-submenu-title,
${E}-submenu-title`]:{paddingInlineEnd:b}}};var je=R=>{const{componentCls:E,iconCls:s,itemHeight:c,colorTextLightSolid:m,dropdownWidth:N,controlHeightLG:d,motionDurationMid:p,motionEaseOut:b,paddingXL:u,itemMarginInline:B,fontSizeLG:W,motionDurationSlow:pe,paddingXS:be,boxShadowSecondary:Fe,collapsedWidth:_e,collapsedIconSize:Oe}=R,Ce={height:c,lineHeight:`${c}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[E]:{"&-inline, &-vertical":Object.assign({[`&${E}-root`]:{boxShadow:"none"}},ue(R))},[`${E}-submenu-popup`]:{[`${E}-vertical`]:Object.assign(Object.assign({},ue(R)),{boxShadow:Fe})}},{[`${E}-submenu-popup ${E}-vertical${E}-sub`]:{minWidth:N,maxHeight:`calc(100vh - ${d*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${E}-inline`]:{width:"100%",[`&${E}-root`]:{[`${E}-item, ${E}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${p} ${b}`].join(","),[`> ${E}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${E}-sub${E}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${E}-submenu > ${E}-submenu-title`]:Ce,[`& ${E}-item-group-title`]:{paddingInlineStart:u}},[`${E}-item`]:Ce}},{[`${E}-inline-collapsed`]:{width:_e,[`&${E}-root`]:{[`${E}-item, ${E}-submenu ${E}-submenu-title`]:{[`> ${E}-inline-collapsed-noicon`]:{fontSize:W,textAlign:"center"}}},[`> ${E}-item,
> ${E}-item-group > ${E}-item-group-list > ${E}-item,
> ${E}-item-group > ${E}-item-group-list > ${E}-submenu > ${E}-submenu-title,
> ${E}-submenu > ${E}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${W/2}px - ${B}px)`,textOverflow:"clip",[`
${E}-submenu-arrow,
${E}-submenu-expand-icon
`]:{opacity:0},[`${E}-item-icon, ${s}`]:{margin:0,fontSize:Oe,lineHeight:`${c}px`,"+ span":{display:"inline-block",opacity:0}}},[`${E}-item-icon, ${s}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${E}-item-icon, ${s}`]:{display:"none"},"a, a:hover":{color:m}},[`${E}-item-group-title`]:Object.assign(Object.assign({},ce.vS),{paddingInline:be})}}]};const Te=R=>{const{componentCls:E,motionDurationSlow:s,motionDurationMid:c,motionEaseInOut:m,motionEaseOut:N,iconCls:d,iconSize:p,iconMarginInlineEnd:b}=R;return{[`${E}-item, ${E}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${s}`,`background ${s}`,`padding ${s} ${m}`].join(","),[`${E}-item-icon, ${d}`]:{minWidth:p,fontSize:p,transition:[`font-size ${c} ${N}`,`margin ${s} ${m}`,`color ${s}`].join(","),"+ span":{marginInlineStart:b,opacity:1,transition:[`opacity ${s} ${m}`,`margin ${s}`,`color ${s}`].join(",")}},[`${E}-item-icon`]:Object.assign({},(0,ce.Ro)()),[`&${E}-item-only-child`]:{[`> ${d}, > ${E}-item-icon`]:{marginInlineEnd:0}}},[`${E}-item-disabled, ${E}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${E}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ze=R=>{const{componentCls:E,motionDurationSlow:s,motionEaseInOut:c,borderRadius:m,menuArrowSize:N,menuArrowOffset:d}=R;return{[`${E}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:R.margin,width:N,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${s} ${c}, opacity ${s}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:N*.6,height:N*.15,backgroundColor:"currentcolor",borderRadius:m,transition:[`background ${s} ${c}`,`transform ${s} ${c}`,`top ${s} ${c}`,`color ${s} ${c}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${d})`},"&::after":{transform:`rotate(-45deg) translateY(${d})`}}}}},We=R=>{const{antCls:E,componentCls:s,fontSize:c,motionDurationSlow:m,motionDurationMid:N,motionEaseInOut:d,paddingXS:p,padding:b,colorSplit:u,lineWidth:B,zIndexPopup:W,borderRadiusLG:pe,subMenuItemBorderRadius:be,menuArrowSize:Fe,menuArrowOffset:_e,lineType:Oe,menuPanelMaskInset:Ce,groupTitleLineHeight:ut,groupTitleFontSize:gt}=R;return[{"":{[`${s}`]:Object.assign(Object.assign({},(0,ce.dF)()),{"&-hidden":{display:"none"}})},[`${s}-submenu-hidden`]:{display:"none"}},{[s]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ce.Wf)(R)),(0,ce.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:c,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${m} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${s}-item`]:{flex:"none"}},[`${s}-item, ${s}-submenu, ${s}-submenu-title`]:{borderRadius:R.itemBorderRadius},[`${s}-item-group-title`]:{padding:`${p}px ${b}px`,fontSize:gt,lineHeight:ut,transition:`all ${m}`},[`&-horizontal ${s}-submenu`]:{transition:[`border-color ${m} ${d}`,`background ${m} ${d}`].join(",")},[`${s}-submenu, ${s}-submenu-inline`]:{transition:[`border-color ${m} ${d}`,`background ${m} ${d}`,`padding ${N} ${d}`].join(",")},[`${s}-submenu ${s}-sub`]:{cursor:"initial",transition:[`background ${m} ${d}`,`padding ${m} ${d}`].join(",")},[`${s}-title-content`]:{transition:`color ${m}`},[`${s}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${s}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:Oe,borderWidth:0,borderTopWidth:B,marginBlock:B,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Te(R)),{[`${s}-item-group`]:{[`${s}-item-group-list`]:{margin:0,padding:0,[`${s}-item, ${s}-submenu-title`]:{paddingInline:`${c*2}px ${b}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:W,borderRadius:pe,boxShadow:"none",transformOrigin:"0 0",[`&${s}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ce}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ce},"\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:R.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:R.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:R.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:R.paddingXS},[`> ${s}`]:Object.assign(Object.assign(Object.assign({borderRadius:pe},Te(R)),Ze(R)),{[`${s}-item, ${s}-submenu > ${s}-submenu-title`]:{borderRadius:be},[`${s}-submenu-title::after`]:{transition:`transform ${m} ${d}`}})}}),Ze(R)),{[`&-inline-collapsed ${s}-submenu-arrow,
&-inline ${s}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${_e})`},"&::after":{transform:`rotate(45deg) translateX(-${_e})`}},[`${s}-submenu-open${s}-submenu-inline > ${s}-submenu-title > ${s}-submenu-arrow`]:{transform:`translateY(-${Fe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${_e})`},"&::before":{transform:`rotate(45deg) translateX(${_e})`}}})},{[`${E}-layout-header`]:{[s]:{lineHeight:"inherit"}}}]};var it=(R,E)=>(0,Ue.Z)("Menu",c=>{if(E===!1)return[];const{colorBgElevated:m,colorPrimary:N,colorTextLightSolid:d,controlHeightLG:p,fontSize:b,darkItemColor:u,darkDangerItemColor:B,darkItemBg:W,darkSubMenuItemBg:pe,darkItemSelectedColor:be,darkItemSelectedBg:Fe,darkDangerItemSelectedBg:_e,darkItemHoverBg:Oe,darkGroupTitleColor:Ce,darkItemHoverColor:ut,darkItemDisabledColor:gt,darkDangerItemHoverColor:K,darkDangerItemSelectedColor:bt,darkDangerItemActiveBg:mt}=c,xt=b/7*5,qe=(0,D.TS)(c,{menuArrowSize:xt,menuHorizontalHeight:p*1.15,menuArrowOffset:`${xt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:m}),wt=(0,D.TS)(qe,{itemColor:u,itemHoverColor:ut,groupTitleColor:Ce,itemSelectedColor:be,itemBg:W,popupBg:W,subMenuItemBg:pe,itemActiveBg:"transparent",itemSelectedBg:Fe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Oe,itemDisabledColor:gt,dangerItemColor:B,dangerItemHoverColor:K,dangerItemSelectedColor:bt,dangerItemActiveBg:mt,dangerItemSelectedBg:_e,menuSubMenuBg:pe,horizontalItemSelectedColor:d,horizontalItemSelectedBg:N});return[We(qe),Ge(qe),je(qe),le(qe,"light"),le(wt,"dark"),fe(qe),(0,Le.Z)(qe),(0,Se.oN)(qe,"slide-up"),(0,Se.oN)(qe,"slide-down"),(0,ke._y)(qe,"zoom-big")]},c=>{const{colorPrimary:m,colorError:N,colorTextDisabled:d,colorErrorBg:p,colorText:b,colorTextDescription:u,colorBgContainer:B,colorFillAlter:W,colorFillContent:pe,lineWidth:be,lineWidthBold:Fe,controlItemBgActive:_e,colorBgTextHover:Oe,controlHeightLG:Ce,lineHeight:ut,colorBgElevated:gt,marginXXS:K,padding:bt,fontSize:mt,controlHeightSM:xt,fontSizeLG:qe,colorTextLightSolid:wt,colorErrorHover:Tt}=c,Ft=new se.C(wt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:c.zIndexPopupBase+50,radiusItem:c.borderRadiusLG,itemBorderRadius:c.borderRadiusLG,radiusSubMenuItem:c.borderRadiusSM,subMenuItemBorderRadius:c.borderRadiusSM,colorItemText:b,itemColor:b,colorItemTextHover:b,itemHoverColor:b,colorItemTextHoverHorizontal:m,horizontalItemHoverColor:m,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:m,itemSelectedColor:m,colorItemTextSelectedHorizontal:m,horizontalItemSelectedColor:m,colorItemBg:B,itemBg:B,colorItemBgHover:Oe,itemHoverBg:Oe,colorItemBgActive:pe,itemActiveBg:_e,colorSubItemBg:W,subMenuItemBg:W,colorItemBgSelected:_e,itemSelectedBg:_e,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Fe,activeBarHeight:Fe,colorActiveBarBorderSize:be,activeBarBorderWidth:be,colorItemTextDisabled:d,itemDisabledColor:d,colorDangerItemText:N,dangerItemColor:N,colorDangerItemTextHover:N,dangerItemHoverColor:N,colorDangerItemTextSelected:N,dangerItemSelectedColor:N,colorDangerItemBgActive:p,dangerItemActiveBg:p,colorDangerItemBgSelected:p,dangerItemSelectedBg:p,itemMarginInline:c.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ce,groupTitleLineHeight:ut,collapsedWidth:Ce*2,popupBg:gt,itemMarginBlock:K,itemPaddingInline:bt,horizontalLineHeight:`${Ce*1.15}px`,iconSize:mt,iconMarginInlineEnd:xt-mt,collapsedIconSize:qe,groupTitleFontSize:mt,darkItemDisabledColor:new se.C(wt).setAlpha(.25).toRgbString(),darkItemColor:Ft,darkDangerItemColor:N,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:wt,darkItemSelectedBg:m,darkDangerItemSelectedBg:N,darkItemHoverBg:"transparent",darkGroupTitleColor:Ft,darkItemHoverColor:wt,darkDangerItemHoverColor:Tt,darkDangerItemSelectedColor:wt,darkDangerItemActiveBg:N}},{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"]]})(R),Me=function(R,E){var s={};for(var c in R)Object.prototype.hasOwnProperty.call(R,c)&&E.indexOf(c)<0&&(s[c]=R[c]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,c=Object.getOwnPropertySymbols(R);m<c.length;m++)E.indexOf(c[m])<0&&Object.prototype.propertyIsEnumerable.call(R,c[m])&&(s[c[m]]=R[c[m]]);return s},Ye=(0,C.forwardRef)((R,E)=>{var s,c;const m=C.useContext(F.Z),N=m||{},{getPrefixCls:d,getPopupContainer:p,direction:b,menu:u}=C.useContext(g.E_),B=d(),{prefixCls:W,className:pe,style:be,theme:Fe="light",expandIcon:_e,_internalDisableMenuItemTitleTooltip:Oe,inlineCollapsed:Ce,siderCollapsed:ut,items:gt,children:K,rootClassName:bt,mode:mt,selectable:xt,onClick:qe,overflowedIndicatorPopupClassName:wt}=R,Tt=Me(R,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ft=(0,oe.Z)(Tt,["collapsedWidth"]),Et=Q(gt)||K;(s=N.validator)===null||s===void 0||s.call(N,{mode:mt});const Zt=(0,L.useEvent)(function(){var rt;qe==null||qe.apply(void 0,arguments),(rt=N.onClick)===null||rt===void 0||rt.call(N)}),Kt=N.mode||mt,Re=xt!=null?xt:N.selectable,Qe=C.useMemo(()=>ut!==void 0?ut:Ce,[Ce,ut]),Rt={horizontal:{motionName:`${B}-slide-up`},inline:(0,I.Z)(B),other:{motionName:`${B}-zoom-big`}},_t=d("menu",W||N.prefixCls),[Nt,Mt]=it(_t,!m),kt=y()(`${_t}-${Fe}`,u==null?void 0:u.className,pe);let Lt;if(typeof _e=="function")Lt=_e;else if(_e===null||_e===!1)Lt=null;else if(N.expandIcon===null||N.expandIcon===!1)Lt=null;else{const rt=_e!=null?_e:N.expandIcon;Lt=(0,o.Tm)(rt,{className:y()(`${_t}-submenu-expand-icon`,(0,o.l$)(rt)?(c=rt.props)===null||c===void 0?void 0:c.className:"")})}const tt=C.useMemo(()=>({prefixCls:_t,inlineCollapsed:Qe||!1,direction:b,firstLevel:!0,theme:Fe,mode:Kt,disableMenuItemTitleTooltip:Oe}),[_t,Qe,b,Oe,Fe]);return Nt(C.createElement(F.Z.Provider,{value:null},C.createElement(we.Provider,{value:tt},C.createElement(a.ZP,Object.assign({getPopupContainer:p,overflowedIndicator:C.createElement(v.Z,null),overflowedIndicatorPopupClassName:y()(_t,`${_t}-${Fe}`,wt),mode:Kt,selectable:Re,onClick:Zt},Ft,{inlineCollapsed:Qe,style:Object.assign(Object.assign({},u==null?void 0:u.style),be),className:kt,prefixCls:_t,direction:b,defaultMotions:Rt,expandIcon:Lt,ref:E,rootClassName:y()(bt,Mt)}),Et))))});const Je=(0,C.forwardRef)((R,E)=>{const s=(0,C.useRef)(null),c=C.useContext(P.D);return(0,C.useImperativeHandle)(E,()=>({menu:s.current,focus:m=>{var N;(N=s.current)===null||N===void 0||N.focus(m)}})),C.createElement(Ye,Object.assign({ref:s},R,c))});Je.Item=te,Je.SubMenu=S,Je.Divider=U,Je.ItemGroup=a.BW;var et=Je},61621:function(dt,Ae,l){"use strict";l.d(Ae,{Z:function(){return E}});var a=l(92310),C=l.n(a),P=l(59301),z=l(36355),y=l(2738),he=s=>{const{prefixCls:c,className:m,style:N,size:d,shape:p}=s,b=C()({[`${c}-lg`]:d==="large",[`${c}-sm`]:d==="small"}),u=C()({[`${c}-circle`]:p==="circle",[`${c}-square`]:p==="square",[`${c}-round`]:p==="round"}),B=P.useMemo(()=>typeof d=="number"?{width:d,height:d,lineHeight:`${d}px`}:{},[d]);return P.createElement("span",{className:C()(c,b,u,m),style:Object.assign(Object.assign({},B),N)})},de=l(36237),U=l(83116),J=l(37613);const oe=new de.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Y=s=>({height:s,lineHeight:`${s}px`}),o=s=>Object.assign({width:s},Y(s)),V=s=>({background:s.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:oe,animationDuration:s.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),we=s=>Object.assign({width:s*5,minWidth:s*5},Y(s)),q=s=>{const{skeletonAvatarCls:c,gradientFromColor:m,controlHeight:N,controlHeightLG:d,controlHeightSM:p}=s;return{[`${c}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:m},o(N)),[`${c}${c}-circle`]:{borderRadius:"50%"},[`${c}${c}-lg`]:Object.assign({},o(d)),[`${c}${c}-sm`]:Object.assign({},o(p))}},te=s=>{const{controlHeight:c,borderRadiusSM:m,skeletonInputCls:N,controlHeightLG:d,controlHeightSM:p,gradientFromColor:b}=s;return{[`${N}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:b,borderRadius:m},we(c)),[`${N}-lg`]:Object.assign({},we(d)),[`${N}-sm`]:Object.assign({},we(p))}},_=s=>Object.assign({width:s},Y(s)),S=s=>{const{skeletonImageCls:c,imageSizeBase:m,gradientFromColor:N,borderRadiusSM:d}=s;return{[`${c}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:N,borderRadius:d},_(m*2)),{[`${c}-path`]:{fill:"#bfbfbf"},[`${c}-svg`]:Object.assign(Object.assign({},_(m)),{maxWidth:m*4,maxHeight:m*4}),[`${c}-svg${c}-svg-circle`]:{borderRadius:"50%"}}),[`${c}${c}-circle`]:{borderRadius:"50%"}}},v=(s,c,m)=>{const{skeletonButtonCls:N}=s;return{[`${m}${N}-circle`]:{width:c,minWidth:c,borderRadius:"50%"},[`${m}${N}-round`]:{borderRadius:c}}},L=s=>Object.assign({width:s*2,minWidth:s*2},Y(s)),I=s=>{const{borderRadiusSM:c,skeletonButtonCls:m,controlHeight:N,controlHeightLG:d,controlHeightSM:p,gradientFromColor:b}=s;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${m}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:b,borderRadius:c,width:N*2,minWidth:N*2},L(N))},v(s,N,m)),{[`${m}-lg`]:Object.assign({},L(d))}),v(s,d,`${m}-lg`)),{[`${m}-sm`]:Object.assign({},L(p))}),v(s,p,`${m}-sm`))},F=s=>{const{componentCls:c,skeletonAvatarCls:m,skeletonTitleCls:N,skeletonParagraphCls:d,skeletonButtonCls:p,skeletonInputCls:b,skeletonImageCls:u,controlHeight:B,controlHeightLG:W,controlHeightSM:pe,gradientFromColor:be,padding:Fe,marginSM:_e,borderRadius:Oe,titleHeight:Ce,blockRadius:ut,paragraphLiHeight:gt,controlHeightXS:K,paragraphMarginTop:bt}=s;return{[`${c}`]:{display:"table",width:"100%",[`${c}-header`]:{display:"table-cell",paddingInlineEnd:Fe,verticalAlign:"top",[`${m}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:be},o(B)),[`${m}-circle`]:{borderRadius:"50%"},[`${m}-lg`]:Object.assign({},o(W)),[`${m}-sm`]:Object.assign({},o(pe))},[`${c}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${N}`]:{width:"100%",height:Ce,background:be,borderRadius:ut,[`+ ${d}`]:{marginBlockStart:pe}},[`${d}`]:{padding:0,"> li":{width:"100%",height:gt,listStyle:"none",background:be,borderRadius:ut,"+ li":{marginBlockStart:K}}},[`${d}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${c}-content`]:{[`${N}, ${d} > li`]:{borderRadius:Oe}}},[`${c}-with-avatar ${c}-content`]:{[`${N}`]:{marginBlockStart:_e,[`+ ${d}`]:{marginBlockStart:bt}}},[`${c}${c}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},I(s)),q(s)),te(s)),S(s)),[`${c}${c}-block`]:{width:"100%",[`${p}`]:{width:"100%"},[`${b}`]:{width:"100%"}},[`${c}${c}-active`]:{[`
${N},
${d} > li,
${m},
${p},
${b},
${u}
`]:Object.assign({},V(s))}}};var $=(0,U.Z)("Skeleton",s=>{const{componentCls:c}=s,m=(0,J.TS)(s,{skeletonAvatarCls:`${c}-avatar`,skeletonTitleCls:`${c}-title`,skeletonParagraphCls:`${c}-paragraph`,skeletonButtonCls:`${c}-button`,skeletonInputCls:`${c}-input`,skeletonImageCls:`${c}-image`,imageSizeBase:s.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${s.gradientFromColor} 25%, ${s.gradientToColor} 37%, ${s.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[F(m)]},s=>{const{colorFillContent:c,colorFill:m}=s,N=c,d=m;return{color:N,colorGradientEnd:d,gradientFromColor:N,gradientToColor:d,titleHeight:s.controlHeight/2,blockRadius:s.borderRadiusSM,paragraphMarginTop:s.marginLG+s.marginXXS,paragraphLiHeight:s.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Q=s=>{const{prefixCls:c,className:m,rootClassName:N,active:d,shape:p="circle",size:b="default"}=s,{getPrefixCls:u}=P.useContext(z.E_),B=u("skeleton",c),[W,pe]=$(B),be=(0,y.Z)(s,["prefixCls","className"]),Fe=C()(B,`${B}-element`,{[`${B}-active`]:d},m,N,pe);return W(P.createElement("div",{className:Fe},P.createElement(he,Object.assign({prefixCls:`${B}-avatar`,shape:p,size:b},be))))},ce=s=>{const{prefixCls:c,className:m,rootClassName:N,active:d,block:p=!1,size:b="default"}=s,{getPrefixCls:u}=P.useContext(z.E_),B=u("skeleton",c),[W,pe]=$(B),be=(0,y.Z)(s,["prefixCls"]),Fe=C()(B,`${B}-element`,{[`${B}-active`]:d,[`${B}-block`]:p},m,N,pe);return W(P.createElement("div",{className:Fe},P.createElement(he,Object.assign({prefixCls:`${B}-button`,size:b},be))))};const Le="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var ke=s=>{const{prefixCls:c,className:m,rootClassName:N,style:d,active:p}=s,{getPrefixCls:b}=P.useContext(z.E_),u=b("skeleton",c),[B,W]=$(u),pe=C()(u,`${u}-element`,{[`${u}-active`]:p},m,N,W);return B(P.createElement("div",{className:pe},P.createElement("div",{className:C()(`${u}-image`,m),style:d},P.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},P.createElement("path",{d:Le,className:`${u}-image-path`})))))},D=s=>{const{prefixCls:c,className:m,rootClassName:N,active:d,block:p,size:b="default"}=s,{getPrefixCls:u}=P.useContext(z.E_),B=u("skeleton",c),[W,pe]=$(B),be=(0,y.Z)(s,["prefixCls"]),Fe=C()(B,`${B}-element`,{[`${B}-active`]:d,[`${B}-block`]:p},m,N,pe);return W(P.createElement("div",{className:Fe},P.createElement(he,Object.assign({prefixCls:`${B}-input`,size:b},be))))},Ve=l(54476),Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Z=Ge,fe=l(7657),ie=function(c,m){return P.createElement(fe.Z,(0,Ve.Z)({},c,{ref:m,icon:Z}))},ye=P.forwardRef(ie),le=ye,ve=s=>{const{prefixCls:c,className:m,rootClassName:N,style:d,active:p,children:b}=s,{getPrefixCls:u}=P.useContext(z.E_),B=u("skeleton",c),[W,pe]=$(B),be=C()(B,`${B}-element`,{[`${B}-active`]:p},pe,m,N),Fe=b!=null?b:P.createElement(le,null);return W(P.createElement("div",{className:be},P.createElement("div",{className:C()(`${B}-image`,m),style:d},Fe)))},je=l(94480),Ze=s=>{const c=u=>{const{width:B,rows:W=2}=s;if(Array.isArray(B))return B[u];if(W-1===u)return B},{prefixCls:m,className:N,style:d,rows:p}=s,b=(0,je.Z)(Array(p)).map((u,B)=>P.createElement("li",{key:B,style:{width:c(B)}}));return P.createElement("ul",{className:C()(m,N),style:d},b)},it=s=>{let{prefixCls:c,className:m,width:N,style:d}=s;return P.createElement("h3",{className:C()(c,m),style:Object.assign({width:N},d)})};function Me(s){return s&&typeof s=="object"?s:{}}function He(s,c){return s&&!c?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ye(s,c){return!s&&c?{width:"38%"}:s&&c?{width:"50%"}:{}}function Je(s,c){const m={};return(!s||!c)&&(m.width="61%"),!s&&c?m.rows=3:m.rows=2,m}const et=s=>{const{prefixCls:c,loading:m,className:N,rootClassName:d,style:p,children:b,avatar:u=!1,title:B=!0,paragraph:W=!0,active:pe,round:be}=s,{getPrefixCls:Fe,direction:_e,skeleton:Oe}=P.useContext(z.E_),Ce=Fe("skeleton",c),[ut,gt]=$(Ce);if(m||!("loading"in s)){const K=!!u,bt=!!B,mt=!!W;let xt;if(K){const Tt=Object.assign(Object.assign({prefixCls:`${Ce}-avatar`},He(bt,mt)),Me(u));xt=P.createElement("div",{className:`${Ce}-header`},P.createElement(he,Object.assign({},Tt)))}let qe;if(bt||mt){let Tt;if(bt){const Et=Object.assign(Object.assign({prefixCls:`${Ce}-title`},Ye(K,mt)),Me(B));Tt=P.createElement(it,Object.assign({},Et))}let Ft;if(mt){const Et=Object.assign(Object.assign({prefixCls:`${Ce}-paragraph`},Je(K,bt)),Me(W));Ft=P.createElement(Ze,Object.assign({},Et))}qe=P.createElement("div",{className:`${Ce}-content`},Tt,Ft)}const wt=C()(Ce,{[`${Ce}-with-avatar`]:K,[`${Ce}-active`]:pe,[`${Ce}-rtl`]:_e==="rtl",[`${Ce}-round`]:be},Oe==null?void 0:Oe.className,N,d,gt);return ut(P.createElement("div",{className:wt,style:Object.assign(Object.assign({},Oe==null?void 0:Oe.style),p)},xt,qe))}return typeof b!="undefined"?b:null};et.Button=ce,et.Avatar=Q,et.Input=D,et.Image=ke,et.Node=ve;var R=et,E=R},81327:function(dt,Ae,l){"use strict";l.d(Ae,{Z:function(){return te}});var a=l(59301),C=l(92310),P=l.n(C),z=l(11592),y=l(36355),g=l(33234);const he=a.createContext({latestIndex:0}),de=he.Provider;var J=_=>{let{className:S,index:v,children:L,split:I,style:F}=_;const{latestIndex:$}=a.useContext(he);return L==null?null:a.createElement(a.Fragment,null,a.createElement("div",{className:S,style:F},L),v<$&&I&&a.createElement("span",{className:`${S}-split`},I))},oe=l(2856);function Y(_){return["small","middle","large"].includes(_)}function o(_){return _?typeof _=="number"&&!Number.isNaN(_):!1}var V=function(_,S){var v={};for(var L in _)Object.prototype.hasOwnProperty.call(_,L)&&S.indexOf(L)<0&&(v[L]=_[L]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,L=Object.getOwnPropertySymbols(_);I<L.length;I++)S.indexOf(L[I])<0&&Object.prototype.propertyIsEnumerable.call(_,L[I])&&(v[L[I]]=_[L[I]]);return v};const q=a.forwardRef((_,S)=>{var v,L;const{getPrefixCls:I,space:F,direction:$}=a.useContext(y.E_),{size:w=(F==null?void 0:F.size)||"small",align:Q,className:se,rootClassName:ce,children:Le,direction:Se="horizontal",prefixCls:ke,split:Ue,style:D,wrap:Ve=!1,classNames:Ge,styles:Z}=_,fe=V(_,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ie,ye]=Array.isArray(w)?w:[w,w],le=Y(ye),ue=Y(ie),ve=o(ye),je=o(ie),Te=(0,z.Z)(Le,{keepEmpty:!0}),Ze=Q===void 0&&Se==="horizontal"?"center":Q,We=I("space",ke),[it,Me]=(0,oe.Z)(We),He=P()(We,F==null?void 0:F.className,Me,`${We}-${Se}`,{[`${We}-rtl`]:$==="rtl",[`${We}-align-${Ze}`]:Ze,[`${We}-gap-row-${ye}`]:le,[`${We}-gap-col-${ie}`]:ue},se,ce),Ye=P()(`${We}-item`,(v=Ge==null?void 0:Ge.item)!==null&&v!==void 0?v:(L=F==null?void 0:F.classNames)===null||L===void 0?void 0:L.item);let Je=0;const et=Te.map((s,c)=>{var m,N;s!=null&&(Je=c);const d=s&&s.key||`${Ye}-${c}`;return a.createElement(J,{className:Ye,key:d,index:c,split:Ue,style:(m=Z==null?void 0:Z.item)!==null&&m!==void 0?m:(N=F==null?void 0:F.styles)===null||N===void 0?void 0:N.item},s)}),R=a.useMemo(()=>({latestIndex:Je}),[Je]);if(Te.length===0)return null;const E={};return Ve&&(E.flexWrap="wrap"),!ue&&je&&(E.columnGap=ie),!le&&ve&&(E.rowGap=ye),it(a.createElement("div",Object.assign({ref:S,className:He,style:Object.assign(Object.assign(Object.assign({},E),F==null?void 0:F.style),D)},fe),a.createElement(de,{value:R},et)))});q.Compact=g.ZP;var te=q},8378:function(dt,Ae){"use strict";const l=a=>({[a.componentCls]:{[`${a.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${a.motionDurationMid} ${a.motionEaseInOut},
opacity ${a.motionDurationMid} ${a.motionEaseInOut} !important`}},[`${a.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${a.motionDurationMid} ${a.motionEaseInOut},
opacity ${a.motionDurationMid} ${a.motionEaseInOut} !important`}}});Ae.Z=l},92899:function(dt,Ae,l){"use strict";l.d(Ae,{Fm:function(){return Y}});var a=l(36237),C=l(95406);const P=new a.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),z=new a.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),y=new a.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new a.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),he=new a.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),de=new a.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),U=new a.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),J=new a.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),oe={"move-up":{inKeyframes:U,outKeyframes:J},"move-down":{inKeyframes:P,outKeyframes:z},"move-left":{inKeyframes:y,outKeyframes:g},"move-right":{inKeyframes:he,outKeyframes:de}},Y=(o,V)=>{const{antCls:we}=o,q=`${we}-${V}`,{inKeyframes:te,outKeyframes:_}=oe[V];return[(0,C.R)(q,te,_,o.motionDurationMid),{[`
${q}-enter,
${q}-appear
`]:{opacity:0,animationTimingFunction:o.motionEaseOutCirc},[`${q}-leave`]:{animationTimingFunction:o.motionEaseInOutCirc}}]}},13826:function(dt,Ae,l){"use strict";l.d(Ae,{Qt:function(){return y},Uw:function(){return z},fJ:function(){return P},ly:function(){return g},oN:function(){return Y}});var a=l(36237),C=l(95406);const P=new a.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),z=new a.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),y=new a.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),g=new a.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),he=new a.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),de=new a.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),U=new a.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),J=new a.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),oe={"slide-up":{inKeyframes:P,outKeyframes:z},"slide-down":{inKeyframes:y,outKeyframes:g},"slide-left":{inKeyframes:he,outKeyframes:de},"slide-right":{inKeyframes:U,outKeyframes:J}},Y=(o,V)=>{const{antCls:we}=o,q=`${we}-${V}`,{inKeyframes:te,outKeyframes:_}=oe[V];return[(0,C.R)(q,te,_,o.motionDurationMid),{[`
${q}-enter,
${q}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:o.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${q}-leave`]:{animationTimingFunction:o.motionEaseInQuint}}]}},3867:function(dt,Ae,l){var a=l(97671);(function(C,P){dt.exports=P()})(this,function(){"use strict";function C(d){var p=typeof d;return d!==null&&(p==="object"||p==="function")}function P(d){return typeof d=="function"}var z=void 0;Array.isArray?z=Array.isArray:z=function(d){return Object.prototype.toString.call(d)==="[object Array]"};var y=z,g=0,he=void 0,de=void 0,U=function(p,b){I[g]=p,I[g+1]=b,g+=2,g===2&&(de?de(F):w())};function J(d){de=d}function oe(d){U=d}var Y=typeof window!="undefined"?window:void 0,o=Y||{},V=o.MutationObserver||o.WebKitMutationObserver,we=typeof self=="undefined"&&typeof a!="undefined"&&{}.toString.call(a)==="[object process]",q=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function te(){return function(){return a.nextTick(F)}}function _(){return typeof he!="undefined"?function(){he(F)}:L()}function S(){var d=0,p=new V(F),b=document.createTextNode("");return p.observe(b,{characterData:!0}),function(){b.data=d=++d%2}}function v(){var d=new MessageChannel;return d.port1.onmessage=F,function(){return d.port2.postMessage(0)}}function L(){var d=setTimeout;return function(){return d(F,1)}}var I=new Array(1e3);function F(){for(var d=0;d<g;d+=2){var p=I[d],b=I[d+1];p(b),I[d]=void 0,I[d+1]=void 0}g=0}function $(){try{var d=Function("return this")().require("vertx");return he=d.runOnLoop||d.runOnContext,_()}catch(p){return L()}}var w=void 0;we?w=te():V?w=S():q?w=v():Y===void 0?w=$():w=L();function Q(d,p){var b=this,u=new this.constructor(Le);u[ce]===void 0&&He(u);var B=b._state;if(B){var W=arguments[B-1];U(function(){return Ze(B,u,W,b._result)})}else je(b,u,d,p);return u}function se(d){var p=this;if(d&&typeof d=="object"&&d.constructor===p)return d;var b=new p(Le);return ye(b,d),b}var ce=Math.random().toString(36).substring(2);function Le(){}var Se=void 0,ke=1,Ue=2;function D(){return new TypeError("You cannot resolve a promise with itself")}function Ve(){return new TypeError("A promises callback cannot return that same promise.")}function Ge(d,p,b,u){try{d.call(p,b,u)}catch(B){return B}}function Z(d,p,b){U(function(u){var B=!1,W=Ge(b,p,function(pe){B||(B=!0,p!==pe?ye(u,pe):ue(u,pe))},function(pe){B||(B=!0,ve(u,pe))},"Settle: "+(u._label||" unknown promise"));!B&&W&&(B=!0,ve(u,W))},d)}function fe(d,p){p._state===ke?ue(d,p._result):p._state===Ue?ve(d,p._result):je(p,void 0,function(b){return ye(d,b)},function(b){return ve(d,b)})}function ie(d,p,b){p.constructor===d.constructor&&b===Q&&p.constructor.resolve===se?fe(d,p):b===void 0?ue(d,p):P(b)?Z(d,p,b):ue(d,p)}function ye(d,p){if(d===p)ve(d,D());else if(C(p)){var b=void 0;try{b=p.then}catch(u){ve(d,u);return}ie(d,p,b)}else ue(d,p)}function le(d){d._onerror&&d._onerror(d._result),Te(d)}function ue(d,p){d._state===Se&&(d._result=p,d._state=ke,d._subscribers.length!==0&&U(Te,d))}function ve(d,p){d._state===Se&&(d._state=Ue,d._result=p,U(le,d))}function je(d,p,b,u){var B=d._subscribers,W=B.length;d._onerror=null,B[W]=p,B[W+ke]=b,B[W+Ue]=u,W===0&&d._state&&U(Te,d)}function Te(d){var p=d._subscribers,b=d._state;if(p.length!==0){for(var u=void 0,B=void 0,W=d._result,pe=0;pe<p.length;pe+=3)u=p[pe],B=p[pe+b],u?Ze(b,u,B,W):B(W);d._subscribers.length=0}}function Ze(d,p,b,u){var B=P(b),W=void 0,pe=void 0,be=!0;if(B){try{W=b(u)}catch(Fe){be=!1,pe=Fe}if(p===W){ve(p,Ve());return}}else W=u;p._state!==Se||(B&&be?ye(p,W):be===!1?ve(p,pe):d===ke?ue(p,W):d===Ue&&ve(p,W))}function We(d,p){try{p(function(u){ye(d,u)},function(u){ve(d,u)})}catch(b){ve(d,b)}}var it=0;function Me(){return it++}function He(d){d[ce]=it++,d._state=void 0,d._result=void 0,d._subscribers=[]}function Ye(){return new Error("Array Methods must be provided an Array")}var Je=function(){function d(p,b){this._instanceConstructor=p,this.promise=new p(Le),this.promise[ce]||He(this.promise),y(b)?(this.length=b.length,this._remaining=b.length,this._result=new Array(this.length),this.length===0?ue(this.promise,this._result):(this.length=this.length||0,this._enumerate(b),this._remaining===0&&ue(this.promise,this._result))):ve(this.promise,Ye())}return d.prototype._enumerate=function(b){for(var u=0;this._state===Se&&u<b.length;u++)this._eachEntry(b[u],u)},d.prototype._eachEntry=function(b,u){var B=this._instanceConstructor,W=B.resolve;if(W===se){var pe=void 0,be=void 0,Fe=!1;try{pe=b.then}catch(Oe){Fe=!0,be=Oe}if(pe===Q&&b._state!==Se)this._settledAt(b._state,u,b._result);else if(typeof pe!="function")this._remaining--,this._result[u]=b;else if(B===m){var _e=new B(Le);Fe?ve(_e,be):ie(_e,b,pe),this._willSettleAt(_e,u)}else this._willSettleAt(new B(function(Oe){return Oe(b)}),u)}else this._willSettleAt(W(b),u)},d.prototype._settledAt=function(b,u,B){var W=this.promise;W._state===Se&&(this._remaining--,b===Ue?ve(W,B):this._result[u]=B),this._remaining===0&&ue(W,this._result)},d.prototype._willSettleAt=function(b,u){var B=this;je(b,void 0,function(W){return B._settledAt(ke,u,W)},function(W){return B._settledAt(Ue,u,W)})},d}();function et(d){return new Je(this,d).promise}function R(d){var p=this;return y(d)?new p(function(b,u){for(var B=d.length,W=0;W<B;W++)p.resolve(d[W]).then(b,u)}):new p(function(b,u){return u(new TypeError("You must pass an array to race."))})}function E(d){var p=this,b=new p(Le);return ve(b,d),b}function s(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function c(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var m=function(){function d(p){this[ce]=Me(),this._result=this._state=void 0,this._subscribers=[],Le!==p&&(typeof p!="function"&&s(),this instanceof d?We(this,p):c())}return d.prototype.catch=function(b){return this.then(null,b)},d.prototype.finally=function(b){var u=this,B=u.constructor;return P(b)?u.then(function(W){return B.resolve(b()).then(function(){return W})},function(W){return B.resolve(b()).then(function(){throw W})}):u.then(b,b)},d}();m.prototype.then=Q,m.all=et,m.race=R,m.resolve=se,m.reject=E,m._setScheduler=J,m._setAsap=oe,m._asap=U;function N(){var d=void 0;if(typeof l.g!="undefined")d=l.g;else if(typeof self!="undefined")d=self;else try{d=Function("return this")()}catch(u){throw new Error("polyfill failed because global object is unavailable in this environment")}var p=d.Promise;if(p){var b=null;try{b=Object.prototype.toString.call(p.resolve())}catch(u){}if(b==="[object Promise]"&&!p.cast)return}d.Promise=m}return m.polyfill=N,m.Promise=m,m})},86204:function(dt){"use strict";var Ae=typeof Reflect=="object"?Reflect:null,l=Ae&&typeof Ae.apply=="function"?Ae.apply:function(v,L,I){return Function.prototype.apply.call(v,L,I)},a;Ae&&typeof Ae.ownKeys=="function"?a=Ae.ownKeys:Object.getOwnPropertySymbols?a=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:a=function(v){return Object.getOwnPropertyNames(v)};function C(S){console&&console.warn&&console.warn(S)}var P=Number.isNaN||function(v){return v!==v};function z(){z.init.call(this)}dt.exports=z,dt.exports.once=q,z.EventEmitter=z,z.prototype._events=void 0,z.prototype._eventsCount=0,z.prototype._maxListeners=void 0;var y=10;function g(S){if(typeof S!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof S)}Object.defineProperty(z,"defaultMaxListeners",{enumerable:!0,get:function(){return y},set:function(S){if(typeof S!="number"||S<0||P(S))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+S+".");y=S}}),z.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},z.prototype.setMaxListeners=function(v){if(typeof v!="number"||v<0||P(v))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+v+".");return this._maxListeners=v,this};function he(S){return S._maxListeners===void 0?z.defaultMaxListeners:S._maxListeners}z.prototype.getMaxListeners=function(){return he(this)},z.prototype.emit=function(v){for(var L=[],I=1;I<arguments.length;I++)L.push(arguments[I]);var F=v==="error",$=this._events;if($!==void 0)F=F&&$.error===void 0;else if(!F)return!1;if(F){var w;if(L.length>0&&(w=L[0]),w instanceof Error)throw w;var Q=new Error("Unhandled error."+(w?" ("+w.message+")":""));throw Q.context=w,Q}var se=$[v];if(se===void 0)return!1;if(typeof se=="function")l(se,this,L);else for(var ce=se.length,Le=o(se,ce),I=0;I<ce;++I)l(Le[I],this,L);return!0};function de(S,v,L,I){var F,$,w;if(g(L),$=S._events,$===void 0?($=S._events=Object.create(null),S._eventsCount=0):($.newListener!==void 0&&(S.emit("newListener",v,L.listener?L.listener:L),$=S._events),w=$[v]),w===void 0)w=$[v]=L,++S._eventsCount;else if(typeof w=="function"?w=$[v]=I?[L,w]:[w,L]:I?w.unshift(L):w.push(L),F=he(S),F>0&&w.length>F&&!w.warned){w.warned=!0;var Q=new Error("Possible EventEmitter memory leak detected. "+w.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");Q.name="MaxListenersExceededWarning",Q.emitter=S,Q.type=v,Q.count=w.length,C(Q)}return S}z.prototype.addListener=function(v,L){return de(this,v,L,!1)},z.prototype.on=z.prototype.addListener,z.prototype.prependListener=function(v,L){return de(this,v,L,!0)};function U(){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 J(S,v,L){var I={fired:!1,wrapFn:void 0,target:S,type:v,listener:L},F=U.bind(I);return F.listener=L,I.wrapFn=F,F}z.prototype.once=function(v,L){return g(L),this.on(v,J(this,v,L)),this},z.prototype.prependOnceListener=function(v,L){return g(L),this.prependListener(v,J(this,v,L)),this},z.prototype.removeListener=function(v,L){var I,F,$,w,Q;if(g(L),F=this._events,F===void 0)return this;if(I=F[v],I===void 0)return this;if(I===L||I.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete F[v],F.removeListener&&this.emit("removeListener",v,I.listener||L));else if(typeof I!="function"){for($=-1,w=I.length-1;w>=0;w--)if(I[w]===L||I[w].listener===L){Q=I[w].listener,$=w;break}if($<0)return this;$===0?I.shift():V(I,$),I.length===1&&(F[v]=I[0]),F.removeListener!==void 0&&this.emit("removeListener",v,Q||L)}return this},z.prototype.off=z.prototype.removeListener,z.prototype.removeAllListeners=function(v){var L,I,F;if(I=this._events,I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[v]),this;if(arguments.length===0){var $=Object.keys(I),w;for(F=0;F<$.length;++F)w=$[F],w!=="removeListener"&&this.removeAllListeners(w);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=I[v],typeof L=="function")this.removeListener(v,L);else if(L!==void 0)for(F=L.length-1;F>=0;F--)this.removeListener(v,L[F]);return this};function oe(S,v,L){var I=S._events;if(I===void 0)return[];var F=I[v];return F===void 0?[]:typeof F=="function"?L?[F.listener||F]:[F]:L?we(F):o(F,F.length)}z.prototype.listeners=function(v){return oe(this,v,!0)},z.prototype.rawListeners=function(v){return oe(this,v,!1)},z.listenerCount=function(S,v){return typeof S.listenerCount=="function"?S.listenerCount(v):Y.call(S,v)},z.prototype.listenerCount=Y;function Y(S){var v=this._events;if(v!==void 0){var L=v[S];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}z.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function o(S,v){for(var L=new Array(v),I=0;I<v;++I)L[I]=S[I];return L}function V(S,v){for(;v+1<S.length;v++)S[v]=S[v+1];S.pop()}function we(S){for(var v=new Array(S.length),L=0;L<v.length;++L)v[L]=S[L].listener||S[L];return v}function q(S,v){return new Promise(function(L,I){function F(w){S.removeListener(v,$),I(w)}function $(){typeof S.removeListener=="function"&&S.removeListener("error",F),L([].slice.call(arguments))}_(S,v,$,{once:!0}),v!=="error"&&te(S,F,{once:!0})})}function te(S,v,L){typeof S.on=="function"&&_(S,"error",v,L)}function _(S,v,L,I){if(typeof S.on=="function")I.once?S.once(v,L):S.on(v,L);else if(typeof S.addEventListener=="function")S.addEventListener(v,function F($){I.once&&S.removeEventListener(v,F),L($)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof S)}},31561:function(dt,Ae,l){"use strict";l.d(Ae,{Z:function(){return $}});var a=l(54476),C=l(20068),P=l(42978),z=l(75931),y=l(35593),g=l(92310),he=l.n(g),de=l(8654),U=l(59301),J=l(10228),oe=l(16089),Y=J.Z.ESC,o=J.Z.TAB;function V(w){var Q=w.visible,se=w.triggerRef,ce=w.onVisibleChange,Le=w.autoFocus,Se=w.overlayRef,ke=U.useRef(!1),Ue=function(){if(Q){var Z,fe;(Z=se.current)===null||Z===void 0||(fe=Z.focus)===null||fe===void 0||fe.call(Z),ce==null||ce(!1)}},D=function(){var Z;return(Z=Se.current)!==null&&Z!==void 0&&Z.focus?(Se.current.focus(),ke.current=!0,!0):!1},Ve=function(Z){switch(Z.keyCode){case Y:Ue();break;case o:{var fe=!1;ke.current||(fe=D()),fe?Z.preventDefault():Ue();break}}};U.useEffect(function(){return Q?(window.addEventListener("keydown",Ve),Le&&(0,oe.Z)(D,3),function(){window.removeEventListener("keydown",Ve),ke.current=!1}):function(){ke.current=!1}},[Q])}var we=(0,U.forwardRef)(function(w,Q){var se=w.overlay,ce=w.arrow,Le=w.prefixCls,Se=(0,U.useMemo)(function(){var Ue;return typeof se=="function"?Ue=se():Ue=se,Ue},[se]),ke=(0,de.sQ)(Q,Se==null?void 0:Se.ref);return U.createElement(U.Fragment,null,ce&&U.createElement("div",{className:"".concat(Le,"-arrow")}),U.cloneElement(Se,{ref:(0,de.Yr)(Se)?ke:void 0}))}),q=we,te={adjustX:1,adjustY:1},_=[0,0],S={topLeft:{points:["bl","tl"],overflow:te,offset:[0,-4],targetOffset:_},top:{points:["bc","tc"],overflow:te,offset:[0,-4],targetOffset:_},topRight:{points:["br","tr"],overflow:te,offset:[0,-4],targetOffset:_},bottomLeft:{points:["tl","bl"],overflow:te,offset:[0,4],targetOffset:_},bottom:{points:["tc","bc"],overflow:te,offset:[0,4],targetOffset:_},bottomRight:{points:["tr","br"],overflow:te,offset:[0,4],targetOffset:_}},v=S,L=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function I(w,Q){var se,ce=w.arrow,Le=ce===void 0?!1:ce,Se=w.prefixCls,ke=Se===void 0?"rc-dropdown":Se,Ue=w.transitionName,D=w.animation,Ve=w.align,Ge=w.placement,Z=Ge===void 0?"bottomLeft":Ge,fe=w.placements,ie=fe===void 0?v:fe,ye=w.getPopupContainer,le=w.showAction,ue=w.hideAction,ve=w.overlayClassName,je=w.overlayStyle,Te=w.visible,Ze=w.trigger,We=Ze===void 0?["hover"]:Ze,it=w.autoFocus,Me=w.overlay,He=w.children,Ye=w.onVisibleChange,Je=(0,z.Z)(w,L),et=U.useState(),R=(0,P.Z)(et,2),E=R[0],s=R[1],c="visible"in w?Te:E,m=U.useRef(null),N=U.useRef(null),d=U.useRef(null);U.useImperativeHandle(Q,function(){return m.current});var p=function(Oe){s(Oe),Ye==null||Ye(Oe)};V({visible:c,triggerRef:d,onVisibleChange:p,autoFocus:it,overlayRef:N});var b=function(Oe){var Ce=w.onOverlayClick;s(!1),Ce&&Ce(Oe)},u=function(){return U.createElement(q,{ref:N,overlay:Me,prefixCls:ke,arrow:Le})},B=function(){return typeof Me=="function"?u:u()},W=function(){var Oe=w.minOverlayWidthMatchTrigger,Ce=w.alignPoint;return"minOverlayWidthMatchTrigger"in w?Oe:!Ce},pe=function(){var Oe=w.openClassName;return Oe!==void 0?Oe:"".concat(ke,"-open")},be=U.cloneElement(He,{className:he()((se=He.props)===null||se===void 0?void 0:se.className,c&&pe()),ref:(0,de.Yr)(He)?(0,de.sQ)(d,He.ref):void 0}),Fe=ue;return!Fe&&We.indexOf("contextMenu")!==-1&&(Fe=["click"]),U.createElement(y.Z,(0,a.Z)({builtinPlacements:ie},Je,{prefixCls:ke,ref:m,popupClassName:he()(ve,(0,C.Z)({},"".concat(ke,"-show-arrow"),Le)),popupStyle:je,action:We,showAction:le,hideAction:Fe,popupPlacement:Z,popupAlign:Ve,popupTransitionName:Ue,popupAnimation:D,popupVisible:c,stretch:W()?"minWidth":"",popup:B(),onPopupVisibleChange:p,onPopupClick:b,getPopupContainer:ye}),be)}var F=U.forwardRef(I),$=F},15285:function(dt,Ae,l){"use strict";l.d(Ae,{iz:function(){return me},ck:function(){return Re},BW:function(){return Ne},sN:function(){return Re},Wd:function(){return G},ZP:function(){return nt},Xl:function(){return se}});var a=l(54476),C=l(20068),P=l(33885),z=l(94480),y=l(42978),g=l(75931),he=l(92310),de=l.n(he),U=l(83836),J=l(18929),oe=l(13697),Y=l(48736),o=l(59301),V=l(4676),we=o.createContext(null);function q(A,x){return A===void 0?null:"".concat(A,"-").concat(x)}function te(A){var x=o.useContext(we);return q(x,A)}var _=l(80547),S=["children","locked"],v=o.createContext(null);function L(A,x){var k=(0,P.Z)({},A);return Object.keys(x).forEach(function(j){var O=x[j];O!==void 0&&(k[j]=O)}),k}function I(A){var x=A.children,k=A.locked,j=(0,g.Z)(A,S),O=o.useContext(v),M=(0,_.Z)(function(){return L(O,j)},[O,j],function(T,re){return!k&&(T[0]!==re[0]||!(0,oe.Z)(T[1],re[1],!0))});return o.createElement(v.Provider,{value:M},x)}var F=[],$=o.createContext(null);function w(){return o.useContext($)}var Q=o.createContext(F);function se(A){var x=o.useContext(Q);return o.useMemo(function(){return A!==void 0?[].concat((0,z.Z)(x),[A]):x},[x,A])}var ce=o.createContext(null),Le=o.createContext({}),Se=Le,ke=l(29194);function Ue(A){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,ke.Z)(A)){var k=A.nodeName.toLowerCase(),j=["input","select","textarea","button"].includes(k)||A.isContentEditable||k==="a"&&!!A.getAttribute("href"),O=A.getAttribute("tabindex"),M=Number(O),T=null;return O&&!Number.isNaN(M)?T=M:j&&T===null&&(T=0),j&&A.disabled&&(T=null),T!==null&&(T>=0||x&&T<0)}return!1}function D(A){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=(0,z.Z)(A.querySelectorAll("*")).filter(function(j){return Ue(j,x)});return Ue(A,x)&&k.unshift(A),k}var Ve=null;function Ge(){Ve=document.activeElement}function Z(){Ve=null}function fe(){if(Ve)try{Ve.focus()}catch(A){}}function ie(A,x){if(x.keyCode===9){var k=D(A),j=k[x.shiftKey?0:k.length-1],O=j===document.activeElement||A===document.activeElement;if(O){var M=k[x.shiftKey?k.length-1:0];M.focus(),x.preventDefault()}}}var ye=l(10228),le=l(16089),ue=ye.Z.LEFT,ve=ye.Z.RIGHT,je=ye.Z.UP,Te=ye.Z.DOWN,Ze=ye.Z.ENTER,We=ye.Z.ESC,it=ye.Z.HOME,Me=ye.Z.END,He=[je,Te,ue,ve];function Ye(A,x,k,j){var O,M,T,re,Ie="prev",xe="next",Ke="children",Pe="parent";if(A==="inline"&&j===Ze)return{inlineTrigger:!0};var st=(O={},(0,C.Z)(O,je,Ie),(0,C.Z)(O,Te,xe),O),ct=(M={},(0,C.Z)(M,ue,k?xe:Ie),(0,C.Z)(M,ve,k?Ie:xe),(0,C.Z)(M,Te,Ke),(0,C.Z)(M,Ze,Ke),M),at=(T={},(0,C.Z)(T,je,Ie),(0,C.Z)(T,Te,xe),(0,C.Z)(T,Ze,Ke),(0,C.Z)(T,We,Pe),(0,C.Z)(T,ue,k?Ke:Pe),(0,C.Z)(T,ve,k?Pe:Ke),T),Dt={inline:st,horizontal:ct,vertical:at,inlineSub:st,horizontalSub:at,verticalSub:at},Bt=(re=Dt["".concat(A).concat(x?"":"Sub")])===null||re===void 0?void 0:re[j];switch(Bt){case Ie:return{offset:-1,sibling:!0};case xe:return{offset:1,sibling:!0};case Pe:return{offset:-1,sibling:!1};case Ke:return{offset:1,sibling:!1};default:return null}}function Je(A){for(var x=A;x;){if(x.getAttribute("data-menu-list"))return x;x=x.parentElement}return null}function et(A,x){for(var k=A||document.activeElement;k;){if(x.has(k))return k;k=k.parentElement}return null}function R(A,x){var k=D(A,!0);return k.filter(function(j){return x.has(j)})}function E(A,x,k){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!A)return null;var O=R(A,x),M=O.length,T=O.findIndex(function(re){return k===re});return j<0?T===-1?T=M-1:T-=1:j>0&&(T+=1),T=(T+M)%M,O[T]}var s=function(x,k){var j=new Set,O=new Map,M=new Map;return x.forEach(function(T){var re=document.querySelector("[data-menu-id='".concat(q(k,T),"']"));re&&(j.add(re),M.set(re,T),O.set(T,re))}),{elements:j,key2element:O,element2key:M}};function c(A,x,k,j,O,M,T,re,Ie,xe){var Ke=o.useRef(),Pe=o.useRef();Pe.current=x;var st=function(){le.Z.cancel(Ke.current)};return o.useEffect(function(){return function(){st()}},[]),function(ct){var at=ct.which;if([].concat(He,[Ze,We,it,Me]).includes(at)){var Dt=M(),Bt=s(Dt,j),Ot=Bt,ht=Ot.elements,lt=Ot.key2element,ot=Ot.element2key,Ct=lt.get(x),pt=et(Ct,ht),Pt=ot.get(pt),yt=Ye(A,T(Pt,!0).length===1,k,at);if(!yt&&at!==it&&at!==Me)return;(He.includes(at)||[it,Me].includes(at))&&ct.preventDefault();var tn=function(Ht){if(Ht){var nn=Ht,rn=Ht.querySelector("a");rn!=null&&rn.getAttribute("href")&&(nn=rn);var sn=ot.get(Ht);re(sn),st(),Ke.current=(0,le.Z)(function(){Pe.current===sn&&nn.focus()})}};if([it,Me].includes(at)||yt.sibling||!pt){var At;!pt||A==="inline"?At=O.current:At=Je(pt);var Gt,Ut=R(At,ht);at===it?Gt=Ut[0]:at===Me?Gt=Ut[Ut.length-1]:Gt=E(At,ht,pt,yt.offset),tn(Gt)}else if(yt.inlineTrigger)Ie(Pt);else if(yt.offset>0)Ie(Pt,!0),st(),Ke.current=(0,le.Z)(function(){Bt=s(Dt,j);var un=pt.getAttribute("aria-controls"),Ht=document.getElementById(un),nn=E(Ht,Bt.elements);tn(nn)},5);else if(yt.offset<0){var zt=T(Pt,!0),Yt=zt[zt.length-2],Qt=lt.get(Yt);Ie(Yt,!1),tn(Qt)}}xe==null||xe(ct)}}function m(A){Promise.resolve().then(A)}var N="__RC_UTIL_PATH_SPLIT__",d=function(x){return x.join(N)},p=function(x){return x.split(N)},b="rc-menu-more";function u(){var A=o.useState({}),x=(0,y.Z)(A,2),k=x[1],j=(0,o.useRef)(new Map),O=(0,o.useRef)(new Map),M=o.useState([]),T=(0,y.Z)(M,2),re=T[0],Ie=T[1],xe=(0,o.useRef)(0),Ke=(0,o.useRef)(!1),Pe=function(){Ke.current||k({})},st=(0,o.useCallback)(function(lt,ot){var Ct=d(ot);O.current.set(Ct,lt),j.current.set(lt,Ct),xe.current+=1;var pt=xe.current;m(function(){pt===xe.current&&Pe()})},[]),ct=(0,o.useCallback)(function(lt,ot){var Ct=d(ot);O.current.delete(Ct),j.current.delete(lt)},[]),at=(0,o.useCallback)(function(lt){Ie(lt)},[]),Dt=(0,o.useCallback)(function(lt,ot){var Ct=j.current.get(lt)||"",pt=p(Ct);return ot&&re.includes(pt[0])&&pt.unshift(b),pt},[re]),Bt=(0,o.useCallback)(function(lt,ot){return lt.some(function(Ct){var pt=Dt(Ct,!0);return pt.includes(ot)})},[Dt]),Ot=function(){var ot=(0,z.Z)(j.current.keys());return re.length&&ot.push(b),ot},ht=(0,o.useCallback)(function(lt){var ot="".concat(j.current.get(lt)).concat(N),Ct=new Set;return(0,z.Z)(O.current.keys()).forEach(function(pt){pt.startsWith(ot)&&Ct.add(O.current.get(pt))}),Ct},[]);return o.useEffect(function(){return function(){Ke.current=!0}},[]),{registerPath:st,unregisterPath:ct,refreshOverflowKeys:at,isSubPathKey:Bt,getKeyPath:Dt,getKeys:Ot,getSubPathKeys:ht}}function B(A){var x=o.useRef(A);x.current=A;var k=o.useCallback(function(){for(var j,O=arguments.length,M=new Array(O),T=0;T<O;T++)M[T]=arguments[T];return(j=x.current)===null||j===void 0?void 0:j.call.apply(j,[x].concat(M))},[]);return A?k:void 0}var W=Math.random().toFixed(5).toString().slice(2),pe=0;function be(A){var x=(0,J.Z)(A,{value:A}),k=(0,y.Z)(x,2),j=k[0],O=k[1];return o.useEffect(function(){pe+=1;var M="".concat(W,"-").concat(pe);O("rc-menu-uuid-".concat(M))},[]),j}var Fe=l(67732),_e=l(83652),Oe=l(42403),Ce=l(158),ut=l(2738),gt=l(8654);function K(A,x,k,j){var O=o.useContext(v),M=O.activeKey,T=O.onActive,re=O.onInactive,Ie={active:M===A};return x||(Ie.onMouseEnter=function(xe){k==null||k({key:A,domEvent:xe}),T(A)},Ie.onMouseLeave=function(xe){j==null||j({key:A,domEvent:xe}),re(A)}),Ie}function bt(A){var x=o.useContext(v),k=x.mode,j=x.rtl,O=x.inlineIndent;if(k!=="inline")return null;var M=A;return j?{paddingRight:M*O}:{paddingLeft:M*O}}function mt(A){var x=A.icon,k=A.props,j=A.children,O;return x===null||x===!1?null:(typeof x=="function"?O=o.createElement(x,(0,P.Z)({},k)):typeof x!="boolean"&&(O=x),O||j||null)}var xt=["item"];function qe(A){var x=A.item,k=(0,g.Z)(A,xt);return Object.defineProperty(k,"item",{get:function(){return(0,Y.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),x}}),k}var wt=["title","attribute","elementRef"],Tt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ft=["active"],Et=function(A){(0,Oe.Z)(k,A);var x=(0,Ce.Z)(k);function k(){return(0,Fe.Z)(this,k),x.apply(this,arguments)}return(0,_e.Z)(k,[{key:"render",value:function(){var O=this.props,M=O.title,T=O.attribute,re=O.elementRef,Ie=(0,g.Z)(O,wt),xe=(0,ut.Z)(Ie,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Y.ZP)(!T,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(U.Z.Item,(0,a.Z)({},T,{title:typeof M=="string"?M:void 0},xe,{ref:re}))}}]),k}(o.Component),Zt=o.forwardRef(function(A,x){var k,j=A.style,O=A.className,M=A.eventKey,T=A.warnKey,re=A.disabled,Ie=A.itemIcon,xe=A.children,Ke=A.role,Pe=A.onMouseEnter,st=A.onMouseLeave,ct=A.onClick,at=A.onKeyDown,Dt=A.onFocus,Bt=(0,g.Z)(A,Tt),Ot=te(M),ht=o.useContext(v),lt=ht.prefixCls,ot=ht.onItemClick,Ct=ht.disabled,pt=ht.overflowDisabled,Pt=ht.itemIcon,yt=ht.selectedKeys,tn=ht.onActive,At=o.useContext(Se),Gt=At._internalRenderMenuItem,Ut="".concat(lt,"-item"),zt=o.useRef(),Yt=o.useRef(),Qt=Ct||re,un=(0,gt.x1)(x,Yt),Ht=se(M),nn=function(jt){return{key:M,keyPath:(0,z.Z)(Ht).reverse(),item:zt.current,domEvent:jt}},rn=Ie||Pt,sn=K(M,Qt,Pe,st),mn=sn.active,pn=(0,g.Z)(sn,Ft),cn=yt.includes(M),gn=bt(Ht.length),_n=function(jt){if(!Qt){var an=nn(jt);ct==null||ct(qe(an)),ot(an)}},Vt=function(jt){if(at==null||at(jt),jt.which===ye.Z.ENTER){var an=nn(jt);ct==null||ct(qe(an)),ot(an)}},Jt=function(jt){tn(M),Dt==null||Dt(jt)},Sn={};A.role==="option"&&(Sn["aria-selected"]=cn);var vn=o.createElement(Et,(0,a.Z)({ref:zt,elementRef:un,role:Ke===null?"none":Ke||"menuitem",tabIndex:re?null:-1,"data-menu-id":pt&&Ot?null:Ot},Bt,pn,Sn,{component:"li","aria-disabled":re,style:(0,P.Z)((0,P.Z)({},gn),j),className:de()(Ut,(k={},(0,C.Z)(k,"".concat(Ut,"-active"),mn),(0,C.Z)(k,"".concat(Ut,"-selected"),cn),(0,C.Z)(k,"".concat(Ut,"-disabled"),Qt),k),O),onClick:_n,onKeyDown:Vt,onFocus:Jt}),xe,o.createElement(mt,{props:(0,P.Z)((0,P.Z)({},A),{},{isSelected:cn}),icon:rn}));return Gt&&(vn=Gt(vn,A,{selected:cn})),vn});function Kt(A,x){var k=A.eventKey,j=w(),O=se(k);return o.useEffect(function(){if(j)return j.registerPath(k,O),function(){j.unregisterPath(k,O)}},[O]),j?null:o.createElement(Zt,(0,a.Z)({},A,{ref:x}))}var Re=o.forwardRef(Kt),Qe=["className","children"],Rt=function(x,k){var j=x.className,O=x.children,M=(0,g.Z)(x,Qe),T=o.useContext(v),re=T.prefixCls,Ie=T.mode,xe=T.rtl;return o.createElement("ul",(0,a.Z)({className:de()(re,xe&&"".concat(re,"-rtl"),"".concat(re,"-sub"),"".concat(re,"-").concat(Ie==="inline"?"inline":"vertical"),j),role:"menu"},M,{"data-menu-list":!0,ref:k}),O)},_t=o.forwardRef(Rt);_t.displayName="SubMenuList";var Nt=_t,Mt=l(11592);function kt(A,x){return(0,Mt.Z)(A).map(function(k,j){if(o.isValidElement(k)){var O,M,T=k.key,re=(O=(M=k.props)===null||M===void 0?void 0:M.eventKey)!==null&&O!==void 0?O:T,Ie=re==null;Ie&&(re="tmp_key-".concat([].concat((0,z.Z)(x),[j]).join("-")));var xe={key:re,eventKey:re};return o.cloneElement(k,xe)}return k})}var Lt=l(35593),tt={adjustX:1,adjustY:1},rt={topLeft:{points:["bl","tl"],overflow:tt},topRight:{points:["br","tr"],overflow:tt},bottomLeft:{points:["tl","bl"],overflow:tt},bottomRight:{points:["tr","br"],overflow:tt},leftTop:{points:["tr","tl"],overflow:tt},leftBottom:{points:["br","bl"],overflow:tt},rightTop:{points:["tl","tr"],overflow:tt},rightBottom:{points:["bl","br"],overflow:tt}},dn={topLeft:{points:["bl","tl"],overflow:tt},topRight:{points:["br","tr"],overflow:tt},bottomLeft:{points:["tl","bl"],overflow:tt},bottomRight:{points:["tr","br"],overflow:tt},rightTop:{points:["tr","tl"],overflow:tt},rightBottom:{points:["br","bl"],overflow:tt},leftTop:{points:["tl","tr"],overflow:tt},leftBottom:{points:["bl","br"],overflow:tt}},H=null;function e(A,x,k){if(x)return x;if(k)return k[A]||k.other}var t={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function n(A){var x=A.prefixCls,k=A.visible,j=A.children,O=A.popup,M=A.popupStyle,T=A.popupClassName,re=A.popupOffset,Ie=A.disabled,xe=A.mode,Ke=A.onVisibleChange,Pe=o.useContext(v),st=Pe.getPopupContainer,ct=Pe.rtl,at=Pe.subMenuOpenDelay,Dt=Pe.subMenuCloseDelay,Bt=Pe.builtinPlacements,Ot=Pe.triggerSubMenuAction,ht=Pe.forceSubMenuRender,lt=Pe.rootClassName,ot=Pe.motion,Ct=Pe.defaultMotions,pt=o.useState(!1),Pt=(0,y.Z)(pt,2),yt=Pt[0],tn=Pt[1],At=ct?(0,P.Z)((0,P.Z)({},dn),Bt):(0,P.Z)((0,P.Z)({},rt),Bt),Gt=t[xe],Ut=e(xe,ot,Ct),zt=o.useRef(Ut);xe!=="inline"&&(zt.current=Ut);var Yt=(0,P.Z)((0,P.Z)({},zt.current),{},{leavedClassName:"".concat(x,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Qt=o.useRef();return o.useEffect(function(){return Qt.current=(0,le.Z)(function(){tn(k)}),function(){le.Z.cancel(Qt.current)}},[k]),o.createElement(Lt.Z,{prefixCls:x,popupClassName:de()("".concat(x,"-popup"),(0,C.Z)({},"".concat(x,"-rtl"),ct),T,lt),stretch:xe==="horizontal"?"minWidth":null,getPopupContainer:st,builtinPlacements:At,popupPlacement:Gt,popupVisible:yt,popup:O,popupStyle:M,popupAlign:re&&{offset:re},action:Ie?[]:[Ot],mouseEnterDelay:at,mouseLeaveDelay:Dt,onPopupVisibleChange:Ke,forceRender:ht,popupMotion:Yt,fresh:!0},j)}var i=l(77900);function r(A){var x=A.id,k=A.open,j=A.keyPath,O=A.children,M="inline",T=o.useContext(v),re=T.prefixCls,Ie=T.forceSubMenuRender,xe=T.motion,Ke=T.defaultMotions,Pe=T.mode,st=o.useRef(!1);st.current=Pe===M;var ct=o.useState(!st.current),at=(0,y.Z)(ct,2),Dt=at[0],Bt=at[1],Ot=st.current?k:!1;o.useEffect(function(){st.current&&Bt(!1)},[Pe]);var ht=(0,P.Z)({},e(M,xe,Ke));j.length>1&&(ht.motionAppear=!1);var lt=ht.onVisibleChanged;return ht.onVisibleChanged=function(ot){return!st.current&&!ot&&Bt(!0),lt==null?void 0:lt(ot)},Dt?null:o.createElement(I,{mode:M,locked:!st.current},o.createElement(i.default,(0,a.Z)({visible:Ot},ht,{forceRender:Ie,removeOnLeave:!1,leavedClassName:"".concat(re,"-hidden")}),function(ot){var Ct=ot.className,pt=ot.style;return o.createElement(Nt,{id:x,className:Ct,style:pt},O)}))}var h=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],f=["active"],ee=function(x){var k,j=x.style,O=x.className,M=x.title,T=x.eventKey,re=x.warnKey,Ie=x.disabled,xe=x.internalPopupClose,Ke=x.children,Pe=x.itemIcon,st=x.expandIcon,ct=x.popupClassName,at=x.popupOffset,Dt=x.popupStyle,Bt=x.onClick,Ot=x.onMouseEnter,ht=x.onMouseLeave,lt=x.onTitleClick,ot=x.onTitleMouseEnter,Ct=x.onTitleMouseLeave,pt=(0,g.Z)(x,h),Pt=te(T),yt=o.useContext(v),tn=yt.prefixCls,At=yt.mode,Gt=yt.openKeys,Ut=yt.disabled,zt=yt.overflowDisabled,Yt=yt.activeKey,Qt=yt.selectedKeys,un=yt.itemIcon,Ht=yt.expandIcon,nn=yt.onItemClick,rn=yt.onOpenChange,sn=yt.onActive,mn=o.useContext(Se),pn=mn._internalRenderSubMenuItem,cn=o.useContext(ce),gn=cn.isSubPathKey,_n=se(),Vt="".concat(tn,"-submenu"),Jt=Ut||Ie,Sn=o.useRef(),vn=o.useRef(),En=Pe!=null?Pe:un,jt=st!=null?st:Ht,an=Gt.includes(T),hn=!zt&&an,Fn=gn(Qt,T),xn=K(T,Jt,ot,Ct),yn=xn.active,Zn=(0,g.Z)(xn,f),qn=o.useState(!1),Kn=(0,y.Z)(qn,2),Bn=Kn[0],Mn=Kn[1],$n=function(en){Jt||Mn(en)},on=function(en){$n(!0),Ot==null||Ot({key:T,domEvent:en})},Hn=function(en){$n(!1),ht==null||ht({key:T,domEvent:en})},In=o.useMemo(function(){return yn||(At!=="inline"?Bn||gn([Yt],T):!1)},[At,yn,Yt,Bn,T,gn]),Nn=bt(_n.length),Vn=function(en){Jt||(lt==null||lt({key:T,domEvent:en}),At==="inline"&&rn(T,!an))},An=B(function(ln){Bt==null||Bt(qe(ln)),nn(ln)}),Ln=function(en){At!=="inline"&&rn(T,en)},Dn=function(){sn(T)},On=Pt&&"".concat(Pt,"-popup"),wn=o.createElement("div",(0,a.Z)({role:"menuitem",style:Nn,className:"".concat(Vt,"-title"),tabIndex:Jt?null:-1,ref:Sn,title:typeof M=="string"?M:null,"data-menu-id":zt&&Pt?null:Pt,"aria-expanded":hn,"aria-haspopup":!0,"aria-controls":On,"aria-disabled":Jt,onClick:Vn,onFocus:Dn},Zn),M,o.createElement(mt,{icon:At!=="horizontal"?jt:void 0,props:(0,P.Z)((0,P.Z)({},x),{},{isOpen:hn,isSubMenu:!0})},o.createElement("i",{className:"".concat(Vt,"-arrow")}))),qt=o.useRef(At);if(At!=="inline"&&_n.length>1?qt.current="vertical":qt.current=At,!zt){var Rn=qt.current;wn=o.createElement(n,{mode:Rn,prefixCls:Vt,visible:!xe&&hn&&At!=="inline",popupClassName:ct,popupOffset:at,popupStyle:Dt,popup:o.createElement(I,{mode:Rn==="horizontal"?"vertical":Rn},o.createElement(Nt,{id:On,ref:vn},Ke)),disabled:Jt,onVisibleChange:Ln},wn)}var bn=o.createElement(U.Z.Item,(0,a.Z)({role:"none"},pt,{component:"li",style:j,className:de()(Vt,"".concat(Vt,"-").concat(At),O,(k={},(0,C.Z)(k,"".concat(Vt,"-open"),hn),(0,C.Z)(k,"".concat(Vt,"-active"),In),(0,C.Z)(k,"".concat(Vt,"-selected"),Fn),(0,C.Z)(k,"".concat(Vt,"-disabled"),Jt),k)),onMouseEnter:on,onMouseLeave:Hn}),wn,!zt&&o.createElement(r,{id:On,open:hn,keyPath:_n},Ke));return pn&&(bn=pn(bn,x,{selected:Fn,active:In,open:hn,disabled:Jt})),o.createElement(I,{onItemClick:An,mode:At==="horizontal"?"vertical":At,itemIcon:En,expandIcon:jt},bn)};function G(A){var x=A.eventKey,k=A.children,j=se(x),O=kt(k,j),M=w();o.useEffect(function(){if(M)return M.registerPath(x,j),function(){M.unregisterPath(x,j)}},[j]);var T;return M?T=O:T=o.createElement(ee,A,O),o.createElement(Q.Provider,{value:j},T)}var ge=l(76190),$e=["className","title","eventKey","children"],ze=["children"],ae=function(x){var k=x.className,j=x.title,O=x.eventKey,M=x.children,T=(0,g.Z)(x,$e),re=o.useContext(v),Ie=re.prefixCls,xe="".concat(Ie,"-item-group");return o.createElement("li",(0,a.Z)({role:"presentation"},T,{onClick:function(Pe){return Pe.stopPropagation()},className:de()(xe,k)}),o.createElement("div",{role:"presentation",className:"".concat(xe,"-title"),title:typeof j=="string"?j:void 0},j),o.createElement("ul",{role:"group",className:"".concat(xe,"-list")},M))};function Ne(A){var x=A.children,k=(0,g.Z)(A,ze),j=se(k.eventKey),O=kt(x,j),M=w();return M?O:o.createElement(ae,(0,ut.Z)(k,["warnKey"]),O)}function me(A){var x=A.className,k=A.style,j=o.useContext(v),O=j.prefixCls,M=w();return M?null:o.createElement("li",{role:"separator",className:de()("".concat(O,"-item-divider"),x),style:k})}var X=["label","children","key","type"];function ne(A){return(A||[]).map(function(x,k){if(x&&(0,ge.Z)(x)==="object"){var j=x,O=j.label,M=j.children,T=j.key,re=j.type,Ie=(0,g.Z)(j,X),xe=T!=null?T:"tmp-".concat(k);return M||re==="group"?re==="group"?o.createElement(Ne,(0,a.Z)({key:xe},Ie,{title:O}),ne(M)):o.createElement(G,(0,a.Z)({key:xe},Ie,{title:O}),ne(M)):re==="divider"?o.createElement(me,(0,a.Z)({key:xe},Ie)):o.createElement(Re,(0,a.Z)({key:xe},Ie),O)}return null}).filter(function(x){return x})}function Be(A,x,k){var j=A;return x&&(j=ne(x)),kt(j,k)}var De=["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"],Xe=[],$t=o.forwardRef(function(A,x){var k,j,O=A,M=O.prefixCls,T=M===void 0?"rc-menu":M,re=O.rootClassName,Ie=O.style,xe=O.className,Ke=O.tabIndex,Pe=Ke===void 0?0:Ke,st=O.items,ct=O.children,at=O.direction,Dt=O.id,Bt=O.mode,Ot=Bt===void 0?"vertical":Bt,ht=O.inlineCollapsed,lt=O.disabled,ot=O.disabledOverflow,Ct=O.subMenuOpenDelay,pt=Ct===void 0?.1:Ct,Pt=O.subMenuCloseDelay,yt=Pt===void 0?.1:Pt,tn=O.forceSubMenuRender,At=O.defaultOpenKeys,Gt=O.openKeys,Ut=O.activeKey,zt=O.defaultActiveFirst,Yt=O.selectable,Qt=Yt===void 0?!0:Yt,un=O.multiple,Ht=un===void 0?!1:un,nn=O.defaultSelectedKeys,rn=O.selectedKeys,sn=O.onSelect,mn=O.onDeselect,pn=O.inlineIndent,cn=pn===void 0?24:pn,gn=O.motion,_n=O.defaultMotions,Vt=O.triggerSubMenuAction,Jt=Vt===void 0?"hover":Vt,Sn=O.builtinPlacements,vn=O.itemIcon,En=O.expandIcon,jt=O.overflowedIndicator,an=jt===void 0?"...":jt,hn=O.overflowedIndicatorPopupClassName,Fn=O.getPopupContainer,xn=O.onClick,yn=O.onOpenChange,Zn=O.onKeyDown,qn=O.openAnimation,Kn=O.openTransitionName,Bn=O._internalRenderMenuItem,Mn=O._internalRenderSubMenuItem,$n=(0,g.Z)(O,De),on=o.useMemo(function(){return Be(ct,st,Xe)},[ct,st]),Hn=o.useState(!1),In=(0,y.Z)(Hn,2),Nn=In[0],Vn=In[1],An=o.useRef(),Ln=be(Dt),Dn=at==="rtl",On=(0,J.Z)(At,{value:Gt,postState:function(ft){return ft||Xe}}),wn=(0,y.Z)(On,2),qt=wn[0],Rn=wn[1],bn=function(ft){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Wt(){Rn(ft),yn==null||yn(ft)}St?(0,V.flushSync)(Wt):Wt()},ln=o.useState(qt),en=(0,y.Z)(ln,2),mi=en[0],pi=en[1],Gn=o.useRef(!1),gi=o.useMemo(function(){return(Ot==="inline"||Ot==="vertical")&&ht?["vertical",ht]:[Ot,!1]},[Ot,ht]),ei=(0,y.Z)(gi,2),Pn=ei[0],Wn=ei[1],ti=Pn==="inline",_i=o.useState(Pn),ni=(0,y.Z)(_i,2),fn=ni[0],vi=ni[1],Ei=o.useState(Wn),ii=(0,y.Z)(Ei,2),yi=ii[0],bi=ii[1];o.useEffect(function(){vi(Pn),bi(Wn),Gn.current&&(ti?Rn(mi):bn(Xe))},[Pn,Wn]);var Ci=o.useState(0),ri=(0,y.Z)(Ci,2),Un=ri[0],Si=ri[1],Xn=Un>=on.length-1||fn!=="horizontal"||ot;o.useEffect(function(){ti&&pi(qt)},[qt]),o.useEffect(function(){return Gn.current=!0,function(){Gn.current=!1}},[]);var Cn=u(),si=Cn.registerPath,ai=Cn.unregisterPath,xi=Cn.refreshOverflowKeys,oi=Cn.isSubPathKey,Ai=Cn.getKeyPath,li=Cn.getKeys,wi=Cn.getSubPathKeys,Ri=o.useMemo(function(){return{registerPath:si,unregisterPath:ai}},[si,ai]),Bi=o.useMemo(function(){return{isSubPathKey:oi}},[oi]);o.useEffect(function(){xi(Xn?Xe:on.slice(Un+1).map(function(It){return It.key}))},[Un,Xn]);var Ii=(0,J.Z)(Ut||zt&&((k=on[0])===null||k===void 0?void 0:k.key),{value:Ut}),ui=(0,y.Z)(Ii,2),kn=ui[0],Yn=ui[1],Li=B(function(It){Yn(It)}),Di=B(function(){Yn(void 0)});(0,o.useImperativeHandle)(x,function(){return{list:An.current,focus:function(ft){var St,Wt=li(),Xt=s(Wt,Ln),jn=Xt.elements,Qn=Xt.key2element,zi=Xt.element2key,hi=R(An.current,jn),fi=kn!=null?kn:hi[0]?zi.get(hi[0]):(St=on.find(function(ji){return!ji.props.disabled}))===null||St===void 0?void 0:St.key,Tn=Qn.get(fi);if(fi&&Tn){var Jn;Tn==null||(Jn=Tn.focus)===null||Jn===void 0||Jn.call(Tn,ft)}}}});var Oi=(0,J.Z)(nn||[],{value:rn,postState:function(ft){return Array.isArray(ft)?ft:ft==null?Xe:[ft]}}),di=(0,y.Z)(Oi,2),zn=di[0],ki=di[1],Ti=function(ft){if(Qt){var St=ft.key,Wt=zn.includes(St),Xt;Ht?Wt?Xt=zn.filter(function(Qn){return Qn!==St}):Xt=[].concat((0,z.Z)(zn),[St]):Xt=[St],ki(Xt);var jn=(0,P.Z)((0,P.Z)({},ft),{},{selectedKeys:Xt});Wt?mn==null||mn(jn):sn==null||sn(jn)}!Ht&&qt.length&&fn!=="inline"&&bn(Xe)},Fi=B(function(It){xn==null||xn(qe(It)),Ti(It)}),ci=B(function(It,ft){var St=qt.filter(function(Xt){return Xt!==It});if(ft)St.push(It);else if(fn!=="inline"){var Wt=wi(It);St=St.filter(function(Xt){return!Wt.has(Xt)})}(0,oe.Z)(qt,St,!0)||bn(St,!0)}),Mi=function(ft,St){var Wt=St!=null?St:!qt.includes(ft);ci(ft,Wt)},$i=c(fn,kn,Dn,Ln,An,li,Ai,Yn,Mi,Zn);o.useEffect(function(){Vn(!0)},[]);var Ni=o.useMemo(function(){return{_internalRenderMenuItem:Bn,_internalRenderSubMenuItem:Mn}},[Bn,Mn]),Pi=fn!=="horizontal"||ot?on:on.map(function(It,ft){return o.createElement(I,{key:It.key,overflowDisabled:ft>Un},It)}),Ui=o.createElement(U.Z,(0,a.Z)({id:Dt,ref:An,prefixCls:"".concat(T,"-overflow"),component:"ul",itemComponent:Re,className:de()(T,"".concat(T,"-root"),"".concat(T,"-").concat(fn),xe,(j={},(0,C.Z)(j,"".concat(T,"-inline-collapsed"),yi),(0,C.Z)(j,"".concat(T,"-rtl"),Dn),j),re),dir:at,style:Ie,role:"menu",tabIndex:Pe,data:Pi,renderRawItem:function(ft){return ft},renderRawRest:function(ft){var St=ft.length,Wt=St?on.slice(-St):null;return o.createElement(G,{eventKey:b,title:an,disabled:Xn,internalPopupClose:St===0,popupClassName:hn},Wt)},maxCount:fn!=="horizontal"||ot?U.Z.INVALIDATE:U.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ft){Si(ft)},onKeyDown:$i},$n));return o.createElement(Se.Provider,{value:Ni},o.createElement(we.Provider,{value:Ln},o.createElement(I,{prefixCls:T,rootClassName:re,mode:fn,openKeys:qt,rtl:Dn,disabled:lt,motion:Nn?gn:null,defaultMotions:Nn?_n:null,activeKey:kn,onActive:Li,onInactive:Di,selectedKeys:zn,inlineIndent:cn,subMenuOpenDelay:pt,subMenuCloseDelay:yt,forceSubMenuRender:tn,builtinPlacements:Sn,triggerSubMenuAction:Jt,getPopupContainer:Fn,itemIcon:vn,expandIcon:En,onItemClick:Fi,onOpenChange:ci},o.createElement(ce.Provider,{value:Bi},Ui),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement($.Provider,{value:Ri},on)))))}),vt=$t,Ee=vt;Ee.Item=Re,Ee.SubMenu=G,Ee.ItemGroup=Ne,Ee.Divider=me;var nt=Ee},83836:function(dt,Ae,l){"use strict";l.d(Ae,{Z:function(){return Ge}});var a=l(54476),C=l(33885),P=l(42978),z=l(75931),y=l(59301),g=l(92310),he=l.n(g),de=l(29301),U=l(34280),J=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],oe=void 0;function Y(Z,fe){var ie=Z.prefixCls,ye=Z.invalidate,le=Z.item,ue=Z.renderItem,ve=Z.responsive,je=Z.responsiveDisabled,Te=Z.registerSize,Ze=Z.itemKey,We=Z.className,it=Z.style,Me=Z.children,He=Z.display,Ye=Z.order,Je=Z.component,et=Je===void 0?"div":Je,R=(0,z.Z)(Z,J),E=ve&&!He;function s(p){Te(Ze,p)}y.useEffect(function(){return function(){s(null)}},[]);var c=ue&&le!==oe?ue(le,{index:Ye}):Me,m;ye||(m={opacity:E?0:1,height:E?0:oe,overflowY:E?"hidden":oe,order:ve?Ye:oe,pointerEvents:E?"none":oe,position:E?"absolute":oe});var N={};E&&(N["aria-hidden"]=!0);var d=y.createElement(et,(0,a.Z)({className:he()(!ye&&ie,We),style:(0,C.Z)((0,C.Z)({},m),it)},N,R,{ref:fe}),c);return ve&&(d=y.createElement(de.Z,{onResize:function(b){var u=b.offsetWidth;s(u)},disabled:je},d)),d}var o=y.forwardRef(Y);o.displayName="Item";var V=o,we=l(6089),q=l(4676),te=l(16089);function _(Z){if(typeof MessageChannel=="undefined")(0,te.Z)(Z);else{var fe=new MessageChannel;fe.port1.onmessage=function(){return Z()},fe.port2.postMessage(void 0)}}function S(){var Z=y.useRef(null),fe=function(ye){Z.current||(Z.current=[],_(function(){(0,q.unstable_batchedUpdates)(function(){Z.current.forEach(function(le){le()}),Z.current=null})})),Z.current.push(ye)};return fe}function v(Z,fe){var ie=y.useState(fe),ye=(0,P.Z)(ie,2),le=ye[0],ue=ye[1],ve=(0,we.Z)(function(je){Z(function(){ue(je)})});return[le,ve]}var L=y.createContext(null),I=["component"],F=["className"],$=["className"],w=function(fe,ie){var ye=y.useContext(L);if(!ye){var le=fe.component,ue=le===void 0?"div":le,ve=(0,z.Z)(fe,I);return y.createElement(ue,(0,a.Z)({},ve,{ref:ie}))}var je=ye.className,Te=(0,z.Z)(ye,F),Ze=fe.className,We=(0,z.Z)(fe,$);return y.createElement(L.Provider,{value:null},y.createElement(V,(0,a.Z)({ref:ie,className:he()(je,Ze)},Te,We)))},Q=y.forwardRef(w);Q.displayName="RawItem";var se=Q,ce=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Le="responsive",Se="invalidate";function ke(Z){return"+ ".concat(Z.length," ...")}function Ue(Z,fe){var ie=Z.prefixCls,ye=ie===void 0?"rc-overflow":ie,le=Z.data,ue=le===void 0?[]:le,ve=Z.renderItem,je=Z.renderRawItem,Te=Z.itemKey,Ze=Z.itemWidth,We=Ze===void 0?10:Ze,it=Z.ssr,Me=Z.style,He=Z.className,Ye=Z.maxCount,Je=Z.renderRest,et=Z.renderRawRest,R=Z.prefix,E=Z.suffix,s=Z.component,c=s===void 0?"div":s,m=Z.itemComponent,N=Z.onVisibleChange,d=(0,z.Z)(Z,ce),p=it==="full",b=S(),u=v(b,null),B=(0,P.Z)(u,2),W=B[0],pe=B[1],be=W||0,Fe=v(b,new Map),_e=(0,P.Z)(Fe,2),Oe=_e[0],Ce=_e[1],ut=v(b,0),gt=(0,P.Z)(ut,2),K=gt[0],bt=gt[1],mt=v(b,0),xt=(0,P.Z)(mt,2),qe=xt[0],wt=xt[1],Tt=v(b,0),Ft=(0,P.Z)(Tt,2),Et=Ft[0],Zt=Ft[1],Kt=v(b,0),Re=(0,P.Z)(Kt,2),Qe=Re[0],Rt=Re[1],_t=(0,y.useState)(null),Nt=(0,P.Z)(_t,2),Mt=Nt[0],kt=Nt[1],Lt=(0,y.useState)(null),tt=(0,P.Z)(Lt,2),rt=tt[0],dn=tt[1],H=y.useMemo(function(){return rt===null&&p?Number.MAX_SAFE_INTEGER:rt||0},[rt,W]),e=(0,y.useState)(!1),t=(0,P.Z)(e,2),n=t[0],i=t[1],r="".concat(ye,"-item"),h=Math.max(K,qe),f=Ye===Le,ee=ue.length&&f,G=Ye===Se,ge=ee||typeof Ye=="number"&&ue.length>Ye,$e=(0,y.useMemo)(function(){var M=ue;return ee?W===null&&p?M=ue:M=ue.slice(0,Math.min(ue.length,be/We)):typeof Ye=="number"&&(M=ue.slice(0,Ye)),M},[ue,We,W,Ye,ee]),ze=(0,y.useMemo)(function(){return ee?ue.slice(H+1):ue.slice($e.length)},[ue,$e,ee,H]),ae=(0,y.useCallback)(function(M,T){var re;return typeof Te=="function"?Te(M):(re=Te&&(M==null?void 0:M[Te]))!==null&&re!==void 0?re:T},[Te]),Ne=(0,y.useCallback)(ve||function(M){return M},[ve]);function me(M,T,re){rt===M&&(T===void 0||T===Mt)||(dn(M),re||(i(M<ue.length-1),N==null||N(M)),T!==void 0&&kt(T))}function X(M,T){pe(T.clientWidth)}function ne(M,T){Ce(function(re){var Ie=new Map(re);return T===null?Ie.delete(M):Ie.set(M,T),Ie})}function Be(M,T){wt(T),bt(qe)}function De(M,T){Zt(T)}function Xe(M,T){Rt(T)}function $t(M){return Oe.get(ae($e[M],M))}(0,U.Z)(function(){if(be&&typeof h=="number"&&$e){var M=Et+Qe,T=$e.length,re=T-1;if(!T){me(0,null);return}for(var Ie=0;Ie<T;Ie+=1){var xe=$t(Ie);if(p&&(xe=xe||0),xe===void 0){me(Ie-1,void 0,!0);break}if(M+=xe,re===0&&M<=be||Ie===re-1&&M+$t(re)<=be){me(re,null);break}else if(M+h>be){me(Ie-1,M-xe-Qe+qe);break}}E&&$t(0)+Qe>be&&kt(null)}},[be,Oe,qe,Et,Qe,ae,$e]);var vt=n&&!!ze.length,Ee={};Mt!==null&&ee&&(Ee={position:"absolute",left:Mt,top:0});var nt={prefixCls:r,responsive:ee,component:m,invalidate:G},A=je?function(M,T){var re=ae(M,T);return y.createElement(L.Provider,{key:re,value:(0,C.Z)((0,C.Z)({},nt),{},{order:T,item:M,itemKey:re,registerSize:ne,display:T<=H})},je(M,T))}:function(M,T){var re=ae(M,T);return y.createElement(V,(0,a.Z)({},nt,{order:T,key:re,item:M,renderItem:Ne,itemKey:re,registerSize:ne,display:T<=H}))},x={order:vt?H:Number.MAX_SAFE_INTEGER,className:"".concat(r,"-rest"),registerSize:Be,display:vt},k=Je||ke,j=et?y.createElement(L.Provider,{value:(0,C.Z)((0,C.Z)({},nt),x)},et(ze)):y.createElement(V,(0,a.Z)({},nt,x),typeof k=="function"?k(ze):k),O=y.createElement(c,(0,a.Z)({className:he()(!G&&ye,He),style:Me,ref:fe},d),R&&y.createElement(V,(0,a.Z)({},nt,{responsive:f,responsiveDisabled:!ee,order:-1,className:"".concat(r,"-prefix"),registerSize:De,display:!0}),R),$e.map(A),ge?j:null,E&&y.createElement(V,(0,a.Z)({},nt,{responsive:f,responsiveDisabled:!ee,order:H,className:"".concat(r,"-suffix"),registerSize:Xe,display:!0,style:Ee}),E));return f?y.createElement(de.Z,{onResize:X,disabled:!ee},O):O}var D=y.forwardRef(Ue);D.displayName="Overflow",D.Item=se,D.RESPONSIVE=Le,D.INVALIDATE=Se;var Ve=D,Ge=Ve},82059:function(dt){var Ae=arguments[3],l=arguments[4],a=arguments[5],C=JSON.stringify;dt.exports=function(P,z){for(var y,g=Object.keys(a),he=0,de=g.length;he<de;he++){var U=g[he],J=a[U].exports;if(J===P||J&&J.default===P){y=U;break}}if(!y){y=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var oe={},he=0,de=g.length;he<de;he++){var U=g[he];oe[U]=U}l[y]=["function(require,module,exports){"+P+"(self); }",oe]}var Y=Math.floor(Math.pow(16,8)*Math.random()).toString(16),o={};o[y]=y,l[Y]=["function(require,module,exports){var f = require("+C(y)+");(f.default ? f.default : f)(self);}",o];var V={};we(Y);function we(L){V[L]=!0;for(var I in l[L][1]){var F=l[L][1][I];V[F]||we(F)}}var q="("+Ae+")({"+Object.keys(V).map(function(L){return C(L)+":["+l[L][0]+","+C(l[L][1])+"]"}).join(",")+"},{},["+C(Y)+"])",te=window.URL||window.webkitURL||window.mozURL||window.msURL,_=new Blob([q],{type:"text/javascript"});if(z&&z.bare)return _;var S=te.createObjectURL(_),v=new Worker(S);return v.objectURL=S,v}}}]);