(self.webpackChunk=self.webpackChunk||[]).push([[2524],{40001:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return g}});var N=W(54476),G=W(59301),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},E=w,O=W(7657),A=function(m,a){return G.createElement(O.Z,(0,N.Z)({},m,{ref:a,icon:E}))},_=G.forwardRef(A),g=_},84105:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return g}});var N=W(54476),G=W(59301),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},E=w,O=W(7657),A=function(m,a){return G.createElement(O.Z,(0,N.Z)({},m,{ref:a,icon:E}))},_=G.forwardRef(A),g=_},18785:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return g}});var N=W(54476),G=W(59301),w={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"},E=w,O=W(7657),A=function(m,a){return G.createElement(O.Z,(0,N.Z)({},m,{ref:a,icon:E}))},_=G.forwardRef(A),g=_},73331:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return g}});var N=W(54476),G=W(59301),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},E=w,O=W(7657),A=function(m,a){return G.createElement(O.Z,(0,N.Z)({},m,{ref:a,icon:E}))},_=G.forwardRef(A),g=_},15277:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return g}});var N=W(54476),G=W(59301),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},E=w,O=W(7657),A=function(m,a){return G.createElement(O.Z,(0,N.Z)({},m,{ref:a,icon:E}))},_=G.forwardRef(A),g=_},33853:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return g}});var N=W(54476),G=W(59301),w={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"},E=w,O=W(7657),A=function(m,a){return G.createElement(O.Z,(0,N.Z)({},m,{ref:a,icon:E}))},_=G.forwardRef(A),g=_},38819:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return g}});var N=W(54476),G=W(59301),w={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"},E=w,O=W(7657),A=function(m,a){return G.createElement(O.Z,(0,N.Z)({},m,{ref:a,icon:E}))},_=G.forwardRef(A),g=_},47472:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return g}});var N=W(54476),G=W(59301),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},E=w,O=W(7657),A=function(m,a){return G.createElement(O.Z,(0,N.Z)({},m,{ref:a,icon:E}))},_=G.forwardRef(A),g=_},44080:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return n}});var N=W(59301),G=W(8591),w=W(38854),E=W(73217),O=W(80360),A=W(41867),_=W(56102),g=W(84056),x={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"},m=(s,d,o)=>new Promise((c,f)=>{var e=l=>{try{i(o.next(l))}catch(v){f(v)}},t=l=>{try{i(o.throw(l))}catch(v){f(v)}},i=l=>l.done?c(l.value):Promise.resolve(l.value).then(e,t);i((o=o.apply(s,d)).next())});function a(s){if(isNaN(s))return{minutes:"00",seconds:"00"};const d=new Date(s*1e3).toISOString().substr(11,8);return{hour:d.substr(0,2),minutes:d.substr(3,2),seconds:d.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function u(s,d){return s-d}function h(s){s.sort(u);let d=0;for(let o=0;o{},handlePlay:l=()=>{},handlePlayEnded:v=()=>{},autoPlay:y=!1,onPlayEnded:p=()=>{},isShowWaterMark:C=!0},S)=>{var T;const I=((T=d==null?void 0:d.split("."))==null?void 0:T.pop())==="flv",M=(0,N.useRef)(),P=(0,N.useRef)(),L=(0,N.useRef)(),R=(0,N.useRef)(),B=(0,N.useRef)(),U=(0,N.useRef)(),H=(0,N.useRef)(),K=(0,N.useRef)(),V=(0,N.useRef)(),k=(0,N.useRef)(),$=(0,N.useRef)(),ae=(0,N.useRef)(),le=(0,N.useRef)(),he=(0,N.useRef)(),ge=navigator.userAgent.toLowerCase().match(r),me=ge?ge[0]:"pc",pe=(0,N.useRef)(!1),Ee=(0,A.eY)();let de=0,ve=0,ce=0,oe=null,X=!1,ne=20,j=1,re=!1,Z=!1,ee=[];(0,N.useImperativeHandle)(S,()=>({getLastUpdatedTime:()=>M.current.currentTime,getDuration:()=>M.current.duration})),G.ZP.config({maxCount:1,getContainer:()=>L.current});const se=(0,N.useCallback)((Ne,Le=!1)=>{let ue={point:M.current.currentTime};oe?(ue.log_id=oe,ue.watch_duration=h(ee),ue.total_duration=ve):(e?(ue.video_id=parseInt(c,10),ue.course_id=e):ue.video_id=c,ue.duration=de,ue.device=me),Le&&(ue.ed="1");function xe(){return m(this,null,function*(){re=!0,oe=yield f==null?void 0:f(ue),re=!1,Ne&&Ne()})}xe()},[c,e]);(0,N.useEffect)(()=>{M.current&&(R.current.style.display="none",B.current.style.display="block"),G.ZP.destroy();let Ne=null;return E.Z.isSupported&&I&&d&&(d==null?void 0:d.indexOf(".m3u8"))<0?(Ne=E.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:d,muted:!1}),M.current&&(Ne.attachMediaElement(M.current),Ne.load())):M.current.setAttribute("src",d),ie(),()=>{Ne&&(Ne.unload(),Ne.pause(),Ne.destroy(),Ne=null)}},[M,I,d]);function J(){M.current.paused?(R.current.style.display="none",B.current.style.display="block"):(R.current.style.display="block",B.current.style.display="none")}function ie(){$.current.style.display="none",le.current.style.display="none",ae.current.style.display="none",M.current.muted||M.current.volume===0?$.current.style.display="block":M.current.volume>0&&M.current.volume<=.5?le.current.style.display="block":ae.current.style.display="block"}(0,N.useEffect)(()=>{const Ne=document.getElementById("play"),Le=document.querySelectorAll(".playback-icons use");function ue(){l(),t&&!pe.current&&(M.current.currentTime=t),pe.current=!0,ee.push(M.current.currentTime),X||(X=!0,o&&se())}function xe(){return m(this,null,function*(){J(),ee.push(M.current.currentTime),o&&se(()=>{oe=null,ce=0,X=!1,re=!1,Z=!1,ee=[],ve=0,j=1},!0),p()})}function be(){U.current.value=Math.round(M.current.currentTime),H.current.value=Math.round(M.current.currentTime)}function Ae(){const st=a(Math.round(M.current.currentTime));V.current.innerText=`${st.hour>0?st.hour+":":""}${st.minutes}:${st.seconds}`,V.current.setAttribute("datetime",`${st.hour>0?" "+st.hour+" ":""}${st.minutes}m ${st.seconds}s`)}function Qe(){var st,pt,yt,mt,Tt,lt,At;const Lt=Math.round((st=M.current)==null?void 0:st.duration);(yt=(pt=U.current)==null?void 0:pt.setAttribute)==null||yt.call(pt,"max",Lt),(Tt=(mt=H.current)==null?void 0:mt.setAttribute)==null||Tt.call(mt,"max",Lt);const Ct=a(Lt);K.current&&(K.current.innerText=`${Ct.hour>0?Ct.hour+":":""}${Ct.minutes}:${Ct.seconds}`,(At=(lt=K.current).setAttribute)==null||At.call(lt,"datetime",`${Ct.hour>0?" "+Ct.hour+" ":""}${Ct.minutes}m ${Ct.seconds}s`))}function et(){try{const st=Math.round(M.current.duration);U.current.setAttribute("max",st),H.current.setAttribute("max",st);const pt=a(st);K.current.innerText=`${pt.hour>0?pt.hour+":":""}${pt.minutes}:${pt.seconds}`,K.current.setAttribute("datetime",`${pt.hour>0?" "+pt.hour+" ":""}${pt.minutes}m ${pt.seconds}s`),be(),Ae();const{width:yt,height:mt,x:Tt,y:lt}=P.current.getBoundingClientRect();if(Tt<0||lt<0||!yt)return;if(!Z){let At=M.current.currentTime,Lt=At-ce;Math.abs(Lt)<10?(ve+=Math.abs(Lt),ce=At,re||ve-j*ne>=0&&(j++,ee.push(ce),o&&se())):(ce=At,o&&se())}}catch(st){console.log(st)}}function at(){Z=!0}function tt(){M.current.playing&&ee.push(M.current.currentTime,ce),ce=M.current.currentTime,Z=!1}function _t(){de=M.current.duration,de<=20&&(ne=de/3),M.current.addEventListener("play",ue)}function ze(st){st.preventDefault(),(0,g.vp)()?(M.current.style.width="100%",M.current.style.height="100%"):M.current.style.cssText=""}function Ke(){i()}function ke(st){if(!s){G.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const pt=st.target.dataset.seek?st.target.dataset.seek:st.target.value;M.current.currentTime=pt,H.current.value=pt,U.current.value=pt}function Rt(st){const pt=Math.round(st.offsetX/st.target.clientWidth*parseInt(st.target.getAttribute("max"),10));U.current.setAttribute("data-seek",pt);const yt=a(pt);k.current.textContent=`${yt.hour>0?yt.hour+":":""}${yt.minutes}:${yt.seconds}`;const mt=M.current.getBoundingClientRect();k.current.style.left=`${st.pageX-mt.left}px`}function it(st){switch(st.code){case"Space":st.preventDefault(),De();break;case"ArrowRight":if(st.preventDefault(),!s){G.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(M.current.currentTime>=M.current.duration)break;M.current.currentTime=parseInt(M.current.currentTime)+5,be();break;case"ArrowLeft":if(st.preventDefault(),!s){G.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(M.current.currentTime===0)break;M.current.currentTime=parseInt(M.current.currentTime)-5,be();break;case"ArrowUp":st.preventDefault(),M.current.volume<1&&(M.current.volume=(parseInt(M.current.volume*10)+1)/10);break;case"ArrowDown":st.preventDefault(),M.current.volume>0&&(M.current.volume=(parseInt(M.current.volume*10)-1)/10);break}}return L.current.addEventListener((0,g.gH)(),ze),M.current.addEventListener("canplay",_t),M.current.addEventListener("ended",xe),M.current.addEventListener("seeking",at),M.current.addEventListener("seeked",tt),M.current.addEventListener("loadedmetadata",Qe),U.current.addEventListener("mousemove",Rt),U.current.addEventListener("input",ke),M.current.addEventListener("timeupdate",et),M.current.addEventListener("pause",Ke),M.current.addEventListener("volumechange",ie),document.addEventListener("keydown",it),()=>{var st,pt,yt,mt,Tt,lt,At,Lt,Ct,jt,Yt,qe;(st=M.current)==null||st.removeEventListener("canplay",_t),(pt=M.current)==null||pt.removeEventListener("play",ue),(yt=M.current)==null||yt.removeEventListener("ended",xe),(mt=M.current)==null||mt.removeEventListener("seeking",at),(Tt=M.current)==null||Tt.removeEventListener("seeked",tt),(lt=U.current)==null||lt.removeEventListener("mousemove",Rt),(At=U.current)==null||At.removeEventListener("input",ke),(Lt=M.current)==null||Lt.removeEventListener("timeupdate",et),(Ct=M.current)==null||Ct.removeEventListener("pause",Ke),(jt=M.current)==null||jt.removeEventListener("loadedmetadata",Qe),(Yt=M.current)==null||Yt.removeEventListener("volumechange",ie),document.removeEventListener("keydown",it),(qe=M.current)!=null&&qe.playing&&(ee.push(ce,M.current.currentTime),o&&se())}},[M,d]),(0,N.useEffect)(()=>{if(M.current.onended=()=>{v(M)},M.current.oncontextmenu=()=>!1,(d==null?void 0:d.indexOf(".m3u8"))>-1){if(M.current.canPlayType("application/vnd.apple.mpegurl"))M.current.src=d;else if(O.ZP.isSupported()){var Ne=new O.ZP;Ne.loadSource(d),Ne.attachMedia(M.current)}}},[d]);const[fe,_e]=(0,N.useState)(1),De=()=>{M.current.paused||M.current.ended?M.current.play():M.current.pause(),J()};function Ie(){M.current.muted=!M.current.muted,M.current.muted?(he.current.setAttribute("data-volume",volume.value),he.current.value=0):he.current.value=he.current.dataset.volume}return N.createElement("div",{style:{position:"relative"},ref:L},N.createElement("div",{ref:P,className:`${x.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${x.animate__loop}`},C&&Ee?Ee.login:" "),N.createElement("div",{className:x.container},N.createElement("div",{className:x["video-container"],id:"video-container"},N.createElement("div",{className:x["playback-animation"],id:"playback-animation"},N.createElement("svg",{className:x["playback-icons"]},N.createElement("use",{className:"hidden",href:"#play-icon"}),N.createElement("use",{href:"#pause"}))),N.createElement("video",{className:x.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:M,autoPlay:y}),N.createElement("div",{className:`${x["video-controls"]} `,id:"video-controls"},N.createElement("div",{className:x["bottom-controls"]},N.createElement("div",{className:x["left-controls"]},N.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:De},N.createElement("svg",{className:x["playback-icons"]},N.createElement("use",{ref:B,href:"#play-icon"}),N.createElement("use",{ref:R,style:{display:"none"},href:"#pause"}))),N.createElement("div",{className:x.time},N.createElement("time",{id:"time-elapsed",ref:V},"00:00"),N.createElement("span",null," / "),N.createElement("time",{id:"duration",ref:K},"00:00"))),N.createElement("div",{className:x["right-controls"]},s&&N.createElement(w.Z,{placement:"top",overlayClassName:x.rateOverlay,getPopupContainer:Ne=>Ne.parentNode,menu:{items:[{key:"1",label:N.createElement("span",{onClick:()=>{_e(1),M.current.playbackRate=1}},"1.0x")},{key:"2",label:N.createElement("span",{onClick:()=>{_e(1.5),M.current.playbackRate=1.5}},"1.5x")},{key:"3",label:N.createElement("span",{onClick:()=>{_e(2),M.current.playbackRate=2}},"2.0x")}]}},N.createElement("div",{className:`${x.controlText} mr5`},"\u500D\u901F")),N.createElement(_.CopyToClipboard,{text:d,onCopy:()=>G.ZP.success("\u590D\u5236\u6210\u529F")},N.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},N.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),N.createElement("div",{className:x["volume-controls"]},N.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:x["volume-button"],id:"volume-button",onClick:Ie},N.createElement("i",{ref:$,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),N.createElement("i",{ref:le,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),N.createElement("i",{ref:ae,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),N.createElement("input",{className:x.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:he,style:{display:"none"},onClick:ie})),N.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:x["fullscreen-button"],onClick:()=>{(0,g.vp)()?(0,g.BU)():(0,g.Dj)(L.current)}},N.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),N.createElement("div",{className:x["video-progress"]},N.createElement("progress",{ref:H,value:"0",min:"0"}),N.createElement("input",{className:x.seek,ref:U,value:"0",min:"0",type:"range",step:"1"}),N.createElement("div",{className:x["seek-tooltip"],ref:k,id:"seek-tooltip"},"00:00"))))),N.createElement("svg",{style:{display:"none"}},N.createElement("defs",null,N.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},N.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),N.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},N.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),N.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},N.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"})),N.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},N.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"})),N.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},N.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"})),N.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},N.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"})),N.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},N.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"})),N.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},N.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"})))))})},61584:function(ft,Me,W){"use strict";W.d(Me,{i:function(){return i},Z:function(){return v}});var N={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},G=W(71418),w=W(6848),E=W(93948),O=W(92310),A=W.n(O),_=W(65862),g=W(2524),x=W(41867),m=W(79005),a=W(20345),u=W(77882),h=W(31081),r=W(75309),n=W(71979),s=W(47558),d=W(42922),o=W(66832),c=W(96593),f=W(19664),e=W(91833),t=W(59301);const i=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:m,swimg:a},{name:"101\u8BA1\u5212",ptimg:u,swimg:h},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:r,swimg:n},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:s,swimg:d},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:o,swimg:c},{name:"\u519B\u961F\u4E00\u6D41",ptimg:f,swimg:e}];var v=({className:y,dataSource:p=[],col:C=4,right:S,bottom:T=23,precision:D=0,wrapWidth:I=1200,trackEventItems:M,loading:P,onRemove:L=()=>{},isCurrent:R=!0,showAlias:B=!1,showProgress:U=!1})=>{const H=Math.floor((I-(C-1)*S)/C),K=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(V=>(window.ENV==="build"&&(V.ptimg=`/react/build${V.ptimg}`,V.swimg=`/react/build${V.swimg}`),V));return t.createElement(G.Z,{spinning:P},t.createElement("div",{className:A()(N.list,y)},!!(p!=null&&p.length)&&(p==null?void 0:p.map((V,k)=>{var $,ae,le,he,ge,me;const{name:pe,id:Ee,identifier:de,featured:ve,school_name:ce,image_url:oe,excellent:X,is_plan:ne}=V;return t.createElement("div",{key:Ee,className:R&&U?N.wrapisCurrent:N.wrap,style:{width:H,marginRight:(1+k)%C===0?0:S+D,marginBottom:T}},t.createElement("a",{className:N.li,onClick:j=>{j.preventDefault(),j.stopPropagation(),M&&(0,_.L9)([M]),(0,_.xg)(`/paths/${de}`)}},t.createElement("div",{className:N.img},t.createElement("img",{className:N.cover,src:`${oe}`}),R&&(0,x.bg)()&&(V==null?void 0:V.studying)&&t.createElement("div",{className:`${N.movebq} user-path-items`,onClick:j=>{j.stopPropagation(),L(V)}},t.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),t.createElement("span",{className:"c-red"},"\u79FB\u9664")),($=V==null?void 0:V.subject_tags)==null?void 0:$.map((j,re)=>{var Z,ee;if(re===0){const J=(Z=K.find(ie=>ie.name==j))==null?void 0:Z.swimg;return t.createElement("img",{className:N.sign,src:J,style:{left:"-4px"}})}const se=(ee=K.find(J=>J.name==j))==null?void 0:ee.ptimg;return t.createElement("img",{className:N.sign,src:se,style:{left:`${48+52*(re-1)+2*re}px`}})}),t.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(V==null?void 0:V.excellent)&&t.createElement("div",{className:N.bq},"\u5F00\u653E\u8BFE\u7A0B"))),t.createElement("div",{className:N.name},t.createElement(w.Z,{title:B&&(V!=null&&V.excellent_alias_name)?t.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${pe}`,t.createElement("br",null),t.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${V==null?void 0:V.excellent_alias_name}`)):pe},t.createElement("span",{className:N.e},B&&(V==null?void 0:V.excellent_alias_name)||pe))),R&&U&&((ae=V==null?void 0:V.progress)==null?void 0:ae.all_score)!=0&&t.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},t.createElement(E.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((le=V==null?void 0:V.progress)==null?void 0:le.my_score)/((he=V==null?void 0:V.progress)==null?void 0:he.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(ge=V==null?void 0:V.progress)==null?void 0:ge.my_score,"/",(me=V==null?void 0:V.progress)==null?void 0:me.all_score),(!R||!U)&&t.createElement("div",{className:N.tags},t.createElement("div",null,t.createElement(w.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},t.createElement("span",null,t.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),t.createElement("span",null,V.stages_count))),t.createElement(w.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},t.createElement("span",null,t.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),t.createElement("span",null,V.members_count)))))))})),!p.length&&t.createElement(g.Z,null)))}},3918:function(ft,Me,W){"use strict";W.d(Me,{jL:function(){return O},w9:function(){return Lt},vv:function(){return Y},dN:function(){return qe},QD:function(){return ir},cQ:function(){return re.Z},vg:function(){return yt},Oz:function(){return Ke},op:function(){return Dt},O5:function(){return Ir},_b:function(){return Vt},t7:function(){return T},tT:function(){return M},Gi:function(){return Ye},YG:function(){return Pe},Ed:function(){return ot},kT:function(){return Je},qp:function(){return d},Um:function(){return i},K3:function(){return f},vr:function(){return Cr},qE:function(){return lr},Je:function(){return R},wb:function(){return me},rC:function(){return j},lB:function(){return de},cq:function(){return Kt},kO:function(){return we},tp:function(){return y},Si:function(){return Sr},k8:function(){return nn},Du:function(){return Zr}});var N=W(59301),G={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2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y33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",O=({dataSource:Ue=[],img:Re,imgWidth:Ce=346,title:Ze,sunTitle:ct,bannerExtraContent:vt})=>N.createElement("div",{className:G.banner},N.createElement("div",{className:G.content},N.createElement("aside",null,N.createElement("p",null,N.createElement("b",null,Ze),N.createElement("span",null,ct)),Ue.length>0&&N.createElement("div",{className:G.btns},Ue.map((Ge,xt)=>N.createElement("div",{key:xt,onClick:Ge.click},Ge.name,Ge.sign?N.createElement("img",{src:w,width:39}):null))),vt),Re&&N.createElement("img",{style:{marginTop:33,marginRight:38},src:Re,width:Ce}))),A={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},_=W(92310),g=W.n(_),x=W(89392),m=Object.defineProperty,a=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,r=(Ue,Re,Ce)=>Re in Ue?m(Ue,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):Ue[Re]=Ce,n=(Ue,Re)=>{for(var Ce in Re||(Re={}))u.call(Re,Ce)&&r(Ue,Ce,Re[Ce]);if(a)for(var Ce of a(Re))h.call(Re,Ce)&&r(Ue,Ce,Re[Ce]);return Ue},d=({dataSource:Ue=[],value:Re,onChange:Ce,onTitleChange:Ze,className:ct,title:vt,titleWidth:Ge=41,style:xt={},fontColor:Ft="#6A7283",showCount:kt,classNameActive:It,styleItem:gt={}})=>{const[qt,ur]=(0,N.useState)(0),[Er,Xt]=(0,N.useState)(!1),zt=(0,N.useRef)(null),sr=(0,N.useRef)(null);return(0,N.useEffect)(()=>{var vr;Ue.length!==0&&(((vr=zt==null?void 0:zt.current)==null?void 0:vr.clientHeight)>97?ur(1):ur(0)),Ue.length===0&&ur(0),Xt(!1)},[Ue]),N.createElement("div",{className:g()(A.row,ct),style:xt},N.createElement("div",{onClick:(0,x.throttle)(()=>Ze==null?void 0:Ze(),2e3),style:{width:Ge,marginTop:Er?12:4},className:`${A.title} ${Ze?"current":""}`},vt),N.createElement("div",{className:Er?`${A.tagsWrap} ${A.tagsBorderWrap}`:A.tagsWrap},N.createElement("div",{className:A.bar,ref:sr,style:qt>0?{height:qt===1?97:"auto",overflow:qt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},N.createElement("div",{className:A.tag,ref:zt},Ue==null?void 0:Ue.map(vr=>N.createElement("span",{onClick:()=>Ce(vr.id),key:vr.id,style:n(n({color:Ft},gt),(vr==null?void 0:vr.style)||{}),className:Re===vr.id?g()(It||A.active,vr.classNameActive):""},N.createElement("span",{title:vr.name,className:A.name},vr.name),!!kt&&N.createElement("span",{className:A.num},vr.count))))),!!qt&&N.createElement(N.Fragment,null,qt===1?N.createElement("div",{onClick:()=>{var vr;ur(2),((vr=zt==null?void 0:zt.current)==null?void 0:vr.clientHeight)>245?Xt(!0):Xt(!1)},className:A.action},"\u5C55\u5F00",N.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):N.createElement("div",{onClick:()=>{sr.current.scrollTop=0,ur(1),Xt(!1)},className:A.action},"\u6536\u8D77",N.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},o={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},f=({dataSource:Ue=[],value:Re,onChange:Ce,onTitleChange:Ze,className:ct,title:vt,titleWidth:Ge=41,style:xt={},fontColor:Ft="#6A7283",showCount:kt,expand:It=!0})=>{const[gt,qt]=(0,N.useState)(0),[ur,Er]=(0,N.useState)(!1),Xt=(0,N.useRef)(null),zt=(0,N.useRef)(null),[sr,vr]=(0,N.useState)(It);return N.createElement("div",{className:g()(o.row,ct),style:xt},N.createElement("div",{className:"flex item-center justify-between"},N.createElement("div",{onClick:(0,x.throttle)(()=>Ze==null?void 0:Ze(),2e3),style:{width:Ge,marginTop:ur?12:4},className:`${o.title} ${Ze?"current":""}`},vt),N.createElement("i",{className:`iconfont ${sr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:sr?8:10},onClick:()=>vr(!sr)})),sr&&N.createElement("div",{className:ur?`${o.tagsWrap} ${o.tagsBorderWrap}`:o.tagsWrap},N.createElement("div",{className:o.fenge}),N.createElement("div",{className:o.bar,ref:zt},N.createElement("div",{className:o.tag,ref:Xt},Ue==null?void 0:Ue.map(yr=>N.createElement("span",{onClick:()=>Ce(yr.id),key:yr.id,style:{color:Ft},className:Re===yr.id?o.active:""},N.createElement("span",{title:yr.name,className:o.name},yr.name),!!kt&&N.createElement("span",{className:o.num},yr.count)))))))},e={flex_box_center:"flex_box_center___kXy2O",flex_space_between:"flex_space_between___EKVqf",flex_box_vertical_center:"flex_box_vertical_center___KJzcw",flex_box_center_end:"flex_box_center_end___V4Nm9",flex_box_column:"flex_box_column___g6Cee",row:"row___pqtGl",title:"title___eewYd",tagsWrap:"tagsWrap___AWV66",action:"action___Toj3O",bar:"bar___NZVtB",tag:"tag___z872k",name:"name___m2dAl",num:"num___EhDNX",active:"active___GSjsu",tagsBorderWrap:"tagsBorderWrap___VoQL3"},i=({dataSource:Ue=[],value:Re,onChange:Ce,onTitleChange:Ze,className:ct,title:vt,titleWidth:Ge=41,style:xt={},fontColor:Ft="#fff",showCount:kt,expand:It=!0})=>{const[gt,qt]=(0,N.useState)(0),[ur,Er]=(0,N.useState)(!1),Xt=(0,N.useRef)(null),zt=(0,N.useRef)(null),[sr,vr]=(0,N.useState)(It);return N.createElement("div",{className:g()(e.row,ct),style:xt},N.createElement("div",{className:"flex item-center justify-between"},N.createElement("div",{onClick:(0,x.throttle)(()=>Ze==null?void 0:Ze(),2e3),style:{width:Ge},className:`${e.title} ${Ze?"current":""}`},vt),N.createElement("i",{className:`iconfont ${sr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:sr?"#00DDC7":"#037F74",fontSize:sr?10:12},onClick:()=>vr(!sr)})),sr&&N.createElement("div",{className:ur?`${e.tagsWrap} ${e.tagsBorderWrap}`:e.tagsWrap},N.createElement("div",{className:e.bar,ref:zt},N.createElement("div",{className:e.tag,ref:Xt},Ue==null?void 0:Ue.map(yr=>N.createElement("span",{onClick:()=>Ce(yr.id),key:yr.id,style:{color:Ft},className:Re===yr.id?e.active:""},N.createElement("span",{title:yr.name,className:e.name},yr.name),!!kt&&N.createElement("span",{className:e.num},yr.count)))))))},l={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},y=({dataSource:Ue=[],value:Re,onChange:Ce,className:Ze,style:ct={}})=>N.createElement("div",{style:ct,className:g()(l.tabs,Ze)},Ue.map(vt=>N.createElement("span",{onClick:()=>Ce(vt.id),className:Re===vt.id?l.active:"",key:vt.id},vt.name))),p={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},C=W(92832),T=({dataSource:Ue=[],value:Re="",onChange:Ce,onInputChange:Ze=()=>{},className:ct,style:vt={},placeholder:Ge,allowClear:xt=!1})=>{var Ft;const[kt,It]=(0,N.useState)(""),[gt,qt]=(0,N.useState)("");(0,N.useEffect)(()=>{var Xt;let zt=Re;(Xt=JSON.stringify(Re))!=null&&Xt.includes("{")&&(It(Re.id),zt=Re.value||"");try{qt(decodeURIComponent(zt||""))}catch(sr){qt(decodeURIComponent(zt||""))}},[Re]);const ur=()=>{Ce(encodeURIComponent(gt),kt||null)},Er=Xt=>{Xt!==kt&&(It(Xt),Ce(encodeURIComponent(gt),Xt))};return N.createElement("div",{className:g()(p.input,ct),style:vt},!!Ue.length&&N.createElement("div",{className:p.dropdown},N.createElement("div",{className:p.text},(Ft=Ue.find(Xt=>Xt.id===kt))==null?void 0:Ft.name,N.createElement("i",{className:"iconfont icon-zhankai4"}),N.createElement("b",{className:p.b1}),N.createElement("b",{className:p.b2})),N.createElement("div",{className:p.menu},Ue.map((Xt,zt)=>N.createElement("div",{key:zt,onClick:()=>Er(Xt.id)},Xt.name)))),N.createElement(C.default,{onPressEnter:ur,value:gt,onChange:Xt=>{qt(Xt.target.value),Ze(encodeURIComponent(Xt.target.value),kt||null)},bordered:!1,placeholder:Ge}),N.createElement("i",{onClick:ur,className:"iconfont icon-sousuo9 font14 pl10 current"}))},D={flex_box_center:"flex_box_center___pVsOk",flex_space_between:"flex_space_between___bQwBe",flex_box_vertical_center:"flex_box_vertical_center___gdKht",flex_box_center_end:"flex_box_center_end___wJuEm",flex_box_column:"flex_box_column___F50s0",input:"input___f7GZE",dropdown:"dropdown___oJkxW",menu:"menu___RplGU",text:"text___EgRKl"},M=({dataSource:Ue=[],value:Re="",onChange:Ce,onInputChange:Ze=()=>{},className:ct,style:vt={},placeholder:Ge,allowClear:xt=!1})=>{var Ft;const[kt,It]=(0,N.useState)(""),[gt,qt]=(0,N.useState)("");(0,N.useEffect)(()=>{var Xt;let zt=Re;(Xt=JSON.stringify(Re))!=null&&Xt.includes("{")&&(It(Re.id),zt=Re.value||"");try{qt(decodeURIComponent(zt||""))}catch(sr){qt(decodeURIComponent(zt||""))}},[Re]);const ur=()=>{Ce(encodeURIComponent(gt),kt||null)},Er=Xt=>{Xt!==kt&&(It(Xt),Ce(encodeURIComponent(gt),Xt))};return N.createElement("div",{className:g()(D.input,ct),style:vt},!!Ue.length&&N.createElement("div",{className:D.dropdown},N.createElement("div",{className:D.text},(Ft=Ue.find(Xt=>Xt.id===kt))==null?void 0:Ft.name,N.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),N.createElement("div",{className:D.menu},Ue.map((Xt,zt)=>N.createElement("div",{key:zt,onClick:()=>Er(Xt.id)},Xt.name)))),N.createElement(C.default,{onPressEnter:ur,value:gt,onChange:Xt=>{qt(Xt.target.value),Ze(encodeURIComponent(Xt.target.value),kt||null)},bordered:!1,placeholder:Ge}),N.createElement("i",{onClick:ur,className:"iconfont icon-sousuo9 font14 pl10 current"}))},P={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},R=({value:Ue,onChange:Re,className:Ce,total:Ze,pageSize:ct,style:vt={}})=>{const Ge=Ue<2,xt=Ue>=Math.ceil(Ze/ct);return Ze<=ct?N.createElement(N.Fragment,null):N.createElement("div",{className:g()(P.quickPager,Ce),style:vt},N.createElement("div",{onClick:()=>{Ge||Re(Ue-1,"prev")},className:Ge?P.disabled:""},"\u4E0A\u4E00\u9875"),N.createElement("div",{onClick:()=>{xt||Re(Ue+1,"next")},className:xt?P.disabled:""},"\u4E0B\u4E00\u9875"))},B={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},U=W(71418),H=W(6848),K=W(13570),V=W(74128),k=W(65862),$=W(96908),ae=W(57177),le=W(81378),he=W(2524),me=({className:Ue,dataSource:Re=[],col:Ce=4,right:Ze,bottom:ct=23,precision:vt=0,wrapWidth:Ge=1200,trackEventItems:xt,loading:Ft})=>{const kt=Math.floor((Ge-(Ce-1)*Ze)/Ce);return N.createElement(U.Z,{spinning:Ft},N.createElement("div",{className:g()(B.list,Ue)},!!Re.length&&Re.map((It,gt)=>{const{name:qt,id:ur,identifier:Er,power:Xt,cover_image_id:zt,pic:sr}=It;return N.createElement("div",{className:B.wrap,key:ur,style:{width:kt,marginRight:(1+gt)%Ce===0?0:Ze+vt,marginBottom:ct}},N.createElement("a",{target:"_blank",href:`/shixuns/${Er}/challenges`,className:B.li,onClick:vr=>{vr.preventDefault(),xt&&(0,k.L9)([xt]),Xt&&(0,k.xg)(`/shixuns/${Er}/challenges`)}},N.createElement("div",{className:B.img},N.createElement("img",{className:B.cover,src:`${sr}`}),It.is_jupyter&&N.createElement("img",{className:B.sign,src:$}),It.is_jupyter_lab&&N.createElement("img",{className:B.sign,src:ae}),It.is_unity_3d&&N.createElement("img",{className:B.sign,src:le})),N.createElement("div",{className:B.name},N.createElement(H.Z,{title:qt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},N.createElement("span",{className:B.e},qt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),N.createElement("div",{className:B.tags},N.createElement(H.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},N.createElement("span",null,N.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),N.createElement("span",null,It.challenges_count))),!!It.myshixuns_count&&N.createElement(H.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},N.createElement("span",null,N.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),N.createElement("span",null,It.myshixuns_count))),N.createElement(H.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},N.createElement("span",null,N.createElement("span",null,It.level))),N.createElement("div",{className:B.rate},N.createElement(K.Z,{allowHalf:!0,disabled:!0,defaultValue:It.score_info}),N.createElement("span",null,"\xA0",It.score_info?`${It.score_info}\u5206`:"5\u5206")))),!Xt&&N.createElement("div",{className:B.lockWrap},N.createElement("img",{src:`${V.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),N.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Re.length&&N.createElement(he.Z,null)))},pe={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},de=({className:Ue,dataSource:Re=[],col:Ce=4,right:Ze,bottom:ct=23,precision:vt=0,wrapWidth:Ge=1200,wrapClassName:xt,trackEventItems:Ft,loading:kt})=>{const It=Math.floor((Ge-(Ce-1)*Ze)/Ce);return N.createElement(U.Z,{spinning:kt},N.createElement("div",{className:g()(pe.list,Ue)},!!Re.length&&Re.map((gt,qt)=>{const{name:ur,id:Er,identifier:Xt,power:zt,cover_image_id:sr,pic:vr}=gt;return N.createElement("div",{className:g()(pe.wrap,xt),key:Er,style:{width:It,marginRight:(1+qt)%Ce===0?0:Ze+vt,marginBottom:ct}},N.createElement("a",{target:"_blank",href:`/shixuns/${Xt}/challenges`,className:pe.li,onClick:yr=>{yr.preventDefault(),Ft&&(0,k.L9)([Ft]),zt&&(0,k.xg)(`/shixuns/${Xt}/challenges`)}},N.createElement("img",{src:W(47621),className:pe.titleBg}),N.createElement("div",{className:pe.name},N.createElement(H.Z,{title:ur||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},N.createElement("span",{className:pe.e},ur||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),N.createElement("div",{style:{padding:"14px",paddingBottom:0}},N.createElement("div",{className:pe.img},N.createElement("img",{className:pe.cover,src:sr?`${V.Z.API_SERVER}/api/attachments/${sr}`:`${V.Z.IMG_SERVER+vr}`}),gt.is_jupyter&&N.createElement("div",{className:pe.bq},"Jupyter"),gt.is_jupyter_lab&&N.createElement("div",{className:pe.bq},"JupyterLab"),gt.is_unity_3d&&N.createElement("div",{className:pe.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),N.createElement("div",{className:"mt20 flex item-center justify-between"},N.createElement("div",null,N.createElement("span",{className:pe.text},"\u5B66\u4E60\u4EBA\u6570"),N.createElement("span",{className:pe.value},gt.myshixuns_count)),N.createElement("div",null,N.createElement("span",{className:pe.text},"\u56F0\u96BE\u7B49\u7EA7"),N.createElement("span",{className:pe.value},gt.level))),N.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},N.createElement("div",null,N.createElement("span",{className:pe.text},"\u5173\u5361\u6570"),N.createElement("span",{className:pe.value},gt.challenges_count)),N.createElement("div",{className:pe.rate},N.createElement(K.Z,{allowHalf:!0,disabled:!0,defaultValue:gt.score_info}),N.createElement("span",{className:pe.value,style:{color:"#FF9C00"}},"\xA0",gt.score_info?`${gt.score_info}\u5206`:"5\u5206"))))),!zt&&N.createElement("div",{className:pe.lockWrap},N.createElement("img",{src:`${V.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),N.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Re.length&&N.createElement(he.Z,null)))},ve={flex_box_center:"flex_box_center___MoMqv",flex_space_between:"flex_space_between___G_1Pa",flex_box_vertical_center:"flex_box_vertical_center___vHNpc",flex_box_center_end:"flex_box_center_end___dt_Dx",flex_box_column:"flex_box_column___gK3h_",list:"list___GYKT6",wrap:"wrap___uLNQf",lockWrap:"lockWrap___lZQo7",li:"li___X7Rkc",img:"img___bih4x",cover:"cover___UiMEf",sign:"sign___WPSew",name:"name___ZLjiX",e:"e___tB29O",tags:"tags___a3FKn",rate:"rate___dh30H"},ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF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oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",j=({className:Ue,dataSource:Re=[],col:Ce=4,right:Ze,bottom:ct=23,precision:vt=0,wrapWidth:Ge=1200,trackEventItems:xt,loading:Ft,wrapClassName:kt,imgClassName:It})=>{const gt=Math.floor((Ge-(Ce-1)*Ze)/Ce);return N.createElement(U.Z,{spinning:Ft},N.createElement("div",{className:g()(ve.list,Ue)},!!Re.length&&Re.map((qt,ur)=>{const{name:Er,id:Xt,identifier:zt,power:sr,cover_image_id:vr,pic:yr}=qt;return N.createElement("div",{className:g()(ve.wrap,kt),key:Xt,style:{width:gt,marginRight:(1+ur)%Ce===0?0:Ze+vt,marginBottom:ct}},N.createElement("a",{target:"_blank",href:`/shixuns/${zt}/challenges`,className:ve.li,onClick:Ur=>{Ur.preventDefault(),xt&&(0,k.L9)([xt]),sr&&(0,k.xg)(`/shixuns/${zt}/challenges`)}},N.createElement("div",{className:g()(ve.img,It)},N.createElement("img",{className:ve.cover,src:vr?`${V.Z.API_SERVER}/api/attachments/${vr}`:`${V.Z.IMG_SERVER+yr}`}),qt.is_jupyter&&N.createElement("img",{className:ve.sign,src:ce}),qt.is_jupyter_lab&&N.createElement("img",{className:ve.sign,src:oe}),qt.is_unity_3d&&N.createElement("img",{className:ve.sign,src:X})),N.createElement("div",{className:ve.name},N.createElement(H.Z,{title:Er||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},N.createElement("span",{className:ve.e},Er||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),N.createElement("div",{className:ve.tags},N.createElement(H.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},N.createElement("span",null,N.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),N.createElement("span",null,qt.challenges_count))),!!qt.myshixuns_count&&N.createElement(H.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},N.createElement("span",null,N.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),N.createElement("span",null,qt.myshixuns_count))),N.createElement(H.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},N.createElement("span",null,N.createElement("span",null,qt.level))),N.createElement("div",{className:ve.rate},N.createElement(K.Z,{allowHalf:!0,disabled:!0,defaultValue:qt.score_info}),N.createElement("span",null,"\xA0",qt.score_info?`${qt.score_info}\u5206`:"5\u5206")))),!sr&&N.createElement("div",{className:ve.lockWrap},N.createElement("img",{src:`${V.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),N.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Re.length&&N.createElement(he.Z,null)))},re=W(61584),Z={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},ee=W(79005),se=W(20345),J=W(77882),ie=W(31081),fe=W(75309),_e=W(71979),De=W(47558),Ie=W(42922),Ne=W(66832),Le=W(96593),ue=W(19664),xe=W(91833),be=Object.defineProperty,Ae=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,at=(Ue,Re,Ce)=>Re in Ue?be(Ue,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):Ue[Re]=Ce,tt=(Ue,Re)=>{for(var Ce in Re||(Re={}))Qe.call(Re,Ce)&&at(Ue,Ce,Re[Ce]);if(Ae)for(var Ce of Ae(Re))et.call(Re,Ce)&&at(Ue,Ce,Re[Ce]);return Ue};const _t=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:ee,swimg:se},{name:"101\u8BA1\u5212",ptimg:J,swimg:ie},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:fe,swimg:_e},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:De,swimg:Ie},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Ne,swimg:Le},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ue,swimg:xe}];var Ke=({className:Ue,dataSource:Re=[],col:Ce=4,right:Ze,bottom:ct=23,precision:vt=0,wrapWidth:Ge=1200,trackEventItems:xt,loading:Ft,wrapClassName:kt,imgClassName:It,isArrow:gt=!1,imgStyle:qt={}})=>{const ur=Math.floor((Ge-(Ce-1)*Ze)/Ce),[Er,Xt]=(0,N.useState)(),[zt,sr]=(0,N.useState)(),vr=Ur=>Xt(Ur),yr=()=>Xt(-1);return N.createElement(U.Z,{spinning:Ft},N.createElement("div",{className:g()(Z.list,Ue)},!!(Re!=null&&Re.length)&&(Re==null?void 0:Re.map((Ur,Gr)=>{var _n;const{name:En,id:vn,identifier:mn,featured:An,school_name:Yr,image_url:an,excellent:un,is_plan:gn}=Ur;return N.createElement("div",{key:vn,className:g()(Z.wrap,kt),style:{width:ur,marginRight:(1+Gr)%Ce===0?0:Ze+vt,marginBottom:ct}},N.createElement("a",{target:"_blank",href:`/paths/${mn}`,className:Z.li,onClick:$r=>{$r.preventDefault(),xt&&(0,k.L9)([xt]),(0,k.xg)(`/paths/${mn}`)}},N.createElement("img",{src:W(39057),className:Z.titleBg}),N.createElement("div",{className:Z.name},N.createElement(H.Z,{title:En},N.createElement("span",{className:Z.e,style:{color:gt&&Er===Gr?"#145DFF":"#000000"},onMouseEnter:()=>{vr(Gr)},onMouseLeave:yr},En))),N.createElement("div",{style:{padding:"14px",paddingBottom:0}},N.createElement("div",{className:g()(Z.img,It)},N.createElement("img",{className:Z.cover,style:tt({},qt),src:`${V.Z.IMG_SERVER+an}`}),(_n=Ur==null?void 0:Ur.subject_tags)==null?void 0:_n.map(($r,Hr)=>{var hn,yn;if(Hr===0){const dn=(hn=_t.find(mr=>mr.name==$r))==null?void 0:hn.swimg;return N.createElement("img",{className:Z.sign,src:dn,style:{left:"-4px"}})}const xn=(yn=_t.find(dn=>dn.name==$r))==null?void 0:yn.ptimg;return N.createElement("img",{className:Z.sign,src:xn,style:{left:`${48+52*(Hr-1)+2*Hr}px`}})}),N.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(Ur==null?void 0:Ur.excellent)&&N.createElement("div",{className:Z.bq},"\u5F00\u653E\u8BFE\u7A0B"))),N.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},N.createElement("div",null,N.createElement("span",{className:Z.text},"\u7AE0\u8282\u6570"),N.createElement("span",{className:Z.value},Ur.stages_count)),N.createElement("div",null,N.createElement("span",{className:Z.text},"\u5B66\u4E60\u4EBA\u6570"),N.createElement("span",{className:Z.value},Ur.members_count))))))})),!Re.length&&N.createElement(he.Z,null)))},ke={flex_box_center:"flex_box_center___o6B0Z",flex_space_between:"flex_space_between___Uz22Q",flex_box_vertical_center:"flex_box_vertical_center___nWLOj",flex_box_center_end:"flex_box_center_end___eqMdD",flex_box_column:"flex_box_column___ypdJv",list:"list___qA19p",wrap:"wrap___YaRtD",lockWrap:"lockWrap___Cle7R",li:"li___Hpfsl",img:"img___li1Ky",cover:"cover___iuyl5",bq:"bq___BpHtR",sign:"sign___ajRAC",titleBg:"titleBg___h8Qq7",name:"name___mAV5m",e:"e___YPSD7",text:"text___nDpTk",value:"value___guywy",unit:"unit___aTzYz",tags:"tags___X1lul",tag1:"tag1___AHRAc",tag2:"tag2___Pska6"},Rt=W(41867),it=W(59301);const st=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:ee,swimg:se},{name:"101\u8BA1\u5212",ptimg:J,swimg:ie},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:fe,swimg:_e},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:De,swimg:Ie},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Ne,swimg:Le},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ue,swimg:xe}];var yt=({className:Ue,dataSource:Re=[],col:Ce=4,right:Ze,bottom:ct=23,precision:vt=0,wrapWidth:Ge=1200,trackEventItems:xt,loading:Ft,onRemove:kt=()=>{},isCurrent:It=!0,showAlias:gt=!1,wrapClassName:qt,imgClassName:ur})=>{const Er=Math.floor((Ge-(Ce-1)*Ze)/Ce),Xt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(zt=>(window.ENV==="build"&&(zt.ptimg=`/react/build${zt.ptimg}`,zt.swimg=`/react/build${zt.swimg}`),zt));return it.createElement(U.Z,{spinning:Ft},it.createElement("div",{className:g()(ke.list,Ue)},!!(Re!=null&&Re.length)&&(Re==null?void 0:Re.map((zt,sr)=>{var vr;const{name:yr,id:Ur,identifier:Gr,featured:_n,school_name:En,image_url:vn,excellent:mn,is_plan:An}=zt;return it.createElement("div",{key:Ur,className:g()(ke.wrap,qt),style:{width:Er,marginRight:(1+sr)%Ce===0?0:Ze+vt,marginBottom:ct}},it.createElement("a",{className:ke.li,onClick:Yr=>{Yr.preventDefault(),Yr.stopPropagation(),xt&&(0,k.L9)([xt]),(0,k.xg)(`/paths/${Gr}`)}},it.createElement("div",{className:g()(ke.img,ur)},it.createElement("img",{className:ke.cover,src:`${V.Z.IMG_SERVER+vn}`}),It&&(0,Rt.bg)()&&(zt==null?void 0:zt.studying)&&it.createElement("div",{className:`${ke.movebq} user-path-items`,onClick:Yr=>{Yr.stopPropagation(),kt(zt)}},it.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),it.createElement("span",{className:"c-red"},"\u79FB\u9664")),(vr=zt==null?void 0:zt.subject_tags)==null?void 0:vr.map((Yr,an)=>{var un,gn;if(an===0){const Hr=(un=Xt.find(hn=>hn.name==Yr))==null?void 0:un.swimg;return it.createElement("img",{className:ke.sign,src:Hr,style:{left:"-4px"}})}const $r=(gn=Xt.find(Hr=>Hr.name==Yr))==null?void 0:gn.ptimg;return it.createElement("img",{className:ke.sign,src:$r,style:{left:`${48+52*(an-1)+2*an}px`}})}),it.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(zt==null?void 0:zt.excellent)&&it.createElement("div",{className:ke.bq},"\u5F00\u653E\u8BFE\u7A0B"))),it.createElement("div",{className:ke.name},it.createElement(H.Z,{title:gt&&(zt!=null&&zt.excellent_alias_name)?it.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${yr}`,it.createElement("br",null),it.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${zt==null?void 0:zt.excellent_alias_name}`)):yr},it.createElement("span",{className:ke.e},gt&&(zt==null?void 0:zt.excellent_alias_name)||yr))),it.createElement("div",{className:ke.tags},it.createElement("div",null,it.createElement(H.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},it.createElement("span",null,it.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),it.createElement("span",null,zt.stages_count))),it.createElement(H.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},it.createElement("span",null,it.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),it.createElement("span",null,zt.members_count)))))))})),!Re.length&&it.createElement(he.Z,null)))},mt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez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/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",lt=W(59301),Lt=({className:Ue,dataSource:Re=[],col:Ce=4,right:Ze,bottom:ct=23,precision:vt=0,wrapWidth:Ge=1200,trackEventItems:xt,loading:Ft})=>{const kt=Math.floor((Ge-(Ce-1)*Ze)/Ce);return lt.createElement(U.Z,{spinning:Ft},lt.createElement("div",{className:g()(mt.list,Ue)},!!Re.length&&Re.map((It,gt)=>{const{subject_identifier:qt,id:ur,identifier:Er,power:Xt}=It,zt=It.is_public!=0&&It.is_public;return lt.createElement("div",{className:mt.wrap,key:ur,style:{width:kt,marginRight:(1+gt)%Ce===0?0:Ze+vt,marginBottom:ct}},lt.createElement("a",{className:mt.li,onClick:sr=>{sr.preventDefault(),xt&&(0,k.L9)([xt]),(0,k.xg)(It.first_category_url)}},lt.createElement("div",{className:mt.top},lt.createElement(H.Z,{title:It.name},lt.createElement("div",{className:mt.name},It.name)),lt.createElement("img",{className:mt.img,src:V.Z.IMG_SERVER+"/images/"+It.avatar_url}),lt.createElement("div",{className:mt.text,title:It.creator},It.creator),qt&<.createElement("div",{className:mt.btns},lt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),lt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),zt&<.createElement("div",{className:mt.sign},"\u516C\u5F00")),lt.createElement("div",{className:mt.bottom},It.visits>0&<.createElement(H.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-liulanyan"}),lt.createElement("span",null,It.visits))),It.course_members_count>0&<.createElement(H.Z,{title:"\u6210\u5458",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-chengyuan"}),It.course_members_count)),It.tasks_count>0&<.createElement(H.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},lt.createElement("span",null,lt.createElement("i",{className:"iconfont icon-zuoye"}),It.tasks_count)),It.is_end?lt.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):lt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!It.is_accessible&<.createElement("div",{className:mt.lockWrap},lt.createElement("img",{src:`${V.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),lt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Re.length&<.createElement(he.Z,null)))},Ct={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},jt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5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tsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",qe=({className:Ue,dataSource:Re=[],col:Ce=4,right:Ze,bottom:ct=23,precision:vt=0,wrapWidth:Ge=1200,wrapClassName:xt,trackEventItems:Ft,loading:kt})=>{const It=Math.floor((Ge-(Ce-1)*Ze)/Ce);return N.createElement(U.Z,{spinning:kt},N.createElement("div",{className:g()(Ct.list,Ue)},!!Re.length&&Re.map((gt,qt)=>{const{subject_identifier:ur,id:Er,identifier:Xt,power:zt}=gt,sr=gt.is_public!=0&>.is_public;return N.createElement("div",{className:g()(`${Ct.wrap} ${gt.is_accessible?"":Ct.warpStyle}`,xt),key:Er,style:{width:It,marginRight:(1+qt)%Ce===0?0:Ze+vt,marginBottom:ct}},N.createElement("a",{className:Ct.li,onClick:vr=>{vr.preventDefault(),Ft&&(0,k.L9)([Ft]),(0,k.xg)(gt.first_category_url)}},N.createElement("div",{className:Ct.creator},N.createElement("img",{className:Ct.img,src:V.Z.IMG_SERVER+"/images/"+gt.avatar_url}),N.createElement("div",{className:Ct.text,title:gt.creator},gt.creator)),N.createElement("div",{className:Ct.top},N.createElement(H.Z,{title:gt.name},N.createElement("div",{className:Ct.name},gt.name)),sr&&N.createElement("div",{className:Ct.sign},"\u516C\u5F00")),N.createElement("div",{className:Ct.middle},N.createElement("div",{className:Ct.row,style:{marginBottom:6}},N.createElement("div",null,N.createElement("span",{className:Ct.text},"\u8BBF\u95EE\u91CF"),N.createElement("span",{className:Ct.value},(gt==null?void 0:gt.visits)||0)),N.createElement("div",null,N.createElement("span",{className:Ct.text},"\u6210\u5458"),N.createElement("span",{className:Ct.value},(gt==null?void 0:gt.course_members_count)||0))),N.createElement("div",{className:Ct.row},N.createElement("div",null,N.createElement("span",{className:Ct.text,style:{width:42}},"\u4F5C",N.createElement("span",{style:{marginLeft:14}},"\u4E1A")),N.createElement("span",{className:Ct.value},(gt==null?void 0:gt.tasks_count)||0)),N.createElement("div",null,N.createElement("span",{className:Ct.text},"\u72B6\u6001"),gt.is_end?N.createElement("span",{className:Ct.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):N.createElement("span",{className:Ct.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),ur&&N.createElement("div",{className:Ct.btns},N.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),N.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!gt.is_accessible&&N.createElement("div",{className:Ct.lockWrap},N.createElement("img",{src:`${V.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),N.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Re.length&&N.createElement(he.Z,null)))},b={flex_box_center:"flex_box_center___eJQtn",flex_space_between:"flex_space_between___lzV1x",flex_box_vertical_center:"flex_box_vertical_center___IYfoZ",flex_box_center_end:"flex_box_center_end___lcJOu",flex_box_column:"flex_box_column____ShCG",list:"list___YXSRr",wrap:"wrap___ZGdF6",lockWrap:"lockWrap___VKZgR",creator:"creator___tLnuI",img:"img___P8alm",text:"text___ijpmj",top:"top___md6mc",sign:"sign___ydolt",name:"name___OEush",middle:"middle___WFQ2R",row:"row___MFUrm",value:"value___rEYMy",btns:"btns___Y5S2B",bottom:"bottom___RsfJC",warpStyle:"warpStyle___R8xtx"},F="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CA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kxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Y=({className:Ue,dataSource:Re=[],col:Ce=4,right:Ze,bottom:ct=23,precision:vt=0,wrapWidth:Ge=1200,wrapClassName:xt,trackEventItems:Ft,loading:kt})=>{const It=Math.floor((Ge-(Ce-1)*Ze)/Ce);return N.createElement(U.Z,{spinning:kt},N.createElement("div",{className:g()(b.list,Ue)},!!Re.length&&Re.map((gt,qt)=>{const{subject_identifier:ur,id:Er,identifier:Xt,power:zt}=gt,sr=gt.is_public!=0&>.is_public;return N.createElement("div",{className:g()(`${b.wrap} ${gt.is_accessible?"":b.warpStyle}`,xt),key:Er,style:{width:It,marginRight:(1+qt)%Ce===0?0:Ze+vt,marginBottom:ct}},N.createElement("a",{className:b.li,onClick:vr=>{vr.preventDefault(),Ft&&(0,k.L9)([Ft]),(0,k.xg)(gt.first_category_url)}},N.createElement("div",{className:b.creator},N.createElement("img",{className:b.img,src:V.Z.IMG_SERVER+"/images/"+gt.avatar_url}),N.createElement("div",{className:b.text,title:gt.creator},gt.creator)),N.createElement("div",{className:b.top},N.createElement(H.Z,{title:gt.name},N.createElement("div",{className:b.name},gt.name)),sr&&N.createElement("div",{className:b.sign})),N.createElement("div",{className:b.middle},N.createElement("div",{className:b.row,style:{marginBottom:6}},N.createElement("div",null,N.createElement("span",{className:b.text},"\u8BBF\u95EE\u91CF"),N.createElement("span",{className:b.value},(gt==null?void 0:gt.visits)||0)),N.createElement("div",null,N.createElement("span",{className:b.text},"\u6210\u5458"),N.createElement("span",{className:b.value},(gt==null?void 0:gt.course_members_count)||0))),N.createElement("div",{className:b.row},N.createElement("div",null,N.createElement("span",{className:b.text,style:{width:42}},"\u4F5C",N.createElement("span",{style:{marginLeft:14}},"\u4E1A")),N.createElement("span",{className:b.value},(gt==null?void 0:gt.tasks_count)||0)),N.createElement("div",null,N.createElement("span",{className:b.text},"\u72B6\u6001"),gt.is_end?N.createElement("span",{className:b.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):N.createElement("span",{className:b.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),ur&&N.createElement("div",{className:b.btns},N.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),N.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!gt.is_accessible&&N.createElement("div",{className:b.lockWrap},N.createElement("img",{src:`${V.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),N.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Re.length&&N.createElement(he.Z,null)))},te={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},q=W(65582),Pe=({dataSource:Ue=[],value:Re,onChange:Ce,className:Ze,style:ct={},tabBarExtraContent:vt})=>N.createElement("div",{className:g()(te.tabs,Ze),style:ct},N.createElement("div",{className:te.tabsWrap},Ue.map((Ge,xt)=>N.createElement("aside",{className:te.tab,onClick:()=>{Ce(Ge.id),Ge.link&&q.history.push(Ge.link)},key:xt},N.createElement("div",{className:Re===Ge.id?te.active:""},Ge.name),(Ge==null?void 0:Ge.resetCount)==null&&(Ge==null?void 0:Ge.total)!==void 0&&N.createElement("span",null,"\uFF08",Ge==null?void 0:Ge.total,"\uFF09"),(Ge==null?void 0:Ge.resetCount)!==void 0&&(Ge==null?void 0:Ge.total)!==void 0&&N.createElement(H.Z,{title:(Ge==null?void 0:Ge.tip)!=null?Ge==null?void 0:Ge.tip:""},N.createElement("span",{style:{color:"#9096A3"}},"\uFF08",N.createElement("span",{style:{color:"#000"}},Ge==null?void 0:Ge.resetCount),"/",N.createElement("span",null,Ge==null?void 0:Ge.total),"\uFF09"))))),N.createElement("div",{className:te.tabBar},vt)),ye={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},Je=({dataSource:Ue=[],value:Re,onChange:Ce,className:Ze,style:ct={},tabBarExtraContent:vt})=>N.createElement("div",{className:g()(ye.tabs,Ze),style:ct},N.createElement("div",{className:ye.tabsWrap},Ue.map((Ge,xt)=>N.createElement("aside",{className:ye.tab,onClick:()=>{Ce(Ge.id),Ge.link&&q.history.push(Ge.link)},key:xt},N.createElement("div",{className:Re===Ge.id?ye.active:""},Ge.name),(Ge==null?void 0:Ge.resetCount)==null&&(Ge==null?void 0:Ge.total)!==void 0&&N.createElement("span",null,"\uFF08",Ge==null?void 0:Ge.total,"\uFF09"),(Ge==null?void 0:Ge.resetCount)!==void 0&&(Ge==null?void 0:Ge.total)!==void 0&&N.createElement(H.Z,{title:(Ge==null?void 0:Ge.tip)!=null?Ge==null?void 0:Ge.tip:""},N.createElement("span",{style:{color:"#9096A3"}},"\uFF08",N.createElement("span",{style:{color:"#000"}},Ge==null?void 0:Ge.resetCount),"/",N.createElement("span",null,Ge==null?void 0:Ge.total),"\uFF09"))))),N.createElement("div",{className:ye.tabBar},vt)),nt={flex_box_center:"flex_box_center___uWCU1",flex_space_between:"flex_space_between___pKZJo",flex_box_vertical_center:"flex_box_vertical_center___NKr7Z",flex_box_center_end:"flex_box_center_end___ycaEu",flex_box_column:"flex_box_column___dDKjA",tabs:"tabs___cNVh5",tabsWrap:"tabsWrap___IJpOg",tab:"tab___fitSZ",active:"active___LBYdH"},ot=({dataSource:Ue=[],value:Re,onChange:Ce,className:Ze,style:ct={},tabBarExtraContent:vt})=>N.createElement("div",{className:g()(nt.tabs,Ze),style:ct},N.createElement("div",{className:nt.tabsWrap},Ue.map((Ge,xt)=>N.createElement("aside",{className:`${nt.tab} ${Re===Ge.id?nt.active:""}`,onClick:()=>{Ce(Ge.id),Ge.link&&q.history.push(Ge.link)},key:xt},N.createElement("div",null,Ge.name),(Ge==null?void 0:Ge.resetCount)==null&&(Ge==null?void 0:Ge.total)!==void 0&&N.createElement("span",null,"\uFF08",Ge==null?void 0:Ge.total,"\uFF09"),(Ge==null?void 0:Ge.resetCount)!==void 0&&(Ge==null?void 0:Ge.total)!==void 0&&N.createElement(H.Z,{title:(Ge==null?void 0:Ge.tip)!=null?Ge==null?void 0:Ge.tip:""},N.createElement("span",{style:{color:"#9096A3"}},"\uFF08",N.createElement("span",{style:{color:"#000"}},Ge==null?void 0:Ge.resetCount),"/",N.createElement("span",null,Ge==null?void 0:Ge.total),"\uFF09"))))),N.createElement("div",{className:nt.tabBar},vt)),Ye=({className:Ue,style:Re={},children:Ce})=>N.createElement("div",{className:g()(Ue),style:Re},Ce),Ve={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},ht=W(38854),$e=W(20834);const Et=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Kt=({sortValue:Ue,dropValue:Re,className:Ce,onSort:Ze,onDrop:ct,dataSource:vt=Et})=>{var Ge;return N.createElement("div",{className:g()(Ve.orderWrap,Ce)},N.createElement(ht.Z,{dropdownRender:()=>N.createElement($e.default,null,vt.map((xt,Ft)=>N.createElement($e.default.Item,{key:Ft,onClick:()=>ct(xt.id)},xt.name)))},N.createElement("span",{className:Ve.orderTextWrap},(Ge=vt.find(xt=>Re===xt.id))==null?void 0:Ge.name)),N.createElement("span",{className:Ve.orderIconWrap},N.createElement("span",{className:Ve.orderAsc},N.createElement("i",{className:Ue==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ve.cursorPointer} ${Ve.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ve.cursorPointer}`,onClick:()=>Ze(Ue==="asc"?"desc":"asc")})),N.createElement("span",{className:Ve.orderDesc},N.createElement("i",{className:Ue==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ve.cursorPointer} ${Ve.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ve.cursorPointer}`,onClick:()=>Ze(Ue==="asc"?"desc":"asc")}))))},ut={flex_box_center:"flex_box_center___JJ9sS",flex_space_between:"flex_space_between___t8Vfh",flex_box_vertical_center:"flex_box_vertical_center___NXwpW",flex_box_center_end:"flex_box_center_end___d7nF9",flex_box_column:"flex_box_column___RWkXa",orderWrap:"orderWrap___Z6UhI",orderIconWrap:"orderIconWrap___vT5et",orderAsc:"orderAsc___Xrpfj",orderDesc:"orderDesc___FgOA0",active:"active___ryj8i",cursorPointer:"cursorPointer___Gg3bB",orderTextWrap:"orderTextWrap___BAYWJ"};const Ut=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var we=({sortValue:Ue,dropValue:Re,className:Ce,onSort:Ze,onDrop:ct,dataSource:vt=Ut})=>{var Ge;return N.createElement("div",{className:g()(ut.orderWrap,Ce)},N.createElement(ht.Z,{dropdownRender:()=>N.createElement($e.default,null,vt.map((xt,Ft)=>N.createElement($e.default.Item,{key:Ft,onClick:()=>ct(xt.id)},xt.name)))},N.createElement("span",{className:ut.orderTextWrap},(Ge=vt.find(xt=>Re===xt.id))==null?void 0:Ge.name)),N.createElement("span",{className:ut.orderIconWrap},N.createElement("span",{className:ut.orderAsc},N.createElement("i",{className:Ue==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ut.cursorPointer} ${ut.active}`:`iconfont icon-sanjiaoxing-up font12 ${ut.cursorPointer}`,onClick:()=>Ze(Ue==="asc"?"desc":"asc")})),N.createElement("span",{className:ut.orderDesc},N.createElement("i",{className:Ue==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ut.cursorPointer} ${ut.active}`:`iconfont icon-sanjiaoxing-down font12 ${ut.cursorPointer}`,onClick:()=>Ze(Ue==="asc"?"desc":"asc")}))))},Be={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v",ThemeOne:"ThemeOne___iCQio"},je=W(3113),Se=W(2337),He=Object.defineProperty,We=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Ot=(Ue,Re,Ce)=>Re in Ue?He(Ue,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):Ue[Re]=Ce,Wt=(Ue,Re)=>{for(var Ce in Re||(Re={}))dt.call(Re,Ce)&&Ot(Ue,Ce,Re[Ce]);if(We)for(var Ce of We(Re))St.call(Re,Ce)&&Ot(Ue,Ce,Re[Ce]);return Ue},Pt=(Ue,Re)=>{var Ce={};for(var Ze in Ue)dt.call(Ue,Ze)&&Re.indexOf(Ze)<0&&(Ce[Ze]=Ue[Ze]);if(Ue!=null&&We)for(var Ze of We(Ue))Re.indexOf(Ze)<0&&St.call(Ue,Ze)&&(Ce[Ze]=Ue[Ze]);return Ce},Te=(Ue,Re,Ce)=>new Promise((Ze,ct)=>{var vt=Ft=>{try{xt(Ce.next(Ft))}catch(kt){ct(kt)}},Ge=Ft=>{try{xt(Ce.throw(Ft))}catch(kt){ct(kt)}},xt=Ft=>Ft.done?Ze(Ft.value):Promise.resolve(Ft.value).then(vt,Ge);xt((Ce=Ce.apply(Ue,Re)).next())}),Dt=Ue=>{var Re=Ue,{className:Ce,style:Ze,children:ct,loading:vt=!1,openLoading:Ge,onClick:xt=()=>{},size:Ft="middle",shape:kt="round",theme:It}=Re,gt=Pt(Re,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[qt,ur]=(0,N.useState)(!1),Er=(0,N.useMemo)(()=>{switch(It){case Se.Fy.THEMEONE:return Be.ThemeOne;case Se.Fy.DEFAULT:default:return Be.btn}},[It]);return N.createElement(je.ZP,Wt({onClick:(0,x.throttle)(Xt=>Te(void 0,null,function*(){Ge&&ur(!0);try{yield xt(Xt)}catch(zt){console.log("error",zt)}Ge&&ur(!1)}),2e3,{leading:!0,trailing:!1}),className:g()(Er,Be[`${Ft}-${kt}`],Ce),style:Ze,size:Ft,shape:kt,loading:qt||vt},gt),ct)},Zt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},lr=({className:Ue,style:Re,children:Ce=null,onClick:Ze,title:ct})=>N.createElement("div",{className:g()(Zt.head,Ue),style:Re},N.createElement("span",{className:"primary-hover",onClick:Ze},N.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),N.createElement("b",{title:ct},ct),N.createElement("div",{className:Zt.node},Ce)),rr={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},ir=({confirmShow:Ue=!0,confirmTitle:Re,confirmClick:Ce,cancelShow:Ze=!0,cancelTitle:ct,cancelClick:vt,className:Ge,style:xt,confirmLoading:Ft=!1})=>N.createElement("div",{className:g()(rr.btns,Ge),style:xt},Ue&&N.createElement(je.ZP,{loading:Ft,onClick:Ce,type:"primary",className:rr.confirm},Re),Ze&&N.createElement(je.ZP,{onClick:vt,className:rr.cancel},ct)),Jt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Cr=({className:Ue,style:Re={},LeftContent:Ce,children:Ze,RightContent:ct})=>N.createElement("div",{className:g()(Jt.fixedBottom,Ue),style:Re},N.createElement("div",{className:Jt.wrap},N.createElement("div",{className:Jt.left},Ce),N.createElement("div",{className:Jt.center},Ze),N.createElement("div",{className:Jt.right},ct))),Ht={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Vt=({className:Ue,style:Re={},dataSource:Ce=[]})=>N.createElement("div",{className:g()(Ht.crumbs,Ue),style:Re},Ce.map((Ze,ct)=>ctq.history.push(Ze.path)},Ze.name):N.createElement("span",null,Ze.name),N.createElement("span",null,"\xA0",">","\xA0")):N.createElement("span",{key:ct,style:{color:"#5F6368"}},Ze.name))),or=W(31797),nr=Object.defineProperty,ar=Object.defineProperties,tr=Object.getOwnPropertyDescriptors,dr=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable,xr=(Ue,Re,Ce)=>Re in Ue?nr(Ue,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):Ue[Re]=Ce,wt=(Ue,Re)=>{for(var Ce in Re||(Re={}))pr.call(Re,Ce)&&xr(Ue,Ce,Re[Ce]);if(dr)for(var Ce of dr(Re))hr.call(Re,Ce)&&xr(Ue,Ce,Re[Ce]);return Ue},bt=(Ue,Re)=>ar(Ue,tr(Re)),Qt=(Ue,Re)=>{var Ce={};for(var Ze in Ue)pr.call(Ue,Ze)&&Re.indexOf(Ze)<0&&(Ce[Ze]=Ue[Ze]);if(Ue!=null&&dr)for(var Ze of dr(Ue))Re.indexOf(Ze)<0&&hr.call(Ue,Ze)&&(Ce[Ze]=Ue[Ze]);return Ce};const{Countdown:$t}=or.default;var Ir=Ue=>{var Re=Ue,{onChange:Ce}=Re,Ze=Qt(Re,["onChange"]);const[ct,vt]=(0,N.useState)(null);(0,N.useEffect)(()=>{typeof ct=="number"&&ct>=0&&Ce(ct)},[ct]);const Ge=xt=>{const Ft=Math.floor(xt/1e3);vt(Ft)};return N.createElement($t,bt(wt({},Ze),{onChange:Ge}))},br={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},Sr=({DataProps:Ue,className:Re,style:Ce={}})=>{var Ze;return N.createElement("div",{className:g()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",br.ClassRoomItem,Re),style:Ce,onClick:()=>{(0,k.xg)(Ue==null?void 0:Ue.first_category_url)}},N.createElement("div",{className:"flex flex-col item-center"},N.createElement("img",{src:`${(Ze=V.Z)==null?void 0:Ze.IMG_SERVER}/images/${Ue==null?void 0:Ue.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(Ue==null?void 0:Ue.subject_identifier)&&N.createElement("div",{className:"mt-40px"},N.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),N.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),N.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},N.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(Ue!=null&&Ue.is_public)&&N.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),N.createElement("span",{className:g()("text-16px font-medium",br.TitleDom)},Ue==null?void 0:Ue.name)),N.createElement("div",{className:"c-grey-333 font-medium"},Ue==null?void 0:Ue.creator),N.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",Ue==null?void 0:Ue.course_members_count),N.createElement("div",{className:"c-grey-333 flex item-center justify-between"},N.createElement("div",null,"\u4F5C\u4E1A\uFF1A",Ue==null?void 0:Ue.tasks_count),Ue!=null&&Ue.is_end?N.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):N.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},Or=Object.defineProperty,Tr=Object.getOwnPropertySymbols,Lr=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable,Mr=(Ue,Re,Ce)=>Re in Ue?Or(Ue,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):Ue[Re]=Ce,Br=(Ue,Re)=>{for(var Ce in Re||(Re={}))Lr.call(Re,Ce)&&Mr(Ue,Ce,Re[Ce]);if(Tr)for(var Ce of Tr(Re))Ar.call(Re,Ce)&&Mr(Ue,Ce,Re[Ce]);return Ue},Zr=({DataProps:Ue=[],selectValue:Re,onChange:Ce,className:Ze,style:ct={},extra:vt,classNameItem:Ge,styleItem:xt={},barHidden:Ft})=>{const[kt,It]=(0,N.useState)();return(0,N.useEffect)(()=>{It(Array.isArray(Re)?Re:[Re])},[Re]),N.createElement("div",{className:g()("flex px-20px py-10px gap-40px",Ze),style:Br({borderBottom:"1px solid #D3F0FF"},ct)},Ue==null?void 0:Ue.map(gt=>N.createElement("div",{key:gt==null?void 0:gt.id,className:g()("flex item-center justify-center current c-grey-333 text-16 relative",Ge,gt==null?void 0:gt.className),style:Br(Br({color:kt!=null&&kt.includes(gt==null?void 0:gt.id)?"#1890FF":"",minWidth:88},xt),(gt==null?void 0:gt.style)||{}),onClick:qt=>{Ce==null||Ce({domEvent:qt,item:gt}),gt!=null&>.link&&q.history.push(gt==null?void 0:gt.link)}},gt==null?void 0:gt.name,!Ft&&(kt==null?void 0:kt.includes(gt==null?void 0:gt.id))&&N.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),N.createElement("div",{className:"ml-auto"},vt))},zr=Object.defineProperty,Kr=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,Wr=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,Xr=(Ue,Re,Ce)=>Re in Ue?zr(Ue,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):Ue[Re]=Ce,Nr=(Ue,Re)=>{for(var Ce in Re||(Re={}))tn.call(Re,Ce)&&Xr(Ue,Ce,Re[Ce]);if(Wr)for(var Ce of Wr(Re))rn.call(Re,Ce)&&Xr(Ue,Ce,Re[Ce]);return Ue},ln=(Ue,Re)=>Kr(Ue,sn(Re)),nn=({value:Ue,onChange:Re,onInputChange:Ce,className:Ze,style:ct={},InputProps:vt})=>{const[Ge,xt]=(0,N.useState)(Ue);return N.createElement("div",{className:g()("flex item-center rounded-full px-10px py-2px",Ze),style:Nr({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},ct)},N.createElement(C.default,ln(Nr({bordered:!1},vt),{onChange:Ft=>{xt(Ft.target.value),Ce==null||Ce(encodeURIComponent(Ft.target.value))},onPressEnter:Ft=>{Re==null||Re({domEvent:Ft,item:{value:Ge}})}})),N.createElement("img",{className:"h-22px current",src:W(25365),height:22,onClick:Ft=>{Re==null||Re({domEvent:Ft,item:{value:Ge}})}}))}},84536:function(ft,Me,W){"use strict";W.r(Me),W.d(Me,{default:function(){return _t}});var N=W(65862),G=W(6848),w=W(12563),E=W(93948),O=W(28103),A=W(71418),_=W(66104),g=W(57809),x=W(79817),m=W(43418),a=W(59301),u=W(65582),h=W(2866),r=W(61527),n=W(49320),s=W(21043),d=Object.defineProperty,o=Object.defineProperties,c=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable,i=(ze,Ke,ke)=>Ke in ze?d(ze,Ke,{enumerable:!0,configurable:!0,writable:!0,value:ke}):ze[Ke]=ke,l=(ze,Ke)=>{for(var ke in Ke||(Ke={}))e.call(Ke,ke)&&i(ze,ke,Ke[ke]);if(f)for(var ke of f(Ke))t.call(Ke,ke)&&i(ze,ke,Ke[ke]);return ze},v=(ze,Ke)=>o(ze,c(Ke)),y=(ze,Ke,ke)=>new Promise((Rt,it)=>{var st=mt=>{try{yt(ke.next(mt))}catch(Tt){it(Tt)}},pt=mt=>{try{yt(ke.throw(mt))}catch(Tt){it(Tt)}},yt=mt=>mt.done?Rt(mt.value):Promise.resolve(mt.value).then(st,pt);yt((ke=ke.apply(ze,Ke)).next())});const p=[{name:"\u6839\u8282\u70B9",src:"/images/one.svg",color:"#CC7CF5"},{name:"\u8BFE\u7A0B",src:"/images/kc.svg",color:"#3241F7"},{name:"\u7AE0\u8282",src:"/images/zj.svg",color:"#5e54e7"},{name:"\u77E5\u8BC6\u70B9",src:"/images/zsd.svg",color:"#FFDF55"},{name:"\u5B9E\u8BAD",src:"/images/sx.svg",color:"#4E9DFF"},{name:"\u4F5C\u4E1A",src:"/images/zy.svg",color:"#445DF3"},{name:"\u89C6\u9891",src:"/images/sp.svg",color:"#6BC4DE"},{name:"\u8BFE\u4EF6",src:"/images/fj.svg",color:"#6BDE73"},{name:"\u8BD5\u5377",src:"/images/sj.svg",color:"#2D9534"},{name:"\u5176\u4ED6",src:"/images/qt.svg",color:"#2D947C"}],C=(ze,Ke)=>{const ke={};let Rt=null;return ze.forEach(it=>{ke[it.properties.uuid]=v(l({},it),{id:it.properties.uuid,children:[]})}),Ke.forEach(it=>{const st=ke[it.startNodeUuid],pt=ke[it.endNodeUuid];st&&(st.id=st.properties.uuid),st&&pt&&st.children.push(pt)}),ze.forEach(it=>{!Ke.some(pt=>pt.endNodeUuid===it.properties.uuid)&&(Rt=ke[it.properties.uuid])}),Rt},S=(ze,Ke)=>{const ke=ze.getParentData(Ke.id,"tree");return ke?Ke.style.x>ke.style.x?"right":"left":"center"};var D=({loading:ze,nodes:Ke=[],relationships:ke=[]})=>{const Rt=(0,a.useRef)(null),it=(0,a.useRef)(),st=(0,a.useRef)(0);(0,a.useEffect)(()=>{(Ke==null?void 0:Ke.length)>0&&pt()},[]);const pt=()=>y(void 0,null,function*(){var mt,Tt,lt;const At=C(Ke==null?void 0:Ke.map((Yt,qe)=>{var b,F,z,Y,te;return v(l({},Yt),{key:qe,title:(b=Yt==null?void 0:Yt.properties)==null?void 0:b.name,newcolor:parseInt((F=Yt==null?void 0:Yt.properties)==null?void 0:F.color)===1?"#CC7CF5":((z=p==null?void 0:p.find(q=>{var Q;return(q==null?void 0:q.name)===((Q=Yt==null?void 0:Yt.properties)==null?void 0:Q.nodeType)}))==null?void 0:z.color)||"#2D947C",colornodeType:parseInt((Y=Yt==null?void 0:Yt.properties)==null?void 0:Y.color)===1?"\u6839\u8282\u70B9":((te=p==null?void 0:p.find(q=>{var Q;return(q==null?void 0:q.name)===((Q=Yt==null?void 0:Yt.properties)==null?void 0:Q.nodeType)}))==null?void 0:te.name)||"\u5176\u4ED6"})}),ke==null?void 0:ke.filter(Yt=>Yt.type==="\u5305\u542B"));it!=null&&it.current&&((mt=it==null?void 0:it.current)==null||mt.destroy());const Lt=(0,s.RN)(At),Ct=(Tt=Lt.nodes)==null?void 0:Tt.filter((Yt,qe,b)=>qe===b.findIndex(F=>F.id===Yt.id)),jt=(lt=Lt.edges)==null?void 0:lt.filter((Yt,qe,b)=>qe===b.findIndex(F=>F.source===Yt.source&&F.target===Yt.target));yt({nodes:Ct,edges:jt})}),yt=mt=>{var Tt,lt;it.current=null,it.current=new s.kJ({container:Rt.current,autoResize:!0,autoFit:{type:((Tt=mt==null?void 0:mt.nodes)==null?void 0:Tt.length)>20?"view":"center",options:{direction:"both",when:"always"}},animation:!(((lt=mt==null?void 0:mt.nodes)==null?void 0:lt.length)>300),data:mt,node:{style:{labelText:At=>At.title,labelFill:"#333333",fill:At=>At.newcolor,labelBackground:!1,labelPlacement:function(At){const Lt=S(this,At);return Lt==="center"?"right":Lt},ports:[{placement:"right"},{placement:"left"}]},animation:{enter:!1}},edge:{type:"cubic-horizontal",animation:{enter:!1}},layout:{type:"mindmap",direction:"H",getHeight:()=>32,getWidth:()=>32,getVGap:()=>4,getHGap:()=>80,getSide:At=>(st.current++,st.current%2==0?"left":"right")},behaviors:["zoom-canvas","collapse-expand","drag-canvas"]}),it.current.render()};return a.createElement("div",{style:{height:"100%"}},a.createElement(A.Z,{spinning:ze,className:"mt60 w100",tip:"\u52A0\u8F7D\u4E2D..."}),a.createElement("div",{style:{height:"100%"},ref:Rt}))},I=W(42441),M=W(41867),L=({abilityGoalItem:ze=[]})=>{var Ke,ke;const Rt=(Ke=(0,M.eY)())==null?void 0:Ke.username,it=typeof((ke=ze==null?void 0:ze[0])==null?void 0:ke.user_grasp_rate)=="number",st=ze.map(Tt=>Tt.grasp_rate),pt=ze.map(Tt=>Tt.user_grasp_rate),yt=()=>{const Tt=ze.map(Lt=>Lt.name),lt=[{type:"bar",name:"\u7CFB\u7EDF\u5E73\u5747",data:st,barMaxWidth:"20%",barGap:"50%",itemStyle:{color:"#028DFD"},label:{show:!0,position:"top",formatter:"{c}%",color:"#666"}}];it&<.unshift({type:"bar",name:Rt,data:pt,barMaxWidth:"20%",itemStyle:{color:"#CDCB56"},label:{show:!0,position:"top",formatter:"{c}%",color:"#666"}});const At={tooltip:{appendToBody:!0,trigger:"item",formatter:Lt=>{const{value:Ct,name:jt,seriesName:Yt}=Lt;return`
${jt}
${Yt}\uFF1A${Ct}%
`}},grid:{left:"0%",right:"10%",bottom:"3%",containLabel:!0},xAxis:{data:Tt,axisLabel:{color:"#666",formatter:function(Lt){return Lt.length>4?Lt.substring(0,4)+"...":Lt}},axisTick:{show:!1},axisLine:{show:!1}},yAxis:{show:!1,type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#666",formatter:"{value}%"},splitLine:{lineStyle:{color:"rgba(164,200,252,0.1)"}}},series:lt};return a.createElement(I.Z,{option:At,className:"w-full"})},mt=()=>{const Tt=Math.max(...st,...it?pt:[])*1.2||10,lt=[{value:st,name:"\u7CFB\u7EDF\u5E73\u5747",lineStyle:{color:"rgba(2, 141, 253, 1)",window:3},areaStyle:{color:"rgba(2, 141, 253, 0.35)"},itemStyle:{color:"rgba(2, 141, 253, 1)",borderWidth:2}}];it&<.unshift({value:pt,name:Rt,lineStyle:{color:"rgba(205, 203, 86, 1)",window:3},areaStyle:{color:"rgba(205, 203, 86, 0.35)"},itemStyle:{color:"rgba(205, 203, 86, 1)",borderWidth:2}});const At={tooltip:{appendToBody:!0,trigger:"item",position:"right"},radar:{indicator:ze.map(Lt=>({name:Lt.name,max:Tt,min:0})),splitArea:{areaStyle:{color:["#fff","#f3f4f9"]}},name:{color:"#333",fontSize:12,formatter:function(Lt){return Lt.length>3?Lt.slice(0,3)+"...":Lt}},nameGap:5,axisLine:{lineStyle:{color:"#D9D9D9"}},splitLine:{lineStyle:{color:"#D9D9D9"}},center:["50%","50%"],radius:"50%"},series:[{type:"radar",symbolSize:2,tooltip:{trigger:"item",formatter:function(Lt){console.log(Lt);let Ct=Lt.name+"
";return Lt.value.forEach((jt,Yt)=>{Ct+=ze[Yt].name+"\uFF1A"+jt+"%
"}),Ct}},data:lt}]};return a.createElement(I.Z,{option:At,className:"w-full"})};return a.createElement("div",{className:"flex flex-col item-center mt-20px-rem"},a.createElement("b",{className:"text-16px-rem"}," ",it?"\u80FD\u529B\u56FE\u8C31\u4E2A\u4EBA\u638C\u63E1\u60C5\u51B5":"\u80FD\u529B\u56FE\u8C31\u638C\u63E1\u7387\u60C5\u51B5"),it&&a.createElement("div",{className:"flex item-center gap-20px-rem text-14px-rem mt-10px-rem"},a.createElement("div",{className:"flex item-center"},a.createElement("b",{className:"mr-10px-rem flex",style:{width:"16rem",height:"8rem",background:"#CDCB56"}}),a.createElement(G.Z,{title:Rt},a.createElement("span",null,(0,N.Pq)(Rt,4)))),a.createElement("div",{className:"flex item-center"},a.createElement("b",{className:"mr-10px-rem flex",style:{width:"16rem",height:"8rem",background:"#028DFD"}}),"\u7CFB\u7EDF\u5E73\u5747")),ze.length<3&&yt(),ze.length>=3&&mt())},R=W(3918),B=W(38147),U=W(74128),H=W(21185),K={NextAbility:"NextAbility___wLOPq",AnchorDomStyle:"AnchorDomStyle___CG1xj",AnchorDom:"AnchorDom___jjRxi"},V="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA1lJREFUWEfFl09oXFUUxn/nvTEpbXXRos4bgwgGRYtZCIILhQSFtgEjgnShCNJV05pMqQstpV1UjW6seY1pFERB6EYEJVJbRMmALgqCixTFlgoupjOjUhdNo0068z65w0ycmcxMJmbk3e39zne+d/69c40Oz45P1PPnbwxZxEgkHjQjJUg5c4OcRM4zfpLH7LY7mftxjy13Qm1rge6ZVnK5yLEInkfctha+fG9c8+B0T4Ljvx6wQjublgL6T6r3L3EkEoeALR05Xg1a9IwTm403Lo/bUjOOpgLcV98o8hni0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VaLBC/ysrCvA5Ywv3aSHCDeN4Gd7jP30m35w8DyDRToFLjCSLeyYA6GuDhxZ4l8iPAu49UtzWG5I5i5xo8OwPILJr1r+TBnodj4XnHQOQYAAcGlzlXHo+BvBdK3asUvvPgcnkkV73LWWcMIAEHpLqCh3ied5wS9QaSxwHYO2CItM23isjdHr1vK6XuHrtMNqXdgW5uzwAScfQWOnxZn2A+PMyn/xP0S2T6JVUPihg6qPujAMYB2SzEOBTGJ4nxjbY8HjSQsX9WAQNIQrNhyQ0sPboZ8z20FkDEB2ZfQM0lvL0E4r/Z34vA3O2/c6/O237/p388A2AbIM8Q3Cbt39H5XT0DeP6ffwNyXKG0+aAFGF9/hrQSSqWnw/4f5GnaW9nfPLQAAAAASUVORK5CYII=",de=Object.defineProperty,ve=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,j=(ze,Ke,ke)=>Ke in ze?de(ze,Ke,{enumerable:!0,configurable:!0,writable:!0,value:ke}):ze[Ke]=ke,re=(ze,Ke)=>{for(var ke in Ke||(Ke={}))X.call(Ke,ke)&&j(ze,ke,Ke[ke]);if(oe)for(var ke of oe(Ke))ne.call(Ke,ke)&&j(ze,ke,Ke[ke]);return ze},Z=(ze,Ke)=>ve(ze,ce(Ke));const ee={\u5B9E\u8BAD:V,\u8BD5\u5377:k,\u8BFE\u4EF6:$,\u89C6\u9891:ae,\u4E3B\u80FD\u529B:he,\u5B50\u80FD\u529B:ge,\u77E5\u8BC6\u70B9:me,\u8D44\u6E90:pe,\u603B\u6570:le,\u6559\u6750:Ee};var J=({type:ze,ImgProps:Ke})=>a.createElement("img",Z(re({src:(ee==null?void 0:ee[ze])||(ee==null?void 0:ee.\u8BFE\u4EF6)},Ke),{width:"16rem",style:re({width:"16rem"},(Ke==null?void 0:Ke.style)||{})})),ie=W(44080),fe=W(87513),_e=Object.defineProperty,De=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,xe=(ze,Ke,ke)=>Ke in ze?_e(ze,Ke,{enumerable:!0,configurable:!0,writable:!0,value:ke}):ze[Ke]=ke,be=(ze,Ke)=>{for(var ke in Ke||(Ke={}))Le.call(Ke,ke)&&xe(ze,ke,Ke[ke]);if(Ne)for(var ke of Ne(Ke))ue.call(Ke,ke)&&xe(ze,ke,Ke[ke]);return ze},Ae=(ze,Ke)=>De(ze,Ie(Ke)),Qe=(ze,Ke,ke)=>new Promise((Rt,it)=>{var st=mt=>{try{yt(ke.next(mt))}catch(Tt){it(Tt)}},pt=mt=>{try{yt(ke.throw(mt))}catch(Tt){it(Tt)}},yt=mt=>mt.done?Rt(mt.value):Promise.resolve(mt.value).then(st,pt);yt((ke=ke.apply(ze,Ke)).next())});const et=({children:ze,cout:Ke=1})=>{const ke=(0,a.useRef)(null),[Rt,it]=(0,a.useState)(0),[st,pt]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{ke.current&&setTimeout(()=>{const yt=(0,N.ZR)(ke.current,"rem",1);it(yt)},500)},[ke.current]),a.createElement("div",{className:"relative flex item-end "},a.createElement("div",{style:{height:st?"auto":`${Ke*23.25}rem`,overflow:"hidden"}},a.createElement("div",{ref:ke,style:{fontSize:"14rem"}},ze)),Rt>=Ke*23.25&&a.createElement("div",{className:"current c-blue",style:{whiteSpace:"nowrap"},onClick:()=>{pt(!st)}},st?"\u6536\u8D77":"\u5C55\u793A"))},at=({DataProps:ze,pathsDetail:Ke,getUrl:ke})=>{var Rt,it,st,pt;const{detail:yt}=Ke,[mt,Tt]=(0,a.useState)(!1);return a.createElement("div",{id:`${ze==null?void 0:ze.id}`,className:"bg-white",style:{borderRadius:"4rem",padding:"15rem 30rem 30rem"}},a.createElement("div",{style:{color:"#3061D0"}},a.createElement(J,{type:"\u5B50\u80FD\u529B",ImgProps:{style:{marginRight:"5rem"}}}),"\u5B50\u80FD\u529B"),a.createElement("div",{className:"c-grey-333 flex item-center",style:{fontSize:"14rem",margin:"20rem 0 10rem 0",gap:"10rem"}},a.createElement(G.Z,{title:ze==null?void 0:ze.name},a.createElement("div",{className:"multi_ellipsis1 minW-0"},ze==null?void 0:ze.name)),a.createElement("div",{className:"flex item-center",style:{gap:"5rem"}},(Rt=ze==null?void 0:ze.ability_tags)==null?void 0:Rt.map(lt=>a.createElement(w.Z,{color:"orange",style:{fontSize:"12rem"}},lt)))),(ze==null?void 0:ze.description)&&a.createElement("div",{style:{padding:"12rem",background:"#F6F7F9"}},a.createElement(et,null,ze==null?void 0:ze.description)),a.createElement("div",{className:"flex item-center justify-center w-full",style:{margin:"20rem 0",padding:"12rem",background:"linear-gradient( 180deg, #ECF3FF 0%, rgba(255,255,255,0) 100%)"}},"\u8986\u76D6 ",a.createElement(J,{type:"\u77E5\u8BC6\u70B9",ImgProps:{style:{margin:"0 5rem"}}})," ",ze==null?void 0:ze.knowledge_count,"\u4E2A\u77E5\u8BC6\u70B9",a.createElement("span",{style:{marginLeft:"40rem"}},a.createElement(J,{type:"\u8D44\u6E90",ImgProps:{style:{marginRight:"5rem"}}}),ze==null?void 0:ze.resource_count,"\u4E2A\u8D44\u6E90\u6570")),a.createElement("div",{style:{marginBottom:"10rem"}},a.createElement(J,{type:"\u77E5\u8BC6\u70B9",ImgProps:{style:{marginRight:"5rem"}}}),"\u8986\u76D6\u77E5\u8BC6\u70B9",ze==null?void 0:ze.knowledge_count,"\u4E2A"),a.createElement("div",{style:{height:"320rem",background:"#F6F7F9"}},a.createElement(D,{loading:!1,nodes:ze==null?void 0:ze.nodes,relationships:ze==null?void 0:ze.relationships})),a.createElement("div",{style:{margin:"30rem 0 10rem"}},a.createElement(J,{type:"\u8D44\u6E90",ImgProps:{style:{marginRight:"5rem"}}}),"\u8986\u76D6\u8D44\u6E90\u6570",ze==null?void 0:ze.resource_count,"\u4E2A"),a.createElement("div",{className:"flex-wrap",style:{gap:"10rem",display:"grid",gridTemplateColumns:"1fr 1fr"}},(pt=((it=ze==null?void 0:ze.resource_knowledge_graphs)==null?void 0:it.length)>4&&!mt?(st=ze==null?void 0:ze.resource_knowledge_graphs)==null?void 0:st.slice(0,4):ze==null?void 0:ze.resource_knowledge_graphs)==null?void 0:pt.map(lt=>a.createElement("div",{key:lt==null?void 0:lt.id,className:"flex relative current",style:{gap:"10rem",padding:"25rem",background:"#f6f6f6",borderRadius:"10rem"},onClick:()=>Qe(void 0,null,function*(){yield ke==null?void 0:ke(lt)})},!(yt!=null&&yt.can_managed)&&a.createElement("div",{className:"absolute c-white",style:{top:0,right:0,padding:"2rem 10rem",borderRadius:"0 10rem 0 10rem",color:(lt==null?void 0:lt.complete_rate)!=100&&"#7C3100",background:(lt==null?void 0:lt.complete_rate)!=100?"#FFC86B":"#37AD83"}},(lt==null?void 0:lt.complete_rate)==100?"\u5DF2\u5B8C\u6210":"\u672A\u5B8C\u6210"),a.createElement(E.Z,{type:"circle",percent:lt==null?void 0:lt.complete_rate,size:60,status:"success",format:At=>`${At}%`,strokeWidth:10}),a.createElement(J,{type:lt==null?void 0:lt.node_type,ImgProps:{style:{width:"16rem",height:"16rem",marginTop:"3rem"}}}),a.createElement("div",{className:"flex-1 minW-0"},a.createElement(G.Z,{title:lt==null?void 0:lt.name,placement:"topLeft"},a.createElement("div",{className:"multi_ellipsis1 c-grey-333 blod",style:{fontSize:"16rem"}},lt==null?void 0:lt.name)),a.createElement("div",{className:"c-grey-333",style:{marginTop:"10rem",fontSize:"14rem"}},"\u77E5\u8BC6\u70B9\uFF1A",(lt==null?void 0:lt.knowledge_text)||"--"),(yt==null?void 0:yt.can_managed)&&a.createElement("div",{className:"flex flex-wrap item-center v-grey-666",style:{marginTop:"20rem",fontSize:"12rem",gap:"10rem"}},a.createElement("div",null,"\u5B66\u4E60\u4EBA\u6570\uFF1A",lt==null?void 0:lt.study_count,"\u4EBA"),a.createElement("div",null,"\u638C\u63E1\u4EBA\u6570\uFF1A",lt==null?void 0:lt.complete_count,"\u4EBA"),a.createElement("div",null,"\u638C\u63E1\u7387\uFF1A",lt==null?void 0:lt.complete_rate,"%")))))),(ze==null?void 0:ze.resource_knowledge_graphs.length)>4&&a.createElement("div",{className:"flex item-center justify-center",style:{padding:"0 220rem"},onClick:()=>{Tt(!mt)}},a.createElement(O.Z,{style:{borderColor:"#3061D0",marginBottom:"0rem",cursor:"pointer"},dashed:!0},a.createElement("span",{style:{color:"#3061D0"}},mt?"\u70B9\u51FB\u6536\u8D77":"\u70B9\u51FB\u5C55\u5F00\u66F4\u591A"))))},tt=({pathsDetail:ze,dispatch:Ke,user:ke})=>{var Rt,it,st,pt,yt,mt,Tt,lt,At,Lt,Ct,jt,Yt,qe,b,F,z,Y,te,q,Q,Pe,ye,Fe,Je,nt,Xe,ot,rt,Ye,Ve,ht,$e;const{detail:Et}=ze,Bt=(0,u.useParams)(),[Kt]=(0,u.useSearchParams)(),[ut,Ut]=(0,a.useState)({}),[Oe,we]=(0,a.useState)({id:null,open:!1,resourceUrl:""}),[,Be,je,Se]=(0,r.U)(n.Ju,{subject_id:Bt.pathId,id:Bt==null?void 0:Bt.abilityId}),[He,We]=(0,a.useState)([{name:"\u638C\u63E1\u738759%\u4EE5\u4E0B",value:0,itemStyle:{color:"rgb(6,110,247)"}},{name:"\u638C\u63E1\u738760%\uFF5E79%",value:0,itemStyle:{color:"rgb(6,234,230)"}},{name:"\u638C\u63E1\u738780%\uFF5E100%",value:0,itemStyle:{color:"rgb(223,209,38)"}}]),dt=new URLSearchParams(window.location.search),St=()=>Qe(void 0,null,function*(){const Te=yield je({subject_id:Bt==null?void 0:Bt.pathId,id:Bt==null?void 0:Bt.abilityId})}),Ot=Te=>Ke({type:"userDetail/logWatchHistory",payload:be({},Te)});function Wt(Te){return Qe(this,null,function*(){var Mt,Dt,Zt;let Nt=yield(0,B.ZP)("/api/knowledge/v2/get_container_type.json",{method:"get",params:{url:Te==null?void 0:Te.resourceUrl}});if(localStorage.setItem("container_type_tupu",Nt==null?void 0:Nt.container_type),(Nt==null?void 0:Nt.status)===0){if((Te==null?void 0:Te.node_type)=="\u8BD5\u5377"){const lr=yield(0,fe.Mb)({categoryId:Nt==null?void 0:Nt.examination_bank_id});lr!=null&&lr.exercise_id&&(0,N.xg)(`/classrooms/coursesId/exercise/${lr.exercise_id}/${(Mt=ke.userInfo)==null?void 0:Mt.login}/initate_answer`);return}(Nt==null?void 0:Nt.container_type)==="video"?we({id:Nt==null?void 0:Nt.id,open:!0,resourceUrl:Te==null?void 0:Te.resourceUrl}):(Nt==null?void 0:Nt.container_type)==="att"?Ut({url:U.Z.API_SERVER+((Dt=Nt==null?void 0:Nt.attachment)==null?void 0:Dt.url),file_type:(Zt=Nt==null?void 0:Nt.attachment)==null?void 0:Zt.file_type}):window.open(Te==null?void 0:Te.resourceUrl)}})}const Pt=Te=>Qe(void 0,null,function*(){(Te==null?void 0:Te.resourceOrigin)===3?(0,N.xg)(Te==null?void 0:Te.resourceUrl):Wt(Te),!(Et!=null&&Et.can_managed)&&(yield(0,B.ZP)("/api/subject_knowledge/create_study.json",{method:"post",body:{subject_id:Bt==null?void 0:Bt.pathId,uuid:(Te==null?void 0:Te.last_knowledge_uuid)||(Te==null?void 0:Te.knowledge_uuid)}}))});return(0,a.useEffect)(()=>{var Te,Mt;if((Se==null?void 0:Se.status)==0&&(Et!=null&&Et.can_managed)){const Dt=(Mt=Object==null?void 0:Object.entries(((Te=Se==null?void 0:Se.data)==null?void 0:Te.study_grasp_hash)||{}))==null?void 0:Mt.map(([Zt,Nt],lr)=>({name:Zt,value:Nt,itemStyle:He[lr].itemStyle}));We(Dt)}},[Et==null?void 0:Et.can_managed,Se]),(0,a.useEffect)(()=>{St()},[Bt==null?void 0:Bt.abilityId]),(0,a.useEffect)(()=>{Ke({type:"pathsDetail/getKnowledgeGraphs",payload:{graphable_type:Kt.get("type")=="classrooms"?"course":"subject",graphable_id:Bt==null?void 0:Bt.pathId}}),dt.set("tabs","5")},[]),(0,a.useEffect)(()=>(Ke({type:"globalSetting/footerToggle",payload:!1}),()=>{Ke({type:"globalSetting/footerToggle",payload:!0})}),[]),a.createElement(A.Z,{spinning:Be},a.createElement("div",{className:"ml-auto mr-auto",style:{width:"1200rem",paddingTop:"15rem"}},a.createElement(_.Z,{style:{fontSize:"14rem",marginBottom:"20rem"},items:[{title:a.createElement("a",{className:"flex item-center",style:{fontSize:"14rem"},onClick:()=>{u.history.push(`/knowledgegraph/${Bt.pathId}?${dt}`)}},a.createElement(G.Z,{title:"\u8FD4\u56DE"},a.createElement("i",{className:"iconfont icon-fanhui1",style:{fontSize:"14rem",marginRight:"20rem"}})),"\u80FD\u529B\u56FE\u8C31")},{title:"\u80FD\u529B\u8BE6\u60C5"}]}),a.createElement("div",{className:"w-full flex"},a.createElement("div",{className:"sticky flex flex-col",style:{width:"250rem",borderRadius:"4rem 0 0 4rem",maxHeight:"100vh",overflowY:"auto",overflowX:"hidden",top:0,background:"#F6F7F9"}},a.createElement(L,{abilityGoalItem:(Rt=Se==null?void 0:Se.data)==null?void 0:Rt.ability_goals}),a.createElement("div",{style:{padding:"10rem 20rem 20rem"}},a.createElement("div",{className:"c-grey-333",style:{fontSize:"16rem"}},"\u76EE\u5F55\u5BFC\u822A"),a.createElement(g.default,{className:"w-full",value:Number(Bt==null?void 0:Bt.abilityId),style:{marginTop:"10rem"},onChange:Te=>{u.history.push(`/knowledgegraph/${Bt.pathId}/abilityMap/detail/${Te}?${dt}`)},options:((st=(it=Se==null?void 0:Se.data)==null?void 0:it.ability_goals)==null?void 0:st.map(Te=>({label:Te==null?void 0:Te.name,value:Te==null?void 0:Te.id})))||[],size:"large"})),a.createElement(x.default,{className:K.AnchorDomStyle,items:(yt=(pt=Se==null?void 0:Se.data)==null?void 0:pt.children_ability_goals)==null?void 0:yt.map(Te=>{var Mt;return{key:Te==null?void 0:Te.id,href:`#${Te==null?void 0:Te.id}`,title:a.createElement("div",{className:`current relative ${K.AnchorDom}`},a.createElement("div",{className:"flex item-center",style:{gap:"10rem"}},a.createElement("div",{className:"flex-1 minW-0 multi_ellipsis1 c-grey-333",style:{fontSize:"14rem"}},Te==null?void 0:Te.name),a.createElement("span",{style:{color:"#464F66",fontSize:"12rem"}},Et!=null&&Et.can_managed?a.createElement(a.Fragment,null,a.createElement("span",{className:"iconfont icon-a-60-kejian",style:{marginRight:"5rem",fontSize:"12rem"}}),Te==null?void 0:Te.knowledge_count):a.createElement("span",{style:{color:"#00C088"}},a.createElement("span",{className:"iconfont icon-xuesheng2",style:{marginRight:"5rem",fontSize:"12rem"}}),(Te==null?void 0:Te.grasp_rate)||0,"%"))),a.createElement("div",{className:"flex flex-wrap",style:{gap:"5rem",marginTop:"10rem"}},(Mt=Te==null?void 0:Te.ability_tags)==null?void 0:Mt.map(Dt=>a.createElement(w.Z,{color:"orange",style:{fontSize:"12rem"},key:Dt},Dt))),a.createElement("div",{className:"multi_ellipsis2",style:{marginTop:"20rem",color:"#464F66",fontSize:"12rem"}},Te==null?void 0:Te.description))}})})),a.createElement("div",{className:"flex-1 minW-0 flex flex-col",style:{gap:"20rem"}},a.createElement("div",{className:"bg-white relative",style:{borderRadius:"4rem",padding:"15rem 30rem 30rem"}},((Tt=(mt=Se==null?void 0:Se.data)==null?void 0:mt.next_ability_goal)==null?void 0:Tt.id)&&a.createElement("div",{className:"absolute current",style:{right:0,top:0},onClick:()=>{var Te,Mt;u.history.push(`/knowledgegraph/${Bt.pathId}/abilityMap/detail/${(Mt=(Te=Se==null?void 0:Se.data)==null?void 0:Te.next_ability_goal)==null?void 0:Mt.id}?${dt}`)}},a.createElement("div",{className:K.NextAbility},a.createElement("div",{className:"multi_ellipsis1"},(At=(lt=Se==null?void 0:Se.data)==null?void 0:lt.next_ability_goal)==null?void 0:At.name),a.createElement("div",null,a.createElement("span",{className:"iconfont icon-you2",style:{fontSize:"14rem"}})))),a.createElement("div",{style:{color:"#3061D0"}},a.createElement(J,{type:"\u4E3B\u80FD\u529B",ImgProps:{style:{marginRight:"5rem"}}}),"\u4E3B\u80FD\u529B"),a.createElement("div",{className:"c-grey-333 blod",style:{fontSize:"14rem",margin:"20rem 0 10rem 0"}},(Lt=Se==null?void 0:Se.data)==null?void 0:Lt.name),((Ct=Se==null?void 0:Se.data)==null?void 0:Ct.description)&&a.createElement("div",{style:{padding:"12rem",background:"#F6F7F9"}},a.createElement(et,null,(jt=Se==null?void 0:Se.data)==null?void 0:jt.description)),(Et==null?void 0:Et.can_managed)&&a.createElement(a.Fragment,null,a.createElement("div",{className:"flex",style:{marginTop:"20rem",gap:"20rem"}},[{title:"\u5E73\u5747\u4E3B\u80FD\u529B\u638C\u63E1\u7387",value:(Yt=Se==null?void 0:Se.data)==null?void 0:Yt.children_ability_goal_grasp_rate,unit:"%",img:W(46016),bg:"#E3F1FF"},{title:"\u8986\u76D6\u77E5\u8BC6\u70B9",value:(qe=Se==null?void 0:Se.data)==null?void 0:qe.total_knowledge_count,unit:"\u4E2A",img:W(99755),bg:"#F1FDEF",ProgressTitle:"\u5360\u603B\u77E5\u8BC6\u70B9",percent:(b=Se==null?void 0:Se.data)==null?void 0:b.knowledge_rate,trailColor:"rgba(50, 199, 145, .1)",strokeColor:"#32C791"},{title:"\u8986\u76D6\u8D44\u6E90\u6570",value:(F=Se==null?void 0:Se.data)==null?void 0:F.total_resource_count,unit:"\u4E2A",img:W(92691),bg:"#FFF9F4",ProgressTitle:"\u5360\u603B\u8D44\u6E90\u6570",percent:(z=Se==null?void 0:Se.data)==null?void 0:z.resource_rate,trailColor:"rgba(236, 159, 48, 0.10)",strokeColor:"#EC9F30"}].map((Te,Mt)=>a.createElement("div",{key:Mt,className:"flex-1 minW-0 relative",style:{borderRadius:"6rem",background:Te==null?void 0:Te.bg,padding:"20rem 30rem"}},a.createElement("img",{src:Te==null?void 0:Te.img,width:"43rem",height:"43rem",className:"absolute",style:{right:"30rem",top:"20rem"}}),a.createElement("div",{className:"c-grey-666",style:{fontSize:"14rem"}},Te==null?void 0:Te.title),a.createElement("div",{className:"c-grey-333 blod",style:{marginTop:"10rem",fontSize:"26rem",lineHeight:"26rem"}},Te==null?void 0:Te.value,a.createElement("span",{style:{fontSize:"14rem"}},Te==null?void 0:Te.unit)),(Te==null?void 0:Te.ProgressTitle)&&a.createElement("div",{className:"c-grey-666",style:{fontSize:"12rem",marginTop:"20rem"}},a.createElement("div",null,Te==null?void 0:Te.ProgressTitle,Te==null?void 0:Te.percent,"%"),a.createElement(E.Z,{percent:Te==null?void 0:Te.percent,showInfo:!1,trailColor:Te==null?void 0:Te.trailColor,strokeColor:Te==null?void 0:Te.strokeColor,style:{marginBottom:"0",marginLeft:"0"}}))))),a.createElement("div",{className:"c-grey-333",style:{margin:"40rem 0 30rem 0",fontSize:"14rem"}},"\u5B66\u4E60\u7EDF\u8BA1"),a.createElement("div",{className:"flex"},a.createElement("div",{className:"minW-0 flex flex-col",style:{gap:"13rem",width:"200rem"}},[{title:"\u5B66\u4E60\u4EBA\u6570",value:(Y=Se==null?void 0:Se.data)==null?void 0:Y.study_count,unit:"",img:W(37426),bg:"rgba(68, 95, 232, 0.1)"},{title:"\u5B66\u4E60\u5B8C\u6210\u7387",value:(te=Se==null?void 0:Se.data)==null?void 0:te.complete_rate,unit:"%",img:W(19150),bg:"rgba(182, 129, 0, .1)"},{title:"\u5B66\u4E60\u638C\u63E1\u7387",value:(q=Se==null?void 0:Se.data)==null?void 0:q.grasp_rate,unit:"%",img:W(55303),bg:"rgba(6, 145, 127, .1)"}].map((Te,Mt)=>a.createElement("div",{key:Mt,className:"relative",style:{borderRadius:"6rem",padding:"20rem",background:Te==null?void 0:Te.bg}},a.createElement("div",{style:{fontSize:"14rem"}},Te==null?void 0:Te.title),a.createElement("div",{className:"blod",style:{fontSize:"26rem"}},Te==null?void 0:Te.value,a.createElement("span",{style:{fontSize:"14rem"}},Te==null?void 0:Te.unit)),a.createElement("img",{className:"absolute",style:{right:"6rem",bottom:"6rem"},height:"35rem",src:Te==null?void 0:Te.img})))),a.createElement("div",{className:"flex-1 minW-0"},a.createElement(h.Z,{dataSource:He,legend:{top:null,icon:"roundRect",bottom:10,itemWidth:14,itemGap:50,left:"center",formatter:Te=>Te}})))),!(Et!=null&&Et.can_managed)&&a.createElement(a.Fragment,null,a.createElement("div",{className:"flex item-center",style:{gap:"20rem",marginTop:"20rem"}},[{title:"\u8986\u76D6\u77E5\u8BC6\u70B9",value:(Q=Se==null?void 0:Se.data)==null?void 0:Q.total_knowledge_count,unit:"\u4E2A",percent:(Pe=Se==null?void 0:Se.data)==null?void 0:Pe.knowledge_rate,percenttitle:"\u5360\u603B\u77E5\u8BC6\u70B9",trailColor:"rgba(50, 199, 145, .1)",strokeColor:"#32C791"},{title:"\u8986\u76D6\u8D44\u6E90\u6570",value:(ye=Se==null?void 0:Se.data)==null?void 0:ye.total_resource_count,unit:"\u4E2A",percent:(Fe=Se==null?void 0:Se.data)==null?void 0:Fe.resource_rate,percenttitle:"\u5360\u603B\u8D44\u6E90\u6570",trailColor:"rgba(236, 159, 48, 0.10)",strokeColor:"#EC9F30"}].map((Te,Mt)=>a.createElement("div",{key:Mt,className:"flex-1 minW-0 flex justify-between c-grey-333",style:{gap:"20rem",background:"#F6F7F9",borderRadius:"6rem",padding:"30rem 60rem"}},a.createElement("div",{className:"flex flex-col justify-between"},a.createElement("div",{style:{fontSize:"14rem",whiteSpace:"nowrap"}},Te==null?void 0:Te.title),a.createElement("div",{className:"blod",style:{fontSize:"26rem"}},Te==null?void 0:Te.value,a.createElement("span",{style:{fontSize:"14rem"}},Te==null?void 0:Te.unit))),a.createElement("div",{className:"relative",style:{width:"133rem",height:"75rem"}},a.createElement(E.Z,{type:"dashboard",percent:Te==null?void 0:Te.percent,gapDegree:178,strokeWidth:10,className:"absolute",style:{right:0,top:0},trailColor:Te==null?void 0:Te.trailColor,strokeColor:Te==null?void 0:Te.strokeColor,strokeLinecap:"round",format:Dt=>a.createElement("div",{className:"c-grey-333",style:{fontSize:"12rem",textAlign:"center",marginTop:"-35rem"}},Dt,"%",a.createElement("br",null),a.createElement("br",null),Te==null?void 0:Te.percenttitle)}))))),a.createElement("div",{className:"c-grey-333 blod",style:{margin:"40rem 0 30rem 0",fontSize:"14rem"}},"\u5B66\u4E60\u7EDF\u8BA1"),a.createElement("div",{className:"flex",style:{marginTop:"20rem",gap:"20rem"}},[{title:"\u4E3B\u80FD\u529B\u638C\u63E1\u7387",value:(Je=Se==null?void 0:Se.data)==null?void 0:Je.children_ability_goal_grasp_rate,unit:"%",img:W(46016),bg:"#E3F1FF"},{title:"\u5DF2\u638C\u63E1\u77E5\u8BC6\u70B9",value:((nt=Se==null?void 0:Se.data)==null?void 0:nt.knowledge_grasp_count)||0,unit:"\u4E2A",img:W(99755),bg:"#F1FDEF",ProgressTitle:"\u77E5\u8BC6\u70B9\u638C\u63E1\u7387",percent:((Xe=Se==null?void 0:Se.data)==null?void 0:Xe.knowledge_grasp_rate)||0,trailColor:"rgba(50, 199, 145, .1)",strokeColor:"#32C791"},{title:"\u5DF2\u5B8C\u6210\u8D44\u6E90\u6570",value:((ot=Se==null?void 0:Se.data)==null?void 0:ot.resource_complete_count)||0,unit:"\u4E2A",img:W(92691),bg:"#FFF9F4",ProgressTitle:"\u5B8C\u6210\u8D44\u6E90\u7387",percent:((rt=Se==null?void 0:Se.data)==null?void 0:rt.resource_complete_rate)||0,trailColor:"rgba(236, 159, 48, 0.10)",strokeColor:"#EC9F30"}].map((Te,Mt)=>a.createElement("div",{key:Mt,className:"flex-1 minW-0 relative",style:{borderRadius:"6rem",background:Te==null?void 0:Te.bg,padding:"20rem 30rem"}},a.createElement("img",{src:Te==null?void 0:Te.img,width:"43rem",height:"43rem",className:"absolute",style:{right:"30rem",top:"20rem"}}),a.createElement("div",{className:"c-grey-666",style:{fontSize:"14rem"}},Te==null?void 0:Te.title),a.createElement("div",{className:"c-grey-333 blod",style:{marginTop:"10rem",fontSize:"26rem",lineHeight:"26rem"}},Te==null?void 0:Te.value,a.createElement("span",{style:{fontSize:"14rem"}},Te==null?void 0:Te.unit)),(Te==null?void 0:Te.ProgressTitle)&&a.createElement("div",{className:"c-grey-666",style:{fontSize:"12rem",marginTop:"20rem"}},a.createElement("div",null,Te==null?void 0:Te.ProgressTitle,Te==null?void 0:Te.percent,"%"),a.createElement(E.Z,{percent:Te==null?void 0:Te.percent,showInfo:!1,trailColor:Te==null?void 0:Te.trailColor,strokeColor:Te==null?void 0:Te.strokeColor,style:{marginBottom:"0",marginLeft:"0"}}))))),a.createElement("div",{className:"c-grey-333 blod",style:{margin:"30rem 0 10rem 0",fontSize:"14rem"}},"\u5F00\u59CB\u5B66\u4E60"),a.createElement("div",{className:"flex flex-col",style:{gap:"10rem"}},(Ve=(Ye=Se==null?void 0:Se.data)==null?void 0:Ye.children_ability_goals)==null?void 0:Ve.map(Te=>a.createElement("div",{key:Te==null?void 0:Te.id,className:"flex item-center",style:{gap:"20rem",padding:"20rem",background:"#F6F7F9",borderRadius:"6rem"}},a.createElement("div",{className:"flex-1 minW-0 flex flex-col"},a.createElement("div",{className:"flex",style:{gap:"10rem"}},a.createElement("div",{style:{color:"#3061D0"}},a.createElement(J,{type:"\u5B50\u80FD\u529B",ImgProps:{style:{marginRight:"5rem"}}}),"\u5B50\u80FD\u529B"),a.createElement(G.Z,{title:Te==null?void 0:Te.name,placement:"topLeft"},a.createElement("div",{className:"multi_ellipsis1"},Te==null?void 0:Te.name))),a.createElement("div",{className:"flex item-center",style:{gap:"10rem",marginTop:"15rem",fontSize:"14rem"}},a.createElement(w.Z,{color:"orange",style:{fontSize:"12rem",lineHeight:"1.5"}},"\u8282\u70B9"),a.createElement("span",{className:"c-grey-333"},Te==null?void 0:Te.last_knowledge_name),Te!=null&&Te.is_complete?a.createElement("span",{className:"c-green"},"\uFF08\u5DF2\u638C\u63E1\uFF09"):a.createElement("span",{className:"c-grey-666"},"\uFF08\u672A\u638C\u63E1\uFF09"))),a.createElement(R.op,{onClick:()=>Qe(void 0,null,function*(){yield Pt(Te)})},(Te==null?void 0:Te.complete_rate)==0?"\u5F00\u59CB\u5B66\u4E60":"\u7EE7\u7EED\u5B66\u4E60")))))),($e=(ht=Se==null?void 0:Se.data)==null?void 0:ht.children_ability_goals)==null?void 0:$e.map(Te=>a.createElement(at,{key:Te==null?void 0:Te.id,DataProps:Te,pathsDetail:ze,getUrl:Pt}))))),a.createElement(m.default,{open:Oe==null?void 0:Oe.open,title:"\u89C6\u9891",width:800,centered:!0,onCancel:()=>{we(Ae(be({},Oe),{open:!1}))},onOk:()=>{we(Ae(be({},Oe),{open:!1}))}},a.createElement(ie.Z,{allow_skip:!0,videoId:Oe.id,toLog:!0,src:Oe==null?void 0:Oe.resourceUrl,logWatchHistory:Te=>Ot(Ae(be({},Te),{container_type:localStorage.getItem("container_type_tupu")}))})),a.createElement(H.Z,{close:!0,style:{zIndex:1300,background:"rgba(1, 10, 35, 0.5)"},data:ut==null?void 0:ut.url,type:ut==null?void 0:ut.file_type,disabledDownload:!0,onClose:()=>Ut({})}))};var _t=(0,u.connect)(({pathsDetail:ze,user:Ke})=>({pathsDetail:ze,user:Ke}))(tt)},84056:function(ft,Me,W){"use strict";W.d(Me,{BU:function(){return G},Dj:function(){return N},gH:function(){return w},vp:function(){return E}});function N(O){try{O.mozRequestFullScreen?O.mozRequestFullScreen():O.webkitRequestFullScreen&&O.webkitRequestFullScreen()}catch(A){console.log(A,":e")}}function G(){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 w=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function E(){var O=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,A=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",O),window.isFullScreen?window.isFullScreen:O!=null}},61527:function(ft,Me,W){"use strict";W.d(Me,{U:function(){return x}});var N=W(59301),G=Object.defineProperty,w=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,A=(m,a,u)=>a in m?G(m,a,{enumerable:!0,configurable:!0,writable:!0,value:u}):m[a]=u,_=(m,a)=>{for(var u in a||(a={}))E.call(a,u)&&A(m,u,a[u]);if(w)for(var u of w(a))O.call(a,u)&&A(m,u,a[u]);return m},g=(m,a,u)=>new Promise((h,r)=>{var n=o=>{try{d(u.next(o))}catch(c){r(c)}},s=o=>{try{d(u.throw(o))}catch(c){r(c)}},d=o=>o.done?h(o.value):Promise.resolve(o.value).then(n,s);d((u=u.apply(m,a)).next())});function x(m,a){const[u,h]=(0,N.useState)(a),[r,n]=(0,N.useState)(!1),[s,d]=(0,N.useState)();return[u,r,(c,f=!1)=>g(this,null,function*(){const e=f?a:_(_({},u),c);n(!0),h(e);const t=yield m(e);return n(!1),d(t),t}),s]}},73217:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return Yt}});class N{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(b,F){return b.__proto__=F,b},Object.assign=Object.assign||function(b){if(b==null)throw new TypeError("Cannot convert undefined or null to object");let F=Object(b);for(let z=1;z ${F}`;O.ENABLE_CALLBACK&&O.emitter.emit("log","error",z),O.ENABLE_ERROR&&(console.error?console.error(z):console.warn?console.warn(z):console.log(z))}static i(b,F){(!b||O.FORCE_GLOBAL_TAG)&&(b=O.GLOBAL_TAG);let z=`[${b}] > ${F}`;O.ENABLE_CALLBACK&&O.emitter.emit("log","info",z),O.ENABLE_INFO&&(console.info?console.info(z):console.log(z))}static w(b,F){(!b||O.FORCE_GLOBAL_TAG)&&(b=O.GLOBAL_TAG);let z=`[${b}] > ${F}`;O.ENABLE_CALLBACK&&O.emitter.emit("log","warn",z),O.ENABLE_WARN&&(console.warn?console.warn(z):console.log(z))}static d(b,F){(!b||O.FORCE_GLOBAL_TAG)&&(b=O.GLOBAL_TAG);let z=`[${b}] > ${F}`;O.ENABLE_CALLBACK&&O.emitter.emit("log","debug",z),O.ENABLE_DEBUG&&(console.debug?console.debug(z):console.log(z))}static v(b,F){(!b||O.FORCE_GLOBAL_TAG)&&(b=O.GLOBAL_TAG);let z=`[${b}] > ${F}`;O.ENABLE_CALLBACK&&O.emitter.emit("log","verbose",z),O.ENABLE_VERBOSE&&console.log(z)}}O.GLOBAL_TAG="flv.js",O.FORCE_GLOBAL_TAG=!1,O.ENABLE_ERROR=!0,O.ENABLE_INFO=!0,O.ENABLE_WARN=!0,O.ENABLE_DEBUG=!0,O.ENABLE_VERBOSE=!0,O.ENABLE_CALLBACK=!1,O.emitter=new(E());var A=O;class _{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(b){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=b,this._totalBytes+=b):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=b,this._totalBytes+=b):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=b,this._totalBytes+=b,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let b=(this._now()-this._lastCheckpoint)/1e3;return b==0&&(b=1),this._intervalBytes/b/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let b=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/b/1024}}var g=_;class x{constructor(b){this._message=b}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class m extends x{constructor(b){super(b)}get name(){return"IllegalStateException"}}class a extends x{constructor(b){super(b)}get name(){return"InvalidArgumentException"}}class u extends x{constructor(b){super(b)}get name(){return"NotImplementedException"}}const h={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},r={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class n{constructor(b){this._type=b||"undefined",this._status=h.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=h.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===h.kConnecting||this._status===h.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(b){this._onContentLengthKnown=b}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(b){this._onURLRedirect=b}get onDataArrival(){return this._onDataArrival}set onDataArrival(b){this._onDataArrival=b}get onError(){return this._onError}set onError(b){this._onError=b}get onComplete(){return this._onComplete}set onComplete(b){this._onComplete=b}open(b,F){throw new u("Unimplemented abstract function!")}abort(){throw new u("Unimplemented abstract function!")}}let s={};function d(){let qe=self.navigator.userAgent.toLowerCase(),b=/(edge)\/([\w.]+)/.exec(qe)||/(opr)[\/]([\w.]+)/.exec(qe)||/(chrome)[ \/]([\w.]+)/.exec(qe)||/(iemobile)[\/]([\w.]+)/.exec(qe)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(qe)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(qe)||/(webkit)[ \/]([\w.]+)/.exec(qe)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(qe)||/(msie) ([\w.]+)/.exec(qe)||qe.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(qe)||qe.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(qe)||[],F=/(ipad)/.exec(qe)||/(ipod)/.exec(qe)||/(windows phone)/.exec(qe)||/(iphone)/.exec(qe)||/(kindle)/.exec(qe)||/(android)/.exec(qe)||/(windows)/.exec(qe)||/(mac)/.exec(qe)||/(linux)/.exec(qe)||/(cros)/.exec(qe)||[],z={browser:b[5]||b[3]||b[1]||"",version:b[2]||b[4]||"0",majorVersion:b[4]||b[2]||"0",platform:F[0]||""},Y={};if(z.browser){Y[z.browser]=!0;let te=z.majorVersion.split(".");Y.version={major:parseInt(z.majorVersion,10),string:z.version},te.length>1&&(Y.version.minor=parseInt(te[1],10)),te.length>2&&(Y.version.build=parseInt(te[2],10))}if(z.platform&&(Y[z.platform]=!0),(Y.chrome||Y.opr||Y.safari)&&(Y.webkit=!0),Y.rv||Y.iemobile){Y.rv&&delete Y.rv;let te="msie";z.browser=te,Y[te]=!0}if(Y.edge){delete Y.edge;let te="msedge";z.browser=te,Y[te]=!0}if(Y.opr){let te="opera";z.browser=te,Y[te]=!0}if(Y.safari&&Y.android){let te="android";z.browser=te,Y[te]=!0}Y.name=z.browser,Y.platform=z.platform;for(let te in s)s.hasOwnProperty(te)&&delete s[te];Object.assign(s,Y)}d();var o=s;class c extends n{static isSupported(){try{let b=o.msedge&&o.version.minor>=15048,F=o.msedge?b:!0;return self.fetch&&self.ReadableStream&&F}catch(b){return!1}}constructor(b,F){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=b,this._config=F,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(b,F){this._dataSource=b,this._range=F;let z=b.url;this._config.reuseRedirectedURL&&b.redirectedURL!=null&&(z=b.redirectedURL);let Y=this._seekHandler.getConfig(z,F),te=new self.Headers;if(typeof Y.headers=="object"){let Q=Y.headers;for(let Pe in Q)Q.hasOwnProperty(Pe)&&te.append(Pe,Q[Pe])}let q={method:"GET",headers:te,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let Q in this._config.headers)te.append(Q,this._config.headers[Q]);b.cors===!1&&(q.mode="same-origin"),b.withCredentials&&(q.credentials="include"),b.referrerPolicy&&(q.referrerPolicy=b.referrerPolicy),this._status=h.kConnecting,self.fetch(Y.url,q).then(Q=>{if(this._requestAbort){this._requestAbort=!1,this._status=h.kIdle;return}if(Q.ok&&Q.status>=200&&Q.status<=299){if(Q.url!==Y.url&&this._onURLRedirect){let ye=this._seekHandler.removeURLParameters(Q.url);this._onURLRedirect(ye)}let Pe=Q.headers.get("Content-Length");return Pe!=null&&(this._contentLength=parseInt(Pe),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,Q.body.getReader())}else if(this._status=h.kError,this._onError)this._onError(r.HTTP_STATUS_CODE_INVALID,{code:Q.status,msg:Q.statusText});else throw new x("FetchStreamLoader: Http code invalid, "+Q.status+" "+Q.statusText)}).catch(Q=>{if(this._status=h.kError,this._onError)this._onError(r.EXCEPTION,{code:-1,msg:Q.message});else throw Q})}abort(){this._requestAbort=!0}_pump(b){return b.read().then(F=>{if(F.done)if(this._contentLength!==null&&this._receivedLength{if(F.code===11&&o.msedge)return;this._status=h.kError;let z=0,Y=null;if((F.code===19||F.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength299))if(this._status=h.kError,this._onError)this._onError(r.HTTP_STATUS_CODE_INVALID,{code:F.status,msg:F.statusText});else throw new x("MozChunkedLoader: Http code invalid, "+F.status+" "+F.statusText);else this._status=h.kBuffering}}_onProgress(b){if(this._status===h.kError)return;this._contentLength===null&&b.total!==null&&b.total!==0&&(this._contentLength=b.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let F=b.target.response,z=this._range.from+this._receivedLength;this._receivedLength+=F.byteLength,this._onDataArrival&&this._onDataArrival(F,z,this._receivedLength)}_onLoadEnd(b){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===h.kError)return;this._status=h.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(b){this._status=h.kError;let F=0,z=null;if(this._contentLength&&b.loaded=200&&F.status<=299){if(this._status=LoaderStatus.kBuffering,F.responseURL!=null){let Y=this._seekHandler.removeURLParameters(F.responseURL);F.responseURL!==this._currentRequestURL&&Y!==this._currentRedirectedURL&&(this._currentRedirectedURL=Y,this._onURLRedirect&&this._onURLRedirect(Y))}let z=F.getResponseHeader("Content-Length");if(z!=null&&this._contentLength==null){let Y=parseInt(z);Y>0&&(this._contentLength=Y,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:F.status,msg:F.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+F.status+" "+F.statusText);else if(F.readyState===3&&F.status>=200&&F.status<=299){this._status=LoaderStatus.kBuffering;let z=F.response;this._reader.readAsArrayBuffer(z)}}_xhrOnError(b){this._status=LoaderStatus.kError;let F=LoaderErrors.EXCEPTION,z={code:-1,msg:b.constructor.name+" "+b.type};if(this._onError)this._onError(F,z);else throw new RuntimeException(z.msg)}_msrOnProgress(b){let z=b.target.result;if(z==null){this._doReconnectIfNeeded();return}let Y=z.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=z.byteLength;let te=this._totalRange.from+this._receivedLength;this._receivedLength+=Y.byteLength,this._onDataArrival&&this._onDataArrival(Y,te,this._receivedLength),z.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${te+Y.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(z=this._range.from+this._contentLength-1),this._currentRequestRange={from:F,to:z},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(b,F){this._lastTimeLoaded=0;let z=b.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?z=this._currentRedirectedURL:b.redirectedURL!=null&&(z=b.redirectedURL));let Y=this._seekHandler.getConfig(z,F);this._currentRequestURL=Y.url;let te=this._xhr=new XMLHttpRequest;if(te.open("GET",Y.url,!0),te.responseType="arraybuffer",te.onreadystatechange=this._onReadyStateChange.bind(this),te.onprogress=this._onProgress.bind(this),te.onload=this._onLoad.bind(this),te.onerror=this._onXhrError.bind(this),b.withCredentials&&(te.withCredentials=!0),typeof Y.headers=="object"){let q=Y.headers;for(let Q in q)q.hasOwnProperty(Q)&&te.setRequestHeader(Q,q[Q])}if(typeof this._config.headers=="object"){let q=this._config.headers;for(let Q in q)q.hasOwnProperty(Q)&&te.setRequestHeader(Q,q[Q])}te.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=h.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(b){let F=b.target;if(F.readyState===2){if(F.responseURL!=null){let z=this._seekHandler.removeURLParameters(F.responseURL);F.responseURL!==this._currentRequestURL&&z!==this._currentRedirectedURL&&(this._currentRedirectedURL=z,this._onURLRedirect&&this._onURLRedirect(z))}if(F.status>=200&&F.status<=299){if(this._waitForTotalLength)return;this._status=h.kBuffering}else if(this._status=h.kError,this._onError)this._onError(r.HTTP_STATUS_CODE_INVALID,{code:F.status,msg:F.statusText});else throw new x("RangeLoader: Http code invalid, "+F.status+" "+F.statusText)}}_onProgress(b){if(this._status===h.kError)return;if(this._contentLength===null){let z=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,z=!0;let Y=b.total;this._internalAbort(),Y!=null&Y!==0&&(this._totalLength=Y)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,z){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let F=b.loaded-this._lastTimeLoaded;this._lastTimeLoaded=b.loaded,this._speedSampler.addBytes(F)}_normalizeSpeed(b){let F=this._chunkSizeKBList,z=F.length-1,Y=0,te=0,q=z;if(b=F[Y]&&b=3&&(F=this._speedSampler.currentKBps)),F!==0){let q=this._normalizeSpeed(F);this._currentSpeedNormalized!==q&&(this._currentSpeedNormalized=q,this._currentChunkSizeKB=q)}let z=b.target.response,Y=this._range.from+this._receivedLength;this._receivedLength+=z.byteLength;let te=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength{this._dispatchArrayBuffer(F.result)},F.readAsArrayBuffer(b.data)}else{this._status=h.kError;let F={code:-1,msg:"Unsupported WebSocket message type: "+b.data.constructor.name};if(this._onError)this._onError(r.EXCEPTION,F);else throw new x(F.msg)}}_dispatchArrayBuffer(b){let F=b,z=this._receivedLength;this._receivedLength+=F.byteLength,this._onDataArrival&&this._onDataArrival(F,z,this._receivedLength)}_onWebSocketError(b){this._status=h.kError;let F={code:b.code,msg:b.message};if(this._onError)this._onError(r.EXCEPTION,F);else throw new x(F.msg)}}var C=p;class S{constructor(b){this._zeroStart=b||!1}getConfig(b,F){let z={};if(F.from!==0||F.to!==-1){let Y;F.to!==-1?Y=`bytes=${F.from.toString()}-${F.to.toString()}`:Y=`bytes=${F.from.toString()}-`,z.Range=Y}else this._zeroStart&&(z.Range="bytes=0-");return{url:b,headers:z}}removeURLParameters(b){return b}}var T=S;class D{constructor(b,F){this._startName=b,this._endName=F}getConfig(b,F){let z=b;if(F.from!==0||F.to!==-1){let Y=!0;z.indexOf("?")===-1&&(z+="?",Y=!1),Y&&(z+="&"),z+=`${this._startName}=${F.from.toString()}`,F.to!==-1&&(z+=`&${this._endName}=${F.to.toString()}`)}return{url:z,headers:{}}}removeURLParameters(b){let F=b.split("?")[0],z,Y=b.indexOf("?");Y!==-1&&(z=b.substring(Y+1));let te="";if(z!=null&&z.length>0){let q=z.split("&");for(let Q=0;Q0;Pe[0]!==this._startName&&Pe[0]!==this._endName&&(ye&&(te+="&"),te+=q[Q])}}return te.length===0?F:F+"?"+te}}var I=D;class M{constructor(b,F,z){this.TAG="IOController",this._config=F,this._extraData=z,this._stashInitialSize=1024*384,F.stashInitialSize!=null&&F.stashInitialSize>0&&(this._stashInitialSize=F.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,F.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=b,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(b.url),this._refTotalLength=b.filesize?b.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(b){this._extraData=b}get onDataArrival(){return this._onDataArrival}set onDataArrival(b){this._onDataArrival=b}get onSeeked(){return this._onSeeked}set onSeeked(b){this._onSeeked=b}get onError(){return this._onError}set onError(b){this._onError=b}get onComplete(){return this._onComplete}set onComplete(b){this._onComplete=b}get onRedirect(){return this._onRedirect}set onRedirect(b){this._onRedirect=b}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(b){this._onRecoveredEarlyEof=b}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===y?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let b=this._config;if(b.seekType==="range")this._seekHandler=new T(this._config.rangeLoadZeroStart);else if(b.seekType==="param"){let F=b.seekParamStart||"bstart",z=b.seekParamEnd||"bend";this._seekHandler=new I(F,z)}else if(b.seekType==="custom"){if(typeof b.customSeekHandler!="function")throw new a("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new b.customSeekHandler}else throw new a(`Invalid seekType in config: ${b.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=C;else if(f.isSupported())this._loaderClass=f;else if(t.isSupported())this._loaderClass=t;else if(y.isSupported())this._loaderClass=y;else throw new x("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(b){this._currentRange={from:0,to:-1},b&&(this._currentRange.from=b),this._speedSampler.reset(),b||(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 b=this._resumeFrom;this._resumeFrom=0,this._internalSeek(b,!0)}}seek(b){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(b,!0)}_internalSeek(b,F){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(F),this._loader.destroy(),this._loader=null;let z={from:b,to:-1};this._currentRange={from:z.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,z),this._onSeeked&&this._onSeeked()}updateUrl(b){if(!b||typeof b!="string"||b.length===0)throw new a("Url must be a non-empty string!");this._dataSource.url=b}_expandBuffer(b){let F=this._stashSize;for(;F+1024*1024*10){let Y=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(z,0,F).set(Y,0)}this._stashBuffer=z,this._bufferSize=F}_normalizeSpeed(b){let F=this._speedNormalizeList,z=F.length-1,Y=0,te=0,q=z;if(b=F[Y]&&b=512&&b<=1024?F=Math.floor(b*1.5):F=b*2,F>8192&&(F=8192);let z=F*1024+1024*1024*1;this._bufferSize0){let q=this._stashBuffer.slice(0,this._stashUsed),Q=this._dispatchChunks(q,this._stashByteStart);if(Q0){let Pe=new Uint8Array(q,Q);te.set(Pe,0),this._stashUsed=Pe.byteLength,this._stashByteStart+=Q}}else this._stashUsed=0,this._stashByteStart+=Q;this._stashUsed+b.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+b.byteLength),te=new Uint8Array(this._stashBuffer,0,this._bufferSize)),te.set(new Uint8Array(b),this._stashUsed),this._stashUsed+=b.byteLength}else{let q=this._dispatchChunks(b,F);if(qthis._bufferSize&&(this._expandBuffer(Q),te=new Uint8Array(this._stashBuffer,0,this._bufferSize)),te.set(new Uint8Array(b,q),0),this._stashUsed+=Q,this._stashByteStart=F+q}}}else if(this._stashUsed===0){let te=this._dispatchChunks(b,F);if(tethis._bufferSize&&this._expandBuffer(q),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(b,te),0),this._stashUsed+=q,this._stashByteStart=F+te}}else{this._stashUsed+b.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+b.byteLength);let te=new Uint8Array(this._stashBuffer,0,this._bufferSize);te.set(new Uint8Array(b),this._stashUsed),this._stashUsed+=b.byteLength;let q=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(q0){let Q=new Uint8Array(this._stashBuffer,q);te.set(Q,0)}this._stashUsed-=q,this._stashByteStart+=q}}_flushStashBuffer(b){if(this._stashUsed>0){let F=this._stashBuffer.slice(0,this._stashUsed),z=this._dispatchChunks(F,this._stashByteStart),Y=F.byteLength-z;if(z0){let te=new Uint8Array(this._stashBuffer,0,this._bufferSize),q=new Uint8Array(F,z);te.set(q,0),this._stashUsed=q.byteLength,this._stashByteStart+=z}return 0}return this._stashUsed=0,this._stashByteStart=0,Y}return 0}_onLoaderComplete(b,F){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(b,F){switch(A.e(this.TAG,`Loader error, code = ${F.code}, msg = ${F.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,b=r.UNRECOVERABLE_EARLY_EOF),b){case r.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let z=this._currentRange.to+1;z0){let F=V.getConfig();b.emit("change",F)}}static registerListener(b){V.emitter.addListener("change",b)}static removeListener(b){V.emitter.removeListener("change",b)}static addLogListener(b){A.emitter.addListener("log",b),A.emitter.listenerCount("log")>0&&(A.ENABLE_CALLBACK=!0,V._notifyChange())}static removeLogListener(b){A.emitter.removeListener("log",b),A.emitter.listenerCount("log")===0&&(A.ENABLE_CALLBACK=!1,V._notifyChange())}}V.emitter=new(E());var k=V;class ${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 b=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,F=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&&b&&F}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(b){if(this.keyframesIndex==null)return null;let F=this.keyframesIndex,z=this._search(F.times,b);return{index:z,milliseconds:F.times[z],fileposition:F.filepositions[z]}}_search(b,F){let z=0,Y=b.length-1,te=0,q=0,Q=Y;for(F=b[te]&&F=128){b.push(String.fromCharCode(te&65535)),z+=2;continue}}}else if(F[z]<240){if(le(F,z,2)){let te=(F[z]&15)<<12|(F[z+1]&63)<<6|F[z+2]&63;if(te>=2048&&(te&63488)!==55296){b.push(String.fromCharCode(te&65535)),z+=3;continue}}}else if(F[z]<248&&le(F,z,3)){let te=(F[z]&7)<<18|(F[z+1]&63)<<12|(F[z+2]&63)<<6|F[z+3]&63;if(te>65536&&te<1114112){te-=65536,b.push(String.fromCharCode(te>>>10|55296)),b.push(String.fromCharCode(te&1023|56320)),z+=4;continue}}}b.push("\uFFFD"),++z}return b.join("")}var ge=he;let me=function(){let qe=new ArrayBuffer(2);return new DataView(qe).setInt16(0,256,!0),new Int16Array(qe)[0]===256}();class pe{static parseScriptData(b,F,z){let Y={};try{let te=pe.parseValue(b,F,z),q=pe.parseValue(b,F+te.size,z-te.size);Y[te.data]=q.data}catch(te){A.e("AMF",te.toString())}return Y}static parseObject(b,F,z){if(z<3)throw new m("Data not enough when parse ScriptDataObject");let Y=pe.parseString(b,F,z),te=pe.parseValue(b,F+Y.size,z-Y.size),q=te.objectEnd;return{data:{name:Y.data,value:te.data},size:Y.size+te.size,objectEnd:q}}static parseVariable(b,F,z){return pe.parseObject(b,F,z)}static parseString(b,F,z){if(z<2)throw new m("Data not enough when parse String");let te=new DataView(b,F,z).getUint16(0,!me),q;return te>0?q=ge(new Uint8Array(b,F+2,te)):q="",{data:q,size:2+te}}static parseLongString(b,F,z){if(z<4)throw new m("Data not enough when parse LongString");let te=new DataView(b,F,z).getUint32(0,!me),q;return te>0?q=ge(new Uint8Array(b,F+4,te)):q="",{data:q,size:4+te}}static parseDate(b,F,z){if(z<10)throw new m("Data size invalid when parse Date");let Y=new DataView(b,F,z),te=Y.getFloat64(0,!me),q=Y.getInt16(8,!me);return te+=q*60*1e3,{data:new Date(te),size:10}}static parseValue(b,F,z){if(z<1)throw new m("Data not enough when parse Value");let Y=new DataView(b,F,z),te=1,q=Y.getUint8(0),Q,Pe=!1;try{switch(q){case 0:Q=Y.getFloat64(1,!me),te+=8;break;case 1:{Q=!!Y.getUint8(1),te+=1;break}case 2:{let ye=pe.parseString(b,F+1,z-1);Q=ye.data,te+=ye.size;break}case 3:{Q={};let ye=0;for((Y.getUint32(z-4,!me)&16777215)===9&&(ye=3);te32)throw new a("ExpGolomb: readBits() bits exceeded max 32bits!");if(b<=this._current_word_bits_left){let q=this._current_word>>>32-b;return this._current_word<<=b,this._current_word_bits_left-=b,q}let F=this._current_word_bits_left?this._current_word:0;F=F>>>32-this._current_word_bits_left;let z=b-this._current_word_bits_left;this._fillCurrentWord();let Y=Math.min(z,this._current_word_bits_left),te=this._current_word>>>32-Y;return this._current_word<<=Y,this._current_word_bits_left-=Y,F=F<>>b)return this._current_word<<=b,this._current_word_bits_left-=b,b;return this._fillCurrentWord(),b+this._skipLeadingZero()}readUEG(){let b=this._skipLeadingZero();return this.readBits(b+1)-1}readSEG(){let b=this.readUEG();return b&1?b+1>>>1:-1*(b>>>1)}}var ve=de;class ce{static _ebsp2rbsp(b){let F=b,z=F.byteLength,Y=new Uint8Array(z),te=0;for(let q=0;q=2&&F[q]===3&&F[q-1]===0&&F[q-2]===0||(Y[te]=F[q],te++);return new Uint8Array(Y.buffer,0,te)}static parseSPS(b){let F=ce._ebsp2rbsp(b),z=new ve(F);z.readByte();let Y=z.readByte();z.readByte();let te=z.readByte();z.readUEG();let q=ce.getProfileString(Y),Q=ce.getLevelString(te),Pe=1,ye=420,Fe=[0,420,422,444],Je=8;if((Y===100||Y===110||Y===122||Y===244||Y===44||Y===83||Y===86||Y===118||Y===128||Y===138||Y===144)&&(Pe=z.readUEG(),Pe===3&&z.readBits(1),Pe<=3&&(ye=Fe[Pe]),Je=z.readUEG()+8,z.readUEG(),z.readBits(1),z.readBool())){let Wt=Pe!==3?8:12;for(let Pt=0;Pt0&&Wt<16?(Kt=Pt[Wt-1],ut=Te[Wt-1]):Wt===255&&(Kt=z.readByte()<<8|z.readByte(),ut=z.readByte()<<8|z.readByte())}if(z.readBool()&&z.readBool(),z.readBool()&&(z.readBits(4),z.readBool()&&z.readBits(24)),z.readBool()&&(z.readUEG(),z.readUEG()),z.readBool()){let Wt=z.readBits(32),Pt=z.readBits(32);Oe=z.readBool(),we=Pt,Be=Wt*2,Ut=we/Be}}let Se=1;(Kt!==1||ut!==1)&&(Se=Kt/ut);let He=0,We=0;if(Pe===0)He=1,We=2-Ye;else{let Wt=Pe===3?1:2,Pt=Pe===1?2:1;He=Wt,We=Pt*(2-Ye)}let dt=(ot+1)*16,St=(2-Ye)*((rt+1)*16);dt-=(Ve+ht)*He,St-=($e+Et)*We;let Ot=Math.ceil(dt*Se);return z.destroy(),z=null,{profile_string:q,level_string:Q,bit_depth:Je,ref_frames:Xe,chroma_format:ye,chroma_format_string:ce.getChromaFormatString(ye),frame_rate:{fixed:Oe,fps:Ut,fps_den:Be,fps_num:we},sar_ratio:{width:Kt,height:ut},codec_size:{width:dt,height:St},present_size:{width:Ot,height:St}}}static _skipScalingList(b,F){let z=8,Y=8,te=0;for(let q=0;q>>8&255|(qe&255)<<8}function re(qe){return(qe&4278190080)>>>24|(qe&16711680)>>>8|(qe&65280)<<8|(qe&255)<<24}function Z(qe,b){return qe[b]<<24|qe[b+1]<<16|qe[b+2]<<8|qe[b+3]}class ee{constructor(b,F){this.TAG="FLVDemuxer",this._config=F,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=b.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=b.hasAudioTrack,this._hasVideo=b.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new ae,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 z=new ArrayBuffer(2);return new DataView(z).setInt16(0,256,!0),new Int16Array(z)[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(b){let F=new Uint8Array(b),z={match:!1};if(F[0]!==70||F[1]!==76||F[2]!==86||F[3]!==1)return z;let Y=(F[4]&4)>>>2!==0,te=(F[4]&1)!==0,q=Z(F,5);return q<9?z:{match:!0,consumed:q,dataOffset:q,hasAudioTrack:Y,hasVideoTrack:te}}bindDataSource(b){return b.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(b){this._onTrackMetadata=b}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(b){this._onMediaInfo=b}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(b){this._onMetaDataArrived=b}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(b){this._onScriptDataArrived=b}get onError(){return this._onError}set onError(b){this._onError=b}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(b){this._onDataAvailable=b}get timestampBase(){return this._timestampBase}set timestampBase(b){this._timestampBase=b}get overridedDuration(){return this._duration}set overridedDuration(b){this._durationOverrided=!0,this._duration=b,this._mediaInfo.duration=b}set overridedHasAudio(b){this._hasAudioFlagOverrided=!0,this._hasAudio=b,this._mediaInfo.hasAudio=b}set overridedHasVideo(b){this._hasVideoFlagOverrided=!0,this._hasVideo=b,this._mediaInfo.hasVideo=b}resetMediaInfo(){this._mediaInfo=new ae}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(b,F){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new m("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let z=0,Y=this._littleEndian;if(F===0)if(b.byteLength>13)z=ee.probe(b).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,F+z!==this._dataOffset&&A.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(b,z).getUint32(0,!Y)!==0&&A.w(this.TAG,"PrevTagSize0 !== 0 !!!"),z+=4);zb.byteLength)break;let q=te.getUint8(0),Q=te.getUint32(0,!Y)&16777215;if(z+11+Q+4>b.byteLength)break;if(q!==8&&q!==9&&q!==18){A.w(this.TAG,`Unsupported tag type ${q}, skipped`),z+=11+Q+4;continue}let Pe=te.getUint8(4),ye=te.getUint8(5),Fe=te.getUint8(6),Je=te.getUint8(7),nt=Fe|ye<<8|Pe<<16|Je<<24;(te.getUint32(7,!Y)&16777215)!==0&&A.w(this.TAG,"Meet tag which has StreamID != 0!");let ot=z+11;switch(q){case 8:this._parseAudioData(b,ot,Q,nt);break;case 9:this._parseVideoData(b,ot,Q,nt,F+z);break;case 18:this._parseScriptData(b,ot,Q);break}let rt=te.getUint32(11+Q,!Y);rt!==11+Q&&A.w(this.TAG,`Invalid PrevTagSize ${rt}`),z+=11+Q+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),z}_parseScriptData(b,F,z){let Y=Ee.parseScriptData(b,F,z);if(Y.hasOwnProperty("onMetaData")){if(Y.onMetaData==null||typeof Y.onMetaData!="object"){A.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&A.w(this.TAG,"Found another onMetaData tag!"),this._metadata=Y;let te=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},te)),typeof te.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=te.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof te.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=te.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof te.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=te.audiodatarate),typeof te.videodatarate=="number"&&(this._mediaInfo.videoDataRate=te.videodatarate),typeof te.width=="number"&&(this._mediaInfo.width=te.width),typeof te.height=="number"&&(this._mediaInfo.height=te.height),typeof te.duration=="number"){if(!this._durationOverrided){let q=Math.floor(te.duration*this._timescale);this._duration=q,this._mediaInfo.duration=q}}else this._mediaInfo.duration=0;if(typeof te.framerate=="number"){let q=Math.floor(te.framerate*1e3);if(q>0){let Q=q/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Q,this._referenceFrameRate.fps_num=q,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Q}}if(typeof te.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let q=te.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(q),te.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=te,A.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(Y).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},Y))}_parseKeyframesIndex(b){let F=[],z=[];for(let Y=1;Y>>4;if(Pe!==2&&Pe!==10){this._onError(ne.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Pe);return}let ye=0,Fe=(Q&12)>>>2;if(Fe>=0&&Fe<=4)ye=this._flvSoundRateTable[Fe];else{this._onError(ne.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Fe);return}let Je=(Q&2)>>>1,nt=Q&1,Xe=this._audioMetadata,ot=this._audioTrack;if(Xe||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Xe=this._audioMetadata={},Xe.type="audio",Xe.id=ot.id,Xe.timescale=this._timescale,Xe.duration=this._duration,Xe.audioSampleRate=ye,Xe.channelCount=nt===0?1:2),Pe===10){let rt=this._parseAACAudioData(b,F+1,z-1);if(rt==null)return;if(rt.packetType===0){Xe.config&&A.w(this.TAG,"Found another AudioSpecificConfig!");let Ye=rt.data;Xe.audioSampleRate=Ye.samplingRate,Xe.channelCount=Ye.channelCount,Xe.codec=Ye.codec,Xe.originalCodec=Ye.originalCodec,Xe.config=Ye.config,Xe.refSampleDuration=1024/Xe.audioSampleRate*Xe.timescale,A.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",Xe);let Ve=this._mediaInfo;Ve.audioCodec=Xe.originalCodec,Ve.audioSampleRate=Xe.audioSampleRate,Ve.audioChannelCount=Xe.channelCount,Ve.hasVideo?Ve.videoCodec!=null&&(Ve.mimeType='video/x-flv; codecs="'+Ve.videoCodec+","+Ve.audioCodec+'"'):Ve.mimeType='video/x-flv; codecs="'+Ve.audioCodec+'"',Ve.isComplete()&&this._onMediaInfo(Ve)}else if(rt.packetType===1){let Ye=this._timestampBase+Y,Ve={unit:rt.data,length:rt.data.byteLength,dts:Ye,pts:Ye};ot.samples.push(Ve),ot.length+=rt.data.length}else A.e(this.TAG,`Flv: Unsupported AAC data type ${rt.packetType}`)}else if(Pe===2){if(!Xe.codec){let ht=this._parseMP3AudioData(b,F+1,z-1,!0);if(ht==null)return;Xe.audioSampleRate=ht.samplingRate,Xe.channelCount=ht.channelCount,Xe.codec=ht.codec,Xe.originalCodec=ht.originalCodec,Xe.refSampleDuration=1152/Xe.audioSampleRate*Xe.timescale,A.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Xe);let $e=this._mediaInfo;$e.audioCodec=Xe.codec,$e.audioSampleRate=Xe.audioSampleRate,$e.audioChannelCount=Xe.channelCount,$e.audioDataRate=ht.bitRate,$e.hasVideo?$e.videoCodec!=null&&($e.mimeType='video/x-flv; codecs="'+$e.videoCodec+","+$e.audioCodec+'"'):$e.mimeType='video/x-flv; codecs="'+$e.audioCodec+'"',$e.isComplete()&&this._onMediaInfo($e)}let rt=this._parseMP3AudioData(b,F+1,z-1,!1);if(rt==null)return;let Ye=this._timestampBase+Y,Ve={unit:rt,length:rt.byteLength,dts:Ye,pts:Ye};ot.samples.push(Ve),ot.length+=rt.length}}_parseAACAudioData(b,F,z){if(z<=1){A.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let Y={},te=new Uint8Array(b,F,z);return Y.packetType=te[0],te[0]===0?Y.data=this._parseAACAudioSpecificConfig(b,F+1,z-1):Y.data=te.subarray(1),Y}_parseAACAudioSpecificConfig(b,F,z){let Y=new Uint8Array(b,F,z),te=null,q=0,Q=0,Pe=null,ye=0,Fe=null;if(q=Q=Y[0]>>>3,ye=(Y[0]&7)<<1|Y[1]>>>7,ye<0||ye>=this._mpegSamplingRates.length){this._onError(ne.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Je=this._mpegSamplingRates[ye],nt=(Y[1]&120)>>>3;if(nt<0||nt>=8){this._onError(ne.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}q===5&&(Fe=(Y[1]&7)<<1|Y[2]>>>7,Pe=(Y[2]&124)>>>2);let Xe=self.navigator.userAgent.toLowerCase();return Xe.indexOf("firefox")!==-1?ye>=6?(q=5,te=new Array(4),Fe=ye-3):(q=2,te=new Array(2),Fe=ye):Xe.indexOf("android")!==-1?(q=2,te=new Array(2),Fe=ye):(q=5,Fe=ye,te=new Array(4),ye>=6?Fe=ye-3:nt===1&&(q=2,te=new Array(2),Fe=ye)),te[0]=q<<3,te[0]|=(ye&15)>>>1,te[1]=(ye&15)<<7,te[1]|=(nt&15)<<3,q===5&&(te[1]|=(Fe&15)>>>1,te[2]=(Fe&1)<<7,te[2]|=8,te[3]=0),{config:te,samplingRate:Je,channelCount:nt,codec:"mp4a.40."+q,originalCodec:"mp4a.40."+Q}}_parseMP3AudioData(b,F,z,Y){if(z<4){A.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let te=this._littleEndian,q=new Uint8Array(b,F,z),Q=null;if(Y){if(q[0]!==255)return;let Pe=q[1]>>>3&3,ye=(q[1]&6)>>1,Fe=(q[2]&240)>>>4,Je=(q[2]&12)>>>2,Xe=(q[3]>>>6&3)!==3?2:1,ot=0,rt=0,Ye=34,Ve="mp3";switch(Pe){case 0:ot=this._mpegAudioV25SampleRateTable[Je];break;case 2:ot=this._mpegAudioV20SampleRateTable[Je];break;case 3:ot=this._mpegAudioV10SampleRateTable[Je];break}switch(ye){case 1:Ye=34,Fe>>4,Pe=q&15;if(Pe!==7){this._onError(ne.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${Pe}`);return}this._parseAVCVideoPacket(b,F+1,z-1,Y,te,Q)}_parseAVCVideoPacket(b,F,z,Y,te,q){if(z<4){A.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let Q=this._littleEndian,Pe=new DataView(b,F,z),ye=Pe.getUint8(0),Je=(Pe.getUint32(0,!Q)&16777215)<<8>>8;if(ye===0)this._parseAVCDecoderConfigurationRecord(b,F+4,z-4);else if(ye===1)this._parseAVCVideoData(b,F+4,z-4,Y,te,q,Je);else if(ye!==2){this._onError(ne.FORMAT_ERROR,`Flv: Invalid video packet type ${ye}`);return}}_parseAVCDecoderConfigurationRecord(b,F,z){if(z<7){A.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let Y=this._videoMetadata,te=this._videoTrack,q=this._littleEndian,Q=new DataView(b,F,z);Y?typeof Y.avcc!="undefined"&&A.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),Y=this._videoMetadata={},Y.type="video",Y.id=te.id,Y.timescale=this._timescale,Y.duration=this._duration);let Pe=Q.getUint8(0),ye=Q.getUint8(1),Fe=Q.getUint8(2),Je=Q.getUint8(3);if(Pe!==1||ye===0){this._onError(ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Q.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(ne.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let nt=Q.getUint8(5)&31;if(nt===0){this._onError(ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else nt>1&&A.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${nt}`);let Xe=6;for(let rt=0;rt1&&A.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${ot}`);Xe++;for(let rt=0;rt=z){A.w(this.TAG,`Malformed Nalu near timestamp ${ot}, offset = ${nt}, dataSize = ${z}`);break}let Ye=ye.getUint32(nt,!Pe);if(Xe===3&&(Ye>>>=8),Ye>z-Xe){A.w(this.TAG,`Malformed Nalus near timestamp ${ot}, NaluSize > DataSize!`);return}let Ve=ye.getUint8(nt+Xe)&31;Ve===5&&(rt=!0);let ht=new Uint8Array(b,F+nt,Xe+Ye),$e={type:Ve,data:ht};Fe.push($e),Je+=ht.byteLength,nt+=Xe+Ye}if(Fe.length){let Ye=this._videoTrack,Ve={units:Fe,length:Je,isKeyframe:rt,dts:ot,cts:Q,pts:ot+Q};rt&&(Ve.fileposition=te),Ye.samples.push(Ve),Ye.length+=Je}}}var se=ee;class J{static init(){J.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 F in J.types)J.types.hasOwnProperty(F)&&(J.types[F]=[F.charCodeAt(0),F.charCodeAt(1),F.charCodeAt(2),F.charCodeAt(3)]);let b=J.constants={};b.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),b.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),b.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),b.STSC=b.STCO=b.STTS,b.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),b.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]),b.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]),b.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),b.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),b.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(b){let F=8,z=null,Y=Array.prototype.slice.call(arguments,1),te=Y.length;for(let Q=0;Q>>24&255,z[1]=F>>>16&255,z[2]=F>>>8&255,z[3]=F&255,z.set(b,4);let q=8;for(let Q=0;Q>>24&255,b>>>16&255,b>>>8&255,b&255,F>>>24&255,F>>>16&255,F>>>8&255,F&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(b){return J.box(J.types.trak,J.tkhd(b),J.mdia(b))}static tkhd(b){let F=b.id,z=b.duration,Y=b.presentWidth,te=b.presentHeight;return J.box(J.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,F>>>24&255,F>>>16&255,F>>>8&255,F&255,0,0,0,0,z>>>24&255,z>>>16&255,z>>>8&255,z&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,Y>>>8&255,Y&255,0,0,te>>>8&255,te&255,0,0]))}static mdia(b){return J.box(J.types.mdia,J.mdhd(b),J.hdlr(b),J.minf(b))}static mdhd(b){let F=b.timescale,z=b.duration;return J.box(J.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,F>>>24&255,F>>>16&255,F>>>8&255,F&255,z>>>24&255,z>>>16&255,z>>>8&255,z&255,85,196,0,0]))}static hdlr(b){let F=null;return b.type==="audio"?F=J.constants.HDLR_AUDIO:F=J.constants.HDLR_VIDEO,J.box(J.types.hdlr,F)}static minf(b){let F=null;return b.type==="audio"?F=J.box(J.types.smhd,J.constants.SMHD):F=J.box(J.types.vmhd,J.constants.VMHD),J.box(J.types.minf,F,J.dinf(),J.stbl(b))}static dinf(){return J.box(J.types.dinf,J.box(J.types.dref,J.constants.DREF))}static stbl(b){return J.box(J.types.stbl,J.stsd(b),J.box(J.types.stts,J.constants.STTS),J.box(J.types.stsc,J.constants.STSC),J.box(J.types.stsz,J.constants.STSZ),J.box(J.types.stco,J.constants.STCO))}static stsd(b){return b.type==="audio"?b.codec==="mp3"?J.box(J.types.stsd,J.constants.STSD_PREFIX,J.mp3(b)):J.box(J.types.stsd,J.constants.STSD_PREFIX,J.mp4a(b)):J.box(J.types.stsd,J.constants.STSD_PREFIX,J.avc1(b))}static mp3(b){let F=b.channelCount,z=b.audioSampleRate,Y=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,F,0,16,0,0,0,0,z>>>8&255,z&255,0,0]);return J.box(J.types[".mp3"],Y)}static mp4a(b){let F=b.channelCount,z=b.audioSampleRate,Y=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,F,0,16,0,0,0,0,z>>>8&255,z&255,0,0]);return J.box(J.types.mp4a,Y,J.esds(b))}static esds(b){let F=b.config||[],z=F.length,Y=new Uint8Array([0,0,0,0,3,23+z,0,1,0,4,15+z,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([z]).concat(F).concat([6,1,2]));return J.box(J.types.esds,Y)}static avc1(b){let F=b.avcc,z=b.codecWidth,Y=b.codecHeight,te=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,z>>>8&255,z&255,Y>>>8&255,Y&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 J.box(J.types.avc1,te,J.box(J.types.avcC,F))}static mvex(b){return J.box(J.types.mvex,J.trex(b))}static trex(b){let F=b.id,z=new Uint8Array([0,0,0,0,F>>>24&255,F>>>16&255,F>>>8&255,F&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return J.box(J.types.trex,z)}static moof(b,F){return J.box(J.types.moof,J.mfhd(b.sequenceNumber),J.traf(b,F))}static mfhd(b){let F=new Uint8Array([0,0,0,0,b>>>24&255,b>>>16&255,b>>>8&255,b&255]);return J.box(J.types.mfhd,F)}static traf(b,F){let z=b.id,Y=J.box(J.types.tfhd,new Uint8Array([0,0,0,0,z>>>24&255,z>>>16&255,z>>>8&255,z&255])),te=J.box(J.types.tfdt,new Uint8Array([0,0,0,0,F>>>24&255,F>>>16&255,F>>>8&255,F&255])),q=J.sdtp(b),Q=J.trun(b,q.byteLength+16+16+8+16+8+8);return J.box(J.types.traf,Y,te,Q,q)}static sdtp(b){let F=b.samples||[],z=F.length,Y=new Uint8Array(4+z);for(let te=0;te>>24&255,Y>>>16&255,Y>>>8&255,Y&255,F>>>24&255,F>>>16&255,F>>>8&255,F&255],0);for(let Q=0;Q>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255,Fe.isLeading<<2|Fe.dependsOn,Fe.isDependedOn<<6|Fe.hasRedundancy<<4|Fe.isNonSync,0,0,Je>>>24&255,Je>>>16&255,Je>>>8&255,Je&255],12+16*Q)}return J.box(J.types.trun,q)}static mdat(b){return J.box(J.types.mdat,b)}}J.init();var ie=J;class fe{static getSilentFrame(b,F){if(b==="mp4a.40.2"){if(F===1)return new Uint8Array([0,200,0,128,35,128]);if(F===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(F===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(F===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(F===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(F===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(F===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(F===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(F===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 _e=fe;class De{constructor(b,F,z,Y,te){this.dts=b,this.pts=F,this.duration=z,this.originalDts=Y,this.isSyncPoint=te,this.fileposition=null}}class Ie{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(b){b.isSyncPoint=!0,this.syncPoints.push(b)}}class Ne{constructor(){this._list=[]}clear(){this._list=[]}appendArray(b){let F=this._list;b.length!==0&&(F.length>0&&b[0].originalDts=F[te].dts&&bF[Y].lastSample.originalDts&&b=F[Y].lastSample.originalDts&&(Y===F.length-1||Y0&&(te=this._searchNearestSegmentBefore(z.originalBeginDts)+1),this._lastAppendLocation=te,this._list.splice(te,0,z)}getLastSegmentBefore(b){let F=this._searchNearestSegmentBefore(b);return F>=0?this._list[F]:null}getLastSampleBefore(b){let F=this.getLastSegmentBefore(b);return F!=null?F.lastSample:null}getLastSyncPointBefore(b){let F=this._searchNearestSegmentBefore(b),z=this._list[F].syncPoints;for(;z.length===0&&F>0;)F--,z=this._list[F].syncPoints;return z.length>0?z[z.length-1]:null}}class ue{constructor(b){this.TAG="MP4Remuxer",this._config=b,this._isLive=b.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Le("audio"),this._videoSegmentInfoList=new Le("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(o.chrome&&(o.version.major<50||o.version.major===50&&o.version.build<2661)),this._fillSilentAfterSeek=o.msedge||o.msie,this._mp3UseMpegAudio=!o.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(b){return b.onDataAvailable=this.remux.bind(this),b.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(b){this._onInitSegment=b}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(b){this._onMediaSegment=b}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(b){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(b,F){if(!this._onMediaSegment)throw new m("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(b,F),this._remuxVideo(F),this._remuxAudio(b)}_onTrackMetadataReceived(b,F){let z=null,Y="mp4",te=F.codec;if(b==="audio")this._audioMeta=F,F.codec==="mp3"&&this._mp3UseMpegAudio?(Y="mpeg",te="",z=new Uint8Array):z=ie.generateInitSegment(F);else if(b==="video")this._videoMeta=F,z=ie.generateInitSegment(F);else return;if(!this._onInitSegment)throw new m("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(b,{type:b,data:z.buffer,codec:te,container:`${b}/${Y}`,mediaDuration:F.duration})}_calculateDtsBase(b,F){this._dtsBaseInited||(b.samples&&b.samples.length&&(this._audioDtsBase=b.samples[0].dts),F.samples&&F.samples.length&&(this._videoDtsBase=F.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let b=this._videoStashedLastSample,F=this._audioStashedLastSample,z={type:"video",id:1,sequenceNumber:0,samples:[],length:0};b!=null&&(z.samples.push(b),z.length=b.length);let Y={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};F!=null&&(Y.samples.push(F),Y.length=F.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(z,!0),this._remuxAudio(Y,!0)}_remuxAudio(b,F){if(this._audioMeta==null)return;let z=b,Y=z.samples,te,q=-1,Q=-1,Pe=-1,ye=this._audioMeta.refSampleDuration,Fe=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Je=this._dtsBaseInited&&this._audioNextDts===void 0,nt=!1;if(!Y||Y.length===0||Y.length===1&&!F)return;let Xe=0,ot=null,rt=0;Fe?(Xe=0,rt=z.length):(Xe=8,rt=8+z.length);let Ye=null;if(Y.length>1&&(Ye=Y.pop(),rt-=Ye.length),this._audioStashedLastSample!=null){let ut=this._audioStashedLastSample;this._audioStashedLastSample=null,Y.unshift(ut),rt+=ut.length}Ye!=null&&(this._audioStashedLastSample=Ye);let Ve=Y[0].dts-this._dtsBase;if(this._audioNextDts)te=Ve-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())te=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(nt=!0);else{let ut=this._audioSegmentInfoList.getLastSampleBefore(Ve);if(ut!=null){let Ut=Ve-(ut.originalDts+ut.duration);Ut<=3&&(Ut=0);let Oe=ut.dts+ut.duration+Ut;te=Ve-Oe}else te=0}if(nt){let ut=Ve-te,Ut=this._videoSegmentInfoList.getLastSegmentBefore(Ve);if(Ut!=null&&Ut.beginDts=1?je=ht[ht.length-1].duration:je=Math.floor(ye);let Se=!1,He=null;if(je>ye*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!o.safari){Se=!0;let We=Math.abs(je-ye),dt=Math.ceil(We/ye),St=Be+ye;A.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. dts: ${Be+je} ms, expected: ${Be+Math.round(ye)} ms, delta: ${Math.round(We)} ms, generate: ${dt} frames`);let Ot=_e.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Ot==null&&(A.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Ot=Oe),He=[];for(let Pt=0;Pt0){let Dt=He[He.length-1];Dt.duration=Te-Dt.dts}let Mt={dts:Te,pts:Te,cts:0,unit:Ot,size:Ot.byteLength,duration:0,originalDts:we,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};He.push(Mt),rt+=Mt.size,St+=ye}let Wt=He[He.length-1];Wt.duration=Be+je-Wt.dts,je=Math.round(ye)}ht.push({dts:Be,pts:Be,cts:0,unit:Ut.unit,size:Ut.unit.byteLength,duration:je,originalDts:we,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Se&&ht.push.apply(ht,He)}Fe?ot=new Uint8Array(rt):(ot=new Uint8Array(rt),ot[0]=rt>>>24&255,ot[1]=rt>>>16&255,ot[2]=rt>>>8&255,ot[3]=rt&255,ot.set(ie.types.mdat,4));for(let ut=0;ut1&&(Xe=Y.pop(),nt-=Xe.length),this._videoStashedLastSample!=null){let $e=this._videoStashedLastSample;this._videoStashedLastSample=null,Y.unshift($e),nt+=$e.length}Xe!=null&&(this._videoStashedLastSample=Xe);let ot=Y[0].dts-this._dtsBase;if(this._videoNextDts)te=ot-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())te=0;else{let $e=this._videoSegmentInfoList.getLastSampleBefore(ot);if($e!=null){let Et=ot-($e.originalDts+$e.duration);Et<=3&&(Et=0);let Bt=$e.dts+$e.duration+Et;te=ot-Bt}else te=0}let rt=new Ie,Ye=[];for(let $e=0;$e=1?we=Ye[Ye.length-1].duration:we=Math.floor(this._videoMeta.refSampleDuration),Kt){let Be=new De(ut,Oe,we,Et.dts,!0);Be.fileposition=Et.fileposition,rt.appendSyncPoint(Be)}Ye.push({dts:ut,pts:Oe,cts:Ut,units:Et.units,size:Et.length,isKeyframe:Kt,duration:we,originalDts:Bt,flags:{isLeading:0,dependsOn:Kt?2:1,isDependedOn:Kt?1:0,hasRedundancy:0,isNonSync:Kt?0:1}})}Je=new Uint8Array(nt),Je[0]=nt>>>24&255,Je[1]=nt>>>16&255,Je[2]=nt>>>8&255,Je[3]=nt&255,Je.set(ie.types.mdat,4);for(let $e=0;$e{Y.timestampBase=z,z+=Y.duration,Y.cors=b.cors,Y.withCredentials=b.withCredentials,F.referrerPolicy&&(Y.referrerPolicy=F.referrerPolicy)}),!isNaN(z)&&this._mediaDataSource.duration!==z&&(this._mediaDataSource.duration=z),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(b,F){this._emitter.addListener(b,F)}off(b,F){this._emitter.removeListener(b,F)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(b,F){this._currentSegmentIndex=b;let z=this._mediaDataSource.segments[b],Y=this._ioctl=new P(z,this._config,b);Y.onError=this._onIOException.bind(this),Y.onSeeked=this._onIOSeeked.bind(this),Y.onComplete=this._onIOComplete.bind(this),Y.onRedirect=this._onIORedirect.bind(this),Y.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),F?this._demuxer.bindDataSource(this._ioctl):Y.onDataArrival=this._onInitChunkArrival.bind(this),Y.open(F)}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(b){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let F=this._searchSegmentIndexContains(b);if(F===this._currentSegmentIndex){let z=this._mediaInfo.segments[F];if(z==null)this._pendingSeekTime=b;else{let Y=z.getNearestKeyframe(b);this._remuxer.seek(Y.milliseconds),this._ioctl.seek(Y.fileposition),this._pendingResolveSeekPoint=Y.milliseconds}}else{let z=this._mediaInfo.segments[F];if(z==null)this._pendingSeekTime=b,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(F);else{let Y=z.getNearestKeyframe(b);this._internalAbort(),this._remuxer.seek(b),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[F].timestampBase,this._loadSegment(F,Y.fileposition),this._pendingResolveSeekPoint=Y.milliseconds,this._reportSegmentMediaInfo(F)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(b){let F=this._mediaDataSource.segments,z=F.length-1;for(let Y=0;Y0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Y=this._demuxer.parseChunks(b,F);else if((z=se.probe(b)).match){this._demuxer=new se(z,this._config),this._remuxer||(this._remuxer=new xe(this._config));let te=this._mediaDataSource;te.duration!=null&&!isNaN(te.duration)&&(this._demuxer.overridedDuration=te.duration),typeof te.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=te.hasAudio),typeof te.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=te.hasVideo),this._demuxer.timestampBase=te.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),Y=this._demuxer.parseChunks(b,F)}else z=null,A.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Ae.DEMUX_ERROR,ne.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Y=0;return Y}_onMediaInfo(b){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},b),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,ae.prototype));let F=Object.assign({},b);Object.setPrototypeOf(F,ae.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=F,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let z=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(z)})}_onMetaDataArrived(b){this._emitter.emit(Ae.METADATA_ARRIVED,b)}_onScriptDataArrived(b){this._emitter.emit(Ae.SCRIPTDATA_ARRIVED,b)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(b){let z=b+1;z0&&z[0].originalDts===Y&&(Y=z[0].pts),this._emitter.emit(Ae.RECOMMEND_SEEKPOINT,Y)}}_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(b){let F=this._mediaInfo.segments[b],z=Object.assign({},F);z.duration=this._mediaInfo.duration,z.segmentCount=this._mediaInfo.segmentCount,delete z.segments,delete z.keyframesIndex,this._emitter.emit(Ae.MEDIA_INFO,z)}_reportStatisticsInfo(){let b={};b.url=this._ioctl.currentURL,b.hasRedirect=this._ioctl.hasRedirect,b.hasRedirect&&(b.redirectedURL=this._ioctl.currentRedirectedURL),b.speed=this._ioctl.currentSpeed,b.loaderType=this._ioctl.loaderType,b.currentSegmentIndex=this._currentSegmentIndex,b.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Ae.STATISTICS_INFO,b)}}var et=Qe,tt=function(qe){let b="TransmuxingWorker",F=null,z=rt.bind(this);G.install(),qe.addEventListener("message",function(Ye){switch(Ye.data.cmd){case"init":F=new et(Ye.data.param[0],Ye.data.param[1]),F.on(Ae.IO_ERROR,nt.bind(this)),F.on(Ae.DEMUX_ERROR,Xe.bind(this)),F.on(Ae.INIT_SEGMENT,Y.bind(this)),F.on(Ae.MEDIA_SEGMENT,te.bind(this)),F.on(Ae.LOADING_COMPLETE,q.bind(this)),F.on(Ae.RECOVERED_EARLY_EOF,Q.bind(this)),F.on(Ae.MEDIA_INFO,Pe.bind(this)),F.on(Ae.METADATA_ARRIVED,ye.bind(this)),F.on(Ae.SCRIPTDATA_ARRIVED,Fe.bind(this)),F.on(Ae.STATISTICS_INFO,Je.bind(this)),F.on(Ae.RECOMMEND_SEEKPOINT,ot.bind(this));break;case"destroy":F&&(F.destroy(),F=null),qe.postMessage({msg:"destroyed"});break;case"start":F.start();break;case"stop":F.stop();break;case"seek":F.seek(Ye.data.param);break;case"pause":F.pause();break;case"resume":F.resume();break;case"logging_config":{let Ve=Ye.data.param;k.applyConfig(Ve),Ve.enableCallback===!0?k.addLogListener(z):k.removeLogListener(z);break}}});function Y(Ye,Ve){let ht={msg:Ae.INIT_SEGMENT,data:{type:Ye,data:Ve}};qe.postMessage(ht,[Ve.data])}function te(Ye,Ve){let ht={msg:Ae.MEDIA_SEGMENT,data:{type:Ye,data:Ve}};qe.postMessage(ht,[Ve.data])}function q(){let Ye={msg:Ae.LOADING_COMPLETE};qe.postMessage(Ye)}function Q(){let Ye={msg:Ae.RECOVERED_EARLY_EOF};qe.postMessage(Ye)}function Pe(Ye){let Ve={msg:Ae.MEDIA_INFO,data:Ye};qe.postMessage(Ve)}function ye(Ye){let Ve={msg:Ae.METADATA_ARRIVED,data:Ye};qe.postMessage(Ve)}function Fe(Ye){let Ve={msg:Ae.SCRIPTDATA_ARRIVED,data:Ye};qe.postMessage(Ve)}function Je(Ye){let Ve={msg:Ae.STATISTICS_INFO,data:Ye};qe.postMessage(Ve)}function nt(Ye,Ve){qe.postMessage({msg:Ae.IO_ERROR,data:{type:Ye,info:Ve}})}function Xe(Ye,Ve){qe.postMessage({msg:Ae.DEMUX_ERROR,data:{type:Ye,info:Ve}})}function ot(Ye){qe.postMessage({msg:Ae.RECOMMEND_SEEKPOINT,data:Ye})}function rt(Ye,Ve){qe.postMessage({msg:"logcat_callback",data:{type:Ye,logcat:Ve}})}};class _t{constructor(b,F){if(this.TAG="Transmuxer",this._emitter=new(E()),F.enableWorker&&typeof Worker!="undefined")try{let z=W(82059);this._worker=z(tt),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[b,F]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},k.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:k.getConfig()})}catch(z){A.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new et(b,F)}else this._controller=new et(b,F);if(this._controller){let z=this._controller;z.on(Ae.IO_ERROR,this._onIOError.bind(this)),z.on(Ae.DEMUX_ERROR,this._onDemuxError.bind(this)),z.on(Ae.INIT_SEGMENT,this._onInitSegment.bind(this)),z.on(Ae.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),z.on(Ae.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),z.on(Ae.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),z.on(Ae.MEDIA_INFO,this._onMediaInfo.bind(this)),z.on(Ae.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),z.on(Ae.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),z.on(Ae.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),z.on(Ae.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),k.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(b,F){this._emitter.addListener(b,F)}off(b,F){this._emitter.removeListener(b,F)}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(b){this._worker?this._worker.postMessage({cmd:"seek",param:b}):this._controller.seek(b)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(b,F){Promise.resolve().then(()=>{this._emitter.emit(Ae.INIT_SEGMENT,b,F)})}_onMediaSegment(b,F){Promise.resolve().then(()=>{this._emitter.emit(Ae.MEDIA_SEGMENT,b,F)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Ae.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Ae.RECOVERED_EARLY_EOF)})}_onMediaInfo(b){Promise.resolve().then(()=>{this._emitter.emit(Ae.MEDIA_INFO,b)})}_onMetaDataArrived(b){Promise.resolve().then(()=>{this._emitter.emit(Ae.METADATA_ARRIVED,b)})}_onScriptDataArrived(b){Promise.resolve().then(()=>{this._emitter.emit(Ae.SCRIPTDATA_ARRIVED,b)})}_onStatisticsInfo(b){Promise.resolve().then(()=>{this._emitter.emit(Ae.STATISTICS_INFO,b)})}_onIOError(b,F){Promise.resolve().then(()=>{this._emitter.emit(Ae.IO_ERROR,b,F)})}_onDemuxError(b,F){Promise.resolve().then(()=>{this._emitter.emit(Ae.DEMUX_ERROR,b,F)})}_onRecommendSeekpoint(b){Promise.resolve().then(()=>{this._emitter.emit(Ae.RECOMMEND_SEEKPOINT,b)})}_onLoggingConfigChanged(b){this._worker&&this._worker.postMessage({cmd:"logging_config",param:b})}_onWorkerMessage(b){let F=b.data,z=F.data;if(F.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(F.msg){case Ae.INIT_SEGMENT:case Ae.MEDIA_SEGMENT:this._emitter.emit(F.msg,z.type,z.data);break;case Ae.LOADING_COMPLETE:case Ae.RECOVERED_EARLY_EOF:this._emitter.emit(F.msg);break;case Ae.MEDIA_INFO:Object.setPrototypeOf(z,ae.prototype),this._emitter.emit(F.msg,z);break;case Ae.METADATA_ARRIVED:case Ae.SCRIPTDATA_ARRIVED:case Ae.STATISTICS_INFO:this._emitter.emit(F.msg,z);break;case Ae.IO_ERROR:case Ae.DEMUX_ERROR:this._emitter.emit(F.msg,z.type,z.info);break;case Ae.RECOMMEND_SEEKPOINT:this._emitter.emit(F.msg,z);break;case"logcat_callback":A.emitter.emit("log",z.type,z.logcat);break;default:break}}}var ze=_t,ke={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Rt{constructor(b){this.TAG="MSEController",this._config=b,this._emitter=new(E()),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 Ne}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(b,F){this._emitter.addListener(b,F)}off(b,F){this._emitter.removeListener(b,F)}attachMediaElement(b){if(this._mediaSource)throw new m("MediaSource has been attached to an HTMLMediaElement!");let F=this._mediaSource=new window.MediaSource;F.addEventListener("sourceopen",this.e.onSourceOpen),F.addEventListener("sourceended",this.e.onSourceEnded),F.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=b,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),b.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let b=this._mediaSource;for(let F in this._sourceBuffers){let z=this._pendingSegments[F];z.splice(0,z.length),this._pendingSegments[F]=null,this._pendingRemoveRanges[F]=null,this._lastInitSegments[F]=null;let Y=this._sourceBuffers[F];if(Y){if(b.readyState!=="closed"){try{b.removeSourceBuffer(Y)}catch(te){A.e(this.TAG,te.message)}Y.removeEventListener("error",this.e.onSourceBufferError),Y.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[F]=null,this._sourceBuffers[F]=null}}if(b.readyState==="open")try{b.endOfStream()}catch(F){A.e(this.TAG,F.message)}b.removeEventListener("sourceopen",this.e.onSourceOpen),b.removeEventListener("sourceended",this.e.onSourceEnded),b.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(b,F){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(b),this._pendingSegments[b.type].push(b);return}let z=b,Y=`${z.container}`;z.codec&&z.codec.length>0&&(Y+=`;codecs=${z.codec}`);let te=!1;if(A.v(this.TAG,"Received Initialization Segment, mimeType: "+Y),this._lastInitSegments[z.type]=z,Y!==this._mimeTypes[z.type]){if(this._mimeTypes[z.type])A.v(this.TAG,`Notice: ${z.type} mimeType changed, origin: ${this._mimeTypes[z.type]}, target: ${Y}`);else{te=!0;try{let q=this._sourceBuffers[z.type]=this._mediaSource.addSourceBuffer(Y);q.addEventListener("error",this.e.onSourceBufferError),q.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(q){A.e(this.TAG,q.message),this._emitter.emit(ke.ERROR,{code:q.code,msg:q.message});return}}this._mimeTypes[z.type]=Y}F||this._pendingSegments[z.type].push(z),te||this._sourceBuffers[z.type]&&!this._sourceBuffers[z.type].updating&&this._doAppendSegments(),o.safari&&z.container==="audio/mpeg"&&z.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=z.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(b){let F=b;this._pendingSegments[F.type].push(F),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let z=this._sourceBuffers[F.type];z&&!z.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(b){for(let F in this._sourceBuffers){if(!this._sourceBuffers[F])continue;let z=this._sourceBuffers[F];if(this._mediaSource.readyState==="open")try{z.abort()}catch(te){A.e(this.TAG,te.message)}this._idrList.clear();let Y=this._pendingSegments[F];if(Y.splice(0,Y.length),this._mediaSource.readyState!=="closed"){for(let te=0;te=1&&b-Y.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let b=this._mediaElement.currentTime;for(let F in this._sourceBuffers){let z=this._sourceBuffers[F];if(z){let Y=z.buffered,te=!1;for(let q=0;q=this._config.autoCleanupMaxBackwardDuration){te=!0;let ye=b-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[F].push({start:Q,end:ye})}}else Pe0&&(isNaN(F)||z>F)&&(A.v(this.TAG,`Update MediaSource duration from ${F} to ${z}`),this._mediaSource.duration=z),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let b in this._pendingRemoveRanges){if(!this._sourceBuffers[b]||this._sourceBuffers[b].updating)continue;let F=this._sourceBuffers[b],z=this._pendingRemoveRanges[b];for(;z.length&&!F.updating;){let Y=z.shift();F.remove(Y.start,Y.end)}}}_doAppendSegments(){let b=this._pendingSegments;for(let F in b)if(!(!this._sourceBuffers[F]||this._sourceBuffers[F].updating)&&b[F].length>0){let z=b[F].shift();if(z.timestampOffset){let Y=this._sourceBuffers[F].timestampOffset,te=z.timestampOffset/1e3;Math.abs(Y-te)>.1&&(A.v(this.TAG,`Update MPEG audio timestampOffset from ${Y} to ${te}`),this._sourceBuffers[F].timestampOffset=te),delete z.timestampOffset}if(!z.data||z.data.byteLength===0)continue;try{this._sourceBuffers[F].appendBuffer(z.data),this._isBufferFull=!1,F==="video"&&z.hasOwnProperty("info")&&this._idrList.appendArray(z.info.syncPoints)}catch(Y){this._pendingSegments[F].unshift(z),Y.code===22?(this._isBufferFull||this._emitter.emit(ke.BUFFER_FULL),this._isBufferFull=!0):(A.e(this.TAG,Y.message),this._emitter.emit(ke.ERROR,{code:Y.code,msg:Y.message}))}}}_onSourceOpen(){if(A.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let b=this._pendingSourceBufferInit;for(;b.length;){let F=b.shift();this.appendInitSegment(F,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(ke.SOURCE_OPEN)}_onSourceEnded(){A.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){A.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 b=this._pendingSegments;return b.video.length>0||b.audio.length>0}_hasPendingRemoveRanges(){let b=this._pendingRemoveRanges;return b.video.length>0||b.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(ke.UPDATE_END)}_onSourceBufferError(b){A.e(this.TAG,`SourceBuffer Error: ${b}`)}}var it=Rt;const st={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},pt={NETWORK_EXCEPTION:r.EXCEPTION,NETWORK_STATUS_CODE_INVALID:r.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:r.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:r.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:ne.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:ne.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:ne.CODEC_UNSUPPORTED};class yt{constructor(b,F){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(E()),this._config=R(),typeof F=="object"&&Object.assign(this._config,F),b.type.toLowerCase()!=="flv")throw new a("FlvPlayer requires an flv MediaDataSource input!");b.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=b,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 z=o.chrome&&(o.version.major<50||o.version.major===50&&o.version.build<2661);this._alwaysSeekKeyframe=!!(z||o.msedge||o.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(b,F){b===K.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(K.MEDIA_INFO,this.mediaInfo)}):b===K.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(K.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(b,F)}off(b,F){this._emitter.removeListener(b,F)}attachMediaElement(b){if(this._mediaElement=b,b.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),b.addEventListener("seeking",this.e.onvSeeking),b.addEventListener("canplay",this.e.onvCanPlay),b.addEventListener("stalled",this.e.onvStalled),b.addEventListener("progress",this.e.onvProgress),this._msectl=new it(this._config),this._msectl.on(ke.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(ke.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(ke.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(ke.ERROR,F=>{this._emitter.emit(K.ERROR,st.MEDIA_ERROR,pt.MEDIA_MSE_ERROR,F)}),this._msectl.attachMediaElement(b),this._pendingSeekTime!=null)try{b.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(F){}}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 m("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new m("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 ze(this._mediaDataSource,this._config),this._transmuxer.on(Ae.INIT_SEGMENT,(b,F)=>{this._msectl.appendInitSegment(F)}),this._transmuxer.on(Ae.MEDIA_SEGMENT,(b,F)=>{if(this._msectl.appendMediaSegment(F),this._config.lazyLoad&&!this._config.isLive){let z=this._mediaElement.currentTime;F.info.endDts>=(z+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(A.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Ae.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(K.LOADING_COMPLETE)}),this._transmuxer.on(Ae.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(K.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Ae.IO_ERROR,(b,F)=>{this._emitter.emit(K.ERROR,st.NETWORK_ERROR,b,F)}),this._transmuxer.on(Ae.DEMUX_ERROR,(b,F)=>{this._emitter.emit(K.ERROR,st.MEDIA_ERROR,b,{code:-1,msg:F})}),this._transmuxer.on(Ae.MEDIA_INFO,b=>{this._mediaInfo=b,this._emitter.emit(K.MEDIA_INFO,Object.assign({},b))}),this._transmuxer.on(Ae.METADATA_ARRIVED,b=>{this._emitter.emit(K.METADATA_ARRIVED,b)}),this._transmuxer.on(Ae.SCRIPTDATA_ARRIVED,b=>{this._emitter.emit(K.SCRIPTDATA_ARRIVED,b)}),this._transmuxer.on(Ae.STATISTICS_INFO,b=>{this._statisticsInfo=this._fillStatisticsInfo(b),this._emitter.emit(K.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Ae.RECOMMEND_SEEKPOINT,b=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=b/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(b){this._mediaElement.volume=b}get muted(){return this._mediaElement.muted}set muted(b){this._mediaElement.muted=b}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(b){this._mediaElement?this._internalSeek(b):this._pendingSeekTime=b}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(b){if(b.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return b;let F=!0,z=0,Y=0;if(this._mediaElement.getVideoPlaybackQuality){let te=this._mediaElement.getVideoPlaybackQuality();z=te.totalVideoFrames,Y=te.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(z=this._mediaElement.webkitDecodedFrameCount,Y=this._mediaElement.webkitDroppedFrameCount):F=!1;return F&&(b.decodedFrames=z,b.droppedFrames=Y),b}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let b=this._mediaElement.buffered,F=this._mediaElement.currentTime,z=0,Y=0;for(let te=0;te=F+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(A.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){A.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 b=this._mediaElement.currentTime,F=this._mediaElement.buffered,z=!1;for(let Y=0;Y=te&&b=q-this._config.lazyLoadRecoverDuration&&(z=!0);break}}z&&(window.clearInterval(this._progressChecker),this._progressChecker=null,z&&(A.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(b){let F=this._mediaElement.buffered;for(let z=0;z=Y&&b0){let te=this._mediaElement.buffered.start(0);(te<1&&b0&&F.currentTime0){let Y=z.start(0);if(Y<1&&F{this._emitter.emit(K.MEDIA_INFO,this.mediaInfo)}):b===K.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(K.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(b,F)}off(b,F){this._emitter.removeListener(b,F)}attachMediaElement(b){if(this._mediaElement=b,b.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{b.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(F){}}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 m("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(b){this._mediaElement.volume=b}get muted(){return this._mediaElement.muted}set muted(b){this._mediaElement.muted=b}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(b){this._mediaElement?this._mediaElement.currentTime=b:this._pendingSeekTime=b}get mediaInfo(){let F={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(F.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(F.width=this._mediaElement.videoWidth,F.height=this._mediaElement.videoHeight)),F}get statisticsInfo(){let b={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return b;let F=!0,z=0,Y=0;if(this._mediaElement.getVideoPlaybackQuality){let te=this._mediaElement.getVideoPlaybackQuality();z=te.totalVideoFrames,Y=te.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(z=this._mediaElement.webkitDecodedFrameCount,Y=this._mediaElement.webkitDroppedFrameCount):F=!1;return F&&(b.decodedFrames=z,b.droppedFrames=Y),b}_onvLoadedMetadata(b){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(K.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(K.STATISTICS_INFO,this.statisticsInfo)}}var lt=Tt;G.install();function At(qe,b){let F=qe;if(F==null||typeof F!="object")throw new a("MediaDataSource must be an javascript object!");if(!F.hasOwnProperty("type"))throw new a("MediaDataSource must has type field to indicate video file type!");switch(F.type){case"flv":return new mt(F,b);default:return new lt(F,b)}}function Lt(){return U.supportMSEH264Playback()}function Ct(){return U.getFeatureList()}let jt={};jt.createPlayer=At,jt.isSupported=Lt,jt.getFeatureList=Ct,jt.BaseLoader=n,jt.LoaderStatus=h,jt.LoaderErrors=r,jt.Events=K,jt.ErrorTypes=st,jt.ErrorDetails=pt,jt.FlvPlayer=mt,jt.NativePlayer=lt,jt.LoggingControl=k,Object.defineProperty(jt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Yt=jt},13845:function(ft,Me,W){"use strict";W.d(Me,{F:function(){return N},Z:function(){return G}});function N(w){return w!=null&&w===w.window}function G(w,E){var O,A;if(typeof window=="undefined")return 0;const _=E?"scrollTop":"scrollLeft";let g=0;return N(w)?g=w[E?"pageYOffset":"pageXOffset"]:w instanceof Document?g=w.documentElement[_]:(w instanceof HTMLElement||w)&&(g=w[_]),w&&!N(w)&&typeof g!="number"&&(g=(A=((O=w.ownerDocument)!==null&&O!==void 0?O:w).documentElement)===null||A===void 0?void 0:A[_]),g}},56762:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return G}});var N=W(59301);function G(){const[,w]=N.useReducer(E=>E+1,0);return w}},68031:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return E}});var N=W(16089);function G(O,A,_,g){const x=_-A;return O/=g/2,O<1?x/2*O*O*O+A:x/2*((O-=2)*O*O+2)+A}var w=W(13845);function E(O){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:_=()=>window,callback:g,duration:x=450}=A,m=_(),a=(0,w.Z)(m,!0),u=Date.now(),h=()=>{const n=Date.now()-u,s=G(n>x?x:n,a,O,x);(0,w.F)(m)?m.scrollTo(window.pageXOffset,s):m instanceof Document||m.constructor.name==="HTMLDocument"?m.documentElement.scrollTop=s:m.scrollTop=s,n_||A},27666:function(ft,Me,W){"use strict";var N=W(94480),G=W(16089);function w(E){let O;const A=g=>()=>{O=null,E.apply(void 0,(0,N.Z)(g))},_=function(){if(O==null){for(var g=arguments.length,x=new Array(g),m=0;m{G.Z.cancel(O),O=null},_}Me.Z=w},81228:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return l}});var N=W(67732),G=W(83652),w=W(42403),E=W(158),O=W(59301),A=W(92310),_=W.n(A),g=W(29301),x=W(2738),m=W(27666),a=W(36355),u=W(83116),h=W(37613);const r=v=>{const{componentCls:y}=v;return{[y]:{position:"fixed",zIndex:v.zIndexPopup}}};var n=(0,u.Z)("Affix",v=>{const y=(0,h.TS)(v,{zIndexPopup:v.zIndexBase+10});return[r(y)]});function s(v){return v!==window?v.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function d(v,y,p){if(p!==void 0&&y.top>v.top-p)return p+y.top}function o(v,y,p){if(p!==void 0&&y.bottom{const S=C.getTargetFunc(),T=S==null?void 0:S(),{prevTarget:D}=C.state;D!==T&&(c.forEach(I=>{D==null||D.removeEventListener(I,C.lazyUpdatePosition),T==null||T.addEventListener(I,C.lazyUpdatePosition)}),C.updatePosition(),C.setState({prevTarget:T}))},C.removeListeners=()=>{C.timer&&(clearTimeout(C.timer),C.timer=null);const{prevTarget:S}=C.state,T=C.getTargetFunc(),D=T==null?void 0:T();c.forEach(I=>{D==null||D.removeEventListener(I,C.lazyUpdatePosition),S==null||S.removeEventListener(I,C.lazyUpdatePosition)}),C.updatePosition.cancel(),C.lazyUpdatePosition.cancel()},C.getOffsetTop=()=>{const{offsetBottom:S,offsetTop:T}=C.props;return S===void 0&&T===void 0?0:T},C.getOffsetBottom=()=>C.props.offsetBottom,C.measure=()=>{const{status:S,lastAffix:T}=C.state,{onChange:D}=C.props,I=C.getTargetFunc();if(S!==e.Prepare||!C.fixedNodeRef.current||!C.placeholderNodeRef.current||!I)return;const M=C.getOffsetTop(),P=C.getOffsetBottom(),L=I();if(L){const R={status:e.None},B=s(C.placeholderNodeRef.current);if(B.top===0&&B.left===0&&B.width===0&&B.height===0)return;const U=s(L),H=d(B,U,M),K=o(B,U,P);H!==void 0?(R.affixStyle={position:"fixed",top:H,width:B.width,height:B.height},R.placeholderStyle={width:B.width,height:B.height}):K!==void 0&&(R.affixStyle={position:"fixed",bottom:K,width:B.width,height:B.height},R.placeholderStyle={width:B.width,height:B.height}),R.lastAffix=!!R.affixStyle,D&&T!==R.lastAffix&&D(R.lastAffix),C.setState(R)}},C.prepareMeasure=()=>{C.setState({status:e.Prepare,affixStyle:void 0,placeholderStyle:void 0})},C.updatePosition=(0,m.Z)(()=>{C.prepareMeasure()}),C.lazyUpdatePosition=(0,m.Z)(()=>{const S=C.getTargetFunc(),{affixStyle:T}=C.state;if(S&&T){const D=C.getOffsetTop(),I=C.getOffsetBottom(),M=S();if(M&&C.placeholderNodeRef.current){const P=s(M),L=s(C.placeholderNodeRef.current),R=d(L,P,D),B=o(L,P,I);if(R!==void 0&&T.top===R||B!==void 0&&T.bottom===B)return}}C.prepareMeasure()}),C}return(0,G.Z)(p,[{key:"getTargetFunc",value:function(){const{getTargetContainer:S}=this.context,{target:T}=this.props;return T!==void 0?T:S!=null?S:f}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(S){this.addListeners(),(S.offsetTop!==this.props.offsetTop||S.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:S,placeholderStyle:T}=this.state,{affixPrefixCls:D,rootClassName:I,children:M}=this.props,P=_()(S&&I,{[D]:!!S});let L=(0,x.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return O.createElement(g.Z,{onResize:this.updatePosition},O.createElement("div",Object.assign({},L,{ref:this.placeholderNodeRef}),S&&O.createElement("div",{style:T,"aria-hidden":"true"}),O.createElement("div",{className:P,ref:this.fixedNodeRef,style:S},O.createElement(g.Z,{onResize:this.updatePosition},M))))}}]),p}(O.Component);t.contextType=a.E_;var l=(0,O.forwardRef)((v,y)=>{const{prefixCls:p,rootClassName:C}=v,{getPrefixCls:S}=(0,O.useContext)(a.E_),T=S("affix",p),[D,I]=n(T),M=Object.assign(Object.assign({},v),{affixPrefixCls:T,rootClassName:_()(C,I)});return D(O.createElement(t,Object.assign({},M,{ref:y})))})},79817:function(ft,Me,W){"use strict";W.d(Me,{default:function(){return C}});var N=W(94480),G=W(92310),w=W.n(G),E=W(70425),O=W(59301),A=W(16722),_=W(13845),g=W(68031),x=W(81228),m=W(36355),u=O.createContext(void 0),r=S=>{const{href:T,title:D,prefixCls:I,children:M,className:P,target:L,replace:R}=S,B=O.useContext(u),{registerLink:U,unregisterLink:H,scrollTo:K,onClick:V,activeLink:k,direction:$}=B||{};O.useEffect(()=>(U==null||U(T),()=>{H==null||H(T)}),[T]);const ae=Ee=>{R&&(Ee.preventDefault(),window.location.replace(T)),V==null||V(Ee,{title:D,href:T}),K==null||K(T)},{getPrefixCls:le}=O.useContext(m.E_),he=le("anchor",I),ge=k===T,me=w()(`${he}-link`,P,{[`${he}-link-active`]:ge}),pe=w()(`${he}-link-title`,{[`${he}-link-title-active`]:ge});return O.createElement("div",{className:me},O.createElement("a",{className:pe,href:T,title:typeof D=="string"?D:"",target:L,onClick:ae},D),$!=="horizontal"?M:null)},n=W(17313),s=W(83116),d=W(37613);const o=S=>{const{componentCls:T,holderOffsetBlock:D,motionDurationSlow:I,lineWidthBold:M,colorPrimary:P,lineType:L,colorSplit:R}=S;return{[`${T}-wrapper`]:{marginBlockStart:-D,paddingBlockStart:D,[T]:Object.assign(Object.assign({},(0,n.Wf)(S)),{position:"relative",paddingInlineStart:M,[`${T}-link`]:{paddingBlock:S.linkPaddingBlock,paddingInline:`${S.linkPaddingInlineStart}px 0`,"&-title":Object.assign(Object.assign({},n.vS),{position:"relative",display:"block",marginBlockEnd:S.anchorTitleBlock,color:S.colorText,transition:`all ${S.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${T}-link-title`]:{color:S.colorPrimary},[`${T}-link`]:{paddingBlock:S.anchorPaddingBlockSecondary}}}),[`&:not(${T}-wrapper-horizontal)`]:{[T]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${M}px ${L} ${R}`,content:'" "'},[`${T}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${I} ease-in-out`,width:M,backgroundColor:P,[`&${T}-ink-visible`]:{display:"inline-block"}}}},[`${T}-fixed ${T}-ink ${T}-ink`]:{display:"none"}}}},c=S=>{const{componentCls:T,motionDurationSlow:D,lineWidthBold:I,colorPrimary:M}=S;return{[`${T}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${S.lineType} ${S.colorSplit}`,content:'" "'},[T]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${T}-link:first-of-type`]:{paddingInline:0},[`${T}-ink`]:{position:"absolute",bottom:0,transition:`left ${D} ease-in-out, width ${D} ease-in-out`,height:I,backgroundColor:M}}}}};var f=(0,s.Z)("Anchor",S=>{const{fontSize:T,fontSizeLG:D,paddingXXS:I}=S,M=(0,d.TS)(S,{holderOffsetBlock:I,anchorPaddingBlockSecondary:I/2,anchorTitleBlock:T/14*3,anchorBallSize:D/2});return[o(M),c(M)]},S=>({linkPaddingBlock:S.paddingXXS,linkPaddingInlineStart:S.padding}));function e(){return window}function t(S,T){if(!S.getClientRects().length)return 0;const D=S.getBoundingClientRect();return D.width||D.height?T===window?(T=S.ownerDocument.documentElement,D.top-T.clientTop):D.top-T.getBoundingClientRect().top:D.top}const i=/#([\S ]+)$/,l=S=>{var T;const{rootClassName:D,anchorPrefixCls:I,className:M,style:P,offsetTop:L,affix:R=!0,showInkInFixed:B=!1,children:U,items:H,direction:K="vertical",bounds:V,targetOffset:k,onClick:$,onChange:ae,getContainer:le,getCurrentAnchor:he,replace:ge}=S,[me,pe]=O.useState([]),[Ee,de]=O.useState(null),ve=O.useRef(Ee),ce=O.useRef(null),oe=O.useRef(null),X=O.useRef(!1),{direction:ne,getTargetContainer:j,anchor:re}=O.useContext(m.E_),Z=(T=le!=null?le:j)!==null&&T!==void 0?T:e,ee=JSON.stringify(me),se=(0,E.useEvent)(et=>{me.includes(et)||pe(at=>[].concat((0,N.Z)(at),[et]))}),J=(0,E.useEvent)(et=>{me.includes(et)&&pe(at=>at.filter(tt=>tt!==et))}),ie=()=>{var et;const at=(et=ce.current)===null||et===void 0?void 0:et.querySelector(`.${I}-link-title-active`);if(at&&oe.current){const{style:tt}=oe.current,_t=K==="horizontal";tt.top=_t?"":`${at.offsetTop+at.clientHeight/2}px`,tt.height=_t?"":`${at.clientHeight}px`,tt.left=_t?`${at.offsetLeft}px`:"",tt.width=_t?`${at.clientWidth}px`:"",_t&&(0,A.Z)(at,{scrollMode:"if-needed",block:"nearest"})}},fe=function(et){let at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5;const _t=[],ze=Z();return et.forEach(Ke=>{const ke=i.exec(Ke==null?void 0:Ke.toString());if(!ke)return;const Rt=document.getElementById(ke[1]);if(Rt){const it=t(Rt,ze);itRt.top>ke.top?Rt:ke).link:""},_e=(0,E.useEvent)(et=>{if(ve.current===et)return;const at=typeof he=="function"?he(et):et;de(at),ve.current=at,ae==null||ae(et)}),De=O.useCallback(()=>{if(X.current)return;const et=fe(me,k!==void 0?k:L||0,V);_e(et)},[ee,k,L]),Ie=O.useCallback(et=>{_e(et);const at=i.exec(et);if(!at)return;const tt=document.getElementById(at[1]);if(!tt)return;const _t=Z(),ze=(0,_.Z)(_t,!0),Ke=t(tt,_t);let ke=ze+Ke;ke-=k!==void 0?k:L||0,X.current=!0,(0,g.Z)(ke,{getContainer:Z,callback(){X.current=!1}})},[k,L]),Ne=w()(D,`${I}-wrapper`,{[`${I}-wrapper-horizontal`]:K==="horizontal",[`${I}-rtl`]:ne==="rtl"},M,re==null?void 0:re.className),Le=w()(I,{[`${I}-fixed`]:!R&&!B}),ue=w()(`${I}-ink`,{[`${I}-ink-visible`]:Ee}),xe=Object.assign(Object.assign({maxHeight:L?`calc(100vh - ${L}px)`:"100vh"},re==null?void 0:re.style),P),be=et=>Array.isArray(et)?et.map(at=>O.createElement(r,Object.assign({replace:ge},at,{key:at.key}),K==="vertical"&&be(at.children))):null,Ae=O.createElement("div",{ref:ce,className:Ne,style:xe},O.createElement("div",{className:Le},O.createElement("span",{className:ue,ref:oe}),"items"in S?be(H):U));O.useEffect(()=>{const et=Z();return De(),et==null||et.addEventListener("scroll",De),()=>{et==null||et.removeEventListener("scroll",De)}},[ee]),O.useEffect(()=>{typeof he=="function"&&_e(he(ve.current||""))},[he]),O.useEffect(()=>{ie()},[K,he,ee,Ee]);const Qe=O.useMemo(()=>({registerLink:se,unregisterLink:J,scrollTo:Ie,activeLink:Ee,onClick:$,direction:K}),[Ee,$,Ie,K]);return O.createElement(u.Provider,{value:Qe},R?O.createElement(x.Z,{offsetTop:L,target:Z},Ae):Ae)};var y=S=>{const{prefixCls:T,rootClassName:D}=S,{getPrefixCls:I}=O.useContext(m.E_),M=I("anchor",T),[P,L]=f(M);return P(O.createElement(l,Object.assign({},S,{rootClassName:w()(L,D),anchorPrefixCls:M})))};const p=y;p.Link=r;var C=p},66104:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return I}});var N=W(92310),G=W.n(N),w=W(11592),E=W(26112),O=W(59301),A=W(92343),_=W(36355),g=W(84105),x=W(91857);const m=M=>{let{children:P}=M;const{getPrefixCls:L}=O.useContext(_.E_),R=L("breadcrumb");return O.createElement("li",{className:`${R}-separator`,"aria-hidden":"true"},P===""?P:P||"/")};m.__ANT_BREADCRUMB_SEPARATOR=!0;var a=m,u=function(M,P){var L={};for(var R in M)Object.prototype.hasOwnProperty.call(M,R)&&P.indexOf(R)<0&&(L[R]=M[R]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,R=Object.getOwnPropertySymbols(M);BP[B]||R)}function r(M,P,L,R){if(L==null)return null;const{className:B,onClick:U}=P,H=u(P,["className","onClick"]),K=Object.assign(Object.assign({},(0,E.Z)(H,{data:!0,aria:!0})),{onClick:U});return R!==void 0?O.createElement("a",Object.assign({},K,{className:G()(`${M}-link`,B),href:R}),L):O.createElement("span",Object.assign({},K,{className:G()(`${M}-link`,B)}),L)}function n(M,P){return(R,B,U,H,K)=>{if(P)return P(R,B,U,H);const V=h(R,B);return r(M,R,V,K)}}var s=function(M,P){var L={};for(var R in M)Object.prototype.hasOwnProperty.call(M,R)&&P.indexOf(R)<0&&(L[R]=M[R]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,R=Object.getOwnPropertySymbols(M);B{const{prefixCls:P,separator:L="/",children:R,menu:B,overlay:U,dropdownProps:H,href:K}=M,k=($=>{if(B||U){const ae=Object.assign({},H);if(B){const le=B||{},{items:he}=le,ge=s(le,["items"]);ae.menu=Object.assign(Object.assign({},ge),{items:he==null?void 0:he.map((me,pe)=>{var{key:Ee,title:de,label:ve,path:ce}=me,oe=s(me,["key","title","label","path"]);let X=ve!=null?ve:de;return ce&&(X=O.createElement("a",{href:`${K}${ce}`},X)),Object.assign(Object.assign({},oe),{key:Ee!=null?Ee:pe,label:X})})})}else U&&(ae.overlay=U);return O.createElement(x.Z,Object.assign({placement:"bottom"},ae),O.createElement("span",{className:`${P}-overlay-link`},$,O.createElement(g.Z,null)))}return $})(R);return k!=null?O.createElement(O.Fragment,null,O.createElement("li",null,k),L&&O.createElement(a,null,L)):null},o=M=>{const{prefixCls:P,children:L,href:R}=M,B=s(M,["prefixCls","children","href"]),{getPrefixCls:U}=O.useContext(_.E_),H=U("breadcrumb",P);return O.createElement(d,Object.assign({},B,{prefixCls:H}),r(H,B,L,R))};o.__ANT_BREADCRUMB_ITEM=!0;var c=o,f=W(17313),e=W(83116),t=W(37613);const i=M=>{const{componentCls:P,iconCls:L}=M;return{[P]:Object.assign(Object.assign({},(0,f.Wf)(M)),{color:M.itemColor,fontSize:M.fontSize,[L]:{fontSize:M.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:M.linkColor,transition:`color ${M.motionDurationMid}`,padding:`0 ${M.paddingXXS}px`,borderRadius:M.borderRadiusSM,height:M.lineHeight*M.fontSize,display:"inline-block",marginInline:-M.marginXXS,"&:hover":{color:M.linkHoverColor,backgroundColor:M.colorBgTextHover}},(0,f.Qy)(M)),"li:last-child":{color:M.lastItemColor},[`${P}-separator`]:{marginInline:M.separatorMargin,color:M.separatorColor},[`${P}-link`]:{[` > ${L} + span, > ${L} + a `]:{marginInlineStart:M.marginXXS}},[`${P}-overlay-link`]:{borderRadius:M.borderRadiusSM,height:M.lineHeight*M.fontSize,display:"inline-block",padding:`0 ${M.paddingXXS}px`,marginInline:-M.marginXXS,[`> ${L}`]:{marginInlineStart:M.marginXXS,fontSize:M.fontSizeIcon},"&:hover":{color:M.linkHoverColor,backgroundColor:M.colorBgTextHover,a:{color:M.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${M.componentCls}-rtl`]:{direction:"rtl"}})}};var l=(0,e.Z)("Breadcrumb",M=>{const P=(0,t.TS)(M,{});return[i(P)]},M=>({itemColor:M.colorTextDescription,lastItemColor:M.colorText,iconFontSize:M.fontSize,linkColor:M.colorTextDescription,linkHoverColor:M.colorText,separatorColor:M.colorTextDescription,separatorMargin:M.marginXS})),v=function(M,P){var L={};for(var R in M)Object.prototype.hasOwnProperty.call(M,R)&&P.indexOf(R)<0&&(L[R]=M[R]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,R=Object.getOwnPropertySymbols(M);B{var{breadcrumbName:H}=U,K=v(U,["breadcrumbName"]);return Object.assign(Object.assign({},K),{title:H})})}),B}function p(M,P){return(0,O.useMemo)(()=>M||(P?P.map(y):null),[M,P])}var C=function(M,P){var L={};for(var R in M)Object.prototype.hasOwnProperty.call(M,R)&&P.indexOf(R)<0&&(L[R]=M[R]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,R=Object.getOwnPropertySymbols(M);B{if(P===void 0)return P;let L=(P||"").replace(/^\//,"");return Object.keys(M).forEach(R=>{L=L.replace(`:${R}`,M[R])}),L},T=M=>{const{prefixCls:P,separator:L="/",style:R,className:B,rootClassName:U,routes:H,items:K,children:V,itemRender:k,params:$={}}=M,ae=C(M,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:le,direction:he,breadcrumb:ge}=O.useContext(_.E_);let me;const pe=le("breadcrumb",P),[Ee,de]=l(pe),ve=p(K,H),ce=n(pe,k);if(ve&&ve.length>0){const ne=[],j=K||H;me=ve.map((re,Z)=>{const{path:ee,key:se,type:J,menu:ie,overlay:fe,onClick:_e,className:De,separator:Ie,dropdownProps:Ne}=re,Le=S($,ee);Le!==void 0&&ne.push(Le);const ue=se!=null?se:Z;if(J==="separator")return O.createElement(a,{key:ue},Ie);const xe={},be=Z===ve.length-1;ie?xe.menu=ie:fe&&(xe.overlay=fe);let{href:Ae}=re;return ne.length&&Le!==void 0&&(Ae=`#/${ne.join("/")}`),O.createElement(d,Object.assign({key:ue},xe,(0,E.Z)(re,{data:!0,aria:!0}),{className:De,dropdownProps:Ne,href:Ae,separator:be?"":L,onClick:_e,prefixCls:pe}),ce(re,$,j,ne,Ae))})}else if(V){const ne=(0,w.Z)(V).length;me=(0,w.Z)(V).map((j,re)=>{if(!j)return j;const Z=re===ne-1;return(0,A.Tm)(j,{separator:Z?"":L,key:re})})}const oe=G()(pe,ge==null?void 0:ge.className,{[`${pe}-rtl`]:he==="rtl"},B,U,de),X=Object.assign(Object.assign({},ge==null?void 0:ge.style),R);return Ee(O.createElement("nav",Object.assign({className:oe,style:X},ae),O.createElement("ol",null,me)))};T.Item=c,T.Separator=a;var D=T,I=D},93891:function(ft,Me,W){"use strict";var N=W(59301),G=W(36355),w=W(64165);const E=O=>{const{componentName:A}=O,{getPrefixCls:_}=(0,N.useContext)(G.E_),g=_("empty");switch(A){case"Table":case"List":return N.createElement(w.Z,{image:w.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return N.createElement(w.Z,{image:w.Z.PRESENTED_IMAGE_SIMPLE,className:`${g}-small`});default:return N.createElement(w.Z,null)}};Me.Z=E},28103:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return u}});var N=W(92310),G=W.n(N),w=W(59301),E=W(36355),O=W(17313),A=W(83116),_=W(37613);const g=h=>{const{componentCls:r,sizePaddingEdgeHorizontal:n,colorSplit:s,lineWidth:d,textPaddingInline:o,orientationMargin:c,verticalMarginInline:f}=h;return{[r]:Object.assign(Object.assign({},(0,O.Wf)(h)),{borderBlockStart:`${d}px solid ${s}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:f,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${d}px solid ${s}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${h.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${r}-with-text`]:{display:"flex",alignItems:"center",margin:`${h.dividerHorizontalWithTextGutterMargin}px 0`,color:h.colorTextHeading,fontWeight:500,fontSize:h.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${s}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${d}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${r}-with-text-left`]:{"&::before":{width:`${c*100}%`},"&::after":{width:`${100-c*100}%`}},[`&-horizontal${r}-with-text-right`]:{"&::before":{width:`${100-c*100}%`},"&::after":{width:`${c*100}%`}},[`${r}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:s,borderStyle:"dashed",borderWidth:`${d}px 0 0`},[`&-horizontal${r}-with-text${r}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${r}-dashed`]:{borderInlineStartWidth:d,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${r}-with-text`]:{color:h.colorText,fontWeight:"normal",fontSize:h.fontSize},[`&-horizontal${r}-with-text-left${r}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${r}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${r}-with-text-right${r}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${r}-inner-text`]:{paddingInlineEnd:n}}})}};var x=(0,A.Z)("Divider",h=>{const r=(0,_.TS)(h,{dividerHorizontalWithTextGutterMargin:h.margin,dividerHorizontalGutterMargin:h.marginLG,sizePaddingEdgeHorizontal:0});return[g(r)]},h=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:h.marginXS})),m=function(h,r){var n={};for(var s in h)Object.prototype.hasOwnProperty.call(h,s)&&r.indexOf(s)<0&&(n[s]=h[s]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,s=Object.getOwnPropertySymbols(h);d{const{getPrefixCls:r,direction:n,divider:s}=w.useContext(E.E_),{prefixCls:d,type:o="horizontal",orientation:c="center",orientationMargin:f,className:e,rootClassName:t,children:i,dashed:l,plain:v,style:y}=h,p=m(h,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),C=r("divider",d),[S,T]=x(C),D=c.length>0?`-${c}`:c,I=!!i,M=c==="left"&&f!=null,P=c==="right"&&f!=null,L=G()(C,s==null?void 0:s.className,T,`${C}-${o}`,{[`${C}-with-text`]:I,[`${C}-with-text${D}`]:I,[`${C}-dashed`]:!!l,[`${C}-plain`]:!!v,[`${C}-rtl`]:n==="rtl",[`${C}-no-default-orientation-margin-left`]:M,[`${C}-no-default-orientation-margin-right`]:P},e,t),R=w.useMemo(()=>typeof f=="number"?f:/^\d+$/.test(f)?Number(f):f,[f]),B=Object.assign(Object.assign({},M&&{marginLeft:R}),P&&{marginRight:R});return S(w.createElement("div",Object.assign({className:L,style:Object.assign(Object.assign({},s==null?void 0:s.style),y)},p,{role:"separator"}),i&&o!=="vertical"&&w.createElement("span",{className:`${C}-inner-text`,style:B},i)))}},91857:function(ft,Me,W){"use strict";var N=W(59301),G=W(38819),w=W(92310),E=W.n(w),O=W(31561),A=W(70425),_=W(18929),g=W(2738),x=W(79676),m=W(53487),a=W(92343),u=W(36355),h=W(20834),r=W(40875),n=W(88088),s=W(47211);const d=null,o=t=>{const{menu:i,arrow:l,prefixCls:v,children:y,trigger:p,disabled:C,dropdownRender:S,getPopupContainer:T,overlayClassName:D,rootClassName:I,open:M,onOpenChange:P,visible:L,onVisibleChange:R,mouseEnterDelay:B=.15,mouseLeaveDelay:U=.1,autoAdjustOverflow:H=!0,placement:K="",overlay:V,transitionName:k}=t,{getPopupContainer:$,getPrefixCls:ae,direction:le}=N.useContext(u.E_),he=N.useMemo(()=>{const ie=ae();return k!==void 0?k:K.includes("top")?`${ie}-slide-down`:`${ie}-slide-up`},[ae,K,k]),ge=N.useMemo(()=>K?K.includes("Center")?K.slice(0,K.indexOf("Center")):K:le==="rtl"?"bottomRight":"bottomLeft",[K,le]),me=ae("dropdown",v),[pe,Ee]=(0,s.Z)(me),[,de]=(0,n.Z)(),ve=N.Children.only(y),ce=(0,a.Tm)(ve,{className:E()(`${me}-trigger`,{[`${me}-rtl`]:le==="rtl"},ve.props.className),disabled:C}),oe=C?[]:p;let X;oe&&oe.includes("contextMenu")&&(X=!0);const[ne,j]=(0,_.Z)(!1,{value:M!=null?M:L}),re=(0,A.useEvent)(ie=>{P==null||P(ie),R==null||R(ie),j(ie)}),Z=E()(D,I,Ee,{[`${me}-rtl`]:le==="rtl"}),ee=(0,x.Z)({arrowPointAtCenter:typeof l=="object"&&l.pointAtCenter,autoAdjustOverflow:H,offset:de.marginXXS,arrowWidth:l?de.sizePopupArrow:0,borderRadius:de.borderRadius}),se=N.useCallback(()=>{j(!1)},[]),J=()=>{let ie;return i!=null&&i.items?ie=N.createElement(h.default,Object.assign({},i)):typeof V=="function"?ie=V():ie=V,S&&(ie=S(ie)),ie=N.Children.only(typeof ie=="string"?N.createElement("span",null,ie):ie),N.createElement(r.J,{prefixCls:`${me}-menu`,expandIcon:N.createElement("span",{className:`${me}-menu-submenu-arrow`},N.createElement(G.Z,{className:`${me}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:se,validator:fe=>{let{mode:_e}=fe}},ie)};return pe(N.createElement(O.Z,Object.assign({alignPoint:X},(0,g.Z)(t,["rootClassName"]),{mouseEnterDelay:B,mouseLeaveDelay:U,visible:ne,builtinPlacements:ee,arrow:!!l,overlayClassName:Z,prefixCls:me,getPopupContainer:T||$,transitionName:he,trigger:oe,overlay:J,placement:ge,onVisibleChange:re}),ce))};function c(t){return Object.assign(Object.assign({},t),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const f=(0,m.Z)(o,"dropdown",t=>t,c),e=t=>N.createElement(f,Object.assign({},t),N.createElement("span",null));o._InternalPanelDoNotUseOrYouWillBeFired=e,Me.Z=o},38854:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return n}});var N=W(91857),G=W(92310),w=W.n(G),E=W(59301),O=W(18785),A=W(3113),_=W(36355),g=W(81327),x=W(33234),m=W(47211),a=function(s,d){var o={};for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&d.indexOf(c)<0&&(o[c]=s[c]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,c=Object.getOwnPropertySymbols(s);f{const{getPopupContainer:d,getPrefixCls:o,direction:c}=E.useContext(_.E_),{prefixCls:f,type:e="default",danger:t,disabled:i,loading:l,onClick:v,htmlType:y,children:p,className:C,menu:S,arrow:T,autoFocus:D,overlay:I,trigger:M,align:P,open:L,onOpenChange:R,placement:B,getPopupContainer:U,href:H,icon:K=E.createElement(O.Z,null),title:V,buttonsRender:k=J=>J,mouseEnterDelay:$,mouseLeaveDelay:ae,overlayClassName:le,overlayStyle:he,destroyPopupOnHide:ge,dropdownRender:me}=s,pe=a(s,["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"]),Ee=o("dropdown",f),de=`${Ee}-button`,[ve,ce]=(0,m.Z)(Ee),oe={menu:S,arrow:T,autoFocus:D,align:P,disabled:i,trigger:i?[]:M,onOpenChange:R,getPopupContainer:U||d,mouseEnterDelay:$,mouseLeaveDelay:ae,overlayClassName:le,overlayStyle:he,destroyPopupOnHide:ge,dropdownRender:me},{compactSize:X,compactItemClassnames:ne}=(0,x.ri)(Ee,c),j=w()(de,ne,C,ce);"overlay"in s&&(oe.overlay=I),"open"in s&&(oe.open=L),"placement"in s?oe.placement=B:oe.placement=c==="rtl"?"bottomLeft":"bottomRight";const re=E.createElement(A.ZP,{type:e,danger:t,disabled:i,loading:l,onClick:v,htmlType:y,href:H,title:V},p),Z=E.createElement(A.ZP,{type:e,danger:t,icon:K}),[ee,se]=k([re,Z]);return ve(E.createElement(g.Z.Compact,Object.assign({className:j,size:X,block:!0},pe),ee,E.createElement(N.Z,Object.assign({},oe),se)))};u.__ANT_BUTTON=!0;var h=u;const r=N.Z;r.Button=h;var n=r},47211:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return a}});var N=W(17313),G=W(13826),w=W(92899),E=W(29878),O=W(19447),A=W(83116),_=W(37613),x=u=>{const{componentCls:h,menuCls:r,colorError:n,colorTextLightSolid:s}=u,d=`${r}-item`;return{[`${h}, ${h}-menu-submenu`]:{[`${r} ${d}`]:{[`&${d}-danger:not(${d}-disabled)`]:{color:n,"&:hover":{color:s,backgroundColor:n}}}}}};const m=u=>{const{componentCls:h,menuCls:r,zIndexPopup:n,dropdownArrowDistance:s,sizePopupArrow:d,antCls:o,iconCls:c,motionDurationMid:f,dropdownPaddingVertical:e,fontSize:t,dropdownEdgeChildPadding:i,colorTextDisabled:l,fontSizeIcon:v,controlPaddingHorizontal:y,colorBgElevated:p}=u;return[{[h]:Object.assign(Object.assign({},(0,N.Wf)(u)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:-s+d/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${o}-btn`]:{[`& > ${c}-down, & > ${o}-btn-icon > ${c}-down`]:{fontSize:v}},[`${h}-wrap`]:{position:"relative",[`${o}-btn > ${c}-down`]:{fontSize:v},[`${c}-down::before`]:{transition:`transform ${f}`}},[`${h}-wrap-open`]:{[`${c}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${h}-placement-bottomLeft, &${o}-slide-down-appear${o}-slide-down-appear-active${h}-placement-bottomLeft, &${o}-slide-down-enter${o}-slide-down-enter-active${h}-placement-bottom, &${o}-slide-down-appear${o}-slide-down-appear-active${h}-placement-bottom, &${o}-slide-down-enter${o}-slide-down-enter-active${h}-placement-bottomRight, &${o}-slide-down-appear${o}-slide-down-appear-active${h}-placement-bottomRight`]:{animationName:G.fJ},[`&${o}-slide-up-enter${o}-slide-up-enter-active${h}-placement-topLeft, &${o}-slide-up-appear${o}-slide-up-appear-active${h}-placement-topLeft, &${o}-slide-up-enter${o}-slide-up-enter-active${h}-placement-top, &${o}-slide-up-appear${o}-slide-up-appear-active${h}-placement-top, &${o}-slide-up-enter${o}-slide-up-enter-active${h}-placement-topRight, &${o}-slide-up-appear${o}-slide-up-appear-active${h}-placement-topRight`]:{animationName:G.Qt},[`&${o}-slide-down-leave${o}-slide-down-leave-active${h}-placement-bottomLeft, &${o}-slide-down-leave${o}-slide-down-leave-active${h}-placement-bottom, &${o}-slide-down-leave${o}-slide-down-leave-active${h}-placement-bottomRight`]:{animationName:G.Uw},[`&${o}-slide-up-leave${o}-slide-up-leave-active${h}-placement-topLeft, &${o}-slide-up-leave${o}-slide-up-leave-active${h}-placement-top, &${o}-slide-up-leave${o}-slide-up-leave-active${h}-placement-topRight`]:{animationName:G.ly}})},(0,O.ZP)(u,{colorBg:p,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${h} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${h}, ${h}-menu-submenu`]:{[r]:Object.assign(Object.assign({padding:i,listStyleType:"none",backgroundColor:p,backgroundClip:"padding-box",borderRadius:u.borderRadiusLG,outline:"none",boxShadow:u.boxShadowSecondary},(0,N.Qy)(u)),{[`${r}-item-group-title`]:{padding:`${e}px ${y}px`,color:u.colorTextDescription,transition:`all ${f}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:t,marginInlineEnd:u.marginXS,fontSize:u.fontSizeSM},[`${r}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${f}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${r}-item, ${r}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${e}px ${y}px`,color:u.colorText,fontWeight:"normal",fontSize:t,lineHeight:u.lineHeight,cursor:"pointer",transition:`all ${f}`,borderRadius:u.borderRadiusSM,"&:hover, &-active":{backgroundColor:u.controlItemBgHover}},(0,N.Qy)(u)),{"&-selected":{color:u.colorPrimary,backgroundColor:u.controlItemBgActive,"&:hover, &-active":{backgroundColor:u.controlItemBgActiveHover}},"&-disabled":{color:l,cursor:"not-allowed","&:hover":{color:l,backgroundColor:p,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${u.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:u.colorSplit},[`${h}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:u.paddingXS,[`${h}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:u.colorTextDescription,fontSize:v,fontStyle:"normal"}}}),[`${r}-item-group-list`]:{margin:`0 ${u.marginXS}px`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:y+u.fontSizeSM},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${h}-menu-submenu-title`]:{[`&, ${h}-menu-submenu-arrow-icon`]:{color:l,backgroundColor:p,cursor:"not-allowed"}},[`${r}-submenu-selected ${h}-menu-submenu-title`]:{color:u.colorPrimary}})}},[(0,G.oN)(u,"slide-up"),(0,G.oN)(u,"slide-down"),(0,w.Fm)(u,"move-up"),(0,w.Fm)(u,"move-down"),(0,E._y)(u,"zoom-big")]]};var a=(0,A.Z)("Dropdown",(u,h)=>{let{rootPrefixCls:r}=h;const{marginXXS:n,sizePopupArrow:s,controlHeight:d,fontSize:o,lineHeight:c,paddingXXS:f,componentCls:e,borderRadiusLG:t}=u,i=(d-o*c)/2,{dropdownArrowOffset:l}=(0,O.fS)({contentRadius:t}),v=(0,_.TS)(u,{menuCls:`${e}-menu`,rootPrefixCls:r,dropdownArrowDistance:s/2+n,dropdownArrowOffset:l,dropdownPaddingVertical:i,dropdownEdgeChildPadding:f});return[m(v),x(v)]},u=>({zIndexPopup:u.zIndexPopupBase+50}))},64165:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return f}});var N=W(92310),G=W.n(N),w=W(59301),E=W(36355),O=W(9763),A=W(64993),_=W(88088),x=()=>{const[,e]=(0,_.Z)(),i=new A.C(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return w.createElement("svg",{style:i,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},w.createElement("g",{fill:"none",fillRule:"evenodd"},w.createElement("g",{transform:"translate(24 31.67)"},w.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),w.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),w.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),w.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),w.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),w.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),w.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},w.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),w.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},a=()=>{const[,e]=(0,_.Z)(),{colorFill:t,colorFillTertiary:i,colorFillQuaternary:l,colorBgContainer:v}=e,{borderColor:y,shadowColor:p,contentColor:C}=(0,w.useMemo)(()=>({borderColor:new A.C(t).onBackground(v).toHexShortString(),shadowColor:new A.C(i).onBackground(v).toHexShortString(),contentColor:new A.C(l).onBackground(v).toHexShortString()}),[t,i,l,v]);return w.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},w.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},w.createElement("ellipse",{fill:p,cx:"32",cy:"33",rx:"32",ry:"7"}),w.createElement("g",{fillRule:"nonzero",stroke:y},w.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),w.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:C}))))},u=W(83116),h=W(37613);const r=e=>{const{componentCls:t,margin:i,marginXS:l,marginXL:v,fontSize:y,lineHeight:p}=e;return{[t]:{marginInline:l,fontSize:y,lineHeight:p,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:l,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:i},"&-normal":{marginBlock:v,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:l,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var n=(0,u.Z)("Empty",e=>{const{componentCls:t,controlHeightLG:i}=e,l=(0,h.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:i*2.5,emptyImgHeightMD:i,emptyImgHeightSM:i*.875});return[r(l)]}),s=function(e,t){var i={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(i[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,l=Object.getOwnPropertySymbols(e);v{var{className:t,rootClassName:i,prefixCls:l,image:v=d,description:y,children:p,imageStyle:C,style:S}=e,T=s(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:D,direction:I,empty:M}=w.useContext(E.E_),P=D("empty",l),[L,R]=n(P),[B]=(0,O.Z)("Empty"),U=typeof y!="undefined"?y:B==null?void 0:B.description,H=typeof U=="string"?U:"empty";let K=null;return typeof v=="string"?K=w.createElement("img",{alt:H,src:v}):K=v,L(w.createElement("div",Object.assign({className:G()(R,P,M==null?void 0:M.className,{[`${P}-normal`]:v===o,[`${P}-rtl`]:I==="rtl"},t,i),style:Object.assign(Object.assign({},M==null?void 0:M.style),S)},T),w.createElement("div",{className:`${P}-image`,style:C},K),U&&w.createElement("div",{className:`${P}-description`},U),p&&w.createElement("div",{className:`${P}-footer`},p)))};c.PRESENTED_IMAGE_DEFAULT=d,c.PRESENTED_IMAGE_SIMPLE=o;var f=c},9432:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return c},n:function(){return d}});var N=W(19248),G=W(92310),w=W.n(G),E=W(93681),O=W(8654),A=W(59301),_=W(19080),g=W(36355),x=W(1684),m=W(19716),a=W(32441),u=W(33234),h=W(59412),r=W(9937);function n(f){return!!(f.prefix||f.suffix||f.allowClear)}var s=function(f,e){var t={};for(var i in f)Object.prototype.hasOwnProperty.call(f,i)&&e.indexOf(i)<0&&(t[i]=f[i]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(f);l{var t;const{prefixCls:i,bordered:l=!0,status:v,size:y,disabled:p,onBlur:C,onFocus:S,suffix:T,allowClear:D,addonAfter:I,addonBefore:M,className:P,style:L,styles:R,rootClassName:B,onChange:U,classNames:H}=f,K=s(f,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:V,direction:k,input:$}=A.useContext(g.E_),ae=V("input",i),le=(0,A.useRef)(null),[he,ge]=(0,r.ZP)(ae),{compactSize:me,compactItemClassnames:pe}=(0,u.ri)(ae,k),Ee=(0,m.Z)(_e=>{var De;return(De=y!=null?y:me)!==null&&De!==void 0?De:_e}),de=A.useContext(x.Z),ve=p!=null?p:de,{status:ce,hasFeedback:oe,feedbackIcon:X}=(0,A.useContext)(a.aM),ne=(0,_.F)(ce,v),j=n(f)||!!oe,re=(0,A.useRef)(j);(0,A.useEffect)(()=>{var _e;j&&re.current,re.current=j},[j]);const Z=(0,h.Z)(le,!0),ee=_e=>{Z(),C==null||C(_e)},se=_e=>{Z(),S==null||S(_e)},J=_e=>{Z(),U==null||U(_e)},ie=(oe||T)&&A.createElement(A.Fragment,null,T,oe&&X);let fe;return typeof D=="object"&&(D!=null&&D.clearIcon)?fe=D:D&&(fe={clearIcon:A.createElement(N.Z,null)}),he(A.createElement(E.default,Object.assign({ref:(0,O.sQ)(e,le),prefixCls:ae,autoComplete:$==null?void 0:$.autoComplete},K,{disabled:ve,onBlur:ee,onFocus:se,style:Object.assign(Object.assign({},$==null?void 0:$.style),L),styles:Object.assign(Object.assign({},$==null?void 0:$.styles),R),suffix:ie,allowClear:fe,className:w()(P,B,pe,$==null?void 0:$.className),onChange:J,addonAfter:I&&A.createElement(u.BR,null,A.createElement(a.Ux,{override:!0,status:!0},I)),addonBefore:M&&A.createElement(u.BR,null,A.createElement(a.Ux,{override:!0,status:!0},M)),classNames:Object.assign(Object.assign(Object.assign({},H),$==null?void 0:$.classNames),{input:w()({[`${ae}-sm`]:Ee==="small",[`${ae}-lg`]:Ee==="large",[`${ae}-rtl`]:k==="rtl",[`${ae}-borderless`]:!l},!j&&(0,_.Z)(ae,ne),H==null?void 0:H.input,(t=$==null?void 0:$.classNames)===null||t===void 0?void 0:t.input,ge)}),classes:{affixWrapper:w()({[`${ae}-affix-wrapper-sm`]:Ee==="small",[`${ae}-affix-wrapper-lg`]:Ee==="large",[`${ae}-affix-wrapper-rtl`]:k==="rtl",[`${ae}-affix-wrapper-borderless`]:!l},(0,_.Z)(`${ae}-affix-wrapper`,ne,oe),ge),wrapper:w()({[`${ae}-group-rtl`]:k==="rtl"},ge),group:w()({[`${ae}-group-wrapper-sm`]:Ee==="small",[`${ae}-group-wrapper-lg`]:Ee==="large",[`${ae}-group-wrapper-rtl`]:k==="rtl",[`${ae}-group-wrapper-disabled`]:ve},(0,_.Z)(`${ae}-group-wrapper`,ne,oe),ge)}})))})},1643:function(ft,Me,W){"use strict";var N=W(19248),G=W(92310),w=W.n(G),E=W(9296),O=W(59301),A=W(19080),_=W(36355),g=W(1684),x=W(19716),m=W(32441),a=W(9432),u=W(9937),h=function(n,s){var d={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&s.indexOf(o)<0&&(d[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,o=Object.getOwnPropertySymbols(n);c{const{prefixCls:d,bordered:o=!0,size:c,disabled:f,status:e,allowClear:t,showCount:i,classNames:l,rootClassName:v,className:y}=n,p=h(n,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:C,direction:S}=O.useContext(_.E_),T=(0,x.Z)(c),D=O.useContext(g.Z),I=f!=null?f:D,{status:M,hasFeedback:P,feedbackIcon:L}=O.useContext(m.aM),R=(0,A.F)(M,e),B=O.useRef(null);O.useImperativeHandle(s,()=>{var k;return{resizableTextArea:(k=B.current)===null||k===void 0?void 0:k.resizableTextArea,focus:$=>{var ae,le;(0,a.n)((le=(ae=B.current)===null||ae===void 0?void 0:ae.resizableTextArea)===null||le===void 0?void 0:le.textArea,$)},blur:()=>{var $;return($=B.current)===null||$===void 0?void 0:$.blur()}}});const U=C("input",d);let H;typeof t=="object"&&(t!=null&&t.clearIcon)?H=t:t&&(H={clearIcon:O.createElement(N.Z,null)});const[K,V]=(0,u.ZP)(U);return K(O.createElement(E.default,Object.assign({},p,{disabled:I,allowClear:H,className:w()(y,v),classes:{affixWrapper:w()(`${U}-textarea-affix-wrapper`,{[`${U}-affix-wrapper-rtl`]:S==="rtl",[`${U}-affix-wrapper-borderless`]:!o,[`${U}-affix-wrapper-sm`]:T==="small",[`${U}-affix-wrapper-lg`]:T==="large",[`${U}-textarea-show-count`]:i},(0,A.Z)(`${U}-affix-wrapper`,R),V)},classNames:Object.assign(Object.assign({},l),{textarea:w()({[`${U}-borderless`]:!o,[`${U}-sm`]:T==="small",[`${U}-lg`]:T==="large"},(0,A.Z)(U,R),V,l==null?void 0:l.textarea)}),prefixCls:U,suffix:P&&O.createElement("span",{className:`${U}-textarea-suffix`},L),showCount:i,ref:B})))});Me.Z=r},59412:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return G}});var N=W(59301);function G(w,E){const O=(0,N.useRef)([]),A=()=>{O.current.push(setTimeout(()=>{var _,g,x,m;!((_=w.current)===null||_===void 0)&&_.input&&((g=w.current)===null||g===void 0?void 0:g.input.getAttribute("type"))==="password"&&(!((x=w.current)===null||x===void 0)&&x.input.hasAttribute("value"))&&((m=w.current)===null||m===void 0||m.input.removeAttribute("value"))}))};return(0,N.useEffect)(()=>(E&&A(),()=>O.current.forEach(_=>{_&&clearTimeout(_)})),[]),A}},92832:function(ft,Me,W){"use strict";W.d(Me,{default:function(){return T}});var N=W(92310),G=W.n(N),w=W(59301),E=W(36355),O=W(32441),A=W(9937),g=D=>{const{getPrefixCls:I,direction:M}=(0,w.useContext)(E.E_),{prefixCls:P,className:L}=D,R=I("input-group",P),B=I("input"),[U,H]=(0,A.ZP)(B),K=G()(R,{[`${R}-lg`]:D.size==="large",[`${R}-sm`]:D.size==="small",[`${R}-compact`]:D.compact,[`${R}-rtl`]:M==="rtl"},H,L),V=(0,w.useContext)(O.aM),k=(0,w.useMemo)(()=>Object.assign(Object.assign({},V),{isFormItemInput:!1}),[V]);return U(w.createElement("span",{className:K,style:D.style,onMouseEnter:D.onMouseEnter,onMouseLeave:D.onMouseLeave,onFocus:D.onFocus,onBlur:D.onBlur},w.createElement(O.aM.Provider,{value:k},D.children)))},x=W(9432),m=W(73331),a=W(15277),u=W(2738),h=W(8654),r=W(59412),n=function(D,I){var M={};for(var P in D)Object.prototype.hasOwnProperty.call(D,P)&&I.indexOf(P)<0&&(M[P]=D[P]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,P=Object.getOwnPropertySymbols(D);LD?w.createElement(a.Z,null):w.createElement(m.Z,null),d={click:"onClick",hover:"onMouseOver"};var c=w.forwardRef((D,I)=>{const{visibilityToggle:M=!0}=D,P=typeof M=="object"&&M.visible!==void 0,[L,R]=(0,w.useState)(()=>P?M.visible:!1),B=(0,w.useRef)(null);w.useEffect(()=>{P&&R(M.visible)},[P,M]);const U=(0,r.Z)(B),H=()=>{const{disabled:ve}=D;ve||(L&&U(),R(ce=>{var oe;const X=!ce;return typeof M=="object"&&((oe=M.onVisibleChange)===null||oe===void 0||oe.call(M,X)),X}))},K=ve=>{const{action:ce="click",iconRender:oe=s}=D,X=d[ce]||"",ne=oe(L),j={[X]:H,className:`${ve}-icon`,key:"passwordIcon",onMouseDown:re=>{re.preventDefault()},onMouseUp:re=>{re.preventDefault()}};return w.cloneElement(w.isValidElement(ne)?ne:w.createElement("span",null,ne),j)},{className:V,prefixCls:k,inputPrefixCls:$,size:ae}=D,le=n(D,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:he}=w.useContext(E.E_),ge=he("input",$),me=he("input-password",k),pe=M&&K(me),Ee=G()(me,V,{[`${me}-${ae}`]:!!ae}),de=Object.assign(Object.assign({},(0,u.Z)(le,["suffix","iconRender","visibilityToggle"])),{type:L?"text":"password",className:Ee,prefixCls:ge,suffix:pe});return ae&&(de.size=ae),w.createElement(x.Z,Object.assign({ref:(0,h.sQ)(I,B)},de))}),f=W(47472),e=W(92343),t=W(3113),i=W(19716),l=W(33234),v=function(D,I){var M={};for(var P in D)Object.prototype.hasOwnProperty.call(D,P)&&I.indexOf(P)<0&&(M[P]=D[P]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,P=Object.getOwnPropertySymbols(D);L{const{prefixCls:M,inputPrefixCls:P,className:L,size:R,suffix:B,enterButton:U=!1,addonAfter:H,loading:K,disabled:V,onSearch:k,onChange:$,onCompositionStart:ae,onCompositionEnd:le}=D,he=v(D,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ge,direction:me}=w.useContext(E.E_),pe=w.useRef(!1),Ee=ge("input-search",M),de=ge("input",P),{compactSize:ve}=(0,l.ri)(Ee,me),ce=(0,i.Z)(Ie=>{var Ne;return(Ne=R!=null?R:ve)!==null&&Ne!==void 0?Ne:Ie}),oe=w.useRef(null),X=Ie=>{Ie&&Ie.target&&Ie.type==="click"&&k&&k(Ie.target.value,Ie,{source:"clear"}),$&&$(Ie)},ne=Ie=>{var Ne;document.activeElement===((Ne=oe.current)===null||Ne===void 0?void 0:Ne.input)&&Ie.preventDefault()},j=Ie=>{var Ne,Le;k&&k((Le=(Ne=oe.current)===null||Ne===void 0?void 0:Ne.input)===null||Le===void 0?void 0:Le.value,Ie,{source:"input"})},re=Ie=>{pe.current||K||j(Ie)},Z=typeof U=="boolean"?w.createElement(f.Z,null):null,ee=`${Ee}-button`;let se;const J=U||{},ie=J.type&&J.type.__ANT_BUTTON===!0;ie||J.type==="button"?se=(0,e.Tm)(J,Object.assign({onMouseDown:ne,onClick:Ie=>{var Ne,Le;(Le=(Ne=J==null?void 0:J.props)===null||Ne===void 0?void 0:Ne.onClick)===null||Le===void 0||Le.call(Ne,Ie),j(Ie)},key:"enterButton"},ie?{className:ee,size:ce}:{})):se=w.createElement(t.ZP,{className:ee,type:U?"primary":void 0,size:ce,disabled:V,key:"enterButton",onMouseDown:ne,onClick:j,loading:K,icon:Z},U),H&&(se=[se,(0,e.Tm)(H,{key:"addonAfter"})]);const fe=G()(Ee,{[`${Ee}-rtl`]:me==="rtl",[`${Ee}-${ce}`]:!!ce,[`${Ee}-with-button`]:!!U},L),_e=Ie=>{pe.current=!0,ae==null||ae(Ie)},De=Ie=>{pe.current=!1,le==null||le(Ie)};return w.createElement(x.Z,Object.assign({ref:(0,h.sQ)(oe,I),onPressEnter:re},he,{size:ce,onCompositionStart:_e,onCompositionEnd:De,prefixCls:de,addonAfter:se,suffix:B,onChange:X,className:fe,disabled:V}))}),C=W(1643);const S=x.Z;S.Group=g,S.Search=p,S.TextArea=C.Z,S.Password=c;var T=S},9937:function(ft,Me,W){"use strict";W.d(Me,{M1:function(){return _},TM:function(){return e},Xy:function(){return g},bi:function(){return a},e5:function(){return f},ik:function(){return u},nz:function(){return O},pU:function(){return A},s7:function(){return h},x0:function(){return m}});var N=W(17313),G=W(74207),w=W(37613),E=W(83116);const O=t=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:t,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),A=t=>({borderColor:t.hoverBorderColor}),_=t=>({borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0}),g=t=>({color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,borderColor:t.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},A((0,w.TS)(t,{hoverBorderColor:t.colorBorder})))}),x=t=>{const{paddingBlockLG:i,fontSizeLG:l,lineHeightLG:v,borderRadiusLG:y,paddingInlineLG:p}=t;return{padding:`${i}px ${p}px`,fontSize:l,lineHeight:v,borderRadius:y}},m=t=>({padding:`${t.paddingBlockSM}px ${t.paddingInlineSM}px`,borderRadius:t.borderRadiusSM}),a=(t,i)=>{const{componentCls:l,colorError:v,colorWarning:y,errorActiveShadow:p,warningActiveShadow:C,colorErrorBorderHover:S,colorWarningBorderHover:T}=t;return{[`&-status-error:not(${i}-disabled):not(${i}-borderless)${i}`]:{borderColor:v,"&:hover":{borderColor:S},"&:focus, &-focused":Object.assign({},_((0,w.TS)(t,{activeBorderColor:v,activeShadow:p}))),[`${l}-prefix, ${l}-suffix`]:{color:v}},[`&-status-warning:not(${i}-disabled):not(${i}-borderless)${i}`]:{borderColor:y,"&:hover":{borderColor:T},"&:focus, &-focused":Object.assign({},_((0,w.TS)(t,{activeBorderColor:y,activeShadow:C}))),[`${l}-prefix, ${l}-suffix`]:{color:y}}}},u=t=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${t.paddingBlock}px ${t.paddingInline}px`,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,backgroundColor:t.colorBgContainer,backgroundImage:"none",borderWidth:t.lineWidth,borderStyle:t.lineType,borderColor:t.colorBorder,borderRadius:t.borderRadius,transition:`all ${t.motionDurationMid}`},O(t.colorTextPlaceholder)),{"&:hover":Object.assign({},A(t)),"&:focus, &-focused":Object.assign({},_(t)),"&-disabled, &[disabled]":Object.assign({},g(t)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:t.controlHeight,lineHeight:t.lineHeight,verticalAlign:"bottom",transition:`all ${t.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},x(t)),"&-sm":Object.assign({},m(t)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),h=t=>{const{componentCls:i,antCls:l}=t;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:t.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${i}, &-lg > ${i}-group-addon`]:Object.assign({},x(t)),[`&-sm ${i}, &-sm > ${i}-group-addon`]:Object.assign({},m(t)),[`&-lg ${l}-select-single ${l}-select-selector`]:{height:t.controlHeightLG},[`&-sm ${l}-select-single ${l}-select-selector`]:{height:t.controlHeightSM},[`> ${i}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${i}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${t.paddingInline}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,textAlign:"center",backgroundColor:t.colorFillAlter,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`,lineHeight:1,[`${l}-select`]:{margin:`-${t.paddingBlock+1}px -${t.paddingInline}px`,[`&${l}-select-single:not(${l}-select-customize-input)`]:{[`${l}-select-selector`]:{backgroundColor:"inherit",border:`${t.lineWidth}px ${t.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${l}-select-selector`]:{color:t.colorPrimary}}},[`${l}-cascader-picker`]:{margin:`-9px -${t.paddingInline}px`,backgroundColor:"transparent",[`${l}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${i}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${i}-search-with-button &`]:{zIndex:0}}},[`> ${i}:first-child, ${i}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${l}-select ${l}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${i}-affix-wrapper`]:{[`&:not(:first-child) ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${i}:last-child, ${i}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${l}-select ${l}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${i}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${i}-search &`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius}},[`&:not(:first-child), ${i}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${i}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,N.dF)()),{[`${i}-group-addon, ${i}-group-wrap, > ${i}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:t.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${i}-affix-wrapper, & > ${i}-number-affix-wrapper, & > ${l}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-t.lineWidth,borderInlineEndWidth:t.lineWidth},[`${i}`]:{float:"none"},[`& > ${l}-select > ${l}-select-selector, & > ${l}-select-auto-complete ${i}, & > ${l}-cascader-picker ${i}, & > ${i}-group-wrapper ${i}`]:{borderInlineEndWidth:t.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${l}-select-focused`]:{zIndex:1},[`& > ${l}-select > ${l}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${l}-select:first-child > ${l}-select-selector, & > ${l}-select-auto-complete:first-child ${i}, & > ${l}-cascader-picker:first-child ${i}`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius},[`& > *:last-child, & > ${l}-select:last-child > ${l}-select-selector, & > ${l}-cascader-picker:last-child ${i}, & > ${l}-cascader-picker-focused:last-child ${i}`]:{borderInlineEndWidth:t.lineWidth,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius},[`& > ${l}-select-auto-complete ${i}`]:{verticalAlign:"top"},[`${i}-group-wrapper + ${i}-group-wrapper`]:{marginInlineStart:-t.lineWidth,[`${i}-affix-wrapper`]:{borderRadius:0}},[`${i}-group-wrapper:not(:last-child)`]:{[`&${i}-search > ${i}-group`]:{[`& > ${i}-group-addon > ${i}-search-button`]:{borderRadius:0},[`& > ${i}`]:{borderStartStartRadius:t.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:t.borderRadius}}}})}},r=t=>{const{componentCls:i,controlHeightSM:l,lineWidth:v}=t,p=(l-v*2-16)/2;return{[i]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,N.Wf)(t)),u(t)),a(t,i)),{'&[type="color"]':{height:t.controlHeight,[`&${i}-lg`]:{height:t.controlHeightLG},[`&${i}-sm`]:{height:l,paddingTop:p,paddingBottom:p}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},n=t=>{const{componentCls:i}=t;return{[`${i}-clear-icon`]:{margin:0,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"&:hover":{color:t.colorTextTertiary},"&:active":{color:t.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${t.inputAffixPadding}px`}}}},s=t=>{const{componentCls:i,inputAffixPadding:l,colorTextDescription:v,motionDurationSlow:y,colorIcon:p,colorIconHover:C,iconCls:S}=t;return{[`${i}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u(t)),{display:"inline-flex",[`&:not(${i}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},A(t)),{zIndex:1,[`${i}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${i}[disabled]`]:{background:"transparent"}},[`> input${i}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${i}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:t.paddingXS}},"&-show-count-suffix":{color:v},"&-show-count-has-suffix":{marginInlineEnd:t.paddingXXS},"&-prefix":{marginInlineEnd:l},"&-suffix":{marginInlineStart:l}}}),n(t)),{[`${S}${i}-password-icon`]:{color:p,cursor:"pointer",transition:`all ${y}`,"&:hover":{color:C}}}),a(t,`${i}-affix-wrapper`))}},d=t=>{const{componentCls:i,colorError:l,colorWarning:v,borderRadiusLG:y,borderRadiusSM:p}=t;return{[`${i}-group`]:Object.assign(Object.assign(Object.assign({},(0,N.Wf)(t)),h(t)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${i}-group-addon`]:{borderRadius:y,fontSize:t.fontSizeLG}},"&-sm":{[`${i}-group-addon`]:{borderRadius:p}},"&-status-error":{[`${i}-group-addon`]:{color:l,borderColor:l}},"&-status-warning":{[`${i}-group-addon`]:{color:v,borderColor:v}},"&-disabled":{[`${i}-group-addon`]:Object.assign({},g(t))},[`&:not(${i}-compact-first-item):not(${i}-compact-last-item)${i}-compact-item`]:{[`${i}, ${i}-group-addon`]:{borderRadius:0}},[`&:not(${i}-compact-last-item)${i}-compact-first-item`]:{[`${i}, ${i}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${i}-compact-first-item)${i}-compact-last-item`]:{[`${i}, ${i}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},o=t=>{const{componentCls:i,antCls:l}=t,v=`${i}-search`;return{[v]:{[`${i}`]:{"&:hover, &:focus":{borderColor:t.colorPrimaryHover,[`+ ${i}-group-addon ${v}-button:not(${l}-btn-primary)`]:{borderInlineStartColor:t.colorPrimaryHover}}},[`${i}-affix-wrapper`]:{borderRadius:0},[`${i}-lg`]:{lineHeight:t.lineHeightLG-2e-4},[`> ${i}-group`]:{[`> ${i}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${v}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${v}-button:not(${l}-btn-primary)`]:{color:t.colorTextDescription,"&:hover":{color:t.colorPrimaryHover},"&:active":{color:t.colorPrimaryActive},[`&${l}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${v}-button`]:{height:t.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${v}-button`]:{height:t.controlHeightLG},[`&-small ${v}-button`]:{height:t.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${i}-compact-item`]:{[`&:not(${i}-compact-last-item)`]:{[`${i}-group-addon`]:{[`${i}-search-button`]:{marginInlineEnd:-t.lineWidth,borderRadius:0}}},[`&:not(${i}-compact-first-item)`]:{[`${i},${i}-affix-wrapper`]:{borderRadius:0}},[`> ${i}-group-addon ${i}-search-button, > ${i}, ${i}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${i}-affix-wrapper-focused`]:{zIndex:2}}}}},c=t=>{const{componentCls:i,paddingLG:l}=t,v=`${i}-textarea`;return{[v]:{position:"relative","&-show-count":{[`> ${i}`]:{height:"100%"},[`${i}-data-count`]:{position:"absolute",bottom:-t.fontSize*t.lineHeight,insetInlineEnd:0,color:t.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${i}`]:{paddingInlineEnd:l}},[`&-affix-wrapper${v}-has-feedback`]:{[`${i}`]:{paddingInlineEnd:l}},[`&-affix-wrapper${i}-affix-wrapper`]:{padding:0,[`> textarea${i}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${i}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${i}-clear-icon`]:{position:"absolute",insetInlineEnd:t.paddingXS,insetBlockStart:t.paddingXS},[`${v}-suffix`]:{position:"absolute",top:0,insetInlineEnd:t.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function f(t){return(0,w.TS)(t,{inputAffixPadding:t.paddingXXS})}const e=t=>{const{controlHeight:i,fontSize:l,lineHeight:v,lineWidth:y,controlHeightSM:p,controlHeightLG:C,fontSizeLG:S,lineHeightLG:T,paddingSM:D,controlPaddingHorizontalSM:I,controlPaddingHorizontal:M,colorFillAlter:P,colorPrimaryHover:L,controlOutlineWidth:R,controlOutline:B,colorErrorOutline:U,colorWarningOutline:H}=t;return{paddingBlock:Math.max(Math.round((i-l*v)/2*10)/10-y,3),paddingBlockSM:Math.max(Math.round((p-l*v)/2*10)/10-y,0),paddingBlockLG:Math.ceil((C-S*T)/2*10)/10-y,paddingInline:D-y,paddingInlineSM:I-y,paddingInlineLG:M-y,addonBg:P,activeBorderColor:L,hoverBorderColor:L,activeShadow:`0 0 0 ${R}px ${B}`,errorActiveShadow:`0 0 0 ${R}px ${U}`,warningActiveShadow:`0 0 0 ${R}px ${H}`}};Me.ZP=(0,E.Z)("Input",t=>{const i=(0,w.TS)(t,f(t));return[r(i),c(i),s(i),d(i),o(i),(0,G.c)(i)]},e)},45818:function(ft,Me,W){"use strict";W.d(Me,{D:function(){return f},Z:function(){return i}});var N=W(54476),G=W(59301),w={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"},E=w,O=W(7657),A=function(v,y){return G.createElement(O.Z,(0,N.Z)({},v,{ref:y,icon:E}))},_=G.forwardRef(A),g=_,x=W(33853),m=W(38819),a=W(92310),u=W.n(a),h=W(2738),n=l=>!isNaN(parseFloat(l))&&isFinite(l),s=W(36355),d=W(84966),o=function(l,v){var y={};for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&v.indexOf(p)<0&&(y[p]=l[p]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,p=Object.getOwnPropertySymbols(l);C{let l=0;return function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return l+=1,`${v}${l}`}})();var i=G.forwardRef((l,v)=>{const{prefixCls:y,className:p,trigger:C,children:S,defaultCollapsed:T=!1,theme:D="dark",style:I={},collapsible:M=!1,reverseArrow:P=!1,width:L=200,collapsedWidth:R=80,zeroWidthTriggerStyle:B,breakpoint:U,onCollapse:H,onBreakpoint:K}=l,V=o(l,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:k}=(0,G.useContext)(d.Gs),[$,ae]=(0,G.useState)("collapsed"in l?l.collapsed:T),[le,he]=(0,G.useState)(!1);(0,G.useEffect)(()=>{"collapsed"in l&&ae(l.collapsed)},[l.collapsed]);const ge=(ce,oe)=>{"collapsed"in l||ae(ce),H==null||H(ce,oe)},me=(0,G.useRef)();me.current=ce=>{he(ce.matches),K==null||K(ce.matches),$!==ce.matches&&ge(ce.matches,"responsive")},(0,G.useEffect)(()=>{function ce(X){return me.current(X)}let oe;if(typeof window!="undefined"){const{matchMedia:X}=window;if(X&&U&&U in c){oe=X(`(max-width: ${c[U]})`);try{oe.addEventListener("change",ce)}catch(ne){oe.addListener(ce)}ce(oe)}}return()=>{try{oe==null||oe.removeEventListener("change",ce)}catch(X){oe==null||oe.removeListener(ce)}}},[U]),(0,G.useEffect)(()=>{const ce=e("ant-sider-");return k.addSider(ce),()=>k.removeSider(ce)},[]);const pe=()=>{ge(!$,"clickTrigger")},{getPrefixCls:Ee}=(0,G.useContext)(s.E_),de=()=>{const ce=Ee("layout-sider",y),oe=(0,h.Z)(V,["collapsed"]),X=$?R:L,ne=n(X)?`${X}px`:String(X),j=parseFloat(String(R||0))===0?G.createElement("span",{onClick:pe,className:u()(`${ce}-zero-width-trigger`,`${ce}-zero-width-trigger-${P?"right":"left"}`),style:B},C||G.createElement(g,null)):null,ee={expanded:P?G.createElement(m.Z,null):G.createElement(x.Z,null),collapsed:P?G.createElement(x.Z,null):G.createElement(m.Z,null)}[$?"collapsed":"expanded"],se=C!==null?j||G.createElement("div",{className:`${ce}-trigger`,onClick:pe,style:{width:ne}},C||ee):null,J=Object.assign(Object.assign({},I),{flex:`0 0 ${ne}`,maxWidth:ne,minWidth:ne,width:ne}),ie=u()(ce,`${ce}-${D}`,{[`${ce}-collapsed`]:!!$,[`${ce}-has-trigger`]:M&&C!==null&&!j,[`${ce}-below`]:!!le,[`${ce}-zero-width`]:parseFloat(ne)===0},p);return G.createElement("aside",Object.assign({className:ie},oe,{style:J,ref:v}),G.createElement("div",{className:`${ce}-children`},S),M||le&&j?se:null)},ve=G.useMemo(()=>({siderCollapsed:$}),[$]);return G.createElement(f.Provider,{value:ve},de())})},84966:function(ft,Me,W){"use strict";W.d(Me,{VY:function(){return f},$_:function(){return c},h4:function(){return o},Gs:function(){return h},ZP:function(){return e}});var N=W(94480),G=W(92310),w=W.n(G),E=W(2738),O=W(59301),A=W(36355),_=W(83116),x=t=>{const{componentCls:i,bodyBg:l,lightSiderBg:v,lightTriggerBg:y,lightTriggerColor:p}=t;return{[`${i}-sider-light`]:{background:v,[`${i}-sider-trigger`]:{color:p,background:y},[`${i}-sider-zero-width-trigger`]:{color:p,background:y,border:`1px solid ${l}`,borderInlineStart:0}}}};const m=t=>{const{antCls:i,componentCls:l,colorText:v,triggerColor:y,footerBg:p,triggerBg:C,headerHeight:S,headerPadding:T,headerColor:D,footerPadding:I,triggerHeight:M,zeroTriggerHeight:P,zeroTriggerWidth:L,motionDurationMid:R,motionDurationSlow:B,fontSize:U,borderRadius:H,bodyBg:K,headerBg:V,siderBg:k}=t;return{[l]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:K,"&, *":{boxSizing:"border-box"},[`&${l}-has-sider`]:{flexDirection:"row",[`> ${l}, > ${l}-content`]:{width:0}},[`${l}-header, &${l}-footer`]:{flex:"0 0 auto"},[`${l}-sider`]:{position:"relative",minWidth:0,background:k,transition:`all ${R}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:M},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:M,color:y,lineHeight:`${M}px`,textAlign:"center",background:C,cursor:"pointer",transition:`all ${R}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:S,insetInlineEnd:-L,zIndex:1,width:L,height:P,color:y,fontSize:t.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:k,borderStartStartRadius:0,borderStartEndRadius:H,borderEndEndRadius:H,borderEndStartRadius:0,cursor:"pointer",transition:`background ${B} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${B}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-L,borderStartStartRadius:H,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:H}}}}},x(t)),{"&-rtl":{direction:"rtl"}}),[`${l}-header`]:{height:S,padding:T,color:D,lineHeight:`${S}px`,background:V,[`${i}-menu`]:{lineHeight:"inherit"}},[`${l}-footer`]:{padding:I,color:v,fontSize:U,background:p},[`${l}-content`]:{flex:"auto",minHeight:0}}};var a=(0,_.Z)("Layout",t=>[m(t)],t=>{const{colorBgLayout:i,controlHeight:l,controlHeightLG:v,colorText:y,controlHeightSM:p,marginXXS:C,colorTextLightSolid:S,colorBgContainer:T}=t,D=v*1.25;return{colorBgHeader:"#001529",colorBgBody:i,colorBgTrigger:"#002140",bodyBg:i,headerBg:"#001529",headerHeight:l*2,headerPadding:`0 ${D}px`,headerColor:y,footerPadding:`${p}px ${D}px`,footerBg:i,siderBg:"#001529",triggerHeight:v+C*2,triggerBg:"#002140",triggerColor:S,zeroTriggerWidth:v,zeroTriggerHeight:v,lightSiderBg:T,lightTriggerBg:T,lightTriggerColor:y}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),u=function(t,i){var l={};for(var v in t)Object.prototype.hasOwnProperty.call(t,v)&&i.indexOf(v)<0&&(l[v]=t[v]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,v=Object.getOwnPropertySymbols(t);ynull,removeSider:()=>null}});function r(t){let{suffixCls:i,tagName:l,displayName:v}=t;return y=>O.forwardRef((C,S)=>O.createElement(y,Object.assign({ref:S,suffixCls:i,tagName:l},C)))}const n=O.forwardRef((t,i)=>{const{prefixCls:l,suffixCls:v,className:y,tagName:p}=t,C=u(t,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:S}=O.useContext(A.E_),T=S("layout",l),[D,I]=a(T),M=v?`${T}-${v}`:T;return D(O.createElement(p,Object.assign({className:w()(l||M,y,I),ref:i},C)))}),s=O.forwardRef((t,i)=>{const{direction:l}=O.useContext(A.E_),[v,y]=O.useState([]),{prefixCls:p,className:C,rootClassName:S,children:T,hasSider:D,tagName:I,style:M}=t,P=u(t,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),L=(0,E.Z)(P,["suffixCls"]),{getPrefixCls:R,layout:B}=O.useContext(A.E_),U=R("layout",p),[H,K]=a(U),V=w()(U,{[`${U}-has-sider`]:typeof D=="boolean"?D:v.length>0,[`${U}-rtl`]:l==="rtl"},B==null?void 0:B.className,C,S,K),k=O.useMemo(()=>({siderHook:{addSider:$=>{y(ae=>[].concat((0,N.Z)(ae),[$]))},removeSider:$=>{y(ae=>ae.filter(le=>le!==$))}}}),[]);return H(O.createElement(h.Provider,{value:k},O.createElement(I,Object.assign({ref:i,className:V,style:Object.assign(Object.assign({},B==null?void 0:B.style),M)},L),T)))}),d=r({tagName:"div",displayName:"Layout"})(s),o=r({suffixCls:"header",tagName:"header",displayName:"Header"})(n),c=r({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(n),f=r({suffixCls:"content",tagName:"main",displayName:"Content"})(n);var e=d},40875:function(ft,Me,W){"use strict";W.d(Me,{J:function(){return A}});var N=W(59301),G=W(33234),w=W(70425),E=function(_,g){var x={};for(var m in _)Object.prototype.hasOwnProperty.call(_,m)&&g.indexOf(m)<0&&(x[m]=_[m]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,m=Object.getOwnPropertySymbols(_);a{const{children:x}=_,m=E(_,["children"]),a=N.useContext(O),u=N.useMemo(()=>Object.assign(Object.assign({},a),m),[a,m.prefixCls,m.mode,m.selectable]);return N.createElement(O.Provider,{value:u},N.createElement(G.BR,null,(0,w.supportNodeRef)(x)?N.cloneElement(x,{ref:g}):x))});Me.Z=O},20834:function(ft,Me,W){"use strict";W.d(Me,{default:function(){return ve}});var N=W(15285),G=W(59301),w=W(45818),E=W(92310),O=W.n(E),A=W(36355),_=function(ce,oe){var X={};for(var ne in ce)Object.prototype.hasOwnProperty.call(ce,ne)&&oe.indexOf(ne)<0&&(X[ne]=ce[ne]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,ne=Object.getOwnPropertySymbols(ce);j{const{prefixCls:oe,className:X,dashed:ne}=ce,j=_(ce,["prefixCls","className","dashed"]),{getPrefixCls:re}=G.useContext(A.E_),Z=re("menu",oe),ee=O()({[`${Z}-item-divider-dashed`]:!!ne},X);return G.createElement(N.iz,Object.assign({className:ee},j))},m=W(11592),a=W(2738),u=W(6848),h=W(92343),n=(0,G.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),d=ce=>{var oe;const{className:X,children:ne,icon:j,title:re,danger:Z}=ce,{prefixCls:ee,firstLevel:se,direction:J,disableMenuItemTitleTooltip:ie,inlineCollapsed:fe}=G.useContext(n),_e=xe=>{const be=G.createElement("span",{className:`${ee}-title-content`},ne);return(!j||(0,h.l$)(ne)&&ne.type==="span")&&ne&&xe&&se&&typeof ne=="string"?G.createElement("div",{className:`${ee}-inline-collapsed-noicon`},ne.charAt(0)):be},{siderCollapsed:De}=G.useContext(w.D);let Ie=re;typeof re=="undefined"?Ie=se?ne:"":re===!1&&(Ie="");const Ne={title:Ie};!De&&!fe&&(Ne.title=null,Ne.open=!1);const Le=(0,m.Z)(ne).length;let ue=G.createElement(N.ck,Object.assign({},(0,a.Z)(ce,["title","icon","danger"]),{className:O()({[`${ee}-item-danger`]:Z,[`${ee}-item-only-child`]:(j?Le+1:Le)===1},X),title:typeof re=="string"?re:void 0}),(0,h.Tm)(j,{className:O()((0,h.l$)(j)?(oe=j.props)===null||oe===void 0?void 0:oe.className:"",`${ee}-item-icon`)}),_e(fe));return ie||(ue=G.createElement(u.Z,Object.assign({},Ne,{placement:J==="rtl"?"left":"right",overlayClassName:`${ee}-inline-collapsed-tooltip`}),ue)),ue},c=ce=>{var oe;const{popupClassName:X,icon:ne,title:j,theme:re}=ce,Z=G.useContext(n),{prefixCls:ee,inlineCollapsed:se,theme:J}=Z,ie=(0,N.Xl)();let fe;if(!ne)fe=se&&!ie.length&&j&&typeof j=="string"?G.createElement("div",{className:`${ee}-inline-collapsed-noicon`},j.charAt(0)):G.createElement("span",{className:`${ee}-title-content`},j);else{const De=(0,h.l$)(j)&&j.type==="span";fe=G.createElement(G.Fragment,null,(0,h.Tm)(ne,{className:O()((0,h.l$)(ne)?(oe=ne.props)===null||oe===void 0?void 0:oe.className:"",`${ee}-item-icon`)}),De?j:G.createElement("span",{className:`${ee}-title-content`},j))}const _e=G.useMemo(()=>Object.assign(Object.assign({},Z),{firstLevel:!1}),[Z]);return G.createElement(n.Provider,{value:_e},G.createElement(N.Wd,Object.assign({},(0,a.Z)(ce,["icon"]),{title:fe,popupClassName:O()(ee,X,`${ee}-${re||J}`)})))},f=W(18785),e=W(70425),t=W(62892),i=W(40875),l=function(ce,oe){var X={};for(var ne in ce)Object.prototype.hasOwnProperty.call(ce,ne)&&oe.indexOf(ne)<0&&(X[ne]=ce[ne]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,ne=Object.getOwnPropertySymbols(ce);j{if(oe&&typeof oe=="object"){const ne=oe,{label:j,children:re,key:Z,type:ee}=ne,se=l(ne,["label","children","key","type"]),J=Z!=null?Z:`tmp-${X}`;return re||ee==="group"?ee==="group"?G.createElement(N.BW,Object.assign({key:J},se,{title:j}),v(re)):G.createElement(c,Object.assign({key:J},se,{title:j}),v(re)):ee==="divider"?G.createElement(x,Object.assign({key:J},se)):G.createElement(d,Object.assign({key:J},se),j)}return null}).filter(oe=>oe)}function y(ce){return G.useMemo(()=>ce&&v(ce),[ce])}var p=W(64993),C=W(17313),S=W(8378),T=W(13826),D=W(29878),I=W(83116),M=W(37613),L=ce=>{const{componentCls:oe,motionDurationSlow:X,horizontalLineHeight:ne,colorSplit:j,lineWidth:re,lineType:Z,itemPaddingInline:ee}=ce;return{[`${oe}-horizontal`]:{lineHeight:ne,border:0,borderBottom:`${re}px ${Z} ${j}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${oe}-item, ${oe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ee},[`> ${oe}-item:hover, > ${oe}-item-active, > ${oe}-submenu ${oe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${oe}-item, ${oe}-submenu-title`]:{transition:[`border-color ${X}`,`background ${X}`].join(",")},[`${oe}-submenu-arrow`]:{display:"none"}}}},B=ce=>{let{componentCls:oe,menuArrowOffset:X}=ce;return{[`${oe}-rtl`]:{direction:"rtl"},[`${oe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${oe}-rtl${oe}-vertical, ${oe}-submenu-rtl ${oe}-vertical`]:{[`${oe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${X})`},"&::after":{transform:`rotate(45deg) translateY(${X})`}}}}};const U=ce=>Object.assign({},(0,C.oN)(ce));var K=(ce,oe)=>{const{componentCls:X,itemColor:ne,itemSelectedColor:j,groupTitleColor:re,itemBg:Z,subMenuItemBg:ee,itemSelectedBg:se,activeBarHeight:J,activeBarWidth:ie,activeBarBorderWidth:fe,motionDurationSlow:_e,motionEaseInOut:De,motionEaseOut:Ie,itemPaddingInline:Ne,motionDurationMid:Le,itemHoverColor:ue,lineType:xe,colorSplit:be,itemDisabledColor:Ae,dangerItemColor:Qe,dangerItemHoverColor:et,dangerItemSelectedColor:at,dangerItemActiveBg:tt,dangerItemSelectedBg:_t,itemHoverBg:ze,itemActiveBg:Ke,menuSubMenuBg:ke,horizontalItemSelectedColor:Rt,horizontalItemSelectedBg:it,horizontalItemBorderRadius:st,horizontalItemHoverBg:pt,popupBg:yt}=ce;return{[`${X}-${oe}, ${X}-${oe} > ${X}`]:{color:ne,background:Z,[`&${X}-root:focus-visible`]:Object.assign({},U(ce)),[`${X}-item-group-title`]:{color:re},[`${X}-submenu-selected`]:{[`> ${X}-submenu-title`]:{color:j}},[`${X}-item-disabled, ${X}-submenu-disabled`]:{color:`${Ae} !important`},[`${X}-item:not(${X}-item-selected):not(${X}-submenu-selected)`]:{[`&:hover, > ${X}-submenu-title:hover`]:{color:ue}},[`&:not(${X}-horizontal)`]:{[`${X}-item:not(${X}-item-selected)`]:{"&:hover":{backgroundColor:ze},"&:active":{backgroundColor:Ke}},[`${X}-submenu-title`]:{"&:hover":{backgroundColor:ze},"&:active":{backgroundColor:Ke}}},[`${X}-item-danger`]:{color:Qe,[`&${X}-item:hover`]:{[`&:not(${X}-item-selected):not(${X}-submenu-selected)`]:{color:et}},[`&${X}-item:active`]:{background:tt}},[`${X}-item a`]:{"&, &:hover":{color:"inherit"}},[`${X}-item-selected`]:{color:j,[`&${X}-item-danger`]:{color:at},"a, a:hover":{color:"inherit"}},[`& ${X}-item-selected`]:{backgroundColor:se,[`&${X}-item-danger`]:{backgroundColor:_t}},[`${X}-item, ${X}-submenu-title`]:{[`&:not(${X}-item-disabled):focus-visible`]:Object.assign({},U(ce))},[`&${X}-submenu > ${X}`]:{backgroundColor:ke},[`&${X}-popup > ${X}`]:{backgroundColor:yt},[`&${X}-horizontal`]:Object.assign(Object.assign({},oe==="dark"?{borderBottom:0}:{}),{[`> ${X}-item, > ${X}-submenu`]:{top:fe,marginTop:-fe,marginBottom:0,borderRadius:st,"&::after":{position:"absolute",insetInline:Ne,bottom:0,borderBottom:`${J}px solid transparent`,transition:`border-color ${_e} ${De}`,content:'""'},"&:hover, &-active, &-open":{background:pt,"&::after":{borderBottomWidth:J,borderBottomColor:Rt}},"&-selected":{color:Rt,backgroundColor:it,"&:hover":{backgroundColor:it},"&::after":{borderBottomWidth:J,borderBottomColor:Rt}}}}),[`&${X}-root`]:{[`&${X}-inline, &${X}-vertical`]:{borderInlineEnd:`${fe}px ${xe} ${be}`}},[`&${X}-inline`]:{[`${X}-sub${X}-inline`]:{background:ee},[`${X}-item, ${X}-submenu-title`]:fe&&ie?{width:`calc(100% + ${fe}px)`}:{},[`${X}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ie}px solid ${j}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Le} ${Ie}`,`opacity ${Le} ${Ie}`].join(","),content:'""'},[`&${X}-item-danger`]:{"&::after":{borderInlineEndColor:at}}},[`${X}-selected, ${X}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Le} ${De}`,`opacity ${Le} ${De}`].join(",")}}}}}};const V=ce=>{const{componentCls:oe,itemHeight:X,itemMarginInline:ne,padding:j,menuArrowSize:re,marginXS:Z,itemMarginBlock:ee}=ce,se=j+re+Z;return{[`${oe}-item`]:{position:"relative",overflow:"hidden"},[`${oe}-item, ${oe}-submenu-title`]:{height:X,lineHeight:`${X}px`,paddingInline:j,overflow:"hidden",textOverflow:"ellipsis",marginInline:ne,marginBlock:ee,width:`calc(100% - ${ne*2}px)`},[`> ${oe}-item, > ${oe}-submenu > ${oe}-submenu-title`]:{height:X,lineHeight:`${X}px`},[`${oe}-item-group-list ${oe}-submenu-title, ${oe}-submenu-title`]:{paddingInlineEnd:se}}};var $=ce=>{const{componentCls:oe,iconCls:X,itemHeight:ne,colorTextLightSolid:j,dropdownWidth:re,controlHeightLG:Z,motionDurationMid:ee,motionEaseOut:se,paddingXL:J,itemMarginInline:ie,fontSizeLG:fe,motionDurationSlow:_e,paddingXS:De,boxShadowSecondary:Ie,collapsedWidth:Ne,collapsedIconSize:Le}=ce,ue={height:ne,lineHeight:`${ne}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[oe]:{"&-inline, &-vertical":Object.assign({[`&${oe}-root`]:{boxShadow:"none"}},V(ce))},[`${oe}-submenu-popup`]:{[`${oe}-vertical`]:Object.assign(Object.assign({},V(ce)),{boxShadow:Ie})}},{[`${oe}-submenu-popup ${oe}-vertical${oe}-sub`]:{minWidth:re,maxHeight:`calc(100vh - ${Z*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${oe}-inline`]:{width:"100%",[`&${oe}-root`]:{[`${oe}-item, ${oe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${_e}`,`background ${_e}`,`padding ${ee} ${se}`].join(","),[`> ${oe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${oe}-sub${oe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${oe}-submenu > ${oe}-submenu-title`]:ue,[`& ${oe}-item-group-title`]:{paddingInlineStart:J}},[`${oe}-item`]:ue}},{[`${oe}-inline-collapsed`]:{width:Ne,[`&${oe}-root`]:{[`${oe}-item, ${oe}-submenu ${oe}-submenu-title`]:{[`> ${oe}-inline-collapsed-noicon`]:{fontSize:fe,textAlign:"center"}}},[`> ${oe}-item, > ${oe}-item-group > ${oe}-item-group-list > ${oe}-item, > ${oe}-item-group > ${oe}-item-group-list > ${oe}-submenu > ${oe}-submenu-title, > ${oe}-submenu > ${oe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${fe/2}px - ${ie}px)`,textOverflow:"clip",[` ${oe}-submenu-arrow, ${oe}-submenu-expand-icon `]:{opacity:0},[`${oe}-item-icon, ${X}`]:{margin:0,fontSize:Le,lineHeight:`${ne}px`,"+ span":{display:"inline-block",opacity:0}}},[`${oe}-item-icon, ${X}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${oe}-item-icon, ${X}`]:{display:"none"},"a, a:hover":{color:j}},[`${oe}-item-group-title`]:Object.assign(Object.assign({},C.vS),{paddingInline:De})}}]};const ae=ce=>{const{componentCls:oe,motionDurationSlow:X,motionDurationMid:ne,motionEaseInOut:j,motionEaseOut:re,iconCls:Z,iconSize:ee,iconMarginInlineEnd:se}=ce;return{[`${oe}-item, ${oe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${X}`,`background ${X}`,`padding ${X} ${j}`].join(","),[`${oe}-item-icon, ${Z}`]:{minWidth:ee,fontSize:ee,transition:[`font-size ${ne} ${re}`,`margin ${X} ${j}`,`color ${X}`].join(","),"+ span":{marginInlineStart:se,opacity:1,transition:[`opacity ${X} ${j}`,`margin ${X}`,`color ${X}`].join(",")}},[`${oe}-item-icon`]:Object.assign({},(0,C.Ro)()),[`&${oe}-item-only-child`]:{[`> ${Z}, > ${oe}-item-icon`]:{marginInlineEnd:0}}},[`${oe}-item-disabled, ${oe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${oe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},le=ce=>{const{componentCls:oe,motionDurationSlow:X,motionEaseInOut:ne,borderRadius:j,menuArrowSize:re,menuArrowOffset:Z}=ce;return{[`${oe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ce.margin,width:re,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${X} ${ne}, opacity ${X}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re*.6,height:re*.15,backgroundColor:"currentcolor",borderRadius:j,transition:[`background ${X} ${ne}`,`transform ${X} ${ne}`,`top ${X} ${ne}`,`color ${X} ${ne}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Z})`},"&::after":{transform:`rotate(-45deg) translateY(${Z})`}}}}},he=ce=>{const{antCls:oe,componentCls:X,fontSize:ne,motionDurationSlow:j,motionDurationMid:re,motionEaseInOut:Z,paddingXS:ee,padding:se,colorSplit:J,lineWidth:ie,zIndexPopup:fe,borderRadiusLG:_e,subMenuItemBorderRadius:De,menuArrowSize:Ie,menuArrowOffset:Ne,lineType:Le,menuPanelMaskInset:ue,groupTitleLineHeight:xe,groupTitleFontSize:be}=ce;return[{"":{[`${X}`]:Object.assign(Object.assign({},(0,C.dF)()),{"&-hidden":{display:"none"}})},[`${X}-submenu-hidden`]:{display:"none"}},{[X]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.Wf)(ce)),(0,C.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ne,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${j} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${X}-item`]:{flex:"none"}},[`${X}-item, ${X}-submenu, ${X}-submenu-title`]:{borderRadius:ce.itemBorderRadius},[`${X}-item-group-title`]:{padding:`${ee}px ${se}px`,fontSize:be,lineHeight:xe,transition:`all ${j}`},[`&-horizontal ${X}-submenu`]:{transition:[`border-color ${j} ${Z}`,`background ${j} ${Z}`].join(",")},[`${X}-submenu, ${X}-submenu-inline`]:{transition:[`border-color ${j} ${Z}`,`background ${j} ${Z}`,`padding ${re} ${Z}`].join(",")},[`${X}-submenu ${X}-sub`]:{cursor:"initial",transition:[`background ${j} ${Z}`,`padding ${j} ${Z}`].join(",")},[`${X}-title-content`]:{transition:`color ${j}`},[`${X}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${X}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:J,borderStyle:Le,borderWidth:0,borderTopWidth:ie,marginBlock:ie,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ae(ce)),{[`${X}-item-group`]:{[`${X}-item-group-list`]:{margin:0,padding:0,[`${X}-item, ${X}-submenu-title`]:{paddingInline:`${ne*2}px ${se}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:fe,borderRadius:_e,boxShadow:"none",transformOrigin:"0 0",[`&${X}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ue}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ue},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ce.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ce.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ce.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ce.paddingXS},[`> ${X}`]:Object.assign(Object.assign(Object.assign({borderRadius:_e},ae(ce)),le(ce)),{[`${X}-item, ${X}-submenu > ${X}-submenu-title`]:{borderRadius:De},[`${X}-submenu-title::after`]:{transition:`transform ${j} ${Z}`}})}}),le(ce)),{[`&-inline-collapsed ${X}-submenu-arrow, &-inline ${X}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ne})`},"&::after":{transform:`rotate(45deg) translateX(-${Ne})`}},[`${X}-submenu-open${X}-submenu-inline > ${X}-submenu-title > ${X}-submenu-arrow`]:{transform:`translateY(-${Ie*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ne})`},"&::before":{transform:`rotate(45deg) translateX(${Ne})`}}})},{[`${oe}-layout-header`]:{[X]:{lineHeight:"inherit"}}}]};var ge=(ce,oe)=>(0,I.Z)("Menu",ne=>{if(oe===!1)return[];const{colorBgElevated:j,colorPrimary:re,colorTextLightSolid:Z,controlHeightLG:ee,fontSize:se,darkItemColor:J,darkDangerItemColor:ie,darkItemBg:fe,darkSubMenuItemBg:_e,darkItemSelectedColor:De,darkItemSelectedBg:Ie,darkDangerItemSelectedBg:Ne,darkItemHoverBg:Le,darkGroupTitleColor:ue,darkItemHoverColor:xe,darkItemDisabledColor:be,darkDangerItemHoverColor:Ae,darkDangerItemSelectedColor:Qe,darkDangerItemActiveBg:et}=ne,at=se/7*5,tt=(0,M.TS)(ne,{menuArrowSize:at,menuHorizontalHeight:ee*1.15,menuArrowOffset:`${at*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:j}),_t=(0,M.TS)(tt,{itemColor:J,itemHoverColor:xe,groupTitleColor:ue,itemSelectedColor:De,itemBg:fe,popupBg:fe,subMenuItemBg:_e,itemActiveBg:"transparent",itemSelectedBg:Ie,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Le,itemDisabledColor:be,dangerItemColor:ie,dangerItemHoverColor:Ae,dangerItemSelectedColor:Qe,dangerItemActiveBg:et,dangerItemSelectedBg:Ne,menuSubMenuBg:_e,horizontalItemSelectedColor:Z,horizontalItemSelectedBg:re});return[he(tt),L(tt),$(tt),K(tt,"light"),K(_t,"dark"),B(tt),(0,S.Z)(tt),(0,T.oN)(tt,"slide-up"),(0,T.oN)(tt,"slide-down"),(0,D._y)(tt,"zoom-big")]},ne=>{const{colorPrimary:j,colorError:re,colorTextDisabled:Z,colorErrorBg:ee,colorText:se,colorTextDescription:J,colorBgContainer:ie,colorFillAlter:fe,colorFillContent:_e,lineWidth:De,lineWidthBold:Ie,controlItemBgActive:Ne,colorBgTextHover:Le,controlHeightLG:ue,lineHeight:xe,colorBgElevated:be,marginXXS:Ae,padding:Qe,fontSize:et,controlHeightSM:at,fontSizeLG:tt,colorTextLightSolid:_t,colorErrorHover:ze}=ne,Ke=new p.C(_t).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:se,itemColor:se,colorItemTextHover:se,itemHoverColor:se,colorItemTextHoverHorizontal:j,horizontalItemHoverColor:j,colorGroupTitle:J,groupTitleColor:J,colorItemTextSelected:j,itemSelectedColor:j,colorItemTextSelectedHorizontal:j,horizontalItemSelectedColor:j,colorItemBg:ie,itemBg:ie,colorItemBgHover:Le,itemHoverBg:Le,colorItemBgActive:_e,itemActiveBg:Ne,colorSubItemBg:fe,subMenuItemBg:fe,colorItemBgSelected:Ne,itemSelectedBg:Ne,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ie,activeBarHeight:Ie,colorActiveBarBorderSize:De,activeBarBorderWidth:De,colorItemTextDisabled:Z,itemDisabledColor:Z,colorDangerItemText:re,dangerItemColor:re,colorDangerItemTextHover:re,dangerItemHoverColor:re,colorDangerItemTextSelected:re,dangerItemSelectedColor:re,colorDangerItemBgActive:ee,dangerItemActiveBg:ee,colorDangerItemBgSelected:ee,dangerItemSelectedBg:ee,itemMarginInline:ne.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ue,groupTitleLineHeight:xe,collapsedWidth:ue*2,popupBg:be,itemMarginBlock:Ae,itemPaddingInline:Qe,horizontalLineHeight:`${ue*1.15}px`,iconSize:et,iconMarginInlineEnd:at-et,collapsedIconSize:tt,groupTitleFontSize:et,darkItemDisabledColor:new p.C(_t).setAlpha(.25).toRgbString(),darkItemColor:Ke,darkDangerItemColor:re,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_t,darkItemSelectedBg:j,darkDangerItemSelectedBg:re,darkItemHoverBg:"transparent",darkGroupTitleColor:Ke,darkItemHoverColor:_t,darkDangerItemHoverColor:ze,darkDangerItemSelectedColor:_t,darkDangerItemActiveBg:re}},{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"]]})(ce),me=function(ce,oe){var X={};for(var ne in ce)Object.prototype.hasOwnProperty.call(ce,ne)&&oe.indexOf(ne)<0&&(X[ne]=ce[ne]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,ne=Object.getOwnPropertySymbols(ce);j{var X,ne;const j=G.useContext(i.Z),re=j||{},{getPrefixCls:Z,getPopupContainer:ee,direction:se,menu:J}=G.useContext(A.E_),ie=Z(),{prefixCls:fe,className:_e,style:De,theme:Ie="light",expandIcon:Ne,_internalDisableMenuItemTitleTooltip:Le,inlineCollapsed:ue,siderCollapsed:xe,items:be,children:Ae,rootClassName:Qe,mode:et,selectable:at,onClick:tt,overflowedIndicatorPopupClassName:_t}=ce,ze=me(ce,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ke=(0,a.Z)(ze,["collapsedWidth"]),ke=y(be)||Ae;(X=re.validator)===null||X===void 0||X.call(re,{mode:et});const Rt=(0,e.useEvent)(function(){var jt;tt==null||tt.apply(void 0,arguments),(jt=re.onClick)===null||jt===void 0||jt.call(re)}),it=re.mode||et,st=at!=null?at:re.selectable,pt=G.useMemo(()=>xe!==void 0?xe:ue,[ue,xe]),yt={horizontal:{motionName:`${ie}-slide-up`},inline:(0,t.Z)(ie),other:{motionName:`${ie}-zoom-big`}},mt=Z("menu",fe||re.prefixCls),[Tt,lt]=ge(mt,!j),At=O()(`${mt}-${Ie}`,J==null?void 0:J.className,_e);let Lt;if(typeof Ne=="function")Lt=Ne;else if(Ne===null||Ne===!1)Lt=null;else if(re.expandIcon===null||re.expandIcon===!1)Lt=null;else{const jt=Ne!=null?Ne:re.expandIcon;Lt=(0,h.Tm)(jt,{className:O()(`${mt}-submenu-expand-icon`,(0,h.l$)(jt)?(ne=jt.props)===null||ne===void 0?void 0:ne.className:"")})}const Ct=G.useMemo(()=>({prefixCls:mt,inlineCollapsed:pt||!1,direction:se,firstLevel:!0,theme:Ie,mode:it,disableMenuItemTitleTooltip:Le}),[mt,pt,se,Le,Ie]);return Tt(G.createElement(i.Z.Provider,{value:null},G.createElement(n.Provider,{value:Ct},G.createElement(N.ZP,Object.assign({getPopupContainer:ee,overflowedIndicator:G.createElement(f.Z,null),overflowedIndicatorPopupClassName:O()(mt,`${mt}-${Ie}`,_t),mode:it,selectable:st,onClick:Rt},Ke,{inlineCollapsed:pt,style:Object.assign(Object.assign({},J==null?void 0:J.style),De),className:At,prefixCls:mt,direction:se,defaultMotions:yt,expandIcon:Lt,ref:oe,rootClassName:O()(Qe,lt)}),ke))))});const de=(0,G.forwardRef)((ce,oe)=>{const X=(0,G.useRef)(null),ne=G.useContext(w.D);return(0,G.useImperativeHandle)(oe,()=>({menu:X.current,focus:j=>{var re;(re=X.current)===null||re===void 0||re.focus(j)}})),G.createElement(Ee,Object.assign({ref:X},ce,ne))});de.Item=d,de.SubMenu=c,de.Divider=x,de.ItemGroup=N.BW;var ve=de},93948:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return Le}});var N=W(59301),G=W(29679),w=W(40001),E=W(19248),O=W(99267),A=W(92310),_=W.n(A),g=W(2738),x=W(36355),m=W(54476),a=W(33885),u=W(75931),h={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},r=function(){var xe=(0,N.useRef)([]),be=(0,N.useRef)(null);return(0,N.useEffect)(function(){var Ae=Date.now(),Qe=!1;xe.current.forEach(function(et){if(et){Qe=!0;var at=et.style;at.transitionDuration=".3s, .3s, .3s, .06s",be.current&&Ae-be.current<100&&(at.transitionDuration="0s, 0s")}}),Qe&&(be.current=Date.now())}),xe.current},n=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],s=function(xe){var be=(0,a.Z)((0,a.Z)({},h),xe),Ae=be.className,Qe=be.percent,et=be.prefixCls,at=be.strokeColor,tt=be.strokeLinecap,_t=be.strokeWidth,ze=be.style,Ke=be.trailColor,ke=be.trailWidth,Rt=be.transition,it=(0,u.Z)(be,n);delete it.gapPosition;var st=Array.isArray(Qe)?Qe:[Qe],pt=Array.isArray(at)?at:[at],yt=r(),mt=_t/2,Tt=100-_t/2,lt="M ".concat(tt==="round"?mt:0,",").concat(mt,` L `).concat(tt==="round"?Tt:100,",").concat(mt),At="0 0 100 ".concat(_t),Lt=0;return N.createElement("svg",(0,m.Z)({className:_()("".concat(et,"-line"),Ae),viewBox:At,preserveAspectRatio:"none",style:ze},it),N.createElement("path",{className:"".concat(et,"-line-trail"),d:lt,strokeLinecap:tt,stroke:Ke,strokeWidth:ke||_t,fillOpacity:"0"}),st.map(function(Ct,jt){var Yt=1;switch(tt){case"round":Yt=1-_t/100;break;case"square":Yt=1-_t/2/100;break;default:Yt=1;break}var qe={strokeDasharray:"".concat(Ct*Yt,"px, 100px"),strokeDashoffset:"-".concat(Lt,"px"),transition:Rt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},b=pt[jt]||pt[pt.length-1];return Lt+=Ct,N.createElement("path",{key:jt,className:"".concat(et,"-line-path"),d:lt,strokeLinecap:tt,stroke:b,strokeWidth:_t,fillOpacity:"0",ref:function(z){yt[jt]=z},style:qe})}))},d=s,o=W(76190),c=W(42978),f=W(47273),e=0,t=(0,f.Z)();function i(){var ue;return t?(ue=e,e+=1):ue="TEST_OR_SSR",ue}var l=function(ue){var xe=N.useState(),be=(0,c.Z)(xe,2),Ae=be[0],Qe=be[1];return N.useEffect(function(){Qe("rc_progress_".concat(i()))},[]),ue||Ae},v=function(xe){var be=xe.bg,Ae=xe.children;return N.createElement("div",{style:{width:"100%",height:"100%",background:be}},Ae)};function y(ue,xe){return Object.keys(ue).map(function(be){var Ae=parseFloat(be),Qe="".concat(Math.floor(Ae*xe),"%");return"".concat(ue[be]," ").concat(Qe)})}var p=N.forwardRef(function(ue,xe){var be=ue.prefixCls,Ae=ue.color,Qe=ue.gradientId,et=ue.radius,at=ue.style,tt=ue.ptg,_t=ue.strokeLinecap,ze=ue.strokeWidth,Ke=ue.size,ke=ue.gapDegree,Rt=Ae&&(0,o.Z)(Ae)==="object",it=Rt?"#FFF":void 0,st=Ke/2,pt=N.createElement("circle",{className:"".concat(be,"-circle-path"),r:et,cx:st,cy:st,stroke:it,strokeLinecap:_t,strokeWidth:ze,opacity:tt===0?0:1,style:at,ref:xe});if(!Rt)return pt;var yt="".concat(Qe,"-conic"),mt=ke?"".concat(180+ke/2,"deg"):"0deg",Tt=y(Ae,(360-ke)/360),lt=y(Ae,1),At="conic-gradient(from ".concat(mt,", ").concat(Tt.join(", "),")"),Lt="linear-gradient(to ".concat(ke?"bottom":"top",", ").concat(lt.join(", "),")");return N.createElement(N.Fragment,null,N.createElement("mask",{id:yt},pt),N.createElement("foreignObject",{x:0,y:0,width:Ke,height:Ke,mask:"url(#".concat(yt,")")},N.createElement(v,{bg:Lt},N.createElement(v,{bg:At}))))}),C=p,S=100,T=function(xe,be,Ae,Qe,et,at,tt,_t,ze,Ke){var ke=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Rt=Ae/100*360*((360-at)/360),it=at===0?0:{bottom:0,top:180,left:90,right:-90}[tt],st=(100-Qe)/100*be;ze==="round"&&Qe!==100&&(st+=Ke/2,st>=be&&(st=be-.01));var pt=S/2;return{stroke:typeof _t=="string"?_t:void 0,strokeDasharray:"".concat(be,"px ").concat(xe),strokeDashoffset:st+ke,transform:"rotate(".concat(et+Rt+it,"deg)"),transformOrigin:"".concat(pt,"px ").concat(pt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},D=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function I(ue){var xe=ue!=null?ue:[];return Array.isArray(xe)?xe:[xe]}var M=function(xe){var be=(0,a.Z)((0,a.Z)({},h),xe),Ae=be.id,Qe=be.prefixCls,et=be.steps,at=be.strokeWidth,tt=be.trailWidth,_t=be.gapDegree,ze=_t===void 0?0:_t,Ke=be.gapPosition,ke=be.trailColor,Rt=be.strokeLinecap,it=be.style,st=be.className,pt=be.strokeColor,yt=be.percent,mt=(0,u.Z)(be,D),Tt=S/2,lt=l(Ae),At="".concat(lt,"-gradient"),Lt=Tt-at/2,Ct=Math.PI*2*Lt,jt=ze>0?90+ze/2:-90,Yt=Ct*((360-ze)/360),qe=(0,o.Z)(et)==="object"?et:{count:et,space:2},b=qe.count,F=qe.space,z=I(yt),Y=I(pt),te=Y.find(function(nt){return nt&&(0,o.Z)(nt)==="object"}),q=te&&(0,o.Z)(te)==="object",Q=q?"butt":Rt,Pe=T(Ct,Yt,0,100,jt,ze,Ke,ke,Q,at),ye=r(),Fe=function(){var Xe=0;return z.map(function(ot,rt){var Ye=Y[rt]||Y[Y.length-1],Ve=T(Ct,Yt,Xe,ot,jt,ze,Ke,Ye,Q,at);return Xe+=ot,N.createElement(C,{key:rt,color:Ye,ptg:ot,radius:Lt,prefixCls:Qe,gradientId:At,style:Ve,strokeLinecap:Q,strokeWidth:at,gapDegree:ze,ref:function($e){ye[rt]=$e},size:S})}).reverse()},Je=function(){var Xe=Math.round(b*(z[0]/100)),ot=100/b,rt=0;return new Array(b).fill(null).map(function(Ye,Ve){var ht=Ve<=Xe-1?Y[0]:ke,$e=ht&&(0,o.Z)(ht)==="object"?"url(#".concat(At,")"):void 0,Et=T(Ct,Yt,rt,ot,jt,ze,Ke,ht,"butt",at,F);return rt+=(Yt-Et.strokeDashoffset+F)*100/Yt,N.createElement("circle",{key:Ve,className:"".concat(Qe,"-circle-path"),r:Lt,cx:Tt,cy:Tt,stroke:$e,strokeWidth:at,opacity:1,style:Et,ref:function(Kt){ye[Ve]=Kt}})})};return N.createElement("svg",(0,m.Z)({className:_()("".concat(Qe,"-circle"),st),viewBox:"0 0 ".concat(S," ").concat(S),style:it,id:Ae,role:"presentation"},mt),!b&&N.createElement("circle",{className:"".concat(Qe,"-circle-trail"),r:Lt,cx:Tt,cy:Tt,stroke:ke,strokeLinecap:Q,strokeWidth:tt||at,style:Pe}),b?Je():Fe())},P=M,L={Line:d,Circle:P},R=W(6848),B=W(30071);function U(ue){return!ue||ue<0?0:ue>100?100:ue}function H(ue){let{success:xe,successPercent:be}=ue,Ae=be;return xe&&"progress"in xe&&(Ae=xe.progress),xe&&"percent"in xe&&(Ae=xe.percent),Ae}const K=ue=>{let{percent:xe,success:be,successPercent:Ae}=ue;const Qe=U(H({success:be,successPercent:Ae}));return[Qe,U(U(xe)-Qe)]},V=ue=>{let{success:xe={},strokeColor:be}=ue;const{strokeColor:Ae}=xe;return[Ae||B.presetPrimaryColors.green,be||null]},k=(ue,xe,be)=>{var Ae,Qe,et,at;let tt=-1,_t=-1;if(xe==="step"){const ze=be.steps,Ke=be.strokeWidth;typeof ue=="string"||typeof ue=="undefined"?(tt=ue==="small"?2:14,_t=Ke!=null?Ke:8):typeof ue=="number"?[tt,_t]=[ue,ue]:[tt=14,_t=8]=ue,tt*=ze}else if(xe==="line"){const ze=be==null?void 0:be.strokeWidth;typeof ue=="string"||typeof ue=="undefined"?_t=ze||(ue==="small"?6:8):typeof ue=="number"?[tt,_t]=[ue,ue]:[tt=-1,_t=8]=ue}else(xe==="circle"||xe==="dashboard")&&(typeof ue=="string"||typeof ue=="undefined"?[tt,_t]=ue==="small"?[60,60]:[120,120]:typeof ue=="number"?[tt,_t]=[ue,ue]:(tt=(Qe=(Ae=ue[0])!==null&&Ae!==void 0?Ae:ue[1])!==null&&Qe!==void 0?Qe:120,_t=(at=(et=ue[0])!==null&&et!==void 0?et:ue[1])!==null&&at!==void 0?at:120));return[tt,_t]},$=3,ae=ue=>$/ue*100;var he=ue=>{const{prefixCls:xe,trailColor:be=null,strokeLinecap:Ae="round",gapPosition:Qe,gapDegree:et,width:at=120,type:tt,children:_t,success:ze,size:Ke=at}=ue,[ke,Rt]=k(Ke,"circle");let{strokeWidth:it}=ue;it===void 0&&(it=Math.max(ae(ke),6));const st={width:ke,height:Rt,fontSize:ke*.15+6},pt=N.useMemo(()=>{if(et||et===0)return et;if(tt==="dashboard")return 75},[et,tt]),yt=Qe||tt==="dashboard"&&"bottom"||void 0,mt=Object.prototype.toString.call(ue.strokeColor)==="[object Object]",Tt=V({success:ze,strokeColor:ue.strokeColor}),lt=_()(`${xe}-inner`,{[`${xe}-circle-gradient`]:mt}),At=N.createElement(P,{percent:K(ue),strokeWidth:it,trailWidth:it,strokeColor:Tt,strokeLinecap:Ae,trailColor:be,prefixCls:xe,gapDegree:pt,gapPosition:yt});return N.createElement("div",{className:lt,style:st},ke<=20?N.createElement(R.Z,{title:_t},N.createElement("span",null,At)):N.createElement(N.Fragment,null,At,_t))},ge=function(ue,xe){var be={};for(var Ae in ue)Object.prototype.hasOwnProperty.call(ue,Ae)&&xe.indexOf(Ae)<0&&(be[Ae]=ue[Ae]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Ae=Object.getOwnPropertySymbols(ue);Qe{let xe=[];return Object.keys(ue).forEach(be=>{const Ae=parseFloat(be.replace(/%/g,""));isNaN(Ae)||xe.push({key:Ae,value:ue[be]})}),xe=xe.sort((be,Ae)=>be.key-Ae.key),xe.map(be=>{let{key:Ae,value:Qe}=be;return`${Qe} ${Ae}%`}).join(", ")},pe=(ue,xe)=>{const{from:be=B.presetPrimaryColors.blue,to:Ae=B.presetPrimaryColors.blue,direction:Qe=xe==="rtl"?"to left":"to right"}=ue,et=ge(ue,["from","to","direction"]);if(Object.keys(et).length!==0){const at=me(et);return{backgroundImage:`linear-gradient(${Qe}, ${at})`}}return{backgroundImage:`linear-gradient(${Qe}, ${be}, ${Ae})`}};var de=ue=>{const{prefixCls:xe,direction:be,percent:Ae,size:Qe,strokeWidth:et,strokeColor:at,strokeLinecap:tt="round",children:_t,trailColor:ze=null,success:Ke}=ue,ke=at&&typeof at!="string"?pe(at,be):{backgroundColor:at},Rt=tt==="square"||tt==="butt"?0:void 0,it={backgroundColor:ze||void 0,borderRadius:Rt},st=Qe!=null?Qe:[-1,et||(Qe==="small"?6:8)],[pt,yt]=k(st,"line",{strokeWidth:et}),mt=Object.assign({width:`${U(Ae)}%`,height:yt,borderRadius:Rt},ke),Tt=H(ue),lt={width:`${U(Tt)}%`,height:yt,borderRadius:Rt,backgroundColor:Ke==null?void 0:Ke.strokeColor},At={width:pt<0?"100%":pt,height:yt};return N.createElement(N.Fragment,null,N.createElement("div",{className:`${xe}-outer`,style:At},N.createElement("div",{className:`${xe}-inner`,style:it},N.createElement("div",{className:`${xe}-bg`,style:mt}),Tt!==void 0?N.createElement("div",{className:`${xe}-success-bg`,style:lt}):null)),_t)},ce=ue=>{const{size:xe,steps:be,percent:Ae=0,strokeWidth:Qe=8,strokeColor:et,trailColor:at=null,prefixCls:tt,children:_t}=ue,ze=Math.round(be*(Ae/100)),Ke=xe==="small"?2:14,ke=xe!=null?xe:[Ke,Qe],[Rt,it]=k(ke,"step",{steps:be,strokeWidth:Qe}),st=Rt/be,pt=new Array(be);for(let yt=0;yt{const xe=ue?"100%":"-100%";return new oe.Keyframes(`antProgress${ue?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Z=ue=>{const{componentCls:xe,iconCls:be}=ue;return{[xe]:Object.assign(Object.assign({},(0,X.Wf)(ue)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ue.fontSize,marginInlineEnd:ue.marginXS,marginBottom:ue.marginXS},[`${xe}-outer`]:{display:"inline-block",width:"100%"},[`&${xe}-show-info`]:{[`${xe}-outer`]:{marginInlineEnd:`calc(-2em - ${ue.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ue.paddingXS}px)`}},[`${xe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ue.remainingColor,borderRadius:ue.lineBorderRadius},[`${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:ue.defaultColor}},[`${xe}-success-bg, ${xe}-bg`]:{position:"relative",backgroundColor:ue.defaultColor,borderRadius:ue.lineBorderRadius,transition:`all ${ue.motionDurationSlow} ${ue.motionEaseInOutCirc}`},[`${xe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ue.colorSuccess},[`${xe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ue.marginXS,color:ue.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[be]:{fontSize:ue.fontSize}},[`&${xe}-status-active`]:{[`${xe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ue.colorBgContainer,borderRadius:ue.lineBorderRadius,opacity:0,animationName:re(),animationDuration:ue.progressActiveMotionDuration,animationTimingFunction:ue.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${xe}-rtl${xe}-status-active`]:{[`${xe}-bg::before`]:{animationName:re(!0)}},[`&${xe}-status-exception`]:{[`${xe}-bg`]:{backgroundColor:ue.colorError},[`${xe}-text`]:{color:ue.colorError}},[`&${xe}-status-exception ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:ue.colorError}},[`&${xe}-status-success`]:{[`${xe}-bg`]:{backgroundColor:ue.colorSuccess},[`${xe}-text`]:{color:ue.colorSuccess}},[`&${xe}-status-success ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:ue.colorSuccess}}})}},ee=ue=>{const{componentCls:xe,iconCls:be}=ue;return{[xe]:{[`${xe}-circle-trail`]:{stroke:ue.remainingColor},[`&${xe}-circle ${xe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${xe}-circle ${xe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ue.circleTextColor,fontSize:ue.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[be]:{fontSize:`${ue.fontSize/ue.fontSizeSM}em`}},[`${xe}-circle&-status-exception`]:{[`${xe}-text`]:{color:ue.colorError}},[`${xe}-circle&-status-success`]:{[`${xe}-text`]:{color:ue.colorSuccess}}},[`${xe}-inline-circle`]:{lineHeight:1,[`${xe}-inner`]:{verticalAlign:"bottom"}}}},se=ue=>{const{componentCls:xe}=ue;return{[xe]:{[`${xe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ue.progressStepMinWidth,marginInlineEnd:ue.progressStepMarginInlineEnd,backgroundColor:ue.remainingColor,transition:`all ${ue.motionDurationSlow}`,"&-active":{backgroundColor:ue.defaultColor}}}}}},J=ue=>{const{componentCls:xe,iconCls:be}=ue;return{[xe]:{[`${xe}-small&-line, ${xe}-small&-line ${xe}-text ${be}`]:{fontSize:ue.fontSizeSM}}}};var ie=(0,ne.Z)("Progress",ue=>{const xe=ue.marginXXS/2,be=(0,j.TS)(ue,{progressStepMarginInlineEnd:xe,progressStepMinWidth:xe,progressActiveMotionDuration:"2.4s"});return[Z(be),ee(be),se(be),J(be)]},ue=>({circleTextColor:ue.colorText,defaultColor:ue.colorInfo,remainingColor:ue.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),fe=function(ue,xe){var be={};for(var Ae in ue)Object.prototype.hasOwnProperty.call(ue,Ae)&&xe.indexOf(Ae)<0&&(be[Ae]=ue[Ae]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Ae=Object.getOwnPropertySymbols(ue);Qe{const{prefixCls:be,className:Ae,rootClassName:Qe,steps:et,strokeColor:at,percent:tt=0,size:_t="default",showInfo:ze=!0,type:Ke="line",status:ke,format:Rt,style:it}=ue,st=fe(ue,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),pt=N.useMemo(()=>{var z,Y;const te=H(ue);return parseInt(te!==void 0?(z=te!=null?te:0)===null||z===void 0?void 0:z.toString():(Y=tt!=null?tt:0)===null||Y===void 0?void 0:Y.toString(),10)},[tt,ue.success,ue.successPercent]),yt=N.useMemo(()=>!De.includes(ke)&&pt>=100?"success":ke||"normal",[ke,pt]),{getPrefixCls:mt,direction:Tt,progress:lt}=N.useContext(x.E_),At=mt("progress",be),[Lt,Ct]=ie(At),jt=N.useMemo(()=>{if(!ze)return null;const z=H(ue);let Y;const te=Rt||(Q=>`${Q}%`),q=Ke==="line";return Rt||yt!=="exception"&&yt!=="success"?Y=te(U(tt),U(z)):yt==="exception"?Y=q?N.createElement(E.Z,null):N.createElement(O.Z,null):yt==="success"&&(Y=q?N.createElement(G.Z,null):N.createElement(w.Z,null)),N.createElement("span",{className:`${At}-text`,title:typeof Y=="string"?Y:void 0},Y)},[ze,tt,pt,yt,Ke,At,Rt]),Yt=Array.isArray(at)?at[0]:at,qe=typeof at=="string"||Array.isArray(at)?at:void 0;let b;Ke==="line"?b=et?N.createElement(ce,Object.assign({},ue,{strokeColor:qe,prefixCls:At,steps:et}),jt):N.createElement(de,Object.assign({},ue,{strokeColor:Yt,prefixCls:At,direction:Tt}),jt):(Ke==="circle"||Ke==="dashboard")&&(b=N.createElement(he,Object.assign({},ue,{strokeColor:Yt,prefixCls:At,progressStatus:yt}),jt));const F=_()(At,`${At}-status-${yt}`,`${At}-${Ke==="dashboard"&&"circle"||et&&"steps"||Ke}`,{[`${At}-inline-circle`]:Ke==="circle"&&k(_t,"circle")[0]<=20,[`${At}-show-info`]:ze,[`${At}-${_t}`]:typeof _t=="string",[`${At}-rtl`]:Tt==="rtl"},lt==null?void 0:lt.className,Ae,Qe,Ct);return Lt(N.createElement("div",Object.assign({ref:xe,style:Object.assign(Object.assign({},lt==null?void 0:lt.style),it),className:F,role:"progressbar","aria-valuenow":pt},(0,g.Z)(st,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),b))}),Le=Ne},13570:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return U}});var N=W(54476),G=W(59301),w={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},E=w,O=W(7657),A=function(K,V){return G.createElement(O.Z,(0,N.Z)({},K,{ref:V,icon:E}))},_=G.forwardRef(A),g=_,x=W(92310),m=W.n(x),a=W(20068),u=W(42978),h=W(75931),r=W(18929),n=W(10228),s=W(26112);function d(H,K){var V=H.disabled,k=H.prefixCls,$=H.character,ae=H.characterRender,le=H.index,he=H.count,ge=H.value,me=H.allowHalf,pe=H.focused,Ee=H.onHover,de=H.onClick,ve=function(ee){Ee(ee,le)},ce=function(ee){de(ee,le)},oe=function(ee){ee.keyCode===n.Z.ENTER&&de(ee,le)},X=le+1,ne=new Set([k]);ge===0&&le===0&&pe?ne.add("".concat(k,"-focused")):me&&ge+.5>=X&&gele?"true":"false","aria-posinset":le+1,"aria-setsize":he,tabIndex:V?-1:0},G.createElement("div",{className:"".concat(k,"-first")},j),G.createElement("div",{className:"".concat(k,"-second")},j)));return ae&&(re=ae(re,H)),re}var o=G.forwardRef(d);function c(){var H=G.useRef({});function K(k){return H.current[k]}function V(k){return function($){H.current[k]=$}}return[K,V]}function f(H){var K=H.pageXOffset,V="scrollLeft";if(typeof K!="number"){var k=H.document;K=k.documentElement[V],typeof K!="number"&&(K=k.body[V])}return K}function e(H){var K,V,k=H.ownerDocument,$=k.body,ae=k&&k.documentElement,le=H.getBoundingClientRect();return K=le.left,V=le.top,K-=ae.clientLeft||$.clientLeft||0,V-=ae.clientTop||$.clientTop||0,{left:K,top:V}}function t(H){var K=e(H),V=H.ownerDocument,k=V.defaultView||V.parentWindow;return K.left+=f(k),K.left}var i=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function l(H,K){var V,k=H.prefixCls,$=k===void 0?"rc-rate":k,ae=H.className,le=H.defaultValue,he=H.value,ge=H.count,me=ge===void 0?5:ge,pe=H.allowHalf,Ee=pe===void 0?!1:pe,de=H.allowClear,ve=de===void 0?!0:de,ce=H.character,oe=ce===void 0?"\u2605":ce,X=H.characterRender,ne=H.disabled,j=H.direction,re=j===void 0?"ltr":j,Z=H.tabIndex,ee=Z===void 0?0:Z,se=H.autoFocus,J=H.onHoverChange,ie=H.onChange,fe=H.onFocus,_e=H.onBlur,De=H.onKeyDown,Ie=H.onMouseLeave,Ne=(0,h.Z)(H,i),Le=c(),ue=(0,u.Z)(Le,2),xe=ue[0],be=ue[1],Ae=G.useRef(null),Qe=function(){if(!ne){var Q;(Q=Ae.current)===null||Q===void 0||Q.focus()}};G.useImperativeHandle(K,function(){return{focus:Qe,blur:function(){if(!ne){var Q;(Q=Ae.current)===null||Q===void 0||Q.blur()}}}});var et=(0,r.Z)(le||0,{value:he}),at=(0,u.Z)(et,2),tt=at[0],_t=at[1],ze=(0,r.Z)(null),Ke=(0,u.Z)(ze,2),ke=Ke[0],Rt=Ke[1],it=function(Q,Pe){var ye=re==="rtl",Fe=Q+1;if(Ee){var Je=xe(Q),nt=t(Je),Xe=Je.clientWidth;(ye&&Pe-nt>Xe/2||!ye&&Pe-nt0&&!ye||Pe===n.Z.RIGHT&&Fe>0&&ye?(Ee?Fe-=.5:Fe-=1,st(Fe),Q.preventDefault()):Pe===n.Z.LEFT&&Fe{const{componentCls:K}=H;return{[`${K}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:H.marginXS},"> div":{transition:`all ${H.motionDurationMid}, outline 0s`,"&:hover":{transform:H.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${H.lineWidth}px dashed ${H.starColor}`,transform:H.starHoverScale}},"&-first, &-second":{color:H.starBg,transition:`all ${H.motionDurationMid}`,userSelect:"none",[H.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${K}-star-first, &-half ${K}-star-second`]:{opacity:1},[`&-half ${K}-star-first, &-full ${K}-star-second`]:{color:"inherit"}}}},M=H=>({[`&-rtl${H.componentCls}`]:{direction:"rtl"}}),P=H=>{const{componentCls:K}=H;return{[K]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,S.Wf)(H)),{display:"inline-block",margin:0,padding:0,color:H.starColor,fontSize:H.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${K} ${K}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),I(H)),{[`+ ${K}-text`]:{display:"inline-block",marginInlineStart:H.marginXS,fontSize:H.fontSize}}),M(H))}};var L=(0,T.Z)("Rate",H=>{const K=(0,D.TS)(H,{});return[P(K)]},H=>({starColor:H.yellow6,starSize:H.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:H.colorFillContent})),R=function(H,K){var V={};for(var k in H)Object.prototype.hasOwnProperty.call(H,k)&&K.indexOf(k)<0&&(V[k]=H[k]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,k=Object.getOwnPropertySymbols(H);${const{prefixCls:V,className:k,rootClassName:$,style:ae,tooltips:le,character:he=G.createElement(g,null)}=H,ge=R(H,["prefixCls","className","rootClassName","style","tooltips","character"]),me=(ne,j)=>{let{index:re}=j;return le?G.createElement(C.Z,{title:le[re]},ne):ne},{getPrefixCls:pe,direction:Ee,rate:de}=G.useContext(p.E_),ve=pe("rate",V),[ce,oe]=L(ve),X=Object.assign(Object.assign({},de==null?void 0:de.style),ae);return ce(G.createElement(y,Object.assign({ref:K,character:he,characterRender:me},ge,{className:m()(k,$,oe,de==null?void 0:de.className),style:X,prefixCls:ve,direction:Ee})))})},57809:function(ft,Me,W){"use strict";var N=W(92310),G=W.n(N),w=W(77861),E=W(2738),O=W(59301),A=W(53487),_=W(62892),g=W(19080),x=W(36355),m=W(1684),a=W(93891),u=W(19716),h=W(32441),r=W(33234),n=W(14154),s=W(58582),d=W(84443),o=W(66339),c=function(l,v){var y={};for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&v.indexOf(p)<0&&(y[p]=l[p]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,p=Object.getOwnPropertySymbols(l);C{var y,{prefixCls:p,bordered:C=!0,className:S,rootClassName:T,getPopupContainer:D,popupClassName:I,dropdownClassName:M,listHeight:P=256,placement:L,listItemHeight:R=24,size:B,disabled:U,notFoundContent:H,status:K,builtinPlacements:V,dropdownMatchSelectWidth:k,popupMatchSelectWidth:$,direction:ae,style:le,allowClear:he}=l,ge=c(l,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:me,getPrefixCls:pe,renderEmpty:Ee,direction:de,virtual:ve,popupMatchSelectWidth:ce,popupOverflow:oe,select:X}=O.useContext(x.E_),ne=pe("select",p),j=pe(),re=ae!=null?ae:de,{compactSize:Z,compactItemClassnames:ee}=(0,r.ri)(ne,re),[se,J]=(0,n.Z)(ne),ie=O.useMemo(()=>{const{mode:yt}=ge;if(yt!=="combobox")return yt===f?"combobox":yt},[ge.mode]),fe=ie==="multiple"||ie==="tags",_e=(0,d.Z)(ge.suffixIcon,ge.showArrow),De=(y=$!=null?$:k)!==null&&y!==void 0?y:ce,{status:Ie,hasFeedback:Ne,isFormItemInput:Le,feedbackIcon:ue}=O.useContext(h.aM),xe=(0,g.F)(Ie,K);let be;H!==void 0?be=H:ie==="combobox"?be=null:be=(Ee==null?void 0:Ee("Select"))||O.createElement(a.Z,{componentName:"Select"});const{suffixIcon:Ae,itemIcon:Qe,removeIcon:et,clearIcon:at}=(0,o.Z)(Object.assign(Object.assign({},ge),{multiple:fe,hasFeedback:Ne,feedbackIcon:ue,showSuffixIcon:_e,prefixCls:ne,showArrow:ge.showArrow,componentName:"Select"})),tt=he===!0?{clearIcon:at}:he,_t=(0,E.Z)(ge,["suffixIcon","itemIcon"]),ze=G()(I||M,{[`${ne}-dropdown-${re}`]:re==="rtl"},T,J),Ke=(0,u.Z)(yt=>{var mt;return(mt=B!=null?B:Z)!==null&&mt!==void 0?mt:yt}),ke=O.useContext(m.Z),Rt=U!=null?U:ke,it=G()({[`${ne}-lg`]:Ke==="large",[`${ne}-sm`]:Ke==="small",[`${ne}-rtl`]:re==="rtl",[`${ne}-borderless`]:!C,[`${ne}-in-form-item`]:Le},(0,g.Z)(ne,xe,Ne),ee,X==null?void 0:X.className,S,T,J),st=O.useMemo(()=>L!==void 0?L:re==="rtl"?"bottomRight":"bottomLeft",[L,re]),pt=(0,s.Z)(V,oe);return se(O.createElement(w.ZP,Object.assign({ref:v,virtual:ve,showSearch:X==null?void 0:X.showSearch},_t,{style:Object.assign(Object.assign({},X==null?void 0:X.style),le),dropdownMatchSelectWidth:De,builtinPlacements:pt,transitionName:(0,_.m)(j,"slide-up",ge.transitionName),listHeight:P,listItemHeight:R,mode:ie,prefixCls:ne,placement:st,direction:re,suffixIcon:Ae,menuItemSelectedIcon:Qe,removeIcon:et,allowClear:tt,notFoundContent:be,className:it,getPopupContainer:D||me,dropdownClassName:ze,disabled:Rt})))},t=O.forwardRef(e),i=(0,A.Z)(t);t.SECRET_COMBOBOX_MODE_DO_NOT_USE=f,t.Option=w.Wx,t.OptGroup=w.Xo,t._InternalPanelDoNotUseOrYouWillBeFired=i,Me.default=t},14154:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return t}});var N=W(17313),G=W(74207),w=W(37613),E=W(83116),O=W(13826),A=W(92899);const _=i=>{const{optionHeight:l,optionFontSize:v,optionLineHeight:y,optionPadding:p}=i;return{position:"relative",display:"block",minHeight:l,padding:p,color:i.colorText,fontWeight:"normal",fontSize:v,lineHeight:y,boxSizing:"border-box"}};var x=i=>{const{antCls:l,componentCls:v}=i,y=`${v}-item`,p=`&${l}-slide-up-enter${l}-slide-up-enter-active`,C=`&${l}-slide-up-appear${l}-slide-up-appear-active`,S=`&${l}-slide-up-leave${l}-slide-up-leave-active`,T=`${v}-dropdown-placement-`;return[{[`${v}-dropdown`]:Object.assign(Object.assign({},(0,N.Wf)(i)),{position:"absolute",top:-9999,zIndex:i.zIndexPopup,boxSizing:"border-box",padding:i.paddingXXS,overflow:"hidden",fontSize:i.fontSize,fontVariant:"initial",backgroundColor:i.colorBgElevated,borderRadius:i.borderRadiusLG,outline:"none",boxShadow:i.boxShadowSecondary,[` ${p}${T}bottomLeft, ${C}${T}bottomLeft `]:{animationName:O.fJ},[` ${p}${T}topLeft, ${C}${T}topLeft, ${p}${T}topRight, ${C}${T}topRight `]:{animationName:O.Qt},[`${S}${T}bottomLeft`]:{animationName:O.Uw},[` ${S}${T}topLeft, ${S}${T}topRight `]:{animationName:O.ly},"&-hidden":{display:"none"},[`${y}`]:Object.assign(Object.assign({},_(i)),{cursor:"pointer",transition:`background ${i.motionDurationSlow} ease`,borderRadius:i.borderRadiusSM,"&-group":{color:i.colorTextDescription,fontSize:i.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},N.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${y}-option-disabled)`]:{backgroundColor:i.optionActiveBg},[`&-selected:not(${y}-option-disabled)`]:{color:i.optionSelectedColor,fontWeight:i.optionSelectedFontWeight,backgroundColor:i.optionSelectedBg,[`${y}-option-state`]:{color:i.colorPrimary}},"&-disabled":{[`&${y}-option-selected`]:{backgroundColor:i.colorBgContainerDisabled},color:i.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:i.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,O.oN)(i,"slide-up"),(0,O.oN)(i,"slide-down"),(0,A.Fm)(i,"move-up"),(0,A.Fm)(i,"move-down")]};const m=2,a=i=>{let{controlHeightSM:l,controlHeight:v,lineWidth:y}=i;const p=(v-l)/2-y,C=Math.ceil(p/2);return[p,C]};function u(i,l){const{componentCls:v,iconCls:y}=i,p=`${v}-selection-overflow`,C=i.multipleSelectItemHeight,[S]=a(i),T=l?`${v}-${l}`:"";return{[`${v}-multiple${T}`]:{fontSize:i.fontSize,[p]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${v}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${S-m}px ${m*2}px`,borderRadius:i.borderRadius,[`${v}-show-search&`]:{cursor:"text"},[`${v}-disabled&`]:{background:i.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${m}px 0`,lineHeight:`${C}px`,visibility:"hidden",content:'"\\a0"'}},[` &${v}-show-arrow ${v}-selector, &${v}-allow-clear ${v}-selector `]:{paddingInlineEnd:i.fontSizeIcon+i.controlPaddingHorizontal},[`${v}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:C,marginTop:m,marginBottom:m,lineHeight:`${C-i.lineWidth*2}px`,background:i.multipleItemBg,border:`${i.lineWidth}px ${i.lineType} ${i.multipleItemBorderColor}`,borderRadius:i.borderRadiusSM,cursor:"default",transition:`font-size ${i.motionDurationSlow}, line-height ${i.motionDurationSlow}, height ${i.motionDurationSlow}`,userSelect:"none",marginInlineEnd:m*2,paddingInlineStart:i.paddingXS,paddingInlineEnd:i.paddingXS/2,[`${v}-disabled&`]:{color:i.multipleItemColorDisabled,borderColor:i.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:i.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,N.Ro)()),{display:"inline-flex",alignItems:"center",color:i.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${y}`]:{verticalAlign:"-0.2em"},"&:hover":{color:i.colorIconHover}})},[`${p}-item + ${p}-item`]:{[`${v}-selection-search`]:{marginInlineStart:0}},[`${v}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:i.inputPaddingHorizontalBase-S,"\n &-input,\n &-mirror\n ":{height:C,fontFamily:i.fontFamily,lineHeight:`${C}px`,transition:`all ${i.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${v}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:i.inputPaddingHorizontalBase,insetInlineEnd:i.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${i.motionDurationSlow}`}}}}var r=i=>{const{componentCls:l}=i,v=(0,w.TS)(i,{controlHeight:i.controlHeightSM,multipleSelectItemHeight:i.controlHeightXS,borderRadius:i.borderRadiusSM,borderRadiusSM:i.borderRadiusXS}),y=(0,w.TS)(i,{fontSize:i.fontSizeLG,controlHeight:i.controlHeightLG,multipleSelectItemHeight:i.multipleItemHeightLG,borderRadius:i.borderRadiusLG,borderRadiusSM:i.borderRadius}),[,p]=a(i);return[u(i),u(v,"sm"),{[`${l}-multiple${l}-sm`]:{[`${l}-selection-placeholder`]:{insetInline:i.controlPaddingHorizontalSM-i.lineWidth},[`${l}-selection-search`]:{marginInlineStart:p}}},u(y,"lg")]};function n(i,l){const{componentCls:v,inputPaddingHorizontalBase:y,borderRadius:p}=i,C=i.controlHeight-i.lineWidth*2,S=Math.ceil(i.fontSize*1.25),T=l?`${v}-${l}`:"";return{[`${v}-single${T}`]:{fontSize:i.fontSize,[`${v}-selector`]:Object.assign(Object.assign({},(0,N.Wf)(i)),{display:"flex",borderRadius:p,[`${v}-selection-search`]:{position:"absolute",top:0,insetInlineStart:y,insetInlineEnd:y,bottom:0,"&-input":{width:"100%"}},[` ${v}-selection-item, ${v}-selection-placeholder `]:{padding:0,lineHeight:`${C}px`,transition:`all ${i.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${C}px`}},[`${v}-selection-item`]:{position:"relative",userSelect:"none"},[`${v}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${v}-selection-item:after`,`${v}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${v}-show-arrow ${v}-selection-item, &${v}-show-arrow ${v}-selection-placeholder `]:{paddingInlineEnd:S},[`&${v}-open ${v}-selection-item`]:{color:i.colorTextPlaceholder},[`&:not(${v}-customize-input)`]:{[`${v}-selector`]:{width:"100%",height:i.controlHeight,padding:`0 ${y}px`,[`${v}-selection-search-input`]:{height:C},"&:after":{lineHeight:`${C}px`}}},[`&${v}-customize-input`]:{[`${v}-selector`]:{"&:after":{display:"none"},[`${v}-selection-search`]:{position:"static",width:"100%"},[`${v}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${y}px`,"&:after":{display:"none"}}}}}}}function s(i){const{componentCls:l}=i,v=i.controlPaddingHorizontalSM-i.lineWidth;return[n(i),n((0,w.TS)(i,{controlHeight:i.controlHeightSM,borderRadius:i.borderRadiusSM}),"sm"),{[`${l}-single${l}-sm`]:{[`&:not(${l}-customize-input)`]:{[`${l}-selection-search`]:{insetInlineStart:v,insetInlineEnd:v},[`${l}-selector`]:{padding:`0 ${v}px`},[`&${l}-show-arrow ${l}-selection-search`]:{insetInlineEnd:v+i.fontSize*1.5},[` &${l}-show-arrow ${l}-selection-item, &${l}-show-arrow ${l}-selection-placeholder `]:{paddingInlineEnd:i.fontSize*1.5}}}},n((0,w.TS)(i,{controlHeight:i.singleItemHeightLG,fontSize:i.fontSizeLG,borderRadius:i.borderRadiusLG}),"lg")]}const d=i=>{const{componentCls:l,selectorBg:v}=i;return{position:"relative",backgroundColor:v,border:`${i.lineWidth}px ${i.lineType} ${i.colorBorder}`,transition:`all ${i.motionDurationMid} ${i.motionEaseInOut}`,input:{cursor:"pointer"},[`${l}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${l}-disabled&`]:{color:i.colorTextDisabled,background:i.colorBgContainerDisabled,cursor:"not-allowed",[`${l}-multiple&`]:{background:i.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},o=function(i,l){let v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:y,borderHoverColor:p,outlineColor:C,antCls:S}=l,T=v?{[`${y}-selector`]:{borderColor:p}}:{};return{[i]:{[`&:not(${y}-disabled):not(${y}-customize-input):not(${S}-pagination-size-changer)`]:Object.assign(Object.assign({},T),{[`${y}-focused& ${y}-selector`]:{borderColor:p,boxShadow:`0 0 0 ${l.controlOutlineWidth}px ${C}`,outline:0},[`&:hover ${y}-selector`]:{borderColor:p}})}}},c=i=>{const{componentCls:l}=i;return{[`${l}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},f=i=>{const{componentCls:l,inputPaddingHorizontalBase:v,iconCls:y}=i;return{[l]:Object.assign(Object.assign({},(0,N.Wf)(i)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${l}-customize-input) ${l}-selector`]:Object.assign(Object.assign({},d(i)),c(i)),[`${l}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},N.vS),[`${l}-selection-placeholder`]:Object.assign(Object.assign({},N.vS),{flex:1,color:i.colorTextPlaceholder,pointerEvents:"none"}),[`${l}-arrow`]:Object.assign(Object.assign({},(0,N.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:v,height:i.fontSizeIcon,marginTop:-i.fontSizeIcon/2,color:i.colorTextQuaternary,fontSize:i.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[y]:{verticalAlign:"top",transition:`transform ${i.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${l}-suffix)`]:{pointerEvents:"auto"}},[`${l}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${l}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:v,zIndex:1,display:"inline-block",width:i.fontSizeIcon,height:i.fontSizeIcon,marginTop:-i.fontSizeIcon/2,color:i.colorTextQuaternary,fontSize:i.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:i.clearBg,cursor:"pointer",opacity:0,transition:`color ${i.motionDurationMid} ease, opacity ${i.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:i.colorTextTertiary}},"&:hover":{[`${l}-clear`]:{opacity:1}}}),[`${l}-has-feedback`]:{[`${l}-clear`]:{insetInlineEnd:v+i.fontSize+i.paddingXS}}}},e=i=>{const{componentCls:l}=i;return[{[l]:{[`&-borderless ${l}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${l}-in-form-item`]:{width:"100%"}}},f(i),s(i),r(i),x(i),{[`${l}-rtl`]:{direction:"rtl"}},o(l,(0,w.TS)(i,{borderHoverColor:i.colorPrimaryHover,outlineColor:i.controlOutline})),o(`${l}-status-error`,(0,w.TS)(i,{borderHoverColor:i.colorErrorHover,outlineColor:i.colorErrorOutline}),!0),o(`${l}-status-warning`,(0,w.TS)(i,{borderHoverColor:i.colorWarningHover,outlineColor:i.colorWarningOutline}),!0),(0,G.c)(i,{borderElCls:`${l}-selector`,focusElCls:`${l}-focused`})]};var t=(0,E.Z)("Select",(i,l)=>{let{rootPrefixCls:v}=l;const y=(0,w.TS)(i,{rootPrefixCls:v,inputPaddingHorizontalBase:i.paddingSM-1,multipleSelectItemHeight:i.multipleItemHeight});return[e(y)]},i=>{const{fontSize:l,lineHeight:v,controlHeight:y,controlPaddingHorizontal:p,zIndexPopupBase:C,colorText:S,fontWeightStrong:T,controlItemBgActive:D,controlItemBgHover:I,colorBgContainer:M,colorFillSecondary:P,controlHeightLG:L,controlHeightSM:R,colorBgContainerDisabled:B,colorTextDisabled:U}=i;return{zIndexPopup:C+50,optionSelectedColor:S,optionSelectedFontWeight:T,optionSelectedBg:D,optionActiveBg:I,optionPadding:`${(y-l*v)/2}px ${p}px`,optionFontSize:l,optionLineHeight:v,optionHeight:y,selectorBg:M,clearBg:M,singleItemHeightLG:L,multipleItemBg:P,multipleItemBorderColor:"transparent",multipleItemHeight:R,multipleItemHeightLG:y,multipleSelectorBgDisabled:B,multipleItemColorDisabled:U,multipleItemBorderColorDisabled:"transparent"}})},58582:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return G}});const N=w=>{const O={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:w==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},O),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},O),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},O),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},O),{points:["br","tr"],offset:[0,-4]})}};function G(w,E){return w||N(E)}},84443:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return N}});function N(G,w){return w!==void 0?w:G!==null}},66339:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return g}});var N=W(40001),G=W(19248),w=W(99267),E=W(84105),O=W(58617),A=W(47472),_=W(59301);function g(x){let{suffixIcon:m,clearIcon:a,menuItemSelectedIcon:u,removeIcon:h,loading:r,multiple:n,hasFeedback:s,prefixCls:d,showSuffixIcon:o,feedbackIcon:c,showArrow:f,componentName:e}=x;const t=a!=null?a:_.createElement(G.Z,null),i=p=>m===null&&!s&&!f?null:_.createElement(_.Fragment,null,o!==!1&&p,s&&c);let l=null;if(m!==void 0)l=i(m);else if(r)l=i(_.createElement(O.Z,{spin:!0}));else{const p=`${d}-suffix`;l=C=>{let{open:S,showSearch:T}=C;return i(S&&T?_.createElement(A.Z,{className:p}):_.createElement(E.Z,{className:p}))}}let v=null;u!==void 0?v=u:n?v=_.createElement(N.Z,null):v=null;let y=null;return h!==void 0?y=h:y=_.createElement(w.Z,null),{clearIcon:t,suffixIcon:l,itemIcon:v,removeIcon:y}}},61621:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return oe}});var N=W(92310),G=W.n(N),w=W(59301),E=W(36355),O=W(2738),_=X=>{const{prefixCls:ne,className:j,style:re,size:Z,shape:ee}=X,se=G()({[`${ne}-lg`]:Z==="large",[`${ne}-sm`]:Z==="small"}),J=G()({[`${ne}-circle`]:ee==="circle",[`${ne}-square`]:ee==="square",[`${ne}-round`]:ee==="round"}),ie=w.useMemo(()=>typeof Z=="number"?{width:Z,height:Z,lineHeight:`${Z}px`}:{},[Z]);return w.createElement("span",{className:G()(ne,se,J,j),style:Object.assign(Object.assign({},ie),re)})},g=W(36237),x=W(83116),m=W(37613);const a=new g.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),u=X=>({height:X,lineHeight:`${X}px`}),h=X=>Object.assign({width:X},u(X)),r=X=>({background:X.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:a,animationDuration:X.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),n=X=>Object.assign({width:X*5,minWidth:X*5},u(X)),s=X=>{const{skeletonAvatarCls:ne,gradientFromColor:j,controlHeight:re,controlHeightLG:Z,controlHeightSM:ee}=X;return{[`${ne}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:j},h(re)),[`${ne}${ne}-circle`]:{borderRadius:"50%"},[`${ne}${ne}-lg`]:Object.assign({},h(Z)),[`${ne}${ne}-sm`]:Object.assign({},h(ee))}},d=X=>{const{controlHeight:ne,borderRadiusSM:j,skeletonInputCls:re,controlHeightLG:Z,controlHeightSM:ee,gradientFromColor:se}=X;return{[`${re}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:se,borderRadius:j},n(ne)),[`${re}-lg`]:Object.assign({},n(Z)),[`${re}-sm`]:Object.assign({},n(ee))}},o=X=>Object.assign({width:X},u(X)),c=X=>{const{skeletonImageCls:ne,imageSizeBase:j,gradientFromColor:re,borderRadiusSM:Z}=X;return{[`${ne}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:re,borderRadius:Z},o(j*2)),{[`${ne}-path`]:{fill:"#bfbfbf"},[`${ne}-svg`]:Object.assign(Object.assign({},o(j)),{maxWidth:j*4,maxHeight:j*4}),[`${ne}-svg${ne}-svg-circle`]:{borderRadius:"50%"}}),[`${ne}${ne}-circle`]:{borderRadius:"50%"}}},f=(X,ne,j)=>{const{skeletonButtonCls:re}=X;return{[`${j}${re}-circle`]:{width:ne,minWidth:ne,borderRadius:"50%"},[`${j}${re}-round`]:{borderRadius:ne}}},e=X=>Object.assign({width:X*2,minWidth:X*2},u(X)),t=X=>{const{borderRadiusSM:ne,skeletonButtonCls:j,controlHeight:re,controlHeightLG:Z,controlHeightSM:ee,gradientFromColor:se}=X;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${j}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:se,borderRadius:ne,width:re*2,minWidth:re*2},e(re))},f(X,re,j)),{[`${j}-lg`]:Object.assign({},e(Z))}),f(X,Z,`${j}-lg`)),{[`${j}-sm`]:Object.assign({},e(ee))}),f(X,ee,`${j}-sm`))},i=X=>{const{componentCls:ne,skeletonAvatarCls:j,skeletonTitleCls:re,skeletonParagraphCls:Z,skeletonButtonCls:ee,skeletonInputCls:se,skeletonImageCls:J,controlHeight:ie,controlHeightLG:fe,controlHeightSM:_e,gradientFromColor:De,padding:Ie,marginSM:Ne,borderRadius:Le,titleHeight:ue,blockRadius:xe,paragraphLiHeight:be,controlHeightXS:Ae,paragraphMarginTop:Qe}=X;return{[`${ne}`]:{display:"table",width:"100%",[`${ne}-header`]:{display:"table-cell",paddingInlineEnd:Ie,verticalAlign:"top",[`${j}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:De},h(ie)),[`${j}-circle`]:{borderRadius:"50%"},[`${j}-lg`]:Object.assign({},h(fe)),[`${j}-sm`]:Object.assign({},h(_e))},[`${ne}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${re}`]:{width:"100%",height:ue,background:De,borderRadius:xe,[`+ ${Z}`]:{marginBlockStart:_e}},[`${Z}`]:{padding:0,"> li":{width:"100%",height:be,listStyle:"none",background:De,borderRadius:xe,"+ li":{marginBlockStart:Ae}}},[`${Z}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${ne}-content`]:{[`${re}, ${Z} > li`]:{borderRadius:Le}}},[`${ne}-with-avatar ${ne}-content`]:{[`${re}`]:{marginBlockStart:Ne,[`+ ${Z}`]:{marginBlockStart:Qe}}},[`${ne}${ne}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},t(X)),s(X)),d(X)),c(X)),[`${ne}${ne}-block`]:{width:"100%",[`${ee}`]:{width:"100%"},[`${se}`]:{width:"100%"}},[`${ne}${ne}-active`]:{[` ${re}, ${Z} > li, ${j}, ${ee}, ${se}, ${J} `]:Object.assign({},r(X))}}};var l=(0,x.Z)("Skeleton",X=>{const{componentCls:ne}=X,j=(0,m.TS)(X,{skeletonAvatarCls:`${ne}-avatar`,skeletonTitleCls:`${ne}-title`,skeletonParagraphCls:`${ne}-paragraph`,skeletonButtonCls:`${ne}-button`,skeletonInputCls:`${ne}-input`,skeletonImageCls:`${ne}-image`,imageSizeBase:X.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${X.gradientFromColor} 25%, ${X.gradientToColor} 37%, ${X.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[i(j)]},X=>{const{colorFillContent:ne,colorFill:j}=X,re=ne,Z=j;return{color:re,colorGradientEnd:Z,gradientFromColor:re,gradientToColor:Z,titleHeight:X.controlHeight/2,blockRadius:X.borderRadiusSM,paragraphMarginTop:X.marginLG+X.marginXXS,paragraphLiHeight:X.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),y=X=>{const{prefixCls:ne,className:j,rootClassName:re,active:Z,shape:ee="circle",size:se="default"}=X,{getPrefixCls:J}=w.useContext(E.E_),ie=J("skeleton",ne),[fe,_e]=l(ie),De=(0,O.Z)(X,["prefixCls","className"]),Ie=G()(ie,`${ie}-element`,{[`${ie}-active`]:Z},j,re,_e);return fe(w.createElement("div",{className:Ie},w.createElement(_,Object.assign({prefixCls:`${ie}-avatar`,shape:ee,size:se},De))))},C=X=>{const{prefixCls:ne,className:j,rootClassName:re,active:Z,block:ee=!1,size:se="default"}=X,{getPrefixCls:J}=w.useContext(E.E_),ie=J("skeleton",ne),[fe,_e]=l(ie),De=(0,O.Z)(X,["prefixCls"]),Ie=G()(ie,`${ie}-element`,{[`${ie}-active`]:Z,[`${ie}-block`]:ee},j,re,_e);return fe(w.createElement("div",{className:Ie},w.createElement(_,Object.assign({prefixCls:`${ie}-button`,size:se},De))))};const S="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 D=X=>{const{prefixCls:ne,className:j,rootClassName:re,style:Z,active:ee}=X,{getPrefixCls:se}=w.useContext(E.E_),J=se("skeleton",ne),[ie,fe]=l(J),_e=G()(J,`${J}-element`,{[`${J}-active`]:ee},j,re,fe);return ie(w.createElement("div",{className:_e},w.createElement("div",{className:G()(`${J}-image`,j),style:Z},w.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${J}-image-svg`},w.createElement("path",{d:S,className:`${J}-image-path`})))))},M=X=>{const{prefixCls:ne,className:j,rootClassName:re,active:Z,block:ee,size:se="default"}=X,{getPrefixCls:J}=w.useContext(E.E_),ie=J("skeleton",ne),[fe,_e]=l(ie),De=(0,O.Z)(X,["prefixCls"]),Ie=G()(ie,`${ie}-element`,{[`${ie}-active`]:Z,[`${ie}-block`]:ee},j,re,_e);return fe(w.createElement("div",{className:Ie},w.createElement(_,Object.assign({prefixCls:`${ie}-input`,size:se},De))))},P=W(54476),L={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"},R=L,B=W(7657),U=function(ne,j){return w.createElement(B.Z,(0,P.Z)({},ne,{ref:j,icon:R}))},H=w.forwardRef(U),K=H,k=X=>{const{prefixCls:ne,className:j,rootClassName:re,style:Z,active:ee,children:se}=X,{getPrefixCls:J}=w.useContext(E.E_),ie=J("skeleton",ne),[fe,_e]=l(ie),De=G()(ie,`${ie}-element`,{[`${ie}-active`]:ee},_e,j,re),Ie=se!=null?se:w.createElement(K,null);return fe(w.createElement("div",{className:De},w.createElement("div",{className:G()(`${ie}-image`,j),style:Z},Ie)))},$=W(94480),le=X=>{const ne=J=>{const{width:ie,rows:fe=2}=X;if(Array.isArray(ie))return ie[J];if(fe-1===J)return ie},{prefixCls:j,className:re,style:Z,rows:ee}=X,se=(0,$.Z)(Array(ee)).map((J,ie)=>w.createElement("li",{key:ie,style:{width:ne(ie)}}));return w.createElement("ul",{className:G()(j,re),style:Z},se)},ge=X=>{let{prefixCls:ne,className:j,width:re,style:Z}=X;return w.createElement("h3",{className:G()(ne,j),style:Object.assign({width:re},Z)})};function me(X){return X&&typeof X=="object"?X:{}}function pe(X,ne){return X&&!ne?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ee(X,ne){return!X&&ne?{width:"38%"}:X&&ne?{width:"50%"}:{}}function de(X,ne){const j={};return(!X||!ne)&&(j.width="61%"),!X&&ne?j.rows=3:j.rows=2,j}const ve=X=>{const{prefixCls:ne,loading:j,className:re,rootClassName:Z,style:ee,children:se,avatar:J=!1,title:ie=!0,paragraph:fe=!0,active:_e,round:De}=X,{getPrefixCls:Ie,direction:Ne,skeleton:Le}=w.useContext(E.E_),ue=Ie("skeleton",ne),[xe,be]=l(ue);if(j||!("loading"in X)){const Ae=!!J,Qe=!!ie,et=!!fe;let at;if(Ae){const ze=Object.assign(Object.assign({prefixCls:`${ue}-avatar`},pe(Qe,et)),me(J));at=w.createElement("div",{className:`${ue}-header`},w.createElement(_,Object.assign({},ze)))}let tt;if(Qe||et){let ze;if(Qe){const ke=Object.assign(Object.assign({prefixCls:`${ue}-title`},Ee(Ae,et)),me(ie));ze=w.createElement(ge,Object.assign({},ke))}let Ke;if(et){const ke=Object.assign(Object.assign({prefixCls:`${ue}-paragraph`},de(Ae,Qe)),me(fe));Ke=w.createElement(le,Object.assign({},ke))}tt=w.createElement("div",{className:`${ue}-content`},ze,Ke)}const _t=G()(ue,{[`${ue}-with-avatar`]:Ae,[`${ue}-active`]:_e,[`${ue}-rtl`]:Ne==="rtl",[`${ue}-round`]:De},Le==null?void 0:Le.className,re,Z,be);return xe(w.createElement("div",{className:_t,style:Object.assign(Object.assign({},Le==null?void 0:Le.style),ee)},at,tt))}return typeof se!="undefined"?se:null};ve.Button=C,ve.Avatar=y,ve.Input=M,ve.Image=D,ve.Node=k;var ce=ve,oe=ce},81327:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return d}});var N=W(59301),G=W(92310),w=W.n(G),E=W(11592),O=W(36355),A=W(33234);const _=N.createContext({latestIndex:0}),g=_.Provider;var m=o=>{let{className:c,index:f,children:e,split:t,style:i}=o;const{latestIndex:l}=N.useContext(_);return e==null?null:N.createElement(N.Fragment,null,N.createElement("div",{className:c,style:i},e),f{var f,e;const{getPrefixCls:t,space:i,direction:l}=N.useContext(O.E_),{size:v=(i==null?void 0:i.size)||"small",align:y,className:p,rootClassName:C,children:S,direction:T="horizontal",prefixCls:D,split:I,style:M,wrap:P=!1,classNames:L,styles:R}=o,B=r(o,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[U,H]=Array.isArray(v)?v:[v,v],K=u(H),V=u(U),k=h(H),$=h(U),ae=(0,E.Z)(S,{keepEmpty:!0}),le=y===void 0&&T==="horizontal"?"center":y,he=t("space",D),[ge,me]=(0,a.Z)(he),pe=w()(he,i==null?void 0:i.className,me,`${he}-${T}`,{[`${he}-rtl`]:l==="rtl",[`${he}-align-${le}`]:le,[`${he}-gap-row-${H}`]:K,[`${he}-gap-col-${U}`]:V},p,C),Ee=w()(`${he}-item`,(f=L==null?void 0:L.item)!==null&&f!==void 0?f:(e=i==null?void 0:i.classNames)===null||e===void 0?void 0:e.item);let de=0;const ve=ae.map((X,ne)=>{var j,re;X!=null&&(de=ne);const Z=X&&X.key||`${Ee}-${ne}`;return N.createElement(m,{className:Ee,key:Z,index:ne,split:I,style:(j=R==null?void 0:R.item)!==null&&j!==void 0?j:(re=i==null?void 0:i.styles)===null||re===void 0?void 0:re.item},X)}),ce=N.useMemo(()=>({latestIndex:de}),[de]);if(ae.length===0)return null;const oe={};return P&&(oe.flexWrap="wrap"),!V&&$&&(oe.columnGap=U),!K&&k&&(oe.rowGap=H),ge(N.createElement("div",Object.assign({ref:c,className:pe,style:Object.assign(Object.assign(Object.assign({},oe),i==null?void 0:i.style),M)},B),N.createElement(g,{value:ce},ve)))});s.Compact=A.ZP;var d=s},31797:function(ft,Me,W){"use strict";W.d(Me,{default:function(){return l}});var N=W(59301),G=W(56762),w=W(92343),E=W(92310),O=W.n(E),A=W(36355),_=W(61621),x=v=>{const{value:y,formatter:p,precision:C,decimalSeparator:S,groupSeparator:T="",prefixCls:D}=v;let I;if(typeof p=="function")I=p(y);else{const M=String(y),P=M.match(/^(-?)(\d*)(\.(\d+))?$/);if(!P||M==="-")I=M;else{const L=P[1];let R=P[2]||"0",B=P[4]||"";R=R.replace(/\B(?=(\d{3})+(?!\d))/g,T),typeof C=="number"&&(B=B.padEnd(C,"0").slice(0,C>0?C:0)),B&&(B=`${S}${B}`),I=[N.createElement("span",{key:"int",className:`${D}-content-value-int`},L,R),B&&N.createElement("span",{key:"decimal",className:`${D}-content-value-decimal`},B)]}}return N.createElement("span",{className:`${D}-content-value`},I)},m=W(17313),a=W(83116),u=W(37613);const h=v=>{const{componentCls:y,marginXXS:p,padding:C,colorTextDescription:S,titleFontSize:T,colorTextHeading:D,contentFontSize:I,fontFamily:M}=v;return{[`${y}`]:Object.assign(Object.assign({},(0,m.Wf)(v)),{[`${y}-title`]:{marginBottom:p,color:S,fontSize:T},[`${y}-skeleton`]:{paddingTop:C},[`${y}-content`]:{color:D,fontSize:I,fontFamily:M,[`${y}-content-value`]:{display:"inline-block",direction:"ltr"},[`${y}-content-prefix, ${y}-content-suffix`]:{display:"inline-block"},[`${y}-content-prefix`]:{marginInlineEnd:p},[`${y}-content-suffix`]:{marginInlineStart:p}}})}};var r=(0,a.Z)("Statistic",v=>{const y=(0,u.TS)(v,{});return[h(y)]},v=>{const{fontSizeHeading3:y,fontSize:p}=v;return{titleFontSize:p,contentFontSize:y}}),s=v=>{const{prefixCls:y,className:p,rootClassName:C,style:S,valueStyle:T,value:D=0,title:I,valueRender:M,prefix:P,suffix:L,loading:R=!1,onMouseEnter:B,onMouseLeave:U,decimalSeparator:H=".",groupSeparator:K=","}=v,{getPrefixCls:V,direction:k,statistic:$}=N.useContext(A.E_),ae=V("statistic",y),[le,he]=r(ae),ge=N.createElement(x,Object.assign({decimalSeparator:H,groupSeparator:K,prefixCls:ae},v,{value:D})),me=O()(ae,{[`${ae}-rtl`]:k==="rtl"},$==null?void 0:$.className,p,C,he);return le(N.createElement("div",{className:me,style:Object.assign(Object.assign({},$==null?void 0:$.style),S),onMouseEnter:B,onMouseLeave:U},I&&N.createElement("div",{className:`${ae}-title`},I),N.createElement(_.Z,{paragraph:!1,loading:R,className:`${ae}-skeleton`},N.createElement("div",{style:T,className:`${ae}-content`},P&&N.createElement("span",{className:`${ae}-content-prefix`},P),M?M(ge):ge,L&&N.createElement("span",{className:`${ae}-content-suffix`},L)))))};const d=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function o(v,y){let p=v;const C=/\[[^\]]*]/g,S=(y.match(C)||[]).map(M=>M.slice(1,-1)),T=y.replace(C,"[]"),D=d.reduce((M,P)=>{let[L,R]=P;if(M.includes(L)){const B=Math.floor(p/R);return p-=B*R,M.replace(new RegExp(`${L}+`,"g"),U=>{const H=U.length;return B.toString().padStart(H,"0")})}return M},T);let I=0;return D.replace(C,()=>{const M=S[I];return I+=1,M})}function c(v,y){const{format:p=""}=y,C=new Date(v).getTime(),S=Date.now(),T=Math.max(C-S,0);return o(T,p)}const f=1e3/30;function e(v){return new Date(v).getTime()}const t=v=>{const{value:y,format:p="HH:mm:ss",onChange:C,onFinish:S}=v,T=(0,G.Z)(),D=N.useRef(null),I=()=>{S==null||S(),D.current&&(clearInterval(D.current),D.current=null)},M=()=>{const R=e(y);R>=Date.now()&&(D.current=setInterval(()=>{T(),C==null||C(R-Date.now()),R(M(),()=>{D.current&&(clearInterval(D.current),D.current=null)}),[y]);const P=(R,B)=>c(R,Object.assign(Object.assign({},B),{format:p})),L=R=>(0,w.Tm)(R,{title:void 0});return N.createElement(s,Object.assign({},v,{valueRender:L,formatter:P}))};var i=N.memo(t);s.Countdown=i;var l=s},8378:function(ft,Me){"use strict";const W=N=>({[N.componentCls]:{[`${N.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${N.motionDurationMid} ${N.motionEaseInOut}, opacity ${N.motionDurationMid} ${N.motionEaseInOut} !important`}},[`${N.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${N.motionDurationMid} ${N.motionEaseInOut}, opacity ${N.motionDurationMid} ${N.motionEaseInOut} !important`}}});Me.Z=W},92899:function(ft,Me,W){"use strict";W.d(Me,{Fm:function(){return u}});var N=W(36237),G=W(95406);const w=new N.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),E=new N.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),O=new N.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),A=new N.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),_=new N.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 N.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),x=new N.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),m=new N.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),a={"move-up":{inKeyframes:x,outKeyframes:m},"move-down":{inKeyframes:w,outKeyframes:E},"move-left":{inKeyframes:O,outKeyframes:A},"move-right":{inKeyframes:_,outKeyframes:g}},u=(h,r)=>{const{antCls:n}=h,s=`${n}-${r}`,{inKeyframes:d,outKeyframes:o}=a[r];return[(0,G.R)(s,d,o,h.motionDurationMid),{[` ${s}-enter, ${s}-appear `]:{opacity:0,animationTimingFunction:h.motionEaseOutCirc},[`${s}-leave`]:{animationTimingFunction:h.motionEaseInOutCirc}}]}},13826:function(ft,Me,W){"use strict";W.d(Me,{Qt:function(){return O},Uw:function(){return E},fJ:function(){return w},ly:function(){return A},oN:function(){return u}});var N=W(36237),G=W(95406);const w=new N.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),E=new N.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),O=new N.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),A=new N.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),_=new N.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),g=new N.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),x=new N.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),m=new N.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),a={"slide-up":{inKeyframes:w,outKeyframes:E},"slide-down":{inKeyframes:O,outKeyframes:A},"slide-left":{inKeyframes:_,outKeyframes:g},"slide-right":{inKeyframes:x,outKeyframes:m}},u=(h,r)=>{const{antCls:n}=h,s=`${n}-${r}`,{inKeyframes:d,outKeyframes:o}=a[r];return[(0,G.R)(s,d,o,h.motionDurationMid),{[` ${s}-enter, ${s}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:h.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${s}-leave`]:{animationTimingFunction:h.motionEaseInQuint}}]}},12563:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return C}});var N=W(59301),G=W(99267),w=W(92310),E=W.n(w),O=W(36785),A=W(47729),_=W(14088),g=W(36355),x=W(17313),m=W(37613),a=W(83116);const u=S=>{const{paddingXXS:T,lineWidth:D,tagPaddingHorizontal:I,componentCls:M}=S,P=I-D,L=T-D;return{[M]:Object.assign(Object.assign({},(0,x.Wf)(S)),{display:"inline-block",height:"auto",marginInlineEnd:S.marginXS,paddingInline:P,fontSize:S.tagFontSize,lineHeight:S.tagLineHeight,whiteSpace:"nowrap",background:S.defaultBg,border:`${S.lineWidth}px ${S.lineType} ${S.colorBorder}`,borderRadius:S.borderRadiusSM,opacity:1,transition:`all ${S.motionDurationMid}`,textAlign:"start",position:"relative",[`&${M}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:S.defaultColor},[`${M}-close-icon`]:{marginInlineStart:L,color:S.colorTextDescription,fontSize:S.tagIconSize,cursor:"pointer",transition:`all ${S.motionDurationMid}`,"&:hover":{color:S.colorTextHeading}},[`&${M}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${S.iconCls}-close, ${S.iconCls}-close:hover`]:{color:S.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${M}-checkable-checked):hover`]:{color:S.colorPrimary,backgroundColor:S.colorFillSecondary},"&:active, &-checked":{color:S.colorTextLightSolid},"&-checked":{backgroundColor:S.colorPrimary,"&:hover":{backgroundColor:S.colorPrimaryHover}},"&:active":{backgroundColor:S.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${S.iconCls} + span, > span + ${S.iconCls}`]:{marginInlineStart:P}}),[`${M}-borderless`]:{borderColor:"transparent",background:S.tagBorderlessBg}}},h=S=>{const{lineWidth:T,fontSizeIcon:D}=S,I=S.fontSizeSM,M=`${S.lineHeightSM*I}px`;return(0,m.TS)(S,{tagFontSize:I,tagLineHeight:M,tagIconSize:D-2*T,tagPaddingHorizontal:8,tagBorderlessBg:S.colorFillTertiary})},r=S=>({defaultBg:S.colorFillQuaternary,defaultColor:S.colorText});var n=(0,a.Z)("Tag",S=>{const T=h(S);return u(T)},r),s=function(S,T){var D={};for(var I in S)Object.prototype.hasOwnProperty.call(S,I)&&T.indexOf(I)<0&&(D[I]=S[I]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,I=Object.getOwnPropertySymbols(S);M{const{prefixCls:T,style:D,className:I,checked:M,onChange:P,onClick:L}=S,R=s(S,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:B,tag:U}=N.useContext(g.E_),H=ae=>{P==null||P(!M),L==null||L(ae)},K=B("tag",T),[V,k]=n(K),$=E()(K,`${K}-checkable`,{[`${K}-checkable-checked`]:M},U==null?void 0:U.className,I,k);return V(N.createElement("span",Object.assign({},R,{style:Object.assign(Object.assign({},D),U==null?void 0:U.style),className:$,onClick:H})))},c=W(45157);const f=S=>(0,c.Z)(S,(T,D)=>{let{textColor:I,lightBorderColor:M,lightColor:P,darkColor:L}=D;return{[`${S.componentCls}-${T}`]:{color:I,background:P,borderColor:M,"&-inverse":{color:S.colorTextLightSolid,background:L,borderColor:L},[`&${S.componentCls}-borderless`]:{borderColor:"transparent"}}}});var e=(0,a.b)(["Tag","preset"],S=>{const T=h(S);return f(T)},r);function t(S){return typeof S!="string"?S:S.charAt(0).toUpperCase()+S.slice(1)}const i=(S,T,D)=>{const I=t(D);return{[`${S.componentCls}-${T}`]:{color:S[`color${D}`],background:S[`color${I}Bg`],borderColor:S[`color${I}Border`],[`&${S.componentCls}-borderless`]:{borderColor:"transparent"}}}};var l=(0,a.b)(["Tag","status"],S=>{const T=h(S);return[i(T,"success","Success"),i(T,"processing","Info"),i(T,"error","Error"),i(T,"warning","Warning")]},r),v=function(S,T){var D={};for(var I in S)Object.prototype.hasOwnProperty.call(S,I)&&T.indexOf(I)<0&&(D[I]=S[I]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,I=Object.getOwnPropertySymbols(S);M{const{prefixCls:D,className:I,rootClassName:M,style:P,children:L,icon:R,color:B,onClose:U,closeIcon:H,closable:K,bordered:V=!0}=S,k=v(S,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:$,direction:ae,tag:le}=N.useContext(g.E_),[he,ge]=N.useState(!0);N.useEffect(()=>{"visible"in k&&ge(k.visible)},[k.visible]);const me=(0,O.o2)(B),pe=(0,O.yT)(B),Ee=me||pe,de=Object.assign(Object.assign({backgroundColor:B&&!Ee?B:void 0},le==null?void 0:le.style),P),ve=$("tag",D),[ce,oe]=n(ve),X=E()(ve,le==null?void 0:le.className,{[`${ve}-${B}`]:Ee,[`${ve}-has-color`]:B&&!Ee,[`${ve}-hidden`]:!he,[`${ve}-rtl`]:ae==="rtl",[`${ve}-borderless`]:!V},I,M,oe),ne=J=>{J.stopPropagation(),U==null||U(J),!J.defaultPrevented&&ge(!1)},[,j]=(0,A.Z)(K,H,J=>J===null?N.createElement(G.Z,{className:`${ve}-close-icon`,onClick:ne}):N.createElement("span",{className:`${ve}-close-icon`,onClick:ne},J),null,!1),re=typeof k.onClick=="function"||L&&L.type==="a",Z=R||null,ee=Z?N.createElement(N.Fragment,null,Z,L&&N.createElement("span",null,L)):L,se=N.createElement("span",Object.assign({},k,{ref:T,className:X,style:de}),ee,j,me&&N.createElement(e,{key:"preset",prefixCls:ve}),pe&&N.createElement(l,{key:"status",prefixCls:ve}));return ce(re?N.createElement(_.Z,{component:"Tag"},se):se)},p=N.forwardRef(y);p.CheckableTag=o;var C=p},97774:function(ft,Me,W){"use strict";Object.defineProperty(Me,"__esModule",{value:!0}),Me.default=void 0;var N=Object.assign||function(s){for(var d=1;d0&&(v=1/Math.sqrt(v),e[0]=t[0]*v,e[1]=t[1]*v),e},h.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]},h.cross=function(e,t,i){var l=t[0]*i[1]-t[1]*i[0];return e[0]=e[1]=0,e[2]=l,e},h.lerp=function(e,t,i,l){var v=t[0],y=t[1];return e[0]=v+l*(i[0]-v),e[1]=y+l*(i[1]-y),e},h.random=function(e,t){t=t||1;var i=m()*2*Math.PI;return e[0]=Math.cos(i)*t,e[1]=Math.sin(i)*t,e},h.transformMat2=function(e,t,i){var l=t[0],v=t[1];return e[0]=i[0]*l+i[2]*v,e[1]=i[1]*l+i[3]*v,e},h.transformMat2d=function(e,t,i){var l=t[0],v=t[1];return e[0]=i[0]*l+i[2]*v+i[4],e[1]=i[1]*l+i[3]*v+i[5],e},h.transformMat3=function(e,t,i){var l=t[0],v=t[1];return e[0]=i[0]*l+i[3]*v+i[6],e[1]=i[1]*l+i[4]*v+i[7],e},h.transformMat4=function(e,t,i){var l=t[0],v=t[1];return e[0]=i[0]*l+i[4]*v+i[12],e[1]=i[1]*l+i[5]*v+i[13],e},h.forEach=function(){var e=h.create();return function(t,i,l,v,y,p){var C,S;for(i||(i=2),l||(l=0),v?S=Math.min(v*i+l,t.length):S=t.length,C=l;C0&&(y=1/Math.sqrt(y),e[0]=t[0]*y,e[1]=t[1]*y,e[2]=t[2]*y),e},r.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]},r.cross=function(e,t,i){var l=t[0],v=t[1],y=t[2],p=i[0],C=i[1],S=i[2];return e[0]=v*S-y*C,e[1]=y*p-l*S,e[2]=l*C-v*p,e},r.lerp=function(e,t,i,l){var v=t[0],y=t[1],p=t[2];return e[0]=v+l*(i[0]-v),e[1]=y+l*(i[1]-y),e[2]=p+l*(i[2]-p),e},r.random=function(e,t){t=t||1;var i=m()*2*Math.PI,l=m()*2-1,v=Math.sqrt(1-l*l)*t;return e[0]=Math.cos(i)*v,e[1]=Math.sin(i)*v,e[2]=l*t,e},r.transformMat4=function(e,t,i){var l=t[0],v=t[1],y=t[2],p=i[3]*l+i[7]*v+i[11]*y+i[15];return p=p||1,e[0]=(i[0]*l+i[4]*v+i[8]*y+i[12])/p,e[1]=(i[1]*l+i[5]*v+i[9]*y+i[13])/p,e[2]=(i[2]*l+i[6]*v+i[10]*y+i[14])/p,e},r.transformMat3=function(e,t,i){var l=t[0],v=t[1],y=t[2];return e[0]=l*i[0]+v*i[3]+y*i[6],e[1]=l*i[1]+v*i[4]+y*i[7],e[2]=l*i[2]+v*i[5]+y*i[8],e},r.transformQuat=function(e,t,i){var l=t[0],v=t[1],y=t[2],p=i[0],C=i[1],S=i[2],T=i[3],D=T*l+C*y-S*v,I=T*v+S*l-p*y,M=T*y+p*v-C*l,P=-p*l-C*v-S*y;return e[0]=D*T+P*-p+I*-S-M*-C,e[1]=I*T+P*-C+M*-p-D*-S,e[2]=M*T+P*-S+D*-C-I*-p,e},r.rotateX=function(e,t,i,l){var v=[],y=[];return v[0]=t[0]-i[0],v[1]=t[1]-i[1],v[2]=t[2]-i[2],y[0]=v[0],y[1]=v[1]*Math.cos(l)-v[2]*Math.sin(l),y[2]=v[1]*Math.sin(l)+v[2]*Math.cos(l),e[0]=y[0]+i[0],e[1]=y[1]+i[1],e[2]=y[2]+i[2],e},r.rotateY=function(e,t,i,l){var v=[],y=[];return v[0]=t[0]-i[0],v[1]=t[1]-i[1],v[2]=t[2]-i[2],y[0]=v[2]*Math.sin(l)+v[0]*Math.cos(l),y[1]=v[1],y[2]=v[2]*Math.cos(l)-v[0]*Math.sin(l),e[0]=y[0]+i[0],e[1]=y[1]+i[1],e[2]=y[2]+i[2],e},r.rotateZ=function(e,t,i,l){var v=[],y=[];return v[0]=t[0]-i[0],v[1]=t[1]-i[1],v[2]=t[2]-i[2],y[0]=v[0]*Math.cos(l)-v[1]*Math.sin(l),y[1]=v[0]*Math.sin(l)+v[1]*Math.cos(l),y[2]=v[2],e[0]=y[0]+i[0],e[1]=y[1]+i[1],e[2]=y[2]+i[2],e},r.forEach=function(){var e=r.create();return function(t,i,l,v,y,p){var C,S;for(i||(i=3),l||(l=0),v?S=Math.min(v*i+l,t.length):S=t.length,C=l;C1?0:Math.acos(v)},r.str=function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},typeof _!="undefined"&&(_.vec3=r);var n={};n.create=function(){var e=new x(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e},n.clone=function(e){var t=new x(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},n.fromValues=function(e,t,i,l){var v=new x(4);return v[0]=e,v[1]=t,v[2]=i,v[3]=l,v},n.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},n.set=function(e,t,i,l,v){return e[0]=t,e[1]=i,e[2]=l,e[3]=v,e},n.add=function(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e[3]=t[3]+i[3],e},n.subtract=function(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e[3]=t[3]-i[3],e},n.sub=n.subtract,n.multiply=function(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e[3]=t[3]*i[3],e},n.mul=n.multiply,n.divide=function(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e[3]=t[3]/i[3],e},n.div=n.divide,n.min=function(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e[3]=Math.min(t[3],i[3]),e},n.max=function(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e[3]=Math.max(t[3],i[3]),e},n.scale=function(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e},n.scaleAndAdd=function(e,t,i,l){return e[0]=t[0]+i[0]*l,e[1]=t[1]+i[1]*l,e[2]=t[2]+i[2]*l,e[3]=t[3]+i[3]*l,e},n.distance=function(e,t){var i=t[0]-e[0],l=t[1]-e[1],v=t[2]-e[2],y=t[3]-e[3];return Math.sqrt(i*i+l*l+v*v+y*y)},n.dist=n.distance,n.squaredDistance=function(e,t){var i=t[0]-e[0],l=t[1]-e[1],v=t[2]-e[2],y=t[3]-e[3];return i*i+l*l+v*v+y*y},n.sqrDist=n.squaredDistance,n.length=function(e){var t=e[0],i=e[1],l=e[2],v=e[3];return Math.sqrt(t*t+i*i+l*l+v*v)},n.len=n.length,n.squaredLength=function(e){var t=e[0],i=e[1],l=e[2],v=e[3];return t*t+i*i+l*l+v*v},n.sqrLen=n.squaredLength,n.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},n.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},n.normalize=function(e,t){var i=t[0],l=t[1],v=t[2],y=t[3],p=i*i+l*l+v*v+y*y;return p>0&&(p=1/Math.sqrt(p),e[0]=t[0]*p,e[1]=t[1]*p,e[2]=t[2]*p,e[3]=t[3]*p),e},n.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},n.lerp=function(e,t,i,l){var v=t[0],y=t[1],p=t[2],C=t[3];return e[0]=v+l*(i[0]-v),e[1]=y+l*(i[1]-y),e[2]=p+l*(i[2]-p),e[3]=C+l*(i[3]-C),e},n.random=function(e,t){return t=t||1,e[0]=m(),e[1]=m(),e[2]=m(),e[3]=m(),n.normalize(e,e),n.scale(e,e,t),e},n.transformMat4=function(e,t,i){var l=t[0],v=t[1],y=t[2],p=t[3];return e[0]=i[0]*l+i[4]*v+i[8]*y+i[12]*p,e[1]=i[1]*l+i[5]*v+i[9]*y+i[13]*p,e[2]=i[2]*l+i[6]*v+i[10]*y+i[14]*p,e[3]=i[3]*l+i[7]*v+i[11]*y+i[15]*p,e},n.transformQuat=function(e,t,i){var l=t[0],v=t[1],y=t[2],p=i[0],C=i[1],S=i[2],T=i[3],D=T*l+C*y-S*v,I=T*v+S*l-p*y,M=T*y+p*v-C*l,P=-p*l-C*v-S*y;return e[0]=D*T+P*-p+I*-S-M*-C,e[1]=I*T+P*-C+M*-p-D*-S,e[2]=M*T+P*-S+D*-C-I*-p,e},n.forEach=function(){var e=n.create();return function(t,i,l,v,y,p){var C,S;for(i||(i=4),l||(l=0),v?S=Math.min(v*i+l,t.length):S=t.length,C=l;C.999999?(l[0]=0,l[1]=0,l[2]=0,l[3]=1,l):(r.cross(e,v,y),l[0]=e[0],l[1]=e[1],l[2]=e[2],l[3]=1+p,f.normalize(l,l))}}(),f.setAxes=function(){var e=o.create();return function(t,i,l,v){return e[0]=l[0],e[3]=l[1],e[6]=l[2],e[1]=v[0],e[4]=v[1],e[7]=v[2],e[2]=-i[0],e[5]=-i[1],e[8]=-i[2],f.normalize(t,f.fromMat3(t,e))}}(),f.clone=n.clone,f.fromValues=n.fromValues,f.copy=n.copy,f.set=n.set,f.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},f.setAxisAngle=function(e,t,i){i=i*.5;var l=Math.sin(i);return e[0]=l*t[0],e[1]=l*t[1],e[2]=l*t[2],e[3]=Math.cos(i),e},f.add=n.add,f.multiply=function(e,t,i){var l=t[0],v=t[1],y=t[2],p=t[3],C=i[0],S=i[1],T=i[2],D=i[3];return e[0]=l*D+p*C+v*T-y*S,e[1]=v*D+p*S+y*C-l*T,e[2]=y*D+p*T+l*S-v*C,e[3]=p*D-l*C-v*S-y*T,e},f.mul=f.multiply,f.scale=n.scale,f.rotateX=function(e,t,i){i*=.5;var l=t[0],v=t[1],y=t[2],p=t[3],C=Math.sin(i),S=Math.cos(i);return e[0]=l*S+p*C,e[1]=v*S+y*C,e[2]=y*S-v*C,e[3]=p*S-l*C,e},f.rotateY=function(e,t,i){i*=.5;var l=t[0],v=t[1],y=t[2],p=t[3],C=Math.sin(i),S=Math.cos(i);return e[0]=l*S-y*C,e[1]=v*S+p*C,e[2]=y*S+l*C,e[3]=p*S-v*C,e},f.rotateZ=function(e,t,i){i*=.5;var l=t[0],v=t[1],y=t[2],p=t[3],C=Math.sin(i),S=Math.cos(i);return e[0]=l*S+v*C,e[1]=v*S-l*C,e[2]=y*S+p*C,e[3]=p*S-y*C,e},f.calculateW=function(e,t){var i=t[0],l=t[1],v=t[2];return e[0]=i,e[1]=l,e[2]=v,e[3]=Math.sqrt(Math.abs(1-i*i-l*l-v*v)),e},f.dot=n.dot,f.lerp=n.lerp,f.slerp=function(e,t,i,l){var v=t[0],y=t[1],p=t[2],C=t[3],S=i[0],T=i[1],D=i[2],I=i[3],M,P,L,R,B;return P=v*S+y*T+p*D+C*I,P<0&&(P=-P,S=-S,T=-T,D=-D,I=-I),1-P>1e-6?(M=Math.acos(P),L=Math.sin(M),R=Math.sin((1-l)*M)/L,B=Math.sin(l*M)/L):(R=1-l,B=l),e[0]=R*v+B*S,e[1]=R*y+B*T,e[2]=R*p+B*D,e[3]=R*C+B*I,e},f.invert=function(e,t){var i=t[0],l=t[1],v=t[2],y=t[3],p=i*i+l*l+v*v+y*y,C=p?1/p:0;return e[0]=-i*C,e[1]=-l*C,e[2]=-v*C,e[3]=y*C,e},f.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e},f.length=n.length,f.len=f.length,f.squaredLength=n.squaredLength,f.sqrLen=f.squaredLength,f.normalize=n.normalize,f.fromMat3=function(e,t){var i=t[0]+t[4]+t[8],l;if(i>0)l=Math.sqrt(i+1),e[3]=.5*l,l=.5/l,e[0]=(t[5]-t[7])*l,e[1]=(t[6]-t[2])*l,e[2]=(t[1]-t[3])*l;else{var v=0;t[4]>t[0]&&(v=1),t[8]>t[v*3+v]&&(v=2);var y=(v+1)%3,p=(v+2)%3;l=Math.sqrt(t[v*3+v]-t[y*3+y]-t[p*3+p]+1),e[v]=.5*l,l=.5/l,e[3]=(t[y*3+p]-t[p*3+y])*l,e[y]=(t[y*3+v]+t[v*3+y])*l,e[p]=(t[p*3+v]+t[v*3+p])*l}return e},f.str=function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},typeof _!="undefined"&&(_.quat=f)}(A.exports)})(this)},function(G,w,E){"use strict";var O=E(24),A=E(46),_=E(5),g=E(6),x=E(7),m=E(17),a=E(28),u=E(13),h=E(0),r=E.n(h),n=E(29),s=E(53),d=E.n(s),o=E(54),c=E(106),f=E(107),e=E(113),t=E(114),i=E(3),l=E(68),v=E(37),y=E(69),p=E(116),C=E(70),S=E(71),T=E(72),D=E(36),I=E(30),M=E(23),P=E(4),L=E(117),R=E(50),B=E(118),U=E(119),H=E(120),K=E(9),V=E(67),k=E(49),$=E(15),ae=E(52),le=E(121),he=E(126),ge=E(63),me=E(127),pe=E(128),Ee=E(129),de=E(130),ve=E(131),ce=E(132);r.a.util.extend(a.a.prototype,le.a),x.a.import(he.a),x.a.import(ge.a),x.a.import(me.a),x.a.import(pe.a),x.a.import(Ee.a),x.a.import(de.a),x.a.import(ve.a),x.a.import(ce.a);function oe(ie){return!ie||ie==="none"}function X(ie){return ie instanceof HTMLCanvasElement||ie instanceof HTMLImageElement||ie instanceof Image}function ne(ie){return ie.getZr&&ie.setOption}var j=n.a.prototype.addToScene,re=n.a.prototype.removeFromScene;n.a.prototype.addToScene=function(ie){if(j.call(this,ie),this.__zr){var fe=this.__zr;ie.traverse(function(_e){_e.__zr=fe,_e.addAnimatorsToZr&&_e.addAnimatorsToZr(fe)})}},n.a.prototype.removeFromScene=function(ie){re.call(this,ie),ie.traverse(function(fe){var _e=fe.__zr;fe.__zr=null,_e&&fe.removeAnimatorsFromZr&&fe.removeAnimatorsFromZr(_e)})},m.a.prototype.setTextureImage=function(ie,fe,_e,De){if(this.shader){var Ie=_e.getZr(),Ne=this,Le;return Ne.autoUpdateTextureStatus=!1,Ne.disableTexture(ie),oe(fe)||(Le=Z.loadTexture(fe,_e,De,function(ue){Ne.enableTexture(ie),Ie&&Ie.refresh()}),Ne.set(ie,Le)),Le}};var Z={};Z.Renderer=A.a,Z.Node=a.a,Z.Mesh=O.a,Z.Shader=x.a,Z.Material=m.a,Z.Texture=g.a,Z.Texture2D=_.a,Z.Geometry=u.a,Z.SphereGeometry=l.a,Z.PlaneGeometry=v.a,Z.CubeGeometry=y.a,Z.AmbientLight=p.a,Z.DirectionalLight=C.a,Z.PointLight=S.a,Z.SpotLight=T.a,Z.PerspectiveCamera=D.a,Z.OrthographicCamera=I.a,Z.Vector2=M.a,Z.Vector3=P.a,Z.Vector4=L.a,Z.Quaternion=R.a,Z.Matrix2=B.a,Z.Matrix2d=U.a,Z.Matrix3=H.a,Z.Matrix4=K.a,Z.Plane=V.a,Z.Ray=k.a,Z.BoundingBox=$.a,Z.Frustum=ae.a;var ee=o.a.createBlank("rgba(255,255,255,0)").image;function se(ie){return Math.pow(2,Math.round(Math.log(ie)/Math.LN2))}function J(ie){if((ie.wrapS===g.a.REPEAT||ie.wrapT===g.a.REPEAT)&&ie.image){var fe=se(ie.width),_e=se(ie.height);if(fe!==ie.width||_e!==ie.height){var De=document.createElement("canvas");De.width=fe,De.height=_e;var Ie=De.getContext("2d");Ie.drawImage(ie.image,0,0,fe,_e),ie.image=De}}}Z.loadTexture=function(ie,fe,_e,De){typeof _e=="function"&&(De=_e,_e={}),_e=_e||{};for(var Ie=Object.keys(_e).sort(),Ne="",Le=0;Le3?fe[3]=ie[3]:fe[3]=1,fe):(fe=r.a.color.parse(ie||"#000",fe)||[0,0,0,0],fe[0]/=255,fe[1]/=255,fe[2]/=255,fe)},Z.directionFromAlphaBeta=function(ie,fe){var _e=ie/180*Math.PI+Math.PI/2,De=-fe/180*Math.PI+Math.PI/2,Ie=[],Ne=Math.sin(_e);return Ie[0]=Ne*Math.cos(De),Ie[1]=-Math.cos(_e),Ie[2]=Ne*Math.sin(De),Ie},Z.getShadowResolution=function(ie){var fe=1024;switch(ie){case"low":fe=512;break;case"medium":break;case"high":fe=2048;break;case"ultra":fe=4096;break}return fe},Z.COMMON_SHADERS=["lambert","color","realistic","hatching"],Z.createShader=function(ie){var fe=x.a.source(ie+".vertex"),_e=x.a.source(ie+".fragment");fe||console.error("Vertex shader of '%s' not exits",ie),_e||console.error("Fragment shader of '%s' not exits",ie);var De=new x.a(fe,_e);return De.name=ie,De},Z.createMaterial=function(ie,fe){fe instanceof Array||(fe=[fe]);var _e=Z.createShader(ie),De=new m.a({shader:_e});return fe.forEach(function(Ie){typeof Ie=="string"&&De.define(Ie)}),De},Z.setMaterialFromModel=function(ie,fe,_e,De){fe.autoUpdateTextureStatus=!1;var Ie=_e.getModel(ie+"Material"),Ne=Ie.get("detailTexture"),Le=i.a.firstNotNull(Ie.get("textureTiling"),1),ue=i.a.firstNotNull(Ie.get("textureOffset"),0);typeof Le=="number"&&(Le=[Le,Le]),typeof ue=="number"&&(ue=[ue,ue]);var xe=Le[0]>1||Le[1]>1?Z.Texture.REPEAT:Z.Texture.CLAMP_TO_EDGE,be={anisotropic:8,wrapS:xe,wrapT:xe};if(ie==="realistic"){var Ae=Ie.get("roughness"),Qe=Ie.get("metalness");Qe!=null?isNaN(Qe)&&(fe.setTextureImage("metalnessMap",Qe,De,be),Qe=i.a.firstNotNull(Ie.get("metalnessAdjust"),.5)):Qe=0,Ae!=null?isNaN(Ae)&&(fe.setTextureImage("roughnessMap",Ae,De,be),Ae=i.a.firstNotNull(Ie.get("roughnessAdjust"),.5)):Ae=.5;var et=Ie.get("normalTexture");fe.setTextureImage("detailMap",Ne,De,be),fe.setTextureImage("normalMap",et,De,be),fe.set({roughness:Ae,metalness:Qe,detailUvRepeat:Le,detailUvOffset:ue})}else if(ie==="lambert")fe.setTextureImage("detailMap",Ne,De,be),fe.set({detailUvRepeat:Le,detailUvOffset:ue});else if(ie==="color")fe.setTextureImage("detailMap",Ne,De,be),fe.set({detailUvRepeat:Le,detailUvOffset:ue});else if(ie==="hatching"){var at=Ie.get("hatchingTextures")||[];at.length<6&&console.error("Invalid hatchingTextures.");for(var tt=0;tt<6;tt++)fe.setTextureImage("hatch"+(tt+1),at[tt],De,{anisotropic:8,wrapS:Z.Texture.REPEAT,wrapT:Z.Texture.REPEAT});fe.set({detailUvRepeat:Le,detailUvOffset:ue})}},Z.updateVertexAnimation=function(ie,fe,_e,De){var Ie=De.get("animation"),Ne=De.get("animationDurationUpdate"),Le=De.get("animationEasingUpdate"),ue=_e.shadowDepthMaterial;if(Ie&&fe&&Ne>0&&fe.geometry.vertexCount===_e.geometry.vertexCount){_e.material.define("vertex","VERTEX_ANIMATION"),_e.ignorePreZ=!0,ue&&ue.define("vertex","VERTEX_ANIMATION");for(var xe=0;xed?d:n}var u=Math.atan2,h=Math.asin,r=Math.abs;g.eulerFromQuat=function(n,s,p){n._dirty=!0,s=s.array;var o=n.array,c=s[0],f=s[1],e=s[2],t=s[3],i=c*c,l=f*f,v=e*e,y=t*t,p=(p||"XYZ").toUpperCase();switch(p){case"XYZ":o[0]=u(2*(c*t-f*e),y-i-l+v),o[1]=h(a(2*(c*e+f*t),-1,1)),o[2]=u(2*(e*t-c*f),y+i-l-v);break;case"YXZ":o[0]=h(a(2*(c*t-f*e),-1,1)),o[1]=u(2*(c*e+f*t),y-i-l+v),o[2]=u(2*(c*f+e*t),y-i+l-v);break;case"ZXY":o[0]=h(a(2*(c*t+f*e),-1,1)),o[1]=u(2*(f*t-e*c),y-i-l+v),o[2]=u(2*(e*t-c*f),y-i+l-v);break;case"ZYX":o[0]=u(2*(c*t+e*f),y-i-l+v),o[1]=h(a(2*(f*t-c*e),-1,1)),o[2]=u(2*(c*f+e*t),y+i-l-v);break;case"YZX":o[0]=u(2*(c*t-e*f),y-i+l-v),o[1]=u(2*(f*t-c*e),y+i-l-v),o[2]=h(a(2*(c*f+e*t),-1,1));break;case"XZY":o[0]=u(2*(c*t+f*e),y-i+l-v),o[1]=u(2*(c*e+f*t),y+i-l-v),o[2]=h(a(2*(e*t-c*f),-1,1));break;default:console.warn("Unkown order: "+p)}return n},g.eulerFromMat3=function(n,s,S){var o=s.array,c=o[0],f=o[3],e=o[6],t=o[1],i=o[4],l=o[7],v=o[2],y=o[5],p=o[8],C=n.array,S=(S||"XYZ").toUpperCase();switch(S){case"XYZ":C[1]=h(a(e,-1,1)),r(e)<.99999?(C[0]=u(-l,p),C[2]=u(-f,c)):(C[0]=u(y,i),C[2]=0);break;case"YXZ":C[0]=h(-a(l,-1,1)),r(l)<.99999?(C[1]=u(e,p),C[2]=u(t,i)):(C[1]=u(-v,c),C[2]=0);break;case"ZXY":C[0]=h(a(y,-1,1)),r(y)<.99999?(C[1]=u(-v,p),C[2]=u(-f,i)):(C[1]=0,C[2]=u(t,c));break;case"ZYX":C[1]=h(-a(v,-1,1)),r(v)<.99999?(C[0]=u(y,p),C[2]=u(t,c)):(C[0]=0,C[2]=u(-f,i));break;case"YZX":C[2]=h(a(t,-1,1)),r(t)<.99999?(C[0]=u(-l,i),C[1]=u(-v,c)):(C[0]=0,C[1]=u(e,p));break;case"XZY":C[2]=h(-a(f,-1,1)),r(f)<.99999?(C[0]=u(y,i),C[1]=u(e,c)):(C[0]=u(-l,p),C[1]=0);break;default:console.warn("Unkown order: "+S)}return n._dirty=!0,n},g.POSITIVE_X=new g(1,0,0),g.NEGATIVE_X=new g(-1,0,0),g.POSITIVE_Y=new g(0,1,0),g.NEGATIVE_Y=new g(0,-1,0),g.POSITIVE_Z=new g(0,0,1),g.NEGATIVE_Z=new g(0,0,-1),g.UP=new g(0,1,0),g.ZERO=new g(0,0,0),w.a=g},function(G,w,E){"use strict";var O=E(6),A=E(11),_=E(66),g=_.a.isPowerOfTwo,x=O.a.extend(function(){return{image:null,pixels:null,mipmaps:[]}},{update:function(m){var a=m.gl;a.bindTexture(a.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(m);var u=this.format,h=this.type;a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,this.getAvailableWrapS()),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,this.getAvailableWrapT()),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var r=m.getGLExtension("EXT_texture_filter_anisotropic");if(r&&this.anisotropic>1&&a.texParameterf(a.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),h===36193){var n=m.getGLExtension("OES_texture_half_float");n||(h=A.a.FLOAT)}if(this.mipmaps.length)for(var s=this.width,d=this.height,o=0;o=O.a.COMPRESSED_RGB_S3TC_DXT1_EXT?m.compressedTexImage2D(m.TEXTURE_2D,u,n,h,r,0,a.pixels):m.texImage2D(m.TEXTURE_2D,u,n,h,r,0,n,s,a.pixels)},generateMipmap:function(m){var a=m.gl;this.useMipmap&&!this.NPOT&&(a.bindTexture(a.TEXTURE_2D,this._cache.get("webgl_texture")),a.generateMipmap(a.TEXTURE_2D))},isPowerOfTwo:function(){var m,a;return this.image?(m=this.image.width,a=this.image.height):(m=this.width,a=this.height),g(m)&&g(a)},isRenderable:function(){return this.image?this.image.nodeName==="CANVAS"||this.image.nodeName==="VIDEO"||this.image.complete:!!(this.width&&this.height)},bind:function(m){m.gl.bindTexture(m.gl.TEXTURE_2D,this.getWebGLTexture(m))},unbind:function(m){m.gl.bindTexture(m.gl.TEXTURE_2D,null)},load:function(m,a){var u=new Image;a&&(u.crossOrigin=a);var h=this;return u.onload=function(){h.dirty(),h.trigger("success",h),u.onload=null},u.onerror=function(){h.trigger("error",h),u.onerror=null},u.src=m,this.image=u,this}});Object.defineProperty(x.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(m){this.image?console.warn("Texture from image can't set width"):(this._width!==m&&this.dirty(),this._width=m)}}),Object.defineProperty(x.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(m){this.image?console.warn("Texture from image can't set height"):(this._height!==m&&this.dirty(),this._height=m)}}),w.a=x},function(G,w,E){"use strict";var O=E(8),A=E(11),_=E(48),g=O.a.extend({width:512,height:512,type:A.a.UNSIGNED_BYTE,format:A.a.RGBA,wrapS:A.a.REPEAT,wrapT:A.a.REPEAT,minFilter:A.a.LINEAR_MIPMAP_LINEAR,magFilter:A.a.LINEAR,useMipmap:!0,anisotropic:1,flipY:!0,sRGB:!0,unpackAlignment:4,premultiplyAlpha:!1,dynamic:!1,NPOT:!1},function(){this._cache=new _.a},{getWebGLTexture:function(x){var m=x.gl,a=this._cache;return a.use(x.__uid__),a.miss("webgl_texture")&&a.put("webgl_texture",m.createTexture()),this.dynamic?this.update(x):a.isDirty()&&(this.update(x),a.fresh()),a.get("webgl_texture")},bind:function(){},unbind:function(){},dirty:function(){this._cache&&this._cache.dirtyAll()},update:function(x){},updateCommon:function(x){var m=x.gl;m.pixelStorei(m.UNPACK_FLIP_Y_WEBGL,this.flipY),m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),m.pixelStorei(m.UNPACK_ALIGNMENT,this.unpackAlignment),this.format===A.a.DEPTH_COMPONENT&&(this.useMipmap=!1);var a=x.getGLExtension("EXT_sRGB");this.format===g.SRGB&&!a&&(this.format=g.RGB),this.format===g.SRGB_ALPHA&&!a&&(this.format=g.RGBA),this.NPOT=!this.isPowerOfTwo()},getAvailableWrapS:function(){return this.NPOT?A.a.CLAMP_TO_EDGE:this.wrapS},getAvailableWrapT:function(){return this.NPOT?A.a.CLAMP_TO_EDGE:this.wrapT},getAvailableMinFilter:function(){var x=this.minFilter;return this.NPOT||!this.useMipmap?x==A.a.NEAREST_MIPMAP_NEAREST||x==A.a.NEAREST_MIPMAP_LINEAR?A.a.NEAREST:x==A.a.LINEAR_MIPMAP_LINEAR||x==A.a.LINEAR_MIPMAP_NEAREST?A.a.LINEAR:x:x},getAvailableMagFilter:function(){return this.magFilter},nextHighestPowerOfTwo:function(x){--x;for(var m=1;m<32;m<<=1)x=x|x>>m;return x+1},dispose:function(x){var m=this._cache;m.use(x.__uid__);var a=m.get("webgl_texture");a&&x.gl.deleteTexture(a),m.deleteContext(x.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(g.prototype,"width",{get:function(){return this._width},set:function(x){this._width=x}}),Object.defineProperty(g.prototype,"height",{get:function(){return this._height},set:function(x){this._height=x}}),g.BYTE=A.a.BYTE,g.UNSIGNED_BYTE=A.a.UNSIGNED_BYTE,g.SHORT=A.a.SHORT,g.UNSIGNED_SHORT=A.a.UNSIGNED_SHORT,g.INT=A.a.INT,g.UNSIGNED_INT=A.a.UNSIGNED_INT,g.FLOAT=A.a.FLOAT,g.HALF_FLOAT=36193,g.UNSIGNED_INT_24_8_WEBGL=34042,g.DEPTH_COMPONENT=A.a.DEPTH_COMPONENT,g.DEPTH_STENCIL=A.a.DEPTH_STENCIL,g.ALPHA=A.a.ALPHA,g.RGB=A.a.RGB,g.RGBA=A.a.RGBA,g.LUMINANCE=A.a.LUMINANCE,g.LUMINANCE_ALPHA=A.a.LUMINANCE_ALPHA,g.SRGB=35904,g.SRGB_ALPHA=35906,g.COMPRESSED_RGB_S3TC_DXT1_EXT=33776,g.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777,g.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778,g.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779,g.NEAREST=A.a.NEAREST,g.LINEAR=A.a.LINEAR,g.NEAREST_MIPMAP_NEAREST=A.a.NEAREST_MIPMAP_NEAREST,g.LINEAR_MIPMAP_NEAREST=A.a.LINEAR_MIPMAP_NEAREST,g.NEAREST_MIPMAP_LINEAR=A.a.NEAREST_MIPMAP_LINEAR,g.LINEAR_MIPMAP_LINEAR=A.a.LINEAR_MIPMAP_LINEAR,g.REPEAT=A.a.REPEAT,g.CLAMP_TO_EDGE=A.a.CLAMP_TO_EDGE,g.MIRRORED_REPEAT=A.a.MIRRORED_REPEAT,w.a=g},function(G,w,E){"use strict";var O=E(21),A=E(18),_=E(1),g=E.n(_),x=g.a.mat2,m=g.a.mat3,a=g.a.mat4,u=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\w\,]+)?(\[.*?\])?\s*(:\s*([\S\s]+?))?;/g,h=/attribute\s+(float|int|vec2|vec3|vec4)\s+(\w*)\s*(:\s*(\w+))?;/g,r=/#define\s+(\w+)?(\s+[\w-.]+)?\s*;?\s*\n/g,n={bool:"1i",int:"1i",sampler2D:"t",samplerCube:"t",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",ivec2:"2i",ivec3:"3i",ivec4:"4i",mat2:"m2",mat3:"m3",mat4:"m4"},s={bool:function(){return!0},int:function(){return 0},float:function(){return 0},sampler2D:function(){return null},samplerCube:function(){return null},vec2:function(){return[0,0]},vec3:function(){return[0,0,0]},vec4:function(){return[0,0,0,0]},ivec2:function(){return[0,0]},ivec3:function(){return[0,0,0]},ivec4:function(){return[0,0,0,0]},mat2:function(){return x.create()},mat3:function(){return m.create()},mat4:function(){return a.create()},array:function(){return[]}},d=["POSITION","NORMAL","BINORMAL","TANGENT","TEXCOORD","TEXCOORD_0","TEXCOORD_1","COLOR","JOINT","WEIGHT"],o=["SKIN_MATRIX","VIEWPORT_SIZE","VIEWPORT","DEVICEPIXELRATIO","WINDOW_SIZE","NEAR","FAR","TIME"],c=["WORLD","VIEW","PROJECTION","WORLDVIEW","VIEWPROJECTION","WORLDVIEWPROJECTION","WORLDINVERSE","VIEWINVERSE","PROJECTIONINVERSE","WORLDVIEWINVERSE","VIEWPROJECTIONINVERSE","WORLDVIEWPROJECTIONINVERSE","WORLDTRANSPOSE","VIEWTRANSPOSE","PROJECTIONTRANSPOSE","WORLDVIEWTRANSPOSE","VIEWPROJECTIONTRANSPOSE","WORLDVIEWPROJECTIONTRANSPOSE","WORLDINVERSETRANSPOSE","VIEWINVERSETRANSPOSE","PROJECTIONINVERSETRANSPOSE","WORLDVIEWINVERSETRANSPOSE","VIEWPROJECTIONINVERSETRANSPOSE","WORLDVIEWPROJECTIONINVERSETRANSPOSE"],f={},e={};function t(y,p){var C="vertex:"+y+"fragment:"+p;if(f[C])return f[C];var S=O.a.genGUID();return f[C]=S,e[S]={vertex:y,fragment:p},S}function i(y,p){typeof y=="object"&&(p=y.fragment,y=y.vertex),this._shaderID=t(y,p),this._vertexCode=i.parseImport(y),this._fragmentCode=i.parseImport(p),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}i.prototype={constructor:i,createUniforms:function(){var y={};for(var p in this.uniformTemplates){var C=this.uniformTemplates[p];y[p]={type:C.type,value:C.value()}}return y},_parseImport:function(){this._vertexCode=i.parseImport(this.vertex),this._fragmentCode=i.parseImport(this.fragment)},_parseUniforms:function(){var y={},p=this,C="vertex";this._uniformList=[],this._vertexCode=this._vertexCode.replace(u,S),C="fragment",this._fragmentCode=this._fragmentCode.replace(u,S),p.matrixSemanticKeys=Object.keys(this.matrixSemantics);function S(T,D,I,M,P,L){if(D&&I){var R=n[D],B=!0,U;if(R){if(p._uniformList.push(I),(D==="sampler2D"||D==="samplerCube")&&(p.textures[I]={shaderType:C,type:D}),M&&(R+="v"),L)if(d.indexOf(L)>=0)p.attributeSemantics[L]={symbol:I,type:R},B=!1;else if(c.indexOf(L)>=0){var H=!1,K=L;L.match(/TRANSPOSE$/)&&(H=!0,K=L.slice(0,-9)),p.matrixSemantics[L]={symbol:I,type:R,isTranspose:H,semanticNoTranspose:K},B=!1}else if(o.indexOf(L)>=0)p.uniformSemantics[L]={symbol:I,type:R},B=!1;else if(L==="unconfigurable")B=!1;else if(U=p._parseDefaultValue(D,L),U)L="";else throw new Error('Unkown semantic "'+L+'"');B&&(y[I]={type:R,value:M?s.array:U||s[D],semantic:L||null})}return["uniform",D,I,M].join(" ")+`; `}}this.uniformTemplates=y},_parseDefaultValue:function(y,p){var C=/\[\s*(.*)\s*\]/;if(y==="vec2"||y==="vec3"||y==="vec4"){var S=C.exec(p)[1];if(S){var T=S.split(/\s*,\s*/);return function(){return new A.a.Float32Array(T)}}else return}else{if(y==="bool")return function(){return p.toLowerCase()==="true"};if(y==="float")return function(){return parseFloat(p)};if(y==="int")return function(){return parseInt(p)}}},_parseAttributes:function(){var y={},p=this;this._vertexCode=this._vertexCode.replace(h,C);function C(S,T,D,I,M){if(T&&D){var P=1;switch(T){case"vec4":P=4;break;case"vec3":P=3;break;case"vec2":P=2;break;case"float":P=1;break}if(y[D]={type:"float",size:P,semantic:M||null},M){if(d.indexOf(M)<0)throw new Error('Unkown semantic "'+M+'"');p.attributeSemantics[M]={symbol:D,type:T}}}return["attribute",T,D].join(" ")+`; `}this.attributes=y},_parseDefines:function(){var y=this,p="vertex";this._vertexCode=this._vertexCode.replace(r,C),p="fragment",this._fragmentCode=this._fragmentCode.replace(r,C);function C(S,T,D){var I=p==="vertex"?y.vertexDefines:y.fragmentDefines;return I[T]||(D=="false"?I[T]=!1:D=="true"?I[T]=!0:I[T]=D?isNaN(parseFloat(D))?D.trim():parseFloat(D):null),""}},clone:function(){var y=e[this._shaderID],p=new i(y.vertex,y.fragment);return p}},Object.defineProperty&&(Object.defineProperty(i.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(i.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(i.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(i.prototype,"uniforms",{get:function(){return this._uniformList}}));var l=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;i.parseImport=function(y){return y=y.replace(l,function(T,C,S){var T=i.source(S);return T?i.parseImport(T):(console.error('Shader chunk "'+S+'" not existed in library'),"")}),y};var v=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;i.import=function(y){y.replace(v,function(p,C,S,D){var D=D.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"");if(D){for(var I=S.split("."),M=i.codes,P=0,L;PC[0]&&(C[0]=T),D>C[1]&&(C[1]=D),I>C[2]&&(C[2]=I)}v._dirty=!0,y._dirty=!0}},dirty:function(){for(var i=this.getEnabledAttributes(),l=0;l=0){l||(l=r());var v=this.indices;return l[0]=v[i*3],l[1]=v[i*3+1],l[2]=v[i*3+2],l}},setTriangleIndices:function(i,l){var v=this.indices;v[i*3]=l[0],v[i*3+1]=l[1],v[i*3+2]=l[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(i){var l,v=this.vertexCount>65535?g.a.Uint32Array:g.a.Uint16Array;if(i[0]&&i[0].length){var y=0,p=3;l=new v(i.length*p);for(var C=0;C=0?(l.splice(v,1),delete this.attributes[i],!0):!1},getAttribute:function(i){return this.attributes[i]},getEnabledAttributes:function(){var i=this._enabledAttributes,l=this._attributeList;if(i)return i;for(var v=[],y=this.vertexCount,p=0;p65535&&(this.indices=new g.a.Uint32Array(this.indices));for(var i=this.attributes,l=this.indices,v=this.getEnabledAttributes(),y={},p=0;p=c.COLOR_ATTACHMENT0&&t<=c.COLOR_ATTACHMENT0+8&&e.push(t);f.drawBuffersEXT(e)}}this.trigger("beforerender",this,d);var i=this.clearDepth?c.DEPTH_BUFFER_BIT:0;if(c.depthMask(!0),this.clearColor){i=i|c.COLOR_BUFFER_BIT,c.colorMask(!0,!0,!0,!0);var l=this.clearColor;Array.isArray(l)&&c.clearColor(l[0],l[1],l[2],l[3])}c.clear(i),this.blendWithPrevious?(c.enable(c.BLEND),this.material.transparent=!0):(c.disable(c.BLEND),this.material.transparent=!1),this.renderQuad(d),this.trigger("afterrender",this,d),o&&this.unbind(d,o)},renderQuad:function(d){r.material=this.material,d.renderPass([r],n)},dispose:function(d){}});w.a=s},function(G,w,E){"use strict";var O=E(4),A=E(1),_=E.n(A),g=_.a.vec3,x=g.copy,m=g.set,a=function(u,h){this.min=u||new O.a(1/0,1/0,1/0),this.max=h||new O.a(-1/0,-1/0,-1/0)};a.prototype={constructor:a,updateFromVertices:function(u){if(u.length>0){var h=this.min,r=this.max,n=h.array,s=r.array;x(n,u[0]),x(s,u[0]);for(var d=1;ds[0]&&(s[0]=o[0]),o[1]>s[1]&&(s[1]=o[1]),o[2]>s[2]&&(s[2]=o[2])}h._dirty=!0,r._dirty=!0}},union:function(u){var h=this.min,r=this.max;return g.min(h.array,h.array,u.min.array),g.max(r.array,r.array,u.max.array),h._dirty=!0,r._dirty=!0,this},intersection:function(u){var h=this.min,r=this.max;return g.max(h.array,h.array,u.min.array),g.min(r.array,r.array,u.max.array),h._dirty=!0,r._dirty=!0,this},intersectBoundingBox:function(u){var h=this.min.array,r=this.max.array,n=u.min.array,s=u.max.array;return!(h[0]>s[0]||h[1]>s[1]||h[2]>s[2]||r[0]=s[0]&&r[1]>=s[1]&&r[2]>=s[2]},containPoint:function(u){var h=this.min.array,r=this.max.array,n=u.array;return h[0]<=n[0]&&h[1]<=n[1]&&h[2]<=n[2]&&r[0]>=n[0]&&r[1]>=n[1]&&r[2]>=n[2]},isFinite:function(){var u=this.min.array,h=this.max.array;return isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(h[0])&&isFinite(h[1])&&isFinite(h[2])},applyTransform:function(){var u=g.create(),h=g.create(),r=g.create(),n=g.create(),s=g.create(),d=g.create();return function(o){var c=this.min.array,f=this.max.array,e=o.array;return u[0]=e[0]*c[0],u[1]=e[1]*c[0],u[2]=e[2]*c[0],h[0]=e[0]*f[0],h[1]=e[1]*f[0],h[2]=e[2]*f[0],r[0]=e[4]*c[1],r[1]=e[5]*c[1],r[2]=e[6]*c[1],n[0]=e[4]*f[1],n[1]=e[5]*f[1],n[2]=e[6]*f[1],s[0]=e[8]*c[2],s[1]=e[9]*c[2],s[2]=e[10]*c[2],d[0]=e[8]*f[2],d[1]=e[9]*f[2],d[2]=e[10]*f[2],c[0]=Math.min(u[0],h[0])+Math.min(r[0],n[0])+Math.min(s[0],d[0])+e[12],c[1]=Math.min(u[1],h[1])+Math.min(r[1],n[1])+Math.min(s[1],d[1])+e[13],c[2]=Math.min(u[2],h[2])+Math.min(r[2],n[2])+Math.min(s[2],d[2])+e[14],f[0]=Math.max(u[0],h[0])+Math.max(r[0],n[0])+Math.max(s[0],d[0])+e[12],f[1]=Math.max(u[1],h[1])+Math.max(r[1],n[1])+Math.max(s[1],d[1])+e[13],f[2]=Math.max(u[2],h[2])+Math.max(r[2],n[2])+Math.max(s[2],d[2])+e[14],this.min._dirty=!0,this.max._dirty=!0,this}}(),applyProjection:function(u){var h=this.min.array,r=this.max.array,n=u.array,s=h[0],d=h[1],o=h[2],c=r[0],f=r[1],e=h[2],t=r[0],i=r[1],l=r[2];if(n[15]===1)h[0]=n[0]*s+n[12],h[1]=n[5]*d+n[13],r[2]=n[10]*o+n[14],r[0]=n[0]*t+n[12],r[1]=n[5]*i+n[13],h[2]=n[10]*l+n[14];else{var v=-1/o;h[0]=n[0]*s*v,h[1]=n[5]*d*v,r[2]=(n[10]*o+n[14])*v,v=-1/e,r[0]=n[0]*c*v,r[1]=n[5]*f*v,v=-1/l,h[2]=(n[10]*l+n[14])*v}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){var u=this.vertices;if(!u){for(var u=[],h=0;h<8;h++)u[h]=g.fromValues(0,0,0);this.vertices=u}var r=this.min.array,n=this.max.array;return m(u[0],r[0],r[1],r[2]),m(u[1],r[0],n[1],r[2]),m(u[2],n[0],r[1],r[2]),m(u[3],n[0],n[1],r[2]),m(u[4],r[0],r[1],n[2]),m(u[5],r[0],n[1],n[2]),m(u[6],n[0],r[1],n[2]),m(u[7],n[0],n[1],n[2]),this},copy:function(u){var h=this.min,r=this.max;return x(h.array,u.min.array),x(r.array,u.max.array),h._dirty=!0,r._dirty=!0,this},clone:function(){var u=new a;return u.copy(this),u}},w.a=a},function(G,w,E){"use strict";w.a=function(O,A,_){return{seriesType:O,reset:function(g,x){var m=g.getData(),a=g.visualColorAccessPath.split(".");a[a.length-1]="opacity";var u=g.get(a);m.setVisual("opacity",u==null?1:u);function h(r){var n=m.getItemModel(r),s=n.get(a);s!=null&&m.setItemVisual(r,"opacity",s)}return{dataEach:m.hasItemOption?h:null}}}}},function(G,w,E){"use strict";var O=E(8),A=E(6),_=E(21),g=E(93),x=g.a.parseToFloat,m={};function a(r,n,s){var d=Object.keys(r);d.sort();for(var o=[],c=0;c=0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(r,n){if(typeof r=="object")for(var s in r){var d=r[s];this.setUniform(s,d)}else this.setUniform(r,n)},get:function(r){var n=this.uniforms[r];if(n)return n.value},attachShader:function(r,n){var s=this.uniforms;this.uniforms=r.createUniforms(),this.shader=r;var d=this.uniforms;this._enabledUniforms=Object.keys(d),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter(function(i){var l=this.uniforms[i].type;return l==="t"||l==="tv"},this);var o=this.vertexDefines,c=this.fragmentDefines;if(this.vertexDefines=_.a.clone(r.vertexDefines),this.fragmentDefines=_.a.clone(r.fragmentDefines),n){for(var f in s)d[f]&&(d[f].value=s[f].value);_.a.defaults(this.vertexDefines,o),_.a.defaults(this.fragmentDefines,c)}var e={};for(var t in r.textures)e[t]={shaderType:r.textures[t].shaderType,type:r.textures[t].type,enabled:n&&this._textureStatus[t]?this._textureStatus[t].enabled:!1};this._textureStatus=e,this._programKey=""},clone:function(){var r=new this.constructor({name:this.name,shader:this.shader});for(var n in this.uniforms)r.uniforms[n].value=this.uniforms[n].value;return r.depthTest=this.depthTest,r.depthMask=this.depthMask,r.transparent=this.transparent,r.blend=this.blend,r.vertexDefines=_.a.clone(this.vertexDefines),r.fragmentDefines=_.a.clone(this.fragmentDefines),r.enableTexture(this.getEnabledTextures()),r.precision=this.precision,r},define:function(r,n,s){var d=this.vertexDefines,o=this.fragmentDefines;r!=="vertex"&&r!=="fragment"&&r!=="both"&&arguments.length<3&&(s=n,n=r,r="both"),s=s!=null?s:null,(r==="vertex"||r==="both")&&d[n]!==s&&(d[n]=s,this._programKey=""),(r==="fragment"||r==="both")&&o[n]!==s&&(o[n]=s,r!=="both"&&(this._programKey=""))},undefine:function(r,n){r!=="vertex"&&r!=="fragment"&&r!=="both"&&arguments.length<2&&(n=r,r="both"),(r==="vertex"||r==="both")&&this.isDefined("vertex",n)&&(delete this.vertexDefines[n],this._programKey=""),(r==="fragment"||r==="both")&&this.isDefined("fragment",n)&&(delete this.fragmentDefines[n],r!=="both"&&(this._programKey=""))},isDefined:function(r,n){switch(r){case"vertex":return this.vertexDefines[n]!==void 0;case"fragment":return this.fragmentDefines[n]!==void 0}},getDefine:function(r,n){switch(r){case"vertex":return this.vertexDefines[n];case"fragment":return this.fragmentDefines[n]}},enableTexture:function(r){if(Array.isArray(r)){for(var n=0;n=t.x&&e>=t.y&&f<=t.x+t.width&&e<=t.y+t.height};var c=new h.a;o.prototype.castRay=function(f,e,t){var i=this.layer.renderer,l=i.viewport;return i.viewport=this.viewport,i.screenToNDC(f,e,c),this.camera.castRay(c,t),i.viewport=l,t},o.prototype.prepareRender=function(){this.scene.update(),this.camera.update(),this._needsSortProgressively=!1;for(var f=0;f30},o.prototype._doRender=function(f,e,t){var i=this.scene,l=this.camera;if(t=t||0,this._updateTransparent(f,i,l,t),e||(this._shadowMapPass.kernelPCF=this._pcfKernels[0],this._shadowMapPass.render(f,i,l,!0)),this._updateShadowPCFKernel(t),f.gl.clearColor(0,0,0,0),this._enablePostEffect&&(this.needsTemporalSS()&&this._temporalSS.jitterProjection(f,l),this._compositor.updateNormal(f,i,l,this._temporalSS.getFrame())),this._updateSSAO(f,i,l,this._temporalSS.getFrame()),this._enablePostEffect){var v=this._compositor.getSourceFrameBuffer();v.bind(f),f.gl.clear(f.gl.DEPTH_BUFFER_BIT|f.gl.COLOR_BUFFER_BIT),f.render(i,l,!0,!0),v.unbind(f),this.needsTemporalSS()&&e?(this._compositor.composite(f,l,this._temporalSS.getSourceFrameBuffer(),this._temporalSS.getFrame()),f.setViewport(this.viewport),this._temporalSS.render(f)):(f.setViewport(this.viewport),this._compositor.composite(f,l,null,0))}else if(this.needsTemporalSS()&&e){var v=this._temporalSS.getSourceFrameBuffer();v.bind(f),f.saveClear(),f.clearBit=f.gl.DEPTH_BUFFER_BIT|f.gl.COLOR_BUFFER_BIT,f.render(i,l,!0,!0),f.restoreClear(),v.unbind(f),f.setViewport(this.viewport),this._temporalSS.render(f)}else f.setViewport(this.viewport),f.render(i,l,!0,!0)},o.prototype._updateTransparent=function(f,e,t,i){for(var l=new u.a,v=new a.a,y=t.getWorldPosition(),p=0;pthis.camera.far||f65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(r){this.triangleCount!==r&&(r===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(r*3):new Uint16Array(r*3))},_getCubicCurveApproxStep:function(r,n,s,d){var o=a.dist(r,n)+a.dist(s,n)+a.dist(d,s),c=1/(o+1)*this.segmentScale;return c},getCubicCurveVertexCount:function(r,n,s,d){var o=this._getCubicCurveApproxStep(r,n,s,d),c=Math.ceil(1/o);return this.useNativeLine?c*2:c*2+2},getCubicCurveTriangleCount:function(r,n,s,d){var o=this._getCubicCurveApproxStep(r,n,s,d),c=Math.ceil(1/o);return this.useNativeLine?0:c*2},getLineVertexCount:function(){return this.getPolylineVertexCount(u)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(u)},getPolylineVertexCount:function(r){var n;if(typeof r=="number")n=r;else{var s=typeof r[0]!="number";n=s?r.length:r.length/3}return this.useNativeLine?(n-1)*2:(n-1)*2+2},getPolylineTriangleCount:function(r){var n;if(typeof r=="number")n=r;else{var s=typeof r[0]!="number";n=s?r.length:r.length/3}return this.useNativeLine?0:Math.max(n-1,0)*2},addCubicCurve:function(r,n,s,d,o,c){c==null&&(c=1);for(var f=r[0],e=r[1],t=r[2],i=n[0],l=n[1],v=n[2],y=s[0],p=s[1],C=s[2],S=d[0],T=d[1],D=d[2],I=this._getCubicCurveApproxStep(r,n,s,d),M=I*I,P=M*I,L=3*I,R=3*M,B=6*M,U=6*P,H=f-i*2+y,K=e-l*2+p,V=t-v*2+C,k=(i-y)*3-f+S,$=(l-p)*3-e+T,ae=(v-C)*3-t+D,le=f,he=e,ge=t,me=(i-f)*L+H*R+k*P,pe=(l-e)*L+K*R+$*P,Ee=(v-t)*L+V*R+ae*P,de=H*B+k*U,ve=K*B+$*U,ce=V*B+ae*U,oe=k*U,X=$*U,ne=ae*U,j=0,re=0,Z=Math.ceil(1/I),ee=new Float32Array((Z+1)*3),ee=[],se=0,re=0;re1&&(le=me>0?Math.min(le,S):Math.max(le,S),he=pe>0?Math.min(he,T):Math.max(he,T),ge=Ee>0?Math.min(ge,D):Math.max(ge,D));return this.addPolyline(ee,o,c)},addLine:function(r,n,s,d){return this.addPolyline([r,n],s,d)},addPolyline:function(r,n,s,d,o){if(r.length){var c=typeof r[0]!="number";if(o==null&&(o=c?r.length:r.length/3),!(o<2)){d==null&&(d=0),s==null&&(s=1),this._itemVertexOffsets.push(this._vertexOffset);var c=typeof r[0]!="number",f=c?typeof n[0]!="number":n.length/4===o,e=this.attributes.position,t=this.attributes.positionPrev,i=this.attributes.positionNext,l=this.attributes.color,v=this.attributes.offset,y=this.indices,p=this._vertexOffset,C,S;s=Math.max(s,.01);for(var T=d;T1&&(e.copy(p,p-1),l.copy(p,p-1),p++):(T0&&(i.set(p-2,C),i.set(p-1,C)),e.set(p,C),e.set(p+1,C),l.set(p,S),l.set(p+1,S),v.set(p,s/2),v.set(p+1,-s/2),p+=2),this.useNativeLine)l.set(p,S),e.set(p,C),p++;else if(T>0){var M=this._triangleOffset*3,y=this.indices;y[M]=p-4,y[M+1]=p-3,y[M+2]=p-2,y[M+3]=p-3,y[M+4]=p-1,y[M+5]=p-2,this._triangleOffset+=2}}if(!this.useNativeLine){var P=this._vertexOffset,L=this._vertexOffset+o*2;t.copy(P,P+2),t.copy(P+1,P+3),i.copy(L-1,L-3),i.copy(L-2,L-4)}return this._vertexOffset=p,this._vertexOffset}}},setItemColor:function(r,n){for(var s=this._itemVertexOffsets[r],d=r0)},render:function(x,m,a){var u=x.gl;if(this.skeleton){this.skeleton.update();var h=this.skeleton.getSubSkinMatrices(this.__uid__,this.joints);a.setUniformOfSemantic(u,"SKIN_MATRIX",h)}return O.a.prototype.render.call(this,x,m,a)},getSkinMatricesTexture:function(){return this._skinMatricesTexture=this._skinMatricesTexture||new _.a({type:A.a.FLOAT,minFilter:A.a.NEAREST,magFilter:A.a.NEAREST,useMipmap:!1,flipY:!1}),this._skinMatricesTexture}});g.POINTS=A.a.POINTS,g.LINES=A.a.LINES,g.LINE_LOOP=A.a.LINE_LOOP,g.LINE_STRIP=A.a.LINE_STRIP,g.TRIANGLES=A.a.TRIANGLES,g.TRIANGLE_STRIP=A.a.TRIANGLE_STRIP,g.TRIANGLE_FAN=A.a.TRIANGLE_FAN,g.BACK=A.a.BACK,g.FRONT=A.a.FRONT,g.FRONT_AND_BACK=A.a.FRONT_AND_BACK,g.CW=A.a.CW,g.CCW=A.a.CCW,w.a=g},function(G,w,E){"use strict";var O=E(6),A=E(11),_=E(21),g=E(66),x=g.a.isPowerOfTwo,m=["px","nx","py","ny","pz","nz"],a=O.a.extend(function(){return{image:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},pixels:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},mipmaps:[]}},{update:function(h){var r=h.gl;r.bindTexture(r.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),this.updateCommon(h);var n=this.format,s=this.type;r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_WRAP_S,this.getAvailableWrapS()),r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_WRAP_T,this.getAvailableWrapT()),r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),r.texParameteri(r.TEXTURE_CUBE_MAP,r.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var d=h.getGLExtension("EXT_texture_filter_anisotropic");if(d&&this.anisotropic>1&&r.texParameterf(r.TEXTURE_CUBE_MAP,d.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),s===36193){var o=h.getGLExtension("OES_texture_half_float");o||(s=A.a.FLOAT)}if(this.mipmaps.length)for(var c=this.width,f=this.height,e=0;e0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(r)),r.name&&(this._nodeRepository[r.name]=r)},removeFromScene:function(r){if(r instanceof _.a){var n=this._cameraList.indexOf(r);n>=0&&this._cameraList.splice(n,1)}r.name&&delete this._nodeRepository[r.name]},getNode:function(r){return this._nodeRepository[r]},cloneNode:function(r){var n=r.clone(),s={},d=function(c,f){c.skeleton&&(f.skeleton=c.skeleton.clone(r,n),f.joints=c.joints.slice()),c.material&&(s[c.material.__uid__]={oldMat:c.material});for(var e=0;e0&&this._updateRenderList(d)}},_updateLightUniforms:function(){var r=this.lights;r.sort(h);var n=this._lightUniforms;for(var s in n)for(var d in n[s])n[s][d].value.length=0;for(var o=0;o0?O[A].value=new Float32Array(O[A].value):O[A].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}}},function(G,w,E){"use strict";var O=E(2),A=E(57),_=E(56),g=E(0),x=E.n(g);function m(){}m.prototype={constructor:m,setScene:function(a){this._scene=a,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(a){this._lightRoot=a,this.mainLight=new O.a.DirectionalLight({shadowBias:.005}),this.ambientLight=new O.a.AmbientLight,a.add(this.mainLight),a.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(a){var u=this.mainLight,h=this.ambientLight,r=a.getModel("light"),n=r.getModel("main"),s=r.getModel("ambient");u.intensity=n.get("intensity"),h.intensity=s.get("intensity"),u.color=O.a.parseColor(n.get("color")).slice(0,3),h.color=O.a.parseColor(s.get("color")).slice(0,3);var d=n.get("alpha")||0,o=n.get("beta")||0;u.position.setArray(O.a.directionFromAlphaBeta(d,o)),u.lookAt(O.a.Vector3.ZERO),u.castShadow=n.get("shadow"),u.shadowResolution=O.a.getShadowResolution(n.get("shadowQuality"))},updateAmbientCubemap:function(a,u,h){var r=u.getModel("light.ambientCubemap"),n=r.get("texture");if(n){this._cubemapLightsCache=this._cubemapLightsCache||{};var s=this._cubemapLightsCache[n];if(!s){var d=this;s=this._cubemapLightsCache[n]=O.a.createAmbientCubemap(r.option,a,h,function(){d._skybox instanceof A.a&&d._skybox.setEnvironmentMap(s.specular.cubemap),h.getZr().refresh()})}this._lightRoot.add(s.diffuse),this._lightRoot.add(s.specular),this._currentCubemapLights=s}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(a,u,h){var r=u.get("environment"),n=this;function s(){return n._skybox instanceof A.a||(n._skybox&&n._skybox.dispose(a),n._skybox=new A.a),n._skybox}function d(){return n._skybox instanceof _.a||(n._skybox&&n._skybox.dispose(a),n._skybox=new _.a),n._skybox}if(r&&r!=="none")if(r==="auto")if(this._currentCubemapLights){var o=s(),c=this._currentCubemapLights.specular.cubemap;o.setEnvironmentMap(c),this._scene&&o.attachScene(this._scene),o.material.set("lod",2)}else this._skybox&&this._skybox.detachScene();else if(typeof r=="object"&&r.colorStops||typeof r=="string"&&x.a.color.parse(r)){var f=d(),e=new O.a.Texture2D({anisotropic:8,flipY:!1});f.setEnvironmentMap(e);var t=e.image=document.createElement("canvas");t.width=t.height=16;var i=t.getContext("2d"),l=new x.a.graphic.Rect({shape:{x:0,y:0,width:16,height:16},style:{fill:r}});l.brush(i),f.attachScene(this._scene)}else{var f=d(),e=O.a.loadTexture(r,h,{anisotropic:8,flipY:!1});f.setEnvironmentMap(e),f.attachScene(this._scene)}else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var v=u.coordinateSystem;if(this._skybox)if(v&&v.viewGL&&r!=="auto"&&!(r.match&&r.match(/.hdr$/))){var y=v.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[y]("fragment","SRGB_DECODE")}else this._skybox.material.undefine("fragment","SRGB_DECODE")}},w.a=m},function(G,w,E){"use strict";var O=E(0),A=E.n(O);function _(g,x){var m=[];return A.a.util.each(g.dimensions,function(a){var u=g.getDimensionInfo(a),h=u.otherDims,r=h[x];r!=null&&r!==!1&&(m[r]=u.name)}),m}w.a=function(g,x,m){function a(c){var f=!0,e=[],t=_(u,"tooltip");t.length?A.a.util.each(t,function(l){i(u.get(l,x),l)}):A.a.util.each(c,i);function i(l,v){var y=u.getDimensionInfo(v);if(!(!y||y.otherDims.tooltip===!1)){var p=y.type,C=(f?"- "+(y.tooltipName||y.name)+": ":"")+(p==="ordinal"?l+"":p==="time"?m?"":A.a.format.formatTime("yyyy/MM/dd hh:mm:ss",l):A.a.format.addCommas(l));C&&e.push(A.a.format.encodeHTML(C))}}return(f?"
":"")+e.join(f?"
":", ")}var u=g.getData(),h=g.getRawValue(x),r=A.a.util.isArray(h)?a(h):A.a.format.encodeHTML(A.a.format.addCommas(h)),n=u.getName(x),s=u.getItemVisual(x,"color");A.a.util.isObject(s)&&s.colorStops&&(s=(s.colorStops[0]||{}).color),s=s||"transparent";var d=A.a.format.getTooltipMarker(s),o=g.name;return o==="\0-"&&(o=""),o=o?A.a.format.encodeHTML(o)+(m?": ":"
"):"",m?d+o+r:o+d+(n?A.a.format.encodeHTML(n)+": "+r:r)}},function(G,w,E){"use strict";var O=E(51),A=O.a.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var _=this.fov/180*Math.PI;this.projectionMatrix.perspective(_,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var _=this.projectionMatrix.array,g=Math.atan(1/_[5])*2;this.fov=g/Math.PI*180,this.aspect=_[5]/_[0],this.near=_[14]/(_[10]-1),this.far=_[14]/(_[10]+1)},clone:function(){var _=O.a.prototype.clone.call(this);return _.fov=this.fov,_.aspect=this.aspect,_.near=this.near,_.far=this.far,_}});w.a=A},function(G,w,E){"use strict";var O=E(13),A=E(15),_=O.a.extend({dynamic:!1,widthSegments:1,heightSegments:1},function(){this.build()},{build:function(){for(var g=this.heightSegments,x=this.widthSegments,m=this.attributes,a=[],u=[],h=[],r=[],n=0;n<=g;n++)for(var s=n/g,d=0;d<=x;d++){var o=d/x;if(a.push([2*o-1,2*s-1,0]),u&&u.push([o,s]),h&&h.push([0,0,1]),d0&&this._notFirst?this.animateTo({alpha:i,beta:l,center:v,distance:c,targetOrthographicSize:f,easing:t.animationEasingUpdate,duration:t.animationDurationUpdate}):(this.setDistance(c),this.setAlpha(i),this.setBeta(l),this.setCenter(v),this.setOrthographicSize(f)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){a[this.panMouseButton]==null&&console.error("Unkown panMouseButton %s. It should be left|middle|right",this.panMouseButton),a[this.rotateMouseButton]==null&&console.error("Unkown rotateMouseButton %s. It should be left|middle|right",this.rotateMouseButton),this.autoRotateDirection!=="cw"&&this.autoRotateDirection!=="ccw"&&console.error("Unkown autoRotateDirection %s. It should be cw|ccw",this.autoRotateDirection)},animateTo:function(r){var n=this.zr,s=this,d={},o={};return r.distance!=null&&(d.distance=this.getDistance(),o.distance=r.distance),r.orthographicSize!=null&&(d.orthographicSize=this.getOrthographicSize(),o.orthographicSize=r.orthographicSize),r.alpha!=null&&(d.alpha=this.getAlpha(),o.alpha=r.alpha),r.beta!=null&&(d.beta=this.getBeta(),o.beta=r.beta),r.center!=null&&(d.center=this.getCenter(),o.center=r.center),this._addAnimator(n.animation.animate(d).when(r.duration||1e3,o).during(function(){d.alpha!=null&&s.setAlpha(d.alpha),d.beta!=null&&s.setBeta(d.beta),d.distance!=null&&s.setDistance(d.distance),d.center!=null&&s.setCenter(d.center),d.orthographicSize!=null&&s.setOrthographicSize(d.orthographicSize),s._needsUpdate=!0})).start(r.easing||"linear")},stopAllAnimation:function(){for(var r=0;r0},_update:function(r){if(this._rotating){var n=(this.autoRotateDirection==="cw"?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=n*r/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(r=Math.min(r,50),this._updateDistanceOrSize(r),this._updatePan(r),this._updateRotate(r),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(r){var n=this._rotateVelocity;this._phi=n.y*r/20+this._phi,this._theta=n.x*r/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(n,Math.pow(this.damping,r/16))},_updateDistanceOrSize:function(r){this._projection==="perspective"?this._setDistance(this._distance+this._zoomSpeed*r/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*r/20),this._zoomSpeed*=Math.pow(this.damping,r/16)},_setDistance:function(r){this._distance=Math.max(Math.min(r,this.maxDistance),this.minDistance)},_setOrthoSize:function(r){this._orthoSize=Math.max(Math.min(r,this.maxOrthographicSize),this.minOrthographicSize);var n=this.getCamera(),s=this._orthoSize,d=s/this.viewGL.viewport.height*this.viewGL.viewport.width;n.left=-d/2,n.right=d/2,n.top=s/2,n.bottom=-s/2},_updatePan:function(r){var n=this._panVelocity,s=this._distance,d=this.getCamera(),o=d.worldTransform.y,c=d.worldTransform.x;this._center.scaleAndAdd(c,-n.x*s/200).scaleAndAdd(o,-n.y*s/200),this._vectorDamping(n,0)},_updateTransform:function(){var r=this.getCamera(),n=new _.a,s=this._theta+Math.PI/2,d=this._phi+Math.PI/2,o=Math.sin(s);n.x=o*Math.cos(d),n.y=-Math.cos(s),n.z=o*Math.sin(d),r.position.copy(this._center).scaleAndAdd(n,this._distance),r.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var r=this.autoRotateAfterStill,n=this;!isNaN(r)&&r>0&&(this._stillTimeout=setTimeout(function(){n._rotating=!0},r*1e3))},_vectorDamping:function(r,n){var s=r.len();s=s*n,s<1e-4&&(s=0),r.normalize().scale(s)},_decomposeTransform:function(){if(this.getCamera()){this.getCamera().updateWorldTransform();var r=this.getCamera().worldTransform.z,n=Math.asin(r.y),s=Math.atan2(r.x,r.z);this._theta=n,this._phi=-s,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(r){if(!r.target&&!this._isAnimating()){var n=r.offsetX,s=r.offsetY;this.viewGL&&!this.viewGL.containPoint(n,s)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),r.event.targetTouches?r.event.targetTouches.length===1&&(this._mode="rotate"):r.event.button===a[this.rotateMouseButton]?this._mode="rotate":r.event.button===a[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=r.offsetX,this._mouseY=r.offsetY)}},_mouseMoveHandler:function(r){if(!(r.target&&r.target.__isGLToZRProxy)&&!this._isAnimating()){var n=u(this.panSensitivity),s=u(this.rotateSensitivity);this._mode==="rotate"?(this._rotateVelocity.y=(r.offsetX-this._mouseX)/this.zr.getHeight()*2*s[0],this._rotateVelocity.x=(r.offsetY-this._mouseY)/this.zr.getWidth()*2*s[1]):this._mode==="pan"&&(this._panVelocity.x=(r.offsetX-this._mouseX)/this.zr.getWidth()*n[0]*400,this._panVelocity.y=(-r.offsetY+this._mouseY)/this.zr.getHeight()*n[1]*400),this._mouseX=r.offsetX,this._mouseY=r.offsetY,r.event.preventDefault()}},_mouseWheelHandler:function(r){if(!this._isAnimating()){var n=r.event.wheelDelta||-r.event.detail;this._zoomHandler(r,n)}},_pinchHandler:function(r){this._isAnimating()||(this._zoomHandler(r,r.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(r,n){if(n!==0){var s=r.offsetX,d=r.offsetY;if(!(this.viewGL&&!this.viewGL.containPoint(s,d))){var o;this._projection==="perspective"?o=Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):o=Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(n>0?-1:1)*o*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&this._mode==="rotate"&&this._startCountingStill(),r.event.preventDefault()}}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return this.rotateMouseButton==="right"||this.panMouseButton==="right"},_contextMenuHandler:function(r){this._isRightMouseButtonUsed()&&r.preventDefault()},_addAnimator:function(r){var n=this._animators;return n.push(r),r.done(function(){var s=n.indexOf(r);s>=0&&n.splice(s,1)}),r}});Object.defineProperty(h.prototype,"autoRotate",{get:function(r){return this._autoRotate},set:function(r){this._autoRotate=r,this._rotating=r}}),w.a=h},function(G,w,E){"use strict";w.a=`@export ecgl.lines3D.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec3 position: POSITION; attribute vec4 a_Color : COLOR; varying vec4 v_Color; void main() { gl_Position = worldViewProjection * vec4(position, 1.0); v_Color = a_Color; } @end @export ecgl.lines3D.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; varying vec4 v_Color; @import clay.util.srgb void main() { #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(color * v_Color); #else gl_FragColor = color * v_Color; #endif } @end @export ecgl.lines3D.clipNear vec4 clipNear(vec4 p1, vec4 p2) { float n = (p1.w - near) / (p1.w - p2.w); return vec4(mix(p1.xy, p2.xy, n), -near, near); } @end @export ecgl.lines3D.expandLine #ifdef VERTEX_ANIMATION vec4 prevProj = worldViewProjection * vec4(mix(prevPositionPrev, positionPrev, percent), 1.0); vec4 currProj = worldViewProjection * vec4(mix(prevPosition, position, percent), 1.0); vec4 nextProj = worldViewProjection * vec4(mix(prevPositionNext, positionNext, percent), 1.0); #else vec4 prevProj = worldViewProjection * vec4(positionPrev, 1.0); vec4 currProj = worldViewProjection * vec4(position, 1.0); vec4 nextProj = worldViewProjection * vec4(positionNext, 1.0); #endif if (currProj.w < 0.0) { if (nextProj.w > 0.0) { currProj = clipNear(currProj, nextProj); } else if (prevProj.w > 0.0) { currProj = clipNear(currProj, prevProj); } } vec2 prevScreen = (prevProj.xy / abs(prevProj.w) + 1.0) * 0.5 * viewport.zw; vec2 currScreen = (currProj.xy / abs(currProj.w) + 1.0) * 0.5 * viewport.zw; vec2 nextScreen = (nextProj.xy / abs(nextProj.w) + 1.0) * 0.5 * viewport.zw; vec2 dir; float len = offset; if (position == positionPrev) { dir = normalize(nextScreen - currScreen); } else if (position == positionNext) { dir = normalize(currScreen - prevScreen); } else { vec2 dirA = normalize(currScreen - prevScreen); vec2 dirB = normalize(nextScreen - currScreen); vec2 tanget = normalize(dirA + dirB); float miter = 1.0 / max(dot(tanget, dirA), 0.5); len *= miter; dir = tanget; } dir = vec2(-dir.y, dir.x) * len; currScreen += dir; currProj.xy = (currScreen / viewport.zw - 0.5) * 2.0 * abs(currProj.w); @end @export ecgl.meshLines3D.vertex attribute vec3 position: POSITION; attribute vec3 positionPrev; attribute vec3 positionNext; attribute float offset; attribute vec4 a_Color : COLOR; #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; attribute vec3 prevPositionPrev; attribute vec3 prevPositionNext; uniform float percent : 1.0; #endif uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform vec4 viewport : VIEWPORT; uniform float near : NEAR; varying vec4 v_Color; @import ecgl.common.wireframe.vertexHeader @import ecgl.lines3D.clipNear void main() { @import ecgl.lines3D.expandLine gl_Position = currProj; v_Color = a_Color; @import ecgl.common.wireframe.vertexMain } @end @export ecgl.meshLines3D.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; varying vec4 v_Color; @import ecgl.common.wireframe.fragmentHeader @import clay.util.srgb void main() { #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(color * v_Color); #else gl_FragColor = color * v_Color; #endif @import ecgl.common.wireframe.fragmentMain } @end`},function(G,w,E){var O=E(12),A=E(75),_=E(78),g=_.parsePercent,x=E(149),m=O.each,a=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function h(l,v,y,p,C){var S=0,T=0;p==null&&(p=1/0),C==null&&(C=1/0);var D=0;v.eachChild(function(I,M){var P=I.position,L=I.getBoundingRect(),R=v.childAt(M+1),B=R&&R.getBoundingRect(),U,H;if(l==="horizontal"){var K=L.width+(B?-B.x+L.x:0);U=S+K,U>p||I.newline?(S=0,U=K,T+=D+y,D=L.height):D=Math.max(D,L.height)}else{var V=L.height+(B?-B.y+L.y:0);H=T+V,H>C||I.newline?(S+=D+y,T=0,H=V,D=L.width):D=Math.max(D,L.width)}I.newline||(P[0]=S,P[1]=T,l==="horizontal"?S=U+y:T=H+y)})}var r=h,n=O.curry(h,"vertical"),s=O.curry(h,"horizontal");function d(l,v,y){var p=v.width,C=v.height,S=g(l.x,p),T=g(l.y,C),D=g(l.x2,p),I=g(l.y2,C);return(isNaN(S)||isNaN(parseFloat(l.x)))&&(S=0),(isNaN(D)||isNaN(parseFloat(l.x2)))&&(D=p),(isNaN(T)||isNaN(parseFloat(l.y)))&&(T=0),(isNaN(I)||isNaN(parseFloat(l.y2)))&&(I=C),y=x.normalizeCssArray(y||0),{width:Math.max(D-S-y[1]-y[3],0),height:Math.max(I-T-y[0]-y[2],0)}}function o(l,v,y){y=x.normalizeCssArray(y||0);var p=v.width,C=v.height,S=g(l.left,p),T=g(l.top,C),D=g(l.right,p),I=g(l.bottom,C),M=g(l.width,p),P=g(l.height,C),L=y[2]+y[0],R=y[1]+y[3],B=l.aspect;switch(isNaN(M)&&(M=p-D-R-S),isNaN(P)&&(P=C-I-L-T),B!=null&&(isNaN(M)&&isNaN(P)&&(B>p/C?M=p*.8:P=C*.8),isNaN(M)&&(M=B*P),isNaN(P)&&(P=M/B)),isNaN(S)&&(S=p-D-M-R),isNaN(T)&&(T=C-I-P-L),l.left||l.right){case"center":S=p/2-M/2-y[3];break;case"right":S=p-M-R;break}switch(l.top||l.bottom){case"middle":case"center":T=C/2-P/2-y[0];break;case"bottom":T=C-P-L;break}S=S||0,T=T||0,isNaN(M)&&(M=p-R-S-(D||0)),isNaN(P)&&(P=C-L-T-(I||0));var U=new A(S+y[3],T+y[0],M,P);return U.margin=y,U}function c(l,v,y,p,C){var S=!C||!C.hv||C.hv[0],T=!C||!C.hv||C.hv[1],D=C&&C.boundingMode||"all";if(!(!S&&!T)){var I;if(D==="raw")I=l.type==="group"?new A(0,0,+v.width||0,+v.height||0):l.getBoundingRect();else if(I=l.getBoundingRect(),l.needLocalTransform()){var M=l.getLocalTransform();I=I.clone(),I.applyTransform(M)}v=o(O.defaults({width:I.width,height:I.height},v),y,p);var P=l.position,L=S?v.x-I.x:0,R=T?v.y-I.y:0;l.attr("position",D==="raw"?[L,R]:[P[0]+L,P[1]+R])}}function f(l,v){return l[u[v][0]]!=null||l[u[v][1]]!=null&&l[u[v][2]]!=null}function e(l,v,y){!O.isObject(y)&&(y={});var p=y.ignoreSize;!O.isArray(p)&&(p=[p,p]);var C=T(u[0],0),S=T(u[1],1);M(u[0],l,C),M(u[1],l,S);function T(P,L){var R={},B=0,U={},H=0,K=2;if(m(P,function($){U[$]=l[$]}),m(P,function($){D(v,$)&&(R[$]=U[$]=v[$]),I(R,$)&&B++,I(U,$)&&H++}),p[L])return I(v,P[1])?U[P[2]]=null:I(v,P[2])&&(U[P[1]]=null),U;if(H===K||!B)return U;if(B>=K)return R;for(var V=0;V0){var g=this.outputs[_];g.keepLastFrame?(this._prevOutputTextures[_]&&this._compositor.releaseTexture(this._prevOutputTextures[_]),this._prevOutputTextures[_]=this._outputTextures[_]):this._compositor.releaseTexture(this._outputTextures[_])}}});w.a=A},function(G,w,E){"use strict";function O(A,_){for(var g=0,x=1/_,m=A;m>0;)g=g+x*(m%_),m=Math.floor(m/_),x=x/_;return g}w.a=O},function(G,w,E){"use strict";var O=E(0),A=E.n(O);w.a=function(_,g,x){x=x||_.getSource();var m=g||A.a.getCoordinateSystemDimensions(_.get("coordinateSystem"))||["x","y","z"],a=A.a.helper.createDimensions(x,{dimensionsDefine:x.dimensionsDefine||_.get("dimensions"),encodeDefine:x.encodeDefine||_.get("encode"),coordDimensions:m.map(function(h){var r=_.getReferringComponents(h+"Axis3D")[0];return{type:r&&r.get("type")==="category"?"ordinal":"float",name:h,stackable:h==="z"}})});_.get("coordinateSystem")==="cartesian3D"&&a.forEach(function(h){if(m.indexOf(h.coordDim)>=0){var r=_.getReferringComponents(h.coordDim+"Axis3D")[0];r&&r.get("type")==="category"&&(h.ordinalMeta=r.getOrdinalMeta())}});var u=new A.a.List(a,_);return u.initData(x),u}},function(G,w){function E(O,A,_){return{seriesType:O,performRawSeries:!0,reset:function(g,x,m){var a=g.getData(),u=g.get("symbol")||A,h=g.get("symbolSize");if(a.setVisual({legendSymbol:_||u,symbol:u,symbolSize:h}),x.isSeriesFiltered(g))return;var r=typeof h=="function";function n(s,d){if(typeof h=="function"){var o=g.getRawValue(d),c=g.getDataParams(d);s.setItemVisual(d,"symbolSize",h(o,c))}if(s.hasItemOption){var f=s.getItemModel(d),e=f.getShallow("symbol",!0),t=f.getShallow("symbolSize",!0);e!=null&&s.setItemVisual(d,"symbol",e),t!=null&&s.setItemVisual(d,"symbolSize",t)}}return{dataEach:a.hasItemOption||r?n:null}}}}G.exports=E},function(G,w,E){"use strict";var O=E(8),A=E(92),_=E(11),g=E(18),x=E(15),m=E(9),a=E(17),u=E(23),h=E(96),r=E(7),n=E(98),s=E(63),d=E(1),o=E.n(d);r.a.import(n.a),r.a.import(s.a);var c=o.a.mat4,f=o.a.vec3,e=c.create,t={};function i(p){return p.material}function l(){}var v=O.a.extend(function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}},function(){this.canvas||(this.canvas=document.createElement("canvas"));var p=this.canvas;try{var C={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=p.getContext("webgl",C)||p.getContext("experimental-webgl",C),!this.gl)throw new Error;this._glinfo=new A.a(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(S){throw"Error creating WebGL Context "+S}this._programMgr=new h.a(this)},{resize:function(p,C){var S=this.canvas,T=this.devicePixelRatio;p!=null?(S.style.width=p+"px",S.style.height=C+"px",S.width=p*T,S.height=C*T,this._width=p,this._height=C):(this._width=S.width/T,this._height=S.height/T),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var p=this.viewport;return p.width/p.height},setDevicePixelRatio:function(p){this.devicePixelRatio=p,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(p){return this._glinfo.getExtension(p)},getGLParameter:function(p){return this._glinfo.getParameter(p)},setViewport:function(p,C,S,T,D){if(typeof p=="object"){var I=p;p=I.x,C=I.y,S=I.width,T=I.height,D=I.devicePixelRatio}D=D||this.devicePixelRatio,this.gl.viewport(p*D,C*D,S*D,T*D),this.viewport={x:p,y:C,width:S,height:T,devicePixelRatio:D}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var p=this._clearStack.pop();this.clearColor=p.clearColor,this.clearBit=p.clearBit}},bindSceneRendering:function(p){this._sceneRendering=p},render:function(p,C,S,T){var D=this.gl,I=this.clearColor;if(this.clearBit){D.colorMask(!0,!0,!0,!0),D.depthMask(!0);var M=this.viewport,P=!1,L=M.devicePixelRatio;(M.width!==this._width||M.height!==this._height||L&&L!==this.devicePixelRatio||M.x||M.y)&&(P=!0,D.enable(D.SCISSOR_TEST),D.scissor(M.x*L,M.y*L,M.width*L,M.height*L)),D.clearColor(I[0],I[1],I[2],I[3]),D.clear(this.clearBit),P&&D.disable(D.SCISSOR_TEST)}if(S||p.update(!1),C=C||p.getMainCamera(),!C){console.error("Can't find camera in the scene.");return}C.getScene()||C.update(!0),this._sceneRendering=p,p.viewBoundingBoxLastFrame.min.set(1/0,1/0,1/0),p.viewBoundingBoxLastFrame.max.set(-1/0,-1/0,-1/0);var R=this.cullRenderList(p.opaqueList,p,C),B=this.cullRenderList(p.transparentList,p,C),U=p.material;p.trigger("beforerender",this,p,C),T?(this.renderPreZ(R,p,C),D.depthFunc(D.LEQUAL)):D.depthFunc(D.LESS);for(var H=e(),K=f.create(),V=0;V0){var P=p[D-1],L=P.joints?P.joints.length:0,R=I.joints.length?I.joints.length:0;if(R===L&&I.material===P.material&&I.lightGroup===P.lightGroup){I.__program=P.__program;continue}}var B=this._programMgr.getProgram(I,M,C);this.validateProgram(B),I.__program=B}},cullRenderList:function(p,C,S){for(var T=[],D=0;D0&&p.min.array[2]<0&&(p.max.array[2]=-1e-20),p.applyProjection(C);var L=p.min.array,R=p.max.array;if(R[0]<-1||L[0]>1||R[1]<-1||L[1]>1||R[2]<-1||L[2]>1)return!0}return!1}}(),disposeScene:function(p){this.disposeNode(p,!0,!0),p.dispose()},disposeNode:function(p,C,S){p.getParent()&&p.getParent().remove(p),p.traverse(function(T){T.geometry&&C&&T.geometry.dispose(this),T.dispose&&T.dispose(this)},this)},disposeGeometry:function(p){p.dispose(this)},disposeTexture:function(p){p.dispose(this)},disposeFrameBuffer:function(p){p.dispose(this)},dispose:function(){},screenToNDC:function(p,C,S){S||(S=new u.a),C=this._height-C;var T=this.viewport,D=S.array;return D[0]=(p-T.x)/T.width,D[0]=D[0]*2-1,D[1]=(C-T.y)/T.height,D[1]=D[1]*2-1,S}});v.opaqueSortCompare=v.prototype.opaqueSortCompare=function(p,C){return p.renderOrder===C.renderOrder?p.__program===C.__program?p.material===C.material?p.geometry.__uid__-C.geometry.__uid__:p.material.__uid__-C.material.__uid__:p.__program&&C.__program?p.__program.__uid__-C.__program.__uid__:0:p.renderOrder-C.renderOrder},v.transparentSortCompare=v.prototype.transparentSortCompare=function(p,C){return p.renderOrder===C.renderOrder?p.__depth===C.__depth?p.__program===C.__program?p.material===C.material?p.geometry.__uid__-C.geometry.__uid__:p.material.__uid__-C.material.__uid__:p.__program&&C.__program?p.__program.__uid__-C.__program.__uid__:0:p.__depth-C.__depth:p.renderOrder-C.renderOrder};var y={IDENTITY:e(),WORLD:e(),VIEW:e(),PROJECTION:e(),WORLDVIEW:e(),VIEWPROJECTION:e(),WORLDVIEWPROJECTION:e(),WORLDINVERSE:e(),VIEWINVERSE:e(),PROJECTIONINVERSE:e(),WORLDVIEWINVERSE:e(),VIEWPROJECTIONINVERSE:e(),WORLDVIEWPROJECTIONINVERSE:e(),WORLDTRANSPOSE:e(),VIEWTRANSPOSE:e(),PROJECTIONTRANSPOSE:e(),WORLDVIEWTRANSPOSE:e(),VIEWPROJECTIONTRANSPOSE:e(),WORLDVIEWPROJECTIONTRANSPOSE:e(),WORLDINVERSETRANSPOSE:e(),VIEWINVERSETRANSPOSE:e(),PROJECTIONINVERSETRANSPOSE:e(),WORLDVIEWINVERSETRANSPOSE:e(),VIEWPROJECTIONINVERSETRANSPOSE:e(),WORLDVIEWPROJECTIONINVERSETRANSPOSE:e()};v.COLOR_BUFFER_BIT=_.a.COLOR_BUFFER_BIT,v.DEPTH_BUFFER_BIT=_.a.DEPTH_BUFFER_BIT,v.STENCIL_BUFFER_BIT=_.a.STENCIL_BUFFER_BIT,w.a=v},function(G,w,E){"use strict";function O(_,g){this.action=_,this.context=g}var A={trigger:function(_){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(_)){var g=this.__handlers__[_],x=g.length,m=-1,a=arguments;switch(a.length){case 1:for(;++mf)){var e=Math.sqrt(f-c),t=d-e,i=d+e;return r||(r=new O.a),t<0?i<0?null:(g.scaleAndAdd(r.array,n,s,i),r):(g.scaleAndAdd(r.array,n,s,t),r)}}}(),intersectBoundingBox:function(a,u){var h=this.direction.array,r=this.origin.array,n=a.min.array,s=a.max.array,d=1/h[0],o=1/h[1],c=1/h[2],f,e,t,i,l,v;if(d>=0?(f=(n[0]-r[0])*d,e=(s[0]-r[0])*d):(e=(n[0]-r[0])*d,f=(s[0]-r[0])*d),o>=0?(t=(n[1]-r[1])*o,i=(s[1]-r[1])*o):(i=(n[1]-r[1])*o,t=(s[1]-r[1])*o),f>i||t>e||((t>f||f!==f)&&(f=t),(i=0?(l=(n[2]-r[2])*c,v=(s[2]-r[2])*c):(v=(n[2]-r[2])*c,l=(s[2]-r[2])*c),f>v||l>e)||((l>f||f!==f)&&(f=l),(v=0?f:e;return u||(u=new O.a),g.scaleAndAdd(u.array,r,h,y),u},intersectTriangle:function(){var a=g.create(),u=g.create(),h=g.create(),r=g.create();return function(n,s,d,o,c,f){var e=this.direction.array,t=this.origin.array;n=n.array,s=s.array,d=d.array,g.sub(a,s,n),g.sub(u,d,n),g.cross(r,u,e);var i=g.dot(a,r);if(o){if(i>-x)return null}else if(i>-x&&i1)return null;g.cross(r,a,h);var v=g.dot(e,r)/i;if(v<0||v>1||l+v>1)return null;g.cross(r,a,u);var y=-g.dot(h,r)/i;return y<0?null:(c||(c=new O.a),f&&O.a.set(f,1-l-v,l,v),g.scaleAndAdd(c.array,t,e,y),c)}}(),applyTransform:function(a){O.a.add(this.direction,this.direction,this.origin),O.a.transformMat4(this.origin,this.origin,a),O.a.transformMat4(this.direction,this.direction,a),O.a.sub(this.direction,this.direction,this.origin),O.a.normalize(this.direction,this.direction)},copy:function(a){O.a.copy(this.origin,a.origin),O.a.copy(this.direction,a.direction)},clone:function(){var a=new m;return a.copy(this),a}},w.a=m},function(G,w,E){"use strict";var O=E(1),A=E.n(O),_=A.a.quat,g=function(a,u,h,r){a=a||0,u=u||0,h=h||0,r=r===void 0?1:r,this.array=_.fromValues(a,u,h,r),this._dirty=!0};g.prototype={constructor:g,add:function(a){return _.add(this.array,this.array,a.array),this._dirty=!0,this},calculateW:function(){return _.calculateW(this.array,this.array),this._dirty=!0,this},set:function(a,u,h,r){return this.array[0]=a,this.array[1]=u,this.array[2]=h,this.array[3]=r,this._dirty=!0,this},setArray:function(a){return this.array[0]=a[0],this.array[1]=a[1],this.array[2]=a[2],this.array[3]=a[3],this._dirty=!0,this},clone:function(){return new g(this.x,this.y,this.z,this.w)},conjugate:function(){return _.conjugate(this.array,this.array),this._dirty=!0,this},copy:function(a){return _.copy(this.array,a.array),this._dirty=!0,this},dot:function(a){return _.dot(this.array,a.array)},fromMat3:function(a){return _.fromMat3(this.array,a.array),this._dirty=!0,this},fromMat4:function(){var a=A.a.mat3,u=a.create();return function(h){return a.fromMat4(u,h.array),a.transpose(u,u),_.fromMat3(this.array,u),this._dirty=!0,this}}(),identity:function(){return _.identity(this.array),this._dirty=!0,this},invert:function(){return _.invert(this.array,this.array),this._dirty=!0,this},len:function(){return _.len(this.array)},length:function(){return _.length(this.array)},lerp:function(a,u,h){return _.lerp(this.array,a.array,u.array,h),this._dirty=!0,this},mul:function(a){return _.mul(this.array,this.array,a.array),this._dirty=!0,this},mulLeft:function(a){return _.multiply(this.array,a.array,this.array),this._dirty=!0,this},multiply:function(a){return _.multiply(this.array,this.array,a.array),this._dirty=!0,this},multiplyLeft:function(a){return _.multiply(this.array,a.array,this.array),this._dirty=!0,this},normalize:function(){return _.normalize(this.array,this.array),this._dirty=!0,this},rotateX:function(a){return _.rotateX(this.array,this.array,a),this._dirty=!0,this},rotateY:function(a){return _.rotateY(this.array,this.array,a),this._dirty=!0,this},rotateZ:function(a){return _.rotateZ(this.array,this.array,a),this._dirty=!0,this},rotationTo:function(a,u){return _.rotationTo(this.array,a.array,u.array),this._dirty=!0,this},setAxes:function(a,u,h){return _.setAxes(this.array,a.array,u.array,h.array),this._dirty=!0,this},setAxisAngle:function(a,u){return _.setAxisAngle(this.array,a.array,u),this._dirty=!0,this},slerp:function(a,u,h){return _.slerp(this.array,a.array,u.array,h),this._dirty=!0,this},sqrLen:function(){return _.sqrLen(this.array)},squaredLength:function(){return _.squaredLength(this.array)},fromEuler:function(a,u){return g.fromEuler(this,a,u)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var x=Object.defineProperty;if(x){var m=g.prototype;x(m,"x",{get:function(){return this.array[0]},set:function(a){this.array[0]=a,this._dirty=!0}}),x(m,"y",{get:function(){return this.array[1]},set:function(a){this.array[1]=a,this._dirty=!0}}),x(m,"z",{get:function(){return this.array[2]},set:function(a){this.array[2]=a,this._dirty=!0}}),x(m,"w",{get:function(){return this.array[3]},set:function(a){this.array[3]=a,this._dirty=!0}})}g.add=function(a,u,h){return _.add(a.array,u.array,h.array),a._dirty=!0,a},g.set=function(a,u,h,r,n){_.set(a.array,u,h,r,n),a._dirty=!0},g.copy=function(a,u){return _.copy(a.array,u.array),a._dirty=!0,a},g.calculateW=function(a,u){return _.calculateW(a.array,u.array),a._dirty=!0,a},g.conjugate=function(a,u){return _.conjugate(a.array,u.array),a._dirty=!0,a},g.identity=function(a){return _.identity(a.array),a._dirty=!0,a},g.invert=function(a,u){return _.invert(a.array,u.array),a._dirty=!0,a},g.dot=function(a,u){return _.dot(a.array,u.array)},g.len=function(a){return _.length(a.array)},g.lerp=function(a,u,h,r){return _.lerp(a.array,u.array,h.array,r),a._dirty=!0,a},g.slerp=function(a,u,h,r){return _.slerp(a.array,u.array,h.array,r),a._dirty=!0,a},g.mul=function(a,u,h){return _.multiply(a.array,u.array,h.array),a._dirty=!0,a},g.multiply=g.mul,g.rotateX=function(a,u,h){return _.rotateX(a.array,u.array,h),a._dirty=!0,a},g.rotateY=function(a,u,h){return _.rotateY(a.array,u.array,h),a._dirty=!0,a},g.rotateZ=function(a,u,h){return _.rotateZ(a.array,u.array,h),a._dirty=!0,a},g.setAxisAngle=function(a,u,h){return _.setAxisAngle(a.array,u.array,h),a._dirty=!0,a},g.normalize=function(a,u){return _.normalize(a.array,u.array),a._dirty=!0,a},g.sqrLen=function(a){return _.sqrLen(a.array)},g.squaredLength=g.sqrLen,g.fromMat3=function(a,u){return _.fromMat3(a.array,u.array),a._dirty=!0,a},g.setAxes=function(a,u,h,r){return _.setAxes(a.array,u.array,h.array,r.array),a._dirty=!0,a},g.rotationTo=function(a,u,h){return _.rotationTo(a.array,u.array,h.array),a._dirty=!0,a},g.fromEuler=function(a,u,e){a._dirty=!0,u=u.array;var r=a.array,n=Math.cos(u[0]/2),s=Math.cos(u[1]/2),d=Math.cos(u[2]/2),o=Math.sin(u[0]/2),c=Math.sin(u[1]/2),f=Math.sin(u[2]/2),e=(e||"XYZ").toUpperCase();switch(e){case"XYZ":r[0]=o*s*d+n*c*f,r[1]=n*c*d-o*s*f,r[2]=n*s*f+o*c*d,r[3]=n*s*d-o*c*f;break;case"YXZ":r[0]=o*s*d+n*c*f,r[1]=n*c*d-o*s*f,r[2]=n*s*f-o*c*d,r[3]=n*s*d+o*c*f;break;case"ZXY":r[0]=o*s*d-n*c*f,r[1]=n*c*d+o*s*f,r[2]=n*s*f+o*c*d,r[3]=n*s*d-o*c*f;break;case"ZYX":r[0]=o*s*d-n*c*f,r[1]=n*c*d+o*s*f,r[2]=n*s*f-o*c*d,r[3]=n*s*d+o*c*f;break;case"YZX":r[0]=o*s*d+n*c*f,r[1]=n*c*d+o*s*f,r[2]=n*s*f-o*c*d,r[3]=n*s*d-o*c*f;break;case"XZY":r[0]=o*s*d-n*c*f,r[1]=n*c*d-o*s*f,r[2]=n*s*f+o*c*d,r[3]=n*s*d+o*c*f;break}},w.a=g},function(G,w,E){"use strict";var O=E(28),A=E(9),_=E(52),g=E(49),x=E(1),m=E.n(x),a=m.a.vec3,u=m.a.vec4,h=O.a.extend(function(){return{projectionMatrix:new A.a,invProjectionMatrix:new A.a,viewMatrix:new A.a,frustum:new _.a}},function(){this.update(!0)},{update:function(r){O.a.prototype.update.call(this,r),A.a.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),A.a.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(r){A.a.copy(this.viewMatrix,r),A.a.invert(this.worldTransform,r),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(r){A.a.copy(this.projectionMatrix,r),A.a.invert(this.invProjectionMatrix,r),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:function(){var r=u.create();return function(n,s){var d=s!==void 0?s:new g.a,o=n.array[0],c=n.array[1];return u.set(r,o,c,-1,1),u.transformMat4(r,r,this.invProjectionMatrix.array),u.transformMat4(r,r,this.worldTransform.array),a.scale(d.origin.array,r,1/r[3]),u.set(r,o,c,1,1),u.transformMat4(r,r,this.invProjectionMatrix.array),u.transformMat4(r,r,this.worldTransform.array),a.scale(r,r,1/r[3]),a.sub(d.direction.array,r,d.origin.array),a.normalize(d.direction.array,d.direction.array),d.direction._dirty=!0,d.origin._dirty=!0,d}}()});w.a=h},function(G,w,E){"use strict";var O=E(4),A=E(15),_=E(67),g=E(1),x=E.n(g),m=x.a.vec3,a=m.set,u=m.copy,h=m.transformMat4,r=Math.min,n=Math.max,s=function(){this.planes=[];for(var d=0;d<6;d++)this.planes.push(new _.a);this.boundingBox=new A.a,this.vertices=[];for(var d=0;d<8;d++)this.vertices[d]=m.fromValues(0,0,0)};s.prototype={setFromProjection:function(d){var o=this.planes,c=d.array,f=c[0],e=c[1],t=c[2],i=c[3],l=c[4],v=c[5],y=c[6],p=c[7],C=c[8],S=c[9],T=c[10],D=c[11],I=c[12],M=c[13],P=c[14],L=c[15];a(o[0].normal.array,i-f,p-l,D-C),o[0].distance=-(L-I),o[0].normalize(),a(o[1].normal.array,i+f,p+l,D+C),o[1].distance=-(L+I),o[1].normalize(),a(o[2].normal.array,i+e,p+v,D+S),o[2].distance=-(L+M),o[2].normalize(),a(o[3].normal.array,i-e,p-v,D-S),o[3].distance=-(L-M),o[3].normalize(),a(o[4].normal.array,i-t,p-y,D-T),o[4].distance=-(L-P),o[4].normalize(),a(o[5].normal.array,i+t,p+y,D+T),o[5].distance=-(L+P),o[5].normalize();var R=this.boundingBox;if(L===0){var B=v/f,U=-P/(T-1),H=-P/(T+1),K=-H/v,V=-U/v;R.min.set(-K*B,-K,H),R.max.set(K*B,K,U);var k=this.vertices;a(k[0],-K*B,-K,H),a(k[1],-K*B,K,H),a(k[2],K*B,-K,H),a(k[3],K*B,K,H),a(k[4],-V*B,-V,U),a(k[5],-V*B,V,U),a(k[6],V*B,-V,U),a(k[7],V*B,V,U)}else{var $=(-1-I)/f,ae=(1-I)/f,le=(1-M)/v,he=(-1-M)/v,ge=(-1-P)/T,me=(1-P)/T;R.min.set(Math.min($,ae),Math.min(he,le),Math.min(me,ge)),R.max.set(Math.max(ae,$),Math.max(le,he),Math.max(ge,me));var pe=R.min.array,Ee=R.max.array,k=this.vertices;a(k[0],pe[0],pe[1],pe[2]),a(k[1],pe[0],Ee[1],pe[2]),a(k[2],Ee[0],pe[1],pe[2]),a(k[3],Ee[0],Ee[1],pe[2]),a(k[4],pe[0],pe[1],Ee[2]),a(k[5],pe[0],Ee[1],Ee[2]),a(k[6],Ee[0],pe[1],Ee[2]),a(k[7],Ee[0],Ee[1],Ee[2])}},getTransformedBoundingBox:function(){var d=m.create();return function(o,c){var f=this.vertices,e=c.array,t=o.min,i=o.max,l=t.array,v=i.array,y=f[0];h(d,y,e),u(l,d),u(v,d);for(var p=1;p<8;p++)y=f[p],h(d,y,e),l[0]=r(d[0],l[0]),l[1]=r(d[1],l[1]),l[2]=r(d[2],l[2]),v[0]=n(d[0],v[0]),v[1]=n(d[1],v[1]),v[2]=n(d[2],v[2]);return t._dirty=!0,i._dirty=!0,o}}()},w.a=s},function(G,w){var E=function(){this.head=null,this.tail=null,this._len=0},O=E.prototype;O.insert=function(m){var a=new A(m);return this.insertEntry(a),a},O.insertEntry=function(m){this.head?(this.tail.next=m,m.prev=this.tail,m.next=null,this.tail=m):this.head=this.tail=m,this._len++},O.remove=function(m){var a=m.prev,u=m.next;a?a.next=u:this.head=u,u?u.prev=a:this.tail=a,m.next=m.prev=null,this._len--},O.len=function(){return this._len},O.clear=function(){this.head=this.tail=null,this._len=0};var A=function(m){this.value=m,this.next,this.prev},_=function(m){this._list=new E,this._map={},this._maxSize=m||10,this._lastRemovedEntry=null},g=_.prototype;g.put=function(m,a){var u=this._list,h=this._map,r=null;if(h[m]==null){var n=u.len(),s=this._lastRemovedEntry;if(n>=this._maxSize&&n>0){var d=u.head;u.remove(d),delete h[d.key],r=d.value,this._lastRemovedEntry=d}s?s.value=a:s=new A(a),s.key=m,u.insertEntry(s),h[m]=s}return r},g.get=function(m){var a=this._map[m],u=this._list;if(a!=null)return a!==u.tail&&(u.remove(a),u.insertEntry(a)),a.value},g.clear=function(){this._list.clear(),this._map={}};var x=_;G.exports=x},function(G,w,E){"use strict";var O=E(5),A=E(25),_=E(102),g=E(55),x=E(56),m=E(29),a=E(104),u=E(105),h={loadTexture:function(r,n,s,d){var o;if(typeof n=="function"?(s=n,d=s,n={}):n=n||{},typeof r=="string"){if(r.match(/.hdr$/)||n.fileType==="hdr")return o=new O.a({width:0,height:0,sRGB:!1}),h._fetchTexture(r,function(c){u.a.parseRGBE(c,o,n.exposure),o.dirty(),s&&s(o)},d),o;r.match(/.dds$/)||n.fileType==="dds"?(o=new O.a({width:0,height:0}),h._fetchTexture(r,function(c){a.a.parse(c,o),o.dirty(),s&&s(o)},d)):(o=new O.a,o.load(r),o.success(s),o.error(d))}else if(typeof r=="object"&&typeof r.px!="undefined"){var o=new A.a;o.load(r),o.success(s),o.error(d)}return o},loadPanorama:function(r,n,s,d,o,c){var f=this;typeof d=="function"?(o=d,c=o,d={}):d=d||{},h.loadTexture(n,d,function(e){e.flipY=d.flipY||!1,f.panoramaToCubeMap(r,e,s,d),e.dispose(r),o&&o(s)},c)},panoramaToCubeMap:function(r,n,s,d){var o=new g.a,c=new x.a({scene:new m.a});return c.material.set("diffuseMap",n),d=d||{},d.encodeRGBM&&c.material.define("fragment","RGBM_ENCODE"),s.sRGB=n.sRGB,o.texture=s,o.render(r,c.scene),o.texture=null,o.dispose(r),s},heightToNormal:function(r,n){var s=document.createElement("canvas"),d=s.width=r.width,o=s.height=r.height,c=s.getContext("2d");c.drawImage(r,0,0,d,o),n=n||!1;for(var f=c.getImageData(0,0,d,o),e=c.createImageData(d,o),t=0;t20)return console.warn("Given image is not a height map"),r}var p,C,S,T;t%(d*4)===0?(p=f.data[t],S=f.data[t+4]):t%(d*4)===(d-1)*4?(p=f.data[t-4],S=f.data[t]):(p=f.data[t-4],S=f.data[t+4]),td*(o-1)*4?(C=f.data[t-d*4],T=f.data[t]):(C=f.data[t-d*4],T=f.data[t+d*4]),e.data[t]=p-S+127,e.data[t+1]=C-T+127,e.data[t+2]=255,e.data[t+3]=255}return c.putImageData(e,0,0),s},isHeightImage:function(r,n,s){if(!r||!r.width||!r.height)return!1;var d=document.createElement("canvas"),o=d.getContext("2d"),c=n||32;s=s||20,d.width=d.height=c,o.drawImage(r,0,0,c,c);for(var f=o.getImageData(0,0,c,c),e=0;es)return!1}return!0},_fetchTexture:function(r,n,s){_.a.get({url:r,responseType:"arraybuffer",onload:n,onerror:s})},createChessboard:function(r,n,s,d){r=r||512,n=n||64,s=s||"black",d=d||"white";var o=Math.ceil(r/n),c=document.createElement("canvas");c.width=r,c.height=r;var f=c.getContext("2d");f.fillStyle=d,f.fillRect(0,0,r,r),f.fillStyle=s;for(var e=0;e0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),a.renderPass([this],u)}});w.a=m},function(G,w,E){"use strict";var O=E(2),A=E(143),_=E(144);O.a.Shader.import(_.a),w.a=O.a.Mesh.extend(function(){var g=new A.a({dynamic:!0}),x=new O.a.Material({shader:O.a.createShader("ecgl.labels"),transparent:!0,depthMask:!1});return{geometry:g,material:x,culling:!1,castShadow:!1,ignorePicking:!0}})},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(2),g=E(186),x=E(22),m=E(3),a=E(1),u=E.n(a),h=E(60),r=E(61),n=E(40),s=u.a.vec3;_.a.Shader.import(n.a);function d(o){this.rootNode=new _.a.Node,this._triangulationResults={},this._shadersMap=_.a.COMMON_SHADERS.reduce(function(f,e){return f[e]=_.a.createShader("ecgl."+e),f},{}),this._linesShader=_.a.createShader("ecgl.meshLines3D");var c={};_.a.COMMON_SHADERS.forEach(function(f){c[f]=new _.a.Material({shader:_.a.createShader("ecgl."+f)})}),this._groundMaterials=c,this._groundMesh=new _.a.Mesh({geometry:new _.a.PlaneGeometry({dynamic:!0}),castShadow:!1,renderNormal:!0,$ignorePicking:!0}),this._groundMesh.rotation.rotateX(-Math.PI/2),this._labelsBuilder=new r.a(512,512,o),this._labelsBuilder.getMesh().renderOrder=100,this._labelsBuilder.getMesh().material.depthTest=!1,this.rootNode.add(this._labelsBuilder.getMesh()),this._initMeshes(),this._api=o}d.prototype={constructor:d,extrudeY:!0,update:function(o,c,f,e,t){var i=o.getData();e==null&&(e=0),t==null&&(t=i.count()),this._startIndex=e,this._endIndex=t-1,this._triangulation(o,e,t);var l=this._getShader(o.get("shading"));this._prepareMesh(o,l,f,e,t),this.rootNode.updateWorldTransform(),this._updateRegionMesh(o,f,e,t);var v=o.coordinateSystem;v.type==="geo3D"&&this._updateGroundPlane(o,v,f);var y=this;this._labelsBuilder.updateData(i,e,t),this._labelsBuilder.getLabelPosition=function(p,C,S){var T=i.getName(p),D,I=S;if(v.type==="geo3D"){var M=v.getRegion(T);return D=M.center,v.dataToPoint([D[0],D[1],I])}else var P=y._triangulationResults[p-y._startIndex],D=y.extrudeY?[(P.max[0]+P.min[0])/2,P.max[1]+I,(P.max[2]+P.min[2])/2]:[(P.max[0]+P.min[0])/2,(P.max[1]+P.min[1])/2,P.max[2]+I]},this._data=i,this._labelsBuilder.updateLabels(),this._updateDebugWireframe(o),this._lastHoverDataIndex=0},_initMeshes:function(){this.rootNode.removeAll();var o=this;function c(){var t=new _.a.Mesh({name:"Polygon",material:new _.a.Material({shader:o._shadersMap.lambert}),culling:!1,geometry:new _.a.Geometry({sortTriangles:!0,dynamic:!0}),ignorePicking:!0,renderNormal:!0});return A.a.util.extend(t.geometry,h.a),t}var f=c(),e=new _.a.Mesh({material:new _.a.Material({shader:this._linesShader}),castShadow:!1,ignorePicking:!0,$ignorePicking:!0,geometry:new x.a({useNativeLine:!1})});this.rootNode.add(f),this.rootNode.add(e),f.material.define("both","VERTEX_COLOR"),f.material.define("fragment","DOUBLE_SIDED"),this._polygonMesh=f,this._linesMesh=e,this.rootNode.add(this._groundMesh)},_getShader:function(o){var c=this._shadersMap[o];return c||(console.warn("Unkown shading "+o),c=this._shadersMap.lambert),c.__shading=o,c},_prepareMesh:function(o,c,f,e,t){for(var i=0,l=0,v=0,y=0,p=e;p65535?new Uint32Array(l*3):new Uint16Array(l*3),T.material.shader!==c&&T.material.attachShader(c,!0),_.a.setMaterialFromModel(c.__shading,T.material,o,f),v>0&&(this._linesMesh.geometry.resetOffset(),this._linesMesh.geometry.setVertexCount(v),this._linesMesh.geometry.setTriangleCount(y)),this._dataIndexOfVertex=new Uint32Array(i),this._vertexRangeOfDataIndex=new Uint32Array((t-e)*2)},_updateRegionMesh:function(o,c,f,e){for(var t=o.getData(),i=0,l=0,v=!1,K=this._polygonMesh,y=this._linesMesh,p=f;p0;H&&(U*=c.getDevicePixelRatio(),this._updateLinesGeometry(y.geometry,o,p,L,U,o.coordinateSystem.transform)),y.invisible=!H,y.material.set({color:M})}var K=this._polygonMesh;K.material.transparent=v,K.material.depthMask=!v,K.geometry.updateBoundingBox(),K.material.get("normalMap")&&K.geometry.generateTangents(),K.seriesIndex=o.seriesIndex,K.on("mousemove",this._onmousemove,this),K.on("mouseout",this._onmouseout,this)},_updateDebugWireframe:function(o){var c=o.getModel("debug.wireframe");if(c.get("show")){var f=_.a.parseColor(c.get("lineStyle.color")||"rgba(0,0,0,0.5)"),e=m.a.firstNotNull(c.get("lineStyle.width"),1),t=this._polygonMesh;t.geometry.generateBarycentric(),t.material.define("both","WIREFRAME_TRIANGLE"),t.material.set("wireframeLineColor",f),t.material.set("wireframeLineWidth",e)}},_onmousemove:function(o){var c=this._dataIndexOfVertex[o.triangle[0]];c==null&&(c=-1),c!==this._lastHoverDataIndex&&(this.downplay(this._lastHoverDataIndex),this.highlight(c)),this._lastHoverDataIndex=c,this._polygonMesh.dataIndex=c},_onmouseover:function(o){if(o.target){var c=o.target.eventData?this._data.indexOfName(o.target.eventData.name):o.target.dataIndex;c!=null&&(this.highlight(c),this._labelsBuilder.updateLabels([c]))}},_onmouseout:function(o){o.target&&(this.downplay(this._lastHoverDataIndex),this._lastHoverDataIndex=-1,this._polygonMesh.dataIndex=-1)},_updateGroundPlane:function(o,c,f){var e=o.getModel("groundPlane",o);if(this._groundMesh.invisible=!e.get("show",!0),!this._groundMesh.invisible){var t=o.get("shading"),i=this._groundMaterials[t];i||(console.warn("Unkown shading "+t),i=this._groundMaterials.lambert),_.a.setMaterialFromModel(t,i,e,f),i.get("normalMap")&&this._groundMesh.geometry.generateTangents(),this._groundMesh.material=i,this._groundMesh.material.set("color",_.a.parseColor(e.get("color"))),this._groundMesh.scale.set(c.size[0],c.size[2],1)}},_triangulation:function(o,c,f){this._triangulationResults=[];for(var e=[1/0,1/0,1/0],t=[-1/0,-1/0,-1/0],i=o.coordinateSystem,l=c;l1?e:0,pe[Z][P]=le.points[se+2],y.set(t+Z,pe[Z]),v?(ce[0]=(le.points[se]*L[0]-R[0])/U,ce[1]=(le.points[se+2]*L[P]-R[P])/U):(ce[0]=(ee?oe:oe+re)/U,ce[1]=(pe[Z][M]*L[M]-R[M])/U),C.set(t+Z,ce)}s.sub(Ee,pe[1],pe[0]),s.sub(de,pe[3],pe[0]),s.cross(ve,Ee,de),s.normalize(ve,ve);for(var Z=0;Z<4;Z++)p.set(t+Z,ve),D&&S.set(t+Z,l);for(var Z=0;Z<6;Z++)I[i*3+Z]=me[Z]+t;t+=4,i+=2,oe+=re}}return c.dirty(),{vertexOffset:t,triangleOffset:i}},_getRegionLinesInfo:function(o,c,f){var e=0,t=0,i=c.getRegionModel(o),l=i.getModel("itemStyle"),v=l.get("borderWidth");if(v>0){var y=c.getRegionPolygonCoords(o);y.forEach(function(p){var C=p.exterior,S=p.interiors;e+=f.getPolylineVertexCount(C),t+=f.getPolylineTriangleCount(C);for(var T=0;Tthis._endIndex)){c-=this._startIndex;for(var e=this._vertexRangeOfDataIndex[c*2];e=2e4},doSortTriangles:function(u,h){var r=this.indices;if(h===0){var n=this.attributes.position,u=u.array;(!this._triangleZList||this._triangleZList.length!==this.triangleCount)&&(this._triangleZList=new Float32Array(this.triangleCount),this._sortedTriangleIndices=new Uint32Array(this.triangleCount),this._indicesTmp=new r.constructor(r.length),this._triangleZListTmp=new Float32Array(this.triangleCount));for(var s=0,d,o=0;o0,n={},s=0;s2?(D=this._updateSymbolSprite(d,S,p,C),l.enableTexture("sprite")):l.disableTexture("sprite"),y.position.init(e-f);var I=[];if(T){l.undefine("VERTEX_SIZE"),l.undefine("VERTEX_COLOR");var M=i.getVisual("color"),P=i.getVisual("opacity");_.a.parseColor(M,I),I[3]*=P,l.set({color:I,u_Size:p.maxSize*this._sizeScale})}else l.set({color:[1,1,1,1]}),l.define("VERTEX_SIZE"),l.define("VERTEX_COLOR"),y.size.init(e-f),y.color.init(e-f),this._originalOpacity=new Float32Array(e-f);for(var L=i.getLayout("points"),R=y.position.value,B=!1,U=0;U1?(e[0]=c.maxSize,e[1]=c.maxSize/c.aspect):(e[1]=c.maxSize,e[0]=c.maxSize*c.aspect),e[0]=e[0]||1,e[1]=e[1]||1,(this._symbolType!==c.type||!n(this._symbolSize,e)||this._lineWidth!==o.lineWidth)&&(g.a.createSymbolSprite(c.type,e,{fill:"#fff",lineWidth:o.lineWidth,stroke:"transparent",shadowColor:"transparent",minMargin:Math.min(e[0]/2,10)},this._spriteImageCanvas),g.a.createSDFFromCanvas(this._spriteImageCanvas,Math.min(this._spriteImageCanvas.width,32),h,this._mesh.material.get("sprite").image),this._symbolType=c.type,this._symbolSize=e,this._lineWidth=o.lineWidth),this._spriteImageCanvas.width/c.maxSize*f},_updateMaterial:function(d,o){var c=d.get("blendMode")==="lighter"?_.a.additiveBlend:null,f=this._mesh.material;f.blend=c,f.set("lineWidth",o.lineWidth/h);var e=_.a.parseColor(o.stroke);f.set("strokeColor",e),f.transparent=!0,f.depthMask=!1,f.depthTest=!this.is2D,f.sortVertices=!this.is2D},_updateLabelBuilder:function(d,i,c){var f=d.getData(),e=this._mesh.geometry,t=e.attributes.position.value,i=this._startDataIndex,l=this._mesh.sizeScale;this._labelsBuilder.updateData(f,i,c),this._labelsBuilder.getLabelPosition=function(v,y,p){var C=(v-i)*3;return[t[C],t[C+1],t[C+2]]},this._labelsBuilder.getLabelDistance=function(v,y,p){var C=e.attributes.size.get(v-i)/l;return C/2+p},this._labelsBuilder.updateLabels()},_updateAnimation:function(d){_.a.updateVertexAnimation([["prevPosition","position"],["prevSize","size"]],this._prevMesh,this._mesh,d)},_updateHandler:function(d,o,c){var f=d.getData(),e=this._mesh,t=this,i=-1,l=d.coordinateSystem&&d.coordinateSystem.type==="cartesian3D",v;l&&(v=d.coordinateSystem.model),e.seriesIndex=d.seriesIndex,e.off("mousemove"),e.off("mouseout"),e.on("mousemove",function(y){var p=y.vertexIndex+t._startDataIndex;p!==i&&(this.highlightOnMouseover&&(this.downplay(f,i),this.highlight(f,p),this._labelsBuilder.updateLabels([p])),l&&c.dispatchAction({type:"grid3DShowAxisPointer",value:[f.get(d.coordDimToDataDim("x")[0],p),f.get(d.coordDimToDataDim("y")[0],p),f.get(d.coordDimToDataDim("z")[0],p)],grid3DIndex:v.componentIndex})),e.dataIndex=p,i=p},this),e.on("mouseout",function(y){var p=y.vertexIndex+t._startDataIndex;this.highlightOnMouseover&&(this.downplay(f,p),this._labelsBuilder.updateLabels()),i=-1,e.dataIndex=-1,l&&c.dispatchAction({type:"grid3DHideAxisPointer",grid3DIndex:v.componentIndex})},this)},updateLayout:function(d,o,c){var f=d.getData();if(this._mesh){var e=this._mesh.geometry.attributes.position.value,t=f.getLayout("points");if(this.is2D)for(var i=0;ithis._endDataIndex||othis._endDataIndex||o.05&&(i=!0),C!==l&&(v=!0),l=C,t=S}return i&&console.warn("Different symbol width / height ratio will be ignored."),v&&console.warn("Different symbol type will be ignored."),{maxSize:y,type:l,aspect:t}}},w.a=s},function(G,w,E){"use strict";w.a=`@export clay.prez.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec3 position : POSITION; @import clay.chunk.skinning_header void main() { vec3 skinnedPosition = position; #ifdef SKINNING @import clay.chunk.skin_matrix skinnedPosition = (skinMatrixWS * vec4(position, 1.0)).xyz; #endif gl_Position = worldViewProjection * vec4(skinnedPosition, 1.0); } @end @export clay.prez.fragment void main() { gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0); } @end`},function(G,w,E){"use strict";var O=E(28),A=E(11),_=0,g=null,x=!0,m,a=function(){this.triangleCount=0,this.vertexCount=0,this.drawCallCount=0};function u(r,n,s){this.availableAttributes=r,this.availableAttributeSymbols=n,this.indicesBuffer=s,this.vao=null}var h=O.a.extend({material:null,geometry:null,mode:A.a.TRIANGLES,_drawCache:null,_renderInfo:null},function(){this._drawCache={},this._renderInfo=new a},{__program:null,lightGroup:0,renderOrder:0,lineWidth:1,culling:!0,cullFace:A.a.BACK,frontFace:A.a.CCW,frustumCulling:!0,receiveShadow:!0,castShadow:!0,ignorePicking:!1,ignorePreZ:!1,ignoreGBuffer:!1,isRenderable:function(){return this.geometry&&this.material&&this.material.shader&&!this.invisible&&this.geometry.vertexCount>0},beforeRender:function(r){},afterRender:function(r,n){},getBoundingBox:function(r,n){return n=O.a.prototype.getBoundingBox.call(this,r,n),this.geometry&&this.geometry.boundingBox&&n.union(this.geometry.boundingBox),n},render:function(r,n,s){var d=r.gl;n=n||this.material;var o=n.shader,c=this.geometry,f=this.mode,e=c.vertexCount,t=c.isUseIndices(),i=r.getGLExtension("OES_element_index_uint"),l=i&&e>65535,v=l?d.UNSIGNED_INT:d.UNSIGNED_SHORT,y=r.getGLExtension("OES_vertex_array_object"),p=!c.dynamic,C=this._renderInfo;C.vertexCount=e,C.triangleCount=0,C.drawCallCount=0;var S=!1;if(m=r.__uid__+"-"+c.__uid__+"-"+s.__uid__,(m!==_||y&&p||c._cache.isDirty("any"))&&(S=!0),_=m,!S)x?(d.drawElements(f,g.count,v,0),C.triangleCount=g.count/3):d.drawArrays(f,0,e),C.drawCallCount=1;else{var T=this._drawCache[m];if(!T){var D=c.getBufferChunks(r);if(!D)return;T=[];for(var I=0;I>1,A|=A>>2,A|=A>>4,A|=A>>8,A|=A>>16,A++,A},O.nearestPowerOfTwo=function(A){return Math.pow(2,Math.round(Math.log(A)/Math.LN2))},w.a=O},function(G,w,E){"use strict";var O=E(4),A=E(1),_=E.n(A),g=_.a.vec3,x=_.a.mat4,m=_.a.vec4,a=function(u,h){this.normal=u||new O.a(0,1,0),this.distance=h||0};a.prototype={constructor:a,distanceToPoint:function(u){return g.dot(u.array,this.normal.array)-this.distance},projectPoint:function(u,h){h||(h=new O.a);var r=this.distanceToPoint(u);return g.scaleAndAdd(h.array,u.array,this.normal.array,-r),h._dirty=!0,h},normalize:function(){var u=1/g.len(this.normal.array);g.scale(this.normal.array,u),this.distance*=u},intersectFrustum:function(u){for(var h=u.vertices,r=this.normal.array,n=g.dot(h[0].array,r)>this.distance,s=1;s<8;s++)if(g.dot(h[s].array,r)>this.distance!=n)return!0},intersectLine:function(){var u=g.create();return function(h,r,n){var s=this.distanceToPoint(h),d=this.distanceToPoint(r);if(s>0&&d>0||s<0&&d<0)return null;var o=this.normal.array,c=this.distance,f=h.array;g.sub(u,r.array,h.array),g.normalize(u,u);var e=g.dot(o,u);if(e===0)return null;n||(n=new O.a);var t=(g.dot(o,f)-c)/e;return g.scaleAndAdd(n.array,f,u,-t),n._dirty=!0,n}}(),applyTransform:function(){var u=x.create(),h=m.create(),r=m.create();return r[3]=1,function(n){n=n.array,g.scale(r,this.normal.array,this.distance),m.transformMat4(r,r,n),this.distance=g.dot(r,this.normal.array),x.invert(u,n),x.transpose(u,u),h[3]=0,g.copy(h,this.normal.array),m.transformMat4(h,h,u),g.copy(this.normal.array,h)}}(),copy:function(u){g.copy(this.normal.array,u.normal.array),this.normal._dirty=!0,this.distance=u.distance},clone:function(){var u=new a;return u.copy(this),u}},w.a=a},function(G,w,E){"use strict";var O=E(13),A=E(15),_=O.a.extend({dynamic:!1,widthSegments:40,heightSegments:20,phiStart:0,phiLength:Math.PI*2,thetaStart:0,thetaLength:Math.PI,radius:1},function(){this.build()},{build:function(){var g=this.heightSegments,x=this.widthSegments,m=this.attributes.position,a=this.attributes.texcoord0,u=this.attributes.normal,h=(x+1)*(g+1);m.init(h),a.init(h),u.init(h);var r=h>65535?Uint32Array:Uint16Array,n=this.indices=new r(x*g*6),s,d,o,c,f,e,t,p=this.radius,i=this.phiStart,l=this.phiLength,v=this.thetaStart,y=this.thetaLength,p=this.radius,C=[],S=[],T=0,D=1/p;for(t=0;t<=g;t++)for(e=0;e<=x;e++)c=e/x,f=t/g,s=-p*Math.cos(i+c*l)*Math.sin(v+f*y),d=p*Math.cos(v+f*y),o=p*Math.sin(i+c*l)*Math.sin(v+f*y),C[0]=s,C[1]=d,C[2]=o,S[0]=c,S[1]=f,m.set(T,C),a.set(T,S),C[0]*=D,C[1]*=D,C[2]*=D,u.set(T,C),T++;var I,M,P,L,R=x+1,B=0;for(t=0;ts&&(r=this._x=0,n+=this._rowHeight+o,this._y=n,this._rowHeight=0),this._x+=a+o,this._rowHeight=Math.max(this._rowHeight,u),n+u+o>d)return null;m.position[0]+=this.offsetX*this.dpr+r,m.position[1]+=this.offsetY*this.dpr+n,this._zr.add(m);var c=[this.offsetX/this.width,this.offsetY/this.height],f=[[r/s+c[0],n/d+c[1]],[(r+a)/s+c[0],(n+u)/d+c[1]]];return f},_fitElement:function(m,a,u){var h=m.getBoundingRect(),r=a/h.width,n=u/h.height;m.position=[-h.x*r,-h.y*n],m.scale=[r,n],m.update()}};function x(m){m=m||{},m.width=m.width||512,m.height=m.height||512,m.devicePixelRatio=m.devicePixelRatio||1,m.gap=m.gap==null?2:m.gap;var a=document.createElement("canvas");a.width=m.width*m.devicePixelRatio,a.height=m.height*m.devicePixelRatio,this._canvas=a,this._texture=new _.a({image:a,flipY:!1});var u=this;this._zr=A.a.zrender.init(a);var h=this._zr.refreshImmediately;this._zr.refreshImmediately=function(){h.call(this),u._texture.dirty(),u.onupdate&&u.onupdate()},this._dpr=m.devicePixelRatio,this._coords={},this.onupdate=m.onupdate,this._gap=m.gap,this._textureAtlasNodes=[new g(this._zr,0,0,m.width,m.height,this._gap,this._dpr)],this._nodeWidth=m.width,this._nodeHeight=m.height,this._currentNodeIdx=0}x.prototype={clear:function(){for(var m=0;m=m){console.error("Too much labels. Some will be ignored.");return}var n=(h+this._nodeWidth)*this._dpr,s=(r+this._nodeHeight)*this._dpr;try{this._zr.resize({width:n,height:s})}catch(o){this._canvas.width=n,this._canvas.height=s}var d=new g(this._zr,h,r,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(d),d},add:function(m,a,u){if(this._coords[m.id])return console.warn("Element already been add"),this._coords[m.id];var h=this._getCurrentNode().add(m,a,u);if(!h){var r=this._expand();if(!r)return;h=r.add(m,a,u)}return this._coords[m.id]=h,h},getCoordsScale:function(){var m=this._dpr;return[this._nodeWidth/this._canvas.width*m,this._nodeHeight/this._canvas.height*m]},getCoords:function(m){return this._coords[m]}},w.a=x},function(G,w,E){"use strict";w.a=O;function O(A,_,g){var x,m=A.scale;return m.type==="ordinal"&&(typeof g=="function"?(x=m.getTicks()[_],!g(x,m.getLabel(x))):_%(g+1))}},function(G,w,E){var O=E(76),A=E(77),_=O.applyTransform,g=Math.min,x=Math.max;function m(u,h,r,n){r<0&&(u=u+r,r=-r),n<0&&(h=h+n,n=-n),this.x=u,this.y=h,this.width=r,this.height=n}m.prototype={constructor:m,union:function(u){var h=g(u.x,this.x),r=g(u.y,this.y);this.width=x(u.x+u.width,this.x+this.width)-h,this.height=x(u.y+u.height,this.y+this.height)-r,this.x=h,this.y=r},applyTransform:function(){var u=[],h=[],r=[],n=[];return function(s){if(s){u[0]=r[0]=this.x,u[1]=n[1]=this.y,h[0]=n[0]=this.x+this.width,h[1]=r[1]=this.y+this.height,_(u,u,s),_(h,h,s),_(r,r,s),_(n,n,s),this.x=g(u[0],h[0],r[0],n[0]),this.y=g(u[1],h[1],r[1],n[1]);var d=x(u[0],h[0],r[0],n[0]),o=x(u[1],h[1],r[1],n[1]);this.width=d-this.x,this.height=o-this.y}}}(),calculateTransform:function(u){var h=this,r=u.width/h.width,n=u.height/h.height,s=A.create();return A.translate(s,s,[-h.x,-h.y]),A.scale(s,s,[r,n]),A.translate(s,s,[u.x,u.y]),s},intersect:function(u){if(!u)return!1;u instanceof m||(u=m.create(u));var h=this,r=h.x,n=h.x+h.width,s=h.y,d=h.y+h.height,o=u.x,c=u.x+u.width,f=u.y,e=u.y+u.height;return!(n=r.x&&u<=r.x+r.width&&h>=r.y&&h<=r.y+r.height},clone:function(){return new m(this.x,this.y,this.width,this.height)},copy:function(u){this.x=u.x,this.y=u.y,this.width=u.width,this.height=u.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},m.create=function(u){return new m(u.x,u.y,u.width,u.height)};var a=m;G.exports=a},function(G,w){var E=typeof Float32Array=="undefined"?Array:Float32Array;function O(T,D){var I=new E(2);return T==null&&(T=0),D==null&&(D=0),I[0]=T,I[1]=D,I}function A(T,D){return T[0]=D[0],T[1]=D[1],T}function _(T){var D=new E(2);return D[0]=T[0],D[1]=T[1],D}function g(T,D,I){return T[0]=D,T[1]=I,T}function x(T,D,I){return T[0]=D[0]+I[0],T[1]=D[1]+I[1],T}function m(T,D,I,M){return T[0]=D[0]+I[0]*M,T[1]=D[1]+I[1]*M,T}function a(T,D,I){return T[0]=D[0]-I[0],T[1]=D[1]-I[1],T}function u(T){return Math.sqrt(r(T))}var h=u;function r(T){return T[0]*T[0]+T[1]*T[1]}var n=r;function s(T,D,I){return T[0]=D[0]*I[0],T[1]=D[1]*I[1],T}function d(T,D,I){return T[0]=D[0]/I[0],T[1]=D[1]/I[1],T}function o(T,D){return T[0]*D[0]+T[1]*D[1]}function c(T,D,I){return T[0]=D[0]*I,T[1]=D[1]*I,T}function f(T,D){var I=u(D);return I===0?(T[0]=0,T[1]=0):(T[0]=D[0]/I,T[1]=D[1]/I),T}function e(T,D){return Math.sqrt((T[0]-D[0])*(T[0]-D[0])+(T[1]-D[1])*(T[1]-D[1]))}var t=e;function i(T,D){return(T[0]-D[0])*(T[0]-D[0])+(T[1]-D[1])*(T[1]-D[1])}var l=i;function v(T,D){return T[0]=-D[0],T[1]=-D[1],T}function y(T,D,I,M){return T[0]=D[0]+M*(I[0]-D[0]),T[1]=D[1]+M*(I[1]-D[1]),T}function p(T,D,I){var M=D[0],P=D[1];return T[0]=I[0]*M+I[2]*P+I[4],T[1]=I[1]*M+I[3]*P+I[5],T}function C(T,D,I){return T[0]=Math.min(D[0],I[0]),T[1]=Math.min(D[1],I[1]),T}function S(T,D,I){return T[0]=Math.max(D[0],I[0]),T[1]=Math.max(D[1],I[1]),T}w.create=O,w.copy=A,w.clone=_,w.set=g,w.add=x,w.scaleAndAdd=m,w.sub=a,w.len=u,w.length=h,w.lenSquare=r,w.lengthSquare=n,w.mul=s,w.div=d,w.dot=o,w.scale=c,w.normalize=f,w.distance=e,w.dist=t,w.distanceSquare=i,w.distSquare=l,w.negate=v,w.lerp=y,w.applyTransform=p,w.min=C,w.max=S},function(G,w){var E=typeof Float32Array=="undefined"?Array:Float32Array;function O(){var r=new E(6);return A(r),r}function A(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function _(r,n){return r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],r[4]=n[4],r[5]=n[5],r}function g(r,n,s){var d=n[0]*s[0]+n[2]*s[1],o=n[1]*s[0]+n[3]*s[1],c=n[0]*s[2]+n[2]*s[3],f=n[1]*s[2]+n[3]*s[3],e=n[0]*s[4]+n[2]*s[5]+n[4],t=n[1]*s[4]+n[3]*s[5]+n[5];return r[0]=d,r[1]=o,r[2]=c,r[3]=f,r[4]=e,r[5]=t,r}function x(r,n,s){return r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],r[4]=n[4]+s[0],r[5]=n[5]+s[1],r}function m(r,n,s){var d=n[0],o=n[2],c=n[4],f=n[1],e=n[3],t=n[5],i=Math.sin(s),l=Math.cos(s);return r[0]=d*l+f*i,r[1]=-d*i+f*l,r[2]=o*l+e*i,r[3]=-o*i+l*e,r[4]=l*c+i*t,r[5]=l*t-i*c,r}function a(r,n,s){var d=s[0],o=s[1];return r[0]=n[0]*d,r[1]=n[1]*o,r[2]=n[2]*d,r[3]=n[3]*o,r[4]=n[4]*d,r[5]=n[5]*o,r}function u(r,n){var s=n[0],d=n[2],o=n[4],c=n[1],f=n[3],e=n[5],t=s*f-c*d;return t?(t=1/t,r[0]=f*t,r[1]=-c*t,r[2]=-d*t,r[3]=s*t,r[4]=(d*e-f*o)*t,r[5]=(c*o-s*e)*t,r):null}function h(r){var n=O();return _(n,r),n}w.create=O,w.identity=A,w.copy=_,w.mul=g,w.translate=x,w.rotate=m,w.scale=a,w.invert=u,w.clone=h},function(G,w,E){var O=E(12),A=1e-4;function _(y){return y.replace(/^\s+/,"").replace(/\s+$/,"")}function g(y,p,C,S){var T=p[1]-p[0],D=C[1]-C[0];if(T===0)return D===0?C[0]:(C[0]+C[1])/2;if(S)if(T>0){if(y<=p[0])return C[0];if(y>=p[1])return C[1]}else{if(y>=p[0])return C[0];if(y<=p[1])return C[1]}else{if(y===p[0])return C[0];if(y===p[1])return C[1]}return(y-p[0])/T*D+C[0]}function x(y,p){switch(y){case"center":case"middle":y="50%";break;case"left":case"top":y="0%";break;case"right":case"bottom":y="100%";break}return typeof y=="string"?_(y).match(/%$/)?parseFloat(y)/100*p:parseFloat(y):y==null?NaN:+y}function m(y,p,C){return p==null&&(p=10),p=Math.min(Math.max(0,p),20),y=(+y).toFixed(p),C?y:+y}function a(y){return y.sort(function(p,C){return p-C}),y}function u(y){if(y=+y,isNaN(y))return 0;for(var p=1,C=0;Math.round(y*p)/p!==y;)p*=10,C++;return C}function h(y){var p=y.toString(),C=p.indexOf("e");if(C>0){var S=+p.slice(C+1);return S<0?-S:0}else{var T=p.indexOf(".");return T<0?0:p.length-1-T}}function r(y,p){var C=Math.log,S=Math.LN10,T=Math.floor(C(y[1]-y[0])/S),D=Math.round(C(Math.abs(p[1]-p[0]))/S),I=Math.min(Math.max(-T+D,0),20);return isFinite(I)?I:20}function n(y,p,C){if(!y[p])return 0;var S=O.reduce(y,function(K,V){return K+(isNaN(V)?0:V)},0);if(S===0)return 0;for(var T=Math.pow(10,C),D=O.map(y,function(K){return(isNaN(K)?0:K)/S*T*100}),I=T*100,M=O.map(D,function(K){return Math.floor(K)}),P=O.reduce(M,function(K,V){return K+V},0),L=O.map(D,function(K,V){return K-M[V]});PR&&(R=L[U],B=U);++M[B],L[B]=0,++P}return M[p]/T}var s=9007199254740991;function d(y){var p=Math.PI*2;return(y%p+p)%p}function o(y){return y>-A&&y=-20?+y.toFixed(C<0?-C:0):y}function l(y){y.sort(function(P,L){return M(P,L,0)?-1:1});for(var p=-1/0,C=1,S=0;S=0}w.linearMap=g,w.parsePercent=x,w.round=m,w.asc=a,w.getPrecision=u,w.getPrecisionSafe=h,w.getPixelPrecision=r,w.getPercentWithPrecision=n,w.MAX_SAFE_INTEGER=s,w.remRadian=d,w.isRadianAroundZero=o,w.parseDate=f,w.quantity=e,w.nice=i,w.reformIntervals=l,w.isNumeric=v},function(G,w,E){"use strict";var O=E(5),A=E(11),_=E(21),g=function(){this._pool={},this._allocatedTextures=[]};g.prototype={constructor:g,get:function(r){var n=a(r);this._pool.hasOwnProperty(n)||(this._pool[n]=[]);var s=this._pool[n];if(!s.length){var d=new O.a(r);return this._allocatedTextures.push(d),d}return s.pop()},put:function(r){var n=a(r);this._pool.hasOwnProperty(n)||(this._pool[n]=[]);var s=this._pool[n];s.push(r)},clear:function(r){for(var n=0;nd&&s.push({pivot:Math.floor((o+d)/2),left:d,right:o});var d=r[n].pivot+1,o=r[n].right;o>d&&s.push({pivot:Math.floor((o+d)/2),left:d,right:o})}r=this._parts=s}else for(var n=0;n65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(r){this.triangleCount!==r&&(r===0?this.indices=null:this.indices=this.vertexCount>65535?new Uint32Array(r*3):new Uint16Array(r*3))},_getCubicCurveApproxStep:function(r,n,s,d){var o=a.dist(r,n)+a.dist(s,n)+a.dist(d,s),c=1/(o+1)*this.segmentScale;return c},getCubicCurveVertexCount:function(r,n,s,d){var o=this._getCubicCurveApproxStep(r,n,s,d),c=Math.ceil(1/o);return this.useNativeLine?c*2:c*2+2},getCubicCurveTriangleCount:function(r,n,s,d){var o=this._getCubicCurveApproxStep(r,n,s,d),c=Math.ceil(1/o);return this.useNativeLine?0:c*2},getLineVertexCount:function(){return this.getPolylineVertexCount(u)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(u)},getPolylineVertexCount:function(r){var n;if(typeof r=="number")n=r;else{var s=typeof r[0]!="number";n=s?r.length:r.length/2}return this.useNativeLine?(n-1)*2:(n-1)*2+2},getPolylineTriangleCount:function(r){var n;if(typeof r=="number")n=r;else{var s=typeof r[0]!="number";n=s?r.length:r.length/2}return this.useNativeLine?0:(n-1)*2},addCubicCurve:function(r,n,s,d,o,c){c==null&&(c=1);for(var f=r[0],e=r[1],t=n[0],i=n[1],l=s[0],v=s[1],y=d[0],p=d[1],C=this._getCubicCurveApproxStep(r,n,s,d),S=C*C,T=S*C,D=3*C,I=3*S,M=6*S,P=6*T,L=f-t*2+l,R=e-i*2+v,B=(t-l)*3-f+y,U=(i-v)*3-e+p,H=f,K=e,V=(t-f)*D+L*I+B*T,k=(i-e)*D+R*I+U*T,$=L*M+B*P,ae=R*M+U*P,le=B*P,he=U*P,ge=0,me=0,pe=Math.ceil(1/C),Ee=new Float32Array((pe+1)*3),Ee=[],de=0,me=0;me1&&(H=V>0?Math.min(H,y):Math.max(H,y),K=k>0?Math.min(K,p):Math.max(K,p));this.addPolyline(Ee,o,c)},addLine:function(r,n,s,d){this.addPolyline([r,n],s,d)},addPolyline:function(){var r=a.create(),n=a.create(),s=a.create(),d=a.create(),o=[],c=[],f=[];return function(e,t,i,l,v){if(e.length){var y=typeof e[0]!="number";if(v==null&&(v=y?e.length:e.length/2),!(v<2)){l==null&&(l=0),i==null&&(i=1),this._itemVertexOffsets.push(this._vertexOffset);for(var p=y?typeof t[0]!="number":t.length/4===v,C=this.attributes.position,S=this.attributes.color,T=this.attributes.offset,D=this.attributes.normal,I=this.indices,M=this._vertexOffset,P,L=0;L1&&(C.copy(M,M-1),S.copy(M,M-1),M++);else{var U;if(L0){a.sub(r,o,f),a.sub(n,c,o),a.normalize(r,r),a.normalize(n,n),a.add(d,r,n),a.normalize(d,d);var H=i/2*Math.min(1/a.dot(r,d),2);s[0]=-d[1],s[1]=d[0],U=H}else a.sub(r,c,o),a.normalize(r,r),s[0]=-r[1],s[1]=r[0],U=i/2}else a.sub(r,o,f),a.normalize(r,r),s[0]=-r[1],s[1]=r[0],U=i/2;D.set(M,s),D.set(M+1,s),T.set(M,U),T.set(M+1,-U),a.copy(f,o),C.set(M,o),C.set(M+1,o),S.set(M,P),S.set(M+1,P),M+=2}if(this.useNativeLine)S.set(M,P),C.set(M,o),M++;else if(L>0){var K=this._faceOffset*3,I=this.indices;I[K]=M-4,I[K+1]=M-3,I[K+2]=M-2,I[K+3]=M-3,I[K+4]=M-1,I[K+5]=M-2,this._faceOffset+=2}}this._vertexOffset=M}}}}(),setItemColor:function(r,n){for(var s=this._itemVertexOffsets[r],d=rD&&R=0&&this._viewsToDispose.splice(e,1),this.views.push(f),f.layer=this;var t=this.zr;f.scene.traverse(function(i){i.__zr=t,i.addAnimatorsToZr&&i.addAnimatorsToZr(t)})}};function r(f){var e=f.__zr;f.__zr=null,e&&f.removeAnimatorsFromZr&&f.removeAnimatorsFromZr(e)}h.prototype.removeView=function(f){if(f.layer===this){var e=this.views.indexOf(f);e>=0&&(this.views.splice(e,1),f.scene.traverse(r,this),f.layer=null,this._viewsToDispose.push(f))}},h.prototype.removeViewsAll=function(){this.views.forEach(function(f){f.scene.traverse(r,this),f.layer=null,this._viewsToDispose.push(f)},this),this.views.length=0},h.prototype.resize=function(f,e){var t=this.renderer;t.resize(f,e)},h.prototype.clear=function(){var f=this.renderer.gl;f.clearColor(0,0,0,0),f.depthMask(!0),f.colorMask(!0,!0,!0,!0),f.clear(f.DEPTH_BUFFER_BIT|f.COLOR_BUFFER_BIT)},h.prototype.clearDepth=function(){var f=this.renderer.gl;f.clear(f.DEPTH_BUFFER_BIT)},h.prototype.clearColor=function(){var f=this.renderer.gl;f.clearColor(0,0,0,0),f.clear(f.COLOR_BUFFER_BIT)},h.prototype.needsRefresh=function(){this.zr.refresh()},h.prototype.refresh=function(){for(var f=0;f20)){f=f.event;var i=this.pickObject(f.offsetX,f.offsetY);i&&(this._dispatchEvent(f.type,f,i),this._dispatchDataEvent(f.type,f,i));var l=this._clickToSetFocusPoint(f);if(l){var v=l.view.setDOFFocusOnPoint(l.distance);v&&this.zr.refresh()}}}},h.prototype._clickToSetFocusPoint=function(f){for(var e=this.renderer,t=e.viewport,i=this.views.length-1;i>=0;i--){var l=this.views[i];if(l.hasDOF()&&l.containPoint(f.offsetX,f.offsetY)){this._picking.scene=l.scene,this._picking.camera=l.camera,e.viewport=l.viewport;var v=this._picking.pick(f.offsetX,f.offsetY,!0);if(v)return v.view=l,v}}e.viewport=t},h.prototype.onglobalout=function(f){var e=this._hovered;e&&this._dispatchEvent("mouseout",f,{target:e.target})},h.prototype.pickObject=function(f,e){for(var t=[],i=this.renderer,l=i.viewport,v=0;v=0&&(C.dataIndex=this._lastDataIndex,C.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(S,"mouseout",e)),p=!0):y!=null&&y!==this._lastEventData&&(this._lastEventData!=null&&(C.eventData=this._lastEventData,this.zr.handler.dispatchToElement(S,"mouseout",e)),p=!0),this._lastEventData=y,this._lastDataIndex=l,this._lastSeriesIndex=v),C.eventData=y,C.dataIndex=l,C.seriesIndex=v,(y!=null||parseInt(l,10)>=0)&&(this.zr.handler.dispatchToElement(S,f,e),p&&this.zr.handler.dispatchToElement(S,"mouseover",e))},h.prototype._dispatchToView=function(f,e){for(var t=0;t255?255:t}function x(t){return t=Math.round(t),t<0?0:t>360?360:t}function m(t){return t<0?0:t>1?1:t}function a(t){return t.length&&t.charAt(t.length-1)==="%"?g(parseFloat(t)/100*255):g(parseInt(t,10))}function u(t){return t.length&&t.charAt(t.length-1)==="%"?m(parseFloat(t)/100):m(parseFloat(t))}function h(t,i,l){return l<0?l+=1:l>1&&(l-=1),l*6<1?t+(i-t)*l*6:l*2<1?i:l*3<2?t+(i-t)*(2/3-l)*6:t}function r(t,i,l){return t+(i-t)*l}function n(t,i,l,v,y){return t[0]=i,t[1]=l,t[2]=v,t[3]=y,t}function s(t,i){return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t}var d=new O.a(20),o=null;function c(t,i){o&&s(o,i),o=d.put(t,o||i.slice())}A.parse=function(t,i){if(t){i=i||[];var l=d.get(t);if(l)return s(i,l);t=t+"";var v=t.replace(/ /g,"").toLowerCase();if(v in _)return s(i,_[v]),c(t,i),i;if(v.charAt(0)==="#"){if(v.length===4){var y=parseInt(v.substr(1),16);if(!(y>=0&&y<=4095)){n(i,0,0,0,1);return}return n(i,(y&3840)>>4|(y&3840)>>8,y&240|(y&240)>>4,y&15|(y&15)<<4,1),c(t,i),i}else if(v.length===7){var y=parseInt(v.substr(1),16);if(!(y>=0&&y<=16777215)){n(i,0,0,0,1);return}return n(i,(y&16711680)>>16,(y&65280)>>8,y&255,1),c(t,i),i}return}var p=v.indexOf("("),C=v.indexOf(")");if(p!==-1&&C+1===v.length){var S=v.substr(0,p),T=v.substr(p+1,C-(p+1)).split(","),D=1;switch(S){case"rgba":if(T.length!==4){n(i,0,0,0,1);return}D=u(T.pop());case"rgb":if(T.length!==3){n(i,0,0,0,1);return}return n(i,a(T[0]),a(T[1]),a(T[2]),D),c(t,i),i;case"hsla":if(T.length!==4){n(i,0,0,0,1);return}return T[3]=u(T[3]),f(T,i),c(t,i),i;case"hsl":if(T.length!==3){n(i,0,0,0,1);return}return f(T,i),c(t,i),i;default:return}}n(i,0,0,0,1)}},A.parseToFloat=function(t,i){if(i=A.parse(t,i),!!i)return i[0]/=255,i[1]/=255,i[2]/=255,i};function f(t,i){var l=(parseFloat(t[0])%360+360)%360/360,v=u(t[1]),y=u(t[2]),p=y<=.5?y*(v+1):y+v-y*v,C=y*2-p;return i=i||[],n(i,g(h(C,p,l+1/3)*255),g(h(C,p,l)*255),g(h(C,p,l-1/3)*255),1),t.length===4&&(i[3]=t[3]),i}function e(t){if(t){var i=t[0]/255,l=t[1]/255,v=t[2]/255,y=Math.min(i,l,v),p=Math.max(i,l,v),C=p-y,S=(p+y)/2,T,D;if(C===0)T=0,D=0;else{S<.5?D=C/(p+y):D=C/(2-p-y);var I=((p-i)/6+C/2)/C,M=((p-l)/6+C/2)/C,P=((p-v)/6+C/2)/C;i===p?T=P-M:l===p?T=1/3+I-P:v===p&&(T=2/3+M-I),T<0&&(T+=1),T>1&&(T-=1)}var L=[T*360,D,S];return t[3]!=null&&L.push(t[3]),L}}A.lift=function(t,i){var l=A.parse(t);if(l){for(var v=0;v<3;v++)i<0?l[v]=l[v]*(1-i)|0:l[v]=(255-l[v])*i+l[v]|0;return A.stringify(l,l.length===4?"rgba":"rgb")}},A.toHex=function(t){var i=A.parse(t);if(i)return((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1)},A.fastLerp=function(t,i,l){if(!(!(i&&i.length)||!(t>=0&&t<=1))){l=l||[];var v=t*(i.length-1),y=Math.floor(v),p=Math.ceil(v),C=i[y],S=i[p],T=v-y;return l[0]=g(r(C[0],S[0],T)),l[1]=g(r(C[1],S[1],T)),l[2]=g(r(C[2],S[2],T)),l[3]=m(r(C[3],S[3],T)),l}},A.fastMapToColor=A.fastLerp,A.lerp=function(t,i,l){if(!(!(i&&i.length)||!(t>=0&&t<=1))){var v=t*(i.length-1),y=Math.floor(v),p=Math.ceil(v),C=A.parse(i[y]),S=A.parse(i[p]),T=v-y,D=A.stringify([g(r(C[0],S[0],T)),g(r(C[1],S[1],T)),g(r(C[2],S[2],T)),m(r(C[3],S[3],T))],"rgba");return l?{color:D,leftIndex:y,rightIndex:p,value:v}:D}},A.mapToColor=A.lerp,A.modifyHSL=function(t,i,l,v){if(t=A.parse(t),t)return t=e(t),i!=null&&(t[0]=x(i)),l!=null&&(t[1]=u(l)),v!=null&&(t[2]=u(v)),A.stringify(f(t),"rgba")},A.modifyAlpha=function(t,i){if(t=A.parse(t),t&&i!=null)return t[3]=m(i),A.stringify(t,"rgba")},A.stringify=function(t,i){if(!(!t||!t.length)){var l=t[0]+","+t[1]+","+t[2];return(i==="rgba"||i==="hsva"||i==="hsla")&&(l+=","+t[3]),i+"("+l+")"}},w.a=A},function(G,w,E){"use strict";var O=E(95),A=function(_){this._list=new O.a,this._map={},this._maxSize=_||10};A.prototype.setMaxSize=function(_){this._maxSize=_},A.prototype.put=function(_,g){if(typeof this._map[_]=="undefined"){var x=this._list.length();if(x>=this._maxSize&&x>0){var m=this._list.head;this._list.remove(m),delete this._map[m.key]}var a=this._list.insert(g);a.key=_,this._map[_]=a}},A.prototype.get=function(_){var g=this._map[_];if(typeof g!="undefined")return g!==this._list.tail&&(this._list.remove(g),this._list.insertEntry(g)),g.value},A.prototype.remove=function(_){var g=this._map[_];typeof g!="undefined"&&(delete this._map[_],this._list.remove(g))},A.prototype.clear=function(){this._list.clear(),this._map={}},w.a=A},function(G,w,E){"use strict";var O=function(){this.head=null,this.tail=null,this._length=0};O.prototype.insert=function(A){var _=new O.Entry(A);return this.insertEntry(_),_},O.prototype.insertAt=function(A,_){if(!(A<0)){for(var g=this.head,x=0;g&&x!=A;)g=g.next,x++;if(g){var m=new O.Entry(_),a=g.prev;a?(a.next=m,m.prev=a):this.head=m,m.next=g,g.prev=m}else this.insert(_)}},O.prototype.insertBeforeEntry=function(A,_){var g=new O.Entry(A),x=_.prev;x?(x.next=g,g.prev=x):this.head=g,g.next=_,_.prev=g,this._length++},O.prototype.insertEntry=function(A){this.head?(this.tail.next=A,A.prev=this.tail,this.tail=A):this.head=this.tail=A,this._length++},O.prototype.remove=function(A){var _=A.prev,g=A.next;_?_.next=g:this.head=g,g?g.prev=_:this.tail=_,A.next=A.prev=null,this._length--},O.prototype.removeAt=function(A){if(!(A<0)){for(var _=this.head,g=0;_&&g!=A;)_=_.next,g++;if(_)return this.remove(_),_.value}},O.prototype.getHead=function(){if(this.head)return this.head.value},O.prototype.getTail=function(){if(this.tail)return this.tail.value},O.prototype.getAt=function(A){if(!(A<0)){for(var _=this.head,g=0;_&&g!=A;)_=_.next,g++;return _.value}},O.prototype.indexOf=function(A){for(var _=this.head,g=0;_;){if(_.value===A)return g;_=_.next,g++}},O.prototype.length=function(){return this._length},O.prototype.isEmpty=function(){return this._length===0},O.prototype.forEach=function(A,_){for(var g=this.head,x=0,m=typeof _!="undefined";g;)m?A.call(_,g.value,x):A(g.value,x),g=g.next,x++},O.prototype.clear=function(){this.tail=this.head=null,this._length=0},O.Entry=function(A){this.value=A,this.next=null,this.prev=null},w.a=O},function(G,w,E){"use strict";var O=E(97),A=/for\s*?\(int\s*?_idx_\s*\=\s*([\w-]+)\;\s*_idx_\s*<\s*([\w-]+);\s*_idx_\s*\+\+\s*\)\s*\{\{([\s\S]+?)(?=\}\})\}\}/g;function _(u,h,r){function n(o,c,f,e){var t="";isNaN(c)&&(c in h?c=h[c]:c=s[c]),isNaN(f)&&(f in h?f=h[f]:f=s[f]);for(var i=parseInt(c);i0&&n.push("#define "+s.toUpperCase()+"_COUNT "+d)}if(r)for(var o=0;o=0&&R[P]>1e-4&&(r.transformMat4(H,L,I[B[P]]),r.scaleAndAdd(U,U,H,R[P]));K.set(M,U)}}for(var M=0;M=0&&(x(u),u.coordinateSystem==="mapbox"&&(u.coordinateSystem="mapbox3D",a.mapbox3D=a.mapbox))}),m(a.xAxis3D),m(a.yAxis3D),m(a.zAxis3D),m(a.grid3D),g(a.geo3D)}},function(G,w,E){"use strict";function O(A){var _=new XMLHttpRequest;_.open("get",A.url),_.responseType=A.responseType||"text",A.onprogress&&(_.onprogress=function(g){if(g.lengthComputable){var x=g.loaded/g.total;A.onprogress(x,g.loaded,g.total)}else A.onprogress(null)}),_.onload=function(g){_.status>=400?A.onerror&&A.onerror():A.onload&&A.onload(_.response)},A.onerror&&(_.onerror=A.onerror),_.send(null)}w.a={get:O}},function(G,w,E){"use strict";w.a=`@export clay.basic.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform vec2 uvRepeat : [1.0, 1.0]; uniform vec2 uvOffset : [0.0, 0.0]; attribute vec2 texcoord : TEXCOORD_0; attribute vec3 position : POSITION; attribute vec3 barycentric; @import clay.chunk.skinning_header varying vec2 v_Texcoord; varying vec3 v_Barycentric; #ifdef VERTEX_COLOR attribute vec4 a_Color : COLOR; varying vec4 v_Color; #endif void main() { vec3 skinnedPosition = position; #ifdef SKINNING @import clay.chunk.skin_matrix skinnedPosition = (skinMatrixWS * vec4(position, 1.0)).xyz; #endif v_Texcoord = texcoord * uvRepeat + uvOffset; v_Barycentric = barycentric; gl_Position = worldViewProjection * vec4(skinnedPosition, 1.0); #ifdef VERTEX_COLOR v_Color = a_Color; #endif } @end @export clay.basic.fragment varying vec2 v_Texcoord; uniform sampler2D diffuseMap; uniform vec3 color : [1.0, 1.0, 1.0]; uniform vec3 emission : [0.0, 0.0, 0.0]; uniform float alpha : 1.0; #ifdef ALPHA_TEST uniform float alphaCutoff: 0.9; #endif #ifdef VERTEX_COLOR varying vec4 v_Color; #endif uniform float lineWidth : 0.0; uniform vec4 lineColor : [0.0, 0.0, 0.0, 0.6]; varying vec3 v_Barycentric; @import clay.util.edge_factor @import clay.util.rgbm @import clay.util.srgb @import clay.util.ACES void main() { #ifdef RENDER_TEXCOORD gl_FragColor = vec4(v_Texcoord, 1.0, 1.0); return; #endif gl_FragColor = vec4(color, alpha); #ifdef VERTEX_COLOR gl_FragColor *= v_Color; #endif #ifdef DIFFUSEMAP_ENABLED vec4 tex = decodeHDR(texture2D(diffuseMap, v_Texcoord)); #ifdef SRGB_DECODE tex = sRGBToLinear(tex); #endif #if defined(DIFFUSEMAP_ALPHA_ALPHA) gl_FragColor.a = tex.a; #endif gl_FragColor.rgb *= tex.rgb; #endif gl_FragColor.rgb += emission; if( lineWidth > 0.) { gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor(lineWidth)) * lineColor.a); } #ifdef ALPHA_TEST if (gl_FragColor.a < alphaCutoff) { discard; } #endif #ifdef TONEMAPPING gl_FragColor.rgb = ACESToneMapping(gl_FragColor.rgb); #endif #ifdef SRGB_ENCODE gl_FragColor = linearTosRGB(gl_FragColor); #endif gl_FragColor = encodeHDR(gl_FragColor); } @end`},function(G,w,E){"use strict";var O=E(6),A=E(5),_=E(25),g=542327876,x=1,m=2,a=4,u=8,h=4096,r=131072,n=524288,s=8388608,d=8,o=4194304,c=4096,f=512,e=1024,t=2048,i=4096,l=8192,v=16384,y=32768,p=2097152,C=1,S=2,T=4,D=64,I=512,M=131072;function P(ce){return ce.charCodeAt(0)+(ce.charCodeAt(1)<<8)+(ce.charCodeAt(2)<<16)+(ce.charCodeAt(3)<<24)}function L(ce){return String.fromCharCode(ce&255,ce>>8&255,ce>>16&255,ce>>24&255)}var R=31,B=P("DXT1"),U=P("DXT3"),H=P("DXT5"),K=0,V=1,k=2,$=3,ae=4,le=7,he=20,ge=21,me=27,pe=28,Ee=29,de=30,ve={parse:function(ce,oe){var X=new Int32Array(ce,0,R);if(X[K]!==g||!X(he)&T)return null;var ne=X(ge),j=X[ae],re=X[$],Z=X[pe]&f,ee=X[k]&r,se,J;switch(ne){case B:se=8,J=O.a.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case U:se=16,J=O.a.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case H:se=16,J=O.a.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var ie=X[V]+4,fe=Z?6:1,_e=1;ee&&(_e=Math.max(1,X[le]));for(var De=[],Ie=0;Ie0){var f=Math.pow(2,s[3]-128-8+c);d[o+0]=s[0]*f,d[o+1]=s[1]*f,d[o+2]=s[2]*f}else d[o+0]=0,d[o+1]=0,d[o+2]=0;return d[o+3]=1,d}function a(s,d,o){for(var c="",f=d;f0;)if(s[e][0]=d[o++],s[e][1]=d[o++],s[e][2]=d[o++],s[e][3]=d[o++],s[e][0]===1&&s[e][1]===1&&s[e][2]===1){for(var i=s[e][3]<>>0;i>0;i--)u(s[e-1],s[e]),e++,t--;f+=8}else e++,t--,f=0;return o}function r(s,d,o,c){if(cx)return h(s,d,o,c);var f=d[o++];if(f!=2)return h(s,d,o-1,c);if(s[0][1]=d[o++],s[0][2]=d[o++],f=d[o++],(s[0][2]<<8>>>0|f)>>>0!==c)return null;for(var f=0;f<4;f++)for(var e=0;e128){t=(t&127)>>>0;for(var i=d[o++];t--;)s[e++][f]=i}else for(;t--;)s[e++][f]=d[o++]}return o}var n={parseRGBE:function(s,d,o){o==null&&(o=0);var c=new Uint8Array(s),f=c.length;if(a(c,0,2)==="#?"){for(var e=2;e=f)){e+=2;for(var t="";e=0||(g.forEach(function(u){a.on(u,this[x(u)],this)},this),this._meshes.push(a))},detachFromMesh:function(a){var u=this._meshes.indexOf(a);u>=0&&this._meshes.splice(u,1),g.forEach(function(h){a.off(h,this[x(h)])},this)},dispose:function(){this._meshes.forEach(function(a){this.detachFromMesh(a)},this)}},w.a=m},function(G,w,E){"use strict";var O=E(19),A=E(108),_=O.a.extend({cubemap:null,castShadow:!1,_normalDistribution:null,_brdfLookup:null},{type:"AMBIENT_CUBEMAP_LIGHT",prefilter:function(g,x){this._brdfLookup||(this._normalDistribution=A.a.generateNormalDistribution(),this._brdfLookup=A.a.integrateBRDF(g,this._normalDistribution));var m=this.cubemap;if(!m.__prefiltered){var a=A.a.prefilterEnvironmentMap(g,m,{encodeRGBM:!0,width:x,height:x},this._normalDistribution,this._brdfLookup);this.cubemap=a.environmentMap,this.cubemap.__prefiltered=!0,m.dispose(g)}},uniformTemplates:{ambientCubemapLightColor:{type:"3f",value:function(g){var x=g.color,m=g.intensity;return[x[0]*m,x[1]*m,x[2]*m]}},ambientCubemapLightCubemap:{type:"t",value:function(g){return g.cubemap}},ambientCubemapLightBRDFLookup:{type:"t",value:function(g){return g._brdfLookup}}}});w.a=_},function(G,w,E){"use strict";var O=E(5),A=E(25),_=E(6),g=E(10),x=E(14),m=E(17),a=E(7),u=E(57),h=E(29),r=E(55),n=E(18),s=E(54),d=E(111),o=E(112),c={},f=["px","nx","py","ny","pz","nz"];c.prefilterEnvironmentMap=function(e,t,i,l,v){(!v||!l)&&(l=c.generateNormalDistribution(),v=c.integrateBRDF(e,l)),i=i||{};var y=i.width||64,p=i.height||64,C=i.type||t.type,S=new A.a({width:y,height:p,type:C,flipY:!1,mipmaps:[]});S.isPowerOfTwo()||console.warn("Width and height must be power of two to enable mipmap.");var T=Math.min(y,p),D=Math.log(T)/Math.log(2)+1,I=new m.a({shader:new a.a({vertex:a.a.source("clay.skybox.vertex"),fragment:o.a})});I.set("normalDistribution",l),i.encodeRGBM&&I.define("fragment","RGBM_ENCODE"),i.decodeRGBM&&I.define("fragment","RGBM_DECODE");var M=new h.a,P;if(t instanceof O.a){var L=new A.a({width:y,height:p,type:C===_.a.FLOAT?_.a.HALF_FLOAT:C});s.a.panoramaToCubeMap(e,t,L,{encodeRGBM:i.decodeRGBM}),t=L}P=new u.a({scene:M,material:I}),P.material.set("environmentMap",t);var R=new r.a({texture:S});i.encodeRGBM&&(C=S.type=_.a.UNSIGNED_BYTE);for(var B=new O.a({width:y,height:p,type:C}),U=new g.a({depthBuffer:!1}),H=n.a[C===_.a.UNSIGNED_BYTE?"Uint8Array":"Float32Array"],K=0;K>>16)>>>0;S=((S&1431655765)<<1|(S&2863311530)>>>1)>>>0,S=((S&858993459)<<2|(S&3435973836)>>>2)>>>0,S=((S&252645135)<<4|(S&4042322160)>>>4)>>>0,S=(((S&16711935)<<8|(S&4278255360)>>>8)>>>0)/4294967296;for(var T=0;T 0.0) { float G = G_Smith(roughness, NoV, NoL); float G_Vis = G * VoH / (NoH * NoV); float Fc = pow(1.0 - VoH, 5.0); A += (1.0 - Fc) * G_Vis; B += Fc * G_Vis; } } gl_FragColor = vec4(vec2(A, B) / fSampleNumber, 0.0, 1.0); } `},function(G,w,E){"use strict";w.a=`#define SAMPLE_NUMBER 1024 #define PI 3.14159265358979 uniform mat4 viewInverse : VIEWINVERSE; uniform samplerCube environmentMap; uniform sampler2D normalDistribution; uniform float roughness : 0.5; varying vec2 v_Texcoord; varying vec3 v_WorldPosition; const float fSampleNumber = float(SAMPLE_NUMBER); @import clay.util.rgbm vec3 importanceSampleNormal(float i, float roughness, vec3 N) { vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb; vec3 upVector = abs(N.z) < 0.999 ? vec3(0.0, 0.0, 1.0) : vec3(1.0, 0.0, 0.0); vec3 tangentX = normalize(cross(upVector, N)); vec3 tangentY = cross(N, tangentX); return tangentX * H.x + tangentY * H.y + N * H.z; } void main() { vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(v_WorldPosition - eyePos); vec3 N = V; vec3 R = V; vec3 prefilteredColor = vec3(0.0); float totalWeight = 0.0; for (int i = 0; i < SAMPLE_NUMBER; i++) { vec3 H = importanceSampleNormal(float(i) / fSampleNumber, roughness, N); vec3 L = reflect(-V, H); float NoL = clamp(dot(N, L), 0.0, 1.0); if (NoL > 0.0) { prefilteredColor += decodeHDR(textureCube(environmentMap, L)).rgb * NoL; totalWeight += NoL; } } gl_FragColor = encodeHDR(vec4(prefilteredColor / totalWeight, 1.0)); } `},function(G,w,E){"use strict";var O=E(19),A=E(18),_=O.a.extend({castShadow:!1,coefficients:[]},function(){this._coefficientsTmpArr=new A.a.Float32Array(9*3)},{type:"AMBIENT_SH_LIGHT",uniformTemplates:{ambientSHLightColor:{type:"3f",value:function(g){var x=g.color,m=g.intensity;return[x[0]*m,x[1]*m,x[2]*m]}},ambientSHLightCoefficients:{type:"3f",value:function(g){for(var x=g._coefficientsTmpArr,m=0;m=0&&s.splice(c,1)}),s.push(d),this.__zr&&this.__zr.animation.addAnimator(d),d},stopAnimation:function(g){this._animators=this._animators||[];for(var x=this._animators,m=x.length,a=0;a.5?y:v}function r(v,y,p,C,S){var T=v.length;if(S==1)for(var D=0;DS;if(T)v.length=S;else for(var D=C;D=0&&!(V[J]<=se);J--);J=Math.min(J,P-2)}else{for(J=pe;Jse);J++);J=Math.min(J-1,P-2)}pe=J,Ee=se;var ie=V[J+1]-V[J];if(ie!==0)if(ve=(se-V[J])/ie,M)if(oe=k[J],ce=k[J===0?J:J-1],X=k[J>P-2?P-1:J+1],ne=k[J>P-3?P-1:J+2],R)d(ce,oe,X,ne,ve,ve*ve,ve*ve*ve,D(ee,S),H);else{var fe;if(B)fe=d(ce,oe,X,ne,ve,ve*ve,ve*ve*ve,j,1),fe=f(j);else{if(U)return h(oe,X,ve);fe=o(ce,oe,X,ne,ve,ve*ve,ve*ve*ve)}I(ee,S,fe)}else if(R)r(k[J],k[J+1],ve,D(ee,S),H);else{var fe;if(B)r(k[J],k[J+1],ve,j,1),fe=f(j);else{if(U)return h(k[J],k[J+1],ve);fe=u(k[J],k[J+1],ve)}I(ee,S,fe)}},Z=new O({target:v._target,life:K,loop:v._loop,delay:v._delay,onframe:re,ondestroy:p});return y&&y!=="spline"&&(Z.easing=y),Z}}}var i=function(v,y,p,C){this._tracks={},this._target=v,this._loop=y||!1,this._getter=p||m,this._setter=C||a,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};i.prototype={when:function(v,y){var p=this._tracks;for(var C in y)if(y.hasOwnProperty(C)){if(!p[C]){p[C]=[];var S=this._getter(this._target,C);if(S==null)continue;v!==0&&p[C].push({time:0,value:c(S)})}p[C].push({time:v,value:y[C]})}return this},during:function(v){return this._onframeList.push(v),this},pause:function(){for(var v=0;v255?255:D}function g(D){return D=Math.round(D),D<0?0:D>360?360:D}function x(D){return D<0?0:D>1?1:D}function m(D){return D.length&&D.charAt(D.length-1)==="%"?_(parseFloat(D)/100*255):_(parseInt(D,10))}function a(D){return D.length&&D.charAt(D.length-1)==="%"?x(parseFloat(D)/100):x(parseFloat(D))}function u(D,I,M){return M<0?M+=1:M>1&&(M-=1),M*6<1?D+(I-D)*M*6:M*2<1?I:M*3<2?D+(I-D)*(2/3-M)*6:D}function h(D,I,M){return D+(I-D)*M}function r(D,I,M,P,L){return D[0]=I,D[1]=M,D[2]=P,D[3]=L,D}function n(D,I){return D[0]=I[0],D[1]=I[1],D[2]=I[2],D[3]=I[3],D}var s=new O(20),d=null;function o(D,I){d&&n(d,I),d=s.put(D,d||I.slice())}function c(D,I){if(D){I=I||[];var M=s.get(D);if(M)return n(I,M);D=D+"";var P=D.replace(/ /g,"").toLowerCase();if(P in A)return n(I,A[P]),o(D,I),I;if(P.charAt(0)==="#"){if(P.length===4){var L=parseInt(P.substr(1),16);if(!(L>=0&&L<=4095)){r(I,0,0,0,1);return}return r(I,(L&3840)>>4|(L&3840)>>8,L&240|(L&240)>>4,L&15|(L&15)<<4,1),o(D,I),I}else if(P.length===7){var L=parseInt(P.substr(1),16);if(!(L>=0&&L<=16777215)){r(I,0,0,0,1);return}return r(I,(L&16711680)>>16,(L&65280)>>8,L&255,1),o(D,I),I}return}var R=P.indexOf("("),B=P.indexOf(")");if(R!==-1&&B+1===P.length){var U=P.substr(0,R),H=P.substr(R+1,B-(R+1)).split(","),K=1;switch(U){case"rgba":if(H.length!==4){r(I,0,0,0,1);return}K=a(H.pop());case"rgb":if(H.length!==3){r(I,0,0,0,1);return}return r(I,m(H[0]),m(H[1]),m(H[2]),K),o(D,I),I;case"hsla":if(H.length!==4){r(I,0,0,0,1);return}return H[3]=a(H[3]),f(H,I),o(D,I),I;case"hsl":if(H.length!==3){r(I,0,0,0,1);return}return f(H,I),o(D,I),I;default:return}}r(I,0,0,0,1)}}function f(D,I){var M=(parseFloat(D[0])%360+360)%360/360,P=a(D[1]),L=a(D[2]),R=L<=.5?L*(P+1):L+P-L*P,B=L*2-R;return I=I||[],r(I,_(u(B,R,M+1/3)*255),_(u(B,R,M)*255),_(u(B,R,M-1/3)*255),1),D.length===4&&(I[3]=D[3]),I}function e(D){if(D){var I=D[0]/255,M=D[1]/255,P=D[2]/255,L=Math.min(I,M,P),R=Math.max(I,M,P),B=R-L,U=(R+L)/2,H,K;if(B===0)H=0,K=0;else{U<.5?K=B/(R+L):K=B/(2-R-L);var V=((R-I)/6+B/2)/B,k=((R-M)/6+B/2)/B,$=((R-P)/6+B/2)/B;I===R?H=$-k:M===R?H=1/3+V-$:P===R&&(H=2/3+k-V),H<0&&(H+=1),H>1&&(H-=1)}var ae=[H*360,K,U];return D[3]!=null&&ae.push(D[3]),ae}}function t(D,I){var M=c(D);if(M){for(var P=0;P<3;P++)I<0?M[P]=M[P]*(1-I)|0:M[P]=(255-M[P])*I+M[P]|0;return T(M,M.length===4?"rgba":"rgb")}}function i(D){var I=c(D);if(I)return((1<<24)+(I[0]<<16)+(I[1]<<8)+ +I[2]).toString(16).slice(1)}function l(D,I,M){if(!(!(I&&I.length)||!(D>=0&&D<=1))){M=M||[];var P=D*(I.length-1),L=Math.floor(P),R=Math.ceil(P),B=I[L],U=I[R],H=P-L;return M[0]=_(h(B[0],U[0],H)),M[1]=_(h(B[1],U[1],H)),M[2]=_(h(B[2],U[2],H)),M[3]=x(h(B[3],U[3],H)),M}}var v=l;function y(D,I,M){if(!(!(I&&I.length)||!(D>=0&&D<=1))){var P=D*(I.length-1),L=Math.floor(P),R=Math.ceil(P),B=c(I[L]),U=c(I[R]),H=P-L,K=T([_(h(B[0],U[0],H)),_(h(B[1],U[1],H)),_(h(B[2],U[2],H)),x(h(B[3],U[3],H))],"rgba");return M?{color:K,leftIndex:L,rightIndex:R,value:P}:K}}var p=y;function C(D,I,M,P){if(D=c(D),D)return D=e(D),I!=null&&(D[0]=g(I)),M!=null&&(D[1]=a(M)),P!=null&&(D[2]=a(P)),T(f(D),"rgba")}function S(D,I){if(D=c(D),D&&I!=null)return D[3]=x(I),T(D,"rgba")}function T(D,I){if(!(!D||!D.length)){var M=D[0]+","+D[1]+","+D[2];return(I==="rgba"||I==="hsva"||I==="hsla")&&(M+=","+D[3]),I+"("+M+")"}}w.parse=c,w.lift=t,w.toHex=i,w.fastLerp=l,w.fastMapToColor=v,w.lerp=y,w.mapToColor=p,w.modifyHSL=C,w.modifyAlpha=S,w.stringify=T},function(G,w,E){"use strict";w.a=` @export clay.util.rand highp float rand(vec2 uv) { const highp float a = 12.9898, b = 78.233, c = 43758.5453; highp float dt = dot(uv.xy, vec2(a,b)), sn = mod(dt, 3.141592653589793); return fract(sin(sn) * c); } @end @export clay.util.calculate_attenuation uniform float attenuationFactor : 5.0; float lightAttenuation(float dist, float range) { float attenuation = 1.0; attenuation = dist*dist/(range*range+1.0); float att_s = attenuationFactor; attenuation = 1.0/(attenuation*att_s+1.0); att_s = 1.0/(att_s+1.0); attenuation = attenuation - att_s; attenuation /= 1.0 - att_s; return clamp(attenuation, 0.0, 1.0); } @end @export clay.util.edge_factor float edgeFactor(float width) { vec3 d = fwidth(v_Barycentric); vec3 a3 = smoothstep(vec3(0.0), d * width, v_Barycentric); return min(min(a3.x, a3.y), a3.z); } @end @export clay.util.encode_float vec4 encodeFloat(const in float depth) { const vec4 bitShifts = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0); const vec4 bit_mask = vec4(0.0, 1.0/256.0, 1.0/256.0, 1.0/256.0); vec4 res = fract(depth * bitShifts); res -= res.xxyz * bit_mask; return res; } @end @export clay.util.decode_float float decodeFloat(const in vec4 color) { const vec4 bitShifts = vec4(1.0/(256.0*256.0*256.0), 1.0/(256.0*256.0), 1.0/256.0, 1.0); return dot(color, bitShifts); } @end @export clay.util.float @import clay.util.encode_float @import clay.util.decode_float @end @export clay.util.rgbm_decode vec3 RGBMDecode(vec4 rgbm, float range) { return range * rgbm.rgb * rgbm.a; } @end @export clay.util.rgbm_encode vec4 RGBMEncode(vec3 color, float range) { if (dot(color, color) == 0.0) { return vec4(0.0); } vec4 rgbm; color /= range; rgbm.a = clamp(max(max(color.r, color.g), max(color.b, 1e-6)), 0.0, 1.0); rgbm.a = ceil(rgbm.a * 255.0) / 255.0; rgbm.rgb = color / rgbm.a; return rgbm; } @end @export clay.util.rgbm @import clay.util.rgbm_decode @import clay.util.rgbm_encode vec4 decodeHDR(vec4 color) { #if defined(RGBM_DECODE) || defined(RGBM) return vec4(RGBMDecode(color, 51.5), 1.0); #else return color; #endif } vec4 encodeHDR(vec4 color) { #if defined(RGBM_ENCODE) || defined(RGBM) return RGBMEncode(color.xyz, 51.5); #else return color; #endif } @end @export clay.util.srgb vec4 sRGBToLinear(in vec4 value) { return vec4(mix(pow(value.rgb * 0.9478672986 + vec3(0.0521327014), vec3(2.4)), value.rgb * 0.0773993808, vec3(lessThanEqual(value.rgb, vec3(0.04045)))), value.w); } vec4 linearTosRGB(in vec4 value) { return vec4(mix(pow(value.rgb, vec3(0.41666)) * 1.055 - vec3(0.055), value.rgb * 12.92, vec3(lessThanEqual(value.rgb, vec3(0.0031308)))), value.w); } @end @export clay.chunk.skinning_header #ifdef SKINNING attribute vec3 weight : WEIGHT; attribute vec4 joint : JOINT; uniform mat4 skinMatrix[JOINT_COUNT] : SKIN_MATRIX; mat4 getSkinMatrix(float idx) { return skinMatrix[int(idx)]; } #endif @end @export clay.chunk.skin_matrix mat4 skinMatrixWS = getSkinMatrix(joint.x) * weight.x; if (weight.y > 1e-4) { skinMatrixWS += getSkinMatrix(joint.y) * weight.y; } if (weight.z > 1e-4) { skinMatrixWS += getSkinMatrix(joint.z) * weight.z; } float weightW = 1.0-weight.x-weight.y-weight.z; if (weightW > 1e-4) { skinMatrixWS += getSkinMatrix(joint.w) * weightW; } @end @export clay.util.parallax_correct vec3 parallaxCorrect(in vec3 dir, in vec3 pos, in vec3 boxMin, in vec3 boxMax) { vec3 first = (boxMax - pos) / dir; vec3 second = (boxMin - pos) / dir; vec3 further = max(first, second); float dist = min(further.x, min(further.y, further.z)); vec3 fixedPos = pos + dir * dist; vec3 boxCenter = (boxMax + boxMin) * 0.5; return normalize(fixedPos - boxCenter); } @end @export clay.util.clamp_sample vec4 clampSample(const in sampler2D texture, const in vec2 coord) { #ifdef STEREO float eye = step(0.5, coord.x) * 0.5; vec2 coordClamped = clamp(coord, vec2(eye, 0.0), vec2(0.5 + eye, 1.0)); #else vec2 coordClamped = clamp(coord, vec2(0.0), vec2(1.0)); #endif return texture2D(texture, coordClamped); } @end @export clay.util.ACES vec3 ACESToneMapping(vec3 color) { const float A = 2.51; const float B = 0.03; const float C = 2.43; const float D = 0.59; const float E = 0.14; return (color * (A * color + B)) / (color * (C * color + D) + E); } @end`},function(G,w,E){"use strict";w.a=` @export ecgl.common.transformUniforms uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE; uniform mat4 world : WORLD; @end @export ecgl.common.attributes attribute vec3 position : POSITION; attribute vec2 texcoord : TEXCOORD_0; attribute vec3 normal : NORMAL; @end @export ecgl.common.uv.header uniform vec2 uvRepeat : [1.0, 1.0]; uniform vec2 uvOffset : [0.0, 0.0]; uniform vec2 detailUvRepeat : [1.0, 1.0]; uniform vec2 detailUvOffset : [0.0, 0.0]; varying vec2 v_Texcoord; varying vec2 v_DetailTexcoord; @end @export ecgl.common.uv.main v_Texcoord = texcoord * uvRepeat + uvOffset; v_DetailTexcoord = texcoord * detailUvRepeat + detailUvOffset; @end @export ecgl.common.uv.fragmentHeader varying vec2 v_Texcoord; varying vec2 v_DetailTexcoord; @end @export ecgl.common.albedo.main vec4 albedoTexel = vec4(1.0); #ifdef DIFFUSEMAP_ENABLED albedoTexel = texture2D(diffuseMap, v_Texcoord); #ifdef SRGB_DECODE albedoTexel = sRGBToLinear(albedoTexel); #endif #endif #ifdef DETAILMAP_ENABLED vec4 detailTexel = texture2D(detailMap, v_DetailTexcoord); #ifdef SRGB_DECODE detailTexel = sRGBToLinear(detailTexel); #endif albedoTexel.rgb = mix(albedoTexel.rgb, detailTexel.rgb, detailTexel.a); albedoTexel.a = detailTexel.a + (1.0 - detailTexel.a) * albedoTexel.a; #endif @end @export ecgl.common.wireframe.vertexHeader #ifdef WIREFRAME_QUAD attribute vec4 barycentric; varying vec4 v_Barycentric; #elif defined(WIREFRAME_TRIANGLE) attribute vec3 barycentric; varying vec3 v_Barycentric; #endif @end @export ecgl.common.wireframe.vertexMain #if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE) v_Barycentric = barycentric; #endif @end @export ecgl.common.wireframe.fragmentHeader uniform float wireframeLineWidth : 1; uniform vec4 wireframeLineColor: [0, 0, 0, 0.5]; #ifdef WIREFRAME_QUAD varying vec4 v_Barycentric; float edgeFactor () { vec4 d = fwidth(v_Barycentric); vec4 a4 = smoothstep(vec4(0.0), d * wireframeLineWidth, v_Barycentric); return min(min(min(a4.x, a4.y), a4.z), a4.w); } #elif defined(WIREFRAME_TRIANGLE) varying vec3 v_Barycentric; float edgeFactor () { vec3 d = fwidth(v_Barycentric); vec3 a3 = smoothstep(vec3(0.0), d * wireframeLineWidth, v_Barycentric); return min(min(a3.x, a3.y), a3.z); } #endif @end @export ecgl.common.wireframe.fragmentMain #if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE) if (wireframeLineWidth > 0.) { vec4 lineColor = wireframeLineColor; #ifdef SRGB_DECODE lineColor = sRGBToLinear(lineColor); #endif gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor()) * lineColor.a); } #endif @end @export ecgl.common.bumpMap.header #ifdef BUMPMAP_ENABLED uniform sampler2D bumpMap; uniform float bumpScale : 1.0; vec3 bumpNormal(vec3 surfPos, vec3 surfNormal, vec3 baseNormal) { vec2 dSTdx = dFdx(v_Texcoord); vec2 dSTdy = dFdy(v_Texcoord); float Hll = bumpScale * texture2D(bumpMap, v_Texcoord).x; float dHx = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdx).x - Hll; float dHy = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdy).x - Hll; vec3 vSigmaX = dFdx(surfPos); vec3 vSigmaY = dFdy(surfPos); vec3 vN = surfNormal; vec3 R1 = cross(vSigmaY, vN); vec3 R2 = cross(vN, vSigmaX); float fDet = dot(vSigmaX, R1); vec3 vGrad = sign(fDet) * (dHx * R1 + dHy * R2); return normalize(abs(fDet) * baseNormal - vGrad); } #endif @end @export ecgl.common.normalMap.vertexHeader #ifdef NORMALMAP_ENABLED attribute vec4 tangent : TANGENT; varying vec3 v_Tangent; varying vec3 v_Bitangent; #endif @end @export ecgl.common.normalMap.vertexMain #ifdef NORMALMAP_ENABLED if (dot(tangent, tangent) > 0.0) { v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz); v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w); } #endif @end @export ecgl.common.normalMap.fragmentHeader #ifdef NORMALMAP_ENABLED uniform sampler2D normalMap; varying vec3 v_Tangent; varying vec3 v_Bitangent; #endif @end @export ecgl.common.normalMap.fragmentMain #ifdef NORMALMAP_ENABLED if (dot(v_Tangent, v_Tangent) > 0.0) { vec3 normalTexel = texture2D(normalMap, v_DetailTexcoord).xyz; if (dot(normalTexel, normalTexel) > 0.0) { N = normalTexel * 2.0 - 1.0; mat3 tbn = mat3(v_Tangent, v_Bitangent, v_Normal); N = normalize(tbn * N); } } #endif @end @export ecgl.common.vertexAnimation.header #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; attribute vec3 prevNormal; uniform float percent; #endif @end @export ecgl.common.vertexAnimation.main #ifdef VERTEX_ANIMATION vec3 pos = mix(prevPosition, position, percent); vec3 norm = mix(prevNormal, normal, percent); #else vec3 pos = position; vec3 norm = normal; #endif @end @export ecgl.common.ssaoMap.header #ifdef SSAOMAP_ENABLED uniform sampler2D ssaoMap; uniform vec4 viewport : VIEWPORT; #endif @end @export ecgl.common.ssaoMap.main float ao = 1.0; #ifdef SSAOMAP_ENABLED ao = texture2D(ssaoMap, (gl_FragCoord.xy - viewport.xy) / viewport.zw).r; #endif @end @export ecgl.common.diffuseLayer.header #if (LAYER_DIFFUSEMAP_COUNT > 0) uniform float layerDiffuseIntensity[LAYER_DIFFUSEMAP_COUNT]; uniform sampler2D layerDiffuseMap[LAYER_DIFFUSEMAP_COUNT]; #endif @end @export ecgl.common.emissiveLayer.header #if (LAYER_EMISSIVEMAP_COUNT > 0) uniform float layerEmissionIntensity[LAYER_EMISSIVEMAP_COUNT]; uniform sampler2D layerEmissiveMap[LAYER_EMISSIVEMAP_COUNT]; #endif @end @export ecgl.common.layers.header @import ecgl.common.diffuseLayer.header @import ecgl.common.emissiveLayer.header @end @export ecgl.common.diffuseLayer.main #if (LAYER_DIFFUSEMAP_COUNT > 0) for (int _idx_ = 0; _idx_ < LAYER_DIFFUSEMAP_COUNT; _idx_++) {{ float intensity = layerDiffuseIntensity[_idx_]; vec4 texel2 = texture2D(layerDiffuseMap[_idx_], v_Texcoord); #ifdef SRGB_DECODE texel2 = sRGBToLinear(texel2); #endif albedoTexel.rgb = mix(albedoTexel.rgb, texel2.rgb * intensity, texel2.a); albedoTexel.a = texel2.a + (1.0 - texel2.a) * albedoTexel.a; }} #endif @end @export ecgl.common.emissiveLayer.main #if (LAYER_EMISSIVEMAP_COUNT > 0) for (int _idx_ = 0; _idx_ < LAYER_EMISSIVEMAP_COUNT; _idx_++) {{ vec4 texel2 = texture2D(layerEmissiveMap[_idx_], v_Texcoord) * layerEmissionIntensity[_idx_]; #ifdef SRGB_DECODE texel2 = sRGBToLinear(texel2); #endif float intensity = layerEmissionIntensity[_idx_]; gl_FragColor.rgb += texel2.rgb * texel2.a * intensity; }} #endif @end `},function(G,w,E){"use strict";w.a=`@export ecgl.color.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; @import ecgl.common.uv.header attribute vec2 texcoord : TEXCOORD_0; attribute vec3 position: POSITION; @import ecgl.common.wireframe.vertexHeader #ifdef VERTEX_COLOR attribute vec4 a_Color : COLOR; varying vec4 v_Color; #endif #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; uniform float percent : 1.0; #endif void main() { #ifdef VERTEX_ANIMATION vec3 pos = mix(prevPosition, position, percent); #else vec3 pos = position; #endif gl_Position = worldViewProjection * vec4(pos, 1.0); @import ecgl.common.uv.main #ifdef VERTEX_COLOR v_Color = a_Color; #endif @import ecgl.common.wireframe.vertexMain } @end @export ecgl.color.fragment #define LAYER_DIFFUSEMAP_COUNT 0 #define LAYER_EMISSIVEMAP_COUNT 0 uniform sampler2D diffuseMap; uniform sampler2D detailMap; uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; #ifdef VERTEX_COLOR varying vec4 v_Color; #endif @import ecgl.common.layers.header @import ecgl.common.uv.fragmentHeader @import ecgl.common.wireframe.fragmentHeader @import clay.util.srgb void main() { #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(color); #else gl_FragColor = color; #endif #ifdef VERTEX_COLOR gl_FragColor *= v_Color; #endif @import ecgl.common.albedo.main @import ecgl.common.diffuseLayer.main gl_FragColor *= albedoTexel; @import ecgl.common.emissiveLayer.main @import ecgl.common.wireframe.fragmentMain } @end`},function(G,w,E){"use strict";w.a=`/** * http: */ @export ecgl.lambert.vertex @import ecgl.common.transformUniforms @import ecgl.common.uv.header @import ecgl.common.attributes @import ecgl.common.wireframe.vertexHeader #ifdef VERTEX_COLOR attribute vec4 a_Color : COLOR; varying vec4 v_Color; #endif @import ecgl.common.vertexAnimation.header varying vec3 v_Normal; varying vec3 v_WorldPosition; void main() { @import ecgl.common.uv.main @import ecgl.common.vertexAnimation.main gl_Position = worldViewProjection * vec4(pos, 1.0); v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz); v_WorldPosition = (world * vec4(pos, 1.0)).xyz; #ifdef VERTEX_COLOR v_Color = a_Color; #endif @import ecgl.common.wireframe.vertexMain } @end @export ecgl.lambert.fragment #define LAYER_DIFFUSEMAP_COUNT 0 #define LAYER_EMISSIVEMAP_COUNT 0 #define NORMAL_UP_AXIS 1 #define NORMAL_FRONT_AXIS 2 @import ecgl.common.uv.fragmentHeader varying vec3 v_Normal; varying vec3 v_WorldPosition; uniform sampler2D diffuseMap; uniform sampler2D detailMap; @import ecgl.common.layers.header uniform float emissionIntensity: 1.0; uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; uniform mat4 viewInverse : VIEWINVERSE; #ifdef AMBIENT_LIGHT_COUNT @import clay.header.ambient_light #endif #ifdef AMBIENT_SH_LIGHT_COUNT @import clay.header.ambient_sh_light #endif #ifdef DIRECTIONAL_LIGHT_COUNT @import clay.header.directional_light #endif #ifdef VERTEX_COLOR varying vec4 v_Color; #endif @import ecgl.common.ssaoMap.header @import ecgl.common.bumpMap.header @import clay.util.srgb @import ecgl.common.wireframe.fragmentHeader @import clay.plugin.compute_shadow_map void main() { #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(color); #else gl_FragColor = color; #endif #ifdef VERTEX_COLOR #ifdef SRGB_DECODE gl_FragColor *= sRGBToLinear(v_Color); #else gl_FragColor *= v_Color; #endif #endif @import ecgl.common.albedo.main @import ecgl.common.diffuseLayer.main gl_FragColor *= albedoTexel; vec3 N = v_Normal; #ifdef DOUBLE_SIDED vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(eyePos - v_WorldPosition); if (dot(N, V) < 0.0) { N = -N; } #endif float ambientFactor = 1.0; #ifdef BUMPMAP_ENABLED N = bumpNormal(v_WorldPosition, v_Normal, N); ambientFactor = dot(v_Normal, N); #endif vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); vec3 diffuseColor = vec3(0.0, 0.0, 0.0); @import ecgl.common.ssaoMap.main #ifdef AMBIENT_LIGHT_COUNT for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++) { diffuseColor += ambientLightColor[i] * ambientFactor * ao; } #endif #ifdef AMBIENT_SH_LIGHT_COUNT for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) {{ diffuseColor += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao; }} #endif #ifdef DIRECTIONAL_LIGHT_COUNT #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; if(shadowEnabled) { computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); } #endif for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) { vec3 lightDirection = -directionalLightDirection[i]; vec3 lightColor = directionalLightColor[i]; float shadowContrib = 1.0; #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) if (shadowEnabled) { shadowContrib = shadowContribsDir[i]; } #endif float ndl = dot(N, normalize(lightDirection)) * shadowContrib; diffuseColor += lightColor * clamp(ndl, 0.0, 1.0); } #endif gl_FragColor.rgb *= diffuseColor; @import ecgl.common.emissiveLayer.main @import ecgl.common.wireframe.fragmentMain } @end`},function(G,w,E){"use strict";w.a=`@export ecgl.realistic.vertex @import ecgl.common.transformUniforms @import ecgl.common.uv.header @import ecgl.common.attributes @import ecgl.common.wireframe.vertexHeader #ifdef VERTEX_COLOR attribute vec4 a_Color : COLOR; varying vec4 v_Color; #endif #ifdef NORMALMAP_ENABLED attribute vec4 tangent : TANGENT; varying vec3 v_Tangent; varying vec3 v_Bitangent; #endif @import ecgl.common.vertexAnimation.header varying vec3 v_Normal; varying vec3 v_WorldPosition; void main() { @import ecgl.common.uv.main @import ecgl.common.vertexAnimation.main gl_Position = worldViewProjection * vec4(pos, 1.0); v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz); v_WorldPosition = (world * vec4(pos, 1.0)).xyz; #ifdef VERTEX_COLOR v_Color = a_Color; #endif #ifdef NORMALMAP_ENABLED v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz); v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w); #endif @import ecgl.common.wireframe.vertexMain } @end @export ecgl.realistic.fragment #define LAYER_DIFFUSEMAP_COUNT 0 #define LAYER_EMISSIVEMAP_COUNT 0 #define PI 3.14159265358979 #define ROUGHNESS_CHANEL 0 #define METALNESS_CHANEL 1 #define NORMAL_UP_AXIS 1 #define NORMAL_FRONT_AXIS 2 #ifdef VERTEX_COLOR varying vec4 v_Color; #endif @import ecgl.common.uv.fragmentHeader varying vec3 v_Normal; varying vec3 v_WorldPosition; uniform sampler2D diffuseMap; uniform sampler2D detailMap; uniform sampler2D metalnessMap; uniform sampler2D roughnessMap; @import ecgl.common.layers.header uniform float emissionIntensity: 1.0; uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; uniform float metalness : 0.0; uniform float roughness : 0.5; uniform mat4 viewInverse : VIEWINVERSE; #ifdef AMBIENT_LIGHT_COUNT @import clay.header.ambient_light #endif #ifdef AMBIENT_SH_LIGHT_COUNT @import clay.header.ambient_sh_light #endif #ifdef AMBIENT_CUBEMAP_LIGHT_COUNT @import clay.header.ambient_cubemap_light #endif #ifdef DIRECTIONAL_LIGHT_COUNT @import clay.header.directional_light #endif @import ecgl.common.normalMap.fragmentHeader @import ecgl.common.ssaoMap.header @import ecgl.common.bumpMap.header @import clay.util.srgb @import clay.util.rgbm @import ecgl.common.wireframe.fragmentHeader @import clay.plugin.compute_shadow_map vec3 F_Schlick(float ndv, vec3 spec) { return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0); } float D_Phong(float g, float ndh) { float a = pow(8192.0, g); return (a + 2.0) / 8.0 * pow(ndh, a); } void main() { vec4 albedoColor = color; vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(eyePos - v_WorldPosition); #ifdef VERTEX_COLOR #ifdef SRGB_DECODE albedoColor *= sRGBToLinear(v_Color); #else albedoColor *= v_Color; #endif #endif @import ecgl.common.albedo.main @import ecgl.common.diffuseLayer.main albedoColor *= albedoTexel; float m = metalness; #ifdef METALNESSMAP_ENABLED float m2 = texture2D(metalnessMap, v_DetailTexcoord)[METALNESS_CHANEL]; m = clamp(m2 + (m - 0.5) * 2.0, 0.0, 1.0); #endif vec3 baseColor = albedoColor.rgb; albedoColor.rgb = baseColor * (1.0 - m); vec3 specFactor = mix(vec3(0.04), baseColor, m); float g = 1.0 - roughness; #ifdef ROUGHNESSMAP_ENABLED float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL]; g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0); #endif vec3 N = v_Normal; #ifdef DOUBLE_SIDED if (dot(N, V) < 0.0) { N = -N; } #endif float ambientFactor = 1.0; #ifdef BUMPMAP_ENABLED N = bumpNormal(v_WorldPosition, v_Normal, N); ambientFactor = dot(v_Normal, N); #endif @import ecgl.common.normalMap.fragmentMain vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); vec3 diffuseTerm = vec3(0.0); vec3 specularTerm = vec3(0.0); float ndv = clamp(dot(N, V), 0.0, 1.0); vec3 fresnelTerm = F_Schlick(ndv, specFactor); @import ecgl.common.ssaoMap.main #ifdef AMBIENT_LIGHT_COUNT for(int _idx_ = 0; _idx_ < AMBIENT_LIGHT_COUNT; _idx_++) {{ diffuseTerm += ambientLightColor[_idx_] * ambientFactor * ao; }} #endif #ifdef AMBIENT_SH_LIGHT_COUNT for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) {{ diffuseTerm += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao; }} #endif #ifdef DIRECTIONAL_LIGHT_COUNT #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; if(shadowEnabled) { computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); } #endif for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{ vec3 L = -directionalLightDirection[_idx_]; vec3 lc = directionalLightColor[_idx_]; vec3 H = normalize(L + V); float ndl = clamp(dot(N, normalize(L)), 0.0, 1.0); float ndh = clamp(dot(N, H), 0.0, 1.0); float shadowContrib = 1.0; #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) if (shadowEnabled) { shadowContrib = shadowContribsDir[_idx_]; } #endif vec3 li = lc * ndl * shadowContrib; diffuseTerm += li; specularTerm += li * fresnelTerm * D_Phong(g, ndh); }} #endif #ifdef AMBIENT_CUBEMAP_LIGHT_COUNT vec3 L = reflect(-V, N); L = vec3(L.x, L[NORMAL_UP_AXIS], L[NORMAL_FRONT_AXIS]); float rough2 = clamp(1.0 - g, 0.0, 1.0); float bias2 = rough2 * 5.0; vec2 brdfParam2 = texture2D(ambientCubemapLightBRDFLookup[0], vec2(rough2, ndv)).xy; vec3 envWeight2 = specFactor * brdfParam2.x + brdfParam2.y; vec3 envTexel2; for(int _idx_ = 0; _idx_ < AMBIENT_CUBEMAP_LIGHT_COUNT; _idx_++) {{ envTexel2 = RGBMDecode(textureCubeLodEXT(ambientCubemapLightCubemap[_idx_], L, bias2), 51.5); specularTerm += ambientCubemapLightColor[_idx_] * envTexel2 * envWeight2 * ao; }} #endif gl_FragColor.rgb = albedoColor.rgb * diffuseTerm + specularTerm; gl_FragColor.a = albedoColor.a; #ifdef SRGB_ENCODE gl_FragColor = linearTosRGB(gl_FragColor); #endif @import ecgl.common.emissiveLayer.main @import ecgl.common.wireframe.fragmentMain } @end`},function(G,w,E){"use strict";w.a=`@export ecgl.hatching.vertex @import ecgl.realistic.vertex @end @export ecgl.hatching.fragment #define NORMAL_UP_AXIS 1 #define NORMAL_FRONT_AXIS 2 @import ecgl.common.uv.fragmentHeader varying vec3 v_Normal; varying vec3 v_WorldPosition; uniform vec4 color : [0.0, 0.0, 0.0, 1.0]; uniform vec4 paperColor : [1.0, 1.0, 1.0, 1.0]; uniform mat4 viewInverse : VIEWINVERSE; #ifdef AMBIENT_LIGHT_COUNT @import clay.header.ambient_light #endif #ifdef AMBIENT_SH_LIGHT_COUNT @import clay.header.ambient_sh_light #endif #ifdef DIRECTIONAL_LIGHT_COUNT @import clay.header.directional_light #endif #ifdef VERTEX_COLOR varying vec4 v_Color; #endif @import ecgl.common.ssaoMap.header @import ecgl.common.bumpMap.header @import clay.util.srgb @import ecgl.common.wireframe.fragmentHeader @import clay.plugin.compute_shadow_map uniform sampler2D hatch1; uniform sampler2D hatch2; uniform sampler2D hatch3; uniform sampler2D hatch4; uniform sampler2D hatch5; uniform sampler2D hatch6; float shade(in float tone) { vec4 c = vec4(1. ,1., 1., 1.); float step = 1. / 6.; vec2 uv = v_DetailTexcoord; if (tone <= step / 2.0) { c = mix(vec4(0.), texture2D(hatch6, uv), 12. * tone); } else if (tone <= step) { c = mix(texture2D(hatch6, uv), texture2D(hatch5, uv), 6. * tone); } if(tone > step && tone <= 2. * step){ c = mix(texture2D(hatch5, uv), texture2D(hatch4, uv) , 6. * (tone - step)); } if(tone > 2. * step && tone <= 3. * step){ c = mix(texture2D(hatch4, uv), texture2D(hatch3, uv), 6. * (tone - 2. * step)); } if(tone > 3. * step && tone <= 4. * step){ c = mix(texture2D(hatch3, uv), texture2D(hatch2, uv), 6. * (tone - 3. * step)); } if(tone > 4. * step && tone <= 5. * step){ c = mix(texture2D(hatch2, uv), texture2D(hatch1, uv), 6. * (tone - 4. * step)); } if(tone > 5. * step){ c = mix(texture2D(hatch1, uv), vec4(1.), 6. * (tone - 5. * step)); } return c.r; } const vec3 w = vec3(0.2125, 0.7154, 0.0721); void main() { #ifdef SRGB_DECODE vec4 inkColor = sRGBToLinear(color); #else vec4 inkColor = color; #endif #ifdef VERTEX_COLOR #ifdef SRGB_DECODE inkColor *= sRGBToLinear(v_Color); #else inkColor *= v_Color; #endif #endif vec3 N = v_Normal; #ifdef DOUBLE_SIDED vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(eyePos - v_WorldPosition); if (dot(N, V) < 0.0) { N = -N; } #endif float tone = 0.0; float ambientFactor = 1.0; #ifdef BUMPMAP_ENABLED N = bumpNormal(v_WorldPosition, v_Normal, N); ambientFactor = dot(v_Normal, N); #endif vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]); @import ecgl.common.ssaoMap.main #ifdef AMBIENT_LIGHT_COUNT for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++) { tone += dot(ambientLightColor[i], w) * ambientFactor * ao; } #endif #ifdef AMBIENT_SH_LIGHT_COUNT for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++) {{ tone += dot(calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_], w) * ao; }} #endif #ifdef DIRECTIONAL_LIGHT_COUNT #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT]; if(shadowEnabled) { computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir); } #endif for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) { vec3 lightDirection = -directionalLightDirection[i]; float lightTone = dot(directionalLightColor[i], w); float shadowContrib = 1.0; #if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) if (shadowEnabled) { shadowContrib = shadowContribsDir[i]; } #endif float ndl = dot(N, normalize(lightDirection)) * shadowContrib; tone += lightTone * clamp(ndl, 0.0, 1.0); } #endif gl_FragColor = mix(inkColor, paperColor, shade(clamp(tone, 0.0, 1.0))); } @end `},function(G,w,E){"use strict";w.a=`@export ecgl.sm.depth.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec3 position : POSITION; #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; uniform float percent : 1.0; #endif varying vec4 v_ViewPosition; void main(){ #ifdef VERTEX_ANIMATION vec3 pos = mix(prevPosition, position, percent); #else vec3 pos = position; #endif v_ViewPosition = worldViewProjection * vec4(pos, 1.0); gl_Position = v_ViewPosition; } @end @export ecgl.sm.depth.fragment @import clay.sm.depth.fragment @end`},function(G,w,E){"use strict";var O=E(134),A=E(138),_=E(139),g=E(145),x=E(0),m=E.n(x);m.a.registerAction({type:"grid3DChangeCamera",event:"grid3dcamerachanged",update:"series:updateCamera"},function(a,u){u.eachComponent({mainType:"grid3D",query:a},function(h){h.setView(a)})}),m.a.registerAction({type:"grid3DShowAxisPointer",event:"grid3dshowaxispointer",update:"grid3D:showAxisPointer"},function(a,u){}),m.a.registerAction({type:"grid3DHideAxisPointer",event:"grid3dhideaxispointer",update:"grid3D:hideAxisPointer"},function(a,u){})},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(135),g=A.a.extendComponentModel({type:"cartesian3DAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid3D",index:this.option.gridIndex,id:this.option.gridId})[0]}});A.a.helper.mixinAxisModelCommonMethods(g);function x(m,a){return a.type||(a.data?"category":"value")}Object(_.a)("x",g,x,{name:"X"}),Object(_.a)("y",g,x,{name:"Y"}),Object(_.a)("z",g,x,{name:"Z"})},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(136),g=E(137),x=E.n(g),m=["value","category","time","log"];w.a=function(a,u,h,r){A.a.util.each(m,function(n){u.extend({type:a+"Axis3D."+n,__ordinalMeta:null,mergeDefaultAndTheme:function(s,d){var o=d.getTheme();A.a.util.merge(s,o.get(n+"Axis3D")),A.a.util.merge(s,this.getDefaultOption()),s.type=h(a,s)},optionUpdated:function(){var s=this.option;s.type==="category"&&(this.__ordinalMeta=x.a.createByAxisModel(this))},getCategories:function(){if(this.option.type==="category")return this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:A.a.util.merge(A.a.util.clone(_.a[n+"Axis3D"]),r||{},!0)})}),u.superClass.registerSubTypeDefaulter(a+"Axis3D",A.a.util.curry(h,a))}},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_={show:!0,grid3DIndex:0,inverse:!1,name:"",nameLocation:"middle",nameTextStyle:{fontSize:16},nameGap:20,axisPointer:{},axisLine:{},axisTick:{},axisLabel:{},splitArea:{}},g=A.a.util.merge({boundaryGap:!0,axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"},axisPointer:{label:{show:!1}}},_),x=A.a.util.merge({boundaryGap:[0,0],splitNumber:5,axisPointer:{label:{}}},_),m=A.a.util.defaults({scale:!0,min:"dataMin",max:"dataMax"},x),a=A.a.util.defaults({logBase:10},x);a.scale=!0,w.a={categoryAxis3D:g,valueAxis3D:x,timeAxis3D:m,logAxis3D:a}},function(G,w,E){var O=E(12),A=O.createHashMap,_=O.isObject,g=O.map;function x(r){this.categories=r.categories||[],this._needCollect=r.needCollect,this._deduplication=r.deduplication,this._map}x.createByAxisModel=function(r){var n=r.option,s=n.data,d=s&&g(s,u);return new x({categories:d,needCollect:!d,deduplication:n.dedplication!==!1})};var m=x.prototype;m.getOrdinal=function(r){return a(this).get(r)},m.parseAndCollect=function(r){var n,s=this._needCollect;if(typeof r!="string"&&!s)return r;if(s&&!this._deduplication)return n=this.categories.length,this.categories[n]=r,n;var d=a(this);return n=d.get(r),n==null&&(s?(n=this.categories.length,this.categories[n]=r,d.set(r,n)):n=NaN),n};function a(r){return r._map||(r._map=A(r.categories))}function u(r){return _(r)&&r.value!=null?r.value:r+""}var h=x;G.exports=h},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(38),g=E(31),x=E(32),m=A.a.extendComponentModel({type:"grid3D",dependencies:["xAxis3D","yAxis3D","zAxis3D"],defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",boxWidth:100,boxHeight:100,boxDepth:100,axisPointer:{show:!0,lineStyle:{color:"rgba(0, 0, 0, 0.8)",width:1},label:{show:!0,formatter:null,margin:8,textStyle:{fontSize:14,color:"#fff",backgroundColor:"rgba(0,0,0,0.5)",padding:3,borderRadius:3}}},axisLine:{show:!0,lineStyle:{color:"#333",width:2,type:"solid"}},axisTick:{show:!0,inside:!1,length:3,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}},light:{main:{alpha:30,beta:40},ambient:{intensity:.4}},viewControl:{alpha:20,beta:40,autoRotate:!1,distance:200,minDistance:40,maxDistance:400}}});A.a.util.merge(m.prototype,_.a),A.a.util.merge(m.prototype,g.a),A.a.util.merge(m.prototype,x.a);var a=m},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(2),g=E(39),x=E(22),m=E(3),a=E(73),u=E(34),h=E(140),r=E(142),n=E(58),s=E(40),d=m.a.firstNotNull;_.a.Shader.import(s.a),["x","y","z"].forEach(function(f){A.a.extendComponentView({type:f+"Axis3D"})});var o={x:0,y:2,z:1},c=A.a.extendComponentView({type:"grid3D",__ecgl__:!0,init:function(f,e){var t=[["y","z","x",-1,"left"],["y","z","x",1,"right"],["x","y","z",-1,"bottom"],["x","y","z",1,"top"],["x","z","y",-1,"far"],["x","z","y",1,"near"]],i=["x","y","z"],l=new _.a.Material({shader:_.a.createShader("ecgl.color"),depthMask:!1,transparent:!0}),v=new _.a.Material({shader:_.a.createShader("ecgl.meshLines3D"),depthMask:!1,transparent:!0});l.define("fragment","DOUBLE_SIDED"),l.define("both","VERTEX_COLOR"),this.groupGL=new _.a.Node,this._control=new g.a({zr:e.getZr()}),this._control.init(),this._faces=t.map(function(p){var C=new h.a(p,v,l);return this.groupGL.add(C.rootNode),C},this),this._axes=i.map(function(p){var C=new r.a(p,v);return this.groupGL.add(C.rootNode),C},this);var y=e.getDevicePixelRatio();this._axisLabelSurface=new a.a({width:256,height:256,devicePixelRatio:y}),this._axisLabelSurface.onupdate=function(){e.getZr().refresh()},this._axisPointerLineMesh=new _.a.Mesh({geometry:new x.a({useNativeLine:!1}),material:v,castShadow:!1,ignorePicking:!0,renderOrder:3}),this.groupGL.add(this._axisPointerLineMesh),this._axisPointerLabelsSurface=new a.a({width:128,height:128,devicePixelRatio:y}),this._axisPointerLabelsMesh=new n.a({ignorePicking:!0,renderOrder:4,castShadow:!1}),this._axisPointerLabelsMesh.material.set("textureAtlas",this._axisPointerLabelsSurface.getTexture()),this.groupGL.add(this._axisPointerLabelsMesh),this._lightRoot=new _.a.Node,this._sceneHelper=new u.a,this._sceneHelper.initLight(this._lightRoot)},render:function(f,e,t){this._model=f,this._api=t;var i=f.coordinateSystem;i.viewGL.add(this._lightRoot),f.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL);var l=this._control;l.setViewGL(i.viewGL);var v=f.getModel("viewControl");l.setFromViewControlModel(v,0),this._axisLabelSurface.clear();var y=["x","y","z"].reduce(function(p,C){var S=i.getAxis(C),T=S.model;return p[C]=d(T.get("axisLabel.interval"),f.get("axisLabel.interval")),S.scale.type==="ordinal"&&(p[C]==null||p[C]=="auto")&&(p[C]=Math.floor(S.scale.getTicks().length/8)),p},{});l.off("update"),f.get("show")&&(this._faces.forEach(function(p){p.update(y,f,e,t)},this),this._axes.forEach(function(p){p.update(f,y,this._axisLabelSurface,t)},this)),l.on("update",this._onCameraChange.bind(this,f,t),this),this._sceneHelper.setScene(i.viewGL.scene),this._sceneHelper.updateLight(f),i.viewGL.setPostEffect(f.getModel("postEffect"),t),i.viewGL.setTemporalSuperSampling(f.getModel("temporalSuperSampling")),this._initMouseHandler(f)},afterRender:function(f,e,t,i){var l=i.renderer;this._sceneHelper.updateAmbientCubemap(l,f,t),this._sceneHelper.updateSkybox(l,f,t)},showAxisPointer:function(f,e,t,i){this._doShowAxisPointer(),this._updateAxisPointer(i.value)},hideAxisPointer:function(f,e,t,i){this._doHideAxisPointer()},_initMouseHandler:function(f){var e=f.coordinateSystem,t=e.viewGL;f.get("show")&&f.get("axisPointer.show")?t.on("mousemove",this._updateAxisPointerOnMousePosition,this):t.off("mousemove",this._updateAxisPointerOnMousePosition)},_updateAxisPointerOnMousePosition:function(f){if(!f.target){for(var e=this._model,t=e.coordinateSystem,i=t.viewGL,l=i.castRay(f.offsetX,f.offsetY,new _.a.Ray),v,y=0;yi[1]?0:1,p=this._faces[t*2+y],C=this._faces[t*2+1-y];p.rootNode.invisible=!0,C.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var f=this._model.coordinateSystem,e=f.getAxis("x"),t=f.getAxis("y"),i=f.getAxis("z"),l=i.getExtentMax(),v=i.getExtentMin(),y=e.getExtentMin(),p=e.getExtentMax(),C=t.getExtentMax(),S=t.getExtentMin(),T=this._axes[0].rootNode,D=this._axes[1].rootNode,I=this._axes[2].rootNode,M=this._faces,P=M[4].rootNode.invisible?S:C,L=M[2].rootNode.invisible?l:v,R=M[0].rootNode.invisible?y:p,B=M[2].rootNode.invisible?l:v,U=M[0].rootNode.invisible?p:y,H=M[4].rootNode.invisible?S:C;T.rotation.identity(),D.rotation.identity(),I.rotation.identity(),M[4].rootNode.invisible&&(this._axes[0].flipped=!0,T.rotation.rotateX(Math.PI)),M[0].rootNode.invisible&&(this._axes[1].flipped=!0,D.rotation.rotateZ(Math.PI)),M[4].rootNode.invisible&&(this._axes[2].flipped=!0,I.rotation.rotateY(Math.PI)),T.position.set(0,L,P),D.position.set(R,B,0),I.position.set(U,0,H),T.update(),D.update(),I.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var f=this._control.getCamera(),e=[new _.a.Vector4,new _.a.Vector4],t=new _.a.Vector4;this.groupGL.getWorldPosition(t),t.w=1,t.transformMat4(f.viewMatrix).transformMat4(f.projectionMatrix),t.x/=t.w,t.y/=t.w,this._axes.forEach(function(i){for(var l=i.axisLineCoords,v=i.labelsMesh.geometry,y=0;yt.y?"bottom":"top"):(I="middle",D=S>t.x?"left":"right"),i.setSpriteAlign(D,I,this._api)},this)},_doShowAxisPointer:function(){this._axisPointerLineMesh.invisible&&(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(f){var e=this._model.coordinateSystem,t=e.dataToPoint(f),i=this._axisPointerLineMesh,l=i.geometry,v=this._model.getModel("axisPointer"),y=this._api.getDevicePixelRatio();l.convertToDynamicArray(!0);function p(ae){return m.a.firstNotNull(ae.model.get("axisPointer.show"),v.get("show"))}function C(ae){var le=ae.model.getModel("axisPointer",v),he=le.getModel("lineStyle"),ge=_.a.parseColor(he.get("color")),me=d(he.get("width"),1),pe=d(he.get("opacity"),1);return ge[3]*=pe,{color:ge,lineWidth:me}}for(var S=0;S0&&s.rotation.rotateY(Math.PI),d.normal.z=-c)}function n(s,d,o){this.rootNode=new _.a.Node;var c=new _.a.Mesh({geometry:new x.a({useNativeLine:!1}),material:d,castShadow:!1,ignorePicking:!0,renderOrder:1}),f=new _.a.Mesh({geometry:new m.a,material:o,castShadow:!1,culling:!1,ignorePicking:!0,renderOrder:0});this.rootNode.add(f),this.rootNode.add(c),this.faceInfo=s,this.plane=new _.a.Plane,this.linesMesh=c,this.quadsMesh=f}n.prototype.update=function(s,d,o,c){var f=d.coordinateSystem,e=[f.getAxis(this.faceInfo[0]),f.getAxis(this.faceInfo[1])],t=this.linesMesh.geometry,i=this.quadsMesh.geometry;t.convertToDynamicArray(!0),i.convertToDynamicArray(!0),this._updateSplitLines(t,e,d,s,c),this._udpateSplitAreas(i,e,d,s,c),t.convertToTypedArray(),i.convertToTypedArray();var l=f.getAxis(this.faceInfo[2]);r(this.rootNode,this.plane,l,this.faceInfo[3])},n.prototype._updateSplitLines=function(s,d,o,c,f){var e=f.getDevicePixelRatio();d.forEach(function(t,i){var l=t.model,v=d[1-i].getExtent();if(!t.scale.isBlank()){var y=l.getModel("splitLine",o.getModel("splitLine"));if(y.get("show")){var p=y.getModel("lineStyle"),C=p.get("color"),S=u(p.get("opacity"),1),T=u(p.get("width"),1),D=y.get("interval");(D==null||D==="auto")&&(D=c[t.dim]),C=A.a.util.isArray(C)?C:[C];for(var I=t.getTicksCoords(),M=0,P=0;P65535?new Uint32Array(s*3):new Uint16Array(s*3))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:function(){var h=a.create(),r=a.create(),n=a.create(),s=[0,3,1,3,2,1];return function(d,o){var c=this.attributes.position,f=this.attributes.normal,e=this.attributes.color;a.sub(h,d[1],d[0]),a.sub(r,d[2],d[1]),a.cross(n,h,r),a.normalize(n,n);for(var t=0;t<4;t++)c.set(this._vertexOffset+t,d[t]),e.set(this._vertexOffset+t,o),f.set(this._vertexOffset+t,n);for(var i=this._faceOffset*3,t=0;t<6;t++)this.indices[i+t]=s[t]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2}}()});_.a.util.defaults(u.prototype,g.a),w.a=u},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(2),g=E(22),x=E(3),m=E(58),a=E(74),u=x.a.firstNotNull,h={x:0,y:2,z:1};function r(s,d){var o=new _.a.Mesh({geometry:new g.a({useNativeLine:!1}),material:d,castShadow:!1,ignorePicking:!0,renderOrder:2}),c=new m.a;c.material.depthMask=!1;var f=new _.a.Node;f.add(o),f.add(c),this.rootNode=f,this.dim=s,this.linesMesh=o,this.labelsMesh=c,this.axisLineCoords=null,this.labelElements=[]}var n={x:"y",y:"x",z:"y"};r.prototype.update=function(s,d,o,c){var f=s.coordinateSystem,e=f.getAxis(this.dim),t=d[this.dim],i=this.linesMesh.geometry,l=this.labelsMesh.geometry;i.convertToDynamicArray(!0),l.convertToDynamicArray(!0);var v=e.model,y=e.getExtent(),he=c.getDevicePixelRatio(),p=v.getModel("axisLine",s.getModel("axisLine")),C=v.getModel("axisTick",s.getModel("axisTick")),S=v.getModel("axisLabel",s.getModel("axisLabel")),T=p.get("lineStyle.color");if(p.get("show")){var D=p.getModel("lineStyle"),I=[0,0,0],M=[0,0,0],P=h[e.dim];I[P]=y[0],M[P]=y[1],this.axisLineCoords=[I,M];var L=_.a.parseColor(T),R=u(D.get("width"),1),B=u(D.get("opacity"),1);L[3]*=B,i.addLine(I,M,L,R*he)}if(C.get("show")){var U=C.getModel("lineStyle"),H=_.a.parseColor(u(U.get("color"),T)),R=u(U.get("width"),1);H[3]*=u(U.get("opacity"),1);var K=e.getTicksCoords(),V=C.get("interval");(V==null||V==="auto")&&(V=t);for(var k=C.get("length"),$=0;$65535?new Uint32Array(h*3):new Uint16Array(h*3))},setSpriteAlign:function(a,u,h,r,n){h==null&&(h="left"),r==null&&(r="top");var s,d,o,c;switch(n=n||0,h){case"left":s=n,o=u[0]+n;break;case"center":case"middle":s=-u[0]/2,o=u[0]/2;break;case"right":s=-u[0]-n,o=-n;break}switch(r){case"bottom":d=n,c=u[1]+n;break;case"middle":d=-u[1]/2,c=u[1]/2;break;case"top":d=-u[1]-n,c=-n;break}var f=a*4,e=this.attributes.offset;e.set(f,[s,c]),e.set(f+1,[o,c]),e.set(f+2,[o,d]),e.set(f+3,[s,d])},addSprite:function(a,u,h,r,n,s){var d=this._vertexOffset;this.setSprite(this._vertexOffset/4,a,u,h,r,n,s);for(var o=0;o1?"."+t[1]:""))}function x(t,i){return t=(t||"").toLowerCase().replace(/-(.)/g,function(l,v){return v.toUpperCase()}),i&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var m=O.normalizeCssArray;function a(t){return String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}var u=["a","b","c","d","e","f","g"],h=function(t,i){return"{"+t+(i==null?"":i)+"}"};function r(t,i,l){O.isArray(i)||(i=[i]);var v=i.length;if(!v)return"";for(var y=i[0].$vars||[],p=0;p':'':""}var d=function(t){return t<10?"0"+t:t};function o(t,i,l){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd yyyy`);var v=_.parseDate(i),y=l?"UTC":"",p=v["get"+y+"FullYear"](),C=v["get"+y+"Month"]()+1,S=v["get"+y+"Date"](),T=v["get"+y+"Hours"](),D=v["get"+y+"Minutes"](),I=v["get"+y+"Seconds"]();return t=t.replace("MM",d(C)).replace("M",C).replace("yyyy",p).replace("yy",p%100).replace("dd",d(S)).replace("d",S).replace("hh",d(T)).replace("h",T).replace("mm",d(D)).replace("m",D).replace("ss",d(I)).replace("s",I),t}function c(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}var f=A.truncateText,e=A.getBoundingRect;w.addCommas=g,w.toCamelCase=x,w.normalizeCssArray=m,w.encodeHTML=a,w.formatTpl=r,w.formatTplSimple=n,w.getTooltipMarker=s,w.formatTime=o,w.capitalFirst=c,w.truncateText=f,w.getTextRect=e},function(G,w,E){var O=E(75),A=E(151),_=E(12),g=_.getContext,x=_.extend,m=_.retrieve2,a=_.retrieve3,u={},h=0,r=5e3,n=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,s="12px sans-serif",d={};function o(R,B){d[R]=B}function c(R,B){B=B||s;var U=R+":"+B;if(u[U])return u[U];for(var H=(R+"").split(` `),K=0,V=0,k=H.length;Vr&&(h=0,u={}),h++,u[U]=K,K}function f(R,B,U,H,K,V,k){return V?t(R,B,U,H,K,V,k):e(R,B,U,H,K,k)}function e(R,B,U,H,K,V){var k=I(R,B,K,V),$=c(R,B);K&&($+=K[1]+K[3]);var ae=k.outerHeight,le=i(0,$,U),he=l(0,ae,H),ge=new O(le,he,$,ae);return ge.lineHeight=k.lineHeight,ge}function t(R,B,U,H,K,V,k){var $=M(R,{rich:V,truncate:k,font:B,textAlign:U,textPadding:K}),ae=$.outerWidth,le=$.outerHeight,he=i(0,ae,U),ge=l(0,le,H);return new O(he,ge,ae,le)}function i(R,B,U){return U==="right"?R-=B:U==="center"&&(R-=B/2),R}function l(R,B,U){return U==="middle"?R-=B/2:U==="bottom"&&(R-=B),R}function v(R,B,U){var H=B.x,K=B.y,V=B.height,k=B.width,$=V/2,ae="left",le="top";switch(R){case"left":H-=U,K+=$,ae="right",le="middle";break;case"right":H+=U+k,K+=$,le="middle";break;case"top":H+=k/2,K-=U,ae="center",le="bottom";break;case"bottom":H+=k/2,K+=V+U,ae="center";break;case"inside":H+=k/2,K+=$,ae="center",le="middle";break;case"insideLeft":H+=U,K+=$,le="middle";break;case"insideRight":H+=k-U,K+=$,ae="right",le="middle";break;case"insideTop":H+=k/2,K+=U,ae="center";break;case"insideBottom":H+=k/2,K+=V-U,ae="center",le="bottom";break;case"insideTopLeft":H+=U,K+=U;break;case"insideTopRight":H+=k-U,K+=U,ae="right";break;case"insideBottomLeft":H+=U,K+=V-U,le="bottom";break;case"insideBottomRight":H+=k-U,K+=V-U,ae="right",le="bottom";break}return{x:H,y:K,textAlign:ae,textVerticalAlign:le}}function y(R,B,U,H,K){if(!B)return"";var V=(R+"").split(` `);K=p(B,U,H,K);for(var k=0,$=V.length;k<$;k++)V[k]=C(V[k],K);return V.join(` `)}function p(R,B,K,H){H=x({},H),H.font=B;var K=m(K,"...");H.maxIterations=m(H.maxIterations,2);var V=H.minChar=m(H.minChar,0);H.cnCharWidth=c("\u56FD",B);var k=H.ascCharWidth=c("a",B);H.placeholder=m(H.placeholder,"");for(var $=R=Math.max(0,R-1),ae=0;ae=k;ae++)$-=k;var le=c(K);return le>$&&(K="",le=0),$=R-le,H.ellipsis=K,H.ellipsisWidth=le,H.contentWidth=$,H.containerWidth=R,H}function C(R,B){var U=B.containerWidth,H=B.font,K=B.contentWidth;if(!U)return"";var V=c(R,H);if(V<=U)return R;for(var k=0;;k++){if(V<=K||k>=B.maxIterations){R+=B.ellipsis;break}var $=k===0?S(R,K,B.ascCharWidth,B.cnCharWidth):V>0?Math.floor(R.length*K/V):0;R=R.substr(0,$),V=c(R,H)}return R===""&&(R=B.placeholder),R}function S(R,B,U,H){for(var K=0,V=0,k=R.length;Vae)R="",V=[];else if(le!=null)for(var he=p(le-(U?U[1]+U[3]:0),B,H.ellipsis,{minChar:H.minChar,placeholder:H.placeholder}),ge=0,me=V.length;geH&&P(U,R.substring(H,V)),P(U,K[2],K[1]),H=n.lastIndex}Hpe)return{lines:[],width:0,height:0};X.textWidth=c(X.text,re);var ee=ne.textWidth,se=ee==null||ee==="auto";if(typeof ee=="string"&&ee.charAt(ee.length-1)==="%")X.percentWidth=ee,le.push(X),ee=0;else{if(se){ee=X.textWidth;var J=ne.textBackgroundColor,ie=J&&J.image;ie&&(ie=A.findExistImage(ie),A.isImageReady(ie)&&(ee=Math.max(ee,ie.width*Z/ie.height)))}var fe=j?j[1]+j[3]:0;ee+=fe;var _e=me!=null?me-ce:null;_e!=null&&_e4){console.warn("Support at most 4 cascade");continue}pe.shadowCascade>1&&(ge=pe.shadowCascade),this.renderDirectionalLightShadow(L,R,B,pe,this._opaqueCasters,le,ae,$)}else pe instanceof n.a?this.renderSpotLightShadow(L,R,pe,this._opaqueCasters,k,V):pe instanceof d.a&&this.renderPointLightShadow(L,R,pe,this._opaqueCasters,he);this._shadowMapNumber[pe.type]++}for(var Ee in this._shadowMapNumber)for(var de=this._shadowMapNumber[Ee],ve=Ee+"_SHADOWMAP_COUNT",me=0;me0?oe.define("fragment",ve,de):oe.isDefined("fragment",ve)&&oe.undefine("fragment",ve))}for(var me=0;me0){var j=$.map(ne);if(X.directionalLightShadowMaps={value:$,type:"tv"},X.directionalLightMatrices={value:ae,type:"m4v"},X.directionalLightShadowMapSizes={value:j,type:"1fv"},ge){var re=le.slice(),Z=le.slice();re.pop(),Z.shift(),re.reverse(),Z.reverse(),ae.reverse(),X.shadowCascadeClipsNear={value:re,type:"1fv"},X.shadowCascadeClipsFar={value:Z,type:"1fv"}}}if(V.length>0){var ee=V.map(ne),X=R.shadowUniforms;X.spotLightShadowMaps={value:V,type:"tv"},X.spotLightMatrices={value:k,type:"m4v"},X.spotLightShadowMapSizes={value:ee,type:"1fv"}}he.length>0&&(X.pointLightShadowMaps={value:he,type:"tv"})},renderDirectionalLightShadow:function(){var L=new x.a,R=new m.a,B=new g.a,U=new m.a,H=new m.a,K=new m.a,V=new m.a;return function(k,$,ae,le,he,ge,me,pe){var Ee=this._getDepthMaterial(le),de={getMaterial:function(Qe){return Qe.shadowDepthMaterial||Ee},sortCompare:a.a.opaqueSortCompare};if(!$.viewBoundingBoxLastFrame.isFinite()){var ve=$.getBoundingBox();$.viewBoundingBoxLastFrame.copy(ve).applyTransform(ae.viewMatrix)}var ce=Math.min(-$.viewBoundingBoxLastFrame.min.z,ae.far),oe=Math.max(-$.viewBoundingBoxLastFrame.max.z,ae.near),X=this._getDirectionalLightCamera(le,$,ae),ne=K.array;V.copy(X.projectionMatrix),D.invert(H.array,X.worldTransform.array),D.multiply(H.array,H.array,ae.worldTransform.array),D.multiply(ne,V.array,H.array);for(var j=[],re=ae instanceof l.a,Z=(ae.near+ae.far)/(ae.near-ae.far),ee=2*ae.near*ae.far/(ae.near-ae.far),se=0;se<=le.shadowCascade;se++){var J=oe*Math.pow(ce/oe,se/le.shadowCascade),ie=oe+(ce-oe)*se/le.shadowCascade,fe=J*le.cascadeSplitLogFactor+ie*(1-le.cascadeSplitLogFactor);j.push(fe),ge.push(-(-fe*Z+ee)/-fe)}var _e=this._getTexture(le,le.shadowCascade);pe.push(_e);var De=k.viewport,Ie=k.gl;this._frameBuffer.attach(_e),this._frameBuffer.bind(k),Ie.clear(Ie.COLOR_BUFFER_BIT|Ie.DEPTH_BUFFER_BIT);for(var se=0;se= shadowCascadeClipsNear[_idx_] && depth <= shadowCascadeClipsFar[_idx_] ) { shadowContrib = computeShadowContrib( directionalLightShadowMaps[0], directionalLightMatrices[_idx_], position, directionalLightShadowMapSizes[0], vec2(1.0 / float(SHADOW_CASCADE), 1.0), vec2(float(_idx_) / float(SHADOW_CASCADE), 0.0) ); shadowContribs[0] = shadowContrib; } }} for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{ shadowContribs[_idx_] = 1.0; }} } #else void computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){ float shadowContrib; for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_++) {{ shadowContrib = computeShadowContrib( directionalLightShadowMaps[_idx_], directionalLightMatrices[_idx_], position, directionalLightShadowMapSizes[_idx_] ); shadowContribs[_idx_] = shadowContrib; }} for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{ shadowContribs[_idx_] = 1.0; }} } #endif #endif #if defined(POINT_LIGHT_SHADOWMAP_COUNT) void computeShadowOfPointLights(vec3 position, inout float shadowContribs[POINT_LIGHT_COUNT] ){ vec3 lightPosition; vec3 direction; for(int _idx_ = 0; _idx_ < POINT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{ lightPosition = pointLightPosition[_idx_]; direction = position - lightPosition; shadowContribs[_idx_] = computeShadowContribOmni(pointLightShadowMaps[_idx_], direction, pointLightRange[_idx_]); }} for(int _idx_ = POINT_LIGHT_SHADOWMAP_COUNT; _idx_ < POINT_LIGHT_COUNT; _idx_++) {{ shadowContribs[_idx_] = 1.0; }} } #endif #endif @end`},function(G,w,E){"use strict";var O=E(7),A=E(5),_=E(6),g=E(10),x=E(156),m=E(162),a=E(164),u=E(166),h=E(2),r=E(167),n=E(169),s=E(9),d=E(170),o=E(171),c=E(172),f=E(173),e=E(174),t=E(175),i=E(176),l=E(177),v=E(178),y=E(179),p=E(180),C=E(181);O.a.import(o.a),O.a.import(c.a),O.a.import(f.a),O.a.import(e.a),O.a.import(t.a),O.a.import(i.a),O.a.import(l.a),O.a.import(v.a),O.a.import(y.a),O.a.import(p.a),O.a.import(C.a);var S={color:{parameters:{width:function(I){return I.getWidth()},height:function(I){return I.getHeight()}}}},T=["composite","FXAA"];function D(){this._sourceTexture=new A.a({type:_.a.HALF_FLOAT}),this._depthTexture=new A.a({format:_.a.DEPTH_COMPONENT,type:_.a.UNSIGNED_INT}),this._framebuffer=new g.a,this._framebuffer.attach(this._sourceTexture),this._framebuffer.attach(this._depthTexture,g.a.DEPTH_ATTACHMENT),this._normalPass=new r.a,this._compositor=Object(x.a)(d.a);var I=this._compositor.getNodeByName("source");I.texture=this._sourceTexture;var M=this._compositor.getNodeByName("coc");this._sourceNode=I,this._cocNode=M,this._compositeNode=this._compositor.getNodeByName("composite"),this._fxaaNode=this._compositor.getNodeByName("FXAA"),this._dofBlurNodes=["dof_far_blur","dof_near_blur","dof_coc_blur"].map(function(L){return this._compositor.getNodeByName(L)},this),this._dofBlurKernel=0,this._dofBlurKernelSize=new Float32Array(0),this._finalNodesChain=T.map(function(L){return this._compositor.getNodeByName(L)},this);var P={normalTexture:this._normalPass.getNormalTexture(),depthTexture:this._normalPass.getDepthTexture()};this._ssaoPass=new m.a(P),this._ssrPass=new a.a(P),this._edgePass=new n.a(P)}D.prototype.resize=function(L,R,P){P=P||1;var L=L*P,R=R*P,B=this._sourceTexture,U=this._depthTexture;B.width=L,B.height=R,U.width=L,U.height=R},D.prototype._ifRenderNormalPass=function(){return this._enableSSAO||this._enableEdge||this._enableSSR},D.prototype._getPrevNode=function(I){for(var M=T.indexOf(I.name)-1,P=this._finalNodesChain[M];P&&!this._compositor.getNodeByName(P.name);)M-=1,P=this._finalNodesChain[M];return P},D.prototype._getNextNode=function(I){for(var M=T.indexOf(I.name)+1,P=this._finalNodesChain[M];P&&!this._compositor.getNodeByName(P.name);)M+=1,P=this._finalNodesChain[M];return P},D.prototype._addChainNode=function(I){var M=this._getPrevNode(I),P=this._getNextNode(I);M&&(M.outputs=S,I.inputs.texture=M.name,P?(I.outputs=S,P.inputs.texture=I.name):I.outputs=null,this._compositor.addNode(I))},D.prototype._removeChainNode=function(I){var M=this._getPrevNode(I),P=this._getNextNode(I);M&&(P?(M.outputs=S,P.inputs.texture=M.name):M.outputs=null,this._compositor.removeNode(I))},D.prototype.updateNormal=function(I,M,P,L){this._ifRenderNormalPass()&&this._normalPass.update(I,M,P)},D.prototype.updateSSAO=function(I,M,P,L){this._ssaoPass.update(I,P,L)},D.prototype.enableSSAO=function(){this._enableSSAO=!0},D.prototype.disableSSAO=function(){this._enableSSAO=!1},D.prototype.enableSSR=function(){this._enableSSR=!0},D.prototype.disableSSR=function(){this._enableSSR=!1},D.prototype.getSSAOTexture=function(I,M,P,L){return this._ssaoPass.getTargetTexture()},D.prototype.getSourceFrameBuffer=function(){return this._framebuffer},D.prototype.getSourceTexture=function(){return this._sourceTexture},D.prototype.disableFXAA=function(){this._removeChainNode(this._fxaaNode)},D.prototype.enableFXAA=function(){this._addChainNode(this._fxaaNode)},D.prototype.enableBloom=function(){this._compositeNode.inputs.bloom="bloom_composite",this._compositor.dirty()},D.prototype.disableBloom=function(){this._compositeNode.inputs.bloom=null,this._compositor.dirty()},D.prototype.enableDOF=function(){this._compositeNode.inputs.texture="dof_composite",this._compositor.dirty()},D.prototype.disableDOF=function(){this._compositeNode.inputs.texture="source",this._compositor.dirty()},D.prototype.enableColorCorrection=function(){this._compositeNode.define("COLOR_CORRECTION"),this._enableColorCorrection=!0},D.prototype.disableColorCorrection=function(){this._compositeNode.undefine("COLOR_CORRECTION"),this._enableColorCorrection=!1},D.prototype.enableEdge=function(){this._enableEdge=!0},D.prototype.disableEdge=function(){this._enableEdge=!1},D.prototype.setBloomIntensity=function(I){this._compositeNode.setParameter("bloomIntensity",I)},D.prototype.setSSAOParameter=function(I,M){switch(I){case"quality":var P={low:6,medium:12,high:32,ultra:62}[M]||12;this._ssaoPass.setParameter("kernelSize",P);break;case"radius":this._ssaoPass.setParameter(I,M),this._ssaoPass.setParameter("bias",M/200);break;case"intensity":this._ssaoPass.setParameter(I,M);break;default:console.warn("Unkown SSAO parameter "+I)}},D.prototype.setDOFParameter=function(I,M){switch(I){case"focalDistance":case"focalRange":case"fstop":this._cocNode.setParameter(I,M);break;case"blurRadius":for(var P=0;P=0||(this.nodes.push(g),this._dirty=!0)},removeNode:function(g){typeof g=="string"&&(g=this.getNodeByName(g));var x=this.nodes.indexOf(g);x>=0&&(this.nodes.splice(x,1),this._dirty=!0)},getNodeByName:function(g){for(var x=0;x=m.COLOR_ATTACHMENT0&&d<=m.COLOR_ATTACHMENT0+8&&c.push(d);o.drawBuffersEXT(c)}x.saveClear(),x.clearBit=A.a.DEPTH_BUFFER_BIT|A.a.COLOR_BUFFER_BIT,a=x.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),x.restoreClear(),u.unbind(x)}this.trigger("afterrender",a),this._rendering=!1,this._rendered=!0}});w.a=g},function(G,w,E){"use strict";var O=E(42),A=O.a.extend(function(){return{texture:null,outputs:{color:{}}}},function(){},{getOutput:function(_,g){return this.texture},beforeFrame:function(){},afterFrame:function(){}});w.a=A},function(G,w,E){"use strict";var O=E(14),A=E(42),_=A.a.extend(function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}},function(){var g=new O.a({fragment:this.shader});this.pass=g},{render:function(g,x){this.trigger("beforerender",g),this._rendering=!0;var m=g.gl;for(var a in this.inputLinks){var u=this.inputLinks[a],h=u.node.getOutput(g,u.pin);this.pass.setUniform(a,h)}if(!this.outputs)this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(g),this.pass.render(g,x);else{this.pass.outputs={};var r={};for(var n in this.outputs){var s=this.updateParameter(n,g);isNaN(s.width)&&this.updateParameter(n,g);var d=this.outputs[n],o=this._compositor.allocateTexture(s);this._outputTextures[n]=o;var c=d.attachment||m.COLOR_ATTACHMENT0;typeof c=="string"&&(c=m[c]),r[c]=o}this._compositor.getFrameBuffer().bind(g);for(var c in r)this._compositor.getFrameBuffer().attach(r[c],c);this.pass.render(g),this._compositor.getFrameBuffer().updateMipmap(g.gl)}for(var a in this.inputLinks){var u=this.inputLinks[a];u.node.removeReference(u.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",g)},updateParameter:function(g,x){var m=this.outputs[g],a=m.parameters,u=m._parametersCopy;if(u||(u=m._parametersCopy={}),a)for(var h in a)h!=="width"&&h!=="height"&&(u[h]=a[h]);var r,n;return a.width instanceof Function?r=a.width.call(this,x):r=a.width,a.height instanceof Function?n=a.height.call(this,x):n=a.height,(u.width!==r||u.height!==n)&&this._outputTextures[g]&&this._outputTextures[g].dispose(x),u.width=r,u.height=n,u},setParameter:function(g,x){this.pass.setUniform(g,x)},getParameter:function(g){return this.pass.getUniform(g)},setParameters:function(g){for(var x in g)this.setParameter(x,g[x])},define:function(g,x){this.pass.material.define("fragment",g,x)},undefine:function(g){this.pass.material.undefine("fragment",g)},removeReference:function(g){if(this._outputReferences[g]--,this._outputReferences[g]===0){var x=this.outputs[g];x.keepLastFrame?(this._prevOutputTextures[g]&&this._compositor.releaseTexture(this._prevOutputTextures[g]),this._prevOutputTextures[g]=this._outputTextures[g]):this._compositor.releaseTexture(this._outputTextures[g])}},clear:function(){A.a.prototype.clear.call(this),this.pass.material.disableTexturesAll()}});w.a=_},function(G,w,E){"use strict";var O=E(9),A=E(4),_=E(5),g=E(6),x=E(14),m=E(7),a=E(10),u=E(43),h=E(163);m.a.import(h.a);function r(o){for(var c=new Uint8Array(o*o*4),f=0,e=new A.a,t=0;t 0.99999) { gl_FragColor = vec4(1.0); return; } mat3 kernelBasis; #endif float z = depthTexel.r * 2.0 - 1.0; vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0); vec4 p4 = projectionInv * projectedPos; vec3 position = p4.xyz / p4.w; float ao = ssaoEstimator(position, kernelBasis); ao = clamp(1.0 - (1.0 - ao) * intensity, 0.0, 1.0); gl_FragColor = vec4(vec3(ao), 1.0); } @end @export ecgl.ssao.blur #define SHADER_NAME SSAO_BLUR uniform sampler2D ssaoTexture; #ifdef NORMALTEX_ENABLED uniform sampler2D normalTex; #endif varying vec2 v_Texcoord; uniform vec2 textureSize; uniform float blurSize : 1.0; uniform int direction: 0.0; #ifdef DEPTHTEX_ENABLED uniform sampler2D depthTex; uniform mat4 projection; uniform float depthRange : 0.5; float getLinearDepth(vec2 coord) { float depth = texture2D(depthTex, coord).r * 2.0 - 1.0; return projection[3][2] / (depth * projection[2][3] - projection[2][2]); } #endif void main() { float kernel[5]; kernel[0] = 0.122581; kernel[1] = 0.233062; kernel[2] = 0.288713; kernel[3] = 0.233062; kernel[4] = 0.122581; vec2 off = vec2(0.0); if (direction == 0) { off[0] = blurSize / textureSize.x; } else { off[1] = blurSize / textureSize.y; } vec2 coord = v_Texcoord; float sum = 0.0; float weightAll = 0.0; #ifdef NORMALTEX_ENABLED vec3 centerNormal = texture2D(normalTex, v_Texcoord).rgb * 2.0 - 1.0; #endif #if defined(DEPTHTEX_ENABLED) float centerDepth = getLinearDepth(v_Texcoord); #endif for (int i = 0; i < 5; i++) { vec2 coord = clamp(v_Texcoord + vec2(float(i) - 2.0) * off, vec2(0.0), vec2(1.0)); float w = kernel[i]; #ifdef NORMALTEX_ENABLED vec3 normal = texture2D(normalTex, coord).rgb * 2.0 - 1.0; w *= clamp(dot(normal, centerNormal), 0.0, 1.0); #endif #ifdef DEPTHTEX_ENABLED float d = getLinearDepth(coord); w *= (1.0 - smoothstep(abs(centerDepth - d) / depthRange, 0.0, 1.0)); #endif weightAll += w; sum += texture2D(ssaoTexture, coord).r * w; } gl_FragColor = vec4(vec3(sum / weightAll), 1.0); } @end `},function(G,w,E){"use strict";var O=E(9),A=E(4),_=E(5),g=E(6),x=E(14),m=E(7),a=E(10),u=E(43),h=E(165);m.a.import(h.a);function r(n){n=n||{},this._ssrPass=new x.a({fragment:m.a.source("ecgl.ssr.main"),clearColor:[0,0,0,0]}),this._blurPass1=new x.a({fragment:m.a.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blurPass2=new x.a({fragment:m.a.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._ssrPass.setUniform("gBufferTexture1",n.normalTexture),this._ssrPass.setUniform("gBufferTexture2",n.depthTexture),this._blurPass1.setUniform("gBufferTexture1",n.normalTexture),this._blurPass1.setUniform("gBufferTexture2",n.depthTexture),this._blurPass2.setUniform("gBufferTexture1",n.normalTexture),this._blurPass2.setUniform("gBufferTexture2",n.depthTexture),this._blurPass2.material.define("fragment","VERTICAL"),this._blurPass2.material.define("fragment","BLEND"),this._texture1=new _.a({type:g.a.HALF_FLOAT}),this._texture2=new _.a({type:g.a.HALF_FLOAT}),this._texture3=new _.a({type:g.a.HALF_FLOAT}),this._frameBuffer=new a.a({depthBuffer:!1})}r.prototype.update=function(n,s,d,o){var c=n.getWidth(),f=n.getHeight(),e=n.getDevicePixelRatio(),t=this._texture1,i=this._texture2,l=this._texture3;i.width=c/2,i.height=f/2,t.width=c,t.height=f,l.width=c*e,l.height=f*e;var v=this._frameBuffer,y=this._ssrPass,p=this._blurPass1,C=this._blurPass2,S=new O.a;O.a.transpose(S,s.worldTransform),y.setUniform("sourceTexture",d),y.setUniform("projection",s.projectionMatrix.array),y.setUniform("projectionInv",s.invProjectionMatrix.array),y.setUniform("viewInverseTranspose",S.array),y.setUniform("nearZ",s.near),y.setUniform("jitterOffset",o/30),p.setUniform("textureSize",[c/2,f/2]),C.setUniform("textureSize",[c,f]),C.setUniform("sourceTexture",d),p.setUniform("projection",s.projectionMatrix.array),C.setUniform("projection",s.projectionMatrix.array),v.attach(t),v.bind(n),y.render(n),v.attach(i),p.setUniform("texture",t),p.render(n),v.attach(l),C.setUniform("texture",i),C.render(n),v.unbind(n)},r.prototype.getTargetTexture=function(){return this._texture3},r.prototype.setParameter=function(n,s){n==="maxIteration"?this._ssrPass.material.define("fragment","MAX_ITERATION",s):this._ssrPass.setUniform(n,s)},r.prototype.setSSAOTexture=function(n){var s=this._blurPass2;n?(s.material.enableTexture("ssaoTex"),s.material.set("ssaoTex",n)):s.material.disableTexture("ssaoTex")},r.prototype.dispose=function(n){this._texture1.dispose(n),this._texture2.dispose(n),this._texture3.dispose(n),this._frameBuffer.dispose(n)},w.a=r},function(G,w,E){"use strict";w.a=`@export ecgl.ssr.main #define MAX_ITERATION 20; uniform sampler2D sourceTexture; uniform sampler2D gBufferTexture1; uniform sampler2D gBufferTexture2; uniform mat4 projection; uniform mat4 projectionInv; uniform mat4 viewInverseTranspose; uniform float maxRayDistance: 50; uniform float pixelStride: 16; uniform float pixelStrideZCutoff: 50; uniform float screenEdgeFadeStart: 0.9; uniform float eyeFadeStart : 0.2; uniform float eyeFadeEnd: 0.8; uniform float minGlossiness: 0.2; uniform float zThicknessThreshold: 10; uniform float nearZ; uniform vec2 viewportSize : VIEWPORT_SIZE; uniform float jitterOffset: 0; varying vec2 v_Texcoord; #ifdef DEPTH_DECODE @import clay.util.decode_float #endif float fetchDepth(sampler2D depthTexture, vec2 uv) { vec4 depthTexel = texture2D(depthTexture, uv); return depthTexel.r * 2.0 - 1.0; } float linearDepth(float depth) { if (projection[3][3] == 0.0) { return projection[3][2] / (depth * projection[2][3] - projection[2][2]); } else { return (depth - projection[3][2]) / projection[2][2]; } } bool rayIntersectDepth(float rayZNear, float rayZFar, vec2 hitPixel) { if (rayZFar > rayZNear) { float t = rayZFar; rayZFar = rayZNear; rayZNear = t; } float cameraZ = linearDepth(fetchDepth(gBufferTexture2, hitPixel)); return rayZFar <= cameraZ && rayZNear >= cameraZ - zThicknessThreshold; } bool traceScreenSpaceRay( vec3 rayOrigin, vec3 rayDir, float jitter, out vec2 hitPixel, out vec3 hitPoint, out float iterationCount ) { float rayLength = ((rayOrigin.z + rayDir.z * maxRayDistance) > -nearZ) ? (-nearZ - rayOrigin.z) / rayDir.z : maxRayDistance; vec3 rayEnd = rayOrigin + rayDir * rayLength; vec4 H0 = projection * vec4(rayOrigin, 1.0); vec4 H1 = projection * vec4(rayEnd, 1.0); float k0 = 1.0 / H0.w, k1 = 1.0 / H1.w; vec3 Q0 = rayOrigin * k0, Q1 = rayEnd * k1; vec2 P0 = (H0.xy * k0 * 0.5 + 0.5) * viewportSize; vec2 P1 = (H1.xy * k1 * 0.5 + 0.5) * viewportSize; P1 += dot(P1 - P0, P1 - P0) < 0.0001 ? 0.01 : 0.0; vec2 delta = P1 - P0; bool permute = false; if (abs(delta.x) < abs(delta.y)) { permute = true; delta = delta.yx; P0 = P0.yx; P1 = P1.yx; } float stepDir = sign(delta.x); float invdx = stepDir / delta.x; vec3 dQ = (Q1 - Q0) * invdx; float dk = (k1 - k0) * invdx; vec2 dP = vec2(stepDir, delta.y * invdx); float strideScaler = 1.0 - min(1.0, -rayOrigin.z / pixelStrideZCutoff); float pixStride = 1.0 + strideScaler * pixelStride; dP *= pixStride; dQ *= pixStride; dk *= pixStride; vec4 pqk = vec4(P0, Q0.z, k0); vec4 dPQK = vec4(dP, dQ.z, dk); pqk += dPQK * jitter; float rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w); float rayZNear; bool intersect = false; vec2 texelSize = 1.0 / viewportSize; iterationCount = 0.0; for (int i = 0; i < MAX_ITERATION; i++) { pqk += dPQK; rayZNear = rayZFar; rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w); hitPixel = permute ? pqk.yx : pqk.xy; hitPixel *= texelSize; intersect = rayIntersectDepth(rayZNear, rayZFar, hitPixel); iterationCount += 1.0; if (intersect) { break; } } Q0.xy += dQ.xy * iterationCount; Q0.z = pqk.z; hitPoint = Q0 / pqk.w; return intersect; } float calculateAlpha( float iterationCount, float reflectivity, vec2 hitPixel, vec3 hitPoint, float dist, vec3 rayDir ) { float alpha = clamp(reflectivity, 0.0, 1.0); alpha *= 1.0 - (iterationCount / float(MAX_ITERATION)); vec2 hitPixelNDC = hitPixel * 2.0 - 1.0; float maxDimension = min(1.0, max(abs(hitPixelNDC.x), abs(hitPixelNDC.y))); alpha *= 1.0 - max(0.0, maxDimension - screenEdgeFadeStart) / (1.0 - screenEdgeFadeStart); float _eyeFadeStart = eyeFadeStart; float _eyeFadeEnd = eyeFadeEnd; if (_eyeFadeStart > _eyeFadeEnd) { float tmp = _eyeFadeEnd; _eyeFadeEnd = _eyeFadeStart; _eyeFadeStart = tmp; } float eyeDir = clamp(rayDir.z, _eyeFadeStart, _eyeFadeEnd); alpha *= 1.0 - (eyeDir - _eyeFadeStart) / (_eyeFadeEnd - _eyeFadeStart); alpha *= 1.0 - clamp(dist / maxRayDistance, 0.0, 1.0); return alpha; } @import clay.util.rand @import clay.util.rgbm void main() { vec4 normalAndGloss = texture2D(gBufferTexture1, v_Texcoord); if (dot(normalAndGloss.rgb, vec3(1.0)) == 0.0) { discard; } float g = normalAndGloss.a; if (g <= minGlossiness) { discard; } float reflectivity = (g - minGlossiness) / (1.0 - minGlossiness); vec3 N = normalAndGloss.rgb * 2.0 - 1.0; N = normalize((viewInverseTranspose * vec4(N, 0.0)).xyz); vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, fetchDepth(gBufferTexture2, v_Texcoord), 1.0); vec4 pos = projectionInv * projectedPos; vec3 rayOrigin = pos.xyz / pos.w; vec3 rayDir = normalize(reflect(normalize(rayOrigin), N)); vec2 hitPixel; vec3 hitPoint; float iterationCount; vec2 uv2 = v_Texcoord * viewportSize; float jitter = rand(fract(v_Texcoord + jitterOffset)); bool intersect = traceScreenSpaceRay(rayOrigin, rayDir, jitter, hitPixel, hitPoint, iterationCount); float dist = distance(rayOrigin, hitPoint); float alpha = calculateAlpha(iterationCount, reflectivity, hitPixel, hitPoint, dist, rayDir) * float(intersect); vec3 hitNormal = texture2D(gBufferTexture1, hitPixel).rgb * 2.0 - 1.0; hitNormal = normalize((viewInverseTranspose * vec4(hitNormal, 0.0)).xyz); if (dot(hitNormal, rayDir) >= 0.0) { discard; } if (!intersect) { discard; } vec4 color = decodeHDR(texture2D(sourceTexture, hitPixel)); gl_FragColor = encodeHDR(vec4(color.rgb * alpha, color.a)); } @end @export ecgl.ssr.blur uniform sampler2D texture; uniform sampler2D gBufferTexture1; uniform sampler2D gBufferTexture2; uniform mat4 projection; uniform float depthRange : 0.05; varying vec2 v_Texcoord; uniform vec2 textureSize; uniform float blurSize : 4.0; #ifdef BLEND #ifdef SSAOTEX_ENABLED uniform sampler2D ssaoTex; #endif uniform sampler2D sourceTexture; #endif float getLinearDepth(vec2 coord) { float depth = texture2D(gBufferTexture2, coord).r * 2.0 - 1.0; return projection[3][2] / (depth * projection[2][3] - projection[2][2]); } @import clay.util.rgbm void main() { @import clay.compositor.kernel.gaussian_9 vec4 centerNTexel = texture2D(gBufferTexture1, v_Texcoord); float g = centerNTexel.a; float maxBlurSize = clamp(1.0 - g + 0.1, 0.0, 1.0) * blurSize; #ifdef VERTICAL vec2 off = vec2(0.0, maxBlurSize / textureSize.y); #else vec2 off = vec2(maxBlurSize / textureSize.x, 0.0); #endif vec2 coord = v_Texcoord; vec4 sum = vec4(0.0); float weightAll = 0.0; vec3 cN = centerNTexel.rgb * 2.0 - 1.0; float cD = getLinearDepth(v_Texcoord); for (int i = 0; i < 9; i++) { vec2 coord = clamp((float(i) - 4.0) * off + v_Texcoord, vec2(0.0), vec2(1.0)); float w = gaussianKernel[i] * clamp(dot(cN, texture2D(gBufferTexture1, coord).rgb * 2.0 - 1.0), 0.0, 1.0); float d = getLinearDepth(coord); w *= (1.0 - smoothstep(abs(cD - d) / depthRange, 0.0, 1.0)); weightAll += w; sum += decodeHDR(texture2D(texture, coord)) * w; } #ifdef BLEND float aoFactor = 1.0; #ifdef SSAOTEX_ENABLED aoFactor = texture2D(ssaoTex, v_Texcoord).r; #endif gl_FragColor = encodeHDR( sum / weightAll * aoFactor + decodeHDR(texture2D(sourceTexture, v_Texcoord)) ); #else gl_FragColor = encodeHDR(sum / weightAll); #endif } @end`},function(G,w,E){"use strict";w.a=[0,0,-.321585265978,-.154972575841,.458126042375,.188473391593,.842080129861,.527766490688,.147304551086,-.659453822776,-.331943915203,-.940619700594,.0479226680259,.54812163202,.701581552186,-.709825561388,-.295436780218,.940589268233,-.901489676764,.237713156085,.973570876096,-.109899459384,-.866792314779,-.451805525005,.330975007087,.800048655954,-.344275183665,.381779221166,-.386139432542,-.437418421534,-.576478634965,-.0148463392551,.385798197415,-.262426961053,-.666302061145,.682427250835,-.628010632582,-.732836215494,.10163141741,-.987658134403,.711995289051,-.320024291314,.0296005138058,.950296523438,.0130612307608,-.351024443122,-.879596633704,-.10478487883,.435712737232,.504254490347,.779203817497,.206477676721,.388264289969,-.896736162545,-.153106280781,-.629203242522,-.245517550697,.657969239148,.126830499058,.26862328493,-.634888119007,-.302301223431,.617074219636,.779817204925]},function(G,w,E){"use strict";var O=E(5),A=E(6),_=E(7),g=E(10),x=E(17),m=E(14),a=E(54),u=E(168);_.a.import(u.a);function h(s,d,o,c,f){var e=s.gl;d.setUniform(e,"1i",o,f),e.activeTexture(e.TEXTURE0+f),c.isRenderable()?c.bind(s):c.unbind(s)}function r(s,d,o,c,f){var e,t,i,l,v=s.gl;return function(y,p,C){if(!(l&&l.material===y.material)){var S=y.material,T=y.__program,D=S.get("roughness");D==null&&(D=1);var I=S.get("normalMap")||d,M=S.get("roughnessMap"),P=S.get("bumpMap"),L=S.get("uvRepeat"),R=S.get("uvOffset"),B=S.get("detailUvRepeat"),U=S.get("detailUvOffset"),H=!!P&&S.isTextureEnabled("bumpMap"),K=!!M&&S.isTextureEnabled("roughnessMap"),V=S.isDefined("fragment","DOUBLE_SIDED");P=P||o,M=M||c,C!==p?(p.set("normalMap",I),p.set("bumpMap",P),p.set("roughnessMap",M),p.set("useBumpMap",H),p.set("useRoughnessMap",K),p.set("doubleSide",V),L!=null&&p.set("uvRepeat",L),R!=null&&p.set("uvOffset",R),B!=null&&p.set("detailUvRepeat",B),U!=null&&p.set("detailUvOffset",U),p.set("roughness",D)):(T.setUniform(v,"1f","roughness",D),e!==I&&h(s,T,"normalMap",I,0),t!==P&&P&&h(s,T,"bumpMap",P,1),i!==M&&M&&h(s,T,"roughnessMap",M,2),L!=null&&T.setUniform(v,"2f","uvRepeat",L),R!=null&&T.setUniform(v,"2f","uvOffset",R),B!=null&&T.setUniform(v,"2f","detailUvRepeat",B),U!=null&&T.setUniform(v,"2f","detailUvOffset",U),T.setUniform(v,"1i","useBumpMap",+H),T.setUniform(v,"1i","useRoughnessMap",+K),T.setUniform(v,"1i","doubleSide",+V)),e=I,t=P,i=M,l=y}}}function n(s){s=s||{},this._depthTex=new O.a({format:A.a.DEPTH_COMPONENT,type:A.a.UNSIGNED_INT}),this._normalTex=new O.a({type:A.a.HALF_FLOAT}),this._framebuffer=new g.a,this._framebuffer.attach(this._normalTex),this._framebuffer.attach(this._depthTex,g.a.DEPTH_ATTACHMENT),this._normalMaterial=new x.a({shader:new _.a(_.a.source("ecgl.normal.vertex"),_.a.source("ecgl.normal.fragment"))}),this._normalMaterial.enableTexture(["normalMap","bumpMap","roughnessMap"]),this._defaultNormalMap=a.a.createBlank("#000"),this._defaultBumpMap=a.a.createBlank("#000"),this._defaultRoughessMap=a.a.createBlank("#000"),this._debugPass=new m.a({fragment:_.a.source("clay.compositor.output")}),this._debugPass.setUniform("texture",this._normalTex),this._debugPass.material.undefine("fragment","OUTPUT_ALPHA")}n.prototype.getDepthTexture=function(){return this._depthTex},n.prototype.getNormalTexture=function(){return this._normalTex},n.prototype.update=function(s,d,o){var c=s.getWidth(),f=s.getHeight(),e=this._depthTex,t=this._normalTex,i=this._normalMaterial;e.width=c,e.height=f,t.width=c,t.height=f;var l=d.opaqueList;this._framebuffer.bind(s),s.gl.clearColor(0,0,0,0),s.gl.clear(s.gl.COLOR_BUFFER_BIT|s.gl.DEPTH_BUFFER_BIT),s.gl.disable(s.gl.BLEND),s.renderPass(l,o,{getMaterial:function(){return i},ifRender:function(v){return v.renderNormal},beforeRender:r(s,this._defaultNormalMap,this._defaultBumpMap,this._defaultRoughessMap,this._normalMaterial),sort:s.opaqueSortCompare}),this._framebuffer.unbind(s)},n.prototype.renderDebug=function(s){this._debugPass.render(s)},n.prototype.dispose=function(s){this._depthTex.dispose(s),this._normalTex.dispose(s)},w.a=n},function(G,w,E){"use strict";w.a=`@export ecgl.normal.vertex @import ecgl.common.transformUniforms @import ecgl.common.uv.header @import ecgl.common.attributes varying vec3 v_Normal; varying vec3 v_WorldPosition; @import ecgl.common.normalMap.vertexHeader @import ecgl.common.vertexAnimation.header void main() { @import ecgl.common.vertexAnimation.main @import ecgl.common.uv.main v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz); v_WorldPosition = (world * vec4(pos, 1.0)).xyz; @import ecgl.common.normalMap.vertexMain gl_Position = worldViewProjection * vec4(pos, 1.0); } @end @export ecgl.normal.fragment #define ROUGHNESS_CHANEL 0 uniform bool useBumpMap; uniform bool useRoughnessMap; uniform bool doubleSide; uniform float roughness; @import ecgl.common.uv.fragmentHeader varying vec3 v_Normal; varying vec3 v_WorldPosition; uniform mat4 viewInverse : VIEWINVERSE; @import ecgl.common.normalMap.fragmentHeader @import ecgl.common.bumpMap.header uniform sampler2D roughnessMap; void main() { vec3 N = v_Normal; bool flipNormal = false; if (doubleSide) { vec3 eyePos = viewInverse[3].xyz; vec3 V = normalize(eyePos - v_WorldPosition); if (dot(N, V) < 0.0) { flipNormal = true; } } @import ecgl.common.normalMap.fragmentMain if (useBumpMap) { N = bumpNormal(v_WorldPosition, v_Normal, N); } float g = 1.0 - roughness; if (useRoughnessMap) { float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL]; g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0); } if (flipNormal) { N = -N; } gl_FragColor.rgb = (N.xyz + 1.0) * 0.5; gl_FragColor.a = g; } @end`},function(G,w,E){"use strict";var O=E(9),A=E(4),_=E(5),g=E(6),x=E(14),m=E(7),a=E(10);function u(h){h=h||{},this._edgePass=new x.a({fragment:m.a.source("ecgl.edge")}),this._edgePass.setUniform("normalTexture",h.normalTexture),this._edgePass.setUniform("depthTexture",h.depthTexture),this._targetTexture=new _.a({type:g.a.HALF_FLOAT}),this._frameBuffer=new a.a,this._frameBuffer.attach(this._targetTexture)}u.prototype.update=function(h,r,n,s){var d=h.getWidth(),o=h.getHeight(),c=this._targetTexture;c.width=d,c.height=o;var f=this._frameBuffer;f.bind(h),this._edgePass.setUniform("projectionInv",r.invProjectionMatrix.array),this._edgePass.setUniform("textureSize",[d,o]),this._edgePass.setUniform("texture",n),this._edgePass.render(h),f.unbind(h)},u.prototype.getTargetTexture=function(){return this._targetTexture},u.prototype.setParameter=function(h,r){this._edgePass.setUniform(h,r)},u.prototype.dispose=function(h){this._targetTexture.dispose(h),this._frameBuffer.dispose(h)},w.a=u},function(G,w,E){"use strict";w.a={type:"compositor",nodes:[{name:"source",type:"texture",outputs:{color:{}}},{name:"source_half",shader:"#source(clay.compositor.downsample)",inputs:{texture:"source"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bright",shader:"#source(clay.compositor.bright)",inputs:{texture:"source_half"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{threshold:2,scale:4,textureSize:"expr([width * 1.0 / 2, height / 2])"}},{name:"bright_downsample_4",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 2, height / 2] )"}},{name:"bright_downsample_8",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 4, height / 4] )"}},{name:"bright_downsample_16",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 8, height / 8] )"}},{name:"bright_downsample_32",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 32)",height:"expr(height * 1.0 / 32)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 16, height / 16] )"}},{name:"bright_upsample_16_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_32"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 32, height / 32] )"}},{name:"bright_upsample_16_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_16_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_8_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_8_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_8_blur_v",texture2:"bright_upsample_16_blur_v"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_4_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_4_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_4_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_4_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_4_blur_v",texture2:"bright_upsample_8_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_2_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_2_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_2_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_2_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_2_blur_v",texture2:"bright_upsample_4_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_full_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_full_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_full_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bloom_composite",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_full_blur_v",texture2:"bright_upsample_2_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"coc",shader:"#source(ecgl.dof.coc)",outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{focalDist:50,focalRange:30}},{name:"dof_far_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"dof_near_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_NEARFIELD:null}},{name:"dof_coc_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"coc"},outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_COC:null}},{name:"dof_composite",shader:"#source(ecgl.dof.composite)",inputs:{original:"source",blurred:"dof_far_blur",nearfield:"dof_near_blur",coc:"coc",nearcoc:"dof_coc_blur"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}}},{name:"composite",shader:"#source(clay.compositor.hdr.composite)",inputs:{texture:"source",bloom:"bloom_composite"},defines:{}},{name:"FXAA",shader:"#source(clay.compositor.fxaa)",inputs:{texture:"composite"}}]}},function(G,w,E){"use strict";w.a=`@export clay.compositor.kernel.gaussian_9 float gaussianKernel[9]; gaussianKernel[0] = 0.07; gaussianKernel[1] = 0.09; gaussianKernel[2] = 0.12; gaussianKernel[3] = 0.14; gaussianKernel[4] = 0.16; gaussianKernel[5] = 0.14; gaussianKernel[6] = 0.12; gaussianKernel[7] = 0.09; gaussianKernel[8] = 0.07; @end @export clay.compositor.kernel.gaussian_13 float gaussianKernel[13]; gaussianKernel[0] = 0.02; gaussianKernel[1] = 0.03; gaussianKernel[2] = 0.06; gaussianKernel[3] = 0.08; gaussianKernel[4] = 0.11; gaussianKernel[5] = 0.13; gaussianKernel[6] = 0.14; gaussianKernel[7] = 0.13; gaussianKernel[8] = 0.11; gaussianKernel[9] = 0.08; gaussianKernel[10] = 0.06; gaussianKernel[11] = 0.03; gaussianKernel[12] = 0.02; @end @export clay.compositor.gaussian_blur #define SHADER_NAME gaussian_blur uniform sampler2D texture;varying vec2 v_Texcoord; uniform float blurSize : 2.0; uniform vec2 textureSize : [512.0, 512.0]; uniform float blurDir : 0.0; @import clay.util.rgbm @import clay.util.clamp_sample void main (void) { @import clay.compositor.kernel.gaussian_9 vec2 off = blurSize / textureSize; off *= vec2(1.0 - blurDir, blurDir); vec4 sum = vec4(0.0); float weightAll = 0.0; for (int i = 0; i < 9; i++) { float w = gaussianKernel[i]; vec4 texel = decodeHDR(clampSample(texture, v_Texcoord + float(i - 4) * off)); sum += texel * w; weightAll += w; } gl_FragColor = encodeHDR(sum / max(weightAll, 0.01)); } @end `},function(G,w,E){"use strict";w.a=` @export clay.compositor.lut varying vec2 v_Texcoord; uniform sampler2D texture; uniform sampler2D lookup; void main() { vec4 tex = texture2D(texture, v_Texcoord); float blueColor = tex.b * 63.0; vec2 quad1; quad1.y = floor(floor(blueColor) / 8.0); quad1.x = floor(blueColor) - (quad1.y * 8.0); vec2 quad2; quad2.y = floor(ceil(blueColor) / 8.0); quad2.x = ceil(blueColor) - (quad2.y * 8.0); vec2 texPos1; texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r); texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g); vec2 texPos2; texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r); texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g); vec4 newColor1 = texture2D(lookup, texPos1); vec4 newColor2 = texture2D(lookup, texPos2); vec4 newColor = mix(newColor1, newColor2, fract(blueColor)); gl_FragColor = vec4(newColor.rgb, tex.w); } @end`},function(G,w,E){"use strict";w.a=`@export clay.compositor.output #define OUTPUT_ALPHA varying vec2 v_Texcoord; uniform sampler2D texture; @import clay.util.rgbm void main() { vec4 tex = decodeHDR(texture2D(texture, v_Texcoord)); gl_FragColor.rgb = tex.rgb; #ifdef OUTPUT_ALPHA gl_FragColor.a = tex.a; #else gl_FragColor.a = 1.0; #endif gl_FragColor = encodeHDR(gl_FragColor); #ifdef PREMULTIPLY_ALPHA gl_FragColor.rgb *= gl_FragColor.a; #endif } @end`},function(G,w,E){"use strict";w.a=`@export clay.compositor.bright uniform sampler2D texture; uniform float threshold : 1; uniform float scale : 1.0; uniform vec2 textureSize: [512, 512]; varying vec2 v_Texcoord; const vec3 lumWeight = vec3(0.2125, 0.7154, 0.0721); @import clay.util.rgbm vec4 median(vec4 a, vec4 b, vec4 c) { return a + b + c - min(min(a, b), c) - max(max(a, b), c); } void main() { vec4 texel = decodeHDR(texture2D(texture, v_Texcoord)); #ifdef ANTI_FLICKER vec3 d = 1.0 / textureSize.xyx * vec3(1.0, 1.0, 0.0); vec4 s1 = decodeHDR(texture2D(texture, v_Texcoord - d.xz)); vec4 s2 = decodeHDR(texture2D(texture, v_Texcoord + d.xz)); vec4 s3 = decodeHDR(texture2D(texture, v_Texcoord - d.zy)); vec4 s4 = decodeHDR(texture2D(texture, v_Texcoord + d.zy)); texel = median(median(texel, s1, s2), s3, s4); #endif float lum = dot(texel.rgb , lumWeight); vec4 color; if (lum > threshold && texel.a > 0.0) { color = vec4(texel.rgb * scale, texel.a * scale); } else { color = vec4(0.0); } gl_FragColor = encodeHDR(color); } @end `},function(G,w,E){"use strict";w.a=`@export clay.compositor.downsample uniform sampler2D texture; uniform vec2 textureSize : [512, 512]; varying vec2 v_Texcoord; @import clay.util.rgbm float brightness(vec3 c) { return max(max(c.r, c.g), c.b); } @import clay.util.clamp_sample void main() { vec4 d = vec4(-1.0, -1.0, 1.0, 1.0) / textureSize.xyxy; #ifdef ANTI_FLICKER vec3 s1 = decodeHDR(clampSample(texture, v_Texcoord + d.xy)).rgb; vec3 s2 = decodeHDR(clampSample(texture, v_Texcoord + d.zy)).rgb; vec3 s3 = decodeHDR(clampSample(texture, v_Texcoord + d.xw)).rgb; vec3 s4 = decodeHDR(clampSample(texture, v_Texcoord + d.zw)).rgb; float s1w = 1.0 / (brightness(s1) + 1.0); float s2w = 1.0 / (brightness(s2) + 1.0); float s3w = 1.0 / (brightness(s3) + 1.0); float s4w = 1.0 / (brightness(s4) + 1.0); float oneDivideSum = 1.0 / (s1w + s2w + s3w + s4w); vec4 color = vec4( (s1 * s1w + s2 * s2w + s3 * s3w + s4 * s4w) * oneDivideSum, 1.0 ); #else vec4 color = decodeHDR(clampSample(texture, v_Texcoord + d.xy)); color += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); color += decodeHDR(clampSample(texture, v_Texcoord + d.xw)); color += decodeHDR(clampSample(texture, v_Texcoord + d.zw)); color *= 0.25; #endif gl_FragColor = encodeHDR(color); } @end`},function(G,w,E){"use strict";w.a=` @export clay.compositor.upsample #define HIGH_QUALITY uniform sampler2D texture; uniform vec2 textureSize : [512, 512]; uniform float sampleScale: 0.5; varying vec2 v_Texcoord; @import clay.util.rgbm @import clay.util.clamp_sample void main() { #ifdef HIGH_QUALITY vec4 d = vec4(1.0, 1.0, -1.0, 0.0) / textureSize.xyxy * sampleScale; vec4 s; s = decodeHDR(clampSample(texture, v_Texcoord - d.xy)); s += decodeHDR(clampSample(texture, v_Texcoord - d.wy)) * 2.0; s += decodeHDR(clampSample(texture, v_Texcoord - d.zy)); s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)) * 2.0; s += decodeHDR(clampSample(texture, v_Texcoord )) * 4.0; s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)) * 2.0; s += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); s += decodeHDR(clampSample(texture, v_Texcoord + d.wy)) * 2.0; s += decodeHDR(clampSample(texture, v_Texcoord + d.xy)); gl_FragColor = encodeHDR(s / 16.0); #else vec4 d = vec4(-1.0, -1.0, +1.0, +1.0) / textureSize.xyxy; vec4 s; s = decodeHDR(clampSample(texture, v_Texcoord + d.xy)); s += decodeHDR(clampSample(texture, v_Texcoord + d.zy)); s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)); s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)); gl_FragColor = encodeHDR(s / 4.0); #endif } @end`},function(G,w,E){"use strict";w.a=`@export clay.compositor.hdr.composite uniform sampler2D texture; #ifdef BLOOM_ENABLED uniform sampler2D bloom; #endif #ifdef LENSFLARE_ENABLED uniform sampler2D lensflare; uniform sampler2D lensdirt; #endif #ifdef LUM_ENABLED uniform sampler2D lum; #endif #ifdef LUT_ENABLED uniform sampler2D lut; #endif #ifdef COLOR_CORRECTION uniform float brightness : 0.0; uniform float contrast : 1.0; uniform float saturation : 1.0; #endif #ifdef VIGNETTE uniform float vignetteDarkness: 1.0; uniform float vignetteOffset: 1.0; #endif uniform float exposure : 1.0; uniform float bloomIntensity : 0.25; uniform float lensflareIntensity : 1; varying vec2 v_Texcoord; @import clay.util.srgb vec3 ACESToneMapping(vec3 color) { const float A = 2.51; const float B = 0.03; const float C = 2.43; const float D = 0.59; const float E = 0.14; return (color * (A * color + B)) / (color * (C * color + D) + E); } float eyeAdaption(float fLum) { return mix(0.2, fLum, 0.5); } #ifdef LUT_ENABLED vec3 lutTransform(vec3 color) { float blueColor = color.b * 63.0; vec2 quad1; quad1.y = floor(floor(blueColor) / 8.0); quad1.x = floor(blueColor) - (quad1.y * 8.0); vec2 quad2; quad2.y = floor(ceil(blueColor) / 8.0); quad2.x = ceil(blueColor) - (quad2.y * 8.0); vec2 texPos1; texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r); texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g); vec2 texPos2; texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r); texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g); vec4 newColor1 = texture2D(lut, texPos1); vec4 newColor2 = texture2D(lut, texPos2); vec4 newColor = mix(newColor1, newColor2, fract(blueColor)); return newColor.rgb; } #endif @import clay.util.rgbm void main() { vec4 texel = vec4(0.0); vec4 originalTexel = vec4(0.0); #ifdef TEXTURE_ENABLED texel = decodeHDR(texture2D(texture, v_Texcoord)); originalTexel = texel; #endif #ifdef BLOOM_ENABLED vec4 bloomTexel = decodeHDR(texture2D(bloom, v_Texcoord)); texel.rgb += bloomTexel.rgb * bloomIntensity; texel.a += bloomTexel.a * bloomIntensity; #endif #ifdef LENSFLARE_ENABLED texel += decodeHDR(texture2D(lensflare, v_Texcoord)) * texture2D(lensdirt, v_Texcoord) * lensflareIntensity; #endif texel.a = min(texel.a, 1.0); #ifdef LUM_ENABLED float fLum = texture2D(lum, vec2(0.5, 0.5)).r; float adaptedLumDest = 3.0 / (max(0.1, 1.0 + 10.0*eyeAdaption(fLum))); float exposureBias = adaptedLumDest * exposure; #else float exposureBias = exposure; #endif texel.rgb *= exposureBias; texel.rgb = ACESToneMapping(texel.rgb); texel = linearTosRGB(texel); #ifdef LUT_ENABLED texel.rgb = lutTransform(clamp(texel.rgb,vec3(0.0),vec3(1.0))); #endif #ifdef COLOR_CORRECTION texel.rgb = clamp(texel.rgb + vec3(brightness), 0.0, 1.0); texel.rgb = clamp((texel.rgb - vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0); float lum = dot(texel.rgb, vec3(0.2125, 0.7154, 0.0721)); texel.rgb = mix(vec3(lum), texel.rgb, saturation); #endif #ifdef VIGNETTE vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(vignetteOffset); texel.rgb = mix(texel.rgb, vec3(1.0 - vignetteDarkness), dot(uv, uv)); #endif gl_FragColor = encodeHDR(texel); #ifdef DEBUG #if DEBUG == 1 gl_FragColor = encodeHDR(decodeHDR(texture2D(texture, v_Texcoord))); #elif DEBUG == 2 gl_FragColor = encodeHDR(decodeHDR(texture2D(bloom, v_Texcoord)) * bloomIntensity); #elif DEBUG == 3 gl_FragColor = encodeHDR(decodeHDR(texture2D(lensflare, v_Texcoord) * lensflareIntensity)); #endif #endif if (originalTexel.a <= 0.01 && gl_FragColor.a > 1e-5) { gl_FragColor.a = dot(gl_FragColor.rgb, vec3(0.2125, 0.7154, 0.0721)); } #ifdef PREMULTIPLY_ALPHA gl_FragColor.rgb *= gl_FragColor.a; #endif } @end`},function(G,w,E){"use strict";w.a=`@export clay.compositor.blend #define SHADER_NAME blend #ifdef TEXTURE1_ENABLED uniform sampler2D texture1; uniform float weight1 : 1.0; #endif #ifdef TEXTURE2_ENABLED uniform sampler2D texture2; uniform float weight2 : 1.0; #endif #ifdef TEXTURE3_ENABLED uniform sampler2D texture3; uniform float weight3 : 1.0; #endif #ifdef TEXTURE4_ENABLED uniform sampler2D texture4; uniform float weight4 : 1.0; #endif #ifdef TEXTURE5_ENABLED uniform sampler2D texture5; uniform float weight5 : 1.0; #endif #ifdef TEXTURE6_ENABLED uniform sampler2D texture6; uniform float weight6 : 1.0; #endif varying vec2 v_Texcoord; @import clay.util.rgbm void main() { vec4 tex = vec4(0.0); #ifdef TEXTURE1_ENABLED tex += decodeHDR(texture2D(texture1, v_Texcoord)) * weight1; #endif #ifdef TEXTURE2_ENABLED tex += decodeHDR(texture2D(texture2, v_Texcoord)) * weight2; #endif #ifdef TEXTURE3_ENABLED tex += decodeHDR(texture2D(texture3, v_Texcoord)) * weight3; #endif #ifdef TEXTURE4_ENABLED tex += decodeHDR(texture2D(texture4, v_Texcoord)) * weight4; #endif #ifdef TEXTURE5_ENABLED tex += decodeHDR(texture2D(texture5, v_Texcoord)) * weight5; #endif #ifdef TEXTURE6_ENABLED tex += decodeHDR(texture2D(texture6, v_Texcoord)) * weight6; #endif gl_FragColor = encodeHDR(tex); } @end`},function(G,w,E){"use strict";w.a=`@export clay.compositor.fxaa uniform sampler2D texture; uniform vec4 viewport : VIEWPORT; varying vec2 v_Texcoord; #define FXAA_REDUCE_MIN (1.0/128.0) #define FXAA_REDUCE_MUL (1.0/8.0) #define FXAA_SPAN_MAX 8.0 @import clay.util.rgbm void main() { vec2 resolution = 1.0 / viewport.zw; vec3 rgbNW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, -1.0 ) ) * resolution ) ).xyz; vec3 rgbNE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, -1.0 ) ) * resolution ) ).xyz; vec3 rgbSW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, 1.0 ) ) * resolution ) ).xyz; vec3 rgbSE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, 1.0 ) ) * resolution ) ).xyz; vec4 rgbaM = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution ) ); vec3 rgbM = rgbaM.xyz; float opacity = rgbaM.w; vec3 luma = vec3( 0.299, 0.587, 0.114 ); float lumaNW = dot( rgbNW, luma ); float lumaNE = dot( rgbNE, luma ); float lumaSW = dot( rgbSW, luma ); float lumaSE = dot( rgbSE, luma ); float lumaM = dot( rgbM, luma ); float lumaMin = min( lumaM, min( min( lumaNW, lumaNE ), min( lumaSW, lumaSE ) ) ); float lumaMax = max( lumaM, max( max( lumaNW, lumaNE) , max( lumaSW, lumaSE ) ) ); vec2 dir; dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE)); dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE)); float dirReduce = max( ( lumaNW + lumaNE + lumaSW + lumaSE ) * ( 0.25 * FXAA_REDUCE_MUL ), FXAA_REDUCE_MIN ); float rcpDirMin = 1.0 / ( min( abs( dir.x ), abs( dir.y ) ) + dirReduce ); dir = min( vec2( FXAA_SPAN_MAX, FXAA_SPAN_MAX), max( vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX), dir * rcpDirMin)) * resolution; vec3 rgbA = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 1.0 / 3.0 - 0.5 ) ) ).xyz; rgbA += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 2.0 / 3.0 - 0.5 ) ) ).xyz; rgbA *= 0.5; vec3 rgbB = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * -0.5 ) ).xyz; rgbB += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * 0.5 ) ).xyz; rgbB *= 0.25; rgbB += rgbA * 0.5; float lumaB = dot( rgbB, luma ); if ( ( lumaB < lumaMin ) || ( lumaB > lumaMax ) ) { gl_FragColor = vec4( rgbA, opacity ); } else { gl_FragColor = vec4( rgbB, opacity ); } } @end`},function(G,w,E){"use strict";w.a=`@export ecgl.dof.coc uniform sampler2D depth; uniform float zNear: 0.1; uniform float zFar: 2000; uniform float focalDistance: 3; uniform float focalRange: 1; uniform float focalLength: 30; uniform float fstop: 2.8; varying vec2 v_Texcoord; @import clay.util.encode_float void main() { float z = texture2D(depth, v_Texcoord).r * 2.0 - 1.0; float dist = 2.0 * zNear * zFar / (zFar + zNear - z * (zFar - zNear)); float aperture = focalLength / fstop; float coc; float uppper = focalDistance + focalRange; float lower = focalDistance - focalRange; if (dist <= uppper && dist >= lower) { coc = 0.5; } else { float focalAdjusted = dist > uppper ? uppper : lower; coc = abs(aperture * (focalLength * (dist - focalAdjusted)) / (dist * (focalAdjusted - focalLength))); coc = clamp(coc, 0.0, 2.0) / 2.00001; if (dist < lower) { coc = -coc; } coc = coc * 0.5 + 0.5; } gl_FragColor = encodeFloat(coc); } @end @export ecgl.dof.composite #define DEBUG 0 uniform sampler2D original; uniform sampler2D blurred; uniform sampler2D nearfield; uniform sampler2D coc; uniform sampler2D nearcoc; varying vec2 v_Texcoord; @import clay.util.rgbm @import clay.util.float void main() { vec4 blurredColor = decodeHDR(texture2D(blurred, v_Texcoord)); vec4 originalColor = decodeHDR(texture2D(original, v_Texcoord)); float fCoc = decodeFloat(texture2D(coc, v_Texcoord)); fCoc = abs(fCoc * 2.0 - 1.0); float weight = smoothstep(0.0, 1.0, fCoc); #ifdef NEARFIELD_ENABLED vec4 nearfieldColor = decodeHDR(texture2D(nearfield, v_Texcoord)); float fNearCoc = decodeFloat(texture2D(nearcoc, v_Texcoord)); fNearCoc = abs(fNearCoc * 2.0 - 1.0); gl_FragColor = encodeHDR( mix( nearfieldColor, mix(originalColor, blurredColor, weight), pow(1.0 - fNearCoc, 4.0) ) ); #else gl_FragColor = encodeHDR(mix(originalColor, blurredColor, weight)); #endif } @end @export ecgl.dof.diskBlur #define POISSON_KERNEL_SIZE 16; uniform sampler2D texture; uniform sampler2D coc; varying vec2 v_Texcoord; uniform float blurRadius : 10.0; uniform vec2 textureSize : [512.0, 512.0]; uniform vec2 poissonKernel[POISSON_KERNEL_SIZE]; uniform float percent; float nrand(const in vec2 n) { return fract(sin(dot(n.xy ,vec2(12.9898,78.233))) * 43758.5453); } @import clay.util.rgbm @import clay.util.float void main() { vec2 offset = blurRadius / textureSize; float rnd = 6.28318 * nrand(v_Texcoord + 0.07 * percent ); float cosa = cos(rnd); float sina = sin(rnd); vec4 basis = vec4(cosa, -sina, sina, cosa); #if !defined(BLUR_NEARFIELD) && !defined(BLUR_COC) offset *= abs(decodeFloat(texture2D(coc, v_Texcoord)) * 2.0 - 1.0); #endif #ifdef BLUR_COC float cocSum = 0.0; #else vec4 color = vec4(0.0); #endif float weightSum = 0.0; for (int i = 0; i < POISSON_KERNEL_SIZE; i++) { vec2 ofs = poissonKernel[i]; ofs = vec2(dot(ofs, basis.xy), dot(ofs, basis.zw)); vec2 uv = v_Texcoord + ofs * offset; vec4 texel = texture2D(texture, uv); float w = 1.0; #ifdef BLUR_COC float fCoc = decodeFloat(texel) * 2.0 - 1.0; cocSum += clamp(fCoc, -1.0, 0.0) * w; #else texel = decodeHDR(texel); #if !defined(BLUR_NEARFIELD) float fCoc = decodeFloat(texture2D(coc, uv)) * 2.0 - 1.0; w *= abs(fCoc); #endif color += texel * w; #endif weightSum += w; } #ifdef BLUR_COC gl_FragColor = encodeFloat(clamp(cocSum / weightSum, -1.0, 0.0) * 0.5 + 0.5); #else color /= weightSum; gl_FragColor = encodeHDR(color); #endif } @end`},function(G,w,E){"use strict";w.a=`@export ecgl.edge uniform sampler2D texture; uniform sampler2D normalTexture; uniform sampler2D depthTexture; uniform mat4 projectionInv; uniform vec2 textureSize; uniform vec4 edgeColor: [0,0,0,0.8]; varying vec2 v_Texcoord; vec3 packColor(vec2 coord) { float z = texture2D(depthTexture, coord).r * 2.0 - 1.0; vec4 p = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0); vec4 p4 = projectionInv * p; return vec3( texture2D(normalTexture, coord).rg, -p4.z / p4.w / 5.0 ); } void main() { vec2 cc = v_Texcoord; vec3 center = packColor(cc); float size = clamp(1.0 - (center.z - 10.0) / 100.0, 0.0, 1.0) * 0.5; float dx = size / textureSize.x; float dy = size / textureSize.y; vec2 coord; vec3 topLeft = packColor(cc+vec2(-dx, -dy)); vec3 top = packColor(cc+vec2(0.0, -dy)); vec3 topRight = packColor(cc+vec2(dx, -dy)); vec3 left = packColor(cc+vec2(-dx, 0.0)); vec3 right = packColor(cc+vec2(dx, 0.0)); vec3 bottomLeft = packColor(cc+vec2(-dx, dy)); vec3 bottom = packColor(cc+vec2(0.0, dy)); vec3 bottomRight = packColor(cc+vec2(dx, dy)); vec3 v = -topLeft-2.0*top-topRight+bottomLeft+2.0*bottom+bottomRight; vec3 h = -bottomLeft-2.0*left-topLeft+bottomRight+2.0*right+topRight; float edge = sqrt(dot(h, h) + dot(v, v)); edge = smoothstep(0.8, 1.0, edge); gl_FragColor = mix(texture2D(texture, v_Texcoord), vec4(edgeColor.rgb, 1.0), edgeColor.a * edge); } @end`},function(G,w,E){"use strict";var O=E(43),A=E(14),_=E(10),g=E(5),x=E(7),m=E(9);function a(u){for(var h=[],r=0;r<30;r++)h.push([Object(O.a)(r,2),Object(O.a)(r,3)]);this._haltonSequence=h,this._frame=0,this._sourceTex=new g.a,this._sourceFb=new _.a,this._sourceFb.attach(this._sourceTex),this._prevFrameTex=new g.a,this._outputTex=new g.a;var n=this._blendPass=new A.a({fragment:x.a.source("clay.compositor.blend")});n.material.disableTexturesAll(),n.material.enableTexture(["texture1","texture2"]),this._blendFb=new _.a({depthBuffer:!1}),this._outputPass=new A.a({fragment:x.a.source("clay.compositor.output"),blendWithPrevious:!0}),this._outputPass.material.define("fragment","OUTPUT_ALPHA"),this._outputPass.material.blend=function(s){s.blendEquationSeparate(s.FUNC_ADD,s.FUNC_ADD),s.blendFuncSeparate(s.ONE,s.ONE_MINUS_SRC_ALPHA,s.ONE,s.ONE_MINUS_SRC_ALPHA)}}a.prototype={constructor:a,jitterProjection:function(u,h){var r=u.viewport,n=r.devicePixelRatio||u.getDevicePixelRatio(),s=r.width*n,d=r.height*n,o=this._haltonSequence[this._frame%this._haltonSequence.length],c=new m.a;c.array[12]=(o[0]*2-1)/s,c.array[13]=(o[1]*2-1)/d,m.a.mul(h.projectionMatrix,c,h.projectionMatrix),m.a.invert(h.invProjectionMatrix,h.projectionMatrix)},resetFrame:function(){this._frame=0},getFrame:function(){return this._frame},getSourceFrameBuffer:function(){return this._sourceFb},getOutputTexture:function(){return this._outputTex},resize:function(u,h){this._prevFrameTex.width=u,this._prevFrameTex.height=h,this._outputTex.width=u,this._outputTex.height=h,this._sourceTex.width=u,this._sourceTex.height=h,this._prevFrameTex.dirty(),this._outputTex.dirty(),this._sourceTex.dirty()},isFinished:function(){return this._frame>=this._haltonSequence.length},render:function(u,h,r){var n=this._blendPass;this._frame===0?(n.setUniform("weight1",0),n.setUniform("weight2",1)):(n.setUniform("weight1",.9),n.setUniform("weight2",.1)),n.setUniform("texture1",this._prevFrameTex),n.setUniform("texture2",h||this._sourceTex),this._blendFb.attach(this._outputTex),this._blendFb.bind(u),n.render(u),this._blendFb.unbind(u),r||(this._outputPass.setUniform("texture",this._outputTex),this._outputPass.render(u));var s=this._prevFrameTex;this._prevFrameTex=this._outputTex,this._outputTex=s,this._frame++},dispose:function(u){this._sourceFb.dispose(u),this._blendFb.dispose(u),this._prevFrameTex.dispose(u),this._outputTex.dispose(u),this._sourceTex.dispose(u),this._outputPass.dispose(u),this._blendPass.dispose(u)}},w.a=a},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(184),g=E(185),x=E(82);A.a.registerAction({type:"geo3DChangeCamera",event:"geo3dcamerachanged",update:"series:updateCamera"},function(m,a){a.eachComponent({mainType:"geo3D",query:m},function(u){u.setView(m)})})},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(38),g=E(31),x=E(32),m=E(26),a=E(80),u=A.a.extendComponentModel({type:"geo3D",layoutMode:"box",coordinateSystem:null,optionUpdated:function(){var r=this.option;r.regions=this.getFilledRegions(r.regions,r.map);var n=A.a.helper.completeDimensions(["value"],r.data,{encodeDef:this.get("encode"),dimsDef:this.get("dimensions")}),s=new A.a.List(n,this);s.initData(r.regions);var d={};s.each(function(o){var c=s.getName(o),f=s.getItemModel(o);d[c]=f}),this._regionModelMap=d,this._data=s},getData:function(){return this._data},getRegionModel:function(r){var n=this.getData().getName(r);return this._regionModelMap[n]||new A.a.Model(null,this)},getRegionPolygonCoords:function(r){var n=this.getData().getName(r),s=this.coordinateSystem.getRegion(n);return s?s.geometries:[]},getFormattedLabel:function(r,n){var s=this._data.getName(r),d=this.getRegionModel(s),o=d.get(n==="normal"?["label","formatter"]:["emphasis","label","formatter"]);o==null&&(o=d.get(["label","formatter"]));var c={name:s};if(typeof o=="function")return c.status=n,o(c);if(typeof o=="string"){var f=c.seriesName;return o.replace("{a}",f!=null?f:"")}else return s},defaultOption:{regions:[]}});A.a.util.merge(u.prototype,a.a),A.a.util.merge(u.prototype,_.a),A.a.util.merge(u.prototype,g.a),A.a.util.merge(u.prototype,x.a),A.a.util.merge(u.prototype,m.a);var h=u},function(G,w,E){"use strict";var O=E(59),A=E(0),_=E.n(A),g=E(2),x=E(39),m=E(34),a=_.a.extendComponentView({type:"geo3D",__ecgl__:!0,init:function(u,h){this._geo3DBuilder=new O.a(h),this.groupGL=new g.a.Node,this._lightRoot=new g.a.Node,this._sceneHelper=new m.a(this._lightRoot),this._sceneHelper.initLight(this._lightRoot),this._control=new x.a({zr:h.getZr()}),this._control.init()},render:function(u,h,r){this.groupGL.add(this._geo3DBuilder.rootNode);var n=u.coordinateSystem;if(!(!n||!n.viewGL)){n.viewGL.add(this._lightRoot),u.get("show")?n.viewGL.add(this.groupGL):n.viewGL.remove(this.groupGL);var s=this._control;s.setViewGL(n.viewGL);var d=u.getModel("viewControl");s.setFromViewControlModel(d,0),this._sceneHelper.setScene(n.viewGL.scene),this._sceneHelper.updateLight(u),n.viewGL.setPostEffect(u.getModel("postEffect"),r),n.viewGL.setTemporalSuperSampling(u.getModel("temporalSuperSampling")),this._geo3DBuilder.update(u,h,r,0,u.getData().count());var o=n.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse(function(c){c.material&&c.material[o]("fragment","SRGB_DECODE")}),s.off("update"),s.on("update",function(){r.dispatchAction({type:"geo3DChangeCamera",alpha:s.getAlpha(),beta:s.getBeta(),distance:s.getDistance(),center:s.getCenter(),from:this.uid,geo3DId:u.id})})}},afterRender:function(u,h,r,n){var s=n.renderer;this._sceneHelper.updateAmbientCubemap(s,u,r),this._sceneHelper.updateSkybox(s,u,r)},dispose:function(){this._control.dispose()}})},function(G,w,E){"use strict";w.a=O;function O(P,L,R){R=R||2;var B=L&&L.length,U=B?L[0]*R:P.length,H=A(P,0,U,R,!0),K=[];if(!H)return K;var V,k,$,ae,le,he,ge;if(B&&(H=h(P,L,H,R)),P.length>80*R){V=$=P[0],k=ae=P[1];for(var me=R;me$&&($=le),he>ae&&(ae=he);ge=Math.max($-V,ae-k)}return g(H,K,R,V,k,ge),K}function A(P,L,R,B,U){var H,K;if(U===M(P,L,R,B)>0)for(H=L;H=L;H-=B)K=T(H,P[H],P[H+1],K);return K&&l(K,K.next)&&(D(K),K=K.next),K}function _(P,L){if(!P)return P;L||(L=P);var R=P,B;do if(B=!1,!R.steiner&&(l(R,R.next)||i(R.prev,R,R.next)===0)){if(D(R),R=L=R.prev,R===R.next)return null;B=!0}else R=R.next;while(B||R!==L);return L}function g(P,L,R,B,U,H,K){if(P){!K&&H&&d(P,B,U,H);for(var V=P,k,$;P.prev!==P.next;){if(k=P.prev,$=P.next,H?m(P,B,U,H):x(P)){L.push(k.i/R),L.push(P.i/R),L.push($.i/R),D(P),P=$.next,V=$.next;continue}if(P=$,P===V){K?K===1?(P=a(P,L,R),g(P,L,R,B,U,H,2)):K===2&&u(P,L,R,B,U,H):g(_(P),L,R,B,U,H,1);break}}}}function x(P){var L=P.prev,R=P,B=P.next;if(i(L,R,B)>=0)return!1;for(var U=P.next.next;U!==P.prev;){if(e(L.x,L.y,R.x,R.y,B.x,B.y,U.x,U.y)&&i(U.prev,U,U.next)>=0)return!1;U=U.next}return!0}function m(P,L,R,B){var U=P.prev,H=P,K=P.next;if(i(U,H,K)>=0)return!1;for(var V=U.xH.x?U.x>K.x?U.x:K.x:H.x>K.x?H.x:K.x,ae=U.y>H.y?U.y>K.y?U.y:K.y:H.y>K.y?H.y:K.y,le=c(V,k,L,R,B),he=c($,ae,L,R,B),ge=P.nextZ;ge&&ge.z<=he;){if(ge!==P.prev&&ge!==P.next&&e(U.x,U.y,H.x,H.y,K.x,K.y,ge.x,ge.y)&&i(ge.prev,ge,ge.next)>=0)return!1;ge=ge.nextZ}for(ge=P.prevZ;ge&&ge.z>=le;){if(ge!==P.prev&&ge!==P.next&&e(U.x,U.y,H.x,H.y,K.x,K.y,ge.x,ge.y)&&i(ge.prev,ge,ge.next)>=0)return!1;ge=ge.prevZ}return!0}function a(P,L,R){var B=P;do{var U=B.prev,H=B.next.next;!l(U,H)&&v(U,B,B.next,H)&&p(U,H)&&p(H,U)&&(L.push(U.i/R),L.push(B.i/R),L.push(H.i/R),D(B),D(B.next),B=P=H),B=B.next}while(B!==P);return B}function u(P,L,R,B,U,H){var K=P;do{for(var V=K.next.next;V!==K.prev;){if(K.i!==V.i&&t(K,V)){var k=S(K,V);K=_(K,K.next),k=_(k,k.next),g(K,L,R,B,U,H),g(k,L,R,B,U,H);return}V=V.next}K=K.next}while(K!==P)}function h(P,L,R,B){var U=[],H,K,V,k,$;for(H=0,K=L.length;H=R.next.y&&R.next.y!==R.y){var V=R.x+(U-R.y)*(R.next.x-R.x)/(R.next.y-R.y);if(V<=B&&V>H){if(H=V,V===B){if(U===R.y)return R;if(U===R.next.y)return R.next}K=R.x=R.x&&R.x>=$&&B!==R.x&&e(UK.x)&&p(R,P)&&(K=R,le=he)),R=R.next;return K}function d(P,L,R,B){var U=P;do U.z===null&&(U.z=c(U.x,U.y,L,R,B)),U.prevZ=U.prev,U.nextZ=U.next,U=U.next;while(U!==P);U.prevZ.nextZ=null,U.prevZ=null,o(U)}function o(P){var L,R,B,U,H,K,V,k,$=1;do{for(R=P,P=null,H=null,K=0;R;){for(K++,B=R,V=0,L=0;L<$&&(V++,B=B.nextZ,!!B);L++);for(k=$;V>0||k>0&&B;)V!==0&&(k===0||!B||R.z<=B.z)?(U=R,R=R.nextZ,V--):(U=B,B=B.nextZ,k--),H?H.nextZ=U:P=U,U.prevZ=H,H=U;R=B}H.nextZ=null,$*=2}while(K>1);return P}function c(P,L,R,B,U){return P=32767*(P-R)/U,L=32767*(L-B)/U,P=(P|P<<8)&16711935,P=(P|P<<4)&252645135,P=(P|P<<2)&858993459,P=(P|P<<1)&1431655765,L=(L|L<<8)&16711935,L=(L|L<<4)&252645135,L=(L|L<<2)&858993459,L=(L|L<<1)&1431655765,P|L<<1}function f(P){var L=P,R=P;do L.x=0&&(P-K)*(B-V)-(R-K)*(L-V)>=0&&(R-K)*(H-V)-(U-K)*(B-V)>=0}function t(P,L){return P.next.i!==L.i&&P.prev.i!==L.i&&!y(P,L)&&p(P,L)&&p(L,P)&&C(P,L)}function i(P,L,R){return(L.y-P.y)*(R.x-L.x)-(L.x-P.x)*(R.y-L.y)}function l(P,L){return P.x===L.x&&P.y===L.y}function v(P,L,R,B){return l(P,L)&&l(R,B)||l(P,B)&&l(R,L)?!0:i(P,L,R)>0!=i(P,L,B)>0&&i(R,B,P)>0!=i(R,B,L)>0}function y(P,L){var R=P;do{if(R.i!==P.i&&R.next.i!==P.i&&R.i!==L.i&&R.next.i!==L.i&&v(R,R.next,P,L))return!0;R=R.next}while(R!==P);return!1}function p(P,L){return i(P.prev,P,P.next)<0?i(P,L,P.next)>=0&&i(P,P.prev,L)>=0:i(P,L,P.prev)<0||i(P,P.next,L)<0}function C(P,L){var R=P,B=!1,U=(P.x+L.x)/2,H=(P.y+L.y)/2;do R.y>H!=R.next.y>H&&R.next.y!==R.y&&U<(R.next.x-R.x)*(H-R.y)/(R.next.y-R.y)+R.x&&(B=!B),R=R.next;while(R!==P);return B}function S(P,L){var R=new I(P.i,P.x,P.y),B=new I(L.i,L.x,L.y),U=P.next,H=L.prev;return P.next=L,L.prev=P,R.next=U,U.prev=R,B.next=R,R.prev=B,H.next=B,B.prev=H,B}function T(P,L,R,B){var U=new I(P,L,R);return B?(U.next=B.next,U.prev=B,B.next.prev=U,B.next=U):(U.prev=U,U.next=U),U}function D(P){P.next.prev=P.prev,P.prev.next=P.next,P.prevZ&&(P.prevZ.nextZ=P.nextZ),P.nextZ&&(P.nextZ.prevZ=P.prevZ)}function I(P,L,R){this.i=P,this.x=L,this.y=R,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}O.deviation=function(P,L,R,B){var U=L&&L.length,H=U?L[0]*R:P.length,K=Math.abs(M(P,0,H,R));if(U)for(var V=0,k=L.length;V0},_displacementChanged:!0,_displacementScale:0,updateDisplacementHash:function(){var r=this.getDisplacementTexture(),n=this.getDisplacemenScale();this._displacementChanged=this._displacementTexture!==r||this._displacementScale!==n,this._displacementTexture=r,this._displacementScale=n},isDisplacementChanged:function(){return this._displacementChanged}});A.a.util.merge(u.prototype,_.a),A.a.util.merge(u.prototype,g.a),A.a.util.merge(u.prototype,x.a),A.a.util.merge(u.prototype,m.a);var h=u},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(2),g=E(39),x=E(34),m=E(192),a=E(3),u=A.a.extendComponentView({type:"globe",__ecgl__:!0,_displacementScale:0,init:function(h,r){this.groupGL=new _.a.Node,this._sphereGeometry=new _.a.SphereGeometry({widthSegments:200,heightSegments:100,dynamic:!0}),this._overlayGeometry=new _.a.SphereGeometry({widthSegments:80,heightSegments:40}),this._planeGeometry=new _.a.PlaneGeometry,this._earthMesh=new _.a.Mesh({renderNormal:!0}),this._lightRoot=new _.a.Node,this._sceneHelper=new x.a,this._sceneHelper.initLight(this._lightRoot),this.groupGL.add(this._earthMesh),this._control=new g.a({zr:r.getZr()}),this._control.init(),this._layerMeshes={}},render:function(h,r,n){var s=h.coordinateSystem,d=h.get("shading");s.viewGL.add(this._lightRoot),h.get("show")?s.viewGL.add(this.groupGL):s.viewGL.remove(this.groupGL),this._sceneHelper.setScene(s.viewGL.scene),s.viewGL.setPostEffect(h.getModel("postEffect"),n),s.viewGL.setTemporalSuperSampling(h.getModel("temporalSuperSampling"));var o=this._earthMesh;o.geometry=this._sphereGeometry;var c="ecgl."+d;(!o.material||o.material.shader.name!==c)&&(o.material=_.a.createMaterial(c)),_.a.setMaterialFromModel(d,o.material,h,n),["roughnessMap","metalnessMap","detailMap","normalMap"].forEach(function(i){var l=o.material.get(i);l&&(l.flipY=!1)}),o.material.set("color",_.a.parseColor(h.get("baseColor")));var f=s.radius*.99;o.scale.set(f,f,f);var e=o.material.setTextureImage("diffuseMap",h.get("baseTexture"),n,{flipY:!1,anisotropic:8});e&&e.surface&&e.surface.attachToMesh(o);var t=o.material.setTextureImage("bumpMap",h.get("heightTexture"),n,{flipY:!1,anisotropic:8});t&&t.surface&&t.surface.attachToMesh(o),o.material[h.get("postEffect.enable")?"define":"undefine"]("fragment","SRGB_DECODE"),this._updateLight(h,n),this._displaceVertices(h,n),this._updateViewControl(h,n),this._updateLayers(h,n)},afterRender:function(h,r,n,s){var d=s.renderer;this._sceneHelper.updateAmbientCubemap(d,h,n),this._sceneHelper.updateSkybox(d,h,n)},_updateLayers:function(h,r){var n=h.coordinateSystem,s=h.get("layers"),d=n.radius,o=[],c=[],f=[],e=[];A.a.util.each(s,function(y){var p=new A.a.Model(y),C=p.get("type"),S=_.a.loadTexture(p.get("texture"),r,{flipY:!1,anisotropic:8});if(S.surface&&S.surface.attachToMesh(this._earthMesh),C==="blend"){var T=p.get("blendTo"),D=a.a.firstNotNull(p.get("intensity"),1);T==="emission"?(f.push(S),e.push(D)):(o.push(S),c.push(D))}else{var I=p.get("id"),M=this._layerMeshes[I];M||(M=this._layerMeshes[I]=new _.a.Mesh({geometry:this._overlayGeometry,castShadow:!1,ignorePicking:!0}));var P=p.get("shading");P==="lambert"?(M.material=M.__lambertMaterial||new _.a.Material({autoUpdateTextureStatus:!1,shader:_.a.createShader("ecgl.lambert"),transparent:!0,depthMask:!1}),M.__lambertMaterial=M.material):(M.material=M.__colorMaterial||new _.a.Material({autoUpdateTextureStatus:!1,shader:_.a.createShader("ecgl.color"),transparent:!0,depthMask:!1}),M.__colorMaterial=M.material),M.material.enableTexture("diffuseMap");var L=p.get("distance"),R=d+(L==null?n.radius/100:L);M.scale.set(R,R,R),d=R;var B=this._blankTexture||(this._blankTexture=_.a.createBlankTexture("rgba(255, 255, 255, 0)"));M.material.set("diffuseMap",B),_.a.loadTexture(p.get("texture"),r,{flipY:!1,anisotropic:8},function(U){U.surface&&U.surface.attachToMesh(M),M.material.set("diffuseMap",U),r.getZr().refresh()}),p.get("show")?this.groupGL.add(M):this.groupGL.remove(M)}},this);var t=this._earthMesh.material;t.define("fragment","LAYER_DIFFUSEMAP_COUNT",o.length),t.define("fragment","LAYER_EMISSIVEMAP_COUNT",f.length),t.set("layerDiffuseMap",o),t.set("layerDiffuseIntensity",c),t.set("layerEmissiveMap",f),t.set("layerEmissionIntensity",e);var i=h.getModel("debug.wireframe");if(i.get("show")){t.define("both","WIREFRAME_TRIANGLE");var l=_.a.parseColor(i.get("lineStyle.color")||"rgba(0,0,0,0.5)"),v=a.a.firstNotNull(i.get("lineStyle.width"),1);t.set("wireframeLineWidth",v),t.set("wireframeLineColor",l)}else t.undefine("both","WIREFRAME_TRIANGLE")},_updateViewControl:function(h,r){var n=h.coordinateSystem,s=h.getModel("viewControl"),d=n.viewGL.camera,o=this;function c(){return{type:"globeChangeCamera",alpha:f.getAlpha(),beta:f.getBeta(),distance:f.getDistance()-n.radius,center:f.getCenter(),from:o.uid,globeId:h.id}}var f=this._control;f.setViewGL(n.viewGL);var e=s.get("targetCoord"),t,i;e!=null&&(i=e[0]+90,t=e[1]),f.setFromViewControlModel(s,{baseDistance:n.radius,alpha:t,beta:i}),f.off("update"),f.on("update",function(){r.dispatchAction(c())})},_displaceVertices:function(h,r){var n=h.get("displacementQuality"),s=h.get("debug.wireframe.show"),d=h.coordinateSystem;if(!(!h.isDisplacementChanged()&&n===this._displacementQuality&&s===this._showDebugWireframe)){this._displacementQuality=n,this._showDebugWireframe=s;var o=this._sphereGeometry,c={low:100,medium:200,high:400,ultra:800}[n]||200,f=c/2;(o.widthSegments!==c||s)&&(o.widthSegments=c,o.heightSegments=f,o.build()),this._doDisplaceVertices(o,d),s&&o.generateBarycentric()}},_doDisplaceVertices:function(h,r){var n=h.attributes.position.value,s=h.attributes.texcoord0.value,d=h.__originalPosition;(!d||d.length!==n.length)&&(d=new Float32Array(n.length),d.set(n),h.__originalPosition=d);for(var o=r.displacementWidth,c=r.displacementHeight,f=r.displacementData,e=0;e0&&r>0||h<0&&r<0)}function a(u,h){var r=u.getData(),n=u.get("barSize");if(n==null){var s=h.size,d,o,c=h.getAxis("x"),f=h.getAxis("y");c.type==="category"?d=c.getBandWidth()*.7:d=Math.round(s[0]/Math.sqrt(r.count()))*.6,f.type==="category"?o=f.getBandWidth()*.7:o=Math.round(s[1]/Math.sqrt(r.count()))*.6,n=[d,o]}else A.a.util.isArray(n)||(n=[n,n]);var e=h.getAxis("z").scale.getExtent(),t=m(e),i=["x","y","z"].map(function(l){return u.coordDimToDataDim(l)[0]});r.each(i,function(l,v,y,p){var C=r.get(i[2],p,!0),S=r.stackedOn?C-y:t?0:e[0],T=h.dataToPoint([l,v,S]),D=h.dataToPoint([l,v,C]),I=x.dist(T,D),M=[0,D[1]0&&(I++,y[3]<.99&&(S=!0))}}),t.geometry.setBarCount(I);var T=o.getLayout("orient"),D=this._barIndexOfData=new Int32Array(o.count()),I=0;o.each(function(P){if(!o.hasValue(P)){D[P]=-1;return}var L=o.getItemLayout(P),R=L[0],B=L[1],U=L[2],H=P*4;y[0]=p[H++],y[1]=p[H++],y[2]=p[H++],y[3]=p[H++],y[3]>0&&(e._barMesh.geometry.addBar(R,B,T,U,y,P),D[P]=I++)}),t.geometry.dirty(),t.geometry.updateBoundingBox();var M=t.material;M.transparent=S,M.depthMask=!S,t.geometry.sortTriangles=S,this._initHandler(s,d)},_initHandler:function(s,d){var o=s.getData(),c=this._barMesh,f=s.coordinateSystem.type==="cartesian3D";c.seriesIndex=s.seriesIndex;var e=-1;c.off("mousemove"),c.off("mouseout"),c.on("mousemove",function(t){var i=c.geometry.getDataIndexOfVertex(t.triangle[0]);i!==e&&(this._downplay(e),this._highlight(i),this._labelsBuilder.updateLabels([i]),f&&d.dispatchAction({type:"grid3DShowAxisPointer",value:[o.get("x",i),o.get("y",i),o.get("z",i,!0)]})),e=i,c.dataIndex=i},this),c.on("mouseout",function(t){this._downplay(e),this._labelsBuilder.updateLabels(),e=-1,c.dataIndex=-1,f&&d.dispatchAction({type:"grid3DHideAxisPointer"})},this)},_highlight:function(s){var d=this._data;if(d){var o=this._barIndexOfData[s];if(!(o<0)){var c=d.getItemModel(s),f=c.getModel("emphasis.itemStyle"),e=f.get("color"),t=f.get("opacity");if(e==null){var i=d.getItemVisual(s,"color");e=A.a.color.lift(i,-.4)}t==null&&(t=d.getItemVisual(s,"opacity"));var l=_.a.parseColor(e);l[3]*=t,this._barMesh.geometry.setColor(o,l),this._api.getZr().refresh()}}},_downplay:function(s){var d=this._data;if(d){var o=this._barIndexOfData[s];if(!(o<0)){var c=d.getItemVisual(s,"color"),f=d.getItemVisual(s,"opacity"),e=_.a.parseColor(c);e[3]*=f,this._barMesh.geometry.setColor(o,e),this._api.getZr().refresh()}}},highlight:function(s,d,o,c){this._toggleStatus("highlight",s,d,o,c)},downplay:function(s,d,o,c){this._toggleStatus("downplay",s,d,o,c)},_toggleStatus:function(s,d,o,c,f){var e=d.getData(),t=g.a.queryDataIndex(e,f),i=this;t!=null?A.a.util.each(x.a.normalizeToArray(t),function(l){s==="highlight"?this._highlight(l):this._downplay(l)},this):e.each(function(l){s==="highlight"?i._highlight(l):i._downplay(l)})},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(33),g=E(60),x=E(13),m=E(1),a=E.n(m),u=a.a.vec3,h=a.a.mat3,r=x.a.extend(function(){return{attributes:{position:new x.a.Attribute("position","float",3,"POSITION"),normal:new x.a.Attribute("normal","float",3,"NORMAL"),color:new x.a.Attribute("color","float",4,"COLOR"),prevPosition:new x.a.Attribute("prevPosition","float",3),prevNormal:new x.a.Attribute("prevNormal","float",3)},dynamic:!0,enableNormal:!1,bevelSize:1,bevelSegments:0,_dataIndices:null,_vertexOffset:0,_triangleOffset:0}},{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0},setBarCount:function(n){var s=this.enableNormal,d=this.getBarVertexCount()*n,o=this.getBarTriangleCount()*n;this.vertexCount!==d&&(this.attributes.position.init(d),s?this.attributes.normal.init(d):this.attributes.normal.value=null,this.attributes.color.init(d)),this.triangleCount!==o&&(this.indices=d>65535?new Uint32Array(o*3):new Uint16Array(o*3),this._dataIndices=new Uint32Array(d))},getBarVertexCount:function(){var n=this.bevelSize>0?this.bevelSegments:0;return n>0?this._getBevelBarVertexCount(n):this.enableNormal?24:8},getBarTriangleCount:function(){var n=this.bevelSize>0?this.bevelSegments:0;return n>0?this._getBevelBarTriangleCount(n):12},_getBevelBarVertexCount:function(n){return(n+1)*4*(n+1)*2},_getBevelBarTriangleCount:function(n){var s=n*4+3,d=n*2+1;return(s+1)*d*2+4},setColor:function(n,s){for(var d=this.getBarVertexCount(),o=d*n,c=d*(n+1),f=o;f0&&this.bevelSegments>0)this._addBevelBar(P,L,R,B,this.bevelSize,this.bevelSegments,U);else{u.copy(c,L),u.normalize(c,c),u.cross(f,R,c),u.normalize(f,f),u.cross(o,c,f),u.normalize(f,f),u.negate(e,o),u.negate(t,c),u.negate(i,f),s(l[0],P,o,B[0]/2),s(l[0],l[0],f,B[2]/2),s(l[1],P,o,B[0]/2),s(l[1],l[1],i,B[2]/2),s(l[2],P,e,B[0]/2),s(l[2],l[2],i,B[2]/2),s(l[3],P,e,B[0]/2),s(l[3],l[3],f,B[2]/2),s(d,P,c,B[1]),s(l[4],d,o,B[0]/2),s(l[4],l[4],f,B[2]/2),s(l[5],d,o,B[0]/2),s(l[5],l[5],i,B[2]/2),s(l[6],d,e,B[0]/2),s(l[6],l[6],i,B[2]/2),s(l[7],d,e,B[0]/2),s(l[7],l[7],f,B[2]/2);var V=this.attributes;if(this.enableNormal){v[0]=o,v[1]=e,v[2]=c,v[3]=t,v[4]=f,v[5]=i;for(var k=this._vertexOffset,$=0;$=0){var K=C*3,V=new a.a(this._points[K],this._points[K+1],this._points[K+2]);l.push({dataIndex:C,point:V,pointWorld:V.clone(),target:this._line3DMesh,distance:this._camera.getWorldPosition().dist(V)})}},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(G,w){function E(O,A,_,g,x,m,a){if(x===0)return!1;var u=x,h=0,r=O;if(a>A+u&&a>g+u||aO+u&&m>_+u||md?o.position[1]+=(c-d)/2:o.position[0]+=(c-s)/2;var f=o.getBoundingRect();return o.position[0]-=f.x,o.position[1]-=f.y,o.setStyle(h),o.update(),o.__size=c,o}function x(a,u,h){var r=u.width,n=u.height,s=a.canvas.width,d=a.canvas.height,o=r/s,c=n/d;function f(C){return C<128?1:-1}function e(C,S){var T=1/0;C=Math.floor(C*o),S=Math.floor(S*c);for(var D=S*r+C,I=u.data[D*4],M=f(I),P=Math.max(S-h,0);P=0;l--){var v;this.geometry.indices?v=this.geometry.indices[l]:v=l;var y=f[v*2],p=f[v*2+1],C=this.geometry.attributes.size.get(v)/this.sizeScale,S=C/2;if(r>y-S*t&&rp-S*i&&n=2e4},doSortVertices:function(x,m){var a=this.indices,u=g.create();if(!a){a=this.indices=this.vertexCount>65535?new Uint32Array(this.vertexCount):new Uint16Array(this.vertexCount);for(var h=0;h.05);else for(var h=0;h<3;h++)this._progressiveQuickSort(m*3+h);this.dirtyIndices()},_simpleSort:function(x){var m=this._zList,a=this.indices;function u(h,r){return m[r]-m[h]}x?Array.prototype.sort.call(a,u):O.a.sort(a,u,0,a.length-1)},_progressiveQuickSort:function(x){var m=this._zList,a=this.indices;this._quickSort=this._quickSort||new O.a,this._quickSort.step(a,function(u,h){return m[h]-m[u]},x)}}},function(G,w,E){"use strict";w.a=`@export ecgl.sdfSprite.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform float elapsedTime : 0; attribute vec3 position : POSITION; #ifdef VERTEX_SIZE attribute float size; #else uniform float u_Size; #endif #ifdef VERTEX_COLOR attribute vec4 a_FillColor: COLOR; varying vec4 v_Color; #endif #ifdef VERTEX_ANIMATION attribute vec3 prevPosition; attribute float prevSize; uniform float percent : 1.0; #endif #ifdef POSITIONTEXTURE_ENABLED uniform sampler2D positionTexture; #endif varying float v_Size; void main() { #ifdef POSITIONTEXTURE_ENABLED gl_Position = worldViewProjection * vec4(texture2D(positionTexture, position.xy).xy, -10.0, 1.0); #else #ifdef VERTEX_ANIMATION vec3 pos = mix(prevPosition, position, percent); #else vec3 pos = position; #endif gl_Position = worldViewProjection * vec4(pos, 1.0); #endif #ifdef VERTEX_SIZE #ifdef VERTEX_ANIMATION v_Size = mix(prevSize, size, percent); #else v_Size = size; #endif #else v_Size = u_Size; #endif #ifdef VERTEX_COLOR v_Color = a_FillColor; #endif gl_PointSize = v_Size; } @end @export ecgl.sdfSprite.fragment uniform vec4 color: [1, 1, 1, 1]; uniform vec4 strokeColor: [1, 1, 1, 1]; uniform float smoothing: 0.07; uniform float lineWidth: 0.0; #ifdef VERTEX_COLOR varying vec4 v_Color; #endif varying float v_Size; uniform sampler2D sprite; @import clay.util.srgb void main() { gl_FragColor = color; vec4 _strokeColor = strokeColor; #ifdef VERTEX_COLOR gl_FragColor *= v_Color; #endif #ifdef SPRITE_ENABLED float d = texture2D(sprite, gl_PointCoord).r; gl_FragColor.a *= smoothstep(0.5 - smoothing, 0.5 + smoothing, d); if (lineWidth > 0.0) { float sLineWidth = lineWidth / 2.0; float outlineMaxValue0 = 0.5 + sLineWidth; float outlineMaxValue1 = 0.5 + sLineWidth + smoothing; float outlineMinValue0 = 0.5 - sLineWidth - smoothing; float outlineMinValue1 = 0.5 - sLineWidth; if (d <= outlineMaxValue1 && d >= outlineMinValue0) { float a = _strokeColor.a; if (d <= outlineMinValue1) { a = a * smoothstep(outlineMinValue0, outlineMinValue1, d); } else { a = a * smoothstep(outlineMaxValue1, outlineMaxValue0, d); } gl_FragColor.rgb = mix(gl_FragColor.rgb * gl_FragColor.a, _strokeColor.rgb, a); gl_FragColor.a = gl_FragColor.a * (1.0 - a) + a; } } #endif #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(gl_FragColor); #endif } @end`},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(221),g=E(222),x=E(225),m=E(16);A.a.registerVisual(Object(m.a)("lines3D")),A.a.registerAction({type:"lines3DPauseEffect",event:"lines3deffectpaused",update:"series.lines3D:pauseEffect"},function(){}),A.a.registerAction({type:"lines3DResumeEffect",event:"lines3deffectresumed",update:"series.lines3D:resumeEffect"},function(){}),A.a.registerAction({type:"lines3DToggleEffect",event:"lines3deffectchanged",update:"series.lines3D:toggleEffect"},function(){})},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(1),g=E.n(_),x=g.a.vec3,m=g.a.vec2,a=x.normalize,u=x.cross,h=x.sub,r=x.add,n=x.create,s=n(),d=n(),o=n(),c=n(),f=[],e=[];function t(C,S){m.copy(f,C[0]),m.copy(e,C[1]);var T=[],D=T[0]=n(),I=T[1]=n(),M=T[2]=n(),P=T[3]=n();S.dataToPoint(f,D),S.dataToPoint(e,P),a(s,D),h(d,P,D),a(d,d),u(o,d,s),a(o,o),u(d,s,o),r(I,s,d),a(I,I),a(s,P),h(d,D,P),a(d,d),u(o,d,s),a(o,o),u(d,s,o),r(M,s,d),a(M,M),r(c,D,P),a(c,c);var L=x.dot(D,c),R=x.dot(c,I),B=(Math.max(x.len(D),x.len(P))-L)/R*2;return x.scaleAndAdd(I,D,I,B),x.scaleAndAdd(M,P,M,B),T}function i(C,S,T){var D=[],I=D[0]=x.create(),M=D[1]=x.create(),P=D[2]=x.create(),L=D[3]=x.create();S.dataToPoint(C[0],I),S.dataToPoint(C[1],L);var R=x.dist(I,L);return x.lerp(M,I,L,.3),x.lerp(P,I,L,.3),x.scaleAndAdd(M,M,T,Math.min(R*.1,10)),x.scaleAndAdd(P,P,T,Math.min(R*.1,10)),D}function l(C,S){for(var T=new Float32Array(C.length*3),D=0,I=[],M=0;M0&&I[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(I)+". Lines must have 2d coords array in data item.");S.push(I)}),{coordsList:S}}function y(C,S){var T=C.getData(),D=C.get("polyline");T.setLayout("lineType",D?"polyline":"cubicBezier");var I=v(T);T.each(function(M){var P=I.coordsList[M],L=D?l:t;T.setItemLayout(M,L(P,S))})}function p(C,S,T){var D=C.getData(),I=C.get("polyline"),M=v(D);D.setLayout("lineType",I?"polyline":"cubicBezier"),D.each(function(P){var L=M.coordsList[P],R=I?l(L,S):i(L,S,T);D.setItemLayout(P,R)})}A.a.registerLayout(function(C,S){C.eachSeriesByType("lines3D",function(T){var D=T.coordinateSystem;D.type==="globe"?y(T,D):D.type==="geo3D"?p(T,D,[0,1,0]):D.type==="mapbox3D"&&p(T,D,[0,0,1])})})},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(2),g=E(22),x=E(223),m=E(40);_.a.Shader.import(m.a);function a(h){return h.radius!=null?h.radius:h.size!=null?Math.max(h.size[0],h.size[1],h.size[2]):100}var u=A.a.extendChartView({type:"lines3D",__ecgl__:!0,init:function(h,r){this.groupGL=new _.a.Node,this._meshLinesMaterial=new _.a.Material({shader:_.a.createShader("ecgl.meshLines3D"),transparent:!0,depthMask:!1}),this._linesMesh=new _.a.Mesh({geometry:new g.a,material:this._meshLinesMaterial,$ignorePicking:!0}),this._trailMesh=new x.a},render:function(h,r,n){this.groupGL.add(this._linesMesh);var s=h.coordinateSystem,d=h.getData();if(s&&s.viewGL){var o=s.viewGL;o.add(this.groupGL),this._updateLines(h,r,n);var c=s.viewGL.isLinearSpace()?"define":"undefine";this._linesMesh.material[c]("fragment","SRGB_DECODE"),this._trailMesh.material[c]("fragment","SRGB_DECODE")}var f=this._trailMesh;if(f.stopAnimation(),h.get("effect.show")){this.groupGL.add(f),f.updateData(d,n,this._linesMesh.geometry),f.__time=f.__time||0;var e=3600*1e3;this._curveEffectsAnimator=f.animate("",{loop:!0}).when(e,{__time:e}).during(function(){f.setAnimationTime(f.__time)}).start()}else this.groupGL.remove(f),this._curveEffectsAnimator=null;this._linesMesh.material.blend=this._trailMesh.material.blend=h.get("blendMode")==="lighter"?_.a.additiveBlend:null},pauseEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.pause()},resumeEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.resume()},toggleEffect:function(){var h=this._curveEffectsAnimator;h&&(h.isPaused()?h.resume():h.pause())},_updateLines:function(h,r,n){var s=h.getData(),d=h.coordinateSystem,o=this._linesMesh.geometry,c=h.get("polyline");o.expandLine=!0;var f=a(d);o.segmentScale=f/20;var e="lineStyle.width".split("."),t=n.getDevicePixelRatio(),i=0;s.each(function(p){var C=s.getItemModel(p),S=C.get(e);S==null&&(S=1),s.setItemVisual(p,"lineWidth",S),i=Math.max(S,i)}),o.useNativeLine=!1;var l=0,v=0;s.each(function(p){var C=s.getItemLayout(p);c?(l+=o.getPolylineVertexCount(C),v+=o.getPolylineTriangleCount(C)):(l+=o.getCubicCurveVertexCount(C[0],C[1],C[2],C[3]),v+=o.getCubicCurveTriangleCount(C[0],C[1],C[2],C[3]))}),o.setVertexCount(l),o.setTriangleCount(v),o.resetOffset();var y=[];s.each(function(p){var C=s.getItemLayout(p),S=s.getItemVisual(p,"color"),T=s.getItemVisual(p,"opacity"),D=s.getItemVisual(p,"lineWidth")*t;T==null&&(T=1),y=_.a.parseColor(S,y),y[3]*=T,c?o.addPolyline(C,y,D):o.addCubicCurve(C[0],C[1],C[2],C[3],y,D)}),o.dirty()},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}})},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(2),g=E(1),x=E.n(g),m=E(22),a=E(224),u=x.a.vec3;function h(r){return r>0?1:-1}_.a.Shader.import(a.a),w.a=_.a.Mesh.extend(function(){var r=new _.a.Material({shader:new _.a.Shader(_.a.Shader.source("ecgl.trail2.vertex"),_.a.Shader.source("ecgl.trail2.fragment")),transparent:!0,depthMask:!1}),n=new m.a({dynamic:!0});return n.createAttribute("dist","float",1),n.createAttribute("distAll","float",1),n.createAttribute("start","float",1),{geometry:n,material:r,culling:!1,$ignorePicking:!0}},{updateData:function(r,n,s){var d=r.hostModel,o=this.geometry,c=d.getModel("effect"),f=c.get("trailWidth")*n.getDevicePixelRatio(),e=c.get("trailLength"),t=d.get("effect.constantSpeed"),i=d.get("effect.period")*1e3,l=t!=null;this.getScene()||console.error("TrailMesh must been add to scene before updateData"),l?this.material.set("speed",t/1e3):this.material.set("period",i),this.material[l?"define":"undefine"]("vertex","CONSTANT_SPEED");var v=d.get("polyline");o.trailLength=e,this.material.set("trailLength",e),o.resetOffset(),["position","positionPrev","positionNext"].forEach(function(B){o.attributes[B].value=s.attributes[B].value});var y=["dist","distAll","start","offset","color"];y.forEach(function(B){o.attributes[B].init(o.vertexCount)}),o.indices=s.indices;var p=[],C=c.get("trailColor"),S=c.get("trailOpacity"),T=C!=null,D=S!=null;this.updateWorldTransform();var I=this.worldTransform.x.len(),M=this.worldTransform.y.len(),P=this.worldTransform.z.len(),L=0,R=0;r.each(function(B){var U=r.getItemLayout(B),H=D?S:r.getItemVisual(B,"opacity"),K=r.getItemVisual(B,"color");H==null&&(H=1),p=_.a.parseColor(T?C:K,p),p[3]*=H;for(var V=v?s.getPolylineVertexCount(U):s.getCubicCurveVertexCount(U[0],U[1],U[2],U[3]),k=0,$=[],ae=[],le=L;leL&&(k+=u.dist($,ae)),o.attributes.dist.set(le,k),u.copy(ae,$);R=Math.max(R,k);for(var he=Math.random()*(l?k:i),le=L;le 1.0 || v_Percent < 0.0) { discard; } float fade = v_Percent; #ifdef SRGB_DECODE gl_FragColor = sRGBToLinear(color * v_Color); #else gl_FragColor = color * v_Color; #endif @import ecgl.common.wireframe.fragmentMain if (v_Percent > (1.0 - v_SpotPercent)) { gl_FragColor.rgb *= spotIntensity; } gl_FragColor.a *= fade; } @end`},function(G,w,E){"use strict";var O=E(0),A=E.n(O);A.a.extendSeriesModel({type:"series.lines3D",dependencies:["globe"],visualColorAccessPath:"lineStyle.color",getInitialData:function(_,g){var x=new A.a.List(["value"],this);return x.hasItemOption=!1,x.initData(_.data,[],function(m,a,u,h){if(m instanceof Array)return NaN;x.hasItemOption=!0;var r=m.value;if(r!=null)return r instanceof Array?r[h]:r}),x},defaultOption:{coordinateSystem:"globe",globeIndex:0,geo3DIndex:0,zlevel:-10,polyline:!1,effect:{show:!1,period:4,trailWidth:4,trailLength:.2,spotIntensity:6},silent:!0,blendMode:"source-over",lineStyle:{width:1,opacity:.5}}})},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(227),g=E(228),x=E(16);A.a.registerVisual(Object(x.a)("polygons3D"))},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(26);function g(a,u){for(var h=[],r=0;r0;this._updateSurfaceMesh(this._surfaceMesh,r,l,p);var C=this._surfaceMesh.material;p?(C.define("WIREFRAME_QUAD"),C.set("wireframeLineWidth",y),C.set("wireframeLineColor",_.a.parseColor(v.get("lineStyle.color")))):C.undefine("WIREFRAME_QUAD"),this._initHandler(r,s),this._updateAnimation(r)},_updateAnimation:function(r){_.a.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevSurfaceMesh,this._surfaceMesh,r)},_createSurfaceMesh:function(){var r=new _.a.Mesh({geometry:new _.a.Geometry({dynamic:!0,sortTriangles:!0}),shadowDepthMaterial:new _.a.Material({shader:new _.a.Shader(_.a.Shader.source("ecgl.sm.depth.vertex"),_.a.Shader.source("ecgl.sm.depth.fragment"))}),culling:!1,renderOrder:10,renderNormal:!0});return r.geometry.createAttribute("barycentric","float",4),r.geometry.createAttribute("prevPosition","float",3),r.geometry.createAttribute("prevNormal","float",3),A.a.util.extend(r.geometry,a.a),r},_initHandler:function(r,n){var s=r.getData(),d=this._surfaceMesh,o=r.coordinateSystem;function c(e,t){for(var i=1/0,l=-1,v=[],y=0;y=0){var i=[];d.geometry.attributes.position.get(t,i);for(var l=o.pointToData(i),v=1/0,y=-1,p=[],C=0;C65535?Uint32Array:Uint16Array)((C-1)*(S-1)*6),R=function(ie,fe,_e){_e[1]=ie*S+fe,_e[0]=ie*S+fe+1,_e[3]=(ie+1)*S+fe+1,_e[2]=(ie+1)*S+fe},B=!1;if(t){var U=[],H=[],K=0;D?l.init(o.vertexCount):l.value=null;for(var V=[[],[],[]],k=[],$=[],ae=u.create(),le=function(ie,fe,_e){var De=fe*3;return _e[0]=ie[De],_e[1]=ie[De+1],_e[2]=ie[De+2],_e},he=new Float32Array(f.length),ge=new Float32Array(f.length/3*4),me=0;me ")),n.value&&(c+=" : "+A.a.format.encodeHTML(n.value)),c}else return x.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var a=(this.option.categories||[]).map(function(h){return h.value!=null?h:A.a.util.extend({value:0},h)}),u=new A.a.List(["value"],this);u.initData(a),this._categoriesData=u,this._categoriesModels=u.mapArray(function(h){return u.getItemModel(h,!0)})},setView:function(a){a.zoom!=null&&(this.option.zoom=a.zoom),a.offset!=null&&(this.option.offset=a.offset)},setNodePosition:function(a){for(var u=0;u "+l)),e++)}var v,y=A.a.helper.completeDimensions(["value"],u);v=new A.a.List(y,r),v.initData(u);var p=new A.a.List(["value"],r);return p.initData(f,c),s&&s(v,p),m()({mainData:v,struct:d,structAttr:"graph",datas:{node:v,edge:p},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}},function(G,w,E){var O=E(85),A=O.__DEV__,_=E(12),g=E(244),x=g.enableClassCheck;function m(d){return"_EC_"+d}var a=function(d){this._directed=d||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},u=a.prototype;u.type="graph",u.isDirected=function(){return this._directed},u.addNode=function(d,o){d=d||""+o;var c=this._nodesMap;if(!c[m(d)]){var f=new h(d,o);return f.hostGraph=this,this.nodes.push(f),c[m(d)]=f,f}},u.getNodeByIndex=function(d){var o=this.data.getRawIndex(d);return this.nodes[o]},u.getNodeById=function(d){return this._nodesMap[m(d)]},u.addEdge=function(d,o,c){var f=this._nodesMap,e=this._edgesMap;if(typeof d=="number"&&(d=this.nodes[d]),typeof o=="number"&&(o=this.nodes[o]),h.isInstance(d)||(d=f[m(d)]),h.isInstance(o)||(o=f[m(o)]),!(!d||!o)){var t=d.id+"-"+o.id;if(!e[t]){var i=new r(d,o,c);return i.hostGraph=this,this._directed&&(d.outEdges.push(i),o.inEdges.push(i)),d.edges.push(i),d!==o&&o.edges.push(i),this.edges.push(i),e[t]=i,i}}},u.getEdgeByIndex=function(d){var o=this.edgeData.getRawIndex(d);return this.edges[o]},u.getEdge=function(d,o){h.isInstance(d)&&(d=d.id),h.isInstance(o)&&(o=o.id);var c=this._edgesMap;return this._directed?c[d+"-"+o]:c[d+"-"+o]||c[o+"-"+d]},u.eachNode=function(d,o){for(var c=this.nodes,f=c.length,e=0;e=0&&d.call(o,c[e],e)},u.eachEdge=function(d,o){for(var c=this.edges,f=c.length,e=0;e=0&&c[e].node1.dataIndex>=0&&c[e].node2.dataIndex>=0&&d.call(o,c[e],e)},u.breadthFirstTraverse=function(d,o,c,f){if(h.isInstance(o)||(o=this._nodesMap[m(o)]),!!o){for(var e=c==="out"?"outEdges":c==="in"?"inEdges":"edges",t=0;t=0&&l.node2.dataIndex>=0});for(var e=0,t=f.length;e=0&&this[d][o].setItemVisual(this.dataIndex,c,f)},getVisual:function(c,f){return this[d][o].getItemVisual(this.dataIndex,c,f)},setLayout:function(c,f){this.dataIndex>=0&&this[d][o].setItemLayout(this.dataIndex,c,f)},getLayout:function(){return this[d][o].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[d][o].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[d][o].getRawIndex(this.dataIndex)}}};_.mixin(h,n("hostGraph","data")),_.mixin(r,n("hostGraph","edgeData")),a.Node=h,a.Edge=r,x(h),x(r);var s=a;G.exports=s},function(G,w){var E;E=function(){return this}();try{E=E||Function("return this")()||(0,eval)("this")}catch(O){typeof window=="object"&&(E=window)}G.exports=E},function(G,w,E){var O=E(85),A=O.__DEV__,_=E(12),g=".",x="___EC__COMPONENT__CONTAINER___";function m(c){var f={main:"",sub:""};return c&&(c=c.split(g),f.main=c[0]||"",f.sub=c[1]||""),f}function a(c){_.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(c),'componentType "'+c+'" illegal')}function u(c,f){c.$constructor=c,c.extend=function(e){var t=this,i=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return _.extend(i.prototype,e),i.extend=this.extend,i.superCall=n,i.superApply=s,_.inherits(i,this),i.superClass=t,i}}var h=0;function r(c){var f=["__\0is_clz",h++,Math.random().toFixed(3)].join("_");c.prototype[f]=!0,c.isInstance=function(e){return!!(e&&e[f])}}function n(c,f){var e=_.slice(arguments,2);return this.superClass.prototype[f].apply(c,e)}function s(c,f,e){return this.superClass.prototype[f].apply(c,e)}function d(c,f){f=f||{};var e={};c.registerClass=function(l,v){if(v){if(a(v),v=m(v),!v.sub)e[v.main]=l;else if(v.sub!==x){var y=t(v);y[v.sub]=l}}return l},c.getClass=function(l,v,y){var p=e[l];if(p&&p[x]&&(p=v?p[v]:null),y&&!p)throw new Error(v?"Component "+l+"."+(v||"")+" not exists. Load it first.":l+".type should be specified.");return p},c.getClassesByMainType=function(l){l=m(l);var v=[],y=e[l.main];return y&&y[x]?_.each(y,function(p,C){C!==x&&v.push(p)}):v.push(y),v},c.hasClass=function(l){return l=m(l),!!e[l.main]},c.getAllClassMainTypes=function(){var l=[];return _.each(e,function(v,y){l.push(y)}),l},c.hasSubTypes=function(l){l=m(l);var v=e[l.main];return v&&v[x]},c.parseClassType=m;function t(l){var v=e[l.main];return(!v||!v[x])&&(v=e[l.main]={},v[x]=!0),v}if(f.registerWhenExtend){var i=c.extend;i&&(c.extend=function(l){var v=i.call(this,l);return c.registerClass(v,l.type)})}return c}function o(c,f){}w.parseClassType=m,w.enableClassExtend=u,w.enableClassCheck=r,w.enableClassManagement=d,w.setReadOnly=o},function(G,w,E){var O=E(12),A=O.each,_="\0__link_datas",g="\0__link_mainData";function x(o){var c=o.mainData,f=o.datas;f||(f={main:c},o.datasAttr={main:"data"}),o.datas=o.mainData=null,n(c,f,o),A(f,function(e){A(c.TRANSFERABLE_METHODS,function(t){e.wrapMethod(t,O.curry(m,o))})}),c.wrapMethod("cloneShallow",O.curry(u,o)),A(c.CHANGABLE_METHODS,function(e){c.wrapMethod(e,O.curry(a,o))}),O.assert(f[c.dataType]===c)}function m(o,c){if(r(this)){var f=O.extend({},this[_]);f[this.dataType]=c,n(c,f,o)}else s(c,this.dataType,this[g],o);return c}function a(o,c){return o.struct&&o.struct.update(this),c}function u(o,c){return A(c[_],function(f,e){f!==c&&s(f.cloneShallow(),e,c,o)}),c}function h(o){var c=this[g];return o==null||c==null?c:c[_][o]}function r(o){return o[g]===o}function n(o,c,f){o[_]={},A(c,function(e,t){s(e,t,o,f)})}function s(o,c,f,e){f[_][c]=o,o[g]=f,o.dataType=c,e.struct&&(o[e.structAttr]=e.struct,e.struct[e.datasAttr[c]]=o),o.getLinkedData=h}var d=x;G.exports=d},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(41),g=E.n(_),x=E(2),m=E(20),a=E(86),u=E(3),h=E(247),r=E(249),n=E(65),s=E.n(n),d=E(1),o=E.n(d),c=E(251),f=E(62),e=E(252),t=o.a.vec2;x.a.Shader.import(e.a);var i=1;A.a.extendChartView({type:"graphGL",__ecgl__:!0,init:function(l,v){this.groupGL=new x.a.Node,this.viewGL=new m.a("orthographic"),this.viewGL.camera.left=this.viewGL.camera.right=0,this.viewGL.add(this.groupGL),this._pointsBuilder=new f.a(!0,v),this._forceEdgesMesh=new x.a.Mesh({material:new x.a.Material({shader:x.a.createShader("ecgl.forceAtlas2.edges"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new x.a.Geometry({attributes:{node:new x.a.Geometry.Attribute("node","float",2),color:new x.a.Geometry.Attribute("color","float",4,"COLOR")},dynamic:!0,mainAttribute:"node"}),renderOrder:-1,mode:x.a.Mesh.LINES}),this._edgesMesh=new x.a.Mesh({material:new x.a.Material({shader:x.a.createShader("ecgl.meshLines2D"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new a.a({useNativeLine:!1,dynamic:!0}),renderOrder:-1,culling:!1}),this._layoutId=0,this._control=new c.a({zr:v.getZr(),viewGL:this.viewGL}),this._control.setTarget(this.groupGL),this._control.init(),this._clickHandler=this._clickHandler.bind(this)},render:function(l,v,y){this.groupGL.add(this._pointsBuilder.rootNode),this._model=l,this._api=y,this._initLayout(l,v,y),this._pointsBuilder.update(l,v,y),this._forceLayoutInstance instanceof h.a||this.groupGL.remove(this._forceEdgesMesh),this._updateCamera(l,y),this._control.off("update"),this._control.on("update",function(){y.dispatchAction({type:"graphGLRoam",seriesId:l.id,zoom:this._control.getZoom(),offset:this._control.getOffset()}),this._pointsBuilder.updateView(this.viewGL.camera)},this),this._control.setZoom(u.a.firstNotNull(l.get("zoom"),1)),this._control.setOffset(l.get("offset")||[0,0]);var p=this._pointsBuilder.getPointsMesh();if(p.off("mousemove",this._mousemoveHandler),p.off("mouseout",this._mouseOutHandler,this),y.getZr().off("click",this._clickHandler),this._pointsBuilder.highlightOnMouseover=!0,l.get("focusNodeAdjacency")){var C=l.get("focusNodeAdjacencyOn");C==="click"?y.getZr().on("click",this._clickHandler):C==="mouseover"?(p.on("mousemove",this._mousemoveHandler,this),p.on("mouseout",this._mouseOutHandler,this),this._pointsBuilder.highlightOnMouseover=!1):console.warn("Unkown focusNodeAdjacencyOn value s"+C)}this._lastMouseOverDataIndex=-1},_clickHandler:function(l){if(!this._layouting){var v=this._pointsBuilder.getPointsMesh().dataIndex;v>=0?this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:v}):this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id})}},_mousemoveHandler:function(l){if(!this._layouting){var v=this._pointsBuilder.getPointsMesh().dataIndex;v>=0?v!==this._lastMouseOverDataIndex&&this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:v}):this._mouseOutHandler(l),this._lastMouseOverDataIndex=v}},_mouseOutHandler:function(l){this._layouting||(this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id}),this._lastMouseOverDataIndex=-1)},_updateForceEdgesGeometry:function(l,v){var y=this._forceEdgesMesh.geometry,p=v.getEdgeData(),C=0,S=this._forceLayoutInstance,T=p.count()*2;y.attributes.node.init(T),y.attributes.color.init(T),p.each(function(D){var I=l[D];y.attributes.node.set(C,S.getNodeUV(I.node1)),y.attributes.node.set(C+1,S.getNodeUV(I.node2));var M=p.getItemVisual(I.dataIndex,"color"),P=x.a.parseColor(M);P[3]*=u.a.firstNotNull(p.getItemVisual(I.dataIndex,"opacity"),1),y.attributes.color.set(C,P),y.attributes.color.set(C+1,P),C+=2}),y.dirty()},_updateMeshLinesGeometry:function(){var v=this._model.getEdgeData(),l=this._edgesMesh.geometry,v=this._model.getEdgeData(),y=this._model.getData().getLayout("points");l.resetOffset(),l.setVertexCount(v.count()*l.getLineVertexCount()),l.setTriangleCount(v.count()*l.getLineTriangleCount());var p=[],C=[],S=["lineStyle","width"];this._originalEdgeColors=new Float32Array(v.count()*4),this._edgeIndicesMap=new Float32Array(v.count()),v.each(function(T){var D=v.graph.getEdgeByIndex(T),I=D.node1.dataIndex*2,M=D.node2.dataIndex*2;p[0]=y[I],p[1]=y[I+1],C[0]=y[M],C[1]=y[M+1];var P=v.getItemVisual(D.dataIndex,"color"),L=x.a.parseColor(P);L[3]*=u.a.firstNotNull(v.getItemVisual(D.dataIndex,"opacity"),1);var R=v.getItemModel(D.dataIndex),B=u.a.firstNotNull(R.get(S),1)*this._api.getDevicePixelRatio();l.addLine(p,C,L,B);for(var U=0;U<4;U++)this._originalEdgeColors[D.dataIndex*4+U]=L[U];this._edgeIndicesMap[D.dataIndex]=T},!1,this),l.dirty()},_updateForceNodesGeometry:function(l){for(var v=this._pointsBuilder.getPointsMesh(),y=[],p=0;p=U&&(M._syncNodePosition(l),B=0),S.getZr().refresh(),s()(function(){H(K)})})}};s()(function(){M._forceLayoutInstanceToDispose&&(M._forceLayoutInstanceToDispose.dispose(C.layer.renderer),M._forceLayoutInstanceToDispose=null),H(P)}),this._layouting=!0}}},stopLayout:function(l,v,y,p){p&&p.from!=null&&p.from!==this.uid||(this._layoutId=0,this.groupGL.remove(this._forceEdgesMesh),this.groupGL.add(this._edgesMesh),this._forceLayoutInstance&&this.viewGL.layer&&(p&&p.beforeLayout||(this._syncNodePosition(l),this._updateAfterLayout(l,v,y)),this._api.getZr().refresh(),this._layouting=!1))},_syncNodePosition:function(l){var v=this._forceLayoutInstance.getNodePosition(this.viewGL.layer.renderer);l.getData().setLayout("points",v),l.setNodePosition(v)},_updateAfterLayout:function(l,v,y){this._updateMeshLinesGeometry(),this._pointsBuilder.removePositionTexture(),this._pointsBuilder.updateLayout(l,v,y),this._pointsBuilder.updateView(this.viewGL.camera),this._pointsBuilder.updateLabels(),this._pointsBuilder.showLabels()},focusNodeAdjacency:function(l,v,y,p){var C=this._model.getData();this._downplayAll();var S=p.dataIndex,T=C.graph,D=[],I=T.getNodeByIndex(S);D.push(I),I.edges.forEach(function(P){P.dataIndex<0||(P.node1!==I&&D.push(P.node1),P.node2!==I&&D.push(P.node2))},this),this._pointsBuilder.fadeOutAll(.05),this._fadeOutEdgesAll(.05),D.forEach(function(P){this._pointsBuilder.highlight(C,P.dataIndex)},this),this._pointsBuilder.updateLabels(D.map(function(P){return P.dataIndex}));var M=[];I.edges.forEach(function(P){P.dataIndex>=0&&(this._highlightEdge(P.dataIndex),M.push(P))},this),this._focusNodes=D,this._focusEdges=M},unfocusNodeAdjacency:function(l,v,y,p){this._downplayAll(),this._pointsBuilder.fadeInAll(),this._fadeInEdgesAll(),this._pointsBuilder.updateLabels()},_highlightEdge:function(l){var v=this._model.getEdgeData().getItemModel(l),y=x.a.parseColor(v.get("emphasis.lineStyle.color")||v.get("lineStyle.color")),p=u.a.firstNotNull(v.get("emphasis.lineStyle.opacity"),v.get("lineStyle.opacity"),1);y[3]*=p,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[l],y)},_downplayAll:function(){this._focusNodes&&this._focusNodes.forEach(function(l){this._pointsBuilder.downplay(this._model.getData(),l.dataIndex)},this),this._focusEdges&&this._focusEdges.forEach(function(l){this._downplayEdge(l.dataIndex)},this)},_downplayEdge:function(l){var v=this._getColor(l,[]);this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[l],v)},_setEdgeFade:function(){var l=[];return function(v,y){this._getColor(v,l),l[3]*=y,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[v],l)}}(),_getColor:function(l,v){for(var y=0;y<4;y++)v[y]=this._originalEdgeColors[l*4+y];return v},_fadeOutEdgesAll:function(l){var v=this._model.getData().graph;v.eachEdge(function(y){this._setEdgeFade(y.dataIndex,l)},this)},_fadeInEdgesAll:function(){this._fadeOutEdgesAll(1)},_updateCamera:function(l,v){this.viewGL.setViewport(0,0,v.getWidth(),v.getHeight(),v.getDevicePixelRatio());for(var y=this.viewGL.camera,p=l.getData(),C=p.getLayout("points"),S=t.create(1/0,1/0),T=t.create(-1/0,-1/0),D=[],I=0;Iy.left&&Py.top)){var L=Math.max(T[0]-S[0],10),R=L/v.getWidth()*v.getHeight();L*=1.4,R*=1.4,S[0]-=L*.2,y.left=S[0],y.top=M-R/2,y.bottom=M+R/2,y.right=L+S[0],y.near=0,y.far=100}},dispose:function(){var l=this.viewGL.layer.renderer;this._forceLayoutInstance&&this._forceLayoutInstance.dispose(l),this.groupGL.removeAll(),this._layoutId=-1},remove:function(){this.groupGL.removeAll(),this._control.dispose()}})},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(2),g=E(14),x=E(10),m=E(248);_.a.Shader.import(m.a);var a={repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null};function u(h){var r={type:_.a.Texture.FLOAT,minFilter:_.a.Texture.NEAREST,magFilter:_.a.Texture.NEAREST};this._positionSourceTex=new _.a.Texture2D(r),this._positionSourceTex.flipY=!1,this._positionTex=new _.a.Texture2D(r),this._positionPrevTex=new _.a.Texture2D(r),this._forceTex=new _.a.Texture2D(r),this._forcePrevTex=new _.a.Texture2D(r),this._weightedSumTex=new _.a.Texture2D(r),this._weightedSumTex.width=this._weightedSumTex.height=1,this._globalSpeedTex=new _.a.Texture2D(r),this._globalSpeedPrevTex=new _.a.Texture2D(r),this._globalSpeedTex.width=this._globalSpeedTex.height=1,this._globalSpeedPrevTex.width=this._globalSpeedPrevTex.height=1,this._nodeRepulsionPass=new g.a({fragment:_.a.Shader.source("ecgl.forceAtlas2.updateNodeRepulsion")}),this._positionPass=new g.a({fragment:_.a.Shader.source("ecgl.forceAtlas2.updatePosition")}),this._globalSpeedPass=new g.a({fragment:_.a.Shader.source("ecgl.forceAtlas2.calcGlobalSpeed")}),this._copyPass=new g.a({fragment:_.a.Shader.source("clay.compositor.output")});var n=function(s){s.blendEquation(s.FUNC_ADD),s.blendFunc(s.ONE,s.ONE)};this._edgeForceMesh=new _.a.Mesh({geometry:new _.a.Geometry({attributes:{node1:new _.a.Geometry.Attribute("node1","float",2),node2:new _.a.Geometry.Attribute("node2","float",2),weight:new _.a.Geometry.Attribute("weight","float",1)},dynamic:!0,mainAttribute:"node1"}),material:new _.a.Material({transparent:!0,shader:_.a.createShader("ecgl.forceAtlas2.updateEdgeAttraction"),blend:n,depthMask:!1,depthText:!1}),mode:_.a.Mesh.POINTS}),this._weightedSumMesh=new _.a.Mesh({geometry:new _.a.Geometry({attributes:{node:new _.a.Geometry.Attribute("node","float",2)},dynamic:!0,mainAttribute:"node"}),material:new _.a.Material({transparent:!0,shader:_.a.createShader("ecgl.forceAtlas2.calcWeightedSum"),blend:n,depthMask:!1,depthText:!1}),mode:_.a.Mesh.POINTS}),this._framebuffer=new x.a({depthBuffer:!1}),this._dummyCamera=new _.a.OrthographicCamera({left:-1,right:1,top:1,bottom:-1,near:0,far:100}),this._globalSpeed=0}u.prototype.updateOption=function(h){for(var r in a)this[r]=a[r];var n=this._nodes.length;if(n>5e4?this.jitterTolerence=10:n>5e3?this.jitterTolerence=1:this.jitterTolerence=.1,n>100?this.scaling=2:this.scaling=10,h)for(var r in a)h[r]!=null&&(this[r]=h[r]);if(this.repulsionByDegree)for(var s=this._positionSourceTex.pixels,d=0;dh},u.prototype._swapTexture=function(){var h=this._positionPrevTex;this._positionPrevTex=this._positionTex,this._positionTex=h;var h=this._forcePrevTex;this._forcePrevTex=this._forceTex,this._forceTex=h;var h=this._globalSpeedPrevTex;this._globalSpeedPrevTex=this._globalSpeedTex,this._globalSpeedTex=h},u.prototype._initFromSource=function(h){this._framebuffer.attach(this._positionPrevTex),this._framebuffer.bind(h),this._copyPass.setUniform("texture",this._positionSourceTex),this._copyPass.render(h),h.gl.clearColor(0,0,0,0),this._framebuffer.attach(this._forcePrevTex),h.gl.clear(h.gl.COLOR_BUFFER_BIT),this._framebuffer.attach(this._globalSpeedPrevTex),h.gl.clear(h.gl.COLOR_BUFFER_BIT),this._framebuffer.unbind(h)},u.prototype._resize=function(h,r){["_positionSourceTex","_positionTex","_positionPrevTex","_forceTex","_forcePrevTex"].forEach(function(n){this[n].width=h,this[n].height=r,this[n].dirty()},this)},u.prototype.dispose=function(h){this._framebuffer.dispose(h),this._copyPass.dispose(h),this._nodeRepulsionPass.dispose(h),this._positionPass.dispose(h),this._globalSpeedPass.dispose(h),this._edgeForceMesh.geometry.dispose(h),this._weightedSumMesh.geometry.dispose(h),this._positionSourceTex.dispose(h),this._positionTex.dispose(h),this._positionPrevTex.dispose(h),this._forceTex.dispose(h),this._forcePrevTex.dispose(h),this._weightedSumTex.dispose(h),this._globalSpeedTex.dispose(h),this._globalSpeedPrevTex.dispose(h)},A.a.ForceAtlas2GPU=u,w.a=u},function(G,w,E){"use strict";w.a=`@export ecgl.forceAtlas2.updateNodeRepulsion #define NODE_COUNT 0 uniform sampler2D positionTex; uniform vec2 textureSize; uniform float gravity; uniform float scaling; uniform vec2 gravityCenter; uniform bool strongGravityMode; uniform bool preventOverlap; varying vec2 v_Texcoord; void main() { vec4 n0 = texture2D(positionTex, v_Texcoord); vec2 force = vec2(0.0); for (int i = 0; i < NODE_COUNT; i++) { vec2 uv = vec2( mod(float(i), textureSize.x) / (textureSize.x - 1.0), floor(float(i) / textureSize.x) / (textureSize.y - 1.0) ); vec4 n1 = texture2D(positionTex, uv); vec2 dir = n0.xy - n1.xy; float d2 = dot(dir, dir); if (d2 > 0.0) { float factor = 0.0; if (preventOverlap) { float d = sqrt(d2); d = d - n0.w - n1.w; if (d > 0.0) { factor = scaling * n0.z * n1.z / (d * d); } else if (d < 0.0) { factor = scaling * 100.0 * n0.z * n1.z; } } else { factor = scaling * n0.z * n1.z / d2; } force += dir * factor; } } vec2 dir = gravityCenter - n0.xy; float d = 1.0; if (!strongGravityMode) { d = length(dir); } force += dir * n0.z * gravity / (d + 1.0); gl_FragColor = vec4(force, 0.0, 1.0); } @end @export ecgl.forceAtlas2.updateEdgeAttraction.vertex attribute vec2 node1; attribute vec2 node2; attribute float weight; uniform sampler2D positionTex; uniform float edgeWeightInfluence; uniform bool preventOverlap; uniform bool linLogMode; uniform vec2 windowSize: WINDOW_SIZE; varying vec2 v_Force; void main() { vec4 n0 = texture2D(positionTex, node1); vec4 n1 = texture2D(positionTex, node2); vec2 dir = n1.xy - n0.xy; float d = length(dir); float w; if (edgeWeightInfluence == 0.0) { w = 1.0; } else if (edgeWeightInfluence == 1.0) { w = weight; } else { w = pow(weight, edgeWeightInfluence); } vec2 offset = vec2(1.0 / windowSize.x, 1.0 / windowSize.y); vec2 scale = vec2((windowSize.x - 1.0) / windowSize.x, (windowSize.y - 1.0) / windowSize.y); vec2 pos = node1 * scale * 2.0 - 1.0; gl_Position = vec4(pos + offset, 0.0, 1.0); gl_PointSize = 1.0; float factor; if (preventOverlap) { d = d - n1.w - n0.w; } if (d <= 0.0) { v_Force = vec2(0.0); return; } if (linLogMode) { factor = w * log(d) / d; } else { factor = w; } v_Force = dir * factor; } @end @export ecgl.forceAtlas2.updateEdgeAttraction.fragment varying vec2 v_Force; void main() { gl_FragColor = vec4(v_Force, 0.0, 0.0); } @end @export ecgl.forceAtlas2.calcWeightedSum.vertex attribute vec2 node; varying vec2 v_NodeUv; void main() { v_NodeUv = node; gl_Position = vec4(0.0, 0.0, 0.0, 1.0); gl_PointSize = 1.0; } @end @export ecgl.forceAtlas2.calcWeightedSum.fragment varying vec2 v_NodeUv; uniform sampler2D positionTex; uniform sampler2D forceTex; uniform sampler2D forcePrevTex; void main() { vec2 force = texture2D(forceTex, v_NodeUv).rg; vec2 forcePrev = texture2D(forcePrevTex, v_NodeUv).rg; float mass = texture2D(positionTex, v_NodeUv).z; float swing = length(force - forcePrev) * mass; float traction = length(force + forcePrev) * 0.5 * mass; gl_FragColor = vec4(swing, traction, 0.0, 0.0); } @end @export ecgl.forceAtlas2.calcGlobalSpeed uniform sampler2D globalSpeedPrevTex; uniform sampler2D weightedSumTex; uniform float jitterTolerence; void main() { vec2 weightedSum = texture2D(weightedSumTex, vec2(0.5)).xy; float prevGlobalSpeed = texture2D(globalSpeedPrevTex, vec2(0.5)).x; float globalSpeed = jitterTolerence * jitterTolerence * weightedSum.y / weightedSum.x; if (prevGlobalSpeed > 0.0) { globalSpeed = min(globalSpeed / prevGlobalSpeed, 1.5) * prevGlobalSpeed; } gl_FragColor = vec4(globalSpeed, 0.0, 0.0, 1.0); } @end @export ecgl.forceAtlas2.updatePosition uniform sampler2D forceTex; uniform sampler2D forcePrevTex; uniform sampler2D positionTex; uniform sampler2D globalSpeedTex; varying vec2 v_Texcoord; void main() { vec2 force = texture2D(forceTex, v_Texcoord).xy; vec2 forcePrev = texture2D(forcePrevTex, v_Texcoord).xy; vec4 node = texture2D(positionTex, v_Texcoord); float globalSpeed = texture2D(globalSpeedTex, vec2(0.5)).r; float swing = length(force - forcePrev); float speed = 0.1 * globalSpeed / (0.1 + globalSpeed * sqrt(swing)); float df = length(force); if (df > 0.0) { speed = min(df * speed, 10.0) / df; gl_FragColor = vec4(node.xy + speed * force, node.zw); } else { gl_FragColor = node; } } @end @export ecgl.forceAtlas2.edges.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec2 node; attribute vec4 a_Color : COLOR; varying vec4 v_Color; uniform sampler2D positionTex; void main() { gl_Position = worldViewProjection * vec4( texture2D(positionTex, node).xy, -10.0, 1.0 ); v_Color = a_Color; } @end @export ecgl.forceAtlas2.edges.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; varying vec4 v_Color; void main() { gl_FragColor = color * v_Color; } @end`},function(G,w,E){"use strict";var O=E(5),A=E(6),_=E(250),g=_.a.toString();g=g.slice(g.indexOf("{")+1,g.lastIndexOf("}"));var x={barnesHutOptimize:!0,barnesHutTheta:1.5,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null},m=function(a){for(var u in x)this[u]=x[u];if(a)for(var u in a)this[u]=a[u];this._nodes=[],this._edges=[],this._disposed=!1,this._positionTex=new O.a({type:A.a.FLOAT,flipY:!1,minFilter:A.a.NEAREST,magFilter:A.a.NEAREST})};m.prototype.initData=function(a,u){var h=new Blob([g]),r=window.URL.createObjectURL(h);this._worker=new Worker(r),this._worker.onmessage=this._$onupdate.bind(this),this._nodes=a,this._edges=u,this._frame=0;for(var n=a.length,s=u.length,d=new Float32Array(n*2),o=new Float32Array(n),c=new Float32Array(n),f=new Float32Array(s*2),e=new Float32Array(s),t=0;t5e4?u.jitterTolerence=10:s>5e3?u.jitterTolerence=1:u.jitterTolerence=.1,s>100?u.scaling=2:u.scaling=10,s>1e3?u.barnesHutOptimize=!0:u.barnesHutOptimize=!1,a)for(var h in x)a[h]!=null&&(u[h]=a[h]);if(!u.gravityCenter){for(var d=[1/0,1/0],o=[-1/0,-1/0],c=0;ca},m.prototype.getNodePosition=function(a,u){if(u||(u=new Float32Array(this._nodes.length*2)),this._positionArr)for(var h=0;h0&&(o=1/Math.sqrt(o),r[0]=n[0]*o,r[1]=n[1]*o),r},negate:function(r,n){return r[0]=-n[0],r[1]=-n[1],r},copy:function(r,n){return r[0]=n[0],r[1]=n[1],r},set:function(r,n,s){return r[0]=n,r[1]=s,r}};function _(){this.subRegions=[],this.nSubRegions=0,this.node=null,this.mass=0,this.centerOfMass=null,this.bbox=new Float32Array(4),this.size=0}var g=_.prototype;g.beforeUpdate=function(){for(var r=0;r=r&&this.bbox[1]<=n&&this.bbox[3]>=n},g.setBBox=function(r,n,s,d){this.bbox[0]=r,this.bbox[1]=n,this.bbox[2]=s,this.bbox[3]=d,this.size=(s-r+d-n)/2},g._newSubRegion=function(){var r=this.subRegions[this.nSubRegions];return r||(r=new _,this.subRegions[this.nSubRegions]=r),this.nSubRegions++,r},g._addNodeToSubRegion=function(r){var n=this.findSubRegion(r.position[0],r.position[1]),s=this.bbox;if(!n){var d=(s[0]+s[2])/2,o=(s[1]+s[3])/2,c=(s[2]-s[0])/2,f=(s[3]-s[1])/2,e=r.position[0]>=d?1:0,t=r.position[1]>=o?1:0,n=this._newSubRegion();n.setBBox(e*c+s[0],t*f+s[1],(e+1)*c+s[0],(t+1)*f+s[1])}n.addNode(r)},g._updateCenterOfMass=function(r){this.centerOfMass==null&&(this.centerOfMass=new Float32Array(2));var n=this.centerOfMass[0]*this.mass,s=this.centerOfMass[1]*this.mass;n+=r.position[0]*r.mass,s+=r.position[1]*r.mass,this.mass+=r.mass,this.centerOfMass[0]=n/this.mass,this.centerOfMass[1]=s/this.mass};function x(){this.position=new Float32Array(2),this.force=A.create(),this.forcePrev=A.create(),this.mass=1,this.inDegree=0,this.outDegree=0}function m(r,n){this.source=r,this.target=n,this.weight=1}function a(){this.autoSettings=!0,this.barnesHutOptimize=!0,this.barnesHutTheta=1.5,this.repulsionByDegree=!0,this.linLogMode=!1,this.strongGravityMode=!1,this.gravity=1,this.scaling=1,this.edgeWeightInfluence=1,this.jitterTolerence=.1,this.preventOverlap=!1,this.dissuadeHubs=!1,this.rootRegion=new _,this.rootRegion.centerOfMass=A.create(),this.nodes=[],this.edges=[],this.bbox=new Float32Array(4),this.gravityCenter=null,this._massArr=null,this._swingingArr=null,this._sizeArr=null,this._globalSpeed=0}var u=a.prototype;u.initNodes=function(r,n,s){var d=n.length;this.nodes.length=0;for(var o=typeof s!="undefined",c=0;c0&&(this.strongGravityMode?this.applyNodeStrongGravity(d):this.applyNodeGravity(d))}for(var n=0;n0&&(v=Math.min(v/this._globalSpeed,1.5)*this._globalSpeed),this._globalSpeed=v;for(var n=0;n0&&(y=Math.min(p*y,10)/p,A.scaleAndAdd(s.position,s.position,s.force,y))}},u.applyRegionToNodeRepulsion=function(){var r=A.create();return function(s,d){if(s.node)this.applyNodeToNodeRepulsion(s.node,d,!0);else{A.sub(r,d.position,s.centerOfMass);var o=r[0]*r[0]+r[1]*r[1];if(o>this.barnesHutTheta*s.size*s.size){var c=this.scaling*d.mass*s.mass/o;A.scaleAndAdd(d.force,d.force,r,c)}else for(var f=0;f0)f=this.scaling*s.mass*d.mass/(e*e);else if(e<0)f=this.scaling*100*s.mass*d.mass;else return}else f=this.scaling*s.mass*d.mass/c;A.scaleAndAdd(s.force,s.force,r,f),A.scaleAndAdd(d.force,d.force,r,-f)}}}}(),u.applyEdgeAttraction=function(){var r=A.create();return function(s){var d=s.source,o=s.target;A.sub(r,d.position,o.position);var c=A.len(r),f;this.edgeWeightInfluence===0?f=1:this.edgeWeightInfluence===1?f=s.weight:f=Math.pow(s.weight,this.edgeWeightInfluence);var e;this.preventOverlap&&(c=c-d.size-o.size,c<=0)||(this.linLogMode?e=-f*Math.log(c+1)/(c+1):e=-f,A.scaleAndAdd(d.force,d.force,r,e),A.scaleAndAdd(o.force,o.force,r,-e))}}(),u.applyNodeGravity=function(){var r=A.create();return function(n){A.sub(r,this.gravityCenter,n.position);var s=A.len(r);A.scaleAndAdd(n.force,n.force,r,this.gravity*n.mass/(s+1))}}(),u.applyNodeStrongGravity=function(){var r=A.create();return function(n){A.sub(r,this.gravityCenter,n.position),A.scaleAndAdd(n.force,n.force,r,this.gravity*n.mass)}}(),u.updateBBox=function(){for(var r=1/0,n=1/0,s=-1/0,d=-1/0,o=0;o0?1.1:.9,h=Math.max(Math.min(this._zoom*u,this.maxZoom),this.minZoom);u=h/this._zoom;var r=this._convertPos(m,a),n=(r.x-this._dx)*(u-1),s=(r.y-this._dy)*(u-1);this._dx-=n,this._dy-=s,this._zoom=h,this._needsUpdate=!0}}},dispose:function(){var g=this.zr;g.off("mousedown",this._mouseDownHandler),g.off("mousemove",this._mouseMoveHandler),g.off("mouseup",this._mouseUpHandler),g.off("mousewheel",this._mouseWheelHandler),g.off("globalout",this._mouseUpHandler),g.animation.off("frame",this._update)}});w.a=_},function(G,w,E){"use strict";w.a=`@export ecgl.lines2D.vertex uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; attribute vec2 position: POSITION; attribute vec4 a_Color : COLOR; varying vec4 v_Color; #ifdef POSITIONTEXTURE_ENABLED uniform sampler2D positionTexture; #endif void main() { gl_Position = worldViewProjection * vec4(position, -10.0, 1.0); v_Color = a_Color; } @end @export ecgl.lines2D.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; varying vec4 v_Color; void main() { gl_FragColor = color * v_Color; } @end @export ecgl.meshLines2D.vertex attribute vec2 position: POSITION; attribute vec2 normal; attribute float offset; attribute vec4 a_Color : COLOR; uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform vec4 viewport : VIEWPORT; varying vec4 v_Color; varying float v_Miter; void main() { vec4 p2 = worldViewProjection * vec4(position + normal, -10.0, 1.0); gl_Position = worldViewProjection * vec4(position, -10.0, 1.0); p2.xy /= p2.w; gl_Position.xy /= gl_Position.w; vec2 N = normalize(p2.xy - gl_Position.xy); gl_Position.xy += N * offset / viewport.zw * 2.0; gl_Position.xy *= gl_Position.w; v_Color = a_Color; } @end @export ecgl.meshLines2D.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; varying vec4 v_Color; varying float v_Miter; void main() { gl_FragColor = color * v_Color; } @end`},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(254),g=E(258)},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(2),g=E(3),x=E(20),m=E(255);A.a.extendChartView({type:"flowGL",__ecgl__:!0,init:function(a,u){this.viewGL=new x.a("orthographic"),this.groupGL=new _.a.Node,this.viewGL.add(this.groupGL),this._particleSurface=new m.a;var h=new _.a.Mesh({geometry:new _.a.PlaneGeometry,material:new _.a.Material({shader:new _.a.Shader({vertex:_.a.Shader.source("ecgl.color.vertex"),fragment:_.a.Shader.source("ecgl.color.fragment")}),transparent:!0})});h.material.enableTexture("diffuseMap"),this.groupGL.add(h),this._planeMesh=h},render:function(a,u,h){var r=this._particleSurface;r.setParticleType(a.get("particleType")),r.setSupersampling(a.get("supersampling")),this._updateData(a,h),this._updateCamera(h.getWidth(),h.getHeight(),h.getDevicePixelRatio());var n=g.a.firstNotNull(a.get("particleDensity"),128);r.setParticleDensity(n,n);var s=this._planeMesh,d=+new Date,o=this,c=!0;s.__percent=0,s.stopAnimation(),s.animate("",{loop:!0}).when(1e5,{__percent:1}).during(function(){var t=+new Date,i=Math.min(t-d,20);d=d+i,o._renderer&&(r.update(o._renderer,h,i/1e3,c),s.material.set("diffuseMap",r.getSurfaceTexture())),c=!1}).start();var f=a.getModel("itemStyle"),e=_.a.parseColor(f.get("color"));e[3]*=g.a.firstNotNull(f.get("opacity"),1),s.material.set("color",e),r.setColorTextureImage(a.get("colorTexture"),h),r.setParticleSize(a.get("particleSize")),r.particleSpeedScaling=a.get("particleSpeed"),r.motionBlurFactor=1-Math.pow(.1,a.get("particleTrail"))},updateTransform:function(a,u,h){this._updateData(a,h)},afterRender:function(a,u,h,r){var n=r.renderer;this._renderer=n},_updateData:function(a,u){var h=a.coordinateSystem,r=h.dimensions.map(function(S){return a.coordDimToDataDim(S)[0]}),n=a.getData(),s=n.getDataExtent(r[0]),d=n.getDataExtent(r[1]),o=a.get("gridWidth"),c=a.get("gridHeight");if(o==null||o==="auto"){var f=(s[1]-s[0])/(d[1]-d[0]);o=Math.round(Math.sqrt(f*n.count()))}(c==null||c==="auto")&&(c=Math.ceil(n.count()/o));var e=this._particleSurface.vectorFieldTexture,t=e.pixels;if(!t||t.length!==c*o*4)t=e.pixels=new Float32Array(o*c*4);else for(var i=0;i=359;o&&(n[0]>0&&(n[0]=0),s[0]0?c[c.length-1]:this._lastFrameTexture},setRegion:function(c){this._particlePass.setUniform("region",c)},resize:function(c,f){this._lastFrameTexture.width=c*this._supersampling,this._lastFrameTexture.height=f*this._supersampling,this._thisFrameTexture.width=c*this._supersampling,this._thisFrameTexture.height=f*this._supersampling,this._width=c,this._height=f},setParticleSize:function(c){var f=this._getParticleMesh();if(c<=2){f.material.disableTexture("spriteTexture"),f.material.transparent=!1;return}this._spriteTexture||(this._spriteTexture=new m.a),(!this._spriteTexture.image||this._spriteTexture.image.width!==c)&&(this._spriteTexture.image=d(c),this._spriteTexture.dirty()),f.material.transparent=!0,f.material.enableTexture("spriteTexture"),f.material.set("spriteTexture",this._spriteTexture),this._particleSize=c},setGradientTexture:function(c){var f=this._getParticleMesh().material;f[c?"enableTexture":"disableTexture"]("gradientTexture"),f.setUniform("gradientTexture",c)},setColorTextureImage:function(c,f){var e=this._getParticleMesh().material;e.setTextureImage("colorTexture",c,f,{flipY:!0})},setParticleType:function(c){this._particleType=c},clearFrame:function(c){var f=this._frameBuffer;f.attach(this._lastFrameTexture),f.bind(c),c.gl.clear(c.gl.DEPTH_BUFFER_BIT|c.gl.COLOR_BUFFER_BIT),f.unbind(c)},setSupersampling:function(c){this._supersampling=c,this.resize(this._width,this._height)},_updateDownsampleTextures:function(c,f){for(var e=this._downsampleTextures,t=Math.max(Math.floor(Math.log(this._supersampling/f.getDevicePixelRatio())/Math.log(2)),0),i=2,l=this._width*this._supersampling,v=this._height*this._supersampling,y=0;y65535?new Uint32Array(u*3):new Uint16Array(u*3))},addLine:function(x){var m=this._vertexOffset;this.attributes.position.set(m,[x[0],x[1],1]),this.attributes.position.set(m+1,[x[0],x[1],-1]),this.attributes.position.set(m+2,[x[0],x[1],2]),this.attributes.position.set(m+3,[x[0],x[1],-2]),this.setTriangleIndices(this._faceOffset++,[m,m+1,m+2]),this.setTriangleIndices(this._faceOffset++,[m+1,m+2,m+3]),this._vertexOffset+=4}});w.a=g},function(G,w,E){"use strict";w.a=`@export ecgl.vfParticle.particle.fragment uniform sampler2D particleTexture; uniform sampler2D spawnTexture; uniform sampler2D velocityTexture; uniform float deltaTime; uniform float elapsedTime; uniform float speedScaling : 1.0; uniform vec2 textureSize; uniform vec4 region : [0, 0, 1, 1]; uniform float firstFrameTime; varying vec2 v_Texcoord; void main() { vec4 p = texture2D(particleTexture, v_Texcoord); bool spawn = false; if (p.w <= 0.0) { p = texture2D(spawnTexture, fract(v_Texcoord + elapsedTime / 10.0)); p.w -= firstFrameTime; spawn = true; } vec2 v = texture2D(velocityTexture, fract(p.xy * region.zw + region.xy)).xy; v = (v - 0.5) * 2.0; p.z = length(v); p.xy += v * deltaTime / 10.0 * speedScaling; p.w -= deltaTime; if (spawn || p.xy != fract(p.xy)) { p.z = 0.0; } p.xy = fract(p.xy); gl_FragColor = p; } @end @export ecgl.vfParticle.renderPoints.vertex #define PI 3.1415926 attribute vec2 texcoord : TEXCOORD_0; uniform sampler2D particleTexture; uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; uniform float size : 1.0; varying float v_Mag; varying vec2 v_Uv; void main() { vec4 p = texture2D(particleTexture, texcoord); if (p.w > 0.0 && p.z > 1e-5) { gl_Position = worldViewProjection * vec4(p.xy * 2.0 - 1.0, 0.0, 1.0); } else { gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0); } v_Mag = p.z; v_Uv = p.xy; gl_PointSize = size; } @end @export ecgl.vfParticle.renderPoints.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; uniform sampler2D gradientTexture; uniform sampler2D colorTexture; uniform sampler2D spriteTexture; varying float v_Mag; varying vec2 v_Uv; void main() { gl_FragColor = color; #ifdef SPRITETEXTURE_ENABLED gl_FragColor *= texture2D(spriteTexture, gl_PointCoord); if (color.a == 0.0) { discard; } #endif #ifdef GRADIENTTEXTURE_ENABLED gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5)); #endif #ifdef COLORTEXTURE_ENABLED gl_FragColor *= texture2D(colorTexture, v_Uv); #endif } @end @export ecgl.vfParticle.renderLines.vertex #define PI 3.1415926 attribute vec3 position : POSITION; uniform sampler2D particleTexture; uniform sampler2D prevParticleTexture; uniform float size : 1.0; uniform vec4 vp: VIEWPORT; uniform mat4 worldViewProjection : WORLDVIEWPROJECTION; varying float v_Mag; varying vec2 v_Uv; @import clay.util.rand void main() { vec4 p = texture2D(particleTexture, position.xy); vec4 p2 = texture2D(prevParticleTexture, position.xy); p.xy = p.xy * 2.0 - 1.0; p2.xy = p2.xy * 2.0 - 1.0; if (p.w > 0.0 && p.z > 1e-5) { vec2 dir = normalize(p.xy - p2.xy); vec2 norm = vec2(dir.y / vp.z, -dir.x / vp.w) * sign(position.z) * size; if (abs(position.z) == 2.0) { gl_Position = vec4(p.xy + norm, 0.0, 1.0); v_Uv = p.xy; v_Mag = p.z; } else { gl_Position = vec4(p2.xy + norm, 0.0, 1.0); v_Mag = p2.z; v_Uv = p2.xy; } gl_Position = worldViewProjection * gl_Position; } else { gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0); } } @end @export ecgl.vfParticle.renderLines.fragment uniform vec4 color : [1.0, 1.0, 1.0, 1.0]; uniform sampler2D gradientTexture; uniform sampler2D colorTexture; varying float v_Mag; varying vec2 v_Uv; void main() { gl_FragColor = color; #ifdef GRADIENTTEXTURE_ENABLED gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5)); #endif #ifdef COLORTEXTURE_ENABLED gl_FragColor *= texture2D(colorTexture, v_Uv); #endif } @end `},function(G,w,E){"use strict";var O=E(0),A=E.n(O);A.a.extendSeriesModel({type:"series.flowGL",dependencies:["geo","grid","bmap"],visualColorAccessPath:"itemStyle.color",getInitialData:function(_,g){var x=A.a.getCoordinateSystemDimensions(this.get("coordinateSystem"))||["x","y"];if(x.length>2)throw new Error("flowGL can only be used on 2d coordinate systems.");x.push("vx","vy");var m=A.a.helper.completeDimensions(x,this.getSource(),{encodeDef:this.get("encode"),dimsDef:this.get("dimensions")}),a=new A.a.List(m,this);return a.initData(this.getSource()),a},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,supersampling:1,particleType:"point",particleDensity:128,particleSize:1,particleSpeed:1,particleTrail:2,colorTexture:null,gridWidth:"auto",gridHeight:"auto",itemStyle:{color:"#fff",opacity:.8}}})},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(260),g=E(261),x=E(16);A.a.registerVisual(Object(x.a)("linesGL"))},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(12),g=E.n(_),x=A.a.extendSeriesModel({type:"series.linesGL",dependencies:["grid","geo"],visualColorAccessPath:"lineStyle.color",streamEnabled:!0,init:function(m){var a=this._processFlatCoordsArray(m.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(m.data=new Float32Array(a.count)),x.superApply(this,"init",arguments)},mergeOption:function(m){var a=this._processFlatCoordsArray(m.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(m.data=new Float32Array(a.count)),x.superApply(this,"mergeOption",arguments)},appendData:function(m){var a=this._processFlatCoordsArray(m.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Object(_.concatArray)(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Object(_.concatArray)(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),m.data=new Float32Array(a.count)),this.getRawData().appendData(m.data)},_getCoordsFromItemModel:function(m){var a=this.getData().getItemModel(m),u=a.option instanceof Array?a.option:a.getShallow("coords");if(!(u instanceof Array&&u.length>0&&u[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(u)+". Lines must have 2d coords array in data item.");return u},getLineCoordsCount:function(m){return this._flatCoordsOffset?this._flatCoordsOffset[m*2+1]:this._getCoordsFromItemModel(m).length},getLineCoords:function(m,a){if(this._flatCoordsOffset){for(var u=this._flatCoordsOffset[m*2],h=this._flatCoordsOffset[m*2+1],r=0;ru)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(h.buffer,0,s),flatCoords:r,count:d}}return{flatCoordsOffset:null,flatCoords:null,count:m.length}},getInitialData:function(m,a){var u=new A.a.List(["value"],this);return u.hasItemOption=!1,u.initData(m.data,[],function(h,r,n,s){if(h instanceof Array)return NaN;u.hasItemOption=!0;var d=h.value;if(d!=null)return d instanceof Array?d[s]:d}),u},defaultOption:{coordinateSystem:"geo",zlevel:10,progressive:1e4,progressiveThreshold:5e4,blendMode:"source-over",lineStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}})},function(G,w,E){"use strict";var O=E(0),A=E.n(O),_=E(2),g=E(20),x=E(86),m=E(84),a=E(3);A.a.extendChartView({type:"linesGL",__ecgl__:!0,init:function(u,h){this.groupGL=new _.a.Node,this.viewGL=new g.a("orthographic"),this.viewGL.add(this.groupGL),this._glViewHelper=new m.a(this.viewGL),this._nativeLinesShader=_.a.createShader("ecgl.lines3D"),this._meshLinesShader=_.a.createShader("ecgl.meshLines3D"),this._linesMeshes=[],this._currentStep=0},render:function(u,h,r){this.groupGL.removeAll(),this._glViewHelper.reset(u,r);var n=this._linesMeshes[0];n||(n=this._linesMeshes[0]=this._createLinesMesh(u)),this._linesMeshes.length=1,this.groupGL.add(n),this._updateLinesMesh(u,n,0,u.getData().count()),this.viewGL.setPostEffect(u.getModel("postEffect"),r)},incrementalPrepareRender:function(u,h,r){this.groupGL.removeAll(),this._glViewHelper.reset(u,r),this._currentStep=0,this.viewGL.setPostEffect(u.getModel("postEffect"),r)},incrementalRender:function(u,h,r,n){var s=this._linesMeshes[this._currentStep];s||(s=this._createLinesMesh(h),this._linesMeshes[this._currentStep]=s),this._updateLinesMesh(h,s,u.start,u.end),this.groupGL.add(s),n.getZr().refresh(),this._currentStep++},updateTransform:function(u,h,r){u.coordinateSystem.getRoamTransform&&this._glViewHelper.updateTransform(u,r)},_createLinesMesh:function(u){var h=new _.a.Mesh({$ignorePicking:!0,material:new _.a.Material({shader:_.a.createShader("ecgl.lines3D"),transparent:!0,depthMask:!1,depthTest:!1}),geometry:new x.a({segmentScale:10,useNativeLine:!0,dynamic:!1}),mode:_.a.Mesh.LINES,culling:!1});return h},_updateLinesMesh:function(u,h,r,n){var s=u.getData();h.material.blend=u.get("blendMode")==="lighter"?_.a.additiveBlend:null;var d=u.get("lineStyle.curveness")||0,o=u.get("polyline"),c=h.geometry,f=u.coordinateSystem,e=a.a.firstNotNull(u.get("lineStyle.width"),1);e>1?(h.material.shader!==this._meshLinesShader&&h.material.attachShader(this._meshLinesShader),h.mode=_.a.Mesh.TRIANGLES):(h.material.shader!==this._nativeLinesShader&&h.material.attachShader(this._nativeLinesShader),h.mode=_.a.Mesh.LINES),r=r||0,n=n||s.count(),c.resetOffset();var t=0,i=0,l=[],v=[],y=[],p=[],C=[],S=.3,T=.7;function D(){v[0]=l[0]*T+p[0]*S-(l[1]-p[1])*d,v[1]=l[1]*T+p[1]*S-(p[0]-l[0])*d,y[0]=l[0]*S+p[0]*T-(l[1]-p[1])*d,y[1]=l[1]*S+p[1]*T-(p[0]-l[0])*d}if(o||d!==0)for(var I=r;I0&&(v=e[0]),v instanceof Error)throw v;var y=new Error("Unhandled error."+(v?" ("+v.message+")":""));throw y.context=v,y}var p=l[f];if(p===void 0)return!1;if(typeof p=="function")W(p,this,e);else for(var C=p.length,S=h(p,C),t=0;t0&&v.length>i&&!v.warned){v.warned=!0;var y=new Error("Possible EventEmitter memory leak detected. "+v.length+" "+String(f)+" listeners added. Use emitter.setMaxListeners() to increase limit");y.name="MaxListenersExceededWarning",y.emitter=c,y.type=f,y.count=v.length,G(y)}return c}E.prototype.addListener=function(f,e){return g(this,f,e,!1)},E.prototype.on=E.prototype.addListener,E.prototype.prependListener=function(f,e){return g(this,f,e,!0)};function x(){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 m(c,f,e){var t={fired:!1,wrapFn:void 0,target:c,type:f,listener:e},i=x.bind(t);return i.listener=e,t.wrapFn=i,i}E.prototype.once=function(f,e){return A(e),this.on(f,m(this,f,e)),this},E.prototype.prependOnceListener=function(f,e){return A(e),this.prependListener(f,m(this,f,e)),this},E.prototype.removeListener=function(f,e){var t,i,l,v,y;if(A(e),i=this._events,i===void 0)return this;if(t=i[f],t===void 0)return this;if(t===e||t.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete i[f],i.removeListener&&this.emit("removeListener",f,t.listener||e));else if(typeof t!="function"){for(l=-1,v=t.length-1;v>=0;v--)if(t[v]===e||t[v].listener===e){y=t[v].listener,l=v;break}if(l<0)return this;l===0?t.shift():r(t,l),t.length===1&&(i[f]=t[0]),i.removeListener!==void 0&&this.emit("removeListener",f,y||e)}return this},E.prototype.off=E.prototype.removeListener,E.prototype.removeAllListeners=function(f){var e,t,i;if(t=this._events,t===void 0)return this;if(t.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):t[f]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete t[f]),this;if(arguments.length===0){var l=Object.keys(t),v;for(i=0;i=0;i--)this.removeListener(f,e[i]);return this};function a(c,f,e){var t=c._events;if(t===void 0)return[];var i=t[f];return i===void 0?[]:typeof i=="function"?e?[i.listener||i]:[i]:e?n(i):h(i,i.length)}E.prototype.listeners=function(f){return a(this,f,!0)},E.prototype.rawListeners=function(f){return a(this,f,!1)},E.listenerCount=function(c,f){return typeof c.listenerCount=="function"?c.listenerCount(f):u.call(c,f)},E.prototype.listenerCount=u;function u(c){var f=this._events;if(f!==void 0){var e=f[c];if(typeof e=="function")return 1;if(e!==void 0)return e.length}return 0}E.prototype.eventNames=function(){return this._eventsCount>0?N(this._events):[]};function h(c,f){for(var e=new Array(f),t=0;t0;if(P||L){var se=(0,g.D7)(ae),J=(0,a.Z)(se).length,ie=(0,E.Z)(L)==="object"?L.formatter({value:se,count:J,maxLength:M}):"".concat(J).concat(ee?" / ".concat(M):"");return _.createElement(_.Fragment,null,!!L&&_.createElement("span",{className:A()("".concat(S,"-show-count-suffix"),(0,w.Z)({},"".concat(S,"-show-count-has-suffix"),!!P),H==null?void 0:H.count),style:(0,G.Z)({},K==null?void 0:K.count)},ie),P)}return null};return _.createElement(m,(0,N.Z)({},V,{prefixCls:S,className:I,inputElement:j(),handleReset:ne,value:(0,g.D7)(ae),focused:me,triggerFocus:de,suffix:re(),disabled:T,classes:U,classNames:H,styles:K}))}),o=d,c=o},5643:function(ft,Me,W){"use strict";W.d(Me,{D7:function(){return O},He:function(){return N},X3:function(){return G},nH:function(){return E},rJ:function(){return w}});function N(A){return!!(A.addonBefore||A.addonAfter)}function G(A){return!!(A.prefix||A.suffix||A.allowClear)}function w(A,_,g,x){if(g){var m=_;if(_.type==="click"){var a=A.cloneNode(!0);m=Object.create(_,{target:{value:a},currentTarget:{value:a}}),a.value="",g(m);return}if(x!==void 0){m=Object.create(_,{target:{value:A},currentTarget:{value:A}}),A.value=x,g(m);return}g(m)}}function E(A,_){if(A){A.focus(_);var g=_||{},x=g.cursor;if(x){var m=A.value.length;switch(x){case"start":A.setSelectionRange(0,0);break;case"end":A.setSelectionRange(m,m);break;default:A.setSelectionRange(0,m)}}}}function O(A){return typeof A=="undefined"||A===null?"":String(A)}},15285:function(ft,Me,W){"use strict";W.d(Me,{iz:function(){return rt},ck:function(){return st},BW:function(){return ot},sN:function(){return st},Wd:function(){return ye},ZP:function(){return Ut},Xl:function(){return p}});var N=W(54476),G=W(20068),w=W(33885),E=W(94480),O=W(42978),A=W(75931),_=W(92310),g=W.n(_),x=W(83836),m=W(18929),a=W(13697),u=W(48736),h=W(59301),r=W(4676),n=h.createContext(null);function s(Oe,we){return Oe===void 0?null:"".concat(Oe,"-").concat(we)}function d(Oe){var we=h.useContext(n);return s(we,Oe)}var o=W(80547),c=["children","locked"],f=h.createContext(null);function e(Oe,we){var Be=(0,w.Z)({},Oe);return Object.keys(we).forEach(function(je){var Se=we[je];Se!==void 0&&(Be[je]=Se)}),Be}function t(Oe){var we=Oe.children,Be=Oe.locked,je=(0,A.Z)(Oe,c),Se=h.useContext(f),He=(0,o.Z)(function(){return e(Se,je)},[Se,je],function(We,dt){return!Be&&(We[0]!==dt[0]||!(0,a.Z)(We[1],dt[1],!0))});return h.createElement(f.Provider,{value:He},we)}var i=[],l=h.createContext(null);function v(){return h.useContext(l)}var y=h.createContext(i);function p(Oe){var we=h.useContext(y);return h.useMemo(function(){return Oe!==void 0?[].concat((0,E.Z)(we),[Oe]):we},[we,Oe])}var C=h.createContext(null),S=h.createContext({}),T=S,D=W(29194);function I(Oe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,D.Z)(Oe)){var Be=Oe.nodeName.toLowerCase(),je=["input","select","textarea","button"].includes(Be)||Oe.isContentEditable||Be==="a"&&!!Oe.getAttribute("href"),Se=Oe.getAttribute("tabindex"),He=Number(Se),We=null;return Se&&!Number.isNaN(He)?We=He:je&&We===null&&(We=0),je&&Oe.disabled&&(We=null),We!==null&&(We>=0||we&&We<0)}return!1}function M(Oe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Be=(0,E.Z)(Oe.querySelectorAll("*")).filter(function(je){return I(je,we)});return I(Oe,we)&&Be.unshift(Oe),Be}var P=null;function L(){P=document.activeElement}function R(){P=null}function B(){if(P)try{P.focus()}catch(Oe){}}function U(Oe,we){if(we.keyCode===9){var Be=M(Oe),je=Be[we.shiftKey?0:Be.length-1],Se=je===document.activeElement||Oe===document.activeElement;if(Se){var He=Be[we.shiftKey?Be.length-1:0];He.focus(),we.preventDefault()}}}var H=W(10228),K=W(16089),V=H.Z.LEFT,k=H.Z.RIGHT,$=H.Z.UP,ae=H.Z.DOWN,le=H.Z.ENTER,he=H.Z.ESC,ge=H.Z.HOME,me=H.Z.END,pe=[$,ae,V,k];function Ee(Oe,we,Be,je){var Se,He,We,dt,St="prev",Ot="next",Wt="children",Pt="parent";if(Oe==="inline"&&je===le)return{inlineTrigger:!0};var Te=(Se={},(0,G.Z)(Se,$,St),(0,G.Z)(Se,ae,Ot),Se),Mt=(He={},(0,G.Z)(He,V,Be?Ot:St),(0,G.Z)(He,k,Be?St:Ot),(0,G.Z)(He,ae,Wt),(0,G.Z)(He,le,Wt),He),Dt=(We={},(0,G.Z)(We,$,St),(0,G.Z)(We,ae,Ot),(0,G.Z)(We,le,Wt),(0,G.Z)(We,he,Pt),(0,G.Z)(We,V,Be?Wt:Pt),(0,G.Z)(We,k,Be?Pt:Wt),We),Zt={inline:Te,horizontal:Mt,vertical:Dt,inlineSub:Te,horizontalSub:Dt,verticalSub:Dt},Nt=(dt=Zt["".concat(Oe).concat(we?"":"Sub")])===null||dt===void 0?void 0:dt[je];switch(Nt){case St:return{offset:-1,sibling:!0};case Ot:return{offset:1,sibling:!0};case Pt:return{offset:-1,sibling:!1};case Wt:return{offset:1,sibling:!1};default:return null}}function de(Oe){for(var we=Oe;we;){if(we.getAttribute("data-menu-list"))return we;we=we.parentElement}return null}function ve(Oe,we){for(var Be=Oe||document.activeElement;Be;){if(we.has(Be))return Be;Be=Be.parentElement}return null}function ce(Oe,we){var Be=M(Oe,!0);return Be.filter(function(je){return we.has(je)})}function oe(Oe,we,Be){var je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Oe)return null;var Se=ce(Oe,we),He=Se.length,We=Se.findIndex(function(dt){return Be===dt});return je<0?We===-1?We=He-1:We-=1:je>0&&(We+=1),We=(We+He)%He,Se[We]}var X=function(we,Be){var je=new Set,Se=new Map,He=new Map;return we.forEach(function(We){var dt=document.querySelector("[data-menu-id='".concat(s(Be,We),"']"));dt&&(je.add(dt),He.set(dt,We),Se.set(We,dt))}),{elements:je,key2element:Se,element2key:He}};function ne(Oe,we,Be,je,Se,He,We,dt,St,Ot){var Wt=h.useRef(),Pt=h.useRef();Pt.current=we;var Te=function(){K.Z.cancel(Wt.current)};return h.useEffect(function(){return function(){Te()}},[]),function(Mt){var Dt=Mt.which;if([].concat(pe,[le,he,ge,me]).includes(Dt)){var Zt=He(),Nt=X(Zt,je),lr=Nt,rr=lr.elements,er=lr.key2element,ir=lr.element2key,Jt=er.get(we),cr=ve(Jt,rr),Cr=ir.get(cr),Ht=Ee(Oe,We(Cr,!0).length===1,Be,Dt);if(!Ht&&Dt!==ge&&Dt!==me)return;(pe.includes(Dt)||[ge,me].includes(Dt))&&Mt.preventDefault();var Gt=function(hr){if(hr){var xr=hr,wt=hr.querySelector("a");wt!=null&&wt.getAttribute("href")&&(xr=wt);var bt=ir.get(hr);dt(bt),Te(),Wt.current=(0,K.Z)(function(){Pt.current===bt&&xr.focus()})}};if([ge,me].includes(Dt)||Ht.sibling||!cr){var Vt;!cr||Oe==="inline"?Vt=Se.current:Vt=de(cr);var or,nr=ce(Vt,rr);Dt===ge?or=nr[0]:Dt===me?or=nr[nr.length-1]:or=oe(Vt,rr,cr,Ht.offset),Gt(or)}else if(Ht.inlineTrigger)St(Cr);else if(Ht.offset>0)St(Cr,!0),Te(),Wt.current=(0,K.Z)(function(){Nt=X(Zt,je);var pr=cr.getAttribute("aria-controls"),hr=document.getElementById(pr),xr=oe(hr,Nt.elements);Gt(xr)},5);else if(Ht.offset<0){var ar=We(Cr,!0),tr=ar[ar.length-2],dr=er.get(tr);St(tr,!1),Gt(dr)}}Ot==null||Ot(Mt)}}function j(Oe){Promise.resolve().then(Oe)}var re="__RC_UTIL_PATH_SPLIT__",Z=function(we){return we.join(re)},ee=function(we){return we.split(re)},se="rc-menu-more";function J(){var Oe=h.useState({}),we=(0,O.Z)(Oe,2),Be=we[1],je=(0,h.useRef)(new Map),Se=(0,h.useRef)(new Map),He=h.useState([]),We=(0,O.Z)(He,2),dt=We[0],St=We[1],Ot=(0,h.useRef)(0),Wt=(0,h.useRef)(!1),Pt=function(){Wt.current||Be({})},Te=(0,h.useCallback)(function(er,ir){var Jt=Z(ir);Se.current.set(Jt,er),je.current.set(er,Jt),Ot.current+=1;var cr=Ot.current;j(function(){cr===Ot.current&&Pt()})},[]),Mt=(0,h.useCallback)(function(er,ir){var Jt=Z(ir);Se.current.delete(Jt),je.current.delete(er)},[]),Dt=(0,h.useCallback)(function(er){St(er)},[]),Zt=(0,h.useCallback)(function(er,ir){var Jt=je.current.get(er)||"",cr=ee(Jt);return ir&&dt.includes(cr[0])&&cr.unshift(se),cr},[dt]),Nt=(0,h.useCallback)(function(er,ir){return er.some(function(Jt){var cr=Zt(Jt,!0);return cr.includes(ir)})},[Zt]),lr=function(){var ir=(0,E.Z)(je.current.keys());return dt.length&&ir.push(se),ir},rr=(0,h.useCallback)(function(er){var ir="".concat(je.current.get(er)).concat(re),Jt=new Set;return(0,E.Z)(Se.current.keys()).forEach(function(cr){cr.startsWith(ir)&&Jt.add(Se.current.get(cr))}),Jt},[]);return h.useEffect(function(){return function(){Wt.current=!0}},[]),{registerPath:Te,unregisterPath:Mt,refreshOverflowKeys:Dt,isSubPathKey:Nt,getKeyPath:Zt,getKeys:lr,getSubPathKeys:rr}}function ie(Oe){var we=h.useRef(Oe);we.current=Oe;var Be=h.useCallback(function(){for(var je,Se=arguments.length,He=new Array(Se),We=0;We1&&(rr.motionAppear=!1);var er=rr.onVisibleChanged;return rr.onVisibleChanged=function(ir){return!Te.current&&!ir&&Nt(!0),er==null?void 0:er(ir)},Zt?null:h.createElement(t,{mode:He,locked:!Te.current},h.createElement(Y.default,(0,N.Z)({visible:lr},rr,{forceRender:St,removeOnLeave:!1,leavedClassName:"".concat(dt,"-hidden")}),function(ir){var Jt=ir.className,cr=ir.style;return h.createElement(Tt,{id:we,className:Jt,style:cr},Se)}))}var q=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Q=["active"],Pe=function(we){var Be,je=we.style,Se=we.className,He=we.title,We=we.eventKey,dt=we.warnKey,St=we.disabled,Ot=we.internalPopupClose,Wt=we.children,Pt=we.itemIcon,Te=we.expandIcon,Mt=we.popupClassName,Dt=we.popupOffset,Zt=we.popupStyle,Nt=we.onClick,lr=we.onMouseEnter,rr=we.onMouseLeave,er=we.onTitleClick,ir=we.onTitleMouseEnter,Jt=we.onTitleMouseLeave,cr=(0,A.Z)(we,q),Cr=d(We),Ht=h.useContext(f),Gt=Ht.prefixCls,Vt=Ht.mode,or=Ht.openKeys,nr=Ht.disabled,ar=Ht.overflowDisabled,tr=Ht.activeKey,dr=Ht.selectedKeys,pr=Ht.itemIcon,hr=Ht.expandIcon,xr=Ht.onItemClick,wt=Ht.onOpenChange,bt=Ht.onActive,Qt=h.useContext(T),$t=Qt._internalRenderSubMenuItem,gr=h.useContext(C),Ir=gr.isSubPathKey,br=p(),_r="".concat(Gt,"-submenu"),Sr=nr||St,Or=h.useRef(),Tr=h.useRef(),Lr=Pt!=null?Pt:pr,Ar=Te!=null?Te:hr,Mr=or.includes(We),Br=!ar&&Mr,qr=Ir(dr,We),Zr=Ae(We,Sr,ir,Jt),zr=Zr.active,Kr=(0,A.Z)(Zr,Q),sn=h.useState(!1),Wr=(0,O.Z)(sn,2),tn=Wr[0],rn=Wr[1],Xr=function(It){Sr||rn(It)},Nr=function(It){Xr(!0),lr==null||lr({key:We,domEvent:It})},ln=function(It){Xr(!1),rr==null||rr({key:We,domEvent:It})},cn=h.useMemo(function(){return zr||(Vt!=="inline"?tn||Ir([tr],We):!1)},[Vt,zr,tr,tn,We,Ir]),nn=Qe(br.length),Ue=function(It){Sr||(er==null||er({key:We,domEvent:It}),Vt==="inline"&&wt(We,!Mr))},Re=ie(function(kt){Nt==null||Nt(tt(kt)),xr(kt)}),Ce=function(It){Vt!=="inline"&&wt(We,It)},Ze=function(){bt(We)},ct=Cr&&"".concat(Cr,"-popup"),vt=h.createElement("div",(0,N.Z)({role:"menuitem",style:nn,className:"".concat(_r,"-title"),tabIndex:Sr?null:-1,ref:Or,title:typeof He=="string"?He:null,"data-menu-id":ar&&Cr?null:Cr,"aria-expanded":Br,"aria-haspopup":!0,"aria-controls":ct,"aria-disabled":Sr,onClick:Ue,onFocus:Ze},Kr),He,h.createElement(et,{icon:Vt!=="horizontal"?Ar:void 0,props:(0,w.Z)((0,w.Z)({},we),{},{isOpen:Br,isSubMenu:!0})},h.createElement("i",{className:"".concat(_r,"-arrow")}))),Ge=h.useRef(Vt);if(Vt!=="inline"&&br.length>1?Ge.current="vertical":Ge.current=Vt,!ar){var xt=Ge.current;vt=h.createElement(z,{mode:xt,prefixCls:_r,visible:!Ot&&Br&&Vt!=="inline",popupClassName:Mt,popupOffset:Dt,popupStyle:Zt,popup:h.createElement(t,{mode:xt==="horizontal"?"vertical":xt},h.createElement(Tt,{id:ct,ref:Tr},Wt)),disabled:Sr,onVisibleChange:Ce},vt)}var Ft=h.createElement(x.Z.Item,(0,N.Z)({role:"none"},cr,{component:"li",style:je,className:g()(_r,"".concat(_r,"-").concat(Vt),Se,(Be={},(0,G.Z)(Be,"".concat(_r,"-open"),Br),(0,G.Z)(Be,"".concat(_r,"-active"),cn),(0,G.Z)(Be,"".concat(_r,"-selected"),qr),(0,G.Z)(Be,"".concat(_r,"-disabled"),Sr),Be)),onMouseEnter:Nr,onMouseLeave:ln}),vt,!ar&&h.createElement(te,{id:ct,open:Br,keyPath:br},Wt));return $t&&(Ft=$t(Ft,we,{selected:qr,active:cn,open:Br,disabled:Sr})),h.createElement(t,{onItemClick:Re,mode:Vt==="horizontal"?"vertical":Vt,itemIcon:Lr,expandIcon:Ar},Ft)};function ye(Oe){var we=Oe.eventKey,Be=Oe.children,je=p(we),Se=At(Be,je),He=v();h.useEffect(function(){if(He)return He.registerPath(we,je),function(){He.unregisterPath(we,je)}},[je]);var We;return He?We=Se:We=h.createElement(Pe,Oe,Se),h.createElement(y.Provider,{value:je},We)}var Fe=W(76190),Je=["className","title","eventKey","children"],nt=["children"],Xe=function(we){var Be=we.className,je=we.title,Se=we.eventKey,He=we.children,We=(0,A.Z)(we,Je),dt=h.useContext(f),St=dt.prefixCls,Ot="".concat(St,"-item-group");return h.createElement("li",(0,N.Z)({role:"presentation"},We,{onClick:function(Pt){return Pt.stopPropagation()},className:g()(Ot,Be)}),h.createElement("div",{role:"presentation",className:"".concat(Ot,"-title"),title:typeof je=="string"?je:void 0},je),h.createElement("ul",{role:"group",className:"".concat(Ot,"-list")},He))};function ot(Oe){var we=Oe.children,Be=(0,A.Z)(Oe,nt),je=p(Be.eventKey),Se=At(we,je),He=v();return He?Se:h.createElement(Xe,(0,xe.Z)(Be,["warnKey"]),Se)}function rt(Oe){var we=Oe.className,Be=Oe.style,je=h.useContext(f),Se=je.prefixCls,He=v();return He?null:h.createElement("li",{role:"separator",className:g()("".concat(Se,"-item-divider"),we),style:Be})}var Ye=["label","children","key","type"];function Ve(Oe){return(Oe||[]).map(function(we,Be){if(we&&(0,Fe.Z)(we)==="object"){var je=we,Se=je.label,He=je.children,We=je.key,dt=je.type,St=(0,A.Z)(je,Ye),Ot=We!=null?We:"tmp-".concat(Be);return He||dt==="group"?dt==="group"?h.createElement(ot,(0,N.Z)({key:Ot},St,{title:Se}),Ve(He)):h.createElement(ye,(0,N.Z)({key:Ot},St,{title:Se}),Ve(He)):dt==="divider"?h.createElement(rt,(0,N.Z)({key:Ot},St)):h.createElement(st,(0,N.Z)({key:Ot},St),Se)}return null}).filter(function(we){return we})}function ht(Oe,we,Be){var je=Oe;return we&&(je=Ve(we)),At(je,Be)}var $e=["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"],Et=[],Bt=h.forwardRef(function(Oe,we){var Be,je,Se=Oe,He=Se.prefixCls,We=He===void 0?"rc-menu":He,dt=Se.rootClassName,St=Se.style,Ot=Se.className,Wt=Se.tabIndex,Pt=Wt===void 0?0:Wt,Te=Se.items,Mt=Se.children,Dt=Se.direction,Zt=Se.id,Nt=Se.mode,lr=Nt===void 0?"vertical":Nt,rr=Se.inlineCollapsed,er=Se.disabled,ir=Se.disabledOverflow,Jt=Se.subMenuOpenDelay,cr=Jt===void 0?.1:Jt,Cr=Se.subMenuCloseDelay,Ht=Cr===void 0?.1:Cr,Gt=Se.forceSubMenuRender,Vt=Se.defaultOpenKeys,or=Se.openKeys,nr=Se.activeKey,ar=Se.defaultActiveFirst,tr=Se.selectable,dr=tr===void 0?!0:tr,pr=Se.multiple,hr=pr===void 0?!1:pr,xr=Se.defaultSelectedKeys,wt=Se.selectedKeys,bt=Se.onSelect,Qt=Se.onDeselect,$t=Se.inlineIndent,gr=$t===void 0?24:$t,Ir=Se.motion,br=Se.defaultMotions,_r=Se.triggerSubMenuAction,Sr=_r===void 0?"hover":_r,Or=Se.builtinPlacements,Tr=Se.itemIcon,Lr=Se.expandIcon,Ar=Se.overflowedIndicator,Mr=Ar===void 0?"...":Ar,Br=Se.overflowedIndicatorPopupClassName,qr=Se.getPopupContainer,Zr=Se.onClick,zr=Se.onOpenChange,Kr=Se.onKeyDown,sn=Se.openAnimation,Wr=Se.openTransitionName,tn=Se._internalRenderMenuItem,rn=Se._internalRenderSubMenuItem,Xr=(0,A.Z)(Se,$e),Nr=h.useMemo(function(){return ht(Mt,Te,Et)},[Mt,Te]),ln=h.useState(!1),cn=(0,O.Z)(ln,2),nn=cn[0],Ue=cn[1],Re=h.useRef(),Ce=De(Zt),Ze=Dt==="rtl",ct=(0,m.Z)(Vt,{value:or,postState:function(Dr){return Dr||Et}}),vt=(0,O.Z)(ct,2),Ge=vt[0],xt=vt[1],Ft=function(Dr){var Pr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Qr(){xt(Dr),zr==null||zr(Dr)}Pr?(0,r.flushSync)(Qr):Qr()},kt=h.useState(Ge),It=(0,O.Z)(kt,2),gt=It[0],qt=It[1],ur=h.useRef(!1),Er=h.useMemo(function(){return(lr==="inline"||lr==="vertical")&&rr?["vertical",rr]:[lr,!1]},[lr,rr]),Xt=(0,O.Z)(Er,2),zt=Xt[0],sr=Xt[1],vr=zt==="inline",yr=h.useState(zt),Ur=(0,O.Z)(yr,2),Gr=Ur[0],_n=Ur[1],En=h.useState(sr),vn=(0,O.Z)(En,2),mn=vn[0],An=vn[1];h.useEffect(function(){_n(zt),An(sr),ur.current&&(vr?xt(gt):Ft(Et))},[zt,sr]);var Yr=h.useState(0),an=(0,O.Z)(Yr,2),un=an[0],gn=an[1],$r=un>=Nr.length-1||Gr!=="horizontal"||ir;h.useEffect(function(){vr&&qt(Ge)},[Ge]),h.useEffect(function(){return ur.current=!0,function(){ur.current=!1}},[]);var Hr=J(),hn=Hr.registerPath,yn=Hr.unregisterPath,xn=Hr.refreshOverflowKeys,dn=Hr.isSubPathKey,mr=Hr.getKeyPath,fr=Hr.getKeys,Fr=Hr.getSubPathKeys,Vr=h.useMemo(function(){return{registerPath:hn,unregisterPath:yn}},[hn,yn]),Rr=h.useMemo(function(){return{isSubPathKey:dn}},[dn]);h.useEffect(function(){xn($r?Et:Nr.slice(un+1).map(function(wr){return wr.key}))},[un,$r]);var jr=(0,m.Z)(nr||ar&&((Be=Nr[0])===null||Be===void 0?void 0:Be.key),{value:nr}),kr=(0,O.Z)(jr,2),on=kr[0],en=kr[1],pn=ie(function(wr){en(wr)}),fn=ie(function(){en(void 0)});(0,h.useImperativeHandle)(we,function(){return{list:Re.current,focus:function(Dr){var Pr,Qr=fr(),Jr=X(Qr,Ce),bn=Jr.elements,Tn=Jr.key2element,zn=Jr.element2key,Rn=ce(Re.current,bn),wn=on!=null?on:Rn[0]?zn.get(Rn[0]):(Pr=Nr.find(function(Kn){return!Kn.props.disabled}))===null||Pr===void 0?void 0:Pr.key,Cn=Tn.get(wn);if(wn&&Cn){var On;Cn==null||(On=Cn.focus)===null||On===void 0||On.call(Cn,Dr)}}}});var Sn=(0,m.Z)(xr||[],{value:wt,postState:function(Dr){return Array.isArray(Dr)?Dr:Dr==null?Et:[Dr]}}),Mn=(0,O.Z)(Sn,2),Dn=Mn[0],In=Mn[1],Ln=function(Dr){if(dr){var Pr=Dr.key,Qr=Dn.includes(Pr),Jr;hr?Qr?Jr=Dn.filter(function(Tn){return Tn!==Pr}):Jr=[].concat((0,E.Z)(Dn),[Pr]):Jr=[Pr],In(Jr);var bn=(0,w.Z)((0,w.Z)({},Dr),{},{selectedKeys:Jr});Qr?Qt==null||Qt(bn):bt==null||bt(bn)}!hr&&Ge.length&&Gr!=="inline"&&Ft(Et)},Bn=ie(function(wr){Zr==null||Zr(tt(wr)),Ln(wr)}),Pn=ie(function(wr,Dr){var Pr=Ge.filter(function(Jr){return Jr!==wr});if(Dr)Pr.push(wr);else if(Gr!=="inline"){var Qr=Fr(wr);Pr=Pr.filter(function(Jr){return!Qr.has(Jr)})}(0,a.Z)(Ge,Pr,!0)||Ft(Pr,!0)}),Nn=function(Dr,Pr){var Qr=Pr!=null?Pr:!Ge.includes(Dr);Pn(Dr,Qr)},Un=ne(Gr,on,Ze,Ce,Re,fr,mr,en,Nn,Kr);h.useEffect(function(){Ue(!0)},[]);var Fn=h.useMemo(function(){return{_internalRenderMenuItem:tn,_internalRenderSubMenuItem:rn}},[tn,rn]),Wn=Gr!=="horizontal"||ir?Nr:Nr.map(function(wr,Dr){return h.createElement(t,{key:wr.key,overflowDisabled:Dr>un},wr)}),Hn=h.createElement(x.Z,(0,N.Z)({id:Zt,ref:Re,prefixCls:"".concat(We,"-overflow"),component:"ul",itemComponent:st,className:g()(We,"".concat(We,"-root"),"".concat(We,"-").concat(Gr),Ot,(je={},(0,G.Z)(je,"".concat(We,"-inline-collapsed"),mn),(0,G.Z)(je,"".concat(We,"-rtl"),Ze),je),dt),dir:Dt,style:St,role:"menu",tabIndex:Pt,data:Wn,renderRawItem:function(Dr){return Dr},renderRawRest:function(Dr){var Pr=Dr.length,Qr=Pr?Nr.slice(-Pr):null;return h.createElement(ye,{eventKey:se,title:Mr,disabled:$r,internalPopupClose:Pr===0,popupClassName:Br},Qr)},maxCount:Gr!=="horizontal"||ir?x.Z.INVALIDATE:x.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Dr){gn(Dr)},onKeyDown:Un},Xr));return h.createElement(T.Provider,{value:Fn},h.createElement(n.Provider,{value:Ce},h.createElement(t,{prefixCls:We,rootClassName:dt,mode:Gr,openKeys:Ge,rtl:Ze,disabled:er,motion:nn?Ir:null,defaultMotions:nn?br:null,activeKey:on,onActive:pn,onInactive:fn,selectedKeys:Dn,inlineIndent:gr,subMenuOpenDelay:cr,subMenuCloseDelay:Ht,forceSubMenuRender:Gt,builtinPlacements:Or,triggerSubMenuAction:Sr,getPopupContainer:qr,itemIcon:Tr,expandIcon:Lr,onItemClick:Bn,onOpenChange:Pn},h.createElement(C.Provider,{value:Rr},Hn),h.createElement("div",{style:{display:"none"},"aria-hidden":!0},h.createElement(l.Provider,{value:Vr},Nr)))))}),Kt=Bt,ut=Kt;ut.Item=st,ut.SubMenu=ye,ut.ItemGroup=ot,ut.Divider=rt;var Ut=ut},83836:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return L}});var N=W(54476),G=W(33885),w=W(42978),E=W(75931),O=W(59301),A=W(92310),_=W.n(A),g=W(29301),x=W(34280),m=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],a=void 0;function u(R,B){var U=R.prefixCls,H=R.invalidate,K=R.item,V=R.renderItem,k=R.responsive,$=R.responsiveDisabled,ae=R.registerSize,le=R.itemKey,he=R.className,ge=R.style,me=R.children,pe=R.display,Ee=R.order,de=R.component,ve=de===void 0?"div":de,ce=(0,E.Z)(R,m),oe=k&&!pe;function X(ee){ae(le,ee)}O.useEffect(function(){return function(){X(null)}},[]);var ne=V&&K!==a?V(K,{index:Ee}):me,j;H||(j={opacity:oe?0:1,height:oe?0:a,overflowY:oe?"hidden":a,order:k?Ee:a,pointerEvents:oe?"none":a,position:oe?"absolute":a});var re={};oe&&(re["aria-hidden"]=!0);var Z=O.createElement(ve,(0,N.Z)({className:_()(!H&&U,he),style:(0,G.Z)((0,G.Z)({},j),ge)},re,ce,{ref:B}),ne);return k&&(Z=O.createElement(g.Z,{onResize:function(se){var J=se.offsetWidth;X(J)},disabled:$},Z)),Z}var h=O.forwardRef(u);h.displayName="Item";var r=h,n=W(6089),s=W(4676),d=W(16089);function o(R){if(typeof MessageChannel=="undefined")(0,d.Z)(R);else{var B=new MessageChannel;B.port1.onmessage=function(){return R()},B.port2.postMessage(void 0)}}function c(){var R=O.useRef(null),B=function(H){R.current||(R.current=[],o(function(){(0,s.unstable_batchedUpdates)(function(){R.current.forEach(function(K){K()}),R.current=null})})),R.current.push(H)};return B}function f(R,B){var U=O.useState(B),H=(0,w.Z)(U,2),K=H[0],V=H[1],k=(0,n.Z)(function($){R(function(){V($)})});return[K,k]}var e=O.createContext(null),t=["component"],i=["className"],l=["className"],v=function(B,U){var H=O.useContext(e);if(!H){var K=B.component,V=K===void 0?"div":K,k=(0,E.Z)(B,t);return O.createElement(V,(0,N.Z)({},k,{ref:U}))}var $=H.className,ae=(0,E.Z)(H,i),le=B.className,he=(0,E.Z)(B,l);return O.createElement(e.Provider,{value:null},O.createElement(r,(0,N.Z)({ref:U,className:_()($,le)},ae,he)))},y=O.forwardRef(v);y.displayName="RawItem";var p=y,C=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],S="responsive",T="invalidate";function D(R){return"+ ".concat(R.length," ...")}function I(R,B){var U=R.prefixCls,H=U===void 0?"rc-overflow":U,K=R.data,V=K===void 0?[]:K,k=R.renderItem,$=R.renderRawItem,ae=R.itemKey,le=R.itemWidth,he=le===void 0?10:le,ge=R.ssr,me=R.style,pe=R.className,Ee=R.maxCount,de=R.renderRest,ve=R.renderRawRest,ce=R.prefix,oe=R.suffix,X=R.component,ne=X===void 0?"div":X,j=R.itemComponent,re=R.onVisibleChange,Z=(0,E.Z)(R,C),ee=ge==="full",se=c(),J=f(se,null),ie=(0,w.Z)(J,2),fe=ie[0],_e=ie[1],De=fe||0,Ie=f(se,new Map),Ne=(0,w.Z)(Ie,2),Le=Ne[0],ue=Ne[1],xe=f(se,0),be=(0,w.Z)(xe,2),Ae=be[0],Qe=be[1],et=f(se,0),at=(0,w.Z)(et,2),tt=at[0],_t=at[1],ze=f(se,0),Ke=(0,w.Z)(ze,2),ke=Ke[0],Rt=Ke[1],it=f(se,0),st=(0,w.Z)(it,2),pt=st[0],yt=st[1],mt=(0,O.useState)(null),Tt=(0,w.Z)(mt,2),lt=Tt[0],At=Tt[1],Lt=(0,O.useState)(null),Ct=(0,w.Z)(Lt,2),jt=Ct[0],Yt=Ct[1],qe=O.useMemo(function(){return jt===null&&ee?Number.MAX_SAFE_INTEGER:jt||0},[jt,fe]),b=(0,O.useState)(!1),F=(0,w.Z)(b,2),z=F[0],Y=F[1],te="".concat(H,"-item"),q=Math.max(Ae,tt),Q=Ee===S,Pe=V.length&&Q,ye=Ee===T,Fe=Pe||typeof Ee=="number"&&V.length>Ee,Je=(0,O.useMemo)(function(){var He=V;return Pe?fe===null&&ee?He=V:He=V.slice(0,Math.min(V.length,De/he)):typeof Ee=="number"&&(He=V.slice(0,Ee)),He},[V,he,fe,Ee,Pe]),nt=(0,O.useMemo)(function(){return Pe?V.slice(qe+1):V.slice(Je.length)},[V,Je,Pe,qe]),Xe=(0,O.useCallback)(function(He,We){var dt;return typeof ae=="function"?ae(He):(dt=ae&&(He==null?void 0:He[ae]))!==null&&dt!==void 0?dt:We},[ae]),ot=(0,O.useCallback)(k||function(He){return He},[k]);function rt(He,We,dt){jt===He&&(We===void 0||We===lt)||(Yt(He),dt||(Y(HeDe){rt(St-1,He-Ot-pt+tt);break}}oe&&Bt(0)+pt>De&&At(null)}},[De,Le,tt,ke,pt,Xe,Je]);var Kt=z&&!!nt.length,ut={};lt!==null&&Pe&&(ut={position:"absolute",left:lt,top:0});var Ut={prefixCls:te,responsive:Pe,component:j,invalidate:ye},Oe=$?function(He,We){var dt=Xe(He,We);return O.createElement(e.Provider,{key:dt,value:(0,G.Z)((0,G.Z)({},Ut),{},{order:We,item:He,itemKey:dt,registerSize:Ve,display:We<=qe})},$(He,We))}:function(He,We){var dt=Xe(He,We);return O.createElement(r,(0,N.Z)({},Ut,{order:We,key:dt,item:He,renderItem:ot,itemKey:dt,registerSize:Ve,display:We<=qe}))},we={order:Kt?qe:Number.MAX_SAFE_INTEGER,className:"".concat(te,"-rest"),registerSize:ht,display:Kt},Be=de||D,je=ve?O.createElement(e.Provider,{value:(0,G.Z)((0,G.Z)({},Ut),we)},ve(nt)):O.createElement(r,(0,N.Z)({},Ut,we),typeof Be=="function"?Be(nt):Be),Se=O.createElement(ne,(0,N.Z)({className:_()(!ye&&H,pe),style:me,ref:B},Z),ce&&O.createElement(r,(0,N.Z)({},Ut,{responsive:Q,responsiveDisabled:!Pe,order:-1,className:"".concat(te,"-prefix"),registerSize:$e,display:!0}),ce),Je.map(Oe),Fe?je:null,oe&&O.createElement(r,(0,N.Z)({},Ut,{responsive:Q,responsiveDisabled:!Pe,order:qe,className:"".concat(te,"-suffix"),registerSize:Et,display:!0,style:ut}),oe));return Q?O.createElement(g.Z,{onResize:Ye,disabled:!Pe},Se):Se}var M=O.forwardRef(I);M.displayName="Overflow",M.Item=p,M.RESPONSIVE=S,M.INVALIDATE=T;var P=M,L=P},17115:function(ft,Me,W){"use strict";W.d(Me,{ZP:function(){return _}});var N=W(42978),G=W(59301),w=W(47273),E=0,O=(0,w.Z)();function A(){var g;return O?(g=E,E+=1):g="TEST_OR_SSR",g}function _(g){var x=G.useState(),m=(0,N.Z)(x,2),a=m[0],u=m[1];return G.useEffect(function(){u("rc_select_".concat(A()))},[]),g||a}},77861:function(ft,Me,W){"use strict";W.d(Me,{Ac:function(){return fe},Xo:function(){return tt},Wx:function(){return ze},ZP:function(){return te},lk:function(){return e}});var N=W(54476),G=W(94480),w=W(20068),E=W(33885),O=W(42978),A=W(75931),_=W(76190),g=W(18929),x=W(48736),m=W(59301),a=W(92310),u=W.n(a),h=W(34280),r=W(49658),n=W(10228),s=W(8654),d=function(Q){var Pe=Q.className,ye=Q.customizeIcon,Fe=Q.customizeIconProps,Je=Q.onMouseDown,nt=Q.onClick,Xe=Q.children,ot;return typeof ye=="function"?ot=ye(Fe):ot=ye,m.createElement("span",{className:Pe,onMouseDown:function(Ye){Ye.preventDefault(),Je&&Je(Ye)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:nt,"aria-hidden":!0},ot!==void 0?ot:m.createElement("span",{className:u()(Pe.split(/\s+/).map(function(rt){return"".concat(rt,"-icon")}))},Xe))},o=d;function c(q,Q,Pe,ye,Fe){var Je=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,nt=arguments.length>6?arguments[6]:void 0,Xe=arguments.length>7?arguments[7]:void 0,ot=m.useMemo(function(){if((0,_.Z)(ye)==="object")return ye.clearIcon;if(Fe)return Fe},[ye,Fe]),rt=m.useMemo(function(){return!!(!Je&&ye&&(Pe.length||nt)&&!(Xe==="combobox"&&nt===""))},[ye,Je,Pe.length,nt,Xe]);return{allowClear:rt,clearIcon:m.createElement(o,{className:"".concat(q,"-clear"),onMouseDown:Q,customizeIcon:ot},"\xD7")}}var f=m.createContext(null);function e(){return m.useContext(f)}function t(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Q=m.useState(!1),Pe=(0,O.Z)(Q,2),ye=Pe[0],Fe=Pe[1],Je=m.useRef(null),nt=function(){window.clearTimeout(Je.current)};m.useEffect(function(){return nt},[]);var Xe=function(rt,Ye){nt(),Je.current=window.setTimeout(function(){Fe(rt),Ye&&Ye()},q)};return[ye,Xe,nt]}function i(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Q=m.useRef(null),Pe=m.useRef(null);m.useEffect(function(){return function(){window.clearTimeout(Pe.current)}},[]);function ye(Fe){(Fe||Q.current===null)&&(Q.current=Fe),window.clearTimeout(Pe.current),Pe.current=window.setTimeout(function(){Q.current=null},q)}return[function(){return Q.current},ye]}function l(q,Q,Pe,ye){var Fe=m.useRef(null);Fe.current={open:Q,triggerOpen:Pe,customizedTrigger:ye},m.useEffect(function(){function Je(nt){var Xe;if(!((Xe=Fe.current)!==null&&Xe!==void 0&&Xe.customizedTrigger)){var ot=nt.target;ot.shadowRoot&&nt.composed&&(ot=nt.composedPath()[0]||ot),Fe.current.open&&q().filter(function(rt){return rt}).every(function(rt){return!rt.contains(ot)&&rt!==ot})&&Fe.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Je),function(){return window.removeEventListener("mousedown",Je)}},[])}var v=W(26112),y=W(83836),p=function(Q,Pe){var ye,Fe,Je=Q.prefixCls,nt=Q.id,Xe=Q.inputElement,ot=Q.disabled,rt=Q.tabIndex,Ye=Q.autoFocus,Ve=Q.autoComplete,ht=Q.editable,$e=Q.activeDescendantId,Et=Q.value,Bt=Q.maxLength,Kt=Q.onKeyDown,ut=Q.onMouseDown,Ut=Q.onChange,Oe=Q.onPaste,we=Q.onCompositionStart,Be=Q.onCompositionEnd,je=Q.open,Se=Q.attrs,He=Xe||m.createElement("input",null),We=He,dt=We.ref,St=We.props,Ot=St.onKeyDown,Wt=St.onChange,Pt=St.onMouseDown,Te=St.onCompositionStart,Mt=St.onCompositionEnd,Dt=St.style;return(0,x.Kp)(!("maxLength"in He.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),He=m.cloneElement(He,(0,E.Z)((0,E.Z)((0,E.Z)({type:"search"},St),{},{id:nt,ref:(0,s.sQ)(Pe,dt),disabled:ot,tabIndex:rt,autoComplete:Ve||"off",autoFocus:Ye,className:u()("".concat(Je,"-selection-search-input"),(ye=He)===null||ye===void 0||(Fe=ye.props)===null||Fe===void 0?void 0:Fe.className),role:"combobox","aria-label":"Search","aria-expanded":je||!1,"aria-haspopup":"listbox","aria-owns":"".concat(nt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(nt,"_list"),"aria-activedescendant":je?$e:void 0},Se),{},{value:ht?Et:"",maxLength:Bt,readOnly:!ht,unselectable:ht?null:"on",style:(0,E.Z)((0,E.Z)({},Dt),{},{opacity:ht?null:0}),onKeyDown:function(Nt){Kt(Nt),Ot&&Ot(Nt)},onMouseDown:function(Nt){ut(Nt),Pt&&Pt(Nt)},onChange:function(Nt){Ut(Nt),Wt&&Wt(Nt)},onCompositionStart:function(Nt){we(Nt),Te&&Te(Nt)},onCompositionEnd:function(Nt){Be(Nt),Mt&&Mt(Nt)},onPaste:Oe})),He},C=m.forwardRef(p);C.displayName="Input";var S=C;function T(q){return Array.isArray(q)?q:q!==void 0?[q]:[]}var D=typeof window!="undefined"&&window.document&&window.document.documentElement,I=D;function M(q){return q!=null}function P(q){return!q&&q!==0}function L(q){return["string","number"].includes((0,_.Z)(q))}function R(q){var Q=void 0;return q&&(L(q.title)?Q=q.title.toString():L(q.label)&&(Q=q.label.toString())),Q}function B(q,Q){I?m.useLayoutEffect(q,Q):m.useEffect(q,Q)}function U(q){var Q;return(Q=q.key)!==null&&Q!==void 0?Q:q.value}var H=function(Q){Q.preventDefault(),Q.stopPropagation()},K=function(Q){var Pe=Q.id,ye=Q.prefixCls,Fe=Q.values,Je=Q.open,nt=Q.searchValue,Xe=Q.autoClearSearchValue,ot=Q.inputRef,rt=Q.placeholder,Ye=Q.disabled,Ve=Q.mode,ht=Q.showSearch,$e=Q.autoFocus,Et=Q.autoComplete,Bt=Q.activeDescendantId,Kt=Q.tabIndex,ut=Q.removeIcon,Ut=Q.maxTagCount,Oe=Q.maxTagTextLength,we=Q.maxTagPlaceholder,Be=we===void 0?function(tr){return"+ ".concat(tr.length," ...")}:we,je=Q.tagRender,Se=Q.onToggleOpen,He=Q.onRemove,We=Q.onInputChange,dt=Q.onInputPaste,St=Q.onInputKeyDown,Ot=Q.onInputMouseDown,Wt=Q.onInputCompositionStart,Pt=Q.onInputCompositionEnd,Te=m.useRef(null),Mt=(0,m.useState)(0),Dt=(0,O.Z)(Mt,2),Zt=Dt[0],Nt=Dt[1],lr=(0,m.useState)(!1),rr=(0,O.Z)(lr,2),er=rr[0],ir=rr[1],Jt="".concat(ye,"-selection"),cr=Je||Ve==="multiple"&&Xe===!1||Ve==="tags"?nt:"",Cr=Ve==="tags"||Ve==="multiple"&&Xe===!1||ht&&(Je||er);B(function(){Nt(Te.current.scrollWidth)},[cr]);function Ht(tr,dr,pr,hr,xr){return m.createElement("span",{className:u()("".concat(Jt,"-item"),(0,w.Z)({},"".concat(Jt,"-item-disabled"),pr)),title:R(tr)},m.createElement("span",{className:"".concat(Jt,"-item-content")},dr),hr&&m.createElement(o,{className:"".concat(Jt,"-item-remove"),onMouseDown:H,onClick:xr,customizeIcon:ut},"\xD7"))}function Gt(tr,dr,pr,hr,xr){var wt=function(Qt){H(Qt),Se(!Je)};return m.createElement("span",{onMouseDown:wt},je({label:dr,value:tr,disabled:pr,closable:hr,onClose:xr}))}function Vt(tr){var dr=tr.disabled,pr=tr.label,hr=tr.value,xr=!Ye&&!dr,wt=pr;if(typeof Oe=="number"&&(typeof pr=="string"||typeof pr=="number")){var bt=String(wt);bt.length>Oe&&(wt="".concat(bt.slice(0,Oe),"..."))}var Qt=function(gr){gr&&gr.stopPropagation(),He(tr)};return typeof je=="function"?Gt(hr,wt,dr,xr,Qt):Ht(tr,wt,dr,xr,Qt)}function or(tr){var dr=typeof Be=="function"?Be(tr):Be;return Ht({title:dr},dr,!1)}var nr=m.createElement("div",{className:"".concat(Jt,"-search"),style:{width:Zt},onFocus:function(){ir(!0)},onBlur:function(){ir(!1)}},m.createElement(S,{ref:ot,open:Je,prefixCls:ye,id:Pe,inputElement:null,disabled:Ye,autoFocus:$e,autoComplete:Et,editable:Cr,activeDescendantId:Bt,value:cr,onKeyDown:St,onMouseDown:Ot,onChange:We,onPaste:dt,onCompositionStart:Wt,onCompositionEnd:Pt,tabIndex:Kt,attrs:(0,v.Z)(Q,!0)}),m.createElement("span",{ref:Te,className:"".concat(Jt,"-search-mirror"),"aria-hidden":!0},cr,"\xA0")),ar=m.createElement(y.Z,{prefixCls:"".concat(Jt,"-overflow"),data:Fe,renderItem:Vt,renderRest:or,suffix:nr,itemKey:U,maxCount:Ut});return m.createElement(m.Fragment,null,ar,!Fe.length&&!cr&&m.createElement("span",{className:"".concat(Jt,"-placeholder")},rt))},V=K,k=function(Q){var Pe=Q.inputElement,ye=Q.prefixCls,Fe=Q.id,Je=Q.inputRef,nt=Q.disabled,Xe=Q.autoFocus,ot=Q.autoComplete,rt=Q.activeDescendantId,Ye=Q.mode,Ve=Q.open,ht=Q.values,$e=Q.placeholder,Et=Q.tabIndex,Bt=Q.showSearch,Kt=Q.searchValue,ut=Q.activeValue,Ut=Q.maxLength,Oe=Q.onInputKeyDown,we=Q.onInputMouseDown,Be=Q.onInputChange,je=Q.onInputPaste,Se=Q.onInputCompositionStart,He=Q.onInputCompositionEnd,We=Q.title,dt=m.useState(!1),St=(0,O.Z)(dt,2),Ot=St[0],Wt=St[1],Pt=Ye==="combobox",Te=Pt||Bt,Mt=ht[0],Dt=Kt||"";Pt&&ut&&!Ot&&(Dt=ut),m.useEffect(function(){Pt&&Wt(!1)},[Pt,ut]);var Zt=Ye!=="combobox"&&!Ve&&!Bt?!1:!!Dt,Nt=We===void 0?R(Mt):We,lr=function(){if(Mt)return null;var er=Zt?{visibility:"hidden"}:void 0;return m.createElement("span",{className:"".concat(ye,"-selection-placeholder"),style:er},$e)};return m.createElement(m.Fragment,null,m.createElement("span",{className:"".concat(ye,"-selection-search")},m.createElement(S,{ref:Je,prefixCls:ye,id:Fe,open:Ve,inputElement:Pe,disabled:nt,autoFocus:Xe,autoComplete:ot,editable:Te,activeDescendantId:rt,value:Dt,onKeyDown:Oe,onMouseDown:we,onChange:function(er){Wt(!0),Be(er)},onPaste:je,onCompositionStart:Se,onCompositionEnd:He,tabIndex:Et,attrs:(0,v.Z)(Q,!0),maxLength:Pt?Ut:void 0})),!Pt&&Mt?m.createElement("span",{className:"".concat(ye,"-selection-item"),title:Nt,style:Zt?{visibility:"hidden"}:void 0},Mt.label):null,lr())},$=k;function ae(q){return![n.Z.ESC,n.Z.SHIFT,n.Z.BACKSPACE,n.Z.TAB,n.Z.WIN_KEY,n.Z.ALT,n.Z.META,n.Z.WIN_KEY_RIGHT,n.Z.CTRL,n.Z.SEMICOLON,n.Z.EQUALS,n.Z.CAPS_LOCK,n.Z.CONTEXT_MENU,n.Z.F1,n.Z.F2,n.Z.F3,n.Z.F4,n.Z.F5,n.Z.F6,n.Z.F7,n.Z.F8,n.Z.F9,n.Z.F10,n.Z.F11,n.Z.F12].includes(q)}var le=function(Q,Pe){var ye=(0,m.useRef)(null),Fe=(0,m.useRef)(!1),Je=Q.prefixCls,nt=Q.open,Xe=Q.mode,ot=Q.showSearch,rt=Q.tokenWithEnter,Ye=Q.autoClearSearchValue,Ve=Q.onSearch,ht=Q.onSearchSubmit,$e=Q.onToggleOpen,Et=Q.onInputKeyDown,Bt=Q.domRef;m.useImperativeHandle(Pe,function(){return{focus:function(){ye.current.focus()},blur:function(){ye.current.blur()}}});var Kt=i(0),ut=(0,O.Z)(Kt,2),Ut=ut[0],Oe=ut[1],we=function(Dt){var Zt=Dt.which;(Zt===n.Z.UP||Zt===n.Z.DOWN)&&Dt.preventDefault(),Et&&Et(Dt),Zt===n.Z.ENTER&&Xe==="tags"&&!Fe.current&&!nt&&(ht==null||ht(Dt.target.value)),ae(Zt)&&$e(!0)},Be=function(){Oe(!0)},je=(0,m.useRef)(null),Se=function(Dt){Ve(Dt,!0,Fe.current)!==!1&&$e(!0)},He=function(){Fe.current=!0},We=function(Dt){Fe.current=!1,Xe!=="combobox"&&Se(Dt.target.value)},dt=function(Dt){var Zt=Dt.target.value;if(rt&&je.current&&/[\r\n]/.test(je.current)){var Nt=je.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Zt=Zt.replace(Nt,je.current)}je.current=null,Se(Zt)},St=function(Dt){var Zt=Dt.clipboardData,Nt=Zt.getData("text");je.current=Nt},Ot=function(Dt){var Zt=Dt.target;if(Zt!==ye.current){var Nt=document.body.style.msTouchAction!==void 0;Nt?setTimeout(function(){ye.current.focus()}):ye.current.focus()}},Wt=function(Dt){var Zt=Ut();Dt.target!==ye.current&&!Zt&&Xe!=="combobox"&&Dt.preventDefault(),(Xe!=="combobox"&&(!ot||!Zt)||!nt)&&(nt&&Ye!==!1&&Ve("",!0,!1),$e())},Pt={inputRef:ye,onInputKeyDown:we,onInputMouseDown:Be,onInputChange:dt,onInputPaste:St,onInputCompositionStart:He,onInputCompositionEnd:We},Te=Xe==="multiple"||Xe==="tags"?m.createElement(V,(0,N.Z)({},Q,Pt)):m.createElement($,(0,N.Z)({},Q,Pt));return m.createElement("div",{ref:Bt,className:"".concat(Je,"-selector"),onClick:Ot,onMouseDown:Wt},Te)},he=m.forwardRef(le);he.displayName="Selector";var ge=he,me=W(35593),pe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ee=function(Q){var Pe=Q===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Pe,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Pe,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Pe,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Pe,adjustY:1},htmlRegion:"scroll"}}},de=function(Q,Pe){var ye=Q.prefixCls,Fe=Q.disabled,Je=Q.visible,nt=Q.children,Xe=Q.popupElement,ot=Q.animation,rt=Q.transitionName,Ye=Q.dropdownStyle,Ve=Q.dropdownClassName,ht=Q.direction,$e=ht===void 0?"ltr":ht,Et=Q.placement,Bt=Q.builtinPlacements,Kt=Q.dropdownMatchSelectWidth,ut=Q.dropdownRender,Ut=Q.dropdownAlign,Oe=Q.getPopupContainer,we=Q.empty,Be=Q.getTriggerDOMNode,je=Q.onPopupVisibleChange,Se=Q.onPopupMouseEnter,He=(0,A.Z)(Q,pe),We="".concat(ye,"-dropdown"),dt=Xe;ut&&(dt=ut(Xe));var St=m.useMemo(function(){return Bt||Ee(Kt)},[Bt,Kt]),Ot=ot?"".concat(We,"-").concat(ot):rt,Wt=typeof Kt=="number",Pt=m.useMemo(function(){return Wt?null:Kt===!1?"minWidth":"width"},[Kt,Wt]),Te=Ye;Wt&&(Te=(0,E.Z)((0,E.Z)({},Te),{},{width:Kt}));var Mt=m.useRef(null);return m.useImperativeHandle(Pe,function(){return{getPopupElement:function(){return Mt.current}}}),m.createElement(me.Z,(0,N.Z)({},He,{showAction:je?["click"]:[],hideAction:je?["click"]:[],popupPlacement:Et||($e==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:St,prefixCls:We,popupTransitionName:Ot,popup:m.createElement("div",{ref:Mt,onMouseEnter:Se},dt),stretch:Pt,popupAlign:Ut,popupVisible:Je,getPopupContainer:Oe,popupClassName:u()(Ve,(0,w.Z)({},"".concat(We,"-empty"),we)),popupStyle:Te,getTriggerDOMNode:Be,onPopupVisibleChange:je}),nt)},ve=m.forwardRef(de);ve.displayName="SelectTrigger";var ce=ve,oe=W(66712);function X(q,Q){var Pe=q.key,ye;return"value"in q&&(ye=q.value),Pe!=null?Pe:ye!==void 0?ye:"rc-index-key-".concat(Q)}function ne(q,Q){var Pe=q||{},ye=Pe.label,Fe=Pe.value,Je=Pe.options,nt=Pe.groupLabel,Xe=ye||(Q?"children":"label");return{label:Xe,value:Fe||"value",options:Je||"options",groupLabel:nt||Xe}}function j(q){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=Q.fieldNames,ye=Q.childrenAsData,Fe=[],Je=ne(Pe,!1),nt=Je.label,Xe=Je.value,ot=Je.options,rt=Je.groupLabel;function Ye(Ve,ht){Ve.forEach(function($e){if(ht||!(ot in $e)){var Et=$e[Xe];Fe.push({key:X($e,Fe.length),groupOption:ht,data:$e,label:$e[nt],value:Et})}else{var Bt=$e[rt];Bt===void 0&&ye&&(Bt=$e.label),Fe.push({key:X($e,Fe.length),group:!0,data:$e,label:Bt}),Ye($e[ot],!0)}})}return Ye(q,!1),Fe}function re(q){var Q=(0,E.Z)({},q);return"props"in Q||Object.defineProperty(Q,"props",{get:function(){return(0,x.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Q}}),Q}function Z(q,Q){if(!Q||!Q.length)return null;var Pe=!1;function ye(Je,nt){var Xe=(0,oe.Z)(nt),ot=Xe[0],rt=Xe.slice(1);if(!ot)return[Je];var Ye=Je.split(ot);return Pe=Pe||Ye.length>1,Ye.reduce(function(Ve,ht){return[].concat((0,G.Z)(Ve),(0,G.Z)(ye(ht,rt)))},[]).filter(function(Ve){return Ve})}var Fe=ye(q,Q);return Pe?Fe:null}var ee=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],se=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function J(q){return q==="tags"||q==="multiple"}var ie=m.forwardRef(function(q,Q){var Pe,ye,Fe=q.id,Je=q.prefixCls,nt=q.className,Xe=q.showSearch,ot=q.tagRender,rt=q.direction,Ye=q.omitDomProps,Ve=q.displayValues,ht=q.onDisplayValuesChange,$e=q.emptyOptions,Et=q.notFoundContent,Bt=Et===void 0?"Not Found":Et,Kt=q.onClear,ut=q.mode,Ut=q.disabled,Oe=q.loading,we=q.getInputElement,Be=q.getRawInputElement,je=q.open,Se=q.defaultOpen,He=q.onDropdownVisibleChange,We=q.activeValue,dt=q.onActiveValueChange,St=q.activeDescendantId,Ot=q.searchValue,Wt=q.autoClearSearchValue,Pt=q.onSearch,Te=q.onSearchSplit,Mt=q.tokenSeparators,Dt=q.allowClear,Zt=q.suffixIcon,Nt=q.clearIcon,lr=q.OptionList,rr=q.animation,er=q.transitionName,ir=q.dropdownStyle,Jt=q.dropdownClassName,cr=q.dropdownMatchSelectWidth,Cr=q.dropdownRender,Ht=q.dropdownAlign,Gt=q.placement,Vt=q.builtinPlacements,or=q.getPopupContainer,nr=q.showAction,ar=nr===void 0?[]:nr,tr=q.onFocus,dr=q.onBlur,pr=q.onKeyUp,hr=q.onKeyDown,xr=q.onMouseDown,wt=(0,A.Z)(q,ee),bt=J(ut),Qt=(Xe!==void 0?Xe:bt)||ut==="combobox",$t=(0,E.Z)({},wt);se.forEach(function(mr){delete $t[mr]}),Ye==null||Ye.forEach(function(mr){delete $t[mr]});var gr=m.useState(!1),Ir=(0,O.Z)(gr,2),br=Ir[0],_r=Ir[1];m.useEffect(function(){_r((0,r.Z)())},[]);var Sr=m.useRef(null),Or=m.useRef(null),Tr=m.useRef(null),Lr=m.useRef(null),Ar=m.useRef(null),Mr=t(),Br=(0,O.Z)(Mr,3),qr=Br[0],Zr=Br[1],zr=Br[2];m.useImperativeHandle(Q,function(){var mr,fr;return{focus:(mr=Lr.current)===null||mr===void 0?void 0:mr.focus,blur:(fr=Lr.current)===null||fr===void 0?void 0:fr.blur,scrollTo:function(Vr){var Rr;return(Rr=Ar.current)===null||Rr===void 0?void 0:Rr.scrollTo(Vr)}}});var Kr=m.useMemo(function(){var mr;if(ut!=="combobox")return Ot;var fr=(mr=Ve[0])===null||mr===void 0?void 0:mr.value;return typeof fr=="string"||typeof fr=="number"?String(fr):""},[Ot,ut,Ve]),sn=ut==="combobox"&&typeof we=="function"&&we()||null,Wr=typeof Be=="function"&&Be(),tn=(0,s.x1)(Or,Wr==null||(Pe=Wr.props)===null||Pe===void 0?void 0:Pe.ref),rn=m.useState(!1),Xr=(0,O.Z)(rn,2),Nr=Xr[0],ln=Xr[1];(0,h.Z)(function(){ln(!0)},[]);var cn=(0,g.Z)(!1,{defaultValue:Se,value:je}),nn=(0,O.Z)(cn,2),Ue=nn[0],Re=nn[1],Ce=Nr?Ue:!1,Ze=!Bt&&$e;(Ut||Ze&&Ce&&ut==="combobox")&&(Ce=!1);var ct=Ze?!1:Ce,vt=m.useCallback(function(mr){var fr=mr!==void 0?mr:!Ce;Ut||(Re(fr),Ce!==fr&&(He==null||He(fr)))},[Ut,Ce,Re,He]),Ge=m.useMemo(function(){return(Mt||[]).some(function(mr){return[` `,`\r `].includes(mr)})},[Mt]),xt=function(fr,Fr,Vr){var Rr=!0,jr=fr;dt==null||dt(null);var kr=Vr?null:Z(fr,Mt);return ut!=="combobox"&&kr&&(jr="",Te==null||Te(kr),vt(!1),Rr=!1),Pt&&Kr!==jr&&Pt(jr,{source:Fr?"typing":"effect"}),Rr},Ft=function(fr){!fr||!fr.trim()||Pt(fr,{source:"submit"})};m.useEffect(function(){!Ce&&!bt&&ut!=="combobox"&&xt("",!1,!1)},[Ce]),m.useEffect(function(){Ue&&Ut&&Re(!1),Ut&&Zr(!1)},[Ut]);var kt=i(),It=(0,O.Z)(kt,2),gt=It[0],qt=It[1],ur=function(fr){var Fr=gt(),Vr=fr.which;if(Vr===n.Z.ENTER&&(ut!=="combobox"&&fr.preventDefault(),Ce||vt(!0)),qt(!!Kr),Vr===n.Z.BACKSPACE&&!Fr&&bt&&!Kr&&Ve.length){for(var Rr=(0,G.Z)(Ve),jr=null,kr=Rr.length-1;kr>=0;kr-=1){var on=Rr[kr];if(!on.disabled){Rr.splice(kr,1),jr=on;break}}jr&&ht(Rr,{type:"remove",values:[jr]})}for(var en=arguments.length,pn=new Array(en>1?en-1:0),fn=1;fn1?Fr-1:0),Rr=1;Rr1?kr-1:0),en=1;en1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Le.Z)(q).map(function(Pe,ye){if(!m.isValidElement(Pe)||!Pe.type)return null;var Fe=Pe,Je=Fe.type.isSelectOptGroup,nt=Fe.key,Xe=Fe.props,ot=Xe.children,rt=(0,A.Z)(Xe,xe);return Q||!Je?be(Pe):(0,E.Z)((0,E.Z)({key:"__RC_SELECT_GRP__".concat(nt===null?ye:nt,"__"),label:nt},rt),{},{options:Ae(ot)})}).filter(function(Pe){return Pe})}function Qe(q,Q,Pe,ye,Fe){return m.useMemo(function(){var Je=q,nt=!q;nt&&(Je=Ae(Q));var Xe=new Map,ot=new Map,rt=function(ht,$e,Et){Et&&typeof Et=="string"&&ht.set($e[Et],$e)};function Ye(Ve){for(var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$e=0;$e1&&arguments[1]!==void 0?arguments[1]:1,or=dt.length,nr=0;nr1&&arguments[1]!==void 0?arguments[1]:!1;Zt(Gt);var or={source:Vt?"keyboard":"mouse"},nr=dt[Gt];if(!nr){Bt(null,-1,or);return}Bt(nr.value,Gt,or)};(0,m.useEffect)(function(){Nt(Kt!==!1?Pt(0):-1)},[dt.length,rt]);var lr=m.useCallback(function(Ht){return Oe.has(Ht)&&ot!=="combobox"},[ot,(0,G.Z)(Oe).toString(),Oe.size]);(0,m.useEffect)(function(){var Ht=setTimeout(function(){if(!Xe&&nt&&Oe.size===1){var Vt=Array.from(Oe)[0],or=dt.findIndex(function(nr){var ar=nr.data;return ar.value===Vt});or!==-1&&(Nt(or),Wt(or))}});if(nt){var Gt;(Gt=St.current)===null||Gt===void 0||Gt.scrollTo(void 0)}return function(){return clearTimeout(Ht)}},[nt,rt,Et.length]);var rr=function(Gt){Gt!==void 0&&ut(Gt,{selected:!Oe.has(Gt)}),Xe||Ye(!1)};if(m.useImperativeHandle(Pe,function(){return{onKeyDown:function(Gt){var Vt=Gt.which,or=Gt.ctrlKey;switch(Vt){case n.Z.N:case n.Z.P:case n.Z.UP:case n.Z.DOWN:{var nr=0;if(Vt===n.Z.UP?nr=-1:Vt===n.Z.DOWN?nr=1:pt()&&or&&(Vt===n.Z.N?nr=1:Vt===n.Z.P&&(nr=-1)),nr!==0){var ar=Pt(Dt+nr,nr);Wt(ar),Nt(ar,!0)}break}case n.Z.ENTER:{var tr=dt[Dt];tr&&!tr.data.disabled?rr(tr.value):rr(void 0),nt&&Gt.preventDefault();break}case n.Z.ESC:Ye(!1),nt&&Gt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Gt){Wt(Gt)}}}),dt.length===0)return m.createElement("div",{role:"listbox",id:"".concat(Je,"_list"),className:"".concat(We,"-empty"),onMouseDown:Ot},Ve);var er=Object.keys(we).map(function(Ht){return we[Ht]}),ir=function(Gt){return Gt.label};function Jt(Ht,Gt){var Vt=Ht.group;return{role:Vt?"presentation":"option",id:"".concat(Je,"_list_").concat(Gt)}}var cr=function(Gt){var Vt=dt[Gt];if(!Vt)return null;var or=Vt.data||{},nr=or.value,ar=Vt.group,tr=(0,v.Z)(or,!0),dr=ir(Vt);return Vt?m.createElement("div",(0,N.Z)({"aria-label":typeof dr=="string"&&!ar?dr:null},tr,{key:Gt},Jt(Vt,Gt),{"aria-selected":lr(nr)}),nr):null},Cr={role:"listbox",id:"".concat(Je,"_list")};return m.createElement(m.Fragment,null,Be&&m.createElement("div",(0,N.Z)({},Cr,{style:{height:0,width:0,overflow:"hidden"}}),cr(Dt-1),cr(Dt),cr(Dt+1)),m.createElement(Rt.Z,{itemKey:"key",ref:St,data:dt,height:Se,itemHeight:He,fullHeight:!1,onMouseDown:Ot,onScroll:ht,virtual:Be,direction:je,innerProps:Be?null:Cr},function(Ht,Gt){var Vt,or=Ht.group,nr=Ht.groupOption,ar=Ht.data,tr=Ht.label,dr=Ht.value,pr=ar.key;if(or){var hr,xr=(hr=ar.title)!==null&&hr!==void 0?hr:mt(tr)?tr.toString():void 0;return m.createElement("div",{className:u()(We,"".concat(We,"-group")),title:xr},tr!==void 0?tr:pr)}var wt=ar.disabled,bt=ar.title,Qt=ar.children,$t=ar.style,gr=ar.className,Ir=(0,A.Z)(ar,yt),br=(0,ke.Z)(Ir,er),_r=lr(dr),Sr="".concat(We,"-option"),Or=u()(We,Sr,gr,(Vt={},(0,w.Z)(Vt,"".concat(Sr,"-grouped"),nr),(0,w.Z)(Vt,"".concat(Sr,"-active"),Dt===Gt&&!wt),(0,w.Z)(Vt,"".concat(Sr,"-disabled"),wt),(0,w.Z)(Vt,"".concat(Sr,"-selected"),_r),Vt)),Tr=ir(Ht),Lr=!Ut||typeof Ut=="function"||_r,Ar=typeof Tr=="number"?Tr:Tr||dr,Mr=mt(Ar)?Ar.toString():void 0;return bt!==void 0&&(Mr=bt),m.createElement("div",(0,N.Z)({},(0,v.Z)(br),Be?{}:Jt(Ht,Gt),{"aria-selected":_r,className:Or,title:Mr,onMouseMove:function(){Dt===Gt||wt||Nt(Gt)},onClick:function(){wt||rr(dr)},style:$t}),m.createElement("div",{className:"".concat(Sr,"-content")},Ar),m.isValidElement(Ut)||_r,Lr&&m.createElement(o,{className:"".concat(We,"-option-state"),customizeIcon:Ut,customizeIconProps:{isSelected:_r}},_r?"\u2713":null))}))},lt=m.forwardRef(Tt);lt.displayName="OptionList";var At=lt;function Lt(q){var Q=q.mode,Pe=q.options,ye=q.children,Fe=q.backfill,Je=q.allowClear,nt=q.placeholder,Xe=q.getInputElement,ot=q.showSearch,rt=q.onSearch,Ye=q.defaultOpen,Ve=q.autoFocus,ht=q.labelInValue,$e=q.value,Et=q.inputValue,Bt=q.optionLabelProp,Kt=isMultiple(Q),ut=ot!==void 0?ot:Kt||Q==="combobox",Ut=Pe||convertChildrenToData(ye);if(warning(Q!=="tags"||Ut.every(function(je){return!je.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Q==="tags"||Q==="combobox"){var Oe=Ut.some(function(je){return je.options?je.options.some(function(Se){return typeof("value"in Se?Se.value:Se.key)=="number"}):typeof("value"in je?je.value:je.key)=="number"});warning(!Oe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Q!=="combobox"||!Bt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Q==="combobox"||!Fe,"`backfill` only works with `combobox` mode."),warning(Q==="combobox"||!Xe,"`getInputElement` only work with `combobox` mode."),noteOnce(Q!=="combobox"||!Xe||!Je||!nt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),rt&&!ut&&Q!=="combobox"&&Q!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ye||Ve,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),$e!=null){var we=toArray($e);warning(!ht||we.every(function(je){return _typeof(je)==="object"&&("key"in je||"value"in je)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Kt||Array.isArray($e),"`value` should be array when `mode` is `multiple` or `tags`")}if(ye){var Be=null;toNodeArray(ye).some(function(je){if(!React.isValidElement(je)||!je.type)return!1;var Se=je,He=Se.type;if(He.isSelectOption)return!1;if(He.isSelectOptGroup){var We=toNodeArray(je.props.children).every(function(dt){return!React.isValidElement(dt)||!je.type||dt.type.isSelectOption?!0:(Be=dt.type,!1)});return!We}return Be=He,!0}),Be&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Be.displayName||Be.name||Be,"`.")),warning(Et===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ct(q,Q){if(q){var Pe=function ye(Fe){for(var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=0;nt2&&arguments[2]!==void 0?arguments[2]:{},vt=ct.source,Ge=vt===void 0?"keyboard":vt;tn(Ze),nt&&ye==="combobox"&&Ce!==null&&Ge==="keyboard"&&zr(String(Ce))},[nt,ye]),Nr=function(Ze,ct,vt){var Ge=function(){var zt,sr=gr(Ze);return[Dt?{label:sr==null?void 0:sr[Jt.label],value:Ze,key:(zt=sr==null?void 0:sr.key)!==null&&zt!==void 0?zt:Ze}:Ze,re(sr)]};if(ct&&$e){var xt=Ge(),Ft=(0,O.Z)(xt,2),kt=Ft[0],It=Ft[1];$e(kt,It)}else if(!ct&&Et&&vt!=="clear"){var gt=Ge(),qt=(0,O.Z)(gt,2),ur=qt[0],Er=qt[1];Et(ur,Er)}},ln=et(function(Ce,Ze){var ct,vt=rr?Ze.selected:!0;vt?ct=rr?[].concat((0,G.Z)($t),[Ce]):[Ce]:ct=$t.filter(function(Ge){return Ge.value!==Ce}),Mr(ct),Nr(Ce,vt),ye==="combobox"?zr(""):(!J||ht)&&(Gt(""),zr(""))}),cn=function(Ze,ct){Mr(Ze);var vt=ct.type,Ge=ct.values;(vt==="remove"||vt==="clear")&&Ge.forEach(function(xt){Nr(xt.value,!1,vt)})},nn=function(Ze,ct){if(Gt(Ze),zr(null),ct.source==="submit"){var vt=(Ze||"").trim();if(vt){var Ge=Array.from(new Set([].concat((0,G.Z)(br),[vt])));Mr(Ge),Nr(vt,!0),Gt("")}return}ct.source!=="blur"&&(ye==="combobox"&&Mr(Ze),Ye==null||Ye(Ze))},Ue=function(Ze){var ct=Ze;ye!=="tags"&&(ct=Ze.map(function(Ge){var xt=nr.get(Ge);return xt==null?void 0:xt.value}).filter(function(Ge){return Ge!==void 0}));var vt=Array.from(new Set([].concat((0,G.Z)(br),(0,G.Z)(ct))));Mr(vt),vt.forEach(function(Ge){Nr(Ge,!0)})},Re=m.useMemo(function(){var Ce=We!==!1&&Kt!==!1;return(0,E.Z)((0,E.Z)({},Vt),{},{flattenOptions:Ar,onActiveValue:Xr,defaultActiveFirstOption:rn,onSelect:ln,menuItemSelectedIcon:He,rawValues:br,fieldNames:Jt,virtual:Ce,direction:dt,listHeight:Ot,listItemHeight:Pt,childrenAsData:er})},[Vt,Ar,Xr,rn,ln,He,br,Jt,We,Kt,Ot,Pt,er]);return m.createElement(st.Provider,{value:Re},m.createElement(fe,(0,N.Z)({},Nt,{id:lr,prefixCls:Je,ref:Q,omitDomProps:qe,mode:ye,displayValues:Ir,onDisplayValuesChange:cn,direction:dt,searchValue:Ht,onSearch:nn,autoClearSearchValue:ht,onSearchSplit:Ue,dropdownMatchSelectWidth:Kt,OptionList:At,emptyOptions:!Ar.length,activeValue:Zr,activeDescendantId:"".concat(lr,"_list_").concat(Wr)})))}),z=F;z.Option=ze,z.OptGroup=tt;var Y=z,te=Y},9296:function(ft,Me,W){"use strict";W.r(Me),W.d(Me,{ResizableTextArea:function(){return C},default:function(){return P}});var N=W(54476),G=W(33885),w=W(20068),E=W(76190),O=W(42978),A=W(75931),_=W(94480),g=W(92310),x=W.n(g),m=W(93681),a=W(5643),u=W(18929),h=W(59301),r=W(29301),n=W(34280),s=W(16089),d=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,o=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],c={},f;function e(L){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,B=L.getAttribute("id")||L.getAttribute("data-reactid")||L.getAttribute("name");if(R&&c[B])return c[B];var U=window.getComputedStyle(L),H=U.getPropertyValue("box-sizing")||U.getPropertyValue("-moz-box-sizing")||U.getPropertyValue("-webkit-box-sizing"),K=parseFloat(U.getPropertyValue("padding-bottom"))+parseFloat(U.getPropertyValue("padding-top")),V=parseFloat(U.getPropertyValue("border-bottom-width"))+parseFloat(U.getPropertyValue("border-top-width")),k=o.map(function(ae){return"".concat(ae,":").concat(U.getPropertyValue(ae))}).join(";"),$={sizingStyle:k,paddingSize:K,borderSize:V,boxSizing:H};return R&&B&&(c[B]=$),$}function t(L){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;f||(f=document.createElement("textarea"),f.setAttribute("tab-index","-1"),f.setAttribute("aria-hidden","true"),document.body.appendChild(f)),L.getAttribute("wrap")?f.setAttribute("wrap",L.getAttribute("wrap")):f.removeAttribute("wrap");var H=e(L,R),K=H.paddingSize,V=H.borderSize,k=H.boxSizing,$=H.sizingStyle;f.setAttribute("style","".concat($,";").concat(d)),f.value=L.value||L.placeholder||"";var ae=void 0,le=void 0,he,ge=f.scrollHeight;if(k==="border-box"?ge+=V:k==="content-box"&&(ge-=K),B!==null||U!==null){f.value=" ";var me=f.scrollHeight-K;B!==null&&(ae=me*B,k==="border-box"&&(ae=ae+K+V),ge=Math.max(ae,ge)),U!==null&&(le=me*U,k==="border-box"&&(le=le+K+V),he=ge>le?"":"hidden",ge=Math.min(le,ge))}var pe={height:ge,overflowY:he,resize:"none"};return ae&&(pe.minHeight=ae),le&&(pe.maxHeight=le),pe}var i=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],l=0,v=1,y=2,p=h.forwardRef(function(L,R){var B=L,U=B.prefixCls,H=B.onPressEnter,K=B.defaultValue,V=B.value,k=B.autoSize,$=B.onResize,ae=B.className,le=B.style,he=B.disabled,ge=B.onChange,me=B.onInternalAutoSize,pe=(0,A.Z)(B,i),Ee=(0,u.Z)(K,{value:V,postState:function(tt){return tt!=null?tt:""}}),de=(0,O.Z)(Ee,2),ve=de[0],ce=de[1],oe=function(tt){ce(tt.target.value),ge==null||ge(tt)},X=h.useRef();h.useImperativeHandle(R,function(){return{textArea:X.current}});var ne=h.useMemo(function(){return k&&(0,E.Z)(k)==="object"?[k.minRows,k.maxRows]:[]},[k]),j=(0,O.Z)(ne,2),re=j[0],Z=j[1],ee=!!k,se=function(){try{if(document.activeElement===X.current){var tt=X.current,_t=tt.selectionStart,ze=tt.selectionEnd,Ke=tt.scrollTop;X.current.setSelectionRange(_t,ze),X.current.scrollTop=Ke}}catch(ke){}},J=h.useState(y),ie=(0,O.Z)(J,2),fe=ie[0],_e=ie[1],De=h.useState(),Ie=(0,O.Z)(De,2),Ne=Ie[0],Le=Ie[1],ue=function(){_e(l)};(0,n.Z)(function(){ee&&ue()},[V,re,Z,ee]),(0,n.Z)(function(){if(fe===l)_e(v);else if(fe===v){var at=t(X.current,!1,re,Z);_e(y),Le(at)}else se()},[fe]);var xe=h.useRef(),be=function(){s.Z.cancel(xe.current)},Ae=function(tt){fe===y&&($==null||$(tt),k&&(be(),xe.current=(0,s.Z)(function(){ue()})))};h.useEffect(function(){return be},[]);var Qe=ee?Ne:null,et=(0,G.Z)((0,G.Z)({},le),Qe);return(fe===l||fe===v)&&(et.overflowY="hidden",et.overflowX="hidden"),h.createElement(r.Z,{onResize:Ae,disabled:!(k||$)},h.createElement("textarea",(0,N.Z)({},pe,{ref:X,style:et,className:x()(U,ae,(0,w.Z)({},"".concat(U,"-disabled"),he)),disabled:he,value:ve,onChange:oe})))}),C=p,S=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function T(L,R){return(0,_.Z)(L||"").slice(0,R).join("")}function D(L,R,B,U){var H=B;return L?H=T(B,U):(0,_.Z)(R||"").lengthU&&(H=R),H}var I=h.forwardRef(function(L,R){var B,U=L.defaultValue,H=L.value,K=L.onFocus,V=L.onBlur,k=L.onChange,$=L.allowClear,ae=L.maxLength,le=L.onCompositionStart,he=L.onCompositionEnd,ge=L.suffix,me=L.prefixCls,pe=me===void 0?"rc-textarea":me,Ee=L.classes,de=L.showCount,ve=L.className,ce=L.style,oe=L.disabled,X=L.hidden,ne=L.classNames,j=L.styles,re=L.onResize,Z=(0,A.Z)(L,S),ee=(0,u.Z)(U,{value:H,defaultValue:U}),se=(0,O.Z)(ee,2),J=se[0],ie=se[1],fe=(0,h.useRef)(null),_e=h.useState(!1),De=(0,O.Z)(_e,2),Ie=De[0],Ne=De[1],Le=h.useState(!1),ue=(0,O.Z)(Le,2),xe=ue[0],be=ue[1],Ae=h.useRef(),Qe=h.useRef(0),et=h.useState(null),at=(0,O.Z)(et,2),tt=at[0],_t=at[1],ze=function(){var b;(b=fe.current)===null||b===void 0||b.textArea.focus()};(0,h.useImperativeHandle)(R,function(){return{resizableTextArea:fe.current,focus:ze,blur:function(){var b;(b=fe.current)===null||b===void 0||b.textArea.blur()}}}),(0,h.useEffect)(function(){Ne(function(qe){return!oe&&qe})},[oe]);var Ke=Number(ae)>0,ke=function(b){be(!0),Ae.current=J,Qe.current=b.currentTarget.selectionStart,le==null||le(b)},Rt=function(b){be(!1);var F=b.currentTarget.value;if(Ke){var z,Y=Qe.current>=ae+1||Qe.current===((z=Ae.current)===null||z===void 0?void 0:z.length);F=D(Y,Ae.current,F,ae)}F!==J&&(ie(F),(0,a.rJ)(b.currentTarget,b,k,F)),he==null||he(b)},it=function(b){var F=b.target.value;if(!xe&&Ke){var z=b.target.selectionStart>=ae+1||b.target.selectionStart===F.length||!b.target.selectionStart;F=D(z,J,F,ae)}ie(F),(0,a.rJ)(b.currentTarget,b,k,F)},st=function(b){var F=Z.onPressEnter,z=Z.onKeyDown;b.key==="Enter"&&F&&F(b),z==null||z(b)},pt=function(b){Ne(!0),K==null||K(b)},yt=function(b){Ne(!1),V==null||V(b)},mt=function(b){var F;ie(""),ze(),(0,a.rJ)((F=fe.current)===null||F===void 0?void 0:F.textArea,b,k)},Tt=(0,a.D7)(J);!xe&&Ke&&H==null&&(Tt=T(Tt,ae));var lt=ge,At;if(de){var Lt=(0,_.Z)(Tt).length;(0,E.Z)(de)==="object"?At=de.formatter({value:Tt,count:Lt,maxLength:ae}):At="".concat(Lt).concat(Ke?" / ".concat(ae):""),lt=h.createElement(h.Fragment,null,lt,h.createElement("span",{className:x()("".concat(pe,"-data-count"),ne==null?void 0:ne.count),style:j==null?void 0:j.count},At))}var Ct=function(b){var F;re==null||re(b),(F=fe.current)!==null&&F!==void 0&&F.textArea.style.height&&_t(!0)},jt=!Z.autoSize&&!de&&!$,Yt=h.createElement(m.BaseInput,{value:Tt,allowClear:$,handleReset:mt,suffix:lt,prefixCls:pe,classes:{affixWrapper:x()(Ee==null?void 0:Ee.affixWrapper,(B={},(0,w.Z)(B,"".concat(pe,"-show-count"),de),(0,w.Z)(B,"".concat(pe,"-textarea-allow-clear"),$),B))},disabled:oe,focused:Ie,className:ve,style:(0,G.Z)((0,G.Z)({},ce),tt&&!jt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof At=="string"?At:void 0}},hidden:X,inputElement:h.createElement(C,(0,N.Z)({},Z,{onKeyDown:st,onChange:it,onFocus:pt,onBlur:yt,onCompositionStart:ke,onCompositionEnd:Rt,className:ne==null?void 0:ne.textarea,style:(0,G.Z)((0,G.Z)({},j==null?void 0:j.textarea),{},{resize:ce==null?void 0:ce.resize}),disabled:oe,prefixCls:pe,onResize:Ct,ref:fe}))});return Yt}),M=I,P=M},48911:function(ft,Me,W){"use strict";W.d(Me,{Z:function(){return Ee}});var N=W(54476),G=W(76190),w=W(33885),E=W(20068),O=W(42978),A=W(75931),_=W(92310),g=W.n(_),x=W(29301),m=W(70425),a=W(34280),u=W(59301),h=W(4676),r=u.forwardRef(function(de,ve){var ce=de.height,oe=de.offsetY,X=de.offsetX,ne=de.children,j=de.prefixCls,re=de.onInnerResize,Z=de.innerProps,ee=de.rtl,se=de.extra,J={},ie={display:"flex",flexDirection:"column"};return oe!==void 0&&(J={height:ce,position:"relative",overflow:"hidden"},ie=(0,w.Z)((0,w.Z)({},ie),{},(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({transform:"translateY(".concat(oe,"px)")},ee?"marginRight":"marginLeft",-X),"position","absolute"),"left",0),"right",0),"top",0))),u.createElement("div",{style:J},u.createElement(x.Z,{onResize:function(_e){var De=_e.offsetHeight;De&&re&&re()}},u.createElement("div",(0,N.Z)({style:ie,className:g()((0,E.Z)({},"".concat(j,"-holder-inner"),j)),ref:ve},Z),ne,se)))});r.displayName="Filler";var n=r;function s(de){var ve=de.children,ce=de.setRef,oe=u.useCallback(function(X){ce(X)},[]);return u.cloneElement(ve,{ref:oe})}function d(de,ve,ce,oe,X,ne,j,re){var Z=re.getKey;return de.slice(ve,ce+1).map(function(ee,se){var J=ve+se,ie=j(ee,J,{style:{width:oe},offsetX:X}),fe=Z(ee);return u.createElement(s,{key:fe,setRef:function(De){return ne(ee,De)}},ie)})}function o(de,ve,ce,oe){var X=ce-de,ne=ve-ce,j=Math.min(X,ne)*2;if(oe<=j){var re=Math.floor(oe/2);return oe%2?ce+re+1:ce-re}return X>ne?ce-(oe-ne):ce+(oe-X)}function c(de,ve,ce){var oe=de.length,X=ve.length,ne,j;if(oe===0&&X===0)return null;oe2&&arguments[2]!==void 0?arguments[2]:!1,J=Z?ee<0&&re.current.left||ee>0&&re.current.right:ee<0&&re.current.top||ee>0&&re.current.bottom;return se&&J?(clearTimeout(ne.current),X.current=!1):(!J||X.current)&&j(),!X.current&&J}};function v(de,ve,ce,oe,X,ne,j){var re=(0,u.useRef)(0),Z=(0,u.useRef)(null),ee=(0,u.useRef)(null),se=(0,u.useRef)(!1),J=l(ve,ce,oe,X);function ie(Le,ue){if(e.Z.cancel(Z.current),!J(!1,ue)){var xe=Le;if(!xe._virtualHandled)xe._virtualHandled=!0;else return;re.current+=ue,ee.current=ue,i||xe.preventDefault(),Z.current=(0,e.Z)(function(){var be=se.current?10:1;j(re.current*be,!1),re.current=0})}}function fe(Le,ue){j(ue,!0),i||Le.preventDefault()}var _e=(0,u.useRef)(null),De=(0,u.useRef)(null);function Ie(Le){if(de){e.Z.cancel(De.current),De.current=(0,e.Z)(function(){_e.current=null},2);var ue=Le.deltaX,xe=Le.deltaY,be=Le.shiftKey,Ae=ue,Qe=xe;(_e.current==="sx"||!_e.current&&be&&xe&&!ue)&&(Ae=xe,Qe=0,_e.current="sx");var et=Math.abs(Ae),at=Math.abs(Qe);_e.current===null&&(_e.current=ne&&et>at?"x":"y"),_e.current==="y"?ie(Le,Qe):fe(Le,Ae)}}function Ne(Le){de&&(se.current=Le.detail===ee.current)}return[Ie,Ne]}function y(de,ve,ce,oe){var X=u.useMemo(function(){return[new Map,[]]},[de,ce.id,oe]),ne=(0,O.Z)(X,2),j=ne[0],re=ne[1],Z=function(se){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se,ie=j.get(se),fe=j.get(J);if(ie===void 0||fe===void 0)for(var _e=de.length,De=re.length;De<_e;De+=1){var Ie,Ne=de[De],Le=ve(Ne);j.set(Le,De);var ue=(Ie=ce.get(Le))!==null&&Ie!==void 0?Ie:oe;if(re[De]=(re[De-1]||0)+ue,Le===se&&(ie=De),Le===J&&(fe=De),ie!==void 0&&fe!==void 0)break}return{top:re[ie-1]||0,bottom:re[fe]}};return Z}var p=W(67732),C=W(83652),S=function(){function de(){(0,p.Z)(this,de),(0,E.Z)(this,"maps",void 0),(0,E.Z)(this,"id",0),(0,E.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,C.Z)(de,[{key:"set",value:function(ce,oe){this.diffRecords.set(ce,this.maps[ce]),this.maps[ce]=oe,this.id+=1}},{key:"get",value:function(ce){return this.maps[ce]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),de}(),T=S;function D(de){var ve=parseFloat(de);return isNaN(ve)?0:ve}function I(de,ve,ce){var oe=u.useState(0),X=(0,O.Z)(oe,2),ne=X[0],j=X[1],re=(0,u.useRef)(new Map),Z=(0,u.useRef)(new T),ee=(0,u.useRef)(0);function se(){ee.current+=1}function J(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;se();var _e=function(){var Ne=!1;re.current.forEach(function(Le,ue){if(Le&&Le.offsetParent){var xe=Le.offsetHeight,be=getComputedStyle(Le),Ae=be.marginTop,Qe=be.marginBottom,et=D(Ae),at=D(Qe),tt=xe+et+at;Z.current.get(ue)!==tt&&(Z.current.set(ue,tt),Ne=!0)}}),Ne&&j(function(Le){return Le+1})};if(fe)_e();else{ee.current+=1;var De=ee.current;Promise.resolve().then(function(){De===ee.current&&_e()})}}function ie(fe,_e){var De=de(fe),Ie=re.current.get(De);_e?(re.current.set(De,_e),J()):re.current.delete(De),!Ie!=!_e&&(_e?ve==null||ve(fe):ce==null||ce(fe))}return(0,u.useEffect)(function(){return se},[]),[ie,J,Z.current,ne]}var M=14/15;function P(de,ve,ce){var oe=(0,u.useRef)(!1),X=(0,u.useRef)(0),ne=(0,u.useRef)(0),j=(0,u.useRef)(null),re=(0,u.useRef)(null),Z,ee=function(fe){if(oe.current){var _e=Math.ceil(fe.touches[0].pageX),De=Math.ceil(fe.touches[0].pageY),Ie=X.current-_e,Ne=ne.current-De,Le=Math.abs(Ie)>Math.abs(Ne);Le?X.current=_e:ne.current=De;var ue=ce(Le,Le?Ie:Ne,!1,fe);ue&&fe.preventDefault(),clearInterval(re.current),ue&&(re.current=setInterval(function(){Le?Ie*=M:Ne*=M;var xe=Math.floor(Le?Ie:Ne);(!ce(Le,xe,!0)||Math.abs(xe)<=.1)&&clearInterval(re.current)},16))}},se=function(){oe.current=!1,Z()},J=function(fe){Z(),fe.touches.length===1&&!oe.current&&(oe.current=!0,X.current=Math.ceil(fe.touches[0].pageX),ne.current=Math.ceil(fe.touches[0].pageY),j.current=fe.target,j.current.addEventListener("touchmove",ee,{passive:!1}),j.current.addEventListener("touchend",se,{passive:!0}))};Z=function(){j.current&&(j.current.removeEventListener("touchmove",ee),j.current.removeEventListener("touchend",se))},(0,a.Z)(function(){return de&&ve.current.addEventListener("touchstart",J,{passive:!0}),function(){var ie;(ie=ve.current)===null||ie===void 0||ie.removeEventListener("touchstart",J),Z(),clearInterval(re.current)}},[de])}function L(de){return Math.floor(Math.pow(de,.5))}function R(de,ve){var ce="touches"in de?de.touches[0]:de;return ce[ve?"pageX":"pageY"]-window[ve?"scrollX":"scrollY"]}function B(de,ve,ce){u.useEffect(function(){var oe=ve.current;if(de&&oe){var X=!1,ne,j,re=function(){e.Z.cancel(ne)},Z=function ie(){re(),ne=(0,e.Z)(function(){ce(j),ie()})},ee=function(){X=!1,re()},se=function(fe){if(!(fe.target.draggable||fe.button!==0)){var _e=fe;_e._virtualHandled||(_e._virtualHandled=!0,X=!0)}},J=function(fe){if(X){var _e=R(fe,!1),De=oe.getBoundingClientRect(),Ie=De.top,Ne=De.bottom;if(_e<=Ie){var Le=Ie-_e;j=-L(Le),Z()}else if(_e>=Ne){var ue=_e-Ne;j=L(ue),Z()}else re()}};return oe.addEventListener("mousedown",se),oe.ownerDocument.addEventListener("mouseup",ee),oe.ownerDocument.addEventListener("mousemove",J),oe.ownerDocument.addEventListener("dragend",ee),function(){oe.removeEventListener("mousedown",se),oe.ownerDocument.removeEventListener("mouseup",ee),oe.ownerDocument.removeEventListener("mousemove",J),oe.ownerDocument.removeEventListener("dragend",ee),re()}}},[de])}var U=10;function H(de,ve,ce,oe,X,ne,j,re){var Z=u.useRef(),ee=u.useState(null),se=(0,O.Z)(ee,2),J=se[0],ie=se[1];return(0,a.Z)(function(){if(J&&J.times=0;ke-=1){var Rt=X(ve[ke]),it=ce.get(Rt);if(it===void 0){Le=!0;break}if(Ke-=it,Ke<=0)break}switch(be){case"top":xe=Qe-Ie;break;case"bottom":xe=et-Ne+Ie;break;default:{var st=de.current.scrollTop,pt=st+Ne;Qept&&(ue="bottom")}}xe!==null&&j(xe),xe!==J.lastTop&&(Le=!0)}Le&&ie((0,w.Z)((0,w.Z)({},J),{},{times:J.times+1,targetAlign:ue,lastTop:xe}))}},[J,de.current]),function(fe){if(fe==null){re();return}if(e.Z.cancel(Z.current),typeof fe=="number")j(fe);else if(fe&&(0,G.Z)(fe)==="object"){var _e,De=fe.align;"index"in fe?_e=fe.index:_e=ve.findIndex(function(Le){return X(Le)===fe.key});var Ie=fe.offset,Ne=Ie===void 0?0:Ie;ie({times:0,index:_e,offset:Ne,originAlign:De})}}}var K=u.forwardRef(function(de,ve){var ce=de.prefixCls,oe=de.rtl,X=de.scrollOffset,ne=de.scrollRange,j=de.onStartMove,re=de.onStopMove,Z=de.onScroll,ee=de.horizontal,se=de.spinSize,J=de.containerSize,ie=de.style,fe=de.thumbStyle,_e=de.showScrollBar,De=u.useState(!1),Ie=(0,O.Z)(De,2),Ne=Ie[0],Le=Ie[1],ue=u.useState(null),xe=(0,O.Z)(ue,2),be=xe[0],Ae=xe[1],Qe=u.useState(null),et=(0,O.Z)(Qe,2),at=et[0],tt=et[1],_t=!oe,ze=u.useRef(),Ke=u.useRef(),ke=u.useState(_e),Rt=(0,O.Z)(ke,2),it=Rt[0],st=Rt[1],pt=u.useRef(),yt=function(){_e===!0||_e===!1||(clearTimeout(pt.current),st(!0),pt.current=setTimeout(function(){st(!1)},3e3))},mt=ne-J||0,Tt=J-se||0,lt=u.useMemo(function(){if(X===0||mt===0)return 0;var z=X/mt;return z*Tt},[X,mt,Tt]),At=function(Y){Y.stopPropagation(),Y.preventDefault()},Lt=u.useRef({top:lt,dragging:Ne,pageY:be,startTop:at});Lt.current={top:lt,dragging:Ne,pageY:be,startTop:at};var Ct=function(Y){Le(!0),Ae(R(Y,ee)),tt(Lt.current.top),j(),Y.stopPropagation(),Y.preventDefault()};u.useEffect(function(){var z=function(Q){Q.preventDefault()},Y=ze.current,te=Ke.current;return Y.addEventListener("touchstart",z,{passive:!1}),te.addEventListener("touchstart",Ct,{passive:!1}),function(){Y.removeEventListener("touchstart",z),te.removeEventListener("touchstart",Ct)}},[]);var jt=u.useRef();jt.current=mt;var Yt=u.useRef();Yt.current=Tt,u.useEffect(function(){if(Ne){var z,Y=function(Q){var Pe=Lt.current,ye=Pe.dragging,Fe=Pe.pageY,Je=Pe.startTop;e.Z.cancel(z);var nt=ze.current.getBoundingClientRect(),Xe=J/(ee?nt.width:nt.height);if(ye){var ot=(R(Q,ee)-Fe)*Xe,rt=Je;!_t&&ee?rt-=ot:rt+=ot;var Ye=jt.current,Ve=Yt.current,ht=Ve?rt/Ve:0,$e=Math.ceil(ht*Ye);$e=Math.max($e,0),$e=Math.min($e,Ye),z=(0,e.Z)(function(){Z($e,ee)})}},te=function(){Le(!1),re()};return window.addEventListener("mousemove",Y,{passive:!0}),window.addEventListener("touchmove",Y,{passive:!0}),window.addEventListener("mouseup",te,{passive:!0}),window.addEventListener("touchend",te,{passive:!0}),function(){window.removeEventListener("mousemove",Y),window.removeEventListener("touchmove",Y),window.removeEventListener("mouseup",te),window.removeEventListener("touchend",te),e.Z.cancel(z)}}},[Ne]),u.useEffect(function(){return yt(),function(){clearTimeout(pt.current)}},[X]),u.useImperativeHandle(ve,function(){return{delayHidden:yt}});var qe="".concat(ce,"-scrollbar"),b={position:"absolute",visibility:it?null:"hidden"},F={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return ee?(Object.assign(b,{height:8,left:0,right:0,bottom:0}),Object.assign(F,(0,E.Z)({height:"100%",width:se},_t?"left":"right",lt))):(Object.assign(b,(0,E.Z)({width:8,top:0,bottom:0},_t?"right":"left",0)),Object.assign(F,{width:"100%",height:se,top:lt})),u.createElement("div",{ref:ze,className:g()(qe,(0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(qe,"-horizontal"),ee),"".concat(qe,"-vertical"),!ee),"".concat(qe,"-visible"),it)),style:(0,w.Z)((0,w.Z)({},b),ie),onMouseDown:At,onMouseMove:yt},u.createElement("div",{ref:Ke,className:g()("".concat(qe,"-thumb"),(0,E.Z)({},"".concat(qe,"-thumb-moving"),Ne)),style:(0,w.Z)((0,w.Z)({},F),fe),onMouseDown:Ct}))}),V=K,k=20;function $(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ce=de/ve*de;return isNaN(ce)&&(ce=0),ce=Math.max(ce,k),Math.floor(ce)}var ae=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],le=[],he={overflowY:"auto",overflowAnchor:"none"};function ge(de,ve){var ce=de.prefixCls,oe=ce===void 0?"rc-virtual-list":ce,X=de.className,ne=de.height,j=de.itemHeight,re=de.fullHeight,Z=re===void 0?!0:re,ee=de.style,se=de.data,J=de.children,ie=de.itemKey,fe=de.virtual,_e=de.direction,De=de.scrollWidth,Ie=de.component,Ne=Ie===void 0?"div":Ie,Le=de.onScroll,ue=de.onVirtualScroll,xe=de.onVisibleChange,be=de.innerProps,Ae=de.extraRender,Qe=de.styles,et=de.showScrollBar,at=et===void 0?"optional":et,tt=(0,A.Z)(de,ae),_t=u.useCallback(function(wt){return typeof ie=="function"?ie(wt):wt==null?void 0:wt[ie]},[ie]),ze=I(_t,null,null),Ke=(0,O.Z)(ze,4),ke=Ke[0],Rt=Ke[1],it=Ke[2],st=Ke[3],pt=!!(fe!==!1&&ne&&j),yt=u.useMemo(function(){return Object.values(it.maps).reduce(function(wt,bt){return wt+bt},0)},[it.id,it.maps]),mt=pt&&se&&(Math.max(j*se.length,yt)>ne||!!De),Tt=_e==="rtl",lt=g()(oe,(0,E.Z)({},"".concat(oe,"-rtl"),Tt),X),At=se||le,Lt=(0,u.useRef)(),Ct=(0,u.useRef)(),jt=(0,u.useRef)(),Yt=(0,u.useState)(0),qe=(0,O.Z)(Yt,2),b=qe[0],F=qe[1],z=(0,u.useState)(0),Y=(0,O.Z)(z,2),te=Y[0],q=Y[1],Q=(0,u.useState)(!1),Pe=(0,O.Z)(Q,2),ye=Pe[0],Fe=Pe[1],Je=function(){Fe(!0)},nt=function(){Fe(!1)},Xe={getKey:_t};function ot(wt){F(function(bt){var Qt;typeof wt=="function"?Qt=wt(bt):Qt=wt;var $t=Pt(Qt);return Lt.current.scrollTop=$t,$t})}var rt=(0,u.useRef)({start:0,end:At.length}),Ye=(0,u.useRef)(),Ve=f(At,_t),ht=(0,O.Z)(Ve,1),$e=ht[0];Ye.current=$e;var Et=u.useMemo(function(){if(!pt)return{scrollHeight:void 0,start:0,end:At.length-1,offset:void 0};if(!mt){var wt;return{scrollHeight:((wt=Ct.current)===null||wt===void 0?void 0:wt.offsetHeight)||0,start:0,end:At.length-1,offset:void 0}}for(var bt=0,Qt,$t,gr,Ir=At.length,br=0;br=b&&Qt===void 0&&(Qt=br,$t=bt),Tr>b+ne&&gr===void 0&&(gr=br),bt=Tr}return Qt===void 0&&(Qt=0,$t=0,gr=Math.ceil(ne/j)),gr===void 0&&(gr=At.length-1),gr=Math.min(gr+1,At.length-1),{scrollHeight:bt,start:Qt,end:gr,offset:$t}},[mt,pt,b,At,st,ne]),Bt=Et.scrollHeight,Kt=Et.start,ut=Et.end,Ut=Et.offset;rt.current.start=Kt,rt.current.end=ut,u.useLayoutEffect(function(){var wt=it.getRecord();if(wt.size===1){var bt=Array.from(wt.keys())[0],Qt=wt.get(bt),$t=At[Kt];if($t&&Qt===void 0){var gr=_t($t);if(gr===bt){var Ir=it.get(bt),br=Ir-j;ot(function(_r){return _r+br})}}}it.resetRecord()},[Bt]);var Oe=u.useState({width:0,height:ne}),we=(0,O.Z)(Oe,2),Be=we[0],je=we[1],Se=function(bt){je({width:bt.offsetWidth,height:bt.offsetHeight})},He=(0,u.useRef)(),We=(0,u.useRef)(),dt=u.useMemo(function(){return $(Be.width,De)},[Be.width,De]),St=u.useMemo(function(){return $(Be.height,Bt)},[Be.height,Bt]),Ot=Bt-ne,Wt=(0,u.useRef)(Ot);Wt.current=Ot;function Pt(wt){var bt=wt;return Number.isNaN(Wt.current)||(bt=Math.min(bt,Wt.current)),bt=Math.max(bt,0),bt}var Te=b<=0,Mt=b>=Ot,Dt=te<=0,Zt=te>=De,Nt=l(Te,Mt,Dt,Zt),lr=function(){return{x:Tt?-te:te,y:b}},rr=(0,u.useRef)(lr()),er=(0,m.useEvent)(function(wt){if(ue){var bt=(0,w.Z)((0,w.Z)({},lr()),wt);(rr.current.x!==bt.x||rr.current.y!==bt.y)&&(ue(bt),rr.current=bt)}});function ir(wt,bt){var Qt=wt;bt?((0,h.flushSync)(function(){q(Qt)}),er()):ot(Qt)}function Jt(wt){var bt=wt.currentTarget.scrollTop;bt!==b&&ot(bt),Le==null||Le(wt),er()}var cr=function(bt){var Qt=bt,$t=De?De-Be.width:0;return Qt=Math.max(Qt,0),Qt=Math.min(Qt,$t),Qt},Cr=(0,m.useEvent)(function(wt,bt){bt?((0,h.flushSync)(function(){q(function(Qt){var $t=Qt+(Tt?-wt:wt);return cr($t)})}),er()):ot(function(Qt){var $t=Qt+wt;return $t})}),Ht=v(pt,Te,Mt,Dt,Zt,!!De,Cr),Gt=(0,O.Z)(Ht,2),Vt=Gt[0],or=Gt[1];P(pt,Lt,function(wt,bt,Qt,$t){var gr=$t;return Nt(wt,bt,Qt)?!1:!gr||!gr._virtualHandled?(gr&&(gr._virtualHandled=!0),Vt({preventDefault:function(){},deltaX:wt?bt:0,deltaY:wt?0:bt}),!0):!1}),B(mt,Lt,function(wt){ot(function(bt){return bt+wt})}),(0,a.Z)(function(){function wt(Qt){var $t=Te&&Qt.detail<0,gr=Mt&&Qt.detail>0;pt&&!$t&&!gr&&Qt.preventDefault()}var bt=Lt.current;return bt.addEventListener("wheel",Vt,{passive:!1}),bt.addEventListener("DOMMouseScroll",or,{passive:!0}),bt.addEventListener("MozMousePixelScroll",wt,{passive:!1}),function(){bt.removeEventListener("wheel",Vt),bt.removeEventListener("DOMMouseScroll",or),bt.removeEventListener("MozMousePixelScroll",wt)}},[pt,Te,Mt]),(0,a.Z)(function(){if(De){var wt=cr(te);q(wt),er({x:wt})}},[Be.width,De]);var nr=function(){var bt,Qt;(bt=He.current)===null||bt===void 0||bt.delayHidden(),(Qt=We.current)===null||Qt===void 0||Qt.delayHidden()},ar=H(Lt,At,it,j,_t,function(){return Rt(!0)},ot,nr);u.useImperativeHandle(ve,function(){return{nativeElement:jt.current,getScrollInfo:lr,scrollTo:function(bt){function Qt($t){return $t&&(0,G.Z)($t)==="object"&&("left"in $t||"top"in $t)}Qt(bt)?(bt.left!==void 0&&q(cr(bt.left)),ar(bt.top)):ar(bt)}}}),(0,a.Z)(function(){if(xe){var wt=At.slice(Kt,ut+1);xe(wt,At)}},[Kt,ut,At]);var tr=y(At,_t,it,j),dr=Ae==null?void 0:Ae({start:Kt,end:ut,virtual:mt,offsetX:te,offsetY:Ut,rtl:Tt,getSize:tr}),pr=d(At,Kt,ut,De,te,ke,J,Xe),hr=null;ne&&(hr=(0,w.Z)((0,E.Z)({},Z?"height":"maxHeight",ne),he),pt&&(hr.overflowY="hidden",De&&(hr.overflowX="hidden"),ye&&(hr.pointerEvents="none")));var xr={};return Tt&&(xr.dir="rtl"),u.createElement("div",(0,N.Z)({ref:jt,style:(0,w.Z)((0,w.Z)({},ee),{},{position:"relative"}),className:lt},xr,tt),u.createElement(x.Z,{onResize:Se},u.createElement(Ne,{className:"".concat(oe,"-holder"),style:hr,ref:Lt,onScroll:Jt,onMouseEnter:nr},u.createElement(n,{prefixCls:oe,height:Bt,offsetX:te,offsetY:Ut,scrollWidth:De,onInnerResize:Rt,ref:Ct,innerProps:be,rtl:Tt,extra:dr},pr))),mt&&Bt>ne&&u.createElement(V,{ref:He,prefixCls:oe,scrollOffset:b,scrollRange:Bt,rtl:Tt,onScroll:ir,onStartMove:Je,onStopMove:nt,spinSize:St,containerSize:Be.height,style:Qe==null?void 0:Qe.verticalScrollBar,thumbStyle:Qe==null?void 0:Qe.verticalScrollBarThumb,showScrollBar:at}),mt&&De>Be.width&&u.createElement(V,{ref:We,prefixCls:oe,scrollOffset:te,scrollRange:De,rtl:Tt,onScroll:ir,onStartMove:Je,onStopMove:nt,spinSize:dt,containerSize:Be.width,horizontal:!0,style:Qe==null?void 0:Qe.horizontalScrollBar,thumbStyle:Qe==null?void 0:Qe.horizontalScrollBarThumb,showScrollBar:at}))}var me=u.forwardRef(ge);me.displayName="List";var pe=me,Ee=pe},27774:function(ft,Me){"use strict";Object.defineProperty(Me,"__esModule",{value:!0}),Me.SizeSensorId=Me.SensorTabIndex=Me.SensorClassName=void 0;var W="size-sensor-id";Me.SizeSensorId=W;var N="size-sensor-object";Me.SensorClassName=N;var G="-1";Me.SensorTabIndex=G},79301:function(ft,Me){"use strict";Object.defineProperty(Me,"__esModule",{value:!0}),Me.default=void 0;var W=function(G){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,E=null;return function(){for(var O=this,A=arguments.length,_=new Array(A),g=0;gtypeof x=="object"&&x!=null&&x.nodeType===1,G=(x,m)=>(!m||x!=="hidden")&&x!=="visible"&&x!=="clip",w=(x,m)=>{if(x.clientHeight{const h=(r=>{if(!r.ownerDocument||!r.ownerDocument.defaultView)return null;try{return r.ownerDocument.defaultView.frameElement}catch(n){return null}})(u);return!!h&&(h.clientHeightrm||r>x&&n=m&&s>=a?r-x-u:n>m&&sa?n-m+h:0,O=x=>{const m=x.parentElement;return m==null?x.getRootNode().host||null:m},A=(x,m)=>{var a,u,h,r;if(typeof document=="undefined")return[];const{scrollMode:n,block:s,inline:d,boundary:o,skipOverflowHiddenElements:c}=m,f=typeof o=="function"?o:V=>V!==o;if(!N(x))throw new TypeError("Invalid target");const e=document.scrollingElement||document.documentElement,t=[];let i=x;for(;N(i)&&f(i);){if(i=O(i),i===e){t.push(i);break}i!=null&&i===document.body&&w(i)&&!w(document.documentElement)||i!=null&&w(i,c)&&t.push(i)}const l=(u=(a=window.visualViewport)==null?void 0:a.width)!=null?u:innerWidth,v=(r=(h=window.visualViewport)==null?void 0:h.height)!=null?r:innerHeight,{scrollX:y,scrollY:p}=window,{height:C,width:S,top:T,right:D,bottom:I,left:M}=x.getBoundingClientRect(),{top:P,right:L,bottom:R,left:B}=(V=>{const k=window.getComputedStyle(V);return{top:parseFloat(k.scrollMarginTop)||0,right:parseFloat(k.scrollMarginRight)||0,bottom:parseFloat(k.scrollMarginBottom)||0,left:parseFloat(k.scrollMarginLeft)||0}})(x);let U=s==="start"||s==="nearest"?T-P:s==="end"?I+R:T+C/2-P+R,H=d==="center"?M+S/2-B+L:d==="end"?D+L:M-B;const K=[];for(let V=0;V=0&&M>=0&&I<=v&&D<=l&&(k===e&&!w(k)||T>=le&&I<=ge&&M>=me&&D<=he))return K;const pe=getComputedStyle(k),Ee=parseInt(pe.borderLeftWidth,10),de=parseInt(pe.borderTopWidth,10),ve=parseInt(pe.borderRightWidth,10),ce=parseInt(pe.borderBottomWidth,10);let oe=0,X=0;const ne="offsetWidth"in k?k.offsetWidth-k.clientWidth-Ee-ve:0,j="offsetHeight"in k?k.offsetHeight-k.clientHeight-de-ce:0,re="offsetWidth"in k?k.offsetWidth===0?0:ae/k.offsetWidth:0,Z="offsetHeight"in k?k.offsetHeight===0?0:$/k.offsetHeight:0;if(e===k)oe=s==="start"?U:s==="end"?U-v:s==="nearest"?E(p,p+v,v,de,ce,p+U,p+U+C,C):U-v/2,X=d==="start"?H:d==="center"?H-l/2:d==="end"?H-l:E(y,y+l,l,Ee,ve,y+H,y+H+S,S),oe=Math.max(0,oe+p),X=Math.max(0,X+y);else{oe=s==="start"?U-le-de:s==="end"?U-ge+ce+j:s==="nearest"?E(le,ge,$,de,ce+j,U,U+C,C):U-(le+$/2)+j/2,X=d==="start"?H-me-Ee:d==="center"?H-(me+ae/2)+ne/2:d==="end"?H-he+ve+ne:E(me,he,ae,Ee,ve+ne,H,H+S,S);const{scrollLeft:ee,scrollTop:se}=k;oe=Z===0?0:Math.max(0,Math.min(se+oe/Z,k.scrollHeight-$/Z+j)),X=re===0?0:Math.max(0,Math.min(ee+X/re,k.scrollWidth-ae/re+ne)),U+=se-oe,H+=ee-X}K.push({el:k,top:oe,left:X})}return K},_=x=>x===!1?{block:"end",inline:"nearest"}:(m=>m===Object(m)&&Object.keys(m).length!==0)(x)?x:{block:"start",inline:"nearest"};function g(x,m){if(!x.isConnected||!(h=>{let r=h;for(;r&&r.parentNode;){if(r.parentNode===document)return!0;r=r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}return!1})(x))return;const a=(h=>{const r=window.getComputedStyle(h);return{top:parseFloat(r.scrollMarginTop)||0,right:parseFloat(r.scrollMarginRight)||0,bottom:parseFloat(r.scrollMarginBottom)||0,left:parseFloat(r.scrollMarginLeft)||0}})(x);if((h=>typeof h=="object"&&typeof h.behavior=="function")(m))return m.behavior(A(x,m));const u=typeof m=="boolean"||m==null?void 0:m.behavior;for(const{el:h,top:r,left:n}of A(x,_(m))){const s=r-a.top+a.bottom,d=n-a.left+a.right;h.scroll({top:s,left:d,behavior:u})}}}}]);