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
284 KiB
44 lines
284 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[54928],{25877:function(qe,he,l){"use strict";l.d(he,{Z:function(){return q}});var s=l(87462),C=l(67294),T={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"},k=T,A=l(84089),g=function(u,P){return C.createElement(A.Z,(0,s.Z)({},u,{ref:P,icon:k}))},q=C.forwardRef(g)},22751:function(qe,he,l){"use strict";l.d(he,{Z:function(){return q}});var s=l(87462),C=l(67294),T={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"},k=T,A=l(84089),g=function(u,P){return C.createElement(A.Z,(0,s.Z)({},u,{ref:P,icon:k}))},q=C.forwardRef(g)},91034:function(qe,he,l){"use strict";l.d(he,{Z:function(){return q}});var s=l(87462),C=l(67294),T={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"},k=T,A=l(84089),g=function(u,P){return C.createElement(A.Z,(0,s.Z)({},u,{ref:P,icon:k}))},q=C.forwardRef(g)},6104:function(qe,he,l){"use strict";l.d(he,{Z:function(){return se}});var s=l(67294),C=l(2453),T=l(85418),k=l(24577),A=l(67631),g=l.n(A),q=l(52262),te=l(74855),u=l(51959),P={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"},ne=(N,x,w)=>new Promise((S,F)=>{var v=$=>{try{V(w.next($))}catch(J){F(J)}},B=$=>{try{V(w.throw($))}catch(J){F(J)}},V=$=>$.done?S($.value):Promise.resolve($.value).then(v,B);V((w=w.apply(N,x)).next())});function X(N){if(isNaN(N))return{minutes:"00",seconds:"00"};const x=new Date(N*1e3).toISOString().substr(11,8);return{hour:x.substr(0,2),minutes:x.substr(3,2),seconds:x.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function L(N,x){return N-x}function H(N){N.sort(L);let x=0;for(let w=0;w<N.length-1;w++){let S=Math.abs(N[w+1]-N[w]);S<21&&(x+=S)}return x}const fe=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var se=(0,s.forwardRef)(({allow_skip:N,src:x,toLog:w,videoId:S,logWatchHistory:F,courseId:v=null,startTime:B,handlePause:V=()=>{},handlePlay:$=()=>{},handlePlayEnded:J=()=>{},autoPlay:me=!1,onPlayEnded:Ae=()=>{},isShowWaterMark:ke=!0},je)=>{var Fe;const We=((Fe=x==null?void 0:x.split("."))==null?void 0:Fe.pop())==="flv",j=(0,s.useRef)(),vt=(0,s.useRef)(),dt=(0,s.useRef)(),Be=(0,s.useRef)(),ve=(0,s.useRef)(),Ke=(0,s.useRef)(),Oe=(0,s.useRef)(),be=(0,s.useRef)(),we=(0,s.useRef)(),It=(0,s.useRef)(),at=(0,s.useRef)(),_t=(0,s.useRef)(),Kt=(0,s.useRef)(),ct=(0,s.useRef)(),ot=navigator.userAgent.toLowerCase().match(fe),ht=ot?ot[0]:"pc",Zt=(0,s.useRef)(!1),ft=(0,q.eY)();let Re=0,M=0,c=0,d=null,o=!1,m=20,R=1,h=!1,_=!1,E=[];(0,s.useImperativeHandle)(je,()=>({getLastUpdatedTime:()=>j.current.currentTime,getDuration:()=>j.current.duration})),C.ZP.config({maxCount:1,getContainer:()=>dt.current});const a=(0,s.useCallback)((oe,Ue=!1)=>{let $e={point:j.current.currentTime};d?($e.log_id=d,$e.watch_duration=H(E),$e.total_duration=M):(v?($e.video_id=parseInt(S,10),$e.course_id=v):$e.video_id=S,$e.duration=Re,$e.device=ht),Ue&&($e.ed="1");function et(){return ne(this,null,function*(){h=!0,d=yield F==null?void 0:F($e),h=!1,oe&&oe()})}et()},[S,v]);(0,s.useEffect)(()=>{j.current&&(Be.current.style.display="none",ve.current.style.display="block"),C.ZP.destroy();let oe=null;return k.Z.isSupported&&We&&x&&(x==null?void 0:x.indexOf(".m3u8"))<0?(oe=k.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:x,muted:!1}),j.current&&(oe.attachMediaElement(j.current),oe.load())):j.current.setAttribute("src",x),W(),()=>{oe&&(oe.unload(),oe.pause(),oe.destroy(),oe=null)}},[j,We,x]);function z(){j.current.paused?(Be.current.style.display="none",ve.current.style.display="block"):(Be.current.style.display="block",ve.current.style.display="none")}function W(){at.current.style.display="none",Kt.current.style.display="none",_t.current.style.display="none",j.current.muted||j.current.volume===0?at.current.style.display="block":j.current.volume>0&&j.current.volume<=.5?Kt.current.style.display="block":_t.current.style.display="block"}(0,s.useEffect)(()=>{const oe=document.getElementById("play"),Ue=document.querySelectorAll(".playback-icons use");function $e(){$(),B&&!Zt.current&&(j.current.currentTime=B),Zt.current=!0,E.push(j.current.currentTime),o||(o=!0,w&&a())}function et(){return ne(this,null,function*(){z(),E.push(j.current.currentTime),w&&a(()=>{d=null,c=0,o=!1,h=!1,_=!1,E=[],M=0,R=1},!0),Ae()})}function K(){Ke.current.value=Math.round(j.current.currentTime),Oe.current.value=Math.round(j.current.currentTime)}function Et(){const _e=X(Math.round(j.current.currentTime));we.current.innerText=`${_e.hour>0?_e.hour+":":""}${_e.minutes}:${_e.seconds}`,we.current.setAttribute("datetime",`${_e.hour>0?" "+_e.hour+" ":""}${_e.minutes}m ${_e.seconds}s`)}function St(){var _e,Ge,tt,Nt,zt,Wt,Bt;const Xt=Math.round((_e=j.current)==null?void 0:_e.duration);(tt=(Ge=Ke.current)==null?void 0:Ge.setAttribute)==null||tt.call(Ge,"max",Xt),(zt=(Nt=Oe.current)==null?void 0:Nt.setAttribute)==null||zt.call(Nt,"max",Xt);const De=X(Xt);be.current&&(be.current.innerText=`${De.hour>0?De.hour+":":""}${De.minutes}:${De.seconds}`,(Bt=(Wt=be.current).setAttribute)==null||Bt.call(Wt,"datetime",`${De.hour>0?" "+De.hour+" ":""}${De.minutes}m ${De.seconds}s`))}function wt(){try{const _e=Math.round(j.current.duration);Ke.current.setAttribute("max",_e),Oe.current.setAttribute("max",_e);const Ge=X(_e);be.current.innerText=`${Ge.hour>0?Ge.hour+":":""}${Ge.minutes}:${Ge.seconds}`,be.current.setAttribute("datetime",`${Ge.hour>0?" "+Ge.hour+" ":""}${Ge.minutes}m ${Ge.seconds}s`),K(),Et();const{width:tt,height:Nt,x:zt,y:Wt}=vt.current.getBoundingClientRect();if(zt<0||Wt<0||!tt)return;if(!_){let Bt=j.current.currentTime,Xt=Bt-c;Math.abs(Xt)<10?(M+=Math.abs(Xt),c=Bt,h||M-R*m>=0&&(R++,E.push(c),w&&a())):(c=Bt,w&&a())}}catch(_e){console.log(_e)}}function Ye(){_=!0}function lt(){j.current.playing&&E.push(j.current.currentTime,c),c=j.current.currentTime,_=!1}function At(){Re=j.current.duration,Re<=20&&(m=Re/3),j.current.addEventListener("play",$e)}function Rt(_e){_e.preventDefault(),(0,u.vp)()?(j.current.style.width="100%",j.current.style.height="100%"):j.current.style.cssText=""}function Ct(){V()}function Lt(_e){if(!N){C.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Ge=_e.target.dataset.seek?_e.target.dataset.seek:_e.target.value;j.current.currentTime=Ge,Oe.current.value=Ge,Ke.current.value=Ge}function Ht(_e){const Ge=Math.round(_e.offsetX/_e.target.clientWidth*parseInt(_e.target.getAttribute("max"),10));Ke.current.setAttribute("data-seek",Ge);const tt=X(Ge);It.current.textContent=`${tt.hour>0?tt.hour+":":""}${tt.minutes}:${tt.seconds}`;const Nt=j.current.getBoundingClientRect();It.current.style.left=`${_e.pageX-Nt.left}px`}function Mt(_e){switch(_e.code){case"Space":_e.preventDefault(),de();break;case"ArrowRight":if(_e.preventDefault(),!N){C.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(j.current.currentTime>=j.current.duration)break;j.current.currentTime=parseInt(j.current.currentTime)+5,K();break;case"ArrowLeft":if(_e.preventDefault(),!N){C.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(j.current.currentTime===0)break;j.current.currentTime=parseInt(j.current.currentTime)-5,K();break;case"ArrowUp":_e.preventDefault(),j.current.volume<1&&(j.current.volume=(parseInt(j.current.volume*10)+1)/10);break;case"ArrowDown":_e.preventDefault(),j.current.volume>0&&(j.current.volume=(parseInt(j.current.volume*10)-1)/10);break}}return dt.current.addEventListener((0,u.gH)(),Rt),j.current.addEventListener("canplay",At),j.current.addEventListener("ended",et),j.current.addEventListener("seeking",Ye),j.current.addEventListener("seeked",lt),j.current.addEventListener("loadedmetadata",St),Ke.current.addEventListener("mousemove",Ht),Ke.current.addEventListener("input",Lt),j.current.addEventListener("timeupdate",wt),j.current.addEventListener("pause",Ct),j.current.addEventListener("volumechange",W),document.addEventListener("keydown",Mt),()=>{var _e,Ge,tt,Nt,zt,Wt,Bt,Xt,De,Cn,G,e;(_e=j.current)==null||_e.removeEventListener("canplay",At),(Ge=j.current)==null||Ge.removeEventListener("play",$e),(tt=j.current)==null||tt.removeEventListener("ended",et),(Nt=j.current)==null||Nt.removeEventListener("seeking",Ye),(zt=j.current)==null||zt.removeEventListener("seeked",lt),(Wt=Ke.current)==null||Wt.removeEventListener("mousemove",Ht),(Bt=Ke.current)==null||Bt.removeEventListener("input",Lt),(Xt=j.current)==null||Xt.removeEventListener("timeupdate",wt),(De=j.current)==null||De.removeEventListener("pause",Ct),(Cn=j.current)==null||Cn.removeEventListener("loadedmetadata",St),(G=j.current)==null||G.removeEventListener("volumechange",W),document.removeEventListener("keydown",Mt),(e=j.current)!=null&&e.playing&&(E.push(c,j.current.currentTime),w&&a())}},[j,x]),(0,s.useEffect)(()=>{if(j.current.onended=()=>{J(j)},j.current.oncontextmenu=()=>!1,(x==null?void 0:x.indexOf(".m3u8"))>-1){if(j.current.canPlayType("application/vnd.apple.mpegurl"))j.current.src=x;else if(g().isSupported()){var oe=new(g());oe.loadSource(x),oe.attachMedia(j.current)}}},[x]);const[ae,pe]=(0,s.useState)(1),de=()=>{j.current.paused||j.current.ended?j.current.play():j.current.pause(),z()};function ce(){j.current.muted=!j.current.muted,j.current.muted?(ct.current.setAttribute("data-volume",volume.value),ct.current.value=0):ct.current.value=ct.current.dataset.volume}return s.createElement("div",{style:{position:"relative"},ref:dt},s.createElement("div",{ref:vt,className:`${P.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${P.animate__loop}`},ke&&ft?ft.login:" "),s.createElement("div",{className:P.container},s.createElement("div",{className:P["video-container"],id:"video-container"},s.createElement("div",{className:P["playback-animation"],id:"playback-animation"},s.createElement("svg",{className:P["playback-icons"]},s.createElement("use",{className:"hidden",href:"#play-icon"}),s.createElement("use",{href:"#pause"}))),s.createElement("video",{className:P.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:j,autoPlay:me}),s.createElement("div",{className:`${P["video-controls"]} `,id:"video-controls"},s.createElement("div",{className:P["bottom-controls"]},s.createElement("div",{className:P["left-controls"]},s.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:de},s.createElement("svg",{className:P["playback-icons"]},s.createElement("use",{ref:ve,href:"#play-icon"}),s.createElement("use",{ref:Be,style:{display:"none"},href:"#pause"}))),s.createElement("div",{className:P.time},s.createElement("time",{id:"time-elapsed",ref:we},"00:00"),s.createElement("span",null," / "),s.createElement("time",{id:"duration",ref:be},"00:00"))),s.createElement("div",{className:P["right-controls"]},N&&s.createElement(T.Z,{placement:"top",overlayClassName:P.rateOverlay,getPopupContainer:oe=>oe.parentNode,menu:{items:[{key:"1",label:s.createElement("span",{onClick:()=>{pe(1),j.current.playbackRate=1}},"1.0x")},{key:"2",label:s.createElement("span",{onClick:()=>{pe(1.5),j.current.playbackRate=1.5}},"1.5x")},{key:"3",label:s.createElement("span",{onClick:()=>{pe(2),j.current.playbackRate=2}},"2.0x")}]}},s.createElement("div",{className:`${P.controlText} mr5`},"\u500D\u901F")),s.createElement(te.CopyToClipboard,{text:x,onCopy:()=>C.ZP.success("\u590D\u5236\u6210\u529F")},s.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},s.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),s.createElement("div",{className:P["volume-controls"]},s.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:P["volume-button"],id:"volume-button",onClick:ce},s.createElement("i",{ref:at,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),s.createElement("i",{ref:Kt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),s.createElement("i",{ref:_t,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),s.createElement("input",{className:P.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:ct,style:{display:"none"},onClick:W})),s.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:P["fullscreen-button"],onClick:()=>{(0,u.vp)()?(0,u.BU)():(0,u.Dj)(dt.current)}},s.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),s.createElement("div",{className:P["video-progress"]},s.createElement("progress",{ref:Oe,value:"0",min:"0"}),s.createElement("input",{className:P.seek,ref:Ke,value:"0",min:"0",type:"range",step:"1"}),s.createElement("div",{className:P["seek-tooltip"],ref:It,id:"seek-tooltip"},"00:00"))))),s.createElement("svg",{style:{display:"none"}},s.createElement("defs",null,s.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},s.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),s.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},s.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),s.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},s.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"})),s.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},s.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"})),s.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},s.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"})),s.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},s.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"})),s.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},s.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"})),s.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},s.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"})))))})},71941:function(qe,he,l){"use strict";l.r(he),l.d(he,{default:function(){return N}});var s=l(67294),C=l(35973),T=l(46303),k=l(14446),A={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(52262);const q={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(x=>(x.parent=Number(x.parent),x.key=Number(x.key),x)),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(x=>(x.parent=Number(x.parent),x.key=Number(x.key),x)),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(x=>(x.parent=Number(x.parent),x.key=Number(x.key),x))};var te=l(15070),u=l(6104),P=Object.defineProperty,ne=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,H=(x,w,S)=>w in x?P(x,w,{enumerable:!0,configurable:!0,writable:!0,value:S}):x[w]=S,fe=(x,w)=>{for(var S in w||(w={}))X.call(w,S)&&H(x,S,w[S]);if(ne)for(var S of ne(w))L.call(w,S)&&H(x,S,w[S]);return x};const se=({classroomList:x,loading:w,dispatch:S})=>{const[F]=(0,C.useSearchParams)(),[v]=(0,s.useState)(fe({},(0,C.useParams)())),[B,V]=(0,s.useState)("init"),[$,J]=(0,s.useState)(""),me=(0,s.useRef)();(0,s.useEffect)(()=>{const xe=F.get("tabId");xe&&(V(xe),v.status=xe)},[v.categoryId,F.get("tabId")]);const Ae=xe=>{V(xe.key)},ke=[{name:"\u521D\u59CB\u5B66\u4E60",id:"init"},{name:"\u590D\u4E60\u5B66\u4E60",id:"review"},{name:"\u8003\u524D\u5B66\u4E60",id:"before"}],je=xe=>{xe.data.type==="playVideo"&&J(xe.data.url)};(0,s.useEffect)(()=>{B&&Fe(),window.addEventListener("message",je)},[B]);const Fe=()=>{var xe;(xe=me.current.contentWindow)==null||xe.postMessage({data:q[B]},"*")};return s.createElement("section",null,s.createElement(te.Z,{isLoading:w["classroomList/getClassroomAttendancesList"],tabDataSource:ke,isAdmin:(0,g.GJ)(),onTabMenuClick:Ae,defaultSelectedKeys:[B]}),s.createElement("section",null,s.createElement(T.Z,{loading:w["classroomList/getClassroomAttendancesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},s.createElement("iframe",{src:"/knowledgegraph/parseTree.html",onLoad:Fe,className:A.iframe,ref:me}))),s.createElement(k.default,{open:!!$,onCancel:()=>J(""),width:800,footer:null,bodyStyle:{padding:0},centered:!0,destroyOnClose:!0},s.createElement(u.Z,{src:$,autoPlay:!0,toLog:!1})))};var N=(0,C.connect)(({classroomList:x,loading:w,globalSetting:S})=>({classroomList:x,globalSetting:S,loading:w.effects}))(se)},15070:function(qe,he,l){"use strict";l.d(he,{Z:function(){return X}});var s=l(67294),C=l(71230),T=l(15746),k=l(68508),A=l(85418),g=l(2453),q=l(83062),te={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},u=l(35973),P=l(52262),X=({isLoading:L,addText:H,tabDataSource:fe,isAdmin:se,dispatch:N,classroomList:x,type:w,isExercise:S,defaultSelectedKeys:F,onTabMenuClick:v,getDropdownMenu:B,showControlButton:V,buttonText:$,buttonIcon:J="icon-tianjiadaohang",extraNode:me,user:Ae,onButtonClick:ke,isModelUser:je,menuItemWidth:Fe=125})=>{var xe,We,j,vt,dt;const Be=(0,u.useParams)();return s.createElement("div",{className:te.tabMenuContainer},s.createElement(C.Z,null,s.createElement(T.Z,{flex:"1"},s.createElement(k.default,{onSelect:ve=>L?{}:v(ve),mode:"horizontal",selectedKeys:F},fe.map(ve=>s.createElement(k.default.Item,{style:{width:Fe},key:typeof ve.index=="number"?ve.index:ve.id},s.createElement("span",{className:"c-grey-666"},ve.name),ve.total!==void 0&&se&&s.createElement("span",{className:"c-grey-999 ml20"},ve.total||0))))),se&&S&&s.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{N({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),se&&s.createElement(T.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},S&&s.createElement(A.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>s.createElement(k.default,null,s.createElement(k.default.Item,{key:1,onClick:()=>{var ve;if((0,P.Rm)()&&!((ve=x.AssistantObject.exercise)!=null&&ve.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}N({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:w,exportType:"exercise",category_id:Be.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),s.createElement(k.default.Item,{key:3,onClick:()=>{var ve;if((0,P.Rm)()&&!((ve=x.AssistantObject.exercise)!=null&&ve.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/${Be==null?void 0:Be.coursesId}/exportlist/exercise_score,export_exercise_users`)}},"\u5386\u53F2\u5BFC\u51FA"))},s.createElement("div",{className:"c-blue font16 ml20 current",style:{marginTop:2}},s.createElement("span",{style:{color:"#666666",cursor:"pointer"}},s.createElement("i",{className:"iconfont icon-xiazai6"})))),s.createElement("div",{className:te.control},s.createElement("div",{className:te.extra},me),V&&($=="\u6DFB\u52A0\u76F4\u64AD"?s.createElement(A.Z,{menu:{items:(We=(xe=[{label:s.createElement("div",{onClick:()=>{ke("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},je&&{label:s.createElement("div",{onClick:()=>{ke("\u5934\u6B4C")}},"\u5934\u6B4C\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:xe.filter(ve=>ve==null?void 0:ve.show))==null?void 0:We.map(ve=>({label:ve==null?void 0:ve.label,key:ve==null?void 0:ve.key}))}},s.createElement("span",{className:te.selectBtn},s.createElement("span",null,s.createElement("i",{className:`iconfont ${J}`})),s.createElement("span",null,$))):s.createElement("span",{onClick:ke,style:{cursor:"pointer"},className:te.selectBtn},s.createElement("span",null,s.createElement("i",{className:`iconfont ${J}`})),s.createElement("span",null,$))),!!B&&s.createElement(A.Z,{disabled:((j=Ae==null?void 0:Ae.userInfo)==null?void 0:j.user_status)===2,className:"ml10",dropdownRender:B},s.createElement("span",{className:((vt=Ae==null?void 0:Ae.userInfo)==null?void 0:vt.user_status)===2?te.selectBtn1:te.selectBtn},s.createElement("span",null,s.createElement("i",{className:"iconfont icon-tianjiadaohang"})),s.createElement(q.Z,{title:((dt=Ae==null?void 0:Ae.userInfo)==null?void 0:dt.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"},s.createElement("span",null,H||"\u521B\u5EFA\u8BD5\u5377"))))))))}},51959:function(qe,he,l){"use strict";l.d(he,{BU:function(){return C},Dj:function(){return s},gH:function(){return T},vp:function(){return k}});function s(A){try{A.mozRequestFullScreen?A.mozRequestFullScreen():A.webkitRequestFullScreen&&A.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 T=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function k(){var A=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,g=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",A),window.isFullScreen?window.isFullScreen:A!=null}},24577:function(qe,he,l){"use strict";l.d(he,{Z:function(){return Cn}});class s{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(82702).polyfill()}}s.install();var C=s,T=l(17187),k=l.n(T);class A{static e(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","error",n),A.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}static i(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","info",n),A.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}static w(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","warn",n),A.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}static d(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","debug",n),A.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}static v(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","verbose",n),A.ENABLE_VERBOSE&&console.log(n)}}A.GLOBAL_TAG="flv.js",A.FORCE_GLOBAL_TAG=!1,A.ENABLE_ERROR=!0,A.ENABLE_INFO=!0,A.ENABLE_WARN=!0,A.ENABLE_DEBUG=!0,A.ENABLE_VERBOSE=!0,A.ENABLE_CALLBACK=!1,A.emitter=new(k());var g=A;class q{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 te=q;class u{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class P extends u{constructor(e){super(e)}get name(){return"IllegalStateException"}}class ne extends u{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class X extends u{constructor(e){super(e)}get name(){return"NotImplementedException"}}const L={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},H={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class fe{constructor(e){this._type=e||"undefined",this._status=L.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=L.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===L.kConnecting||this._status===L.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 X("Unimplemented abstract function!")}abort(){throw new X("Unimplemented abstract function!")}}let se={};function N(){let G=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(G)||/(opr)[\/]([\w.]+)/.exec(G)||/(chrome)[ \/]([\w.]+)/.exec(G)||/(iemobile)[\/]([\w.]+)/.exec(G)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(G)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(G)||/(webkit)[ \/]([\w.]+)/.exec(G)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(G)||/(msie) ([\w.]+)/.exec(G)||G.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(G)||G.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(G)||[],t=/(ipad)/.exec(G)||/(ipod)/.exec(G)||/(windows phone)/.exec(G)||/(iphone)/.exec(G)||/(kindle)/.exec(G)||/(android)/.exec(G)||/(windows)/.exec(G)||/(mac)/.exec(G)||/(linux)/.exec(G)||/(cros)/.exec(G)||[],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 se)se.hasOwnProperty(r)&&delete se[r];Object.assign(se,i)}N();var x=se;class w extends fe{static isSupported(){try{let e=x.msedge&&x.version.minor>=15048,t=x.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 y=i.headers;for(let re in y)y.hasOwnProperty(re)&&r.append(re,y[re])}let f={method:"GET",headers:r,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let y in this._config.headers)r.append(y,this._config.headers[y]);e.cors===!1&&(f.mode="same-origin"),e.withCredentials&&(f.credentials="include"),e.referrerPolicy&&(f.referrerPolicy=e.referrerPolicy),this._status=L.kConnecting,self.fetch(i.url,f).then(y=>{if(this._requestAbort){this._requestAbort=!1,this._status=L.kIdle;return}if(y.ok&&y.status>=200&&y.status<=299){if(y.url!==i.url&&this._onURLRedirect){let Q=this._seekHandler.removeURLParameters(y.url);this._onURLRedirect(Q)}let re=y.headers.get("Content-Length");return re!=null&&(this._contentLength=parseInt(re),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,y.body.getReader())}else if(this._status=L.kError,this._onError)this._onError(H.HTTP_STATUS_CODE_INVALID,{code:y.status,msg:y.statusText});else throw new u("FetchStreamLoader: Http code invalid, "+y.status+" "+y.statusText)}).catch(y=>{if(this._status=L.kError,this._onError)this._onError(H.EXCEPTION,{code:-1,msg:y.message});else throw y})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=L.kError;let n=H.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=L.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=L.kComplete,e.cancel();this._status=L.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&&x.msedge)return;this._status=L.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=H.EARLY_EOF,i={code:t.code,msg:"Fetch stream meet Early-EOF"}):(n=H.EXCEPTION,i={code:t.code,msg:t.message}),this._onError)this._onError(n,i);else throw new u(i.msg)})}}var S=w;class F extends fe{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 f=i.headers;for(let y in f)f.hasOwnProperty(y)&&r.setRequestHeader(y,f[y])}if(typeof this._config.headers=="object"){let f=this._config.headers;for(let y in f)f.hasOwnProperty(y)&&r.setRequestHeader(y,f[y])}this._status=L.kConnecting,r.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=L.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=L.kError,this._onError)this._onError(H.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=L.kBuffering}}_onProgress(e){if(this._status===L.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===L.kError)return;this._status=L.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(e){this._status=L.kError;let t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=H.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=H.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new u(n.msg)}}var v=F;class B extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="ms-stream",e.responseType==="ms-stream"}catch(e){return Log.w("MSStreamLoader",e.message),!1}}constructor(e,t){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(e,t){this._internalOpen(e,t,!1)}_internalOpen(e,t,n){this._dataSource=e,n?this._currentRange=t:this._totalRange=t;let i=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?i=this._currentRedirectedURL:e.redirectedURL!=null&&(i=e.redirectedURL));let r=this._seekHandler.getConfig(i,t);this._currentRequestURL=r.url;let f=this._reader=new self.MSStreamReader;f.onprogress=this._msrOnProgress.bind(this),f.onload=this._msrOnLoad.bind(this),f.onerror=this._msrOnError.bind(this);let y=this._xhr=new XMLHttpRequest;if(y.open("GET",r.url,!0),y.responseType="ms-stream",y.onreadystatechange=this._xhrOnReadyStateChange.bind(this),y.onerror=this._xhrOnError.bind(this),e.withCredentials&&(y.withCredentials=!0),typeof r.headers=="object"){let re=r.headers;for(let Q in re)re.hasOwnProperty(Q)&&y.setRequestHeader(Q,re[Q])}if(typeof this._config.headers=="object"){let re=this._config.headers;for(let Q in re)re.hasOwnProperty(Q)&&y.setRequestHeader(Q,re[Q])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,y.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 V=null;class $ extends fe{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 te,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=L.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 f=i.headers;for(let y in f)f.hasOwnProperty(y)&&r.setRequestHeader(y,f[y])}if(typeof this._config.headers=="object"){let f=this._config.headers;for(let y in f)f.hasOwnProperty(y)&&r.setRequestHeader(y,f[y])}r.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=L.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=L.kBuffering}else if(this._status=L.kError,this._onError)this._onError(H.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===L.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,f=n;if(e<t[0])return t[0];for(;r<=f;){if(i=r+Math.floor((f-r)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?r=i+1:f=i-1}}_onLoad(e){if(this._status===L.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 f=this._normalizeSpeed(t);this._currentSpeedNormalized!==f&&(this._currentSpeedNormalized=f,this._currentChunkSizeKB=f)}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=L.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(e){this._status=L.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=H.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=H.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new u(n.msg)}}var J=$;class me extends fe{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=L.kConnecting}catch(t){this._status=L.kError;let n={code:t.code,msg:t.message};if(this._onError)this._onError(H.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=L.kComplete}_onWebSocketOpen(e){this._status=L.kBuffering}_onWebSocketClose(e){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=L.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=L.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(this._onError)this._onError(H.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=L.kError;let t={code:e.code,msg:e.message};if(this._onError)this._onError(H.EXCEPTION,t);else throw new u(t.msg)}}var Ae=me;class ke{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 je=ke;class Fe{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 f=n.split("&");for(let y=0;y<f.length;y++){let re=f[y].split("="),Q=y>0;re[0]!==this._startName&&re[0]!==this._endName&&(Q&&(r+="&"),r+=f[y])}}return r.length===0?t:t+"?"+r}}var xe=Fe;class We{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 te,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 je(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new xe(t,n)}else if(e.seekType==="custom"){if(typeof e.customSeekHandler!="function")throw new ne("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new ne(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Ae;else if(S.isSupported())this._loaderClass=S;else if(v.isSupported())this._loaderClass=v;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 ne("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,f=n;if(e<t[0])return t[0];for(;r<=f;){if(i=r+Math.floor((f-r)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?r=i+1:f=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 P("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 f=this._stashBuffer.slice(0,this._stashUsed),y=this._dispatchChunks(f,this._stashByteStart);if(y<f.byteLength){if(y>0){let re=new Uint8Array(f,y);r.set(re,0),this._stashUsed=re.byteLength,this._stashByteStart+=y}}else this._stashUsed=0,this._stashByteStart+=y;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 f=this._dispatchChunks(e,t);if(f<e.byteLength){let y=e.byteLength-f;y>this._bufferSize&&(this._expandBuffer(y),r=new Uint8Array(this._stashBuffer,0,this._bufferSize)),r.set(new Uint8Array(e,f),0),this._stashUsed+=y,this._stashByteStart=t+f}}}else if(this._stashUsed===0){let r=this._dispatchChunks(e,t);if(r<e.byteLength){let f=e.byteLength-r;f>this._bufferSize&&this._expandBuffer(f),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,r),0),this._stashUsed+=f,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 f=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(f<this._stashUsed&&f>0){let y=new Uint8Array(this._stashBuffer,f);r.set(y,0)}this._stashUsed-=f,this._stashByteStart+=f}}_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),f=new Uint8Array(t,n);r.set(f,0),this._stashUsed=f.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=H.UNRECOVERABLE_EARLY_EOF),e){case H.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=H.UNRECOVERABLE_EARLY_EOF;break}case H.UNRECOVERABLE_EARLY_EOF:case H.CONNECTING_TIMEOUT:case H.HTTP_STATUS_CODE_INVALID:case H.EXCEPTION:break}if(this._onError)this._onError(e,t);else throw new u("IOException: "+t.msg)}}var j=We;const vt={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 dt(){return Object.assign({},vt)}class Be{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let e=new j({},dt()),t=e.loaderType;return e.destroy(),t=="fetch-stream-loader"||t=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let e=new j({},dt()),t=e.loaderType;return e.destroy(),t}static supportNativeMediaPlayback(e){Be.videoElement==null&&(Be.videoElement=window.document.createElement("video"));let t=Be.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=Be.supportMSEH264Playback(),e.networkStreamIO=Be.supportNetworkStreamIO(),e.networkLoaderName=Be.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=Be.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=Be.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=Be.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var ve=Be,Oe={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 be{static get forceGlobalTag(){return g.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){g.FORCE_GLOBAL_TAG=e,be._notifyChange()}static get globalTag(){return g.GLOBAL_TAG}static set globalTag(e){g.GLOBAL_TAG=e,be._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,be._notifyChange()}static get enableDebug(){return g.ENABLE_DEBUG}static set enableDebug(e){g.ENABLE_DEBUG=e,be._notifyChange()}static get enableVerbose(){return g.ENABLE_VERBOSE}static set enableVerbose(e){g.ENABLE_VERBOSE=e,be._notifyChange()}static get enableInfo(){return g.ENABLE_INFO}static set enableInfo(e){g.ENABLE_INFO=e,be._notifyChange()}static get enableWarn(){return g.ENABLE_WARN}static set enableWarn(e){g.ENABLE_WARN=e,be._notifyChange()}static get enableError(){return g.ENABLE_ERROR}static set enableError(e){g.ENABLE_ERROR=e,be._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=be.emitter;if(e.listenerCount("change")>0){let t=be.getConfig();e.emit("change",t)}}static registerListener(e){be.emitter.addListener("change",e)}static removeListener(e){be.emitter.removeListener("change",e)}static addLogListener(e){g.emitter.addListener("log",e),g.emitter.listenerCount("log")>0&&(g.ENABLE_CALLBACK=!0,be._notifyChange())}static removeLogListener(e){g.emitter.removeListener("log",e),g.emitter.listenerCount("log")===0&&(g.ENABLE_CALLBACK=!1,be._notifyChange())}}be.emitter=new(k());var we=be;class It{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,f=0,y=i;for(t<e[0]&&(n=0,f=y+1);f<=y;)if(r=f+Math.floor((y-f)/2),r===i||t>=e[r]&&t<e[r+1]){n=r;break}else e[r]<t?f=r+1:y=r-1;return n}}var at=It;function _t(G,e,t){let n=G;if(e+t<n.length){for(;t--;)if((n[++e]&192)!==128)return!1;return!0}else return!1}function Kt(G){let e=[],t=G,n=0,i=G.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(_t(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(_t(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&&_t(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 ct=Kt;let ot=function(){let G=new ArrayBuffer(2);return new DataView(G).setInt16(0,256,!0),new Int16Array(G)[0]===256}();class ht{static parseScriptData(e,t,n){let i={};try{let r=ht.parseValue(e,t,n),f=ht.parseValue(e,t+r.size,n-r.size);i[r.data]=f.data}catch(r){g.e("AMF",r.toString())}return i}static parseObject(e,t,n){if(n<3)throw new P("Data not enough when parse ScriptDataObject");let i=ht.parseString(e,t,n),r=ht.parseValue(e,t+i.size,n-i.size),f=r.objectEnd;return{data:{name:i.data,value:r.data},size:i.size+r.size,objectEnd:f}}static parseVariable(e,t,n){return ht.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new P("Data not enough when parse String");let r=new DataView(e,t,n).getUint16(0,!ot),f;return r>0?f=ct(new Uint8Array(e,t+2,r)):f="",{data:f,size:2+r}}static parseLongString(e,t,n){if(n<4)throw new P("Data not enough when parse LongString");let r=new DataView(e,t,n).getUint32(0,!ot),f;return r>0?f=ct(new Uint8Array(e,t+4,r)):f="",{data:f,size:4+r}}static parseDate(e,t,n){if(n<10)throw new P("Data size invalid when parse Date");let i=new DataView(e,t,n),r=i.getFloat64(0,!ot),f=i.getInt16(8,!ot);return r+=f*60*1e3,{data:new Date(r),size:10}}static parseValue(e,t,n){if(n<1)throw new P("Data not enough when parse Value");let i=new DataView(e,t,n),r=1,f=i.getUint8(0),y,re=!1;try{switch(f){case 0:y=i.getFloat64(1,!ot),r+=8;break;case 1:{y=!!i.getUint8(1),r+=1;break}case 2:{let Q=ht.parseString(e,t+1,n-1);y=Q.data,r+=Q.size;break}case 3:{y={};let Q=0;for((i.getUint32(n-4,!ot)&16777215)===9&&(Q=3);r<n-4;){let le=ht.parseObject(e,t+r,n-r-Q);if(le.objectEnd)break;y[le.data.name]=le.data.value,r+=le.size}r<=n-3&&(i.getUint32(r-1,!ot)&16777215)===9&&(r+=3);break}case 8:{y={},r+=4;let Q=0;for((i.getUint32(n-4,!ot)&16777215)===9&&(Q=3);r<n-8;){let le=ht.parseVariable(e,t+r,n-r-Q);if(le.objectEnd)break;y[le.data.name]=le.data.value,r+=le.size}r<=n-3&&(i.getUint32(r-1,!ot)&16777215)===9&&(r+=3);break}case 9:y=void 0,r=1,re=!0;break;case 10:{y=[];let Q=i.getUint32(1,!ot);r+=4;for(let le=0;le<Q;le++){let Me=ht.parseValue(e,t+r,n-r);y.push(Me.data),r+=Me.size}break}case 11:{let Q=ht.parseDate(e,t+1,n-1);y=Q.data,r+=Q.size;break}case 12:{let Q=ht.parseString(e,t+1,n-1);y=Q.data,r+=Q.size;break}default:r=n,g.w("AMF","Unsupported AMF value type "+f)}}catch(Q){g.e("AMF",Q.toString())}return{data:y,size:r,objectEnd:re}}}var Zt=ht;class ft{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 P("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 ne("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let f=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,f}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 Re=ft;class M{static _ebsp2rbsp(e){let t=e,n=t.byteLength,i=new Uint8Array(n),r=0;for(let f=0;f<n;f++)f>=2&&t[f]===3&&t[f-1]===0&&t[f-2]===0||(i[r]=t[f],r++);return new Uint8Array(i.buffer,0,r)}static parseSPS(e){let t=M._ebsp2rbsp(e),n=new Re(t);n.readByte();let i=n.readByte();n.readByte();let r=n.readByte();n.readUEG();let f=M.getProfileString(i),y=M.getLevelString(r),re=1,Q=420,le=[0,420,422,444],Me=8;if((i===100||i===110||i===122||i===244||i===44||i===83||i===86||i===118||i===128||i===138||i===144)&&(re=n.readUEG(),re===3&&n.readBits(1),re<=3&&(Q=le[re]),Me=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let en=re!==3?8:12;for(let Qt=0;Qt<en;Qt++)n.readBool()&&(Qt<6?M._skipScalingList(n,16):M._skipScalingList(n,64))}n.readUEG();let Te=n.readUEG();if(Te===0)n.readUEG();else if(Te===1){n.readBits(1),n.readSEG(),n.readSEG();let en=n.readUEG();for(let Qt=0;Qt<en;Qt++)n.readSEG()}let ie=n.readUEG();n.readBits(1);let Le=n.readUEG(),ue=n.readUEG(),Y=n.readBits(1);Y===0&&n.readBits(1),n.readBits(1);let ee=0,ye=0,Se=0,nt=0;n.readBool()&&(ee=n.readUEG(),ye=n.readUEG(),Se=n.readUEG(),nt=n.readUEG());let Tt=1,Ee=1,it=0,jt=!0,Vt=0,kt=0;if(n.readBool()){if(n.readBool()){let en=n.readByte(),Qt=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Qn=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];en>0&&en<16?(Tt=Qt[en-1],Ee=Qn[en-1]):en===255&&(Tt=n.readByte()<<8|n.readByte(),Ee=n.readByte()<<8|n.readByte())}if(n.readBool()&&n.readBool(),n.readBool()&&(n.readBits(4),n.readBool()&&n.readBits(24)),n.readBool()&&(n.readUEG(),n.readUEG()),n.readBool()){let en=n.readBits(32),Qt=n.readBits(32);jt=n.readBool(),Vt=Qt,kt=en*2,it=Vt/kt}}let Yn=1;(Tt!==1||Ee!==1)&&(Yn=Tt/Ee);let rn=0,In=0;if(re===0)rn=1,In=2-Y;else{let en=re===3?1:2,Qt=re===1?2:1;rn=en,In=Qt*(2-Y)}let Ft=(Le+1)*16,jn=(2-Y)*((ue+1)*16);Ft-=(ee+ye)*rn,jn-=(Se+nt)*In;let Kn=Math.ceil(Ft*Yn);return n.destroy(),n=null,{profile_string:f,level_string:y,bit_depth:Me,ref_frames:ie,chroma_format:Q,chroma_format_string:M.getChromaFormatString(Q),frame_rate:{fixed:jt,fps:it,fps_den:kt,fps_num:Vt},sar_ratio:{width:Tt,height:Ee},codec_size:{width:Ft,height:jn},present_size:{width:Kn,height:jn}}}static _skipScalingList(e,t){let n=8,i=8,r=0;for(let f=0;f<t;f++)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 c=M,o={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function m(G){return G>>>8&255|(G&255)<<8}function R(G){return(G&4278190080)>>>24|(G&16711680)>>>8|(G&65280)<<8|(G&255)<<24}function h(G,e){return G[e]<<24|G[e+1]<<16|G[e+2]<<8|G[e+3]}class _{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 at,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,f=h(t,5);return f<9?n:{match:!0,consumed:f,dataOffset:f,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 at}_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 P("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let n=0,i=this._littleEndian;if(t===0)if(e.byteLength>13)n=_.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 f=r.getUint8(0),y=r.getUint32(0,!i)&16777215;if(n+11+y+4>e.byteLength)break;if(f!==8&&f!==9&&f!==18){g.w(this.TAG,`Unsupported tag type ${f}, skipped`),n+=11+y+4;continue}let re=r.getUint8(4),Q=r.getUint8(5),le=r.getUint8(6),Me=r.getUint8(7),Te=le|Q<<8|re<<16|Me<<24;(r.getUint32(7,!i)&16777215)!==0&&g.w(this.TAG,"Meet tag which has StreamID != 0!");let Le=n+11;switch(f){case 8:this._parseAudioData(e,Le,y,Te);break;case 9:this._parseVideoData(e,Le,y,Te,t+n);break;case 18:this._parseScriptData(e,Le,y);break}let ue=r.getUint32(11+y,!i);ue!==11+y&&g.w(this.TAG,`Invalid PrevTagSize ${ue}`),n+=11+y+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=Zt.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 f=Math.floor(r.duration*this._timescale);this._duration=f,this._mediaInfo.duration=f}}else this._mediaInfo.duration=0;if(typeof r.framerate=="number"){let f=Math.floor(r.framerate*1e3);if(f>0){let y=f/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=y,this._referenceFrameRate.fps_num=f,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=y}}if(typeof r.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let f=r.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(f),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,y=new DataView(e,t,n).getUint8(0),re=y>>>4;if(re!==2&&re!==10){this._onError(o.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+re);return}let Q=0,le=(y&12)>>>2;if(le>=0&&le<=4)Q=this._flvSoundRateTable[le];else{this._onError(o.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+le);return}let Me=(y&2)>>>1,Te=y&1,ie=this._audioMetadata,Le=this._audioTrack;if(ie||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),ie=this._audioMetadata={},ie.type="audio",ie.id=Le.id,ie.timescale=this._timescale,ie.duration=this._duration,ie.audioSampleRate=Q,ie.channelCount=Te===0?1:2),re===10){let ue=this._parseAACAudioData(e,t+1,n-1);if(ue==null)return;if(ue.packetType===0){ie.config&&g.w(this.TAG,"Found another AudioSpecificConfig!");let Y=ue.data;ie.audioSampleRate=Y.samplingRate,ie.channelCount=Y.channelCount,ie.codec=Y.codec,ie.originalCodec=Y.originalCodec,ie.config=Y.config,ie.refSampleDuration=1024/ie.audioSampleRate*ie.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",ie);let ee=this._mediaInfo;ee.audioCodec=ie.originalCodec,ee.audioSampleRate=ie.audioSampleRate,ee.audioChannelCount=ie.channelCount,ee.hasVideo?ee.videoCodec!=null&&(ee.mimeType='video/x-flv; codecs="'+ee.videoCodec+","+ee.audioCodec+'"'):ee.mimeType='video/x-flv; codecs="'+ee.audioCodec+'"',ee.isComplete()&&this._onMediaInfo(ee)}else if(ue.packetType===1){let Y=this._timestampBase+i,ee={unit:ue.data,length:ue.data.byteLength,dts:Y,pts:Y};Le.samples.push(ee),Le.length+=ue.data.length}else g.e(this.TAG,`Flv: Unsupported AAC data type ${ue.packetType}`)}else if(re===2){if(!ie.codec){let ye=this._parseMP3AudioData(e,t+1,n-1,!0);if(ye==null)return;ie.audioSampleRate=ye.samplingRate,ie.channelCount=ye.channelCount,ie.codec=ye.codec,ie.originalCodec=ye.originalCodec,ie.refSampleDuration=1152/ie.audioSampleRate*ie.timescale,g.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",ie);let Se=this._mediaInfo;Se.audioCodec=ie.codec,Se.audioSampleRate=ie.audioSampleRate,Se.audioChannelCount=ie.channelCount,Se.audioDataRate=ye.bitRate,Se.hasVideo?Se.videoCodec!=null&&(Se.mimeType='video/x-flv; codecs="'+Se.videoCodec+","+Se.audioCodec+'"'):Se.mimeType='video/x-flv; codecs="'+Se.audioCodec+'"',Se.isComplete()&&this._onMediaInfo(Se)}let ue=this._parseMP3AudioData(e,t+1,n-1,!1);if(ue==null)return;let Y=this._timestampBase+i,ee={unit:ue,length:ue.byteLength,dts:Y,pts:Y};Le.samples.push(ee),Le.length+=ue.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,f=0,y=0,re=null,Q=0,le=null;if(f=y=i[0]>>>3,Q=(i[0]&7)<<1|i[1]>>>7,Q<0||Q>=this._mpegSamplingRates.length){this._onError(o.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Me=this._mpegSamplingRates[Q],Te=(i[1]&120)>>>3;if(Te<0||Te>=8){this._onError(o.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}f===5&&(le=(i[1]&7)<<1|i[2]>>>7,re=(i[2]&124)>>>2);let ie=self.navigator.userAgent.toLowerCase();return ie.indexOf("firefox")!==-1?Q>=6?(f=5,r=new Array(4),le=Q-3):(f=2,r=new Array(2),le=Q):ie.indexOf("android")!==-1?(f=2,r=new Array(2),le=Q):(f=5,le=Q,r=new Array(4),Q>=6?le=Q-3:Te===1&&(f=2,r=new Array(2),le=Q)),r[0]=f<<3,r[0]|=(Q&15)>>>1,r[1]=(Q&15)<<7,r[1]|=(Te&15)<<3,f===5&&(r[1]|=(le&15)>>>1,r[2]=(le&1)<<7,r[2]|=8,r[3]=0),{config:r,samplingRate:Me,channelCount:Te,codec:"mp4a.40."+f,originalCodec:"mp4a.40."+y}}_parseMP3AudioData(e,t,n,i){if(n<4){g.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let r=this._littleEndian,f=new Uint8Array(e,t,n),y=null;if(i){if(f[0]!==255)return;let re=f[1]>>>3&3,Q=(f[1]&6)>>1,le=(f[2]&240)>>>4,Me=(f[2]&12)>>>2,ie=(f[3]>>>6&3)!==3?2:1,Le=0,ue=0,Y=34,ee="mp3";switch(re){case 0:Le=this._mpegAudioV25SampleRateTable[Me];break;case 2:Le=this._mpegAudioV20SampleRateTable[Me];break;case 3:Le=this._mpegAudioV10SampleRateTable[Me];break}switch(Q){case 1:Y=34,le<this._mpegAudioL3BitRateTable.length&&(ue=this._mpegAudioL3BitRateTable[le]);break;case 2:Y=33,le<this._mpegAudioL2BitRateTable.length&&(ue=this._mpegAudioL2BitRateTable[le]);break;case 3:Y=32,le<this._mpegAudioL1BitRateTable.length&&(ue=this._mpegAudioL1BitRateTable[le]);break}y={bitRate:ue,samplingRate:Le,channelCount:ie,codec:ee,originalCodec:ee}}else y=f;return y}_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 f=new Uint8Array(e,t,n)[0],y=(f&240)>>>4,re=f&15;if(re!==7){this._onError(o.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${re}`);return}this._parseAVCVideoPacket(e,t+1,n-1,i,r,y)}_parseAVCVideoPacket(e,t,n,i,r,f){if(n<4){g.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let y=this._littleEndian,re=new DataView(e,t,n),Q=re.getUint8(0),Me=(re.getUint32(0,!y)&16777215)<<8>>8;if(Q===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(Q===1)this._parseAVCVideoData(e,t+4,n-4,i,r,f,Me);else if(Q!==2){this._onError(o.FORMAT_ERROR,`Flv: Invalid video packet type ${Q}`);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,f=this._littleEndian,y=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 re=y.getUint8(0),Q=y.getUint8(1),le=y.getUint8(2),Me=y.getUint8(3);if(re!==1||Q===0){this._onError(o.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(y.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(o.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Te=y.getUint8(5)&31;if(Te===0){this._onError(o.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Te>1&&g.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Te}`);let ie=6;for(let ue=0;ue<Te;ue++){let Y=y.getUint16(ie,!f);if(ie+=2,Y===0)continue;let ee=new Uint8Array(e,t+ie,Y);ie+=Y;let ye=c.parseSPS(ee);if(ue!==0)continue;i.codecWidth=ye.codec_size.width,i.codecHeight=ye.codec_size.height,i.presentWidth=ye.present_size.width,i.presentHeight=ye.present_size.height,i.profile=ye.profile_string,i.level=ye.level_string,i.bitDepth=ye.bit_depth,i.chromaFormat=ye.chroma_format,i.sarRatio=ye.sar_ratio,i.frameRate=ye.frame_rate,(ye.frame_rate.fixed===!1||ye.frame_rate.fps_num===0||ye.frame_rate.fps_den===0)&&(i.frameRate=this._referenceFrameRate);let Se=i.frameRate.fps_den,nt=i.frameRate.fps_num;i.refSampleDuration=i.timescale*(Se/nt);let dn=ee.subarray(1,4),Tt="avc1.";for(let it=0;it<3;it++){let jt=dn[it].toString(16);jt.length<2&&(jt="0"+jt),Tt+=jt}i.codec=Tt;let Ee=this._mediaInfo;Ee.width=i.codecWidth,Ee.height=i.codecHeight,Ee.fps=i.frameRate.fps,Ee.profile=i.profile,Ee.level=i.level,Ee.refFrames=ye.ref_frames,Ee.chromaFormat=ye.chroma_format_string,Ee.sarNum=i.sarRatio.width,Ee.sarDen=i.sarRatio.height,Ee.videoCodec=Tt,Ee.hasAudio?Ee.audioCodec!=null&&(Ee.mimeType='video/x-flv; codecs="'+Ee.videoCodec+","+Ee.audioCodec+'"'):Ee.mimeType='video/x-flv; codecs="'+Ee.videoCodec+'"',Ee.isComplete()&&this._onMediaInfo(Ee)}let Le=y.getUint8(ie);if(Le===0){this._onError(o.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Le>1&&g.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${Le}`);ie++;for(let ue=0;ue<Le;ue++){let Y=y.getUint16(ie,!f);ie+=2,Y!==0&&(ie+=Y)}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,f,y){let re=this._littleEndian,Q=new DataView(e,t,n),le=[],Me=0,Te=0;const ie=this._naluLengthSize;let Le=this._timestampBase+i,ue=f===1;for(;Te<n;){if(Te+4>=n){g.w(this.TAG,`Malformed Nalu near timestamp ${Le}, offset = ${Te}, dataSize = ${n}`);break}let Y=Q.getUint32(Te,!re);if(ie===3&&(Y>>>=8),Y>n-ie){g.w(this.TAG,`Malformed Nalus near timestamp ${Le}, NaluSize > DataSize!`);return}let ee=Q.getUint8(Te+ie)&31;ee===5&&(ue=!0);let ye=new Uint8Array(e,t+Te,ie+Y),Se={type:ee,data:ye};le.push(Se),Me+=ye.byteLength,Te+=ie+Y}if(le.length){let Y=this._videoTrack,ee={units:le,length:Me,isKeyframe:ue,dts:Le,cts:y,pts:Le+y};ue&&(ee.fileposition=r),Y.samples.push(ee),Y.length+=Me}}}var E=_;class a{static init(){a.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 a.types)a.types.hasOwnProperty(t)&&(a.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=a.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 y=0;y<r;y++)t+=i[y].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 f=8;for(let y=0;y<r;y++)n.set(i[y],f),f+=i[y].byteLength;return n}static generateInitSegment(e){let t=a.box(a.types.ftyp,a.constants.FTYP),n=a.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=a.mvhd(e.timescale,e.duration),n=a.trak(e),i=a.mvex(e);return a.box(a.types.moov,t,n,i)}static mvhd(e,t){return a.box(a.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 a.box(a.types.trak,a.tkhd(e),a.mdia(e))}static tkhd(e){let t=e.id,n=e.duration,i=e.presentWidth,r=e.presentHeight;return a.box(a.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 a.box(a.types.mdia,a.mdhd(e),a.hdlr(e),a.minf(e))}static mdhd(e){let t=e.timescale,n=e.duration;return a.box(a.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=a.constants.HDLR_AUDIO:t=a.constants.HDLR_VIDEO,a.box(a.types.hdlr,t)}static minf(e){let t=null;return e.type==="audio"?t=a.box(a.types.smhd,a.constants.SMHD):t=a.box(a.types.vmhd,a.constants.VMHD),a.box(a.types.minf,t,a.dinf(),a.stbl(e))}static dinf(){return a.box(a.types.dinf,a.box(a.types.dref,a.constants.DREF))}static stbl(e){return a.box(a.types.stbl,a.stsd(e),a.box(a.types.stts,a.constants.STTS),a.box(a.types.stsc,a.constants.STSC),a.box(a.types.stsz,a.constants.STSZ),a.box(a.types.stco,a.constants.STCO))}static stsd(e){return e.type==="audio"?e.codec==="mp3"?a.box(a.types.stsd,a.constants.STSD_PREFIX,a.mp3(e)):a.box(a.types.stsd,a.constants.STSD_PREFIX,a.mp4a(e)):a.box(a.types.stsd,a.constants.STSD_PREFIX,a.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 a.box(a.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 a.box(a.types.mp4a,i,a.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 a.box(a.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 a.box(a.types.avc1,r,a.box(a.types.avcC,t))}static mvex(e){return a.box(a.types.mvex,a.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 a.box(a.types.trex,n)}static moof(e,t){return a.box(a.types.moof,a.mfhd(e.sequenceNumber),a.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 a.box(a.types.mfhd,t)}static traf(e,t){let n=e.id,i=a.box(a.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255])),r=a.box(a.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255])),f=a.sdtp(e),y=a.trun(e,f.byteLength+16+16+8+16+8+8);return a.box(a.types.traf,i,r,y,f)}static sdtp(e){let t=e.samples||[],n=t.length,i=new Uint8Array(4+n);for(let r=0;r<n;r++){let f=t[r].flags;i[r+4]=f.isLeading<<6|f.dependsOn<<4|f.isDependedOn<<2|f.hasRedundancy}return a.box(a.types.sdtp,i)}static trun(e,t){let n=e.samples||[],i=n.length,r=12+16*i,f=new Uint8Array(r);t+=8+r,f.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 y=0;y<i;y++){let re=n[y].duration,Q=n[y].size,le=n[y].flags,Me=n[y].cts;f.set([re>>>24&255,re>>>16&255,re>>>8&255,re&255,Q>>>24&255,Q>>>16&255,Q>>>8&255,Q&255,le.isLeading<<2|le.dependsOn,le.isDependedOn<<6|le.hasRedundancy<<4|le.isNonSync,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255],12+16*y)}return a.box(a.types.trun,f)}static mdat(e){return a.box(a.types.mdat,e)}}a.init();var z=a;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 ae=W;class pe{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 de{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 ce{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,f=0,y=i;for(e<t[0].dts&&(n=0,f=y+1);f<=y;)if(r=f+Math.floor((y-f)/2),r===i||e>=t[r].dts&&e<t[r+1].dts){n=r;break}else t[r].dts<e?f=r+1:y=r-1;return this._list[n]}}class oe{constructor(e){this._type=e,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return this._list.length===0}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(e){let t=this._list;if(t.length===0)return-2;let n=t.length-1,i=0,r=0,f=n,y=0;if(e<t[0].originalBeginDts)return y=-1,y;for(;r<=f;)if(i=r+Math.floor((f-r)/2),i===n||e>t[i].lastSample.originalDts&&e<t[i+1].originalBeginDts){y=i;break}else t[i].originalBeginDts<e?r=i+1:f=i-1;return y}_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 Ue{constructor(e){this.TAG="MP4Remuxer",this._config=e,this._isLive=e.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new oe("audio"),this._videoSegmentInfoList=new oe("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(x.chrome&&(x.version.major<50||x.version.major===50&&x.version.build<2661)),this._fillSilentAfterSeek=x.msedge||x.msie,this._mp3UseMpegAudio=!x.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 P("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=z.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=z.generateInitSegment(t);else return;if(!this._onInitSegment)throw new P("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,f=-1,y=-1,re=-1,Q=this._audioMeta.refSampleDuration,le=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Me=this._dtsBaseInited&&this._audioNextDts===void 0,Te=!1;if(!i||i.length===0||i.length===1&&!t)return;let ie=0,Le=null,ue=0;le?(ie=0,ue=n.length):(ie=8,ue=8+n.length);let Y=null;if(i.length>1&&(Y=i.pop(),ue-=Y.length),this._audioStashedLastSample!=null){let Ee=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(Ee),ue+=Ee.length}Y!=null&&(this._audioStashedLastSample=Y);let ee=i[0].dts-this._dtsBase;if(this._audioNextDts)r=ee-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())r=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Te=!0);else{let Ee=this._audioSegmentInfoList.getLastSampleBefore(ee);if(Ee!=null){let it=ee-(Ee.originalDts+Ee.duration);it<=3&&(it=0);let jt=Ee.dts+Ee.duration+it;r=ee-jt}else r=0}if(Te){let Ee=ee-r,it=this._videoSegmentInfoList.getLastSegmentBefore(ee);if(it!=null&&it.beginDts<Ee){let jt=ae.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(jt){let Vt=it.beginDts,kt=Ee-it.beginDts;g.v(this.TAG,`InsertPrefixSilentAudio: dts: ${Vt}, duration: ${kt}`),i.unshift({unit:jt,dts:Vt,pts:Vt}),ue+=jt.byteLength}}else Te=!1}let ye=[];for(let Ee=0;Ee<i.length;Ee++){let it=i[Ee],jt=it.unit,Vt=it.dts-this._dtsBase,kt=Vt-r;f===-1&&(f=kt);let cn=0;Ee!==i.length-1?cn=i[Ee+1].dts-this._dtsBase-r-kt:Y!=null?cn=Y.dts-this._dtsBase-r-kt:ye.length>=1?cn=ye[ye.length-1].duration:cn=Math.floor(Q);let Yn=!1,rn=null;if(cn>Q*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!x.safari){Yn=!0;let In=Math.abs(cn-Q),Ft=Math.ceil(In/Q),jn=kt+Q;g.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
dts: ${kt+cn} ms, expected: ${kt+Math.round(Q)} ms, delta: ${Math.round(In)} ms, generate: ${Ft} frames`);let Kn=ae.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Kn==null&&(g.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Kn=jt),rn=[];for(let Qt=0;Qt<Ft;Qt++){let Qn=Math.round(jn);if(rn.length>0){let _i=rn[rn.length-1];_i.duration=Qn-_i.dts}let vi={dts:Qn,pts:Qn,cts:0,unit:Kn,size:Kn.byteLength,duration:0,originalDts:Vt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};rn.push(vi),ue+=vi.size,jn+=Q}let en=rn[rn.length-1];en.duration=kt+cn-en.dts,cn=Math.round(Q)}ye.push({dts:kt,pts:kt,cts:0,unit:it.unit,size:it.unit.byteLength,duration:cn,originalDts:Vt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Yn&&ye.push.apply(ye,rn)}le?Le=new Uint8Array(ue):(Le=new Uint8Array(ue),Le[0]=ue>>>24&255,Le[1]=ue>>>16&255,Le[2]=ue>>>8&255,Le[3]=ue&255,Le.set(z.types.mdat,4));for(let Ee=0;Ee<ye.length;Ee++){let it=ye[Ee].unit;Le.set(it,ie),ie+=it.byteLength}let Se=ye[ye.length-1];y=Se.dts+Se.duration,this._audioNextDts=y;let nt=new de;nt.beginDts=f,nt.endDts=y,nt.beginPts=f,nt.endPts=y,nt.originalBeginDts=ye[0].originalDts,nt.originalEndDts=Se.originalDts+Se.duration,nt.firstSample=new pe(ye[0].dts,ye[0].pts,ye[0].duration,ye[0].originalDts,!1),nt.lastSample=new pe(Se.dts,Se.pts,Se.duration,Se.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(nt),n.samples=ye,n.sequenceNumber++;let dn=null;le?dn=new Uint8Array:dn=z.moof(n,f),n.samples=[],n.length=0;let Tt={type:"audio",data:this._mergeBoxes(dn,Le).buffer,sampleCount:ye.length,info:nt};le&&Me&&(Tt.timestampOffset=f),this._onMediaSegment("audio",Tt)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,i=n.samples,r,f=-1,y=-1,re=-1,Q=-1;if(!i||i.length===0||i.length===1&&!t)return;let le=8,Me=null,Te=8+e.length,ie=null;if(i.length>1&&(ie=i.pop(),Te-=ie.length),this._videoStashedLastSample!=null){let Se=this._videoStashedLastSample;this._videoStashedLastSample=null,i.unshift(Se),Te+=Se.length}ie!=null&&(this._videoStashedLastSample=ie);let Le=i[0].dts-this._dtsBase;if(this._videoNextDts)r=Le-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())r=0;else{let Se=this._videoSegmentInfoList.getLastSampleBefore(Le);if(Se!=null){let nt=Le-(Se.originalDts+Se.duration);nt<=3&&(nt=0);let dn=Se.dts+Se.duration+nt;r=Le-dn}else r=0}let ue=new de,Y=[];for(let Se=0;Se<i.length;Se++){let nt=i[Se],dn=nt.dts-this._dtsBase,Tt=nt.isKeyframe,Ee=dn-r,it=nt.cts,jt=Ee+it;f===-1&&(f=Ee,re=jt);let Vt=0;if(Se!==i.length-1?Vt=i[Se+1].dts-this._dtsBase-r-Ee:ie!=null?Vt=ie.dts-this._dtsBase-r-Ee:Y.length>=1?Vt=Y[Y.length-1].duration:Vt=Math.floor(this._videoMeta.refSampleDuration),Tt){let kt=new pe(Ee,jt,Vt,nt.dts,!0);kt.fileposition=nt.fileposition,ue.appendSyncPoint(kt)}Y.push({dts:Ee,pts:jt,cts:it,units:nt.units,size:nt.length,isKeyframe:Tt,duration:Vt,originalDts:dn,flags:{isLeading:0,dependsOn:Tt?2:1,isDependedOn:Tt?1:0,hasRedundancy:0,isNonSync:Tt?0:1}})}Me=new Uint8Array(Te),Me[0]=Te>>>24&255,Me[1]=Te>>>16&255,Me[2]=Te>>>8&255,Me[3]=Te&255,Me.set(z.types.mdat,4);for(let Se=0;Se<Y.length;Se++){let nt=Y[Se].units;for(;nt.length;){let Tt=nt.shift().data;Me.set(Tt,le),le+=Tt.byteLength}}let ee=Y[Y.length-1];if(y=ee.dts+ee.duration,Q=ee.pts+ee.duration,this._videoNextDts=y,ue.beginDts=f,ue.endDts=y,ue.beginPts=re,ue.endPts=Q,ue.originalBeginDts=Y[0].originalDts,ue.originalEndDts=ee.originalDts+ee.duration,ue.firstSample=new pe(Y[0].dts,Y[0].pts,Y[0].duration,Y[0].originalDts,Y[0].isKeyframe),ue.lastSample=new pe(ee.dts,ee.pts,ee.duration,ee.originalDts,ee.isKeyframe),this._isLive||this._videoSegmentInfoList.append(ue),n.samples=Y,n.sequenceNumber++,this._forceFirstIDR){let Se=Y[0].flags;Se.dependsOn=2,Se.isNonSync=0}let ye=z.moof(n,f);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(ye,Me).buffer,sampleCount:Y.length,info:ue})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var $e=Ue,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 Et{constructor(e,t){this.TAG="TransmuxingController",this._emitter=new(k()),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 j(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=E.probe(e)).match){this._demuxer=new E(n,this._config),this._remuxer||(this._remuxer=new $e(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,o.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,at.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,at.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,x.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 St=Et,Ye=function(G){let e="TransmuxingWorker",t=null,n=ue.bind(this);C.install(),G.addEventListener("message",function(Y){switch(Y.data.cmd){case"init":t=new St(Y.data.param[0],Y.data.param[1]),t.on(K.IO_ERROR,Te.bind(this)),t.on(K.DEMUX_ERROR,ie.bind(this)),t.on(K.INIT_SEGMENT,i.bind(this)),t.on(K.MEDIA_SEGMENT,r.bind(this)),t.on(K.LOADING_COMPLETE,f.bind(this)),t.on(K.RECOVERED_EARLY_EOF,y.bind(this)),t.on(K.MEDIA_INFO,re.bind(this)),t.on(K.METADATA_ARRIVED,Q.bind(this)),t.on(K.SCRIPTDATA_ARRIVED,le.bind(this)),t.on(K.STATISTICS_INFO,Me.bind(this)),t.on(K.RECOMMEND_SEEKPOINT,Le.bind(this));break;case"destroy":t&&(t.destroy(),t=null),G.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(Y.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let ee=Y.data.param;we.applyConfig(ee),ee.enableCallback===!0?we.addLogListener(n):we.removeLogListener(n);break}}});function i(Y,ee){let ye={msg:K.INIT_SEGMENT,data:{type:Y,data:ee}};G.postMessage(ye,[ee.data])}function r(Y,ee){let ye={msg:K.MEDIA_SEGMENT,data:{type:Y,data:ee}};G.postMessage(ye,[ee.data])}function f(){let Y={msg:K.LOADING_COMPLETE};G.postMessage(Y)}function y(){let Y={msg:K.RECOVERED_EARLY_EOF};G.postMessage(Y)}function re(Y){let ee={msg:K.MEDIA_INFO,data:Y};G.postMessage(ee)}function Q(Y){let ee={msg:K.METADATA_ARRIVED,data:Y};G.postMessage(ee)}function le(Y){let ee={msg:K.SCRIPTDATA_ARRIVED,data:Y};G.postMessage(ee)}function Me(Y){let ee={msg:K.STATISTICS_INFO,data:Y};G.postMessage(ee)}function Te(Y,ee){G.postMessage({msg:K.IO_ERROR,data:{type:Y,info:ee}})}function ie(Y,ee){G.postMessage({msg:K.DEMUX_ERROR,data:{type:Y,info:ee}})}function Le(Y){G.postMessage({msg:K.RECOMMEND_SEEKPOINT,data:Y})}function ue(Y,ee){G.postMessage({msg:"logcat_callback",data:{type:Y,logcat:ee}})}};class lt{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(k()),t.enableWorker&&typeof Worker!="undefined")try{let n=l(18034);this._worker=n(Ye),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)},we.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:we.getConfig()})}catch(n){g.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new St(e,t)}else this._controller=new St(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"}),we.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,at.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 At=lt,Ct={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Lt{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new(k()),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 ce}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 P("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 f=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);f.addEventListener("error",this.e.onSourceBufferError),f.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(f){g.e(this.TAG,f.message),this._emitter.emit(Ct.ERROR,{code:f.code,msg:f.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(),x.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 f=n.buffered.start(r),y=n.buffered.end(r);this._pendingRemoveRanges[t].push({start:f,end:y})}if(n.updating||this._doRemoveRanges(),x.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 f=0;f<i.length;f++){let y=i.start(f),re=i.end(f);if(y<=e&&e<re+3){if(e-y>=this._config.autoCleanupMaxBackwardDuration){r=!0;let Q=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:y,end:Q})}}else re<e&&(r=!0,this._pendingRemoveRanges[t].push({start:y,end:re}))}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(Ct.BUFFER_FULL),this._isBufferFull=!0):(g.e(this.TAG,i.message),this._emitter.emit(Ct.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(Ct.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(Ct.UPDATE_END)}_onSourceBufferError(e){g.e(this.TAG,`SourceBuffer Error: ${e}`)}}var Ht=Lt;const Mt={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},_e={NETWORK_EXCEPTION:H.EXCEPTION,NETWORK_STATUS_CODE_INVALID:H.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:H.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:H.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:o.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:o.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:o.CODEC_UNSUPPORTED};class Ge{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(k()),this._config=dt(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()!=="flv")throw new ne("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=x.chrome&&(x.version.major<50||x.version.major===50&&x.version.build<2661);this._alwaysSeekKeyframe=!!(n||x.msedge||x.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===Oe.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Oe.MEDIA_INFO,this.mediaInfo)}):e===Oe.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Oe.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 Ht(this._config),this._msectl.on(Ct.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Ct.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Ct.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Ct.ERROR,t=>{this._emitter.emit(Oe.ERROR,Mt.MEDIA_ERROR,_e.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 P("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new P("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 At(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(Oe.LOADING_COMPLETE)}),this._transmuxer.on(K.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(Oe.RECOVERED_EARLY_EOF)}),this._transmuxer.on(K.IO_ERROR,(e,t)=>{this._emitter.emit(Oe.ERROR,Mt.NETWORK_ERROR,e,t)}),this._transmuxer.on(K.DEMUX_ERROR,(e,t)=>{this._emitter.emit(Oe.ERROR,Mt.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(K.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(Oe.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(K.METADATA_ARRIVED,e=>{this._emitter.emit(Oe.METADATA_ARRIVED,e)}),this._transmuxer.on(K.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(Oe.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(K.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(Oe.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 f=e.start(r),y=e.end(r);if(f<=t&&t<y){n=f,i=y;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),f=t.end(i);if(e>=r&&e<f){e>=f-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||x.safari)&&(n=!0,i=x.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||x.safari){this._requestSetTime=!0,this._mediaElement.currentTime=x.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 tt=Ge;class Nt{constructor(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(k()),this._config=dt(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()==="flv")throw new ne("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new ne(`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===Oe.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Oe.MEDIA_INFO,this.mediaInfo)}):e===Oe.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Oe.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 P("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(Oe.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(Oe.STATISTICS_INFO,this.statisticsInfo)}}var zt=Nt;C.install();function Wt(G,e){let t=G;if(t==null||typeof t!="object")throw new ne("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new ne("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new tt(t,e);default:return new zt(t,e)}}function Bt(){return ve.supportMSEH264Playback()}function Xt(){return ve.getFeatureList()}let De={};De.createPlayer=Wt,De.isSupported=Bt,De.getFeatureList=Xt,De.BaseLoader=fe,De.LoaderStatus=L,De.LoaderErrors=H,De.Events=Oe,De.ErrorTypes=Mt,De.ErrorDetails=_e,De.FlvPlayer=tt,De.NativePlayer=zt,De.LoggingControl=we,Object.defineProperty(De,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Cn=De},35874:function(qe,he,l){"use strict";l.d(he,{Z:function(){return d}});var s=l(67294),C=l(91034),T=l(94184),k=l.n(T),A=l(87462),g=l(4942),q=l(97685),te=l(45987),u=l(62709),P=l(71002),ne=l(12060);function X(o,m,R){var h=React.useRef({});return(!("value"in h.current)||R(h.current.condition,m))&&(h.current.value=o(),h.current.condition=m),h.current.value}function L(o,m){typeof o=="function"?o(m):(0,P.Z)(o)==="object"&&o&&"current"in o&&(o.current=m)}function H(){for(var o=arguments.length,m=new Array(o),R=0;R<o;R++)m[R]=arguments[R];var h=m.filter(function(_){return _});return h.length<=1?h[0]:function(_){m.forEach(function(E){L(E,_)})}}function fe(){for(var o=arguments.length,m=new Array(o),R=0;R<o;R++)m[R]=arguments[R];return useMemo(function(){return H.apply(void 0,m)},m,function(h,_){return h.length===_.length&&h.every(function(E,a){return E===_[a]})})}function se(o){var m,R,h=(0,ne.isMemo)(o)?o.type.type:o.type;return!(typeof h=="function"&&!((m=h.prototype)!==null&&m!==void 0&&m.render)||typeof o=="function"&&!((R=o.prototype)!==null&&R!==void 0&&R.render))}var N={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(m){var R=m.keyCode;if(m.altKey&&!m.ctrlKey||m.metaKey||R>=N.F1&&R<=N.F12)return!1;switch(R){case N.ALT:case N.CAPS_LOCK:case N.CONTEXT_MENU:case N.CTRL:case N.DOWN:case N.END:case N.ESC:case N.HOME:case N.INSERT:case N.LEFT:case N.MAC_FF_META:case N.META:case N.NUMLOCK:case N.NUM_CENTER:case N.PAGE_DOWN:case N.PAGE_UP:case N.PAUSE:case N.PRINT_SCREEN:case N.RIGHT:case N.SHIFT:case N.UP:case N.WIN_KEY:case N.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(m){if(m>=N.ZERO&&m<=N.NINE||m>=N.NUM_ZERO&&m<=N.NUM_MULTIPLY||m>=N.A&&m<=N.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&m===0)return!0;switch(m){case N.SPACE:case N.QUESTION_MARK:case N.NUM_PLUS:case N.NUM_MINUS:case N.NUM_PERIOD:case N.NUM_DIVISION:case N.SEMICOLON:case N.DASH:case N.EQUALS:case N.COMMA:case N.PERIOD:case N.SLASH:case N.APOSTROPHE:case N.SINGLE_QUOTE:case N.OPEN_SQUARE_BRACKET:case N.BACKSLASH:case N.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},x=N,w=function(m){return+setTimeout(m,16)},S=function(m){return clearTimeout(m)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(w=function(m){return window.requestAnimationFrame(m)},S=function(m){return window.cancelAnimationFrame(m)});var F=0,v=new Map;function B(o){v.delete(o)}var V=function(m){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;F+=1;var h=F;function _(E){if(E===0)B(h),m();else{var a=w(function(){_(E-1)});v.set(h,a)}}return _(R),h};V.cancel=function(o){var m=v.get(o);return B(m),S(m)};var $=V,J=x.ESC,me=x.TAB;function Ae(o){var m=o.visible,R=o.triggerRef,h=o.onVisibleChange,_=o.autoFocus,E=o.overlayRef,a=s.useRef(!1),z=function(){if(m){var de,ce;(de=R.current)===null||de===void 0||(ce=de.focus)===null||ce===void 0||ce.call(de),h==null||h(!1)}},W=function(){var de;return(de=E.current)!==null&&de!==void 0&&de.focus?(E.current.focus(),a.current=!0,!0):!1},ae=function(de){switch(de.keyCode){case J:z();break;case me:{var ce=!1;a.current||(ce=W()),ce?de.preventDefault():z();break}}};s.useEffect(function(){return m?(window.addEventListener("keydown",ae),_&&$(W,3),function(){window.removeEventListener("keydown",ae),a.current=!1}):function(){a.current=!1}},[m])}var ke=(0,s.forwardRef)(function(o,m){var R=o.overlay,h=o.arrow,_=o.prefixCls,E=(0,s.useMemo)(function(){var z;return typeof R=="function"?z=R():z=R,z},[R]),a=H(m,E==null?void 0:E.ref);return s.createElement(s.Fragment,null,h&&s.createElement("div",{className:"".concat(_,"-arrow")}),s.cloneElement(E,{ref:se(E)?a:void 0}))}),je=ke,Fe={adjustX:1,adjustY:1},xe=[0,0],We={topLeft:{points:["bl","tl"],overflow:Fe,offset:[0,-4],targetOffset:xe},top:{points:["bc","tc"],overflow:Fe,offset:[0,-4],targetOffset:xe},topRight:{points:["br","tr"],overflow:Fe,offset:[0,-4],targetOffset:xe},bottomLeft:{points:["tl","bl"],overflow:Fe,offset:[0,4],targetOffset:xe},bottom:{points:["tc","bc"],overflow:Fe,offset:[0,4],targetOffset:xe},bottomRight:{points:["tr","br"],overflow:Fe,offset:[0,4],targetOffset:xe}},j=We,vt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function dt(o,m){var R,h=o.arrow,_=h===void 0?!1:h,E=o.prefixCls,a=E===void 0?"rc-dropdown":E,z=o.transitionName,W=o.animation,ae=o.align,pe=o.placement,de=pe===void 0?"bottomLeft":pe,ce=o.placements,oe=ce===void 0?j:ce,Ue=o.getPopupContainer,$e=o.showAction,et=o.hideAction,K=o.overlayClassName,Et=o.overlayStyle,St=o.visible,wt=o.trigger,Ye=wt===void 0?["hover"]:wt,lt=o.autoFocus,At=o.overlay,Rt=o.children,Ct=o.onVisibleChange,Lt=(0,te.Z)(o,vt),Ht=s.useState(),Mt=(0,q.Z)(Ht,2),_e=Mt[0],Ge=Mt[1],tt="visible"in o?St:_e,Nt=s.useRef(null),zt=s.useRef(null),Wt=s.useRef(null);s.useImperativeHandle(m,function(){return Nt.current});var Bt=function(r){Ge(r),Ct==null||Ct(r)};Ae({visible:tt,triggerRef:Wt,onVisibleChange:Bt,autoFocus:lt,overlayRef:zt});var Xt=function(r){var f=o.onOverlayClick;Ge(!1),f&&f(r)},De=function(){return s.createElement(je,{ref:zt,overlay:At,prefixCls:a,arrow:_})},Cn=function(){return typeof At=="function"?De:De()},G=function(){var r=o.minOverlayWidthMatchTrigger,f=o.alignPoint;return"minOverlayWidthMatchTrigger"in o?r:!f},e=function(){var r=o.openClassName;return r!==void 0?r:"".concat(a,"-open")},t=s.cloneElement(Rt,{className:k()((R=Rt.props)===null||R===void 0?void 0:R.className,tt&&e()),ref:se(Rt)?H(Wt,Rt.ref):void 0}),n=et;return!n&&Ye.indexOf("contextMenu")!==-1&&(n=["click"]),s.createElement(u.Z,(0,A.Z)({builtinPlacements:oe},Lt,{prefixCls:a,ref:Nt,popupClassName:k()(K,(0,g.Z)({},"".concat(a,"-show-arrow"),_)),popupStyle:Et,action:Ye,showAction:$e,hideAction:n,popupPlacement:de,popupAlign:ae,popupTransitionName:z,popupAnimation:W,popupVisible:tt,stretch:G()?"minWidth":"",popup:Cn(),onPopupVisibleChange:Bt,onPopupClick:Xt,getPopupContainer:Ue}),t)}var Be=s.forwardRef(dt),ve=Be,Ke=l(60276),Oe=l(5663),be=l(10366),we=l(80636),It=l(8745),at=l(96159),_t=l(53124),Kt=l(68508),ct=l(76529),ot=l(29691),ht=l(66748);const Zt=null,ft=o=>{const{menu:m,arrow:R,prefixCls:h,children:_,trigger:E,disabled:a,dropdownRender:z,getPopupContainer:W,overlayClassName:ae,rootClassName:pe,open:de,onOpenChange:ce,visible:oe,onVisibleChange:Ue,mouseEnterDelay:$e=.15,mouseLeaveDelay:et=.1,autoAdjustOverflow:K=!0,placement:Et="",overlay:St,transitionName:wt}=o,{getPopupContainer:Ye,getPrefixCls:lt,direction:At}=s.useContext(_t.E_),Rt=s.useMemo(()=>{const t=lt();return wt!==void 0?wt:Et.includes("top")?`${t}-slide-down`:`${t}-slide-up`},[lt,Et,wt]),Ct=s.useMemo(()=>Et?Et.includes("Center")?Et.slice(0,Et.indexOf("Center")):Et:At==="rtl"?"bottomRight":"bottomLeft",[Et,At]),Lt=lt("dropdown",h),[Ht,Mt]=(0,ht.Z)(Lt),[,_e]=(0,ot.Z)(),Ge=s.Children.only(_),tt=(0,at.Tm)(Ge,{className:k()(`${Lt}-trigger`,{[`${Lt}-rtl`]:At==="rtl"},Ge.props.className),disabled:a}),Nt=a?[]:E;let zt;Nt&&Nt.includes("contextMenu")&&(zt=!0);const[Wt,Bt]=(0,Oe.Z)(!1,{value:de!=null?de:oe}),Xt=(0,Ke.useEvent)(t=>{ce==null||ce(t),Ue==null||Ue(t),Bt(t)}),De=k()(ae,pe,Mt,{[`${Lt}-rtl`]:At==="rtl"}),Cn=(0,we.Z)({arrowPointAtCenter:typeof R=="object"&&R.pointAtCenter,autoAdjustOverflow:K,offset:_e.marginXXS,arrowWidth:R?_e.sizePopupArrow:0,borderRadius:_e.borderRadius}),G=s.useCallback(()=>{Bt(!1)},[]),e=()=>{let t;return m!=null&&m.items?t=s.createElement(Kt.default,Object.assign({},m)):typeof St=="function"?t=St():t=St,z&&(t=z(t)),t=s.Children.only(typeof t=="string"?s.createElement("span",null,t):t),s.createElement(ct.J,{prefixCls:`${Lt}-menu`,expandIcon:s.createElement("span",{className:`${Lt}-menu-submenu-arrow`},s.createElement(C.Z,{className:`${Lt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:G,validator:n=>{let{mode:i}=n}},t)};return Ht(s.createElement(ve,Object.assign({alignPoint:zt},(0,be.Z)(o,["rootClassName"]),{mouseEnterDelay:$e,mouseLeaveDelay:et,visible:Wt,builtinPlacements:Cn,arrow:!!R,overlayClassName:De,prefixCls:Lt,getPopupContainer:W||Ye,transitionName:Rt,trigger:Nt,overlay:e,placement:Ct,onVisibleChange:Xt}),tt))};function Re(o){return Object.assign(Object.assign({},o),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const M=(0,It.Z)(ft,"dropdown",o=>o,Re),c=o=>s.createElement(M,Object.assign({},o),s.createElement("span",null));ft._InternalPanelDoNotUseOrYouWillBeFired=c;var d=ft},85418:function(qe,he,l){"use strict";l.d(he,{Z:function(){return fe}});var s=l(35874),C=l(94184),T=l.n(C),k=l(67294),A=l(25877),g=l(71577),q=l(53124),te=l(93421),u=l(4173),P=l(66748),ne=function(se,N){var x={};for(var w in se)Object.prototype.hasOwnProperty.call(se,w)&&N.indexOf(w)<0&&(x[w]=se[w]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,w=Object.getOwnPropertySymbols(se);S<w.length;S++)N.indexOf(w[S])<0&&Object.prototype.propertyIsEnumerable.call(se,w[S])&&(x[w[S]]=se[w[S]]);return x};const X=se=>{const{getPopupContainer:N,getPrefixCls:x,direction:w}=k.useContext(q.E_),{prefixCls:S,type:F="default",danger:v,disabled:B,loading:V,onClick:$,htmlType:J,children:me,className:Ae,menu:ke,arrow:je,autoFocus:Fe,overlay:xe,trigger:We,align:j,open:vt,onOpenChange:dt,placement:Be,getPopupContainer:ve,href:Ke,icon:Oe=k.createElement(A.Z,null),title:be,buttonsRender:we=a=>a,mouseEnterDelay:It,mouseLeaveDelay:at,overlayClassName:_t,overlayStyle:Kt,destroyPopupOnHide:ct,dropdownRender:ot}=se,ht=ne(se,["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"]),Zt=x("dropdown",S),ft=`${Zt}-button`,[Re,M]=(0,P.Z)(Zt),c={menu:ke,arrow:je,autoFocus:Fe,align:j,disabled:B,trigger:B?[]:We,onOpenChange:dt,getPopupContainer:ve||N,mouseEnterDelay:It,mouseLeaveDelay:at,overlayClassName:_t,overlayStyle:Kt,destroyPopupOnHide:ct,dropdownRender:ot},{compactSize:d,compactItemClassnames:o}=(0,u.ri)(Zt,w),m=T()(ft,o,Ae,M);"overlay"in se&&(c.overlay=xe),"open"in se&&(c.open=vt),"placement"in se?c.placement=Be:c.placement=w==="rtl"?"bottomLeft":"bottomRight";const R=k.createElement(g.ZP,{type:F,danger:v,disabled:B,loading:V,onClick:$,htmlType:J,href:Ke,title:be},me),h=k.createElement(g.ZP,{type:F,danger:v,icon:Oe}),[_,E]=we([R,h]);return Re(k.createElement(te.Z.Compact,Object.assign({className:m,size:d,block:!0},ht),_,k.createElement(s.Z,Object.assign({},c),E)))};X.__ANT_BUTTON=!0;var L=X;const H=s.Z;H.Button=L;var fe=H},66748:function(qe,he,l){"use strict";l.d(he,{Z:function(){return ne}});var s=l(14747),C=l(67771),T=l(33297),k=l(50438),A=l(97414),g=l(67968),q=l(45503),u=X=>{const{componentCls:L,menuCls:H,colorError:fe,colorTextLightSolid:se}=X,N=`${H}-item`;return{[`${L}, ${L}-menu-submenu`]:{[`${H} ${N}`]:{[`&${N}-danger:not(${N}-disabled)`]:{color:fe,"&:hover":{color:se,backgroundColor:fe}}}}}};const P=X=>{const{componentCls:L,menuCls:H,zIndexPopup:fe,dropdownArrowDistance:se,sizePopupArrow:N,antCls:x,iconCls:w,motionDurationMid:S,dropdownPaddingVertical:F,fontSize:v,dropdownEdgeChildPadding:B,colorTextDisabled:V,fontSizeIcon:$,controlPaddingHorizontal:J,colorBgElevated:me}=X;return[{[L]:Object.assign(Object.assign({},(0,s.Wf)(X)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:fe,display:"block","&::before":{position:"absolute",insetBlock:-se+N/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${x}-btn`]:{[`& > ${w}-down, & > ${x}-btn-icon > ${w}-down`]:{fontSize:$}},[`${L}-wrap`]:{position:"relative",[`${x}-btn > ${w}-down`]:{fontSize:$},[`${w}-down::before`]:{transition:`transform ${S}`}},[`${L}-wrap-open`]:{[`${w}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${x}-slide-down-enter${x}-slide-down-enter-active${L}-placement-bottomLeft,
|
|
&${x}-slide-down-appear${x}-slide-down-appear-active${L}-placement-bottomLeft,
|
|
&${x}-slide-down-enter${x}-slide-down-enter-active${L}-placement-bottom,
|
|
&${x}-slide-down-appear${x}-slide-down-appear-active${L}-placement-bottom,
|
|
&${x}-slide-down-enter${x}-slide-down-enter-active${L}-placement-bottomRight,
|
|
&${x}-slide-down-appear${x}-slide-down-appear-active${L}-placement-bottomRight`]:{animationName:C.fJ},[`&${x}-slide-up-enter${x}-slide-up-enter-active${L}-placement-topLeft,
|
|
&${x}-slide-up-appear${x}-slide-up-appear-active${L}-placement-topLeft,
|
|
&${x}-slide-up-enter${x}-slide-up-enter-active${L}-placement-top,
|
|
&${x}-slide-up-appear${x}-slide-up-appear-active${L}-placement-top,
|
|
&${x}-slide-up-enter${x}-slide-up-enter-active${L}-placement-topRight,
|
|
&${x}-slide-up-appear${x}-slide-up-appear-active${L}-placement-topRight`]:{animationName:C.Qt},[`&${x}-slide-down-leave${x}-slide-down-leave-active${L}-placement-bottomLeft,
|
|
&${x}-slide-down-leave${x}-slide-down-leave-active${L}-placement-bottom,
|
|
&${x}-slide-down-leave${x}-slide-down-leave-active${L}-placement-bottomRight`]:{animationName:C.Uw},[`&${x}-slide-up-leave${x}-slide-up-leave-active${L}-placement-topLeft,
|
|
&${x}-slide-up-leave${x}-slide-up-leave-active${L}-placement-top,
|
|
&${x}-slide-up-leave${x}-slide-up-leave-active${L}-placement-topRight`]:{animationName:C.ly}})},(0,A.ZP)(X,{colorBg:me,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${L} ${H}`]:{position:"relative",margin:0},[`${H}-submenu-popup`]:{position:"absolute",zIndex:fe,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${L}, ${L}-menu-submenu`]:{[H]:Object.assign(Object.assign({padding:B,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:X.borderRadiusLG,outline:"none",boxShadow:X.boxShadowSecondary},(0,s.Qy)(X)),{[`${H}-item-group-title`]:{padding:`${F}px ${J}px`,color:X.colorTextDescription,transition:`all ${S}`},[`${H}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${H}-item-icon`]:{minWidth:v,marginInlineEnd:X.marginXS,fontSize:X.fontSizeSM},[`${H}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${S}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${H}-item, ${H}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${F}px ${J}px`,color:X.colorText,fontWeight:"normal",fontSize:v,lineHeight:X.lineHeight,cursor:"pointer",transition:`all ${S}`,borderRadius:X.borderRadiusSM,"&:hover, &-active":{backgroundColor:X.controlItemBgHover}},(0,s.Qy)(X)),{"&-selected":{color:X.colorPrimary,backgroundColor:X.controlItemBgActive,"&:hover, &-active":{backgroundColor:X.controlItemBgActiveHover}},"&-disabled":{color:V,cursor:"not-allowed","&:hover":{color:V,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${X.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:X.colorSplit},[`${L}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:X.paddingXS,[`${L}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:X.colorTextDescription,fontSize:$,fontStyle:"normal"}}}),[`${H}-item-group-list`]:{margin:`0 ${X.marginXS}px`,padding:0,listStyle:"none"},[`${H}-submenu-title`]:{paddingInlineEnd:J+X.fontSizeSM},[`${H}-submenu-vertical`]:{position:"relative"},[`${H}-submenu${H}-submenu-disabled ${L}-menu-submenu-title`]:{[`&, ${L}-menu-submenu-arrow-icon`]:{color:V,backgroundColor:me,cursor:"not-allowed"}},[`${H}-submenu-selected ${L}-menu-submenu-title`]:{color:X.colorPrimary}})}},[(0,C.oN)(X,"slide-up"),(0,C.oN)(X,"slide-down"),(0,T.Fm)(X,"move-up"),(0,T.Fm)(X,"move-down"),(0,k._y)(X,"zoom-big")]]};var ne=(0,g.Z)("Dropdown",(X,L)=>{let{rootPrefixCls:H}=L;const{marginXXS:fe,sizePopupArrow:se,controlHeight:N,fontSize:x,lineHeight:w,paddingXXS:S,componentCls:F,borderRadiusLG:v}=X,B=(N-x*w)/2,{dropdownArrowOffset:V}=(0,A.fS)({contentRadius:v}),$=(0,q.TS)(X,{menuCls:`${F}-menu`,rootPrefixCls:H,dropdownArrowDistance:se/2+fe,dropdownArrowOffset:V,dropdownPaddingVertical:B,dropdownEdgeChildPadding:S});return[P($),u($)]},X=>({zIndexPopup:X.zIndexPopupBase+50}))},71322:function(qe,he,l){"use strict";l.d(he,{D:function(){return w},Z:function(){return v}});var s=l(87462),C=l(67294),T={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"},k=T,A=l(84089),g=function(V,$){return C.createElement(A.Z,(0,s.Z)({},V,{ref:$,icon:k}))},q=C.forwardRef(g),te=l(22751),u=l(91034),P=l(94184),ne=l.n(P),X=l(10366),H=B=>!isNaN(parseFloat(B))&&isFinite(B),fe=l(53124),se=l(84321),N=function(B,V){var $={};for(var J in B)Object.prototype.hasOwnProperty.call(B,J)&&V.indexOf(J)<0&&($[J]=B[J]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,J=Object.getOwnPropertySymbols(B);me<J.length;me++)V.indexOf(J[me])<0&&Object.prototype.propertyIsEnumerable.call(B,J[me])&&($[J[me]]=B[J[me]]);return $};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},w=C.createContext({}),S=(()=>{let B=0;return function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return B+=1,`${V}${B}`}})();var v=C.forwardRef((B,V)=>{const{prefixCls:$,className:J,trigger:me,children:Ae,defaultCollapsed:ke=!1,theme:je="dark",style:Fe={},collapsible:xe=!1,reverseArrow:We=!1,width:j=200,collapsedWidth:vt=80,zeroWidthTriggerStyle:dt,breakpoint:Be,onCollapse:ve,onBreakpoint:Ke}=B,Oe=N(B,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:be}=(0,C.useContext)(se.Gs),[we,It]=(0,C.useState)("collapsed"in B?B.collapsed:ke),[at,_t]=(0,C.useState)(!1);(0,C.useEffect)(()=>{"collapsed"in B&&It(B.collapsed)},[B.collapsed]);const Kt=(Re,M)=>{"collapsed"in B||It(Re),ve==null||ve(Re,M)},ct=(0,C.useRef)();ct.current=Re=>{_t(Re.matches),Ke==null||Ke(Re.matches),we!==Re.matches&&Kt(Re.matches,"responsive")},(0,C.useEffect)(()=>{function Re(c){return ct.current(c)}let M;if(typeof window!="undefined"){const{matchMedia:c}=window;if(c&&Be&&Be in x){M=c(`(max-width: ${x[Be]})`);try{M.addEventListener("change",Re)}catch(d){M.addListener(Re)}Re(M)}}return()=>{try{M==null||M.removeEventListener("change",Re)}catch(c){M==null||M.removeListener(Re)}}},[Be]),(0,C.useEffect)(()=>{const Re=S("ant-sider-");return be.addSider(Re),()=>be.removeSider(Re)},[]);const ot=()=>{Kt(!we,"clickTrigger")},{getPrefixCls:ht}=(0,C.useContext)(fe.E_),Zt=()=>{const Re=ht("layout-sider",$),M=(0,X.Z)(Oe,["collapsed"]),c=we?vt:j,d=H(c)?`${c}px`:String(c),o=parseFloat(String(vt||0))===0?C.createElement("span",{onClick:ot,className:ne()(`${Re}-zero-width-trigger`,`${Re}-zero-width-trigger-${We?"right":"left"}`),style:dt},me||C.createElement(q,null)):null,h={expanded:We?C.createElement(u.Z,null):C.createElement(te.Z,null),collapsed:We?C.createElement(te.Z,null):C.createElement(u.Z,null)}[we?"collapsed":"expanded"],_=me!==null?o||C.createElement("div",{className:`${Re}-trigger`,onClick:ot,style:{width:d}},me||h):null,E=Object.assign(Object.assign({},Fe),{flex:`0 0 ${d}`,maxWidth:d,minWidth:d,width:d}),a=ne()(Re,`${Re}-${je}`,{[`${Re}-collapsed`]:!!we,[`${Re}-has-trigger`]:xe&&me!==null&&!o,[`${Re}-below`]:!!at,[`${Re}-zero-width`]:parseFloat(d)===0},J);return C.createElement("aside",Object.assign({className:a},M,{style:E,ref:V}),C.createElement("div",{className:`${Re}-children`},Ae),xe||at&&o?_:null)},ft=C.useMemo(()=>({siderCollapsed:we}),[we]);return C.createElement(w.Provider,{value:ft},Zt())})},84321:function(qe,he,l){"use strict";l.d(he,{VY:function(){return S},$_:function(){return w},h4:function(){return x},Gs:function(){return L},ZP:function(){return F}});var s=l(74902),C=l(94184),T=l.n(C),k=l(10366),A=l(67294),g=l(53124),q=l(67968),u=v=>{const{componentCls:B,bodyBg:V,lightSiderBg:$,lightTriggerBg:J,lightTriggerColor:me}=v;return{[`${B}-sider-light`]:{background:$,[`${B}-sider-trigger`]:{color:me,background:J},[`${B}-sider-zero-width-trigger`]:{color:me,background:J,border:`1px solid ${V}`,borderInlineStart:0}}}};const P=v=>{const{antCls:B,componentCls:V,colorText:$,triggerColor:J,footerBg:me,triggerBg:Ae,headerHeight:ke,headerPadding:je,headerColor:Fe,footerPadding:xe,triggerHeight:We,zeroTriggerHeight:j,zeroTriggerWidth:vt,motionDurationMid:dt,motionDurationSlow:Be,fontSize:ve,borderRadius:Ke,bodyBg:Oe,headerBg:be,siderBg:we}=v;return{[V]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Oe,"&, *":{boxSizing:"border-box"},[`&${V}-has-sider`]:{flexDirection:"row",[`> ${V}, > ${V}-content`]:{width:0}},[`${V}-header, &${V}-footer`]:{flex:"0 0 auto"},[`${V}-sider`]:{position:"relative",minWidth:0,background:we,transition:`all ${dt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${B}-menu${B}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:We},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:We,color:J,lineHeight:`${We}px`,textAlign:"center",background:Ae,cursor:"pointer",transition:`all ${dt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ke,insetInlineEnd:-vt,zIndex:1,width:vt,height:j,color:J,fontSize:v.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:we,borderStartStartRadius:0,borderStartEndRadius:Ke,borderEndEndRadius:Ke,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Be} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Be}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-vt,borderStartStartRadius:Ke,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ke}}}}},u(v)),{"&-rtl":{direction:"rtl"}}),[`${V}-header`]:{height:ke,padding:je,color:Fe,lineHeight:`${ke}px`,background:be,[`${B}-menu`]:{lineHeight:"inherit"}},[`${V}-footer`]:{padding:xe,color:$,fontSize:ve,background:me},[`${V}-content`]:{flex:"auto",minHeight:0}}};var ne=(0,q.Z)("Layout",v=>[P(v)],v=>{const{colorBgLayout:B,controlHeight:V,controlHeightLG:$,colorText:J,controlHeightSM:me,marginXXS:Ae,colorTextLightSolid:ke,colorBgContainer:je}=v,Fe=$*1.25;return{colorBgHeader:"#001529",colorBgBody:B,colorBgTrigger:"#002140",bodyBg:B,headerBg:"#001529",headerHeight:V*2,headerPadding:`0 ${Fe}px`,headerColor:J,footerPadding:`${me}px ${Fe}px`,footerBg:B,siderBg:"#001529",triggerHeight:$+Ae*2,triggerBg:"#002140",triggerColor:ke,zeroTriggerWidth:$,zeroTriggerHeight:$,lightSiderBg:je,lightTriggerBg:je,lightTriggerColor:J}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),X=function(v,B){var V={};for(var $ in v)Object.prototype.hasOwnProperty.call(v,$)&&B.indexOf($)<0&&(V[$]=v[$]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,$=Object.getOwnPropertySymbols(v);J<$.length;J++)B.indexOf($[J])<0&&Object.prototype.propertyIsEnumerable.call(v,$[J])&&(V[$[J]]=v[$[J]]);return V};const L=A.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function H(v){let{suffixCls:B,tagName:V,displayName:$}=v;return J=>A.forwardRef((Ae,ke)=>A.createElement(J,Object.assign({ref:ke,suffixCls:B,tagName:V},Ae)))}const fe=A.forwardRef((v,B)=>{const{prefixCls:V,suffixCls:$,className:J,tagName:me}=v,Ae=X(v,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ke}=A.useContext(g.E_),je=ke("layout",V),[Fe,xe]=ne(je),We=$?`${je}-${$}`:je;return Fe(A.createElement(me,Object.assign({className:T()(V||We,J,xe),ref:B},Ae)))}),se=A.forwardRef((v,B)=>{const{direction:V}=A.useContext(g.E_),[$,J]=A.useState([]),{prefixCls:me,className:Ae,rootClassName:ke,children:je,hasSider:Fe,tagName:xe,style:We}=v,j=X(v,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),vt=(0,k.Z)(j,["suffixCls"]),{getPrefixCls:dt,layout:Be}=A.useContext(g.E_),ve=dt("layout",me),[Ke,Oe]=ne(ve),be=T()(ve,{[`${ve}-has-sider`]:typeof Fe=="boolean"?Fe:$.length>0,[`${ve}-rtl`]:V==="rtl"},Be==null?void 0:Be.className,Ae,ke,Oe),we=A.useMemo(()=>({siderHook:{addSider:It=>{J(at=>[].concat((0,s.Z)(at),[It]))},removeSider:It=>{J(at=>at.filter(_t=>_t!==It))}}}),[]);return Ke(A.createElement(L.Provider,{value:we},A.createElement(xe,Object.assign({ref:B,className:be,style:Object.assign(Object.assign({},Be==null?void 0:Be.style),We)},vt),je)))}),N=H({tagName:"div",displayName:"Layout"})(se),x=H({suffixCls:"header",tagName:"header",displayName:"Header"})(fe),w=H({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(fe),S=H({suffixCls:"content",tagName:"main",displayName:"Content"})(fe);var F=N},76529:function(qe,he,l){"use strict";l.d(he,{J:function(){return g}});var s=l(67294),C=l(4173),T=l(60276),k=function(q,te){var u={};for(var P in q)Object.prototype.hasOwnProperty.call(q,P)&&te.indexOf(P)<0&&(u[P]=q[P]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,P=Object.getOwnPropertySymbols(q);ne<P.length;ne++)te.indexOf(P[ne])<0&&Object.prototype.propertyIsEnumerable.call(q,P[ne])&&(u[P[ne]]=q[P[ne]]);return u};const A=s.createContext(null),g=s.forwardRef((q,te)=>{const{children:u}=q,P=k(q,["children"]),ne=s.useContext(A),X=s.useMemo(()=>Object.assign(Object.assign({},ne),P),[ne,P.prefixCls,P.mode,P.selectable]);return s.createElement(A.Provider,{value:X},s.createElement(C.BR,null,(0,T.supportNodeRef)(u)?s.cloneElement(u,{ref:te}):u))});he.Z=A},68508:function(qe,he,l){"use strict";l.d(he,{default:function(){return Re}});var s=l(78595),C=l(67294),T=l(71322),k=l(94184),A=l.n(k),g=l(53124),q=function(M,c){var d={};for(var o in M)Object.prototype.hasOwnProperty.call(M,o)&&c.indexOf(o)<0&&(d[o]=M[o]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,o=Object.getOwnPropertySymbols(M);m<o.length;m++)c.indexOf(o[m])<0&&Object.prototype.propertyIsEnumerable.call(M,o[m])&&(d[o[m]]=M[o[m]]);return d},u=M=>{const{prefixCls:c,className:d,dashed:o}=M,m=q(M,["prefixCls","className","dashed"]),{getPrefixCls:R}=C.useContext(g.E_),h=R("menu",c),_=A()({[`${h}-item-divider-dashed`]:!!o},d);return C.createElement(s.iz,Object.assign({className:_},m))},P=l(37419),ne=l(10366),X=l(83062),L=l(96159),fe=(0,C.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),N=M=>{var c;const{className:d,children:o,icon:m,title:R,danger:h}=M,{prefixCls:_,firstLevel:E,direction:a,disableMenuItemTitleTooltip:z,inlineCollapsed:W}=C.useContext(fe),ae=$e=>{const et=C.createElement("span",{className:`${_}-title-content`},o);return(!m||(0,L.l$)(o)&&o.type==="span")&&o&&$e&&E&&typeof o=="string"?C.createElement("div",{className:`${_}-inline-collapsed-noicon`},o.charAt(0)):et},{siderCollapsed:pe}=C.useContext(T.D);let de=R;typeof R=="undefined"?de=E?o:"":R===!1&&(de="");const ce={title:de};!pe&&!W&&(ce.title=null,ce.open=!1);const oe=(0,P.Z)(o).length;let Ue=C.createElement(s.ck,Object.assign({},(0,ne.Z)(M,["title","icon","danger"]),{className:A()({[`${_}-item-danger`]:h,[`${_}-item-only-child`]:(m?oe+1:oe)===1},d),title:typeof R=="string"?R:void 0}),(0,L.Tm)(m,{className:A()((0,L.l$)(m)?(c=m.props)===null||c===void 0?void 0:c.className:"",`${_}-item-icon`)}),ae(W));return z||(Ue=C.createElement(X.Z,Object.assign({},ce,{placement:a==="rtl"?"left":"right",overlayClassName:`${_}-inline-collapsed-tooltip`}),Ue)),Ue},w=M=>{var c;const{popupClassName:d,icon:o,title:m,theme:R}=M,h=C.useContext(fe),{prefixCls:_,inlineCollapsed:E,theme:a}=h,z=(0,s.Xl)();let W;if(!o)W=E&&!z.length&&m&&typeof m=="string"?C.createElement("div",{className:`${_}-inline-collapsed-noicon`},m.charAt(0)):C.createElement("span",{className:`${_}-title-content`},m);else{const pe=(0,L.l$)(m)&&m.type==="span";W=C.createElement(C.Fragment,null,(0,L.Tm)(o,{className:A()((0,L.l$)(o)?(c=o.props)===null||c===void 0?void 0:c.className:"",`${_}-item-icon`)}),pe?m:C.createElement("span",{className:`${_}-title-content`},m))}const ae=C.useMemo(()=>Object.assign(Object.assign({},h),{firstLevel:!1}),[h]);return C.createElement(fe.Provider,{value:ae},C.createElement(s.Wd,Object.assign({},(0,ne.Z)(M,["icon"]),{title:W,popupClassName:A()(_,d,`${_}-${R||a}`)})))},S=l(25877),F=l(60276),v=l(33603),B=l(76529),V=function(M,c){var d={};for(var o in M)Object.prototype.hasOwnProperty.call(M,o)&&c.indexOf(o)<0&&(d[o]=M[o]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,o=Object.getOwnPropertySymbols(M);m<o.length;m++)c.indexOf(o[m])<0&&Object.prototype.propertyIsEnumerable.call(M,o[m])&&(d[o[m]]=M[o[m]]);return d};function $(M){return(M||[]).map((c,d)=>{if(c&&typeof c=="object"){const o=c,{label:m,children:R,key:h,type:_}=o,E=V(o,["label","children","key","type"]),a=h!=null?h:`tmp-${d}`;return R||_==="group"?_==="group"?C.createElement(s.BW,Object.assign({key:a},E,{title:m}),$(R)):C.createElement(w,Object.assign({key:a},E,{title:m}),$(R)):_==="divider"?C.createElement(u,Object.assign({key:a},E)):C.createElement(N,Object.assign({key:a},E),m)}return null}).filter(c=>c)}function J(M){return C.useMemo(()=>M&&$(M),[M])}var me=l(84780),Ae=l(14747),ke=l(33507),je=l(67771),Fe=l(50438),xe=l(67968),We=l(45503),vt=M=>{const{componentCls:c,motionDurationSlow:d,horizontalLineHeight:o,colorSplit:m,lineWidth:R,lineType:h,itemPaddingInline:_}=M;return{[`${c}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${R}px ${h} ${m}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${c}-item, ${c}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:_},[`> ${c}-item:hover,
|
|
> ${c}-item-active,
|
|
> ${c}-submenu ${c}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${c}-item, ${c}-submenu-title`]:{transition:[`border-color ${d}`,`background ${d}`].join(",")},[`${c}-submenu-arrow`]:{display:"none"}}}},Be=M=>{let{componentCls:c,menuArrowOffset:d}=M;return{[`${c}-rtl`]:{direction:"rtl"},[`${c}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${c}-rtl${c}-vertical,
|
|
${c}-submenu-rtl ${c}-vertical`]:{[`${c}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${d})`},"&::after":{transform:`rotate(45deg) translateY(${d})`}}}}};const ve=M=>Object.assign({},(0,Ae.oN)(M));var Oe=(M,c)=>{const{componentCls:d,itemColor:o,itemSelectedColor:m,groupTitleColor:R,itemBg:h,subMenuItemBg:_,itemSelectedBg:E,activeBarHeight:a,activeBarWidth:z,activeBarBorderWidth:W,motionDurationSlow:ae,motionEaseInOut:pe,motionEaseOut:de,itemPaddingInline:ce,motionDurationMid:oe,itemHoverColor:Ue,lineType:$e,colorSplit:et,itemDisabledColor:K,dangerItemColor:Et,dangerItemHoverColor:St,dangerItemSelectedColor:wt,dangerItemActiveBg:Ye,dangerItemSelectedBg:lt,itemHoverBg:At,itemActiveBg:Rt,menuSubMenuBg:Ct,horizontalItemSelectedColor:Lt,horizontalItemSelectedBg:Ht,horizontalItemBorderRadius:Mt,horizontalItemHoverBg:_e,popupBg:Ge}=M;return{[`${d}-${c}, ${d}-${c} > ${d}`]:{color:o,background:h,[`&${d}-root:focus-visible`]:Object.assign({},ve(M)),[`${d}-item-group-title`]:{color:R},[`${d}-submenu-selected`]:{[`> ${d}-submenu-title`]:{color:m}},[`${d}-item-disabled, ${d}-submenu-disabled`]:{color:`${K} !important`},[`${d}-item:not(${d}-item-selected):not(${d}-submenu-selected)`]:{[`&:hover, > ${d}-submenu-title:hover`]:{color:Ue}},[`&:not(${d}-horizontal)`]:{[`${d}-item:not(${d}-item-selected)`]:{"&:hover":{backgroundColor:At},"&:active":{backgroundColor:Rt}},[`${d}-submenu-title`]:{"&:hover":{backgroundColor:At},"&:active":{backgroundColor:Rt}}},[`${d}-item-danger`]:{color:Et,[`&${d}-item:hover`]:{[`&:not(${d}-item-selected):not(${d}-submenu-selected)`]:{color:St}},[`&${d}-item:active`]:{background:Ye}},[`${d}-item a`]:{"&, &:hover":{color:"inherit"}},[`${d}-item-selected`]:{color:m,[`&${d}-item-danger`]:{color:wt},"a, a:hover":{color:"inherit"}},[`& ${d}-item-selected`]:{backgroundColor:E,[`&${d}-item-danger`]:{backgroundColor:lt}},[`${d}-item, ${d}-submenu-title`]:{[`&:not(${d}-item-disabled):focus-visible`]:Object.assign({},ve(M))},[`&${d}-submenu > ${d}`]:{backgroundColor:Ct},[`&${d}-popup > ${d}`]:{backgroundColor:Ge},[`&${d}-horizontal`]:Object.assign(Object.assign({},c==="dark"?{borderBottom:0}:{}),{[`> ${d}-item, > ${d}-submenu`]:{top:W,marginTop:-W,marginBottom:0,borderRadius:Mt,"&::after":{position:"absolute",insetInline:ce,bottom:0,borderBottom:`${a}px solid transparent`,transition:`border-color ${ae} ${pe}`,content:'""'},"&:hover, &-active, &-open":{background:_e,"&::after":{borderBottomWidth:a,borderBottomColor:Lt}},"&-selected":{color:Lt,backgroundColor:Ht,"&:hover":{backgroundColor:Ht},"&::after":{borderBottomWidth:a,borderBottomColor:Lt}}}}),[`&${d}-root`]:{[`&${d}-inline, &${d}-vertical`]:{borderInlineEnd:`${W}px ${$e} ${et}`}},[`&${d}-inline`]:{[`${d}-sub${d}-inline`]:{background:_},[`${d}-item, ${d}-submenu-title`]:W&&z?{width:`calc(100% + ${W}px)`}:{},[`${d}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${z}px solid ${m}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${oe} ${de}`,`opacity ${oe} ${de}`].join(","),content:'""'},[`&${d}-item-danger`]:{"&::after":{borderInlineEndColor:wt}}},[`${d}-selected, ${d}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${oe} ${pe}`,`opacity ${oe} ${pe}`].join(",")}}}}}};const be=M=>{const{componentCls:c,itemHeight:d,itemMarginInline:o,padding:m,menuArrowSize:R,marginXS:h,itemMarginBlock:_}=M,E=m+R+h;return{[`${c}-item`]:{position:"relative",overflow:"hidden"},[`${c}-item, ${c}-submenu-title`]:{height:d,lineHeight:`${d}px`,paddingInline:m,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:_,width:`calc(100% - ${o*2}px)`},[`> ${c}-item,
|
|
> ${c}-submenu > ${c}-submenu-title`]:{height:d,lineHeight:`${d}px`},[`${c}-item-group-list ${c}-submenu-title,
|
|
${c}-submenu-title`]:{paddingInlineEnd:E}}};var It=M=>{const{componentCls:c,iconCls:d,itemHeight:o,colorTextLightSolid:m,dropdownWidth:R,controlHeightLG:h,motionDurationMid:_,motionEaseOut:E,paddingXL:a,itemMarginInline:z,fontSizeLG:W,motionDurationSlow:ae,paddingXS:pe,boxShadowSecondary:de,collapsedWidth:ce,collapsedIconSize:oe}=M,Ue={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[c]:{"&-inline, &-vertical":Object.assign({[`&${c}-root`]:{boxShadow:"none"}},be(M))},[`${c}-submenu-popup`]:{[`${c}-vertical`]:Object.assign(Object.assign({},be(M)),{boxShadow:de})}},{[`${c}-submenu-popup ${c}-vertical${c}-sub`]:{minWidth:R,maxHeight:`calc(100vh - ${h*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${c}-inline`]:{width:"100%",[`&${c}-root`]:{[`${c}-item, ${c}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ae}`,`background ${ae}`,`padding ${_} ${E}`].join(","),[`> ${c}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${c}-sub${c}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${c}-submenu > ${c}-submenu-title`]:Ue,[`& ${c}-item-group-title`]:{paddingInlineStart:a}},[`${c}-item`]:Ue}},{[`${c}-inline-collapsed`]:{width:ce,[`&${c}-root`]:{[`${c}-item, ${c}-submenu ${c}-submenu-title`]:{[`> ${c}-inline-collapsed-noicon`]:{fontSize:W,textAlign:"center"}}},[`> ${c}-item,
|
|
> ${c}-item-group > ${c}-item-group-list > ${c}-item,
|
|
> ${c}-item-group > ${c}-item-group-list > ${c}-submenu > ${c}-submenu-title,
|
|
> ${c}-submenu > ${c}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${W/2}px - ${z}px)`,textOverflow:"clip",[`
|
|
${c}-submenu-arrow,
|
|
${c}-submenu-expand-icon
|
|
`]:{opacity:0},[`${c}-item-icon, ${d}`]:{margin:0,fontSize:oe,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${c}-item-icon, ${d}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${c}-item-icon, ${d}`]:{display:"none"},"a, a:hover":{color:m}},[`${c}-item-group-title`]:Object.assign(Object.assign({},Ae.vS),{paddingInline:pe})}}]};const at=M=>{const{componentCls:c,motionDurationSlow:d,motionDurationMid:o,motionEaseInOut:m,motionEaseOut:R,iconCls:h,iconSize:_,iconMarginInlineEnd:E}=M;return{[`${c}-item, ${c}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${d}`,`background ${d}`,`padding ${d} ${m}`].join(","),[`${c}-item-icon, ${h}`]:{minWidth:_,fontSize:_,transition:[`font-size ${o} ${R}`,`margin ${d} ${m}`,`color ${d}`].join(","),"+ span":{marginInlineStart:E,opacity:1,transition:[`opacity ${d} ${m}`,`margin ${d}`,`color ${d}`].join(",")}},[`${c}-item-icon`]:Object.assign({},(0,Ae.Ro)()),[`&${c}-item-only-child`]:{[`> ${h}, > ${c}-item-icon`]:{marginInlineEnd:0}}},[`${c}-item-disabled, ${c}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${c}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},_t=M=>{const{componentCls:c,motionDurationSlow:d,motionEaseInOut:o,borderRadius:m,menuArrowSize:R,menuArrowOffset:h}=M;return{[`${c}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:M.margin,width:R,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${d} ${o}, opacity ${d}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:R*.6,height:R*.15,backgroundColor:"currentcolor",borderRadius:m,transition:[`background ${d} ${o}`,`transform ${d} ${o}`,`top ${d} ${o}`,`color ${d} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${h})`},"&::after":{transform:`rotate(-45deg) translateY(${h})`}}}}},Kt=M=>{const{antCls:c,componentCls:d,fontSize:o,motionDurationSlow:m,motionDurationMid:R,motionEaseInOut:h,paddingXS:_,padding:E,colorSplit:a,lineWidth:z,zIndexPopup:W,borderRadiusLG:ae,subMenuItemBorderRadius:pe,menuArrowSize:de,menuArrowOffset:ce,lineType:oe,menuPanelMaskInset:Ue,groupTitleLineHeight:$e,groupTitleFontSize:et}=M;return[{"":{[`${d}`]:Object.assign(Object.assign({},(0,Ae.dF)()),{"&-hidden":{display:"none"}})},[`${d}-submenu-hidden`]:{display:"none"}},{[d]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ae.Wf)(M)),(0,Ae.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:o,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",[`${d}-item`]:{flex:"none"}},[`${d}-item, ${d}-submenu, ${d}-submenu-title`]:{borderRadius:M.itemBorderRadius},[`${d}-item-group-title`]:{padding:`${_}px ${E}px`,fontSize:et,lineHeight:$e,transition:`all ${m}`},[`&-horizontal ${d}-submenu`]:{transition:[`border-color ${m} ${h}`,`background ${m} ${h}`].join(",")},[`${d}-submenu, ${d}-submenu-inline`]:{transition:[`border-color ${m} ${h}`,`background ${m} ${h}`,`padding ${R} ${h}`].join(",")},[`${d}-submenu ${d}-sub`]:{cursor:"initial",transition:[`background ${m} ${h}`,`padding ${m} ${h}`].join(",")},[`${d}-title-content`]:{transition:`color ${m}`},[`${d}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${d}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:a,borderStyle:oe,borderWidth:0,borderTopWidth:z,marginBlock:z,padding:0,"&-dashed":{borderStyle:"dashed"}}}),at(M)),{[`${d}-item-group`]:{[`${d}-item-group-list`]:{margin:0,padding:0,[`${d}-item, ${d}-submenu-title`]:{paddingInline:`${o*2}px ${E}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:W,borderRadius:ae,boxShadow:"none",transformOrigin:"0 0",[`&${d}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ue}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ue},"\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:M.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:M.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:M.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:M.paddingXS},[`> ${d}`]:Object.assign(Object.assign(Object.assign({borderRadius:ae},at(M)),_t(M)),{[`${d}-item, ${d}-submenu > ${d}-submenu-title`]:{borderRadius:pe},[`${d}-submenu-title::after`]:{transition:`transform ${m} ${h}`}})}}),_t(M)),{[`&-inline-collapsed ${d}-submenu-arrow,
|
|
&-inline ${d}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ce})`},"&::after":{transform:`rotate(45deg) translateX(-${ce})`}},[`${d}-submenu-open${d}-submenu-inline > ${d}-submenu-title > ${d}-submenu-arrow`]:{transform:`translateY(-${de*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ce})`},"&::before":{transform:`rotate(45deg) translateX(${ce})`}}})},{[`${c}-layout-header`]:{[d]:{lineHeight:"inherit"}}}]};var ct=(M,c)=>(0,xe.Z)("Menu",o=>{if(c===!1)return[];const{colorBgElevated:m,colorPrimary:R,colorTextLightSolid:h,controlHeightLG:_,fontSize:E,darkItemColor:a,darkDangerItemColor:z,darkItemBg:W,darkSubMenuItemBg:ae,darkItemSelectedColor:pe,darkItemSelectedBg:de,darkDangerItemSelectedBg:ce,darkItemHoverBg:oe,darkGroupTitleColor:Ue,darkItemHoverColor:$e,darkItemDisabledColor:et,darkDangerItemHoverColor:K,darkDangerItemSelectedColor:Et,darkDangerItemActiveBg:St}=o,wt=E/7*5,Ye=(0,We.TS)(o,{menuArrowSize:wt,menuHorizontalHeight:_*1.15,menuArrowOffset:`${wt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:m}),lt=(0,We.TS)(Ye,{itemColor:a,itemHoverColor:$e,groupTitleColor:Ue,itemSelectedColor:pe,itemBg:W,popupBg:W,subMenuItemBg:ae,itemActiveBg:"transparent",itemSelectedBg:de,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:oe,itemDisabledColor:et,dangerItemColor:z,dangerItemHoverColor:K,dangerItemSelectedColor:Et,dangerItemActiveBg:St,dangerItemSelectedBg:ce,menuSubMenuBg:ae,horizontalItemSelectedColor:h,horizontalItemSelectedBg:R});return[Kt(Ye),vt(Ye),It(Ye),Oe(Ye,"light"),Oe(lt,"dark"),Be(Ye),(0,ke.Z)(Ye),(0,je.oN)(Ye,"slide-up"),(0,je.oN)(Ye,"slide-down"),(0,Fe._y)(Ye,"zoom-big")]},o=>{const{colorPrimary:m,colorError:R,colorTextDisabled:h,colorErrorBg:_,colorText:E,colorTextDescription:a,colorBgContainer:z,colorFillAlter:W,colorFillContent:ae,lineWidth:pe,lineWidthBold:de,controlItemBgActive:ce,colorBgTextHover:oe,controlHeightLG:Ue,lineHeight:$e,colorBgElevated:et,marginXXS:K,padding:Et,fontSize:St,controlHeightSM:wt,fontSizeLG:Ye,colorTextLightSolid:lt,colorErrorHover:At}=o,Rt=new me.C(lt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:o.zIndexPopupBase+50,radiusItem:o.borderRadiusLG,itemBorderRadius:o.borderRadiusLG,radiusSubMenuItem:o.borderRadiusSM,subMenuItemBorderRadius:o.borderRadiusSM,colorItemText:E,itemColor:E,colorItemTextHover:E,itemHoverColor:E,colorItemTextHoverHorizontal:m,horizontalItemHoverColor:m,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:m,itemSelectedColor:m,colorItemTextSelectedHorizontal:m,horizontalItemSelectedColor:m,colorItemBg:z,itemBg:z,colorItemBgHover:oe,itemHoverBg:oe,colorItemBgActive:ae,itemActiveBg:ce,colorSubItemBg:W,subMenuItemBg:W,colorItemBgSelected:ce,itemSelectedBg:ce,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:de,activeBarHeight:de,colorActiveBarBorderSize:pe,activeBarBorderWidth:pe,colorItemTextDisabled:h,itemDisabledColor:h,colorDangerItemText:R,dangerItemColor:R,colorDangerItemTextHover:R,dangerItemHoverColor:R,colorDangerItemTextSelected:R,dangerItemSelectedColor:R,colorDangerItemBgActive:_,dangerItemActiveBg:_,colorDangerItemBgSelected:_,dangerItemSelectedBg:_,itemMarginInline:o.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ue,groupTitleLineHeight:$e,collapsedWidth:Ue*2,popupBg:et,itemMarginBlock:K,itemPaddingInline:Et,horizontalLineHeight:`${Ue*1.15}px`,iconSize:St,iconMarginInlineEnd:wt-St,collapsedIconSize:Ye,groupTitleFontSize:St,darkItemDisabledColor:new me.C(lt).setAlpha(.25).toRgbString(),darkItemColor:Rt,darkDangerItemColor:R,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:lt,darkItemSelectedBg:m,darkDangerItemSelectedBg:R,darkItemHoverBg:"transparent",darkGroupTitleColor:Rt,darkItemHoverColor:lt,darkDangerItemHoverColor:At,darkDangerItemSelectedColor:lt,darkDangerItemActiveBg:R}},{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"]]})(M),ot=function(M,c){var d={};for(var o in M)Object.prototype.hasOwnProperty.call(M,o)&&c.indexOf(o)<0&&(d[o]=M[o]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,o=Object.getOwnPropertySymbols(M);m<o.length;m++)c.indexOf(o[m])<0&&Object.prototype.propertyIsEnumerable.call(M,o[m])&&(d[o[m]]=M[o[m]]);return d},Zt=(0,C.forwardRef)((M,c)=>{var d,o;const m=C.useContext(B.Z),R=m||{},{getPrefixCls:h,getPopupContainer:_,direction:E,menu:a}=C.useContext(g.E_),z=h(),{prefixCls:W,className:ae,style:pe,theme:de="light",expandIcon:ce,_internalDisableMenuItemTitleTooltip:oe,inlineCollapsed:Ue,siderCollapsed:$e,items:et,children:K,rootClassName:Et,mode:St,selectable:wt,onClick:Ye,overflowedIndicatorPopupClassName:lt}=M,At=ot(M,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Rt=(0,ne.Z)(At,["collapsedWidth"]),Ct=J(et)||K;(d=R.validator)===null||d===void 0||d.call(R,{mode:St});const Lt=(0,F.useEvent)(function(){var De;Ye==null||Ye.apply(void 0,arguments),(De=R.onClick)===null||De===void 0||De.call(R)}),Ht=R.mode||St,Mt=wt!=null?wt:R.selectable,_e=C.useMemo(()=>$e!==void 0?$e:Ue,[Ue,$e]),Ge={horizontal:{motionName:`${z}-slide-up`},inline:(0,v.Z)(z),other:{motionName:`${z}-zoom-big`}},tt=h("menu",W||R.prefixCls),[Nt,zt]=ct(tt,!m),Wt=A()(`${tt}-${de}`,a==null?void 0:a.className,ae);let Bt;if(typeof ce=="function")Bt=ce;else if(ce===null||ce===!1)Bt=null;else if(R.expandIcon===null||R.expandIcon===!1)Bt=null;else{const De=ce!=null?ce:R.expandIcon;Bt=(0,L.Tm)(De,{className:A()(`${tt}-submenu-expand-icon`,(0,L.l$)(De)?(o=De.props)===null||o===void 0?void 0:o.className:"")})}const Xt=C.useMemo(()=>({prefixCls:tt,inlineCollapsed:_e||!1,direction:E,firstLevel:!0,theme:de,mode:Ht,disableMenuItemTitleTooltip:oe}),[tt,_e,E,oe,de]);return Nt(C.createElement(B.Z.Provider,{value:null},C.createElement(fe.Provider,{value:Xt},C.createElement(s.ZP,Object.assign({getPopupContainer:_,overflowedIndicator:C.createElement(S.Z,null),overflowedIndicatorPopupClassName:A()(tt,`${tt}-${de}`,lt),mode:Ht,selectable:Mt,onClick:Lt},Rt,{inlineCollapsed:_e,style:Object.assign(Object.assign({},a==null?void 0:a.style),pe),className:Wt,prefixCls:tt,direction:E,defaultMotions:Ge,expandIcon:Bt,ref:c,rootClassName:A()(Et,zt)}),Ct))))});const ft=(0,C.forwardRef)((M,c)=>{const d=(0,C.useRef)(null),o=C.useContext(T.D);return(0,C.useImperativeHandle)(c,()=>({menu:d.current,focus:m=>{var R;(R=d.current)===null||R===void 0||R.focus(m)}})),C.createElement(Zt,Object.assign({ref:d},M,o))});ft.Item=N,ft.SubMenu=w,ft.Divider=u,ft.ItemGroup=s.BW;var Re=ft},46303:function(qe,he,l){"use strict";l.d(he,{Z:function(){return M}});var s=l(94184),C=l.n(s),T=l(67294),k=l(53124),A=l(10366),q=c=>{const{prefixCls:d,className:o,style:m,size:R,shape:h}=c,_=C()({[`${d}-lg`]:R==="large",[`${d}-sm`]:R==="small"}),E=C()({[`${d}-circle`]:h==="circle",[`${d}-square`]:h==="square",[`${d}-round`]:h==="round"}),a=T.useMemo(()=>typeof R=="number"?{width:R,height:R,lineHeight:`${R}px`}:{},[R]);return T.createElement("span",{className:C()(d,_,E,o),style:Object.assign(Object.assign({},a),m)})},te=l(34367),u=l(67968),P=l(45503);const ne=new te.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),X=c=>({height:c,lineHeight:`${c}px`}),L=c=>Object.assign({width:c},X(c)),H=c=>({background:c.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ne,animationDuration:c.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),fe=c=>Object.assign({width:c*5,minWidth:c*5},X(c)),se=c=>{const{skeletonAvatarCls:d,gradientFromColor:o,controlHeight:m,controlHeightLG:R,controlHeightSM:h}=c;return{[`${d}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:o},L(m)),[`${d}${d}-circle`]:{borderRadius:"50%"},[`${d}${d}-lg`]:Object.assign({},L(R)),[`${d}${d}-sm`]:Object.assign({},L(h))}},N=c=>{const{controlHeight:d,borderRadiusSM:o,skeletonInputCls:m,controlHeightLG:R,controlHeightSM:h,gradientFromColor:_}=c;return{[`${m}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_,borderRadius:o},fe(d)),[`${m}-lg`]:Object.assign({},fe(R)),[`${m}-sm`]:Object.assign({},fe(h))}},x=c=>Object.assign({width:c},X(c)),w=c=>{const{skeletonImageCls:d,imageSizeBase:o,gradientFromColor:m,borderRadiusSM:R}=c;return{[`${d}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:m,borderRadius:R},x(o*2)),{[`${d}-path`]:{fill:"#bfbfbf"},[`${d}-svg`]:Object.assign(Object.assign({},x(o)),{maxWidth:o*4,maxHeight:o*4}),[`${d}-svg${d}-svg-circle`]:{borderRadius:"50%"}}),[`${d}${d}-circle`]:{borderRadius:"50%"}}},S=(c,d,o)=>{const{skeletonButtonCls:m}=c;return{[`${o}${m}-circle`]:{width:d,minWidth:d,borderRadius:"50%"},[`${o}${m}-round`]:{borderRadius:d}}},F=c=>Object.assign({width:c*2,minWidth:c*2},X(c)),v=c=>{const{borderRadiusSM:d,skeletonButtonCls:o,controlHeight:m,controlHeightLG:R,controlHeightSM:h,gradientFromColor:_}=c;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${o}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_,borderRadius:d,width:m*2,minWidth:m*2},F(m))},S(c,m,o)),{[`${o}-lg`]:Object.assign({},F(R))}),S(c,R,`${o}-lg`)),{[`${o}-sm`]:Object.assign({},F(h))}),S(c,h,`${o}-sm`))},B=c=>{const{componentCls:d,skeletonAvatarCls:o,skeletonTitleCls:m,skeletonParagraphCls:R,skeletonButtonCls:h,skeletonInputCls:_,skeletonImageCls:E,controlHeight:a,controlHeightLG:z,controlHeightSM:W,gradientFromColor:ae,padding:pe,marginSM:de,borderRadius:ce,titleHeight:oe,blockRadius:Ue,paragraphLiHeight:$e,controlHeightXS:et,paragraphMarginTop:K}=c;return{[`${d}`]:{display:"table",width:"100%",[`${d}-header`]:{display:"table-cell",paddingInlineEnd:pe,verticalAlign:"top",[`${o}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ae},L(a)),[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:Object.assign({},L(z)),[`${o}-sm`]:Object.assign({},L(W))},[`${d}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${m}`]:{width:"100%",height:oe,background:ae,borderRadius:Ue,[`+ ${R}`]:{marginBlockStart:W}},[`${R}`]:{padding:0,"> li":{width:"100%",height:$e,listStyle:"none",background:ae,borderRadius:Ue,"+ li":{marginBlockStart:et}}},[`${R}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${d}-content`]:{[`${m}, ${R} > li`]:{borderRadius:ce}}},[`${d}-with-avatar ${d}-content`]:{[`${m}`]:{marginBlockStart:de,[`+ ${R}`]:{marginBlockStart:K}}},[`${d}${d}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},v(c)),se(c)),N(c)),w(c)),[`${d}${d}-block`]:{width:"100%",[`${h}`]:{width:"100%"},[`${_}`]:{width:"100%"}},[`${d}${d}-active`]:{[`
|
|
${m},
|
|
${R} > li,
|
|
${o},
|
|
${h},
|
|
${_},
|
|
${E}
|
|
`]:Object.assign({},H(c))}}};var V=(0,u.Z)("Skeleton",c=>{const{componentCls:d}=c,o=(0,P.TS)(c,{skeletonAvatarCls:`${d}-avatar`,skeletonTitleCls:`${d}-title`,skeletonParagraphCls:`${d}-paragraph`,skeletonButtonCls:`${d}-button`,skeletonInputCls:`${d}-input`,skeletonImageCls:`${d}-image`,imageSizeBase:c.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${c.gradientFromColor} 25%, ${c.gradientToColor} 37%, ${c.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[B(o)]},c=>{const{colorFillContent:d,colorFill:o}=c,m=d,R=o;return{color:m,colorGradientEnd:R,gradientFromColor:m,gradientToColor:R,titleHeight:c.controlHeight/2,blockRadius:c.borderRadiusSM,paragraphMarginTop:c.marginLG+c.marginXXS,paragraphLiHeight:c.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),J=c=>{const{prefixCls:d,className:o,rootClassName:m,active:R,shape:h="circle",size:_="default"}=c,{getPrefixCls:E}=T.useContext(k.E_),a=E("skeleton",d),[z,W]=V(a),ae=(0,A.Z)(c,["prefixCls","className"]),pe=C()(a,`${a}-element`,{[`${a}-active`]:R},o,m,W);return z(T.createElement("div",{className:pe},T.createElement(q,Object.assign({prefixCls:`${a}-avatar`,shape:h,size:_},ae))))},Ae=c=>{const{prefixCls:d,className:o,rootClassName:m,active:R,block:h=!1,size:_="default"}=c,{getPrefixCls:E}=T.useContext(k.E_),a=E("skeleton",d),[z,W]=V(a),ae=(0,A.Z)(c,["prefixCls"]),pe=C()(a,`${a}-element`,{[`${a}-active`]:R,[`${a}-block`]:h},o,m,W);return z(T.createElement("div",{className:pe},T.createElement(q,Object.assign({prefixCls:`${a}-button`,size:_},ae))))};const ke="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 Fe=c=>{const{prefixCls:d,className:o,rootClassName:m,style:R,active:h}=c,{getPrefixCls:_}=T.useContext(k.E_),E=_("skeleton",d),[a,z]=V(E),W=C()(E,`${E}-element`,{[`${E}-active`]:h},o,m,z);return a(T.createElement("div",{className:W},T.createElement("div",{className:C()(`${E}-image`,o),style:R},T.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${E}-image-svg`},T.createElement("path",{d:ke,className:`${E}-image-path`})))))},We=c=>{const{prefixCls:d,className:o,rootClassName:m,active:R,block:h,size:_="default"}=c,{getPrefixCls:E}=T.useContext(k.E_),a=E("skeleton",d),[z,W]=V(a),ae=(0,A.Z)(c,["prefixCls"]),pe=C()(a,`${a}-element`,{[`${a}-active`]:R,[`${a}-block`]:h},o,m,W);return z(T.createElement("div",{className:pe},T.createElement(q,Object.assign({prefixCls:`${a}-input`,size:_},ae))))},j=l(87462),vt={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"},dt=vt,Be=l(84089),ve=function(d,o){return T.createElement(Be.Z,(0,j.Z)({},d,{ref:o,icon:dt}))},Ke=T.forwardRef(ve),be=c=>{const{prefixCls:d,className:o,rootClassName:m,style:R,active:h,children:_}=c,{getPrefixCls:E}=T.useContext(k.E_),a=E("skeleton",d),[z,W]=V(a),ae=C()(a,`${a}-element`,{[`${a}-active`]:h},W,o,m),pe=_!=null?_:T.createElement(Ke,null);return z(T.createElement("div",{className:ae},T.createElement("div",{className:C()(`${a}-image`,o),style:R},pe)))},we=l(74902),at=c=>{const d=E=>{const{width:a,rows:z=2}=c;if(Array.isArray(a))return a[E];if(z-1===E)return a},{prefixCls:o,className:m,style:R,rows:h}=c,_=(0,we.Z)(Array(h)).map((E,a)=>T.createElement("li",{key:a,style:{width:d(a)}}));return T.createElement("ul",{className:C()(o,m),style:R},_)},Kt=c=>{let{prefixCls:d,className:o,width:m,style:R}=c;return T.createElement("h3",{className:C()(d,o),style:Object.assign({width:m},R)})};function ct(c){return c&&typeof c=="object"?c:{}}function ot(c,d){return c&&!d?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ht(c,d){return!c&&d?{width:"38%"}:c&&d?{width:"50%"}:{}}function Zt(c,d){const o={};return(!c||!d)&&(o.width="61%"),!c&&d?o.rows=3:o.rows=2,o}const ft=c=>{const{prefixCls:d,loading:o,className:m,rootClassName:R,style:h,children:_,avatar:E=!1,title:a=!0,paragraph:z=!0,active:W,round:ae}=c,{getPrefixCls:pe,direction:de,skeleton:ce}=T.useContext(k.E_),oe=pe("skeleton",d),[Ue,$e]=V(oe);if(o||!("loading"in c)){const et=!!E,K=!!a,Et=!!z;let St;if(et){const lt=Object.assign(Object.assign({prefixCls:`${oe}-avatar`},ot(K,Et)),ct(E));St=T.createElement("div",{className:`${oe}-header`},T.createElement(q,Object.assign({},lt)))}let wt;if(K||Et){let lt;if(K){const Rt=Object.assign(Object.assign({prefixCls:`${oe}-title`},ht(et,Et)),ct(a));lt=T.createElement(Kt,Object.assign({},Rt))}let At;if(Et){const Rt=Object.assign(Object.assign({prefixCls:`${oe}-paragraph`},Zt(et,K)),ct(z));At=T.createElement(at,Object.assign({},Rt))}wt=T.createElement("div",{className:`${oe}-content`},lt,At)}const Ye=C()(oe,{[`${oe}-with-avatar`]:et,[`${oe}-active`]:W,[`${oe}-rtl`]:de==="rtl",[`${oe}-round`]:ae},ce==null?void 0:ce.className,m,R,$e);return Ue(T.createElement("div",{className:Ye,style:Object.assign(Object.assign({},ce==null?void 0:ce.style),h)},St,wt))}return typeof _!="undefined"?_:null};ft.Button=Ae,ft.Avatar=J,ft.Input=We,ft.Image=Fe,ft.Node=be;var Re=ft,M=Re},33507:function(qe,he){"use strict";const l=s=>({[s.componentCls]:{[`${s.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${s.motionDurationMid} ${s.motionEaseInOut},
|
|
opacity ${s.motionDurationMid} ${s.motionEaseInOut} !important`}},[`${s.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${s.motionDurationMid} ${s.motionEaseInOut},
|
|
opacity ${s.motionDurationMid} ${s.motionEaseInOut} !important`}}});he.Z=l},33297:function(qe,he,l){"use strict";l.d(he,{Fm:function(){return X}});var s=l(34367),C=l(93590);const T=new s.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),k=new s.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),A=new s.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 s.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),q=new s.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),te=new s.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 s.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P=new s.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ne={"move-up":{inKeyframes:u,outKeyframes:P},"move-down":{inKeyframes:T,outKeyframes:k},"move-left":{inKeyframes:A,outKeyframes:g},"move-right":{inKeyframes:q,outKeyframes:te}},X=(L,H)=>{const{antCls:fe}=L,se=`${fe}-${H}`,{inKeyframes:N,outKeyframes:x}=ne[H];return[(0,C.R)(se,N,x,L.motionDurationMid),{[`
|
|
${se}-enter,
|
|
${se}-appear
|
|
`]:{opacity:0,animationTimingFunction:L.motionEaseOutCirc},[`${se}-leave`]:{animationTimingFunction:L.motionEaseInOutCirc}}]}},67771:function(qe,he,l){"use strict";l.d(he,{Qt:function(){return A},Uw:function(){return k},fJ:function(){return T},ly:function(){return g},oN:function(){return X}});var s=l(34367),C=l(93590);const T=new s.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),k=new s.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),A=new s.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),g=new s.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),q=new s.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),te=new s.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),u=new s.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),P=new s.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ne={"slide-up":{inKeyframes:T,outKeyframes:k},"slide-down":{inKeyframes:A,outKeyframes:g},"slide-left":{inKeyframes:q,outKeyframes:te},"slide-right":{inKeyframes:u,outKeyframes:P}},X=(L,H)=>{const{antCls:fe}=L,se=`${fe}-${H}`,{inKeyframes:N,outKeyframes:x}=ne[H];return[(0,C.R)(se,N,x,L.motionDurationMid),{[`
|
|
${se}-enter,
|
|
${se}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:L.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${se}-leave`]:{animationTimingFunction:L.motionEaseInQuint}}]}},72665:function(qe,he){"use strict";var l;var s=typeof Symbol=="function"&&Symbol.for,C=s?Symbol.for("react.element"):60103,T=s?Symbol.for("react.portal"):60106,k=s?Symbol.for("react.fragment"):60107,A=s?Symbol.for("react.strict_mode"):60108,g=s?Symbol.for("react.profiler"):60114,q=s?Symbol.for("react.provider"):60109,te=s?Symbol.for("react.context"):60110,u=s?Symbol.for("react.async_mode"):60111,P=s?Symbol.for("react.concurrent_mode"):60111,ne=s?Symbol.for("react.forward_ref"):60112,X=s?Symbol.for("react.suspense"):60113,L=s?Symbol.for("react.suspense_list"):60120,H=s?Symbol.for("react.memo"):60115,fe=s?Symbol.for("react.lazy"):60116,se=s?Symbol.for("react.block"):60121,N=s?Symbol.for("react.fundamental"):60117,x=s?Symbol.for("react.responder"):60118,w=s?Symbol.for("react.scope"):60119;function S(v){if(typeof v=="object"&&v!==null){var B=v.$$typeof;switch(B){case C:switch(v=v.type,v){case u:case P:case k:case g:case A:case X:return v;default:switch(v=v&&v.$$typeof,v){case te:case ne:case fe:case H:case q:return v;default:return B}}case T:return B}}}function F(v){return S(v)===P}l=u,l=P,l=te,l=q,l=C,l=ne,l=k,l=fe,l=H,l=T,l=g,l=A,l=X,l=function(v){return F(v)||S(v)===u},l=F,l=function(v){return S(v)===te},l=function(v){return S(v)===q},l=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===C},l=function(v){return S(v)===ne},l=function(v){return S(v)===k},l=function(v){return S(v)===fe},he.isMemo=function(v){return S(v)===H},l=function(v){return S(v)===T},l=function(v){return S(v)===g},l=function(v){return S(v)===A},l=function(v){return S(v)===X},l=function(v){return typeof v=="string"||typeof v=="function"||v===k||v===P||v===g||v===A||v===X||v===L||typeof v=="object"&&v!==null&&(v.$$typeof===fe||v.$$typeof===H||v.$$typeof===q||v.$$typeof===te||v.$$typeof===ne||v.$$typeof===N||v.$$typeof===x||v.$$typeof===w||v.$$typeof===se)},l=S},12060:function(qe,he,l){"use strict";qe.exports=l(72665)},82702:function(qe,he,l){var s=l(34155);(function(C,T){qe.exports=T()})(this,function(){"use strict";function C(h){var _=typeof h;return h!==null&&(_==="object"||_==="function")}function T(h){return typeof h=="function"}var k=void 0;Array.isArray?k=Array.isArray:k=function(h){return Object.prototype.toString.call(h)==="[object Array]"};var A=k,g=0,q=void 0,te=void 0,u=function(_,E){v[g]=_,v[g+1]=E,g+=2,g===2&&(te?te(B):$())};function P(h){te=h}function ne(h){u=h}var X=typeof window!="undefined"?window:void 0,L=X||{},H=L.MutationObserver||L.WebKitMutationObserver,fe=typeof self=="undefined"&&typeof s!="undefined"&&{}.toString.call(s)==="[object process]",se=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function N(){return function(){return s.nextTick(B)}}function x(){return typeof q!="undefined"?function(){q(B)}:F()}function w(){var h=0,_=new H(B),E=document.createTextNode("");return _.observe(E,{characterData:!0}),function(){E.data=h=++h%2}}function S(){var h=new MessageChannel;return h.port1.onmessage=B,function(){return h.port2.postMessage(0)}}function F(){var h=setTimeout;return function(){return h(B,1)}}var v=new Array(1e3);function B(){for(var h=0;h<g;h+=2){var _=v[h],E=v[h+1];_(E),v[h]=void 0,v[h+1]=void 0}g=0}function V(){try{var h=Function("return this")().require("vertx");return q=h.runOnLoop||h.runOnContext,x()}catch(_){return F()}}var $=void 0;fe?$=N():H?$=w():se?$=S():X===void 0?$=V():$=F();function J(h,_){var E=this,a=new this.constructor(ke);a[Ae]===void 0&&ht(a);var z=E._state;if(z){var W=arguments[z-1];u(function(){return _t(z,a,W,E._result)})}else It(E,a,h,_);return a}function me(h){var _=this;if(h&&typeof h=="object"&&h.constructor===_)return h;var E=new _(ke);return Ke(E,h),E}var Ae=Math.random().toString(36).substring(2);function ke(){}var je=void 0,Fe=1,xe=2;function We(){return new TypeError("You cannot resolve a promise with itself")}function j(){return new TypeError("A promises callback cannot return that same promise.")}function vt(h,_,E,a){try{h.call(_,E,a)}catch(z){return z}}function dt(h,_,E){u(function(a){var z=!1,W=vt(E,_,function(ae){z||(z=!0,_!==ae?Ke(a,ae):be(a,ae))},function(ae){z||(z=!0,we(a,ae))},"Settle: "+(a._label||" unknown promise"));!z&&W&&(z=!0,we(a,W))},h)}function Be(h,_){_._state===Fe?be(h,_._result):_._state===xe?we(h,_._result):It(_,void 0,function(E){return Ke(h,E)},function(E){return we(h,E)})}function ve(h,_,E){_.constructor===h.constructor&&E===J&&_.constructor.resolve===me?Be(h,_):E===void 0?be(h,_):T(E)?dt(h,_,E):be(h,_)}function Ke(h,_){if(h===_)we(h,We());else if(C(_)){var E=void 0;try{E=_.then}catch(a){we(h,a);return}ve(h,_,E)}else be(h,_)}function Oe(h){h._onerror&&h._onerror(h._result),at(h)}function be(h,_){h._state===je&&(h._result=_,h._state=Fe,h._subscribers.length!==0&&u(at,h))}function we(h,_){h._state===je&&(h._state=xe,h._result=_,u(Oe,h))}function It(h,_,E,a){var z=h._subscribers,W=z.length;h._onerror=null,z[W]=_,z[W+Fe]=E,z[W+xe]=a,W===0&&h._state&&u(at,h)}function at(h){var _=h._subscribers,E=h._state;if(_.length!==0){for(var a=void 0,z=void 0,W=h._result,ae=0;ae<_.length;ae+=3)a=_[ae],z=_[ae+E],a?_t(E,a,z,W):z(W);h._subscribers.length=0}}function _t(h,_,E,a){var z=T(E),W=void 0,ae=void 0,pe=!0;if(z){try{W=E(a)}catch(de){pe=!1,ae=de}if(_===W){we(_,j());return}}else W=a;_._state!==je||(z&&pe?Ke(_,W):pe===!1?we(_,ae):h===Fe?be(_,W):h===xe&&we(_,W))}function Kt(h,_){try{_(function(a){Ke(h,a)},function(a){we(h,a)})}catch(E){we(h,E)}}var ct=0;function ot(){return ct++}function ht(h){h[Ae]=ct++,h._state=void 0,h._result=void 0,h._subscribers=[]}function Zt(){return new Error("Array Methods must be provided an Array")}var ft=function(){function h(_,E){this._instanceConstructor=_,this.promise=new _(ke),this.promise[Ae]||ht(this.promise),A(E)?(this.length=E.length,this._remaining=E.length,this._result=new Array(this.length),this.length===0?be(this.promise,this._result):(this.length=this.length||0,this._enumerate(E),this._remaining===0&&be(this.promise,this._result))):we(this.promise,Zt())}return h.prototype._enumerate=function(E){for(var a=0;this._state===je&&a<E.length;a++)this._eachEntry(E[a],a)},h.prototype._eachEntry=function(E,a){var z=this._instanceConstructor,W=z.resolve;if(W===me){var ae=void 0,pe=void 0,de=!1;try{ae=E.then}catch(oe){de=!0,pe=oe}if(ae===J&&E._state!==je)this._settledAt(E._state,a,E._result);else if(typeof ae!="function")this._remaining--,this._result[a]=E;else if(z===m){var ce=new z(ke);de?we(ce,pe):ve(ce,E,ae),this._willSettleAt(ce,a)}else this._willSettleAt(new z(function(oe){return oe(E)}),a)}else this._willSettleAt(W(E),a)},h.prototype._settledAt=function(E,a,z){var W=this.promise;W._state===je&&(this._remaining--,E===xe?we(W,z):this._result[a]=z),this._remaining===0&&be(W,this._result)},h.prototype._willSettleAt=function(E,a){var z=this;It(E,void 0,function(W){return z._settledAt(Fe,a,W)},function(W){return z._settledAt(xe,a,W)})},h}();function Re(h){return new ft(this,h).promise}function M(h){var _=this;return A(h)?new _(function(E,a){for(var z=h.length,W=0;W<z;W++)_.resolve(h[W]).then(E,a)}):new _(function(E,a){return a(new TypeError("You must pass an array to race."))})}function c(h){var _=this,E=new _(ke);return we(E,h),E}function d(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function o(){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 h(_){this[Ae]=ot(),this._result=this._state=void 0,this._subscribers=[],ke!==_&&(typeof _!="function"&&d(),this instanceof h?Kt(this,_):o())}return h.prototype.catch=function(E){return this.then(null,E)},h.prototype.finally=function(E){var a=this,z=a.constructor;return T(E)?a.then(function(W){return z.resolve(E()).then(function(){return W})},function(W){return z.resolve(E()).then(function(){throw W})}):a.then(E,E)},h}();m.prototype.then=J,m.all=Re,m.race=M,m.resolve=me,m.reject=c,m._setScheduler=P,m._setAsap=ne,m._asap=u;function R(){var h=void 0;if(typeof l.g!="undefined")h=l.g;else if(typeof self!="undefined")h=self;else try{h=Function("return this")()}catch(a){throw new Error("polyfill failed because global object is unavailable in this environment")}var _=h.Promise;if(_){var E=null;try{E=Object.prototype.toString.call(_.resolve())}catch(a){}if(E==="[object Promise]"&&!_.cast)return}h.Promise=m}return m.polyfill=R,m.Promise=m,m})},17187:function(qe){"use strict";var he=typeof Reflect=="object"?Reflect:null,l=he&&typeof he.apply=="function"?he.apply:function(S,F,v){return Function.prototype.apply.call(S,F,v)},s;he&&typeof he.ownKeys=="function"?s=he.ownKeys:Object.getOwnPropertySymbols?s=function(S){return Object.getOwnPropertyNames(S).concat(Object.getOwnPropertySymbols(S))}:s=function(S){return Object.getOwnPropertyNames(S)};function C(w){console&&console.warn&&console.warn(w)}var T=Number.isNaN||function(S){return S!==S};function k(){k.init.call(this)}qe.exports=k,qe.exports.once=se,k.EventEmitter=k,k.prototype._events=void 0,k.prototype._eventsCount=0,k.prototype._maxListeners=void 0;var A=10;function g(w){if(typeof w!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof w)}Object.defineProperty(k,"defaultMaxListeners",{enumerable:!0,get:function(){return A},set:function(w){if(typeof w!="number"||w<0||T(w))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+w+".");A=w}}),k.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},k.prototype.setMaxListeners=function(S){if(typeof S!="number"||S<0||T(S))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+S+".");return this._maxListeners=S,this};function q(w){return w._maxListeners===void 0?k.defaultMaxListeners:w._maxListeners}k.prototype.getMaxListeners=function(){return q(this)},k.prototype.emit=function(S){for(var F=[],v=1;v<arguments.length;v++)F.push(arguments[v]);var B=S==="error",V=this._events;if(V!==void 0)B=B&&V.error===void 0;else if(!B)return!1;if(B){var $;if(F.length>0&&($=F[0]),$ instanceof Error)throw $;var J=new Error("Unhandled error."+($?" ("+$.message+")":""));throw J.context=$,J}var me=V[S];if(me===void 0)return!1;if(typeof me=="function")l(me,this,F);else for(var Ae=me.length,ke=L(me,Ae),v=0;v<Ae;++v)l(ke[v],this,F);return!0};function te(w,S,F,v){var B,V,$;if(g(F),V=w._events,V===void 0?(V=w._events=Object.create(null),w._eventsCount=0):(V.newListener!==void 0&&(w.emit("newListener",S,F.listener?F.listener:F),V=w._events),$=V[S]),$===void 0)$=V[S]=F,++w._eventsCount;else if(typeof $=="function"?$=V[S]=v?[F,$]:[$,F]:v?$.unshift(F):$.push(F),B=q(w),B>0&&$.length>B&&!$.warned){$.warned=!0;var J=new Error("Possible EventEmitter memory leak detected. "+$.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");J.name="MaxListenersExceededWarning",J.emitter=w,J.type=S,J.count=$.length,C(J)}return w}k.prototype.addListener=function(S,F){return te(this,S,F,!1)},k.prototype.on=k.prototype.addListener,k.prototype.prependListener=function(S,F){return te(this,S,F,!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 P(w,S,F){var v={fired:!1,wrapFn:void 0,target:w,type:S,listener:F},B=u.bind(v);return B.listener=F,v.wrapFn=B,B}k.prototype.once=function(S,F){return g(F),this.on(S,P(this,S,F)),this},k.prototype.prependOnceListener=function(S,F){return g(F),this.prependListener(S,P(this,S,F)),this},k.prototype.removeListener=function(S,F){var v,B,V,$,J;if(g(F),B=this._events,B===void 0)return this;if(v=B[S],v===void 0)return this;if(v===F||v.listener===F)--this._eventsCount===0?this._events=Object.create(null):(delete B[S],B.removeListener&&this.emit("removeListener",S,v.listener||F));else if(typeof v!="function"){for(V=-1,$=v.length-1;$>=0;$--)if(v[$]===F||v[$].listener===F){J=v[$].listener,V=$;break}if(V<0)return this;V===0?v.shift():H(v,V),v.length===1&&(B[S]=v[0]),B.removeListener!==void 0&&this.emit("removeListener",S,J||F)}return this},k.prototype.off=k.prototype.removeListener,k.prototype.removeAllListeners=function(S){var F,v,B;if(v=this._events,v===void 0)return this;if(v.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):v[S]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete v[S]),this;if(arguments.length===0){var V=Object.keys(v),$;for(B=0;B<V.length;++B)$=V[B],$!=="removeListener"&&this.removeAllListeners($);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(F=v[S],typeof F=="function")this.removeListener(S,F);else if(F!==void 0)for(B=F.length-1;B>=0;B--)this.removeListener(S,F[B]);return this};function ne(w,S,F){var v=w._events;if(v===void 0)return[];var B=v[S];return B===void 0?[]:typeof B=="function"?F?[B.listener||B]:[B]:F?fe(B):L(B,B.length)}k.prototype.listeners=function(S){return ne(this,S,!0)},k.prototype.rawListeners=function(S){return ne(this,S,!1)},k.listenerCount=function(w,S){return typeof w.listenerCount=="function"?w.listenerCount(S):X.call(w,S)},k.prototype.listenerCount=X;function X(w){var S=this._events;if(S!==void 0){var F=S[w];if(typeof F=="function")return 1;if(F!==void 0)return F.length}return 0}k.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]};function L(w,S){for(var F=new Array(S),v=0;v<S;++v)F[v]=w[v];return F}function H(w,S){for(;S+1<w.length;S++)w[S]=w[S+1];w.pop()}function fe(w){for(var S=new Array(w.length),F=0;F<S.length;++F)S[F]=w[F].listener||w[F];return S}function se(w,S){return new Promise(function(F,v){function B($){w.removeListener(S,V),v($)}function V(){typeof w.removeListener=="function"&&w.removeListener("error",B),F([].slice.call(arguments))}x(w,S,V,{once:!0}),S!=="error"&&N(w,B,{once:!0})})}function N(w,S,F){typeof w.on=="function"&&x(w,"error",S,F)}function x(w,S,F,v){if(typeof w.on=="function")v.once?w.once(S,F):w.on(S,F);else if(typeof w.addEventListener=="function")w.addEventListener(S,function B(V){v.once&&w.removeEventListener(S,B),F(V)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof w)}},78595:function(qe,he,l){"use strict";l.d(he,{iz:function(){return wi},ck:function(){return it},BW:function(){return xi},sN:function(){return it},Wd:function(){return Ei},ZP:function(){return Xi},Xl:function(){return z}});var s=l(87462),C=l(4942),T=l(1413),k=l(74902),A=l(97685),g=l(45987),q=l(94184),te=l.n(q),u=l(67294),P=l(48555);function ne(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var X=ne()?u.useLayoutEffect:u.useEffect,L=function(b,O){var D=u.useRef(!0);X(function(){return b(D.current)},O),X(function(){return D.current=!1,function(){D.current=!0}},[])},H=function(b,O){L(function(D){if(!D)return b()},O)},fe=L,se=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],N=void 0;function x(p,b){var O=p.prefixCls,D=p.invalidate,I=p.item,Z=p.renderItem,U=p.responsive,ge=p.responsiveDisabled,Ie=p.registerSize,Ce=p.itemKey,Qe=p.className,Ze=p.style,mt=p.children,pt=p.display,ze=p.order,ut=p.component,gt=ut===void 0?"div":ut,yt=(0,g.Z)(p,se),He=U&&!pt;function Xe(st){Ie(Ce,st)}u.useEffect(function(){return function(){Xe(null)}},[]);var Pe=Z&&I!==N?Z(I):mt,Je;D||(Je={opacity:He?0:1,height:He?0:N,overflowY:He?"hidden":N,order:U?ze:N,pointerEvents:He?"none":N,position:He?"absolute":N});var rt={};He&&(rt["aria-hidden"]=!0);var Ot=u.createElement(gt,(0,s.Z)({className:te()(!D&&O,Qe),style:(0,T.Z)((0,T.Z)({},Je),Ze)},rt,yt,{ref:b}),Pe);return U&&(Ot=u.createElement(P.Z,{onResize:function(sn){var xt=sn.offsetWidth;Xe(xt)},disabled:ge},Ot)),Ot}var w=u.forwardRef(x);w.displayName="Item";var S=w;function F(p){var b=u.useRef();b.current=p;var O=u.useCallback(function(){for(var D,I=arguments.length,Z=new Array(I),U=0;U<I;U++)Z[U]=arguments[U];return(D=b.current)===null||D===void 0?void 0:D.call.apply(D,[b].concat(Z))},[]);return O}var v=l(73935),B=function(b){return+setTimeout(b,16)},V=function(b){return clearTimeout(b)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(B=function(b){return window.requestAnimationFrame(b)},V=function(b){return window.cancelAnimationFrame(b)});var $=0,J=new Map;function me(p){J.delete(p)}var Ae=function(b){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;$+=1;var D=$;function I(Z){if(Z===0)me(D),b();else{var U=B(function(){I(Z-1)});J.set(D,U)}}return I(O),D};Ae.cancel=function(p){var b=J.get(p);return me(b),V(b)};var ke=Ae;function je(p){if(typeof MessageChannel=="undefined")ke(p);else{var b=new MessageChannel;b.port1.onmessage=function(){return p()},b.port2.postMessage(void 0)}}function Fe(){var p=u.useRef(null),b=function(D){p.current||(p.current=[],je(function(){(0,v.unstable_batchedUpdates)(function(){p.current.forEach(function(I){I()}),p.current=null})})),p.current.push(D)};return b}function xe(p,b){var O=u.useState(b),D=(0,A.Z)(O,2),I=D[0],Z=D[1],U=F(function(ge){p(function(){Z(ge)})});return[I,U]}var We=u.createContext(null),j=["component"],vt=["className"],dt=["className"],Be=function(b,O){var D=u.useContext(We);if(!D){var I=b.component,Z=I===void 0?"div":I,U=(0,g.Z)(b,j);return u.createElement(Z,(0,s.Z)({},U,{ref:O}))}var ge=D.className,Ie=(0,g.Z)(D,vt),Ce=b.className,Qe=(0,g.Z)(b,dt);return u.createElement(We.Provider,{value:null},u.createElement(S,(0,s.Z)({ref:O,className:te()(ge,Ce)},Ie,Qe)))},ve=u.forwardRef(Be);ve.displayName="RawItem";var Ke=ve,Oe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],be="responsive",we="invalidate";function It(p){return"+ ".concat(p.length," ...")}function at(p,b){var O=p.prefixCls,D=O===void 0?"rc-overflow":O,I=p.data,Z=I===void 0?[]:I,U=p.renderItem,ge=p.renderRawItem,Ie=p.itemKey,Ce=p.itemWidth,Qe=Ce===void 0?10:Ce,Ze=p.ssr,mt=p.style,pt=p.className,ze=p.maxCount,ut=p.renderRest,gt=p.renderRawRest,yt=p.suffix,He=p.component,Xe=He===void 0?"div":He,Pe=p.itemComponent,Je=p.onVisibleChange,rt=(0,g.Z)(p,Oe),Ot=Ze==="full",st=Fe(),sn=xe(st,null),xt=(0,A.Z)(sn,2),an=xt[0],tn=xt[1],$t=an||0,ln=xe(st,new Map),Pt=(0,A.Z)(ln,2),Jt=Pt[0],Yt=Pt[1],xn=xe(st,0),Dn=(0,A.Z)(xn,2),Bn=Dn[0],Tn=Dn[1],kn=xe(st,0),wn=(0,A.Z)(kn,2),En=wn[0],Fn=wn[1],on=xe(st,0),un=(0,A.Z)(on,2),An=un[0],Mn=un[1],Nn=(0,u.useState)(null),qt=(0,A.Z)(Nn,2),hn=qt[0],Rn=qt[1],ni=(0,u.useState)(null),$n=(0,A.Z)(ni,2),yn=$n[0],ci=$n[1],Pn=u.useMemo(function(){return yn===null&&Ot?Number.MAX_SAFE_INTEGER:yn||0},[yn,an]),hi=(0,u.useState)(!1),Zn=(0,A.Z)(hi,2),ii=Zn[0],ri=Zn[1],fn="".concat(D,"-item"),si=Math.max(Bn,En),Un=ze===be,mn=Z.length&&Un,ai=ze===we,Hn=mn||typeof ze=="number"&&Z.length>ze,vn=(0,u.useMemo)(function(){var Ne=Z;return mn?an===null&&Ot?Ne=Z:Ne=Z.slice(0,Math.min(Z.length,$t/Qe)):typeof ze=="number"&&(Ne=Z.slice(0,ze)),Ne},[Z,Qe,an,ze,mn]),zn=(0,u.useMemo)(function(){return mn?Z.slice(Pn+1):Z.slice(vn.length)},[Z,vn,mn,Pn]),Ln=(0,u.useCallback)(function(Ne,Ve){var Gt;return typeof Ie=="function"?Ie(Ne):(Gt=Ie&&(Ne==null?void 0:Ne[Ie]))!==null&&Gt!==void 0?Gt:Ve},[Ie]),Vn=(0,u.useCallback)(U||function(Ne){return Ne},[U]);function nn(Ne,Ve,Gt){yn===Ne&&(Ve===void 0||Ve===hn)||(ci(Ne),Gt||(ri(Ne<Z.length-1),Je==null||Je(Ne)),Ve!==void 0&&Rn(Ve))}function Gn(Ne,Ve){tn(Ve.clientWidth)}function On(Ne,Ve){Yt(function(Gt){var Sn=new Map(Gt);return Ve===null?Sn.delete(Ne):Sn.set(Ne,Ve),Sn})}function bn(Ne,Ve){Fn(Ve),Tn(En)}function pn(Ne,Ve){Mn(Ve)}function fi(Ne){return Jt.get(Ln(vn[Ne],Ne))}fe(function(){if($t&&typeof si=="number"&&vn){var Ne=An,Ve=vn.length,Gt=Ve-1;if(!Ve){nn(0,null);return}for(var Sn=0;Sn<Ve;Sn+=1){var Xn=fi(Sn);if(Ot&&(Xn=Xn||0),Xn===void 0){nn(Sn-1,void 0,!0);break}if(Ne+=Xn,Gt===0&&Ne<=$t||Sn===Gt-1&&Ne+fi(Gt)<=$t){nn(Gt,null);break}else if(Ne+si>$t){nn(Sn-1,Ne-Xn-An+En);break}}yt&&fi(0)+An>$t&&Rn(null)}},[$t,Jt,En,An,Ln,vn]);var yi=ii&&!!zn.length,oi={};hn!==null&&mn&&(oi={position:"absolute",left:hn,top:0});var Jn={prefixCls:fn,responsive:mn,component:Pe,invalidate:ai},bi=ge?function(Ne,Ve){var Gt=Ln(Ne,Ve);return u.createElement(We.Provider,{key:Gt,value:(0,T.Z)((0,T.Z)({},Jn),{},{order:Ve,item:Ne,itemKey:Gt,registerSize:On,display:Ve<=Pn})},ge(Ne,Ve))}:function(Ne,Ve){var Gt=Ln(Ne,Ve);return u.createElement(S,(0,s.Z)({},Jn,{order:Ve,key:Gt,item:Ne,renderItem:Vn,itemKey:Gt,registerSize:On,display:Ve<=Pn}))},Wn,li={order:yi?Pn:Number.MAX_SAFE_INTEGER,className:"".concat(fn,"-rest"),registerSize:bn,display:yi};if(gt)gt&&(Wn=u.createElement(We.Provider,{value:(0,T.Z)((0,T.Z)({},Jn),li)},gt(zn)));else{var ui=ut||It;Wn=u.createElement(S,(0,s.Z)({},Jn,li),typeof ui=="function"?ui(zn):ui)}var mi=u.createElement(Xe,(0,s.Z)({className:te()(!ai&&D,pt),style:mt,ref:b},rt),vn.map(bi),Hn?Wn:null,yt&&u.createElement(S,(0,s.Z)({},Jn,{responsive:Un,responsiveDisabled:!mn,order:Pn,className:"".concat(fn,"-suffix"),registerSize:pn,display:!0,style:oi}),yt));return Un&&(mi=u.createElement(P.Z,{onResize:Gn,disabled:!mn},mi)),mi}var _t=u.forwardRef(at);_t.displayName="Overflow",_t.Item=Ke,_t.RESPONSIVE=be,_t.INVALIDATE=we;var Kt=_t,ct=Kt,ot=l(21770),ht=l(80334),Zt=l(91881),ft=u.createContext(null);function Re(p,b){return p===void 0?null:"".concat(p,"-").concat(b)}function M(p){var b=u.useContext(ft);return Re(b,p)}var c=l(56982),d=["children","locked"],o=u.createContext(null);function m(p,b){var O=(0,T.Z)({},p);return Object.keys(b).forEach(function(D){var I=b[D];I!==void 0&&(O[D]=I)}),O}function R(p){var b=p.children,O=p.locked,D=(0,g.Z)(p,d),I=u.useContext(o),Z=(0,c.Z)(function(){return m(I,D)},[I,D],function(U,ge){return!O&&(U[0]!==ge[0]||!(0,Zt.Z)(U[1],ge[1],!0))});return u.createElement(o.Provider,{value:Z},b)}var h=[],_=u.createContext(null);function E(){return u.useContext(_)}var a=u.createContext(h);function z(p){var b=u.useContext(a);return u.useMemo(function(){return p!==void 0?[].concat((0,k.Z)(b),[p]):b},[b,p])}var W=u.createContext(null),ae=u.createContext({}),pe=ae,de=l(15105),ce=l(75164),oe=function(p){if(!p)return!1;if(p instanceof Element){if(p.offsetParent)return!0;if(p.getBBox){var b=p.getBBox(),O=b.width,D=b.height;if(O||D)return!0}if(p.getBoundingClientRect){var I=p.getBoundingClientRect(),Z=I.width,U=I.height;if(Z||U)return!0}}return!1};function Ue(p){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(oe(p)){var O=p.nodeName.toLowerCase(),D=["input","select","textarea","button"].includes(O)||p.isContentEditable||O==="a"&&!!p.getAttribute("href"),I=p.getAttribute("tabindex"),Z=Number(I),U=null;return I&&!Number.isNaN(Z)?U=Z:D&&U===null&&(U=0),D&&p.disabled&&(U=null),U!==null&&(U>=0||b&&U<0)}return!1}function $e(p){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=(0,k.Z)(p.querySelectorAll("*")).filter(function(D){return Ue(D,b)});return Ue(p,b)&&O.unshift(p),O}var et=null;function K(){et=document.activeElement}function Et(){et=null}function St(){if(et)try{et.focus()}catch(p){}}function wt(p,b){if(b.keyCode===9){var O=$e(p),D=O[b.shiftKey?0:O.length-1],I=D===document.activeElement||p===document.activeElement;if(I){var Z=O[b.shiftKey?O.length-1:0];Z.focus(),b.preventDefault()}}}var Ye=de.Z.LEFT,lt=de.Z.RIGHT,At=de.Z.UP,Rt=de.Z.DOWN,Ct=de.Z.ENTER,Lt=de.Z.ESC,Ht=de.Z.HOME,Mt=de.Z.END,_e=[At,Rt,Ye,lt];function Ge(p,b,O,D){var I,Z,U,ge,Ie="prev",Ce="next",Qe="children",Ze="parent";if(p==="inline"&&D===Ct)return{inlineTrigger:!0};var mt=(I={},(0,C.Z)(I,At,Ie),(0,C.Z)(I,Rt,Ce),I),pt=(Z={},(0,C.Z)(Z,Ye,O?Ce:Ie),(0,C.Z)(Z,lt,O?Ie:Ce),(0,C.Z)(Z,Rt,Qe),(0,C.Z)(Z,Ct,Qe),Z),ze=(U={},(0,C.Z)(U,At,Ie),(0,C.Z)(U,Rt,Ce),(0,C.Z)(U,Ct,Qe),(0,C.Z)(U,Lt,Ze),(0,C.Z)(U,Ye,O?Qe:Ze),(0,C.Z)(U,lt,O?Ze:Qe),U),ut={inline:mt,horizontal:pt,vertical:ze,inlineSub:mt,horizontalSub:ze,verticalSub:ze},gt=(ge=ut["".concat(p).concat(b?"":"Sub")])===null||ge===void 0?void 0:ge[D];switch(gt){case Ie:return{offset:-1,sibling:!0};case Ce:return{offset:1,sibling:!0};case Ze:return{offset:-1,sibling:!1};case Qe:return{offset:1,sibling:!1};default:return null}}function tt(p){for(var b=p;b;){if(b.getAttribute("data-menu-list"))return b;b=b.parentElement}return null}function Nt(p,b){for(var O=p||document.activeElement;O;){if(b.has(O))return O;O=O.parentElement}return null}function zt(p,b){var O=$e(p,!0);return O.filter(function(D){return b.has(D)})}function Wt(p,b,O){var D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!p)return null;var I=zt(p,b),Z=I.length,U=I.findIndex(function(ge){return O===ge});return D<0?U===-1?U=Z-1:U-=1:D>0&&(U+=1),U=(U+Z)%Z,I[U]}function Bt(p,b,O,D,I,Z,U,ge,Ie,Ce){var Qe=u.useRef(),Ze=u.useRef();Ze.current=b;var mt=function(){ce.Z.cancel(Qe.current)};return u.useEffect(function(){return function(){mt()}},[]),function(pt){var ze=pt.which;if([].concat(_e,[Ct,Lt,Ht,Mt]).includes(ze)){var ut,gt,yt,He=function(){ut=new Set,gt=new Map,yt=new Map;var Pt=Z();return Pt.forEach(function(Jt){var Yt=document.querySelector("[data-menu-id='".concat(Re(D,Jt),"']"));Yt&&(ut.add(Yt),yt.set(Yt,Jt),gt.set(Jt,Yt))}),ut};He();var Xe=gt.get(b),Pe=Nt(Xe,ut),Je=yt.get(Pe),rt=Ge(p,U(Je,!0).length===1,O,ze);if(!rt&&ze!==Ht&&ze!==Mt)return;(_e.includes(ze)||[Ht,Mt].includes(ze))&&pt.preventDefault();var Ot=function(Pt){if(Pt){var Jt=Pt,Yt=Pt.querySelector("a");Yt!=null&&Yt.getAttribute("href")&&(Jt=Yt);var xn=yt.get(Pt);ge(xn),mt(),Qe.current=(0,ce.Z)(function(){Ze.current===xn&&Jt.focus()})}};if([Ht,Mt].includes(ze)||rt.sibling||!Pe){var st;!Pe||p==="inline"?st=I.current:st=tt(Pe);var sn,xt=zt(st,ut);ze===Ht?sn=xt[0]:ze===Mt?sn=xt[xt.length-1]:sn=Wt(st,ut,Pe,rt.offset),Ot(sn)}else if(rt.inlineTrigger)Ie(Je);else if(rt.offset>0)Ie(Je,!0),mt(),Qe.current=(0,ce.Z)(function(){He();var ln=Pe.getAttribute("aria-controls"),Pt=document.getElementById(ln),Jt=Wt(Pt,ut);Ot(Jt)},5);else if(rt.offset<0){var an=U(Je,!0),tn=an[an.length-2],$t=gt.get(tn);Ie(tn,!1),Ot($t)}}Ce==null||Ce(pt)}}function Xt(p){Promise.resolve().then(p)}var De="__RC_UTIL_PATH_SPLIT__",Cn=function(b){return b.join(De)},G=function(b){return b.split(De)},e="rc-menu-more";function t(){var p=u.useState({}),b=(0,A.Z)(p,2),O=b[1],D=(0,u.useRef)(new Map),I=(0,u.useRef)(new Map),Z=u.useState([]),U=(0,A.Z)(Z,2),ge=U[0],Ie=U[1],Ce=(0,u.useRef)(0),Qe=(0,u.useRef)(!1),Ze=function(){Qe.current||O({})},mt=(0,u.useCallback)(function(Xe,Pe){var Je=Cn(Pe);I.current.set(Je,Xe),D.current.set(Xe,Je),Ce.current+=1;var rt=Ce.current;Xt(function(){rt===Ce.current&&Ze()})},[]),pt=(0,u.useCallback)(function(Xe,Pe){var Je=Cn(Pe);I.current.delete(Je),D.current.delete(Xe)},[]),ze=(0,u.useCallback)(function(Xe){Ie(Xe)},[]),ut=(0,u.useCallback)(function(Xe,Pe){var Je=D.current.get(Xe)||"",rt=G(Je);return Pe&&ge.includes(rt[0])&&rt.unshift(e),rt},[ge]),gt=(0,u.useCallback)(function(Xe,Pe){return Xe.some(function(Je){var rt=ut(Je,!0);return rt.includes(Pe)})},[ut]),yt=function(){var Pe=(0,k.Z)(D.current.keys());return ge.length&&Pe.push(e),Pe},He=(0,u.useCallback)(function(Xe){var Pe="".concat(D.current.get(Xe)).concat(De),Je=new Set;return(0,k.Z)(I.current.keys()).forEach(function(rt){rt.startsWith(Pe)&&Je.add(I.current.get(rt))}),Je},[]);return u.useEffect(function(){return function(){Qe.current=!0}},[]),{registerPath:mt,unregisterPath:pt,refreshOverflowKeys:ze,isSubPathKey:gt,getKeyPath:ut,getKeys:yt,getSubPathKeys:He}}function n(p){var b=u.useRef(p);b.current=p;var O=u.useCallback(function(){for(var D,I=arguments.length,Z=new Array(I),U=0;U<I;U++)Z[U]=arguments[U];return(D=b.current)===null||D===void 0?void 0:D.call.apply(D,[b].concat(Z))},[]);return p?O:void 0}var i=Math.random().toFixed(5).toString().slice(2),r=0;function f(p){var b=(0,ot.Z)(p,{value:p}),O=(0,A.Z)(b,2),D=O[0],I=O[1];return u.useEffect(function(){r+=1;var Z="".concat(i,"-").concat(r);I("rc-menu-uuid-".concat(Z))},[]),D}var y=l(15671),re=l(43144),Q=l(60136),le=l(51630),Me=l(98423),Te=l(42550);function ie(p,b,O,D){var I=u.useContext(o),Z=I.activeKey,U=I.onActive,ge=I.onInactive,Ie={active:Z===p};return b||(Ie.onMouseEnter=function(Ce){O==null||O({key:p,domEvent:Ce}),U(p)},Ie.onMouseLeave=function(Ce){D==null||D({key:p,domEvent:Ce}),ge(p)}),Ie}function Le(p){var b=u.useContext(o),O=b.mode,D=b.rtl,I=b.inlineIndent;if(O!=="inline")return null;var Z=p;return D?{paddingRight:Z*I}:{paddingLeft:Z*I}}function ue(p){var b=p.icon,O=p.props,D=p.children,I;return b===null||b===!1?null:(typeof b=="function"?I=u.createElement(b,(0,T.Z)({},O)):typeof b!="boolean"&&(I=b),I||D||null)}var Y=["item"];function ee(p){var b=p.item,O=(0,g.Z)(p,Y);return Object.defineProperty(O,"item",{get:function(){return(0,ht.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),b}}),O}var ye=["title","attribute","elementRef"],Se=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],nt=["active"],dn=function(p){(0,Q.Z)(O,p);var b=(0,le.Z)(O);function O(){return(0,y.Z)(this,O),b.apply(this,arguments)}return(0,re.Z)(O,[{key:"render",value:function(){var I=this.props,Z=I.title,U=I.attribute,ge=I.elementRef,Ie=(0,g.Z)(I,ye),Ce=(0,Me.Z)(Ie,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,ht.ZP)(!U,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(ct.Item,(0,s.Z)({},U,{title:typeof Z=="string"?Z:void 0},Ce,{ref:ge}))}}]),O}(u.Component),Tt=u.forwardRef(function(p,b){var O,D=p.style,I=p.className,Z=p.eventKey,U=p.warnKey,ge=p.disabled,Ie=p.itemIcon,Ce=p.children,Qe=p.role,Ze=p.onMouseEnter,mt=p.onMouseLeave,pt=p.onClick,ze=p.onKeyDown,ut=p.onFocus,gt=(0,g.Z)(p,Se),yt=M(Z),He=u.useContext(o),Xe=He.prefixCls,Pe=He.onItemClick,Je=He.disabled,rt=He.overflowDisabled,Ot=He.itemIcon,st=He.selectedKeys,sn=He.onActive,xt=u.useContext(pe),an=xt._internalRenderMenuItem,tn="".concat(Xe,"-item"),$t=u.useRef(),ln=u.useRef(),Pt=Je||ge,Jt=(0,Te.x1)(b,ln),Yt=z(Z),xn=function(qt){return{key:Z,keyPath:(0,k.Z)(Yt).reverse(),item:$t.current,domEvent:qt}},Dn=Ie||Ot,Bn=ie(Z,Pt,Ze,mt),Tn=Bn.active,kn=(0,g.Z)(Bn,nt),wn=st.includes(Z),En=Le(Yt.length),Fn=function(qt){if(!Pt){var hn=xn(qt);pt==null||pt(ee(hn)),Pe(hn)}},on=function(qt){if(ze==null||ze(qt),qt.which===de.Z.ENTER){var hn=xn(qt);pt==null||pt(ee(hn)),Pe(hn)}},un=function(qt){sn(Z),ut==null||ut(qt)},An={};p.role==="option"&&(An["aria-selected"]=wn);var Mn=u.createElement(dn,(0,s.Z)({ref:$t,elementRef:Jt,role:Qe===null?"none":Qe||"menuitem",tabIndex:ge?null:-1,"data-menu-id":rt&&yt?null:yt},gt,kn,An,{component:"li","aria-disabled":ge,style:(0,T.Z)((0,T.Z)({},En),D),className:te()(tn,(O={},(0,C.Z)(O,"".concat(tn,"-active"),Tn),(0,C.Z)(O,"".concat(tn,"-selected"),wn),(0,C.Z)(O,"".concat(tn,"-disabled"),Pt),O),I),onClick:Fn,onKeyDown:on,onFocus:un}),Ce,u.createElement(ue,{props:(0,T.Z)((0,T.Z)({},p),{},{isSelected:wn}),icon:Dn}));return an&&(Mn=an(Mn,p,{selected:wn})),Mn});function Ee(p,b){var O=p.eventKey,D=E(),I=z(O);return u.useEffect(function(){if(D)return D.registerPath(O,I),function(){D.unregisterPath(O,I)}},[I]),D?null:u.createElement(Tt,(0,s.Z)({},p,{ref:b}))}var it=u.forwardRef(Ee),jt=["className","children"],Vt=function(b,O){var D=b.className,I=b.children,Z=(0,g.Z)(b,jt),U=u.useContext(o),ge=U.prefixCls,Ie=U.mode,Ce=U.rtl;return u.createElement("ul",(0,s.Z)({className:te()(ge,Ce&&"".concat(ge,"-rtl"),"".concat(ge,"-sub"),"".concat(ge,"-").concat(Ie==="inline"?"inline":"vertical"),D),role:"menu"},Z,{"data-menu-list":!0,ref:O}),I)},kt=u.forwardRef(Vt);kt.displayName="SubMenuList";var cn=kt,Yn=l(50344);function rn(p,b){return(0,Yn.Z)(p).map(function(O,D){if(u.isValidElement(O)){var I,Z,U=O.key,ge=(I=(Z=O.props)===null||Z===void 0?void 0:Z.eventKey)!==null&&I!==void 0?I:U,Ie=ge==null;Ie&&(ge="tmp_key-".concat([].concat((0,k.Z)(b),[D]).join("-")));var Ce={key:ge,eventKey:ge};return u.cloneElement(O,Ce)}return O})}var In=l(62709),Ft={adjustX:1,adjustY:1},jn={topLeft:{points:["bl","tl"],overflow:Ft},topRight:{points:["br","tr"],overflow:Ft},bottomLeft:{points:["tl","bl"],overflow:Ft},bottomRight:{points:["tr","br"],overflow:Ft},leftTop:{points:["tr","tl"],overflow:Ft},leftBottom:{points:["br","bl"],overflow:Ft},rightTop:{points:["tl","tr"],overflow:Ft},rightBottom:{points:["bl","br"],overflow:Ft}},Kn={topLeft:{points:["bl","tl"],overflow:Ft},topRight:{points:["br","tr"],overflow:Ft},bottomLeft:{points:["tl","bl"],overflow:Ft},bottomRight:{points:["tr","br"],overflow:Ft},rightTop:{points:["tr","tl"],overflow:Ft},rightBottom:{points:["br","bl"],overflow:Ft},leftTop:{points:["tl","tr"],overflow:Ft},leftBottom:{points:["bl","br"],overflow:Ft}},en=null;function Qt(p,b,O){if(b)return b;if(O)return O[p]||O.other}var Qn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function vi(p){var b=p.prefixCls,O=p.visible,D=p.children,I=p.popup,Z=p.popupStyle,U=p.popupClassName,ge=p.popupOffset,Ie=p.disabled,Ce=p.mode,Qe=p.onVisibleChange,Ze=u.useContext(o),mt=Ze.getPopupContainer,pt=Ze.rtl,ze=Ze.subMenuOpenDelay,ut=Ze.subMenuCloseDelay,gt=Ze.builtinPlacements,yt=Ze.triggerSubMenuAction,He=Ze.forceSubMenuRender,Xe=Ze.rootClassName,Pe=Ze.motion,Je=Ze.defaultMotions,rt=u.useState(!1),Ot=(0,A.Z)(rt,2),st=Ot[0],sn=Ot[1],xt=pt?(0,T.Z)((0,T.Z)({},Kn),gt):(0,T.Z)((0,T.Z)({},jn),gt),an=Qn[Ce],tn=Qt(Ce,Pe,Je),$t=u.useRef(tn);Ce!=="inline"&&($t.current=tn);var ln=(0,T.Z)((0,T.Z)({},$t.current),{},{leavedClassName:"".concat(b,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Pt=u.useRef();return u.useEffect(function(){return Pt.current=(0,ce.Z)(function(){sn(O)}),function(){ce.Z.cancel(Pt.current)}},[O]),u.createElement(In.Z,{prefixCls:b,popupClassName:te()("".concat(b,"-popup"),(0,C.Z)({},"".concat(b,"-rtl"),pt),U,Xe),stretch:Ce==="horizontal"?"minWidth":null,getPopupContainer:mt,builtinPlacements:xt,popupPlacement:an,popupVisible:st,popup:I,popupStyle:Z,popupAlign:ge&&{offset:ge},action:Ie?[]:[yt],mouseEnterDelay:ze,mouseLeaveDelay:ut,onPopupVisibleChange:Qe,forceRender:He,popupMotion:ln,fresh:!0},D)}var _i=l(62874);function Mi(p){var b=p.id,O=p.open,D=p.keyPath,I=p.children,Z="inline",U=u.useContext(o),ge=U.prefixCls,Ie=U.forceSubMenuRender,Ce=U.motion,Qe=U.defaultMotions,Ze=U.mode,mt=u.useRef(!1);mt.current=Ze===Z;var pt=u.useState(!mt.current),ze=(0,A.Z)(pt,2),ut=ze[0],gt=ze[1],yt=mt.current?O:!1;u.useEffect(function(){mt.current&>(!1)},[Ze]);var He=(0,T.Z)({},Qt(Z,Ce,Qe));D.length>1&&(He.motionAppear=!1);var Xe=He.onVisibleChanged;return He.onVisibleChanged=function(Pe){return!mt.current&&!Pe&>(!0),Xe==null?void 0:Xe(Pe)},ut?null:u.createElement(R,{mode:Z,locked:!mt.current},u.createElement(_i.Z,(0,s.Z)({visible:yt},He,{forceRender:Ie,removeOnLeave:!1,leavedClassName:"".concat(ge,"-hidden")}),function(Pe){var Je=Pe.className,rt=Pe.style;return u.createElement(cn,{id:b,className:Je,style:rt},I)}))}var Ni=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],$i=["active"],Pi=function(b){var O,D=b.style,I=b.className,Z=b.title,U=b.eventKey,ge=b.warnKey,Ie=b.disabled,Ce=b.internalPopupClose,Qe=b.children,Ze=b.itemIcon,mt=b.expandIcon,pt=b.popupClassName,ze=b.popupOffset,ut=b.popupStyle,gt=b.onClick,yt=b.onMouseEnter,He=b.onMouseLeave,Xe=b.onTitleClick,Pe=b.onTitleMouseEnter,Je=b.onTitleMouseLeave,rt=(0,g.Z)(b,Ni),Ot=M(U),st=u.useContext(o),sn=st.prefixCls,xt=st.mode,an=st.openKeys,tn=st.disabled,$t=st.overflowDisabled,ln=st.activeKey,Pt=st.selectedKeys,Jt=st.itemIcon,Yt=st.expandIcon,xn=st.onItemClick,Dn=st.onOpenChange,Bn=st.onActive,Tn=u.useContext(pe),kn=Tn._internalRenderSubMenuItem,wn=u.useContext(W),En=wn.isSubPathKey,Fn=z(),on="".concat(sn,"-submenu"),un=tn||Ie,An=u.useRef(),Mn=u.useRef(),Nn=Ze!=null?Ze:Jt,qt=mt!=null?mt:Yt,hn=an.includes(U),Rn=!$t&&hn,ni=En(Pt,U),$n=ie(U,un,Pe,Je),yn=$n.active,ci=(0,g.Z)($n,$i),Pn=u.useState(!1),hi=(0,A.Z)(Pn,2),Zn=hi[0],ii=hi[1],ri=function(pn){un||ii(pn)},fn=function(pn){ri(!0),yt==null||yt({key:U,domEvent:pn})},si=function(pn){ri(!1),He==null||He({key:U,domEvent:pn})},Un=u.useMemo(function(){return yn||(xt!=="inline"?Zn||En([ln],U):!1)},[xt,yn,ln,Zn,U,En]),mn=Le(Fn.length),ai=function(pn){un||(Xe==null||Xe({key:U,domEvent:pn}),xt==="inline"&&Dn(U,!hn))},Hn=n(function(bn){gt==null||gt(ee(bn)),xn(bn)}),vn=function(pn){xt!=="inline"&&Dn(U,pn)},zn=function(){Bn(U)},Ln=Ot&&"".concat(Ot,"-popup"),Vn=u.createElement("div",(0,s.Z)({role:"menuitem",style:mn,className:"".concat(on,"-title"),tabIndex:un?null:-1,ref:An,title:typeof Z=="string"?Z:null,"data-menu-id":$t&&Ot?null:Ot,"aria-expanded":Rn,"aria-haspopup":!0,"aria-controls":Ln,"aria-disabled":un,onClick:ai,onFocus:zn},ci),Z,u.createElement(ue,{icon:xt!=="horizontal"?qt:void 0,props:(0,T.Z)((0,T.Z)({},b),{},{isOpen:Rn,isSubMenu:!0})},u.createElement("i",{className:"".concat(on,"-arrow")}))),nn=u.useRef(xt);if(xt!=="inline"&&Fn.length>1?nn.current="vertical":nn.current=xt,!$t){var Gn=nn.current;Vn=u.createElement(vi,{mode:Gn,prefixCls:on,visible:!Ce&&Rn&&xt!=="inline",popupClassName:pt,popupOffset:ze,popupStyle:ut,popup:u.createElement(R,{mode:Gn==="horizontal"?"vertical":Gn},u.createElement(cn,{id:Ln,ref:Mn},Qe)),disabled:un,onVisibleChange:vn},Vn)}var On=u.createElement(ct.Item,(0,s.Z)({role:"none"},rt,{component:"li",style:D,className:te()(on,"".concat(on,"-").concat(xt),I,(O={},(0,C.Z)(O,"".concat(on,"-open"),Rn),(0,C.Z)(O,"".concat(on,"-active"),Un),(0,C.Z)(O,"".concat(on,"-selected"),ni),(0,C.Z)(O,"".concat(on,"-disabled"),un),O)),onMouseEnter:fn,onMouseLeave:si}),Vn,!$t&&u.createElement(Mi,{id:Ln,open:Rn,keyPath:Fn},Qe));return kn&&(On=kn(On,b,{selected:ni,active:Un,open:Rn,disabled:un})),u.createElement(R,{onItemClick:Hn,mode:xt==="horizontal"?"vertical":xt,itemIcon:Nn,expandIcon:qt},On)};function Ei(p){var b=p.eventKey,O=p.children,D=z(b),I=rn(O,D),Z=E();u.useEffect(function(){if(Z)return Z.registerPath(b,D),function(){Z.unregisterPath(b,D)}},[D]);var U;return Z?U=I:U=u.createElement(Pi,p,I),u.createElement(a.Provider,{value:D},U)}var Ui=l(71002),zi=["className","title","eventKey","children"],ji=["children"],Ki=function(b){var O=b.className,D=b.title,I=b.eventKey,Z=b.children,U=(0,g.Z)(b,zi),ge=u.useContext(o),Ie=ge.prefixCls,Ce="".concat(Ie,"-item-group");return u.createElement("li",(0,s.Z)({role:"presentation"},U,{onClick:function(Ze){return Ze.stopPropagation()},className:te()(Ce,O)}),u.createElement("div",{role:"presentation",className:"".concat(Ce,"-title"),title:typeof D=="string"?D:void 0},D),u.createElement("ul",{role:"group",className:"".concat(Ce,"-list")},Z))};function xi(p){var b=p.children,O=(0,g.Z)(p,ji),D=z(O.eventKey),I=rn(b,D),Z=E();return Z?I:u.createElement(Ki,(0,Me.Z)(O,["warnKey"]),I)}function wi(p){var b=p.className,O=p.style,D=u.useContext(o),I=D.prefixCls,Z=E();return Z?null:u.createElement("li",{role:"separator",className:te()("".concat(I,"-item-divider"),b),style:O})}var Zi=["label","children","key","type"];function Ai(p){return(p||[]).map(function(b,O){if(b&&(0,Ui.Z)(b)==="object"){var D=b,I=D.label,Z=D.children,U=D.key,ge=D.type,Ie=(0,g.Z)(D,Zi),Ce=U!=null?U:"tmp-".concat(O);return Z||ge==="group"?ge==="group"?u.createElement(xi,(0,s.Z)({key:Ce},Ie,{title:I}),Ai(Z)):u.createElement(Ei,(0,s.Z)({key:Ce},Ie,{title:I}),Ai(Z)):ge==="divider"?u.createElement(wi,(0,s.Z)({key:Ce},Ie)):u.createElement(it,(0,s.Z)({key:Ce},Ie),I)}return null}).filter(function(b){return b})}function Hi(p,b,O){var D=p;return b&&(D=Ai(b)),rn(D,O)}var Vi=["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"],ti=[],Gi=u.forwardRef(function(p,b){var O,D,I=p,Z=I.prefixCls,U=Z===void 0?"rc-menu":Z,ge=I.rootClassName,Ie=I.style,Ce=I.className,Qe=I.tabIndex,Ze=Qe===void 0?0:Qe,mt=I.items,pt=I.children,ze=I.direction,ut=I.id,gt=I.mode,yt=gt===void 0?"vertical":gt,He=I.inlineCollapsed,Xe=I.disabled,Pe=I.disabledOverflow,Je=I.subMenuOpenDelay,rt=Je===void 0?.1:Je,Ot=I.subMenuCloseDelay,st=Ot===void 0?.1:Ot,sn=I.forceSubMenuRender,xt=I.defaultOpenKeys,an=I.openKeys,tn=I.activeKey,$t=I.defaultActiveFirst,ln=I.selectable,Pt=ln===void 0?!0:ln,Jt=I.multiple,Yt=Jt===void 0?!1:Jt,xn=I.defaultSelectedKeys,Dn=I.selectedKeys,Bn=I.onSelect,Tn=I.onDeselect,kn=I.inlineIndent,wn=kn===void 0?24:kn,En=I.motion,Fn=I.defaultMotions,on=I.triggerSubMenuAction,un=on===void 0?"hover":on,An=I.builtinPlacements,Mn=I.itemIcon,Nn=I.expandIcon,qt=I.overflowedIndicator,hn=qt===void 0?"...":qt,Rn=I.overflowedIndicatorPopupClassName,ni=I.getPopupContainer,$n=I.onClick,yn=I.onOpenChange,ci=I.onKeyDown,Pn=I.openAnimation,hi=I.openTransitionName,Zn=I._internalRenderMenuItem,ii=I._internalRenderSubMenuItem,ri=(0,g.Z)(I,Vi),fn=u.useMemo(function(){return Hi(pt,mt,ti)},[pt,mt]),si=u.useState(!1),Un=(0,A.Z)(si,2),mn=Un[0],ai=Un[1],Hn=u.useRef(),vn=f(ut),zn=ze==="rtl",Ln=(0,ot.Z)(xt,{value:an,postState:function(bt){return bt||ti}}),Vn=(0,A.Z)(Ln,2),nn=Vn[0],Gn=Vn[1],On=function(bt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function gn(){Gn(bt),yn==null||yn(bt)}Dt?(0,v.flushSync)(gn):gn()},bn=u.useState(nn),pn=(0,A.Z)(bn,2),fi=pn[0],yi=pn[1],oi=u.useRef(!1),Jn=u.useMemo(function(){return(yt==="inline"||yt==="vertical")&&He?["vertical",He]:[yt,!1]},[yt,He]),bi=(0,A.Z)(Jn,2),Wn=bi[0],li=bi[1],ui=Wn==="inline",mi=u.useState(Wn),Ne=(0,A.Z)(mi,2),Ve=Ne[0],Gt=Ne[1],Sn=u.useState(li),Xn=(0,A.Z)(Sn,2),Yi=Xn[0],Qi=Xn[1];u.useEffect(function(){Gt(Wn),Qi(li),oi.current&&(ui?Gn(fi):On(ti))},[Wn,li]);var Ji=u.useState(0),Bi=(0,A.Z)(Ji,2),Si=Bi[0],qi=Bi[1],Ri=Si>=fn.length-1||Ve!=="horizontal"||Pe;u.useEffect(function(){ui&&yi(nn)},[nn]),u.useEffect(function(){return oi.current=!0,function(){oi.current=!1}},[]);var qn=t(),Li=qn.registerPath,Oi=qn.unregisterPath,er=qn.refreshOverflowKeys,Di=qn.isSubPathKey,tr=qn.getKeyPath,nr=qn.getKeys,ir=qn.getSubPathKeys,rr=u.useMemo(function(){return{registerPath:Li,unregisterPath:Oi}},[Li,Oi]),sr=u.useMemo(function(){return{isSubPathKey:Di}},[Di]);u.useEffect(function(){er(Ri?ti:fn.slice(Si+1).map(function(Ut){return Ut.key}))},[Si,Ri]);var ar=(0,ot.Z)(tn||$t&&((O=fn[0])===null||O===void 0?void 0:O.key),{value:tn}),Ti=(0,A.Z)(ar,2),pi=Ti[0],Ii=Ti[1],or=n(function(Ut){Ii(Ut)}),lr=n(function(){Ii(void 0)});(0,u.useImperativeHandle)(b,function(){return{list:Hn.current,focus:function(bt){var Dt,gn=pi!=null?pi:(Dt=fn.find(function(_r){return!_r.props.disabled}))===null||Dt===void 0?void 0:Dt.key;if(gn){var _n,ei,gi;(_n=Hn.current)===null||_n===void 0||(ei=_n.querySelector("li[data-menu-id='".concat(Re(vn,gn),"']")))===null||ei===void 0||(gi=ei.focus)===null||gi===void 0||gi.call(ei,bt)}}}});var ur=(0,ot.Z)(xn||[],{value:Dn,postState:function(bt){return Array.isArray(bt)?bt:bt==null?ti:[bt]}}),ki=(0,A.Z)(ur,2),Ci=ki[0],dr=ki[1],cr=function(bt){if(Pt){var Dt=bt.key,gn=Ci.includes(Dt),_n;Yt?gn?_n=Ci.filter(function(gi){return gi!==Dt}):_n=[].concat((0,k.Z)(Ci),[Dt]):_n=[Dt],dr(_n);var ei=(0,T.Z)((0,T.Z)({},bt),{},{selectedKeys:_n});gn?Tn==null||Tn(ei):Bn==null||Bn(ei)}!Yt&&nn.length&&Ve!=="inline"&&On(ti)},hr=n(function(Ut){$n==null||$n(ee(Ut)),cr(Ut)}),Fi=n(function(Ut,bt){var Dt=nn.filter(function(_n){return _n!==Ut});if(bt)Dt.push(Ut);else if(Ve!=="inline"){var gn=ir(Ut);Dt=Dt.filter(function(_n){return!gn.has(_n)})}(0,Zt.Z)(nn,Dt,!0)||On(Dt,!0)}),fr=function(bt,Dt){var gn=Dt!=null?Dt:!nn.includes(bt);Fi(bt,gn)},mr=Bt(Ve,pi,zn,vn,Hn,nr,tr,Ii,fr,ci);u.useEffect(function(){ai(!0)},[]);var pr=u.useMemo(function(){return{_internalRenderMenuItem:Zn,_internalRenderSubMenuItem:ii}},[Zn,ii]),gr=Ve!=="horizontal"||Pe?fn:fn.map(function(Ut,bt){return u.createElement(R,{key:Ut.key,overflowDisabled:bt>Si},Ut)}),vr=u.createElement(ct,(0,s.Z)({id:ut,ref:Hn,prefixCls:"".concat(U,"-overflow"),component:"ul",itemComponent:it,className:te()(U,"".concat(U,"-root"),"".concat(U,"-").concat(Ve),Ce,(D={},(0,C.Z)(D,"".concat(U,"-inline-collapsed"),Yi),(0,C.Z)(D,"".concat(U,"-rtl"),zn),D),ge),dir:ze,style:Ie,role:"menu",tabIndex:Ze,data:gr,renderRawItem:function(bt){return bt},renderRawRest:function(bt){var Dt=bt.length,gn=Dt?fn.slice(-Dt):null;return u.createElement(Ei,{eventKey:e,title:hn,disabled:Ri,internalPopupClose:Dt===0,popupClassName:Rn},gn)},maxCount:Ve!=="horizontal"||Pe?ct.INVALIDATE:ct.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(bt){qi(bt)},onKeyDown:mr},ri));return u.createElement(pe.Provider,{value:pr},u.createElement(ft.Provider,{value:vn},u.createElement(R,{prefixCls:U,rootClassName:ge,mode:Ve,openKeys:nn,rtl:zn,disabled:Xe,motion:mn?En:null,defaultMotions:mn?Fn:null,activeKey:pi,onActive:or,onInactive:lr,selectedKeys:Ci,inlineIndent:wn,subMenuOpenDelay:rt,subMenuCloseDelay:st,forceSubMenuRender:sn,builtinPlacements:An,triggerSubMenuAction:un,getPopupContainer:ni,itemIcon:Mn,expandIcon:Nn,onItemClick:hr,onOpenChange:Fi},u.createElement(W.Provider,{value:sr},vr),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(_.Provider,{value:rr},fn)))))}),Wi=Gi,di=Wi;di.Item=it,di.SubMenu=Ei,di.ItemGroup=xi,di.Divider=wi;var Xi=di},66680:function(qe,he,l){"use strict";l.d(he,{Z:function(){return C}});var s=l(67294);function C(T){var k=s.useRef();k.current=T;var A=s.useCallback(function(){for(var g,q=arguments.length,te=new Array(q),u=0;u<q;u++)te[u]=arguments[u];return(g=k.current)===null||g===void 0?void 0:g.call.apply(g,[k].concat(te))},[]);return A}},21770:function(qe,he,l){"use strict";l.d(he,{Z:function(){return g}});var s=l(97685),C=l(66680),T=l(8410),k=l(63896);function A(q){return q!==void 0}function g(q,te){var u=te||{},P=u.defaultValue,ne=u.value,X=u.onChange,L=u.postState,H=(0,k.Z)(function(){return A(ne)?ne:A(P)?typeof P=="function"?P():P:typeof q=="function"?q():q}),fe=(0,s.Z)(H,2),se=fe[0],N=fe[1],x=ne!==void 0?ne:se,w=L?L(x):x,S=(0,C.Z)(X),F=(0,k.Z)([x]),v=(0,s.Z)(F,2),B=v[0],V=v[1];(0,T.o)(function(){var J=B[0];se!==J&&S(se,J)},[B]),(0,T.o)(function(){A(ne)||N(ne)},[ne]);var $=(0,C.Z)(function(J,me){N(J,me),V([x],me)});return[w,$]}},91881:function(qe,he,l){"use strict";var s=l(71002),C=l(80334);function T(k,A){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,q=new Set;function te(u,P){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,X=q.has(u);if((0,C.ZP)(!X,"Warning: There may be circular references"),X)return!1;if(u===P)return!0;if(g&&ne>1)return!1;q.add(u);var L=ne+1;if(Array.isArray(u)){if(!Array.isArray(P)||u.length!==P.length)return!1;for(var H=0;H<u.length;H++)if(!te(u[H],P[H],L))return!1;return!0}if(u&&P&&(0,s.Z)(u)==="object"&&(0,s.Z)(P)==="object"){var fe=Object.keys(u);return fe.length!==Object.keys(P).length?!1:fe.every(function(se){return te(u[se],P[se],L)})}return!1}return te(k,A)}he.Z=T},98423:function(qe,he,l){"use strict";l.d(he,{Z:function(){return C}});var s=l(1413);function C(T,k){var A=(0,s.Z)({},T);return Array.isArray(k)&&k.forEach(function(g){delete A[g]}),A}},18034:function(qe){var he=arguments[3],l=arguments[4],s=arguments[5],C=JSON.stringify;qe.exports=function(T,k){for(var A,g=Object.keys(s),q=0,te=g.length;q<te;q++){var u=g[q],P=s[u].exports;if(P===T||P&&P.default===T){A=u;break}}if(!A){A=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var ne={},q=0,te=g.length;q<te;q++){var u=g[q];ne[u]=u}l[A]=["function(require,module,exports){"+T+"(self); }",ne]}var X=Math.floor(Math.pow(16,8)*Math.random()).toString(16),L={};L[A]=A,l[X]=["function(require,module,exports){var f = require("+C(A)+");(f.default ? f.default : f)(self);}",L];var H={};fe(X);function fe(F){H[F]=!0;for(var v in l[F][1]){var B=l[F][1][v];H[B]||fe(B)}}var se="("+he+")({"+Object.keys(H).map(function(F){return C(F)+":["+l[F][0]+","+C(l[F][1])+"]"}).join(",")+"},{},["+C(X)+"])",N=window.URL||window.webkitURL||window.mozURL||window.msURL,x=new Blob([se],{type:"text/javascript"});if(k&&k.bare)return x;var w=N.createObjectURL(x),S=new Worker(w);return S.objectURL=w,S}}}]);
|