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.
55 lines
363 KiB
55 lines
363 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[4928],{25877:function($t,Re,d){"use strict";d.d(Re,{Z:function(){return ne}});var s=d(87462),k=d(67294),H={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"},V=H,x=d(74643),S=function(c,$){return k.createElement(x.Z,(0,s.Z)({},c,{ref:$,icon:V}))},ne=k.forwardRef(S)},22751:function($t,Re,d){"use strict";d.d(Re,{Z:function(){return ne}});var s=d(87462),k=d(67294),H={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"},V=H,x=d(74643),S=function(c,$){return k.createElement(x.Z,(0,s.Z)({},c,{ref:$,icon:V}))},ne=k.forwardRef(S)},91034:function($t,Re,d){"use strict";d.d(Re,{Z:function(){return ne}});var s=d(87462),k=d(67294),H={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"},V=H,x=d(74643),S=function(c,$){return k.createElement(x.Z,(0,s.Z)({},c,{ref:$,icon:V}))},ne=k.forwardRef(S)},6104:function($t,Re,d){"use strict";d.d(Re,{Z:function(){return oe}});var s=d(67294),k=d(2453),H=d(85418),V=d(24577),x=d(67631),S=d.n(x),ne=d(52262),G=d(74855),c=d(51959),$={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"},me=(L,C,O)=>new Promise((T,z)=>{var w=K=>{try{ie(O.next(K))}catch(ge){z(ge)}},P=K=>{try{ie(O.throw(K))}catch(ge){z(ge)}},ie=K=>K.done?T(K.value):Promise.resolve(K.value).then(w,P);ie((O=O.apply(L,C)).next())});function Y(L){if(isNaN(L))return{minutes:"00",seconds:"00"};const C=new Date(L*1e3).toISOString().substr(11,8);return{hour:C.substr(0,2),minutes:C.substr(3,2),seconds:C.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function U(L,C){return L-C}function re(L){L.sort(U);let C=0;for(let O=0;O<L.length-1;O++){let T=Math.abs(L[O+1]-L[O]);T<21&&(C+=T)}return C}const Oe=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var oe=(0,s.forwardRef)(({allow_skip:L,src:C,toLog:O,videoId:T,logWatchHistory:z,courseId:w=null,startTime:P,handlePause:ie=()=>{},handlePlay:K=()=>{},handlePlayEnded:ge=()=>{},autoPlay:$e=!1,onPlayEnded:ot=()=>{},isShowWaterMark:bt=!0},Bt)=>{var Dt;const Ht=((Dt=C==null?void 0:C.split("."))==null?void 0:Dt.pop())==="flv",q=(0,s.useRef)(),gn=(0,s.useRef)(),Xt=(0,s.useRef)(),De=(0,s.useRef)(),Vt=(0,s.useRef)(),Ct=(0,s.useRef)(),mt=(0,s.useRef)(),Xe=(0,s.useRef)(),it=(0,s.useRef)(),On=(0,s.useRef)(),Qt=(0,s.useRef)(),Un=(0,s.useRef)(),en=(0,s.useRef)(),zn=(0,s.useRef)(),on=navigator.userAgent.toLowerCase().match(Oe),tn=on?on[0]:"pc",er=(0,s.useRef)(!1),pn=(0,ne.eY)();let ut=0,W=0,_=0,p=null,I=!1,N=20,Q=1,b=!1,M=!1,F=[];(0,s.useImperativeHandle)(Bt,()=>({getLastUpdatedTime:()=>q.current.currentTime,getDuration:()=>q.current.duration})),k.ZP.config({maxCount:1,getContainer:()=>Xt.current});const g=(0,s.useCallback)((Ne,Ft=!1)=>{let Zt={point:q.current.currentTime};p?(Zt.log_id=p,Zt.watch_duration=re(F),Zt.total_duration=W):(w?(Zt.video_id=parseInt(T,10),Zt.course_id=w):Zt.video_id=T,Zt.duration=ut,Zt.device=tn),Ft&&(Zt.ed="1");function An(){return me(this,null,function*(){b=!0,p=yield z==null?void 0:z(Zt),b=!1,Ne&&Ne()})}An()},[T,w]);(0,s.useEffect)(()=>{q.current&&(De.current.style.display="none",Vt.current.style.display="block"),k.ZP.destroy();let Ne=null;return V.Z.isSupported&&Ht&&C&&(C==null?void 0:C.indexOf(".m3u8"))<0?(Ne=V.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:C,muted:!1}),q.current&&(Ne.attachMediaElement(q.current),Ne.load())):q.current.setAttribute("src",C),ue(),()=>{Ne&&(Ne.unload(),Ne.pause(),Ne.destroy(),Ne=null)}},[q,Ht,C]);function de(){q.current.paused?(De.current.style.display="none",Vt.current.style.display="block"):(De.current.style.display="block",Vt.current.style.display="none")}function ue(){Qt.current.style.display="none",en.current.style.display="none",Un.current.style.display="none",q.current.muted||q.current.volume===0?Qt.current.style.display="block":q.current.volume>0&&q.current.volume<=.5?en.current.style.display="block":Un.current.style.display="block"}(0,s.useEffect)(()=>{const Ne=document.getElementById("play"),Ft=document.querySelectorAll(".playback-icons use");function Zt(){K(),P&&!er.current&&(q.current.currentTime=P),er.current=!0,F.push(q.current.currentTime),I||(I=!0,O&&g())}function An(){return me(this,null,function*(){de(),F.push(q.current.currentTime),O&&g(()=>{p=null,_=0,I=!1,b=!1,M=!1,F=[],W=0,Q=1},!0),ot()})}function ae(){Ct.current.value=Math.round(q.current.currentTime),mt.current.value=Math.round(q.current.currentTime)}function Pr(){const qe=Y(Math.round(q.current.currentTime));it.current.innerText=`${qe.hour>0?qe.hour+":":""}${qe.minutes}:${qe.seconds}`,it.current.setAttribute("datetime",`${qe.hour>0?" "+qe.hour+" ":""}${qe.minutes}m ${qe.seconds}s`)}function yr(){var qe,un,Zn,ei,ti,zr,ur;const Nr=Math.round((qe=q.current)==null?void 0:qe.duration);(Zn=(un=Ct.current)==null?void 0:un.setAttribute)==null||Zn.call(un,"max",Nr),(ti=(ei=mt.current)==null?void 0:ei.setAttribute)==null||ti.call(ei,"max",Nr);const Tt=Y(Nr);Xe.current&&(Xe.current.innerText=`${Tt.hour>0?Tt.hour+":":""}${Tt.minutes}:${Tt.seconds}`,(ur=(zr=Xe.current).setAttribute)==null||ur.call(zr,"datetime",`${Tt.hour>0?" "+Tt.hour+" ":""}${Tt.minutes}m ${Tt.seconds}s`))}function Or(){try{const qe=Math.round(q.current.duration);Ct.current.setAttribute("max",qe),mt.current.setAttribute("max",qe);const un=Y(qe);Xe.current.innerText=`${un.hour>0?un.hour+":":""}${un.minutes}:${un.seconds}`,Xe.current.setAttribute("datetime",`${un.hour>0?" "+un.hour+" ":""}${un.minutes}m ${un.seconds}s`),ae(),Pr();const{width:Zn,height:ei,x:ti,y:zr}=gn.current.getBoundingClientRect();if(ti<0||zr<0||!Zn)return;if(!M){let ur=q.current.currentTime,Nr=ur-_;Math.abs(Nr)<10?(W+=Math.abs(Nr),_=ur,b||W-Q*N>=0&&(Q++,F.push(_),O&&g())):(_=ur,O&&g())}}catch(qe){console.log(qe)}}function Nn(){M=!0}function jn(){q.current.playing&&F.push(q.current.currentTime,_),_=q.current.currentTime,M=!1}function Kr(){ut=q.current.duration,ut<=20&&(N=ut/3),q.current.addEventListener("play",Zt)}function $n(qe){qe.preventDefault(),(0,c.vp)()?(q.current.style.width="100%",q.current.style.height="100%"):q.current.style.cssText=""}function Er(){ie()}function qr(qe){if(!L){k.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const un=qe.target.dataset.seek?qe.target.dataset.seek:qe.target.value;q.current.currentTime=un,mt.current.value=un,Ct.current.value=un}function ai(qe){const un=Math.round(qe.offsetX/qe.target.clientWidth*parseInt(qe.target.getAttribute("max"),10));Ct.current.setAttribute("data-seek",un);const Zn=Y(un);On.current.textContent=`${Zn.hour>0?Zn.hour+":":""}${Zn.minutes}:${Zn.seconds}`;const ei=q.current.getBoundingClientRect();On.current.style.left=`${qe.pageX-ei.left}px`}function Ur(qe){switch(qe.code){case"Space":qe.preventDefault(),kt();break;case"ArrowRight":if(qe.preventDefault(),!L){k.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(q.current.currentTime>=q.current.duration)break;q.current.currentTime=parseInt(q.current.currentTime)+5,ae();break;case"ArrowLeft":if(qe.preventDefault(),!L){k.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(q.current.currentTime===0)break;q.current.currentTime=parseInt(q.current.currentTime)-5,ae();break;case"ArrowUp":qe.preventDefault(),q.current.volume<1&&(q.current.volume=(parseInt(q.current.volume*10)+1)/10);break;case"ArrowDown":qe.preventDefault(),q.current.volume>0&&(q.current.volume=(parseInt(q.current.volume*10)-1)/10);break}}return Xt.current.addEventListener((0,c.gH)(),$n),q.current.addEventListener("canplay",Kr),q.current.addEventListener("ended",An),q.current.addEventListener("seeking",Nn),q.current.addEventListener("seeked",jn),q.current.addEventListener("loadedmetadata",yr),Ct.current.addEventListener("mousemove",ai),Ct.current.addEventListener("input",qr),q.current.addEventListener("timeupdate",Or),q.current.addEventListener("pause",Er),q.current.addEventListener("volumechange",ue),document.addEventListener("keydown",Ur),()=>{var qe,un,Zn,ei,ti,zr,ur,Nr,Tt,Ri,se,e;(qe=q.current)==null||qe.removeEventListener("canplay",Kr),(un=q.current)==null||un.removeEventListener("play",Zt),(Zn=q.current)==null||Zn.removeEventListener("ended",An),(ei=q.current)==null||ei.removeEventListener("seeking",Nn),(ti=q.current)==null||ti.removeEventListener("seeked",jn),(zr=Ct.current)==null||zr.removeEventListener("mousemove",ai),(ur=Ct.current)==null||ur.removeEventListener("input",qr),(Nr=q.current)==null||Nr.removeEventListener("timeupdate",Or),(Tt=q.current)==null||Tt.removeEventListener("pause",Er),(Ri=q.current)==null||Ri.removeEventListener("loadedmetadata",yr),(se=q.current)==null||se.removeEventListener("volumechange",ue),document.removeEventListener("keydown",Ur),(e=q.current)!=null&&e.playing&&(F.push(_,q.current.currentTime),O&&g())}},[q,C]),(0,s.useEffect)(()=>{if(q.current.onended=()=>{ge(q)},q.current.oncontextmenu=()=>!1,(C==null?void 0:C.indexOf(".m3u8"))>-1){if(q.current.canPlayType("application/vnd.apple.mpegurl"))q.current.src=C;else if(S().isSupported()){var Ne=new(S());Ne.loadSource(C),Ne.attachMedia(q.current)}}},[C]);const[Ze,lt]=(0,s.useState)(1),kt=()=>{q.current.paused||q.current.ended?q.current.play():q.current.pause(),de()};function Je(){q.current.muted=!q.current.muted,q.current.muted?(zn.current.setAttribute("data-volume",volume.value),zn.current.value=0):zn.current.value=zn.current.dataset.volume}return s.createElement("div",{style:{position:"relative"},ref:Xt},s.createElement("div",{ref:gn,className:`${$.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${$.animate__loop}`},bt&&pn?pn.login:" "),s.createElement("div",{className:$.container},s.createElement("div",{className:$["video-container"],id:"video-container"},s.createElement("div",{className:$["playback-animation"],id:"playback-animation"},s.createElement("svg",{className:$["playback-icons"]},s.createElement("use",{className:"hidden",href:"#play-icon"}),s.createElement("use",{href:"#pause"}))),s.createElement("video",{className:$.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:q,autoPlay:$e}),s.createElement("div",{className:`${$["video-controls"]} `,id:"video-controls"},s.createElement("div",{className:$["bottom-controls"]},s.createElement("div",{className:$["left-controls"]},s.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:kt},s.createElement("svg",{className:$["playback-icons"]},s.createElement("use",{ref:Vt,href:"#play-icon"}),s.createElement("use",{ref:De,style:{display:"none"},href:"#pause"}))),s.createElement("div",{className:$.time},s.createElement("time",{id:"time-elapsed",ref:it},"00:00"),s.createElement("span",null," / "),s.createElement("time",{id:"duration",ref:Xe},"00:00"))),s.createElement("div",{className:$["right-controls"]},L&&s.createElement(H.Z,{placement:"top",overlayClassName:$.rateOverlay,getPopupContainer:Ne=>Ne.parentNode,menu:{items:[{key:"1",label:s.createElement("span",{onClick:()=>{lt(1),q.current.playbackRate=1}},"1.0x")},{key:"2",label:s.createElement("span",{onClick:()=>{lt(1.5),q.current.playbackRate=1.5}},"1.5x")},{key:"3",label:s.createElement("span",{onClick:()=>{lt(2),q.current.playbackRate=2}},"2.0x")}]}},s.createElement("div",{className:`${$.controlText} mr5`},"\u500D\u901F")),s.createElement(G.CopyToClipboard,{text:C,onCopy:()=>k.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:$["volume-controls"]},s.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:$["volume-button"],id:"volume-button",onClick:Je},s.createElement("i",{ref:Qt,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),s.createElement("i",{ref:en,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),s.createElement("i",{ref:Un,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),s.createElement("input",{className:$.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:zn,style:{display:"none"},onClick:ue})),s.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:$["fullscreen-button"],onClick:()=>{(0,c.vp)()?(0,c.BU)():(0,c.Dj)(Xt.current)}},s.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),s.createElement("div",{className:$["video-progress"]},s.createElement("progress",{ref:mt,value:"0",min:"0"}),s.createElement("input",{className:$.seek,ref:Ct,value:"0",min:"0",type:"range",step:"1"}),s.createElement("div",{className:$["seek-tooltip"],ref:On,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($t,Re,d){"use strict";d.r(Re),d.d(Re,{default:function(){return L}});var s=d(67294),k=d(35973),H=d(46303),V=d(14446),x={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"},S=d(52262);const ne={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(C=>(C.parent=Number(C.parent),C.key=Number(C.key),C)),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(C=>(C.parent=Number(C.parent),C.key=Number(C.key),C)),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(C=>(C.parent=Number(C.parent),C.key=Number(C.key),C))};var G=d(15070),c=d(6104),$=Object.defineProperty,me=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,re=(C,O,T)=>O in C?$(C,O,{enumerable:!0,configurable:!0,writable:!0,value:T}):C[O]=T,Oe=(C,O)=>{for(var T in O||(O={}))Y.call(O,T)&&re(C,T,O[T]);if(me)for(var T of me(O))U.call(O,T)&&re(C,T,O[T]);return C};const oe=({classroomList:C,loading:O,dispatch:T})=>{const[z]=(0,k.useSearchParams)(),[w]=(0,s.useState)(Oe({},(0,k.useParams)())),[P,ie]=(0,s.useState)("init"),[K,ge]=(0,s.useState)(""),$e=(0,s.useRef)();(0,s.useEffect)(()=>{const St=z.get("tabId");St&&(ie(St),w.status=St)},[w.categoryId,z.get("tabId")]);const ot=St=>{ie(St.key)},bt=[{name:"\u521D\u59CB\u5B66\u4E60",id:"init"},{name:"\u590D\u4E60\u5B66\u4E60",id:"review"},{name:"\u8003\u524D\u5B66\u4E60",id:"before"}],Bt=St=>{St.data.type==="playVideo"&&ge(St.data.url)};(0,s.useEffect)(()=>{P&&Dt(),window.addEventListener("message",Bt)},[P]);const Dt=()=>{var St;(St=$e.current.contentWindow)==null||St.postMessage({data:ne[P]},"*")};return s.createElement("section",null,s.createElement(G.Z,{isLoading:O["classroomList/getClassroomAttendancesList"],tabDataSource:bt,isAdmin:(0,S.GJ)(),onTabMenuClick:ot,defaultSelectedKeys:[P]}),s.createElement("section",null,s.createElement(H.Z,{loading:O["classroomList/getClassroomAttendancesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},s.createElement("iframe",{src:"/knowledgegraph/parseTree.html",onLoad:Dt,className:x.iframe,ref:$e}))),s.createElement(V.default,{open:!!K,onCancel:()=>ge(""),width:800,footer:null,bodyStyle:{padding:0},centered:!0,destroyOnClose:!0},s.createElement(c.Z,{src:K,autoPlay:!0,toLog:!1})))};var L=(0,k.connect)(({classroomList:C,loading:O,globalSetting:T})=>({classroomList:C,globalSetting:T,loading:O.effects}))(oe)},15070:function($t,Re,d){"use strict";d.d(Re,{Z:function(){return Y}});var s=d(67294),k=d(71230),H=d(15746),V=d(68508),x=d(85418),S=d(2453),ne=d(83062),G={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},c=d(35973),$=d(52262),Y=({isLoading:U,addText:re,tabDataSource:Oe,isAdmin:oe,dispatch:L,classroomList:C,type:O,isExercise:T,defaultSelectedKeys:z,onTabMenuClick:w,getDropdownMenu:P,showControlButton:ie,buttonText:K,buttonIcon:ge="icon-tianjiadaohang",extraNode:$e,user:ot,onButtonClick:bt,isModelUser:Bt})=>{var Dt,St,Ht,q,gn;const Xt=(0,c.useParams)();return s.createElement("div",{className:G.tabMenuContainer},s.createElement(k.Z,null,s.createElement(H.Z,{flex:"1"},s.createElement(V.default,{onSelect:De=>U?{}:w(De),mode:"horizontal",selectedKeys:z},Oe.map(De=>s.createElement(V.default.Item,{key:typeof De.index=="number"?De.index:De.id},s.createElement("span",{className:"c-grey-666"},De.name),De.total!==void 0&&oe&&s.createElement("span",{className:"c-grey-999 ml20"},De.total||0))))),oe&&T&&s.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{L({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),oe&&s.createElement(H.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},T&&s.createElement(x.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>s.createElement(V.default,null,s.createElement(V.default.Item,{key:1,onClick:()=>{var De;if((0,$.Rm)()&&!((De=C.AssistantObject.exercise)!=null&&De.can_download)){S.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}L({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:O,exportType:"exercise",category_id:Xt.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),s.createElement(V.default.Item,{key:3,onClick:()=>{var De;if((0,$.Rm)()&&!((De=C.AssistantObject.exercise)!=null&&De.can_download)){S.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}c.history.push(`/classrooms/${Xt==null?void 0:Xt.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:G.control},s.createElement("div",{className:G.extra},$e),ie&&(K=="\u6DFB\u52A0\u76F4\u64AD"?s.createElement(x.Z,{menu:{items:(St=(Dt=[{label:s.createElement("div",{onClick:()=>{bt("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Bt&&{label:s.createElement("div",{onClick:()=>{bt("\u5934\u6B4C")}},"\u5934\u6B4C\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:Dt.filter(De=>De==null?void 0:De.show))==null?void 0:St.map(De=>({label:De==null?void 0:De.label,key:De==null?void 0:De.key}))}},s.createElement("span",{className:G.selectBtn},s.createElement("span",null,s.createElement("i",{className:`iconfont ${ge}`})),s.createElement("span",null,K))):s.createElement("span",{onClick:bt,style:{cursor:"pointer"},className:G.selectBtn},s.createElement("span",null,s.createElement("i",{className:`iconfont ${ge}`})),s.createElement("span",null,K))),!!P&&s.createElement(x.Z,{disabled:((Ht=ot==null?void 0:ot.userInfo)==null?void 0:Ht.user_status)===2,className:"ml10",dropdownRender:P},s.createElement("span",{className:((q=ot==null?void 0:ot.userInfo)==null?void 0:q.user_status)===2?G.selectBtn1:G.selectBtn},s.createElement("span",null,s.createElement("i",{className:"iconfont icon-tianjiadaohang"})),s.createElement(ne.Z,{title:((gn=ot==null?void 0:ot.userInfo)==null?void 0:gn.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,re||"\u521B\u5EFA\u8BD5\u5377"))))))))}},51959:function($t,Re,d){"use strict";d.d(Re,{BU:function(){return k},Dj:function(){return s},gH:function(){return H},vp:function(){return V}});function s(x){try{x.mozRequestFullScreen?x.mozRequestFullScreen():x.webkitRequestFullScreen&&x.webkitRequestFullScreen()}catch(S){console.log(S,":e")}}function k(){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 H=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function V(){var x=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,S=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",x),window.isFullScreen?window.isFullScreen:x!=null}},24577:function($t,Re,d){"use strict";d.d(Re,{Z:function(){return Ri}});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 l in i)i.hasOwnProperty(l)&&(t[l]=i[l])}return t},typeof self.Promise!="function"&&d(82702).polyfill()}}s.install();var k=s,H=d(17187),V=d.n(H);class x{static e(e,t){(!e||x.FORCE_GLOBAL_TAG)&&(e=x.GLOBAL_TAG);let n=`[${e}] > ${t}`;x.ENABLE_CALLBACK&&x.emitter.emit("log","error",n),x.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}static i(e,t){(!e||x.FORCE_GLOBAL_TAG)&&(e=x.GLOBAL_TAG);let n=`[${e}] > ${t}`;x.ENABLE_CALLBACK&&x.emitter.emit("log","info",n),x.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}static w(e,t){(!e||x.FORCE_GLOBAL_TAG)&&(e=x.GLOBAL_TAG);let n=`[${e}] > ${t}`;x.ENABLE_CALLBACK&&x.emitter.emit("log","warn",n),x.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}static d(e,t){(!e||x.FORCE_GLOBAL_TAG)&&(e=x.GLOBAL_TAG);let n=`[${e}] > ${t}`;x.ENABLE_CALLBACK&&x.emitter.emit("log","debug",n),x.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}static v(e,t){(!e||x.FORCE_GLOBAL_TAG)&&(e=x.GLOBAL_TAG);let n=`[${e}] > ${t}`;x.ENABLE_CALLBACK&&x.emitter.emit("log","verbose",n),x.ENABLE_VERBOSE&&console.log(n)}}x.GLOBAL_TAG="flv.js",x.FORCE_GLOBAL_TAG=!1,x.ENABLE_ERROR=!0,x.ENABLE_INFO=!0,x.ENABLE_WARN=!0,x.ENABLE_DEBUG=!0,x.ENABLE_VERBOSE=!0,x.ENABLE_CALLBACK=!1,x.emitter=new(V());var S=x;class ne{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 G=ne;class c{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class $ extends c{constructor(e){super(e)}get name(){return"IllegalStateException"}}class me extends c{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class Y extends c{constructor(e){super(e)}get name(){return"NotImplementedException"}}const U={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},re={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class Oe{constructor(e){this._type=e||"undefined",this._status=U.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=U.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===U.kConnecting||this._status===U.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(e){this._onContentLengthKnown=e}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(e){this._onURLRedirect=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}open(e,t){throw new Y("Unimplemented abstract function!")}abort(){throw new Y("Unimplemented abstract function!")}}let oe={};function L(){let se=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(se)||/(opr)[\/]([\w.]+)/.exec(se)||/(chrome)[ \/]([\w.]+)/.exec(se)||/(iemobile)[\/]([\w.]+)/.exec(se)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(se)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(se)||/(webkit)[ \/]([\w.]+)/.exec(se)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(se)||/(msie) ([\w.]+)/.exec(se)||se.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(se)||se.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(se)||[],t=/(ipad)/.exec(se)||/(ipod)/.exec(se)||/(windows phone)/.exec(se)||/(iphone)/.exec(se)||/(kindle)/.exec(se)||/(android)/.exec(se)||/(windows)/.exec(se)||/(mac)/.exec(se)||/(linux)/.exec(se)||/(cros)/.exec(se)||[],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 l=n.majorVersion.split(".");i.version={major:parseInt(n.majorVersion,10),string:n.version},l.length>1&&(i.version.minor=parseInt(l[1],10)),l.length>2&&(i.version.build=parseInt(l[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 l="msie";n.browser=l,i[l]=!0}if(i.edge){delete i.edge;let l="msedge";n.browser=l,i[l]=!0}if(i.opr){let l="opera";n.browser=l,i[l]=!0}if(i.safari&&i.android){let l="android";n.browser=l,i[l]=!0}i.name=n.browser,i.platform=n.platform;for(let l in oe)oe.hasOwnProperty(l)&&delete oe[l];Object.assign(oe,i)}L();var C=oe;class O extends Oe{static isSupported(){try{let e=C.msedge&&C.version.minor>=15048,t=C.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),l=new self.Headers;if(typeof i.headers=="object"){let B=i.headers;for(let we in B)B.hasOwnProperty(we)&&l.append(we,B[we])}let E={method:"GET",headers:l,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let B in this._config.headers)l.append(B,this._config.headers[B]);e.cors===!1&&(E.mode="same-origin"),e.withCredentials&&(E.credentials="include"),e.referrerPolicy&&(E.referrerPolicy=e.referrerPolicy),this._status=U.kConnecting,self.fetch(i.url,E).then(B=>{if(this._requestAbort){this._requestAbort=!1,this._status=U.kIdle;return}if(B.ok&&B.status>=200&&B.status<=299){if(B.url!==i.url&&this._onURLRedirect){let ve=this._seekHandler.removeURLParameters(B.url);this._onURLRedirect(ve)}let we=B.headers.get("Content-Length");return we!=null&&(this._contentLength=parseInt(we),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,B.body.getReader())}else if(this._status=U.kError,this._onError)this._onError(re.HTTP_STATUS_CODE_INVALID,{code:B.status,msg:B.statusText});else throw new c("FetchStreamLoader: Http code invalid, "+B.status+" "+B.statusText)}).catch(B=>{if(this._status=U.kError,this._onError)this._onError(re.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=U.kError;let n=re.EARLY_EOF,i={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(n,i);else throw new c(i.msg)}else this._status=U.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=U.kComplete,e.cancel();this._status=U.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&&C.msedge)return;this._status=U.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=re.EARLY_EOF,i={code:t.code,msg:"Fetch stream meet Early-EOF"}):(n=re.EXCEPTION,i={code:t.code,msg:t.message}),this._onError)this._onError(n,i);else throw new c(i.msg)})}}var T=O;class z extends Oe{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 S.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 l=this._xhr=new XMLHttpRequest;if(l.open("GET",i.url,!0),l.responseType="moz-chunked-arraybuffer",l.onreadystatechange=this._onReadyStateChange.bind(this),l.onprogress=this._onProgress.bind(this),l.onloadend=this._onLoadEnd.bind(this),l.onerror=this._onXhrError.bind(this),e.withCredentials&&(l.withCredentials=!0),typeof i.headers=="object"){let E=i.headers;for(let B in E)E.hasOwnProperty(B)&&l.setRequestHeader(B,E[B])}if(typeof this._config.headers=="object"){let E=this._config.headers;for(let B in E)E.hasOwnProperty(B)&&l.setRequestHeader(B,E[B])}this._status=U.kConnecting,l.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=U.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=U.kError,this._onError)this._onError(re.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new c("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);else this._status=U.kBuffering}}_onProgress(e){if(this._status===U.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===U.kError)return;this._status=U.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(e){this._status=U.kError;let t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=re.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=re.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new c(n.msg)}}var w=z;class P 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 l=this._seekHandler.getConfig(i,t);this._currentRequestURL=l.url;let E=this._reader=new self.MSStreamReader;E.onprogress=this._msrOnProgress.bind(this),E.onload=this._msrOnLoad.bind(this),E.onerror=this._msrOnError.bind(this);let B=this._xhr=new XMLHttpRequest;if(B.open("GET",l.url,!0),B.responseType="ms-stream",B.onreadystatechange=this._xhrOnReadyStateChange.bind(this),B.onerror=this._xhrOnError.bind(this),e.withCredentials&&(B.withCredentials=!0),typeof l.headers=="object"){let we=l.headers;for(let ve in we)we.hasOwnProperty(ve)&&B.setRequestHeader(ve,we[ve])}if(typeof this._config.headers=="object"){let we=this._config.headers;for(let ve in we)we.hasOwnProperty(ve)&&B.setRequestHeader(ve,we[ve])}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 l=this._totalRange.from+this._receivedLength;this._receivedLength+=i.byteLength,this._onDataArrival&&this._onDataArrival(i,l,this._receivedLength),n.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${l+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 ie=null;class K extends Oe{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer",e.responseType==="arraybuffer"}catch(e){return S.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 G,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=U.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 l=this._xhr=new XMLHttpRequest;if(l.open("GET",i.url,!0),l.responseType="arraybuffer",l.onreadystatechange=this._onReadyStateChange.bind(this),l.onprogress=this._onProgress.bind(this),l.onload=this._onLoad.bind(this),l.onerror=this._onXhrError.bind(this),e.withCredentials&&(l.withCredentials=!0),typeof i.headers=="object"){let E=i.headers;for(let B in E)E.hasOwnProperty(B)&&l.setRequestHeader(B,E[B])}if(typeof this._config.headers=="object"){let E=this._config.headers;for(let B in E)E.hasOwnProperty(B)&&l.setRequestHeader(B,E[B])}l.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=U.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=U.kBuffering}else if(this._status=U.kError,this._onError)this._onError(re.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new c("RangeLoader: Http code invalid, "+t.status+" "+t.statusText)}}_onProgress(e){if(this._status===U.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,l=0,E=n;if(e<t[0])return t[0];for(;l<=E;){if(i=l+Math.floor((E-l)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?l=i+1:E=i-1}}_onLoad(e){if(this._status===U.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 E=this._normalizeSpeed(t);this._currentSpeedNormalized!==E&&(this._currentSpeedNormalized=E,this._currentChunkSizeKB=E)}let n=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength;let l=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():l=!0,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),l&&(this._status=U.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(e){this._status=U.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=re.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=re.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new c(n.msg)}}var ge=K;class $e extends Oe{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=U.kConnecting}catch(t){this._status=U.kError;let n={code:t.code,msg:t.message};if(this._onError)this._onError(re.EXCEPTION,n);else throw new c(n.msg)}}abort(){let e=this._ws;e&&(e.readyState===0||e.readyState===1)&&(this._requestAbort=!0,e.close()),this._ws=null,this._status=U.kComplete}_onWebSocketOpen(e){this._status=U.kBuffering}_onWebSocketClose(e){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=U.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=U.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(this._onError)this._onError(re.EXCEPTION,t);else throw new c(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=U.kError;let t={code:e.code,msg:e.message};if(this._onError)this._onError(re.EXCEPTION,t);else throw new c(t.msg)}}var ot=$e;class bt{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 Bt=bt;class Dt{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 l="";if(n!=null&&n.length>0){let E=n.split("&");for(let B=0;B<E.length;B++){let we=E[B].split("="),ve=B>0;we[0]!==this._startName&&we[0]!==this._endName&&(ve&&(l+="&"),l+=E[B])}}return l.length===0?t:t+"?"+l}}var St=Dt;class Ht{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 G,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===ge?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if(e.seekType==="range")this._seekHandler=new Bt(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new St(t,n)}else if(e.seekType==="custom"){if(typeof e.customSeekHandler!="function")throw new me("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new me(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=ot;else if(T.isSupported())this._loaderClass=T;else if(w.isSupported())this._loaderClass=w;else if(ge.isSupported())this._loaderClass=ge;else throw new c("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 me("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,l=0,E=n;if(e<t[0])return t[0];for(;l<=E;){if(i=l+Math.floor((E-l)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?l=i+1:E=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 $("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 l=this._normalizeSpeed(i);this._speedNormalized!==l&&(this._speedNormalized=l,this._adjustStashSize(l))}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 l=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let E=this._stashBuffer.slice(0,this._stashUsed),B=this._dispatchChunks(E,this._stashByteStart);if(B<E.byteLength){if(B>0){let we=new Uint8Array(E,B);l.set(we,0),this._stashUsed=we.byteLength,this._stashByteStart+=B}}else this._stashUsed=0,this._stashByteStart+=B;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),l=new Uint8Array(this._stashBuffer,0,this._bufferSize)),l.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let E=this._dispatchChunks(e,t);if(E<e.byteLength){let B=e.byteLength-E;B>this._bufferSize&&(this._expandBuffer(B),l=new Uint8Array(this._stashBuffer,0,this._bufferSize)),l.set(new Uint8Array(e,E),0),this._stashUsed+=B,this._stashByteStart=t+E}}}else if(this._stashUsed===0){let l=this._dispatchChunks(e,t);if(l<e.byteLength){let E=e.byteLength-l;E>this._bufferSize&&this._expandBuffer(E),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,l),0),this._stashUsed+=E,this._stashByteStart=t+l}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let l=new Uint8Array(this._stashBuffer,0,this._bufferSize);l.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let E=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(E<this._stashUsed&&E>0){let B=new Uint8Array(this._stashBuffer,E);l.set(B,0)}this._stashUsed-=E,this._stashByteStart+=E}}_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)S.w(this.TAG,`${i} bytes unconsumed data remain when flush buffer, dropped`);else{if(n>0){let l=new Uint8Array(this._stashBuffer,0,this._bufferSize),E=new Uint8Array(t,n);l.set(E,0),this._stashUsed=E.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(S.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=re.UNRECOVERABLE_EARLY_EOF),e){case re.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let n=this._currentRange.to+1;n<this._totalLength&&(S.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1));return}e=re.UNRECOVERABLE_EARLY_EOF;break}case re.UNRECOVERABLE_EARLY_EOF:case re.CONNECTING_TIMEOUT:case re.HTTP_STATUS_CODE_INVALID:case re.EXCEPTION:break}if(this._onError)this._onError(e,t);else throw new c("IOException: "+t.msg)}}var q=Ht;const gn={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 Xt(){return Object.assign({},gn)}class De{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let e=new q({},Xt()),t=e.loaderType;return e.destroy(),t=="fetch-stream-loader"||t=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let e=new q({},Xt()),t=e.loaderType;return e.destroy(),t}static supportNativeMediaPlayback(e){De.videoElement==null&&(De.videoElement=window.document.createElement("video"));let t=De.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=De.supportMSEH264Playback(),e.networkStreamIO=De.supportNetworkStreamIO(),e.networkLoaderName=De.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=De.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=De.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=De.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var Vt=De,mt={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 Xe{static get forceGlobalTag(){return S.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){S.FORCE_GLOBAL_TAG=e,Xe._notifyChange()}static get globalTag(){return S.GLOBAL_TAG}static set globalTag(e){S.GLOBAL_TAG=e,Xe._notifyChange()}static get enableAll(){return S.ENABLE_VERBOSE&&S.ENABLE_DEBUG&&S.ENABLE_INFO&&S.ENABLE_WARN&&S.ENABLE_ERROR}static set enableAll(e){S.ENABLE_VERBOSE=e,S.ENABLE_DEBUG=e,S.ENABLE_INFO=e,S.ENABLE_WARN=e,S.ENABLE_ERROR=e,Xe._notifyChange()}static get enableDebug(){return S.ENABLE_DEBUG}static set enableDebug(e){S.ENABLE_DEBUG=e,Xe._notifyChange()}static get enableVerbose(){return S.ENABLE_VERBOSE}static set enableVerbose(e){S.ENABLE_VERBOSE=e,Xe._notifyChange()}static get enableInfo(){return S.ENABLE_INFO}static set enableInfo(e){S.ENABLE_INFO=e,Xe._notifyChange()}static get enableWarn(){return S.ENABLE_WARN}static set enableWarn(e){S.ENABLE_WARN=e,Xe._notifyChange()}static get enableError(){return S.ENABLE_ERROR}static set enableError(e){S.ENABLE_ERROR=e,Xe._notifyChange()}static getConfig(){return{globalTag:S.GLOBAL_TAG,forceGlobalTag:S.FORCE_GLOBAL_TAG,enableVerbose:S.ENABLE_VERBOSE,enableDebug:S.ENABLE_DEBUG,enableInfo:S.ENABLE_INFO,enableWarn:S.ENABLE_WARN,enableError:S.ENABLE_ERROR,enableCallback:S.ENABLE_CALLBACK}}static applyConfig(e){S.GLOBAL_TAG=e.globalTag,S.FORCE_GLOBAL_TAG=e.forceGlobalTag,S.ENABLE_VERBOSE=e.enableVerbose,S.ENABLE_DEBUG=e.enableDebug,S.ENABLE_INFO=e.enableInfo,S.ENABLE_WARN=e.enableWarn,S.ENABLE_ERROR=e.enableError,S.ENABLE_CALLBACK=e.enableCallback}static _notifyChange(){let e=Xe.emitter;if(e.listenerCount("change")>0){let t=Xe.getConfig();e.emit("change",t)}}static registerListener(e){Xe.emitter.addListener("change",e)}static removeListener(e){Xe.emitter.removeListener("change",e)}static addLogListener(e){S.emitter.addListener("log",e),S.emitter.listenerCount("log")>0&&(S.ENABLE_CALLBACK=!0,Xe._notifyChange())}static removeLogListener(e){S.emitter.removeListener("log",e),S.emitter.listenerCount("log")===0&&(S.ENABLE_CALLBACK=!1,Xe._notifyChange())}}Xe.emitter=new(V());var it=Xe;class On{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,l=0,E=0,B=i;for(t<e[0]&&(n=0,E=B+1);E<=B;)if(l=E+Math.floor((B-E)/2),l===i||t>=e[l]&&t<e[l+1]){n=l;break}else e[l]<t?E=l+1:B=l-1;return n}}var Qt=On;function Un(se,e,t){let n=se;if(e+t<n.length){for(;t--;)if((n[++e]&192)!==128)return!1;return!0}else return!1}function en(se){let e=[],t=se,n=0,i=se.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(Un(t,n,1)){let l=(t[n]&31)<<6|t[n+1]&63;if(l>=128){e.push(String.fromCharCode(l&65535)),n+=2;continue}}}else if(t[n]<240){if(Un(t,n,2)){let l=(t[n]&15)<<12|(t[n+1]&63)<<6|t[n+2]&63;if(l>=2048&&(l&63488)!==55296){e.push(String.fromCharCode(l&65535)),n+=3;continue}}}else if(t[n]<248&&Un(t,n,3)){let l=(t[n]&7)<<18|(t[n+1]&63)<<12|(t[n+2]&63)<<6|t[n+3]&63;if(l>65536&&l<1114112){l-=65536,e.push(String.fromCharCode(l>>>10|55296)),e.push(String.fromCharCode(l&1023|56320)),n+=4;continue}}}e.push("\uFFFD"),++n}return e.join("")}var zn=en;let on=function(){let se=new ArrayBuffer(2);return new DataView(se).setInt16(0,256,!0),new Int16Array(se)[0]===256}();class tn{static parseScriptData(e,t,n){let i={};try{let l=tn.parseValue(e,t,n),E=tn.parseValue(e,t+l.size,n-l.size);i[l.data]=E.data}catch(l){S.e("AMF",l.toString())}return i}static parseObject(e,t,n){if(n<3)throw new $("Data not enough when parse ScriptDataObject");let i=tn.parseString(e,t,n),l=tn.parseValue(e,t+i.size,n-i.size),E=l.objectEnd;return{data:{name:i.data,value:l.data},size:i.size+l.size,objectEnd:E}}static parseVariable(e,t,n){return tn.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new $("Data not enough when parse String");let l=new DataView(e,t,n).getUint16(0,!on),E;return l>0?E=zn(new Uint8Array(e,t+2,l)):E="",{data:E,size:2+l}}static parseLongString(e,t,n){if(n<4)throw new $("Data not enough when parse LongString");let l=new DataView(e,t,n).getUint32(0,!on),E;return l>0?E=zn(new Uint8Array(e,t+4,l)):E="",{data:E,size:4+l}}static parseDate(e,t,n){if(n<10)throw new $("Data size invalid when parse Date");let i=new DataView(e,t,n),l=i.getFloat64(0,!on),E=i.getInt16(8,!on);return l+=E*60*1e3,{data:new Date(l),size:10}}static parseValue(e,t,n){if(n<1)throw new $("Data not enough when parse Value");let i=new DataView(e,t,n),l=1,E=i.getUint8(0),B,we=!1;try{switch(E){case 0:B=i.getFloat64(1,!on),l+=8;break;case 1:{B=!!i.getUint8(1),l+=1;break}case 2:{let ve=tn.parseString(e,t+1,n-1);B=ve.data,l+=ve.size;break}case 3:{B={};let ve=0;for((i.getUint32(n-4,!on)&16777215)===9&&(ve=3);l<n-4;){let je=tn.parseObject(e,t+l,n-l-ve);if(je.objectEnd)break;B[je.data.name]=je.data.value,l+=je.size}l<=n-3&&(i.getUint32(l-1,!on)&16777215)===9&&(l+=3);break}case 8:{B={},l+=4;let ve=0;for((i.getUint32(n-4,!on)&16777215)===9&&(ve=3);l<n-8;){let je=tn.parseVariable(e,t+l,n-l-ve);if(je.objectEnd)break;B[je.data.name]=je.data.value,l+=je.size}l<=n-3&&(i.getUint32(l-1,!on)&16777215)===9&&(l+=3);break}case 9:B=void 0,l=1,we=!0;break;case 10:{B=[];let ve=i.getUint32(1,!on);l+=4;for(let je=0;je<ve;je++){let Rt=tn.parseValue(e,t+l,n-l);B.push(Rt.data),l+=Rt.size}break}case 11:{let ve=tn.parseDate(e,t+1,n-1);B=ve.data,l+=ve.size;break}case 12:{let ve=tn.parseString(e,t+1,n-1);B=ve.data,l+=ve.size;break}default:l=n,S.w("AMF","Unsupported AMF value type "+E)}}catch(ve){S.e("AMF",ve.toString())}return{data:B,size:l,objectEnd:we}}}var er=tn;class pn{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 $("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 me("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let E=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,E}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),l=this._current_word>>>32-i;return this._current_word<<=i,this._current_word_bits_left-=i,t=t<<i|l,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 ut=pn;class W{static _ebsp2rbsp(e){let t=e,n=t.byteLength,i=new Uint8Array(n),l=0;for(let E=0;E<n;E++)E>=2&&t[E]===3&&t[E-1]===0&&t[E-2]===0||(i[l]=t[E],l++);return new Uint8Array(i.buffer,0,l)}static parseSPS(e){let t=W._ebsp2rbsp(e),n=new ut(t);n.readByte();let i=n.readByte();n.readByte();let l=n.readByte();n.readUEG();let E=W.getProfileString(i),B=W.getLevelString(l),we=1,ve=420,je=[0,420,422,444],Rt=8;if((i===100||i===110||i===122||i===244||i===44||i===83||i===86||i===118||i===128||i===138||i===144)&&(we=n.readUEG(),we===3&&n.readBits(1),we<=3&&(ve=je[we]),Rt=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let $r=we!==3?8:12;for(let Ar=0;Ar<$r;Ar++)n.readBool()&&(Ar<6?W._skipScalingList(n,16):W._skipScalingList(n,64))}n.readUEG();let pt=n.readUEG();if(pt===0)n.readUEG();else if(pt===1){n.readBits(1),n.readSEG(),n.readSEG();let $r=n.readUEG();for(let Ar=0;Ar<$r;Ar++)n.readSEG()}let Se=n.readUEG();n.readBits(1);let vt=n.readUEG(),Fe=n.readUEG(),fe=n.readBits(1);fe===0&&n.readBits(1),n.readBits(1);let Ce=0,Ve=0,et=0,Yt=0;n.readBool()&&(Ce=n.readUEG(),Ve=n.readUEG(),et=n.readUEG(),Yt=n.readUEG());let lr=1,We=1,Rn=0,Kn=!0,xr=0,cr=0;if(n.readBool()){if(n.readBool()){let $r=n.readByte(),Ar=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],dr=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];$r>0&&$r<16?(lr=Ar[$r-1],We=dr[$r-1]):$r===255&&(lr=n.readByte()<<8|n.readByte(),We=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 $r=n.readBits(32),Ar=n.readBits(32);Kn=n.readBool(),xr=Ar,cr=$r*2,Rn=xr/cr}}let Ii=1;(lr!==1||We!==1)&&(Ii=lr/We);let Xr=0,hi=0;if(we===0)Xr=1,hi=2-fe;else{let $r=we===3?1:2,Ar=we===1?2:1;Xr=$r,hi=Ar*(2-fe)}let yi=(vt+1)*16,Li=(2-fe)*((Fe+1)*16);yi-=(Ce+Ve)*Xr,Li-=(et+Yt)*hi;let Bi=Math.ceil(yi*Ii);return n.destroy(),n=null,{profile_string:E,level_string:B,bit_depth:Rt,ref_frames:Se,chroma_format:ve,chroma_format_string:W.getChromaFormatString(ve),frame_rate:{fixed:Kn,fps:Rn,fps_den:cr,fps_num:xr},sar_ratio:{width:lr,height:We},codec_size:{width:yi,height:Li},present_size:{width:Bi,height:Li}}}static _skipScalingList(e,t){let n=8,i=8,l=0;for(let E=0;E<t;E++)i!==0&&(l=e.readSEG(),i=(n+l+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 _=W,I={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function N(se){return se>>>8&255|(se&255)<<8}function Q(se){return(se&4278190080)>>>24|(se&16711680)>>>8|(se&65280)<<8|(se&255)<<24}function b(se,e){return se[e]<<24|se[e+1]<<16|se[e+2]<<8|se[e+3]}class M{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 Qt,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,l=(t[4]&1)!==0,E=b(t,5);return E<9?n:{match:!0,consumed:E,dataOffset:E,hasAudioTrack:i,hasVideoTrack:l}}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 Qt}_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 $("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let n=0,i=this._littleEndian;if(t===0)if(e.byteLength>13)n=M.probe(e).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,t+n!==this._dataOffset&&S.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(e,n).getUint32(0,!i)!==0&&S.w(this.TAG,"PrevTagSize0 !== 0 !!!"),n+=4);n<e.byteLength;){this._dispatch=!0;let l=new DataView(e,n);if(n+11+4>e.byteLength)break;let E=l.getUint8(0),B=l.getUint32(0,!i)&16777215;if(n+11+B+4>e.byteLength)break;if(E!==8&&E!==9&&E!==18){S.w(this.TAG,`Unsupported tag type ${E}, skipped`),n+=11+B+4;continue}let we=l.getUint8(4),ve=l.getUint8(5),je=l.getUint8(6),Rt=l.getUint8(7),pt=je|ve<<8|we<<16|Rt<<24;(l.getUint32(7,!i)&16777215)!==0&&S.w(this.TAG,"Meet tag which has StreamID != 0!");let vt=n+11;switch(E){case 8:this._parseAudioData(e,vt,B,pt);break;case 9:this._parseVideoData(e,vt,B,pt,t+n);break;case 18:this._parseScriptData(e,vt,B);break}let Fe=l.getUint32(11+B,!i);Fe!==11+B&&S.w(this.TAG,`Invalid PrevTagSize ${Fe}`),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=er.parseScriptData(e,t,n);if(i.hasOwnProperty("onMetaData")){if(i.onMetaData==null||typeof i.onMetaData!="object"){S.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&S.w(this.TAG,"Found another onMetaData tag!"),this._metadata=i;let l=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},l)),typeof l.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=l.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof l.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=l.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof l.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=l.audiodatarate),typeof l.videodatarate=="number"&&(this._mediaInfo.videoDataRate=l.videodatarate),typeof l.width=="number"&&(this._mediaInfo.width=l.width),typeof l.height=="number"&&(this._mediaInfo.height=l.height),typeof l.duration=="number"){if(!this._durationOverrided){let E=Math.floor(l.duration*this._timescale);this._duration=E,this._mediaInfo.duration=E}}else this._mediaInfo.duration=0;if(typeof l.framerate=="number"){let E=Math.floor(l.framerate*1e3);if(E>0){let B=E/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=B,this._referenceFrameRate.fps_num=E,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=B}}if(typeof l.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let E=l.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(E),l.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=l,S.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 l=this._timestampBase+Math.floor(e.times[i]*1e3);t.push(l),n.push(e.filepositions[i])}return{times:t,filepositions:n}}_parseAudioData(e,t,n,i){if(n<=1){S.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let l=this._littleEndian,B=new DataView(e,t,n).getUint8(0),we=B>>>4;if(we!==2&&we!==10){this._onError(I.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+we);return}let ve=0,je=(B&12)>>>2;if(je>=0&&je<=4)ve=this._flvSoundRateTable[je];else{this._onError(I.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+je);return}let Rt=(B&2)>>>1,pt=B&1,Se=this._audioMetadata,vt=this._audioTrack;if(Se||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Se=this._audioMetadata={},Se.type="audio",Se.id=vt.id,Se.timescale=this._timescale,Se.duration=this._duration,Se.audioSampleRate=ve,Se.channelCount=pt===0?1:2),we===10){let Fe=this._parseAACAudioData(e,t+1,n-1);if(Fe==null)return;if(Fe.packetType===0){Se.config&&S.w(this.TAG,"Found another AudioSpecificConfig!");let fe=Fe.data;Se.audioSampleRate=fe.samplingRate,Se.channelCount=fe.channelCount,Se.codec=fe.codec,Se.originalCodec=fe.originalCodec,Se.config=fe.config,Se.refSampleDuration=1024/Se.audioSampleRate*Se.timescale,S.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",Se);let Ce=this._mediaInfo;Ce.audioCodec=Se.originalCodec,Ce.audioSampleRate=Se.audioSampleRate,Ce.audioChannelCount=Se.channelCount,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)}else if(Fe.packetType===1){let fe=this._timestampBase+i,Ce={unit:Fe.data,length:Fe.data.byteLength,dts:fe,pts:fe};vt.samples.push(Ce),vt.length+=Fe.data.length}else S.e(this.TAG,`Flv: Unsupported AAC data type ${Fe.packetType}`)}else if(we===2){if(!Se.codec){let Ve=this._parseMP3AudioData(e,t+1,n-1,!0);if(Ve==null)return;Se.audioSampleRate=Ve.samplingRate,Se.channelCount=Ve.channelCount,Se.codec=Ve.codec,Se.originalCodec=Ve.originalCodec,Se.refSampleDuration=1152/Se.audioSampleRate*Se.timescale,S.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Se);let et=this._mediaInfo;et.audioCodec=Se.codec,et.audioSampleRate=Se.audioSampleRate,et.audioChannelCount=Se.channelCount,et.audioDataRate=Ve.bitRate,et.hasVideo?et.videoCodec!=null&&(et.mimeType='video/x-flv; codecs="'+et.videoCodec+","+et.audioCodec+'"'):et.mimeType='video/x-flv; codecs="'+et.audioCodec+'"',et.isComplete()&&this._onMediaInfo(et)}let Fe=this._parseMP3AudioData(e,t+1,n-1,!1);if(Fe==null)return;let fe=this._timestampBase+i,Ce={unit:Fe,length:Fe.byteLength,dts:fe,pts:fe};vt.samples.push(Ce),vt.length+=Fe.length}}_parseAACAudioData(e,t,n){if(n<=1){S.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let i={},l=new Uint8Array(e,t,n);return i.packetType=l[0],l[0]===0?i.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):i.data=l.subarray(1),i}_parseAACAudioSpecificConfig(e,t,n){let i=new Uint8Array(e,t,n),l=null,E=0,B=0,we=null,ve=0,je=null;if(E=B=i[0]>>>3,ve=(i[0]&7)<<1|i[1]>>>7,ve<0||ve>=this._mpegSamplingRates.length){this._onError(I.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Rt=this._mpegSamplingRates[ve],pt=(i[1]&120)>>>3;if(pt<0||pt>=8){this._onError(I.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}E===5&&(je=(i[1]&7)<<1|i[2]>>>7,we=(i[2]&124)>>>2);let Se=self.navigator.userAgent.toLowerCase();return Se.indexOf("firefox")!==-1?ve>=6?(E=5,l=new Array(4),je=ve-3):(E=2,l=new Array(2),je=ve):Se.indexOf("android")!==-1?(E=2,l=new Array(2),je=ve):(E=5,je=ve,l=new Array(4),ve>=6?je=ve-3:pt===1&&(E=2,l=new Array(2),je=ve)),l[0]=E<<3,l[0]|=(ve&15)>>>1,l[1]=(ve&15)<<7,l[1]|=(pt&15)<<3,E===5&&(l[1]|=(je&15)>>>1,l[2]=(je&1)<<7,l[2]|=8,l[3]=0),{config:l,samplingRate:Rt,channelCount:pt,codec:"mp4a.40."+E,originalCodec:"mp4a.40."+B}}_parseMP3AudioData(e,t,n,i){if(n<4){S.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let l=this._littleEndian,E=new Uint8Array(e,t,n),B=null;if(i){if(E[0]!==255)return;let we=E[1]>>>3&3,ve=(E[1]&6)>>1,je=(E[2]&240)>>>4,Rt=(E[2]&12)>>>2,Se=(E[3]>>>6&3)!==3?2:1,vt=0,Fe=0,fe=34,Ce="mp3";switch(we){case 0:vt=this._mpegAudioV25SampleRateTable[Rt];break;case 2:vt=this._mpegAudioV20SampleRateTable[Rt];break;case 3:vt=this._mpegAudioV10SampleRateTable[Rt];break}switch(ve){case 1:fe=34,je<this._mpegAudioL3BitRateTable.length&&(Fe=this._mpegAudioL3BitRateTable[je]);break;case 2:fe=33,je<this._mpegAudioL2BitRateTable.length&&(Fe=this._mpegAudioL2BitRateTable[je]);break;case 3:fe=32,je<this._mpegAudioL1BitRateTable.length&&(Fe=this._mpegAudioL1BitRateTable[je]);break}B={bitRate:Fe,samplingRate:vt,channelCount:Se,codec:Ce,originalCodec:Ce}}else B=E;return B}_parseVideoData(e,t,n,i,l){if(n<=1){S.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let E=new Uint8Array(e,t,n)[0],B=(E&240)>>>4,we=E&15;if(we!==7){this._onError(I.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${we}`);return}this._parseAVCVideoPacket(e,t+1,n-1,i,l,B)}_parseAVCVideoPacket(e,t,n,i,l,E){if(n<4){S.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let B=this._littleEndian,we=new DataView(e,t,n),ve=we.getUint8(0),Rt=(we.getUint32(0,!B)&16777215)<<8>>8;if(ve===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(ve===1)this._parseAVCVideoData(e,t+4,n-4,i,l,E,Rt);else if(ve!==2){this._onError(I.FORMAT_ERROR,`Flv: Invalid video packet type ${ve}`);return}}_parseAVCDecoderConfigurationRecord(e,t,n){if(n<7){S.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let i=this._videoMetadata,l=this._videoTrack,E=this._littleEndian,B=new DataView(e,t,n);i?typeof i.avcc!="undefined"&&S.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=l.id,i.timescale=this._timescale,i.duration=this._duration);let we=B.getUint8(0),ve=B.getUint8(1),je=B.getUint8(2),Rt=B.getUint8(3);if(we!==1||ve===0){this._onError(I.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(B.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(I.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let pt=B.getUint8(5)&31;if(pt===0){this._onError(I.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else pt>1&&S.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${pt}`);let Se=6;for(let Fe=0;Fe<pt;Fe++){let fe=B.getUint16(Se,!E);if(Se+=2,fe===0)continue;let Ce=new Uint8Array(e,t+Se,fe);Se+=fe;let Ve=_.parseSPS(Ce);if(Fe!==0)continue;i.codecWidth=Ve.codec_size.width,i.codecHeight=Ve.codec_size.height,i.presentWidth=Ve.present_size.width,i.presentHeight=Ve.present_size.height,i.profile=Ve.profile_string,i.level=Ve.level_string,i.bitDepth=Ve.bit_depth,i.chromaFormat=Ve.chroma_format,i.sarRatio=Ve.sar_ratio,i.frameRate=Ve.frame_rate,(Ve.frame_rate.fixed===!1||Ve.frame_rate.fps_num===0||Ve.frame_rate.fps_den===0)&&(i.frameRate=this._referenceFrameRate);let et=i.frameRate.fps_den,Yt=i.frameRate.fps_num;i.refSampleDuration=i.timescale*(et/Yt);let si=Ce.subarray(1,4),lr="avc1.";for(let Rn=0;Rn<3;Rn++){let Kn=si[Rn].toString(16);Kn.length<2&&(Kn="0"+Kn),lr+=Kn}i.codec=lr;let We=this._mediaInfo;We.width=i.codecWidth,We.height=i.codecHeight,We.fps=i.frameRate.fps,We.profile=i.profile,We.level=i.level,We.refFrames=Ve.ref_frames,We.chromaFormat=Ve.chroma_format_string,We.sarNum=i.sarRatio.width,We.sarDen=i.sarRatio.height,We.videoCodec=lr,We.hasAudio?We.audioCodec!=null&&(We.mimeType='video/x-flv; codecs="'+We.videoCodec+","+We.audioCodec+'"'):We.mimeType='video/x-flv; codecs="'+We.videoCodec+'"',We.isComplete()&&this._onMediaInfo(We)}let vt=B.getUint8(Se);if(vt===0){this._onError(I.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else vt>1&&S.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${vt}`);Se++;for(let Fe=0;Fe<vt;Fe++){let fe=B.getUint16(Se,!E);Se+=2,fe!==0&&(Se+=fe)}i.avcc=new Uint8Array(n),i.avcc.set(new Uint8Array(e,t,n),0),S.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,l,E,B){let we=this._littleEndian,ve=new DataView(e,t,n),je=[],Rt=0,pt=0;const Se=this._naluLengthSize;let vt=this._timestampBase+i,Fe=E===1;for(;pt<n;){if(pt+4>=n){S.w(this.TAG,`Malformed Nalu near timestamp ${vt}, offset = ${pt}, dataSize = ${n}`);break}let fe=ve.getUint32(pt,!we);if(Se===3&&(fe>>>=8),fe>n-Se){S.w(this.TAG,`Malformed Nalus near timestamp ${vt}, NaluSize > DataSize!`);return}let Ce=ve.getUint8(pt+Se)&31;Ce===5&&(Fe=!0);let Ve=new Uint8Array(e,t+pt,Se+fe),et={type:Ce,data:Ve};je.push(et),Rt+=Ve.byteLength,pt+=Se+fe}if(je.length){let fe=this._videoTrack,Ce={units:je,length:Rt,isKeyframe:Fe,dts:vt,cts:B,pts:vt+B};Fe&&(Ce.fileposition=l),fe.samples.push(Ce),fe.length+=Rt}}}var F=M;class g{static init(){g.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 g.types)g.types.hasOwnProperty(t)&&(g.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=g.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),l=i.length;for(let B=0;B<l;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 E=8;for(let B=0;B<l;B++)n.set(i[B],E),E+=i[B].byteLength;return n}static generateInitSegment(e){let t=g.box(g.types.ftyp,g.constants.FTYP),n=g.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=g.mvhd(e.timescale,e.duration),n=g.trak(e),i=g.mvex(e);return g.box(g.types.moov,t,n,i)}static mvhd(e,t){return g.box(g.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 g.box(g.types.trak,g.tkhd(e),g.mdia(e))}static tkhd(e){let t=e.id,n=e.duration,i=e.presentWidth,l=e.presentHeight;return g.box(g.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,l>>>8&255,l&255,0,0]))}static mdia(e){return g.box(g.types.mdia,g.mdhd(e),g.hdlr(e),g.minf(e))}static mdhd(e){let t=e.timescale,n=e.duration;return g.box(g.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=g.constants.HDLR_AUDIO:t=g.constants.HDLR_VIDEO,g.box(g.types.hdlr,t)}static minf(e){let t=null;return e.type==="audio"?t=g.box(g.types.smhd,g.constants.SMHD):t=g.box(g.types.vmhd,g.constants.VMHD),g.box(g.types.minf,t,g.dinf(),g.stbl(e))}static dinf(){return g.box(g.types.dinf,g.box(g.types.dref,g.constants.DREF))}static stbl(e){return g.box(g.types.stbl,g.stsd(e),g.box(g.types.stts,g.constants.STTS),g.box(g.types.stsc,g.constants.STSC),g.box(g.types.stsz,g.constants.STSZ),g.box(g.types.stco,g.constants.STCO))}static stsd(e){return e.type==="audio"?e.codec==="mp3"?g.box(g.types.stsd,g.constants.STSD_PREFIX,g.mp3(e)):g.box(g.types.stsd,g.constants.STSD_PREFIX,g.mp4a(e)):g.box(g.types.stsd,g.constants.STSD_PREFIX,g.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 g.box(g.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 g.box(g.types.mp4a,i,g.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 g.box(g.types.esds,i)}static avc1(e){let t=e.avcc,n=e.codecWidth,i=e.codecHeight,l=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 g.box(g.types.avc1,l,g.box(g.types.avcC,t))}static mvex(e){return g.box(g.types.mvex,g.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 g.box(g.types.trex,n)}static moof(e,t){return g.box(g.types.moof,g.mfhd(e.sequenceNumber),g.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 g.box(g.types.mfhd,t)}static traf(e,t){let n=e.id,i=g.box(g.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255])),l=g.box(g.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255])),E=g.sdtp(e),B=g.trun(e,E.byteLength+16+16+8+16+8+8);return g.box(g.types.traf,i,l,B,E)}static sdtp(e){let t=e.samples||[],n=t.length,i=new Uint8Array(4+n);for(let l=0;l<n;l++){let E=t[l].flags;i[l+4]=E.isLeading<<6|E.dependsOn<<4|E.isDependedOn<<2|E.hasRedundancy}return g.box(g.types.sdtp,i)}static trun(e,t){let n=e.samples||[],i=n.length,l=12+16*i,E=new Uint8Array(l);t+=8+l,E.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 we=n[B].duration,ve=n[B].size,je=n[B].flags,Rt=n[B].cts;E.set([we>>>24&255,we>>>16&255,we>>>8&255,we&255,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255,je.isLeading<<2|je.dependsOn,je.isDependedOn<<6|je.hasRedundancy<<4|je.isNonSync,0,0,Rt>>>24&255,Rt>>>16&255,Rt>>>8&255,Rt&255],12+16*B)}return g.box(g.types.trun,E)}static mdat(e){return g.box(g.types.mdat,e)}}g.init();var de=g;class ue{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 Ze=ue;class lt{constructor(e,t,n,i,l){this.dts=e,this.pts=t,this.duration=n,this.originalDts=i,this.isSyncPoint=l,this.fileposition=null}}class kt{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 Je{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,l=0,E=0,B=i;for(e<t[0].dts&&(n=0,E=B+1);E<=B;)if(l=E+Math.floor((B-E)/2),l===i||e>=t[l].dts&&e<t[l+1].dts){n=l;break}else t[l].dts<e?E=l+1:B=l-1;return this._list[n]}}class Ne{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,l=0,E=n,B=0;if(e<t[0].originalBeginDts)return B=-1,B;for(;l<=E;)if(i=l+Math.floor((E-l)/2),i===n||e>t[i].lastSample.originalDts&&e<t[i+1].originalBeginDts){B=i;break}else t[i].originalBeginDts<e?l=i+1:E=i-1;return B}_searchNearestSegmentAfter(e){return this._searchNearestSegmentBefore(e)+1}append(e){let t=this._list,n=e,i=this._lastAppendLocation,l=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)?l=i+1:t.length>0&&(l=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=l,this._list.splice(l,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 Ft{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 Ne("audio"),this._videoSegmentInfoList=new Ne("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661)),this._fillSilentAfterSeek=C.msedge||C.msie,this._mp3UseMpegAudio=!C.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 $("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",l=t.codec;if(e==="audio")this._audioMeta=t,t.codec==="mp3"&&this._mp3UseMpegAudio?(i="mpeg",l="",n=new Uint8Array):n=de.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=de.generateInitSegment(t);else return;if(!this._onInitSegment)throw new $("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:l,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,l,E=-1,B=-1,we=-1,ve=this._audioMeta.refSampleDuration,je=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Rt=this._dtsBaseInited&&this._audioNextDts===void 0,pt=!1;if(!i||i.length===0||i.length===1&&!t)return;let Se=0,vt=null,Fe=0;je?(Se=0,Fe=n.length):(Se=8,Fe=8+n.length);let fe=null;if(i.length>1&&(fe=i.pop(),Fe-=fe.length),this._audioStashedLastSample!=null){let We=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(We),Fe+=We.length}fe!=null&&(this._audioStashedLastSample=fe);let Ce=i[0].dts-this._dtsBase;if(this._audioNextDts)l=Ce-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())l=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(pt=!0);else{let We=this._audioSegmentInfoList.getLastSampleBefore(Ce);if(We!=null){let Rn=Ce-(We.originalDts+We.duration);Rn<=3&&(Rn=0);let Kn=We.dts+We.duration+Rn;l=Ce-Kn}else l=0}if(pt){let We=Ce-l,Rn=this._videoSegmentInfoList.getLastSegmentBefore(Ce);if(Rn!=null&&Rn.beginDts<We){let Kn=Ze.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Kn){let xr=Rn.beginDts,cr=We-Rn.beginDts;S.v(this.TAG,`InsertPrefixSilentAudio: dts: ${xr}, duration: ${cr}`),i.unshift({unit:Kn,dts:xr,pts:xr}),Fe+=Kn.byteLength}}else pt=!1}let Ve=[];for(let We=0;We<i.length;We++){let Rn=i[We],Kn=Rn.unit,xr=Rn.dts-this._dtsBase,cr=xr-l;E===-1&&(E=cr);let oi=0;We!==i.length-1?oi=i[We+1].dts-this._dtsBase-l-cr:fe!=null?oi=fe.dts-this._dtsBase-l-cr:Ve.length>=1?oi=Ve[Ve.length-1].duration:oi=Math.floor(ve);let Ii=!1,Xr=null;if(oi>ve*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!C.safari){Ii=!0;let hi=Math.abs(oi-ve),yi=Math.ceil(hi/ve),Li=cr+ve;S.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
dts: ${cr+oi} ms, expected: ${cr+Math.round(ve)} ms, delta: ${Math.round(hi)} ms, generate: ${yi} frames`);let Bi=Ze.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Bi==null&&(S.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Bi=Kn),Xr=[];for(let Ar=0;Ar<yi;Ar++){let dr=Math.round(Li);if(Xr.length>0){let ra=Xr[Xr.length-1];ra.duration=dr-ra.dts}let na={dts:dr,pts:dr,cts:0,unit:Bi,size:Bi.byteLength,duration:0,originalDts:xr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Xr.push(na),Fe+=na.size,Li+=ve}let $r=Xr[Xr.length-1];$r.duration=cr+oi-$r.dts,oi=Math.round(ve)}Ve.push({dts:cr,pts:cr,cts:0,unit:Rn.unit,size:Rn.unit.byteLength,duration:oi,originalDts:xr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ii&&Ve.push.apply(Ve,Xr)}je?vt=new Uint8Array(Fe):(vt=new Uint8Array(Fe),vt[0]=Fe>>>24&255,vt[1]=Fe>>>16&255,vt[2]=Fe>>>8&255,vt[3]=Fe&255,vt.set(de.types.mdat,4));for(let We=0;We<Ve.length;We++){let Rn=Ve[We].unit;vt.set(Rn,Se),Se+=Rn.byteLength}let et=Ve[Ve.length-1];B=et.dts+et.duration,this._audioNextDts=B;let Yt=new kt;Yt.beginDts=E,Yt.endDts=B,Yt.beginPts=E,Yt.endPts=B,Yt.originalBeginDts=Ve[0].originalDts,Yt.originalEndDts=et.originalDts+et.duration,Yt.firstSample=new lt(Ve[0].dts,Ve[0].pts,Ve[0].duration,Ve[0].originalDts,!1),Yt.lastSample=new lt(et.dts,et.pts,et.duration,et.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Yt),n.samples=Ve,n.sequenceNumber++;let si=null;je?si=new Uint8Array:si=de.moof(n,E),n.samples=[],n.length=0;let lr={type:"audio",data:this._mergeBoxes(si,vt).buffer,sampleCount:Ve.length,info:Yt};je&&Rt&&(lr.timestampOffset=E),this._onMediaSegment("audio",lr)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,i=n.samples,l,E=-1,B=-1,we=-1,ve=-1;if(!i||i.length===0||i.length===1&&!t)return;let je=8,Rt=null,pt=8+e.length,Se=null;if(i.length>1&&(Se=i.pop(),pt-=Se.length),this._videoStashedLastSample!=null){let et=this._videoStashedLastSample;this._videoStashedLastSample=null,i.unshift(et),pt+=et.length}Se!=null&&(this._videoStashedLastSample=Se);let vt=i[0].dts-this._dtsBase;if(this._videoNextDts)l=vt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())l=0;else{let et=this._videoSegmentInfoList.getLastSampleBefore(vt);if(et!=null){let Yt=vt-(et.originalDts+et.duration);Yt<=3&&(Yt=0);let si=et.dts+et.duration+Yt;l=vt-si}else l=0}let Fe=new kt,fe=[];for(let et=0;et<i.length;et++){let Yt=i[et],si=Yt.dts-this._dtsBase,lr=Yt.isKeyframe,We=si-l,Rn=Yt.cts,Kn=We+Rn;E===-1&&(E=We,we=Kn);let xr=0;if(et!==i.length-1?xr=i[et+1].dts-this._dtsBase-l-We:Se!=null?xr=Se.dts-this._dtsBase-l-We:fe.length>=1?xr=fe[fe.length-1].duration:xr=Math.floor(this._videoMeta.refSampleDuration),lr){let cr=new lt(We,Kn,xr,Yt.dts,!0);cr.fileposition=Yt.fileposition,Fe.appendSyncPoint(cr)}fe.push({dts:We,pts:Kn,cts:Rn,units:Yt.units,size:Yt.length,isKeyframe:lr,duration:xr,originalDts:si,flags:{isLeading:0,dependsOn:lr?2:1,isDependedOn:lr?1:0,hasRedundancy:0,isNonSync:lr?0:1}})}Rt=new Uint8Array(pt),Rt[0]=pt>>>24&255,Rt[1]=pt>>>16&255,Rt[2]=pt>>>8&255,Rt[3]=pt&255,Rt.set(de.types.mdat,4);for(let et=0;et<fe.length;et++){let Yt=fe[et].units;for(;Yt.length;){let lr=Yt.shift().data;Rt.set(lr,je),je+=lr.byteLength}}let Ce=fe[fe.length-1];if(B=Ce.dts+Ce.duration,ve=Ce.pts+Ce.duration,this._videoNextDts=B,Fe.beginDts=E,Fe.endDts=B,Fe.beginPts=we,Fe.endPts=ve,Fe.originalBeginDts=fe[0].originalDts,Fe.originalEndDts=Ce.originalDts+Ce.duration,Fe.firstSample=new lt(fe[0].dts,fe[0].pts,fe[0].duration,fe[0].originalDts,fe[0].isKeyframe),Fe.lastSample=new lt(Ce.dts,Ce.pts,Ce.duration,Ce.originalDts,Ce.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Fe),n.samples=fe,n.sequenceNumber++,this._forceFirstIDR){let et=fe[0].flags;et.dependsOn=2,et.isNonSync=0}let Ve=de.moof(n,E);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Ve,Rt).buffer,sampleCount:fe.length,info:Fe})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var Zt=Ft,ae={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 Pr{constructor(e,t){this.TAG="TransmuxingController",this._emitter=new(V()),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 q(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=F.probe(e)).match){this._demuxer=new F(n,this._config),this._remuxer||(this._remuxer=new Zt(this._config));let l=this._mediaDataSource;l.duration!=null&&!isNaN(l.duration)&&(this._demuxer.overridedDuration=l.duration),typeof l.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=l.hasAudio),typeof l.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=l.hasVideo),this._demuxer.timestampBase=l.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,S.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(ae.DEMUX_ERROR,I.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,Qt.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,Qt.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(ae.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(ae.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(ae.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(e){let t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}_onIORecoveredEarlyEof(){this._emitter.emit(ae.RECOVERED_EARLY_EOF)}_onIOException(e,t){S.e(this.TAG,`IOException: type = ${e}, code = ${t.code}, msg = ${t.msg}`),this._emitter.emit(ae.IO_ERROR,e,t),this._disableStatisticsReporter()}_onDemuxException(e,t){S.e(this.TAG,`DemuxException: type = ${e}, info = ${t}`),this._emitter.emit(ae.DEMUX_ERROR,e,t)}_onRemuxerInitSegmentArrival(e,t){this._emitter.emit(ae.INIT_SEGMENT,e,t)}_onRemuxerMediaSegmentArrival(e,t){if(this._pendingSeekTime==null&&(this._emitter.emit(ae.MEDIA_SEGMENT,e,t),this._pendingResolveSeekPoint!=null&&e==="video")){let n=t.info.syncPoints,i=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,C.safari&&n.length>0&&n[0].originalDts===i&&(i=n[0].pts),this._emitter.emit(ae.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(ae.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(ae.STATISTICS_INFO,e)}}var yr=Pr,Nn=function(se){let e="TransmuxingWorker",t=null,n=Fe.bind(this);k.install(),se.addEventListener("message",function(fe){switch(fe.data.cmd){case"init":t=new yr(fe.data.param[0],fe.data.param[1]),t.on(ae.IO_ERROR,pt.bind(this)),t.on(ae.DEMUX_ERROR,Se.bind(this)),t.on(ae.INIT_SEGMENT,i.bind(this)),t.on(ae.MEDIA_SEGMENT,l.bind(this)),t.on(ae.LOADING_COMPLETE,E.bind(this)),t.on(ae.RECOVERED_EARLY_EOF,B.bind(this)),t.on(ae.MEDIA_INFO,we.bind(this)),t.on(ae.METADATA_ARRIVED,ve.bind(this)),t.on(ae.SCRIPTDATA_ARRIVED,je.bind(this)),t.on(ae.STATISTICS_INFO,Rt.bind(this)),t.on(ae.RECOMMEND_SEEKPOINT,vt.bind(this));break;case"destroy":t&&(t.destroy(),t=null),se.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(fe.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let Ce=fe.data.param;it.applyConfig(Ce),Ce.enableCallback===!0?it.addLogListener(n):it.removeLogListener(n);break}}});function i(fe,Ce){let Ve={msg:ae.INIT_SEGMENT,data:{type:fe,data:Ce}};se.postMessage(Ve,[Ce.data])}function l(fe,Ce){let Ve={msg:ae.MEDIA_SEGMENT,data:{type:fe,data:Ce}};se.postMessage(Ve,[Ce.data])}function E(){let fe={msg:ae.LOADING_COMPLETE};se.postMessage(fe)}function B(){let fe={msg:ae.RECOVERED_EARLY_EOF};se.postMessage(fe)}function we(fe){let Ce={msg:ae.MEDIA_INFO,data:fe};se.postMessage(Ce)}function ve(fe){let Ce={msg:ae.METADATA_ARRIVED,data:fe};se.postMessage(Ce)}function je(fe){let Ce={msg:ae.SCRIPTDATA_ARRIVED,data:fe};se.postMessage(Ce)}function Rt(fe){let Ce={msg:ae.STATISTICS_INFO,data:fe};se.postMessage(Ce)}function pt(fe,Ce){se.postMessage({msg:ae.IO_ERROR,data:{type:fe,info:Ce}})}function Se(fe,Ce){se.postMessage({msg:ae.DEMUX_ERROR,data:{type:fe,info:Ce}})}function vt(fe){se.postMessage({msg:ae.RECOMMEND_SEEKPOINT,data:fe})}function Fe(fe,Ce){se.postMessage({msg:"logcat_callback",data:{type:fe,logcat:Ce}})}};class jn{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(V()),t.enableWorker&&typeof Worker!="undefined")try{let n=d(18034);this._worker=n(Nn),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)},it.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:it.getConfig()})}catch(n){S.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new yr(e,t)}else this._controller=new yr(e,t);if(this._controller){let n=this._controller;n.on(ae.IO_ERROR,this._onIOError.bind(this)),n.on(ae.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(ae.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(ae.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(ae.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(ae.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(ae.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(ae.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(ae.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(ae.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(ae.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),it.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(ae.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(ae.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(ae.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(ae.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(ae.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(ae.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(ae.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(ae.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(ae.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(ae.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(ae.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 ae.INIT_SEGMENT:case ae.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case ae.LOADING_COMPLETE:case ae.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case ae.MEDIA_INFO:Object.setPrototypeOf(n,Qt.prototype),this._emitter.emit(t.msg,n);break;case ae.METADATA_ARRIVED:case ae.SCRIPTDATA_ARRIVED:case ae.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case ae.IO_ERROR:case ae.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case ae.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":S.emitter.emit("log",n.type,n.logcat);break;default:break}}}var Kr=jn,Er={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class qr{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new(V()),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 Je}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 $("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(l){S.e(this.TAG,l.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){S.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 l=!1;if(S.v(this.TAG,"Received Initialization Segment, mimeType: "+i),this._lastInitSegments[n.type]=n,i!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])S.v(this.TAG,`Notice: ${n.type} mimeType changed, origin: ${this._mimeTypes[n.type]}, target: ${i}`);else{l=!0;try{let E=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);E.addEventListener("error",this.e.onSourceBufferError),E.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(E){S.e(this.TAG,E.message),this._emitter.emit(Er.ERROR,{code:E.code,msg:E.message});return}}this._mimeTypes[n.type]=i}t||this._pendingSegments[n.type].push(n),l||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),C.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(l){S.e(this.TAG,l.message)}this._idrList.clear();let i=this._pendingSegments[t];if(i.splice(0,i.length),this._mediaSource.readyState!=="closed"){for(let l=0;l<n.buffered.length;l++){let E=n.buffered.start(l),B=n.buffered.end(l);this._pendingRemoveRanges[t].push({start:E,end:B})}if(n.updating||this._doRemoveRanges(),C.safari){let l=this._lastInitSegments[t];l&&(this._pendingSegments[t].push(l),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,l=!1;for(let E=0;E<i.length;E++){let B=i.start(E),we=i.end(E);if(B<=e&&e<we+3){if(e-B>=this._config.autoCleanupMaxBackwardDuration){l=!0;let ve=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:B,end:ve})}}else we<e&&(l=!0,this._pendingRemoveRanges[t].push({start:B,end:we}))}l&&!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)&&(S.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,l=n.timestampOffset/1e3;Math.abs(i-l)>.1&&(S.v(this.TAG,`Update MPEG audio timestampOffset from ${i} to ${l}`),this._sourceBuffers[t].timestampOffset=l),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(Er.BUFFER_FULL),this._isBufferFull=!0):(S.e(this.TAG,i.message),this._emitter.emit(Er.ERROR,{code:i.code,msg:i.message}))}}}_onSourceOpen(){if(S.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(Er.SOURCE_OPEN)}_onSourceEnded(){S.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){S.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(Er.UPDATE_END)}_onSourceBufferError(e){S.e(this.TAG,`SourceBuffer Error: ${e}`)}}var ai=qr;const Ur={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},qe={NETWORK_EXCEPTION:re.EXCEPTION,NETWORK_STATUS_CODE_INVALID:re.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:re.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:re.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:I.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:I.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:I.CODEC_UNSUPPORTED};class un{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(V()),this._config=Xt(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()!=="flv")throw new me("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=C.chrome&&(C.version.major<50||C.version.major===50&&C.version.build<2661);this._alwaysSeekKeyframe=!!(n||C.msedge||C.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===mt.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(mt.MEDIA_INFO,this.mediaInfo)}):e===mt.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(mt.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 ai(this._config),this._msectl.on(Er.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Er.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Er.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Er.ERROR,t=>{this._emitter.emit(mt.ERROR,Ur.MEDIA_ERROR,qe.MEDIA_MSE_ERROR,t)}),this._msectl.attachMediaElement(e),this._pendingSeekTime!=null)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new $("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new $("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 Kr(this._mediaDataSource,this._config),this._transmuxer.on(ae.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(ae.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&&(S.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(ae.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(mt.LOADING_COMPLETE)}),this._transmuxer.on(ae.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(mt.RECOVERED_EARLY_EOF)}),this._transmuxer.on(ae.IO_ERROR,(e,t)=>{this._emitter.emit(mt.ERROR,Ur.NETWORK_ERROR,e,t)}),this._transmuxer.on(ae.DEMUX_ERROR,(e,t)=>{this._emitter.emit(mt.ERROR,Ur.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(ae.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(mt.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(ae.METADATA_ARRIVED,e=>{this._emitter.emit(mt.METADATA_ARRIVED,e)}),this._transmuxer.on(ae.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(mt.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(ae.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(mt.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(ae.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 l=this._mediaElement.getVideoPlaybackQuality();n=l.totalVideoFrames,i=l.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 l=0;l<e.length;l++){let E=e.start(l),B=e.end(l);if(E<=t&&t<B){n=E,i=B;break}}i>=t+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(S.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){S.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 l=t.start(i),E=t.end(i);if(e>=l&&e<E){e>=E-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(S.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),l=t.end(n);if(e>=i&&e<l)return!0}return!1}_internalSeek(e){let t=this._isTimepointBuffered(e),n=!1,i=0;if(e<1&&this._mediaElement.buffered.length>0){let l=this._mediaElement.buffered.start(0);(l<1&&e<l||C.safari)&&(n=!0,i=C.safari?.1:l)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=i;else if(t){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=e;else{let l=this._msectl.getNearestKeyframe(Math.floor(e*1e3));this._requestSetTime=!0,l!=null?this._mediaElement.currentTime=l.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)&&(S.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||C.safari){this._requestSetTime=!0,this._mediaElement.currentTime=C.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 Zn=un;class ei{constructor(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(V()),this._config=Xt(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()==="flv")throw new me("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new me(`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===mt.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(mt.MEDIA_INFO,this.mediaInfo)}):e===mt.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(mt.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 $("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 l=this._mediaElement.getVideoPlaybackQuality();n=l.totalVideoFrames,i=l.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(mt.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(mt.STATISTICS_INFO,this.statisticsInfo)}}var ti=ei;k.install();function zr(se,e){let t=se;if(t==null||typeof t!="object")throw new me("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new me("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new Zn(t,e);default:return new ti(t,e)}}function ur(){return Vt.supportMSEH264Playback()}function Nr(){return Vt.getFeatureList()}let Tt={};Tt.createPlayer=zr,Tt.isSupported=ur,Tt.getFeatureList=Nr,Tt.BaseLoader=Oe,Tt.LoaderStatus=U,Tt.LoaderErrors=re,Tt.Events=mt,Tt.ErrorTypes=Ur,Tt.ErrorDetails=qe,Tt.FlvPlayer=Zn,Tt.NativePlayer=ti,Tt.LoggingControl=it,Object.defineProperty(Tt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Ri=Tt},56153:function($t,Re,d){"use strict";d.d(Re,{Z:function(){return fs}});var s=d(67294),k=d.t(s,2),H=d(91034),V=d(94184),x=d.n(V),S=d(87462),ne=d(4942),G=d(97685),c=d(45987),$=d(1413),me=d(73935);function Y(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var U={};function re(o,f){}function Oe(o,f){}function oe(){U={}}function L(o,f,h){!f&&!U[h]&&(o(!1,h),U[h]=!0)}function C(o,f){L(re,o,f)}function O(o,f){L(Oe,o,f)}var T=null,z=d(71002),w=d(12060);function P(o,f,h){var y=s.useRef({});return(!("value"in y.current)||h(y.current.condition,f))&&(y.current.value=o(),y.current.condition=f),y.current.value}function ie(o,f){typeof o=="function"?o(f):(0,z.Z)(o)==="object"&&o&&"current"in o&&(o.current=f)}function K(){for(var o=arguments.length,f=new Array(o),h=0;h<o;h++)f[h]=arguments[h];var y=f.filter(function(D){return D});return y.length<=1?y[0]:function(D){f.forEach(function(j){ie(j,D)})}}function ge(){for(var o=arguments.length,f=new Array(o),h=0;h<o;h++)f[h]=arguments[h];return P(function(){return K.apply(void 0,f)},f,function(y,D){return y.length===D.length&&y.every(function(j,Z){return j===D[Z]})})}function $e(o){var f,h,y=(0,w.isMemo)(o)?o.type.type:o.type;return!(typeof y=="function"&&!((f=y.prototype)!==null&&f!==void 0&&f.render)||typeof o=="function"&&!((h=o.prototype)!==null&&h!==void 0&&h.render))}var ot=s.createContext(null),bt=ot,Bt=d(74902),Dt=Y()?s.useLayoutEffect:s.useEffect,St=Dt,Ht=function(f,h){var y=React.useRef(!0);Dt(function(){if(!y.current)return f()},h),Dt(function(){return y.current=!1,function(){y.current=!0}},[])},q=[];function gn(o,f){var h=s.useState(function(){if(!Y())return null;var Ae=document.createElement("div");return Ae}),y=(0,G.Z)(h,1),D=y[0],j=s.useRef(!1),Z=s.useContext(bt),le=s.useState(q),be=(0,G.Z)(le,2),pe=be[0],Pe=be[1],ye=Z||(j.current?void 0:function(Ae){Pe(function(Mt){var gt=[Ae].concat((0,Bt.Z)(Mt));return gt})});function Ue(){D.parentElement||document.body.appendChild(D),j.current=!0}function Ie(){var Ae;(Ae=D.parentElement)===null||Ae===void 0||Ae.removeChild(D),j.current=!1}return St(function(){return o?Z?Z(Ue):Ue():Ie(),Ie},[o]),St(function(){pe.length&&(pe.forEach(function(Ae){return Ae()}),Pe(q))},[pe]),[D,ye]}function Xt(o,f){if(!o)return!1;if(o.contains)return o.contains(f);for(var h=f;h;){if(h===o)return!0;h=h.parentNode}return!1}var De="data-rc-order",Vt="rc-util-key",Ct=new Map;function mt(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=o.mark;return f?f.startsWith("data-")?f:"data-".concat(f):Vt}function Xe(o){if(o.attachTo)return o.attachTo;var f=document.querySelector("head");return f||document.body}function it(o){return o==="queue"?"prependQueue":o?"prepend":"append"}function On(o){return Array.from((Ct.get(o)||o).children).filter(function(f){return f.tagName==="STYLE"})}function Qt(o){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Y())return null;var h=f.csp,y=f.prepend,D=document.createElement("style");D.setAttribute(De,it(y)),h!=null&&h.nonce&&(D.nonce=h==null?void 0:h.nonce),D.innerHTML=o;var j=Xe(f),Z=j.firstChild;if(y){if(y==="queue"){var le=On(j).filter(function(be){return["prepend","prependQueue"].includes(be.getAttribute(De))});if(le.length)return j.insertBefore(D,le[le.length-1].nextSibling),D}j.insertBefore(D,Z)}else j.appendChild(D);return D}function Un(o){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=Xe(f);return On(h).find(function(y){return y.getAttribute(mt(f))===o})}function en(o){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=Un(o,f);if(h){var y=Xe(f);y.removeChild(h)}}function zn(o,f){var h=Ct.get(o);if(!h||!Xt(document,h)){var y=Qt("",f),D=y.parentNode;Ct.set(o,D),o.removeChild(y)}}function on(){Ct.clear()}function tn(o,f){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},y=Xe(h);zn(y,h);var D=Un(f,h);if(D){var j,Z;if((j=h.csp)!==null&&j!==void 0&&j.nonce&&D.nonce!==((Z=h.csp)===null||Z===void 0?void 0:Z.nonce)){var le;D.nonce=(le=h.csp)===null||le===void 0?void 0:le.nonce}return D.innerHTML!==o&&(D.innerHTML=o),D}var be=Qt(o,h);return be.setAttribute(mt(h),f),be}var er;function pn(o){if(typeof document=="undefined")return 0;if(o||er===void 0){var f=document.createElement("div");f.style.width="100%",f.style.height="200px";var h=document.createElement("div"),y=h.style;y.position="absolute",y.top="0",y.left="0",y.pointerEvents="none",y.visibility="hidden",y.width="200px",y.height="150px",y.overflow="hidden",h.appendChild(f),document.body.appendChild(h);var D=f.offsetWidth;h.style.overflow="scroll";var j=f.offsetWidth;D===j&&(j=h.clientWidth),document.body.removeChild(h),er=D-j}return er}function ut(o){var f=o.match(/^(.*)px$/),h=Number(f==null?void 0:f[1]);return Number.isNaN(h)?pn():h}function W(o){if(typeof document=="undefined"||!o||!(o instanceof Element))return{width:0,height:0};var f=getComputedStyle(o,"::-webkit-scrollbar"),h=f.width,y=f.height;return{width:ut(h),height:ut(y)}}function _(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var p="rc-util-locker-".concat(Date.now()),I=0;function N(o){var f=!!o,h=s.useState(function(){return I+=1,"".concat(p,"_").concat(I)}),y=(0,G.Z)(h,1),D=y[0];St(function(){if(f){var j=W(document.body).width,Z=_();tn(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(Z?"width: calc(100% - ".concat(j,"px);"):"",`
|
|
}`),D)}else en(D);return function(){en(D)}},[f,D])}var Q=!1;function b(o){return typeof o=="boolean"&&(Q=o),Q}var M=function(f){return f===!1?!1:!Y()||!f?null:typeof f=="string"?document.querySelector(f):typeof f=="function"?f():f},F=s.forwardRef(function(o,f){var h=o.open,y=o.autoLock,D=o.getContainer,j=o.debug,Z=o.autoDestroy,le=Z===void 0?!0:Z,be=o.children,pe=s.useState(h),Pe=(0,G.Z)(pe,2),ye=Pe[0],Ue=Pe[1],Ie=ye||h;s.useEffect(function(){(le||h)&&Ue(h)},[h,le]);var Ae=s.useState(function(){return M(D)}),Mt=(0,G.Z)(Ae,2),gt=Mt[0],Ut=Mt[1];s.useEffect(function(){var Fn=M(D);Ut(Fn!=null?Fn:null)});var wt=gn(Ie&&!gt,j),nt=(0,G.Z)(wt,2),Be=nt[0],bn=nt[1],ln=gt!=null?gt:Be;N(y&&h&&Y()&&(ln===Be||ln===document.body));var Sn=null;if(be&&$e(be)&&f){var Hn=be;Sn=Hn.ref}var tr=ge(Sn,f);if(!Ie||!Y()||gt===void 0)return null;var Jt=ln===!1||b(),Ot=be;return f&&(Ot=s.cloneElement(be,{ref:tr})),s.createElement(bt.Provider,{value:bn},Jt?Ot:(0,me.createPortal)(Ot,ln))}),g=F,de=g,ue=d(48555);function Ze(o){return o instanceof HTMLElement||o instanceof SVGElement}function lt(o){return Ze(o)?o:o instanceof React.Component?ReactDOM.findDOMNode(o):null}function kt(o){var f;return o==null||(f=o.getRootNode)===null||f===void 0?void 0:f.call(o)}function Je(o){return kt(o)instanceof ShadowRoot}function Ne(o){return Je(o)?kt(o):null}function Ft(o){var f=s.useRef();f.current=o;var h=s.useCallback(function(){for(var y,D=arguments.length,j=new Array(D),Z=0;Z<D;Z++)j[Z]=arguments[Z];return(y=f.current)===null||y===void 0?void 0:y.call.apply(y,[f].concat(j))},[]);return h}function Zt(){var o=(0,$.Z)({},k);return o.useId}var An=0;function ae(){}var Pr=Zt(),yr=Pr?function(f){var h=Pr();return f||h}:function(f){var h=s.useState("ssr-id"),y=(0,G.Z)(h,2),D=y[0],j=y[1];return s.useEffect(function(){var Z=An;An+=1,j("rc_unique_".concat(Z))},[]),f||D};function Or(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Nn=Or()?s.useLayoutEffect:s.useEffect,jn=function(f,h){var y=s.useRef(!0);Nn(function(){return f(y.current)},h),Nn(function(){return y.current=!1,function(){y.current=!0}},[])},Kr=function(f,h){jn(function(y){if(!y)return f()},h)},$n=jn,Er=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var o=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(o)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(o==null?void 0:o.substr(0,4))},qr=s.createContext(null),ai=qr;function Ur(o){return o?Array.isArray(o)?o:[o]:[]}function qe(o,f,h,y){return s.useMemo(function(){var D=Ur(h!=null?h:f),j=Ur(y!=null?y:f),Z=new Set(D),le=new Set(j);return o&&(Z.has("hover")&&(Z.delete("hover"),Z.add("click")),le.has("hover")&&(le.delete("hover"),le.add("click"))),[Z,le]},[o,f,h,y])}var un=function(o){if(!o)return!1;if(o instanceof Element){if(o.offsetParent)return!0;if(o.getBBox){var f=o.getBBox(),h=f.width,y=f.height;if(h||y)return!0}if(o.getBoundingClientRect){var D=o.getBoundingClientRect(),j=D.width,Z=D.height;if(j||Z)return!0}}return!1};function Zn(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=arguments.length>2?arguments[2]:void 0;return h?o[0]===f[0]:o[0]===f[0]&&o[1]===f[1]}function ei(o,f,h,y){for(var D=h.points,j=Object.keys(o),Z=0;Z<j.length;Z+=1){var le,be=j[Z];if(Zn((le=o[be])===null||le===void 0?void 0:le.points,D,y))return"".concat(f,"-placement-").concat(be)}return""}function ti(o,f,h,y){return f||(h?{motionName:"".concat(o,"-").concat(h)}:y?{motionName:y}:null)}function zr(o){return o.ownerDocument.defaultView}function ur(o){for(var f=[],h=o==null?void 0:o.parentElement,y=["hidden","scroll","clip","auto"];h;){var D=zr(h).getComputedStyle(h),j=D.overflowX,Z=D.overflowY,le=D.overflow;[j,Z,le].some(function(be){return y.includes(be)})&&f.push(h),h=h.parentElement}return f}function Nr(o){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(o)?f:o}function Tt(o){return Nr(parseFloat(o),0)}function Ri(o,f){var h=(0,$.Z)({},o);return(f||[]).forEach(function(y){if(!(y instanceof HTMLBodyElement||y instanceof HTMLHtmlElement)){var D=zr(y).getComputedStyle(y),j=D.overflow,Z=D.overflowClipMargin,le=D.borderTopWidth,be=D.borderBottomWidth,pe=D.borderLeftWidth,Pe=D.borderRightWidth,ye=y.getBoundingClientRect(),Ue=y.offsetHeight,Ie=y.clientHeight,Ae=y.offsetWidth,Mt=y.clientWidth,gt=Tt(le),Ut=Tt(be),wt=Tt(pe),nt=Tt(Pe),Be=Nr(Math.round(ye.width/Ae*1e3)/1e3),bn=Nr(Math.round(ye.height/Ue*1e3)/1e3),ln=(Ae-Mt-wt-nt)*Be,Sn=(Ue-Ie-gt-Ut)*bn,Hn=gt*bn,tr=Ut*bn,Jt=wt*Be,Ot=nt*Be,Fn=0,nr=0;if(j==="clip"){var cn=Tt(Z);Fn=cn*Be,nr=cn*bn}var xt=ye.x+Jt-Fn,qt=ye.y+Hn-nr,_t=xt+ye.width+2*Fn-Jt-Ot-ln,br=qt+ye.height+2*nr-Hn-tr-Sn;h.left=Math.max(h.left,xt),h.top=Math.max(h.top,qt),h.right=Math.min(h.right,_t),h.bottom=Math.min(h.bottom,br)}}),h}function se(o){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,h="".concat(f),y=h.match(/^(.*)\%$/);return y?o*(parseFloat(y[1])/100):parseFloat(h)}function e(o,f){var h=f||[],y=(0,G.Z)(h,2),D=y[0],j=y[1];return[se(o.width,D),se(o.height,j)]}function t(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[o[0],o[1]]}function n(o,f){var h=f[0],y=f[1],D,j;return h==="t"?j=o.y:h==="b"?j=o.y+o.height:j=o.y+o.height/2,y==="l"?D=o.x:y==="r"?D=o.x+o.width:D=o.x+o.width/2,{x:D,y:j}}function i(o,f){var h={t:"b",b:"t",l:"r",r:"l"};return o.map(function(y,D){return D===f?h[y]||"c":y}).join("")}function l(o,f,h,y,D,j,Z){var le=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:D[y]||{}}),be=(0,G.Z)(le,2),pe=be[0],Pe=be[1],ye=s.useRef(0),Ue=s.useMemo(function(){return f?ur(f):[]},[f]),Ie=s.useRef({}),Ae=function(){Ie.current={}};o||Ae();var Mt=Ft(function(){if(f&&h&&o){let kr=function(ri,_r){var Yr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:he,vi=nn.x+ri,gi=nn.y+_r,fi=vi+m,Ei=gi+u,Hi=Math.max(vi,Yr.left),wr=Math.max(gi,Yr.top),Ni=Math.min(fi,Yr.right),ze=Math.min(Ei,Yr.bottom);return Math.max(0,(Ni-Hi)*(ze-wr))},Vr=function(){sn=nn.y+ft,Sr=sn+u,ht=nn.x+Lt,Zr=ht+m};var wt,nt,Be=f,bn=Be.ownerDocument,ln=zr(Be),Sn=ln.getComputedStyle(Be),Hn=Sn.width,tr=Sn.height,Jt=Sn.position,Ot=Be.style.left,Fn=Be.style.top,nr=Be.style.right,cn=Be.style.bottom,xt=(0,$.Z)((0,$.Z)({},D[y]),j),qt=bn.createElement("div");(wt=Be.parentElement)===null||wt===void 0||wt.appendChild(qt),qt.style.left="".concat(Be.offsetLeft,"px"),qt.style.top="".concat(Be.offsetTop,"px"),qt.style.position=Jt,qt.style.height="".concat(Be.offsetHeight,"px"),qt.style.width="".concat(Be.offsetWidth,"px"),Be.style.left="0",Be.style.top="0",Be.style.right="auto",Be.style.bottom="auto";var _t;if(Array.isArray(h))_t={x:h[0],y:h[1],width:0,height:0};else{var br=h.getBoundingClientRect();_t={x:br.x,y:br.y,width:br.width,height:br.height}}var nn=Be.getBoundingClientRect(),Wn=bn.documentElement,ui=Wn.clientWidth,Fr=Wn.clientHeight,jr=Wn.scrollWidth,ci=Wn.scrollHeight,r=Wn.scrollTop,a=Wn.scrollLeft,u=nn.height,m=nn.width,v=_t.height,A=_t.width,R={left:0,top:0,right:ui,bottom:Fr},ee={left:-a,top:-r,right:jr-a,bottom:ci-r},J=xt.htmlRegion,te="visible",xe="visibleFirst";J!=="scroll"&&J!==xe&&(J=te);var _e=J===xe,Ee=Ri(ee,Ue),X=Ri(R,Ue),he=J===te?X:Ee,ke=_e?X:he;Be.style.left="auto",Be.style.top="auto",Be.style.right="0",Be.style.bottom="0";var Te=Be.getBoundingClientRect();Be.style.left=Ot,Be.style.top=Fn,Be.style.right=nr,Be.style.bottom=cn,(nt=Be.parentElement)===null||nt===void 0||nt.removeChild(qt);var Qe=Nr(Math.round(m/parseFloat(Hn)*1e3)/1e3),Me=Nr(Math.round(u/parseFloat(tr)*1e3)/1e3);if(Qe===0||Me===0||Ze(h)&&!un(h))return;var Le=xt.offset,ce=xt.targetOffset,He=e(nn,Le),at=(0,G.Z)(He,2),ct=at[0],Ye=at[1],_n=e(_t,ce),rt=(0,G.Z)(_n,2),rn=rt[0],Kt=rt[1];_t.x-=rn,_t.y-=Kt;var Nt=xt.points||[],At=(0,G.Z)(Nt,2),dt=At[0],It=At[1],Ke=t(It),zt=t(dt),jt=n(_t,Ke),In=n(nn,zt),fr=(0,$.Z)({},xt),Lt=jt.x-In.x+ct,ft=jt.y-In.y+Ye,Ln=kr(Lt,ft),Cn=kr(Lt,ft,X),Pn=n(_t,["t","l"]),Wt=n(nn,["t","l"]),Gt=n(_t,["b","r"]),an=n(nn,["b","r"]),Gn=xt.overflow||{},Bn=Gn.adjustX,Xn=Gn.adjustY,Qn=Gn.shiftX,ar=Gn.shiftY,Ir=function(_r){return typeof _r=="boolean"?_r:_r>=0},sn,Sr,ht,Zr;Vr();var hr=Ir(Xn),Lr=zt[0]===Ke[0];if(hr&&zt[0]==="t"&&(Sr>ke.bottom||Ie.current.bt)){var sr=ft;Lr?sr-=u-v:sr=Pn.y-an.y-Ye;var Yn=kr(Lt,sr),mr=kr(Lt,sr,X);Yn>Ln||Yn===Ln&&(!_e||mr>=Cn)?(Ie.current.bt=!0,ft=sr,Ye=-Ye,fr.points=[i(zt,0),i(Ke,0)]):Ie.current.bt=!1}if(hr&&zt[0]==="b"&&(sn<ke.top||Ie.current.tb)){var Br=ft;Lr?Br+=u-v:Br=Gt.y-Wt.y-Ye;var wn=kr(Lt,Br),di=kr(Lt,Br,X);wn>Ln||wn===Ln&&(!_e||di>=Cn)?(Ie.current.tb=!0,ft=Br,Ye=-Ye,fr.points=[i(zt,0),i(Ke,0)]):Ie.current.tb=!1}var or=Ir(Bn),Dn=zt[1]===Ke[1];if(or&&zt[1]==="l"&&(Zr>ke.right||Ie.current.rl)){var Dr=Lt;Dn?Dr-=m-A:Dr=Pn.x-an.x-ct;var Jn=kr(Dr,ft),li=kr(Dr,ft,X);Jn>Ln||Jn===Ln&&(!_e||li>=Cn)?(Ie.current.rl=!0,Lt=Dr,ct=-ct,fr.points=[i(zt,1),i(Ke,1)]):Ie.current.rl=!1}if(or&&zt[1]==="r"&&(ht<ke.left||Ie.current.lr)){var kn=Lt;Dn?kn+=m-A:kn=Gt.x-Wt.x-ct;var Hr=kr(kn,ft),vr=kr(kn,ft,X);Hr>Ln||Hr===Ln&&(!_e||vr>=Cn)?(Ie.current.lr=!0,Lt=kn,ct=-ct,fr.points=[i(zt,1),i(Ke,1)]):Ie.current.lr=!1}Vr();var dn=Qn===!0?0:Qn;typeof dn=="number"&&(ht<X.left&&(Lt-=ht-X.left-ct,_t.x+A<X.left+dn&&(Lt+=_t.x-X.left+A-dn)),Zr>X.right&&(Lt-=Zr-X.right-ct,_t.x>X.right-dn&&(Lt+=_t.x-X.right+dn)));var yn=ar===!0?0:ar;typeof yn=="number"&&(sn<X.top&&(ft-=sn-X.top-Ye,_t.y+v<X.top+yn&&(ft+=_t.y-X.top+v-yn)),Sr>X.bottom&&(ft-=Sr-X.bottom-Ye,_t.y>X.bottom-yn&&(ft+=_t.y-X.bottom+yn)));var gr=nn.x+Lt,rr=gr+m,Qr=nn.y+ft,Wr=Qr+u,pr=_t.x,fn=pr+A,hn=_t.y,En=hn+v,ni=Math.max(gr,pr),tt=Math.min(rr,fn),yt=(ni+tt)/2,Tn=yt-gr,Cr=Math.max(Qr,hn),qn=Math.min(Wr,En),Zi=(Cr+qn)/2,ki=Zi-Qr;Z==null||Z(f,fr);var Si=Te.right-nn.x-(Lt+nn.width),Ci=Te.bottom-nn.y-(ft+nn.height);Pe({ready:!0,offsetX:Lt/Qe,offsetY:ft/Me,offsetR:Si/Qe,offsetB:Ci/Me,arrowX:Tn/Qe,arrowY:ki/Me,scaleX:Qe,scaleY:Me,align:fr})}}),gt=function(){ye.current+=1;var nt=ye.current;Promise.resolve().then(function(){ye.current===nt&&Mt()})},Ut=function(){Pe(function(nt){return(0,$.Z)((0,$.Z)({},nt),{},{ready:!1})})};return $n(Ut,[y]),$n(function(){o||Ut()},[o]),[pe.ready,pe.offsetX,pe.offsetY,pe.offsetR,pe.offsetB,pe.arrowX,pe.arrowY,pe.scaleX,pe.scaleY,pe.align,gt]}function E(o,f,h,y,D){$n(function(){if(o&&f&&h){let ye=function(){y(),D()};var j=f,Z=h,le=ur(j),be=ur(Z),pe=zr(Z),Pe=new Set([pe].concat((0,Bt.Z)(le),(0,Bt.Z)(be)));return Pe.forEach(function(Ue){Ue.addEventListener("scroll",ye,{passive:!0})}),pe.addEventListener("resize",ye,{passive:!0}),y(),function(){Pe.forEach(function(Ue){Ue.removeEventListener("scroll",ye),pe.removeEventListener("resize",ye)})}}},[o,f,h])}function B(o){var f=React.useRef(!1),h=React.useState(o),y=_slicedToArray(h,2),D=y[0],j=y[1];React.useEffect(function(){return f.current=!1,function(){f.current=!0}},[]);function Z(le,be){be&&f.current||j(le)}return[D,Z]}function we(o){return o!==void 0}function ve(o,f){var h=f||{},y=h.defaultValue,D=h.value,j=h.onChange,Z=h.postState,le=useState(function(){return we(D)?D:we(y)?typeof y=="function"?y():y:typeof o=="function"?o():o}),be=_slicedToArray(le,2),pe=be[0],Pe=be[1],ye=D!==void 0?D:pe,Ue=Z?Z(ye):ye,Ie=useEvent(j),Ae=useState([ye]),Mt=_slicedToArray(Ae,2),gt=Mt[0],Ut=Mt[1];useLayoutUpdateEffect(function(){var nt=gt[0];pe!==nt&&Ie(pe,nt)},[gt]),useLayoutUpdateEffect(function(){we(D)||Pe(D)},[D]);var wt=useEvent(function(nt,Be){Pe(nt,Be),Ut([ye],Be)});return[Ue,wt]}var je=d(95845);function Rt(o,f,h){var y=s.useRef({});return(!("value"in y.current)||h(y.current.condition,f))&&(y.current.value=o(),y.current.condition=f),y.current.value}function pt(o,f){typeof o=="function"?o(f):(0,z.Z)(o)==="object"&&o&&"current"in o&&(o.current=f)}function Se(){for(var o=arguments.length,f=new Array(o),h=0;h<o;h++)f[h]=arguments[h];var y=f.filter(function(D){return D});return y.length<=1?y[0]:function(D){f.forEach(function(j){pt(j,D)})}}function vt(){for(var o=arguments.length,f=new Array(o),h=0;h<o;h++)f[h]=arguments[h];return Rt(function(){return Se.apply(void 0,f)},f,function(y,D){return y.length!==D.length||y.every(function(j,Z){return j!==D[Z]})})}function Fe(o){var f,h,y=(0,je.isMemo)(o)?o.type.type:o.type;return!(typeof y=="function"&&!((f=y.prototype)!==null&&f!==void 0&&f.render)||typeof o=="function"&&!((h=o.prototype)!==null&&h!==void 0&&h.render))}function fe(o){return!isValidElement(o)||isFragment(o)?!1:Fe(o)}function Ce(o,f,h,y){if(!f.length)return h;var D=_toArray(f),j=D[0],Z=D.slice(1),le;return!o&&typeof j=="number"?le=[]:Array.isArray(o)?le=_toConsumableArray(o):le=_objectSpread({},o),y&&h===void 0&&Z.length===1?delete le[j][Z[0]]:le[j]=Ce(le[j],Z,h,y),le}function Ve(o,f,h){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return f.length&&y&&h===void 0&&!get(o,f.slice(0,-1))?o:Ce(o,f,h,y)}function et(o){return _typeof(o)==="object"&&o!==null&&Object.getPrototypeOf(o)===Object.prototype}function Yt(o){return Array.isArray(o)?[]:{}}var si=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function lr(){for(var o=arguments.length,f=new Array(o),h=0;h<o;h++)f[h]=arguments[h];var y=Yt(f[0]);return f.forEach(function(D){function j(Z,le){var be=new Set(le),pe=get(D,Z),Pe=Array.isArray(pe);if(Pe||et(pe)){if(!be.has(pe)){be.add(pe);var ye=get(y,Z);Pe?y=Ve(y,Z,[]):(!ye||_typeof(ye)!=="object")&&(y=Ve(y,Z,Yt(pe))),si(pe).forEach(function(Ue){j([].concat(_toConsumableArray(Z),[Ue]),be)})}}else y=Ve(y,Z,pe)}j([])}),y}var We={},Rn=[],Kn=function(f){Rn.push(f)};function xr(o,f){if(0)var h}function cr(o,f){if(0)var h}function oi(){We={}}function Ii(o,f,h){!f&&!We[h]&&(o(!1,h),We[h]=!0)}function Xr(o,f){Ii(xr,o,f)}function hi(o,f){Ii(cr,o,f)}Xr.preMessage=Kn,Xr.resetWarned=oi,Xr.noteOnce=hi;var yi=null,Li=function(f){return+setTimeout(f,16)},Bi=function(f){return clearTimeout(f)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Li=function(f){return window.requestAnimationFrame(f)},Bi=function(f){return window.cancelAnimationFrame(f)});var $r=0,Ar=new Map;function dr(o){Ar.delete(o)}var na=function(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;$r+=1;var y=$r;function D(j){if(j===0)dr(y),f();else{var Z=Li(function(){D(j-1)});Ar.set(y,Z)}}return D(h),y};na.cancel=function(o){var f=Ar.get(o);return dr(f),Bi(f)};var ra=na;function Sa(o,f,h,y,D,j,Z,le){var be=s.useRef(o),pe=s.useRef(!1);be.current!==o&&(pe.current=!0,be.current=o),s.useEffect(function(){var Pe=ra(function(){pe.current=!1});return function(){ra.cancel(Pe)}},[o]),s.useEffect(function(){if(f&&y&&(!D||j)){var Pe=function(){var Jt=!1,Ot=function(cn){var xt=cn.target;Jt=Z(xt)},Fn=function(cn){var xt=cn.target;!pe.current&&be.current&&!Jt&&!Z(xt)&&le(!1)};return[Ot,Fn]},ye=Pe(),Ue=(0,G.Z)(ye,2),Ie=Ue[0],Ae=Ue[1],Mt=Pe(),gt=(0,G.Z)(Mt,2),Ut=gt[0],wt=gt[1],nt=zr(y);nt.addEventListener("mousedown",Ie,!0),nt.addEventListener("click",Ae,!0),nt.addEventListener("contextmenu",Ae,!0);var Be=Ne(h);if(Be&&(Be.addEventListener("mousedown",Ut,!0),Be.addEventListener("click",wt,!0),Be.addEventListener("contextmenu",wt,!0)),0)var bn,ln,Sn,Hn;return function(){nt.removeEventListener("mousedown",Ie,!0),nt.removeEventListener("click",Ae,!0),nt.removeEventListener("contextmenu",Ae,!0),Be&&(Be.removeEventListener("mousedown",Ut,!0),Be.removeEventListener("click",wt,!0),Be.removeEventListener("contextmenu",wt,!0))}}},[f,h,y,D,j])}function za(o){return o instanceof HTMLElement||o instanceof SVGElement}function _s(o){return za(o)?o:o instanceof s.Component?me.findDOMNode(o):null}function Rr(o,f){var h={};return h[o.toLowerCase()]=f.toLowerCase(),h["Webkit".concat(o)]="webkit".concat(f),h["Moz".concat(o)]="moz".concat(f),h["ms".concat(o)]="MS".concat(f),h["O".concat(o)]="o".concat(f.toLowerCase()),h}function ys(o,f){var h={animationend:Rr("Animation","AnimationEnd"),transitionend:Rr("Transition","TransitionEnd")};return o&&("AnimationEvent"in f||delete h.animationend.animation,"TransitionEvent"in f||delete h.transitionend.transition),h}var Es=ys(Y(),typeof window!="undefined"?window:{}),ia={};if(Y()){var bs=document.createElement("div");ia=bs.style}var aa={};function ha(o){if(aa[o])return aa[o];var f=Es[o];if(f)for(var h=Object.keys(f),y=h.length,D=0;D<y;D+=1){var j=h[D];if(Object.prototype.hasOwnProperty.call(f,j)&&j in ia)return aa[o]=f[j],aa[o]}return""}var Ca=ha("animationend"),ja=ha("transitionend"),ma=!!(Ca&&ja),Za=Ca||"animationend",Ha=ja||"transitionend";function Va(o,f){if(!o)return null;if((0,z.Z)(o)==="object"){var h=f.replace(/-\w/g,function(y){return y[1].toUpperCase()});return o[h]}return"".concat(o,"-").concat(f)}var Pi="none",va="appear",sa="enter",ga="leave",wa="none",Di="prepare",Qi="start",Ui="active",zi="end";function pa(o){var f=s.useRef(!1),h=s.useState(o),y=(0,G.Z)(h,2),D=y[0],j=y[1];s.useEffect(function(){return f.current=!1,function(){f.current=!0}},[]);function Z(le,be){be&&f.current||j(le)}return[D,Z]}var Ss=function(f){return+setTimeout(f,16)},xa=function(f){return clearTimeout(f)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ss=function(f){return window.requestAnimationFrame(f)},xa=function(f){return window.cancelAnimationFrame(f)});var Ka=0,oa=new Map;function Ti(o){oa.delete(o)}var Wa=function(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ka+=1;var y=Ka;function D(j){if(j===0)Ti(y),f();else{var Z=Ss(function(){D(j-1)});oa.set(y,Z)}}return D(h),y};Wa.cancel=function(o){var f=oa.get(o);return Ti(f),xa(f)};var Aa=Wa,Ga=function(){var o=s.useRef(null);function f(){Aa.cancel(o.current)}function h(y){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;f();var j=Aa(function(){D<=1?y({isCanceled:function(){return j!==o.current}}):h(y,D-1)});o.current=j}return s.useEffect(function(){return function(){f()}},[]),[h,f]},Cs=Y()?s.useLayoutEffect:s.useEffect,Xa=Cs,Qa=[Di,Qi,Ui,zi],Mi=!1,ws=!0;function Ya(o){return o===Ui||o===zi}var xs=function(o,f){var h=pa(wa),y=(0,G.Z)(h,2),D=y[0],j=y[1],Z=Ga(),le=(0,G.Z)(Z,2),be=le[0],pe=le[1];function Pe(){j(Di,!0)}return Xa(function(){if(D!==wa&&D!==zi){var ye=Qa.indexOf(D),Ue=Qa[ye+1],Ie=f(D);Ie===Mi?j(Ue,!0):be(function(Ae){function Mt(){Ae.isCanceled()||j(Ue,!0)}Ie===!0?Mt():Promise.resolve(Ie).then(Mt)})}},[o,D]),s.useEffect(function(){return function(){pe()}},[]),[Pe,D]},Ja=function(o){var f=(0,s.useRef)(),h=(0,s.useRef)(o);h.current=o;var y=s.useCallback(function(Z){h.current(Z)},[]);function D(Z){Z&&(Z.removeEventListener(Ha,y),Z.removeEventListener(Za,y))}function j(Z){f.current&&f.current!==Z&&D(f.current),Z&&Z!==f.current&&(Z.addEventListener(Ha,y),Z.addEventListener(Za,y),f.current=Z)}return s.useEffect(function(){return function(){D(f.current)}},[]),[j,D]};function As(o,f,h,y){var D=y.motionEnter,j=D===void 0?!0:D,Z=y.motionAppear,le=Z===void 0?!0:Z,be=y.motionLeave,pe=be===void 0?!0:be,Pe=y.motionDeadline,ye=y.motionLeaveImmediately,Ue=y.onAppearPrepare,Ie=y.onEnterPrepare,Ae=y.onLeavePrepare,Mt=y.onAppearStart,gt=y.onEnterStart,Ut=y.onLeaveStart,wt=y.onAppearActive,nt=y.onEnterActive,Be=y.onLeaveActive,bn=y.onAppearEnd,ln=y.onEnterEnd,Sn=y.onLeaveEnd,Hn=y.onVisibleChanged,tr=pa(),Jt=(0,G.Z)(tr,2),Ot=Jt[0],Fn=Jt[1],nr=pa(Pi),cn=(0,G.Z)(nr,2),xt=cn[0],qt=cn[1],_t=pa(null),br=(0,G.Z)(_t,2),nn=br[0],Wn=br[1],ui=(0,s.useRef)(!1),Fr=(0,s.useRef)(null);function jr(){return h()}var ci=(0,s.useRef)(!1);function r(Ee){var X=jr();if(!(Ee&&!Ee.deadline&&Ee.target!==X)){var he=ci.current,ke;xt===va&&he?ke=bn==null?void 0:bn(X,Ee):xt===sa&&he?ke=ln==null?void 0:ln(X,Ee):xt===ga&&he&&(ke=Sn==null?void 0:Sn(X,Ee)),xt!==Pi&&he&&ke!==!1&&(qt(Pi,!0),Wn(null,!0))}}var a=Ja(r),u=(0,G.Z)(a,1),m=u[0],v=s.useMemo(function(){var Ee,X,he;switch(xt){case va:return Ee={},(0,ne.Z)(Ee,Di,Ue),(0,ne.Z)(Ee,Qi,Mt),(0,ne.Z)(Ee,Ui,wt),Ee;case sa:return X={},(0,ne.Z)(X,Di,Ie),(0,ne.Z)(X,Qi,gt),(0,ne.Z)(X,Ui,nt),X;case ga:return he={},(0,ne.Z)(he,Di,Ae),(0,ne.Z)(he,Qi,Ut),(0,ne.Z)(he,Ui,Be),he;default:return{}}},[xt]),A=xs(xt,function(Ee){if(Ee===Di){var X=v[Di];return X?X(jr()):Mi}if(J in v){var he;Wn(((he=v[J])===null||he===void 0?void 0:he.call(v,jr(),null))||null)}return J===Ui&&(m(jr()),Pe>0&&(clearTimeout(Fr.current),Fr.current=setTimeout(function(){r({deadline:!0})},Pe))),ws}),R=(0,G.Z)(A,2),ee=R[0],J=R[1],te=Ya(J);ci.current=te,Xa(function(){Fn(f);var Ee=ui.current;if(ui.current=!0,!!o){var X;!Ee&&f&&le&&(X=va),Ee&&f&&j&&(X=sa),(Ee&&!f&&pe||!Ee&&ye&&!f&&pe)&&(X=ga),X&&(qt(X),ee())}},[f]),(0,s.useEffect)(function(){(xt===va&&!le||xt===sa&&!j||xt===ga&&!pe)&&qt(Pi)},[le,j,pe]),(0,s.useEffect)(function(){return function(){ui.current=!1,clearTimeout(Fr.current)}},[]);var xe=s.useRef(!1);(0,s.useEffect)(function(){Ot&&(xe.current=!0),Ot!==void 0&&xt===Pi&&((xe.current||Ot)&&(Hn==null||Hn(Ot)),xe.current=!0)},[Ot,xt]);var _e=nn;return v[Di]&&J===Qi&&(_e=(0,$.Z)({transition:"none"},_e)),[xt,J,_e,Ot!=null?Ot:f]}var qa=d(15671),Ra=d(43144),Rs=d(60136),Ia=d(51630),Is=function(o){(0,Rs.Z)(h,o);var f=(0,Ia.Z)(h);function h(){return(0,qa.Z)(this,h),f.apply(this,arguments)}return(0,Ra.Z)(h,[{key:"render",value:function(){return this.props.children}}]),h}(s.Component),Ls=Is;function es(o){var f=o;(0,z.Z)(o)==="object"&&(f=o.transitionSupport);function h(D){return!!(D.motionName&&f)}var y=s.forwardRef(function(D,j){var Z=D.visible,le=Z===void 0?!0:Z,be=D.removeOnLeave,pe=be===void 0?!0:be,Pe=D.forceRender,ye=D.children,Ue=D.motionName,Ie=D.leavedClassName,Ae=D.eventProps,Mt=h(D),gt=(0,s.useRef)(),Ut=(0,s.useRef)();function wt(){try{return gt.current instanceof HTMLElement?gt.current:_s(Ut.current)}catch(_t){return null}}var nt=As(Mt,le,wt,D),Be=(0,G.Z)(nt,4),bn=Be[0],ln=Be[1],Sn=Be[2],Hn=Be[3],tr=s.useRef(Hn);Hn&&(tr.current=!0);var Jt=s.useCallback(function(_t){gt.current=_t,ie(j,_t)},[j]),Ot,Fn=(0,$.Z)((0,$.Z)({},Ae),{},{visible:le});if(!ye)Ot=null;else if(bn===Pi||!h(D))Hn?Ot=ye((0,$.Z)({},Fn),Jt):!pe&&tr.current&&Ie?Ot=ye((0,$.Z)((0,$.Z)({},Fn),{},{className:Ie}),Jt):Pe||!pe&&!Ie?Ot=ye((0,$.Z)((0,$.Z)({},Fn),{},{style:{display:"none"}}),Jt):Ot=null;else{var nr,cn;ln===Di?cn="prepare":Ya(ln)?cn="active":ln===Qi&&(cn="start"),Ot=ye((0,$.Z)((0,$.Z)({},Fn),{},{className:x()(Va(Ue,bn),(nr={},(0,ne.Z)(nr,Va(Ue,"".concat(bn,"-").concat(cn)),cn),(0,ne.Z)(nr,Ue,typeof Ue=="string"),nr)),style:Sn}),Jt)}if(s.isValidElement(Ot)&&$e(Ot)){var xt=Ot,qt=xt.ref;qt||(Ot=s.cloneElement(Ot,{ref:Jt}))}return s.createElement(Ls,{ref:Ut},Ot)});return y.displayName="CSSMotion",y}var La=es(ma),Bs=d(97326),mi="add",Ba="keep",Yi="remove",ua="removed";function Da(o){var f;return o&&(0,z.Z)(o)==="object"&&"key"in o?f=o:f={key:o},(0,$.Z)((0,$.Z)({},f),{},{key:String(f.key)})}function ka(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return o.map(Da)}function Ds(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=[],y=0,D=f.length,j=ka(o),Z=ka(f);j.forEach(function(pe){for(var Pe=!1,ye=y;ye<D;ye+=1){var Ue=Z[ye];if(Ue.key===pe.key){y<ye&&(h=h.concat(Z.slice(y,ye).map(function(Ie){return(0,$.Z)((0,$.Z)({},Ie),{},{status:mi})})),y=ye),h.push((0,$.Z)((0,$.Z)({},Ue),{},{status:Ba})),y+=1,Pe=!0;break}}Pe||h.push((0,$.Z)((0,$.Z)({},pe),{},{status:Yi}))}),y<D&&(h=h.concat(Z.slice(y).map(function(pe){return(0,$.Z)((0,$.Z)({},pe),{},{status:mi})})));var le={};h.forEach(function(pe){var Pe=pe.key;le[Pe]=(le[Pe]||0)+1});var be=Object.keys(le).filter(function(pe){return le[pe]>1});return be.forEach(function(pe){h=h.filter(function(Pe){var ye=Pe.key,Ue=Pe.status;return ye!==pe||Ue!==Yi}),h.forEach(function(Pe){Pe.key===pe&&(Pe.status=Ba)})}),h}var ks=["component","children","onVisibleChanged","onAllRemoved"],Ts=["status"],Ms=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ts(o){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:La,h=function(y){(0,Rs.Z)(j,y);var D=(0,Ia.Z)(j);function j(){var Z;(0,qa.Z)(this,j);for(var le=arguments.length,be=new Array(le),pe=0;pe<le;pe++)be[pe]=arguments[pe];return Z=D.call.apply(D,[this].concat(be)),(0,ne.Z)((0,Bs.Z)(Z),"state",{keyEntities:[]}),(0,ne.Z)((0,Bs.Z)(Z),"removeKey",function(Pe){var ye=Z.state.keyEntities,Ue=ye.map(function(Ie){return Ie.key!==Pe?Ie:(0,$.Z)((0,$.Z)({},Ie),{},{status:ua})});return Z.setState({keyEntities:Ue}),Ue.filter(function(Ie){var Ae=Ie.status;return Ae!==ua}).length}),Z}return(0,Ra.Z)(j,[{key:"render",value:function(){var le=this,be=this.state.keyEntities,pe=this.props,Pe=pe.component,ye=pe.children,Ue=pe.onVisibleChanged,Ie=pe.onAllRemoved,Ae=(0,c.Z)(pe,ks),Mt=Pe||s.Fragment,gt={};return Ms.forEach(function(Ut){gt[Ut]=Ae[Ut],delete Ae[Ut]}),delete Ae.keys,s.createElement(Mt,Ae,be.map(function(Ut){var wt=Ut.status,nt=(0,c.Z)(Ut,Ts),Be=wt===mi||wt===Ba;return s.createElement(f,(0,S.Z)({},gt,{key:nt.key,visible:Be,eventProps:nt,onVisibleChanged:function(ln){if(Ue==null||Ue(ln,{key:nt.key}),!ln){var Sn=le.removeKey(nt.key);Sn===0&&Ie&&Ie()}}}),ye)}))}}],[{key:"getDerivedStateFromProps",value:function(le,be){var pe=le.keys,Pe=be.keyEntities,ye=ka(pe),Ue=Ds(Pe,ye);return{keyEntities:Ue.filter(function(Ie){var Ae=Pe.find(function(Mt){var gt=Mt.key;return Ie.key===gt});return!(Ae&&Ae.status===ua&&Ie.status===Yi)})}}}]),j}(s.Component);return(0,ne.Z)(h,"defaultProps",{component:"div"}),h}var Os=ts(ma),ns=La;function rs(o){var f=o.prefixCls,h=o.align,y=o.arrow,D=o.arrowPos,j=y||{},Z=j.className,le=j.content,be=D.x,pe=be===void 0?0:be,Pe=D.y,ye=Pe===void 0?0:Pe,Ue=s.useRef();if(!h||!h.points)return null;var Ie={position:"absolute"};if(h.autoArrow!==!1){var Ae=h.points[0],Mt=h.points[1],gt=Ae[0],Ut=Ae[1],wt=Mt[0],nt=Mt[1];gt===wt||!["t","b"].includes(gt)?Ie.top=ye:gt==="t"?Ie.top=0:Ie.bottom=0,Ut===nt||!["l","r"].includes(Ut)?Ie.left=pe:Ut==="l"?Ie.left=0:Ie.right=0}return s.createElement("div",{ref:Ue,className:x()("".concat(f,"-arrow"),Z),style:Ie},le)}function Ta(o){var f=o.prefixCls,h=o.open,y=o.zIndex,D=o.mask,j=o.motion;return D?s.createElement(ns,(0,S.Z)({},j,{motionAppear:!0,visible:h,removeOnLeave:!0}),function(Z){var le=Z.className;return s.createElement("div",{style:{zIndex:y},className:x()("".concat(f,"-mask"),le)})}):null}var so=s.memo(function(o){var f=o.children;return f},function(o,f){return f.cache}),oo=so,Ns=s.forwardRef(function(o,f){var h=o.popup,y=o.className,D=o.prefixCls,j=o.style,Z=o.target,le=o.onVisibleChanged,be=o.open,pe=o.keepDom,Pe=o.fresh,ye=o.onClick,Ue=o.mask,Ie=o.arrow,Ae=o.arrowPos,Mt=o.align,gt=o.motion,Ut=o.maskMotion,wt=o.forceRender,nt=o.getPopupContainer,Be=o.autoDestroy,bn=o.portal,ln=o.zIndex,Sn=o.onMouseEnter,Hn=o.onMouseLeave,tr=o.onPointerEnter,Jt=o.ready,Ot=o.offsetX,Fn=o.offsetY,nr=o.offsetR,cn=o.offsetB,xt=o.onAlign,qt=o.onPrepare,_t=o.stretch,br=o.targetWidth,nn=o.targetHeight,Wn=typeof h=="function"?h():h,ui=be||pe,Fr=(nt==null?void 0:nt.length)>0,jr=s.useState(!nt||!Fr),ci=(0,G.Z)(jr,2),r=ci[0],a=ci[1];if($n(function(){!r&&Fr&&Z&&a(!0)},[r,Fr,Z]),!r)return null;var u="auto",m={left:"-1000vw",top:"-1000vh",right:u,bottom:u};if(Jt||!be){var v,A=Mt.points,R=Mt.dynamicInset||((v=Mt._experimental)===null||v===void 0?void 0:v.dynamicInset),ee=R&&A[0][1]==="r",J=R&&A[0][0]==="b";ee?(m.right=nr,m.left=u):(m.left=Ot,m.right=u),J?(m.bottom=cn,m.top=u):(m.top=Fn,m.bottom=u)}var te={};return _t&&(_t.includes("height")&&nn?te.height=nn:_t.includes("minHeight")&&nn&&(te.minHeight=nn),_t.includes("width")&&br?te.width=br:_t.includes("minWidth")&&br&&(te.minWidth=br)),be||(te.pointerEvents="none"),s.createElement(bn,{open:wt||ui,getContainer:nt&&function(){return nt(Z)},autoDestroy:Be},s.createElement(Ta,{prefixCls:D,open:be,zIndex:ln,mask:Ue,motion:Ut}),s.createElement(ue.Z,{onResize:xt,disabled:!be},function(xe){return s.createElement(ns,(0,S.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:wt,leavedClassName:"".concat(D,"-hidden")},gt,{onAppearPrepare:qt,onEnterPrepare:qt,visible:be,onVisibleChanged:function(Ee){var X;gt==null||(X=gt.onVisibleChanged)===null||X===void 0||X.call(gt,Ee),le(Ee)}}),function(_e,Ee){var X=_e.className,he=_e.style,ke=x()(D,X,y);return s.createElement("div",{ref:Se(xe,f,Ee),className:ke,style:(0,$.Z)((0,$.Z)((0,$.Z)((0,$.Z)({"--arrow-x":"".concat(Ae.x||0,"px"),"--arrow-y":"".concat(Ae.y||0,"px")},m),te),he),{},{boxSizing:"border-box",zIndex:ln},j),onMouseEnter:Sn,onMouseLeave:Hn,onPointerEnter:tr,onClick:ye},Ie&&s.createElement(rs,{prefixCls:D,arrow:Ie,arrowPos:Ae,align:Mt}),s.createElement(oo,{cache:!be&&!Pe},Wn))})}))}),$s=Ns,Fs=s.forwardRef(function(o,f){var h=o.children,y=o.getTriggerDOMNode,D=Fe(h),j=s.useCallback(function(le){pt(f,y?y(le):le)},[y]),Z=vt(j,h.ref);return D?s.cloneElement(h,{ref:Z}):h}),Ps=Fs,Us=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function zs(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:de,f=s.forwardRef(function(h,y){var D=h.prefixCls,j=D===void 0?"rc-trigger-popup":D,Z=h.children,le=h.action,be=le===void 0?"hover":le,pe=h.showAction,Pe=h.hideAction,ye=h.popupVisible,Ue=h.defaultPopupVisible,Ie=h.onPopupVisibleChange,Ae=h.afterPopupVisibleChange,Mt=h.mouseEnterDelay,gt=h.mouseLeaveDelay,Ut=gt===void 0?.1:gt,wt=h.focusDelay,nt=h.blurDelay,Be=h.mask,bn=h.maskClosable,ln=bn===void 0?!0:bn,Sn=h.getPopupContainer,Hn=h.forceRender,tr=h.autoDestroy,Jt=h.destroyPopupOnHide,Ot=h.popup,Fn=h.popupClassName,nr=h.popupStyle,cn=h.popupPlacement,xt=h.builtinPlacements,qt=xt===void 0?{}:xt,_t=h.popupAlign,br=h.zIndex,nn=h.stretch,Wn=h.getPopupClassNameFromAlign,ui=h.fresh,Fr=h.alignPoint,jr=h.onPopupClick,ci=h.onPopupAlign,r=h.arrow,a=h.popupMotion,u=h.maskMotion,m=h.popupTransitionName,v=h.popupAnimation,A=h.maskTransitionName,R=h.maskAnimation,ee=h.className,J=h.getTriggerDOMNode,te=(0,c.Z)(h,Us),xe=tr||Jt||!1,_e=s.useState(!1),Ee=(0,G.Z)(_e,2),X=Ee[0],he=Ee[1];$n(function(){he(Er())},[]);var ke=s.useRef({}),Te=s.useContext(ai),Qe=s.useMemo(function(){return{registerSubPopup:function(Et,Mn){ke.current[Et]=Mn,Te==null||Te.registerSubPopup(Et,Mn)}}},[Te]),Me=yr(),Le=s.useState(null),ce=(0,G.Z)(Le,2),He=ce[0],at=ce[1],ct=Ft(function(ze){Ze(ze)&&He!==ze&&at(ze),Te==null||Te.registerSubPopup(Me,ze)}),Ye=s.useState(null),_n=(0,G.Z)(Ye,2),rt=_n[0],rn=_n[1],Kt=Ft(function(ze){Ze(ze)&&rt!==ze&&rn(ze)}),Nt=s.Children.only(Z),At=(Nt==null?void 0:Nt.props)||{},dt={},It=Ft(function(ze){var Et,Mn,mn=rt;return(mn==null?void 0:mn.contains(ze))||((Et=Ne(mn))===null||Et===void 0?void 0:Et.host)===ze||ze===mn||(He==null?void 0:He.contains(ze))||((Mn=Ne(He))===null||Mn===void 0?void 0:Mn.host)===ze||ze===He||Object.values(ke.current).some(function(xn){return(xn==null?void 0:xn.contains(ze))||ze===xn})}),Ke=ti(j,a,v,m),zt=ti(j,u,R,A),jt=s.useState(Ue||!1),In=(0,G.Z)(jt,2),fr=In[0],Lt=In[1],ft=ye!=null?ye:fr,Ln=Ft(function(ze){ye===void 0&&Lt(ze)});$n(function(){Lt(ye||!1)},[ye]);var Cn=s.useRef(ft);Cn.current=ft;var Pn=Ft(function(ze){(0,me.flushSync)(function(){ft!==ze&&(Ln(ze),Ie==null||Ie(ze))})}),Wt=s.useRef(),Gt=function(){clearTimeout(Wt.current)},an=function(Et){var Mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Gt(),Mn===0?Pn(Et):Wt.current=setTimeout(function(){Pn(Et)},Mn*1e3)};s.useEffect(function(){return Gt},[]);var Gn=s.useState(!1),Bn=(0,G.Z)(Gn,2),Xn=Bn[0],Qn=Bn[1];$n(function(ze){(!ze||ft)&&Qn(!0)},[ft]);var ar=s.useState(null),Ir=(0,G.Z)(ar,2),sn=Ir[0],Sr=Ir[1],ht=s.useState([0,0]),Zr=(0,G.Z)(ht,2),hr=Zr[0],Lr=Zr[1],sr=function(Et){Lr([Et.clientX,Et.clientY])},Yn=l(ft,He,Fr?hr:rt,cn,qt,_t,ci),mr=(0,G.Z)(Yn,11),Br=mr[0],wn=mr[1],di=mr[2],or=mr[3],Dn=mr[4],Dr=mr[5],Jn=mr[6],li=mr[7],kn=mr[8],Hr=mr[9],vr=mr[10],dn=qe(X,be,pe,Pe),yn=(0,G.Z)(dn,2),gr=yn[0],rr=yn[1],Qr=gr.has("click"),Wr=rr.has("click")||rr.has("contextMenu"),pr=Ft(function(){Xn||vr()}),fn=function(){Cn.current&&Fr&&Wr&&an(!1)};E(ft,rt,He,pr,fn),$n(function(){pr()},[hr,cn]),$n(function(){ft&&!(qt!=null&&qt[cn])&&pr()},[JSON.stringify(_t)]);var hn=s.useMemo(function(){var ze=ei(qt,j,Hr,Fr);return x()(ze,Wn==null?void 0:Wn(Hr))},[Hr,Wn,qt,j,Fr]);s.useImperativeHandle(y,function(){return{forceAlign:pr}});var En=s.useState(0),ni=(0,G.Z)(En,2),tt=ni[0],yt=ni[1],Tn=s.useState(0),Cr=(0,G.Z)(Tn,2),qn=Cr[0],Zi=Cr[1],ki=function(){if(nn&&rt){var Et=rt.getBoundingClientRect();yt(Et.width),Zi(Et.height)}},Si=function(){ki(),pr()},Ci=function(Et){Qn(!1),vr(),Ae==null||Ae(Et)},kr=function(){return new Promise(function(Et){ki(),Sr(function(){return Et})})};$n(function(){sn&&(vr(),sn(),Sr(null))},[sn]);function Vr(ze,Et,Mn,mn){dt[ze]=function(xn){var $i;mn==null||mn(xn),an(Et,Mn);for(var bi=arguments.length,Vi=new Array(bi>1?bi-1:0),pi=1;pi<bi;pi++)Vi[pi-1]=arguments[pi];($i=At[ze])===null||$i===void 0||$i.call.apply($i,[At,xn].concat(Vi))}}(Qr||Wr)&&(dt.onClick=function(ze){var Et;Cn.current&&Wr?an(!1):!Cn.current&&Qr&&(sr(ze),an(!0));for(var Mn=arguments.length,mn=new Array(Mn>1?Mn-1:0),xn=1;xn<Mn;xn++)mn[xn-1]=arguments[xn];(Et=At.onClick)===null||Et===void 0||Et.call.apply(Et,[At,ze].concat(mn))}),Sa(ft,Wr,rt,He,Be,ln,It,an);var ri=gr.has("hover"),_r=rr.has("hover"),Yr,vi;ri&&(Vr("onMouseEnter",!0,Mt,function(ze){sr(ze)}),Vr("onPointerEnter",!0,Mt,function(ze){sr(ze)}),Yr=function(){(ft||Xn)&&an(!0,Mt)},Fr&&(dt.onMouseMove=function(ze){var Et;(Et=At.onMouseMove)===null||Et===void 0||Et.call(At,ze)})),_r&&(Vr("onMouseLeave",!1,Ut),Vr("onPointerLeave",!1,Ut),vi=function(){an(!1,Ut)}),gr.has("focus")&&Vr("onFocus",!0,wt),rr.has("focus")&&Vr("onBlur",!1,nt),gr.has("contextMenu")&&(dt.onContextMenu=function(ze){var Et;Cn.current&&rr.has("contextMenu")?an(!1):(sr(ze),an(!0)),ze.preventDefault();for(var Mn=arguments.length,mn=new Array(Mn>1?Mn-1:0),xn=1;xn<Mn;xn++)mn[xn-1]=arguments[xn];(Et=At.onContextMenu)===null||Et===void 0||Et.call.apply(Et,[At,ze].concat(mn))}),ee&&(dt.className=x()(At.className,ee));var gi=(0,$.Z)((0,$.Z)({},At),dt),fi={},Ei=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ei.forEach(function(ze){te[ze]&&(fi[ze]=function(){for(var Et,Mn=arguments.length,mn=new Array(Mn),xn=0;xn<Mn;xn++)mn[xn]=arguments[xn];(Et=gi[ze])===null||Et===void 0||Et.call.apply(Et,[gi].concat(mn)),te[ze].apply(te,mn)})});var Hi=s.cloneElement(Nt,(0,$.Z)((0,$.Z)({},gi),fi)),wr={x:Dr,y:Jn},Ni=r?(0,$.Z)({},r!==!0?r:{}):null;return s.createElement(s.Fragment,null,s.createElement(ue.Z,{disabled:!ft,ref:Kt,onResize:Si},s.createElement(Ps,{getTriggerDOMNode:J},Hi)),s.createElement(ai.Provider,{value:Qe},s.createElement($s,{portal:o,ref:ct,prefixCls:j,popup:Ot,className:x()(Fn,hn),style:nr,target:rt,onMouseEnter:Yr,onMouseLeave:vi,onPointerEnter:Yr,zIndex:br,open:ft,keepDom:Xn,fresh:ui,onClick:jr,mask:Be,motion:Ke,maskMotion:zt,onVisibleChanged:Ci,onPrepare:kr,forceRender:Hn,autoDestroy:xe,getPopupContainer:Sn,align:Hr,arrow:Ni,arrowPos:wr,ready:Br,offsetX:wn,offsetY:di,offsetR:or,offsetB:Dn,onAlign:pr,stretch:nn,targetWidth:tt/li,targetHeight:qn/kn})))});return f}var js=zs(de),st={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(f){var h=f.keyCode;if(f.altKey&&!f.ctrlKey||f.metaKey||h>=st.F1&&h<=st.F12)return!1;switch(h){case st.ALT:case st.CAPS_LOCK:case st.CONTEXT_MENU:case st.CTRL:case st.DOWN:case st.END:case st.ESC:case st.HOME:case st.INSERT:case st.LEFT:case st.MAC_FF_META:case st.META:case st.NUMLOCK:case st.NUM_CENTER:case st.PAGE_DOWN:case st.PAGE_UP:case st.PAUSE:case st.PRINT_SCREEN:case st.RIGHT:case st.SHIFT:case st.UP:case st.WIN_KEY:case st.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(f){if(f>=st.ZERO&&f<=st.NINE||f>=st.NUM_ZERO&&f<=st.NUM_MULTIPLY||f>=st.A&&f<=st.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&f===0)return!0;switch(f){case st.SPACE:case st.QUESTION_MARK:case st.NUM_PLUS:case st.NUM_MINUS:case st.NUM_PERIOD:case st.NUM_DIVISION:case st.SEMICOLON:case st.DASH:case st.EQUALS:case st.COMMA:case st.PERIOD:case st.SLASH:case st.APOSTROPHE:case st.SINGLE_QUOTE:case st.OPEN_SQUARE_BRACKET:case st.BACKSLASH:case st.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},is=st,as=is.ESC,ss=is.TAB;function Zs(o){var f=o.visible,h=o.triggerRef,y=o.onVisibleChange,D=o.autoFocus,j=o.overlayRef,Z=s.useRef(!1),le=function(){if(f){var ye,Ue;(ye=h.current)===null||ye===void 0||(Ue=ye.focus)===null||Ue===void 0||Ue.call(ye),y==null||y(!1)}},be=function(){var ye;return(ye=j.current)!==null&&ye!==void 0&&ye.focus?(j.current.focus(),Z.current=!0,!0):!1},pe=function(ye){switch(ye.keyCode){case as:le();break;case ss:{var Ue=!1;Z.current||(Ue=be()),Ue?ye.preventDefault():le();break}}};s.useEffect(function(){return f?(window.addEventListener("keydown",pe),D&&Aa(be,3),function(){window.removeEventListener("keydown",pe),Z.current=!1}):function(){Z.current=!1}},[f])}var Hs=(0,s.forwardRef)(function(o,f){var h=o.overlay,y=o.arrow,D=o.prefixCls,j=(0,s.useMemo)(function(){var le;return typeof h=="function"?le=h():le=h,le},[h]),Z=K(f,j==null?void 0:j.ref);return s.createElement(s.Fragment,null,y&&s.createElement("div",{className:"".concat(D,"-arrow")}),s.cloneElement(j,{ref:$e(j)?Z:void 0}))}),Vs=Hs,Ji={adjustX:1,adjustY:1},ji=[0,0],la={topLeft:{points:["bl","tl"],overflow:Ji,offset:[0,-4],targetOffset:ji},top:{points:["bc","tc"],overflow:Ji,offset:[0,-4],targetOffset:ji},topRight:{points:["br","tr"],overflow:Ji,offset:[0,-4],targetOffset:ji},bottomLeft:{points:["tl","bl"],overflow:Ji,offset:[0,4],targetOffset:ji},bottom:{points:["tc","bc"],overflow:Ji,offset:[0,4],targetOffset:ji},bottomRight:{points:["tr","br"],overflow:Ji,offset:[0,4],targetOffset:ji}},Ma=la,ca=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function da(o,f){var h,y=o.arrow,D=y===void 0?!1:y,j=o.prefixCls,Z=j===void 0?"rc-dropdown":j,le=o.transitionName,be=o.animation,pe=o.align,Pe=o.placement,ye=Pe===void 0?"bottomLeft":Pe,Ue=o.placements,Ie=Ue===void 0?Ma:Ue,Ae=o.getPopupContainer,Mt=o.showAction,gt=o.hideAction,Ut=o.overlayClassName,wt=o.overlayStyle,nt=o.visible,Be=o.trigger,bn=Be===void 0?["hover"]:Be,ln=o.autoFocus,Sn=o.overlay,Hn=o.children,tr=o.onVisibleChange,Jt=(0,c.Z)(o,ca),Ot=s.useState(),Fn=(0,G.Z)(Ot,2),nr=Fn[0],cn=Fn[1],xt="visible"in o?nt:nr,qt=s.useRef(null),_t=s.useRef(null),br=s.useRef(null);s.useImperativeHandle(f,function(){return qt.current});var nn=function(m){cn(m),tr==null||tr(m)};Zs({visible:xt,triggerRef:br,onVisibleChange:nn,autoFocus:ln,overlayRef:_t});var Wn=function(m){var v=o.onOverlayClick;cn(!1),v&&v(m)},ui=function(){return s.createElement(Vs,{ref:_t,overlay:Sn,prefixCls:Z,arrow:D})},Fr=function(){return typeof Sn=="function"?ui:ui()},jr=function(){var m=o.minOverlayWidthMatchTrigger,v=o.alignPoint;return"minOverlayWidthMatchTrigger"in o?m:!v},ci=function(){var m=o.openClassName;return m!==void 0?m:"".concat(Z,"-open")},r=s.cloneElement(Hn,{className:x()((h=Hn.props)===null||h===void 0?void 0:h.className,xt&&ci()),ref:$e(Hn)?K(br,Hn.ref):void 0}),a=gt;return!a&&bn.indexOf("contextMenu")!==-1&&(a=["click"]),s.createElement(js,(0,S.Z)({builtinPlacements:Ie},Jt,{prefixCls:Z,ref:qt,popupClassName:x()(Ut,(0,ne.Z)({},"".concat(Z,"-show-arrow"),D)),popupStyle:wt,action:bn,showAction:Mt,hideAction:a,popupPlacement:ye,popupAlign:pe,popupTransitionName:le,popupAnimation:be,popupVisible:xt,stretch:jr()?"minWidth":"",popup:Fr(),onPopupVisibleChange:nn,onPopupClick:Wn,getPopupContainer:Ae}),r)}var os=s.forwardRef(da),us=os,ls=d(60276),cs=d(5663),qi=d(10366),Oi=d(80636),Ks=d(8745),Ws=d(96159),Gs=d(53124),Xs=d(68508),ds=d(76529),Qs=d(46605),Oa=d(66748);const uo=null,Na=o=>{const{menu:f,arrow:h,prefixCls:y,children:D,trigger:j,disabled:Z,dropdownRender:le,getPopupContainer:be,overlayClassName:pe,rootClassName:Pe,open:ye,onOpenChange:Ue,visible:Ie,onVisibleChange:Ae,mouseEnterDelay:Mt=.15,mouseLeaveDelay:gt=.1,autoAdjustOverflow:Ut=!0,placement:wt="",overlay:nt,transitionName:Be}=o,{getPopupContainer:bn,getPrefixCls:ln,direction:Sn}=s.useContext(Gs.E_),Hn=s.useMemo(()=>{const r=ln();return Be!==void 0?Be:wt.includes("top")?`${r}-slide-down`:`${r}-slide-up`},[ln,wt,Be]),tr=s.useMemo(()=>wt?wt.includes("Center")?wt.slice(0,wt.indexOf("Center")):wt:Sn==="rtl"?"bottomRight":"bottomLeft",[wt,Sn]),Jt=ln("dropdown",y),[Ot,Fn]=(0,Oa.Z)(Jt),[,nr]=(0,Qs.Z)(),cn=s.Children.only(D),xt=(0,Ws.Tm)(cn,{className:x()(`${Jt}-trigger`,{[`${Jt}-rtl`]:Sn==="rtl"},cn.props.className),disabled:Z}),qt=Z?[]:j;let _t;qt&&qt.includes("contextMenu")&&(_t=!0);const[br,nn]=(0,cs.Z)(!1,{value:ye!=null?ye:Ie}),Wn=(0,ls.useEvent)(r=>{Ue==null||Ue(r),Ae==null||Ae(r),nn(r)}),ui=x()(pe,Pe,Fn,{[`${Jt}-rtl`]:Sn==="rtl"}),Fr=(0,Oi.Z)({arrowPointAtCenter:typeof h=="object"&&h.pointAtCenter,autoAdjustOverflow:Ut,offset:nr.marginXXS,arrowWidth:h?nr.sizePopupArrow:0,borderRadius:nr.borderRadius}),jr=s.useCallback(()=>{nn(!1)},[]),ci=()=>{let r;return f!=null&&f.items?r=s.createElement(Xs.default,Object.assign({},f)):typeof nt=="function"?r=nt():r=nt,le&&(r=le(r)),r=s.Children.only(typeof r=="string"?s.createElement("span",null,r):r),s.createElement(ds.J,{prefixCls:`${Jt}-menu`,expandIcon:s.createElement("span",{className:`${Jt}-menu-submenu-arrow`},s.createElement(H.Z,{className:`${Jt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:jr,validator:a=>{let{mode:u}=a}},r)};return Ot(s.createElement(us,Object.assign({alignPoint:_t},(0,qi.Z)(o,["rootClassName"]),{mouseEnterDelay:Mt,mouseLeaveDelay:gt,visible:br,builtinPlacements:Fr,arrow:!!h,overlayClassName:ui,prefixCls:Jt,getPopupContainer:be||bn,transitionName:Hn,trigger:qt,overlay:ci,placement:tr,onVisibleChange:Wn}),xt))};function Ys(o){return Object.assign(Object.assign({},o),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Js=(0,Ks.Z)(Na,"dropdown",o=>o,Ys),qs=o=>s.createElement(Js,Object.assign({},o),s.createElement("span",null));Na._InternalPanelDoNotUseOrYouWillBeFired=qs;var fs=Na},85418:function($t,Re,d){"use strict";d.d(Re,{Z:function(){return Oe}});var s=d(56153),k=d(94184),H=d.n(k),V=d(67294),x=d(25877),S=d(71577),ne=d(53124),G=d(93421),c=d(4173),$=d(66748),me=function(oe,L){var C={};for(var O in oe)Object.prototype.hasOwnProperty.call(oe,O)&&L.indexOf(O)<0&&(C[O]=oe[O]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var T=0,O=Object.getOwnPropertySymbols(oe);T<O.length;T++)L.indexOf(O[T])<0&&Object.prototype.propertyIsEnumerable.call(oe,O[T])&&(C[O[T]]=oe[O[T]]);return C};const Y=oe=>{const{getPopupContainer:L,getPrefixCls:C,direction:O}=V.useContext(ne.E_),{prefixCls:T,type:z="default",danger:w,disabled:P,loading:ie,onClick:K,htmlType:ge,children:$e,className:ot,menu:bt,arrow:Bt,autoFocus:Dt,overlay:St,trigger:Ht,align:q,open:gn,onOpenChange:Xt,placement:De,getPopupContainer:Vt,href:Ct,icon:mt=V.createElement(x.Z,null),title:Xe,buttonsRender:it=g=>g,mouseEnterDelay:On,mouseLeaveDelay:Qt,overlayClassName:Un,overlayStyle:en,destroyPopupOnHide:zn,dropdownRender:on}=oe,tn=me(oe,["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"]),er=C("dropdown",T),pn=`${er}-button`,[ut,W]=(0,$.Z)(er),_={menu:bt,arrow:Bt,autoFocus:Dt,align:q,disabled:P,trigger:P?[]:Ht,onOpenChange:Xt,getPopupContainer:Vt||L,mouseEnterDelay:On,mouseLeaveDelay:Qt,overlayClassName:Un,overlayStyle:en,destroyPopupOnHide:zn,dropdownRender:on},{compactSize:p,compactItemClassnames:I}=(0,c.ri)(er,O),N=H()(pn,I,ot,W);"overlay"in oe&&(_.overlay=St),"open"in oe&&(_.open=gn),"placement"in oe?_.placement=De:_.placement=O==="rtl"?"bottomLeft":"bottomRight";const Q=V.createElement(S.ZP,{type:z,danger:w,disabled:P,loading:ie,onClick:K,htmlType:ge,href:Ct,title:Xe},$e),b=V.createElement(S.ZP,{type:z,danger:w,icon:mt}),[M,F]=it([Q,b]);return ut(V.createElement(G.Z.Compact,Object.assign({className:N,size:p,block:!0},tn),M,V.createElement(s.Z,Object.assign({},_),F)))};Y.__ANT_BUTTON=!0;var U=Y;const re=s.Z;re.Button=U;var Oe=re},66748:function($t,Re,d){"use strict";d.d(Re,{Z:function(){return me}});var s=d(14747),k=d(67771),H=d(33297),V=d(50438),x=d(97414),S=d(67968),ne=d(45503),c=Y=>{const{componentCls:U,menuCls:re,colorError:Oe,colorTextLightSolid:oe}=Y,L=`${re}-item`;return{[`${U}, ${U}-menu-submenu`]:{[`${re} ${L}`]:{[`&${L}-danger:not(${L}-disabled)`]:{color:Oe,"&:hover":{color:oe,backgroundColor:Oe}}}}}};const $=Y=>{const{componentCls:U,menuCls:re,zIndexPopup:Oe,dropdownArrowDistance:oe,sizePopupArrow:L,antCls:C,iconCls:O,motionDurationMid:T,dropdownPaddingVertical:z,fontSize:w,dropdownEdgeChildPadding:P,colorTextDisabled:ie,fontSizeIcon:K,controlPaddingHorizontal:ge,colorBgElevated:$e}=Y;return[{[U]:Object.assign(Object.assign({},(0,s.Wf)(Y)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Oe,display:"block","&::before":{position:"absolute",insetBlock:-oe+L/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${C}-btn`]:{[`& > ${O}-down, & > ${C}-btn-icon > ${O}-down`]:{fontSize:K}},[`${U}-wrap`]:{position:"relative",[`${C}-btn > ${O}-down`]:{fontSize:K},[`${O}-down::before`]:{transition:`transform ${T}`}},[`${U}-wrap-open`]:{[`${O}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${C}-slide-down-enter${C}-slide-down-enter-active${U}-placement-bottomLeft,
|
|
&${C}-slide-down-appear${C}-slide-down-appear-active${U}-placement-bottomLeft,
|
|
&${C}-slide-down-enter${C}-slide-down-enter-active${U}-placement-bottom,
|
|
&${C}-slide-down-appear${C}-slide-down-appear-active${U}-placement-bottom,
|
|
&${C}-slide-down-enter${C}-slide-down-enter-active${U}-placement-bottomRight,
|
|
&${C}-slide-down-appear${C}-slide-down-appear-active${U}-placement-bottomRight`]:{animationName:k.fJ},[`&${C}-slide-up-enter${C}-slide-up-enter-active${U}-placement-topLeft,
|
|
&${C}-slide-up-appear${C}-slide-up-appear-active${U}-placement-topLeft,
|
|
&${C}-slide-up-enter${C}-slide-up-enter-active${U}-placement-top,
|
|
&${C}-slide-up-appear${C}-slide-up-appear-active${U}-placement-top,
|
|
&${C}-slide-up-enter${C}-slide-up-enter-active${U}-placement-topRight,
|
|
&${C}-slide-up-appear${C}-slide-up-appear-active${U}-placement-topRight`]:{animationName:k.Qt},[`&${C}-slide-down-leave${C}-slide-down-leave-active${U}-placement-bottomLeft,
|
|
&${C}-slide-down-leave${C}-slide-down-leave-active${U}-placement-bottom,
|
|
&${C}-slide-down-leave${C}-slide-down-leave-active${U}-placement-bottomRight`]:{animationName:k.Uw},[`&${C}-slide-up-leave${C}-slide-up-leave-active${U}-placement-topLeft,
|
|
&${C}-slide-up-leave${C}-slide-up-leave-active${U}-placement-top,
|
|
&${C}-slide-up-leave${C}-slide-up-leave-active${U}-placement-topRight`]:{animationName:k.ly}})},(0,x.ZP)(Y,{colorBg:$e,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${U} ${re}`]:{position:"relative",margin:0},[`${re}-submenu-popup`]:{position:"absolute",zIndex:Oe,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${U}, ${U}-menu-submenu`]:{[re]:Object.assign(Object.assign({padding:P,listStyleType:"none",backgroundColor:$e,backgroundClip:"padding-box",borderRadius:Y.borderRadiusLG,outline:"none",boxShadow:Y.boxShadowSecondary},(0,s.Qy)(Y)),{[`${re}-item-group-title`]:{padding:`${z}px ${ge}px`,color:Y.colorTextDescription,transition:`all ${T}`},[`${re}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${re}-item-icon`]:{minWidth:w,marginInlineEnd:Y.marginXS,fontSize:Y.fontSizeSM},[`${re}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${T}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${re}-item, ${re}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${z}px ${ge}px`,color:Y.colorText,fontWeight:"normal",fontSize:w,lineHeight:Y.lineHeight,cursor:"pointer",transition:`all ${T}`,borderRadius:Y.borderRadiusSM,"&:hover, &-active":{backgroundColor:Y.controlItemBgHover}},(0,s.Qy)(Y)),{"&-selected":{color:Y.colorPrimary,backgroundColor:Y.controlItemBgActive,"&:hover, &-active":{backgroundColor:Y.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:$e,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Y.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Y.colorSplit},[`${U}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Y.paddingXS,[`${U}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Y.colorTextDescription,fontSize:K,fontStyle:"normal"}}}),[`${re}-item-group-list`]:{margin:`0 ${Y.marginXS}px`,padding:0,listStyle:"none"},[`${re}-submenu-title`]:{paddingInlineEnd:ge+Y.fontSizeSM},[`${re}-submenu-vertical`]:{position:"relative"},[`${re}-submenu${re}-submenu-disabled ${U}-menu-submenu-title`]:{[`&, ${U}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:$e,cursor:"not-allowed"}},[`${re}-submenu-selected ${U}-menu-submenu-title`]:{color:Y.colorPrimary}})}},[(0,k.oN)(Y,"slide-up"),(0,k.oN)(Y,"slide-down"),(0,H.Fm)(Y,"move-up"),(0,H.Fm)(Y,"move-down"),(0,V._y)(Y,"zoom-big")]]};var me=(0,S.Z)("Dropdown",(Y,U)=>{let{rootPrefixCls:re}=U;const{marginXXS:Oe,sizePopupArrow:oe,controlHeight:L,fontSize:C,lineHeight:O,paddingXXS:T,componentCls:z,borderRadiusLG:w}=Y,P=(L-C*O)/2,{dropdownArrowOffset:ie}=(0,x.fS)({contentRadius:w}),K=(0,ne.TS)(Y,{menuCls:`${z}-menu`,rootPrefixCls:re,dropdownArrowDistance:oe/2+Oe,dropdownArrowOffset:ie,dropdownPaddingVertical:P,dropdownEdgeChildPadding:T});return[$(K),c(K)]},Y=>({zIndexPopup:Y.zIndexPopupBase+50}))},71322:function($t,Re,d){"use strict";d.d(Re,{D:function(){return O},Z:function(){return w}});var s=d(87462),k=d(67294),H={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"},V=H,x=d(74643),S=function(ie,K){return k.createElement(x.Z,(0,s.Z)({},ie,{ref:K,icon:V}))},ne=k.forwardRef(S),G=d(22751),c=d(91034),$=d(94184),me=d.n($),Y=d(10366),re=P=>!isNaN(parseFloat(P))&&isFinite(P),Oe=d(53124),oe=d(84321),L=function(P,ie){var K={};for(var ge in P)Object.prototype.hasOwnProperty.call(P,ge)&&ie.indexOf(ge)<0&&(K[ge]=P[ge]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,ge=Object.getOwnPropertySymbols(P);$e<ge.length;$e++)ie.indexOf(ge[$e])<0&&Object.prototype.propertyIsEnumerable.call(P,ge[$e])&&(K[ge[$e]]=P[ge[$e]]);return K};const C={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},O=k.createContext({}),T=(()=>{let P=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return P+=1,`${ie}${P}`}})();var w=k.forwardRef((P,ie)=>{const{prefixCls:K,className:ge,trigger:$e,children:ot,defaultCollapsed:bt=!1,theme:Bt="dark",style:Dt={},collapsible:St=!1,reverseArrow:Ht=!1,width:q=200,collapsedWidth:gn=80,zeroWidthTriggerStyle:Xt,breakpoint:De,onCollapse:Vt,onBreakpoint:Ct}=P,mt=L(P,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Xe}=(0,k.useContext)(oe.Gs),[it,On]=(0,k.useState)("collapsed"in P?P.collapsed:bt),[Qt,Un]=(0,k.useState)(!1);(0,k.useEffect)(()=>{"collapsed"in P&&On(P.collapsed)},[P.collapsed]);const en=(ut,W)=>{"collapsed"in P||On(ut),Vt==null||Vt(ut,W)},zn=(0,k.useRef)();zn.current=ut=>{Un(ut.matches),Ct==null||Ct(ut.matches),it!==ut.matches&&en(ut.matches,"responsive")},(0,k.useEffect)(()=>{function ut(_){return zn.current(_)}let W;if(typeof window!="undefined"){const{matchMedia:_}=window;if(_&&De&&De in C){W=_(`(max-width: ${C[De]})`);try{W.addEventListener("change",ut)}catch(p){W.addListener(ut)}ut(W)}}return()=>{try{W==null||W.removeEventListener("change",ut)}catch(_){W==null||W.removeListener(ut)}}},[De]),(0,k.useEffect)(()=>{const ut=T("ant-sider-");return Xe.addSider(ut),()=>Xe.removeSider(ut)},[]);const on=()=>{en(!it,"clickTrigger")},{getPrefixCls:tn}=(0,k.useContext)(Oe.E_),er=()=>{const ut=tn("layout-sider",K),W=(0,Y.Z)(mt,["collapsed"]),_=it?gn:q,p=re(_)?`${_}px`:String(_),I=parseFloat(String(gn||0))===0?k.createElement("span",{onClick:on,className:me()(`${ut}-zero-width-trigger`,`${ut}-zero-width-trigger-${Ht?"right":"left"}`),style:Xt},$e||k.createElement(ne,null)):null,b={expanded:Ht?k.createElement(c.Z,null):k.createElement(G.Z,null),collapsed:Ht?k.createElement(G.Z,null):k.createElement(c.Z,null)}[it?"collapsed":"expanded"],M=$e!==null?I||k.createElement("div",{className:`${ut}-trigger`,onClick:on,style:{width:p}},$e||b):null,F=Object.assign(Object.assign({},Dt),{flex:`0 0 ${p}`,maxWidth:p,minWidth:p,width:p}),g=me()(ut,`${ut}-${Bt}`,{[`${ut}-collapsed`]:!!it,[`${ut}-has-trigger`]:St&&$e!==null&&!I,[`${ut}-below`]:!!Qt,[`${ut}-zero-width`]:parseFloat(p)===0},ge);return k.createElement("aside",Object.assign({className:g},W,{style:F,ref:ie}),k.createElement("div",{className:`${ut}-children`},ot),St||Qt&&I?M:null)},pn=k.useMemo(()=>({siderCollapsed:it}),[it]);return k.createElement(O.Provider,{value:pn},er())})},84321:function($t,Re,d){"use strict";d.d(Re,{VY:function(){return T},$_:function(){return O},h4:function(){return C},Gs:function(){return U},ZP:function(){return z}});var s=d(74902),k=d(94184),H=d.n(k),V=d(10366),x=d(67294),S=d(53124),ne=d(67968),c=w=>{const{componentCls:P,bodyBg:ie,lightSiderBg:K,lightTriggerBg:ge,lightTriggerColor:$e}=w;return{[`${P}-sider-light`]:{background:K,[`${P}-sider-trigger`]:{color:$e,background:ge},[`${P}-sider-zero-width-trigger`]:{color:$e,background:ge,border:`1px solid ${ie}`,borderInlineStart:0}}}};const $=w=>{const{antCls:P,componentCls:ie,colorText:K,triggerColor:ge,footerBg:$e,triggerBg:ot,headerHeight:bt,headerPadding:Bt,headerColor:Dt,footerPadding:St,triggerHeight:Ht,zeroTriggerHeight:q,zeroTriggerWidth:gn,motionDurationMid:Xt,motionDurationSlow:De,fontSize:Vt,borderRadius:Ct,bodyBg:mt,headerBg:Xe,siderBg:it}=w;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:mt,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:it,transition:`all ${Xt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${P}-menu${P}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ht},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ht,color:ge,lineHeight:`${Ht}px`,textAlign:"center",background:ot,cursor:"pointer",transition:`all ${Xt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:bt,insetInlineEnd:-gn,zIndex:1,width:gn,height:q,color:ge,fontSize:w.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:it,borderStartStartRadius:0,borderStartEndRadius:Ct,borderEndEndRadius:Ct,borderEndStartRadius:0,cursor:"pointer",transition:`background ${De} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${De}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-gn,borderStartStartRadius:Ct,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ct}}}}},c(w)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:bt,padding:Bt,color:Dt,lineHeight:`${bt}px`,background:Xe,[`${P}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:St,color:K,fontSize:Vt,background:$e},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var me=(0,ne.Z)("Layout",w=>[$(w)],w=>{const{colorBgLayout:P,controlHeight:ie,controlHeightLG:K,colorText:ge,controlHeightSM:$e,marginXXS:ot,colorTextLightSolid:bt,colorBgContainer:Bt}=w,Dt=K*1.25;return{colorBgHeader:"#001529",colorBgBody:P,colorBgTrigger:"#002140",bodyBg:P,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${Dt}px`,headerColor:ge,footerPadding:`${$e}px ${Dt}px`,footerBg:P,siderBg:"#001529",triggerHeight:K+ot*2,triggerBg:"#002140",triggerColor:bt,zeroTriggerWidth:K,zeroTriggerHeight:K,lightSiderBg:Bt,lightTriggerBg:Bt,lightTriggerColor:ge}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Y=function(w,P){var ie={};for(var K in w)Object.prototype.hasOwnProperty.call(w,K)&&P.indexOf(K)<0&&(ie[K]=w[K]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,K=Object.getOwnPropertySymbols(w);ge<K.length;ge++)P.indexOf(K[ge])<0&&Object.prototype.propertyIsEnumerable.call(w,K[ge])&&(ie[K[ge]]=w[K[ge]]);return ie};const U=x.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function re(w){let{suffixCls:P,tagName:ie,displayName:K}=w;return ge=>x.forwardRef((ot,bt)=>x.createElement(ge,Object.assign({ref:bt,suffixCls:P,tagName:ie},ot)))}const Oe=x.forwardRef((w,P)=>{const{prefixCls:ie,suffixCls:K,className:ge,tagName:$e}=w,ot=Y(w,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:bt}=x.useContext(S.E_),Bt=bt("layout",ie),[Dt,St]=me(Bt),Ht=K?`${Bt}-${K}`:Bt;return Dt(x.createElement($e,Object.assign({className:H()(ie||Ht,ge,St),ref:P},ot)))}),oe=x.forwardRef((w,P)=>{const{direction:ie}=x.useContext(S.E_),[K,ge]=x.useState([]),{prefixCls:$e,className:ot,rootClassName:bt,children:Bt,hasSider:Dt,tagName:St,style:Ht}=w,q=Y(w,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),gn=(0,V.Z)(q,["suffixCls"]),{getPrefixCls:Xt,layout:De}=x.useContext(S.E_),Vt=Xt("layout",$e),[Ct,mt]=me(Vt),Xe=H()(Vt,{[`${Vt}-has-sider`]:typeof Dt=="boolean"?Dt:K.length>0,[`${Vt}-rtl`]:ie==="rtl"},De==null?void 0:De.className,ot,bt,mt),it=x.useMemo(()=>({siderHook:{addSider:On=>{ge(Qt=>[].concat((0,s.Z)(Qt),[On]))},removeSider:On=>{ge(Qt=>Qt.filter(Un=>Un!==On))}}}),[]);return Ct(x.createElement(U.Provider,{value:it},x.createElement(St,Object.assign({ref:P,className:Xe,style:Object.assign(Object.assign({},De==null?void 0:De.style),Ht)},gn),Bt)))}),L=re({tagName:"div",displayName:"Layout"})(oe),C=re({suffixCls:"header",tagName:"header",displayName:"Header"})(Oe),O=re({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Oe),T=re({suffixCls:"content",tagName:"main",displayName:"Content"})(Oe);var z=L},76529:function($t,Re,d){"use strict";d.d(Re,{J:function(){return S}});var s=d(67294),k=d(4173),H=d(60276),V=function(ne,G){var c={};for(var $ in ne)Object.prototype.hasOwnProperty.call(ne,$)&&G.indexOf($)<0&&(c[$]=ne[$]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,$=Object.getOwnPropertySymbols(ne);me<$.length;me++)G.indexOf($[me])<0&&Object.prototype.propertyIsEnumerable.call(ne,$[me])&&(c[$[me]]=ne[$[me]]);return c};const x=s.createContext(null),S=s.forwardRef((ne,G)=>{const{children:c}=ne,$=V(ne,["children"]),me=s.useContext(x),Y=s.useMemo(()=>Object.assign(Object.assign({},me),$),[me,$.prefixCls,$.mode,$.selectable]);return s.createElement(x.Provider,{value:Y},s.createElement(k.BR,null,(0,H.supportNodeRef)(c)?s.cloneElement(c,{ref:G}):c))});Re.Z=x},68508:function($t,Re,d){"use strict";d.d(Re,{default:function(){return ut}});var s=d(52073),k=d(67294),H=d(71322),V=d(94184),x=d.n(V),S=d(53124),ne=function(W,_){var p={};for(var I in W)Object.prototype.hasOwnProperty.call(W,I)&&_.indexOf(I)<0&&(p[I]=W[I]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,I=Object.getOwnPropertySymbols(W);N<I.length;N++)_.indexOf(I[N])<0&&Object.prototype.propertyIsEnumerable.call(W,I[N])&&(p[I[N]]=W[I[N]]);return p},c=W=>{const{prefixCls:_,className:p,dashed:I}=W,N=ne(W,["prefixCls","className","dashed"]),{getPrefixCls:Q}=k.useContext(S.E_),b=Q("menu",_),M=x()({[`${b}-item-divider-dashed`]:!!I},p);return k.createElement(s.iz,Object.assign({className:M},N))},$=d(37419),me=d(10366),Y=d(83062),U=d(96159),Oe=(0,k.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),L=W=>{var _;const{className:p,children:I,icon:N,title:Q,danger:b}=W,{prefixCls:M,firstLevel:F,direction:g,disableMenuItemTitleTooltip:de,inlineCollapsed:ue}=k.useContext(Oe),Ze=Zt=>{const An=k.createElement("span",{className:`${M}-title-content`},I);return(!N||(0,U.l$)(I)&&I.type==="span")&&I&&Zt&&F&&typeof I=="string"?k.createElement("div",{className:`${M}-inline-collapsed-noicon`},I.charAt(0)):An},{siderCollapsed:lt}=k.useContext(H.D);let kt=Q;typeof Q=="undefined"?kt=F?I:"":Q===!1&&(kt="");const Je={title:kt};!lt&&!ue&&(Je.title=null,Je.open=!1);const Ne=(0,$.Z)(I).length;let Ft=k.createElement(s.ck,Object.assign({},(0,me.Z)(W,["title","icon","danger"]),{className:x()({[`${M}-item-danger`]:b,[`${M}-item-only-child`]:(N?Ne+1:Ne)===1},p),title:typeof Q=="string"?Q:void 0}),(0,U.Tm)(N,{className:x()((0,U.l$)(N)?(_=N.props)===null||_===void 0?void 0:_.className:"",`${M}-item-icon`)}),Ze(ue));return de||(Ft=k.createElement(Y.Z,Object.assign({},Je,{placement:g==="rtl"?"left":"right",overlayClassName:`${M}-inline-collapsed-tooltip`}),Ft)),Ft},O=W=>{var _;const{popupClassName:p,icon:I,title:N,theme:Q}=W,b=k.useContext(Oe),{prefixCls:M,inlineCollapsed:F,theme:g}=b,de=(0,s.Xl)();let ue;if(!I)ue=F&&!de.length&&N&&typeof N=="string"?k.createElement("div",{className:`${M}-inline-collapsed-noicon`},N.charAt(0)):k.createElement("span",{className:`${M}-title-content`},N);else{const lt=(0,U.l$)(N)&&N.type==="span";ue=k.createElement(k.Fragment,null,(0,U.Tm)(I,{className:x()((0,U.l$)(I)?(_=I.props)===null||_===void 0?void 0:_.className:"",`${M}-item-icon`)}),lt?N:k.createElement("span",{className:`${M}-title-content`},N))}const Ze=k.useMemo(()=>Object.assign(Object.assign({},b),{firstLevel:!1}),[b]);return k.createElement(Oe.Provider,{value:Ze},k.createElement(s.Wd,Object.assign({},(0,me.Z)(W,["icon"]),{title:ue,popupClassName:x()(M,p,`${M}-${Q||g}`)})))},T=d(25877),z=d(60276),w=d(33603),P=d(76529),ie=function(W,_){var p={};for(var I in W)Object.prototype.hasOwnProperty.call(W,I)&&_.indexOf(I)<0&&(p[I]=W[I]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,I=Object.getOwnPropertySymbols(W);N<I.length;N++)_.indexOf(I[N])<0&&Object.prototype.propertyIsEnumerable.call(W,I[N])&&(p[I[N]]=W[I[N]]);return p};function K(W){return(W||[]).map((_,p)=>{if(_&&typeof _=="object"){const I=_,{label:N,children:Q,key:b,type:M}=I,F=ie(I,["label","children","key","type"]),g=b!=null?b:`tmp-${p}`;return Q||M==="group"?M==="group"?k.createElement(s.BW,Object.assign({key:g},F,{title:N}),K(Q)):k.createElement(O,Object.assign({key:g},F,{title:N}),K(Q)):M==="divider"?k.createElement(c,Object.assign({key:g},F)):k.createElement(L,Object.assign({key:g},F),N)}return null}).filter(_=>_)}function ge(W){return k.useMemo(()=>W&&K(W),[W])}var $e=d(84780),ot=d(14747),bt=d(33507),Bt=d(67771),Dt=d(50438),St=d(67968),Ht=d(45503),gn=W=>{const{componentCls:_,motionDurationSlow:p,horizontalLineHeight:I,colorSplit:N,lineWidth:Q,lineType:b,itemPaddingInline:M}=W;return{[`${_}-horizontal`]:{lineHeight:I,border:0,borderBottom:`${Q}px ${b} ${N}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${_}-item, ${_}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:M},[`> ${_}-item:hover,
|
|
> ${_}-item-active,
|
|
> ${_}-submenu ${_}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${_}-item, ${_}-submenu-title`]:{transition:[`border-color ${p}`,`background ${p}`].join(",")},[`${_}-submenu-arrow`]:{display:"none"}}}},De=W=>{let{componentCls:_,menuArrowOffset:p}=W;return{[`${_}-rtl`]:{direction:"rtl"},[`${_}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${_}-rtl${_}-vertical,
|
|
${_}-submenu-rtl ${_}-vertical`]:{[`${_}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${p})`},"&::after":{transform:`rotate(45deg) translateY(${p})`}}}}};const Vt=W=>Object.assign({},(0,ot.oN)(W));var mt=(W,_)=>{const{componentCls:p,itemColor:I,itemSelectedColor:N,groupTitleColor:Q,itemBg:b,subMenuItemBg:M,itemSelectedBg:F,activeBarHeight:g,activeBarWidth:de,activeBarBorderWidth:ue,motionDurationSlow:Ze,motionEaseInOut:lt,motionEaseOut:kt,itemPaddingInline:Je,motionDurationMid:Ne,itemHoverColor:Ft,lineType:Zt,colorSplit:An,itemDisabledColor:ae,dangerItemColor:Pr,dangerItemHoverColor:yr,dangerItemSelectedColor:Or,dangerItemActiveBg:Nn,dangerItemSelectedBg:jn,itemHoverBg:Kr,itemActiveBg:$n,menuSubMenuBg:Er,horizontalItemSelectedColor:qr,horizontalItemSelectedBg:ai,horizontalItemBorderRadius:Ur,horizontalItemHoverBg:qe,popupBg:un}=W;return{[`${p}-${_}, ${p}-${_} > ${p}`]:{color:I,background:b,[`&${p}-root:focus-visible`]:Object.assign({},Vt(W)),[`${p}-item-group-title`]:{color:Q},[`${p}-submenu-selected`]:{[`> ${p}-submenu-title`]:{color:N}},[`${p}-item-disabled, ${p}-submenu-disabled`]:{color:`${ae} !important`},[`${p}-item:not(${p}-item-selected):not(${p}-submenu-selected)`]:{[`&:hover, > ${p}-submenu-title:hover`]:{color:Ft}},[`&:not(${p}-horizontal)`]:{[`${p}-item:not(${p}-item-selected)`]:{"&:hover":{backgroundColor:Kr},"&:active":{backgroundColor:$n}},[`${p}-submenu-title`]:{"&:hover":{backgroundColor:Kr},"&:active":{backgroundColor:$n}}},[`${p}-item-danger`]:{color:Pr,[`&${p}-item:hover`]:{[`&:not(${p}-item-selected):not(${p}-submenu-selected)`]:{color:yr}},[`&${p}-item:active`]:{background:Nn}},[`${p}-item a`]:{"&, &:hover":{color:"inherit"}},[`${p}-item-selected`]:{color:N,[`&${p}-item-danger`]:{color:Or},"a, a:hover":{color:"inherit"}},[`& ${p}-item-selected`]:{backgroundColor:F,[`&${p}-item-danger`]:{backgroundColor:jn}},[`${p}-item, ${p}-submenu-title`]:{[`&:not(${p}-item-disabled):focus-visible`]:Object.assign({},Vt(W))},[`&${p}-submenu > ${p}`]:{backgroundColor:Er},[`&${p}-popup > ${p}`]:{backgroundColor:un},[`&${p}-horizontal`]:Object.assign(Object.assign({},_==="dark"?{borderBottom:0}:{}),{[`> ${p}-item, > ${p}-submenu`]:{top:ue,marginTop:-ue,marginBottom:0,borderRadius:Ur,"&::after":{position:"absolute",insetInline:Je,bottom:0,borderBottom:`${g}px solid transparent`,transition:`border-color ${Ze} ${lt}`,content:'""'},"&:hover, &-active, &-open":{background:qe,"&::after":{borderBottomWidth:g,borderBottomColor:qr}},"&-selected":{color:qr,backgroundColor:ai,"&:hover":{backgroundColor:ai},"&::after":{borderBottomWidth:g,borderBottomColor:qr}}}}),[`&${p}-root`]:{[`&${p}-inline, &${p}-vertical`]:{borderInlineEnd:`${ue}px ${Zt} ${An}`}},[`&${p}-inline`]:{[`${p}-sub${p}-inline`]:{background:M},[`${p}-item, ${p}-submenu-title`]:ue&&de?{width:`calc(100% + ${ue}px)`}:{},[`${p}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${de}px solid ${N}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ne} ${kt}`,`opacity ${Ne} ${kt}`].join(","),content:'""'},[`&${p}-item-danger`]:{"&::after":{borderInlineEndColor:Or}}},[`${p}-selected, ${p}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ne} ${lt}`,`opacity ${Ne} ${lt}`].join(",")}}}}}};const Xe=W=>{const{componentCls:_,itemHeight:p,itemMarginInline:I,padding:N,menuArrowSize:Q,marginXS:b,itemMarginBlock:M}=W,F=N+Q+b;return{[`${_}-item`]:{position:"relative",overflow:"hidden"},[`${_}-item, ${_}-submenu-title`]:{height:p,lineHeight:`${p}px`,paddingInline:N,overflow:"hidden",textOverflow:"ellipsis",marginInline:I,marginBlock:M,width:`calc(100% - ${I*2}px)`},[`> ${_}-item,
|
|
> ${_}-submenu > ${_}-submenu-title`]:{height:p,lineHeight:`${p}px`},[`${_}-item-group-list ${_}-submenu-title,
|
|
${_}-submenu-title`]:{paddingInlineEnd:F}}};var On=W=>{const{componentCls:_,iconCls:p,itemHeight:I,colorTextLightSolid:N,dropdownWidth:Q,controlHeightLG:b,motionDurationMid:M,motionEaseOut:F,paddingXL:g,itemMarginInline:de,fontSizeLG:ue,motionDurationSlow:Ze,paddingXS:lt,boxShadowSecondary:kt,collapsedWidth:Je,collapsedIconSize:Ne}=W,Ft={height:I,lineHeight:`${I}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[_]:{"&-inline, &-vertical":Object.assign({[`&${_}-root`]:{boxShadow:"none"}},Xe(W))},[`${_}-submenu-popup`]:{[`${_}-vertical`]:Object.assign(Object.assign({},Xe(W)),{boxShadow:kt})}},{[`${_}-submenu-popup ${_}-vertical${_}-sub`]:{minWidth:Q,maxHeight:`calc(100vh - ${b*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${_}-inline`]:{width:"100%",[`&${_}-root`]:{[`${_}-item, ${_}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ze}`,`background ${Ze}`,`padding ${M} ${F}`].join(","),[`> ${_}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${_}-sub${_}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${_}-submenu > ${_}-submenu-title`]:Ft,[`& ${_}-item-group-title`]:{paddingInlineStart:g}},[`${_}-item`]:Ft}},{[`${_}-inline-collapsed`]:{width:Je,[`&${_}-root`]:{[`${_}-item, ${_}-submenu ${_}-submenu-title`]:{[`> ${_}-inline-collapsed-noicon`]:{fontSize:ue,textAlign:"center"}}},[`> ${_}-item,
|
|
> ${_}-item-group > ${_}-item-group-list > ${_}-item,
|
|
> ${_}-item-group > ${_}-item-group-list > ${_}-submenu > ${_}-submenu-title,
|
|
> ${_}-submenu > ${_}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ue/2}px - ${de}px)`,textOverflow:"clip",[`
|
|
${_}-submenu-arrow,
|
|
${_}-submenu-expand-icon
|
|
`]:{opacity:0},[`${_}-item-icon, ${p}`]:{margin:0,fontSize:Ne,lineHeight:`${I}px`,"+ span":{display:"inline-block",opacity:0}}},[`${_}-item-icon, ${p}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${_}-item-icon, ${p}`]:{display:"none"},"a, a:hover":{color:N}},[`${_}-item-group-title`]:Object.assign(Object.assign({},ot.vS),{paddingInline:lt})}}]};const Qt=W=>{const{componentCls:_,motionDurationSlow:p,motionDurationMid:I,motionEaseInOut:N,motionEaseOut:Q,iconCls:b,iconSize:M,iconMarginInlineEnd:F}=W;return{[`${_}-item, ${_}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${p}`,`background ${p}`,`padding ${p} ${N}`].join(","),[`${_}-item-icon, ${b}`]:{minWidth:M,fontSize:M,transition:[`font-size ${I} ${Q}`,`margin ${p} ${N}`,`color ${p}`].join(","),"+ span":{marginInlineStart:F,opacity:1,transition:[`opacity ${p} ${N}`,`margin ${p}`,`color ${p}`].join(",")}},[`${_}-item-icon`]:Object.assign({},(0,ot.Ro)()),[`&${_}-item-only-child`]:{[`> ${b}, > ${_}-item-icon`]:{marginInlineEnd:0}}},[`${_}-item-disabled, ${_}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${_}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Un=W=>{const{componentCls:_,motionDurationSlow:p,motionEaseInOut:I,borderRadius:N,menuArrowSize:Q,menuArrowOffset:b}=W;return{[`${_}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:W.margin,width:Q,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${p} ${I}, opacity ${p}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Q*.6,height:Q*.15,backgroundColor:"currentcolor",borderRadius:N,transition:[`background ${p} ${I}`,`transform ${p} ${I}`,`top ${p} ${I}`,`color ${p} ${I}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${b})`},"&::after":{transform:`rotate(-45deg) translateY(${b})`}}}}},en=W=>{const{antCls:_,componentCls:p,fontSize:I,motionDurationSlow:N,motionDurationMid:Q,motionEaseInOut:b,paddingXS:M,padding:F,colorSplit:g,lineWidth:de,zIndexPopup:ue,borderRadiusLG:Ze,subMenuItemBorderRadius:lt,menuArrowSize:kt,menuArrowOffset:Je,lineType:Ne,menuPanelMaskInset:Ft,groupTitleLineHeight:Zt,groupTitleFontSize:An}=W;return[{"":{[`${p}`]:Object.assign(Object.assign({},(0,ot.dF)()),{"&-hidden":{display:"none"}})},[`${p}-submenu-hidden`]:{display:"none"}},{[p]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ot.Wf)(W)),(0,ot.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:I,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${N} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${p}-item`]:{flex:"none"}},[`${p}-item, ${p}-submenu, ${p}-submenu-title`]:{borderRadius:W.itemBorderRadius},[`${p}-item-group-title`]:{padding:`${M}px ${F}px`,fontSize:An,lineHeight:Zt,transition:`all ${N}`},[`&-horizontal ${p}-submenu`]:{transition:[`border-color ${N} ${b}`,`background ${N} ${b}`].join(",")},[`${p}-submenu, ${p}-submenu-inline`]:{transition:[`border-color ${N} ${b}`,`background ${N} ${b}`,`padding ${Q} ${b}`].join(",")},[`${p}-submenu ${p}-sub`]:{cursor:"initial",transition:[`background ${N} ${b}`,`padding ${N} ${b}`].join(",")},[`${p}-title-content`]:{transition:`color ${N}`},[`${p}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${p}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:g,borderStyle:Ne,borderWidth:0,borderTopWidth:de,marginBlock:de,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Qt(W)),{[`${p}-item-group`]:{[`${p}-item-group-list`]:{margin:0,padding:0,[`${p}-item, ${p}-submenu-title`]:{paddingInline:`${I*2}px ${F}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ue,borderRadius:Ze,boxShadow:"none",transformOrigin:"0 0",[`&${p}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ft}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ft},"\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:W.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:W.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:W.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:W.paddingXS},[`> ${p}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ze},Qt(W)),Un(W)),{[`${p}-item, ${p}-submenu > ${p}-submenu-title`]:{borderRadius:lt},[`${p}-submenu-title::after`]:{transition:`transform ${N} ${b}`}})}}),Un(W)),{[`&-inline-collapsed ${p}-submenu-arrow,
|
|
&-inline ${p}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Je})`},"&::after":{transform:`rotate(45deg) translateX(-${Je})`}},[`${p}-submenu-open${p}-submenu-inline > ${p}-submenu-title > ${p}-submenu-arrow`]:{transform:`translateY(-${kt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Je})`},"&::before":{transform:`rotate(45deg) translateX(${Je})`}}})},{[`${_}-layout-header`]:{[p]:{lineHeight:"inherit"}}}]};var zn=(W,_)=>(0,St.Z)("Menu",I=>{if(_===!1)return[];const{colorBgElevated:N,colorPrimary:Q,colorTextLightSolid:b,controlHeightLG:M,fontSize:F,darkItemColor:g,darkDangerItemColor:de,darkItemBg:ue,darkSubMenuItemBg:Ze,darkItemSelectedColor:lt,darkItemSelectedBg:kt,darkDangerItemSelectedBg:Je,darkItemHoverBg:Ne,darkGroupTitleColor:Ft,darkItemHoverColor:Zt,darkItemDisabledColor:An,darkDangerItemHoverColor:ae,darkDangerItemSelectedColor:Pr,darkDangerItemActiveBg:yr}=I,Or=F/7*5,Nn=(0,Ht.TS)(I,{menuArrowSize:Or,menuHorizontalHeight:M*1.15,menuArrowOffset:`${Or*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:N}),jn=(0,Ht.TS)(Nn,{itemColor:g,itemHoverColor:Zt,groupTitleColor:Ft,itemSelectedColor:lt,itemBg:ue,popupBg:ue,subMenuItemBg:Ze,itemActiveBg:"transparent",itemSelectedBg:kt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ne,itemDisabledColor:An,dangerItemColor:de,dangerItemHoverColor:ae,dangerItemSelectedColor:Pr,dangerItemActiveBg:yr,dangerItemSelectedBg:Je,menuSubMenuBg:Ze,horizontalItemSelectedColor:b,horizontalItemSelectedBg:Q});return[en(Nn),gn(Nn),On(Nn),mt(Nn,"light"),mt(jn,"dark"),De(Nn),(0,bt.Z)(Nn),(0,Bt.oN)(Nn,"slide-up"),(0,Bt.oN)(Nn,"slide-down"),(0,Dt._y)(Nn,"zoom-big")]},I=>{const{colorPrimary:N,colorError:Q,colorTextDisabled:b,colorErrorBg:M,colorText:F,colorTextDescription:g,colorBgContainer:de,colorFillAlter:ue,colorFillContent:Ze,lineWidth:lt,lineWidthBold:kt,controlItemBgActive:Je,colorBgTextHover:Ne,controlHeightLG:Ft,lineHeight:Zt,colorBgElevated:An,marginXXS:ae,padding:Pr,fontSize:yr,controlHeightSM:Or,fontSizeLG:Nn,colorTextLightSolid:jn,colorErrorHover:Kr}=I,$n=new $e.C(jn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:I.zIndexPopupBase+50,radiusItem:I.borderRadiusLG,itemBorderRadius:I.borderRadiusLG,radiusSubMenuItem:I.borderRadiusSM,subMenuItemBorderRadius:I.borderRadiusSM,colorItemText:F,itemColor:F,colorItemTextHover:F,itemHoverColor:F,colorItemTextHoverHorizontal:N,horizontalItemHoverColor:N,colorGroupTitle:g,groupTitleColor:g,colorItemTextSelected:N,itemSelectedColor:N,colorItemTextSelectedHorizontal:N,horizontalItemSelectedColor:N,colorItemBg:de,itemBg:de,colorItemBgHover:Ne,itemHoverBg:Ne,colorItemBgActive:Ze,itemActiveBg:Je,colorSubItemBg:ue,subMenuItemBg:ue,colorItemBgSelected:Je,itemSelectedBg:Je,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:kt,activeBarHeight:kt,colorActiveBarBorderSize:lt,activeBarBorderWidth:lt,colorItemTextDisabled:b,itemDisabledColor:b,colorDangerItemText:Q,dangerItemColor:Q,colorDangerItemTextHover:Q,dangerItemHoverColor:Q,colorDangerItemTextSelected:Q,dangerItemSelectedColor:Q,colorDangerItemBgActive:M,dangerItemActiveBg:M,colorDangerItemBgSelected:M,dangerItemSelectedBg:M,itemMarginInline:I.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ft,groupTitleLineHeight:Zt,collapsedWidth:Ft*2,popupBg:An,itemMarginBlock:ae,itemPaddingInline:Pr,horizontalLineHeight:`${Ft*1.15}px`,iconSize:yr,iconMarginInlineEnd:Or-yr,collapsedIconSize:Nn,groupTitleFontSize:yr,darkItemDisabledColor:new $e.C(jn).setAlpha(.25).toRgbString(),darkItemColor:$n,darkDangerItemColor:Q,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:jn,darkItemSelectedBg:N,darkDangerItemSelectedBg:Q,darkItemHoverBg:"transparent",darkGroupTitleColor:$n,darkItemHoverColor:jn,darkDangerItemHoverColor:Kr,darkDangerItemSelectedColor:jn,darkDangerItemActiveBg:Q}},{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"]]})(W),on=function(W,_){var p={};for(var I in W)Object.prototype.hasOwnProperty.call(W,I)&&_.indexOf(I)<0&&(p[I]=W[I]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,I=Object.getOwnPropertySymbols(W);N<I.length;N++)_.indexOf(I[N])<0&&Object.prototype.propertyIsEnumerable.call(W,I[N])&&(p[I[N]]=W[I[N]]);return p},er=(0,k.forwardRef)((W,_)=>{var p,I;const N=k.useContext(P.Z),Q=N||{},{getPrefixCls:b,getPopupContainer:M,direction:F,menu:g}=k.useContext(S.E_),de=b(),{prefixCls:ue,className:Ze,style:lt,theme:kt="light",expandIcon:Je,_internalDisableMenuItemTitleTooltip:Ne,inlineCollapsed:Ft,siderCollapsed:Zt,items:An,children:ae,rootClassName:Pr,mode:yr,selectable:Or,onClick:Nn,overflowedIndicatorPopupClassName:jn}=W,Kr=on(W,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),$n=(0,me.Z)(Kr,["collapsedWidth"]),Er=ge(An)||ae;(p=Q.validator)===null||p===void 0||p.call(Q,{mode:yr});const qr=(0,z.useEvent)(function(){var Tt;Nn==null||Nn.apply(void 0,arguments),(Tt=Q.onClick)===null||Tt===void 0||Tt.call(Q)}),ai=Q.mode||yr,Ur=Or!=null?Or:Q.selectable,qe=k.useMemo(()=>Zt!==void 0?Zt:Ft,[Ft,Zt]),un={horizontal:{motionName:`${de}-slide-up`},inline:(0,w.Z)(de),other:{motionName:`${de}-zoom-big`}},Zn=b("menu",ue||Q.prefixCls),[ei,ti]=zn(Zn,!N),zr=x()(`${Zn}-${kt}`,g==null?void 0:g.className,Ze);let ur;if(typeof Je=="function")ur=Je;else if(Je===null||Je===!1)ur=null;else if(Q.expandIcon===null||Q.expandIcon===!1)ur=null;else{const Tt=Je!=null?Je:Q.expandIcon;ur=(0,U.Tm)(Tt,{className:x()(`${Zn}-submenu-expand-icon`,(0,U.l$)(Tt)?(I=Tt.props)===null||I===void 0?void 0:I.className:"")})}const Nr=k.useMemo(()=>({prefixCls:Zn,inlineCollapsed:qe||!1,direction:F,firstLevel:!0,theme:kt,mode:ai,disableMenuItemTitleTooltip:Ne}),[Zn,qe,F,Ne,kt]);return ei(k.createElement(P.Z.Provider,{value:null},k.createElement(Oe.Provider,{value:Nr},k.createElement(s.ZP,Object.assign({getPopupContainer:M,overflowedIndicator:k.createElement(T.Z,null),overflowedIndicatorPopupClassName:x()(Zn,`${Zn}-${kt}`,jn),mode:ai,selectable:Ur,onClick:qr},$n,{inlineCollapsed:qe,style:Object.assign(Object.assign({},g==null?void 0:g.style),lt),className:zr,prefixCls:Zn,direction:F,defaultMotions:un,expandIcon:ur,ref:_,rootClassName:x()(Pr,ti)}),Er))))});const pn=(0,k.forwardRef)((W,_)=>{const p=(0,k.useRef)(null),I=k.useContext(H.D);return(0,k.useImperativeHandle)(_,()=>({menu:p.current,focus:N=>{var Q;(Q=p.current)===null||Q===void 0||Q.focus(N)}})),k.createElement(er,Object.assign({ref:p},W,I))});pn.Item=L,pn.SubMenu=O,pn.Divider=c,pn.ItemGroup=s.BW;var ut=pn},46303:function($t,Re,d){"use strict";d.d(Re,{Z:function(){return W}});var s=d(94184),k=d.n(s),H=d(67294),V=d(53124),x=d(10366),ne=_=>{const{prefixCls:p,className:I,style:N,size:Q,shape:b}=_,M=k()({[`${p}-lg`]:Q==="large",[`${p}-sm`]:Q==="small"}),F=k()({[`${p}-circle`]:b==="circle",[`${p}-square`]:b==="square",[`${p}-round`]:b==="round"}),g=H.useMemo(()=>typeof Q=="number"?{width:Q,height:Q,lineHeight:`${Q}px`}:{},[Q]);return H.createElement("span",{className:k()(p,M,F,I),style:Object.assign(Object.assign({},g),N)})},G=d(45930),c=d(67968),$=d(45503);const me=new G.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Y=_=>({height:_,lineHeight:`${_}px`}),U=_=>Object.assign({width:_},Y(_)),re=_=>({background:_.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:me,animationDuration:_.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Oe=_=>Object.assign({width:_*5,minWidth:_*5},Y(_)),oe=_=>{const{skeletonAvatarCls:p,gradientFromColor:I,controlHeight:N,controlHeightLG:Q,controlHeightSM:b}=_;return{[`${p}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:I},U(N)),[`${p}${p}-circle`]:{borderRadius:"50%"},[`${p}${p}-lg`]:Object.assign({},U(Q)),[`${p}${p}-sm`]:Object.assign({},U(b))}},L=_=>{const{controlHeight:p,borderRadiusSM:I,skeletonInputCls:N,controlHeightLG:Q,controlHeightSM:b,gradientFromColor:M}=_;return{[`${N}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:M,borderRadius:I},Oe(p)),[`${N}-lg`]:Object.assign({},Oe(Q)),[`${N}-sm`]:Object.assign({},Oe(b))}},C=_=>Object.assign({width:_},Y(_)),O=_=>{const{skeletonImageCls:p,imageSizeBase:I,gradientFromColor:N,borderRadiusSM:Q}=_;return{[`${p}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:N,borderRadius:Q},C(I*2)),{[`${p}-path`]:{fill:"#bfbfbf"},[`${p}-svg`]:Object.assign(Object.assign({},C(I)),{maxWidth:I*4,maxHeight:I*4}),[`${p}-svg${p}-svg-circle`]:{borderRadius:"50%"}}),[`${p}${p}-circle`]:{borderRadius:"50%"}}},T=(_,p,I)=>{const{skeletonButtonCls:N}=_;return{[`${I}${N}-circle`]:{width:p,minWidth:p,borderRadius:"50%"},[`${I}${N}-round`]:{borderRadius:p}}},z=_=>Object.assign({width:_*2,minWidth:_*2},Y(_)),w=_=>{const{borderRadiusSM:p,skeletonButtonCls:I,controlHeight:N,controlHeightLG:Q,controlHeightSM:b,gradientFromColor:M}=_;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${I}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:M,borderRadius:p,width:N*2,minWidth:N*2},z(N))},T(_,N,I)),{[`${I}-lg`]:Object.assign({},z(Q))}),T(_,Q,`${I}-lg`)),{[`${I}-sm`]:Object.assign({},z(b))}),T(_,b,`${I}-sm`))},P=_=>{const{componentCls:p,skeletonAvatarCls:I,skeletonTitleCls:N,skeletonParagraphCls:Q,skeletonButtonCls:b,skeletonInputCls:M,skeletonImageCls:F,controlHeight:g,controlHeightLG:de,controlHeightSM:ue,gradientFromColor:Ze,padding:lt,marginSM:kt,borderRadius:Je,titleHeight:Ne,blockRadius:Ft,paragraphLiHeight:Zt,controlHeightXS:An,paragraphMarginTop:ae}=_;return{[`${p}`]:{display:"table",width:"100%",[`${p}-header`]:{display:"table-cell",paddingInlineEnd:lt,verticalAlign:"top",[`${I}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ze},U(g)),[`${I}-circle`]:{borderRadius:"50%"},[`${I}-lg`]:Object.assign({},U(de)),[`${I}-sm`]:Object.assign({},U(ue))},[`${p}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${N}`]:{width:"100%",height:Ne,background:Ze,borderRadius:Ft,[`+ ${Q}`]:{marginBlockStart:ue}},[`${Q}`]:{padding:0,"> li":{width:"100%",height:Zt,listStyle:"none",background:Ze,borderRadius:Ft,"+ li":{marginBlockStart:An}}},[`${Q}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${p}-content`]:{[`${N}, ${Q} > li`]:{borderRadius:Je}}},[`${p}-with-avatar ${p}-content`]:{[`${N}`]:{marginBlockStart:kt,[`+ ${Q}`]:{marginBlockStart:ae}}},[`${p}${p}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},w(_)),oe(_)),L(_)),O(_)),[`${p}${p}-block`]:{width:"100%",[`${b}`]:{width:"100%"},[`${M}`]:{width:"100%"}},[`${p}${p}-active`]:{[`
|
|
${N},
|
|
${Q} > li,
|
|
${I},
|
|
${b},
|
|
${M},
|
|
${F}
|
|
`]:Object.assign({},re(_))}}};var ie=(0,c.Z)("Skeleton",_=>{const{componentCls:p}=_,I=(0,$.TS)(_,{skeletonAvatarCls:`${p}-avatar`,skeletonTitleCls:`${p}-title`,skeletonParagraphCls:`${p}-paragraph`,skeletonButtonCls:`${p}-button`,skeletonInputCls:`${p}-input`,skeletonImageCls:`${p}-image`,imageSizeBase:_.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${_.gradientFromColor} 25%, ${_.gradientToColor} 37%, ${_.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[P(I)]},_=>{const{colorFillContent:p,colorFill:I}=_,N=p,Q=I;return{color:N,colorGradientEnd:Q,gradientFromColor:N,gradientToColor:Q,titleHeight:_.controlHeight/2,blockRadius:_.borderRadiusSM,paragraphMarginTop:_.marginLG+_.marginXXS,paragraphLiHeight:_.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ge=_=>{const{prefixCls:p,className:I,rootClassName:N,active:Q,shape:b="circle",size:M="default"}=_,{getPrefixCls:F}=H.useContext(V.E_),g=F("skeleton",p),[de,ue]=ie(g),Ze=(0,x.Z)(_,["prefixCls","className"]),lt=k()(g,`${g}-element`,{[`${g}-active`]:Q},I,N,ue);return de(H.createElement("div",{className:lt},H.createElement(ne,Object.assign({prefixCls:`${g}-avatar`,shape:b,size:M},Ze))))},ot=_=>{const{prefixCls:p,className:I,rootClassName:N,active:Q,block:b=!1,size:M="default"}=_,{getPrefixCls:F}=H.useContext(V.E_),g=F("skeleton",p),[de,ue]=ie(g),Ze=(0,x.Z)(_,["prefixCls"]),lt=k()(g,`${g}-element`,{[`${g}-active`]:Q,[`${g}-block`]:b},I,N,ue);return de(H.createElement("div",{className:lt},H.createElement(ne,Object.assign({prefixCls:`${g}-button`,size:M},Ze))))};const bt="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 Dt=_=>{const{prefixCls:p,className:I,rootClassName:N,style:Q,active:b}=_,{getPrefixCls:M}=H.useContext(V.E_),F=M("skeleton",p),[g,de]=ie(F),ue=k()(F,`${F}-element`,{[`${F}-active`]:b},I,N,de);return g(H.createElement("div",{className:ue},H.createElement("div",{className:k()(`${F}-image`,I),style:Q},H.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${F}-image-svg`},H.createElement("path",{d:bt,className:`${F}-image-path`})))))},Ht=_=>{const{prefixCls:p,className:I,rootClassName:N,active:Q,block:b,size:M="default"}=_,{getPrefixCls:F}=H.useContext(V.E_),g=F("skeleton",p),[de,ue]=ie(g),Ze=(0,x.Z)(_,["prefixCls"]),lt=k()(g,`${g}-element`,{[`${g}-active`]:Q,[`${g}-block`]:b},I,N,ue);return de(H.createElement("div",{className:lt},H.createElement(ne,Object.assign({prefixCls:`${g}-input`,size:M},Ze))))},q=d(87462),gn={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"},Xt=gn,De=d(74643),Vt=function(p,I){return H.createElement(De.Z,(0,q.Z)({},p,{ref:I,icon:Xt}))},Ct=H.forwardRef(Vt),Xe=_=>{const{prefixCls:p,className:I,rootClassName:N,style:Q,active:b,children:M}=_,{getPrefixCls:F}=H.useContext(V.E_),g=F("skeleton",p),[de,ue]=ie(g),Ze=k()(g,`${g}-element`,{[`${g}-active`]:b},ue,I,N),lt=M!=null?M:H.createElement(Ct,null);return de(H.createElement("div",{className:Ze},H.createElement("div",{className:k()(`${g}-image`,I),style:Q},lt)))},it=d(74902),Qt=_=>{const p=F=>{const{width:g,rows:de=2}=_;if(Array.isArray(g))return g[F];if(de-1===F)return g},{prefixCls:I,className:N,style:Q,rows:b}=_,M=(0,it.Z)(Array(b)).map((F,g)=>H.createElement("li",{key:g,style:{width:p(g)}}));return H.createElement("ul",{className:k()(I,N),style:Q},M)},en=_=>{let{prefixCls:p,className:I,width:N,style:Q}=_;return H.createElement("h3",{className:k()(p,I),style:Object.assign({width:N},Q)})};function zn(_){return _&&typeof _=="object"?_:{}}function on(_,p){return _&&!p?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function tn(_,p){return!_&&p?{width:"38%"}:_&&p?{width:"50%"}:{}}function er(_,p){const I={};return(!_||!p)&&(I.width="61%"),!_&&p?I.rows=3:I.rows=2,I}const pn=_=>{const{prefixCls:p,loading:I,className:N,rootClassName:Q,style:b,children:M,avatar:F=!1,title:g=!0,paragraph:de=!0,active:ue,round:Ze}=_,{getPrefixCls:lt,direction:kt,skeleton:Je}=H.useContext(V.E_),Ne=lt("skeleton",p),[Ft,Zt]=ie(Ne);if(I||!("loading"in _)){const An=!!F,ae=!!g,Pr=!!de;let yr;if(An){const jn=Object.assign(Object.assign({prefixCls:`${Ne}-avatar`},on(ae,Pr)),zn(F));yr=H.createElement("div",{className:`${Ne}-header`},H.createElement(ne,Object.assign({},jn)))}let Or;if(ae||Pr){let jn;if(ae){const $n=Object.assign(Object.assign({prefixCls:`${Ne}-title`},tn(An,Pr)),zn(g));jn=H.createElement(en,Object.assign({},$n))}let Kr;if(Pr){const $n=Object.assign(Object.assign({prefixCls:`${Ne}-paragraph`},er(An,ae)),zn(de));Kr=H.createElement(Qt,Object.assign({},$n))}Or=H.createElement("div",{className:`${Ne}-content`},jn,Kr)}const Nn=k()(Ne,{[`${Ne}-with-avatar`]:An,[`${Ne}-active`]:ue,[`${Ne}-rtl`]:kt==="rtl",[`${Ne}-round`]:Ze},Je==null?void 0:Je.className,N,Q,Zt);return Ft(H.createElement("div",{className:Nn,style:Object.assign(Object.assign({},Je==null?void 0:Je.style),b)},yr,Or))}return typeof M!="undefined"?M:null};pn.Button=ot,pn.Avatar=ge,pn.Input=Ht,pn.Image=Dt,pn.Node=Xe;var ut=pn,W=ut},93421:function($t,Re,d){"use strict";d.d(Re,{Z:function(){return L}});var s=d(67294),k=d(94184),H=d.n(k),V=d(37419),x=d(53124),S=d(4173);const ne=s.createContext({latestIndex:0}),G=ne.Provider;var $=C=>{let{className:O,index:T,children:z,split:w,style:P}=C;const{latestIndex:ie}=s.useContext(ne);return z==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:O,style:P},z),T<ie&&w&&s.createElement("span",{className:`${O}-split`},w))},me=d(51916);function Y(C){return["small","middle","large"].includes(C)}function U(C){return C?typeof C=="number"&&!Number.isNaN(C):!1}var re=function(C,O){var T={};for(var z in C)Object.prototype.hasOwnProperty.call(C,z)&&O.indexOf(z)<0&&(T[z]=C[z]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,z=Object.getOwnPropertySymbols(C);w<z.length;w++)O.indexOf(z[w])<0&&Object.prototype.propertyIsEnumerable.call(C,z[w])&&(T[z[w]]=C[z[w]]);return T};const oe=s.forwardRef((C,O)=>{var T,z;const{getPrefixCls:w,space:P,direction:ie}=s.useContext(x.E_),{size:K=(P==null?void 0:P.size)||"small",align:ge,className:$e,rootClassName:ot,children:bt,direction:Bt="horizontal",prefixCls:Dt,split:St,style:Ht,wrap:q=!1,classNames:gn,styles:Xt}=C,De=re(C,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Vt,Ct]=Array.isArray(K)?K:[K,K],mt=Y(Ct),Xe=Y(Vt),it=U(Ct),On=U(Vt),Qt=(0,V.Z)(bt,{keepEmpty:!0}),Un=ge===void 0&&Bt==="horizontal"?"center":ge,en=w("space",Dt),[zn,on]=(0,me.Z)(en),tn=H()(en,P==null?void 0:P.className,on,`${en}-${Bt}`,{[`${en}-rtl`]:ie==="rtl",[`${en}-align-${Un}`]:Un,[`${en}-gap-row-${Ct}`]:mt,[`${en}-gap-col-${Vt}`]:Xe},$e,ot),er=H()(`${en}-item`,(T=gn==null?void 0:gn.item)!==null&&T!==void 0?T:(z=P==null?void 0:P.classNames)===null||z===void 0?void 0:z.item);let pn=0;const ut=Qt.map((p,I)=>{var N,Q;p!=null&&(pn=I);const b=p&&p.key||`${er}-${I}`;return s.createElement($,{className:er,key:b,index:I,split:St,style:(N=Xt==null?void 0:Xt.item)!==null&&N!==void 0?N:(Q=P==null?void 0:P.styles)===null||Q===void 0?void 0:Q.item},p)}),W=s.useMemo(()=>({latestIndex:pn}),[pn]);if(Qt.length===0)return null;const _={};return q&&(_.flexWrap="wrap"),!Xe&&On&&(_.columnGap=Vt),!mt&&it&&(_.rowGap=Ct),zn(s.createElement("div",Object.assign({ref:O,className:tn,style:Object.assign(Object.assign(Object.assign({},_),P==null?void 0:P.style),Ht)},De),s.createElement(G,{value:W},ut)))});oe.Compact=S.ZP;var L=oe},33507:function($t,Re){"use strict";const d=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`}}});Re.Z=d},33297:function($t,Re,d){"use strict";d.d(Re,{Fm:function(){return Y}});var s=d(45930),k=d(93590);const H=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}}),V=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}}),x=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}}),S=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}}),ne=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}}),G=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}}),c=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}}),$=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}}),me={"move-up":{inKeyframes:c,outKeyframes:$},"move-down":{inKeyframes:H,outKeyframes:V},"move-left":{inKeyframes:x,outKeyframes:S},"move-right":{inKeyframes:ne,outKeyframes:G}},Y=(U,re)=>{const{antCls:Oe}=U,oe=`${Oe}-${re}`,{inKeyframes:L,outKeyframes:C}=me[re];return[(0,k.R)(oe,L,C,U.motionDurationMid),{[`
|
|
${oe}-enter,
|
|
${oe}-appear
|
|
`]:{opacity:0,animationTimingFunction:U.motionEaseOutCirc},[`${oe}-leave`]:{animationTimingFunction:U.motionEaseInOutCirc}}]}},67771:function($t,Re,d){"use strict";d.d(Re,{Qt:function(){return x},Uw:function(){return V},fJ:function(){return H},ly:function(){return S},oN:function(){return Y}});var s=d(45930),k=d(93590);const H=new s.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),V=new s.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),x=new s.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),S=new s.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ne=new s.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),G=new s.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),c=new s.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),$=new s.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),me={"slide-up":{inKeyframes:H,outKeyframes:V},"slide-down":{inKeyframes:x,outKeyframes:S},"slide-left":{inKeyframes:ne,outKeyframes:G},"slide-right":{inKeyframes:c,outKeyframes:$}},Y=(U,re)=>{const{antCls:Oe}=U,oe=`${Oe}-${re}`,{inKeyframes:L,outKeyframes:C}=me[re];return[(0,k.R)(oe,L,C,U.motionDurationMid),{[`
|
|
${oe}-enter,
|
|
${oe}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:U.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${oe}-leave`]:{animationTimingFunction:U.motionEaseInQuint}}]}},62661:function($t,Re){"use strict";var d;var s=Symbol.for("react.element"),k=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),ne=Symbol.for("react.context"),G=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),re=Symbol.for("react.offscreen"),Oe;Oe=Symbol.for("react.module.reference");function oe(L){if(typeof L=="object"&&L!==null){var C=L.$$typeof;switch(C){case s:switch(L=L.type,L){case H:case x:case V:case $:case me:return L;default:switch(L=L&&L.$$typeof,L){case G:case ne:case c:case U:case Y:case S:return L;default:return C}}case k:return C}}}d=ne,d=S,d=s,d=c,d=H,d=U,d=Y,d=k,d=x,d=V,d=$,d=me,d=function(){return!1},d=function(){return!1},d=function(L){return oe(L)===ne},d=function(L){return oe(L)===S},d=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===s},d=function(L){return oe(L)===c},d=function(L){return oe(L)===H},d=function(L){return oe(L)===U},Re.isMemo=function(L){return oe(L)===Y},d=function(L){return oe(L)===k},d=function(L){return oe(L)===x},d=function(L){return oe(L)===V},d=function(L){return oe(L)===$},d=function(L){return oe(L)===me},d=function(L){return typeof L=="string"||typeof L=="function"||L===H||L===x||L===V||L===$||L===me||L===re||typeof L=="object"&&L!==null&&(L.$$typeof===U||L.$$typeof===Y||L.$$typeof===S||L.$$typeof===ne||L.$$typeof===c||L.$$typeof===Oe||L.getModuleId!==void 0)},d=oe},95845:function($t,Re,d){"use strict";$t.exports=d(62661)},72665:function($t,Re){"use strict";var d;var s=typeof Symbol=="function"&&Symbol.for,k=s?Symbol.for("react.element"):60103,H=s?Symbol.for("react.portal"):60106,V=s?Symbol.for("react.fragment"):60107,x=s?Symbol.for("react.strict_mode"):60108,S=s?Symbol.for("react.profiler"):60114,ne=s?Symbol.for("react.provider"):60109,G=s?Symbol.for("react.context"):60110,c=s?Symbol.for("react.async_mode"):60111,$=s?Symbol.for("react.concurrent_mode"):60111,me=s?Symbol.for("react.forward_ref"):60112,Y=s?Symbol.for("react.suspense"):60113,U=s?Symbol.for("react.suspense_list"):60120,re=s?Symbol.for("react.memo"):60115,Oe=s?Symbol.for("react.lazy"):60116,oe=s?Symbol.for("react.block"):60121,L=s?Symbol.for("react.fundamental"):60117,C=s?Symbol.for("react.responder"):60118,O=s?Symbol.for("react.scope"):60119;function T(w){if(typeof w=="object"&&w!==null){var P=w.$$typeof;switch(P){case k:switch(w=w.type,w){case c:case $:case V:case S:case x:case Y:return w;default:switch(w=w&&w.$$typeof,w){case G:case me:case Oe:case re:case ne:return w;default:return P}}case H:return P}}}function z(w){return T(w)===$}d=c,d=$,d=G,d=ne,d=k,d=me,d=V,d=Oe,d=re,d=H,d=S,d=x,d=Y,d=function(w){return z(w)||T(w)===c},d=z,d=function(w){return T(w)===G},d=function(w){return T(w)===ne},d=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===k},d=function(w){return T(w)===me},d=function(w){return T(w)===V},d=function(w){return T(w)===Oe},Re.isMemo=function(w){return T(w)===re},d=function(w){return T(w)===H},d=function(w){return T(w)===S},d=function(w){return T(w)===x},d=function(w){return T(w)===Y},d=function(w){return typeof w=="string"||typeof w=="function"||w===V||w===$||w===S||w===x||w===Y||w===U||typeof w=="object"&&w!==null&&(w.$$typeof===Oe||w.$$typeof===re||w.$$typeof===ne||w.$$typeof===G||w.$$typeof===me||w.$$typeof===L||w.$$typeof===C||w.$$typeof===O||w.$$typeof===oe)},d=T},12060:function($t,Re,d){"use strict";$t.exports=d(72665)},82702:function($t,Re,d){var s=d(34155);(function(k,H){$t.exports=H()})(this,function(){"use strict";function k(b){var M=typeof b;return b!==null&&(M==="object"||M==="function")}function H(b){return typeof b=="function"}var V=void 0;Array.isArray?V=Array.isArray:V=function(b){return Object.prototype.toString.call(b)==="[object Array]"};var x=V,S=0,ne=void 0,G=void 0,c=function(M,F){w[S]=M,w[S+1]=F,S+=2,S===2&&(G?G(P):K())};function $(b){G=b}function me(b){c=b}var Y=typeof window!="undefined"?window:void 0,U=Y||{},re=U.MutationObserver||U.WebKitMutationObserver,Oe=typeof self=="undefined"&&typeof s!="undefined"&&{}.toString.call(s)==="[object process]",oe=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function L(){return function(){return s.nextTick(P)}}function C(){return typeof ne!="undefined"?function(){ne(P)}:z()}function O(){var b=0,M=new re(P),F=document.createTextNode("");return M.observe(F,{characterData:!0}),function(){F.data=b=++b%2}}function T(){var b=new MessageChannel;return b.port1.onmessage=P,function(){return b.port2.postMessage(0)}}function z(){var b=setTimeout;return function(){return b(P,1)}}var w=new Array(1e3);function P(){for(var b=0;b<S;b+=2){var M=w[b],F=w[b+1];M(F),w[b]=void 0,w[b+1]=void 0}S=0}function ie(){try{var b=Function("return this")().require("vertx");return ne=b.runOnLoop||b.runOnContext,C()}catch(M){return z()}}var K=void 0;Oe?K=L():re?K=O():oe?K=T():Y===void 0?K=ie():K=z();function ge(b,M){var F=this,g=new this.constructor(bt);g[ot]===void 0&&tn(g);var de=F._state;if(de){var ue=arguments[de-1];c(function(){return Un(de,g,ue,F._result)})}else On(F,g,b,M);return g}function $e(b){var M=this;if(b&&typeof b=="object"&&b.constructor===M)return b;var F=new M(bt);return Ct(F,b),F}var ot=Math.random().toString(36).substring(2);function bt(){}var Bt=void 0,Dt=1,St=2;function Ht(){return new TypeError("You cannot resolve a promise with itself")}function q(){return new TypeError("A promises callback cannot return that same promise.")}function gn(b,M,F,g){try{b.call(M,F,g)}catch(de){return de}}function Xt(b,M,F){c(function(g){var de=!1,ue=gn(F,M,function(Ze){de||(de=!0,M!==Ze?Ct(g,Ze):Xe(g,Ze))},function(Ze){de||(de=!0,it(g,Ze))},"Settle: "+(g._label||" unknown promise"));!de&&ue&&(de=!0,it(g,ue))},b)}function De(b,M){M._state===Dt?Xe(b,M._result):M._state===St?it(b,M._result):On(M,void 0,function(F){return Ct(b,F)},function(F){return it(b,F)})}function Vt(b,M,F){M.constructor===b.constructor&&F===ge&&M.constructor.resolve===$e?De(b,M):F===void 0?Xe(b,M):H(F)?Xt(b,M,F):Xe(b,M)}function Ct(b,M){if(b===M)it(b,Ht());else if(k(M)){var F=void 0;try{F=M.then}catch(g){it(b,g);return}Vt(b,M,F)}else Xe(b,M)}function mt(b){b._onerror&&b._onerror(b._result),Qt(b)}function Xe(b,M){b._state===Bt&&(b._result=M,b._state=Dt,b._subscribers.length!==0&&c(Qt,b))}function it(b,M){b._state===Bt&&(b._state=St,b._result=M,c(mt,b))}function On(b,M,F,g){var de=b._subscribers,ue=de.length;b._onerror=null,de[ue]=M,de[ue+Dt]=F,de[ue+St]=g,ue===0&&b._state&&c(Qt,b)}function Qt(b){var M=b._subscribers,F=b._state;if(M.length!==0){for(var g=void 0,de=void 0,ue=b._result,Ze=0;Ze<M.length;Ze+=3)g=M[Ze],de=M[Ze+F],g?Un(F,g,de,ue):de(ue);b._subscribers.length=0}}function Un(b,M,F,g){var de=H(F),ue=void 0,Ze=void 0,lt=!0;if(de){try{ue=F(g)}catch(kt){lt=!1,Ze=kt}if(M===ue){it(M,q());return}}else ue=g;M._state!==Bt||(de&<?Ct(M,ue):lt===!1?it(M,Ze):b===Dt?Xe(M,ue):b===St&&it(M,ue))}function en(b,M){try{M(function(g){Ct(b,g)},function(g){it(b,g)})}catch(F){it(b,F)}}var zn=0;function on(){return zn++}function tn(b){b[ot]=zn++,b._state=void 0,b._result=void 0,b._subscribers=[]}function er(){return new Error("Array Methods must be provided an Array")}var pn=function(){function b(M,F){this._instanceConstructor=M,this.promise=new M(bt),this.promise[ot]||tn(this.promise),x(F)?(this.length=F.length,this._remaining=F.length,this._result=new Array(this.length),this.length===0?Xe(this.promise,this._result):(this.length=this.length||0,this._enumerate(F),this._remaining===0&&Xe(this.promise,this._result))):it(this.promise,er())}return b.prototype._enumerate=function(F){for(var g=0;this._state===Bt&&g<F.length;g++)this._eachEntry(F[g],g)},b.prototype._eachEntry=function(F,g){var de=this._instanceConstructor,ue=de.resolve;if(ue===$e){var Ze=void 0,lt=void 0,kt=!1;try{Ze=F.then}catch(Ne){kt=!0,lt=Ne}if(Ze===ge&&F._state!==Bt)this._settledAt(F._state,g,F._result);else if(typeof Ze!="function")this._remaining--,this._result[g]=F;else if(de===N){var Je=new de(bt);kt?it(Je,lt):Vt(Je,F,Ze),this._willSettleAt(Je,g)}else this._willSettleAt(new de(function(Ne){return Ne(F)}),g)}else this._willSettleAt(ue(F),g)},b.prototype._settledAt=function(F,g,de){var ue=this.promise;ue._state===Bt&&(this._remaining--,F===St?it(ue,de):this._result[g]=de),this._remaining===0&&Xe(ue,this._result)},b.prototype._willSettleAt=function(F,g){var de=this;On(F,void 0,function(ue){return de._settledAt(Dt,g,ue)},function(ue){return de._settledAt(St,g,ue)})},b}();function ut(b){return new pn(this,b).promise}function W(b){var M=this;return x(b)?new M(function(F,g){for(var de=b.length,ue=0;ue<de;ue++)M.resolve(b[ue]).then(F,g)}):new M(function(F,g){return g(new TypeError("You must pass an array to race."))})}function _(b){var M=this,F=new M(bt);return it(F,b),F}function p(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function I(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var N=function(){function b(M){this[ot]=on(),this._result=this._state=void 0,this._subscribers=[],bt!==M&&(typeof M!="function"&&p(),this instanceof b?en(this,M):I())}return b.prototype.catch=function(F){return this.then(null,F)},b.prototype.finally=function(F){var g=this,de=g.constructor;return H(F)?g.then(function(ue){return de.resolve(F()).then(function(){return ue})},function(ue){return de.resolve(F()).then(function(){throw ue})}):g.then(F,F)},b}();N.prototype.then=ge,N.all=ut,N.race=W,N.resolve=$e,N.reject=_,N._setScheduler=$,N._setAsap=me,N._asap=c;function Q(){var b=void 0;if(typeof d.g!="undefined")b=d.g;else if(typeof self!="undefined")b=self;else try{b=Function("return this")()}catch(g){throw new Error("polyfill failed because global object is unavailable in this environment")}var M=b.Promise;if(M){var F=null;try{F=Object.prototype.toString.call(M.resolve())}catch(g){}if(F==="[object Promise]"&&!M.cast)return}b.Promise=N}return N.polyfill=Q,N.Promise=N,N})},17187:function($t){"use strict";var Re=typeof Reflect=="object"?Reflect:null,d=Re&&typeof Re.apply=="function"?Re.apply:function(T,z,w){return Function.prototype.apply.call(T,z,w)},s;Re&&typeof Re.ownKeys=="function"?s=Re.ownKeys:Object.getOwnPropertySymbols?s=function(T){return Object.getOwnPropertyNames(T).concat(Object.getOwnPropertySymbols(T))}:s=function(T){return Object.getOwnPropertyNames(T)};function k(O){console&&console.warn&&console.warn(O)}var H=Number.isNaN||function(T){return T!==T};function V(){V.init.call(this)}$t.exports=V,$t.exports.once=oe,V.EventEmitter=V,V.prototype._events=void 0,V.prototype._eventsCount=0,V.prototype._maxListeners=void 0;var x=10;function S(O){if(typeof O!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof O)}Object.defineProperty(V,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(O){if(typeof O!="number"||O<0||H(O))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+O+".");x=O}}),V.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},V.prototype.setMaxListeners=function(T){if(typeof T!="number"||T<0||H(T))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+T+".");return this._maxListeners=T,this};function ne(O){return O._maxListeners===void 0?V.defaultMaxListeners:O._maxListeners}V.prototype.getMaxListeners=function(){return ne(this)},V.prototype.emit=function(T){for(var z=[],w=1;w<arguments.length;w++)z.push(arguments[w]);var P=T==="error",ie=this._events;if(ie!==void 0)P=P&&ie.error===void 0;else if(!P)return!1;if(P){var K;if(z.length>0&&(K=z[0]),K instanceof Error)throw K;var ge=new Error("Unhandled error."+(K?" ("+K.message+")":""));throw ge.context=K,ge}var $e=ie[T];if($e===void 0)return!1;if(typeof $e=="function")d($e,this,z);else for(var ot=$e.length,bt=U($e,ot),w=0;w<ot;++w)d(bt[w],this,z);return!0};function G(O,T,z,w){var P,ie,K;if(S(z),ie=O._events,ie===void 0?(ie=O._events=Object.create(null),O._eventsCount=0):(ie.newListener!==void 0&&(O.emit("newListener",T,z.listener?z.listener:z),ie=O._events),K=ie[T]),K===void 0)K=ie[T]=z,++O._eventsCount;else if(typeof K=="function"?K=ie[T]=w?[z,K]:[K,z]:w?K.unshift(z):K.push(z),P=ne(O),P>0&&K.length>P&&!K.warned){K.warned=!0;var ge=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");ge.name="MaxListenersExceededWarning",ge.emitter=O,ge.type=T,ge.count=K.length,k(ge)}return O}V.prototype.addListener=function(T,z){return G(this,T,z,!1)},V.prototype.on=V.prototype.addListener,V.prototype.prependListener=function(T,z){return G(this,T,z,!0)};function c(){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 $(O,T,z){var w={fired:!1,wrapFn:void 0,target:O,type:T,listener:z},P=c.bind(w);return P.listener=z,w.wrapFn=P,P}V.prototype.once=function(T,z){return S(z),this.on(T,$(this,T,z)),this},V.prototype.prependOnceListener=function(T,z){return S(z),this.prependListener(T,$(this,T,z)),this},V.prototype.removeListener=function(T,z){var w,P,ie,K,ge;if(S(z),P=this._events,P===void 0)return this;if(w=P[T],w===void 0)return this;if(w===z||w.listener===z)--this._eventsCount===0?this._events=Object.create(null):(delete P[T],P.removeListener&&this.emit("removeListener",T,w.listener||z));else if(typeof w!="function"){for(ie=-1,K=w.length-1;K>=0;K--)if(w[K]===z||w[K].listener===z){ge=w[K].listener,ie=K;break}if(ie<0)return this;ie===0?w.shift():re(w,ie),w.length===1&&(P[T]=w[0]),P.removeListener!==void 0&&this.emit("removeListener",T,ge||z)}return this},V.prototype.off=V.prototype.removeListener,V.prototype.removeAllListeners=function(T){var z,w,P;if(w=this._events,w===void 0)return this;if(w.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):w[T]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete w[T]),this;if(arguments.length===0){var ie=Object.keys(w),K;for(P=0;P<ie.length;++P)K=ie[P],K!=="removeListener"&&this.removeAllListeners(K);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(z=w[T],typeof z=="function")this.removeListener(T,z);else if(z!==void 0)for(P=z.length-1;P>=0;P--)this.removeListener(T,z[P]);return this};function me(O,T,z){var w=O._events;if(w===void 0)return[];var P=w[T];return P===void 0?[]:typeof P=="function"?z?[P.listener||P]:[P]:z?Oe(P):U(P,P.length)}V.prototype.listeners=function(T){return me(this,T,!0)},V.prototype.rawListeners=function(T){return me(this,T,!1)},V.listenerCount=function(O,T){return typeof O.listenerCount=="function"?O.listenerCount(T):Y.call(O,T)},V.prototype.listenerCount=Y;function Y(O){var T=this._events;if(T!==void 0){var z=T[O];if(typeof z=="function")return 1;if(z!==void 0)return z.length}return 0}V.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]};function U(O,T){for(var z=new Array(T),w=0;w<T;++w)z[w]=O[w];return z}function re(O,T){for(;T+1<O.length;T++)O[T]=O[T+1];O.pop()}function Oe(O){for(var T=new Array(O.length),z=0;z<T.length;++z)T[z]=O[z].listener||O[z];return T}function oe(O,T){return new Promise(function(z,w){function P(K){O.removeListener(T,ie),w(K)}function ie(){typeof O.removeListener=="function"&&O.removeListener("error",P),z([].slice.call(arguments))}C(O,T,ie,{once:!0}),T!=="error"&&L(O,P,{once:!0})})}function L(O,T,z){typeof O.on=="function"&&C(O,"error",T,z)}function C(O,T,z,w){if(typeof O.on=="function")w.once?O.once(T,z):O.on(T,z);else if(typeof O.addEventListener=="function")O.addEventListener(T,function P(ie){w.once&&O.removeEventListener(T,P),z(ie)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof O)}},52073:function($t,Re,d){"use strict";d.d(Re,{iz:function(){return xt},ck:function(){return Kn},BW:function(){return cn},sN:function(){return Kn},Wd:function(){return tr},ZP:function(){return ci},Xl:function(){return ue}});var s=d(87462),k=d(4942),H=d(1413),V=d(74902),x=d(97685),S=d(45987),ne=d(94184),G=d.n(ne),c=d(67294),$=d.t(c,2),me=d(48555);function Y(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var U=Y()?c.useLayoutEffect:c.useEffect,re=function(a,u){var m=c.useRef(!0);U(function(){return a(m.current)},u),U(function(){return m.current=!1,function(){m.current=!0}},[])},Oe=function(a,u){re(function(m){if(!m)return a()},u)},oe=re,L=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],C=void 0;function O(r,a){var u=r.prefixCls,m=r.invalidate,v=r.item,A=r.renderItem,R=r.responsive,ee=r.responsiveDisabled,J=r.registerSize,te=r.itemKey,xe=r.className,_e=r.style,Ee=r.children,X=r.display,he=r.order,ke=r.component,Te=ke===void 0?"div":ke,Qe=(0,S.Z)(r,L),Me=R&&!X;function Le(Ye){J(te,Ye)}c.useEffect(function(){return function(){Le(null)}},[]);var ce=A&&v!==C?A(v):Ee,He;m||(He={opacity:Me?0:1,height:Me?0:C,overflowY:Me?"hidden":C,order:R?he:C,pointerEvents:Me?"none":C,position:Me?"absolute":C});var at={};Me&&(at["aria-hidden"]=!0);var ct=c.createElement(Te,(0,s.Z)({className:G()(!m&&u,xe),style:(0,H.Z)((0,H.Z)({},He),_e)},at,Qe,{ref:a}),ce);return R&&(ct=c.createElement(me.Z,{onResize:function(_n){var rt=_n.offsetWidth;Le(rt)},disabled:ee},ct)),ct}var T=c.forwardRef(O);T.displayName="Item";var z=T;function w(r){var a=c.useRef();a.current=r;var u=c.useCallback(function(){for(var m,v=arguments.length,A=new Array(v),R=0;R<v;R++)A[R]=arguments[R];return(m=a.current)===null||m===void 0?void 0:m.call.apply(m,[a].concat(A))},[]);return u}var P=d(73935),ie=function(a){return+setTimeout(a,16)},K=function(a){return clearTimeout(a)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ie=function(a){return window.requestAnimationFrame(a)},K=function(a){return window.cancelAnimationFrame(a)});var ge=0,$e=new Map;function ot(r){$e.delete(r)}var bt=function(a){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ge+=1;var m=ge;function v(A){if(A===0)ot(m),a();else{var R=ie(function(){v(A-1)});$e.set(m,R)}}return v(u),m};bt.cancel=function(r){var a=$e.get(r);return ot(a),K(a)};var Bt=bt;function Dt(r){if(typeof MessageChannel=="undefined")Bt(r);else{var a=new MessageChannel;a.port1.onmessage=function(){return r()},a.port2.postMessage(void 0)}}function St(){var r=c.useRef(null),a=function(m){r.current||(r.current=[],Dt(function(){(0,P.unstable_batchedUpdates)(function(){r.current.forEach(function(v){v()}),r.current=null})})),r.current.push(m)};return a}function Ht(r,a){var u=c.useState(a),m=(0,x.Z)(u,2),v=m[0],A=m[1],R=w(function(ee){r(function(){A(ee)})});return[v,R]}var q=c.createContext(null),gn=["component"],Xt=["className"],De=["className"],Vt=function(a,u){var m=c.useContext(q);if(!m){var v=a.component,A=v===void 0?"div":v,R=(0,S.Z)(a,gn);return c.createElement(A,(0,s.Z)({},R,{ref:u}))}var ee=m.className,J=(0,S.Z)(m,Xt),te=a.className,xe=(0,S.Z)(a,De);return c.createElement(q.Provider,{value:null},c.createElement(z,(0,s.Z)({ref:u,className:G()(ee,te)},J,xe)))},Ct=c.forwardRef(Vt);Ct.displayName="RawItem";var mt=Ct,Xe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],it="responsive",On="invalidate";function Qt(r){return"+ ".concat(r.length," ...")}function Un(r,a){var u=r.prefixCls,m=u===void 0?"rc-overflow":u,v=r.data,A=v===void 0?[]:v,R=r.renderItem,ee=r.renderRawItem,J=r.itemKey,te=r.itemWidth,xe=te===void 0?10:te,_e=r.ssr,Ee=r.style,X=r.className,he=r.maxCount,ke=r.renderRest,Te=r.renderRawRest,Qe=r.suffix,Me=r.component,Le=Me===void 0?"div":Me,ce=r.itemComponent,He=r.onVisibleChange,at=(0,S.Z)(r,Xe),ct=_e==="full",Ye=St(),_n=Ht(Ye,null),rt=(0,x.Z)(_n,2),rn=rt[0],Kt=rt[1],Nt=rn||0,At=Ht(Ye,new Map),dt=(0,x.Z)(At,2),It=dt[0],Ke=dt[1],zt=Ht(Ye,0),jt=(0,x.Z)(zt,2),In=jt[0],fr=jt[1],Lt=Ht(Ye,0),ft=(0,x.Z)(Lt,2),Ln=ft[0],Cn=ft[1],Pn=Ht(Ye,0),Wt=(0,x.Z)(Pn,2),Gt=Wt[0],an=Wt[1],Gn=(0,c.useState)(null),Bn=(0,x.Z)(Gn,2),Xn=Bn[0],Qn=Bn[1],ar=(0,c.useState)(null),Ir=(0,x.Z)(ar,2),sn=Ir[0],Sr=Ir[1],ht=c.useMemo(function(){return sn===null&&ct?Number.MAX_SAFE_INTEGER:sn||0},[sn,rn]),Zr=(0,c.useState)(!1),hr=(0,x.Z)(Zr,2),Lr=hr[0],sr=hr[1],Yn="".concat(m,"-item"),mr=Math.max(In,Ln),Br=he===it,wn=A.length&&Br,di=he===On,or=wn||typeof he=="number"&&A.length>he,Dn=(0,c.useMemo)(function(){var tt=A;return wn?rn===null&&ct?tt=A:tt=A.slice(0,Math.min(A.length,Nt/xe)):typeof he=="number"&&(tt=A.slice(0,he)),tt},[A,xe,rn,he,wn]),Dr=(0,c.useMemo)(function(){return wn?A.slice(ht+1):A.slice(Dn.length)},[A,Dn,wn,ht]),Jn=(0,c.useCallback)(function(tt,yt){var Tn;return typeof J=="function"?J(tt):(Tn=J&&(tt==null?void 0:tt[J]))!==null&&Tn!==void 0?Tn:yt},[J]),li=(0,c.useCallback)(R||function(tt){return tt},[R]);function kn(tt,yt,Tn){sn===tt&&(yt===void 0||yt===Xn)||(Sr(tt),Tn||(sr(tt<A.length-1),He==null||He(tt)),yt!==void 0&&Qn(yt))}function Hr(tt,yt){Kt(yt.clientWidth)}function vr(tt,yt){Ke(function(Tn){var Cr=new Map(Tn);return yt===null?Cr.delete(tt):Cr.set(tt,yt),Cr})}function dn(tt,yt){Cn(yt),fr(Ln)}function yn(tt,yt){an(yt)}function gr(tt){return It.get(Jn(Dn[tt],tt))}oe(function(){if(Nt&&typeof mr=="number"&&Dn){var tt=Gt,yt=Dn.length,Tn=yt-1;if(!yt){kn(0,null);return}for(var Cr=0;Cr<yt;Cr+=1){var qn=gr(Cr);if(ct&&(qn=qn||0),qn===void 0){kn(Cr-1,void 0,!0);break}if(tt+=qn,Tn===0&&tt<=Nt||Cr===Tn-1&&tt+gr(Tn)<=Nt){kn(Tn,null);break}else if(tt+mr>Nt){kn(Cr-1,tt-qn-Gt+Ln);break}}Qe&&gr(0)+Gt>Nt&&Qn(null)}},[Nt,It,Ln,Gt,Jn,Dn]);var rr=Lr&&!!Dr.length,Qr={};Xn!==null&&wn&&(Qr={position:"absolute",left:Xn,top:0});var Wr={prefixCls:Yn,responsive:wn,component:ce,invalidate:di},pr=ee?function(tt,yt){var Tn=Jn(tt,yt);return c.createElement(q.Provider,{key:Tn,value:(0,H.Z)((0,H.Z)({},Wr),{},{order:yt,item:tt,itemKey:Tn,registerSize:vr,display:yt<=ht})},ee(tt,yt))}:function(tt,yt){var Tn=Jn(tt,yt);return c.createElement(z,(0,s.Z)({},Wr,{order:yt,key:Tn,item:tt,renderItem:li,itemKey:Tn,registerSize:vr,display:yt<=ht}))},fn,hn={order:rr?ht:Number.MAX_SAFE_INTEGER,className:"".concat(Yn,"-rest"),registerSize:dn,display:rr};if(Te)Te&&(fn=c.createElement(q.Provider,{value:(0,H.Z)((0,H.Z)({},Wr),hn)},Te(Dr)));else{var En=ke||Qt;fn=c.createElement(z,(0,s.Z)({},Wr,hn),typeof En=="function"?En(Dr):En)}var ni=c.createElement(Le,(0,s.Z)({className:G()(!di&&m,X),style:Ee,ref:a},at),Dn.map(pr),or?fn:null,Qe&&c.createElement(z,(0,s.Z)({},Wr,{responsive:Br,responsiveDisabled:!wn,order:ht,className:"".concat(Yn,"-suffix"),registerSize:yn,display:!0,style:Qr}),Qe));return Br&&(ni=c.createElement(me.Z,{onResize:Hr,disabled:!wn},ni)),ni}var en=c.forwardRef(Un);en.displayName="Overflow",en.Item=mt,en.RESPONSIVE=it,en.INVALIDATE=On;var zn=en,on=zn,tn=d(21770),er=d(80334),pn=d(91881),ut=c.createContext(null);function W(r,a){return r===void 0?null:"".concat(r,"-").concat(a)}function _(r){var a=c.useContext(ut);return W(a,r)}var p=d(56982),I=["children","locked"],N=c.createContext(null);function Q(r,a){var u=(0,H.Z)({},r);return Object.keys(a).forEach(function(m){var v=a[m];v!==void 0&&(u[m]=v)}),u}function b(r){var a=r.children,u=r.locked,m=(0,S.Z)(r,I),v=c.useContext(N),A=(0,p.Z)(function(){return Q(v,m)},[v,m],function(R,ee){return!u&&(R[0]!==ee[0]||!(0,pn.Z)(R[1],ee[1],!0))});return c.createElement(N.Provider,{value:A},a)}var M=[],F=c.createContext(null);function g(){return c.useContext(F)}var de=c.createContext(M);function ue(r){var a=c.useContext(de);return c.useMemo(function(){return r!==void 0?[].concat((0,V.Z)(a),[r]):a},[a,r])}var Ze=c.createContext(null),lt=c.createContext({}),kt=lt,Je=d(15105),Ne=d(75164),Ft=function(r){if(!r)return!1;if(r instanceof Element){if(r.offsetParent)return!0;if(r.getBBox){var a=r.getBBox(),u=a.width,m=a.height;if(u||m)return!0}if(r.getBoundingClientRect){var v=r.getBoundingClientRect(),A=v.width,R=v.height;if(A||R)return!0}}return!1};function Zt(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ft(r)){var u=r.nodeName.toLowerCase(),m=["input","select","textarea","button"].includes(u)||r.isContentEditable||u==="a"&&!!r.getAttribute("href"),v=r.getAttribute("tabindex"),A=Number(v),R=null;return v&&!Number.isNaN(A)?R=A:m&&R===null&&(R=0),m&&r.disabled&&(R=null),R!==null&&(R>=0||a&&R<0)}return!1}function An(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=(0,V.Z)(r.querySelectorAll("*")).filter(function(m){return Zt(m,a)});return Zt(r,a)&&u.unshift(r),u}var ae=null;function Pr(){ae=document.activeElement}function yr(){ae=null}function Or(){if(ae)try{ae.focus()}catch(r){}}function Nn(r,a){if(a.keyCode===9){var u=An(r),m=u[a.shiftKey?0:u.length-1],v=m===document.activeElement||r===document.activeElement;if(v){var A=u[a.shiftKey?u.length-1:0];A.focus(),a.preventDefault()}}}var jn=Je.Z.LEFT,Kr=Je.Z.RIGHT,$n=Je.Z.UP,Er=Je.Z.DOWN,qr=Je.Z.ENTER,ai=Je.Z.ESC,Ur=Je.Z.HOME,qe=Je.Z.END,un=[$n,Er,jn,Kr];function Zn(r,a,u,m){var v,A,R,ee,J="prev",te="next",xe="children",_e="parent";if(r==="inline"&&m===qr)return{inlineTrigger:!0};var Ee=(v={},(0,k.Z)(v,$n,J),(0,k.Z)(v,Er,te),v),X=(A={},(0,k.Z)(A,jn,u?te:J),(0,k.Z)(A,Kr,u?J:te),(0,k.Z)(A,Er,xe),(0,k.Z)(A,qr,xe),A),he=(R={},(0,k.Z)(R,$n,J),(0,k.Z)(R,Er,te),(0,k.Z)(R,qr,xe),(0,k.Z)(R,ai,_e),(0,k.Z)(R,jn,u?xe:_e),(0,k.Z)(R,Kr,u?_e:xe),R),ke={inline:Ee,horizontal:X,vertical:he,inlineSub:Ee,horizontalSub:he,verticalSub:he},Te=(ee=ke["".concat(r).concat(a?"":"Sub")])===null||ee===void 0?void 0:ee[m];switch(Te){case J:return{offset:-1,sibling:!0};case te:return{offset:1,sibling:!0};case _e:return{offset:-1,sibling:!1};case xe:return{offset:1,sibling:!1};default:return null}}function ei(r){for(var a=r;a;){if(a.getAttribute("data-menu-list"))return a;a=a.parentElement}return null}function ti(r,a){for(var u=r||document.activeElement;u;){if(a.has(u))return u;u=u.parentElement}return null}function zr(r,a){var u=An(r,!0);return u.filter(function(m){return a.has(m)})}function ur(r,a,u){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!r)return null;var v=zr(r,a),A=v.length,R=v.findIndex(function(ee){return u===ee});return m<0?R===-1?R=A-1:R-=1:m>0&&(R+=1),R=(R+A)%A,v[R]}function Nr(r,a,u,m,v,A,R,ee,J,te){var xe=c.useRef(),_e=c.useRef();_e.current=a;var Ee=function(){Ne.Z.cancel(xe.current)};return c.useEffect(function(){return function(){Ee()}},[]),function(X){var he=X.which;if([].concat(un,[qr,ai,Ur,qe]).includes(he)){var ke,Te,Qe,Me=function(){ke=new Set,Te=new Map,Qe=new Map;var dt=A();return dt.forEach(function(It){var Ke=document.querySelector("[data-menu-id='".concat(W(m,It),"']"));Ke&&(ke.add(Ke),Qe.set(Ke,It),Te.set(It,Ke))}),ke};Me();var Le=Te.get(a),ce=ti(Le,ke),He=Qe.get(ce),at=Zn(r,R(He,!0).length===1,u,he);if(!at&&he!==Ur&&he!==qe)return;(un.includes(he)||[Ur,qe].includes(he))&&X.preventDefault();var ct=function(dt){if(dt){var It=dt,Ke=dt.querySelector("a");Ke!=null&&Ke.getAttribute("href")&&(It=Ke);var zt=Qe.get(dt);ee(zt),Ee(),xe.current=(0,Ne.Z)(function(){_e.current===zt&&It.focus()})}};if([Ur,qe].includes(he)||at.sibling||!ce){var Ye;!ce||r==="inline"?Ye=v.current:Ye=ei(ce);var _n,rt=zr(Ye,ke);he===Ur?_n=rt[0]:he===qe?_n=rt[rt.length-1]:_n=ur(Ye,ke,ce,at.offset),ct(_n)}else if(at.inlineTrigger)J(He);else if(at.offset>0)J(He,!0),Ee(),xe.current=(0,Ne.Z)(function(){Me();var At=ce.getAttribute("aria-controls"),dt=document.getElementById(At),It=ur(dt,ke);ct(It)},5);else if(at.offset<0){var rn=R(He,!0),Kt=rn[rn.length-2],Nt=Te.get(Kt);J(Kt,!1),ct(Nt)}}te==null||te(X)}}function Tt(r){Promise.resolve().then(r)}var Ri="__RC_UTIL_PATH_SPLIT__",se=function(a){return a.join(Ri)},e=function(a){return a.split(Ri)},t="rc-menu-more";function n(){var r=c.useState({}),a=(0,x.Z)(r,2),u=a[1],m=(0,c.useRef)(new Map),v=(0,c.useRef)(new Map),A=c.useState([]),R=(0,x.Z)(A,2),ee=R[0],J=R[1],te=(0,c.useRef)(0),xe=(0,c.useRef)(!1),_e=function(){xe.current||u({})},Ee=(0,c.useCallback)(function(Le,ce){var He=se(ce);v.current.set(He,Le),m.current.set(Le,He),te.current+=1;var at=te.current;Tt(function(){at===te.current&&_e()})},[]),X=(0,c.useCallback)(function(Le,ce){var He=se(ce);v.current.delete(He),m.current.delete(Le)},[]),he=(0,c.useCallback)(function(Le){J(Le)},[]),ke=(0,c.useCallback)(function(Le,ce){var He=m.current.get(Le)||"",at=e(He);return ce&&ee.includes(at[0])&&at.unshift(t),at},[ee]),Te=(0,c.useCallback)(function(Le,ce){return Le.some(function(He){var at=ke(He,!0);return at.includes(ce)})},[ke]),Qe=function(){var ce=(0,V.Z)(m.current.keys());return ee.length&&ce.push(t),ce},Me=(0,c.useCallback)(function(Le){var ce="".concat(m.current.get(Le)).concat(Ri),He=new Set;return(0,V.Z)(v.current.keys()).forEach(function(at){at.startsWith(ce)&&He.add(v.current.get(at))}),He},[]);return c.useEffect(function(){return function(){xe.current=!0}},[]),{registerPath:Ee,unregisterPath:X,refreshOverflowKeys:he,isSubPathKey:Te,getKeyPath:ke,getKeys:Qe,getSubPathKeys:Me}}function i(r){var a=c.useRef(r);a.current=r;var u=c.useCallback(function(){for(var m,v=arguments.length,A=new Array(v),R=0;R<v;R++)A[R]=arguments[R];return(m=a.current)===null||m===void 0?void 0:m.call.apply(m,[a].concat(A))},[]);return r?u:void 0}var l=Math.random().toFixed(5).toString().slice(2),E=0;function B(r){var a=(0,tn.Z)(r,{value:r}),u=(0,x.Z)(a,2),m=u[0],v=u[1];return c.useEffect(function(){E+=1;var A="".concat(l,"-").concat(E);v("rc-menu-uuid-".concat(A))},[]),m}var we=d(15671),ve=d(43144),je=d(60136),Rt=d(51630),pt=d(98423),Se=d(42550);function vt(r,a,u,m){var v=c.useContext(N),A=v.activeKey,R=v.onActive,ee=v.onInactive,J={active:A===r};return a||(J.onMouseEnter=function(te){u==null||u({key:r,domEvent:te}),R(r)},J.onMouseLeave=function(te){m==null||m({key:r,domEvent:te}),ee(r)}),J}function Fe(r){var a=c.useContext(N),u=a.mode,m=a.rtl,v=a.inlineIndent;if(u!=="inline")return null;var A=r;return m?{paddingRight:A*v}:{paddingLeft:A*v}}function fe(r){var a=r.icon,u=r.props,m=r.children,v;return a===null||a===!1?null:(typeof a=="function"?v=c.createElement(a,(0,H.Z)({},u)):typeof a!="boolean"&&(v=a),v||m||null)}var Ce=["item"];function Ve(r){var a=r.item,u=(0,S.Z)(r,Ce);return Object.defineProperty(u,"item",{get:function(){return(0,er.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),a}}),u}var et=["title","attribute","elementRef"],Yt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],si=["active"],lr=function(r){(0,je.Z)(u,r);var a=(0,Rt.Z)(u);function u(){return(0,we.Z)(this,u),a.apply(this,arguments)}return(0,ve.Z)(u,[{key:"render",value:function(){var v=this.props,A=v.title,R=v.attribute,ee=v.elementRef,J=(0,S.Z)(v,et),te=(0,pt.Z)(J,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,er.ZP)(!R,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(on.Item,(0,s.Z)({},R,{title:typeof A=="string"?A:void 0},te,{ref:ee}))}}]),u}(c.Component),We=c.forwardRef(function(r,a){var u,m=r.style,v=r.className,A=r.eventKey,R=r.warnKey,ee=r.disabled,J=r.itemIcon,te=r.children,xe=r.role,_e=r.onMouseEnter,Ee=r.onMouseLeave,X=r.onClick,he=r.onKeyDown,ke=r.onFocus,Te=(0,S.Z)(r,Yt),Qe=_(A),Me=c.useContext(N),Le=Me.prefixCls,ce=Me.onItemClick,He=Me.disabled,at=Me.overflowDisabled,ct=Me.itemIcon,Ye=Me.selectedKeys,_n=Me.onActive,rt=c.useContext(kt),rn=rt._internalRenderMenuItem,Kt="".concat(Le,"-item"),Nt=c.useRef(),At=c.useRef(),dt=He||ee,It=(0,Se.x1)(a,At),Ke=ue(A),zt=function(Bn){return{key:A,keyPath:(0,V.Z)(Ke).reverse(),item:Nt.current,domEvent:Bn}},jt=J||ct,In=vt(A,dt,_e,Ee),fr=In.active,Lt=(0,S.Z)(In,si),ft=Ye.includes(A),Ln=Fe(Ke.length),Cn=function(Bn){if(!dt){var Xn=zt(Bn);X==null||X(Ve(Xn)),ce(Xn)}},Pn=function(Bn){if(he==null||he(Bn),Bn.which===Je.Z.ENTER){var Xn=zt(Bn);X==null||X(Ve(Xn)),ce(Xn)}},Wt=function(Bn){_n(A),ke==null||ke(Bn)},Gt={};r.role==="option"&&(Gt["aria-selected"]=ft);var an=c.createElement(lr,(0,s.Z)({ref:Nt,elementRef:It,role:xe===null?"none":xe||"menuitem",tabIndex:ee?null:-1,"data-menu-id":at&&Qe?null:Qe},Te,Lt,Gt,{component:"li","aria-disabled":ee,style:(0,H.Z)((0,H.Z)({},Ln),m),className:G()(Kt,(u={},(0,k.Z)(u,"".concat(Kt,"-active"),fr),(0,k.Z)(u,"".concat(Kt,"-selected"),ft),(0,k.Z)(u,"".concat(Kt,"-disabled"),dt),u),v),onClick:Cn,onKeyDown:Pn,onFocus:Wt}),te,c.createElement(fe,{props:(0,H.Z)((0,H.Z)({},r),{},{isSelected:ft}),icon:jt}));return rn&&(an=rn(an,r,{selected:ft})),an});function Rn(r,a){var u=r.eventKey,m=g(),v=ue(u);return c.useEffect(function(){if(m)return m.registerPath(u,v),function(){m.unregisterPath(u,v)}},[v]),m?null:c.createElement(We,(0,s.Z)({},r,{ref:a}))}var Kn=c.forwardRef(Rn),xr=["className","children"],cr=function(a,u){var m=a.className,v=a.children,A=(0,S.Z)(a,xr),R=c.useContext(N),ee=R.prefixCls,J=R.mode,te=R.rtl;return c.createElement("ul",(0,s.Z)({className:G()(ee,te&&"".concat(ee,"-rtl"),"".concat(ee,"-sub"),"".concat(ee,"-").concat(J==="inline"?"inline":"vertical"),m),role:"menu"},A,{"data-menu-list":!0,ref:u}),v)},oi=c.forwardRef(cr);oi.displayName="SubMenuList";var Ii=oi,Xr=d(50344);function hi(r,a){return(0,Xr.Z)(r).map(function(u,m){if(c.isValidElement(u)){var v,A,R=u.key,ee=(v=(A=u.props)===null||A===void 0?void 0:A.eventKey)!==null&&v!==void 0?v:R,J=ee==null;J&&(ee="tmp_key-".concat([].concat((0,V.Z)(a),[m]).join("-")));var te={key:ee,eventKey:ee};return c.cloneElement(u,te)}return u})}function yi(r){"@babel/helpers - typeof";return yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},yi(r)}function Li(r,a){if(yi(r)!="object"||!r)return r;var u=r[Symbol.toPrimitive];if(u!==void 0){var m=u.call(r,a||"default");if(yi(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(r)}function Bi(r){var a=Li(r,"string");return yi(a)=="symbol"?a:a+""}function $r(r,a,u){return(a=Bi(a))in r?Object.defineProperty(r,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[a]=u,r}function Ar(r,a){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(r);a&&(m=m.filter(function(v){return Object.getOwnPropertyDescriptor(r,v).enumerable})),u.push.apply(u,m)}return u}function dr(r){for(var a=1;a<arguments.length;a++){var u=arguments[a]!=null?arguments[a]:{};a%2?Ar(Object(u),!0).forEach(function(m){$r(r,m,u[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):Ar(Object(u)).forEach(function(m){Object.defineProperty(r,m,Object.getOwnPropertyDescriptor(u,m))})}return r}function na(r){if(Array.isArray(r))return r}function ra(r,a){var u=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(u!=null){var m,v,A,R,ee=[],J=!0,te=!1;try{if(A=(u=u.call(r)).next,a===0){if(Object(u)!==u)return;J=!1}else for(;!(J=(m=A.call(u)).done)&&(ee.push(m.value),ee.length!==a);J=!0);}catch(xe){te=!0,v=xe}finally{try{if(!J&&u.return!=null&&(R=u.return(),Object(R)!==R))return}finally{if(te)throw v}}return ee}}function Sa(r,a){(a==null||a>r.length)&&(a=r.length);for(var u=0,m=Array(a);u<a;u++)m[u]=r[u];return m}function za(r,a){if(r){if(typeof r=="string")return Sa(r,a);var u={}.toString.call(r).slice(8,-1);return u==="Object"&&r.constructor&&(u=r.constructor.name),u==="Map"||u==="Set"?Array.from(r):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Sa(r,a):void 0}}function _s(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rr(r,a){return na(r)||ra(r,a)||za(r,a)||_s()}function ys(r,a){if(r==null)return{};var u={};for(var m in r)if({}.hasOwnProperty.call(r,m)){if(a.includes(m))continue;u[m]=r[m]}return u}function Es(r,a){if(r==null)return{};var u,m,v=ys(r,a);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(r);for(m=0;m<A.length;m++)u=A[m],a.includes(u)||{}.propertyIsEnumerable.call(r,u)&&(v[u]=r[u])}return v}var ia=d(98924),bs=c.createContext(null),aa=bs,ha=d(8410),Ca=[];function ja(r,a){var u=c.useState(function(){if(!(0,ia.Z)())return null;var he=document.createElement("div");return he}),m=(0,x.Z)(u,1),v=m[0],A=c.useRef(!1),R=c.useContext(aa),ee=c.useState(Ca),J=(0,x.Z)(ee,2),te=J[0],xe=J[1],_e=R||(A.current?void 0:function(he){xe(function(ke){var Te=[he].concat((0,V.Z)(ke));return Te})});function Ee(){v.parentElement||document.body.appendChild(v),A.current=!0}function X(){var he;(he=v.parentElement)===null||he===void 0||he.removeChild(v),A.current=!1}return(0,ha.Z)(function(){return r?R?R(Ee):Ee():X(),X},[r]),(0,ha.Z)(function(){te.length&&(te.forEach(function(he){return he()}),xe(Ca))},[te]),[v,_e]}var ma=d(48981),Za=d(74204);function Ha(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Va="rc-util-locker-".concat(Date.now()),Pi=0;function va(r){var a=!!r,u=c.useState(function(){return Pi+=1,"".concat(Va,"_").concat(Pi)}),m=(0,x.Z)(u,1),v=m[0];(0,ha.Z)(function(){if(a){var A=(0,Za.o)(document.body).width,R=Ha();(0,ma.hq)(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(R?"width: calc(100% - ".concat(A,"px);"):"",`
|
|
}`),v)}else(0,ma.jL)(v);return function(){(0,ma.jL)(v)}},[a,v])}var sa=!1;function ga(r){return typeof r=="boolean"&&(sa=r),sa}var wa=function(a){return a===!1?!1:!(0,ia.Z)()||!a?null:typeof a=="string"?document.querySelector(a):typeof a=="function"?a():a},Di=c.forwardRef(function(r,a){var u=r.open,m=r.autoLock,v=r.getContainer,A=r.debug,R=r.autoDestroy,ee=R===void 0?!0:R,J=r.children,te=c.useState(u),xe=(0,x.Z)(te,2),_e=xe[0],Ee=xe[1],X=_e||u;c.useEffect(function(){(ee||u)&&Ee(u)},[u,ee]);var he=c.useState(function(){return wa(v)}),ke=(0,x.Z)(he,2),Te=ke[0],Qe=ke[1];c.useEffect(function(){var Kt=wa(v);Qe(Kt!=null?Kt:null)});var Me=ja(X&&!Te,A),Le=(0,x.Z)(Me,2),ce=Le[0],He=Le[1],at=Te!=null?Te:ce;va(m&&u&&(0,ia.Z)()&&(at===ce||at===document.body));var ct=null;if(J&&(0,Se.Yr)(J)&&a){var Ye=J;ct=Ye.ref}var _n=(0,Se.x1)(ct,a);if(!X||!(0,ia.Z)()||Te===void 0)return null;var rt=at===!1||ga(),rn=J;return a&&(rn=c.cloneElement(J,{ref:_n})),c.createElement(aa.Provider,{value:He},rt?rn:(0,P.createPortal)(rn,at))}),Qi=Di,Ui=Qi;function zi(r){return r instanceof HTMLElement||r instanceof SVGElement}function pa(r){return r&&_typeof(r)==="object"&&zi(r.nativeElement)?r.nativeElement:zi(r)?r:null}function Ss(r){var a=pa(r);if(a)return a;if(r instanceof React.Component){var u;return(u=ReactDOM.findDOMNode)===null||u===void 0?void 0:u.call(ReactDOM,r)}return null}function xa(r){var a;return r==null||(a=r.getRootNode)===null||a===void 0?void 0:a.call(r)}function Ka(r){return xa(r)instanceof ShadowRoot}function oa(r){return Ka(r)?xa(r):null}function Ti(r){var a=c.useRef();a.current=r;var u=c.useCallback(function(){for(var m,v=arguments.length,A=new Array(v),R=0;R<v;R++)A[R]=arguments[R];return(m=a.current)===null||m===void 0?void 0:m.call.apply(m,[a].concat(A))},[]);return u}function Wa(r){if(Array.isArray(r))return r}function Aa(r,a){var u=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(u!=null){var m,v,A,R,ee=[],J=!0,te=!1;try{if(A=(u=u.call(r)).next,a===0){if(Object(u)!==u)return;J=!1}else for(;!(J=(m=A.call(u)).done)&&(ee.push(m.value),ee.length!==a);J=!0);}catch(xe){te=!0,v=xe}finally{try{if(!J&&u.return!=null&&(R=u.return(),Object(R)!==R))return}finally{if(te)throw v}}return ee}}function Ga(r,a){(a==null||a>r.length)&&(a=r.length);for(var u=0,m=new Array(a);u<a;u++)m[u]=r[u];return m}function Cs(r,a){if(r){if(typeof r=="string")return Ga(r,a);var u=Object.prototype.toString.call(r).slice(8,-1);if(u==="Object"&&r.constructor&&(u=r.constructor.name),u==="Map"||u==="Set")return Array.from(r);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return Ga(r,a)}}function Xa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qa(r,a){return Wa(r)||Aa(r,a)||Cs(r,a)||Xa()}function Mi(r){"@babel/helpers - typeof";return Mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Mi(r)}function ws(r,a){if(Mi(r)!=="object"||r===null)return r;var u=r[Symbol.toPrimitive];if(u!==void 0){var m=u.call(r,a||"default");if(Mi(m)!=="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(r)}function Ya(r){var a=ws(r,"string");return Mi(a)==="symbol"?a:String(a)}function xs(r,a,u){return a=Ya(a),a in r?Object.defineProperty(r,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[a]=u,r}function Ja(r,a){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(r);a&&(m=m.filter(function(v){return Object.getOwnPropertyDescriptor(r,v).enumerable})),u.push.apply(u,m)}return u}function As(r){for(var a=1;a<arguments.length;a++){var u=arguments[a]!=null?arguments[a]:{};a%2?Ja(Object(u),!0).forEach(function(m){xs(r,m,u[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):Ja(Object(u)).forEach(function(m){Object.defineProperty(r,m,Object.getOwnPropertyDescriptor(u,m))})}return r}function qa(){var r=As({},$);return r.useId}var Ra=0;function Rs(){}var Ia=qa(),Is=Ia?function(a){var u=Ia();return a||u}:function(a){var u=c.useState("ssr-id"),m=Qa(u,2),v=m[0],A=m[1];return c.useEffect(function(){var R=Ra;Ra+=1,A("rc_unique_".concat(R))},[]),a||v};function Ls(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var es=Ls()?c.useLayoutEffect:c.useEffect,La=function(a,u){var m=c.useRef(!0);es(function(){return a(m.current)},u),es(function(){return m.current=!1,function(){m.current=!0}},[])},Bs=function(a,u){La(function(m){if(!m)return a()},u)},mi=La,Ba=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var r=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(r)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(r==null?void 0:r.substr(0,4))};function Yi(){return Yi=Object.assign?Object.assign.bind():function(r){for(var a=1;a<arguments.length;a++){var u=arguments[a];for(var m in u)({}).hasOwnProperty.call(u,m)&&(r[m]=u[m])}return r},Yi.apply(null,arguments)}var ua=d(62874),Da=d(8399);function ka(r,a,u){var m=c.useRef({});return(!("value"in m.current)||u(m.current.condition,a))&&(m.current.value=r(),m.current.condition=a),m.current.value}var Ds=Symbol.for("react.element"),ks=Symbol.for("react.transitional.element"),Ts=Symbol.for("react.fragment");function Ms(r){return r&&Mi(r)==="object"&&(r.$$typeof===Ds||r.$$typeof===ks)&&r.type===Ts}var ts=function(a,u){typeof a=="function"?a(u):Mi(a)==="object"&&a&&"current"in a&&(a.current=u)},Os=function(){for(var a=arguments.length,u=new Array(a),m=0;m<a;m++)u[m]=arguments[m];var v=u.filter(Boolean);return v.length<=1?v[0]:function(A){u.forEach(function(R){ts(R,A)})}},ns=function(){for(var a=arguments.length,u=new Array(a),m=0;m<a;m++)u[m]=arguments[m];return ka(function(){return Os.apply(void 0,u)},u,function(v,A){return v.length!==A.length||v.every(function(R,ee){return R!==A[ee]})})},rs=function(a){var u,m;if(!a)return!1;if(Ta(a)&&a.props.propertyIsEnumerable("ref"))return!0;var v=(0,Da.isMemo)(a)?a.type.type:a.type;return!(typeof v=="function"&&!((u=v.prototype)!==null&&u!==void 0&&u.render)&&v.$$typeof!==Da.ForwardRef||typeof a=="function"&&!((m=a.prototype)!==null&&m!==void 0&&m.render)&&a.$$typeof!==Da.ForwardRef)};function Ta(r){return(0,c.isValidElement)(r)&&!Ms(r)}var so=function(a){return Ta(a)&&rs(a)},oo=function(a){if(a&&Ta(a)){var u=a;return u.props.propertyIsEnumerable("ref")?u.props.ref:u.ref}return null};function Ns(r){var a=r.prefixCls,u=r.align,m=r.arrow,v=r.arrowPos,A=m||{},R=A.className,ee=A.content,J=v.x,te=J===void 0?0:J,xe=v.y,_e=xe===void 0?0:xe,Ee=c.useRef();if(!u||!u.points)return null;var X={position:"absolute"};if(u.autoArrow!==!1){var he=u.points[0],ke=u.points[1],Te=he[0],Qe=he[1],Me=ke[0],Le=ke[1];Te===Me||!["t","b"].includes(Te)?X.top=_e:Te==="t"?X.top=0:X.bottom=0,Qe===Le||!["l","r"].includes(Qe)?X.left=te:Qe==="l"?X.left=0:X.right=0}return c.createElement("div",{ref:Ee,className:G()("".concat(a,"-arrow"),R),style:X},ee)}function $s(r){var a=r.prefixCls,u=r.open,m=r.zIndex,v=r.mask,A=r.motion;return v?c.createElement(ua.Z,Yi({},A,{motionAppear:!0,visible:u,removeOnLeave:!0}),function(R){var ee=R.className;return c.createElement("div",{style:{zIndex:m},className:G()("".concat(a,"-mask"),ee)})}):null}var Fs=c.memo(function(r){var a=r.children;return a},function(r,a){return a.cache}),Ps=Fs,Us=c.forwardRef(function(r,a){var u=r.popup,m=r.className,v=r.prefixCls,A=r.style,R=r.target,ee=r.onVisibleChanged,J=r.open,te=r.keepDom,xe=r.fresh,_e=r.onClick,Ee=r.mask,X=r.arrow,he=r.arrowPos,ke=r.align,Te=r.motion,Qe=r.maskMotion,Me=r.forceRender,Le=r.getPopupContainer,ce=r.autoDestroy,He=r.portal,at=r.zIndex,ct=r.onMouseEnter,Ye=r.onMouseLeave,_n=r.onPointerEnter,rt=r.ready,rn=r.offsetX,Kt=r.offsetY,Nt=r.offsetR,At=r.offsetB,dt=r.onAlign,It=r.onPrepare,Ke=r.stretch,zt=r.targetWidth,jt=r.targetHeight,In=typeof u=="function"?u():u,fr=J||te,Lt=(Le==null?void 0:Le.length)>0,ft=c.useState(!Le||!Lt),Ln=Rr(ft,2),Cn=Ln[0],Pn=Ln[1];if(mi(function(){!Cn&&Lt&&R&&Pn(!0)},[Cn,Lt,R]),!Cn)return null;var Wt="auto",Gt={left:"-1000vw",top:"-1000vh",right:Wt,bottom:Wt};if(rt||!J){var an,Gn=ke.points,Bn=ke.dynamicInset||((an=ke._experimental)===null||an===void 0?void 0:an.dynamicInset),Xn=Bn&&Gn[0][1]==="r",Qn=Bn&&Gn[0][0]==="b";Xn?(Gt.right=Nt,Gt.left=Wt):(Gt.left=rn,Gt.right=Wt),Qn?(Gt.bottom=At,Gt.top=Wt):(Gt.top=Kt,Gt.bottom=Wt)}var ar={};return Ke&&(Ke.includes("height")&&jt?ar.height=jt:Ke.includes("minHeight")&&jt&&(ar.minHeight=jt),Ke.includes("width")&&zt?ar.width=zt:Ke.includes("minWidth")&&zt&&(ar.minWidth=zt)),J||(ar.pointerEvents="none"),c.createElement(He,{open:Me||fr,getContainer:Le&&function(){return Le(R)},autoDestroy:ce},c.createElement($s,{prefixCls:v,open:J,zIndex:at,mask:Ee,motion:Qe}),c.createElement(me.Z,{onResize:dt,disabled:!J},function(Ir){return c.createElement(ua.Z,Yi({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Me,leavedClassName:"".concat(v,"-hidden")},Te,{onAppearPrepare:It,onEnterPrepare:It,visible:J,onVisibleChanged:function(Sr){var ht;Te==null||(ht=Te.onVisibleChanged)===null||ht===void 0||ht.call(Te,Sr),ee(Sr)}}),function(sn,Sr){var ht=sn.className,Zr=sn.style,hr=G()(v,ht,m);return c.createElement("div",{ref:Os(Ir,a,Sr),className:hr,style:dr(dr(dr(dr({"--arrow-x":"".concat(he.x||0,"px"),"--arrow-y":"".concat(he.y||0,"px")},Gt),ar),Zr),{},{boxSizing:"border-box",zIndex:at},A),onMouseEnter:ct,onMouseLeave:Ye,onPointerEnter:_n,onClick:_e},X&&c.createElement(Ns,{prefixCls:v,arrow:X,arrowPos:he,align:ke}),c.createElement(Ps,{cache:!J&&!xe},In))})}))}),zs=Us,js=c.forwardRef(function(r,a){var u=r.children,m=r.getTriggerDOMNode,v=rs(u),A=c.useCallback(function(ee){ts(a,m?m(ee):ee)},[m]),R=ns(A,u.ref);return v?c.cloneElement(u,{ref:R}):u}),st=js,is=c.createContext(null),as=is;function ss(r){return r?Array.isArray(r)?r:[r]:[]}function Zs(r,a,u,m){return c.useMemo(function(){var v=ss(u!=null?u:a),A=ss(m!=null?m:a),R=new Set(v),ee=new Set(A);return r&&(R.has("hover")&&(R.delete("hover"),R.add("click")),ee.has("hover")&&(ee.delete("hover"),ee.add("click"))),[R,ee]},[r,a,u,m])}var Hs=function(r){if(!r)return!1;if(r instanceof Element){if(r.offsetParent)return!0;if(r.getBBox){var a=r.getBBox(),u=a.width,m=a.height;if(u||m)return!0}if(r.getBoundingClientRect){var v=r.getBoundingClientRect(),A=v.width,R=v.height;if(A||R)return!0}}return!1};function Vs(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=arguments.length>2?arguments[2]:void 0;return u?r[0]===a[0]:r[0]===a[0]&&r[1]===a[1]}function Ji(r,a,u,m){for(var v=u.points,A=Object.keys(r),R=0;R<A.length;R+=1){var ee,J=A[R];if(Vs((ee=r[J])===null||ee===void 0?void 0:ee.points,v,m))return"".concat(a,"-placement-").concat(J)}return""}function ji(r,a,u,m){return a||(u?{motionName:"".concat(r,"-").concat(u)}:m?{motionName:m}:null)}function la(r){return r.ownerDocument.defaultView}function Ma(r){for(var a=[],u=r==null?void 0:r.parentElement,m=["hidden","scroll","clip","auto"];u;){var v=la(u).getComputedStyle(u),A=v.overflowX,R=v.overflowY,ee=v.overflow;[A,R,ee].some(function(J){return m.includes(J)})&&a.push(u),u=u.parentElement}return a}function ca(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(r)?a:r}function da(r){return ca(parseFloat(r),0)}function os(r,a){var u=dr({},r);return(a||[]).forEach(function(m){if(!(m instanceof HTMLBodyElement||m instanceof HTMLHtmlElement)){var v=la(m).getComputedStyle(m),A=v.overflow,R=v.overflowClipMargin,ee=v.borderTopWidth,J=v.borderBottomWidth,te=v.borderLeftWidth,xe=v.borderRightWidth,_e=m.getBoundingClientRect(),Ee=m.offsetHeight,X=m.clientHeight,he=m.offsetWidth,ke=m.clientWidth,Te=da(ee),Qe=da(J),Me=da(te),Le=da(xe),ce=ca(Math.round(_e.width/he*1e3)/1e3),He=ca(Math.round(_e.height/Ee*1e3)/1e3),at=(he-ke-Me-Le)*ce,ct=(Ee-X-Te-Qe)*He,Ye=Te*He,_n=Qe*He,rt=Me*ce,rn=Le*ce,Kt=0,Nt=0;if(A==="clip"){var At=da(R);Kt=At*ce,Nt=At*He}var dt=_e.x+rt-Kt,It=_e.y+Ye-Nt,Ke=dt+_e.width+2*Kt-rt-rn-at,zt=It+_e.height+2*Nt-Ye-_n-ct;u.left=Math.max(u.left,dt),u.top=Math.max(u.top,It),u.right=Math.min(u.right,Ke),u.bottom=Math.min(u.bottom,zt)}}),u}function us(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u="".concat(a),m=u.match(/^(.*)\%$/);return m?r*(parseFloat(m[1])/100):parseFloat(u)}function ls(r,a){var u=a||[],m=Rr(u,2),v=m[0],A=m[1];return[us(r.width,v),us(r.height,A)]}function cs(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[r[0],r[1]]}function qi(r,a){var u=a[0],m=a[1],v,A;return u==="t"?A=r.y:u==="b"?A=r.y+r.height:A=r.y+r.height/2,m==="l"?v=r.x:m==="r"?v=r.x+r.width:v=r.x+r.width/2,{x:v,y:A}}function Oi(r,a){var u={t:"b",b:"t",l:"r",r:"l"};return r.map(function(m,v){return v===a?u[m]||"c":m}).join("")}function Ks(r,a,u,m,v,A,R){var ee=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:v[m]||{}}),J=Rr(ee,2),te=J[0],xe=J[1],_e=c.useRef(0),Ee=c.useMemo(function(){return a?Ma(a):[]},[a]),X=c.useRef({}),he=function(){X.current={}};r||he();var ke=Ti(function(){if(a&&u&&r){let Ai=function(Xi,fa){var Ea=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zr,ba=jt.x+Xi,Pa=jt.y+fa,Ua=ba+Gt,vs=Pa+Wt,to=Math.max(ba,Ea.left),no=Math.max(Pa,Ea.top),ro=Math.min(Ua,Ea.right),io=Math.min(vs,Ea.bottom);return Math.max(0,(ro-to)*(io-no))},ms=function(){Vr=jt.y+hn,ri=Vr+Wt,_r=jt.x+fn,Yr=_r+Gt};var Me,Le,ce=a,He=ce.ownerDocument,at=la(ce),ct=at.getComputedStyle(ce),Ye=ct.width,_n=ct.height,rt=ct.position,rn=ce.style.left,Kt=ce.style.top,Nt=ce.style.right,At=ce.style.bottom,dt=dr(dr({},v[m]),A),It=He.createElement("div");(Me=ce.parentElement)===null||Me===void 0||Me.appendChild(It),It.style.left="".concat(ce.offsetLeft,"px"),It.style.top="".concat(ce.offsetTop,"px"),It.style.position=rt,It.style.height="".concat(ce.offsetHeight,"px"),It.style.width="".concat(ce.offsetWidth,"px"),ce.style.left="0",ce.style.top="0",ce.style.right="auto",ce.style.bottom="auto";var Ke;if(Array.isArray(u))Ke={x:u[0],y:u[1],width:0,height:0};else{var zt=u.getBoundingClientRect();Ke={x:zt.x,y:zt.y,width:zt.width,height:zt.height}}var jt=ce.getBoundingClientRect(),In=He.documentElement,fr=In.clientWidth,Lt=In.clientHeight,ft=In.scrollWidth,Ln=In.scrollHeight,Cn=In.scrollTop,Pn=In.scrollLeft,Wt=jt.height,Gt=jt.width,an=Ke.height,Gn=Ke.width,Bn={left:0,top:0,right:fr,bottom:Lt},Xn={left:-Pn,top:-Cn,right:ft-Pn,bottom:Ln-Cn},Qn=dt.htmlRegion,ar="visible",Ir="visibleFirst";Qn!=="scroll"&&Qn!==Ir&&(Qn=ar);var sn=Qn===Ir,Sr=os(Xn,Ee),ht=os(Bn,Ee),Zr=Qn===ar?ht:Sr,hr=sn?ht:Zr;ce.style.left="auto",ce.style.top="auto",ce.style.right="0",ce.style.bottom="0";var Lr=ce.getBoundingClientRect();ce.style.left=rn,ce.style.top=Kt,ce.style.right=Nt,ce.style.bottom=At,(Le=ce.parentElement)===null||Le===void 0||Le.removeChild(It);var sr=ca(Math.round(Gt/parseFloat(Ye)*1e3)/1e3),Yn=ca(Math.round(Wt/parseFloat(_n)*1e3)/1e3);if(sr===0||Yn===0||zi(u)&&!Hs(u))return;var mr=dt.offset,Br=dt.targetOffset,wn=ls(jt,mr),di=Rr(wn,2),or=di[0],Dn=di[1],Dr=ls(Ke,Br),Jn=Rr(Dr,2),li=Jn[0],kn=Jn[1];Ke.x-=li,Ke.y-=kn;var Hr=dt.points||[],vr=Rr(Hr,2),dn=vr[0],yn=vr[1],gr=cs(yn),rr=cs(dn),Qr=qi(Ke,gr),Wr=qi(jt,rr),pr=dr({},dt),fn=Qr.x-Wr.x+or,hn=Qr.y-Wr.y+Dn,En=Ai(fn,hn),ni=Ai(fn,hn,ht),tt=qi(Ke,["t","l"]),yt=qi(jt,["t","l"]),Tn=qi(Ke,["b","r"]),Cr=qi(jt,["b","r"]),qn=dt.overflow||{},Zi=qn.adjustX,ki=qn.adjustY,Si=qn.shiftX,Ci=qn.shiftY,kr=function(fa){return typeof fa=="boolean"?fa:fa>=0},Vr,ri,_r,Yr;ms();var vi=kr(ki),gi=rr[0]===gr[0];if(vi&&rr[0]==="t"&&(ri>hr.bottom||X.current.bt)){var fi=hn;gi?fi-=Wt-an:fi=tt.y-Cr.y-Dn;var Ei=Ai(fn,fi),Hi=Ai(fn,fi,ht);Ei>En||Ei===En&&(!sn||Hi>=ni)?(X.current.bt=!0,hn=fi,Dn=-Dn,pr.points=[Oi(rr,0),Oi(gr,0)]):X.current.bt=!1}if(vi&&rr[0]==="b"&&(Vr<hr.top||X.current.tb)){var wr=hn;gi?wr+=Wt-an:wr=Tn.y-yt.y-Dn;var Ni=Ai(fn,wr),ze=Ai(fn,wr,ht);Ni>En||Ni===En&&(!sn||ze>=ni)?(X.current.tb=!0,hn=wr,Dn=-Dn,pr.points=[Oi(rr,0),Oi(gr,0)]):X.current.tb=!1}var Et=kr(Zi),Mn=rr[1]===gr[1];if(Et&&rr[1]==="l"&&(Yr>hr.right||X.current.rl)){var mn=fn;Mn?mn-=Gt-Gn:mn=tt.x-Cr.x-or;var xn=Ai(mn,hn),$i=Ai(mn,hn,ht);xn>En||xn===En&&(!sn||$i>=ni)?(X.current.rl=!0,fn=mn,or=-or,pr.points=[Oi(rr,1),Oi(gr,1)]):X.current.rl=!1}if(Et&&rr[1]==="r"&&(_r<hr.left||X.current.lr)){var bi=fn;Mn?bi+=Gt-Gn:bi=Tn.x-yt.x-or;var Vi=Ai(bi,hn),pi=Ai(bi,hn,ht);Vi>En||Vi===En&&(!sn||pi>=ni)?(X.current.lr=!0,fn=bi,or=-or,pr.points=[Oi(rr,1),Oi(gr,1)]):X.current.lr=!1}ms();var _i=Si===!0?0:Si;typeof _i=="number"&&(_r<ht.left&&(fn-=_r-ht.left-or,Ke.x+Gn<ht.left+_i&&(fn+=Ke.x-ht.left+Gn-_i)),Yr>ht.right&&(fn-=Yr-ht.right-or,Ke.x>ht.right-_i&&(fn+=Ke.x-ht.right+_i)));var Ki=Ci===!0?0:Ci;typeof Ki=="number"&&(Vr<ht.top&&(hn-=Vr-ht.top-Dn,Ke.y+an<ht.top+Ki&&(hn+=Ke.y-ht.top+an-Ki)),ri>ht.bottom&&(hn-=ri-ht.bottom-Dn,Ke.y>ht.bottom-Ki&&(hn+=Ke.y-ht.bottom+Ki)));var ea=jt.x+fn,ta=ea+Gt,wi=jt.y+hn,_a=wi+Wt,Wi=Ke.x,Fi=Wi+Gn,ya=Ke.y,$a=ya+an,ir=Math.max(ea,Wi),vn=Math.min(ta,Fi),Vn=(ir+vn)/2,Jr=Vn-ea,ii=Math.max(wi,ya),xi=Math.min(_a,$a),Gi=(ii+xi)/2,Fa=Gi-wi;R==null||R(a,pr);var hs=Lr.right-jt.x-(fn+jt.width),eo=Lr.bottom-jt.y-(hn+jt.height);xe({ready:!0,offsetX:fn/sr,offsetY:hn/Yn,offsetR:hs/sr,offsetB:eo/Yn,arrowX:Jr/sr,arrowY:Fa/Yn,scaleX:sr,scaleY:Yn,align:pr})}}),Te=function(){_e.current+=1;var Le=_e.current;Promise.resolve().then(function(){_e.current===Le&&ke()})},Qe=function(){xe(function(Le){return dr(dr({},Le),{},{ready:!1})})};return mi(Qe,[m]),mi(function(){r||Qe()},[r]),[te.ready,te.offsetX,te.offsetY,te.offsetR,te.offsetB,te.arrowX,te.arrowY,te.scaleX,te.scaleY,te.align,Te]}function Ws(r){if(Array.isArray(r))return Sa(r)}function Gs(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function Xs(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ds(r){return Ws(r)||Gs(r)||za(r)||Xs()}function Qs(r,a,u,m,v){mi(function(){if(r&&a&&u){let _e=function(){m(),v()};var A=a,R=u,ee=Ma(A),J=Ma(R),te=la(R),xe=new Set([te].concat(ds(ee),ds(J)));return xe.forEach(function(Ee){Ee.addEventListener("scroll",_e,{passive:!0})}),te.addEventListener("resize",_e,{passive:!0}),m(),function(){xe.forEach(function(Ee){Ee.removeEventListener("scroll",_e),te.removeEventListener("resize",_e)})}}},[r,a,u])}var Oa={},uo=[],Na=function(a){uo.push(a)};function Ys(r,a){if(0)var u}function Js(r,a){if(0)var u}function qs(){Oa={}}function fs(r,a,u){!a&&!Oa[u]&&(r(!1,u),Oa[u]=!0)}function o(r,a){fs(Ys,r,a)}function f(r,a){fs(Js,r,a)}o.preMessage=Na,o.resetWarned=qs,o.noteOnce=f;var h=null,y=function(a){return+setTimeout(a,16)},D=function(a){return clearTimeout(a)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(y=function(a){return window.requestAnimationFrame(a)},D=function(a){return window.cancelAnimationFrame(a)});var j=0,Z=new Map;function le(r){Z.delete(r)}var be=function(a){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;j+=1;var m=j;function v(A){if(A===0)le(m),a();else{var R=y(function(){v(A-1)});Z.set(m,R)}}return v(u),m};be.cancel=function(r){var a=Z.get(r);return le(r),D(a)};var pe=be;function Pe(r,a,u,m,v,A,R,ee){var J=c.useRef(r),te=c.useRef(!1);J.current!==r&&(te.current=!0,J.current=r),c.useEffect(function(){var xe=pe(function(){te.current=!1});return function(){pe.cancel(xe)}},[r]),c.useEffect(function(){if(a&&m&&(!v||A)){var xe=function(){var rt=!1,rn=function(At){var dt=At.target;rt=R(dt)},Kt=function(At){var dt=At.target;!te.current&&J.current&&!rt&&!R(dt)&&ee(!1)};return[rn,Kt]},_e=xe(),Ee=Rr(_e,2),X=Ee[0],he=Ee[1],ke=xe(),Te=Rr(ke,2),Qe=Te[0],Me=Te[1],Le=la(m);Le.addEventListener("mousedown",X,!0),Le.addEventListener("click",he,!0),Le.addEventListener("contextmenu",he,!0);var ce=oa(u);if(ce&&(ce.addEventListener("mousedown",Qe,!0),ce.addEventListener("click",Me,!0),ce.addEventListener("contextmenu",Me,!0)),0)var He,at,ct,Ye;return function(){Le.removeEventListener("mousedown",X,!0),Le.removeEventListener("click",he,!0),Le.removeEventListener("contextmenu",he,!0),ce&&(ce.removeEventListener("mousedown",Qe,!0),ce.removeEventListener("click",Me,!0),ce.removeEventListener("contextmenu",Me,!0))}}},[a,u,m,v,A])}var ye=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Ue(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ui,a=c.forwardRef(function(u,m){var v=u.prefixCls,A=v===void 0?"rc-trigger-popup":v,R=u.children,ee=u.action,J=ee===void 0?"hover":ee,te=u.showAction,xe=u.hideAction,_e=u.popupVisible,Ee=u.defaultPopupVisible,X=u.onPopupVisibleChange,he=u.afterPopupVisibleChange,ke=u.mouseEnterDelay,Te=u.mouseLeaveDelay,Qe=Te===void 0?.1:Te,Me=u.focusDelay,Le=u.blurDelay,ce=u.mask,He=u.maskClosable,at=He===void 0?!0:He,ct=u.getPopupContainer,Ye=u.forceRender,_n=u.autoDestroy,rt=u.destroyPopupOnHide,rn=u.popup,Kt=u.popupClassName,Nt=u.popupStyle,At=u.popupPlacement,dt=u.builtinPlacements,It=dt===void 0?{}:dt,Ke=u.popupAlign,zt=u.zIndex,jt=u.stretch,In=u.getPopupClassNameFromAlign,fr=u.fresh,Lt=u.alignPoint,ft=u.onPopupClick,Ln=u.onPopupAlign,Cn=u.arrow,Pn=u.popupMotion,Wt=u.maskMotion,Gt=u.popupTransitionName,an=u.popupAnimation,Gn=u.maskTransitionName,Bn=u.maskAnimation,Xn=u.className,Qn=u.getTriggerDOMNode,ar=Es(u,ye),Ir=_n||rt||!1,sn=c.useState(!1),Sr=Rr(sn,2),ht=Sr[0],Zr=Sr[1];mi(function(){Zr(Ba())},[]);var hr=c.useRef({}),Lr=c.useContext(as),sr=c.useMemo(function(){return{registerSubPopup:function(Pt,Tr){hr.current[Pt]=Tr,Lr==null||Lr.registerSubPopup(Pt,Tr)}}},[Lr]),Yn=Is(),mr=c.useState(null),Br=Rr(mr,2),wn=Br[0],di=Br[1],or=Ti(function(Ge){zi(Ge)&&wn!==Ge&&di(Ge),Lr==null||Lr.registerSubPopup(Yn,Ge)}),Dn=c.useState(null),Dr=Rr(Dn,2),Jn=Dr[0],li=Dr[1],kn=c.useRef(null),Hr=Ti(function(Ge){zi(Ge)&&Jn!==Ge&&(li(Ge),kn.current=Ge)}),vr=c.Children.only(R),dn=(vr==null?void 0:vr.props)||{},yn={},gr=Ti(function(Ge){var Pt,Tr,Gr=Jn;return(Gr==null?void 0:Gr.contains(Ge))||((Pt=oa(Gr))===null||Pt===void 0?void 0:Pt.host)===Ge||Ge===Gr||(wn==null?void 0:wn.contains(Ge))||((Tr=oa(wn))===null||Tr===void 0?void 0:Tr.host)===Ge||Ge===wn||Object.values(hr.current).some(function(Mr){return(Mr==null?void 0:Mr.contains(Ge))||Ge===Mr})}),rr=ji(A,Pn,an,Gt),Qr=ji(A,Wt,Bn,Gn),Wr=c.useState(Ee||!1),pr=Rr(Wr,2),fn=pr[0],hn=pr[1],En=_e!=null?_e:fn,ni=Ti(function(Ge){_e===void 0&&hn(Ge)});mi(function(){hn(_e||!1)},[_e]);var tt=c.useRef(En);tt.current=En;var yt=Ti(function(Ge){(0,P.flushSync)(function(){En!==Ge&&(ni(Ge),X==null||X(Ge))})}),Tn=c.useRef(),Cr=function(){clearTimeout(Tn.current)},qn=function(Pt){var Tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Cr(),Tr===0?yt(Pt):Tn.current=setTimeout(function(){yt(Pt)},Tr*1e3)};c.useEffect(function(){return Cr},[]);var Zi=c.useState(!1),ki=Rr(Zi,2),Si=ki[0],Ci=ki[1];mi(function(Ge){(!Ge||En)&&Ci(!0)},[En]);var kr=c.useState(null),Vr=Rr(kr,2),ri=Vr[0],_r=Vr[1],Yr=c.useState([0,0]),vi=Rr(Yr,2),gi=vi[0],fi=vi[1],Ei=function(Pt){fi([Pt.clientX,Pt.clientY])},Hi=Ks(En,wn,Lt?gi:Jn,At,It,Ke,Ln),wr=Rr(Hi,11),Ni=wr[0],ze=wr[1],Et=wr[2],Mn=wr[3],mn=wr[4],xn=wr[5],$i=wr[6],bi=wr[7],Vi=wr[8],pi=wr[9],_i=wr[10],Ki=Zs(ht,J,te,xe),ea=Rr(Ki,2),ta=ea[0],wi=ea[1],_a=ta.has("click"),Wi=wi.has("click")||wi.has("contextMenu"),Fi=Ti(function(){Si||_i()}),ya=function(){tt.current&&Lt&&Wi&&qn(!1)};Qs(En,Jn,wn,Fi,ya),mi(function(){Fi()},[gi,At]),mi(function(){En&&!(It!=null&&It[At])&&Fi()},[JSON.stringify(Ke)]);var $a=c.useMemo(function(){var Ge=Ji(It,A,pi,Lt);return G()(Ge,In==null?void 0:In(pi))},[pi,In,It,A,Lt]);c.useImperativeHandle(m,function(){return{nativeElement:kn.current,forceAlign:Fi}});var ir=c.useState(0),vn=Rr(ir,2),Vn=vn[0],Jr=vn[1],ii=c.useState(0),xi=Rr(ii,2),Gi=xi[0],Fa=xi[1],hs=function(){if(jt&&Jn){var Pt=Jn.getBoundingClientRect();Jr(Pt.width),Fa(Pt.height)}},eo=function(){hs(),Fi()},Ai=function(Pt){Ci(!1),_i(),he==null||he(Pt)},ms=function(){return new Promise(function(Pt){hs(),_r(function(){return Pt})})};mi(function(){ri&&(_i(),ri(),_r(null))},[ri]);function Xi(Ge,Pt,Tr,Gr){yn[Ge]=function(Mr){var gs;Gr==null||Gr(Mr),qn(Pt,Tr);for(var ao=arguments.length,lo=new Array(ao>1?ao-1:0),ps=1;ps<ao;ps++)lo[ps-1]=arguments[ps];(gs=dn[Ge])===null||gs===void 0||gs.call.apply(gs,[dn,Mr].concat(lo))}}(_a||Wi)&&(yn.onClick=function(Ge){var Pt;tt.current&&Wi?qn(!1):!tt.current&&_a&&(Ei(Ge),qn(!0));for(var Tr=arguments.length,Gr=new Array(Tr>1?Tr-1:0),Mr=1;Mr<Tr;Mr++)Gr[Mr-1]=arguments[Mr];(Pt=dn.onClick)===null||Pt===void 0||Pt.call.apply(Pt,[dn,Ge].concat(Gr))}),Pe(En,Wi,Jn,wn,ce,at,gr,qn);var fa=ta.has("hover"),Ea=wi.has("hover"),ba,Pa;fa&&(Xi("onMouseEnter",!0,ke,function(Ge){Ei(Ge)}),Xi("onPointerEnter",!0,ke,function(Ge){Ei(Ge)}),ba=function(){(En||Si)&&qn(!0,ke)},Lt&&(yn.onMouseMove=function(Ge){var Pt;(Pt=dn.onMouseMove)===null||Pt===void 0||Pt.call(dn,Ge)})),Ea&&(Xi("onMouseLeave",!1,Qe),Xi("onPointerLeave",!1,Qe),Pa=function(){qn(!1,Qe)}),ta.has("focus")&&Xi("onFocus",!0,Me),wi.has("focus")&&Xi("onBlur",!1,Le),ta.has("contextMenu")&&(yn.onContextMenu=function(Ge){var Pt;tt.current&&wi.has("contextMenu")?qn(!1):(Ei(Ge),qn(!0)),Ge.preventDefault();for(var Tr=arguments.length,Gr=new Array(Tr>1?Tr-1:0),Mr=1;Mr<Tr;Mr++)Gr[Mr-1]=arguments[Mr];(Pt=dn.onContextMenu)===null||Pt===void 0||Pt.call.apply(Pt,[dn,Ge].concat(Gr))}),Xn&&(yn.className=G()(dn.className,Xn));var Ua=dr(dr({},dn),yn),vs={},to=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];to.forEach(function(Ge){ar[Ge]&&(vs[Ge]=function(){for(var Pt,Tr=arguments.length,Gr=new Array(Tr),Mr=0;Mr<Tr;Mr++)Gr[Mr]=arguments[Mr];(Pt=Ua[Ge])===null||Pt===void 0||Pt.call.apply(Pt,[Ua].concat(Gr)),ar[Ge].apply(ar,Gr)})});var no=c.cloneElement(vr,dr(dr({},Ua),vs)),ro={x:xn,y:$i},io=Cn?dr({},Cn!==!0?Cn:{}):null;return c.createElement(c.Fragment,null,c.createElement(me.Z,{disabled:!En,ref:Hr,onResize:eo},c.createElement(st,{getTriggerDOMNode:Qn},no)),c.createElement(as.Provider,{value:sr},c.createElement(zs,{portal:r,ref:or,prefixCls:A,popup:rn,className:G()(Kt,$a),style:Nt,target:Jn,onMouseEnter:ba,onMouseLeave:Pa,onPointerEnter:ba,zIndex:zt,open:En,keepDom:Si,fresh:fr,onClick:ft,mask:ce,motion:rr,maskMotion:Qr,onVisibleChanged:Ai,onPrepare:ms,forceRender:Ye,autoDestroy:Ir,getPopupContainer:ct,align:pi,arrow:io,arrowPos:ro,ready:Ni,offsetX:ze,offsetY:Et,offsetR:Mn,offsetB:mn,onAlign:Fi,stretch:jt,targetWidth:Vn/bi,targetHeight:Gi/Vi})))});return a}var Ie=Ue(Ui),Ae={adjustX:1,adjustY:1},Mt={topLeft:{points:["bl","tl"],overflow:Ae},topRight:{points:["br","tr"],overflow:Ae},bottomLeft:{points:["tl","bl"],overflow:Ae},bottomRight:{points:["tr","br"],overflow:Ae},leftTop:{points:["tr","tl"],overflow:Ae},leftBottom:{points:["br","bl"],overflow:Ae},rightTop:{points:["tl","tr"],overflow:Ae},rightBottom:{points:["bl","br"],overflow:Ae}},gt={topLeft:{points:["bl","tl"],overflow:Ae},topRight:{points:["br","tr"],overflow:Ae},bottomLeft:{points:["tl","bl"],overflow:Ae},bottomRight:{points:["tr","br"],overflow:Ae},rightTop:{points:["tr","tl"],overflow:Ae},rightBottom:{points:["br","bl"],overflow:Ae},leftTop:{points:["tl","tr"],overflow:Ae},leftBottom:{points:["bl","br"],overflow:Ae}},Ut=null;function wt(r,a,u){if(a)return a;if(u)return u[r]||u.other}var nt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Be(r){var a=r.prefixCls,u=r.visible,m=r.children,v=r.popup,A=r.popupStyle,R=r.popupClassName,ee=r.popupOffset,J=r.disabled,te=r.mode,xe=r.onVisibleChange,_e=c.useContext(N),Ee=_e.getPopupContainer,X=_e.rtl,he=_e.subMenuOpenDelay,ke=_e.subMenuCloseDelay,Te=_e.builtinPlacements,Qe=_e.triggerSubMenuAction,Me=_e.forceSubMenuRender,Le=_e.rootClassName,ce=_e.motion,He=_e.defaultMotions,at=c.useState(!1),ct=(0,x.Z)(at,2),Ye=ct[0],_n=ct[1],rt=X?(0,H.Z)((0,H.Z)({},gt),Te):(0,H.Z)((0,H.Z)({},Mt),Te),rn=nt[te],Kt=wt(te,ce,He),Nt=c.useRef(Kt);te!=="inline"&&(Nt.current=Kt);var At=(0,H.Z)((0,H.Z)({},Nt.current),{},{leavedClassName:"".concat(a,"-hidden"),removeOnLeave:!1,motionAppear:!0}),dt=c.useRef();return c.useEffect(function(){return dt.current=(0,Ne.Z)(function(){_n(u)}),function(){Ne.Z.cancel(dt.current)}},[u]),c.createElement(Ie,{prefixCls:a,popupClassName:G()("".concat(a,"-popup"),(0,k.Z)({},"".concat(a,"-rtl"),X),R,Le),stretch:te==="horizontal"?"minWidth":null,getPopupContainer:Ee,builtinPlacements:rt,popupPlacement:rn,popupVisible:Ye,popup:v,popupStyle:A,popupAlign:ee&&{offset:ee},action:J?[]:[Qe],mouseEnterDelay:he,mouseLeaveDelay:ke,onPopupVisibleChange:xe,forceRender:Me,popupMotion:At,fresh:!0},m)}function bn(r){var a=r.id,u=r.open,m=r.keyPath,v=r.children,A="inline",R=c.useContext(N),ee=R.prefixCls,J=R.forceSubMenuRender,te=R.motion,xe=R.defaultMotions,_e=R.mode,Ee=c.useRef(!1);Ee.current=_e===A;var X=c.useState(!Ee.current),he=(0,x.Z)(X,2),ke=he[0],Te=he[1],Qe=Ee.current?u:!1;c.useEffect(function(){Ee.current&&Te(!1)},[_e]);var Me=(0,H.Z)({},wt(A,te,xe));m.length>1&&(Me.motionAppear=!1);var Le=Me.onVisibleChanged;return Me.onVisibleChanged=function(ce){return!Ee.current&&!ce&&Te(!0),Le==null?void 0:Le(ce)},ke?null:c.createElement(b,{mode:A,locked:!Ee.current},c.createElement(ua.Z,(0,s.Z)({visible:Qe},Me,{forceRender:J,removeOnLeave:!1,leavedClassName:"".concat(ee,"-hidden")}),function(ce){var He=ce.className,at=ce.style;return c.createElement(Ii,{id:a,className:He,style:at},v)}))}var ln=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Sn=["active"],Hn=function(a){var u,m=a.style,v=a.className,A=a.title,R=a.eventKey,ee=a.warnKey,J=a.disabled,te=a.internalPopupClose,xe=a.children,_e=a.itemIcon,Ee=a.expandIcon,X=a.popupClassName,he=a.popupOffset,ke=a.popupStyle,Te=a.onClick,Qe=a.onMouseEnter,Me=a.onMouseLeave,Le=a.onTitleClick,ce=a.onTitleMouseEnter,He=a.onTitleMouseLeave,at=(0,S.Z)(a,ln),ct=_(R),Ye=c.useContext(N),_n=Ye.prefixCls,rt=Ye.mode,rn=Ye.openKeys,Kt=Ye.disabled,Nt=Ye.overflowDisabled,At=Ye.activeKey,dt=Ye.selectedKeys,It=Ye.itemIcon,Ke=Ye.expandIcon,zt=Ye.onItemClick,jt=Ye.onOpenChange,In=Ye.onActive,fr=c.useContext(kt),Lt=fr._internalRenderSubMenuItem,ft=c.useContext(Ze),Ln=ft.isSubPathKey,Cn=ue(),Pn="".concat(_n,"-submenu"),Wt=Kt||J,Gt=c.useRef(),an=c.useRef(),Gn=_e!=null?_e:It,Bn=Ee!=null?Ee:Ke,Xn=rn.includes(R),Qn=!Nt&&Xn,ar=Ln(dt,R),Ir=vt(R,Wt,ce,He),sn=Ir.active,Sr=(0,S.Z)(Ir,Sn),ht=c.useState(!1),Zr=(0,x.Z)(ht,2),hr=Zr[0],Lr=Zr[1],sr=function(yn){Wt||Lr(yn)},Yn=function(yn){sr(!0),Qe==null||Qe({key:R,domEvent:yn})},mr=function(yn){sr(!1),Me==null||Me({key:R,domEvent:yn})},Br=c.useMemo(function(){return sn||(rt!=="inline"?hr||Ln([At],R):!1)},[rt,sn,At,hr,R,Ln]),wn=Fe(Cn.length),di=function(yn){Wt||(Le==null||Le({key:R,domEvent:yn}),rt==="inline"&&jt(R,!Xn))},or=i(function(dn){Te==null||Te(Ve(dn)),zt(dn)}),Dn=function(yn){rt!=="inline"&&jt(R,yn)},Dr=function(){In(R)},Jn=ct&&"".concat(ct,"-popup"),li=c.createElement("div",(0,s.Z)({role:"menuitem",style:wn,className:"".concat(Pn,"-title"),tabIndex:Wt?null:-1,ref:Gt,title:typeof A=="string"?A:null,"data-menu-id":Nt&&ct?null:ct,"aria-expanded":Qn,"aria-haspopup":!0,"aria-controls":Jn,"aria-disabled":Wt,onClick:di,onFocus:Dr},Sr),A,c.createElement(fe,{icon:rt!=="horizontal"?Bn:void 0,props:(0,H.Z)((0,H.Z)({},a),{},{isOpen:Qn,isSubMenu:!0})},c.createElement("i",{className:"".concat(Pn,"-arrow")}))),kn=c.useRef(rt);if(rt!=="inline"&&Cn.length>1?kn.current="vertical":kn.current=rt,!Nt){var Hr=kn.current;li=c.createElement(Be,{mode:Hr,prefixCls:Pn,visible:!te&&Qn&&rt!=="inline",popupClassName:X,popupOffset:he,popupStyle:ke,popup:c.createElement(b,{mode:Hr==="horizontal"?"vertical":Hr},c.createElement(Ii,{id:Jn,ref:an},xe)),disabled:Wt,onVisibleChange:Dn},li)}var vr=c.createElement(on.Item,(0,s.Z)({role:"none"},at,{component:"li",style:m,className:G()(Pn,"".concat(Pn,"-").concat(rt),v,(u={},(0,k.Z)(u,"".concat(Pn,"-open"),Qn),(0,k.Z)(u,"".concat(Pn,"-active"),Br),(0,k.Z)(u,"".concat(Pn,"-selected"),ar),(0,k.Z)(u,"".concat(Pn,"-disabled"),Wt),u)),onMouseEnter:Yn,onMouseLeave:mr}),li,!Nt&&c.createElement(bn,{id:Jn,open:Qn,keyPath:Cn},xe));return Lt&&(vr=Lt(vr,a,{selected:ar,active:Br,open:Qn,disabled:Wt})),c.createElement(b,{onItemClick:or,mode:rt==="horizontal"?"vertical":rt,itemIcon:Gn,expandIcon:Bn},vr)};function tr(r){var a=r.eventKey,u=r.children,m=ue(a),v=hi(u,m),A=g();c.useEffect(function(){if(A)return A.registerPath(a,m),function(){A.unregisterPath(a,m)}},[m]);var R;return A?R=v:R=c.createElement(Hn,r,v),c.createElement(de.Provider,{value:m},R)}var Jt=d(71002),Ot=["className","title","eventKey","children"],Fn=["children"],nr=function(a){var u=a.className,m=a.title,v=a.eventKey,A=a.children,R=(0,S.Z)(a,Ot),ee=c.useContext(N),J=ee.prefixCls,te="".concat(J,"-item-group");return c.createElement("li",(0,s.Z)({role:"presentation"},R,{onClick:function(_e){return _e.stopPropagation()},className:G()(te,u)}),c.createElement("div",{role:"presentation",className:"".concat(te,"-title"),title:typeof m=="string"?m:void 0},m),c.createElement("ul",{role:"group",className:"".concat(te,"-list")},A))};function cn(r){var a=r.children,u=(0,S.Z)(r,Fn),m=ue(u.eventKey),v=hi(a,m),A=g();return A?v:c.createElement(nr,(0,pt.Z)(u,["warnKey"]),v)}function xt(r){var a=r.className,u=r.style,m=c.useContext(N),v=m.prefixCls,A=g();return A?null:c.createElement("li",{role:"separator",className:G()("".concat(v,"-item-divider"),a),style:u})}var qt=["label","children","key","type"];function _t(r){return(r||[]).map(function(a,u){if(a&&(0,Jt.Z)(a)==="object"){var m=a,v=m.label,A=m.children,R=m.key,ee=m.type,J=(0,S.Z)(m,qt),te=R!=null?R:"tmp-".concat(u);return A||ee==="group"?ee==="group"?c.createElement(cn,(0,s.Z)({key:te},J,{title:v}),_t(A)):c.createElement(tr,(0,s.Z)({key:te},J,{title:v}),_t(A)):ee==="divider"?c.createElement(xt,(0,s.Z)({key:te},J)):c.createElement(Kn,(0,s.Z)({key:te},J),v)}return null}).filter(function(a){return a})}function br(r,a,u){var m=r;return a&&(m=_t(a)),hi(m,u)}var nn=["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"],Wn=[],ui=c.forwardRef(function(r,a){var u,m,v=r,A=v.prefixCls,R=A===void 0?"rc-menu":A,ee=v.rootClassName,J=v.style,te=v.className,xe=v.tabIndex,_e=xe===void 0?0:xe,Ee=v.items,X=v.children,he=v.direction,ke=v.id,Te=v.mode,Qe=Te===void 0?"vertical":Te,Me=v.inlineCollapsed,Le=v.disabled,ce=v.disabledOverflow,He=v.subMenuOpenDelay,at=He===void 0?.1:He,ct=v.subMenuCloseDelay,Ye=ct===void 0?.1:ct,_n=v.forceSubMenuRender,rt=v.defaultOpenKeys,rn=v.openKeys,Kt=v.activeKey,Nt=v.defaultActiveFirst,At=v.selectable,dt=At===void 0?!0:At,It=v.multiple,Ke=It===void 0?!1:It,zt=v.defaultSelectedKeys,jt=v.selectedKeys,In=v.onSelect,fr=v.onDeselect,Lt=v.inlineIndent,ft=Lt===void 0?24:Lt,Ln=v.motion,Cn=v.defaultMotions,Pn=v.triggerSubMenuAction,Wt=Pn===void 0?"hover":Pn,Gt=v.builtinPlacements,an=v.itemIcon,Gn=v.expandIcon,Bn=v.overflowedIndicator,Xn=Bn===void 0?"...":Bn,Qn=v.overflowedIndicatorPopupClassName,ar=v.getPopupContainer,Ir=v.onClick,sn=v.onOpenChange,Sr=v.onKeyDown,ht=v.openAnimation,Zr=v.openTransitionName,hr=v._internalRenderMenuItem,Lr=v._internalRenderSubMenuItem,sr=(0,S.Z)(v,nn),Yn=c.useMemo(function(){return br(X,Ee,Wn)},[X,Ee]),mr=c.useState(!1),Br=(0,x.Z)(mr,2),wn=Br[0],di=Br[1],or=c.useRef(),Dn=B(ke),Dr=he==="rtl",Jn=(0,tn.Z)(rt,{value:rn,postState:function(vn){return vn||Wn}}),li=(0,x.Z)(Jn,2),kn=li[0],Hr=li[1],vr=function(vn){var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Jr(){Hr(vn),sn==null||sn(vn)}Vn?(0,P.flushSync)(Jr):Jr()},dn=c.useState(kn),yn=(0,x.Z)(dn,2),gr=yn[0],rr=yn[1],Qr=c.useRef(!1),Wr=c.useMemo(function(){return(Qe==="inline"||Qe==="vertical")&&Me?["vertical",Me]:[Qe,!1]},[Qe,Me]),pr=(0,x.Z)(Wr,2),fn=pr[0],hn=pr[1],En=fn==="inline",ni=c.useState(fn),tt=(0,x.Z)(ni,2),yt=tt[0],Tn=tt[1],Cr=c.useState(hn),qn=(0,x.Z)(Cr,2),Zi=qn[0],ki=qn[1];c.useEffect(function(){Tn(fn),ki(hn),Qr.current&&(En?Hr(gr):vr(Wn))},[fn,hn]);var Si=c.useState(0),Ci=(0,x.Z)(Si,2),kr=Ci[0],Vr=Ci[1],ri=kr>=Yn.length-1||yt!=="horizontal"||ce;c.useEffect(function(){En&&rr(kn)},[kn]),c.useEffect(function(){return Qr.current=!0,function(){Qr.current=!1}},[]);var _r=n(),Yr=_r.registerPath,vi=_r.unregisterPath,gi=_r.refreshOverflowKeys,fi=_r.isSubPathKey,Ei=_r.getKeyPath,Hi=_r.getKeys,wr=_r.getSubPathKeys,Ni=c.useMemo(function(){return{registerPath:Yr,unregisterPath:vi}},[Yr,vi]),ze=c.useMemo(function(){return{isSubPathKey:fi}},[fi]);c.useEffect(function(){gi(ri?Wn:Yn.slice(kr+1).map(function(ir){return ir.key}))},[kr,ri]);var Et=(0,tn.Z)(Kt||Nt&&((u=Yn[0])===null||u===void 0?void 0:u.key),{value:Kt}),Mn=(0,x.Z)(Et,2),mn=Mn[0],xn=Mn[1],$i=i(function(ir){xn(ir)}),bi=i(function(){xn(void 0)});(0,c.useImperativeHandle)(a,function(){return{list:or.current,focus:function(vn){var Vn,Jr=mn!=null?mn:(Vn=Yn.find(function(Fa){return!Fa.props.disabled}))===null||Vn===void 0?void 0:Vn.key;if(Jr){var ii,xi,Gi;(ii=or.current)===null||ii===void 0||(xi=ii.querySelector("li[data-menu-id='".concat(W(Dn,Jr),"']")))===null||xi===void 0||(Gi=xi.focus)===null||Gi===void 0||Gi.call(xi,vn)}}}});var Vi=(0,tn.Z)(zt||[],{value:jt,postState:function(vn){return Array.isArray(vn)?vn:vn==null?Wn:[vn]}}),pi=(0,x.Z)(Vi,2),_i=pi[0],Ki=pi[1],ea=function(vn){if(dt){var Vn=vn.key,Jr=_i.includes(Vn),ii;Ke?Jr?ii=_i.filter(function(Gi){return Gi!==Vn}):ii=[].concat((0,V.Z)(_i),[Vn]):ii=[Vn],Ki(ii);var xi=(0,H.Z)((0,H.Z)({},vn),{},{selectedKeys:ii});Jr?fr==null||fr(xi):In==null||In(xi)}!Ke&&kn.length&&yt!=="inline"&&vr(Wn)},ta=i(function(ir){Ir==null||Ir(Ve(ir)),ea(ir)}),wi=i(function(ir,vn){var Vn=kn.filter(function(ii){return ii!==ir});if(vn)Vn.push(ir);else if(yt!=="inline"){var Jr=wr(ir);Vn=Vn.filter(function(ii){return!Jr.has(ii)})}(0,pn.Z)(kn,Vn,!0)||vr(Vn,!0)}),_a=function(vn,Vn){var Jr=Vn!=null?Vn:!kn.includes(vn);wi(vn,Jr)},Wi=Nr(yt,mn,Dr,Dn,or,Hi,Ei,xn,_a,Sr);c.useEffect(function(){di(!0)},[]);var Fi=c.useMemo(function(){return{_internalRenderMenuItem:hr,_internalRenderSubMenuItem:Lr}},[hr,Lr]),ya=yt!=="horizontal"||ce?Yn:Yn.map(function(ir,vn){return c.createElement(b,{key:ir.key,overflowDisabled:vn>kr},ir)}),$a=c.createElement(on,(0,s.Z)({id:ke,ref:or,prefixCls:"".concat(R,"-overflow"),component:"ul",itemComponent:Kn,className:G()(R,"".concat(R,"-root"),"".concat(R,"-").concat(yt),te,(m={},(0,k.Z)(m,"".concat(R,"-inline-collapsed"),Zi),(0,k.Z)(m,"".concat(R,"-rtl"),Dr),m),ee),dir:he,style:J,role:"menu",tabIndex:_e,data:ya,renderRawItem:function(vn){return vn},renderRawRest:function(vn){var Vn=vn.length,Jr=Vn?Yn.slice(-Vn):null;return c.createElement(tr,{eventKey:t,title:Xn,disabled:ri,internalPopupClose:Vn===0,popupClassName:Qn},Jr)},maxCount:yt!=="horizontal"||ce?on.INVALIDATE:on.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(vn){Vr(vn)},onKeyDown:Wi},sr));return c.createElement(kt.Provider,{value:Fi},c.createElement(ut.Provider,{value:Dn},c.createElement(b,{prefixCls:R,rootClassName:ee,mode:yt,openKeys:kn,rtl:Dr,disabled:Le,motion:wn?Ln:null,defaultMotions:wn?Cn:null,activeKey:mn,onActive:$i,onInactive:bi,selectedKeys:_i,inlineIndent:ft,subMenuOpenDelay:at,subMenuCloseDelay:Ye,forceSubMenuRender:_n,builtinPlacements:Gt,triggerSubMenuAction:Wt,getPopupContainer:ar,itemIcon:an,expandIcon:Gn,onItemClick:ta,onOpenChange:wi},c.createElement(Ze.Provider,{value:ze},$a),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(F.Provider,{value:Ni},Yn)))))}),Fr=ui,jr=Fr;jr.Item=Kn,jr.SubMenu=tr,jr.ItemGroup=cn,jr.Divider=xt;var ci=jr},99962:function($t,Re){"use strict";var d;var s=Symbol.for("react.element"),k=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),ne=Symbol.for("react.context"),G=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),re=Symbol.for("react.offscreen"),Oe;Oe=Symbol.for("react.module.reference");function oe(L){if(typeof L=="object"&&L!==null){var C=L.$$typeof;switch(C){case s:switch(L=L.type,L){case H:case x:case V:case $:case me:return L;default:switch(L=L&&L.$$typeof,L){case G:case ne:case c:case U:case Y:case S:return L;default:return C}}case k:return C}}}d=ne,d=S,d=s,Re.ForwardRef=c,d=H,d=U,d=Y,d=k,d=x,d=V,d=$,d=me,d=function(){return!1},d=function(){return!1},d=function(L){return oe(L)===ne},d=function(L){return oe(L)===S},d=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===s},d=function(L){return oe(L)===c},d=function(L){return oe(L)===H},d=function(L){return oe(L)===U},Re.isMemo=function(L){return oe(L)===Y},d=function(L){return oe(L)===k},d=function(L){return oe(L)===x},d=function(L){return oe(L)===V},d=function(L){return oe(L)===$},d=function(L){return oe(L)===me},d=function(L){return typeof L=="string"||typeof L=="function"||L===H||L===x||L===V||L===$||L===me||L===re||typeof L=="object"&&L!==null&&(L.$$typeof===U||L.$$typeof===Y||L.$$typeof===S||L.$$typeof===ne||L.$$typeof===c||L.$$typeof===Oe||L.getModuleId!==void 0)},d=oe},8399:function($t,Re,d){"use strict";$t.exports=d(99962)},66680:function($t,Re,d){"use strict";d.d(Re,{Z:function(){return k}});var s=d(67294);function k(H){var V=s.useRef();V.current=H;var x=s.useCallback(function(){for(var S,ne=arguments.length,G=new Array(ne),c=0;c<ne;c++)G[c]=arguments[c];return(S=V.current)===null||S===void 0?void 0:S.call.apply(S,[V].concat(G))},[]);return x}},21770:function($t,Re,d){"use strict";d.d(Re,{Z:function(){return S}});var s=d(97685),k=d(66680),H=d(8410),V=d(63896);function x(ne){return ne!==void 0}function S(ne,G){var c=G||{},$=c.defaultValue,me=c.value,Y=c.onChange,U=c.postState,re=(0,V.Z)(function(){return x(me)?me:x($)?typeof $=="function"?$():$:typeof ne=="function"?ne():ne}),Oe=(0,s.Z)(re,2),oe=Oe[0],L=Oe[1],C=me!==void 0?me:oe,O=U?U(C):C,T=(0,k.Z)(Y),z=(0,V.Z)([C]),w=(0,s.Z)(z,2),P=w[0],ie=w[1];(0,H.o)(function(){var ge=P[0];oe!==ge&&T(oe,ge)},[P]),(0,H.o)(function(){x(me)||L(me)},[me]);var K=(0,k.Z)(function(ge,$e){L(ge,$e),ie([C],$e)});return[O,K]}},91881:function($t,Re,d){"use strict";var s=d(71002),k=d(80334);function H(V,x){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ne=new Set;function G(c,$){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Y=ne.has(c);if((0,k.ZP)(!Y,"Warning: There may be circular references"),Y)return!1;if(c===$)return!0;if(S&&me>1)return!1;ne.add(c);var U=me+1;if(Array.isArray(c)){if(!Array.isArray($)||c.length!==$.length)return!1;for(var re=0;re<c.length;re++)if(!G(c[re],$[re],U))return!1;return!0}if(c&&$&&(0,s.Z)(c)==="object"&&(0,s.Z)($)==="object"){var Oe=Object.keys(c);return Oe.length!==Object.keys($).length?!1:Oe.every(function(oe){return G(c[oe],$[oe],U)})}return!1}return G(V,x)}Re.Z=H},98423:function($t,Re,d){"use strict";d.d(Re,{Z:function(){return k}});var s=d(1413);function k(H,V){var x=(0,s.Z)({},H);return Array.isArray(V)&&V.forEach(function(S){delete x[S]}),x}},18034:function($t){var Re=arguments[3],d=arguments[4],s=arguments[5],k=JSON.stringify;$t.exports=function(H,V){for(var x,S=Object.keys(s),ne=0,G=S.length;ne<G;ne++){var c=S[ne],$=s[c].exports;if($===H||$&&$.default===H){x=c;break}}if(!x){x=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var me={},ne=0,G=S.length;ne<G;ne++){var c=S[ne];me[c]=c}d[x]=["function(require,module,exports){"+H+"(self); }",me]}var Y=Math.floor(Math.pow(16,8)*Math.random()).toString(16),U={};U[x]=x,d[Y]=["function(require,module,exports){var f = require("+k(x)+");(f.default ? f.default : f)(self);}",U];var re={};Oe(Y);function Oe(z){re[z]=!0;for(var w in d[z][1]){var P=d[z][1][w];re[P]||Oe(P)}}var oe="("+Re+")({"+Object.keys(re).map(function(z){return k(z)+":["+d[z][0]+","+k(d[z][1])+"]"}).join(",")+"},{},["+k(Y)+"])",L=window.URL||window.webkitURL||window.mozURL||window.msURL,C=new Blob([oe],{type:"text/javascript"});if(V&&V.bare)return C;var O=L.createObjectURL(C),T=new Worker(O);return T.objectURL=O,T}}}]);
|