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.
44 lines
278 KiB
44 lines
278 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[4928],{18785:function(dt,xe,l){"use strict";l.d(xe,{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(q,oe){return C.createElement(y.Z,(0,a.Z)({},q,{ref:oe,icon:z}))},ce=C.forwardRef(g),de=ce},33853:function(dt,xe,l){"use strict";l.d(xe,{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(q,oe){return C.createElement(y.Z,(0,a.Z)({},q,{ref:oe,icon:z}))},ce=C.forwardRef(g),de=ce},38819:function(dt,xe,l){"use strict";l.d(xe,{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(q,oe){return C.createElement(y.Z,(0,a.Z)({},q,{ref:oe,icon:z}))},ce=C.forwardRef(g),de=ce},94867:function(dt,xe,l){"use strict";l.d(xe,{Z:function(){return we}});var a=l(59301),C=l(8591),P=l(38854),z=l(31600),y=l(16471),g=l(75322),ce=l(56102),de=l(13170),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"},q=(ee,ne,_)=>new Promise((S,v)=>{var L=M=>{try{k(_.next(M))}catch(A){v(A)}},I=M=>{try{k(_.throw(M))}catch(A){v(A)}},k=M=>M.done?S(M.value):Promise.resolve(M.value).then(L,I);k((_=_.apply(ee,ne)).next())});function oe(ee){if(isNaN(ee))return{minutes:"00",seconds:"00"};const ne=new Date(ee*1e3).toISOString().substr(11,8);return{hour:ne.substr(0,2),minutes:ne.substr(3,2),seconds:ne.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function Q(ee,ne){return ee-ne}function o(ee){ee.sort(Q);let ne=0;for(let _=0;_<ee.length-1;_++){let S=Math.abs(ee[_+1]-ee[_]);S<21&&(ne+=S)}return ne}const V=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var we=(0,a.forwardRef)(({allow_skip:ee,src:ne,toLog:_,videoId:S,logWatchHistory:v,courseId:L=null,startTime:I,handlePause:k=()=>{},handlePlay:M=()=>{},handlePlayEnded:A=()=>{},autoPlay:J=!1,onPlayEnded:se=()=>{},isShowWaterMark:he=!0},De)=>{var Ce;const Ae=((Ce=ne==null?void 0:ne.split("."))==null?void 0:Ce.pop())==="flv",N=(0,a.useRef)(),Ve=(0,a.useRef)(),Ge=(0,a.useRef)(),Z=(0,a.useRef)(),Y=(0,a.useRef)(),Re=(0,a.useRef)(),Ee=(0,a.useRef)(),le=(0,a.useRef)(),ue=(0,a.useRef)(),_e=(0,a.useRef)(),je=(0,a.useRef)(),Fe=(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,$=!1,d=!1,p=[];(0,a.useImperativeHandle)(De,()=>({getLastUpdatedTime:()=>N.current.currentTime,getDuration:()=>N.current.duration})),C.ZP.config({maxCount:1,getContainer:()=>Ge.current});const b=(0,a.useCallback)((ge,ke=!1)=>{let be={point:N.current.currentTime};E?(be.log_id=E,be.watch_duration=o(p),be.total_duration=et):(L?(be.video_id=parseInt(S,10),be.course_id=L):be.video_id=S,be.duration=Je,be.device=Me),ke&&(be.ed="1");function ut(){return q(this,null,function*(){$=!0,E=yield v==null?void 0:v(be),$=!1,ge&&ge()})}ut()},[S,L]);(0,a.useEffect)(()=>{N.current&&(Z.current.style.display="none",Y.current.style.display="block"),C.ZP.destroy();let ge=null;return z.Z.isSupported&&Ae&&ne&&(ne==null?void 0:ne.indexOf(".m3u8"))<0?(ge=z.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:ne,muted:!1}),N.current&&(ge.attachMediaElement(N.current),ge.load())):N.current.setAttribute("src",ne),B(),()=>{ge&&(ge.unload(),ge.pause(),ge.destroy(),ge=null)}},[N,Ae,ne]);function u(){N.current.paused?(Z.current.style.display="none",Y.current.style.display="block"):(Z.current.style.display="block",Y.current.style.display="none")}function B(){je.current.style.display="none",Ze.current.style.display="none",Fe.current.style.display="none",N.current.muted||N.current.volume===0?je.current.style.display="block":N.current.volume>0&&N.current.volume<=.5?Ze.current.style.display="block":Fe.current.style.display="block"}(0,a.useEffect)(()=>{const ge=document.getElementById("play"),ke=document.querySelectorAll(".playback-icons use");function be(){M(),I&&!He.current&&(N.current.currentTime=I),He.current=!0,p.push(N.current.currentTime),s||(s=!0,_&&b())}function ut(){return q(this,null,function*(){u(),p.push(N.current.currentTime),_&&b(()=>{E=null,R=0,s=!1,$=!1,d=!1,p=[],et=0,m=1},!0),se()})}function gt(){Re.current.value=Math.round(N.current.currentTime),Ee.current.value=Math.round(N.current.currentTime)}function K(){const Be=oe(Math.round(N.current.currentTime));ue.current.innerText=`${Be.hour>0?Be.hour+":":""}${Be.minutes}:${Be.seconds}`,ue.current.setAttribute("datetime",`${Be.hour>0?" "+Be.hour+" ":""}${Be.minutes}m ${Be.seconds}s`)}function bt(){var Be,Qe,Rt,_t,Nt,$t,kt;const Lt=Math.round((Be=N.current)==null?void 0:Be.duration);(Rt=(Qe=Re.current)==null?void 0:Qe.setAttribute)==null||Rt.call(Qe,"max",Lt),(Nt=(_t=Ee.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=($t=le.current).setAttribute)==null||kt.call($t,"datetime",`${tt.hour>0?" "+tt.hour+" ":""}${tt.minutes}m ${tt.seconds}s`))}function mt(){try{const Be=Math.round(N.current.duration);Re.current.setAttribute("max",Be),Ee.current.setAttribute("max",Be);const Qe=oe(Be);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:$t}=Ve.current.getBoundingClientRect();if(Nt<0||$t<0||!Rt)return;if(!d){let kt=N.current.currentTime,Lt=kt-R;Math.abs(Lt)<10?(et+=Math.abs(Lt),R=kt,$||et-m*c>=0&&(m++,p.push(R),_&&b())):(R=kt,_&&b())}}catch(Be){console.log(Be)}}function xt(){d=!0}function qe(){N.current.playing&&p.push(N.current.currentTime,R),R=N.current.currentTime,d=!1}function At(){Je=N.current.duration,Je<=20&&(c=Je/3),N.current.addEventListener("play",be)}function Tt(Be){Be.preventDefault(),(0,de.vp)()?(N.current.style.width="100%",N.current.style.height="100%"):N.current.style.cssText=""}function Ft(){k()}function Et(Be){if(!ee){C.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Qe=Be.target.dataset.seek?Be.target.dataset.seek:Be.target.value;N.current.currentTime=Qe,Ee.current.value=Qe,Re.current.value=Qe}function Zt(Be){const Qe=Math.round(Be.offsetX/Be.target.clientWidth*parseInt(Be.target.getAttribute("max"),10));Re.current.setAttribute("data-seek",Qe);const Rt=oe(Qe);_e.current.textContent=`${Rt.hour>0?Rt.hour+":":""}${Rt.minutes}:${Rt.seconds}`;const _t=N.current.getBoundingClientRect();_e.current.style.left=`${Be.pageX-_t.left}px`}function Kt(Be){switch(Be.code){case"Space":Be.preventDefault(),ye();break;case"ArrowRight":if(Be.preventDefault(),!ee){C.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(N.current.currentTime>=N.current.duration)break;N.current.currentTime=parseInt(N.current.currentTime)+5,gt();break;case"ArrowLeft":if(Be.preventDefault(),!ee){C.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(N.current.currentTime===0)break;N.current.currentTime=parseInt(N.current.currentTime)-5,gt();break;case"ArrowUp":Be.preventDefault(),N.current.volume<1&&(N.current.volume=(parseInt(N.current.volume*10)+1)/10);break;case"ArrowDown":Be.preventDefault(),N.current.volume>0&&(N.current.volume=(parseInt(N.current.volume*10)-1)/10);break}}return Ge.current.addEventListener((0,de.gH)(),Tt),N.current.addEventListener("canplay",At),N.current.addEventListener("ended",ut),N.current.addEventListener("seeking",xt),N.current.addEventListener("seeked",qe),N.current.addEventListener("loadedmetadata",bt),Re.current.addEventListener("mousemove",Zt),Re.current.addEventListener("input",Et),N.current.addEventListener("timeupdate",mt),N.current.addEventListener("pause",Ft),N.current.addEventListener("volumechange",B),document.addEventListener("keydown",Kt),()=>{var Be,Qe,Rt,_t,Nt,$t,kt,Lt,tt,rt,dn,H;(Be=N.current)==null||Be.removeEventListener("canplay",At),(Qe=N.current)==null||Qe.removeEventListener("play",be),(Rt=N.current)==null||Rt.removeEventListener("ended",ut),(_t=N.current)==null||_t.removeEventListener("seeking",xt),(Nt=N.current)==null||Nt.removeEventListener("seeked",qe),($t=Re.current)==null||$t.removeEventListener("mousemove",Zt),(kt=Re.current)==null||kt.removeEventListener("input",Et),(Lt=N.current)==null||Lt.removeEventListener("timeupdate",mt),(tt=N.current)==null||tt.removeEventListener("pause",Ft),(rt=N.current)==null||rt.removeEventListener("loadedmetadata",bt),(dn=N.current)==null||dn.removeEventListener("volumechange",B),document.removeEventListener("keydown",Kt),(H=N.current)!=null&&H.playing&&(p.push(R,N.current.currentTime),_&&b())}},[N,ne]),(0,a.useEffect)(()=>{if(N.current.onended=()=>{A(N)},N.current.oncontextmenu=()=>!1,(ne==null?void 0:ne.indexOf(".m3u8"))>-1){if(N.current.canPlayType("application/vnd.apple.mpegurl"))N.current.src=ne;else if(y.ZP.isSupported()){var ge=new y.ZP;ge.loadSource(ne),ge.attachMedia(N.current)}}},[ne]);const[W,me]=(0,a.useState)(1),ye=()=>{N.current.paused||N.current.ended?N.current.play():N.current.pause(),u()};function $e(){N.current.muted=!N.current.muted,N.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}`},he&&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:N,autoPlay:J}),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:ye},a.createElement("svg",{className:U["playback-icons"]},a.createElement("use",{ref:Y,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"]},ee&&a.createElement(P.Z,{placement:"top",overlayClassName:U.rateOverlay,getPopupContainer:ge=>ge.parentNode,menu:{items:[{key:"1",label:a.createElement("span",{onClick:()=>{me(1),N.current.playbackRate=1}},"1.0x")},{key:"2",label:a.createElement("span",{onClick:()=>{me(1.5),N.current.playbackRate=1.5}},"1.5x")},{key:"3",label:a.createElement("span",{onClick:()=>{me(2),N.current.playbackRate=2}},"2.0x")}]}},a.createElement("div",{className:`${U.controlText} mr5`},"\u500D\u901F")),a.createElement(ce.CopyToClipboard,{text:ne,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:$e},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:Fe,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:Ee,value:"0",min:"0"}),a.createElement("input",{className:U.seek,ref:Re,value:"0",min:"0",type:"range",step:"1"}),a.createElement("div",{className:U["seek-tooltip"],ref:_e,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"})))))})},17434:function(dt,xe,l){"use strict";l.r(xe),l.d(xe,{default:function(){return ne}});var a=l(59301),C=l(98147),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(75322);const ce={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(13100),U=l(94867),q=Object.defineProperty,oe=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,V=(_,S,v)=>S in _?q(_,S,{enumerable:!0,configurable:!0,writable:!0,value:v}):_[S]=v,we=(_,S)=>{for(var v in S||(S={}))Q.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 ee=({classroomList:_,loading:S,dispatch:v})=>{const[L]=(0,C.useSearchParams)(),[I]=(0,a.useState)(we({},(0,C.useParams)())),[k,M]=(0,a.useState)("init"),[A,J]=(0,a.useState)(""),se=(0,a.useRef)();(0,a.useEffect)(()=>{const Ae=L.get("tabId");Ae&&(M(Ae),I.status=Ae)},[I.categoryId,L.get("tabId")]);const he=Ae=>{M(Ae.key)},De=[{name:"\u521D\u59CB\u5B66\u4E60",id:"init"},{name:"\u590D\u4E60\u5B66\u4E60",id:"review"},{name:"\u8003\u524D\u5B66\u4E60",id:"before"}],Ce=Ae=>{Ae.data.type==="playVideo"&&J(Ae.data.url)};(0,a.useEffect)(()=>{k&&Te(),window.addEventListener("message",Ce)},[k]);const Te=()=>{var Ae;(Ae=se.current.contentWindow)==null||Ae.postMessage({data:ce[k]},"*")};return a.createElement("section",null,a.createElement(de.Z,{isLoading:S["classroomList/getClassroomAttendancesList"],tabDataSource:De,isAdmin:(0,g.GJ)(),onTabMenuClick:he,defaultSelectedKeys:[k]}),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:Te,className:y.iframe,ref:se}))),a.createElement(z.default,{open:!!A,onCancel:()=>J(""),width:800,footer:null,bodyStyle:{padding:0},centered:!0,destroyOnClose:!0},a.createElement(U.Z,{src:A,autoPlay:!0,toLog:!1})))};var ne=(0,C.connect)(({classroomList:_,loading:S,globalSetting:v})=>({classroomList:_,globalSetting:v,loading:S.effects}))(ee)},13100:function(dt,xe,l){"use strict";l.d(xe,{Z:function(){return Q}});var a=l(59301),C=l(95237),P=l(43604),z=l(20834),y=l(38854),g=l(8591),ce=l(6848),de={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},U=l(98147),q=l(75322),Q=({isLoading:o,addText:V,tabDataSource:we,isAdmin:ee,dispatch:ne,classroomList:_,type:S,isExercise:v,defaultSelectedKeys:L,onTabMenuClick:I,getDropdownMenu:k,showControlButton:M,buttonText:A,buttonIcon:J="icon-tianjiadaohang",extraNode:se,user:he,onButtonClick:De,isModelUser:Ce})=>{var Te,Ae,N,Ve,Ge;const Z=(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:Y=>o?{}:I(Y),mode:"horizontal",selectedKeys:L},we.map(Y=>a.createElement(z.default.Item,{key:typeof Y.index=="number"?Y.index:Y.id},a.createElement("span",{className:"c-grey-666"},Y.name),Y.total!==void 0&&ee&&a.createElement("span",{className:"c-grey-999 ml20"},Y.total||0))))),ee&&v&&a.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{ne({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),ee&&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 Y;if((0,q.Rm)()&&!((Y=_.AssistantObject.exercise)!=null&&Y.can_download)){g.ZP.warning("\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}ne({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:S,exportType:"exercise",category_id:Z.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),a.createElement(z.default.Item,{key:3,onClick:()=>{var Y;if((0,q.Rm)()&&!((Y=_.AssistantObject.exercise)!=null&&Y.can_download)){g.ZP.warning("\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/${Z==null?void 0:Z.coursesId}/exportlist/exercise_score,export_exercise_users`)}},"\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),M&&(A=="\u6DFB\u52A0\u76F4\u64AD"?a.createElement(y.Z,{menu:{items:(Ae=(Te=[{label:a.createElement("div",{onClick:()=>{De("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Ce&&{label:a.createElement("div",{onClick:()=>{De("\u5934\u6B4C")}},"\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:Te.filter(Y=>Y==null?void 0:Y.show))==null?void 0:Ae.map(Y=>({label:Y==null?void 0:Y.label,key:Y==null?void 0:Y.key}))}},a.createElement("span",{className:de.selectBtn},a.createElement("span",null,a.createElement("i",{className:`iconfont ${J}`})),a.createElement("span",null,A))):a.createElement("span",{onClick:De,style:{cursor:"pointer"},className:de.selectBtn},a.createElement("span",null,a.createElement("i",{className:`iconfont ${J}`})),a.createElement("span",null,A))),!!k&&a.createElement(y.Z,{disabled:((N=he==null?void 0:he.userInfo)==null?void 0:N.user_status)===2,className:"ml10",dropdownRender:k},a.createElement("span",{className:((Ve=he==null?void 0:he.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(ce.Z,{title:((Ge=he==null?void 0:he.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"))))))))}},13170:function(dt,xe,l){"use strict";l.d(xe,{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}},31600:function(dt,xe,l){"use strict";l.d(xe,{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 ce{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(e){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let e=(this._now()-this._lastCheckpoint)/1e3;return e==0&&(e=1),this._intervalBytes/e/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}var de=ce;class U{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class q extends U{constructor(e){super(e)}get name(){return"IllegalStateException"}}class oe extends U{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class Q 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 Q("Unimplemented abstract function!")}abort(){throw new Q("Unimplemented abstract function!")}}let ee={};function ne(){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 ee)ee.hasOwnProperty(r)&&delete ee[r];Object.assign(ee,i)}ne();var _=ee;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 te in f)f.hasOwnProperty(te)&&r.append(te,f[te])}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 te=f.headers.get("Content-Length");return te!=null&&(this._contentLength=parseInt(te),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 k 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 te=r.headers;for(let G in te)te.hasOwnProperty(G)&&f.setRequestHeader(G,te[G])}if(typeof this._config.headers=="object"){let te=this._config.headers;for(let G in te)te.hasOwnProperty(G)&&f.setRequestHeader(G,te[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 M=null;class A 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 J=A;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 he=se;class De{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 Ce=De;class Te{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 te=h[f].split("="),G=f>0;te[0]!==this._startName&&te[0]!==this._endName&&(G&&(r+="&"),r+=h[f])}}return r.length===0?t:t+"?"+r}}var Ae=Te;class N{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===J?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if(e.seekType==="range")this._seekHandler=new Ce(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new Ae(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=he;else if(v.isSupported())this._loaderClass=v;else if(I.isSupported())this._loaderClass=I;else if(J.isSupported())this._loaderClass=J;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 q("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 te=new Uint8Array(h,f);r.set(te,0),this._stashUsed=te.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=N;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 Y{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){Y.videoElement==null&&(Y.videoElement=window.document.createElement("video"));let t=Y.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=Y.supportMSEH264Playback(),e.networkStreamIO=Y.supportNetworkStreamIO(),e.networkLoaderName=Y.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=Y.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=Y.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=Y.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var Re=Y,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 _e=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 Fe=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 q("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 q("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 q("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 q("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 q("Data not enough when parse Value");let i=new DataView(e,t,n),r=1,h=i.getUint8(0),f,te=!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 pe=He.parseObject(e,t+r,n-r-G);if(pe.objectEnd)break;f[pe.data.name]=pe.data.value,r+=pe.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 pe=He.parseVariable(e,t+r,n-r-G);if(pe.objectEnd)break;f[pe.data.name]=pe.data.value,r+=pe.size}r<=n-3&&(i.getUint32(r-1,!Me)&16777215)===9&&(r+=3);break}case 9:f=void 0,r=1,te=!0;break;case 10:{f=[];let G=i.getUint32(1,!Me);r+=4;for(let pe=0;pe<G;pe++){let Ne=He.parseValue(e,t+r,n-r);f.push(Ne.data),r+=Ne.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:te}}}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 q("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),te=1,G=420,pe=[0,420,422,444],Ne=8;if((i===100||i===110||i===122||i===244||i===44||i===83||i===86||i===118||i===128||i===138||i===144)&&(te=n.readUEG(),te===3&&n.readBits(1),te<=3&&(G=pe[te]),Ne=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let Ke=te!==3?8:12;for(let Ue=0;Ue<Ke;Ue++)n.readBool()&&(Ue<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 Ue=0;Ue<Ke;Ue++)n.readSEG()}let ae=n.readUEG();n.readBits(1);let Pe=n.readUEG(),fe=n.readUEG(),X=n.readBits(1);X===0&&n.readBits(1),n.readBits(1);let ie=0,Ie=0,Oe=0,Xe=0;n.readBool()&&(ie=n.readUEG(),Ie=n.readUEG(),Oe=n.readUEG(),Xe=n.readUEG());let vt=1,ve=1,nt=0,w=!0,x=0,O=0;if(n.readBool()){if(n.readBool()){let Ke=n.readByte(),Ue=[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=Ue[Ke-1],ve=st[Ke-1]):Ke===255&&(vt=n.readByte()<<8|n.readByte(),ve=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),Ue=n.readBits(32);w=n.readBool(),x=Ue,O=Ke*2,nt=x/O}}let D=1;(vt!==1||ve!==1)&&(D=vt/ve);let F=0,T=0;if(te===0)F=1,T=2-X;else{let Ke=te===3?1:2,Ue=te===1?2:1;F=Ke,T=Ue*(2-X)}let re=(Pe+1)*16,Le=(2-X)*((fe+1)*16);re-=(ie+Ie)*F,Le-=(Oe+Xe)*T;let Se=Math.ceil(re*D);return n.destroy(),n=null,{profile_string:h,level_string:f,bit_depth:Ne,ref_frames:ae,chroma_format:G,chroma_format_string:R.getChromaFormatString(G),frame_rate:{fixed:w,fps:nt,fps_den:O,fps_num:x},sar_ratio:{width:vt,height:ve},codec_size:{width:re,height:Le},present_size:{width:Se,height:Le}}}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 $(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 Fe,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 Fe}_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 q("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 te=r.getUint8(4),G=r.getUint8(5),pe=r.getUint8(6),Ne=r.getUint8(7),ze=pe|G<<8|te<<16|Ne<<24;(r.getUint32(7,!i)&16777215)!==0&&g.w(this.TAG,"Meet tag which has StreamID != 0!");let Pe=n+11;switch(h){case 8:this._parseAudioData(e,Pe,f,ze);break;case 9:this._parseVideoData(e,Pe,f,ze,t+n);break;case 18:this._parseScriptData(e,Pe,f);break}let fe=r.getUint32(11+f,!i);fe!==11+f&&g.w(this.TAG,`Invalid PrevTagSize ${fe}`),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),te=f>>>4;if(te!==2&&te!==10){this._onError(c.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+te);return}let G=0,pe=(f&12)>>>2;if(pe>=0&&pe<=4)G=this._flvSoundRateTable[pe];else{this._onError(c.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+pe);return}let Ne=(f&2)>>>1,ze=f&1,ae=this._audioMetadata,Pe=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=Pe.id,ae.timescale=this._timescale,ae.duration=this._duration,ae.audioSampleRate=G,ae.channelCount=ze===0?1:2),te===10){let fe=this._parseAACAudioData(e,t+1,n-1);if(fe==null)return;if(fe.packetType===0){ae.config&&g.w(this.TAG,"Found another AudioSpecificConfig!");let X=fe.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 ie=this._mediaInfo;ie.audioCodec=ae.originalCodec,ie.audioSampleRate=ae.audioSampleRate,ie.audioChannelCount=ae.channelCount,ie.hasVideo?ie.videoCodec!=null&&(ie.mimeType='video/x-flv; codecs="'+ie.videoCodec+","+ie.audioCodec+'"'):ie.mimeType='video/x-flv; codecs="'+ie.audioCodec+'"',ie.isComplete()&&this._onMediaInfo(ie)}else if(fe.packetType===1){let X=this._timestampBase+i,ie={unit:fe.data,length:fe.data.byteLength,dts:X,pts:X};Pe.samples.push(ie),Pe.length+=fe.data.length}else g.e(this.TAG,`Flv: Unsupported AAC data type ${fe.packetType}`)}else if(te===2){if(!ae.codec){let Ie=this._parseMP3AudioData(e,t+1,n-1,!0);if(Ie==null)return;ae.audioSampleRate=Ie.samplingRate,ae.channelCount=Ie.channelCount,ae.codec=Ie.codec,ae.originalCodec=Ie.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 Oe=this._mediaInfo;Oe.audioCodec=ae.codec,Oe.audioSampleRate=ae.audioSampleRate,Oe.audioChannelCount=ae.channelCount,Oe.audioDataRate=Ie.bitRate,Oe.hasVideo?Oe.videoCodec!=null&&(Oe.mimeType='video/x-flv; codecs="'+Oe.videoCodec+","+Oe.audioCodec+'"'):Oe.mimeType='video/x-flv; codecs="'+Oe.audioCodec+'"',Oe.isComplete()&&this._onMediaInfo(Oe)}let fe=this._parseMP3AudioData(e,t+1,n-1,!1);if(fe==null)return;let X=this._timestampBase+i,ie={unit:fe,length:fe.byteLength,dts:X,pts:X};Pe.samples.push(ie),Pe.length+=fe.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,te=null,G=0,pe=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 Ne=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&&(pe=(i[1]&7)<<1|i[2]>>>7,te=(i[2]&124)>>>2);let ae=self.navigator.userAgent.toLowerCase();return ae.indexOf("firefox")!==-1?G>=6?(h=5,r=new Array(4),pe=G-3):(h=2,r=new Array(2),pe=G):ae.indexOf("android")!==-1?(h=2,r=new Array(2),pe=G):(h=5,pe=G,r=new Array(4),G>=6?pe=G-3:ze===1&&(h=2,r=new Array(2),pe=G)),r[0]=h<<3,r[0]|=(G&15)>>>1,r[1]=(G&15)<<7,r[1]|=(ze&15)<<3,h===5&&(r[1]|=(pe&15)>>>1,r[2]=(pe&1)<<7,r[2]|=8,r[3]=0),{config:r,samplingRate:Ne,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 te=h[1]>>>3&3,G=(h[1]&6)>>1,pe=(h[2]&240)>>>4,Ne=(h[2]&12)>>>2,ae=(h[3]>>>6&3)!==3?2:1,Pe=0,fe=0,X=34,ie="mp3";switch(te){case 0:Pe=this._mpegAudioV25SampleRateTable[Ne];break;case 2:Pe=this._mpegAudioV20SampleRateTable[Ne];break;case 3:Pe=this._mpegAudioV10SampleRateTable[Ne];break}switch(G){case 1:X=34,pe<this._mpegAudioL3BitRateTable.length&&(fe=this._mpegAudioL3BitRateTable[pe]);break;case 2:X=33,pe<this._mpegAudioL2BitRateTable.length&&(fe=this._mpegAudioL2BitRateTable[pe]);break;case 3:X=32,pe<this._mpegAudioL1BitRateTable.length&&(fe=this._mpegAudioL1BitRateTable[pe]);break}f={bitRate:fe,samplingRate:Pe,channelCount:ae,codec:ie,originalCodec:ie}}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,te=h&15;if(te!==7){this._onError(c.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${te}`);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,te=new DataView(e,t,n),G=te.getUint8(0),Ne=(te.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,Ne);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 te=f.getUint8(0),G=f.getUint8(1),pe=f.getUint8(2),Ne=f.getUint8(3);if(te!==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 fe=0;fe<ze;fe++){let X=f.getUint16(ae,!h);if(ae+=2,X===0)continue;let ie=new Uint8Array(e,t+ae,X);ae+=X;let Ie=E.parseSPS(ie);if(fe!==0)continue;i.codecWidth=Ie.codec_size.width,i.codecHeight=Ie.codec_size.height,i.presentWidth=Ie.present_size.width,i.presentHeight=Ie.present_size.height,i.profile=Ie.profile_string,i.level=Ie.level_string,i.bitDepth=Ie.bit_depth,i.chromaFormat=Ie.chroma_format,i.sarRatio=Ie.sar_ratio,i.frameRate=Ie.frame_rate,(Ie.frame_rate.fixed===!1||Ie.frame_rate.fps_num===0||Ie.frame_rate.fps_den===0)&&(i.frameRate=this._referenceFrameRate);let Oe=i.frameRate.fps_den,Xe=i.frameRate.fps_num;i.refSampleDuration=i.timescale*(Oe/Xe);let Mt=ie.subarray(1,4),vt="avc1.";for(let nt=0;nt<3;nt++){let w=Mt[nt].toString(16);w.length<2&&(w="0"+w),vt+=w}i.codec=vt;let ve=this._mediaInfo;ve.width=i.codecWidth,ve.height=i.codecHeight,ve.fps=i.frameRate.fps,ve.profile=i.profile,ve.level=i.level,ve.refFrames=Ie.ref_frames,ve.chromaFormat=Ie.chroma_format_string,ve.sarNum=i.sarRatio.width,ve.sarDen=i.sarRatio.height,ve.videoCodec=vt,ve.hasAudio?ve.audioCodec!=null&&(ve.mimeType='video/x-flv; codecs="'+ve.videoCodec+","+ve.audioCodec+'"'):ve.mimeType='video/x-flv; codecs="'+ve.videoCodec+'"',ve.isComplete()&&this._onMediaInfo(ve)}let Pe=f.getUint8(ae);if(Pe===0){this._onError(c.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Pe>1&&g.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${Pe}`);ae++;for(let fe=0;fe<Pe;fe++){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 te=this._littleEndian,G=new DataView(e,t,n),pe=[],Ne=0,ze=0;const ae=this._naluLengthSize;let Pe=this._timestampBase+i,fe=h===1;for(;ze<n;){if(ze+4>=n){g.w(this.TAG,`Malformed Nalu near timestamp ${Pe}, offset = ${ze}, dataSize = ${n}`);break}let X=G.getUint32(ze,!te);if(ae===3&&(X>>>=8),X>n-ae){g.w(this.TAG,`Malformed Nalus near timestamp ${Pe}, NaluSize > DataSize!`);return}let ie=G.getUint8(ze+ae)&31;ie===5&&(fe=!0);let Ie=new Uint8Array(e,t+ze,ae+X),Oe={type:ie,data:Ie};pe.push(Oe),Ne+=Ie.byteLength,ze+=ae+X}if(pe.length){let X=this._videoTrack,ie={units:pe,length:Ne,isKeyframe:fe,dts:Pe,cts:f,pts:Pe+f};fe&&(ie.fileposition=r),X.samples.push(ie),X.length+=Ne}}}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 te=n[f].duration,G=n[f].size,pe=n[f].flags,Ne=n[f].cts;h.set([te>>>24&255,te>>>16&255,te>>>8&255,te&255,G>>>24&255,G>>>16&255,G>>>8&255,G&255,pe.isLeading<<2|pe.dependsOn,pe.isDependedOn<<6|pe.hasRedundancy<<4|pe.isNonSync,0,0,Ne>>>24&255,Ne>>>16&255,Ne>>>8&255,Ne&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 me=W;class ye{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 $e{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 ge{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 ke{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 be{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 ke("audio"),this._videoSegmentInfoList=new ke("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 q("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 q("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,te=-1,G=this._audioMeta.refSampleDuration,pe=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Ne=this._dtsBaseInited&&this._audioNextDts===void 0,ze=!1;if(!i||i.length===0||i.length===1&&!t)return;let ae=0,Pe=null,fe=0;pe?(ae=0,fe=n.length):(ae=8,fe=8+n.length);let X=null;if(i.length>1&&(X=i.pop(),fe-=X.length),this._audioStashedLastSample!=null){let ve=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(ve),fe+=ve.length}X!=null&&(this._audioStashedLastSample=X);let ie=i[0].dts-this._dtsBase;if(this._audioNextDts)r=ie-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())r=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(ze=!0);else{let ve=this._audioSegmentInfoList.getLastSampleBefore(ie);if(ve!=null){let nt=ie-(ve.originalDts+ve.duration);nt<=3&&(nt=0);let w=ve.dts+ve.duration+nt;r=ie-w}else r=0}if(ze){let ve=ie-r,nt=this._videoSegmentInfoList.getLastSegmentBefore(ie);if(nt!=null&&nt.beginDts<ve){let w=me.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(w){let x=nt.beginDts,O=ve-nt.beginDts;g.v(this.TAG,`InsertPrefixSilentAudio: dts: ${x}, duration: ${O}`),i.unshift({unit:w,dts:x,pts:x}),fe+=w.byteLength}}else ze=!1}let Ie=[];for(let ve=0;ve<i.length;ve++){let nt=i[ve],w=nt.unit,x=nt.dts-this._dtsBase,O=x-r;h===-1&&(h=O);let j=0;ve!==i.length-1?j=i[ve+1].dts-this._dtsBase-r-O:X!=null?j=X.dts-this._dtsBase-r-O:Ie.length>=1?j=Ie[Ie.length-1].duration:j=Math.floor(G);let D=!1,F=null;if(j>G*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!_.safari){D=!0;let T=Math.abs(j-G),re=Math.ceil(T/G),Le=O+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: ${O+j} ms, expected: ${O+Math.round(G)} ms, delta: ${Math.round(T)} ms, generate: ${re} frames`);let Se=me.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Se==null&&(g.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Se=w),F=[];for(let Ue=0;Ue<re;Ue++){let st=Math.round(Le);if(F.length>0){let at=F[F.length-1];at.duration=st-at.dts}let ct={dts:st,pts:st,cts:0,unit:Se,size:Se.byteLength,duration:0,originalDts:x,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};F.push(ct),fe+=ct.size,Le+=G}let Ke=F[F.length-1];Ke.duration=O+j-Ke.dts,j=Math.round(G)}Ie.push({dts:O,pts:O,cts:0,unit:nt.unit,size:nt.unit.byteLength,duration:j,originalDts:x,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),D&&Ie.push.apply(Ie,F)}pe?Pe=new Uint8Array(fe):(Pe=new Uint8Array(fe),Pe[0]=fe>>>24&255,Pe[1]=fe>>>16&255,Pe[2]=fe>>>8&255,Pe[3]=fe&255,Pe.set(B.types.mdat,4));for(let ve=0;ve<Ie.length;ve++){let nt=Ie[ve].unit;Pe.set(nt,ae),ae+=nt.byteLength}let Oe=Ie[Ie.length-1];f=Oe.dts+Oe.duration,this._audioNextDts=f;let Xe=new $e;Xe.beginDts=h,Xe.endDts=f,Xe.beginPts=h,Xe.endPts=f,Xe.originalBeginDts=Ie[0].originalDts,Xe.originalEndDts=Oe.originalDts+Oe.duration,Xe.firstSample=new ye(Ie[0].dts,Ie[0].pts,Ie[0].duration,Ie[0].originalDts,!1),Xe.lastSample=new ye(Oe.dts,Oe.pts,Oe.duration,Oe.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Xe),n.samples=Ie,n.sequenceNumber++;let Mt=null;pe?Mt=new Uint8Array:Mt=B.moof(n,h),n.samples=[],n.length=0;let vt={type:"audio",data:this._mergeBoxes(Mt,Pe).buffer,sampleCount:Ie.length,info:Xe};pe&&Ne&&(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,te=-1,G=-1;if(!i||i.length===0||i.length===1&&!t)return;let pe=8,Ne=null,ze=8+e.length,ae=null;if(i.length>1&&(ae=i.pop(),ze-=ae.length),this._videoStashedLastSample!=null){let Oe=this._videoStashedLastSample;this._videoStashedLastSample=null,i.unshift(Oe),ze+=Oe.length}ae!=null&&(this._videoStashedLastSample=ae);let Pe=i[0].dts-this._dtsBase;if(this._videoNextDts)r=Pe-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())r=0;else{let Oe=this._videoSegmentInfoList.getLastSampleBefore(Pe);if(Oe!=null){let Xe=Pe-(Oe.originalDts+Oe.duration);Xe<=3&&(Xe=0);let Mt=Oe.dts+Oe.duration+Xe;r=Pe-Mt}else r=0}let fe=new $e,X=[];for(let Oe=0;Oe<i.length;Oe++){let Xe=i[Oe],Mt=Xe.dts-this._dtsBase,vt=Xe.isKeyframe,ve=Mt-r,nt=Xe.cts,w=ve+nt;h===-1&&(h=ve,te=w);let x=0;if(Oe!==i.length-1?x=i[Oe+1].dts-this._dtsBase-r-ve:ae!=null?x=ae.dts-this._dtsBase-r-ve:X.length>=1?x=X[X.length-1].duration:x=Math.floor(this._videoMeta.refSampleDuration),vt){let O=new ye(ve,w,x,Xe.dts,!0);O.fileposition=Xe.fileposition,fe.appendSyncPoint(O)}X.push({dts:ve,pts:w,cts:nt,units:Xe.units,size:Xe.length,isKeyframe:vt,duration:x,originalDts:Mt,flags:{isLeading:0,dependsOn:vt?2:1,isDependedOn:vt?1:0,hasRedundancy:0,isNonSync:vt?0:1}})}Ne=new Uint8Array(ze),Ne[0]=ze>>>24&255,Ne[1]=ze>>>16&255,Ne[2]=ze>>>8&255,Ne[3]=ze&255,Ne.set(B.types.mdat,4);for(let Oe=0;Oe<X.length;Oe++){let Xe=X[Oe].units;for(;Xe.length;){let vt=Xe.shift().data;Ne.set(vt,pe),pe+=vt.byteLength}}let ie=X[X.length-1];if(f=ie.dts+ie.duration,G=ie.pts+ie.duration,this._videoNextDts=f,fe.beginDts=h,fe.endDts=f,fe.beginPts=te,fe.endPts=G,fe.originalBeginDts=X[0].originalDts,fe.originalEndDts=ie.originalDts+ie.duration,fe.firstSample=new ye(X[0].dts,X[0].pts,X[0].duration,X[0].originalDts,X[0].isKeyframe),fe.lastSample=new ye(ie.dts,ie.pts,ie.duration,ie.originalDts,ie.isKeyframe),this._isLive||this._videoSegmentInfoList.append(fe),n.samples=X,n.sequenceNumber++,this._forceFirstIDR){let Oe=X[0].flags;Oe.dependsOn=2,Oe.isNonSync=0}let Ie=B.moof(n,h);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Ie,Ne).buffer,sampleCount:X.length,info:fe})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var ut=be,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,Fe.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,Fe.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=fe.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,te.bind(this)),t.on(K.METADATA_ARRIVED,G.bind(this)),t.on(K.SCRIPTDATA_ARRIVED,pe.bind(this)),t.on(K.STATISTICS_INFO,Ne.bind(this)),t.on(K.RECOMMEND_SEEKPOINT,Pe.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 ie=X.data.param;_e.applyConfig(ie),ie.enableCallback===!0?_e.addLogListener(n):_e.removeLogListener(n);break}}});function i(X,ie){let Ie={msg:K.INIT_SEGMENT,data:{type:X,data:ie}};H.postMessage(Ie,[ie.data])}function r(X,ie){let Ie={msg:K.MEDIA_SEGMENT,data:{type:X,data:ie}};H.postMessage(Ie,[ie.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 te(X){let ie={msg:K.MEDIA_INFO,data:X};H.postMessage(ie)}function G(X){let ie={msg:K.METADATA_ARRIVED,data:X};H.postMessage(ie)}function pe(X){let ie={msg:K.SCRIPTDATA_ARRIVED,data:X};H.postMessage(ie)}function Ne(X){let ie={msg:K.STATISTICS_INFO,data:X};H.postMessage(ie)}function ze(X,ie){H.postMessage({msg:K.IO_ERROR,data:{type:X,info:ie}})}function ae(X,ie){H.postMessage({msg:K.DEMUX_ERROR,data:{type:X,info:ie}})}function Pe(X){H.postMessage({msg:K.RECOMMEND_SEEKPOINT,data:X})}function fe(X,ie){H.postMessage({msg:"logcat_callback",data:{type:X,logcat:ie}})}};class At{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(z()),t.enableWorker&&typeof Worker!="undefined")try{let n=l(87436);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)},_e.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:_e.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"}),_e.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}hasWorker(){return this._worker!=null}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(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,Fe.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=At,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 ge}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 q("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),te=i.end(h);if(f<=e&&e<te+3){if(e-f>=this._config.autoCleanupMaxBackwardDuration){r=!0;let G=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:f,end:G})}}else te<e&&(r=!0,this._pendingRemoveRanges[t].push({start:f,end:te}))}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 Be={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,Be.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 q("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new q("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,Be.NETWORK_ERROR,e,t)}),this._transmuxer.on(K.DEMUX_ERROR,(e,t)=>{this._emitter.emit(le.ERROR,Be.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 q("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 $t=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 $t(t,e)}}function Lt(){return Re.supportMSEH264Playback()}function tt(){return Re.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=Be,rt.ErrorDetails=Qe,rt.FlvPlayer=_t,rt.NativePlayer=$t,rt.LoggingControl=_e,Object.defineProperty(rt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var dn=rt},91857:function(dt,xe,l){"use strict";var a=l(59301),C=l(38819),P=l(92310),z=l.n(P),y=l(31561),g=l(70425),ce=l(18929),de=l(2738),U=l(79676),q=l(53487),oe=l(92343),Q=l(36355),o=l(20834),V=l(40875),we=l(88088),ee=l(47211);const ne=null,_=I=>{const{menu:k,arrow:M,prefixCls:A,children:J,trigger:se,disabled:he,dropdownRender:De,getPopupContainer:Ce,overlayClassName:Te,rootClassName:Ae,open:N,onOpenChange:Ve,visible:Ge,onVisibleChange:Z,mouseEnterDelay:Y=.15,mouseLeaveDelay:Re=.1,autoAdjustOverflow:Ee=!0,placement:le="",overlay:ue,transitionName:_e}=I,{getPopupContainer:je,getPrefixCls:Fe,direction:Ze}=a.useContext(Q.E_),We=a.useMemo(()=>{const B=Fe();return _e!==void 0?_e:le.includes("top")?`${B}-slide-down`:`${B}-slide-up`},[Fe,le,_e]),it=a.useMemo(()=>le?le.includes("Center")?le.slice(0,le.indexOf("Center")):le:Ze==="rtl"?"bottomRight":"bottomLeft",[le,Ze]),Me=Fe("dropdown",A),[He,Ye]=(0,ee.Z)(Me),[,Je]=(0,we.Z)(),et=a.Children.only(J),R=(0,oe.Tm)(et,{className:z()(`${Me}-trigger`,{[`${Me}-rtl`]:Ze==="rtl"},et.props.className),disabled:he}),E=he?[]:se;let s;E&&E.includes("contextMenu")&&(s=!0);const[c,m]=(0,ce.Z)(!1,{value:N!=null?N:Ge}),$=(0,g.useEvent)(B=>{Ve==null||Ve(B),Z==null||Z(B),m(B)}),d=z()(Te,Ae,Ye,{[`${Me}-rtl`]:Ze==="rtl"}),p=(0,U.Z)({arrowPointAtCenter:typeof M=="object"&&M.pointAtCenter,autoAdjustOverflow:Ee,offset:Je.marginXXS,arrowWidth:M?Je.sizePopupArrow:0,borderRadius:Je.borderRadius}),b=a.useCallback(()=>{m(!1)},[]),u=()=>{let B;return k!=null&&k.items?B=a.createElement(o.default,Object.assign({},k)):typeof ue=="function"?B=ue():B=ue,De&&(B=De(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:me}=W}},B)};return He(a.createElement(y.Z,Object.assign({alignPoint:s},(0,de.Z)(I,["rootClassName"]),{mouseEnterDelay:Y,mouseLeaveDelay:Re,visible:c,builtinPlacements:p,arrow:!!M,overlayClassName:d,prefixCls:Me,getPopupContainer:Ce||je,transitionName:We,trigger:E,overlay:u,placement:it,onVisibleChange:$}),R))};function S(I){return Object.assign(Object.assign({},I),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const v=(0,q.Z)(_,"dropdown",I=>I,S),L=I=>a.createElement(v,Object.assign({},I),a.createElement("span",null));_._InternalPanelDoNotUseOrYouWillBeFired=L,xe.Z=_},38854:function(dt,xe,l){"use strict";l.d(xe,{Z:function(){return we}});var a=l(91857),C=l(92310),P=l.n(C),z=l(59301),y=l(18785),g=l(3113),ce=l(36355),de=l(81327),U=l(33234),q=l(47211),oe=function(ee,ne){var _={};for(var S in ee)Object.prototype.hasOwnProperty.call(ee,S)&&ne.indexOf(S)<0&&(_[S]=ee[S]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,S=Object.getOwnPropertySymbols(ee);v<S.length;v++)ne.indexOf(S[v])<0&&Object.prototype.propertyIsEnumerable.call(ee,S[v])&&(_[S[v]]=ee[S[v]]);return _};const Q=ee=>{const{getPopupContainer:ne,getPrefixCls:_,direction:S}=z.useContext(ce.E_),{prefixCls:v,type:L="default",danger:I,disabled:k,loading:M,onClick:A,htmlType:J,children:se,className:he,menu:De,arrow:Ce,autoFocus:Te,overlay:Ae,trigger:N,align:Ve,open:Ge,onOpenChange:Z,placement:Y,getPopupContainer:Re,href:Ee,icon:le=z.createElement(y.Z,null),title:ue,buttonsRender:_e=u=>u,mouseEnterDelay:je,mouseLeaveDelay:Fe,overlayClassName:Ze,overlayStyle:We,destroyPopupOnHide:it,dropdownRender:Me}=ee,He=oe(ee,["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,q.Z)(Ye),E={menu:De,arrow:Ce,autoFocus:Te,align:Ve,disabled:k,trigger:k?[]:N,onOpenChange:Z,getPopupContainer:Re||ne,mouseEnterDelay:je,mouseLeaveDelay:Fe,overlayClassName:Ze,overlayStyle:We,destroyPopupOnHide:it,dropdownRender:Me},{compactSize:s,compactItemClassnames:c}=(0,U.ri)(Ye,S),m=P()(Je,c,he,R);"overlay"in ee&&(E.overlay=Ae),"open"in ee&&(E.open=Ge),"placement"in ee?E.placement=Y:E.placement=S==="rtl"?"bottomLeft":"bottomRight";const $=z.createElement(g.ZP,{type:L,danger:I,disabled:k,loading:M,onClick:A,htmlType:J,href:Ee,title:ue},se),d=z.createElement(g.ZP,{type:L,danger:I,icon:le}),[p,b]=_e([$,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)))};Q.__ANT_BUTTON=!0;var o=Q;const V=a.Z;V.Button=o;var we=V},47211:function(dt,xe,l){"use strict";l.d(xe,{Z:function(){return oe}});var a=l(17313),C=l(13826),P=l(92899),z=l(29878),y=l(19447),g=l(83116),ce=l(37613),U=Q=>{const{componentCls:o,menuCls:V,colorError:we,colorTextLightSolid:ee}=Q,ne=`${V}-item`;return{[`${o}, ${o}-menu-submenu`]:{[`${V} ${ne}`]:{[`&${ne}-danger:not(${ne}-disabled)`]:{color:we,"&:hover":{color:ee,backgroundColor:we}}}}}};const q=Q=>{const{componentCls:o,menuCls:V,zIndexPopup:we,dropdownArrowDistance:ee,sizePopupArrow:ne,antCls:_,iconCls:S,motionDurationMid:v,dropdownPaddingVertical:L,fontSize:I,dropdownEdgeChildPadding:k,colorTextDisabled:M,fontSizeIcon:A,controlPaddingHorizontal:J,colorBgElevated:se}=Q;return[{[o]:Object.assign(Object.assign({},(0,a.Wf)(Q)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:we,display:"block","&::before":{position:"absolute",insetBlock:-ee+ne/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${_}-btn`]:{[`& > ${S}-down, & > ${_}-btn-icon > ${S}-down`]:{fontSize:A}},[`${o}-wrap`]:{position:"relative",[`${_}-btn > ${S}-down`]:{fontSize:A},[`${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)(Q,{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:k,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:Q.borderRadiusLG,outline:"none",boxShadow:Q.boxShadowSecondary},(0,a.Qy)(Q)),{[`${V}-item-group-title`]:{padding:`${L}px ${J}px`,color:Q.colorTextDescription,transition:`all ${v}`},[`${V}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${V}-item-icon`]:{minWidth:I,marginInlineEnd:Q.marginXS,fontSize:Q.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 ${J}px`,color:Q.colorText,fontWeight:"normal",fontSize:I,lineHeight:Q.lineHeight,cursor:"pointer",transition:`all ${v}`,borderRadius:Q.borderRadiusSM,"&:hover, &-active":{backgroundColor:Q.controlItemBgHover}},(0,a.Qy)(Q)),{"&-selected":{color:Q.colorPrimary,backgroundColor:Q.controlItemBgActive,"&:hover, &-active":{backgroundColor:Q.controlItemBgActiveHover}},"&-disabled":{color:M,cursor:"not-allowed","&:hover":{color:M,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Q.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Q.colorSplit},[`${o}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Q.paddingXS,[`${o}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Q.colorTextDescription,fontSize:A,fontStyle:"normal"}}}),[`${V}-item-group-list`]:{margin:`0 ${Q.marginXS}px`,padding:0,listStyle:"none"},[`${V}-submenu-title`]:{paddingInlineEnd:J+Q.fontSizeSM},[`${V}-submenu-vertical`]:{position:"relative"},[`${V}-submenu${V}-submenu-disabled ${o}-menu-submenu-title`]:{[`&, ${o}-menu-submenu-arrow-icon`]:{color:M,backgroundColor:se,cursor:"not-allowed"}},[`${V}-submenu-selected ${o}-menu-submenu-title`]:{color:Q.colorPrimary}})}},[(0,C.oN)(Q,"slide-up"),(0,C.oN)(Q,"slide-down"),(0,P.Fm)(Q,"move-up"),(0,P.Fm)(Q,"move-down"),(0,z._y)(Q,"zoom-big")]]};var oe=(0,g.Z)("Dropdown",(Q,o)=>{let{rootPrefixCls:V}=o;const{marginXXS:we,sizePopupArrow:ee,controlHeight:ne,fontSize:_,lineHeight:S,paddingXXS:v,componentCls:L,borderRadiusLG:I}=Q,k=(ne-_*S)/2,{dropdownArrowOffset:M}=(0,y.fS)({contentRadius:I}),A=(0,ce.TS)(Q,{menuCls:`${L}-menu`,rootPrefixCls:V,dropdownArrowDistance:ee/2+we,dropdownArrowOffset:M,dropdownPaddingVertical:k,dropdownEdgeChildPadding:v});return[q(A),U(A)]},Q=>({zIndexPopup:Q.zIndexPopupBase+50}))},45818:function(dt,xe,l){"use strict";l.d(xe,{D:function(){return v},Z:function(){return k}});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(A,J){return C.createElement(y.Z,(0,a.Z)({},A,{ref:J,icon:z}))},ce=C.forwardRef(g),de=ce,U=l(33853),q=l(38819),oe=l(92310),Q=l.n(oe),o=l(2738),we=M=>!isNaN(parseFloat(M))&&isFinite(M),ee=l(36355),ne=l(84966),_=function(M,A){var J={};for(var se in M)Object.prototype.hasOwnProperty.call(M,se)&&A.indexOf(se)<0&&(J[se]=M[se]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,se=Object.getOwnPropertySymbols(M);he<se.length;he++)A.indexOf(se[he])<0&&Object.prototype.propertyIsEnumerable.call(M,se[he])&&(J[se[he]]=M[se[he]]);return J};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 M=0;return function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return M+=1,`${A}${M}`}})();var k=C.forwardRef((M,A)=>{const{prefixCls:J,className:se,trigger:he,children:De,defaultCollapsed:Ce=!1,theme:Te="dark",style:Ae={},collapsible:N=!1,reverseArrow:Ve=!1,width:Ge=200,collapsedWidth:Z=80,zeroWidthTriggerStyle:Y,breakpoint:Re,onCollapse:Ee,onBreakpoint:le}=M,ue=_(M,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:_e}=(0,C.useContext)(ne.Gs),[je,Fe]=(0,C.useState)("collapsed"in M?M.collapsed:Ce),[Ze,We]=(0,C.useState)(!1);(0,C.useEffect)(()=>{"collapsed"in M&&Fe(M.collapsed)},[M.collapsed]);const it=(R,E)=>{"collapsed"in M||Fe(R),Ee==null||Ee(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&&Re&&Re in S){E=s(`(max-width: ${S[Re]})`);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)}}},[Re]),(0,C.useEffect)(()=>{const R=L("ant-sider-");return _e.addSider(R),()=>_e.removeSider(R)},[]);const He=()=>{it(!je,"clickTrigger")},{getPrefixCls:Ye}=(0,C.useContext)(ee.E_),Je=()=>{const R=Ye("layout-sider",J),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:Q()(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${Ve?"right":"left"}`),style:Y},he||C.createElement(de,null)):null,p={expanded:Ve?C.createElement(q.Z,null):C.createElement(U.Z,null),collapsed:Ve?C.createElement(U.Z,null):C.createElement(q.Z,null)}[je?"collapsed":"expanded"],b=he!==null?m||C.createElement("div",{className:`${R}-trigger`,onClick:He,style:{width:c}},he||p):null,u=Object.assign(Object.assign({},Ae),{flex:`0 0 ${c}`,maxWidth:c,minWidth:c,width:c}),B=Q()(R,`${R}-${Te}`,{[`${R}-collapsed`]:!!je,[`${R}-has-trigger`]:N&&he!==null&&!m,[`${R}-below`]:!!Ze,[`${R}-zero-width`]:parseFloat(c)===0},se);return C.createElement("aside",Object.assign({className:B},E,{style:u,ref:A}),C.createElement("div",{className:`${R}-children`},De),N||Ze&&m?b:null)},et=C.useMemo(()=>({siderCollapsed:je}),[je]);return C.createElement(v.Provider,{value:et},Je())})},84966:function(dt,xe,l){"use strict";l.d(xe,{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),ce=l(83116),U=I=>{const{componentCls:k,bodyBg:M,lightSiderBg:A,lightTriggerBg:J,lightTriggerColor:se}=I;return{[`${k}-sider-light`]:{background:A,[`${k}-sider-trigger`]:{color:se,background:J},[`${k}-sider-zero-width-trigger`]:{color:se,background:J,border:`1px solid ${M}`,borderInlineStart:0}}}};const q=I=>{const{antCls:k,componentCls:M,colorText:A,triggerColor:J,footerBg:se,triggerBg:he,headerHeight:De,headerPadding:Ce,headerColor:Te,footerPadding:Ae,triggerHeight:N,zeroTriggerHeight:Ve,zeroTriggerWidth:Ge,motionDurationMid:Z,motionDurationSlow:Y,fontSize:Re,borderRadius:Ee,bodyBg:le,headerBg:ue,siderBg:_e}=I;return{[M]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:le,"&, *":{boxSizing:"border-box"},[`&${M}-has-sider`]:{flexDirection:"row",[`> ${M}, > ${M}-content`]:{width:0}},[`${M}-header, &${M}-footer`]:{flex:"0 0 auto"},[`${M}-sider`]:{position:"relative",minWidth:0,background:_e,transition:`all ${Z}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${k}-menu${k}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:N},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:N,color:J,lineHeight:`${N}px`,textAlign:"center",background:he,cursor:"pointer",transition:`all ${Z}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:De,insetInlineEnd:-Ge,zIndex:1,width:Ge,height:Ve,color:J,fontSize:I.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:_e,borderStartStartRadius:0,borderStartEndRadius:Ee,borderEndEndRadius:Ee,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Y} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Y}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ge,borderStartStartRadius:Ee,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ee}}}}},U(I)),{"&-rtl":{direction:"rtl"}}),[`${M}-header`]:{height:De,padding:Ce,color:Te,lineHeight:`${De}px`,background:ue,[`${k}-menu`]:{lineHeight:"inherit"}},[`${M}-footer`]:{padding:Ae,color:A,fontSize:Re,background:se},[`${M}-content`]:{flex:"auto",minHeight:0}}};var oe=(0,ce.Z)("Layout",I=>[q(I)],I=>{const{colorBgLayout:k,controlHeight:M,controlHeightLG:A,colorText:J,controlHeightSM:se,marginXXS:he,colorTextLightSolid:De,colorBgContainer:Ce}=I,Te=A*1.25;return{colorBgHeader:"#001529",colorBgBody:k,colorBgTrigger:"#002140",bodyBg:k,headerBg:"#001529",headerHeight:M*2,headerPadding:`0 ${Te}px`,headerColor:J,footerPadding:`${se}px ${Te}px`,footerBg:k,siderBg:"#001529",triggerHeight:A+he*2,triggerBg:"#002140",triggerColor:De,zeroTriggerWidth:A,zeroTriggerHeight:A,lightSiderBg:Ce,lightTriggerBg:Ce,lightTriggerColor:J}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Q=function(I,k){var M={};for(var A in I)Object.prototype.hasOwnProperty.call(I,A)&&k.indexOf(A)<0&&(M[A]=I[A]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,A=Object.getOwnPropertySymbols(I);J<A.length;J++)k.indexOf(A[J])<0&&Object.prototype.propertyIsEnumerable.call(I,A[J])&&(M[A[J]]=I[A[J]]);return M};const o=y.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function V(I){let{suffixCls:k,tagName:M,displayName:A}=I;return J=>y.forwardRef((he,De)=>y.createElement(J,Object.assign({ref:De,suffixCls:k,tagName:M},he)))}const we=y.forwardRef((I,k)=>{const{prefixCls:M,suffixCls:A,className:J,tagName:se}=I,he=Q(I,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:De}=y.useContext(g.E_),Ce=De("layout",M),[Te,Ae]=oe(Ce),N=A?`${Ce}-${A}`:Ce;return Te(y.createElement(se,Object.assign({className:P()(M||N,J,Ae),ref:k},he)))}),ee=y.forwardRef((I,k)=>{const{direction:M}=y.useContext(g.E_),[A,J]=y.useState([]),{prefixCls:se,className:he,rootClassName:De,children:Ce,hasSider:Te,tagName:Ae,style:N}=I,Ve=Q(I,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ge=(0,z.Z)(Ve,["suffixCls"]),{getPrefixCls:Z,layout:Y}=y.useContext(g.E_),Re=Z("layout",se),[Ee,le]=oe(Re),ue=P()(Re,{[`${Re}-has-sider`]:typeof Te=="boolean"?Te:A.length>0,[`${Re}-rtl`]:M==="rtl"},Y==null?void 0:Y.className,he,De,le),_e=y.useMemo(()=>({siderHook:{addSider:je=>{J(Fe=>[].concat((0,a.Z)(Fe),[je]))},removeSider:je=>{J(Fe=>Fe.filter(Ze=>Ze!==je))}}}),[]);return Ee(y.createElement(o.Provider,{value:_e},y.createElement(Ae,Object.assign({ref:k,className:ue,style:Object.assign(Object.assign({},Y==null?void 0:Y.style),N)},Ge),Ce)))}),ne=V({tagName:"div",displayName:"Layout"})(ee),_=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=ne},40875:function(dt,xe,l){"use strict";l.d(xe,{J:function(){return g}});var a=l(59301),C=l(33234),P=l(70425),z=function(ce,de){var U={};for(var q in ce)Object.prototype.hasOwnProperty.call(ce,q)&&de.indexOf(q)<0&&(U[q]=ce[q]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,q=Object.getOwnPropertySymbols(ce);oe<q.length;oe++)de.indexOf(q[oe])<0&&Object.prototype.propertyIsEnumerable.call(ce,q[oe])&&(U[q[oe]]=ce[q[oe]]);return U};const y=a.createContext(null),g=a.forwardRef((ce,de)=>{const{children:U}=ce,q=z(ce,["children"]),oe=a.useContext(y),Q=a.useMemo(()=>Object.assign(Object.assign({},oe),q),[oe,q.prefixCls,q.mode,q.selectable]);return a.createElement(y.Provider,{value:Q},a.createElement(C.BR,null,(0,P.supportNodeRef)(U)?a.cloneElement(U,{ref:de}):U))});xe.Z=y},20834:function(dt,xe,l){"use strict";l.d(xe,{default:function(){return et}});var a=l(15285),C=l(59301),P=l(45818),z=l(92310),y=l.n(z),g=l(36355),ce=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=ce(R,["prefixCls","className","dashed"]),{getPrefixCls:$}=C.useContext(g.E_),d=$("menu",E),p=y()({[`${d}-item-divider-dashed`]:!!c},s);return C.createElement(a.iz,Object.assign({className:p},m))},q=l(11592),oe=l(2738),Q=l(6848),o=l(92343),we=(0,C.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ne=R=>{var E;const{className:s,children:c,icon:m,title:$,danger:d}=R,{prefixCls:p,firstLevel:b,direction:u,disableMenuItemTitleTooltip:B,inlineCollapsed:W}=C.useContext(we),me=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:ye}=C.useContext(P.D);let $e=$;typeof $=="undefined"?$e=b?c:"":$===!1&&($e="");const ge={title:$e};!ye&&!W&&(ge.title=null,ge.open=!1);const ke=(0,q.Z)(c).length;let be=C.createElement(a.ck,Object.assign({},(0,oe.Z)(R,["title","icon","danger"]),{className:y()({[`${p}-item-danger`]:d,[`${p}-item-only-child`]:(m?ke+1:ke)===1},s),title:typeof $=="string"?$: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`)}),me(W));return B||(be=C.createElement(Q.Z,Object.assign({},ge,{placement:u==="rtl"?"left":"right",overlayClassName:`${p}-inline-collapsed-tooltip`}),be)),be},S=R=>{var E;const{popupClassName:s,icon:c,title:m,theme:$}=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 ye=(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`)}),ye?m:C.createElement("span",{className:`${p}-title-content`},m))}const me=C.useMemo(()=>Object.assign(Object.assign({},d),{firstLevel:!1}),[d]);return C.createElement(we.Provider,{value:me},C.createElement(a.Wd,Object.assign({},(0,oe.Z)(R,["icon"]),{title:W,popupClassName:y()(p,s,`${p}-${$||u}`)})))},v=l(18785),L=l(70425),I=l(62892),k=l(40875),M=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 A(R){return(R||[]).map((E,s)=>{if(E&&typeof E=="object"){const c=E,{label:m,children:$,key:d,type:p}=c,b=M(c,["label","children","key","type"]),u=d!=null?d:`tmp-${s}`;return $||p==="group"?p==="group"?C.createElement(a.BW,Object.assign({key:u},b,{title:m}),A($)):C.createElement(S,Object.assign({key:u},b,{title:m}),A($)):p==="divider"?C.createElement(U,Object.assign({key:u},b)):C.createElement(ne,Object.assign({key:u},b),m)}return null}).filter(E=>E)}function J(R){return C.useMemo(()=>R&&A(R),[R])}var se=l(64993),he=l(17313),De=l(8378),Ce=l(13826),Te=l(29878),Ae=l(83116),N=l(37613),Ge=R=>{const{componentCls:E,motionDurationSlow:s,horizontalLineHeight:c,colorSplit:m,lineWidth:$,lineType:d,itemPaddingInline:p}=R;return{[`${E}-horizontal`]:{lineHeight:c,border:0,borderBottom:`${$}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"}}}},Y=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 Re=R=>Object.assign({},(0,he.oN)(R));var le=(R,E)=>{const{componentCls:s,itemColor:c,itemSelectedColor:m,groupTitleColor:$,itemBg:d,subMenuItemBg:p,itemSelectedBg:b,activeBarHeight:u,activeBarWidth:B,activeBarBorderWidth:W,motionDurationSlow:me,motionEaseInOut:ye,motionEaseOut:$e,itemPaddingInline:ge,motionDurationMid:ke,itemHoverColor:be,lineType:ut,colorSplit:gt,itemDisabledColor:K,dangerItemColor:bt,dangerItemHoverColor:mt,dangerItemSelectedColor:xt,dangerItemActiveBg:qe,dangerItemSelectedBg:At,itemHoverBg:Tt,itemActiveBg:Ft,menuSubMenuBg:Et,horizontalItemSelectedColor:Zt,horizontalItemSelectedBg:Kt,horizontalItemBorderRadius:Be,horizontalItemHoverBg:Qe,popupBg:Rt}=R;return{[`${s}-${E}, ${s}-${E} > ${s}`]:{color:c,background:d,[`&${s}-root:focus-visible`]:Object.assign({},Re(R)),[`${s}-item-group-title`]:{color:$},[`${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:be}},[`&: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:At}},[`${s}-item, ${s}-submenu-title`]:{[`&:not(${s}-item-disabled):focus-visible`]:Object.assign({},Re(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:Be,"&::after":{position:"absolute",insetInline:ge,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${me} ${ye}`,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 ${ke} ${$e}`,`opacity ${ke} ${$e}`].join(","),content:'""'},[`&${s}-item-danger`]:{"&::after":{borderInlineEndColor:xt}}},[`${s}-selected, ${s}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ke} ${ye}`,`opacity ${ke} ${ye}`].join(",")}}}}}};const ue=R=>{const{componentCls:E,itemHeight:s,itemMarginInline:c,padding:m,menuArrowSize:$,marginXS:d,itemMarginBlock:p}=R,b=m+$+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:$,controlHeightLG:d,motionDurationMid:p,motionEaseOut:b,paddingXL:u,itemMarginInline:B,fontSizeLG:W,motionDurationSlow:me,paddingXS:ye,boxShadowSecondary:$e,collapsedWidth:ge,collapsedIconSize:ke}=R,be={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:$e})}},{[`${E}-submenu-popup ${E}-vertical${E}-sub`]:{minWidth:$,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 ${me}`,`background ${me}`,`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`]:be,[`& ${E}-item-group-title`]:{paddingInlineStart:u}},[`${E}-item`]:be}},{[`${E}-inline-collapsed`]:{width:ge,[`&${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:ke,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({},he.vS),{paddingInline:ye})}}]};const Fe=R=>{const{componentCls:E,motionDurationSlow:s,motionDurationMid:c,motionEaseInOut:m,motionEaseOut:$,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} ${$}`,`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,he.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:$,menuArrowOffset:d}=R;return{[`${E}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:R.margin,width:$,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${s} ${c}, opacity ${s}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:$*.6,height:$*.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:$,motionEaseInOut:d,paddingXS:p,padding:b,colorSplit:u,lineWidth:B,zIndexPopup:W,borderRadiusLG:me,subMenuItemBorderRadius:ye,menuArrowSize:$e,menuArrowOffset:ge,lineType:ke,menuPanelMaskInset:be,groupTitleLineHeight:ut,groupTitleFontSize:gt}=R;return[{"":{[`${s}`]:Object.assign(Object.assign({},(0,he.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,he.Wf)(R)),(0,he.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 ${$} ${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:ke,borderWidth:0,borderTopWidth:B,marginBlock:B,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Fe(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:me,boxShadow:"none",transformOrigin:"0 0",[`&${s}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${be}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:be},"\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:me},Fe(R)),Ze(R)),{[`${s}-item, ${s}-submenu > ${s}-submenu-title`]:{borderRadius:ye},[`${s}-submenu-title::after`]:{transition:`transform ${m} ${d}`}})}}),Ze(R)),{[`&-inline-collapsed ${s}-submenu-arrow,
|
|
&-inline ${s}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ge})`},"&::after":{transform:`rotate(45deg) translateX(-${ge})`}},[`${s}-submenu-open${s}-submenu-inline > ${s}-submenu-title > ${s}-submenu-arrow`]:{transform:`translateY(-${$e*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ge})`},"&::before":{transform:`rotate(45deg) translateX(${ge})`}}})},{[`${E}-layout-header`]:{[s]:{lineHeight:"inherit"}}}]};var it=(R,E)=>(0,Ae.Z)("Menu",c=>{if(E===!1)return[];const{colorBgElevated:m,colorPrimary:$,colorTextLightSolid:d,controlHeightLG:p,fontSize:b,darkItemColor:u,darkDangerItemColor:B,darkItemBg:W,darkSubMenuItemBg:me,darkItemSelectedColor:ye,darkItemSelectedBg:$e,darkDangerItemSelectedBg:ge,darkItemHoverBg:ke,darkGroupTitleColor:be,darkItemHoverColor:ut,darkItemDisabledColor:gt,darkDangerItemHoverColor:K,darkDangerItemSelectedColor:bt,darkDangerItemActiveBg:mt}=c,xt=b/7*5,qe=(0,N.TS)(c,{menuArrowSize:xt,menuHorizontalHeight:p*1.15,menuArrowOffset:`${xt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:m}),At=(0,N.TS)(qe,{itemColor:u,itemHoverColor:ut,groupTitleColor:be,itemSelectedColor:ye,itemBg:W,popupBg:W,subMenuItemBg:me,itemActiveBg:"transparent",itemSelectedBg:$e,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ke,itemDisabledColor:gt,dangerItemColor:B,dangerItemHoverColor:K,dangerItemSelectedColor:bt,dangerItemActiveBg:mt,dangerItemSelectedBg:ge,menuSubMenuBg:me,horizontalItemSelectedColor:d,horizontalItemSelectedBg:$});return[We(qe),Ge(qe),je(qe),le(qe,"light"),le(At,"dark"),Y(qe),(0,De.Z)(qe),(0,Ce.oN)(qe,"slide-up"),(0,Ce.oN)(qe,"slide-down"),(0,Te._y)(qe,"zoom-big")]},c=>{const{colorPrimary:m,colorError:$,colorTextDisabled:d,colorErrorBg:p,colorText:b,colorTextDescription:u,colorBgContainer:B,colorFillAlter:W,colorFillContent:me,lineWidth:ye,lineWidthBold:$e,controlItemBgActive:ge,colorBgTextHover:ke,controlHeightLG:be,lineHeight:ut,colorBgElevated:gt,marginXXS:K,padding:bt,fontSize:mt,controlHeightSM:xt,fontSizeLG:qe,colorTextLightSolid:At,colorErrorHover:Tt}=c,Ft=new se.C(At).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:ke,itemHoverBg:ke,colorItemBgActive:me,itemActiveBg:ge,colorSubItemBg:W,subMenuItemBg:W,colorItemBgSelected:ge,itemSelectedBg:ge,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:$e,activeBarHeight:$e,colorActiveBarBorderSize:ye,activeBarBorderWidth:ye,colorItemTextDisabled:d,itemDisabledColor:d,colorDangerItemText:$,dangerItemColor:$,colorDangerItemTextHover:$,dangerItemHoverColor:$,colorDangerItemTextSelected:$,dangerItemSelectedColor:$,colorDangerItemBgActive:p,dangerItemActiveBg:p,colorDangerItemBgSelected:p,dangerItemSelectedBg:p,itemMarginInline:c.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:be,groupTitleLineHeight:ut,collapsedWidth:be*2,popupBg:gt,itemMarginBlock:K,itemPaddingInline:bt,horizontalLineHeight:`${be*1.15}px`,iconSize:mt,iconMarginInlineEnd:xt-mt,collapsedIconSize:qe,groupTitleFontSize:mt,darkItemDisabledColor:new se.C(At).setAlpha(.25).toRgbString(),darkItemColor:Ft,darkDangerItemColor:$,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:At,darkItemSelectedBg:m,darkDangerItemSelectedBg:$,darkItemHoverBg:"transparent",darkGroupTitleColor:Ft,darkItemHoverColor:At,darkDangerItemHoverColor:Tt,darkDangerItemSelectedColor:At,darkDangerItemActiveBg:$}},{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(k.Z),$=m||{},{getPrefixCls:d,getPopupContainer:p,direction:b,menu:u}=C.useContext(g.E_),B=d(),{prefixCls:W,className:me,style:ye,theme:$e="light",expandIcon:ge,_internalDisableMenuItemTitleTooltip:ke,inlineCollapsed:be,siderCollapsed:ut,items:gt,children:K,rootClassName:bt,mode:mt,selectable:xt,onClick:qe,overflowedIndicatorPopupClassName:At}=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=J(gt)||K;(s=$.validator)===null||s===void 0||s.call($,{mode:mt});const Zt=(0,L.useEvent)(function(){var rt;qe==null||qe.apply(void 0,arguments),(rt=$.onClick)===null||rt===void 0||rt.call($)}),Kt=$.mode||mt,Be=xt!=null?xt:$.selectable,Qe=C.useMemo(()=>ut!==void 0?ut:be,[be,ut]),Rt={horizontal:{motionName:`${B}-slide-up`},inline:(0,I.Z)(B),other:{motionName:`${B}-zoom-big`}},_t=d("menu",W||$.prefixCls),[Nt,$t]=it(_t,!m),kt=y()(`${_t}-${$e}`,u==null?void 0:u.className,me);let Lt;if(typeof ge=="function")Lt=ge;else if(ge===null||ge===!1)Lt=null;else if($.expandIcon===null||$.expandIcon===!1)Lt=null;else{const rt=ge!=null?ge:$.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:$e,mode:Kt,disableMenuItemTitleTooltip:ke}),[_t,Qe,b,ke,$e]);return Nt(C.createElement(k.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}-${$e}`,At),mode:Kt,selectable:Be,onClick:Zt},Ft,{inlineCollapsed:Qe,style:Object.assign(Object.assign({},u==null?void 0:u.style),ye),className:kt,prefixCls:_t,direction:b,defaultMotions:Rt,expandIcon:Lt,ref:E,rootClassName:y()(bt,$t)}),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 $;($=s.current)===null||$===void 0||$.focus(m)}})),C.createElement(Ye,Object.assign({ref:s},R,c))});Je.Item=ne,Je.SubMenu=S,Je.Divider=U,Je.ItemGroup=a.BW;var et=Je},61621:function(dt,xe,l){"use strict";l.d(xe,{Z:function(){return E}});var a=l(92310),C=l.n(a),P=l(59301),z=l(36355),y=l(2738),ce=s=>{const{prefixCls:c,className:m,style:$,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),$)})},de=l(36237),U=l(83116),q=l(37613);const oe=new de.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Q=s=>({height:s,lineHeight:`${s}px`}),o=s=>Object.assign({width:s},Q(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},Q(s)),ee=s=>{const{skeletonAvatarCls:c,gradientFromColor:m,controlHeight:$,controlHeightLG:d,controlHeightSM:p}=s;return{[`${c}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:m},o($)),[`${c}${c}-circle`]:{borderRadius:"50%"},[`${c}${c}-lg`]:Object.assign({},o(d)),[`${c}${c}-sm`]:Object.assign({},o(p))}},ne=s=>{const{controlHeight:c,borderRadiusSM:m,skeletonInputCls:$,controlHeightLG:d,controlHeightSM:p,gradientFromColor:b}=s;return{[`${$}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:b,borderRadius:m},we(c)),[`${$}-lg`]:Object.assign({},we(d)),[`${$}-sm`]:Object.assign({},we(p))}},_=s=>Object.assign({width:s},Q(s)),S=s=>{const{skeletonImageCls:c,imageSizeBase:m,gradientFromColor:$,borderRadiusSM:d}=s;return{[`${c}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:$,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:$}=s;return{[`${m}${$}-circle`]:{width:c,minWidth:c,borderRadius:"50%"},[`${m}${$}-round`]:{borderRadius:c}}},L=s=>Object.assign({width:s*2,minWidth:s*2},Q(s)),I=s=>{const{borderRadiusSM:c,skeletonButtonCls:m,controlHeight:$,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:$*2,minWidth:$*2},L($))},v(s,$,m)),{[`${m}-lg`]:Object.assign({},L(d))}),v(s,d,`${m}-lg`)),{[`${m}-sm`]:Object.assign({},L(p))}),v(s,p,`${m}-sm`))},k=s=>{const{componentCls:c,skeletonAvatarCls:m,skeletonTitleCls:$,skeletonParagraphCls:d,skeletonButtonCls:p,skeletonInputCls:b,skeletonImageCls:u,controlHeight:B,controlHeightLG:W,controlHeightSM:me,gradientFromColor:ye,padding:$e,marginSM:ge,borderRadius:ke,titleHeight:be,blockRadius:ut,paragraphLiHeight:gt,controlHeightXS:K,paragraphMarginTop:bt}=s;return{[`${c}`]:{display:"table",width:"100%",[`${c}-header`]:{display:"table-cell",paddingInlineEnd:$e,verticalAlign:"top",[`${m}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ye},o(B)),[`${m}-circle`]:{borderRadius:"50%"},[`${m}-lg`]:Object.assign({},o(W)),[`${m}-sm`]:Object.assign({},o(me))},[`${c}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${$}`]:{width:"100%",height:be,background:ye,borderRadius:ut,[`+ ${d}`]:{marginBlockStart:me}},[`${d}`]:{padding:0,"> li":{width:"100%",height:gt,listStyle:"none",background:ye,borderRadius:ut,"+ li":{marginBlockStart:K}}},[`${d}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${c}-content`]:{[`${$}, ${d} > li`]:{borderRadius:ke}}},[`${c}-with-avatar ${c}-content`]:{[`${$}`]:{marginBlockStart:ge,[`+ ${d}`]:{marginBlockStart:bt}}},[`${c}${c}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},I(s)),ee(s)),ne(s)),S(s)),[`${c}${c}-block`]:{width:"100%",[`${p}`]:{width:"100%"},[`${b}`]:{width:"100%"}},[`${c}${c}-active`]:{[`
|
|
${$},
|
|
${d} > li,
|
|
${m},
|
|
${p},
|
|
${b},
|
|
${u}
|
|
`]:Object.assign({},V(s))}}};var M=(0,U.Z)("Skeleton",s=>{const{componentCls:c}=s,m=(0,q.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[k(m)]},s=>{const{colorFillContent:c,colorFill:m}=s,$=c,d=m;return{color:$,colorGradientEnd:d,gradientFromColor:$,gradientToColor:d,titleHeight:s.controlHeight/2,blockRadius:s.borderRadiusSM,paragraphMarginTop:s.marginLG+s.marginXXS,paragraphLiHeight:s.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),J=s=>{const{prefixCls:c,className:m,rootClassName:$,active:d,shape:p="circle",size:b="default"}=s,{getPrefixCls:u}=P.useContext(z.E_),B=u("skeleton",c),[W,me]=M(B),ye=(0,y.Z)(s,["prefixCls","className"]),$e=C()(B,`${B}-element`,{[`${B}-active`]:d},m,$,me);return W(P.createElement("div",{className:$e},P.createElement(ce,Object.assign({prefixCls:`${B}-avatar`,shape:p,size:b},ye))))},he=s=>{const{prefixCls:c,className:m,rootClassName:$,active:d,block:p=!1,size:b="default"}=s,{getPrefixCls:u}=P.useContext(z.E_),B=u("skeleton",c),[W,me]=M(B),ye=(0,y.Z)(s,["prefixCls"]),$e=C()(B,`${B}-element`,{[`${B}-active`]:d,[`${B}-block`]:p},m,$,me);return W(P.createElement("div",{className:$e},P.createElement(ce,Object.assign({prefixCls:`${B}-button`,size:b},ye))))};const De="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 Te=s=>{const{prefixCls:c,className:m,rootClassName:$,style:d,active:p}=s,{getPrefixCls:b}=P.useContext(z.E_),u=b("skeleton",c),[B,W]=M(u),me=C()(u,`${u}-element`,{[`${u}-active`]:p},m,$,W);return B(P.createElement("div",{className:me},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:De,className:`${u}-image-path`})))))},N=s=>{const{prefixCls:c,className:m,rootClassName:$,active:d,block:p,size:b="default"}=s,{getPrefixCls:u}=P.useContext(z.E_),B=u("skeleton",c),[W,me]=M(B),ye=(0,y.Z)(s,["prefixCls"]),$e=C()(B,`${B}-element`,{[`${B}-active`]:d,[`${B}-block`]:p},m,$,me);return W(P.createElement("div",{className:$e},P.createElement(ce,Object.assign({prefixCls:`${B}-input`,size:b},ye))))},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,Y=l(7657),Re=function(c,m){return P.createElement(Y.Z,(0,Ve.Z)({},c,{ref:m,icon:Z}))},Ee=P.forwardRef(Re),le=Ee,_e=s=>{const{prefixCls:c,className:m,rootClassName:$,style:d,active:p,children:b}=s,{getPrefixCls:u}=P.useContext(z.E_),B=u("skeleton",c),[W,me]=M(B),ye=C()(B,`${B}-element`,{[`${B}-active`]:p},me,m,$),$e=b!=null?b:P.createElement(le,null);return W(P.createElement("div",{className:ye},P.createElement("div",{className:C()(`${B}-image`,m),style:d},$e)))},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:$,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,$),style:d},b)},it=s=>{let{prefixCls:c,className:m,width:$,style:d}=s;return P.createElement("h3",{className:C()(c,m),style:Object.assign({width:$},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:$,rootClassName:d,style:p,children:b,avatar:u=!1,title:B=!0,paragraph:W=!0,active:me,round:ye}=s,{getPrefixCls:$e,direction:ge,skeleton:ke}=P.useContext(z.E_),be=$e("skeleton",c),[ut,gt]=M(be);if(m||!("loading"in s)){const K=!!u,bt=!!B,mt=!!W;let xt;if(K){const Tt=Object.assign(Object.assign({prefixCls:`${be}-avatar`},He(bt,mt)),Me(u));xt=P.createElement("div",{className:`${be}-header`},P.createElement(ce,Object.assign({},Tt)))}let qe;if(bt||mt){let Tt;if(bt){const Et=Object.assign(Object.assign({prefixCls:`${be}-title`},Ye(K,mt)),Me(B));Tt=P.createElement(it,Object.assign({},Et))}let Ft;if(mt){const Et=Object.assign(Object.assign({prefixCls:`${be}-paragraph`},Je(K,bt)),Me(W));Ft=P.createElement(Ze,Object.assign({},Et))}qe=P.createElement("div",{className:`${be}-content`},Tt,Ft)}const At=C()(be,{[`${be}-with-avatar`]:K,[`${be}-active`]:me,[`${be}-rtl`]:ge==="rtl",[`${be}-round`]:ye},ke==null?void 0:ke.className,$,d,gt);return ut(P.createElement("div",{className:At,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),p)},xt,qe))}return typeof b!="undefined"?b:null};et.Button=he,et.Avatar=J,et.Input=N,et.Image=Te,et.Node=_e;var R=et,E=R},81327:function(dt,xe,l){"use strict";l.d(xe,{Z:function(){return ne}});var a=l(59301),C=l(92310),P=l.n(C),z=l(11592),y=l(36355),g=l(33234);const ce=a.createContext({latestIndex:0}),de=ce.Provider;var q=_=>{let{className:S,index:v,children:L,split:I,style:k}=_;const{latestIndex:M}=a.useContext(ce);return L==null?null:a.createElement(a.Fragment,null,a.createElement("div",{className:S,style:k},L),v<M&&I&&a.createElement("span",{className:`${S}-split`},I))},oe=l(2856);function Q(_){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 ee=a.forwardRef((_,S)=>{var v,L;const{getPrefixCls:I,space:k,direction:M}=a.useContext(y.E_),{size:A=(k==null?void 0:k.size)||"small",align:J,className:se,rootClassName:he,children:De,direction:Ce="horizontal",prefixCls:Te,split:Ae,style:N,wrap:Ve=!1,classNames:Ge,styles:Z}=_,Y=V(_,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Re,Ee]=Array.isArray(A)?A:[A,A],le=Q(Ee),ue=Q(Re),_e=o(Ee),je=o(Re),Fe=(0,z.Z)(De,{keepEmpty:!0}),Ze=J===void 0&&Ce==="horizontal"?"center":J,We=I("space",Te),[it,Me]=(0,oe.Z)(We),He=P()(We,k==null?void 0:k.className,Me,`${We}-${Ce}`,{[`${We}-rtl`]:M==="rtl",[`${We}-align-${Ze}`]:Ze,[`${We}-gap-row-${Ee}`]:le,[`${We}-gap-col-${Re}`]:ue},se,he),Ye=P()(`${We}-item`,(v=Ge==null?void 0:Ge.item)!==null&&v!==void 0?v:(L=k==null?void 0:k.classNames)===null||L===void 0?void 0:L.item);let Je=0;const et=Fe.map((s,c)=>{var m,$;s!=null&&(Je=c);const d=s&&s.key||`${Ye}-${c}`;return a.createElement(q,{className:Ye,key:d,index:c,split:Ae,style:(m=Z==null?void 0:Z.item)!==null&&m!==void 0?m:($=k==null?void 0:k.styles)===null||$===void 0?void 0:$.item},s)}),R=a.useMemo(()=>({latestIndex:Je}),[Je]);if(Fe.length===0)return null;const E={};return Ve&&(E.flexWrap="wrap"),!ue&&je&&(E.columnGap=Re),!le&&_e&&(E.rowGap=Ee),it(a.createElement("div",Object.assign({ref:S,className:He,style:Object.assign(Object.assign(Object.assign({},E),k==null?void 0:k.style),N)},Y),a.createElement(de,{value:R},et)))});ee.Compact=g.ZP;var ne=ee},8378:function(dt,xe){"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`}}});xe.Z=l},92899:function(dt,xe,l){"use strict";l.d(xe,{Fm:function(){return Q}});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}}),ce=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}}),q=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:q},"move-down":{inKeyframes:P,outKeyframes:z},"move-left":{inKeyframes:y,outKeyframes:g},"move-right":{inKeyframes:ce,outKeyframes:de}},Q=(o,V)=>{const{antCls:we}=o,ee=`${we}-${V}`,{inKeyframes:ne,outKeyframes:_}=oe[V];return[(0,C.R)(ee,ne,_,o.motionDurationMid),{[`
|
|
${ee}-enter,
|
|
${ee}-appear
|
|
`]:{opacity:0,animationTimingFunction:o.motionEaseOutCirc},[`${ee}-leave`]:{animationTimingFunction:o.motionEaseInOutCirc}}]}},13826:function(dt,xe,l){"use strict";l.d(xe,{Qt:function(){return y},Uw:function(){return z},fJ:function(){return P},ly:function(){return g},oN:function(){return Q}});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}}),ce=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}}),q=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:ce,outKeyframes:de},"slide-right":{inKeyframes:U,outKeyframes:q}},Q=(o,V)=>{const{antCls:we}=o,ee=`${we}-${V}`,{inKeyframes:ne,outKeyframes:_}=oe[V];return[(0,C.R)(ee,ne,_,o.motionDurationMid),{[`
|
|
${ee}-enter,
|
|
${ee}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:o.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${ee}-leave`]:{animationTimingFunction:o.motionEaseInQuint}}]}},3867:function(dt,xe,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,ce=void 0,de=void 0,U=function(p,b){I[g]=p,I[g+1]=b,g+=2,g===2&&(de?de(k):A())};function q(d){de=d}function oe(d){U=d}var Q=typeof window!="undefined"?window:void 0,o=Q||{},V=o.MutationObserver||o.WebKitMutationObserver,we=typeof self=="undefined"&&typeof a!="undefined"&&{}.toString.call(a)==="[object process]",ee=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function ne(){return function(){return a.nextTick(k)}}function _(){return typeof ce!="undefined"?function(){ce(k)}:L()}function S(){var d=0,p=new V(k),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=k,function(){return d.port2.postMessage(0)}}function L(){var d=setTimeout;return function(){return d(k,1)}}var I=new Array(1e3);function k(){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 M(){try{var d=Function("return this")().require("vertx");return ce=d.runOnLoop||d.runOnContext,_()}catch(p){return L()}}var A=void 0;we?A=ne():V?A=S():ee?A=v():Q===void 0?A=M():A=L();function J(d,p){var b=this,u=new this.constructor(De);u[he]===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(De);return Ee(b,d),b}var he=Math.random().toString(36).substring(2);function De(){}var Ce=void 0,Te=1,Ae=2;function N(){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(me){B||(B=!0,p!==me?Ee(u,me):ue(u,me))},function(me){B||(B=!0,_e(u,me))},"Settle: "+(u._label||" unknown promise"));!B&&W&&(B=!0,_e(u,W))},d)}function Y(d,p){p._state===Te?ue(d,p._result):p._state===Ae?_e(d,p._result):je(p,void 0,function(b){return Ee(d,b)},function(b){return _e(d,b)})}function Re(d,p,b){p.constructor===d.constructor&&b===J&&p.constructor.resolve===se?Y(d,p):b===void 0?ue(d,p):P(b)?Z(d,p,b):ue(d,p)}function Ee(d,p){if(d===p)_e(d,N());else if(C(p)){var b=void 0;try{b=p.then}catch(u){_e(d,u);return}Re(d,p,b)}else ue(d,p)}function le(d){d._onerror&&d._onerror(d._result),Fe(d)}function ue(d,p){d._state===Ce&&(d._result=p,d._state=Te,d._subscribers.length!==0&&U(Fe,d))}function _e(d,p){d._state===Ce&&(d._state=Ae,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+Te]=b,B[W+Ae]=u,W===0&&d._state&&U(Fe,d)}function Fe(d){var p=d._subscribers,b=d._state;if(p.length!==0){for(var u=void 0,B=void 0,W=d._result,me=0;me<p.length;me+=3)u=p[me],B=p[me+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,me=void 0,ye=!0;if(B){try{W=b(u)}catch($e){ye=!1,me=$e}if(p===W){_e(p,Ve());return}}else W=u;p._state!==Ce||(B&&ye?Ee(p,W):ye===!1?_e(p,me):d===Te?ue(p,W):d===Ae&&_e(p,W))}function We(d,p){try{p(function(u){Ee(d,u)},function(u){_e(d,u)})}catch(b){_e(d,b)}}var it=0;function Me(){return it++}function He(d){d[he]=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(De),this.promise[he]||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))):_e(this.promise,Ye())}return d.prototype._enumerate=function(b){for(var u=0;this._state===Ce&&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 me=void 0,ye=void 0,$e=!1;try{me=b.then}catch(ke){$e=!0,ye=ke}if(me===J&&b._state!==Ce)this._settledAt(b._state,u,b._result);else if(typeof me!="function")this._remaining--,this._result[u]=b;else if(B===m){var ge=new B(De);$e?_e(ge,ye):Re(ge,b,me),this._willSettleAt(ge,u)}else this._willSettleAt(new B(function(ke){return ke(b)}),u)}else this._willSettleAt(W(b),u)},d.prototype._settledAt=function(b,u,B){var W=this.promise;W._state===Ce&&(this._remaining--,b===Ae?_e(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(Te,u,W)},function(W){return B._settledAt(Ae,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(De);return _e(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[he]=Me(),this._result=this._state=void 0,this._subscribers=[],De!==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=J,m.all=et,m.race=R,m.resolve=se,m.reject=E,m._setScheduler=q,m._setAsap=oe,m._asap=U;function $(){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=$,m.Promise=m,m})},86204:function(dt){"use strict";var xe=typeof Reflect=="object"?Reflect:null,l=xe&&typeof xe.apply=="function"?xe.apply:function(v,L,I){return Function.prototype.apply.call(v,L,I)},a;xe&&typeof xe.ownKeys=="function"?a=xe.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=ee,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 ce(S){return S._maxListeners===void 0?z.defaultMaxListeners:S._maxListeners}z.prototype.getMaxListeners=function(){return ce(this)},z.prototype.emit=function(v){for(var L=[],I=1;I<arguments.length;I++)L.push(arguments[I]);var k=v==="error",M=this._events;if(M!==void 0)k=k&&M.error===void 0;else if(!k)return!1;if(k){var A;if(L.length>0&&(A=L[0]),A instanceof Error)throw A;var J=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw J.context=A,J}var se=M[v];if(se===void 0)return!1;if(typeof se=="function")l(se,this,L);else for(var he=se.length,De=o(se,he),I=0;I<he;++I)l(De[I],this,L);return!0};function de(S,v,L,I){var k,M,A;if(g(L),M=S._events,M===void 0?(M=S._events=Object.create(null),S._eventsCount=0):(M.newListener!==void 0&&(S.emit("newListener",v,L.listener?L.listener:L),M=S._events),A=M[v]),A===void 0)A=M[v]=L,++S._eventsCount;else if(typeof A=="function"?A=M[v]=I?[L,A]:[A,L]:I?A.unshift(L):A.push(L),k=ce(S),k>0&&A.length>k&&!A.warned){A.warned=!0;var J=new Error("Possible EventEmitter memory leak detected. "+A.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");J.name="MaxListenersExceededWarning",J.emitter=S,J.type=v,J.count=A.length,C(J)}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 q(S,v,L){var I={fired:!1,wrapFn:void 0,target:S,type:v,listener:L},k=U.bind(I);return k.listener=L,I.wrapFn=k,k}z.prototype.once=function(v,L){return g(L),this.on(v,q(this,v,L)),this},z.prototype.prependOnceListener=function(v,L){return g(L),this.prependListener(v,q(this,v,L)),this},z.prototype.removeListener=function(v,L){var I,k,M,A,J;if(g(L),k=this._events,k===void 0)return this;if(I=k[v],I===void 0)return this;if(I===L||I.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete k[v],k.removeListener&&this.emit("removeListener",v,I.listener||L));else if(typeof I!="function"){for(M=-1,A=I.length-1;A>=0;A--)if(I[A]===L||I[A].listener===L){J=I[A].listener,M=A;break}if(M<0)return this;M===0?I.shift():V(I,M),I.length===1&&(k[v]=I[0]),k.removeListener!==void 0&&this.emit("removeListener",v,J||L)}return this},z.prototype.off=z.prototype.removeListener,z.prototype.removeAllListeners=function(v){var L,I,k;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 M=Object.keys(I),A;for(k=0;k<M.length;++k)A=M[k],A!=="removeListener"&&this.removeAllListeners(A);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(k=L.length-1;k>=0;k--)this.removeListener(v,L[k]);return this};function oe(S,v,L){var I=S._events;if(I===void 0)return[];var k=I[v];return k===void 0?[]:typeof k=="function"?L?[k.listener||k]:[k]:L?we(k):o(k,k.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):Q.call(S,v)},z.prototype.listenerCount=Q;function Q(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 ee(S,v){return new Promise(function(L,I){function k(A){S.removeListener(v,M),I(A)}function M(){typeof S.removeListener=="function"&&S.removeListener("error",k),L([].slice.call(arguments))}_(S,v,M,{once:!0}),v!=="error"&&ne(S,k,{once:!0})})}function ne(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 k(M){I.once&&S.removeEventListener(v,k),L(M)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof S)}},31561:function(dt,xe,l){"use strict";l.d(xe,{Z:function(){return M}});var a=l(54476),C=l(20068),P=l(42978),z=l(75931),y=l(35593),g=l(92310),ce=l.n(g),de=l(8654),U=l(59301),q=l(10228),oe=l(16089),Q=q.Z.ESC,o=q.Z.TAB;function V(A){var J=A.visible,se=A.triggerRef,he=A.onVisibleChange,De=A.autoFocus,Ce=A.overlayRef,Te=U.useRef(!1),Ae=function(){if(J){var Z,Y;(Z=se.current)===null||Z===void 0||(Y=Z.focus)===null||Y===void 0||Y.call(Z),he==null||he(!1)}},N=function(){var Z;return(Z=Ce.current)!==null&&Z!==void 0&&Z.focus?(Ce.current.focus(),Te.current=!0,!0):!1},Ve=function(Z){switch(Z.keyCode){case Q:Ae();break;case o:{var Y=!1;Te.current||(Y=N()),Y?Z.preventDefault():Ae();break}}};U.useEffect(function(){return J?(window.addEventListener("keydown",Ve),De&&(0,oe.Z)(N,3),function(){window.removeEventListener("keydown",Ve),Te.current=!1}):function(){Te.current=!1}},[J])}var we=(0,U.forwardRef)(function(A,J){var se=A.overlay,he=A.arrow,De=A.prefixCls,Ce=(0,U.useMemo)(function(){var Ae;return typeof se=="function"?Ae=se():Ae=se,Ae},[se]),Te=(0,de.sQ)(J,Ce==null?void 0:Ce.ref);return U.createElement(U.Fragment,null,he&&U.createElement("div",{className:"".concat(De,"-arrow")}),U.cloneElement(Ce,{ref:(0,de.Yr)(Ce)?Te:void 0}))}),ee=we,ne={adjustX:1,adjustY:1},_=[0,0],S={topLeft:{points:["bl","tl"],overflow:ne,offset:[0,-4],targetOffset:_},top:{points:["bc","tc"],overflow:ne,offset:[0,-4],targetOffset:_},topRight:{points:["br","tr"],overflow:ne,offset:[0,-4],targetOffset:_},bottomLeft:{points:["tl","bl"],overflow:ne,offset:[0,4],targetOffset:_},bottom:{points:["tc","bc"],overflow:ne,offset:[0,4],targetOffset:_},bottomRight:{points:["tr","br"],overflow:ne,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(A,J){var se,he=A.arrow,De=he===void 0?!1:he,Ce=A.prefixCls,Te=Ce===void 0?"rc-dropdown":Ce,Ae=A.transitionName,N=A.animation,Ve=A.align,Ge=A.placement,Z=Ge===void 0?"bottomLeft":Ge,Y=A.placements,Re=Y===void 0?v:Y,Ee=A.getPopupContainer,le=A.showAction,ue=A.hideAction,_e=A.overlayClassName,je=A.overlayStyle,Fe=A.visible,Ze=A.trigger,We=Ze===void 0?["hover"]:Ze,it=A.autoFocus,Me=A.overlay,He=A.children,Ye=A.onVisibleChange,Je=(0,z.Z)(A,L),et=U.useState(),R=(0,P.Z)(et,2),E=R[0],s=R[1],c="visible"in A?Fe:E,m=U.useRef(null),$=U.useRef(null),d=U.useRef(null);U.useImperativeHandle(J,function(){return m.current});var p=function(ke){s(ke),Ye==null||Ye(ke)};V({visible:c,triggerRef:d,onVisibleChange:p,autoFocus:it,overlayRef:$});var b=function(ke){var be=A.onOverlayClick;s(!1),be&&be(ke)},u=function(){return U.createElement(ee,{ref:$,overlay:Me,prefixCls:Te,arrow:De})},B=function(){return typeof Me=="function"?u:u()},W=function(){var ke=A.minOverlayWidthMatchTrigger,be=A.alignPoint;return"minOverlayWidthMatchTrigger"in A?ke:!be},me=function(){var ke=A.openClassName;return ke!==void 0?ke:"".concat(Te,"-open")},ye=U.cloneElement(He,{className:ce()((se=He.props)===null||se===void 0?void 0:se.className,c&&me()),ref:(0,de.Yr)(He)?(0,de.sQ)(d,He.ref):void 0}),$e=ue;return!$e&&We.indexOf("contextMenu")!==-1&&($e=["click"]),U.createElement(y.Z,(0,a.Z)({builtinPlacements:Re},Je,{prefixCls:Te,ref:m,popupClassName:ce()(_e,(0,C.Z)({},"".concat(Te,"-show-arrow"),De)),popupStyle:je,action:We,showAction:le,hideAction:$e,popupPlacement:Z,popupAlign:Ve,popupTransitionName:Ae,popupAnimation:N,popupVisible:c,stretch:W()?"minWidth":"",popup:B(),onPopupVisibleChange:p,onPopupClick:b,getPopupContainer:Ee}),ye)}var k=U.forwardRef(I),M=k},15285:function(dt,xe,l){"use strict";l.d(xe,{iz:function(){return fe},ck:function(){return Be},BW:function(){return Pe},sN:function(){return Be},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),ce=l(92310),de=l.n(ce),U=l(83836),q=l(18929),oe=l(13697),Q=l(48736),o=l(59301),V=l(4676),we=o.createContext(null);function ee(w,x){return w===void 0?null:"".concat(w,"-").concat(x)}function ne(w){var x=o.useContext(we);return ee(x,w)}var _=l(80547),S=["children","locked"],v=o.createContext(null);function L(w,x){var O=(0,P.Z)({},w);return Object.keys(x).forEach(function(j){var D=x[j];D!==void 0&&(O[j]=D)}),O}function I(w){var x=w.children,O=w.locked,j=(0,g.Z)(w,S),D=o.useContext(v),F=(0,_.Z)(function(){return L(D,j)},[D,j],function(T,re){return!O&&(T[0]!==re[0]||!(0,oe.Z)(T[1],re[1],!0))});return o.createElement(v.Provider,{value:F},x)}var k=[],M=o.createContext(null);function A(){return o.useContext(M)}var J=o.createContext(k);function se(w){var x=o.useContext(J);return o.useMemo(function(){return w!==void 0?[].concat((0,z.Z)(x),[w]):x},[x,w])}var he=o.createContext(null),De=o.createContext({}),Ce=De,Te=l(29194);function Ae(w){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,Te.Z)(w)){var O=w.nodeName.toLowerCase(),j=["input","select","textarea","button"].includes(O)||w.isContentEditable||O==="a"&&!!w.getAttribute("href"),D=w.getAttribute("tabindex"),F=Number(D),T=null;return D&&!Number.isNaN(F)?T=F:j&&T===null&&(T=0),j&&w.disabled&&(T=null),T!==null&&(T>=0||x&&T<0)}return!1}function N(w){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=(0,z.Z)(w.querySelectorAll("*")).filter(function(j){return Ae(j,x)});return Ae(w,x)&&O.unshift(w),O}var Ve=null;function Ge(){Ve=document.activeElement}function Z(){Ve=null}function Y(){if(Ve)try{Ve.focus()}catch(w){}}function Re(w,x){if(x.keyCode===9){var O=N(w),j=O[x.shiftKey?0:O.length-1],D=j===document.activeElement||w===document.activeElement;if(D){var F=O[x.shiftKey?O.length-1:0];F.focus(),x.preventDefault()}}}var Ee=l(10228),le=l(16089),ue=Ee.Z.LEFT,_e=Ee.Z.RIGHT,je=Ee.Z.UP,Fe=Ee.Z.DOWN,Ze=Ee.Z.ENTER,We=Ee.Z.ESC,it=Ee.Z.HOME,Me=Ee.Z.END,He=[je,Fe,ue,_e];function Ye(w,x,O,j){var D,F,T,re,Le="prev",Se="next",Ke="children",Ue="parent";if(w==="inline"&&j===Ze)return{inlineTrigger:!0};var st=(D={},(0,C.Z)(D,je,Le),(0,C.Z)(D,Fe,Se),D),ct=(F={},(0,C.Z)(F,ue,O?Se:Le),(0,C.Z)(F,_e,O?Le:Se),(0,C.Z)(F,Fe,Ke),(0,C.Z)(F,Ze,Ke),F),at=(T={},(0,C.Z)(T,je,Le),(0,C.Z)(T,Fe,Se),(0,C.Z)(T,Ze,Ke),(0,C.Z)(T,We,Ue),(0,C.Z)(T,ue,O?Ke:Ue),(0,C.Z)(T,_e,O?Ue:Ke),T),Dt={inline:st,horizontal:ct,vertical:at,inlineSub:st,horizontalSub:at,verticalSub:at},Bt=(re=Dt["".concat(w).concat(x?"":"Sub")])===null||re===void 0?void 0:re[j];switch(Bt){case Le:return{offset:-1,sibling:!0};case Se:return{offset:1,sibling:!0};case Ue:return{offset:-1,sibling:!1};case Ke:return{offset:1,sibling:!1};default:return null}}function Je(w){for(var x=w;x;){if(x.getAttribute("data-menu-list"))return x;x=x.parentElement}return null}function et(w,x){for(var O=w||document.activeElement;O;){if(x.has(O))return O;O=O.parentElement}return null}function R(w,x){var O=N(w,!0);return O.filter(function(j){return x.has(j)})}function E(w,x,O){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!w)return null;var D=R(w,x),F=D.length,T=D.findIndex(function(re){return O===re});return j<0?T===-1?T=F-1:T-=1:j>0&&(T+=1),T=(T+F)%F,D[T]}var s=function(x,O){var j=new Set,D=new Map,F=new Map;return x.forEach(function(T){var re=document.querySelector("[data-menu-id='".concat(ee(O,T),"']"));re&&(j.add(re),F.set(re,T),D.set(T,re))}),{elements:j,key2element:D,element2key:F}};function c(w,x,O,j,D,F,T,re,Le,Se){var Ke=o.useRef(),Ue=o.useRef();Ue.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=F(),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(w,T(Pt,!0).length===1,O,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(){Ue.current===sn&&nn.focus()})}};if([it,Me].includes(at)||yt.sibling||!pt){var wt;!pt||w==="inline"?wt=D.current:wt=Je(pt);var Gt,Ut=R(wt,ht);at===it?Gt=Ut[0]:at===Me?Gt=Ut[Ut.length-1]:Gt=E(wt,ht,pt,yt.offset),tn(Gt)}else if(yt.inlineTrigger)Le(Pt);else if(yt.offset>0)Le(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);Le(Yt,!1),tn(Qt)}}Se==null||Se(ct)}}function m(w){Promise.resolve().then(w)}var $="__RC_UTIL_PATH_SPLIT__",d=function(x){return x.join($)},p=function(x){return x.split($)},b="rc-menu-more";function u(){var w=o.useState({}),x=(0,y.Z)(w,2),O=x[1],j=(0,o.useRef)(new Map),D=(0,o.useRef)(new Map),F=o.useState([]),T=(0,y.Z)(F,2),re=T[0],Le=T[1],Se=(0,o.useRef)(0),Ke=(0,o.useRef)(!1),Ue=function(){Ke.current||O({})},st=(0,o.useCallback)(function(lt,ot){var Ct=d(ot);D.current.set(Ct,lt),j.current.set(lt,Ct),Se.current+=1;var pt=Se.current;m(function(){pt===Se.current&&Ue()})},[]),ct=(0,o.useCallback)(function(lt,ot){var Ct=d(ot);D.current.delete(Ct),j.current.delete(lt)},[]),at=(0,o.useCallback)(function(lt){Le(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($),Ct=new Set;return(0,z.Z)(D.current.keys()).forEach(function(pt){pt.startsWith(ot)&&Ct.add(D.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(w){var x=o.useRef(w);x.current=w;var O=o.useCallback(function(){for(var j,D=arguments.length,F=new Array(D),T=0;T<D;T++)F[T]=arguments[T];return(j=x.current)===null||j===void 0?void 0:j.call.apply(j,[x].concat(F))},[]);return w?O:void 0}var W=Math.random().toFixed(5).toString().slice(2),me=0;function ye(w){var x=(0,q.Z)(w,{value:w}),O=(0,y.Z)(x,2),j=O[0],D=O[1];return o.useEffect(function(){me+=1;var F="".concat(W,"-").concat(me);D("rc-menu-uuid-".concat(F))},[]),j}var $e=l(67732),ge=l(83652),ke=l(42403),be=l(158),ut=l(2738),gt=l(8654);function K(w,x,O,j){var D=o.useContext(v),F=D.activeKey,T=D.onActive,re=D.onInactive,Le={active:F===w};return x||(Le.onMouseEnter=function(Se){O==null||O({key:w,domEvent:Se}),T(w)},Le.onMouseLeave=function(Se){j==null||j({key:w,domEvent:Se}),re(w)}),Le}function bt(w){var x=o.useContext(v),O=x.mode,j=x.rtl,D=x.inlineIndent;if(O!=="inline")return null;var F=w;return j?{paddingRight:F*D}:{paddingLeft:F*D}}function mt(w){var x=w.icon,O=w.props,j=w.children,D;return x===null||x===!1?null:(typeof x=="function"?D=o.createElement(x,(0,P.Z)({},O)):typeof x!="boolean"&&(D=x),D||j||null)}var xt=["item"];function qe(w){var x=w.item,O=(0,g.Z)(w,xt);return Object.defineProperty(O,"item",{get:function(){return(0,Q.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),x}}),O}var At=["title","attribute","elementRef"],Tt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Ft=["active"],Et=function(w){(0,ke.Z)(O,w);var x=(0,be.Z)(O);function O(){return(0,$e.Z)(this,O),x.apply(this,arguments)}return(0,ge.Z)(O,[{key:"render",value:function(){var D=this.props,F=D.title,T=D.attribute,re=D.elementRef,Le=(0,g.Z)(D,At),Se=(0,ut.Z)(Le,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Q.ZP)(!T,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(U.Z.Item,(0,a.Z)({},T,{title:typeof F=="string"?F:void 0},Se,{ref:re}))}}]),O}(o.Component),Zt=o.forwardRef(function(w,x){var O,j=w.style,D=w.className,F=w.eventKey,T=w.warnKey,re=w.disabled,Le=w.itemIcon,Se=w.children,Ke=w.role,Ue=w.onMouseEnter,st=w.onMouseLeave,ct=w.onClick,at=w.onKeyDown,Dt=w.onFocus,Bt=(0,g.Z)(w,Tt),Ot=ne(F),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,wt=o.useContext(Ce),Gt=wt._internalRenderMenuItem,Ut="".concat(lt,"-item"),zt=o.useRef(),Yt=o.useRef(),Qt=Ct||re,un=(0,gt.x1)(x,Yt),Ht=se(F),nn=function(jt){return{key:F,keyPath:(0,z.Z)(Ht).reverse(),item:zt.current,domEvent:jt}},rn=Le||Pt,sn=K(F,Qt,Ue,st),mn=sn.active,pn=(0,g.Z)(sn,Ft),cn=yt.includes(F),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===Ee.Z.ENTER){var an=nn(jt);ct==null||ct(qe(an)),ot(an)}},Jt=function(jt){tn(F),Dt==null||Dt(jt)},Sn={};w.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,(O={},(0,C.Z)(O,"".concat(Ut,"-active"),mn),(0,C.Z)(O,"".concat(Ut,"-selected"),cn),(0,C.Z)(O,"".concat(Ut,"-disabled"),Qt),O),D),onClick:_n,onKeyDown:Vt,onFocus:Jt}),Se,o.createElement(mt,{props:(0,P.Z)((0,P.Z)({},w),{},{isSelected:cn}),icon:rn}));return Gt&&(vn=Gt(vn,w,{selected:cn})),vn});function Kt(w,x){var O=w.eventKey,j=A(),D=se(O);return o.useEffect(function(){if(j)return j.registerPath(O,D),function(){j.unregisterPath(O,D)}},[D]),j?null:o.createElement(Zt,(0,a.Z)({},w,{ref:x}))}var Be=o.forwardRef(Kt),Qe=["className","children"],Rt=function(x,O){var j=x.className,D=x.children,F=(0,g.Z)(x,Qe),T=o.useContext(v),re=T.prefixCls,Le=T.mode,Se=T.rtl;return o.createElement("ul",(0,a.Z)({className:de()(re,Se&&"".concat(re,"-rtl"),"".concat(re,"-sub"),"".concat(re,"-").concat(Le==="inline"?"inline":"vertical"),j),role:"menu"},F,{"data-menu-list":!0,ref:O}),D)},_t=o.forwardRef(Rt);_t.displayName="SubMenuList";var Nt=_t,$t=l(11592);function kt(w,x){return(0,$t.Z)(w).map(function(O,j){if(o.isValidElement(O)){var D,F,T=O.key,re=(D=(F=O.props)===null||F===void 0?void 0:F.eventKey)!==null&&D!==void 0?D:T,Le=re==null;Le&&(re="tmp_key-".concat([].concat((0,z.Z)(x),[j]).join("-")));var Se={key:re,eventKey:re};return o.cloneElement(O,Se)}return O})}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(w,x,O){if(x)return x;if(O)return O[w]||O.other}var t={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function n(w){var x=w.prefixCls,O=w.visible,j=w.children,D=w.popup,F=w.popupStyle,T=w.popupClassName,re=w.popupOffset,Le=w.disabled,Se=w.mode,Ke=w.onVisibleChange,Ue=o.useContext(v),st=Ue.getPopupContainer,ct=Ue.rtl,at=Ue.subMenuOpenDelay,Dt=Ue.subMenuCloseDelay,Bt=Ue.builtinPlacements,Ot=Ue.triggerSubMenuAction,ht=Ue.forceSubMenuRender,lt=Ue.rootClassName,ot=Ue.motion,Ct=Ue.defaultMotions,pt=o.useState(!1),Pt=(0,y.Z)(pt,2),yt=Pt[0],tn=Pt[1],wt=ct?(0,P.Z)((0,P.Z)({},dn),Bt):(0,P.Z)((0,P.Z)({},rt),Bt),Gt=t[Se],Ut=e(Se,ot,Ct),zt=o.useRef(Ut);Se!=="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(O)}),function(){le.Z.cancel(Qt.current)}},[O]),o.createElement(Lt.Z,{prefixCls:x,popupClassName:de()("".concat(x,"-popup"),(0,C.Z)({},"".concat(x,"-rtl"),ct),T,lt),stretch:Se==="horizontal"?"minWidth":null,getPopupContainer:st,builtinPlacements:wt,popupPlacement:Gt,popupVisible:yt,popup:D,popupStyle:F,popupAlign:re&&{offset:re},action:Le?[]:[Ot],mouseEnterDelay:at,mouseLeaveDelay:Dt,onPopupVisibleChange:Ke,forceRender:ht,popupMotion:Yt,fresh:!0},j)}var i=l(77900);function r(w){var x=w.id,O=w.open,j=w.keyPath,D=w.children,F="inline",T=o.useContext(v),re=T.prefixCls,Le=T.forceSubMenuRender,Se=T.motion,Ke=T.defaultMotions,Ue=T.mode,st=o.useRef(!1);st.current=Ue===F;var ct=o.useState(!st.current),at=(0,y.Z)(ct,2),Dt=at[0],Bt=at[1],Ot=st.current?O:!1;o.useEffect(function(){st.current&&Bt(!1)},[Ue]);var ht=(0,P.Z)({},e(F,Se,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:F,locked:!st.current},o.createElement(i.default,(0,a.Z)({visible:Ot},ht,{forceRender:Le,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},D)}))}var h=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],f=["active"],te=function(x){var O,j=x.style,D=x.className,F=x.title,T=x.eventKey,re=x.warnKey,Le=x.disabled,Se=x.internalPopupClose,Ke=x.children,Ue=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=ne(T),yt=o.useContext(v),tn=yt.prefixCls,wt=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(Ce),pn=mn._internalRenderSubMenuItem,cn=o.useContext(he),gn=cn.isSubPathKey,_n=se(),Vt="".concat(tn,"-submenu"),Jt=Ut||Le,Sn=o.useRef(),vn=o.useRef(),En=Ue!=null?Ue: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],$n=Kn[1],Mn=function(en){Jt||$n(en)},on=function(en){Mn(!0),Ot==null||Ot({key:T,domEvent:en})},Hn=function(en){Mn(!1),ht==null||ht({key:T,domEvent:en})},In=o.useMemo(function(){return yn||(wt!=="inline"?Bn||gn([Yt],T):!1)},[wt,yn,Yt,Bn,T,gn]),Nn=bt(_n.length),Vn=function(en){Jt||(lt==null||lt({key:T,domEvent:en}),wt==="inline"&&rn(T,!an))},wn=B(function(ln){Bt==null||Bt(qe(ln)),nn(ln)}),Ln=function(en){wt!=="inline"&&rn(T,en)},Dn=function(){sn(T)},On=Pt&&"".concat(Pt,"-popup"),An=o.createElement("div",(0,a.Z)({role:"menuitem",style:Nn,className:"".concat(Vt,"-title"),tabIndex:Jt?null:-1,ref:Sn,title:typeof F=="string"?F: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),F,o.createElement(mt,{icon:wt!=="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(wt);if(wt!=="inline"&&_n.length>1?qt.current="vertical":qt.current=wt,!zt){var Rn=qt.current;An=o.createElement(n,{mode:Rn,prefixCls:Vt,visible:!Se&&hn&&wt!=="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},An)}var bn=o.createElement(U.Z.Item,(0,a.Z)({role:"none"},pt,{component:"li",style:j,className:de()(Vt,"".concat(Vt,"-").concat(wt),D,(O={},(0,C.Z)(O,"".concat(Vt,"-open"),hn),(0,C.Z)(O,"".concat(Vt,"-active"),In),(0,C.Z)(O,"".concat(Vt,"-selected"),Fn),(0,C.Z)(O,"".concat(Vt,"-disabled"),Jt),O)),onMouseEnter:on,onMouseLeave:Hn}),An,!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:wn,mode:wt==="horizontal"?"vertical":wt,itemIcon:En,expandIcon:jt},bn)};function G(w){var x=w.eventKey,O=w.children,j=se(x),D=kt(O,j),F=A();o.useEffect(function(){if(F)return F.registerPath(x,j),function(){F.unregisterPath(x,j)}},[j]);var T;return F?T=D:T=o.createElement(te,w,D),o.createElement(J.Provider,{value:j},T)}var pe=l(76190),Ne=["className","title","eventKey","children"],ze=["children"],ae=function(x){var O=x.className,j=x.title,D=x.eventKey,F=x.children,T=(0,g.Z)(x,Ne),re=o.useContext(v),Le=re.prefixCls,Se="".concat(Le,"-item-group");return o.createElement("li",(0,a.Z)({role:"presentation"},T,{onClick:function(Ue){return Ue.stopPropagation()},className:de()(Se,O)}),o.createElement("div",{role:"presentation",className:"".concat(Se,"-title"),title:typeof j=="string"?j:void 0},j),o.createElement("ul",{role:"group",className:"".concat(Se,"-list")},F))};function Pe(w){var x=w.children,O=(0,g.Z)(w,ze),j=se(O.eventKey),D=kt(x,j),F=A();return F?D:o.createElement(ae,(0,ut.Z)(O,["warnKey"]),D)}function fe(w){var x=w.className,O=w.style,j=o.useContext(v),D=j.prefixCls,F=A();return F?null:o.createElement("li",{role:"separator",className:de()("".concat(D,"-item-divider"),x),style:O})}var X=["label","children","key","type"];function ie(w){return(w||[]).map(function(x,O){if(x&&(0,pe.Z)(x)==="object"){var j=x,D=j.label,F=j.children,T=j.key,re=j.type,Le=(0,g.Z)(j,X),Se=T!=null?T:"tmp-".concat(O);return F||re==="group"?re==="group"?o.createElement(Pe,(0,a.Z)({key:Se},Le,{title:D}),ie(F)):o.createElement(G,(0,a.Z)({key:Se},Le,{title:D}),ie(F)):re==="divider"?o.createElement(fe,(0,a.Z)({key:Se},Le)):o.createElement(Be,(0,a.Z)({key:Se},Le),D)}return null}).filter(function(x){return x})}function Ie(w,x,O){var j=w;return x&&(j=ie(x)),kt(j,O)}var Oe=["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=[],Mt=o.forwardRef(function(w,x){var O,j,D=w,F=D.prefixCls,T=F===void 0?"rc-menu":F,re=D.rootClassName,Le=D.style,Se=D.className,Ke=D.tabIndex,Ue=Ke===void 0?0:Ke,st=D.items,ct=D.children,at=D.direction,Dt=D.id,Bt=D.mode,Ot=Bt===void 0?"vertical":Bt,ht=D.inlineCollapsed,lt=D.disabled,ot=D.disabledOverflow,Ct=D.subMenuOpenDelay,pt=Ct===void 0?.1:Ct,Pt=D.subMenuCloseDelay,yt=Pt===void 0?.1:Pt,tn=D.forceSubMenuRender,wt=D.defaultOpenKeys,Gt=D.openKeys,Ut=D.activeKey,zt=D.defaultActiveFirst,Yt=D.selectable,Qt=Yt===void 0?!0:Yt,un=D.multiple,Ht=un===void 0?!1:un,nn=D.defaultSelectedKeys,rn=D.selectedKeys,sn=D.onSelect,mn=D.onDeselect,pn=D.inlineIndent,cn=pn===void 0?24:pn,gn=D.motion,_n=D.defaultMotions,Vt=D.triggerSubMenuAction,Jt=Vt===void 0?"hover":Vt,Sn=D.builtinPlacements,vn=D.itemIcon,En=D.expandIcon,jt=D.overflowedIndicator,an=jt===void 0?"...":jt,hn=D.overflowedIndicatorPopupClassName,Fn=D.getPopupContainer,xn=D.onClick,yn=D.onOpenChange,Zn=D.onKeyDown,qn=D.openAnimation,Kn=D.openTransitionName,Bn=D._internalRenderMenuItem,$n=D._internalRenderSubMenuItem,Mn=(0,g.Z)(D,Oe),on=o.useMemo(function(){return Ie(ct,st,Xe)},[ct,st]),Hn=o.useState(!1),In=(0,y.Z)(Hn,2),Nn=In[0],Vn=In[1],wn=o.useRef(),Ln=ye(Dt),Dn=at==="rtl",On=(0,q.Z)(wt,{value:Gt,postState:function(ft){return ft||Xe}}),An=(0,y.Z)(On,2),qt=An[0],Rn=An[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,wi=Cn.getKeyPath,li=Cn.getKeys,Ai=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,q.Z)(Ut||zt&&((O=on[0])===null||O===void 0?void 0:O.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:wn.current,focus:function(ft){var St,Wt=li(),Xt=s(Wt,Ln),jn=Xt.elements,Qn=Xt.key2element,zi=Xt.element2key,hi=R(wn.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,q.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=Ai(It);St=St.filter(function(Xt){return!Wt.has(Xt)})}(0,oe.Z)(qt,St,!0)||bn(St,!0)}),$i=function(ft,St){var Wt=St!=null?St:!qt.includes(ft);ci(ft,Wt)},Mi=c(fn,kn,Dn,Ln,wn,li,wi,Yn,$i,Zn);o.useEffect(function(){Vn(!0)},[]);var Ni=o.useMemo(function(){return{_internalRenderMenuItem:Bn,_internalRenderSubMenuItem:$n}},[Bn,$n]),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:wn,prefixCls:"".concat(T,"-overflow"),component:"ul",itemComponent:Be,className:de()(T,"".concat(T,"-root"),"".concat(T,"-").concat(fn),Se,(j={},(0,C.Z)(j,"".concat(T,"-inline-collapsed"),yi),(0,C.Z)(j,"".concat(T,"-rtl"),Dn),j),re),dir:at,style:Le,role:"menu",tabIndex:Ue,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:Mi},Mn));return o.createElement(Ce.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(he.Provider,{value:Bi},Ui),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(M.Provider,{value:Ri},on)))))}),vt=Mt,ve=vt;ve.Item=Be,ve.SubMenu=G,ve.ItemGroup=Pe,ve.Divider=fe;var nt=ve},83836:function(dt,xe,l){"use strict";l.d(xe,{Z:function(){return Ge}});var a=l(54476),C=l(33885),P=l(42978),z=l(75931),y=l(59301),g=l(92310),ce=l.n(g),de=l(29301),U=l(34280),q=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],oe=void 0;function Q(Z,Y){var Re=Z.prefixCls,Ee=Z.invalidate,le=Z.item,ue=Z.renderItem,_e=Z.responsive,je=Z.responsiveDisabled,Fe=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,q),E=_e&&!He;function s(p){Fe(Ze,p)}y.useEffect(function(){return function(){s(null)}},[]);var c=ue&&le!==oe?ue(le,{index:Ye}):Me,m;Ee||(m={opacity:E?0:1,height:E?0:oe,overflowY:E?"hidden":oe,order:_e?Ye:oe,pointerEvents:E?"none":oe,position:E?"absolute":oe});var $={};E&&($["aria-hidden"]=!0);var d=y.createElement(et,(0,a.Z)({className:ce()(!Ee&&Re,We),style:(0,C.Z)((0,C.Z)({},m),it)},$,R,{ref:Y}),c);return _e&&(d=y.createElement(de.Z,{onResize:function(b){var u=b.offsetWidth;s(u)},disabled:je},d)),d}var o=y.forwardRef(Q);o.displayName="Item";var V=o,we=l(6089),ee=l(4676),ne=l(16089);function _(Z){if(typeof MessageChannel=="undefined")(0,ne.Z)(Z);else{var Y=new MessageChannel;Y.port1.onmessage=function(){return Z()},Y.port2.postMessage(void 0)}}function S(){var Z=y.useRef(null),Y=function(Ee){Z.current||(Z.current=[],_(function(){(0,ee.unstable_batchedUpdates)(function(){Z.current.forEach(function(le){le()}),Z.current=null})})),Z.current.push(Ee)};return Y}function v(Z,Y){var Re=y.useState(Y),Ee=(0,P.Z)(Re,2),le=Ee[0],ue=Ee[1],_e=(0,we.Z)(function(je){Z(function(){ue(je)})});return[le,_e]}var L=y.createContext(null),I=["component"],k=["className"],M=["className"],A=function(Y,Re){var Ee=y.useContext(L);if(!Ee){var le=Y.component,ue=le===void 0?"div":le,_e=(0,z.Z)(Y,I);return y.createElement(ue,(0,a.Z)({},_e,{ref:Re}))}var je=Ee.className,Fe=(0,z.Z)(Ee,k),Ze=Y.className,We=(0,z.Z)(Y,M);return y.createElement(L.Provider,{value:null},y.createElement(V,(0,a.Z)({ref:Re,className:ce()(je,Ze)},Fe,We)))},J=y.forwardRef(A);J.displayName="RawItem";var se=J,he=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],De="responsive",Ce="invalidate";function Te(Z){return"+ ".concat(Z.length," ...")}function Ae(Z,Y){var Re=Z.prefixCls,Ee=Re===void 0?"rc-overflow":Re,le=Z.data,ue=le===void 0?[]:le,_e=Z.renderItem,je=Z.renderRawItem,Fe=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,$=Z.onVisibleChange,d=(0,z.Z)(Z,he),p=it==="full",b=S(),u=v(b,null),B=(0,P.Z)(u,2),W=B[0],me=B[1],ye=W||0,$e=v(b,new Map),ge=(0,P.Z)($e,2),ke=ge[0],be=ge[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],At=xt[1],Tt=v(b,0),Ft=(0,P.Z)(Tt,2),Et=Ft[0],Zt=Ft[1],Kt=v(b,0),Be=(0,P.Z)(Kt,2),Qe=Be[0],Rt=Be[1],_t=(0,y.useState)(null),Nt=(0,P.Z)(_t,2),$t=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(Ee,"-item"),h=Math.max(K,qe),f=Ye===De,te=ue.length&&f,G=Ye===Ce,pe=te||typeof Ye=="number"&&ue.length>Ye,Ne=(0,y.useMemo)(function(){var F=ue;return te?W===null&&p?F=ue:F=ue.slice(0,Math.min(ue.length,ye/We)):typeof Ye=="number"&&(F=ue.slice(0,Ye)),F},[ue,We,W,Ye,te]),ze=(0,y.useMemo)(function(){return te?ue.slice(H+1):ue.slice(Ne.length)},[ue,Ne,te,H]),ae=(0,y.useCallback)(function(F,T){var re;return typeof Fe=="function"?Fe(F):(re=Fe&&(F==null?void 0:F[Fe]))!==null&&re!==void 0?re:T},[Fe]),Pe=(0,y.useCallback)(_e||function(F){return F},[_e]);function fe(F,T,re){rt===F&&(T===void 0||T===$t)||(dn(F),re||(i(F<ue.length-1),$==null||$(F)),T!==void 0&&kt(T))}function X(F,T){me(T.clientWidth)}function ie(F,T){be(function(re){var Le=new Map(re);return T===null?Le.delete(F):Le.set(F,T),Le})}function Ie(F,T){At(T),bt(qe)}function Oe(F,T){Zt(T)}function Xe(F,T){Rt(T)}function Mt(F){return ke.get(ae(Ne[F],F))}(0,U.Z)(function(){if(ye&&typeof h=="number"&&Ne){var F=Et+Qe,T=Ne.length,re=T-1;if(!T){fe(0,null);return}for(var Le=0;Le<T;Le+=1){var Se=Mt(Le);if(p&&(Se=Se||0),Se===void 0){fe(Le-1,void 0,!0);break}if(F+=Se,re===0&&F<=ye||Le===re-1&&F+Mt(re)<=ye){fe(re,null);break}else if(F+h>ye){fe(Le-1,F-Se-Qe+qe);break}}E&&Mt(0)+Qe>ye&&kt(null)}},[ye,ke,qe,Et,Qe,ae,Ne]);var vt=n&&!!ze.length,ve={};$t!==null&&te&&(ve={position:"absolute",left:$t,top:0});var nt={prefixCls:r,responsive:te,component:m,invalidate:G},w=je?function(F,T){var re=ae(F,T);return y.createElement(L.Provider,{key:re,value:(0,C.Z)((0,C.Z)({},nt),{},{order:T,item:F,itemKey:re,registerSize:ie,display:T<=H})},je(F,T))}:function(F,T){var re=ae(F,T);return y.createElement(V,(0,a.Z)({},nt,{order:T,key:re,item:F,renderItem:Pe,itemKey:re,registerSize:ie,display:T<=H}))},x={order:vt?H:Number.MAX_SAFE_INTEGER,className:"".concat(r,"-rest"),registerSize:Ie,display:vt},O=Je||Te,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 O=="function"?O(ze):O),D=y.createElement(c,(0,a.Z)({className:ce()(!G&&Ee,He),style:Me,ref:Y},d),R&&y.createElement(V,(0,a.Z)({},nt,{responsive:f,responsiveDisabled:!te,order:-1,className:"".concat(r,"-prefix"),registerSize:Oe,display:!0}),R),Ne.map(w),pe?j:null,E&&y.createElement(V,(0,a.Z)({},nt,{responsive:f,responsiveDisabled:!te,order:H,className:"".concat(r,"-suffix"),registerSize:Xe,display:!0,style:ve}),E));return f?y.createElement(de.Z,{onResize:X,disabled:!te},D):D}var N=y.forwardRef(Ae);N.displayName="Overflow",N.Item=se,N.RESPONSIVE=De,N.INVALIDATE=Ce;var Ve=N,Ge=Ve},87436:function(dt){var xe=arguments[3],l=arguments[4],a=arguments[5],C=JSON.stringify;dt.exports=function(P,z){for(var y,g=Object.keys(a),ce=0,de=g.length;ce<de;ce++){var U=g[ce],q=a[U].exports;if(q===P||q&&q.default===P){y=U;break}}if(!y){y=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var oe={},ce=0,de=g.length;ce<de;ce++){var U=g[ce];oe[U]=U}l[y]=["function(require,module,exports){"+P+"(self); }",oe]}var Q=Math.floor(Math.pow(16,8)*Math.random()).toString(16),o={};o[y]=y,l[Q]=["function(require,module,exports){var f = require("+C(y)+");(f.default ? f.default : f)(self);}",o];var V={};we(Q);function we(L){V[L]=!0;for(var I in l[L][1]){var k=l[L][1][I];V[k]||we(k)}}var ee="("+xe+")({"+Object.keys(V).map(function(L){return C(L)+":["+l[L][0]+","+C(l[L][1])+"]"}).join(",")+"},{},["+C(Q)+"])",ne=window.URL||window.webkitURL||window.mozURL||window.msURL,_=new Blob([ee],{type:"text/javascript"});if(z&&z.bare)return _;var S=ne.createObjectURL(_),v=new Worker(S);return v.objectURL=S,v}}}]);
|