You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__Lists__Learn...

44 lines
286 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[4928],{25877:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return q}});var s=o(87462),x=o(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=o(74643),g=function(u,P){return x.createElement(A.Z,(0,s.Z)({},u,{ref:P,icon:k}))},q=x.forwardRef(g)},22751:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return q}});var s=o(87462),x=o(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=o(74643),g=function(u,P){return x.createElement(A.Z,(0,s.Z)({},u,{ref:P,icon:k}))},q=x.forwardRef(g)},91034:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return q}});var s=o(87462),x=o(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=o(74643),g=function(u,P){return x.createElement(A.Z,(0,s.Z)({},u,{ref:P,icon:k}))},q=x.forwardRef(g)},6104:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return re}});var s=o(67294),x=o(2453),T=o(85418),k=o(24577),A=o(67631),g=o.n(A),q=o(52262),te=o(74855),u=o(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=($,E,w)=>new Promise((S,L)=>{var v=M=>{try{Z(w.next(M))}catch(Q){L(Q)}},I=M=>{try{Z(w.throw(M))}catch(Q){L(Q)}},Z=M=>M.done?S(M.value):Promise.resolve(M.value).then(v,I);Z((w=w.apply($,E)).next())});function W($){if(isNaN($))return{minutes:"00",seconds:"00"};const E=new Date($*1e3).toISOString().substr(11,8);return{hour:E.substr(0,2),minutes:E.substr(3,2),seconds:E.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function O($,E){return $-E}function V($){$.sort(O);let E=0;for(let w=0;w<$.length-1;w++){let S=Math.abs($[w+1]-$[w]);S<21&&(E+=S)}return E}const me=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var re=(0,s.forwardRef)(({allow_skip:$,src:E,toLog:w,videoId:S,logWatchHistory:L,courseId:v=null,startTime:I,handlePause:Z=()=>{},handlePlay:M=()=>{},handlePlayEnded:Q=()=>{},autoPlay:ce=!1,onPlayEnded:Ae=()=>{},isShowWaterMark:De=!0},Pe)=>{var Te;const Ke=((Te=E==null?void 0:E.split("."))==null?void 0:Te.pop())==="flv",z=(0,s.useRef)(),st=(0,s.useRef)(),Qe=(0,s.useRef)(),Ie=(0,s.useRef)(),pe=(0,s.useRef)(),Me=(0,s.useRef)(),Le=(0,s.useRef)(),_e=(0,s.useRef)(),xe=(0,s.useRef)(),Ct=(0,s.useRef)(),Je=(0,s.useRef)(),ft=(0,s.useRef)(),vt=(0,s.useRef)(),at=(0,s.useRef)(),it=navigator.userAgent.toLowerCase().match(me),ot=it?it[0]:"pc",kt=(0,s.useRef)(!1),qe=(0,q.eY)();let Re=0,N=0,c=0,d=null,l=!1,m=20,R=1,h=!1,_=!1,y=[];(0,s.useImperativeHandle)(Pe,()=>({getLastUpdatedTime:()=>z.current.currentTime,getDuration:()=>z.current.duration})),x.ZP.config({maxCount:1,getContainer:()=>Qe.current});const a=(0,s.useCallback)((le,je=!1)=>{let Ue={point:z.current.currentTime};d?(Ue.log_id=d,Ue.watch_duration=V(y),Ue.total_duration=N):(v?(Ue.video_id=parseInt(S,10),Ue.course_id=v):Ue.video_id=S,Ue.duration=Re,Ue.device=ot),je&&(Ue.ed="1");function rt(){return ne(this,null,function*(){h=!0,d=yield L==null?void 0:L(Ue),h=!1,le&&le()})}rt()},[S,v]);(0,s.useEffect)(()=>{z.current&&(Ie.current.style.display="none",pe.current.style.display="block"),x.ZP.destroy();let le=null;return k.Z.isSupported&&Ke&&E&&(E==null?void 0:E.indexOf(".m3u8"))<0?(le=k.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:E,muted:!1}),z.current&&(le.attachMediaElement(z.current),le.load())):z.current.setAttribute("src",E),X(),()=>{le&&(le.unload(),le.pause(),le.destroy(),le=null)}},[z,Ke,E]);function j(){z.current.paused?(Ie.current.style.display="none",pe.current.style.display="block"):(Ie.current.style.display="block",pe.current.style.display="none")}function X(){Je.current.style.display="none",vt.current.style.display="none",ft.current.style.display="none",z.current.muted||z.current.volume===0?Je.current.style.display="block":z.current.volume>0&&z.current.volume<=.5?vt.current.style.display="block":ft.current.style.display="block"}(0,s.useEffect)(()=>{const le=document.getElementById("play"),je=document.querySelectorAll(".playback-icons use");function Ue(){M(),I&&!kt.current&&(z.current.currentTime=I),kt.current=!0,y.push(z.current.currentTime),l||(l=!0,w&&a())}function rt(){return ne(this,null,function*(){j(),y.push(z.current.currentTime),w&&a(()=>{d=null,c=0,l=!1,h=!1,_=!1,y=[],N=0,R=1},!0),Ae()})}function K(){Me.current.value=Math.round(z.current.currentTime),Le.current.value=Math.round(z.current.currentTime)}function yt(){const Ee=W(Math.round(z.current.currentTime));xe.current.innerText=`${Ee.hour>0?Ee.hour+":":""}${Ee.minutes}:${Ee.seconds}`,xe.current.setAttribute("datetime",`${Ee.hour>0?" "+Ee.hour+" ":""}${Ee.minutes}m ${Ee.seconds}s`)}function xt(){var Ee,We,lt,Pt,Zt,Wt,Lt;const Xt=Math.round((Ee=z.current)==null?void 0:Ee.duration);(lt=(We=Me.current)==null?void 0:We.setAttribute)==null||lt.call(We,"max",Xt),(Zt=(Pt=Le.current)==null?void 0:Pt.setAttribute)==null||Zt.call(Pt,"max",Xt);const ke=W(Xt);_e.current&&(_e.current.innerText=`${ke.hour>0?ke.hour+":":""}${ke.minutes}:${ke.seconds}`,(Lt=(Wt=_e.current).setAttribute)==null||Lt.call(Wt,"datetime",`${ke.hour>0?" "+ke.hour+" ":""}${ke.minutes}m ${ke.seconds}s`))}function Rt(){try{const Ee=Math.round(z.current.duration);Me.current.setAttribute("max",Ee),Le.current.setAttribute("max",Ee);const We=W(Ee);_e.current.innerText=`${We.hour>0?We.hour+":":""}${We.minutes}:${We.seconds}`,_e.current.setAttribute("datetime",`${We.hour>0?" "+We.hour+" ":""}${We.minutes}m ${We.seconds}s`),K(),yt();const{width:lt,height:Pt,x:Zt,y:Wt}=st.current.getBoundingClientRect();if(Zt<0||Wt<0||!lt)return;if(!_){let Lt=z.current.currentTime,Xt=Lt-c;Math.abs(Xt)<10?(N+=Math.abs(Xt),c=Lt,h||N-R*m>=0&&(R++,y.push(c),w&&a())):(c=Lt,w&&a())}}catch(Ee){console.log(Ee)}}function et(){_=!0}function mt(){z.current.playing&&y.push(z.current.currentTime,c),c=z.current.currentTime,_=!1}function It(){Re=z.current.duration,Re<=20&&(m=Re/3),z.current.addEventListener("play",Ue)}function Bt(Ee){Ee.preventDefault(),(0,u.vp)()?(z.current.style.width="100%",z.current.style.height="100%"):z.current.style.cssText=""}function wt(){Z()}function Ot(Ee){if(!$){x.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const We=Ee.target.dataset.seek?Ee.target.dataset.seek:Ee.target.value;z.current.currentTime=We,Le.current.value=We,Me.current.value=We}function Ht(Ee){const We=Math.round(Ee.offsetX/Ee.target.clientWidth*parseInt(Ee.target.getAttribute("max"),10));Me.current.setAttribute("data-seek",We);const lt=W(We);Ct.current.textContent=`${lt.hour>0?lt.hour+":":""}${lt.minutes}:${lt.seconds}`;const Pt=z.current.getBoundingClientRect();Ct.current.style.left=`${Ee.pageX-Pt.left}px`}function $t(Ee){switch(Ee.code){case"Space":Ee.preventDefault(),he();break;case"ArrowRight":if(Ee.preventDefault(),!$){x.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(z.current.currentTime>=z.current.duration)break;z.current.currentTime=parseInt(z.current.currentTime)+5,K();break;case"ArrowLeft":if(Ee.preventDefault(),!$){x.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(z.current.currentTime===0)break;z.current.currentTime=parseInt(z.current.currentTime)-5,K();break;case"ArrowUp":Ee.preventDefault(),z.current.volume<1&&(z.current.volume=(parseInt(z.current.volume*10)+1)/10);break;case"ArrowDown":Ee.preventDefault(),z.current.volume>0&&(z.current.volume=(parseInt(z.current.volume*10)-1)/10);break}}return Qe.current.addEventListener((0,u.gH)(),Bt),z.current.addEventListener("canplay",It),z.current.addEventListener("ended",rt),z.current.addEventListener("seeking",et),z.current.addEventListener("seeked",mt),z.current.addEventListener("loadedmetadata",xt),Me.current.addEventListener("mousemove",Ht),Me.current.addEventListener("input",Ot),z.current.addEventListener("timeupdate",Rt),z.current.addEventListener("pause",wt),z.current.addEventListener("volumechange",X),document.addEventListener("keydown",$t),()=>{var Ee,We,lt,Pt,Zt,Wt,Lt,Xt,ke,Cn,G,e;(Ee=z.current)==null||Ee.removeEventListener("canplay",It),(We=z.current)==null||We.removeEventListener("play",Ue),(lt=z.current)==null||lt.removeEventListener("ended",rt),(Pt=z.current)==null||Pt.removeEventListener("seeking",et),(Zt=z.current)==null||Zt.removeEventListener("seeked",mt),(Wt=Me.current)==null||Wt.removeEventListener("mousemove",Ht),(Lt=Me.current)==null||Lt.removeEventListener("input",Ot),(Xt=z.current)==null||Xt.removeEventListener("timeupdate",Rt),(ke=z.current)==null||ke.removeEventListener("pause",wt),(Cn=z.current)==null||Cn.removeEventListener("loadedmetadata",xt),(G=z.current)==null||G.removeEventListener("volumechange",X),document.removeEventListener("keydown",$t),(e=z.current)!=null&&e.playing&&(y.push(c,z.current.currentTime),w&&a())}},[z,E]),(0,s.useEffect)(()=>{if(z.current.onended=()=>{Q(z)},z.current.oncontextmenu=()=>!1,(E==null?void 0:E.indexOf(".m3u8"))>-1){if(z.current.canPlayType("application/vnd.apple.mpegurl"))z.current.src=E;else if(g().isSupported()){var le=new(g());le.loadSource(E),le.attachMedia(z.current)}}},[E]);const[oe,ge]=(0,s.useState)(1),he=()=>{z.current.paused||z.current.ended?z.current.play():z.current.pause(),j()};function fe(){z.current.muted=!z.current.muted,z.current.muted?(at.current.setAttribute("data-volume",volume.value),at.current.value=0):at.current.value=at.current.dataset.volume}return s.createElement("div",{style:{position:"relative"},ref:Qe},s.createElement("div",{ref:st,className:`${P.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${P.animate__loop}`},De&&qe?qe.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:z,autoPlay:ce}),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:he},s.createElement("svg",{className:P["playback-icons"]},s.createElement("use",{ref:pe,href:"#play-icon"}),s.createElement("use",{ref:Ie,style:{display:"none"},href:"#pause"}))),s.createElement("div",{className:P.time},s.createElement("time",{id:"time-elapsed",ref:xe},"00:00"),s.createElement("span",null," / "),s.createElement("time",{id:"duration",ref:_e},"00:00"))),s.createElement("div",{className:P["right-controls"]},$&&s.createElement(T.Z,{placement:"top",overlayClassName:P.rateOverlay,getPopupContainer:le=>le.parentNode,menu:{items:[{key:"1",label:s.createElement("span",{onClick:()=>{ge(1),z.current.playbackRate=1}},"1.0x")},{key:"2",label:s.createElement("span",{onClick:()=>{ge(1.5),z.current.playbackRate=1.5}},"1.5x")},{key:"3",label:s.createElement("span",{onClick:()=>{ge(2),z.current.playbackRate=2}},"2.0x")}]}},s.createElement("div",{className:`${P.controlText} mr5`},"\u500D\u901F")),s.createElement(te.CopyToClipboard,{text:E,onCopy:()=>x.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:fe},s.createElement("i",{ref:Je,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),s.createElement("i",{ref:vt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),s.createElement("i",{ref:ft,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:at,style:{display:"none"},onClick:X})),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)(Qe.current)}},s.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),s.createElement("div",{className:P["video-progress"]},s.createElement("progress",{ref:Le,value:"0",min:"0"}),s.createElement("input",{className:P.seek,ref:Me,value:"0",min:"0",type:"range",step:"1"}),s.createElement("div",{className:P["seek-tooltip"],ref:Ct,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(Ye,ae,o){"use strict";o.r(ae),o.d(ae,{default:function(){return $}});var s=o(67294),x=o(35973),T=o(46303),k=o(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=o(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(E=>(E.parent=Number(E.parent),E.key=Number(E.key),E)),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(E=>(E.parent=Number(E.parent),E.key=Number(E.key),E)),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(E=>(E.parent=Number(E.parent),E.key=Number(E.key),E))};var te=o(15070),u=o(6104),P=Object.defineProperty,ne=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,V=(E,w,S)=>w in E?P(E,w,{enumerable:!0,configurable:!0,writable:!0,value:S}):E[w]=S,me=(E,w)=>{for(var S in w||(w={}))W.call(w,S)&&V(E,S,w[S]);if(ne)for(var S of ne(w))O.call(w,S)&&V(E,S,w[S]);return E};const re=({classroomList:E,loading:w,dispatch:S})=>{const[L]=(0,x.useSearchParams)(),[v]=(0,s.useState)(me({},(0,x.useParams)())),[I,Z]=(0,s.useState)("init"),[M,Q]=(0,s.useState)(""),ce=(0,s.useRef)();(0,s.useEffect)(()=>{const Se=L.get("tabId");Se&&(Z(Se),v.status=Se)},[v.categoryId,L.get("tabId")]);const Ae=Se=>{Z(Se.key)},De=[{name:"\u521D\u59CB\u5B66\u4E60",id:"init"},{name:"\u590D\u4E60\u5B66\u4E60",id:"review"},{name:"\u8003\u524D\u5B66\u4E60",id:"before"}],Pe=Se=>{Se.data.type==="playVideo"&&Q(Se.data.url)};(0,s.useEffect)(()=>{I&&Te(),window.addEventListener("message",Pe)},[I]);const Te=()=>{var Se;(Se=ce.current.contentWindow)==null||Se.postMessage({data:q[I]},"*")};return s.createElement("section",null,s.createElement(te.Z,{isLoading:w["classroomList/getClassroomAttendancesList"],tabDataSource:De,isAdmin:(0,g.GJ)(),onTabMenuClick:Ae,defaultSelectedKeys:[I]}),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:Te,className:A.iframe,ref:ce}))),s.createElement(k.default,{open:!!M,onCancel:()=>Q(""),width:800,footer:null,bodyStyle:{padding:0},centered:!0,destroyOnClose:!0},s.createElement(u.Z,{src:M,autoPlay:!0,toLog:!1})))};var $=(0,x.connect)(({classroomList:E,loading:w,globalSetting:S})=>({classroomList:E,globalSetting:S,loading:w.effects}))(re)},15070:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return W}});var s=o(67294),x=o(71230),T=o(15746),k=o(68508),A=o(85418),g=o(2453),q=o(83062),te={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},u=o(35973),P=o(52262),W=({isLoading:O,addText:V,tabDataSource:me,isAdmin:re,dispatch:$,classroomList:E,type:w,isExercise:S,defaultSelectedKeys:L,onTabMenuClick:v,getDropdownMenu:I,showControlButton:Z,buttonText:M,buttonIcon:Q="icon-tianjiadaohang",extraNode:ce,user:Ae,onButtonClick:De,isModelUser:Pe,menuItemWidth:Te=125})=>{var Se,Ke,z,st,Qe;const Ie=(0,u.useParams)();return s.createElement("div",{className:te.tabMenuContainer},s.createElement(x.Z,null,s.createElement(T.Z,{flex:"1"},s.createElement(k.default,{onSelect:pe=>O?{}:v(pe),mode:"horizontal",selectedKeys:L},me.map(pe=>s.createElement(k.default.Item,{style:{width:Te},key:typeof pe.index=="number"?pe.index:pe.id},s.createElement("span",{className:"c-grey-666"},pe.name),pe.total!==void 0&&re&&s.createElement("span",{className:"c-grey-999 ml20"},pe.total||0))))),re&&S&&s.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{$({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),re&&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 pe;if((0,P.Rm)()&&!((pe=E.AssistantObject.exercise)!=null&&pe.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}$({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:w,exportType:"exercise",category_id:Ie.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),s.createElement(k.default.Item,{key:3,onClick:()=>{var pe;if((0,P.Rm)()&&!((pe=E.AssistantObject.exercise)!=null&&pe.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/${Ie==null?void 0:Ie.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},ce),Z&&(M=="\u6DFB\u52A0\u76F4\u64AD"?s.createElement(A.Z,{menu:{items:(Ke=(Se=[{label:s.createElement("div",{onClick:()=>{De("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Pe&&{label:s.createElement("div",{onClick:()=>{De("\u5934\u6B4C")}},"\u5934\u6B4C\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:Se.filter(pe=>pe==null?void 0:pe.show))==null?void 0:Ke.map(pe=>({label:pe==null?void 0:pe.label,key:pe==null?void 0:pe.key}))}},s.createElement("span",{className:te.selectBtn},s.createElement("span",null,s.createElement("i",{className:`iconfont ${Q}`})),s.createElement("span",null,M))):s.createElement("span",{onClick:De,style:{cursor:"pointer"},className:te.selectBtn},s.createElement("span",null,s.createElement("i",{className:`iconfont ${Q}`})),s.createElement("span",null,M))),!!I&&s.createElement(A.Z,{disabled:((z=Ae==null?void 0:Ae.userInfo)==null?void 0:z.user_status)===2,className:"ml10",dropdownRender:I},s.createElement("span",{className:((st=Ae==null?void 0:Ae.userInfo)==null?void 0:st.user_status)===2?te.selectBtn1:te.selectBtn},s.createElement("span",null,s.createElement("i",{className:"iconfont icon-tianjiadaohang"})),s.createElement(q.Z,{title:((Qe=Ae==null?void 0:Ae.userInfo)==null?void 0:Qe.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,V||"\u521B\u5EFA\u8BD5\u5377"))))))))}},51959:function(Ye,ae,o){"use strict";o.d(ae,{BU:function(){return x},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 x(){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(Ye,ae,o){"use strict";o.d(ae,{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"&&o(82702).polyfill()}}s.install();var x=s,T=o(17187),k=o.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 W extends u{constructor(e){super(e)}get name(){return"NotImplementedException"}}const O={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},V={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class me{constructor(e){this._type=e||"undefined",this._status=O.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=O.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===O.kConnecting||this._status===O.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(e){this._onContentLengthKnown=e}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(e){this._onURLRedirect=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}open(e,t){throw new W("Unimplemented abstract function!")}abort(){throw new W("Unimplemented abstract function!")}}let re={};function $(){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 re)re.hasOwnProperty(r)&&delete re[r];Object.assign(re,i)}$();var E=re;class w extends me{static isSupported(){try{let e=E.msedge&&E.version.minor>=15048,t=E.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 b=i.headers;for(let se in b)b.hasOwnProperty(se)&&r.append(se,b[se])}let f={method:"GET",headers:r,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let b in this._config.headers)r.append(b,this._config.headers[b]);e.cors===!1&&(f.mode="same-origin"),e.withCredentials&&(f.credentials="include"),e.referrerPolicy&&(f.referrerPolicy=e.referrerPolicy),this._status=O.kConnecting,self.fetch(i.url,f).then(b=>{if(this._requestAbort){this._requestAbort=!1,this._status=O.kIdle;return}if(b.ok&&b.status>=200&&b.status<=299){if(b.url!==i.url&&this._onURLRedirect){let J=this._seekHandler.removeURLParameters(b.url);this._onURLRedirect(J)}let se=b.headers.get("Content-Length");return se!=null&&(this._contentLength=parseInt(se),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,b.body.getReader())}else if(this._status=O.kError,this._onError)this._onError(V.HTTP_STATUS_CODE_INVALID,{code:b.status,msg:b.statusText});else throw new u("FetchStreamLoader: Http code invalid, "+b.status+" "+b.statusText)}).catch(b=>{if(this._status=O.kError,this._onError)this._onError(V.EXCEPTION,{code:-1,msg:b.message});else throw b})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=O.kError;let n=V.EARLY_EOF,i={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(n,i);else throw new u(i.msg)}else this._status=O.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1);else{if(this._requestAbort===!0)return this._requestAbort=!1,this._status=O.kComplete,e.cancel();this._status=O.kBuffering;let n=t.value.buffer,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),this._pump(e)}}).catch(t=>{if(t.code===11&&E.msedge)return;this._status=O.kError;let n=0,i=null;if((t.code===19||t.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(n=V.EARLY_EOF,i={code:t.code,msg:"Fetch stream meet Early-EOF"}):(n=V.EXCEPTION,i={code:t.code,msg:t.message}),this._onError)this._onError(n,i);else throw new u(i.msg)})}}var S=w;class L extends me{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 b in f)f.hasOwnProperty(b)&&r.setRequestHeader(b,f[b])}if(typeof this._config.headers=="object"){let f=this._config.headers;for(let b in f)f.hasOwnProperty(b)&&r.setRequestHeader(b,f[b])}this._status=O.kConnecting,r.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=O.kComplete}_onReadyStateChange(e){let t=e.target;if(t.readyState===2){if(t.responseURL!=null&&t.responseURL!==this._requestURL&&this._onURLRedirect){let n=this._seekHandler.removeURLParameters(t.responseURL);this._onURLRedirect(n)}if(t.status!==0&&(t.status<200||t.status>299))if(this._status=O.kError,this._onError)this._onError(V.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new u("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);else this._status=O.kBuffering}}_onProgress(e){if(this._status===O.kError)return;this._contentLength===null&&e.total!==null&&e.total!==0&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let t=e.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}_onLoadEnd(e){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===O.kError)return;this._status=O.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(e){this._status=O.kError;let t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=V.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=V.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new u(n.msg)}}var v=L;class I 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 b=this._xhr=new XMLHttpRequest;if(b.open("GET",r.url,!0),b.responseType="ms-stream",b.onreadystatechange=this._xhrOnReadyStateChange.bind(this),b.onerror=this._xhrOnError.bind(this),e.withCredentials&&(b.withCredentials=!0),typeof r.headers=="object"){let se=r.headers;for(let J in se)se.hasOwnProperty(J)&&b.setRequestHeader(J,se[J])}if(typeof this._config.headers=="object"){let se=this._config.headers;for(let J in se)se.hasOwnProperty(J)&&b.setRequestHeader(J,se[J])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,b.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 Z=null;class M extends me{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=O.kConnecting;let n=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(n=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!n?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let e=this._currentChunkSizeKB*1024,t=this._range.from+this._receivedLength,n=t+e;this._contentLength!=null&&n-this._range.from>=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(e,t){this._lastTimeLoaded=0;let n=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?n=this._currentRedirectedURL:e.redirectedURL!=null&&(n=e.redirectedURL));let i=this._seekHandler.getConfig(n,t);this._currentRequestURL=i.url;let r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onload=this._onLoad.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),typeof i.headers=="object"){let f=i.headers;for(let b in f)f.hasOwnProperty(b)&&r.setRequestHeader(b,f[b])}if(typeof this._config.headers=="object"){let f=this._config.headers;for(let b in f)f.hasOwnProperty(b)&&r.setRequestHeader(b,f[b])}r.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=O.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(e){let t=e.target;if(t.readyState===2){if(t.responseURL!=null){let n=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=O.kBuffering}else if(this._status=O.kError,this._onError)this._onError(V.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new u("RangeLoader: Http code invalid, "+t.status+" "+t.statusText)}}_onProgress(e){if(this._status===O.kError)return;if(this._contentLength===null){let n=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,n=!0;let i=e.total;this._internalAbort(),i!=null&i!==0&&(this._totalLength=i)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,n){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let t=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(t)}_normalizeSpeed(e){let t=this._chunkSizeKBList,n=t.length-1,i=0,r=0,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===O.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let t=this._speedSampler.lastSecondKBps;if(t===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(t=this._speedSampler.currentKBps)),t!==0){let 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=O.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(e){this._status=O.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=V.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=V.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new u(n.msg)}}var Q=M;class ce extends me{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(e){return!1}}constructor(){super("websocket-loader"),this.TAG="WebSocketLoader",this._needStash=!0,this._ws=null,this._requestAbort=!1,this._receivedLength=0}destroy(){this._ws&&this.abort(),super.destroy()}open(e){try{let t=this._ws=new self.WebSocket(e.url);t.binaryType="arraybuffer",t.onopen=this._onWebSocketOpen.bind(this),t.onclose=this._onWebSocketClose.bind(this),t.onmessage=this._onWebSocketMessage.bind(this),t.onerror=this._onWebSocketError.bind(this),this._status=O.kConnecting}catch(t){this._status=O.kError;let n={code:t.code,msg:t.message};if(this._onError)this._onError(V.EXCEPTION,n);else throw new u(n.msg)}}abort(){let e=this._ws;e&&(e.readyState===0||e.readyState===1)&&(this._requestAbort=!0,e.close()),this._ws=null,this._status=O.kComplete}_onWebSocketOpen(e){this._status=O.kBuffering}_onWebSocketClose(e){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=O.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(e){if(e.data instanceof ArrayBuffer)this._dispatchArrayBuffer(e.data);else if(e.data instanceof Blob){let t=new FileReader;t.onload=()=>{this._dispatchArrayBuffer(t.result)},t.readAsArrayBuffer(e.data)}else{this._status=O.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(this._onError)this._onError(V.EXCEPTION,t);else throw new u(t.msg)}}_dispatchArrayBuffer(e){let t=e,n=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}_onWebSocketError(e){this._status=O.kError;let t={code:e.code,msg:e.message};if(this._onError)this._onError(V.EXCEPTION,t);else throw new u(t.msg)}}var Ae=ce;class De{constructor(e){this._zeroStart=e||!1}getConfig(e,t){let n={};if(t.from!==0||t.to!==-1){let i;t.to!==-1?i=`bytes=${t.from.toString()}-${t.to.toString()}`:i=`bytes=${t.from.toString()}-`,n.Range=i}else this._zeroStart&&(n.Range="bytes=0-");return{url:e,headers:n}}removeURLParameters(e){return e}}var Pe=De;class Te{constructor(e,t){this._startName=e,this._endName=t}getConfig(e,t){let n=e;if(t.from!==0||t.to!==-1){let i=!0;n.indexOf("?")===-1&&(n+="?",i=!1),i&&(n+="&"),n+=`${this._startName}=${t.from.toString()}`,t.to!==-1&&(n+=`&${this._endName}=${t.to.toString()}`)}return{url:n,headers:{}}}removeURLParameters(e){let t=e.split("?")[0],n,i=e.indexOf("?");i!==-1&&(n=e.substring(i+1));let r="";if(n!=null&&n.length>0){let f=n.split("&");for(let b=0;b<f.length;b++){let se=f[b].split("="),J=b>0;se[0]!==this._startName&&se[0]!==this._endName&&(J&&(r+="&"),r+=f[b])}}return r.length===0?t:t+"?"+r}}var Se=Te;class Ke{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===Q?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if(e.seekType==="range")this._seekHandler=new Pe(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new Se(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(Q.isSupported())this._loaderClass=Q;else throw new u("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}}seek(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)}_internalSeek(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;let n={from:e,to:-1};this._currentRange={from:n.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,n),this._onSeeked&&this._onSeeked()}updateUrl(e){if(!e||typeof e!="string"||e.length===0)throw new 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),b=this._dispatchChunks(f,this._stashByteStart);if(b<f.byteLength){if(b>0){let se=new Uint8Array(f,b);r.set(se,0),this._stashUsed=se.byteLength,this._stashByteStart+=b}}else this._stashUsed=0,this._stashByteStart+=b;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 b=e.byteLength-f;b>this._bufferSize&&(this._expandBuffer(b),r=new Uint8Array(this._stashBuffer,0,this._bufferSize)),r.set(new Uint8Array(e,f),0),this._stashUsed+=b,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 b=new Uint8Array(this._stashBuffer,f);r.set(b,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=V.UNRECOVERABLE_EARLY_EOF),e){case V.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let n=this._currentRange.to+1;n<this._totalLength&&(g.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1));return}e=V.UNRECOVERABLE_EARLY_EOF;break}case V.UNRECOVERABLE_EARLY_EOF:case V.CONNECTING_TIMEOUT:case V.HTTP_STATUS_CODE_INVALID:case V.EXCEPTION:break}if(this._onError)this._onError(e,t);else throw new u("IOException: "+t.msg)}}var z=Ke;const st={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 Qe(){return Object.assign({},st)}class Ie{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let e=new z({},Qe()),t=e.loaderType;return e.destroy(),t=="fetch-stream-loader"||t=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let e=new z({},Qe()),t=e.loaderType;return e.destroy(),t}static supportNativeMediaPlayback(e){Ie.videoElement==null&&(Ie.videoElement=window.document.createElement("video"));let t=Ie.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=Ie.supportMSEH264Playback(),e.networkStreamIO=Ie.supportNetworkStreamIO(),e.networkLoaderName=Ie.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=Ie.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=Ie.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=Ie.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var pe=Ie,Le={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};class _e{static get forceGlobalTag(){return g.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){g.FORCE_GLOBAL_TAG=e,_e._notifyChange()}static get globalTag(){return g.GLOBAL_TAG}static set globalTag(e){g.GLOBAL_TAG=e,_e._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,_e._notifyChange()}static get enableDebug(){return g.ENABLE_DEBUG}static set enableDebug(e){g.ENABLE_DEBUG=e,_e._notifyChange()}static get enableVerbose(){return g.ENABLE_VERBOSE}static set enableVerbose(e){g.ENABLE_VERBOSE=e,_e._notifyChange()}static get enableInfo(){return g.ENABLE_INFO}static set enableInfo(e){g.ENABLE_INFO=e,_e._notifyChange()}static get enableWarn(){return g.ENABLE_WARN}static set enableWarn(e){g.ENABLE_WARN=e,_e._notifyChange()}static get enableError(){return g.ENABLE_ERROR}static set enableError(e){g.ENABLE_ERROR=e,_e._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=_e.emitter;if(e.listenerCount("change")>0){let t=_e.getConfig();e.emit("change",t)}}static registerListener(e){_e.emitter.addListener("change",e)}static removeListener(e){_e.emitter.removeListener("change",e)}static addLogListener(e){g.emitter.addListener("log",e),g.emitter.listenerCount("log")>0&&(g.ENABLE_CALLBACK=!0,_e._notifyChange())}static removeLogListener(e){g.emitter.removeListener("log",e),g.emitter.listenerCount("log")===0&&(g.ENABLE_CALLBACK=!1,_e._notifyChange())}}_e.emitter=new(k());var xe=_e;class Ct{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,b=i;for(t<e[0]&&(n=0,f=b+1);f<=b;)if(r=f+Math.floor((b-f)/2),r===i||t>=e[r]&&t<e[r+1]){n=r;break}else e[r]<t?f=r+1:b=r-1;return n}}var Je=Ct;function ft(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 vt(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(ft(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(ft(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&&ft(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 at=vt;let it=function(){let G=new ArrayBuffer(2);return new DataView(G).setInt16(0,256,!0),new Int16Array(G)[0]===256}();class ot{static parseScriptData(e,t,n){let i={};try{let r=ot.parseValue(e,t,n),f=ot.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=ot.parseString(e,t,n),r=ot.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 ot.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,!it),f;return r>0?f=at(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,!it),f;return r>0?f=at(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,!it),f=i.getInt16(8,!it);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),b,se=!1;try{switch(f){case 0:b=i.getFloat64(1,!it),r+=8;break;case 1:{b=!!i.getUint8(1),r+=1;break}case 2:{let J=ot.parseString(e,t+1,n-1);b=J.data,r+=J.size;break}case 3:{b={};let J=0;for((i.getUint32(n-4,!it)&16777215)===9&&(J=3);r<n-4;){let ue=ot.parseObject(e,t+r,n-r-J);if(ue.objectEnd)break;b[ue.data.name]=ue.data.value,r+=ue.size}r<=n-3&&(i.getUint32(r-1,!it)&16777215)===9&&(r+=3);break}case 8:{b={},r+=4;let J=0;for((i.getUint32(n-4,!it)&16777215)===9&&(J=3);r<n-8;){let ue=ot.parseVariable(e,t+r,n-r-J);if(ue.objectEnd)break;b[ue.data.name]=ue.data.value,r+=ue.size}r<=n-3&&(i.getUint32(r-1,!it)&16777215)===9&&(r+=3);break}case 9:b=void 0,r=1,se=!0;break;case 10:{b=[];let J=i.getUint32(1,!it);r+=4;for(let ue=0;ue<J;ue++){let Ne=ot.parseValue(e,t+r,n-r);b.push(Ne.data),r+=Ne.size}break}case 11:{let J=ot.parseDate(e,t+1,n-1);b=J.data,r+=J.size;break}case 12:{let J=ot.parseString(e,t+1,n-1);b=J.data,r+=J.size;break}default:r=n,g.w("AMF","Unsupported AMF value type "+f)}}catch(J){g.e("AMF",J.toString())}return{data:b,size:r,objectEnd:se}}}var kt=ot;class qe{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=qe;class N{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=N._ebsp2rbsp(e),n=new Re(t);n.readByte();let i=n.readByte();n.readByte();let r=n.readByte();n.readUEG();let f=N.getProfileString(i),b=N.getLevelString(r),se=1,J=420,ue=[0,420,422,444],Ne=8;if((i===100||i===110||i===122||i===244||i===44||i===83||i===86||i===118||i===128||i===138||i===144)&&(se=n.readUEG(),se===3&&n.readBits(1),se<=3&&(J=ue[se]),Ne=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let en=se!==3?8:12;for(let Qt=0;Qt<en;Qt++)n.readBool()&&(Qt<6?N._skipScalingList(n,16):N._skipScalingList(n,64))}n.readUEG();let Fe=n.readUEG();if(Fe===0)n.readUEG();else if(Fe===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 Oe=n.readUEG(),de=n.readUEG(),Y=n.readBits(1);Y===0&&n.readBits(1),n.readBits(1);let ee=0,be=0,Ce=0,ut=0;n.readBool()&&(ee=n.readUEG(),be=n.readUEG(),Ce=n.readUEG(),ut=n.readUEG());let Ft=1,ye=1,dt=0,Kt=!0,Vt=0,Mt=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?(Ft=Qt[en-1],ye=Qn[en-1]):en===255&&(Ft=n.readByte()<<8|n.readByte(),ye=n.readByte()<<8|n.readByte())}if(n.readBool()&&n.readBool(),n.readBool()&&(n.readBits(4),n.readBool()&&n.readBits(24)),n.readBool()&&(n.readUEG(),n.readUEG()),n.readBool()){let en=n.readBits(32),Qt=n.readBits(32);Kt=n.readBool(),Vt=Qt,Mt=en*2,dt=Vt/Mt}}let Yn=1;(Ft!==1||ye!==1)&&(Yn=Ft/ye);let rn=0,In=0;if(se===0)rn=1,In=2-Y;else{let en=se===3?1:2,Qt=se===1?2:1;rn=en,In=Qt*(2-Y)}let Nt=(Oe+1)*16,jn=(2-Y)*((de+1)*16);Nt-=(ee+be)*rn,jn-=(Ce+ut)*In;let Zn=Math.ceil(Nt*Yn);return n.destroy(),n=null,{profile_string:f,level_string:b,bit_depth:Ne,ref_frames:ie,chroma_format:J,chroma_format_string:N.getChromaFormatString(J),frame_rate:{fixed:Kt,fps:dt,fps_den:Mt,fps_num:Vt},sar_ratio:{width:Ft,height:ye},codec_size:{width:Nt,height:jn},present_size:{width:Zn,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=N,l={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 Je,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 Je}_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),b=r.getUint32(0,!i)&16777215;if(n+11+b+4>e.byteLength)break;if(f!==8&&f!==9&&f!==18){g.w(this.TAG,`Unsupported tag type ${f}, skipped`),n+=11+b+4;continue}let se=r.getUint8(4),J=r.getUint8(5),ue=r.getUint8(6),Ne=r.getUint8(7),Fe=ue|J<<8|se<<16|Ne<<24;(r.getUint32(7,!i)&16777215)!==0&&g.w(this.TAG,"Meet tag which has StreamID != 0!");let Oe=n+11;switch(f){case 8:this._parseAudioData(e,Oe,b,Fe);break;case 9:this._parseVideoData(e,Oe,b,Fe,t+n);break;case 18:this._parseScriptData(e,Oe,b);break}let de=r.getUint32(11+b,!i);de!==11+b&&g.w(this.TAG,`Invalid PrevTagSize ${de}`),n+=11+b+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=kt.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 b=f/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=b,this._referenceFrameRate.fps_num=f,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=b}}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,b=new DataView(e,t,n).getUint8(0),se=b>>>4;if(se!==2&&se!==10){this._onError(l.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+se);return}let J=0,ue=(b&12)>>>2;if(ue>=0&&ue<=4)J=this._flvSoundRateTable[ue];else{this._onError(l.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+ue);return}let Ne=(b&2)>>>1,Fe=b&1,ie=this._audioMetadata,Oe=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=Oe.id,ie.timescale=this._timescale,ie.duration=this._duration,ie.audioSampleRate=J,ie.channelCount=Fe===0?1:2),se===10){let de=this._parseAACAudioData(e,t+1,n-1);if(de==null)return;if(de.packetType===0){ie.config&&g.w(this.TAG,"Found another AudioSpecificConfig!");let Y=de.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(de.packetType===1){let Y=this._timestampBase+i,ee={unit:de.data,length:de.data.byteLength,dts:Y,pts:Y};Oe.samples.push(ee),Oe.length+=de.data.length}else g.e(this.TAG,`Flv: Unsupported AAC data type ${de.packetType}`)}else if(se===2){if(!ie.codec){let be=this._parseMP3AudioData(e,t+1,n-1,!0);if(be==null)return;ie.audioSampleRate=be.samplingRate,ie.channelCount=be.channelCount,ie.codec=be.codec,ie.originalCodec=be.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 Ce=this._mediaInfo;Ce.audioCodec=ie.codec,Ce.audioSampleRate=ie.audioSampleRate,Ce.audioChannelCount=ie.channelCount,Ce.audioDataRate=be.bitRate,Ce.hasVideo?Ce.videoCodec!=null&&(Ce.mimeType='video/x-flv; codecs="'+Ce.videoCodec+","+Ce.audioCodec+'"'):Ce.mimeType='video/x-flv; codecs="'+Ce.audioCodec+'"',Ce.isComplete()&&this._onMediaInfo(Ce)}let de=this._parseMP3AudioData(e,t+1,n-1,!1);if(de==null)return;let Y=this._timestampBase+i,ee={unit:de,length:de.byteLength,dts:Y,pts:Y};Oe.samples.push(ee),Oe.length+=de.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,b=0,se=null,J=0,ue=null;if(f=b=i[0]>>>3,J=(i[0]&7)<<1|i[1]>>>7,J<0||J>=this._mpegSamplingRates.length){this._onError(l.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Ne=this._mpegSamplingRates[J],Fe=(i[1]&120)>>>3;if(Fe<0||Fe>=8){this._onError(l.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}f===5&&(ue=(i[1]&7)<<1|i[2]>>>7,se=(i[2]&124)>>>2);let ie=self.navigator.userAgent.toLowerCase();return ie.indexOf("firefox")!==-1?J>=6?(f=5,r=new Array(4),ue=J-3):(f=2,r=new Array(2),ue=J):ie.indexOf("android")!==-1?(f=2,r=new Array(2),ue=J):(f=5,ue=J,r=new Array(4),J>=6?ue=J-3:Fe===1&&(f=2,r=new Array(2),ue=J)),r[0]=f<<3,r[0]|=(J&15)>>>1,r[1]=(J&15)<<7,r[1]|=(Fe&15)<<3,f===5&&(r[1]|=(ue&15)>>>1,r[2]=(ue&1)<<7,r[2]|=8,r[3]=0),{config:r,samplingRate:Ne,channelCount:Fe,codec:"mp4a.40."+f,originalCodec:"mp4a.40."+b}}_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),b=null;if(i){if(f[0]!==255)return;let se=f[1]>>>3&3,J=(f[1]&6)>>1,ue=(f[2]&240)>>>4,Ne=(f[2]&12)>>>2,ie=(f[3]>>>6&3)!==3?2:1,Oe=0,de=0,Y=34,ee="mp3";switch(se){case 0:Oe=this._mpegAudioV25SampleRateTable[Ne];break;case 2:Oe=this._mpegAudioV20SampleRateTable[Ne];break;case 3:Oe=this._mpegAudioV10SampleRateTable[Ne];break}switch(J){case 1:Y=34,ue<this._mpegAudioL3BitRateTable.length&&(de=this._mpegAudioL3BitRateTable[ue]);break;case 2:Y=33,ue<this._mpegAudioL2BitRateTable.length&&(de=this._mpegAudioL2BitRateTable[ue]);break;case 3:Y=32,ue<this._mpegAudioL1BitRateTable.length&&(de=this._mpegAudioL1BitRateTable[ue]);break}b={bitRate:de,samplingRate:Oe,channelCount:ie,codec:ee,originalCodec:ee}}else b=f;return b}_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],b=(f&240)>>>4,se=f&15;if(se!==7){this._onError(l.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${se}`);return}this._parseAVCVideoPacket(e,t+1,n-1,i,r,b)}_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 b=this._littleEndian,se=new DataView(e,t,n),J=se.getUint8(0),Ne=(se.getUint32(0,!b)&16777215)<<8>>8;if(J===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(J===1)this._parseAVCVideoData(e,t+4,n-4,i,r,f,Ne);else if(J!==2){this._onError(l.FORMAT_ERROR,`Flv: Invalid video packet type ${J}`);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,b=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 se=b.getUint8(0),J=b.getUint8(1),ue=b.getUint8(2),Ne=b.getUint8(3);if(se!==1||J===0){this._onError(l.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(b.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(l.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Fe=b.getUint8(5)&31;if(Fe===0){this._onError(l.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Fe>1&&g.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Fe}`);let ie=6;for(let de=0;de<Fe;de++){let Y=b.getUint16(ie,!f);if(ie+=2,Y===0)continue;let ee=new Uint8Array(e,t+ie,Y);ie+=Y;let be=c.parseSPS(ee);if(de!==0)continue;i.codecWidth=be.codec_size.width,i.codecHeight=be.codec_size.height,i.presentWidth=be.present_size.width,i.presentHeight=be.present_size.height,i.profile=be.profile_string,i.level=be.level_string,i.bitDepth=be.bit_depth,i.chromaFormat=be.chroma_format,i.sarRatio=be.sar_ratio,i.frameRate=be.frame_rate,(be.frame_rate.fixed===!1||be.frame_rate.fps_num===0||be.frame_rate.fps_den===0)&&(i.frameRate=this._referenceFrameRate);let Ce=i.frameRate.fps_den,ut=i.frameRate.fps_num;i.refSampleDuration=i.timescale*(Ce/ut);let dn=ee.subarray(1,4),Ft="avc1.";for(let dt=0;dt<3;dt++){let Kt=dn[dt].toString(16);Kt.length<2&&(Kt="0"+Kt),Ft+=Kt}i.codec=Ft;let ye=this._mediaInfo;ye.width=i.codecWidth,ye.height=i.codecHeight,ye.fps=i.frameRate.fps,ye.profile=i.profile,ye.level=i.level,ye.refFrames=be.ref_frames,ye.chromaFormat=be.chroma_format_string,ye.sarNum=i.sarRatio.width,ye.sarDen=i.sarRatio.height,ye.videoCodec=Ft,ye.hasAudio?ye.audioCodec!=null&&(ye.mimeType='video/x-flv; codecs="'+ye.videoCodec+","+ye.audioCodec+'"'):ye.mimeType='video/x-flv; codecs="'+ye.videoCodec+'"',ye.isComplete()&&this._onMediaInfo(ye)}let Oe=b.getUint8(ie);if(Oe===0){this._onError(l.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Oe>1&&g.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${Oe}`);ie++;for(let de=0;de<Oe;de++){let Y=b.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,b){let se=this._littleEndian,J=new DataView(e,t,n),ue=[],Ne=0,Fe=0;const ie=this._naluLengthSize;let Oe=this._timestampBase+i,de=f===1;for(;Fe<n;){if(Fe+4>=n){g.w(this.TAG,`Malformed Nalu near timestamp ${Oe}, offset = ${Fe}, dataSize = ${n}`);break}let Y=J.getUint32(Fe,!se);if(ie===3&&(Y>>>=8),Y>n-ie){g.w(this.TAG,`Malformed Nalus near timestamp ${Oe}, NaluSize > DataSize!`);return}let ee=J.getUint8(Fe+ie)&31;ee===5&&(de=!0);let be=new Uint8Array(e,t+Fe,ie+Y),Ce={type:ee,data:be};ue.push(Ce),Ne+=be.byteLength,Fe+=ie+Y}if(ue.length){let Y=this._videoTrack,ee={units:ue,length:Ne,isKeyframe:de,dts:Oe,cts:b,pts:Oe+b};de&&(ee.fileposition=r),Y.samples.push(ee),Y.length+=Ne}}}var y=_;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 b=0;b<r;b++)t+=i[b].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 b=0;b<r;b++)n.set(i[b],f),f+=i[b].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),b=a.trun(e,f.byteLength+16+16+8+16+8+8);return a.box(a.types.traf,i,r,b,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 b=0;b<i;b++){let se=n[b].duration,J=n[b].size,ue=n[b].flags,Ne=n[b].cts;f.set([se>>>24&255,se>>>16&255,se>>>8&255,se&255,J>>>24&255,J>>>16&255,J>>>8&255,J&255,ue.isLeading<<2|ue.dependsOn,ue.isDependedOn<<6|ue.hasRedundancy<<4|ue.isNonSync,0,0,Ne>>>24&255,Ne>>>16&255,Ne>>>8&255,Ne&255],12+16*b)}return a.box(a.types.trun,f)}static mdat(e){return a.box(a.types.mdat,e)}}a.init();var j=a;class X{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 oe=X;class ge{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 he{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 fe{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,b=i;for(e<t[0].dts&&(n=0,f=b+1);f<=b;)if(r=f+Math.floor((b-f)/2),r===i||e>=t[r].dts&&e<t[r+1].dts){n=r;break}else t[r].dts<e?f=r+1:b=r-1;return this._list[n]}}class le{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,b=0;if(e<t[0].originalBeginDts)return b=-1,b;for(;r<=f;)if(i=r+Math.floor((f-r)/2),i===n||e>t[i].lastSample.originalDts&&e<t[i+1].originalBeginDts){b=i;break}else t[i].originalBeginDts<e?r=i+1:f=i-1;return b}_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 je{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 le("audio"),this._videoSegmentInfoList=new le("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(E.chrome&&(E.version.major<50||E.version.major===50&&E.version.build<2661)),this._fillSilentAfterSeek=E.msedge||E.msie,this._mp3UseMpegAudio=!E.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=j.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=j.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,b=-1,se=-1,J=this._audioMeta.refSampleDuration,ue=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Ne=this._dtsBaseInited&&this._audioNextDts===void 0,Fe=!1;if(!i||i.length===0||i.length===1&&!t)return;let ie=0,Oe=null,de=0;ue?(ie=0,de=n.length):(ie=8,de=8+n.length);let Y=null;if(i.length>1&&(Y=i.pop(),de-=Y.length),this._audioStashedLastSample!=null){let ye=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(ye),de+=ye.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"&&(Fe=!0);else{let ye=this._audioSegmentInfoList.getLastSampleBefore(ee);if(ye!=null){let dt=ee-(ye.originalDts+ye.duration);dt<=3&&(dt=0);let Kt=ye.dts+ye.duration+dt;r=ee-Kt}else r=0}if(Fe){let ye=ee-r,dt=this._videoSegmentInfoList.getLastSegmentBefore(ee);if(dt!=null&&dt.beginDts<ye){let Kt=oe.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Kt){let Vt=dt.beginDts,Mt=ye-dt.beginDts;g.v(this.TAG,`InsertPrefixSilentAudio: dts: ${Vt}, duration: ${Mt}`),i.unshift({unit:Kt,dts:Vt,pts:Vt}),de+=Kt.byteLength}}else Fe=!1}let be=[];for(let ye=0;ye<i.length;ye++){let dt=i[ye],Kt=dt.unit,Vt=dt.dts-this._dtsBase,Mt=Vt-r;f===-1&&(f=Mt);let cn=0;ye!==i.length-1?cn=i[ye+1].dts-this._dtsBase-r-Mt:Y!=null?cn=Y.dts-this._dtsBase-r-Mt:be.length>=1?cn=be[be.length-1].duration:cn=Math.floor(J);let Yn=!1,rn=null;if(cn>J*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!E.safari){Yn=!0;let In=Math.abs(cn-J),Nt=Math.ceil(In/J),jn=Mt+J;g.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
dts: ${Mt+cn} ms, expected: ${Mt+Math.round(J)} ms, delta: ${Math.round(In)} ms, generate: ${Nt} frames`);let Zn=oe.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Zn==null&&(g.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Zn=Kt),rn=[];for(let Qt=0;Qt<Nt;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:Zn,size:Zn.byteLength,duration:0,originalDts:Vt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};rn.push(vi),de+=vi.size,jn+=J}let en=rn[rn.length-1];en.duration=Mt+cn-en.dts,cn=Math.round(J)}be.push({dts:Mt,pts:Mt,cts:0,unit:dt.unit,size:dt.unit.byteLength,duration:cn,originalDts:Vt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Yn&&be.push.apply(be,rn)}ue?Oe=new Uint8Array(de):(Oe=new Uint8Array(de),Oe[0]=de>>>24&255,Oe[1]=de>>>16&255,Oe[2]=de>>>8&255,Oe[3]=de&255,Oe.set(j.types.mdat,4));for(let ye=0;ye<be.length;ye++){let dt=be[ye].unit;Oe.set(dt,ie),ie+=dt.byteLength}let Ce=be[be.length-1];b=Ce.dts+Ce.duration,this._audioNextDts=b;let ut=new he;ut.beginDts=f,ut.endDts=b,ut.beginPts=f,ut.endPts=b,ut.originalBeginDts=be[0].originalDts,ut.originalEndDts=Ce.originalDts+Ce.duration,ut.firstSample=new ge(be[0].dts,be[0].pts,be[0].duration,be[0].originalDts,!1),ut.lastSample=new ge(Ce.dts,Ce.pts,Ce.duration,Ce.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(ut),n.samples=be,n.sequenceNumber++;let dn=null;ue?dn=new Uint8Array:dn=j.moof(n,f),n.samples=[],n.length=0;let Ft={type:"audio",data:this._mergeBoxes(dn,Oe).buffer,sampleCount:be.length,info:ut};ue&&Ne&&(Ft.timestampOffset=f),this._onMediaSegment("audio",Ft)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,i=n.samples,r,f=-1,b=-1,se=-1,J=-1;if(!i||i.length===0||i.length===1&&!t)return;let ue=8,Ne=null,Fe=8+e.length,ie=null;if(i.length>1&&(ie=i.pop(),Fe-=ie.length),this._videoStashedLastSample!=null){let Ce=this._videoStashedLastSample;this._videoStashedLastSample=null,i.unshift(Ce),Fe+=Ce.length}ie!=null&&(this._videoStashedLastSample=ie);let Oe=i[0].dts-this._dtsBase;if(this._videoNextDts)r=Oe-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())r=0;else{let Ce=this._videoSegmentInfoList.getLastSampleBefore(Oe);if(Ce!=null){let ut=Oe-(Ce.originalDts+Ce.duration);ut<=3&&(ut=0);let dn=Ce.dts+Ce.duration+ut;r=Oe-dn}else r=0}let de=new he,Y=[];for(let Ce=0;Ce<i.length;Ce++){let ut=i[Ce],dn=ut.dts-this._dtsBase,Ft=ut.isKeyframe,ye=dn-r,dt=ut.cts,Kt=ye+dt;f===-1&&(f=ye,se=Kt);let Vt=0;if(Ce!==i.length-1?Vt=i[Ce+1].dts-this._dtsBase-r-ye:ie!=null?Vt=ie.dts-this._dtsBase-r-ye:Y.length>=1?Vt=Y[Y.length-1].duration:Vt=Math.floor(this._videoMeta.refSampleDuration),Ft){let Mt=new ge(ye,Kt,Vt,ut.dts,!0);Mt.fileposition=ut.fileposition,de.appendSyncPoint(Mt)}Y.push({dts:ye,pts:Kt,cts:dt,units:ut.units,size:ut.length,isKeyframe:Ft,duration:Vt,originalDts:dn,flags:{isLeading:0,dependsOn:Ft?2:1,isDependedOn:Ft?1:0,hasRedundancy:0,isNonSync:Ft?0:1}})}Ne=new Uint8Array(Fe),Ne[0]=Fe>>>24&255,Ne[1]=Fe>>>16&255,Ne[2]=Fe>>>8&255,Ne[3]=Fe&255,Ne.set(j.types.mdat,4);for(let Ce=0;Ce<Y.length;Ce++){let ut=Y[Ce].units;for(;ut.length;){let Ft=ut.shift().data;Ne.set(Ft,ue),ue+=Ft.byteLength}}let ee=Y[Y.length-1];if(b=ee.dts+ee.duration,J=ee.pts+ee.duration,this._videoNextDts=b,de.beginDts=f,de.endDts=b,de.beginPts=se,de.endPts=J,de.originalBeginDts=Y[0].originalDts,de.originalEndDts=ee.originalDts+ee.duration,de.firstSample=new ge(Y[0].dts,Y[0].pts,Y[0].duration,Y[0].originalDts,Y[0].isKeyframe),de.lastSample=new ge(ee.dts,ee.pts,ee.duration,ee.originalDts,ee.isKeyframe),this._isLive||this._videoSegmentInfoList.append(de),n.samples=Y,n.sequenceNumber++,this._forceFirstIDR){let Ce=Y[0].flags;Ce.dependsOn=2,Ce.isNonSync=0}let be=j.moof(n,f);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(be,Ne).buffer,sampleCount:Y.length,info:de})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var Ue=je,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 yt{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 z(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=y.probe(e)).match){this._demuxer=new y(n,this._config),this._remuxer||(this._remuxer=new Ue(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,l.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,Je.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,Je.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,E.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 xt=yt,et=function(G){let e="TransmuxingWorker",t=null,n=de.bind(this);x.install(),G.addEventListener("message",function(Y){switch(Y.data.cmd){case"init":t=new xt(Y.data.param[0],Y.data.param[1]),t.on(K.IO_ERROR,Fe.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,b.bind(this)),t.on(K.MEDIA_INFO,se.bind(this)),t.on(K.METADATA_ARRIVED,J.bind(this)),t.on(K.SCRIPTDATA_ARRIVED,ue.bind(this)),t.on(K.STATISTICS_INFO,Ne.bind(this)),t.on(K.RECOMMEND_SEEKPOINT,Oe.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;xe.applyConfig(ee),ee.enableCallback===!0?xe.addLogListener(n):xe.removeLogListener(n);break}}});function i(Y,ee){let be={msg:K.INIT_SEGMENT,data:{type:Y,data:ee}};G.postMessage(be,[ee.data])}function r(Y,ee){let be={msg:K.MEDIA_SEGMENT,data:{type:Y,data:ee}};G.postMessage(be,[ee.data])}function f(){let Y={msg:K.LOADING_COMPLETE};G.postMessage(Y)}function b(){let Y={msg:K.RECOVERED_EARLY_EOF};G.postMessage(Y)}function se(Y){let ee={msg:K.MEDIA_INFO,data:Y};G.postMessage(ee)}function J(Y){let ee={msg:K.METADATA_ARRIVED,data:Y};G.postMessage(ee)}function ue(Y){let ee={msg:K.SCRIPTDATA_ARRIVED,data:Y};G.postMessage(ee)}function Ne(Y){let ee={msg:K.STATISTICS_INFO,data:Y};G.postMessage(ee)}function Fe(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 Oe(Y){G.postMessage({msg:K.RECOMMEND_SEEKPOINT,data:Y})}function de(Y,ee){G.postMessage({msg:"logcat_callback",data:{type:Y,logcat:ee}})}};class mt{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(k()),t.enableWorker&&typeof Worker!="undefined")try{let n=o(18034);this._worker=n(et),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)},xe.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:xe.getConfig()})}catch(n){g.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new xt(e,t)}else this._controller=new xt(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"}),xe.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,Je.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 It=mt,wt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Ot{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 fe}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(wt.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(),E.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),b=n.buffered.end(r);this._pendingRemoveRanges[t].push({start:f,end:b})}if(n.updating||this._doRemoveRanges(),E.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 b=i.start(f),se=i.end(f);if(b<=e&&e<se+3){if(e-b>=this._config.autoCleanupMaxBackwardDuration){r=!0;let J=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:b,end:J})}}else se<e&&(r=!0,this._pendingRemoveRanges[t].push({start:b,end:se}))}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(wt.BUFFER_FULL),this._isBufferFull=!0):(g.e(this.TAG,i.message),this._emitter.emit(wt.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(wt.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(wt.UPDATE_END)}_onSourceBufferError(e){g.e(this.TAG,`SourceBuffer Error: ${e}`)}}var Ht=Ot;const $t={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Ee={NETWORK_EXCEPTION:V.EXCEPTION,NETWORK_STATUS_CODE_INVALID:V.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:V.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:V.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:l.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:l.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:l.CODEC_UNSUPPORTED};class We{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(k()),this._config=Qe(),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=E.chrome&&(E.version.major<50||E.version.major===50&&E.version.build<2661);this._alwaysSeekKeyframe=!!(n||E.msedge||E.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===Le.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Le.MEDIA_INFO,this.mediaInfo)}):e===Le.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Le.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new Ht(this._config),this._msectl.on(wt.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(wt.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(wt.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(wt.ERROR,t=>{this._emitter.emit(Le.ERROR,$t.MEDIA_ERROR,Ee.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 It(this._mediaDataSource,this._config),this._transmuxer.on(K.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(K.MEDIA_SEGMENT,(e,t)=>{if(this._msectl.appendMediaSegment(t),this._config.lazyLoad&&!this._config.isLive){let n=this._mediaElement.currentTime;t.info.endDts>=(n+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(g.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(K.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(Le.LOADING_COMPLETE)}),this._transmuxer.on(K.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(Le.RECOVERED_EARLY_EOF)}),this._transmuxer.on(K.IO_ERROR,(e,t)=>{this._emitter.emit(Le.ERROR,$t.NETWORK_ERROR,e,t)}),this._transmuxer.on(K.DEMUX_ERROR,(e,t)=>{this._emitter.emit(Le.ERROR,$t.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(K.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(Le.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(K.METADATA_ARRIVED,e=>{this._emitter.emit(Le.METADATA_ARRIVED,e)}),this._transmuxer.on(K.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(Le.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(K.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(Le.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(K.RECOMMEND_SEEKPOINT,e=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e/1e3)}),this._transmuxer.open()}}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,n=0,i=0;if(this._mediaElement.getVideoPlaybackQuality){let r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,i=0;for(let r=0;r<e.length;r++){let f=e.start(r),b=e.end(r);if(f<=t&&t<b){n=f,i=b;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||E.safari)&&(n=!0,i=E.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||E.safari){this._requestSetTime=!0,this._mediaElement.currentTime=E.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 lt=We;class Pt{constructor(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(k()),this._config=Qe(),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===Le.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Le.MEDIA_INFO,this.mediaInfo)}):e===Le.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Le.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new 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(Le.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(Le.STATISTICS_INFO,this.statisticsInfo)}}var Zt=Pt;x.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 lt(t,e);default:return new Zt(t,e)}}function Lt(){return pe.supportMSEH264Playback()}function Xt(){return pe.getFeatureList()}let ke={};ke.createPlayer=Wt,ke.isSupported=Lt,ke.getFeatureList=Xt,ke.BaseLoader=me,ke.LoaderStatus=O,ke.LoaderErrors=V,ke.Events=Le,ke.ErrorTypes=$t,ke.ErrorDetails=Ee,ke.FlvPlayer=lt,ke.NativePlayer=Zt,ke.LoggingControl=xe,Object.defineProperty(ke,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Cn=ke},35874:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return d}});var s=o(67294),x=o(91034),T=o(94184),k=o.n(T),A=o(87462),g=o(4942),q=o(97685),te=o(45987),u=o(62709),P=o(71002),ne=o(12060);function W(l,m,R){var h=React.useRef({});return(!("value"in h.current)||R(h.current.condition,m))&&(h.current.value=l(),h.current.condition=m),h.current.value}function O(l,m){typeof l=="function"?l(m):(0,P.Z)(l)==="object"&&l&&"current"in l&&(l.current=m)}function V(){for(var l=arguments.length,m=new Array(l),R=0;R<l;R++)m[R]=arguments[R];var h=m.filter(function(_){return _});return h.length<=1?h[0]:function(_){m.forEach(function(y){O(y,_)})}}function me(){for(var l=arguments.length,m=new Array(l),R=0;R<l;R++)m[R]=arguments[R];return useMemo(function(){return V.apply(void 0,m)},m,function(h,_){return h.length===_.length&&h.every(function(y,a){return y===_[a]})})}function re(l){var m,R,h=(0,ne.isMemo)(l)?l.type.type:l.type;return!(typeof h=="function"&&!((m=h.prototype)!==null&&m!==void 0&&m.render)||typeof l=="function"&&!((R=l.prototype)!==null&&R!==void 0&&R.render))}var $={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>=$.F1&&R<=$.F12)return!1;switch(R){case $.ALT:case $.CAPS_LOCK:case $.CONTEXT_MENU:case $.CTRL:case $.DOWN:case $.END:case $.ESC:case $.HOME:case $.INSERT:case $.LEFT:case $.MAC_FF_META:case $.META:case $.NUMLOCK:case $.NUM_CENTER:case $.PAGE_DOWN:case $.PAGE_UP:case $.PAUSE:case $.PRINT_SCREEN:case $.RIGHT:case $.SHIFT:case $.UP:case $.WIN_KEY:case $.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(m){if(m>=$.ZERO&&m<=$.NINE||m>=$.NUM_ZERO&&m<=$.NUM_MULTIPLY||m>=$.A&&m<=$.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&m===0)return!0;switch(m){case $.SPACE:case $.QUESTION_MARK:case $.NUM_PLUS:case $.NUM_MINUS:case $.NUM_PERIOD:case $.NUM_DIVISION:case $.SEMICOLON:case $.DASH:case $.EQUALS:case $.COMMA:case $.PERIOD:case $.SLASH:case $.APOSTROPHE:case $.SINGLE_QUOTE:case $.OPEN_SQUARE_BRACKET:case $.BACKSLASH:case $.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},E=$,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 L=0,v=new Map;function I(l){v.delete(l)}var Z=function(m){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;L+=1;var h=L;function _(y){if(y===0)I(h),m();else{var a=w(function(){_(y-1)});v.set(h,a)}}return _(R),h};Z.cancel=function(l){var m=v.get(l);return I(m),S(m)};var M=Z,Q=E.ESC,ce=E.TAB;function Ae(l){var m=l.visible,R=l.triggerRef,h=l.onVisibleChange,_=l.autoFocus,y=l.overlayRef,a=s.useRef(!1),j=function(){if(m){var he,fe;(he=R.current)===null||he===void 0||(fe=he.focus)===null||fe===void 0||fe.call(he),h==null||h(!1)}},X=function(){var he;return(he=y.current)!==null&&he!==void 0&&he.focus?(y.current.focus(),a.current=!0,!0):!1},oe=function(he){switch(he.keyCode){case Q:j();break;case ce:{var fe=!1;a.current||(fe=X()),fe?he.preventDefault():j();break}}};s.useEffect(function(){return m?(window.addEventListener("keydown",oe),_&&M(X,3),function(){window.removeEventListener("keydown",oe),a.current=!1}):function(){a.current=!1}},[m])}var De=(0,s.forwardRef)(function(l,m){var R=l.overlay,h=l.arrow,_=l.prefixCls,y=(0,s.useMemo)(function(){var j;return typeof R=="function"?j=R():j=R,j},[R]),a=V(m,y==null?void 0:y.ref);return s.createElement(s.Fragment,null,h&&s.createElement("div",{className:"".concat(_,"-arrow")}),s.cloneElement(y,{ref:re(y)?a:void 0}))}),Pe=De,Te={adjustX:1,adjustY:1},Se=[0,0],Ke={topLeft:{points:["bl","tl"],overflow:Te,offset:[0,-4],targetOffset:Se},top:{points:["bc","tc"],overflow:Te,offset:[0,-4],targetOffset:Se},topRight:{points:["br","tr"],overflow:Te,offset:[0,-4],targetOffset:Se},bottomLeft:{points:["tl","bl"],overflow:Te,offset:[0,4],targetOffset:Se},bottom:{points:["tc","bc"],overflow:Te,offset:[0,4],targetOffset:Se},bottomRight:{points:["tr","br"],overflow:Te,offset:[0,4],targetOffset:Se}},z=Ke,st=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Qe(l,m){var R,h=l.arrow,_=h===void 0?!1:h,y=l.prefixCls,a=y===void 0?"rc-dropdown":y,j=l.transitionName,X=l.animation,oe=l.align,ge=l.placement,he=ge===void 0?"bottomLeft":ge,fe=l.placements,le=fe===void 0?z:fe,je=l.getPopupContainer,Ue=l.showAction,rt=l.hideAction,K=l.overlayClassName,yt=l.overlayStyle,xt=l.visible,Rt=l.trigger,et=Rt===void 0?["hover"]:Rt,mt=l.autoFocus,It=l.overlay,Bt=l.children,wt=l.onVisibleChange,Ot=(0,te.Z)(l,st),Ht=s.useState(),$t=(0,q.Z)(Ht,2),Ee=$t[0],We=$t[1],lt="visible"in l?xt:Ee,Pt=s.useRef(null),Zt=s.useRef(null),Wt=s.useRef(null);s.useImperativeHandle(m,function(){return Pt.current});var Lt=function(r){We(r),wt==null||wt(r)};Ae({visible:lt,triggerRef:Wt,onVisibleChange:Lt,autoFocus:mt,overlayRef:Zt});var Xt=function(r){var f=l.onOverlayClick;We(!1),f&&f(r)},ke=function(){return s.createElement(Pe,{ref:Zt,overlay:It,prefixCls:a,arrow:_})},Cn=function(){return typeof It=="function"?ke:ke()},G=function(){var r=l.minOverlayWidthMatchTrigger,f=l.alignPoint;return"minOverlayWidthMatchTrigger"in l?r:!f},e=function(){var r=l.openClassName;return r!==void 0?r:"".concat(a,"-open")},t=s.cloneElement(Bt,{className:k()((R=Bt.props)===null||R===void 0?void 0:R.className,lt&&e()),ref:re(Bt)?V(Wt,Bt.ref):void 0}),n=rt;return!n&&et.indexOf("contextMenu")!==-1&&(n=["click"]),s.createElement(u.Z,(0,A.Z)({builtinPlacements:le},Ot,{prefixCls:a,ref:Pt,popupClassName:k()(K,(0,g.Z)({},"".concat(a,"-show-arrow"),_)),popupStyle:yt,action:et,showAction:Ue,hideAction:n,popupPlacement:he,popupAlign:oe,popupTransitionName:j,popupAnimation:X,popupVisible:lt,stretch:G()?"minWidth":"",popup:Cn(),onPopupVisibleChange:Lt,onPopupClick:Xt,getPopupContainer:je}),t)}var Ie=s.forwardRef(Qe),pe=Ie,Me=o(60276),Le=o(5663),_e=o(10366),xe=o(80636),Ct=o(8745),Je=o(96159),ft=o(53124),vt=o(68508),at=o(76529),it=o(46605),ot=o(66748);const kt=null,qe=l=>{const{menu:m,arrow:R,prefixCls:h,children:_,trigger:y,disabled:a,dropdownRender:j,getPopupContainer:X,overlayClassName:oe,rootClassName:ge,open:he,onOpenChange:fe,visible:le,onVisibleChange:je,mouseEnterDelay:Ue=.15,mouseLeaveDelay:rt=.1,autoAdjustOverflow:K=!0,placement:yt="",overlay:xt,transitionName:Rt}=l,{getPopupContainer:et,getPrefixCls:mt,direction:It}=s.useContext(ft.E_),Bt=s.useMemo(()=>{const t=mt();return Rt!==void 0?Rt:yt.includes("top")?`${t}-slide-down`:`${t}-slide-up`},[mt,yt,Rt]),wt=s.useMemo(()=>yt?yt.includes("Center")?yt.slice(0,yt.indexOf("Center")):yt:It==="rtl"?"bottomRight":"bottomLeft",[yt,It]),Ot=mt("dropdown",h),[Ht,$t]=(0,ot.Z)(Ot),[,Ee]=(0,it.Z)(),We=s.Children.only(_),lt=(0,Je.Tm)(We,{className:k()(`${Ot}-trigger`,{[`${Ot}-rtl`]:It==="rtl"},We.props.className),disabled:a}),Pt=a?[]:y;let Zt;Pt&&Pt.includes("contextMenu")&&(Zt=!0);const[Wt,Lt]=(0,Le.Z)(!1,{value:he!=null?he:le}),Xt=(0,Me.useEvent)(t=>{fe==null||fe(t),je==null||je(t),Lt(t)}),ke=k()(oe,ge,$t,{[`${Ot}-rtl`]:It==="rtl"}),Cn=(0,xe.Z)({arrowPointAtCenter:typeof R=="object"&&R.pointAtCenter,autoAdjustOverflow:K,offset:Ee.marginXXS,arrowWidth:R?Ee.sizePopupArrow:0,borderRadius:Ee.borderRadius}),G=s.useCallback(()=>{Lt(!1)},[]),e=()=>{let t;return m!=null&&m.items?t=s.createElement(vt.default,Object.assign({},m)):typeof xt=="function"?t=xt():t=xt,j&&(t=j(t)),t=s.Children.only(typeof t=="string"?s.createElement("span",null,t):t),s.createElement(at.J,{prefixCls:`${Ot}-menu`,expandIcon:s.createElement("span",{className:`${Ot}-menu-submenu-arrow`},s.createElement(x.Z,{className:`${Ot}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:G,validator:n=>{let{mode:i}=n}},t)};return Ht(s.createElement(pe,Object.assign({alignPoint:Zt},(0,_e.Z)(l,["rootClassName"]),{mouseEnterDelay:Ue,mouseLeaveDelay:rt,visible:Wt,builtinPlacements:Cn,arrow:!!R,overlayClassName:ke,prefixCls:Ot,getPopupContainer:X||et,transitionName:Bt,trigger:Pt,overlay:e,placement:wt,onVisibleChange:Xt}),lt))};function Re(l){return Object.assign(Object.assign({},l),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const N=(0,Ct.Z)(qe,"dropdown",l=>l,Re),c=l=>s.createElement(N,Object.assign({},l),s.createElement("span",null));qe._InternalPanelDoNotUseOrYouWillBeFired=c;var d=qe},85418:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return me}});var s=o(35874),x=o(94184),T=o.n(x),k=o(67294),A=o(25877),g=o(71577),q=o(53124),te=o(93421),u=o(4173),P=o(66748),ne=function(re,$){var E={};for(var w in re)Object.prototype.hasOwnProperty.call(re,w)&&$.indexOf(w)<0&&(E[w]=re[w]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,w=Object.getOwnPropertySymbols(re);S<w.length;S++)$.indexOf(w[S])<0&&Object.prototype.propertyIsEnumerable.call(re,w[S])&&(E[w[S]]=re[w[S]]);return E};const W=re=>{const{getPopupContainer:$,getPrefixCls:E,direction:w}=k.useContext(q.E_),{prefixCls:S,type:L="default",danger:v,disabled:I,loading:Z,onClick:M,htmlType:Q,children:ce,className:Ae,menu:De,arrow:Pe,autoFocus:Te,overlay:Se,trigger:Ke,align:z,open:st,onOpenChange:Qe,placement:Ie,getPopupContainer:pe,href:Me,icon:Le=k.createElement(A.Z,null),title:_e,buttonsRender:xe=a=>a,mouseEnterDelay:Ct,mouseLeaveDelay:Je,overlayClassName:ft,overlayStyle:vt,destroyPopupOnHide:at,dropdownRender:it}=re,ot=ne(re,["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"]),kt=E("dropdown",S),qe=`${kt}-button`,[Re,N]=(0,P.Z)(kt),c={menu:De,arrow:Pe,autoFocus:Te,align:z,disabled:I,trigger:I?[]:Ke,onOpenChange:Qe,getPopupContainer:pe||$,mouseEnterDelay:Ct,mouseLeaveDelay:Je,overlayClassName:ft,overlayStyle:vt,destroyPopupOnHide:at,dropdownRender:it},{compactSize:d,compactItemClassnames:l}=(0,u.ri)(kt,w),m=T()(qe,l,Ae,N);"overlay"in re&&(c.overlay=Se),"open"in re&&(c.open=st),"placement"in re?c.placement=Ie:c.placement=w==="rtl"?"bottomLeft":"bottomRight";const R=k.createElement(g.ZP,{type:L,danger:v,disabled:I,loading:Z,onClick:M,htmlType:Q,href:Me,title:_e},ce),h=k.createElement(g.ZP,{type:L,danger:v,icon:Le}),[_,y]=xe([R,h]);return Re(k.createElement(te.Z.Compact,Object.assign({className:m,size:d,block:!0},ot),_,k.createElement(s.Z,Object.assign({},c),y)))};W.__ANT_BUTTON=!0;var O=W;const V=s.Z;V.Button=O;var me=V},66748:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return ne}});var s=o(14747),x=o(67771),T=o(33297),k=o(50438),A=o(97414),g=o(67968),q=o(45503),u=W=>{const{componentCls:O,menuCls:V,colorError:me,colorTextLightSolid:re}=W,$=`${V}-item`;return{[`${O}, ${O}-menu-submenu`]:{[`${V} ${$}`]:{[`&${$}-danger:not(${$}-disabled)`]:{color:me,"&:hover":{color:re,backgroundColor:me}}}}}};const P=W=>{const{componentCls:O,menuCls:V,zIndexPopup:me,dropdownArrowDistance:re,sizePopupArrow:$,antCls:E,iconCls:w,motionDurationMid:S,dropdownPaddingVertical:L,fontSize:v,dropdownEdgeChildPadding:I,colorTextDisabled:Z,fontSizeIcon:M,controlPaddingHorizontal:Q,colorBgElevated:ce}=W;return[{[O]:Object.assign(Object.assign({},(0,s.Wf)(W)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:me,display:"block","&::before":{position:"absolute",insetBlock:-re+$/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${E}-btn`]:{[`& > ${w}-down, & > ${E}-btn-icon > ${w}-down`]:{fontSize:M}},[`${O}-wrap`]:{position:"relative",[`${E}-btn > ${w}-down`]:{fontSize:M},[`${w}-down::before`]:{transition:`transform ${S}`}},[`${O}-wrap-open`]:{[`${w}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${E}-slide-down-enter${E}-slide-down-enter-active${O}-placement-bottomLeft,
&${E}-slide-down-appear${E}-slide-down-appear-active${O}-placement-bottomLeft,
&${E}-slide-down-enter${E}-slide-down-enter-active${O}-placement-bottom,
&${E}-slide-down-appear${E}-slide-down-appear-active${O}-placement-bottom,
&${E}-slide-down-enter${E}-slide-down-enter-active${O}-placement-bottomRight,
&${E}-slide-down-appear${E}-slide-down-appear-active${O}-placement-bottomRight`]:{animationName:x.fJ},[`&${E}-slide-up-enter${E}-slide-up-enter-active${O}-placement-topLeft,
&${E}-slide-up-appear${E}-slide-up-appear-active${O}-placement-topLeft,
&${E}-slide-up-enter${E}-slide-up-enter-active${O}-placement-top,
&${E}-slide-up-appear${E}-slide-up-appear-active${O}-placement-top,
&${E}-slide-up-enter${E}-slide-up-enter-active${O}-placement-topRight,
&${E}-slide-up-appear${E}-slide-up-appear-active${O}-placement-topRight`]:{animationName:x.Qt},[`&${E}-slide-down-leave${E}-slide-down-leave-active${O}-placement-bottomLeft,
&${E}-slide-down-leave${E}-slide-down-leave-active${O}-placement-bottom,
&${E}-slide-down-leave${E}-slide-down-leave-active${O}-placement-bottomRight`]:{animationName:x.Uw},[`&${E}-slide-up-leave${E}-slide-up-leave-active${O}-placement-topLeft,
&${E}-slide-up-leave${E}-slide-up-leave-active${O}-placement-top,
&${E}-slide-up-leave${E}-slide-up-leave-active${O}-placement-topRight`]:{animationName:x.ly}})},(0,A.ZP)(W,{colorBg:ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${O} ${V}`]:{position:"relative",margin:0},[`${V}-submenu-popup`]:{position:"absolute",zIndex:me,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${O}, ${O}-menu-submenu`]:{[V]:Object.assign(Object.assign({padding:I,listStyleType:"none",backgroundColor:ce,backgroundClip:"padding-box",borderRadius:W.borderRadiusLG,outline:"none",boxShadow:W.boxShadowSecondary},(0,s.Qy)(W)),{[`${V}-item-group-title`]:{padding:`${L}px ${Q}px`,color:W.colorTextDescription,transition:`all ${S}`},[`${V}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${V}-item-icon`]:{minWidth:v,marginInlineEnd:W.marginXS,fontSize:W.fontSizeSM},[`${V}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${S}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${V}-item, ${V}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${L}px ${Q}px`,color:W.colorText,fontWeight:"normal",fontSize:v,lineHeight:W.lineHeight,cursor:"pointer",transition:`all ${S}`,borderRadius:W.borderRadiusSM,"&:hover, &-active":{backgroundColor:W.controlItemBgHover}},(0,s.Qy)(W)),{"&-selected":{color:W.colorPrimary,backgroundColor:W.controlItemBgActive,"&:hover, &-active":{backgroundColor:W.controlItemBgActiveHover}},"&-disabled":{color:Z,cursor:"not-allowed","&:hover":{color:Z,backgroundColor:ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${W.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:W.colorSplit},[`${O}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:W.paddingXS,[`${O}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:W.colorTextDescription,fontSize:M,fontStyle:"normal"}}}),[`${V}-item-group-list`]:{margin:`0 ${W.marginXS}px`,padding:0,listStyle:"none"},[`${V}-submenu-title`]:{paddingInlineEnd:Q+W.fontSizeSM},[`${V}-submenu-vertical`]:{position:"relative"},[`${V}-submenu${V}-submenu-disabled ${O}-menu-submenu-title`]:{[`&, ${O}-menu-submenu-arrow-icon`]:{color:Z,backgroundColor:ce,cursor:"not-allowed"}},[`${V}-submenu-selected ${O}-menu-submenu-title`]:{color:W.colorPrimary}})}},[(0,x.oN)(W,"slide-up"),(0,x.oN)(W,"slide-down"),(0,T.Fm)(W,"move-up"),(0,T.Fm)(W,"move-down"),(0,k._y)(W,"zoom-big")]]};var ne=(0,g.Z)("Dropdown",(W,O)=>{let{rootPrefixCls:V}=O;const{marginXXS:me,sizePopupArrow:re,controlHeight:$,fontSize:E,lineHeight:w,paddingXXS:S,componentCls:L,borderRadiusLG:v}=W,I=($-E*w)/2,{dropdownArrowOffset:Z}=(0,A.fS)({contentRadius:v}),M=(0,q.TS)(W,{menuCls:`${L}-menu`,rootPrefixCls:V,dropdownArrowDistance:re/2+me,dropdownArrowOffset:Z,dropdownPaddingVertical:I,dropdownEdgeChildPadding:S});return[P(M),u(M)]},W=>({zIndexPopup:W.zIndexPopupBase+50}))},71322:function(Ye,ae,o){"use strict";o.d(ae,{D:function(){return w},Z:function(){return v}});var s=o(87462),x=o(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=o(74643),g=function(Z,M){return x.createElement(A.Z,(0,s.Z)({},Z,{ref:M,icon:k}))},q=x.forwardRef(g),te=o(22751),u=o(91034),P=o(94184),ne=o.n(P),W=o(10366),V=I=>!isNaN(parseFloat(I))&&isFinite(I),me=o(53124),re=o(84321),$=function(I,Z){var M={};for(var Q in I)Object.prototype.hasOwnProperty.call(I,Q)&&Z.indexOf(Q)<0&&(M[Q]=I[Q]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,Q=Object.getOwnPropertySymbols(I);ce<Q.length;ce++)Z.indexOf(Q[ce])<0&&Object.prototype.propertyIsEnumerable.call(I,Q[ce])&&(M[Q[ce]]=I[Q[ce]]);return M};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},w=x.createContext({}),S=(()=>{let I=0;return function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return I+=1,`${Z}${I}`}})();var v=x.forwardRef((I,Z)=>{const{prefixCls:M,className:Q,trigger:ce,children:Ae,defaultCollapsed:De=!1,theme:Pe="dark",style:Te={},collapsible:Se=!1,reverseArrow:Ke=!1,width:z=200,collapsedWidth:st=80,zeroWidthTriggerStyle:Qe,breakpoint:Ie,onCollapse:pe,onBreakpoint:Me}=I,Le=$(I,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:_e}=(0,x.useContext)(re.Gs),[xe,Ct]=(0,x.useState)("collapsed"in I?I.collapsed:De),[Je,ft]=(0,x.useState)(!1);(0,x.useEffect)(()=>{"collapsed"in I&&Ct(I.collapsed)},[I.collapsed]);const vt=(Re,N)=>{"collapsed"in I||Ct(Re),pe==null||pe(Re,N)},at=(0,x.useRef)();at.current=Re=>{ft(Re.matches),Me==null||Me(Re.matches),xe!==Re.matches&&vt(Re.matches,"responsive")},(0,x.useEffect)(()=>{function Re(c){return at.current(c)}let N;if(typeof window!="undefined"){const{matchMedia:c}=window;if(c&&Ie&&Ie in E){N=c(`(max-width: ${E[Ie]})`);try{N.addEventListener("change",Re)}catch(d){N.addListener(Re)}Re(N)}}return()=>{try{N==null||N.removeEventListener("change",Re)}catch(c){N==null||N.removeListener(Re)}}},[Ie]),(0,x.useEffect)(()=>{const Re=S("ant-sider-");return _e.addSider(Re),()=>_e.removeSider(Re)},[]);const it=()=>{vt(!xe,"clickTrigger")},{getPrefixCls:ot}=(0,x.useContext)(me.E_),kt=()=>{const Re=ot("layout-sider",M),N=(0,W.Z)(Le,["collapsed"]),c=xe?st:z,d=V(c)?`${c}px`:String(c),l=parseFloat(String(st||0))===0?x.createElement("span",{onClick:it,className:ne()(`${Re}-zero-width-trigger`,`${Re}-zero-width-trigger-${Ke?"right":"left"}`),style:Qe},ce||x.createElement(q,null)):null,h={expanded:Ke?x.createElement(u.Z,null):x.createElement(te.Z,null),collapsed:Ke?x.createElement(te.Z,null):x.createElement(u.Z,null)}[xe?"collapsed":"expanded"],_=ce!==null?l||x.createElement("div",{className:`${Re}-trigger`,onClick:it,style:{width:d}},ce||h):null,y=Object.assign(Object.assign({},Te),{flex:`0 0 ${d}`,maxWidth:d,minWidth:d,width:d}),a=ne()(Re,`${Re}-${Pe}`,{[`${Re}-collapsed`]:!!xe,[`${Re}-has-trigger`]:Se&&ce!==null&&!l,[`${Re}-below`]:!!Je,[`${Re}-zero-width`]:parseFloat(d)===0},Q);return x.createElement("aside",Object.assign({className:a},N,{style:y,ref:Z}),x.createElement("div",{className:`${Re}-children`},Ae),Se||Je&&l?_:null)},qe=x.useMemo(()=>({siderCollapsed:xe}),[xe]);return x.createElement(w.Provider,{value:qe},kt())})},84321:function(Ye,ae,o){"use strict";o.d(ae,{VY:function(){return S},$_:function(){return w},h4:function(){return E},Gs:function(){return O},ZP:function(){return L}});var s=o(74902),x=o(94184),T=o.n(x),k=o(10366),A=o(67294),g=o(53124),q=o(67968),u=v=>{const{componentCls:I,bodyBg:Z,lightSiderBg:M,lightTriggerBg:Q,lightTriggerColor:ce}=v;return{[`${I}-sider-light`]:{background:M,[`${I}-sider-trigger`]:{color:ce,background:Q},[`${I}-sider-zero-width-trigger`]:{color:ce,background:Q,border:`1px solid ${Z}`,borderInlineStart:0}}}};const P=v=>{const{antCls:I,componentCls:Z,colorText:M,triggerColor:Q,footerBg:ce,triggerBg:Ae,headerHeight:De,headerPadding:Pe,headerColor:Te,footerPadding:Se,triggerHeight:Ke,zeroTriggerHeight:z,zeroTriggerWidth:st,motionDurationMid:Qe,motionDurationSlow:Ie,fontSize:pe,borderRadius:Me,bodyBg:Le,headerBg:_e,siderBg:xe}=v;return{[Z]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Le,"&, *":{boxSizing:"border-box"},[`&${Z}-has-sider`]:{flexDirection:"row",[`> ${Z}, > ${Z}-content`]:{width:0}},[`${Z}-header, &${Z}-footer`]:{flex:"0 0 auto"},[`${Z}-sider`]:{position:"relative",minWidth:0,background:xe,transition:`all ${Qe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${I}-menu${I}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ke},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ke,color:Q,lineHeight:`${Ke}px`,textAlign:"center",background:Ae,cursor:"pointer",transition:`all ${Qe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:De,insetInlineEnd:-st,zIndex:1,width:st,height:z,color:Q,fontSize:v.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:xe,borderStartStartRadius:0,borderStartEndRadius:Me,borderEndEndRadius:Me,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ie} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ie}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-st,borderStartStartRadius:Me,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Me}}}}},u(v)),{"&-rtl":{direction:"rtl"}}),[`${Z}-header`]:{height:De,padding:Pe,color:Te,lineHeight:`${De}px`,background:_e,[`${I}-menu`]:{lineHeight:"inherit"}},[`${Z}-footer`]:{padding:Se,color:M,fontSize:pe,background:ce},[`${Z}-content`]:{flex:"auto",minHeight:0}}};var ne=(0,q.Z)("Layout",v=>[P(v)],v=>{const{colorBgLayout:I,controlHeight:Z,controlHeightLG:M,colorText:Q,controlHeightSM:ce,marginXXS:Ae,colorTextLightSolid:De,colorBgContainer:Pe}=v,Te=M*1.25;return{colorBgHeader:"#001529",colorBgBody:I,colorBgTrigger:"#002140",bodyBg:I,headerBg:"#001529",headerHeight:Z*2,headerPadding:`0 ${Te}px`,headerColor:Q,footerPadding:`${ce}px ${Te}px`,footerBg:I,siderBg:"#001529",triggerHeight:M+Ae*2,triggerBg:"#002140",triggerColor:De,zeroTriggerWidth:M,zeroTriggerHeight:M,lightSiderBg:Pe,lightTriggerBg:Pe,lightTriggerColor:Q}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),W=function(v,I){var Z={};for(var M in v)Object.prototype.hasOwnProperty.call(v,M)&&I.indexOf(M)<0&&(Z[M]=v[M]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,M=Object.getOwnPropertySymbols(v);Q<M.length;Q++)I.indexOf(M[Q])<0&&Object.prototype.propertyIsEnumerable.call(v,M[Q])&&(Z[M[Q]]=v[M[Q]]);return Z};const O=A.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function V(v){let{suffixCls:I,tagName:Z,displayName:M}=v;return Q=>A.forwardRef((Ae,De)=>A.createElement(Q,Object.assign({ref:De,suffixCls:I,tagName:Z},Ae)))}const me=A.forwardRef((v,I)=>{const{prefixCls:Z,suffixCls:M,className:Q,tagName:ce}=v,Ae=W(v,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:De}=A.useContext(g.E_),Pe=De("layout",Z),[Te,Se]=ne(Pe),Ke=M?`${Pe}-${M}`:Pe;return Te(A.createElement(ce,Object.assign({className:T()(Z||Ke,Q,Se),ref:I},Ae)))}),re=A.forwardRef((v,I)=>{const{direction:Z}=A.useContext(g.E_),[M,Q]=A.useState([]),{prefixCls:ce,className:Ae,rootClassName:De,children:Pe,hasSider:Te,tagName:Se,style:Ke}=v,z=W(v,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),st=(0,k.Z)(z,["suffixCls"]),{getPrefixCls:Qe,layout:Ie}=A.useContext(g.E_),pe=Qe("layout",ce),[Me,Le]=ne(pe),_e=T()(pe,{[`${pe}-has-sider`]:typeof Te=="boolean"?Te:M.length>0,[`${pe}-rtl`]:Z==="rtl"},Ie==null?void 0:Ie.className,Ae,De,Le),xe=A.useMemo(()=>({siderHook:{addSider:Ct=>{Q(Je=>[].concat((0,s.Z)(Je),[Ct]))},removeSider:Ct=>{Q(Je=>Je.filter(ft=>ft!==Ct))}}}),[]);return Me(A.createElement(O.Provider,{value:xe},A.createElement(Se,Object.assign({ref:I,className:_e,style:Object.assign(Object.assign({},Ie==null?void 0:Ie.style),Ke)},st),Pe)))}),$=V({tagName:"div",displayName:"Layout"})(re),E=V({suffixCls:"header",tagName:"header",displayName:"Header"})(me),w=V({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(me),S=V({suffixCls:"content",tagName:"main",displayName:"Content"})(me);var L=$},76529:function(Ye,ae,o){"use strict";o.d(ae,{J:function(){return g}});var s=o(67294),x=o(4173),T=o(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),W=s.useMemo(()=>Object.assign(Object.assign({},ne),P),[ne,P.prefixCls,P.mode,P.selectable]);return s.createElement(A.Provider,{value:W},s.createElement(x.BR,null,(0,T.supportNodeRef)(u)?s.cloneElement(u,{ref:te}):u))});ae.Z=A},68508:function(Ye,ae,o){"use strict";o.d(ae,{default:function(){return Re}});var s=o(78595),x=o(67294),T=o(71322),k=o(94184),A=o.n(k),g=o(53124),q=function(N,c){var d={};for(var l in N)Object.prototype.hasOwnProperty.call(N,l)&&c.indexOf(l)<0&&(d[l]=N[l]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,l=Object.getOwnPropertySymbols(N);m<l.length;m++)c.indexOf(l[m])<0&&Object.prototype.propertyIsEnumerable.call(N,l[m])&&(d[l[m]]=N[l[m]]);return d},u=N=>{const{prefixCls:c,className:d,dashed:l}=N,m=q(N,["prefixCls","className","dashed"]),{getPrefixCls:R}=x.useContext(g.E_),h=R("menu",c),_=A()({[`${h}-item-divider-dashed`]:!!l},d);return x.createElement(s.iz,Object.assign({className:_},m))},P=o(37419),ne=o(10366),W=o(83062),O=o(96159),me=(0,x.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),$=N=>{var c;const{className:d,children:l,icon:m,title:R,danger:h}=N,{prefixCls:_,firstLevel:y,direction:a,disableMenuItemTitleTooltip:j,inlineCollapsed:X}=x.useContext(me),oe=Ue=>{const rt=x.createElement("span",{className:`${_}-title-content`},l);return(!m||(0,O.l$)(l)&&l.type==="span")&&l&&Ue&&y&&typeof l=="string"?x.createElement("div",{className:`${_}-inline-collapsed-noicon`},l.charAt(0)):rt},{siderCollapsed:ge}=x.useContext(T.D);let he=R;typeof R=="undefined"?he=y?l:"":R===!1&&(he="");const fe={title:he};!ge&&!X&&(fe.title=null,fe.open=!1);const le=(0,P.Z)(l).length;let je=x.createElement(s.ck,Object.assign({},(0,ne.Z)(N,["title","icon","danger"]),{className:A()({[`${_}-item-danger`]:h,[`${_}-item-only-child`]:(m?le+1:le)===1},d),title:typeof R=="string"?R:void 0}),(0,O.Tm)(m,{className:A()((0,O.l$)(m)?(c=m.props)===null||c===void 0?void 0:c.className:"",`${_}-item-icon`)}),oe(X));return j||(je=x.createElement(W.Z,Object.assign({},fe,{placement:a==="rtl"?"left":"right",overlayClassName:`${_}-inline-collapsed-tooltip`}),je)),je},w=N=>{var c;const{popupClassName:d,icon:l,title:m,theme:R}=N,h=x.useContext(me),{prefixCls:_,inlineCollapsed:y,theme:a}=h,j=(0,s.Xl)();let X;if(!l)X=y&&!j.length&&m&&typeof m=="string"?x.createElement("div",{className:`${_}-inline-collapsed-noicon`},m.charAt(0)):x.createElement("span",{className:`${_}-title-content`},m);else{const ge=(0,O.l$)(m)&&m.type==="span";X=x.createElement(x.Fragment,null,(0,O.Tm)(l,{className:A()((0,O.l$)(l)?(c=l.props)===null||c===void 0?void 0:c.className:"",`${_}-item-icon`)}),ge?m:x.createElement("span",{className:`${_}-title-content`},m))}const oe=x.useMemo(()=>Object.assign(Object.assign({},h),{firstLevel:!1}),[h]);return x.createElement(me.Provider,{value:oe},x.createElement(s.Wd,Object.assign({},(0,ne.Z)(N,["icon"]),{title:X,popupClassName:A()(_,d,`${_}-${R||a}`)})))},S=o(25877),L=o(60276),v=o(33603),I=o(76529),Z=function(N,c){var d={};for(var l in N)Object.prototype.hasOwnProperty.call(N,l)&&c.indexOf(l)<0&&(d[l]=N[l]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,l=Object.getOwnPropertySymbols(N);m<l.length;m++)c.indexOf(l[m])<0&&Object.prototype.propertyIsEnumerable.call(N,l[m])&&(d[l[m]]=N[l[m]]);return d};function M(N){return(N||[]).map((c,d)=>{if(c&&typeof c=="object"){const l=c,{label:m,children:R,key:h,type:_}=l,y=Z(l,["label","children","key","type"]),a=h!=null?h:`tmp-${d}`;return R||_==="group"?_==="group"?x.createElement(s.BW,Object.assign({key:a},y,{title:m}),M(R)):x.createElement(w,Object.assign({key:a},y,{title:m}),M(R)):_==="divider"?x.createElement(u,Object.assign({key:a},y)):x.createElement($,Object.assign({key:a},y),m)}return null}).filter(c=>c)}function Q(N){return x.useMemo(()=>N&&M(N),[N])}var ce=o(84780),Ae=o(14747),De=o(33507),Pe=o(67771),Te=o(50438),Se=o(67968),Ke=o(45503),st=N=>{const{componentCls:c,motionDurationSlow:d,horizontalLineHeight:l,colorSplit:m,lineWidth:R,lineType:h,itemPaddingInline:_}=N;return{[`${c}-horizontal`]:{lineHeight:l,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"}}}},Ie=N=>{let{componentCls:c,menuArrowOffset:d}=N;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 pe=N=>Object.assign({},(0,Ae.oN)(N));var Le=(N,c)=>{const{componentCls:d,itemColor:l,itemSelectedColor:m,groupTitleColor:R,itemBg:h,subMenuItemBg:_,itemSelectedBg:y,activeBarHeight:a,activeBarWidth:j,activeBarBorderWidth:X,motionDurationSlow:oe,motionEaseInOut:ge,motionEaseOut:he,itemPaddingInline:fe,motionDurationMid:le,itemHoverColor:je,lineType:Ue,colorSplit:rt,itemDisabledColor:K,dangerItemColor:yt,dangerItemHoverColor:xt,dangerItemSelectedColor:Rt,dangerItemActiveBg:et,dangerItemSelectedBg:mt,itemHoverBg:It,itemActiveBg:Bt,menuSubMenuBg:wt,horizontalItemSelectedColor:Ot,horizontalItemSelectedBg:Ht,horizontalItemBorderRadius:$t,horizontalItemHoverBg:Ee,popupBg:We}=N;return{[`${d}-${c}, ${d}-${c} > ${d}`]:{color:l,background:h,[`&${d}-root:focus-visible`]:Object.assign({},pe(N)),[`${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:je}},[`&:not(${d}-horizontal)`]:{[`${d}-item:not(${d}-item-selected)`]:{"&:hover":{backgroundColor:It},"&:active":{backgroundColor:Bt}},[`${d}-submenu-title`]:{"&:hover":{backgroundColor:It},"&:active":{backgroundColor:Bt}}},[`${d}-item-danger`]:{color:yt,[`&${d}-item:hover`]:{[`&:not(${d}-item-selected):not(${d}-submenu-selected)`]:{color:xt}},[`&${d}-item:active`]:{background:et}},[`${d}-item a`]:{"&, &:hover":{color:"inherit"}},[`${d}-item-selected`]:{color:m,[`&${d}-item-danger`]:{color:Rt},"a, a:hover":{color:"inherit"}},[`& ${d}-item-selected`]:{backgroundColor:y,[`&${d}-item-danger`]:{backgroundColor:mt}},[`${d}-item, ${d}-submenu-title`]:{[`&:not(${d}-item-disabled):focus-visible`]:Object.assign({},pe(N))},[`&${d}-submenu > ${d}`]:{backgroundColor:wt},[`&${d}-popup > ${d}`]:{backgroundColor:We},[`&${d}-horizontal`]:Object.assign(Object.assign({},c==="dark"?{borderBottom:0}:{}),{[`> ${d}-item, > ${d}-submenu`]:{top:X,marginTop:-X,marginBottom:0,borderRadius:$t,"&::after":{position:"absolute",insetInline:fe,bottom:0,borderBottom:`${a}px solid transparent`,transition:`border-color ${oe} ${ge}`,content:'""'},"&:hover, &-active, &-open":{background:Ee,"&::after":{borderBottomWidth:a,borderBottomColor:Ot}},"&-selected":{color:Ot,backgroundColor:Ht,"&:hover":{backgroundColor:Ht},"&::after":{borderBottomWidth:a,borderBottomColor:Ot}}}}),[`&${d}-root`]:{[`&${d}-inline, &${d}-vertical`]:{borderInlineEnd:`${X}px ${Ue} ${rt}`}},[`&${d}-inline`]:{[`${d}-sub${d}-inline`]:{background:_},[`${d}-item, ${d}-submenu-title`]:X&&j?{width:`calc(100% + ${X}px)`}:{},[`${d}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${j}px solid ${m}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${le} ${he}`,`opacity ${le} ${he}`].join(","),content:'""'},[`&${d}-item-danger`]:{"&::after":{borderInlineEndColor:Rt}}},[`${d}-selected, ${d}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${le} ${ge}`,`opacity ${le} ${ge}`].join(",")}}}}}};const _e=N=>{const{componentCls:c,itemHeight:d,itemMarginInline:l,padding:m,menuArrowSize:R,marginXS:h,itemMarginBlock:_}=N,y=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:l,marginBlock:_,width:`calc(100% - ${l*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:y}}};var Ct=N=>{const{componentCls:c,iconCls:d,itemHeight:l,colorTextLightSolid:m,dropdownWidth:R,controlHeightLG:h,motionDurationMid:_,motionEaseOut:y,paddingXL:a,itemMarginInline:j,fontSizeLG:X,motionDurationSlow:oe,paddingXS:ge,boxShadowSecondary:he,collapsedWidth:fe,collapsedIconSize:le}=N,je={height:l,lineHeight:`${l}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[c]:{"&-inline, &-vertical":Object.assign({[`&${c}-root`]:{boxShadow:"none"}},_e(N))},[`${c}-submenu-popup`]:{[`${c}-vertical`]:Object.assign(Object.assign({},_e(N)),{boxShadow:he})}},{[`${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 ${oe}`,`background ${oe}`,`padding ${_} ${y}`].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`]:je,[`& ${c}-item-group-title`]:{paddingInlineStart:a}},[`${c}-item`]:je}},{[`${c}-inline-collapsed`]:{width:fe,[`&${c}-root`]:{[`${c}-item, ${c}-submenu ${c}-submenu-title`]:{[`> ${c}-inline-collapsed-noicon`]:{fontSize:X,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% - ${X/2}px - ${j}px)`,textOverflow:"clip",[`
${c}-submenu-arrow,
${c}-submenu-expand-icon
`]:{opacity:0},[`${c}-item-icon, ${d}`]:{margin:0,fontSize:le,lineHeight:`${l}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:ge})}}]};const Je=N=>{const{componentCls:c,motionDurationSlow:d,motionDurationMid:l,motionEaseInOut:m,motionEaseOut:R,iconCls:h,iconSize:_,iconMarginInlineEnd:y}=N;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 ${l} ${R}`,`margin ${d} ${m}`,`color ${d}`].join(","),"+ span":{marginInlineStart:y,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"}}}},ft=N=>{const{componentCls:c,motionDurationSlow:d,motionEaseInOut:l,borderRadius:m,menuArrowSize:R,menuArrowOffset:h}=N;return{[`${c}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:N.margin,width:R,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${d} ${l}, opacity ${d}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:R*.6,height:R*.15,backgroundColor:"currentcolor",borderRadius:m,transition:[`background ${d} ${l}`,`transform ${d} ${l}`,`top ${d} ${l}`,`color ${d} ${l}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${h})`},"&::after":{transform:`rotate(-45deg) translateY(${h})`}}}}},vt=N=>{const{antCls:c,componentCls:d,fontSize:l,motionDurationSlow:m,motionDurationMid:R,motionEaseInOut:h,paddingXS:_,padding:y,colorSplit:a,lineWidth:j,zIndexPopup:X,borderRadiusLG:oe,subMenuItemBorderRadius:ge,menuArrowSize:he,menuArrowOffset:fe,lineType:le,menuPanelMaskInset:je,groupTitleLineHeight:Ue,groupTitleFontSize:rt}=N;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)(N)),(0,Ae.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:l,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:N.itemBorderRadius},[`${d}-item-group-title`]:{padding:`${_}px ${y}px`,fontSize:rt,lineHeight:Ue,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:le,borderWidth:0,borderTopWidth:j,marginBlock:j,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(N)),{[`${d}-item-group`]:{[`${d}-item-group-list`]:{margin:0,padding:0,[`${d}-item, ${d}-submenu-title`]:{paddingInline:`${l*2}px ${y}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:X,borderRadius:oe,boxShadow:"none",transformOrigin:"0 0",[`&${d}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${je}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:je},"\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:N.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:N.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:N.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:N.paddingXS},[`> ${d}`]:Object.assign(Object.assign(Object.assign({borderRadius:oe},Je(N)),ft(N)),{[`${d}-item, ${d}-submenu > ${d}-submenu-title`]:{borderRadius:ge},[`${d}-submenu-title::after`]:{transition:`transform ${m} ${h}`}})}}),ft(N)),{[`&-inline-collapsed ${d}-submenu-arrow,
&-inline ${d}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${fe})`},"&::after":{transform:`rotate(45deg) translateX(-${fe})`}},[`${d}-submenu-open${d}-submenu-inline > ${d}-submenu-title > ${d}-submenu-arrow`]:{transform:`translateY(-${he*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${fe})`},"&::before":{transform:`rotate(45deg) translateX(${fe})`}}})},{[`${c}-layout-header`]:{[d]:{lineHeight:"inherit"}}}]};var at=(N,c)=>(0,Se.Z)("Menu",l=>{if(c===!1)return[];const{colorBgElevated:m,colorPrimary:R,colorTextLightSolid:h,controlHeightLG:_,fontSize:y,darkItemColor:a,darkDangerItemColor:j,darkItemBg:X,darkSubMenuItemBg:oe,darkItemSelectedColor:ge,darkItemSelectedBg:he,darkDangerItemSelectedBg:fe,darkItemHoverBg:le,darkGroupTitleColor:je,darkItemHoverColor:Ue,darkItemDisabledColor:rt,darkDangerItemHoverColor:K,darkDangerItemSelectedColor:yt,darkDangerItemActiveBg:xt}=l,Rt=y/7*5,et=(0,Ke.TS)(l,{menuArrowSize:Rt,menuHorizontalHeight:_*1.15,menuArrowOffset:`${Rt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:m}),mt=(0,Ke.TS)(et,{itemColor:a,itemHoverColor:Ue,groupTitleColor:je,itemSelectedColor:ge,itemBg:X,popupBg:X,subMenuItemBg:oe,itemActiveBg:"transparent",itemSelectedBg:he,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:le,itemDisabledColor:rt,dangerItemColor:j,dangerItemHoverColor:K,dangerItemSelectedColor:yt,dangerItemActiveBg:xt,dangerItemSelectedBg:fe,menuSubMenuBg:oe,horizontalItemSelectedColor:h,horizontalItemSelectedBg:R});return[vt(et),st(et),Ct(et),Le(et,"light"),Le(mt,"dark"),Ie(et),(0,De.Z)(et),(0,Pe.oN)(et,"slide-up"),(0,Pe.oN)(et,"slide-down"),(0,Te._y)(et,"zoom-big")]},l=>{const{colorPrimary:m,colorError:R,colorTextDisabled:h,colorErrorBg:_,colorText:y,colorTextDescription:a,colorBgContainer:j,colorFillAlter:X,colorFillContent:oe,lineWidth:ge,lineWidthBold:he,controlItemBgActive:fe,colorBgTextHover:le,controlHeightLG:je,lineHeight:Ue,colorBgElevated:rt,marginXXS:K,padding:yt,fontSize:xt,controlHeightSM:Rt,fontSizeLG:et,colorTextLightSolid:mt,colorErrorHover:It}=l,Bt=new ce.C(mt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:l.zIndexPopupBase+50,radiusItem:l.borderRadiusLG,itemBorderRadius:l.borderRadiusLG,radiusSubMenuItem:l.borderRadiusSM,subMenuItemBorderRadius:l.borderRadiusSM,colorItemText:y,itemColor:y,colorItemTextHover:y,itemHoverColor:y,colorItemTextHoverHorizontal:m,horizontalItemHoverColor:m,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:m,itemSelectedColor:m,colorItemTextSelectedHorizontal:m,horizontalItemSelectedColor:m,colorItemBg:j,itemBg:j,colorItemBgHover:le,itemHoverBg:le,colorItemBgActive:oe,itemActiveBg:fe,colorSubItemBg:X,subMenuItemBg:X,colorItemBgSelected:fe,itemSelectedBg:fe,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:he,activeBarHeight:he,colorActiveBarBorderSize:ge,activeBarBorderWidth:ge,colorItemTextDisabled:h,itemDisabledColor:h,colorDangerItemText:R,dangerItemColor:R,colorDangerItemTextHover:R,dangerItemHoverColor:R,colorDangerItemTextSelected:R,dangerItemSelectedColor:R,colorDangerItemBgActive:_,dangerItemActiveBg:_,colorDangerItemBgSelected:_,dangerItemSelectedBg:_,itemMarginInline:l.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:je,groupTitleLineHeight:Ue,collapsedWidth:je*2,popupBg:rt,itemMarginBlock:K,itemPaddingInline:yt,horizontalLineHeight:`${je*1.15}px`,iconSize:xt,iconMarginInlineEnd:Rt-xt,collapsedIconSize:et,groupTitleFontSize:xt,darkItemDisabledColor:new ce.C(mt).setAlpha(.25).toRgbString(),darkItemColor:Bt,darkDangerItemColor:R,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:mt,darkItemSelectedBg:m,darkDangerItemSelectedBg:R,darkItemHoverBg:"transparent",darkGroupTitleColor:Bt,darkItemHoverColor:mt,darkDangerItemHoverColor:It,darkDangerItemSelectedColor:mt,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"]]})(N),it=function(N,c){var d={};for(var l in N)Object.prototype.hasOwnProperty.call(N,l)&&c.indexOf(l)<0&&(d[l]=N[l]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,l=Object.getOwnPropertySymbols(N);m<l.length;m++)c.indexOf(l[m])<0&&Object.prototype.propertyIsEnumerable.call(N,l[m])&&(d[l[m]]=N[l[m]]);return d},kt=(0,x.forwardRef)((N,c)=>{var d,l;const m=x.useContext(I.Z),R=m||{},{getPrefixCls:h,getPopupContainer:_,direction:y,menu:a}=x.useContext(g.E_),j=h(),{prefixCls:X,className:oe,style:ge,theme:he="light",expandIcon:fe,_internalDisableMenuItemTitleTooltip:le,inlineCollapsed:je,siderCollapsed:Ue,items:rt,children:K,rootClassName:yt,mode:xt,selectable:Rt,onClick:et,overflowedIndicatorPopupClassName:mt}=N,It=it(N,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Bt=(0,ne.Z)(It,["collapsedWidth"]),wt=Q(rt)||K;(d=R.validator)===null||d===void 0||d.call(R,{mode:xt});const Ot=(0,L.useEvent)(function(){var ke;et==null||et.apply(void 0,arguments),(ke=R.onClick)===null||ke===void 0||ke.call(R)}),Ht=R.mode||xt,$t=Rt!=null?Rt:R.selectable,Ee=x.useMemo(()=>Ue!==void 0?Ue:je,[je,Ue]),We={horizontal:{motionName:`${j}-slide-up`},inline:(0,v.Z)(j),other:{motionName:`${j}-zoom-big`}},lt=h("menu",X||R.prefixCls),[Pt,Zt]=at(lt,!m),Wt=A()(`${lt}-${he}`,a==null?void 0:a.className,oe);let Lt;if(typeof fe=="function")Lt=fe;else if(fe===null||fe===!1)Lt=null;else if(R.expandIcon===null||R.expandIcon===!1)Lt=null;else{const ke=fe!=null?fe:R.expandIcon;Lt=(0,O.Tm)(ke,{className:A()(`${lt}-submenu-expand-icon`,(0,O.l$)(ke)?(l=ke.props)===null||l===void 0?void 0:l.className:"")})}const Xt=x.useMemo(()=>({prefixCls:lt,inlineCollapsed:Ee||!1,direction:y,firstLevel:!0,theme:he,mode:Ht,disableMenuItemTitleTooltip:le}),[lt,Ee,y,le,he]);return Pt(x.createElement(I.Z.Provider,{value:null},x.createElement(me.Provider,{value:Xt},x.createElement(s.ZP,Object.assign({getPopupContainer:_,overflowedIndicator:x.createElement(S.Z,null),overflowedIndicatorPopupClassName:A()(lt,`${lt}-${he}`,mt),mode:Ht,selectable:$t,onClick:Ot},Bt,{inlineCollapsed:Ee,style:Object.assign(Object.assign({},a==null?void 0:a.style),ge),className:Wt,prefixCls:lt,direction:y,defaultMotions:We,expandIcon:Lt,ref:c,rootClassName:A()(yt,Zt)}),wt))))});const qe=(0,x.forwardRef)((N,c)=>{const d=(0,x.useRef)(null),l=x.useContext(T.D);return(0,x.useImperativeHandle)(c,()=>({menu:d.current,focus:m=>{var R;(R=d.current)===null||R===void 0||R.focus(m)}})),x.createElement(kt,Object.assign({ref:d},N,l))});qe.Item=$,qe.SubMenu=w,qe.Divider=u,qe.ItemGroup=s.BW;var Re=qe},46303:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return N}});var s=o(94184),x=o.n(s),T=o(67294),k=o(53124),A=o(10366),q=c=>{const{prefixCls:d,className:l,style:m,size:R,shape:h}=c,_=x()({[`${d}-lg`]:R==="large",[`${d}-sm`]:R==="small"}),y=x()({[`${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:x()(d,_,y,l),style:Object.assign(Object.assign({},a),m)})},te=o(45930),u=o(67968),P=o(45503);const ne=new te.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),W=c=>({height:c,lineHeight:`${c}px`}),O=c=>Object.assign({width:c},W(c)),V=c=>({background:c.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ne,animationDuration:c.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),me=c=>Object.assign({width:c*5,minWidth:c*5},W(c)),re=c=>{const{skeletonAvatarCls:d,gradientFromColor:l,controlHeight:m,controlHeightLG:R,controlHeightSM:h}=c;return{[`${d}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:l},O(m)),[`${d}${d}-circle`]:{borderRadius:"50%"},[`${d}${d}-lg`]:Object.assign({},O(R)),[`${d}${d}-sm`]:Object.assign({},O(h))}},$=c=>{const{controlHeight:d,borderRadiusSM:l,skeletonInputCls:m,controlHeightLG:R,controlHeightSM:h,gradientFromColor:_}=c;return{[`${m}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_,borderRadius:l},me(d)),[`${m}-lg`]:Object.assign({},me(R)),[`${m}-sm`]:Object.assign({},me(h))}},E=c=>Object.assign({width:c},W(c)),w=c=>{const{skeletonImageCls:d,imageSizeBase:l,gradientFromColor:m,borderRadiusSM:R}=c;return{[`${d}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:m,borderRadius:R},E(l*2)),{[`${d}-path`]:{fill:"#bfbfbf"},[`${d}-svg`]:Object.assign(Object.assign({},E(l)),{maxWidth:l*4,maxHeight:l*4}),[`${d}-svg${d}-svg-circle`]:{borderRadius:"50%"}}),[`${d}${d}-circle`]:{borderRadius:"50%"}}},S=(c,d,l)=>{const{skeletonButtonCls:m}=c;return{[`${l}${m}-circle`]:{width:d,minWidth:d,borderRadius:"50%"},[`${l}${m}-round`]:{borderRadius:d}}},L=c=>Object.assign({width:c*2,minWidth:c*2},W(c)),v=c=>{const{borderRadiusSM:d,skeletonButtonCls:l,controlHeight:m,controlHeightLG:R,controlHeightSM:h,gradientFromColor:_}=c;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${l}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_,borderRadius:d,width:m*2,minWidth:m*2},L(m))},S(c,m,l)),{[`${l}-lg`]:Object.assign({},L(R))}),S(c,R,`${l}-lg`)),{[`${l}-sm`]:Object.assign({},L(h))}),S(c,h,`${l}-sm`))},I=c=>{const{componentCls:d,skeletonAvatarCls:l,skeletonTitleCls:m,skeletonParagraphCls:R,skeletonButtonCls:h,skeletonInputCls:_,skeletonImageCls:y,controlHeight:a,controlHeightLG:j,controlHeightSM:X,gradientFromColor:oe,padding:ge,marginSM:he,borderRadius:fe,titleHeight:le,blockRadius:je,paragraphLiHeight:Ue,controlHeightXS:rt,paragraphMarginTop:K}=c;return{[`${d}`]:{display:"table",width:"100%",[`${d}-header`]:{display:"table-cell",paddingInlineEnd:ge,verticalAlign:"top",[`${l}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:oe},O(a)),[`${l}-circle`]:{borderRadius:"50%"},[`${l}-lg`]:Object.assign({},O(j)),[`${l}-sm`]:Object.assign({},O(X))},[`${d}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${m}`]:{width:"100%",height:le,background:oe,borderRadius:je,[`+ ${R}`]:{marginBlockStart:X}},[`${R}`]:{padding:0,"> li":{width:"100%",height:Ue,listStyle:"none",background:oe,borderRadius:je,"+ li":{marginBlockStart:rt}}},[`${R}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${d}-content`]:{[`${m}, ${R} > li`]:{borderRadius:fe}}},[`${d}-with-avatar ${d}-content`]:{[`${m}`]:{marginBlockStart:he,[`+ ${R}`]:{marginBlockStart:K}}},[`${d}${d}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},v(c)),re(c)),$(c)),w(c)),[`${d}${d}-block`]:{width:"100%",[`${h}`]:{width:"100%"},[`${_}`]:{width:"100%"}},[`${d}${d}-active`]:{[`
${m},
${R} > li,
${l},
${h},
${_},
${y}
`]:Object.assign({},V(c))}}};var Z=(0,u.Z)("Skeleton",c=>{const{componentCls:d}=c,l=(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[I(l)]},c=>{const{colorFillContent:d,colorFill:l}=c,m=d,R=l;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"]]}),Q=c=>{const{prefixCls:d,className:l,rootClassName:m,active:R,shape:h="circle",size:_="default"}=c,{getPrefixCls:y}=T.useContext(k.E_),a=y("skeleton",d),[j,X]=Z(a),oe=(0,A.Z)(c,["prefixCls","className"]),ge=x()(a,`${a}-element`,{[`${a}-active`]:R},l,m,X);return j(T.createElement("div",{className:ge},T.createElement(q,Object.assign({prefixCls:`${a}-avatar`,shape:h,size:_},oe))))},Ae=c=>{const{prefixCls:d,className:l,rootClassName:m,active:R,block:h=!1,size:_="default"}=c,{getPrefixCls:y}=T.useContext(k.E_),a=y("skeleton",d),[j,X]=Z(a),oe=(0,A.Z)(c,["prefixCls"]),ge=x()(a,`${a}-element`,{[`${a}-active`]:R,[`${a}-block`]:h},l,m,X);return j(T.createElement("div",{className:ge},T.createElement(q,Object.assign({prefixCls:`${a}-button`,size:_},oe))))};const De="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Te=c=>{const{prefixCls:d,className:l,rootClassName:m,style:R,active:h}=c,{getPrefixCls:_}=T.useContext(k.E_),y=_("skeleton",d),[a,j]=Z(y),X=x()(y,`${y}-element`,{[`${y}-active`]:h},l,m,j);return a(T.createElement("div",{className:X},T.createElement("div",{className:x()(`${y}-image`,l),style:R},T.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${y}-image-svg`},T.createElement("path",{d:De,className:`${y}-image-path`})))))},Ke=c=>{const{prefixCls:d,className:l,rootClassName:m,active:R,block:h,size:_="default"}=c,{getPrefixCls:y}=T.useContext(k.E_),a=y("skeleton",d),[j,X]=Z(a),oe=(0,A.Z)(c,["prefixCls"]),ge=x()(a,`${a}-element`,{[`${a}-active`]:R,[`${a}-block`]:h},l,m,X);return j(T.createElement("div",{className:ge},T.createElement(q,Object.assign({prefixCls:`${a}-input`,size:_},oe))))},z=o(87462),st={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"},Qe=st,Ie=o(74643),pe=function(d,l){return T.createElement(Ie.Z,(0,z.Z)({},d,{ref:l,icon:Qe}))},Me=T.forwardRef(pe),_e=c=>{const{prefixCls:d,className:l,rootClassName:m,style:R,active:h,children:_}=c,{getPrefixCls:y}=T.useContext(k.E_),a=y("skeleton",d),[j,X]=Z(a),oe=x()(a,`${a}-element`,{[`${a}-active`]:h},X,l,m),ge=_!=null?_:T.createElement(Me,null);return j(T.createElement("div",{className:oe},T.createElement("div",{className:x()(`${a}-image`,l),style:R},ge)))},xe=o(74902),Je=c=>{const d=y=>{const{width:a,rows:j=2}=c;if(Array.isArray(a))return a[y];if(j-1===y)return a},{prefixCls:l,className:m,style:R,rows:h}=c,_=(0,xe.Z)(Array(h)).map((y,a)=>T.createElement("li",{key:a,style:{width:d(a)}}));return T.createElement("ul",{className:x()(l,m),style:R},_)},vt=c=>{let{prefixCls:d,className:l,width:m,style:R}=c;return T.createElement("h3",{className:x()(d,l),style:Object.assign({width:m},R)})};function at(c){return c&&typeof c=="object"?c:{}}function it(c,d){return c&&!d?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ot(c,d){return!c&&d?{width:"38%"}:c&&d?{width:"50%"}:{}}function kt(c,d){const l={};return(!c||!d)&&(l.width="61%"),!c&&d?l.rows=3:l.rows=2,l}const qe=c=>{const{prefixCls:d,loading:l,className:m,rootClassName:R,style:h,children:_,avatar:y=!1,title:a=!0,paragraph:j=!0,active:X,round:oe}=c,{getPrefixCls:ge,direction:he,skeleton:fe}=T.useContext(k.E_),le=ge("skeleton",d),[je,Ue]=Z(le);if(l||!("loading"in c)){const rt=!!y,K=!!a,yt=!!j;let xt;if(rt){const mt=Object.assign(Object.assign({prefixCls:`${le}-avatar`},it(K,yt)),at(y));xt=T.createElement("div",{className:`${le}-header`},T.createElement(q,Object.assign({},mt)))}let Rt;if(K||yt){let mt;if(K){const Bt=Object.assign(Object.assign({prefixCls:`${le}-title`},ot(rt,yt)),at(a));mt=T.createElement(vt,Object.assign({},Bt))}let It;if(yt){const Bt=Object.assign(Object.assign({prefixCls:`${le}-paragraph`},kt(rt,K)),at(j));It=T.createElement(Je,Object.assign({},Bt))}Rt=T.createElement("div",{className:`${le}-content`},mt,It)}const et=x()(le,{[`${le}-with-avatar`]:rt,[`${le}-active`]:X,[`${le}-rtl`]:he==="rtl",[`${le}-round`]:oe},fe==null?void 0:fe.className,m,R,Ue);return je(T.createElement("div",{className:et,style:Object.assign(Object.assign({},fe==null?void 0:fe.style),h)},xt,Rt))}return typeof _!="undefined"?_:null};qe.Button=Ae,qe.Avatar=Q,qe.Input=Ke,qe.Image=Te,qe.Node=_e;var Re=qe,N=Re},93421:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return $}});var s=o(67294),x=o(94184),T=o.n(x),k=o(37419),A=o(53124),g=o(4173);const q=s.createContext({latestIndex:0}),te=q.Provider;var P=E=>{let{className:w,index:S,children:L,split:v,style:I}=E;const{latestIndex:Z}=s.useContext(q);return L==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:w,style:I},L),S<Z&&v&&s.createElement("span",{className:`${w}-split`},v))},ne=o(51916);function W(E){return["small","middle","large"].includes(E)}function O(E){return E?typeof E=="number"&&!Number.isNaN(E):!1}var V=function(E,w){var S={};for(var L in E)Object.prototype.hasOwnProperty.call(E,L)&&w.indexOf(L)<0&&(S[L]=E[L]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,L=Object.getOwnPropertySymbols(E);v<L.length;v++)w.indexOf(L[v])<0&&Object.prototype.propertyIsEnumerable.call(E,L[v])&&(S[L[v]]=E[L[v]]);return S};const re=s.forwardRef((E,w)=>{var S,L;const{getPrefixCls:v,space:I,direction:Z}=s.useContext(A.E_),{size:M=(I==null?void 0:I.size)||"small",align:Q,className:ce,rootClassName:Ae,children:De,direction:Pe="horizontal",prefixCls:Te,split:Se,style:Ke,wrap:z=!1,classNames:st,styles:Qe}=E,Ie=V(E,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[pe,Me]=Array.isArray(M)?M:[M,M],Le=W(Me),_e=W(pe),xe=O(Me),Ct=O(pe),Je=(0,k.Z)(De,{keepEmpty:!0}),ft=Q===void 0&&Pe==="horizontal"?"center":Q,vt=v("space",Te),[at,it]=(0,ne.Z)(vt),ot=T()(vt,I==null?void 0:I.className,it,`${vt}-${Pe}`,{[`${vt}-rtl`]:Z==="rtl",[`${vt}-align-${ft}`]:ft,[`${vt}-gap-row-${Me}`]:Le,[`${vt}-gap-col-${pe}`]:_e},ce,Ae),kt=T()(`${vt}-item`,(S=st==null?void 0:st.item)!==null&&S!==void 0?S:(L=I==null?void 0:I.classNames)===null||L===void 0?void 0:L.item);let qe=0;const Re=Je.map((d,l)=>{var m,R;d!=null&&(qe=l);const h=d&&d.key||`${kt}-${l}`;return s.createElement(P,{className:kt,key:h,index:l,split:Se,style:(m=Qe==null?void 0:Qe.item)!==null&&m!==void 0?m:(R=I==null?void 0:I.styles)===null||R===void 0?void 0:R.item},d)}),N=s.useMemo(()=>({latestIndex:qe}),[qe]);if(Je.length===0)return null;const c={};return z&&(c.flexWrap="wrap"),!_e&&Ct&&(c.columnGap=pe),!Le&&xe&&(c.rowGap=Me),at(s.createElement("div",Object.assign({ref:w,className:ot,style:Object.assign(Object.assign(Object.assign({},c),I==null?void 0:I.style),Ke)},Ie),s.createElement(te,{value:N},Re)))});re.Compact=g.ZP;var $=re},33507:function(Ye,ae){"use strict";const o=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`}}});ae.Z=o},33297:function(Ye,ae,o){"use strict";o.d(ae,{Fm:function(){return W}});var s=o(45930),x=o(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}},W=(O,V)=>{const{antCls:me}=O,re=`${me}-${V}`,{inKeyframes:$,outKeyframes:E}=ne[V];return[(0,x.R)(re,$,E,O.motionDurationMid),{[`
${re}-enter,
${re}-appear
`]:{opacity:0,animationTimingFunction:O.motionEaseOutCirc},[`${re}-leave`]:{animationTimingFunction:O.motionEaseInOutCirc}}]}},67771:function(Ye,ae,o){"use strict";o.d(ae,{Qt:function(){return A},Uw:function(){return k},fJ:function(){return T},ly:function(){return g},oN:function(){return W}});var s=o(45930),x=o(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}},W=(O,V)=>{const{antCls:me}=O,re=`${me}-${V}`,{inKeyframes:$,outKeyframes:E}=ne[V];return[(0,x.R)(re,$,E,O.motionDurationMid),{[`
${re}-enter,
${re}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:O.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${re}-leave`]:{animationTimingFunction:O.motionEaseInQuint}}]}},72665:function(Ye,ae){"use strict";var o;var s=typeof Symbol=="function"&&Symbol.for,x=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,W=s?Symbol.for("react.suspense"):60113,O=s?Symbol.for("react.suspense_list"):60120,V=s?Symbol.for("react.memo"):60115,me=s?Symbol.for("react.lazy"):60116,re=s?Symbol.for("react.block"):60121,$=s?Symbol.for("react.fundamental"):60117,E=s?Symbol.for("react.responder"):60118,w=s?Symbol.for("react.scope"):60119;function S(v){if(typeof v=="object"&&v!==null){var I=v.$$typeof;switch(I){case x:switch(v=v.type,v){case u:case P:case k:case g:case A:case W:return v;default:switch(v=v&&v.$$typeof,v){case te:case ne:case me:case V:case q:return v;default:return I}}case T:return I}}}function L(v){return S(v)===P}o=u,o=P,o=te,o=q,o=x,o=ne,o=k,o=me,o=V,o=T,o=g,o=A,o=W,o=function(v){return L(v)||S(v)===u},o=L,o=function(v){return S(v)===te},o=function(v){return S(v)===q},o=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===x},o=function(v){return S(v)===ne},o=function(v){return S(v)===k},o=function(v){return S(v)===me},ae.isMemo=function(v){return S(v)===V},o=function(v){return S(v)===T},o=function(v){return S(v)===g},o=function(v){return S(v)===A},o=function(v){return S(v)===W},o=function(v){return typeof v=="string"||typeof v=="function"||v===k||v===P||v===g||v===A||v===W||v===O||typeof v=="object"&&v!==null&&(v.$$typeof===me||v.$$typeof===V||v.$$typeof===q||v.$$typeof===te||v.$$typeof===ne||v.$$typeof===$||v.$$typeof===E||v.$$typeof===w||v.$$typeof===re)},o=S},12060:function(Ye,ae,o){"use strict";Ye.exports=o(72665)},82702:function(Ye,ae,o){var s=o(34155);(function(x,T){Ye.exports=T()})(this,function(){"use strict";function x(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(_,y){v[g]=_,v[g+1]=y,g+=2,g===2&&(te?te(I):M())};function P(h){te=h}function ne(h){u=h}var W=typeof window!="undefined"?window:void 0,O=W||{},V=O.MutationObserver||O.WebKitMutationObserver,me=typeof self=="undefined"&&typeof s!="undefined"&&{}.toString.call(s)==="[object process]",re=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function $(){return function(){return s.nextTick(I)}}function E(){return typeof q!="undefined"?function(){q(I)}:L()}function w(){var h=0,_=new V(I),y=document.createTextNode("");return _.observe(y,{characterData:!0}),function(){y.data=h=++h%2}}function S(){var h=new MessageChannel;return h.port1.onmessage=I,function(){return h.port2.postMessage(0)}}function L(){var h=setTimeout;return function(){return h(I,1)}}var v=new Array(1e3);function I(){for(var h=0;h<g;h+=2){var _=v[h],y=v[h+1];_(y),v[h]=void 0,v[h+1]=void 0}g=0}function Z(){try{var h=Function("return this")().require("vertx");return q=h.runOnLoop||h.runOnContext,E()}catch(_){return L()}}var M=void 0;me?M=$():V?M=w():re?M=S():W===void 0?M=Z():M=L();function Q(h,_){var y=this,a=new this.constructor(De);a[Ae]===void 0&&ot(a);var j=y._state;if(j){var X=arguments[j-1];u(function(){return ft(j,a,X,y._result)})}else Ct(y,a,h,_);return a}function ce(h){var _=this;if(h&&typeof h=="object"&&h.constructor===_)return h;var y=new _(De);return Me(y,h),y}var Ae=Math.random().toString(36).substring(2);function De(){}var Pe=void 0,Te=1,Se=2;function Ke(){return new TypeError("You cannot resolve a promise with itself")}function z(){return new TypeError("A promises callback cannot return that same promise.")}function st(h,_,y,a){try{h.call(_,y,a)}catch(j){return j}}function Qe(h,_,y){u(function(a){var j=!1,X=st(y,_,function(oe){j||(j=!0,_!==oe?Me(a,oe):_e(a,oe))},function(oe){j||(j=!0,xe(a,oe))},"Settle: "+(a._label||" unknown promise"));!j&&X&&(j=!0,xe(a,X))},h)}function Ie(h,_){_._state===Te?_e(h,_._result):_._state===Se?xe(h,_._result):Ct(_,void 0,function(y){return Me(h,y)},function(y){return xe(h,y)})}function pe(h,_,y){_.constructor===h.constructor&&y===Q&&_.constructor.resolve===ce?Ie(h,_):y===void 0?_e(h,_):T(y)?Qe(h,_,y):_e(h,_)}function Me(h,_){if(h===_)xe(h,Ke());else if(x(_)){var y=void 0;try{y=_.then}catch(a){xe(h,a);return}pe(h,_,y)}else _e(h,_)}function Le(h){h._onerror&&h._onerror(h._result),Je(h)}function _e(h,_){h._state===Pe&&(h._result=_,h._state=Te,h._subscribers.length!==0&&u(Je,h))}function xe(h,_){h._state===Pe&&(h._state=Se,h._result=_,u(Le,h))}function Ct(h,_,y,a){var j=h._subscribers,X=j.length;h._onerror=null,j[X]=_,j[X+Te]=y,j[X+Se]=a,X===0&&h._state&&u(Je,h)}function Je(h){var _=h._subscribers,y=h._state;if(_.length!==0){for(var a=void 0,j=void 0,X=h._result,oe=0;oe<_.length;oe+=3)a=_[oe],j=_[oe+y],a?ft(y,a,j,X):j(X);h._subscribers.length=0}}function ft(h,_,y,a){var j=T(y),X=void 0,oe=void 0,ge=!0;if(j){try{X=y(a)}catch(he){ge=!1,oe=he}if(_===X){xe(_,z());return}}else X=a;_._state!==Pe||(j&&ge?Me(_,X):ge===!1?xe(_,oe):h===Te?_e(_,X):h===Se&&xe(_,X))}function vt(h,_){try{_(function(a){Me(h,a)},function(a){xe(h,a)})}catch(y){xe(h,y)}}var at=0;function it(){return at++}function ot(h){h[Ae]=at++,h._state=void 0,h._result=void 0,h._subscribers=[]}function kt(){return new Error("Array Methods must be provided an Array")}var qe=function(){function h(_,y){this._instanceConstructor=_,this.promise=new _(De),this.promise[Ae]||ot(this.promise),A(y)?(this.length=y.length,this._remaining=y.length,this._result=new Array(this.length),this.length===0?_e(this.promise,this._result):(this.length=this.length||0,this._enumerate(y),this._remaining===0&&_e(this.promise,this._result))):xe(this.promise,kt())}return h.prototype._enumerate=function(y){for(var a=0;this._state===Pe&&a<y.length;a++)this._eachEntry(y[a],a)},h.prototype._eachEntry=function(y,a){var j=this._instanceConstructor,X=j.resolve;if(X===ce){var oe=void 0,ge=void 0,he=!1;try{oe=y.then}catch(le){he=!0,ge=le}if(oe===Q&&y._state!==Pe)this._settledAt(y._state,a,y._result);else if(typeof oe!="function")this._remaining--,this._result[a]=y;else if(j===m){var fe=new j(De);he?xe(fe,ge):pe(fe,y,oe),this._willSettleAt(fe,a)}else this._willSettleAt(new j(function(le){return le(y)}),a)}else this._willSettleAt(X(y),a)},h.prototype._settledAt=function(y,a,j){var X=this.promise;X._state===Pe&&(this._remaining--,y===Se?xe(X,j):this._result[a]=j),this._remaining===0&&_e(X,this._result)},h.prototype._willSettleAt=function(y,a){var j=this;Ct(y,void 0,function(X){return j._settledAt(Te,a,X)},function(X){return j._settledAt(Se,a,X)})},h}();function Re(h){return new qe(this,h).promise}function N(h){var _=this;return A(h)?new _(function(y,a){for(var j=h.length,X=0;X<j;X++)_.resolve(h[X]).then(y,a)}):new _(function(y,a){return a(new TypeError("You must pass an array to race."))})}function c(h){var _=this,y=new _(De);return xe(y,h),y}function d(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function l(){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]=it(),this._result=this._state=void 0,this._subscribers=[],De!==_&&(typeof _!="function"&&d(),this instanceof h?vt(this,_):l())}return h.prototype.catch=function(y){return this.then(null,y)},h.prototype.finally=function(y){var a=this,j=a.constructor;return T(y)?a.then(function(X){return j.resolve(y()).then(function(){return X})},function(X){return j.resolve(y()).then(function(){throw X})}):a.then(y,y)},h}();m.prototype.then=Q,m.all=Re,m.race=N,m.resolve=ce,m.reject=c,m._setScheduler=P,m._setAsap=ne,m._asap=u;function R(){var h=void 0;if(typeof o.g!="undefined")h=o.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 y=null;try{y=Object.prototype.toString.call(_.resolve())}catch(a){}if(y==="[object Promise]"&&!_.cast)return}h.Promise=m}return m.polyfill=R,m.Promise=m,m})},17187:function(Ye){"use strict";var ae=typeof Reflect=="object"?Reflect:null,o=ae&&typeof ae.apply=="function"?ae.apply:function(S,L,v){return Function.prototype.apply.call(S,L,v)},s;ae&&typeof ae.ownKeys=="function"?s=ae.ownKeys:Object.getOwnPropertySymbols?s=function(S){return Object.getOwnPropertyNames(S).concat(Object.getOwnPropertySymbols(S))}:s=function(S){return Object.getOwnPropertyNames(S)};function x(w){console&&console.warn&&console.warn(w)}var T=Number.isNaN||function(S){return S!==S};function k(){k.init.call(this)}Ye.exports=k,Ye.exports.once=re,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 L=[],v=1;v<arguments.length;v++)L.push(arguments[v]);var I=S==="error",Z=this._events;if(Z!==void 0)I=I&&Z.error===void 0;else if(!I)return!1;if(I){var M;if(L.length>0&&(M=L[0]),M instanceof Error)throw M;var Q=new Error("Unhandled error."+(M?" ("+M.message+")":""));throw Q.context=M,Q}var ce=Z[S];if(ce===void 0)return!1;if(typeof ce=="function")o(ce,this,L);else for(var Ae=ce.length,De=O(ce,Ae),v=0;v<Ae;++v)o(De[v],this,L);return!0};function te(w,S,L,v){var I,Z,M;if(g(L),Z=w._events,Z===void 0?(Z=w._events=Object.create(null),w._eventsCount=0):(Z.newListener!==void 0&&(w.emit("newListener",S,L.listener?L.listener:L),Z=w._events),M=Z[S]),M===void 0)M=Z[S]=L,++w._eventsCount;else if(typeof M=="function"?M=Z[S]=v?[L,M]:[M,L]:v?M.unshift(L):M.push(L),I=q(w),I>0&&M.length>I&&!M.warned){M.warned=!0;var Q=new Error("Possible EventEmitter memory leak detected. "+M.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");Q.name="MaxListenersExceededWarning",Q.emitter=w,Q.type=S,Q.count=M.length,x(Q)}return w}k.prototype.addListener=function(S,L){return te(this,S,L,!1)},k.prototype.on=k.prototype.addListener,k.prototype.prependListener=function(S,L){return te(this,S,L,!0)};function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function P(w,S,L){var v={fired:!1,wrapFn:void 0,target:w,type:S,listener:L},I=u.bind(v);return I.listener=L,v.wrapFn=I,I}k.prototype.once=function(S,L){return g(L),this.on(S,P(this,S,L)),this},k.prototype.prependOnceListener=function(S,L){return g(L),this.prependListener(S,P(this,S,L)),this},k.prototype.removeListener=function(S,L){var v,I,Z,M,Q;if(g(L),I=this._events,I===void 0)return this;if(v=I[S],v===void 0)return this;if(v===L||v.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete I[S],I.removeListener&&this.emit("removeListener",S,v.listener||L));else if(typeof v!="function"){for(Z=-1,M=v.length-1;M>=0;M--)if(v[M]===L||v[M].listener===L){Q=v[M].listener,Z=M;break}if(Z<0)return this;Z===0?v.shift():V(v,Z),v.length===1&&(I[S]=v[0]),I.removeListener!==void 0&&this.emit("removeListener",S,Q||L)}return this},k.prototype.off=k.prototype.removeListener,k.prototype.removeAllListeners=function(S){var L,v,I;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 Z=Object.keys(v),M;for(I=0;I<Z.length;++I)M=Z[I],M!=="removeListener"&&this.removeAllListeners(M);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=v[S],typeof L=="function")this.removeListener(S,L);else if(L!==void 0)for(I=L.length-1;I>=0;I--)this.removeListener(S,L[I]);return this};function ne(w,S,L){var v=w._events;if(v===void 0)return[];var I=v[S];return I===void 0?[]:typeof I=="function"?L?[I.listener||I]:[I]:L?me(I):O(I,I.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):W.call(w,S)},k.prototype.listenerCount=W;function W(w){var S=this._events;if(S!==void 0){var L=S[w];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}k.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]};function O(w,S){for(var L=new Array(S),v=0;v<S;++v)L[v]=w[v];return L}function V(w,S){for(;S+1<w.length;S++)w[S]=w[S+1];w.pop()}function me(w){for(var S=new Array(w.length),L=0;L<S.length;++L)S[L]=w[L].listener||w[L];return S}function re(w,S){return new Promise(function(L,v){function I(M){w.removeListener(S,Z),v(M)}function Z(){typeof w.removeListener=="function"&&w.removeListener("error",I),L([].slice.call(arguments))}E(w,S,Z,{once:!0}),S!=="error"&&$(w,I,{once:!0})})}function $(w,S,L){typeof w.on=="function"&&E(w,"error",S,L)}function E(w,S,L,v){if(typeof w.on=="function")v.once?w.once(S,L):w.on(S,L);else if(typeof w.addEventListener=="function")w.addEventListener(S,function I(Z){v.once&&w.removeEventListener(S,I),L(Z)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof w)}},78595:function(Ye,ae,o){"use strict";o.d(ae,{iz:function(){return wi},ck:function(){return dt},BW:function(){return xi},sN:function(){return dt},Wd:function(){return Ei},ZP:function(){return Xi},Xl:function(){return j}});var s=o(87462),x=o(4942),T=o(1413),k=o(74902),A=o(97685),g=o(45987),q=o(94184),te=o.n(q),u=o(67294),P=o(48555);function ne(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var W=ne()?u.useLayoutEffect:u.useEffect,O=function(C,D){var F=u.useRef(!0);W(function(){return C(F.current)},D),W(function(){return F.current=!1,function(){F.current=!0}},[])},V=function(C,D){O(function(F){if(!F)return C()},D)},me=O,re=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$=void 0;function E(p,C){var D=p.prefixCls,F=p.invalidate,B=p.item,H=p.renderItem,U=p.responsive,ve=p.responsiveDisabled,Be=p.registerSize,we=p.itemKey,tt=p.className,He=p.style,gt=p.children,_t=p.display,Ze=p.order,pt=p.component,Et=pt===void 0?"div":pt,bt=(0,g.Z)(p,re),Ve=U&&!_t;function Xe(ht){Be(we,ht)}u.useEffect(function(){return function(){Xe(null)}},[]);var ze=H&&B!==$?H(B):gt,nt;F||(nt={opacity:Ve?0:1,height:Ve?0:$,overflowY:Ve?"hidden":$,order:U?Ze:$,pointerEvents:Ve?"none":$,position:Ve?"absolute":$});var ct={};Ve&&(ct["aria-hidden"]=!0);var Dt=u.createElement(Et,(0,s.Z)({className:te()(!F&&D,tt),style:(0,T.Z)((0,T.Z)({},nt),He)},ct,bt,{ref:C}),ze);return U&&(Dt=u.createElement(P.Z,{onResize:function(sn){var At=sn.offsetWidth;Xe(At)},disabled:ve},Dt)),Dt}var w=u.forwardRef(E);w.displayName="Item";var S=w;function L(p){var C=u.useRef();C.current=p;var D=u.useCallback(function(){for(var F,B=arguments.length,H=new Array(B),U=0;U<B;U++)H[U]=arguments[U];return(F=C.current)===null||F===void 0?void 0:F.call.apply(F,[C].concat(H))},[]);return D}var v=o(73935),I=function(C){return+setTimeout(C,16)},Z=function(C){return clearTimeout(C)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(I=function(C){return window.requestAnimationFrame(C)},Z=function(C){return window.cancelAnimationFrame(C)});var M=0,Q=new Map;function ce(p){Q.delete(p)}var Ae=function(C){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;M+=1;var F=M;function B(H){if(H===0)ce(F),C();else{var U=I(function(){B(H-1)});Q.set(F,U)}}return B(D),F};Ae.cancel=function(p){var C=Q.get(p);return ce(C),Z(C)};var De=Ae;function Pe(p){if(typeof MessageChannel=="undefined")De(p);else{var C=new MessageChannel;C.port1.onmessage=function(){return p()},C.port2.postMessage(void 0)}}function Te(){var p=u.useRef(null),C=function(F){p.current||(p.current=[],Pe(function(){(0,v.unstable_batchedUpdates)(function(){p.current.forEach(function(B){B()}),p.current=null})})),p.current.push(F)};return C}function Se(p,C){var D=u.useState(C),F=(0,A.Z)(D,2),B=F[0],H=F[1],U=L(function(ve){p(function(){H(ve)})});return[B,U]}var Ke=u.createContext(null),z=["component"],st=["className"],Qe=["className"],Ie=function(C,D){var F=u.useContext(Ke);if(!F){var B=C.component,H=B===void 0?"div":B,U=(0,g.Z)(C,z);return u.createElement(H,(0,s.Z)({},U,{ref:D}))}var ve=F.className,Be=(0,g.Z)(F,st),we=C.className,tt=(0,g.Z)(C,Qe);return u.createElement(Ke.Provider,{value:null},u.createElement(S,(0,s.Z)({ref:D,className:te()(ve,we)},Be,tt)))},pe=u.forwardRef(Ie);pe.displayName="RawItem";var Me=pe,Le=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],_e="responsive",xe="invalidate";function Ct(p){return"+ ".concat(p.length," ...")}function Je(p,C){var D=p.prefixCls,F=D===void 0?"rc-overflow":D,B=p.data,H=B===void 0?[]:B,U=p.renderItem,ve=p.renderRawItem,Be=p.itemKey,we=p.itemWidth,tt=we===void 0?10:we,He=p.ssr,gt=p.style,_t=p.className,Ze=p.maxCount,pt=p.renderRest,Et=p.renderRawRest,bt=p.suffix,Ve=p.component,Xe=Ve===void 0?"div":Ve,ze=p.itemComponent,nt=p.onVisibleChange,ct=(0,g.Z)(p,Le),Dt=He==="full",ht=Te(),sn=Se(ht,null),At=(0,A.Z)(sn,2),an=At[0],tn=At[1],Ut=an||0,ln=Se(ht,new Map),zt=(0,A.Z)(ln,2),Jt=zt[0],Yt=zt[1],xn=Se(ht,0),Dn=(0,A.Z)(xn,2),Bn=Dn[0],Tn=Dn[1],kn=Se(ht,0),wn=(0,A.Z)(kn,2),En=wn[0],Fn=wn[1],on=Se(ht,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&&Dt?Number.MAX_SAFE_INTEGER:yn||0},[yn,an]),hi=(0,u.useState)(!1),Kn=(0,A.Z)(hi,2),ii=Kn[0],ri=Kn[1],fn="".concat(F,"-item"),si=Math.max(Bn,En),Un=Ze===_e,mn=H.length&&Un,ai=Ze===xe,Hn=mn||typeof Ze=="number"&&H.length>Ze,vn=(0,u.useMemo)(function(){var $e=H;return mn?an===null&&Dt?$e=H:$e=H.slice(0,Math.min(H.length,Ut/tt)):typeof Ze=="number"&&($e=H.slice(0,Ze)),$e},[H,tt,an,Ze,mn]),zn=(0,u.useMemo)(function(){return mn?H.slice(Pn+1):H.slice(vn.length)},[H,vn,mn,Pn]),Ln=(0,u.useCallback)(function($e,Ge){var Gt;return typeof Be=="function"?Be($e):(Gt=Be&&($e==null?void 0:$e[Be]))!==null&&Gt!==void 0?Gt:Ge},[Be]),Vn=(0,u.useCallback)(U||function($e){return $e},[U]);function nn($e,Ge,Gt){yn===$e&&(Ge===void 0||Ge===hn)||(ci($e),Gt||(ri($e<H.length-1),nt==null||nt($e)),Ge!==void 0&&Rn(Ge))}function Gn($e,Ge){tn(Ge.clientWidth)}function On($e,Ge){Yt(function(Gt){var Sn=new Map(Gt);return Ge===null?Sn.delete($e):Sn.set($e,Ge),Sn})}function bn($e,Ge){Fn(Ge),Tn(En)}function pn($e,Ge){Mn(Ge)}function fi($e){return Jt.get(Ln(vn[$e],$e))}me(function(){if(Ut&&typeof si=="number"&&vn){var $e=An,Ge=vn.length,Gt=Ge-1;if(!Ge){nn(0,null);return}for(var Sn=0;Sn<Ge;Sn+=1){var Xn=fi(Sn);if(Dt&&(Xn=Xn||0),Xn===void 0){nn(Sn-1,void 0,!0);break}if($e+=Xn,Gt===0&&$e<=Ut||Sn===Gt-1&&$e+fi(Gt)<=Ut){nn(Gt,null);break}else if($e+si>Ut){nn(Sn-1,$e-Xn-An+En);break}}bt&&fi(0)+An>Ut&&Rn(null)}},[Ut,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:ze,invalidate:ai},bi=ve?function($e,Ge){var Gt=Ln($e,Ge);return u.createElement(Ke.Provider,{key:Gt,value:(0,T.Z)((0,T.Z)({},Jn),{},{order:Ge,item:$e,itemKey:Gt,registerSize:On,display:Ge<=Pn})},ve($e,Ge))}:function($e,Ge){var Gt=Ln($e,Ge);return u.createElement(S,(0,s.Z)({},Jn,{order:Ge,key:Gt,item:$e,renderItem:Vn,itemKey:Gt,registerSize:On,display:Ge<=Pn}))},Wn,li={order:yi?Pn:Number.MAX_SAFE_INTEGER,className:"".concat(fn,"-rest"),registerSize:bn,display:yi};if(Et)Et&&(Wn=u.createElement(Ke.Provider,{value:(0,T.Z)((0,T.Z)({},Jn),li)},Et(zn)));else{var ui=pt||Ct;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&&F,_t),style:gt,ref:C},ct),vn.map(bi),Hn?Wn:null,bt&&u.createElement(S,(0,s.Z)({},Jn,{responsive:Un,responsiveDisabled:!mn,order:Pn,className:"".concat(fn,"-suffix"),registerSize:pn,display:!0,style:oi}),bt));return Un&&(mi=u.createElement(P.Z,{onResize:Gn,disabled:!mn},mi)),mi}var ft=u.forwardRef(Je);ft.displayName="Overflow",ft.Item=Me,ft.RESPONSIVE=_e,ft.INVALIDATE=xe;var vt=ft,at=vt,it=o(21770),ot=o(80334),kt=o(91881),qe=u.createContext(null);function Re(p,C){return p===void 0?null:"".concat(p,"-").concat(C)}function N(p){var C=u.useContext(qe);return Re(C,p)}var c=o(56982),d=["children","locked"],l=u.createContext(null);function m(p,C){var D=(0,T.Z)({},p);return Object.keys(C).forEach(function(F){var B=C[F];B!==void 0&&(D[F]=B)}),D}function R(p){var C=p.children,D=p.locked,F=(0,g.Z)(p,d),B=u.useContext(l),H=(0,c.Z)(function(){return m(B,F)},[B,F],function(U,ve){return!D&&(U[0]!==ve[0]||!(0,kt.Z)(U[1],ve[1],!0))});return u.createElement(l.Provider,{value:H},C)}var h=[],_=u.createContext(null);function y(){return u.useContext(_)}var a=u.createContext(h);function j(p){var C=u.useContext(a);return u.useMemo(function(){return p!==void 0?[].concat((0,k.Z)(C),[p]):C},[C,p])}var X=u.createContext(null),oe=u.createContext({}),ge=oe,he=o(15105),fe=o(75164),le=function(p){if(!p)return!1;if(p instanceof Element){if(p.offsetParent)return!0;if(p.getBBox){var C=p.getBBox(),D=C.width,F=C.height;if(D||F)return!0}if(p.getBoundingClientRect){var B=p.getBoundingClientRect(),H=B.width,U=B.height;if(H||U)return!0}}return!1};function je(p){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(le(p)){var D=p.nodeName.toLowerCase(),F=["input","select","textarea","button"].includes(D)||p.isContentEditable||D==="a"&&!!p.getAttribute("href"),B=p.getAttribute("tabindex"),H=Number(B),U=null;return B&&!Number.isNaN(H)?U=H:F&&U===null&&(U=0),F&&p.disabled&&(U=null),U!==null&&(U>=0||C&&U<0)}return!1}function Ue(p){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,D=(0,k.Z)(p.querySelectorAll("*")).filter(function(F){return je(F,C)});return je(p,C)&&D.unshift(p),D}var rt=null;function K(){rt=document.activeElement}function yt(){rt=null}function xt(){if(rt)try{rt.focus()}catch(p){}}function Rt(p,C){if(C.keyCode===9){var D=Ue(p),F=D[C.shiftKey?0:D.length-1],B=F===document.activeElement||p===document.activeElement;if(B){var H=D[C.shiftKey?D.length-1:0];H.focus(),C.preventDefault()}}}var et=he.Z.LEFT,mt=he.Z.RIGHT,It=he.Z.UP,Bt=he.Z.DOWN,wt=he.Z.ENTER,Ot=he.Z.ESC,Ht=he.Z.HOME,$t=he.Z.END,Ee=[It,Bt,et,mt];function We(p,C,D,F){var B,H,U,ve,Be="prev",we="next",tt="children",He="parent";if(p==="inline"&&F===wt)return{inlineTrigger:!0};var gt=(B={},(0,x.Z)(B,It,Be),(0,x.Z)(B,Bt,we),B),_t=(H={},(0,x.Z)(H,et,D?we:Be),(0,x.Z)(H,mt,D?Be:we),(0,x.Z)(H,Bt,tt),(0,x.Z)(H,wt,tt),H),Ze=(U={},(0,x.Z)(U,It,Be),(0,x.Z)(U,Bt,we),(0,x.Z)(U,wt,tt),(0,x.Z)(U,Ot,He),(0,x.Z)(U,et,D?tt:He),(0,x.Z)(U,mt,D?He:tt),U),pt={inline:gt,horizontal:_t,vertical:Ze,inlineSub:gt,horizontalSub:Ze,verticalSub:Ze},Et=(ve=pt["".concat(p).concat(C?"":"Sub")])===null||ve===void 0?void 0:ve[F];switch(Et){case Be:return{offset:-1,sibling:!0};case we:return{offset:1,sibling:!0};case He:return{offset:-1,sibling:!1};case tt:return{offset:1,sibling:!1};default:return null}}function lt(p){for(var C=p;C;){if(C.getAttribute("data-menu-list"))return C;C=C.parentElement}return null}function Pt(p,C){for(var D=p||document.activeElement;D;){if(C.has(D))return D;D=D.parentElement}return null}function Zt(p,C){var D=Ue(p,!0);return D.filter(function(F){return C.has(F)})}function Wt(p,C,D){var F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!p)return null;var B=Zt(p,C),H=B.length,U=B.findIndex(function(ve){return D===ve});return F<0?U===-1?U=H-1:U-=1:F>0&&(U+=1),U=(U+H)%H,B[U]}function Lt(p,C,D,F,B,H,U,ve,Be,we){var tt=u.useRef(),He=u.useRef();He.current=C;var gt=function(){fe.Z.cancel(tt.current)};return u.useEffect(function(){return function(){gt()}},[]),function(_t){var Ze=_t.which;if([].concat(Ee,[wt,Ot,Ht,$t]).includes(Ze)){var pt,Et,bt,Ve=function(){pt=new Set,Et=new Map,bt=new Map;var zt=H();return zt.forEach(function(Jt){var Yt=document.querySelector("[data-menu-id='".concat(Re(F,Jt),"']"));Yt&&(pt.add(Yt),bt.set(Yt,Jt),Et.set(Jt,Yt))}),pt};Ve();var Xe=Et.get(C),ze=Pt(Xe,pt),nt=bt.get(ze),ct=We(p,U(nt,!0).length===1,D,Ze);if(!ct&&Ze!==Ht&&Ze!==$t)return;(Ee.includes(Ze)||[Ht,$t].includes(Ze))&&_t.preventDefault();var Dt=function(zt){if(zt){var Jt=zt,Yt=zt.querySelector("a");Yt!=null&&Yt.getAttribute("href")&&(Jt=Yt);var xn=bt.get(zt);ve(xn),gt(),tt.current=(0,fe.Z)(function(){He.current===xn&&Jt.focus()})}};if([Ht,$t].includes(Ze)||ct.sibling||!ze){var ht;!ze||p==="inline"?ht=B.current:ht=lt(ze);var sn,At=Zt(ht,pt);Ze===Ht?sn=At[0]:Ze===$t?sn=At[At.length-1]:sn=Wt(ht,pt,ze,ct.offset),Dt(sn)}else if(ct.inlineTrigger)Be(nt);else if(ct.offset>0)Be(nt,!0),gt(),tt.current=(0,fe.Z)(function(){Ve();var ln=ze.getAttribute("aria-controls"),zt=document.getElementById(ln),Jt=Wt(zt,pt);Dt(Jt)},5);else if(ct.offset<0){var an=U(nt,!0),tn=an[an.length-2],Ut=Et.get(tn);Be(tn,!1),Dt(Ut)}}we==null||we(_t)}}function Xt(p){Promise.resolve().then(p)}var ke="__RC_UTIL_PATH_SPLIT__",Cn=function(C){return C.join(ke)},G=function(C){return C.split(ke)},e="rc-menu-more";function t(){var p=u.useState({}),C=(0,A.Z)(p,2),D=C[1],F=(0,u.useRef)(new Map),B=(0,u.useRef)(new Map),H=u.useState([]),U=(0,A.Z)(H,2),ve=U[0],Be=U[1],we=(0,u.useRef)(0),tt=(0,u.useRef)(!1),He=function(){tt.current||D({})},gt=(0,u.useCallback)(function(Xe,ze){var nt=Cn(ze);B.current.set(nt,Xe),F.current.set(Xe,nt),we.current+=1;var ct=we.current;Xt(function(){ct===we.current&&He()})},[]),_t=(0,u.useCallback)(function(Xe,ze){var nt=Cn(ze);B.current.delete(nt),F.current.delete(Xe)},[]),Ze=(0,u.useCallback)(function(Xe){Be(Xe)},[]),pt=(0,u.useCallback)(function(Xe,ze){var nt=F.current.get(Xe)||"",ct=G(nt);return ze&&ve.includes(ct[0])&&ct.unshift(e),ct},[ve]),Et=(0,u.useCallback)(function(Xe,ze){return Xe.some(function(nt){var ct=pt(nt,!0);return ct.includes(ze)})},[pt]),bt=function(){var ze=(0,k.Z)(F.current.keys());return ve.length&&ze.push(e),ze},Ve=(0,u.useCallback)(function(Xe){var ze="".concat(F.current.get(Xe)).concat(ke),nt=new Set;return(0,k.Z)(B.current.keys()).forEach(function(ct){ct.startsWith(ze)&&nt.add(B.current.get(ct))}),nt},[]);return u.useEffect(function(){return function(){tt.current=!0}},[]),{registerPath:gt,unregisterPath:_t,refreshOverflowKeys:Ze,isSubPathKey:Et,getKeyPath:pt,getKeys:bt,getSubPathKeys:Ve}}function n(p){var C=u.useRef(p);C.current=p;var D=u.useCallback(function(){for(var F,B=arguments.length,H=new Array(B),U=0;U<B;U++)H[U]=arguments[U];return(F=C.current)===null||F===void 0?void 0:F.call.apply(F,[C].concat(H))},[]);return p?D:void 0}var i=Math.random().toFixed(5).toString().slice(2),r=0;function f(p){var C=(0,it.Z)(p,{value:p}),D=(0,A.Z)(C,2),F=D[0],B=D[1];return u.useEffect(function(){r+=1;var H="".concat(i,"-").concat(r);B("rc-menu-uuid-".concat(H))},[]),F}var b=o(15671),se=o(43144),J=o(60136),ue=o(51630),Ne=o(98423),Fe=o(42550);function ie(p,C,D,F){var B=u.useContext(l),H=B.activeKey,U=B.onActive,ve=B.onInactive,Be={active:H===p};return C||(Be.onMouseEnter=function(we){D==null||D({key:p,domEvent:we}),U(p)},Be.onMouseLeave=function(we){F==null||F({key:p,domEvent:we}),ve(p)}),Be}function Oe(p){var C=u.useContext(l),D=C.mode,F=C.rtl,B=C.inlineIndent;if(D!=="inline")return null;var H=p;return F?{paddingRight:H*B}:{paddingLeft:H*B}}function de(p){var C=p.icon,D=p.props,F=p.children,B;return C===null||C===!1?null:(typeof C=="function"?B=u.createElement(C,(0,T.Z)({},D)):typeof C!="boolean"&&(B=C),B||F||null)}var Y=["item"];function ee(p){var C=p.item,D=(0,g.Z)(p,Y);return Object.defineProperty(D,"item",{get:function(){return(0,ot.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),C}}),D}var be=["title","attribute","elementRef"],Ce=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ut=["active"],dn=function(p){(0,J.Z)(D,p);var C=(0,ue.Z)(D);function D(){return(0,b.Z)(this,D),C.apply(this,arguments)}return(0,se.Z)(D,[{key:"render",value:function(){var B=this.props,H=B.title,U=B.attribute,ve=B.elementRef,Be=(0,g.Z)(B,be),we=(0,Ne.Z)(Be,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,ot.ZP)(!U,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(at.Item,(0,s.Z)({},U,{title:typeof H=="string"?H:void 0},we,{ref:ve}))}}]),D}(u.Component),Ft=u.forwardRef(function(p,C){var D,F=p.style,B=p.className,H=p.eventKey,U=p.warnKey,ve=p.disabled,Be=p.itemIcon,we=p.children,tt=p.role,He=p.onMouseEnter,gt=p.onMouseLeave,_t=p.onClick,Ze=p.onKeyDown,pt=p.onFocus,Et=(0,g.Z)(p,Ce),bt=N(H),Ve=u.useContext(l),Xe=Ve.prefixCls,ze=Ve.onItemClick,nt=Ve.disabled,ct=Ve.overflowDisabled,Dt=Ve.itemIcon,ht=Ve.selectedKeys,sn=Ve.onActive,At=u.useContext(ge),an=At._internalRenderMenuItem,tn="".concat(Xe,"-item"),Ut=u.useRef(),ln=u.useRef(),zt=nt||ve,Jt=(0,Fe.x1)(C,ln),Yt=j(H),xn=function(qt){return{key:H,keyPath:(0,k.Z)(Yt).reverse(),item:Ut.current,domEvent:qt}},Dn=Be||Dt,Bn=ie(H,zt,He,gt),Tn=Bn.active,kn=(0,g.Z)(Bn,ut),wn=ht.includes(H),En=Oe(Yt.length),Fn=function(qt){if(!zt){var hn=xn(qt);_t==null||_t(ee(hn)),ze(hn)}},on=function(qt){if(Ze==null||Ze(qt),qt.which===he.Z.ENTER){var hn=xn(qt);_t==null||_t(ee(hn)),ze(hn)}},un=function(qt){sn(H),pt==null||pt(qt)},An={};p.role==="option"&&(An["aria-selected"]=wn);var Mn=u.createElement(dn,(0,s.Z)({ref:Ut,elementRef:Jt,role:tt===null?"none":tt||"menuitem",tabIndex:ve?null:-1,"data-menu-id":ct&&bt?null:bt},Et,kn,An,{component:"li","aria-disabled":ve,style:(0,T.Z)((0,T.Z)({},En),F),className:te()(tn,(D={},(0,x.Z)(D,"".concat(tn,"-active"),Tn),(0,x.Z)(D,"".concat(tn,"-selected"),wn),(0,x.Z)(D,"".concat(tn,"-disabled"),zt),D),B),onClick:Fn,onKeyDown:on,onFocus:un}),we,u.createElement(de,{props:(0,T.Z)((0,T.Z)({},p),{},{isSelected:wn}),icon:Dn}));return an&&(Mn=an(Mn,p,{selected:wn})),Mn});function ye(p,C){var D=p.eventKey,F=y(),B=j(D);return u.useEffect(function(){if(F)return F.registerPath(D,B),function(){F.unregisterPath(D,B)}},[B]),F?null:u.createElement(Ft,(0,s.Z)({},p,{ref:C}))}var dt=u.forwardRef(ye),Kt=["className","children"],Vt=function(C,D){var F=C.className,B=C.children,H=(0,g.Z)(C,Kt),U=u.useContext(l),ve=U.prefixCls,Be=U.mode,we=U.rtl;return u.createElement("ul",(0,s.Z)({className:te()(ve,we&&"".concat(ve,"-rtl"),"".concat(ve,"-sub"),"".concat(ve,"-").concat(Be==="inline"?"inline":"vertical"),F),role:"menu"},H,{"data-menu-list":!0,ref:D}),B)},Mt=u.forwardRef(Vt);Mt.displayName="SubMenuList";var cn=Mt,Yn=o(50344);function rn(p,C){return(0,Yn.Z)(p).map(function(D,F){if(u.isValidElement(D)){var B,H,U=D.key,ve=(B=(H=D.props)===null||H===void 0?void 0:H.eventKey)!==null&&B!==void 0?B:U,Be=ve==null;Be&&(ve="tmp_key-".concat([].concat((0,k.Z)(C),[F]).join("-")));var we={key:ve,eventKey:ve};return u.cloneElement(D,we)}return D})}var In=o(62709),Nt={adjustX:1,adjustY:1},jn={topLeft:{points:["bl","tl"],overflow:Nt},topRight:{points:["br","tr"],overflow:Nt},bottomLeft:{points:["tl","bl"],overflow:Nt},bottomRight:{points:["tr","br"],overflow:Nt},leftTop:{points:["tr","tl"],overflow:Nt},leftBottom:{points:["br","bl"],overflow:Nt},rightTop:{points:["tl","tr"],overflow:Nt},rightBottom:{points:["bl","br"],overflow:Nt}},Zn={topLeft:{points:["bl","tl"],overflow:Nt},topRight:{points:["br","tr"],overflow:Nt},bottomLeft:{points:["tl","bl"],overflow:Nt},bottomRight:{points:["tr","br"],overflow:Nt},rightTop:{points:["tr","tl"],overflow:Nt},rightBottom:{points:["br","bl"],overflow:Nt},leftTop:{points:["tl","tr"],overflow:Nt},leftBottom:{points:["bl","br"],overflow:Nt}},en=null;function Qt(p,C,D){if(C)return C;if(D)return D[p]||D.other}var Qn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function vi(p){var C=p.prefixCls,D=p.visible,F=p.children,B=p.popup,H=p.popupStyle,U=p.popupClassName,ve=p.popupOffset,Be=p.disabled,we=p.mode,tt=p.onVisibleChange,He=u.useContext(l),gt=He.getPopupContainer,_t=He.rtl,Ze=He.subMenuOpenDelay,pt=He.subMenuCloseDelay,Et=He.builtinPlacements,bt=He.triggerSubMenuAction,Ve=He.forceSubMenuRender,Xe=He.rootClassName,ze=He.motion,nt=He.defaultMotions,ct=u.useState(!1),Dt=(0,A.Z)(ct,2),ht=Dt[0],sn=Dt[1],At=_t?(0,T.Z)((0,T.Z)({},Zn),Et):(0,T.Z)((0,T.Z)({},jn),Et),an=Qn[we],tn=Qt(we,ze,nt),Ut=u.useRef(tn);we!=="inline"&&(Ut.current=tn);var ln=(0,T.Z)((0,T.Z)({},Ut.current),{},{leavedClassName:"".concat(C,"-hidden"),removeOnLeave:!1,motionAppear:!0}),zt=u.useRef();return u.useEffect(function(){return zt.current=(0,fe.Z)(function(){sn(D)}),function(){fe.Z.cancel(zt.current)}},[D]),u.createElement(In.Z,{prefixCls:C,popupClassName:te()("".concat(C,"-popup"),(0,x.Z)({},"".concat(C,"-rtl"),_t),U,Xe),stretch:we==="horizontal"?"minWidth":null,getPopupContainer:gt,builtinPlacements:At,popupPlacement:an,popupVisible:ht,popup:B,popupStyle:H,popupAlign:ve&&{offset:ve},action:Be?[]:[bt],mouseEnterDelay:Ze,mouseLeaveDelay:pt,onPopupVisibleChange:tt,forceRender:Ve,popupMotion:ln,fresh:!0},F)}var _i=o(62874);function Mi(p){var C=p.id,D=p.open,F=p.keyPath,B=p.children,H="inline",U=u.useContext(l),ve=U.prefixCls,Be=U.forceSubMenuRender,we=U.motion,tt=U.defaultMotions,He=U.mode,gt=u.useRef(!1);gt.current=He===H;var _t=u.useState(!gt.current),Ze=(0,A.Z)(_t,2),pt=Ze[0],Et=Ze[1],bt=gt.current?D:!1;u.useEffect(function(){gt.current&&Et(!1)},[He]);var Ve=(0,T.Z)({},Qt(H,we,tt));F.length>1&&(Ve.motionAppear=!1);var Xe=Ve.onVisibleChanged;return Ve.onVisibleChanged=function(ze){return!gt.current&&!ze&&Et(!0),Xe==null?void 0:Xe(ze)},pt?null:u.createElement(R,{mode:H,locked:!gt.current},u.createElement(_i.Z,(0,s.Z)({visible:bt},Ve,{forceRender:Be,removeOnLeave:!1,leavedClassName:"".concat(ve,"-hidden")}),function(ze){var nt=ze.className,ct=ze.style;return u.createElement(cn,{id:C,className:nt,style:ct},B)}))}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(C){var D,F=C.style,B=C.className,H=C.title,U=C.eventKey,ve=C.warnKey,Be=C.disabled,we=C.internalPopupClose,tt=C.children,He=C.itemIcon,gt=C.expandIcon,_t=C.popupClassName,Ze=C.popupOffset,pt=C.popupStyle,Et=C.onClick,bt=C.onMouseEnter,Ve=C.onMouseLeave,Xe=C.onTitleClick,ze=C.onTitleMouseEnter,nt=C.onTitleMouseLeave,ct=(0,g.Z)(C,Ni),Dt=N(U),ht=u.useContext(l),sn=ht.prefixCls,At=ht.mode,an=ht.openKeys,tn=ht.disabled,Ut=ht.overflowDisabled,ln=ht.activeKey,zt=ht.selectedKeys,Jt=ht.itemIcon,Yt=ht.expandIcon,xn=ht.onItemClick,Dn=ht.onOpenChange,Bn=ht.onActive,Tn=u.useContext(ge),kn=Tn._internalRenderSubMenuItem,wn=u.useContext(X),En=wn.isSubPathKey,Fn=j(),on="".concat(sn,"-submenu"),un=tn||Be,An=u.useRef(),Mn=u.useRef(),Nn=He!=null?He:Jt,qt=gt!=null?gt:Yt,hn=an.includes(U),Rn=!Ut&&hn,ni=En(zt,U),$n=ie(U,un,ze,nt),yn=$n.active,ci=(0,g.Z)($n,$i),Pn=u.useState(!1),hi=(0,A.Z)(Pn,2),Kn=hi[0],ii=hi[1],ri=function(pn){un||ii(pn)},fn=function(pn){ri(!0),bt==null||bt({key:U,domEvent:pn})},si=function(pn){ri(!1),Ve==null||Ve({key:U,domEvent:pn})},Un=u.useMemo(function(){return yn||(At!=="inline"?Kn||En([ln],U):!1)},[At,yn,ln,Kn,U,En]),mn=Oe(Fn.length),ai=function(pn){un||(Xe==null||Xe({key:U,domEvent:pn}),At==="inline"&&Dn(U,!hn))},Hn=n(function(bn){Et==null||Et(ee(bn)),xn(bn)}),vn=function(pn){At!=="inline"&&Dn(U,pn)},zn=function(){Bn(U)},Ln=Dt&&"".concat(Dt,"-popup"),Vn=u.createElement("div",(0,s.Z)({role:"menuitem",style:mn,className:"".concat(on,"-title"),tabIndex:un?null:-1,ref:An,title:typeof H=="string"?H:null,"data-menu-id":Ut&&Dt?null:Dt,"aria-expanded":Rn,"aria-haspopup":!0,"aria-controls":Ln,"aria-disabled":un,onClick:ai,onFocus:zn},ci),H,u.createElement(de,{icon:At!=="horizontal"?qt:void 0,props:(0,T.Z)((0,T.Z)({},C),{},{isOpen:Rn,isSubMenu:!0})},u.createElement("i",{className:"".concat(on,"-arrow")}))),nn=u.useRef(At);if(At!=="inline"&&Fn.length>1?nn.current="vertical":nn.current=At,!Ut){var Gn=nn.current;Vn=u.createElement(vi,{mode:Gn,prefixCls:on,visible:!we&&Rn&&At!=="inline",popupClassName:_t,popupOffset:Ze,popupStyle:pt,popup:u.createElement(R,{mode:Gn==="horizontal"?"vertical":Gn},u.createElement(cn,{id:Ln,ref:Mn},tt)),disabled:un,onVisibleChange:vn},Vn)}var On=u.createElement(at.Item,(0,s.Z)({role:"none"},ct,{component:"li",style:F,className:te()(on,"".concat(on,"-").concat(At),B,(D={},(0,x.Z)(D,"".concat(on,"-open"),Rn),(0,x.Z)(D,"".concat(on,"-active"),Un),(0,x.Z)(D,"".concat(on,"-selected"),ni),(0,x.Z)(D,"".concat(on,"-disabled"),un),D)),onMouseEnter:fn,onMouseLeave:si}),Vn,!Ut&&u.createElement(Mi,{id:Ln,open:Rn,keyPath:Fn},tt));return kn&&(On=kn(On,C,{selected:ni,active:Un,open:Rn,disabled:un})),u.createElement(R,{onItemClick:Hn,mode:At==="horizontal"?"vertical":At,itemIcon:Nn,expandIcon:qt},On)};function Ei(p){var C=p.eventKey,D=p.children,F=j(C),B=rn(D,F),H=y();u.useEffect(function(){if(H)return H.registerPath(C,F),function(){H.unregisterPath(C,F)}},[F]);var U;return H?U=B:U=u.createElement(Pi,p,B),u.createElement(a.Provider,{value:F},U)}var Ui=o(71002),zi=["className","title","eventKey","children"],ji=["children"],Zi=function(C){var D=C.className,F=C.title,B=C.eventKey,H=C.children,U=(0,g.Z)(C,zi),ve=u.useContext(l),Be=ve.prefixCls,we="".concat(Be,"-item-group");return u.createElement("li",(0,s.Z)({role:"presentation"},U,{onClick:function(He){return He.stopPropagation()},className:te()(we,D)}),u.createElement("div",{role:"presentation",className:"".concat(we,"-title"),title:typeof F=="string"?F:void 0},F),u.createElement("ul",{role:"group",className:"".concat(we,"-list")},H))};function xi(p){var C=p.children,D=(0,g.Z)(p,ji),F=j(D.eventKey),B=rn(C,F),H=y();return H?B:u.createElement(Zi,(0,Ne.Z)(D,["warnKey"]),B)}function wi(p){var C=p.className,D=p.style,F=u.useContext(l),B=F.prefixCls,H=y();return H?null:u.createElement("li",{role:"separator",className:te()("".concat(B,"-item-divider"),C),style:D})}var Ki=["label","children","key","type"];function Ai(p){return(p||[]).map(function(C,D){if(C&&(0,Ui.Z)(C)==="object"){var F=C,B=F.label,H=F.children,U=F.key,ve=F.type,Be=(0,g.Z)(F,Ki),we=U!=null?U:"tmp-".concat(D);return H||ve==="group"?ve==="group"?u.createElement(xi,(0,s.Z)({key:we},Be,{title:B}),Ai(H)):u.createElement(Ei,(0,s.Z)({key:we},Be,{title:B}),Ai(H)):ve==="divider"?u.createElement(wi,(0,s.Z)({key:we},Be)):u.createElement(dt,(0,s.Z)({key:we},Be),B)}return null}).filter(function(C){return C})}function Hi(p,C,D){var F=p;return C&&(F=Ai(C)),rn(F,D)}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,C){var D,F,B=p,H=B.prefixCls,U=H===void 0?"rc-menu":H,ve=B.rootClassName,Be=B.style,we=B.className,tt=B.tabIndex,He=tt===void 0?0:tt,gt=B.items,_t=B.children,Ze=B.direction,pt=B.id,Et=B.mode,bt=Et===void 0?"vertical":Et,Ve=B.inlineCollapsed,Xe=B.disabled,ze=B.disabledOverflow,nt=B.subMenuOpenDelay,ct=nt===void 0?.1:nt,Dt=B.subMenuCloseDelay,ht=Dt===void 0?.1:Dt,sn=B.forceSubMenuRender,At=B.defaultOpenKeys,an=B.openKeys,tn=B.activeKey,Ut=B.defaultActiveFirst,ln=B.selectable,zt=ln===void 0?!0:ln,Jt=B.multiple,Yt=Jt===void 0?!1:Jt,xn=B.defaultSelectedKeys,Dn=B.selectedKeys,Bn=B.onSelect,Tn=B.onDeselect,kn=B.inlineIndent,wn=kn===void 0?24:kn,En=B.motion,Fn=B.defaultMotions,on=B.triggerSubMenuAction,un=on===void 0?"hover":on,An=B.builtinPlacements,Mn=B.itemIcon,Nn=B.expandIcon,qt=B.overflowedIndicator,hn=qt===void 0?"...":qt,Rn=B.overflowedIndicatorPopupClassName,ni=B.getPopupContainer,$n=B.onClick,yn=B.onOpenChange,ci=B.onKeyDown,Pn=B.openAnimation,hi=B.openTransitionName,Kn=B._internalRenderMenuItem,ii=B._internalRenderSubMenuItem,ri=(0,g.Z)(B,Vi),fn=u.useMemo(function(){return Hi(_t,gt,ti)},[_t,gt]),si=u.useState(!1),Un=(0,A.Z)(si,2),mn=Un[0],ai=Un[1],Hn=u.useRef(),vn=f(pt),zn=Ze==="rtl",Ln=(0,it.Z)(At,{value:an,postState:function(St){return St||ti}}),Vn=(0,A.Z)(Ln,2),nn=Vn[0],Gn=Vn[1],On=function(St){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function gn(){Gn(St),yn==null||yn(St)}Tt?(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(bt==="inline"||bt==="vertical")&&Ve?["vertical",Ve]:[bt,!1]},[bt,Ve]),bi=(0,A.Z)(Jn,2),Wn=bi[0],li=bi[1],ui=Wn==="inline",mi=u.useState(Wn),$e=(0,A.Z)(mi,2),Ge=$e[0],Gt=$e[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||Ge!=="horizontal"||ze;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(jt){return jt.key}))},[Si,Ri]);var ar=(0,it.Z)(tn||Ut&&((D=fn[0])===null||D===void 0?void 0:D.key),{value:tn}),Ti=(0,A.Z)(ar,2),pi=Ti[0],Ii=Ti[1],or=n(function(jt){Ii(jt)}),lr=n(function(){Ii(void 0)});(0,u.useImperativeHandle)(C,function(){return{list:Hn.current,focus:function(St){var Tt,gn=pi!=null?pi:(Tt=fn.find(function(_r){return!_r.props.disabled}))===null||Tt===void 0?void 0:Tt.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,St)}}}});var ur=(0,it.Z)(xn||[],{value:Dn,postState:function(St){return Array.isArray(St)?St:St==null?ti:[St]}}),ki=(0,A.Z)(ur,2),Ci=ki[0],dr=ki[1],cr=function(St){if(zt){var Tt=St.key,gn=Ci.includes(Tt),_n;Yt?gn?_n=Ci.filter(function(gi){return gi!==Tt}):_n=[].concat((0,k.Z)(Ci),[Tt]):_n=[Tt],dr(_n);var ei=(0,T.Z)((0,T.Z)({},St),{},{selectedKeys:_n});gn?Tn==null||Tn(ei):Bn==null||Bn(ei)}!Yt&&nn.length&&Ge!=="inline"&&On(ti)},hr=n(function(jt){$n==null||$n(ee(jt)),cr(jt)}),Fi=n(function(jt,St){var Tt=nn.filter(function(_n){return _n!==jt});if(St)Tt.push(jt);else if(Ge!=="inline"){var gn=ir(jt);Tt=Tt.filter(function(_n){return!gn.has(_n)})}(0,kt.Z)(nn,Tt,!0)||On(Tt,!0)}),fr=function(St,Tt){var gn=Tt!=null?Tt:!nn.includes(St);Fi(St,gn)},mr=Lt(Ge,pi,zn,vn,Hn,nr,tr,Ii,fr,ci);u.useEffect(function(){ai(!0)},[]);var pr=u.useMemo(function(){return{_internalRenderMenuItem:Kn,_internalRenderSubMenuItem:ii}},[Kn,ii]),gr=Ge!=="horizontal"||ze?fn:fn.map(function(jt,St){return u.createElement(R,{key:jt.key,overflowDisabled:St>Si},jt)}),vr=u.createElement(at,(0,s.Z)({id:pt,ref:Hn,prefixCls:"".concat(U,"-overflow"),component:"ul",itemComponent:dt,className:te()(U,"".concat(U,"-root"),"".concat(U,"-").concat(Ge),we,(F={},(0,x.Z)(F,"".concat(U,"-inline-collapsed"),Yi),(0,x.Z)(F,"".concat(U,"-rtl"),zn),F),ve),dir:Ze,style:Be,role:"menu",tabIndex:He,data:gr,renderRawItem:function(St){return St},renderRawRest:function(St){var Tt=St.length,gn=Tt?fn.slice(-Tt):null;return u.createElement(Ei,{eventKey:e,title:hn,disabled:Ri,internalPopupClose:Tt===0,popupClassName:Rn},gn)},maxCount:Ge!=="horizontal"||ze?at.INVALIDATE:at.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(St){qi(St)},onKeyDown:mr},ri));return u.createElement(ge.Provider,{value:pr},u.createElement(qe.Provider,{value:vn},u.createElement(R,{prefixCls:U,rootClassName:ve,mode:Ge,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:ct,subMenuCloseDelay:ht,forceSubMenuRender:sn,builtinPlacements:An,triggerSubMenuAction:un,getPopupContainer:ni,itemIcon:Mn,expandIcon:Nn,onItemClick:hr,onOpenChange:Fi},u.createElement(X.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=dt,di.SubMenu=Ei,di.ItemGroup=xi,di.Divider=wi;var Xi=di},66680:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return x}});var s=o(67294);function x(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(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return g}});var s=o(97685),x=o(66680),T=o(8410),k=o(63896);function A(q){return q!==void 0}function g(q,te){var u=te||{},P=u.defaultValue,ne=u.value,W=u.onChange,O=u.postState,V=(0,k.Z)(function(){return A(ne)?ne:A(P)?typeof P=="function"?P():P:typeof q=="function"?q():q}),me=(0,s.Z)(V,2),re=me[0],$=me[1],E=ne!==void 0?ne:re,w=O?O(E):E,S=(0,x.Z)(W),L=(0,k.Z)([E]),v=(0,s.Z)(L,2),I=v[0],Z=v[1];(0,T.o)(function(){var Q=I[0];re!==Q&&S(re,Q)},[I]),(0,T.o)(function(){A(ne)||$(ne)},[ne]);var M=(0,x.Z)(function(Q,ce){$(Q,ce),Z([E],ce)});return[w,M]}},91881:function(Ye,ae,o){"use strict";var s=o(71002),x=o(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,W=q.has(u);if((0,x.ZP)(!W,"Warning: There may be circular references"),W)return!1;if(u===P)return!0;if(g&&ne>1)return!1;q.add(u);var O=ne+1;if(Array.isArray(u)){if(!Array.isArray(P)||u.length!==P.length)return!1;for(var V=0;V<u.length;V++)if(!te(u[V],P[V],O))return!1;return!0}if(u&&P&&(0,s.Z)(u)==="object"&&(0,s.Z)(P)==="object"){var me=Object.keys(u);return me.length!==Object.keys(P).length?!1:me.every(function(re){return te(u[re],P[re],O)})}return!1}return te(k,A)}ae.Z=T},98423:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return x}});var s=o(1413);function x(T,k){var A=(0,s.Z)({},T);return Array.isArray(k)&&k.forEach(function(g){delete A[g]}),A}},18034:function(Ye){var ae=arguments[3],o=arguments[4],s=arguments[5],x=JSON.stringify;Ye.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}o[A]=["function(require,module,exports){"+T+"(self); }",ne]}var W=Math.floor(Math.pow(16,8)*Math.random()).toString(16),O={};O[A]=A,o[W]=["function(require,module,exports){var f = require("+x(A)+");(f.default ? f.default : f)(self);}",O];var V={};me(W);function me(L){V[L]=!0;for(var v in o[L][1]){var I=o[L][1][v];V[I]||me(I)}}var re="("+ae+")({"+Object.keys(V).map(function(L){return x(L)+":["+o[L][0]+","+x(o[L][1])+"]"}).join(",")+"},{},["+x(W)+"])",$=window.URL||window.webkitURL||window.mozURL||window.msURL,E=new Blob([re],{type:"text/javascript"});if(k&&k.bare)return E;var w=$.createObjectURL(E),S=new Worker(w);return S.objectURL=w,S}}}]);