You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1035 lines
1.4 MiB
1035 lines
1.4 MiB
!(function(){var hl=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[9647],{65352:function(Ln,jt,w){"use strict";w.d(jt,{Z:function(){return mt}});var p=w(20049),fe=w(52456),oe=w(5883),me=w(43403),O=w(92310),d=w.n(O),ge=w(29301),le=w(76846),o=w(96452),b=w(6089),T=w(80402),m=w(34280),y=w(49658),x=w(59301),L=w(5016),U=w(77900),V=w(8654);function te(Be){var be=Be.prefixCls,M=Be.align,Ce=Be.arrow,Ge=Be.arrowPos,K=Ce||{},k=K.className,F=K.content,pe=Ge.x,z=pe===void 0?0:pe,Y=Ge.y,ie=Y===void 0?0:Y,Te=x.useRef();if(!M||!M.points)return null;var xe={position:"absolute"};if(M.autoArrow!==!1){var Ue=M.points[0],Ze=M.points[1],$e=Ue[0],at=Ue[1],ve=Ze[0],De=Ze[1];$e===ve||!["t","b"].includes($e)?xe.top=ie:$e==="t"?xe.top=0:xe.bottom=0,at===De||!["l","r"].includes(at)?xe.left=z:at==="l"?xe.left=0:xe.right=0}return x.createElement("div",{ref:Te,className:d()("".concat(be,"-arrow"),k),style:xe},F)}function N(Be){var be=Be.prefixCls,M=Be.open,Ce=Be.zIndex,Ge=Be.mask,K=Be.motion;return Ge?x.createElement(U.default,(0,L.Z)({},K,{motionAppear:!0,visible:M,removeOnLeave:!0}),function(k){var F=k.className;return x.createElement("div",{style:{zIndex:Ce},className:d()("".concat(be,"-mask"),F)})}):null}var B=x.memo(function(Be){var be=Be.children;return be},function(Be,be){return be.cache}),R=B,S=x.forwardRef(function(Be,be){var M=Be.popup,Ce=Be.className,Ge=Be.prefixCls,K=Be.style,k=Be.target,F=Be.onVisibleChanged,pe=Be.open,z=Be.keepDom,Y=Be.fresh,ie=Be.onClick,Te=Be.mask,xe=Be.arrow,Ue=Be.arrowPos,Ze=Be.align,$e=Be.motion,at=Be.maskMotion,ve=Be.forceRender,De=Be.getPopupContainer,ot=Be.autoDestroy,Je=Be.portal,He=Be.zIndex,gt=Be.onMouseEnter,Rt=Be.onMouseLeave,st=Be.onPointerEnter,Kt=Be.onPointerDownCapture,cn=Be.ready,At=Be.offsetX,Xt=Be.offsetY,Fe=Be.offsetR,Ne=Be.offsetB,Me=Be.onAlign,I=Be.onPrepare,ae=Be.stretch,de=Be.targetWidth,se=Be.targetHeight,Se=typeof M=="function"?M():M,Mt=pe||z,It=(De==null?void 0:De.length)>0,Ft=x.useState(!De||!It),fn=(0,fe.Z)(Ft,2),Le=fn[0],_=fn[1];if((0,m.Z)(function(){!Le&&It&&k&&_(!0)},[Le,It,k]),!Le)return null;var j="auto",E={left:"-1000vw",top:"-1000vh",right:j,bottom:j};if(cn||!pe){var Pe,ye=Ze.points,we=Ze.dynamicInset||((Pe=Ze._experimental)===null||Pe===void 0?void 0:Pe.dynamicInset),ze=we&&ye[0][1]==="r",ut=we&&ye[0][0]==="b";ze?(E.right=Fe,E.left=j):(E.left=At,E.right=j),ut?(E.bottom=Ne,E.top=j):(E.top=Xt,E.bottom=j)}var Pt={};return ae&&(ae.includes("height")&&se?Pt.height=se:ae.includes("minHeight")&&se&&(Pt.minHeight=se),ae.includes("width")&&de?Pt.width=de:ae.includes("minWidth")&&de&&(Pt.minWidth=de)),pe||(Pt.pointerEvents="none"),x.createElement(Je,{open:ve||Mt,getContainer:De&&function(){return De(k)},autoDestroy:ot},x.createElement(N,{prefixCls:Ge,open:pe,zIndex:He,mask:Te,motion:at}),x.createElement(ge.Z,{onResize:Me,disabled:!pe},function(Vt){return x.createElement(U.default,(0,L.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ve,leavedClassName:"".concat(Ge,"-hidden")},$e,{onAppearPrepare:I,onEnterPrepare:I,visible:pe,onVisibleChanged:function(mn){var Re;$e==null||(Re=$e.onVisibleChanged)===null||Re===void 0||Re.call($e,mn),F(mn)}}),function(Ut,mn){var Re=Ut.className,_e=Ut.style,Ve=d()(Ge,Re,Ce);return x.createElement("div",{ref:(0,V.sQ)(Vt,be,mn),className:Ve,style:(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({"--arrow-x":"".concat(Ue.x||0,"px"),"--arrow-y":"".concat(Ue.y||0,"px")},E),Pt),_e),{},{boxSizing:"border-box",zIndex:He},K),onMouseEnter:gt,onMouseLeave:Rt,onPointerEnter:st,onClick:ie,onPointerDownCapture:Kt},xe&&x.createElement(te,{prefixCls:Ge,arrow:xe,arrowPos:Ue,align:Ze}),x.createElement(R,{cache:!pe&&!Y},Se))})}))}),$=S,ee=x.forwardRef(function(Be,be){var M=Be.children,Ce=Be.getTriggerDOMNode,Ge=(0,V.Yr)(M),K=x.useCallback(function(F){(0,V.mH)(be,Ce?Ce(F):F)},[Ce]),k=(0,V.x1)(K,(0,V.C4)(M));return Ge?x.cloneElement(M,{ref:k}):M}),W=ee,ne=x.createContext(null),ue=ne;function he(Be){return Be?Array.isArray(Be)?Be:[Be]:[]}function Oe(Be,be,M,Ce){return x.useMemo(function(){var Ge=he(M!=null?M:be),K=he(Ce!=null?Ce:be),k=new Set(Ge),F=new Set(K);return Be&&(k.has("hover")&&(k.delete("hover"),k.add("click")),F.has("hover")&&(F.delete("hover"),F.add("click"))),[k,F]},[Be,be,M,Ce])}var G=w(29194);function P(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2?arguments[2]:void 0;return M?Be[0]===be[0]:Be[0]===be[0]&&Be[1]===be[1]}function Q(Be,be,M,Ce){for(var Ge=M.points,K=Object.keys(Be),k=0;k<K.length;k+=1){var F,pe=K[k];if(P((F=Be[pe])===null||F===void 0?void 0:F.points,Ge,Ce))return"".concat(be,"-placement-").concat(pe)}return""}function q(Be,be,M,Ce){return be||(M?{motionName:"".concat(Be,"-").concat(M)}:Ce?{motionName:Ce}:null)}function re(Be){return Be.ownerDocument.defaultView}function J(Be){for(var be=[],M=Be==null?void 0:Be.parentElement,Ce=["hidden","scroll","clip","auto"];M;){var Ge=re(M).getComputedStyle(M),K=Ge.overflowX,k=Ge.overflowY,F=Ge.overflow;[K,k,F].some(function(pe){return Ce.includes(pe)})&&be.push(M),M=M.parentElement}return be}function g(Be){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Be)?be:Be}function v(Be){return g(parseFloat(Be),0)}function Z(Be,be){var M=(0,p.Z)({},Be);return(be||[]).forEach(function(Ce){if(!(Ce instanceof HTMLBodyElement||Ce instanceof HTMLHtmlElement)){var Ge=re(Ce).getComputedStyle(Ce),K=Ge.overflow,k=Ge.overflowClipMargin,F=Ge.borderTopWidth,pe=Ge.borderBottomWidth,z=Ge.borderLeftWidth,Y=Ge.borderRightWidth,ie=Ce.getBoundingClientRect(),Te=Ce.offsetHeight,xe=Ce.clientHeight,Ue=Ce.offsetWidth,Ze=Ce.clientWidth,$e=v(F),at=v(pe),ve=v(z),De=v(Y),ot=g(Math.round(ie.width/Ue*1e3)/1e3),Je=g(Math.round(ie.height/Te*1e3)/1e3),He=(Ue-Ze-ve-De)*ot,gt=(Te-xe-$e-at)*Je,Rt=$e*Je,st=at*Je,Kt=ve*ot,cn=De*ot,At=0,Xt=0;if(K==="clip"){var Fe=v(k);At=Fe*ot,Xt=Fe*Je}var Ne=ie.x+Kt-At,Me=ie.y+Rt-Xt,I=Ne+ie.width+2*At-Kt-cn-He,ae=Me+ie.height+2*Xt-Rt-st-gt;M.left=Math.max(M.left,Ne),M.top=Math.max(M.top,Me),M.right=Math.min(M.right,I),M.bottom=Math.min(M.bottom,ae)}}),M}function ce(Be){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M="".concat(be),Ce=M.match(/^(.*)\%$/);return Ce?Be*(parseFloat(Ce[1])/100):parseFloat(M)}function Xe(Be,be){var M=be||[],Ce=(0,fe.Z)(M,2),Ge=Ce[0],K=Ce[1];return[ce(Be.width,Ge),ce(Be.height,K)]}function We(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Be[0],Be[1]]}function Dt(Be,be){var M=be[0],Ce=be[1],Ge,K;return M==="t"?K=Be.y:M==="b"?K=Be.y+Be.height:K=Be.y+Be.height/2,Ce==="l"?Ge=Be.x:Ce==="r"?Ge=Be.x+Be.width:Ge=Be.x+Be.width/2,{x:Ge,y:K}}function vt(Be,be){var M={t:"b",b:"t",l:"r",r:"l"};return Be.map(function(Ce,Ge){return Ge===be?M[Ce]||"c":Ce}).join("")}function $t(Be,be,M,Ce,Ge,K,k){var F=x.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Ge[Ce]||{}}),pe=(0,fe.Z)(F,2),z=pe[0],Y=pe[1],ie=x.useRef(0),Te=x.useMemo(function(){return be?J(be):[]},[be]),xe=x.useRef({}),Ue=function(){xe.current={}};Be||Ue();var Ze=(0,b.Z)(function(){if(be&&M&&Be){let Pr=function(gr,mr){var bn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Et,Yn=Ft.x+gr,ir=Ft.y+mr,or=Yn+ze,yr=ir+we,Cr=Math.max(Yn,bn.left),jn=Math.max(ir,bn.top),qn=Math.min(or,bn.right),Er=Math.min(yr,bn.bottom);return Math.max(0,(qn-Cr)*(Er-jn))},Dr=function(){yt=Ft.y+On,Tt=yt+we,Jt=Ft.x+Mn,qt=Jt+ze};var ve,De,ot,Je,He=be,gt=He.ownerDocument,Rt=re(He),st=Rt.getComputedStyle(He),Kt=st.width,cn=st.height,At=st.position,Xt=He.style.left,Fe=He.style.top,Ne=He.style.right,Me=He.style.bottom,I=He.style.overflow,ae=(0,p.Z)((0,p.Z)({},Ge[Ce]),K),de=gt.createElement("div");(ve=He.parentElement)===null||ve===void 0||ve.appendChild(de),de.style.left="".concat(He.offsetLeft,"px"),de.style.top="".concat(He.offsetTop,"px"),de.style.position=At,de.style.height="".concat(He.offsetHeight,"px"),de.style.width="".concat(He.offsetWidth,"px"),He.style.left="0",He.style.top="0",He.style.right="auto",He.style.bottom="auto",He.style.overflow="hidden";var se;if(Array.isArray(M))se={x:M[0],y:M[1],width:0,height:0};else{var Se,Mt,It=M.getBoundingClientRect();It.x=(Se=It.x)!==null&&Se!==void 0?Se:It.left,It.y=(Mt=It.y)!==null&&Mt!==void 0?Mt:It.top,se={x:It.x,y:It.y,width:It.width,height:It.height}}var Ft=He.getBoundingClientRect();Ft.x=(De=Ft.x)!==null&&De!==void 0?De:Ft.left,Ft.y=(ot=Ft.y)!==null&&ot!==void 0?ot:Ft.top;var fn=gt.documentElement,Le=fn.clientWidth,_=fn.clientHeight,j=fn.scrollWidth,E=fn.scrollHeight,Pe=fn.scrollTop,ye=fn.scrollLeft,we=Ft.height,ze=Ft.width,ut=se.height,Pt=se.width,Vt={left:0,top:0,right:Le,bottom:_},Ut={left:-ye,top:-Pe,right:j-ye,bottom:E-Pe},mn=ae.htmlRegion,Re="visible",_e="visibleFirst";mn!=="scroll"&&mn!==_e&&(mn=Re);var Ve=mn===_e,et=Z(Ut,Te),dt=Z(Vt,Te),Et=mn===Re?dt:et,tt=Ve?dt:Et;He.style.left="auto",He.style.top="auto",He.style.right="0",He.style.bottom="0";var nt=He.getBoundingClientRect();He.style.left=Xt,He.style.top=Fe,He.style.right=Ne,He.style.bottom=Me,He.style.overflow=I,(Je=He.parentElement)===null||Je===void 0||Je.removeChild(de);var _t=g(Math.round(ze/parseFloat(Kt)*1e3)/1e3),Ct=g(Math.round(we/parseFloat(cn)*1e3)/1e3);if(_t===0||Ct===0||(0,le.Sh)(M)&&!(0,G.Z)(M))return;var pn=ae.offset,_n=ae.targetOffset,an=Xe(Ft,pn),zt=(0,fe.Z)(an,2),Ie=zt[0],qe=zt[1],ft=Xe(se,_n),ht=(0,fe.Z)(ft,2),Gt=ht[0],en=ht[1];se.x-=Gt,se.y-=en;var Wt=ae.points||[],rn=(0,fe.Z)(Wt,2),hn=rn[0],Sn=rn[1],Un=We(Sn),yn=We(hn),Zn=Dt(se,Un),Nn=Dt(Ft,yn),Gn=(0,p.Z)({},ae),Mn=Zn.x-Nn.x+Ie,On=Zn.y-Nn.y+qe,Qn=Pr(Mn,On),vn=Pr(Mn,On,dt),Dn=Dt(se,["t","l"]),je=Dt(Ft,["t","l"]),Lt=Dt(se,["b","r"]),tn=Dt(Ft,["b","r"]),gn=ae.overflow||{},zn=gn.adjustX,Ee=gn.adjustY,lt=gn.shiftX,Ye=gn.shiftY,it=function(mr){return typeof mr=="boolean"?mr:mr>=0},yt,Tt,Jt,qt;Dr();var kt=it(Ee),rt=yn[0]===Un[0];if(kt&&yn[0]==="t"&&(Tt>tt.bottom||xe.current.bt)){var ct=On;rt?ct-=we-ut:ct=Dn.y-tn.y-qe;var pt=Pr(Mn,ct),xt=Pr(Mn,ct,dt);pt>Qn||pt===Qn&&(!Ve||xt>=vn)?(xe.current.bt=!0,On=ct,qe=-qe,Gn.points=[vt(yn,0),vt(Un,0)]):xe.current.bt=!1}if(kt&&yn[0]==="b"&&(yt<tt.top||xe.current.tb)){var Ot=On;rt?Ot+=we-ut:Ot=Lt.y-je.y-qe;var dn=Pr(Mn,Ot),Rn=Pr(Mn,Ot,dt);dn>Qn||dn===Qn&&(!Ve||Rn>=vn)?(xe.current.tb=!0,On=Ot,qe=-qe,Gn.points=[vt(yn,0),vt(Un,0)]):xe.current.tb=!1}var En=it(zn),Kn=yn[1]===Un[1];if(En&&yn[1]==="l"&&(qt>tt.right||xe.current.rl)){var Vn=Mn;Kn?Vn-=ze-Pt:Vn=Dn.x-tn.x-Ie;var Wn=Pr(Vn,On),$n=Pr(Vn,On,dt);Wn>Qn||Wn===Qn&&(!Ve||$n>=vn)?(xe.current.rl=!0,Mn=Vn,Ie=-Ie,Gn.points=[vt(yn,1),vt(Un,1)]):xe.current.rl=!1}if(En&&yn[1]==="r"&&(Jt<tt.left||xe.current.lr)){var An=Mn;Kn?An+=ze-Pt:An=Lt.x-je.x-Ie;var cr=Pr(An,On),ar=Pr(An,On,dt);cr>Qn||cr===Qn&&(!Ve||ar>=vn)?(xe.current.lr=!0,Mn=An,Ie=-Ie,Gn.points=[vt(yn,1),vt(Un,1)]):xe.current.lr=!1}Dr();var tr=lt===!0?0:lt;typeof tr=="number"&&(Jt<dt.left&&(Mn-=Jt-dt.left-Ie,se.x+Pt<dt.left+tr&&(Mn+=se.x-dt.left+Pt-tr)),qt>dt.right&&(Mn-=qt-dt.right-Ie,se.x>dt.right-tr&&(Mn+=se.x-dt.right+tr)));var Xn=Ye===!0?0:Ye;typeof Xn=="number"&&(yt<dt.top&&(On-=yt-dt.top-qe,se.y+ut<dt.top+Xn&&(On+=se.y-dt.top+ut-Xn)),Tt>dt.bottom&&(On-=Tt-dt.bottom-qe,se.y>dt.bottom-Xn&&(On+=se.y-dt.bottom+Xn)));var Tn=Ft.x+Mn,dr=Tn+ze,nr=Ft.y+On,lr=nr+we,Cn=se.x,sn=Cn+Pt,wn=se.y,Fn=wn+ut,Pn=Math.max(Tn,Cn),Jn=Math.min(dr,sn),rr=(Pn+Jn)/2,_r=rr-Tn,Br=Math.max(nr,wn),Nr=Math.min(lr,Fn),Jr=(Br+Nr)/2,Kr=Jr-nr;k==null||k(be,Gn);var Ur=nt.right-Ft.x-(Mn+Ft.width),pr=nt.bottom-Ft.y-(On+Ft.height);_t===1&&(Mn=Math.round(Mn),Ur=Math.round(Ur)),Ct===1&&(On=Math.round(On),pr=Math.round(pr));var wr={ready:!0,offsetX:Mn/_t,offsetY:On/Ct,offsetR:Ur/_t,offsetB:pr/Ct,arrowX:_r/_t,arrowY:Kr/Ct,scaleX:_t,scaleY:Ct,align:Gn};Y(wr)}}),$e=function(){ie.current+=1;var De=ie.current;Promise.resolve().then(function(){ie.current===De&&Ze()})},at=function(){Y(function(De){return(0,p.Z)((0,p.Z)({},De),{},{ready:!1})})};return(0,m.Z)(at,[Ce]),(0,m.Z)(function(){Be||at()},[Be]),[z.ready,z.offsetX,z.offsetY,z.offsetR,z.offsetB,z.arrowX,z.arrowY,z.scaleX,z.scaleY,z.align,$e]}var Ht=w(92393);function ke(Be,be,M,Ce,Ge){(0,m.Z)(function(){if(Be&&be&&M){let ie=function(){Ce(),Ge()};var K=be,k=M,F=J(K),pe=J(k),z=re(k),Y=new Set([z].concat((0,Ht.Z)(F),(0,Ht.Z)(pe)));return Y.forEach(function(Te){Te.addEventListener("scroll",ie,{passive:!0})}),z.addEventListener("resize",ie,{passive:!0}),Ce(),function(){Y.forEach(function(Te){Te.removeEventListener("scroll",ie),z.removeEventListener("resize",ie)})}}},[Be,be,M])}var Bt=w(48736);function xn(Be,be,M,Ce,Ge,K,k,F){var pe=x.useRef(Be);pe.current=Be;var z=x.useRef(!1);x.useEffect(function(){if(be&&Ce&&(!Ge||K)){var ie=function(){z.current=!1},Te=function(ot){var Je;pe.current&&!k(((Je=ot.composedPath)===null||Je===void 0||(Je=Je.call(ot))===null||Je===void 0?void 0:Je[0])||ot.target)&&!z.current&&F(!1)},xe=re(Ce);xe.addEventListener("pointerdown",ie,!0),xe.addEventListener("mousedown",Te,!0),xe.addEventListener("contextmenu",Te,!0);var Ue=(0,o.A)(M);if(Ue&&(Ue.addEventListener("mousedown",Te,!0),Ue.addEventListener("contextmenu",Te,!0)),0)var Ze,$e,at,ve;return function(){xe.removeEventListener("pointerdown",ie,!0),xe.removeEventListener("mousedown",Te,!0),xe.removeEventListener("contextmenu",Te,!0),Ue&&(Ue.removeEventListener("mousedown",Te,!0),Ue.removeEventListener("contextmenu",Te,!0))}}},[be,M,Ce,Ge,K]);function Y(){z.current=!0}return Y}var Yt=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function ln(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:me.Z,be=x.forwardRef(function(M,Ce){var Ge=M.prefixCls,K=Ge===void 0?"rc-trigger-popup":Ge,k=M.children,F=M.action,pe=F===void 0?"hover":F,z=M.showAction,Y=M.hideAction,ie=M.popupVisible,Te=M.defaultPopupVisible,xe=M.onPopupVisibleChange,Ue=M.afterPopupVisibleChange,Ze=M.mouseEnterDelay,$e=M.mouseLeaveDelay,at=$e===void 0?.1:$e,ve=M.focusDelay,De=M.blurDelay,ot=M.mask,Je=M.maskClosable,He=Je===void 0?!0:Je,gt=M.getPopupContainer,Rt=M.forceRender,st=M.autoDestroy,Kt=M.destroyPopupOnHide,cn=M.popup,At=M.popupClassName,Xt=M.popupStyle,Fe=M.popupPlacement,Ne=M.builtinPlacements,Me=Ne===void 0?{}:Ne,I=M.popupAlign,ae=M.zIndex,de=M.stretch,se=M.getPopupClassNameFromAlign,Se=M.fresh,Mt=M.alignPoint,It=M.onPopupClick,Ft=M.onPopupAlign,fn=M.arrow,Le=M.popupMotion,_=M.maskMotion,j=M.popupTransitionName,E=M.popupAnimation,Pe=M.maskTransitionName,ye=M.maskAnimation,we=M.className,ze=M.getTriggerDOMNode,ut=(0,oe.Z)(M,Yt),Pt=st||Kt||!1,Vt=x.useState(!1),Ut=(0,fe.Z)(Vt,2),mn=Ut[0],Re=Ut[1];(0,m.Z)(function(){Re((0,y.Z)())},[]);var _e=x.useRef({}),Ve=x.useContext(ue),et=x.useMemo(function(){return{registerSubPopup:function(qn,Er){_e.current[qn]=Er,Ve==null||Ve.registerSubPopup(qn,Er)}}},[Ve]),dt=(0,T.Z)(),Et=x.useState(null),tt=(0,fe.Z)(Et,2),nt=tt[0],_t=tt[1],Ct=x.useRef(null),pn=(0,b.Z)(function(jn){Ct.current=jn,(0,le.Sh)(jn)&&nt!==jn&&_t(jn),Ve==null||Ve.registerSubPopup(dt,jn)}),_n=x.useState(null),an=(0,fe.Z)(_n,2),zt=an[0],Ie=an[1],qe=x.useRef(null),ft=(0,b.Z)(function(jn){(0,le.Sh)(jn)&&zt!==jn&&(Ie(jn),qe.current=jn)}),ht=x.Children.only(k),Gt=(ht==null?void 0:ht.props)||{},en={},Wt=(0,b.Z)(function(jn){var qn,Er,er=zt;return(er==null?void 0:er.contains(jn))||((qn=(0,o.A)(er))===null||qn===void 0?void 0:qn.host)===jn||jn===er||(nt==null?void 0:nt.contains(jn))||((Er=(0,o.A)(nt))===null||Er===void 0?void 0:Er.host)===jn||jn===nt||Object.values(_e.current).some(function(Sr){return(Sr==null?void 0:Sr.contains(jn))||jn===Sr})}),rn=q(K,Le,E,j),hn=q(K,_,ye,Pe),Sn=x.useState(Te||!1),Un=(0,fe.Z)(Sn,2),yn=Un[0],Zn=Un[1],Nn=ie!=null?ie:yn,Gn=(0,b.Z)(function(jn){ie===void 0&&Zn(jn)});(0,m.Z)(function(){Zn(ie||!1)},[ie]);var Mn=x.useRef(Nn);Mn.current=Nn;var On=x.useRef([]);On.current=[];var Qn=(0,b.Z)(function(jn){var qn;Gn(jn),((qn=On.current[On.current.length-1])!==null&&qn!==void 0?qn:Nn)!==jn&&(On.current.push(jn),xe==null||xe(jn))}),vn=x.useRef(),Dn=function(){clearTimeout(vn.current)},je=function(qn){var Er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Dn(),Er===0?Qn(qn):vn.current=setTimeout(function(){Qn(qn)},Er*1e3)};x.useEffect(function(){return Dn},[]);var Lt=x.useState(!1),tn=(0,fe.Z)(Lt,2),gn=tn[0],zn=tn[1];(0,m.Z)(function(jn){(!jn||Nn)&&zn(!0)},[Nn]);var Ee=x.useState(null),lt=(0,fe.Z)(Ee,2),Ye=lt[0],it=lt[1],yt=x.useState(null),Tt=(0,fe.Z)(yt,2),Jt=Tt[0],qt=Tt[1],kt=function(qn){qt([qn.clientX,qn.clientY])},rt=$t(Nn,nt,Mt&&Jt!==null?Jt:zt,Fe,Me,I,Ft),ct=(0,fe.Z)(rt,11),pt=ct[0],xt=ct[1],Ot=ct[2],dn=ct[3],Rn=ct[4],En=ct[5],Kn=ct[6],Vn=ct[7],Wn=ct[8],$n=ct[9],An=ct[10],cr=Oe(mn,pe,z,Y),ar=(0,fe.Z)(cr,2),tr=ar[0],Xn=ar[1],Tn=tr.has("click"),dr=Xn.has("click")||Xn.has("contextMenu"),nr=(0,b.Z)(function(){gn||An()}),lr=function(){Mn.current&&Mt&&dr&&je(!1)};ke(Nn,zt,nt,nr,lr),(0,m.Z)(function(){nr()},[Jt,Fe]),(0,m.Z)(function(){Nn&&!(Me!=null&&Me[Fe])&&nr()},[JSON.stringify(I)]);var Cn=x.useMemo(function(){var jn=Q(Me,K,$n,Mt);return d()(jn,se==null?void 0:se($n))},[$n,se,Me,K,Mt]);x.useImperativeHandle(Ce,function(){return{nativeElement:qe.current,popupElement:Ct.current,forceAlign:nr}});var sn=x.useState(0),wn=(0,fe.Z)(sn,2),Fn=wn[0],Pn=wn[1],Jn=x.useState(0),rr=(0,fe.Z)(Jn,2),_r=rr[0],Br=rr[1],Nr=function(){if(de&&zt){var qn=zt.getBoundingClientRect();Pn(qn.width),Br(qn.height)}},Jr=function(){Nr(),nr()},Kr=function(qn){zn(!1),An(),Ue==null||Ue(qn)},Ur=function(){return new Promise(function(qn){Nr(),it(function(){return qn})})};(0,m.Z)(function(){Ye&&(An(),Ye(),it(null))},[Ye]);function pr(jn,qn,Er,er){en[jn]=function(Sr){var $r;er==null||er(Sr),je(qn,Er);for(var Or=arguments.length,ei=new Array(Or>1?Or-1:0),ri=1;ri<Or;ri++)ei[ri-1]=arguments[ri];($r=Gt[jn])===null||$r===void 0||$r.call.apply($r,[Gt,Sr].concat(ei))}}(Tn||dr)&&(en.onClick=function(jn){var qn;Mn.current&&dr?je(!1):!Mn.current&&Tn&&(kt(jn),je(!0));for(var Er=arguments.length,er=new Array(Er>1?Er-1:0),Sr=1;Sr<Er;Sr++)er[Sr-1]=arguments[Sr];(qn=Gt.onClick)===null||qn===void 0||qn.call.apply(qn,[Gt,jn].concat(er))});var wr=xn(Nn,dr,zt,nt,ot,He,Wt,je),Pr=tr.has("hover"),Dr=Xn.has("hover"),gr,mr;Pr&&(pr("onMouseEnter",!0,Ze,function(jn){kt(jn)}),pr("onPointerEnter",!0,Ze,function(jn){kt(jn)}),gr=function(qn){(Nn||gn)&&nt!==null&&nt!==void 0&&nt.contains(qn.target)&&je(!0,Ze)},Mt&&(en.onMouseMove=function(jn){var qn;(qn=Gt.onMouseMove)===null||qn===void 0||qn.call(Gt,jn)})),Dr&&(pr("onMouseLeave",!1,at),pr("onPointerLeave",!1,at),mr=function(){je(!1,at)}),tr.has("focus")&&pr("onFocus",!0,ve),Xn.has("focus")&&pr("onBlur",!1,De),tr.has("contextMenu")&&(en.onContextMenu=function(jn){var qn;Mn.current&&Xn.has("contextMenu")?je(!1):(kt(jn),je(!0)),jn.preventDefault();for(var Er=arguments.length,er=new Array(Er>1?Er-1:0),Sr=1;Sr<Er;Sr++)er[Sr-1]=arguments[Sr];(qn=Gt.onContextMenu)===null||qn===void 0||qn.call.apply(qn,[Gt,jn].concat(er))}),we&&(en.className=d()(Gt.className,we));var bn=(0,p.Z)((0,p.Z)({},Gt),en),Yn={},ir=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ir.forEach(function(jn){ut[jn]&&(Yn[jn]=function(){for(var qn,Er=arguments.length,er=new Array(Er),Sr=0;Sr<Er;Sr++)er[Sr]=arguments[Sr];(qn=bn[jn])===null||qn===void 0||qn.call.apply(qn,[bn].concat(er)),ut[jn].apply(ut,er)})});var or=x.cloneElement(ht,(0,p.Z)((0,p.Z)({},bn),Yn)),yr={x:En,y:Kn},Cr=fn?(0,p.Z)({},fn!==!0?fn:{}):null;return x.createElement(x.Fragment,null,x.createElement(ge.Z,{disabled:!Nn,ref:ft,onResize:Jr},x.createElement(W,{getTriggerDOMNode:ze},or)),x.createElement(ue.Provider,{value:et},x.createElement($,{portal:Be,ref:pn,prefixCls:K,popup:cn,className:d()(At,Cn),style:Xt,target:zt,onMouseEnter:gr,onMouseLeave:mr,onPointerEnter:gr,zIndex:ae,open:Nn,keepDom:gn,fresh:Se,onClick:It,onPointerDownCapture:wr,mask:ot,motion:rn,maskMotion:hn,onVisibleChanged:Kr,onPrepare:Ur,forceRender:Rt,autoDestroy:Pt,getPopupContainer:gt,align:$n,arrow:Cr,arrowPos:yr,ready:pt,offsetX:xt,offsetY:Ot,offsetR:dn,offsetB:Rn,onAlign:nr,stretch:de,targetWidth:Fn/Vn,targetHeight:_r/Wn})))});return be}var mt=ln(me.Z)},68385:function(Ln,jt,w){"use strict";var p=w(59301),fe=Object.defineProperty,oe=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,d=(o,b,T)=>b in o?fe(o,b,{enumerable:!0,configurable:!0,writable:!0,value:T}):o[b]=T,ge=(o,b)=>{for(var T in b||(b={}))me.call(b,T)&&d(o,T,b[T]);if(oe)for(var T of oe(b))O.call(b,T)&&d(o,T,b[T]);return o};const le=o=>React.createElement("svg",ge({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},o),React.createElement("path",{fill:"#F7B500",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm1 3H6.395a3.501 3.501 0 0 1-.857 1.245c-.32.294-.752.551-1.297.772L4 9.109V10.9c.448-.154.82-.315 1.117-.483.222-.126.45-.282.685-.466l.236-.194V15H8V7ZM4.812 0c.175 0 .35.16.438.318l1.313 2.309s-2.8.16-4.463 1.672L.088.716C0 .636 0 .557 0 .478 0 .159.263 0 .525 0Zm8.663 0c.263 0 .525.239.525.478 0 .08 0 .159-.088.238L11.9 4.22c-1.662-1.433-4.463-1.592-4.463-1.592L8.75.318C8.75.16 8.925 0 9.188 0Z"}));jt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0Y3QjUwMCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptMSAzSDYuMzk1YTMuNTAxIDMuNTAxIDAgMCAxLS44NTcgMS4yNDVjLS4zMi4yOTQtLjc1Mi41NTEtMS4yOTcuNzcyTDQgOS4xMDlWMTAuOWMuNDQ4LS4xNTQuODItLjMxNSAxLjExNy0uNDgzLjIyMi0uMTI2LjQ1LS4yODIuNjg1LS40NjZsLjIzNi0uMTk0VjE1SDhWN1pNNC44MTIgMGMuMTc1IDAgLjM1LjE2LjQzOC4zMThsMS4zMTMgMi4zMDlzLTIuOC4xNi00LjQ2MyAxLjY3MkwuMDg4LjcxNkMwIC42MzYgMCAuNTU3IDAgLjQ3OCAwIC4xNTkuMjYzIDAgLjUyNSAwWm04LjY2MyAwYy4yNjMgMCAuNTI1LjIzOS41MjUuNDc4IDAgLjA4IDAgLjE1OS0uMDg4LjIzOEwxMS45IDQuMjJjLTEuNjYyLTEuNDMzLTQuNDYzLTEuNTkyLTQuNDYzLTEuNTkyTDguNzUuMzE4QzguNzUuMTYgOC45MjUgMCA5LjE4OCAwWiIvPjwvc3ZnPg=="},83358:function(Ln,jt,w){"use strict";var p=w(59301),fe=Object.defineProperty,oe=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,d=(o,b,T)=>b in o?fe(o,b,{enumerable:!0,configurable:!0,writable:!0,value:T}):o[b]=T,ge=(o,b)=>{for(var T in b||(b={}))me.call(b,T)&&d(o,T,b[T]);if(oe)for(var T of oe(b))O.call(b,T)&&d(o,T,b[T]);return o};const le=o=>React.createElement("svg",ge({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},o),React.createElement("path",{fill:"#B9C4CF",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm.05 3c-.675 0-1.203.092-1.584.276a2.056 2.056 0 0 0-.887.794c-.18.296-.31.691-.394 1.186l-.038.255 2.004.177c.055-.443.164-.753.326-.928a.814.814 0 0 1 .626-.263.81.81 0 0 1 .611.255c.162.17.243.375.243.614 0 .222-.081.456-.245.703-.164.247-.539.608-1.124 1.084-.96.776-1.613 1.45-1.962 2.02a4.363 4.363 0 0 0-.588 1.552L4 15h6v-1.781H6.877c.184-.197.343-.356.479-.478.136-.122.405-.334.808-.638.677-.523 1.145-1.002 1.401-1.438.257-.437.386-.895.386-1.374 0-.45-.112-.858-.336-1.22a2.043 2.043 0 0 0-.924-.808C8.301 7.088 7.753 7 7.05 7ZM4.812 0c.175 0 .35.16.437.318l1.313 2.309s-2.8.16-4.463 1.672L.088.716C0 .636 0 .557 0 .478 0 .159.263 0 .525 0Zm8.662 0c.263 0 .525.239.525.478 0 .08 0 .159-.088.238L11.9 4.22c-1.662-1.433-4.463-1.592-4.463-1.592L8.75.318C8.75.16 8.925 0 9.188 0Z"}));jt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0I5QzRDRiIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLjA1IDNjLS42NzUgMC0xLjIwMy4wOTItMS41ODQuMjc2YTIuMDU2IDIuMDU2IDAgMCAwLS44ODcuNzk0Yy0uMTguMjk2LS4zMS42OTEtLjM5NCAxLjE4NmwtLjAzOC4yNTUgMi4wMDQuMTc3Yy4wNTUtLjQ0My4xNjQtLjc1My4zMjYtLjkyOGEuODE0LjgxNCAwIDAgMSAuNjI2LS4yNjMuODEuODEgMCAwIDEgLjYxMS4yNTVjLjE2Mi4xNy4yNDMuMzc1LjI0My42MTQgMCAuMjIyLS4wODEuNDU2LS4yNDUuNzAzLS4xNjQuMjQ3LS41MzkuNjA4LTEuMTI0IDEuMDg0LS45Ni43NzYtMS42MTMgMS40NS0xLjk2MiAyLjAyYTQuMzYzIDQuMzYzIDAgMCAwLS41ODggMS41NTJMNCAxNWg2di0xLjc4MUg2Ljg3N2MuMTg0LS4xOTcuMzQzLS4zNTYuNDc5LS40NzguMTM2LS4xMjIuNDA1LS4zMzQuODA4LS42MzguNjc3LS41MjMgMS4xNDUtMS4wMDIgMS40MDEtMS40MzguMjU3LS40MzcuMzg2LS44OTUuMzg2LTEuMzc0IDAtLjQ1LS4xMTItLjg1OC0uMzM2LTEuMjJhMi4wNDMgMi4wNDMgMCAwIDAtLjkyNC0uODA4QzguMzAxIDcuMDg4IDcuNzUzIDcgNy4wNSA3Wk00LjgxMiAwYy4xNzUgMCAuMzUuMTYuNDM3LjMxOGwxLjMxMyAyLjMwOXMtMi44LjE2LTQuNDYzIDEuNjcyTC4wODguNzE2QzAgLjYzNiAwIC41NTcgMCAuNDc4IDAgLjE1OS4yNjMgMCAuNTI1IDBabTguNjYyIDBjLjI2MyAwIC41MjUuMjM5LjUyNS40NzggMCAuMDggMCAuMTU5LS4wODguMjM4TDExLjkgNC4yMmMtMS42NjItMS40MzMtNC40NjMtMS41OTItNC40NjMtMS41OTJMOC43NS4zMThDOC43NS4xNiA4LjkyNSAwIDkuMTg4IDBaIi8+PC9zdmc+"},62830:function(Ln,jt,w){"use strict";var p=w(59301),fe=Object.defineProperty,oe=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,d=(o,b,T)=>b in o?fe(o,b,{enumerable:!0,configurable:!0,writable:!0,value:T}):o[b]=T,ge=(o,b)=>{for(var T in b||(b={}))me.call(b,T)&&d(o,T,b[T]);if(oe)for(var T of oe(b))O.call(b,T)&&d(o,T,b[T]);return o};const le=o=>React.createElement("svg",ge({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},o),React.createElement("path",{fill:"#D09F18",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm-.062 3c-.826 0-1.464.172-1.915.517-.4.307-.686.733-.856 1.278l-.058.21 1.908.364c.052-.383.153-.651.302-.804a.772.772 0 0 1 .58-.23c.23 0 .412.07.544.211.133.14.199.33.199.565a.88.88 0 0 1-.265.638.89.89 0 0 1-.662.27 1.35 1.35 0 0 1-.158-.012l-.104-.015-.105 1.536c.278-.085.496-.127.654-.127.298 0 .533.099.707.296.173.197.26.475.26.833 0 .352-.09.634-.27.845a.852.852 0 0 1-.677.316.862.862 0 0 1-.636-.25c-.143-.144-.254-.384-.333-.723l-.036-.177L4 12.826c.132.482.321.882.567 1.2.246.319.56.56.942.726.381.165.902.248 1.563.248.677 0 1.224-.112 1.64-.335.416-.223.735-.542.956-.955.221-.414.332-.845.332-1.296 0-.359-.067-.667-.2-.926a1.633 1.633 0 0 0-.563-.625c-.149-.099-.363-.185-.644-.259.347-.204.606-.441.778-.712a1.66 1.66 0 0 0 .257-.908 1.82 1.82 0 0 0-.634-1.42C8.571 7.189 7.886 7 6.938 7ZM4.813 0c.175 0 .35.17.437.338l1.313 2.453s-2.8.17-4.463 1.776L.088.761C0 .677 0 .592 0 .507 0 .17.263 0 .525 0Zm8.662 0c.263 0 .525.254.525.507 0 .085 0 .17-.088.254L11.9 4.483C10.238 2.96 7.437 2.79 7.437 2.79L8.75.338C8.75.17 8.925 0 9.188 0Z"}));jt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0QwOUYxOCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMu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S42MzQtMS40MkM4LjU3MSA3LjE4OSA3Ljg4NiA3IDYuOTM4IDdaTTQuODEzIDBjLjE3NSAwIC4zNS4xNy40MzcuMzM4bDEuMzEzIDIuNDUzcy0yLjguMTctNC40NjMgMS43NzZMLjA4OC43NjFDMCAuNjc3IDAgLjU5MiAwIC41MDcgMCAuMTcuMjYzIDAgLjUyNSAwWm04LjY2MiAwYy4yNjMgMCAuNTI1LjI1NC41MjUuNTA3IDAgLjA4NSAwIC4xNy0uMDg4LjI1NEwxMS45IDQuNDgzQzEwLjIzOCAyLjk2IDcuNDM3IDIuNzkgNy40MzcgMi43OUw4Ljc1LjMzOEM4Ljc1LjE3IDguOTI1IDAgOS4xODggMFoiLz48L3N2Zz4="},28426:function(Ln,jt,w){"use strict";var p=w(59301),fe=w(93314),oe=w(99571),me=Object.defineProperty,O=Object.defineProperties,d=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,b=(x,L,U)=>L in x?me(x,L,{enumerable:!0,configurable:!0,writable:!0,value:U}):x[L]=U,T=(x,L)=>{for(var U in L||(L={}))le.call(L,U)&&b(x,U,L[U]);if(ge)for(var U of ge(L))o.call(L,U)&&b(x,U,L[U]);return x},m=(x,L)=>O(x,d(L));const y=({img:x,buttonProps:L={},styles:U={},customText:V,ButtonText:te,ButtonClick:N,Buttonclass:B,ButtonTwo:R,imgStyles:S,loading:$=!1,className:ee=""})=>p.createElement("section",{className:`tc animated fadeIn ${ee}`,style:T({color:"#999",margin:"100px auto",visibility:$?"hidden":"visible"},U)},p.createElement("img",{src:x||fe,style:m(T({},S),{pointerEvents:"none",userSelect:"none"})}),p.createElement("p",{className:"mt20 font14"},V||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),te&&p.createElement(oe.ZP,T({className:B,onClick:N},L),te),R&&R);jt.Z=y},45677:function(Ln,jt,w){"use strict";w.d(jt,{Z:function(){return B}});var p=w(59301),fe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},oe=w(99571),me=w(70557),O=w(75975),d=w(25399),ge=w(51257),le=w(81722),o=w(28426),b=w(346),T=w(44203),m=w(59301),y=Object.defineProperty,x=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,V=(R,S,$)=>S in R?y(R,S,{enumerable:!0,configurable:!0,writable:!0,value:$}):R[S]=$,te=(R,S)=>{for(var $ in S||(S={}))L.call(S,$)&&V(R,$,S[$]);if(x)for(var $ of x(S))U.call(S,$)&&V(R,$,S[$]);return R},N=(R,S,$)=>new Promise((ee,W)=>{var ne=Oe=>{try{he($.next(Oe))}catch(G){W(G)}},ue=Oe=>{try{he($.throw(Oe))}catch(G){W(G)}},he=Oe=>Oe.done?ee(Oe.value):Promise.resolve(Oe.value).then(ne,ue);he(($=$.apply(R,S)).next())}),B=({editOffice:R="view",data:S,issaver:$,onSaver:ee,theme:W,type:ne,filename:ue,monacoEditor:he,className:Oe,style:G,close:P,onClose:Q,hasMask:q,disabledDownload:re,onImgDimensions:J,showNodata:g,recordInfo:v})=>{const[Z,ce]=(0,p.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Xe,We]=(0,p.useState)(""),[Dt,vt]=(0,p.useState)(),$t=window.ENV==="build"?"/react/build":"",Ht=location.host.startsWith("localhost")?b.Z.PROXY_SERVER:b.Z.API_SERVER,Bt=10*(1024*1024),xn=(0,p.useRef)();S!=null&&S.startsWith("/api")&&ne!=="txt"&&(S=b.Z.API_SERVER+S);const Yt=M=>M.substring(M.lastIndexOf("/")+1).split(".").pop();ue&&he&&(he.filename=ue),(0,p.useEffect)(()=>{var M,Ce;const Ge=(Ce=(M=document.cookie)==null?void 0:M.replace(/\s/g,""))==null?void 0:Ce.split(";");Ge==null||Ge.map(K=>{let k=K.split("=");k[0]==="_educoder_session"&&We(k[1])})},[]),(0,p.useEffect)(()=>{ne==="office"&&(S.indexOf("bigfilescdn.")>-1||S.indexOf("bigfiles1")>-1?vt({url:S,fileType:Yt(S),model:S.indexOf("model=edit")?"edit":"view"}):mt())},[ne,S]);function ln(M){return N(this,null,function*(){M.data.type==="pdfdata"&&(ee(M.data.data),window.removeEventListener("message",ln,!1)),console.log("mess---:",M.data)})}const mt=()=>N(void 0,null,function*(){console.log("data:",S);let M=S;S.startsWith("http")||(M=location.origin+M);let Ce=new URL(M).pathname.split("/").pop();const Ge=yield(0,le.gJ)({attachment_id:Ce});Ge.url=Ht+Ge.url,vt(Ge)}),Be=()=>{if(S.startsWith("http")||S.startsWith("blob:")){be();return}(0,ge.Sv)(ue||"educoder",S,ue)},be=()=>{v&&(0,T.fc)({id:v==null?void 0:v.id,watch_type:1,course_id:v==null?void 0:v.course_id}),(0,ge.Nd)(ue||"educoder",decodeURIComponent(S))};return m.createElement("div",{style:te({},G||{}),className:`${q&&fe.bgBlack} ${ne?fe.wrp:"hide"}`},P&&m.createElement("div",{className:fe.close,ref:xn},!!J&&m.createElement(d.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>xn.current},m.createElement("span",{onClick:()=>{Q(),J()}},m.createElement("i",{className:"icon-yulanpizhu"}))),!re&&m.createElement(d.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>xn.current},m.createElement("span",{onClick:be},m.createElement("i",{className:"icon-quxiaozhiding"}))),$&&m.createElement(d.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>xn.current},m.createElement("span",{className:"",onClick:()=>{const M=document.getElementById("pdfiframe");window.addEventListener("message",ln,!1),setTimeout(()=>{M.contentWindow.postMessage("getData","*")},300)}},m.createElement("i",{className:"icon-baocun"}))),m.createElement(d.Z,{title:"\u5173\u95ED",getPopupContainer:()=>xn.current},m.createElement("span",{className:"",onClick:()=>{Q()}},m.createElement("i",{className:"icon-guanbi1"})))),m.createElement("div",{className:`${fe[Oe]} ${Oe} ${fe.monaco} ${ne==="txt"?"show":"hide"}`},ne==="txt"&&m.createElement(m.Fragment,null,m.createElement(O.ZP,te({},he)))),ne==="audio"&&m.createElement("audio",{src:`${(S==null?void 0:S.indexOf("http://"))>-1||(S==null?void 0:S.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${S}`,autoPlay:!0}),ne==="video"&&m.createElement(m.Fragment,null,(S==null?void 0:S.indexOf("http"))>-1?m.createElement("video",{controls:!0,src:`${S}`,autoPlay:!0}):m.createElement("video",{controls:!0,src:`data:video/mp4;base64,${S}`,autoPlay:!0})),ne==="office"&&Dt&&m.createElement("iframe",{src:`${$t}/office.html?key=${Dt.key}&url=${btoa(Dt.url)}&callbackUrl=${Ht+(Dt.callbackUrl||"")}&fileType=${Dt.fileType}&title=${Dt.title||""}&model=${R}&officeServer=${b.Z.ONLYOFFICE}&disabledDownload=${!!re}`}),ne==="html"&&m.createElement("iframe",{src:S+"&disposition=inline"}),ne==="pdf"&&m.createElement("iframe",{id:"pdfiframe",src:`${$t}/js/pdfview/index.html?filename=${ue||"educoder.pdf"}&url=${encodeURIComponent(S)}&disabledDownload=${!!re}&model=${R}`}),ne==="image"&&m.createElement("img",{src:`${(S==null?void 0:S.indexOf("http://"))>-1||(S==null?void 0:S.indexOf("https://"))>-1?"":"data:image/png;base64,"}${S}`}),(ne==="other"||ne==="download")&&m.createElement(m.Fragment,null,g?m.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:m.createElement(oe.ZP,{icon:m.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Be,disabled:re},"\u4E0B\u8F7D")}):m.createElement(oe.ZP,{type:"primary",size:"middle",onClick:Be,disabled:re},m.createElement(me.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(Ln,jt,w){"use strict";w.d(jt,{z:function(){return W},Z:function(){return ne}});var p=w(59301),fe=w(8944),oe=w(81428),me=w(64018),O=w(79710),d=w(346),ge=w(51257),le=w(15342),o=w(1012),b=w(45677),T=w(59301),y=({html:ue})=>{const he=(0,p.useRef)(null),Oe=(0,p.useRef)(null),G=`.markdown-body p {
|
|
margin: 0 0 16px 0 !important;
|
|
line-height: 28px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
ol,
|
|
ul,
|
|
li {
|
|
list-style-type: none
|
|
}
|
|
|
|
ol,
|
|
ul,
|
|
dl {
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.markdown-body {
|
|
-ms-text-size-adjust: 100%;
|
|
-webkit-text-size-adjust: 100%;
|
|
color: #333;
|
|
overflow: hidden;
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
word-break: break-word;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
white-space: normal;
|
|
word-wrap: break-word;
|
|
position: relative;
|
|
}
|
|
|
|
.markdown-body ul>li {
|
|
list-style-type: disc;
|
|
}
|
|
|
|
.markdown-body ol>li {
|
|
list-style-type: decimal;
|
|
}
|
|
|
|
.markdown-body a {
|
|
background: transparent;
|
|
}
|
|
|
|
.markdown-body a:active,
|
|
.markdown-body a:hover {
|
|
outline: 0;
|
|
}
|
|
|
|
.markdown-body strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
font-size: 2em;
|
|
margin: 0.67em 0;
|
|
}
|
|
|
|
.markdown-body img {
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body hr {
|
|
-moz-box-sizing: content-box;
|
|
box-sizing: content-box;
|
|
height: 0;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
overflow: auto;
|
|
}
|
|
|
|
.markdown-body code,
|
|
.markdown-body kbd,
|
|
.markdown-body pre {
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.markdown-body input {
|
|
color: inherit;
|
|
font: inherit;
|
|
margin: 0;
|
|
}
|
|
|
|
.markdown-body html input[disabled] {
|
|
cursor: default;
|
|
}
|
|
|
|
.markdown-body input {
|
|
line-height: normal;
|
|
}
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
.markdown-body td,
|
|
.markdown-body th {
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body * {
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.markdown-body input {
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
}
|
|
|
|
.markdown-body a {
|
|
color: #4183c4;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.markdown-body a:hover,
|
|
.markdown-body a:active {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.markdown-body hr {
|
|
height: 0;
|
|
margin: 15px 0;
|
|
overflow: hidden;
|
|
background: transparent;
|
|
border: 0;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.markdown-body hr:before {
|
|
display: table;
|
|
content: "";
|
|
}
|
|
|
|
.markdown-body hr:after {
|
|
display: table;
|
|
clear: both;
|
|
content: "";
|
|
}
|
|
|
|
.markdown-body h1,
|
|
.markdown-body h2,
|
|
.markdown-body h3,
|
|
.markdown-body h4,
|
|
.markdown-body h5,
|
|
.markdown-body h6 {
|
|
margin-top: 15px;
|
|
margin-bottom: 15px;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
font-size: 30px;
|
|
}
|
|
|
|
.markdown-body h2 {
|
|
font-size: 21px;
|
|
}
|
|
|
|
.markdown-body h3 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.markdown-body h4 {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.markdown-body h5 {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.markdown-body h6 {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.markdown-body blockquote {
|
|
margin: 0;
|
|
}
|
|
|
|
.markdown-body ul,
|
|
.markdown-body ol {
|
|
padding: 0;
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
ul.linenums,
|
|
ol.linenums {
|
|
padding: 16px 0 0 56px !important;
|
|
}
|
|
|
|
.markdown-body ul,
|
|
.markdown-body ol {
|
|
padding-left: 2em;
|
|
}
|
|
|
|
|
|
.markdown-body ol ol,
|
|
.markdown-body ul ol {
|
|
list-style-type: lower-roman;
|
|
}
|
|
|
|
.markdown-body ul ul ol,
|
|
.markdown-body ul ol ol,
|
|
.markdown-body ol ul ol,
|
|
.markdown-body ol ol ol {
|
|
list-style-type: lower-alpha;
|
|
}
|
|
|
|
.markdown-body dd {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.markdown-body code {
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
}
|
|
|
|
.markdown-body .octicon {
|
|
font: normal normal 16px octicons-anchor;
|
|
line-height: 1;
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.markdown-body .octicon-link:before {
|
|
content: '\f05c';
|
|
}
|
|
|
|
.markdown-body>*:first-child {
|
|
margin-top: 0 !important;
|
|
}
|
|
|
|
.markdown-body>*:last-child {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.markdown-body .anchor {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: block;
|
|
padding-right: 6px;
|
|
padding-left: 30px;
|
|
margin-left: -30px;
|
|
}
|
|
|
|
.markdown-body .anchor:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.markdown-body h1,
|
|
.markdown-body h2,
|
|
.markdown-body h3,
|
|
.markdown-body h4,
|
|
.markdown-body h5,
|
|
.markdown-body h6 {
|
|
position: relative;
|
|
margin-top: 1em;
|
|
margin-bottom: 16px;
|
|
font-weight: bold;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
.markdown-body h2 .octicon-link,
|
|
.markdown-body h3 .octicon-link,
|
|
.markdown-body h4 .octicon-link,
|
|
.markdown-body h5 .octicon-link,
|
|
.markdown-body h6 .octicon-link {
|
|
display: none;
|
|
color: #000;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
.markdown-body h2:hover .anchor,
|
|
.markdown-body h3:hover .anchor,
|
|
.markdown-body h4:hover .anchor,
|
|
.markdown-body h5:hover .anchor,
|
|
.markdown-body h6:hover .anchor {
|
|
padding-left: 8px;
|
|
margin-left: -30px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
display: inline-block;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
padding-bottom: 0.3em;
|
|
font-size: 2.25em;
|
|
line-height: 1.2;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.markdown-body h1 .anchor {
|
|
line-height: 1;
|
|
}
|
|
|
|
.markdown-body h2 {
|
|
padding-bottom: 0.3em;
|
|
font-size: 1.75em;
|
|
line-height: 1.225;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.markdown-body h2 .anchor {
|
|
line-height: 1;
|
|
}
|
|
|
|
.markdown-body h3 {
|
|
font-size: 1.5em;
|
|
line-height: 1.43;
|
|
}
|
|
|
|
.markdown-body h3 .anchor {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.markdown-body h4 {
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
.markdown-body h4 .anchor {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.markdown-body h5 {
|
|
font-size: 1em;
|
|
}
|
|
|
|
.markdown-body h5 .anchor {
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body h6 {
|
|
font-size: 1em;
|
|
color: #777;
|
|
}
|
|
|
|
.markdown-body h6 .anchor {
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body p,
|
|
.markdown-body blockquote,
|
|
.markdown-body ul,
|
|
.markdown-body ol,
|
|
.markdown-body dl,
|
|
.markdown-body table,
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body ul ul,
|
|
.markdown-body ul ol,
|
|
.markdown-body ol ol,
|
|
.markdown-body ol ul {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.markdown-body li>p {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.markdown-body dl {
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body dl dt {
|
|
padding: 0;
|
|
margin-top: 16px;
|
|
font-size: 1em;
|
|
font-style: italic;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body dl dd {
|
|
padding: 0 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body blockquote {
|
|
padding: 0 15px;
|
|
color: #777;
|
|
border-left: 4px solid #ddd;
|
|
}
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.markdown-body table {
|
|
display: block;
|
|
width: 100%;
|
|
overflow: auto;
|
|
word-break: normal;
|
|
word-break: keep-all;
|
|
}
|
|
|
|
.markdown-body table th {
|
|
font-weight: bold;
|
|
text-align: revert;
|
|
}
|
|
|
|
.markdown-body table th,
|
|
.markdown-body table td {
|
|
padding: 6px 13px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.markdown-body table tr {
|
|
background-color: #fff;
|
|
border-top: 1px solid #ccc;
|
|
}
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
background-color: #f8f8f8;
|
|
}
|
|
|
|
.markdown-body img {
|
|
max-width: 100%;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.markdown-body code {
|
|
padding: 0;
|
|
padding-top: 0.2em;
|
|
padding-bottom: 0.2em;
|
|
margin: 0;
|
|
font-size: 85%;
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.markdown-body code:has(.katex) {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.markdown-body code:before,
|
|
.markdown-body code:after {
|
|
letter-spacing: -0.2em;
|
|
content: "\\00a0";
|
|
}
|
|
|
|
.markdown-body pre>code {
|
|
padding: 0;
|
|
margin: 0;
|
|
font-size: 100%;
|
|
word-break: normal;
|
|
white-space: pre;
|
|
background: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body .highlight {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body .highlight pre,
|
|
.markdown-body pre {
|
|
padding: 16px;
|
|
overflow: auto;
|
|
font-size: 85%;
|
|
line-height: 1.45;
|
|
background-color: #f7f7f7;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.markdown-body .highlight pre {
|
|
margin-bottom: 0;
|
|
word-break: normal;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
word-wrap: normal;
|
|
}
|
|
|
|
.markdown-body pre code {
|
|
display: inline;
|
|
max-width: initial;
|
|
padding: 0;
|
|
margin: 0;
|
|
overflow: initial;
|
|
line-height: inherit;
|
|
word-wrap: normal;
|
|
background-color: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body pre code:before,
|
|
.markdown-body pre code:after {
|
|
content: normal;
|
|
}
|
|
|
|
.markdown-body kbd {
|
|
display: inline-block;
|
|
padding: 3px 5px;
|
|
font-size: 11px;
|
|
line-height: 10px;
|
|
color: #555;
|
|
vertical-align: middle;
|
|
background-color: #fcfcfc;
|
|
border: solid 1px #ccc;
|
|
border-bottom-color: #bbb;
|
|
border-radius: 3px;
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
}
|
|
|
|
.markdown-body .pl-c {
|
|
color: #969896;
|
|
}
|
|
|
|
.markdown-body .pl-c1,
|
|
.markdown-body .pl-mdh,
|
|
.markdown-body .pl-mm,
|
|
.markdown-body .pl-mp,
|
|
.markdown-body .pl-mr,
|
|
.markdown-body .pl-s1 .pl-v,
|
|
.markdown-body .pl-s3,
|
|
.markdown-body .pl-sc,
|
|
.markdown-body .pl-sv {
|
|
color: #0086b3;
|
|
}
|
|
|
|
.markdown-body .pl-e,
|
|
.markdown-body .pl-en {
|
|
color: #795da3;
|
|
}
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
.markdown-body .pl-smi,
|
|
.markdown-body .pl-smp,
|
|
.markdown-body .pl-stj,
|
|
.markdown-body .pl-vo,
|
|
.markdown-body .pl-vpf {
|
|
color: #333;
|
|
}
|
|
|
|
.markdown-body .pl-ent {
|
|
color: #63a35c;
|
|
}
|
|
|
|
.markdown-body .pl-k,
|
|
.markdown-body .pl-s,
|
|
.markdown-body .pl-st {
|
|
color: #a71d5d;
|
|
}
|
|
|
|
.markdown-body .pl-pds,
|
|
.markdown-body .pl-s1,
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
.markdown-body .pl-sr,
|
|
.markdown-body .pl-sr .pl-cce,
|
|
.markdown-body .pl-sr .pl-sra,
|
|
.markdown-body .pl-sr .pl-sre,
|
|
.markdown-body .pl-src {
|
|
color: #df5000;
|
|
}
|
|
|
|
.markdown-body .pl-mo,
|
|
.markdown-body .pl-v {
|
|
color: #1d3e81;
|
|
}
|
|
|
|
.markdown-body .pl-id {
|
|
color: #b52a1d;
|
|
}
|
|
|
|
.markdown-body .pl-ii {
|
|
background-color: #b52a1d;
|
|
color: #f8f8f8;
|
|
}
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
color: #63a35c;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-ml {
|
|
color: #693a17;
|
|
}
|
|
|
|
.markdown-body .pl-mh,
|
|
.markdown-body .pl-mh .pl-en,
|
|
.markdown-body .pl-ms {
|
|
color: #1d3e81;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-mq {
|
|
color: #008080;
|
|
}
|
|
|
|
.markdown-body .pl-mi {
|
|
color: #333;
|
|
font-style: italic;
|
|
}
|
|
|
|
.markdown-body .pl-mb {
|
|
color: #333;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-md,
|
|
.markdown-body .pl-mdhf {
|
|
background-color: #ffecec;
|
|
color: #bd2c00;
|
|
}
|
|
|
|
.markdown-body .pl-mdht,
|
|
.markdown-body .pl-mi1 {
|
|
background-color: #eaffea;
|
|
color: #55a532;
|
|
}
|
|
|
|
.markdown-body .pl-mdr {
|
|
color: #795da3;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body kbd {
|
|
display: inline-block;
|
|
padding: 3px 5px;
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
line-height: 10px;
|
|
color: #555;
|
|
vertical-align: middle;
|
|
background-color: #fcfcfc;
|
|
border: solid 1px #ccc;
|
|
border-bottom-color: #bbb;
|
|
border-radius: 3px;
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
}
|
|
|
|
.markdown-body .task-list-item {
|
|
list-style-type: none;
|
|
}
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.markdown-body .task-list-item input {
|
|
float: left;
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
z-index: 1;
|
|
position: relative;
|
|
border-color: #4183c4;
|
|
}
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
.pln {
|
|
color: #000
|
|
}
|
|
|
|
/* plain text */
|
|
|
|
@media screen {
|
|
.str {
|
|
color: #080
|
|
}
|
|
|
|
/* string content */
|
|
.kwd {
|
|
color: #008
|
|
}
|
|
|
|
/* a keyword */
|
|
.com {
|
|
color: #800
|
|
}
|
|
|
|
/* a comment */
|
|
.typ {
|
|
color: #606
|
|
}
|
|
|
|
/* a type name */
|
|
.lit {
|
|
color: #066
|
|
}
|
|
|
|
/* a literal value */
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
.pun,
|
|
.opn,
|
|
.clo {
|
|
color: #660
|
|
}
|
|
|
|
.tag {
|
|
color: #008
|
|
}
|
|
|
|
/* a markup tag name */
|
|
.atn {
|
|
color: #606
|
|
}
|
|
|
|
/* a markup attribute name */
|
|
.atv {
|
|
color: #080
|
|
}
|
|
|
|
/* a markup attribute value */
|
|
.dec,
|
|
.var {
|
|
color: #606
|
|
}
|
|
|
|
/* a declaration; a variable name */
|
|
.fun {
|
|
color: red
|
|
}
|
|
|
|
/* a function name */
|
|
}
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
@media print,
|
|
projection {
|
|
.str {
|
|
color: #060
|
|
}
|
|
|
|
.kwd {
|
|
color: #006;
|
|
font-weight: bold
|
|
}
|
|
|
|
.com {
|
|
color: #600;
|
|
font-style: italic
|
|
}
|
|
|
|
.typ {
|
|
color: #404;
|
|
font-weight: bold
|
|
}
|
|
|
|
.lit {
|
|
color: #044
|
|
}
|
|
|
|
.pun,
|
|
.opn,
|
|
.clo {
|
|
color: #440
|
|
}
|
|
|
|
.tag {
|
|
color: #006;
|
|
font-weight: bold
|
|
}
|
|
|
|
.atn {
|
|
color: #404
|
|
}
|
|
|
|
.atv {
|
|
color: #060
|
|
}
|
|
}
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
pre.prettyprint {
|
|
padding: 2px;
|
|
/* border: 1px solid #888 */
|
|
}
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
ol.linenums {
|
|
margin-top: 0;
|
|
margin-bottom: 0
|
|
}
|
|
|
|
/* IE indents via margin-left */
|
|
li.L0,
|
|
li.L1,
|
|
li.L2,
|
|
li.L3,
|
|
li.L5,
|
|
li.L6,
|
|
li.L7,
|
|
li.L8 {
|
|
list-style-type: none
|
|
}
|
|
|
|
/* Alternate shading for lines */
|
|
li.L1,
|
|
li.L3,
|
|
li.L5,
|
|
li.L7,
|
|
li.L9 {
|
|
background: #eee
|
|
}
|
|
|
|
.markdown-body p,
|
|
.markdown-body blockquote,
|
|
.markdown-body ul,
|
|
.markdown-body ol,
|
|
.markdown-body dl,
|
|
.markdown-body table,
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
}`;return(0,p.useEffect)(()=>{const P=he.current.attachShadow({mode:"open"});Oe.current=document.createElement("div"),Oe.current.className="markdown-body",Oe.current.innerHTML=ue,P.appendChild(Oe.current);const Q=document.createElement("style");return Q.textContent=G,P.appendChild(Q),()=>{P.innerHTML=""}},[]),(0,p.useEffect)(()=>{Oe.current&&(Oe.current.innerHTML=ue)},[ue]),T.createElement("div",{ref:he})};function x(ue){const he=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],Oe=new RegExp(`\\b(${he.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return ue.replace(Oe,"").trim()}var L=Object.defineProperty,U=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,N=(ue,he,Oe)=>he in ue?L(ue,he,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ue[he]=Oe,B=(ue,he)=>{for(var Oe in he||(he={}))V.call(he,Oe)&&N(ue,Oe,he[Oe]);if(U)for(var Oe of U(he))te.call(he,Oe)&&N(ue,Oe,he[Oe]);return ue};const R="@\u2581\u2581@",S="@\u2581@",$=/<pre[^>]*>/g;function ee(ue){let he=document.createElement("div");return he.innerHTML=ue,he.childNodes.length===0?"":he.childNodes[0].nodeValue}const W=(ue,he)=>{ue=ue||"";const Oe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,G=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,P=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Q=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return he?ue.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Oe,(q,re,J,g,v,Z,ce)=>{const Xe=re||g||Z,We=J||v||ce||"?";return d.Z.API_SERVER+"/api/attachments/"+Xe+We+"&t="+(0,ge.Jn)(Xe,Date.now())+(q.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ue=ue.replace(Q,(q,re,J,g,v,Z,ce)=>{const Xe=re||g||Z,We=J||v||ce||"?";return d.Z.API_SERVER+"/attachments/download/"+Xe+We+"&t="+(0,ge.Jn)(Xe,Date.now())+(q.indexOf(")")>-1?")":"&")}).replace(Oe,(q,re,J,g,v,Z,ce)=>{const Xe=re||g||Z,We=J||v||ce||"?";return d.Z.API_SERVER+"/api/attachments/"+Xe+We+"&t="+(0,ge.Jn)(Xe,Date.now())+(q.indexOf(")")>-1?")":"&")}).replace(G,(q,re,J,g,v)=>{const Z=re||g,ce=J||v||"";return'"'+d.Z.API_SERVER+"/api/attachments/"+Z+ce+Z+ce+"&t="+(0,ge.Jn)(Z,Date.now())}).replace(P,(q,re,J,g,v)=>{const Z=re||g,ce=J||v||"";return"("+d.Z.API_SERVER+"/files/uploads/"+Z+ce+Z+ce+"&t="+(0,ge.Jn)(Z,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
`),ue)};var ne=({value:ue="",className:he,showTextOnly:Oe,showLines:G,style:P={},stylesPrev:Q={},highlightKeywords:q,showProgramFill:re,isProgramFill:J,disabledFill:g=!1,programFillValue:v,onFillChange:Z=We=>{},onFillBlur:ce=()=>{},onFillFocus:Xe=()=>{}})=>{let We=x(String(ue||""));const[Dt,vt]=(0,p.useState)(""),[$t,Ht]=(0,p.useState)("office"),[ke,Bt]=(0,p.useState)([]),xn=(0,p.useRef)("a"+(0,o.Z)()),Yt={},ln=Y=>/<style[\s\S]*?>/i.test(Y||""),mt=(Y,ie,Te)=>{const xe=document.createElement(Y===S?"input":"textarea");xe.style.width="100%",xe.style.height=Y===S?"40px":"151px",xe.rows=5,xe.spellcheck=!1,xe.name="edu-program-fill",xe.placeholder="\u8BF7\u8F93\u5165",xe.dataset.id=ie;const Ue=Object.keys(Yt).length;return Yt[Ue]=xe,`<span class="edu-program-fill-wrap ${Y===S?"":"show"}" style="width:${Y===S?"400px":"100%"}" title=${Te||""}><span>${xe.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Be(Y){return Y=Y.replace(/!\[.*?\]\(.*?\)/g,""),Y=Y.replace(/\[.*?\]\(.*?\)/g,""),Y=Y.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Y=Y.replace(/<embed.*?>/g,""),Y=Y.replace(/<img.*?>/g,""),Y=Y.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Y=Y.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Y=Y.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Y=Y.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Y}const be=Y=>!Oe&&ln(We)?Y:Y.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(ie,Te){let xe=Te.replace(/(\n|\r)/g,"").split("}"),Ue=[];return xe.map(Ze=>{Ze!=""&&Ue.push(`.${xn.current} ${Ze}`)}),`<style>${Ue.join("}")}</style>`}),M=(0,p.useMemo)(()=>{try{const xe=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ue=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ze=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,$e=/\(\/attachments\/download\//g;We=We.replace($e,"("+d.Z.API_SERVER+"/attachments/download/").replace(xe,"("+d.Z.API_SERVER+"/api/attachments/").replace(Ue,'"'+d.Z.API_SERVER+"/api/attachments/").replace(Ze,'"'+d.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
`)}catch(xe){}if(re){let xe=-1;return We=We.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Ue,Ze,$e){var at;return++xe,mt(Ue,xe,(at=v==null?void 0:v[xe])==null?void 0:at.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${be(We||"")}</pre>`}let Y=be(We);Y=(0,oe.ZP)(Y);const ie=(0,oe.ez)();We.match(/\[TOC\]/)&&(Y=Y.replace("<p>[TOC]</p>",(0,oe.Qv)()),(0,oe.Iy)()),Y=Y.replace(/(__special_katext_id_\d+__)/g,(xe,Ue)=>{const{type:Ze,expression:$e}=ie[Ue];return(0,le.renderToString)(ee($e)||"",{displayMode:Ze==="block",throwOnError:!1,output:"html"})}),Y=Y.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,oe.AL)();const Te=document.createElement("div");if(Te.innerHTML=Y,Oe)return Te.innerText;if(q){const xe=q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return k(Te,xe),Te.innerHTML}return setTimeout(()=>z(),500),Te.innerHTML},[We,q]);(0,p.useEffect)(()=>{F.current&&F.current.querySelectorAll(["input","textarea"]).forEach(ie=>{ie.oninput=Ce,ie.onblur=Ge,ie.onfocus=K})},[ke]),(0,p.useEffect)(()=>{var Y,ie,Te,xe,Ue;if(v!=null&&v.length)try{const Ze=F.current.querySelectorAll(".edu-program-fill-score"),$e=F.current.querySelectorAll('[name="edu-program-fill"]');for(const[at,ve]of $e.entries())ve.value=((Y=v==null?void 0:v[at])==null?void 0:Y.value)||"",((ie=v==null?void 0:v[at])==null?void 0:ie.type)==="warning"?ve.className="program-fill-warning":((Te=v==null?void 0:v[at])==null?void 0:Te.type)==="success"?ve.className="program-fill-success":ve.className="";for(const[at,ve]of Ze.entries())ve.innerHTML=(xe=v==null?void 0:v[at])!=null&&xe.score?`${(Ue=v==null?void 0:v[at])==null?void 0:Ue.score}\u5206`:"";Bt(v)}catch(Ze){console.log(Ze,"error")}},[v]);const Ce=Y=>{ke[Y.target.dataset.id]=ke[Y.target.dataset.id]||{},ke[Y.target.dataset.id].value=Y.target.value,Bt([...ke]),Z(ke,Y.target.dataset.id)},Ge=Y=>{ke[Y.target.dataset.id]=ke[Y.target.dataset.id]||{},ke[Y.target.dataset.id].value=Y.target.value,Bt([...ke]),ce(ke,Y.target.dataset.id)},K=Y=>{ke[Y.target.dataset.id]=ke[Y.target.dataset.id]||{},ke[Y.target.dataset.id].value=Y.target.value,Bt([...ke]),Xe(ke,Y.target.dataset.id)};function k(Y,ie){return Y.childNodes.forEach(Te=>{var xe;if(Te.childNodes.length>0)k(Te,ie);else if(Te.nodeName!=="IMG")if(Te.innerHTML)Te.innerHTML=(xe=Te.innerHTML)==null?void 0:xe.replace(new RegExp(ie,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Ue=document.createElement("span");Ue.innerHTML=Te.textContent.replace(new RegExp(ie,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Te.replaceWith(Ue)}})}const F=(0,p.useRef)();oe.jb.WebkitLineClamp=G,G&&(P=B(B({},P),oe.jb));function pe(Y){let ie=Y.target;if(ie.tagName.toUpperCase()==="A"){let Te=ie.getAttribute("href");if(Te.indexOf("office")>-1)Y.preventDefault(),vt(Te),Ht("office");else if(Te.indexOf("application/pdf")>-1)Y.preventDefault(),vt(Te),Ht("pdf");else if(Te.indexOf("text/html")>-1)Y.preventDefault(),vt(Te),Ht("html");else if(Te.startsWith("#")){Y.preventDefault();let xe=document.getElementById(Te.replace("#",""));xe&&xe.scrollIntoView(!0)}}}const z=()=>{var Y;const ie=(Y=F.current)==null?void 0:Y.querySelectorAll("video");ie==null||ie.forEach(Te=>{if(Te.oncontextmenu=()=>!1,Te.src.indexOf(".m3u8")>-1&&!Te.canPlayType("application/vnd.apple.mpegurl")){if(O.ZP.isSupported()){var xe=new O.ZP;xe.loadSource(Te.src),xe.attachMedia(Te)}}})};return(0,p.useEffect)(()=>{if(F.current&&M&&M.match($)&&window.PR.prettyPrint(),F.current)return F.current.addEventListener("click",pe),()=>{var Y;(Y=F.current)==null||Y.removeEventListener("click",pe),(0,oe.AL)(),(0,oe.Iy)()}},[M,F.current,pe]),(0,p.useEffect)(()=>{var Y;const ie=Te=>{Te.preventDefault(),Te.clipboardData.setData("text",window.getSelection().toString())};return(Y=F.current)==null||Y.addEventListener("copy",ie),()=>{var Te;(Te=F.current)==null||Te.removeEventListener("copy",ie)}},[F.current]),p.createElement(p.Fragment,null,Oe&&p.createElement("div",{ref:F},M),!Oe&&!ln(M)&&p.createElement("div",{ref:F,style:B({},P),className:`${he||""} ${g?"disabled-fill":""} markdown-body ${xn.current}`,dangerouslySetInnerHTML:{__html:M}}),!Oe&&ln(M)&&p.createElement(y,{html:M}),p.createElement(b.Z,{close:!0,data:Dt,type:Dt!=null&&Dt.length?$t:"",style:B({},Q),onClose:()=>vt("")}))}},75975:function(Ln,jt,w){"use strict";w.d(jt,{SV:function(){return k},ZP:function(){return K}});var p=w(59301),fe=w(76374);const oe={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},me={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},O={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
`)}]},d={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
`)}]},ge={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
`)}]};var le=w(53184),o=w.n(le),b=Object.defineProperty,T=Object.defineProperties,m=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,U=(F,pe,z)=>pe in F?b(F,pe,{enumerable:!0,configurable:!0,writable:!0,value:z}):F[pe]=z,V=(F,pe)=>{for(var z in pe||(pe={}))x.call(pe,z)&&U(F,z,pe[z]);if(y)for(var z of y(pe))L.call(pe,z)&&U(F,z,pe[z]);return F},te=(F,pe)=>T(F,m(pe)),N=(F,pe,z)=>new Promise((Y,ie)=>{var Te=Ze=>{try{Ue(z.next(Ze))}catch($e){ie($e)}},xe=Ze=>{try{Ue(z.throw(Ze))}catch($e){ie($e)}},Ue=Ze=>Ze.done?Y(Ze.value):Promise.resolve(Ze.value).then(Te,xe);Ue((z=z.apply(F,pe)).next())});const B={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},R=(F,pe)=>pe.map(z=>({label:z,kind:F.languages.CompletionItemKind.Keyword,insertText:z})),S=F=>Object.keys(B.tables).map(pe=>({label:pe,kind:F.languages.CompletionItemKind.Variable,insertText:pe})),$=(F,pe)=>{const z=B.tables[F];return z?z.map(Y=>({label:Y,kind:pe.languages.CompletionItemKind.Field,insertText:Y})):[]};function ee(F,pe,z,Y,ie){let Te=pe.getWordUntilPosition(z),xe={startLineNumber:z.lineNumber,endLineNumber:z.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},Ue=Y.map(Ze=>({label:Ze,kind:F.languages.CompletionItemKind.Keyword,insertText:Ze,insertTextRules:F.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe}));return ie.map(Ze=>{Ue.push(te(V({},Ze),{range:xe}))}),Ue}var W=F=>{B.languages.map(ie=>(F.languages.registerDocumentFormattingEditProvider(ie,{provideDocumentFormattingEdits(Te,xe,Ue){return N(this,null,function*(){const Ze=o()(Te.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Te.getFullModelRange(),text:Ze}]})}}),ie));const pe=O.quickKey.map(ie=>({label:ie.label,kind:F.languages.CompletionItemKind.Method,insertText:ie.content,insertTextRules:F.languages.CompletionItemInsertTextRule.InsertAsSnippet})),z=d.quickKey.map(ie=>({label:ie.label,kind:F.languages.CompletionItemKind.Method,insertText:ie.content,insertTextRules:F.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Y=me.quickKey.map(ie=>({label:ie.label,kind:F.languages.CompletionItemKind.Method,insertText:ie.content,insertTextRules:F.languages.CompletionItemInsertTextRule.InsertAsSnippet}));F.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ie,Te){var xe=ie.getWordUntilPosition(Te),Ue={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:xe.startColumn,endColumn:xe.endColumn},Ze=ie.getLineContent(Te.lineNumber).substring(xe.startColumn-2,xe.endColumn);return{suggestions:[...O.keywords.map($e=>({label:$e,kind:F.languages.CompletionItemKind.Function,documentation:$e,insertText:$e,insertTextRules:F.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue})),...O.quickKey.map($e=>({label:$e.label,kind:F.languages.CompletionItemKind.Function,documentation:$e.content,insertText:Ze.startsWith("#")?$e.content.replace(/#/,""):$e.content,insertTextRules:F.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}}),F.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(ie,Te){var xe=ie.getWordUntilPosition(Te),Ue={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:xe.startColumn,endColumn:xe.endColumn};return{suggestions:[...oe.keywords.map(Ze=>({label:Ze,kind:F.languages.CompletionItemKind.Function,documentation:Ze,insertText:Ze,insertTextRules:F.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}}),F.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ie,Te){var xe=ie.getWordUntilPosition(Te),Ue={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:xe.startColumn,endColumn:xe.endColumn},Ze=ie.getLineContent(Te.lineNumber).substring(xe.startColumn-2,xe.endColumn);return{suggestions:[...me.keywords.map($e=>({label:$e,kind:F.languages.CompletionItemKind.Function,documentation:$e,insertText:$e,insertTextRules:F.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue})),...me.quickKey.map($e=>({label:$e.label,kind:F.languages.CompletionItemKind.Function,documentation:$e.content,insertText:Ze.startsWith("#")?$e.content.replace(/#/,""):$e.content,insertTextRules:F.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}}),F.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(ie,Te){var xe=ie.getWordUntilPosition(Te),Ue={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:xe.startColumn,endColumn:xe.endColumn},Ze=ie.getLineContent(Te.lineNumber).substring(xe.startColumn-2,xe.endColumn);return{suggestions:[...ge.keywords.map($e=>({label:$e,kind:F.languages.CompletionItemKind.Function,documentation:$e,insertText:$e,insertTextRules:F.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue})),...ge.quickKey.map($e=>({label:$e.label,kind:F.languages.CompletionItemKind.Function,documentation:$e.content,insertText:Ze.startsWith("#")?$e.content.replace(/#/,""):$e.content,insertTextRules:F.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}}),F.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ie,Te){var xe=ie.getWordUntilPosition(Te),Ue={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:xe.startColumn,endColumn:xe.endColumn},Ze=ie.getLineContent(Te.lineNumber).substring(xe.startColumn-2,xe.endColumn);return{suggestions:[...d.keywords.map($e=>({label:$e,kind:F.languages.CompletionItemKind.Function,documentation:$e,insertText:$e,insertTextRules:F.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue})),...d.quickKey.map($e=>({label:$e.label,kind:F.languages.CompletionItemKind.Function,documentation:$e.content,insertText:Ze.startsWith("#")?$e.content.replace(/#/,""):$e.content,insertTextRules:F.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ue}))]}}})};const ne="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ue=Object.defineProperty,he=(F,pe,z)=>pe in F?ue(F,pe,{enumerable:!0,configurable:!0,writable:!0,value:z}):F[pe]=z,Oe=(F,pe,z)=>he(F,typeof pe!="symbol"?pe+"":pe,z);const G=class pl{constructor(pe,z,Y){this.placeholder=pe,this.editor=z,this.monaco=Y,z.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return pl.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Oe(G,"ID","editor.widget.placeholderHint");var Q=G,q=w(96236),re=w(6767),J=w(25399),g=w(89392),v=w(49535),Z=w(56102),ce=Object.defineProperty,Xe=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,Ht=(F,pe,z)=>pe in F?ce(F,pe,{enumerable:!0,configurable:!0,writable:!0,value:z}):F[pe]=z,ke=(F,pe)=>{for(var z in pe||(pe={}))vt.call(pe,z)&&Ht(F,z,pe[z]);if(Dt)for(var z of Dt(pe))$t.call(pe,z)&&Ht(F,z,pe[z]);return F},Bt=(F,pe)=>Xe(F,We(pe)),xn=(F,pe)=>{var z={};for(var Y in F)vt.call(F,Y)&&pe.indexOf(Y)<0&&(z[Y]=F[Y]);if(F!=null&&Dt)for(var Y of Dt(F))pe.indexOf(Y)<0&&$t.call(F,Y)&&(z[Y]=F[Y]);return z},Yt=(F,pe,z)=>new Promise((Y,ie)=>{var Te=Ze=>{try{Ue(z.next(Ze))}catch($e){ie($e)}},xe=Ze=>{try{Ue(z.throw(Ze))}catch($e){ie($e)}},Ue=Ze=>Ze.done?Y(Ze.value):Promise.resolve(Ze.value).then(Te,xe);Ue((z=z.apply(F,pe)).next())});function ln(F){return/^\d+$/.test(F)?`${F}px`:F}function mt(){}let Be=!1;const be={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function M(F=[]){let pe=F;if(Array.isArray(F)){for(let z=0;z<F.length;z++){let Y=be[F[z]];if(Y)return Y}return pe[0]}return be[pe]||pe}let Ce=null;const Ge=()=>Yt(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(F){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",F)}});var K=F=>{var pe=F,{width:z="100%",height:Y="100%",value:ie,language:Te="javascript",style:xe={},options:Ue={},overrideServices:Ze={},theme:$e="vs-dark",onEditBlur:at,isCopy:ve=!1,onSave:De,autoHeight:ot=!1,forbidCopy:Je=!1,onChange:He=mt,editorDidMount:gt=mt,onFocus:Rt=mt,onBreakPoint:st=mt,breakPointValue:Kt=[],filename:cn="educoder.txt",errorLine:At,errorContent:Xt="",highlightLine:Fe,openBreakPoint:Ne=!1,placeholder:Me="",showMiniMap:I=!0}=pe,ae=xn(pe,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const de=(0,p.useRef)(),se=(0,p.useRef)({}),Se=(0,p.useRef)(),Mt=(0,p.useRef)(),It=(0,p.useRef)([]),Ft=(0,p.useRef)(!1),fn=(0,p.useRef)(),Le=(0,p.useRef)(),_=(0,p.useRef)(!1),[j,E]=(0,p.useState)(!1);function Pe(){let tt;return de.current&&(tt=new fe.Z(nt=>{for(let _t of nt)(_t.target.offsetHeight>0||_t.target.offsetWidth>0)&&se.current.instance.layout()}),tt.observe(de.current)),tt}function ye(){re.ZP.warning({content:decodeURIComponent(ne),key:"monaco-editor-tip"})}const we=()=>{let tt=se.current.instance;if(ie!=null&&tt&&j){const nt=tt.getModel();nt&&ie!==nt.getValue()&&(Be=!0,nt.setValue(ie),tt.layout(),Be=!1)}};(0,p.useEffect)(()=>{const tt=v.Z.subscribe("formatDocument",nt=>{var _t;let Ct=se.current.instance;(_t=Ct==null?void 0:Ct.getAction)==null||_t.call(Ct,"editor.action.formatDocument").run()});return window.updateMonacoValue=nt=>{He(nt)},tt},[]),(0,p.useEffect)(()=>{var tt;let nt=se.current.instance;Mt.current&&clearTimeout(Mt.current),Mt.current=setTimeout(()=>{we()},500),ie&&(ie!=null&&ie.length)&&((tt=nt==null?void 0:nt.updateOptions)==null||tt.call(nt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ie.split(/\r\n|\r|\n/g).length))+3,5)}))},[ie,j,se.current]),(0,p.useEffect)(()=>{if(At&&se.current&&se.current.instance){let nt=se.current.instance;nt.changeViewZones(function(_t){var Ct=document.createElement("div");Ct.style.padding="10px 20px",Ct.style.width="calc(100% - 20px)",Ct.className="my-error-line-wrp",Ct.innerHTML=Xt,_t.addZone({afterLineNumber:At||11,heightInLines:3,domNode:Ct})});var tt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};nt.addOverlayWidget(tt),nt.revealPositionInCenter({lineNumber:20,column:1})}},[At,se.current,j]);const ze=(tt="",nt)=>{if(!tt||tt.trim()==="")return!0;const Ct=se.current.instance.getModel().getLineTokens(nt);let pn=!1;for(let _n=0;_n<2;_n++)Ct.getStandardTokenType(_n)===1&&(pn=!0);return pn};(0,p.useEffect)(()=>{var tt;const nt=(tt=se.current)==null?void 0:tt.instance;if(nt&&j&&Je){const _t=nt.onDidBlurEditorWidget(()=>{_.current=!1}),Ct=nt.onDidFocusEditorText(()=>{_.current=!0});return()=>{_t.dispose(),Ct.dispose()}}},[se.current,j,Je]),(0,p.useEffect)(()=>{var tt;if((tt=se.current)!=null&&tt.instance&&j&&Ne){let nt=se.current.instance,_t=nt.getModel();if(!_t)return;(()=>{var Wt;let rn=[],hn=[];const Sn=_t.getAllDecorations();for(let yn of Sn)yn.options.className==="highlighted-line"&&(rn.push((Wt=yn==null?void 0:yn.range)==null?void 0:Wt.startLineNumber),hn.push(yn==null?void 0:yn.id));if(Fe===rn[0])return;_t.deltaDecorations(hn,[]);const Un=_t.getLineCount();Fe&&Fe<=Un&&(nt.deltaDecorations([],[{range:new Ce.Range(Fe,1,Fe,_t.getLineMaxColumn(Fe)),options:{isWholeLine:!0,className:"highlighted-line"}}]),nt.revealLineInCenter(Fe))})();const pn=(Wt=!1)=>{var rn;let hn=[],Sn=[];const Un=_t.getAllDecorations();for(let yn of Un)yn.options.linesDecorationsClassName==="breakpoints-select"&&(hn.push((rn=yn==null?void 0:yn.range)==null?void 0:rn.startLineNumber),Sn.push(yn==null?void 0:yn.id));if(Wt)return{lines:hn,ids:Sn};st(hn)},_n=Wt=>Yt(void 0,null,function*(){let rn={range:new Ce.Range(Wt,1,Wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield _t.deltaDecorations([],[rn]),pn()}),an=Wt=>Yt(void 0,null,function*(){let rn=[];const hn=nt.getLineDecorations(Wt);for(let Sn of hn)Sn.options.linesDecorationsClassName==="breakpoints-select"&&rn.push(Sn.id);yield _t.deltaDecorations(rn,[]),pn()}),zt=Wt=>{let rn=nt.getLineDecorations(Wt);for(let hn of rn)if(hn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,g.isEqual)(Kt,pn(!0).lines)){_t.deltaDecorations(pn(!0).ids,[]);const Wt=Kt.map(rn=>({range:new Ce.Range(rn,1,rn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));_t.deltaDecorations([],Wt)}const Ie=nt.onDidChangeModelContent(Wt=>{let rn=nt.getPosition();if(rn){let hn=rn.lineNumber;clearTimeout(Le.current),Le.current=setTimeout(()=>{ze(_t.getLineContent(hn),hn)?an(hn):zt(hn)?(an(hn),_n(hn)):pn()},100)}}),qe=nt.onMouseDown(Wt=>{var rn,hn,Sn;if(Wt.target.detail&&((Sn=(hn=(rn=Wt.target)==null?void 0:rn.element)==null?void 0:hn.className)!=null&&Sn.includes("line-numbers"))){let Un=Wt.target.position.lineNumber;if(ze(_t.getLineContent(Un),Un))return;zt(Un)?an(Un):_n(Un)}}),ft=Wt=>{let rn={range:new Ce.Range(Wt,1,Wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};It.current=nt.deltaDecorations(It.current,[rn])},ht=()=>{It.current=nt.deltaDecorations(It.current,[])},Gt=nt.onMouseMove(Wt=>{var rn,hn,Sn;if(ht(),Wt.target.detail&&((Sn=(hn=(rn=Wt.target)==null?void 0:rn.element)==null?void 0:hn.className)!=null&&Sn.includes("line-numbers"))){let Un=Wt.target.position.lineNumber;if(ze(_t.getLineContent(Un),Un))return;ft(Un)}}),en=nt.onMouseLeave(()=>{ht()});return()=>{Ie.dispose(),qe.dispose(),Gt.dispose(),en.dispose()}}},[se.current,j,Kt,Fe,Ne,Te]),(0,p.useEffect)(()=>{var tt;(tt=se.current)!=null&&tt.instance&&Ne&&se.current.instance.setPosition({lineNumber:0,column:0})},[Fe]);function ut(){let tt=se.current.instance;if(tt){const nt=tt.getSelection(),_t=se.current.pastePos||{},Ct=new Ce.Range(_t.startLineNumber||nt.endLineNumber,_t.startColumn||nt.endColumn,_t.endLineNumber||nt.endLineNumber,_t.endColumn||nt.endColumn);setTimeout(()=>{tt.executeEdits("",[{range:Ct,text:""}])},300)}}function Pt(tt){(window.navigator.platform.match("Mac")?tt.metaKey:tt.ctrlKey)&&tt.keyCode==83&&(tt.preventDefault(),De())}const Vt=()=>{if(ot&&se.current.instance){const tt=se.current.instance.getContentHeight();dt(tt<Y?Y:tt)}else dt(Y)};function Ut(tt){var nt=document.createEvent("MouseEvents");nt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),tt.dispatchEvent(nt)}const mn=tt=>{if(!_.current)return;const{keyCode:nt,ctrlKey:_t,metaKey:Ct,target:pn,type:_n}=tt;return(_n==="paste"||(nt===67||nt===86)&&(Ct||_t))&&pn.nodeName==="TEXTAREA"&&(ye(),tt.preventDefault()),!1};function Re(tt,nt){var _t=window.URL||window.webkitURL||window,Ct=new Blob([nt]),pn=document.createElementNS("http://www.w3.org/1999/xhtml","a");pn.href=_t.createObjectURL(Ct),pn.download=tt,Ut(pn)}(0,p.useEffect)(()=>{Vt()},[Vt]),(0,p.useEffect)(()=>{de.current&&!j&&Promise.all([w.e(8909),w.e(6656)]).then(w.bind(w,71448)).then(tt=>{try{Ce=tt,se.current.instance=Ce.editor.create(de.current,{value:ie,language:M(Te),theme:$e,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:I||!1}},Ze);const nt=se.current.instance;let pn=[...q.BH._menuItems].find(Ie=>Ie[0]._debugName=="EditorContext")[1],_n=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],an=(Ie,qe)=>{var ft,ht;let Gt=Ie._first;do qe.includes((ht=(ft=Gt.element)==null?void 0:ft.command)==null?void 0:ht.id)&&Ie._remove(Gt);while(Gt=Gt.next)};if(gt(nt,Ce),setTimeout(()=>{Vt(),se.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Re(cn||"educoder.txt",nt.getValue())}})},500),se.current.subscription=nt.onDidChangeModelContent(Ie=>{Ft.current?clearTimeout(fn.current):(Vt(),He(nt.getValue(),Ie)),fn.current=setTimeout(()=>{Ft.current=!1},500)}),window.Monaco||W(Ce,M(Te)),Je&&(an(pn,_n),de.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",mn),window.removeEventListener("paste",mn),window.addEventListener("keydown",mn),window.addEventListener("paste",mn)),window.Monaco=Ce,at&&nt.onDidBlurEditorWidget(()=>{at(nt.getValue())}),Rt&&nt.onDidFocusEditorText(()=>{Je&&Ge(),Rt(nt.getValue())}),Je){Ge();try{nt.onDidPaste(Ie=>{const qe=nt.getSelection(),ft=se.current.pastePos||{},ht=new Ce.Range(ft.startLineNumber||qe.endLineNumber,ft.startColumn||qe.endColumn,ft.endLineNumber||qe.endLineNumber,ft.endColumn||qe.endColumn);nt.executeEdits("",[{range:Ie.range,text:""}])})}catch(Ie){}}let zt=Pe();return Me&&typeof Me=="string"&&new Q(Me,nt,Ce),E(!0),()=>{const Ie=se.current.instance;Ie.dispose();const qe=Ie.getModel();qe&&qe.dispose(),se.current.subscription&&se.current.subscription.dispose(),zt.unobserve(de.current)}}catch(nt){}})},[]),(0,p.useEffect)(()=>{if(se.current.instance&&j)return document.addEventListener("keydown",Pt,!1),()=>{document.removeEventListener("keydown",Pt)}},[De,j]),(0,p.useEffect)(()=>{let tt=se.current.instance;if(tt&&j){let nt=M(Te);Ce.editor.setModelLanguage(tt.getModel(),nt)}},[Te,j]),(0,p.useEffect)(()=>{se.current.instance&&j&&Ce.editor.setTheme($e)},[$e,j]),(0,p.useEffect)(()=>{let tt=se.current.instance;Se.current=Ue,tt&&j&&(tt.updateOptions(ke({},Ue)),setTimeout(()=>{tt.getModel().updateOptions(ke({},Ue))},200))},[JSON.stringify(Ue),j]),(0,p.useEffect)(()=>{let tt=se.current.instance;tt&&j&&tt.layout()},[z,Y,j]);const[_e,Ve]=(0,p.useState)(ln(z)),[et,dt]=(0,p.useState)(ln(Y)),Et=Bt(ke({},xe),{width:_e,height:et,position:"relative"});return p.createElement("div",{className:"my-monaco-editor",ref:de,style:Et},ve&&p.createElement(Z.CopyToClipboard,{text:ie,onCopy:()=>re.ZP.success("\u590D\u5236\u6210\u529F")},p.createElement(J.Z,{title:"\u590D\u5236\u4EE3\u7801"},p.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},p.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function k({width:F="100%",height:pe="100%",original:z,modified:Y,language:ie,options:Te={}}){const xe=(0,p.useRef)(),[Ue,Ze]=(0,p.useState)(null);function $e(ot){let Je;return xe.current&&(Je=new fe.Z(He=>{for(let gt of He)(gt.target.offsetHeight>0||gt.target.offsetWidth>0)&&ot.layout()}),Je.observe(xe.current)),Je}(0,p.useEffect)(()=>(xe.current&&Promise.all([w.e(8909),w.e(9404)]).then(w.bind(w,2550)).then(ot=>{Ce=ot;const Je=Ce.editor.createDiffEditor(xe.current,Bt(ke({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Te),{wordWrap:!0}));Ze(Je);let He=$e(Je);return()=>{Je.dispose();const gt=Je.getModel();gt&>.dispose(),He.unobserve(xe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,p.useEffect)(()=>{Ue&&Ue.setModel({original:Ce.editor.createModel(z,ie),modified:Ce.editor.createModel(Y,ie)})},[z,Y,ie,Ue]);const at=ln(F),ve=ln(pe),De={width:at,height:ve};return p.createElement("div",{className:"my-diff-editor",ref:xe,style:De})}},45775:function(Ln,jt,w){"use strict";w.d(jt,{jL:function(){return O},w9:function(){return vt},QD:function(){return Je},cQ:function(){return Z},op:function(){return Ze},O5:function(){return fn},_b:function(){return cn},t7:function(){return te},Gi:function(){return Yt},YG:function(){return Bt},qp:function(){return T},vr:function(){return Rt},qE:function(){return ve},Je:function(){return R},wb:function(){return q},cq:function(){return Ce},tp:function(){return x}});var p=w(59301),fe={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"},oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9C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9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",O=({dataSource:Le=[],img:_,imgWidth:j=346,title:E,sunTitle:Pe,bannerExtraContent:ye})=>p.createElement("div",{className:fe.banner},p.createElement("div",{className:fe.content},p.createElement("aside",null,p.createElement("p",null,p.createElement("b",null,E),p.createElement("span",null,Pe)),Le.length>0&&p.createElement("div",{className:fe.btns},Le.map((we,ze)=>p.createElement("div",{key:ze,onClick:we.click},we.name,we.sign?p.createElement("img",{src:oe,width:39}):null))),ye),_&&p.createElement("img",{style:{marginTop:33,marginRight:38},src:_,width:j}))),d={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"},ge=w(92310),le=w.n(ge),o=w(89392),T=({dataSource:Le=[],value:_,onChange:j,onTitleChange:E,className:Pe,title:ye,titleWidth:we=41,style:ze={},fontColor:ut="#6A7283",showCount:Pt})=>{const[Vt,Ut]=(0,p.useState)(0),[mn,Re]=(0,p.useState)(!1),_e=(0,p.useRef)(null),Ve=(0,p.useRef)(null);return(0,p.useEffect)(()=>{var et;Le.length!==0&&(((et=_e==null?void 0:_e.current)==null?void 0:et.clientHeight)>97?Ut(1):Ut(0)),Le.length===0&&Ut(0),Re(!1)},[Le]),p.createElement("div",{className:le()(d.row,Pe),style:ze},p.createElement("div",{onClick:(0,o.throttle)(()=>E==null?void 0:E(),2e3),style:{width:we,marginTop:mn?12:4},className:`${d.title} ${E?"current":""}`},ye),p.createElement("div",{className:mn?`${d.tagsWrap} ${d.tagsBorderWrap}`:d.tagsWrap},p.createElement("div",{className:d.bar,ref:Ve,style:Vt>0?{height:Vt===1?97:"auto",overflow:Vt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},p.createElement("div",{className:d.tag,ref:_e},Le==null?void 0:Le.map(et=>p.createElement("span",{onClick:()=>j(et.id),key:et.id,style:{color:ut},className:_===et.id?d.active:""},p.createElement("span",{title:et.name,className:d.name},et.name),!!Pt&&p.createElement("span",{className:d.num},et.count))))),!!Vt&&p.createElement(p.Fragment,null,Vt===1?p.createElement("div",{onClick:()=>{var et;Ut(2),((et=_e==null?void 0:_e.current)==null?void 0:et.clientHeight)>245?Re(!0):Re(!1)},className:d.action},"\u5C55\u5F00",p.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):p.createElement("div",{onClick:()=>{Ve.current.scrollTop=0,Ut(1),Re(!1)},className:d.action},"\u6536\u8D77",p.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},m={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"},x=({dataSource:Le=[],value:_,onChange:j,className:E,style:Pe={}})=>p.createElement("div",{style:Pe,className:le()(m.tabs,E)},Le.map(ye=>p.createElement("span",{onClick:()=>j(ye.id),className:_===ye.id?m.active:"",key:ye.id},ye.name))),L={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"},U=w(37568),te=({dataSource:Le=[],value:_="",onChange:j,onInputChange:E=()=>{},className:Pe,style:ye={},placeholder:we,allowClear:ze=!1})=>{var ut;const[Pt,Vt]=(0,p.useState)(""),[Ut,mn]=(0,p.useState)("");(0,p.useEffect)(()=>{var Ve;let et=_;(Ve=JSON.stringify(_))!=null&&Ve.includes("{")&&(Vt(_.id),et=_.value||"");try{mn(decodeURIComponent(et||""))}catch(dt){mn(decodeURIComponent(et||""))}},[_]);const Re=()=>{j(encodeURIComponent(Ut),Pt||null)},_e=Ve=>{Ve!==Pt&&(Vt(Ve),j(encodeURIComponent(Ut),Ve))};return p.createElement("div",{className:le()(L.input,Pe),style:ye},!!Le.length&&p.createElement("div",{className:L.dropdown},p.createElement("div",{className:L.text},(ut=Le.find(Ve=>Ve.id===Pt))==null?void 0:ut.name,p.createElement("i",{className:"iconfont icon-zhankai4"}),p.createElement("b",{className:L.b1}),p.createElement("b",{className:L.b2})),p.createElement("div",{className:L.menu},Le.map((Ve,et)=>p.createElement("div",{key:et,onClick:()=>_e(Ve.id)},Ve.name)))),p.createElement(U.default,{onPressEnter:Re,value:Ut,onChange:Ve=>{mn(Ve.target.value),E(encodeURIComponent(Ve.target.value),Pt||null)},bordered:!1,placeholder:we}),p.createElement("i",{onClick:Re,className:"iconfont icon-sousuo9 font14 pl10 current"}))},N={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:Le,onChange:_,className:j,total:E,pageSize:Pe,style:ye={}})=>{const we=Le<2,ze=Le>=Math.ceil(E/Pe);return E<=Pe?p.createElement(p.Fragment,null):p.createElement("div",{className:le()(N.quickPager,j),style:ye},p.createElement("div",{onClick:()=>{we||_(Le-1,"prev")},className:we?N.disabled:""},"\u4E0A\u4E00\u9875"),p.createElement("div",{onClick:()=>{ze||_(Le+1,"next")},className:ze?N.disabled:""},"\u4E0B\u4E00\u9875"))},S={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"},$=w(29787),ee=w(25399),W=w(58018),ne=w(346),ue=w(51257),he=w(96908),Oe=w(57177),G=w(81378),P=w(28426),q=({className:Le,dataSource:_=[],col:j=4,right:E,bottom:Pe=23,precision:ye=0,wrapWidth:we=1200,trackEventItems:ze,loading:ut})=>{const Pt=Math.floor((we-(j-1)*E)/j);return p.createElement($.Z,{spinning:ut},p.createElement("div",{className:le()(S.list,Le)},!!_.length&&_.map((Vt,Ut)=>{const{name:mn,id:Re,identifier:_e,power:Ve,cover_image_id:et,pic:dt}=Vt;return p.createElement("div",{className:S.wrap,key:Re,style:{width:Pt,marginRight:(1+Ut)%j===0?0:E+ye,marginBottom:Pe}},p.createElement("a",{target:"_blank",href:`/shixuns/${_e}/challenges`,className:S.li,onClick:Et=>{Et.preventDefault(),ze&&(0,ue.L9)([ze]),Ve&&(0,ue.xg)(`/shixuns/${_e}/challenges`)}},p.createElement("div",{className:S.img},p.createElement("img",{className:S.cover,src:`${dt}`}),Vt.is_jupyter&&p.createElement("img",{className:S.sign,src:he}),Vt.is_jupyter_lab&&p.createElement("img",{className:S.sign,src:Oe}),Vt.is_unity_3d&&p.createElement("img",{className:S.sign,src:G})),p.createElement("div",{className:S.name},p.createElement(ee.Z,{title:mn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},p.createElement("span",{className:S.e},mn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),p.createElement("div",{className:S.tags},p.createElement(ee.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},p.createElement("span",null,p.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),p.createElement("span",null,Vt.challenges_count))),!!Vt.myshixuns_count&&p.createElement(ee.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},p.createElement("span",null,p.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),p.createElement("span",null,Vt.myshixuns_count))),p.createElement(ee.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},p.createElement("span",null,p.createElement("span",null,Vt.level))),p.createElement("div",{className:S.rate},p.createElement(W.Z,{allowHalf:!0,disabled:!0,defaultValue:Vt.score_info}),p.createElement("span",null,"\xA0",Vt.score_info?`${Vt.score_info}\u5206`:"5\u5206")))),!Ve&&p.createElement("div",{className:S.lockWrap},p.createElement("img",{src:`${ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),p.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!_.length&&p.createElement(P.Z,null)))},re={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"},J=w(48790),g=w(59301),Z=({className:Le,dataSource:_=[],col:j=4,right:E,bottom:Pe=23,precision:ye=0,wrapWidth:we=1200,trackEventItems:ze,loading:ut,onRemove:Pt=()=>{},isCurrent:Vt=!0,showAlias:Ut=!1})=>{const mn=Math.floor((we-(j-1)*E)/j),Re=[{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"}];return g.createElement($.Z,{spinning:ut},g.createElement("div",{className:le()(re.list,Le)},!!(_!=null&&_.length)&&(_==null?void 0:_.map((_e,Ve)=>{var et;const{name:dt,id:Et,identifier:tt,featured:nt,school_name:_t,image_url:Ct,excellent:pn,is_plan:_n}=_e;return g.createElement("div",{key:Et,className:re.wrap,style:{width:mn,marginRight:(1+Ve)%j===0?0:E+ye,marginBottom:Pe}},g.createElement("a",{className:re.li,onClick:an=>{an.preventDefault(),an.stopPropagation(),ze&&(0,ue.L9)([ze]),(0,ue.xg)(`/paths/${tt}`)}},g.createElement("div",{className:re.img},g.createElement("img",{className:re.cover,src:`${Ct}`}),Vt&&(0,J.bg)()&&(_e==null?void 0:_e.studying)&&g.createElement("div",{className:`${re.movebq} user-path-items`,onClick:an=>{an.stopPropagation(),Pt(_e)}},g.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),g.createElement("span",{className:"c-red"},"\u79FB\u9664")),(et=_e==null?void 0:_e.subject_tags)==null?void 0:et.map((an,zt)=>{var Ie,qe;if(zt===0){const ht=(Ie=Re.find(Gt=>Gt.name==an))==null?void 0:Ie.swimg;return g.createElement("img",{className:re.sign,src:ht,style:{left:"-4px"}})}const ft=(qe=Re.find(ht=>ht.name==an))==null?void 0:qe.ptimg;return g.createElement("img",{className:re.sign,src:ft,style:{left:`${48+52*(zt-1)+2*zt}px`}})}),g.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(_e==null?void 0:_e.excellent)&&g.createElement("div",{className:re.bq},"\u5F00\u653E\u8BFE\u7A0B"))),g.createElement("div",{className:re.name},g.createElement(ee.Z,{title:Ut&&(_e!=null&&_e.excellent_alias_name)?g.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${dt}`,g.createElement("br",null),g.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${_e==null?void 0:_e.excellent_alias_name}`)):dt},g.createElement("span",{className:re.e},Ut&&(_e==null?void 0:_e.excellent_alias_name)||dt))),g.createElement(ee.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${_t}`},g.createElement("div",{className:re.unit},g.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),_t)),g.createElement("div",{className:re.tags},g.createElement("div",null,g.createElement(ee.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),g.createElement("span",null,_e.stages_count))),g.createElement(ee.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),g.createElement("span",null,_e.members_count)))))))})),!_.length&&g.createElement(P.Z,null)))},ce={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"},Xe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGL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o5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",We=w(59301),vt=({className:Le,dataSource:_=[],col:j=4,right:E,bottom:Pe=23,precision:ye=0,wrapWidth:we=1200,trackEventItems:ze,loading:ut,handleVery:Pt=()=>!0})=>{const Vt=Math.floor((we-(j-1)*E)/j);return We.createElement($.Z,{spinning:ut},We.createElement("div",{className:le()(ce.list,Le)},!!_.length&&_.map((Ut,mn)=>{const{subject_identifier:Re,id:_e,identifier:Ve,power:et}=Ut,dt=Ut.is_public!=0&&Ut.is_public;return We.createElement("div",{className:ce.wrap,key:_e,style:{width:Vt,marginRight:(1+mn)%j===0?0:E+ye,marginBottom:Pe}},We.createElement("a",{className:ce.li,onClick:Et=>{Et.preventDefault(),Pt(Ut==null?void 0:Ut.first_category_url)&&(ze&&(0,ue.L9)([ze]),(0,ue.xg)(Ut.first_category_url))}},We.createElement("div",{className:ce.top},We.createElement(ee.Z,{title:Ut.name},We.createElement("div",{className:ce.name},Ut.name)),We.createElement("img",{className:ce.img,src:ne.Z.IMG_SERVER+"/images/"+Ut.avatar_url}),We.createElement("div",{className:ce.text,title:Ut.creator},Ut.creator),Re&&We.createElement("div",{className:ce.btns},We.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),We.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),dt&&We.createElement("div",{className:ce.sign},"\u516C\u5F00")),We.createElement("div",{className:ce.bottom},Ut.visits>0&&We.createElement(ee.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-liulanyan"}),We.createElement("span",null,Ut.visits))),Ut.course_members_count>0&&We.createElement(ee.Z,{title:"\u6210\u5458",placement:"bottom"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-chengyuan"}),Ut.course_members_count)),Ut.tasks_count>0&&We.createElement(ee.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-zuoye"}),Ut.tasks_count)),Ut.is_end?We.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):We.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ut.is_accessible&&We.createElement("div",{className:ce.lockWrap},We.createElement("img",{src:`${ne.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),We.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!_.length&&We.createElement(P.Z,null)))},$t={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"},Ht=w(25690),Bt=({dataSource:Le=[],value:_,onChange:j,className:E,style:Pe={},tabBarExtraContent:ye})=>p.createElement("div",{className:le()($t.tabs,E),style:Pe},p.createElement("div",{className:$t.tabsWrap},Le.map((we,ze)=>!(we!=null&&we.hide)&&p.createElement("aside",{className:$t.tab,onClick:()=>{j(we.id),we.link&&Ht.history.push(we.link)},key:ze},p.createElement("div",{className:_===we.id?$t.active:""},we.name),(we==null?void 0:we.resetCount)==null&&(we==null?void 0:we.total)!==void 0&&p.createElement("span",null,"\uFF08",we==null?void 0:we.total,"\uFF09"),(we==null?void 0:we.resetCount)!==void 0&&(we==null?void 0:we.total)!==void 0&&p.createElement(ee.Z,{title:(we==null?void 0:we.tip)!=null?we==null?void 0:we.tip:""},p.createElement("span",{style:{color:"#9096A3"}},"\uFF08",p.createElement("span",{style:{color:"#000"}},we==null?void 0:we.resetCount),"/",p.createElement("span",null,we==null?void 0:we.total),"\uFF09"))))),p.createElement("div",{className:$t.tabBar},ye)),Yt=({className:Le,style:_={},children:j})=>p.createElement("div",{className:le()(Le),style:_},j),ln={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"},mt=w(75727),Be=w(93041);const be=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ce=({sortValue:Le,dropValue:_,className:j,onSort:E,onDrop:Pe,dataSource:ye=be})=>{var we;return p.createElement("div",{className:le()(ln.orderWrap,j)},p.createElement(mt.Z,{dropdownRender:()=>p.createElement(Be.default,null,ye.map((ze,ut)=>p.createElement(Be.default.Item,{key:ut,onClick:()=>Pe(ze.id)},ze.name)))},p.createElement("span",{className:ln.orderTextWrap},(we=ye.find(ze=>_===ze.id))==null?void 0:we.name)),p.createElement("span",{className:ln.orderIconWrap},p.createElement("span",{className:ln.orderAsc},p.createElement("i",{className:Le==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ln.cursorPointer} ${ln.active}`:`iconfont icon-sanjiaoxing-up font12 ${ln.cursorPointer}`,onClick:()=>E(Le==="asc"?"desc":"asc")})),p.createElement("span",{className:ln.orderDesc},p.createElement("i",{className:Le==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ln.cursorPointer} ${ln.active}`:`iconfont icon-sanjiaoxing-down font12 ${ln.cursorPointer}`,onClick:()=>E(Le==="asc"?"desc":"asc")}))))},Ge={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"},K=w(99571),k=Object.defineProperty,F=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,Y=(Le,_,j)=>_ in Le?k(Le,_,{enumerable:!0,configurable:!0,writable:!0,value:j}):Le[_]=j,ie=(Le,_)=>{for(var j in _||(_={}))pe.call(_,j)&&Y(Le,j,_[j]);if(F)for(var j of F(_))z.call(_,j)&&Y(Le,j,_[j]);return Le},Te=(Le,_)=>{var j={};for(var E in Le)pe.call(Le,E)&&_.indexOf(E)<0&&(j[E]=Le[E]);if(Le!=null&&F)for(var E of F(Le))_.indexOf(E)<0&&z.call(Le,E)&&(j[E]=Le[E]);return j},xe=(Le,_,j)=>new Promise((E,Pe)=>{var ye=ut=>{try{ze(j.next(ut))}catch(Pt){Pe(Pt)}},we=ut=>{try{ze(j.throw(ut))}catch(Pt){Pe(Pt)}},ze=ut=>ut.done?E(ut.value):Promise.resolve(ut.value).then(ye,we);ze((j=j.apply(Le,_)).next())}),Ze=Le=>{var _=Le,{className:j,style:E,children:Pe,loading:ye=!1,openLoading:we,onClick:ze=()=>{},size:ut="middle",shape:Pt="round"}=_,Vt=Te(_,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ut,mn]=(0,p.useState)(!1);return p.createElement(K.ZP,ie({onClick:(0,o.throttle)(Re=>xe(void 0,null,function*(){we&&mn(!0);try{yield ze(Re)}catch(_e){console.log("error",_e)}we&&mn(!1)}),2e3,{leading:!0,trailing:!1}),className:le()(Ge.btn,Ge[`${ut}-${Pt}`],j),style:E,size:ut,shape:Pt,loading:Ut||ye},Vt),Pe)},$e={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"},ve=({className:Le,style:_,children:j=null,onClick:E,title:Pe})=>p.createElement("div",{className:le()($e.head,Le),style:_},p.createElement("span",{className:"primary-hover",onClick:E},p.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),p.createElement("b",{title:Pe},Pe),p.createElement("div",{className:$e.node},j)),De={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"},Je=({confirmShow:Le=!0,confirmTitle:_,confirmClick:j,cancelShow:E=!0,cancelTitle:Pe,cancelClick:ye,className:we,style:ze,confirmLoading:ut=!1})=>p.createElement("div",{className:le()(De.btns,we),style:ze},Le&&p.createElement(K.ZP,{loading:ut,onClick:j,type:"primary",className:De.confirm},_),E&&p.createElement(K.ZP,{onClick:ye,className:De.cancel},Pe)),He={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"},Rt=({className:Le,style:_={},LeftContent:j,children:E,RightContent:Pe})=>p.createElement("div",{className:le()(He.fixedBottom,Le),style:_},p.createElement("div",{className:He.wrap},p.createElement("div",{className:He.left},j),p.createElement("div",{className:He.center},E),p.createElement("div",{className:He.right},Pe))),st={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"},cn=({className:Le,style:_={},dataSource:j=[]})=>p.createElement("div",{className:le()(st.crumbs,Le),style:_},j.map((E,Pe)=>Pe<j.length-1?p.createElement(p.Fragment,{key:Pe},E.path||E.onClick?p.createElement("span",{className:st.hover,onClick:E!=null&&E.onClick?E.onClick:()=>Ht.history.push(E.path)},E.name):p.createElement("span",null,E.name),p.createElement("span",null,"\xA0",">","\xA0")):p.createElement("span",{key:Pe,style:{color:"#5F6368"}},E.name))),At=w(11938),Xt=Object.defineProperty,Fe=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,de=(Le,_,j)=>_ in Le?Xt(Le,_,{enumerable:!0,configurable:!0,writable:!0,value:j}):Le[_]=j,se=(Le,_)=>{for(var j in _||(_={}))I.call(_,j)&&de(Le,j,_[j]);if(Me)for(var j of Me(_))ae.call(_,j)&&de(Le,j,_[j]);return Le},Se=(Le,_)=>Fe(Le,Ne(_)),Mt=(Le,_)=>{var j={};for(var E in Le)I.call(Le,E)&&_.indexOf(E)<0&&(j[E]=Le[E]);if(Le!=null&&Me)for(var E of Me(Le))_.indexOf(E)<0&&ae.call(Le,E)&&(j[E]=Le[E]);return j};const{Countdown:It}=At.default;var fn=Le=>{var _=Le,{onChange:j}=_,E=Mt(_,["onChange"]);const[Pe,ye]=(0,p.useState)(null);(0,p.useEffect)(()=>{typeof Pe=="number"&&Pe>=0&&j(Pe)},[Pe]);const we=ze=>{const ut=Math.floor(ze/1e3);ye(ut)};return p.createElement(It,Se(se({},E),{onChange:we}))}},3447:function(Ln,jt,w){"use strict";w.r(jt),w.d(jt,{default:function(){return Be}});var p=w(59301),fe=w(25690),oe=w(76902),me=w(61186),O=w.n(me),d=w(75727),ge=w(99571),le=w(6767),o=w(62957),b=w(93041),T=w(62673),m=w(77019),y=w(5269),x=w(82326),L=w(37568),U=w(20554),V=w(54172),te=w(84022),N=w(25399),B=w(346),R=w(38986),S={flex_box_center:"flex_box_center___OrR9_",flex_space_between:"flex_space_between___MJLUJ",flex_box_vertical_center:"flex_box_vertical_center___nb0jX",flex_box_center_end:"flex_box_center_end___SMTBe",flex_box_column:"flex_box_column___Utap_",wrap:"wrap___Pp5cX",addQuestion:"addQuestion___LsICJ",content:"content___pWPew",left:"left___axtqk",filterPoint:"filterPoint___rCDO_",filterType:"filterType___NeU0D",btnWarp:"btnWarp___dKZiG",btn:"btn___TqjCT",count:"count___OntqW",btnActive:"btnActive___l_zfx",fold:"fold___KAWcj",action:"action___zMEjv",filterOrigin:"filterOrigin___DneuH",control:"control___qchb1",search:"search___Yb8rf",searchIcon:"searchIcon___ybtbn",table:"table___uHpVy",tabWarp:"tabWarp___Pi38U",customTable:"customTable___WYwKK","btn-style-1":"btn-style-1___Knznb","btn-style-2":"btn-style-2___fEs_r","btn-style-3":"btn-style-3___CeM25",right:"right___ZJhZN",statistics:"statistics___cjSkW",title:"title___P79dp",statisticItem:"statisticItem___qmDRE",rate:"rate___H3sZf",dataName:"dataName___N7Uqb",sort:"sort___N1oiD",rankHeader:"rankHeader___LGNPx",rankIcon:"rankIcon___hbm2T",li:"li___vVOqz",myRecord:"myRecord___qv6iJ",recordPrefix:"recordPrefix____bO3_",mine:"mine___fhCrG",avatar:"avatar___vwT8k",nickname:"nickname___QA_sN",myRank:"myRank___QUd2y",questionNumber:"questionNumber___j4tJF",titleWarp:"titleWarp___Hhoy_",hov:"hov___L_H5a",statusText:"statusText___okgdj",hovBtn:"hovBtn___reyI4",tag:"tag___zifqR",problemsclose:"problemsclose___cfp5y",imgsrc:"imgsrc___E905q",sendModal:"sendModal___jrx6y",bottom:"bottom___pKnLQ",line:"line___kNxnj",del:"del___kXkXv"},$=w(48790),ee=Object.defineProperty,W=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,he=(be,M,Ce)=>M in be?ee(be,M,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):be[M]=Ce,Oe=(be,M)=>{for(var Ce in M||(M={}))ne.call(M,Ce)&&he(be,Ce,M[Ce]);if(W)for(var Ce of W(M))ue.call(M,Ce)&&he(be,Ce,M[Ce]);return be};const G=be=>React.createElement("svg",Oe({width:14,height:10,xmlns:"http://www.w3.org/2000/svg"},be),React.createElement("title",null,"\u89C6\u9891"),React.createElement("g",{fill:"#C1E2FF",fillRule:"nonzero"},React.createElement("path",{d:"M7.836 9.913H2.297c-.593.072-1.185-.145-1.624-.596a2.444 2.444 0 0 1-.666-1.759v-5.17A2.47 2.47 0 0 1 .679.636c.437-.45 1.025-.671 1.617-.608h5.592c.589-.072 1.176.148 1.607.603.43.454.661 1.096.63 1.757v5.17a2.443 2.443 0 0 1-.664 1.759c-.44.451-1.032.668-1.625.596ZM2.297 1.44c-.468 0-1.026.165-1.026.948v5.17c0 .258 0 .942 1.026.942h5.54c1.024 0 1.024-.684 1.024-.942v-5.17c0-.47-.116-.948-.973-.948h-5.59Z"}),React.createElement("path",{d:"M12.476 9.207a1.781 1.781 0 0 1-1.043-.382L8.86 6.93V3.003l2.575-1.891a1.78 1.78 0 0 1 1.04-.379c.367-.034.73.102 1.003.377.274.275.433.664.44 1.075v5.57c-.007.411-.166.8-.44 1.075a1.248 1.248 0 0 1-1.003.377Zm-2.35-3.036 2.01 1.48c.1.082.218.131.34.143a.29.29 0 0 0 .186-.045l-.007-5.564a.315.315 0 0 0-.179-.04.64.64 0 0 0-.339.144l-2.012 1.475v2.407Zm-5.06.212c-.698 0-1.264-.633-1.264-1.412 0-.78.566-1.411 1.265-1.412.698 0 1.264.632 1.264 1.411 0 .78-.567 1.411-1.265 1.412Z"})));var P="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNNy44MzYgOS45MTNIMi4yOTdjLS41OTMuMDcyLTEuMTg1LS4xNDUtMS42MjQtLjU5NmEyLjQ0NCAyLjQ0NCAwIDAgMS0uNjY2LTEuNzU5di01LjE3QTIuNDcgMi40NyAwIDAgMSAuNjc5LjYzNmMuNDM3LS40NSAxLjAyNS0uNjcxIDEuNjE3LS42MDhoNS41OTJjLjU4OS0uMDcyIDEuMTc2LjE0OCAxLjY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CwgwdBbqdqGhLeLz2UYntnLll00OXNA2unrWHdYLWeogezdjK5Fa6J3Vhu6stxJJfHc3OpSbuV6A7mFmKLfTqzYa1gPNqbIwVEfKLkBa09Z6KA/164p5dcgwVGOV9VlIj4dusHUqiNSZhma02J0uDPVwt3dEMrTj9V6IXlt1nx+aPzjWg5wK5lTv6X2u38iw3+e7r/edjQ76RZv1vosAmxX5ixba7Mj/bTLwJ/OqjXyXcOSkAAAAAElFTkSuQmCC",vt=w(22072),$t=Object.defineProperty,Ht=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,xn=(be,M,Ce)=>M in be?$t(be,M,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):be[M]=Ce,Yt=(be,M)=>{for(var Ce in M||(M={}))ke.call(M,Ce)&&xn(be,Ce,M[Ce]);if(Ht)for(var Ce of Ht(M))Bt.call(M,Ce)&&xn(be,Ce,M[Ce]);return be},ln=(be,M,Ce)=>new Promise((Ge,K)=>{var k=z=>{try{pe(Ce.next(z))}catch(Y){K(Y)}},F=z=>{try{pe(Ce.throw(z))}catch(Y){K(Y)}},pe=z=>z.done?Ge(z.value):Promise.resolve(z.value).then(k,F);pe((Ce=Ce.apply(be,M)).next())});const mt=({globalSetting:be,user:M,dispatch:Ce})=>{var Ge,K,k,F,pe,z,Y,ie,Te,xe,Ue,Ze,$e,at,ve,De;const[ot]=(0,fe.useSearchParams)(),Je=(0,fe.useLocation)(),He={page:1,per_page:30,tag_discipline_id:[-1],source_discipline_id:[-1],status:null,difficulty:null,search:"",save_search:"",sort_by:null,sort_direction:null,filter:ot.get("tab")||"public"},[gt,Rt]=(0,p.useState)(0),[st,Kt]=(0,p.useState)(0),[cn,At]=(0,p.useState)(0),[Xt,Fe]=(0,p.useState)([]),[Ne,Me]=(0,p.useState)([]),[I,ae]=(0,p.useState)({}),[de,se]=(0,p.useState)(!1),[Se,Mt]=(0,p.useState)([]),[It,Ft]=(0,p.useState)(!0),[fn,Le]=(0,p.useState)(null);let[_,j]=(0,p.useState)(He);const E=(0,p.useRef)(null),Pe=(0,p.useRef)(null),[ye,we]=(0,p.useState)([]),ze=(0,p.useMemo)(()=>["not_reviewed","under_review","review_finished"].includes(_.filter),[_.filter]),[ut,Pt]=(0,p.useState)(!1),[Vt,Ut]=(0,p.useState)(!1),[mn,Re]=(0,p.useState)(""),[_e,Ve]=(0,p.useState)([]),[et,dt]=(0,p.useState)(!1),[Et,tt]=(0,p.useState)([]),[nt,_t]=(0,p.useState)(!1),[Ct,pn]=(0,p.useState)(!1),_n=M.userInfo.identity==="teacher",an=(je,Lt,tn)=>ln(void 0,null,function*(){var gn,zn,Ee,lt;je.persist(),(zn=(gn=je==null?void 0:je.target)==null?void 0:gn.style)!=null&&zn.pointerEvents&&(je.target.style.pointerEvents="none");const Ye=yield(0,R.ZP)(`/api/practices/${Lt.identifier}/start`,{method:"get"});if((Ye==null?void 0:Ye.status)===0){if(tn){(0,We.xg)(`/problems/${Ye==null?void 0:Ye.identifier}/oj/${Lt==null?void 0:Lt.identifier}?tab=3`);return}(0,We.xg)(`/problems/${Ye==null?void 0:Ye.identifier}/oj/${Lt==null?void 0:Lt.identifier}`)}(lt=(Ee=je==null?void 0:je.target)==null?void 0:Ee.style)!=null&<.pointerEvents&&(je.target.style.pointerEvents="auto")});(0,p.useEffect)(()=>{let je=O()().add(0,"days").unix(),Lt=localStorage.getItem("problemsclose");if(!Lt){dt(!0);return}je>parseInt(Lt)&&dt(!0)},[]);const zt=["\u672A\u53D1\u5E03","\u5DF2\u516C\u5F00","\u672A\u5BA1\u6838","\u5BA1\u6838\u4E2D","\u672A\u516C\u5F00","\u672A\u901A\u8FC7"],Ie=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(je,Lt)=>p.createElement("div",{className:S.titleWarp},(_==null?void 0:_.filter)==="mine"?p.createElement("span",{className:S.tag},zt[Lt.practice_status]):null,p.createElement("span",{title:je,className:S.hov,onClick:tn=>an(tn,Lt)},je))},(_==null?void 0:_.filter)==="public"?{title:"\u9898\u89E3",dataIndex:"solution_count",width:100,sorter:!0,render:(je,Lt)=>p.createElement("span",{style:{display:"flex"}},p.createElement("span",{onClick:tn=>an(tn,Lt,!0),className:"current"},je),(Lt==null?void 0:Lt.has_video_solution)&&p.createElement("img",{style:{objectFit:"contain"},className:"ml5",src:P}))}:null,(_==null?void 0:_.filter)==="public"?{title:"\u901A\u8FC7\u7387",dataIndex:"pass_ratio",sorter:!0,width:90}:null,{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:je=>p.createElement(p.Fragment,null,je===1&&p.createElement("span",{className:S["btn-style-1"]},"\u7B80\u5355"),je===2&&p.createElement("span",{className:S["btn-style-2"]},"\u9002\u4E2D"),je===3&&p.createElement("span",{className:S["btn-style-3"]},"\u56F0\u96BE"))},(_==null?void 0:_.filter)==="public"?{title:"\u4EBA\u6570",dataIndex:"user_count",align:"center",sorter:!0,width:80}:null,(_==null?void 0:_.filter)==="public"?{title:"\u72B6\u6001",dataIndex:"status",width:94,render:(je,Lt)=>(0,$.bg)()?p.createElement(p.Fragment,null,fn===(Lt==null?void 0:Lt.identifier)?p.createElement("span",{className:S.hovBtn,onClick:tn=>an(tn,Lt)},"\u5F00\u542F\u5237\u9898"):p.createElement(p.Fragment,null,je===0&&p.createElement("span",{className:S.statusText},"\u672A\u5F00\u542F"),je===1&&p.createElement("span",{className:S.statusText},"\u8FDB\u884C\u4E2D"),je===2&&p.createElement("span",{className:S.statusText},"\u5DF2\u901A\u8FC7"))):"-"}:null,(_==null?void 0:_.filter)!=="public"?{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_disciplines_name",ellipsis:!0,width:200,render:je=>p.createElement("span",null,je==null?void 0:je.join("\u3001"))}:null,(_==null?void 0:_.filter)==="all"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:null,(_==null?void 0:_.filter)!=="public"?{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",sorter:!0,width:180}:null,(0,$.Ny)()?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(je,Lt)=>p.createElement(d.Z,{className:"ml10",dropdownRender:()=>Mn(Lt==null?void 0:Lt.identifier,Lt)},p.createElement("span",{style:{cursor:"default"},onClick:tn=>tn.preventDefault()},p.createElement("span",null,"\u66F4\u591A"),p.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"})))}:de&&(_==null?void 0:_.filter)!=="public"?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(je,Lt)=>Lt!=null&&Lt.is_self&&(Lt==null?void 0:Lt.practice_status)!==1?p.createElement(d.Z,{className:"ml10",dropdownRender:()=>On(Lt==null?void 0:Lt.identifier,Lt)},p.createElement("span",{style:{cursor:"default"},onClick:tn=>tn.preventDefault()},p.createElement("span",null,"\u66F4\u591A"),p.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"}))):"-"}:null].filter(je=>!!je),qe=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(je,Lt)=>p.createElement("span",{className:S.hov,onClick:tn=>an(tn,Lt)},je)},{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:je=>p.createElement(p.Fragment,null,je===1&&p.createElement("span",{className:S["btn-style-1"]},"\u7B80\u5355"),je===2&&p.createElement("span",{className:S["btn-style-2"]},"\u9002\u4E2D"),je===3&&p.createElement("span",{className:S["btn-style-3"]},"\u56F0\u96BE"))},(_==null?void 0:_.filter)==="not_reviewed"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",ellipsis:!0,width:100},(_==null?void 0:_.filter)==="not_reviewed"?{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"submit_time",width:180}:null,(_==null?void 0:_.filter)==="under_review"?{title:"\u5F00\u59CB\u5BA1\u6838\u65F6\u95F4",dataIndex:"start_review_time",width:180}:null,(_==null?void 0:_.filter)==="review_finished"?{title:"\u6700\u540E\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",width:180}:null,{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"center",width:120,render:(je,Lt)=>{let tn;switch(_==null?void 0:_.filter){case"under_review":tn=p.createElement("div",{style:{display:"flex"}},p.createElement(ge.ZP,{type:"link",size:"small",onClick:gn=>an(gn,Lt)},"\u5BA1\u6838"),p.createElement(ge.ZP,{type:"link",style:{color:"#666"},size:"small",onClick:gn=>en({e:gn,record:Lt,op:"release"})},"\u79FB\u51FA"));break;case"review_finished":tn=p.createElement(ge.ZP,{type:"link",size:"small",onClick:gn=>{Pt(!0),ft(Lt)}},"\u5BA1\u6838\u8BB0\u5F55");break;default:tn=p.createElement(ge.ZP,{type:"link",block:!0,onClick:gn=>en({e:gn,record:Lt,op:"claim"})},"\u5F00\u59CB\u5BA1\u6838");break}return tn}}].filter(je=>!!je),ft=je=>ln(void 0,null,function*(){Ve([]);const Lt=yield(0,R.ZP)(`/api/practices/${je.identifier}/review_list`,{method:"get"});Ve(Lt==null?void 0:Lt.reviews_list)}),ht=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",key:"review_time",render:(je,Lt)=>p.createElement("span",null,O()(je).format("YYYY-MM-DD HH:mm:ss"))},{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",key:"reviewer"},{title:"\u5BA1\u6838\u7ED3\u679C",dataIndex:"status",width:120,key:"status",render:(je,Lt)=>je==="5"||je===5?p.createElement("div",{style:{display:"flex",alignItems:"center"}},p.createElement("div",{style:{color:"#333333",marginRight:"5px",whiteSpace:"nowrap"}},"\u672A\u901A\u8FC7"),p.createElement("div",{style:{color:"#0152d9",whiteSpace:"nowrap",cursor:"pointer"},onClick:()=>{Re(Lt.description),Ut(!0)}},"\u67E5\u770B\u539F\u56E0")):p.createElement("span",null,"\u5DF2\u901A\u8FC7")}];(0,p.useEffect)(()=>{rn(),Gt(_)},[]),(0,p.useEffect)(()=>{var je;Xt.length!==0&&((je=E==null?void 0:E.current)==null?void 0:je.clientHeight)>98&&Rt(1)},[Xt]),(0,p.useEffect)(()=>{var je;Ne.length!==0&&((je=Pe==null?void 0:Pe.current)==null?void 0:je.clientHeight)>98&&Kt(1)},[Ne]),(0,p.useEffect)(()=>(Ce({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),()=>{Ce({type:"globalSetting/onlyShowBackTopToggle",payload:!0})}),[]),(0,p.useEffect)(()=>{var je;(document.title==="\u4EBA\u5DE5\u667A\u80FD\u79D1\u7814\u670D\u52A1\u5E73\u53F0"||document.title==="\u9996\u9875"||document.title==="\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0"||(je=document.title)!=null&&je.includes("img"))&&(document.title="\u5728\u7EBF\u5237\u9898")},[be]),(0,p.useEffect)(()=>(document.body.setAttribute("data-custom","initial"),()=>{document.body.removeAttribute("data-custom")}),[]);const Gt=je=>ln(void 0,null,function*(){var Lt,tn;je.search=encodeURIComponent(je.search);const gn=Xe().cloneDeep(je);gn.tag_discipline_id=(Lt=gn.tag_discipline_id)!=null&&Lt.includes(-1)?[]:gn.tag_discipline_id,gn.source_discipline_id=(tn=gn.source_discipline_id)!=null&&tn.includes(-1)?[]:gn.source_discipline_id,console.log(gn,"sendData"),Ft(!0),Mt([]);const zn=yield(0,R.ZP)("/api/practices.json",{method:"get",params:gn});we([]),Ft(!1),At(zn==null?void 0:zn.practices_count),Mt(zn==null?void 0:zn.practices_list),tt((zn==null?void 0:zn.recommend_subjects)||[])}),en=je=>ln(void 0,[je],function*({op:Lt,description:tn,record:gn,e:zn}){const Ee={op:Lt,description:tn};Ft(!0);const lt=yield(0,R.ZP)(`/api/practices/${gn.identifier}/review`,{method:"post",body:Ee});Ft(!1),Lt==="claim"&&(lt.status===0||lt.status==="0")&&an(zn,gn),Gt(_)}),Wt=je=>ln(void 0,null,function*(){Ft(!0);const Lt=yield(0,R.ZP)(`/api/practices/${je.identifier}/publish`,{method:"post"});Ft(!1),Gt(_)}),rn=()=>ln(void 0,null,function*(){var je;const Lt=yield(0,R.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}}),tn=yield(0,R.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source",position:"index"}}),gn=yield(0,R.ZP)("/api/mypractices/rank_list",{method:"get",params:{}});if(Lt!=null&&Lt.tag_disciplines){const zn=[{id:-1,name:"\u5168\u90E8",count:Lt==null?void 0:Lt.totalCount},...Lt==null?void 0:Lt.tag_disciplines];Fe(zn)}if(tn!=null&&tn.tag_disciplines){const zn=[{id:-1,name:"\u5168\u90E8",count:tn==null?void 0:tn.totalCount},...tn==null?void 0:tn.tag_disciplines];Me(zn)}ae(gn||{}),se((je=gn==null?void 0:gn.my_record)==null?void 0:je.outsource)}),hn=(je,Lt)=>{var tn;_.page=1;let gn=_[`${Lt}_discipline_id`];(tn=_[`${Lt}_discipline_id`])!=null&&tn.includes(je)?gn=gn.filter(zn=>zn!==je):gn.push(je),je===-1?gn=[-1]:(gn=gn.filter(zn=>zn!==-1),gn.length||(gn=[-1])),_[`${Lt}_discipline_id`]=gn,j(Yt({},_)),Gt(_)},Sn=(je,Lt)=>{_.page=1,_[Lt]=typeof je=="number"?je:null,j(Yt({},_)),Gt(_)},Un=je=>{_.page=1,_.save_search=je,j(Yt({},_))},yn=(je,Lt,tn)=>{_.page=je==null?void 0:je.current,_.per_page=je==null?void 0:je.pageSize,tn!=null&&tn.order?(_.sort_by=tn==null?void 0:tn.field,_.sort_direction=(tn==null?void 0:tn.order)==="ascend"?"asc":"desc"):(_.sort_by=null,_.sort_direction=null),j(Yt({},_)),Gt(_)},Zn=je=>{_.page=1,_.filter=je,_.status=null,_.practice_status=null,j(Yt({},_)),Gt(_)},Nn=(je,Lt)=>{if((Lt==null?void 0:Lt.length)===0){le.ZP.warning("\u8BF7\u9009\u62E9\u8BD5\u9898");return}const tn=()=>ln(void 0,null,function*(){const gn=yield(0,R.ZP)("/api/practices/batch_op.json",{method:"post",body:{identifier:Lt,op:je}});if((gn==null?void 0:gn.status)===0){const zn=Se.length===1&&_.page!==1?_.page-1:_.page;_.page=zn,j(Yt({},_)),Gt(_)}});if(je===-1){o.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5220\u9664\u786E\u8BA4",icon:null,className:"custom-modal-divider",content:"\u5220\u9664\u540E\u9898\u76EE\u5C06\u4E0D\u53EF\u518D\u627E\u56DE\u3002",onOk:tn});return}tn()},Gn=p.createElement(b.default,null,(_==null?void 0:_.filter)==="public"?p.createElement(b.default.Item,{onClick:()=>Nn(0,ye)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171"):[p.createElement(b.default.Item,{key:2,onClick:()=>Nn(1,ye)},"\u6279\u91CF\u79FB\u5165\u516C\u5171"),p.createElement(b.default.Item,{key:1,onClick:()=>Nn(0,ye)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171")],(0,$.Ny)()&&p.createElement(b.default.Item,{onClick:()=>vn()},"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93"),(_==null?void 0:_.filter)!=="public"&&p.createElement(b.default.Item,{onClick:()=>Nn(-1,ye)},"\u6279\u91CF\u5220\u9664")),Mn=(je,Lt)=>p.createElement(b.default,null,(Lt==null?void 0:Lt.practice_status)===1?p.createElement(b.default.Item,{onClick:()=>Nn(0,[je])},"\u79FB\u51FA\u516C\u5171"):p.createElement(b.default.Item,{onClick:()=>Nn(1,[je])},"\u79FB\u5165\u516C\u5171"),(_==null?void 0:_.filter)==="mine"?p.createElement(b.default.Item,{onClick:()=>Wt(Lt),disabled:![0,4,5].includes(Lt.practice_status)},[0,4,5].includes(Lt.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"):null,p.createElement(b.default.Item,{onClick:()=>(0,We.xg)(`/problems/${je}/ojedit`)},"\u7F16\u8F91"),(_==null?void 0:_.filter)!=="public"&&p.createElement(b.default.Item,{onClick:()=>Nn(-1,[je])},"\u5220\u9664")),On=(je,Lt)=>p.createElement(b.default,null,p.createElement(b.default.Item,{onClick:()=>Wt(Lt),disabled:![0,4,5].includes(Lt.practice_status)},[0,4,5].includes(Lt.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"),p.createElement(b.default.Item,{onClick:()=>(0,We.xg)(`/problems/${je}/ojedit`)},"\u7F16\u8F91"),p.createElement(b.default.Item,{onClick:()=>Nn(-1,[je])},"\u5220\u9664")),Qn=je=>{we(je)},vn=()=>{if(!ye.length){le.ZP.warning("\u8BF7\u9009\u62E9\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u7684\u7F16\u7A0B\u5237\u9898");return}let je=null;o.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93",icon:null,className:"custom-modal-divider",content:p.createElement("div",null,p.createElement("p",{className:"mt20"},"\u5DF2\u9009",p.createElement("span",{className:"c-light-primary"},ye.length),"\u4E2D\u4E2A\u7F16\u7A0B\u5237\u9898\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u6210\u4E3A\u7F16\u7A0B\u9898"),p.createElement("div",null,"\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898\u7684\u8BED\u8A00\uFF1A"),p.createElement(T.default.Group,{className:"mt3",onChange:Lt=>{je=Lt,document.getElementById("send-to-modal").style.display="none"}},p.createElement(T.default,{value:"c"},"C\u8BED\u8A00"),p.createElement(T.default,{value:"c++"},"C++\u8BED\u8A00"),p.createElement(T.default,{value:"java"},"Java\u8BED\u8A00"),p.createElement(T.default,{value:"python"},"Python\u8BED\u8A00")),p.createElement("div",{id:"send-to-modal",style:{color:"#E30000",display:"none"}},"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00")),onOk:()=>ln(void 0,null,function*(){if(!(je!=null&&je.length))return document.getElementById("send-to-modal").style.display="block",Promise.reject();const Lt=yield(0,R.ZP)("/api/practices/send_to_item_bank.json",{method:"post",body:{identifiers:ye,language:je}});(Lt==null?void 0:Lt.status)===0&&le.ZP.success("\u53D1\u9001\u6210\u529F")})})},Dn={selectedRowKeys:ye,columnWidth:40,onChange:Qn};return p.createElement("section",{className:S.wrap},p.createElement(Z.jL,{img:J,title:"\u7F16\u7A0B\u5237\u9898",sunTitle:"\u5FEB\u901F\u63D0\u9AD8\u7F16\u7A0B\u80FD\u529B",bannerExtraContent:p.createElement(d.Z,{dropdownRender:()=>p.createElement(b.default,null,p.createElement(b.default.Item,{key:1,onClick:()=>{fe.history.push("/problems/add")}},"\u65B0\u5EFA\u9898\u76EE"),p.createElement(b.default.Item,{key:2,onClick:()=>{fe.history.push("/problems/batchAdd")}},"\u6279\u91CF\u5BFC\u5165\u9898\u76EE"))},p.createElement("div",{className:S.addQuestion,style:{visibility:(0,$.Ny)()||de?"visible":"hidden"}},p.createElement("span",null,"\u65B0\u5EFA\u9898\u76EE")))}),p.createElement("div",{className:S.content},p.createElement("div",{className:S.left},p.createElement(m.Z,{className:`${S.filterPoint} mb10`,align:"top"},p.createElement(y.Z,{className:S.filterType},"\u77E5\u8BC6\u70B9"),p.createElement(y.Z,{className:S.btnWarp,ref:E,style:gt>0?{height:gt===1?76:"auto"}:{}},Xt==null?void 0:Xt.map(je=>{var Lt;return p.createElement("div",{onClick:()=>hn(je.id,"tag"),key:je.id,className:(Lt=_==null?void 0:_.tag_discipline_id)!=null&&Lt.includes(je.id)?`${S.btn} ${S.btnActive}`:S.btn},p.createElement("span",{title:je.name},je.name),p.createElement("span",{className:S.count,style:{display:je.count?"block":"none"}},je.count))})),!!gt&&p.createElement(y.Z,{className:S.fold},gt===1?p.createElement("div",{onClick:()=>Rt(2),className:S.action},"\u5C55\u5F00",p.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):p.createElement("div",{onClick:()=>Rt(1),className:S.action},"\u6536\u8D77",p.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"})))),!!Ne.length&&p.createElement(m.Z,{className:S.filterPoint,align:"top",style:{marginBottom:22}},p.createElement(y.Z,{className:S.filterType},"\u6765\u6E90"),p.createElement(y.Z,{className:S.btnWarp,ref:Pe,style:st>0?{height:st===1?76:"auto"}:{}},Ne==null?void 0:Ne.map(je=>{var Lt;return p.createElement("div",{onClick:()=>hn(je.id,"source"),key:je.id,className:(Lt=_==null?void 0:_.source_discipline_id)!=null&&Lt.includes(je.id)?`${S.btn} ${S.btnActive}`:S.btn},p.createElement("span",{title:je.name},je.name),p.createElement("span",{className:S.count},je.count))}),!!st&&p.createElement(y.Z,{className:S.fold},st===1?p.createElement("div",{onClick:()=>Kt(2),className:S.action},"\u5C55\u5F00",p.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):p.createElement("div",{onClick:()=>Kt(1),className:S.action},"\u6536\u8D77",p.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"}))))),p.createElement("div",{className:S.control},p.createElement(x.default,{suffixIcon:p.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u96BE\u5EA6",value:_==null?void 0:_.difficulty,onChange:je=>Sn(je,"difficulty")},p.createElement(x.default.Option,{value:1},"\u7B80\u5355"),p.createElement(x.default.Option,{value:2},"\u9002\u4E2D"),p.createElement(x.default.Option,{value:3},"\u56F0\u96BE")),(0,$.bg)()&&_.filter==="public"&&p.createElement(x.default,{suffixIcon:p.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:_==null?void 0:_.status,onChange:je=>Sn(je,"status")},p.createElement(x.default.Option,{value:0},"\u672A\u5F00\u542F"),p.createElement(x.default.Option,{value:1},"\u8FDB\u884C\u4E2D"),p.createElement(x.default.Option,{value:2},"\u5DF2\u901A\u8FC7")),(0,$.bg)()&&_.filter==="mine"&&p.createElement(x.default,{suffixIcon:p.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:_==null?void 0:_.practice_status,onChange:je=>Sn(je,"practice_status")},p.createElement(x.default.Option,{value:0},"\u672A\u53D1\u5E03"),p.createElement(x.default.Option,{value:1},"\u5DF2\u516C\u5F00"),p.createElement(x.default.Option,{value:2},"\u672A\u5BA1\u6838"),p.createElement(x.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),p.createElement(x.default.Option,{value:4},"\u672A\u516C\u5F00"),p.createElement(x.default.Option,{value:5},"\u672A\u901A\u8FC7")),(0,$.bg)()&&_.filter==="all"&&p.createElement(x.default,{suffixIcon:p.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:_==null?void 0:_.practice_status,onChange:je=>Sn(je,"practice_status")},p.createElement(x.default.Option,{value:0},"\u672A\u53D1\u5E03"),p.createElement(x.default.Option,{value:1},"\u5DF2\u516C\u5F00"),p.createElement(x.default.Option,{value:2},"\u672A\u5BA1\u6838"),p.createElement(x.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),p.createElement(x.default.Option,{value:4},"\u672A\u516C\u5F00"),p.createElement(x.default.Option,{value:5},"\u672A\u901A\u8FC7")),p.createElement(L.default.Search,{className:S.search,size:"large",suffix:p.createElement("i",{className:`iconfont icon-sousuo9 font14 ${S.searchIcon}`,onClick:()=>{_.page=1,_.search=_.save_search,j(Yt({},_)),_.save_search&&(0,vt.tk)({name:_.save_search,copywriting:_.save_search,position:"Practice"}),Gt(_)}}),placeholder:(0,$.Ny)()?"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u3001\u521B\u5EFA\u8005\u641C\u7D22":"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",value:_==null?void 0:_.save_search,onChange:je=>Un(je.target.value),onSearch:je=>{_.page=1,_.search=_.save_search,j(Yt({},_)),je&&(0,vt.tk)({name:je,copywriting:je,position:"Practice"}),Gt(_)}})),p.createElement("div",{className:S.table},p.createElement("div",{className:S.tabWarp,style:(0,$.Ny)()||de?{}:{height:10,border:0}},(0,$.Ny)()?p.createElement(U.default,{className:S.tab,activeKey:ze?"not_reviewed":_.filter,onChange:Zn,tabBarExtraContent:!ze&&p.createElement(d.Z,{dropdownRender:()=>Gn},p.createElement("span",{className:"ant-dropdown-link font14 current",onClick:je=>je.preventDefault()},"\u6279\u91CF\u64CD\u4F5C ",p.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"iconfont icon-xiajiantou1"})))},p.createElement(U.default.TabPane,{tab:"\u516C\u5171",key:"public"}),p.createElement(U.default.TabPane,{tab:"\u5168\u90E8",key:"all"}),p.createElement(U.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),p.createElement(U.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):de?p.createElement(U.default,{className:S.tab,activeKey:ze?"not_reviewed":_.filter,onChange:Zn},p.createElement(U.default.TabPane,{tab:"\u516C\u5171",key:"public"}),p.createElement(U.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),p.createElement(U.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):null),ze?p.createElement("div",{className:S.tabWarp,style:(0,$.Ny)()||de?{}:{height:10,border:0}},p.createElement(U.default,{className:S.tab,activeKey:_.filter,onChange:Zn},p.createElement(U.default.TabPane,{tab:"\u5F85\u5BA1\u6838",key:"not_reviewed"}),p.createElement(U.default.TabPane,{tab:"\u5BA1\u6838\u4E2D",key:"under_review"}),p.createElement(U.default.TabPane,{tab:"\u5DF2\u5BA1\u6838",key:"review_finished"}))):null,!((0,$.Ny)()||de)&&_n&&p.createElement("div",{className:S.tabWarp2,style:{justifyContent:"end"}},nt?p.createElement(m.Z,{align:"middle"},p.createElement(m.Z,{onClick:()=>pn(!0),align:"middle",className:"current"},p.createElement("i",{className:"iconfont icon-yixuan mr10 c-light-primary font20"}),p.createElement("span",null,"\u5DF2\u9009",p.createElement("span",{className:"c-light-primary"},ye.length),"\u4E2A")),p.createElement(ge.ZP,{className:"mr20 ml40",ghost:!0,onClick:()=>{_t(!1),we([])},type:"primary"},"\u53D6\u6D88"),p.createElement(ge.ZP,{onClick:vn,ghost:!0,type:"primary"},"\u786E\u8BA4\u53D1\u9001")):p.createElement(ge.ZP,{onClick:()=>_t(!0),type:"primary"},p.createElement("i",{className:"iconfont icon-fasong mr5"}),"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93")),p.createElement(V.default,{rowSelection:(0,$.Ny)()||nt?Dn:void 0,className:S.customTable,dataSource:Se,bordered:!1,rowKey:je=>je.identifier,columns:ze?qe:Ie,rowClassName:S.row,loading:It,onRow:je=>({onMouseEnter:Lt=>{Le(je==null?void 0:je.identifier)},onMouseLeave:Lt=>{Le(null)}}),onChange:yn,pagination:{pageSize:_.per_page,total:cn,current:_.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,size:"default",position:["bottomCenter"],showTotal:je=>p.createElement("span",{className:"mr10"},"\u5171",p.createElement("span",{className:"c-orange"},je),"\u6761\u6570\u636E")}}))),p.createElement("div",{className:S.right},p.createElement("div",{className:S.statistics},p.createElement("img",{src:g,alt:""}),p.createElement("div",{className:S.title},"\u6211\u7684\u5237\u9898\u7EDF\u8BA1"),p.createElement(m.Z,{justify:"space-between"},p.createElement(y.Z,{className:S.statisticItem},p.createElement("div",{className:S.rate},(0,$.bg)()?((Ge=I==null?void 0:I.my_record)==null?void 0:Ge.passed_ratio)||0:"-"),p.createElement("div",{className:S.dataName},"\u901A\u8FC7\u7387(%)")),p.createElement(y.Z,{className:S.statisticItem},p.createElement("div",{className:S.rate},(0,$.bg)()?((K=I==null?void 0:I.my_record)==null?void 0:K.passed_count)||0:"-"),p.createElement("div",{className:S.dataName},"\u5237\u9898\u6570")),p.createElement(y.Z,{className:S.statisticItem},p.createElement("div",{className:S.rate},(0,$.bg)()?(F=(k=I==null?void 0:I.my_record)==null?void 0:k.time_count)==null?void 0:F.toFixed(2):"-"),p.createElement("div",{className:S.dataName},"\u7D2F\u8BA1\u65F6\u957F(h)")))),!!((pe=I==null?void 0:I.rank_list)!=null&&pe.length)&&p.createElement(p.Fragment,null,((z=M.userInfo)==null?void 0:z.user_id)!=2&&(0,$.JA)()&&((Y=be==null?void 0:be.setting)==null?void 0:Y.main_site)&&et&&(Et==null?void 0:Et.length)>0&&p.createElement("div",{className:S.problemsclose,style:{position:"relative"}},p.createElement(te.Z,{autoplay:!0,pauseOnDotsHover:!0,style:{width:292,height:170,marginBottom:"10px",overflow:"hidden"}},Et==null?void 0:Et.map((je,Lt)=>p.createElement("div",{style:{display:"flex"},key:Lt},p.createElement("a",{href:`/paths/${je.identifier}`},p.createElement("img",{style:{width:"292px",height:"170px",borderRadius:"4px"},src:B.Z.IMG_SERVER+"/"+je.image_url}))))),p.createElement("img",{className:S.imgsrc,onClick:()=>{localStorage.setItem("problemsclose",O()().add(1,"days").unix()+""),dt(!1)},src:Dt})),p.createElement("div",{className:S.sort},p.createElement("div",{className:S.rankHeader},p.createElement("img",{src:v,className:S.rankIcon})),!!((ie=I==null?void 0:I.my_record)!=null&&ie.rank)&&p.createElement("div",{className:`${S.myRecord} ${S.li}`},p.createElement("span",{className:`${S.recordPrefix} ${S.mine}`},"\u6211\u7684"),p.createElement("img",{className:S.avatar,src:B.Z.IMG_SERVER+"/images/"+((Te=I==null?void 0:I.my_record)==null?void 0:Te.image_url)}),p.createElement("span",{title:(xe=I==null?void 0:I.my_record)==null?void 0:xe.nickname,className:S.nickname},(Ue=I==null?void 0:I.my_record)==null?void 0:Ue.nickname),p.createElement("span",{className:S.myRank},((Ze=I==null?void 0:I.my_record)==null?void 0:Ze.rank)>999?"\u7B2C999+\u540D":`\u7B2C${($e=I==null?void 0:I.my_record)==null?void 0:$e.rank}\u540D`),p.createElement("span",{className:S.questionNumber},(at=I==null?void 0:I.my_record)==null?void 0:at.passed_count,"\u9898")),(ve=I==null?void 0:I.rank_list)==null?void 0:ve.map((je,Lt)=>{let tn=Lt+1;return Lt===0&&(tn=Q.Z),Lt===1&&(tn=q.Z),Lt===2&&(tn=re.Z),p.createElement("div",{className:S.li,key:Lt},typeof tn=="number"?p.createElement("span",{className:S.recordPrefix},tn):p.createElement("span",{className:S.recordPrefix},p.createElement("img",{src:tn})),p.createElement("img",{className:S.avatar,src:B.Z.IMG_SERVER+"/images/"+(je==null?void 0:je.image_url)}),p.createElement("span",{title:je==null?void 0:je.nickname,className:S.nickname},je==null?void 0:je.nickname),p.createElement("span",{className:S.questionNumber},je.passed_count,"\u9898"))}))))),p.createElement(o.default,{title:"\u5BA1\u6838\u8BB0\u5F55",open:ut,onOk:()=>{},onCancel:()=>{Pt(!1)},footer:null,closable:!0},p.createElement(V.default,{dataSource:_e,columns:ht})),p.createElement(o.default,{title:"\u672A\u901A\u8FC7\u539F\u56E0",open:Vt,onOk:()=>{},onCancel:()=>{Ut(!1)},footer:null,closable:!0},p.createElement(oe.Z,{value:mn})),p.createElement(o.default,{open:Ct,centered:!0,width:1e3,okText:"\u786E\u5B9A\u53D1\u9001",onCancel:()=>pn(!1),cancelText:"\u8FD4\u56DE\u5217\u8868",onOk:()=>ln(void 0,null,function*(){pn(!1),vn()}),title:"\u67E5\u770B\u5DF2\u9009"},p.createElement("div",{className:"font14 c-light-primary mb10"},"\u5DF2\u9009",ye==null?void 0:ye.length,"\u4E2A"),p.createElement("div",{style:{height:400,overflow:"auto"}},(De=Se==null?void 0:Se.filter(je=>ye.includes(je.identifier)))==null?void 0:De.map((je,Lt)=>{var tn,gn;return p.createElement("div",{key:Lt,className:S.sendModal},p.createElement("div",{className:S.li},p.createElement("p",null,je==null?void 0:je.name),p.createElement("div",{className:S.bottom},p.createElement("span",{className:"c-grey-333"},"\u7F16\u7A0B\u9898"),p.createElement("i",{className:S.line}),p.createElement("span",{className:"c-grey-333"},je.difficulty===1&&"\u7B80\u5355",je.difficulty===2&&"\u9002\u4E2D",je.difficulty===3&&"\u56F0\u96BE"),p.createElement("i",{className:S.line}),p.createElement("span",null,"\u521B\u5EFA\u8005\xA0",p.createElement(N.Z,{title:je==null?void 0:je.creator},p.createElement("span",{className:"c-grey-333"},((tn=je==null?void 0:je.creator)==null?void 0:tn.length)>6?((gn=je==null?void 0:je.creator)==null?void 0:gn.substr(0,3))+"...":je==null?void 0:je.creator))),p.createElement("i",{className:S.line}),p.createElement("span",{className:S.des},"\u66F4\u65B0\xA0",p.createElement("span",{className:"c-grey-333"},je==null?void 0:je.updated_at)))),p.createElement("div",{className:S.del,onClick:()=>{we(ye.filter(zn=>zn!==je.identifier))}},"\u5220\u9664"))}))))};var Be=(0,fe.connect)(({user:be,globalSetting:M})=>({user:be,globalSetting:M}))(mt)},81428:function(Ln,jt,w){"use strict";w.d(jt,{AL:function(){return R},Iy:function(){return T},Qv:function(){return x},ez:function(){return B},jb:function(){return m}});var p=w(32834),fe=w.n(p),oe=w(11690),me=w.n(oe);let O=1;function d(ne,ue){const he=ne.match(/^(\s+)(?:```)/);if(he===null)return ue;const Oe=he[1];return ue.split(`
|
|
`).map(G=>{const P=G.match(/^\s+/);if(P===null)return G;const[Q]=P;return Q.length>=Oe.length?G.slice(Oe.length):G}).join(`
|
|
`)}let ge=[],le=["<ul>"];const o=new(fe()).Renderer,b=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function T(){ge.length=0,le=["<ul>"]}const m={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function y(ne,ue,he,Oe){if(ue>=ne.length||ne[ue].level<=he)return ue;var G=ne[ue];Oe.push("<li><a href='#"+O+G.anchor+"'>"+G.text+"</a>"),ue++;var P=[];return ue=y(ne,ue,G.level,P),P.length>0&&(Oe.push("<ul>"),P.forEach(function(Q){Oe.push(Q)}),Oe.push("</ul>")),Oe.push("</li>"),ue=y(ne,ue,he,Oe),ue}function x(){return y(ge,0,0,le),le.push("</ul>"),le.join("")}const L={heading(ne){const ue=b.exec(ne);if(O+=1,ue)return{type:"heading",raw:ue[0],depth:ue[1].length,text:ue[2]}},fences(ne){const ue=this.rules.block.fences.exec(ne);if(ue){const he=ue[0];let Oe=d(he,ue[3]||"");const G=ue[2]?ue[2].trim():ue[2];if(["latex","katex","math"].indexOf(G)>=0){const P=te(),Q=Oe;Oe=P,N[P]={type:"block",expression:Q}}return{type:"code",raw:he,lang:G,text:Oe}}}},U=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let V=0;const te=()=>`__special_katext_id_${V++}__`;let N={};function B(){return N}function R(){V=0,N={}}function S(ne){return ne=ne.replace(U,(ue,he)=>{const Oe=te();return N[Oe]={type:"inline",expression:he},Oe}),ne}const $=o.listitem;o.listitem=function(ne){return $(S(ne))};const ee=o.paragraph;o.paragraph=function(ne){return ee(S(ne))};const W=o.tablecell;o.tablecell=function(ne,ue){return W(S(ne),ue)},o.code=function(ne,ue,he){const Oe=(ue||"").match(/\S*/)[0];return Oe?["latex","katex","math"].indexOf(Oe)>=0?`<p class='editormd-tex'>${ne}</p>`:`<pre class="prettyprint linenums"><code class="language-${ue}">${he?ne:(0,oe.escape)(ne,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(he?ne:(0,oe.escape)(ne,!0))+"</code></pre>"},o.heading=function(ne,ue,he){let Oe=this.options.headerPrefix+he.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ge.push({anchor:Oe,level:ue,text:ne}),"<h"+ue+' id="'+O+Oe+'">'+ne+"</h"+ue+">"},fe().setOptions({silent:!0,gfm:!0,pedantic:!1}),fe().use({tokenizer:L,renderer:o}),jt.ZP=fe()},84022:function(Ln,jt,w){"use strict";w.d(jt,{Z:function(){return fn}});var p=w(59301),fe=w(5016),oe=w(20049),me=w(6487),O=w(56789),d=w(96233),ge=w(65260),le=w(7828),o=w(7942),b=w(18082),T=w(10928),m=w(5883),y={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},x=y,L=w(53280),U=w(92310),V=w.n(U),te={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(_){return p.createElement("ul",{style:{display:"block"}},_)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(_){return p.createElement("button",null,_+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null},N=te;function B(Le,_,j){return Math.max(_,Math.min(Le,j))}var R=function(_){var j=["onTouchStart","onTouchMove","onWheel"];j.includes(_._reactName)||_.preventDefault()},S=function(_){for(var j=[],E=ee(_),Pe=W(_),ye=E;ye<Pe;ye++)_.lazyLoadedList.indexOf(ye)<0&&j.push(ye);return j},$=function(_){for(var j=[],E=ee(_),Pe=W(_),ye=E;ye<Pe;ye++)j.push(ye);return j},ee=function(_){return _.currentSlide-ne(_)},W=function(_){return _.currentSlide+ue(_)},ne=function(_){return _.centerMode?Math.floor(_.slidesToShow/2)+(parseInt(_.centerPadding)>0?1:0):0},ue=function(_){return _.centerMode?Math.floor((_.slidesToShow-1)/2)+1+(parseInt(_.centerPadding)>0?1:0):_.slidesToShow},he=function(_){return _&&_.offsetWidth||0},Oe=function(_){return _&&_.offsetHeight||0},G=function(_){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E,Pe,ye,we;return E=_.startX-_.curX,Pe=_.startY-_.curY,ye=Math.atan2(Pe,E),we=Math.round(ye*180/Math.PI),we<0&&(we=360-Math.abs(we)),we<=45&&we>=0||we<=360&&we>=315?"left":we>=135&&we<=225?"right":j===!0?we>=35&&we<=135?"up":"down":"vertical"},P=function(_){var j=!0;return _.infinite||(_.centerMode&&_.currentSlide>=_.slideCount-1||_.slideCount<=_.slidesToShow||_.currentSlide>=_.slideCount-_.slidesToShow)&&(j=!1),j},Q=function(_,j){var E={};return j.forEach(function(Pe){return E[Pe]=_[Pe]}),E},q=function(_){var j=p.Children.count(_.children),E=_.listRef,Pe=Math.ceil(he(E)),ye=_.trackRef&&_.trackRef.node,we=Math.ceil(he(ye)),ze;if(_.vertical)ze=Pe;else{var ut=_.centerMode&&parseInt(_.centerPadding)*2;typeof _.centerPadding=="string"&&_.centerPadding.slice(-1)==="%"&&(ut*=Pe/100),ze=Math.ceil((Pe-ut)/_.slidesToShow)}var Pt=E&&Oe(E.querySelector('[data-index="0"]')),Vt=Pt*_.slidesToShow,Ut=_.currentSlide===void 0?_.initialSlide:_.currentSlide;_.rtl&&_.currentSlide===void 0&&(Ut=j-1-_.initialSlide);var mn=_.lazyLoadedList||[],Re=S((0,oe.Z)((0,oe.Z)({},_),{},{currentSlide:Ut,lazyLoadedList:mn}));mn=mn.concat(Re);var _e={slideCount:j,slideWidth:ze,listWidth:Pe,trackWidth:we,currentSlide:Ut,slideHeight:Pt,listHeight:Vt,lazyLoadedList:mn};return _.autoplaying===null&&_.autoplay&&(_e.autoplaying="playing"),_e},re=function(_){var j=_.waitForAnimate,E=_.animating,Pe=_.fade,ye=_.infinite,we=_.index,ze=_.slideCount,ut=_.lazyLoad,Pt=_.currentSlide,Vt=_.centerMode,Ut=_.slidesToScroll,mn=_.slidesToShow,Re=_.useCSS,_e=_.lazyLoadedList;if(j&&E)return{};var Ve=we,et,dt,Et,tt={},nt={},_t=ye?we:B(we,0,ze-1);if(Pe){if(!ye&&(we<0||we>=ze))return{};we<0?Ve=we+ze:we>=ze&&(Ve=we-ze),ut&&_e.indexOf(Ve)<0&&(_e=_e.concat(Ve)),tt={animating:!0,currentSlide:Ve,lazyLoadedList:_e,targetSlide:Ve},nt={animating:!1,targetSlide:Ve}}else et=Ve,Ve<0?(et=Ve+ze,ye?ze%Ut!==0&&(et=ze-ze%Ut):et=0):!P(_)&&Ve>Pt?Ve=et=Pt:Vt&&Ve>=ze?(Ve=ye?ze:ze-1,et=ye?0:ze-1):Ve>=ze&&(et=Ve-ze,ye?ze%Ut!==0&&(et=0):et=ze-mn),!ye&&Ve+mn>=ze&&(et=ze-mn),dt=ke((0,oe.Z)((0,oe.Z)({},_),{},{slideIndex:Ve})),Et=ke((0,oe.Z)((0,oe.Z)({},_),{},{slideIndex:et})),ye||(dt===Et&&(Ve=et),dt=Et),ut&&(_e=_e.concat(S((0,oe.Z)((0,oe.Z)({},_),{},{currentSlide:Ve})))),Re?(tt={animating:!0,currentSlide:et,trackStyle:Ht((0,oe.Z)((0,oe.Z)({},_),{},{left:dt})),lazyLoadedList:_e,targetSlide:_t},nt={animating:!1,currentSlide:et,trackStyle:$t((0,oe.Z)((0,oe.Z)({},_),{},{left:Et})),swipeLeft:null,targetSlide:_t}):tt={currentSlide:et,trackStyle:$t((0,oe.Z)((0,oe.Z)({},_),{},{left:Et})),lazyLoadedList:_e,targetSlide:_t};return{state:tt,nextState:nt}},J=function(_,j){var E,Pe,ye,we,ze,ut=_.slidesToScroll,Pt=_.slidesToShow,Vt=_.slideCount,Ut=_.currentSlide,mn=_.targetSlide,Re=_.lazyLoad,_e=_.infinite;if(we=Vt%ut!==0,E=we?0:(Vt-Ut)%ut,j.message==="previous")ye=E===0?ut:Pt-E,ze=Ut-ye,Re&&!_e&&(Pe=Ut-ye,ze=Pe===-1?Vt-1:Pe),_e||(ze=mn-ut);else if(j.message==="next")ye=E===0?ut:E,ze=Ut+ye,Re&&!_e&&(ze=(Ut+ut)%Vt+E),_e||(ze=mn+ut);else if(j.message==="dots")ze=j.index*j.slidesToScroll;else if(j.message==="children"){if(ze=j.index,_e){var Ve=ln((0,oe.Z)((0,oe.Z)({},_),{},{targetSlide:ze}));ze>j.currentSlide&&Ve==="left"?ze=ze-Vt:ze<j.currentSlide&&Ve==="right"&&(ze=ze+Vt)}}else j.message==="index"&&(ze=Number(j.index));return ze},g=function(_,j,E){return _.target.tagName.match("TEXTAREA|INPUT|SELECT")||!j?"":_.keyCode===37?E?"next":"previous":_.keyCode===39?E?"previous":"next":""},v=function(_,j,E){return _.target.tagName==="IMG"&&R(_),!j||!E&&_.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:_.touches?_.touches[0].pageX:_.clientX,startY:_.touches?_.touches[0].pageY:_.clientY,curX:_.touches?_.touches[0].pageX:_.clientX,curY:_.touches?_.touches[0].pageY:_.clientY}}},Z=function(_,j){var E=j.scrolling,Pe=j.animating,ye=j.vertical,we=j.swipeToSlide,ze=j.verticalSwiping,ut=j.rtl,Pt=j.currentSlide,Vt=j.edgeFriction,Ut=j.edgeDragged,mn=j.onEdge,Re=j.swiped,_e=j.swiping,Ve=j.slideCount,et=j.slidesToScroll,dt=j.infinite,Et=j.touchObject,tt=j.swipeEvent,nt=j.listHeight,_t=j.listWidth;if(!E){if(Pe)return R(_);ye&&we&&ze&&R(_);var Ct,pn={},_n=ke(j);Et.curX=_.touches?_.touches[0].pageX:_.clientX,Et.curY=_.touches?_.touches[0].pageY:_.clientY,Et.swipeLength=Math.round(Math.sqrt(Math.pow(Et.curX-Et.startX,2)));var an=Math.round(Math.sqrt(Math.pow(Et.curY-Et.startY,2)));if(!ze&&!_e&&an>10)return{scrolling:!0};ze&&(Et.swipeLength=an);var zt=(ut?-1:1)*(Et.curX>Et.startX?1:-1);ze&&(zt=Et.curY>Et.startY?1:-1);var Ie=Math.ceil(Ve/et),qe=G(j.touchObject,ze),ft=Et.swipeLength;return dt||(Pt===0&&(qe==="right"||qe==="down")||Pt+1>=Ie&&(qe==="left"||qe==="up")||!P(j)&&(qe==="left"||qe==="up"))&&(ft=Et.swipeLength*Vt,Ut===!1&&mn&&(mn(qe),pn.edgeDragged=!0)),!Re&&tt&&(tt(qe),pn.swiped=!0),ye?Ct=_n+ft*(nt/_t)*zt:ut?Ct=_n-ft*zt:Ct=_n+ft*zt,ze&&(Ct=_n+ft*zt),pn=(0,oe.Z)((0,oe.Z)({},pn),{},{touchObject:Et,swipeLeft:Ct,trackStyle:$t((0,oe.Z)((0,oe.Z)({},j),{},{left:Ct}))}),Math.abs(Et.curX-Et.startX)<Math.abs(Et.curY-Et.startY)*.8||Et.swipeLength>10&&(pn.swiping=!0,R(_)),pn}},ce=function(_,j){var E=j.dragging,Pe=j.swipe,ye=j.touchObject,we=j.listWidth,ze=j.touchThreshold,ut=j.verticalSwiping,Pt=j.listHeight,Vt=j.swipeToSlide,Ut=j.scrolling,mn=j.onSwipe,Re=j.targetSlide,_e=j.currentSlide,Ve=j.infinite;if(!E)return Pe&&R(_),{};var et=ut?Pt/ze:we/ze,dt=G(ye,ut),Et={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Ut||!ye.swipeLength)return Et;if(ye.swipeLength>et){R(_),mn&&mn(dt);var tt,nt,_t=Ve?_e:Re;switch(dt){case"left":case"up":nt=_t+Dt(j),tt=Vt?We(j,nt):nt,Et.currentDirection=0;break;case"right":case"down":nt=_t-Dt(j),tt=Vt?We(j,nt):nt,Et.currentDirection=1;break;default:tt=_t}Et.triggerSlideHandler=tt}else{var Ct=ke(j);Et.trackStyle=Ht((0,oe.Z)((0,oe.Z)({},j),{},{left:Ct}))}return Et},Xe=function(_){for(var j=_.infinite?_.slideCount*2:_.slideCount,E=_.infinite?_.slidesToShow*-1:0,Pe=_.infinite?_.slidesToShow*-1:0,ye=[];E<j;)ye.push(E),E=Pe+_.slidesToScroll,Pe+=Math.min(_.slidesToScroll,_.slidesToShow);return ye},We=function(_,j){var E=Xe(_),Pe=0;if(j>E[E.length-1])j=E[E.length-1];else for(var ye in E){if(j<E[ye]){j=Pe;break}Pe=E[ye]}return j},Dt=function(_){var j=_.centerMode?_.slideWidth*Math.floor(_.slidesToShow/2):0;if(_.swipeToSlide){var E,Pe=_.listRef,ye=Pe.querySelectorAll&&Pe.querySelectorAll(".slick-slide")||[];if(Array.from(ye).every(function(ut){if(_.vertical){if(ut.offsetTop+Oe(ut)/2>_.swipeLeft*-1)return E=ut,!1}else if(ut.offsetLeft-j+he(ut)/2>_.swipeLeft*-1)return E=ut,!1;return!0}),!E)return 0;var we=_.rtl===!0?_.slideCount-_.currentSlide:_.currentSlide,ze=Math.abs(E.dataset.index-we)||1;return ze}else return _.slidesToScroll},vt=function(_,j){return j.reduce(function(E,Pe){return E&&_.hasOwnProperty(Pe)},!0)?null:console.error("Keys Missing:",_)},$t=function(_){vt(_,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var j,E;if(!_.vertical)j=Yt(_)*_.slideWidth;else{var Pe=_.unslick?_.slideCount:_.slideCount+2*_.slidesToShow;E=Pe*_.slideHeight}var ye={opacity:1,transition:"",WebkitTransition:""};if(_.useTransform){var we=_.vertical?"translate3d(0px, "+_.left+"px, 0px)":"translate3d("+_.left+"px, 0px, 0px)",ze=_.vertical?"translate3d(0px, "+_.left+"px, 0px)":"translate3d("+_.left+"px, 0px, 0px)",ut=_.vertical?"translateY("+_.left+"px)":"translateX("+_.left+"px)";ye=(0,oe.Z)((0,oe.Z)({},ye),{},{WebkitTransform:we,transform:ze,msTransform:ut})}else _.vertical?ye.top=_.left:ye.left=_.left;return _.fade&&(ye={opacity:1}),j&&(ye.width=j),E&&(ye.height=E),window&&!window.addEventListener&&window.attachEvent&&(_.vertical?ye.marginTop=_.left+"px":ye.marginLeft=_.left+"px"),ye},Ht=function(_){vt(_,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var j=$t(_);return _.useTransform?(j.WebkitTransition="-webkit-transform "+_.speed+"ms "+_.cssEase,j.transition="transform "+_.speed+"ms "+_.cssEase):_.vertical?j.transition="top "+_.speed+"ms "+_.cssEase:j.transition="left "+_.speed+"ms "+_.cssEase,j},ke=function(_){if(_.unslick)return 0;vt(_,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var j=_.slideIndex,E=_.trackRef,Pe=_.infinite,ye=_.centerMode,we=_.slideCount,ze=_.slidesToShow,ut=_.slidesToScroll,Pt=_.slideWidth,Vt=_.listWidth,Ut=_.variableWidth,mn=_.slideHeight,Re=_.fade,_e=_.vertical,Ve=0,et,dt,Et=0;if(Re||_.slideCount===1)return 0;var tt=0;if(Pe?(tt=-Bt(_),we%ut!==0&&j+ut>we&&(tt=-(j>we?ze-(j-we):we%ut)),ye&&(tt+=parseInt(ze/2))):(we%ut!==0&&j+ut>we&&(tt=ze-we%ut),ye&&(tt=parseInt(ze/2))),Ve=tt*Pt,Et=tt*mn,_e?et=j*mn*-1+Et:et=j*Pt*-1+Ve,Ut===!0){var nt,_t=E&&E.node;if(nt=j+Bt(_),dt=_t&&_t.childNodes[nt],et=dt?dt.offsetLeft*-1:0,ye===!0){nt=Pe?j+Bt(_):j,dt=_t&&_t.children[nt],et=0;for(var Ct=0;Ct<nt;Ct++)et-=_t&&_t.children[Ct]&&_t.children[Ct].offsetWidth;et-=parseInt(_.centerPadding),et+=dt&&(Vt-dt.offsetWidth)/2}}return et},Bt=function(_){return _.unslick||!_.infinite?0:_.variableWidth?_.slideCount:_.slidesToShow+(_.centerMode?1:0)},xn=function(_){return _.unslick||!_.infinite?0:_.slideCount},Yt=function(_){return _.slideCount===1?1:Bt(_)+_.slideCount+xn(_)},ln=function(_){return _.targetSlide>_.currentSlide?_.targetSlide>_.currentSlide+mt(_)?"left":"right":_.targetSlide<_.currentSlide-Be(_)?"right":"left"},mt=function(_){var j=_.slidesToShow,E=_.centerMode,Pe=_.rtl,ye=_.centerPadding;if(E){var we=(j-1)/2+1;return parseInt(ye)>0&&(we+=1),Pe&&j%2===0&&(we+=1),we}return Pe?0:j-1},Be=function(_){var j=_.slidesToShow,E=_.centerMode,Pe=_.rtl,ye=_.centerPadding;if(E){var we=(j-1)/2+1;return parseInt(ye)>0&&(we+=1),!Pe&&j%2===0&&(we+=1),we}return Pe?j-1:0},be=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},M=Object.keys(N);function Ce(Le){return M.reduce(function(_,j){return Le.hasOwnProperty(j)&&(_[j]=Le[j]),_},{})}function Ge(Le,_,j){return _=(0,le.Z)(_),(0,d.Z)(Le,(0,ge.Z)()?Reflect.construct(_,j||[],(0,le.Z)(Le).constructor):_.apply(Le,j))}var K=function(_){var j,E,Pe,ye,we;_.rtl?we=_.slideCount-1-_.index:we=_.index,Pe=we<0||we>=_.slideCount,_.centerMode?(ye=Math.floor(_.slidesToShow/2),E=(we-_.currentSlide)%_.slideCount===0,we>_.currentSlide-ye-1&&we<=_.currentSlide+ye&&(j=!0)):j=_.currentSlide<=we&&we<_.currentSlide+_.slidesToShow;var ze;_.targetSlide<0?ze=_.targetSlide+_.slideCount:_.targetSlide>=_.slideCount?ze=_.targetSlide-_.slideCount:ze=_.targetSlide;var ut=we===ze;return{"slick-slide":!0,"slick-active":j,"slick-center":E,"slick-cloned":Pe,"slick-current":ut}},k=function(_){var j={};return(_.variableWidth===void 0||_.variableWidth===!1)&&(j.width=_.slideWidth),_.fade&&(j.position="relative",_.vertical&&_.slideHeight?j.top=-_.index*parseInt(_.slideHeight):j.left=-_.index*parseInt(_.slideWidth),j.opacity=_.currentSlide===_.index?1:0,j.zIndex=_.currentSlide===_.index?999:998,_.useCSS&&(j.transition="opacity "+_.speed+"ms "+_.cssEase+", visibility "+_.speed+"ms "+_.cssEase)),j},F=function(_,j){return _.key+"-"+j},pe=function(_){var j,E=[],Pe=[],ye=[],we=p.Children.count(_.children),ze=ee(_),ut=W(_);return p.Children.forEach(_.children,function(Pt,Vt){var Ut,mn={message:"children",index:Vt,slidesToScroll:_.slidesToScroll,currentSlide:_.currentSlide};!_.lazyLoad||_.lazyLoad&&_.lazyLoadedList.indexOf(Vt)>=0?Ut=Pt:Ut=p.createElement("div",null);var Re=k((0,oe.Z)((0,oe.Z)({},_),{},{index:Vt})),_e=Ut.props.className||"",Ve=K((0,oe.Z)((0,oe.Z)({},_),{},{index:Vt}));if(E.push(p.cloneElement(Ut,{key:"original"+F(Ut,Vt),"data-index":Vt,className:V()(Ve,_e),tabIndex:"-1","aria-hidden":!Ve["slick-active"],style:(0,oe.Z)((0,oe.Z)({outline:"none"},Ut.props.style||{}),Re),onClick:function(Et){Ut.props&&Ut.props.onClick&&Ut.props.onClick(Et),_.focusOnSelect&&_.focusOnSelect(mn)}})),_.infinite&&we>1&&_.fade===!1&&!_.unslick){var et=we-Vt;et<=Bt(_)&&(j=-et,j>=ze&&(Ut=Pt),Ve=K((0,oe.Z)((0,oe.Z)({},_),{},{index:j})),Pe.push(p.cloneElement(Ut,{key:"precloned"+F(Ut,j),"data-index":j,tabIndex:"-1",className:V()(Ve,_e),"aria-hidden":!Ve["slick-active"],style:(0,oe.Z)((0,oe.Z)({},Ut.props.style||{}),Re),onClick:function(Et){Ut.props&&Ut.props.onClick&&Ut.props.onClick(Et),_.focusOnSelect&&_.focusOnSelect(mn)}}))),j=we+Vt,j<ut&&(Ut=Pt),Ve=K((0,oe.Z)((0,oe.Z)({},_),{},{index:j})),ye.push(p.cloneElement(Ut,{key:"postcloned"+F(Ut,j),"data-index":j,tabIndex:"-1",className:V()(Ve,_e),"aria-hidden":!Ve["slick-active"],style:(0,oe.Z)((0,oe.Z)({},Ut.props.style||{}),Re),onClick:function(Et){Ut.props&&Ut.props.onClick&&Ut.props.onClick(Et),_.focusOnSelect&&_.focusOnSelect(mn)}}))}}),_.rtl?Pe.concat(E,ye).reverse():Pe.concat(E,ye)},z=function(Le){function _(){var j;(0,me.Z)(this,_);for(var E=arguments.length,Pe=new Array(E),ye=0;ye<E;ye++)Pe[ye]=arguments[ye];return j=Ge(this,_,[].concat(Pe)),(0,b.Z)(j,"node",null),(0,b.Z)(j,"handleRef",function(we){j.node=we}),j}return(0,o.Z)(_,Le),(0,O.Z)(_,[{key:"render",value:function(){var E=pe(this.props),Pe=this.props,ye=Pe.onMouseEnter,we=Pe.onMouseOver,ze=Pe.onMouseLeave,ut={onMouseEnter:ye,onMouseOver:we,onMouseLeave:ze};return p.createElement("div",(0,fe.Z)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},ut),E)}}])}(p.PureComponent);function Y(Le,_,j){return _=(0,le.Z)(_),(0,d.Z)(Le,(0,ge.Z)()?Reflect.construct(_,j||[],(0,le.Z)(Le).constructor):_.apply(Le,j))}var ie=function(_){var j;return _.infinite?j=Math.ceil(_.slideCount/_.slidesToScroll):j=Math.ceil((_.slideCount-_.slidesToShow)/_.slidesToScroll)+1,j},Te=function(Le){function _(){return(0,me.Z)(this,_),Y(this,_,arguments)}return(0,o.Z)(_,Le),(0,O.Z)(_,[{key:"clickHandler",value:function(E,Pe){Pe.preventDefault(),this.props.clickHandler(E)}},{key:"render",value:function(){for(var E=this.props,Pe=E.onMouseEnter,ye=E.onMouseOver,we=E.onMouseLeave,ze=E.infinite,ut=E.slidesToScroll,Pt=E.slidesToShow,Vt=E.slideCount,Ut=E.currentSlide,mn=ie({slideCount:Vt,slidesToScroll:ut,slidesToShow:Pt,infinite:ze}),Re={onMouseEnter:Pe,onMouseOver:ye,onMouseLeave:we},_e=[],Ve=0;Ve<mn;Ve++){var et=(Ve+1)*ut-1,dt=ze?et:B(et,0,Vt-1),Et=dt-(ut-1),tt=ze?Et:B(Et,0,Vt-1),nt=V()({"slick-active":ze?Ut>=tt&&Ut<=dt:Ut===tt}),_t={message:"dots",index:Ve,slidesToScroll:ut,currentSlide:Ut},Ct=this.clickHandler.bind(this,_t);_e=_e.concat(p.createElement("li",{key:Ve,className:nt},p.cloneElement(this.props.customPaging(Ve),{onClick:Ct})))}return p.cloneElement(this.props.appendDots(_e),(0,oe.Z)({className:this.props.dotsClass},Re))}}])}(p.PureComponent);function xe(Le,_,j){return _=(0,le.Z)(_),(0,d.Z)(Le,(0,ge.Z)()?Reflect.construct(_,j||[],(0,le.Z)(Le).constructor):_.apply(Le,j))}var Ue=function(Le){function _(){return(0,me.Z)(this,_),xe(this,_,arguments)}return(0,o.Z)(_,Le),(0,O.Z)(_,[{key:"clickHandler",value:function(E,Pe){Pe&&Pe.preventDefault(),this.props.clickHandler(E,Pe)}},{key:"render",value:function(){var E={"slick-arrow":!0,"slick-prev":!0},Pe=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(E["slick-disabled"]=!0,Pe=null);var ye={key:"0","data-role":"none",className:V()(E),style:{display:"block"},onClick:Pe},we={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},ze;return this.props.prevArrow?ze=p.cloneElement(this.props.prevArrow,(0,oe.Z)((0,oe.Z)({},ye),we)):ze=p.createElement("button",(0,fe.Z)({key:"0",type:"button"},ye)," ","Previous"),ze}}])}(p.PureComponent),Ze=function(Le){function _(){return(0,me.Z)(this,_),xe(this,_,arguments)}return(0,o.Z)(_,Le),(0,O.Z)(_,[{key:"clickHandler",value:function(E,Pe){Pe&&Pe.preventDefault(),this.props.clickHandler(E,Pe)}},{key:"render",value:function(){var E={"slick-arrow":!0,"slick-next":!0},Pe=this.clickHandler.bind(this,{message:"next"});P(this.props)||(E["slick-disabled"]=!0,Pe=null);var ye={key:"1","data-role":"none",className:V()(E),style:{display:"block"},onClick:Pe},we={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},ze;return this.props.nextArrow?ze=p.cloneElement(this.props.nextArrow,(0,oe.Z)((0,oe.Z)({},ye),we)):ze=p.createElement("button",(0,fe.Z)({key:"1",type:"button"},ye)," ","Next"),ze}}])}(p.PureComponent),$e=w(76374),at=["animating"];function ve(Le,_,j){return _=(0,le.Z)(_),(0,d.Z)(Le,(0,ge.Z)()?Reflect.construct(_,j||[],(0,le.Z)(Le).constructor):_.apply(Le,j))}var De=function(Le){function _(j){var E;(0,me.Z)(this,_),E=ve(this,_,[j]),(0,b.Z)(E,"listRefHandler",function(ye){return E.list=ye}),(0,b.Z)(E,"trackRefHandler",function(ye){return E.track=ye}),(0,b.Z)(E,"adaptHeight",function(){if(E.props.adaptiveHeight&&E.list){var ye=E.list.querySelector('[data-index="'.concat(E.state.currentSlide,'"]'));E.list.style.height=Oe(ye)+"px"}}),(0,b.Z)(E,"componentDidMount",function(){if(E.props.onInit&&E.props.onInit(),E.props.lazyLoad){var ye=S((0,oe.Z)((0,oe.Z)({},E.props),E.state));ye.length>0&&(E.setState(function(ze){return{lazyLoadedList:ze.lazyLoadedList.concat(ye)}}),E.props.onLazyLoad&&E.props.onLazyLoad(ye))}var we=(0,oe.Z)({listRef:E.list,trackRef:E.track},E.props);E.updateState(we,!0,function(){E.adaptHeight(),E.props.autoplay&&E.autoPlay("playing")}),E.props.lazyLoad==="progressive"&&(E.lazyLoadTimer=setInterval(E.progressiveLazyLoad,1e3)),E.ro=new $e.Z(function(){E.state.animating?(E.onWindowResized(!1),E.callbackTimers.push(setTimeout(function(){return E.onWindowResized()},E.props.speed))):E.onWindowResized()}),E.ro.observe(E.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(ze){ze.onfocus=E.props.pauseOnFocus?E.onSlideFocus:null,ze.onblur=E.props.pauseOnFocus?E.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",E.onWindowResized):window.attachEvent("onresize",E.onWindowResized)}),(0,b.Z)(E,"componentWillUnmount",function(){E.animationEndCallback&&clearTimeout(E.animationEndCallback),E.lazyLoadTimer&&clearInterval(E.lazyLoadTimer),E.callbackTimers.length&&(E.callbackTimers.forEach(function(ye){return clearTimeout(ye)}),E.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",E.onWindowResized):window.detachEvent("onresize",E.onWindowResized),E.autoplayTimer&&clearInterval(E.autoplayTimer),E.ro.disconnect()}),(0,b.Z)(E,"componentDidUpdate",function(ye){if(E.checkImagesLoad(),E.props.onReInit&&E.props.onReInit(),E.props.lazyLoad){var we=S((0,oe.Z)((0,oe.Z)({},E.props),E.state));we.length>0&&(E.setState(function(Pt){return{lazyLoadedList:Pt.lazyLoadedList.concat(we)}}),E.props.onLazyLoad&&E.props.onLazyLoad(we))}E.adaptHeight();var ze=(0,oe.Z)((0,oe.Z)({listRef:E.list,trackRef:E.track},E.props),E.state),ut=E.didPropsChange(ye);ut&&E.updateState(ze,ut,function(){E.state.currentSlide>=p.Children.count(E.props.children)&&E.changeSlide({message:"index",index:p.Children.count(E.props.children)-E.props.slidesToShow,currentSlide:E.state.currentSlide}),(ye.autoplay!==E.props.autoplay||ye.autoplaySpeed!==E.props.autoplaySpeed)&&(!ye.autoplay&&E.props.autoplay?E.autoPlay("playing"):E.props.autoplay?E.autoPlay("update"):E.pause("paused"))})}),(0,b.Z)(E,"onWindowResized",function(ye){E.debouncedResize&&E.debouncedResize.cancel(),E.debouncedResize=(0,L.D)(50,function(){return E.resizeWindow(ye)}),E.debouncedResize()}),(0,b.Z)(E,"resizeWindow",function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,we=!!(E.track&&E.track.node);if(we){var ze=(0,oe.Z)((0,oe.Z)({listRef:E.list,trackRef:E.track},E.props),E.state);E.updateState(ze,ye,function(){E.props.autoplay?E.autoPlay("update"):E.pause("paused")}),E.setState({animating:!1}),clearTimeout(E.animationEndCallback),delete E.animationEndCallback}}),(0,b.Z)(E,"updateState",function(ye,we,ze){var ut=q(ye);ye=(0,oe.Z)((0,oe.Z)((0,oe.Z)({},ye),ut),{},{slideIndex:ut.currentSlide});var Pt=ke(ye);ye=(0,oe.Z)((0,oe.Z)({},ye),{},{left:Pt});var Vt=$t(ye);(we||p.Children.count(E.props.children)!==p.Children.count(ye.children))&&(ut.trackStyle=Vt),E.setState(ut,ze)}),(0,b.Z)(E,"ssrInit",function(){if(E.props.variableWidth){var ye=0,we=0,ze=[],ut=Bt((0,oe.Z)((0,oe.Z)((0,oe.Z)({},E.props),E.state),{},{slideCount:E.props.children.length})),Pt=xn((0,oe.Z)((0,oe.Z)((0,oe.Z)({},E.props),E.state),{},{slideCount:E.props.children.length}));E.props.children.forEach(function(Ct){ze.push(Ct.props.style.width),ye+=Ct.props.style.width});for(var Vt=0;Vt<ut;Vt++)we+=ze[ze.length-1-Vt],ye+=ze[ze.length-1-Vt];for(var Ut=0;Ut<Pt;Ut++)ye+=ze[Ut];for(var mn=0;mn<E.state.currentSlide;mn++)we+=ze[mn];var Re={width:ye+"px",left:-we+"px"};if(E.props.centerMode){var _e="".concat(ze[E.state.currentSlide],"px");Re.left="calc(".concat(Re.left," + (100% - ").concat(_e,") / 2 ) ")}return{trackStyle:Re}}var Ve=p.Children.count(E.props.children),et=(0,oe.Z)((0,oe.Z)((0,oe.Z)({},E.props),E.state),{},{slideCount:Ve}),dt=Bt(et)+xn(et)+Ve,Et=100/E.props.slidesToShow*dt,tt=100/dt,nt=-tt*(Bt(et)+E.state.currentSlide)*Et/100;E.props.centerMode&&(nt+=(100-tt*Et/100)/2);var _t={width:Et+"%",left:nt+"%"};return{slideWidth:tt+"%",trackStyle:_t}}),(0,b.Z)(E,"checkImagesLoad",function(){var ye=E.list&&E.list.querySelectorAll&&E.list.querySelectorAll(".slick-slide img")||[],we=ye.length,ze=0;Array.prototype.forEach.call(ye,function(ut){var Pt=function(){return++ze&&ze>=we&&E.onWindowResized()};if(!ut.onclick)ut.onclick=function(){return ut.parentNode.focus()};else{var Vt=ut.onclick;ut.onclick=function(Ut){Vt(Ut),ut.parentNode.focus()}}ut.onload||(E.props.lazyLoad?ut.onload=function(){E.adaptHeight(),E.callbackTimers.push(setTimeout(E.onWindowResized,E.props.speed))}:(ut.onload=Pt,ut.onerror=function(){Pt(),E.props.onLazyLoadError&&E.props.onLazyLoadError()}))})}),(0,b.Z)(E,"progressiveLazyLoad",function(){for(var ye=[],we=(0,oe.Z)((0,oe.Z)({},E.props),E.state),ze=E.state.currentSlide;ze<E.state.slideCount+xn(we);ze++)if(E.state.lazyLoadedList.indexOf(ze)<0){ye.push(ze);break}for(var ut=E.state.currentSlide-1;ut>=-Bt(we);ut--)if(E.state.lazyLoadedList.indexOf(ut)<0){ye.push(ut);break}ye.length>0?(E.setState(function(Pt){return{lazyLoadedList:Pt.lazyLoadedList.concat(ye)}}),E.props.onLazyLoad&&E.props.onLazyLoad(ye)):E.lazyLoadTimer&&(clearInterval(E.lazyLoadTimer),delete E.lazyLoadTimer)}),(0,b.Z)(E,"slideHandler",function(ye){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ze=E.props,ut=ze.asNavFor,Pt=ze.beforeChange,Vt=ze.onLazyLoad,Ut=ze.speed,mn=ze.afterChange,Re=E.state.currentSlide,_e=re((0,oe.Z)((0,oe.Z)((0,oe.Z)({index:ye},E.props),E.state),{},{trackRef:E.track,useCSS:E.props.useCSS&&!we})),Ve=_e.state,et=_e.nextState;if(Ve){Pt&&Pt(Re,Ve.currentSlide);var dt=Ve.lazyLoadedList.filter(function(Et){return E.state.lazyLoadedList.indexOf(Et)<0});Vt&&dt.length>0&&Vt(dt),!E.props.waitForAnimate&&E.animationEndCallback&&(clearTimeout(E.animationEndCallback),mn&&mn(Re),delete E.animationEndCallback),E.setState(Ve,function(){ut&&E.asNavForIndex!==ye&&(E.asNavForIndex=ye,ut.innerSlider.slideHandler(ye)),et&&(E.animationEndCallback=setTimeout(function(){var Et=et.animating,tt=(0,m.Z)(et,at);E.setState(tt,function(){E.callbackTimers.push(setTimeout(function(){return E.setState({animating:Et})},10)),mn&&mn(Ve.currentSlide),delete E.animationEndCallback})},Ut))})}}),(0,b.Z)(E,"changeSlide",function(ye){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ze=(0,oe.Z)((0,oe.Z)({},E.props),E.state),ut=J(ze,ye);if(!(ut!==0&&!ut)&&(we===!0?E.slideHandler(ut,we):E.slideHandler(ut),E.props.autoplay&&E.autoPlay("update"),E.props.focusOnSelect)){var Pt=E.list.querySelectorAll(".slick-current");Pt[0]&&Pt[0].focus()}}),(0,b.Z)(E,"clickHandler",function(ye){E.clickable===!1&&(ye.stopPropagation(),ye.preventDefault()),E.clickable=!0}),(0,b.Z)(E,"keyHandler",function(ye){var we=g(ye,E.props.accessibility,E.props.rtl);we!==""&&E.changeSlide({message:we})}),(0,b.Z)(E,"selectHandler",function(ye){E.changeSlide(ye)}),(0,b.Z)(E,"disableBodyScroll",function(){var ye=function(ze){ze=ze||window.event,ze.preventDefault&&ze.preventDefault(),ze.returnValue=!1};window.ontouchmove=ye}),(0,b.Z)(E,"enableBodyScroll",function(){window.ontouchmove=null}),(0,b.Z)(E,"swipeStart",function(ye){E.props.verticalSwiping&&E.disableBodyScroll();var we=v(ye,E.props.swipe,E.props.draggable);we!==""&&E.setState(we)}),(0,b.Z)(E,"swipeMove",function(ye){var we=Z(ye,(0,oe.Z)((0,oe.Z)((0,oe.Z)({},E.props),E.state),{},{trackRef:E.track,listRef:E.list,slideIndex:E.state.currentSlide}));we&&(we.swiping&&(E.clickable=!1),E.setState(we))}),(0,b.Z)(E,"swipeEnd",function(ye){var we=ce(ye,(0,oe.Z)((0,oe.Z)((0,oe.Z)({},E.props),E.state),{},{trackRef:E.track,listRef:E.list,slideIndex:E.state.currentSlide}));if(we){var ze=we.triggerSlideHandler;delete we.triggerSlideHandler,E.setState(we),ze!==void 0&&(E.slideHandler(ze),E.props.verticalSwiping&&E.enableBodyScroll())}}),(0,b.Z)(E,"touchEnd",function(ye){E.swipeEnd(ye),E.clickable=!0}),(0,b.Z)(E,"slickPrev",function(){E.callbackTimers.push(setTimeout(function(){return E.changeSlide({message:"previous"})},0))}),(0,b.Z)(E,"slickNext",function(){E.callbackTimers.push(setTimeout(function(){return E.changeSlide({message:"next"})},0))}),(0,b.Z)(E,"slickGoTo",function(ye){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ye=Number(ye),isNaN(ye))return"";E.callbackTimers.push(setTimeout(function(){return E.changeSlide({message:"index",index:ye,currentSlide:E.state.currentSlide},we)},0))}),(0,b.Z)(E,"play",function(){var ye;if(E.props.rtl)ye=E.state.currentSlide-E.props.slidesToScroll;else if(P((0,oe.Z)((0,oe.Z)({},E.props),E.state)))ye=E.state.currentSlide+E.props.slidesToScroll;else return!1;E.slideHandler(ye)}),(0,b.Z)(E,"autoPlay",function(ye){E.autoplayTimer&&clearInterval(E.autoplayTimer);var we=E.state.autoplaying;if(ye==="update"){if(we==="hovered"||we==="focused"||we==="paused")return}else if(ye==="leave"){if(we==="paused"||we==="focused")return}else if(ye==="blur"&&(we==="paused"||we==="hovered"))return;E.autoplayTimer=setInterval(E.play,E.props.autoplaySpeed+50),E.setState({autoplaying:"playing"})}),(0,b.Z)(E,"pause",function(ye){E.autoplayTimer&&(clearInterval(E.autoplayTimer),E.autoplayTimer=null);var we=E.state.autoplaying;ye==="paused"?E.setState({autoplaying:"paused"}):ye==="focused"?(we==="hovered"||we==="playing")&&E.setState({autoplaying:"focused"}):we==="playing"&&E.setState({autoplaying:"hovered"})}),(0,b.Z)(E,"onDotsOver",function(){return E.props.autoplay&&E.pause("hovered")}),(0,b.Z)(E,"onDotsLeave",function(){return E.props.autoplay&&E.state.autoplaying==="hovered"&&E.autoPlay("leave")}),(0,b.Z)(E,"onTrackOver",function(){return E.props.autoplay&&E.pause("hovered")}),(0,b.Z)(E,"onTrackLeave",function(){return E.props.autoplay&&E.state.autoplaying==="hovered"&&E.autoPlay("leave")}),(0,b.Z)(E,"onSlideFocus",function(){return E.props.autoplay&&E.pause("focused")}),(0,b.Z)(E,"onSlideBlur",function(){return E.props.autoplay&&E.state.autoplaying==="focused"&&E.autoPlay("blur")}),(0,b.Z)(E,"render",function(){var ye=V()("slick-slider",E.props.className,{"slick-vertical":E.props.vertical,"slick-initialized":!0}),we=(0,oe.Z)((0,oe.Z)({},E.props),E.state),ze=Q(we,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),ut=E.props.pauseOnHover;ze=(0,oe.Z)((0,oe.Z)({},ze),{},{onMouseEnter:ut?E.onTrackOver:null,onMouseLeave:ut?E.onTrackLeave:null,onMouseOver:ut?E.onTrackOver:null,focusOnSelect:E.props.focusOnSelect&&E.clickable?E.selectHandler:null});var Pt;if(E.props.dots===!0&&E.state.slideCount>=E.props.slidesToShow){var Vt=Q(we,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),Ut=E.props.pauseOnDotsHover;Vt=(0,oe.Z)((0,oe.Z)({},Vt),{},{clickHandler:E.changeSlide,onMouseEnter:Ut?E.onDotsLeave:null,onMouseOver:Ut?E.onDotsOver:null,onMouseLeave:Ut?E.onDotsLeave:null}),Pt=p.createElement(Te,Vt)}var mn,Re,_e=Q(we,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);_e.clickHandler=E.changeSlide,E.props.arrows&&(mn=p.createElement(Ue,_e),Re=p.createElement(Ze,_e));var Ve=null;E.props.vertical&&(Ve={height:E.state.listHeight});var et=null;E.props.vertical===!1?E.props.centerMode===!0&&(et={padding:"0px "+E.props.centerPadding}):E.props.centerMode===!0&&(et={padding:E.props.centerPadding+" 0px"});var dt=(0,oe.Z)((0,oe.Z)({},Ve),et),Et=E.props.touchMove,tt={className:"slick-list",style:dt,onClick:E.clickHandler,onMouseDown:Et?E.swipeStart:null,onMouseMove:E.state.dragging&&Et?E.swipeMove:null,onMouseUp:Et?E.swipeEnd:null,onMouseLeave:E.state.dragging&&Et?E.swipeEnd:null,onTouchStart:Et?E.swipeStart:null,onTouchMove:E.state.dragging&&Et?E.swipeMove:null,onTouchEnd:Et?E.touchEnd:null,onTouchCancel:E.state.dragging&&Et?E.swipeEnd:null,onKeyDown:E.props.accessibility?E.keyHandler:null},nt={className:ye,dir:"ltr",style:E.props.style};return E.props.unslick&&(tt={className:"slick-list"},nt={className:ye,style:E.props.style}),p.createElement("div",nt,E.props.unslick?"":mn,p.createElement("div",(0,fe.Z)({ref:E.listRefHandler},tt),p.createElement(z,(0,fe.Z)({ref:E.trackRefHandler},ze),E.props.children)),E.props.unslick?"":Re,E.props.unslick?"":Pt)}),E.list=null,E.track=null,E.state=(0,oe.Z)((0,oe.Z)({},x),{},{currentSlide:E.props.initialSlide,targetSlide:E.props.initialSlide?E.props.initialSlide:0,slideCount:p.Children.count(E.props.children)}),E.callbackTimers=[],E.clickable=!0,E.debouncedResize=null;var Pe=E.ssrInit();return E.state=(0,oe.Z)((0,oe.Z)({},E.state),Pe),E}return(0,o.Z)(_,Le),(0,O.Z)(_,[{key:"didPropsChange",value:function(E){for(var Pe=!1,ye=0,we=Object.keys(this.props);ye<we.length;ye++){var ze=we[ye];if(!E.hasOwnProperty(ze)){Pe=!0;break}if(!((0,T.Z)(E[ze])==="object"||typeof E[ze]=="function"||isNaN(E[ze]))&&E[ze]!==this.props[ze]){Pe=!0;break}}return Pe||p.Children.count(this.props.children)!==p.Children.count(E.children)}}])}(p.Component),ot=w(7861),Je=w.n(ot);function He(Le,_,j){return _=(0,le.Z)(_),(0,d.Z)(Le,(0,ge.Z)()?Reflect.construct(_,j||[],(0,le.Z)(Le).constructor):_.apply(Le,j))}var gt=function(Le){function _(j){var E;return(0,me.Z)(this,_),E=He(this,_,[j]),(0,b.Z)(E,"innerSliderRefHandler",function(Pe){return E.innerSlider=Pe}),(0,b.Z)(E,"slickPrev",function(){return E.innerSlider.slickPrev()}),(0,b.Z)(E,"slickNext",function(){return E.innerSlider.slickNext()}),(0,b.Z)(E,"slickGoTo",function(Pe){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return E.innerSlider.slickGoTo(Pe,ye)}),(0,b.Z)(E,"slickPause",function(){return E.innerSlider.pause("paused")}),(0,b.Z)(E,"slickPlay",function(){return E.innerSlider.autoPlay("play")}),E.state={breakpoint:null},E._responsiveMediaHandlers=[],E}return(0,o.Z)(_,Le),(0,O.Z)(_,[{key:"media",value:function(E,Pe){var ye=window.matchMedia(E),we=function(ut){var Pt=ut.matches;Pt&&Pe()};ye.addListener(we),we(ye),this._responsiveMediaHandlers.push({mql:ye,query:E,listener:we})}},{key:"componentDidMount",value:function(){var E=this;if(this.props.responsive){var Pe=this.props.responsive.map(function(we){return we.breakpoint});Pe.sort(function(we,ze){return we-ze}),Pe.forEach(function(we,ze){var ut;ze===0?ut=Je()({minWidth:0,maxWidth:we}):ut=Je()({minWidth:Pe[ze-1]+1,maxWidth:we}),be()&&E.media(ut,function(){E.setState({breakpoint:we})})});var ye=Je()({minWidth:Pe.slice(-1)[0]});be()&&this.media(ye,function(){E.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(E){E.mql.removeListener(E.listener)})}},{key:"render",value:function(){var E=this,Pe,ye;this.state.breakpoint?(ye=this.props.responsive.filter(function(Ve){return Ve.breakpoint===E.state.breakpoint}),Pe=ye[0].settings==="unslick"?"unslick":(0,oe.Z)((0,oe.Z)((0,oe.Z)({},N),this.props),ye[0].settings)):Pe=(0,oe.Z)((0,oe.Z)({},N),this.props),Pe.centerMode&&(Pe.slidesToScroll>1,Pe.slidesToScroll=1),Pe.fade&&(Pe.slidesToShow>1,Pe.slidesToScroll>1,Pe.slidesToShow=1,Pe.slidesToScroll=1);var we=p.Children.toArray(this.props.children);we=we.filter(function(Ve){return typeof Ve=="string"?!!Ve.trim():!!Ve}),Pe.variableWidth&&(Pe.rows>1||Pe.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),Pe.variableWidth=!1);for(var ze=[],ut=null,Pt=0;Pt<we.length;Pt+=Pe.rows*Pe.slidesPerRow){for(var Vt=[],Ut=Pt;Ut<Pt+Pe.rows*Pe.slidesPerRow;Ut+=Pe.slidesPerRow){for(var mn=[],Re=Ut;Re<Ut+Pe.slidesPerRow&&(Pe.variableWidth&&we[Re].props.style&&(ut=we[Re].props.style.width),!(Re>=we.length));Re+=1)mn.push(p.cloneElement(we[Re],{key:100*Pt+10*Ut+Re,tabIndex:-1,style:{width:"".concat(100/Pe.slidesPerRow,"%"),display:"inline-block"}}));Vt.push(p.createElement("div",{key:10*Pt+Ut},mn))}Pe.variableWidth?ze.push(p.createElement("div",{key:Pt,style:{width:ut}},Vt)):ze.push(p.createElement("div",{key:Pt},Vt))}if(Pe==="unslick"){var _e="regular slider "+(this.props.className||"");return p.createElement("div",{className:_e},we)}else ze.length<=Pe.slidesToShow&&!Pe.infinite&&(Pe.unslick=!0);return p.createElement(De,(0,fe.Z)({style:this.props.style,ref:this.innerSliderRefHandler},Ce(Pe)),ze)}}])}(p.Component),Rt=gt,st=w(48755),Kt=w(93083),cn=w(63356),At=w(16931);const Xt="--dot-duration",Fe=Le=>{const{componentCls:_,antCls:j}=Le;return{[_]:Object.assign(Object.assign({},(0,cn.Wf)(Le)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${j}-radio-input, input${j}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${j}-radio-input, input${j}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},Ne=Le=>{const{componentCls:_,motionDurationSlow:j,arrowSize:E,arrowOffset:Pe}=Le,ye=Le.calc(E).div(Math.SQRT2).equal();return{[_]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:E,height:E,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${j}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:Le.calc(E).sub(ye).div(2).equal(),insetInlineStart:Le.calc(E).sub(ye).div(2).equal(),display:"inline-block",width:ye,height:ye,border:"0 solid currentcolor",borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:Pe,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:Pe,"&::after":{transform:"rotate(135deg)"}}}}},Me=Le=>{const{componentCls:_,dotOffset:j,dotWidth:E,dotHeight:Pe,dotGap:ye,colorBgContainer:we,motionDurationSlow:ze}=Le;return{[_]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:j},"&-top":{top:j,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:E,height:Pe,marginInline:ye,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${ze}`,borderRadius:Pe,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:"100%",height:Pe,content:'""',background:we,borderRadius:Pe,opacity:1,outline:"none",cursor:"pointer",overflow:"hidden",transform:"translate3d(-100%, 0, 0)"},button:{position:"relative",display:"block",width:"100%",height:Pe,padding:0,color:"transparent",fontSize:0,background:we,border:0,borderRadius:Pe,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${ze}`,overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:Le.calc(ye).mul(-1).equal(),content:'""'}},"&.slick-active":{width:Le.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{transform:"translate3d(0, 0, 0)",transition:`transform var(${Xt}) ease-out`}}}}}}},I=Le=>{const{componentCls:_,dotOffset:j,arrowOffset:E,marginXXS:Pe}=Le,ye={width:Le.dotHeight,height:Le.dotWidth};return{[`${_}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:E,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:E,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:Le.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:j},"&-right":{insetInlineEnd:j,insetInlineStart:"auto"},li:Object.assign(Object.assign({},ye),{margin:`${(0,Kt.unit)(Pe)} 0`,verticalAlign:"baseline",button:ye,"&::after":Object.assign(Object.assign({},ye),{height:0}),"&.slick-active":Object.assign(Object.assign({},ye),{button:ye,"&::after":Object.assign(Object.assign({},ye),{transition:`height var(${Xt}) ease-out`})})})}}}},ae=Le=>{const{componentCls:_}=Le;return[{[`${_}-rtl`]:{direction:"rtl",".slick-dots":{[`${_}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${_}-vertical`]:{".slick-dots":{[`${_}-rtl&`]:{flexDirection:"column"}}}}]},de=Le=>({arrowSize:16,arrowOffset:Le.marginXS,dotWidth:16,dotHeight:3,dotGap:Le.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24});var se=(0,At.I$)("Carousel",Le=>[Fe(Le),Ne(Le),Me(Le),I(Le),ae(Le)],de,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),Se=function(Le,_){var j={};for(var E in Le)Object.prototype.hasOwnProperty.call(Le,E)&&_.indexOf(E)<0&&(j[E]=Le[E]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,E=Object.getOwnPropertySymbols(Le);Pe<E.length;Pe++)_.indexOf(E[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Le,E[Pe])&&(j[E[Pe]]=Le[E[Pe]]);return j};const Mt="slick-dots",It=Le=>{var{currentSlide:_,slideCount:j}=Le,E=Se(Le,["currentSlide","slideCount"]);return p.createElement("button",Object.assign({type:"button"},E))};var fn=p.forwardRef((Le,_)=>{const{dots:j=!0,arrows:E=!1,prevArrow:Pe=p.createElement(It,{"aria-label":"prev"}),nextArrow:ye=p.createElement(It,{"aria-label":"next"}),draggable:we=!1,waitForAnimate:ze=!1,dotPosition:ut="bottom",vertical:Pt=ut==="left"||ut==="right",rootClassName:Vt,className:Ut,style:mn,id:Re,autoplay:_e=!1,autoplaySpeed:Ve=3e3}=Le,et=Se(Le,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id","autoplay","autoplaySpeed"]),{getPrefixCls:dt,direction:Et,className:tt,style:nt}=(0,st.dj)("carousel"),_t=p.useRef(null),Ct=function(rn){let hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;_t.current.slickGoTo(rn,hn)};p.useImperativeHandle(_,()=>({goTo:Ct,autoPlay:_t.current.innerSlider.autoPlay,innerSlider:_t.current.innerSlider,prev:_t.current.slickPrev,next:_t.current.slickNext}),[_t.current]);const pn=p.useRef(p.Children.count(Le.children));p.useEffect(()=>{pn.current!==p.Children.count(Le.children)&&(Ct(Le.initialSlide||0,!1),pn.current=p.Children.count(Le.children))},[Le.children]);const _n=Object.assign({vertical:Pt,className:V()(Ut,tt),style:Object.assign(Object.assign({},nt),mn),autoplay:!!_e},et);_n.effect==="fade"&&(_n.fade=!0);const an=dt("carousel",_n.prefixCls),zt=!!j,Ie=V()(Mt,`${Mt}-${ut}`,typeof j=="boolean"?!1:j==null?void 0:j.className),[qe,ft,ht]=se(an),Gt=V()(an,{[`${an}-rtl`]:Et==="rtl",[`${an}-vertical`]:_n.vertical},ft,ht,Vt),Wt=_e&&(typeof _e=="object"?_e.dotDuration:!1)?{[Xt]:`${Ve}ms`}:{};return qe(p.createElement("div",{className:Gt,id:Re,style:Wt},p.createElement(Rt,Object.assign({ref:_t},_n,{dots:zt,dotsClass:Ie,arrows:E,prevArrow:Pe,nextArrow:ye,draggable:we,verticalSwiping:Pt,autoplaySpeed:Ve,waitForAnimate:ze}))))})},64018:function(){var Ln,jt,w,p=!1,fe,oe;window.PR_SHOULD_USE_CONTINUATION=!0;var me,O;(function(){var d=window,ge=["break,continue,do,else,for,if,return,while"],le=[ge,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],o=[le,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],b=[o,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],T=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],m=[o,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],y="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",x=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],L="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",U=[ge,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],V=[ge,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],te=[ge,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],N=[b,m,T,x,L,U,V,te],B=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,R="str",S="kwd",$="com",ee="typ",W="lit",ne="pun",ue="pln",he="tag",Oe="dec",G="src",P="atn",Q="atv",q="nocode",re="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function J(be){for(var M=0,Ce=!1,Ge=!1,K=0,k=be.length;K<k;++K){var F=be[K];if(F.ignoreCase)Ge=!0;else if(/[a-z]/i.test(F.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Ce=!0,Ge=!1;break}}var pe={b:8,t:9,n:10,v:11,f:12,r:13};function z(Ue){var Ze=Ue.charCodeAt(0);if(Ze!==92)return Ze;var $e=Ue.charAt(1);return Ze=pe[$e],Ze||("0"<=$e&&$e<="7"?parseInt(Ue.substring(1),8):$e==="u"||$e==="x"?parseInt(Ue.substring(2),16):Ue.charCodeAt(1))}function Y(Ue){if(Ue<32)return(Ue<16?"\\x0":"\\x")+Ue.toString(16);var Ze=String.fromCharCode(Ue);return Ze==="\\"||Ze==="-"||Ze==="]"||Ze==="^"?"\\"+Ze:Ze}function ie(Ue){var Ze=Ue.substring(1,Ue.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),$e=[],at=Ze[0]==="^",ve=["["];at&&ve.push("^");for(var De=at?1:0,ot=Ze.length;De<ot;++De){var Je=Ze[De];if(/\\[bdsw]/i.test(Je))ve.push(Je);else{var He=z(Je),gt;De+2<ot&&Ze[De+1]==="-"?(gt=z(Ze[De+2]),De+=2):gt=He,$e.push([He,gt]),gt<65||He>122||(gt<65||He>90||$e.push([Math.max(65,He)|32,Math.min(gt,90)|32]),gt<97||He>122||$e.push([Math.max(97,He)&-33,Math.min(gt,122)&-33]))}}$e.sort(function(cn,At){return cn[0]-At[0]||At[1]-cn[1]});for(var Rt=[],st=[],De=0;De<$e.length;++De){var Kt=$e[De];Kt[0]<=st[1]+1?st[1]=Math.max(st[1],Kt[1]):Rt.push(st=Kt)}for(var De=0;De<Rt.length;++De){var Kt=Rt[De];ve.push(Y(Kt[0])),Kt[1]>Kt[0]&&(Kt[1]+1>Kt[0]&&ve.push("-"),ve.push(Y(Kt[1])))}return ve.push("]"),ve.join("")}function Te(Ue){for(var Ze=Ue.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),$e=Ze.length,at=[],ve=0,De=0;ve<$e;++ve){var ot=Ze[ve];if(ot==="(")++De;else if(ot.charAt(0)==="\\"){var Je=+ot.substring(1);Je&&(Je<=De?at[Je]=-1:Ze[ve]=Y(Je))}}for(var ve=1;ve<at.length;++ve)at[ve]===-1&&(at[ve]=++M);for(var ve=0,De=0;ve<$e;++ve){var ot=Ze[ve];if(ot==="(")++De,at[De]||(Ze[ve]="(?:");else if(ot.charAt(0)==="\\"){var Je=+ot.substring(1);Je&&Je<=De&&(Ze[ve]="\\"+at[Je])}}for(var ve=0;ve<$e;++ve)Ze[ve]==="^"&&Ze[ve+1]!=="^"&&(Ze[ve]="");if(Ue.ignoreCase&&Ce)for(var ve=0;ve<$e;++ve){var ot=Ze[ve],He=ot.charAt(0);ot.length>=2&&He==="["?Ze[ve]=ie(ot):He!=="\\"&&(Ze[ve]=ot.replace(/[a-zA-Z]/g,function(st){var Kt=st.charCodeAt(0);return"["+String.fromCharCode(Kt&-33,Kt|32)+"]"}))}return Ze.join("")}for(var xe=[],K=0,k=be.length;K<k;++K){var F=be[K];if(F.global||F.multiline)throw new Error(""+F);xe.push("(?:"+Te(F)+")")}return new RegExp(xe.join("|"),Ge?"gi":"g")}function g(be,M){var Ce=/(?:^|\s)nocode(?:\s|$)/,Ge=[],K=0,k=[],F=0;function pe(z){var Y=z.nodeType;if(Y==1){if(Ce.test(z.className))return;for(var ie=z.firstChild;ie;ie=ie.nextSibling)pe(ie);var Te=z.nodeName.toLowerCase();(Te==="br"||Te==="li")&&(Ge[F]=`
|
|
`,k[F<<1]=K++,k[F++<<1|1]=z)}else if(Y==3||Y==4){var xe=z.nodeValue;xe.length&&(M?xe=xe.replace(/\r\n?/g,`
|
|
`):xe=xe.replace(/[ \t\r\n]+/g," "),Ge[F]=xe,k[F<<1]=K,K+=xe.length,k[F++<<1|1]=z)}}return pe(be),{sourceCode:Ge.join("").replace(/\n$/,""),spans:k}}function v(be,M,Ce,Ge,K){if(Ce){var k={sourceNode:be,pre:1,langExtension:null,numberLines:null,sourceCode:Ce,spans:null,basePos:M,decorations:null};Ge(k),K.push.apply(K,k.decorations)}}var Z=/\S/;function ce(be){for(var M=void 0,Ce=be.firstChild;Ce;Ce=Ce.nextSibling){var Ge=Ce.nodeType;M=Ge===1?M?be:Ce:Ge===3&&Z.test(Ce.nodeValue)?be:M}return M===be?void 0:M}function Xe(be,M){var Ce={},Ge;(function(){for(var F=be.concat(M),pe=[],z={},Y=0,ie=F.length;Y<ie;++Y){var Te=F[Y],xe=Te[3];if(xe)for(var Ue=xe.length;--Ue>=0;)Ce[xe.charAt(Ue)]=Te;var Ze=Te[1],$e=""+Ze;z.hasOwnProperty($e)||(pe.push(Ze),z[$e]=null)}pe.push(/[\0-\uffff]/),Ge=J(pe)})();var K=M.length,k=function(F){for(var pe=F.sourceCode,z=F.basePos,Y=F.sourceNode,ie=[z,ue],Te=0,xe=pe.match(Ge)||[],Ue={},Ze=0,$e=xe.length;Ze<$e;++Ze){var at=xe[Ze],ve=Ue[at],De=void 0,ot;if(typeof ve=="string")ot=!1;else{var Je=Ce[at.charAt(0)];if(Je)De=at.match(Je[1]),ve=Je[0];else{for(var He=0;He<K;++He)if(Je=M[He],De=at.match(Je[1]),De){ve=Je[0];break}De||(ve=ue)}ot=ve.length>=5&&ve.substring(0,5)==="lang-",ot&&!(De&&typeof De[1]=="string")&&(ot=!1,ve=G),ot||(Ue[at]=ve)}var gt=Te;if(Te+=at.length,!ot)ie.push(z+gt,ve);else{var Rt=De[1],st=at.indexOf(Rt),Kt=st+Rt.length;De[2]&&(Kt=at.length-De[2].length,st=Kt-Rt.length);var cn=ve.substring(5);v(Y,z+gt,at.substring(0,st),k,ie),v(Y,z+gt+st,Rt,Bt(cn,Rt),ie),v(Y,z+gt+Kt,at.substring(Kt),k,ie)}}F.decorations=ie};return k}function We(be){var M=[],Ce=[];be.tripleQuotedStrings?M.push([R,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):be.multiLineStrings?M.push([R,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):M.push([R,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),be.verbatimStrings&&Ce.push([R,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Ge=be.hashComments;Ge&&(be.cStyleComments?(Ge>1?M.push([$,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):M.push([$,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Ce.push([R,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):M.push([$,/^#[^\r\n]*/,null,"#"])),be.cStyleComments&&(Ce.push([$,/^\/\/[^\r\n]*/,null]),Ce.push([$,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var K=be.regexLiterals;if(K){var k=K>1?"":`
|
|
\r`,F=k?".":"[\\S\\s]",pe="/(?=[^/*"+k+"])(?:[^/\\x5B\\x5C"+k+"]|\\x5C"+F+"|\\x5B(?:[^\\x5C\\x5D"+k+"]|\\x5C"+F+")*(?:\\x5D|$))+/";Ce.push(["lang-regex",RegExp("^"+re+"("+pe+")")])}var z=be.types;z&&Ce.push([ee,z]);var Y=(""+be.keywords).replace(/^ | $/g,"");Y.length&&Ce.push([S,new RegExp("^(?:"+Y.replace(/[\s,]+/g,"|")+")\\b"),null]),M.push([ue,/^\s+/,null,` \r
|
|
\xA0`]);var ie="^.[^\\s\\w.$@'\"`/\\\\]*";return be.regexLiterals&&(ie+="(?!s*/)"),Ce.push([W,/^@[a-z_$][a-z_$@0-9]*/i,null],[ee,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[ue,/^[a-z_$][a-z_$@0-9]*/i,null],[W,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[ue,/^\\[\s\S]?/,null],[ne,new RegExp(ie),null]),Xe(M,Ce)}var Dt=We({keywords:N,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function vt(be,M,Ce){for(var Ge=/(?:^|\s)nocode(?:\s|$)/,K=/\r\n?|\n/,k=be.ownerDocument,F=k.createElement("li");be.firstChild;)F.appendChild(be.firstChild);var pe=[F];function z(Ze){var $e=Ze.nodeType;if($e==1&&!Ge.test(Ze.className))if(Ze.nodeName==="br")Y(Ze),Ze.parentNode&&Ze.parentNode.removeChild(Ze);else for(var at=Ze.firstChild;at;at=at.nextSibling)z(at);else if(($e==3||$e==4)&&Ce){var ve=Ze.nodeValue,De=ve.match(K);if(De){var ot=ve.substring(0,De.index);Ze.nodeValue=ot;var Je=ve.substring(De.index+De[0].length);if(Je){var He=Ze.parentNode;He.insertBefore(k.createTextNode(Je),Ze.nextSibling)}Y(Ze),ot||Ze.parentNode.removeChild(Ze)}}}function Y(Ze){for(;!Ze.nextSibling;)if(Ze=Ze.parentNode,!Ze)return;function $e(De,ot){var Je=ot?De.cloneNode(!1):De,He=De.parentNode;if(He){var gt=$e(He,1),Rt=De.nextSibling;gt.appendChild(Je);for(var st=Rt;st;st=Rt)Rt=st.nextSibling,gt.appendChild(st)}return Je}for(var at=$e(Ze.nextSibling,0),ve;(ve=at.parentNode)&&ve.nodeType===1;)at=ve;pe.push(at)}for(var ie=0;ie<pe.length;++ie)z(pe[ie]);M===(M|0)&&pe[0].setAttribute("value",M);var Te=k.createElement("ol");Te.className="linenums";for(var xe=Math.max(0,M-1|0)||0,ie=0,Ue=pe.length;ie<Ue;++ie)F=pe[ie],F.className="L"+(ie+xe)%10,F.firstChild||F.appendChild(k.createTextNode("\xA0")),Te.appendChild(F);be.appendChild(Te)}function $t(be){var M=/\bMSIE\s(\d+)/.exec(navigator.userAgent);M=M&&+M[1]<=8;var Ce=/\n/g,Ge=be.sourceCode,K=Ge.length,k=0,F=be.spans,pe=F.length,z=0,Y=be.decorations,ie=Y.length,Te=0;Y[ie]=K;var xe,Ue;for(Ue=xe=0;Ue<ie;)Y[Ue]!==Y[Ue+2]?(Y[xe++]=Y[Ue++],Y[xe++]=Y[Ue++]):Ue+=2;for(ie=xe,Ue=xe=0;Ue<ie;){for(var Ze=Y[Ue],$e=Y[Ue+1],at=Ue+2;at+2<=ie&&Y[at+1]===$e;)at+=2;Y[xe++]=Ze,Y[xe++]=$e,Ue=at}ie=Y.length=xe;var ve=be.sourceNode,De="";ve&&(De=ve.style.display,ve.style.display="none");try{for(var ot=null;z<pe;){var Je=F[z],He=F[z+2]||K,gt=Y[Te+2]||K,at=Math.min(He,gt),Rt=F[z+1],st;if(Rt.nodeType!==1&&(st=Ge.substring(k,at))){M&&(st=st.replace(Ce,"\r")),Rt.nodeValue=st;var Kt=Rt.ownerDocument,cn=Kt.createElement("span");cn.className=Y[Te+1];var At=Rt.parentNode;At.replaceChild(cn,Rt),cn.appendChild(Rt),k<He&&(F[z+1]=Rt=Kt.createTextNode(Ge.substring(at,He)),At.insertBefore(Rt,cn.nextSibling))}k=at,k>=He&&(z+=2),k>=gt&&(Te+=2)}}finally{ve&&(ve.style.display=De)}}var Ht={};function ke(be,M){for(var Ce=M.length;--Ce>=0;){var Ge=M[Ce];Ht.hasOwnProperty(Ge)?d.console&&console.warn("cannot override language handler %s",Ge):Ht[Ge]=be}}function Bt(be,M){return be&&Ht.hasOwnProperty(be)||(be=/^\s*</.test(M)?"default-markup":"default-code"),Ht[be]}ke(Dt,["default-code"]),ke(Xe([],[[ue,/^[^<?]+/],[Oe,/^<!\w[^>]*(?:>|$)/],[$,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[ne,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),ke(Xe([[ue,/^[\s]+/,null,` \r
|
|
`],[Q,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[he,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[ne,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),ke(Xe([],[[Q,/^[\s\S]+/]]),["uq.val"]),ke(We({keywords:b,hashComments:!0,cStyleComments:!0,types:B}),["c","cc","cpp","cxx","cyc","m"]),ke(We({keywords:"null,true,false"}),["json"]),ke(We({keywords:m,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:B}),["cs"]),ke(We({keywords:T,cStyleComments:!0}),["java"]),ke(We({keywords:te,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ke(We({keywords:U,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ke(We({keywords:L,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ke(We({keywords:V,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ke(We({keywords:x,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ke(We({keywords:y,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ke(Xe([],[[R,/^[\s\S]+/]]),["regex"]);function xn(be){var M=be.langExtension;try{var Ce=g(be.sourceNode,be.pre),Ge=Ce.sourceCode;be.sourceCode=Ge,be.spans=Ce.spans,be.basePos=0,Bt(M,Ge)(be),$t(be)}catch(K){d.console&&console.log(K&&K.stack||K)}}function Yt(be,M,Ce){var Ge=Ce||!1,K=M||null,k=document.createElement("div");k.innerHTML="<pre>"+be+"</pre>",k=k.firstChild,Ge&&vt(k,Ge,!0);var F={langExtension:K,numberLines:Ge,sourceNode:k,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return xn(F),k.innerHTML}function ln(be,M){var Ce=M||document.body,Ge=Ce.ownerDocument||document;function K(Je){return Ce.getElementsByTagName(Je)}for(var k=[K("pre"),K("code"),K("xmp")],F=[],pe=0;pe<k.length;++pe)for(var z=0,Y=k[pe].length;z<Y;++z)F.push(k[pe][z]);k=null;var ie=Date;ie.now||(ie={now:function(){return+new Date}});var Te=0,xe=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ue=/\bprettyprint\b/,Ze=/\bprettyprinted\b/,$e=/pre|xmp/i,at=/^code$/i,ve=/^(?:pre|code|xmp)$/i,De={};function ot(){for(var Je=d.PR_SHOULD_USE_CONTINUATION?ie.now()+250:1/0;Te<F.length&&ie.now()<Je;Te++){for(var He=F[Te],gt=De,Rt=He;Rt=Rt.previousSibling;){var st=Rt.nodeType,Kt=(st===7||st===8)&&Rt.nodeValue;if(Kt?!/^\??prettify\b/.test(Kt):st!==3||/\S/.test(Rt.nodeValue))break;if(Kt){gt={},Kt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(It,Ft,fn){gt[Ft]=fn});break}}var cn=He.className;if((gt!==De||Ue.test(cn))&&!Ze.test(cn)){for(var At=!1,Xt=He.parentNode;Xt;Xt=Xt.parentNode){var Fe=Xt.tagName;if(ve.test(Fe)&&Xt.className&&Ue.test(Xt.className)){At=!0;break}}if(!At){He.className+=" prettyprinted";var Ne=gt.lang;if(!Ne){Ne=cn.match(xe);var Me;!Ne&&(Me=ce(He))&&at.test(Me.tagName)&&(Ne=Me.className.match(xe)),Ne&&(Ne=Ne[1])}var I;if($e.test(He.tagName))I=1;else{var ae=He.currentStyle,de=Ge.defaultView,se=ae?ae.whiteSpace:de&&de.getComputedStyle?de.getComputedStyle(He,null).getPropertyValue("white-space"):0;I=se&&se.substring(0,3)==="pre"}var Se=gt.linenums;(Se=Se==="true"||+Se)||(Se=cn.match(/\blinenums\b(?::(\d+))?/),Se=Se?Se[1]&&Se[1].length?+Se[1]:!0:!1),Se&&vt(He,Se,I);var Mt={langExtension:Ne,sourceNode:He,numberLines:Se,pre:I,sourceCode:null,basePos:null,spans:null,decorations:null};xn(Mt)}}}Te<F.length?d.setTimeout(ot,250):typeof be=="function"&&be()}ot()}var mt=d.PR={createSimpleLexer:Xe,registerLangHandler:ke,sourceDecorator:We,PR_ATTRIB_NAME:P,PR_ATTRIB_VALUE:Q,PR_COMMENT:$,PR_DECLARATION:Oe,PR_KEYWORD:S,PR_LITERAL:W,PR_NOCODE:q,PR_PLAIN:ue,PR_PUNCTUATION:ne,PR_SOURCE:G,PR_STRING:R,PR_TAG:he,PR_TYPE:ee,prettyPrintOne:p?d.prettyPrintOne=Yt:me=Yt,prettyPrint:O=p?d.prettyPrint=ln:O=ln},Be=d.define;typeof Be=="function"&&Be.amd&&Be("google-code-prettify",[],function(){return mt})})()},25769:function(Ln,jt,w){"use strict";var p=w(98040),fe={"text/plain":"Text","text/html":"Url",default:"Text"},oe="Copy to clipboard: #{key}, Enter";function me(d){var ge=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return d.replace(/#{\s*key\s*}/g,ge)}function O(d,ge){var le,o,b,T,m,y,x=!1;ge||(ge={}),le=ge.debug||!1;try{b=p(),T=document.createRange(),m=document.getSelection(),y=document.createElement("span"),y.textContent=d,y.ariaHidden="true",y.style.all="unset",y.style.position="fixed",y.style.top=0,y.style.clip="rect(0, 0, 0, 0)",y.style.whiteSpace="pre",y.style.webkitUserSelect="text",y.style.MozUserSelect="text",y.style.msUserSelect="text",y.style.userSelect="text",y.addEventListener("copy",function(U){if(U.stopPropagation(),ge.format)if(U.preventDefault(),typeof U.clipboardData=="undefined"){le&&console.warn("unable to use e.clipboardData"),le&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var V=fe[ge.format]||fe.default;window.clipboardData.setData(V,d)}else U.clipboardData.clearData(),U.clipboardData.setData(ge.format,d);ge.onCopy&&(U.preventDefault(),ge.onCopy(U.clipboardData))}),document.body.appendChild(y),T.selectNodeContents(y),m.addRange(T);var L=document.execCommand("copy");if(!L)throw new Error("copy command was unsuccessful");x=!0}catch(U){le&&console.error("unable to copy using execCommand: ",U),le&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(ge.format||"text",d),ge.onCopy&&ge.onCopy(window.clipboardData),x=!0}catch(V){le&&console.error("unable to copy using clipboardData: ",V),le&&console.error("falling back to prompt"),o=me("message"in ge?ge.message:oe),window.prompt(o,d)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(T):m.removeAllRanges()),y&&document.body.removeChild(y),b()}return x}Ln.exports=O},53184:function(Ln,jt,w){"use strict";var p,fe;function oe(me,O,d){var ge=function(le,o){return me.js_beautify(le,o)};return ge.js=me.js_beautify,ge.css=O.css_beautify,ge.html=d.html_beautify,ge.js_beautify=me.js_beautify,ge.css_beautify=O.css_beautify,ge.html_beautify=d.html_beautify,ge}p=[w(58553),w(87804),w(40998)],fe=function(me,O,d){return oe(me,O,d)}.apply(jt,p),fe!==void 0&&(Ln.exports=fe)},87804:function(Ln,jt){var w,p;(function(){var fe;(function(){"use strict";var me=[,,function(le){function o(m){this.__parent=m,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var m=new o(this.__parent);return m.set_indent(this.__indent_count,this.__alignment_count),m},o.prototype.item=function(m){return m<0?this.__items[this.__items.length+m]:this.__items[m]},o.prototype.has_match=function(m){for(var y=this.__items.length-1;y>=0;y--)if(this.__items[y].match(m))return!0;return!1},o.prototype.set_indent=function(m,y){this.is_empty()&&(this.__indent_count=m||0,this.__alignment_count=y||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(m){this.__items.push(m);var y=m.lastIndexOf(`
|
|
`);y!==-1?this.__character_count=m.length-y:this.__character_count+=m.length},o.prototype.pop=function(){var m=null;return this.is_empty()||(m=this.__items.pop(),this.__character_count-=m.length),m},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var m="";return this.is_empty()?this.__parent.indent_empty_lines&&(m=this.__parent.get_indent_string(this.__indent_count)):(m=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),m+=this.__items.join("")),m};function b(m,y){this.__cache=[""],this.__indent_size=m.indent_size,this.__indent_string=m.indent_char,m.indent_with_tabs||(this.__indent_string=new Array(m.indent_size+1).join(m.indent_char)),y=y||"",m.indent_level>0&&(y=new Array(m.indent_level+1).join(this.__indent_string)),this.__base_string=y,this.__base_string_length=y.length}b.prototype.get_indent_size=function(m,y){var x=this.__base_string_length;return y=y||0,m<0&&(x=0),x+=m*this.__indent_size,x+=y,x},b.prototype.get_indent_string=function(m,y){var x=this.__base_string;return y=y||0,m<0&&(m=0,x=""),y+=m*this.__indent_size,this.__ensure_cache(y),x+=this.__cache[y],x},b.prototype.__ensure_cache=function(m){for(;m>=this.__cache.length;)this.__add_column()},b.prototype.__add_column=function(){var m=this.__cache.length,y=0,x="";this.__indent_size&&m>=this.__indent_size&&(y=Math.floor(m/this.__indent_size),m-=y*this.__indent_size,x=new Array(y+1).join(this.__indent_string)),m&&(x+=new Array(m+1).join(" ")),this.__cache.push(x)};function T(m,y){this.__indent_cache=new b(m,y),this.raw=!1,this._end_with_newline=m.end_with_newline,this.indent_size=m.indent_size,this.wrap_line_length=m.wrap_line_length,this.indent_empty_lines=m.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}T.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},T.prototype.get_line_number=function(){return this.__lines.length},T.prototype.get_indent_string=function(m,y){return this.__indent_cache.get_indent_string(m,y)},T.prototype.get_indent_size=function(m,y){return this.__indent_cache.get_indent_size(m,y)},T.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},T.prototype.add_new_line=function(m){return this.is_empty()||!m&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},T.prototype.get_code=function(m){this.trim(!0);var y=this.current_line.pop();y&&(y[y.length-1]===`
|
|
`&&(y=y.replace(/\n+$/g,"")),this.current_line.push(y)),this._end_with_newline&&this.__add_outputline();var x=this.__lines.join(`
|
|
`);return m!==`
|
|
`&&(x=x.replace(/[\n]/g,m)),x},T.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},T.prototype.set_indent=function(m,y){return m=m||0,y=y||0,this.next_line.set_indent(m,y),this.__lines.length>1?(this.current_line.set_indent(m,y),!0):(this.current_line.set_indent(),!1)},T.prototype.add_raw_token=function(m){for(var y=0;y<m.newlines;y++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(m.whitespace_before),this.current_line.push(m.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},T.prototype.add_token=function(m){this.__add_space_before_token(),this.current_line.push(m),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},T.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},T.prototype.remove_indent=function(m){for(var y=this.__lines.length;m<y;)this.__lines[m]._remove_indent(),m++;this.current_line._remove_wrap_indent()},T.prototype.trim=function(m){for(m=m===void 0?!1:m,this.current_line.trim();m&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},T.prototype.just_added_newline=function(){return this.current_line.is_empty()},T.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},T.prototype.ensure_empty_line_above=function(m,y){for(var x=this.__lines.length-2;x>=0;){var L=this.__lines[x];if(L.is_empty())break;if(L.item(0).indexOf(m)!==0&&L.item(-1)!==y){this.__lines.splice(x+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}x--}},le.exports.Output=T},,,,function(le){function o(m,y){this.raw_options=b(m,y),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}o.prototype._get_array=function(m,y){var x=this.raw_options[m],L=y||[];return typeof x=="object"?x!==null&&typeof x.concat=="function"&&(L=x.concat()):typeof x=="string"&&(L=x.split(/[^a-zA-Z0-9_\/\-]+/)),L},o.prototype._get_boolean=function(m,y){var x=this.raw_options[m],L=x===void 0?!!y:!!x;return L},o.prototype._get_characters=function(m,y){var x=this.raw_options[m],L=y||"";return typeof x=="string"&&(L=x.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),L},o.prototype._get_number=function(m,y){var x=this.raw_options[m];y=parseInt(y,10),isNaN(y)&&(y=0);var L=parseInt(x,10);return isNaN(L)&&(L=y),L},o.prototype._get_selection=function(m,y,x){var L=this._get_selection_list(m,y,x);if(L.length!==1)throw new Error("Invalid Option Value: The option '"+m+`' can only be one of the following values:
|
|
`+y+`
|
|
You passed in: '`+this.raw_options[m]+"'");return L[0]},o.prototype._get_selection_list=function(m,y,x){if(!y||y.length===0)throw new Error("Selection list cannot be empty.");if(x=x||[y[0]],!this._is_valid_selection(x,y))throw new Error("Invalid Default Value!");var L=this._get_array(m,x);if(!this._is_valid_selection(L,y))throw new Error("Invalid Option Value: The option '"+m+`' can contain only the following values:
|
|
`+y+`
|
|
You passed in: '`+this.raw_options[m]+"'");return L},o.prototype._is_valid_selection=function(m,y){return m.length&&y.length&&!m.some(function(x){return y.indexOf(x)===-1})};function b(m,y){var x={};m=T(m);var L;for(L in m)L!==y&&(x[L]=m[L]);if(y&&m[y])for(L in m[y])x[L]=m[y][L];return x}function T(m){var y={},x;for(x in m){var L=x.replace(/-/g,"_");y[L]=m[x]}return y}le.exports.Options=o,le.exports.normalizeOpts=T,le.exports.mergeOpts=b},,function(le){var o=RegExp.prototype.hasOwnProperty("sticky");function b(T){this.__input=T||"",this.__input_length=this.__input.length,this.__position=0}b.prototype.restart=function(){this.__position=0},b.prototype.back=function(){this.__position>0&&(this.__position-=1)},b.prototype.hasNext=function(){return this.__position<this.__input_length},b.prototype.next=function(){var T=null;return this.hasNext()&&(T=this.__input.charAt(this.__position),this.__position+=1),T},b.prototype.peek=function(T){var m=null;return T=T||0,T+=this.__position,T>=0&&T<this.__input_length&&(m=this.__input.charAt(T)),m},b.prototype.__match=function(T,m){T.lastIndex=m;var y=T.exec(this.__input);return y&&!(o&&T.sticky)&&y.index!==m&&(y=null),y},b.prototype.test=function(T,m){return m=m||0,m+=this.__position,m>=0&&m<this.__input_length?!!this.__match(T,m):!1},b.prototype.testChar=function(T,m){var y=this.peek(m);return T.lastIndex=0,y!==null&&T.test(y)},b.prototype.match=function(T){var m=this.__match(T,this.__position);return m?this.__position+=m[0].length:m=null,m},b.prototype.read=function(T,m,y){var x="",L;return T&&(L=this.match(T),L&&(x+=L[0])),m&&(L||!T)&&(x+=this.readUntil(m,y)),x},b.prototype.readUntil=function(T,m){var y="",x=this.__position;T.lastIndex=this.__position;var L=T.exec(this.__input);return L?(x=L.index,m&&(x+=L[0].length)):x=this.__input_length,y=this.__input.substring(this.__position,x),this.__position=x,y},b.prototype.readUntilAfter=function(T){return this.readUntil(T,!0)},b.prototype.get_regexp=function(T,m){var y=null,x="g";return m&&o&&(x="y"),typeof T=="string"&&T!==""?y=new RegExp(T,x):T&&(y=new RegExp(T.source,x)),y},b.prototype.get_literal_regexp=function(T){return RegExp(T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},b.prototype.peekUntilAfter=function(T){var m=this.__position,y=this.readUntilAfter(T);return this.__position=m,y},b.prototype.lookBack=function(T){var m=this.__position-1;return m>=T.length&&this.__input.substring(m-T.length,m).toLowerCase()===T},le.exports.InputScanner=b},,,,,function(le){function o(b,T){b=typeof b=="string"?b:b.source,T=typeof T=="string"?T:T.source,this.__directives_block_pattern=new RegExp(b+/ beautify( \w+[:]\w+)+ /.source+T,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(b+/\sbeautify\signore:end\s/.source+T,"g")}o.prototype.get_directives=function(b){if(!b.match(this.__directives_block_pattern))return null;var T={};this.__directive_pattern.lastIndex=0;for(var m=this.__directive_pattern.exec(b);m;)T[m[1]]=m[2],m=this.__directive_pattern.exec(b);return T},o.prototype.readIgnored=function(b){return b.readUntilAfter(this.__directives_end_ignore_pattern)},le.exports.Directives=o},,function(le,o,b){var T=b(16).Beautifier,m=b(17).Options;function y(x,L){var U=new T(x,L);return U.beautify()}le.exports=y,le.exports.defaultOptions=function(){return new m}},function(le,o,b){var T=b(17).Options,m=b(2).Output,y=b(8).InputScanner,x=b(13).Directives,L=new x(/\/\*/,/\*\//),U=/\r\n|[\r\n]/,V=/\r\n|[\r\n]/g,te=/\s/,N=/(?:\s|\n)+/g,B=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,R=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function S($,ee){this._source_text=$||"",this._options=new T(ee),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}S.prototype.eatString=function($){var ee="";for(this._ch=this._input.next();this._ch;){if(ee+=this._ch,this._ch==="\\")ee+=this._input.next();else if($.indexOf(this._ch)!==-1||this._ch===`
|
|
`)break;this._ch=this._input.next()}return ee},S.prototype.eatWhitespace=function($){for(var ee=te.test(this._input.peek()),W=0;te.test(this._input.peek());)this._ch=this._input.next(),$&&this._ch===`
|
|
`&&(W===0||W<this._options.max_preserve_newlines)&&(W++,this._output.add_new_line(!0));return ee},S.prototype.foundNestedPseudoClass=function(){for(var $=0,ee=1,W=this._input.peek(ee);W;){if(W==="{")return!0;if(W==="(")$+=1;else if(W===")"){if($===0)return!1;$-=1}else if(W===";"||W==="}")return!1;ee++,W=this._input.peek(ee)}return!1},S.prototype.print_string=function($){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token($)},S.prototype.preserveSingleSpace=function($){$&&(this._output.space_before_token=!0)},S.prototype.indent=function(){this._indentLevel++},S.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},S.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var $=this._source_text,ee=this._options.eol;ee==="auto"&&(ee=`
|
|
`,$&&U.test($||"")&&(ee=$.match(U)[0])),$=$.replace(V,`
|
|
`);var W=$.match(/^[\t ]*/)[0];this._output=new m(this._options,W),this._input=new y($),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var ne=0,ue=!1,he=!1,Oe=!1,G=!1,P=!1,Q=this._ch,q=!1,re,J,g;re=this._input.read(N),J=re!=="",g=Q,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),Q=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var v=this._input.read(B),Z=L.get_directives(v);Z&&Z.ignore==="start"&&(v+=L.readIgnored(this._input)),this.print_string(v),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(R)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(J),this.print_string(this._ch);var ce=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ce.match(/[ :]$/)&&(ce=this.eatString(": ").replace(/\s+$/,""),this.print_string(ce),this._output.space_before_token=!0),ne===0&&ce.indexOf(":")!==-1&&(he=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(J),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Xe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Xe.match(/[ :]$/)&&(Xe=this.eatString(": ").replace(/\s+$/,""),this.print_string(Xe),this._output.space_before_token=!0),ne===0&&Xe.indexOf(":")!==-1?(he=!0,this.indent()):Xe in this.NESTED_AT_RULE?(this._nestedLevel+=1,Xe in this.CONDITIONAL_GROUP_RULE&&(Oe=!0)):ne===0&&!he&&(G=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(J),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")he&&(he=!1,this.outdent()),G=!1,Oe?(Oe=!1,ue=this._indentLevel>=this._nestedLevel):ue=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&ue&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(g==="("?this._output.space_before_token=!1:g!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),g==="{"&&this._output.trim(!0),he&&(this.outdent(),he=!1),this.print_string(this._ch),ue=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var We=0;We<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;We++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[We])){q=!0;break}(ue||Oe)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!G&&ne===0?(this.print_string(":"),he||(he=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Dt=g==='"'||g==="'";this.preserveSingleSpace(Dt||J),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")q=!1,ne===0?(he&&(this.outdent(),he=!1),G=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),ne++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),ne&&(ne--,this.outdent()));else{var vt=!1;this._input.lookBack("with")&&(vt=!0),this.preserveSingleSpace(J||vt),this.print_string(this._ch),he&&g==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),P=!0):(this.eatWhitespace(),ne++,this.indent())}else if(this._ch===")")ne&&(ne--,this.outdent()),P&&this._input.peek()===";"&&this._options.selector_separator_newline&&(P=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!he||P)&&ne===0&&!G?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!he&&ne===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&te.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(J),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),te.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var $t=g==='"'||g==="'";this.preserveSingleSpace($t||J),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
`&&q&&this._output.add_new_line()}var Ht=this._output.get_code(ee);return Ht},le.exports.Beautifier=S},function(le,o,b){var T=b(6).Options;function m(y){T.call(this,y,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var x=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||x;var L=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var U=0;U<L.length;U++)L[U]!=="expand"?this.brace_style="collapse":this.brace_style=L[U]}m.prototype=new T,le.exports.Options=m}],O={};function d(le){var o=O[le];if(o!==void 0)return o.exports;var b=O[le]={exports:{}};return me[le](b,b.exports,d),b.exports}var ge=d(15);fe=ge})();var oe=fe;w=[],p=function(){return{css_beautify:oe}}.apply(jt,w),p!==void 0&&(Ln.exports=p)})()},40998:function(Ln,jt,w){var p,fe;(function(){var oe;(function(){"use strict";var ge=[,,function(T){function m(L){this.__parent=L,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}m.prototype.clone_empty=function(){var L=new m(this.__parent);return L.set_indent(this.__indent_count,this.__alignment_count),L},m.prototype.item=function(L){return L<0?this.__items[this.__items.length+L]:this.__items[L]},m.prototype.has_match=function(L){for(var U=this.__items.length-1;U>=0;U--)if(this.__items[U].match(L))return!0;return!1},m.prototype.set_indent=function(L,U){this.is_empty()&&(this.__indent_count=L||0,this.__alignment_count=U||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},m.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var L=this.__parent.current_line;return L.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),L.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),L.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,L.__items[0]===" "&&(L.__items.splice(0,1),L.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(L){this.__items.push(L);var U=L.lastIndexOf(`
|
|
`);U!==-1?this.__character_count=L.length-U:this.__character_count+=L.length},m.prototype.pop=function(){var L=null;return this.is_empty()||(L=this.__items.pop(),this.__character_count-=L.length),L},m.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},m.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},m.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},m.prototype.toString=function(){var L="";return this.is_empty()?this.__parent.indent_empty_lines&&(L=this.__parent.get_indent_string(this.__indent_count)):(L=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),L+=this.__items.join("")),L};function y(L,U){this.__cache=[""],this.__indent_size=L.indent_size,this.__indent_string=L.indent_char,L.indent_with_tabs||(this.__indent_string=new Array(L.indent_size+1).join(L.indent_char)),U=U||"",L.indent_level>0&&(U=new Array(L.indent_level+1).join(this.__indent_string)),this.__base_string=U,this.__base_string_length=U.length}y.prototype.get_indent_size=function(L,U){var V=this.__base_string_length;return U=U||0,L<0&&(V=0),V+=L*this.__indent_size,V+=U,V},y.prototype.get_indent_string=function(L,U){var V=this.__base_string;return U=U||0,L<0&&(L=0,V=""),U+=L*this.__indent_size,this.__ensure_cache(U),V+=this.__cache[U],V},y.prototype.__ensure_cache=function(L){for(;L>=this.__cache.length;)this.__add_column()},y.prototype.__add_column=function(){var L=this.__cache.length,U=0,V="";this.__indent_size&&L>=this.__indent_size&&(U=Math.floor(L/this.__indent_size),L-=U*this.__indent_size,V=new Array(U+1).join(this.__indent_string)),L&&(V+=new Array(L+1).join(" ")),this.__cache.push(V)};function x(L,U){this.__indent_cache=new y(L,U),this.raw=!1,this._end_with_newline=L.end_with_newline,this.indent_size=L.indent_size,this.wrap_line_length=L.wrap_line_length,this.indent_empty_lines=L.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new m(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}x.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},x.prototype.get_line_number=function(){return this.__lines.length},x.prototype.get_indent_string=function(L,U){return this.__indent_cache.get_indent_string(L,U)},x.prototype.get_indent_size=function(L,U){return this.__indent_cache.get_indent_size(L,U)},x.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},x.prototype.add_new_line=function(L){return this.is_empty()||!L&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},x.prototype.get_code=function(L){this.trim(!0);var U=this.current_line.pop();U&&(U[U.length-1]===`
|
|
`&&(U=U.replace(/\n+$/g,"")),this.current_line.push(U)),this._end_with_newline&&this.__add_outputline();var V=this.__lines.join(`
|
|
`);return L!==`
|
|
`&&(V=V.replace(/[\n]/g,L)),V},x.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},x.prototype.set_indent=function(L,U){return L=L||0,U=U||0,this.next_line.set_indent(L,U),this.__lines.length>1?(this.current_line.set_indent(L,U),!0):(this.current_line.set_indent(),!1)},x.prototype.add_raw_token=function(L){for(var U=0;U<L.newlines;U++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(L.whitespace_before),this.current_line.push(L.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},x.prototype.add_token=function(L){this.__add_space_before_token(),this.current_line.push(L),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},x.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},x.prototype.remove_indent=function(L){for(var U=this.__lines.length;L<U;)this.__lines[L]._remove_indent(),L++;this.current_line._remove_wrap_indent()},x.prototype.trim=function(L){for(L=L===void 0?!1:L,this.current_line.trim();L&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},x.prototype.just_added_newline=function(){return this.current_line.is_empty()},x.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},x.prototype.ensure_empty_line_above=function(L,U){for(var V=this.__lines.length-2;V>=0;){var te=this.__lines[V];if(te.is_empty())break;if(te.item(0).indexOf(L)!==0&&te.item(-1)!==U){this.__lines.splice(V+1,0,new m(this)),this.previous_line=this.__lines[this.__lines.length-2];break}V--}},T.exports.Output=x},function(T){function m(y,x,L,U){this.type=y,this.text=x,this.comments_before=null,this.newlines=L||0,this.whitespace_before=U||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}T.exports.Token=m},,,function(T){function m(L,U){this.raw_options=y(L,U),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}m.prototype._get_array=function(L,U){var V=this.raw_options[L],te=U||[];return typeof V=="object"?V!==null&&typeof V.concat=="function"&&(te=V.concat()):typeof V=="string"&&(te=V.split(/[^a-zA-Z0-9_\/\-]+/)),te},m.prototype._get_boolean=function(L,U){var V=this.raw_options[L],te=V===void 0?!!U:!!V;return te},m.prototype._get_characters=function(L,U){var V=this.raw_options[L],te=U||"";return typeof V=="string"&&(te=V.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),te},m.prototype._get_number=function(L,U){var V=this.raw_options[L];U=parseInt(U,10),isNaN(U)&&(U=0);var te=parseInt(V,10);return isNaN(te)&&(te=U),te},m.prototype._get_selection=function(L,U,V){var te=this._get_selection_list(L,U,V);if(te.length!==1)throw new Error("Invalid Option Value: The option '"+L+`' can only be one of the following values:
|
|
`+U+`
|
|
You passed in: '`+this.raw_options[L]+"'");return te[0]},m.prototype._get_selection_list=function(L,U,V){if(!U||U.length===0)throw new Error("Selection list cannot be empty.");if(V=V||[U[0]],!this._is_valid_selection(V,U))throw new Error("Invalid Default Value!");var te=this._get_array(L,V);if(!this._is_valid_selection(te,U))throw new Error("Invalid Option Value: The option '"+L+`' can contain only the following values:
|
|
`+U+`
|
|
You passed in: '`+this.raw_options[L]+"'");return te},m.prototype._is_valid_selection=function(L,U){return L.length&&U.length&&!L.some(function(V){return U.indexOf(V)===-1})};function y(L,U){var V={};L=x(L);var te;for(te in L)te!==U&&(V[te]=L[te]);if(U&&L[U])for(te in L[U])V[te]=L[U][te];return V}function x(L){var U={},V;for(V in L){var te=V.replace(/-/g,"_");U[te]=L[V]}return U}T.exports.Options=m,T.exports.normalizeOpts=x,T.exports.mergeOpts=y},,function(T){var m=RegExp.prototype.hasOwnProperty("sticky");function y(x){this.__input=x||"",this.__input_length=this.__input.length,this.__position=0}y.prototype.restart=function(){this.__position=0},y.prototype.back=function(){this.__position>0&&(this.__position-=1)},y.prototype.hasNext=function(){return this.__position<this.__input_length},y.prototype.next=function(){var x=null;return this.hasNext()&&(x=this.__input.charAt(this.__position),this.__position+=1),x},y.prototype.peek=function(x){var L=null;return x=x||0,x+=this.__position,x>=0&&x<this.__input_length&&(L=this.__input.charAt(x)),L},y.prototype.__match=function(x,L){x.lastIndex=L;var U=x.exec(this.__input);return U&&!(m&&x.sticky)&&U.index!==L&&(U=null),U},y.prototype.test=function(x,L){return L=L||0,L+=this.__position,L>=0&&L<this.__input_length?!!this.__match(x,L):!1},y.prototype.testChar=function(x,L){var U=this.peek(L);return x.lastIndex=0,U!==null&&x.test(U)},y.prototype.match=function(x){var L=this.__match(x,this.__position);return L?this.__position+=L[0].length:L=null,L},y.prototype.read=function(x,L,U){var V="",te;return x&&(te=this.match(x),te&&(V+=te[0])),L&&(te||!x)&&(V+=this.readUntil(L,U)),V},y.prototype.readUntil=function(x,L){var U="",V=this.__position;x.lastIndex=this.__position;var te=x.exec(this.__input);return te?(V=te.index,L&&(V+=te[0].length)):V=this.__input_length,U=this.__input.substring(this.__position,V),this.__position=V,U},y.prototype.readUntilAfter=function(x){return this.readUntil(x,!0)},y.prototype.get_regexp=function(x,L){var U=null,V="g";return L&&m&&(V="y"),typeof x=="string"&&x!==""?U=new RegExp(x,V):x&&(U=new RegExp(x.source,V)),U},y.prototype.get_literal_regexp=function(x){return RegExp(x.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},y.prototype.peekUntilAfter=function(x){var L=this.__position,U=this.readUntilAfter(x);return this.__position=L,U},y.prototype.lookBack=function(x){var L=this.__position-1;return L>=x.length&&this.__input.substring(L-x.length,L).toLowerCase()===x},T.exports.InputScanner=y},function(T,m,y){var x=y(8).InputScanner,L=y(3).Token,U=y(10).TokenStream,V=y(11).WhitespacePattern,te={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},N=function(B,R){this._input=new x(B),this._options=R||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new V(this._input)};N.prototype.tokenize=function(){this._input.restart(),this.__tokens=new U,this._reset();for(var B,R=new L(te.START,""),S=null,$=[],ee=new U;R.type!==te.EOF;){for(B=this._get_next_token(R,S);this._is_comment(B);)ee.add(B),B=this._get_next_token(R,S);ee.isEmpty()||(B.comments_before=ee,ee=new U),B.parent=S,this._is_opening(B)?($.push(S),S=B):S&&this._is_closing(B,S)&&(B.opened=S,S.closed=B,S=$.pop(),B.parent=S),B.previous=R,R.next=B,this.__tokens.add(B),R=B}return this.__tokens},N.prototype._is_first_token=function(){return this.__tokens.isEmpty()},N.prototype._reset=function(){},N.prototype._get_next_token=function(B,R){this._readWhitespace();var S=this._input.read(/.+/g);return S?this._create_token(te.RAW,S):this._create_token(te.EOF,"")},N.prototype._is_comment=function(B){return!1},N.prototype._is_opening=function(B){return!1},N.prototype._is_closing=function(B,R){return!1},N.prototype._create_token=function(B,R){var S=new L(B,R,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return S},N.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},T.exports.Tokenizer=N,T.exports.TOKEN=te},function(T){function m(y){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=y}m.prototype.restart=function(){this.__position=0},m.prototype.isEmpty=function(){return this.__tokens_length===0},m.prototype.hasNext=function(){return this.__position<this.__tokens_length},m.prototype.next=function(){var y=null;return this.hasNext()&&(y=this.__tokens[this.__position],this.__position+=1),y},m.prototype.peek=function(y){var x=null;return y=y||0,y+=this.__position,y>=0&&y<this.__tokens_length&&(x=this.__tokens[y]),x},m.prototype.add=function(y){this.__parent_token&&(y.parent=this.__parent_token),this.__tokens.push(y),this.__tokens_length+=1},T.exports.TokenStream=m},function(T,m,y){var x=y(12).Pattern;function L(U,V){x.call(this,U,V),V?this._line_regexp=this._input.get_regexp(V._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}L.prototype=new x,L.prototype.__set_whitespace_patterns=function(U,V){U+="\\t ",V+="\\n\\r",this._match_pattern=this._input.get_regexp("["+U+V+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+V+"]")},L.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var U=this._input.read(this._match_pattern);if(U===" ")this.whitespace_before_token=" ";else if(U){var V=this.__split(this._newline_regexp,U);this.newline_count=V.length-1,this.whitespace_before_token=V[this.newline_count]}return U},L.prototype.matching=function(U,V){var te=this._create();return te.__set_whitespace_patterns(U,V),te._update(),te},L.prototype._create=function(){return new L(this._input,this)},L.prototype.__split=function(U,V){U.lastIndex=0;for(var te=0,N=[],B=U.exec(V);B;)N.push(V.substring(te,B.index)),te=B.index+B[0].length,B=U.exec(V);return te<V.length?N.push(V.substring(te,V.length)):N.push(""),N},T.exports.WhitespacePattern=L},function(T){function m(y,x){this._input=y,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,x&&(this._starting_pattern=this._input.get_regexp(x._starting_pattern,!0),this._match_pattern=this._input.get_regexp(x._match_pattern,!0),this._until_pattern=this._input.get_regexp(x._until_pattern),this._until_after=x._until_after)}m.prototype.read=function(){var y=this._input.read(this._starting_pattern);return(!this._starting_pattern||y)&&(y+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),y},m.prototype.read_match=function(){return this._input.match(this._match_pattern)},m.prototype.until_after=function(y){var x=this._create();return x._until_after=!0,x._until_pattern=this._input.get_regexp(y),x._update(),x},m.prototype.until=function(y){var x=this._create();return x._until_after=!1,x._until_pattern=this._input.get_regexp(y),x._update(),x},m.prototype.starting_with=function(y){var x=this._create();return x._starting_pattern=this._input.get_regexp(y,!0),x._update(),x},m.prototype.matching=function(y){var x=this._create();return x._match_pattern=this._input.get_regexp(y,!0),x._update(),x},m.prototype._create=function(){return new m(this._input,this)},m.prototype._update=function(){},T.exports.Pattern=m},function(T){function m(y,x){y=typeof y=="string"?y:y.source,x=typeof x=="string"?x:x.source,this.__directives_block_pattern=new RegExp(y+/ beautify( \w+[:]\w+)+ /.source+x,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(y+/\sbeautify\signore:end\s/.source+x,"g")}m.prototype.get_directives=function(y){if(!y.match(this.__directives_block_pattern))return null;var x={};this.__directive_pattern.lastIndex=0;for(var L=this.__directive_pattern.exec(y);L;)x[L[1]]=L[2],L=this.__directive_pattern.exec(y);return x},m.prototype.readIgnored=function(y){return y.readUntilAfter(this.__directives_end_ignore_pattern)},T.exports.Directives=m},function(T,m,y){var x=y(12).Pattern,L={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function U(V,te){x.call(this,V,te),this.__template_pattern=null,this._disabled=Object.assign({},L),this._excluded=Object.assign({},L),te&&(this.__template_pattern=this._input.get_regexp(te.__template_pattern),this._excluded=Object.assign(this._excluded,te._excluded),this._disabled=Object.assign(this._disabled,te._disabled));var N=new x(V);this.__patterns={handlebars_comment:N.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:N.starting_with(/{{{/).until_after(/}}}/),handlebars:N.starting_with(/{{/).until_after(/}}/),php:N.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:N.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:N.starting_with(/{%/).until_after(/%}/),django_value:N.starting_with(/{{/).until_after(/}}/),django_comment:N.starting_with(/{#/).until_after(/#}/),smarty:N.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:N.starting_with(/{\*/).until_after(/\*}/),smarty_literal:N.starting_with(/{literal}/).until_after(/{\/literal}/)}}U.prototype=new x,U.prototype._create=function(){return new U(this._input,this)},U.prototype._update=function(){this.__set_templated_pattern()},U.prototype.disable=function(V){var te=this._create();return te._disabled[V]=!0,te._update(),te},U.prototype.read_options=function(V){var te=this._create();for(var N in L)te._disabled[N]=V.templating.indexOf(N)===-1;return te._update(),te},U.prototype.exclude=function(V){var te=this._create();return te._excluded[V]=!0,te._update(),te},U.prototype.read=function(){var V="";this._match_pattern?V=this._input.read(this._starting_pattern):V=this._input.read(this._starting_pattern,this.__template_pattern);for(var te=this._read_template();te;)this._match_pattern?te+=this._input.read(this._match_pattern):te+=this._input.readUntil(this.__template_pattern),V+=te,te=this._read_template();return this._until_after&&(V+=this._input.readUntilAfter(this._until_pattern)),V},U.prototype.__set_templated_pattern=function(){var V=[];this._disabled.php||V.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||V.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||V.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||V.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(V.push(this.__patterns.django._starting_pattern.source),V.push(this.__patterns.django_value._starting_pattern.source),V.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||V.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&V.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+V.join("|")+")")},U.prototype._read_template=function(){var V="",te=this._input.peek();if(te==="<"){var N=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&N==="?"&&(V=V||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&N==="%"&&(V=V||this.__patterns.erb.read())}else te==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(V=V||this.__patterns.handlebars_comment.read(),V=V||this.__patterns.handlebars_unescaped.read(),V=V||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(V=V||this.__patterns.django_value.read()),this._excluded.django||(V=V||this.__patterns.django_comment.read(),V=V||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(V=V||this.__patterns.smarty_comment.read(),V=V||this.__patterns.smarty_literal.read(),V=V||this.__patterns.smarty.read()));return V},T.exports.TemplatablePattern=U},,,,function(T,m,y){var x=y(19).Beautifier,L=y(20).Options;function U(V,te,N,B){var R=new x(V,te,N,B);return R.beautify()}T.exports=U,T.exports.defaultOptions=function(){return new L}},function(T,m,y){var x=y(20).Options,L=y(2).Output,U=y(21).Tokenizer,V=y(21).TOKEN,te=/\r\n|[\r\n]/,N=/\r\n|[\r\n]/g,B=function(G,P){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=G.max_preserve_newlines,this.preserve_newlines=G.preserve_newlines,this._output=new L(G,P)};B.prototype.current_line_has_match=function(G){return this._output.current_line.has_match(G)},B.prototype.set_space_before_token=function(G,P){this._output.space_before_token=G,this._output.non_breaking_space=P},B.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},B.prototype.add_raw_token=function(G){this._output.add_raw_token(G)},B.prototype.print_preserved_newlines=function(G){var P=0;G.type!==V.TEXT&&G.previous.type!==V.TEXT&&(P=G.newlines?1:0),this.preserve_newlines&&(P=G.newlines<this.max_preserve_newlines+1?G.newlines:this.max_preserve_newlines+1);for(var Q=0;Q<P;Q++)this.print_newline(Q>0);return P!==0},B.prototype.traverse_whitespace=function(G){return G.whitespace_before||G.newlines?(this.print_preserved_newlines(G)||(this._output.space_before_token=!0),!0):!1},B.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},B.prototype.print_newline=function(G){this._output.add_new_line(G)},B.prototype.print_token=function(G){G.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(G.text))},B.prototype.indent=function(){this.indent_level++},B.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},B.prototype.get_full_indent=function(G){return G=this.indent_level+(G||0),G<1?"":this._output.get_indent_string(G)};var R=function(G){for(var P=null,Q=G.next;Q.type!==V.EOF&&G.closed!==Q;){if(Q.type===V.ATTRIBUTE&&Q.text==="type"){Q.next&&Q.next.type===V.EQUALS&&Q.next.next&&Q.next.next.type===V.VALUE&&(P=Q.next.next.text);break}Q=Q.next}return P},S=function(G,P){var Q=null,q=null;return P.closed?(G==="script"?Q="text/javascript":G==="style"&&(Q="text/css"),Q=R(P)||Q,Q.search("text/css")>-1?q="css":Q.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?q="javascript":Q.search(/(text|application|dojo)\/(x-)?(html)/)>-1?q="html":Q.search(/test\/null/)>-1&&(q="null"),q):null};function $(G,P){return P.indexOf(G)!==-1}function ee(G,P,Q){this.parent=G||null,this.tag=P?P.tag_name:"",this.indent_level=Q||0,this.parser_token=P||null}function W(G){this._printer=G,this._current_frame=null}W.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},W.prototype.record_tag=function(G){var P=new ee(this._current_frame,G,this._printer.indent_level);this._current_frame=P},W.prototype._try_pop_frame=function(G){var P=null;return G&&(P=G.parser_token,this._printer.indent_level=G.indent_level,this._current_frame=G.parent),P},W.prototype._get_frame=function(G,P){for(var Q=this._current_frame;Q&&G.indexOf(Q.tag)===-1;){if(P&&P.indexOf(Q.tag)!==-1){Q=null;break}Q=Q.parent}return Q},W.prototype.try_pop=function(G,P){var Q=this._get_frame([G],P);return this._try_pop_frame(Q)},W.prototype.indent_to_tag=function(G){var P=this._get_frame(G);P&&(this._printer.indent_level=P.indent_level)};function ne(G,P,Q,q){this._source_text=G||"",P=P||{},this._js_beautify=Q,this._css_beautify=q,this._tag_stack=null;var re=new x(P,"html");this._options=re,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}ne.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var G=this._source_text,P=this._options.eol;this._options.eol==="auto"&&(P=`
|
|
`,G&&te.test(G)&&(P=G.match(te)[0])),G=G.replace(N,`
|
|
`);var Q=G.match(/^[\t ]*/)[0],q={text:"",type:""},re=new ue(this._options),J=new B(this._options,Q),g=new U(G,this._options).tokenize();this._tag_stack=new W(J);for(var v=null,Z=g.next();Z.type!==V.EOF;)Z.type===V.TAG_OPEN||Z.type===V.COMMENT?(v=this._handle_tag_open(J,Z,re,q,g),re=v):Z.type===V.ATTRIBUTE||Z.type===V.EQUALS||Z.type===V.VALUE||Z.type===V.TEXT&&!re.tag_complete?v=this._handle_inside_tag(J,Z,re,q):Z.type===V.TAG_CLOSE?v=this._handle_tag_close(J,Z,re):Z.type===V.TEXT?v=this._handle_text(J,Z,re):Z.type===V.CONTROL_FLOW_OPEN?v=this._handle_control_flow_open(J,Z):Z.type===V.CONTROL_FLOW_CLOSE?v=this._handle_control_flow_close(J,Z):J.add_raw_token(Z),q=v,Z=g.next();var ce=J._output.get_code(P);return ce},ne.prototype._handle_control_flow_open=function(G,P){var Q={text:P.text,type:P.type};return G.set_space_before_token(P.newlines||P.whitespace_before!=="",!0),P.newlines?G.print_preserved_newlines(P):G.set_space_before_token(P.newlines||P.whitespace_before!=="",!0),G.print_token(P),G.indent(),Q},ne.prototype._handle_control_flow_close=function(G,P){var Q={text:P.text,type:P.type};return G.deindent(),P.newlines?G.print_preserved_newlines(P):G.set_space_before_token(P.newlines||P.whitespace_before!=="",!0),G.print_token(P),Q},ne.prototype._handle_tag_close=function(G,P,Q){var q={text:P.text,type:P.type};return G.alignment_size=0,Q.tag_complete=!0,G.set_space_before_token(P.newlines||P.whitespace_before!=="",!0),Q.is_unformatted?G.add_raw_token(P):(Q.tag_start_char==="<"&&(G.set_space_before_token(P.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&Q.has_wrapped_attrs&&G.print_newline(!1)),G.print_token(P)),Q.indent_content&&!(Q.is_unformatted||Q.is_content_unformatted)&&(G.indent(),Q.indent_content=!1),!Q.is_inline_element&&!(Q.is_unformatted||Q.is_content_unformatted)&&G.set_wrap_point(),q},ne.prototype._handle_inside_tag=function(G,P,Q,q){var re=Q.has_wrapped_attrs,J={text:P.text,type:P.type};return G.set_space_before_token(P.newlines||P.whitespace_before!=="",!0),Q.is_unformatted?G.add_raw_token(P):Q.tag_start_char==="{"&&P.type===V.TEXT?G.print_preserved_newlines(P)?(P.newlines=0,G.add_raw_token(P)):G.print_token(P):(P.type===V.ATTRIBUTE?G.set_space_before_token(!0):(P.type===V.EQUALS||P.type===V.VALUE&&P.previous.type===V.EQUALS)&&G.set_space_before_token(!1),P.type===V.ATTRIBUTE&&Q.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(G.traverse_whitespace(P),re=re||P.newlines!==0),this._is_wrap_attributes_force&&Q.attr_count>=this._options.wrap_attributes_min_attrs&&(q.type!==V.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(G.print_newline(!1),re=!0)),G.print_token(P),re=re||G.previous_token_wrapped(),Q.has_wrapped_attrs=re),J},ne.prototype._handle_text=function(G,P,Q){var q={text:P.text,type:"TK_CONTENT"};return Q.custom_beautifier_name?this._print_custom_beatifier_text(G,P,Q):Q.is_unformatted||Q.is_content_unformatted?G.add_raw_token(P):(G.traverse_whitespace(P),G.print_token(P)),q},ne.prototype._print_custom_beatifier_text=function(G,P,Q){var q=this;if(P.text!==""){var re=P.text,J,g=1,v="",Z="";Q.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?J=this._js_beautify:Q.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?J=this._css_beautify:Q.custom_beautifier_name==="html"&&(J=function($t,Ht){var ke=new ne($t,Ht,q._js_beautify,q._css_beautify);return ke.beautify()}),this._options.indent_scripts==="keep"?g=0:this._options.indent_scripts==="separate"&&(g=-G.indent_level);var ce=G.get_full_indent(g);if(re=re.replace(/\n[ \t]*$/,""),Q.custom_beautifier_name!=="html"&&re[0]==="<"&&re.match(/^(<!--|<!\[CDATA\[)/)){var Xe=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(re);if(!Xe){G.add_raw_token(P);return}v=ce+Xe[1]+`
|
|
`,re=Xe[4],Xe[5]&&(Z=ce+Xe[5]),re=re.replace(/\n[ \t]*$/,""),(Xe[2]||Xe[3].indexOf(`
|
|
`)!==-1)&&(Xe=Xe[3].match(/[ \t]+$/),Xe&&(P.whitespace_before=Xe[0]))}if(re)if(J){var We=function(){this.eol=`
|
|
`};We.prototype=this._options.raw_options;var Dt=new We;re=J(ce+re,Dt)}else{var vt=P.whitespace_before;vt&&(re=re.replace(new RegExp(`
|
|
(`+vt+")?","g"),`
|
|
`)),re=ce+re.replace(/\n/g,`
|
|
`+ce)}v&&(re?re=v+re+`
|
|
`+Z:re=v+Z),G.print_newline(!1),re&&(P.text=re,P.whitespace_before="",P.newlines=0,G.add_raw_token(P),G.print_newline(!0))}},ne.prototype._handle_tag_open=function(G,P,Q,q,re){var J=this._get_tag_open_token(P);if((Q.is_unformatted||Q.is_content_unformatted)&&!Q.is_empty_element&&P.type===V.TAG_OPEN&&!J.is_start_tag?(G.add_raw_token(P),J.start_tag_token=this._tag_stack.try_pop(J.tag_name)):(G.traverse_whitespace(P),this._set_tag_position(G,P,J,Q,q),J.is_inline_element||G.set_wrap_point(),G.print_token(P)),J.is_start_tag&&this._is_wrap_attributes_force){var g=0,v;do v=re.peek(g),v.type===V.ATTRIBUTE&&(J.attr_count+=1),g+=1;while(v.type!==V.EOF&&v.type!==V.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(J.alignment_size=P.text.length+1),!J.tag_complete&&!J.is_unformatted&&(G.alignment_size=J.alignment_size),J};var ue=function(G,P,Q){if(this.parent=P||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!Q)this.tag_complete=!0;else{var q;this.tag_start_char=Q.text[0],this.text=Q.text,this.tag_start_char==="<"?(q=Q.text.match(/^<([^\s>]*)/),this.tag_check=q?q[1]:""):(q=Q.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=q?q[1]:"",(Q.text.startsWith("{{#>")||Q.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&Q.next!==null?this.tag_check=Q.next.text.split(" ")[0]:this.tag_check=Q.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),Q.type===V.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||Q.closed&&Q.closed.text==="/>";var re=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(re=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!G.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(re)))}};ne.prototype._get_tag_open_token=function(G){var P=new ue(this._options,this._tag_stack.get_parser_token(),G);return P.alignment_size=this._options.wrap_attributes_indent_size,P.is_end_tag=P.is_end_tag||$(P.tag_check,this._options.void_elements),P.is_empty_element=P.tag_complete||P.is_start_tag&&P.is_end_tag,P.is_unformatted=!P.tag_complete&&$(P.tag_check,this._options.unformatted),P.is_content_unformatted=!P.is_empty_element&&$(P.tag_check,this._options.content_unformatted),P.is_inline_element=$(P.tag_name,this._options.inline)||this._options.inline_custom_elements&&P.tag_name.includes("-")||P.tag_start_char==="{",P},ne.prototype._set_tag_position=function(G,P,Q,q,re){if(Q.is_empty_element||(Q.is_end_tag?Q.start_tag_token=this._tag_stack.try_pop(Q.tag_name):(this._do_optional_end_element(Q)&&(Q.is_inline_element||G.print_newline(!1)),this._tag_stack.record_tag(Q),(Q.tag_name==="script"||Q.tag_name==="style")&&!(Q.is_unformatted||Q.is_content_unformatted)&&(Q.custom_beautifier_name=S(Q.tag_check,P)))),$(Q.tag_check,this._options.extra_liners)&&(G.print_newline(!1),G._output.just_added_blankline()||G.print_newline(!0)),Q.is_empty_element){if(Q.tag_start_char==="{"&&Q.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),Q.indent_content=!0;var J=G.current_line_has_match(/{{#if/);J||G.print_newline(!1)}Q.tag_name==="!--"&&re.type===V.TAG_CLOSE&&q.is_end_tag&&Q.text.indexOf(`
|
|
`)===-1||(Q.is_inline_element||Q.is_unformatted||G.print_newline(!1),this._calcluate_parent_multiline(G,Q))}else if(Q.is_end_tag){var g=!1;g=Q.start_tag_token&&Q.start_tag_token.multiline_content,g=g||!Q.is_inline_element&&!(q.is_inline_element||q.is_unformatted)&&!(re.type===V.TAG_CLOSE&&Q.start_tag_token===q)&&re.type!=="TK_CONTENT",(Q.is_content_unformatted||Q.is_unformatted)&&(g=!1),g&&G.print_newline(!1)}else Q.indent_content=!Q.custom_beautifier_name,Q.tag_start_char==="<"&&(Q.tag_name==="html"?Q.indent_content=this._options.indent_inner_html:Q.tag_name==="head"?Q.indent_content=this._options.indent_head_inner_html:Q.tag_name==="body"&&(Q.indent_content=this._options.indent_body_inner_html)),!(Q.is_inline_element||Q.is_unformatted)&&(re.type!=="TK_CONTENT"||Q.is_content_unformatted)&&G.print_newline(!1),this._calcluate_parent_multiline(G,Q)},ne.prototype._calcluate_parent_multiline=function(G,P){P.parent&&G._output.just_added_newline()&&!((P.is_inline_element||P.is_unformatted)&&P.parent.is_inline_element)&&(P.parent.multiline_content=!0)};var he=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],Oe=["a","audio","del","ins","map","noscript","video"];ne.prototype._do_optional_end_element=function(G){var P=null;if(!(G.is_empty_element||!G.is_start_tag||!G.parent)){if(G.tag_name==="body")P=P||this._tag_stack.try_pop("head");else if(G.tag_name==="li")P=P||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(G.tag_name==="dd"||G.tag_name==="dt")P=P||this._tag_stack.try_pop("dt",["dl"]),P=P||this._tag_stack.try_pop("dd",["dl"]);else if(G.parent.tag_name==="p"&&he.indexOf(G.tag_name)!==-1){var Q=G.parent.parent;(!Q||Oe.indexOf(Q.tag_name)===-1)&&(P=P||this._tag_stack.try_pop("p"))}else G.tag_name==="rp"||G.tag_name==="rt"?(P=P||this._tag_stack.try_pop("rt",["ruby","rtc"]),P=P||this._tag_stack.try_pop("rp",["ruby","rtc"])):G.tag_name==="optgroup"?P=P||this._tag_stack.try_pop("optgroup",["select"]):G.tag_name==="option"?P=P||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):G.tag_name==="colgroup"?P=P||this._tag_stack.try_pop("caption",["table"]):G.tag_name==="thead"?(P=P||this._tag_stack.try_pop("caption",["table"]),P=P||this._tag_stack.try_pop("colgroup",["table"])):G.tag_name==="tbody"||G.tag_name==="tfoot"?(P=P||this._tag_stack.try_pop("caption",["table"]),P=P||this._tag_stack.try_pop("colgroup",["table"]),P=P||this._tag_stack.try_pop("thead",["table"]),P=P||this._tag_stack.try_pop("tbody",["table"])):G.tag_name==="tr"?(P=P||this._tag_stack.try_pop("caption",["table"]),P=P||this._tag_stack.try_pop("colgroup",["table"]),P=P||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(G.tag_name==="th"||G.tag_name==="td")&&(P=P||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),P=P||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return G.parent=this._tag_stack.get_parser_token(),P}},T.exports.Beautifier=ne},function(T,m,y){var x=y(6).Options;function L(U){x.call(this,U,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}L.prototype=new x,T.exports.Options=L},function(T,m,y){var x=y(9).Tokenizer,L=y(9).TOKEN,U=y(13).Directives,V=y(14).TemplatablePattern,te=y(12).Pattern,N={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:L.START,RAW:L.RAW,EOF:L.EOF},B=new U(/<\!--/,/-->/),R=function(S,$){x.call(this,S,$),this._current_tag_name="";var ee=new V(this._input).read_options(this._options),W=new te(this._input);if(this.__patterns={word:ee.until(/[\n\r\t <]/),word_control_flow_close_excluded:ee.until(/[\n\r\t <}]/),single_quote:ee.until_after(/'/),double_quote:ee.until_after(/"/),attribute:ee.until(/[\n\r\t =>]|\/>/),element_name:ee.until(/[\n\r\t >\/]/),angular_control_flow_start:W.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:W.starting_with(/{{!--/).until_after(/--}}/),handlebars:W.starting_with(/{{/).until_after(/}}/),handlebars_open:W.until(/[\n\r\t }]/),handlebars_raw_close:W.until(/}}/),comment:W.starting_with(/<!--/).until_after(/-->/),cdata:W.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:W.starting_with(/<!\[/).until_after(/]>/),processing:W.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var ne=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=W.matching(ne).until_after(ne)}};R.prototype=new x,R.prototype._is_comment=function(S){return!1},R.prototype._is_opening=function(S){return S.type===N.TAG_OPEN||S.type===N.CONTROL_FLOW_OPEN},R.prototype._is_closing=function(S,$){return S.type===N.TAG_CLOSE&&$&&((S.text===">"||S.text==="/>")&&$.text[0]==="<"||S.text==="}}"&&$.text[0]==="{"&&$.text[1]==="{")||S.type===N.CONTROL_FLOW_CLOSE&&S.text==="}"&&$.text.endsWith("{")},R.prototype._reset=function(){this._current_tag_name=""},R.prototype._get_next_token=function(S,$){var ee=null;this._readWhitespace();var W=this._input.peek();return W===null?this._create_token(N.EOF,""):(ee=ee||this._read_open_handlebars(W,$),ee=ee||this._read_attribute(W,S,$),ee=ee||this._read_close(W,$),ee=ee||this._read_script_and_style(W,S),ee=ee||this._read_control_flows(W,$),ee=ee||this._read_raw_content(W,S,$),ee=ee||this._read_content_word(W,$),ee=ee||this._read_comment_or_cdata(W),ee=ee||this._read_processing(W),ee=ee||this._read_open(W,$),ee=ee||this._create_token(N.UNKNOWN,this._input.next()),ee)},R.prototype._read_comment_or_cdata=function(S){var $=null,ee=null,W=null;if(S==="<"){var ne=this._input.peek(1);ne==="!"&&(ee=this.__patterns.comment.read(),ee?(W=B.get_directives(ee),W&&W.ignore==="start"&&(ee+=B.readIgnored(this._input))):ee=this.__patterns.cdata.read()),ee&&($=this._create_token(N.COMMENT,ee),$.directives=W)}return $},R.prototype._read_processing=function(S){var $=null,ee=null,W=null;if(S==="<"){var ne=this._input.peek(1);(ne==="!"||ne==="?")&&(ee=this.__patterns.conditional_comment.read(),ee=ee||this.__patterns.processing.read()),ee&&($=this._create_token(N.COMMENT,ee),$.directives=W)}return $},R.prototype._read_open=function(S,$){var ee=null,W=null;return(!$||$.type===N.CONTROL_FLOW_OPEN)&&S==="<"&&(ee=this._input.next(),this._input.peek()==="/"&&(ee+=this._input.next()),ee+=this.__patterns.element_name.read(),W=this._create_token(N.TAG_OPEN,ee)),W},R.prototype._read_open_handlebars=function(S,$){var ee=null,W=null;return(!$||$.type===N.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&S==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(ee=this.__patterns.handlebars_comment.read(),ee=ee||this.__patterns.handlebars.read(),W=this._create_token(N.COMMENT,ee)):(ee=this.__patterns.handlebars_open.read(),W=this._create_token(N.TAG_OPEN,ee))),W},R.prototype._read_control_flows=function(S,$){var ee="",W=null;if(!this._options.templating.includes("angular"))return W;if(S==="@"){if(ee=this.__patterns.angular_control_flow_start.read(),ee==="")return W;for(var ne=ee.endsWith("(")?1:0,ue=0;!(ee.endsWith("{")&&ne===ue);){var he=this._input.next();if(he===null)break;he==="("?ne++:he===")"&&ue++,ee+=he}W=this._create_token(N.CONTROL_FLOW_OPEN,ee)}else S==="}"&&$&&$.type===N.CONTROL_FLOW_OPEN&&(ee=this._input.next(),W=this._create_token(N.CONTROL_FLOW_CLOSE,ee));return W},R.prototype._read_close=function(S,$){var ee=null,W=null;return $&&$.type===N.TAG_OPEN&&($.text[0]==="<"&&(S===">"||S==="/"&&this._input.peek(1)===">")?(ee=this._input.next(),S==="/"&&(ee+=this._input.next()),W=this._create_token(N.TAG_CLOSE,ee)):$.text[0]==="{"&&S==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),W=this._create_token(N.TAG_CLOSE,"}}"))),W},R.prototype._read_attribute=function(S,$,ee){var W=null,ne="";if(ee&&ee.text[0]==="<")if(S==="=")W=this._create_token(N.EQUALS,this._input.next());else if(S==='"'||S==="'"){var ue=this._input.next();S==='"'?ue+=this.__patterns.double_quote.read():ue+=this.__patterns.single_quote.read(),W=this._create_token(N.VALUE,ue)}else ne=this.__patterns.attribute.read(),ne&&($.type===N.EQUALS?W=this._create_token(N.VALUE,ne):W=this._create_token(N.ATTRIBUTE,ne));return W},R.prototype._is_content_unformatted=function(S){return this._options.void_elements.indexOf(S)===-1&&(this._options.content_unformatted.indexOf(S)!==-1||this._options.unformatted.indexOf(S)!==-1)},R.prototype._read_raw_content=function(S,$,ee){var W="";if(ee&&ee.text[0]==="{")W=this.__patterns.handlebars_raw_close.read();else if($.type===N.TAG_CLOSE&&$.opened.text[0]==="<"&&$.text[0]!=="/"){var ne=$.opened.text.substr(1).toLowerCase();this._is_content_unformatted(ne)&&(W=this._input.readUntil(new RegExp("</"+ne+"[\\n\\r\\t ]*?>","ig")))}return W?this._create_token(N.TEXT,W):null},R.prototype._read_script_and_style=function(S,$){if($.type===N.TAG_CLOSE&&$.opened.text[0]==="<"&&$.text[0]!=="/"){var ee=$.opened.text.substr(1).toLowerCase();if(ee==="script"||ee==="style"){var W=this._read_comment_or_cdata(S);if(W)return W.type=N.TEXT,W;var ne=this._input.readUntil(new RegExp("</"+ee+"[\\n\\r\\t ]*?>","ig"));if(ne)return this._create_token(N.TEXT,ne)}}return null},R.prototype._read_content_word=function(S,$){var ee="";return this._options.unformatted_content_delimiter&&S===this._options.unformatted_content_delimiter[0]&&(ee=this.__patterns.unformatted_content_delimiter.read()),ee||(ee=$&&$.type===N.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),ee?this._create_token(N.TEXT,ee):null},T.exports.Tokenizer=R,T.exports.TOKEN=N}],le={};function o(T){var m=le[T];if(m!==void 0)return m.exports;var y=le[T]={exports:{}};return ge[T](y,y.exports,o),y.exports}var b=o(18);oe=b})();var me=oe;if(1)p=[w,w(58553),w(87804)],fe=function(ge){var le=w(58553),o=w(87804);return{html_beautify:function(b,T){return me(b,T,le.js_beautify,o.css_beautify)}}}.apply(jt,p),fe!==void 0&&(Ln.exports=fe);else var O,d})()},58553:function(Ln,jt){var w,p;(function(){var fe;(function(){"use strict";var me=[function(le,o,b){var T=b(1).Beautifier,m=b(5).Options;function y(x,L){var U=new T(x,L);return U.beautify()}le.exports=y,le.exports.defaultOptions=function(){return new m}},function(le,o,b){var T=b(2).Output,m=b(3).Token,y=b(4),x=b(5).Options,L=b(7).Tokenizer,U=b(7).line_starters,V=b(7).positionable_operators,te=b(7).TOKEN;function N(v,Z){return Z.indexOf(v)!==-1}function B(v){return v.replace(/^\s+/g,"")}function R(v){for(var Z={},ce=0;ce<v.length;ce++)Z[v[ce].replace(/-/g,"_")]=v[ce];return Z}function S(v,Z){return v&&v.type===te.RESERVED&&v.text===Z}function $(v,Z){return v&&v.type===te.RESERVED&&N(v.text,Z)}var ee=["case","return","do","if","throw","else","await","break","continue","async"],W=["before-newline","after-newline","preserve-newline"],ne=R(W),ue=[ne.before_newline,ne.preserve_newline],he={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Oe(v,Z){Z.multiline_frame||Z.mode===he.ForInitializer||Z.mode===he.Conditional||v.remove_indent(Z.start_line_index)}function G(v){v=v.replace(y.allLineBreaks,`
|
|
`);for(var Z=[],ce=v.indexOf(`
|
|
`);ce!==-1;)Z.push(v.substring(0,ce)),v=v.substring(ce+1),ce=v.indexOf(`
|
|
`);return v.length&&Z.push(v),Z}function P(v){return v===he.ArrayLiteral}function Q(v){return N(v,[he.Expression,he.ForInitializer,he.Conditional])}function q(v,Z){for(var ce=0;ce<v.length;ce++){var Xe=v[ce].trim();if(Xe.charAt(0)!==Z)return!1}return!0}function re(v,Z){for(var ce=0,Xe=v.length,We;ce<Xe;ce++)if(We=v[ce],We&&We.indexOf(Z)!==0)return!1;return!0}function J(v,Z){Z=Z||{},this._source_text=v||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new x(Z)}J.prototype.create_flags=function(v,Z){var ce=0;v&&(ce=v.indentation_level,!this._output.just_added_newline()&&v.line_indent_level>ce&&(ce=v.line_indent_level));var Xe={mode:Z,parent:v,last_token:v?v.last_token:new m(te.START_BLOCK,""),last_word:v?v.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:ce,alignment:0,line_indent_level:v?v.line_indent_level:ce,start_line_index:this._output.get_line_number(),ternary_depth:0};return Xe},J.prototype._reset=function(v){var Z=v.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new T(this._options,Z),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(he.BlockStatement);var ce=new L(v,this._options);return this._tokens=ce.tokenize(),v},J.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var v,Z=this._reset(this._source_text),ce=this._options.eol;this._options.eol==="auto"&&(ce=`
|
|
`,Z&&y.lineBreak.test(Z||"")&&(ce=Z.match(y.lineBreak)[0]));for(var Xe=this._tokens.next();Xe;)this.handle_token(Xe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Xe,Xe=this._tokens.next();return v=this._output.get_code(ce),v},J.prototype.handle_token=function(v,Z){v.type===te.START_EXPR?this.handle_start_expr(v):v.type===te.END_EXPR?this.handle_end_expr(v):v.type===te.START_BLOCK?this.handle_start_block(v):v.type===te.END_BLOCK?this.handle_end_block(v):v.type===te.WORD?this.handle_word(v):v.type===te.RESERVED?this.handle_word(v):v.type===te.SEMICOLON?this.handle_semicolon(v):v.type===te.STRING?this.handle_string(v):v.type===te.EQUALS?this.handle_equals(v):v.type===te.OPERATOR?this.handle_operator(v):v.type===te.COMMA?this.handle_comma(v):v.type===te.BLOCK_COMMENT?this.handle_block_comment(v,Z):v.type===te.COMMENT?this.handle_comment(v,Z):v.type===te.DOT?this.handle_dot(v):v.type===te.EOF?this.handle_eof(v):v.type===te.UNKNOWN?this.handle_unknown(v,Z):this.handle_unknown(v,Z)},J.prototype.handle_whitespace_and_comments=function(v,Z){var ce=v.newlines,Xe=this._options.keep_array_indentation&&P(this._flags.mode);if(v.comments_before)for(var We=v.comments_before.next();We;)this.handle_whitespace_and_comments(We,Z),this.handle_token(We,Z),We=v.comments_before.next();if(Xe)for(var Dt=0;Dt<ce;Dt+=1)this.print_newline(Dt>0,Z);else if(this._options.max_preserve_newlines&&ce>this._options.max_preserve_newlines&&(ce=this._options.max_preserve_newlines),this._options.preserve_newlines&&ce>1){this.print_newline(!1,Z);for(var vt=1;vt<ce;vt+=1)this.print_newline(!0,Z)}};var g=["async","break","continue","return","throw","yield"];J.prototype.allow_wrap_or_preserved_newline=function(v,Z){if(Z=Z===void 0?!1:Z,!this._output.just_added_newline()){var ce=this._options.preserve_newlines&&v.newlines||Z,Xe=N(this._flags.last_token.text,V)||N(v.text,V);if(Xe){var We=N(this._flags.last_token.text,V)&&N(this._options.operator_position,ue)||N(v.text,V);ce=ce&&We}if(ce)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if($(this._flags.last_token,g))return;this._output.set_wrap_point()}}},J.prototype.print_newline=function(v,Z){if(!Z&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==te.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var ce=this._tokens.peek();this._flags.mode===he.Statement&&!(this._flags.if_block&&S(ce,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(v)&&(this._flags.multiline_frame=!0)},J.prototype.print_token_line_indentation=function(v){this._output.just_added_newline()&&(this._options.keep_array_indentation&&v.newlines&&(v.text==="["||P(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(v.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},J.prototype.print_token=function(v){if(this._output.raw){this._output.add_raw_token(v);return}if(this._options.comma_first&&v.previous&&v.previous.type===te.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var Z=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(Z),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(v),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(v),this._output.non_breaking_space=!0,this._output.add_token(v.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},J.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},J.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},J.prototype.set_mode=function(v){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,v),this._flags=this.create_flags(this._previous_flags,v),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},J.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===he.Statement&&Oe(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},J.prototype.start_of_object_property=function(){return this._flags.parent.mode===he.ObjectLiteral&&this._flags.mode===he.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||$(this._flags.last_token,["get","set"]))},J.prototype.start_of_statement=function(v){var Z=!1;return Z=Z||$(this._flags.last_token,["var","let","const"])&&v.type===te.WORD,Z=Z||S(this._flags.last_token,"do"),Z=Z||!(this._flags.parent.mode===he.ObjectLiteral&&this._flags.mode===he.Statement)&&$(this._flags.last_token,g)&&!v.newlines,Z=Z||S(this._flags.last_token,"else")&&!(S(v,"if")&&!v.comments_before),Z=Z||this._flags.last_token.type===te.END_EXPR&&(this._previous_flags.mode===he.ForInitializer||this._previous_flags.mode===he.Conditional),Z=Z||this._flags.last_token.type===te.WORD&&this._flags.mode===he.BlockStatement&&!this._flags.in_case&&!(v.text==="--"||v.text==="++")&&this._last_last_text!=="function"&&v.type!==te.WORD&&v.type!==te.RESERVED,Z=Z||this._flags.mode===he.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||$(this._flags.last_token,["get","set"])),Z?(this.set_mode(he.Statement),this.indent(),this.handle_whitespace_and_comments(v,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v,$(v,["do","for","if","while"])),!0):!1},J.prototype.handle_start_expr=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v);var Z=he.Expression;if(v.text==="["){if(this._flags.last_token.type===te.WORD||this._flags.last_token.text===")"){$(this._flags.last_token,U)&&(this._output.space_before_token=!0),this.print_token(v),this.set_mode(Z),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}Z=he.ArrayLiteral,P(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),N(this._flags.last_token.type,[te.START_EXPR,te.END_EXPR,te.WORD,te.OPERATOR,te.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===te.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,Z=he.ForInitializer):N(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,Z=he.Conditional):N(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&v.whitespace_before===""?this._output.space_before_token=!1:(N(this._flags.last_token.text,U)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===te.EQUALS||this._flags.last_token.type===te.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v);else if(this._flags.last_token.type===te.WORD){this._output.space_before_token=!1;var ce=this._tokens.peek(-3);if(this._options.space_after_named_function&&ce){var Xe=this._tokens.peek(-4);$(ce,["async","function"])||ce.text==="*"&&$(Xe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===he.ObjectLiteral?(ce.text==="{"||ce.text===","||ce.text==="*"&&(Xe.text==="{"||Xe.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(v);(this._flags.last_token.type===te.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(N(this._last_last_text,["function","yield"])||this._flags.mode===he.ObjectLiteral&&N(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===te.START_BLOCK?this.print_newline():(this._flags.last_token.type===te.END_EXPR||this._flags.last_token.type===te.START_EXPR||this._flags.last_token.type===te.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===te.COMMA)&&this.allow_wrap_or_preserved_newline(v,v.newlines),this.print_token(v),this.set_mode(Z),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},J.prototype.handle_end_expr=function(v){for(;this._flags.mode===he.Statement;)this.restore_mode();this.handle_whitespace_and_comments(v),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(v,v.text==="]"&&P(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===te.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(v),this.restore_mode(),Oe(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===he.Conditional&&(this._previous_flags.mode=he.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},J.prototype.handle_start_block=function(v){this.handle_whitespace_and_comments(v);var Z=this._tokens.peek(),ce=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===te.END_EXPR?(this.set_mode(he.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(he.BlockStatement):ce&&(N(ce.text,[":",","])&&N(Z.type,[te.STRING,te.WORD,te.RESERVED])||N(Z.text,["get","set","..."])&&N(ce.type,[te.WORD,te.RESERVED]))?N(this._last_last_text,["class","interface"])&&!N(ce.text,[":",","])?this.set_mode(he.BlockStatement):this.set_mode(he.ObjectLiteral):this._flags.last_token.type===te.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(he.BlockStatement):N(this._flags.last_token.type,[te.EQUALS,te.START_EXPR,te.COMMA,te.OPERATOR])||$(this._flags.last_token,["return","throw","import","default"])?this.set_mode(he.ObjectLiteral):this.set_mode(he.BlockStatement),this._flags.last_token&&$(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Xe=!Z.comments_before&&Z.text==="}",We=Xe&&this._flags.last_word==="function"&&this._flags.last_token.type===te.END_EXPR;if(this._options.brace_preserve_inline){var Dt=0,vt=null;this._flags.inline_frame=!0;do if(Dt+=1,vt=this._tokens.peek(Dt-1),vt.newlines){this._flags.inline_frame=!1;break}while(vt.type!==te.EOF&&!(vt.type===te.END_BLOCK&&vt.opened===v))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&v.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==te.OPERATOR&&(We||this._flags.last_token.type===te.EQUALS||$(this._flags.last_token,ee)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(P(this._previous_flags.mode)&&(this._flags.last_token.type===te.START_EXPR||this._flags.last_token.type===te.COMMA)&&((this._flags.last_token.type===te.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===te.COMMA||this._flags.last_token.type===te.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(v),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==te.OPERATOR&&this._flags.last_token.type!==te.START_EXPR&&(N(this._flags.last_token.type,[te.START_BLOCK,te.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(v),this.indent(),!Xe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},J.prototype.handle_end_block=function(v){for(this.handle_whitespace_and_comments(v);this._flags.mode===he.Statement;)this.restore_mode();var Z=this._flags.last_token.type===te.START_BLOCK;this._flags.inline_frame&&!Z?this._output.space_before_token=!0:this._options.brace_style==="expand"?Z||this.print_newline():Z||(P(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(v)},J.prototype.handle_word=function(v){if(v.type===te.RESERVED){if(N(v.text,["set","get"])&&this._flags.mode!==he.ObjectLiteral)v.type=te.WORD;else if(v.text==="import"&&N(this._tokens.peek().text,["(","."]))v.type=te.WORD;else if(N(v.text,["as","from"])&&!this._flags.import_block)v.type=te.WORD;else if(this._flags.mode===he.ObjectLiteral){var Z=this._tokens.peek();Z.text===":"&&(v.type=te.WORD)}}if(this.start_of_statement(v)?$(this._flags.last_token,["var","let","const"])&&v.type===te.WORD&&(this._flags.declaration_statement=!0):v.newlines&&!Q(this._flags.mode)&&(this._flags.last_token.type!==te.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==te.EQUALS&&(this._options.preserve_newlines||!$(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(v),this.print_newline()):this.handle_whitespace_and_comments(v),this._flags.do_block&&!this._flags.do_while)if(S(v,"while")){this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&S(v,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===he.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&$(v,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(v),this._flags.in_case=!0;return}if((this._flags.last_token.type===te.COMMA||this._flags.last_token.type===te.START_EXPR||this._flags.last_token.type===te.EQUALS||this._flags.last_token.type===te.OPERATOR)&&!this.start_of_object_property()&&!(N(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===he.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(v),S(v,"function")){(N(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(N(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===te.OPERATOR))&&!this._output.just_added_blankline()&&!v.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===te.RESERVED||this._flags.last_token.type===te.WORD?$(this._flags.last_token,["get","set","new","export"])||$(this._flags.last_token,g)?this._output.space_before_token=!0:S(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===te.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(Q(this._flags.mode)||P(this._flags.mode))||this.print_newline(),this.print_token(v),this._flags.last_word=v.text;return}var ce="NONE";if(this._flags.last_token.type===te.END_BLOCK?this._previous_flags.inline_frame?ce="SPACE":$(v,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&v.newlines?ce="NEWLINE":(ce="SPACE",this._output.space_before_token=!0):ce="NEWLINE":this._flags.last_token.type===te.SEMICOLON&&this._flags.mode===he.BlockStatement?ce="NEWLINE":this._flags.last_token.type===te.SEMICOLON&&Q(this._flags.mode)?ce="SPACE":this._flags.last_token.type===te.STRING?ce="NEWLINE":this._flags.last_token.type===te.RESERVED||this._flags.last_token.type===te.WORD||this._flags.last_token.text==="*"&&(N(this._last_last_text,["function","yield"])||this._flags.mode===he.ObjectLiteral&&N(this._last_last_text,["{",","]))?ce="SPACE":this._flags.last_token.type===te.START_BLOCK?this._flags.inline_frame?ce="SPACE":ce="NEWLINE":this._flags.last_token.type===te.END_EXPR&&(this._output.space_before_token=!0,ce="NEWLINE"),$(v,U)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?ce="SPACE":ce="NEWLINE"),$(v,["else","catch","finally"]))if((!(this._flags.last_token.type===te.END_BLOCK&&this._previous_flags.mode===he.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&v.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Xe=this._output.current_line;Xe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else ce==="NEWLINE"?$(this._flags.last_token,ee)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&$(v,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==te.END_EXPR?(this._flags.last_token.type!==te.START_EXPR||!$(v,["var","let","const"]))&&this._flags.last_token.text!==":"&&(S(v,"if")&&S(v.previous,"else")?this._output.space_before_token=!0:this.print_newline()):$(v,U)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&P(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():ce==="SPACE"&&(this._output.space_before_token=!0);v.previous&&(v.previous.type===te.WORD||v.previous.type===te.RESERVED)&&(this._output.space_before_token=!0),this.print_token(v),this._flags.last_word=v.text,v.type===te.RESERVED&&(v.text==="do"?this._flags.do_block=!0:v.text==="if"?this._flags.if_block=!0:v.text==="import"?this._flags.import_block=!0:this._flags.import_block&&S(v,"from")&&(this._flags.import_block=!1))},J.prototype.handle_semicolon=function(v){this.start_of_statement(v)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(v);for(var Z=this._tokens.peek();this._flags.mode===he.Statement&&!(this._flags.if_block&&S(Z,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(v)},J.prototype.handle_string=function(v){v.text.startsWith("`")&&v.newlines===0&&v.whitespace_before===""&&(v.previous.text===")"||this._flags.last_token.type===te.WORD)||(this.start_of_statement(v)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(v),this._flags.last_token.type===te.RESERVED||this._flags.last_token.type===te.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===te.COMMA||this._flags.last_token.type===te.START_EXPR||this._flags.last_token.type===te.EQUALS||this._flags.last_token.type===te.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v):v.text.startsWith("`")&&this._flags.last_token.type===te.END_EXPR&&(v.previous.text==="]"||v.previous.text===")")&&v.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(v)},J.prototype.handle_equals=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0},J.prototype.handle_comma=function(v){this.handle_whitespace_and_comments(v,!0),this.print_token(v),this._output.space_before_token=!0,this._flags.declaration_statement?(Q(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(v)):this._flags.mode===he.ObjectLiteral||this._flags.mode===he.Statement&&this._flags.parent.mode===he.ObjectLiteral?(this._flags.mode===he.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(v)},J.prototype.handle_operator=function(v){var Z=v.text==="*"&&($(this._flags.last_token,["function","yield"])||N(this._flags.last_token.type,[te.START_BLOCK,te.COMMA,te.END_BLOCK,te.SEMICOLON])),ce=N(v.text,["-","+"])&&(N(this._flags.last_token.type,[te.START_BLOCK,te.START_EXPR,te.EQUALS,te.OPERATOR])||N(this._flags.last_token.text,U)||this._flags.last_token.text===",");if(!this.start_of_statement(v)){var Xe=!Z;this.handle_whitespace_and_comments(v,Xe)}if(v.text==="*"&&this._flags.last_token.type===te.DOT){this.print_token(v);return}if(v.text==="::"){this.print_token(v);return}if(N(v.text,["-","+"])&&this.start_of_object_property()){this.print_token(v);return}if(this._flags.last_token.type===te.OPERATOR&&N(this._options.operator_position,ue)&&this.allow_wrap_or_preserved_newline(v),v.text===":"&&this._flags.in_case){this.print_token(v),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==te.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var We=!0,Dt=!0,vt=!1;if(v.text===":"?this._flags.ternary_depth===0?We=!1:(this._flags.ternary_depth-=1,vt=!0):v.text==="?"&&(this._flags.ternary_depth+=1),!ce&&!Z&&this._options.preserve_newlines&&N(v.text,V)){var $t=v.text===":",Ht=$t&&vt,ke=$t&&!vt;switch(this._options.operator_position){case ne.before_newline:this._output.space_before_token=!ke,this.print_token(v),(!$t||Ht)&&this.allow_wrap_or_preserved_newline(v),this._output.space_before_token=!0;return;case ne.after_newline:this._output.space_before_token=!0,!$t||Ht?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(v):this._output.space_before_token=!1,this.print_token(v),this._output.space_before_token=!0;return;case ne.preserve_newline:ke||this.allow_wrap_or_preserved_newline(v),We=!(this._output.just_added_newline()||ke),this._output.space_before_token=We,this.print_token(v),this._output.space_before_token=!0;return}}if(Z){this.allow_wrap_or_preserved_newline(v),We=!1;var Bt=this._tokens.peek();Dt=Bt&&N(Bt.type,[te.WORD,te.RESERVED])}else if(v.text==="...")this.allow_wrap_or_preserved_newline(v),We=this._flags.last_token.type===te.START_BLOCK,Dt=!1;else if(N(v.text,["--","++","!","~"])||ce){if((this._flags.last_token.type===te.COMMA||this._flags.last_token.type===te.START_EXPR)&&this.allow_wrap_or_preserved_newline(v),We=!1,Dt=!1,v.newlines&&(v.text==="--"||v.text==="++"||v.text==="~")){var xn=$(this._flags.last_token,ee)&&v.newlines;xn&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(xn,!0)}this._flags.last_token.text===";"&&Q(this._flags.mode)&&(We=!0),this._flags.last_token.type===te.RESERVED?We=!0:this._flags.last_token.type===te.END_EXPR?We=!(this._flags.last_token.text==="]"&&(v.text==="--"||v.text==="++")):this._flags.last_token.type===te.OPERATOR&&(We=N(v.text,["--","-","++","+"])&&N(this._flags.last_token.text,["--","-","++","+"]),N(v.text,["+","-"])&&N(this._flags.last_token.text,["--","++"])&&(Dt=!0)),(this._flags.mode===he.BlockStatement&&!this._flags.inline_frame||this._flags.mode===he.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||We,this.print_token(v),this._output.space_before_token=Dt},J.prototype.handle_block_comment=function(v,Z){if(this._output.raw){this._output.add_raw_token(v),v.directives&&v.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(v.directives){this.print_newline(!1,Z),this.print_token(v),v.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!y.newline.test(v.text)&&!v.newlines){this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0;return}else this.print_block_commment(v,Z)},J.prototype.print_block_commment=function(v,Z){var ce=G(v.text),Xe,We=!1,Dt=!1,vt=v.whitespace_before,$t=vt.length;if(this.print_newline(!1,Z),this.print_token_line_indentation(v),this._output.add_token(ce[0]),this.print_newline(!1,Z),ce.length>1){for(ce=ce.slice(1),We=q(ce,"*"),Dt=re(ce,vt),We&&(this._flags.alignment=1),Xe=0;Xe<ce.length;Xe++)We?(this.print_token_line_indentation(v),this._output.add_token(B(ce[Xe]))):Dt&&ce[Xe]?(this.print_token_line_indentation(v),this._output.add_token(ce[Xe].substring($t))):(this._output.current_line.set_indent(-1),this._output.add_token(ce[Xe])),this.print_newline(!1,Z);this._flags.alignment=0}},J.prototype.handle_comment=function(v,Z){v.newlines?this.print_newline(!1,Z):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(v),this.print_newline(!1,Z)},J.prototype.handle_dot=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),$(this._flags.last_token,ee)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(v,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(v)},J.prototype.handle_unknown=function(v,Z){this.print_token(v),v.text[v.text.length-1]===`
|
|
`&&this.print_newline(!1,Z)},J.prototype.handle_eof=function(v){for(;this._flags.mode===he.Statement;)this.restore_mode();this.handle_whitespace_and_comments(v)},le.exports.Beautifier=J},function(le){function o(m){this.__parent=m,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var m=new o(this.__parent);return m.set_indent(this.__indent_count,this.__alignment_count),m},o.prototype.item=function(m){return m<0?this.__items[this.__items.length+m]:this.__items[m]},o.prototype.has_match=function(m){for(var y=this.__items.length-1;y>=0;y--)if(this.__items[y].match(m))return!0;return!1},o.prototype.set_indent=function(m,y){this.is_empty()&&(this.__indent_count=m||0,this.__alignment_count=y||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(m){this.__items.push(m);var y=m.lastIndexOf(`
|
|
`);y!==-1?this.__character_count=m.length-y:this.__character_count+=m.length},o.prototype.pop=function(){var m=null;return this.is_empty()||(m=this.__items.pop(),this.__character_count-=m.length),m},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var m="";return this.is_empty()?this.__parent.indent_empty_lines&&(m=this.__parent.get_indent_string(this.__indent_count)):(m=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),m+=this.__items.join("")),m};function b(m,y){this.__cache=[""],this.__indent_size=m.indent_size,this.__indent_string=m.indent_char,m.indent_with_tabs||(this.__indent_string=new Array(m.indent_size+1).join(m.indent_char)),y=y||"",m.indent_level>0&&(y=new Array(m.indent_level+1).join(this.__indent_string)),this.__base_string=y,this.__base_string_length=y.length}b.prototype.get_indent_size=function(m,y){var x=this.__base_string_length;return y=y||0,m<0&&(x=0),x+=m*this.__indent_size,x+=y,x},b.prototype.get_indent_string=function(m,y){var x=this.__base_string;return y=y||0,m<0&&(m=0,x=""),y+=m*this.__indent_size,this.__ensure_cache(y),x+=this.__cache[y],x},b.prototype.__ensure_cache=function(m){for(;m>=this.__cache.length;)this.__add_column()},b.prototype.__add_column=function(){var m=this.__cache.length,y=0,x="";this.__indent_size&&m>=this.__indent_size&&(y=Math.floor(m/this.__indent_size),m-=y*this.__indent_size,x=new Array(y+1).join(this.__indent_string)),m&&(x+=new Array(m+1).join(" ")),this.__cache.push(x)};function T(m,y){this.__indent_cache=new b(m,y),this.raw=!1,this._end_with_newline=m.end_with_newline,this.indent_size=m.indent_size,this.wrap_line_length=m.wrap_line_length,this.indent_empty_lines=m.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}T.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},T.prototype.get_line_number=function(){return this.__lines.length},T.prototype.get_indent_string=function(m,y){return this.__indent_cache.get_indent_string(m,y)},T.prototype.get_indent_size=function(m,y){return this.__indent_cache.get_indent_size(m,y)},T.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},T.prototype.add_new_line=function(m){return this.is_empty()||!m&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},T.prototype.get_code=function(m){this.trim(!0);var y=this.current_line.pop();y&&(y[y.length-1]===`
|
|
`&&(y=y.replace(/\n+$/g,"")),this.current_line.push(y)),this._end_with_newline&&this.__add_outputline();var x=this.__lines.join(`
|
|
`);return m!==`
|
|
`&&(x=x.replace(/[\n]/g,m)),x},T.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},T.prototype.set_indent=function(m,y){return m=m||0,y=y||0,this.next_line.set_indent(m,y),this.__lines.length>1?(this.current_line.set_indent(m,y),!0):(this.current_line.set_indent(),!1)},T.prototype.add_raw_token=function(m){for(var y=0;y<m.newlines;y++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(m.whitespace_before),this.current_line.push(m.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},T.prototype.add_token=function(m){this.__add_space_before_token(),this.current_line.push(m),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},T.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},T.prototype.remove_indent=function(m){for(var y=this.__lines.length;m<y;)this.__lines[m]._remove_indent(),m++;this.current_line._remove_wrap_indent()},T.prototype.trim=function(m){for(m=m===void 0?!1:m,this.current_line.trim();m&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},T.prototype.just_added_newline=function(){return this.current_line.is_empty()},T.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},T.prototype.ensure_empty_line_above=function(m,y){for(var x=this.__lines.length-2;x>=0;){var L=this.__lines[x];if(L.is_empty())break;if(L.item(0).indexOf(m)!==0&&L.item(-1)!==y){this.__lines.splice(x+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}x--}},le.exports.Output=T},function(le){function o(b,T,m,y){this.type=b,this.text=T,this.comments_before=null,this.newlines=m||0,this.whitespace_before=y||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}le.exports.Token=o},function(le,o){var b="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",T="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",m="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",y="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",x="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",L="(?:"+x+"|["+b+m+"])",U="(?:"+x+"|["+T+m+y+"])*";o.identifier=new RegExp(L+U,"g"),o.identifierStart=new RegExp(L),o.identifierMatch=new RegExp("(?:"+x+"|["+T+m+y+"])+");var V=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;o.newline=/[\n\r\u2028\u2029]/,o.lineBreak=new RegExp(`\r
|
|
|`+o.newline.source),o.allLineBreaks=new RegExp(o.lineBreak.source,"g")},function(le,o,b){var T=b(6).Options,m=["before-newline","after-newline","preserve-newline"];function y(x){T.call(this,x,"js");var L=this.raw_options.brace_style||null;L==="expand-strict"?this.raw_options.brace_style="expand":L==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var U=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var V=0;V<U.length;V++)U[V]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=U[V];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",m),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}y.prototype=new T,le.exports.Options=y},function(le){function o(m,y){this.raw_options=b(m,y),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}o.prototype._get_array=function(m,y){var x=this.raw_options[m],L=y||[];return typeof x=="object"?x!==null&&typeof x.concat=="function"&&(L=x.concat()):typeof x=="string"&&(L=x.split(/[^a-zA-Z0-9_\/\-]+/)),L},o.prototype._get_boolean=function(m,y){var x=this.raw_options[m],L=x===void 0?!!y:!!x;return L},o.prototype._get_characters=function(m,y){var x=this.raw_options[m],L=y||"";return typeof x=="string"&&(L=x.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),L},o.prototype._get_number=function(m,y){var x=this.raw_options[m];y=parseInt(y,10),isNaN(y)&&(y=0);var L=parseInt(x,10);return isNaN(L)&&(L=y),L},o.prototype._get_selection=function(m,y,x){var L=this._get_selection_list(m,y,x);if(L.length!==1)throw new Error("Invalid Option Value: The option '"+m+`' can only be one of the following values:
|
|
`+y+`
|
|
You passed in: '`+this.raw_options[m]+"'");return L[0]},o.prototype._get_selection_list=function(m,y,x){if(!y||y.length===0)throw new Error("Selection list cannot be empty.");if(x=x||[y[0]],!this._is_valid_selection(x,y))throw new Error("Invalid Default Value!");var L=this._get_array(m,x);if(!this._is_valid_selection(L,y))throw new Error("Invalid Option Value: The option '"+m+`' can contain only the following values:
|
|
`+y+`
|
|
You passed in: '`+this.raw_options[m]+"'");return L},o.prototype._is_valid_selection=function(m,y){return m.length&&y.length&&!m.some(function(x){return y.indexOf(x)===-1})};function b(m,y){var x={};m=T(m);var L;for(L in m)L!==y&&(x[L]=m[L]);if(y&&m[y])for(L in m[y])x[L]=m[y][L];return x}function T(m){var y={},x;for(x in m){var L=x.replace(/-/g,"_");y[L]=m[x]}return y}le.exports.Options=o,le.exports.normalizeOpts=T,le.exports.mergeOpts=b},function(le,o,b){var T=b(8).InputScanner,m=b(9).Tokenizer,y=b(9).TOKEN,x=b(13).Directives,L=b(4),U=b(12).Pattern,V=b(14).TemplatablePattern;function te(q,re){return re.indexOf(q)!==-1}var N={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:y.START,RAW:y.RAW,EOF:y.EOF},B=new x(/\/\*/,/\*\//),R=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,S=/[0-9]/,$=/[^\d\.]/,ee=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),W=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";W=W.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),W="\\?\\.(?!\\d) "+W,W=W.replace(/ /g,"|");var ne=new RegExp(W),ue="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),he=ue.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Oe=new RegExp("^(?:"+he.join("|")+")$"),G,P=function(q,re){m.call(this,q,re),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var J=new U(this._input),g=new V(this._input).read_options(this._options);this.__patterns={template:g,identifier:g.starting_with(L.identifier).matching(L.identifierMatch),number:J.matching(R),punct:J.matching(ne),comment:J.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:J.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:J.matching(/<!--/),html_comment_end:J.matching(/-->/),include:J.starting_with(/#include/).until_after(L.lineBreak),shebang:J.starting_with(/#!/).until_after(L.lineBreak),xml:J.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:g.until(/['\\\n\r\u2028\u2029]/),double_quote:g.until(/["\\\n\r\u2028\u2029]/),template_text:g.until(/[`\\$]/),template_expression:g.until(/[`}\\]/)}};P.prototype=new m,P.prototype._is_comment=function(q){return q.type===N.COMMENT||q.type===N.BLOCK_COMMENT||q.type===N.UNKNOWN},P.prototype._is_opening=function(q){return q.type===N.START_BLOCK||q.type===N.START_EXPR},P.prototype._is_closing=function(q,re){return(q.type===N.END_BLOCK||q.type===N.END_EXPR)&&re&&(q.text==="]"&&re.text==="["||q.text===")"&&re.text==="("||q.text==="}"&&re.text==="{")},P.prototype._reset=function(){G=!1},P.prototype._get_next_token=function(q,re){var J=null;this._readWhitespace();var g=this._input.peek();return g===null?this._create_token(N.EOF,""):(J=J||this._read_non_javascript(g),J=J||this._read_string(g),J=J||this._read_pair(g,this._input.peek(1)),J=J||this._read_word(q),J=J||this._read_singles(g),J=J||this._read_comment(g),J=J||this._read_regexp(g,q),J=J||this._read_xml(g,q),J=J||this._read_punctuation(),J=J||this._create_token(N.UNKNOWN,this._input.next()),J)},P.prototype._read_word=function(q){var re;if(re=this.__patterns.identifier.read(),re!=="")return re=re.replace(L.allLineBreaks,`
|
|
`),!(q.type===N.DOT||q.type===N.RESERVED&&(q.text==="set"||q.text==="get"))&&Oe.test(re)?(re==="in"||re==="of")&&(q.type===N.WORD||q.type===N.STRING)?this._create_token(N.OPERATOR,re):this._create_token(N.RESERVED,re):this._create_token(N.WORD,re);if(re=this.__patterns.number.read(),re!=="")return this._create_token(N.WORD,re)},P.prototype._read_singles=function(q){var re=null;return q==="("||q==="["?re=this._create_token(N.START_EXPR,q):q===")"||q==="]"?re=this._create_token(N.END_EXPR,q):q==="{"?re=this._create_token(N.START_BLOCK,q):q==="}"?re=this._create_token(N.END_BLOCK,q):q===";"?re=this._create_token(N.SEMICOLON,q):q==="."&&$.test(this._input.peek(1))?re=this._create_token(N.DOT,q):q===","&&(re=this._create_token(N.COMMA,q)),re&&this._input.next(),re},P.prototype._read_pair=function(q,re){var J=null;return q==="#"&&re==="{"&&(J=this._create_token(N.START_BLOCK,q+re)),J&&(this._input.next(),this._input.next()),J},P.prototype._read_punctuation=function(){var q=this.__patterns.punct.read();if(q!=="")return q==="="?this._create_token(N.EQUALS,q):q==="?."?this._create_token(N.DOT,q):this._create_token(N.OPERATOR,q)},P.prototype._read_non_javascript=function(q){var re="";if(q==="#"){if(this._is_first_token()&&(re=this.__patterns.shebang.read(),re))return this._create_token(N.UNKNOWN,re.trim()+`
|
|
`);if(re=this.__patterns.include.read(),re)return this._create_token(N.UNKNOWN,re.trim()+`
|
|
`);q=this._input.next();var J="#";if(this._input.hasNext()&&this._input.testChar(S)){do q=this._input.next(),J+=q;while(this._input.hasNext()&&q!=="#"&&q!=="=");return q==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(J+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(J+="{}",this._input.next(),this._input.next())),this._create_token(N.WORD,J)}this._input.back()}else if(q==="<"&&this._is_first_token()){if(re=this.__patterns.html_comment_start.read(),re){for(;this._input.hasNext()&&!this._input.testChar(L.newline);)re+=this._input.next();return G=!0,this._create_token(N.COMMENT,re)}}else if(G&&q==="-"&&(re=this.__patterns.html_comment_end.read(),re))return G=!1,this._create_token(N.COMMENT,re);return null},P.prototype._read_comment=function(q){var re=null;if(q==="/"){var J="";if(this._input.peek(1)==="*"){J=this.__patterns.block_comment.read();var g=B.get_directives(J);g&&g.ignore==="start"&&(J+=B.readIgnored(this._input)),J=J.replace(L.allLineBreaks,`
|
|
`),re=this._create_token(N.BLOCK_COMMENT,J),re.directives=g}else this._input.peek(1)==="/"&&(J=this.__patterns.comment.read(),re=this._create_token(N.COMMENT,J))}return re},P.prototype._read_string=function(q){if(q==="`"||q==="'"||q==='"'){var re=this._input.next();return this.has_char_escapes=!1,q==="`"?re+=this._read_string_recursive("`",!0,"${"):re+=this._read_string_recursive(q),this.has_char_escapes&&this._options.unescape_strings&&(re=Q(re)),this._input.peek()===q&&(re+=this._input.next()),re=re.replace(L.allLineBreaks,`
|
|
`),this._create_token(N.STRING,re)}return null},P.prototype._allow_regexp_or_xml=function(q){return q.type===N.RESERVED&&te(q.text,["return","case","throw","else","do","typeof","yield"])||q.type===N.END_EXPR&&q.text===")"&&q.opened.previous.type===N.RESERVED&&te(q.opened.previous.text,["if","while","for"])||te(q.type,[N.COMMENT,N.START_EXPR,N.START_BLOCK,N.START,N.END_BLOCK,N.OPERATOR,N.EQUALS,N.EOF,N.SEMICOLON,N.COMMA])},P.prototype._read_regexp=function(q,re){if(q==="/"&&this._allow_regexp_or_xml(re)){for(var J=this._input.next(),g=!1,v=!1;this._input.hasNext()&&(g||v||this._input.peek()!==q)&&!this._input.testChar(L.newline);)J+=this._input.peek(),g?g=!1:(g=this._input.peek()==="\\",this._input.peek()==="["?v=!0:this._input.peek()==="]"&&(v=!1)),this._input.next();return this._input.peek()===q&&(J+=this._input.next(),J+=this._input.read(L.identifier)),this._create_token(N.STRING,J)}return null},P.prototype._read_xml=function(q,re){if(this._options.e4x&&q==="<"&&this._allow_regexp_or_xml(re)){var J="",g=this.__patterns.xml.read_match();if(g){for(var v=g[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),Z=v.indexOf("{")===0,ce=0;g;){var Xe=!!g[1],We=g[2],Dt=!!g[g.length-1]||We.slice(0,8)==="![CDATA[";if(!Dt&&(We===v||Z&&We.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Xe?--ce:++ce),J+=g[0],ce<=0)break;g=this.__patterns.xml.read_match()}return g||(J+=this._input.match(/[\s\S]*/g)[0]),J=J.replace(L.allLineBreaks,`
|
|
`),this._create_token(N.STRING,J)}}return null};function Q(q){for(var re="",J=0,g=new T(q),v=null;g.hasNext();)if(v=g.match(/([\s]|[^\\]|\\\\)+/g),v&&(re+=v[0]),g.peek()==="\\"){if(g.next(),g.peek()==="x")v=g.match(/x([0-9A-Fa-f]{2})/g);else if(g.peek()==="u")v=g.match(/u([0-9A-Fa-f]{4})/g),v||(v=g.match(/u\{([0-9A-Fa-f]+)\}/g));else{re+="\\",g.hasNext()&&(re+=g.next());continue}if(!v||(J=parseInt(v[1],16),J>126&&J<=255&&v[0].indexOf("x")===0))return q;J>=0&&J<32||J>1114111?re+="\\"+v[0]:J===34||J===39||J===92?re+="\\"+String.fromCharCode(J):re+=String.fromCharCode(J)}return re}P.prototype._read_string_recursive=function(q,re,J){var g,v;q==="'"?v=this.__patterns.single_quote:q==='"'?v=this.__patterns.double_quote:q==="`"?v=this.__patterns.template_text:q==="}"&&(v=this.__patterns.template_expression);for(var Z=v.read(),ce="";this._input.hasNext();){if(ce=this._input.next(),ce===q||!re&&L.newline.test(ce)){this._input.back();break}else ce==="\\"&&this._input.hasNext()?(g=this._input.peek(),g==="x"||g==="u"?this.has_char_escapes=!0:g==="\r"&&this._input.peek(1)===`
|
|
`&&this._input.next(),ce+=this._input.next()):J&&(J==="${"&&ce==="$"&&this._input.peek()==="{"&&(ce+=this._input.next()),J===ce&&(q==="`"?ce+=this._read_string_recursive("}",re,"`"):ce+=this._read_string_recursive("`",re,"${"),this._input.hasNext()&&(ce+=this._input.next())));ce+=v.read(),Z+=ce}return Z},le.exports.Tokenizer=P,le.exports.TOKEN=N,le.exports.positionable_operators=ee.slice(),le.exports.line_starters=ue.slice()},function(le){var o=RegExp.prototype.hasOwnProperty("sticky");function b(T){this.__input=T||"",this.__input_length=this.__input.length,this.__position=0}b.prototype.restart=function(){this.__position=0},b.prototype.back=function(){this.__position>0&&(this.__position-=1)},b.prototype.hasNext=function(){return this.__position<this.__input_length},b.prototype.next=function(){var T=null;return this.hasNext()&&(T=this.__input.charAt(this.__position),this.__position+=1),T},b.prototype.peek=function(T){var m=null;return T=T||0,T+=this.__position,T>=0&&T<this.__input_length&&(m=this.__input.charAt(T)),m},b.prototype.__match=function(T,m){T.lastIndex=m;var y=T.exec(this.__input);return y&&!(o&&T.sticky)&&y.index!==m&&(y=null),y},b.prototype.test=function(T,m){return m=m||0,m+=this.__position,m>=0&&m<this.__input_length?!!this.__match(T,m):!1},b.prototype.testChar=function(T,m){var y=this.peek(m);return T.lastIndex=0,y!==null&&T.test(y)},b.prototype.match=function(T){var m=this.__match(T,this.__position);return m?this.__position+=m[0].length:m=null,m},b.prototype.read=function(T,m,y){var x="",L;return T&&(L=this.match(T),L&&(x+=L[0])),m&&(L||!T)&&(x+=this.readUntil(m,y)),x},b.prototype.readUntil=function(T,m){var y="",x=this.__position;T.lastIndex=this.__position;var L=T.exec(this.__input);return L?(x=L.index,m&&(x+=L[0].length)):x=this.__input_length,y=this.__input.substring(this.__position,x),this.__position=x,y},b.prototype.readUntilAfter=function(T){return this.readUntil(T,!0)},b.prototype.get_regexp=function(T,m){var y=null,x="g";return m&&o&&(x="y"),typeof T=="string"&&T!==""?y=new RegExp(T,x):T&&(y=new RegExp(T.source,x)),y},b.prototype.get_literal_regexp=function(T){return RegExp(T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},b.prototype.peekUntilAfter=function(T){var m=this.__position,y=this.readUntilAfter(T);return this.__position=m,y},b.prototype.lookBack=function(T){var m=this.__position-1;return m>=T.length&&this.__input.substring(m-T.length,m).toLowerCase()===T},le.exports.InputScanner=b},function(le,o,b){var T=b(8).InputScanner,m=b(3).Token,y=b(10).TokenStream,x=b(11).WhitespacePattern,L={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},U=function(V,te){this._input=new T(V),this._options=te||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new x(this._input)};U.prototype.tokenize=function(){this._input.restart(),this.__tokens=new y,this._reset();for(var V,te=new m(L.START,""),N=null,B=[],R=new y;te.type!==L.EOF;){for(V=this._get_next_token(te,N);this._is_comment(V);)R.add(V),V=this._get_next_token(te,N);R.isEmpty()||(V.comments_before=R,R=new y),V.parent=N,this._is_opening(V)?(B.push(N),N=V):N&&this._is_closing(V,N)&&(V.opened=N,N.closed=V,N=B.pop(),V.parent=N),V.previous=te,te.next=V,this.__tokens.add(V),te=V}return this.__tokens},U.prototype._is_first_token=function(){return this.__tokens.isEmpty()},U.prototype._reset=function(){},U.prototype._get_next_token=function(V,te){this._readWhitespace();var N=this._input.read(/.+/g);return N?this._create_token(L.RAW,N):this._create_token(L.EOF,"")},U.prototype._is_comment=function(V){return!1},U.prototype._is_opening=function(V){return!1},U.prototype._is_closing=function(V,te){return!1},U.prototype._create_token=function(V,te){var N=new m(V,te,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return N},U.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},le.exports.Tokenizer=U,le.exports.TOKEN=L},function(le){function o(b){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=b}o.prototype.restart=function(){this.__position=0},o.prototype.isEmpty=function(){return this.__tokens_length===0},o.prototype.hasNext=function(){return this.__position<this.__tokens_length},o.prototype.next=function(){var b=null;return this.hasNext()&&(b=this.__tokens[this.__position],this.__position+=1),b},o.prototype.peek=function(b){var T=null;return b=b||0,b+=this.__position,b>=0&&b<this.__tokens_length&&(T=this.__tokens[b]),T},o.prototype.add=function(b){this.__parent_token&&(b.parent=this.__parent_token),this.__tokens.push(b),this.__tokens_length+=1},le.exports.TokenStream=o},function(le,o,b){var T=b(12).Pattern;function m(y,x){T.call(this,y,x),x?this._line_regexp=this._input.get_regexp(x._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}m.prototype=new T,m.prototype.__set_whitespace_patterns=function(y,x){y+="\\t ",x+="\\n\\r",this._match_pattern=this._input.get_regexp("["+y+x+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+x+"]")},m.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var y=this._input.read(this._match_pattern);if(y===" ")this.whitespace_before_token=" ";else if(y){var x=this.__split(this._newline_regexp,y);this.newline_count=x.length-1,this.whitespace_before_token=x[this.newline_count]}return y},m.prototype.matching=function(y,x){var L=this._create();return L.__set_whitespace_patterns(y,x),L._update(),L},m.prototype._create=function(){return new m(this._input,this)},m.prototype.__split=function(y,x){y.lastIndex=0;for(var L=0,U=[],V=y.exec(x);V;)U.push(x.substring(L,V.index)),L=V.index+V[0].length,V=y.exec(x);return L<x.length?U.push(x.substring(L,x.length)):U.push(""),U},le.exports.WhitespacePattern=m},function(le){function o(b,T){this._input=b,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,T&&(this._starting_pattern=this._input.get_regexp(T._starting_pattern,!0),this._match_pattern=this._input.get_regexp(T._match_pattern,!0),this._until_pattern=this._input.get_regexp(T._until_pattern),this._until_after=T._until_after)}o.prototype.read=function(){var b=this._input.read(this._starting_pattern);return(!this._starting_pattern||b)&&(b+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),b},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(b){var T=this._create();return T._until_after=!0,T._until_pattern=this._input.get_regexp(b),T._update(),T},o.prototype.until=function(b){var T=this._create();return T._until_after=!1,T._until_pattern=this._input.get_regexp(b),T._update(),T},o.prototype.starting_with=function(b){var T=this._create();return T._starting_pattern=this._input.get_regexp(b,!0),T._update(),T},o.prototype.matching=function(b){var T=this._create();return T._match_pattern=this._input.get_regexp(b,!0),T._update(),T},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},le.exports.Pattern=o},function(le){function o(b,T){b=typeof b=="string"?b:b.source,T=typeof T=="string"?T:T.source,this.__directives_block_pattern=new RegExp(b+/ beautify( \w+[:]\w+)+ /.source+T,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(b+/\sbeautify\signore:end\s/.source+T,"g")}o.prototype.get_directives=function(b){if(!b.match(this.__directives_block_pattern))return null;var T={};this.__directive_pattern.lastIndex=0;for(var m=this.__directive_pattern.exec(b);m;)T[m[1]]=m[2],m=this.__directive_pattern.exec(b);return T},o.prototype.readIgnored=function(b){return b.readUntilAfter(this.__directives_end_ignore_pattern)},le.exports.Directives=o},function(le,o,b){var T=b(12).Pattern,m={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function y(x,L){T.call(this,x,L),this.__template_pattern=null,this._disabled=Object.assign({},m),this._excluded=Object.assign({},m),L&&(this.__template_pattern=this._input.get_regexp(L.__template_pattern),this._excluded=Object.assign(this._excluded,L._excluded),this._disabled=Object.assign(this._disabled,L._disabled));var U=new T(x);this.__patterns={handlebars_comment:U.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:U.starting_with(/{{{/).until_after(/}}}/),handlebars:U.starting_with(/{{/).until_after(/}}/),php:U.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:U.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:U.starting_with(/{%/).until_after(/%}/),django_value:U.starting_with(/{{/).until_after(/}}/),django_comment:U.starting_with(/{#/).until_after(/#}/),smarty:U.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:U.starting_with(/{\*/).until_after(/\*}/),smarty_literal:U.starting_with(/{literal}/).until_after(/{\/literal}/)}}y.prototype=new T,y.prototype._create=function(){return new y(this._input,this)},y.prototype._update=function(){this.__set_templated_pattern()},y.prototype.disable=function(x){var L=this._create();return L._disabled[x]=!0,L._update(),L},y.prototype.read_options=function(x){var L=this._create();for(var U in m)L._disabled[U]=x.templating.indexOf(U)===-1;return L._update(),L},y.prototype.exclude=function(x){var L=this._create();return L._excluded[x]=!0,L._update(),L},y.prototype.read=function(){var x="";this._match_pattern?x=this._input.read(this._starting_pattern):x=this._input.read(this._starting_pattern,this.__template_pattern);for(var L=this._read_template();L;)this._match_pattern?L+=this._input.read(this._match_pattern):L+=this._input.readUntil(this.__template_pattern),x+=L,L=this._read_template();return this._until_after&&(x+=this._input.readUntilAfter(this._until_pattern)),x},y.prototype.__set_templated_pattern=function(){var x=[];this._disabled.php||x.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||x.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||x.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||x.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(x.push(this.__patterns.django._starting_pattern.source),x.push(this.__patterns.django_value._starting_pattern.source),x.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||x.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&x.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+x.join("|")+")")},y.prototype._read_template=function(){var x="",L=this._input.peek();if(L==="<"){var U=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&U==="?"&&(x=x||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&U==="%"&&(x=x||this.__patterns.erb.read())}else L==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(x=x||this.__patterns.handlebars_comment.read(),x=x||this.__patterns.handlebars_unescaped.read(),x=x||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(x=x||this.__patterns.django_value.read()),this._excluded.django||(x=x||this.__patterns.django_comment.read(),x=x||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(x=x||this.__patterns.smarty_comment.read(),x=x||this.__patterns.smarty_literal.read(),x=x||this.__patterns.smarty.read()));return x},le.exports.TemplatablePattern=y}],O={};function d(le){var o=O[le];if(o!==void 0)return o.exports;var b=O[le]={exports:{}};return me[le](b,b.exports,d),b.exports}var ge=d(0);fe=ge})();var oe=fe;w=[],p=function(){return{js_beautify:oe}}.apply(jt,w),p!==void 0&&(Ln.exports=p)})()},7861:function(Ln,jt,w){var p=w(38710),fe=function(O){var d=/[height|width]$/;return d.test(O)},oe=function(O){var d="",ge=Object.keys(O);return ge.forEach(function(le,o){var b=O[le];le=p(le),fe(le)&&typeof b=="number"&&(b=b+"px"),b===!0?d+=le:b===!1?d+="not "+le:d+="("+le+": "+b+")",o<ge.length-1&&(d+=" and ")}),d},me=function(O){var d="";return typeof O=="string"?O:O instanceof Array?(O.forEach(function(ge,le){d+=oe(ge),le<O.length-1&&(d+=", ")}),d):oe(O)};Ln.exports=me},32834:function(Ln){(function(jt,w){Ln.exports=w()})(this,function(){"use strict";function jt(Fe,Ne){for(var Me=0;Me<Ne.length;Me++){var I=Ne[Me];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(Fe,I.key,I)}}function w(Fe,Ne,Me){return Ne&&jt(Fe.prototype,Ne),Me&&jt(Fe,Me),Fe}function p(Fe,Ne){if(Fe){if(typeof Fe=="string")return fe(Fe,Ne);var Me=Object.prototype.toString.call(Fe).slice(8,-1);if(Me==="Object"&&Fe.constructor&&(Me=Fe.constructor.name),Me==="Map"||Me==="Set")return Array.from(Fe);if(Me==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Me))return fe(Fe,Ne)}}function fe(Fe,Ne){(Ne==null||Ne>Fe.length)&&(Ne=Fe.length);for(var Me=0,I=new Array(Ne);Me<Ne;Me++)I[Me]=Fe[Me];return I}function oe(Fe,Ne){var Me=typeof Symbol!="undefined"&&Fe[Symbol.iterator]||Fe["@@iterator"];if(Me)return(Me=Me.call(Fe)).next.bind(Me);if(Array.isArray(Fe)||(Me=p(Fe))||Ne&&Fe&&typeof Fe.length=="number"){Me&&(Fe=Me);var I=0;return function(){return I>=Fe.length?{done:!0}:{done:!1,value:Fe[I++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var me={exports:{}};function O(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function d(Fe){me.exports.defaults=Fe}me.exports={defaults:O(),getDefaults:O,changeDefaults:d};var ge=/[&<>"']/,le=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,b=/[<>"']|&(?!#?\w+;)/g,T={"&":"&","<":"<",">":">",'"':""","'":"'"},m=function(Ne){return T[Ne]};function y(Fe,Ne){if(Ne){if(ge.test(Fe))return Fe.replace(le,m)}else if(o.test(Fe))return Fe.replace(b,m);return Fe}var x=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function L(Fe){return Fe.replace(x,function(Ne,Me){return Me=Me.toLowerCase(),Me==="colon"?":":Me.charAt(0)==="#"?Me.charAt(1)==="x"?String.fromCharCode(parseInt(Me.substring(2),16)):String.fromCharCode(+Me.substring(1)):""})}var U=/(^|[^\[])\^/g;function V(Fe,Ne){Fe=Fe.source||Fe,Ne=Ne||"";var Me={replace:function(ae,de){return de=de.source||de,de=de.replace(U,"$1"),Fe=Fe.replace(ae,de),Me},getRegex:function(){return new RegExp(Fe,Ne)}};return Me}var te=/[^\w:]/g,N=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function B(Fe,Ne,Me){if(Fe){var I;try{I=decodeURIComponent(L(Me)).replace(te,"").toLowerCase()}catch(ae){return null}if(I.indexOf("javascript:")===0||I.indexOf("vbscript:")===0||I.indexOf("data:")===0)return null}Ne&&!N.test(Me)&&(Me=W(Ne,Me));try{Me=encodeURI(Me).replace(/%25/g,"%")}catch(ae){return null}return Me}var R={},S=/^[^:]+:\/*[^/]*$/,$=/^([^:]+:)[\s\S]*$/,ee=/^([^:]+:\/*[^/]*)[\s\S]*$/;function W(Fe,Ne){R[" "+Fe]||(S.test(Fe)?R[" "+Fe]=Fe+"/":R[" "+Fe]=Oe(Fe,"/",!0)),Fe=R[" "+Fe];var Me=Fe.indexOf(":")===-1;return Ne.substring(0,2)==="//"?Me?Ne:Fe.replace($,"$1")+Ne:Ne.charAt(0)==="/"?Me?Ne:Fe.replace(ee,"$1")+Ne:Fe+Ne}var ne={exec:function(){}};function ue(Fe){for(var Ne=1,Me,I;Ne<arguments.length;Ne++){Me=arguments[Ne];for(I in Me)Object.prototype.hasOwnProperty.call(Me,I)&&(Fe[I]=Me[I])}return Fe}function he(Fe,Ne){var Me=Fe.replace(/\|/g,function(de,se,Se){for(var Mt=!1,It=se;--It>=0&&Se[It]==="\\";)Mt=!Mt;return Mt?"|":" |"}),I=Me.split(/ \|/),ae=0;if(I.length>Ne)I.splice(Ne);else for(;I.length<Ne;)I.push("");for(;ae<I.length;ae++)I[ae]=I[ae].trim().replace(/\\\|/g,"|");return I}function Oe(Fe,Ne,Me){var I=Fe.length;if(I===0)return"";for(var ae=0;ae<I;){var de=Fe.charAt(I-ae-1);if(de===Ne&&!Me)ae++;else if(de!==Ne&&Me)ae++;else break}return Fe.substr(0,I-ae)}function G(Fe,Ne){if(Fe.indexOf(Ne[1])===-1)return-1;for(var Me=Fe.length,I=0,ae=0;ae<Me;ae++)if(Fe[ae]==="\\")ae++;else if(Fe[ae]===Ne[0])I++;else if(Fe[ae]===Ne[1]&&(I--,I<0))return ae;return-1}function P(Fe){Fe&&Fe.sanitize&&!Fe.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Q(Fe,Ne){if(Ne<1)return"";for(var Me="";Ne>1;)Ne&1&&(Me+=Fe),Ne>>=1,Fe+=Fe;return Me+Fe}var q={escape:y,unescape:L,edit:V,cleanUrl:B,resolveUrl:W,noopTest:ne,merge:ue,splitCells:he,rtrim:Oe,findClosingBracket:G,checkSanitizeDeprecation:P,repeatString:Q},re=me.exports.defaults,J=q.rtrim,g=q.splitCells,v=q.escape,Z=q.findClosingBracket;function ce(Fe,Ne,Me){var I=Ne.href,ae=Ne.title?v(Ne.title):null,de=Fe[1].replace(/\\([\[\]])/g,"$1");return Fe[0].charAt(0)!=="!"?{type:"link",raw:Me,href:I,title:ae,text:de}:{type:"image",raw:Me,href:I,title:ae,text:v(de)}}function Xe(Fe,Ne){var Me=Fe.match(/^(\s+)(?:```)/);if(Me===null)return Ne;var I=Me[1];return Ne.split(`
|
|
`).map(function(ae){var de=ae.match(/^\s+/);if(de===null)return ae;var se=de[0];return se.length>=I.length?ae.slice(I.length):ae}).join(`
|
|
`)}var We=function(){function Fe(Me){this.options=Me||re}var Ne=Fe.prototype;return Ne.space=function(I){var ae=this.rules.block.newline.exec(I);if(ae)return ae[0].length>1?{type:"space",raw:ae[0]}:{raw:`
|
|
`}},Ne.code=function(I){var ae=this.rules.block.code.exec(I);if(ae){var de=ae[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ae[0],codeBlockStyle:"indented",text:this.options.pedantic?de:J(de,`
|
|
`)}}},Ne.fences=function(I){var ae=this.rules.block.fences.exec(I);if(ae){var de=ae[0],se=Xe(de,ae[3]||"");return{type:"code",raw:de,lang:ae[2]?ae[2].trim():ae[2],text:se}}},Ne.heading=function(I){var ae=this.rules.block.heading.exec(I);if(ae){var de=ae[2].trim();if(/#$/.test(de)){var se=J(de,"#");(this.options.pedantic||!se||/ $/.test(se))&&(de=se.trim())}return{type:"heading",raw:ae[0],depth:ae[1].length,text:de}}},Ne.nptable=function(I){var ae=this.rules.block.nptable.exec(I);if(ae){var de={type:"table",header:g(ae[1].replace(/^ *| *\| *$/g,"")),align:ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ae[3]?ae[3].replace(/\n$/,"").split(`
|
|
`):[],raw:ae[0]};if(de.header.length===de.align.length){var se=de.align.length,Se;for(Se=0;Se<se;Se++)/^ *-+: *$/.test(de.align[Se])?de.align[Se]="right":/^ *:-+: *$/.test(de.align[Se])?de.align[Se]="center":/^ *:-+ *$/.test(de.align[Se])?de.align[Se]="left":de.align[Se]=null;for(se=de.cells.length,Se=0;Se<se;Se++)de.cells[Se]=g(de.cells[Se],de.header.length);return de}}},Ne.hr=function(I){var ae=this.rules.block.hr.exec(I);if(ae)return{type:"hr",raw:ae[0]}},Ne.blockquote=function(I){var ae=this.rules.block.blockquote.exec(I);if(ae){var de=ae[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ae[0],text:de}}},Ne.list=function(I){var ae=this.rules.block.list.exec(I);if(ae){var de=ae[0],se=ae[2],Se=se.length>1,Mt={type:"list",raw:de,ordered:Se,start:Se?+se.slice(0,-1):"",loose:!1,items:[]},It=ae[0].match(this.rules.block.item),Ft=!1,fn,Le,_,j,E,Pe,ye,we,ze,ut=It.length;_=this.rules.block.listItemStart.exec(It[0]);for(var Pt=0;Pt<ut;Pt++){if(fn=It[Pt],de=fn,this.options.pedantic||(ze=fn.match(new RegExp("\\n\\s*\\n {0,"+(_[0].length-1)+"}\\S")),ze&&(E=fn.length-ze.index+It.slice(Pt+1).join(`
|
|
`).length,Mt.raw=Mt.raw.substring(0,Mt.raw.length-E),fn=fn.substring(0,ze.index),de=fn,ut=Pt+1)),Pt!==ut-1){if(j=this.rules.block.listItemStart.exec(It[Pt+1]),this.options.pedantic?j[1].length>_[1].length:j[1].length>=_[0].length||j[1].length>3){It.splice(Pt,2,It[Pt]+(!this.options.pedantic&&j[1].length<_[0].length&&!It[Pt].match(/\n$/)?"":`
|
|
`)+It[Pt+1]),Pt--,ut--;continue}else(!this.options.pedantic||this.options.smartLists?j[2][j[2].length-1]!==se[se.length-1]:Se===(j[2].length===1))&&(E=It.slice(Pt+1).join(`
|
|
`).length,Mt.raw=Mt.raw.substring(0,Mt.raw.length-E),Pt=ut-1);_=j}Le=fn.length,fn=fn.replace(/^ *([*+-]|\d+[.)]) ?/,""),~fn.indexOf(`
|
|
`)&&(Le-=fn.length,fn=this.options.pedantic?fn.replace(/^ {1,4}/gm,""):fn.replace(new RegExp("^ {1,"+Le+"}","gm"),"")),fn=J(fn,`
|
|
`),Pt!==ut-1&&(de=de+`
|
|
`),Pe=Ft||/\n\n(?!\s*$)/.test(de),Pt!==ut-1&&(Ft=de.slice(-2)===`
|
|
|
|
`,Pe||(Pe=Ft)),Pe&&(Mt.loose=!0),this.options.gfm&&(ye=/^\[[ xX]\] /.test(fn),we=void 0,ye&&(we=fn[1]!==" ",fn=fn.replace(/^\[[ xX]\] +/,""))),Mt.items.push({type:"list_item",raw:de,task:ye,checked:we,loose:Pe,text:fn})}return Mt}},Ne.html=function(I){var ae=this.rules.block.html.exec(I);if(ae)return{type:this.options.sanitize?"paragraph":"html",raw:ae[0],pre:!this.options.sanitizer&&(ae[1]==="pre"||ae[1]==="script"||ae[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ae[0]):v(ae[0]):ae[0]}},Ne.def=function(I){var ae=this.rules.block.def.exec(I);if(ae){ae[3]&&(ae[3]=ae[3].substring(1,ae[3].length-1));var de=ae[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:de,raw:ae[0],href:ae[2],title:ae[3]}}},Ne.table=function(I){var ae=this.rules.block.table.exec(I);if(ae){var de={type:"table",header:g(ae[1].replace(/^ *| *\| *$/g,"")),align:ae[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ae[3]?ae[3].replace(/\n$/,"").split(`
|
|
`):[]};if(de.header.length===de.align.length){de.raw=ae[0];var se=de.align.length,Se;for(Se=0;Se<se;Se++)/^ *-+: *$/.test(de.align[Se])?de.align[Se]="right":/^ *:-+: *$/.test(de.align[Se])?de.align[Se]="center":/^ *:-+ *$/.test(de.align[Se])?de.align[Se]="left":de.align[Se]=null;for(se=de.cells.length,Se=0;Se<se;Se++)de.cells[Se]=g(de.cells[Se].replace(/^ *\| *| *\| *$/g,""),de.header.length);return de}}},Ne.lheading=function(I){var ae=this.rules.block.lheading.exec(I);if(ae)return{type:"heading",raw:ae[0],depth:ae[2].charAt(0)==="="?1:2,text:ae[1]}},Ne.paragraph=function(I){var ae=this.rules.block.paragraph.exec(I);if(ae)return{type:"paragraph",raw:ae[0],text:ae[1].charAt(ae[1].length-1)===`
|
|
`?ae[1].slice(0,-1):ae[1]}},Ne.text=function(I){var ae=this.rules.block.text.exec(I);if(ae)return{type:"text",raw:ae[0],text:ae[0]}},Ne.escape=function(I){var ae=this.rules.inline.escape.exec(I);if(ae)return{type:"escape",raw:ae[0],text:v(ae[1])}},Ne.tag=function(I,ae,de){var se=this.rules.inline.tag.exec(I);if(se)return!ae&&/^<a /i.test(se[0])?ae=!0:ae&&/^<\/a>/i.test(se[0])&&(ae=!1),!de&&/^<(pre|code|kbd|script)(\s|>)/i.test(se[0])?de=!0:de&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(se[0])&&(de=!1),{type:this.options.sanitize?"text":"html",raw:se[0],inLink:ae,inRawBlock:de,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(se[0]):v(se[0]):se[0]}},Ne.link=function(I){var ae=this.rules.inline.link.exec(I);if(ae){var de=ae[2].trim();if(!this.options.pedantic&&/^</.test(de)){if(!/>$/.test(de))return;var se=J(de.slice(0,-1),"\\");if((de.length-se.length)%2===0)return}else{var Se=Z(ae[2],"()");if(Se>-1){var Mt=ae[0].indexOf("!")===0?5:4,It=Mt+ae[1].length+Se;ae[2]=ae[2].substring(0,Se),ae[0]=ae[0].substring(0,It).trim(),ae[3]=""}}var Ft=ae[2],fn="";if(this.options.pedantic){var Le=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ft);Le&&(Ft=Le[1],fn=Le[3])}else fn=ae[3]?ae[3].slice(1,-1):"";return Ft=Ft.trim(),/^</.test(Ft)&&(this.options.pedantic&&!/>$/.test(de)?Ft=Ft.slice(1):Ft=Ft.slice(1,-1)),ce(ae,{href:Ft&&Ft.replace(this.rules.inline._escapes,"$1"),title:fn&&fn.replace(this.rules.inline._escapes,"$1")},ae[0])}},Ne.reflink=function(I,ae){var de;if((de=this.rules.inline.reflink.exec(I))||(de=this.rules.inline.nolink.exec(I))){var se=(de[2]||de[1]).replace(/\s+/g," ");if(se=ae[se.toLowerCase()],!se||!se.href){var Se=de[0].charAt(0);return{type:"text",raw:Se,text:Se}}return ce(de,se,de[0])}},Ne.emStrong=function(I,ae,de){de===void 0&&(de="");var se=this.rules.inline.emStrong.lDelim.exec(I);if(se&&!(se[3]&&de.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-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D0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE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F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var Se=se[1]||se[2]||"";if(!Se||Se&&(de===""||this.rules.inline.punctuation.exec(de))){var Mt=se[0].length-1,It,Ft,fn=Mt,Le=0,_=se[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(_.lastIndex=0,ae=ae.slice(-1*I.length+Mt);(se=_.exec(ae))!=null;)if(It=se[1]||se[2]||se[3]||se[4]||se[5]||se[6],!!It){if(Ft=It.length,se[3]||se[4]){fn+=Ft;continue}else if((se[5]||se[6])&&Mt%3&&!((Mt+Ft)%3)){Le+=Ft;continue}if(fn-=Ft,!(fn>0))return Ft=Math.min(Ft,Ft+fn+Le),Math.min(Mt,Ft)%2?{type:"em",raw:I.slice(0,Mt+se.index+Ft+1),text:I.slice(1,Mt+se.index+Ft)}:{type:"strong",raw:I.slice(0,Mt+se.index+Ft+1),text:I.slice(2,Mt+se.index+Ft-1)}}}}},Ne.codespan=function(I){var ae=this.rules.inline.code.exec(I);if(ae){var de=ae[2].replace(/\n/g," "),se=/[^ ]/.test(de),Se=/^ /.test(de)&&/ $/.test(de);return se&&Se&&(de=de.substring(1,de.length-1)),de=v(de,!0),{type:"codespan",raw:ae[0],text:de}}},Ne.br=function(I){var ae=this.rules.inline.br.exec(I);if(ae)return{type:"br",raw:ae[0]}},Ne.del=function(I){var ae=this.rules.inline.del.exec(I);if(ae)return{type:"del",raw:ae[0],text:ae[2]}},Ne.autolink=function(I,ae){var de=this.rules.inline.autolink.exec(I);if(de){var se,Se;return de[2]==="@"?(se=v(this.options.mangle?ae(de[1]):de[1]),Se="mailto:"+se):(se=v(de[1]),Se=se),{type:"link",raw:de[0],text:se,href:Se,tokens:[{type:"text",raw:se,text:se}]}}},Ne.url=function(I,ae){var de;if(de=this.rules.inline.url.exec(I)){var se,Se;if(de[2]==="@")se=v(this.options.mangle?ae(de[0]):de[0]),Se="mailto:"+se;else{var Mt;do Mt=de[0],de[0]=this.rules.inline._backpedal.exec(de[0])[0];while(Mt!==de[0]);se=v(de[0]),de[1]==="www."?Se="http://"+se:Se=se}return{type:"link",raw:de[0],text:se,href:Se,tokens:[{type:"text",raw:se,text:se}]}}},Ne.inlineText=function(I,ae,de){var se=this.rules.inline.text.exec(I);if(se){var Se;return ae?Se=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(se[0]):v(se[0]):se[0]:Se=v(this.options.smartypants?de(se[0]):se[0]),{type:"text",raw:se[0],text:Se}}},Fe}(),Dt=q.noopTest,vt=q.edit,$t=q.merge,Ht={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Dt,table:Dt,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};Ht._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ht._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ht.def=vt(Ht.def).replace("label",Ht._label).replace("title",Ht._title).getRegex(),Ht.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ht.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Ht.item=vt(Ht.item,"gm").replace(/bull/g,Ht.bullet).getRegex(),Ht.listItemStart=vt(/^( *)(bull) */).replace("bull",Ht.bullet).getRegex(),Ht.list=vt(Ht.list).replace(/bull/g,Ht.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ht.def.source+")").getRegex(),Ht._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ht._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Ht.html=vt(Ht.html,"i").replace("comment",Ht._comment).replace("tag",Ht._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ht.paragraph=vt(Ht._paragraph).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ht._tag).getRegex(),Ht.blockquote=vt(Ht.blockquote).replace("paragraph",Ht.paragraph).getRegex(),Ht.normal=$t({},Ht),Ht.gfm=$t({},Ht.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ht.gfm.nptable=vt(Ht.gfm.nptable).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ht._tag).getRegex(),Ht.gfm.table=vt(Ht.gfm.table).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ht._tag).getRegex(),Ht.pedantic=$t({},Ht.normal,{html:vt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ht._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Dt,paragraph:vt(Ht.normal._paragraph).replace("hr",Ht.hr).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",Ht.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ke={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Dt,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Dt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};ke._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ke.punctuation=vt(ke.punctuation).replace(/punctuation/g,ke._punctuation).getRegex(),ke.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ke.escapedEmSt=/\\\*|\\_/g,ke._comment=vt(Ht._comment).replace("(?:-->|$)","-->").getRegex(),ke.emStrong.lDelim=vt(ke.emStrong.lDelim).replace(/punct/g,ke._punctuation).getRegex(),ke.emStrong.rDelimAst=vt(ke.emStrong.rDelimAst,"g").replace(/punct/g,ke._punctuation).getRegex(),ke.emStrong.rDelimUnd=vt(ke.emStrong.rDelimUnd,"g").replace(/punct/g,ke._punctuation).getRegex(),ke._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ke._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ke._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,ke.autolink=vt(ke.autolink).replace("scheme",ke._scheme).replace("email",ke._email).getRegex(),ke._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ke.tag=vt(ke.tag).replace("comment",ke._comment).replace("attribute",ke._attribute).getRegex(),ke._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ke._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ke._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ke.link=vt(ke.link).replace("label",ke._label).replace("href",ke._href).replace("title",ke._title).getRegex(),ke.reflink=vt(ke.reflink).replace("label",ke._label).getRegex(),ke.reflinkSearch=vt(ke.reflinkSearch,"g").replace("reflink",ke.reflink).replace("nolink",ke.nolink).getRegex(),ke.normal=$t({},ke),ke.pedantic=$t({},ke.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:vt(/^!?\[(label)\]\((.*?)\)/).replace("label",ke._label).getRegex(),reflink:vt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ke._label).getRegex()}),ke.gfm=$t({},ke.normal,{escape:vt(ke.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),ke.gfm.url=vt(ke.gfm.url,"i").replace("email",ke.gfm._extended_email).getRegex(),ke.breaks=$t({},ke.gfm,{br:vt(ke.br).replace("{2,}","*").getRegex(),text:vt(ke.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Bt={block:Ht,inline:ke},xn=We,Yt=me.exports.defaults,ln=Bt.block,mt=Bt.inline,Be=q.repeatString;function be(Fe){return Fe.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function M(Fe){var Ne="",Me,I,ae=Fe.length;for(Me=0;Me<ae;Me++)I=Fe.charCodeAt(Me),Math.random()>.5&&(I="x"+I.toString(16)),Ne+="&#"+I+";";return Ne}var Ce=function(){function Fe(Me){this.tokens=[],this.tokens.links=Object.create(null),this.options=Me||Yt,this.options.tokenizer=this.options.tokenizer||new xn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var I={block:ln.normal,inline:mt.normal};this.options.pedantic?(I.block=ln.pedantic,I.inline=mt.pedantic):this.options.gfm&&(I.block=ln.gfm,this.options.breaks?I.inline=mt.breaks:I.inline=mt.gfm),this.tokenizer.rules=I}Fe.lex=function(I,ae){var de=new Fe(ae);return de.lex(I)},Fe.lexInline=function(I,ae){var de=new Fe(ae);return de.inlineTokens(I)};var Ne=Fe.prototype;return Ne.lex=function(I){return I=I.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," "),this.blockTokens(I,this.tokens,!0),this.inline(this.tokens),this.tokens},Ne.blockTokens=function(I,ae,de){ae===void 0&&(ae=[]),de===void 0&&(de=!0),this.options.pedantic&&(I=I.replace(/^ +$/gm,""));for(var se,Se,Mt,It;I;){if(se=this.tokenizer.space(I)){I=I.substring(se.raw.length),se.type&&ae.push(se);continue}if(se=this.tokenizer.code(I)){I=I.substring(se.raw.length),It=ae[ae.length-1],It&&It.type==="paragraph"?(It.raw+=`
|
|
`+se.raw,It.text+=`
|
|
`+se.text):ae.push(se);continue}if(se=this.tokenizer.fences(I)){I=I.substring(se.raw.length),ae.push(se);continue}if(se=this.tokenizer.heading(I)){I=I.substring(se.raw.length),ae.push(se);continue}if(se=this.tokenizer.nptable(I)){I=I.substring(se.raw.length),ae.push(se);continue}if(se=this.tokenizer.hr(I)){I=I.substring(se.raw.length),ae.push(se);continue}if(se=this.tokenizer.blockquote(I)){I=I.substring(se.raw.length),se.tokens=this.blockTokens(se.text,[],de),ae.push(se);continue}if(se=this.tokenizer.list(I)){for(I=I.substring(se.raw.length),Mt=se.items.length,Se=0;Se<Mt;Se++)se.items[Se].tokens=this.blockTokens(se.items[Se].text,[],!1);ae.push(se);continue}if(se=this.tokenizer.html(I)){I=I.substring(se.raw.length),ae.push(se);continue}if(de&&(se=this.tokenizer.def(I))){I=I.substring(se.raw.length),this.tokens.links[se.tag]||(this.tokens.links[se.tag]={href:se.href,title:se.title});continue}if(se=this.tokenizer.table(I)){I=I.substring(se.raw.length),ae.push(se);continue}if(se=this.tokenizer.lheading(I)){I=I.substring(se.raw.length),ae.push(se);continue}if(de&&(se=this.tokenizer.paragraph(I))){I=I.substring(se.raw.length),ae.push(se);continue}if(se=this.tokenizer.text(I)){I=I.substring(se.raw.length),It=ae[ae.length-1],It&&It.type==="text"?(It.raw+=`
|
|
`+se.raw,It.text+=`
|
|
`+se.text):ae.push(se);continue}if(I){var Ft="Infinite loop on byte: "+I.charCodeAt(0);if(this.options.silent){console.error(Ft);break}else throw new Error(Ft)}}return ae},Ne.inline=function(I){var ae,de,se,Se,Mt,It,Ft=I.length;for(ae=0;ae<Ft;ae++)switch(It=I[ae],It.type){case"paragraph":case"text":case"heading":{It.tokens=[],this.inlineTokens(It.text,It.tokens);break}case"table":{for(It.tokens={header:[],cells:[]},Se=It.header.length,de=0;de<Se;de++)It.tokens.header[de]=[],this.inlineTokens(It.header[de],It.tokens.header[de]);for(Se=It.cells.length,de=0;de<Se;de++)for(Mt=It.cells[de],It.tokens.cells[de]=[],se=0;se<Mt.length;se++)It.tokens.cells[de][se]=[],this.inlineTokens(Mt[se],It.tokens.cells[de][se]);break}case"blockquote":{this.inline(It.tokens);break}case"list":{for(Se=It.items.length,de=0;de<Se;de++)this.inline(It.items[de].tokens);break}}return I},Ne.inlineTokens=function(I,ae,de,se){ae===void 0&&(ae=[]),de===void 0&&(de=!1),se===void 0&&(se=!1);var Se,Mt,It=I,Ft,fn,Le;if(this.tokens.links){var _=Object.keys(this.tokens.links);if(_.length>0)for(;(Ft=this.tokenizer.rules.inline.reflinkSearch.exec(It))!=null;)_.includes(Ft[0].slice(Ft[0].lastIndexOf("[")+1,-1))&&(It=It.slice(0,Ft.index)+"["+Be("a",Ft[0].length-2)+"]"+It.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ft=this.tokenizer.rules.inline.blockSkip.exec(It))!=null;)It=It.slice(0,Ft.index)+"["+Be("a",Ft[0].length-2)+"]"+It.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Ft=this.tokenizer.rules.inline.escapedEmSt.exec(It))!=null;)It=It.slice(0,Ft.index)+"++"+It.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;I;){if(fn||(Le=""),fn=!1,Se=this.tokenizer.escape(I)){I=I.substring(Se.raw.length),ae.push(Se);continue}if(Se=this.tokenizer.tag(I,de,se)){I=I.substring(Se.raw.length),de=Se.inLink,se=Se.inRawBlock;var j=ae[ae.length-1];j&&Se.type==="text"&&j.type==="text"?(j.raw+=Se.raw,j.text+=Se.text):ae.push(Se);continue}if(Se=this.tokenizer.link(I)){I=I.substring(Se.raw.length),Se.type==="link"&&(Se.tokens=this.inlineTokens(Se.text,[],!0,se)),ae.push(Se);continue}if(Se=this.tokenizer.reflink(I,this.tokens.links)){I=I.substring(Se.raw.length);var E=ae[ae.length-1];Se.type==="link"?(Se.tokens=this.inlineTokens(Se.text,[],!0,se),ae.push(Se)):E&&Se.type==="text"&&E.type==="text"?(E.raw+=Se.raw,E.text+=Se.text):ae.push(Se);continue}if(Se=this.tokenizer.emStrong(I,It,Le)){I=I.substring(Se.raw.length),Se.tokens=this.inlineTokens(Se.text,[],de,se),ae.push(Se);continue}if(Se=this.tokenizer.codespan(I)){I=I.substring(Se.raw.length),ae.push(Se);continue}if(Se=this.tokenizer.br(I)){I=I.substring(Se.raw.length),ae.push(Se);continue}if(Se=this.tokenizer.del(I)){I=I.substring(Se.raw.length),Se.tokens=this.inlineTokens(Se.text,[],de,se),ae.push(Se);continue}if(Se=this.tokenizer.autolink(I,M)){I=I.substring(Se.raw.length),ae.push(Se);continue}if(!de&&(Se=this.tokenizer.url(I,M))){I=I.substring(Se.raw.length),ae.push(Se);continue}if(Se=this.tokenizer.inlineText(I,se,be)){I=I.substring(Se.raw.length),Se.raw.slice(-1)!=="_"&&(Le=Se.raw.slice(-1)),fn=!0,Mt=ae[ae.length-1],Mt&&Mt.type==="text"?(Mt.raw+=Se.raw,Mt.text+=Se.text):ae.push(Se);continue}if(I){var Pe="Infinite loop on byte: "+I.charCodeAt(0);if(this.options.silent){console.error(Pe);break}else throw new Error(Pe)}}return ae},w(Fe,null,[{key:"rules",get:function(){return{block:ln,inline:mt}}}]),Fe}(),Ge=me.exports.defaults,K=q.cleanUrl,k=q.escape,F=function(){function Fe(Me){this.options=Me||Ge}var Ne=Fe.prototype;return Ne.code=function(I,ae,de){var se=(ae||"").match(/\S*/)[0];if(this.options.highlight){var Se=this.options.highlight(I,se);Se!=null&&Se!==I&&(de=!0,I=Se)}return I=I.replace(/\n$/,"")+`
|
|
`,se?'<pre><code class="'+this.options.langPrefix+k(se,!0)+'">'+(de?I:k(I,!0))+`</code></pre>
|
|
`:"<pre><code>"+(de?I:k(I,!0))+`</code></pre>
|
|
`},Ne.blockquote=function(I){return`<blockquote>
|
|
`+I+`</blockquote>
|
|
`},Ne.html=function(I){return I},Ne.heading=function(I,ae,de,se){return this.options.headerIds?"<h"+ae+' id="'+this.options.headerPrefix+se.slug(de)+'">'+I+"</h"+ae+`>
|
|
`:"<h"+ae+">"+I+"</h"+ae+`>
|
|
`},Ne.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},Ne.list=function(I,ae,de){var se=ae?"ol":"ul",Se=ae&&de!==1?' start="'+de+'"':"";return"<"+se+Se+`>
|
|
`+I+"</"+se+`>
|
|
`},Ne.listitem=function(I){return"<li>"+I+`</li>
|
|
`},Ne.checkbox=function(I){return"<input "+(I?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Ne.paragraph=function(I){return"<p>"+I+`</p>
|
|
`},Ne.table=function(I,ae){return ae&&(ae="<tbody>"+ae+"</tbody>"),`<table>
|
|
<thead>
|
|
`+I+`</thead>
|
|
`+ae+`</table>
|
|
`},Ne.tablerow=function(I){return`<tr>
|
|
`+I+`</tr>
|
|
`},Ne.tablecell=function(I,ae){var de=ae.header?"th":"td",se=ae.align?"<"+de+' align="'+ae.align+'">':"<"+de+">";return se+I+"</"+de+`>
|
|
`},Ne.strong=function(I){return"<strong>"+I+"</strong>"},Ne.em=function(I){return"<em>"+I+"</em>"},Ne.codespan=function(I){return"<code>"+I+"</code>"},Ne.br=function(){return this.options.xhtml?"<br/>":"<br>"},Ne.del=function(I){return"<del>"+I+"</del>"},Ne.link=function(I,ae,de){if(I=K(this.options.sanitize,this.options.baseUrl,I),I===null)return de;var se='<a href="'+k(I)+'"';return ae&&(se+=' title="'+ae+'"'),se+=">"+de+"</a>",se},Ne.image=function(I,ae,de){if(I=K(this.options.sanitize,this.options.baseUrl,I),I===null)return de;var se='<img src="'+I+'" alt="'+de+'"';return ae&&(se+=' title="'+ae+'"'),se+=this.options.xhtml?"/>":">",se},Ne.text=function(I){return I},Fe}(),pe=function(){function Fe(){}var Ne=Fe.prototype;return Ne.strong=function(I){return I},Ne.em=function(I){return I},Ne.codespan=function(I){return I},Ne.del=function(I){return I},Ne.html=function(I){return I},Ne.text=function(I){return I},Ne.link=function(I,ae,de){return""+de},Ne.image=function(I,ae,de){return""+de},Ne.br=function(){return""},Fe}(),z=function(){function Fe(){this.seen={}}var Ne=Fe.prototype;return Ne.serialize=function(I){return I.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Ne.getNextSafeSlug=function(I,ae){var de=I,se=0;if(this.seen.hasOwnProperty(de)){se=this.seen[I];do se++,de=I+"-"+se;while(this.seen.hasOwnProperty(de))}return ae||(this.seen[I]=se,this.seen[de]=0),de},Ne.slug=function(I,ae){ae===void 0&&(ae={});var de=this.serialize(I);return this.getNextSafeSlug(de,ae.dryrun)},Fe}(),Y=F,ie=pe,Te=z,xe=me.exports.defaults,Ue=q.unescape,Ze=function(){function Fe(Me){this.options=Me||xe,this.options.renderer=this.options.renderer||new Y,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ie,this.slugger=new Te}Fe.parse=function(I,ae){var de=new Fe(ae);return de.parse(I)},Fe.parseInline=function(I,ae){var de=new Fe(ae);return de.parseInline(I)};var Ne=Fe.prototype;return Ne.parse=function(I,ae){ae===void 0&&(ae=!0);var de="",se,Se,Mt,It,Ft,fn,Le,_,j,E,Pe,ye,we,ze,ut,Pt,Vt,Ut,mn=I.length;for(se=0;se<mn;se++)switch(E=I[se],E.type){case"space":continue;case"hr":{de+=this.renderer.hr();continue}case"heading":{de+=this.renderer.heading(this.parseInline(E.tokens),E.depth,Ue(this.parseInline(E.tokens,this.textRenderer)),this.slugger);continue}case"code":{de+=this.renderer.code(E.text,E.lang,E.escaped);continue}case"table":{for(_="",Le="",It=E.header.length,Se=0;Se<It;Se++)Le+=this.renderer.tablecell(this.parseInline(E.tokens.header[Se]),{header:!0,align:E.align[Se]});for(_+=this.renderer.tablerow(Le),j="",It=E.cells.length,Se=0;Se<It;Se++){for(fn=E.tokens.cells[Se],Le="",Ft=fn.length,Mt=0;Mt<Ft;Mt++)Le+=this.renderer.tablecell(this.parseInline(fn[Mt]),{header:!1,align:E.align[Mt]});j+=this.renderer.tablerow(Le)}de+=this.renderer.table(_,j);continue}case"blockquote":{j=this.parse(E.tokens),de+=this.renderer.blockquote(j);continue}case"list":{for(Pe=E.ordered,ye=E.start,we=E.loose,It=E.items.length,j="",Se=0;Se<It;Se++)ut=E.items[Se],Pt=ut.checked,Vt=ut.task,ze="",ut.task&&(Ut=this.renderer.checkbox(Pt),we?ut.tokens.length>0&&ut.tokens[0].type==="text"?(ut.tokens[0].text=Ut+" "+ut.tokens[0].text,ut.tokens[0].tokens&&ut.tokens[0].tokens.length>0&&ut.tokens[0].tokens[0].type==="text"&&(ut.tokens[0].tokens[0].text=Ut+" "+ut.tokens[0].tokens[0].text)):ut.tokens.unshift({type:"text",text:Ut}):ze+=Ut),ze+=this.parse(ut.tokens,we),j+=this.renderer.listitem(ze,Vt,Pt);de+=this.renderer.list(j,Pe,ye);continue}case"html":{de+=this.renderer.html(E.text);continue}case"paragraph":{de+=this.renderer.paragraph(this.parseInline(E.tokens));continue}case"text":{for(j=E.tokens?this.parseInline(E.tokens):E.text;se+1<mn&&I[se+1].type==="text";)E=I[++se],j+=`
|
|
`+(E.tokens?this.parseInline(E.tokens):E.text);de+=ae?this.renderer.paragraph(j):j;continue}default:{var Re='Token with "'+E.type+'" type was not found.';if(this.options.silent){console.error(Re);return}else throw new Error(Re)}}return de},Ne.parseInline=function(I,ae){ae=ae||this.renderer;var de="",se,Se,Mt=I.length;for(se=0;se<Mt;se++)switch(Se=I[se],Se.type){case"escape":{de+=ae.text(Se.text);break}case"html":{de+=ae.html(Se.text);break}case"link":{de+=ae.link(Se.href,Se.title,this.parseInline(Se.tokens,ae));break}case"image":{de+=ae.image(Se.href,Se.title,Se.text);break}case"strong":{de+=ae.strong(this.parseInline(Se.tokens,ae));break}case"em":{de+=ae.em(this.parseInline(Se.tokens,ae));break}case"codespan":{de+=ae.codespan(Se.text);break}case"br":{de+=ae.br();break}case"del":{de+=ae.del(this.parseInline(Se.tokens,ae));break}case"text":{de+=ae.text(Se.text);break}default:{var It='Token with "'+Se.type+'" type was not found.';if(this.options.silent){console.error(It);return}else throw new Error(It)}}return de},Fe}(),$e=Ce,at=Ze,ve=We,De=F,ot=pe,Je=z,He=q.merge,gt=q.checkSanitizeDeprecation,Rt=q.escape,st=me.exports.getDefaults,Kt=me.exports.changeDefaults,cn=me.exports.defaults;function At(Fe,Ne,Me){if(typeof Fe=="undefined"||Fe===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Fe!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Fe)+", string expected");if(typeof Ne=="function"&&(Me=Ne,Ne=null),Ne=He({},At.defaults,Ne||{}),gt(Ne),Me){var I=Ne.highlight,ae;try{ae=$e.lex(Fe,Ne)}catch(Mt){return Me(Mt)}var de=function(It){var Ft;if(!It)try{Ne.walkTokens&&At.walkTokens(ae,Ne.walkTokens),Ft=at.parse(ae,Ne)}catch(fn){It=fn}return Ne.highlight=I,It?Me(It):Me(null,Ft)};if(!I||I.length<3||(delete Ne.highlight,!ae.length))return de();var se=0;At.walkTokens(ae,function(Mt){Mt.type==="code"&&(se++,setTimeout(function(){I(Mt.text,Mt.lang,function(It,Ft){if(It)return de(It);Ft!=null&&Ft!==Mt.text&&(Mt.text=Ft,Mt.escaped=!0),se--,se===0&&de()})},0))}),se===0&&de();return}try{var Se=$e.lex(Fe,Ne);return Ne.walkTokens&&At.walkTokens(Se,Ne.walkTokens),at.parse(Se,Ne)}catch(Mt){if(Mt.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,Ne.silent)return"<p>An error occurred:</p><pre>"+Rt(Mt.message+"",!0)+"</pre>";throw Mt}}At.options=At.setOptions=function(Fe){return He(At.defaults,Fe),Kt(At.defaults),At},At.getDefaults=st,At.defaults=cn,At.use=function(Fe){var Ne=He({},Fe);if(Fe.renderer&&function(){var I=At.defaults.renderer||new De,ae=function(Se){var Mt=I[Se];I[Se]=function(){for(var It=arguments.length,Ft=new Array(It),fn=0;fn<It;fn++)Ft[fn]=arguments[fn];var Le=Fe.renderer[Se].apply(I,Ft);return Le===!1&&(Le=Mt.apply(I,Ft)),Le}};for(var de in Fe.renderer)ae(de);Ne.renderer=I}(),Fe.tokenizer&&function(){var I=At.defaults.tokenizer||new ve,ae=function(Se){var Mt=I[Se];I[Se]=function(){for(var It=arguments.length,Ft=new Array(It),fn=0;fn<It;fn++)Ft[fn]=arguments[fn];var Le=Fe.tokenizer[Se].apply(I,Ft);return Le===!1&&(Le=Mt.apply(I,Ft)),Le}};for(var de in Fe.tokenizer)ae(de);Ne.tokenizer=I}(),Fe.walkTokens){var Me=At.defaults.walkTokens;Ne.walkTokens=function(I){Fe.walkTokens(I),Me&&Me(I)}}At.setOptions(Ne)},At.walkTokens=function(Fe,Ne){for(var Me=oe(Fe),I;!(I=Me()).done;){var ae=I.value;switch(Ne(ae),ae.type){case"table":{for(var de=oe(ae.tokens.header),se;!(se=de()).done;){var Se=se.value;At.walkTokens(Se,Ne)}for(var Mt=oe(ae.tokens.cells),It;!(It=Mt()).done;)for(var Ft=It.value,fn=oe(Ft),Le;!(Le=fn()).done;){var _=Le.value;At.walkTokens(_,Ne)}break}case"list":{At.walkTokens(ae.items,Ne);break}default:ae.tokens&&At.walkTokens(ae.tokens,Ne)}}},At.parseInline=function(Fe,Ne){if(typeof Fe=="undefined"||Fe===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Fe!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Fe)+", string expected");Ne=He({},At.defaults,Ne||{}),gt(Ne);try{var Me=$e.lexInline(Fe,Ne);return Ne.walkTokens&&At.walkTokens(Me,Ne.walkTokens),at.parseInline(Me,Ne)}catch(I){if(I.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,Ne.silent)return"<p>An error occurred:</p><pre>"+Rt(I.message+"",!0)+"</pre>";throw I}},At.Parser=at,At.parser=at.parse,At.Renderer=De,At.TextRenderer=ot,At.Lexer=$e,At.lexer=$e.lex,At.Tokenizer=ve,At.Slugger=Je,At.parse=At;var Xt=At;return Xt})},11690:function(Ln){const jt=/[&<>"']/,w=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,fe=/[<>"']|&(?!#?\w+;)/g,oe={"&":"&","<":"<",">":">",'"':""","'":"'"},me=W=>oe[W];function O(W,ne){if(ne){if(jt.test(W))return W.replace(w,me)}else if(p.test(W))return W.replace(fe,me);return W}const d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ge(W){return W.replace(d,(ne,ue)=>(ue=ue.toLowerCase(),ue==="colon"?":":ue.charAt(0)==="#"?ue.charAt(1)==="x"?String.fromCharCode(parseInt(ue.substring(2),16)):String.fromCharCode(+ue.substring(1)):""))}const le=/(^|[^\[])\^/g;function o(W,ne){W=W.source||W,ne=ne||"";const ue={replace:(he,Oe)=>(Oe=Oe.source||Oe,Oe=Oe.replace(le,"$1"),W=W.replace(he,Oe),ue),getRegex:()=>new RegExp(W,ne)};return ue}const b=/[^\w:]/g,T=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(W,ne,ue){if(W){let he;try{he=decodeURIComponent(ge(ue)).replace(b,"").toLowerCase()}catch(Oe){return null}if(he.indexOf("javascript:")===0||he.indexOf("vbscript:")===0||he.indexOf("data:")===0)return null}ne&&!T.test(ue)&&(ue=V(ne,ue));try{ue=encodeURI(ue).replace(/%25/g,"%")}catch(he){return null}return ue}const y={},x=/^[^:]+:\/*[^/]*$/,L=/^([^:]+:)[\s\S]*$/,U=/^([^:]+:\/*[^/]*)[\s\S]*$/;function V(W,ne){y[" "+W]||(x.test(W)?y[" "+W]=W+"/":y[" "+W]=R(W,"/",!0)),W=y[" "+W];const ue=W.indexOf(":")===-1;return ne.substring(0,2)==="//"?ue?ne:W.replace(L,"$1")+ne:ne.charAt(0)==="/"?ue?ne:W.replace(U,"$1")+ne:W+ne}const te={exec:function(){}};function N(W){let ne=1,ue,he;for(;ne<arguments.length;ne++){ue=arguments[ne];for(he in ue)Object.prototype.hasOwnProperty.call(ue,he)&&(W[he]=ue[he])}return W}function B(W,ne){const ue=W.replace(/\|/g,(G,P,Q)=>{let q=!1,re=P;for(;--re>=0&&Q[re]==="\\";)q=!q;return q?"|":" |"}),he=ue.split(/ \|/);let Oe=0;if(he.length>ne)he.splice(ne);else for(;he.length<ne;)he.push("");for(;Oe<he.length;Oe++)he[Oe]=he[Oe].trim().replace(/\\\|/g,"|");return he}function R(W,ne,ue){const he=W.length;if(he===0)return"";let Oe=0;for(;Oe<he;){const G=W.charAt(he-Oe-1);if(G===ne&&!ue)Oe++;else if(G!==ne&&ue)Oe++;else break}return W.substr(0,he-Oe)}function S(W,ne){if(W.indexOf(ne[1])===-1)return-1;const ue=W.length;let he=0,Oe=0;for(;Oe<ue;Oe++)if(W[Oe]==="\\")Oe++;else if(W[Oe]===ne[0])he++;else if(W[Oe]===ne[1]&&(he--,he<0))return Oe;return-1}function $(W){W&&W.sanitize&&!W.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function ee(W,ne){if(ne<1)return"";let ue="";for(;ne>1;)ne&1&&(ue+=W),ne>>=1,W+=W;return ue+W}Ln.exports={escape:O,unescape:ge,edit:o,cleanUrl:m,resolveUrl:V,noopTest:te,merge:N,splitCells:B,rtrim:R,findClosingBracket:S,checkSanitizeDeprecation:$,repeatString:ee}},75918:function(Ln,jt,w){"use strict";w.d(jt,{Wi:function(){return d},Z0:function(){return ge},aU:function(){return O},eZ:function(){return o},wY:function(){return le}});var p=w(4348),fe=w(69323),oe=w(13268),me=function(b,T,m,y){function x(L){return L instanceof m?L:new m(function(U){U(L)})}return new(m||(m=Promise))(function(L,U){function V(B){try{N(y.next(B))}catch(R){U(R)}}function te(B){try{N(y.throw(B))}catch(R){U(R)}}function N(B){B.done?L(B.value):x(B.value).then(V,te)}N((y=y.apply(b,T||[])).next())})};class O extends fe.JT{constructor(T,m="",y="",x=!0,L){super(),this._onDidChange=this._register(new p.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=T,this._label=m,this._cssClass=y,this._enabled=x,this._actionCallback=L}get id(){return this._id}get label(){return this._label}set label(T){this._setLabel(T)}_setLabel(T){this._label!==T&&(this._label=T,this._onDidChange.fire({label:T}))}get tooltip(){return this._tooltip||""}set tooltip(T){this._setTooltip(T)}_setTooltip(T){this._tooltip!==T&&(this._tooltip=T,this._onDidChange.fire({tooltip:T}))}get class(){return this._cssClass}set class(T){this._setClass(T)}_setClass(T){this._cssClass!==T&&(this._cssClass=T,this._onDidChange.fire({class:T}))}get enabled(){return this._enabled}set enabled(T){this._setEnabled(T)}_setEnabled(T){this._enabled!==T&&(this._enabled=T,this._onDidChange.fire({enabled:T}))}get checked(){return this._checked}set checked(T){this._setChecked(T)}_setChecked(T){this._checked!==T&&(this._checked=T,this._onDidChange.fire({checked:T}))}run(T,m){return me(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(T))})}}class d extends fe.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new p.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new p.Q5),this.onDidRun=this._onDidRun.event}run(T,m){return me(this,void 0,void 0,function*(){if(!T.enabled)return;this._onBeforeRun.fire({action:T});let y;try{yield this.runAction(T,m)}catch(x){y=x}this._onDidRun.fire({action:T,error:y})})}runAction(T,m){return me(this,void 0,void 0,function*(){yield T.run(m)})}}class ge extends O{constructor(T){super(ge.ID,T,T?"separator text":"separator"),this.checked=!1,this.enabled=!1}}ge.ID="vs.actions.separator";class le{constructor(T,m,y,x){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=T,this.label=m,this.class=x,this._actions=y}get actions(){return this._actions}dispose(){}run(){return me(this,void 0,void 0,function*(){})}}class o extends O{constructor(){super(o.ID,oe.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(Ln,jt,w){"use strict";w.d(jt,{ok:function(){return p}});function p(fe,oe){if(!fe)throw new Error(oe?`Assertion failed (${oe})`:"Assertion Failed")}},52615:function(Ln,jt,w){"use strict";w.d(jt,{CM:function(){return O},JL:function(){return d},dT:function(){return le},fK:function(){return me},lA:function(){return ge}});var p=w(4348);class fe{constructor(){this._icons=new Map,this._onDidRegister=new p.Q5}add(b){const T=this._icons.get(b.id);T?b.description?T.description=b.description:console.error(`Duplicate registration of codicon ${b.id}`):(this._icons.set(b.id,b),this._onDidRegister.fire(b))}get(b){return this._icons.get(b)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const oe=new fe,me=oe;function O(o,b){return new ge(o,b)}function d(o){return o?o.replace(/\$\((.*?)\)/g,(b,T)=>` ${T} `).trim():""}class ge{constructor(b,T,m){this.id=b,this.definition=T,this.description=m,oe.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var le;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const b=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function T(x){if(x instanceof ge)return["codicon","codicon-"+x.id];const L=b.exec(x.id);if(!L)return T(ge.error);let[,U,V]=L;const te=["codicon","codicon-"+U];return V&&te.push("codicon-modifier-"+V.substr(1)),te}o.asClassNameArray=T;function m(x){return T(x).join(" ")}o.asClassName=m;function y(x){return"."+T(x).join(".")}o.asCSSSelector=y})(le||(le={})),function(o){o.add=new o("add",{fontCharacter:"\\ea60"}),o.plus=new o("plus",o.add.definition),o.gistNew=new o("gist-new",o.add.definition),o.repoCreate=new o("repo-create",o.add.definition),o.lightbulb=new o("lightbulb",{fontCharacter:"\\ea61"}),o.lightBulb=new o("light-bulb",{fontCharacter:"\\ea61"}),o.repo=new o("repo",{fontCharacter:"\\ea62"}),o.repoDelete=new o("repo-delete",{fontCharacter:"\\ea62"}),o.gistFork=new o("gist-fork",{fontCharacter:"\\ea63"}),o.repoForked=new o("repo-forked",{fontCharacter:"\\ea63"}),o.gitPullRequest=new o("git-pull-request",{fontCharacter:"\\ea64"}),o.gitPullRequestAbandoned=new o("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),o.recordKeys=new o("record-keys",{fontCharacter:"\\ea65"}),o.keyboard=new o("keyboard",{fontCharacter:"\\ea65"}),o.tag=new o("tag",{fontCharacter:"\\ea66"}),o.tagAdd=new o("tag-add",{fontCharacter:"\\ea66"}),o.tagRemove=new o("tag-remove",{fontCharacter:"\\ea66"}),o.person=new o("person",{fontCharacter:"\\ea67"}),o.personFollow=new o("person-follow",{fontCharacter:"\\ea67"}),o.personOutline=new o("person-outline",{fontCharacter:"\\ea67"}),o.personFilled=new o("person-filled",{fontCharacter:"\\ea67"}),o.gitBranch=new o("git-branch",{fontCharacter:"\\ea68"}),o.gitBranchCreate=new o("git-branch-create",{fontCharacter:"\\ea68"}),o.gitBranchDelete=new o("git-branch-delete",{fontCharacter:"\\ea68"}),o.sourceControl=new o("source-control",{fontCharacter:"\\ea68"}),o.mirror=new o("mirror",{fontCharacter:"\\ea69"}),o.mirrorPublic=new o("mirror-public",{fontCharacter:"\\ea69"}),o.star=new o("star",{fontCharacter:"\\ea6a"}),o.starAdd=new o("star-add",{fontCharacter:"\\ea6a"}),o.starDelete=new o("star-delete",{fontCharacter:"\\ea6a"}),o.starEmpty=new o("star-empty",{fontCharacter:"\\ea6a"}),o.comment=new o("comment",{fontCharacter:"\\ea6b"}),o.commentAdd=new o("comment-add",{fontCharacter:"\\ea6b"}),o.alert=new o("alert",{fontCharacter:"\\ea6c"}),o.warning=new o("warning",{fontCharacter:"\\ea6c"}),o.search=new o("search",{fontCharacter:"\\ea6d"}),o.searchSave=new o("search-save",{fontCharacter:"\\ea6d"}),o.logOut=new o("log-out",{fontCharacter:"\\ea6e"}),o.signOut=new o("sign-out",{fontCharacter:"\\ea6e"}),o.logIn=new o("log-in",{fontCharacter:"\\ea6f"}),o.signIn=new o("sign-in",{fontCharacter:"\\ea6f"}),o.eye=new o("eye",{fontCharacter:"\\ea70"}),o.eyeUnwatch=new o("eye-unwatch",{fontCharacter:"\\ea70"}),o.eyeWatch=new o("eye-watch",{fontCharacter:"\\ea70"}),o.circleFilled=new o("circle-filled",{fontCharacter:"\\ea71"}),o.primitiveDot=new o("primitive-dot",{fontCharacter:"\\ea71"}),o.closeDirty=new o("close-dirty",{fontCharacter:"\\ea71"}),o.debugBreakpoint=new o("debug-breakpoint",{fontCharacter:"\\ea71"}),o.debugBreakpointDisabled=new o("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),o.debugHint=new o("debug-hint",{fontCharacter:"\\ea71"}),o.primitiveSquare=new o("primitive-square",{fontCharacter:"\\ea72"}),o.edit=new o("edit",{fontCharacter:"\\ea73"}),o.pencil=new o("pencil",{fontCharacter:"\\ea73"}),o.info=new o("info",{fontCharacter:"\\ea74"}),o.issueOpened=new o("issue-opened",{fontCharacter:"\\ea74"}),o.gistPrivate=new o("gist-private",{fontCharacter:"\\ea75"}),o.gitForkPrivate=new o("git-fork-private",{fontCharacter:"\\ea75"}),o.lock=new o("lock",{fontCharacter:"\\ea75"}),o.mirrorPrivate=new o("mirror-private",{fontCharacter:"\\ea75"}),o.close=new o("close",{fontCharacter:"\\ea76"}),o.removeClose=new o("remove-close",{fontCharacter:"\\ea76"}),o.x=new o("x",{fontCharacter:"\\ea76"}),o.repoSync=new o("repo-sync",{fontCharacter:"\\ea77"}),o.sync=new o("sync",{fontCharacter:"\\ea77"}),o.clone=new o("clone",{fontCharacter:"\\ea78"}),o.desktopDownload=new o("desktop-download",{fontCharacter:"\\ea78"}),o.beaker=new o("beaker",{fontCharacter:"\\ea79"}),o.microscope=new o("microscope",{fontCharacter:"\\ea79"}),o.vm=new o("vm",{fontCharacter:"\\ea7a"}),o.deviceDesktop=new o("device-desktop",{fontCharacter:"\\ea7a"}),o.file=new o("file",{fontCharacter:"\\ea7b"}),o.fileText=new o("file-text",{fontCharacter:"\\ea7b"}),o.more=new o("more",{fontCharacter:"\\ea7c"}),o.ellipsis=new o("ellipsis",{fontCharacter:"\\ea7c"}),o.kebabHorizontal=new o("kebab-horizontal",{fontCharacter:"\\ea7c"}),o.mailReply=new o("mail-reply",{fontCharacter:"\\ea7d"}),o.reply=new o("reply",{fontCharacter:"\\ea7d"}),o.organization=new o("organization",{fontCharacter:"\\ea7e"}),o.organizationFilled=new o("organization-filled",{fontCharacter:"\\ea7e"}),o.organizationOutline=new o("organization-outline",{fontCharacter:"\\ea7e"}),o.newFile=new o("new-file",{fontCharacter:"\\ea7f"}),o.fileAdd=new o("file-add",{fontCharacter:"\\ea7f"}),o.newFolder=new o("new-folder",{fontCharacter:"\\ea80"}),o.fileDirectoryCreate=new o("file-directory-create",{fontCharacter:"\\ea80"}),o.trash=new o("trash",{fontCharacter:"\\ea81"}),o.trashcan=new o("trashcan",{fontCharacter:"\\ea81"}),o.history=new o("history",{fontCharacter:"\\ea82"}),o.clock=new o("clock",{fontCharacter:"\\ea82"}),o.folder=new o("folder",{fontCharacter:"\\ea83"}),o.fileDirectory=new o("file-directory",{fontCharacter:"\\ea83"}),o.symbolFolder=new o("symbol-folder",{fontCharacter:"\\ea83"}),o.logoGithub=new o("logo-github",{fontCharacter:"\\ea84"}),o.markGithub=new o("mark-github",{fontCharacter:"\\ea84"}),o.github=new o("github",{fontCharacter:"\\ea84"}),o.terminal=new o("terminal",{fontCharacter:"\\ea85"}),o.console=new o("console",{fontCharacter:"\\ea85"}),o.repl=new o("repl",{fontCharacter:"\\ea85"}),o.zap=new o("zap",{fontCharacter:"\\ea86"}),o.symbolEvent=new o("symbol-event",{fontCharacter:"\\ea86"}),o.error=new o("error",{fontCharacter:"\\ea87"}),o.stop=new o("stop",{fontCharacter:"\\ea87"}),o.variable=new o("variable",{fontCharacter:"\\ea88"}),o.symbolVariable=new o("symbol-variable",{fontCharacter:"\\ea88"}),o.array=new o("array",{fontCharacter:"\\ea8a"}),o.symbolArray=new o("symbol-array",{fontCharacter:"\\ea8a"}),o.symbolModule=new o("symbol-module",{fontCharacter:"\\ea8b"}),o.symbolPackage=new o("symbol-package",{fontCharacter:"\\ea8b"}),o.symbolNamespace=new o("symbol-namespace",{fontCharacter:"\\ea8b"}),o.symbolObject=new o("symbol-object",{fontCharacter:"\\ea8b"}),o.symbolMethod=new o("symbol-method",{fontCharacter:"\\ea8c"}),o.symbolFunction=new o("symbol-function",{fontCharacter:"\\ea8c"}),o.symbolConstructor=new o("symbol-constructor",{fontCharacter:"\\ea8c"}),o.symbolBoolean=new o("symbol-boolean",{fontCharacter:"\\ea8f"}),o.symbolNull=new o("symbol-null",{fontCharacter:"\\ea8f"}),o.symbolNumeric=new o("symbol-numeric",{fontCharacter:"\\ea90"}),o.symbolNumber=new o("symbol-number",{fontCharacter:"\\ea90"}),o.symbolStructure=new o("symbol-structure",{fontCharacter:"\\ea91"}),o.symbolStruct=new o("symbol-struct",{fontCharacter:"\\ea91"}),o.symbolParameter=new o("symbol-parameter",{fontCharacter:"\\ea92"}),o.symbolTypeParameter=new o("symbol-type-parameter",{fontCharacter:"\\ea92"}),o.symbolKey=new o("symbol-key",{fontCharacter:"\\ea93"}),o.symbolText=new o("symbol-text",{fontCharacter:"\\ea93"}),o.symbolReference=new o("symbol-reference",{fontCharacter:"\\ea94"}),o.goToFile=new o("go-to-file",{fontCharacter:"\\ea94"}),o.symbolEnum=new o("symbol-enum",{fontCharacter:"\\ea95"}),o.symbolValue=new o("symbol-value",{fontCharacter:"\\ea95"}),o.symbolRuler=new o("symbol-ruler",{fontCharacter:"\\ea96"}),o.symbolUnit=new o("symbol-unit",{fontCharacter:"\\ea96"}),o.activateBreakpoints=new o("activate-breakpoints",{fontCharacter:"\\ea97"}),o.archive=new o("archive",{fontCharacter:"\\ea98"}),o.arrowBoth=new o("arrow-both",{fontCharacter:"\\ea99"}),o.arrowDown=new o("arrow-down",{fontCharacter:"\\ea9a"}),o.arrowLeft=new o("arrow-left",{fontCharacter:"\\ea9b"}),o.arrowRight=new o("arrow-right",{fontCharacter:"\\ea9c"}),o.arrowSmallDown=new o("arrow-small-down",{fontCharacter:"\\ea9d"}),o.arrowSmallLeft=new o("arrow-small-left",{fontCharacter:"\\ea9e"}),o.arrowSmallRight=new o("arrow-small-right",{fontCharacter:"\\ea9f"}),o.arrowSmallUp=new o("arrow-small-up",{fontCharacter:"\\eaa0"}),o.arrowUp=new o("arrow-up",{fontCharacter:"\\eaa1"}),o.bell=new o("bell",{fontCharacter:"\\eaa2"}),o.bold=new o("bold",{fontCharacter:"\\eaa3"}),o.book=new o("book",{fontCharacter:"\\eaa4"}),o.bookmark=new o("bookmark",{fontCharacter:"\\eaa5"}),o.debugBreakpointConditionalUnverified=new o("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),o.debugBreakpointConditional=new o("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),o.debugBreakpointConditionalDisabled=new o("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),o.debugBreakpointDataUnverified=new o("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),o.debugBreakpointData=new o("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),o.debugBreakpointDataDisabled=new o("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),o.debugBreakpointLogUnverified=new o("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),o.debugBreakpointLog=new o("debug-breakpoint-log",{fontCharacter:"\\eaab"}),o.debugBreakpointLogDisabled=new o("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),o.briefcase=new o("briefcase",{fontCharacter:"\\eaac"}),o.broadcast=new o("broadcast",{fontCharacter:"\\eaad"}),o.browser=new o("browser",{fontCharacter:"\\eaae"}),o.bug=new o("bug",{fontCharacter:"\\eaaf"}),o.calendar=new o("calendar",{fontCharacter:"\\eab0"}),o.caseSensitive=new o("case-sensitive",{fontCharacter:"\\eab1"}),o.check=new o("check",{fontCharacter:"\\eab2"}),o.checklist=new o("checklist",{fontCharacter:"\\eab3"}),o.chevronDown=new o("chevron-down",{fontCharacter:"\\eab4"}),o.dropDownButton=new o("drop-down-button",o.chevronDown.definition),o.chevronLeft=new o("chevron-left",{fontCharacter:"\\eab5"}),o.chevronRight=new o("chevron-right",{fontCharacter:"\\eab6"}),o.chevronUp=new o("chevron-up",{fontCharacter:"\\eab7"}),o.chromeClose=new o("chrome-close",{fontCharacter:"\\eab8"}),o.chromeMaximize=new o("chrome-maximize",{fontCharacter:"\\eab9"}),o.chromeMinimize=new o("chrome-minimize",{fontCharacter:"\\eaba"}),o.chromeRestore=new o("chrome-restore",{fontCharacter:"\\eabb"}),o.circleOutline=new o("circle-outline",{fontCharacter:"\\eabc"}),o.debugBreakpointUnverified=new o("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),o.circleSlash=new o("circle-slash",{fontCharacter:"\\eabd"}),o.circuitBoard=new o("circuit-board",{fontCharacter:"\\eabe"}),o.clearAll=new o("clear-all",{fontCharacter:"\\eabf"}),o.clippy=new o("clippy",{fontCharacter:"\\eac0"}),o.closeAll=new o("close-all",{fontCharacter:"\\eac1"}),o.cloudDownload=new o("cloud-download",{fontCharacter:"\\eac2"}),o.cloudUpload=new o("cloud-upload",{fontCharacter:"\\eac3"}),o.code=new o("code",{fontCharacter:"\\eac4"}),o.collapseAll=new o("collapse-all",{fontCharacter:"\\eac5"}),o.colorMode=new o("color-mode",{fontCharacter:"\\eac6"}),o.commentDiscussion=new o("comment-discussion",{fontCharacter:"\\eac7"}),o.compareChanges=new o("compare-changes",{fontCharacter:"\\eafd"}),o.creditCard=new o("credit-card",{fontCharacter:"\\eac9"}),o.dash=new o("dash",{fontCharacter:"\\eacc"}),o.dashboard=new o("dashboard",{fontCharacter:"\\eacd"}),o.database=new o("database",{fontCharacter:"\\eace"}),o.debugContinue=new o("debug-continue",{fontCharacter:"\\eacf"}),o.debugDisconnect=new o("debug-disconnect",{fontCharacter:"\\ead0"}),o.debugPause=new o("debug-pause",{fontCharacter:"\\ead1"}),o.debugRestart=new o("debug-restart",{fontCharacter:"\\ead2"}),o.debugStart=new o("debug-start",{fontCharacter:"\\ead3"}),o.debugStepInto=new o("debug-step-into",{fontCharacter:"\\ead4"}),o.debugStepOut=new o("debug-step-out",{fontCharacter:"\\ead5"}),o.debugStepOver=new o("debug-step-over",{fontCharacter:"\\ead6"}),o.debugStop=new o("debug-stop",{fontCharacter:"\\ead7"}),o.debug=new o("debug",{fontCharacter:"\\ead8"}),o.deviceCameraVideo=new o("device-camera-video",{fontCharacter:"\\ead9"}),o.deviceCamera=new o("device-camera",{fontCharacter:"\\eada"}),o.deviceMobile=new o("device-mobile",{fontCharacter:"\\eadb"}),o.diffAdded=new o("diff-added",{fontCharacter:"\\eadc"}),o.diffIgnored=new o("diff-ignored",{fontCharacter:"\\eadd"}),o.diffModified=new o("diff-modified",{fontCharacter:"\\eade"}),o.diffRemoved=new o("diff-removed",{fontCharacter:"\\eadf"}),o.diffRenamed=new o("diff-renamed",{fontCharacter:"\\eae0"}),o.diff=new o("diff",{fontCharacter:"\\eae1"}),o.discard=new o("discard",{fontCharacter:"\\eae2"}),o.editorLayout=new o("editor-layout",{fontCharacter:"\\eae3"}),o.emptyWindow=new o("empty-window",{fontCharacter:"\\eae4"}),o.exclude=new o("exclude",{fontCharacter:"\\eae5"}),o.extensions=new o("extensions",{fontCharacter:"\\eae6"}),o.eyeClosed=new o("eye-closed",{fontCharacter:"\\eae7"}),o.fileBinary=new o("file-binary",{fontCharacter:"\\eae8"}),o.fileCode=new o("file-code",{fontCharacter:"\\eae9"}),o.fileMedia=new o("file-media",{fontCharacter:"\\eaea"}),o.filePdf=new o("file-pdf",{fontCharacter:"\\eaeb"}),o.fileSubmodule=new o("file-submodule",{fontCharacter:"\\eaec"}),o.fileSymlinkDirectory=new o("file-symlink-directory",{fontCharacter:"\\eaed"}),o.fileSymlinkFile=new o("file-symlink-file",{fontCharacter:"\\eaee"}),o.fileZip=new o("file-zip",{fontCharacter:"\\eaef"}),o.files=new o("files",{fontCharacter:"\\eaf0"}),o.filter=new o("filter",{fontCharacter:"\\eaf1"}),o.flame=new o("flame",{fontCharacter:"\\eaf2"}),o.foldDown=new o("fold-down",{fontCharacter:"\\eaf3"}),o.foldUp=new o("fold-up",{fontCharacter:"\\eaf4"}),o.fold=new o("fold",{fontCharacter:"\\eaf5"}),o.folderActive=new o("folder-active",{fontCharacter:"\\eaf6"}),o.folderOpened=new o("folder-opened",{fontCharacter:"\\eaf7"}),o.gear=new o("gear",{fontCharacter:"\\eaf8"}),o.gift=new o("gift",{fontCharacter:"\\eaf9"}),o.gistSecret=new o("gist-secret",{fontCharacter:"\\eafa"}),o.gist=new o("gist",{fontCharacter:"\\eafb"}),o.gitCommit=new o("git-commit",{fontCharacter:"\\eafc"}),o.gitCompare=new o("git-compare",{fontCharacter:"\\eafd"}),o.gitMerge=new o("git-merge",{fontCharacter:"\\eafe"}),o.githubAction=new o("github-action",{fontCharacter:"\\eaff"}),o.githubAlt=new o("github-alt",{fontCharacter:"\\eb00"}),o.globe=new o("globe",{fontCharacter:"\\eb01"}),o.grabber=new o("grabber",{fontCharacter:"\\eb02"}),o.graph=new o("graph",{fontCharacter:"\\eb03"}),o.gripper=new o("gripper",{fontCharacter:"\\eb04"}),o.heart=new o("heart",{fontCharacter:"\\eb05"}),o.home=new o("home",{fontCharacter:"\\eb06"}),o.horizontalRule=new o("horizontal-rule",{fontCharacter:"\\eb07"}),o.hubot=new o("hubot",{fontCharacter:"\\eb08"}),o.inbox=new o("inbox",{fontCharacter:"\\eb09"}),o.issueClosed=new o("issue-closed",{fontCharacter:"\\eba4"}),o.issueReopened=new o("issue-reopened",{fontCharacter:"\\eb0b"}),o.issues=new o("issues",{fontCharacter:"\\eb0c"}),o.italic=new o("italic",{fontCharacter:"\\eb0d"}),o.jersey=new o("jersey",{fontCharacter:"\\eb0e"}),o.json=new o("json",{fontCharacter:"\\eb0f"}),o.kebabVertical=new o("kebab-vertical",{fontCharacter:"\\eb10"}),o.key=new o("key",{fontCharacter:"\\eb11"}),o.law=new o("law",{fontCharacter:"\\eb12"}),o.lightbulbAutofix=new o("lightbulb-autofix",{fontCharacter:"\\eb13"}),o.linkExternal=new o("link-external",{fontCharacter:"\\eb14"}),o.link=new o("link",{fontCharacter:"\\eb15"}),o.listOrdered=new o("list-ordered",{fontCharacter:"\\eb16"}),o.listUnordered=new o("list-unordered",{fontCharacter:"\\eb17"}),o.liveShare=new o("live-share",{fontCharacter:"\\eb18"}),o.loading=new o("loading",{fontCharacter:"\\eb19"}),o.location=new o("location",{fontCharacter:"\\eb1a"}),o.mailRead=new o("mail-read",{fontCharacter:"\\eb1b"}),o.mail=new o("mail",{fontCharacter:"\\eb1c"}),o.markdown=new o("markdown",{fontCharacter:"\\eb1d"}),o.megaphone=new o("megaphone",{fontCharacter:"\\eb1e"}),o.mention=new o("mention",{fontCharacter:"\\eb1f"}),o.milestone=new o("milestone",{fontCharacter:"\\eb20"}),o.mortarBoard=new o("mortar-board",{fontCharacter:"\\eb21"}),o.move=new o("move",{fontCharacter:"\\eb22"}),o.multipleWindows=new o("multiple-windows",{fontCharacter:"\\eb23"}),o.mute=new o("mute",{fontCharacter:"\\eb24"}),o.noNewline=new o("no-newline",{fontCharacter:"\\eb25"}),o.note=new o("note",{fontCharacter:"\\eb26"}),o.octoface=new o("octoface",{fontCharacter:"\\eb27"}),o.openPreview=new o("open-preview",{fontCharacter:"\\eb28"}),o.package_=new o("package",{fontCharacter:"\\eb29"}),o.paintcan=new o("paintcan",{fontCharacter:"\\eb2a"}),o.pin=new o("pin",{fontCharacter:"\\eb2b"}),o.play=new o("play",{fontCharacter:"\\eb2c"}),o.run=new o("run",{fontCharacter:"\\eb2c"}),o.plug=new o("plug",{fontCharacter:"\\eb2d"}),o.preserveCase=new o("preserve-case",{fontCharacter:"\\eb2e"}),o.preview=new o("preview",{fontCharacter:"\\eb2f"}),o.project=new o("project",{fontCharacter:"\\eb30"}),o.pulse=new o("pulse",{fontCharacter:"\\eb31"}),o.question=new o("question",{fontCharacter:"\\eb32"}),o.quote=new o("quote",{fontCharacter:"\\eb33"}),o.radioTower=new o("radio-tower",{fontCharacter:"\\eb34"}),o.reactions=new o("reactions",{fontCharacter:"\\eb35"}),o.references=new o("references",{fontCharacter:"\\eb36"}),o.refresh=new o("refresh",{fontCharacter:"\\eb37"}),o.regex=new o("regex",{fontCharacter:"\\eb38"}),o.remoteExplorer=new o("remote-explorer",{fontCharacter:"\\eb39"}),o.remote=new o("remote",{fontCharacter:"\\eb3a"}),o.remove=new o("remove",{fontCharacter:"\\eb3b"}),o.replaceAll=new o("replace-all",{fontCharacter:"\\eb3c"}),o.replace=new o("replace",{fontCharacter:"\\eb3d"}),o.repoClone=new o("repo-clone",{fontCharacter:"\\eb3e"}),o.repoForcePush=new o("repo-force-push",{fontCharacter:"\\eb3f"}),o.repoPull=new o("repo-pull",{fontCharacter:"\\eb40"}),o.repoPush=new o("repo-push",{fontCharacter:"\\eb41"}),o.report=new o("report",{fontCharacter:"\\eb42"}),o.requestChanges=new o("request-changes",{fontCharacter:"\\eb43"}),o.rocket=new o("rocket",{fontCharacter:"\\eb44"}),o.rootFolderOpened=new o("root-folder-opened",{fontCharacter:"\\eb45"}),o.rootFolder=new o("root-folder",{fontCharacter:"\\eb46"}),o.rss=new o("rss",{fontCharacter:"\\eb47"}),o.ruby=new o("ruby",{fontCharacter:"\\eb48"}),o.saveAll=new o("save-all",{fontCharacter:"\\eb49"}),o.saveAs=new o("save-as",{fontCharacter:"\\eb4a"}),o.save=new o("save",{fontCharacter:"\\eb4b"}),o.screenFull=new o("screen-full",{fontCharacter:"\\eb4c"}),o.screenNormal=new o("screen-normal",{fontCharacter:"\\eb4d"}),o.searchStop=new o("search-stop",{fontCharacter:"\\eb4e"}),o.server=new o("server",{fontCharacter:"\\eb50"}),o.settingsGear=new o("settings-gear",{fontCharacter:"\\eb51"}),o.settings=new o("settings",{fontCharacter:"\\eb52"}),o.shield=new o("shield",{fontCharacter:"\\eb53"}),o.smiley=new o("smiley",{fontCharacter:"\\eb54"}),o.sortPrecedence=new o("sort-precedence",{fontCharacter:"\\eb55"}),o.splitHorizontal=new o("split-horizontal",{fontCharacter:"\\eb56"}),o.splitVertical=new o("split-vertical",{fontCharacter:"\\eb57"}),o.squirrel=new o("squirrel",{fontCharacter:"\\eb58"}),o.starFull=new o("star-full",{fontCharacter:"\\eb59"}),o.starHalf=new o("star-half",{fontCharacter:"\\eb5a"}),o.symbolClass=new o("symbol-class",{fontCharacter:"\\eb5b"}),o.symbolColor=new o("symbol-color",{fontCharacter:"\\eb5c"}),o.symbolConstant=new o("symbol-constant",{fontCharacter:"\\eb5d"}),o.symbolEnumMember=new o("symbol-enum-member",{fontCharacter:"\\eb5e"}),o.symbolField=new o("symbol-field",{fontCharacter:"\\eb5f"}),o.symbolFile=new o("symbol-file",{fontCharacter:"\\eb60"}),o.symbolInterface=new o("symbol-interface",{fontCharacter:"\\eb61"}),o.symbolKeyword=new o("symbol-keyword",{fontCharacter:"\\eb62"}),o.symbolMisc=new o("symbol-misc",{fontCharacter:"\\eb63"}),o.symbolOperator=new o("symbol-operator",{fontCharacter:"\\eb64"}),o.symbolProperty=new o("symbol-property",{fontCharacter:"\\eb65"}),o.wrench=new o("wrench",{fontCharacter:"\\eb65"}),o.wrenchSubaction=new o("wrench-subaction",{fontCharacter:"\\eb65"}),o.symbolSnippet=new o("symbol-snippet",{fontCharacter:"\\eb66"}),o.tasklist=new o("tasklist",{fontCharacter:"\\eb67"}),o.telescope=new o("telescope",{fontCharacter:"\\eb68"}),o.textSize=new o("text-size",{fontCharacter:"\\eb69"}),o.threeBars=new o("three-bars",{fontCharacter:"\\eb6a"}),o.thumbsdown=new o("thumbsdown",{fontCharacter:"\\eb6b"}),o.thumbsup=new o("thumbsup",{fontCharacter:"\\eb6c"}),o.tools=new o("tools",{fontCharacter:"\\eb6d"}),o.triangleDown=new o("triangle-down",{fontCharacter:"\\eb6e"}),o.triangleLeft=new o("triangle-left",{fontCharacter:"\\eb6f"}),o.triangleRight=new o("triangle-right",{fontCharacter:"\\eb70"}),o.triangleUp=new o("triangle-up",{fontCharacter:"\\eb71"}),o.twitter=new o("twitter",{fontCharacter:"\\eb72"}),o.unfold=new o("unfold",{fontCharacter:"\\eb73"}),o.unlock=new o("unlock",{fontCharacter:"\\eb74"}),o.unmute=new o("unmute",{fontCharacter:"\\eb75"}),o.unverified=new o("unverified",{fontCharacter:"\\eb76"}),o.verified=new o("verified",{fontCharacter:"\\eb77"}),o.versions=new o("versions",{fontCharacter:"\\eb78"}),o.vmActive=new o("vm-active",{fontCharacter:"\\eb79"}),o.vmOutline=new o("vm-outline",{fontCharacter:"\\eb7a"}),o.vmRunning=new o("vm-running",{fontCharacter:"\\eb7b"}),o.watch=new o("watch",{fontCharacter:"\\eb7c"}),o.whitespace=new o("whitespace",{fontCharacter:"\\eb7d"}),o.wholeWord=new o("whole-word",{fontCharacter:"\\eb7e"}),o.window=new o("window",{fontCharacter:"\\eb7f"}),o.wordWrap=new o("word-wrap",{fontCharacter:"\\eb80"}),o.zoomIn=new o("zoom-in",{fontCharacter:"\\eb81"}),o.zoomOut=new o("zoom-out",{fontCharacter:"\\eb82"}),o.listFilter=new o("list-filter",{fontCharacter:"\\eb83"}),o.listFlat=new o("list-flat",{fontCharacter:"\\eb84"}),o.listSelection=new o("list-selection",{fontCharacter:"\\eb85"}),o.selection=new o("selection",{fontCharacter:"\\eb85"}),o.listTree=new o("list-tree",{fontCharacter:"\\eb86"}),o.debugBreakpointFunctionUnverified=new o("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),o.debugBreakpointFunction=new o("debug-breakpoint-function",{fontCharacter:"\\eb88"}),o.debugBreakpointFunctionDisabled=new o("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),o.debugStackframeActive=new o("debug-stackframe-active",{fontCharacter:"\\eb89"}),o.debugStackframeDot=new o("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),o.debugStackframe=new o("debug-stackframe",{fontCharacter:"\\eb8b"}),o.debugStackframeFocused=new o("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),o.debugBreakpointUnsupported=new o("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),o.symbolString=new o("symbol-string",{fontCharacter:"\\eb8d"}),o.debugReverseContinue=new o("debug-reverse-continue",{fontCharacter:"\\eb8e"}),o.debugStepBack=new o("debug-step-back",{fontCharacter:"\\eb8f"}),o.debugRestartFrame=new o("debug-restart-frame",{fontCharacter:"\\eb90"}),o.callIncoming=new o("call-incoming",{fontCharacter:"\\eb92"}),o.callOutgoing=new o("call-outgoing",{fontCharacter:"\\eb93"}),o.menu=new o("menu",{fontCharacter:"\\eb94"}),o.expandAll=new o("expand-all",{fontCharacter:"\\eb95"}),o.feedback=new o("feedback",{fontCharacter:"\\eb96"}),o.groupByRefType=new o("group-by-ref-type",{fontCharacter:"\\eb97"}),o.ungroupByRefType=new o("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),o.account=new o("account",{fontCharacter:"\\eb99"}),o.bellDot=new o("bell-dot",{fontCharacter:"\\eb9a"}),o.debugConsole=new o("debug-console",{fontCharacter:"\\eb9b"}),o.library=new o("library",{fontCharacter:"\\eb9c"}),o.output=new o("output",{fontCharacter:"\\eb9d"}),o.runAll=new o("run-all",{fontCharacter:"\\eb9e"}),o.syncIgnored=new o("sync-ignored",{fontCharacter:"\\eb9f"}),o.pinned=new o("pinned",{fontCharacter:"\\eba0"}),o.githubInverted=new o("github-inverted",{fontCharacter:"\\eba1"}),o.debugAlt=new o("debug-alt",{fontCharacter:"\\eb91"}),o.serverProcess=new o("server-process",{fontCharacter:"\\eba2"}),o.serverEnvironment=new o("server-environment",{fontCharacter:"\\eba3"}),o.pass=new o("pass",{fontCharacter:"\\eba4"}),o.stopCircle=new o("stop-circle",{fontCharacter:"\\eba5"}),o.playCircle=new o("play-circle",{fontCharacter:"\\eba6"}),o.record=new o("record",{fontCharacter:"\\eba7"}),o.debugAltSmall=new o("debug-alt-small",{fontCharacter:"\\eba8"}),o.vmConnect=new o("vm-connect",{fontCharacter:"\\eba9"}),o.cloud=new o("cloud",{fontCharacter:"\\ebaa"}),o.merge=new o("merge",{fontCharacter:"\\ebab"}),o.exportIcon=new o("export",{fontCharacter:"\\ebac"}),o.graphLeft=new o("graph-left",{fontCharacter:"\\ebad"}),o.magnet=new o("magnet",{fontCharacter:"\\ebae"}),o.notebook=new o("notebook",{fontCharacter:"\\ebaf"}),o.redo=new o("redo",{fontCharacter:"\\ebb0"}),o.checkAll=new o("check-all",{fontCharacter:"\\ebb1"}),o.pinnedDirty=new o("pinned-dirty",{fontCharacter:"\\ebb2"}),o.passFilled=new o("pass-filled",{fontCharacter:"\\ebb3"}),o.circleLargeFilled=new o("circle-large-filled",{fontCharacter:"\\ebb4"}),o.circleLargeOutline=new o("circle-large-outline",{fontCharacter:"\\ebb5"}),o.combine=new o("combine",{fontCharacter:"\\ebb6"}),o.gather=new o("gather",{fontCharacter:"\\ebb6"}),o.table=new o("table",{fontCharacter:"\\ebb7"}),o.variableGroup=new o("variable-group",{fontCharacter:"\\ebb8"}),o.typeHierarchy=new o("type-hierarchy",{fontCharacter:"\\ebb9"}),o.typeHierarchySub=new o("type-hierarchy-sub",{fontCharacter:"\\ebba"}),o.typeHierarchySuper=new o("type-hierarchy-super",{fontCharacter:"\\ebbb"}),o.gitPullRequestCreate=new o("git-pull-request-create",{fontCharacter:"\\ebbc"}),o.runAbove=new o("run-above",{fontCharacter:"\\ebbd"}),o.runBelow=new o("run-below",{fontCharacter:"\\ebbe"}),o.notebookTemplate=new o("notebook-template",{fontCharacter:"\\ebbf"}),o.debugRerun=new o("debug-rerun",{fontCharacter:"\\ebc0"}),o.workspaceTrusted=new o("workspace-trusted",{fontCharacter:"\\ebc1"}),o.workspaceUntrusted=new o("workspace-untrusted",{fontCharacter:"\\ebc2"}),o.workspaceUnspecified=new o("workspace-unspecified",{fontCharacter:"\\ebc3"}),o.terminalCmd=new o("terminal-cmd",{fontCharacter:"\\ebc4"}),o.terminalDebian=new o("terminal-debian",{fontCharacter:"\\ebc5"}),o.terminalLinux=new o("terminal-linux",{fontCharacter:"\\ebc6"}),o.terminalPowershell=new o("terminal-powershell",{fontCharacter:"\\ebc7"}),o.terminalTmux=new o("terminal-tmux",{fontCharacter:"\\ebc8"}),o.terminalUbuntu=new o("terminal-ubuntu",{fontCharacter:"\\ebc9"}),o.terminalBash=new o("terminal-bash",{fontCharacter:"\\ebca"}),o.arrowSwap=new o("arrow-swap",{fontCharacter:"\\ebcb"}),o.copy=new o("copy",{fontCharacter:"\\ebcc"}),o.personAdd=new o("person-add",{fontCharacter:"\\ebcd"}),o.filterFilled=new o("filter-filled",{fontCharacter:"\\ebce"}),o.wand=new o("wand",{fontCharacter:"\\ebcf"}),o.debugLineByLine=new o("debug-line-by-line",{fontCharacter:"\\ebd0"}),o.inspect=new o("inspect",{fontCharacter:"\\ebd1"}),o.layers=new o("layers",{fontCharacter:"\\ebd2"}),o.layersDot=new o("layers-dot",{fontCharacter:"\\ebd3"}),o.layersActive=new o("layers-active",{fontCharacter:"\\ebd4"}),o.compass=new o("compass",{fontCharacter:"\\ebd5"}),o.compassDot=new o("compass-dot",{fontCharacter:"\\ebd6"}),o.compassActive=new o("compass-active",{fontCharacter:"\\ebd7"}),o.azure=new o("azure",{fontCharacter:"\\ebd8"}),o.issueDraft=new o("issue-draft",{fontCharacter:"\\ebd9"}),o.gitPullRequestClosed=new o("git-pull-request-closed",{fontCharacter:"\\ebda"}),o.gitPullRequestDraft=new o("git-pull-request-draft",{fontCharacter:"\\ebdb"}),o.debugAll=new o("debug-all",{fontCharacter:"\\ebdc"}),o.debugCoverage=new o("debug-coverage",{fontCharacter:"\\ebdd"}),o.runErrors=new o("run-errors",{fontCharacter:"\\ebde"}),o.folderLibrary=new o("folder-library",{fontCharacter:"\\ebdf"}),o.debugContinueSmall=new o("debug-continue-small",{fontCharacter:"\\ebe0"}),o.beakerStop=new o("beaker-stop",{fontCharacter:"\\ebe1"}),o.graphLine=new o("graph-line",{fontCharacter:"\\ebe2"}),o.graphScatter=new o("graph-scatter",{fontCharacter:"\\ebe3"}),o.pieChart=new o("pie-chart",{fontCharacter:"\\ebe4"}),o.bracket=new o("bracket",o.json.definition),o.bracketDot=new o("bracket-dot",{fontCharacter:"\\ebe5"}),o.bracketError=new o("bracket-error",{fontCharacter:"\\ebe6"}),o.lockSmall=new o("lock-small",{fontCharacter:"\\ebe7"}),o.azureDevops=new o("azure-devops",{fontCharacter:"\\ebe8"}),o.verifiedFilled=new o("verified-filled",{fontCharacter:"\\ebe9"})}(ge||(ge={}))},79881:function(Ln,jt,w){"use strict";w.d(jt,{B8:function(){return T},Cp:function(){return me},F0:function(){return le},L6:function(){return b},VV:function(){return ge},b1:function(){return o},dL:function(){return oe},ri:function(){return O}});class p{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(y){setTimeout(()=>{throw y.stack?new Error(y.message+`
|
|
|
|
`+y.stack):y},0)}}emit(y){this.listeners.forEach(x=>{x(y)})}onUnexpectedError(y){this.unexpectedErrorHandler(y),this.emit(y)}onUnexpectedExternalError(y){this.unexpectedErrorHandler(y)}}const fe=new p;function oe(m){ge(m)||fe.onUnexpectedError(m)}function me(m){ge(m)||fe.onUnexpectedExternalError(m)}function O(m){if(m instanceof Error){let{name:y,message:x}=m;const L=m.stacktrace||m.stack;return{$isError:!0,name:y,message:x,stack:L}}return m}const d="Canceled";function ge(m){return m instanceof Error&&m.name===d&&m.message===d}function le(){const m=new Error(d);return m.name=m.message,m}function o(m){return m?new Error(`Illegal argument: ${m}`):new Error("Illegal argument")}function b(m){return m?new Error(`Illegal state: ${m}`):new Error("Illegal state")}class T extends Error{constructor(y){super("NotSupported"),y&&(this.message=y)}}},4348:function(Ln,jt,w){"use strict";w.d(jt,{D0:function(){return T},E7:function(){return m},K3:function(){return b},Q5:function(){return o},ZD:function(){return y},ju:function(){return O}});var p=w(79881),fe=w(69323),oe=w(34502),me=w(95830),O;(function(x){x.None=()=>fe.JT.None;function L(Q){return(q,re=null,J)=>{let g=!1,v;return v=Q(Z=>{if(!g)return v?v.dispose():g=!0,q.call(re,Z)},null,J),g&&v.dispose(),v}}x.once=L;function U(Q,q){return S((re,J=null,g)=>Q(v=>re.call(J,q(v)),null,g))}x.map=U;function V(Q,q){return S((re,J=null,g)=>Q(v=>{q(v),re.call(J,v)},null,g))}x.forEach=V;function te(Q,q){return S((re,J=null,g)=>Q(v=>q(v)&&re.call(J,v),null,g))}x.filter=te;function N(Q){return Q}x.signal=N;function B(...Q){return(q,re=null,J)=>(0,fe.F8)(...Q.map(g=>g(v=>q.call(re,v),null,J)))}x.any=B;function R(Q,q,re){let J=re;return U(Q,g=>(J=q(J,g),J))}x.reduce=R;function S(Q){let q;const re=new o({onFirstListenerAdd(){q=Q(re.fire,re)},onLastListenerRemove(){q.dispose()}});return re.event}function $(Q,q,re=100,J=!1,g){let v,Z,ce,Xe=0;const We=new o({leakWarningThreshold:g,onFirstListenerAdd(){v=Q(Dt=>{Xe++,Z=q(Z,Dt),J&&!ce&&(We.fire(Z),Z=void 0),clearTimeout(ce),ce=setTimeout(()=>{const vt=Z;Z=void 0,ce=void 0,(!J||Xe>1)&&We.fire(vt),Xe=0},re)})},onLastListenerRemove(){v.dispose()}});return We.event}x.debounce=$;function ee(Q,q=(re,J)=>re===J){let re=!0,J;return te(Q,g=>{const v=re||!q(g,J);return re=!1,J=g,v})}x.latch=ee;function W(Q,q){return[x.filter(Q,q),x.filter(Q,re=>!q(re))]}x.split=W;function ne(Q,q=!1,re=[]){let J=re.slice(),g=Q(ce=>{J?J.push(ce):Z.fire(ce)});const v=()=>{J&&J.forEach(ce=>Z.fire(ce)),J=null},Z=new o({onFirstListenerAdd(){g||(g=Q(ce=>Z.fire(ce)))},onFirstListenerDidAdd(){J&&(q?setTimeout(v):v())},onLastListenerRemove(){g&&g.dispose(),g=null}});return Z.event}x.buffer=ne;class ue{constructor(q){this.event=q}map(q){return new ue(U(this.event,q))}forEach(q){return new ue(V(this.event,q))}filter(q){return new ue(te(this.event,q))}reduce(q,re){return new ue(R(this.event,q,re))}latch(){return new ue(ee(this.event))}debounce(q,re=100,J=!1,g){return new ue($(this.event,q,re,J,g))}on(q,re,J){return this.event(q,re,J)}once(q,re,J){return L(this.event)(q,re,J)}}function he(Q){return new ue(Q)}x.chain=he;function Oe(Q,q,re=J=>J){const J=(...ce)=>Z.fire(re(...ce)),g=()=>Q.on(q,J),v=()=>Q.removeListener(q,J),Z=new o({onFirstListenerAdd:g,onLastListenerRemove:v});return Z.event}x.fromNodeEventEmitter=Oe;function G(Q,q,re=J=>J){const J=(...ce)=>Z.fire(re(...ce)),g=()=>Q.addEventListener(q,J),v=()=>Q.removeEventListener(q,J),Z=new o({onFirstListenerAdd:g,onLastListenerRemove:v});return Z.event}x.fromDOMEventEmitter=G;function P(Q){return new Promise(q=>L(Q)(q))}x.toPromise=P})(O||(O={}));class d{constructor(L){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${L}_${d._idPool++}`}start(L){this._stopWatch=new me.G(!0),this._listenerCount=L}stop(){if(this._stopWatch){const L=this._stopWatch.elapsed();this._elapsedOverall+=L,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${L.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}d._idPool=0;let ge=-1;class le{constructor(L,U=Math.random().toString(18).slice(2,5)){this.customThreshold=L,this.name=U,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(L){let U=ge;if(typeof this.customThreshold=="number"&&(U=this.customThreshold),U<=0||L<U)return;this._stacks||(this._stacks=new Map);const V=new Error().stack.split(`
|
|
`).slice(3).join(`
|
|
`),te=this._stacks.get(V)||0;if(this._stacks.set(V,te+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=U*.5;let N,B=0;for(const[R,S]of this._stacks)(!N||B<S)&&(N=R,B=S);console.warn(`[${this.name}] potential listener LEAK detected, having ${L} listeners already. MOST frequent listener (${B}):`),console.warn(N)}return()=>{const N=this._stacks.get(V)||0;this._stacks.set(V,N-1)}}}class o{constructor(L){var U;this._disposed=!1,this._options=L,this._leakageMon=ge>0?new le(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((U=this._options)===null||U===void 0)&&U._profName?new d(this._options._profName):void 0}get event(){return this._event||(this._event=(L,U,V)=>{var te;this._listeners||(this._listeners=new oe.S);const N=this._listeners.isEmpty();N&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const B=this._listeners.push(U?[L,U]:L);N&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,L,U);const R=(te=this._leakageMon)===null||te===void 0?void 0:te.check(this._listeners.size),S=(0,fe.OF)(()=>{R&&R(),this._disposed||(B(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return V instanceof fe.SL?V.add(S):Array.isArray(V)&&V.push(S),S}),this._event}fire(L){var U,V;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new oe.S);for(let te of this._listeners)this._deliveryQueue.push([te,L]);for((U=this._perfMon)===null||U===void 0||U.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[te,N]=this._deliveryQueue.shift();try{typeof te=="function"?te.call(void 0,N):te[0].call(te[1],N)}catch(B){(0,p.dL)(B)}}(V=this._perfMon)===null||V===void 0||V.stop()}}dispose(){var L,U,V,te,N;this._disposed||(this._disposed=!0,(L=this._listeners)===null||L===void 0||L.clear(),(U=this._deliveryQueue)===null||U===void 0||U.clear(),(te=(V=this._options)===null||V===void 0?void 0:V.onLastListenerRemove)===null||te===void 0||te.call(V),(N=this._leakageMon)===null||N===void 0||N.dispose())}}class b extends o{constructor(L){super(L),this._isPaused=0,this._eventQueue=new oe.S,this._mergeFn=L==null?void 0:L.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const L=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(L))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(L){this._listeners&&(this._isPaused!==0?this._eventQueue.push(L):super.fire(L))}}class T extends b{constructor(L){var U;super(L),this._delay=(U=L.delay)!==null&&U!==void 0?U:100}fire(L){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(L)}}class m{constructor(){this.buffers=[]}wrapEvent(L){return(U,V,te)=>L(N=>{const B=this.buffers[this.buffers.length-1];B?B.push(()=>U.call(V,N)):U.call(V,N)},void 0,te)}bufferEvents(L){const U=[];this.buffers.push(U);const V=L();return this.buffers.pop(),U.forEach(te=>te()),V}}class y{constructor(){this.listening=!1,this.inputEvent=O.None,this.inputEventListener=fe.JT.None,this.emitter=new o({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(L){this.inputEvent=L,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=L(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Ln,jt,w){"use strict";w.d(jt,{I:function(){return p}});function p(fe){const oe=this;let me=!1,O;return function(){return me||(me=!0,O=fe.apply(oe,arguments)),O}}},88226:function(Ln,jt,w){"use strict";w.d(jt,{$:function(){return p}});var p;(function(fe){function oe(B){return B&&typeof B=="object"&&typeof B[Symbol.iterator]=="function"}fe.is=oe;const me=Object.freeze([]);function O(){return me}fe.empty=O;function*d(B){yield B}fe.single=d;function ge(B){return B||me}fe.from=ge;function le(B){return!B||B[Symbol.iterator]().next().done===!0}fe.isEmpty=le;function o(B){return B[Symbol.iterator]().next().value}fe.first=o;function b(B,R){for(const S of B)if(R(S))return!0;return!1}fe.some=b;function T(B,R){for(const S of B)if(R(S))return S}fe.find=T;function*m(B,R){for(const S of B)R(S)&&(yield S)}fe.filter=m;function*y(B,R){let S=0;for(const $ of B)yield R($,S++)}fe.map=y;function*x(...B){for(const R of B)for(const S of R)yield S}fe.concat=x;function*L(B){for(const R of B)for(const S of R)yield S}fe.concatNested=L;function U(B,R,S){let $=S;for(const ee of B)$=R($,ee);return $}fe.reduce=U;function*V(B,R,S=B.length){for(R<0&&(R+=B.length),S<0?S+=B.length:S>B.length&&(S=B.length);R<S;R++)yield B[R]}fe.slice=V;function te(B,R=Number.POSITIVE_INFINITY){const S=[];if(R===0)return[S,B];const $=B[Symbol.iterator]();for(let ee=0;ee<R;ee++){const W=$.next();if(W.done)return[S,fe.empty()];S.push(W.value)}return[S,{[Symbol.iterator](){return $}}]}fe.consume=te;function N(B,R,S=($,ee)=>$===ee){const $=B[Symbol.iterator](),ee=R[Symbol.iterator]();for(;;){const W=$.next(),ne=ee.next();if(W.done!==ne.done)return!1;if(W.done)return!0;if(!S(W.value,ne.value))return!1}}fe.equals=N})(p||(p={}))},69323:function(Ln,jt,w){"use strict";w.d(jt,{B9:function(){return y},F8:function(){return x},JT:function(){return V},Jz:function(){return N},OF:function(){return L},SL:function(){return U},Wf:function(){return m},XK:function(){return te},dk:function(){return b}});var p=w(17845),fe=w(88226);const oe=!1;let me=null;function O(B){me=B}if(oe){const B="__is_disposable_tracked__";O(new class{trackDisposable(R){const S=new Error("Potentially leaked disposable").stack;setTimeout(()=>{R[B]||console.log(S)},3e3)}setParent(R,S){if(R&&R!==V.None)try{R[B]=!0}catch($){}}markAsDisposed(R){if(R&&R!==V.None)try{R[B]=!0}catch(S){}}markAsSingleton(R){}})}function d(B){return me==null||me.trackDisposable(B),B}function ge(B){me==null||me.markAsDisposed(B)}function le(B,R){me==null||me.setParent(B,R)}function o(B,R){if(me)for(const S of B)me.setParent(S,R)}function b(B){return me==null||me.markAsSingleton(B),B}class T extends Error{constructor(R){super(`Encountered errors while disposing of store. Errors: [${R.join(", ")}]`),this.errors=R}}function m(B){return typeof B.dispose=="function"&&B.dispose.length===0}function y(B){if(fe.$.is(B)){let R=[];for(const S of B)if(S)try{S.dispose()}catch($){R.push($)}if(R.length===1)throw R[0];if(R.length>1)throw new T(R);return Array.isArray(B)?[]:B}else if(B)return B.dispose(),B}function x(...B){const R=L(()=>y(B));return o(B,R),R}function L(B){const R=d({dispose:(0,p.I)(()=>{ge(R),B()})});return R}class U{constructor(){this._toDispose=new Set,this._isDisposed=!1,d(this)}dispose(){this._isDisposed||(ge(this),this._isDisposed=!0,this.clear())}clear(){try{y(this._toDispose.values())}finally{this._toDispose.clear()}}add(R){if(!R)return R;if(R===this)throw new Error("Cannot register a disposable on itself!");return le(R,this),this._isDisposed?U.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(R),R}}U.DISABLE_DISPOSED_WARNING=!1;class V{constructor(){this._store=new U,d(this),le(this._store,this)}dispose(){ge(this),this._store.dispose()}_register(R){if(R===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(R)}}V.None=Object.freeze({dispose(){}});class te{constructor(){this._isDisposed=!1,d(this)}get value(){return this._isDisposed?void 0:this._value}set value(R){var S;this._isDisposed||R===this._value||((S=this._value)===null||S===void 0||S.dispose(),R&&le(R,this),this._value=R)}clear(){this.value=void 0}dispose(){var R;this._isDisposed=!0,ge(this),(R=this._value)===null||R===void 0||R.dispose(),this._value=void 0}clearAndLeak(){const R=this._value;return this._value=void 0,R&&le(R,null),R}}class N{constructor(R){this.object=R}dispose(){}}},34502:function(Ln,jt,w){"use strict";w.d(jt,{S:function(){return fe}});class p{constructor(me){this.element=me,this.next=p.Undefined,this.prev=p.Undefined}}p.Undefined=new p(void 0);class fe{constructor(){this._first=p.Undefined,this._last=p.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===p.Undefined}clear(){let me=this._first;for(;me!==p.Undefined;){const O=me.next;me.prev=p.Undefined,me.next=p.Undefined,me=O}this._first=p.Undefined,this._last=p.Undefined,this._size=0}unshift(me){return this._insert(me,!1)}push(me){return this._insert(me,!0)}_insert(me,O){const d=new p(me);if(this._first===p.Undefined)this._first=d,this._last=d;else if(O){const le=this._last;this._last=d,d.prev=le,le.next=d}else{const le=this._first;this._first=d,d.next=le,le.prev=d}this._size+=1;let ge=!1;return()=>{ge||(ge=!0,this._remove(d))}}shift(){if(this._first!==p.Undefined){const me=this._first.element;return this._remove(this._first),me}}pop(){if(this._last!==p.Undefined){const me=this._last.element;return this._remove(this._last),me}}_remove(me){if(me.prev!==p.Undefined&&me.next!==p.Undefined){const O=me.prev;O.next=me.next,me.next.prev=O}else me.prev===p.Undefined&&me.next===p.Undefined?(this._first=p.Undefined,this._last=p.Undefined):me.next===p.Undefined?(this._last=this._last.prev,this._last.next=p.Undefined):me.prev===p.Undefined&&(this._first=this._first.next,this._first.prev=p.Undefined);this._size-=1}*[Symbol.iterator](){let me=this._first;for(;me!==p.Undefined;)yield me.element,me=me.next}}},23345:function(Ln,jt,w){"use strict";w.d(jt,{$L:function(){return $},ED:function(){return N},IJ:function(){return R},OS:function(){return ue},WE:function(){return W},dz:function(){return B},gn:function(){return ee},li:function(){return L},r:function(){return G},tY:function(){return S},xS:function(){return ne}});var p=w(97671),fe;const oe="en";let me=!1,O=!1,d=!1,ge=!1,le=!1,o=!1,b=!1,T,m=null,y=null,x;const L=typeof self=="object"?self:typeof w.g=="object"?w.g:{};let U;typeof L.vscode!="undefined"&&typeof L.vscode.process!="undefined"?U=L.vscode.process:typeof p!="undefined"&&(U=p);const V=typeof((fe=U==null?void 0:U.versions)===null||fe===void 0?void 0:fe.electron)=="string"&&U.type==="renderer";if(typeof navigator=="object"&&!V)x=navigator.userAgent,me=x.indexOf("Windows")>=0,O=x.indexOf("Macintosh")>=0,b=(x.indexOf("Macintosh")>=0||x.indexOf("iPad")>=0||x.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,d=x.indexOf("Linux")>=0,o=!0,T=navigator.language,m=T;else if(typeof U=="object"){me=U.platform==="win32",O=U.platform==="darwin",d=U.platform==="linux",ge=d&&!!U.env.SNAP&&!!U.env.SNAP_REVISION,T=oe,m=oe;const P=U.env.VSCODE_NLS_CONFIG;if(P)try{const Q=JSON.parse(P),q=Q.availableLanguages["*"];T=Q.locale,m=q||oe,y=Q._translationsConfigFile}catch(Q){}le=!0}else console.error("Unable to resolve platform.");let te=0;O?te=1:me?te=3:d&&(te=2);const N=me,B=O,R=d,S=le,$=o,ee=b,W=x,ne=function(){if(L.setImmediate)return L.setImmediate.bind(L);if(typeof L.postMessage=="function"&&!L.importScripts){let q=[];L.addEventListener("message",J=>{if(J.data&&J.data.vscodeSetImmediateId)for(let g=0,v=q.length;g<v;g++){const Z=q[g];if(Z.id===J.data.vscodeSetImmediateId){q.splice(g,1),Z.callback();return}}});let re=0;return J=>{const g=++re;q.push({id:g,callback:J}),L.postMessage({vscodeSetImmediateId:g},"*")}}if(typeof(U==null?void 0:U.nextTick)=="function")return U.nextTick.bind(U);const Q=Promise.resolve();return q=>Q.then(q)}(),ue=O||b?2:me?1:3;let he=!0,Oe=!1;function G(){if(!Oe){Oe=!0;const P=new Uint8Array(2);P[0]=1,P[1]=2,he=new Uint16Array(P.buffer)[0]===513}return he}},95830:function(Ln,jt,w){"use strict";w.d(jt,{G:function(){return oe}});var p=w(23345);const fe=p.li.performance&&typeof p.li.performance.now=="function";class oe{constructor(O){this._highResolution=fe&&O,this._startTime=this._now(),this._stopTime=-1}static create(O=!0){return new oe(O)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?p.li.performance.now():Date.now()}}},82983:function(Ln,jt,w){"use strict";w.d(jt,{$i:function(){return Xe},C8:function(){return Ht},GF:function(){return T},HO:function(){return re},IO:function(){return m},K7:function(){return $t},Kw:function(){return xn},LC:function(){return L},Mh:function(){return ne},P1:function(){return ue},PJ:function(){return Yt},Qe:function(){return We},R1:function(){return b},RP:function(){return Z},S6:function(){return ln},TT:function(){return N},Ut:function(){return g},V8:function(){return U},WU:function(){return oe},YK:function(){return Oe},YU:function(){return me},ZG:function(){return he},ZH:function(){return P},ab:function(){return Dt},c1:function(){return ke},df:function(){return $},ec:function(){return O},fi:function(){return mt},fy:function(){return d},j3:function(){return ge},j_:function(){return R},m5:function(){return p},mK:function(){return S},mr:function(){return y},oH:function(){return M},oL:function(){return le},ok:function(){return W},ow:function(){return V},qq:function(){return ee},qu:function(){return te},rL:function(){return G},uS:function(){return Bt},un:function(){return o},uq:function(){return x},vH:function(){return q},xe:function(){return vt},zY:function(){return B}});function p(k){return!k||typeof k!="string"?!0:k.trim().length===0}const fe=/{(\d+)}/g;function oe(k,...F){return F.length===0?k:k.replace(fe,function(pe,z){const Y=parseInt(z,10);return isNaN(Y)||Y<0||Y>=F.length?pe:F[Y]})}function me(k){return k.replace(/[<>&]/g,function(F){switch(F){case"<":return"<";case">":return">";case"&":return"&";default:return F}})}function O(k){return k.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d(k,F=" "){const pe=ge(k,F);return le(pe,F)}function ge(k,F){if(!k||!F)return k;const pe=F.length;if(pe===0||k.length===0)return k;let z=0;for(;k.indexOf(F,z)===z;)z=z+pe;return k.substring(z)}function le(k,F){if(!k||!F)return k;const pe=F.length,z=k.length;if(pe===0||z===0)return k;let Y=z,ie=-1;for(;ie=k.lastIndexOf(F,Y-1),!(ie===-1||ie+pe!==Y);){if(ie===0)return"";Y=ie}return k.substring(0,Y)}function o(k){return k.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function b(k){return k.replace(/\*/g,"")}function T(k,F,pe={}){if(!k)throw new Error("Cannot create regex from empty string");F||(k=O(k)),pe.wholeWord&&(/\B/.test(k.charAt(0))||(k="\\b"+k),/\B/.test(k.charAt(k.length-1))||(k=k+"\\b"));let z="";return pe.global&&(z+="g"),pe.matchCase||(z+="i"),pe.multiline&&(z+="m"),pe.unicode&&(z+="u"),new RegExp(k,z)}function m(k){return k.source==="^"||k.source==="^$"||k.source==="$"||k.source==="^\\s*$"?!1:!!(k.exec("")&&k.lastIndex===0)}function y(k){return(k.global?"g":"")+(k.ignoreCase?"i":"")+(k.multiline?"m":"")+(k.unicode?"u":"")}function x(k){return k.split(/\r\n|\r|\n/)}function L(k){for(let F=0,pe=k.length;F<pe;F++){const z=k.charCodeAt(F);if(z!==32&&z!==9)return F}return-1}function U(k,F=0,pe=k.length){for(let z=F;z<pe;z++){const Y=k.charCodeAt(z);if(Y!==32&&Y!==9)return k.substring(F,z)}return k.substring(F,pe)}function V(k,F=k.length-1){for(let pe=F;pe>=0;pe--){const z=k.charCodeAt(pe);if(z!==32&&z!==9)return pe}return-1}function te(k,F){return k<F?-1:k>F?1:0}function N(k,F,pe=0,z=k.length,Y=0,ie=F.length){for(;pe<z&&Y<ie;pe++,Y++){let Ue=k.charCodeAt(pe),Ze=F.charCodeAt(Y);if(Ue<Ze)return-1;if(Ue>Ze)return 1}const Te=z-pe,xe=ie-Y;return Te<xe?-1:Te>xe?1:0}function B(k,F){return R(k,F,0,k.length,0,F.length)}function R(k,F,pe=0,z=k.length,Y=0,ie=F.length){for(;pe<z&&Y<ie;pe++,Y++){let Ue=k.charCodeAt(pe),Ze=F.charCodeAt(Y);if(Ue===Ze)continue;if(Ue>=128||Ze>=128)return N(k.toLowerCase(),F.toLowerCase(),pe,z,Y,ie);S(Ue)&&(Ue-=32),S(Ze)&&(Ze-=32);const $e=Ue-Ze;if($e!==0)return $e}const Te=z-pe,xe=ie-Y;return Te<xe?-1:Te>xe?1:0}function S(k){return k>=97&&k<=122}function $(k){return k>=65&&k<=90}function ee(k,F){return k.length===F.length&&R(k,F)===0}function W(k,F){const pe=F.length;return F.length>k.length?!1:R(k,F,0,pe)===0}function ne(k,F){let pe,z=Math.min(k.length,F.length);for(pe=0;pe<z;pe++)if(k.charCodeAt(pe)!==F.charCodeAt(pe))return pe;return z}function ue(k,F){let pe,z=Math.min(k.length,F.length);const Y=k.length-1,ie=F.length-1;for(pe=0;pe<z;pe++)if(k.charCodeAt(Y-pe)!==F.charCodeAt(ie-pe))return pe;return z}function he(k){return 55296<=k&&k<=56319}function Oe(k){return 56320<=k&&k<=57343}function G(k,F){return(k-55296<<10)+(F-56320)+65536}function P(k,F,pe){const z=k.charCodeAt(pe);if(he(z)&&pe+1<F){const Y=k.charCodeAt(pe+1);if(Oe(Y))return G(z,Y)}return z}function Q(k,F){const pe=k.charCodeAt(F-1);if(Oe(pe)&&F>1){const z=k.charCodeAt(F-2);if(he(z))return G(z,pe)}return pe}function q(k,F){const pe=Be.getInstance(),z=F,Y=k.length,ie=P(k,Y,F);F+=ie>=65536?2:1;let Te=pe.getGraphemeBreakType(ie);for(;F<Y;){const xe=P(k,Y,F),Ue=pe.getGraphemeBreakType(xe);if(mt(Te,Ue))break;F+=xe>=65536?2:1,Te=Ue}return F-z}function re(k,F){const pe=Be.getInstance(),z=F,Y=Q(k,F);F-=Y>=65536?2:1;let ie=pe.getGraphemeBreakType(Y);for(;F>0;){const Te=Q(k,F),xe=pe.getGraphemeBreakType(Te);if(mt(xe,ie))break;F-=Te>=65536?2:1,ie=xe}return z-F}const J=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function g(k){return J.test(k)}const v=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function Z(k){return v.test(k)}const ce=/^[\t\n\r\x20-\x7E]*$/;function Xe(k){return ce.test(k)}const We=/[\u2028\u2029]/;function Dt(k){return We.test(k)}function vt(k){for(let F=0,pe=k.length;F<pe;F++)if($t(k.charCodeAt(F)))return!0;return!1}function $t(k){return k=+k,k>=11904&&k<=55215||k>=63744&&k<=64255||k>=65281&&k<=65374}function Ht(k){return k>=127462&&k<=127487||k===8986||k===8987||k===9200||k===9203||k>=9728&&k<=10175||k===11088||k===11093||k>=127744&&k<=128591||k>=128640&&k<=128764||k>=128992&&k<=129003||k>=129280&&k<=129535||k>=129648&&k<=129750}const ke="\uFEFF";function Bt(k){return!!(k&&k.length>0&&k.charCodeAt(0)===65279)}function xn(k,F=!1){return k?(F&&(k=k.replace(/\\./g,"")),k.toLowerCase()!==k):!1}function Yt(k){return k=k%(2*26),k<26?String.fromCharCode(97+k):String.fromCharCode(65+k-26)}function ln(k){return Be.getInstance().getGraphemeBreakType(k)}function mt(k,F){return k===0?F!==5&&F!==7:k===2&&F===3?!1:k===4||k===2||k===3||F===4||F===2||F===3?!0:!(k===8&&(F===8||F===9||F===11||F===12)||(k===11||k===9)&&(F===9||F===10)||(k===12||k===10)&&F===10||F===5||F===13||F===7||k===1||k===13&&F===14||k===6&&F===6)}class Be{constructor(){this._data=be()}static getInstance(){return Be._INSTANCE||(Be._INSTANCE=new Be),Be._INSTANCE}getGraphemeBreakType(F){if(F<32)return F===10?3:F===13?2:4;if(F<127)return 0;const pe=this._data,z=pe.length/3;let Y=1;for(;Y<=z;)if(F<pe[3*Y])Y=2*Y;else if(F>pe[3*Y+1])Y=2*Y+1;else return pe[3*Y+2];return 0}}Be._INSTANCE=null;function be(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function M(k,F){if(k===0)return 0;const pe=Ce(k,F);if(pe!==void 0)return pe;const z=Q(F,k);return k-=Ge(z),k}function Ce(k,F){let pe=Q(F,k);for(k-=Ge(pe);K(pe)||pe===65039||pe===8419;){if(k===0)return;pe=Q(F,k),k-=Ge(pe)}if(Ht(pe)){if(k>=0){const z=Q(F,k);z===8205&&(k-=Ge(z))}return k}}function Ge(k){return k>=65536?2:1}function K(k){return 127995<=k&&k<=127999}},72999:function(Ln,jt,w){"use strict";w.d(jt,{$E:function(){return L},$K:function(){return ge},D8:function(){return m},HD:function(){return fe},IU:function(){return U},Jp:function(){return le},Kn:function(){return oe},cW:function(){return b},f6:function(){return V},hj:function(){return me},jn:function(){return O},kJ:function(){return p},mf:function(){return T},o8:function(){return d},p_:function(){return o},vE:function(){return te}});function p(N){return Array.isArray(N)}function fe(N){return typeof N=="string"}function oe(N){return typeof N=="object"&&N!==null&&!Array.isArray(N)&&!(N instanceof RegExp)&&!(N instanceof Date)}function me(N){return typeof N=="number"&&!isNaN(N)}function O(N){return N===!0||N===!1}function d(N){return typeof N=="undefined"}function ge(N){return!le(N)}function le(N){return d(N)||N===null}function o(N,B){if(!N)throw new Error(B?`Unexpected type, expected '${B}'`:"Unexpected type")}function b(N){if(le(N))throw new Error("Assertion Failed: argument is undefined or null");return N}function T(N){return typeof N=="function"}function m(N,B){const R=Math.min(N.length,B.length);for(let S=0;S<R;S++)y(N[S],B[S])}function y(N,B){if(fe(B)){if(typeof N!==B)throw new Error(`argument does not match constraint: typeof ${B}`)}else if(T(B)){try{if(N instanceof B)return}catch(R){}if(!le(N)&&N.constructor===B||B.length===1&&B.call(void 0,N)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function x(N){let B=[],R=Object.getPrototypeOf(N);for(;Object.prototype!==R;)B=B.concat(Object.getOwnPropertyNames(R)),R=Object.getPrototypeOf(R);return B}function L(N){const B=[];for(const R of x(N))typeof N[R]=="function"&&B.push(R);return B}function U(N,B){const R=$=>function(){const ee=Array.prototype.slice.call(arguments,0);return B($,ee)};let S={};for(const $ of N)S[$]=R($);return S}function V(N){return N===null?void 0:N}function te(N,B="Unreachable"){throw new Error(B)}},13268:function(Ln,jt,w){"use strict";w.d(jt,{N:function(){return fe}});function p(oe,me){let O;return me.length===0?O=oe:O=oe.replace(/\{(\d+)\}/g,function(d,ge){const le=ge[0];return typeof me[le]!="undefined"?me[le]:d}),O}function fe(oe,me,...O){return p(me,O)}},96236:function(Ln,jt,w){"use strict";w.d(jt,{BH:function(){return U},NZ:function(){return V},U8:function(){return te},co:function(){return L},eH:function(){return x},vr:function(){return y}});var p=w(75918),fe=w(52615),oe=w(4348),me=w(88226),O=w(69323),d=w(34502),ge=w(35884),le=w(90689),o=w(16925),b=w(49055),T=function(N,B,R,S){var $=arguments.length,ee=$<3?B:S===null?S=Object.getOwnPropertyDescriptor(B,R):S,W;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ee=Reflect.decorate(N,B,R,S);else for(var ne=N.length-1;ne>=0;ne--)(W=N[ne])&&(ee=($<3?W(ee):$>3?W(B,R,ee):W(B,R))||ee);return $>3&&ee&&Object.defineProperty(B,R,ee),ee},m=function(N,B){return function(R,S){B(R,S,N)}};function y(N){return N.command!==void 0}class x{constructor(B){this.id=x._idPool++,this._debugName=B}}x._idPool=0,x.CommandPalette=new x("CommandPalette"),x.EditorContext=new x("EditorContext"),x.SimpleEditorContext=new x("SimpleEditorContext"),x.EditorContextCopy=new x("EditorContextCopy"),x.EditorContextPeek=new x("EditorContextPeek"),x.MenubarEditMenu=new x("MenubarEditMenu"),x.MenubarCopy=new x("MenubarCopy"),x.MenubarGoMenu=new x("MenubarGoMenu"),x.MenubarSelectionMenu=new x("MenubarSelectionMenu"),x.InlineCompletionsActions=new x("InlineCompletionsActions");const L=(0,o.yh)("menuService"),U=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new oe.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:N=>N===x.CommandPalette}}addCommand(N){return this.addCommands(me.$.single(N))}addCommands(N){for(const B of N)this._commands.set(B.id,B);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,O.OF)(()=>{let B=!1;for(const R of N)B=this._commands.delete(R.id)||B;B&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(N){return this._commands.get(N)}getCommands(){const N=new Map;return this._commands.forEach((B,R)=>N.set(R,B)),N}appendMenuItem(N,B){return this.appendMenuItems(me.$.single({id:N,item:B}))}appendMenuItems(N){const B=new Set,R=new d.S;for(const{id:S,item:$}of N){let ee=this._menuItems.get(S);ee||(ee=new d.S,this._menuItems.set(S,ee)),R.push(ee.push($)),B.add(S)}return this._onDidChangeMenu.fire(B),(0,O.OF)(()=>{if(R.size>0){for(let S of R)S();this._onDidChangeMenu.fire(B),R.clear()}})}getMenuItems(N){let B;return this._menuItems.has(N)?B=[...this._menuItems.get(N)]:B=[],N===x.CommandPalette&&this._appendImplicitItems(B),B}_appendImplicitItems(N){const B=new Set;for(const R of N)y(R)&&(B.add(R.command.id),R.alt&&B.add(R.alt.id));this._commands.forEach((R,S)=>{B.has(S)||N.push({command:R})})}};class V extends p.wY{constructor(B,R,S,$){super(`submenuitem.${B.submenu.id}`,typeof B.title=="string"?B.title:B.title.value,[],"submenu"),this.item=B,this._menuService=R,this._contextKeyService=S,this._options=$}get actions(){const B=[],R=this._menuService.createMenu(this.item.submenu,this._contextKeyService),S=R.getActions(this._options);R.dispose();for(const[,$]of S)$.length>0&&(B.push(...$),B.push(new p.Z0));return B.length&&B.pop(),B}}let te=class ml{constructor(B,R,S,$,ee){var W,ne;if(this._commandService=ee,this.id=B.id,this.label=S!=null&&S.renderShortTitle&&B.shortTitle?typeof B.shortTitle=="string"?B.shortTitle:B.shortTitle.value:typeof B.title=="string"?B.title:B.title.value,this.tooltip=(ne=typeof B.tooltip=="string"?B.tooltip:(W=B.tooltip)===null||W===void 0?void 0:W.value)!==null&&ne!==void 0?ne:"",this.enabled=!B.precondition||$.contextMatchesRules(B.precondition),this.checked=void 0,B.toggled){const ue=B.toggled.condition?B.toggled:{condition:B.toggled};this.checked=$.contextMatchesRules(ue.condition),this.checked&&ue.tooltip&&(this.tooltip=typeof ue.tooltip=="string"?ue.tooltip:ue.tooltip.value),ue.title&&(this.label=typeof ue.title=="string"?ue.title:ue.title.value)}this.item=B,this.alt=R?new ml(R,void 0,S,$,ee):void 0,this._options=S,b.kS.isThemeIcon(B.icon)&&(this.class=fe.dT.asClassName(B.icon))}dispose(){}run(...B){var R,S;let $=[];return!((R=this._options)===null||R===void 0)&&R.arg&&($=[...$,this._options.arg]),!((S=this._options)===null||S===void 0)&&S.shouldForwardArgs&&($=[...$,...B]),this._commandService.executeCommand(this.id,...$)}};te=T([m(3,le.i6),m(4,ge.H)],te)},35884:function(Ln,jt,w){"use strict";w.d(jt,{H:function(){return ge},P:function(){return le}});var p=w(4348),fe=w(88226),oe=w(69323),me=w(34502),O=w(72999),d=w(16925);const ge=(0,d.yh)("commandService"),le=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new p.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,b){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!b)throw new Error("invalid command");return this.registerCommand({id:o,handler:b})}if(o.description){const L=[];for(let V of o.description.args)L.push(V.constraint);const U=o.handler;o.handler=function(V,...te){return(0,O.D8)(te,L),U(V,...te)}}const{id:T}=o;let m=this._commands.get(T);m||(m=new me.S,this._commands.set(T,m));let y=m.unshift(o),x=(0,oe.OF)(()=>{y();const L=this._commands.get(T);L!=null&&L.isEmpty()&&this._commands.delete(T)});return this._onDidRegisterCommand.fire(T),x}registerCommandAlias(o,b){return le.registerCommand(o,(T,...m)=>T.get(ge).executeCommand(b,...m))}getCommand(o){const b=this._commands.get(o);if(!(!b||b.isEmpty()))return fe.$.first(b)}getCommands(){const o=new Map;for(const b of this._commands.keys()){const T=this.getCommand(b);T&&o.set(b,T)}return o}};le.registerCommand("noop",()=>{})},90689:function(Ln,jt,w){"use strict";w.d(jt,{Ao:function(){return ge},Eq:function(){return G},Fb:function(){return le},K8:function(){return q},i6:function(){return Oe},uy:function(){return he}});var p=w(23345),fe=w(82983),oe=w(16925);let me=p.WE||"";const O=new Map;O.set("false",!1),O.set("true",!0),O.set("isMac",p.dz),O.set("isLinux",p.IJ),O.set("isWindows",p.ED),O.set("isWeb",p.$L),O.set("isMacNative",p.dz&&!p.$L),O.set("isEdge",me.indexOf("Edg/")>=0),O.set("isFirefox",me.indexOf("Firefox")>=0),O.set("isChrome",me.indexOf("Chrome")>=0),O.set("isSafari",me.indexOf("Safari")>=0);const d=Object.prototype.hasOwnProperty;class ge{static has(g){return m.create(g)}static equals(g,v){return y.create(g,v)}static regex(g,v){return $.create(g,v)}static not(g){return V.create(g)}static and(...g){return ne.create(g,null)}static or(...g){return ue.create(g,null,!0)}static deserialize(g,v=!1){if(g)return this._deserializeOrExpression(g,v)}static _deserializeOrExpression(g,v){let Z=g.split("||");return ue.create(Z.map(ce=>this._deserializeAndExpression(ce,v)),null,!0)}static _deserializeAndExpression(g,v){let Z=g.split("&&");return ne.create(Z.map(ce=>this._deserializeOne(ce,v)),null)}static _deserializeOne(g,v){if(g=g.trim(),g.indexOf("!=")>=0){let Z=g.split("!=");return U.create(Z[0].trim(),this._deserializeValue(Z[1],v))}if(g.indexOf("==")>=0){let Z=g.split("==");return y.create(Z[0].trim(),this._deserializeValue(Z[1],v))}if(g.indexOf("=~")>=0){let Z=g.split("=~");return $.create(Z[0].trim(),this._deserializeRegexValue(Z[1],v))}if(g.indexOf(" in ")>=0){let Z=g.split(" in ");return x.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(g)){const Z=g.split(">=");return B.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(g)){const Z=g.split(">");return N.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(g)){const Z=g.split("<=");return S.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(g)){const Z=g.split("<");return R.create(Z[0].trim(),Z[1].trim())}return/^\!\s*/.test(g)?V.create(g.substr(1).trim()):m.create(g)}static _deserializeValue(g,v){if(g=g.trim(),g==="true")return!0;if(g==="false")return!1;let Z=/^'([^']*)'$/.exec(g);return Z?Z[1].trim():g}static _deserializeRegexValue(g,v){if((0,fe.m5)(g)){if(v)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let Z=g.indexOf("/"),ce=g.lastIndexOf("/");if(Z===ce||Z<0){if(v)throw new Error(`bad regexp-value '${g}', missing /-enclosure`);return console.warn(`bad regexp-value '${g}', missing /-enclosure`),null}let Xe=g.slice(Z+1,ce),We=g[ce+1]==="i"?"i":"";try{return new RegExp(Xe,We)}catch(Dt){if(v)throw new Error(`bad regexp-value '${g}', parse error: ${Dt}`);return console.warn(`bad regexp-value '${g}', parse error: ${Dt}`),null}}}function le(J,g){const v=J?J.substituteConstants():void 0,Z=g?g.substituteConstants():void 0;return!v&&!Z?!0:!v||!Z?!1:v.equals(Z)}function o(J,g){return J.cmp(g)}class b{constructor(){this.type=0}cmp(g){return this.type-g.type}equals(g){return g.type===this.type}substituteConstants(){return this}evaluate(g){return!1}serialize(){return"false"}keys(){return[]}negate(){return T.INSTANCE}}b.INSTANCE=new b;class T{constructor(){this.type=1}cmp(g){return this.type-g.type}equals(g){return g.type===this.type}substituteConstants(){return this}evaluate(g){return!0}serialize(){return"true"}keys(){return[]}negate(){return b.INSTANCE}}T.INSTANCE=new T;class m{constructor(g,v){this.key=g,this.negated=v,this.type=2}static create(g,v=null){const Z=O.get(g);return typeof Z=="boolean"?Z?T.INSTANCE:b.INSTANCE:new m(g,v)}cmp(g){return g.type!==this.type?this.type-g.type:P(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=O.get(this.key);return typeof g=="boolean"?g?T.INSTANCE:b.INSTANCE:this}evaluate(g){return!!g.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this)),this.negated}}class y{constructor(g,v,Z){this.key=g,this.value=v,this.negated=Z,this.type=4}static create(g,v,Z=null){if(typeof v=="boolean")return v?m.create(g,Z):V.create(g,Z);const ce=O.get(g);return typeof ce=="boolean"?v===(ce?"true":"false")?T.INSTANCE:b.INSTANCE:new y(g,v,Z)}cmp(g){return g.type!==this.type?this.type-g.type:Q(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){const g=O.get(this.key);if(typeof g=="boolean"){const v=g?"true":"false";return this.value===v?T.INSTANCE:b.INSTANCE}return this}evaluate(g){return g.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=U.create(this.key,this.value,this)),this.negated}}class x{constructor(g,v){this.key=g,this.valueKey=v,this.type=10,this.negated=null}static create(g,v){return new x(g,v)}cmp(g){return g.type!==this.type?this.type-g.type:Q(this.key,this.valueKey,g.key,g.valueKey)}equals(g){return g.type===this.type?this.key===g.key&&this.valueKey===g.valueKey:!1}substituteConstants(){return this}evaluate(g){const v=g.getValue(this.valueKey),Z=g.getValue(this.key);return Array.isArray(v)?v.indexOf(Z)>=0:typeof Z=="string"&&typeof v=="object"&&v!==null?d.call(v,Z):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=L.create(this)),this.negated}}class L{constructor(g){this._actual=g,this.type=11}static create(g){return new L(g)}cmp(g){return g.type!==this.type?this.type-g.type:this._actual.cmp(g._actual)}equals(g){return g.type===this.type?this._actual.equals(g._actual):!1}substituteConstants(){return this}evaluate(g){return!this._actual.evaluate(g)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class U{constructor(g,v,Z){this.key=g,this.value=v,this.negated=Z,this.type=5}static create(g,v,Z=null){if(typeof v=="boolean")return v?V.create(g,Z):m.create(g,Z);const ce=O.get(g);return typeof ce=="boolean"?v===(ce?"true":"false")?b.INSTANCE:T.INSTANCE:new U(g,v,Z)}cmp(g){return g.type!==this.type?this.type-g.type:Q(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){const g=O.get(this.key);if(typeof g=="boolean"){const v=g?"true":"false";return this.value===v?b.INSTANCE:T.INSTANCE}return this}evaluate(g){return g.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=y.create(this.key,this.value,this)),this.negated}}class V{constructor(g,v){this.key=g,this.negated=v,this.type=3}static create(g,v=null){const Z=O.get(g);return typeof Z=="boolean"?Z?b.INSTANCE:T.INSTANCE:new V(g,v)}cmp(g){return g.type!==this.type?this.type-g.type:P(this.key,g.key)}equals(g){return g.type===this.type?this.key===g.key:!1}substituteConstants(){const g=O.get(this.key);return typeof g=="boolean"?g?b.INSTANCE:T.INSTANCE:this}evaluate(g){return!g.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this)),this.negated}}function te(J,g){if(typeof J=="string"){const v=parseFloat(J);isNaN(v)||(J=v)}return typeof J=="string"||typeof J=="number"?g(J):b.INSTANCE}class N{constructor(g,v,Z){this.key=g,this.value=v,this.negated=Z,this.type=12}static create(g,v,Z=null){return te(v,ce=>new N(g,ce,Z))}cmp(g){return g.type!==this.type?this.type-g.type:Q(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=S.create(this.key,this.value,this)),this.negated}}class B{constructor(g,v,Z){this.key=g,this.value=v,this.negated=Z,this.type=13}static create(g,v,Z=null){return te(v,ce=>new B(g,ce,Z))}cmp(g){return g.type!==this.type?this.type-g.type:Q(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class R{constructor(g,v,Z){this.key=g,this.value=v,this.negated=Z,this.type=14}static create(g,v,Z=null){return te(v,ce=>new R(g,ce,Z))}cmp(g){return g.type!==this.type?this.type-g.type:Q(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class S{constructor(g,v,Z){this.key=g,this.value=v,this.negated=Z,this.type=15}static create(g,v,Z=null){return te(v,ce=>new S(g,ce,Z))}cmp(g){return g.type!==this.type?this.type-g.type:Q(this.key,this.value,g.key,g.value)}equals(g){return g.type===this.type?this.key===g.key&&this.value===g.value:!1}substituteConstants(){return this}evaluate(g){return typeof this.value=="string"?!1:parseFloat(g.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this.key,this.value,this)),this.negated}}class ${constructor(g,v){this.key=g,this.regexp=v,this.type=7,this.negated=null}static create(g,v){return new $(g,v)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.key<g.key)return-1;if(this.key>g.key)return 1;const v=this.regexp?this.regexp.source:"",Z=g.regexp?g.regexp.source:"";return v<Z?-1:v>Z?1:0}equals(g){if(g.type===this.type){const v=this.regexp?this.regexp.source:"",Z=g.regexp?g.regexp.source:"";return this.key===g.key&&v===Z}return!1}substituteConstants(){return this}evaluate(g){let v=g.getValue(this.key);return this.regexp?this.regexp.test(v):!1}serialize(){const g=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${g}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=ee.create(this)),this.negated}}class ee{constructor(g){this._actual=g,this.type=8}static create(g){return new ee(g)}cmp(g){return g.type!==this.type?this.type-g.type:this._actual.cmp(g._actual)}equals(g){return g.type===this.type?this._actual.equals(g._actual):!1}substituteConstants(){return this}evaluate(g){return!this._actual.evaluate(g)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function W(J){let g=null;for(let v=0,Z=J.length;v<Z;v++){const ce=J[v].substituteConstants();if(J[v]!==ce&&g===null){g=[];for(let Xe=0;Xe<v;Xe++)g[Xe]=J[Xe]}g!==null&&(g[v]=ce)}return g===null?J:g}class ne{constructor(g,v){this.expr=g,this.negated=v,this.type=6}static create(g,v){return ne._normalizeArr(g,v)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(let v=0,Z=this.expr.length;v<Z;v++){const ce=o(this.expr[v],g.expr[v]);if(ce!==0)return ce}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let v=0,Z=this.expr.length;v<Z;v++)if(!this.expr[v].equals(g.expr[v]))return!1;return!0}return!1}substituteConstants(){const g=W(this.expr);return g===this.expr?this:ne.create(g,this.negated)}evaluate(g){for(let v=0,Z=this.expr.length;v<Z;v++)if(!this.expr[v].evaluate(g))return!1;return!0}static _normalizeArr(g,v){const Z=[];let ce=!1;for(const Xe of g)if(Xe){if(Xe.type===1){ce=!0;continue}if(Xe.type===0)return b.INSTANCE;if(Xe.type===6){Z.push(...Xe.expr);continue}Z.push(Xe)}if(Z.length===0&&ce)return T.INSTANCE;if(Z.length!==0){if(Z.length===1)return Z[0];Z.sort(o);for(let Xe=1;Xe<Z.length;Xe++)Z[Xe-1].equals(Z[Xe])&&(Z.splice(Xe,1),Xe--);if(Z.length===1)return Z[0];for(;Z.length>1;){const Xe=Z[Z.length-1];if(Xe.type!==9)break;Z.pop();const We=Z.pop(),Dt=Z.length===0,vt=ue.create(Xe.expr.map($t=>ne.create([$t,We],null)),null,Dt);vt&&(Z.push(vt),Z.sort(o))}return Z.length===1?Z[0]:new ne(Z,v)}}serialize(){return this.expr.map(g=>g.serialize()).join(" && ")}keys(){const g=[];for(let v of this.expr)g.push(...v.keys());return g}negate(){if(!this.negated){const g=[];for(let v of this.expr)g.push(v.negate());this.negated=ue.create(g,this,!0)}return this.negated}}class ue{constructor(g,v){this.expr=g,this.negated=v,this.type=9}static create(g,v,Z){return ue._normalizeArr(g,v,Z)}cmp(g){if(g.type!==this.type)return this.type-g.type;if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(let v=0,Z=this.expr.length;v<Z;v++){const ce=o(this.expr[v],g.expr[v]);if(ce!==0)return ce}return 0}equals(g){if(g.type===this.type){if(this.expr.length!==g.expr.length)return!1;for(let v=0,Z=this.expr.length;v<Z;v++)if(!this.expr[v].equals(g.expr[v]))return!1;return!0}return!1}substituteConstants(){const g=W(this.expr);return g===this.expr?this:ue.create(g,this.negated,!1)}evaluate(g){for(let v=0,Z=this.expr.length;v<Z;v++)if(this.expr[v].evaluate(g))return!0;return!1}static _normalizeArr(g,v,Z){let ce=[],Xe=!1;if(g){for(let We=0,Dt=g.length;We<Dt;We++){const vt=g[We];if(vt){if(vt.type===0){Xe=!0;continue}if(vt.type===1)return T.INSTANCE;if(vt.type===9){ce=ce.concat(vt.expr);continue}ce.push(vt)}}if(ce.length===0&&Xe)return b.INSTANCE;ce.sort(o)}if(ce.length!==0){if(ce.length===1)return ce[0];for(let We=1;We<ce.length;We++)ce[We-1].equals(ce[We])&&(ce.splice(We,1),We--);if(ce.length===1)return ce[0];if(Z){for(let We=0;We<ce.length;We++)for(let Dt=We+1;Dt<ce.length;Dt++)q(ce[We],ce[Dt])&&(ce.splice(Dt,1),Dt--);if(ce.length===1)return ce[0]}return new ue(ce,v)}}serialize(){return this.expr.map(g=>g.serialize()).join(" || ")}keys(){const g=[];for(let v of this.expr)g.push(...v.keys());return g}negate(){if(!this.negated){let g=[];for(let v of this.expr)g.push(v.negate());for(;g.length>1;){const v=g.shift(),Z=g.shift(),ce=[];for(const We of re(v))for(const Dt of re(Z))ce.push(ne.create([We,Dt],null));const Xe=g.length===0;g.unshift(ue.create(ce,null,Xe))}this.negated=g[0]}return this.negated}}class he extends m{constructor(g,v,Z){super(g,null),this._defaultValue=v,typeof Z=="object"?he._info.push(Object.assign(Object.assign({},Z),{key:g})):Z!==!0&&he._info.push({key:g,description:Z,type:v!=null?typeof v:void 0})}static all(){return he._info.values()}bindTo(g){return g.createKey(this.key,this._defaultValue)}getValue(g){return g.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(g){return y.create(this.key,g)}}he._info=[];const Oe=(0,oe.yh)("contextKeyService"),G="setContext";function P(J,g){return J<g?-1:J>g?1:0}function Q(J,g,v,Z){return J<v?-1:J>v?1:g<Z?-1:g>Z?1:0}function q(J,g){if(g.type===6&&J.type!==9&&J.type!==6){for(const ce of g.expr)if(J.equals(ce))return!0}const v=J.negate(),Z=re(v).concat(re(g));Z.sort(o);for(let ce=0;ce<Z.length;ce++){const We=Z[ce].negate();for(let Dt=ce+1;Dt<Z.length;Dt++){const vt=Z[Dt];if(We.equals(vt))return!0}}return!1}function re(J){return J.type===9?J.expr:[J]}},16925:function(Ln,jt,w){"use strict";w.d(jt,{I8:function(){return p},TG:function(){return fe},jt:function(){return O},yh:function(){return me}});var p;(function(d){d.serviceIds=new Map,d.DI_TARGET="$di$target",d.DI_DEPENDENCIES="$di$dependencies";function ge(le){return le[d.DI_DEPENDENCIES]||[]}d.getServiceDependencies=ge})(p||(p={}));const fe=me("instantiationService");function oe(d,ge,le,o){ge[p.DI_TARGET]===ge?ge[p.DI_DEPENDENCIES].push({id:d,index:le,optional:o}):(ge[p.DI_DEPENDENCIES]=[{id:d,index:le,optional:o}],ge[p.DI_TARGET]=ge)}function me(d){if(p.serviceIds.has(d))return p.serviceIds.get(d);const ge=function(le,o,b){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");oe(ge,le,b,!1)};return ge.toString=()=>d,p.serviceIds.set(d,ge),ge}function O(d){return function(ge,le,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");oe(d,ge,o,!0)}}},44650:function(Ln,jt,w){"use strict";w.d(jt,{B:function(){return me}});var p=w(76068),fe=w(72999);class oe{constructor(){this.data=new Map}add(d,ge){p.ok(fe.HD(d)),p.ok(fe.Kn(ge)),p.ok(!this.data.has(d),"There is already an extension with this id"),this.data.set(d,ge)}as(d){return this.data.get(d)||null}}const me=new oe},66213:function(Ln,jt,w){"use strict";w.d(jt,{e:function(){return p}});var p;(function(fe){fe.DARK="dark",fe.LIGHT="light",fe.HIGH_CONTRAST="hc"})(p||(p={}))},49055:function(Ln,jt,w){"use strict";w.d(jt,{EN:function(){return o},IP:function(){return m},Ic:function(){return L},XE:function(){return ge},bB:function(){return U},kS:function(){return b},m6:function(){return T}});var p=w(52615),fe=w(4348),oe=w(69323),me=w(16925),O=w(44650),d=w(66213);const ge=(0,me.yh)("themeService");var le;(function(V){function te(N){return N&&typeof N=="object"&&typeof N.id=="string"}V.isThemeColor=te})(le||(le={}));function o(V){return{id:V}}var b;(function(V){function te(ee){return ee&&typeof ee=="object"&&typeof ee.id=="string"&&(typeof ee.color=="undefined"||le.isThemeColor(ee.color))}V.isThemeIcon=te;const N=new RegExp(`^\\$\\((${p.dT.iconNameExpression}(?:${p.dT.iconModifierExpression})?)\\)$`);function B(ee){const W=N.exec(ee);if(!W)return;let[,ne]=W;return{id:ne}}V.fromString=B;function R(ee,W){let ne=ee.id;const ue=ne.lastIndexOf("~");return ue!==-1&&(ne=ne.substring(0,ue)),W&&(ne=`${ne}~${W}`),{id:ne}}V.modify=R;function S(ee,W){var ne,ue;return ee.id===W.id&&((ne=ee.color)===null||ne===void 0?void 0:ne.id)===((ue=W.color)===null||ue===void 0?void 0:ue.id)}V.isEqual=S;function $(ee,W){return{id:ee.id,color:W?o(W):void 0}}V.asThemeIcon=$,V.asClassNameArray=p.dT.asClassNameArray,V.asClassName=p.dT.asClassName,V.asCSSSelector=p.dT.asCSSSelector})(b||(b={}));function T(V){switch(V){case d.e.DARK:return"vs-dark";case d.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const m={ThemingContribution:"base.contributions.theming"};class y{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new fe.Q5}onColorThemeChange(te){return this.themingParticipants.push(te),this.onThemingParticipantAddedEmitter.fire(te),(0,oe.OF)(()=>{const N=this.themingParticipants.indexOf(te);this.themingParticipants.splice(N,1)})}getThemingParticipants(){return this.themingParticipants}}let x=new y;O.B.add(m.ThemingContribution,x);function L(V){return x.onColorThemeChange(V)}class U extends oe.JT{constructor(te){super(),this.themeService=te,this.theme=te.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(N=>this.onThemeChange(N)))}onThemeChange(te){this.theme=te,this.updateStyles()}updateStyles(){}}},16632:function(Ln,jt,w){"use strict";var p=w(5016),fe=w(20049),oe=w(18082),me=w(52456),O=w(5883),d=w(92310),ge=w.n(d),le=w(18929),o=w(59301),b=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],T=(0,o.forwardRef)(function(m,y){var x=m.prefixCls,L=x===void 0?"rc-checkbox":x,U=m.className,V=m.style,te=m.checked,N=m.disabled,B=m.defaultChecked,R=B===void 0?!1:B,S=m.type,$=S===void 0?"checkbox":S,ee=m.title,W=m.onChange,ne=(0,O.Z)(m,b),ue=(0,o.useRef)(null),he=(0,o.useRef)(null),Oe=(0,le.Z)(R,{value:te}),G=(0,me.Z)(Oe,2),P=G[0],Q=G[1];(0,o.useImperativeHandle)(y,function(){return{focus:function(g){var v;(v=ue.current)===null||v===void 0||v.focus(g)},blur:function(){var g;(g=ue.current)===null||g===void 0||g.blur()},input:ue.current,nativeElement:he.current}});var q=ge()(L,U,(0,oe.Z)((0,oe.Z)({},"".concat(L,"-checked"),P),"".concat(L,"-disabled"),N)),re=function(g){N||("checked"in m||Q(g.target.checked),W==null||W({target:(0,fe.Z)((0,fe.Z)({},m),{},{type:$,checked:g.target.checked}),stopPropagation:function(){g.stopPropagation()},preventDefault:function(){g.preventDefault()},nativeEvent:g.nativeEvent}))};return o.createElement("span",{className:q,title:ee,style:V,ref:he},o.createElement("input",(0,p.Z)({},ne,{className:"".concat(L,"-input"),ref:ue,onChange:re,disabled:N,checked:!!P,type:$})),o.createElement("span",{className:"".concat(L,"-inner")}))});jt.Z=T},96478:function(Ln,jt,w){"use strict";w.d(jt,{Z:function(){return ee}});var p=w(5016),fe=w(18082),oe=w(52456),me=w(5883),O=w(65352),d=w(92310),ge=w.n(d),le=w(8654),o=w(59301),b=w(10228),T=w(16089),m=b.Z.ESC,y=b.Z.TAB;function x(W){var ne=W.visible,ue=W.triggerRef,he=W.onVisibleChange,Oe=W.autoFocus,G=W.overlayRef,P=o.useRef(!1),Q=function(){if(ne){var g,v;(g=ue.current)===null||g===void 0||(v=g.focus)===null||v===void 0||v.call(g),he==null||he(!1)}},q=function(){var g;return(g=G.current)!==null&&g!==void 0&&g.focus?(G.current.focus(),P.current=!0,!0):!1},re=function(g){switch(g.keyCode){case m:Q();break;case y:{var v=!1;P.current||(v=q()),v?g.preventDefault():Q();break}}};o.useEffect(function(){return ne?(window.addEventListener("keydown",re),Oe&&(0,T.Z)(q,3),function(){window.removeEventListener("keydown",re),P.current=!1}):function(){P.current=!1}},[ne])}var L=(0,o.forwardRef)(function(W,ne){var ue=W.overlay,he=W.arrow,Oe=W.prefixCls,G=(0,o.useMemo)(function(){var Q;return typeof ue=="function"?Q=ue():Q=ue,Q},[ue]),P=(0,le.sQ)(ne,(0,le.C4)(G));return o.createElement(o.Fragment,null,he&&o.createElement("div",{className:"".concat(Oe,"-arrow")}),o.cloneElement(G,{ref:(0,le.Yr)(G)?P:void 0}))}),U=L,V={adjustX:1,adjustY:1},te=[0,0],N={topLeft:{points:["bl","tl"],overflow:V,offset:[0,-4],targetOffset:te},top:{points:["bc","tc"],overflow:V,offset:[0,-4],targetOffset:te},topRight:{points:["br","tr"],overflow:V,offset:[0,-4],targetOffset:te},bottomLeft:{points:["tl","bl"],overflow:V,offset:[0,4],targetOffset:te},bottom:{points:["tc","bc"],overflow:V,offset:[0,4],targetOffset:te},bottomRight:{points:["tr","br"],overflow:V,offset:[0,4],targetOffset:te}},B=N,R=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function S(W,ne){var ue,he=W.arrow,Oe=he===void 0?!1:he,G=W.prefixCls,P=G===void 0?"rc-dropdown":G,Q=W.transitionName,q=W.animation,re=W.align,J=W.placement,g=J===void 0?"bottomLeft":J,v=W.placements,Z=v===void 0?B:v,ce=W.getPopupContainer,Xe=W.showAction,We=W.hideAction,Dt=W.overlayClassName,vt=W.overlayStyle,$t=W.visible,Ht=W.trigger,ke=Ht===void 0?["hover"]:Ht,Bt=W.autoFocus,xn=W.overlay,Yt=W.children,ln=W.onVisibleChange,mt=(0,me.Z)(W,R),Be=o.useState(),be=(0,oe.Z)(Be,2),M=be[0],Ce=be[1],Ge="visible"in W?$t:M,K=o.useRef(null),k=o.useRef(null),F=o.useRef(null);o.useImperativeHandle(ne,function(){return K.current});var pe=function(at){Ce(at),ln==null||ln(at)};x({visible:Ge,triggerRef:F,onVisibleChange:pe,autoFocus:Bt,overlayRef:k});var z=function(at){var ve=W.onOverlayClick;Ce(!1),ve&&ve(at)},Y=function(){return o.createElement(U,{ref:k,overlay:xn,prefixCls:P,arrow:Oe})},ie=function(){return typeof xn=="function"?Y:Y()},Te=function(){var at=W.minOverlayWidthMatchTrigger,ve=W.alignPoint;return"minOverlayWidthMatchTrigger"in W?at:!ve},xe=function(){var at=W.openClassName;return at!==void 0?at:"".concat(P,"-open")},Ue=o.cloneElement(Yt,{className:ge()((ue=Yt.props)===null||ue===void 0?void 0:ue.className,Ge&&xe()),ref:(0,le.Yr)(Yt)?(0,le.sQ)(F,(0,le.C4)(Yt)):void 0}),Ze=We;return!Ze&&ke.indexOf("contextMenu")!==-1&&(Ze=["click"]),o.createElement(O.Z,(0,p.Z)({builtinPlacements:Z},mt,{prefixCls:P,ref:K,popupClassName:ge()(Dt,(0,fe.Z)({},"".concat(P,"-show-arrow"),Oe)),popupStyle:vt,action:ke,showAction:Xe,hideAction:Ze,popupPlacement:g,popupAlign:re,popupTransitionName:Q,popupAnimation:q,popupVisible:Ge,stretch:Te()?"minWidth":"",popup:ie(),onPopupVisibleChange:pe,onPopupClick:z,getPopupContainer:ce}),Ue)}var $=o.forwardRef(S),ee=$},66003:function(Ln,jt,w){"use strict";w.d(jt,{Z:function(){return ge}});var p=w(5883),fe=w(20049),oe=w(10928),me=w(59301),O=["show"];function d(le,o){if(!o.max)return!0;var b=o.strategy(le);return b<=o.max}function ge(le,o){return me.useMemo(function(){var b={};o&&(b.show=(0,oe.Z)(o)==="object"&&o.formatter?o.formatter:!!o),b=(0,fe.Z)((0,fe.Z)({},b),le);var T=b,m=T.show,y=(0,p.Z)(T,O);return(0,fe.Z)((0,fe.Z)({},y),{},{show:!!m,showFormatter:typeof m=="function"?m:void 0,strategy:y.strategy||function(x){return x.length}})},[le,o])}},36901:function(Ln,jt,w){"use strict";w.r(jt),w.d(jt,{BaseInput:function(){return b},default:function(){return B}});var p=w(20049),fe=w(5016),oe=w(18082),me=w(10928),O=w(92310),d=w.n(O),ge=w(59301),le=w(30292),o=ge.forwardRef(function(R,S){var $,ee,W,ne=R.inputElement,ue=R.children,he=R.prefixCls,Oe=R.prefix,G=R.suffix,P=R.addonBefore,Q=R.addonAfter,q=R.className,re=R.style,J=R.disabled,g=R.readOnly,v=R.focused,Z=R.triggerFocus,ce=R.allowClear,Xe=R.value,We=R.handleReset,Dt=R.hidden,vt=R.classes,$t=R.classNames,Ht=R.dataAttrs,ke=R.styles,Bt=R.components,xn=R.onClear,Yt=ue!=null?ue:ne,ln=(Bt==null?void 0:Bt.affixWrapper)||"span",mt=(Bt==null?void 0:Bt.groupWrapper)||"span",Be=(Bt==null?void 0:Bt.wrapper)||"span",be=(Bt==null?void 0:Bt.groupAddon)||"span",M=(0,ge.useRef)(null),Ce=function(ot){var Je;(Je=M.current)!==null&&Je!==void 0&&Je.contains(ot.target)&&(Z==null||Z())},Ge=(0,le.X3)(R),K=(0,ge.cloneElement)(Yt,{value:Xe,className:d()(($=Yt.props)===null||$===void 0?void 0:$.className,!Ge&&($t==null?void 0:$t.variant))||null}),k=(0,ge.useRef)(null);if(ge.useImperativeHandle(S,function(){return{nativeElement:k.current||M.current}}),Ge){var F=null;if(ce){var pe=!J&&!g&&Xe,z="".concat(he,"-clear-icon"),Y=(0,me.Z)(ce)==="object"&&ce!==null&&ce!==void 0&&ce.clearIcon?ce.clearIcon:"\u2716";F=ge.createElement("button",{type:"button",tabIndex:-1,onClick:function(ot){We==null||We(ot),xn==null||xn()},onMouseDown:function(ot){return ot.preventDefault()},className:d()(z,(0,oe.Z)((0,oe.Z)({},"".concat(z,"-hidden"),!pe),"".concat(z,"-has-suffix"),!!G))},Y)}var ie="".concat(he,"-affix-wrapper"),Te=d()(ie,(0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)({},"".concat(he,"-disabled"),J),"".concat(ie,"-disabled"),J),"".concat(ie,"-focused"),v),"".concat(ie,"-readonly"),g),"".concat(ie,"-input-with-clear-btn"),G&&ce&&Xe),vt==null?void 0:vt.affixWrapper,$t==null?void 0:$t.affixWrapper,$t==null?void 0:$t.variant),xe=(G||ce)&&ge.createElement("span",{className:d()("".concat(he,"-suffix"),$t==null?void 0:$t.suffix),style:ke==null?void 0:ke.suffix},F,G);K=ge.createElement(ln,(0,fe.Z)({className:Te,style:ke==null?void 0:ke.affixWrapper,onClick:Ce},Ht==null?void 0:Ht.affixWrapper,{ref:M}),Oe&&ge.createElement("span",{className:d()("".concat(he,"-prefix"),$t==null?void 0:$t.prefix),style:ke==null?void 0:ke.prefix},Oe),K,xe)}if((0,le.He)(R)){var Ue="".concat(he,"-group"),Ze="".concat(Ue,"-addon"),$e="".concat(Ue,"-wrapper"),at=d()("".concat(he,"-wrapper"),Ue,vt==null?void 0:vt.wrapper,$t==null?void 0:$t.wrapper),ve=d()($e,(0,oe.Z)({},"".concat($e,"-disabled"),J),vt==null?void 0:vt.group,$t==null?void 0:$t.groupWrapper);K=ge.createElement(mt,{className:ve,ref:k},ge.createElement(Be,{className:at},P&&ge.createElement(be,{className:Ze},P),K,Q&&ge.createElement(be,{className:Ze},Q)))}return ge.cloneElement(K,{className:d()((ee=K.props)===null||ee===void 0?void 0:ee.className,q)||null,style:(0,p.Z)((0,p.Z)({},(W=K.props)===null||W===void 0?void 0:W.style),re),hidden:Dt})}),b=o,T=w(92393),m=w(52456),y=w(5883),x=w(18929),L=w(2738),U=w(66003),V=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],te=(0,ge.forwardRef)(function(R,S){var $=R.autoComplete,ee=R.onChange,W=R.onFocus,ne=R.onBlur,ue=R.onPressEnter,he=R.onKeyDown,Oe=R.onKeyUp,G=R.prefixCls,P=G===void 0?"rc-input":G,Q=R.disabled,q=R.htmlSize,re=R.className,J=R.maxLength,g=R.suffix,v=R.showCount,Z=R.count,ce=R.type,Xe=ce===void 0?"text":ce,We=R.classes,Dt=R.classNames,vt=R.styles,$t=R.onCompositionStart,Ht=R.onCompositionEnd,ke=(0,y.Z)(R,V),Bt=(0,ge.useState)(!1),xn=(0,m.Z)(Bt,2),Yt=xn[0],ln=xn[1],mt=(0,ge.useRef)(!1),Be=(0,ge.useRef)(!1),be=(0,ge.useRef)(null),M=(0,ge.useRef)(null),Ce=function(Xt){be.current&&(0,le.nH)(be.current,Xt)},Ge=(0,x.Z)(R.defaultValue,{value:R.value}),K=(0,m.Z)(Ge,2),k=K[0],F=K[1],pe=k==null?"":String(k),z=(0,ge.useState)(null),Y=(0,m.Z)(z,2),ie=Y[0],Te=Y[1],xe=(0,U.Z)(Z,v),Ue=xe.max||J,Ze=xe.strategy(pe),$e=!!Ue&&Ze>Ue;(0,ge.useImperativeHandle)(S,function(){var At;return{focus:Ce,blur:function(){var Fe;(Fe=be.current)===null||Fe===void 0||Fe.blur()},setSelectionRange:function(Fe,Ne,Me){var I;(I=be.current)===null||I===void 0||I.setSelectionRange(Fe,Ne,Me)},select:function(){var Fe;(Fe=be.current)===null||Fe===void 0||Fe.select()},input:be.current,nativeElement:((At=M.current)===null||At===void 0?void 0:At.nativeElement)||be.current}}),(0,ge.useEffect)(function(){Be.current&&(Be.current=!1),ln(function(At){return At&&Q?!1:At})},[Q]);var at=function(Xt,Fe,Ne){var Me=Fe;if(!mt.current&&xe.exceedFormatter&&xe.max&&xe.strategy(Fe)>xe.max){if(Me=xe.exceedFormatter(Fe,{max:xe.max}),Fe!==Me){var I,ae;Te([((I=be.current)===null||I===void 0?void 0:I.selectionStart)||0,((ae=be.current)===null||ae===void 0?void 0:ae.selectionEnd)||0])}}else if(Ne.source==="compositionEnd")return;F(Me),be.current&&(0,le.rJ)(be.current,Xt,ee,Me)};(0,ge.useEffect)(function(){if(ie){var At;(At=be.current)===null||At===void 0||At.setSelectionRange.apply(At,(0,T.Z)(ie))}},[ie]);var ve=function(Xt){at(Xt,Xt.target.value,{source:"change"})},De=function(Xt){mt.current=!1,at(Xt,Xt.currentTarget.value,{source:"compositionEnd"}),Ht==null||Ht(Xt)},ot=function(Xt){ue&&Xt.key==="Enter"&&!Be.current&&(Be.current=!0,ue(Xt)),he==null||he(Xt)},Je=function(Xt){Xt.key==="Enter"&&(Be.current=!1),Oe==null||Oe(Xt)},He=function(Xt){ln(!0),W==null||W(Xt)},gt=function(Xt){Be.current&&(Be.current=!1),ln(!1),ne==null||ne(Xt)},Rt=function(Xt){F(""),Ce(),be.current&&(0,le.rJ)(be.current,Xt,ee)},st=$e&&"".concat(P,"-out-of-range"),Kt=function(){var Xt=(0,L.Z)(R,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ge.createElement("input",(0,fe.Z)({autoComplete:$},Xt,{onChange:ve,onFocus:He,onBlur:gt,onKeyDown:ot,onKeyUp:Je,className:d()(P,(0,oe.Z)({},"".concat(P,"-disabled"),Q),Dt==null?void 0:Dt.input),style:vt==null?void 0:vt.input,ref:be,size:q,type:Xe,onCompositionStart:function(Ne){mt.current=!0,$t==null||$t(Ne)},onCompositionEnd:De}))},cn=function(){var Xt=Number(Ue)>0;if(g||xe.show){var Fe=xe.showFormatter?xe.showFormatter({value:pe,count:Ze,maxLength:Ue}):"".concat(Ze).concat(Xt?" / ".concat(Ue):"");return ge.createElement(ge.Fragment,null,xe.show&&ge.createElement("span",{className:d()("".concat(P,"-show-count-suffix"),(0,oe.Z)({},"".concat(P,"-show-count-has-suffix"),!!g),Dt==null?void 0:Dt.count),style:(0,p.Z)({},vt==null?void 0:vt.count)},Fe),g)}return null};return ge.createElement(b,(0,fe.Z)({},ke,{prefixCls:P,className:d()(re,st),handleReset:Rt,value:pe,focused:Yt,triggerFocus:Ce,suffix:cn(),disabled:Q,classes:We,classNames:Dt,styles:vt}),Kt())}),N=te,B=N},30292:function(Ln,jt,w){"use strict";w.d(jt,{He:function(){return p},X3:function(){return fe},nH:function(){return O},rJ:function(){return me}});function p(d){return!!(d.addonBefore||d.addonAfter)}function fe(d){return!!(d.prefix||d.suffix||d.allowClear)}function oe(d,ge,le){var o=ge.cloneNode(!0),b=Object.create(d,{target:{value:o},currentTarget:{value:o}});return o.value=le,typeof ge.selectionStart=="number"&&typeof ge.selectionEnd=="number"&&(o.selectionStart=ge.selectionStart,o.selectionEnd=ge.selectionEnd),o.setSelectionRange=function(){ge.setSelectionRange.apply(ge,arguments)},b}function me(d,ge,le,o){if(le){var b=ge;if(ge.type==="click"){b=oe(ge,d,""),le(b);return}if(d.type!=="file"&&o!==void 0){b=oe(ge,d,o),le(b);return}le(b)}}function O(d,ge){if(d){d.focus(ge);var le=ge||{},o=le.cursor;if(o){var b=d.value.length;switch(o){case"start":d.setSelectionRange(0,0);break;case"end":d.setSelectionRange(b,b);break;default:d.setSelectionRange(0,b)}}}}},28321:function(Ln,jt,w){"use strict";w.d(jt,{iz:function(){return Re},ck:function(){return Me},BW:function(){return dt},sN:function(){return Me},Wd:function(){return Ut},ZP:function(){return zt},Xl:function(){return ue}});var p=w(5016),fe=w(18082),oe=w(20049),me=w(92393),O=w(52456),d=w(5883),ge=w(92310),le=w.n(ge),o=w(11780),b=w(18929),T=w(13697),m=w(48736),y=w(59301),x=w(4676),L=y.createContext(null);function U(Ie,qe){return Ie===void 0?null:"".concat(Ie,"-").concat(qe)}function V(Ie){var qe=y.useContext(L);return U(qe,Ie)}var te=w(80547),N=["children","locked"],B=y.createContext(null);function R(Ie,qe){var ft=(0,oe.Z)({},Ie);return Object.keys(qe).forEach(function(ht){var Gt=qe[ht];Gt!==void 0&&(ft[ht]=Gt)}),ft}function S(Ie){var qe=Ie.children,ft=Ie.locked,ht=(0,d.Z)(Ie,N),Gt=y.useContext(B),en=(0,te.Z)(function(){return R(Gt,ht)},[Gt,ht],function(Wt,rn){return!ft&&(Wt[0]!==rn[0]||!(0,T.Z)(Wt[1],rn[1],!0))});return y.createElement(B.Provider,{value:en},qe)}var $=[],ee=y.createContext(null);function W(){return y.useContext(ee)}var ne=y.createContext($);function ue(Ie){var qe=y.useContext(ne);return y.useMemo(function(){return Ie!==void 0?[].concat((0,me.Z)(qe),[Ie]):qe},[qe,Ie])}var he=y.createContext(null),Oe=y.createContext({}),G=Oe,P=w(29194);function Q(Ie){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,P.Z)(Ie)){var ft=Ie.nodeName.toLowerCase(),ht=["input","select","textarea","button"].includes(ft)||Ie.isContentEditable||ft==="a"&&!!Ie.getAttribute("href"),Gt=Ie.getAttribute("tabindex"),en=Number(Gt),Wt=null;return Gt&&!Number.isNaN(en)?Wt=en:ht&&Wt===null&&(Wt=0),ht&&Ie.disabled&&(Wt=null),Wt!==null&&(Wt>=0||qe&&Wt<0)}return!1}function q(Ie){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=(0,me.Z)(Ie.querySelectorAll("*")).filter(function(ht){return Q(ht,qe)});return Q(Ie,qe)&&ft.unshift(Ie),ft}var re=null;function J(){re=document.activeElement}function g(){re=null}function v(){if(re)try{re.focus()}catch(Ie){}}function Z(Ie,qe){if(qe.keyCode===9){var ft=q(Ie),ht=ft[qe.shiftKey?0:ft.length-1],Gt=ht===document.activeElement||Ie===document.activeElement;if(Gt){var en=ft[qe.shiftKey?ft.length-1:0];en.focus(),qe.preventDefault()}}}var ce=w(10228),Xe=w(16089),We=ce.Z.LEFT,Dt=ce.Z.RIGHT,vt=ce.Z.UP,$t=ce.Z.DOWN,Ht=ce.Z.ENTER,ke=ce.Z.ESC,Bt=ce.Z.HOME,xn=ce.Z.END,Yt=[vt,$t,We,Dt];function ln(Ie,qe,ft,ht){var Gt,en="prev",Wt="next",rn="children",hn="parent";if(Ie==="inline"&&ht===Ht)return{inlineTrigger:!0};var Sn=(0,fe.Z)((0,fe.Z)({},vt,en),$t,Wt),Un=(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},We,ft?Wt:en),Dt,ft?en:Wt),$t,rn),Ht,rn),yn=(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},vt,en),$t,Wt),Ht,rn),ke,hn),We,ft?rn:hn),Dt,ft?hn:rn),Zn={inline:Sn,horizontal:Un,vertical:yn,inlineSub:Sn,horizontalSub:yn,verticalSub:yn},Nn=(Gt=Zn["".concat(Ie).concat(qe?"":"Sub")])===null||Gt===void 0?void 0:Gt[ht];switch(Nn){case en:return{offset:-1,sibling:!0};case Wt:return{offset:1,sibling:!0};case hn:return{offset:-1,sibling:!1};case rn:return{offset:1,sibling:!1};default:return null}}function mt(Ie){for(var qe=Ie;qe;){if(qe.getAttribute("data-menu-list"))return qe;qe=qe.parentElement}return null}function Be(Ie,qe){for(var ft=Ie||document.activeElement;ft;){if(qe.has(ft))return ft;ft=ft.parentElement}return null}function be(Ie,qe){var ft=q(Ie,!0);return ft.filter(function(ht){return qe.has(ht)})}function M(Ie,qe,ft){var ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ie)return null;var Gt=be(Ie,qe),en=Gt.length,Wt=Gt.findIndex(function(rn){return ft===rn});return ht<0?Wt===-1?Wt=en-1:Wt-=1:ht>0&&(Wt+=1),Wt=(Wt+en)%en,Gt[Wt]}var Ce=function(qe,ft){var ht=new Set,Gt=new Map,en=new Map;return qe.forEach(function(Wt){var rn=document.querySelector("[data-menu-id='".concat(U(ft,Wt),"']"));rn&&(ht.add(rn),en.set(rn,Wt),Gt.set(Wt,rn))}),{elements:ht,key2element:Gt,element2key:en}};function Ge(Ie,qe,ft,ht,Gt,en,Wt,rn,hn,Sn){var Un=y.useRef(),yn=y.useRef();yn.current=qe;var Zn=function(){Xe.Z.cancel(Un.current)};return y.useEffect(function(){return function(){Zn()}},[]),function(Nn){var Gn=Nn.which;if([].concat(Yt,[Ht,ke,Bt,xn]).includes(Gn)){var Mn=en(),On=Ce(Mn,ht),Qn=On,vn=Qn.elements,Dn=Qn.key2element,je=Qn.element2key,Lt=Dn.get(qe),tn=Be(Lt,vn),gn=je.get(tn),zn=ln(Ie,Wt(gn,!0).length===1,ft,Gn);if(!zn&&Gn!==Bt&&Gn!==xn)return;(Yt.includes(Gn)||[Bt,xn].includes(Gn))&&Nn.preventDefault();var Ee=function(kt){if(kt){var rt=kt,ct=kt.querySelector("a");ct!=null&&ct.getAttribute("href")&&(rt=ct);var pt=je.get(kt);rn(pt),Zn(),Un.current=(0,Xe.Z)(function(){yn.current===pt&&rt.focus()})}};if([Bt,xn].includes(Gn)||zn.sibling||!tn){var lt;!tn||Ie==="inline"?lt=Gt.current:lt=mt(tn);var Ye,it=be(lt,vn);Gn===Bt?Ye=it[0]:Gn===xn?Ye=it[it.length-1]:Ye=M(lt,vn,tn,zn.offset),Ee(Ye)}else if(zn.inlineTrigger)hn(gn);else if(zn.offset>0)hn(gn,!0),Zn(),Un.current=(0,Xe.Z)(function(){On=Ce(Mn,ht);var qt=tn.getAttribute("aria-controls"),kt=document.getElementById(qt),rt=M(kt,On.elements);Ee(rt)},5);else if(zn.offset<0){var yt=Wt(gn,!0),Tt=yt[yt.length-2],Jt=Dn.get(Tt);hn(Tt,!1),Ee(Jt)}}Sn==null||Sn(Nn)}}function K(Ie){Promise.resolve().then(Ie)}var k="__RC_UTIL_PATH_SPLIT__",F=function(qe){return qe.join(k)},pe=function(qe){return qe.split(k)},z="rc-menu-more";function Y(){var Ie=y.useState({}),qe=(0,O.Z)(Ie,2),ft=qe[1],ht=(0,y.useRef)(new Map),Gt=(0,y.useRef)(new Map),en=y.useState([]),Wt=(0,O.Z)(en,2),rn=Wt[0],hn=Wt[1],Sn=(0,y.useRef)(0),Un=(0,y.useRef)(!1),yn=function(){Un.current||ft({})},Zn=(0,y.useCallback)(function(Dn,je){var Lt=F(je);Gt.current.set(Lt,Dn),ht.current.set(Dn,Lt),Sn.current+=1;var tn=Sn.current;K(function(){tn===Sn.current&&yn()})},[]),Nn=(0,y.useCallback)(function(Dn,je){var Lt=F(je);Gt.current.delete(Lt),ht.current.delete(Dn)},[]),Gn=(0,y.useCallback)(function(Dn){hn(Dn)},[]),Mn=(0,y.useCallback)(function(Dn,je){var Lt=ht.current.get(Dn)||"",tn=pe(Lt);return je&&rn.includes(tn[0])&&tn.unshift(z),tn},[rn]),On=(0,y.useCallback)(function(Dn,je){return Dn.filter(function(Lt){return Lt!==void 0}).some(function(Lt){var tn=Mn(Lt,!0);return tn.includes(je)})},[Mn]),Qn=function(){var je=(0,me.Z)(ht.current.keys());return rn.length&&je.push(z),je},vn=(0,y.useCallback)(function(Dn){var je="".concat(ht.current.get(Dn)).concat(k),Lt=new Set;return(0,me.Z)(Gt.current.keys()).forEach(function(tn){tn.startsWith(je)&&Lt.add(Gt.current.get(tn))}),Lt},[]);return y.useEffect(function(){return function(){Un.current=!0}},[]),{registerPath:Zn,unregisterPath:Nn,refreshOverflowKeys:Gn,isSubPathKey:On,getKeyPath:Mn,getKeys:Qn,getSubPathKeys:vn}}function ie(Ie){var qe=y.useRef(Ie);qe.current=Ie;var ft=y.useCallback(function(){for(var ht,Gt=arguments.length,en=new Array(Gt),Wt=0;Wt<Gt;Wt++)en[Wt]=arguments[Wt];return(ht=qe.current)===null||ht===void 0?void 0:ht.call.apply(ht,[qe].concat(en))},[]);return Ie?ft:void 0}var Te=Math.random().toFixed(5).toString().slice(2),xe=0;function Ue(Ie){var qe=(0,b.Z)(Ie,{value:Ie}),ft=(0,O.Z)(qe,2),ht=ft[0],Gt=ft[1];return y.useEffect(function(){xe+=1;var en="".concat(Te,"-").concat(xe);Gt("rc-menu-uuid-".concat(en))},[]),ht}var Ze=w(6487),$e=w(56789),at=w(7942),ve=w(76773),De=w(2738),ot=w(8654);function Je(Ie,qe,ft,ht){var Gt=y.useContext(B),en=Gt.activeKey,Wt=Gt.onActive,rn=Gt.onInactive,hn={active:en===Ie};return qe||(hn.onMouseEnter=function(Sn){ft==null||ft({key:Ie,domEvent:Sn}),Wt(Ie)},hn.onMouseLeave=function(Sn){ht==null||ht({key:Ie,domEvent:Sn}),rn(Ie)}),hn}function He(Ie){var qe=y.useContext(B),ft=qe.mode,ht=qe.rtl,Gt=qe.inlineIndent;if(ft!=="inline")return null;var en=Ie;return ht?{paddingRight:en*Gt}:{paddingLeft:en*Gt}}function gt(Ie){var qe=Ie.icon,ft=Ie.props,ht=Ie.children,Gt;return qe===null||qe===!1?null:(typeof qe=="function"?Gt=y.createElement(qe,(0,oe.Z)({},ft)):typeof qe!="boolean"&&(Gt=qe),Gt||ht||null)}var Rt=["item"];function st(Ie){var qe=Ie.item,ft=(0,d.Z)(Ie,Rt);return Object.defineProperty(ft,"item",{get:function(){return(0,m.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),qe}}),ft}var Kt=["title","attribute","elementRef"],cn=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],At=["active"],Xt=function(Ie){(0,at.Z)(ft,Ie);var qe=(0,ve.Z)(ft);function ft(){return(0,Ze.Z)(this,ft),qe.apply(this,arguments)}return(0,$e.Z)(ft,[{key:"render",value:function(){var Gt=this.props,en=Gt.title,Wt=Gt.attribute,rn=Gt.elementRef,hn=(0,d.Z)(Gt,Kt),Sn=(0,De.Z)(hn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,m.ZP)(!Wt,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),y.createElement(o.Z.Item,(0,p.Z)({},Wt,{title:typeof en=="string"?en:void 0},Sn,{ref:rn}))}}]),ft}(y.Component),Fe=y.forwardRef(function(Ie,qe){var ft=Ie.style,ht=Ie.className,Gt=Ie.eventKey,en=Ie.warnKey,Wt=Ie.disabled,rn=Ie.itemIcon,hn=Ie.children,Sn=Ie.role,Un=Ie.onMouseEnter,yn=Ie.onMouseLeave,Zn=Ie.onClick,Nn=Ie.onKeyDown,Gn=Ie.onFocus,Mn=(0,d.Z)(Ie,cn),On=V(Gt),Qn=y.useContext(B),vn=Qn.prefixCls,Dn=Qn.onItemClick,je=Qn.disabled,Lt=Qn.overflowDisabled,tn=Qn.itemIcon,gn=Qn.selectedKeys,zn=Qn.onActive,Ee=y.useContext(G),lt=Ee._internalRenderMenuItem,Ye="".concat(vn,"-item"),it=y.useRef(),yt=y.useRef(),Tt=je||Wt,Jt=(0,ot.x1)(qe,yt),qt=ue(Gt),kt=function(An){return{key:Gt,keyPath:(0,me.Z)(qt).reverse(),item:it.current,domEvent:An}},rt=rn||tn,ct=Je(Gt,Tt,Un,yn),pt=ct.active,xt=(0,d.Z)(ct,At),Ot=gn.includes(Gt),dn=He(qt.length),Rn=function(An){if(!Tt){var cr=kt(An);Zn==null||Zn(st(cr)),Dn(cr)}},En=function(An){if(Nn==null||Nn(An),An.which===ce.Z.ENTER){var cr=kt(An);Zn==null||Zn(st(cr)),Dn(cr)}},Kn=function(An){zn(Gt),Gn==null||Gn(An)},Vn={};Ie.role==="option"&&(Vn["aria-selected"]=Ot);var Wn=y.createElement(Xt,(0,p.Z)({ref:it,elementRef:Jt,role:Sn===null?"none":Sn||"menuitem",tabIndex:Wt?null:-1,"data-menu-id":Lt&&On?null:On},(0,De.Z)(Mn,["extra"]),xt,Vn,{component:"li","aria-disabled":Wt,style:(0,oe.Z)((0,oe.Z)({},dn),ft),className:le()(Ye,(0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(Ye,"-active"),pt),"".concat(Ye,"-selected"),Ot),"".concat(Ye,"-disabled"),Tt),ht),onClick:Rn,onKeyDown:En,onFocus:Kn}),hn,y.createElement(gt,{props:(0,oe.Z)((0,oe.Z)({},Ie),{},{isSelected:Ot}),icon:rt}));return lt&&(Wn=lt(Wn,Ie,{selected:Ot})),Wn});function Ne(Ie,qe){var ft=Ie.eventKey,ht=W(),Gt=ue(ft);return y.useEffect(function(){if(ht)return ht.registerPath(ft,Gt),function(){ht.unregisterPath(ft,Gt)}},[Gt]),ht?null:y.createElement(Fe,(0,p.Z)({},Ie,{ref:qe}))}var Me=y.forwardRef(Ne),I=["className","children"],ae=function(qe,ft){var ht=qe.className,Gt=qe.children,en=(0,d.Z)(qe,I),Wt=y.useContext(B),rn=Wt.prefixCls,hn=Wt.mode,Sn=Wt.rtl;return y.createElement("ul",(0,p.Z)({className:le()(rn,Sn&&"".concat(rn,"-rtl"),"".concat(rn,"-sub"),"".concat(rn,"-").concat(hn==="inline"?"inline":"vertical"),ht),role:"menu"},en,{"data-menu-list":!0,ref:ft}),Gt)},de=y.forwardRef(ae);de.displayName="SubMenuList";var se=de,Se=w(11592);function Mt(Ie,qe){return(0,Se.Z)(Ie).map(function(ft,ht){if(y.isValidElement(ft)){var Gt,en,Wt=ft.key,rn=(Gt=(en=ft.props)===null||en===void 0?void 0:en.eventKey)!==null&&Gt!==void 0?Gt:Wt,hn=rn==null;hn&&(rn="tmp_key-".concat([].concat((0,me.Z)(qe),[ht]).join("-")));var Sn={key:rn,eventKey:rn};return y.cloneElement(ft,Sn)}return ft})}var It=w(65352),Ft={adjustX:1,adjustY:1},fn={topLeft:{points:["bl","tl"],overflow:Ft},topRight:{points:["br","tr"],overflow:Ft},bottomLeft:{points:["tl","bl"],overflow:Ft},bottomRight:{points:["tr","br"],overflow:Ft},leftTop:{points:["tr","tl"],overflow:Ft},leftBottom:{points:["br","bl"],overflow:Ft},rightTop:{points:["tl","tr"],overflow:Ft},rightBottom:{points:["bl","br"],overflow:Ft}},Le={topLeft:{points:["bl","tl"],overflow:Ft},topRight:{points:["br","tr"],overflow:Ft},bottomLeft:{points:["tl","bl"],overflow:Ft},bottomRight:{points:["tr","br"],overflow:Ft},rightTop:{points:["tr","tl"],overflow:Ft},rightBottom:{points:["br","bl"],overflow:Ft},leftTop:{points:["tl","tr"],overflow:Ft},leftBottom:{points:["bl","br"],overflow:Ft}},_=null;function j(Ie,qe,ft){if(qe)return qe;if(ft)return ft[Ie]||ft.other}var E={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Pe(Ie){var qe=Ie.prefixCls,ft=Ie.visible,ht=Ie.children,Gt=Ie.popup,en=Ie.popupStyle,Wt=Ie.popupClassName,rn=Ie.popupOffset,hn=Ie.disabled,Sn=Ie.mode,Un=Ie.onVisibleChange,yn=y.useContext(B),Zn=yn.getPopupContainer,Nn=yn.rtl,Gn=yn.subMenuOpenDelay,Mn=yn.subMenuCloseDelay,On=yn.builtinPlacements,Qn=yn.triggerSubMenuAction,vn=yn.forceSubMenuRender,Dn=yn.rootClassName,je=yn.motion,Lt=yn.defaultMotions,tn=y.useState(!1),gn=(0,O.Z)(tn,2),zn=gn[0],Ee=gn[1],lt=Nn?(0,oe.Z)((0,oe.Z)({},Le),On):(0,oe.Z)((0,oe.Z)({},fn),On),Ye=E[Sn],it=j(Sn,je,Lt),yt=y.useRef(it);Sn!=="inline"&&(yt.current=it);var Tt=(0,oe.Z)((0,oe.Z)({},yt.current),{},{leavedClassName:"".concat(qe,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Jt=y.useRef();return y.useEffect(function(){return Jt.current=(0,Xe.Z)(function(){Ee(ft)}),function(){Xe.Z.cancel(Jt.current)}},[ft]),y.createElement(It.Z,{prefixCls:qe,popupClassName:le()("".concat(qe,"-popup"),(0,fe.Z)({},"".concat(qe,"-rtl"),Nn),Wt,Dn),stretch:Sn==="horizontal"?"minWidth":null,getPopupContainer:Zn,builtinPlacements:lt,popupPlacement:Ye,popupVisible:zn,popup:Gt,popupStyle:en,popupAlign:rn&&{offset:rn},action:hn?[]:[Qn],mouseEnterDelay:Gn,mouseLeaveDelay:Mn,onPopupVisibleChange:Un,forceRender:vn,popupMotion:Tt,fresh:!0},ht)}var ye=w(77900);function we(Ie){var qe=Ie.id,ft=Ie.open,ht=Ie.keyPath,Gt=Ie.children,en="inline",Wt=y.useContext(B),rn=Wt.prefixCls,hn=Wt.forceSubMenuRender,Sn=Wt.motion,Un=Wt.defaultMotions,yn=Wt.mode,Zn=y.useRef(!1);Zn.current=yn===en;var Nn=y.useState(!Zn.current),Gn=(0,O.Z)(Nn,2),Mn=Gn[0],On=Gn[1],Qn=Zn.current?ft:!1;y.useEffect(function(){Zn.current&&On(!1)},[yn]);var vn=(0,oe.Z)({},j(en,Sn,Un));ht.length>1&&(vn.motionAppear=!1);var Dn=vn.onVisibleChanged;return vn.onVisibleChanged=function(je){return!Zn.current&&!je&&On(!0),Dn==null?void 0:Dn(je)},Mn?null:y.createElement(S,{mode:en,locked:!Zn.current},y.createElement(ye.default,(0,p.Z)({visible:Qn},vn,{forceRender:hn,removeOnLeave:!1,leavedClassName:"".concat(rn,"-hidden")}),function(je){var Lt=je.className,tn=je.style;return y.createElement(se,{id:qe,className:Lt,style:tn},Gt)}))}var ze=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ut=["active"],Pt=y.forwardRef(function(Ie,qe){var ft=Ie.style,ht=Ie.className,Gt=Ie.title,en=Ie.eventKey,Wt=Ie.warnKey,rn=Ie.disabled,hn=Ie.internalPopupClose,Sn=Ie.children,Un=Ie.itemIcon,yn=Ie.expandIcon,Zn=Ie.popupClassName,Nn=Ie.popupOffset,Gn=Ie.popupStyle,Mn=Ie.onClick,On=Ie.onMouseEnter,Qn=Ie.onMouseLeave,vn=Ie.onTitleClick,Dn=Ie.onTitleMouseEnter,je=Ie.onTitleMouseLeave,Lt=(0,d.Z)(Ie,ze),tn=V(en),gn=y.useContext(B),zn=gn.prefixCls,Ee=gn.mode,lt=gn.openKeys,Ye=gn.disabled,it=gn.overflowDisabled,yt=gn.activeKey,Tt=gn.selectedKeys,Jt=gn.itemIcon,qt=gn.expandIcon,kt=gn.onItemClick,rt=gn.onOpenChange,ct=gn.onActive,pt=y.useContext(G),xt=pt._internalRenderSubMenuItem,Ot=y.useContext(he),dn=Ot.isSubPathKey,Rn=ue(),En="".concat(zn,"-submenu"),Kn=Ye||rn,Vn=y.useRef(),Wn=y.useRef(),$n=Un!=null?Un:Jt,An=yn!=null?yn:qt,cr=lt.includes(en),ar=!it&&cr,tr=dn(Tt,en),Xn=Je(en,Kn,Dn,je),Tn=Xn.active,dr=(0,d.Z)(Xn,ut),nr=y.useState(!1),lr=(0,O.Z)(nr,2),Cn=lr[0],sn=lr[1],wn=function(mr){Kn||sn(mr)},Fn=function(mr){wn(!0),On==null||On({key:en,domEvent:mr})},Pn=function(mr){wn(!1),Qn==null||Qn({key:en,domEvent:mr})},Jn=y.useMemo(function(){return Tn||(Ee!=="inline"?Cn||dn([yt],en):!1)},[Ee,Tn,yt,Cn,en,dn]),rr=He(Rn.length),_r=function(mr){Kn||(vn==null||vn({key:en,domEvent:mr}),Ee==="inline"&&rt(en,!cr))},Br=ie(function(gr){Mn==null||Mn(st(gr)),kt(gr)}),Nr=function(mr){Ee!=="inline"&&rt(en,mr)},Jr=function(){ct(en)},Kr=tn&&"".concat(tn,"-popup"),Ur=y.useMemo(function(){return y.createElement(gt,{icon:Ee!=="horizontal"?An:void 0,props:(0,oe.Z)((0,oe.Z)({},Ie),{},{isOpen:ar,isSubMenu:!0})},y.createElement("i",{className:"".concat(En,"-arrow")}))},[Ee,An,Ie,ar,En]),pr=y.createElement("div",(0,p.Z)({role:"menuitem",style:rr,className:"".concat(En,"-title"),tabIndex:Kn?null:-1,ref:Vn,title:typeof Gt=="string"?Gt:null,"data-menu-id":it&&tn?null:tn,"aria-expanded":ar,"aria-haspopup":!0,"aria-controls":Kr,"aria-disabled":Kn,onClick:_r,onFocus:Jr},dr),Gt,Ur),wr=y.useRef(Ee);if(Ee!=="inline"&&Rn.length>1?wr.current="vertical":wr.current=Ee,!it){var Pr=wr.current;pr=y.createElement(Pe,{mode:Pr,prefixCls:En,visible:!hn&&ar&&Ee!=="inline",popupClassName:Zn,popupOffset:Nn,popupStyle:Gn,popup:y.createElement(S,{mode:Pr==="horizontal"?"vertical":Pr},y.createElement(se,{id:Kr,ref:Wn},Sn)),disabled:Kn,onVisibleChange:Nr},pr)}var Dr=y.createElement(o.Z.Item,(0,p.Z)({ref:qe,role:"none"},Lt,{component:"li",style:ft,className:le()(En,"".concat(En,"-").concat(Ee),ht,(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(En,"-open"),ar),"".concat(En,"-active"),Jn),"".concat(En,"-selected"),tr),"".concat(En,"-disabled"),Kn)),onMouseEnter:Fn,onMouseLeave:Pn}),pr,!it&&y.createElement(we,{id:Kr,open:ar,keyPath:Rn},Sn));return xt&&(Dr=xt(Dr,Ie,{selected:tr,active:Jn,open:ar,disabled:Kn})),y.createElement(S,{onItemClick:Br,mode:Ee==="horizontal"?"vertical":Ee,itemIcon:$n,expandIcon:An},Dr)}),Vt=y.forwardRef(function(Ie,qe){var ft=Ie.eventKey,ht=Ie.children,Gt=ue(ft),en=Mt(ht,Gt),Wt=W();y.useEffect(function(){if(Wt)return Wt.registerPath(ft,Gt),function(){Wt.unregisterPath(ft,Gt)}},[Gt]);var rn;return Wt?rn=en:rn=y.createElement(Pt,(0,p.Z)({ref:qe},Ie),en),y.createElement(ne.Provider,{value:Gt},rn)}),Ut=Vt,mn=w(10928);function Re(Ie){var qe=Ie.className,ft=Ie.style,ht=y.useContext(B),Gt=ht.prefixCls,en=W();return en?null:y.createElement("li",{role:"separator",className:le()("".concat(Gt,"-item-divider"),qe),style:ft})}var _e=["className","title","eventKey","children"],Ve=y.forwardRef(function(Ie,qe){var ft=Ie.className,ht=Ie.title,Gt=Ie.eventKey,en=Ie.children,Wt=(0,d.Z)(Ie,_e),rn=y.useContext(B),hn=rn.prefixCls,Sn="".concat(hn,"-item-group");return y.createElement("li",(0,p.Z)({ref:qe,role:"presentation"},Wt,{onClick:function(yn){return yn.stopPropagation()},className:le()(Sn,ft)}),y.createElement("div",{role:"presentation",className:"".concat(Sn,"-title"),title:typeof ht=="string"?ht:void 0},ht),y.createElement("ul",{role:"group",className:"".concat(Sn,"-list")},en))}),et=y.forwardRef(function(Ie,qe){var ft=Ie.eventKey,ht=Ie.children,Gt=ue(ft),en=Mt(ht,Gt),Wt=W();return Wt?en:y.createElement(Ve,(0,p.Z)({ref:qe},(0,De.Z)(Ie,["warnKey"])),en)}),dt=et,Et=["label","children","key","type","extra"];function tt(Ie,qe,ft){var ht=qe.item,Gt=qe.group,en=qe.submenu,Wt=qe.divider;return(Ie||[]).map(function(rn,hn){if(rn&&(0,mn.Z)(rn)==="object"){var Sn=rn,Un=Sn.label,yn=Sn.children,Zn=Sn.key,Nn=Sn.type,Gn=Sn.extra,Mn=(0,d.Z)(Sn,Et),On=Zn!=null?Zn:"tmp-".concat(hn);return yn||Nn==="group"?Nn==="group"?y.createElement(Gt,(0,p.Z)({key:On},Mn,{title:Un}),tt(yn,qe,ft)):y.createElement(en,(0,p.Z)({key:On},Mn,{title:Un}),tt(yn,qe,ft)):Nn==="divider"?y.createElement(Wt,(0,p.Z)({key:On},Mn)):y.createElement(ht,(0,p.Z)({key:On},Mn,{extra:Gn}),Un,(!!Gn||Gn===0)&&y.createElement("span",{className:"".concat(ft,"-item-extra")},Gn))}return null}).filter(function(rn){return rn})}function nt(Ie,qe,ft,ht,Gt){var en=Ie,Wt=(0,oe.Z)({divider:Re,item:Me,group:dt,submenu:Ut},ht);return qe&&(en=tt(qe,Wt,Gt)),Mt(en,ft)}var _t=["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","_internalComponents"],Ct=[],pn=y.forwardRef(function(Ie,qe){var ft,ht=Ie,Gt=ht.prefixCls,en=Gt===void 0?"rc-menu":Gt,Wt=ht.rootClassName,rn=ht.style,hn=ht.className,Sn=ht.tabIndex,Un=Sn===void 0?0:Sn,yn=ht.items,Zn=ht.children,Nn=ht.direction,Gn=ht.id,Mn=ht.mode,On=Mn===void 0?"vertical":Mn,Qn=ht.inlineCollapsed,vn=ht.disabled,Dn=ht.disabledOverflow,je=ht.subMenuOpenDelay,Lt=je===void 0?.1:je,tn=ht.subMenuCloseDelay,gn=tn===void 0?.1:tn,zn=ht.forceSubMenuRender,Ee=ht.defaultOpenKeys,lt=ht.openKeys,Ye=ht.activeKey,it=ht.defaultActiveFirst,yt=ht.selectable,Tt=yt===void 0?!0:yt,Jt=ht.multiple,qt=Jt===void 0?!1:Jt,kt=ht.defaultSelectedKeys,rt=ht.selectedKeys,ct=ht.onSelect,pt=ht.onDeselect,xt=ht.inlineIndent,Ot=xt===void 0?24:xt,dn=ht.motion,Rn=ht.defaultMotions,En=ht.triggerSubMenuAction,Kn=En===void 0?"hover":En,Vn=ht.builtinPlacements,Wn=ht.itemIcon,$n=ht.expandIcon,An=ht.overflowedIndicator,cr=An===void 0?"...":An,ar=ht.overflowedIndicatorPopupClassName,tr=ht.getPopupContainer,Xn=ht.onClick,Tn=ht.onOpenChange,dr=ht.onKeyDown,nr=ht.openAnimation,lr=ht.openTransitionName,Cn=ht._internalRenderMenuItem,sn=ht._internalRenderSubMenuItem,wn=ht._internalComponents,Fn=(0,d.Z)(ht,_t),Pn=y.useMemo(function(){return[nt(Zn,yn,Ct,wn,en),nt(Zn,yn,Ct,{},en)]},[Zn,yn,wn]),Jn=(0,O.Z)(Pn,2),rr=Jn[0],_r=Jn[1],Br=y.useState(!1),Nr=(0,O.Z)(Br,2),Jr=Nr[0],Kr=Nr[1],Ur=y.useRef(),pr=Ue(Gn),wr=Nn==="rtl",Pr=(0,b.Z)(Ee,{value:lt,postState:function(Mr){return Mr||Ct}}),Dr=(0,O.Z)(Pr,2),gr=Dr[0],mr=Dr[1],bn=function(Mr){var Hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function on(){mr(Mr),Tn==null||Tn(Mr)}Hr?(0,x.flushSync)(on):on()},Yn=y.useState(gr),ir=(0,O.Z)(Yn,2),or=ir[0],yr=ir[1],Cr=y.useRef(!1),jn=y.useMemo(function(){return(On==="inline"||On==="vertical")&&Qn?["vertical",Qn]:[On,!1]},[On,Qn]),qn=(0,O.Z)(jn,2),Er=qn[0],er=qn[1],Sr=Er==="inline",$r=y.useState(Er),Or=(0,O.Z)($r,2),ei=Or[0],ri=Or[1],li=y.useState(er),jr=(0,O.Z)(li,2),ts=jr[0],Mi=jr[1];y.useEffect(function(){ri(Er),Mi(er),Cr.current&&(Sr?mr(or):bn(Ct))},[Er,er]);var wi=y.useState(0),ui=(0,O.Z)(wi,2),Ii=ui[0],Oi=ui[1],Fi=Ii>=rr.length-1||ei!=="horizontal"||Dn;y.useEffect(function(){Sr&&yr(gr)},[gr]),y.useEffect(function(){return Cr.current=!0,function(){Cr.current=!1}},[]);var pi=Y(),Bi=pi.registerPath,Ai=pi.unregisterPath,ns=pi.refreshOverflowKeys,Ti=pi.isSubPathKey,rs=pi.getKeyPath,Ui=pi.getKeys,mi=pi.getSubPathKeys,Wi=y.useMemo(function(){return{registerPath:Bi,unregisterPath:Ai}},[Bi,Ai]),Zi=y.useMemo(function(){return{isSubPathKey:Ti}},[Ti]);y.useEffect(function(){ns(Fi?Ct:rr.slice(Ii+1).map(function(Vr){return Vr.key}))},[Ii,Fi]);var ki=(0,b.Z)(Ye||it&&((ft=rr[0])===null||ft===void 0?void 0:ft.key),{value:Ye}),si=(0,O.Z)(ki,2),ti=si[0],Ar=si[1],br=ie(function(Vr){Ar(Vr)}),Xr=ie(function(){Ar(void 0)});(0,y.useImperativeHandle)(qe,function(){return{list:Ur.current,focus:function(Mr){var Hr,on=Ui(),ni=Ce(on,pr),_i=ni.elements,ss=ni.key2element,xs=ni.element2key,as=be(Ur.current,_i),os=ti!=null?ti:as[0]?xs.get(as[0]):(Hr=rr.find(function(Ki){return!Ki.props.disabled}))===null||Hr===void 0?void 0:Hr.key,Hi=ss.get(os);if(os&&Hi){var ls;Hi==null||(ls=Hi.focus)===null||ls===void 0||ls.call(Hi,Mr)}}}});var Gr=(0,b.Z)(kt||[],{value:rt,postState:function(Mr){return Array.isArray(Mr)?Mr:Mr==null?Ct:[Mr]}}),Wr=(0,O.Z)(Gr,2),Qr=Wr[0],fi=Wr[1],di=function(Mr){if(Tt){var Hr=Mr.key,on=Qr.includes(Hr),ni;qt?on?ni=Qr.filter(function(ss){return ss!==Hr}):ni=[].concat((0,me.Z)(Qr),[Hr]):ni=[Hr],fi(ni);var _i=(0,oe.Z)((0,oe.Z)({},Mr),{},{selectedKeys:ni});on?pt==null||pt(_i):ct==null||ct(_i)}!qt&&gr.length&&ei!=="inline"&&bn(Ct)},vi=ie(function(Vr){Xn==null||Xn(st(Vr)),di(Vr)}),qr=ie(function(Vr,Mr){var Hr=gr.filter(function(ni){return ni!==Vr});if(Mr)Hr.push(Vr);else if(ei!=="inline"){var on=mi(Vr);Hr=Hr.filter(function(ni){return!on.has(ni)})}(0,T.Z)(gr,Hr,!0)||bn(Hr,!0)}),ii=function(Mr,Hr){var on=Hr!=null?Hr:!gr.includes(Mr);qr(Mr,on)},Ci=Ge(ei,ti,wr,pr,Ur,Ui,rs,Ar,ii,dr);y.useEffect(function(){Kr(!0)},[]);var yi=y.useMemo(function(){return{_internalRenderMenuItem:Cn,_internalRenderSubMenuItem:sn}},[Cn,sn]),is=ei!=="horizontal"||Dn?rr:rr.map(function(Vr,Mr){return y.createElement(S,{key:Vr.key,overflowDisabled:Mr>Ii},Vr)}),bs=y.createElement(o.Z,(0,p.Z)({id:Gn,ref:Ur,prefixCls:"".concat(en,"-overflow"),component:"ul",itemComponent:Me,className:le()(en,"".concat(en,"-root"),"".concat(en,"-").concat(ei),hn,(0,fe.Z)((0,fe.Z)({},"".concat(en,"-inline-collapsed"),ts),"".concat(en,"-rtl"),wr),Wt),dir:Nn,style:rn,role:"menu",tabIndex:Un,data:is,renderRawItem:function(Mr){return Mr},renderRawRest:function(Mr){var Hr=Mr.length,on=Hr?rr.slice(-Hr):null;return y.createElement(Ut,{eventKey:z,title:cr,disabled:Fi,internalPopupClose:Hr===0,popupClassName:ar},on)},maxCount:ei!=="horizontal"||Dn?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Mr){Oi(Mr)},onKeyDown:Ci},Fn));return y.createElement(G.Provider,{value:yi},y.createElement(L.Provider,{value:pr},y.createElement(S,{prefixCls:en,rootClassName:Wt,mode:ei,openKeys:gr,rtl:wr,disabled:vn,motion:Jr?dn:null,defaultMotions:Jr?Rn:null,activeKey:ti,onActive:br,onInactive:Xr,selectedKeys:Qr,inlineIndent:Ot,subMenuOpenDelay:Lt,subMenuCloseDelay:gn,forceSubMenuRender:zn,builtinPlacements:Vn,triggerSubMenuAction:Kn,getPopupContainer:tr,itemIcon:Wn,expandIcon:$n,onItemClick:vi,onOpenChange:qr},y.createElement(he.Provider,{value:Zi},bs),y.createElement("div",{style:{display:"none"},"aria-hidden":!0},y.createElement(ee.Provider,{value:Wi},_r)))))}),_n=pn,an=_n;an.Item=Me,an.SubMenu=Ut,an.ItemGroup=dt,an.Divider=Re;var zt=an},11780:function(Ln,jt,w){"use strict";w.d(jt,{Z:function(){return J}});var p=w(5016),fe=w(20049),oe=w(52456),me=w(5883),O=w(59301),d=w(92310),ge=w.n(d),le=w(29301),o=w(34280),b=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],T=void 0;function m(g,v){var Z=g.prefixCls,ce=g.invalidate,Xe=g.item,We=g.renderItem,Dt=g.responsive,vt=g.responsiveDisabled,$t=g.registerSize,Ht=g.itemKey,ke=g.className,Bt=g.style,xn=g.children,Yt=g.display,ln=g.order,mt=g.component,Be=mt===void 0?"div":mt,be=(0,me.Z)(g,b),M=Dt&&!Yt;function Ce(pe){$t(Ht,pe)}O.useEffect(function(){return function(){Ce(null)}},[]);var Ge=We&&Xe!==T?We(Xe,{index:ln}):xn,K;ce||(K={opacity:M?0:1,height:M?0:T,overflowY:M?"hidden":T,order:Dt?ln:T,pointerEvents:M?"none":T,position:M?"absolute":T});var k={};M&&(k["aria-hidden"]=!0);var F=O.createElement(Be,(0,p.Z)({className:ge()(!ce&&Z,ke),style:(0,fe.Z)((0,fe.Z)({},K),Bt)},k,be,{ref:v}),Ge);return Dt&&(F=O.createElement(le.Z,{onResize:function(z){var Y=z.offsetWidth;Ce(Y)},disabled:vt},F)),F}var y=O.forwardRef(m);y.displayName="Item";var x=y,L=w(6089),U=w(4676),V=w(16089);function te(g){if(typeof MessageChannel=="undefined")(0,V.Z)(g);else{var v=new MessageChannel;v.port1.onmessage=function(){return g()},v.port2.postMessage(void 0)}}function N(){var g=O.useRef(null),v=function(ce){g.current||(g.current=[],te(function(){(0,U.unstable_batchedUpdates)(function(){g.current.forEach(function(Xe){Xe()}),g.current=null})})),g.current.push(ce)};return v}function B(g,v){var Z=O.useState(v),ce=(0,oe.Z)(Z,2),Xe=ce[0],We=ce[1],Dt=(0,L.Z)(function(vt){g(function(){We(vt)})});return[Xe,Dt]}var R=O.createContext(null),S=["component"],$=["className"],ee=["className"],W=function(v,Z){var ce=O.useContext(R);if(!ce){var Xe=v.component,We=Xe===void 0?"div":Xe,Dt=(0,me.Z)(v,S);return O.createElement(We,(0,p.Z)({},Dt,{ref:Z}))}var vt=ce.className,$t=(0,me.Z)(ce,$),Ht=v.className,ke=(0,me.Z)(v,ee);return O.createElement(R.Provider,{value:null},O.createElement(x,(0,p.Z)({ref:Z,className:ge()(vt,Ht)},$t,ke)))},ne=O.forwardRef(W);ne.displayName="RawItem";var ue=ne,he=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Oe="responsive",G="invalidate";function P(g){return"+ ".concat(g.length," ...")}function Q(g,v){var Z=g.prefixCls,ce=Z===void 0?"rc-overflow":Z,Xe=g.data,We=Xe===void 0?[]:Xe,Dt=g.renderItem,vt=g.renderRawItem,$t=g.itemKey,Ht=g.itemWidth,ke=Ht===void 0?10:Ht,Bt=g.ssr,xn=g.style,Yt=g.className,ln=g.maxCount,mt=g.renderRest,Be=g.renderRawRest,be=g.suffix,M=g.component,Ce=M===void 0?"div":M,Ge=g.itemComponent,K=g.onVisibleChange,k=(0,me.Z)(g,he),F=Bt==="full",pe=N(),z=B(pe,null),Y=(0,oe.Z)(z,2),ie=Y[0],Te=Y[1],xe=ie||0,Ue=B(pe,new Map),Ze=(0,oe.Z)(Ue,2),$e=Ze[0],at=Ze[1],ve=B(pe,0),De=(0,oe.Z)(ve,2),ot=De[0],Je=De[1],He=B(pe,0),gt=(0,oe.Z)(He,2),Rt=gt[0],st=gt[1],Kt=B(pe,0),cn=(0,oe.Z)(Kt,2),At=cn[0],Xt=cn[1],Fe=(0,O.useState)(null),Ne=(0,oe.Z)(Fe,2),Me=Ne[0],I=Ne[1],ae=(0,O.useState)(null),de=(0,oe.Z)(ae,2),se=de[0],Se=de[1],Mt=O.useMemo(function(){return se===null&&F?Number.MAX_SAFE_INTEGER:se||0},[se,ie]),It=(0,O.useState)(!1),Ft=(0,oe.Z)(It,2),fn=Ft[0],Le=Ft[1],_="".concat(ce,"-item"),j=Math.max(ot,Rt),E=ln===Oe,Pe=We.length&&E,ye=ln===G,we=Pe||typeof ln=="number"&&We.length>ln,ze=(0,O.useMemo)(function(){var an=We;return Pe?ie===null&&F?an=We:an=We.slice(0,Math.min(We.length,xe/ke)):typeof ln=="number"&&(an=We.slice(0,ln)),an},[We,ke,ie,ln,Pe]),ut=(0,O.useMemo)(function(){return Pe?We.slice(Mt+1):We.slice(ze.length)},[We,ze,Pe,Mt]),Pt=(0,O.useCallback)(function(an,zt){var Ie;return typeof $t=="function"?$t(an):(Ie=$t&&(an==null?void 0:an[$t]))!==null&&Ie!==void 0?Ie:zt},[$t]),Vt=(0,O.useCallback)(Dt||function(an){return an},[Dt]);function Ut(an,zt,Ie){se===an&&(zt===void 0||zt===Me)||(Se(an),Ie||(Le(an<We.length-1),K==null||K(an)),zt!==void 0&&I(zt))}function mn(an,zt){Te(zt.clientWidth)}function Re(an,zt){at(function(Ie){var qe=new Map(Ie);return zt===null?qe.delete(an):qe.set(an,zt),qe})}function _e(an,zt){st(zt),Je(Rt)}function Ve(an,zt){Xt(zt)}function et(an){return $e.get(Pt(ze[an],an))}(0,o.Z)(function(){if(xe&&typeof j=="number"&&ze){var an=At,zt=ze.length,Ie=zt-1;if(!zt){Ut(0,null);return}for(var qe=0;qe<zt;qe+=1){var ft=et(qe);if(F&&(ft=ft||0),ft===void 0){Ut(qe-1,void 0,!0);break}if(an+=ft,Ie===0&&an<=xe||qe===Ie-1&&an+et(Ie)<=xe){Ut(Ie,null);break}else if(an+j>xe){Ut(qe-1,an-ft-At+Rt);break}}be&&et(0)+At>xe&&I(null)}},[xe,$e,Rt,At,Pt,ze]);var dt=fn&&!!ut.length,Et={};Me!==null&&Pe&&(Et={position:"absolute",left:Me,top:0});var tt={prefixCls:_,responsive:Pe,component:Ge,invalidate:ye},nt=vt?function(an,zt){var Ie=Pt(an,zt);return O.createElement(R.Provider,{key:Ie,value:(0,fe.Z)((0,fe.Z)({},tt),{},{order:zt,item:an,itemKey:Ie,registerSize:Re,display:zt<=Mt})},vt(an,zt))}:function(an,zt){var Ie=Pt(an,zt);return O.createElement(x,(0,p.Z)({},tt,{order:zt,key:Ie,item:an,renderItem:Vt,itemKey:Ie,registerSize:Re,display:zt<=Mt}))},_t={order:dt?Mt:Number.MAX_SAFE_INTEGER,className:"".concat(_,"-rest"),registerSize:_e,display:dt},Ct=mt||P,pn=Be?O.createElement(R.Provider,{value:(0,fe.Z)((0,fe.Z)({},tt),_t)},Be(ut)):O.createElement(x,(0,p.Z)({},tt,_t),typeof Ct=="function"?Ct(ut):Ct),_n=O.createElement(Ce,(0,p.Z)({className:ge()(!ye&&ce,Yt),style:xn,ref:v},k),ze.map(nt),we?pn:null,be&&O.createElement(x,(0,p.Z)({},tt,{responsive:E,responsiveDisabled:!Pe,order:Mt,className:"".concat(_,"-suffix"),registerSize:Ve,display:!0,style:Et}),be));return E?O.createElement(le.Z,{onResize:mn,disabled:!Pe},_n):_n}var q=O.forwardRef(Q);q.displayName="Overflow",q.Item=ue,q.RESPONSIVE=Oe,q.INVALIDATE=G;var re=q,J=re},23425:function(Ln,jt,w){"use strict";w.d(jt,{Z:function(){return ee}});var p=w(18082),fe=w(5016),oe=w(10928),me=w(20049),O=w(52456),d=w(92310),ge=w.n(d),le=w(18929),o=w(10228),b=w(26112),T=w(48736),m=w(59301),y=w(17119),x=[10,20,50,100],L=function(ne){var ue=ne.pageSizeOptions,he=ue===void 0?x:ue,Oe=ne.locale,G=ne.changeSize,P=ne.pageSize,Q=ne.goButton,q=ne.quickGo,re=ne.rootPrefixCls,J=ne.disabled,g=ne.buildOptionText,v=ne.showSizeChanger,Z=ne.sizeChangerRender,ce=m.useState(""),Xe=(0,O.Z)(ce,2),We=Xe[0],Dt=Xe[1],vt=function(){return!We||Number.isNaN(We)?void 0:Number(We)},$t=typeof g=="function"?g:function(be){return"".concat(be," ").concat(Oe.items_per_page)},Ht=function(M){Dt(M.target.value)},ke=function(M){Q||We===""||(Dt(""),!(M.relatedTarget&&(M.relatedTarget.className.indexOf("".concat(re,"-item-link"))>=0||M.relatedTarget.className.indexOf("".concat(re,"-item"))>=0))&&(q==null||q(vt())))},Bt=function(M){We!==""&&(M.keyCode===o.Z.ENTER||M.type==="click")&&(Dt(""),q==null||q(vt()))},xn=function(){return he.some(function(M){return M.toString()===P.toString()})?he:he.concat([P]).sort(function(M,Ce){var Ge=Number.isNaN(Number(M))?0:Number(M),K=Number.isNaN(Number(Ce))?0:Number(Ce);return Ge-K})},Yt="".concat(re,"-options");if(!v&&!q)return null;var ln=null,mt=null,Be=null;return v&&Z&&(ln=Z({disabled:J,size:P,onSizeChange:function(M){G==null||G(Number(M))},"aria-label":Oe.page_size,className:"".concat(Yt,"-size-changer"),options:xn().map(function(be){return{label:$t(be),value:be}})})),q&&(Q&&(Be=typeof Q=="boolean"?m.createElement("button",{type:"button",onClick:Bt,onKeyUp:Bt,disabled:J,className:"".concat(Yt,"-quick-jumper-button")},Oe.jump_to_confirm):m.createElement("span",{onClick:Bt,onKeyUp:Bt},Q)),mt=m.createElement("div",{className:"".concat(Yt,"-quick-jumper")},Oe.jump_to,m.createElement("input",{disabled:J,type:"text",value:We,onChange:Ht,onKeyUp:Bt,onBlur:ke,"aria-label":Oe.page}),Oe.page,Be)),m.createElement("li",{className:Yt},ln,mt)},U=L,V=function(ne){var ue=ne.rootPrefixCls,he=ne.page,Oe=ne.active,G=ne.className,P=ne.showTitle,Q=ne.onClick,q=ne.onKeyPress,re=ne.itemRender,J="".concat(ue,"-item"),g=ge()(J,"".concat(J,"-").concat(he),(0,p.Z)((0,p.Z)({},"".concat(J,"-active"),Oe),"".concat(J,"-disabled"),!he),G),v=function(){Q(he)},Z=function(We){q(We,Q,he)},ce=re(he,"page",m.createElement("a",{rel:"nofollow"},he));return ce?m.createElement("li",{title:P?String(he):null,className:g,onClick:v,onKeyDown:Z,tabIndex:0},ce):null},te=V,N=function(ne,ue,he){return he};function B(){}function R(W){var ne=Number(W);return typeof ne=="number"&&!Number.isNaN(ne)&&isFinite(ne)&&Math.floor(ne)===ne}function S(W,ne,ue){var he=typeof W=="undefined"?ne:W;return Math.floor((ue-1)/he)+1}var $=function(ne){var ue=ne.prefixCls,he=ue===void 0?"rc-pagination":ue,Oe=ne.selectPrefixCls,G=Oe===void 0?"rc-select":Oe,P=ne.className,Q=ne.current,q=ne.defaultCurrent,re=q===void 0?1:q,J=ne.total,g=J===void 0?0:J,v=ne.pageSize,Z=ne.defaultPageSize,ce=Z===void 0?10:Z,Xe=ne.onChange,We=Xe===void 0?B:Xe,Dt=ne.hideOnSinglePage,vt=ne.align,$t=ne.showPrevNextJumpers,Ht=$t===void 0?!0:$t,ke=ne.showQuickJumper,Bt=ne.showLessItems,xn=ne.showTitle,Yt=xn===void 0?!0:xn,ln=ne.onShowSizeChange,mt=ln===void 0?B:ln,Be=ne.locale,be=Be===void 0?y.Z:Be,M=ne.style,Ce=ne.totalBoundaryShowSizeChanger,Ge=Ce===void 0?50:Ce,K=ne.disabled,k=ne.simple,F=ne.showTotal,pe=ne.showSizeChanger,z=pe===void 0?g>Ge:pe,Y=ne.sizeChangerRender,ie=ne.pageSizeOptions,Te=ne.itemRender,xe=Te===void 0?N:Te,Ue=ne.jumpPrevIcon,Ze=ne.jumpNextIcon,$e=ne.prevIcon,at=ne.nextIcon,ve=m.useRef(null),De=(0,le.Z)(10,{value:v,defaultValue:ce}),ot=(0,O.Z)(De,2),Je=ot[0],He=ot[1],gt=(0,le.Z)(1,{value:Q,defaultValue:re,postState:function(Dn){return Math.max(1,Math.min(Dn,S(void 0,Je,g)))}}),Rt=(0,O.Z)(gt,2),st=Rt[0],Kt=Rt[1],cn=m.useState(st),At=(0,O.Z)(cn,2),Xt=At[0],Fe=At[1];(0,m.useEffect)(function(){Fe(st)},[st]);var Ne=We!==B,Me="current"in ne,I=Math.max(1,st-(Bt?3:5)),ae=Math.min(S(void 0,Je,g),st+(Bt?3:5));function de(vn,Dn){var je=vn||m.createElement("button",{type:"button","aria-label":Dn,className:"".concat(he,"-item-link")});return typeof vn=="function"&&(je=m.createElement(vn,(0,me.Z)({},ne))),je}function se(vn){var Dn=vn.target.value,je=S(void 0,Je,g),Lt;return Dn===""?Lt=Dn:Number.isNaN(Number(Dn))?Lt=Xt:Dn>=je?Lt=je:Lt=Number(Dn),Lt}function Se(vn){return R(vn)&&vn!==st&&R(g)&&g>0}var Mt=g>Je?ke:!1;function It(vn){(vn.keyCode===o.Z.UP||vn.keyCode===o.Z.DOWN)&&vn.preventDefault()}function Ft(vn){var Dn=se(vn);switch(Dn!==Xt&&Fe(Dn),vn.keyCode){case o.Z.ENTER:_(Dn);break;case o.Z.UP:_(Dn-1);break;case o.Z.DOWN:_(Dn+1);break;default:break}}function fn(vn){_(se(vn))}function Le(vn){var Dn=S(vn,Je,g),je=st>Dn&&Dn!==0?Dn:st;He(vn),Fe(je),mt==null||mt(st,vn),Kt(je),We==null||We(je,vn)}function _(vn){if(Se(vn)&&!K){var Dn=S(void 0,Je,g),je=vn;return vn>Dn?je=Dn:vn<1&&(je=1),je!==Xt&&Fe(je),Kt(je),We==null||We(je,Je),je}return st}var j=st>1,E=st<S(void 0,Je,g);function Pe(){j&&_(st-1)}function ye(){E&&_(st+1)}function we(){_(I)}function ze(){_(ae)}function ut(vn,Dn){if(vn.key==="Enter"||vn.charCode===o.Z.ENTER||vn.keyCode===o.Z.ENTER){for(var je=arguments.length,Lt=new Array(je>2?je-2:0),tn=2;tn<je;tn++)Lt[tn-2]=arguments[tn];Dn.apply(void 0,Lt)}}function Pt(vn){ut(vn,Pe)}function Vt(vn){ut(vn,ye)}function Ut(vn){ut(vn,we)}function mn(vn){ut(vn,ze)}function Re(vn){var Dn=xe(vn,"prev",de($e,"prev page"));return m.isValidElement(Dn)?m.cloneElement(Dn,{disabled:!j}):Dn}function _e(vn){var Dn=xe(vn,"next",de(at,"next page"));return m.isValidElement(Dn)?m.cloneElement(Dn,{disabled:!E}):Dn}function Ve(vn){(vn.type==="click"||vn.keyCode===o.Z.ENTER)&&_(Xt)}var et=null,dt=(0,b.Z)(ne,{aria:!0,data:!0}),Et=F&&m.createElement("li",{className:"".concat(he,"-total-text")},F(g,[g===0?0:(st-1)*Je+1,st*Je>g?g:st*Je])),tt=null,nt=S(void 0,Je,g);if(Dt&&g<=Je)return null;var _t=[],Ct={rootPrefixCls:he,onClick:_,onKeyPress:ut,showTitle:Yt,itemRender:xe,page:-1},pn=st-1>0?st-1:0,_n=st+1<nt?st+1:nt,an=ke&&ke.goButton,zt=(0,oe.Z)(k)==="object"?k.readOnly:!k,Ie=an,qe=null;k&&(an&&(typeof an=="boolean"?Ie=m.createElement("button",{type:"button",onClick:Ve,onKeyUp:Ve},be.jump_to_confirm):Ie=m.createElement("span",{onClick:Ve,onKeyUp:Ve},an),Ie=m.createElement("li",{title:Yt?"".concat(be.jump_to).concat(st,"/").concat(nt):null,className:"".concat(he,"-simple-pager")},Ie)),qe=m.createElement("li",{title:Yt?"".concat(st,"/").concat(nt):null,className:"".concat(he,"-simple-pager")},zt?Xt:m.createElement("input",{type:"text","aria-label":be.jump_to,value:Xt,disabled:K,onKeyDown:It,onKeyUp:Ft,onChange:Ft,onBlur:fn,size:3}),m.createElement("span",{className:"".concat(he,"-slash")},"/"),nt));var ft=Bt?1:2;if(nt<=3+ft*2){nt||_t.push(m.createElement(te,(0,fe.Z)({},Ct,{key:"noPager",page:1,className:"".concat(he,"-item-disabled")})));for(var ht=1;ht<=nt;ht+=1)_t.push(m.createElement(te,(0,fe.Z)({},Ct,{key:ht,page:ht,active:st===ht})))}else{var Gt=Bt?be.prev_3:be.prev_5,en=Bt?be.next_3:be.next_5,Wt=xe(I,"jump-prev",de(Ue,"prev page")),rn=xe(ae,"jump-next",de(Ze,"next page"));Ht&&(et=Wt?m.createElement("li",{title:Yt?Gt:null,key:"prev",onClick:we,tabIndex:0,onKeyDown:Ut,className:ge()("".concat(he,"-jump-prev"),(0,p.Z)({},"".concat(he,"-jump-prev-custom-icon"),!!Ue))},Wt):null,tt=rn?m.createElement("li",{title:Yt?en:null,key:"next",onClick:ze,tabIndex:0,onKeyDown:mn,className:ge()("".concat(he,"-jump-next"),(0,p.Z)({},"".concat(he,"-jump-next-custom-icon"),!!Ze))},rn):null);var hn=Math.max(1,st-ft),Sn=Math.min(st+ft,nt);st-1<=ft&&(Sn=1+ft*2),nt-st<=ft&&(hn=nt-ft*2);for(var Un=hn;Un<=Sn;Un+=1)_t.push(m.createElement(te,(0,fe.Z)({},Ct,{key:Un,page:Un,active:st===Un})));if(st-1>=ft*2&&st!==3&&(_t[0]=m.cloneElement(_t[0],{className:ge()("".concat(he,"-item-after-jump-prev"),_t[0].props.className)}),_t.unshift(et)),nt-st>=ft*2&&st!==nt-2){var yn=_t[_t.length-1];_t[_t.length-1]=m.cloneElement(yn,{className:ge()("".concat(he,"-item-before-jump-next"),yn.props.className)}),_t.push(tt)}hn!==1&&_t.unshift(m.createElement(te,(0,fe.Z)({},Ct,{key:1,page:1}))),Sn!==nt&&_t.push(m.createElement(te,(0,fe.Z)({},Ct,{key:nt,page:nt})))}var Zn=Re(pn);if(Zn){var Nn=!j||!nt;Zn=m.createElement("li",{title:Yt?be.prev_page:null,onClick:Pe,tabIndex:Nn?null:0,onKeyDown:Pt,className:ge()("".concat(he,"-prev"),(0,p.Z)({},"".concat(he,"-disabled"),Nn)),"aria-disabled":Nn},Zn)}var Gn=_e(_n);if(Gn){var Mn,On;k?(Mn=!E,On=j?0:null):(Mn=!E||!nt,On=Mn?null:0),Gn=m.createElement("li",{title:Yt?be.next_page:null,onClick:ye,tabIndex:On,onKeyDown:Vt,className:ge()("".concat(he,"-next"),(0,p.Z)({},"".concat(he,"-disabled"),Mn)),"aria-disabled":Mn},Gn)}var Qn=ge()(he,P,(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},"".concat(he,"-start"),vt==="start"),"".concat(he,"-center"),vt==="center"),"".concat(he,"-end"),vt==="end"),"".concat(he,"-simple"),k),"".concat(he,"-disabled"),K));return m.createElement("ul",(0,fe.Z)({className:Qn,style:M,ref:ve},dt),Et,Zn,k?qe:_t,Gn,m.createElement(U,{locale:be,rootPrefixCls:he,disabled:K,selectPrefixCls:G,changeSize:Le,pageSize:Je,pageSizeOptions:ie,quickGo:Mt?_:null,goButton:Ie,showSizeChanger:z,sizeChangerRender:Y}))},ee=$},738:function(Ln,jt,w){"use strict";w.d(jt,{Z:function(){return B}});var p=w(5016),fe=w(18082),oe=w(52456),me=w(5883),O=w(92310),d=w.n(O),ge=w(18929),le=w(10228),o=w(26112),b=w(59301);function T(R,S){var $=R.disabled,ee=R.prefixCls,W=R.character,ne=R.characterRender,ue=R.index,he=R.count,Oe=R.value,G=R.allowHalf,P=R.focused,Q=R.onHover,q=R.onClick,re=function(Dt){Q(Dt,ue)},J=function(Dt){q(Dt,ue)},g=function(Dt){Dt.keyCode===le.Z.ENTER&&q(Dt,ue)},v=ue+1,Z=new Set([ee]);Oe===0&&ue===0&&P?Z.add("".concat(ee,"-focused")):G&&Oe+.5>=v&&Oe<v?(Z.add("".concat(ee,"-half")),Z.add("".concat(ee,"-active")),P&&Z.add("".concat(ee,"-focused"))):(v<=Oe?Z.add("".concat(ee,"-full")):Z.add("".concat(ee,"-zero")),v===Oe&&P&&Z.add("".concat(ee,"-focused")));var ce=typeof W=="function"?W(R):W,Xe=b.createElement("li",{className:d()(Array.from(Z)),ref:S},b.createElement("div",{onClick:$?null:J,onKeyDown:$?null:g,onMouseMove:$?null:re,role:"radio","aria-checked":Oe>ue?"true":"false","aria-posinset":ue+1,"aria-setsize":he,tabIndex:$?-1:0},b.createElement("div",{className:"".concat(ee,"-first")},ce),b.createElement("div",{className:"".concat(ee,"-second")},ce)));return ne&&(Xe=ne(Xe,R)),Xe}var m=b.forwardRef(T);function y(){var R=b.useRef({});function S(ee){return R.current[ee]}function $(ee){return function(W){R.current[ee]=W}}return[S,$]}function x(R){var S=R.pageXOffset,$="scrollLeft";if(typeof S!="number"){var ee=R.document;S=ee.documentElement[$],typeof S!="number"&&(S=ee.body[$])}return S}function L(R){var S,$,ee=R.ownerDocument,W=ee.body,ne=ee&&ee.documentElement,ue=R.getBoundingClientRect();return S=ue.left,$=ue.top,S-=ne.clientLeft||W.clientLeft||0,$-=ne.clientTop||W.clientTop||0,{left:S,top:$}}function U(R){var S=L(R),$=R.ownerDocument,ee=$.defaultView||$.parentWindow;return S.left+=x(ee),S.left}var V=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function te(R,S){var $=R.prefixCls,ee=$===void 0?"rc-rate":$,W=R.className,ne=R.defaultValue,ue=R.value,he=R.count,Oe=he===void 0?5:he,G=R.allowHalf,P=G===void 0?!1:G,Q=R.allowClear,q=Q===void 0?!0:Q,re=R.keyboard,J=re===void 0?!0:re,g=R.character,v=g===void 0?"\u2605":g,Z=R.characterRender,ce=R.disabled,Xe=R.direction,We=Xe===void 0?"ltr":Xe,Dt=R.tabIndex,vt=Dt===void 0?0:Dt,$t=R.autoFocus,Ht=R.onHoverChange,ke=R.onChange,Bt=R.onFocus,xn=R.onBlur,Yt=R.onKeyDown,ln=R.onMouseLeave,mt=(0,me.Z)(R,V),Be=y(),be=(0,oe.Z)(Be,2),M=be[0],Ce=be[1],Ge=b.useRef(null),K=function(){if(!ce){var I;(I=Ge.current)===null||I===void 0||I.focus()}};b.useImperativeHandle(S,function(){return{focus:K,blur:function(){if(!ce){var I;(I=Ge.current)===null||I===void 0||I.blur()}}}});var k=(0,ge.Z)(ne||0,{value:ue}),F=(0,oe.Z)(k,2),pe=F[0],z=F[1],Y=(0,ge.Z)(null),ie=(0,oe.Z)(Y,2),Te=ie[0],xe=ie[1],Ue=function(I,ae){var de=We==="rtl",se=I+1;if(P){var Se=M(I),Mt=U(Se),It=Se.clientWidth;(de&&ae-Mt>It/2||!de&&ae-Mt<It/2)&&(se-=.5)}return se},Ze=function(I){z(I),ke==null||ke(I)},$e=b.useState(!1),at=(0,oe.Z)($e,2),ve=at[0],De=at[1],ot=function(){De(!0),Bt==null||Bt()},Je=function(){De(!1),xn==null||xn()},He=b.useState(null),gt=(0,oe.Z)(He,2),Rt=gt[0],st=gt[1],Kt=function(I,ae){var de=Ue(ae,I.pageX);de!==Te&&(st(de),xe(null)),Ht==null||Ht(de)},cn=function(I){ce||(st(null),xe(null),Ht==null||Ht(void 0)),I&&(ln==null||ln(I))},At=function(I,ae){var de=Ue(ae,I.pageX),se=!1;q&&(se=de===pe),cn(),Ze(se?0:de),xe(se?de:null)},Xt=function(I){var ae=I.keyCode,de=We==="rtl",se=P?.5:1;J&&(ae===le.Z.RIGHT&&pe<Oe&&!de?(Ze(pe+se),I.preventDefault()):ae===le.Z.LEFT&&pe>0&&!de||ae===le.Z.RIGHT&&pe>0&&de?(Ze(pe-se),I.preventDefault()):ae===le.Z.LEFT&&pe<Oe&&de&&(Ze(pe+se),I.preventDefault())),Yt==null||Yt(I)};b.useEffect(function(){$t&&!ce&&K()},[]);var Fe=new Array(Oe).fill(0).map(function(Me,I){return b.createElement(m,{ref:Ce(I),index:I,count:Oe,disabled:ce,prefixCls:"".concat(ee,"-star"),allowHalf:P,value:Rt===null?pe:Rt,onClick:At,onHover:Kt,key:Me||I,character:v,characterRender:Z,focused:ve})}),Ne=d()(ee,W,(0,fe.Z)((0,fe.Z)({},"".concat(ee,"-disabled"),ce),"".concat(ee,"-rtl"),We==="rtl"));return b.createElement("ul",(0,p.Z)({className:Ne,onMouseLeave:cn,tabIndex:ce?-1:vt,onFocus:ce?null:ot,onBlur:ce?null:Je,onKeyDown:ce?null:Xt,ref:Ge},(0,o.Z)(mt,{aria:!0,data:!0,attr:!0})),Fe)}var N=b.forwardRef(te),B=N},29301:function(Ln,jt,w){"use strict";w.d(jt,{Z:function(){return G}});var p=w(5016),fe=w(59301),oe=w(11592),me=w(48736),O=w(20049),d=w(10928),ge=w(76846),le=w(8654),o=fe.createContext(null);function b(P){var Q=P.children,q=P.onBatchResize,re=fe.useRef(0),J=fe.useRef([]),g=fe.useContext(o),v=fe.useCallback(function(Z,ce,Xe){re.current+=1;var We=re.current;J.current.push({size:Z,element:ce,data:Xe}),Promise.resolve().then(function(){We===re.current&&(q==null||q(J.current),J.current=[])}),g==null||g(Z,ce,Xe)},[q,g]);return fe.createElement(o.Provider,{value:v},Q)}var T=w(76374),m=new Map;function y(P){P.forEach(function(Q){var q,re=Q.target;(q=m.get(re))===null||q===void 0||q.forEach(function(J){return J(re)})})}var x=new T.Z(y),L=null,U=null;function V(P,Q){m.has(P)||(m.set(P,new Set),x.observe(P)),m.get(P).add(Q)}function te(P,Q){m.has(P)&&(m.get(P).delete(Q),m.get(P).size||(x.unobserve(P),m.delete(P)))}var N=w(6487),B=w(56789),R=w(7942),S=w(76773),$=function(P){(0,R.Z)(q,P);var Q=(0,S.Z)(q);function q(){return(0,N.Z)(this,q),Q.apply(this,arguments)}return(0,B.Z)(q,[{key:"render",value:function(){return this.props.children}}]),q}(fe.Component);function ee(P,Q){var q=P.children,re=P.disabled,J=fe.useRef(null),g=fe.useRef(null),v=fe.useContext(o),Z=typeof q=="function",ce=Z?q(J):q,Xe=fe.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),We=!Z&&fe.isValidElement(ce)&&(0,le.Yr)(ce),Dt=We?(0,le.C4)(ce):null,vt=(0,le.x1)(Dt,J),$t=function(){var xn;return(0,ge.ZP)(J.current)||(J.current&&(0,d.Z)(J.current)==="object"?(0,ge.ZP)((xn=J.current)===null||xn===void 0?void 0:xn.nativeElement):null)||(0,ge.ZP)(g.current)};fe.useImperativeHandle(Q,function(){return $t()});var Ht=fe.useRef(P);Ht.current=P;var ke=fe.useCallback(function(Bt){var xn=Ht.current,Yt=xn.onResize,ln=xn.data,mt=Bt.getBoundingClientRect(),Be=mt.width,be=mt.height,M=Bt.offsetWidth,Ce=Bt.offsetHeight,Ge=Math.floor(Be),K=Math.floor(be);if(Xe.current.width!==Ge||Xe.current.height!==K||Xe.current.offsetWidth!==M||Xe.current.offsetHeight!==Ce){var k={width:Ge,height:K,offsetWidth:M,offsetHeight:Ce};Xe.current=k;var F=M===Math.round(Be)?Be:M,pe=Ce===Math.round(be)?be:Ce,z=(0,O.Z)((0,O.Z)({},k),{},{offsetWidth:F,offsetHeight:pe});v==null||v(z,Bt,ln),Yt&&Promise.resolve().then(function(){Yt(z,Bt)})}},[]);return fe.useEffect(function(){var Bt=$t();return Bt&&!re&&V(Bt,ke),function(){return te(Bt,ke)}},[J.current,re]),fe.createElement($,{ref:g},We?fe.cloneElement(ce,{ref:vt}):ce)}var W=fe.forwardRef(ee),ne=W,ue="rc-observer-key";function he(P,Q){var q=P.children,re=typeof q=="function"?[q]:(0,oe.Z)(q);return re.map(function(J,g){var v=(J==null?void 0:J.key)||"".concat(ue,"-").concat(g);return fe.createElement(ne,(0,p.Z)({},P,{key:v,ref:g===0?Q:void 0}),J)})}var Oe=fe.forwardRef(he);Oe.Collection=b;var G=Oe},6551:function(Ln,jt,w){"use strict";w.d(jt,{ZP:function(){return ge}});var p=w(52456),fe=w(59301),oe=w(47273),me=0,O=(0,oe.Z)();function d(){var le;return O?(le=me,me+=1):le="TEST_OR_SSR",le}function ge(le){var o=fe.useState(),b=(0,p.Z)(o,2),T=b[0],m=b[1];return fe.useEffect(function(){m("rc_select_".concat(d()))},[]),le||T}},37463:function(Ln,jt,w){"use strict";w.d(jt,{Ac:function(){return De},Xo:function(){return Je},Wx:function(){return gt},ZP:function(){return mn},lk:function(){return B}});var p=w(5016),fe=w(92393),oe=w(18082),me=w(20049),O=w(52456),d=w(5883),ge=w(10928),le=w(18929),o=w(48736),b=w(59301),T=w(92310),m=w.n(T),y=w(34280),x=w(49658),L=w(8654),U=function(_e){var Ve=_e.className,et=_e.customizeIcon,dt=_e.customizeIconProps,Et=_e.children,tt=_e.onMouseDown,nt=_e.onClick,_t=typeof et=="function"?et(dt):et;return b.createElement("span",{className:Ve,onMouseDown:function(pn){pn.preventDefault(),tt==null||tt(pn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:nt,"aria-hidden":!0},_t!==void 0?_t:b.createElement("span",{className:m()(Ve.split(/\s+/).map(function(Ct){return"".concat(Ct,"-icon")}))},Et))},V=U,te=function(_e,Ve,et,dt,Et){var tt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,nt=arguments.length>6?arguments[6]:void 0,_t=arguments.length>7?arguments[7]:void 0,Ct=b.useMemo(function(){if((0,ge.Z)(dt)==="object")return dt.clearIcon;if(Et)return Et},[dt,Et]),pn=b.useMemo(function(){return!!(!tt&&dt&&(et.length||nt)&&!(_t==="combobox"&&nt===""))},[dt,tt,et.length,nt,_t]);return{allowClear:pn,clearIcon:b.createElement(V,{className:"".concat(_e,"-clear"),onMouseDown:Ve,customizeIcon:Ct},"\xD7")}},N=b.createContext(null);function B(){return b.useContext(N)}function R(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,_e=b.useState(!1),Ve=(0,O.Z)(_e,2),et=Ve[0],dt=Ve[1],Et=b.useRef(null),tt=function(){window.clearTimeout(Et.current)};b.useEffect(function(){return tt},[]);var nt=function(Ct,pn){tt(),Et.current=window.setTimeout(function(){dt(Ct),pn&&pn()},Re)};return[et,nt,tt]}function S(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,_e=b.useRef(null),Ve=b.useRef(null);b.useEffect(function(){return function(){window.clearTimeout(Ve.current)}},[]);function et(dt){(dt||_e.current===null)&&(_e.current=dt),window.clearTimeout(Ve.current),Ve.current=window.setTimeout(function(){_e.current=null},Re)}return[function(){return _e.current},et]}function $(Re,_e,Ve,et){var dt=b.useRef(null);dt.current={open:_e,triggerOpen:Ve,customizedTrigger:et},b.useEffect(function(){function Et(tt){var nt;if(!((nt=dt.current)!==null&&nt!==void 0&&nt.customizedTrigger)){var _t=tt.target;_t.shadowRoot&&tt.composed&&(_t=tt.composedPath()[0]||_t),dt.current.open&&Re().filter(function(Ct){return Ct}).every(function(Ct){return!Ct.contains(_t)&&Ct!==_t})&&dt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Et),function(){return window.removeEventListener("mousedown",Et)}},[])}var ee=w(10228);function W(Re){return Re&&![ee.Z.ESC,ee.Z.SHIFT,ee.Z.BACKSPACE,ee.Z.TAB,ee.Z.WIN_KEY,ee.Z.ALT,ee.Z.META,ee.Z.WIN_KEY_RIGHT,ee.Z.CTRL,ee.Z.SEMICOLON,ee.Z.EQUALS,ee.Z.CAPS_LOCK,ee.Z.CONTEXT_MENU,ee.Z.F1,ee.Z.F2,ee.Z.F3,ee.Z.F4,ee.Z.F5,ee.Z.F6,ee.Z.F7,ee.Z.F8,ee.Z.F9,ee.Z.F10,ee.Z.F11,ee.Z.F12].includes(Re)}var ne=w(26112),ue=w(11780);function he(Re,_e,Ve){var et=(0,me.Z)((0,me.Z)({},Re),Ve?_e:{});return Object.keys(_e).forEach(function(dt){var Et=_e[dt];typeof Et=="function"&&(et[dt]=function(){for(var tt,nt=arguments.length,_t=new Array(nt),Ct=0;Ct<nt;Ct++)_t[Ct]=arguments[Ct];return Et.apply(void 0,_t),(tt=Re[dt])===null||tt===void 0?void 0:tt.call.apply(tt,[Re].concat(_t))})}),et}var Oe=he,G=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],P=function(_e,Ve){var et=_e.prefixCls,dt=_e.id,Et=_e.inputElement,tt=_e.autoFocus,nt=_e.autoComplete,_t=_e.editable,Ct=_e.activeDescendantId,pn=_e.value,_n=_e.open,an=_e.attrs,zt=(0,d.Z)(_e,G),Ie=Et||b.createElement("input",null),qe=Ie,ft=qe.ref,ht=qe.props;return(0,o.Kp)(!("maxLength"in Ie.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ie=b.cloneElement(Ie,(0,me.Z)((0,me.Z)((0,me.Z)({type:"search"},Oe(zt,ht,!0)),{},{id:dt,ref:(0,L.sQ)(Ve,ft),autoComplete:nt||"off",autoFocus:tt,className:m()("".concat(et,"-selection-search-input"),ht==null?void 0:ht.className),role:"combobox","aria-expanded":_n||!1,"aria-haspopup":"listbox","aria-owns":"".concat(dt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(dt,"_list"),"aria-activedescendant":_n?Ct:void 0},an),{},{value:_t?pn:"",readOnly:!_t,unselectable:_t?null:"on",style:(0,me.Z)((0,me.Z)({},ht.style),{},{opacity:_t?null:0})})),Ie},Q=b.forwardRef(P),q=Q;function re(Re){return Array.isArray(Re)?Re:Re!==void 0?[Re]:[]}var J=typeof window!="undefined"&&window.document&&window.document.documentElement,g=J;function v(Re){return Re!=null}function Z(Re){return!Re&&Re!==0}function ce(Re){return["string","number"].includes((0,ge.Z)(Re))}function Xe(Re){var _e=void 0;return Re&&(ce(Re.title)?_e=Re.title.toString():ce(Re.label)&&(_e=Re.label.toString())),_e}function We(Re,_e){g?b.useLayoutEffect(Re,_e):b.useEffect(Re,_e)}function Dt(Re){var _e;return(_e=Re.key)!==null&&_e!==void 0?_e:Re.value}var vt=function(_e){_e.preventDefault(),_e.stopPropagation()},$t=function(_e){var Ve=_e.id,et=_e.prefixCls,dt=_e.values,Et=_e.open,tt=_e.searchValue,nt=_e.autoClearSearchValue,_t=_e.inputRef,Ct=_e.placeholder,pn=_e.disabled,_n=_e.mode,an=_e.showSearch,zt=_e.autoFocus,Ie=_e.autoComplete,qe=_e.activeDescendantId,ft=_e.tabIndex,ht=_e.removeIcon,Gt=_e.maxTagCount,en=_e.maxTagTextLength,Wt=_e.maxTagPlaceholder,rn=Wt===void 0?function(pt){return"+ ".concat(pt.length," ...")}:Wt,hn=_e.tagRender,Sn=_e.onToggleOpen,Un=_e.onRemove,yn=_e.onInputChange,Zn=_e.onInputPaste,Nn=_e.onInputKeyDown,Gn=_e.onInputMouseDown,Mn=_e.onInputCompositionStart,On=_e.onInputCompositionEnd,Qn=_e.onInputBlur,vn=b.useRef(null),Dn=(0,b.useState)(0),je=(0,O.Z)(Dn,2),Lt=je[0],tn=je[1],gn=(0,b.useState)(!1),zn=(0,O.Z)(gn,2),Ee=zn[0],lt=zn[1],Ye="".concat(et,"-selection"),it=Et||_n==="multiple"&&nt===!1||_n==="tags"?tt:"",yt=_n==="tags"||_n==="multiple"&&nt===!1||an&&(Et||Ee);We(function(){tn(vn.current.scrollWidth)},[it]);var Tt=function(xt,Ot,dn,Rn,En){return b.createElement("span",{title:Xe(xt),className:m()("".concat(Ye,"-item"),(0,oe.Z)({},"".concat(Ye,"-item-disabled"),dn))},b.createElement("span",{className:"".concat(Ye,"-item-content")},Ot),Rn&&b.createElement(V,{className:"".concat(Ye,"-item-remove"),onMouseDown:vt,onClick:En,customizeIcon:ht},"\xD7"))},Jt=function(xt,Ot,dn,Rn,En,Kn){var Vn=function($n){vt($n),Sn(!Et)};return b.createElement("span",{onMouseDown:Vn},hn({label:Ot,value:xt,disabled:dn,closable:Rn,onClose:En,isMaxTag:!!Kn}))},qt=function(xt){var Ot=xt.disabled,dn=xt.label,Rn=xt.value,En=!pn&&!Ot,Kn=dn;if(typeof en=="number"&&(typeof dn=="string"||typeof dn=="number")){var Vn=String(Kn);Vn.length>en&&(Kn="".concat(Vn.slice(0,en),"..."))}var Wn=function(An){An&&An.stopPropagation(),Un(xt)};return typeof hn=="function"?Jt(Rn,Kn,Ot,En,Wn):Tt(xt,Kn,Ot,En,Wn)},kt=function(xt){if(!dt.length)return null;var Ot=typeof rn=="function"?rn(xt):rn;return typeof hn=="function"?Jt(void 0,Ot,!1,!1,void 0,!0):Tt({title:Ot},Ot,!1)},rt=b.createElement("div",{className:"".concat(Ye,"-search"),style:{width:Lt},onFocus:function(){lt(!0)},onBlur:function(){lt(!1)}},b.createElement(q,{ref:_t,open:Et,prefixCls:et,id:Ve,inputElement:null,disabled:pn,autoFocus:zt,autoComplete:Ie,editable:yt,activeDescendantId:qe,value:it,onKeyDown:Nn,onMouseDown:Gn,onChange:yn,onPaste:Zn,onCompositionStart:Mn,onCompositionEnd:On,onBlur:Qn,tabIndex:ft,attrs:(0,ne.Z)(_e,!0)}),b.createElement("span",{ref:vn,className:"".concat(Ye,"-search-mirror"),"aria-hidden":!0},it,"\xA0")),ct=b.createElement(ue.Z,{prefixCls:"".concat(Ye,"-overflow"),data:dt,renderItem:qt,renderRest:kt,suffix:rt,itemKey:Dt,maxCount:Gt});return b.createElement("span",{className:"".concat(Ye,"-wrap")},ct,!dt.length&&!it&&b.createElement("span",{className:"".concat(Ye,"-placeholder")},Ct))},Ht=$t,ke=function(_e){var Ve=_e.inputElement,et=_e.prefixCls,dt=_e.id,Et=_e.inputRef,tt=_e.disabled,nt=_e.autoFocus,_t=_e.autoComplete,Ct=_e.activeDescendantId,pn=_e.mode,_n=_e.open,an=_e.values,zt=_e.placeholder,Ie=_e.tabIndex,qe=_e.showSearch,ft=_e.searchValue,ht=_e.activeValue,Gt=_e.maxLength,en=_e.onInputKeyDown,Wt=_e.onInputMouseDown,rn=_e.onInputChange,hn=_e.onInputPaste,Sn=_e.onInputCompositionStart,Un=_e.onInputCompositionEnd,yn=_e.onInputBlur,Zn=_e.title,Nn=b.useState(!1),Gn=(0,O.Z)(Nn,2),Mn=Gn[0],On=Gn[1],Qn=pn==="combobox",vn=Qn||qe,Dn=an[0],je=ft||"";Qn&&ht&&!Mn&&(je=ht),b.useEffect(function(){Qn&&On(!1)},[Qn,ht]);var Lt=pn!=="combobox"&&!_n&&!qe?!1:!!je,tn=Zn===void 0?Xe(Dn):Zn,gn=b.useMemo(function(){return Dn?null:b.createElement("span",{className:"".concat(et,"-selection-placeholder"),style:Lt?{visibility:"hidden"}:void 0},zt)},[Dn,Lt,zt,et]);return b.createElement("span",{className:"".concat(et,"-selection-wrap")},b.createElement("span",{className:"".concat(et,"-selection-search")},b.createElement(q,{ref:Et,prefixCls:et,id:dt,open:_n,inputElement:Ve,disabled:tt,autoFocus:nt,autoComplete:_t,editable:vn,activeDescendantId:Ct,value:je,onKeyDown:en,onMouseDown:Wt,onChange:function(Ee){On(!0),rn(Ee)},onPaste:hn,onCompositionStart:Sn,onCompositionEnd:Un,onBlur:yn,tabIndex:Ie,attrs:(0,ne.Z)(_e,!0),maxLength:Qn?Gt:void 0})),!Qn&&Dn?b.createElement("span",{className:"".concat(et,"-selection-item"),title:tn,style:Lt?{visibility:"hidden"}:void 0},Dn.label):null,gn)},Bt=ke,xn=function(_e,Ve){var et=(0,b.useRef)(null),dt=(0,b.useRef)(!1),Et=_e.prefixCls,tt=_e.open,nt=_e.mode,_t=_e.showSearch,Ct=_e.tokenWithEnter,pn=_e.disabled,_n=_e.prefix,an=_e.autoClearSearchValue,zt=_e.onSearch,Ie=_e.onSearchSubmit,qe=_e.onToggleOpen,ft=_e.onInputKeyDown,ht=_e.onInputBlur,Gt=_e.domRef;b.useImperativeHandle(Ve,function(){return{focus:function(tn){et.current.focus(tn)},blur:function(){et.current.blur()}}});var en=S(0),Wt=(0,O.Z)(en,2),rn=Wt[0],hn=Wt[1],Sn=function(tn){var gn=tn.which,zn=et.current instanceof HTMLTextAreaElement;!zn&&tt&&(gn===ee.Z.UP||gn===ee.Z.DOWN)&&tn.preventDefault(),ft&&ft(tn),gn===ee.Z.ENTER&&nt==="tags"&&!dt.current&&!tt&&(Ie==null||Ie(tn.target.value)),!(zn&&!tt&&~[ee.Z.UP,ee.Z.DOWN,ee.Z.LEFT,ee.Z.RIGHT].indexOf(gn))&&W(gn)&&qe(!0)},Un=function(){hn(!0)},yn=(0,b.useRef)(null),Zn=function(tn){zt(tn,!0,dt.current)!==!1&&qe(!0)},Nn=function(){dt.current=!0},Gn=function(tn){dt.current=!1,nt!=="combobox"&&Zn(tn.target.value)},Mn=function(tn){var gn=tn.target.value;if(Ct&&yn.current&&/[\r\n]/.test(yn.current)){var zn=yn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");gn=gn.replace(zn,yn.current)}yn.current=null,Zn(gn)},On=function(tn){var gn=tn.clipboardData,zn=gn==null?void 0:gn.getData("text");yn.current=zn||""},Qn=function(tn){var gn=tn.target;if(gn!==et.current){var zn=document.body.style.msTouchAction!==void 0;zn?setTimeout(function(){et.current.focus()}):et.current.focus()}},vn=function(tn){var gn=rn();tn.target!==et.current&&!gn&&!(nt==="combobox"&&pn)&&tn.preventDefault(),(nt!=="combobox"&&(!_t||!gn)||!tt)&&(tt&&an!==!1&&zt("",!0,!1),qe())},Dn={inputRef:et,onInputKeyDown:Sn,onInputMouseDown:Un,onInputChange:Mn,onInputPaste:On,onInputCompositionStart:Nn,onInputCompositionEnd:Gn,onInputBlur:ht},je=nt==="multiple"||nt==="tags"?b.createElement(Ht,(0,p.Z)({},_e,Dn)):b.createElement(Bt,(0,p.Z)({},_e,Dn));return b.createElement("div",{ref:Gt,className:"".concat(Et,"-selector"),onClick:Qn,onMouseDown:vn},_n&&b.createElement("div",{className:"".concat(Et,"-prefix")},_n),je)},Yt=b.forwardRef(xn),ln=Yt,mt=w(65352),Be=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],be=function(_e){var Ve=_e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ve,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ve,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ve,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ve,adjustY:1},htmlRegion:"scroll"}}},M=function(_e,Ve){var et=_e.prefixCls,dt=_e.disabled,Et=_e.visible,tt=_e.children,nt=_e.popupElement,_t=_e.animation,Ct=_e.transitionName,pn=_e.dropdownStyle,_n=_e.dropdownClassName,an=_e.direction,zt=an===void 0?"ltr":an,Ie=_e.placement,qe=_e.builtinPlacements,ft=_e.dropdownMatchSelectWidth,ht=_e.dropdownRender,Gt=_e.dropdownAlign,en=_e.getPopupContainer,Wt=_e.empty,rn=_e.getTriggerDOMNode,hn=_e.onPopupVisibleChange,Sn=_e.onPopupMouseEnter,Un=(0,d.Z)(_e,Be),yn="".concat(et,"-dropdown"),Zn=nt;ht&&(Zn=ht(nt));var Nn=b.useMemo(function(){return qe||be(ft)},[qe,ft]),Gn=_t?"".concat(yn,"-").concat(_t):Ct,Mn=typeof ft=="number",On=b.useMemo(function(){return Mn?null:ft===!1?"minWidth":"width"},[ft,Mn]),Qn=pn;Mn&&(Qn=(0,me.Z)((0,me.Z)({},Qn),{},{width:ft}));var vn=b.useRef(null);return b.useImperativeHandle(Ve,function(){return{getPopupElement:function(){var je;return(je=vn.current)===null||je===void 0?void 0:je.popupElement}}}),b.createElement(mt.Z,(0,p.Z)({},Un,{showAction:hn?["click"]:[],hideAction:hn?["click"]:[],popupPlacement:Ie||(zt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Nn,prefixCls:yn,popupTransitionName:Gn,popup:b.createElement("div",{onMouseEnter:Sn},Zn),ref:vn,stretch:On,popupAlign:Gt,popupVisible:Et,getPopupContainer:en,popupClassName:m()(_n,(0,oe.Z)({},"".concat(yn,"-empty"),Wt)),popupStyle:Qn,getTriggerDOMNode:rn,onPopupVisibleChange:hn}),tt)},Ce=b.forwardRef(M),Ge=Ce,K=w(74604);function k(Re,_e){var Ve=Re.key,et;return"value"in Re&&(et=Re.value),Ve!=null?Ve:et!==void 0?et:"rc-index-key-".concat(_e)}function F(Re){return typeof Re!="undefined"&&!Number.isNaN(Re)}function pe(Re,_e){var Ve=Re||{},et=Ve.label,dt=Ve.value,Et=Ve.options,tt=Ve.groupLabel,nt=et||(_e?"children":"label");return{label:nt,value:dt||"value",options:Et||"options",groupLabel:tt||nt}}function z(Re){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ve=_e.fieldNames,et=_e.childrenAsData,dt=[],Et=pe(Ve,!1),tt=Et.label,nt=Et.value,_t=Et.options,Ct=Et.groupLabel;function pn(_n,an){Array.isArray(_n)&&_n.forEach(function(zt){if(an||!(_t in zt)){var Ie=zt[nt];dt.push({key:k(zt,dt.length),groupOption:an,data:zt,label:zt[tt],value:Ie})}else{var qe=zt[Ct];qe===void 0&&et&&(qe=zt.label),dt.push({key:k(zt,dt.length),group:!0,data:zt,label:qe}),pn(zt[_t],!0)}})}return pn(Re,!1),dt}function Y(Re){var _e=(0,me.Z)({},Re);return"props"in _e||Object.defineProperty(_e,"props",{get:function(){return(0,o.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),_e}}),_e}var ie=function(_e,Ve,et){if(!Ve||!Ve.length)return null;var dt=!1,Et=function nt(_t,Ct){var pn=(0,K.Z)(Ct),_n=pn[0],an=pn.slice(1);if(!_n)return[_t];var zt=_t.split(_n);return dt=dt||zt.length>1,zt.reduce(function(Ie,qe){return[].concat((0,fe.Z)(Ie),(0,fe.Z)(nt(qe,an)))},[]).filter(Boolean)},tt=Et(_e,Ve);return dt?typeof et!="undefined"?tt.slice(0,et):tt:null},Te=b.createContext(null),xe=Te;function Ue(Re){var _e=Re.visible,Ve=Re.values;if(!_e)return null;var et=50;return b.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Ve.slice(0,et).map(function(dt){var Et=dt.label,tt=dt.value;return["number","string"].includes((0,ge.Z)(Et))?Et:tt}).join(", ")),Ve.length>et?", ...":null)}var Ze=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],$e=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],at=function(_e){return _e==="tags"||_e==="multiple"},ve=b.forwardRef(function(Re,_e){var Ve,et=Re.id,dt=Re.prefixCls,Et=Re.className,tt=Re.showSearch,nt=Re.tagRender,_t=Re.direction,Ct=Re.omitDomProps,pn=Re.displayValues,_n=Re.onDisplayValuesChange,an=Re.emptyOptions,zt=Re.notFoundContent,Ie=zt===void 0?"Not Found":zt,qe=Re.onClear,ft=Re.mode,ht=Re.disabled,Gt=Re.loading,en=Re.getInputElement,Wt=Re.getRawInputElement,rn=Re.open,hn=Re.defaultOpen,Sn=Re.onDropdownVisibleChange,Un=Re.activeValue,yn=Re.onActiveValueChange,Zn=Re.activeDescendantId,Nn=Re.searchValue,Gn=Re.autoClearSearchValue,Mn=Re.onSearch,On=Re.onSearchSplit,Qn=Re.tokenSeparators,vn=Re.allowClear,Dn=Re.prefix,je=Re.suffixIcon,Lt=Re.clearIcon,tn=Re.OptionList,gn=Re.animation,zn=Re.transitionName,Ee=Re.dropdownStyle,lt=Re.dropdownClassName,Ye=Re.dropdownMatchSelectWidth,it=Re.dropdownRender,yt=Re.dropdownAlign,Tt=Re.placement,Jt=Re.builtinPlacements,qt=Re.getPopupContainer,kt=Re.showAction,rt=kt===void 0?[]:kt,ct=Re.onFocus,pt=Re.onBlur,xt=Re.onKeyUp,Ot=Re.onKeyDown,dn=Re.onMouseDown,Rn=(0,d.Z)(Re,Ze),En=at(ft),Kn=(tt!==void 0?tt:En)||ft==="combobox",Vn=(0,me.Z)({},Rn);$e.forEach(function(Ar){delete Vn[Ar]}),Ct==null||Ct.forEach(function(Ar){delete Vn[Ar]});var Wn=b.useState(!1),$n=(0,O.Z)(Wn,2),An=$n[0],cr=$n[1];b.useEffect(function(){cr((0,x.Z)())},[]);var ar=b.useRef(null),tr=b.useRef(null),Xn=b.useRef(null),Tn=b.useRef(null),dr=b.useRef(null),nr=b.useRef(!1),lr=R(),Cn=(0,O.Z)(lr,3),sn=Cn[0],wn=Cn[1],Fn=Cn[2];b.useImperativeHandle(_e,function(){var Ar,br;return{focus:(Ar=Tn.current)===null||Ar===void 0?void 0:Ar.focus,blur:(br=Tn.current)===null||br===void 0?void 0:br.blur,scrollTo:function(Gr){var Wr;return(Wr=dr.current)===null||Wr===void 0?void 0:Wr.scrollTo(Gr)},nativeElement:ar.current||tr.current}});var Pn=b.useMemo(function(){var Ar;if(ft!=="combobox")return Nn;var br=(Ar=pn[0])===null||Ar===void 0?void 0:Ar.value;return typeof br=="string"||typeof br=="number"?String(br):""},[Nn,ft,pn]),Jn=ft==="combobox"&&typeof en=="function"&&en()||null,rr=typeof Wt=="function"&&Wt(),_r=(0,L.x1)(tr,rr==null||(Ve=rr.props)===null||Ve===void 0?void 0:Ve.ref),Br=b.useState(!1),Nr=(0,O.Z)(Br,2),Jr=Nr[0],Kr=Nr[1];(0,y.Z)(function(){Kr(!0)},[]);var Ur=(0,le.Z)(!1,{defaultValue:hn,value:rn}),pr=(0,O.Z)(Ur,2),wr=pr[0],Pr=pr[1],Dr=Jr?wr:!1,gr=!Ie&&an;(ht||gr&&Dr&&ft==="combobox")&&(Dr=!1);var mr=gr?!1:Dr,bn=b.useCallback(function(Ar){var br=Ar!==void 0?Ar:!Dr;ht||(Pr(br),Dr!==br&&(Sn==null||Sn(br)))},[ht,Dr,Pr,Sn]),Yn=b.useMemo(function(){return(Qn||[]).some(function(Ar){return[`
|
|
`,`\r
|
|
`].includes(Ar)})},[Qn]),ir=b.useContext(xe)||{},or=ir.maxCount,yr=ir.rawValues,Cr=function(br,Xr,Gr){if(!(En&&F(or)&&(yr==null?void 0:yr.size)>=or)){var Wr=!0,Qr=br;yn==null||yn(null);var fi=ie(br,Qn,F(or)?or-yr.size:void 0),di=Gr?null:fi;return ft!=="combobox"&&di&&(Qr="",On==null||On(di),bn(!1),Wr=!1),Mn&&Pn!==Qr&&Mn(Qr,{source:Xr?"typing":"effect"}),Wr}},jn=function(br){!br||!br.trim()||Mn(br,{source:"submit"})};b.useEffect(function(){!Dr&&!En&&ft!=="combobox"&&Cr("",!1,!1)},[Dr]),b.useEffect(function(){wr&&ht&&Pr(!1),ht&&!nr.current&&wn(!1)},[ht]);var qn=S(),Er=(0,O.Z)(qn,2),er=Er[0],Sr=Er[1],$r=b.useRef(!1),Or=function(br){var Xr=er(),Gr=br.key,Wr=Gr==="Enter";if(Wr&&(ft!=="combobox"&&br.preventDefault(),Dr||bn(!0)),Sr(!!Pn),Gr==="Backspace"&&!Xr&&En&&!Pn&&pn.length){for(var Qr=(0,fe.Z)(pn),fi=null,di=Qr.length-1;di>=0;di-=1){var vi=Qr[di];if(!vi.disabled){Qr.splice(di,1),fi=vi;break}}fi&&_n(Qr,{type:"remove",values:[fi]})}for(var qr=arguments.length,ii=new Array(qr>1?qr-1:0),Ci=1;Ci<qr;Ci++)ii[Ci-1]=arguments[Ci];if(Dr&&(!Wr||!$r.current)){var yi;Wr&&($r.current=!0),(yi=dr.current)===null||yi===void 0||yi.onKeyDown.apply(yi,[br].concat(ii))}Ot==null||Ot.apply(void 0,[br].concat(ii))},ei=function(br){for(var Xr=arguments.length,Gr=new Array(Xr>1?Xr-1:0),Wr=1;Wr<Xr;Wr++)Gr[Wr-1]=arguments[Wr];if(Dr){var Qr;(Qr=dr.current)===null||Qr===void 0||Qr.onKeyUp.apply(Qr,[br].concat(Gr))}br.key==="Enter"&&($r.current=!1),xt==null||xt.apply(void 0,[br].concat(Gr))},ri=function(br){var Xr=pn.filter(function(Gr){return Gr!==br});_n(Xr,{type:"remove",values:[br]})},li=function(){$r.current=!1},jr=b.useRef(!1),ts=function(){wn(!0),ht||(ct&&!jr.current&&ct.apply(void 0,arguments),rt.includes("focus")&&bn(!0)),jr.current=!0},Mi=function(){nr.current=!0,wn(!1,function(){jr.current=!1,nr.current=!1,bn(!1)}),!ht&&(Pn&&(ft==="tags"?Mn(Pn,{source:"submit"}):ft==="multiple"&&Mn("",{source:"blur"})),pt&&pt.apply(void 0,arguments))},wi=[];b.useEffect(function(){return function(){wi.forEach(function(Ar){return clearTimeout(Ar)}),wi.splice(0,wi.length)}},[]);var ui=function(br){var Xr,Gr=br.target,Wr=(Xr=Xn.current)===null||Xr===void 0?void 0:Xr.getPopupElement();if(Wr&&Wr.contains(Gr)){var Qr=setTimeout(function(){var qr=wi.indexOf(Qr);if(qr!==-1&&wi.splice(qr,1),Fn(),!An&&!Wr.contains(document.activeElement)){var ii;(ii=Tn.current)===null||ii===void 0||ii.focus()}});wi.push(Qr)}for(var fi=arguments.length,di=new Array(fi>1?fi-1:0),vi=1;vi<fi;vi++)di[vi-1]=arguments[vi];dn==null||dn.apply(void 0,[br].concat(di))},Ii=b.useState({}),Oi=(0,O.Z)(Ii,2),Fi=Oi[1];function pi(){Fi({})}var Bi;rr&&(Bi=function(br){bn(br)}),$(function(){var Ar;return[ar.current,(Ar=Xn.current)===null||Ar===void 0?void 0:Ar.getPopupElement()]},mr,bn,!!rr);var Ai=b.useMemo(function(){return(0,me.Z)((0,me.Z)({},Re),{},{notFoundContent:Ie,open:Dr,triggerOpen:mr,id:et,showSearch:Kn,multiple:En,toggleOpen:bn})},[Re,Ie,mr,Dr,et,Kn,En,bn]),ns=!!je||Gt,Ti;ns&&(Ti=b.createElement(V,{className:m()("".concat(dt,"-arrow"),(0,oe.Z)({},"".concat(dt,"-arrow-loading"),Gt)),customizeIcon:je,customizeIconProps:{loading:Gt,searchValue:Pn,open:Dr,focused:sn,showSearch:Kn}}));var rs=function(){var br;qe==null||qe(),(br=Tn.current)===null||br===void 0||br.focus(),_n([],{type:"clear",values:pn}),Cr("",!1,!1)},Ui=te(dt,rs,pn,vn,Lt,ht,Pn,ft),mi=Ui.allowClear,Wi=Ui.clearIcon,Zi=b.createElement(tn,{ref:dr}),ki=m()(dt,Et,(0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)({},"".concat(dt,"-focused"),sn),"".concat(dt,"-multiple"),En),"".concat(dt,"-single"),!En),"".concat(dt,"-allow-clear"),vn),"".concat(dt,"-show-arrow"),ns),"".concat(dt,"-disabled"),ht),"".concat(dt,"-loading"),Gt),"".concat(dt,"-open"),Dr),"".concat(dt,"-customize-input"),Jn),"".concat(dt,"-show-search"),Kn)),si=b.createElement(Ge,{ref:Xn,disabled:ht,prefixCls:dt,visible:mr,popupElement:Zi,animation:gn,transitionName:zn,dropdownStyle:Ee,dropdownClassName:lt,direction:_t,dropdownMatchSelectWidth:Ye,dropdownRender:it,dropdownAlign:yt,placement:Tt,builtinPlacements:Jt,getPopupContainer:qt,empty:an,getTriggerDOMNode:function(br){return tr.current||br},onPopupVisibleChange:Bi,onPopupMouseEnter:pi},rr?b.cloneElement(rr,{ref:_r}):b.createElement(ln,(0,p.Z)({},Re,{domRef:tr,prefixCls:dt,inputElement:Jn,ref:Tn,id:et,prefix:Dn,showSearch:Kn,autoClearSearchValue:Gn,mode:ft,activeDescendantId:Zn,tagRender:nt,values:pn,open:Dr,onToggleOpen:bn,activeValue:Un,searchValue:Pn,onSearch:Cr,onSearchSubmit:jn,onRemove:ri,tokenWithEnter:Yn,onInputBlur:li}))),ti;return rr?ti=si:ti=b.createElement("div",(0,p.Z)({className:ki},Vn,{ref:ar,onMouseDown:ui,onKeyDown:Or,onKeyUp:ei,onFocus:ts,onBlur:Mi}),b.createElement(Ue,{visible:sn&&!Dr,values:pn}),si,Ti,mi&&Wi),b.createElement(N.Provider,{value:Ai},ti)}),De=ve,ot=function(){return null};ot.isSelectOptGroup=!0;var Je=ot,He=function(){return null};He.isSelectOption=!0;var gt=He,Rt=w(80547),st=w(2738),Kt=w(65283);function cn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var At=["disabled","title","children","style","className"];function Xt(Re){return typeof Re=="string"||typeof Re=="number"}var Fe=function(_e,Ve){var et=B(),dt=et.prefixCls,Et=et.id,tt=et.open,nt=et.multiple,_t=et.mode,Ct=et.searchValue,pn=et.toggleOpen,_n=et.notFoundContent,an=et.onPopupScroll,zt=b.useContext(xe),Ie=zt.maxCount,qe=zt.flattenOptions,ft=zt.onActiveValue,ht=zt.defaultActiveFirstOption,Gt=zt.onSelect,en=zt.menuItemSelectedIcon,Wt=zt.rawValues,rn=zt.fieldNames,hn=zt.virtual,Sn=zt.direction,Un=zt.listHeight,yn=zt.listItemHeight,Zn=zt.optionRender,Nn="".concat(dt,"-item"),Gn=(0,Rt.Z)(function(){return qe},[tt,qe],function(kt,rt){return rt[0]&&kt[1]!==rt[1]}),Mn=b.useRef(null),On=b.useMemo(function(){return nt&&F(Ie)&&(Wt==null?void 0:Wt.size)>=Ie},[nt,Ie,Wt==null?void 0:Wt.size]),Qn=function(rt){rt.preventDefault()},vn=function(rt){var ct;(ct=Mn.current)===null||ct===void 0||ct.scrollTo(typeof rt=="number"?{index:rt}:rt)},Dn=b.useCallback(function(kt){return _t==="combobox"?!1:Wt.has(kt)},[_t,(0,fe.Z)(Wt).toString(),Wt.size]),je=function(rt){for(var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,pt=Gn.length,xt=0;xt<pt;xt+=1){var Ot=(rt+xt*ct+pt)%pt,dn=Gn[Ot]||{},Rn=dn.group,En=dn.data;if(!Rn&&!(En!=null&&En.disabled)&&(Dn(En.value)||!On))return Ot}return-1},Lt=b.useState(function(){return je(0)}),tn=(0,O.Z)(Lt,2),gn=tn[0],zn=tn[1],Ee=function(rt){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;zn(rt);var pt={source:ct?"keyboard":"mouse"},xt=Gn[rt];if(!xt){ft(null,-1,pt);return}ft(xt.value,rt,pt)};(0,b.useEffect)(function(){Ee(ht!==!1?je(0):-1)},[Gn.length,Ct]);var lt=b.useCallback(function(kt){return _t==="combobox"?String(kt).toLowerCase()===Ct.toLowerCase():Wt.has(kt)},[_t,Ct,(0,fe.Z)(Wt).toString(),Wt.size]);(0,b.useEffect)(function(){var kt=setTimeout(function(){if(!nt&&tt&&Wt.size===1){var ct=Array.from(Wt)[0],pt=Gn.findIndex(function(xt){var Ot=xt.data;return Ct?String(Ot.value).startsWith(Ct):Ot.value===ct});pt!==-1&&(Ee(pt),vn(pt))}});if(tt){var rt;(rt=Mn.current)===null||rt===void 0||rt.scrollTo(void 0)}return function(){return clearTimeout(kt)}},[tt,Ct]);var Ye=function(rt){rt!==void 0&&Gt(rt,{selected:!Wt.has(rt)}),nt||pn(!1)};if(b.useImperativeHandle(Ve,function(){return{onKeyDown:function(rt){var ct=rt.which,pt=rt.ctrlKey;switch(ct){case ee.Z.N:case ee.Z.P:case ee.Z.UP:case ee.Z.DOWN:{var xt=0;if(ct===ee.Z.UP?xt=-1:ct===ee.Z.DOWN?xt=1:cn()&&pt&&(ct===ee.Z.N?xt=1:ct===ee.Z.P&&(xt=-1)),xt!==0){var Ot=je(gn+xt,xt);vn(Ot),Ee(Ot,!0)}break}case ee.Z.TAB:case ee.Z.ENTER:{var dn,Rn=Gn[gn];Rn&&!(Rn!=null&&(dn=Rn.data)!==null&&dn!==void 0&&dn.disabled)&&!On?Ye(Rn.value):Ye(void 0),tt&&rt.preventDefault();break}case ee.Z.ESC:pn(!1),tt&&rt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(rt){vn(rt)}}}),Gn.length===0)return b.createElement("div",{role:"listbox",id:"".concat(Et,"_list"),className:"".concat(Nn,"-empty"),onMouseDown:Qn},_n);var it=Object.keys(rn).map(function(kt){return rn[kt]}),yt=function(rt){return rt.label};function Tt(kt,rt){var ct=kt.group;return{role:ct?"presentation":"option",id:"".concat(Et,"_list_").concat(rt)}}var Jt=function(rt){var ct=Gn[rt];if(!ct)return null;var pt=ct.data||{},xt=pt.value,Ot=ct.group,dn=(0,ne.Z)(pt,!0),Rn=yt(ct);return ct?b.createElement("div",(0,p.Z)({"aria-label":typeof Rn=="string"&&!Ot?Rn:null},dn,{key:rt},Tt(ct,rt),{"aria-selected":lt(xt)}),xt):null},qt={role:"listbox",id:"".concat(Et,"_list")};return b.createElement(b.Fragment,null,hn&&b.createElement("div",(0,p.Z)({},qt,{style:{height:0,width:0,overflow:"hidden"}}),Jt(gn-1),Jt(gn),Jt(gn+1)),b.createElement(Kt.Z,{itemKey:"key",ref:Mn,data:Gn,height:Un,itemHeight:yn,fullHeight:!1,onMouseDown:Qn,onScroll:an,virtual:hn,direction:Sn,innerProps:hn?null:qt},function(kt,rt){var ct=kt.group,pt=kt.groupOption,xt=kt.data,Ot=kt.label,dn=kt.value,Rn=xt.key;if(ct){var En,Kn=(En=xt.title)!==null&&En!==void 0?En:Xt(Ot)?Ot.toString():void 0;return b.createElement("div",{className:m()(Nn,"".concat(Nn,"-group"),xt.className),title:Kn},Ot!==void 0?Ot:Rn)}var Vn=xt.disabled,Wn=xt.title,$n=xt.children,An=xt.style,cr=xt.className,ar=(0,d.Z)(xt,At),tr=(0,st.Z)(ar,it),Xn=Dn(dn),Tn=Vn||!Xn&&On,dr="".concat(Nn,"-option"),nr=m()(Nn,dr,cr,(0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)({},"".concat(dr,"-grouped"),pt),"".concat(dr,"-active"),gn===rt&&!Tn),"".concat(dr,"-disabled"),Tn),"".concat(dr,"-selected"),Xn)),lr=yt(kt),Cn=!en||typeof en=="function"||Xn,sn=typeof lr=="number"?lr:lr||dn,wn=Xt(sn)?sn.toString():void 0;return Wn!==void 0&&(wn=Wn),b.createElement("div",(0,p.Z)({},(0,ne.Z)(tr),hn?{}:Tt(kt,rt),{"aria-selected":lt(dn),className:nr,title:wn,onMouseMove:function(){gn===rt||Tn||Ee(rt)},onClick:function(){Tn||Ye(dn)},style:An}),b.createElement("div",{className:"".concat(dr,"-content")},typeof Zn=="function"?Zn(kt,{index:rt}):sn),b.isValidElement(en)||Xn,Cn&&b.createElement(V,{className:"".concat(Nn,"-option-state"),customizeIcon:en,customizeIconProps:{value:dn,disabled:Tn,isSelected:Xn}},Xn?"\u2713":null))}))},Ne=b.forwardRef(Fe),Me=Ne,I=function(Re,_e){var Ve=b.useRef({values:new Map,options:new Map}),et=b.useMemo(function(){var Et=Ve.current,tt=Et.values,nt=Et.options,_t=Re.map(function(_n){if(_n.label===void 0){var an;return(0,me.Z)((0,me.Z)({},_n),{},{label:(an=tt.get(_n.value))===null||an===void 0?void 0:an.label})}return _n}),Ct=new Map,pn=new Map;return _t.forEach(function(_n){Ct.set(_n.value,_n),pn.set(_n.value,_e.get(_n.value)||nt.get(_n.value))}),Ve.current.values=Ct,Ve.current.options=pn,_t},[Re,_e]),dt=b.useCallback(function(Et){return _e.get(Et)||Ve.current.options.get(Et)},[_e]);return[et,dt]};function ae(Re,_e){return re(Re).join("").toUpperCase().includes(_e)}var de=function(Re,_e,Ve,et,dt){return b.useMemo(function(){if(!Ve||et===!1)return Re;var Et=_e.options,tt=_e.label,nt=_e.value,_t=[],Ct=typeof et=="function",pn=Ve.toUpperCase(),_n=Ct?et:function(zt,Ie){return dt?ae(Ie[dt],pn):Ie[Et]?ae(Ie[tt!=="children"?tt:"label"],pn):ae(Ie[nt],pn)},an=Ct?function(zt){return Y(zt)}:function(zt){return zt};return Re.forEach(function(zt){if(zt[Et]){var Ie=_n(Ve,an(zt));if(Ie)_t.push(zt);else{var qe=zt[Et].filter(function(ft){return _n(Ve,an(ft))});qe.length&&_t.push((0,me.Z)((0,me.Z)({},zt),{},(0,oe.Z)({},Et,qe)))}return}_n(Ve,an(zt))&&_t.push(zt)}),_t},[Re,et,dt,Ve,_e])},se=w(6551),Se=w(11592),Mt=["children","value"],It=["children"];function Ft(Re){var _e=Re,Ve=_e.key,et=_e.props,dt=et.children,Et=et.value,tt=(0,d.Z)(et,Mt);return(0,me.Z)({key:Ve,value:Et!==void 0?Et:Ve,children:dt},tt)}function fn(Re){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Se.Z)(Re).map(function(Ve,et){if(!b.isValidElement(Ve)||!Ve.type)return null;var dt=Ve,Et=dt.type.isSelectOptGroup,tt=dt.key,nt=dt.props,_t=nt.children,Ct=(0,d.Z)(nt,It);return _e||!Et?Ft(Ve):(0,me.Z)((0,me.Z)({key:"__RC_SELECT_GRP__".concat(tt===null?et:tt,"__"),label:tt},Ct),{},{options:fn(_t)})}).filter(function(Ve){return Ve})}var Le=function(_e,Ve,et,dt,Et){return b.useMemo(function(){var tt=_e,nt=!_e;nt&&(tt=fn(Ve));var _t=new Map,Ct=new Map,pn=function(zt,Ie,qe){qe&&typeof qe=="string"&&zt.set(Ie[qe],Ie)},_n=function an(zt){for(var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=0;qe<zt.length;qe+=1){var ft=zt[qe];!ft[et.options]||Ie?(_t.set(ft[et.value],ft),pn(Ct,ft,et.label),pn(Ct,ft,dt),pn(Ct,ft,Et)):an(ft[et.options],!0)}};return _n(tt),{options:tt,valueOptions:_t,labelOptions:Ct}},[_e,Ve,et,dt,Et])},_=Le;function j(Re){var _e=b.useRef();_e.current=Re;var Ve=b.useCallback(function(){return _e.current.apply(_e,arguments)},[]);return Ve}function E(Re){var _e=Re.mode,Ve=Re.options,et=Re.children,dt=Re.backfill,Et=Re.allowClear,tt=Re.placeholder,nt=Re.getInputElement,_t=Re.showSearch,Ct=Re.onSearch,pn=Re.defaultOpen,_n=Re.autoFocus,an=Re.labelInValue,zt=Re.value,Ie=Re.inputValue,qe=Re.optionLabelProp,ft=isMultiple(_e),ht=_t!==void 0?_t:ft||_e==="combobox",Gt=Ve||convertChildrenToData(et);if(warning(_e!=="tags"||Gt.every(function(hn){return!hn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),_e==="tags"||_e==="combobox"){var en=Gt.some(function(hn){return hn.options?hn.options.some(function(Sn){return typeof("value"in Sn?Sn.value:Sn.key)=="number"}):typeof("value"in hn?hn.value:hn.key)=="number"});warning(!en,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(_e!=="combobox"||!qe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(_e==="combobox"||!dt,"`backfill` only works with `combobox` mode."),warning(_e==="combobox"||!nt,"`getInputElement` only work with `combobox` mode."),noteOnce(_e!=="combobox"||!nt||!Et||!tt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ct&&!ht&&_e!=="combobox"&&_e!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!pn||_n,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),zt!=null){var Wt=toArray(zt);warning(!an||Wt.every(function(hn){return _typeof(hn)==="object"&&("key"in hn||"value"in hn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!ft||Array.isArray(zt),"`value` should be array when `mode` is `multiple` or `tags`")}if(et){var rn=null;toNodeArray(et).some(function(hn){if(!React.isValidElement(hn)||!hn.type)return!1;var Sn=hn,Un=Sn.type;if(Un.isSelectOption)return!1;if(Un.isSelectOptGroup){var yn=toNodeArray(hn.props.children).every(function(Zn){return!React.isValidElement(Zn)||!hn.type||Zn.type.isSelectOption?!0:(rn=Zn.type,!1)});return!yn}return rn=Un,!0}),rn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(rn.displayName||rn.name||rn,"`.")),warning(Ie===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Pe(Re,_e){if(Re){var Ve=function et(dt){for(var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tt=0;tt<dt.length;tt++){var nt=dt[tt];if(nt[_e==null?void 0:_e.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Et&&Array.isArray(nt[_e==null?void 0:_e.options])&&et(nt[_e==null?void 0:_e.options],!0))break}};Ve(Re)}}var ye=null,we=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],ze=["inputValue"];function ut(Re){return!Re||(0,ge.Z)(Re)!=="object"}var Pt=b.forwardRef(function(Re,_e){var Ve=Re.id,et=Re.mode,dt=Re.prefixCls,Et=dt===void 0?"rc-select":dt,tt=Re.backfill,nt=Re.fieldNames,_t=Re.inputValue,Ct=Re.searchValue,pn=Re.onSearch,_n=Re.autoClearSearchValue,an=_n===void 0?!0:_n,zt=Re.onSelect,Ie=Re.onDeselect,qe=Re.dropdownMatchSelectWidth,ft=qe===void 0?!0:qe,ht=Re.filterOption,Gt=Re.filterSort,en=Re.optionFilterProp,Wt=Re.optionLabelProp,rn=Re.options,hn=Re.optionRender,Sn=Re.children,Un=Re.defaultActiveFirstOption,yn=Re.menuItemSelectedIcon,Zn=Re.virtual,Nn=Re.direction,Gn=Re.listHeight,Mn=Gn===void 0?200:Gn,On=Re.listItemHeight,Qn=On===void 0?20:On,vn=Re.labelRender,Dn=Re.value,je=Re.defaultValue,Lt=Re.labelInValue,tn=Re.onChange,gn=Re.maxCount,zn=(0,d.Z)(Re,we),Ee=(0,se.ZP)(Ve),lt=at(et),Ye=!!(!rn&&Sn),it=b.useMemo(function(){return ht===void 0&&et==="combobox"?!1:ht},[ht,et]),yt=b.useMemo(function(){return pe(nt,Ye)},[JSON.stringify(nt),Ye]),Tt=(0,le.Z)("",{value:Ct!==void 0?Ct:_t,postState:function(Yn){return Yn||""}}),Jt=(0,O.Z)(Tt,2),qt=Jt[0],kt=Jt[1],rt=_(rn,Sn,yt,en,Wt),ct=rt.valueOptions,pt=rt.labelOptions,xt=rt.options,Ot=b.useCallback(function(bn){var Yn=re(bn);return Yn.map(function(ir){var or,yr,Cr,jn,qn;if(ut(ir))or=ir;else{var Er;Cr=ir.key,yr=ir.label,or=(Er=ir.value)!==null&&Er!==void 0?Er:Cr}var er=ct.get(or);if(er){var Sr;if(yr===void 0&&(yr=er==null?void 0:er[Wt||yt.label]),Cr===void 0&&(Cr=(Sr=er==null?void 0:er.key)!==null&&Sr!==void 0?Sr:or),jn=er==null?void 0:er.disabled,qn=er==null?void 0:er.title,0)var $r}return{label:yr,value:or,key:Cr,disabled:jn,title:qn}})},[yt,Wt,ct]),dn=(0,le.Z)(je,{value:Dn}),Rn=(0,O.Z)(dn,2),En=Rn[0],Kn=Rn[1],Vn=b.useMemo(function(){var bn,Yn=lt&&En===null?[]:En,ir=Ot(Yn);return et==="combobox"&&Z((bn=ir[0])===null||bn===void 0?void 0:bn.value)?[]:ir},[En,Ot,et,lt]),Wn=I(Vn,ct),$n=(0,O.Z)(Wn,2),An=$n[0],cr=$n[1],ar=b.useMemo(function(){if(!et&&An.length===1){var bn=An[0];if(bn.value===null&&(bn.label===null||bn.label===void 0))return[]}return An.map(function(Yn){var ir;return(0,me.Z)((0,me.Z)({},Yn),{},{label:(ir=typeof vn=="function"?vn(Yn):Yn.label)!==null&&ir!==void 0?ir:Yn.value})})},[et,An,vn]),tr=b.useMemo(function(){return new Set(An.map(function(bn){return bn.value}))},[An]);b.useEffect(function(){if(et==="combobox"){var bn,Yn=(bn=An[0])===null||bn===void 0?void 0:bn.value;kt(v(Yn)?String(Yn):"")}},[An]);var Xn=j(function(bn,Yn){var ir=Yn!=null?Yn:bn;return(0,oe.Z)((0,oe.Z)({},yt.value,bn),yt.label,ir)}),Tn=b.useMemo(function(){if(et!=="tags")return xt;var bn=(0,fe.Z)(xt),Yn=function(or){return ct.has(or)};return(0,fe.Z)(An).sort(function(ir,or){return ir.value<or.value?-1:1}).forEach(function(ir){var or=ir.value;Yn(or)||bn.push(Xn(or,ir.label))}),bn},[Xn,xt,ct,An,et]),dr=de(Tn,yt,qt,it,en),nr=b.useMemo(function(){return et!=="tags"||!qt||dr.some(function(bn){return bn[en||"value"]===qt})||dr.some(function(bn){return bn[yt.value]===qt})?dr:[Xn(qt)].concat((0,fe.Z)(dr))},[Xn,en,et,dr,qt,yt]),lr=function bn(Yn){var ir=(0,fe.Z)(Yn).sort(function(or,yr){return Gt(or,yr,{searchValue:qt})});return ir.map(function(or){return Array.isArray(or.options)?(0,me.Z)((0,me.Z)({},or),{},{options:or.options.length>0?bn(or.options):or.options}):or})},Cn=b.useMemo(function(){return Gt?lr(nr):nr},[nr,Gt,qt]),sn=b.useMemo(function(){return z(Cn,{fieldNames:yt,childrenAsData:Ye})},[Cn,yt,Ye]),wn=function(Yn){var ir=Ot(Yn);if(Kn(ir),tn&&(ir.length!==An.length||ir.some(function(Cr,jn){var qn;return((qn=An[jn])===null||qn===void 0?void 0:qn.value)!==(Cr==null?void 0:Cr.value)}))){var or=Lt?ir:ir.map(function(Cr){return Cr.value}),yr=ir.map(function(Cr){return Y(cr(Cr.value))});tn(lt?or:or[0],lt?yr:yr[0])}},Fn=b.useState(null),Pn=(0,O.Z)(Fn,2),Jn=Pn[0],rr=Pn[1],_r=b.useState(0),Br=(0,O.Z)(_r,2),Nr=Br[0],Jr=Br[1],Kr=Un!==void 0?Un:et!=="combobox",Ur=b.useCallback(function(bn,Yn){var ir=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},or=ir.source,yr=or===void 0?"keyboard":or;Jr(Yn),tt&&et==="combobox"&&bn!==null&&yr==="keyboard"&&rr(String(bn))},[tt,et]),pr=function(Yn,ir,or){var yr=function(){var ri,li=cr(Yn);return[Lt?{label:li==null?void 0:li[yt.label],value:Yn,key:(ri=li==null?void 0:li.key)!==null&&ri!==void 0?ri:Yn}:Yn,Y(li)]};if(ir&&zt){var Cr=yr(),jn=(0,O.Z)(Cr,2),qn=jn[0],Er=jn[1];zt(qn,Er)}else if(!ir&&Ie&&or!=="clear"){var er=yr(),Sr=(0,O.Z)(er,2),$r=Sr[0],Or=Sr[1];Ie($r,Or)}},wr=j(function(bn,Yn){var ir,or=lt?Yn.selected:!0;or?ir=lt?[].concat((0,fe.Z)(An),[bn]):[bn]:ir=An.filter(function(yr){return yr.value!==bn}),wn(ir),pr(bn,or),et==="combobox"?rr(""):(!at||an)&&(kt(""),rr(""))}),Pr=function(Yn,ir){wn(Yn);var or=ir.type,yr=ir.values;(or==="remove"||or==="clear")&&yr.forEach(function(Cr){pr(Cr.value,!1,or)})},Dr=function(Yn,ir){if(kt(Yn),rr(null),ir.source==="submit"){var or=(Yn||"").trim();if(or){var yr=Array.from(new Set([].concat((0,fe.Z)(tr),[or])));wn(yr),pr(or,!0),kt("")}return}ir.source!=="blur"&&(et==="combobox"&&wn(Yn),pn==null||pn(Yn))},gr=function(Yn){var ir=Yn;et!=="tags"&&(ir=Yn.map(function(yr){var Cr=pt.get(yr);return Cr==null?void 0:Cr.value}).filter(function(yr){return yr!==void 0}));var or=Array.from(new Set([].concat((0,fe.Z)(tr),(0,fe.Z)(ir))));wn(or),or.forEach(function(yr){pr(yr,!0)})},mr=b.useMemo(function(){var bn=Zn!==!1&&ft!==!1;return(0,me.Z)((0,me.Z)({},rt),{},{flattenOptions:sn,onActiveValue:Ur,defaultActiveFirstOption:Kr,onSelect:wr,menuItemSelectedIcon:yn,rawValues:tr,fieldNames:yt,virtual:bn,direction:Nn,listHeight:Mn,listItemHeight:Qn,childrenAsData:Ye,maxCount:gn,optionRender:hn})},[gn,rt,sn,Ur,Kr,wr,yn,tr,yt,Zn,ft,Nn,Mn,Qn,Ye,hn]);return b.createElement(xe.Provider,{value:mr},b.createElement(De,(0,p.Z)({},zn,{id:Ee,prefixCls:Et,ref:_e,omitDomProps:ze,mode:et,displayValues:ar,onDisplayValuesChange:Pr,direction:Nn,searchValue:qt,onSearch:Dr,autoClearSearchValue:an,onSearchSplit:gr,dropdownMatchSelectWidth:ft,OptionList:Me,emptyOptions:!sn.length,activeValue:Jn,activeDescendantId:"".concat(Ee,"_list_").concat(Nr)})))}),Vt=Pt;Vt.Option=gt,Vt.OptGroup=Je;var Ut=Vt,mn=Ut},86351:function(Ln,jt,w){"use strict";w.d(jt,{R:function(){return fe},w:function(){return p}});var p={},fe="rc-table-internal-hook"},97347:function(Ln,jt,w){"use strict";w.d(jt,{L:function(){return U},Z:function(){return R}});var p=w(52456),fe=w(18082),oe=w(92393),me=w(10928),O=w(20049),d=w(5883),ge=w(11592),le=w(48736),o=w(59301),b=w(86351),T=w(54451);function m(S){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof $=="number"?$:$.endsWith("%")?S*parseFloat($)/100:null}function y(S,$,ee){return o.useMemo(function(){if($&&$>0){var W=0,ne=0;S.forEach(function(re){var J=m($,re.width);J?W+=J:ne+=1});var ue=Math.max($,ee),he=Math.max(ue-W,ne),Oe=ne,G=he/ne,P=0,Q=S.map(function(re){var J=(0,O.Z)({},re),g=m($,J.width);if(g)J.width=g;else{var v=Math.floor(G);J.width=Oe===1?he:v,he-=v,Oe-=1}return P+=J.width,J});if(P<ue){var q=ue/P;he=ue,Q.forEach(function(re,J){var g=Math.floor(re.width*q);re.width=J===Q.length-1?he:g,he-=g})}return[Q,Math.max(P,ue)]}return[S,$]},[S,$,ee])}var x=["children"],L=["fixed"];function U(S){return(0,ge.Z)(S).filter(function($){return o.isValidElement($)}).map(function($){var ee=$.key,W=$.props,ne=W.children,ue=(0,d.Z)(W,x),he=(0,O.Z)({key:ee},ue);return ne&&(he.children=U(ne)),he})}function V(S){return S.filter(function($){return $&&(0,me.Z)($)==="object"&&!$.hidden}).map(function($){var ee=$.children;return ee&&ee.length>0?(0,O.Z)((0,O.Z)({},$),{},{children:V(ee)}):$})}function te(S){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return S.filter(function(ee){return ee&&(0,me.Z)(ee)==="object"}).reduce(function(ee,W,ne){var ue=W.fixed,he=ue===!0?"left":ue,Oe="".concat($,"-").concat(ne),G=W.children;return G&&G.length>0?[].concat((0,oe.Z)(ee),(0,oe.Z)(te(G,Oe).map(function(P){return(0,O.Z)({fixed:he},P)}))):[].concat((0,oe.Z)(ee),[(0,O.Z)((0,O.Z)({key:Oe},W),{},{fixed:he})])},[])}function N(S){return S.map(function($){var ee=$.fixed,W=(0,d.Z)($,L),ne=ee;return ee==="left"?ne="right":ee==="right"&&(ne="left"),(0,O.Z)({fixed:ne},W)})}function B(S,$){var ee=S.prefixCls,W=S.columns,ne=S.children,ue=S.expandable,he=S.expandedKeys,Oe=S.columnTitle,G=S.getRowKey,P=S.onTriggerExpand,Q=S.expandIcon,q=S.rowExpandable,re=S.expandIconColumnIndex,J=S.direction,g=S.expandRowByClick,v=S.columnWidth,Z=S.fixed,ce=S.scrollWidth,Xe=S.clientWidth,We=o.useMemo(function(){var ln=W||U(ne)||[];return V(ln.slice())},[W,ne]),Dt=o.useMemo(function(){if(ue){var ln=We.slice();if(!ln.includes(b.w)){var mt=re||0;mt>=0&&(mt||Z==="left"||!Z)&&ln.splice(mt,0,b.w),Z==="right"&&ln.splice(We.length,0,b.w)}var Be=ln.indexOf(b.w);ln=ln.filter(function(Ge,K){return Ge!==b.w||K===Be});var be=We[Be],M;Z?M=Z:M=be?be.fixed:null;var Ce=(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},T.v,{className:"".concat(ee,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Oe),"fixed",M),"className","".concat(ee,"-row-expand-icon-cell")),"width",v),"render",function(K,k,F){var pe=G(k,F),z=he.has(pe),Y=q?q(k):!0,ie=Q({prefixCls:ee,expanded:z,expandable:Y,record:k,onExpand:P});return g?o.createElement("span",{onClick:function(xe){return xe.stopPropagation()}},ie):ie});return ln.map(function(Ge){return Ge===b.w?Ce:Ge})}return We.filter(function(Ge){return Ge!==b.w})},[ue,We,G,he,Q,J]),vt=o.useMemo(function(){var ln=Dt;return $&&(ln=$(ln)),ln.length||(ln=[{render:function(){return null}}]),ln},[$,Dt,J]),$t=o.useMemo(function(){return J==="rtl"?N(te(vt)):te(vt)},[vt,J,ce]),Ht=o.useMemo(function(){for(var ln=-1,mt=$t.length-1;mt>=0;mt-=1){var Be=$t[mt].fixed;if(Be==="left"||Be===!0){ln=mt;break}}if(ln>=0)for(var be=0;be<=ln;be+=1){var M=$t[be].fixed;if(M!=="left"&&M!==!0)return!0}var Ce=$t.findIndex(function(k){var F=k.fixed;return F==="right"});if(Ce>=0)for(var Ge=Ce;Ge<$t.length;Ge+=1){var K=$t[Ge].fixed;if(K!=="right")return!0}return!1},[$t]),ke=y($t,ce,Xe),Bt=(0,p.Z)(ke,2),xn=Bt[0],Yt=Bt[1];return[vt,xn,Yt,Ht]}var R=B},4030:function(Ln,jt,w){"use strict";w.d(jt,{w2:function(){return p.w},vP:function(){return Xt.v},RQ:function(){return p.R},ER:function(){return pe},Q$:function(){return ht},TN:function(){return tn}});var p=w(86351),fe=w(52456),oe=w(6089),me=w(34280),O=w(13697),d=w(59301),ge=w(4676);function le(Ee){var lt=d.createContext(void 0),Ye=function(yt){var Tt=yt.value,Jt=yt.children,qt=d.useRef(Tt);qt.current=Tt;var kt=d.useState(function(){return{getValue:function(){return qt.current},listeners:new Set}}),rt=(0,fe.Z)(kt,1),ct=rt[0];return(0,me.Z)(function(){(0,ge.unstable_batchedUpdates)(function(){ct.listeners.forEach(function(pt){pt(Tt)})})},[Tt]),d.createElement(lt.Provider,{value:ct},Jt)};return{Context:lt,Provider:Ye,defaultValue:Ee}}function o(Ee,lt){var Ye=(0,oe.Z)(typeof lt=="function"?lt:function(pt){if(lt===void 0)return pt;if(!Array.isArray(lt))return pt[lt];var xt={};return lt.forEach(function(Ot){xt[Ot]=pt[Ot]}),xt}),it=d.useContext(Ee==null?void 0:Ee.Context),yt=it||{},Tt=yt.listeners,Jt=yt.getValue,qt=d.useRef();qt.current=Ye(it?Jt():Ee==null?void 0:Ee.defaultValue);var kt=d.useState({}),rt=(0,fe.Z)(kt,2),ct=rt[1];return(0,me.Z)(function(){if(!it)return;function pt(xt){var Ot=Ye(xt);(0,O.Z)(qt.current,Ot,!0)||ct({})}return Tt.add(pt),function(){Tt.delete(pt)}},[it]),qt.current}var b=w(5016),T=w(8654);function m(){var Ee=d.createContext(null);function lt(){return d.useContext(Ee)}function Ye(yt,Tt){var Jt=(0,T.Yr)(yt),qt=function(rt,ct){var pt=Jt?{ref:ct}:{},xt=d.useRef(0),Ot=d.useRef(rt),dn=lt();return dn!==null?d.createElement(yt,(0,b.Z)({},rt,pt)):((!Tt||Tt(Ot.current,rt))&&(xt.current+=1),Ot.current=rt,d.createElement(Ee.Provider,{value:xt.current},d.createElement(yt,(0,b.Z)({},rt,pt))))};return Jt?d.forwardRef(qt):qt}function it(yt,Tt){var Jt=(0,T.Yr)(yt),qt=function(rt,ct){var pt=Jt?{ref:ct}:{};return lt(),d.createElement(yt,(0,b.Z)({},rt,pt))};return Jt?d.memo(d.forwardRef(qt),Tt):d.memo(qt,Tt)}return{makeImmutable:Ye,responseImmutable:it,useImmutableMark:lt}}var y=m(),x=y.makeImmutable,L=y.responseImmutable,U=y.useImmutableMark,V=m(),te=V.makeImmutable,N=V.responseImmutable,B=V.useImmutableMark,R=le(),S=R;function $(Ee,lt){var Ye=React.useRef(0);Ye.current+=1;var it=React.useRef(Ee),yt=[];Object.keys(Ee||{}).map(function(Jt){var qt;(Ee==null?void 0:Ee[Jt])!==((qt=it.current)===null||qt===void 0?void 0:qt[Jt])&&yt.push(Jt)}),it.current=Ee;var Tt=React.useRef([]);return yt.length&&(Tt.current=yt),React.useDebugValue(Ye.current),React.useDebugValue(Tt.current.join(", ")),lt&&console.log("".concat(lt,":"),Ye.current,Tt.current),Ye.current}var ee=null,W=null,ne=w(10928),ue=w(20049),he=w(18082),Oe=w(92310),G=w.n(Oe),P=w(80547),Q=w(97938),q=w(48736),re=d.createContext({renderWithProps:!1}),J=re,g="RC_TABLE_KEY";function v(Ee){return Ee==null?[]:Array.isArray(Ee)?Ee:[Ee]}function Z(Ee){var lt=[],Ye={};return Ee.forEach(function(it){for(var yt=it||{},Tt=yt.key,Jt=yt.dataIndex,qt=Tt||v(Jt).join("-")||g;Ye[qt];)qt="".concat(qt,"_next");Ye[qt]=!0,lt.push(qt)}),lt}function ce(Ee){return Ee!=null}function Xe(Ee){return typeof Ee=="number"&&!Number.isNaN(Ee)}function We(Ee){return Ee&&(0,ne.Z)(Ee)==="object"&&!Array.isArray(Ee)&&!d.isValidElement(Ee)}function Dt(Ee,lt,Ye,it,yt,Tt){var Jt=d.useContext(J),qt=B(),kt=(0,P.Z)(function(){if(ce(it))return[it];var rt=lt==null||lt===""?[]:Array.isArray(lt)?lt:[lt],ct=(0,Q.Z)(Ee,rt),pt=ct,xt=void 0;if(yt){var Ot=yt(ct,Ee,Ye);We(Ot)?(pt=Ot.children,xt=Ot.props,Jt.renderWithProps=!0):pt=Ot}return[pt,xt]},[qt,Ee,it,lt,yt,Ye],function(rt,ct){if(Tt){var pt=(0,fe.Z)(rt,2),xt=pt[1],Ot=(0,fe.Z)(ct,2),dn=Ot[1];return Tt(dn,xt)}return Jt.renderWithProps?!0:!(0,O.Z)(rt,ct,!0)});return kt}function vt(Ee,lt,Ye,it){var yt=Ee+lt-1;return Ee<=it&&yt>=Ye}function $t(Ee,lt){return o(S,function(Ye){var it=vt(Ee,lt||1,Ye.hoverStartRow,Ye.hoverEndRow);return[it,Ye.onHover]})}var Ht=w(70425),ke=function(lt){var Ye=lt.ellipsis,it=lt.rowType,yt=lt.children,Tt,Jt=Ye===!0?{showTitle:!0}:Ye;return Jt&&(Jt.showTitle||it==="header")&&(typeof yt=="string"||typeof yt=="number"?Tt=yt.toString():d.isValidElement(yt)&&typeof yt.props.children=="string"&&(Tt=yt.props.children)),Tt};function Bt(Ee){var lt,Ye,it,yt,Tt,Jt,qt,kt,rt=Ee.component,ct=Ee.children,pt=Ee.ellipsis,xt=Ee.scope,Ot=Ee.prefixCls,dn=Ee.className,Rn=Ee.align,En=Ee.record,Kn=Ee.render,Vn=Ee.dataIndex,Wn=Ee.renderIndex,$n=Ee.shouldCellUpdate,An=Ee.index,cr=Ee.rowType,ar=Ee.colSpan,tr=Ee.rowSpan,Xn=Ee.fixLeft,Tn=Ee.fixRight,dr=Ee.firstFixLeft,nr=Ee.lastFixLeft,lr=Ee.firstFixRight,Cn=Ee.lastFixRight,sn=Ee.appendNode,wn=Ee.additionalProps,Fn=wn===void 0?{}:wn,Pn=Ee.isSticky,Jn="".concat(Ot,"-cell"),rr=o(S,["supportSticky","allColumnsFixedLeft","rowHoverable"]),_r=rr.supportSticky,Br=rr.allColumnsFixedLeft,Nr=rr.rowHoverable,Jr=Dt(En,Vn,Wn,ct,Kn,$n),Kr=(0,fe.Z)(Jr,2),Ur=Kr[0],pr=Kr[1],wr={},Pr=typeof Xn=="number"&&_r,Dr=typeof Tn=="number"&&_r;Pr&&(wr.position="sticky",wr.left=Xn),Dr&&(wr.position="sticky",wr.right=Tn);var gr=(lt=(Ye=(it=pr==null?void 0:pr.colSpan)!==null&&it!==void 0?it:Fn.colSpan)!==null&&Ye!==void 0?Ye:ar)!==null&<!==void 0?lt:1,mr=(yt=(Tt=(Jt=pr==null?void 0:pr.rowSpan)!==null&&Jt!==void 0?Jt:Fn.rowSpan)!==null&&Tt!==void 0?Tt:tr)!==null&&yt!==void 0?yt:1,bn=$t(An,mr),Yn=(0,fe.Z)(bn,2),ir=Yn[0],or=Yn[1],yr=(0,Ht.zX)(function($r){var Or;En&&or(An,An+mr-1),Fn==null||(Or=Fn.onMouseEnter)===null||Or===void 0||Or.call(Fn,$r)}),Cr=(0,Ht.zX)(function($r){var Or;En&&or(-1,-1),Fn==null||(Or=Fn.onMouseLeave)===null||Or===void 0||Or.call(Fn,$r)});if(gr===0||mr===0)return null;var jn=(qt=Fn.title)!==null&&qt!==void 0?qt:ke({rowType:cr,ellipsis:pt,children:Ur}),qn=G()(Jn,dn,(kt={},(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)(kt,"".concat(Jn,"-fix-left"),Pr&&_r),"".concat(Jn,"-fix-left-first"),dr&&_r),"".concat(Jn,"-fix-left-last"),nr&&_r),"".concat(Jn,"-fix-left-all"),nr&&Br&&_r),"".concat(Jn,"-fix-right"),Dr&&_r),"".concat(Jn,"-fix-right-first"),lr&&_r),"".concat(Jn,"-fix-right-last"),Cn&&_r),"".concat(Jn,"-ellipsis"),pt),"".concat(Jn,"-with-append"),sn),"".concat(Jn,"-fix-sticky"),(Pr||Dr)&&Pn&&_r),(0,he.Z)(kt,"".concat(Jn,"-row-hover"),!pr&&ir)),Fn.className,pr==null?void 0:pr.className),Er={};Rn&&(Er.textAlign=Rn);var er=(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},pr==null?void 0:pr.style),wr),Er),Fn.style),Sr=Ur;return(0,ne.Z)(Sr)==="object"&&!Array.isArray(Sr)&&!d.isValidElement(Sr)&&(Sr=null),pt&&(nr||lr)&&(Sr=d.createElement("span",{className:"".concat(Jn,"-content")},Sr)),d.createElement(rt,(0,b.Z)({},pr,Fn,{className:qn,style:er,title:jn,scope:xt,onMouseEnter:Nr?yr:void 0,onMouseLeave:Nr?Cr:void 0,colSpan:gr!==1?gr:null,rowSpan:mr!==1?mr:null}),sn,Sr)}var xn=d.memo(Bt);function Yt(Ee,lt,Ye,it,yt){var Tt=Ye[Ee]||{},Jt=Ye[lt]||{},qt,kt;Tt.fixed==="left"?qt=it.left[yt==="rtl"?lt:Ee]:Jt.fixed==="right"&&(kt=it.right[yt==="rtl"?Ee:lt]);var rt=!1,ct=!1,pt=!1,xt=!1,Ot=Ye[lt+1],dn=Ye[Ee-1],Rn=Ot&&!Ot.fixed||dn&&!dn.fixed||Ye.every(function($n){return $n.fixed==="left"});if(yt==="rtl"){if(qt!==void 0){var En=dn&&dn.fixed==="left";xt=!En&&Rn}else if(kt!==void 0){var Kn=Ot&&Ot.fixed==="right";pt=!Kn&&Rn}}else if(qt!==void 0){var Vn=Ot&&Ot.fixed==="left";rt=!Vn&&Rn}else if(kt!==void 0){var Wn=dn&&dn.fixed==="right";ct=!Wn&&Rn}return{fixLeft:qt,fixRight:kt,lastFixLeft:rt,firstFixRight:ct,lastFixRight:pt,firstFixLeft:xt,isSticky:it.isSticky}}var ln=d.createContext({}),mt=ln;function Be(Ee){var lt=Ee.className,Ye=Ee.index,it=Ee.children,yt=Ee.colSpan,Tt=yt===void 0?1:yt,Jt=Ee.rowSpan,qt=Ee.align,kt=o(S,["prefixCls","direction"]),rt=kt.prefixCls,ct=kt.direction,pt=d.useContext(mt),xt=pt.scrollColumnIndex,Ot=pt.stickyOffsets,dn=pt.flattenColumns,Rn=Ye+Tt-1,En=Rn+1===xt?Tt+1:Tt,Kn=Yt(Ye,Ye+En-1,dn,Ot,ct);return d.createElement(xn,(0,b.Z)({className:lt,index:Ye,component:"td",prefixCls:rt,record:null,dataIndex:null,align:qt,colSpan:En,rowSpan:Jt,render:function(){return it}},Kn))}var be=w(5883),M=["children"];function Ce(Ee){var lt=Ee.children,Ye=(0,be.Z)(Ee,M);return d.createElement("tr",Ye,lt)}function Ge(Ee){var lt=Ee.children;return lt}Ge.Row=Ce,Ge.Cell=Be;var K=Ge;function k(Ee){var lt=Ee.children,Ye=Ee.stickyOffsets,it=Ee.flattenColumns,yt=o(S,"prefixCls"),Tt=it.length-1,Jt=it[Tt],qt=d.useMemo(function(){return{stickyOffsets:Ye,flattenColumns:it,scrollColumnIndex:Jt!=null&&Jt.scrollbar?Tt:null}},[Jt,it,Tt,Ye]);return d.createElement(mt.Provider,{value:qt},d.createElement("tfoot",{className:"".concat(yt,"-summary")},lt))}var F=N(k),pe=K,z=w(29301),Y=w(24514),ie=w(75152),Te=w(26112);function xe(Ee,lt,Ye,it,yt,Tt,Jt){Ee.push({record:lt,indent:Ye,index:Jt});var qt=Tt(lt),kt=yt==null?void 0:yt.has(qt);if(lt&&Array.isArray(lt[it])&&kt)for(var rt=0;rt<lt[it].length;rt+=1)xe(Ee,lt[it][rt],Ye+1,it,yt,Tt,rt)}function Ue(Ee,lt,Ye,it){var yt=d.useMemo(function(){if(Ye!=null&&Ye.size){for(var Tt=[],Jt=0;Jt<(Ee==null?void 0:Ee.length);Jt+=1){var qt=Ee[Jt];xe(Tt,qt,0,lt,Ye,it,Jt)}return Tt}return Ee==null?void 0:Ee.map(function(kt,rt){return{record:kt,indent:0,index:rt}})},[Ee,lt,Ye,it]);return yt}function Ze(Ee,lt,Ye,it){var yt=o(S,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Tt=yt.flattenColumns,Jt=yt.expandableType,qt=yt.expandedKeys,kt=yt.childrenColumnName,rt=yt.onTriggerExpand,ct=yt.rowExpandable,pt=yt.onRow,xt=yt.expandRowByClick,Ot=yt.rowClassName,dn=Jt==="nest",Rn=Jt==="row"&&(!ct||ct(Ee)),En=Rn||dn,Kn=qt&&qt.has(lt),Vn=kt&&Ee&&Ee[kt],Wn=(0,Ht.zX)(rt),$n=pt==null?void 0:pt(Ee,Ye),An=$n==null?void 0:$n.onClick,cr=function(Tn){xt&&En&&rt(Ee,Tn);for(var dr=arguments.length,nr=new Array(dr>1?dr-1:0),lr=1;lr<dr;lr++)nr[lr-1]=arguments[lr];An==null||An.apply(void 0,[Tn].concat(nr))},ar;typeof Ot=="string"?ar=Ot:typeof Ot=="function"&&(ar=Ot(Ee,Ye,it));var tr=Z(Tt);return(0,ue.Z)((0,ue.Z)({},yt),{},{columnsKey:tr,nestExpandable:dn,expanded:Kn,hasNestChildren:Vn,record:Ee,onTriggerExpand:Wn,rowSupportExpand:Rn,expandable:En,rowProps:(0,ue.Z)((0,ue.Z)({},$n),{},{className:G()(ar,$n==null?void 0:$n.className),onClick:cr})})}function $e(Ee){var lt=Ee.prefixCls,Ye=Ee.children,it=Ee.component,yt=Ee.cellComponent,Tt=Ee.className,Jt=Ee.expanded,qt=Ee.colSpan,kt=Ee.isEmpty,rt=o(S,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ct=rt.scrollbarSize,pt=rt.fixHeader,xt=rt.fixColumn,Ot=rt.componentWidth,dn=rt.horizonScroll,Rn=Ye;return(kt?dn&&Ot:xt)&&(Rn=d.createElement("div",{style:{width:Ot-(pt&&!kt?ct:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(lt,"-expanded-row-fixed")},Rn)),d.createElement(it,{className:Tt,style:{display:Jt?null:"none"}},d.createElement(xn,{component:yt,prefixCls:lt,colSpan:qt},Rn))}var at=$e;function ve(Ee){var lt=Ee.prefixCls,Ye=Ee.record,it=Ee.onExpand,yt=Ee.expanded,Tt=Ee.expandable,Jt="".concat(lt,"-row-expand-icon");if(!Tt)return d.createElement("span",{className:G()(Jt,"".concat(lt,"-row-spaced"))});var qt=function(rt){it(Ye,rt),rt.stopPropagation()};return d.createElement("span",{className:G()(Jt,(0,he.Z)((0,he.Z)({},"".concat(lt,"-row-expanded"),yt),"".concat(lt,"-row-collapsed"),!yt)),onClick:qt})}function De(Ee,lt,Ye){var it=[];function yt(Tt){(Tt||[]).forEach(function(Jt,qt){it.push(lt(Jt,qt)),yt(Jt[Ye])})}return yt(Ee),it}function ot(Ee,lt,Ye,it){return typeof Ee=="string"?Ee:typeof Ee=="function"?Ee(lt,Ye,it):""}function Je(Ee,lt,Ye,it,yt){var Tt=Ee.record,Jt=Ee.prefixCls,qt=Ee.columnsKey,kt=Ee.fixedInfoList,rt=Ee.expandIconColumnIndex,ct=Ee.nestExpandable,pt=Ee.indentSize,xt=Ee.expandIcon,Ot=Ee.expanded,dn=Ee.hasNestChildren,Rn=Ee.onTriggerExpand,En=qt[Ye],Kn=kt[Ye],Vn;Ye===(rt||0)&&ct&&(Vn=d.createElement(d.Fragment,null,d.createElement("span",{style:{paddingLeft:"".concat(pt*it,"px")},className:"".concat(Jt,"-row-indent indent-level-").concat(it)}),xt({prefixCls:Jt,expanded:Ot,expandable:dn,record:Tt,onExpand:Rn})));var Wn;return lt.onCell&&(Wn=lt.onCell(Tt,yt)),{key:En,fixedInfo:Kn,appendCellNode:Vn,additionalCellProps:Wn||{}}}function He(Ee){var lt=Ee.className,Ye=Ee.style,it=Ee.record,yt=Ee.index,Tt=Ee.renderIndex,Jt=Ee.rowKey,qt=Ee.indent,kt=qt===void 0?0:qt,rt=Ee.rowComponent,ct=Ee.cellComponent,pt=Ee.scopeCellComponent,xt=Ze(it,Jt,yt,kt),Ot=xt.prefixCls,dn=xt.flattenColumns,Rn=xt.expandedRowClassName,En=xt.expandedRowRender,Kn=xt.rowProps,Vn=xt.expanded,Wn=xt.rowSupportExpand,$n=d.useRef(!1);$n.current||($n.current=Vn);var An=ot(Rn,it,yt,kt),cr=d.createElement(rt,(0,b.Z)({},Kn,{"data-row-key":Jt,className:G()(lt,"".concat(Ot,"-row"),"".concat(Ot,"-row-level-").concat(kt),Kn==null?void 0:Kn.className,(0,he.Z)({},An,kt>=1)),style:(0,ue.Z)((0,ue.Z)({},Ye),Kn==null?void 0:Kn.style)}),dn.map(function(Xn,Tn){var dr=Xn.render,nr=Xn.dataIndex,lr=Xn.className,Cn=Je(xt,Xn,Tn,kt,yt),sn=Cn.key,wn=Cn.fixedInfo,Fn=Cn.appendCellNode,Pn=Cn.additionalCellProps;return d.createElement(xn,(0,b.Z)({className:lr,ellipsis:Xn.ellipsis,align:Xn.align,scope:Xn.rowScope,component:Xn.rowScope?pt:ct,prefixCls:Ot,key:sn,record:it,index:yt,renderIndex:Tt,dataIndex:nr,render:dr,shouldCellUpdate:Xn.shouldCellUpdate},wn,{appendNode:Fn,additionalProps:Pn}))})),ar;if(Wn&&($n.current||Vn)){var tr=En(it,yt,kt+1,Vn);ar=d.createElement(at,{expanded:Vn,className:G()("".concat(Ot,"-expanded-row"),"".concat(Ot,"-expanded-row-level-").concat(kt+1),An),prefixCls:Ot,component:rt,cellComponent:ct,colSpan:dn.length,isEmpty:!1},tr)}return d.createElement(d.Fragment,null,cr,ar)}var gt=N(He);function Rt(Ee){var lt=Ee.columnKey,Ye=Ee.onColumnResize,it=d.useRef();return(0,me.Z)(function(){it.current&&Ye(lt,it.current.offsetWidth)},[]),d.createElement(z.Z,{data:lt},d.createElement("td",{ref:it,style:{padding:0,border:0,height:0}},d.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var st=w(29194);function Kt(Ee){var lt=Ee.prefixCls,Ye=Ee.columnsKey,it=Ee.onColumnResize,yt=d.useRef(null);return d.createElement("tr",{"aria-hidden":"true",className:"".concat(lt,"-measure-row"),style:{height:0,fontSize:0},ref:yt},d.createElement(z.Z.Collection,{onBatchResize:function(Jt){(0,st.Z)(yt.current)&&Jt.forEach(function(qt){var kt=qt.data,rt=qt.size;it(kt,rt.offsetWidth)})}},Ye.map(function(Tt){return d.createElement(Rt,{key:Tt,columnKey:Tt,onColumnResize:it})})))}function cn(Ee){var lt=Ee.data,Ye=Ee.measureColumnWidth,it=o(S,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),yt=it.prefixCls,Tt=it.getComponent,Jt=it.onColumnResize,qt=it.flattenColumns,kt=it.getRowKey,rt=it.expandedKeys,ct=it.childrenColumnName,pt=it.emptyNode,xt=Ue(lt,ct,rt,kt),Ot=d.useRef({renderWithProps:!1}),dn=Tt(["body","wrapper"],"tbody"),Rn=Tt(["body","row"],"tr"),En=Tt(["body","cell"],"td"),Kn=Tt(["body","cell"],"th"),Vn;lt.length?Vn=xt.map(function($n,An){var cr=$n.record,ar=$n.indent,tr=$n.index,Xn=kt(cr,An);return d.createElement(gt,{key:Xn,rowKey:Xn,record:cr,index:An,renderIndex:tr,rowComponent:Rn,cellComponent:En,scopeCellComponent:Kn,indent:ar})}):Vn=d.createElement(at,{expanded:!0,className:"".concat(yt,"-placeholder"),prefixCls:yt,component:Rn,cellComponent:En,colSpan:qt.length,isEmpty:!0},pt);var Wn=Z(qt);return d.createElement(J.Provider,{value:Ot.current},d.createElement(dn,{className:"".concat(yt,"-tbody")},Ye&&d.createElement(Kt,{prefixCls:yt,columnsKey:Wn,onColumnResize:Jt}),Vn))}var At=N(cn),Xt=w(54451),Fe=["columnType"];function Ne(Ee){for(var lt=Ee.colWidths,Ye=Ee.columns,it=Ee.columCount,yt=o(S,["tableLayout"]),Tt=yt.tableLayout,Jt=[],qt=it||Ye.length,kt=!1,rt=qt-1;rt>=0;rt-=1){var ct=lt[rt],pt=Ye&&Ye[rt],xt=void 0,Ot=void 0;if(pt&&(xt=pt[Xt.v],Tt==="auto"&&(Ot=pt.minWidth)),ct||Ot||xt||kt){var dn=xt||{},Rn=dn.columnType,En=(0,be.Z)(dn,Fe);Jt.unshift(d.createElement("col",(0,b.Z)({key:rt,style:{width:ct,minWidth:Ot}},En))),kt=!0}}return d.createElement("colgroup",null,Jt)}var Me=Ne,I=w(92393),ae=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function de(Ee,lt){return(0,d.useMemo)(function(){for(var Ye=[],it=0;it<lt;it+=1){var yt=Ee[it];if(yt!==void 0)Ye[it]=yt;else return null}return Ye},[Ee.join("_"),lt])}var se=d.forwardRef(function(Ee,lt){var Ye=Ee.className,it=Ee.noData,yt=Ee.columns,Tt=Ee.flattenColumns,Jt=Ee.colWidths,qt=Ee.columCount,kt=Ee.stickyOffsets,rt=Ee.direction,ct=Ee.fixHeader,pt=Ee.stickyTopOffset,xt=Ee.stickyBottomOffset,Ot=Ee.stickyClassName,dn=Ee.onScroll,Rn=Ee.maxContentScroll,En=Ee.children,Kn=(0,be.Z)(Ee,ae),Vn=o(S,["prefixCls","scrollbarSize","isSticky","getComponent"]),Wn=Vn.prefixCls,$n=Vn.scrollbarSize,An=Vn.isSticky,cr=Vn.getComponent,ar=cr(["header","table"],"table"),tr=An&&!ct?0:$n,Xn=d.useRef(null),Tn=d.useCallback(function(Pn){(0,T.mH)(lt,Pn),(0,T.mH)(Xn,Pn)},[]);d.useEffect(function(){var Pn;function Jn(rr){var _r=rr,Br=_r.currentTarget,Nr=_r.deltaX;Nr&&(dn({currentTarget:Br,scrollLeft:Br.scrollLeft+Nr}),rr.preventDefault())}return(Pn=Xn.current)===null||Pn===void 0||Pn.addEventListener("wheel",Jn,{passive:!1}),function(){var rr;(rr=Xn.current)===null||rr===void 0||rr.removeEventListener("wheel",Jn)}},[]);var dr=d.useMemo(function(){return Tt.every(function(Pn){return Pn.width})},[Tt]),nr=Tt[Tt.length-1],lr={fixed:nr?nr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Wn,"-cell-scrollbar")}}},Cn=(0,d.useMemo)(function(){return tr?[].concat((0,I.Z)(yt),[lr]):yt},[tr,yt]),sn=(0,d.useMemo)(function(){return tr?[].concat((0,I.Z)(Tt),[lr]):Tt},[tr,Tt]),wn=(0,d.useMemo)(function(){var Pn=kt.right,Jn=kt.left;return(0,ue.Z)((0,ue.Z)({},kt),{},{left:rt==="rtl"?[].concat((0,I.Z)(Jn.map(function(rr){return rr+tr})),[0]):Jn,right:rt==="rtl"?Pn:[].concat((0,I.Z)(Pn.map(function(rr){return rr+tr})),[0]),isSticky:An})},[tr,kt,An]),Fn=de(Jt,qt);return d.createElement("div",{style:(0,ue.Z)({overflow:"hidden"},An?{top:pt,bottom:xt}:{}),ref:Tn,className:G()(Ye,(0,he.Z)({},Ot,!!Ot))},d.createElement(ar,{style:{tableLayout:"fixed",visibility:it||Fn?null:"hidden"}},(!it||!Rn||dr)&&d.createElement(Me,{colWidths:Fn?[].concat((0,I.Z)(Fn),[tr]):[],columCount:qt+1,columns:sn}),En((0,ue.Z)((0,ue.Z)({},Kn),{},{stickyOffsets:wn,columns:Cn,flattenColumns:sn}))))}),Se=d.memo(se),Mt=function(lt){var Ye=lt.cells,it=lt.stickyOffsets,yt=lt.flattenColumns,Tt=lt.rowComponent,Jt=lt.cellComponent,qt=lt.onHeaderRow,kt=lt.index,rt=o(S,["prefixCls","direction"]),ct=rt.prefixCls,pt=rt.direction,xt;qt&&(xt=qt(Ye.map(function(dn){return dn.column}),kt));var Ot=Z(Ye.map(function(dn){return dn.column}));return d.createElement(Tt,xt,Ye.map(function(dn,Rn){var En=dn.column,Kn=Yt(dn.colStart,dn.colEnd,yt,it,pt),Vn;return En&&En.onHeaderCell&&(Vn=dn.column.onHeaderCell(En)),d.createElement(xn,(0,b.Z)({},dn,{scope:En.title?dn.colSpan>1?"colgroup":"col":null,ellipsis:En.ellipsis,align:En.align,component:Jt,prefixCls:ct,key:Ot[Rn]},Kn,{additionalProps:Vn,rowType:"header"}))}))},It=Mt;function Ft(Ee){var lt=[];function Ye(Jt,qt){var kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;lt[kt]=lt[kt]||[];var rt=qt,ct=Jt.filter(Boolean).map(function(pt){var xt={key:pt.key,className:pt.className||"",children:pt.title,column:pt,colStart:rt},Ot=1,dn=pt.children;return dn&&dn.length>0&&(Ot=Ye(dn,rt,kt+1).reduce(function(Rn,En){return Rn+En},0),xt.hasSubColumns=!0),"colSpan"in pt&&(Ot=pt.colSpan),"rowSpan"in pt&&(xt.rowSpan=pt.rowSpan),xt.colSpan=Ot,xt.colEnd=xt.colStart+Ot-1,lt[kt].push(xt),rt+=Ot,Ot});return ct}Ye(Ee,0);for(var it=lt.length,yt=function(qt){lt[qt].forEach(function(kt){!("rowSpan"in kt)&&!kt.hasSubColumns&&(kt.rowSpan=it-qt)})},Tt=0;Tt<it;Tt+=1)yt(Tt);return lt}var fn=function(lt){var Ye=lt.stickyOffsets,it=lt.columns,yt=lt.flattenColumns,Tt=lt.onHeaderRow,Jt=o(S,["prefixCls","getComponent"]),qt=Jt.prefixCls,kt=Jt.getComponent,rt=d.useMemo(function(){return Ft(it)},[it]),ct=kt(["header","wrapper"],"thead"),pt=kt(["header","row"],"tr"),xt=kt(["header","cell"],"th");return d.createElement(ct,{className:"".concat(qt,"-thead")},rt.map(function(Ot,dn){var Rn=d.createElement(It,{key:dn,flattenColumns:yt,cells:Ot,stickyOffsets:Ye,rowComponent:pt,cellComponent:xt,onHeaderRow:Tt,index:dn});return Rn}))},Le=N(fn),_=w(97347);function j(Ee,lt,Ye){var it=(0,Xt.g)(Ee),yt=it.expandIcon,Tt=it.expandedRowKeys,Jt=it.defaultExpandedRowKeys,qt=it.defaultExpandAllRows,kt=it.expandedRowRender,rt=it.onExpand,ct=it.onExpandedRowsChange,pt=it.childrenColumnName,xt=yt||ve,Ot=pt||"children",dn=d.useMemo(function(){return kt?"row":Ee.expandable&&Ee.internalHooks===p.R&&Ee.expandable.__PARENT_RENDER_ICON__||lt.some(function(An){return An&&(0,ne.Z)(An)==="object"&&An[Ot]})?"nest":!1},[!!kt,lt]),Rn=d.useState(function(){return Jt||(qt?De(lt,Ye,Ot):[])}),En=(0,fe.Z)(Rn,2),Kn=En[0],Vn=En[1],Wn=d.useMemo(function(){return new Set(Tt||Kn||[])},[Tt,Kn]),$n=d.useCallback(function(An){var cr=Ye(An,lt.indexOf(An)),ar,tr=Wn.has(cr);tr?(Wn.delete(cr),ar=(0,I.Z)(Wn)):ar=[].concat((0,I.Z)(Wn),[cr]),Vn(ar),rt&&rt(!tr,An),ct&&ct(ar)},[Ye,Wn,lt,rt,ct]);return[it,dn,Wn,xt,Ot,$n]}function E(Ee,lt,Ye){var it=Ee.map(function(yt,Tt){return Yt(Tt,Tt,Ee,lt,Ye)});return(0,P.Z)(function(){return it},[it],function(yt,Tt){return!(0,O.Z)(yt,Tt)})}function Pe(Ee){var lt=(0,d.useRef)(Ee),Ye=(0,d.useState)({}),it=(0,fe.Z)(Ye,2),yt=it[1],Tt=(0,d.useRef)(null),Jt=(0,d.useRef)([]);function qt(kt){Jt.current.push(kt);var rt=Promise.resolve();Tt.current=rt,rt.then(function(){if(Tt.current===rt){var ct=Jt.current,pt=lt.current;Jt.current=[],ct.forEach(function(xt){lt.current=xt(lt.current)}),Tt.current=null,pt!==lt.current&&yt({})}})}return(0,d.useEffect)(function(){return function(){Tt.current=null}},[]),[lt.current,qt]}function ye(Ee){var lt=(0,d.useRef)(Ee||null),Ye=(0,d.useRef)();function it(){window.clearTimeout(Ye.current)}function yt(Jt){lt.current=Jt,it(),Ye.current=window.setTimeout(function(){lt.current=null,Ye.current=void 0},100)}function Tt(){return lt.current}return(0,d.useEffect)(function(){return it},[]),[yt,Tt]}function we(){var Ee=d.useState(-1),lt=(0,fe.Z)(Ee,2),Ye=lt[0],it=lt[1],yt=d.useState(-1),Tt=(0,fe.Z)(yt,2),Jt=Tt[0],qt=Tt[1],kt=d.useCallback(function(rt,ct){it(rt),qt(ct)},[]);return[Ye,Jt,kt]}var ze=w(47273),ut=(0,ze.Z)()?window:null;function Pt(Ee,lt){var Ye=(0,ne.Z)(Ee)==="object"?Ee:{},it=Ye.offsetHeader,yt=it===void 0?0:it,Tt=Ye.offsetSummary,Jt=Tt===void 0?0:Tt,qt=Ye.offsetScroll,kt=qt===void 0?0:qt,rt=Ye.getContainer,ct=rt===void 0?function(){return ut}:rt,pt=ct()||ut,xt=!!Ee;return d.useMemo(function(){return{isSticky:xt,stickyClassName:xt?"".concat(lt,"-sticky-holder"):"",offsetHeader:yt,offsetSummary:Jt,offsetScroll:kt,container:pt}},[xt,kt,yt,Jt,lt,pt])}function Vt(Ee,lt,Ye){var it=(0,d.useMemo)(function(){var yt=lt.length,Tt=function(rt,ct,pt){for(var xt=[],Ot=0,dn=rt;dn!==ct;dn+=pt)xt.push(Ot),lt[dn].fixed&&(Ot+=Ee[dn]||0);return xt},Jt=Tt(0,yt,1),qt=Tt(yt-1,-1,-1).reverse();return Ye==="rtl"?{left:qt,right:Jt}:{left:Jt,right:qt}},[Ee,lt,Ye]);return it}var Ut=Vt;function mn(Ee){var lt=Ee.className,Ye=Ee.children;return d.createElement("div",{className:lt},Ye)}var Re=mn,_e=w(8224),Ve=w(16089),et=w(76846);function dt(Ee){var lt=(0,et.bn)(Ee),Ye=lt.getBoundingClientRect(),it=document.documentElement;return{left:Ye.left+(window.pageXOffset||it.scrollLeft)-(it.clientLeft||document.body.clientLeft||0),top:Ye.top+(window.pageYOffset||it.scrollTop)-(it.clientTop||document.body.clientTop||0)}}var Et=function(lt,Ye){var it,yt,Tt=lt.scrollBodyRef,Jt=lt.onScroll,qt=lt.offsetScroll,kt=lt.container,rt=lt.direction,ct=o(S,"prefixCls"),pt=((it=Tt.current)===null||it===void 0?void 0:it.scrollWidth)||0,xt=((yt=Tt.current)===null||yt===void 0?void 0:yt.clientWidth)||0,Ot=pt&&xt*(xt/pt),dn=d.useRef(),Rn=Pe({scrollLeft:0,isHiddenScrollBar:!0}),En=(0,fe.Z)(Rn,2),Kn=En[0],Vn=En[1],Wn=d.useRef({delta:0,x:0}),$n=d.useState(!1),An=(0,fe.Z)($n,2),cr=An[0],ar=An[1],tr=d.useRef(null);d.useEffect(function(){return function(){Ve.Z.cancel(tr.current)}},[]);var Xn=function(){ar(!1)},Tn=function(sn){sn.persist(),Wn.current.delta=sn.pageX-Kn.scrollLeft,Wn.current.x=0,ar(!0),sn.preventDefault()},dr=function(sn){var wn,Fn=sn||((wn=window)===null||wn===void 0?void 0:wn.event),Pn=Fn.buttons;if(!cr||Pn===0){cr&&ar(!1);return}var Jn=Wn.current.x+sn.pageX-Wn.current.x-Wn.current.delta,rr=rt==="rtl";Jn=Math.max(rr?Ot-xt:0,Math.min(rr?0:xt-Ot,Jn));var _r=!rr||Math.abs(Jn)+Math.abs(Ot)<xt;_r&&(Jt({scrollLeft:Jn/xt*(pt+2)}),Wn.current.x=sn.pageX)},nr=function(){Ve.Z.cancel(tr.current),tr.current=(0,Ve.Z)(function(){if(Tt.current){var sn=dt(Tt.current).top,wn=sn+Tt.current.offsetHeight,Fn=kt===window?document.documentElement.scrollTop+window.innerHeight:dt(kt).top+kt.clientHeight;wn-(0,ie.Z)()<=Fn||sn>=Fn-qt?Vn(function(Pn){return(0,ue.Z)((0,ue.Z)({},Pn),{},{isHiddenScrollBar:!0})}):Vn(function(Pn){return(0,ue.Z)((0,ue.Z)({},Pn),{},{isHiddenScrollBar:!1})})}})},lr=function(sn){Vn(function(wn){return(0,ue.Z)((0,ue.Z)({},wn),{},{scrollLeft:sn/pt*xt||0})})};return d.useImperativeHandle(Ye,function(){return{setScrollLeft:lr,checkScrollBarVisible:nr}}),d.useEffect(function(){var Cn=(0,_e.Z)(document.body,"mouseup",Xn,!1),sn=(0,_e.Z)(document.body,"mousemove",dr,!1);return nr(),function(){Cn.remove(),sn.remove()}},[Ot,cr]),d.useEffect(function(){if(Tt.current){for(var Cn=[],sn=(0,et.bn)(Tt.current);sn;)Cn.push(sn),sn=sn.parentElement;return Cn.forEach(function(wn){return wn.addEventListener("scroll",nr,!1)}),window.addEventListener("resize",nr,!1),window.addEventListener("scroll",nr,!1),kt.addEventListener("scroll",nr,!1),function(){Cn.forEach(function(wn){return wn.removeEventListener("scroll",nr)}),window.removeEventListener("resize",nr),window.removeEventListener("scroll",nr),kt.removeEventListener("scroll",nr)}}},[kt]),d.useEffect(function(){Kn.isHiddenScrollBar||Vn(function(Cn){var sn=Tt.current;return sn?(0,ue.Z)((0,ue.Z)({},Cn),{},{scrollLeft:sn.scrollLeft/sn.scrollWidth*sn.clientWidth}):Cn})},[Kn.isHiddenScrollBar]),pt<=xt||!Ot||Kn.isHiddenScrollBar?null:d.createElement("div",{style:{height:(0,ie.Z)(),width:xt,bottom:qt},className:"".concat(ct,"-sticky-scroll")},d.createElement("div",{onMouseDown:Tn,ref:dn,className:G()("".concat(ct,"-sticky-scroll-bar"),(0,he.Z)({},"".concat(ct,"-sticky-scroll-bar-active"),cr)),style:{width:"".concat(Ot,"px"),transform:"translate3d(".concat(Kn.scrollLeft,"px, 0, 0)")}}))},tt=d.forwardRef(Et);function nt(Ee){return null}var _t=nt;function Ct(Ee){return null}var pn=Ct,_n="rc-table",an=[],zt={};function Ie(){return"No Data"}function qe(Ee,lt){var Ye=(0,ue.Z)({rowKey:"key",prefixCls:_n,emptyText:Ie},Ee),it=Ye.prefixCls,yt=Ye.className,Tt=Ye.rowClassName,Jt=Ye.style,qt=Ye.data,kt=Ye.rowKey,rt=Ye.scroll,ct=Ye.tableLayout,pt=Ye.direction,xt=Ye.title,Ot=Ye.footer,dn=Ye.summary,Rn=Ye.caption,En=Ye.id,Kn=Ye.showHeader,Vn=Ye.components,Wn=Ye.emptyText,$n=Ye.onRow,An=Ye.onHeaderRow,cr=Ye.onScroll,ar=Ye.internalHooks,tr=Ye.transformColumns,Xn=Ye.internalRefs,Tn=Ye.tailor,dr=Ye.getContainerWidth,nr=Ye.sticky,lr=Ye.rowHoverable,Cn=lr===void 0?!0:lr,sn=qt||an,wn=!!sn.length,Fn=ar===p.R,Pn=d.useCallback(function(Rr,Lr){return(0,Q.Z)(Vn,Rr)||Lr},[Vn]),Jn=d.useMemo(function(){return typeof kt=="function"?kt:function(Rr){var Lr=Rr&&Rr[kt];return Lr}},[kt]),rr=Pn(["body"]),_r=we(),Br=(0,fe.Z)(_r,3),Nr=Br[0],Jr=Br[1],Kr=Br[2],Ur=j(Ye,sn,Jn),pr=(0,fe.Z)(Ur,6),wr=pr[0],Pr=pr[1],Dr=pr[2],gr=pr[3],mr=pr[4],bn=pr[5],Yn=rt==null?void 0:rt.x,ir=d.useState(0),or=(0,fe.Z)(ir,2),yr=or[0],Cr=or[1],jn=(0,_.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},Ye),wr),{},{expandable:!!wr.expandedRowRender,columnTitle:wr.columnTitle,expandedKeys:Dr,getRowKey:Jn,onTriggerExpand:bn,expandIcon:gr,expandIconColumnIndex:wr.expandIconColumnIndex,direction:pt,scrollWidth:Fn&&Tn&&typeof Yn=="number"?Yn:null,clientWidth:yr}),Fn?tr:null),qn=(0,fe.Z)(jn,4),Er=qn[0],er=qn[1],Sr=qn[2],$r=qn[3],Or=Sr!=null?Sr:Yn,ei=d.useMemo(function(){return{columns:Er,flattenColumns:er}},[Er,er]),ri=d.useRef(),li=d.useRef(),jr=d.useRef(),ts=d.useRef();d.useImperativeHandle(lt,function(){return{nativeElement:ri.current,scrollTo:function(Lr){var ai;if(jr.current instanceof HTMLElement){var Ei=Lr.index,oi=Lr.top,Xi=Lr.key;if(Xe(oi)){var Qi;(Qi=jr.current)===null||Qi===void 0||Qi.scrollTo({top:oi})}else{var Ji,gs=Xi!=null?Xi:Jn(sn[Ei]);(Ji=jr.current.querySelector('[data-row-key="'.concat(gs,'"]')))===null||Ji===void 0||Ji.scrollIntoView()}}else(ai=jr.current)!==null&&ai!==void 0&&ai.scrollTo&&jr.current.scrollTo(Lr)}}});var Mi=d.useRef(),wi=d.useState(!1),ui=(0,fe.Z)(wi,2),Ii=ui[0],Oi=ui[1],Fi=d.useState(!1),pi=(0,fe.Z)(Fi,2),Bi=pi[0],Ai=pi[1],ns=d.useState(new Map),Ti=(0,fe.Z)(ns,2),rs=Ti[0],Ui=Ti[1],mi=Z(er),Wi=mi.map(function(Rr){return rs.get(Rr)}),Zi=d.useMemo(function(){return Wi},[Wi.join("_")]),ki=Ut(Zi,er,pt),si=rt&&ce(rt.y),ti=rt&&ce(Or)||!!wr.fixed,Ar=ti&&er.some(function(Rr){var Lr=Rr.fixed;return Lr}),br=d.useRef(),Xr=Pt(nr,it),Gr=Xr.isSticky,Wr=Xr.offsetHeader,Qr=Xr.offsetSummary,fi=Xr.offsetScroll,di=Xr.stickyClassName,vi=Xr.container,qr=d.useMemo(function(){return dn==null?void 0:dn(sn)},[dn,sn]),ii=(si||Gr)&&d.isValidElement(qr)&&qr.type===K&&qr.props.fixed,Ci,yi,is;si&&(yi={overflowY:wn?"scroll":"auto",maxHeight:rt.y}),ti&&(Ci={overflowX:"auto"},si||(yi={overflowY:"hidden"}),is={width:Or===!0?"auto":Or,minWidth:"100%"});var bs=d.useCallback(function(Rr,Lr){Ui(function(ai){if(ai.get(Rr)!==Lr){var Ei=new Map(ai);return Ei.set(Rr,Lr),Ei}return ai})},[]),Vr=ye(null),Mr=(0,fe.Z)(Vr,2),Hr=Mr[0],on=Mr[1];function ni(Rr,Lr){Lr&&(typeof Lr=="function"?Lr(Rr):Lr.scrollLeft!==Rr&&(Lr.scrollLeft=Rr,Lr.scrollLeft!==Rr&&setTimeout(function(){Lr.scrollLeft=Rr},0)))}var _i=(0,oe.Z)(function(Rr){var Lr=Rr.currentTarget,ai=Rr.scrollLeft,Ei=pt==="rtl",oi=typeof ai=="number"?ai:Lr.scrollLeft,Xi=Lr||zt;if(!on()||on()===Xi){var Qi;Hr(Xi),ni(oi,li.current),ni(oi,jr.current),ni(oi,Mi.current),ni(oi,(Qi=br.current)===null||Qi===void 0?void 0:Qi.setScrollLeft)}var Ji=Lr||li.current;if(Ji){var gs=Fn&&Tn&&typeof Or=="number"?Or:Ji.scrollWidth,vs=Ji.clientWidth;if(gs===vs){Oi(!1),Ai(!1);return}Ei?(Oi(-oi<gs-vs),Ai(-oi>0)):(Oi(oi>0),Ai(oi<gs-vs))}}),ss=(0,oe.Z)(function(Rr){_i(Rr),cr==null||cr(Rr)}),xs=function(){if(ti&&jr.current){var Lr;_i({currentTarget:(0,et.bn)(jr.current),scrollLeft:(Lr=jr.current)===null||Lr===void 0?void 0:Lr.scrollLeft})}else Oi(!1),Ai(!1)},as=function(Lr){var ai,Ei=Lr.width;(ai=br.current)===null||ai===void 0||ai.checkScrollBarVisible();var oi=ri.current?ri.current.offsetWidth:Ei;Fn&&dr&&ri.current&&(oi=dr(ri.current,oi)||oi),oi!==yr&&(xs(),Cr(oi))},os=d.useRef(!1);d.useEffect(function(){os.current&&xs()},[ti,qt,Er.length]),d.useEffect(function(){os.current=!0},[]);var Hi=d.useState(0),ls=(0,fe.Z)(Hi,2),Ki=ls[0],us=ls[1],cs=d.useState(!0),Vs=(0,fe.Z)(cs,2),Ys=Vs[0],pa=Vs[1];(0,me.Z)(function(){(!Tn||!Fn)&&(jr.current instanceof Element?us((0,ie.o)(jr.current).width):us((0,ie.o)(ts.current).width)),pa((0,Y.G)("position","sticky"))},[]),d.useEffect(function(){Fn&&Xn&&(Xn.body.current=jr.current)});var ma=d.useCallback(function(Rr){return d.createElement(d.Fragment,null,d.createElement(Le,Rr),ii==="top"&&d.createElement(F,Rr,qr))},[ii,qr]),Xs=d.useCallback(function(Rr){return d.createElement(F,Rr,qr)},[qr]),Ss=Pn(["table"],"table"),Vi=d.useMemo(function(){return ct||(Ar?Or==="max-content"?"auto":"fixed":si||Gr||er.some(function(Rr){var Lr=Rr.ellipsis;return Lr})?"fixed":"auto")},[si,Ar,er,ct,Gr]),Yi,Ns={colWidths:Zi,columCount:er.length,stickyOffsets:ki,onHeaderRow:An,fixHeader:si,scroll:rt},Ms=d.useMemo(function(){return wn?null:typeof Wn=="function"?Wn():Wn},[wn,Wn]),Os=d.createElement(At,{data:sn,measureColumnWidth:si||ti||Gr}),ws=d.createElement(Me,{colWidths:er.map(function(Rr){var Lr=Rr.width;return Lr}),columns:er}),Qs=Rn!=null?d.createElement("caption",{className:"".concat(it,"-caption")},Rn):void 0,As=(0,Te.Z)(Ye,{data:!0}),Js=(0,Te.Z)(Ye,{aria:!0});if(si||Gr){var Fs;typeof rr=="function"?(Fs=rr(sn,{scrollbarSize:Ki,ref:jr,onScroll:_i}),Ns.colWidths=er.map(function(Rr,Lr){var ai=Rr.width,Ei=Lr===er.length-1?ai-Ki:ai;return typeof Ei=="number"&&!Number.isNaN(Ei)?Ei:0})):Fs=d.createElement("div",{style:(0,ue.Z)((0,ue.Z)({},Ci),yi),onScroll:ss,ref:jr,className:G()("".concat(it,"-body"))},d.createElement(Ss,(0,b.Z)({style:(0,ue.Z)((0,ue.Z)({},is),{},{tableLayout:Vi})},Js),Qs,ws,Os,!ii&&qr&&d.createElement(F,{stickyOffsets:ki,flattenColumns:er},qr)));var Bs=(0,ue.Z)((0,ue.Z)((0,ue.Z)({noData:!sn.length,maxContentScroll:ti&&Or==="max-content"},Ns),ei),{},{direction:pt,stickyClassName:di,onScroll:_i});Yi=d.createElement(d.Fragment,null,Kn!==!1&&d.createElement(Se,(0,b.Z)({},Bs,{stickyTopOffset:Wr,className:"".concat(it,"-header"),ref:li}),ma),Fs,ii&&ii!=="top"&&d.createElement(Se,(0,b.Z)({},Bs,{stickyBottomOffset:Qr,className:"".concat(it,"-summary"),ref:Mi}),Xs),Gr&&jr.current&&jr.current instanceof Element&&d.createElement(tt,{ref:br,offsetScroll:fi,scrollBodyRef:jr,onScroll:_i,container:vi,direction:pt}))}else Yi=d.createElement("div",{style:(0,ue.Z)((0,ue.Z)({},Ci),yi),className:G()("".concat(it,"-content")),onScroll:_i,ref:jr},d.createElement(Ss,(0,b.Z)({style:(0,ue.Z)((0,ue.Z)({},is),{},{tableLayout:Vi})},Js),Qs,ws,Kn!==!1&&d.createElement(Le,(0,b.Z)({},Ns,ei)),Os,qr&&d.createElement(F,{stickyOffsets:ki,flattenColumns:er},qr)));var Ts=d.createElement("div",(0,b.Z)({className:G()(it,yt,(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)({},"".concat(it,"-rtl"),pt==="rtl"),"".concat(it,"-ping-left"),Ii),"".concat(it,"-ping-right"),Bi),"".concat(it,"-layout-fixed"),ct==="fixed"),"".concat(it,"-fixed-header"),si),"".concat(it,"-fixed-column"),Ar),"".concat(it,"-fixed-column-gapped"),Ar&&$r),"".concat(it,"-scroll-horizontal"),ti),"".concat(it,"-has-fix-left"),er[0]&&er[0].fixed),"".concat(it,"-has-fix-right"),er[er.length-1]&&er[er.length-1].fixed==="right")),style:Jt,id:En,ref:ri},As),xt&&d.createElement(Re,{className:"".concat(it,"-title")},xt(sn)),d.createElement("div",{ref:ts,className:"".concat(it,"-container")},Yi),Ot&&d.createElement(Re,{className:"".concat(it,"-footer")},Ot(sn)));ti&&(Ts=d.createElement(z.Z,{onResize:as},Ts));var qs=E(er,ki,pt),$s=d.useMemo(function(){return{scrollX:Or,prefixCls:it,getComponent:Pn,scrollbarSize:Ki,direction:pt,fixedInfoList:qs,isSticky:Gr,supportSticky:Ys,componentWidth:yr,fixHeader:si,fixColumn:Ar,horizonScroll:ti,tableLayout:Vi,rowClassName:Tt,expandedRowClassName:wr.expandedRowClassName,expandIcon:gr,expandableType:Pr,expandRowByClick:wr.expandRowByClick,expandedRowRender:wr.expandedRowRender,onTriggerExpand:bn,expandIconColumnIndex:wr.expandIconColumnIndex,indentSize:wr.indentSize,allColumnsFixedLeft:er.every(function(Rr){return Rr.fixed==="left"}),emptyNode:Ms,columns:Er,flattenColumns:er,onColumnResize:bs,hoverStartRow:Nr,hoverEndRow:Jr,onHover:Kr,rowExpandable:wr.rowExpandable,onRow:$n,getRowKey:Jn,expandedKeys:Dr,childrenColumnName:mr,rowHoverable:Cn}},[Or,it,Pn,Ki,pt,qs,Gr,Ys,yr,si,Ar,ti,Vi,Tt,wr.expandedRowClassName,gr,Pr,wr.expandRowByClick,wr.expandedRowRender,bn,wr.expandIconColumnIndex,wr.indentSize,Ms,Er,er,bs,Nr,Jr,Kr,wr.rowExpandable,$n,Jn,Dr,mr,Cn]);return d.createElement(S.Provider,{value:$s},Ts)}var ft=d.forwardRef(qe);function ht(Ee){return te(ft,Ee)}var Gt=ht();Gt.EXPAND_COLUMN=p.w,Gt.INTERNAL_HOOKS=p.R,Gt.Column=_t,Gt.ColumnGroup=pn,Gt.Summary=pe;var en=Gt,Wt=w(65283),rn=le(null),hn=le(null);function Sn(Ee,lt,Ye){var it=lt||1;return Ye[Ee+it]-(Ye[Ee]||0)}function Un(Ee){var lt=Ee.rowInfo,Ye=Ee.column,it=Ee.colIndex,yt=Ee.indent,Tt=Ee.index,Jt=Ee.component,qt=Ee.renderIndex,kt=Ee.record,rt=Ee.style,ct=Ee.className,pt=Ee.inverse,xt=Ee.getHeight,Ot=Ye.render,dn=Ye.dataIndex,Rn=Ye.className,En=Ye.width,Kn=o(hn,["columnsOffset"]),Vn=Kn.columnsOffset,Wn=Je(lt,Ye,it,yt,Tt),$n=Wn.key,An=Wn.fixedInfo,cr=Wn.appendCellNode,ar=Wn.additionalCellProps,tr=ar.style,Xn=ar.colSpan,Tn=Xn===void 0?1:Xn,dr=ar.rowSpan,nr=dr===void 0?1:dr,lr=it-1,Cn=Sn(lr,Tn,Vn),sn=Tn>1?En-Cn:0,wn=(0,ue.Z)((0,ue.Z)((0,ue.Z)({},tr),rt),{},{flex:"0 0 ".concat(Cn,"px"),width:"".concat(Cn,"px"),marginRight:sn,pointerEvents:"auto"}),Fn=d.useMemo(function(){return pt?nr<=1:Tn===0||nr===0||nr>1},[nr,Tn,pt]);Fn?wn.visibility="hidden":pt&&(wn.height=xt==null?void 0:xt(nr));var Pn=Fn?function(){return null}:Ot,Jn={};return(nr===0||Tn===0)&&(Jn.rowSpan=1,Jn.colSpan=1),d.createElement(xn,(0,b.Z)({className:G()(Rn,ct),ellipsis:Ye.ellipsis,align:Ye.align,scope:Ye.rowScope,component:Jt,prefixCls:lt.prefixCls,key:$n,record:kt,index:Tt,renderIndex:qt,dataIndex:dn,render:Pn,shouldCellUpdate:Ye.shouldCellUpdate},An,{appendNode:cr,additionalProps:(0,ue.Z)((0,ue.Z)({},ar),{},{style:wn},Jn)}))}var yn=Un,Zn=["data","index","className","rowKey","style","extra","getHeight"],Nn=d.forwardRef(function(Ee,lt){var Ye=Ee.data,it=Ee.index,yt=Ee.className,Tt=Ee.rowKey,Jt=Ee.style,qt=Ee.extra,kt=Ee.getHeight,rt=(0,be.Z)(Ee,Zn),ct=Ye.record,pt=Ye.indent,xt=Ye.index,Ot=o(S,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),dn=Ot.scrollX,Rn=Ot.flattenColumns,En=Ot.prefixCls,Kn=Ot.fixColumn,Vn=Ot.componentWidth,Wn=o(rn,["getComponent"]),$n=Wn.getComponent,An=Ze(ct,Tt,it,pt),cr=$n(["body","row"],"div"),ar=$n(["body","cell"],"div"),tr=An.rowSupportExpand,Xn=An.expanded,Tn=An.rowProps,dr=An.expandedRowRender,nr=An.expandedRowClassName,lr;if(tr&&Xn){var Cn=dr(ct,it,pt+1,Xn),sn=ot(nr,ct,it,pt),wn={};Kn&&(wn={style:(0,he.Z)({},"--virtual-width","".concat(Vn,"px"))});var Fn="".concat(En,"-expanded-row-cell");lr=d.createElement(cr,{className:G()("".concat(En,"-expanded-row"),"".concat(En,"-expanded-row-level-").concat(pt+1),sn)},d.createElement(xn,{component:ar,prefixCls:En,className:G()(Fn,(0,he.Z)({},"".concat(Fn,"-fixed"),Kn)),additionalProps:wn},Cn))}var Pn=(0,ue.Z)((0,ue.Z)({},Jt),{},{width:dn});qt&&(Pn.position="absolute",Pn.pointerEvents="none");var Jn=d.createElement(cr,(0,b.Z)({},Tn,rt,{"data-row-key":Tt,ref:tr?null:lt,className:G()(yt,"".concat(En,"-row"),Tn==null?void 0:Tn.className,(0,he.Z)({},"".concat(En,"-row-extra"),qt)),style:(0,ue.Z)((0,ue.Z)({},Pn),Tn==null?void 0:Tn.style)}),Rn.map(function(rr,_r){return d.createElement(yn,{key:_r,component:ar,rowInfo:An,column:rr,colIndex:_r,indent:pt,index:it,renderIndex:xt,record:ct,inverse:qt,getHeight:kt})}));return tr?d.createElement("div",{ref:lt},Jn,lr):Jn}),Gn=N(Nn),Mn=Gn,On=d.forwardRef(function(Ee,lt){var Ye=Ee.data,it=Ee.onScroll,yt=o(S,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Tt=yt.flattenColumns,Jt=yt.onColumnResize,qt=yt.getRowKey,kt=yt.expandedKeys,rt=yt.prefixCls,ct=yt.childrenColumnName,pt=yt.scrollX,xt=yt.direction,Ot=o(rn),dn=Ot.sticky,Rn=Ot.scrollY,En=Ot.listItemHeight,Kn=Ot.getComponent,Vn=Ot.onScroll,Wn=d.useRef(),$n=Ue(Ye,ct,kt,qt),An=d.useMemo(function(){var lr=0;return Tt.map(function(Cn){var sn=Cn.width,wn=Cn.key;return lr+=sn,[wn,sn,lr]})},[Tt]),cr=d.useMemo(function(){return An.map(function(lr){return lr[2]})},[An]);d.useEffect(function(){An.forEach(function(lr){var Cn=(0,fe.Z)(lr,2),sn=Cn[0],wn=Cn[1];Jt(sn,wn)})},[An]),d.useImperativeHandle(lt,function(){var lr,Cn={scrollTo:function(wn){var Fn;(Fn=Wn.current)===null||Fn===void 0||Fn.scrollTo(wn)},nativeElement:(lr=Wn.current)===null||lr===void 0?void 0:lr.nativeElement};return Object.defineProperty(Cn,"scrollLeft",{get:function(){var wn;return((wn=Wn.current)===null||wn===void 0?void 0:wn.getScrollInfo().x)||0},set:function(wn){var Fn;(Fn=Wn.current)===null||Fn===void 0||Fn.scrollTo({left:wn})}}),Cn});var ar=function(Cn,sn){var wn,Fn=(wn=$n[sn])===null||wn===void 0?void 0:wn.record,Pn=Cn.onCell;if(Pn){var Jn,rr=Pn(Fn,sn);return(Jn=rr==null?void 0:rr.rowSpan)!==null&&Jn!==void 0?Jn:1}return 1},tr=function(Cn){var sn=Cn.start,wn=Cn.end,Fn=Cn.getSize,Pn=Cn.offsetY;if(wn<0)return null;for(var Jn=Tt.filter(function(gr){return ar(gr,sn)===0}),rr=sn,_r=function(mr){if(Jn=Jn.filter(function(bn){return ar(bn,mr)===0}),!Jn.length)return rr=mr,1},Br=sn;Br>=0&&!_r(Br);Br-=1);for(var Nr=Tt.filter(function(gr){return ar(gr,wn)!==1}),Jr=wn,Kr=function(mr){if(Nr=Nr.filter(function(bn){return ar(bn,mr)!==1}),!Nr.length)return Jr=Math.max(mr-1,wn),1},Ur=wn;Ur<$n.length&&!Kr(Ur);Ur+=1);for(var pr=[],wr=function(mr){var bn=$n[mr];if(!bn)return 1;Tt.some(function(Yn){return ar(Yn,mr)>1})&&pr.push(mr)},Pr=rr;Pr<=Jr;Pr+=1)wr(Pr);var Dr=pr.map(function(gr){var mr=$n[gr],bn=qt(mr.record,gr),Yn=function(yr){var Cr=gr+yr-1,jn=qt($n[Cr].record,Cr),qn=Fn(bn,jn);return qn.bottom-qn.top},ir=Fn(bn);return d.createElement(Mn,{key:gr,data:mr,rowKey:bn,index:gr,style:{top:-Pn+ir.top},extra:!0,getHeight:Yn})});return Dr},Xn=d.useMemo(function(){return{columnsOffset:cr}},[cr]),Tn="".concat(rt,"-tbody"),dr=Kn(["body","wrapper"]),nr={};return dn&&(nr.position="sticky",nr.bottom=0,(0,ne.Z)(dn)==="object"&&dn.offsetScroll&&(nr.bottom=dn.offsetScroll)),d.createElement(hn.Provider,{value:Xn},d.createElement(Wt.Z,{fullHeight:!1,ref:Wn,prefixCls:"".concat(Tn,"-virtual"),styles:{horizontalScrollBar:nr},className:Tn,height:Rn,itemHeight:En||24,data:$n,itemKey:function(Cn){return qt(Cn.record)},component:dr,scrollWidth:pt,direction:xt,onVirtualScroll:function(Cn){var sn,wn=Cn.x;it({currentTarget:(sn=Wn.current)===null||sn===void 0?void 0:sn.nativeElement,scrollLeft:wn})},onScroll:Vn,extraRender:tr},function(lr,Cn,sn){var wn=qt(lr.record,Cn);return d.createElement(Mn,{data:lr,rowKey:wn,index:Cn,style:sn.style})}))}),Qn=N(On),vn=Qn,Dn=function(lt,Ye){var it=Ye.ref,yt=Ye.onScroll;return d.createElement(vn,{ref:it,data:lt,onScroll:yt})};function je(Ee,lt){var Ye=Ee.data,it=Ee.columns,yt=Ee.scroll,Tt=Ee.sticky,Jt=Ee.prefixCls,qt=Jt===void 0?_n:Jt,kt=Ee.className,rt=Ee.listItemHeight,ct=Ee.components,pt=Ee.onScroll,xt=yt||{},Ot=xt.x,dn=xt.y;typeof Ot!="number"&&(Ot=1),typeof dn!="number"&&(dn=500);var Rn=(0,Ht.zX)(function(Vn,Wn){return(0,Q.Z)(ct,Vn)||Wn}),En=(0,Ht.zX)(pt),Kn=d.useMemo(function(){return{sticky:Tt,scrollY:dn,listItemHeight:rt,getComponent:Rn,onScroll:En}},[Tt,dn,rt,Rn,En]);return d.createElement(rn.Provider,{value:Kn},d.createElement(en,(0,b.Z)({},Ee,{className:G()(kt,"".concat(qt,"-virtual")),scroll:(0,ue.Z)((0,ue.Z)({},yt),{},{x:Ot}),components:(0,ue.Z)((0,ue.Z)({},ct),{},{body:Ye!=null&&Ye.length?Dn:void 0}),columns:it,internalHooks:p.R,tailor:!0,ref:lt})))}var Lt=d.forwardRef(je);function tn(Ee){return te(Lt,Ee)}var gn=tn(),zn=null},54451:function(Ln,jt,w){"use strict";w.d(jt,{g:function(){return d},v:function(){return O}});var p=w(20049),fe=w(5883),oe=w(48736),me=["expandable"],O="RC_TABLE_INTERNAL_COL_DEFINE";function d(ge){var le=ge.expandable,o=(0,fe.Z)(ge,me),b;return"expandable"in ge?b=(0,p.Z)((0,p.Z)({},o),le):b=o,b.showExpandColumn===!1&&(b.expandIconColumnIndex=-1),b}},29443:function(Ln,jt,w){"use strict";w.d(jt,{Z:function(){return at}});var p=w(5016),fe=w(18082),oe=w(20049),me=w(52456),O=w(10928),d=w(5883),ge=w(92310),le=w.n(ge),o=w(18929),b=w(49658),T=w(59301),m=(0,T.createContext)(null),y=w(92393),x=w(29301),L=w(6089),U=w(8654),V=w(16089),te=function(De){var ot=De.activeTabOffset,Je=De.horizontal,He=De.rtl,gt=De.indicator,Rt=gt===void 0?{}:gt,st=Rt.size,Kt=Rt.align,cn=Kt===void 0?"center":Kt,At=(0,T.useState)(),Xt=(0,me.Z)(At,2),Fe=Xt[0],Ne=Xt[1],Me=(0,T.useRef)(),I=T.useCallback(function(de){return typeof st=="function"?st(de):typeof st=="number"?st:de},[st]);function ae(){V.Z.cancel(Me.current)}return(0,T.useEffect)(function(){var de={};if(ot)if(Je){de.width=I(ot.width);var se=He?"right":"left";cn==="start"&&(de[se]=ot[se]),cn==="center"&&(de[se]=ot[se]+ot.width/2,de.transform=He?"translateX(50%)":"translateX(-50%)"),cn==="end"&&(de[se]=ot[se]+ot.width,de.transform="translateX(-100%)")}else de.height=I(ot.height),cn==="start"&&(de.top=ot.top),cn==="center"&&(de.top=ot.top+ot.height/2,de.transform="translateY(-50%)"),cn==="end"&&(de.top=ot.top+ot.height,de.transform="translateY(-100%)");return ae(),Me.current=(0,V.Z)(function(){Ne(de)}),ae},[ot,Je,He,cn,I]),{style:Fe}},N=te,B={width:0,height:0,left:0,top:0};function R(ve,De,ot){return(0,T.useMemo)(function(){for(var Je,He=new Map,gt=De.get((Je=ve[0])===null||Je===void 0?void 0:Je.key)||B,Rt=gt.left+gt.width,st=0;st<ve.length;st+=1){var Kt=ve[st].key,cn=De.get(Kt);if(!cn){var At;cn=De.get((At=ve[st-1])===null||At===void 0?void 0:At.key)||B}var Xt=He.get(Kt)||(0,oe.Z)({},cn);Xt.right=Rt-Xt.left-Xt.width,He.set(Kt,Xt)}return He},[ve.map(function(Je){return Je.key}).join("_"),De,ot])}function S(ve,De){var ot=T.useRef(ve),Je=T.useState({}),He=(0,me.Z)(Je,2),gt=He[1];function Rt(st){var Kt=typeof st=="function"?st(ot.current):st;Kt!==ot.current&&De(Kt,ot.current),ot.current=Kt,gt({})}return[ot.current,Rt]}var $=.1,ee=.01,W=20,ne=Math.pow(.995,W);function ue(ve,De){var ot=(0,T.useState)(),Je=(0,me.Z)(ot,2),He=Je[0],gt=Je[1],Rt=(0,T.useState)(0),st=(0,me.Z)(Rt,2),Kt=st[0],cn=st[1],At=(0,T.useState)(0),Xt=(0,me.Z)(At,2),Fe=Xt[0],Ne=Xt[1],Me=(0,T.useState)(),I=(0,me.Z)(Me,2),ae=I[0],de=I[1],se=(0,T.useRef)();function Se(_){var j=_.touches[0],E=j.screenX,Pe=j.screenY;gt({x:E,y:Pe}),window.clearInterval(se.current)}function Mt(_){if(He){var j=_.touches[0],E=j.screenX,Pe=j.screenY;gt({x:E,y:Pe});var ye=E-He.x,we=Pe-He.y;De(ye,we);var ze=Date.now();cn(ze),Ne(ze-Kt),de({x:ye,y:we})}}function It(){if(He&&(gt(null),de(null),ae)){var _=ae.x/Fe,j=ae.y/Fe,E=Math.abs(_),Pe=Math.abs(j);if(Math.max(E,Pe)<$)return;var ye=_,we=j;se.current=window.setInterval(function(){if(Math.abs(ye)<ee&&Math.abs(we)<ee){window.clearInterval(se.current);return}ye*=ne,we*=ne,De(ye*W,we*W)},W)}}var Ft=(0,T.useRef)();function fn(_){var j=_.deltaX,E=_.deltaY,Pe=0,ye=Math.abs(j),we=Math.abs(E);ye===we?Pe=Ft.current==="x"?j:E:ye>we?(Pe=j,Ft.current="x"):(Pe=E,Ft.current="y"),De(-Pe,-Pe)&&_.preventDefault()}var Le=(0,T.useRef)(null);Le.current={onTouchStart:Se,onTouchMove:Mt,onTouchEnd:It,onWheel:fn},T.useEffect(function(){function _(ye){Le.current.onTouchStart(ye)}function j(ye){Le.current.onTouchMove(ye)}function E(ye){Le.current.onTouchEnd(ye)}function Pe(ye){Le.current.onWheel(ye)}return document.addEventListener("touchmove",j,{passive:!1}),document.addEventListener("touchend",E,{passive:!0}),ve.current.addEventListener("touchstart",_,{passive:!0}),ve.current.addEventListener("wheel",Pe,{passive:!1}),function(){document.removeEventListener("touchmove",j),document.removeEventListener("touchend",E)}},[])}var he=w(34280);function Oe(ve){var De=(0,T.useState)(0),ot=(0,me.Z)(De,2),Je=ot[0],He=ot[1],gt=(0,T.useRef)(0),Rt=(0,T.useRef)();return Rt.current=ve,(0,he.o)(function(){var st;(st=Rt.current)===null||st===void 0||st.call(Rt)},[Je]),function(){gt.current===Je&&(gt.current+=1,He(gt.current))}}function G(ve){var De=(0,T.useRef)([]),ot=(0,T.useState)({}),Je=(0,me.Z)(ot,2),He=Je[1],gt=(0,T.useRef)(typeof ve=="function"?ve():ve),Rt=Oe(function(){var Kt=gt.current;De.current.forEach(function(cn){Kt=cn(Kt)}),De.current=[],gt.current=Kt,He({})});function st(Kt){De.current.push(Kt),Rt()}return[gt.current,st]}var P={width:0,height:0,left:0,top:0,right:0};function Q(ve,De,ot,Je,He,gt,Rt){var st=Rt.tabs,Kt=Rt.tabPosition,cn=Rt.rtl,At,Xt,Fe;return["top","bottom"].includes(Kt)?(At="width",Xt=cn?"right":"left",Fe=Math.abs(ot)):(At="height",Xt="top",Fe=-ot),(0,T.useMemo)(function(){if(!st.length)return[0,0];for(var Ne=st.length,Me=Ne,I=0;I<Ne;I+=1){var ae=ve.get(st[I].key)||P;if(Math.floor(ae[Xt]+ae[At])>Math.floor(Fe+De)){Me=I-1;break}}for(var de=0,se=Ne-1;se>=0;se-=1){var Se=ve.get(st[se].key)||P;if(Se[Xt]<Fe){de=se+1;break}}return de>=Me?[0,0]:[de,Me]},[ve,De,Je,He,gt,Fe,Kt,st.map(function(Ne){return Ne.key}).join("_"),cn])}function q(ve){var De;return ve instanceof Map?(De={},ve.forEach(function(ot,Je){De[Je]=ot})):De=ve,JSON.stringify(De)}var re="TABS_DQ";function J(ve){return String(ve).replace(/"/g,re)}function g(ve,De,ot,Je){return!(!ot||Je||ve===!1||ve===void 0&&(De===!1||De===null))}var v=T.forwardRef(function(ve,De){var ot=ve.prefixCls,Je=ve.editable,He=ve.locale,gt=ve.style;return!Je||Je.showAdd===!1?null:T.createElement("button",{ref:De,type:"button",className:"".concat(ot,"-nav-add"),style:gt,"aria-label":(He==null?void 0:He.addAriaLabel)||"Add tab",onClick:function(st){Je.onEdit("add",{event:st})}},Je.addIcon||"+")}),Z=v,ce=T.forwardRef(function(ve,De){var ot=ve.position,Je=ve.prefixCls,He=ve.extra;if(!He)return null;var gt,Rt={};return(0,O.Z)(He)==="object"&&!T.isValidElement(He)?Rt=He:Rt.right=He,ot==="right"&&(gt=Rt.right),ot==="left"&&(gt=Rt.left),gt?T.createElement("div",{className:"".concat(Je,"-extra-content"),ref:De},gt):null}),Xe=ce,We=w(96478),Dt=w(28321),vt=w(10228),$t=T.forwardRef(function(ve,De){var ot=ve.prefixCls,Je=ve.id,He=ve.tabs,gt=ve.locale,Rt=ve.mobile,st=ve.more,Kt=st===void 0?{}:st,cn=ve.style,At=ve.className,Xt=ve.editable,Fe=ve.tabBarGutter,Ne=ve.rtl,Me=ve.removeAriaLabel,I=ve.onTabClick,ae=ve.getPopupContainer,de=ve.popupClassName,se=(0,T.useState)(!1),Se=(0,me.Z)(se,2),Mt=Se[0],It=Se[1],Ft=(0,T.useState)(null),fn=(0,me.Z)(Ft,2),Le=fn[0],_=fn[1],j=Kt.icon,E=j===void 0?"More":j,Pe="".concat(Je,"-more-popup"),ye="".concat(ot,"-dropdown"),we=Le!==null?"".concat(Pe,"-").concat(Le):null,ze=gt==null?void 0:gt.dropdownAriaLabel;function ut(Ve,et){Ve.preventDefault(),Ve.stopPropagation(),Xt.onEdit("remove",{key:et,event:Ve})}var Pt=T.createElement(Dt.ZP,{onClick:function(et){var dt=et.key,Et=et.domEvent;I(dt,Et),It(!1)},prefixCls:"".concat(ye,"-menu"),id:Pe,tabIndex:-1,role:"listbox","aria-activedescendant":we,selectedKeys:[Le],"aria-label":ze!==void 0?ze:"expanded dropdown"},He.map(function(Ve){var et=Ve.closable,dt=Ve.disabled,Et=Ve.closeIcon,tt=Ve.key,nt=Ve.label,_t=g(et,Et,Xt,dt);return T.createElement(Dt.sN,{key:tt,id:"".concat(Pe,"-").concat(tt),role:"option","aria-controls":Je&&"".concat(Je,"-panel-").concat(tt),disabled:dt},T.createElement("span",null,nt),_t&&T.createElement("button",{type:"button","aria-label":Me||"remove",tabIndex:0,className:"".concat(ye,"-menu-item-remove"),onClick:function(pn){pn.stopPropagation(),ut(pn,tt)}},Et||Xt.removeIcon||"\xD7"))}));function Vt(Ve){for(var et=He.filter(function(_t){return!_t.disabled}),dt=et.findIndex(function(_t){return _t.key===Le})||0,Et=et.length,tt=0;tt<Et;tt+=1){dt=(dt+Ve+Et)%Et;var nt=et[dt];if(!nt.disabled){_(nt.key);return}}}function Ut(Ve){var et=Ve.which;if(!Mt){[vt.Z.DOWN,vt.Z.SPACE,vt.Z.ENTER].includes(et)&&(It(!0),Ve.preventDefault());return}switch(et){case vt.Z.UP:Vt(-1),Ve.preventDefault();break;case vt.Z.DOWN:Vt(1),Ve.preventDefault();break;case vt.Z.ESC:It(!1);break;case vt.Z.SPACE:case vt.Z.ENTER:Le!==null&&I(Le,Ve);break}}(0,T.useEffect)(function(){var Ve=document.getElementById(we);Ve&&Ve.scrollIntoView&&Ve.scrollIntoView(!1)},[Le]),(0,T.useEffect)(function(){Mt||_(null)},[Mt]);var mn=(0,fe.Z)({},Ne?"marginRight":"marginLeft",Fe);He.length||(mn.visibility="hidden",mn.order=1);var Re=le()((0,fe.Z)({},"".concat(ye,"-rtl"),Ne)),_e=Rt?null:T.createElement(We.Z,(0,p.Z)({prefixCls:ye,overlay:Pt,visible:He.length?Mt:!1,onVisibleChange:It,overlayClassName:le()(Re,de),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:ae},Kt),T.createElement("button",{type:"button",className:"".concat(ot,"-nav-more"),style:mn,"aria-haspopup":"listbox","aria-controls":Pe,id:"".concat(Je,"-more"),"aria-expanded":Mt,onKeyDown:Ut},E));return T.createElement("div",{className:le()("".concat(ot,"-nav-operations"),At),style:cn,ref:De},_e,T.createElement(Z,{prefixCls:ot,locale:gt,editable:Xt}))}),Ht=T.memo($t,function(ve,De){return De.tabMoving}),ke=function(De){var ot=De.prefixCls,Je=De.id,He=De.active,gt=De.focus,Rt=De.tab,st=Rt.key,Kt=Rt.label,cn=Rt.disabled,At=Rt.closeIcon,Xt=Rt.icon,Fe=De.closable,Ne=De.renderWrapper,Me=De.removeAriaLabel,I=De.editable,ae=De.onClick,de=De.onFocus,se=De.onBlur,Se=De.onKeyDown,Mt=De.onMouseDown,It=De.onMouseUp,Ft=De.style,fn=De.tabCount,Le=De.currentPosition,_="".concat(ot,"-tab"),j=g(Fe,At,I,cn);function E(ut){cn||ae(ut)}function Pe(ut){ut.preventDefault(),ut.stopPropagation(),I.onEdit("remove",{key:st,event:ut})}var ye=T.useMemo(function(){return Xt&&typeof Kt=="string"?T.createElement("span",null,Kt):Kt},[Kt,Xt]),we=T.useRef(null);T.useEffect(function(){gt&&we.current&&we.current.focus()},[gt]);var ze=T.createElement("div",{key:st,"data-node-key":J(st),className:le()(_,(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(_,"-with-remove"),j),"".concat(_,"-active"),He),"".concat(_,"-disabled"),cn),"".concat(_,"-focus"),gt)),style:Ft,onClick:E},T.createElement("div",{ref:we,role:"tab","aria-selected":He,id:Je&&"".concat(Je,"-tab-").concat(st),className:"".concat(_,"-btn"),"aria-controls":Je&&"".concat(Je,"-panel-").concat(st),"aria-disabled":cn,tabIndex:cn?null:He?0:-1,onClick:function(Pt){Pt.stopPropagation(),E(Pt)},onKeyDown:Se,onMouseDown:Mt,onMouseUp:It,onFocus:de,onBlur:se},gt&&T.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(Le," of ").concat(fn)),Xt&&T.createElement("span",{className:"".concat(_,"-icon")},Xt),Kt&&ye),j&&T.createElement("button",{type:"button",role:"tab","aria-label":Me||"remove",tabIndex:He?0:-1,className:"".concat(_,"-remove"),onClick:function(Pt){Pt.stopPropagation(),Pe(Pt)}},At||I.removeIcon||"\xD7"));return Ne?Ne(ze):ze},Bt=ke,xn=function(De,ot){var Je=De.offsetWidth,He=De.offsetHeight,gt=De.offsetTop,Rt=De.offsetLeft,st=De.getBoundingClientRect(),Kt=st.width,cn=st.height,At=st.left,Xt=st.top;return Math.abs(Kt-Je)<1?[Kt,cn,At-ot.left,Xt-ot.top]:[Je,He,Rt,gt]},Yt=function(De){var ot=De.current||{},Je=ot.offsetWidth,He=Je===void 0?0:Je,gt=ot.offsetHeight,Rt=gt===void 0?0:gt;if(De.current){var st=De.current.getBoundingClientRect(),Kt=st.width,cn=st.height;if(Math.abs(Kt-He)<1)return[Kt,cn]}return[He,Rt]},ln=function(De,ot){return De[ot?0:1]},mt=T.forwardRef(function(ve,De){var ot=ve.className,Je=ve.style,He=ve.id,gt=ve.animated,Rt=ve.activeKey,st=ve.rtl,Kt=ve.extra,cn=ve.editable,At=ve.locale,Xt=ve.tabPosition,Fe=ve.tabBarGutter,Ne=ve.children,Me=ve.onTabClick,I=ve.onTabScroll,ae=ve.indicator,de=T.useContext(m),se=de.prefixCls,Se=de.tabs,Mt=(0,T.useRef)(null),It=(0,T.useRef)(null),Ft=(0,T.useRef)(null),fn=(0,T.useRef)(null),Le=(0,T.useRef)(null),_=(0,T.useRef)(null),j=(0,T.useRef)(null),E=Xt==="top"||Xt==="bottom",Pe=S(0,function(Cn,sn){E&&I&&I({direction:Cn>sn?"left":"right"})}),ye=(0,me.Z)(Pe,2),we=ye[0],ze=ye[1],ut=S(0,function(Cn,sn){!E&&I&&I({direction:Cn>sn?"top":"bottom"})}),Pt=(0,me.Z)(ut,2),Vt=Pt[0],Ut=Pt[1],mn=(0,T.useState)([0,0]),Re=(0,me.Z)(mn,2),_e=Re[0],Ve=Re[1],et=(0,T.useState)([0,0]),dt=(0,me.Z)(et,2),Et=dt[0],tt=dt[1],nt=(0,T.useState)([0,0]),_t=(0,me.Z)(nt,2),Ct=_t[0],pn=_t[1],_n=(0,T.useState)([0,0]),an=(0,me.Z)(_n,2),zt=an[0],Ie=an[1],qe=G(new Map),ft=(0,me.Z)(qe,2),ht=ft[0],Gt=ft[1],en=R(Se,ht,Et[0]),Wt=ln(_e,E),rn=ln(Et,E),hn=ln(Ct,E),Sn=ln(zt,E),Un=Math.floor(Wt)<Math.floor(rn+hn),yn=Un?Wt-Sn:Wt-hn,Zn="".concat(se,"-nav-operations-hidden"),Nn=0,Gn=0;E&&st?(Nn=0,Gn=Math.max(0,rn-yn)):(Nn=Math.min(0,yn-rn),Gn=0);function Mn(Cn){return Cn<Nn?Nn:Cn>Gn?Gn:Cn}var On=(0,T.useRef)(null),Qn=(0,T.useState)(),vn=(0,me.Z)(Qn,2),Dn=vn[0],je=vn[1];function Lt(){je(Date.now())}function tn(){On.current&&clearTimeout(On.current)}ue(fn,function(Cn,sn){function wn(Fn,Pn){Fn(function(Jn){var rr=Mn(Jn+Pn);return rr})}return Un?(E?wn(ze,Cn):wn(Ut,sn),tn(),Lt(),!0):!1}),(0,T.useEffect)(function(){return tn(),Dn&&(On.current=setTimeout(function(){je(0)},100)),tn},[Dn]);var gn=Q(en,yn,E?we:Vt,rn,hn,Sn,(0,oe.Z)((0,oe.Z)({},ve),{},{tabs:Se})),zn=(0,me.Z)(gn,2),Ee=zn[0],lt=zn[1],Ye=(0,L.Z)(function(){var Cn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rt,sn=en.get(Cn)||{width:0,height:0,left:0,right:0,top:0};if(E){var wn=we;st?sn.right<we?wn=sn.right:sn.right+sn.width>we+yn&&(wn=sn.right+sn.width-yn):sn.left<-we?wn=-sn.left:sn.left+sn.width>-we+yn&&(wn=-(sn.left+sn.width-yn)),Ut(0),ze(Mn(wn))}else{var Fn=Vt;sn.top<-Vt?Fn=-sn.top:sn.top+sn.height>-Vt+yn&&(Fn=-(sn.top+sn.height-yn)),ze(0),Ut(Mn(Fn))}}),it=(0,T.useState)(),yt=(0,me.Z)(it,2),Tt=yt[0],Jt=yt[1],qt=(0,T.useState)(!1),kt=(0,me.Z)(qt,2),rt=kt[0],ct=kt[1],pt=Se.filter(function(Cn){return!Cn.disabled}).map(function(Cn){return Cn.key}),xt=function(sn){var wn=pt.indexOf(Tt||Rt),Fn=pt.length,Pn=(wn+sn+Fn)%Fn,Jn=pt[Pn];Jt(Jn)},Ot=function(sn){var wn=sn.code,Fn=st&&E,Pn=pt[0],Jn=pt[pt.length-1];switch(wn){case"ArrowLeft":{E&&xt(Fn?1:-1);break}case"ArrowRight":{E&&xt(Fn?-1:1);break}case"ArrowUp":{sn.preventDefault(),E||xt(-1);break}case"ArrowDown":{sn.preventDefault(),E||xt(1);break}case"Home":{sn.preventDefault(),Jt(Pn);break}case"End":{sn.preventDefault(),Jt(Jn);break}case"Enter":case"Space":{sn.preventDefault(),Me(Rt,sn);break}case"Backspace":case"Delete":{var rr=pt.indexOf(Tt),_r=Se.find(function(Nr){return Nr.key===Tt}),Br=g(_r==null?void 0:_r.closable,_r==null?void 0:_r.closeIcon,cn,_r==null?void 0:_r.disabled);Br&&(sn.preventDefault(),sn.stopPropagation(),cn.onEdit("remove",{key:Tt,event:sn}),rr===pt.length-1?xt(-1):xt(1));break}}},dn={};E?dn[st?"marginRight":"marginLeft"]=Fe:dn.marginTop=Fe;var Rn=Se.map(function(Cn,sn){var wn=Cn.key;return T.createElement(Bt,{id:He,prefixCls:se,key:wn,tab:Cn,style:sn===0?void 0:dn,closable:Cn.closable,editable:cn,active:wn===Rt,focus:wn===Tt,renderWrapper:Ne,removeAriaLabel:At==null?void 0:At.removeAriaLabel,tabCount:pt.length,currentPosition:sn+1,onClick:function(Pn){Me(wn,Pn)},onKeyDown:Ot,onFocus:function(){rt||Jt(wn),Ye(wn),Lt(),fn.current&&(st||(fn.current.scrollLeft=0),fn.current.scrollTop=0)},onBlur:function(){Jt(void 0)},onMouseDown:function(){ct(!0)},onMouseUp:function(){ct(!1)}})}),En=function(){return Gt(function(){var sn,wn=new Map,Fn=(sn=Le.current)===null||sn===void 0?void 0:sn.getBoundingClientRect();return Se.forEach(function(Pn){var Jn,rr=Pn.key,_r=(Jn=Le.current)===null||Jn===void 0?void 0:Jn.querySelector('[data-node-key="'.concat(J(rr),'"]'));if(_r){var Br=xn(_r,Fn),Nr=(0,me.Z)(Br,4),Jr=Nr[0],Kr=Nr[1],Ur=Nr[2],pr=Nr[3];wn.set(rr,{width:Jr,height:Kr,left:Ur,top:pr})}}),wn})};(0,T.useEffect)(function(){En()},[Se.map(function(Cn){return Cn.key}).join("_")]);var Kn=Oe(function(){var Cn=Yt(Mt),sn=Yt(It),wn=Yt(Ft);Ve([Cn[0]-sn[0]-wn[0],Cn[1]-sn[1]-wn[1]]);var Fn=Yt(j);pn(Fn);var Pn=Yt(_);Ie(Pn);var Jn=Yt(Le);tt([Jn[0]-Fn[0],Jn[1]-Fn[1]]),En()}),Vn=Se.slice(0,Ee),Wn=Se.slice(lt+1),$n=[].concat((0,y.Z)(Vn),(0,y.Z)(Wn)),An=en.get(Rt),cr=N({activeTabOffset:An,horizontal:E,indicator:ae,rtl:st}),ar=cr.style;(0,T.useEffect)(function(){Ye()},[Rt,Nn,Gn,q(An),q(en),E]),(0,T.useEffect)(function(){Kn()},[st]);var tr=!!$n.length,Xn="".concat(se,"-nav-wrap"),Tn,dr,nr,lr;return E?st?(dr=we>0,Tn=we!==Gn):(Tn=we<0,dr=we!==Nn):(nr=Vt<0,lr=Vt!==Nn),T.createElement(x.Z,{onResize:Kn},T.createElement("div",{ref:(0,U.x1)(De,Mt),role:"tablist","aria-orientation":E?"horizontal":"vertical",className:le()("".concat(se,"-nav"),ot),style:Je,onKeyDown:function(){Lt()}},T.createElement(Xe,{ref:It,position:"left",extra:Kt,prefixCls:se}),T.createElement(x.Z,{onResize:Kn},T.createElement("div",{className:le()(Xn,(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(Xn,"-ping-left"),Tn),"".concat(Xn,"-ping-right"),dr),"".concat(Xn,"-ping-top"),nr),"".concat(Xn,"-ping-bottom"),lr)),ref:fn},T.createElement(x.Z,{onResize:Kn},T.createElement("div",{ref:Le,className:"".concat(se,"-nav-list"),style:{transform:"translate(".concat(we,"px, ").concat(Vt,"px)"),transition:Dn?"none":void 0}},Rn,T.createElement(Z,{ref:j,prefixCls:se,locale:At,editable:cn,style:(0,oe.Z)((0,oe.Z)({},Rn.length===0?void 0:dn),{},{visibility:tr?"hidden":null})}),T.createElement("div",{className:le()("".concat(se,"-ink-bar"),(0,fe.Z)({},"".concat(se,"-ink-bar-animated"),gt.inkBar)),style:ar}))))),T.createElement(Ht,(0,p.Z)({},ve,{removeAriaLabel:At==null?void 0:At.removeAriaLabel,ref:_,prefixCls:se,tabs:$n,className:!tr&&Zn,tabMoving:!!Dn})),T.createElement(Xe,{ref:Ft,position:"right",extra:Kt,prefixCls:se})))}),Be=mt,be=T.forwardRef(function(ve,De){var ot=ve.prefixCls,Je=ve.className,He=ve.style,gt=ve.id,Rt=ve.active,st=ve.tabKey,Kt=ve.children;return T.createElement("div",{id:gt&&"".concat(gt,"-panel-").concat(st),role:"tabpanel",tabIndex:Rt?0:-1,"aria-labelledby":gt&&"".concat(gt,"-tab-").concat(st),"aria-hidden":!Rt,style:He,className:le()(ot,Rt&&"".concat(ot,"-active"),Je),ref:De},Kt)}),M=be,Ce=["renderTabBar"],Ge=["label","key"],K=function(De){var ot=De.renderTabBar,Je=(0,d.Z)(De,Ce),He=T.useContext(m),gt=He.tabs;if(ot){var Rt=(0,oe.Z)((0,oe.Z)({},Je),{},{panes:gt.map(function(st){var Kt=st.label,cn=st.key,At=(0,d.Z)(st,Ge);return T.createElement(M,(0,p.Z)({tab:Kt,key:cn,tabKey:cn},At))})});return ot(Rt,Be)}return T.createElement(Be,Je)},k=K,F=w(77900),pe=["key","forceRender","style","className","destroyInactiveTabPane"],z=function(De){var ot=De.id,Je=De.activeKey,He=De.animated,gt=De.tabPosition,Rt=De.destroyInactiveTabPane,st=T.useContext(m),Kt=st.prefixCls,cn=st.tabs,At=He.tabPane,Xt="".concat(Kt,"-tabpane");return T.createElement("div",{className:le()("".concat(Kt,"-content-holder"))},T.createElement("div",{className:le()("".concat(Kt,"-content"),"".concat(Kt,"-content-").concat(gt),(0,fe.Z)({},"".concat(Kt,"-content-animated"),At))},cn.map(function(Fe){var Ne=Fe.key,Me=Fe.forceRender,I=Fe.style,ae=Fe.className,de=Fe.destroyInactiveTabPane,se=(0,d.Z)(Fe,pe),Se=Ne===Je;return T.createElement(F.default,(0,p.Z)({key:Ne,visible:Se,forceRender:Me,removeOnLeave:!!(Rt||de),leavedClassName:"".concat(Xt,"-hidden")},He.tabPaneMotion),function(Mt,It){var Ft=Mt.style,fn=Mt.className;return T.createElement(M,(0,p.Z)({},se,{prefixCls:Xt,id:ot,tabKey:Ne,animated:At,active:Se,style:(0,oe.Z)((0,oe.Z)({},I),Ft),className:le()(ae,fn),ref:It}))})})))},Y=z,ie=w(48736);function Te(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},De;return ve===!1?De={inkBar:!1,tabPane:!1}:ve===!0?De={inkBar:!0,tabPane:!1}:De=(0,oe.Z)({inkBar:!0},(0,O.Z)(ve)==="object"?ve:{}),De.tabPaneMotion&&De.tabPane===void 0&&(De.tabPane=!0),!De.tabPaneMotion&&De.tabPane&&(De.tabPane=!1),De}var xe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Ue=0,Ze=T.forwardRef(function(ve,De){var ot=ve.id,Je=ve.prefixCls,He=Je===void 0?"rc-tabs":Je,gt=ve.className,Rt=ve.items,st=ve.direction,Kt=ve.activeKey,cn=ve.defaultActiveKey,At=ve.editable,Xt=ve.animated,Fe=ve.tabPosition,Ne=Fe===void 0?"top":Fe,Me=ve.tabBarGutter,I=ve.tabBarStyle,ae=ve.tabBarExtraContent,de=ve.locale,se=ve.more,Se=ve.destroyInactiveTabPane,Mt=ve.renderTabBar,It=ve.onChange,Ft=ve.onTabClick,fn=ve.onTabScroll,Le=ve.getPopupContainer,_=ve.popupClassName,j=ve.indicator,E=(0,d.Z)(ve,xe),Pe=T.useMemo(function(){return(Rt||[]).filter(function(zt){return zt&&(0,O.Z)(zt)==="object"&&"key"in zt})},[Rt]),ye=st==="rtl",we=Te(Xt),ze=(0,T.useState)(!1),ut=(0,me.Z)(ze,2),Pt=ut[0],Vt=ut[1];(0,T.useEffect)(function(){Vt((0,b.Z)())},[]);var Ut=(0,o.Z)(function(){var zt;return(zt=Pe[0])===null||zt===void 0?void 0:zt.key},{value:Kt,defaultValue:cn}),mn=(0,me.Z)(Ut,2),Re=mn[0],_e=mn[1],Ve=(0,T.useState)(function(){return Pe.findIndex(function(zt){return zt.key===Re})}),et=(0,me.Z)(Ve,2),dt=et[0],Et=et[1];(0,T.useEffect)(function(){var zt=Pe.findIndex(function(qe){return qe.key===Re});if(zt===-1){var Ie;zt=Math.max(0,Math.min(dt,Pe.length-1)),_e((Ie=Pe[zt])===null||Ie===void 0?void 0:Ie.key)}Et(zt)},[Pe.map(function(zt){return zt.key}).join("_"),Re,dt]);var tt=(0,o.Z)(null,{value:ot}),nt=(0,me.Z)(tt,2),_t=nt[0],Ct=nt[1];(0,T.useEffect)(function(){ot||(Ct("rc-tabs-".concat(Ue)),Ue+=1)},[]);function pn(zt,Ie){Ft==null||Ft(zt,Ie);var qe=zt!==Re;_e(zt),qe&&(It==null||It(zt))}var _n={id:_t,activeKey:Re,animated:we,tabPosition:Ne,rtl:ye,mobile:Pt},an=(0,oe.Z)((0,oe.Z)({},_n),{},{editable:At,locale:de,more:se,tabBarGutter:Me,onTabClick:pn,onTabScroll:fn,extra:ae,style:I,panes:null,getPopupContainer:Le,popupClassName:_,indicator:j});return T.createElement(m.Provider,{value:{tabs:Pe,prefixCls:He}},T.createElement("div",(0,p.Z)({ref:De,id:ot,className:le()(He,"".concat(He,"-").concat(Ne),(0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(He,"-mobile"),Pt),"".concat(He,"-editable"),At),"".concat(He,"-rtl"),ye),gt)},E),T.createElement(k,(0,p.Z)({},an,{renderTabBar:Mt})),T.createElement(Y,(0,p.Z)({destroyInactiveTabPane:Se},_n,{animated:we}))))}),$e=Ze,at=$e},22711:function(Ln,jt,w){"use strict";w.r(jt),w.d(jt,{ResizableTextArea:function(){return Oe},default:function(){return q}});var p=w(5016),fe=w(18082),oe=w(20049),me=w(92393),O=w(52456),d=w(5883),ge=w(92310),le=w.n(ge),o=w(36901),b=w(66003),T=w(30292),m=w(18929),y=w(59301),x=w(10928),L=w(29301),U=w(34280),V=w(16089),te=`
|
|
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;
|
|
`,N=["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"],B={},R;function S(re){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=re.getAttribute("id")||re.getAttribute("data-reactid")||re.getAttribute("name");if(J&&B[g])return B[g];var v=window.getComputedStyle(re),Z=v.getPropertyValue("box-sizing")||v.getPropertyValue("-moz-box-sizing")||v.getPropertyValue("-webkit-box-sizing"),ce=parseFloat(v.getPropertyValue("padding-bottom"))+parseFloat(v.getPropertyValue("padding-top")),Xe=parseFloat(v.getPropertyValue("border-bottom-width"))+parseFloat(v.getPropertyValue("border-top-width")),We=N.map(function(vt){return"".concat(vt,":").concat(v.getPropertyValue(vt))}).join(";"),Dt={sizingStyle:We,paddingSize:ce,borderSize:Xe,boxSizing:Z};return J&&g&&(B[g]=Dt),Dt}function $(re){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;R||(R=document.createElement("textarea"),R.setAttribute("tab-index","-1"),R.setAttribute("aria-hidden","true"),R.setAttribute("name","hiddenTextarea"),document.body.appendChild(R)),re.getAttribute("wrap")?R.setAttribute("wrap",re.getAttribute("wrap")):R.removeAttribute("wrap");var Z=S(re,J),ce=Z.paddingSize,Xe=Z.borderSize,We=Z.boxSizing,Dt=Z.sizingStyle;R.setAttribute("style","".concat(Dt,";").concat(te)),R.value=re.value||re.placeholder||"";var vt=void 0,$t=void 0,Ht,ke=R.scrollHeight;if(We==="border-box"?ke+=Xe:We==="content-box"&&(ke-=ce),g!==null||v!==null){R.value=" ";var Bt=R.scrollHeight-ce;g!==null&&(vt=Bt*g,We==="border-box"&&(vt=vt+ce+Xe),ke=Math.max(vt,ke)),v!==null&&($t=Bt*v,We==="border-box"&&($t=$t+ce+Xe),Ht=ke>$t?"":"hidden",ke=Math.min($t,ke))}var xn={height:ke,overflowY:Ht,resize:"none"};return vt&&(xn.minHeight=vt),$t&&(xn.maxHeight=$t),xn}var ee=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],W=0,ne=1,ue=2,he=y.forwardRef(function(re,J){var g=re,v=g.prefixCls,Z=g.defaultValue,ce=g.value,Xe=g.autoSize,We=g.onResize,Dt=g.className,vt=g.style,$t=g.disabled,Ht=g.onChange,ke=g.onInternalAutoSize,Bt=(0,d.Z)(g,ee),xn=(0,m.Z)(Z,{value:ce,postState:function(gt){return gt!=null?gt:""}}),Yt=(0,O.Z)(xn,2),ln=Yt[0],mt=Yt[1],Be=function(gt){mt(gt.target.value),Ht==null||Ht(gt)},be=y.useRef();y.useImperativeHandle(J,function(){return{textArea:be.current}});var M=y.useMemo(function(){return Xe&&(0,x.Z)(Xe)==="object"?[Xe.minRows,Xe.maxRows]:[]},[Xe]),Ce=(0,O.Z)(M,2),Ge=Ce[0],K=Ce[1],k=!!Xe,F=function(){try{if(document.activeElement===be.current){var gt=be.current,Rt=gt.selectionStart,st=gt.selectionEnd,Kt=gt.scrollTop;be.current.setSelectionRange(Rt,st),be.current.scrollTop=Kt}}catch(cn){}},pe=y.useState(ue),z=(0,O.Z)(pe,2),Y=z[0],ie=z[1],Te=y.useState(),xe=(0,O.Z)(Te,2),Ue=xe[0],Ze=xe[1],$e=function(){ie(W)};(0,U.Z)(function(){k&&$e()},[ce,Ge,K,k]),(0,U.Z)(function(){if(Y===W)ie(ne);else if(Y===ne){var He=$(be.current,!1,Ge,K);ie(ue),Ze(He)}else F()},[Y]);var at=y.useRef(),ve=function(){V.Z.cancel(at.current)},De=function(gt){Y===ue&&(We==null||We(gt),Xe&&(ve(),at.current=(0,V.Z)(function(){$e()})))};y.useEffect(function(){return ve},[]);var ot=k?Ue:null,Je=(0,oe.Z)((0,oe.Z)({},vt),ot);return(Y===W||Y===ne)&&(Je.overflowY="hidden",Je.overflowX="hidden"),y.createElement(L.Z,{onResize:De,disabled:!(Xe||We)},y.createElement("textarea",(0,p.Z)({},Bt,{ref:be,style:Je,className:le()(v,Dt,(0,fe.Z)({},"".concat(v,"-disabled"),$t)),disabled:$t,value:ln,onChange:Be})))}),Oe=he,G=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],P=y.forwardRef(function(re,J){var g,v=re.defaultValue,Z=re.value,ce=re.onFocus,Xe=re.onBlur,We=re.onChange,Dt=re.allowClear,vt=re.maxLength,$t=re.onCompositionStart,Ht=re.onCompositionEnd,ke=re.suffix,Bt=re.prefixCls,xn=Bt===void 0?"rc-textarea":Bt,Yt=re.showCount,ln=re.count,mt=re.className,Be=re.style,be=re.disabled,M=re.hidden,Ce=re.classNames,Ge=re.styles,K=re.onResize,k=re.onClear,F=re.onPressEnter,pe=re.readOnly,z=re.autoSize,Y=re.onKeyDown,ie=(0,d.Z)(re,G),Te=(0,m.Z)(v,{value:Z,defaultValue:v}),xe=(0,O.Z)(Te,2),Ue=xe[0],Ze=xe[1],$e=Ue==null?"":String(Ue),at=y.useState(!1),ve=(0,O.Z)(at,2),De=ve[0],ot=ve[1],Je=y.useRef(!1),He=y.useState(null),gt=(0,O.Z)(He,2),Rt=gt[0],st=gt[1],Kt=(0,y.useRef)(null),cn=(0,y.useRef)(null),At=function(){var Vt;return(Vt=cn.current)===null||Vt===void 0?void 0:Vt.textArea},Xt=function(){At().focus()};(0,y.useImperativeHandle)(J,function(){var Pt;return{resizableTextArea:cn.current,focus:Xt,blur:function(){At().blur()},nativeElement:((Pt=Kt.current)===null||Pt===void 0?void 0:Pt.nativeElement)||At()}}),(0,y.useEffect)(function(){ot(function(Pt){return!be&&Pt})},[be]);var Fe=y.useState(null),Ne=(0,O.Z)(Fe,2),Me=Ne[0],I=Ne[1];y.useEffect(function(){if(Me){var Pt;(Pt=At()).setSelectionRange.apply(Pt,(0,me.Z)(Me))}},[Me]);var ae=(0,b.Z)(ln,Yt),de=(g=ae.max)!==null&&g!==void 0?g:vt,se=Number(de)>0,Se=ae.strategy($e),Mt=!!de&&Se>de,It=function(Vt,Ut){var mn=Ut;!Je.current&&ae.exceedFormatter&&ae.max&&ae.strategy(Ut)>ae.max&&(mn=ae.exceedFormatter(Ut,{max:ae.max}),Ut!==mn&&I([At().selectionStart||0,At().selectionEnd||0])),Ze(mn),(0,T.rJ)(Vt.currentTarget,Vt,We,mn)},Ft=function(Vt){Je.current=!0,$t==null||$t(Vt)},fn=function(Vt){Je.current=!1,It(Vt,Vt.currentTarget.value),Ht==null||Ht(Vt)},Le=function(Vt){It(Vt,Vt.target.value)},_=function(Vt){Vt.key==="Enter"&&F&&F(Vt),Y==null||Y(Vt)},j=function(Vt){ot(!0),ce==null||ce(Vt)},E=function(Vt){ot(!1),Xe==null||Xe(Vt)},Pe=function(Vt){Ze(""),Xt(),(0,T.rJ)(At(),Vt,We)},ye=ke,we;ae.show&&(ae.showFormatter?we=ae.showFormatter({value:$e,count:Se,maxLength:de}):we="".concat(Se).concat(se?" / ".concat(de):""),ye=y.createElement(y.Fragment,null,ye,y.createElement("span",{className:le()("".concat(xn,"-data-count"),Ce==null?void 0:Ce.count),style:Ge==null?void 0:Ge.count},we)));var ze=function(Vt){var Ut;K==null||K(Vt),(Ut=At())!==null&&Ut!==void 0&&Ut.style.height&&st(!0)},ut=!z&&!Yt&&!Dt;return y.createElement(o.BaseInput,{ref:Kt,value:$e,allowClear:Dt,handleReset:Pe,suffix:ye,prefixCls:xn,classNames:(0,oe.Z)((0,oe.Z)({},Ce),{},{affixWrapper:le()(Ce==null?void 0:Ce.affixWrapper,(0,fe.Z)((0,fe.Z)({},"".concat(xn,"-show-count"),Yt),"".concat(xn,"-textarea-allow-clear"),Dt))}),disabled:be,focused:De,className:le()(mt,Mt&&"".concat(xn,"-out-of-range")),style:(0,oe.Z)((0,oe.Z)({},Be),Rt&&!ut?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof we=="string"?we:void 0}},hidden:M,readOnly:pe,onClear:k},y.createElement(Oe,(0,p.Z)({},ie,{autoSize:z,maxLength:vt,onKeyDown:_,onChange:Le,onFocus:j,onBlur:E,onCompositionStart:Ft,onCompositionEnd:fn,className:le()(Ce==null?void 0:Ce.textarea),style:(0,oe.Z)((0,oe.Z)({},Ge==null?void 0:Ge.textarea),{},{resize:Be==null?void 0:Be.resize}),disabled:be,prefixCls:xn,onResize:ze,ref:cn,readOnly:pe})))}),Q=P,q=Q},29125:function(Ln,jt,w){"use strict";w.d(jt,{G:function(){return me},Z:function(){return te}});var p=w(92310),fe=w.n(p),oe=w(59301);function me(N){var B=N.children,R=N.prefixCls,S=N.id,$=N.overlayInnerStyle,ee=N.bodyClassName,W=N.className,ne=N.style;return oe.createElement("div",{className:fe()("".concat(R,"-content"),W),style:ne},oe.createElement("div",{className:fe()("".concat(R,"-inner"),ee),id:S,role:"tooltip",style:$},typeof B=="function"?B():B))}var O=w(5016),d=w(20049),ge=w(5883),le=w(65352),o={shiftX:64,adjustY:1},b={adjustX:1,shiftY:!0},T=[0,0],m={left:{points:["cr","cl"],overflow:b,offset:[-4,0],targetOffset:T},right:{points:["cl","cr"],overflow:b,offset:[4,0],targetOffset:T},top:{points:["bc","tc"],overflow:o,offset:[0,-4],targetOffset:T},bottom:{points:["tc","bc"],overflow:o,offset:[0,4],targetOffset:T},topLeft:{points:["bl","tl"],overflow:o,offset:[0,-4],targetOffset:T},leftTop:{points:["tr","tl"],overflow:b,offset:[-4,0],targetOffset:T},topRight:{points:["br","tr"],overflow:o,offset:[0,-4],targetOffset:T},rightTop:{points:["tl","tr"],overflow:b,offset:[4,0],targetOffset:T},bottomRight:{points:["tr","br"],overflow:o,offset:[0,4],targetOffset:T},rightBottom:{points:["bl","br"],overflow:b,offset:[4,0],targetOffset:T},bottomLeft:{points:["tl","bl"],overflow:o,offset:[0,4],targetOffset:T},leftBottom:{points:["br","bl"],overflow:b,offset:[-4,0],targetOffset:T}},y=null,x=w(80402),L=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],U=function(B,R){var S=B.overlayClassName,$=B.trigger,ee=$===void 0?["hover"]:$,W=B.mouseEnterDelay,ne=W===void 0?0:W,ue=B.mouseLeaveDelay,he=ue===void 0?.1:ue,Oe=B.overlayStyle,G=B.prefixCls,P=G===void 0?"rc-tooltip":G,Q=B.children,q=B.onVisibleChange,re=B.afterVisibleChange,J=B.transitionName,g=B.animation,v=B.motion,Z=B.placement,ce=Z===void 0?"right":Z,Xe=B.align,We=Xe===void 0?{}:Xe,Dt=B.destroyTooltipOnHide,vt=Dt===void 0?!1:Dt,$t=B.defaultVisible,Ht=B.getTooltipContainer,ke=B.overlayInnerStyle,Bt=B.arrowContent,xn=B.overlay,Yt=B.id,ln=B.showArrow,mt=ln===void 0?!0:ln,Be=B.classNames,be=B.styles,M=(0,ge.Z)(B,L),Ce=(0,x.Z)(Yt),Ge=(0,oe.useRef)(null);(0,oe.useImperativeHandle)(R,function(){return Ge.current});var K=(0,d.Z)({},M);"visible"in B&&(K.popupVisible=B.visible);var k=function(){return oe.createElement(me,{key:"content",prefixCls:P,id:Ce,bodyClassName:Be==null?void 0:Be.body,overlayInnerStyle:(0,d.Z)((0,d.Z)({},ke),be==null?void 0:be.body)},xn)},F=function(){var z=oe.Children.only(Q),Y=(z==null?void 0:z.props)||{},ie=(0,d.Z)((0,d.Z)({},Y),{},{"aria-describedby":xn?Ce:null});return oe.cloneElement(Q,ie)};return oe.createElement(le.Z,(0,O.Z)({popupClassName:fe()(S,Be==null?void 0:Be.root),prefixCls:P,popup:k,action:ee,builtinPlacements:m,popupPlacement:ce,ref:Ge,popupAlign:We,getPopupContainer:Ht,onPopupVisibleChange:q,afterPopupVisibleChange:re,popupTransitionName:J,popupAnimation:g,popupMotion:v,defaultPopupVisible:$t,autoDestroy:vt,mouseLeaveDelay:he,popupStyle:(0,d.Z)((0,d.Z)({},Oe),be==null?void 0:be.root),mouseEnterDelay:ne,arrow:mt},K),F())},V=(0,oe.forwardRef)(U),te=V},639:function(Ln,jt,w){"use strict";w.d(jt,{Z:function(){return B}});var p=w(5016),fe=w(18082),oe=w(20049),me=w(52456),O=w(5883),d=w(59301),ge=w(92310),le=w.n(ge),o=w(26112),b=w(30699),T=function(S){for(var $=S.prefixCls,ee=S.level,W=S.isStart,ne=S.isEnd,ue="".concat($,"-indent-unit"),he=[],Oe=0;Oe<ee;Oe+=1)he.push(d.createElement("span",{key:Oe,className:le()(ue,(0,fe.Z)((0,fe.Z)({},"".concat(ue,"-start"),W[Oe]),"".concat(ue,"-end"),ne[Oe]))}));return d.createElement("span",{"aria-hidden":"true",className:"".concat($,"-indent")},he)},m=d.memo(T),y=w(65065),x=w(34061),L=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],U="open",V="close",te="---",N=function(S){var $,ee,W,ne=S.eventKey,ue=S.className,he=S.style,Oe=S.dragOver,G=S.dragOverGapTop,P=S.dragOverGapBottom,Q=S.isLeaf,q=S.isStart,re=S.isEnd,J=S.expanded,g=S.selected,v=S.checked,Z=S.halfChecked,ce=S.loading,Xe=S.domRef,We=S.active,Dt=S.data,vt=S.onMouseMove,$t=S.selectable,Ht=(0,O.Z)(S,L),ke=d.useContext(b.k),Bt=d.useContext(b.y),xn=d.useRef(null),Yt=d.useState(!1),ln=(0,me.Z)(Yt,2),mt=ln[0],Be=ln[1],be=!!(ke.disabled||S.disabled||($=Bt.nodeDisabled)!==null&&$!==void 0&&$.call(Bt,Dt)),M=d.useMemo(function(){return!ke.checkable||S.checkable===!1?!1:ke.checkable},[ke.checkable,S.checkable]),Ce=function(Se){be||ke.onNodeSelect(Se,(0,x.F)(S))},Ge=function(Se){be||!M||S.disableCheckbox||ke.onNodeCheck(Se,(0,x.F)(S),!v)},K=d.useMemo(function(){return typeof $t=="boolean"?$t:ke.selectable},[$t,ke.selectable]),k=function(Se){ke.onNodeClick(Se,(0,x.F)(S)),K?Ce(Se):Ge(Se)},F=function(Se){ke.onNodeDoubleClick(Se,(0,x.F)(S))},pe=function(Se){ke.onNodeMouseEnter(Se,(0,x.F)(S))},z=function(Se){ke.onNodeMouseLeave(Se,(0,x.F)(S))},Y=function(Se){ke.onNodeContextMenu(Se,(0,x.F)(S))},ie=d.useMemo(function(){return!!(ke.draggable&&(!ke.draggable.nodeDraggable||ke.draggable.nodeDraggable(Dt)))},[ke.draggable,Dt]),Te=function(Se){Se.stopPropagation(),Be(!0),ke.onNodeDragStart(Se,S);try{Se.dataTransfer.setData("text/plain","")}catch(Mt){}},xe=function(Se){Se.preventDefault(),Se.stopPropagation(),ke.onNodeDragEnter(Se,S)},Ue=function(Se){Se.preventDefault(),Se.stopPropagation(),ke.onNodeDragOver(Se,S)},Ze=function(Se){Se.stopPropagation(),ke.onNodeDragLeave(Se,S)},$e=function(Se){Se.stopPropagation(),Be(!1),ke.onNodeDragEnd(Se,S)},at=function(Se){Se.preventDefault(),Se.stopPropagation(),Be(!1),ke.onNodeDrop(Se,S)},ve=function(Se){ce||ke.onNodeExpand(Se,(0,x.F)(S))},De=d.useMemo(function(){var se=(0,y.Z)(ke.keyEntities,ne)||{},Se=se.children;return!!(Se||[]).length},[ke.keyEntities,ne]),ot=d.useMemo(function(){return Q===!1?!1:Q||!ke.loadData&&!De||ke.loadData&&S.loaded&&!De},[Q,ke.loadData,De,S.loaded]);d.useEffect(function(){ce||typeof ke.loadData=="function"&&J&&!ot&&!S.loaded&&ke.onNodeLoad((0,x.F)(S))},[ce,ke.loadData,ke.onNodeLoad,J,ot,S]);var Je=d.useMemo(function(){var se;return(se=ke.draggable)!==null&&se!==void 0&&se.icon?d.createElement("span",{className:"".concat(ke.prefixCls,"-draggable-icon")},ke.draggable.icon):null},[ke.draggable]),He=function(Se){var Mt=S.switcherIcon||ke.switcherIcon;return typeof Mt=="function"?Mt((0,oe.Z)((0,oe.Z)({},S),{},{isLeaf:Se})):Mt},gt=function(){if(ot){var Se=He(!0);return Se!==!1?d.createElement("span",{className:le()("".concat(ke.prefixCls,"-switcher"),"".concat(ke.prefixCls,"-switcher-noop"))},Se):null}var Mt=He(!1);return Mt!==!1?d.createElement("span",{onClick:ve,className:le()("".concat(ke.prefixCls,"-switcher"),"".concat(ke.prefixCls,"-switcher_").concat(J?U:V))},Mt):null},Rt=d.useMemo(function(){if(!M)return null;var se=typeof M!="boolean"?M:null;return d.createElement("span",{className:le()("".concat(ke.prefixCls,"-checkbox"),(0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(ke.prefixCls,"-checkbox-checked"),v),"".concat(ke.prefixCls,"-checkbox-indeterminate"),!v&&Z),"".concat(ke.prefixCls,"-checkbox-disabled"),be||S.disableCheckbox)),onClick:Ge,role:"checkbox","aria-checked":Z?"mixed":v,"aria-disabled":be||S.disableCheckbox,"aria-label":"Select ".concat(typeof S.title=="string"?S.title:"tree node")},se)},[M,v,Z,be,S.disableCheckbox,S.title]),st=d.useMemo(function(){return ot?null:J?U:V},[ot,J]),Kt=d.useMemo(function(){return d.createElement("span",{className:le()("".concat(ke.prefixCls,"-iconEle"),"".concat(ke.prefixCls,"-icon__").concat(st||"docu"),(0,fe.Z)({},"".concat(ke.prefixCls,"-icon_loading"),ce))})},[ke.prefixCls,st,ce]),cn=d.useMemo(function(){var se=!!ke.draggable,Se=!S.disabled&&se&&ke.dragOverNodeKey===ne;return Se?ke.dropIndicatorRender({dropPosition:ke.dropPosition,dropLevelOffset:ke.dropLevelOffset,indent:ke.indent,prefixCls:ke.prefixCls,direction:ke.direction}):null},[ke.dropPosition,ke.dropLevelOffset,ke.indent,ke.prefixCls,ke.direction,ke.draggable,ke.dragOverNodeKey,ke.dropIndicatorRender]),At=d.useMemo(function(){var se=S.title,Se=se===void 0?te:se,Mt="".concat(ke.prefixCls,"-node-content-wrapper"),It;if(ke.showIcon){var Ft=S.icon||ke.icon;It=Ft?d.createElement("span",{className:le()("".concat(ke.prefixCls,"-iconEle"),"".concat(ke.prefixCls,"-icon__customize"))},typeof Ft=="function"?Ft(S):Ft):Kt}else ke.loadData&&ce&&(It=Kt);var fn;return typeof Se=="function"?fn=Se(Dt):ke.titleRender?fn=ke.titleRender(Dt):fn=Se,d.createElement("span",{ref:xn,title:typeof Se=="string"?Se:"",className:le()(Mt,"".concat(Mt,"-").concat(st||"normal"),(0,fe.Z)({},"".concat(ke.prefixCls,"-node-selected"),!be&&(g||mt))),onMouseEnter:pe,onMouseLeave:z,onContextMenu:Y,onClick:k,onDoubleClick:F},It,d.createElement("span",{className:"".concat(ke.prefixCls,"-title")},fn),cn)},[ke.prefixCls,ke.showIcon,S,ke.icon,Kt,ke.titleRender,Dt,st,pe,z,Y,k,F]),Xt=(0,o.Z)(Ht,{aria:!0,data:!0}),Fe=(0,y.Z)(ke.keyEntities,ne)||{},Ne=Fe.level,Me=re[re.length-1],I=!be&&ie,ae=ke.draggingNodeKey===ne,de=$t!==void 0?{"aria-selected":!!$t}:void 0;return d.createElement("div",(0,p.Z)({ref:Xe,role:"treeitem","aria-expanded":Q?void 0:J,className:le()(ue,"".concat(ke.prefixCls,"-treenode"),(W={},(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)(W,"".concat(ke.prefixCls,"-treenode-disabled"),be),"".concat(ke.prefixCls,"-treenode-switcher-").concat(J?"open":"close"),!Q),"".concat(ke.prefixCls,"-treenode-checkbox-checked"),v),"".concat(ke.prefixCls,"-treenode-checkbox-indeterminate"),Z),"".concat(ke.prefixCls,"-treenode-selected"),g),"".concat(ke.prefixCls,"-treenode-loading"),ce),"".concat(ke.prefixCls,"-treenode-active"),We),"".concat(ke.prefixCls,"-treenode-leaf-last"),Me),"".concat(ke.prefixCls,"-treenode-draggable"),ie),"dragging",ae),(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)(W,"drop-target",ke.dropTargetKey===ne),"drop-container",ke.dropContainerKey===ne),"drag-over",!be&&Oe),"drag-over-gap-top",!be&&G),"drag-over-gap-bottom",!be&&P),"filter-node",(ee=ke.filterTreeNode)===null||ee===void 0?void 0:ee.call(ke,(0,x.F)(S))),"".concat(ke.prefixCls,"-treenode-leaf"),ot))),style:he,draggable:I,onDragStart:I?Te:void 0,onDragEnter:ie?xe:void 0,onDragOver:ie?Ue:void 0,onDragLeave:ie?Ze:void 0,onDrop:ie?at:void 0,onDragEnd:ie?$e:void 0,onMouseMove:vt},de,Xt),d.createElement(m,{prefixCls:ke.prefixCls,level:Ne,isStart:q,isEnd:re}),Je,gt(),Rt,At)};N.isTreeNode=1;var B=N},30699:function(Ln,jt,w){"use strict";w.d(jt,{k:function(){return fe},y:function(){return oe}});var p=w(59301),fe=p.createContext(null),oe=p.createContext({})},28390:function(Ln,jt,w){"use strict";w.d(jt,{OF:function(){return ne.Z},y6:function(){return V.y},ZP:function(){return be}});var p=w(5016),fe=w(10928),oe=w(20049),me=w(92393),O=w(6487),d=w(56789),ge=w(41281),le=w(7942),o=w(76773),b=w(18082),T=w(92310),m=w.n(T),y=w(10228),x=w(26112),L=w(48736),U=w(59301),V=w(30699),te=function(Ce){var Ge=Ce.dropPosition,K=Ce.dropLevelOffset,k=Ce.indent,F={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ge){case-1:F.top=0,F.left=-K*k;break;case 1:F.bottom=0,F.left=-K*k;break;case 0:F.bottom=0,F.left=k;break}return U.createElement("div",{style:F})},N=te;function B(M){if(M==null)throw new TypeError("Cannot destructure "+M)}var R=w(52456),S=w(5883),$=w(34280),ee=w(65283),W=w(77900),ne=w(639);function ue(M,Ce){var Ge=U.useState(!1),K=(0,R.Z)(Ge,2),k=K[0],F=K[1];(0,$.Z)(function(){if(k)return M(),function(){Ce()}},[k]),(0,$.Z)(function(){return F(!0),function(){F(!1)}},[])}var he=ue,Oe=w(34061),G=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],P=U.forwardRef(function(M,Ce){var Ge=M.className,K=M.style,k=M.motion,F=M.motionNodes,pe=M.motionType,z=M.onMotionStart,Y=M.onMotionEnd,ie=M.active,Te=M.treeNodeRequiredProps,xe=(0,S.Z)(M,G),Ue=U.useState(!0),Ze=(0,R.Z)(Ue,2),$e=Ze[0],at=Ze[1],ve=U.useContext(V.k),De=ve.prefixCls,ot=F&&pe!=="hide";(0,$.Z)(function(){F&&ot!==$e&&at(ot)},[F]);var Je=function(){F&&z()},He=U.useRef(!1),gt=function(){F&&!He.current&&(He.current=!0,Y())};he(Je,gt);var Rt=function(Kt){ot===Kt&>()};return F?U.createElement(W.default,(0,p.Z)({ref:Ce,visible:$e},k,{motionAppear:pe==="show",onVisibleChanged:Rt}),function(st,Kt){var cn=st.className,At=st.style;return U.createElement("div",{ref:Kt,className:m()("".concat(De,"-treenode-motion"),cn),style:At},F.map(function(Xt){var Fe=Object.assign({},(B(Xt.data),Xt.data)),Ne=Xt.title,Me=Xt.key,I=Xt.isStart,ae=Xt.isEnd;delete Fe.children;var de=(0,Oe.H8)(Me,Te);return U.createElement(ne.Z,(0,p.Z)({},Fe,de,{title:Ne,active:ie,data:Xt.data,key:Me,isStart:I,isEnd:ae}))}))}):U.createElement(ne.Z,(0,p.Z)({domRef:Ce,className:Ge,style:K},xe,{active:ie}))}),Q=P;function q(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ge=M.length,K=Ce.length;if(Math.abs(Ge-K)!==1)return{add:!1,key:null};function k(F,pe){var z=new Map;F.forEach(function(ie){z.set(ie,!0)});var Y=pe.filter(function(ie){return!z.has(ie)});return Y.length===1?Y[0]:null}return Ge<K?{add:!0,key:k(M,Ce)}:{add:!1,key:k(Ce,M)}}function re(M,Ce,Ge){var K=M.findIndex(function(z){return z.key===Ge}),k=M[K+1],F=Ce.findIndex(function(z){return z.key===Ge});if(k){var pe=Ce.findIndex(function(z){return z.key===k.key});return Ce.slice(F+1,pe)}return Ce.slice(F+1)}var J=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],g={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},v=function(){},Z="RC_TREE_MOTION_".concat(Math.random()),ce={key:Z},Xe={key:Z,level:0,index:0,pos:"0",node:ce,nodes:[ce]},We={parent:null,children:[],pos:Xe.pos,data:ce,title:null,key:Z,isStart:[],isEnd:[]};function Dt(M,Ce,Ge,K){return Ce===!1||!Ge?M:M.slice(0,Math.ceil(Ge/K)+1)}function vt(M){var Ce=M.key,Ge=M.pos;return(0,Oe.km)(Ce,Ge)}function $t(M){for(var Ce=String(M.data.key),Ge=M;Ge.parent;)Ge=Ge.parent,Ce="".concat(Ge.data.key," > ").concat(Ce);return Ce}var Ht=U.forwardRef(function(M,Ce){var Ge=M.prefixCls,K=M.data,k=M.selectable,F=M.checkable,pe=M.expandedKeys,z=M.selectedKeys,Y=M.checkedKeys,ie=M.loadedKeys,Te=M.loadingKeys,xe=M.halfCheckedKeys,Ue=M.keyEntities,Ze=M.disabled,$e=M.dragging,at=M.dragOverNodeKey,ve=M.dropPosition,De=M.motion,ot=M.height,Je=M.itemHeight,He=M.virtual,gt=M.scrollWidth,Rt=M.focusable,st=M.activeItem,Kt=M.focused,cn=M.tabIndex,At=M.onKeyDown,Xt=M.onFocus,Fe=M.onBlur,Ne=M.onActiveChange,Me=M.onListChangeStart,I=M.onListChangeEnd,ae=(0,S.Z)(M,J),de=U.useRef(null),se=U.useRef(null);U.useImperativeHandle(Ce,function(){return{scrollTo:function(nt){de.current.scrollTo(nt)},getIndentWidth:function(){return se.current.offsetWidth}}});var Se=U.useState(pe),Mt=(0,R.Z)(Se,2),It=Mt[0],Ft=Mt[1],fn=U.useState(K),Le=(0,R.Z)(fn,2),_=Le[0],j=Le[1],E=U.useState(K),Pe=(0,R.Z)(E,2),ye=Pe[0],we=Pe[1],ze=U.useState([]),ut=(0,R.Z)(ze,2),Pt=ut[0],Vt=ut[1],Ut=U.useState(null),mn=(0,R.Z)(Ut,2),Re=mn[0],_e=mn[1],Ve=U.useRef(K);Ve.current=K;function et(){var tt=Ve.current;j(tt),we(tt),Vt([]),_e(null),I()}(0,$.Z)(function(){Ft(pe);var tt=q(It,pe);if(tt.key!==null)if(tt.add){var nt=_.findIndex(function(zt){var Ie=zt.key;return Ie===tt.key}),_t=Dt(re(_,K,tt.key),He,ot,Je),Ct=_.slice();Ct.splice(nt+1,0,We),we(Ct),Vt(_t),_e("show")}else{var pn=K.findIndex(function(zt){var Ie=zt.key;return Ie===tt.key}),_n=Dt(re(K,_,tt.key),He,ot,Je),an=K.slice();an.splice(pn+1,0,We),we(an),Vt(_n),_e("hide")}else _!==K&&(j(K),we(K))},[pe,K]),U.useEffect(function(){$e||et()},[$e]);var dt=De?ye:K,Et={expandedKeys:pe,selectedKeys:z,loadedKeys:ie,loadingKeys:Te,checkedKeys:Y,halfCheckedKeys:xe,dragOverNodeKey:at,dropPosition:ve,keyEntities:Ue};return U.createElement(U.Fragment,null,Kt&&st&&U.createElement("span",{style:g,"aria-live":"assertive"},$t(st)),U.createElement("div",null,U.createElement("input",{style:g,disabled:Rt===!1||Ze,tabIndex:Rt!==!1?cn:null,onKeyDown:At,onFocus:Xt,onBlur:Fe,value:"",onChange:v,"aria-label":"for screen reader"})),U.createElement("div",{className:"".concat(Ge,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},U.createElement("div",{className:"".concat(Ge,"-indent")},U.createElement("div",{ref:se,className:"".concat(Ge,"-indent-unit")}))),U.createElement(ee.Z,(0,p.Z)({},ae,{data:dt,itemKey:vt,height:ot,fullHeight:!1,virtual:He,itemHeight:Je,scrollWidth:gt,prefixCls:"".concat(Ge,"-list"),ref:de,role:"tree",onVisibleChange:function(nt){nt.every(function(_t){return vt(_t)!==Z})&&et()}}),function(tt){var nt=tt.pos,_t=Object.assign({},(B(tt.data),tt.data)),Ct=tt.title,pn=tt.key,_n=tt.isStart,an=tt.isEnd,zt=(0,Oe.km)(pn,nt);delete _t.key,delete _t.children;var Ie=(0,Oe.H8)(zt,Et);return U.createElement(Q,(0,p.Z)({},_t,Ie,{title:Ct,active:!!st&&pn===st.key,pos:nt,data:tt.data,isStart:_n,isEnd:an,motion:De,motionNodes:pn===Z?Pt:null,motionType:Re,onMotionStart:Me,onMotionEnd:et,treeNodeRequiredProps:Et,onMouseMove:function(){Ne(null)}}))}))}),ke=Ht,Bt=w(82661),xn=w(34643),Yt=w(65065),ln=10,mt=function(M){(0,le.Z)(Ge,M);var Ce=(0,o.Z)(Ge);function Ge(){var K;(0,O.Z)(this,Ge);for(var k=arguments.length,F=new Array(k),pe=0;pe<k;pe++)F[pe]=arguments[pe];return K=Ce.call.apply(Ce,[this].concat(F)),(0,b.Z)((0,ge.Z)(K),"destroyed",!1),(0,b.Z)((0,ge.Z)(K),"delayedDragEnterLogic",void 0),(0,b.Z)((0,ge.Z)(K),"loadingRetryTimes",{}),(0,b.Z)((0,ge.Z)(K),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Oe.w$)()}),(0,b.Z)((0,ge.Z)(K),"dragStartMousePosition",null),(0,b.Z)((0,ge.Z)(K),"dragNodeProps",null),(0,b.Z)((0,ge.Z)(K),"currentMouseOverDroppableNodeKey",null),(0,b.Z)((0,ge.Z)(K),"listRef",U.createRef()),(0,b.Z)((0,ge.Z)(K),"onNodeDragStart",function(z,Y){var ie=K.state,Te=ie.expandedKeys,xe=ie.keyEntities,Ue=K.props.onDragStart,Ze=Y.eventKey;K.dragNodeProps=Y,K.dragStartMousePosition={x:z.clientX,y:z.clientY};var $e=(0,Bt._5)(Te,Ze);K.setState({draggingNodeKey:Ze,dragChildrenKeys:(0,Bt.wA)(Ze,xe),indent:K.listRef.current.getIndentWidth()}),K.setExpandedKeys($e),window.addEventListener("dragend",K.onWindowDragEnd),Ue==null||Ue({event:z,node:(0,Oe.F)(Y)})}),(0,b.Z)((0,ge.Z)(K),"onNodeDragEnter",function(z,Y){var ie=K.state,Te=ie.expandedKeys,xe=ie.keyEntities,Ue=ie.dragChildrenKeys,Ze=ie.flattenNodes,$e=ie.indent,at=K.props,ve=at.onDragEnter,De=at.onExpand,ot=at.allowDrop,Je=at.direction,He=Y.pos,gt=Y.eventKey;if(K.currentMouseOverDroppableNodeKey!==gt&&(K.currentMouseOverDroppableNodeKey=gt),!K.dragNodeProps){K.resetDragState();return}var Rt=(0,Bt.OM)(z,K.dragNodeProps,Y,$e,K.dragStartMousePosition,ot,Ze,xe,Te,Je),st=Rt.dropPosition,Kt=Rt.dropLevelOffset,cn=Rt.dropTargetKey,At=Rt.dropContainerKey,Xt=Rt.dropTargetPos,Fe=Rt.dropAllowed,Ne=Rt.dragOverNodeKey;if(Ue.includes(cn)||!Fe){K.resetDragState();return}if(K.delayedDragEnterLogic||(K.delayedDragEnterLogic={}),Object.keys(K.delayedDragEnterLogic).forEach(function(Me){clearTimeout(K.delayedDragEnterLogic[Me])}),K.dragNodeProps.eventKey!==Y.eventKey&&(z.persist(),K.delayedDragEnterLogic[He]=window.setTimeout(function(){if(K.state.draggingNodeKey!==null){var Me=(0,me.Z)(Te),I=(0,Yt.Z)(xe,Y.eventKey);I&&(I.children||[]).length&&(Me=(0,Bt.L0)(Te,Y.eventKey)),K.props.hasOwnProperty("expandedKeys")||K.setExpandedKeys(Me),De==null||De(Me,{node:(0,Oe.F)(Y),expanded:!0,nativeEvent:z.nativeEvent})}},800)),K.dragNodeProps.eventKey===cn&&Kt===0){K.resetDragState();return}K.setState({dragOverNodeKey:Ne,dropPosition:st,dropLevelOffset:Kt,dropTargetKey:cn,dropContainerKey:At,dropTargetPos:Xt,dropAllowed:Fe}),ve==null||ve({event:z,node:(0,Oe.F)(Y),expandedKeys:Te})}),(0,b.Z)((0,ge.Z)(K),"onNodeDragOver",function(z,Y){var ie=K.state,Te=ie.dragChildrenKeys,xe=ie.flattenNodes,Ue=ie.keyEntities,Ze=ie.expandedKeys,$e=ie.indent,at=K.props,ve=at.onDragOver,De=at.allowDrop,ot=at.direction;if(K.dragNodeProps){var Je=(0,Bt.OM)(z,K.dragNodeProps,Y,$e,K.dragStartMousePosition,De,xe,Ue,Ze,ot),He=Je.dropPosition,gt=Je.dropLevelOffset,Rt=Je.dropTargetKey,st=Je.dropContainerKey,Kt=Je.dropTargetPos,cn=Je.dropAllowed,At=Je.dragOverNodeKey;Te.includes(Rt)||!cn||(K.dragNodeProps.eventKey===Rt&>===0?K.state.dropPosition===null&&K.state.dropLevelOffset===null&&K.state.dropTargetKey===null&&K.state.dropContainerKey===null&&K.state.dropTargetPos===null&&K.state.dropAllowed===!1&&K.state.dragOverNodeKey===null||K.resetDragState():He===K.state.dropPosition&>===K.state.dropLevelOffset&&Rt===K.state.dropTargetKey&&st===K.state.dropContainerKey&&Kt===K.state.dropTargetPos&&cn===K.state.dropAllowed&&At===K.state.dragOverNodeKey||K.setState({dropPosition:He,dropLevelOffset:gt,dropTargetKey:Rt,dropContainerKey:st,dropTargetPos:Kt,dropAllowed:cn,dragOverNodeKey:At}),ve==null||ve({event:z,node:(0,Oe.F)(Y)}))}}),(0,b.Z)((0,ge.Z)(K),"onNodeDragLeave",function(z,Y){K.currentMouseOverDroppableNodeKey===Y.eventKey&&!z.currentTarget.contains(z.relatedTarget)&&(K.resetDragState(),K.currentMouseOverDroppableNodeKey=null);var ie=K.props.onDragLeave;ie==null||ie({event:z,node:(0,Oe.F)(Y)})}),(0,b.Z)((0,ge.Z)(K),"onWindowDragEnd",function(z){K.onNodeDragEnd(z,null,!0),window.removeEventListener("dragend",K.onWindowDragEnd)}),(0,b.Z)((0,ge.Z)(K),"onNodeDragEnd",function(z,Y){var ie=K.props.onDragEnd;K.setState({dragOverNodeKey:null}),K.cleanDragState(),ie==null||ie({event:z,node:(0,Oe.F)(Y)}),K.dragNodeProps=null,window.removeEventListener("dragend",K.onWindowDragEnd)}),(0,b.Z)((0,ge.Z)(K),"onNodeDrop",function(z,Y){var ie,Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xe=K.state,Ue=xe.dragChildrenKeys,Ze=xe.dropPosition,$e=xe.dropTargetKey,at=xe.dropTargetPos,ve=xe.dropAllowed;if(ve){var De=K.props.onDrop;if(K.setState({dragOverNodeKey:null}),K.cleanDragState(),$e!==null){var ot=(0,oe.Z)((0,oe.Z)({},(0,Oe.H8)($e,K.getTreeNodeRequiredProps())),{},{active:((ie=K.getActiveItem())===null||ie===void 0?void 0:ie.key)===$e,data:(0,Yt.Z)(K.state.keyEntities,$e).node}),Je=Ue.includes($e);(0,L.ZP)(!Je,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var He=(0,Bt.yx)(at),gt={event:z,node:(0,Oe.F)(ot),dragNode:K.dragNodeProps?(0,Oe.F)(K.dragNodeProps):null,dragNodesKeys:[K.dragNodeProps.eventKey].concat(Ue),dropToGap:Ze!==0,dropPosition:Ze+Number(He[He.length-1])};Te||De==null||De(gt),K.dragNodeProps=null}}}),(0,b.Z)((0,ge.Z)(K),"cleanDragState",function(){var z=K.state.draggingNodeKey;z!==null&&K.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),K.dragStartMousePosition=null,K.currentMouseOverDroppableNodeKey=null}),(0,b.Z)((0,ge.Z)(K),"triggerExpandActionExpand",function(z,Y){var ie=K.state,Te=ie.expandedKeys,xe=ie.flattenNodes,Ue=Y.expanded,Ze=Y.key,$e=Y.isLeaf;if(!($e||z.shiftKey||z.metaKey||z.ctrlKey)){var at=xe.filter(function(De){return De.key===Ze})[0],ve=(0,Oe.F)((0,oe.Z)((0,oe.Z)({},(0,Oe.H8)(Ze,K.getTreeNodeRequiredProps())),{},{data:at.data}));K.setExpandedKeys(Ue?(0,Bt._5)(Te,Ze):(0,Bt.L0)(Te,Ze)),K.onNodeExpand(z,ve)}}),(0,b.Z)((0,ge.Z)(K),"onNodeClick",function(z,Y){var ie=K.props,Te=ie.onClick,xe=ie.expandAction;xe==="click"&&K.triggerExpandActionExpand(z,Y),Te==null||Te(z,Y)}),(0,b.Z)((0,ge.Z)(K),"onNodeDoubleClick",function(z,Y){var ie=K.props,Te=ie.onDoubleClick,xe=ie.expandAction;xe==="doubleClick"&&K.triggerExpandActionExpand(z,Y),Te==null||Te(z,Y)}),(0,b.Z)((0,ge.Z)(K),"onNodeSelect",function(z,Y){var ie=K.state.selectedKeys,Te=K.state,xe=Te.keyEntities,Ue=Te.fieldNames,Ze=K.props,$e=Ze.onSelect,at=Ze.multiple,ve=Y.selected,De=Y[Ue.key],ot=!ve;ot?at?ie=(0,Bt.L0)(ie,De):ie=[De]:ie=(0,Bt._5)(ie,De);var Je=ie.map(function(He){var gt=(0,Yt.Z)(xe,He);return gt?gt.node:null}).filter(Boolean);K.setUncontrolledState({selectedKeys:ie}),$e==null||$e(ie,{event:"select",selected:ot,node:Y,selectedNodes:Je,nativeEvent:z.nativeEvent})}),(0,b.Z)((0,ge.Z)(K),"onNodeCheck",function(z,Y,ie){var Te=K.state,xe=Te.keyEntities,Ue=Te.checkedKeys,Ze=Te.halfCheckedKeys,$e=K.props,at=$e.checkStrictly,ve=$e.onCheck,De=Y.key,ot,Je={event:"check",node:Y,checked:ie,nativeEvent:z.nativeEvent};if(at){var He=ie?(0,Bt.L0)(Ue,De):(0,Bt._5)(Ue,De),gt=(0,Bt._5)(Ze,De);ot={checked:He,halfChecked:gt},Je.checkedNodes=He.map(function(Xt){return(0,Yt.Z)(xe,Xt)}).filter(Boolean).map(function(Xt){return Xt.node}),K.setUncontrolledState({checkedKeys:He})}else{var Rt=(0,xn.S)([].concat((0,me.Z)(Ue),[De]),!0,xe),st=Rt.checkedKeys,Kt=Rt.halfCheckedKeys;if(!ie){var cn=new Set(st);cn.delete(De);var At=(0,xn.S)(Array.from(cn),{checked:!1,halfCheckedKeys:Kt},xe);st=At.checkedKeys,Kt=At.halfCheckedKeys}ot=st,Je.checkedNodes=[],Je.checkedNodesPositions=[],Je.halfCheckedKeys=Kt,st.forEach(function(Xt){var Fe=(0,Yt.Z)(xe,Xt);if(Fe){var Ne=Fe.node,Me=Fe.pos;Je.checkedNodes.push(Ne),Je.checkedNodesPositions.push({node:Ne,pos:Me})}}),K.setUncontrolledState({checkedKeys:st},!1,{halfCheckedKeys:Kt})}ve==null||ve(ot,Je)}),(0,b.Z)((0,ge.Z)(K),"onNodeLoad",function(z){var Y,ie=z.key,Te=K.state.keyEntities,xe=(0,Yt.Z)(Te,ie);if(!(xe!=null&&(Y=xe.children)!==null&&Y!==void 0&&Y.length)){var Ue=new Promise(function(Ze,$e){K.setState(function(at){var ve=at.loadedKeys,De=ve===void 0?[]:ve,ot=at.loadingKeys,Je=ot===void 0?[]:ot,He=K.props,gt=He.loadData,Rt=He.onLoad;if(!gt||De.includes(ie)||Je.includes(ie))return null;var st=gt(z);return st.then(function(){var Kt=K.state.loadedKeys,cn=(0,Bt.L0)(Kt,ie);Rt==null||Rt(cn,{event:"load",node:z}),K.setUncontrolledState({loadedKeys:cn}),K.setState(function(At){return{loadingKeys:(0,Bt._5)(At.loadingKeys,ie)}}),Ze()}).catch(function(Kt){if(K.setState(function(At){return{loadingKeys:(0,Bt._5)(At.loadingKeys,ie)}}),K.loadingRetryTimes[ie]=(K.loadingRetryTimes[ie]||0)+1,K.loadingRetryTimes[ie]>=ln){var cn=K.state.loadedKeys;(0,L.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),K.setUncontrolledState({loadedKeys:(0,Bt.L0)(cn,ie)}),Ze()}$e(Kt)}),{loadingKeys:(0,Bt.L0)(Je,ie)}})});return Ue.catch(function(){}),Ue}}),(0,b.Z)((0,ge.Z)(K),"onNodeMouseEnter",function(z,Y){var ie=K.props.onMouseEnter;ie==null||ie({event:z,node:Y})}),(0,b.Z)((0,ge.Z)(K),"onNodeMouseLeave",function(z,Y){var ie=K.props.onMouseLeave;ie==null||ie({event:z,node:Y})}),(0,b.Z)((0,ge.Z)(K),"onNodeContextMenu",function(z,Y){var ie=K.props.onRightClick;ie&&(z.preventDefault(),ie({event:z,node:Y}))}),(0,b.Z)((0,ge.Z)(K),"onFocus",function(){var z=K.props.onFocus;K.setState({focused:!0});for(var Y=arguments.length,ie=new Array(Y),Te=0;Te<Y;Te++)ie[Te]=arguments[Te];z==null||z.apply(void 0,ie)}),(0,b.Z)((0,ge.Z)(K),"onBlur",function(){var z=K.props.onBlur;K.setState({focused:!1}),K.onActiveChange(null);for(var Y=arguments.length,ie=new Array(Y),Te=0;Te<Y;Te++)ie[Te]=arguments[Te];z==null||z.apply(void 0,ie)}),(0,b.Z)((0,ge.Z)(K),"getTreeNodeRequiredProps",function(){var z=K.state,Y=z.expandedKeys,ie=z.selectedKeys,Te=z.loadedKeys,xe=z.loadingKeys,Ue=z.checkedKeys,Ze=z.halfCheckedKeys,$e=z.dragOverNodeKey,at=z.dropPosition,ve=z.keyEntities;return{expandedKeys:Y||[],selectedKeys:ie||[],loadedKeys:Te||[],loadingKeys:xe||[],checkedKeys:Ue||[],halfCheckedKeys:Ze||[],dragOverNodeKey:$e,dropPosition:at,keyEntities:ve}}),(0,b.Z)((0,ge.Z)(K),"setExpandedKeys",function(z){var Y=K.state,ie=Y.treeData,Te=Y.fieldNames,xe=(0,Oe.oH)(ie,z,Te);K.setUncontrolledState({expandedKeys:z,flattenNodes:xe},!0)}),(0,b.Z)((0,ge.Z)(K),"onNodeExpand",function(z,Y){var ie=K.state.expandedKeys,Te=K.state,xe=Te.listChanging,Ue=Te.fieldNames,Ze=K.props,$e=Ze.onExpand,at=Ze.loadData,ve=Y.expanded,De=Y[Ue.key];if(!xe){var ot=ie.includes(De),Je=!ve;if((0,L.ZP)(ve&&ot||!ve&&!ot,"Expand state not sync with index check"),ie=Je?(0,Bt.L0)(ie,De):(0,Bt._5)(ie,De),K.setExpandedKeys(ie),$e==null||$e(ie,{node:Y,expanded:Je,nativeEvent:z.nativeEvent}),Je&&at){var He=K.onNodeLoad(Y);He&&He.then(function(){var gt=(0,Oe.oH)(K.state.treeData,ie,Ue);K.setUncontrolledState({flattenNodes:gt})}).catch(function(){var gt=K.state.expandedKeys,Rt=(0,Bt._5)(gt,De);K.setExpandedKeys(Rt)})}}}),(0,b.Z)((0,ge.Z)(K),"onListChangeStart",function(){K.setUncontrolledState({listChanging:!0})}),(0,b.Z)((0,ge.Z)(K),"onListChangeEnd",function(){setTimeout(function(){K.setUncontrolledState({listChanging:!1})})}),(0,b.Z)((0,ge.Z)(K),"onActiveChange",function(z){var Y=K.state.activeKey,ie=K.props,Te=ie.onActiveChange,xe=ie.itemScrollOffset,Ue=xe===void 0?0:xe;Y!==z&&(K.setState({activeKey:z}),z!==null&&K.scrollTo({key:z,offset:Ue}),Te==null||Te(z))}),(0,b.Z)((0,ge.Z)(K),"getActiveItem",function(){var z=K.state,Y=z.activeKey,ie=z.flattenNodes;return Y===null?null:ie.find(function(Te){var xe=Te.key;return xe===Y})||null}),(0,b.Z)((0,ge.Z)(K),"offsetActiveKey",function(z){var Y=K.state,ie=Y.flattenNodes,Te=Y.activeKey,xe=ie.findIndex(function($e){var at=$e.key;return at===Te});xe===-1&&z<0&&(xe=ie.length),xe=(xe+z+ie.length)%ie.length;var Ue=ie[xe];if(Ue){var Ze=Ue.key;K.onActiveChange(Ze)}else K.onActiveChange(null)}),(0,b.Z)((0,ge.Z)(K),"onKeyDown",function(z){var Y=K.state,ie=Y.activeKey,Te=Y.expandedKeys,xe=Y.checkedKeys,Ue=Y.fieldNames,Ze=K.props,$e=Ze.onKeyDown,at=Ze.checkable,ve=Ze.selectable;switch(z.which){case y.Z.UP:{K.offsetActiveKey(-1),z.preventDefault();break}case y.Z.DOWN:{K.offsetActiveKey(1),z.preventDefault();break}}var De=K.getActiveItem();if(De&&De.data){var ot=K.getTreeNodeRequiredProps(),Je=De.data.isLeaf===!1||!!(De.data[Ue.children]||[]).length,He=(0,Oe.F)((0,oe.Z)((0,oe.Z)({},(0,Oe.H8)(ie,ot)),{},{data:De.data,active:!0}));switch(z.which){case y.Z.LEFT:{Je&&Te.includes(ie)?K.onNodeExpand({},He):De.parent&&K.onActiveChange(De.parent.key),z.preventDefault();break}case y.Z.RIGHT:{Je&&!Te.includes(ie)?K.onNodeExpand({},He):De.children&&De.children.length&&K.onActiveChange(De.children[0].key),z.preventDefault();break}case y.Z.ENTER:case y.Z.SPACE:{at&&!He.disabled&&He.checkable!==!1&&!He.disableCheckbox?K.onNodeCheck({},He,!xe.includes(ie)):!at&&ve&&!He.disabled&&He.selectable!==!1&&K.onNodeSelect({},He);break}}}$e==null||$e(z)}),(0,b.Z)((0,ge.Z)(K),"setUncontrolledState",function(z){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!K.destroyed){var Te=!1,xe=!0,Ue={};Object.keys(z).forEach(function(Ze){if(K.props.hasOwnProperty(Ze)){xe=!1;return}Te=!0,Ue[Ze]=z[Ze]}),Te&&(!Y||xe)&&K.setState((0,oe.Z)((0,oe.Z)({},Ue),ie))}}),(0,b.Z)((0,ge.Z)(K),"scrollTo",function(z){K.listRef.current.scrollTo(z)}),K}return(0,d.Z)(Ge,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var k=this.props,F=k.activeKey,pe=k.itemScrollOffset,z=pe===void 0?0:pe;F!==void 0&&F!==this.state.activeKey&&(this.setState({activeKey:F}),F!==null&&this.scrollTo({key:F,offset:z}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var k=this.state,F=k.focused,pe=k.flattenNodes,z=k.keyEntities,Y=k.draggingNodeKey,ie=k.activeKey,Te=k.dropLevelOffset,xe=k.dropContainerKey,Ue=k.dropTargetKey,Ze=k.dropPosition,$e=k.dragOverNodeKey,at=k.indent,ve=this.props,De=ve.prefixCls,ot=ve.className,Je=ve.style,He=ve.showLine,gt=ve.focusable,Rt=ve.tabIndex,st=Rt===void 0?0:Rt,Kt=ve.selectable,cn=ve.showIcon,At=ve.icon,Xt=ve.switcherIcon,Fe=ve.draggable,Ne=ve.checkable,Me=ve.checkStrictly,I=ve.disabled,ae=ve.motion,de=ve.loadData,se=ve.filterTreeNode,Se=ve.height,Mt=ve.itemHeight,It=ve.scrollWidth,Ft=ve.virtual,fn=ve.titleRender,Le=ve.dropIndicatorRender,_=ve.onContextMenu,j=ve.onScroll,E=ve.direction,Pe=ve.rootClassName,ye=ve.rootStyle,we=(0,x.Z)(this.props,{aria:!0,data:!0}),ze;Fe&&((0,fe.Z)(Fe)==="object"?ze=Fe:typeof Fe=="function"?ze={nodeDraggable:Fe}:ze={});var ut={prefixCls:De,selectable:Kt,showIcon:cn,icon:At,switcherIcon:Xt,draggable:ze,draggingNodeKey:Y,checkable:Ne,checkStrictly:Me,disabled:I,keyEntities:z,dropLevelOffset:Te,dropContainerKey:xe,dropTargetKey:Ue,dropPosition:Ze,dragOverNodeKey:$e,indent:at,direction:E,dropIndicatorRender:Le,loadData:de,filterTreeNode:se,titleRender:fn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return U.createElement(V.k.Provider,{value:ut},U.createElement("div",{className:m()(De,ot,Pe,(0,b.Z)((0,b.Z)((0,b.Z)({},"".concat(De,"-show-line"),He),"".concat(De,"-focused"),F),"".concat(De,"-active-focused"),ie!==null)),style:ye},U.createElement(ke,(0,p.Z)({ref:this.listRef,prefixCls:De,style:Je,data:pe,disabled:I,selectable:Kt,checkable:!!Ne,motion:ae,dragging:Y!==null,height:Se,itemHeight:Mt,virtual:Ft,focusable:gt,focused:F,tabIndex:st,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:_,onScroll:j,scrollWidth:It},this.getTreeNodeRequiredProps(),we))))}}],[{key:"getDerivedStateFromProps",value:function(k,F){var pe=F.prevProps,z={prevProps:k};function Y(st){return!pe&&k.hasOwnProperty(st)||pe&&pe[st]!==k[st]}var ie,Te=F.fieldNames;if(Y("fieldNames")&&(Te=(0,Oe.w$)(k.fieldNames),z.fieldNames=Te),Y("treeData")?ie=k.treeData:Y("children")&&((0,L.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ie=(0,Oe.zn)(k.children)),ie){z.treeData=ie;var xe=(0,Oe.I8)(ie,{fieldNames:Te});z.keyEntities=(0,oe.Z)((0,b.Z)({},Z,Xe),xe.keyEntities)}var Ue=z.keyEntities||F.keyEntities;if(Y("expandedKeys")||pe&&Y("autoExpandParent"))z.expandedKeys=k.autoExpandParent||!pe&&k.defaultExpandParent?(0,Bt.r7)(k.expandedKeys,Ue):k.expandedKeys;else if(!pe&&k.defaultExpandAll){var Ze=(0,oe.Z)({},Ue);delete Ze[Z];var $e=[];Object.keys(Ze).forEach(function(st){var Kt=Ze[st];Kt.children&&Kt.children.length&&$e.push(Kt.key)}),z.expandedKeys=$e}else!pe&&k.defaultExpandedKeys&&(z.expandedKeys=k.autoExpandParent||k.defaultExpandParent?(0,Bt.r7)(k.defaultExpandedKeys,Ue):k.defaultExpandedKeys);if(z.expandedKeys||delete z.expandedKeys,ie||z.expandedKeys){var at=(0,Oe.oH)(ie||F.treeData,z.expandedKeys||F.expandedKeys,Te);z.flattenNodes=at}if(k.selectable&&(Y("selectedKeys")?z.selectedKeys=(0,Bt.BT)(k.selectedKeys,k):!pe&&k.defaultSelectedKeys&&(z.selectedKeys=(0,Bt.BT)(k.defaultSelectedKeys,k))),k.checkable){var ve;if(Y("checkedKeys")?ve=(0,Bt.E6)(k.checkedKeys)||{}:!pe&&k.defaultCheckedKeys?ve=(0,Bt.E6)(k.defaultCheckedKeys)||{}:ie&&(ve=(0,Bt.E6)(k.checkedKeys)||{checkedKeys:F.checkedKeys,halfCheckedKeys:F.halfCheckedKeys}),ve){var De=ve,ot=De.checkedKeys,Je=ot===void 0?[]:ot,He=De.halfCheckedKeys,gt=He===void 0?[]:He;if(!k.checkStrictly){var Rt=(0,xn.S)(Je,!0,Ue);Je=Rt.checkedKeys,gt=Rt.halfCheckedKeys}z.checkedKeys=Je,z.halfCheckedKeys=gt}}return Y("loadedKeys")&&(z.loadedKeys=k.loadedKeys),z}}]),Ge}(U.Component);(0,b.Z)(mt,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:N,allowDrop:function(){return!0},expandAction:!1}),(0,b.Z)(mt,"TreeNode",ne.Z);var Be=mt,be=Be},82661:function(Ln,jt,w){"use strict";w.d(jt,{BT:function(){return U},E6:function(){return N},L0:function(){return b},OM:function(){return L},_5:function(){return o},r7:function(){return B},wA:function(){return m},yx:function(){return T}});var p=w(92393),fe=w(10928),oe=w(48736),me=w(59301),O=w(639),d=w(65065),ge=w(34061),le=null;function o(R,S){if(!R)return[];var $=R.slice(),ee=$.indexOf(S);return ee>=0&&$.splice(ee,1),$}function b(R,S){var $=(R||[]).slice();return $.indexOf(S)===-1&&$.push(S),$}function T(R){return R.split("-")}function m(R,S){var $=[],ee=(0,d.Z)(S,R);function W(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ne.forEach(function(ue){var he=ue.key,Oe=ue.children;$.push(he),W(Oe)})}return W(ee.children),$}function y(R){if(R.parent){var S=T(R.pos);return Number(S[S.length-1])===R.parent.children.length-1}return!1}function x(R){var S=T(R.pos);return Number(S[S.length-1])===0}function L(R,S,$,ee,W,ne,ue,he,Oe,G){var P,Q=R.clientX,q=R.clientY,re=R.target.getBoundingClientRect(),J=re.top,g=re.height,v=(G==="rtl"?-1:1)*(((W==null?void 0:W.x)||0)-Q),Z=(v-12)/ee,ce=Oe.filter(function(be){var M;return(M=he[be])===null||M===void 0||(M=M.children)===null||M===void 0?void 0:M.length}),Xe=(0,d.Z)(he,$.eventKey);if(q<J+g/2){var We=ue.findIndex(function(be){return be.key===Xe.key}),Dt=We<=0?0:We-1,vt=ue[Dt].key;Xe=(0,d.Z)(he,vt)}var $t=Xe.key,Ht=Xe,ke=Xe.key,Bt=0,xn=0;if(!ce.includes($t))for(var Yt=0;Yt<Z&&y(Xe);Yt+=1)Xe=Xe.parent,xn+=1;var ln=S.data,mt=Xe.node,Be=!0;return x(Xe)&&Xe.level===0&&q<J+g/2&&ne({dragNode:ln,dropNode:mt,dropPosition:-1})&&Xe.key===$.eventKey?Bt=-1:(Ht.children||[]).length&&ce.includes(ke)?ne({dragNode:ln,dropNode:mt,dropPosition:0})?Bt=0:Be=!1:xn===0?Z>-1.5?ne({dragNode:ln,dropNode:mt,dropPosition:1})?Bt=1:Be=!1:ne({dragNode:ln,dropNode:mt,dropPosition:0})?Bt=0:ne({dragNode:ln,dropNode:mt,dropPosition:1})?Bt=1:Be=!1:ne({dragNode:ln,dropNode:mt,dropPosition:1})?Bt=1:Be=!1,{dropPosition:Bt,dropLevelOffset:xn,dropTargetKey:Xe.key,dropTargetPos:Xe.pos,dragOverNodeKey:ke,dropContainerKey:Bt===0?null:((P=Xe.parent)===null||P===void 0?void 0:P.key)||null,dropAllowed:Be}}function U(R,S){if(R){var $=S.multiple;return $?R.slice():R.length?[R[0]]:R}}var V=function(S){return S};function te(R,S){if(!R)return[];var $=S||{},ee=$.processProps,W=ee===void 0?V:ee,ne=Array.isArray(R)?R:[R];return ne.map(function(ue){var he=ue.children,Oe=_objectWithoutProperties(ue,le),G=te(he,S);return React.createElement(TreeNode,_extends({key:Oe.key},W(Oe)),G)})}function N(R){if(!R)return null;var S;if(Array.isArray(R))S={checkedKeys:R,halfCheckedKeys:void 0};else if((0,fe.Z)(R)==="object")S={checkedKeys:R.checked||void 0,halfCheckedKeys:R.halfChecked||void 0};else return(0,oe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return S}function B(R,S){var $=new Set;function ee(W){if(!$.has(W)){var ne=(0,d.Z)(S,W);if(ne){$.add(W);var ue=ne.parent,he=ne.node;he.disabled||ue&&ee(ue.key)}}}return(R||[]).forEach(function(W){ee(W)}),(0,p.Z)($)}},34643:function(Ln,jt,w){"use strict";w.d(jt,{S:function(){return ge}});var p=w(48736),fe=w(65065);function oe(le,o){var b=new Set;return le.forEach(function(T){o.has(T)||b.add(T)}),b}function me(le){var o=le||{},b=o.disabled,T=o.disableCheckbox,m=o.checkable;return!!(b||T)||m===!1}function O(le,o,b,T){for(var m=new Set(le),y=new Set,x=0;x<=b;x+=1){var L=o.get(x)||new Set;L.forEach(function(N){var B=N.key,R=N.node,S=N.children,$=S===void 0?[]:S;m.has(B)&&!T(R)&&$.filter(function(ee){return!T(ee.node)}).forEach(function(ee){m.add(ee.key)})})}for(var U=new Set,V=b;V>=0;V-=1){var te=o.get(V)||new Set;te.forEach(function(N){var B=N.parent,R=N.node;if(!(T(R)||!N.parent||U.has(N.parent.key))){if(T(N.parent.node)){U.add(B.key);return}var S=!0,$=!1;(B.children||[]).filter(function(ee){return!T(ee.node)}).forEach(function(ee){var W=ee.key,ne=m.has(W);S&&!ne&&(S=!1),!$&&(ne||y.has(W))&&($=!0)}),S&&m.add(B.key),$&&y.add(B.key),U.add(B.key)}})}return{checkedKeys:Array.from(m),halfCheckedKeys:Array.from(oe(y,m))}}function d(le,o,b,T,m){for(var y=new Set(le),x=new Set(o),L=0;L<=T;L+=1){var U=b.get(L)||new Set;U.forEach(function(B){var R=B.key,S=B.node,$=B.children,ee=$===void 0?[]:$;!y.has(R)&&!x.has(R)&&!m(S)&&ee.filter(function(W){return!m(W.node)}).forEach(function(W){y.delete(W.key)})})}x=new Set;for(var V=new Set,te=T;te>=0;te-=1){var N=b.get(te)||new Set;N.forEach(function(B){var R=B.parent,S=B.node;if(!(m(S)||!B.parent||V.has(B.parent.key))){if(m(B.parent.node)){V.add(R.key);return}var $=!0,ee=!1;(R.children||[]).filter(function(W){return!m(W.node)}).forEach(function(W){var ne=W.key,ue=y.has(ne);$&&!ue&&($=!1),!ee&&(ue||x.has(ne))&&(ee=!0)}),$||y.delete(R.key),ee&&x.add(R.key),V.add(R.key)}})}return{checkedKeys:Array.from(y),halfCheckedKeys:Array.from(oe(x,y))}}function ge(le,o,b,T){var m=[],y;T?y=T:y=me;var x=new Set(le.filter(function(te){var N=!!(0,fe.Z)(b,te);return N||m.push(te),N})),L=new Map,U=0;Object.keys(b).forEach(function(te){var N=b[te],B=N.level,R=L.get(B);R||(R=new Set,L.set(B,R)),R.add(N),U=Math.max(U,B)}),(0,p.ZP)(!m.length,"Tree missing follow keys: ".concat(m.slice(0,100).map(function(te){return"'".concat(te,"'")}).join(", ")));var V;return o===!0?V=O(x,L,U,y):V=d(x,o.halfCheckedKeys,L,U,y),V}},65065:function(Ln,jt,w){"use strict";w.d(jt,{Z:function(){return p}});function p(fe,oe){return fe[oe]}},34061:function(Ln,jt,w){"use strict";w.d(jt,{F:function(){return B},H8:function(){return N},I8:function(){return te},km:function(){return m},oH:function(){return U},w$:function(){return y},zn:function(){return L}});var p=w(10928),fe=w(92393),oe=w(20049),me=w(5883),O=w(11592),d=w(2738),ge=w(48736),le=w(65065),o=["children"];function b(R,S){return"".concat(R,"-").concat(S)}function T(R){return R&&R.type&&R.type.isTreeNode}function m(R,S){return R!=null?R:S}function y(R){var S=R||{},$=S.title,ee=S._title,W=S.key,ne=S.children,ue=$||"title";return{title:ue,_title:ee||[ue],key:W||"key",children:ne||"children"}}function x(R,S){var $=new Map;function ee(W){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(W||[]).forEach(function(ue){var he=ue[S.key],Oe=ue[S.children];warning(he!=null,"Tree node must have a certain key: [".concat(ne).concat(he,"]"));var G=String(he);warning(!$.has(G)||he===null||he===void 0,"Same 'key' exist in the Tree: ".concat(G)),$.set(G,!0),ee(Oe,"".concat(ne).concat(G," > "))})}ee(R)}function L(R){function S($){var ee=(0,O.Z)($);return ee.map(function(W){if(!T(W))return(0,ge.ZP)(!W,"Tree/TreeNode can only accept TreeNode as children."),null;var ne=W.key,ue=W.props,he=ue.children,Oe=(0,me.Z)(ue,o),G=(0,oe.Z)({key:ne},Oe),P=S(he);return P.length&&(G.children=P),G}).filter(function(W){return W})}return S(R)}function U(R,S,$){var ee=y($),W=ee._title,ne=ee.key,ue=ee.children,he=new Set(S===!0?[]:S),Oe=[];function G(P){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return P.map(function(q,re){for(var J=b(Q?Q.pos:"0",re),g=m(q[ne],J),v,Z=0;Z<W.length;Z+=1){var ce=W[Z];if(q[ce]!==void 0){v=q[ce];break}}var Xe=Object.assign((0,d.Z)(q,[].concat((0,fe.Z)(W),[ne,ue])),{title:v,key:g,parent:Q,pos:J,children:null,data:q,isStart:[].concat((0,fe.Z)(Q?Q.isStart:[]),[re===0]),isEnd:[].concat((0,fe.Z)(Q?Q.isEnd:[]),[re===P.length-1])});return Oe.push(Xe),S===!0||he.has(g)?Xe.children=G(q[ue]||[],Xe):Xe.children=[],Xe})}return G(R),Oe}function V(R,S,$){var ee={};(0,p.Z)($)==="object"?ee=$:ee={externalGetKey:$},ee=ee||{};var W=ee,ne=W.childrenPropName,ue=W.externalGetKey,he=W.fieldNames,Oe=y(he),G=Oe.key,P=Oe.children,Q=ne||P,q;ue?typeof ue=="string"?q=function(g){return g[ue]}:typeof ue=="function"&&(q=function(g){return ue(g)}):q=function(g,v){return m(g[G],v)};function re(J,g,v,Z){var ce=J?J[Q]:R,Xe=J?b(v.pos,g):"0",We=J?[].concat((0,fe.Z)(Z),[J]):[];if(J){var Dt=q(J,Xe),vt={node:J,index:g,pos:Xe,key:Dt,parentPos:v.node?v.pos:null,level:v.level+1,nodes:We};S(vt)}ce&&ce.forEach(function($t,Ht){re($t,Ht,{node:J,pos:Xe,level:v?v.level+1:-1},We)})}re(null)}function te(R){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=S.initWrapper,ee=S.processEntity,W=S.onProcessFinished,ne=S.externalGetKey,ue=S.childrenPropName,he=S.fieldNames,Oe=arguments.length>2?arguments[2]:void 0,G=ne||Oe,P={},Q={},q={posEntities:P,keyEntities:Q};return $&&(q=$(q)||q),V(R,function(re){var J=re.node,g=re.index,v=re.pos,Z=re.key,ce=re.parentPos,Xe=re.level,We=re.nodes,Dt={node:J,nodes:We,index:g,key:Z,pos:v,level:Xe},vt=m(Z,v);P[v]=Dt,Q[vt]=Dt,Dt.parent=P[ce],Dt.parent&&(Dt.parent.children=Dt.parent.children||[],Dt.parent.children.push(Dt)),ee&&ee(Dt,q)},{externalGetKey:G,childrenPropName:ue,fieldNames:he}),W&&W(q),q}function N(R,S){var $=S.expandedKeys,ee=S.selectedKeys,W=S.loadedKeys,ne=S.loadingKeys,ue=S.checkedKeys,he=S.halfCheckedKeys,Oe=S.dragOverNodeKey,G=S.dropPosition,P=S.keyEntities,Q=(0,le.Z)(P,R),q={eventKey:R,expanded:$.indexOf(R)!==-1,selected:ee.indexOf(R)!==-1,loaded:W.indexOf(R)!==-1,loading:ne.indexOf(R)!==-1,checked:ue.indexOf(R)!==-1,halfChecked:he.indexOf(R)!==-1,pos:String(Q?Q.pos:""),dragOver:Oe===R&&G===0,dragOverGapTop:Oe===R&&G===-1,dragOverGapBottom:Oe===R&&G===1};return q}function B(R){var S=R.data,$=R.expanded,ee=R.selected,W=R.checked,ne=R.loaded,ue=R.loading,he=R.halfChecked,Oe=R.dragOver,G=R.dragOverGapTop,P=R.dragOverGapBottom,Q=R.pos,q=R.active,re=R.eventKey,J=(0,oe.Z)((0,oe.Z)({},S),{},{expanded:$,selected:ee,checked:W,loaded:ne,loading:ue,halfChecked:he,dragOver:Oe,dragOverGapTop:G,dragOverGapBottom:P,pos:Q,active:q,key:re});return"props"in J||Object.defineProperty(J,"props",{get:function(){return(0,ge.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),R}}),J}},8224:function(Ln,jt,w){"use strict";w.d(jt,{Z:function(){return fe}});var p=w(4676);function fe(oe,me,O,d){var ge=p.unstable_batchedUpdates?function(o){p.unstable_batchedUpdates(O,o)}:O;return oe!=null&&oe.addEventListener&&oe.addEventListener(me,ge,d),{remove:function(){oe!=null&&oe.removeEventListener&&oe.removeEventListener(me,ge,d)}}}},24514:function(Ln,jt,w){"use strict";w.d(jt,{G:function(){return me}});var p=w(47273),fe=function(d){if((0,p.Z)()&&window.document.documentElement){var ge=Array.isArray(d)?d:[d],le=window.document.documentElement;return ge.some(function(o){return o in le.style})}return!1},oe=function(d,ge){if(!fe(d))return!1;var le=document.createElement("div"),o=le.style[d];return le.style[d]=ge,le.style[d]!==o};function me(O,d){return!Array.isArray(O)&&d!==void 0?oe(O,d):fe(O)}},49658:function(Ln,jt){"use strict";jt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var w=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(w)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(w==null?void 0:w.substr(0,4))}},65283:function(Ln,jt,w){"use strict";w.d(jt,{Z:function(){return ln}});var p=w(5016),fe=w(10928),oe=w(20049),me=w(18082),O=w(52456),d=w(5883),ge=w(92310),le=w.n(ge),o=w(29301),b=w(70425),T=w(34280),m=w(59301),y=w(4676),x=m.forwardRef(function(mt,Be){var be=mt.height,M=mt.offsetY,Ce=mt.offsetX,Ge=mt.children,K=mt.prefixCls,k=mt.onInnerResize,F=mt.innerProps,pe=mt.rtl,z=mt.extra,Y={},ie={display:"flex",flexDirection:"column"};return M!==void 0&&(Y={height:be,position:"relative",overflow:"hidden"},ie=(0,oe.Z)((0,oe.Z)({},ie),{},(0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)({transform:"translateY(".concat(M,"px)")},pe?"marginRight":"marginLeft",-Ce),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:Y},m.createElement(o.Z,{onResize:function(xe){var Ue=xe.offsetHeight;Ue&&k&&k()}},m.createElement("div",(0,p.Z)({style:ie,className:le()((0,me.Z)({},"".concat(K,"-holder-inner"),K)),ref:Be},F),Ge,z)))});x.displayName="Filler";var L=x;function U(mt){var Be=mt.children,be=mt.setRef,M=m.useCallback(function(Ce){be(Ce)},[]);return m.cloneElement(Be,{ref:M})}function V(mt,Be,be,M,Ce,Ge,K,k){var F=k.getKey;return mt.slice(Be,be+1).map(function(pe,z){var Y=Be+z,ie=K(pe,Y,{style:{width:M},offsetX:Ce}),Te=F(pe);return m.createElement(U,{key:Te,setRef:function(Ue){return Ge(pe,Ue)}},ie)})}function te(mt,Be,be,M){var Ce=be-mt,Ge=Be-be,K=Math.min(Ce,Ge)*2;if(M<=K){var k=Math.floor(M/2);return M%2?be+k+1:be-k}return Ce>Ge?be-(M-Ge):be+(M-Ce)}function N(mt,Be,be){var M=mt.length,Ce=Be.length,Ge,K;if(M===0&&Ce===0)return null;M<Ce?(Ge=mt,K=Be):(Ge=Be,K=mt);var k={__EMPTY_ITEM__:!0};function F(xe){return xe!==void 0?be(xe):k}for(var pe=null,z=Math.abs(M-Ce)!==1,Y=0;Y<K.length;Y+=1){var ie=F(Ge[Y]),Te=F(K[Y]);if(ie!==Te){pe=Y,z=z||ie!==F(K[Y+1]);break}}return pe===null?null:{index:pe,multiple:z}}function B(mt,Be,be){var M=m.useState(mt),Ce=(0,O.Z)(M,2),Ge=Ce[0],K=Ce[1],k=m.useState(null),F=(0,O.Z)(k,2),pe=F[0],z=F[1];return m.useEffect(function(){var Y=N(Ge||[],mt||[],Be);(Y==null?void 0:Y.index)!==void 0&&(be==null||be(Y.index),z(mt[Y.index])),K(mt)},[mt]),[pe]}var R=w(16089),S=(typeof navigator=="undefined"?"undefined":(0,fe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),$=S,ee=function(mt,Be,be,M){var Ce=(0,m.useRef)(!1),Ge=(0,m.useRef)(null);function K(){clearTimeout(Ge.current),Ce.current=!0,Ge.current=setTimeout(function(){Ce.current=!1},50)}var k=(0,m.useRef)({top:mt,bottom:Be,left:be,right:M});return k.current.top=mt,k.current.bottom=Be,k.current.left=be,k.current.right=M,function(F,pe){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Y=F?pe<0&&k.current.left||pe>0&&k.current.right:pe<0&&k.current.top||pe>0&&k.current.bottom;return z&&Y?(clearTimeout(Ge.current),Ce.current=!1):(!Y||Ce.current)&&K(),!Ce.current&&Y}};function W(mt,Be,be,M,Ce,Ge,K){var k=(0,m.useRef)(0),F=(0,m.useRef)(null),pe=(0,m.useRef)(null),z=(0,m.useRef)(!1),Y=ee(Be,be,M,Ce);function ie(at,ve){if(R.Z.cancel(F.current),!Y(!1,ve)){var De=at;if(!De._virtualHandled)De._virtualHandled=!0;else return;k.current+=ve,pe.current=ve,$||De.preventDefault(),F.current=(0,R.Z)(function(){var ot=z.current?10:1;K(k.current*ot,!1),k.current=0})}}function Te(at,ve){K(ve,!0),$||at.preventDefault()}var xe=(0,m.useRef)(null),Ue=(0,m.useRef)(null);function Ze(at){if(mt){R.Z.cancel(Ue.current),Ue.current=(0,R.Z)(function(){xe.current=null},2);var ve=at.deltaX,De=at.deltaY,ot=at.shiftKey,Je=ve,He=De;(xe.current==="sx"||!xe.current&&ot&&De&&!ve)&&(Je=De,He=0,xe.current="sx");var gt=Math.abs(Je),Rt=Math.abs(He);xe.current===null&&(xe.current=Ge&>>Rt?"x":"y"),xe.current==="y"?ie(at,He):Te(at,Je)}}function $e(at){mt&&(z.current=at.detail===pe.current)}return[Ze,$e]}function ne(mt,Be,be,M){var Ce=m.useMemo(function(){return[new Map,[]]},[mt,be.id,M]),Ge=(0,O.Z)(Ce,2),K=Ge[0],k=Ge[1],F=function(z){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z,ie=K.get(z),Te=K.get(Y);if(ie===void 0||Te===void 0)for(var xe=mt.length,Ue=k.length;Ue<xe;Ue+=1){var Ze,$e=mt[Ue],at=Be($e);K.set(at,Ue);var ve=(Ze=be.get(at))!==null&&Ze!==void 0?Ze:M;if(k[Ue]=(k[Ue-1]||0)+ve,at===z&&(ie=Ue),at===Y&&(Te=Ue),ie!==void 0&&Te!==void 0)break}return{top:k[ie-1]||0,bottom:k[Te]}};return F}var ue=w(6487),he=w(56789),Oe=function(){function mt(){(0,ue.Z)(this,mt),(0,me.Z)(this,"maps",void 0),(0,me.Z)(this,"id",0),(0,me.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,he.Z)(mt,[{key:"set",value:function(be,M){this.diffRecords.set(be,this.maps[be]),this.maps[be]=M,this.id+=1}},{key:"get",value:function(be){return this.maps[be]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),mt}(),G=Oe;function P(mt){var Be=parseFloat(mt);return isNaN(Be)?0:Be}function Q(mt,Be,be){var M=m.useState(0),Ce=(0,O.Z)(M,2),Ge=Ce[0],K=Ce[1],k=(0,m.useRef)(new Map),F=(0,m.useRef)(new G),pe=(0,m.useRef)(0);function z(){pe.current+=1}function Y(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;z();var xe=function(){var $e=!1;k.current.forEach(function(at,ve){if(at&&at.offsetParent){var De=at.offsetHeight,ot=getComputedStyle(at),Je=ot.marginTop,He=ot.marginBottom,gt=P(Je),Rt=P(He),st=De+gt+Rt;F.current.get(ve)!==st&&(F.current.set(ve,st),$e=!0)}}),$e&&K(function(at){return at+1})};if(Te)xe();else{pe.current+=1;var Ue=pe.current;Promise.resolve().then(function(){Ue===pe.current&&xe()})}}function ie(Te,xe){var Ue=mt(Te),Ze=k.current.get(Ue);xe?(k.current.set(Ue,xe),Y()):k.current.delete(Ue),!Ze!=!xe&&(xe?Be==null||Be(Te):be==null||be(Te))}return(0,m.useEffect)(function(){return z},[]),[ie,Y,F.current,Ge]}var q=14/15;function re(mt,Be,be){var M=(0,m.useRef)(!1),Ce=(0,m.useRef)(0),Ge=(0,m.useRef)(0),K=(0,m.useRef)(null),k=(0,m.useRef)(null),F,pe=function(Te){if(M.current){var xe=Math.ceil(Te.touches[0].pageX),Ue=Math.ceil(Te.touches[0].pageY),Ze=Ce.current-xe,$e=Ge.current-Ue,at=Math.abs(Ze)>Math.abs($e);at?Ce.current=xe:Ge.current=Ue;var ve=be(at,at?Ze:$e,!1,Te);ve&&Te.preventDefault(),clearInterval(k.current),ve&&(k.current=setInterval(function(){at?Ze*=q:$e*=q;var De=Math.floor(at?Ze:$e);(!be(at,De,!0)||Math.abs(De)<=.1)&&clearInterval(k.current)},16))}},z=function(){M.current=!1,F()},Y=function(Te){F(),Te.touches.length===1&&!M.current&&(M.current=!0,Ce.current=Math.ceil(Te.touches[0].pageX),Ge.current=Math.ceil(Te.touches[0].pageY),K.current=Te.target,K.current.addEventListener("touchmove",pe,{passive:!1}),K.current.addEventListener("touchend",z,{passive:!0}))};F=function(){K.current&&(K.current.removeEventListener("touchmove",pe),K.current.removeEventListener("touchend",z))},(0,T.Z)(function(){return mt&&Be.current.addEventListener("touchstart",Y,{passive:!0}),function(){var ie;(ie=Be.current)===null||ie===void 0||ie.removeEventListener("touchstart",Y),F(),clearInterval(k.current)}},[mt])}function J(mt){return Math.floor(Math.pow(mt,.5))}function g(mt,Be){var be="touches"in mt?mt.touches[0]:mt;return be[Be?"pageX":"pageY"]-window[Be?"scrollX":"scrollY"]}function v(mt,Be,be){m.useEffect(function(){var M=Be.current;if(mt&&M){var Ce=!1,Ge,K,k=function(){R.Z.cancel(Ge)},F=function ie(){k(),Ge=(0,R.Z)(function(){be(K),ie()})},pe=function(Te){if(!(Te.target.draggable||Te.button!==0)){var xe=Te;xe._virtualHandled||(xe._virtualHandled=!0,Ce=!0)}},z=function(){Ce=!1,k()},Y=function(Te){if(Ce){var xe=g(Te,!1),Ue=M.getBoundingClientRect(),Ze=Ue.top,$e=Ue.bottom;if(xe<=Ze){var at=Ze-xe;K=-J(at),F()}else if(xe>=$e){var ve=xe-$e;K=J(ve),F()}else k()}};return M.addEventListener("mousedown",pe),M.ownerDocument.addEventListener("mouseup",z),M.ownerDocument.addEventListener("mousemove",Y),function(){M.removeEventListener("mousedown",pe),M.ownerDocument.removeEventListener("mouseup",z),M.ownerDocument.removeEventListener("mousemove",Y),k()}}},[mt])}var Z=10;function ce(mt,Be,be,M,Ce,Ge,K,k){var F=m.useRef(),pe=m.useState(null),z=(0,O.Z)(pe,2),Y=z[0],ie=z[1];return(0,T.Z)(function(){if(Y&&Y.times<Z){if(!mt.current){ie(function(ae){return(0,oe.Z)({},ae)});return}Ge();var Te=Y.targetAlign,xe=Y.originAlign,Ue=Y.index,Ze=Y.offset,$e=mt.current.clientHeight,at=!1,ve=Te,De=null;if($e){for(var ot=Te||xe,Je=0,He=0,gt=0,Rt=Math.min(Be.length-1,Ue),st=0;st<=Rt;st+=1){var Kt=Ce(Be[st]);He=Je;var cn=be.get(Kt);gt=He+(cn===void 0?M:cn),Je=gt}for(var At=ot==="top"?Ze:$e-Ze,Xt=Rt;Xt>=0;Xt-=1){var Fe=Ce(Be[Xt]),Ne=be.get(Fe);if(Ne===void 0){at=!0;break}if(At-=Ne,At<=0)break}switch(ot){case"top":De=He-Ze;break;case"bottom":De=gt-$e+Ze;break;default:{var Me=mt.current.scrollTop,I=Me+$e;He<Me?ve="top":gt>I&&(ve="bottom")}}De!==null&&K(De),De!==Y.lastTop&&(at=!0)}at&&ie((0,oe.Z)((0,oe.Z)({},Y),{},{times:Y.times+1,targetAlign:ve,lastTop:De}))}},[Y,mt.current]),function(Te){if(Te==null){k();return}if(R.Z.cancel(F.current),typeof Te=="number")K(Te);else if(Te&&(0,fe.Z)(Te)==="object"){var xe,Ue=Te.align;"index"in Te?xe=Te.index:xe=Be.findIndex(function(at){return Ce(at)===Te.key});var Ze=Te.offset,$e=Ze===void 0?0:Ze;ie({times:0,index:xe,offset:$e,originAlign:Ue})}}}var Xe=m.forwardRef(function(mt,Be){var be=mt.prefixCls,M=mt.rtl,Ce=mt.scrollOffset,Ge=mt.scrollRange,K=mt.onStartMove,k=mt.onStopMove,F=mt.onScroll,pe=mt.horizontal,z=mt.spinSize,Y=mt.containerSize,ie=mt.style,Te=mt.thumbStyle,xe=mt.showScrollBar,Ue=m.useState(!1),Ze=(0,O.Z)(Ue,2),$e=Ze[0],at=Ze[1],ve=m.useState(null),De=(0,O.Z)(ve,2),ot=De[0],Je=De[1],He=m.useState(null),gt=(0,O.Z)(He,2),Rt=gt[0],st=gt[1],Kt=!M,cn=m.useRef(),At=m.useRef(),Xt=m.useState(xe),Fe=(0,O.Z)(Xt,2),Ne=Fe[0],Me=Fe[1],I=m.useRef(),ae=function(){xe===!0||xe===!1||(clearTimeout(I.current),Me(!0),I.current=setTimeout(function(){Me(!1)},3e3))},de=Ge-Y||0,se=Y-z||0,Se=m.useMemo(function(){if(Ce===0||de===0)return 0;var Pe=Ce/de;return Pe*se},[Ce,de,se]),Mt=function(ye){ye.stopPropagation(),ye.preventDefault()},It=m.useRef({top:Se,dragging:$e,pageY:ot,startTop:Rt});It.current={top:Se,dragging:$e,pageY:ot,startTop:Rt};var Ft=function(ye){at(!0),Je(g(ye,pe)),st(It.current.top),K(),ye.stopPropagation(),ye.preventDefault()};m.useEffect(function(){var Pe=function(ut){ut.preventDefault()},ye=cn.current,we=At.current;return ye.addEventListener("touchstart",Pe,{passive:!1}),we.addEventListener("touchstart",Ft,{passive:!1}),function(){ye.removeEventListener("touchstart",Pe),we.removeEventListener("touchstart",Ft)}},[]);var fn=m.useRef();fn.current=de;var Le=m.useRef();Le.current=se,m.useEffect(function(){if($e){var Pe,ye=function(ut){var Pt=It.current,Vt=Pt.dragging,Ut=Pt.pageY,mn=Pt.startTop;R.Z.cancel(Pe);var Re=cn.current.getBoundingClientRect(),_e=Y/(pe?Re.width:Re.height);if(Vt){var Ve=(g(ut,pe)-Ut)*_e,et=mn;!Kt&&pe?et-=Ve:et+=Ve;var dt=fn.current,Et=Le.current,tt=Et?et/Et:0,nt=Math.ceil(tt*dt);nt=Math.max(nt,0),nt=Math.min(nt,dt),Pe=(0,R.Z)(function(){F(nt,pe)})}},we=function(){at(!1),k()};return window.addEventListener("mousemove",ye,{passive:!0}),window.addEventListener("touchmove",ye,{passive:!0}),window.addEventListener("mouseup",we,{passive:!0}),window.addEventListener("touchend",we,{passive:!0}),function(){window.removeEventListener("mousemove",ye),window.removeEventListener("touchmove",ye),window.removeEventListener("mouseup",we),window.removeEventListener("touchend",we),R.Z.cancel(Pe)}}},[$e]),m.useEffect(function(){return ae(),function(){clearTimeout(I.current)}},[Ce]),m.useImperativeHandle(Be,function(){return{delayHidden:ae}});var _="".concat(be,"-scrollbar"),j={position:"absolute",visibility:Ne?null:"hidden"},E={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return pe?(j.height=8,j.left=0,j.right=0,j.bottom=0,E.height="100%",E.width=z,Kt?E.left=Se:E.right=Se):(j.width=8,j.top=0,j.bottom=0,Kt?j.right=0:j.left=0,E.width="100%",E.height=z,E.top=Se),m.createElement("div",{ref:cn,className:le()(_,(0,me.Z)((0,me.Z)((0,me.Z)({},"".concat(_,"-horizontal"),pe),"".concat(_,"-vertical"),!pe),"".concat(_,"-visible"),Ne)),style:(0,oe.Z)((0,oe.Z)({},j),ie),onMouseDown:Mt,onMouseMove:ae},m.createElement("div",{ref:At,className:le()("".concat(_,"-thumb"),(0,me.Z)({},"".concat(_,"-thumb-moving"),$e)),style:(0,oe.Z)((0,oe.Z)({},E),Te),onMouseDown:Ft}))}),We=Xe,Dt=20;function vt(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,be=mt/Be*mt;return isNaN(be)&&(be=0),be=Math.max(be,Dt),Math.floor(be)}var $t=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ht=[],ke={overflowY:"auto",overflowAnchor:"none"};function Bt(mt,Be){var be=mt.prefixCls,M=be===void 0?"rc-virtual-list":be,Ce=mt.className,Ge=mt.height,K=mt.itemHeight,k=mt.fullHeight,F=k===void 0?!0:k,pe=mt.style,z=mt.data,Y=mt.children,ie=mt.itemKey,Te=mt.virtual,xe=mt.direction,Ue=mt.scrollWidth,Ze=mt.component,$e=Ze===void 0?"div":Ze,at=mt.onScroll,ve=mt.onVirtualScroll,De=mt.onVisibleChange,ot=mt.innerProps,Je=mt.extraRender,He=mt.styles,gt=mt.showScrollBar,Rt=gt===void 0?"optional":gt,st=(0,d.Z)(mt,$t),Kt=m.useCallback(function(rt){return typeof ie=="function"?ie(rt):rt==null?void 0:rt[ie]},[ie]),cn=Q(Kt,null,null),At=(0,O.Z)(cn,4),Xt=At[0],Fe=At[1],Ne=At[2],Me=At[3],I=!!(Te!==!1&&Ge&&K),ae=m.useMemo(function(){return Object.values(Ne.maps).reduce(function(rt,ct){return rt+ct},0)},[Ne.id,Ne.maps]),de=I&&z&&(Math.max(K*z.length,ae)>Ge||!!Ue),se=xe==="rtl",Se=le()(M,(0,me.Z)({},"".concat(M,"-rtl"),se),Ce),Mt=z||Ht,It=(0,m.useRef)(),Ft=(0,m.useRef)(),fn=(0,m.useRef)(),Le=(0,m.useState)(0),_=(0,O.Z)(Le,2),j=_[0],E=_[1],Pe=(0,m.useState)(0),ye=(0,O.Z)(Pe,2),we=ye[0],ze=ye[1],ut=(0,m.useState)(!1),Pt=(0,O.Z)(ut,2),Vt=Pt[0],Ut=Pt[1],mn=function(){Ut(!0)},Re=function(){Ut(!1)},_e={getKey:Kt};function Ve(rt){E(function(ct){var pt;typeof rt=="function"?pt=rt(ct):pt=rt;var xt=Un(pt);return It.current.scrollTop=xt,xt})}var et=(0,m.useRef)({start:0,end:Mt.length}),dt=(0,m.useRef)(),Et=B(Mt,Kt),tt=(0,O.Z)(Et,1),nt=tt[0];dt.current=nt;var _t=m.useMemo(function(){if(!I)return{scrollHeight:void 0,start:0,end:Mt.length-1,offset:void 0};if(!de){var rt;return{scrollHeight:((rt=Ft.current)===null||rt===void 0?void 0:rt.offsetHeight)||0,start:0,end:Mt.length-1,offset:void 0}}for(var ct=0,pt,xt,Ot,dn=Mt.length,Rn=0;Rn<dn;Rn+=1){var En=Mt[Rn],Kn=Kt(En),Vn=Ne.get(Kn),Wn=ct+(Vn===void 0?K:Vn);Wn>=j&&pt===void 0&&(pt=Rn,xt=ct),Wn>j+Ge&&Ot===void 0&&(Ot=Rn),ct=Wn}return pt===void 0&&(pt=0,xt=0,Ot=Math.ceil(Ge/K)),Ot===void 0&&(Ot=Mt.length-1),Ot=Math.min(Ot+1,Mt.length-1),{scrollHeight:ct,start:pt,end:Ot,offset:xt}},[de,I,j,Mt,Me,Ge]),Ct=_t.scrollHeight,pn=_t.start,_n=_t.end,an=_t.offset;et.current.start=pn,et.current.end=_n,m.useLayoutEffect(function(){var rt=Ne.getRecord();if(rt.size===1){var ct=Array.from(rt.keys())[0],pt=rt.get(ct),xt=Mt[pn];if(xt&&pt===void 0){var Ot=Kt(xt);if(Ot===ct){var dn=Ne.get(ct),Rn=dn-K;Ve(function(En){return En+Rn})}}}Ne.resetRecord()},[Ct]);var zt=m.useState({width:0,height:Ge}),Ie=(0,O.Z)(zt,2),qe=Ie[0],ft=Ie[1],ht=function(ct){ft({width:ct.offsetWidth,height:ct.offsetHeight})},Gt=(0,m.useRef)(),en=(0,m.useRef)(),Wt=m.useMemo(function(){return vt(qe.width,Ue)},[qe.width,Ue]),rn=m.useMemo(function(){return vt(qe.height,Ct)},[qe.height,Ct]),hn=Ct-Ge,Sn=(0,m.useRef)(hn);Sn.current=hn;function Un(rt){var ct=rt;return Number.isNaN(Sn.current)||(ct=Math.min(ct,Sn.current)),ct=Math.max(ct,0),ct}var yn=j<=0,Zn=j>=hn,Nn=we<=0,Gn=we>=Ue,Mn=ee(yn,Zn,Nn,Gn),On=function(){return{x:se?-we:we,y:j}},Qn=(0,m.useRef)(On()),vn=(0,b.zX)(function(rt){if(ve){var ct=(0,oe.Z)((0,oe.Z)({},On()),rt);(Qn.current.x!==ct.x||Qn.current.y!==ct.y)&&(ve(ct),Qn.current=ct)}});function Dn(rt,ct){var pt=rt;ct?((0,y.flushSync)(function(){ze(pt)}),vn()):Ve(pt)}function je(rt){var ct=rt.currentTarget.scrollTop;ct!==j&&Ve(ct),at==null||at(rt),vn()}var Lt=function(ct){var pt=ct,xt=Ue?Ue-qe.width:0;return pt=Math.max(pt,0),pt=Math.min(pt,xt),pt},tn=(0,b.zX)(function(rt,ct){ct?((0,y.flushSync)(function(){ze(function(pt){var xt=pt+(se?-rt:rt);return Lt(xt)})}),vn()):Ve(function(pt){var xt=pt+rt;return xt})}),gn=W(I,yn,Zn,Nn,Gn,!!Ue,tn),zn=(0,O.Z)(gn,2),Ee=zn[0],lt=zn[1];re(I,It,function(rt,ct,pt,xt){var Ot=xt;return Mn(rt,ct,pt)?!1:!Ot||!Ot._virtualHandled?(Ot&&(Ot._virtualHandled=!0),Ee({preventDefault:function(){},deltaX:rt?ct:0,deltaY:rt?0:ct}),!0):!1}),v(de,It,function(rt){Ve(function(ct){return ct+rt})}),(0,T.Z)(function(){function rt(pt){var xt=yn&&pt.detail<0,Ot=Zn&&pt.detail>0;I&&!xt&&!Ot&&pt.preventDefault()}var ct=It.current;return ct.addEventListener("wheel",Ee,{passive:!1}),ct.addEventListener("DOMMouseScroll",lt,{passive:!0}),ct.addEventListener("MozMousePixelScroll",rt,{passive:!1}),function(){ct.removeEventListener("wheel",Ee),ct.removeEventListener("DOMMouseScroll",lt),ct.removeEventListener("MozMousePixelScroll",rt)}},[I,yn,Zn]),(0,T.Z)(function(){if(Ue){var rt=Lt(we);ze(rt),vn({x:rt})}},[qe.width,Ue]);var Ye=function(){var ct,pt;(ct=Gt.current)===null||ct===void 0||ct.delayHidden(),(pt=en.current)===null||pt===void 0||pt.delayHidden()},it=ce(It,Mt,Ne,K,Kt,function(){return Fe(!0)},Ve,Ye);m.useImperativeHandle(Be,function(){return{nativeElement:fn.current,getScrollInfo:On,scrollTo:function(ct){function pt(xt){return xt&&(0,fe.Z)(xt)==="object"&&("left"in xt||"top"in xt)}pt(ct)?(ct.left!==void 0&&ze(Lt(ct.left)),it(ct.top)):it(ct)}}}),(0,T.Z)(function(){if(De){var rt=Mt.slice(pn,_n+1);De(rt,Mt)}},[pn,_n,Mt]);var yt=ne(Mt,Kt,Ne,K),Tt=Je==null?void 0:Je({start:pn,end:_n,virtual:de,offsetX:we,offsetY:an,rtl:se,getSize:yt}),Jt=V(Mt,pn,_n,Ue,we,Xt,Y,_e),qt=null;Ge&&(qt=(0,oe.Z)((0,me.Z)({},F?"height":"maxHeight",Ge),ke),I&&(qt.overflowY="hidden",Ue&&(qt.overflowX="hidden"),Vt&&(qt.pointerEvents="none")));var kt={};return se&&(kt.dir="rtl"),m.createElement("div",(0,p.Z)({ref:fn,style:(0,oe.Z)((0,oe.Z)({},pe),{},{position:"relative"}),className:Se},kt,st),m.createElement(o.Z,{onResize:ht},m.createElement($e,{className:"".concat(M,"-holder"),style:qt,ref:It,onScroll:je,onMouseEnter:Ye},m.createElement(L,{prefixCls:M,height:Ct,offsetX:we,offsetY:an,scrollWidth:Ue,onInnerResize:Fe,ref:Ft,innerProps:ot,rtl:se,extra:Tt},Jt))),de&&Ct>Ge&&m.createElement(We,{ref:Gt,prefixCls:M,scrollOffset:j,scrollRange:Ct,rtl:se,onScroll:Dn,onStartMove:mn,onStopMove:Re,spinSize:rn,containerSize:qe.height,style:He==null?void 0:He.verticalScrollBar,thumbStyle:He==null?void 0:He.verticalScrollBarThumb,showScrollBar:Rt}),de&&Ue>qe.width&&m.createElement(We,{ref:en,prefixCls:M,scrollOffset:we,scrollRange:Ue,rtl:se,onScroll:Dn,onStartMove:mn,onStopMove:Re,spinSize:Wt,containerSize:qe.width,horizontal:!0,style:He==null?void 0:He.horizontalScrollBar,thumbStyle:He==null?void 0:He.horizontalScrollBarThumb,showScrollBar:Rt}))}var xn=m.forwardRef(Bt);xn.displayName="List";var Yt=xn,ln=Yt},83145:function(Ln,jt,w){"use strict";Object.defineProperty(jt,"__esModule",{value:!0}),jt.CopyToClipboard=void 0;var p=oe(w(59301)),fe=oe(w(25769));function oe(N){return N&&N.__esModule?N:{default:N}}function me(N){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?me=function(R){return typeof R}:me=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},me(N)}function O(N,B){var R=Object.keys(N);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(N);B&&(S=S.filter(function($){return Object.getOwnPropertyDescriptor(N,$).enumerable})),R.push.apply(R,S)}return R}function d(N){for(var B=1;B<arguments.length;B++){var R=arguments[B]!=null?arguments[B]:{};B%2?O(R,!0).forEach(function(S){V(N,S,R[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(R)):O(R).forEach(function(S){Object.defineProperty(N,S,Object.getOwnPropertyDescriptor(R,S))})}return N}function ge(N,B){if(N==null)return{};var R=le(N,B),S,$;if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(N);for($=0;$<ee.length;$++)S=ee[$],!(B.indexOf(S)>=0)&&Object.prototype.propertyIsEnumerable.call(N,S)&&(R[S]=N[S])}return R}function le(N,B){if(N==null)return{};var R={},S=Object.keys(N),$,ee;for(ee=0;ee<S.length;ee++)$=S[ee],!(B.indexOf($)>=0)&&(R[$]=N[$]);return R}function o(N,B){if(!(N instanceof B))throw new TypeError("Cannot call a class as a function")}function b(N,B){for(var R=0;R<B.length;R++){var S=B[R];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(N,S.key,S)}}function T(N,B,R){return B&&b(N.prototype,B),R&&b(N,R),N}function m(N,B){return B&&(me(B)==="object"||typeof B=="function")?B:x(N)}function y(N){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},y(N)}function x(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function L(N,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(B&&B.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),B&&U(N,B)}function U(N,B){return U=Object.setPrototypeOf||function(S,$){return S.__proto__=$,S},U(N,B)}function V(N,B,R){return B in N?Object.defineProperty(N,B,{value:R,enumerable:!0,configurable:!0,writable:!0}):N[B]=R,N}var te=function(N){L(B,N);function B(){var R,S;o(this,B);for(var $=arguments.length,ee=new Array($),W=0;W<$;W++)ee[W]=arguments[W];return S=m(this,(R=y(B)).call.apply(R,[this].concat(ee))),V(x(S),"onClick",function(ne){var ue=S.props,he=ue.text,Oe=ue.onCopy,G=ue.children,P=ue.options,Q=p.default.Children.only(G),q=(0,fe.default)(he,P);Oe&&Oe(he,q),Q&&Q.props&&typeof Q.props.onClick=="function"&&Q.props.onClick(ne)}),S}return T(B,[{key:"render",value:function(){var S=this.props,$=S.text,ee=S.onCopy,W=S.options,ne=S.children,ue=ge(S,["text","onCopy","options","children"]),he=p.default.Children.only(ne);return p.default.cloneElement(he,d({},ue,{onClick:this.onClick}))}}]),B}(p.default.PureComponent);jt.CopyToClipboard=te,V(te,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Ln,jt,w){"use strict";var p=w(83145),fe=p.CopyToClipboard;fe.CopyToClipboard=fe,Ln.exports=fe},76374:function(Ln,jt,w){"use strict";var p=function(){if(typeof Map!="undefined")return Map;function G(P,Q){var q=-1;return P.some(function(re,J){return re[0]===Q?(q=J,!0):!1}),q}return function(){function P(){this.__entries__=[]}return Object.defineProperty(P.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),P.prototype.get=function(Q){var q=G(this.__entries__,Q),re=this.__entries__[q];return re&&re[1]},P.prototype.set=function(Q,q){var re=G(this.__entries__,Q);~re?this.__entries__[re][1]=q:this.__entries__.push([Q,q])},P.prototype.delete=function(Q){var q=this.__entries__,re=G(q,Q);~re&&q.splice(re,1)},P.prototype.has=function(Q){return!!~G(this.__entries__,Q)},P.prototype.clear=function(){this.__entries__.splice(0)},P.prototype.forEach=function(Q,q){q===void 0&&(q=null);for(var re=0,J=this.__entries__;re<J.length;re++){var g=J[re];Q.call(q,g[1],g[0])}},P}()}(),fe=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,oe=function(){return typeof w.g!="undefined"&&w.g.Math===Math?w.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),me=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(oe):function(G){return setTimeout(function(){return G(Date.now())},1e3/60)}}(),O=2;function d(G,P){var Q=!1,q=!1,re=0;function J(){Q&&(Q=!1,G()),q&&v()}function g(){me(J)}function v(){var Z=Date.now();if(Q){if(Z-re<O)return;q=!0}else Q=!0,q=!1,setTimeout(g,P);re=Z}return v}var ge=20,le=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",b=function(){function G(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=d(this.refresh.bind(this),ge)}return G.prototype.addObserver=function(P){~this.observers_.indexOf(P)||this.observers_.push(P),this.connected_||this.connect_()},G.prototype.removeObserver=function(P){var Q=this.observers_,q=Q.indexOf(P);~q&&Q.splice(q,1),!Q.length&&this.connected_&&this.disconnect_()},G.prototype.refresh=function(){var P=this.updateObservers_();P&&this.refresh()},G.prototype.updateObservers_=function(){var P=this.observers_.filter(function(Q){return Q.gatherActive(),Q.hasActive()});return P.forEach(function(Q){return Q.broadcastActive()}),P.length>0},G.prototype.connect_=function(){!fe||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),o?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},G.prototype.disconnect_=function(){!fe||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},G.prototype.onTransitionEnd_=function(P){var Q=P.propertyName,q=Q===void 0?"":Q,re=le.some(function(J){return!!~q.indexOf(J)});re&&this.refresh()},G.getInstance=function(){return this.instance_||(this.instance_=new G),this.instance_},G.instance_=null,G}(),T=function(G,P){for(var Q=0,q=Object.keys(P);Q<q.length;Q++){var re=q[Q];Object.defineProperty(G,re,{value:P[re],enumerable:!1,writable:!1,configurable:!0})}return G},m=function(G){var P=G&&G.ownerDocument&&G.ownerDocument.defaultView;return P||oe},y=$(0,0,0,0);function x(G){return parseFloat(G)||0}function L(G){for(var P=[],Q=1;Q<arguments.length;Q++)P[Q-1]=arguments[Q];return P.reduce(function(q,re){var J=G["border-"+re+"-width"];return q+x(J)},0)}function U(G){for(var P=["top","right","bottom","left"],Q={},q=0,re=P;q<re.length;q++){var J=re[q],g=G["padding-"+J];Q[J]=x(g)}return Q}function V(G){var P=G.getBBox();return $(0,0,P.width,P.height)}function te(G){var P=G.clientWidth,Q=G.clientHeight;if(!P&&!Q)return y;var q=m(G).getComputedStyle(G),re=U(q),J=re.left+re.right,g=re.top+re.bottom,v=x(q.width),Z=x(q.height);if(q.boxSizing==="border-box"&&(Math.round(v+J)!==P&&(v-=L(q,"left","right")+J),Math.round(Z+g)!==Q&&(Z-=L(q,"top","bottom")+g)),!B(G)){var ce=Math.round(v+J)-P,Xe=Math.round(Z+g)-Q;Math.abs(ce)!==1&&(v-=ce),Math.abs(Xe)!==1&&(Z-=Xe)}return $(re.left,re.top,v,Z)}var N=function(){return typeof SVGGraphicsElement!="undefined"?function(G){return G instanceof m(G).SVGGraphicsElement}:function(G){return G instanceof m(G).SVGElement&&typeof G.getBBox=="function"}}();function B(G){return G===m(G).document.documentElement}function R(G){return fe?N(G)?V(G):te(G):y}function S(G){var P=G.x,Q=G.y,q=G.width,re=G.height,J=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,g=Object.create(J.prototype);return T(g,{x:P,y:Q,width:q,height:re,top:Q,right:P+q,bottom:re+Q,left:P}),g}function $(G,P,Q,q){return{x:G,y:P,width:Q,height:q}}var ee=function(){function G(P){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$(0,0,0,0),this.target=P}return G.prototype.isActive=function(){var P=R(this.target);return this.contentRect_=P,P.width!==this.broadcastWidth||P.height!==this.broadcastHeight},G.prototype.broadcastRect=function(){var P=this.contentRect_;return this.broadcastWidth=P.width,this.broadcastHeight=P.height,P},G}(),W=function(){function G(P,Q){var q=S(Q);T(this,{target:P,contentRect:q})}return G}(),ne=function(){function G(P,Q,q){if(this.activeObservations_=[],this.observations_=new p,typeof P!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=P,this.controller_=Q,this.callbackCtx_=q}return G.prototype.observe=function(P){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(P instanceof m(P).Element))throw new TypeError('parameter 1 is not of type "Element".');var Q=this.observations_;Q.has(P)||(Q.set(P,new ee(P)),this.controller_.addObserver(this),this.controller_.refresh())}},G.prototype.unobserve=function(P){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(P instanceof m(P).Element))throw new TypeError('parameter 1 is not of type "Element".');var Q=this.observations_;Q.has(P)&&(Q.delete(P),Q.size||this.controller_.removeObserver(this))}},G.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},G.prototype.gatherActive=function(){var P=this;this.clearActive(),this.observations_.forEach(function(Q){Q.isActive()&&P.activeObservations_.push(Q)})},G.prototype.broadcastActive=function(){if(this.hasActive()){var P=this.callbackCtx_,Q=this.activeObservations_.map(function(q){return new W(q.target,q.broadcastRect())});this.callback_.call(P,Q,P),this.clearActive()}},G.prototype.clearActive=function(){this.activeObservations_.splice(0)},G.prototype.hasActive=function(){return this.activeObservations_.length>0},G}(),ue=typeof WeakMap!="undefined"?new WeakMap:new p,he=function(){function G(P){if(!(this instanceof G))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Q=b.getInstance(),q=new ne(P,Q,this);ue.set(this,q)}return G}();["observe","unobserve","disconnect"].forEach(function(G){he.prototype[G]=function(){var P;return(P=ue.get(this))[G].apply(P,arguments)}});var Oe=function(){return typeof oe.ResizeObserver!="undefined"?oe.ResizeObserver:he}();jt.Z=Oe},38710:function(Ln){var jt=function(w){return w.replace(/[A-Z]/g,function(p){return"-"+p.toLowerCase()}).toLowerCase()};Ln.exports=jt},98040:function(Ln){Ln.exports=function(){var jt=document.getSelection();if(!jt.rangeCount)return function(){};for(var w=document.activeElement,p=[],fe=0;fe<jt.rangeCount;fe++)p.push(jt.getRangeAt(fe));switch(w.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":w.blur();break;default:w=null;break}return jt.removeAllRanges(),function(){jt.type==="Caret"&&jt.removeAllRanges(),jt.rangeCount||p.forEach(function(oe){jt.addRange(oe)}),w&&w.focus()}}},93314:function(Ln){"use strict";Ln.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvP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tBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},79710:function(Ln,jt,w){"use strict";w.d(jt,{ZP:function(){return ps}});const p=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},fe=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=oe},oe=Number.MAX_SAFE_INTEGER||9007199254740991;let me=function(a){return a.NETWORK_ERROR="networkError",a.MEDIA_ERROR="mediaError",a.KEY_SYSTEM_ERROR="keySystemError",a.MUX_ERROR="muxError",a.OTHER_ERROR="otherError",a}({}),O=function(a){return a.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",a.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",a.KEY_SYSTEM_NO_SESSION="keySystemNoSession",a.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",a.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",a.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",a.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",a.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",a.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",a.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",a.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",a.MANIFEST_LOAD_ERROR="manifestLoadError",a.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",a.MANIFEST_PARSING_ERROR="manifestParsingError",a.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",a.LEVEL_EMPTY_ERROR="levelEmptyError",a.LEVEL_LOAD_ERROR="levelLoadError",a.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",a.LEVEL_PARSING_ERROR="levelParsingError",a.LEVEL_SWITCH_ERROR="levelSwitchError",a.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",a.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",a.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",a.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",a.FRAG_LOAD_ERROR="fragLoadError",a.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",a.FRAG_DECRYPT_ERROR="fragDecryptError",a.FRAG_PARSING_ERROR="fragParsingError",a.FRAG_GAP="fragGap",a.REMUX_ALLOC_ERROR="remuxAllocError",a.KEY_LOAD_ERROR="keyLoadError",a.KEY_LOAD_TIMEOUT="keyLoadTimeOut",a.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",a.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",a.BUFFER_APPEND_ERROR="bufferAppendError",a.BUFFER_APPENDING_ERROR="bufferAppendingError",a.BUFFER_STALLED_ERROR="bufferStalledError",a.BUFFER_FULL_ERROR="bufferFullError",a.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",a.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",a.ASSET_LIST_LOAD_ERROR="assetListLoadError",a.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",a.ASSET_LIST_PARSING_ERROR="assetListParsingError",a.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",a.INTERNAL_EXCEPTION="internalException",a.INTERNAL_ABORTED="aborted",a.ATTACH_MEDIA_ERROR="attachMediaError",a.UNKNOWN="unknown",a}({}),d=function(a){return a.MEDIA_ATTACHING="hlsMediaAttaching",a.MEDIA_ATTACHED="hlsMediaAttached",a.MEDIA_DETACHING="hlsMediaDetaching",a.MEDIA_DETACHED="hlsMediaDetached",a.MEDIA_ENDED="hlsMediaEnded",a.STALL_RESOLVED="hlsStallResolved",a.BUFFER_RESET="hlsBufferReset",a.BUFFER_CODECS="hlsBufferCodecs",a.BUFFER_CREATED="hlsBufferCreated",a.BUFFER_APPENDING="hlsBufferAppending",a.BUFFER_APPENDED="hlsBufferAppended",a.BUFFER_EOS="hlsBufferEos",a.BUFFERED_TO_END="hlsBufferedToEnd",a.BUFFER_FLUSHING="hlsBufferFlushing",a.BUFFER_FLUSHED="hlsBufferFlushed",a.MANIFEST_LOADING="hlsManifestLoading",a.MANIFEST_LOADED="hlsManifestLoaded",a.MANIFEST_PARSED="hlsManifestParsed",a.LEVEL_SWITCHING="hlsLevelSwitching",a.LEVEL_SWITCHED="hlsLevelSwitched",a.LEVEL_LOADING="hlsLevelLoading",a.LEVEL_LOADED="hlsLevelLoaded",a.LEVEL_UPDATED="hlsLevelUpdated",a.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",a.LEVELS_UPDATED="hlsLevelsUpdated",a.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",a.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",a.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",a.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",a.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",a.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",a.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",a.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",a.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",a.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",a.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",a.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",a.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",a.CUES_PARSED="hlsCuesParsed",a.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",a.INIT_PTS_FOUND="hlsInitPtsFound",a.FRAG_LOADING="hlsFragLoading",a.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",a.FRAG_LOADED="hlsFragLoaded",a.FRAG_DECRYPTED="hlsFragDecrypted",a.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",a.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",a.FRAG_PARSING_METADATA="hlsFragParsingMetadata",a.FRAG_PARSED="hlsFragParsed",a.FRAG_BUFFERED="hlsFragBuffered",a.FRAG_CHANGED="hlsFragChanged",a.FPS_DROP="hlsFpsDrop",a.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",a.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",a.ERROR="hlsError",a.DESTROYING="hlsDestroying",a.KEY_LOADING="hlsKeyLoading",a.KEY_LOADED="hlsKeyLoaded",a.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",a.BACK_BUFFER_REACHED="hlsBackBufferReached",a.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",a.ASSET_LIST_LOADING="hlsAssetListLoading",a.ASSET_LIST_LOADED="hlsAssetListLoaded",a.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",a.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",a.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",a.INTERSTITIAL_STARTED="hlsInterstitialStarted",a.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",a.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",a.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",a.INTERSTITIAL_ENDED="hlsInterstitialEnded",a.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",a.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",a.EVENT_CUE_ENTER="hlsEventCueEnter",a}({});var ge={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},le={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class o{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class b{constructor(e,t,n,r=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new o(e),this.fast_=new o(t),this.defaultTTFB_=r,this.ttfb_=new o(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new o(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new o(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new o(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,r=e/1e3,i=n/r;this.fast_.sample(r,i),this.slow_.sample(r,i)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function T(a,e,t){return(e=U(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(){return m=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(a[n]=t[n])}return a},m.apply(null,arguments)}function y(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,n)}return t}function x(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?y(Object(t),!0).forEach(function(n){T(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function L(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function U(a){var e=L(a,"string");return typeof e=="symbol"?e:e+""}class V{constructor(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;const n=`[${e}]:`;this.trace=te,this.debug=t.debug.bind(null,n),this.log=t.log.bind(null,n),this.warn=t.warn.bind(null,n),this.info=t.info.bind(null,n),this.error=t.error.bind(null,n)}}const te=function(){},N={trace:te,debug:te,log:te,warn:te,info:te,error:te};function B(){return m({},N)}function R(a,e){const t=self.console[a];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${a}] >`):te}function S(a,e,t){return e[a]?e[a].bind(e):R(a,t)}const $=B();function ee(a,e,t){const n=B();if(typeof console=="object"&&a===!0||typeof a=="object"){const r=["debug","log","info","warn","error"];r.forEach(i=>{n[i]=S(i,a,t)});try{n.log(`Debug logs enabled for "${e}" in hls.js version 1.6.2`)}catch(i){return B()}r.forEach(i=>{$[i]=S(i,a)})}else m($,n);return n}const W=$;function ne(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function ue(a){return typeof self!="undefined"&&a===self.ManagedMediaSource}function he(a,e){const t=Object.keys(a),n=Object.keys(e),r=t.length,i=n.length;return!r||!i||r===i&&!t.some(s=>n.indexOf(s)===-1)}function Oe(a,e=!1){if(typeof TextDecoder!="undefined"){const u=new TextDecoder("utf-8").decode(a);if(e){const f=u.indexOf("\0");return f!==-1?u.substring(0,f):u}return u.replace(/\0/g,"")}const t=a.length;let n,r,i,s="",l=0;for(;l<t;){if(n=a[l++],n===0&&e)return s;if(n===0||n===3)continue;switch(n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(n);break;case 12:case 13:r=a[l++],s+=String.fromCharCode((n&31)<<6|r&63);break;case 14:r=a[l++],i=a[l++],s+=String.fromCharCode((n&15)<<12|(r&63)<<6|(i&63)<<0);break}}return s}const G={hexDump:function(a){let e="";for(let t=0;t<a.length;t++){let n=a[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}};function P(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Q={exports:{}},q;function re(){return q||(q=1,function(a,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,l={buildAbsoluteURL:function(c,u,f){if(f=f||{},c=c.trim(),u=u.trim(),!u){if(!f.alwaysNormalize)return c;var h=l.parseURL(c);if(!h)throw new Error("Error trying to parse base URL.");return h.path=l.normalizePath(h.path),l.buildURLFromParts(h)}var A=l.parseURL(u);if(!A)throw new Error("Error trying to parse relative URL.");if(A.scheme)return f.alwaysNormalize?(A.path=l.normalizePath(A.path),l.buildURLFromParts(A)):u;var C=l.parseURL(c);if(!C)throw new Error("Error trying to parse base URL.");if(!C.netLoc&&C.path&&C.path[0]!=="/"){var D=r.exec(C.path);C.netLoc=D[1],C.path=D[2]}C.netLoc&&!C.path&&(C.path="/");var X={scheme:C.scheme,netLoc:A.netLoc,path:null,params:A.params,query:A.query,fragment:A.fragment};if(!A.netLoc&&(X.netLoc=C.netLoc,A.path[0]!=="/"))if(!A.path)X.path=C.path,A.params||(X.params=C.params,A.query||(X.query=C.query));else{var H=C.path,Ae=H.substring(0,H.lastIndexOf("/")+1)+A.path;X.path=l.normalizePath(Ae)}return X.path===null&&(X.path=f.alwaysNormalize?l.normalizePath(A.path):A.path),l.buildURLFromParts(X)},parseURL:function(c){var u=n.exec(c);return u?{scheme:u[1]||"",netLoc:u[2]||"",path:u[3]||"",params:u[4]||"",query:u[5]||"",fragment:u[6]||""}:null},normalizePath:function(c){for(c=c.split("").reverse().join("").replace(i,"");c.length!==(c=c.replace(s,"")).length;);return c.split("").reverse().join("")},buildURLFromParts:function(c){return c.scheme+c.netLoc+c.path+c.params+c.query+c.fragment}};a.exports=l})()}(Q)),Q.exports}var J=re();class g{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var v={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class Z{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,typeof e=="string"&&(e={url:e}),this.base=e,vt(this,"stats")}setByteRange(e,t){const n=e.split("@",2);let r;n.length===1?r=(t==null?void 0:t.byteRangeEndOffset)||0:r=parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get baseurl(){return this.base.url}get byteRange(){return this._byteRange===null?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return this._streams===null&&(this._streams={[v.AUDIO]:null,[v.VIDEO]:null,[v.AUDIOVIDEO]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return this._stats!==null}get hasStreams(){return this._streams!==null}get stats(){return this._stats===null&&(this._stats=new g),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=J.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[v.AUDIO]=null,e[v.VIDEO]=null,e[v.AUDIOVIDEO]=null}}function ce(a){return a.sn!=="initSegment"}class Xe extends Z{constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get byteLength(){if(this.hasStats){const e=this.stats.total;if(e)return e}if(this.byteRange){const e=this.byteRange[0],t=this.byteRange[1];if(p(e)&&p(t))return t-e}return null}get bitrate(){return this.byteLength?this.byteLength*8/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const n=Object.keys(this.levelkeys);if(n.length===1)return this._decryptdata=this.levelkeys[n[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const e=p(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;if(this.levelkeys){const t=Object.keys(this.levelkeys),n=t.length;if(n>1||n===1&&this.levelkeys[t[0]].encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){if(!p(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return ce(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,n,r,i,s=!1){const{elementaryStreams:l}=this,c=l[e];if(!c){l[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:s};return}c.startPTS=Math.min(c.startPTS,t),c.endPTS=Math.max(c.endPTS,n),c.startDTS=Math.min(c.startDTS,r),c.endDTS=Math.max(c.endDTS,i)}}class We extends Z{constructor(e,t,n,r,i){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=r;const s=e.enumeratedString("BYTERANGE");s&&this.setByteRange(s,i),i&&(this.fragOffset=i.fragOffset+i.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function Dt(a,e){const t=Object.getPrototypeOf(a);if(t){const n=Object.getOwnPropertyDescriptor(t,e);return n||Dt(t,e)}}function vt(a,e){const t=Dt(a,e);t&&(t.enumerable=!0,Object.defineProperty(a,e,t))}const $t=Math.pow(2,32)-1,Ht=[].push,ke={video:1,audio:2,id3:3,text:4};function Bt(a){return String.fromCharCode.apply(null,a)}function xn(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function Yt(a,e){const t=mt(a,e);return t<0?4294967296+t:t}function ln(a,e){let t=Yt(a,e);return t*=Math.pow(2,32),t+=Yt(a,e+4),t}function mt(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function Be(a,e,t){a[e]=t>>24,a[e+1]=t>>16&255,a[e+2]=t>>8&255,a[e+3]=t&255}function be(a){const e=a.byteLength;for(let t=0;t<e;){const n=Yt(a,t);if(n>8&&a[t+4]===109&&a[t+5]===111&&a[t+6]===111&&a[t+7]===102)return!0;t=n>1?t+n:e}return!1}function M(a,e){const t=[];if(!e.length)return t;const n=a.byteLength;for(let r=0;r<n;){const i=Yt(a,r),s=Bt(a.subarray(r+4,r+8)),l=i>1?r+i:n;if(s===e[0])if(e.length===1)t.push(a.subarray(r+8,l));else{const c=M(a.subarray(r+8,l),e.slice(1));c.length&&Ht.apply(t,c)}r=l}return t}function Ce(a){const e=[],t=a[0];let n=8;const r=Yt(a,n);n+=4;let i=0,s=0;t===0?(i=Yt(a,n),s=Yt(a,n+4),n+=8):(i=ln(a,n),s=ln(a,n+8),n+=16),n+=2;let l=a.length+s;const c=xn(a,n);n+=2;for(let u=0;u<c;u++){let f=n;const h=Yt(a,f);f+=4;const A=h&2147483647;if((h&2147483648)>>>31===1)return W.warn("SIDX has hierarchical references (not supported)"),null;const D=Yt(a,f);f+=4,e.push({referenceSize:A,subsegmentDuration:D,info:{duration:D/r,start:l,end:l+A-1}}),l+=A,f+=4,n=f}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:c,references:e}}function Ge(a){const e=[],t=M(a,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=M(i,["tkhd"])[0];if(s){let l=s[0];const c=Yt(s,l===0?12:20),u=M(i,["mdia","mdhd"])[0];if(u){l=u[0];const f=Yt(u,l===0?12:20),h=M(i,["mdia","hdlr"])[0];if(h){const A=Bt(h.subarray(8,12)),C={soun:v.AUDIO,vide:v.VIDEO}[A],D=M(i,["mdia","minf","stbl","stsd"])[0],X=K(D);C?(e[c]={timescale:f,type:C,stsd:X},e[C]=x({timescale:f,id:c},X)):e[c]={timescale:f,type:A,stsd:X}}}}}return M(a,["moov","mvex","trex"]).forEach(r=>{const i=Yt(r,4),s=e[i];s&&(s.default={duration:Yt(r,12),flags:Yt(r,20)})}),e}function K(a){const e=a.subarray(8),t=e.subarray(86),n=Bt(e.subarray(4,8));let r=n,i;const s=n==="enca"||n==="encv";if(s){const u=M(e,[n])[0].subarray(n==="enca"?28:78);M(u,["sinf"]).forEach(h=>{const A=M(h,["schm"])[0];if(A){const C=Bt(A.subarray(4,8));if(C==="cbcs"||C==="cenc"){const D=M(h,["frma"])[0];D&&(r=Bt(D))}}})}const l=r;switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const c=M(t,["avcC"])[0];c&&c.length>3&&(r+="."+pe(c[1])+pe(c[2])+pe(c[3]),i=k(l==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const c=M(e,[n])[0],u=M(c.subarray(28),["esds"])[0];if(u&&u.length>7){let f=4;if(u[f++]!==3)break;f=F(u,f),f+=2;const h=u[f++];if(h&128&&(f+=2),h&64&&(f+=u[f++]),u[f++]!==4)break;f=F(u,f);const A=u[f++];if(A===64)r+="."+pe(A);else break;if(f+=12,u[f++]!==5)break;f=F(u,f);const C=u[f++];let D=(C&248)>>3;D===31&&(D+=1+((C&7)<<3)+((u[f]&224)>>5)),r+="."+D}break}case"hvc1":case"hev1":{const c=M(t,["hvcC"])[0];if(c&&c.length>12){const u=c[1],f=["","A","B","C"][u>>6],h=u&31,A=Yt(c,2),C=(u&32)>>5?"H":"L",D=c[12],X=c.subarray(6,12);r+="."+f+h,r+="."+A.toString(16).toUpperCase(),r+="."+C+D;let H="";for(let Ae=X.length;Ae--;){const Qe=X[Ae];(Qe||H)&&(H="."+Qe.toString(16).toUpperCase()+H)}r+=H}i=k(l=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{r=k(r,t)||r;break}case"vp09":{const c=M(t,["vpcC"])[0];if(c&&c.length>6){const u=c[4],f=c[5],h=c[6]>>4&15;r+="."+z(u)+"."+z(f)+"."+z(h)}break}case"av01":{const c=M(t,["av1C"])[0];if(c&&c.length>2){const u=c[1]>>>5,f=c[1]&31,h=c[2]>>>7?"H":"M",A=(c[2]&64)>>6,C=(c[2]&32)>>5,D=u===2&&A?C?12:10:A?10:8,X=(c[2]&16)>>4,H=(c[2]&8)>>3,Ae=(c[2]&4)>>2,Qe=c[2]&3;r+="."+u+"."+z(f)+h+"."+z(D)+"."+X+"."+H+Ae+Qe+"."+z(1)+"."+z(1)+"."+z(1)+"."+0,i=k("dav1",t)}break}}return{codec:r,encrypted:s,supplemental:i}}function k(a,e){const t=M(e,["dvvC"]),n=t.length?t[0]:M(e,["dvcC"])[0];if(n){const r=n[2]>>1&127,i=n[2]<<5&32|n[3]>>3&31;return a+"."+z(r)+"."+z(i)}}function F(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function pe(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function z(a){return(a<10?"0":"")+a}function Y(a,e){if(!a||!e)return a;const t=e.keyId;return t&&e.isCommonEncryption&&M(a,["moov","trak"]).forEach(r=>{const s=M(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let l=M(s,["enca"]);const c=l.length>0;c||(l=M(s,["encv"])),l.forEach(u=>{const f=c?u.subarray(28):u.subarray(78);M(f,["sinf"]).forEach(A=>{const C=ie(A);if(C){const D=C.subarray(8,24);D.some(X=>X!==0)||(W.log(`[eme] Patching keyId in 'enc${c?"a":"v"}>sinf>>tenc' box: ${G.hexDump(D)} -> ${G.hexDump(t)}`),C.set(t,8))}})})}),a}function ie(a){const e=M(a,["schm"])[0];if(e){const t=Bt(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return M(a,["schi","tenc"])[0]}return null}function Te(a,e){return M(e,["moof","traf"]).reduce((t,n)=>{const r=M(n,["tfdt"])[0],i=r[0],s=M(n,["tfhd"]).reduce((l,c)=>{const u=Yt(c,4),f=a[u];if(f){let h=Yt(r,4);if(i===1){if(h===$t)return W.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),l;h*=$t+1,h+=Yt(r,8)}const A=f.timescale||9e4,C=h/A;if(p(C)&&(l===null||C<l))return C}return l},null);return s!==null&&p(s)&&(t===null||s<t)?s:t},null)}function xe(a,e){let t=0,n=0,r=0;const i=M(a,["moof","traf"]);for(let s=0;s<i.length;s++){const l=i[s],c=M(l,["tfhd"])[0],u=Yt(c,4),f=e[u];if(!f)continue;const h=f.default,A=Yt(c,0)|(h==null?void 0:h.flags);let C=h==null?void 0:h.duration;A&8&&(A&2?C=Yt(c,12):C=Yt(c,8));const D=f.timescale||9e4,X=M(l,["trun"]);for(let H=0;H<X.length;H++){if(t=Ue(X[H]),!t&&C){const Ae=Yt(X[H],4);t=C*Ae}f.type===v.VIDEO?n+=t/D:f.type===v.AUDIO&&(r+=t/D)}}if(n===0&&r===0){let s=1/0,l=0,c=0;const u=M(a,["sidx"]);for(let f=0;f<u.length;f++){const h=Ce(u[f]);if(h!=null&&h.references){s=Math.min(s,h.earliestPresentationTime/h.timescale);const A=h.references.reduce((C,D)=>C+D.info.duration||0,0);l=Math.max(l,A+h.earliestPresentationTime/h.timescale),c=l-s}}if(c&&p(c))return c}return n||r}function Ue(a){const e=Yt(a,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let n=0;const r=Yt(a,4);for(let i=0;i<r;i++){if(e&256){const s=Yt(a,t);n+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return n}function Ze(a,e,t){M(e,["moof","traf"]).forEach(n=>{M(n,["tfhd"]).forEach(r=>{const i=Yt(r,4),s=a[i];if(!s)return;const l=s.timescale||9e4;M(n,["tfdt"]).forEach(c=>{const u=c[0],f=t*l;if(f){let h=Yt(c,4);if(u===0)h-=f,h=Math.max(h,0),Be(c,4,h);else{h*=Math.pow(2,32),h+=Yt(c,8),h-=f,h=Math.max(h,0);const A=Math.floor(h/($t+1)),C=Math.floor(h%($t+1));Be(c,4,A),Be(c,8,C)}}})})})}function $e(a){const e={valid:null,remainder:null},t=M(a,["moof"]);if(t.length<2)return e.remainder=a,e;const n=t[t.length-1];return e.valid=a.slice(0,n.byteOffset-8),e.remainder=a.slice(n.byteOffset-8),e}function at(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function ve(a,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return M(n,["moof"]).map(c=>{const u=c.byteOffset-8;M(c,["traf"]).map(h=>{const A=M(h,["tfdt"]).map(C=>{const D=C[0];let X=Yt(C,4);return D===1&&(X*=Math.pow(2,32),X+=Yt(C,8)),X/r})[0];return A!==void 0&&(a=A),M(h,["tfhd"]).map(C=>{const D=Yt(C,4),X=Yt(C,0)&16777215,H=(X&1)!==0,Ae=(X&2)!==0,Qe=(X&8)!==0;let Ke=0;const bt=(X&16)!==0;let St=0;const nn=(X&32)!==0;let wt=8;D===i&&(H&&(wt+=8),Ae&&(wt+=4),Qe&&(Ke=Yt(C,wt),wt+=4),bt&&(St=Yt(C,wt),wt+=4),nn&&(wt+=4),e.type==="video"&&(s=De(e.codec)),M(h,["trun"]).map(Qt=>{const un=Qt[0],Nt=Yt(Qt,0)&16777215,In=(Nt&1)!==0;let Hn=0;const kr=(Nt&4)!==0,vr=(Nt&256)!==0;let fr=0;const sr=(Nt&512)!==0;let hr=0;const ur=(Nt&1024)!==0,kn=(Nt&2048)!==0;let Bn=0;const Tr=Yt(Qt,4);let xr=8;In&&(Hn=Yt(Qt,xr),xr+=4),kr&&(xr+=4);let Ir=Hn+u;for(let Fr=0;Fr<Tr;Fr++){if(vr?(fr=Yt(Qt,xr),xr+=4):fr=Ke,sr?(hr=Yt(Qt,xr),xr+=4):hr=St,ur&&(xr+=4),kn&&(un===0?Bn=Yt(Qt,xr):Bn=mt(Qt,xr),xr+=4),e.type===v.VIDEO){let zr=0;for(;zr<hr;){const Yr=Yt(n,Ir);if(Ir+=4,ot(s,n[Ir])){const gi=n.subarray(Ir,Ir+Yr);Je(gi,s?2:1,a+Bn/r,t)}Ir+=Yr,zr+=Yr+4}}a+=fr/r}}))})})}),t}function De(a){if(!a)return!1;const e=a.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function ot(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Je(a,e,t,n){const r=He(a);let i=0;i+=e;let s=0,l=0,c=0;for(;i<r.length;){s=0;do{if(i>=r.length)break;c=r[i++],s+=c}while(c===255);l=0;do{if(i>=r.length)break;c=r[i++],l+=c}while(c===255);const u=r.length-i;let f=i;if(l<u)i+=l;else if(l>u){W.error(`Malformed SEI payload. ${l} is too small, only ${u} bytes left to parse.`);break}if(s===4){if(r[f++]===181){const A=xn(r,f);if(f+=2,A===49){const C=Yt(r,f);if(f+=4,C===1195456820){const D=r[f++];if(D===3){const X=r[f++],H=31&X,Ae=64&X,Qe=Ae?2+H*3:0,Ke=new Uint8Array(Qe);if(Ae){Ke[0]=X;for(let bt=1;bt<Qe;bt++)Ke[bt]=r[f++]}n.push({type:D,payloadType:s,pts:t,bytes:Ke})}}}}}else if(s===5&&l>16){const h=[];for(let D=0;D<16;D++){const X=r[f++].toString(16);h.push(X.length==1?"0"+X:X),(D===3||D===5||D===7||D===9)&&h.push("-")}const A=l-16,C=new Uint8Array(A);for(let D=0;D<A;D++)C[D]=r[f++];n.push({payloadType:s,pts:t,uuid:h.join(""),userData:Oe(C),userDataBytes:C})}}}function He(a){const e=a.byteLength,t=[];let n=1;for(;n<e-2;)a[n]===0&&a[n+1]===0&&a[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return a;const r=e-t.length,i=new Uint8Array(r);let s=0;for(n=0;n<r;s++,n++)s===t[0]&&(s++,t.shift()),i[n]=a[s];return i}function gt(a){const e=a[0];let t="",n="",r=0,i=0,s=0,l=0,c=0,u=0;if(e===0){for(;Bt(a.subarray(u,u+1))!=="\0";)t+=Bt(a.subarray(u,u+1)),u+=1;for(t+=Bt(a.subarray(u,u+1)),u+=1;Bt(a.subarray(u,u+1))!=="\0";)n+=Bt(a.subarray(u,u+1)),u+=1;n+=Bt(a.subarray(u,u+1)),u+=1,r=Yt(a,12),i=Yt(a,16),l=Yt(a,20),c=Yt(a,24),u=28}else if(e===1){u+=4,r=Yt(a,u),u+=4;const h=Yt(a,u);u+=4;const A=Yt(a,u);for(u+=4,s=hl(2,32)*h+A,fe(s)||(s=Number.MAX_SAFE_INTEGER,W.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=Yt(a,u),u+=4,c=Yt(a,u),u+=4;Bt(a.subarray(u,u+1))!=="\0";)t+=Bt(a.subarray(u,u+1)),u+=1;for(t+=Bt(a.subarray(u,u+1)),u+=1;Bt(a.subarray(u,u+1))!=="\0";)n+=Bt(a.subarray(u,u+1)),u+=1;n+=Bt(a.subarray(u,u+1)),u+=1}const f=a.subarray(u,a.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:i,eventDuration:l,id:c,payload:f}}function Rt(a,...e){const t=e.length;let n=8,r=t;for(;r--;)n+=e[r].byteLength;const i=new Uint8Array(n);for(i[0]=n>>24&255,i[1]=n>>16&255,i[2]=n>>8&255,i[3]=n&255,i.set(a,4),r=0,n=8;r<t;r++)i.set(e[r],n),n+=e[r].byteLength;return i}function st(a,e,t){if(a.byteLength!==16)throw new RangeError("Invalid system id");let n,r;n=0,r=new Uint8Array;let i;n>0?(i=new Uint8Array(4),e.length>0&&new DataView(i.buffer).setUint32(0,e.length,!1)):i=new Uint8Array;const s=new Uint8Array(4);return t&&t.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),Rt([112,115,115,104],new Uint8Array([n,0,0,0]),a,i,r,s,t||new Uint8Array)}function Kt(a){const e=[];if(a instanceof ArrayBuffer){const t=a.byteLength;let n=0;for(;n+32<t;){const r=new DataView(a,n),i=cn(r);e.push(i),n+=i.size}}return e}function cn(a){const e=a.getUint32(0),t=a.byteOffset,n=a.byteLength;if(n<e)return{offset:t,size:n};if(a.getUint32(4)!==1886614376)return{offset:t,size:e};const i=a.getUint32(8)>>>24;if(i!==0&&i!==1)return{offset:t,size:e};const s=a.buffer,l=G.hexDump(new Uint8Array(s,t+12,16)),c=a.getUint32(28);let u=null,f=null;if(i===0){if(e-32<c||c<22)return{offset:t,size:e};f=new Uint8Array(s,t+32,c)}else if(i===1){if(!c||n<t+32+c*16+16)return{offset:t,size:e};u=[];for(let h=0;h<c;h++)u.push(new Uint8Array(s,t+32+h*16,16))}return{version:i,systemId:l,kids:u,data:f,offset:t,size:e}}const At=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),Xt={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function Fe(a,e){const t=Xt[e];return!!t&&!!t[a.slice(0,4)]}function Ne(a,e,t=!0){return!a.split(",").some(n=>!Me(n,e,t))}function Me(a,e,t=!0){var n;const r=ne(t);return(n=r==null?void 0:r.isTypeSupported(I(a,e)))!=null?n:!1}function I(a,e){return`${e}/mp4;codecs=${a}`}function ae(a){if(a){const e=a.substring(0,4);return Xt.video[e]}return 2}function de(a){const e=At();return a.split(",").reduce((t,n)=>{const i=e&&De(n)?9:Xt.video[n];return i?(i*2+t)/(t?3:2):(Xt.audio[n]+t)/(t?2:1)},0)}const se={};function Se(a,e=!0){if(se[a])return se[a];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[a];for(let r=0;r<t.length;r++){var n;if(Me(t[r],"audio",e))return se[a]=t[r],t[r];if(t[r]==="mp3"&&(n=ne(e))!=null&&n.isTypeSupported("audio/mpeg"))return""}return a}const Mt=/flac|opus|mp4a\.40\.34/i;function It(a,e=!0){return a.replace(Mt,t=>Se(t.toLowerCase(),e))}function Ft(a,e){const t=[];if(a){const n=a.split(",");for(let r=0;r<n.length;r++)Fe(n[r],"video")||t.push(n[r])}return e&&t.push(e),t.join(",")}function fn(a,e){if(a&&(a.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(a)!==-1))return a;if(e){const t=e.split(",");if(t.length>1){if(a){for(let n=t.length;n--;)if(t[n].substring(0,4)===a.substring(0,4))return t[n]}return t[0]}}return e||a}function Le(a){const e=a.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");if(n.length>2){let r=n.shift()+".";r+=parseInt(n.shift()).toString(16),r+=("000"+parseInt(n.shift()).toString(16)).slice(-4),e[t]=r}}return e.join(",")}function _(a){if(a.startsWith("av01.")){const e=a.split("."),t=["0","111","01","01","01","0"];for(let n=e.length;n>4&&n<10;n++)e[n]=t[n-4];return e.join(".")}return a}function j(a){const e=ne(a)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function E(a){return a.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Pe={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function ye(a,e){return{supported:!1,configurations:e,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:a}}const we={};function ze(a,e,t,n,r,i){const s=a.audioCodec?a.audioGroups:null,l=i==null?void 0:i.audioCodec,c=i==null?void 0:i.channels,u=c?parseInt(c):l?1/0:2;let f=null;if(s!=null&&s.length)try{s.length===1&&s[0]?f=e.groups[s[0]].channels:f=s.reduce((h,A)=>{if(A){const C=e.groups[A];if(!C)throw new Error(`Audio track group ${A} not found`);Object.keys(C.channels).forEach(D=>{h[D]=(h[D]||0)+C.channels[D]})}return h},{2:0})}catch(h){return!0}return a.videoCodec!==void 0&&(a.width>1920&&a.height>1088||a.height>1920&&a.width>1088||a.frameRate>Math.max(n,30)||a.videoRange!=="SDR"&&a.videoRange!==t||a.bitrate>Math.max(r,8e6))||!!f&&p(u)&&Object.keys(f).some(h=>parseInt(h)>u)}function ut(a,e,t){const n=a.videoCodec,r=a.audioCodec;if(!n&&!r||!t)return Promise.resolve(Pe);const i=[];if(n){const s={width:a.width,height:a.height,bitrate:Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)),framerate:a.frameRate||30},l=a.videoRange;l!=="SDR"&&(s.transferFunction=l.toLowerCase());const c=n.split(","),u=navigator.userAgent;if(c.some(f=>De(f))&&At())return Promise.resolve(ye(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent sting: (${u})`),i));i.push.apply(i,c.map(f=>({type:"media-source",video:x(x({},s),{},{contentType:I(_(f),"video")})})))}return r&&a.audioGroups&&a.audioGroups.forEach(s=>{var l;s&&((l=e.groups[s])==null||l.tracks.forEach(c=>{if(c.groupId===s){const u=c.channels||"",f=parseFloat(u);p(f)&&f>2&&i.push.apply(i,r.split(",").map(h=>({type:"media-source",audio:{contentType:I(h,"audio"),channels:""+f}})))}}))}),Promise.all(i.map(s=>{const l=Pt(s);return we[l]||(we[l]=t.decodingInfo(s))})).then(s=>({supported:!s.some(l=>!l.supported),configurations:i,decodingInfoResults:s})).catch(s=>({supported:!1,configurations:i,decodingInfoResults:[],error:s}))}function Pt(a){const{audio:e,video:t}=a,n=t||e;if(n){const r=E(n.contentType);if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${r}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${r}`}return""}const Vt=["NONE","TYPE-0","TYPE-1",null];function Ut(a){return Vt.indexOf(a)>-1}const mn=["SDR","PQ","HLG"];function Re(a){return!!a&&mn.indexOf(a)>-1}var _e={No:"",Yes:"YES",v2:"v2"};function Ve(a){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=a,r=n<e/2;return e&&r?t?_e.v2:_e.Yes:_e.No}class et{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}addDirectives(e){const t=new self.URL(e);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class dt{constructor(e){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(n=>!!n).map(n=>n.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const n=(t=e.supplemental)==null?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return Et(this._audioGroups,e)}hasSubtitleGroup(e){return Et(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let n=this._audioGroups;n||(n=this._audioGroups=[]),n.indexOf(t)===-1&&n.push(t)}else if(e==="text"){let n=this._subtitleGroups;n||(n=this._subtitleGroups=[]),n.indexOf(t)===-1&&n.push(t)}}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return(e=this.audioGroups)==null?void 0:e[0]}get textGroupId(){var e;return(e=this.subtitleGroups)==null?void 0:e[0]}addFallback(){}}function Et(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function tt(){if(typeof matchMedia=="function"){const a=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(a.media!==e.media)return a.matches===!0}return!1}function nt(a,e){let t=!1,n=[];if(a&&(t=a!=="SDR",n=[a]),e){n=e.allowedVideoRanges||mn.slice(0);const r=n.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:r&&tt(),t||(n=["SDR"])}return{preferHDR:t,allowedVideoRanges:n}}const _t=a=>{const e=new WeakSet;return(t,n)=>{if(a&&(n=a(t,n)),typeof n=="object"&&n!==null){if(e.has(n))return;e.add(n)}return n}},Ct=(a,e)=>JSON.stringify(a,_t(e));function pn(a,e,t,n,r){const i=Object.keys(a),s=n==null?void 0:n.channels,l=n==null?void 0:n.audioCodec,c=r==null?void 0:r.videoCodec,u=s&&parseInt(s)===2;let f=!1,h=!1,A=1/0,C=1/0,D=1/0,X=1/0,H=0,Ae=[];const{preferHDR:Qe,allowedVideoRanges:Ke}=nt(e,r);for(let Qt=i.length;Qt--;){const un=a[i[Qt]];f||(f=un.channels[2]>0),A=Math.min(A,un.minHeight),C=Math.min(C,un.minFramerate),D=Math.min(D,un.minBitrate),Ke.filter(In=>un.videoRanges[In]>0).length>0&&(h=!0)}A=p(A)?A:0,C=p(C)?C:0;const bt=Math.max(1080,A),St=Math.max(30,C);D=p(D)?D:t,t=Math.max(D,t),h||(e=void 0);const nn=i.length>1;return{codecSet:i.reduce((Qt,un)=>{const Nt=a[un];if(un===Qt)return Qt;if(Ae=h?Ke.filter(In=>Nt.videoRanges[In]>0):[],nn){if(Nt.minBitrate>t)return _n(un,`min bitrate of ${Nt.minBitrate} > current estimate of ${t}`),Qt;if(!Nt.hasDefaultAudio)return _n(un,"no renditions with default or auto-select sound found"),Qt;if(l&&un.indexOf(l.substring(0,4))%5!==0)return _n(un,`audio codec preference "${l}" not found`),Qt;if(s&&!u){if(!Nt.channels[s])return _n(un,`no renditions with ${s} channel sound found (channels options: ${Object.keys(Nt.channels)})`),Qt}else if((!l||u)&&f&&Nt.channels[2]===0)return _n(un,"no renditions with stereo sound found"),Qt;if(Nt.minHeight>bt)return _n(un,`min resolution of ${Nt.minHeight} > maximum of ${bt}`),Qt;if(Nt.minFramerate>St)return _n(un,`min framerate of ${Nt.minFramerate} > maximum of ${St}`),Qt;if(!Ae.some(In=>Nt.videoRanges[In]>0))return _n(un,`no variants with VIDEO-RANGE of ${Ct(Ae)} found`),Qt;if(c&&un.indexOf(c.substring(0,4))%5!==0)return _n(un,`video codec preference "${c}" not found`),Qt;if(Nt.maxScore<H)return _n(un,`max score of ${Nt.maxScore} < selected max of ${H}`),Qt}return Qt&&(de(un)>=de(Qt)||Nt.fragmentError>a[Qt].fragmentError)?Qt:(X=Nt.minIndex,H=Nt.maxScore,un)},void 0),videoRanges:Ae,preferHDR:Qe,minFramerate:C,minBitrate:D,minIndex:X}}function _n(a,e){W.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function an(a){return a.reduce((e,t)=>{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);const r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function zt(a,e,t,n){return a.slice(t,n+1).reduce((r,i,s)=>{if(!i.codecSet)return r;const l=i.audioGroups;let c=r[i.codecSet];c||(r[i.codecSet]=c={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),c.minBitrate=Math.min(c.minBitrate,i.bitrate);const u=Math.min(i.height,i.width);return c.minHeight=Math.min(c.minHeight,u),c.minFramerate=Math.min(c.minFramerate,i.frameRate),c.minIndex=Math.min(c.minIndex,s),c.maxScore=Math.max(c.maxScore,i.score),c.fragmentError+=i.fragmentError,c.videoRanges[i.videoRange]=(c.videoRanges[i.videoRange]||0)+1,l&&l.forEach(f=>{if(!f)return;const h=e.groups[f];h&&(c.hasDefaultAudio=c.hasDefaultAudio||e.hasDefaultAudio?h.hasDefault:h.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(h.channels).forEach(A=>{c.channels[A]=(c.channels[A]||0)+h.channels[A]}))}),r},{})}function Ie(a){if(!a)return a;const{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}=a;return{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}}function qe(a,e,t){if("attrs"in a){const n=e.indexOf(a);if(n!==-1)return n}for(let n=0;n<e.length;n++){const r=e[n];if(ft(a,r,t))return n}return-1}function ft(a,e,t){const{groupId:n,name:r,lang:i,assocLang:s,default:l}=a,c=a.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(i===void 0||ht(i,e.lang))&&(i===void 0||e.assocLang===s)&&(l===void 0||e.default===l)&&(c===void 0||e.forced===c)&&(!("characteristics"in a)||Gt(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function ht(a,e="--"){return a.length===e.length?a===e:a.startsWith(e)||e.startsWith(a)}function Gt(a,e=""){const t=a.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function en(a,e){const{audioCodec:t,channels:n}=a;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(n===void 0||n===(e.channels||"2"))}function Wt(a,e,t,n,r){const i=e[n],l=e.reduce((A,C,D)=>{const X=C.uri;return(A[X]||(A[X]=[])).push(D),A},{})[i.uri];l.length>1&&(n=Math.max.apply(Math,l));const c=i.videoRange,u=i.frameRate,f=i.codecSet.substring(0,4),h=rn(e,n,A=>{if(A.videoRange!==c||A.frameRate!==u||A.codecSet.substring(0,4)!==f)return!1;const C=A.audioGroups,D=t.filter(X=>!C||C.indexOf(X.groupId)!==-1);return qe(a,D,r)>-1});return h>-1?h:rn(e,n,A=>{const C=A.audioGroups,D=t.filter(X=>!C||C.indexOf(X.groupId)!==-1);return qe(a,D,r)>-1})}function rn(a,e,t){for(let n=e;n>-1;n--)if(t(a[n]))return n;for(let n=e+1;n<a.length;n++)if(t(a[n]))return n;return-1}function hn(a,e){var t;return!!a&&a!==((t=e.loadLevelObj)==null?void 0:t.uri)}class Sn extends V{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.bwEstimator=void 0,this._abandonRulesCheck=t=>{var n;const{fragCurrent:r,partCurrent:i,hls:s}=this,{autoLevelEnabled:l,media:c}=s;if(!r||!c)return;const u=performance.now(),f=i?i.stats:r.stats,h=i?i.duration:r.duration,A=u-f.loading.start,C=s.minAutoLevel,D=r.level,X=this._nextAutoLevel;if(f.aborted||f.loaded&&f.loaded===f.total||D<=C){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const H=X>-1&&X!==D,Ae=!!t||H;if(!Ae&&(c.paused||!c.playbackRate||!c.readyState))return;const Qe=s.mainForwardBufferInfo;if(!Ae&&Qe===null)return;const Ke=this.bwEstimator.getEstimateTTFB(),bt=Math.abs(c.playbackRate);if(A<=Math.max(Ke,1e3*(h/(bt*2))))return;const St=Qe?Qe.len/bt:0,nn=f.loading.first?f.loading.first-f.loading.start:-1,wt=f.loaded&&nn>-1,Qt=this.getBwEstimate(),un=s.levels,Nt=un[D],In=Math.max(f.loaded,Math.round(h*(r.bitrate||Nt.averageBitrate)/8));let Hn=wt?A-nn:A;Hn<1&&wt&&(Hn=Math.min(A,f.loaded*8/Qt));const kr=wt?f.loaded*1e3/Hn:0,vr=Ke/1e3,fr=kr?(In-f.loaded)/kr:In*8/Qt+vr;if(fr<=St)return;const sr=kr?kr*8:Qt,hr=((n=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:n.live)===!0,ur=this.hls.config.abrBandWidthUpFactor;let kn=Number.POSITIVE_INFINITY,Bn;for(Bn=D-1;Bn>C;Bn--){const Fr=un[Bn].maxBitrate,zr=!un[Bn].details||hr;if(kn=this.getTimeToLoadFrag(vr,sr,h*Fr,zr),kn<Math.min(St,h+vr))break}if(kn>=fr||kn>h*10)return;wt?this.bwEstimator.sample(A-Math.min(Ke,nn),f.loaded):this.bwEstimator.sampleTTFB(A);const Tr=un[Bn].maxBitrate;this.getBwEstimate()*ur>Tr&&this.resetEstimator(Tr);const xr=this.findBestLevel(Tr,C,Bn,0,St,1,1);xr>-1&&(Bn=xr),this.warn(`Fragment ${r.sn}${i?" part "+i.index:""} of level ${D} is loading too slowly;
|
|
Fragment duration: ${r.duration.toFixed(3)}
|
|
Time to underbuffer: ${St.toFixed(3)} s
|
|
Estimated load time for current fragment: ${fr.toFixed(3)} s
|
|
Estimated load time for down switch fragment: ${kn.toFixed(3)} s
|
|
TTFB estimate: ${nn|0} ms
|
|
Current BW estimate: ${p(Qt)?Qt|0:"Unknown"} bps
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
Switching to level ${Bn} @ ${Tr|0} bps`),s.nextLoadLevel=s.nextAutoLevel=Bn,this.clearTimer();const Ir=()=>{if(this.clearTimer(),this.fragCurrent===r&&this.hls.loadLevel===Bn&&Bn>0){const Fr=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${Bn>0?"and switching down":""}
|
|
Fragment duration: ${r.duration.toFixed(3)} s
|
|
Time to underbuffer: ${Fr.toFixed(3)} s`),r.abortRequests(),this.fragCurrent=this.partCurrent=null,Bn>C){let zr=this.findBestLevel(this.hls.levels[C].bitrate,C,Bn,0,Fr,1,1);zr===-1&&(zr=C),this.hls.nextLoadLevel=this.hls.nextAutoLevel=zr,this.resetEstimator(this.hls.levels[zr].bitrate)}}};H||fr>kn*2?Ir():this.timer=self.setInterval(Ir,kn*1e3),s.trigger(d.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,part:i,stats:f})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(this.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new b(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.FRAG_LOADING,this.onFragLoading,this),e.on(d.FRAG_LOADED,this.onFragLoaded,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this),e.on(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(d.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.FRAG_LOADING,this.onFragLoading,this),e.off(d.FRAG_LOADED,this.onFragLoaded,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this),e.off(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(d.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(d.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const n=t.frag;if(!this.ignoreFragment(n)){if(!n.bitrateTest){var r;this.fragCurrent=n,this.partCurrent=(r=t.part)!=null?r:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case O.BUFFER_ADD_CODEC_ERROR:case O.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case O.FRAG_LOAD_TIMEOUT:{const n=t.frag,{fragCurrent:r,partCurrent:i}=this;if(n&&r&&n.sn===r.sn&&n.level===r.level){const s=performance.now(),l=i?i.stats:n.stats,c=s-l.loading.start,u=l.loading.first?l.loading.first-l.loading.start:-1;if(l.loaded&&u>-1){const h=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(c-Math.min(h,u),l.loaded)}else this.bwEstimator.sampleTTFB(c)}break}}}getTimeToLoadFrag(e,t,n,r){const i=e+n/t,s=r?e+this.lastLevelLoadSec:0;return i+s}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.first;p(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:n}){const r=n?n.stats:t.stats;if(t.type===le.MAIN&&this.bwEstimator.sampleTTFB(r.loading.first-r.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const i=n?n.duration:t.duration,s=this.hls.levels[t.level],l=(s.loaded?s.loaded.bytes:0)+r.loaded,c=(s.loaded?s.loaded.duration:0)+i;s.loaded={bytes:l,duration:c},s.realBitrate=Math.round(8*l/c)}if(t.bitrateTest){const i={stats:r,frag:t,part:n,id:t.type};this.onFragBuffered(d.FRAG_BUFFERED,i),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:r}=t,i=r!=null&&r.stats.loaded?r.stats:n.stats;if(i.aborted||this.ignoreFragment(n))return;const s=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==le.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),r=this.hls.config.maxStarvationDelay,i=this.findBestLevel(n,t,e,0,r,1,1);if(i>-1)return i;const s=this.hls.firstLevel,l=Math.min(Math.max(s,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${l}`),l}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,n=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(e!==-1&&(!n||!r||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const i=n&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const s=this.hls.levels;if(s.length>Math.max(e,i)&&s[e].loadError<=s[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:r,config:i,minAutoLevel:s}=n,l=t?t.duration:e?e.duration:0,c=this.getBwEstimate(),u=this.getStarvationDelay();let f=i.abrBandWidthFactor,h=i.abrBandWidthUpFactor;if(u){const H=this.findBestLevel(c,s,r,u,0,f,h);if(H>=0)return this.rebufferNotice=-1,H}let A=l?Math.min(l,i.maxStarvationDelay):i.maxStarvationDelay;if(!u){const H=this.bitrateTestDelay;H&&(A=(l?Math.min(l,i.maxLoadingDelay):i.maxLoadingDelay)-H,this.info(`bitrate test took ${Math.round(1e3*H)}ms, set first fragment max fetchDuration to ${Math.round(1e3*A)} ms`),f=h=1)}const C=this.findBestLevel(c,s,r,u,A,f,h);if(this.rebufferNotice!==C&&(this.rebufferNotice=C,this.info(`${u?"rebuffering expected":"buffer is empty"}, optimal quality level ${C}`)),C>-1)return C;const D=n.levels[s],X=n.loadLevelObj;return X&&(D==null?void 0:D.bitrate)<X.bitrate?s:n.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const n=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,r,i,s,l){var c;const u=r+i,f=this.lastLoadedFragLevel,h=f===-1?this.hls.firstLevel:f,{fragCurrent:A,partCurrent:C}=this,{levels:D,allAudioTracks:X,loadLevel:H,config:Ae}=this.hls;if(D.length===1)return 0;const Qe=D[h],Ke=!!((c=this.hls.latestLevelDetails)!=null&&c.live),bt=H===-1||f===-1;let St,nn="SDR",wt=(Qe==null?void 0:Qe.frameRate)||0;const{audioPreference:Qt,videoPreference:un}=Ae,Nt=this.audioTracksByGroup||(this.audioTracksByGroup=an(X));let In=-1;if(bt){if(this.firstSelection!==-1)return this.firstSelection;const sr=this.codecTiers||(this.codecTiers=zt(D,Nt,t,n)),hr=pn(sr,nn,e,Qt,un),{codecSet:ur,videoRanges:kn,minFramerate:Bn,minBitrate:Tr,minIndex:xr,preferHDR:Ir}=hr;In=xr,St=ur,nn=Ir?kn[kn.length-1]:kn[0],wt=Bn,e=Math.max(e,Tr),this.log(`picked start tier ${Ct(hr)}`)}else St=Qe==null?void 0:Qe.codecSet,nn=Qe==null?void 0:Qe.videoRange;const Hn=C?C.duration:A?A.duration:0,kr=this.bwEstimator.getEstimateTTFB()/1e3,vr=[];for(let sr=n;sr>=t;sr--){var fr;const hr=D[sr],ur=sr>h;if(!hr)continue;if(Ae.useMediaCapabilities&&!hr.supportedResult&&!hr.supportedPromise){const zr=navigator.mediaCapabilities;typeof(zr==null?void 0:zr.decodingInfo)=="function"&&(ze(hr,Nt,nn,wt,e,Qt)||De(hr.videoCodec))?(hr.supportedPromise=ut(hr,Nt,zr),hr.supportedPromise.then(Yr=>{if(!this.hls)return;hr.supportedResult=Yr;const gi=this.hls.levels,xi=gi.indexOf(hr);Yr.error?this.warn(`MediaCapabilities decodingInfo error: "${Yr.error}" for level ${xi} ${Ct(Yr)}`):Yr.supported||(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${xi} ${Ct(Yr)}`),xi>-1&&gi.length>1&&(this.log(`Removing unsupported level ${xi}`),this.hls.removeLevel(xi),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))})):hr.supportedResult=Pe}if((St&&hr.codecSet!==St||nn&&hr.videoRange!==nn||ur&&wt>hr.frameRate||!ur&&wt>0&&wt<hr.frameRate||hr.supportedResult&&!((fr=hr.supportedResult.decodingInfoResults)!=null&&fr[0].smooth))&&(!bt||sr!==In)){vr.push(sr);continue}const kn=hr.details,Bn=(C?kn==null?void 0:kn.partTarget:kn==null?void 0:kn.averagetargetduration)||Hn;let Tr;ur?Tr=l*e:Tr=s*e;const xr=Hn&&r>=Hn*2&&i===0?hr.averageBitrate:hr.maxBitrate,Ir=this.getTimeToLoadFrag(kr,Tr,xr*Bn,kn===void 0);if(Tr>=xr&&(sr===f||hr.loadError===0&&hr.fragmentError===0)&&(Ir<=kr||!p(Ir)||Ke&&!this.bitrateTestDelay||Ir<u)){const zr=this.forcedAutoLevel;return sr!==H&&(zr===-1||zr!==H)&&(vr.length&&this.trace(`Skipped level(s) ${vr.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${D[vr[0]].codecs}" ${D[vr[0]].videoRange}; not compatible with "${St}" ${nn}`),this.info(`switch candidate:${h}->${sr} adjustedbw(${Math.round(Tr)})-bitrate=${Math.round(Tr-xr)} ttfb:${kr.toFixed(1)} avgDuration:${Bn.toFixed(1)} maxFetchDuration:${u.toFixed(1)} fetchDuration:${Ir.toFixed(1)} firstSelection:${bt} codecSet:${hr.codecSet} videoRange:${hr.videoRange} hls.loadLevel:${H}`)),bt&&(this.firstSelection=sr),sr}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls;return Math.min(Math.max(e,n),t)}}const Un={search:function(a,e){let t=0,n=a.length-1,r=null,i=null;for(;t<=n;){r=(t+n)/2|0,i=a[r];const s=e(i);if(s>0)t=r+1;else if(s<0)n=r-1;else return i}return null}};function yn(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!p(e))return null;const n=a[0].programDateTime;if(e<(n||0))return null;const r=a[a.length-1].endProgramDateTime;if(e>=(r||0))return null;t=t||0;for(let i=0;i<a.length;++i){const s=a[i];if(Mn(e,t,s))return s}return null}function Zn(a,e,t=0,n=0,r=.005){let i=null;if(a){i=e[1+a.sn-e[0].sn]||null;const l=a.endDTS-t;l>0&&l<15e-7&&(t+=15e-7),i&&a.level!==i.level&&i.end<=a.end&&(i=e[2+a.sn-e[0].sn]||null)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!a||a.level===i.level)&&Gn(t,n,i)===0||Nn(i,a,Math.min(r,n))))return i;const s=Un.search(e,Gn.bind(null,t,n));return s&&(s!==a||!i)?s:i}function Nn(a,e,t){if(e&&e.start===0&&e.level<a.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,i)=>(i[0]==="INF"&&(r+=parseFloat(i[1])),r),t);return a.start<=n}return!1}function Gn(a=0,e=0,t){if(t.start<=a&&t.start+t.duration>a)return 0;const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-n<=a?1:t.start-n>a&&t.start?-1:0}function Mn(a,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>a}function On(a,e){return Un.search(a,t=>t.cc<e?1:t.cc>e?-1:0)}function Qn(a,e,t){if(a&&a.startCC<=e&&a.endCC>=e){const n=t.start,r=t.end;let i=a.fragments;if(!t.relurl){const{fragmentHint:s}=a;s&&(i=i.concat(s))}return Un.search(i,s=>s.cc<e||s.end<=n?1:s.cc>e||s.start>=r?-1:0)}return null}function vn(a){switch(a.details){case O.FRAG_LOAD_TIMEOUT:case O.KEY_LOAD_TIMEOUT:case O.LEVEL_LOAD_TIMEOUT:case O.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Dn(a,e){const t=vn(e);return a.default[`${t?"timeout":"error"}Retry`]}function je(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function Lt(a){return x(x({},a),{errorRetry:null,timeoutRetry:null})}function tn(a,e,t,n){if(!a)return!1;const r=n==null?void 0:n.code,i=e<a.maxNumRetry&&(gn(r)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,n,i):i}function gn(a){return a===0&&navigator.onLine===!1||!!a&&(a<400||a>499)}var zn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Ee={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class lt extends V{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(d.ERROR,this.onError,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(d.ERROR,this.onError,this),e.off(d.ERROR,this.onErrorOut,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===le.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const r=this.hls,i=t.context;switch(t.details){case O.FRAG_LOAD_ERROR:case O.FRAG_LOAD_TIMEOUT:case O.KEY_LOAD_ERROR:case O.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case O.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction=Ye();return}case O.FRAG_GAP:case O.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=zn.SendAlternateToPenaltyBox;return}case O.LEVEL_EMPTY_ERROR:case O.LEVEL_PARSING_ERROR:{var s,l;const u=t.parent===le.MAIN?t.level:r.loadLevel;t.details===O.LEVEL_EMPTY_ERROR&&((s=t.context)!=null&&(l=s.levelDetails)!=null&&l.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,u):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,u))}return;case O.LEVEL_LOAD_ERROR:case O.LEVEL_LOAD_TIMEOUT:typeof(i==null?void 0:i.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level));return;case O.AUDIO_TRACK_LOAD_ERROR:case O.AUDIO_TRACK_LOAD_TIMEOUT:case O.SUBTITLE_LOAD_ERROR:case O.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const u=r.loadLevelObj;if(u&&(i.type===ge.AUDIO_TRACK&&u.hasAudioGroup(i.groupId)||i.type===ge.SUBTITLE_TRACK&&u.hasSubtitleGroup(i.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=zn.SendAlternateToPenaltyBox,t.errorAction.flags=Ee.MoveAllAlternatesMatchingHost;return}}return;case O.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const u=r.loadLevelObj,f=u==null?void 0:u.attrs["HDCP-LEVEL"];f?t.errorAction={action:zn.SendAlternateToPenaltyBox,flags:Ee.MoveAllAlternatesMatchingHDCP,hdcpLevel:f}:this.keySystemError(t)}return;case O.BUFFER_ADD_CODEC_ERROR:case O.REMUX_ALLOC_ERROR:case O.BUFFER_APPEND_ERROR:if(!t.errorAction){var c;t.errorAction=this.getLevelSwitchAction(t,(c=t.level)!=null?c:r.loadLevel)}return;case O.INTERNAL_EXCEPTION:case O.BUFFER_APPENDING_ERROR:case O.BUFFER_FULL_ERROR:case O.LEVEL_SWITCH_ERROR:case O.BUFFER_STALLED_ERROR:case O.BUFFER_SEEK_OVER_HOLE:case O.BUFFER_NUDGE_ON_STALL:t.errorAction=Ye();return}t.type===me.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=Dn(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(tn(r,i,vn(e),e.response))return{action:zn.RetryRequest,flags:Ee.None,retryConfig:r,retryCount:i};const l=this.getLevelSwitchAction(e,t);return r&&(l.retryConfig=r,l.retryCount=i),l}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:s}=t.config,l=Dn(e.details.startsWith("key")?s:i,e),c=t.levels.reduce((f,h)=>f+h.fragmentError,0);if(r&&(e.details!==O.FRAG_GAP&&r.fragmentError++,tn(l,c,vn(e),e.response)))return{action:zn.RetryRequest,flags:Ee.None,retryConfig:l,retryCount:c};const u=this.getLevelSwitchAction(e,n);return l&&(u.retryConfig=l,u.retryCount=c),u}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,s;const u=e.details;r.loadError++,u===O.BUFFER_APPEND_ERROR&&r.fragmentError++;let f=-1;const{levels:h,loadLevel:A,minAutoLevel:C,maxAutoLevel:D}=n;n.autoLevelEnabled||(n.loadLevel=-1);const X=(i=e.frag)==null?void 0:i.type,Ae=(X===le.AUDIO&&u===O.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(u===O.BUFFER_ADD_CODEC_ERROR||u===O.BUFFER_APPEND_ERROR))&&h.some(({audioCodec:nn})=>r.audioCodec!==nn),Ke=e.sourceBufferName==="video"&&(u===O.BUFFER_ADD_CODEC_ERROR||u===O.BUFFER_APPEND_ERROR)&&h.some(({codecSet:nn,audioCodec:wt})=>r.codecSet!==nn&&r.audioCodec===wt),{type:bt,groupId:St}=(s=e.context)!=null?s:{};for(let nn=h.length;nn--;){const wt=(nn+A)%h.length;if(wt!==A&&wt>=C&&wt<=D&&h[wt].loadError===0){var l,c;const Qt=h[wt];if(u===O.FRAG_GAP&&X===le.MAIN&&e.frag){const un=h[wt].details;if(un){const Nt=Zn(e.frag,un.fragments,e.frag.start);if(Nt!=null&&Nt.gap)continue}}else{if(bt===ge.AUDIO_TRACK&&Qt.hasAudioGroup(St)||bt===ge.SUBTITLE_TRACK&&Qt.hasSubtitleGroup(St))continue;if(X===le.AUDIO&&(l=r.audioGroups)!=null&&l.some(un=>Qt.hasAudioGroup(un))||X===le.SUBTITLE&&(c=r.subtitleGroups)!=null&&c.some(un=>Qt.hasSubtitleGroup(un))||Ae&&r.audioCodec===Qt.audioCodec||!Ae&&r.audioCodec!==Qt.audioCodec||Ke&&r.codecSet===Qt.codecSet)continue}f=wt;break}}if(f>-1&&n.loadLevel!==f)return e.levelRetry=!0,this.playlistError=0,{action:zn.SendAlternateToPenaltyBox,flags:Ee.None,nextAutoLevel:f}}return{action:zn.SendAlternateToPenaltyBox,flags:Ee.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case zn.DoNothing:break;case zn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==O.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break;case zn.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r,hdcpLevel:i,nextAutoLevel:s}=n;switch(r){case Ee.None:this.switchLevel(e,s);break;case Ee.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Vt[Vt.indexOf(i)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}n.resolved||this.switchLevel(e,s)}switchLevel(e,t){if(t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===O.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const n=E(e.mimeType),r=this.hls.levels;for(let i=r.length;i--;)r[i][`${e.sourceBufferName}Codec`]===n&&this.hls.removeLevel(i)}}}function Ye(a){const e={action:zn.DoNothing,flags:Ee.None};return a&&(e.resolved=!0),e}var it={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class yt{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.BUFFER_APPENDED,this.onBufferAppended,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this),e.on(d.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.BUFFER_APPENDED,this.onBufferAppended,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this),e.off(d.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let r=n.length;r--;){const i=n[r];if(!i)break;const s=i.end;if(i.start<=e&&s!==null&&e<=s)return i}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:r}=this,i=Object.keys(r);for(let s=i.length;s--;){const l=r[i[s]];if((l==null?void 0:l.body.type)===t&&(!n||l.buffered)){const c=l.body;if(c.start<=e&&e<=c.end)return c}}return null}detectEvictedFragments(e,t,n,r,i){this.timeRanges&&(this.timeRanges[e]=t);const s=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(l=>{const c=this.fragments[l];if(!c||s>=c.body.sn)return;if(!c.buffered&&(!c.loaded||i)){c.body.type===n&&this.removeFragment(c.body);return}const u=c.range[e];if(u){if(u.time.length===0){this.removeFragment(c.body);return}u.time.some(f=>{const h=!this.isTimeBuffered(f.startPTS,f.endPTS,t);return h&&this.removeFragment(c.body),h})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const n=e.frag,r=Jt(n),i=this.fragments[r];if(!i||i.buffered&&n.gap)return;const s=!n.relurl;Object.keys(t).forEach(l=>{const c=n.elementaryStreams[l];if(!c)return;const u=t[l],f=s||c.partial===!0;i.range[l]=this.getBufferedTimes(n,e.part,f,u)}),i.loaded=null,Object.keys(i.range).length?(i.buffered=!0,(i.body.endList=n.endList||i.body.endList)&&(this.endListFragments[i.body.type]=i),Tt(i)||this.removeParts(n.sn-1,n.type)):this.removeFragment(i.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=qt(n,r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=Jt(e);let r=this.fragments[n];!r&&t&&(r=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)}getBufferedTimes(e,t,n,r){const i={time:[],partial:n},s=e.start,l=e.end,c=e.minEndPTS||l,u=e.maxStartPTS||s;for(let f=0;f<r.length;f++){const h=r.start(f)-this.bufferPadding,A=r.end(f)+this.bufferPadding;if(u>=h&&c<=A){i.time.push({startPTS:Math.max(s,r.start(f)),endPTS:Math.min(l,r.end(f))});break}else if(s<A&&l>h){const C=Math.max(s,r.start(f)),D=Math.min(l,r.end(f));D>C&&(i.partial=!0,i.time.push({startPTS:C,endPTS:D}))}else if(l<=h)break}return i}getPartialFragment(e){let t=null,n,r,i,s=0;const{bufferPadding:l,fragments:c}=this;return Object.keys(c).forEach(u=>{const f=c[u];f&&Tt(f)&&(r=f.body.start-l,i=f.body.end+l,e>=r&&e<=i&&(n=Math.min(e-r,i-e),s<=n&&(t=f.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||Tt(t))}getState(e){const t=Jt(e),n=this.fragments[t];return n?n.buffered?Tt(n)?it.PARTIAL:it.OK:it.APPENDING:it.NOT_LOADED}isTimeBuffered(e,t,n){let r,i;for(let s=0;s<n.length;s++){if(r=n.start(s)-this.bufferPadding,i=n.end(s)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if(t.frag.sn==="initSegment"||t.frag.bitrateTest)return;const n=t.frag,r=t.part?null:t,i=Jt(n);this.fragments[i]={body:n,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i,type:s}=t;if(n.sn==="initSegment")return;const l=n.type;if(r){let u=this.activePartLists[l];u||(this.activePartLists[l]=u=[]),u.push(r)}this.timeRanges=i;const c=i[s];this.detectEvictedFragments(s,c,l,r)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Jt(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let r=n.length;r--;){const i=t[n[r]];if((i==null?void 0:i.body.type)===e)return!0}return!1}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,n,r,i){r&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const l=this.fragments[s];if(!l)return;const c=l.body;c.type!==n||r&&!c.gap||c.start<t&&c.end>e&&(l.buffered||i)&&this.removeFragment(c)})}removeFragment(e){const t=Jt(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=qt(n,i=>i.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e,t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=(e=this.hls)==null||(t=e.latestLevelDetails)==null?void 0:t.partList;n&&n.forEach(r=>r.clearElementaryStreamInfo())}}function Tt(a){var e,t,n;return a.buffered&&(a.body.gap||((e=a.range.video)==null?void 0:e.partial)||((t=a.range.audio)==null?void 0:t.partial)||((n=a.range.audiovideo)==null?void 0:n.partial))}function Jt(a){return`${a.type}_${a.level}_${a.sn}`}function qt(a,e){return a.filter(t=>{const n=e(t);return n||t.clearElementaryStreamInfo(),n})}var kt={cbc:0,ctr:1};class rt{constructor(e,t,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=n}decrypt(e,t){switch(this.aesMode){case kt.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case kt.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function ct(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?a.slice(0,e-t):a}class pt{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),n=new Uint32Array(4);for(let r=0;r<4;r++)n[r]=t.getUint32(r*4);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],s=n[2],l=n[3],c=this.invSubMix,u=c[0],f=c[1],h=c[2],A=c[3],C=new Uint32Array(256);let D=0,X=0,H=0;for(H=0;H<256;H++)H<128?C[H]=H<<1:C[H]=H<<1^283;for(H=0;H<256;H++){let Ae=X^X<<1^X<<2^X<<3^X<<4;Ae=Ae>>>8^Ae&255^99,e[D]=Ae,t[Ae]=D;const Qe=C[D],Ke=C[Qe],bt=C[Ke];let St=C[Ae]*257^Ae*16843008;r[D]=St<<24|St>>>8,i[D]=St<<16|St>>>16,s[D]=St<<8|St>>>24,l[D]=St,St=bt*16843009^Ke*65537^Qe*257^D*16843008,u[Ae]=St<<24|St>>>8,f[Ae]=St<<16|St>>>16,h[Ae]=St<<8|St>>>24,A[Ae]=St,D?(D=Qe^C[C[C[bt^Qe]]],X^=C[C[X]]):D=X=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,r=0;for(;r<t.length&&n;)n=t[r]===this.key[r],r++;if(n)return;this.key=t;const i=this.keySize=t.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);const s=this.ksRows=(i+6+1)*4;let l,c;const u=this.keySchedule=new Uint32Array(s),f=this.invKeySchedule=new Uint32Array(s),h=this.sBox,A=this.rcon,C=this.invSubMix,D=C[0],X=C[1],H=C[2],Ae=C[3];let Qe,Ke;for(l=0;l<s;l++){if(l<i){Qe=u[l]=t[l];continue}Ke=Qe,l%i===0?(Ke=Ke<<8|Ke>>>24,Ke=h[Ke>>>24]<<24|h[Ke>>>16&255]<<16|h[Ke>>>8&255]<<8|h[Ke&255],Ke^=A[l/i|0]<<24):i>6&&l%i===4&&(Ke=h[Ke>>>24]<<24|h[Ke>>>16&255]<<16|h[Ke>>>8&255]<<8|h[Ke&255]),u[l]=Qe=(u[l-i]^Ke)>>>0}for(c=0;c<s;c++)l=s-c,c&3?Ke=u[l]:Ke=u[l-4],c<4||l<=4?f[c]=Ke:f[c]=D[h[Ke>>>24]]^X[h[Ke>>>16&255]]^H[h[Ke>>>8&255]]^Ae[h[Ke&255]],f[c]=f[c]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,n){const r=this.keySize+6,i=this.invKeySchedule,s=this.invSBox,l=this.invSubMix,c=l[0],u=l[1],f=l[2],h=l[3],A=this.uint8ArrayToUint32Array_(n);let C=A[0],D=A[1],X=A[2],H=A[3];const Ae=new Int32Array(e),Qe=new Int32Array(Ae.length);let Ke,bt,St,nn,wt,Qt,un,Nt,In,Hn,kr,vr,fr,sr;const hr=this.networkToHostOrderSwap;for(;t<Ae.length;){for(In=hr(Ae[t]),Hn=hr(Ae[t+1]),kr=hr(Ae[t+2]),vr=hr(Ae[t+3]),wt=In^i[0],Qt=vr^i[1],un=kr^i[2],Nt=Hn^i[3],fr=4,sr=1;sr<r;sr++)Ke=c[wt>>>24]^u[Qt>>16&255]^f[un>>8&255]^h[Nt&255]^i[fr],bt=c[Qt>>>24]^u[un>>16&255]^f[Nt>>8&255]^h[wt&255]^i[fr+1],St=c[un>>>24]^u[Nt>>16&255]^f[wt>>8&255]^h[Qt&255]^i[fr+2],nn=c[Nt>>>24]^u[wt>>16&255]^f[Qt>>8&255]^h[un&255]^i[fr+3],wt=Ke,Qt=bt,un=St,Nt=nn,fr=fr+4;Ke=s[wt>>>24]<<24^s[Qt>>16&255]<<16^s[un>>8&255]<<8^s[Nt&255]^i[fr],bt=s[Qt>>>24]<<24^s[un>>16&255]<<16^s[Nt>>8&255]<<8^s[wt&255]^i[fr+1],St=s[un>>>24]<<24^s[Nt>>16&255]<<16^s[wt>>8&255]<<8^s[Qt&255]^i[fr+2],nn=s[Nt>>>24]<<24^s[wt>>16&255]<<16^s[Qt>>8&255]<<8^s[un&255]^i[fr+3],Qe[t]=hr(Ke^C),Qe[t+1]=hr(nn^D),Qe[t+2]=hr(St^X),Qe[t+3]=hr(bt^H),C=In,D=Hn,X=kr,H=vr,t=t+4}return Qe.buffer}}class xt{constructor(e,t,n){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=n}expandKey(){const e=Ot(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function Ot(a){switch(a){case kt.cbc:return"AES-CBC";case kt.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${a}`)}}const dn=16;class Rn{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const n=self.crypto;n&&(this.subtle=n.subtle||n.webkitSubtle)}catch(n){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const n=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?ct(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n,r){return this.useSoftware?new Promise((i,s)=>{const l=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(l,t,n,r);const c=this.flush();c?i(c.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n,r)}softwareDecrypt(e,t,n,r){const{currentIV:i,currentResult:s,remainderData:l}=this;if(r!==kt.cbc||t.byteLength!==16)return W.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(e=at(l,e),this.remainderData=null);const c=this.getValidChunk(e);if(!c.length)return null;i&&(n=i);let u=this.softwareDecrypter;u||(u=this.softwareDecrypter=new pt),u.expandKey(t);const f=s;return this.currentResult=u.decrypt(c.buffer,0,n),this.currentIV=c.slice(-16).buffer,f||null}webCryptoDecrypt(e,t,n,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,r));this.key=t,this.fastAesKey=new xt(this.subtle,t,r)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new rt(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(W.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,n,r)))}onWebCryptoError(e,t,n,r){const i=this.enableSoftwareAES;if(i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,r);const s=this.flush();if(s)return s.buffer}throw new Error("WebCrypto"+(i?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%dn;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(W.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const En=Math.pow(2,17);class Kn{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const n=e.url;if(!n)return Promise.reject(new An({type:me.NETWORK_ERROR,details:O.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${n?"part list":"url"}`),networkDetails:null}));this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((l,c)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(D=>D[0]==="GAP")){c(Wn(e));return}else e.gap=!1;const u=this.loader=i?new i(r):new s(r),f=Vn(e);e.loader=u;const h=Lt(r.fragLoadPolicy.default),A={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:En};e.stats=u.stats;const C={onSuccess:(D,X,H,Ae)=>{this.resetLoader(e,u);let Qe=D.data;H.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(Qe.slice(0,16)),Qe=Qe.slice(16)),l({frag:e,part:null,payload:Qe,networkDetails:Ae})},onError:(D,X,H,Ae)=>{this.resetLoader(e,u),c(new An({type:me.NETWORK_ERROR,details:O.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:x({url:n,data:void 0},D),error:new Error(`HTTP Error ${D.code} ${D.text}`),networkDetails:H,stats:Ae}))},onAbort:(D,X,H)=>{this.resetLoader(e,u),c(new An({type:me.NETWORK_ERROR,details:O.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:H,stats:D}))},onTimeout:(D,X,H)=>{this.resetLoader(e,u),c(new An({type:me.NETWORK_ERROR,details:O.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${A.timeout}ms`),networkDetails:H,stats:D}))}};t&&(C.onProgress=(D,X,H,Ae)=>t({frag:e,part:null,payload:H,networkDetails:Ae})),u.load(f,A,C)})}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((l,c)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){c(Wn(e,t));return}const u=this.loader=i?new i(r):new s(r),f=Vn(e,t);e.loader=u;const h=Lt(r.fragLoadPolicy.default),A={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:En};t.stats=u.stats,u.load(f,A,{onSuccess:(C,D,X,H)=>{this.resetLoader(e,u),this.updateStatsFromPart(e,t);const Ae={frag:e,part:t,payload:C.data,networkDetails:H};n(Ae),l(Ae)},onError:(C,D,X,H)=>{this.resetLoader(e,u),c(new An({type:me.NETWORK_ERROR,details:O.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:x({url:f.url,data:void 0},C),error:new Error(`HTTP Error ${C.code} ${C.text}`),networkDetails:X,stats:H}))},onAbort:(C,D,X)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,u),c(new An({type:me.NETWORK_ERROR,details:O.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:X,stats:C}))},onTimeout:(C,D,X)=>{this.resetLoader(e,u),c(new An({type:me.NETWORK_ERROR,details:O.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${A.timeout}ms`),networkDetails:X,stats:C}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const c=Math.round(e.duration/t.duration),u=Math.min(Math.round(n.loaded/i),c),h=(c-u)*Math.round(n.loaded/u);n.total=n.loaded+h}else n.total=Math.max(n.loaded,n.total);const s=n.loading,l=r.loading;s.start?s.first+=l.first-l.start:(s.start=l.start,s.first=l.first),s.end=l.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function Vn(a,e=null){const t=e||a,n={frag:a,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},r=t.byteRangeStartOffset,i=t.byteRangeEndOffset;if(p(r)&&p(i)){var s;let l=r,c=i;if(a.sn==="initSegment"&&$n((s=a.decryptdata)==null?void 0:s.method)){const u=i-r;u%16&&(c=i+(16-u%16)),r!==0&&(n.resetIV=!0,l=r-16)}n.rangeStart=l,n.rangeEnd=c}return n}function Wn(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),n={type:me.MEDIA_ERROR,details:O.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(n.part=e),(e||a).stats.aborted=!0,new An(n)}function $n(a){return a==="AES-128"||a==="AES-256"}class An extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class cr extends V{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class ar{constructor(e,t,n,r=0,i=-1,s=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=tr(),this.buffering={audio:tr(),video:tr(),audiovideo:tr()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=s}}function tr(){return{start:0,executeStart:0,executeEnd:0,end:0}}const Xn={length:0,start:()=>0,end:()=>0};class Tn{static isBuffered(e,t){if(e){const n=Tn.getBuffered(e);for(let r=n.length;r--;)if(t>=n.start(r)&&t<=n.end(r))return!0}return!1}static bufferedRanges(e){if(e){const t=Tn.getBuffered(e);return Tn.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}static bufferInfo(e,t,n){if(e){const r=Tn.bufferedRanges(e);if(r.length)return Tn.bufferedInfo(r,t,n)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.length>1&&e.sort((f,h)=>f.start-h.start||h.end-f.end);let r=-1,i=[];if(n)for(let f=0;f<e.length;f++){t>=e[f].start&&t<=e[f].end&&(r=f);const h=i.length;if(h){const A=i[h-1].end;e[f].start-A<n?e[f].end>A&&(i[h-1].end=e[f].end):i.push(e[f])}else i.push(e[f])}else i=e;let s=0,l,c=t,u=t;for(let f=0;f<i.length;f++){const h=i[f].start,A=i[f].end;if(r===-1&&t>=h&&t<=A&&(r=f),t+n>=h&&t<A)c=h,u=A,s=u-t;else if(t+n<h){l=h;break}}return{len:s,start:c||0,end:u||0,nextStart:l,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||Xn}catch(t){return W.log("failed to get media.buffered",t),Xn}}}const dr=/\{\$([a-zA-Z0-9-_]+)\}/g;function nr(a){return dr.test(a)}function lr(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(dr,n=>{const r=n.substring(2,n.length-1),i=t==null?void 0:t[r];return i===void 0?(a.playlistParsingError||(a.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):i})}return e}function Cn(a,e,t){let n=a.variableList;n||(a.variableList=n={});let r,i;if("QUERYPARAM"in e){r=e.QUERYPARAM;try{const s=new self.URL(t).searchParams;if(s.has(r))i=s.get(r);else throw new Error(`"${r}" does not match any query parameter in URI: "${t}"`)}catch(s){a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else r=e.NAME,i=e.VALUE;r in n?a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=i||""}function sn(a,e,t){const n=e.IMPORT;if(t&&n in t){let r=a.variableList;r||(a.variableList=r={}),r[n]=t[n]}else a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}const wn=/^(\d+)x(\d+)$/,Fn=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Pn{constructor(e,t){typeof e=="string"&&(e=Pn.parseAttrList(e,t)),m(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const n=new Uint8Array(t.length/2);for(let r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(r*2,r*2+2),16);return n}return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const n=this[e];return(n?n.split(/[ ,]+/):[]).reduce((r,i)=>(r[i.toLowerCase()]=!0,r),t)}bool(e){return this[e]==="YES"}decimalResolution(e){const t=wn.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;const r={},i='"';for(Fn.lastIndex=0;(n=Fn.exec(e))!==null;){const s=n[1].trim();let l=n[2];const c=l.indexOf(i)===0&&l.lastIndexOf(i)===l.length-1;let u=!1;if(c)l=l.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":u=!0}if(t&&(c||u))l=lr(t,l);else if(!u&&!c)switch(s){case"CLOSED-CAPTIONS":if(l==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":W.warn(`${e}: attribute ${s} is missing quotes`)}r[s]=l}return r}}const Jn="com.apple.hls.interstitial";function rr(a){return a!=="ID"&&a!=="CLASS"&&a!=="CUE"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function _r(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"||a==="SCTE35-CMD"}class Br{constructor(e,t,n=0){var r;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(t==null?void 0:t.tagAnchor)||null,this.tagOrder=(r=t==null?void 0:t.tagOrder)!=null?r:n,t){const i=t.attr;for(const s in i)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]!==i[s]){W.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=s;break}e=m(new Pn({}),i,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const i=(t==null?void 0:t.endDate)||new Date(this.attr["END-DATE"]);p(i.getTime())&&(this._endDate=i)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return e===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return e===null||e.programDateTime===null?(W.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return t!==null?this._dateAtEnd=new Date(this._startDate.getTime()+t*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(p(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===Jn}get isValid(){return!!this.id&&!this._badValueForSameId&&p(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const Nr=10;class Jr{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&n>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1}get hasProgramDateTime(){return this.fragments.length?p(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Nr}get drift(){const e=this.driftEndTime-this.driftStartTime;return e>0?(this.driftEnd-this.driftStart)*1e3/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(t!==-1){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function Kr(a){return a==="AES-128"||a==="AES-256"||a==="AES-256-CTR"}function Ur(a){switch(a){case"AES-128":case"AES-256":return kt.cbc;case"AES-256-CTR":return kt.ctr;default:throw new Error(`invalid full segment method ${a}`)}}function pr(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function wr(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}function Pr(a){const e=wr(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function Dr(a){const e=function(n,r,i){const s=n[r];n[r]=n[i],n[i]=s};e(a,0,3),e(a,1,2),e(a,4,5),e(a,6,7)}function gr(a){const e=a.split(":");let t=null;if(e[0]==="data"&&e.length===2){const n=e[1].split(";"),r=n[n.length-1].split(",");if(r.length===2){const i=r[0]==="base64",s=r[1];i?(n.splice(-1,1),t=pr(s)):t=Pr(s)}}return t}const mr=typeof self!="undefined"?self:void 0;var bn={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Yn={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function ir(a){switch(a){case Yn.FAIRPLAY:return bn.FAIRPLAY;case Yn.PLAYREADY:return bn.PLAYREADY;case Yn.WIDEVINE:return bn.WIDEVINE;case Yn.CLEARKEY:return bn.CLEARKEY}}var or={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function yr(a){if(a===or.WIDEVINE)return bn.WIDEVINE;if(a===or.PLAYREADY)return bn.PLAYREADY;if(a===or.CENC||a===or.CLEARKEY)return bn.CLEARKEY}function Cr(a){switch(a){case bn.FAIRPLAY:return Yn.FAIRPLAY;case bn.PLAYREADY:return Yn.PLAYREADY;case bn.WIDEVINE:return Yn.WIDEVINE;case bn.CLEARKEY:return Yn.CLEARKEY}}function jn(a){const{drmSystems:e,widevineLicenseUrl:t}=a,n=e?[bn.FAIRPLAY,bn.WIDEVINE,bn.PLAYREADY,bn.CLEARKEY].filter(r=>!!e[r]):[];return!n[bn.WIDEVINE]&&t&&n.push(bn.WIDEVINE),n}const qn=function(a){return mr!=null&&(a=mr.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Er(a,e,t,n){let r;switch(a){case bn.FAIRPLAY:r=["cenc","sinf"];break;case bn.WIDEVINE:case bn.PLAYREADY:r=["cenc"];break;case bn.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return er(r,e,t,n)}function er(a,e,t,n){return[{initDataTypes:a,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map(i=>({contentType:`audio/mp4; codecs=${i}`,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null})),videoCapabilities:t.map(i=>({contentType:`video/mp4; codecs=${i}`,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}))}]}function Sr(a){var e;return a.sessionType==="persistent-license"||!!((e=a.sessionTypes)!=null&&e.some(t=>t==="persistent-license"))}function $r(a){const e=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),n=t.substring(t.indexOf("<"),t.length),s=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("KID")[0];if(s){const l=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(l){const c=pr(l).subarray(0,16);return Dr(c),c}}return null}let Or={};class ei{static clearKeyUriToKeyIdMap(){Or={}}constructor(e,t,n,r=[1],i=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!Kr(e)}isSupported(){if(this.method){if(Kr(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Yn.FAIRPLAY:case Yn.WIDEVINE:case Yn.PLAYREADY:case Yn.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(Kr(this.method)&&this.uri&&!this.iv){typeof e!="number"&&(W.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const n=ri(e);return new ei(this.method,this.uri,"identity",this.keyFormatVersions,n)}const t=gr(this.uri);if(t)switch(this.keyFormat){case Yn.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Yn.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=st(n,null,t),this.keyId=$r(t);break}default:{let n=t.subarray(0,16);if(n.length!==16){const r=new Uint8Array(16);r.set(n,16-n.length),n=r}this.keyId=n;break}}if(!this.keyId||this.keyId.byteLength!==16){let n=Or[this.uri];if(!n){const r=Object.keys(Or).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),Or[this.uri]=n}this.keyId=n}return this}}function ri(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const li=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,jr=/#EXT-X-MEDIA:(.*)/g,ts=/^#EXT(?:INF|-X-TARGETDURATION):/m,Mi=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),wi=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class ui{static findGroup(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.id===t)return r}}static resolve(e,t){return J.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return ts.test(e)}static parseMasterPlaylist(e,t){const n=nr(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];li.lastIndex=0;let s;for(;(s=li.exec(e))!=null;)if(s[1]){var l;const u=new Pn(s[1],r),f=lr(r,s[2]),h={attrs:u,bitrate:u.decimalInteger("BANDWIDTH")||u.decimalInteger("AVERAGE-BANDWIDTH"),name:u.NAME,url:ui.resolve(f,t)},A=u.decimalResolution("RESOLUTION");A&&(h.width=A.width,h.height=A.height),Bi(u.CODECS,h);const C=u["SUPPLEMENTAL-CODECS"];C&&(h.supplemental={},Bi(C,h.supplemental)),(l=h.unknownCodecs)!=null&&l.length||i.push(h),r.levels.push(h)}else if(s[3]){const u=s[3],f=s[4];switch(u){case"SESSION-DATA":{const h=new Pn(f,r),A=h["DATA-ID"];A&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[A]=h);break}case"SESSION-KEY":{const h=Fi(f,t,r);h.encrypted&&h.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(h)):W.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${f}"`);break}case"DEFINE":{{const h=new Pn(f,r);Cn(r,h,t)}break}case"CONTENT-STEERING":{const h=new Pn(f,r);r.contentSteering={uri:ui.resolve(h["SERVER-URI"],t),pathwayId:h["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=pi(f);break}}}const c=i.length>0&&i.length<r.levels.length;return r.levels=c?i:r.levels,r.levels.length===0&&(r.playlistParsingError=new Error("no levels found in manifest")),r}static parseMasterPlaylistMedia(e,t,n){let r;const i={},s=n.levels,l={AUDIO:s.map(u=>({id:u.attrs.AUDIO,audioCodec:u.audioCodec})),SUBTITLES:s.map(u=>({id:u.attrs.SUBTITLES,textCodec:u.textCodec})),"CLOSED-CAPTIONS":[]};let c=0;for(jr.lastIndex=0;(r=jr.exec(e))!==null;){const u=new Pn(r[1],n),f=u.TYPE;if(f){const h=l[f],A=i[f]||[];i[f]=A;const C=u.LANGUAGE,D=u["ASSOC-LANGUAGE"],X=u.CHANNELS,H=u.CHARACTERISTICS,Ae=u["INSTREAM-ID"],Qe={attrs:u,bitrate:0,id:c++,groupId:u["GROUP-ID"]||"",name:u.NAME||C||"",type:f,default:u.bool("DEFAULT"),autoselect:u.bool("AUTOSELECT"),forced:u.bool("FORCED"),lang:C,url:u.URI?ui.resolve(u.URI,t):""};if(D&&(Qe.assocLang=D),X&&(Qe.channels=X),H&&(Qe.characteristics=H),Ae&&(Qe.instreamId=Ae),h!=null&&h.length){const Ke=ui.findGroup(h,Qe.groupId)||h[0];Ai(Qe,Ke,"audioCodec"),Ai(Qe,Ke,"textCodec")}A.push(Qe)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){var l;const c={url:t},u=new Jr(t),f=u.fragments,h=[];let A=null,C=0,D=0,X=0,H=0,Ae=0,Qe=null,Ke=new Xe(r,c),bt,St,nn,wt=-1,Qt=!1,un=null,Nt;if(Mi.lastIndex=0,u.m3u8=e,u.hasVariableRefs=nr(e),((l=Mi.exec(e))==null?void 0:l[0])!=="#EXTM3U")return u.playlistParsingError=new Error("Missing format identifier #EXTM3U"),u;for(;(bt=Mi.exec(e))!==null;){Qt&&(Qt=!1,Ke=new Xe(r,c),Ke.playlistOffset=X,Ke.start=X,Ke.sn=C,Ke.cc=H,Ae&&(Ke.bitrate=Ae),Ke.level=n,A&&(Ke.initSegment=A,A.rawProgramDateTime&&(Ke.rawProgramDateTime=A.rawProgramDateTime,A.rawProgramDateTime=null),un&&(Ke.setByteRange(un),un=null)));const vr=bt[1];if(vr){Ke.duration=parseFloat(vr);const fr=(" "+bt[2]).slice(1);Ke.title=fr||null,Ke.tagList.push(fr?["INF",vr,fr]:["INF",vr])}else if(bt[3]){if(p(Ke.duration)){Ke.playlistOffset=X,Ke.start=X,nn&&Ui(Ke,nn,u),Ke.sn=C,Ke.level=n,Ke.cc=H,f.push(Ke);const fr=(" "+bt[3]).slice(1);Ke.relurl=lr(u,fr),Ti(Ke,Qe,h),Qe=Ke,X+=Ke.duration,C++,D=0,Qt=!0}}else{if(bt=bt[0].match(wi),!bt){W.warn("No matches on slow regex match for level playlist!");continue}for(St=1;St<bt.length&&bt[St]===void 0;St++);const fr=(" "+bt[St]).slice(1),sr=(" "+bt[St+1]).slice(1),hr=bt[St+2]?(" "+bt[St+2]).slice(1):null;switch(fr){case"BYTERANGE":Qe?Ke.setByteRange(sr,Qe):Ke.setByteRange(sr);break;case"PROGRAM-DATE-TIME":Ke.rawProgramDateTime=sr,Ke.tagList.push(["PROGRAM-DATE-TIME",sr]),wt===-1&&(wt=f.length);break;case"PLAYLIST-TYPE":u.type&&mi(u,fr,bt),u.type=sr.toUpperCase();break;case"MEDIA-SEQUENCE":u.startSN!==0?mi(u,fr,bt):f.length>0&&Wi(u,fr,bt),C=u.startSN=parseInt(sr);break;case"SKIP":{u.skippedSegments&&mi(u,fr,bt);const ur=new Pn(sr,u),kn=ur.decimalInteger("SKIPPED-SEGMENTS");if(p(kn)){u.skippedSegments+=kn;for(let Tr=kn;Tr--;)f.push(null);C+=kn}const Bn=ur.enumeratedString("RECENTLY-REMOVED-DATERANGES");Bn&&(u.recentlyRemovedDateranges=(u.recentlyRemovedDateranges||[]).concat(Bn.split(" ")));break}case"TARGETDURATION":u.targetduration!==0&&mi(u,fr,bt),u.targetduration=Math.max(parseInt(sr),1);break;case"VERSION":u.version!==null&&mi(u,fr,bt),u.version=parseInt(sr);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":u.live||mi(u,fr,bt),u.live=!1;break;case"#":(sr||hr)&&Ke.tagList.push(hr?[sr,hr]:[sr]);break;case"DISCONTINUITY":H++,Ke.tagList.push(["DIS"]);break;case"GAP":Ke.gap=!0,Ke.tagList.push([fr]);break;case"BITRATE":Ke.tagList.push([fr,sr]),Ae=parseInt(sr)*1e3,p(Ae)?Ke.bitrate=Ae:Ae=0;break;case"DATERANGE":{const ur=new Pn(sr,u),kn=new Br(ur,u.dateRanges[ur.ID],u.dateRangeTagCount);u.dateRangeTagCount++,kn.isValid||u.skippedSegments?u.dateRanges[kn.id]=kn:W.warn(`Ignoring invalid DATERANGE tag: "${sr}"`),Ke.tagList.push(["EXT-X-DATERANGE",sr]);break}case"DEFINE":{{const ur=new Pn(sr,u);"IMPORT"in ur?sn(u,ur,s):Cn(u,ur,t)}break}case"DISCONTINUITY-SEQUENCE":u.startCC!==0?mi(u,fr,bt):f.length>0&&Wi(u,fr,bt),u.startCC=H=parseInt(sr);break;case"KEY":{const ur=Fi(sr,t,u);if(ur.isSupported()){if(ur.method==="NONE"){nn=void 0;break}nn||(nn={}),nn[ur.keyFormat]&&(nn=m({},nn)),nn[ur.keyFormat]=ur}else W.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${sr}"`);break}case"START":u.startTimeOffset=pi(sr);break;case"MAP":{const ur=new Pn(sr,u);if(Ke.duration){const kn=new Xe(r,c);rs(kn,ur,n,nn),A=kn,Ke.initSegment=A,A.rawProgramDateTime&&!Ke.rawProgramDateTime&&(Ke.rawProgramDateTime=A.rawProgramDateTime)}else{const kn=Ke.byteRangeEndOffset;if(kn){const Bn=Ke.byteRangeStartOffset;un=`${kn-Bn}@${Bn}`}else un=null;rs(Ke,ur,n,nn),A=Ke,Qt=!0}A.cc=H;break}case"SERVER-CONTROL":{Nt&&mi(u,fr,bt),Nt=new Pn(sr),u.canBlockReload=Nt.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=Nt.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&Nt.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=Nt.optionalFloat("PART-HOLD-BACK",0),u.holdBack=Nt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{u.partTarget&&mi(u,fr,bt);const ur=new Pn(sr);u.partTarget=ur.decimalFloatingPoint("PART-TARGET");break}case"PART":{let ur=u.partList;ur||(ur=u.partList=[]);const kn=D>0?ur[ur.length-1]:void 0,Bn=D++,Tr=new Pn(sr,u),xr=new We(Tr,Ke,c,Bn,kn);ur.push(xr),Ke.duration+=xr.duration;break}case"PRELOAD-HINT":{const ur=new Pn(sr,u);u.preloadHint=ur;break}case"RENDITION-REPORT":{const ur=new Pn(sr,u);u.renditionReports=u.renditionReports||[],u.renditionReports.push(ur);break}default:W.warn(`line parsed but not handled: ${bt}`);break}}}Qe&&!Qe.relurl?(f.pop(),X-=Qe.duration,u.partList&&(u.fragmentHint=Qe)):u.partList&&(Ti(Ke,Qe,h),Ke.cc=H,u.fragmentHint=Ke,nn&&Ui(Ke,nn,u)),u.targetduration||(u.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const In=f.length,Hn=f[0],kr=f[In-1];if(X+=u.skippedSegments*u.targetduration,X>0&&In&&kr){u.averagetargetduration=X/In;const vr=kr.sn;u.endSN=vr!=="initSegment"?vr:0,u.live||(kr.endList=!0),Hn&&u.startCC===void 0&&(u.startCC=Hn.cc),wt>0&&(ns(f,wt),Hn&&h.unshift(Hn))}else u.endSN=0,u.startCC=0;return u.fragmentHint&&(X+=u.fragmentHint.duration),u.totalduration=X,h.length&&u.dateRangeTagCount&&Hn&&Ii(h,u),u.endCC=H,u}}function Ii(a,e){const t=a.length,n=a[t-1],r=e.live?1/0:e.totalduration,i=Object.keys(e.dateRanges);for(let s=i.length;s--;){const l=e.dateRanges[i[s]],c=l.startDate.getTime();l.tagAnchor=n.ref;for(let u=t;u--;){const f=Oi(e,c,a,u,r);if(f!==-1){l.tagAnchor=e.fragments[f].ref;break}}}}function Oi(a,e,t,n,r){const i=t[n];if(i){const l=i.programDateTime;if(e>=l||n===0){var s;const c=(((s=t[n+1])==null?void 0:s.start)||r)-i.start;if(e<=l+c*1e3){const u=t[n].sn-a.startSN,f=a.fragments;if(f.length>t.length){const A=(t[n+1]||f[f.length-1]).sn-a.startSN;for(let C=A;C>u;C--){const D=f[C].programDateTime;if(e>=D&&e<D+f[C].duration*1e3)return C}}return u}}}return-1}function Fi(a,e,t){var n,r;const i=new Pn(a,t),s=(n=i.METHOD)!=null?n:"",l=i.URI,c=i.hexadecimalInteger("IV"),u=i.KEYFORMATVERSIONS,f=(r=i.KEYFORMAT)!=null?r:"identity";l&&i.IV&&!c&&W.error(`Invalid IV: ${i.IV}`);const h=l?ui.resolve(l,e):"",A=(u||"1").split("/").map(Number).filter(Number.isFinite);return new ei(s,h,f,A,c)}function pi(a){const t=new Pn(a).decimalFloatingPoint("TIME-OFFSET");return p(t)?t:null}function Bi(a,e){let t=(a||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>Fe(i,n));r.length&&(e[`${n}Codec`]=r.map(i=>i.split("/")[0]).join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function Ai(a,e,t){const n=e[t];n&&(a[t]=n)}function ns(a,e){let t=a[e];for(let n=e;n--;){const r=a[n];if(!r)return;r.programDateTime=t.programDateTime-r.duration*1e3,t=r}}function Ti(a,e,t){a.rawProgramDateTime?t.push(a):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime)}function rs(a,e,t,n){a.relurl=e.URI,e.BYTERANGE&&a.setByteRange(e.BYTERANGE),a.level=t,a.sn="initSegment",n&&(a.levelkeys=n),a.initSegment=null}function Ui(a,e,t){a.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(a)}function mi(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function Wi(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function Zi(a,e){const t=e.startPTS;if(p(t)){let n=0,r;e.sn>a.sn?(n=t-a.start,r=a):(n=a.start-t,r=e),r.duration!==n&&r.setDuration(n)}else e.sn>a.sn?a.cc===e.cc&&a.minEndPTS?e.setStart(a.start+(a.minEndPTS-a.start)):e.setStart(a.start+a.duration):e.setStart(Math.max(a.start-e.duration,0))}function ki(a,e,t,n,r,i){n-t<=0&&(W.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let l=t,c=n;const u=e.startPTS,f=e.endPTS;if(p(u)){const H=Math.abs(u-t);p(e.deltaPTS)?e.deltaPTS=Math.max(H,e.deltaPTS):e.deltaPTS=H,l=Math.max(t,u),t=Math.min(t,u),r=Math.min(r,e.startDTS),c=Math.min(n,f),n=Math.max(n,f),i=Math.max(i,e.endDTS)}const h=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(n-e.start),e.startPTS=t,e.maxStartPTS=l,e.startDTS=r,e.endPTS=n,e.minEndPTS=c,e.endDTS=i;const A=e.sn;if(!a||A<a.startSN||A>a.endSN)return 0;let C;const D=A-a.startSN,X=a.fragments;for(X[D]=e,C=D;C>0;C--)Zi(X[C],X[C-1]);for(C=D;C<X.length-1;C++)Zi(X[C],X[C+1]);return a.fragmentHint&&Zi(X[X.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,h}function si(a,e){if(a===e)return;let t=null;const n=a.fragments;for(let c=n.length-1;c>=0;c--){const u=n[c].initSegment;if(u){t=u;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let r;br(a,e,(c,u,f,h)=>{if(!e.startCC&&u.cc!==c.cc){var A,C;const D=c.cc-u.cc;for(let X=f;X<h.length;X++)h[X].cc+=D;e.startCC=(A=(C=fi(a,e.startSN-1))==null?void 0:C.cc)!=null?A:h[0].cc,e.endCC=h[h.length-1].cc}p(c.startPTS)&&p(c.endPTS)&&(u.setStart(u.startPTS=c.startPTS),u.startDTS=c.startDTS,u.maxStartPTS=c.maxStartPTS,u.endPTS=c.endPTS,u.endDTS=c.endDTS,u.minEndPTS=c.minEndPTS,u.setDuration(c.endPTS-c.startPTS),u.duration&&(r=u),e.PTSKnown=e.alignedSliding=!0),c.hasStreams&&(u.elementaryStreams=c.elementaryStreams),u.loader=c.loader,c.hasStats&&(u.stats=c.stats),c.initSegment&&(u.initSegment=c.initSegment,t=c.initSegment)});const i=e.fragments,s=e.fragmentHint?i.concat(e.fragmentHint):i;if(t&&s.forEach(c=>{var u;c&&(!c.initSegment||c.initSegment.relurl===((u=t)==null?void 0:u.relurl))&&(c.initSegment=t)}),e.skippedSegments)if(e.deltaUpdateFailed=i.some(c=>!c),e.deltaUpdateFailed){W.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let c=e.skippedSegments;c--;)i.shift();e.startSN=i[0].sn}else{e.endCC=i[i.length-1].cc,e.canSkipDateRanges&&(e.dateRanges=ti(a.dateRanges,e));const c=a.fragments.filter(u=>u.rawProgramDateTime);if(a.hasProgramDateTime&&!e.hasProgramDateTime)for(let u=1;u<s.length;u++)s[u].programDateTime===null&&Ti(s[u],s[u-1],c);Ii(c,e)}Ar(a.partList,e.partList,(c,u)=>{u.elementaryStreams=c.elementaryStreams,u.stats=c.stats}),r?ki(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):Gr(a,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const l=e.advancedDateTime;if(e.advanced&&l){const c=e.edge;e.driftStart||(e.driftStartTime=l,e.driftStart=c),e.driftEndTime=l,e.driftEnd=c}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=a.requestScheduled)}function ti(a,e){const{dateRanges:t,recentlyRemovedDateranges:n}=e,r=m({},a);n&&n.forEach(l=>{delete r[l]});const s=Object.keys(r).length;return s&&Object.keys(t).forEach(l=>{const c=r[l],u=new Br(t[l].attr,c);u.isValid?(r[l]=u,c||(u.tagOrder+=s)):W.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${Ct(t[l].attr)}"`)}),r}function Ar(a,e,t){if(a&&e){let n=0;for(let r=0,i=a.length;r<=i;r++){const s=a[r],l=e[r+n];s&&l&&s.index===l.index&&s.fragment.sn===l.fragment.sn?t(s,l):n--}}}function br(a,e,t){const n=e.skippedSegments,r=Math.max(a.startSN,e.startSN)-e.startSN,i=(a.fragmentHint?1:0)+(n?e.endSN:Math.min(a.endSN,e.endSN))-e.startSN,s=e.startSN-a.startSN,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,c=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;for(let u=r;u<=i;u++){const f=c[s+u];let h=l[u];if(n&&!h&&f&&(h=e.fragments[u]=f),f&&h){if(t(f,h,u,l),f.url&&f.url!==h.url){e.playlistParsingError=Xr(`media sequence mismatch ${h.sn}:`,a,e,f,h);return}else if(f.cc!==h.cc){e.playlistParsingError=Xr(`discontinuity sequence mismatch (${f.cc}!=${h.cc})`,a,e,f,h);return}}}}function Xr(a,e,t,n,r){return new Error(`${a} ${r.url}
|
|
Playlist starting @${e.startSN}
|
|
${e.m3u8}
|
|
|
|
Playlist starting @${t.startSN}
|
|
${t.m3u8}`)}function Gr(a,e,t=!0){const n=e.startSN+e.skippedSegments-a.startSN,r=a.fragments,i=n>=0;let s=0;if(i&&n<r.length)s=r[n].start;else if(i&&e.startSN===a.endSN+1)s=a.fragmentEnd;else if(i&&t)s=a.fragmentStart+n*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)s=a.fragmentStart;else return;Wr(e,s)}function Wr(a,e){if(e){const t=a.fragments;for(let n=a.skippedSegments;n<t.length;n++)t[n].addStart(e);a.fragmentHint&&a.fragmentHint.addStart(e)}}function Qr(a,e=1/0){let t=1e3*a.targetduration;if(a.updated){const n=a.fragments;if(n.length&&t*4>e){const i=n[n.length-1].duration*1e3;i<t&&(t=i)}}else t/=2;return Math.round(t)}function fi(a,e,t){if(!a)return null;let n=a.fragments[e-a.startSN];return n||(n=a.fragmentHint,n&&n.sn===e)?n:e<a.startSN&&t&&t.sn===e?t:null}function di(a,e,t){return a?vi(a.partList,e,t):null}function vi(a,e,t){if(a)for(let n=a.length;n--;){const r=a[n];if(r.index===t&&r.fragment.sn===e)return r}return null}function qr(a){a.forEach((e,t)=>{var n;(n=e.details)==null||n.fragments.forEach(r=>{r.level=t,r.initSegment&&(r.initSegment.level=t)})})}function ii(a,e){for(let n=0,r=a.length;n<r;n++){var t;if(((t=a[n])==null?void 0:t.cc)===e)return a[n]}return null}function Ci(a,e){return!!(a&&e.startCC<a.endCC&&e.endCC>a.startCC)}function yi(a,e){if(a){const t=a.start+e;a.start=a.startPTS=t,a.endPTS=t+a.duration}}function is(a,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)yi(t[n],a);e.fragmentHint&&yi(e.fragmentHint,a),e.alignedSliding=!0}function bs(a,e){a&&(Vr(e,a),!e.alignedSliding&&a&&Mr(e,a),!e.alignedSliding&&a&&!e.skippedSegments&&Gr(a,e,!1))}function Vr(a,e){if(!Ci(e,a))return;const t=Math.min(e.endCC,a.endCC),n=ii(e.fragments,t),r=ii(a.fragments,t);if(!n||!r)return;W.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const i=n.start-r.start;is(i,a)}function Mr(a,e){if(!a.hasProgramDateTime||!e.hasProgramDateTime)return;const t=a.fragments,n=e.fragments;if(!t.length||!n.length)return;let r,i;const s=Math.min(e.endCC,a.endCC);e.startCC<s&&a.startCC<s&&(r=ii(n,s),i=ii(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=ii(t,r.cc)||t[Math.floor(t.length/2)]);const l=r.programDateTime,c=i.programDateTime;if(!l||!c)return;const u=(c-l)/1e3-(i.start-r.start);is(u,a)}const Hr={toString:function(a){let e="";const t=a.length;for(let n=0;n<t;n++)e+=`[${a.start(n).toFixed(3)}-${a.end(n).toFixed(3)}]`;return e}},on={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class ni extends cr{constructor(e,t,n,r,i){super(r,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=on.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{const{config:s,fragCurrent:l,media:c,mediaBuffer:u,state:f}=this,h=c?c.currentTime:0,A=Tn.bufferInfo(u||c,h,s.maxBufferHole);if(this.log(`media seeking to ${p(h)?h.toFixed(3):h}, state: ${f}`),this.state===on.ENDED)this.resetLoadingState();else if(l){const C=s.maxFragLookUpTolerance,D=l.start-C,X=l.start+l.duration+C;if(!A.len||X<A.start||D>A.end){const H=h>X;(h<D||H)&&(H&&l.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),l.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(c){this.fragmentTracker.removeFragmentsInRange(h,1/0,this.playlistType,!0);const C=this.lastCurrentTime;if(h>C&&(this.lastCurrentTime=h),!this.loadingParts){const D=Math.max(A.end,h),X=this.shouldLoadParts(this.getLevelDetails(),D);X&&(this.log(`LL-Part loading ON after seeking to ${h.toFixed(2)} with buffer @${D.toFixed(2)}`),this.loadingParts=X)}}!this.hls.hasEnoughToStart&&!A.len&&(this.log(`setting startPosition to ${h} because of seek before start`),this.nextLoadPosition=this.startPosition=h),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=i,this.hls=e,this.fragmentLoader=new Kn(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Rn(e.config)}registerListeners(){const{hls:e}=this;e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(d.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===on.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=on.STOPPED}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;return t===-1&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const n=e.end||0,r=this.config.timelineOffset||0;if(n<=r)return!1;const i=e.nextStart;if(i&&i>r&&i<t.edge||this.media.currentTime<e.start)return!1;const l=t.partList;if(l!=null&&l.length){const u=l[l.length-1];return Tn.isBuffered(this.media,u.start+u.duration/2)}const c=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(c)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}get timelineOffset(){const e=this.config.timelineOffset;if(e){var t;return((t=this.getLevelDetails())==null?void 0:t.appliedTimelineOffset)||e}return 0}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;n.removeEventListener("seeking",this.onMediaSeeking),n.removeEventListener("ended",this.onMediaEnded),n.addEventListener("seeking",this.onMediaSeeking),n.addEventListener("ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===on.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(r!==null){if(r.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),r.removeEventListener("seeking",this.onMediaSeeking),r.removeEventListener("ended",this.onMediaEnded),this.keyLoader&&!n&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,n){this.resetLoadingState(),this.resetTransmuxer();return}this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=on.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this.startFragRequested=!0,this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){const r=i=>{const s=i.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${i.part?" part: "+i.part.index:""} of ${this.fragInfo(s,!1,i.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,n,r).then(i=>{if(!i)return;const s=this.state,l=i.frag;if(this.fragContextChanged(l)){(s===on.FRAG_LOADING||!this.fragCurrent&&s===on.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=on.IDLE);return}"payload"in i&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(d.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===on.STOPPED||this.state===on.ERROR||(this.warn(`Frag error: ${(i==null?void 0:i.message)||i}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===it.APPENDING){const i=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,i),l=Math.max(e.duration,s?s.len:this.config.maxBufferLength),c=this.backtrackFragment;((c?e.sn-c.sn:0)===1||this.reduceMaxBufferLength(l,e.duration))&&n.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===it.PARTIAL&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){const t=e.details;return(t==null?void 0:t.live)&&t.type!=="EVENT"&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:n};this.hls.trigger(d.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(n=>{const r=n==null?void 0:n.frag;if(!r||this.fragContextChanged(r)||!this.levels)throw new Error("init load aborted");return n}).then(n=>{const{hls:r}=this,{frag:i,payload:s}=n,l=i.decryptdata;if(s&&s.byteLength>0&&l!=null&&l.key&&l.iv&&Kr(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,Ur(l.method)).catch(u=>{throw r.trigger(d.ERROR,{type:me.MEDIA_ERROR,details:O.FRAG_DECRYPT_ERROR,fatal:!1,error:u,reason:u.message,frag:i}),u}).then(u=>{const f=self.performance.now();return r.trigger(d.FRAG_DECRYPTED,{frag:i,payload:u,stats:{tstart:c,tdecrypt:f}}),n.payload=u,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===on.STOPPED||this.state===on.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const n=e.frag.stats;this.state!==on.STOPPED&&(this.state=on.IDLE),e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){const n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${n?Hr.toString(Tn.getBuffered(n)):"(detached)"})`),ce(e)){var r;if(e.type!==le.SUBTITLE){const s=e.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=on.IDLE;return}}const i=(r=this.levels)==null?void 0:r[e.level];i!=null&&i.fragmentError&&(this.log(`Resetting level fragment error count of ${i.fragmentError} on frag buffered`),i.fragmentError=0)}this.state=on.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:i}=e,s=!i||i.length===0||i.some(c=>!c),l=new ar(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!s);t.flush(l)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var i;this.fragCurrent=e;const s=t==null?void 0:t.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let l=null;e.encrypted&&!((i=e.decryptdata)!=null&&i.key)?(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=on.KEY_LOADING,this.fragCurrent=e,l=this.keyLoader.load(e).then(h=>{if(!this.fragContextChanged(h.frag))return this.hls.trigger(d.KEY_LOADED,h),this.state===on.KEY_LOADING&&(this.state=on.IDLE),h}),this.hls.trigger(d.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(l=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(e,s.encryptedFragments);const c=this.fragPrevious;if(ce(e)&&(!c||e.sn!==c.sn)){const h=this.shouldLoadParts(t.details,e.end);h!==this.loadingParts&&(this.log(`LL-Part loading ${h?"ON":"OFF"} loading sn ${c==null?void 0:c.sn}->${e.sn}`),this.loadingParts=h)}if(n=Math.max(e.start,n||0),this.loadingParts&&ce(e)){const h=s.partList;if(h&&r){n>e.end&&s.fragmentHint&&(e=s.fragmentHint);const A=this.getNextPart(h,e,n);if(A>-1){const C=h[A];e=this.fragCurrent=C.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${C.index} (${A}/${h.length-1}) of ${this.fragInfo(e,!1,C)}) cc: ${e.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=C.start+C.duration,this.state=on.FRAG_LOADING;let D;return l?D=l.then(X=>!X||this.fragContextChanged(X.frag)?null:this.doFragPartsLoad(e,C,t,r)).catch(X=>this.handleFragLoadError(X)):D=this.doFragPartsLoad(e,C,t,r).catch(X=>this.handleFragLoadError(X)),this.hls.trigger(d.FRAG_LOADING,{frag:e,part:C,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):D}else if(!e.url||this.loadedEndOfParts(h,n))return Promise.resolve(null)}}if(ce(e)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)}`),this.loadingParts=!1;else if(!e.url)return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)}) cc: ${e.cc} ${s?"["+s.startSN+"-"+s.endSN+"]":""}, target: ${parseFloat(n.toFixed(3))}`),p(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=on.FRAG_LOADING;const u=this.config.progressive;let f;return u&&l?f=l.then(h=>!h||this.fragContextChanged(h==null?void 0:h.frag)?null:this.fragmentLoader.load(e,r)).catch(h=>this.handleFragLoadError(h)):f=Promise.all([this.fragmentLoader.load(e,u?r:void 0),l]).then(([h])=>(!u&&h&&r&&r(h),h)).catch(h=>this.handleFragLoadError(h)),this.hls.trigger(d.FRAG_LOADING,{frag:e,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):f}doFragPartsLoad(e,t,n,r){return new Promise((i,s)=>{var l;const c=[],u=(l=n.details)==null?void 0:l.partList,f=h=>{this.fragmentLoader.loadPart(e,h,r).then(A=>{c[h.index]=A;const C=A.part;this.hls.trigger(d.FRAG_LOADED,A);const D=di(n.details,e.sn,h.index+1)||vi(u,e.sn,h.index+1);if(D)f(D);else return i({frag:e,part:C,partsLoaded:c})}).catch(s)};f(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===O.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(d.ERROR,t)}else this.hls.trigger(d.ERROR,{type:me.OTHER_ERROR,details:O.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==on.PARSING){!this.fragCurrent&&this.state!==on.STOPPED&&this.state!==on.ERROR&&(this.state=on.IDLE);return}const{frag:n,part:r,level:i}=t,s=self.performance.now();n.stats.parsing.end=s,r&&(r.stats.parsing.end=s);const l=this.getLevelDetails(),u=l&&n.sn>l.endSN||this.shouldLoadParts(l,n.end);u!==this.loadingParts&&(this.log(`LL-Part loading ${u?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=u),this.updateLevelTiming(n,r,i,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e!=null&&e.partList){var n;const i=e.partList[0],s=i.end+(((n=e.fragmentHint)==null?void 0:n.duration)||0);if(t>=s){var r;if((this.hls.hasEnoughToStart?((r=this.media)==null?void 0:r.currentTime)||this.lastCurrentTime:this.getLoadPosition())>i.start-i.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:i,part:s}=e;if(!(t!=null&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${i} of ${this.playlistLabel()} ${r}. The current chunk will not be buffered.`),null;const l=t[r],c=l.details,u=s>-1?di(c,i,s):null,f=u?u.fragment:fi(c,i,n);return f?(n&&n!==f&&(f.stats=n.stats),{frag:f,part:u,level:l}):null}bufferFragmentData(e,t,n,r,i){var s;if(!e||this.state!==on.PARSING)return;const{data1:l,data2:c}=e;let u=l;if(l&&c&&(u=at(l,c)),!((s=u)!=null&&s.length))return;const f={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:u};if(this.hls.trigger(d.BUFFER_APPENDING,f),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Tn.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=Tn.bufferInfo(t,n,0),i=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),l=Math.max(Math.min(e.start-s,r.end-s),n+s);e.start-l>s&&this.flushMainBuffer(l,e.start)}getFwdBufferInfo(e,t){var n;const r=this.getLoadPosition();if(!p(r))return null;const s=this.lastCurrentTime>r||(n=this.media)!=null&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,r,t,s)}getFwdBufferInfoAtPos(e,t,n,r){const i=Tn.bufferInfo(e,t,r);if(i.len===0&&i.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(t,n);if(s&&(i.nextStart<=s.end||s.gap)){const l=Math.max(Math.min(i.nextStart,s.end)-t,r);return Tn.bufferInfo(e,t,l)}}return i}getMaxBufferLength(e){const{config:t}=this;let n;return e?n=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):n=t.maxBufferLength,Math.min(n,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const n=this.config,r=Math.max(Math.min(e-t,n.maxBufferLength),t),i=Math.max(e-t*3,n.maxMaxBufferLength/2,r);return i>=r?(n.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0):!1}getAppendedFrag(e,t=le.MAIN){var n;const r=(n=this.fragmentTracker)==null?void 0:n.getAppendedFrag(e,t);return r&&"fragment"in r?r.fragment:r}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:i}=this,s=n[0].start,l=i.lowLatencyMode&&!!t.partList;let c=null;if(t.live){const h=i.initialLiveManifestSize;if(r<h)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${h})`),null;if(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s){var u;l&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),c=this.getInitialLiveFragment(t,n);const A=this.hls.startPosition,C=this.hls.liveSyncPosition,D=c?(A!==-1&&A>=s?A:C)||c.start:e;this.log(`Setting startPosition to ${D} to match start frag at live edge. mainStart: ${A} liveSyncPosition: ${C} frag.start: ${(u=c)==null?void 0:u.start}`),this.startPosition=this.nextLoadPosition=D}}else e<=s&&(c=n[0]);if(!c){const h=this.loadingParts?t.partEnd:t.fragmentEnd;c=this.getFragmentAtPosition(e,h,t)}let f=this.filterReplacedPrimary(c,t);if(!f&&c){const h=c.sn-t.startSN;f=this.filterReplacedPrimary(n[h+1]||null,t)}return this.mapToInitFragWhenRequired(f)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===it.OK||n===it.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){let s=null;if(e.gap&&(s=this.getNextFragment(this.nextLoadPosition,t),s&&!s.gap&&n.nextStart)){const l=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r,0);if(l!==null&&n.len+l.len>=i){const c=s.sn;return this.loopSn!==c&&(this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${c}`),this.loopSn=c),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(_i(this.hls.config)){var e,t;if((e=this.hls.interstitialsManager)==null||(t=e.playingItem)==null?void 0:t.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(_i(this.hls.config)&&e.type!==le.SUBTITLE){const n=this.hls.interstitialsManager,r=n==null?void 0:n.bufferingItem;if(r){const s=r.event;if(s){if(s.appendInPlace||Math.abs(e.start-r.start)>1||r.start===0)return null}else if(e.end<=r.start&&(t==null?void 0:t.live)===!1||e.start>r.end&&r.nextEvent&&(r.nextEvent.appendInPlace||e.start-r.end>1))return null}const i=n==null?void 0:n.playerQueue;if(i)for(let s=i.length;s--;){const l=i[s].interstitial;if(l.appendInPlace&&e.start>=l.startTime&&e.end<=l.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,n){let r=-1,i=!1,s=!0;for(let l=0,c=e.length;l<c;l++){const u=e[l];if(s=s&&!u.independent,r>-1&&n<u.start)break;const f=u.loaded;f?r=-1:(i||u.independent||s)&&u.fragment===t&&(r=l),i=f}return r}loadedEndOfParts(e,t){const n=e[e.length-1];return n&&t>n.start&&n.loaded}getInitialLiveFragment(e,t){const n=this.fragPrevious;let r=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),r=yn(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){const i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){const s=t[i-e.startSN];n.cc===s.cc&&(r=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=On(t,n.cc),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const i=this.hls.liveSyncPosition;i!==null&&(r=this.getFragmentAtPosition(i,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){const{config:r}=this;let{fragPrevious:i}=this,{fragments:s,endSN:l}=n;const{fragmentHint:c}=n,{maxFragLookUpTolerance:u}=r,f=n.partList,h=!!(this.loadingParts&&f!=null&&f.length&&c);h&&c&&!this.bitrateTest&&f[f.length-1].fragment.sn===c.sn&&(s=s.concat(c),l=c.sn);let A;if(e<t){var C;const X=e<this.lastCurrentTime||e>t-u||(C=this.media)!=null&&C.paused||!this.startFragRequested?0:u;A=Zn(i,s,e,X)}else A=s[s.length-1];if(A){const D=A.sn-n.startSN,X=this.fragmentTracker.getState(A);if((X===it.OK||X===it.PARTIAL&&A.gap)&&(i=A),i&&A.sn===i.sn&&(!h||f[0].fragment.sn>A.sn||!n.live&&!h)&&i&&A.level===i.level){const Ae=s[D+1];A.sn<l&&this.fragmentTracker.getState(Ae)!==it.OK?A=Ae:A=null}}return A}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragmentStart,s=!t,l=e.alignedSliding&&p(i);if(s||!l&&!i){bs(n,e);const c=e.fragmentStart;return this.log(`Live playlist sliding: ${c.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${r}`),c}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let n=this.startPosition;n<t&&(n=-1);const r=this.timelineOffset;if(n===-1){const i=this.startTimeOffset!==null,s=i?this.startTimeOffset:e.startTimeOffset;s!==null&&p(s)?(n=t+s,s<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Setting startPosition to ${n} for start time offset ${s} found in ${i?"multivariant":"media"} playlist`),this.startPosition=n):e.live?(n=this.hls.liveSyncPosition||t,this.log(`Setting startPosition to -1 to start at live edge ${n}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=n=0),this.lastCurrentTime=n+r}this.nextLoadPosition=n+r}getLoadPosition(){var e;const{media:t}=this;let n=0;return(e=this.hls)!=null&&e.hasEnoughToStart&&t?n=t.currentTime:this.nextLoadPosition>=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&ce(e)&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==on.FRAG_LOADING_WAITING_RETRY)&&(this.state=on.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const D=this.getCurrentContext(t.chunkMeta);D&&(t.frag=D.frag)}const n=t.frag;if(!n||n.type!==e||!this.levels)return;if(this.fragContextChanged(n)){var r;this.warn(`Frag load error must match current frag to retry ${n.url} > ${(r=this.fragCurrent)==null?void 0:r.url}`);return}const i=t.details===O.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(n,!0);const s=t.errorAction,{action:l,flags:c,retryCount:u=0,retryConfig:f}=s||{},h=!!s&&!!f,A=h&&l===zn.RetryRequest,C=h&&!s.resolved&&c===Ee.MoveAllAlternatesMatchingHost;if(!A&&C&&ce(n)&&!n.endList)this.resetFragmentErrors(e),this.treatAsGap(n),s.resolved=!0;else if((A||C)&&u<f.maxNumRetry){this.resetStartWhenNotLoaded(this.levelLastLoaded);const D=je(f,u);this.warn(`Fragment ${n.sn} of ${e} ${n.level} errored with ${t.details}, retrying loading ${u+1}/${f.maxNumRetry} in ${D}ms`),s.resolved=!0,this.retryDate=self.performance.now()+D,this.state=on.FRAG_LOADING_WAITING_RETRY}else if(f&&s)if(this.resetFragmentErrors(e),u<f.maxNumRetry)!i&&l!==zn.RemoveAlternatePermanently&&(s.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${u})`);return}else l===zn.SendAlternateToPenaltyBox?this.state=on.WAITING_LEVEL:this.state=on.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===on.PARSING||this.state===on.PARSED){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(t==null?void 0:t.duration)||10);const s=!i;return s&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===le.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==on.STOPPED&&(this.state=on.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=Tn.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===on.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==on.STOPPED&&(this.state=on.IDLE)}resetStartWhenNotLoaded(e){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of ${this.playlistLabel()} ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,r){const i=n.details;if(!i){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((c,u)=>{const f=e.elementaryStreams[u];if(f){const h=f.endPTS-f.startPTS;if(h<=0)return this.warn(`Could not parse fragment ${e.sn} ${u} duration reliably (${h})`),c||!1;const A=r?0:ki(i,e,f.startPTS,f.endPTS,f.startDTS,f.endDTS);return this.hls.trigger(d.LEVEL_PTS_UPDATED,{details:i,level:n,drift:A,type:u,frag:e,start:f.startPTS,end:f.endPTS}),!0}return c},!1)){var l;if(n.fragmentError===0&&this.treatAsGap(e,n),((l=this.transmuxer)==null?void 0:l.error)===null){const c=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(c.message),this.hls.trigger(d.ERROR,{type:me.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,fatal:!1,error:c,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=on.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(d.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===le.MAIN?"level":"track"}fragInfo(e,t=!0,n){var r,i;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${((r=t&&!n?e.startPTS:(n||e).start)!=null?r:NaN).toFixed(3)}-${((i=t&&!n?e.endPTS:(n||e).end)!=null?i:NaN).toFixed(3)}]${n&&e.type==="main"?"INDEPENDENT="+(n.independent?"YES":"NO"):""}`}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;(e=this.transmuxer)==null||e.reset()}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function _i(a){return!!a.interstitialsController&&a.enableInterstitialPlayback!==!1}class ss{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let n;if(e.length)e.length===1?n=e[0]:n=xs(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function xs(a,e){const t=new Uint8Array(e);let n=0;for(let r=0;r<a.length;r++){const i=a[r];t.set(i,n),n+=i.length}return t}var as={exports:{}},os;function Hi(){return os||(os=1,function(a){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function i(c,u,f,h,A){if(typeof f!="function")throw new TypeError("The listener must be a function");var C=new r(f,h||c,A),D=t?t+u:u;return c._events[D]?c._events[D].fn?c._events[D]=[c._events[D],C]:c._events[D].push(C):(c._events[D]=C,c._eventsCount++),c}function s(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],f,h;if(this._eventsCount===0)return u;for(h in f=this._events)e.call(f,h)&&u.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=t?t+u:u,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var A=0,C=h.length,D=new Array(C);A<C;A++)D[A]=h[A].fn;return D},l.prototype.listenerCount=function(u){var f=t?t+u:u,h=this._events[f];return h?h.fn?1:h.length:0},l.prototype.emit=function(u,f,h,A,C,D){var X=t?t+u:u;if(!this._events[X])return!1;var H=this._events[X],Ae=arguments.length,Qe,Ke;if(H.fn){switch(H.once&&this.removeListener(u,H.fn,void 0,!0),Ae){case 1:return H.fn.call(H.context),!0;case 2:return H.fn.call(H.context,f),!0;case 3:return H.fn.call(H.context,f,h),!0;case 4:return H.fn.call(H.context,f,h,A),!0;case 5:return H.fn.call(H.context,f,h,A,C),!0;case 6:return H.fn.call(H.context,f,h,A,C,D),!0}for(Ke=1,Qe=new Array(Ae-1);Ke<Ae;Ke++)Qe[Ke-1]=arguments[Ke];H.fn.apply(H.context,Qe)}else{var bt=H.length,St;for(Ke=0;Ke<bt;Ke++)switch(H[Ke].once&&this.removeListener(u,H[Ke].fn,void 0,!0),Ae){case 1:H[Ke].fn.call(H[Ke].context);break;case 2:H[Ke].fn.call(H[Ke].context,f);break;case 3:H[Ke].fn.call(H[Ke].context,f,h);break;case 4:H[Ke].fn.call(H[Ke].context,f,h,A);break;default:if(!Qe)for(St=1,Qe=new Array(Ae-1);St<Ae;St++)Qe[St-1]=arguments[St];H[Ke].fn.apply(H[Ke].context,Qe)}}return!0},l.prototype.on=function(u,f,h){return i(this,u,f,h,!1)},l.prototype.once=function(u,f,h){return i(this,u,f,h,!0)},l.prototype.removeListener=function(u,f,h,A){var C=t?t+u:u;if(!this._events[C])return this;if(!f)return s(this,C),this;var D=this._events[C];if(D.fn)D.fn===f&&(!A||D.once)&&(!h||D.context===h)&&s(this,C);else{for(var X=0,H=[],Ae=D.length;X<Ae;X++)(D[X].fn!==f||A&&!D[X].once||h&&D[X].context!==h)&&H.push(D[X]);H.length?this._events[C]=H.length===1?H[0]:H:s(this,C)}return this},l.prototype.removeAllListeners=function(u){var f;return u?(f=t?t+u:u,this._events[f]&&s(this,f)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=t,l.EventEmitter=l,a.exports=l}(as)),as.exports}var ls=Hi(),Ki=P(ls);const us="1.6.2",cs={};function Vs(){return typeof __HLS_WORKER_BUNDLE__=="function"}function Ys(){const a=cs[us];if(a)return a.clientCount++,a;const e=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),t=self.URL.createObjectURL(e),r={worker:new self.Worker(t),objectURL:t,clientCount:1};return cs[us]=r,r}function pa(a){const e=cs[a];if(e)return e.clientCount++,e;const t=new self.URL(a,self.location.href).href,r={worker:new self.Worker(t),scriptURL:t,clientCount:1};return cs[a]=r,r}function ma(a){const e=cs[a||us];if(e&&e.clientCount--===1){const{worker:n,objectURL:r}=e;delete cs[a||us],r&&self.URL.revokeObjectURL(r),n.terminate()}}function Xs(a,e){return e+10<=a.length&&a[e]===51&&a[e+1]===68&&a[e+2]===73&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128}function Ss(a,e){return e+10<=a.length&&a[e]===73&&a[e+1]===68&&a[e+2]===51&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128}function Vi(a,e){let t=0;return t=(a[e]&127)<<21,t|=(a[e+1]&127)<<14,t|=(a[e+2]&127)<<7,t|=a[e+3]&127,t}function Yi(a,e){const t=e;let n=0;for(;Ss(a,e);){n+=10;const r=Vi(a,e+6);n+=r,Xs(a,e+10)&&(n+=10),e+=n}if(n>0)return a.subarray(t,t+n)}function Ns(a,e,t,n){const r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=e[t+2],s=i>>2&15;if(s>12){const C=new Error(`invalid ADTS sampling index:${s}`);a.emit(d.ERROR,d.ERROR,{type:me.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,fatal:!0,error:C,reason:C.message});return}const l=(i>>6&3)+1,c=e[t+3]>>6&3|(i&1)<<2,u="mp4a.40."+l,f=r[s];let h=s;(l===5||l===29)&&(h-=3);const A=[l<<3|(h&14)>>1,(h&1)<<7|c<<3];return W.log(`manifest codec:${n}, parsed codec:${u}, channels:${c}, rate:${f} (ADTS object type:${l} sampling index:${s})`),{config:A,samplerate:f,channelCount:c,codec:u,parsedCodec:u,manifestCodec:n}}function Ms(a,e){return a[e]===255&&(a[e+1]&246)===240}function Os(a,e){return a[e+1]&1?7:9}function ws(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function Qs(a,e){return e+5<a.length}function As(a,e){return e+1<a.length&&Ms(a,e)}function Js(a,e){return Qs(a,e)&&Ms(a,e)&&ws(a,e)<=a.length-e}function Fs(a,e){if(As(a,e)){const t=Os(a,e);if(e+t>=a.length)return!1;const n=ws(a,e);if(n<=t)return!1;const r=e+n;return r===a.length||As(a,r)}return!1}function Bs(a,e,t,n,r){if(!a.samplerate){const i=Ns(e,t,n,r);if(!i)return;m(a,i)}}function Ts(a){return 1024*9e4/a}function qs(a,e){const t=Os(a,e);if(e+t<=a.length){const n=ws(a,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function $s(a,e,t,n,r){const i=Ts(a.samplerate),s=n+r*i,l=qs(e,t);let c;if(l){const{frameLength:h,headerLength:A}=l,C=A+h,D=Math.max(0,t+C-e.length);D?(c=new Uint8Array(C-A),c.set(e.subarray(t+A,e.length),0)):c=e.subarray(t+A,t+C);const X={unit:c,pts:s};return D||a.samples.push(X),{sample:X,length:C,missing:D}}const u=e.length-t;return c=new Uint8Array(u),c.set(e.subarray(t,e.length),0),{sample:{unit:c,pts:s},length:u,missing:-1}}function Rr(a,e){return Ss(a,e)&&Vi(a,e+6)+10<=a.length-e}function Lr(a){if(a.size<2)return;const e=Oe(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}}function ai(a){if(a.size<2)return;if(a.type==="TXXX"){let t=1;const n=Oe(a.data.subarray(t),!0);t+=n.length+1;const r=Oe(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=Oe(a.data.subarray(1));return{key:a.type,info:"",data:e}}function Ei(a){if(a.type==="WXXX"){if(a.size<2)return;let t=1;const n=Oe(a.data.subarray(t),!0);t+=n.length+1;const r=Oe(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=Oe(a.data);return{key:a.type,info:"",data:e}}function oi(a){return btoa(String.fromCharCode(...a))}function Xi(a,e){if(a<0)return-Xi(-a,e);const t=Math.pow(10,e);if(Math.abs(a*t%1-.5)<Number.EPSILON){const r=Math.floor(a*t);return(r%2===0?r:r+1)/t}else return Math.round(a*t)/t}function Qi(a,e){const t=new URL(a),n=new URL(e);if(t.origin!==n.origin)return a;const r=t.pathname.split("/").slice(1),i=n.pathname.split("/").slice(1,-1);for(;r[0]===i[0];)r.shift(),i.shift();for(;i.length;)i.shift(),r.unshift("..");return r.join("/")}function Ji(){try{return crypto.randomUUID()}catch(a){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const i=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r=="x"?i:i&3|8).toString(16)})}}}function gs(a){return a instanceof ArrayBuffer?a:a.byteOffset==0&&a.byteLength==a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer}function vs(a,e=0,t=1/0){return gl(a,e,t,Uint8Array)}function gl(a,e,t,n){const r=vl(a);let i=1;"BYTES_PER_ELEMENT"in n&&(i=n.BYTES_PER_ELEMENT);const s=yl(a)?a.byteOffset:0,l=(s+a.byteLength)/i,c=(s+e)/i,u=Math.floor(Math.max(0,Math.min(c,l))),f=Math.floor(Math.min(u+Math.max(t,0),l));return new n(r,u,f-u)}function vl(a){return a instanceof ArrayBuffer?a:a.buffer}function yl(a){return a&&a.buffer instanceof ArrayBuffer&&a.byteLength!==void 0&&a.byteOffset!==void 0}function _l(a){const e={key:a.type,description:"",data:"",mimeType:null,pictureType:null},t=3;if(a.size<2)return;if(a.data[0]!==t){console.log("Ignore frame with unrecognized character encoding");return}const n=a.data.subarray(1).indexOf(0);if(n===-1)return;const r=Oe(vs(a.data,1,n)),i=a.data[2+n],s=a.data.subarray(3+n).indexOf(0);if(s===-1)return;const l=Oe(vs(a.data,3+n,s));let c;return r==="-->"?c=Oe(vs(a.data,4+n+s)):c=gs(a.data.subarray(4+n+s)),e.mimeType=r,e.pictureType=i,e.description=l,e.data=c,e}function El(a){return a.type==="PRIV"?Lr(a):a.type[0]==="W"?Ei(a):a.type==="APIC"?_l(a):ai(a)}function bl(a){const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=Vi(a,4),n=10;return{type:e,size:t,data:a.subarray(n,n+t)}}const ea=10,xl=10;function Xa(a){let e=0;const t=[];for(;Ss(a,e);){const n=Vi(a,e+6);a[e+5]>>6&1&&(e+=ea),e+=ea;const r=e+n;for(;e+xl<r;){const i=bl(a.subarray(e)),s=El(i);s&&t.push(s),e+=i.size+ea}Xs(a,e)&&(e+=ea)}return t}function Qa(a){return a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp"}function Sl(a){if(a.data.byteLength===8){const e=new Uint8Array(a.data),t=e[3]&1;let n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,t&&(n+=4772185884e-2),Math.round(n)}}function ga(a){const e=Xa(a);for(let t=0;t<e.length;t++){const n=e[t];if(Qa(n))return Sl(n)}}let Si=function(a){return a.audioId3="org.id3",a.dateRange="com.apple.quicktime.HLS",a.emsg="https://aomedia.org/emsg/ID3",a.misbklv="urn:misb:KLV:bin:1910.1",a}({});function zi(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class va{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,n,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,n){}demux(e,t){this.cachedData&&(e=at(this.cachedData,e),this.cachedData=null);let n=Yi(e,0),r=n?n.length:0,i;const s=this._audioTrack,l=this._id3Track,c=n?ga(n):void 0,u=e.length;for((this.basePTS===null||this.frameIndex===0&&p(c))&&(this.basePTS=wl(c,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),n&&n.length>0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Si.audioId3,duration:Number.POSITIVE_INFINITY});r<u;){if(this.canParse(e,r)){const f=this.appendFrame(s,e,r);f?(this.frameIndex++,this.lastPTS=f.sample.pts,r+=f.length,i=r):r=u}else Rr(e,r)?(n=Yi(e,r),l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Si.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===u&&i!==u){const f=e.slice(i);this.cachedData?this.cachedData=at(this.cachedData,f):this.cachedData=f}}return{audioTrack:s,videoTrack:zi(),id3Track:l,textTrack:zi()}}demuxSampleAes(e,t,n){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:zi(),id3Track:this._id3Track,textTrack:zi()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const wl=(a,e,t)=>{if(p(a))return a*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};let ta=null;const Al=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],Tl=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Cl=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Dl=[0,1,1,4];function Ja(a,e,t,n,r){if(t+24>e.length)return;const i=qa(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,l=n+r*s,c={unit:e.subarray(t,t+i.frameLength),pts:l,dts:l};return a.config=[],a.channelCount=i.channelCount,a.samplerate=i.sampleRate,a.samples.push(c),{sample:c,length:i.frameLength,missing:0}}}function qa(a,e){const t=a[e+1]>>3&3,n=a[e+1]>>1&3,r=a[e+2]>>4&15,i=a[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&i!==3){const s=a[e+2]>>1&1,l=a[e+3]>>6,c=t===3?3-n:n===3?3:4,u=Al[c*14+r-1]*1e3,h=Tl[(t===3?0:t===2?1:2)*3+i],A=l===3?1:2,C=Cl[t][n],D=Dl[n],X=C*8*D,H=Math.floor(C*u/h+s)*D;if(ta===null){const Ke=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);ta=Ke?parseInt(Ke[1]):0}return!!ta&&ta<=87&&n===2&&u>=224e3&&l===0&&(a[e+3]=a[e+3]|128),{sampleRate:h,channelCount:A,frameLength:H,samplesPerFrame:X}}}function ya(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function $a(a,e){return e+1<a.length&&ya(a,e)}function Rl(a,e){return ya(a,e)&&4<=a.length-e}function eo(a,e){if(e+1<a.length&&ya(a,e)){const n=qa(a,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===a.length||$a(a,i)}return!1}class Ll extends va{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const n=Yi(e,0);let r=(n==null?void 0:n.length)||0;if(eo(e,r))return!1;for(let i=e.length;r<i;r++)if(Fs(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Js(e,t)}appendFrame(e,t,n){Bs(e,this.observer,t,n,e.manifestCodec);const r=$s(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const to=(a,e)=>{let t=0,n=5;e+=n;const r=new Uint32Array(1),i=new Uint32Array(1),s=new Uint8Array(1);for(;n>0;){s[0]=a[e];const l=Math.min(n,8),c=8-l;i[0]=4278190080>>>24+c<<c,r[0]=(s[0]&i[0])>>c,t=t?t<<l|r[0]:r[0],e+=1,n-=l}return t};class Il extends va{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,n){const r=no(e,t,n,this.basePTS,this.frameIndex);if(r!==-1)return{sample:e.samples[e.samples.length-1],length:r,missing:0}}static probe(e){if(!e)return!1;const t=Yi(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&ga(t)!==void 0&&to(e,n)<16}}function no(a,e,t,n,r){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const i=e[t+4]>>6;if(i>=3)return-1;const l=[48e3,44100,32e3][i],c=e[t+4]&63,f=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][c*3+i]*2;if(t+f>e.length)return-1;const h=e[t+6]>>5;let A=0;h===2?A+=2:(h&1&&h!==1&&(A+=2),h&4&&(A+=2));const C=(e[t+6]<<8|e[t+7])>>12-A&1,X=[2,1,2,3,3,4,4,5][h]+C,H=e[t+5]>>3,Ae=e[t+5]&7,Qe=new Uint8Array([i<<6|H<<1|Ae>>2,(Ae&3)<<6|h<<3|C<<2|c>>4,c<<4&224]),Ke=1536/l*9e4,bt=n+r*Ke,St=e.subarray(t,t+f);return a.config=Qe,a.channelCount=X,a.samplerate=l,a.samples.push({unit:St,pts:bt}),f}class kl extends va{resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=Yi(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&ga(t)!==void 0&&to(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(eo(e,n))return W.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Rl(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return Ja(e,t,n,this.basePTS,this.frameIndex)}}const Pl=/\/emsg[-/]ID3/i;class Nl{constructor(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}resetTimeStamp(){}resetInitSegment(e,t,n,r){const i=this.videoTrack=zi("video",1),s=this.audioTrack=zi("audio",1),l=this.txtTrack=zi("text",1);if(this.id3Track=zi("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const c=Ge(e);if(c.video){const{id:u,timescale:f,codec:h,supplemental:A}=c.video;i.id=u,i.timescale=l.timescale=f,i.codec=h,i.supplemental=A}if(c.audio){const{id:u,timescale:f,codec:h}=c.audio;s.id=u,s.timescale=f,s.codec=h}l.id=ke.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return be(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=at(this.remainderData,e));const l=$e(n);this.remainderData=l.remainder,r.samples=l.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=ve(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const r=this.extractID3Track(t,this.timeOffset);return n.samples=ve(e,t),{videoTrack:t,audioTrack:zi(),id3Track:r,textTrack:zi()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=M(e.samples,["emsg"]);r&&r.forEach(i=>{const s=gt(i);if(Pl.test(s.schemeIdUri)){const l=ro(s,t);let c=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;c<=.001&&(c=Number.POSITIVE_INFINITY);const u=s.payload;n.samples.push({data:u,len:u.byteLength,dts:l,pts:l,type:Si.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=ro(s,t);n.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:Si.misbklv,duration:Number.POSITIVE_INFINITY})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function ro(a,e){return p(a.presentationTime)?a.presentationTime/a.timeScale:e+a.presentationTimeDelta/a.timeScale}class Ml{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new Rn(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,kt.cbc)}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const i=r.subarray(16,r.length-r.length%16),s=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(s).then(l=>{const c=new Uint8Array(l);r.set(c,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)})}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length){n();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,n=new Int8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)e.set(n.subarray(r,r+16),i);return e}decryptAvcSample(e,t,n,r,i){const s=He(i.data),l=this.getAvcEncryptedData(s);this.decryptBuffer(l.buffer).then(c=>{i.data=this.getAvcDecryptedUnit(s,c),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,r)})}decryptAvcSamples(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length){r();return}const i=e[t].units;for(;!(n>=i.length);n++){const s=i[n];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(e,t,n,r,s),!this.decrypter.isSync()))return}}}}class io{constructor(){this.VideoSample=null}createVideoSample(e,t,n){return{key:e,frame:!1,pts:t,dts:n,units:[],length:0}}getLastNalUnit(e){var t;let n=this.VideoSample,r;if((!n||n.units.length===0)&&(n=e[e.length-1]),(t=n)!=null&&t.units){const i=n.units;r=i[i.length-1]}return r}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const n=t.samples,r=n.length;if(r){const i=n[r-1];e.pts=i.pts,e.dts=i.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,n){const r=t.byteLength;let i=e.naluState||0;const s=i,l=[];let c=0,u,f,h,A=-1,C=0;for(i===-1&&(A=0,C=this.getNALuType(t,0),i=0,c=1);c<r;){if(u=t[c++],!i){i=u?0:1;continue}if(i===1){i=u?0:2;continue}if(!u)i=3;else if(u===1){if(f=c-i-1,A>=0){const D={data:t.subarray(A,f),type:C};l.push(D)}else{const D=this.getLastNalUnit(e.samples);D&&(s&&c<=4-s&&D.state&&(D.data=D.data.subarray(0,D.data.byteLength-s)),f>0&&(D.data=at(D.data,t.subarray(0,f)),D.state=0))}c<r?(h=this.getNALuType(t,c),A=c,C=h,i=0):i=-1}else i=0}if(A>=0&&i>=0){const D={data:t.subarray(A,r),type:C,state:i};l.push(D)}if(l.length===0){const D=this.getLastNalUnit(e.samples);D&&(D.data=at(D.data,t))}return e.naluState=i,l}}class Us{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(i===0)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=i*8,this.bytesAvailable-=i}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const n=this.word>>>32-t;if(e>32&&W.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?n<<t|this.readBits(t):n}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class so extends io{parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s=this.VideoSample,l,c=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(u=>{var f,h;switch(u.type){case 1:{let X=!1;l=!0;const H=u.data;if(c&&H.length>4){const Ae=this.readSliceType(H);(Ae===2||Ae===4||Ae===7||Ae===9)&&(X=!0)}if(X){var A;(A=s)!=null&&A.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.frame=!0,s.key=X;break}case 5:l=!0,(f=s)!=null&&f.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 6:{l=!0,Je(u.data,1,n.pts,t.samples);break}case 7:{var C,D;l=!0,c=!0;const X=u.data,H=this.readSPS(X);if(!e.sps||e.width!==H.width||e.height!==H.height||((C=e.pixelRatio)==null?void 0:C[0])!==H.pixelRatio[0]||((D=e.pixelRatio)==null?void 0:D[1])!==H.pixelRatio[1]){e.width=H.width,e.height=H.height,e.pixelRatio=H.pixelRatio,e.sps=[X];const Ae=X.subarray(1,4);let Qe="avc1.";for(let Ke=0;Ke<3;Ke++){let bt=Ae[Ke].toString(16);bt.length<2&&(bt="0"+bt),Qe+=bt}e.codec=Qe}break}case 8:l=!0,e.pps=[u.data];break;case 9:l=!0,e.audFound=!0,(h=s)!=null&&h.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:l=!0;break;default:l=!1;break}s&&l&&s.units.push(u)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}getNALuType(e,t){return e[t]&31}readSliceType(e){const t=new Us(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n=8,r=8,i;for(let s=0;s<e;s++)r!==0&&(i=t.readEG(),r=(n+i+256)%256),n=r===0?n:r}readSPS(e){const t=new Us(e);let n=0,r=0,i=0,s=0,l,c,u;const f=t.readUByte.bind(t),h=t.readBits.bind(t),A=t.readUEG.bind(t),C=t.readBoolean.bind(t),D=t.skipBits.bind(t),X=t.skipEG.bind(t),H=t.skipUEG.bind(t),Ae=this.skipScalingList.bind(this);f();const Qe=f();if(h(5),D(3),f(),H(),Qe===100||Qe===110||Qe===122||Qe===244||Qe===44||Qe===83||Qe===86||Qe===118||Qe===128){const Qt=A();if(Qt===3&&D(1),H(),H(),D(1),C())for(c=Qt!==3?8:12,u=0;u<c;u++)C()&&(u<6?Ae(16,t):Ae(64,t))}H();const Ke=A();if(Ke===0)A();else if(Ke===1)for(D(1),X(),X(),l=A(),u=0;u<l;u++)X();H(),D(1);const bt=A(),St=A(),nn=h(1);nn===0&&D(1),D(1),C()&&(n=A(),r=A(),i=A(),s=A());let wt=[1,1];if(C()&&C())switch(f()){case 1:wt=[1,1];break;case 2:wt=[12,11];break;case 3:wt=[10,11];break;case 4:wt=[16,11];break;case 5:wt=[40,33];break;case 6:wt=[24,11];break;case 7:wt=[20,11];break;case 8:wt=[32,11];break;case 9:wt=[80,33];break;case 10:wt=[18,11];break;case 11:wt=[15,11];break;case 12:wt=[64,33];break;case 13:wt=[160,99];break;case 14:wt=[4,3];break;case 15:wt=[3,2];break;case 16:wt=[2,1];break;case 255:{wt=[f()<<8|f(),f()<<8|f()];break}}return{width:Math.ceil((bt+1)*16-n*2-r*2),height:(2-nn)*(St+1)*16-(nn?2:4)*(i+s),pixelRatio:wt}}}class ao extends io{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s=this.VideoSample,l,c=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(u=>{var f,h;switch(u.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),s.frame=!0,l=!0;break;case 16:case 17:case 18:case 21:if(l=!0,c){var A;(A=s)!=null&&A.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:l=!0,(f=s)!=null&&f.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 39:l=!0,Je(u.data,2,n.pts,t.samples);break;case 32:l=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=m(e.params,this.readVPS(u.data)),this.initVPS=u.data),e.vps=[u.data];break;case 33:if(l=!0,c=!0,e.vps!==void 0&&e.vps[0]!==this.initVPS&&e.sps!==void 0&&!this.matchSPS(e.sps[0],u.data)&&(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const C=this.readSPS(u.data);e.width=C.width,e.height=C.height,e.pixelRatio=C.pixelRatio,e.codec=C.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const D in C.params)e.params[D]=C.params[D]}this.pushParameterSet(e.sps,u.data,e.vps),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0;break;case 34:if(l=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const C=this.readPPS(u.data);for(const D in C)e.params[D]=C[D]}this.pushParameterSet(e.pps,u.data,e.vps)}break;case 35:l=!0,e.audFound=!0,(h=s)!=null&&h.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:l=!1;break}s&&l&&s.units.push(u)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}pushParameterSet(e,t,n){(n&&n[0]===this.initVPS||!n&&!e.length)&&e.push(t)}getNALuType(e,t){return(e[t]&126)>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let n=0;for(let r=0;r<e.byteLength;r++)r>=2&&e[r]===3&&e[r-1]===0&&e[r-2]===0||(t[n]=e[r],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new Us(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);const n=t.readBits(3),r=t.readBoolean();return{numTemporalLayers:n+1,temporalIdNested:r}}readSPS(e){const t=new Us(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const r=t.readBits(2),i=t.readBoolean(),s=t.readBits(5),l=t.readUByte(),c=t.readUByte(),u=t.readUByte(),f=t.readUByte(),h=t.readUByte(),A=t.readUByte(),C=t.readUByte(),D=t.readUByte(),X=t.readUByte(),H=t.readUByte(),Ae=t.readUByte(),Qe=[],Ke=[];for(let Zr=0;Zr<n;Zr++)Qe.push(t.readBoolean()),Ke.push(t.readBoolean());if(n>0)for(let Zr=n;Zr<8;Zr++)t.readBits(2);for(let Zr=0;Zr<n;Zr++)Qe[Zr]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),Ke[Zr]&&t.readUByte();t.readUEG();const bt=t.readUEG();bt==3&&t.skipBits(1);const St=t.readUEG(),nn=t.readUEG(),wt=t.readBoolean();let Qt=0,un=0,Nt=0,In=0;wt&&(Qt+=t.readUEG(),un+=t.readUEG(),Nt+=t.readUEG(),In+=t.readUEG());const Hn=t.readUEG(),kr=t.readUEG(),vr=t.readUEG(),fr=t.readBoolean();for(let Zr=fr?0:n;Zr<=n;Zr++)t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.readBoolean()&&t.readBoolean())for(let hi=0;hi<4;hi++)for(let Li=0;Li<(hi===3?2:6);Li++)if(!t.readBoolean())t.readUEG();else{const Ni=Math.min(64,1<<4+(hi<<1));hi>1&&t.readEG();for(let Ps=0;Ps<Ni;Ps++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const ur=t.readUEG();let kn=0;for(let Zr=0;Zr<ur;Zr++){let hi=!1;if(Zr!==0&&(hi=t.readBoolean()),hi){Zr===ur&&t.readUEG(),t.readBoolean(),t.readUEG();let Li=0;for(let _s=0;_s<=kn;_s++){const Ni=t.readBoolean();let Ps=!1;Ni||(Ps=t.readBoolean()),(Ni||Ps)&&Li++}kn=Li}else{const Li=t.readUEG(),_s=t.readUEG();kn=Li+_s;for(let Ni=0;Ni<Li;Ni++)t.readUEG(),t.readBoolean();for(let Ni=0;Ni<_s;Ni++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const Zr=t.readUEG();for(let hi=0;hi<Zr;hi++){for(let Li=0;Li<vr+4;Li++)t.readBits(1);t.readBits(1)}}let Tr=0,xr=1,Ir=1,Fr=!0,zr=1,Yr=0;t.readBoolean(),t.readBoolean();let gi=!1;if(t.readBoolean()){if(t.readBoolean()){const Es=t.readUByte(),ll=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],ha=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Es>0&&Es<16?(xr=ll[Es-1],Ir=ha[Es-1]):Es===255&&(xr=t.readBits(16),Ir=t.readBits(16))}if(t.readBoolean()&&t.readBoolean(),t.readBoolean()&&(t.readBits(3),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())),t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),gi=t.readBoolean(),gi&&(Qt+=t.readUEG(),un+=t.readUEG(),Nt+=t.readUEG(),In+=t.readUEG()),t.readBoolean()&&(zr=t.readBits(32),Yr=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const ha=t.readBoolean(),ul=t.readBoolean();let Ws=!1;(ha||ul)&&(Ws=t.readBoolean(),Ws&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),Ws&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let cl=0;cl<=n;cl++){Fr=t.readBoolean();const nd=Fr||t.readBoolean();let dl=!1;nd?t.readEG():dl=t.readBoolean();const fl=dl?1:t.readUEG()+1;if(ha)for(let Hs=0;Hs<fl;Hs++)t.readUEG(),t.readUEG(),Ws&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(ul)for(let Hs=0;Hs<fl;Hs++)t.readUEG(),t.readUEG(),Ws&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),Tr=t.readUEG())}let ms=St,ol=nn;if(wt||gi){let Zr=1,hi=1;bt===1?Zr=hi=2:bt==2&&(Zr=2),ms=St-Zr*un-Zr*Qt,ol=nn-hi*In-hi*Nt}const ed=r?["A","B","C"][r]:"",td=l<<24|c<<16|u<<8|f;let Va=0;for(let Zr=0;Zr<32;Zr++)Va=(Va|(td>>Zr&1)<<31-Zr)>>>0;let Ya=Va.toString(16);return s===1&&Ya==="2"&&(Ya="6"),{codecString:`hvc1.${ed}${s}.${Ya}.${i?"H":"L"}${Ae}.B0`,params:{general_tier_flag:i,general_profile_idc:s,general_profile_space:r,general_profile_compatibility_flags:[l,c,u,f],general_constraint_indicator_flags:[h,A,C,D,X,H],general_level_idc:Ae,bit_depth:Hn+8,bit_depth_luma_minus8:Hn,bit_depth_chroma_minus8:kr,min_spatial_segmentation_idc:Tr,chroma_format_idc:bt,frame_rate:{fixed:Fr,fps:Yr/zr}},width:ms,height:ol,pixelRatio:[xr,Ir]}}readPPS(e){const t=new Us(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2),t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const r=t.readBoolean(),i=t.readBoolean();let s=1;return i&&r?s=0:i?s=3:r&&(s=2),{parallelismType:s}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const ci=188;class ds{constructor(e,t,n,r){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.videoParser=null}static probe(e,t){const n=ds.syncOffset(e);return n>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),n!==-1}static syncOffset(e){const t=e.length;let n=Math.min(ci*5,t-ci)+1,r=0;for(;r<n;){let i=!1,s=-1,l=0;for(let c=r;c<t;c+=ci)if(e[c]===71&&(t-c===ci||e[c+ci]===71)){if(l++,s===-1&&(s=c,s!==0&&(n=Math.min(s+ci*99,e.length-ci)+1)),i||(i=_a(e,c)===0),i&&l>1&&(s===0&&l>2||c+ci>n))return s}else{if(l)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:ke[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,n,r){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=ds.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=ds.createTrack("audio",r),this._id3Track=ds.createTrack("id3"),this._txtTrack=ds.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,r=!1){n||(this.sampleAes=null);let i;const s=this._videoTrack,l=this._audioTrack,c=this._id3Track,u=this._txtTrack;let f=s.pid,h=s.pesData,A=l.pid,C=c.pid,D=l.pesData,X=c.pesData,H=null,Ae=this.pmtParsed,Qe=this._pmtId,Ke=e.length;if(this.remainderData&&(e=at(this.remainderData,e),Ke=e.length,this.remainderData=null),Ke<ci&&!r)return this.remainderData=e,{audioTrack:l,videoTrack:s,id3Track:c,textTrack:u};const bt=Math.max(0,ds.syncOffset(e));Ke-=(Ke-bt)%ci,Ke<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,Ke,e.buffer.byteLength-Ke));let St=0;for(let wt=bt;wt<Ke;wt+=ci)if(e[wt]===71){const Qt=!!(e[wt+1]&64),un=_a(e,wt),Nt=(e[wt+3]&48)>>4;let In;if(Nt>1){if(In=wt+5+e[wt+4],In===wt+ci)continue}else In=wt+4;switch(un){case f:if(Qt){if(h&&(i=Cs(h,this.logger))){if(this.videoParser===null)switch(s.segmentCodec){case"avc":this.videoParser=new so;break;case"hevc":this.videoParser=new ao;break}this.videoParser!==null&&this.videoParser.parsePES(s,u,i,!1)}h={data:[],size:0}}h&&(h.data.push(e.subarray(In,wt+ci)),h.size+=wt+ci-In);break;case A:if(Qt){if(D&&(i=Cs(D,this.logger)))switch(l.segmentCodec){case"aac":this.parseAACPES(l,i);break;case"mp3":this.parseMPEGPES(l,i);break;case"ac3":this.parseAC3PES(l,i);break}D={data:[],size:0}}D&&(D.data.push(e.subarray(In,wt+ci)),D.size+=wt+ci-In);break;case C:Qt&&(X&&(i=Cs(X,this.logger))&&this.parseID3PES(c,i),X={data:[],size:0}),X&&(X.data.push(e.subarray(In,wt+ci)),X.size+=wt+ci-In);break;case 0:Qt&&(In+=e[In]+1),Qe=this._pmtId=Ol(e,In);break;case Qe:{Qt&&(In+=e[In]+1);const Hn=Fl(e,In,this.typeSupported,n,this.observer,this.logger);f=Hn.videoPid,f>0&&(s.pid=f,s.segmentCodec=Hn.segmentVideoCodec),A=Hn.audioPid,A>0&&(l.pid=A,l.segmentCodec=Hn.segmentAudioCodec),C=Hn.id3Pid,C>0&&(c.pid=C),H!==null&&!Ae&&(this.logger.warn(`MPEG-TS PMT found at ${wt} after unknown PID '${H}'. Backtracking to sync byte @${bt} to parse all TS packets.`),H=null,wt=bt-188),Ae=this.pmtParsed=!0;break}case 17:case 8191:break;default:H=un;break}}else St++;St>0&&Ea(this.observer,new Error(`Found ${St} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=h,l.pesData=D,c.pesData=X;const nn={audioTrack:l,videoTrack:s,id3Track:c,textTrack:u};return r&&this.extractRemainingSamples(nn),nn}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:n,id3Track:r,textTrack:i}=e,s=n.pesData,l=t.pesData,c=r.pesData;let u;if(s&&(u=Cs(s,this.logger))){if(this.videoParser===null)switch(n.segmentCodec){case"avc":this.videoParser=new so;break;case"hevc":this.videoParser=new ao;break}this.videoParser!==null&&(this.videoParser.parsePES(n,i,u,!0),n.pesData=null)}else n.pesData=s;if(l&&(u=Cs(l,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,u);break;case"mp3":this.parseMPEGPES(t,u);break;case"ac3":this.parseAC3PES(t,u);break}t.pesData=null}else l!=null&&l.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=l;c&&(u=Cs(c,this.logger))?(this.parseID3PES(r,u),r.pesData=null):r.pesData=c}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new Ml(this.observer,this.config,t);return this.decrypt(r,i)}decrypt(e,t){return new Promise(n=>{const{audioTrack:r,videoTrack:i}=e;r.samples&&r.segmentCodec==="aac"?t.decryptAacSamples(r.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{n(e)}):n(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{n(e)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let i=t.data;if(r){this.aacOverFlow=null;const h=r.missing,A=r.sample.unit.byteLength;if(h===-1)i=at(r.sample.unit,i);else{const C=A-h;r.sample.unit.set(i.subarray(0,h),C),e.samples.push(r.sample),n=r.missing}}let s,l;for(s=n,l=i.length;s<l-1&&!As(i,s);s++);if(s!==n){let h;const A=s<l-1;if(A?h=`AAC PES did not start with ADTS header,offset:${s}`:h="No ADTS header found in AAC PES",Ea(this.observer,new Error(h),A,this.logger),!A)return}Bs(e,this.observer,i,s,this.audioCodec);let c;if(t.pts!==void 0)c=t.pts;else if(r){const h=Ts(e.samplerate);c=r.sample.pts+h}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let u=0,f;for(;s<l;)if(f=$s(e,i,s,c,u),s+=f.length,f.missing){this.aacOverFlow=f;break}else for(u++;s<l-1&&!As(i,s);s++);}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,s=0;const l=t.pts;if(l===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<r;)if($a(n,s)){const c=Ja(e,n,s,l,i);if(c)s+=c.length,i++;else break}else s++}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(r===void 0){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=n.length;let s=0,l=0,c;for(;l<i&&(c=no(e,n,l,r,s++))>0;)l+=c}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=m({},t,{type:this._videoTrack?Si.emsg:Si.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function _a(a,e){return((a[e+1]&31)<<8)+a[e+2]}function Ol(a,e){return(a[e+10]&31)<<8|a[e+11]}function Fl(a,e,t,n,r,i){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},l=(a[e+1]&15)<<8|a[e+2],c=e+3+l-4,u=(a[e+10]&15)<<8|a[e+11];for(e+=12+u;e<c;){const f=_a(a,e),h=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!n){ba("ADTS AAC",i);break}case 15:s.audioPid===-1&&(s.audioPid=f);break;case 21:s.id3Pid===-1&&(s.id3Pid=f);break;case 219:if(!n){ba("H.264",i);break}case 27:s.videoPid===-1&&(s.videoPid=f);break;case 3:case 4:!t.mpeg&&!t.mp3?i.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=f,s.segmentAudioCodec="mp3");break;case 193:if(!n){ba("AC-3",i);break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=f,s.segmentAudioCodec="ac3"):i.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&h>0){let A=e+5,C=h;for(;C>2;){switch(a[A]){case 106:t.ac3!==!0?i.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=f,s.segmentAudioCodec="ac3");break}const X=a[A+1]+2;A+=X,C-=X}}break;case 194:case 135:return Ea(r,new Error("Unsupported EC-3 in M2TS found"),void 0,i),s;case 36:s.videoPid===-1&&(s.videoPid=f,s.segmentVideoCodec="hevc",i.log("HEVC in M2TS found"));break}e+=h+5}return s}function Ea(a,e,t,n){n.warn(`parsing error: ${e.message}`),a.emit(d.ERROR,d.ERROR,{type:me.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function ba(a,e){e.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function Cs(a,e){let t=0,n,r,i,s,l;const c=a.data;if(!a||a.size===0)return null;for(;c[0].length<19&&c.length>1;)c[0]=at(c[0],c[1]),c.splice(1,1);if(n=c[0],(n[0]<<16)+(n[1]<<8)+n[2]===1){if(r=(n[4]<<8)+n[5],r&&r>a.size-6)return null;const f=n[7];f&192&&(s=(n[9]&14)*536870912+(n[10]&255)*4194304+(n[11]&254)*16384+(n[12]&255)*128+(n[13]&254)/2,f&64?(l=(n[14]&14)*536870912+(n[15]&255)*4194304+(n[16]&254)*16384+(n[17]&255)*128+(n[18]&254)/2,s-l>60*9e4&&(e.warn(`${Math.round((s-l)/9e4)}s delta between PTS and DTS, align them`),s=l)):l=s),i=n[8];let h=i+9;if(a.size<=h)return null;a.size-=h;const A=new Uint8Array(a.size);for(let C=0,D=c.length;C<D;C++){n=c[C];let X=n.byteLength;if(h)if(h>X){h-=X;continue}else n=n.subarray(h),X-=h,h=0;A.set(n,t),t+=X}return r&&(r-=i+3),{data:A,pts:s,dts:l,len:r}}return null}class Bl{static getSilentFrame(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const fs=Math.pow(2,32)-1;class Zt{static init(){Zt.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in Zt.types)Zt.types.hasOwnProperty(e)&&(Zt.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=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]),n=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]);Zt.HDLR_TYPES={video:t,audio:n};const r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i=new Uint8Array([0,0,0,0,0,0,0,0]);Zt.STTS=Zt.STSC=Zt.STCO=i,Zt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Zt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Zt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Zt.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),c=new Uint8Array([0,0,0,1]);Zt.FTYP=Zt.box(Zt.types.ftyp,s,c,s,l),Zt.DINF=Zt.box(Zt.types.dinf,Zt.box(Zt.types.dref,r))}static box(e,...t){let n=8,r=t.length;const i=r;for(;r--;)n+=t[r].byteLength;const s=new Uint8Array(n);for(s[0]=n>>24&255,s[1]=n>>16&255,s[2]=n>>8&255,s[3]=n&255,s.set(e,4),r=0,n=8;r<i;r++)s.set(t[r],n),n+=t[r].byteLength;return s}static hdlr(e){return Zt.box(Zt.types.hdlr,Zt.HDLR_TYPES[e])}static mdat(e){return Zt.box(Zt.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(fs+1)),r=Math.floor(t%(fs+1));return Zt.box(Zt.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))}static mdia(e){return Zt.box(Zt.types.mdia,Zt.mdhd(e.timescale||0,e.duration||0),Zt.hdlr(e.type),Zt.minf(e))}static mfhd(e){return Zt.box(Zt.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255]))}static minf(e){return e.type==="audio"?Zt.box(Zt.types.minf,Zt.box(Zt.types.smhd,Zt.SMHD),Zt.DINF,Zt.stbl(e)):Zt.box(Zt.types.minf,Zt.box(Zt.types.vmhd,Zt.VMHD),Zt.DINF,Zt.stbl(e))}static moof(e,t,n){return Zt.box(Zt.types.moof,Zt.mfhd(e),Zt.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=Zt.trak(e[t]);return Zt.box.apply(null,[Zt.types.moov,Zt.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(Zt.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=Zt.trex(e[t]);return Zt.box.apply(null,[Zt.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(fs+1)),r=Math.floor(t%(fs+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&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]);return Zt.box(Zt.types.mvhd,i)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let r,i;for(r=0;r<t.length;r++)i=t[r].flags,n[r+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return Zt.box(Zt.types.sdtp,n)}static stbl(e){return Zt.box(Zt.types.stbl,Zt.stsd(e),Zt.box(Zt.types.stts,Zt.STTS),Zt.box(Zt.types.stsc,Zt.STSC),Zt.box(Zt.types.stsz,Zt.STSZ),Zt.box(Zt.types.stco,Zt.STCO))}static avc1(e){let t=[],n=[],r,i,s;for(r=0;r<e.sps.length;r++)i=e.sps[r],s=i.byteLength,t.push(s>>>8&255),t.push(s&255),t=t.concat(Array.prototype.slice.call(i));for(r=0;r<e.pps.length;r++)i=e.pps[r],s=i.byteLength,n.push(s>>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(i));const l=Zt.box(Zt.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(n))),c=e.width,u=e.height,f=e.pixelRatio[0],h=e.pixelRatio[1];return Zt.box(Zt.types.avc1,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,c>>8&255,c&255,u>>8&255,u&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l,Zt.box(Zt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Zt.box(Zt.types.pasp,new Uint8Array([f>>24,f>>16&255,f>>8&255,f&255,h>>24,h>>16&255,h>>8&255,h&255])))}static esds(e){const t=e.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return Zt.box(Zt.types.mp4a,Zt.audioStsd(e),Zt.box(Zt.types.esds,Zt.esds(e)))}static mp3(e){return Zt.box(Zt.types[".mp3"],Zt.audioStsd(e))}static ac3(e){return Zt.box(Zt.types["ac-3"],Zt.audioStsd(e),Zt.box(Zt.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return Zt.box(Zt.types.stsd,Zt.STSD,Zt.mp4a(e));if(t==="ac3"&&e.config)return Zt.box(Zt.types.stsd,Zt.STSD,Zt.ac3(e));if(t==="mp3"&&e.codec==="mp3")return Zt.box(Zt.types.stsd,Zt.STSD,Zt.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return Zt.box(Zt.types.stsd,Zt.STSD,Zt.avc1(e));if(t==="hevc"&&e.vps)return Zt.box(Zt.types.stsd,Zt.STSD,Zt.hvc1(e))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){const t=e.id,n=(e.duration||0)*(e.timescale||0),r=e.width||0,i=e.height||0,s=Math.floor(n/(fs+1)),l=Math.floor(n%(fs+1));return Zt.box(Zt.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,l>>24,l>>16&255,l>>8&255,l&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,r>>8&255,r&255,0,0,i>>8&255,i&255,0,0]))}static traf(e,t){const n=Zt.sdtp(e),r=e.id,i=Math.floor(t/(fs+1)),s=Math.floor(t%(fs+1));return Zt.box(Zt.types.traf,Zt.box(Zt.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),Zt.box(Zt.types.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,s>>24,s>>16&255,s>>8&255,s&255])),Zt.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,Zt.box(Zt.types.trak,Zt.tkhd(e),Zt.mdia(e))}static trex(e){const t=e.id;return Zt.box(Zt.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const n=e.samples||[],r=n.length,i=12+16*r,s=new Uint8Array(i);let l,c,u,f,h,A;for(t+=8+i,s.set([e.type==="video"?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),l=0;l<r;l++)c=n[l],u=c.duration,f=c.size,h=c.flags,A=c.cts,s.set([u>>>24&255,u>>>16&255,u>>>8&255,u&255,f>>>24&255,f>>>16&255,f>>>8&255,f&255,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,h.degradPrio&61440,h.degradPrio&15,A>>>24&255,A>>>16&255,A>>>8&255,A&255],12+16*l);return Zt.box(Zt.types.trun,s)}static initSegment(e){Zt.types||Zt.init();const t=Zt.moov(e);return at(Zt.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],r=4,i=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),r-1|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]);let s=i.length;for(let D=0;D<n.length;D+=1){s+=3;for(let X=0;X<n[D].length;X+=1)s+=2+n[D][X].length}const l=new Uint8Array(s);l.set(i,0),s=i.length;const c=n.length-1;for(let D=0;D<n.length;D+=1){l.set(new Uint8Array([32+D|(D===c?128:0),0,n[D].length]),s),s+=3;for(let X=0;X<n[D].length;X+=1)l.set(new Uint8Array([n[D][X].length>>8,n[D][X].length&255]),s),s+=2,l.set(n[D][X],s),s+=n[D][X].length}const u=Zt.box(Zt.types.hvcC,l),f=e.width,h=e.height,A=e.pixelRatio[0],C=e.pixelRatio[1];return Zt.box(Zt.types.hvc1,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,f>>8&255,f&255,h>>8&255,h&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),u,Zt.box(Zt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Zt.box(Zt.types.pasp,new Uint8Array([A>>24,A>>16&255,A>>8&255,A&255,C>>24,C>>16&255,C>>8&255,C&255])))}}Zt.types=void 0,Zt.HDLR_TYPES=void 0,Zt.STTS=void 0,Zt.STSC=void 0,Zt.STCO=void 0,Zt.STSZ=void 0,Zt.VMHD=void 0,Zt.SMHD=void 0,Zt.STSD=void 0,Zt.FTYP=void 0,Zt.DINF=void 0;const oo=9e4;function xa(a,e,t=1,n=!1){const r=a*e*t;return n?Math.round(r):r}function Ul(a,e,t=1,n=!1){return xa(a,e,1/t,n)}function Zs(a,e=!1){return xa(a,1e3,1/oo,e)}function Zl(a,e=1){return xa(a,oo,1/e)}const Kl=10*1e3,zl=1024,jl=1152,Gl=1536;let Ds=null,Sa=null;function lo(a,e,t,n){return{duration:e,size:t,cts:n,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:a?2:1,isNonSync:a?0:1}}}class na{constructor(e,t,n,r){if(this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.ISGenerated=!1,Ds===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ds=s?parseInt(s[1]):0}if(Sa===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);Sa=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,r=e.reduce((i,s)=>{let l=s.pts,c=l-i;return c<-4294967296&&(t=!0,l=Di(l,n),c=l-i),c>0?i:l},n);return t&&this.logger.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,l,c){let u,f,h,A,C,D,X=i,H=i;const Ae=e.pid>-1,Qe=t.pid>-1,Ke=t.samples.length,bt=e.samples.length>0,St=l&&Ke>0||Ke>1;if((!Ae||bt)&&(!Qe||St)||this.ISGenerated||l){if(this.ISGenerated){var wt,Qt,un,Nt;const vr=this.videoTrackConfig;(vr&&(t.width!==vr.width||t.height!==vr.height||((wt=t.pixelRatio)==null?void 0:wt[0])!==((Qt=vr.pixelRatio)==null?void 0:Qt[0])||((un=t.pixelRatio)==null?void 0:un[1])!==((Nt=vr.pixelRatio)==null?void 0:Nt[1]))||!vr&&St||this.nextAudioPts===null&&bt)&&this.resetInitSegment()}this.ISGenerated||(h=this.generateIS(e,t,i,s));const In=this.isVideoContiguous;let Hn=-1,kr;if(St&&(Hn=Wl(t.samples),!In&&this.config.forceKeyFrameOnDiscontinuity))if(D=!0,Hn>0){this.logger.warn(`[mp4-remuxer]: Dropped ${Hn} out of ${Ke} video samples due to a missing keyframe`);const vr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(Hn),t.dropped+=Hn,H+=(t.samples[0].pts-vr)/t.inputTimeScale,kr=H}else Hn===-1&&(this.logger.warn(`[mp4-remuxer]: No keyframe found out of ${Ke} video samples`),D=!1);if(this.ISGenerated){if(bt&&St){const vr=this.getVideoStartPts(t.samples),sr=(Di(e.samples[0].pts,vr)-vr)/t.inputTimeScale;X+=Math.max(0,sr),H+=Math.max(0,-sr)}if(bt){if(e.samplerate||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),h=this.generateIS(e,t,i,s)),f=this.remuxAudio(e,X,this.isAudioContiguous,s,Qe||St||c===le.AUDIO?H:void 0),St){const vr=f?f.endPTS-f.startPTS:0;t.inputTimeScale||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),h=this.generateIS(e,t,i,s)),u=this.remuxVideo(t,H,In,vr)}}else St&&(u=this.remuxVideo(t,H,In,0));u&&(u.firstKeyFrame=Hn,u.independent=Hn!==-1,u.firstKeyFramePTS=kr)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(C=uo(n,i,this._initPTS,this._initDTS)),r.samples.length&&(A=co(r,i,this._initPTS))),{audio:f,video:u,initSegment:h,independent:D,text:A,id3:C}}generateIS(e,t,n,r){const i=e.samples,s=t.samples,l=this.typeSupported,c={},u=this._initPTS;let f=!u||r,h="audio/mp4",A,C,D;if(f&&(A=C=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":l.mpeg?(h="audio/mpeg",e.codec=""):l.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}c.audio={id:"audio",container:h,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&l.mpeg?new Uint8Array(0):Zt.initSegment([e]),metadata:{channelCount:e.channelCount}},f&&(D=e.inputTimeScale,!u||D!==u.timescale?A=C=i[0].pts-Math.round(D*n):f=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,c.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:Zt.initSegment([t]),metadata:{width:t.width,height:t.height}},f)if(D=t.inputTimeScale,!u||D!==u.timescale){const X=this.getVideoStartPts(s),H=Math.round(D*n);C=Math.min(C,Di(s[0].dts,X)-H),A=Math.min(A,X-H)}else f=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(c).length)return this.ISGenerated=!0,f?(this._initPTS={baseTime:A,timescale:D},this._initDTS={baseTime:C,timescale:D}):A=D=void 0,{tracks:c,initPTS:A,timescale:D}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,l=[],c=s.length,u=this._initPTS;let f=this.nextAvcDts,h=8,A=this.videoSampleDuration,C,D,X=Number.POSITIVE_INFINITY,H=Number.NEGATIVE_INFINITY,Ae=!1;if(!n||f===null){const kn=t*i,Bn=s[0].pts-Di(s[0].dts,s[0].pts);Ds&&f!==null&&Math.abs(kn-Bn-f)<15e3?n=!0:f=kn-Bn}const Qe=u.baseTime*i/u.timescale;for(let kn=0;kn<c;kn++){const Bn=s[kn];Bn.pts=Di(Bn.pts-Qe,f),Bn.dts=Di(Bn.dts-Qe,f),Bn.dts<s[kn>0?kn-1:kn].dts&&(Ae=!0)}Ae&&s.sort(function(kn,Bn){const Tr=kn.dts-Bn.dts,xr=kn.pts-Bn.pts;return Tr||xr}),C=s[0].dts,D=s[s.length-1].dts;const Ke=D-C,bt=Ke?Math.round(Ke/(c-1)):A||e.inputTimeScale/30;if(n){const kn=C-f,Bn=kn>bt,Tr=kn<-1;if((Bn||Tr)&&(Bn?this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Zs(kn,!0)} ms (${kn}dts) hole between fragments detected at ${t.toFixed(3)}`):this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Zs(-kn,!0)} ms (${kn}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Tr||f>=s[0].pts||Ds)){C=f;const xr=s[0].pts-kn;if(Bn)s[0].dts=C,s[0].pts=xr;else{let Ir=!0;for(let Fr=0;Fr<s.length&&!(s[Fr].dts>xr&&Ir);Fr++){const zr=s[Fr].pts;if(s[Fr].dts-=kn,s[Fr].pts-=kn,Fr<s.length-1){const Yr=s[Fr+1].pts,gi=s[Fr].pts,xi=Yr<=gi,ms=Yr<=zr;Ir=xi==ms}}}this.logger.log(`Video: Initial PTS/DTS adjusted: ${Zs(xr,!0)}/${Zs(C,!0)}, delta: ${Zs(kn,!0)} ms`)}}C=Math.max(0,C);let St=0,nn=0,wt=C;for(let kn=0;kn<c;kn++){const Bn=s[kn],Tr=Bn.units,xr=Tr.length;let Ir=0;for(let Fr=0;Fr<xr;Fr++)Ir+=Tr[Fr].data.length;nn+=Ir,St+=xr,Bn.length=Ir,Bn.dts<wt?(Bn.dts=wt,wt+=bt/4|0||1):wt=Bn.dts,X=Math.min(Bn.pts,X),H=Math.max(Bn.pts,H)}D=s[c-1].dts;const Qt=nn+4*St+8;let un;try{un=new Uint8Array(Qt)}catch(kn){this.observer.emit(d.ERROR,d.ERROR,{type:me.MUX_ERROR,details:O.REMUX_ALLOC_ERROR,fatal:!1,error:kn,bytes:Qt,reason:`fail allocating video mdat ${Qt}`});return}const Nt=new DataView(un.buffer);Nt.setUint32(0,Qt),un.set(Zt.types.mdat,4);let In=!1,Hn=Number.POSITIVE_INFINITY,kr=Number.POSITIVE_INFINITY,vr=Number.NEGATIVE_INFINITY,fr=Number.NEGATIVE_INFINITY;for(let kn=0;kn<c;kn++){const Bn=s[kn],Tr=Bn.units;let xr=0;for(let zr=0,Yr=Tr.length;zr<Yr;zr++){const gi=Tr[zr],xi=gi.data,ms=gi.data.byteLength;Nt.setUint32(h,ms),h+=4,un.set(xi,h),h+=ms,xr+=4+ms}let Ir;if(kn<c-1)A=s[kn+1].dts-Bn.dts,Ir=s[kn+1].pts-Bn.pts;else{const zr=this.config,Yr=kn>0?Bn.dts-s[kn-1].dts:bt;if(Ir=kn>0?Bn.pts-s[kn-1].pts:bt,zr.stretchShortVideoTrack&&this.nextAudioPts!==null){const gi=Math.floor(zr.maxBufferHole*i),xi=(r?X+r*i:this.nextAudioPts)-Bn.pts;xi>gi?(A=xi-Yr,A<0?A=Yr:In=!0,this.logger.log(`[mp4-remuxer]: It is approximately ${xi/90} ms to the next segment; using duration ${A/90} ms for the last video frame.`)):A=Yr}else A=Yr}const Fr=Math.round(Bn.pts-Bn.dts);Hn=Math.min(Hn,A),vr=Math.max(vr,A),kr=Math.min(kr,Ir),fr=Math.max(fr,Ir),l.push(lo(Bn.key,A,xr,Fr))}if(l.length){if(Ds){if(Ds<70){const kn=l[0].flags;kn.dependsOn=2,kn.isNonSync=0}}else if(Sa&&fr-kr<vr-Hn&&bt/vr<.025&&l[0].cts===0){this.logger.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let kn=C;for(let Bn=0,Tr=l.length;Bn<Tr;Bn++){const xr=kn+l[Bn].duration,Ir=kn+l[Bn].cts;if(Bn<Tr-1){const Fr=xr+l[Bn+1].cts;l[Bn].duration=Fr-Ir}else l[Bn].duration=Bn?l[Bn-1].duration:bt;l[Bn].cts=0,kn=xr}}}A=In||!A?bt:A,this.nextAvcDts=f=D+A,this.videoSampleDuration=A,this.isVideoContiguous=!0;const ur={data1:Zt.moof(e.sequenceNumber++,C,m(e,{samples:l})),data2:un,startPTS:X/i,endPTS:(H+A)/i,startDTS:C/i,endDTS:f/i,type:"video",hasAudio:!1,hasVideo:!0,nb:l.length,dropped:e.dropped};return e.samples=[],e.dropped=0,ur}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return jl;case"ac3":return Gl;default:return zl}}remuxAudio(e,t,n,r,i){const s=e.inputTimeScale,l=e.samplerate?e.samplerate:s,c=s/l,u=this.getSamplesPerFrame(e),f=u*c,h=this._initPTS,A=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,C=[],D=i!==void 0;let X=e.samples,H=A?0:8,Ae=this.nextAudioPts||-1;const Qe=t*s,Ke=h.baseTime*s/h.timescale;if(this.isAudioContiguous=n=n||X.length&&Ae>0&&(r&&Math.abs(Qe-Ae)<9e3||Math.abs(Di(X[0].pts-Ke,Qe)-Ae)<20*f),X.forEach(function(sr){sr.pts=Di(sr.pts-Ke,Qe)}),!n||Ae<0){if(X=X.filter(sr=>sr.pts>=0),!X.length)return;i===0?Ae=0:r&&!D?Ae=Math.max(0,Qe):Ae=X[0].pts}if(e.segmentCodec==="aac"){const sr=this.config.maxAudioFramesDrift;for(let hr=0,ur=Ae;hr<X.length;hr++){const kn=X[hr],Bn=kn.pts,Tr=Bn-ur,xr=Math.abs(1e3*Tr/s);if(Tr<=-sr*f&&D)hr===0&&(this.logger.warn(`Audio frame @ ${(Bn/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*Tr/s)} ms.`),this.nextAudioPts=Ae=ur=Bn);else if(Tr>=sr*f&&xr<Kl&&D){let Ir=Math.round(Tr/f);ur=Bn-Ir*f,ur<0&&(Ir--,ur+=f),hr===0&&(this.nextAudioPts=Ae=ur),this.logger.warn(`[mp4-remuxer]: Injecting ${Ir} audio frame @ ${(ur/s).toFixed(3)}s due to ${Math.round(1e3*Tr/s)} ms gap.`);for(let Fr=0;Fr<Ir;Fr++){const zr=Math.max(ur,0);let Yr=Bl.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);Yr||(this.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Yr=kn.unit.subarray()),X.splice(hr,0,{unit:Yr,pts:zr}),ur+=f,hr++}}kn.pts=ur,ur+=f}}let bt=null,St=null,nn,wt=0,Qt=X.length;for(;Qt--;)wt+=X[Qt].unit.byteLength;for(let sr=0,hr=X.length;sr<hr;sr++){const ur=X[sr],kn=ur.unit;let Bn=ur.pts;if(St!==null){const xr=C[sr-1];xr.duration=Math.round((Bn-St)/c)}else if(n&&e.segmentCodec==="aac"&&(Bn=Ae),bt=Bn,wt>0){wt+=H;try{nn=new Uint8Array(wt)}catch(xr){this.observer.emit(d.ERROR,d.ERROR,{type:me.MUX_ERROR,details:O.REMUX_ALLOC_ERROR,fatal:!1,error:xr,bytes:wt,reason:`fail allocating audio mdat ${wt}`});return}A||(new DataView(nn.buffer).setUint32(0,wt),nn.set(Zt.types.mdat,4))}else return;nn.set(kn,H);const Tr=kn.byteLength;H+=Tr,C.push(lo(!0,u,Tr,0)),St=Bn}const un=C.length;if(!un)return;const Nt=C[C.length-1];this.nextAudioPts=Ae=St+c*Nt.duration;const In=A?new Uint8Array(0):Zt.moof(e.sequenceNumber++,bt/c,m({},e,{samples:C}));e.samples=[];const Hn=bt/s,kr=Ae/s,fr={data1:In,data2:nn,startPTS:Hn,endPTS:kr,startDTS:Hn,endDTS:kr,type:"audio",hasAudio:!0,hasVideo:!1,nb:un};return this.isAudioContiguous=!0,fr}}function Di(a,e){let t;if(e===null)return a;for(e<a?t=-8589934592:t=8589934592;Math.abs(a-e)>4294967296;)a+=t;return a}function Wl(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function uo(a,e,t,n){const r=a.samples.length;if(!r)return;const i=a.inputTimeScale;for(let l=0;l<r;l++){const c=a.samples[l];c.pts=Di(c.pts-t.baseTime*i/t.timescale,e*i)/i,c.dts=Di(c.dts-n.baseTime*i/n.timescale,e*i)/i}const s=a.samples;return a.samples=[],{samples:s}}function co(a,e,t){const n=a.samples.length;if(!n)return;const r=a.inputTimeScale;for(let s=0;s<n;s++){const l=a.samples[s];l.pts=Di(l.pts-t.baseTime*r/t.timescale,e*r)/r}a.samples.sort((s,l)=>s.pts-l.pts);const i=a.samples;return a.samples=[],{samples:i}}class Hl{constructor(e,t,n,r){this.logger=void 0,this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.logger=r}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(Y(e,r)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:n}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const r=this.initData=Ge(e);r.audio&&(t=fo(r.audio,v.AUDIO)),r.video&&(n=fo(r.video,v.VIDEO));const i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:r.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?i.video={container:"video/mp4",codec:n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:this.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,n,r,i,s){var l,c;let{initPTS:u,lastEndTime:f}=this;const h={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};p(f)||(f=this.lastEndTime=i||0);const A=t.samples;if(!(A!=null&&A.length))return h;const C={initPTS:void 0,timescale:1};let D=this.initData;if((l=D)!=null&&l.length||(this.generateInitSegment(A),D=this.initData),!((c=D)!=null&&c.length))return this.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),h;this.emitInitSegment&&(C.tracks=this.initTracks,this.emitInitSegment=!1);const X=xe(A,D),H=Te(D,A),Ae=H===null?i:H;(s||!u)&&(Vl(u,Ae,i,X)||C.timescale!==u.timescale)&&(C.initPTS=Ae-i,u&&u.timescale===1&&this.logger.warn(`Adjusting initPTS @${i} from ${u.baseTime/u.timescale} to ${C.initPTS}`),this.initPTS=u={baseTime:C.initPTS,timescale:1});const Qe=e?Ae-u.baseTime/u.timescale:f,Ke=Qe+X;Ze(D,A,u.baseTime/u.timescale),X>0?this.lastEndTime=Ke:(this.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const bt=!!D.audio,St=!!D.video;let nn="";bt&&(nn+="audio"),St&&(nn+="video");const wt={data1:A,startPTS:Qe,startDTS:Qe,endPTS:Ke,endDTS:Ke,type:nn,hasAudio:bt,hasVideo:St,nb:1,dropped:0};return h.audio=wt.type==="audio"?wt:void 0,h.video=wt.type!=="audio"?wt:void 0,h.initSegment=C,h.id3=uo(n,i,u,u),r.samples.length&&(h.text=co(r,i,u)),h}}function Vl(a,e,t,n){if(a===null)return!0;const r=Math.max(n,1),i=e-a.baseTime/a.timescale;return Math.abs(i-t)>r}function fo(a,e){const t=a==null?void 0:a.codec;return t&&t.length>4?t:e===v.AUDIO?t==="ec-3"||t==="ac-3"||t==="alac"?t:t==="fLaC"||t==="Opus"?It(t,!1):(W.warn(`Unhandled audio codec "${t}" in mp4 MAP`),t||"mp4a"):(W.warn(`Unhandled video codec "${t}" in mp4 MAP`),t||"avc1")}let qi;try{qi=self.performance.now.bind(self.performance)}catch(a){qi=Date.now}const ra=[{demux:Nl,remux:Hl},{demux:ds,remux:na},{demux:Ll,remux:na},{demux:kl,remux:na}];ra.splice(2,0,{demux:Il,remux:na});class ho{constructor(e,t,n,r,i,s){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.id=i,this.logger=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const i=n.transmuxing;i.executeStart=qi();let s=new Uint8Array(e);const{currentTransmuxState:l,transmuxConfig:c}=this;r&&(this.currentTransmuxState=r);const{contiguous:u,discontinuity:f,trackSwitch:h,accurateTimeOffset:A,timeOffset:C,initSegmentChange:D}=r||l,{audioCodec:X,videoCodec:H,defaultInitPts:Ae,duration:Qe,initSegmentData:Ke}=c,bt=Yl(s,t);if(bt&&Kr(bt.method)){const Qt=this.getDecrypter(),un=Ur(bt.method);if(Qt.isSync()){let Nt=Qt.softwareDecrypt(s,bt.key.buffer,bt.iv.buffer,un);if(n.part>-1){const Hn=Qt.flush();Nt=Hn&&Hn.buffer}if(!Nt)return i.executeEnd=qi(),wa(n);s=new Uint8Array(Nt)}else return this.asyncResult=!0,this.decryptionPromise=Qt.webCryptoDecrypt(s,bt.key.buffer,bt.iv.buffer,un).then(Nt=>{const In=this.push(Nt,null,n);return this.decryptionPromise=null,In}),this.decryptionPromise}const St=this.needsProbing(f,h);if(St){const Qt=this.configureTransmuxer(s);if(Qt)return this.logger.warn(`[transmuxer] ${Qt.message}`),this.observer.emit(d.ERROR,d.ERROR,{type:me.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,fatal:!1,error:Qt,reason:Qt.message}),i.executeEnd=qi(),wa(n)}(f||h||D||St)&&this.resetInitSegment(Ke,X,H,Qe,t),(f||D||St)&&this.resetInitialTimestamp(Ae),u||this.resetContiguity();const nn=this.transmux(s,bt,C,A,n);this.asyncResult=Ks(nn);const wt=this.currentTransmuxState;return wt.contiguous=!0,wt.discontinuity=!1,wt.trackSwitch=!1,i.executeEnd=qi(),nn}flush(e){const t=e.transmuxing;t.executeStart=qi();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then(()=>this.flush(e));const s=[],{timeOffset:l}=r;if(n){const h=n.flush();h&&s.push(this.push(h.buffer,null,e))}const{demuxer:c,remuxer:u}=this;if(!c||!u){t.executeEnd=qi();const h=[wa(e)];return this.asyncResult?Promise.resolve(h):h}const f=c.flush(l);return Ks(f)?(this.asyncResult=!0,f.then(h=>(this.flushRemux(s,h,e),s))):(this.flushRemux(s,f,e),this.asyncResult?Promise.resolve(s):s)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:s,textTrack:l}=t,{accurateTimeOffset:c,timeOffset:u}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===le.MAIN?"level":"track"} ${n.level}`);const f=this.remuxer.remux(r,i,s,l,u,c,!0,this.id);e.push({remuxResult:f,chunkMeta:n}),n.transmuxing.executeEnd=qi()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,r,i){const{demuxer:s,remuxer:l}=this;!s||!l||(s.resetInitSegment(e,t,n,r),l.resetInitSegment(e,t,n,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,i){let s;return t&&t.method==="SAMPLE-AES"?s=this.transmuxSampleAes(e,t,n,r,i):s=this.transmuxUnencrypted(e,n,r,i),s}transmuxUnencrypted(e,t,n,r){const{audioTrack:i,videoTrack:s,id3Track:l,textTrack:c}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,l,c,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){return this.demuxer.demuxSampleAes(e,t,n).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,n,r,!1,this.id),chunkMeta:i}))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r}=this;let i;for(let h=0,A=ra.length;h<A;h++){var s;if((s=ra[h].demux)!=null&&s.probe(e,this.logger)){i=ra[h];break}}if(!i)return new Error("Failed to find demuxer by probing fragment data");const l=this.demuxer,c=this.remuxer,u=i.remux,f=i.demux;(!c||!(c instanceof u))&&(this.remuxer=new u(n,t,r,this.logger)),(!l||!(l instanceof f))&&(this.demuxer=new f(n,t,r,this.logger),this.probe=f.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new Rn(this.config)),e}}function Yl(a,e){let t=null;return a.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const wa=a=>({remuxResult:{},chunkMeta:a});function Ks(a){return"then"in a&&a.then instanceof Function}class Xl{constructor(e,t,n,r,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=r,this.defaultInitPts=i||null}}class Ql{constructor(e,t,n,r,i,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=s}}let po=0;class mo{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=po++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=c=>{const u=c.data,f=this.hls;if(!(!f||!(u!=null&&u.event)||u.instanceNo!==this.instanceNo))switch(u.event){case"init":{var h;const A=(h=this.workerContext)==null?void 0:h.objectURL;A&&self.URL.revokeObjectURL(A);break}case"transmuxComplete":{this.handleTransmuxComplete(u.data);break}case"flush":{this.onFlush(u.data);break}case"workerLog":{f.logger[u.data.logType]&&f.logger[u.data.logType](u.data.message);break}default:{u.data=u.data||{},u.data.frag=this.frag,u.data.part=this.part,u.data.id=this.id,f.trigger(u.event,u.data);break}}},this.onWorkerError=c=>{if(!this.hls)return;const u=new Error(`${c.message} (${c.filename}:${c.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(d.ERROR,{type:me.OTHER_ERROR,details:O.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:u})};const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const s=(c,u)=>{u=u||{},u.frag=this.frag||void 0,c===d.ERROR&&(u=u,u.parent=this.id,u.part=this.part,this.error=u.error),this.hls.trigger(c,u)};this.observer=new Ki,this.observer.on(d.FRAG_DECRYPTED,s),this.observer.on(d.ERROR,s);const l=j(i.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const c=this.hls.logger;if(i.workerPath||Vs()){try{i.workerPath?(c.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=pa(i.workerPath)):(c.log(`injecting Web Worker for "${t}"`),this.workerContext=Ys());const{worker:f}=this.workerContext;f.addEventListener("message",this.onWorkerMessage),f.addEventListener("error",this.onWorkerError),f.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:l,id:t,config:Ct(i)})}catch(f){c.warn(`Error setting up "${t}" Web Worker, fallback to inline`,f),this.terminateWorker(),this.error=null,this.transmuxer=new ho(this.observer,l,i,"",t,e.logger)}return}}this.transmuxer=new ho(this.observer,l,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=po++;const t=this.hls.config,n=j(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:Ct(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),ma(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,n,r,i,s,l,c,u,f){var h,A;u.transmuxing.start=self.performance.now();const{instanceNo:C,transmuxer:D}=this,X=s?s.start:i.start,H=i.decryptdata,Ae=this.frag,Qe=!(Ae&&i.cc===Ae.cc),Ke=!(Ae&&u.level===Ae.level),bt=Ae?u.sn-Ae.sn:-1,St=this.part?u.part-this.part.index:-1,nn=bt===0&&u.id>1&&u.id===(Ae==null?void 0:Ae.stats.chunkCount),wt=!Ke&&(bt===1||bt===0&&(St===1||nn&&St<=0)),Qt=self.performance.now();(Ke||bt||i.stats.parsing.start===0)&&(i.stats.parsing.start=Qt),s&&(St||!wt)&&(s.stats.parsing.start=Qt);const un=!(Ae&&((h=i.initSegment)==null?void 0:h.url)===((A=Ae.initSegment)==null?void 0:A.url)),Nt=new Ql(Qe,wt,c,Ke,X,un);if(!wt||Qe||un){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${u.sn}${u.part>-1?" part: "+u.part:""} ${this.id===le.MAIN?"level":"track"}: ${u.level} id: ${u.id}
|
|
discontinuity: ${Qe}
|
|
trackSwitch: ${Ke}
|
|
contiguous: ${wt}
|
|
accurateTimeOffset: ${c}
|
|
timeOffset: ${X}
|
|
initSegmentChange: ${un}`);const In=new Xl(n,r,t,l,f);this.configureTransmuxer(In)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:C,cmd:"demux",data:e,decryptdata:H,chunkMeta:u,state:Nt},e instanceof ArrayBuffer?[e]:[]);else if(D){const In=D.push(e,H,u,Nt);Ks(In)?In.then(Hn=>{this.handleTransmuxComplete(Hn)}).catch(Hn=>{this.transmuxerError(Hn,u,"transmuxer-interface push error")}):this.handleTransmuxComplete(In)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(n){const r=n.flush(e);Ks(r)?r.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")}):this.handleFlushResult(r,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(d.ERROR,{type:me.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(n=>{this.handleTransmuxComplete(n)}),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const go=100;class Jl extends ni{constructor(e,t,n){super(e,t,n,"audio-stream-controller",le.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(d.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(d.BUFFER_RESET,this.onBufferReset,this),e.on(d.BUFFER_CREATED,this.onBufferCreated,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(d.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(d.FRAG_LOADING,this.onFragLoading,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(d.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(d.BUFFER_RESET,this.onBufferReset,this),e.off(d.BUFFER_CREATED,this.onBufferCreated,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(d.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(d.FRAG_LOADING,this.onFragLoading,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){if(n===le.MAIN){const s=t.cc,l=this.fragCurrent;if(this.initPTS[s]={baseTime:r,timescale:i},this.log(`InitPTS for cc: ${s} found from main: ${r}/${i}`),this.mainAnchor=t,this.state===on.WAITING_INIT_PTS){const c=this.waitingData;(!c&&!this.loadingParts||c&&c.frag.cc!==s)&&(this.nextLoadPosition=this.findSyncFrag(t).start),this.tick()}else!this.hls.hasEnoughToStart&&l&&l.cc!==s?(this.startFragRequested=!1,this.nextLoadPosition=this.findSyncFrag(t).start,l.abortRequests(),this.resetLoadingState()):this.state===on.IDLE&&this.tick()}}findSyncFrag(e){const t=this.getLevelDetails(),n=e.cc;return Qn(t,n,e)||t&&On(t.fragments,n)||e}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=on.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(go),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=on.IDLE):this.state=on.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case on.IDLE:this.doTickIdle();break;case on.WAITING_TRACK:{const{levels:t,trackId:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&!this.waitForLive(r)){if(this.waitForCdnTuneIn(i))break;this.state=on.WAITING_INIT_PTS}break}case on.FRAG_LOADING_WAITING_RETRY:{var e;const t=performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,trackId:i}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((r==null?void 0:r[i])||null),this.state=on.IDLE}break}case on.WAITING_INIT_PTS:{const t=this.waitingData;if(t){const{frag:n,part:r,cache:i,complete:s}=t,l=this.mainAnchor;if(this.initPTS[n.cc]!==void 0){this.waitingData=null,this.state=on.FRAG_LOADING;const c=i.flush().buffer,u={frag:n,part:r,payload:c,networkDetails:null};this._handleFragmentLoadProgress(u),s&&super._handleFragmentLoadComplete(u)}else l&&l.cc!==t.frag.cc&&(this.log(`Waiting fragment cc (${n.cc}) cancelled because video is at cc ${l.cc}`),this.nextLoadPosition=this.findSyncFrag(l).start,this.clearWaitingFragment())}else this.state=on.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.state!==on.STOPPED&&(this.state=on.IDLE))}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:n,media:r,trackId:i}=this,s=t.config;if(!this.buffering||!r&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(n!=null&&n[i]))return;const l=n[i],c=l.details;if(!c||this.waitForLive(l)||this.waitForCdnTuneIn(c)){this.state=on.WAITING_TRACK,this.startFragRequested=!1;return}const u=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&u&&(this.bufferFlushed=!1,this.afterBufferFlushed(u,v.AUDIO,le.AUDIO));const f=this.getFwdBufferInfo(u,le.AUDIO);if(f===null)return;if(!this.switchingTrack&&this._streamEnded(f,c)){t.trigger(d.BUFFER_EOS,{type:"audio"}),this.state=on.ENDED;return}const h=f.len,A=t.maxBufferLength,C=c.fragments,D=C[0].start,X=this.getLoadPosition(),H=this.flushing?X:f.end;if(this.switchingTrack&&r){const Ke=X;c.PTSKnown&&Ke<D&&(f.end>D||f.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=D+.05)}if(h>=A&&!this.switchingTrack&&H<C[C.length-1].start)return;let Ae=this.getNextFragment(H,c);if(Ae&&this.isLoopLoading(Ae,H)&&(Ae=this.getNextFragmentLoopLoading(Ae,c,f,le.MAIN,A)),!Ae){this.bufferFlushed=!0;return}let Qe=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&Qe&&ce(Ae)&&!Ae.endList&&(!c.live||!this.loadingParts&&H<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(Qe)===it.OK&&(this.mainFragLoading=Qe=null),Qe&&ce(Qe))){if(Ae.start>Qe.end){const bt=this.fragmentTracker.getFragAtPos(H,le.MAIN);bt&&bt.end>Qe.end&&(Qe=bt,this.mainFragLoading={frag:bt,targetBufferTime:null})}if(Ae.start>Qe.end)return}this.loadFragment(Ae,l,H)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new dt(n))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==on.STOPPED&&(this.setInterval(go),this.state=on.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(d.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n;const{levels:r}=this,{details:i,id:s,groupId:l,track:c}=t;if(!r){this.warn(`Audio tracks reset while loading track ${s} "${c.name}" of "${l}"`);return}const u=this.mainDetails;if(!u||i.endCC>u.endCC||u.expired){this.cachedTrackLoadedData=t,this.state!==on.STOPPED&&(this.state=on.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${c.name}" of "${l}" loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const f=r[s];let h=0;if(i.live||(n=f.details)!=null&&n.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;if(f.details){var A;h=this.alignPlaylists(i,f.details,(A=this.levelLastLoaded)==null?void 0:A.details)}i.alignedSliding||(Vr(i,u),i.alignedSliding||Mr(i,u),h=i.fragmentStart)}f.details=i,this.levelLastLoaded=f,this.startFragRequested||this.setStartPosition(u,h),this.hls.trigger(d.AUDIO_TRACK_UPDATED,{details:i,id:s,groupId:t.groupId}),this.state===on.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=on.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{config:s,trackId:l,levels:c}=this;if(!c){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const u=c[l];if(!u){this.warn("Audio track is undefined on fragment load progress");return}const f=u.details;if(!f){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const h=s.defaultAudioCodec||u.audioCodec||"mp4a.40.2";let A=this.transmuxer;A||(A=this.transmuxer=new mo(this.hls,le.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const C=this.initPTS[n.cc],D=(t=n.initSegment)==null?void 0:t.data;if(C!==void 0){const H=r?r.index:-1,Ae=H!==-1,Qe=new ar(n.level,n.sn,n.stats.chunkCount,i.byteLength,H,Ae);A.push(i,D,h,"",n,r,f.totalduration,!1,Qe,C)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${f.startSN} ,${f.endSN}],track ${l}`);const{cache:X}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new ss,complete:!1};X.push(new Uint8Array(i)),this.state!==on.STOPPED&&(this.state=on.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===le.MAIN&&ce(t.frag)&&(this.mainFragLoading=t,this.state===on.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==le.AUDIO){!this.audioOnly&&n.type===le.MAIN&&!n.elementaryStreams.video&&!n.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(ce(n)){this.fragPrevious=n;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(d.AUDIO_TRACK_SWITCHED,x({},i)))}this.fragBufferedComplete(n,r),this.media&&this.tick()}onError(e,t){var n;if(t.fatal){this.state=on.ERROR;return}switch(t.details){case O.FRAG_GAP:case O.FRAG_PARSING_ERROR:case O.FRAG_DECRYPT_ERROR:case O.FRAG_LOAD_ERROR:case O.FRAG_LOAD_TIMEOUT:case O.KEY_LOAD_ERROR:case O.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(le.AUDIO,t);break;case O.AUDIO_TRACK_LOAD_ERROR:case O.AUDIO_TRACK_LOAD_TIMEOUT:case O.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===on.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===ge.AUDIO_TRACK&&(this.state=on.IDLE);break;case O.BUFFER_ADD_CODEC_ERROR:case O.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.resetLoadingState();break;case O.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case O.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==v.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==v.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===on.ENDED&&(this.state=on.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,le.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:c,part:u,level:f}=l,{details:h}=f,{audio:A,text:C,id3:D,initSegment:X}=i;if(this.fragContextChanged(c)||!h){this.fragmentTracker.removeFragment(c);return}if(this.state=on.PARSING,this.switchingTrack&&A&&this.completeAudioSwitch(this.switchingTrack),X!=null&&X.tracks){const H=c.initSegment||c;this._bufferInitSegment(f,X.tracks,H,s),r.trigger(d.FRAG_PARSING_INIT_SEGMENT,{frag:H,id:n,tracks:X.tracks})}if(A){const{startPTS:H,endPTS:Ae,startDTS:Qe,endDTS:Ke}=A;u&&(u.elementaryStreams[v.AUDIO]={startPTS:H,endPTS:Ae,startDTS:Qe,endDTS:Ke}),c.setElementaryStreamInfo(v.AUDIO,H,Ae,Qe,Ke),this.bufferFragmentData(A,c,u,s)}if(D!=null&&(t=D.samples)!=null&&t.length){const H=m({id:n,frag:c,details:h},D);r.trigger(d.FRAG_PARSING_METADATA,H)}if(C){const H=m({id:n,frag:c,details:h},C);r.trigger(d.FRAG_PARSING_USERDATA,H)}}_bufferInitSegment(e,t,n,r){if(this.state!==on.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const i=t.audio;i.id=le.AUDIO;const s=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${s}/${i.codec}]`),s&&s.split(",").length===1&&(i.levelCodec=s),this.hls.trigger(d.BUFFER_CODECS,t);const l=i.initSegment;if(l!=null&&l.byteLength){const c={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:l};this.hls.trigger(d.BUFFER_APPENDING,c)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.switchingTrack||r===it.NOT_LOADED||r===it.PARTIAL){var i;if(!ce(e))this._loadInitSegment(e,t);else if((i=t.details)!=null&&i.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=on.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==t.details.fragmentStart&&Mr(t.details,s)}else super.loadFragment(e,t,n)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:l}=this.bufferedTrack;ft({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:l},e,en)||(hn(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(d.AUDIO_TRACK_SWITCHED,x({},e))}}class Aa extends V{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=t==null?void 0:t.renditionReports;if(r){let i=-1;for(let s=0;s<r.length;s++){const l=r[s];let c;try{c=new self.URL(l.URI,t.url).href}catch(u){this.warn(`Could not construct new URL for Rendition Report: ${u}`),c=l.URI||""}if(c===e){i=s;break}else c===e.substring(0,c.length)&&(i=s)}if(i!==-1){const s=r[i],l=parseInt(s["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let c=parseInt(s["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const f=Math.min(t.age-t.partTarget,t.targetduration);c>=0&&f>t.partTarget&&(c+=1)}const u=n&&Ve(n);return new et(l,c>=0?c:void 0,u)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(n){this.warn(`Could not construct new URL with HLS Delivery Directives: ${n}`)}return e}playlistLoaded(e,t,n){const{details:r,stats:i}=t,s=self.performance.now(),l=i.loading.first?Math.max(0,s-i.loading.first):0;r.advancedDateTime=Date.now()-l;const c=this.hls.config.timelineOffset;if(c!==r.appliedTimelineOffset){const f=Math.max(c||0,0);r.appliedTimelineOffset=f,r.fragments.forEach(h=>{h.start=h.playlistOffset+f})}if(r.live||n!=null&&n.live){const f="levelInfo"in t?t.levelInfo:t.track;if(r.reloaded(n),n&&r.fragments.length>0){si(n,r);const Qe=r.playlistParsingError;if(Qe){this.warn(Qe);const Ke=this.hls;if(!Ke.config.ignorePlaylistParsingErrors){var u;const{networkDetails:bt}=t;Ke.trigger(d.ERROR,{type:me.NETWORK_ERROR,details:O.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:Qe,reason:Qe.message,level:t.level||void 0,parent:(u=r.fragments[0])==null?void 0:u.type,networkDetails:bt,stats:i});return}r.playlistParsingError=null}}r.requestScheduled===-1&&(r.requestScheduled=i.loading.start);const h=this.hls.mainForwardBufferInfo,A=h?h.end-h.len:0,C=(r.edge-A)*1e3,D=Qr(r,C);if(r.requestScheduled+D<s?r.requestScheduled=s:r.requestScheduled+=D,this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),!this.canLoad||!r.live)return;let X,H,Ae;if(r.canBlockReload&&r.endSN&&r.advanced){const Qe=this.hls.config.lowLatencyMode,Ke=r.lastPartSn,bt=r.endSN,St=r.lastPartIndex,nn=St!==-1,wt=Ke===bt;nn?wt?(H=bt+1,Ae=Qe?0:St):(H=Ke,Ae=Qe?St+1:r.maxPartIndex):H=bt+1;const Qt=r.age,un=Qt+r.ageHeader;let Nt=Math.min(un-r.partTarget,r.targetduration*1.5);if(Nt>0){if(un>r.targetduration*3)this.log(`Playlist last advanced ${Qt.toFixed(2)}s ago. Omitting segment and part directives.`),H=void 0,Ae=void 0;else if(n!=null&&n.tuneInGoal&&un-r.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${Nt} with playlist age: ${r.age}`),Nt=0;else{const In=Math.floor(Nt/r.targetduration);if(H+=In,Ae!==void 0){const Hn=Math.round(Nt%r.targetduration/r.partTarget);Ae+=Hn}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${Qt.toFixed(2)}s goal: ${Nt} skip sn ${In} to part ${Ae}`)}r.tuneInGoal=Nt}if(X=this.getDeliveryDirectives(r,t.deliveryDirectives,H,Ae),Qe||!wt){r.requestScheduled=s,this.loadingPlaylist(f,X);return}}else(r.canBlockReload||r.canSkipUntil)&&(X=this.getDeliveryDirectives(r,t.deliveryDirectives,H,Ae));X&&H!==void 0&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(D-l*2,D/2)),this.scheduleLoading(f,X,r)}else this.clearTimer()}scheduleLoading(e,t,n){const r=n||e.details;if(!r){this.loadingPlaylist(e,t);return}const i=self.performance.now(),s=r.requestScheduled;if(i>=s){this.loadingPlaylist(e,t);return}const l=s-i;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(l)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),l)}getDeliveryDirectives(e,t,n,r){let i=Ve(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=_e.No),new et(n,r,i)}checkRetry(e){const t=e.details,n=vn(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:l}=r||{},c=!!r&&!!l&&(i===zn.RetryRequest||!r.resolved&&i===zn.SendAlternateToPenaltyBox);if(c){var u;if(s>=l.maxNumRetry)return!1;if(n&&(u=e.context)!=null&&u.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const f=je(l,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),f),this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${t}" in ${f}ms`)}e.levelRetry=!0,r.resolved=!0}return c}}function vo(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!zs(a[t].attrs,e[t].attrs))return!1;return!0}function zs(a,e,t){const n=a["STABLE-RENDITION-ID"];return n&&!t?n===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(r=>a[r]!==e[r])}function Ta(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class ql extends Aa{constructor(e){super(e,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.LEVEL_LOADING,this.onLevelLoading,this),e.on(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(d.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.LEVEL_LOADING,this.onLevelLoading,this),e.off(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(d.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(d.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Audio track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const l=s.details;s.details=t.details,this.log(`Audio track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,l)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.audioGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(l=>(r==null?void 0:r.indexOf(l))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(A=>!n||n.indexOf(A.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(A=>A.default)&&(this.selectDefaultTrack=!1),l.forEach((A,C)=>{A.id=C});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const c=this.hls.config.audioPreference;if(!i&&c){const A=qe(c,l,en);if(A>-1)i=l[A];else{const C=qe(c,this.tracks);i=this.tracks[C]}}let u=this.findTrackId(i);u===-1&&i&&(u=this.findTrackId(null));const f={audioTracks:l};this.log(`Updating audio tracks, ${l.length} track(s) found in group(s): ${n==null?void 0:n.join(",")}`),this.hls.trigger(d.AUDIO_TRACKS_UPDATED,f);const h=this.trackId;if(u!==-1&&h===-1)this.setAudioTrack(u);else if(l.length&&h===-1){var s;const A=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${l.length}`);this.warn(A.message),this.hls.trigger(d.ERROR,{type:me.MEDIA_ERROR,details:O.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:A})}}}onError(e,t){t.fatal||!t.context||t.context.type===ge.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&ft(e,r,en))return r;const i=qe(e,this.tracksInGroup,en);if(i>-1){const s=this.tracksInGroup[i];return this.setAudioTrack(i),s}else if(r){let s=t.loadLevel;s===-1&&(s=t.firstAutoLevel);const l=Wt(e,t.levels,n,s,en);if(l===-1)return null;t.nextLoadLevel=l}if(e.channels||e.audioCodec){const s=qe(e,n);if(s>-1)return n[s]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e],i=r.details&&!r.details.live;if(e===this.trackId&&r===n&&i||(this.log(`Switching to audio-track ${e} "${r.name}" lang:${r.lang} group:${r.groupId} channels:${r.channels}`),this.trackId=e,this.currentTrack=r,this.hls.trigger(d.AUDIO_TRACK_SWITCHING,x({},r)),i))return;const s=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(s)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(!(this.selectDefaultTrack&&!r.default)&&(!e||ft(e,r,en)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:c}=e;for(let u=0;u<t.length;u++){const f=t[u];if(ft({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:c},f,en))return u}for(let u=0;u<t.length;u++){const f=t[u];if(zs(e.attrs,f.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return u}for(let u=0;u<t.length;u++){const f=t[u];if(zs(e.attrs,f.attrs,["LANGUAGE"]))return u}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&hn(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,l=s==null?void 0:s.age;this.log(`Loading audio-track ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${l&&s.live?" age "+l.toFixed(1)+(s.type?" "+s.type||0:""):""} ${i}`),this.hls.trigger(d.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}}class $l{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,n){if(this.queues===null||this.tracks===null)return;const r=this.queues[t];r.push(e),r.length===1&&!n&&this.executeNext(t)}appendBlocker(e){return new Promise(t=>{const n={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,e)})}prependBlocker(e){return new Promise(t=>{if(this.queues){const n={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(n)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;const n=(t=e[0])==null?void 0:t.label;(n==="async-blocker"||n==="async-blocker-prepend")&&(e[0].execute(),e.splice(0,1))})}unblockAudio(e){if(this.queues===null)return;this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(this.queues===null||this.tracks===null)return;const t=this.queues[e];if(t.length){const r=t[0];try{r.execute()}catch(i){var n;if(r.onError(i),this.queues===null||this.tracks===null)return;const s=(n=this.tracks[e])==null?void 0:n.buffer;s!=null&&s.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues!==null&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return((t=this.queues)==null?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return e===null||t===null?"<destroyed>":`
|
|
${this.list("video")}
|
|
${this.list("audio")}
|
|
${this.list("audiovideo")}}`}list(e){var t,n;return(t=this.queues)!=null&&t[e]||(n=this.tracks)!=null&&n[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const n=(t=this.tracks)==null?void 0:t[e],r=n==null?void 0:n.buffer;return r?`SourceBuffer${r.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(e){var t;return((t=this.queues)==null?void 0:t[e].map(n=>n.label).join(", "))||""}}const yo=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,_o="HlsJsTrackRemovedError";class eu extends Error{constructor(e){super(e),this.name=_o}}class tu extends V{constructor(e,t){super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=n=>{var r;this.hls&&((r=this.mediaSource)==null?void 0:r.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=n=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=n=>{const{media:r,mediaSource:i}=this;n&&this.log("Media source opened"),!(!r||!i)&&(i.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(d.MEDIA_ATTACHED,{media:r,mediaSource:i}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:n,_objectUrl:r}=this;n!==r&&this.error(`Media element src was set while attaching MediaSource (${r} > ${n})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=ue(ne(e.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:e}=this;e.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.BUFFER_RESET,this.onBufferReset,this),e.on(d.BUFFER_APPENDING,this.onBufferAppending,this),e.on(d.BUFFER_CODECS,this.onBufferCodecs,this),e.on(d.BUFFER_EOS,this.onBufferEos,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(d.FRAG_PARSED,this.onFragParsed,this),e.on(d.FRAG_CHANGED,this.onFragChanged,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.BUFFER_RESET,this.onBufferReset,this),e.off(d.BUFFER_APPENDING,this.onBufferAppending,this),e.off(d.BUFFER_CODECS,this.onBufferCodecs,this),e.off(d.BUFFER_EOS,this.onBufferEos,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(d.FRAG_PARSED,this.onFragParsed,this),e.off(d.FRAG_CHANGED,this.onFragChanged,this),e.off(d.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const n={};if(this.operationQueue){const i=this.isUpdating();i||this.operationQueue.removeBlockers();const s=this.isQueued();(i||s)&&this.warn(`Transfering MediaSource with${s?" operations in queue":""}${i?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const r=this.transferData;return!this.sourceBufferCount&&r&&r.mediaSource===t?m(n,r.tracks):this.sourceBuffers.forEach(i=>{const[s]=i;s&&(n[s]=m({},this.tracks[s]),this.removeBuffer(s)),i[0]=i[1]=null}),{media:e,mediaSource:t,tracks:n}}initTracks(){const e={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=e,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var n;let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsTotal=r,this.log(`${r} bufferCodec event(s) expected.`),(n=this.transferData)!=null&&n.mediaSource&&this.sourceBufferCount&&r&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media,r=ne(this.appendSource);if(this.transferData=this.overrides=void 0,n&&r){const i=!!t.mediaSource;(i||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const s=this.mediaSource=t.mediaSource||new r;if(this.assignMediaSource(s),i)this._objectUrl=n.src,this.attachTransferred();else{const l=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{n.removeAttribute("src");const c=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||c&&s instanceof c,Eo(n),nu(n,l),n.load()}catch(c){n.src=l}else n.src=l}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,n;this.log(`${((t=this.transferData)==null?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${(n=e.constructor)==null?void 0:n.name}`),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const n=this.tracks,r=t.tracks,i=r?Object.keys(r):null,s=i?i.length:0,l=()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()};if(r&&i&&s){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})
|
|
required tracks: ${Ct(n,(c,u)=>c==="initSegment"?void 0:u)};
|
|
transfer tracks: ${Ct(r,(c,u)=>c==="initSegment"?void 0:u)}}`),!he(r,n)){t.mediaSource=null,t.tracks=void 0;const c=e.currentTime,u=this.details,f=Math.max(c,(u==null?void 0:u.fragments[0].start)||0);if(f-c>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${c} -> ${f}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(r)}"->"${Object.keys(n)}") start time: ${f} currentTime: ${c}`),this.onMediaDetaching(d.MEDIA_DETACHING,{}),this.onMediaAttaching(d.MEDIA_ATTACHING,t),e.currentTime=f;return}this.transferData=void 0,i.forEach(c=>{const u=c,f=r[u];if(f){const h=f.buffer;if(h){const A=this.fragmentTracker,C=f.id;if(A.hasFragments(C)||A.hasParts(C)){const H=Tn.getBuffered(h);A.detectEvictedFragments(u,H,C,null,!0)}const D=Ca(u),X=[u,h];this.sourceBuffers[D]=X,h.updating&&this.operationQueue&&this.operationQueue.prependBlocker(u),this.trackSourceBuffer(u,f)}}}),l(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),l()}get mediaSourceOpenOrEnded(){var e;const t=(e=this.mediaSource)==null?void 0:e.readyState;return t==="open"||t==="ended"}onMediaDetaching(e,t){const n=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:r,mediaSource:i,_objectUrl:s}=this;if(i){if(this.log(`media source ${n?"transferring":"detaching"}`),n)this.sourceBuffers.forEach(([l])=>{l&&this.removeBuffer(l)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const l=i.readyState==="open";try{const c=i.sourceBuffers;for(let u=c.length;u--;)l&&c[u].abort(),i.removeSourceBuffer(c[u]);l&&i.endOfStream()}catch(c){this.warn(`onMediaDetaching: ${c.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}i.removeEventListener("sourceopen",this._onMediaSourceOpen),i.removeEventListener("sourceended",this._onMediaSourceEnded),i.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(i.removeEventListener("startstreaming",this._onStartStreaming),i.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}r&&(r.removeEventListener("emptied",this._onMediaEmptied),n||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(r.removeAttribute("src"),this.appendSource&&Eo(r),r.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(d.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t;const n=(t=this.tracks[e])==null?void 0:t.buffer;if(this.removeBuffer(e),n)try{var r;(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(i){this.warn(`onBufferReset ${e}`,i)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[Ca(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new $l(this.tracks)}onBufferCodecs(e,t){const n=this.tracks,r=Object.keys(t);this.log(`BUFFER_CODECS: "${r}" (current SB count ${this.sourceBufferCount})`);const i="audiovideo"in t&&(n.audio||n.video)||n.audiovideo&&("audio"in t||"video"in t),s=!i&&this.sourceBufferCount&&this.media&&r.some(l=>!n[l]);if(i||s){this.warn(`Unsupported transition between "${Object.keys(n)}" and "${r}" SourceBuffers`);return}r.forEach(l=>{var c,u,f;const h=t[l],{id:A,codec:C,levelCodec:D,container:X,metadata:H,supplemental:Ae}=h;let Qe=n[l];const Ke=(c=this.transferData)==null||(u=c.tracks)==null?void 0:u[l],bt=Ke!=null&&Ke.buffer?Ke:Qe,St=(bt==null?void 0:bt.pendingCodec)||(bt==null?void 0:bt.codec),nn=bt==null?void 0:bt.levelCodec;Qe||(Qe=n[l]={buffer:void 0,listeners:[],codec:C,supplemental:Ae,container:X,levelCodec:D,metadata:H,id:A});const wt=fn(St,nn),Qt=wt==null?void 0:wt.replace(yo,"$1");let un=fn(C,D);const Nt=(f=un)==null?void 0:f.replace(yo,"$1");un&&wt&&Qt!==Nt&&(l.slice(0,5)==="audio"&&(un=It(un,this.appendSource)),this.log(`switching codec ${St} to ${un}`),un!==(Qe.pendingCodec||Qe.codec)&&(Qe.pendingCodec=un),Qe.container=X,this.appendChangeType(l,X,un))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&this.mediaSourceOpenOrEnded&&this.checkPendingTracks()}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((e,t)=>{const n=this.tracks[t];return e[t]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},e},{})}appendChangeType(e,t,n){const r=`${t};codecs=${n}`,i={label:`change-type=${r}`,execute:()=>{const s=this.tracks[e];if(s){const l=s.buffer;l!=null&&l.changeType&&(this.log(`changing ${e} sourceBuffer type to ${r}`),l.changeType(r),s.codec=n,s.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${e} SourceBuffer type`,s)}};this.append(i,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,r=n+e.duration*.05;if(((t=this.fragmentTracker.getAppendedFrag(n,le.MAIN))==null?void 0:t.gap)===!0)return;const s={label:"block-audio",execute:()=>{var l;const c=this.tracks.video;(this.lastVideoAppendEnd>r||c!=null&&c.buffer&&Tn.isBuffered(c.buffer,r)||((l=this.fragmentTracker.getAppendedFrag(r,le.MAIN))==null?void 0:l.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:l=>{this.warn("Error executing block-audio operation",l)}};this.blockedAudioAppend={op:s,frag:e},this.append(s,"audio",!0)}unblockAudio(){const{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){const{tracks:n}=this,{data:r,type:i,parent:s,frag:l,part:c,chunkMeta:u}=t,f=u.buffering[i],h=l.sn,A=self.performance.now();f.start=A;const C=l.stats.buffering,D=c?c.stats.buffering:null;C.start===0&&(C.start=A),D&&D.start===0&&(D.start=A);const X=n.audio;let H=!1;i==="audio"&&(X==null?void 0:X.container)==="audio/mpeg"&&(H=!this.lastMpegAudioChunk||u.id===1||this.lastMpegAudioChunk.sn!==u.sn,this.lastMpegAudioChunk=u);const Ae=this.tracks.video,Qe=Ae==null?void 0:Ae.buffer;if(Qe&&h!=="initSegment"){const St=c||l,nn=this.blockedAudioAppend;if(i==="audio"&&s!=="main"&&!this.blockedAudioAppend){const Qt=St.start+St.duration*.05,un=Qe.buffered,Nt=this.currentOp("video");!un.length&&!Nt?this.blockAudio(St):!Nt&&!Tn.isBuffered(Qe,Qt)&&this.lastVideoAppendEnd<Qt&&this.blockAudio(St)}else if(i==="video"){const wt=St.end;if(nn){const Qt=nn.frag.start;(wt>Qt||wt<this.lastVideoAppendEnd||Tn.isBuffered(Qe,Qt))&&this.unblockAudio()}this.lastVideoAppendEnd=wt}}const Ke=(c||l).start,bt={label:`append-${i}`,execute:()=>{if(f.executeStart=self.performance.now(),H){const St=this.tracks[i];if(St){const nn=St.buffer;if(nn){const wt=Ke-nn.timestampOffset;Math.abs(wt)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${Ke} (delta: ${wt}) sn: ${h})`),nn.timestampOffset=Ke)}}}this.appendExecutor(r,i)},onStart:()=>{},onComplete:()=>{const St=self.performance.now();f.executeEnd=f.end=St,C.first===0&&(C.first=St),D&&D.first===0&&(D.first=St);const nn={};this.sourceBuffers.forEach(([wt,Qt])=>{wt&&(nn[wt]=Tn.getBuffered(Qt))}),this.appendErrors[i]=0,i==="audio"||i==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(d.BUFFER_APPENDED,{type:i,frag:l,part:c,chunkMeta:u,parent:l.type,timeRanges:nn})},onError:St=>{var nn;const wt={type:me.MEDIA_ERROR,parent:l.type,details:O.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:l,part:c,chunkMeta:u,error:St,err:St,fatal:!1},Qt=(nn=this.media)==null?void 0:nn.error;if(St.code===DOMException.QUOTA_EXCEEDED_ERR)wt.details=O.BUFFER_FULL_ERROR;else if(St.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!Qt)wt.errorAction=Ye(!0);else if(St.name===_o&&this.sourceBufferCount===0)wt.errorAction=Ye(!0);else{const un=++this.appendErrors[i];this.warn(`Failed ${un}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${i}" sourceBuffer (${Qt||"no media error"})`),(un>=this.hls.config.appendErrorMaxRetry||Qt)&&(wt.fatal=!0)}this.hls.trigger(d.ERROR,wt)}};this.append(bt,i,this.isPending(this.tracks[i]))}getFlushOp(e,t,n){return this.log(`queuing "${e}" remove ${t}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(d.BUFFER_FLUSHED,{type:e})},onError:r=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,r)}}}onBufferFlushing(e,t){const{type:n,startOffset:r,endOffset:i}=t;n?this.append(this.getFlushOp(n,r,i),n):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,r,i),s)})}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],s=r?r.elementaryStreams:n.elementaryStreams;s[v.AUDIOVIDEO]?i.push("audiovideo"):(s[v.AUDIO]&&i.push("audio"),s[v.VIDEO]&&i.push("video"));const l=()=>{const c=self.performance.now();n.stats.buffering.end=c,r&&(r.stats.buffering.end=c);const u=r?r.stats:n.stats;this.hls.trigger(d.FRAG_BUFFERED,{frag:n,part:r,stats:u,id:n.type})};i.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers(l,i).catch(c=>{this.warn(`Fragment buffered callback ${c}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{var t,n;return e&&(!((t=this.tracks[e])!=null&&t.ended)||((n=this.tracks[e])==null?void 0:n.ending))})}onBufferEos(e,t){var n;this.sourceBuffers.forEach(([s])=>{if(s){const l=this.tracks[s];(!t.type||t.type===s)&&(l.ending=!0,l.ended||(l.ended=!0,this.log(`${s} buffer reached EOS`)))}});const r=((n=this.overrides)==null?void 0:n.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([s])=>{var l;return s&&!((l=this.tracks[s])!=null&&l.ended)})&&(r?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:s}=this;if(!s||s.readyState!=="open"){s&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${s.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),s.endOfStream(),this.hls.trigger(d.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(d.BUFFERED_TO_END,void 0)))}tracksEnded(){this.sourceBuffers.forEach(([e])=>{if(e!==null){const t=this.tracks[e];t&&(t.ending=!1)}})}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){const e=this.getDurationAndRange();e&&this.blockUntilOpen(()=>this.updateMediaSource(e))}onError(e,t){if(t.details===O.BUFFER_APPEND_ERROR&&t.frag){var n;const r=(n=t.errorAction)==null?void 0:n.nextAutoLevel;p(r)&&r!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||t===null||!this.sourceBufferCount)return;const r=e.config,i=n.currentTime,s=t.levelTargetDuration,l=t.live&&r.liveBackBufferLength!==null?r.liveBackBufferLength:r.backBufferLength;if(p(l)&&l>=0){const c=Math.max(l,s),u=Math.floor(i/s)*s-c;this.flushBackBuffer(i,s,u)}if(p(r.frontBufferFlushThreshold)&&r.frontBufferFlushThreshold>0){const c=Math.max(r.maxBufferLength,r.frontBufferFlushThreshold),u=Math.max(c,s),f=Math.floor(i/s)*s+u;this.flushFrontBuffer(i,s,f)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const l=Tn.getBuffered(i);if(l.length>0&&n>l.start(0)){var s;this.hls.trigger(d.BACK_BUFFER_REACHED,{bufferEnd:n});const c=this.tracks[r];if((s=this.details)!=null&&s.live)this.hls.trigger(d.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(c!=null&&c.ended){this.log(`Cannot flush ${r} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(d.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:r})}}})}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const s=Tn.getBuffered(i),l=s.length;if(l<2)return;const c=s.start(l-1),u=s.end(l-1);if(n>c||e>=c&&e<=u)return;this.hls.trigger(d.BUFFER_FLUSHING,{startOffset:c,endOffset:1/0,type:r})}})}getDurationAndRange(){var e;const{details:t,mediaSource:n}=this;if(!t||!this.media||(n==null?void 0:n.readyState)!=="open")return null;const r=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&t.live&&n.setLiveSeekableRange){const u=Math.max(0,t.fragmentStart),f=Math.max(u,r);return{duration:1/0,start:u,end:f}}return{duration:1/0}}const i=(e=this.overrides)==null?void 0:e.duration;if(i)return p(i)?{duration:i}:null;const s=this.media.duration,l=p(n.duration)?n.duration:0;return r>l&&r>s||!p(s)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;!this.media||!r||r.readyState!=="open"||(r.duration!==e&&(p(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),r.duration=e),t!==void 0&&n!==void 0&&(this.log(`MediaSource duration is set to ${r.duration}. Setting seekable range to ${t}-${n}.`),r.setLiveSeekableRange(t,n)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${Ct(n)}`),this.tracksReady){var r;const i=(r=this.transferData)==null?void 0:r.tracks;i&&Object.keys(i).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach(([t,n])=>{if(t){const r=this.tracks[t];e[t]={buffer:n,container:r.container,codec:r.codec,supplemental:r.supplemental,levelCodec:r.levelCodec,id:r.id,metadata:r.metadata}}}),this.hls.trigger(d.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([t])=>{this.executeNext(t)})}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(d.ERROR,{type:me.MEDIA_ERROR,details:O.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const i in e){const s=i,l=e[s];if(this.isPending(l)){const c=this.getTrackCodec(l,s),u=`${l.container};codecs=${c}`;l.codec=c,this.log(`creating sourceBuffer(${u})${this.currentOp(s)?" Queued":""} ${Ct(l)}`);try{const f=n.addSourceBuffer(u),h=Ca(s),A=[s,f];t[h]=A,l.buffer=f}catch(f){var r;this.error(`error while trying to add sourceBuffer: ${f.message}`),this.shiftAndExecuteNext(s),(r=this.operationQueue)==null||r.removeBlockers(),delete this.tracks[s],this.hls.trigger(d.ERROR,{type:me.MEDIA_ERROR,details:O.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:f,sourceBufferName:s,mimeType:u,parent:l.id});return}this.trackSourceBuffer(s,l)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let r=e.codec;n&&(t==="video"||t==="audiovideo")&&Ne(n,"video")&&(r=Ft(r,n));const i=fn(r,e.levelCodec);return i?t.slice(0,5)==="audio"?It(i,this.appendSource):i:""}trackSourceBuffer(e,t){const n=t.buffer;if(!n)return;const r=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:r,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",(i,s)=>{const l=s.removedRanges;l!=null&&l.length&&this.hls.trigger(d.BUFFER_FLUSHED,{type:i})})}get mediaSrc(){var e,t;const n=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return n==null?void 0:n.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const n=this.currentOp(e);n&&(n.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var n;const r=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(n=this.mediaSource)==null?void 0:n.readyState}`);this.error(`${r}`,t),this.hls.trigger(d.ERROR,{type:me.MEDIA_ERROR,details:O.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.currentOp(e);i&&i.onError(r)}removeExecutor(e,t,n){const{media:r,mediaSource:i}=this,s=this.tracks[e],l=s==null?void 0:s.buffer;if(!r||!i||!l){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}const c=p(r.duration)?r.duration:1/0,u=p(i.duration)?i.duration:1/0,f=Math.max(0,t),h=Math.min(n,c,u);h>f&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${f},${h}] from the ${e} SourceBuffer`),l.remove(f,h)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],r=n==null?void 0:n.buffer;if(!r)throw new eu(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,r.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch(t=>{this.warn(`SourceBuffer blocked callback ${t}`),this.stepOperationQueue(this.sourceBufferTypes)});else try{e()}catch(t){this.warn(`Callback run without blocking ${this.operationQueue} ${t}`)}}isUpdating(){return this.sourceBuffers.some(([e,t])=>e&&t.updating)}isQueued(){return this.sourceBuffers.some(([e])=>e&&!!this.currentOp(e))}isPending(e){return!!e&&!e.buffer}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);const{operationQueue:n}=this,r=t.map(s=>this.appendBlocker(s));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(r).then(s=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(e){e.forEach(t=>{var n;const r=(n=this.tracks[t])==null?void 0:n.buffer;!r||r.updating||this.shiftAndExecuteNext(t)})}append(e,t,n){this.operationQueue&&this.operationQueue.append(e,t,n)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((e,t)=>e+(this.isPending(this.tracks[t])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((e,[t])=>e+(t?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([e])=>e).filter(e=>!!e)}addBufferListener(e,t,n){const r=this.tracks[e];if(!r)return;const i=r.buffer;if(!i)return;const s=n.bind(this,e);r.listeners.push({event:t,listener:s}),i.addEventListener(t,s)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach(r=>{n.removeEventListener(r.event,r.listener)}),t.listeners.length=0)}}function Eo(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function nu(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}function Ca(a){return a==="audio"?1:0}class Da{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:e}=this;e.on(d.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(d.BUFFER_CODECS,this.onBufferCodecs,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(d.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(d.BUFFER_CODECS,this.onBufferCodecs,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&p(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const n=t.filter((r,i)=>this.isLevelAllowed(r)&&i<=e);return this.clientRect=null,Da.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,!t.width&&!t.height&&(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(t){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some(n=>e.bitrate===n.bitrate&&e.width===n.width&&e.height===n.height)}static getMaxLevelByMediaSize(e,t,n){if(!(e!=null&&e.length))return-1;const r=(l,c)=>c?l.width!==c.width||l.height!==c.height:!0;let i=e.length-1;const s=Math.max(t,n);for(let l=0;l<e.length;l+=1){const c=e[l];if((c.width>=s||c.height>=s)&&r(c,e[l+1])){i=l;break}}return i}}const bi={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},ru={HLS:"h"},js={OBJECT:"CMCD-Object",REQUEST:"CMCD-Request",SESSION:"CMCD-Session",STATUS:"CMCD-Status"},iu={[js.OBJECT]:["br","d","ot","tb"],[js.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[js.SESSION]:["cid","pr","sf","sid","st","v"],[js.STATUS]:["bs","rtp"]};class Rs{constructor(e,t){Array.isArray(e)&&(e=e.map(n=>n instanceof Rs?n:new Rs(n))),this.value=e,this.params=t}}const su="Dict";function au(a){return Array.isArray(a)?JSON.stringify(a):a instanceof Map?"Map{}":a instanceof Set?"Set{}":typeof a=="object"?JSON.stringify(a):String(a)}function ou(a,e,t,n){return new Error(`failed to ${a} "${au(e)}" as ${t}`,{cause:n})}function ji(a,e,t){return ou("serialize",a,e,t)}class bo{constructor(e){this.description=e}}const xo="Bare Item",lu="Boolean";function uu(a){if(typeof a!="boolean")throw ji(a,lu);return a?"?1":"?0"}const cu="Byte Sequence";function du(a){if(ArrayBuffer.isView(a)===!1)throw ji(a,cu);return`:${oi(a)}:`}const fu="Integer";function hu(a){return a<-999999999999999||999999999999999<a}function So(a){if(hu(a))throw ji(a,fu);return a.toString()}function pu(a){return`@${So(a.getTime()/1e3)}`}const mu="Decimal";function gu(a){const e=Xi(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw ji(a,mu);const t=e.toString();return t.includes(".")?t:`${t}.0`}const vu="String",yu=/[\x00-\x1f\x7f]+/;function _u(a){if(yu.test(a))throw ji(a,vu);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Eu(a){return a.description||a.toString().slice(7,-1)}const bu="Token";function wo(a){const e=Eu(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw ji(e,bu);return e}function Ra(a){switch(typeof a){case"number":if(!p(a))throw ji(a,xo);return Number.isInteger(a)?So(a):gu(a);case"string":return _u(a);case"symbol":return wo(a);case"boolean":return uu(a);case"object":if(a instanceof Date)return pu(a);if(a instanceof Uint8Array)return du(a);if(a instanceof bo)return wo(a);default:throw ji(a,xo)}}const xu="Key";function La(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw ji(a,xu);return a}function Ia(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${La(e)}`:`;${La(e)}=${Ra(t)}`).join("")}function Ao(a){return a instanceof Rs?`${Ra(a.value)}${Ia(a.params)}`:Ra(a)}function Su(a){return`(${a.value.map(Ao).join(" ")})${Ia(a.params)}`}function wu(a,e={whitespace:!0}){if(typeof a!="object")throw ji(a,su);const t=a instanceof Map?a.entries():Object.entries(a),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof Rs||(i=new Rs(i));let s=La(r);return i.value===!0?s+=Ia(i.params):(s+="=",Array.isArray(i.value)?s+=Su(i):s+=Ao(i)),s}).join(`,${n}`)}function Au(a,e){return wu(a,e)}function Tu(a){return a==="ot"||a==="sf"||a==="st"}function Cu(a){return typeof a=="number"?p(a):a!=null&&a!==""&&a!==!1}const ia=a=>Math.round(a),Du=(a,e)=>(e!=null&&e.baseUrl&&(a=Qi(a,e.baseUrl)),encodeURIComponent(a)),sa=a=>ia(a/100)*100,Ru={br:ia,d:ia,bl:sa,dl:sa,mtp:sa,nor:Du,rtp:sa,tb:ia};function Lu(a,e){const t={};if(a==null||typeof a!="object")return t;const n=Object.keys(a).sort(),r=m({},Ru,e==null?void 0:e.formatters),i=e==null?void 0:e.filter;return n.forEach(s=>{if(i!=null&&i(s))return;let l=a[s];const c=r[s];c&&(l=c(l,e)),!(s==="v"&&l===1)&&(s=="pr"&&l===1||Cu(l)&&(Tu(s)&&typeof l=="string"&&(l=new bo(l)),t[s]=l))}),t}function To(a,e={}){return a?Au(Lu(a,e),m({whitespace:!1},e)):""}function Iu(a,e={}){const t={};if(!a)return t;const n=Object.entries(a),r=Object.entries(iu).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),i=n.reduce((s,l)=>{var c,u;const[f,h]=l,A=((c=r.find(C=>C[1].includes(f)))===null||c===void 0?void 0:c[0])||js.REQUEST;return(u=s[A])!==null&&u!==void 0||(s[A]={}),s[A][f]=h,s},{});return Object.entries(i).reduce((s,[l,c])=>(s[l]=To(c,e),s),t)}function ku(a,e,t){return m(a,Iu(e,t))}const Pu="CMCD";function Nu(a,e={}){if(!a)return"";const t=To(a,e);return`${Pu}=${encodeURIComponent(t)}`}const Co=/CMCD=[^&#]+/;function Mu(a,e,t){const n=Nu(e,t);if(!n)return a;if(Co.test(a))return a.replace(Co,n);const r=a.includes("?")?"&":"?";return`${a}${r}${n}`}class Ou{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=r=>{try{this.apply(r,{ot:bi.MANIFEST,su:!this.initialized})}catch(i){this.hls.logger.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=r=>{try{const{frag:i,part:s}=r,l=this.hls.levels[i.level],c=this.getObjectType(i),u={d:(s||i).duration*1e3,ot:c};(c===bi.VIDEO||c===bi.AUDIO||c==bi.MUXED)&&(u.br=l.bitrate/1e3,u.tb=this.getTopBandwidth(c)/1e3,u.bl=this.getBufferLength(c));const f=s?this.getNextPart(s):this.getNextFrag(i);f!=null&&f.url&&f.url!==i.url&&(u.nor=f.url),this.apply(r,u)}catch(i){this.hls.logger.warn("Could not generate segment CMCD data.",i)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;n!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=n.useHeaders===!0,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHED,this.onMediaDetached,this),e.on(d.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHED,this.onMediaDetached,this),e.off(d.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var n,r;this.audioBuffer=(n=t.tracks.audio)==null?void 0:n.buffer,this.videoBuffer=(r=t.tracks.video)==null?void 0:r.buffer}createData(){var e;return{v:1,sf:ru.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){m(t,this.createData());const n=t.ot===bi.INIT||t.ot===bi.VIDEO||t.ot===bi.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:r}=this;r&&(t=Object.keys(t).reduce((s,l)=>(r.includes(l)&&(s[l]=t[l]),s),{}));const i={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),ku(e.headers,t,i)):e.url=Mu(e.url,t,i)}getNextFrag(e){var t;const n=(t=this.hls.levels[e.level])==null?void 0:t.details;if(n){const r=e.sn-n.startSN;return n.fragments[r+1]}}getNextPart(e){var t,n;const{index:r,fragment:i}=e,s=(t=this.hls.levels[i.level])==null||(n=t.details)==null?void 0:n.partList;if(s){const{sn:l}=i;for(let c=s.length-1;c>=0;c--){const u=s[c];if(u.index===r&&u.fragment.sn===l)return s[c+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return bi.TIMED_TEXT;if(e.sn==="initSegment")return bi.INIT;if(t==="audio")return bi.AUDIO;if(t==="main")return this.hls.audioTracks.length?bi.VIDEO:bi.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===bi.AUDIO)n=r.audioTracks;else{const i=r.maxAutoLevel,s=i>-1?i+1:r.levels.length;n=r.levels.slice(0,s)}for(const i of n)i.bitrate>t&&(t=i.bitrate);return t>0?t:NaN}getBufferLength(e){const t=this.media,n=e===bi.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:Tn.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,l){t(i),this.loader.load(i,s,l)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,l){t(i),this.loader.load(i,s,l)}}}}const Fu=3e5;class Bu extends V{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((e,t)=>(e.indexOf(t.pathwayId)===-1&&e.push(t.pathwayId),e),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(n=>n!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:n}=t;n!==null&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((n==null?void 0:n.action)===zn.SendAlternateToPenaltyBox&&n.flags===Ee.MoveAllAlternatesMatchingHost){const r=this.levels;let i=this._pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:l,pathwayId:c,type:u}=t.context;l&&r?s=this.getPathwayForGroupId(l,u,s):c&&(s=c)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&r&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==s),n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${r&&r.length} priorities: ${Ct(i)} penalized: ${Ct(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){this._pathwayPriority=e;let t;const n=this.penalizedPathways,r=performance.now();Object.keys(n).forEach(i=>{r-n[i]>Fu&&delete n[i]});for(let i=0;i<e.length;i++){const s=e[i];if(s in n)continue;if(s===this.pathwayId)return;const l=this.hls.nextLoadLevel,c=this.hls.levels[l];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,qr(t),this.hls.trigger(d.LEVELS_UPDATED,{levels:t});const u=this.hls.levels[l];c&&u&&this.levels&&(u.attrs["STABLE-VARIANT-ID"]!==c.attrs["STABLE-VARIANT-ID"]&&u.bitrate!==c.bitrate&&this.log(`Unstable Pathways change from bitrate ${c.bitrate} to ${u.bitrate}`),this.hls.nextLoadLevel=l);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let i=0;i<r.length;i++)if(t===ge.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===ge.SUBTITLE_TRACK&&r[i].hasSubtitleGroup(e))return r[i].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};e.forEach(i=>{const{ID:s,"BASE-ID":l,"URI-REPLACEMENT":c}=i;if(t.some(f=>f.pathwayId===s))return;const u=this.getLevelsForPathway(l).map(f=>{const h=new Pn(f.attrs);h["PATHWAY-ID"]=s;const A=h.AUDIO&&`${h.AUDIO}_clone_${s}`,C=h.SUBTITLES&&`${h.SUBTITLES}_clone_${s}`;A&&(n[h.AUDIO]=A,h.AUDIO=A),C&&(r[h.SUBTITLES]=C,h.SUBTITLES=C);const D=Ro(f.uri,h["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),X=new dt({attrs:h,audioCodec:f.audioCodec,bitrate:f.bitrate,height:f.height,name:f.name,url:D,videoCodec:f.videoCodec,width:f.width});if(f.audioGroups)for(let H=1;H<f.audioGroups.length;H++)X.addGroupId("audio",`${f.audioGroups[H]}_clone_${s}`);if(f.subtitleGroups)for(let H=1;H<f.subtitleGroups.length;H++)X.addGroupId("text",`${f.subtitleGroups[H]}_clone_${s}`);return X});t.push(...u),Do(this.audioTracks,n,c,s),Do(this.subtitleTracks,r,c,s)})}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;this.loader&&this.loader.destroy(),this.loader=new n(t);let r;try{r=new self.URL(e)}catch(f){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const f=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+f)}const i={responseType:"json",url:r.href},s=t.steeringManifestLoadPolicy.default,l=s.errorRetry||s.timeoutRetry||{},c={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:l.maxNumRetry||0,retryDelay:l.retryDelayMs||0,maxRetryDelay:l.maxRetryDelayMs||0},u={onSuccess:(f,h,A,C)=>{this.log(`Loaded steering manifest: "${r}"`);const D=f.data;if((D==null?void 0:D.VERSION)!==1){this.log(`Steering VERSION ${D.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=D.TTL;const{"RELOAD-URI":X,"PATHWAY-CLONES":H,"PATHWAY-PRIORITY":Ae}=D;if(X)try{this.uri=new self.URL(X,r).href}catch(Ke){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${X}`);return}this.scheduleRefresh(this.uri||A.url),H&&this.clonePathways(H);const Qe={steeringManifest:D,url:r.toString()};this.hls.trigger(d.STEERING_MANIFEST_LOADED,Qe),Ae&&this.updatePathwayPriority(Ae)},onError:(f,h,A,C)=>{if(this.log(`Error loading steering manifest: ${f.code} ${f.text} (${h.url})`),this.stopLoad(),f.code===410){this.enabled=!1,this.log(`Steering manifest ${h.url} no longer available`);return}let D=this.timeToLoad*1e3;if(f.code===429){const X=this.loader;if(typeof(X==null?void 0:X.getResponseHeader)=="function"){const H=X.getResponseHeader("Retry-After");H&&(D=parseFloat(H)*1e3)}this.log(`Steering manifest ${h.url} rate limited`);return}this.scheduleRefresh(this.uri||h.url,D)},onTimeout:(f,h,A)=>{this.log(`Timeout loading steering manifest (${h.url})`),this.scheduleRefresh(this.uri||h.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,c,u)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var n;const r=(n=this.hls)==null?void 0:n.media;if(r&&!r.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function Do(a,e,t,n){a&&Object.keys(e).forEach(r=>{const i=a.filter(s=>s.groupId===r).map(s=>{const l=m({},s);return l.details=void 0,l.attrs=new Pn(l.attrs),l.url=l.attrs.URI=Ro(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),l.groupId=l.attrs["GROUP-ID"]=e[r],l.attrs["PATHWAY-ID"]=n,l});a.push(...i)})}function Ro(a,e,t,n){const{HOST:r,PARAMS:i,[t]:s}=n;let l;e&&(l=s==null?void 0:s[e],l&&(a=l));const c=new self.URL(a);return r&&!l&&(c.host=r),i&&Object.keys(i).sort().forEach(u=>{u&&c.searchParams.set(u,i[u])}),c.href}class Ls extends V{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Ls.CDMCleanupPromise?[Ls.CDMCleanupPromise]:[],this.onMediaEncrypted=t=>{const{initDataType:n,initData:r}=t,i=`"${t.type}" event: init data type: "${n}"`;if(this.debug(i),r!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=jn(this.config));const l=s.map(Cr).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=ir(s);let c,u;if(n==="sinf"){if(l!==bn.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${l}`);return}const D=Bt(new Uint8Array(r));try{const X=pr(JSON.parse(D).sinf),H=ie(X);if(!H)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");c=new Uint8Array(H.subarray(8,24)),u=bn.FAIRPLAY}catch(X){this.warn(`${i} Failed to parse sinf: ${X}`);return}}else{if(l!==bn.WIDEVINE&&l!==bn.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${n}" for selected key-system ${l}`);return}const D=Kt(r),X=D.filter(Ae=>!!Ae.systemId&&yr(Ae.systemId)===l);X.length>1&&this.warn(`${i} Using first of ${X.length} pssh found for selected key-system ${l}`);const H=X[0];if(!H){D.length===0||D.some(Ae=>!Ae.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${D.map(Ae=>yr(Ae.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(u=yr(H.systemId),H.version===0&&H.data)if(u===bn.WIDEVINE){const Ae=H.data.length-22;c=new Uint8Array(H.data.subarray(Ae,Ae+16))}else u===bn.PLAYREADY&&(c=$r(H.data))}if(!u||!c)return;const f=G.hexDump(c),{keyIdToKeySessionPromise:h,mediaKeySessions:A}=this;let C=h[f];for(let D=0;D<A.length;D++){const X=A[D],H=X.decryptdata;if(!H.keyId)continue;const Ae=G.hexDump(H.keyId);if(f===Ae||H.uri.replace(/-/g,"").indexOf(f)!==-1){if(C=h[Ae],H.pssh)break;delete h[Ae],H.pssh=new Uint8Array(r),H.keyId=c,C=h[f]=C.then(()=>this.generateRequestWithPreferredKeySession(X,n,r,"encrypted-event-key-match")),C.catch(Qe=>this.handleError(Qe));break}}if(!C){if(u!==l){this.log(`Ignoring "${t.type}" event with ${u} init data for selected key-system ${l}`);return}C=h[f]=this.getKeySystemSelectionPromise([u]).then(({keySystem:D,mediaKeys:X})=>{var H;this.throwIfDestroyed();const Ae=new ei("ISO-23001-7",f,(H=Cr(D))!=null?H:"");return Ae.pssh=new Uint8Array(r),Ae.keyId=c,this.attemptSetMediaKeys(D,X).then(()=>{this.throwIfDestroyed();const Qe=this.createMediaKeySessionContext({decryptdata:Ae,keySystem:D,mediaKeys:X});return this.generateRequestWithPreferredKeySession(Qe,n,r,"encrypted-event-no-match")})}),C.catch(D=>this.handleError(D))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){const e=this.media;this.unregisterListeners(),this.onMediaDetached(),this._clear(e);const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(d.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(d.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(d.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(d.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(d.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(d.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t[e];if(r)return r.licenseUrl;if(e===bn.WIDEVINE&&n)return n}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(t===void 0)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,n=t[e];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,n=(s,l,c)=>!!s&&c.indexOf(s)===l,r=t.map(s=>s.audioCodec).filter(n),i=t.map(s=>s.videoCodec).filter(n);return r.length+i.length===0&&i.push("avc1.42e01e"),new Promise((s,l)=>{const c=u=>{const f=u.shift();this.getMediaKeysPromise(f,r,i).then(h=>s({keySystem:f,mediaKeys:h})).catch(h=>{u.length?c(u):h instanceof Ri?l(h):l(new Ri({type:me.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_NO_ACCESS,error:h,fatal:!0},h.message))})};c(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let r=`Configured requestMediaKeySystemAccess is not a function ${n}`;return qn===null&&self.location.protocol==="http:"&&(r=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(r))}return n(e,t)}getMediaKeysPromise(e,t,n){const r=Er(e,t,n,this.config.drmSystemOptions),i=this.keySystemAccessPromises[e];let s=i==null?void 0:i.keySystemAccess;if(!s){this.log(`Requesting encrypted media "${e}" key-system access with config: ${Ct(r)}`),s=this.requestMediaKeySystemAccess(e,r);const l=this.keySystemAccessPromises[e]={keySystemAccess:s};return s.catch(c=>{this.log(`Failed to obtain access to key-system "${e}": ${c}`)}),s.then(c=>{this.log(`Access for key-system "${c.keySystem}" obtained`);const u=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),l.mediaKeys=c.createMediaKeys().then(f=>(this.log(`Media-keys created for "${e}"`),u.then(h=>h?this.setMediaKeysServerCertificate(f,e,h):f))),l.mediaKeys.catch(f=>{this.error(`Failed to create media-keys for "${e}"}: ${f}`)}),l.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${G.hexDump(e.keyId||[])}`);const r=n.createSession(),i={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:r,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),r=this.getKeyIdString(t),i="cenc";this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,i,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return G.hexDump(e.keyId)}updateKeySession(e,t){var n;const r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyID ${G.hexDump(((n=e.decryptdata)==null?void 0:n.keyId)||[])}
|
|
} (data length: ${t&&t.byteLength})`),r.update(t)}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){return new Promise((t,n)=>{const r=jn(this.config),i=e.map(ir).filter(s=>!!s&&r.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const l=Cr(s);l?t(l):n(new Error(`Unable to find format for key-system "${s}"`))}).catch(n)})}loadKey(e){const t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),r=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${r}`);let i=this.keyIdToKeySessionPromise[n];return i||(i=this.getKeySystemForKeyPromise(t).then(({keySystem:l,mediaKeys:c})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${r}`),this.attemptSetMediaKeys(l,c).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:l,mediaKeys:c,decryptdata:t}))))),(this.keyIdToKeySessionPromise[n]=i.then(l=>{const c="cenc",u=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(l,c,u,"playlist-key")})).catch(l=>this.handleError(l))),i}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Ri?this.hls.trigger(d.ERROR,e.data):this.hls.trigger(d.ERROR,{type:me.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=ir(e.keyFormat),i=r?[r]:jn(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=jn(this.config)),e.length===0)throw new Ri({type:me.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${Ct({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const r=Promise.all(n).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.setMediaKeysQueue.push(r),r.then(()=>{this.log(`Media-keys set for "${e}"`),n.push(r),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(i=>n.indexOf(i)===-1)})}generateRequestWithPreferredKeySession(e,t,n,r){var i,s;const l=(i=this.config.drmSystems)==null||(s=i[e.keySystem])==null?void 0:s.generateRequest;if(l)try{const D=l.call(this.hls,t,n,e);if(!D)throw new Error("Invalid response from configured generateRequest filter");t=D.initDataType,n=D.initData?D.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(D){var c;if(this.warn(D.message),(c=this.hls)!=null&&c.config.debug)throw D}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const u=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${r}": ${u} (init data type: ${t} length: ${n?n.byteLength:null})`);const f=new Ki,h=e._onmessage=D=>{const X=e.mediaKeysSession;if(!X){f.emit("error",new Error("invalid state"));return}const{messageType:H,message:Ae}=D;this.log(`"${H}" message event for session "${X.sessionId}" message size: ${Ae.byteLength}`),H==="license-request"||H==="license-renewal"?this.renewLicense(e,Ae).catch(Qe=>{f.eventNames().length?f.emit("error",Qe):this.handleError(Qe)}):H==="license-release"?e.keySystem===bn.FAIRPLAY&&(this.updateKeySession(e,wr("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${H}"`)},A=e._onkeystatuseschange=D=>{if(!e.mediaKeysSession){f.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const H=e.keyStatus;f.emit("keyStatus",H),H==="expired"&&(this.warn(`${e.keySystem} expired for key ${u}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",h),e.mediaKeysSession.addEventListener("keystatuseschange",A);const C=new Promise((D,X)=>{f.on("error",X),f.on("keyStatus",H=>{H.startsWith("usable")?D():H==="output-restricted"?X(new Ri({type:me.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):H==="internal-error"?X(new Ri({type:me.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${H}"`)):H==="expired"?X(new Error("key expired while generating request")):this.warn(`unhandled key status change "${H}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var D;this.log(`Request generated for key-session "${(D=e.mediaKeysSession)==null?void 0:D.sessionId}" keyId: ${u}`)}).catch(D=>{throw new Ri({type:me.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_NO_SESSION,error:D,fatal:!1},`Error generating key-session request: ${D}`)}).then(()=>C).catch(D=>{throw f.removeAllListeners(),this.removeSession(e),D}).then(()=>(f.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,n)=>{if(typeof n=="string"&&typeof t=="object"){const r=n;n=t,t=r}this.log(`key status change "${t}" for keyStatuses keyId: ${G.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${G.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){const t=this.config,n=t.loader,r=new n(t),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise((s,l)=>{const c={responseType:"arraybuffer",url:i},u=t.certLoadPolicy.default,f={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},h={onSuccess:(A,C,D,X)=>{s(A.data)},onError:(A,C,D,X)=>{l(new Ri({type:me.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:D,response:x({url:c.url,data:void 0},A)},`"${e}" certificate request failed (${i}). Status: ${A.code} (${A.text})`))},onTimeout:(A,C,D)=>{l(new Ri({type:me.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:D,response:{url:c.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(A,C,D)=>{l(new Error("aborted"))}};r.load(c,f,h)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((r,i)=>{e.setServerCertificate(n).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${n==null?void 0:n.byteLength}) on "${t}"`),r(e)}).catch(s=>{i(new Ri({type:me.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(n=>this.updateKeySession(e,new Uint8Array(n)).catch(r=>{throw new Ri({type:me.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:r,fatal:!0},r.message)}))}unpackPlayReadyKeyMessage(e,t){const n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const r=new DOMParser().parseFromString(n,"application/xml"),i=r.querySelectorAll("HttpHeader");if(i.length>0){let f;for(let h=0,A=i.length;h<A;h++){var s,l;f=i[h];const C=(s=f.querySelector("name"))==null?void 0:s.textContent,D=(l=f.querySelector("value"))==null?void 0:l.textContent;C&&D&&e.setRequestHeader(C,D)}}const c=r.querySelector("Challenge"),u=c==null?void 0:c.textContent;if(!u)throw new Error("Cannot find <Challenge> in key message");return wr(atob(u))}setupLicenseXHR(e,t,n,r){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then(()=>{if(!n.decryptdata)throw new Error("Key removed");return i.call(this.hls,e,t,n,r)}).catch(s=>{if(!n.decryptdata)throw s;return e.open("POST",t,!0),i.call(this.hls,e,t,n,r)}).then(s=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:s||r})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise((r,i)=>{const s=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${s}`);const l=new XMLHttpRequest;l.responseType="arraybuffer",l.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(l.readyState===4)if(l.status===200){this._requestLicenseFailureCount=0;let c=l.response;this.log(`License received ${c instanceof ArrayBuffer?c.byteLength:c}`);const u=this.config.licenseResponseCallback;if(u)try{c=u.call(this.hls,l,s,e)}catch(f){this.error(f)}r(c)}else{const c=n.errorRetry,u=c?c.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>u||l.status>=400&&l.status<500)i(new Ri({type:me.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:l,response:{url:s,data:void 0,code:l.status,text:l.statusText}},`License Request XHR failed (${s}). Status: ${l.status} (${l.statusText})`));else{const f=u-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${f} attempts left`),this.requestLicense(e,t).then(r,i)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=l,this.setupLicenseXHR(l,s,e,t).then(({xhr:c,licenseChallenge:u})=>{e.keySystem==bn.PLAYREADY&&(u=this.unpackPlayReadyKeyMessage(c,u)),c.send(u)})})}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,n.removeEventListener("encrypted",this.onMediaEncrypted),n.removeEventListener("waitingforkey",this.onWaitingForKey),n.addEventListener("encrypted",this.onMediaEncrypted),n.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null)}_clear(e){var t;const n=this.mediaKeySessions;this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},ei.clearKeyUriToKeyIdMap();const r=n.length;Ls.CDMCleanupPromise=Promise.all(n.map(i=>this.removeSession(i)).concat(e==null||(t=e.setMediaKeys(null))==null?void 0:t.catch(i=>{var s;this.log(`Could not clear media keys: ${i}`),(s=this.hls)==null||s.trigger(d.ERROR,{type:me.OTHER_ERROR,details:O.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${i}`)})}))).then(()=>{r&&(this.log("finished closing key sessions and clearing media keys"),n.length=0)}).catch(i=>{var s;this.log(`Could not close sessions and clear media keys: ${i}`),(s=this.hls)==null||s.trigger(d.ERROR,{type:me.OTHER_ERROR,details:O.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${i}`)})})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const n=t.reduce((r,i)=>(r.indexOf(i.keyFormat)===-1&&r.push(i.keyFormat),r),[]);this.log(`Selecting key-system from session-keys ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const r=this.mediaKeySessions.indexOf(e);r>-1&&this.mediaKeySessions.splice(r,1);const{drmSystemOptions:i}=this.config;return(Sr(i)?new Promise((l,c)=>{self.setTimeout(()=>c(new Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(l)}):Promise.resolve()).catch(l=>{var c;this.log(`Could not remove session: ${l}`),(c=this.hls)==null||c.trigger(d.ERROR,{type:me.OTHER_ERROR,details:O.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${l}`)})}).then(()=>t.close()).catch(l=>{var c;this.log(`Could not close session: ${l}`),(c=this.hls)==null||c.trigger(d.ERROR,{type:me.OTHER_ERROR,details:O.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${l}`)})})}}}Ls.CDMCleanupPromise=void 0;class Ri extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}class Uu{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(d.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(d.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const r=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=r,r&&typeof r.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){const r=performance.now();if(t){if(this.lastTime){const i=r-this.lastTime,s=n-this.lastDroppedFrames,l=t-this.lastDecodedFrames,c=1e3*s/i,u=this.hls;if(u.trigger(d.FPS_DROP,{currentDropped:s,currentDecoded:l,totalDroppedFrames:n}),c>0&&s>u.config.fpsDroppedMonitoringThreshold*l){let f=u.currentLevel;u.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+f),f>0&&(u.autoLevelCapping===-1||u.autoLevelCapping>=f)&&(f=f-1,u.trigger(d.FPS_DROP_LEVEL_CAPPING,{level:f,droppedLevel:u.currentLevel}),u.autoLevelCapping=f,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}function Lo(a,e){let t;try{t=new Event("addtrack")}catch(n){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=a,e.dispatchEvent(t)}function Io(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(e.id))try{if(a.addCue(e),!a.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){W.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,a.addCue(r)}catch(r){W.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(a.mode=t)}function Is(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues)for(let n=a.cues.length;n--;)e&&a.cues[n].removeEventListener("enter",e),a.removeCue(a.cues[n]);t==="disabled"&&(a.mode=t)}function ka(a,e,t,n){const r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=Ku(a.cues,e,t);for(let s=0;s<i.length;s++)(!n||n(i[s]))&&a.removeCue(i[s])}r==="disabled"&&(a.mode=r)}function Zu(a,e){if(e<=a[0].startTime)return 0;const t=a.length-1;if(e>a[t].endTime)return-1;let n=0,r=t,i;for(;n<=r;)if(i=Math.floor((r+n)/2),e<a[i].startTime)r=i-1;else if(e>a[i].startTime&&n<t)n=i+1;else return i;return a[n].startTime-e<e-a[r].startTime?n:r}function Ku(a,e,t){const n=[],r=Zu(a,e);if(r>-1)for(let i=r,s=a.length;i<s;i++){const l=a[i];if(l.startTime>=e&&l.endTime<=t)n.push(l);else if(l.startTime>t)return n}return n}function aa(a){const e=[];for(let t=0;t<a.length;t++){const n=a[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(a[t])}return e}class zu extends Aa{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const n=aa(this.media.textTracks);for(let i=0;i<n.length;i++)if(n[i].mode==="hidden")t=n[i];else if(n[i].mode==="showing"){t=n[i];break}const r=this.findTrackForTextTrack(t);this.subtitleTrack!==r&&this.setSubtitleTrack(r)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.LEVEL_LOADING,this.onLevelLoading,this),e.on(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(d.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.LEVEL_LOADING,this.onLevelLoading,this),e.off(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(d.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(d.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){const n=this.media;if(!n)return;const r=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,r)return;aa(n.textTracks).forEach(s=>{Is(s)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Subtitle track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const l=s.details;s.details=t.details,this.log(`Subtitle track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,l)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.subtitleGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(s=>(r==null?void 0:r.indexOf(s))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(f=>!n||n.indexOf(f.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(f=>f.default)&&(this.selectDefaultTrack=!1),s.forEach((f,h)=>{f.id=h});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const l=this.hls.config.subtitlePreference;if(!i&&l){this.selectDefaultTrack=!1;const f=qe(l,s);if(f>-1)i=s[f];else{const h=qe(l,this.tracks);i=this.tracks[h]}}let c=this.findTrackId(i);c===-1&&i&&(c=this.findTrackId(null));const u={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(d.SUBTITLE_TRACKS_UPDATED,u),c!==-1&&this.trackId===-1&&this.setSubtitleTrack(c)}}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let r=0;r<t.length;r++){const i=t[r];if(!(n&&!i.default||!n&&!e)&&(!e||ft(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(zs(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(zs(e.attrs,i.attrs,["LANGUAGE"]))return r}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(Ta(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===ge.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(e.id===-1)return this.setSubtitleTrack(-1),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&ft(e,n))return n;const r=qe(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=qe(e,t);if(i>-1)return t[i]}}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,l=s==null?void 0:s.age;this.log(`Loading subtitle ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${l&&s.live?" age "+l.toFixed(1)+(s.type?" "+s.type||0:""):""} ${i}`),this.hls.trigger(d.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=aa(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>Ta(n,i))[0],r||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach(i=>{i.mode!=="disabled"&&i!==r&&(i.mode="disabled")}),r){const i=this.subtitleDisplay?"showing":"hidden";r.mode!==i&&(r.mode=i)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!p(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r){this.hls.trigger(d.SUBTITLE_TRACK_SWITCH,{id:e});return}const i=!!r.details&&!r.details.live;if(e===this.trackId&&r===n&&i)return;this.log(`Switching to subtitle-track ${e}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));const{id:s,groupId:l="",name:c,type:u,url:f}=r;this.hls.trigger(d.SUBTITLE_TRACK_SWITCH,{id:s,groupId:l,name:c,type:u,url:f});const h=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(h)}}function Gs(a){let e=5381,t=a.length;for(;t;)e=e*33^a.charCodeAt(--t);return(e>>>0).toString()}const ks=.025;let oa=function(a){return a[a.Point=0]="Point",a[a.Range=1]="Range",a}({});function ju(a,e,t){return`${a.identifier}-${t+1}-${Gs(e)}`}class Gu{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,(e=this.assetListLoader)==null||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){if(e>=this.assetList.length)return!0;const t=this.playoutLimit;return e<=0||isNaN(t)?!1:this.assetList[e].startOffset>t}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return Pa(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime,n=Pa(t,e);return t-n<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=p(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return Pa(e,t)}return e}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<ks))}set appendInPlace(e){if(this.appendInPlaceStarted){this.resetOnResume=!e;return}this.appendInPlaceDisabled=!e}get timelineStart(){return this._timelineStart!==null?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return this._duration!==null?t=this._duration:this.dateRange.duration?t=this.dateRange.duration:t=this.dateRange.plannedDuration||0,!isNaN(e)&&e<t&&(t=e),t}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return this.dateRange.attr["X-TIMELINE-OCCUPIES"]==="RANGE"?oa.Range:oa.Point}get supplementsPrimary(){return this.dateRange.attr["X-TIMELINE-STYLE"]==="PRIMARY"}get contentMayVary(){return this.dateRange.attr["X-CONTENT-MAY-VARY"]!=="NO"}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||this.assetListResponse!==null}toString(){return Wu(this)}}function Pa(a,e){return a-e.start<e.duration/2&&!(Math.abs(a-(e.start+e.duration))<ks)?e.start:e.start+e.duration}function ko(a,e,t){const n=new self.URL(a,t);return n.protocol!=="data:"&&n.searchParams.set("_HLS_primary_id",e),n}function Wu(a){return`["${a.identifier}" ${a.cue.pre?"<pre>":a.cue.post?"<post>":""}${a.timelineStart.toFixed(2)}-${a.resumeTime.toFixed(2)}]`}function Na(a){const e=a.timelineStart,t=a.duration||0;return`["${a.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class Hu{constructor(e,t,n,r){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{const u=this.interstitial.playoutLimit,f=this.currentTime;this.startOffset+f>=u&&this.hls.trigger(d.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new e(t);this.interstitial=n,this.assetItem=r;let s=r.uri;try{s=ko(s,i.sessionId).href}catch(c){}i.loadSource(s);const l=()=>{this.hasDetails=!0};i.once(d.LEVEL_LOADED,l),i.once(d.AUDIO_TRACK_LOADED,l),i.once(d.SUBTITLE_TRACK_LOADED,l),i.on(d.MEDIA_ATTACHING,(c,{media:u})=>{this.removeMediaListeners(),this.mediaAttached=u,this.interstitial.playoutLimit&&u.addEventListener("timeupdate",this.checkPlayout)})}bufferedInPlaceToEnd(e){var t;if(!this.interstitial.appendInPlace)return!1;if((t=this.hls)!=null&&t.bufferedToEnd)return!0;if(!e||!this._bufferedEosTime)return!1;const n=this.timelineOffset,r=Tn.bufferInfo(e,n,0);return this.getAssetTime(r.end)>=this._bufferedEosTime-.02}get destroyed(){var e;return!((e=this.hls)!=null&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return((e=this.hls)==null?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=Tn.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;return e||0}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return((e=this.hls)==null?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const n=e-t;if(Math.abs(n)>1/9e4){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,n=this.duration;return Math.min(Math.max(0,e-t),n)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var e;(e=this.hls)!=null&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls.destroy(),this.hls=this.interstitial=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){this.hls.attachMedia(e)}detachMedia(){this.removeMediaListeners(),this.mediaAttached=null,this.hls.detachMedia()}resumeBuffering(){this.hls.resumeBuffering()}pauseBuffering(){this.hls.pauseBuffering()}transferMedia(){return this.bufferSnapShot(),this.hls.transferMedia()}on(e,t,n){this.hls.on(e,t)}once(e,t,n){this.hls.once(e,t)}off(e,t,n){this.hls.off(e,t)}toString(){var e,t;return`HlsAssetPlayer: ${Na(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${(t=this.interstitial)!=null&&t.appendInPlace?"append-in-place":""}`}}const Po=.033;class Vu extends V{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(e=>e.reset()),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce((n,r)=>e<=r.startOffset&&t>r.startOffset?(delete r.error,n+1):n,0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);const r=this.items;if(r)for(r[n]||(t===void 0&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&(i=r[n])!=null&&i.event;){var i;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let r=0;r<n.length;r++){let i=n[r];if(t&&t!=="primary"&&(i=i[t]),e===i.start||e>i.start&&e<i.end)return r}return-1}findJumpRestrictedIndex(e,t){const n=this.items;if(n)for(let r=e;r<=t&&n[r];r++){const i=n[r].event;if(i!=null&&i.restrictions.jump&&!i.appendInPlace)return r}return-1}findEventIndex(e){const t=this.items;if(t)for(let r=t.length;r--;){var n;if(((n=t[r].event)==null?void 0:n.identifier)===e)return r}return-1}findAssetIndex(e,t){const n=e.assetList,r=n.length;if(r>1)for(let i=0;i<r;i++){const s=n[i];if(!s.error){const l=s.timelineStart;if(t===l||t>l&&t<l+(s.duration||0))return i}}return 0}get assetIdAtEnd(){var e,t;const n=(e=this.items)==null||(t=e[this.length-1])==null?void 0:t.event;if(n){const r=n.assetList,i=r[r.length-1];if(i)return i.identifier}return null}parseInterstitialDateRanges(e,t){const n=e.main.details,{dateRanges:r}=n,i=this.events,s=this.parseDateRanges(r,{url:n.url},t),l=Object.keys(r),c=i?i.filter(u=>!l.includes(u.identifier)):[];s.length&&s.sort((u,f)=>{const h=u.cue.pre,A=u.cue.post,C=f.cue.pre,D=f.cue.post;if(h&&!C)return-1;if(C&&!h||A&&!D)return 1;if(D&&!A)return-1;if(!h&&!C&&!A&&!D){const X=u.startTime,H=f.startTime;if(X!==H)return X-H}return u.dateRange.tagOrder-f.dateRange.tagOrder}),this.events=s,c.forEach(u=>{this.removeEvent(u)}),this.updateSchedule(e,c)}updateSchedule(e,t=[]){const n=this.events||[];if(n.length||t.length||this.length<2){const r=this.items,i=this.parseSchedule(n,e);(t.length||(r==null?void 0:r.length)!==i.length||i.some((l,c)=>Math.abs(l.playout.start-r[c].playout.start)>.005||Math.abs(l.playout.end-r[c].playout.end)>.005))&&(this.items=i,this.onScheduleUpdate(t,r))}}parseDateRanges(e,t,n){const r=[],i=Object.keys(e);for(let s=0;s<i.length;s++){const l=i[s],c=e[l];if(c.isInterstitial){let u=this.eventMap[l];u?u.setDateRange(c):(u=new Gu(c,t),this.eventMap[l]=u,n===!1&&(u.appendInPlace=n)),r.push(u)}}return r}parseSchedule(e,t){const n=[],r=t.main.details,i=r.live?1/0:r.edge;let s=0;if(e=e.filter(c=>!c.error&&!(c.cue.once&&c.hasPlayed)),e.length){this.resolveOffsets(e,t);let c=0,u=0;if(e.forEach((f,h)=>{const A=f.cue.pre,C=f.cue.post,D=e[h-1]||null,X=f.appendInPlace,H=C?i:f.startOffset,Ae=f.duration,Qe=f.timelineOccupancy===oa.Range?Ae:0,Ke=f.resumptionOffset,bt=(D==null?void 0:D.startTime)===H,St=H+f.cumulativeDuration;let nn=X?St+Ae:H+Ke;if(A||!C&&H<=0){const Qt=u;u+=Qe,f.timelineStart=St;const un=s;s+=Ae,n.push({event:f,start:St,end:nn,playout:{start:un,end:s},integrated:{start:Qt,end:u}})}else if(H<=i){if(!bt){const Nt=H-c;if(Nt>Po){const In=c,Hn=u;u+=Nt;const kr=s;s+=Nt;const vr={previousEvent:e[h-1]||null,nextEvent:f,start:In,end:In+Nt,playout:{start:kr,end:s},integrated:{start:Hn,end:u}};n.push(vr)}else Nt>0&&D&&(D.cumulativeDuration+=Nt,n[n.length-1].end=H)}C&&(nn=St),f.timelineStart=St;const Qt=u;u+=Qe;const un=s;s+=Ae,n.push({event:f,start:St,end:nn,playout:{start:un,end:s},integrated:{start:Qt,end:u}})}else return;const wt=f.resumeTime;C||wt>i?c=i:c=wt}),c<i){var l;const f=c,h=u,A=i-c;u+=A;const C=s;s+=A,n.push({previousEvent:((l=n[n.length-1])==null?void 0:l.event)||null,nextEvent:null,start:c,end:f+A,playout:{start:C,end:s},integrated:{start:h,end:u}})}this.setDurations(i,s,u)}else n.push({previousEvent:null,nextEvent:null,start:0,end:i,playout:{start:0,end:i},integrated:{start:0,end:i}}),this.setDurations(i,i,i);return n}setDurations(e,t,n){this.durations={primary:e,playout:t,integrated:n}}resolveOffsets(e,t){const n=t.main.details,r=n.live?1/0:n.edge;let i=0,s=-1;e.forEach((l,c)=>{const u=l.cue.pre,f=l.cue.post,h=u?0:f?r:l.startTime;this.updateAssetDurations(l),s===h?l.cumulativeDuration=i:(i=0,s=h),!f&&l.snapOptions.in&&(l.resumeAnchor=Zn(null,n.fragments,l.startOffset+l.resumptionOffset,0,0)||void 0),l.appendInPlace&&!l.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(l,t)||(l.appendInPlace=!1)),!l.appendInPlace&&c+1<e.length&&e[c+1].startTime-e[c].resumeTime<Po&&(e[c+1].appendInPlace=!1,e[c+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${l}`));const C=p(l.resumeOffset)?l.resumeOffset:l.duration;i+=C})}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,r=e.startTime+e.resumptionOffset;return Math.abs(n-r)>ks?(this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${r}`),!1):t?!Object.keys(t).some(s=>{const l=t[s].details,c=l.edge;if(n>=c)return this.log(`"${e.identifier}" resumption ${n} past ${s} playlist end ${c}`),!1;const u=Zn(null,l.fragments,n);if(!u)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${s} playlist (${l.fragStart}-${l.fragmentEnd})`),!0;const f=s==="audio"?.175:0;return Math.abs(u.start-n)<ks+f||Math.abs(u.end-n)<ks+f?!1:(this.log(`"${e.identifier}" resumption ${n} not aligned with ${s} fragment bounds (${u.start}-${u.end} sn: ${u.sn} cc: ${u.cc})`),!0)}):(this.log(`"${e.identifier}" resumption ${n} can not be aligned with media (none selected)`),!1)}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,r=!1,i=!1;e.assetList.forEach((s,l)=>{const c=t+n;s.startOffset=n,s.timelineStart=c,r||(r=s.duration===null),i||(i=!!s.error);const u=s.error?0:s.duration||0;n+=u}),r&&!i?e.duration=Math.max(n,e.duration):e.duration=n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function hs(a){return`[${a.event?'"'+a.event.identifier+'"':"primary"}: ${a.start.toFixed(2)}-${a.end.toFixed(2)}]`}class Yu{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let r;try{r=ko(n,this.hls.sessionId,e.baseUrl)}catch(A){const C=this.assignAssetListError(e,O.ASSET_LIST_LOAD_ERROR,A,n);this.hls.trigger(d.ERROR,C);return}t&&r.protocol!=="data:"&&r.searchParams.set("_HLS_start_offset",""+t);const i=this.hls.config,s=i.loader,l=new s(i),c={responseType:"json",url:r.href},u=i.interstitialAssetListLoadPolicy.default,f={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},h={onSuccess:(A,C,D,X)=>{const H=A.data,Ae=H==null?void 0:H.ASSETS;if(!Array.isArray(Ae)){const Qe=this.assignAssetListError(e,O.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),D.url,C,X);this.hls.trigger(d.ERROR,Qe);return}e.assetListResponse=H,this.hls.trigger(d.ASSET_LIST_LOADED,{event:e,assetListResponse:H,networkDetails:X})},onError:(A,C,D,X)=>{const H=this.assignAssetListError(e,O.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${A.code} ${A.text} (${C.url})`),C.url,X,D);this.hls.trigger(d.ERROR,H)},onTimeout:(A,C,D)=>{const X=this.assignAssetListError(e,O.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${C.url})`),C.url,A,D);this.hls.trigger(d.ERROR,X)}};return l.load(c,f,h),this.hls.trigger(d.ASSET_LIST_LOADING,{event:e}),l}assignAssetListError(e,t,n,r,i,s){return e.error=n,{type:me.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:s,stats:i}}}function $i(a,e,t){Gi(a,e,t),a.addEventListener(e,t)}function Gi(a,e,t){a.removeEventListener(e,t)}function No(a){a==null||a.play().catch(()=>{})}class Xu extends V{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled)return;const r=n-this.timelinePos;if(Math.abs(r)<1/7056e5)return;const s=r<=-.01;this.timelinePos=n,this.bufferedPos=n;const l=this.playingItem;if(!l){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(n,n-r)&&this.updateSchedule(),this.checkBuffer(),s&&n<l.start||n>=l.end){var c;const A=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(l)&&(c=this.media)!=null&&c.paused&&(this.shouldPlay=!1),!s){const C=this.findItemIndex(l);if(A>C){const D=this.schedule.findJumpRestrictedIndex(C+1,A);if(D>C){this.setSchedulePosition(D);return}}}this.setSchedulePosition(A);return}const u=this.playingAsset;if(!u){if(this.playingLastItem&&this.isInterstitial(l)){const A=l.event.assetList[0];A&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,A))}return}const f=u.timelineStart,h=u.duration||0;(s&&n<f||n>=f+h)&&this.setScheduleToAssetAtTime(n,u)},this.onTimeupdate=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled)return;if(n>this.timelinePos)this.timelinePos=n,n>this.bufferedPos&&this.checkBuffer();else return;const r=this.playingItem;if(!r||this.playingLastItem)return;if(n>=r.end){this.timelinePos=r.end;const l=this.findItemIndex(r);this.setSchedulePosition(l+1)}const i=this.playingAsset;if(!i)return;const s=i.timelineStart+(i.duration||0);n>=s&&this.setScheduleToAssetAtTime(n,i)},this.onScheduleUpdate=(n,r)=>{const i=this.schedule,s=this.playingItem,l=i.events||[],c=i.items||[],u=i.durations,f=n.map(C=>C.identifier),h=!!(l.length||f.length);if(h&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l}
|
|
Schedule: ${c.map(C=>hs(C))}`),f.length&&this.log(`Removed events ${f}`),this.playerQueue.forEach(C=>{if(C.interstitial.appendInPlace){const D=C.assetItem.timelineStart,X=C.timelineOffset-D;if(X)try{C.timelineOffset=D}catch(H){Math.abs(X)>ks&&this.warn(`${H} ("${C.assetId}" ${C.timelineOffset}->${D})`)}}}),s){const C=this.updateItem(s,this.timelinePos);this.itemsMatch(s,C)&&(this.playingItem=C,this.waitingItem=this.endedItem=null)}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const A=this.bufferingItem;if(A){const C=this.updateItem(A,this.bufferedPos);this.itemsMatch(A,C)?this.bufferingItem=C:A.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(A.event,null))}if(n.forEach(C=>{C.assetList.forEach(D=>{this.clearAssetPlayer(D.identifier,null)})}),h||r){if(this.hls.trigger(d.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:c.slice(0),durations:u,removedIds:f}),this.isInterstitial(s)&&f.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Yu(e),this.schedule=new Vu(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(d.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(d.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(d.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(d.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(d.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(d.BUFFER_APPENDED,this.onBufferAppended,this),e.on(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(d.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(d.MEDIA_ENDED,this.onMediaEnded,this),e.on(d.ERROR,this.onError,this),e.on(d.DESTROYING,this.onDestroying,this)}unregisterListeners(){const e=this.hls;e&&(e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(d.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(d.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(d.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(d.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(d.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(d.BUFFER_CODECS,this.onBufferCodecs,this),e.off(d.BUFFER_APPENDED,this.onBufferAppended,this),e.off(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(d.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(d.MEDIA_ENDED,this.onMediaEnded,this),e.off(d.ERROR,this.onError,this),e.off(d.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;(e=this.getBufferingPlayer())==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.getBufferingPlayer())==null||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.manager=null,this.hls=this.HlsPlayerClass=this.schedule=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){Gi(e,"play",this.onPlay),Gi(e,"pause",this.onPause),Gi(e,"seeking",this.onSeeking),Gi(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;$i(n,"seeking",this.onSeeking),$i(n,"timeupdate",this.onTimeupdate),$i(n,"play",this.onPlay),$i(n,"pause",this.onPause)}onMediaAttached(e,t){const n=this.effectivePlayingItem,r=this.detachedData;if(this.detachedData=null,n===null)this.checkStart();else if(!r){this.clearScheduleState();const i=this.findItemIndex(n);this.setSchedulePosition(i)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(this.media=null,!n&&(r&&this.removeMediaListeners(r),this.detachedData)){const i=this.getBufferingPlayer();i&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,i.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.manager){if(!this.hls)return null;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=h=>h&&e.getAssetPlayer(h.identifier),r=(h,A,C,D,X)=>{if(h){let H=h[A].start;const Ae=h.event;if(Ae){if(A==="playout"||Ae.timelineOccupancy!==oa.Point){const Qe=n(C);(Qe==null?void 0:Qe.interstitial)===Ae&&(H+=Qe.assetItem.startOffset+Qe[X])}}else{const Qe=D==="bufferedPos"?s():e[D];H+=Qe-h.start}return H}return 0},i=(h,A)=>{if(h!==0&&A!=="primary"&&e.schedule.length){var C;const D=e.schedule.findItemIndexAtTime(h),X=(C=e.schedule.items)==null?void 0:C[D];if(X){const H=X[A].start-X.start;return h+H}}return h},s=()=>{const h=e.bufferedPos;return h===Number.MAX_VALUE?l("primary"):Math.max(h,0)},l=h=>{var A;return(A=e.primaryDetails)!=null&&A.live?e.primaryDetails.edge:e.schedule.durations[h]},c=(h,A)=>{var C,D;const X=e.effectivePlayingItem;if(X!=null&&(C=X.event)!=null&&C.restrictions.skip)return;e.log(`seek to ${h} "${A}"`);const H=e.effectivePlayingItem,Ae=e.schedule.findItemIndexAtTime(h,A),Qe=(D=e.schedule.items)==null?void 0:D[Ae],Ke=e.getBufferingPlayer(),bt=Ke==null?void 0:Ke.interstitial,St=bt==null?void 0:bt.appendInPlace,nn=H&&e.itemsMatch(H,Qe);if(H&&(St||nn)){const Qt=n(e.playingAsset),un=(Qt==null?void 0:Qt.media)||e.primaryMedia;if(un){const Nt=A==="primary"?un.currentTime:r(H,A,e.playingAsset,"timelinePos","currentTime"),In=h-Nt,Hn=(St?Nt:un.currentTime)+In;if(Hn>=0&&(!Qt||St||Hn<=Qt.duration)){un.currentTime=Hn;return}}}if(Qe){let Qt=h;if(A!=="primary"){const Nt=Qe[A].start,In=h-Nt;Qt=Qe.start+In}const un=!e.isInterstitial(Qe);if((!e.isInterstitial(H)||H.event.appendInPlace)&&(un||Qe.event.appendInPlace)){const Nt=e.media||(St?Ke==null?void 0:Ke.media:null);Nt&&(Nt.currentTime=Qt)}else if(H){const Nt=e.findItemIndex(H);if(Ae>Nt){const Hn=e.schedule.findJumpRestrictedIndex(Nt+1,Ae);if(Hn>Nt){e.setSchedulePosition(Hn);return}}let In=0;if(un)e.timelinePos=Qt,e.checkBuffer();else{var wt;const Hn=Qe==null||(wt=Qe.event)==null?void 0:wt.assetList;if(Hn){const kr=h-(Qe[A]||Qe).start;for(let vr=Hn.length;vr--;){const fr=Hn[vr];if(fr.duration&&kr>=fr.startOffset&&kr<fr.startOffset+fr.duration){In=vr;break}}}}e.setSchedulePosition(Ae,In)}}},u=()=>{const h=e.effectivePlayingItem;if(e.isInterstitial(h))return h;const A=t();return e.isInterstitial(A)?A:null},f={get currentTime(){const h=u(),A=e.effectivePlayingItem;return A&&A===h?r(A,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-A.playout.start:0},set currentTime(h){const A=u(),C=e.effectivePlayingItem;C&&C===A&&c(h+C.playout.start,"playout")},get duration(){const h=u();return h?h.playout.end-h.playout.start:0},get assetPlayers(){var h;const A=(h=u())==null?void 0:h.event.assetList;return A?A.map(C=>e.getAssetPlayer(C.identifier)):[]},get playingIndex(){var h;const A=(h=u())==null?void 0:h.event;return A&&e.effectivePlayingAsset?A.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return u()}};this.manager={get events(){var h,A;return((h=e.schedule)==null||(A=h.events)==null?void 0:A.slice(0))||[]},get schedule(){var h,A;return((h=e.schedule)==null||(A=h.items)==null?void 0:A.slice(0))||[]},get interstitialPlayer(){return u()?f:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const h=t();return e.findItemIndex(h)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const h=e.effectivePlayingItem;return e.findItemIndex(h)},primary:{get bufferedEnd(){return s()},get currentTime(){const h=e.timelinePos;return h>0?h:0},set currentTime(h){c(h,"primary")},get duration(){return l("primary")},get seekableStart(){var h;return((h=e.primaryDetails)==null?void 0:h.fragmentStart)||0}},integrated:{get bufferedEnd(){return r(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return r(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(h){c(h,"integrated")},get duration(){return l("integrated")},get seekableStart(){var h;return i(((h=e.primaryDetails)==null?void 0:h.fragmentStart)||0,"integrated")}},skip:()=>{const h=e.effectivePlayingItem,A=h==null?void 0:h.event;if(A&&!A.restrictions.skip){const C=e.findItemIndex(h);if(A.appendInPlace){const D=h.playout.start+h.event.duration;c(D+.001,"playout")}else e.advanceAfterAssetEnded(A,C,1/0)}}}}return this.manager}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,n=(e=this.schedule)==null?void 0:e.items;return!this.playbackStarted||!t||!n?!1:this.findItemIndex(t)===n.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var e,t,n;if(this.mediaSelection===null)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let i=this.media;!i&&(e=this.bufferingItem)!=null&&(t=e.event)!=null&&t.appendInPlace&&(i=this.primaryMedia);const s=(n=i)==null?void 0:n.currentTime;if(!(s===void 0||!p(s)))return s}get primaryMedia(){var e;return this.media||((e=this.detachedData)==null?void 0:e.media)||null}isInterstitial(e){return!!(e!=null&&e.event)}retreiveMediaSource(e,t){const n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){const n=e.interstitial.appendInPlace,r=e.media;if(n&&r===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&r){this.detachedData={media:r};return}const i=e.transferMedia();this.log(`transfer MediaSource from ${e} ${Ct(i)}`),this.detachedData=i}else t&&r&&(this.shouldPlay||(this.shouldPlay=!r.paused))}transferMediaTo(e,t){var n,r;if(e.media===t)return;let i=null;const s=this.hls,l=e!==s,c=l&&e.interstitial.appendInPlace,u=(n=this.detachedData)==null?void 0:n.mediaSource;let f;if(s.media)c&&(i=s.transferMedia(),this.detachedData=i),f="Primary";else if(u){const C=this.getBufferingPlayer();C?(i=C.transferMedia(),f=`${C}`):f="detached MediaSource"}else f="detached media";if(!i){if(u)i=this.detachedData,this.log(`using detachedData: MediaSource ${Ct(i)}`);else if(!this.detachedData||s.media===t){const C=this.playerQueue;C.length>1&&C.forEach(D=>{if(l&&D.interstitial.appendInPlace!==c){const X=D.interstitial;this.clearInterstitial(D.interstitial,null),X.appendInPlace=!1,X.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${X}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const h=i&&"mediaSource"in i&&((r=i.mediaSource)==null?void 0:r.readyState)!=="closed",A=h&&i?i:t;if(this.log(`${h?"transfering MediaSource":"attaching media"} to ${l?e:"Primary"} from ${f}`),A===i){const C=l&&e.assetId===this.schedule.assetIdAtEnd;A.overrides={duration:this.schedule.duration,endOfStream:!l||C,cueRemoval:!l}}e.attachMedia(A)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e.events;if(!t||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const n=this.timelinePos,r=this.effectivePlayingItem;if(n===-1){const i=this.hls.startPosition;if(this.timelinePos=i,t.length&&t[0].cue.pre){const s=e.findEventIndex(t[0].identifier);this.setSchedulePosition(s)}else if(i>=0||!this.primaryLive){const s=this.timelinePos=i>0?i:0,l=e.findItemIndexAtTime(s);this.setSchedulePosition(l)}}else if(r&&!this.playingItem){const i=e.findItemIndex(r);this.setSchedulePosition(i)}}advanceAfterAssetEnded(e,t,n){const r=n+1;if(!e.isAssetPastPlayoutLimit(r)&&!e.assetList[r].error)this.setSchedulePosition(t,r);else{const i=this.schedule.items;if(i){const s=t+1,l=i.length;if(s>=l){this.setSchedulePosition(-1);return}const c=e.resumeTime;this.timelinePos<c&&(this.timelinePos=c,this.checkBuffer()),this.setSchedulePosition(s)}}}setScheduleToAssetAtTime(e,t){const n=this.schedule,r=t.parentIdentifier,i=n.getEvent(r);if(i){const s=n.findEventIndex(r),l=n.findAssetIndex(i,e);this.setSchedulePosition(s,l)}}setSchedulePosition(e,t){const n=this.schedule.items;if(!n||this.playbackDisabled)return;this.log(`setSchedulePosition ${e}, ${t}`);const r=e>=0?n[e]:null,i=this.playingItem,s=this.playingLastItem;if(this.isInterstitial(i)){var l;const u=i.event,f=this.playingAsset,h=f==null?void 0:f.identifier,A=h?this.getAssetPlayer(h):null;if(A&&h&&(!this.eventItemsMatch(i,r)||t!==void 0&&h!==((l=u.assetList)==null?void 0:l[t].identifier))){var c;const C=u.findAssetIndex(f);this.log(`INTERSTITIAL_ASSET_ENDED ${C+1}/${u.assetList.length} ${Na(f)}`),this.endedAsset=f,this.playingAsset=null,this.hls.trigger(d.INTERSTITIAL_ASSET_ENDED,{asset:f,assetListIndex:C,event:u,schedule:n.slice(0),scheduleIndex:e,player:A}),this.retreiveMediaSource(h,r),A.media&&!((c=this.detachedData)!=null&&c.mediaSource)&&A.detachMedia()}if(!this.eventItemsMatch(i,r)&&(this.endedItem=i,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${u} ${hs(i)}`),u.hasPlayed=!0,this.hls.trigger(d.INTERSTITIAL_ENDED,{event:u,schedule:n.slice(0),scheduleIndex:e}),u.cue.once)){this.updateSchedule();const C=this.schedule.items;if(r&&C){const D=this.schedule.findItemIndex(r);this.advanceSchedule(D,C,t,i,s)}return}}this.advanceSchedule(e,n,t,i,s)}advanceSchedule(e,t,n,r,i){const s=e>=0?t[e]:null,l=this.primaryMedia,c=this.playerQueue;if(c.length&&c.forEach(u=>{const f=u.interstitial,h=this.schedule.findEventIndex(f.identifier);(h<e||h>e+1)&&this.clearInterstitial(f,s)}),this.isInterstitial(s)){this.timelinePos=Math.min(Math.max(this.timelinePos,s.start),s.end);const u=s.event;n===void 0&&(n=this.schedule.findAssetIndex(u,this.timelinePos));const f=this.waitingItem;this.assetsBuffered(s,l)||this.setBufferingItem(s);let h=this.preloadAssets(u,n);if(this.eventItemsMatch(s,f||r)||(this.waitingItem=s,this.log(`INTERSTITIAL_STARTED ${hs(s)} ${u.appendInPlace?"append in place":""}`),this.hls.trigger(d.INTERSTITIAL_STARTED,{event:u,schedule:t.slice(0),scheduleIndex:e})),!u.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${u}`);return}if(u.assetListLoader&&(u.assetListLoader.destroy(),u.assetListLoader=void 0),!l){this.log(`Waiting for attachMedia to start Interstitial ${u}`);return}this.waitingItem=this.endedItem=null,this.playingItem=s;const A=u.assetList[n];if(!A){const C=t[e+1],D=this.media;C&&D&&!this.isInterstitial(C)&&D.currentTime<C.start&&(D.currentTime=this.timelinePos=C.start),this.advanceAfterAssetEnded(u,e,n||0);return}if(h||(h=this.getAssetPlayer(A.identifier)),h===null||h.destroyed){const C=u.assetList.length;this.warn(`asset ${n+1}/${C} player destroyed ${u}`),h=this.createAssetPlayer(u,A,n)}if(!this.eventItemsMatch(s,this.bufferingItem)&&u.appendInPlace&&this.isAssetBuffered(A))return;this.startAssetPlayer(h,n,t,e,l),this.shouldPlay&&No(h.media)}else s!==null?(this.resumePrimary(s,e,r),this.shouldPlay&&No(this.hls.media)):i&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(this.schedule.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var e,t;return(e=this.mediaSelection)==null||(t=e.main)==null?void 0:t.details}get primaryLive(){var e;return!!((e=this.primaryDetails)!=null&&e.live)}resumePrimary(e,t,n){var r;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${hs(e)}`),!((r=this.detachedData)!=null&&r.mediaSource)){let s=this.timelinePos;(s<e.start||s>=e.end)&&(s=this.getPrimaryResumption(e,t),this.timelinePos=s),this.attachPrimary(s,e)}if(!n)return;const i=this.schedule.items;i&&(this.log(`resumed ${hs(e)}`),this.hls.trigger(d.INTERSTITIALS_PRIMARY_RESUMED,{schedule:i.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const n=e.start;if(this.primaryLive){const r=this.primaryDetails;if(t===0)return this.hls.startPosition;if(r&&(n<r.fragmentStart||n>r.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);return t!=null&&t.hls?t.hls.bufferedToEnd:Tn.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const r=this.primaryMedia;if(!r)return;const i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,r),n&&this.startLoadingPrimaryAt(e,n)),n||(this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;const r=this.hls;!r.loadingEnabled||!r.media||Math.abs((((n=r.mainForwardBufferInfo)==null?void 0:n.start)||r.media.currentTime)-e)>.5?r.startLoad(e,t):r.bufferingEnabled||r.resumeBuffering()}onManifestLoading(){this.stopLoad(),this.schedule.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(d.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(d.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(t.level===-1)return;const n=this.hls.levels[t.level],r=x(x({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=r,this.schedule.parseInterstitialDateRanges(r,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=x(x({},this.altSelection),{},{audio:n});return}const i=x(x({},r),{},{audio:n});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=x(x({},this.altSelection),{},{subtitles:n});return}const i=x(x({},r),{},{subtitles:n});this.mediaSelection=i}onAudioTrackSwitching(e,t){const n=Ie(t);this.playerQueue.forEach(r=>r.hls.setAudioOption(t)||r.hls.setAudioOption(n))}onSubtitleTrackSwitch(e,t){const n=Ie(t);this.playerQueue.forEach(r=>r.hls.setSubtitleOption(t)||t.id!==-1&&r.hls.setSubtitleOption(n))}onBufferCodecs(e,t){const n=t.tracks;n&&(this.requiredTracks=n)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){const r=this.timelinePos;this.bufferedPos=r,this.checkBuffer()}}onBufferedToEnd(e){const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let r=0;r<t.length;r++){const i=t[r];if(i.cue.post){var n;const s=this.schedule.findEventIndex(i.identifier),l=(n=this.schedule.items)==null?void 0:n[s];this.isInterstitial(l)&&this.eventItemsMatch(l,this.bufferingItem)&&this.bufferedToItem(l,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const n=this.findItemIndex(t);this.setSchedulePosition(n+1)}else this.shouldPlay=!1}updateItem(e,t){const n=this.schedule.items;if(e&&n){const r=this.findItemIndex(e,t);return n[r]||null}return null}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var n;return!!t&&(e===t||e.event.identifier===((n=t.event)==null?void 0:n.identifier))}findItemIndex(e,t){return e?this.schedule.findItemIndex(e,t):-1}updateSchedule(){const e=this.mediaSelection;e&&this.schedule.updateSchedule(e,[])}checkBuffer(e){const t=this.schedule.items;if(!t)return;const n=Tn.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=n.len<1),this.updateBufferedPos(n.end,t,e)}updateBufferedPos(e,t,n){const r=this.schedule,i=this.bufferingItem;if(this.bufferedPos>e)return;if(t.length===1&&this.itemsMatch(t[0],i)){this.bufferedPos=e;return}const s=this.playingItem,l=this.findItemIndex(s);let c=r.findItemIndexAtTime(e);if(this.bufferedPos<e){var u,f;const h=this.findItemIndex(i),A=Math.min(h+1,t.length-1),C=t[A];if((c===-1&&i&&e>=i.end||(u=C.event)!=null&&u.appendInPlace&&e+.01>=C.start)&&(c=A),A-l>1&&(i==null||(f=i.event)==null?void 0:f.appendInPlace)===!1)return;if(this.bufferedPos=e,c>h&&c>l)this.bufferedToItem(C);else{const D=this.primaryDetails;this.primaryLive&&D&&e>D.edge-D.targetduration&&C.start<D.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(C)&&this.preloadAssets(C.event,0)}}else n&&s&&!this.itemsMatch(s,i)&&(c===l?this.bufferedToItem(s):c===l+1&&this.bufferedToItem(t[c]))}assetsBuffered(e,t){return e.event.assetList.length===0?!1:!e.event.assetList.some(r=>{const i=this.getAssetPlayer(r.identifier);return!(i!=null&&i.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(this.itemsMatch(e,t))this.bufferingItem!==e&&(this.bufferingItem=e);else{const{items:r,events:i}=n;if(!r||!i)return t;const s=this.isInterstitial(e),l=this.getBufferingPlayer();if(this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos)),!this.playbackDisabled){const c=l?l.remaining:t?t.end-this.timelinePos:0;this.log(`buffered to boundary ${hs(e)}`+(t?` (${c.toFixed(2)} remaining)`:"")),s?e.event.assetList.forEach(u=>{const f=this.getAssetPlayer(u.identifier);f&&f.resumeBuffering()}):(this.hls.resumeBuffering(),this.playerQueue.forEach(u=>u.pauseBuffering()))}this.hls.trigger(d.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:i.slice(0),schedule:r.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}return t}bufferedToItem(e,t=0){const n=this.setBufferingItem(e);if(!this.playbackDisabled){if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(n!==null){this.bufferingAsset=null;const r=this.detachedData;r?r.mediaSource?this.attachPrimary(e.start,e,!0):this.preloadPrimary(e):this.preloadPrimary(e)}}}preloadPrimary(e){const t=this.findItemIndex(e),n=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(n)}bufferedToEvent(e,t){const n=e.event,r=n.assetList.length===0&&!n.assetListLoader,i=n.cue.once;if(r||!i){const s=this.preloadAssets(n,t);if(s!=null&&s.interstitial.appendInPlace){const l=n.assetList[t],c=this.primaryMedia;l&&c&&this.bufferAssetPlayer(s,c)}}}preloadAssets(e,t){const n=e.assetUrl,r=e.assetList.length,i=r===0&&!e.assetListLoader,s=e.cue.once;if(i){const c=e.timelineStart;if(e.appendInPlace){var l;const A=this.playingItem;!this.isInterstitial(A)&&(A==null||(l=A.nextEvent)==null?void 0:l.identifier)===e.identifier&&this.flushFrontBuffer(c+.25)}let u,f=0;if(!this.playingItem&&this.primaryLive&&(f=this.hls.startPosition,f===-1&&(f=this.hls.liveSyncPosition||0)),f&&!(e.cue.pre||e.cue.post)){const A=f-c;A>0&&(u=Math.round(A*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:r} ${e}${u?` live-start: ${f} start-offset: ${u}`:""}`),n)return this.createAsset(e,0,0,c,e.duration,n);const h=this.assetListLoader.loadAssetList(e,u);h&&(e.assetListLoader=h)}else if(!s&&r){for(let c=t;c<r;c++){const u=e.assetList[c],f=this.getAssetPlayerQueueIndex(u.identifier);(f===-1||this.playerQueue[f].destroyed)&&!u.error&&this.createAssetPlayer(e,u,c)}return this.getAssetPlayer(e.assetList[t].identifier)}return null}flushFrontBuffer(e){const t=this.requiredTracks;if(!t)return;this.log(`Removing front buffer starting at ${e}`),Object.keys(t).forEach(r=>{this.hls.trigger(d.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:r})})}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let n=0;n<t.length;n++)if(e===t[n].assetId)return n;return-1}getAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}getBufferingPlayer(){const{playerQueue:e,primaryMedia:t}=this;if(t){for(let n=0;n<e.length;n++)if(e[n].media===t)return e[n]}return null}createAsset(e,t,n,r,i,s){const l={parentIdentifier:e.identifier,identifier:ju(e,s,t),duration:i,startOffset:n,timelineStart:r,uri:s};return this.createAssetPlayer(e,l,t)}createAssetPlayer(e,t,n){this.log(`create HLSAssetPlayer for ${Na(t)}`);const r=this.hls,i=r.userConfig;let s=i.videoPreference;const l=r.loadLevelObj||r.levels[r.currentLevel];(s||l)&&(s=m({},s),l.videoCodec&&(s.videoCodec=l.videoCodec),l.videoRange&&(s.allowedVideoRanges=[l.videoRange]));const c=r.audioTracks[r.audioTrack],u=r.subtitleTracks[r.subtitleTrack];let f=0;if(this.primaryLive||e.appendInPlace){const Ke=this.timelinePos-t.timelineStart;if(Ke>1){const bt=t.duration;bt&&Ke<bt&&(f=Ke)}}const h=t.identifier,A=x(x({},i),{},{autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:h,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:f,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:c||i.audioPreference,subtitlePreference:u||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(A.timelineOffset=t.timelineStart));const C=A.cmcd;C!=null&&C.sessionId&&C.contentId&&(A.cmcd=m({},C,{contentId:Gs(t.uri)})),this.getAssetPlayer(h)&&this.warn(`Duplicate date range identifier ${e} and asset ${h}`);const D=new Hu(this.HlsPlayerClass,A,e,t);this.playerQueue.push(D),e.assetList[n]=t;const X=Ke=>{if(Ke.live){const nn=new Error(`Interstitials MUST be VOD assets ${e}`),wt={fatal:!0,type:me.OTHER_ERROR,details:O.INTERSTITIAL_ASSET_ITEM_ERROR,error:nn};this.handleAssetItemError(wt,e,this.schedule.findEventIndex(e.identifier),n,nn.message);return}const bt=Ke.edge-Ke.fragmentStart,St=t.duration;(St===null||bt>St)&&(this.log(`Interstitial asset "${h}" duration change ${St} > ${bt}`),t.duration=bt,this.updateSchedule())};D.on(d.LEVEL_UPDATED,(Ke,{details:bt})=>X(bt)),D.on(d.LEVEL_PTS_UPDATED,(Ke,{details:bt})=>X(bt));const H=(Ke,bt)=>{const St=this.getAssetPlayer(h);if(St&&bt.tracks){St.off(d.BUFFER_CODECS,H),St.tracks=bt.tracks;const nn=this.primaryMedia;this.bufferingAsset===St.assetItem&&nn&&!St.media&&this.bufferAssetPlayer(St,nn)}};D.on(d.BUFFER_CODECS,H);const Ae=()=>{var Ke;const bt=this.getAssetPlayer(h);if(this.log(`buffered to end of asset ${bt}`),!bt)return;const St=this.schedule.findEventIndex(e.identifier),nn=e.findAssetIndex(t),wt=nn+1,Qt=(Ke=this.schedule.items)==null?void 0:Ke[St];if(this.isInterstitial(Qt))if(nn!==-1&&!e.isAssetPastPlayoutLimit(wt)&&!e.assetList[wt].error)this.bufferedToItem(Qt,wt);else{var un;const Nt=(un=this.schedule.items)==null?void 0:un[St+1];Nt&&this.bufferedToItem(Nt)}};D.on(d.BUFFERED_TO_END,Ae);const Qe=Ke=>()=>{if(!this.getAssetPlayer(h))return;this.shouldPlay=!0;const St=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,St,Ke)};return D.once(d.MEDIA_ENDED,Qe(n)),D.once(d.PLAYOUT_LIMIT_REACHED,Qe(1/0)),D.on(d.ERROR,(Ke,bt)=>{const St=this.getAssetPlayer(h);if(bt.details===O.BUFFER_STALLED_ERROR){if(St!=null&&St.media){const nn=St.currentTime,wt=St.duration-nn;nn&&e.appendInPlace&&wt/St.media.playbackRate<.5?(this.log(`Advancing buffer past end of asset ${h} ${e} at ${St.media.currentTime}`),Ae()):(this.warn(`Stalled at ${nn} of ${nn+wt} in asset ${h} ${e}`),this.onTimeupdate(),this.checkBuffer(!0))}return}this.handleAssetItemError(bt,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${bt.error} ${e}`)}),D.on(d.DESTROYING,()=>{if(!this.getAssetPlayer(h))return;const bt=new Error(`Asset player destroyed unexpectedly ${h}`),St={fatal:!0,type:me.OTHER_ERROR,details:O.INTERSTITIAL_ASSET_ITEM_ERROR,error:bt};this.handleAssetItemError(St,e,this.schedule.findEventIndex(e.identifier),n,bt.message)}),this.hls.trigger(d.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:D}),D}clearInterstitial(e,t){e.assetList.forEach(n=>{this.clearAssetPlayer(n.identifier,t)}),e.reset()}clearAssetPlayer(e,t){const n=this.getAssetPlayerQueueIndex(e);if(n!==-1){this.log(`clearAssetPlayer "${e}" toSegment: ${t&&hs(t)}`);const r=this.playerQueue[n];this.transferMediaFromPlayer(r,t),this.playerQueue.splice(n,1),r.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,n,r,i){const{interstitial:s,assetItem:l,assetId:c}=e,u=s.assetList.length,f=this.playingAsset;this.endedAsset=null,this.playingAsset=l,(!f||f.identifier!==c)&&(f&&(this.clearAssetPlayer(f.identifier,n[r]),delete f.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${u} ${e}`),this.hls.trigger(d.INTERSTITIAL_ASSET_STARTED,{asset:l,assetListIndex:t,event:s,schedule:n.slice(0),scheduleIndex:r,player:e})),this.bufferAssetPlayer(e,i)}bufferAssetPlayer(e,t){var n,r;const{interstitial:i,assetItem:s,assetId:l}=e,c=this.schedule.findEventIndex(i.identifier),u=(n=this.schedule.items)==null?void 0:n[c];if(!u)return;this.setBufferingItem(u),this.bufferingAsset=s;const f=this.getBufferingPlayer();if(f===e)return;const h=i.appendInPlace;if(h&&(f==null?void 0:f.interstitial.appendInPlace)===!1)return;const A=(f==null?void 0:f.tracks)||((r=this.detachedData)==null?void 0:r.tracks)||this.requiredTracks;if(h&&s!==this.playingAsset){if(!e.tracks)return;if(A&&!he(A,e.tracks)){const C=new Error(`Asset "${l}" SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(A)}')`),D={fatal:!0,type:me.OTHER_ERROR,details:O.INTERSTITIAL_ASSET_ITEM_ERROR,error:C},X=i.findAssetIndex(s);this.handleAssetItemError(D,i,c,X,C.message);return}}this.transferMediaTo(e,t)}handleAssetItemError(e,t,n,r,i){if(e.details===O.BUFFER_STALLED_ERROR)return;const s=t.assetList[r]||null;let l=null;if(s){const h=this.getAssetPlayerQueueIndex(s.identifier);l=this.playerQueue[h]||null}const c=this.schedule.items,u=m({},e,{fatal:!1,errorAction:Ye(!0),asset:s,assetListIndex:r,event:t,schedule:c,scheduleIndex:n,player:l});if(this.warn(`Asset item error: ${e.error}`),this.hls.trigger(d.INTERSTITIAL_ASSET_ERROR,u),!e.fatal)return;const f=new Error(i);s&&(this.playingAsset!==s&&this.clearAssetPlayer(s.identifier,null),s.error=f),t.assetList.some(h=>!h.error)?t.appendInPlace&&(t.error=f):t.error=f,this.primaryFallback(t)}primaryFallback(e){const t=e.timelineStart,n=this.effectivePlayingItem;if(this.updateSchedule(),n){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${n?hs(n):"<none>"} error: ${e.error}`),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t));let r=this.timelinePos;r===-1&&(r=this.hls.startPosition);const i=this.updateItem(n,r);if(this.itemsMatch(n,i))this.clearInterstitial(e,null);else{const s=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(s)}}else this.checkStart()}onAssetListLoaded(e,t){var n;const r=t.event,i=r.identifier,s=t.assetListResponse.ASSETS;if(!this.schedule.hasEvent(i))return;const l=r.timelineStart,c=r.duration;let u=0;s.forEach((D,X)=>{const H=parseFloat(D.DURATION);this.createAsset(r,X,u,l+u,H,D.URI),u+=H}),r.duration=u,this.log(`Loaded asset-list with duration: ${u} (was: ${c}) ${r}`);const f=this.waitingItem,h=(f==null?void 0:f.event.identifier)===i;this.updateSchedule();const A=(n=this.bufferingItem)==null?void 0:n.event;if(h){var C;const D=this.schedule.findEventIndex(i),X=(C=this.schedule.items)==null?void 0:C[D];if(X){if(!this.playingItem&&this.timelinePos>X.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==D){r.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${r}`),this.primaryFallback(r);return}this.setBufferingItem(X)}this.setSchedulePosition(D)}else if((A==null?void 0:A.identifier)===i&&A.appendInPlace){const D=r.assetList[0],X=this.getAssetPlayer(D.identifier),H=this.primaryMedia;D&&X&&H&&this.bufferAssetPlayer(X,H)}}onError(e,t){switch(t.details){case O.ASSET_LIST_PARSING_ERROR:case O.ASSET_LIST_LOAD_ERROR:case O.ASSET_LIST_LOAD_TIMEOUT:{const n=t.interstitial;n&&this.primaryFallback(n);break}case O.BUFFER_STALLED_ERROR:{this.onTimeupdate(),this.checkBuffer(!0);break}}}}const Mo=500;class Qu extends ni{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",le.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(d.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(d.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(d.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(d.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(d.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(d.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=on.IDLE,this.setInterval(Mo),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,success:r}=t;if(ce(n)&&(this.fragPrevious=n),this.state=on.IDLE,!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const l=n.start;for(let u=0;u<i.length;u++)if(l>=i[u].start&&l<=i[u].end){s=i[u];break}const c=n.start+n.duration;s?s.end=c:(s={start:l,end:c},i.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:n,endOffset:r}=t;if(n===0&&r!==Number.POSITIVE_INFINITY){const i=r-1;if(i<=0)return;t.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach(s=>{for(let l=0;l<s.length;){if(s[l].end<=i){s.shift();continue}else if(s[l].start<i)s[l].start=i;else break;l++}}),this.fragmentTracker.removeFragmentsInRange(n,i,le.SUBTITLE)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===le.SUBTITLE&&(t.details===O.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==on.STOPPED&&(this.state=on.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&vo(this.levels,t)){this.levels=t.map(n=>new dt(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new dt(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,le.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,!((n=this.levels)!=null&&n.length)||this.currentTrackId===-1){this.clearInterval();return}const r=this.levels[this.currentTrackId];r!=null&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.state!==on.STOPPED&&this.setInterval(Mo)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:i}=this,{details:s,id:l}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${l}`);return}const c=i[l];if(l>=i.length||!c)return;this.log(`Subtitle track ${l} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let u=0;if(s.live||(n=c.details)!=null&&n.live){const h=this.mainDetails;if(s.deltaUpdateFailed||!h)return;const A=h.fragments[0];if(!c.details)s.hasProgramDateTime&&h.hasProgramDateTime?(Mr(s,h),u=s.fragmentStart):A&&(u=A.start,Wr(s,u));else{var f;u=this.alignPlaylists(s,c.details,(f=this.levelLastLoaded)==null?void 0:f.details),u===0&&A&&(u=A.start,Wr(s,u))}}c.details=s,this.levelLastLoaded=c,l===r&&(this.hls.trigger(d.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:t.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===on.IDLE&&(Zn(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),c.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e,r=t.decryptdata,i=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&r!=null&&r.key&&r.iv&&Kr(r.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,Ur(r.method)).catch(l=>{throw i.trigger(d.ERROR,{type:me.MEDIA_ERROR,details:O.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:t}),l}).then(l=>{const c=performance.now();i.trigger(d.FRAG_DECRYPTED,{frag:t,payload:l,stats:{tstart:s,tdecrypt:c}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=on.IDLE})}}doTick(){if(!this.media){this.state=on.IDLE;return}if(this.state===on.IDLE){const{currentTrackId:e,levels:t}=this,n=t==null?void 0:t[e];if(!n||!t.length||!n.details||this.waitForLive(n))return;const{config:r}=this,i=this.getLoadPosition(),s=Tn.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:l,len:c}=s,u=n.details,f=this.hls.maxBufferLength+u.levelTargetDuration;if(c>f)return;const h=u.fragments,A=h.length,C=u.edge;let D=null;const X=this.fragPrevious;if(l<C){const Qe=r.maxFragLookUpTolerance,Ke=l>C-Qe?0:Qe;D=Zn(X,h,Math.max(h[0].start,l),Ke),!D&&X&&X.start<h[0].start&&(D=h[0])}else D=h[A-1];if(D=this.filterReplacedPrimary(D,n.details),!D)return;const H=D.sn-u.startSN,Ae=h[H-1];if(Ae&&Ae.cc===D.cc&&this.fragmentTracker.getState(Ae)===it.NOT_LOADED&&(D=Ae),this.fragmentTracker.getState(D)===it.NOT_LOADED){const Qe=this.mapToInitFragWhenRequired(D);Qe&&this.loadFragment(Qe,n,l)}}}loadFragment(e,t,n){ce(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Ju(this.tracksBuffered[this.currentTrackId]||[])}}class Ju{constructor(e){this.buffered=void 0;const t=(n,r,i)=>{if(r=r>>>0,r>i-1)throw new DOMException(`Failed to execute '${n}' on 'TimeRanges': The index provided (${r}) is greater than the maximum bound (${i})`);return e[r][n]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}const qu={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Oo=a=>String.fromCharCode(qu[a]||a),Pi=15,es=100,$u={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},ec={17:2,18:4,21:6,22:8,23:10,19:13,20:15},tc={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},nc={25:2,26:4,29:6,30:8,31:10,27:13,28:15},rc=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class ic{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;W.log(`${this.time} [${e}] ${n}`)}}}const ys=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class Fo{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){const t=["foreground","underline","italics","background","flash"];for(let n=0;n<t.length;n++){const r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}}isDefault(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class sc{constructor(){this.uchar=" ",this.penState=new Fo}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.copy(t)}setPenState(e){this.penState.copy(e)}equals(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}copy(e){this.uchar=e.uchar,this.penState.copy(e.penState)}isEmpty(){return this.uchar===" "&&this.penState.isDefault()}}class ac{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Fo,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<es;t++)this.chars.push(new sc);this.logger=e}equals(e){for(let t=0;t<es;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<es;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<es;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e}setCursor(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>es&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=es)}moveCursor(e){const t=this.pos+e;if(e>1)for(let n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const t=Oo(e);if(this.pos>=es){this.logger.log(0,()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1)}clearFromPos(e){let t;for(t=e;t<es;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const e=[];let t=!0;for(let n=0;n<es;n++){const r=this.chars[n].uchar;r!==" "&&(t=!1),e.push(r)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class Ma{constructor(e){this.rows=[],this.currRow=Pi-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Pi;t++)this.rows.push(new ac(e));this.logger=e}reset(){for(let e=0;e<Pi;e++)this.rows[e].clear();this.currRow=Pi-1}equals(e){let t=!0;for(let n=0;n<Pi;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Pi;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Pi;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+Ct(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let l=0;l<Pi;l++)this.rows[l].clear();const i=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const l=s.rows[i].cueStartTime,c=this.logger.time;if(l!==null&&c!==null&&l<c)for(let u=0;u<this.nrRollUpRows;u++)this.rows[t-this.nrRollUpRows+u+1].copy(s.rows[i+u])}}this.currRow=t;const n=this.rows[this.currRow];if(e.indent!==null){const i=e.indent,s=Math.max(i-1,0);n.setCursor(e.indent),e.color=n.chars[s].penState.foreground}const r={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(r)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+Ct(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let n="",r=-1;for(let i=0;i<Pi;i++){const s=this.rows[i].getTextString();s&&(r=i+1,e?t.push("Row "+r+": '"+s+"'"):t.push(s.trim()))}return t.length>0&&(e?n="["+t.join(" | ")+"]":n=t.join(`
|
|
`)),n}getTextAndFormat(){return this.rows}}class Bo{constructor(e,t,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new Ma(n),this.nonDisplayedMemory=new Ma(n),this.lastOutputScreen=new Ma(n),this.currRollUpRow=this.displayedMemory.rows[Pi-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[Pi-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let n=0;n<e.length;n++)this.writeScreen.insertChar(e[n]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{const n=Math.floor(e/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[n]}this.logger.log(2,"MIDROW: "+Ct(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;t!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=t:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class Uo{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=lc(),this.logger=void 0;const r=this.logger=new ic;this.channels=[null,new Bo(e,t,r),new Bo(e+1,n,r)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let n=0;n<t.length;n+=2){const r=t[n]&127,i=t[n+1]&127;let s=!1,l=null;if(r===0&&i===0)continue;this.logger.log(3,()=>"["+ys([t[n],t[n+1]])+"] -> ("+ys([r,i])+")");const c=this.cmdHistory;if(r>=16&&r<=31){if(oc(r,i,c)){la(null,null,c),this.logger.log(3,()=>"Repeated command ("+ys([r,i])+") is dropped");continue}la(r,i,this.cmdHistory),s=this.parseCmd(r,i),s||(s=this.parseMidrow(r,i)),s||(s=this.parsePAC(r,i)),s||(s=this.parseBackgroundAttributes(r,i))}else la(null,null,c);if(!s&&(l=this.parseChars(r,i),l)){const f=this.currentChannel;f&&f>0?this.channels[f].insertChars(l):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!l&&this.logger.log(2,()=>"Couldn't parse cleaned data "+ys([r,i])+" orig: "+ys([t[n],t[n+1]]))}}parseCmd(e,t){const n=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=33&&t<=35;if(!(n||r))return!1;const i=e===20||e===21||e===23?1:2,s=this.channels[i];return e===20||e===21||e===28||e===29?t===32?s.ccRCL():t===33?s.ccBS():t===34?s.ccAOF():t===35?s.ccAON():t===36?s.ccDER():t===37?s.ccRU(2):t===38?s.ccRU(3):t===39?s.ccRU(4):t===40?s.ccFON():t===41?s.ccRDC():t===42?s.ccTR():t===43?s.ccRTD():t===44?s.ccEDM():t===45?s.ccCR():t===46?s.ccENM():t===47&&s.ccEOC():s.ccTO(t-32),this.currentChannel=i,!0}parseMidrow(e,t){let n=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?n=1:n=2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const r=this.channels[n];return r?(r.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+ys([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let n;const r=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,i=(e===16||e===24)&&t>=64&&t<=95;if(!(r||i))return!1;const s=e<=23?1:2;t>=64&&t<=95?n=s===1?$u[e]:tc[e]:n=s===1?ec[e]:nc[e];const l=this.channels[s];return l?(l.setPAC(this.interpretPAC(n,t)),this.currentChannel=s,!0):!1}interpretPAC(e,t){let n;const r={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?n=t-96:n=t-64,r.underline=(n&1)===1,n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=Math.floor((n-16)/2)*4,r}parseChars(e,t){let n,r=null,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){let s;i===17?s=t+80:i===18?s=t+112:s=t+144,this.logger.log(2,()=>"Special char '"+Oo(s)+"' in channel "+n),r=[s]}else e>=32&&e<=127&&(r=t===0?[e]:[e,t]);return r&&this.logger.log(3,()=>"Char codes = "+ys(r).join(",")),r}parseBackgroundAttributes(e,t){const n=(e===16||e===24)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=45&&t<=47;if(!(n||r))return!1;let i;const s={};e===16||e===24?(i=Math.floor((t-32)/2),s.background=rc[i],t%2===1&&(s.background=s.background+"_semi")):t===45?s.background="transparent":(s.foreground="black",t===47&&(s.underline=!0));const l=e<=23?1:2;return this.channels[l].setBkgData(s),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}la(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const n=this.channels[t];n&&n.cueSplitAtTime(e)}}}function la(a,e,t){t.a=a,t.b=e}function oc(a,e,t){return t.a===a&&t.b===e}function lc(){return{a:null,b:null}}var Oa=function(){if(mr!=null&&mr.VTTCue)return self.VTTCue;const a=["","lr","rl"],e=["start","middle","end","left","right"];function t(l,c){if(typeof c!="string"||!Array.isArray(l))return!1;const u=c.toLowerCase();return~l.indexOf(u)?u:!1}function n(l){return t(a,l)}function r(l){return t(e,l)}function i(l,...c){let u=1;for(;u<arguments.length;u++){const f=arguments[u];for(const h in f)l[h]=f[h]}return l}function s(l,c,u){const f=this,h={enumerable:!0};f.hasBeenReset=!1;let A="",C=!1,D=l,X=c,H=u,Ae=null,Qe="",Ke=!0,bt="auto",St="start",nn=50,wt="middle",Qt=50,un="middle";Object.defineProperty(f,"id",i({},h,{get:function(){return A},set:function(Nt){A=""+Nt}})),Object.defineProperty(f,"pauseOnExit",i({},h,{get:function(){return C},set:function(Nt){C=!!Nt}})),Object.defineProperty(f,"startTime",i({},h,{get:function(){return D},set:function(Nt){if(typeof Nt!="number")throw new TypeError("Start time must be set to a number.");D=Nt,this.hasBeenReset=!0}})),Object.defineProperty(f,"endTime",i({},h,{get:function(){return X},set:function(Nt){if(typeof Nt!="number")throw new TypeError("End time must be set to a number.");X=Nt,this.hasBeenReset=!0}})),Object.defineProperty(f,"text",i({},h,{get:function(){return H},set:function(Nt){H=""+Nt,this.hasBeenReset=!0}})),Object.defineProperty(f,"region",i({},h,{get:function(){return Ae},set:function(Nt){Ae=Nt,this.hasBeenReset=!0}})),Object.defineProperty(f,"vertical",i({},h,{get:function(){return Qe},set:function(Nt){const In=n(Nt);if(In===!1)throw new SyntaxError("An invalid or illegal string was specified.");Qe=In,this.hasBeenReset=!0}})),Object.defineProperty(f,"snapToLines",i({},h,{get:function(){return Ke},set:function(Nt){Ke=!!Nt,this.hasBeenReset=!0}})),Object.defineProperty(f,"line",i({},h,{get:function(){return bt},set:function(Nt){if(typeof Nt!="number"&&Nt!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");bt=Nt,this.hasBeenReset=!0}})),Object.defineProperty(f,"lineAlign",i({},h,{get:function(){return St},set:function(Nt){const In=r(Nt);if(!In)throw new SyntaxError("An invalid or illegal string was specified.");St=In,this.hasBeenReset=!0}})),Object.defineProperty(f,"position",i({},h,{get:function(){return nn},set:function(Nt){if(Nt<0||Nt>100)throw new Error("Position must be between 0 and 100.");nn=Nt,this.hasBeenReset=!0}})),Object.defineProperty(f,"positionAlign",i({},h,{get:function(){return wt},set:function(Nt){const In=r(Nt);if(!In)throw new SyntaxError("An invalid or illegal string was specified.");wt=In,this.hasBeenReset=!0}})),Object.defineProperty(f,"size",i({},h,{get:function(){return Qt},set:function(Nt){if(Nt<0||Nt>100)throw new Error("Size must be between 0 and 100.");Qt=Nt,this.hasBeenReset=!0}})),Object.defineProperty(f,"align",i({},h,{get:function(){return un},set:function(Nt){const In=r(Nt);if(!In)throw new SyntaxError("An invalid or illegal string was specified.");un=In,this.hasBeenReset=!0}})),f.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class uc{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Zo(a){function e(n,r,i,s){return(n|0)*3600+(r|0)*60+(i|0)+parseFloat(s||0)}const t=a.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return t?parseFloat(t[2])>59?e(t[2],t[3],0,t[4]):e(t[1],t[2],t[3],t[4]):null}class cc{constructor(){this.values=Object.create(null)}set(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)}get(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,n){for(let r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1}}function Ko(a,e,t,n){const r=n?a.split(n):[a];for(const i in r){if(typeof r[i]!="string")continue;const s=r[i].split(t);if(s.length!==2)continue;const l=s[0],c=s[1];e(l,c)}}const Fa=new Oa(0,0,""),ua=Fa.align==="middle"?"middle":"center";function dc(a,e,t){const n=a;function r(){const l=Zo(a);if(l===null)throw new Error("Malformed timestamp: "+n);return a=a.replace(/^[^\sa-zA-Z-]+/,""),l}function i(l,c){const u=new cc;Ko(l,function(A,C){let D;switch(A){case"region":for(let X=t.length-1;X>=0;X--)if(t[X].id===C){u.set(A,t[X].region);break}break;case"vertical":u.alt(A,C,["rl","lr"]);break;case"line":D=C.split(","),u.integer(A,D[0]),u.percent(A,D[0])&&u.set("snapToLines",!1),u.alt(A,D[0],["auto"]),D.length===2&&u.alt("lineAlign",D[1],["start",ua,"end"]);break;case"position":D=C.split(","),u.percent(A,D[0]),D.length===2&&u.alt("positionAlign",D[1],["start",ua,"end","line-left","line-right","auto"]);break;case"size":u.percent(A,C);break;case"align":u.alt(A,C,["start",ua,"end","left","right"]);break}},/:/,/\s/),c.region=u.get("region",null),c.vertical=u.get("vertical","");let f=u.get("line","auto");f==="auto"&&Fa.line===-1&&(f=-1),c.line=f,c.lineAlign=u.get("lineAlign","start"),c.snapToLines=u.get("snapToLines",!0),c.size=u.get("size",100),c.align=u.get("align",ua);let h=u.get("position","auto");h==="auto"&&Fa.position===50&&(h=c.align==="start"||c.align==="left"?0:c.align==="end"||c.align==="right"?100:50),c.position=h}function s(){a=a.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),a.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+n);a=a.slice(3),s(),e.endTime=r(),s(),i(a,e)}function zo(a){return a.replace(/<br(?: \/)?>/gi,`
|
|
`)}class fc{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new uc,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function n(){let i=t.buffer,s=0;for(i=zo(i);s<i.length&&i[s]!=="\r"&&i[s]!==`
|
|
`;)++s;const l=i.slice(0,s);return i[s]==="\r"&&++s,i[s]===`
|
|
`&&++s,t.buffer=i.slice(s),l}function r(i){Ko(i,function(s,l){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=n();const l=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(l!=null&&l[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let s=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(s?s=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;if(t.cue=new Oa(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{dc(i,t.cue,t.regionList)}catch(l){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const l=i.indexOf("-->")!==-1;if(!i||l&&(s=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(t.cue===null)continue;t.cue.text&&(t.cue.text+=`
|
|
`),t.cue.text+=i}continue;case"BADCUE":i||(t.state="ID")}}}catch(i){t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||e.state==="HEADER")&&(e.buffer+=`
|
|
|
|
`,e.parse()),e.state==="INITIAL"||e.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}const hc=/\r\n|\n\r|\n|\r/g,Ba=function(e,t,n=0){return e.slice(n,n+t.length)===t},pc=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!p(t)||!p(n)||!p(r)||!p(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t};function Ua(a,e,t){return Gs(a.toString())+Gs(e.toString())+Gs(t)}const mc=function(e,t,n){let r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new){e.ccOffset=e.presentationOffset=r.start,r.new=!1;return}for(;(s=i)!=null&&s.new;){var s;e.ccOffset+=r.start-i.start,r.new=!1,r=i,i=e[r.prevCC]}e.presentationOffset=n};function gc(a,e,t,n,r,i,s){const l=new fc,c=Oe(new Uint8Array(a)).trim().replace(hc,`
|
|
`).split(`
|
|
`),u=[],f=e?Zl(e.baseTime,e.timescale):0;let h="00:00.000",A=0,C=0,D,X=!0;l.oncue=function(H){const Ae=t[n];let Qe=t.ccOffset;const Ke=(A-f)/9e4;if(Ae!=null&&Ae.new&&(C!==void 0?Qe=t.ccOffset=Ae.start:mc(t,n,Ke)),Ke){if(!e){D=new Error("Missing initPTS for VTT MPEGTS");return}Qe=Ke-t.presentationOffset}const bt=H.endTime-H.startTime,St=Di((H.startTime+Qe-C)*9e4,r*9e4)/9e4;H.startTime=Math.max(St,0),H.endTime=Math.max(St+bt,0);const nn=H.text.trim();H.text=decodeURIComponent(encodeURIComponent(nn)),H.id||(H.id=Ua(H.startTime,H.endTime,nn)),H.endTime>0&&u.push(H)},l.onparsingerror=function(H){D=H},l.onflush=function(){if(D){s(D);return}i(u)},c.forEach(H=>{if(X)if(Ba(H,"X-TIMESTAMP-MAP=")){X=!1,H.slice(16).split(",").forEach(Ae=>{Ba(Ae,"LOCAL:")?h=Ae.slice(6):Ba(Ae,"MPEGTS:")&&(A=parseInt(Ae.slice(7)))});try{C=pc(h)/1e3}catch(Ae){D=Ae}return}else H===""&&(X=!1);l.parse(H+`
|
|
`)}),l.flush()}const Za="stpp.ttml.im1t",jo=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Go=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,vc={left:"start",center:"center",right:"end",start:"start",end:"end"};function Wo(a,e,t,n){const r=M(new Uint8Array(a),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(l=>Oe(l)),s=Ul(e.baseTime,1,e.timescale);try{i.forEach(l=>t(yc(l,s)))}catch(l){n(l)}}function yc(a,e){const r=new DOMParser().parseFromString(a,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(i).reduce((h,A)=>(h[A]=r.getAttribute(`ttp:${A}`)||i[A],h),{}),l=r.getAttribute("xml:space")!=="preserve",c=Ho(Ka(r,"styling","style")),u=Ho(Ka(r,"layout","region")),f=Ka(r,"body","[begin]");return[].map.call(f,h=>{const A=Vo(h,l);if(!A||!h.hasAttribute("begin"))return null;const C=ja(h.getAttribute("begin"),s),D=ja(h.getAttribute("dur"),s);let X=ja(h.getAttribute("end"),s);if(C===null)throw Yo(h);if(X===null){if(D===null)throw Yo(h);X=C+D}const H=new Oa(C-e,X-e,A);H.id=Ua(H.startTime,H.endTime,H.text);const Ae=u[h.getAttribute("region")],Qe=c[h.getAttribute("style")],Ke=_c(Ae,Qe,c),{textAlign:bt}=Ke;if(bt){const St=vc[bt];St&&(H.lineAlign=St),H.align=bt}return m(H,Ke),H}).filter(h=>h!==null)}function Ka(a,e,t){const n=a.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function Ho(a){return a.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Vo(a,e){return[].slice.call(a.childNodes).reduce((t,n,r)=>{var i;return n.nodeName==="br"&&r?t+`
|
|
`:(i=n.childNodes)!=null&&i.length?Vo(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function _c(a,e,t){const n="http://www.w3.org/ns/ttml#styling";let r=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=a!=null&&a.hasAttribute("style")?a.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(r=t[s]),i.reduce((l,c)=>{const u=za(e,n,c)||za(a,n,c)||za(r,n,c);return u&&(l[c]=u),l},{})}function za(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function Yo(a){return new Error(`Could not parse ttml timestamp ${a}`)}function ja(a,e){if(!a)return null;let t=Zo(a);return t===null&&(jo.test(a)?t=Ec(a,e):Go.test(a)&&(t=bc(a,e))),t}function Ec(a,e){const t=jo.exec(a),n=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+n/e.frameRate}function bc(a,e){const t=Go.exec(a),n=Number(t[1]);switch(t[2]){case"h":return n*3600;case"m":return n*60;case"ms":return n*1e3;case"f":return n/e.frameRate;case"t":return n/e.tickRate}return n}class ca{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class xc{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Jo(),this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},e.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(d.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(d.FRAG_LOADING,this.onFragLoading,this),e.on(d.FRAG_LOADED,this.onFragLoaded,this),e.on(d.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(d.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(d.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(d.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(d.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(d.FRAG_LOADING,this.onFragLoading,this),e.off(d.FRAG_LOADED,this.onFragLoaded,this),e.off(d.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(d.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(d.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(d.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new ca(this,"textTrack1"),t=new ca(this,"textTrack2"),n=new ca(this,"textTrack3"),r=new ca(this,"textTrack4");this.cea608Parser1=new Uo(1,e,t),this.cea608Parser2=new Uo(3,n,r)}addCues(e,t,n,r,i){let s=!1;for(let l=i.length;l--;){const c=i[l],u=Sc(c[0],c[1],t,n);if(u>=0&&(c[0]=Math.min(c[0],t),c[1]=Math.max(c[1],n),s=!0,u/(n-t)>.5))return}if(s||i.push([t,n]),this.config.renderTextTracksNatively){const l=this.captionsTracks[e];this.Cues.newCue(l,t,n,r)}else{const l=this.Cues.newCue(null,t,n,r);this.hls.trigger(d.CUES_PARSED,{type:"captions",cues:l,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i}){const{unparsedVttFrags:s}=this;n===le.MAIN&&(this.initPTS[t.cc]={baseTime:r,timescale:i}),s.length&&(this.unparsedVttFrags=[],s.forEach(l=>{this.onFragLoaded(d.FRAG_LOADED,l)}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const i=n.textTracks[r];if(Qo(i,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return i}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:n,media:r}=this,{label:i,languageCode:s}=t[e],l=this.getExistingTrack(i,s);if(l)n[e]=l,Is(n[e]),Lo(n[e],r);else{const c=this.createTextTrack("captions",i,s);c&&(c[e]=!0,n[e]=c)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const n=t.label,r={_id:e,label:n,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=r,this.hls.trigger(d.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}createTextTrack(e,t,n){const r=this.media;if(r)return r.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){const n=!!t.transferMedia;if(this.media=null,n)return;const{captionsTracks:r}=this;Object.keys(r).forEach(i=>{Is(r[i]),delete r[i]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Jo(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const t=e.textTracks;if(t)for(let n=0;n<t.length;n++)Is(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(i=>i.textCodec===Za);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(vo(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,l=s?aa(s.textTracks):null;if(this.tracks.forEach((c,u)=>{let f;if(l){let h=null;for(let A=0;A<l.length;A++)if(l[A]&&Qo(l[A],c)){h=l[A],l[A]=null;break}h&&(f=h)}if(f)Is(f);else{const h=Xo(c);f=this.createTextTrack(h,c.name,c.lang),f&&(f.mode="disabled")}f&&this.textTracks.push(f)}),l!=null&&l.length){const c=l.filter(u=>u!==null).map(u=>u.label);c.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${c.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(l=>({label:l.name,kind:l.type.toLowerCase(),default:l.default,subtitleTrack:l}));this.hls.trigger(d.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(n=>{const r=/(?:CC|SERVICE)([1-4])/.exec(n.instreamId);if(!r)return;const i=`textTrack${r[1]}`,s=this.captionsProperties[i];s&&(s.label=n.name,n.lang&&(s.languageCode=n.lang),s.media=n)})}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return t==null?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===le.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:s,lastSn:l}=this,{cc:c,sn:u}=t.frag,f=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&s&&(u!==l+1||u===l&&f!==this.lastPartIndex+1||c!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=c,this.lastSn=u,this.lastPartIndex=f}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===le.SUBTITLE)if(r.byteLength){const i=n.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const l=this.tracks[n.level],c=this.vttCCs;c[n.cc]||(c[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),l&&l.textCodec===Za?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;Wo(t,this.initPTS[e.cc],r=>{this._appendCues(r,e.level),n.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},r=>{n.logger.log(`Failed to parse IMSC1: ${r}`),n.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:r})})}_parseVTTs(e){var t;const{frag:n,payload:r}=e,{initPTS:i,unparsedVttFrags:s}=this,l=i.length-1;if(!i[n.cc]&&l===-1){s.push(e);return}const c=this.hls,u=(t=n.initSegment)!=null&&t.data?at(n.initSegment.data,new Uint8Array(r)).buffer:r;gc(u,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,f=>{this._appendCues(f,n.level),c.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},f=>{const h=f.message==="Missing initPTS for VTT MPEGTS";h?s.push(e):this._fallbackToIMSC1(n,r),c.logger.log(`Failed to parse VTT cue: ${f}`),!(h&&l>n.cc)&&c.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:f})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||Wo(t,this.initPTS[e.cc],()=>{n.textCodec=Za,this._parseIMSC1(e,t)},()=>{n.textCodec="wvtt"})}_appendCues(e,t){const n=this.hls;if(this.config.renderTextTracksNatively){const r=this.textTracks[t];if(!r||r.mode==="disabled")return;e.forEach(i=>Io(r,i))}else{const r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(d.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===le.SUBTITLE&&this.onFragLoaded(d.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:r}=t;if(!(n.type===le.MAIN&&this.closedCaptionsForLevel(n)==="NONE"))for(let i=0;i<r.length;i++){const s=r[i].bytes;if(s){this.cea608Parser1||this.initCea608Parsers();const l=this.extractCea608Data(s);this.cea608Parser1.addData(r[i].pts,l[0]),this.cea608Parser2.addData(r[i].pts,l[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:r,type:i}){const{media:s}=this;if(!(!s||s.currentTime<n)){if(!i||i==="video"){const{captionsTracks:l}=this;Object.keys(l).forEach(c=>ka(l[c],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>ka(l[c],t,r))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let r=2;for(let i=0;i<n;i++){const s=e[r++],l=127&e[r++],c=127&e[r++];if(l===0&&c===0)continue;if((4&s)!==0){const f=3&s;(f===0||f===1)&&(t[f].push(l),t[f].push(c))}}return t}}function Xo(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function Qo(a,e){return!!a&&a.kind===Xo(e)&&Ta(e,a)}function Sc(a,e,t,n){return Math.min(e,n)-Math.max(a,t)}function Jo(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const wc=/\s/,Ac={newCue(a,e,t,n){const r=[];let i,s,l,c,u;const f=self.VTTCue||self.TextTrackCue;for(let A=0;A<n.rows.length;A++)if(i=n.rows[A],l=!0,c=0,u="",!i.isEmpty()){var h;for(let X=0;X<i.chars.length;X++)wc.test(i.chars[X].uchar)&&l?c++:(u+=i.chars[X].uchar,l=!1);i.cueStartTime=e,e===t&&(t+=1e-4),c>=16?c--:c++;const C=zo(u.trim()),D=Ua(e,t,C);a!=null&&(h=a.cues)!=null&&h.getCueById(D)||(s=new f(e,t,C),s.id=D,s.line=A+1,s.align="left",s.position=10+Math.min(80,Math.floor(c*8/32)*10),r.push(s))}return a&&r.length&&(r.sort((A,C)=>A.line==="auto"||C.line==="auto"?0:A.line>8&&C.line>8?C.line-A.line:A.line-C.line),r.forEach(A=>Io(a,A))),r}};function Tc(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const Cc=/(\d+)-(\d+)\/(\d+)/;class qo{constructor(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||Ic,this.controller=new self.AbortController,this.stats=new g}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,n){const r=this.stats;if(r.loading.start)throw new Error("Loader can only be used once.");r.loading.start=self.performance.now();const i=Dc(e,this.controller.signal),s=e.responseType==="arraybuffer",l=s?"byteLength":"length",{maxTimeToFirstByteMs:c,maxLoadTimeMs:u}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=c&&p(c)?c:u,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},t.timeout),(Ks(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(h=>{var A;this.response=this.loader=h;const C=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=u,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},u-(C-r.loading.start)),!h.ok){const{status:X,statusText:H}=h;throw new kc(H||"fetch, bad network response",X,h)}r.loading.first=C,r.total=Lc(h.headers)||r.total;const D=(A=this.callbacks)==null?void 0:A.onProgress;return D&&p(t.highWaterMark)?this.loadProgressively(h,r,e,t.highWaterMark,D):s?h.arrayBuffer():e.responseType==="json"?h.json():h.text()}).then(h=>{var A,C;const D=this.response;if(!D)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const X=h[l];X&&(r.loaded=r.total=X);const H={url:D.url,data:h,code:D.status},Ae=(A=this.callbacks)==null?void 0:A.onProgress;Ae&&!p(t.highWaterMark)&&Ae(r,e,h,D),(C=this.callbacks)==null||C.onSuccess(H,r,e,D)}).catch(h=>{var A;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const C=h&&h.code||0,D=h?h.message:null;(A=this.callbacks)==null||A.onError({code:C,text:D},e,h?h.details:null,r)})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,r=0,i){const s=new ss,l=e.body.getReader(),c=()=>l.read().then(u=>{if(u.done)return s.dataLength&&i(t,n,s.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const f=u.value,h=f.length;return t.loaded+=h,h<r||s.dataLength?(s.push(f),s.dataLength>=r&&i(t,n,s.flush().buffer,e)):i(t,n,f.buffer,e),c()}).catch(()=>Promise.reject());return c()}}function Dc(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(m({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function Rc(a){const e=Cc.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function Lc(a){const e=a.get("Content-Range");if(e){const n=Rc(e);if(p(n))return n}const t=a.get("Content-Length");if(t)return parseInt(t)}function Ic(a,e){return new self.Request(a.url,e)}class kc extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const Pc=/^age:\s*[\d.]+\s*$/im;class $o{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new g,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==n||this.stats.aborted))return i(n,t.url)}).catch(s=>{if(!(this.loader!==n||this.stats.aborted))return n.open("GET",t.url,!0),i(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(s=>{var l;(l=this.callbacks)==null||l.onError({code:n.status,text:s.message},t,n,r)}):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const r=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:s}=n.loadPolicy;if(r)for(const l in r)e.setRequestHeader(l,r[l]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=i&&p(i)?i:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:n}=this;if(!e||!t)return;const r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),r===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const u=t.status,f=t.responseType==="text"?t.responseText:null;if(u>=200&&u<300){const D=f!=null?f:t.response;if(D!=null){var s,l;n.loading.end=Math.max(self.performance.now(),n.loading.first);const X=t.responseType==="arraybuffer"?D.byteLength:D.length;n.loaded=n.total=X,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first);const H=(s=this.callbacks)==null?void 0:s.onProgress;H&&H(n,e,D,t);const Ae={url:t.responseURL,data:D,code:u};(l=this.callbacks)==null||l.onSuccess(Ae,n,e,t);return}}const h=i.loadPolicy.errorRetry,A=n.retry,C={url:e.url,data:void 0,code:u};if(tn(h,A,!1,C))this.retry(h);else{var c;W.error(`${u} while loading ${e.url}`),(c=this.callbacks)==null||c.onError({code:u,text:t.statusText},e,t,n)}}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(tn(e,t,!0))this.retry(e);else{var n;W.warn(`timeout while loading ${(n=this.context)==null?void 0:n.url}`);const r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=je(e,n.retry),n.retry++,W.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${n.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&Pc.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}const Nc={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Mc=x(x({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:$o,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Sn,bufferController:tu,capLevelController:Da,errorController:lt,fpsController:Uu,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:qn,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,certLoadPolicy:{default:Nc},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},Oc()),{},{subtitleStreamController:Qu,subtitleTrackController:zu,timelineController:xc,audioStreamController:Jl,audioTrackController:ql,emeController:Ls,cmcdController:Ou,contentSteeringController:Bu,interstitialsController:Xu});function Oc(){return{cueHandler:Ac,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function Fc(a,e,t){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const n=Ga(a),r=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(s=>{const l=`${s==="level"?"playlist":s}LoadPolicy`,c=e[l]===void 0,u=[];i.forEach(f=>{const h=`${s}Loading${f}`,A=e[h];if(A!==void 0&&c){u.push(h);const C=n[l].default;switch(e[l]={default:C},f){case"TimeOut":C.maxLoadTimeMs=A,C.maxTimeToFirstByteMs=A;break;case"MaxRetry":C.errorRetry.maxNumRetry=A,C.timeoutRetry.maxNumRetry=A;break;case"RetryDelay":C.errorRetry.retryDelayMs=A,C.timeoutRetry.retryDelayMs=A;break;case"MaxRetryTimeout":C.errorRetry.maxRetryDelayMs=A,C.timeoutRetry.maxRetryDelayMs=A;break}}}),u.length&&t.warn(`hls.js config: "${u.join('", "')}" setting(s) are deprecated, use "${l}": ${Ct(e[l])}`)}),x(x({},n),e)}function Ga(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(Ga):Object.keys(a).reduce((e,t)=>(e[t]=Ga(a[t]),e),{}):a}function Bc(a,e){const t=a.loader;t!==qo&&t!==$o?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):Tc()&&(a.loader=qo,a.progressive=!0,a.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const da=2,Uc=.1,Zc=.05,Kc=100;class zc extends cr{constructor(e,t){super("gap-controller",e.logger),this.hls=null,this.fragmentTracker=null,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var n;(n=this.media)!=null&&n.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var n;this.ended=((n=this.media)==null?void 0:n.currentTime)||1,this.hls.trigger(d.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(Kc),this.mediaSource=t.mediaSource;const n=this.media=t.media;$i(n,"playing",this.onMediaPlaying),$i(n,"waiting",this.onMediaWaiting),$i(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(Gi(n,"playing",this.onMediaPlaying),Gi(n,"waiting",this.onMediaWaiting),Gi(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(!((e=this.media)!=null&&e.readyState)||!this.hasBuffered)return;const t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var n,r;const i=(n=this.hls)==null?void 0:n.config;if(!i)return;const{media:s,stalled:l}=this;if(!s)return;const{seeking:c}=s,u=this.seeking&&!c,f=!this.seeking&&c,h=s.paused&&!c||s.ended||s.playbackRate===0;if(this.seeking=c,e!==t){t&&(this.ended=0),this.moved=!0,c||(this.nudgeRetry=0,i.nudgeOnVideoHole&&!h&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(f||u){u&&this.stallResolved(e);return}if(h){this.nudgeRetry=0,this.stallResolved(e),!this.ended&&s.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(d.MEDIA_ENDED,{stalled:!1}));return}if(!Tn.getBuffered(s).length){this.nudgeRetry=0;return}const A=Tn.bufferInfo(s,e,0),C=A.nextStart||0,D=this.fragmentTracker;if(c&&D&&this.hls){const nn=el(this.hls.inFlightFragments,e),wt=A.len>da,Qt=!C||nn||C-e>da&&!D.getPartialFragment(e);if(wt||Qt)return;this.moved=!1}const X=(r=this.hls)==null?void 0:r.latestLevelDetails;if(!this.moved&&this.stalled!==null&&D){if(!(A.len>0)&&!C)return;const wt=Math.max(C,A.start||0)-e,un=!!(X!=null&&X.live)?X.targetduration*2:da,Nt=D.getPartialFragment(e);if(wt>0&&(wt<=un||Nt)){s.paused||this._trySkipBufferHole(Nt);return}}const H=i.detectStallWithCurrentTimeMs,Ae=self.performance.now(),Qe=this.waiting;if(l===null){Qe>0&&Ae-Qe<H?this.stalled=Qe:this.stalled=Ae;return}const Ke=Ae-l;if(!c&&(Ke>=H||Qe)&&this.hls){var bt;if(((bt=this.mediaSource)==null?void 0:bt.readyState)==="ended"&&!(X!=null&&X.live)&&Math.abs(e-((X==null?void 0:X.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(d.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(A),!this.media||!this.hls)return}const St=Tn.bufferInfo(s,e,i.maxBufferHole);this._tryFixBufferStall(St,Ke)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const n=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(n)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(d.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;const r=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(n=this.buffered.audio)!=null&&n.length&&r&&r.length>1&&e>r.end(0)){const i=Tn.bufferedInfo(Tn.timeRangesToArray(this.buffered.audio),e,0);if(i.len>1&&t>=i.start){const s=Tn.timeRangesToArray(r),l=Tn.bufferedInfo(s,t,0).bufferedIndex;if(l>-1&&l<s.length-1){const c=Tn.bufferedInfo(s,e,0).bufferedIndex,u=s[l].end,f=s[l+1].start;if((c===-1||c>l)&&f-u<1&&e-u<2){const h=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${u} -> ${f} buffered index: ${c}`);this.warn(h.message),this.media.currentTime+=1e-6;const A=this.fragmentTracker.getPartialFragment(e)||void 0,C=Tn.bufferInfo(this.media,e,0);this.hls.trigger(d.ERROR,{type:me.MEDIA_ERROR,details:O.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:h,reason:h.message,frag:A,buffer:C.len,bufferInfo:C})}}}}}_tryFixBufferStall(e,t){var n,r;const{fragmentTracker:i,media:s}=this,l=(n=this.hls)==null?void 0:n.config;if(!s||!i||!l)return;const c=s.currentTime,u=(r=this.hls)==null?void 0:r.latestLevelDetails,f=i.getPartialFragment(c);if((f||u!=null&&u.live&&c<u.fragmentStart)&&(this._trySkipBufferHole(f)||!this.media))return;const h=e.buffered;(h&&h.length>1&&e.len>l.maxBufferHole||e.nextStart&&e.nextStart-c<l.maxBufferHole)&&(t>l.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}_reportStall(e){const{hls:t,media:n,stallReported:r,stalled:i}=this;if(!r&&i!==null&&n&&t){this.stallReported=!0;const s=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${Ct(e)})`);this.warn(s.message),t.trigger(d.ERROR,{type:me.MEDIA_ERROR,details:O.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len,bufferInfo:e,stalled:{start:i}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:r}=this,i=(t=this.hls)==null?void 0:t.config;if(!r||!n||!i)return 0;const s=r.currentTime,l=Tn.bufferInfo(r,s,0),c=s<l.start?l.start:l.nextStart;if(c&&this.hls){const f=l.len<=i.maxBufferHole,h=l.len>0&&l.len<1&&r.readyState<3,A=c-s;if(A>0&&(f||h)){if(A>i.maxBufferHole){let D=!1;if(s===0){const X=n.getAppendedFrag(0,le.MAIN);X&&c<X.end&&(D=!0)}if(!D){const X=e||n.getAppendedFrag(s,le.MAIN);if(X){var u;if(!((u=this.hls.loadLevelObj)!=null&&u.details)||el(this.hls.inFlightFragments,c))return 0;let Ae=!1,Qe=X.end;for(;Qe<c;){const Ke=n.getPartialFragment(Qe);if(Ke)Qe+=Ke.duration;else{Ae=!0;break}}if(Ae)return 0}}}const C=Math.max(c+Zc,s+Uc);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${C}`),this.moved=!0,r.currentTime=C,!(e!=null&&e.gap)){const D=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${C}`);this.hls.trigger(d.ERROR,{type:me.MEDIA_ERROR,details:O.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:D,reason:D.message,frag:e||void 0,buffer:l.len,bufferInfo:l})}return C}}return 0}_tryNudgeBuffer(e){const{hls:t,media:n,nudgeRetry:r}=this,i=t==null?void 0:t.config;if(!n||!i)return 0;const s=n.currentTime;if(this.nudgeRetry++,r<i.nudgeMaxRetry){const l=s+(r+1)*i.nudgeOffset,c=new Error(`Nudging 'currentTime' from ${s} to ${l}`);this.warn(c.message),n.currentTime=l,t.trigger(d.ERROR,{type:me.MEDIA_ERROR,details:O.BUFFER_NUDGE_ON_STALL,error:c,fatal:!1,buffer:e.len,bufferInfo:e})}else{const l=new Error(`Playhead still not moving while enough data buffered @${s} after ${i.nudgeMaxRetry} nudges`);this.error(l.message),t.trigger(d.ERROR,{type:me.MEDIA_ERROR,details:O.BUFFER_STALLED_ERROR,error:l,fatal:!0,buffer:e.len,bufferInfo:e})}}}function el(a,e){const t=tl(a.main);if(t&&t.start<=e)return t;const n=tl(a.audio);return n&&n.start<=e?n:null}function tl(a){if(!a)return null;switch(a.state){case on.IDLE:case on.STOPPED:case on.ENDED:case on.ERROR:return null}return a.frag}const jc=.25;function Wa(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function nl(a,e,t,n,r){let i=new a(e,t,"");try{i.value=n,r&&(i.type=r)}catch(s){i=new a(e,t,Ct(r?x({type:r},n):n))}return i}const fa=(()=>{const a=Wa();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function Gc(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class Wc{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(d.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(d.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(d.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}onMediaAttaching(e,t){var n;this.media=t.media,((n=t.overrides)==null?void 0:n.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){const e=this.hls.latestLevelDetails;e&&this.updateDateRangeCues(e)}onMediaDetaching(e,t){this.media=null,!t.transferMedia&&(this.id3Track&&(this.removeCues&&Is(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const n=e[t];if(n.kind==="metadata"&&n.label==="id3")return Lo(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:n,enableID3MetadataCues:r}}}=this;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=Wa();if(s)for(let l=0;l<i.length;l++){const c=i[l].type;if(c===Si.emsg&&!n||!r)continue;const u=Xa(i[l].data);if(u){const f=i[l].pts;let h=f+i[l].duration;h>fa&&(h=fa),h-f<=0&&(h=f+jc);for(let C=0;C<u.length;C++){const D=u[C];if(!Qa(D)){this.updateId3CueEnds(f,c);const X=nl(s,f,h,D,c);X&&this.id3Track.addCue(X)}}}}}updateId3CueEnds(e,t){var n;const r=(n=this.id3Track)==null?void 0:n.cues;if(r)for(let i=r.length;i--;){const s=r[i];s.type===t&&s.startTime<e&&s.endTime===fa&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:l,enableID3MetadataCues:c}}=s;if(i&&(l||c)){let u;r==="audio"?u=f=>f.type===Si.audioId3&&c:r==="video"?u=f=>f.type===Si.emsg&&l:u=f=>f.type===Si.audioId3&&c||f.type===Si.emsg&&l,ka(i,t,n,u)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.media||!e.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{id3Track:n}=this,{dateRanges:r}=e,i=Object.keys(r);let s=this.dateRangeCuesAppended;if(n&&t){var l;if((l=n.cues)!=null&&l.length){const f=Object.keys(s).filter(h=>!i.includes(h));for(let h=f.length;h--;){const A=f[h],C=s[A].cues;delete s[A],Object.keys(C).forEach(D=>{try{const X=C[D];X.removeEventListener("enter",this.onEventCueEnter),n.removeCue(X)}catch(X){}})}}else s=this.dateRangeCuesAppended={}}const c=e.fragments[e.fragments.length-1];if(i.length===0||!p(c==null?void 0:c.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const u=Wa();for(let f=0;f<i.length;f++){const h=i[f],A=r[h],C=A.startTime,D=s[h],X=(D==null?void 0:D.cues)||{};let H=(D==null?void 0:D.durationKnown)||!1,Ae=fa;const{duration:Qe,endDate:Ke}=A;if(Ke&&Qe!==null)Ae=C+Qe,H=!0;else if(A.endOnNext&&!H){const St=i.reduce((nn,wt)=>{if(wt!==A.id){const Qt=r[wt];if(Qt.class===A.class&&Qt.startDate>A.startDate&&(!nn||A.startDate<nn.startDate))return Qt}return nn},null);St&&(Ae=St.startTime,H=!0)}const bt=Object.keys(A.attr);for(let St=0;St<bt.length;St++){const nn=bt[St];if(!rr(nn))continue;const wt=X[nn];if(wt)H&&!D.durationKnown?wt.endTime=Ae:Math.abs(wt.startTime-C)>.01&&(wt.startTime=C,wt.endTime=Ae);else if(u){let Qt=A.attr[nn];_r(nn)&&(Qt=Gc(Qt));const Nt=nl(u,C,Ae,{key:nn,data:Qt},Si.dateRange);Nt&&(Nt.id=h,this.id3Track.addCue(Nt),X[nn]=Nt,this.hls.config.interstitialsController&&(nn==="X-ASSET-LIST"||nn==="X-ASSET-URL")&&Nt.addEventListener("enter",this.onEventCueEnter))}}s[h]={cues:X,dateRange:A,durationKnown:H}}}}class Hc{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:t}=this,n=this.levelDetails;if(!t||!n)return;this.currentTime=t.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:s}=this.config;if(!i||s===1||!n.live)return;const l=this.targetLatency;if(l===null)return;const c=r-l,u=Math.min(this.maxLatency,l+n.targetduration);if(c<u&&c>.05&&this.forwardBufferLength>1){const h=Math.min(2,Math.max(1,s)),A=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20,C=Math.min(h,Math.max(1,A));this.changeMediaPlaybackRate(t,C)}else t.playbackRate!==1&&t.playbackRate!==0&&this.changeMediaPlaybackRate(t,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return((e=this.hls)==null?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:e}=this;if(e.liveMaxLatencyDuration!==void 0)return e.liveMaxLatencyDuration;const t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const e=this.levelDetails;if(e===null||this.hls===null)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:s,lowLatencyMode:l}=this.config,c=this.hls.userConfig;let u=l&&n||t;(this._targetLatencyUpdated||c.liveSyncDuration||c.liveSyncDurationCount||u===0)&&(u=i!==void 0?i:s*r);const f=r;return u+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,f)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(e===null||t===null)return null;const n=this.levelDetails;if(n===null)return null;const r=n.edge,i=e-t-this.edgeStalled,s=r-n.totalduration,l=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,i),l)}get drift(){const e=this.levelDetails;return e===null?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(d.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(d.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var n;t.details===O.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(n=this.levelDetails)!=null&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,r;e.playbackRate!==t&&((n=this.hls)==null||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(r=this.targetLatency)==null?void 0:r.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}class Vc extends Aa{constructor(e,t){super(e,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this),e.on(d.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this),e.off(d.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(t=>{t.loadError=0,t.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const n=this.hls.config.preferManagedMediaSource,r=[],i={},s={};let l=!1,c=!1,u=!1;t.levels.forEach(f=>{var h;const A=f.attrs;let{audioCodec:C,videoCodec:D}=f;C&&(f.audioCodec=C=It(C,n)||void 0),((h=D)==null?void 0:h.indexOf("avc1"))===0&&(D=f.videoCodec=Le(D));const{width:X,height:H,unknownCodecs:Ae}=f;let Qe=Ae?Ae.length:0;if(Ae)for(let In=Qe;In--;){const Hn=Ae[In];this.isAudioSupported(Hn)?(f.audioCodec=C=C?`${C},${Hn}`:Hn,Qe--,Xt.audio[C.substring(0,4)]=2):this.isVideoSupported(Hn)&&(f.videoCodec=D=D?`${D},${Hn}`:Hn,Qe--,Xt.video[D.substring(0,4)]=2)}if(l||(l=!!(X&&H)),c||(c=!!D),u||(u=!!C),Qe||C&&!this.isAudioSupported(C)||D&&!this.isVideoSupported(D)){this.log(`Some or all CODECS not supported "${A.CODECS}"`);return}const{CODECS:Ke,"FRAME-RATE":bt,"HDCP-LEVEL":St,"PATHWAY-ID":nn,RESOLUTION:wt,"VIDEO-RANGE":Qt}=A,Nt=`${`${nn||"."}-`}${f.bitrate}-${wt}-${bt}-${Ke}-${Qt}-${St}`;if(i[Nt])if(i[Nt].uri!==f.url&&!f.attrs["PATHWAY-ID"]){const In=s[Nt]+=1;f.attrs["PATHWAY-ID"]=new Array(In+1).join(".");const Hn=this.createLevel(f);i[Nt]=Hn,r.push(Hn)}else i[Nt].addGroupId("audio",A.AUDIO),i[Nt].addGroupId("text",A.SUBTITLES);else{const In=this.createLevel(f);i[Nt]=In,s[Nt]=1,r.push(In)}}),this.filterAndSortMediaOptions(r,t,l,c,u)}createLevel(e){const t=new dt(e),n=e.supplemental;if(n!=null&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const r=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(r.message),t.supportedResult=ye(r,[])}return t}isAudioSupported(e){return Ne(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return Ne(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,r,i){let s=[],l=[],c=e;if((n||r)&&i&&(c=c.filter(({videoCodec:H,videoRange:Ae,width:Qe,height:Ke})=>(!!H||!!(Qe&&Ke))&&Re(Ae))),c.length===0){Promise.resolve().then(()=>{if(this.hls){let H="no level with compatible codecs found in manifest",Ae=H;t.levels.length&&(Ae=`one or more CODECS in variant not supported: ${Ct(t.levels.map(Ke=>Ke.attrs.CODECS).filter((Ke,bt,St)=>St.indexOf(Ke)===bt))}`,this.warn(Ae),H+=` (${Ae})`);const Qe=new Error(H);this.hls.trigger(d.ERROR,{type:me.MEDIA_ERROR,details:O.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:Qe,reason:Ae})}});return}t.audioTracks&&(s=t.audioTracks.filter(H=>!H.audioCodec||this.isAudioSupported(H.audioCodec)),rl(s)),t.subtitles&&(l=t.subtitles,rl(l));const u=c.slice(0);c.sort((H,Ae)=>{if(H.attrs["HDCP-LEVEL"]!==Ae.attrs["HDCP-LEVEL"])return(H.attrs["HDCP-LEVEL"]||"")>(Ae.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&H.height!==Ae.height)return H.height-Ae.height;if(H.frameRate!==Ae.frameRate)return H.frameRate-Ae.frameRate;if(H.videoRange!==Ae.videoRange)return mn.indexOf(H.videoRange)-mn.indexOf(Ae.videoRange);if(H.videoCodec!==Ae.videoCodec){const Qe=ae(H.videoCodec),Ke=ae(Ae.videoCodec);if(Qe!==Ke)return Ke-Qe}if(H.uri===Ae.uri&&H.codecSet!==Ae.codecSet){const Qe=de(H.codecSet),Ke=de(Ae.codecSet);if(Qe!==Ke)return Ke-Qe}return H.averageBitrate!==Ae.averageBitrate?H.averageBitrate-Ae.averageBitrate:0});let f=u[0];if(this.steering&&(c=this.steering.filterParsedLevels(c),c.length!==u.length)){for(let H=0;H<u.length;H++)if(u[H].pathwayId===c[0].pathwayId){f=u[H];break}}this._levels=c;for(let H=0;H<c.length;H++)if(c[H]===f){var h;this._firstLevel=H;const Ae=f.bitrate,Qe=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${c.length} level(s) found, first bitrate: ${Ae}`),((h=this.hls.userConfig)==null?void 0:h.abrEwmaDefaultEstimate)===void 0){const Ke=Math.min(Ae,this.hls.config.abrEwmaDefaultEstimateMax);Ke>Qe&&Qe===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Ke)}break}const A=i&&!r,C=this.hls.config,D=!!(C.audioStreamController&&C.audioTrackController),X={levels:c,audioTracks:s,subtitleTracks:l,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:D&&!A&&s.some(H=>!!H.url)};this.hls.trigger(d.MANIFEST_PARSED,X)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const f=new Error("invalid level idx"),h=e<0;if(this.hls.trigger(d.ERROR,{type:me.OTHER_ERROR,details:O.LEVEL_SWITCH_ERROR,level:e,fatal:h,error:f,reason:f.message}),h)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,i=r?r.attrs["PATHWAY-ID"]:void 0,s=t[e],l=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&r&&i===l)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${l?" with Pathway "+l:""} from level ${n}${i?" with Pathway "+i:""}`);const c={level:e,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(d.LEVEL_SWITCHING,c);const u=s.details;if(!u||u.live){const f=this.switchParams(s.uri,r==null?void 0:r.details,u);this.loadPlaylist(f)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),n=e.filter(r=>t.indexOf(r)!==-1);if(e.length<1){this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);return}this.steering.pathwayPriority=n}}onError(e,t){t.fatal||!t.context||t.context.type===ge.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===le.MAIN){const n=t.elementaryStreams;if(!Object.keys(n).some(i=>!!n[i]))return;const r=this._levels[t.level];r!=null&&r.loadError&&(this.log(`Resetting level error count of ${r.loadError} on frag buffered`),r.loadError=0)}}onLevelLoaded(e,t){var n;const{level:r,details:i}=t,s=t.levelInfo;if(!s){var l;this.warn(`Invalid level index ${r}`),(l=t.deliveryDirectives)!=null&&l.skip&&(i.deltaUpdateFailed=!0);return}if(s===this.currentLevel||t.withoutMultiVariant){s.fragmentError===0&&(s.loadError=0);let c=s.details;c===t.details&&c.advanced&&(c=void 0),this.playlistLoaded(r,t,c)}else(n=t.deliveryDirectives)!=null&&n.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=this.getUrlWithDirectives(e.uri,t),r=this.currentLevelIndex,i=e.attrs["PATHWAY-ID"],s=e.details,l=s==null?void 0:s.age;this.log(`Loading level index ${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${i?" Pathway "+i:""}${l&&s.live?" age "+l.toFixed(1)+(s.type?" "+s.type||0:""):""} ${n}`),this.hls.trigger(d.LEVEL_LOADING,{url:n,level:r,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(this._levels.length===1)return;const n=this._levels.filter((i,s)=>s!==e?!0:(this.steering&&this.steering.removeLevel(i),i===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,i.details&&i.details.fragments.forEach(l=>l.level=-1)),!1));qr(n),this._levels=n,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const r=n.length-1;this._firstLevel=Math.min(this._firstLevel,r),this._startLevel&&(this._startLevel=Math.min(this._startLevel,r)),this.hls.trigger(d.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(d.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function rl(a){const e={};a.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}function il(){return self.SourceBuffer||self.WebKitSourceBuffer}function sl(){if(!ne())return!1;const e=il();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function Yc(){if(!sl())return!1;const a=ne();return typeof(a==null?void 0:a.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>a.isTypeSupported(I(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(I(e,"audio"))))}function Xc(){var a;const e=il();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const Qc=100;class Jc extends ni{constructor(e,t,n){super(e,t,n,"stream-controller",le.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const r=this.media,i=r?r.currentTime:null;if(i===null||!p(i)||(this.log(`Media seeked to ${i.toFixed(3)}`),!this.getBufferedFrag(i)))return;const s=this.getFwdBufferInfoAtPos(r,i,le.MAIN,0);if(s===null||s.len===0){this.warn(`Main forward buffer length at ${i} on "seeked" event ${s?s.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.LEVEL_LOADING,this.onLevelLoading,this),e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(d.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(d.BUFFER_CREATED,this.onBufferCreated,this),e.on(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(d.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(d.BUFFER_CREATED,this.onBufferCreated,this),e.off(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:n,hls:r}=this;if(this.stopLoad(),this.setInterval(Qc),this.level=-1,!this.startFragRequested){let i=r.startLevel;i===-1&&(r.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=r.firstAutoLevel),r.nextLoadLevel=i,this.level=r.loadLevel,this._hasEnoughToStart=!!t}n>0&&e===-1&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=on.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=on.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case on.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&(!i.live||this.levelLastLoaded===r&&!this.waitForLive(r))){if(this.waitForCdnTuneIn(i))break;this.state=on.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=on.IDLE;break}break}case on.FRAG_LOADING_WAITING_RETRY:{var e;const t=self.performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,level:i}=this,s=r==null?void 0:r[i];this.resetStartWhenNotLoaded(s||null),this.state=on.IDLE}}break}this.state===on.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),(e=this.media)!=null&&e.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(t===null||!r&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(n!=null&&n[i]))return;const s=n[i],l=this.getMainFwdBufferInfo();if(l===null)return;const c=this.getLevelDetails();if(c&&this._streamEnded(l,c)){const X={};this.altAudio===2&&(X.type="video"),this.hls.trigger(d.BUFFER_EOS,X),this.state=on.ENDED;return}if(!this.buffering)return;e.loadLevel!==i&&e.manualLevel===-1&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=e.nextLoadLevel=i;const u=s.details;if(!u||this.state===on.WAITING_LEVEL||this.waitForLive(s)){this.level=i,this.state=on.WAITING_LEVEL,this.startFragRequested=!1;return}const f=l.len,h=this.getMaxBufferLength(s.maxBitrate);if(f>=h)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);const A=this.backtrackFragment?this.backtrackFragment.start:l.end;let C=this.getNextFragment(A,u);if(this.couldBacktrack&&!this.fragPrevious&&C&&ce(C)&&this.fragmentTracker.getState(C)!==it.OK){var D;const H=((D=this.backtrackFragment)!=null?D:C).sn-u.startSN,Ae=u.fragments[H-1];Ae&&C.cc===Ae.cc&&(C=Ae,this.fragmentTracker.removeFragment(Ae))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(C&&this.isLoopLoading(C,A)){if(!C.gap){const H=this.audioOnly&&!this.altAudio?v.AUDIO:v.VIDEO,Ae=(H===v.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ae&&this.afterBufferFlushed(Ae,H,le.MAIN)}C=this.getNextFragmentLoopLoading(C,u,l,le.MAIN,h)}C&&(C.initSegment&&!C.initSegment.data&&!this.bitrateTest&&(C=C.initSegment),this.loadFragment(C,s,A))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===it.NOT_LOADED||r===it.PARTIAL?ce(e)?this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,n):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,le.MAIN)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(t!=null&&t.readyState){let n;const r=this.getAppendedFrag(t.currentTime);r&&r.start>1&&this.flushMainBuffer(0,r.start-1);const i=this.getLevelDetails();if(i!=null&&i.live){const l=this.getMainFwdBufferInfo();if(!l||l.len<i.targetduration*2)return}if(!t.paused&&e){const l=this.hls.nextLoadLevel,c=e[l],u=this.fragLastKbps;u&&this.fragCurrent?n=this.fragCurrent.duration*c.maxBitrate/(1e3*u)+1:n=0}else n=0;const s=this.getBufferedFrag(t.currentTime+n);if(s){const l=this.followingBufferedFrag(s);if(l){this.abortCurrentFrag();const c=l.maxStartPTS?l.maxStartPTS:l.start,u=l.duration,f=Math.max(s.end,c+Math.min(Math.max(u-this.config.maxFragLookUpTolerance,u*(this.couldBacktrack?.5:.125)),u*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(f,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case on.KEY_LOADING:case on.FRAG_LOADING:case on.FRAG_LOADING_WAITING_RETRY:case on.PARSING:case on.PARSED:this.state=on.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio===2?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;$i(n,"playing",this.onMediaPlaying),$i(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(Gi(n,"playing",this.onMediaPlaying),Gi(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t),!t.transferMedia&&(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(d.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,r=!1;t.levels.forEach(i=>{const s=i.audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,r=r||s.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=n&&r&&!Xc(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:n}=this;if(!n||this.state!==on.IDLE)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=on.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r,startFragRequested:i}=this,s=t.level,l=t.details,c=l.totalduration;if(!r){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${l.startSN},${l.endSN}]${l.lastPartSn?`[part-${l.lastPartSn}-${l.lastPartIndex}]`:""}, cc [${l.startCC}, ${l.endCC}] duration:${c}`);const u=t.levelInfo,f=this.fragCurrent;f&&(this.state===on.FRAG_LOADING||this.state===on.FRAG_LOADING_WAITING_RETRY)&&f.level!==t.level&&f.loader&&this.abortCurrentFrag();let h=0;if(l.live||(n=u.details)!=null&&n.live){var A;if(this.checkLiveUpdate(l),l.deltaUpdateFailed)return;h=this.alignPlaylists(l,u.details,(A=this.levelLastLoaded)==null?void 0:A.details)}if(u.details=l,this.levelLastLoaded=u,i||this.setStartPosition(l,h),this.hls.trigger(d.LEVEL_UPDATED,{details:l,level:s}),this.state===on.WAITING_LEVEL){if(this.waitForCdnTuneIn(l))return;this.state=on.IDLE}i&&l.live&&this.synchronizeToLiveEdge(l),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=this.getLoadPosition(),s=e.fragmentStart,l=e.edge,c=i>=s-t.maxFragLookUpTolerance&&i<=l;if(r!==null&&n.duration>r&&(i<r||!c)){const u=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!c&&n.readyState<4||i<l-u)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState&&(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${l}, reset currentTime to : ${r.toFixed(3)}`),n.currentTime=r))}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{levels:s}=this;if(!s){this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const l=s[n.level];if(!l){this.warn(`Level ${n.level} not found on progress`);return}const c=l.details;if(!c){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const u=l.videoCodec,f=c.PTSKnown||!c.live,h=(t=n.initSegment)==null?void 0:t.data,A=this._getAudioCodec(l),C=this.transmuxer=this.transmuxer||new mo(this.hls,le.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),D=r?r.index:-1,X=D!==-1,H=new ar(n.level,n.sn,n.stats.chunkCount,i.byteLength,D,X),Ae=this.initPTS[n.cc];C.push(i,h,A,u,n,r,c.totalduration,f,H,Ae)}onAudioTrackSwitching(e,t){const n=this.hls,r=this.altAudio===2;if(hn(t.url,n))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const s=this.fragCurrent;s&&(this.log("Switching to main audio track, cancel main fragment load"),s.abortRequests(),this.fragmentTracker.removeFragment(s)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(r){this.fragmentTracker.removeAllFragments(),n.once(d.BUFFER_FLUSHED,()=>{var s;(s=this.hls)==null||s.trigger(d.AUDIO_TRACK_SWITCHED,t)}),n.trigger(d.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}n.trigger(d.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=hn(t.url,this.hls);if(n){const r=this.videoBuffer;r&&this.mediaBuffer!==r&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=r)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){const n=t.tracks;let r,i,s=!1;for(const l in n){const c=n[l];if(c.id==="main"){if(i=l,r=c,l==="video"){const u=n[l];u&&(this.videoBuffer=u.buffer)}}else s=!0}s&&r?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t,i=n.type===le.MAIN;if(i){if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),this.state===on.PARSED&&(this.state=on.IDLE);return}const l=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),ce(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const s=this.media;s&&(!this._hasEnoughToStart&&Tn.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal){this.state=on.ERROR;return}switch(t.details){case O.FRAG_GAP:case O.FRAG_PARSING_ERROR:case O.FRAG_DECRYPT_ERROR:case O.FRAG_LOAD_ERROR:case O.FRAG_LOAD_TIMEOUT:case O.KEY_LOAD_ERROR:case O.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(le.MAIN,t);break;case O.LEVEL_LOAD_ERROR:case O.LEVEL_LOAD_TIMEOUT:case O.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===on.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===ge.LEVEL&&(this.state=on.IDLE);break;case O.BUFFER_ADD_CODEC_ERROR:case O.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.resetLoadingState();break;case O.BUFFER_FULL_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case O.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=on.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==v.AUDIO||!this.altAudio){const n=(t===v.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,t,le.MAIN),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let n=this.startPosition;if(n>=0&&t<n){if(e.seeking){this.log(`could not seek to ${n}, already seeking at ${t}`);return}const r=this.timelineOffset;r&&n&&(n+=r);const i=this.getLevelDetails(),s=Tn.getBuffered(e),l=s.length?s.start(0):0,c=l-n,u=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);c>0&&(c<u||this.loadingParts&&c<2*((i==null?void 0:i.partTarget)||0))&&(this.log(`adjusting start position by ${c} to match buffer start`),n+=c,this.startPosition=n),t<n&&(this.log(`seek to target start position ${n} from current time ${t} buffer start ${l}`),e.currentTime=n)}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t.indexOf("mp4a.40.5")!==-1?t="mp4a.40.2":t="mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(n=>{const{hls:r}=this,i=n==null?void 0:n.frag;if(!i||this.fragContextChanged(i))return;t.fragmentError=0,this.state=on.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=i.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),r.trigger(d.FRAG_LOADED,n),i.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const n=this.playlistType,{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:c,part:u,level:f}=l,{video:h,text:A,id3:C,initSegment:D}=i,{details:X}=f,H=this.altAudio?void 0:i.audio;if(this.fragContextChanged(c)){this.fragmentTracker.removeFragment(c);return}if(this.state=on.PARSING,D){if(D!=null&&D.tracks){const Ke=c.initSegment||c;this._bufferInitSegment(f,D.tracks,Ke,s),r.trigger(d.FRAG_PARSING_INIT_SEGMENT,{frag:Ke,id:n,tracks:D.tracks})}const Ae=D.initPTS,Qe=D.timescale;p(Ae)&&(this.initPTS[c.cc]={baseTime:Ae,timescale:Qe},r.trigger(d.INIT_PTS_FOUND,{frag:c,id:n,initPTS:Ae,timescale:Qe}))}if(h&&X){H&&h.type==="audiovideo"&&this.logMuxedErr(c);const Ae=X.fragments[c.sn-1-X.startSN],Qe=c.sn===X.startSN,Ke=!Ae||c.cc>Ae.cc;if(i.independent!==!1){const{startPTS:bt,endPTS:St,startDTS:nn,endDTS:wt}=h;if(u)u.elementaryStreams[h.type]={startPTS:bt,endPTS:St,startDTS:nn,endDTS:wt};else if(h.firstKeyFrame&&h.independent&&s.id===1&&!Ke&&(this.couldBacktrack=!0),h.dropped&&h.independent){const Qt=this.getMainFwdBufferInfo(),un=(Qt?Qt.end:this.getLoadPosition())+this.config.maxBufferHole,Nt=h.firstKeyFramePTS?h.firstKeyFramePTS:bt;if(!Qe&&un<Nt-this.config.maxBufferHole&&!Ke){this.backtrack(c);return}else Ke&&(c.gap=!0);c.setElementaryStreamInfo(h.type,c.start,St,c.start,wt,!0)}else Qe&&bt-(X.appliedTimelineOffset||0)>da&&(c.gap=!0);c.setElementaryStreamInfo(h.type,bt,St,nn,wt),this.backtrackFragment&&(this.backtrackFragment=c),this.bufferFragmentData(h,c,u,s,Qe||Ke)}else if(Qe||Ke)c.gap=!0;else{this.backtrack(c);return}}if(H){const{startPTS:Ae,endPTS:Qe,startDTS:Ke,endDTS:bt}=H;u&&(u.elementaryStreams[v.AUDIO]={startPTS:Ae,endPTS:Qe,startDTS:Ke,endDTS:bt}),c.setElementaryStreamInfo(v.AUDIO,Ae,Qe,Ke,bt),this.bufferFragmentData(H,c,u,s)}if(X&&C!=null&&(t=C.samples)!=null&&t.length){const Ae={id:n,frag:c,details:X,samples:C.samples};r.trigger(d.FRAG_PARSING_METADATA,Ae)}if(X&&A){const Ae={id:n,frag:c,details:X,samples:A.samples};r.trigger(d.FRAG_PARSING_USERDATA,Ae)}}logMuxedErr(e){this.warn(`${ce(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==on.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:i,video:s,audiovideo:l}=t;if(i){let u=fn(i.codec,e.audioCodec);u==="mp4a"&&(u="mp4a.40.5");const f=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){u&&(u.indexOf("mp4a.40.5")!==-1?u="mp4a.40.2":u="mp4a.40.5");const h=i.metadata;h&&"channelCount"in h&&(h.channelCount||1)!==1&&f.indexOf("firefox")===-1&&(u="mp4a.40.5")}u&&u.indexOf("mp4a.40.5")!==-1&&f.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(u="mp4a.40.2",this.log(`Android: force audio codec to ${u}`)),e.audioCodec&&e.audioCodec!==u&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${u}"`),i.levelCodec=u,i.id=le.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${u||""}/${e.audioCodec||""}/${i.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=le.MAIN;const u=s.codec;if((u==null?void 0:u.length)===4)switch(u){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${u}]${s.codec!==u?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete t.audiovideo}l&&(this.log(`Init audiovideo buffer, container:${l.container}, codecs[level/parsed]=[${e.codecs}/${l.codec}]`),delete t.video,delete t.audio);const c=Object.keys(t);if(c.length){if(this.hls.trigger(d.BUFFER_CODECS,t),!this.hls)return;c.forEach(u=>{const h=t[u].initSegment;h!=null&&h.byteLength&&this.hls.trigger(d.BUFFER_APPENDING,{type:u,data:h,frag:n,part:null,chunkMeta:r,parent:n.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,le.MAIN)}get maxBufferLength(){const{levels:e,level:t}=this,n=e==null?void 0:e[t];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=on.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(Tn.isBuffered(e,n)?t=this.getAppendedFrag(n):Tn.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const r=this.fragPlaying,i=t.level;(!r||t.sn!==r.sn||r.level!==i)&&(this.fragPlaying=t,this.hls.trigger(d.FRAG_CHANGED,{frag:t}),(!r||r.level!==i)&&this.hls.trigger(d.LEVEL_SWITCHED,{level:i}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;return p(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(p(t)){const n=this.getLevelDetails(),r=this.currentFrag||(n?Zn(null,n.fragments,t):null);if(r){const i=r.programDateTime;if(i!==null){const s=i+(t-r.start)*1e3;return new Date(s)}}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class qc{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyUriToKeyInfo){const r=this.keyUriToKeyInfo[n].loader;if(r){var t;if(e&&e!==((t=r.context)==null?void 0:t.frag.type))return;r.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=O.KEY_LOAD_ERROR,n,r,i){return new An({type:me.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:n,cc:r}=e;for(let i=0;i<t.length;i++){const s=t[i];if(r<=s.cc&&(n==="initSegment"||s.sn==="initSegment"||n<s.sn)){this.emeController.selectKeySystemFormat(s).then(l=>{s.setKeyFormat(l)});break}}}}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(t=>this.loadInternal(e,t)):this.loadInternal(e)}loadInternal(e,t){var n,r;t&&e.setKeyFormat(t);const i=e.decryptdata;if(!i){const u=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,O.KEY_LOAD_ERROR,u))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,O.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let l=this.keyUriToKeyInfo[s];if((n=l)!=null&&n.decryptdata.key)return i.key=l.decryptdata.key,Promise.resolve({frag:e,keyInfo:l});if((r=l)!=null&&r.keyLoadPromise){var c;switch((c=l.mediaKeySessionContext)==null?void 0:c.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return l.keyLoadPromise.then(u=>(i.key=u.keyInfo.decryptdata.key,{frag:e,keyInfo:l}))}}switch(l=this.keyUriToKeyInfo[s]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return i.keyFormat==="identity"?this.loadKeyHTTP(l,e):this.loadKeyEME(l,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(l,e);default:return Promise.reject(this.createKeyLoadError(e,O.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${i.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const r=this.emeController.loadKey(n);if(r)return(e.keyLoadPromise=r.then(i=>(e.mediaKeySessionContext=i,n))).catch(i=>{throw e.keyLoadPromise=null,i})}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,r=n.loader,i=new r(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((s,l)=>{const c={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},u=n.keyLoadPolicy.default,f={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},h={onSuccess:(A,C,D,X)=>{const{frag:H,keyInfo:Ae,url:Qe}=D;if(!H.decryptdata||Ae!==this.keyUriToKeyInfo[Qe])return l(this.createKeyLoadError(H,O.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),X));Ae.decryptdata.key=H.decryptdata.key=new Uint8Array(A.data),H.keyLoader=null,Ae.loader=null,s({frag:H,keyInfo:Ae})},onError:(A,C,D,X)=>{this.resetLoader(C),l(this.createKeyLoadError(t,O.KEY_LOAD_ERROR,new Error(`HTTP Error ${A.code} loading key ${A.text}`),D,x({url:c.url,data:void 0},A)))},onTimeout:(A,C,D)=>{this.resetLoader(C),l(this.createKeyLoadError(t,O.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),D))},onAbort:(A,C,D)=>{this.resetLoader(C),l(this.createKeyLoadError(t,O.INTERNAL_ABORTED,new Error("key loading aborted"),D))}};i.load(c,f,h)})}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[r],i&&i.destroy()}}function al(a){const{type:e}=a;switch(e){case ge.AUDIO_TRACK:return le.AUDIO;case ge.SUBTITLE_TRACK:return le.SUBTITLE;default:return le.MAIN}}function Ha(a,e){let t=a.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class $c{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.LEVEL_LOADING,this.onLevelLoading,this),e.on(d.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(d.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.LEVEL_LOADING,this.onLevelLoading,this),e.off(d.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(d.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,i=n||r,s=new i(t);return this.loaders[e.type]=s,s}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:ge.MANIFEST,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:s,deliveryDirectives:l,levelInfo:c}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:ge.LEVEL,url:s,deliveryDirectives:l,levelOrTrack:c})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:l}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:ge.AUDIO_TRACK,url:i,deliveryDirectives:s,levelOrTrack:l})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:l}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:ge.SUBTITLE_TRACK,url:i,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(e,t){const n=this.loaders[ge.LEVEL];if(n){const r=n.context;r&&!t.levels.some(i=>i===r.levelOrTrack)&&(n.abort(),delete this.loaders[ge.LEVEL])}}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const u=this.hls.logger,f=r.context;if(f&&f.levelOrTrack===e.levelOrTrack&&(f.url===e.url||f.deliveryDirectives&&!e.deliveryDirectives)){f.url===e.url?u.log(`[playlist-loader]: ignore ${e.url} ongoing request`):u.log(`[playlist-loader]: ignore ${e.url} in favor of ${f.url}`);return}u.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===ge.MANIFEST?i=n.manifestLoadPolicy.default:i=m({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),p((t=e.deliveryDirectives)==null?void 0:t.part)){let u;if(e.type===ge.LEVEL&&e.level!==null?u=this.hls.levels[e.level].details:e.type===ge.AUDIO_TRACK&&e.id!==null?u=this.hls.audioTracks[e.id].details:e.type===ge.SUBTITLE_TRACK&&e.id!==null&&(u=this.hls.subtitleTracks[e.id].details),u){const f=u.partTarget,h=u.targetduration;if(f&&h){const A=Math.max(f*3,h*.8)*1e3;i=m({},i,{maxTimeToFirstByteMs:Math.min(A,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(A,i.maxTimeToFirstByteMs)})}}}const s=i.errorRetry||i.timeoutRetry||{},l={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},c={onSuccess:(u,f,h,A)=>{const C=this.getInternalLoader(h);this.resetInternalLoader(h.type);const D=u.data;if(D.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(u,h,new Error("no EXTM3U delimiter"),A||null,f);return}f.parsing.start=performance.now(),ui.isMediaPlaylist(D)||h.type!==ge.MANIFEST?this.handleTrackOrLevelPlaylist(u,f,h,A||null,C):this.handleMasterPlaylist(u,f,h,A)},onError:(u,f,h,A)=>{this.handleNetworkError(f,h,!1,u,A)},onTimeout:(u,f,h)=>{this.handleNetworkError(f,h,!0,void 0,u)}};r.load(e,l,c)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:n}=this.hls;(e||n)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,n,r){const i=this.hls,s=e.data,l=Ha(e,n),c=ui.parseMasterPlaylist(s,l);if(c.playlistParsingError){this.handleManifestParsingError(e,n,c.playlistParsingError,r,t);return}const{contentSteering:u,levels:f,sessionData:h,sessionKeys:A,startTimeOffset:C,variableList:D}=c;this.variableList=D;const{AUDIO:X=[],SUBTITLES:H,"CLOSED-CAPTIONS":Ae}=ui.parseMasterPlaylistMedia(s,l,c);X.length&&!X.some(Ke=>!Ke.url)&&f[0].audioCodec&&!f[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),X.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Pn({}),bitrate:0,url:""})),i.trigger(d.MANIFEST_LOADED,{levels:f,audioTracks:X,subtitles:H,captions:Ae,contentSteering:u,url:l,stats:t,networkDetails:r,sessionData:h,sessionKeys:A,startTimeOffset:C,variableList:D})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:l,level:c,type:u}=n,f=Ha(e,n),h=p(c)?c:p(l)?l:0,A=al(n),C=ui.parseLevelPlaylist(e.data,f,h,A,0,this.variableList);if(u===ge.MANIFEST){const D={attrs:new Pn({}),bitrate:0,details:C,name:"",url:f};C.requestScheduled=t.loading.start+Qr(C,0),s.trigger(d.MANIFEST_LOADED,{levels:[D],audioTracks:[],url:f,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=C,this.handlePlaylistLoaded(C,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(d.ERROR,{type:me.NETWORK_ERROR,details:O.MANIFEST_PARSING_ERROR,fatal:t.type===ge.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let s=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===ge.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===ge.AUDIO_TRACK||e.type===ge.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let c=O.UNKNOWN,u=!1;const f=this.getInternalLoader(e);switch(e.type){case ge.MANIFEST:c=n?O.MANIFEST_LOAD_TIMEOUT:O.MANIFEST_LOAD_ERROR,u=!0;break;case ge.LEVEL:c=n?O.LEVEL_LOAD_TIMEOUT:O.LEVEL_LOAD_ERROR,u=!1;break;case ge.AUDIO_TRACK:c=n?O.AUDIO_TRACK_LOAD_TIMEOUT:O.AUDIO_TRACK_LOAD_ERROR,u=!1;break;case ge.SUBTITLE_TRACK:c=n?O.SUBTITLE_TRACK_LOAD_TIMEOUT:O.SUBTITLE_LOAD_ERROR,u=!1;break}f&&this.resetInternalLoader(e.type);const h={type:me.NETWORK_ERROR,details:c,fatal:u,url:e.url,loader:f,context:e,error:l,networkDetails:t,stats:i};if(r){const A=(t==null?void 0:t.url)||e.url;h.response=x({url:A,data:void 0},r)}this.hls.trigger(d.ERROR,h)}handlePlaylistLoaded(e,t,n,r,i,s){const l=this.hls,{type:c,level:u,id:f,groupId:h,deliveryDirectives:A}=r,C=Ha(t,r),D=al(r),X=typeof r.level=="number"&&D===le.MAIN?u:void 0;if(!e.fragments.length){const Ae=e.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(d.ERROR,{type:me.NETWORK_ERROR,details:O.LEVEL_EMPTY_ERROR,fatal:!1,url:C,error:Ae,reason:Ae.message,response:t,context:r,level:X,parent:D,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const H=e.playlistParsingError;if(H){if(this.hls.logger.warn(H),!l.config.ignorePlaylistParsingErrors){l.trigger(d.ERROR,{type:me.NETWORK_ERROR,details:O.LEVEL_PARSING_ERROR,fatal:!1,url:C,error:H,reason:H.message,response:t,context:r,level:X,parent:D,networkDetails:i,stats:n});return}e.playlistParsingError=null}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),c){case ge.MANIFEST:case ge.LEVEL:l.trigger(d.LEVEL_LOADED,{details:e,levelInfo:r.levelOrTrack||l.levels[0],level:X||0,id:f||0,stats:n,networkDetails:i,deliveryDirectives:A,withoutMultiVariant:c===ge.MANIFEST});break;case ge.AUDIO_TRACK:l.trigger(d.AUDIO_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:f||0,groupId:h||"",stats:n,networkDetails:i,deliveryDirectives:A});break;case ge.SUBTITLE_TRACK:l.trigger(d.SUBTITLE_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:f||0,groupId:h||"",stats:n,networkDetails:i,deliveryDirectives:A});break}}}class ps{static get version(){return us}static isMSESupported(){return sl()}static isSupported(){return Yc()}static getMediaSource(){return ne()}static get Events(){return d}static get MetadataSchema(){return Si}static get ErrorTypes(){return me}static get ErrorDetails(){return O}static get DefaultConfig(){return ps.defaultConfig?ps.defaultConfig:Mc}static set DefaultConfig(e){ps.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new Ki,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const t=this.logger=ee(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=Fc(ps.DefaultConfig,e,t);this.userConfig=e,n.progressive&&Bc(n,t);const{abrController:r,bufferController:i,capLevelController:s,errorController:l,fpsController:c}=n,u=new l(this),f=this.abrController=new r(this),h=new yt(this),A=n.interstitialsController,C=A?this.interstitialsController=new A(this,ps):null,D=this.bufferController=new i(this,h),X=this.capLevelController=new s(this),H=new c(this),Ae=new $c(this),Qe=n.contentSteeringController,Ke=Qe?new Qe(this):null,bt=this.levelController=new Vc(this,Ke),St=new Wc(this),nn=new qc(this.config),wt=this.streamController=new Jc(this,h,nn),Qt=this.gapController=new zc(this,h);X.setStreamController(wt),H.setStreamController(wt);const un=[Ae,bt,wt];C&&un.splice(1,0,C),Ke&&un.splice(1,0,Ke),this.networkControllers=un;const Nt=[f,D,Qt,X,H,St,h];this.audioTrackController=this.createController(n.audioTrackController,un);const In=n.audioStreamController;In&&un.push(this.audioStreamController=new In(this,h,nn)),this.subtitleTrackController=this.createController(n.subtitleTrackController,un);const Hn=n.subtitleStreamController;Hn&&un.push(this.subtititleStreamController=new Hn(this,h,nn)),this.createController(n.timelineController,Nt),nn.emeController=this.emeController=this.createController(n.emeController,Nt),this.cmcdController=this.createController(n.cmcdController,Nt),this.latencyController=this.createController(Hc,Nt),this.coreComponents=Nt,un.push(u);const kr=u.onErrorOut;typeof kr=="function"&&this.on(d.ERROR,kr,u),this.on(d.MANIFEST_LOADED,Ae.onManifestLoaded,Ae)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(n){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+n.message+'". Here is a stacktrace:',n),!this.triggeringException){this.triggeringException=!0;const r=e===d.ERROR;this.trigger(d.ERROR,{type:me.OTHER_ERROR,details:O.INTERNAL_EXCEPTION,fatal:r,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(d.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(t=>t.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(t=>t.destroy()),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const i=new Error(`attachMedia failed: invalid argument (${e})`);this.trigger(d.ERROR,{type:me.OTHER_ERROR,details:O.ATTACH_MEDIA_ERROR,fatal:!0,error:i});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,n=t?e.media:e,r=t?e:{media:n};this._media=n,this.trigger(d.MEDIA_ATTACHING,r)}detachMedia(){this.logger.log("detachMedia"),this.trigger(d.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(d.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,n=this._url,r=this._url=J.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${r}`),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(d.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n<this.networkControllers.length&&(this.networkControllers[n].startLoad(e,t),!(!this.started||!this.networkControllers));n++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}get loadingEnabled(){return this.started}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()}))}get inFlightFragments(){const e={[le.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[le.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[le.SUBTITLE]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=e==null?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=Ji()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){Ut(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const n=e.length;for(let r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let r;if(t===-1&&e!=null&&e.length?r=e.length-1:r=t,n)for(let i=r;i--;){const s=e[i].attrs["HDCP-LEVEL"];if(s&&s<=n)return i}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return((t=this.audioTrackController)==null?void 0:t.setAudioOption(e))||null}setSubtitleOption(e){var t;return((t=this.subtitleTrackController)==null?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!!((e=this.bufferController)!=null&&e.bufferedToEnd)}get interstitialsManager(){var e;return((e=this.interstitialsController)==null?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){const n=an(t);return ut(e,n,navigator.mediaCapabilities)}}ps.defaultConfig=void 0}}]);
|
|
}()); |