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.
1037 lines
1.5 MiB
1037 lines
1.5 MiB
!(function(){var Nl=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[9647],{65030:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return ht}});var h=_(33885),ue=_(42978),z=_(75931),ae=_(43403),B=_(92310),d=_.n(B),_e=_(29301),te=_(76846),o=_(96452),g=_(6089),A=_(80402),p=_(34280),E=_(49658),b=_(59301),L=_(54476),V=_(77900),q=_(8654);function le(Oe){var we=Oe.prefixCls,j=Oe.align,ze=Oe.arrow,Xe=Oe.arrowPos,J=ze||{},M=J.className,Se=J.content,be=Xe.x,W=be===void 0?0:be,fe=Xe.y,ye=fe===void 0?0:fe,tt=b.useRef();if(!j||!j.points)return null;var We={position:"absolute"};if(j.autoArrow!==!1){var $e=j.points[0],et=j.points[1],ct=$e[0],ce=$e[1],Z=et[0],N=et[1];ct===Z||!["t","b"].includes(ct)?We.top=ye:ct==="t"?We.top=0:We.bottom=0,ce===N||!["l","r"].includes(ce)?We.left=W:ce==="l"?We.left=0:We.right=0}return b.createElement("div",{ref:tt,className:d()("".concat(we,"-arrow"),M),style:We},Se)}function F(Oe){var we=Oe.prefixCls,j=Oe.open,ze=Oe.zIndex,Xe=Oe.mask,J=Oe.motion;return Xe?b.createElement(V.default,(0,L.Z)({},J,{motionAppear:!0,visible:j,removeOnLeave:!0}),function(M){var Se=M.className;return b.createElement("div",{style:{zIndex:ze},className:d()("".concat(we,"-mask"),Se)})}):null}var H=b.memo(function(Oe){var we=Oe.children;return we},function(Oe,we){return we.cache}),R=H,w=b.forwardRef(function(Oe,we){var j=Oe.popup,ze=Oe.className,Xe=Oe.prefixCls,J=Oe.style,M=Oe.target,Se=Oe.onVisibleChanged,be=Oe.open,W=Oe.keepDom,fe=Oe.fresh,ye=Oe.onClick,tt=Oe.mask,We=Oe.arrow,$e=Oe.arrowPos,et=Oe.align,ct=Oe.motion,ce=Oe.maskMotion,Z=Oe.forceRender,N=Oe.getPopupContainer,Ie=Oe.autoDestroy,Ce=Oe.portal,Ae=Oe.zIndex,st=Oe.onMouseEnter,lt=Oe.onMouseLeave,Fe=Oe.onPointerEnter,_t=Oe.onPointerDownCapture,Ht=Oe.ready,St=Oe.offsetX,Bt=Oe.offsetY,se=Oe.offsetR,ge=Oe.offsetB,Ee=Oe.onAlign,k=Oe.onPrepare,Y=Oe.stretch,pe=Oe.targetWidth,de=Oe.targetHeight,xe=typeof j=="function"?j():j,Be=be||W,Ye=(N==null?void 0:N.length)>0,dt=b.useState(!N||!Ye),nt=(0,ue.Z)(dt,2),Ue=nt[0],I=nt[1];if((0,p.Z)(function(){!Ue&&Ye&&M&&I(!0)},[Ue,Ye,M]),!Ue)return null;var K="auto",S={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(Ht||!be){var je,De=et.points,Le=et.dynamicInset||((je=et._experimental)===null||je===void 0?void 0:je.dynamicInset),He=Le&&De[0][1]==="r",Ge=Le&&De[0][0]==="b";He?(S.right=se,S.left=K):(S.left=St,S.right=K),Ge?(S.bottom=ge,S.top=K):(S.top=Bt,S.bottom=K)}var ft={};return Y&&(Y.includes("height")&&de?ft.height=de:Y.includes("minHeight")&&de&&(ft.minHeight=de),Y.includes("width")&&pe?ft.width=pe:Y.includes("minWidth")&&pe&&(ft.minWidth=pe)),be||(ft.pointerEvents="none"),b.createElement(Ce,{open:Z||Be,getContainer:N&&function(){return N(M)},autoDestroy:Ie},b.createElement(F,{prefixCls:Xe,open:be,zIndex:Ae,mask:tt,motion:ce}),b.createElement(_e.Z,{onResize:Ee,disabled:!be},function(kt){return b.createElement(V.default,(0,L.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Z,leavedClassName:"".concat(Xe,"-hidden")},ct,{onAppearPrepare:k,onEnterPrepare:k,visible:be,onVisibleChanged:function(fn){var Pe;ct==null||(Pe=ct.onVisibleChanged)===null||Pe===void 0||Pe.call(ct,fn),Se(fn)}}),function(Mt,fn){var Pe=Mt.className,Te=Mt.style,pt=d()(Xe,Pe,ze);return b.createElement("div",{ref:(0,q.sQ)(kt,we,fn),className:pt,style:(0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)({"--arrow-x":"".concat($e.x||0,"px"),"--arrow-y":"".concat($e.y||0,"px")},S),ft),Te),{},{boxSizing:"border-box",zIndex:Ae},J),onMouseEnter:st,onMouseLeave:lt,onPointerEnter:Fe,onClick:ye,onPointerDownCapture:_t},We&&b.createElement(le,{prefixCls:Xe,arrow:We,arrowPos:$e,align:et}),b.createElement(R,{cache:!be&&!fe},xe))})}))}),Q=w,re=b.forwardRef(function(Oe,we){var j=Oe.children,ze=Oe.getTriggerDOMNode,Xe=(0,q.Yr)(j),J=b.useCallback(function(Se){(0,q.mH)(we,ze?ze(Se):Se)},[ze]),M=(0,q.x1)(J,(0,q.C4)(j));return Xe?b.cloneElement(j,{ref:M}):j}),$=re,oe=b.createContext(null),ve=oe;function he(Oe){return Oe?Array.isArray(Oe)?Oe:[Oe]:[]}function ot(Oe,we,j,ze){return b.useMemo(function(){var Xe=he(j!=null?j:we),J=he(ze!=null?ze:we),M=new Set(Xe),Se=new Set(J);return Oe&&(M.has("hover")&&(M.delete("hover"),M.add("click")),Se.has("hover")&&(Se.delete("hover"),Se.add("click"))),[M,Se]},[Oe,we,j,ze])}var U=_(29194);function C(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],j=arguments.length>2?arguments[2]:void 0;return j?Oe[0]===we[0]:Oe[0]===we[0]&&Oe[1]===we[1]}function P(Oe,we,j,ze){for(var Xe=j.points,J=Object.keys(Oe),M=0;M<J.length;M+=1){var Se,be=J[M];if(C((Se=Oe[be])===null||Se===void 0?void 0:Se.points,Xe,ze))return"".concat(we,"-placement-").concat(be)}return""}function G(Oe,we,j,ze){return we||(j?{motionName:"".concat(Oe,"-").concat(j)}:ze?{motionName:ze}:null)}function ie(Oe){return Oe.ownerDocument.defaultView}function X(Oe){for(var we=[],j=Oe==null?void 0:Oe.parentElement,ze=["hidden","scroll","clip","auto"];j;){var Xe=ie(j).getComputedStyle(j),J=Xe.overflowX,M=Xe.overflowY,Se=Xe.overflow;[J,M,Se].some(function(be){return ze.includes(be)})&&we.push(j),j=j.parentElement}return we}function y(Oe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Oe)?we:Oe}function v(Oe){return y(parseFloat(Oe),0)}function O(Oe,we){var j=(0,h.Z)({},Oe);return(we||[]).forEach(function(ze){if(!(ze instanceof HTMLBodyElement||ze instanceof HTMLHtmlElement)){var Xe=ie(ze).getComputedStyle(ze),J=Xe.overflow,M=Xe.overflowClipMargin,Se=Xe.borderTopWidth,be=Xe.borderBottomWidth,W=Xe.borderLeftWidth,fe=Xe.borderRightWidth,ye=ze.getBoundingClientRect(),tt=ze.offsetHeight,We=ze.clientHeight,$e=ze.offsetWidth,et=ze.clientWidth,ct=v(Se),ce=v(be),Z=v(W),N=v(fe),Ie=y(Math.round(ye.width/$e*1e3)/1e3),Ce=y(Math.round(ye.height/tt*1e3)/1e3),Ae=($e-et-Z-N)*Ie,st=(tt-We-ct-ce)*Ce,lt=ct*Ce,Fe=ce*Ce,_t=Z*Ie,Ht=N*Ie,St=0,Bt=0;if(J==="clip"){var se=v(M);St=se*Ie,Bt=se*Ce}var ge=ye.x+_t-St,Ee=ye.y+lt-Bt,k=ge+ye.width+2*St-_t-Ht-Ae,Y=Ee+ye.height+2*Bt-lt-Fe-st;j.left=Math.max(j.left,ge),j.top=Math.max(j.top,Ee),j.right=Math.min(j.right,k),j.bottom=Math.min(j.bottom,Y)}}),j}function me(Oe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j="".concat(we),ze=j.match(/^(.*)\%$/);return ze?Oe*(parseFloat(ze[1])/100):parseFloat(j)}function Qe(Oe,we){var j=we||[],ze=(0,ue.Z)(j,2),Xe=ze[0],J=ze[1];return[me(Oe.width,Xe),me(Oe.height,J)]}function rt(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Oe[0],Oe[1]]}function Ct(Oe,we){var j=we[0],ze=we[1],Xe,J;return j==="t"?J=Oe.y:j==="b"?J=Oe.y+Oe.height:J=Oe.y+Oe.height/2,ze==="l"?Xe=Oe.x:ze==="r"?Xe=Oe.x+Oe.width:Xe=Oe.x+Oe.width/2,{x:Xe,y:J}}function Rt(Oe,we){var j={t:"b",b:"t",l:"r",r:"l"};return Oe.map(function(ze,Xe){return Xe===we?j[ze]||"c":ze}).join("")}function Vt(Oe,we,j,ze,Xe,J,M){var Se=b.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Xe[ze]||{}}),be=(0,ue.Z)(Se,2),W=be[0],fe=be[1],ye=b.useRef(0),tt=b.useMemo(function(){return we?X(we):[]},[we]),We=b.useRef({}),$e=function(){We.current={}};Oe||$e();var et=(0,g.Z)(function(){if(we&&j&&Oe){let Er=function(Cr,Gn){var lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tt,ar=Be.x+Cr,dr=Be.y+Gn,Ar=ar+Ge,Ir=dr+He,qr=Math.max(ar,lr.left),Vn=Math.max(dr,lr.top),ir=Math.min(Ar,lr.right),rr=Math.min(Ir,lr.bottom);return Math.max(0,(ir-qr)*(rr-Vn))},br=function(){bt=Be.y+Ln,zt=bt+He,Ut=Be.x+yn,wt=Ut+Ge};var Z,N,Ie,Ce,Ae=we,st=Ae.ownerDocument,lt=ie(Ae),Fe=lt.getComputedStyle(Ae),_t=Fe.position,Ht=Ae.style.left,St=Ae.style.top,Bt=Ae.style.right,se=Ae.style.bottom,ge=Ae.style.overflow,Ee=(0,h.Z)((0,h.Z)({},Xe[ze]),J),k=st.createElement("div");(Z=Ae.parentElement)===null||Z===void 0||Z.appendChild(k),k.style.left="".concat(Ae.offsetLeft,"px"),k.style.top="".concat(Ae.offsetTop,"px"),k.style.position=_t,k.style.height="".concat(Ae.offsetHeight,"px"),k.style.width="".concat(Ae.offsetWidth,"px"),Ae.style.left="0",Ae.style.top="0",Ae.style.right="auto",Ae.style.bottom="auto",Ae.style.overflow="hidden";var Y;if(Array.isArray(j))Y={x:j[0],y:j[1],width:0,height:0};else{var pe,de,xe=j.getBoundingClientRect();xe.x=(pe=xe.x)!==null&&pe!==void 0?pe:xe.left,xe.y=(de=xe.y)!==null&&de!==void 0?de:xe.top,Y={x:xe.x,y:xe.y,width:xe.width,height:xe.height}}var Be=Ae.getBoundingClientRect(),Ye=lt.getComputedStyle(Ae),dt=Ye.height,nt=Ye.width;Be.x=(N=Be.x)!==null&&N!==void 0?N:Be.left,Be.y=(Ie=Be.y)!==null&&Ie!==void 0?Ie:Be.top;var Ue=st.documentElement,I=Ue.clientWidth,K=Ue.clientHeight,S=Ue.scrollWidth,je=Ue.scrollHeight,De=Ue.scrollTop,Le=Ue.scrollLeft,He=Be.height,Ge=Be.width,ft=Y.height,kt=Y.width,Mt={left:0,top:0,right:I,bottom:K},fn={left:-Le,top:-De,right:S-Le,bottom:je-De},Pe=Ee.htmlRegion,Te="visible",pt="visibleFirst";Pe!=="scroll"&&Pe!==pt&&(Pe=Te);var mt=Pe===pt,Ot=O(fn,tt),xt=O(Mt,tt),Tt=Pe===Te?xt:Ot,Zt=mt?xt:Tt;Ae.style.left="auto",Ae.style.top="auto",Ae.style.right="0",Ae.style.bottom="0";var tn=Ae.getBoundingClientRect();Ae.style.left=Ht,Ae.style.top=St,Ae.style.right=Bt,Ae.style.bottom=se,Ae.style.overflow=ge,(Ce=Ae.parentElement)===null||Ce===void 0||Ce.removeChild(k);var Ft=y(Math.round(Ge/parseFloat(nt)*1e3)/1e3),un=y(Math.round(He/parseFloat(dt)*1e3)/1e3);if(Ft===0||un===0||(0,te.Sh)(j)&&!(0,U.Z)(j))return;var dn=Ee.offset,qt=Ee.targetOffset,Pt=Qe(Be,dn),Ze=(0,ue.Z)(Pt,2),at=Ze[0],Dt=Ze[1],Nt=Qe(Y,qt),nn=(0,ue.Z)(Nt,2),it=nn[0],on=nn[1];Y.x-=it,Y.y-=on;var _n=Ee.points||[],An=(0,ue.Z)(_n,2),Tn=An[0],Xn=An[1],bn=rt(Xn),Zn=rt(Tn),Nn=Ct(Y,bn),Mn=Ct(Be,Zn),Dn=(0,h.Z)({},Ee),yn=Nn.x-Mn.x+at,Ln=Nn.y-Mn.y+Dt,pn=Er(yn,Ln),En=Er(yn,Ln,xt),Rn=Ct(Y,["t","l"]),Fn=Ct(Be,["t","l"]),Un=Ct(Y,["b","r"]),jn=Ct(Be,["b","r"]),mr=Ee.overflow||{},Me=mr.adjustX,Re=mr.adjustY,ke=mr.shiftX,ut=mr.shiftY,gt=function(Gn){return typeof Gn=="boolean"?Gn:Gn>=0},bt,zt,Ut,wt;br();var vt=gt(Re),Et=Zn[0]===bn[0];if(vt&&Zn[0]==="t"&&(zt>Zt.bottom||We.current.bt)){var At=Ln;Et?At-=He-ft:At=Rn.y-jn.y-Dt;var Kt=Er(yn,At),en=Er(yn,At,xt);Kt>pn||Kt===pn&&(!mt||en>=En)?(We.current.bt=!0,Ln=At,Dt=-Dt,Dn.points=[Rt(Zn,0),Rt(bn,0)]):We.current.bt=!1}if(vt&&Zn[0]==="b"&&(bt<Zt.top||We.current.tb)){var mn=Ln;Et?mn+=He-ft:mn=Un.y-Fn.y-Dt;var Bn=Er(yn,mn),hn=Er(yn,mn,xt);Bn>pn||Bn===pn&&(!mt||hn>=En)?(We.current.tb=!0,Ln=mn,Dt=-Dt,Dn.points=[Rt(Zn,0),Rt(bn,0)]):We.current.tb=!1}var xn=gt(Me),On=Zn[1]===bn[1];if(xn&&Zn[1]==="l"&&(wt>Zt.right||We.current.rl)){var kn=yn;On?kn-=Ge-kt:kn=Rn.x-jn.x-at;var Hn=Er(kn,Ln),Sn=Er(kn,Ln,xt);Hn>pn||Hn===pn&&(!mt||Sn>=En)?(We.current.rl=!0,yn=kn,at=-at,Dn.points=[Rt(Zn,1),Rt(bn,1)]):We.current.rl=!1}if(xn&&Zn[1]==="r"&&(Ut<Zt.left||We.current.lr)){var Wn=yn;On?Wn+=Ge-kt:Wn=Un.x-Fn.x-at;var zn=Er(Wn,Ln),tr=Er(Wn,Ln,xt);zn>pn||zn===pn&&(!mt||tr>=En)?(We.current.lr=!0,yn=Wn,at=-at,Dn.points=[Rt(Zn,1),Rt(bn,1)]):We.current.lr=!1}br();var Yn=ke===!0?0:ke;typeof Yn=="number"&&(Ut<xt.left&&(yn-=Ut-xt.left-at,Y.x+kt<xt.left+Yn&&(yn+=Y.x-xt.left+kt-Yn)),wt>xt.right&&(yn-=wt-xt.right-at,Y.x>xt.right-Yn&&(yn+=Y.x-xt.right+Yn)));var qn=ut===!0?0:ut;typeof qn=="number"&&(bt<xt.top&&(Ln-=bt-xt.top-Dt,Y.y+ft<xt.top+qn&&(Ln+=Y.y-xt.top+ft-qn)),zt>xt.bottom&&(Ln-=zt-xt.bottom-Dt,Y.y>xt.bottom-qn&&(Ln+=Y.y-xt.bottom+qn)));var ur=Be.x+yn,yt=ur+Ge,Yt=Be.y+Ln,an=Yt+He,Wt=Y.x,gn=Wt+kt,Kn=Y.y,Cn=Kn+ft,Jn=Math.max(ur,Wt),or=Math.min(yt,gn),xr=(Jn+or)/2,Zr=xr-ur,Mr=Math.max(Yt,Kn),Jr=Math.min(an,Cn),Gr=(Mr+Jr)/2,wr=Gr-Yt;M==null||M(we,Dn);var _r=tn.right-Be.x-(yn+Be.width),Dr=tn.bottom-Be.y-(Ln+Be.height);Ft===1&&(yn=Math.round(yn),_r=Math.round(_r)),un===1&&(Ln=Math.round(Ln),Dr=Math.round(Dr));var Vr={ready:!0,offsetX:yn/Ft,offsetY:Ln/un,offsetR:_r/Ft,offsetB:Dr/un,arrowX:Zr/Ft,arrowY:wr/un,scaleX:Ft,scaleY:un,align:Dn};fe(Vr)}}),ct=function(){ye.current+=1;var N=ye.current;Promise.resolve().then(function(){ye.current===N&&et()})},ce=function(){fe(function(N){return(0,h.Z)((0,h.Z)({},N),{},{ready:!1})})};return(0,p.Z)(ce,[ze]),(0,p.Z)(function(){Oe||ce()},[Oe]),[W.ready,W.offsetX,W.offsetY,W.offsetR,W.offsetB,W.arrowX,W.arrowY,W.scaleX,W.scaleY,W.align,ct]}var Qt=_(94480);function Ve(Oe,we,j,ze,Xe){(0,p.Z)(function(){if(Oe&&we&&j){let ye=function(){ze(),Xe()};var J=we,M=j,Se=X(J),be=X(M),W=ie(M),fe=new Set([W].concat((0,Qt.Z)(Se),(0,Qt.Z)(be)));return fe.forEach(function(tt){tt.addEventListener("scroll",ye,{passive:!0})}),W.addEventListener("resize",ye,{passive:!0}),ze(),function(){fe.forEach(function(tt){tt.removeEventListener("scroll",ye),W.removeEventListener("resize",ye)})}}},[Oe,we,j])}var $t=_(48736);function It(Oe,we,j,ze,Xe,J,M,Se){var be=b.useRef(Oe);be.current=Oe;var W=b.useRef(!1);b.useEffect(function(){if(we&&ze&&(!Xe||J)){var ye=function(){W.current=!1},tt=function(Ie){var Ce;be.current&&!M(((Ce=Ie.composedPath)===null||Ce===void 0||(Ce=Ce.call(Ie))===null||Ce===void 0?void 0:Ce[0])||Ie.target)&&!W.current&&Se(!1)},We=ie(ze);We.addEventListener("pointerdown",ye,!0),We.addEventListener("mousedown",tt,!0),We.addEventListener("contextmenu",tt,!0);var $e=(0,o.A)(j);if($e&&($e.addEventListener("mousedown",tt,!0),$e.addEventListener("contextmenu",tt,!0)),0)var et,ct,ce,Z;return function(){We.removeEventListener("pointerdown",ye,!0),We.removeEventListener("mousedown",tt,!0),We.removeEventListener("contextmenu",tt,!0),$e&&($e.removeEventListener("mousedown",tt,!0),$e.removeEventListener("contextmenu",tt,!0))}}},[we,j,ze,Xe,J]);function fe(){W.current=!0}return fe}var sn=["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 qe(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ae.Z,we=b.forwardRef(function(j,ze){var Xe=j.prefixCls,J=Xe===void 0?"rc-trigger-popup":Xe,M=j.children,Se=j.action,be=Se===void 0?"hover":Se,W=j.showAction,fe=j.hideAction,ye=j.popupVisible,tt=j.defaultPopupVisible,We=j.onPopupVisibleChange,$e=j.afterPopupVisibleChange,et=j.mouseEnterDelay,ct=j.mouseLeaveDelay,ce=ct===void 0?.1:ct,Z=j.focusDelay,N=j.blurDelay,Ie=j.mask,Ce=j.maskClosable,Ae=Ce===void 0?!0:Ce,st=j.getPopupContainer,lt=j.forceRender,Fe=j.autoDestroy,_t=j.destroyPopupOnHide,Ht=j.popup,St=j.popupClassName,Bt=j.popupStyle,se=j.popupPlacement,ge=j.builtinPlacements,Ee=ge===void 0?{}:ge,k=j.popupAlign,Y=j.zIndex,pe=j.stretch,de=j.getPopupClassNameFromAlign,xe=j.fresh,Be=j.alignPoint,Ye=j.onPopupClick,dt=j.onPopupAlign,nt=j.arrow,Ue=j.popupMotion,I=j.maskMotion,K=j.popupTransitionName,S=j.popupAnimation,je=j.maskTransitionName,De=j.maskAnimation,Le=j.className,He=j.getTriggerDOMNode,Ge=(0,z.Z)(j,sn),ft=Fe||_t||!1,kt=b.useState(!1),Mt=(0,ue.Z)(kt,2),fn=Mt[0],Pe=Mt[1];(0,p.Z)(function(){Pe((0,E.Z)())},[]);var Te=b.useRef({}),pt=b.useContext(ve),mt=b.useMemo(function(){return{registerSubPopup:function(ir,rr){Te.current[ir]=rr,pt==null||pt.registerSubPopup(ir,rr)}}},[pt]),Ot=(0,A.Z)(),xt=b.useState(null),Tt=(0,ue.Z)(xt,2),Zt=Tt[0],tn=Tt[1],Ft=b.useRef(null),un=(0,g.Z)(function(Vn){Ft.current=Vn,(0,te.Sh)(Vn)&&Zt!==Vn&&tn(Vn),pt==null||pt.registerSubPopup(Ot,Vn)}),dn=b.useState(null),qt=(0,ue.Z)(dn,2),Pt=qt[0],Ze=qt[1],at=b.useRef(null),Dt=(0,g.Z)(function(Vn){(0,te.Sh)(Vn)&&Pt!==Vn&&(Ze(Vn),at.current=Vn)}),Nt=b.Children.only(M),nn=(Nt==null?void 0:Nt.props)||{},it={},on=(0,g.Z)(function(Vn){var ir,rr,cr=Pt;return(cr==null?void 0:cr.contains(Vn))||((ir=(0,o.A)(cr))===null||ir===void 0?void 0:ir.host)===Vn||Vn===cr||(Zt==null?void 0:Zt.contains(Vn))||((rr=(0,o.A)(Zt))===null||rr===void 0?void 0:rr.host)===Vn||Vn===Zt||Object.values(Te.current).some(function(yr){return(yr==null?void 0:yr.contains(Vn))||Vn===yr})}),_n=G(J,Ue,S,K),An=G(J,I,De,je),Tn=b.useState(tt||!1),Xn=(0,ue.Z)(Tn,2),bn=Xn[0],Zn=Xn[1],Nn=ye!=null?ye:bn,Mn=(0,g.Z)(function(Vn){ye===void 0&&Zn(Vn)});(0,p.Z)(function(){Zn(ye||!1)},[ye]);var Dn=b.useRef(Nn);Dn.current=Nn;var yn=b.useRef([]);yn.current=[];var Ln=(0,g.Z)(function(Vn){var ir;Mn(Vn),((ir=yn.current[yn.current.length-1])!==null&&ir!==void 0?ir:Nn)!==Vn&&(yn.current.push(Vn),We==null||We(Vn))}),pn=b.useRef(),En=function(){clearTimeout(pn.current)},Rn=function(ir){var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;En(),rr===0?Ln(ir):pn.current=setTimeout(function(){Ln(ir)},rr*1e3)};b.useEffect(function(){return En},[]);var Fn=b.useState(!1),Un=(0,ue.Z)(Fn,2),jn=Un[0],mr=Un[1];(0,p.Z)(function(Vn){(!Vn||Nn)&&mr(!0)},[Nn]);var Me=b.useState(null),Re=(0,ue.Z)(Me,2),ke=Re[0],ut=Re[1],gt=b.useState(null),bt=(0,ue.Z)(gt,2),zt=bt[0],Ut=bt[1],wt=function(ir){Ut([ir.clientX,ir.clientY])},vt=Vt(Nn,Zt,Be&&zt!==null?zt:Pt,se,Ee,k,dt),Et=(0,ue.Z)(vt,11),At=Et[0],Kt=Et[1],en=Et[2],mn=Et[3],Bn=Et[4],hn=Et[5],xn=Et[6],On=Et[7],kn=Et[8],Hn=Et[9],Sn=Et[10],Wn=ot(fn,be,W,fe),zn=(0,ue.Z)(Wn,2),tr=zn[0],Yn=zn[1],qn=tr.has("click"),ur=Yn.has("click")||Yn.has("contextMenu"),yt=(0,g.Z)(function(){jn||Sn()}),Yt=function(){Dn.current&&Be&&ur&&Rn(!1)};Ve(Nn,Pt,Zt,yt,Yt),(0,p.Z)(function(){yt()},[zt,se]),(0,p.Z)(function(){Nn&&!(Ee!=null&&Ee[se])&&yt()},[JSON.stringify(k)]);var an=b.useMemo(function(){var Vn=P(Ee,J,Hn,Be);return d()(Vn,de==null?void 0:de(Hn))},[Hn,de,Ee,J,Be]);b.useImperativeHandle(ze,function(){return{nativeElement:at.current,popupElement:Ft.current,forceAlign:yt}});var Wt=b.useState(0),gn=(0,ue.Z)(Wt,2),Kn=gn[0],Cn=gn[1],Jn=b.useState(0),or=(0,ue.Z)(Jn,2),xr=or[0],Zr=or[1],Mr=function(){if(pe&&Pt){var ir=Pt.getBoundingClientRect();Cn(ir.width),Zr(ir.height)}},Jr=function(){Mr(),yt()},Gr=function(ir){mr(!1),Sn(),$e==null||$e(ir)},wr=function(){return new Promise(function(ir){Mr(),ut(function(){return ir})})};(0,p.Z)(function(){ke&&(Sn(),ke(),ut(null))},[ke]);function _r(Vn,ir,rr,cr){it[Vn]=function(yr){var Fr;cr==null||cr(yr),Rn(ir,rr);for(var ri=arguments.length,$r=new Array(ri>1?ri-1:0),ei=1;ei<ri;ei++)$r[ei-1]=arguments[ei];(Fr=nn[Vn])===null||Fr===void 0||Fr.call.apply(Fr,[nn,yr].concat($r))}}(qn||ur)&&(it.onClick=function(Vn){var ir;Dn.current&&ur?Rn(!1):!Dn.current&&qn&&(wt(Vn),Rn(!0));for(var rr=arguments.length,cr=new Array(rr>1?rr-1:0),yr=1;yr<rr;yr++)cr[yr-1]=arguments[yr];(ir=nn.onClick)===null||ir===void 0||ir.call.apply(ir,[nn,Vn].concat(cr))});var Dr=It(Nn,ur,Pt,Zt,Ie,Ae,on,Rn),Vr=tr.has("hover"),Er=Yn.has("hover"),br,Cr;Vr&&(_r("onMouseEnter",!0,et,function(Vn){wt(Vn)}),_r("onPointerEnter",!0,et,function(Vn){wt(Vn)}),br=function(ir){(Nn||jn)&&Zt!==null&&Zt!==void 0&&Zt.contains(ir.target)&&Rn(!0,et)},Be&&(it.onMouseMove=function(Vn){var ir;(ir=nn.onMouseMove)===null||ir===void 0||ir.call(nn,Vn)})),Er&&(_r("onMouseLeave",!1,ce),_r("onPointerLeave",!1,ce),Cr=function(){Rn(!1,ce)}),tr.has("focus")&&_r("onFocus",!0,Z),Yn.has("focus")&&_r("onBlur",!1,N),tr.has("contextMenu")&&(it.onContextMenu=function(Vn){var ir;Dn.current&&Yn.has("contextMenu")?Rn(!1):(wt(Vn),Rn(!0)),Vn.preventDefault();for(var rr=arguments.length,cr=new Array(rr>1?rr-1:0),yr=1;yr<rr;yr++)cr[yr-1]=arguments[yr];(ir=nn.onContextMenu)===null||ir===void 0||ir.call.apply(ir,[nn,Vn].concat(cr))}),Le&&(it.className=d()(nn.className,Le));var Gn=b.useRef(!1);Gn.current||(Gn.current=lt||Nn||jn);var lr=(0,h.Z)((0,h.Z)({},nn),it),ar={},dr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];dr.forEach(function(Vn){Ge[Vn]&&(ar[Vn]=function(){for(var ir,rr=arguments.length,cr=new Array(rr),yr=0;yr<rr;yr++)cr[yr]=arguments[yr];(ir=lr[Vn])===null||ir===void 0||ir.call.apply(ir,[lr].concat(cr)),Ge[Vn].apply(Ge,cr)})});var Ar=b.cloneElement(Nt,(0,h.Z)((0,h.Z)({},lr),ar)),Ir={x:hn,y:xn},qr=nt?(0,h.Z)({},nt!==!0?nt:{}):null;return b.createElement(b.Fragment,null,b.createElement(_e.Z,{disabled:!Nn,ref:Dt,onResize:Jr},b.createElement($,{getTriggerDOMNode:He},Ar)),Gn.current&&b.createElement(ve.Provider,{value:mt},b.createElement(Q,{portal:Oe,ref:un,prefixCls:J,popup:Ht,className:d()(St,an),style:Bt,target:Pt,onMouseEnter:br,onMouseLeave:Cr,onPointerEnter:br,zIndex:Y,open:Nn,keepDom:jn,fresh:xe,onClick:Ye,onPointerDownCapture:Dr,mask:Ie,motion:_n,maskMotion:An,onVisibleChanged:Gr,onPrepare:wr,forceRender:lt,autoDestroy:ft,getPopupContainer:st,align:Hn,arrow:qr,arrowPos:Ir,ready:At,offsetX:Kt,offsetY:en,offsetR:mn,offsetB:Bn,onAlign:yt,stretch:pe,targetWidth:Kn/On,targetHeight:xr/kn})))});return we}var ht=qe(ae.Z)},99481:function(Pn,Xt,_){"use strict";var h=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,A)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:A}):o[g]=A,_e=(o,g)=>{for(var A in g||(g={}))ae.call(g,A)&&d(o,A,g[A]);if(z)for(var A of z(g))B.call(g,A)&&d(o,A,g[A]);return o};const te=o=>React.createElement("svg",_e({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},o),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Xt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},94910:function(Pn,Xt,_){"use strict";var h=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,A)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:A}):o[g]=A,_e=(o,g)=>{for(var A in g||(g={}))ae.call(g,A)&&d(o,A,g[A]);if(z)for(var A of z(g))B.call(g,A)&&d(o,A,g[A]);return o};const te=o=>React.createElement("svg",_e({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},o),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Xt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},917:function(Pn,Xt,_){"use strict";var h=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,A)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:A}):o[g]=A,_e=(o,g)=>{for(var A in g||(g={}))ae.call(g,A)&&d(o,A,g[A]);if(z)for(var A of z(g))B.call(g,A)&&d(o,A,g[A]);return o};const te=o=>React.createElement("svg",_e({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"}));Xt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0Y3QjUwMCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptMSAzSDYuMzk1YTMuNTAxIDMuNTAxIDAgMCAxLS44NTcgMS4yNDVjLS4zMi4yOTQtLjc1Mi41NTEtMS4yOTcuNzcyTDQgOS4xMDlWMTAuOWMuNDQ4LS4xNTQuODItLjMxNSAxLjExNy0uNDgzLjIyMi0uMTI2LjQ1LS4yODIuNjg1LS40NjZsLjIzNi0uMTk0VjE1SDhWN1pNNC44MTIgMGMuMTc1IDAgLjM1LjE2LjQzOC4zMThsMS4zMTMgMi4zMDlzLTIuOC4xNi00LjQ2MyAxLjY3MkwuMDg4LjcxNkMwIC42MzYgMCAuNTU3IDAgLjQ3OCAwIC4xNTkuMjYzIDAgLjUyNSAwWm04LjY2MyAwYy4yNjMgMCAuNTI1LjIzOS41MjUuNDc4IDAgLjA4IDAgLjE1OS0uMDg4LjIzOEwxMS45IDQuMjJjLTEuNjYyLTEuNDMzLTQuNDYzLTEuNTkyLTQuNDYzLTEuNTkyTDguNzUuMzE4QzguNzUuMTYgOC45MjUgMCA5LjE4OCAwWiIvPjwvc3ZnPg=="},78201:function(Pn,Xt,_){"use strict";var h=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,A)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:A}):o[g]=A,_e=(o,g)=>{for(var A in g||(g={}))ae.call(g,A)&&d(o,A,g[A]);if(z)for(var A of z(g))B.call(g,A)&&d(o,A,g[A]);return o};const te=o=>React.createElement("svg",_e({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"}));Xt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0I5QzRDRiIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLjA1IDNjLS42NzUgMC0xLjIwMy4wOTItMS41ODQuMjc2YTIuMDU2IDIuMDU2IDAgMCAwLS44ODcuNzk0Yy0uMTguMjk2LS4zMS42OTEtLjM5NCAxLjE4NmwtLjAzOC4yNTUgMi4wMDQuMTc3Yy4wNTUtLjQ0My4xNjQtLjc1My4zMjYtLjkyOGEuODE0LjgxNCAwIDAgMSAuNjI2LS4yNjMuODEuODEgMCAwIDEgLjYxMS4yNTVjLjE2Mi4xNy4yNDMuMzc1LjI0My42MTQgMCAuMjIyLS4wODEuNDU2LS4yNDUuNzAzLS4xNjQuMjQ3LS41MzkuNjA4LTEuMTI0IDEuMDg0LS45Ni43NzYtMS42MTMgMS40NS0xLjk2MiAyLjAyYTQuMzYzIDQuMzYzIDAgMCAwLS41ODggMS41NTJMNCAxNWg2di0xLjc4MUg2Ljg3N2MuMTg0LS4xOTcuMzQzLS4zNTYuNDc5LS40NzguMTM2LS4xMjIuNDA1LS4zMzQuODA4LS42MzguNjc3LS41MjMgMS4xNDUtMS4wMDIgMS40MDEtMS40MzguMjU3LS40MzcuMzg2LS44OTUuMzg2LTEuMzc0IDAtLjQ1LS4xMTItLjg1OC0uMzM2LTEuMjJhMi4wNDMgMi4wNDMgMCAwIDAtLjkyNC0uODA4QzguMzAxIDcuMDg4IDcuNzUzIDcgNy4wNSA3Wk00LjgxMiAwYy4xNzUgMCAuMzUuMTYuNDM3LjMxOGwxLjMxMyAyLjMwOXMtMi44LjE2LTQuNDYzIDEuNjcyTC4wODguNzE2QzAgLjYzNiAwIC41NTcgMCAuNDc4IDAgLjE1OS4yNjMgMCAuNTI1IDBabTguNjYyIDBjLjI2MyAwIC41MjUuMjM5LjUyNS40NzggMCAuMDggMCAuMTU5LS4wODguMjM4TDExLjkgNC4yMmMtMS42NjItMS40MzMtNC40NjMtMS41OTItNC40NjMtMS41OTJMOC43NS4zMThDOC43NS4xNiA4LjkyNSAwIDkuMTg4IDBaIi8+PC9zdmc+"},45010:function(Pn,Xt,_){"use strict";var h=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,A)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:A}):o[g]=A,_e=(o,g)=>{for(var A in g||(g={}))ae.call(g,A)&&d(o,A,g[A]);if(z)for(var A of z(g))B.call(g,A)&&d(o,A,g[A]);return o};const te=o=>React.createElement("svg",_e({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"}));Xt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0QwOUYxOCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLS4wNjIgM2MtLjgyNiAwLTEuNDY0LjE3Mi0xLjkxNS41MTctLjQuMzA3LS42ODYuNzMzLS44NTYgMS4yNzhsLS4wNTguMjEgMS45MDguMzY0Yy4wNTItLjM4My4xNTMtLjY1MS4zMDItLjgwNGEuNzcyLjc3MiAwIDAgMSAuNTgtLjIzYy4yMyAwIC40MTIuMDcuNTQ0LjIxMS4xMzMuMTQuMTk5LjMzLjE5OS41NjVhLjg4Ljg4IDAgMCAxLS4yNjUuNjM4Ljg5Ljg5IDAgMCAxLS42NjIuMjcgMS4z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Mi43OUw4Ljc1LjMzOEM4Ljc1LjE3IDguOTI1IDAgOS4xODggMFoiLz48L3N2Zz4="},51155:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return d}});var h=_(37639),ue={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},z=_(32637),ae=_(59301),d=({type:_e,style:te})=>{const o=ae.createElement("div",{className:ue.wrap,onClick:g=>{g.preventDefault(),g.stopPropagation()}},ae.createElement("p",null,_e==="shixun"||_e==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",ae.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",_e==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),ae.createElement("div",{className:ue.contact},ae.createElement("div",{className:ue.img},ae.createElement("img",{src:z,width:"124px",height:"124px"})),ae.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return ae.createElement(h.Z,{content:o},ae.createElement("span",{className:ue.text,style:te},"\u9AD8\u6D88\u8017"))}},59243:function(Pn,Xt,_){"use strict";var h=_(59301),ue=_(93314),z=_(7939),ae=Object.defineProperty,B=Object.defineProperties,d=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,g=(b,L,V)=>L in b?ae(b,L,{enumerable:!0,configurable:!0,writable:!0,value:V}):b[L]=V,A=(b,L)=>{for(var V in L||(L={}))te.call(L,V)&&g(b,V,L[V]);if(_e)for(var V of _e(L))o.call(L,V)&&g(b,V,L[V]);return b},p=(b,L)=>B(b,d(L));const E=({img:b,buttonProps:L={},styles:V={},customText:q,ButtonText:le,ButtonClick:F,Buttonclass:H,ButtonTwo:R,imgStyles:w,loading:Q=!1,className:re=""})=>h.createElement("section",{className:`tc animated fadeIn ${re}`,style:A({color:"#999",margin:"100px auto",visibility:Q?"hidden":"visible"},V)},h.createElement("img",{src:b||ue,style:p(A({},w),{pointerEvents:"none",userSelect:"none"})}),h.createElement("p",{className:"mt20 font14"},q||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),le&&h.createElement(z.ZP,A({className:H,onClick:F},L),le),R&&R);Xt.Z=E},47199:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return H}});var h=_(59301),ue={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},z=_(7939),ae=_(70557),B=_(58478),d=_(25399),_e=_(31735),te=_(22167),o=_(59243),g=_(26869),A=_(38609),p=_(59301),E=Object.defineProperty,b=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,q=(R,w,Q)=>w in R?E(R,w,{enumerable:!0,configurable:!0,writable:!0,value:Q}):R[w]=Q,le=(R,w)=>{for(var Q in w||(w={}))L.call(w,Q)&&q(R,Q,w[Q]);if(b)for(var Q of b(w))V.call(w,Q)&&q(R,Q,w[Q]);return R},F=(R,w,Q)=>new Promise((re,$)=>{var oe=ot=>{try{he(Q.next(ot))}catch(U){$(U)}},ve=ot=>{try{he(Q.throw(ot))}catch(U){$(U)}},he=ot=>ot.done?re(ot.value):Promise.resolve(ot.value).then(oe,ve);he((Q=Q.apply(R,w)).next())}),H=({editOffice:R="view",data:w,issaver:Q,onSaver:re,theme:$,type:oe,filename:ve,monacoEditor:he,className:ot,style:U,close:C,onClose:P,hasMask:G,disabledDownload:ie,onImgDimensions:X,showNodata:y,recordInfo:v})=>{const[O,me]=(0,h.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Qe,rt]=(0,h.useState)(""),[Ct,Rt]=(0,h.useState)(),Vt=window.ENV==="build"?"/react/build":"",Qt=location.host.startsWith("localhost")?g.Z.PROXY_SERVER:g.Z.API_SERVER,$t=10*(1024*1024),It=(0,h.useRef)();w!=null&&w.startsWith("/api")&&oe!=="txt"&&(w=g.Z.API_SERVER+w);const sn=j=>j.substring(j.lastIndexOf("/")+1).split(".").pop();ve&&he&&(he.filename=ve),(0,h.useEffect)(()=>{var j,ze;const Xe=(ze=(j=document.cookie)==null?void 0:j.replace(/\s/g,""))==null?void 0:ze.split(";");Xe==null||Xe.map(J=>{let M=J.split("=");M[0]==="_educoder_session"&&rt(M[1])})},[]),(0,h.useEffect)(()=>{oe==="office"&&(w.indexOf("bigfilescdn.")>-1||w.indexOf("bigfiles1")>-1?Rt({url:w,fileType:sn(w),model:w.indexOf("model=edit")?"edit":"view"}):ht())},[oe,w]);function qe(j){return F(this,null,function*(){j.data.type==="pdfdata"&&(re(j.data.data),window.removeEventListener("message",qe,!1)),console.log("mess---:",j.data)})}const ht=()=>F(void 0,null,function*(){console.log("data:",w);let j=w;w.startsWith("http")||(j=location.origin+j);let ze=new URL(j).pathname.split("/").pop();const Xe=yield(0,te.gJ)({attachment_id:ze});Xe.url=Qt+Xe.url,Rt(Xe)}),Oe=()=>{if(w.startsWith("http")||w.startsWith("blob:")){we();return}(0,_e.Sv)(ve||"educoder",w,ve)},we=()=>{v&&(0,A.fc)({id:v==null?void 0:v.id,watch_type:1,course_id:v==null?void 0:v.course_id}),(0,_e.Nd)(ve||"educoder",decodeURIComponent(w))};return p.createElement("div",{style:le({},U||{}),className:`${G&&ue.bgBlack} ${oe?ue.wrp:"hide"}`},C&&p.createElement("div",{className:ue.close,ref:It},!!X&&p.createElement(d.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>It.current},p.createElement("span",{onClick:()=>{P(),X()}},p.createElement("i",{className:"icon-yulanpizhu"}))),!ie&&p.createElement(d.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>It.current},p.createElement("span",{onClick:we},p.createElement("i",{className:"icon-quxiaozhiding"}))),Q&&p.createElement(d.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>It.current},p.createElement("span",{className:"",onClick:()=>{const j=document.getElementById("pdfiframe");window.addEventListener("message",qe,!1),setTimeout(()=>{j.contentWindow.postMessage("getData","*")},300)}},p.createElement("i",{className:"icon-baocun"}))),p.createElement(d.Z,{title:"\u5173\u95ED",getPopupContainer:()=>It.current},p.createElement("span",{className:"",onClick:()=>{P()}},p.createElement("i",{className:"icon-guanbi1"})))),p.createElement("div",{className:`${ue[ot]} ${ot} ${ue.monaco} ${oe==="txt"?"show":"hide"}`},oe==="txt"&&p.createElement(p.Fragment,null,p.createElement(B.ZP,le({},he)))),oe==="audio"&&p.createElement("audio",{src:`${(w==null?void 0:w.indexOf("http://"))>-1||(w==null?void 0:w.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${w}`,autoPlay:!0}),oe==="video"&&p.createElement(p.Fragment,null,(w==null?void 0:w.indexOf("http"))>-1?p.createElement("video",{controls:!0,src:`${w}`,autoPlay:!0}):p.createElement("video",{controls:!0,src:`data:video/mp4;base64,${w}`,autoPlay:!0})),oe==="office"&&Ct&&p.createElement("iframe",{src:`${Vt}/office.html?key=${Ct.key}&url=${btoa(Ct.url)}&callbackUrl=${Qt+(Ct.callbackUrl||"")}&fileType=${Ct.fileType}&title=${Ct.title||""}&model=${R}&officeServer=${g.Z.ONLYOFFICE}&disabledDownload=${!!ie}`}),oe==="html"&&p.createElement("iframe",{src:w+"&disposition=inline"}),oe==="pdf"&&Q&&p.createElement("iframe",{id:"pdfiframe",src:`${Vt}/js/pdfview/index.html?filename=${ve||"educoder.pdf"}&url=${encodeURIComponent(w)}&disabledDownload=${!!ie}&model=${R}`}),oe==="pdf"&&!Q&&p.createElement("embed",{className:ue.embed,src:w+"#toolbar=0&statusbar=0&navpanes=0&scrollbars=0"}),oe==="image"&&p.createElement("img",{src:`${(w==null?void 0:w.indexOf("http://"))>-1||(w==null?void 0:w.indexOf("https://"))>-1?"":"data:image/png;base64,"}${w}`}),(oe==="other"||oe==="download")&&p.createElement(p.Fragment,null,y?p.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:p.createElement(z.ZP,{icon:p.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Oe,disabled:ie},"\u4E0B\u8F7D")}):p.createElement(z.ZP,{type:"primary",size:"middle",onClick:Oe,disabled:ie},p.createElement(ae.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),oe==="flowChart"&&p.createElement("div",{className:"embed"},p.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${w||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},59944:function(Pn,Xt,_){"use strict";_.d(Xt,{z:function(){return he},Z:function(){return ot}});var h=_(59301),ue=_(54196),z=_(58489),ae=_(64018),B=_(80360),d=_(26869),_e=_(31735),te=_(15342),o=_(44104),g=_(7939),A=_(1012),p=_(47199),E=_(59301),L=({html:U})=>{const C=(0,h.useRef)(null),P=(0,h.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,h.useEffect)(()=>{const ie=C.current.attachShadow({mode:"open"});P.current=document.createElement("div"),P.current.className="markdown-body",P.current.innerHTML=U,ie.appendChild(P.current);const X=document.createElement("style");return X.textContent=G,ie.appendChild(X),()=>{ie.innerHTML=""}},[]),(0,h.useEffect)(()=>{P.current&&(P.current.innerHTML=U)},[U]),E.createElement("div",{ref:C})};function V(U){const C=["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"],P=new RegExp(`\\b(${C.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return U.replace(P,"").trim()}var q={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},le=Object.defineProperty,F=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,w=(U,C,P)=>C in U?le(U,C,{enumerable:!0,configurable:!0,writable:!0,value:P}):U[C]=P,Q=(U,C)=>{for(var P in C||(C={}))H.call(C,P)&&w(U,P,C[P]);if(F)for(var P of F(C))R.call(C,P)&&w(U,P,C[P]);return U};const re="@\u2581\u2581@",$="@\u2581@",oe=/<pre[^>]*>/g;function ve(U){let C=document.createElement("div");return C.innerHTML=U,C.childNodes.length===0?"":C.childNodes[0].nodeValue}const he=(U,C)=>{U=U||"";const P=/(?: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,ie=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,X=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return C?U.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(P,(y,v,O,me,Qe,rt,Ct)=>{const Rt=v||me||rt,Vt=O||Qe||Ct||"?";return d.Z.API_SERVER+"/api/attachments/"+Rt+Vt+"&t="+(0,_e.Jn)(Rt,Date.now())+(y.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(U=U.replace(X,(y,v,O,me,Qe,rt,Ct)=>{const Rt=v||me||rt,Vt=O||Qe||Ct||"?";return d.Z.API_SERVER+"/attachments/download/"+Rt+Vt+"&t="+(0,_e.Jn)(Rt,Date.now())+(y.indexOf(")")>-1?")":"&")}).replace(P,(y,v,O,me,Qe,rt,Ct)=>{const Rt=v||me||rt,Vt=O||Qe||Ct||"?";return d.Z.API_SERVER+"/api/attachments/"+Rt+Vt+"&t="+(0,_e.Jn)(Rt,Date.now())+(y.indexOf(")")>-1?")":"&")}).replace(G,(y,v,O,me,Qe)=>{const rt=v||me,Ct=O||Qe||"";return'"'+d.Z.API_SERVER+"/api/attachments/"+rt+Ct+rt+Ct+"&t="+(0,_e.Jn)(rt,Date.now())}).replace(ie,(y,v,O,me,Qe)=>{const rt=v||me,Ct=O||Qe||"";return"("+d.Z.API_SERVER+"/files/uploads/"+rt+Ct+rt+Ct+"&t="+(0,_e.Jn)(rt,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,`
|
|
`),U)};var ot=({value:U="",edit:C=!1,className:P,showTextOnly:G,showLines:ie,style:X={},stylesPrev:y={},highlightKeywords:v,showProgramFill:O,isProgramFill:me,disabledFill:Qe=!1,programFillValue:rt,openEditor:Ct=()=>{},onFillChange:Rt=Ve=>{},onFillBlur:Vt=()=>{},onFillFocus:Qt=()=>{}})=>{let Ve=V(String(U||""));const $t=(0,h.useRef)(),It=(0,h.useRef)(),[sn,qe]=(0,h.useState)(""),[ht,Oe]=(0,h.useState)("office"),[we,j]=(0,h.useState)([]),ze=(0,h.useRef)("a"+(0,A.Z)()),Xe={},J=N=>/<style[\s\S]*?>/i.test(N||""),M=(N,Ie,Ce)=>{const Ae=document.createElement(N===$?"input":"textarea");Ae.style.width="100%",Ae.style.height=N===$?"40px":"151px",Ae.rows=5,Ae.spellcheck=!1,Ae.name="edu-program-fill",Ae.placeholder="\u8BF7\u8F93\u5165",Ae.dataset.id=Ie;const st=Object.keys(Xe).length;return Xe[st]=Ae,`<span class="edu-program-fill-wrap ${N===$?"":"show"}" style="width:${N===$?"600px":"100%"}" title=${Ce||""}><span>${Ae.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Se(N){return N=N.replace(/!\[.*?\]\(.*?\)/g,""),N=N.replace(/\[.*?\]\(.*?\)/g,""),N=N.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),N=N.replace(/<embed.*?>/g,""),N=N.replace(/<img.*?>/g,""),N=N.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),N=N.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),N=N.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),N=N.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),N}const be=N=>!G&&J(Ve)?N:N.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Ie,Ce){let Ae=Ce.replace(/(\n|\r)/g,"").split("}"),st=[];return Ae.map(lt=>{lt!=""&&st.push(`.${ze.current} ${lt}`)}),`<style>${st.join("}")}</style>`}),W=(0,h.useMemo)(()=>{try{const Ae=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,st=/\"\/api\/attachments\/|\"\/attachments\/download\//g,lt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Fe=/\(\/attachments\/download\//g;Ve=Ve.replace(Fe,"("+d.Z.API_SERVER+"/attachments/download/").replace(Ae,"("+d.Z.API_SERVER+"/api/attachments/").replace(st,'"'+d.Z.API_SERVER+"/api/attachments/").replace(lt,'"'+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,`
|
|
`),$t.current.style.display="none"}catch(Ae){}if(O){let Ae=-1;return Ve=Ve.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(st,lt,Fe){var _t;return++Ae,M(st,Ae,(_t=rt==null?void 0:rt[Ae])==null?void 0:_t.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${be(Ve||"")}</pre>`}let N=be(Ve);N=(0,z.ZP)(N);const Ie=(0,z.ez)();Ve.match(/\[TOC\]/)&&(N=N.replace("<p>[TOC]</p>",(0,z.Qv)()),(0,z.Iy)()),N=N.replace(/(__special_katext_id_\d+__)/g,(Ae,st)=>{const{type:lt,expression:Fe}=Ie[st];return(0,te.renderToString)(ve(Fe)||"",{displayMode:lt==="block",throwOnError:!1,output:"html"})}),N=N.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,z.AL)();const Ce=document.createElement("div");if(Ce.innerHTML=N,G)return Ce.innerText;if(v){const Ae=v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return We(Ce,Ae),Ce.innerHTML}return setTimeout(()=>ct(),500),Ce.innerHTML},[Ve,v]);(0,h.useEffect)(()=>{$e.current&&$e.current.querySelectorAll(["input","textarea"]).forEach(Ie=>{Ie.oninput=fe,Ie.onblur=ye,Ie.onfocus=tt})},[we]),(0,h.useEffect)(()=>{var N,Ie,Ce,Ae,st;if(rt!=null&&rt.length)try{const lt=$e.current.querySelectorAll(".edu-program-fill-score"),Fe=$e.current.querySelectorAll('[name="edu-program-fill"]');for(const[_t,Ht]of Fe.entries())Ht.value=((N=rt==null?void 0:rt[_t])==null?void 0:N.value)||"",((Ie=rt==null?void 0:rt[_t])==null?void 0:Ie.type)==="warning"?Ht.className="program-fill-warning":((Ce=rt==null?void 0:rt[_t])==null?void 0:Ce.type)==="success"?Ht.className="program-fill-success":Ht.className="";for(const[_t,Ht]of lt.entries())Ht.innerHTML=(Ae=rt==null?void 0:rt[_t])!=null&&Ae.score?`${(st=rt==null?void 0:rt[_t])==null?void 0:st.score}\u5206`:"";j(rt)}catch(lt){console.log(lt,"error")}},[rt]);const fe=N=>{we[N.target.dataset.id]=we[N.target.dataset.id]||{},we[N.target.dataset.id].value=N.target.value,j([...we]),Rt(we,N.target.dataset.id)},ye=N=>{we[N.target.dataset.id]=we[N.target.dataset.id]||{},we[N.target.dataset.id].value=N.target.value,j([...we]),Vt(we,N.target.dataset.id)},tt=N=>{we[N.target.dataset.id]=we[N.target.dataset.id]||{},we[N.target.dataset.id].value=N.target.value,j([...we]),Qt(we,N.target.dataset.id)};function We(N,Ie){return N.childNodes.forEach(Ce=>{var Ae;if(Ce.childNodes.length>0)We(Ce,Ie);else if(Ce.nodeName!=="IMG")if(Ce.innerHTML)Ce.innerHTML=(Ae=Ce.innerHTML)==null?void 0:Ae.replace(new RegExp(Ie,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const st=document.createElement("span");st.innerHTML=Ce.textContent.replace(new RegExp(Ie,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ce.replaceWith(st)}})}const $e=(0,h.useRef)();z.jb.WebkitLineClamp=ie,ie&&(X=Q(Q({},X),z.jb));function et(N){let Ie=N.target;if(Ie.tagName.toUpperCase()==="A"){let Ce=Ie.getAttribute("href");if(Ce.indexOf("office")>-1)N.preventDefault(),qe(Ce),Oe("office");else if(Ce.indexOf("application/pdf")>-1)N.preventDefault(),qe(Ce),Oe("pdf");else if(Ce.indexOf("text/html")>-1)N.preventDefault(),qe(Ce),Oe("html");else if(Ce.startsWith("#")){N.preventDefault();let Ae=document.getElementById(Ce.replace("#",""));Ae&&Ae.scrollIntoView(!0)}}}const ct=()=>{var N;const Ie=(N=$e.current)==null?void 0:N.querySelectorAll("video");Ie==null||Ie.forEach(Ce=>{if(Ce.oncontextmenu=()=>!1,Ce.src.indexOf(".m3u8")>-1&&!Ce.canPlayType("application/vnd.apple.mpegurl")){if(B.ZP.isSupported()){var Ae=new B.ZP;Ae.loadSource(Ce.src),Ae.attachMedia(Ce)}}})};(0,h.useEffect)(()=>{if($e.current&&W&&W.match(oe)&&window.PR.prettyPrint(),$e.current)return $e.current.addEventListener("click",et),()=>{var N;(N=$e.current)==null||N.removeEventListener("click",et),(0,z.AL)(),(0,z.Iy)()}},[W,$e.current,et]);const ce=N=>{N.target.nodeName==="IMG"&&N.target.className.indexOf("draw-flowchart")>-1?($t.current.style.zIndex=1,$t.current.style.display="flex",$t.current.style.width=N.target.clientWidth+"px",$t.current.style.height=N.target.clientHeight+"px",$t.current.style.top=N.target.offsetTop+"px",$t.current.style.left=N.target.offsetLeft+"px",N.target.id&&(It.current=N.target.id)):$t.current.style.display="none"},Z=()=>{$t.current.style.display="none"};return(0,h.useEffect)(()=>{var N;const Ie=Ce=>{Ce.preventDefault(),Ce.clipboardData.setData("text",window.getSelection().toString())};return(N=$e.current)==null||N.addEventListener("copy",Ie),()=>{var Ce;(Ce=$e.current)==null||Ce.removeEventListener("copy",Ie)}},[$e.current]),h.createElement("div",{style:{position:"relative"},onMouseLeave:Z},G&&h.createElement("div",{ref:$e,className:`${q.mdBody} `},W),!G&&!J(W)&&h.createElement("div",{ref:$e,style:Q({},X),onMouseOver:ce,className:`${P||""} ${Qe?"disabled-fill":""} markdown-body ${q.mdBody} ${ze.current}`,dangerouslySetInnerHTML:{__html:W}}),!G&&J(W)&&h.createElement(L,{html:W}),h.createElement("div",{ref:$t,className:`${q.button} ${C?"":q.previewFlowChart}`},h.createElement(o.Z,null,h.createElement(g.ZP,{onClick:()=>{C?Ct(It.current):(qe(It.current),Oe("flowChart"))}},C?"\u7F16\u8F91":"\u9884\u89C8"))),h.createElement(p.Z,{close:!0,data:sn,type:sn!=null&&sn.length?ht:"",style:Q({},y),onClose:()=>qe("")}))}},58478:function(Pn,Xt,_){"use strict";_.d(Xt,{SV:function(){return $t},ZP:function(){return Ve}});var h=_(59301),ue=_(76374);const z={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"]},ae={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"]},B={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(`
|
|
`)}]},_e={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 te=_(53184),o=_.n(te),g=(It,sn,qe)=>new Promise((ht,Oe)=>{var we=Xe=>{try{ze(qe.next(Xe))}catch(J){Oe(J)}},j=Xe=>{try{ze(qe.throw(Xe))}catch(J){Oe(J)}},ze=Xe=>Xe.done?ht(Xe.value):Promise.resolve(Xe.value).then(we,j);ze((qe=qe.apply(It,sn)).next())});const A={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"]}},p=(It,sn,qe,ht)=>{const Oe=sn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:qe.lineNumber,endColumn:qe.column});return Array.from(new Set(Oe.match(/\b\w{2,}\b/g)||[])).map(j=>({label:j,kind:It.languages.CompletionItemKind.Text,insertText:j,range:ht}))},E=(It,sn,qe,ht)=>{It.languages.registerCompletionItemProvider(sn,{provideCompletionItems(Oe,we){const j=Oe.getWordUntilPosition(we),ze={startLineNumber:we.lineNumber,endLineNumber:we.lineNumber,startColumn:j.startColumn,endColumn:j.endColumn},Xe=Oe.getLineContent(we.lineNumber).substring(j.startColumn-2,j.endColumn);return{suggestions:[...p(It,Oe,we,ze),...qe.map(M=>({label:M,kind:It.languages.CompletionItemKind.Keyword,documentation:M,insertText:M,insertTextRules:It.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze})),...ht.map(M=>({label:M.label,kind:It.languages.CompletionItemKind.Snippet,documentation:M.content,insertText:Xe.startsWith("#")?M.content.replace(/#/,""):M.content,insertTextRules:It.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}))]}}})};var b=It=>{A.languages.forEach(sn=>{It.languages.registerDocumentFormattingEditProvider(sn,{provideDocumentFormattingEdits(qe){return g(this,null,function*(){const ht=o()(qe.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:qe.getFullModelRange(),text:ht}]})}})}),E(It,"java",ae.keywords,ae.quickKey),E(It,"cpp",B.keywords,B.quickKey),E(It,"c",z.keywords,[]),E(It,"python",d.keywords,d.quickKey),E(It,"scala",_e.keywords,_e.quickKey)};const L="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var V=Object.defineProperty,q=(It,sn,qe)=>sn in It?V(It,sn,{enumerable:!0,configurable:!0,writable:!0,value:qe}):It[sn]=qe,le=(It,sn,qe)=>q(It,typeof sn!="symbol"?sn+"":sn,qe);const F=class Ml{constructor(sn,qe,ht){this.placeholder=sn,this.editor=qe,this.monaco=ht,qe.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Ml.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)}};le(F,"ID","editor.widget.placeholderHint");var R=F,w=_(96236),Q=_(6767),re=_(25399),$=_(89392),oe=_(94276),ve=_(56102),he=Object.defineProperty,ot=Object.defineProperties,U=Object.getOwnPropertyDescriptors,C=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,ie=(It,sn,qe)=>sn in It?he(It,sn,{enumerable:!0,configurable:!0,writable:!0,value:qe}):It[sn]=qe,X=(It,sn)=>{for(var qe in sn||(sn={}))P.call(sn,qe)&&ie(It,qe,sn[qe]);if(C)for(var qe of C(sn))G.call(sn,qe)&&ie(It,qe,sn[qe]);return It},y=(It,sn)=>ot(It,U(sn)),v=(It,sn)=>{var qe={};for(var ht in It)P.call(It,ht)&&sn.indexOf(ht)<0&&(qe[ht]=It[ht]);if(It!=null&&C)for(var ht of C(It))sn.indexOf(ht)<0&&G.call(It,ht)&&(qe[ht]=It[ht]);return qe},O=(It,sn,qe)=>new Promise((ht,Oe)=>{var we=Xe=>{try{ze(qe.next(Xe))}catch(J){Oe(J)}},j=Xe=>{try{ze(qe.throw(Xe))}catch(J){Oe(J)}},ze=Xe=>Xe.done?ht(Xe.value):Promise.resolve(Xe.value).then(we,j);ze((qe=qe.apply(It,sn)).next())});function me(It){return/^\d+$/.test(It)?`${It}px`:It}function Qe(){}let rt=!1;const Ct={"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 Rt(It=[]){let sn=It;if(Array.isArray(It)){for(let qe=0;qe<It.length;qe++){let ht=Ct[It[qe]];if(ht)return ht}return sn[0]}return Ct[sn]||sn}let Vt=null;const Qt=()=>O(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(It){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",It)}});var Ve=It=>{var sn=It,{width:qe="100%",height:ht="100%",value:Oe,language:we="javascript",style:j={},options:ze={},overrideServices:Xe={},theme:J="vs-dark",onEditBlur:M,isCopy:Se=!1,onSave:be,autoHeight:W=!1,forbidCopy:fe=!1,onChange:ye=Qe,editorDidMount:tt=Qe,onFocus:We=Qe,onBreakPoint:$e=Qe,breakPointValue:et=[],filename:ct="educoder.txt",errorLine:ce,errorContent:Z="",highlightLine:N,openBreakPoint:Ie=!1,placeholder:Ce="",showMiniMap:Ae=!0}=sn,st=v(sn,["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 lt=(0,h.useRef)(),Fe=(0,h.useRef)({}),_t=(0,h.useRef)(),Ht=(0,h.useRef)(),St=(0,h.useRef)([]),Bt=(0,h.useRef)(!1),se=(0,h.useRef)(),ge=(0,h.useRef)(),Ee=(0,h.useRef)(!1),[k,Y]=(0,h.useState)(!1);function pe(){let Ge;return lt.current&&(Ge=new ue.Z(ft=>{for(let kt of ft)(kt.target.offsetHeight>0||kt.target.offsetWidth>0)&&Fe.current.instance.layout()}),Ge.observe(lt.current)),Ge}function de(){Q.ZP.warning({content:decodeURIComponent(L),key:"monaco-editor-tip"})}const xe=()=>{let Ge=Fe.current.instance;if(Oe!=null&&Ge&&k){const ft=Ge.getModel();ft&&Oe!==ft.getValue()&&(rt=!0,ft.setValue(Oe),Ge.layout(),rt=!1)}};(0,h.useEffect)(()=>{const Ge=oe.Z.subscribe("formatDocument",ft=>{var kt;let Mt=Fe.current.instance;(kt=Mt==null?void 0:Mt.getAction)==null||kt.call(Mt,"editor.action.formatDocument").run()});return window.updateMonacoValue=ft=>{ye(ft)},Ge},[]),(0,h.useEffect)(()=>{var Ge;let ft=Fe.current.instance;Ht.current&&clearTimeout(Ht.current),Ht.current=setTimeout(()=>{xe()},500),Oe&&(Oe!=null&&Oe.length)&&((Ge=ft==null?void 0:ft.updateOptions)==null||Ge.call(ft,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Oe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Oe,k,Fe.current]),(0,h.useEffect)(()=>{if(ce&&Fe.current&&Fe.current.instance){let ft=Fe.current.instance;ft.changeViewZones(function(kt){var Mt=document.createElement("div");Mt.style.padding="10px 20px",Mt.style.width="calc(100% - 20px)",Mt.className="my-error-line-wrp",Mt.innerHTML=Z,kt.addZone({afterLineNumber:ce||11,heightInLines:3,domNode:Mt})});var Ge={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}};ft.addOverlayWidget(Ge),ft.revealPositionInCenter({lineNumber:20,column:1})}},[ce,Fe.current,k]);const Be=(Ge="",ft)=>{if(!Ge||Ge.trim()==="")return!0;const Mt=Fe.current.instance.getModel().getLineTokens(ft);let fn=!1;for(let Pe=0;Pe<2;Pe++)Mt.getStandardTokenType(Pe)===1&&(fn=!0);return fn};(0,h.useEffect)(()=>{var Ge;const ft=(Ge=Fe.current)==null?void 0:Ge.instance;if(ft&&k&&fe){const kt=ft.onDidBlurEditorWidget(()=>{Ee.current=!1}),Mt=ft.onDidFocusEditorText(()=>{Ee.current=!0});return()=>{kt.dispose(),Mt.dispose()}}},[Fe.current,k,fe]),(0,h.useEffect)(()=>{var Ge;if((Ge=Fe.current)!=null&&Ge.instance&&k&&Ie){let ft=Fe.current.instance,kt=ft.getModel();if(!kt)return;(()=>{var Ft;let un=[],dn=[];const qt=kt.getAllDecorations();for(let Ze of qt)Ze.options.className==="highlighted-line"&&(un.push((Ft=Ze==null?void 0:Ze.range)==null?void 0:Ft.startLineNumber),dn.push(Ze==null?void 0:Ze.id));if(N===un[0])return;kt.deltaDecorations(dn,[]);const Pt=kt.getLineCount();N&&N<=Pt&&(ft.deltaDecorations([],[{range:new Vt.Range(N,1,N,kt.getLineMaxColumn(N)),options:{isWholeLine:!0,className:"highlighted-line"}}]),ft.revealLineInCenter(N))})();const fn=(Ft=!1)=>{var un;let dn=[],qt=[];const Pt=kt.getAllDecorations();for(let Ze of Pt)Ze.options.linesDecorationsClassName==="breakpoints-select"&&(dn.push((un=Ze==null?void 0:Ze.range)==null?void 0:un.startLineNumber),qt.push(Ze==null?void 0:Ze.id));if(Ft)return{lines:dn,ids:qt};$e(dn)},Pe=Ft=>O(void 0,null,function*(){let un={range:new Vt.Range(Ft,1,Ft,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield kt.deltaDecorations([],[un]),fn()}),Te=Ft=>O(void 0,null,function*(){let un=[];const dn=ft.getLineDecorations(Ft);for(let qt of dn)qt.options.linesDecorationsClassName==="breakpoints-select"&&un.push(qt.id);yield kt.deltaDecorations(un,[]),fn()}),pt=Ft=>{let un=ft.getLineDecorations(Ft);for(let dn of un)if(dn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,$.isEqual)(et,fn(!0).lines)){kt.deltaDecorations(fn(!0).ids,[]);const Ft=et.map(un=>({range:new Vt.Range(un,1,un,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));kt.deltaDecorations([],Ft)}const mt=ft.onDidChangeModelContent(Ft=>{let un=ft.getPosition();if(un){let dn=un.lineNumber;clearTimeout(ge.current),ge.current=setTimeout(()=>{Be(kt.getLineContent(dn),dn)?Te(dn):pt(dn)?(Te(dn),Pe(dn)):fn()},100)}}),Ot=ft.onMouseDown(Ft=>{var un,dn,qt;if(Ft.target.detail&&((qt=(dn=(un=Ft.target)==null?void 0:un.element)==null?void 0:dn.className)!=null&&qt.includes("line-numbers"))){let Pt=Ft.target.position.lineNumber;if(Be(kt.getLineContent(Pt),Pt))return;pt(Pt)?Te(Pt):Pe(Pt)}}),xt=Ft=>{let un={range:new Vt.Range(Ft,1,Ft,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};St.current=ft.deltaDecorations(St.current,[un])},Tt=()=>{St.current=ft.deltaDecorations(St.current,[])},Zt=ft.onMouseMove(Ft=>{var un,dn,qt;if(Tt(),Ft.target.detail&&((qt=(dn=(un=Ft.target)==null?void 0:un.element)==null?void 0:dn.className)!=null&&qt.includes("line-numbers"))){let Pt=Ft.target.position.lineNumber;if(Be(kt.getLineContent(Pt),Pt))return;xt(Pt)}}),tn=ft.onMouseLeave(()=>{Tt()});return()=>{mt.dispose(),Ot.dispose(),Zt.dispose(),tn.dispose()}}},[Fe.current,k,et,N,Ie,we]),(0,h.useEffect)(()=>{var Ge;(Ge=Fe.current)!=null&&Ge.instance&&Ie&&Fe.current.instance.setPosition({lineNumber:0,column:0})},[N]);function Ye(){let Ge=Fe.current.instance;if(Ge){const ft=Ge.getSelection(),kt=Fe.current.pastePos||{},Mt=new Vt.Range(kt.startLineNumber||ft.endLineNumber,kt.startColumn||ft.endColumn,kt.endLineNumber||ft.endLineNumber,kt.endColumn||ft.endColumn);setTimeout(()=>{Ge.executeEdits("",[{range:Mt,text:""}])},300)}}function dt(Ge){(window.navigator.platform.match("Mac")?Ge.metaKey:Ge.ctrlKey)&&Ge.keyCode==83&&(Ge.preventDefault(),be())}const nt=()=>{if(W&&Fe.current.instance){const Ge=Fe.current.instance.getContentHeight();Le(Ge<ht?ht:Ge)}else Le(ht)};function Ue(Ge){var ft=document.createEvent("MouseEvents");ft.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ge.dispatchEvent(ft)}const I=Ge=>{if(!Ee.current)return;const{keyCode:ft,ctrlKey:kt,metaKey:Mt,target:fn,type:Pe}=Ge;return(Pe==="paste"||(ft===67||ft===86)&&(Mt||kt))&&fn.nodeName==="TEXTAREA"&&(de(),Ge.preventDefault()),!1};function K(Ge,ft){var kt=window.URL||window.webkitURL||window,Mt=new Blob([ft]),fn=document.createElementNS("http://www.w3.org/1999/xhtml","a");fn.href=kt.createObjectURL(Mt),fn.download=Ge,Ue(fn)}(0,h.useEffect)(()=>{nt()},[nt]),(0,h.useEffect)(()=>{lt.current&&!k&&Promise.all([_.e(8909),_.e(4474)]).then(_.bind(_,71448)).then(Ge=>{try{Vt=Ge,Fe.current.instance=Vt.editor.create(lt.current,{value:Oe,language:Rt(we),theme:J,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ae||!1}},Xe);const ft=Fe.current.instance;let fn=[...w.BH._menuItems].find(mt=>mt[0]._debugName=="EditorContext")[1],Pe=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Te=(mt,Ot)=>{var xt,Tt;let Zt=mt._first;do Ot.includes((Tt=(xt=Zt.element)==null?void 0:xt.command)==null?void 0:Tt.id)&&mt._remove(Zt);while(Zt=Zt.next)};if(tt(ft,Vt),setTimeout(()=>{nt(),Fe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{K(ct||"educoder.txt",ft.getValue())}})},500),Fe.current.subscription=ft.onDidChangeModelContent(mt=>{Bt.current?clearTimeout(se.current):(nt(),ye(ft.getValue(),mt)),se.current=setTimeout(()=>{Bt.current=!1},500)}),window.Monaco||b(Vt,Rt(we)),fe&&(Te(fn,Pe),lt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",I),window.removeEventListener("paste",I),window.addEventListener("keydown",I),window.addEventListener("paste",I)),window.Monaco=Vt,M&&ft.onDidBlurEditorWidget(()=>{M(ft.getValue())}),We&&ft.onDidFocusEditorText(()=>{fe&&Qt(),We(ft.getValue())}),fe){Qt();try{ft.onDidPaste(mt=>{const Ot=ft.getSelection(),xt=Fe.current.pastePos||{},Tt=new Vt.Range(xt.startLineNumber||Ot.endLineNumber,xt.startColumn||Ot.endColumn,xt.endLineNumber||Ot.endLineNumber,xt.endColumn||Ot.endColumn);ft.executeEdits("",[{range:mt.range,text:""}])})}catch(mt){}}let pt=pe();return Ce&&typeof Ce=="string"&&new R(Ce,ft,Vt),Y(!0),()=>{const mt=Fe.current.instance;mt.dispose();const Ot=mt.getModel();Ot&&Ot.dispose(),Fe.current.subscription&&Fe.current.subscription.dispose(),pt.unobserve(lt.current)}}catch(ft){}})},[]),(0,h.useEffect)(()=>{if(Fe.current.instance&&k)return document.addEventListener("keydown",dt,!1),()=>{document.removeEventListener("keydown",dt)}},[be,k]),(0,h.useEffect)(()=>{let Ge=Fe.current.instance;if(Ge&&k){let ft=Rt(we);Vt.editor.setModelLanguage(Ge.getModel(),ft)}},[we,k]),(0,h.useEffect)(()=>{Fe.current.instance&&k&&Vt.editor.setTheme(J)},[J,k]),(0,h.useEffect)(()=>{let Ge=Fe.current.instance;_t.current=ze,Ge&&k&&(Ge.updateOptions(X({},ze)),setTimeout(()=>{Ge.getModel().updateOptions(X({},ze))},200))},[JSON.stringify(ze),k]),(0,h.useEffect)(()=>{let Ge=Fe.current.instance;Ge&&k&&Ge.layout()},[qe,ht,k]);const[S,je]=(0,h.useState)(me(qe)),[De,Le]=(0,h.useState)(me(ht)),He=y(X({},j),{width:S,height:De,position:"relative"});return h.createElement("div",{className:"my-monaco-editor",ref:lt,style:He,onFocus:()=>{fe&&Qt()}},Se&&h.createElement(ve.CopyToClipboard,{text:Oe,onCopy:()=>Q.ZP.success("\u590D\u5236\u6210\u529F")},h.createElement(re.Z,{title:"\u590D\u5236\u4EE3\u7801"},h.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},h.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function $t({width:It="100%",height:sn="100%",original:qe,modified:ht,language:Oe,options:we={}}){const j=(0,h.useRef)(),[ze,Xe]=(0,h.useState)(null);function J(W){let fe;return j.current&&(fe=new ue.Z(ye=>{for(let tt of ye)(tt.target.offsetHeight>0||tt.target.offsetWidth>0)&&W.layout()}),fe.observe(j.current)),fe}(0,h.useEffect)(()=>(j.current&&Promise.all([_.e(8909),_.e(9404)]).then(_.bind(_,2550)).then(W=>{Vt=W;const fe=Vt.editor.createDiffEditor(j.current,y(X({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},we),{wordWrap:!0}));Xe(fe);let ye=J(fe);return()=>{fe.dispose();const tt=fe.getModel();tt&&tt.dispose(),ye.unobserve(j.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,h.useEffect)(()=>{ze&&ze.setModel({original:Vt.editor.createModel(qe,Oe),modified:Vt.editor.createModel(ht,Oe)})},[qe,ht,Oe,ze]);const M=me(It),Se=me(sn),be={width:M,height:Se};return h.createElement("div",{className:"my-diff-editor",ref:j,style:be})}},87303:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return p}});var h={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7"},ue=_(29787),z=_(25399),ae=_(60242),B=_(92310),d=_.n(B),_e=_(31735),te=_(59243),o=_(11968),g=_(59301),p=({className:E,dataSource:b=[],col:L=4,right:V,bottom:q=23,precision:le=0,wrapWidth:F=1200,trackEventItems:H,loading:R,onRemove:w=()=>{},isCurrent:Q=!0,showProgress:re=!1,showAlias:$=!1})=>{const oe=Math.floor((F-(L-1)*V)/L),ve=[{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(ue.Z,{spinning:R},g.createElement("div",{className:d()(h.list,E)},!!(b!=null&&b.length)&&(b==null?void 0:b.map((he,ot)=>{var U,C,P,G,ie,X,y,v,O,me,Qe,rt,Ct;const{name:Rt,id:Vt,identifier:Qt,featured:Ve,school_name:$t,image_url:It,excellent:sn,is_plan:qe}=he;return g.createElement("div",{key:Vt,className:Q&&re?h.wrapisCurrent:h.wrap,style:{width:oe,marginRight:(1+ot)%L===0?0:V+le,marginBottom:q}},g.createElement("a",{className:h.li,onClick:ht=>{ht.preventDefault(),ht.stopPropagation(),H&&(0,_e.L9)([H]),(0,_e.xg)(`/paths/${Qt}`)}},g.createElement("div",{className:h.img},g.createElement("img",{className:h.cover,src:`${It}`}),Q&&(0,o.bg)()&&(he==null?void 0:he.studying)&&g.createElement("div",{className:`${h.movebq} user-path-items`,onClick:ht=>{ht.stopPropagation(),w(he)}},g.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),g.createElement("span",{className:"c-red"},"\u79FB\u9664")),(U=he==null?void 0:he.subject_tags)==null?void 0:U.map((ht,Oe)=>{var we,j;if(Oe===0){const Xe=(we=ve.find(J=>J.name==ht))==null?void 0:we.swimg;return g.createElement("img",{className:h.sign,src:Xe,style:{left:"-4px"}})}const ze=(j=ve.find(Xe=>Xe.name==ht))==null?void 0:j.ptimg;return g.createElement("img",{className:h.sign,src:ze,style:{left:`${48+52*(Oe-1)+2*Oe}px`}})}),g.createElement("div",{className:h.tagsDom},g.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(he==null?void 0:he.excellent)&&g.createElement("div",{className:h.bq},"\u5F00\u653E\u8BFE\u7A0B"),((C=he==null?void 0:he.custom_tags)==null?void 0:C.length)>0&&g.createElement(z.Z,{title:(ie=(G=he==null?void 0:he.custom_tags)==null?void 0:G[((P=he==null?void 0:he.custom_tags)==null?void 0:P.length)-1])==null?void 0:ie.tag_name},g.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},g.createElement("span",{className:"multi-llipsis1e text-10px"},(v=(y=he==null?void 0:he.custom_tags)==null?void 0:y[((X=he==null?void 0:he.custom_tags)==null?void 0:X.length)-1])==null?void 0:v.tag_name)))))),g.createElement("div",{className:h.name},g.createElement(z.Z,{title:$&&(he!=null&&he.excellent_alias_name)?g.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Rt}`,g.createElement("br",null),g.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${he==null?void 0:he.excellent_alias_name}`)):Rt},g.createElement("span",{className:h.e},$&&(he==null?void 0:he.excellent_alias_name)||Rt))),Q&&re&&((O=he==null?void 0:he.progress)==null?void 0:O.all_score)!=0&&g.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},g.createElement(ae.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((me=he==null?void 0:he.progress)==null?void 0:me.my_score)/((Qe=he==null?void 0:he.progress)==null?void 0:Qe.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(rt=he==null?void 0:he.progress)==null?void 0:rt.my_score,"/",(Ct=he==null?void 0:he.progress)==null?void 0:Ct.all_score),(!Q||!re)&&g.createElement(z.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${$t}`},g.createElement("div",{className:h.unit},g.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),$t)),(!Q||!re)&&g.createElement("div",{className:h.tags},g.createElement("div",null,g.createElement(z.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),g.createElement("span",null,he.stages_count))),g.createElement(z.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,he.members_count)))))))})),!b.length&&g.createElement(te.Z,null)))}},18606:function(Pn,Xt,_){"use strict";_.d(Xt,{jL:function(){return B},w9:function(){return me},QD:function(){return ce},cQ:function(){return ie.Z},op:function(){return ye},O5:function(){return xe},_b:function(){return st},t7:function(){return le},Gi:function(){return Qt},YG:function(){return Rt},qp:function(){return A},vr:function(){return Ie},qE:function(){return $e},Je:function(){return R},wb:function(){return G},cq:function(){return ht},tp:function(){return b}});var h=_(59301),ue={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"},z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66A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ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",B=({dataSource:Be=[],img:Ye,imgWidth:dt=346,title:nt,sunTitle:Ue,bannerExtraContent:I})=>h.createElement("div",{className:ue.banner},h.createElement("div",{className:ue.content},h.createElement("aside",null,h.createElement("p",null,h.createElement("b",null,nt),h.createElement("span",null,Ue)),Be.length>0&&h.createElement("div",{className:ue.btns},Be.map((K,S)=>h.createElement("div",{key:S,onClick:K.click},K.name,K.sign?h.createElement("img",{src:z,width:39}):null))),I),Ye&&h.createElement("img",{style:{marginTop:33,marginRight:38},src:Ye,width:dt}))),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"},_e=_(92310),te=_.n(_e),o=_(89392),A=({dataSource:Be=[],value:Ye,onChange:dt,onTitleChange:nt,className:Ue,title:I,titleWidth:K=41,style:S={},fontColor:je="#6A7283",showCount:De})=>{const[Le,He]=(0,h.useState)(1),[Ge,ft]=(0,h.useState)(!1),kt=(0,h.useRef)(null),Mt=(0,h.useRef)(null);return(0,h.useEffect)(()=>{var fn;Be.length!==0&&(((fn=kt==null?void 0:kt.current)==null?void 0:fn.clientHeight)>97?He(1):He(0)),Be.length===0&&He(0),ft(!1)},[Be]),h.createElement("div",{className:te()(d.row,Ue,"fadeIn","animated"),style:S},h.createElement("div",{onClick:(0,o.throttle)(()=>nt==null?void 0:nt(),2e3),style:{width:K,marginTop:Ge?12:4},className:`${d.title} ${nt?"current":""}`},I),h.createElement("div",{className:Ge?`${d.tagsWrap} ${d.tagsBorderWrap}`:d.tagsWrap},h.createElement("div",{className:d.bar,ref:Mt,style:Le>0?{height:Le===1?97:"auto",overflow:Le===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},h.createElement("div",{className:d.tag,ref:kt},Be==null?void 0:Be.map(fn=>h.createElement("span",{onClick:()=>dt(fn.id),key:fn.id,style:{color:je},className:Ye===fn.id?d.active:""},h.createElement("span",{title:fn.name,className:d.name},fn.name),!!De&&h.createElement("span",{className:d.num},fn.count))))),!!Le&&h.createElement(h.Fragment,null,Le===1?h.createElement("div",{onClick:()=>{var fn;He(2),((fn=kt==null?void 0:kt.current)==null?void 0:fn.clientHeight)>245?ft(!0):ft(!1)},className:d.action},"\u5C55\u5F00",h.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):h.createElement("div",{onClick:()=>{Mt.current.scrollTop=0,He(1),ft(!1)},className:d.action},"\u6536\u8D77",h.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},p={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"},b=({dataSource:Be=[],value:Ye,onChange:dt,className:nt,style:Ue={}})=>h.createElement("div",{style:Ue,className:te()(p.tabs,nt)},Be.map(I=>h.createElement("span",{onClick:()=>dt(I.id),className:Ye===I.id?p.active:"",key:I.id},I.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"},V=_(37568),le=({dataSource:Be=[],value:Ye="",onChange:dt,onInputChange:nt=()=>{},className:Ue,style:I={},placeholder:K,allowClear:S=!1})=>{var je;const[De,Le]=(0,h.useState)(""),[He,Ge]=(0,h.useState)("");(0,h.useEffect)(()=>{var Mt;let fn=Ye;(Mt=JSON.stringify(Ye))!=null&&Mt.includes("{")&&(Le(Ye.id),fn=Ye.value||"");try{Ge(decodeURIComponent(fn||""))}catch(Pe){Ge(decodeURIComponent(fn||""))}},[Ye]);const ft=()=>{dt(encodeURIComponent(He),De||null)},kt=Mt=>{Mt!==De&&(Le(Mt),dt(encodeURIComponent(He),Mt))};return h.createElement("div",{className:te()(L.input,Ue),style:I},!!Be.length&&h.createElement("div",{className:L.dropdown},h.createElement("div",{className:L.text},(je=Be.find(Mt=>Mt.id===De))==null?void 0:je.name,h.createElement("i",{className:"iconfont icon-zhankai4"}),h.createElement("b",{className:L.b1}),h.createElement("b",{className:L.b2})),h.createElement("div",{className:L.menu},Be.map((Mt,fn)=>h.createElement("div",{key:fn,onClick:()=>kt(Mt.id)},Mt.name)))),h.createElement(V.default,{onPressEnter:ft,value:He,onChange:Mt=>{Ge(Mt.target.value),nt(encodeURIComponent(Mt.target.value),De||null)},placeholder:K,variant:"borderless",allowClear:S,onClear:()=>dt("",De||null)}),h.createElement("i",{onClick:ft,className:"iconfont icon-sousuo9 font14 current"}))},F={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:Be,onChange:Ye,className:dt,total:nt,pageSize:Ue,style:I={}})=>{const K=Be<2,S=Be>=Math.ceil(nt/Ue);return nt<=Ue?h.createElement(h.Fragment,null):h.createElement("div",{className:te()(F.quickPager,dt),style:I},h.createElement("div",{onClick:()=>{K||Ye(Be-1,"prev")},className:K?F.disabled:""},"\u4E0A\u4E00\u9875"),h.createElement("div",{onClick:()=>{S||Ye(Be+1,"next")},className:S?F.disabled:""},"\u4E0B\u4E00\u9875"))},w={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"},Q=_(29787),re=_(25399),$=_(58018),oe=_(26869),ve=_(31735),he=_(96908),ot=_(57177),U=_(81378),C=_(59243),G=({className:Be,dataSource:Ye=[],col:dt=4,right:nt,bottom:Ue=23,precision:I=0,wrapWidth:K=1200,trackEventItems:S,loading:je})=>{const De=Math.floor((K-(dt-1)*nt)/dt);return h.createElement(Q.Z,{spinning:je},h.createElement("div",{className:te()(w.list,Be)},!!Ye.length&&Ye.map((Le,He)=>{const{name:Ge,id:ft,identifier:kt,power:Mt,cover_image_id:fn,pic:Pe}=Le;return h.createElement("div",{className:w.wrap,key:ft,style:{width:De,marginRight:(1+He)%dt===0?0:nt+I,marginBottom:Ue}},h.createElement("a",{target:"_blank",href:`/shixuns/${kt}/challenges`,className:w.li,onClick:Te=>{Te.preventDefault(),S&&(0,ve.L9)([S]),Mt&&(0,ve.xg)(`/shixuns/${kt}/challenges`)}},h.createElement("div",{className:w.img},h.createElement("img",{className:w.cover,src:`${Pe}`}),Le.is_jupyter&&h.createElement("img",{className:w.sign,src:he}),Le.is_jupyter_lab&&h.createElement("img",{className:w.sign,src:ot}),Le.is_unity_3d&&h.createElement("img",{className:w.sign,src:U})),h.createElement("div",{className:w.name},h.createElement(re.Z,{title:Ge||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},h.createElement("span",{className:w.e},Ge||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),h.createElement("div",{className:w.tags},h.createElement(re.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},h.createElement("span",null,h.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),h.createElement("span",null,Le.challenges_count))),!!Le.myshixuns_count&&h.createElement(re.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},h.createElement("span",null,h.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),h.createElement("span",null,Le.myshixuns_count))),h.createElement(re.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},h.createElement("span",null,h.createElement("span",null,Le.level))),h.createElement("div",{className:w.rate},h.createElement($.Z,{allowHalf:!0,disabled:!0,defaultValue:Le.score_info}),h.createElement("span",null,"\xA0",Le.score_info?`${Le.score_info}\u5206`:"5\u5206")))),!Mt&&h.createElement("div",{className:w.lockWrap},h.createElement("img",{src:`${oe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),h.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ye.length&&h.createElement(C.Z,null)))},ie=_(87303),X={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"},y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4Hf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alg68YPlK4++2oSudhdo5e+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",v=_(59301),me=({className:Be,dataSource:Ye=[],col:dt=4,right:nt,bottom:Ue=23,precision:I=0,wrapWidth:K=1200,trackEventItems:S,loading:je,handleVery:De=()=>!0})=>{const Le=Math.floor((K-(dt-1)*nt)/dt);return v.createElement(Q.Z,{spinning:je},v.createElement("div",{className:te()(X.list,Be)},!!Ye.length&&Ye.map((He,Ge)=>{const{subject_identifier:ft,id:kt,identifier:Mt,power:fn}=He,Pe=He.is_public!=0&&He.is_public;return v.createElement("div",{className:X.wrap,key:kt,style:{width:Le,marginRight:(1+Ge)%dt===0?0:nt+I,marginBottom:Ue}},v.createElement("a",{className:X.li,onClick:Te=>{Te.preventDefault(),De(He==null?void 0:He.first_category_url)&&(S&&(0,ve.L9)([S]),(0,ve.xg)(He.first_category_url))}},v.createElement("div",{className:X.top},v.createElement(re.Z,{title:He.name},v.createElement("div",{className:X.name},He.name)),v.createElement("img",{className:X.img,src:oe.Z.IMG_SERVER+"/images/"+He.avatar_url}),v.createElement("div",{className:X.text,title:He.creator},He.creator),ft&&v.createElement("div",{className:X.btns},v.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),v.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Pe&&v.createElement("div",{className:X.sign},"\u516C\u5F00")),v.createElement("div",{className:X.bottom},He.visits>0&&v.createElement(re.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},v.createElement("span",null,v.createElement("i",{className:"iconfont icon-liulanyan"}),v.createElement("span",null,He.visits))),He.course_members_count>0&&v.createElement(re.Z,{title:"\u6210\u5458",placement:"bottom"},v.createElement("span",null,v.createElement("i",{className:"iconfont icon-chengyuan"}),He.course_members_count)),He.tasks_count>0&&v.createElement(re.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},v.createElement("span",null,v.createElement("i",{className:"iconfont icon-zuoye"}),He.tasks_count)),He.is_end?v.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):v.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!He.is_accessible&&v.createElement("div",{className:X.lockWrap},v.createElement("img",{src:`${oe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),v.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ye.length&&v.createElement(C.Z,null)))},Qe={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"},rt=_(58106),Rt=({dataSource:Be=[],value:Ye,onChange:dt,className:nt,style:Ue={},tabBarExtraContent:I})=>h.createElement("div",{className:te()(Qe.tabs,nt),style:Ue},h.createElement("div",{className:Qe.tabsWrap},Be.map((K,S)=>!(K!=null&&K.hide)&&h.createElement("aside",{className:Qe.tab,onClick:()=>{dt(K.id),K.link&&rt.history.push(K.link)},key:S},h.createElement("div",{className:Ye===K.id?Qe.active:""},K.name),(K==null?void 0:K.resetCount)==null&&(K==null?void 0:K.total)!==void 0&&h.createElement("span",null,"\uFF08",K==null?void 0:K.total,"\uFF09"),(K==null?void 0:K.resetCount)!==void 0&&(K==null?void 0:K.total)!==void 0&&h.createElement(re.Z,{title:(K==null?void 0:K.tip)!=null?K==null?void 0:K.tip:""},h.createElement("span",{style:{color:"#9096A3"}},"\uFF08",h.createElement("span",{style:{color:"#000"}},K==null?void 0:K.resetCount),"/",h.createElement("span",null,K==null?void 0:K.total),"\uFF09"))))),h.createElement("div",{className:Qe.tabBar},I)),Qt=({className:Be,style:Ye={},children:dt})=>h.createElement("div",{className:te()(Be),style:Ye},dt),Ve={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},$t=_(75727),It=_(93041);const sn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ht=({sortValue:Be,dropValue:Ye,className:dt,onSort:nt,onDrop:Ue,dataSource:I=sn})=>{var K;return h.createElement("div",{className:te()(Ve.orderWrap,dt)},h.createElement($t.Z,{dropdownRender:()=>h.createElement(It.default,null,I.map((S,je)=>h.createElement(It.default.Item,{key:je,onClick:()=>Ue(S.id)},S.name)))},h.createElement("span",{className:Ve.orderTextWrap},(K=I.find(S=>Ye===S.id))==null?void 0:K.name)),h.createElement("span",{className:Ve.orderIconWrap},h.createElement("span",{className:Ve.orderAsc},h.createElement("i",{className:Be==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ve.cursorPointer} ${Ve.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ve.cursorPointer}`,onClick:()=>nt(Be==="asc"?"desc":"asc")})),h.createElement("span",{className:Ve.orderDesc},h.createElement("i",{className:Be==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ve.cursorPointer} ${Ve.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ve.cursorPointer}`,onClick:()=>nt(Be==="asc"?"desc":"asc")}))))},Oe={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"},we=_(7939),j=Object.defineProperty,ze=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,M=(Be,Ye,dt)=>Ye in Be?j(Be,Ye,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Be[Ye]=dt,Se=(Be,Ye)=>{for(var dt in Ye||(Ye={}))Xe.call(Ye,dt)&&M(Be,dt,Ye[dt]);if(ze)for(var dt of ze(Ye))J.call(Ye,dt)&&M(Be,dt,Ye[dt]);return Be},be=(Be,Ye)=>{var dt={};for(var nt in Be)Xe.call(Be,nt)&&Ye.indexOf(nt)<0&&(dt[nt]=Be[nt]);if(Be!=null&&ze)for(var nt of ze(Be))Ye.indexOf(nt)<0&&J.call(Be,nt)&&(dt[nt]=Be[nt]);return dt},W=(Be,Ye,dt)=>new Promise((nt,Ue)=>{var I=je=>{try{S(dt.next(je))}catch(De){Ue(De)}},K=je=>{try{S(dt.throw(je))}catch(De){Ue(De)}},S=je=>je.done?nt(je.value):Promise.resolve(je.value).then(I,K);S((dt=dt.apply(Be,Ye)).next())}),ye=Be=>{var Ye=Be,{className:dt,style:nt,children:Ue,loading:I=!1,openLoading:K,onClick:S=()=>{},size:je="middle",shape:De="round"}=Ye,Le=be(Ye,["className","style","children","loading","openLoading","onClick","size","shape"]);const[He,Ge]=(0,h.useState)(!1);return h.createElement(we.ZP,Se({onClick:(0,o.throttle)(ft=>W(void 0,null,function*(){K&&Ge(!0);try{yield S(ft)}catch(kt){console.log("error",kt)}K&&Ge(!1)}),2e3,{leading:!0,trailing:!1}),className:te()(Oe.btn,Oe[`${je}-${De}`],dt),style:nt,size:je,shape:De,loading:He||I},Le),Ue)},tt={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"},$e=({className:Be,style:Ye,children:dt=null,onClick:nt,title:Ue})=>h.createElement("div",{className:te()(tt.head,Be),style:Ye},h.createElement("span",{className:"primary-hover",onClick:nt},h.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),h.createElement("b",{title:Ue},Ue),h.createElement("div",{className:tt.node},dt)),et={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"},ce=({confirmShow:Be=!0,confirmTitle:Ye,confirmClick:dt,cancelShow:nt=!0,cancelTitle:Ue,cancelClick:I,className:K,style:S,confirmLoading:je=!1})=>h.createElement("div",{className:te()(et.btns,K),style:S},Be&&h.createElement(we.ZP,{loading:je,onClick:dt,type:"primary",className:et.confirm},Ye),nt&&h.createElement(we.ZP,{onClick:I,className:et.cancel},Ue)),Z={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"},Ie=({className:Be,style:Ye={},LeftContent:dt,children:nt,RightContent:Ue})=>h.createElement("div",{className:te()(Z.fixedBottom,Be),style:Ye},h.createElement("div",{className:Z.wrap},h.createElement("div",{className:Z.left},dt),h.createElement("div",{className:Z.center},nt),h.createElement("div",{className:Z.right},Ue))),Ce={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"},st=({className:Be,style:Ye={},dataSource:dt=[]})=>h.createElement("div",{className:te()(Ce.crumbs,Be),style:Ye},dt.map((nt,Ue)=>Ue<dt.length-1?h.createElement(h.Fragment,{key:Ue},nt.path||nt.onClick?h.createElement("span",{className:Ce.hover,onClick:nt!=null&&nt.onClick?nt.onClick:()=>rt.history.push(nt.path)},nt.name):h.createElement("span",null,nt.name),h.createElement("span",null,"\xA0",">","\xA0")):h.createElement("span",{key:Ue,style:{color:"#5F6368"}},nt.name))),lt=_(11938),Fe=Object.defineProperty,_t=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ge=(Be,Ye,dt)=>Ye in Be?Fe(Be,Ye,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Be[Ye]=dt,Ee=(Be,Ye)=>{for(var dt in Ye||(Ye={}))Bt.call(Ye,dt)&&ge(Be,dt,Ye[dt]);if(St)for(var dt of St(Ye))se.call(Ye,dt)&&ge(Be,dt,Ye[dt]);return Be},k=(Be,Ye)=>_t(Be,Ht(Ye)),Y=(Be,Ye)=>{var dt={};for(var nt in Be)Bt.call(Be,nt)&&Ye.indexOf(nt)<0&&(dt[nt]=Be[nt]);if(Be!=null&&St)for(var nt of St(Be))Ye.indexOf(nt)<0&&se.call(Be,nt)&&(dt[nt]=Be[nt]);return dt};const{Countdown:pe}=lt.default;var xe=Be=>{var Ye=Be,{onChange:dt}=Ye,nt=Y(Ye,["onChange"]);const[Ue,I]=(0,h.useState)(null);(0,h.useEffect)(()=>{typeof Ue=="number"&&Ue>=0&&dt(Ue)},[Ue]);const K=S=>{const je=Math.floor(S/1e3);I(je)};return h.createElement(pe,k(Ee({},nt),{onChange:K}))}},14610:function(Pn,Xt,_){"use strict";_.r(Xt),_.d(Xt,{default:function(){return Bt}});var h=_(59301),ue=_(58106),z=_(59944),ae=_(56656),B=_.n(ae),d=_(75727),_e=_(7939),te=_(6767),o=_(62957),g=_(93041),A=_(62673),p=_(77019),E=_(5269),b=_(82326),L=_(37568),V=_(20554),q=_(54172),le=_(84022),F=_(25399),H=_(26869),R=_(97013),w={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"},Q=_(11968),re=Object.defineProperty,$=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,he=(se,ge,Ee)=>ge in se?re(se,ge,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[ge]=Ee,ot=(se,ge)=>{for(var Ee in ge||(ge={}))oe.call(ge,Ee)&&he(se,Ee,ge[Ee]);if($)for(var Ee of $(ge))ve.call(ge,Ee)&&he(se,Ee,ge[Ee]);return se};const U=se=>React.createElement("svg",ot({width:14,height:10,xmlns:"http://www.w3.org/2000/svg"},se),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 C="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNNy44MzYgOS45MTNIMi4yOTdjLS41OTMuMDcyLTEuMTg1LS4xNDUtMS42MjQtLjU5NmEyLjQ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GM7MwnouyN8mSxkFGXKgjGUMTD//Cu8pSMrWtPxJWVdYOfauOkM32jgNyrkMwaIgjwEakZTe/FZHneeuvVktiRLLdV7jA/o3ddzcxK+urU+RvPQj3ytUg2oqnWajDKBaEV737953To6UtIRkeLCATzD4y6eI4Cgve+lCwgwdBbqdqGhLeLz2UYntnLll00OXNA2unrWHdYLWeogezdjK5Fa6J3Vhu6stxJJfHc3OpSbuV6A7mFmKLfTqzYa1gPNqbIwVEfKLkBa09Z6KA/164p5dcgwVGOV9VlIj4dusHUqiNSZhma02J0uDPVwt3dEMrTj9V6IXlt1nx+aPzjWg5wK5lTv6X2u38iw3+e7r/edjQ76RZv1vosAmxX5ixba7Mj/bTLwJ/OqjXyXcOSkAAAAAElFTkSuQmCC",Rt=_(24826),Vt=_(28284),Qt=_(17149),Ve=_(69219),$t=_(13747),It={flex_box_center:"flex_box_center___bce7B",flex_space_between:"flex_space_between____RQOw",flex_box_vertical_center:"flex_box_vertical_center___AjElL",flex_box_center_end:"flex_box_center_end___ygYIN",flex_box_column:"flex_box_column___lF_tQ",scoremodal:"scoremodal___rmaM8",selectWrapper:"selectWrapper___mvLB7",selectWrappers:"selectWrappers___eCA2w",allqingchu:"allqingchu___qrQxW",title:"title___uaw5Z",score:"score___uJAQp",close:"close___uQVq5",content:"content___JN0bk",items:"items___foPGY",bottom:"bottom___h0Pda",yes:"yes___Et867",no:"no___lWWYt",titlecount:"titlecount___MgcDd",add:"add___NJkmt",search:"search___lc68N",searchIcon:"searchIcon___BUJdX",tabWrap:"tabWrap___KEQVE",previewModal:"previewModal___i8Vh9",q_title:"q_title___k3hA1"},sn=_(27503),qe={flex_box_center:"flex_box_center___IzcTw",flex_space_between:"flex_space_between___TfxiX",flex_box_vertical_center:"flex_box_vertical_center___nDt60",flex_box_center_end:"flex_box_center_end___vHxrY",flex_box_column:"flex_box_column___N9hFV",warp:"warp___CY8df",shixunbutton:"shixunbutton___tmPbr",redio:"redio___mNtYw",redioitem:"redioitem___N2pTb",redioitemyes:"redioitemyes___ooLYK",title:"title___r3t31",titleyes:"titleyes___JiOuB",yestag:"yestag___Yj1nT",qcount:"qcount___b_Lg3",score:"score___Iq_OQ",qtitle:"qtitle___E0xrA",checkbox:"checkbox___p5WZq",checkboxitem:"checkboxitem___Kja1N",checkboxitemyes:"checkboxitemyes___zCxhF",bottom:"bottom___Dg53A",bottomitem:"bottomitem___mx8gr",left:"left___GO9h4",right:"right___IIyn8",completion:"completion___puFVe",content:"content___QCTZ8",items:"items___DN6om",simple:"simple___CjHXs",shixun:"shixun___I_Hrz",combination:"combination___xkm7F",program:"program___FiUNV"},ht=_(24334);const Oe=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var j=({qitem:se})=>{var ge,Ee,k,Y,pe,de,xe,Be,Ye,dt;return h.createElement("div",{className:qe.warp},h.createElement("div",{className:qe.mainPart},h.createElement("div",{className:qe.qcount},(se==null?void 0:se.question_type)===8&&h.createElement(z.Z,{className:qe.content,showProgramFill:!0,value:(ge=se==null?void 0:se.program_attr)==null?void 0:ge.description}),(se==null?void 0:se.question_type)!=8&&h.createElement(z.Z,{className:qe.qtitle,value:(se==null?void 0:se.name)||(se==null?void 0:se.title)})),((se==null?void 0:se.question_type)===0||(se==null?void 0:se.question_type)===2)&&h.createElement("div",null,(Ee=se==null?void 0:se.choices)==null?void 0:Ee.map((nt,Ue)=>h.createElement("div",{className:qe.redio},!(nt!=null&&nt.is_answer)&&h.createElement("span",{className:qe.redioitem}),(nt==null?void 0:nt.is_answer)&&h.createElement("i",{className:`${qe.redioitemyes} icon-duigou1`}),h.createElement(z.Z,{className:nt!=null&&nt.is_answer?qe.titleyes:qe.title,value:Oe[Ue]+(nt==null?void 0:nt.choice_text)}),(nt==null?void 0:nt.is_answer)&&h.createElement("div",{className:qe.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===1&&h.createElement("div",null,(k=se==null?void 0:se.choices)==null?void 0:k.map((nt,Ue)=>h.createElement("div",{className:qe.checkbox},!(nt!=null&&nt.is_answer)&&h.createElement("span",{className:qe.checkboxitem}),(nt==null?void 0:nt.is_answer)&&h.createElement("i",{className:`${qe.checkboxitemyes} icon-duigou1`}),h.createElement(z.Z,{className:nt!=null&&nt.is_answer?qe.titleyes:qe.title,value:Oe[Ue]+(nt==null?void 0:nt.choice_text)}),(nt==null?void 0:nt.is_answer)&&h.createElement("div",{className:qe.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===3&&h.createElement("div",{className:qe.completion},(Y=se==null?void 0:se.standard_answer)==null?void 0:Y.map((nt,Ue)=>{var I;return h.createElement("div",{style:{display:"flex"}},h.createElement("span",{className:qe.title},"\u586B\u7A7A\u9879",Ue+1),h.createElement("div",{className:qe.content},(I=nt==null?void 0:nt.answer_text)==null?void 0:I.map((K,S)=>h.createElement("div",{className:qe.items},K))))})),(se==null?void 0:se.question_type)===4&&h.createElement("div",{className:qe.simple},h.createElement("div",{className:qe.title},"\u53C2\u8003\u7B54\u6848"),h.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(pe=se==null?void 0:se.answer_texts)!=null&&pe[0]?h.createElement(z.Z,{className:qe.content,value:(de=se==null?void 0:se.answer_texts)==null?void 0:de[0]}):h.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(se==null?void 0:se.question_type)===5&&((xe=se==null?void 0:se.challenge_names)==null?void 0:xe.map((nt,Ue)=>h.createElement("div",{className:qe.shixun},h.createElement("span",{className:qe.qtitle},h.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,rt.EM)(Ue+1),"\u9898"),nt)))),(se==null?void 0:se.question_type)===6&&h.createElement("div",{className:qe.program},h.createElement(z.Z,{className:qe.content,value:((Be=se==null?void 0:se.program_attr)==null?void 0:Be.description)||"- -"})),(se==null?void 0:se.question_type)===7&&((Ye=se==null?void 0:se.sub_item_banks)==null?void 0:Ye.map((nt,Ue)=>{var I,K,S,je,De;return h.createElement("div",null,h.createElement("div",{className:qe.combination},h.createElement("span",{className:qe.qtitle},nt==null?void 0:nt.name)),h.createElement("div",{className:qe.warp,style:{padding:"0px",paddingTop:20}},h.createElement("div",null,((nt==null?void 0:nt.item_type)=="SINGLE"||(nt==null?void 0:nt.item_type)=="JUDGMENT")&&((I=nt==null?void 0:nt.choices)==null?void 0:I.map((Le,He)=>h.createElement("div",{className:qe.redio},!(Le!=null&&Le.is_answer)&&h.createElement("span",{className:qe.redioitem}),(Le==null?void 0:Le.is_answer)&&h.createElement("i",{className:`${qe.redioitemyes} icon-duigou1`}),h.createElement(z.Z,{className:Le!=null&&Le.is_answer?qe.titleyes:qe.title,value:Oe[He]+(Le==null?void 0:Le.choice_text)}),(Le==null?void 0:Le.is_answer)&&h.createElement("div",{className:qe.yestag},"\u6B63\u786E\u7B54\u6848")))),(nt==null?void 0:nt.item_type)=="MULTIPLE"&&((K=nt==null?void 0:nt.choices)==null?void 0:K.map((Le,He)=>h.createElement("div",{className:qe.checkbox},!(Le!=null&&Le.is_answer)&&h.createElement("span",{className:qe.checkboxitem}),(Le==null?void 0:Le.is_answer)&&h.createElement("i",{className:`${qe.checkboxitemyes} icon-duigou1`}),h.createElement(z.Z,{className:Le!=null&&Le.is_answer?qe.titleyes:qe.title,value:Oe[He]+(Le==null?void 0:Le.choice_text)}),(Le==null?void 0:Le.is_answer)&&h.createElement("div",{className:qe.yestag},"\u6B63\u786E\u7B54\u6848")))),(nt==null?void 0:nt.item_type)=="COMPLETION"&&h.createElement("div",{className:qe.completion},(S=nt==null?void 0:nt.standard_answer)==null?void 0:S.map((Le,He)=>{var Ge;return h.createElement("div",{style:{display:"flex"}},h.createElement("span",{className:qe.title},"\u586B\u7A7A\u9879",He+1),h.createElement("div",{className:qe.content},(Ge=Le==null?void 0:Le.answer_text)==null?void 0:Ge.map((ft,kt)=>h.createElement("div",{className:qe.items},ft))))})),(nt==null?void 0:nt.item_type)=="SUBJECTIVE"&&h.createElement("div",{className:qe.simple},h.createElement("div",{className:qe.title},"\u53C2\u8003\u7B54\u6848"),h.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(je=nt==null?void 0:nt.answer_texts)!=null&&je[0]?h.createElement(z.Z,{className:qe.content,value:(De=nt==null?void 0:nt.answer_texts)==null?void 0:De[0]}):h.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(se==null?void 0:se.question_type)===8&&h.createElement("div",null,h.createElement(z.Z,{disabledFill:!0,className:qe.content,showProgramFill:!0,value:ht.Base64.decode(((dt=se==null?void 0:se.program_attr)==null?void 0:dt.code)||"")})),(se==null?void 0:se.question_type)===5&&h.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},h.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},h.createElement("div",{style:{marginRight:30}},h.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),h.createElement("span",{style:{color:"#000000"}},(se==null?void 0:se.author_name)||"- -")),h.createElement("div",{style:{marginRight:30}},h.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),h.createElement("span",{style:{color:"#000000"}},(se==null?void 0:se.author_school_name)||"- -")),h.createElement("div",{style:{marginRight:30}},h.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),h.createElement("span",{style:{color:"#000000"}},(se==null?void 0:se.study_count)||"0"))),h.createElement("a",{className:qe.shixunbutton,href:`/shixuns/${se==null?void 0:se.identifier}/challenges?exercise=true`,target:"_blank"},h.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((se==null?void 0:se.question_type)<=4||[6,8].includes(se==null?void 0:se.question_type))&&h.createElement("div",{className:qe.bottom},h.createElement("div",{className:qe.bottomitem},h.createElement("span",{className:qe.left},"\u89E3\u6790"),h.createElement("span",{className:qe.right},se!=null&&se.analysis?h.createElement(z.Z,{value:se==null?void 0:se.analysis}):h.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),h.createElement("div",{className:qe.bottomitem},h.createElement("span",{className:qe.left},"\u96BE\u5EA6"),h.createElement("span",{className:qe.right},(se==null?void 0:se.difficulty)===1?"\u7B80\u5355":(se==null?void 0:se.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),h.createElement("div",{className:qe.bottomitem},h.createElement("span",{className:qe.left},"\u77E5\u8BC6\u70B9"),h.createElement("span",{className:qe.right},se!=null&&se.tag_discipline?se==null?void 0:se.tag_discipline:h.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},ze=_(94910),Xe=_(99481),J=_(61485),M=_(51155),Se=_(89372),be=_(59301),W=Object.defineProperty,fe=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,et=(se,ge,Ee)=>ge in se?W(se,ge,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[ge]=Ee,ct=(se,ge)=>{for(var Ee in ge||(ge={}))We.call(ge,Ee)&&et(se,Ee,ge[Ee]);if(tt)for(var Ee of tt(ge))$e.call(ge,Ee)&&et(se,Ee,ge[Ee]);return se},ce=(se,ge)=>fe(se,ye(ge)),Z=(se,ge,Ee)=>new Promise((k,Y)=>{var pe=Be=>{try{xe(Ee.next(Be))}catch(Ye){Y(Ye)}},de=Be=>{try{xe(Ee.throw(Be))}catch(Ye){Y(Ye)}},xe=Be=>Be.done?k(Be.value):Promise.resolve(Be.value).then(pe,de);xe((Ee=Ee.apply(se,ge)).next())});const N=({setScoreShow:se,ScoreShow:ge,onOk:Ee,isshixuns:k,isloadings:Y,dispatch:pe,isIntelligentAssistant:de=!1,ispptModal:xe=!1,isChangeQuestion:Be=!1,newExercisePaper:Ye,shixunsDetail:dt})=>{var nt,Ue,I;let[K,S]=(0,h.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:"PROGRAM",per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:de,is_smart_plan:xe,group_id:[]}),[je,De]=(0,h.useState)([]),[Le,He]=(0,h.useState)([]),[Ge,ft]=(0,h.useState)([]),[kt,Mt]=(0,h.useState)([]);const[fn,Pe]=(0,h.useState)(!1),[Te]=Vt.default.useForm(),[pt,mt]=(0,h.useState)(),[Ot,xt]=(0,h.useState)(!1);let[Tt,Zt]=(0,h.useState)(k);const[tn,Ft]=(0,h.useState)([]),[un,dn]=(0,h.useState)(0),[qt,Pt]=(0,h.useState)(!0),[Ze,at]=(0,h.useState)([]),[Dt,Nt]=(0,h.useState)([]),nn=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],it=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6}];let[on,_n]=(0,h.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const An=(0,h.useRef)(new Set),Tn=(0,h.useRef)(new Set),Xn=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],bn=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Zn=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[Nn,Mn]=(0,h.useState)(!1),Dn=()=>{Te.resetFields(),Tt=!1,Zt(!1),Mn(!1),Te.submit()};(0,h.useEffect)(()=>{var Re,ke,ut,gt,bt,zt,Ut,wt,vt,Et;(((ut=(ke=(Re=Ye==null?void 0:Ye.editData)==null?void 0:Re.exercise)==null?void 0:ke.exist_item_bank_ids)==null?void 0:ut.length)>0||((zt=(bt=(gt=Ye==null?void 0:Ye.editData)==null?void 0:gt.exercise)==null?void 0:bt.exist_item_bank_shixun_ids)==null?void 0:zt.length)>0)&&Nt([...(wt=(Ut=Ye==null?void 0:Ye.editData)==null?void 0:Ut.exercise)==null?void 0:wt.exist_item_bank_ids,...(Et=(vt=Ye==null?void 0:Ye.editData)==null?void 0:vt.exercise)==null?void 0:Et.exist_item_bank_shixun_ids])},[(Ue=(nt=Ye==null?void 0:Ye.editData)==null?void 0:nt.exercise)==null?void 0:Ue.exist_item_bank_ids]),(0,h.useEffect)(()=>{ge&&(Te.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),qt&&Tt&&(Te.setFieldsValue({item_type:"SHIXUN"}),K.item_type="SHIXUN",S(ct({},K)),Pt(!1)),yn(K),Ln(),pn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[ge]),(0,h.useEffect)(()=>{un>0&&setTimeout(()=>{dn(0)},2e3)},[un]);function yn(Re){return Z(this,null,function*(){var ke,ut,gt;if(Pe(!0),S(ct({},Re)),(Ge==null?void 0:Ge.length)<=0&&Re.type==="5"){Mt([]),Pe(!1);return}console.log("----",Ge,tn);let bt=Re.type==="5"?Ge==null?void 0:Ge.filter(wt=>!tn.includes(wt)):null,zt=Re.type==="5"?Ge==null?void 0:Ge.filter(wt=>tn.includes(wt)):null,Ut=yield(0,R.ZP)("/api/item_banks.json",{method:"get",params:ce(ct({},Re),{discipline_id:((ke=Re==null?void 0:Re.courseid)==null?void 0:ke[0])||null,sub_discipline_id:((ut=Re==null?void 0:Re.courseid)==null?void 0:ut[1])||null,ids:bt,shixun_ids:zt,include_shixuns:!de,group_id:((gt=Re.group_id)==null?void 0:gt.map(wt=>wt==null?void 0:wt.value))||null,keyword:Re.keyword?encodeURIComponent(Re.keyword):Re.keyword,type:Re.type==="5"?null:Re.type,clazz:Re.type==="3"?"ItemBanksGroup":null})});Mt(Ut),Pe(!1)})}function Ln(){return Z(this,null,function*(){let Re=yield(0,R.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:K.type==="5"?null:K.type,clazz:"ItemBanksGroup"}});De((0,sn.L)(Re==null?void 0:Re.disciplines))})}function pn(Re){return Z(this,null,function*(){var ke;let ut=yield(0,R.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Re}),gt=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(ke=ut==null?void 0:ut.data)==null?void 0:ke.map(bt=>({title:bt.name,id:bt.id,pid:bt.id,value:bt.id,key:bt.id,isLeaf:!bt.have_child}))}];at(gt)})}function En(Re){return Z(this,null,function*(){var ke,ut,gt,bt;Pe(!0);let zt=(ke=Re.list)==null?void 0:ke.filter(vt=>!tn.includes(vt)),Ut=(ut=Re.list)==null?void 0:ut.filter(vt=>tn.includes(vt));if(zt.length===0&&Ut.length===0){Pe(!1),Mt([]);return}let wt=yield(0,R.ZP)("/api/item_banks.json",{method:"get",params:ce(ct({},Re),{discipline_id:((gt=Re==null?void 0:Re.courseid)==null?void 0:gt[0])||null,sub_discipline_id:((bt=Re==null?void 0:Re.courseid)==null?void 0:bt[1])||null,ids:zt,shixun_ids:Ut,type:Re.type==="5"?null:Re.type,clazz:Re.type==="3"?"ItemBanksGroup":null})});Pe(!1),Mt(wt)})}const Rn=Re=>Z(void 0,null,function*(){const ke=yield pe({type:"shixunsDetail/release",payload:{id:Re}});let ut=ke==null?void 0:ke.tag_position,gt=(ke==null?void 0:ke.evaluation_set_position)||[],bt=ke.status;return bt===0?(te.ZP.success("\u53D1\u5E03\u6210\u529F"),yn(K),!0):(bt===2?te.ZP.error(`\u7B2C${gt.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):bt===3?te.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${ut.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):te.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),Fn=Re=>(Re==null?void 0:Re.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Un=(Re,ke,ut)=>Re.map(gt=>gt.key===ke?ct(ct({},gt),ut):gt.children?ce(ct({},gt),{children:Un(gt.children,ke,ut)}):gt),jn=Re=>Z(void 0,null,function*(){const{key:ke}=Re;let ut=K.type;const gt=yield(0,Se.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(ke),type:ut}),{data:bt,total_count:zt}=gt||{};zt>0&&at(Ut=>Un(Ut,ke,{children:bt.map(wt=>({title:wt.name,id:wt.id,pid:wt.id,value:wt.id,key:wt.id,isLeaf:!wt.have_child}))}))});function mr(Re){Re==="0"&&(on.wcjd=ct({},K)),Re==="5"&&(on.yx=ct({},K)),_n(ct({},on))}function Me(){K.type==="1"&&(K=on.gg),K.type==="2"&&(K=on.scj),K.type==="3"&&(K=on.ttgx),K.type==="0"&&(K=on.wcjd),K.type==="5"&&(K=on.yx),Tt=!1,Zt(!1),Te.setFieldsValue(ct({},K)),S(ct({},K)),yn(ct({},K))}return be.createElement("div",null,be.createElement(o.default,{title:!1,footer:!1,open:ge,width:1200,centered:!0,className:It.scoremodal,onCancel:()=>{se(!1)}},be.createElement("div",{style:{display:"flex",alignItems:"center"}},be.createElement("div",{className:It.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),be.createElement(V.default,{className:It.tabWrap,activeKey:K.type,onChange:Re=>{K.show_all_share=null,Re==="0"&&pn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),mr(K.type),K.type=Re,Mn(!1),K.type==="5"&&(Tt=!1,Zt(!1)),Me(),Ln()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:be.createElement("div",null,"\u5DF2\u9009",Ge.length>0&&be.createElement("span",{className:It.titlecount},Ge.length),un>0&&be.createElement("span",{className:It.add},"+",un)),key:"5"}]}),be.createElement(Vt.default,{layout:"inline",form:Te,onValuesChange:(Re,ke)=>{const ut=Object.values(ke).some(bt=>bt!==null&&bt!==""&&bt!==void 0),gt=ke.keyword==="";Mn(ut||!gt),K.page=1,Re!=null&&Re.courseid&&Te.setFieldsValue({tag_discipline_id:""}),Zt(!1),!(Re.keyword||Re.keyword==="")&&Te.submit()},onFinish:Re=>{var ke;K.type==="3"&&(!Re.group_id||((ke=Re==null?void 0:Re.group_id)==null?void 0:ke.length)===0)?K.show_all_share=!0:K.show_all_share=null,S(ct(ct({},K),Re)),yn(ct(ct({},K),Re))}},be.createElement(Vt.default.Item,{name:"courseid"},be.createElement(Qt.Z,{className:It.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:je})),!Tt&&be.createElement(Vt.default.Item,{name:"tag_discipline_id"},be.createElement(b.default,{className:It.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(I=kt==null?void 0:kt.tag_disciplines)==null?void 0:I.map(Re=>be.createElement(b.default.Option,{key:Re.id},Re.name)))),be.createElement(Vt.default.Item,{name:Tt?"diff":"difficulty"},be.createElement(b.default,{className:It.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},Xn.map(Re=>be.createElement(b.default.Option,{key:Re.value},Re.name)))),Tt&&be.createElement(Vt.default.Item,{name:"shixun_publish_status"},be.createElement(b.default,{className:It.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Zn.map(Re=>be.createElement(b.default.Option,{key:Re.value},Re.name)))),(K.type==="3"||K.type==="0")&&!Tt&&be.createElement(Vt.default.Item,{name:"group_id"},be.createElement(Ve.default,{treeDataSimpleMode:!0,style:{width:118},className:It.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Re,ke)=>ke.title.toUpperCase().indexOf(Re.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:jn,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Ze})),Nn&&be.createElement("span",{className:It.allqingchu,onClick:Dn},be.createElement("i",{className:"iconfont icon-guanbi4"}),be.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),be.createElement(Vt.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},be.createElement(L.default.Search,{className:It.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:be.createElement("i",{className:`iconfont icon-sousuo9 font14 ${It.searchIcon}`,onClick:()=>Te.submit()}),onSearch:Re=>{Te.submit()}}))),be.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},be.createElement("div",{onClick:()=>{K.updated_at==="asc"?K.updated_at="desc":K.updated_at="asc",S(ce(ct({},K),{page:1})),yn(ce(ct({},K),{page:1}))}}," ",K.updated_at?be.createElement("img",{src:K.updated_at==="asc"?ze.Z:Xe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):be.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),be.createElement("div",{onClick:()=>{K.quotes==="asc"?K.quotes="desc":K.quotes="asc",S(ce(ct({},K),{page:1})),yn(ce(ct({},K),{page:1}))},style:{marginLeft:20}}," ",K.quotes?be.createElement("img",{src:K.quotes==="asc"?ze.Z:Xe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):be.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),be.createElement(q.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(kt==null?void 0:kt.items)||(kt==null?void 0:kt.shixun_list),pagination:!1,loading:fn,rowKey:Re=>Re.id,rowSelection:{type:"checkbox",selectedRowKeys:Le,getCheckboxProps:Re=>({disabled:Re==null?void 0:Re.added_to_practice}),onSelect(Re,ke,ut){if(ke)(Tt||Re!=null&&Re.challenge_names)&&Ft([...tn,Re.id]),He([...Le,Re.id]),Re.identifier?An.current.add(Re.id):Tn.current.add(Re.id),dn(1),ft([...Ge,Re.id]);else{Re.identifier?An.current.delete(Re.id):Tn.current.delete(Re.id);let gt=Ge.filter(bt=>bt!==Re.id);if(He(gt),ft(gt),Tt||Re!=null&&Re.challenge_names){let bt=tn.filter(zt=>zt!==Re.id);Ft([...bt])}if(K.type==="5"){En(ce(ct({},K),{list:[...gt]}));return}}},onSelectAll(Re,ke,ut){var gt,bt;if(Re){const zt=ut.map(wt=>wt.id),Ut=(bt=ut==null?void 0:ut.filter(wt=>wt==null?void 0:wt.challenge_names))==null?void 0:bt.map(wt=>wt.id);Ft([...tn,...Ut]),He([...Le,...zt]),ft([...Ge,...zt]);for(const wt of ut)wt.identifier?An.current.add(wt.id):Tn.current.add(wt.id)}else{const zt=ut.map(Et=>Et.id),Ut=Le.filter(Et=>!zt.some(At=>At===Et)),wt=(gt=ut==null?void 0:ut.filter(Et=>Et==null?void 0:Et.challenge_names))==null?void 0:gt.map(Et=>Et.id);He([...Ut]),ft([...Ut]);let vt=tn.filter(Et=>!wt.some(At=>At===Et.id));Ft([...vt]),K.type==="5"&&En(ce(ct({},K),{list:[...Ut]}));for(const Et of zt)Et.identifier?An.current.delete(Et):Tn.current.delete(Et)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Re,ke,ut)=>{var gt,bt;return be.createElement(F.Z,{title:Fn(ke)},be.createElement("div",null,Tt||ke!=null&&ke.challenge_names?"\u5B9E\u8BAD\u9898":(bt=(gt=nn==null?void 0:nn.filter(zt=>zt.value===Re))==null?void 0:gt[0])==null?void 0:bt.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Tt?"30%":"60%",key:"name",render:(Re,ke,ut)=>{var gt;return be.createElement("div",{style:{display:"flex",alignItems:"center"}},be.createElement(F.Z,{title:Fn(ke)},be.createElement("div",{className:ke!=null&&ke.high_resources_consume?It.q_title:""},be.createElement(z.Z,{key:1,showLines:1,showTextOnly:!0,value:Tt||ke!=null&&ke.challenge_names?ke!=null&&ke.title||Re===null?"--":Re:(ke==null?void 0:ke.item_type)=="BPROGRAM"?(gt=ke==null?void 0:ke.program_attr)==null?void 0:gt.description:Re}))),(ke==null?void 0:ke.high_resources_consume)&&be.createElement(M.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Tt,render:(Re,ke,ut)=>{var gt;return be.createElement(F.Z,{title:Fn(ke)},be.createElement("span",null,Re?(gt=Re==null?void 0:Re.split("\u3001"))==null?void 0:gt[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Tt,render:(Re,ke,ut)=>be.createElement(F.Z,{title:Fn(ke)},be.createElement("span",null,Re||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Re,ke,ut)=>{var gt,bt,zt,Ut;return be.createElement(F.Z,{title:Fn(ke)},be.createElement("div",null,Tt||ke!=null&&ke.challenge_names?(ke==null?void 0:ke.level)||((bt=(gt=Xn==null?void 0:Xn.filter(wt=>wt.value===Re))==null?void 0:gt[0])==null?void 0:bt.name):(Ut=(zt=Xn==null?void 0:Xn.filter(wt=>wt.value===Re))==null?void 0:zt[0])==null?void 0:Ut.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Tt,render:(Re,ke,ut)=>be.createElement(F.Z,{title:Fn(ke)},be.createElement("div",null,Re||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Re,ke,ut)=>be.createElement(F.Z,{title:Fn(ke)},be.createElement("div",null,Tt||ke!=null&&ke.challenge_names?(ke==null?void 0:ke.study_count)||(ke==null?void 0:ke.stu_num):Re))},{title:be.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",be.createElement(F.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},be.createElement(J.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Tt,render:(Re,ke,ut)=>be.createElement(F.Z,{title:Fn(ke)},be.createElement("div",null,Re||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Re,ke,ut)=>be.createElement(F.Z,{title:Fn(ke)},be.createElement("div",{style:{flex:1,textAlign:"start"}},be.createElement("a",{onClick:()=>{var gt,bt;mt(ce(ct({},ke),{question_type:Tt||ke!=null&&ke.challenge_names?5:(bt=(gt=nn==null?void 0:nn.filter(zt=>zt.value===(ke==null?void 0:ke.item_type)))==null?void 0:gt[0])==null?void 0:bt.question_type})),xt(!0)}},"\u67E5\u770B"),(ke==null?void 0:ke.shixun_tag_num)===1&&be.createElement("a",{style:{marginLeft:10},onClick:()=>{o.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:be.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",be.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${ke==null?void 0:ke.identifier}/challenges`)}},(ke==null?void 0:ke.shixun_name)||"--"),"\uFF1F"),onOk:()=>Z(void 0,null,function*(){if(!Rn(ke==null?void 0:ke.identifier))return new Promise((gt,bt)=>{bt()})})})}},"\u53D1\u5E03")))}].filter(Re=>!Re.hidden)}),be.createElement($t.Z,{current:K.page,total:(kt==null?void 0:kt.items_count)||(kt==null?void 0:kt.shixuns_count),style:{marginBottom:20},defaultPageSize:K.per_page,showTotal:Re=>be.createElement("span",null,"\u5171\xA0",be.createElement("span",{style:{color:"#165DFF"}},Re),"\xA0\u6761\u6570\u636E"),pageSize:K.per_page,onChange:(Re,ke)=>{K.page=Re,K.per_page=ke,S(ct({},K)),yn(ct({},K))}}),be.createElement("div",{className:It.bottom},be.createElement(_e.ZP,{className:It.no,onClick:()=>{se(!1)}},"\u53D6\u6D88"),be.createElement(_e.ZP,{loading:Y,style:{width:Y&&75},className:It.yes,onClick:()=>Z(void 0,null,function*(){if((Ge==null?void 0:Ge.length)<=0){te.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}Ee([...Tn.current],[...An.current],!0,Ge==null?void 0:Ge.length)})},"\u786E\u8BA4"))),be.createElement(o.default,{open:Ot,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:It.previewModal,width:1e3,centered:!0,onCancel:()=>{xt(!1)},onOk:()=>{xt(!1)}},be.createElement(j,{qitem:pt})))};var Ie=(0,ue.connect)(({shixunsDetail:se,newExercisePaper:ge})=>({shixunsDetail:se,newExercisePaper:ge}))(N),Ce=Object.defineProperty,Ae=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,Fe=(se,ge,Ee)=>ge in se?Ce(se,ge,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[ge]=Ee,_t=(se,ge)=>{for(var Ee in ge||(ge={}))st.call(ge,Ee)&&Fe(se,Ee,ge[Ee]);if(Ae)for(var Ee of Ae(ge))lt.call(ge,Ee)&&Fe(se,Ee,ge[Ee]);return se},Ht=(se,ge,Ee)=>new Promise((k,Y)=>{var pe=Be=>{try{xe(Ee.next(Be))}catch(Ye){Y(Ye)}},de=Be=>{try{xe(Ee.throw(Be))}catch(Ye){Y(Ye)}},xe=Be=>Be.done?k(Be.value):Promise.resolve(Be.value).then(pe,de);xe((Ee=Ee.apply(se,ge)).next())});const St=({globalSetting:se,user:ge,dispatch:Ee})=>{var k,Y,pe,de,xe,Be,Ye,dt,nt,Ue,I,K,S,je,De,Le,He,Ge;const[ft]=(0,ue.useSearchParams)(),kt=(0,ue.useLocation)(),Mt={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:ft.get("tab")||"public"},[fn,Pe]=(0,h.useState)(0),[Te,pt]=(0,h.useState)(0),[mt,Ot]=(0,h.useState)(0),[xt,Tt]=(0,h.useState)([]),[Zt,tn]=(0,h.useState)([]),[Ft,un]=(0,h.useState)({}),[dn,qt]=(0,h.useState)(!1),[Pt,Ze]=(0,h.useState)([]),[at,Dt]=(0,h.useState)(!0),[Nt,nn]=(0,h.useState)(null);let[it,on]=(0,h.useState)(Mt);const _n=(0,h.useRef)(null),An=(0,h.useRef)(null),[Tn,Xn]=(0,h.useState)([]),bn=(0,h.useMemo)(()=>["not_reviewed","under_review","review_finished"].includes(it.filter),[it.filter]),[Zn,Nn]=(0,h.useState)(!1),[Mn,Dn]=(0,h.useState)(!1),[yn,Ln]=(0,h.useState)(""),[pn,En]=(0,h.useState)([]),[Rn,Fn]=(0,h.useState)(!1),[Un,jn]=(0,h.useState)([]),[mr,Me]=(0,h.useState)(!1),[Re,ke]=(0,h.useState)(!1),[ut,gt]=(0,h.useState)(null),bt=ge.userInfo.identity==="teacher",zt=(yt,Yt,an)=>Ht(void 0,null,function*(){var Wt,gn,Kn,Cn;yt.persist(),(gn=(Wt=yt==null?void 0:yt.target)==null?void 0:Wt.style)!=null&&gn.pointerEvents&&(yt.target.style.pointerEvents="none");const Jn=yield(0,R.ZP)(`/api/practices/${Yt.identifier}/start`,{method:"get"});if((Jn==null?void 0:Jn.status)===0){if(an){(0,rt.xg)(`/problems/${Jn==null?void 0:Jn.identifier}/oj/${Yt==null?void 0:Yt.identifier}?tab=3`);return}(0,rt.xg)(`/problems/${Jn==null?void 0:Jn.identifier}/oj/${Yt==null?void 0:Yt.identifier}`)}(Cn=(Kn=yt==null?void 0:yt.target)==null?void 0:Kn.style)!=null&&Cn.pointerEvents&&(yt.target.style.pointerEvents="auto")});(0,h.useEffect)(()=>{let yt=B()().add(0,"days").unix(),Yt=localStorage.getItem("problemsclose");if(!Yt){Fn(!0);return}yt>parseInt(Yt)&&Fn(!0)},[]);const Ut=["\u672A\u53D1\u5E03","\u5DF2\u516C\u5F00","\u672A\u5BA1\u6838","\u5BA1\u6838\u4E2D","\u672A\u516C\u5F00","\u672A\u901A\u8FC7"],wt=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(yt,Yt)=>h.createElement("div",{className:w.titleWarp},(it==null?void 0:it.filter)==="mine"?h.createElement("span",{className:w.tag},Ut[Yt.practice_status]):null,h.createElement("span",{title:yt,className:w.hov,onClick:an=>zt(an,Yt)},yt))},(it==null?void 0:it.filter)==="public"?{title:"\u9898\u89E3",dataIndex:"solution_count",width:100,sorter:!0,render:(yt,Yt)=>h.createElement("span",{style:{display:"flex"}},h.createElement("span",{onClick:an=>zt(an,Yt,!0),className:"current"},yt),(Yt==null?void 0:Yt.has_video_solution)&&h.createElement("img",{style:{objectFit:"contain"},className:"ml5",src:C}))}:null,(it==null?void 0:it.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:yt=>h.createElement(h.Fragment,null,yt===1&&h.createElement("span",{className:w["btn-style-1"]},"\u7B80\u5355"),yt===2&&h.createElement("span",{className:w["btn-style-2"]},"\u9002\u4E2D"),yt===3&&h.createElement("span",{className:w["btn-style-3"]},"\u56F0\u96BE"))},(it==null?void 0:it.filter)==="public"?{title:"\u4EBA\u6570",dataIndex:"user_count",align:"center",sorter:!0,width:80}:null,(it==null?void 0:it.filter)==="public"?{title:"\u72B6\u6001",dataIndex:"status",width:94,render:(yt,Yt)=>(0,Q.bg)()?h.createElement(h.Fragment,null,Nt===(Yt==null?void 0:Yt.identifier)?h.createElement("span",{className:w.hovBtn,onClick:an=>zt(an,Yt)},"\u5F00\u542F\u5237\u9898"):h.createElement(h.Fragment,null,yt===0&&h.createElement("span",{className:w.statusText},"\u672A\u5F00\u542F"),yt===1&&h.createElement("span",{className:w.statusText},"\u8FDB\u884C\u4E2D"),yt===2&&h.createElement("span",{className:w.statusText},"\u5DF2\u901A\u8FC7"))):"-"}:null,(it==null?void 0:it.filter)!=="public"?{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_disciplines_name",ellipsis:!0,width:200,render:yt=>h.createElement("span",null,yt==null?void 0:yt.join("\u3001"))}:null,(it==null?void 0:it.filter)==="all"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:null,(it==null?void 0:it.filter)!=="public"?{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",sorter:!0,width:180}:null,(0,Q.Ny)()?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(yt,Yt)=>h.createElement(d.Z,{className:"ml10",dropdownRender:()=>zn(Yt==null?void 0:Yt.identifier,Yt)},h.createElement("span",{style:{cursor:"default"},onClick:an=>an.preventDefault()},h.createElement("span",null,"\u66F4\u591A"),h.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"})))}:dn&&(it==null?void 0:it.filter)!=="public"?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(yt,Yt)=>Yt!=null&&Yt.is_self&&(Yt==null?void 0:Yt.practice_status)!==1?h.createElement(d.Z,{className:"ml10",dropdownRender:()=>tr(Yt==null?void 0:Yt.identifier,Yt)},h.createElement("span",{style:{cursor:"default"},onClick:an=>an.preventDefault()},h.createElement("span",null,"\u66F4\u591A"),h.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"}))):"-"}:null].filter(yt=>!!yt),vt=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(yt,Yt)=>h.createElement("span",{className:w.hov,onClick:an=>zt(an,Yt)},yt)},{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:yt=>h.createElement(h.Fragment,null,yt===1&&h.createElement("span",{className:w["btn-style-1"]},"\u7B80\u5355"),yt===2&&h.createElement("span",{className:w["btn-style-2"]},"\u9002\u4E2D"),yt===3&&h.createElement("span",{className:w["btn-style-3"]},"\u56F0\u96BE"))},(it==null?void 0:it.filter)==="not_reviewed"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",ellipsis:!0,width:100},(it==null?void 0:it.filter)==="not_reviewed"?{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"submit_time",width:180}:null,(it==null?void 0:it.filter)==="under_review"?{title:"\u5F00\u59CB\u5BA1\u6838\u65F6\u95F4",dataIndex:"start_review_time",width:180}:null,(it==null?void 0:it.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:(yt,Yt)=>{let an;switch(it==null?void 0:it.filter){case"under_review":an=h.createElement("div",{style:{display:"flex"}},h.createElement(_e.ZP,{type:"link",size:"small",onClick:Wt=>zt(Wt,Yt)},"\u5BA1\u6838"),h.createElement(_e.ZP,{type:"link",style:{color:"#666"},size:"small",onClick:Wt=>en({e:Wt,record:Yt,op:"release"})},"\u79FB\u51FA"));break;case"review_finished":an=h.createElement(_e.ZP,{type:"link",size:"small",onClick:Wt=>{Nn(!0),Et(Yt)}},"\u5BA1\u6838\u8BB0\u5F55");break;default:an=h.createElement(_e.ZP,{type:"link",block:!0,onClick:Wt=>en({e:Wt,record:Yt,op:"claim"})},"\u5F00\u59CB\u5BA1\u6838");break}return an}}].filter(yt=>!!yt),Et=yt=>Ht(void 0,null,function*(){En([]);const Yt=yield(0,R.ZP)(`/api/practices/${yt.identifier}/review_list`,{method:"get"});En(Yt==null?void 0:Yt.reviews_list)}),At=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",key:"review_time",render:(yt,Yt)=>h.createElement("span",null,B()(yt).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:(yt,Yt)=>yt==="5"||yt===5?h.createElement("div",{style:{display:"flex",alignItems:"center"}},h.createElement("div",{style:{color:"#333333",marginRight:"5px",whiteSpace:"nowrap"}},"\u672A\u901A\u8FC7"),h.createElement("div",{style:{color:"#0152d9",whiteSpace:"nowrap",cursor:"pointer"},onClick:()=>{Ln(Yt.description),Dn(!0)}},"\u67E5\u770B\u539F\u56E0")):h.createElement("span",null,"\u5DF2\u901A\u8FC7")}];(0,h.useEffect)(()=>{Bn(),Kt(it)},[]),(0,h.useEffect)(()=>{var yt;xt.length!==0&&((yt=_n==null?void 0:_n.current)==null?void 0:yt.clientHeight)>98&&Pe(1)},[xt]),(0,h.useEffect)(()=>{var yt;Zt.length!==0&&((yt=An==null?void 0:An.current)==null?void 0:yt.clientHeight)>98&&pt(1)},[Zt]),(0,h.useEffect)(()=>(Ee({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),()=>{Ee({type:"globalSetting/onlyShowBackTopToggle",payload:!0})}),[]),(0,h.useEffect)(()=>{var yt;(document.title==="\u4EBA\u5DE5\u667A\u80FD\u79D1\u7814\u670D\u52A1\u5E73\u53F0"||document.title==="\u9996\u9875"||document.title==="\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0"||(yt=document.title)!=null&&yt.includes("img"))&&(document.title="\u5728\u7EBF\u5237\u9898")},[se]),(0,h.useEffect)(()=>(document.body.setAttribute("data-custom","initial"),()=>{document.body.removeAttribute("data-custom")}),[]);const Kt=yt=>Ht(void 0,null,function*(){var Yt,an;yt.search=encodeURIComponent(yt.search);const Wt=Qe().cloneDeep(yt);Wt.tag_discipline_id=(Yt=Wt.tag_discipline_id)!=null&&Yt.includes(-1)?[]:Wt.tag_discipline_id,Wt.source_discipline_id=(an=Wt.source_discipline_id)!=null&&an.includes(-1)?[]:Wt.source_discipline_id,console.log(Wt,"sendData"),Dt(!0),Ze([]);const gn=yield(0,R.ZP)("/api/practices.json",{method:"get",params:Wt});Xn([]),Dt(!1),Ot(gn==null?void 0:gn.practices_count),Ze(gn==null?void 0:gn.practices_list),jn((gn==null?void 0:gn.recommend_subjects)||[])}),en=yt=>Ht(void 0,[yt],function*({op:Yt,description:an,record:Wt,e:gn}){const Kn={op:Yt,description:an};Dt(!0);const Cn=yield(0,R.ZP)(`/api/practices/${Wt.identifier}/review`,{method:"post",body:Kn});Dt(!1),Yt==="claim"&&(Cn.status===0||Cn.status==="0")&&zt(gn,Wt),Kt(it)}),mn=yt=>Ht(void 0,null,function*(){Dt(!0);const Yt=yield(0,R.ZP)(`/api/practices/${yt.identifier}/publish`,{method:"post"});Dt(!1),Kt(it)}),Bn=()=>Ht(void 0,null,function*(){var yt;const Yt=yield(0,R.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}}),an=yield(0,R.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source",position:"index"}}),Wt=yield(0,R.ZP)("/api/mypractices/rank_list",{method:"get",params:{}});if(Yt!=null&&Yt.tag_disciplines){const gn=[{id:-1,name:"\u5168\u90E8",count:Yt==null?void 0:Yt.totalCount},...Yt==null?void 0:Yt.tag_disciplines];Tt(gn)}if(an!=null&&an.tag_disciplines){const gn=[{id:-1,name:"\u5168\u90E8",count:an==null?void 0:an.totalCount},...an==null?void 0:an.tag_disciplines];tn(gn)}un(Wt||{}),qt((yt=Wt==null?void 0:Wt.my_record)==null?void 0:yt.outsource)}),hn=(yt,Yt)=>{var an;it.page=1;let Wt=it[`${Yt}_discipline_id`];(an=it[`${Yt}_discipline_id`])!=null&&an.includes(yt)?Wt=Wt.filter(gn=>gn!==yt):Wt.push(yt),yt===-1?Wt=[-1]:(Wt=Wt.filter(gn=>gn!==-1),Wt.length||(Wt=[-1])),it[`${Yt}_discipline_id`]=Wt,on(_t({},it)),Kt(it)},xn=(yt,Yt)=>{it.page=1,it[Yt]=typeof yt=="number"?yt:null,on(_t({},it)),Kt(it)},On=yt=>{it.page=1,it.save_search=yt,on(_t({},it))},kn=(yt,Yt,an)=>{it.page=yt==null?void 0:yt.current,it.per_page=yt==null?void 0:yt.pageSize,an!=null&&an.order?(it.sort_by=an==null?void 0:an.field,it.sort_direction=(an==null?void 0:an.order)==="ascend"?"asc":"desc"):(it.sort_by=null,it.sort_direction=null),on(_t({},it)),Kt(it)},Hn=yt=>{it.page=1,it.filter=yt,it.status=null,it.practice_status=null,on(_t({},it)),Kt(it)},Sn=(yt,Yt)=>{if((Yt==null?void 0:Yt.length)===0){te.ZP.warning("\u8BF7\u9009\u62E9\u8BD5\u9898");return}const an=()=>Ht(void 0,null,function*(){const Wt=yield(0,R.ZP)("/api/practices/batch_op.json",{method:"post",body:{identifier:Yt,op:yt}});if((Wt==null?void 0:Wt.status)===0){const gn=Pt.length===1&&it.page!==1?it.page-1:it.page;it.page=gn,on(_t({},it)),Kt(it)}});if(yt===-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:an});return}an()},Wn=h.createElement(g.default,null,(it==null?void 0:it.filter)==="public"?h.createElement(g.default.Item,{onClick:()=>Sn(0,Tn)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171"):[h.createElement(g.default.Item,{key:2,onClick:()=>Sn(1,Tn)},"\u6279\u91CF\u79FB\u5165\u516C\u5171"),h.createElement(g.default.Item,{key:1,onClick:()=>Sn(0,Tn)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171")],(0,Q.Ny)()&&h.createElement(g.default.Item,{onClick:()=>qn()},"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93"),(it==null?void 0:it.filter)!=="public"&&h.createElement(g.default.Item,{onClick:()=>Sn(-1,Tn)},"\u6279\u91CF\u5220\u9664")),zn=(yt,Yt)=>h.createElement(g.default,null,(Yt==null?void 0:Yt.practice_status)===1?h.createElement(g.default.Item,{onClick:()=>Sn(0,[yt])},"\u79FB\u51FA\u516C\u5171"):h.createElement(g.default.Item,{onClick:()=>Sn(1,[yt])},"\u79FB\u5165\u516C\u5171"),(it==null?void 0:it.filter)==="mine"?h.createElement(g.default.Item,{onClick:()=>mn(Yt),disabled:![0,4,5].includes(Yt.practice_status)},[0,4,5].includes(Yt.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"):null,h.createElement(g.default.Item,{onClick:()=>(0,rt.xg)(`/problems/${yt}/ojedit`)},"\u7F16\u8F91"),(it==null?void 0:it.filter)!=="public"&&h.createElement(g.default.Item,{onClick:()=>Sn(-1,[yt])},"\u5220\u9664")),tr=(yt,Yt)=>h.createElement(g.default,null,h.createElement(g.default.Item,{onClick:()=>mn(Yt),disabled:![0,4,5].includes(Yt.practice_status)},[0,4,5].includes(Yt.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"),h.createElement(g.default.Item,{onClick:()=>(0,rt.xg)(`/problems/${yt}/ojedit`)},"\u7F16\u8F91"),h.createElement(g.default.Item,{onClick:()=>Sn(-1,[yt])},"\u5220\u9664")),Yn=yt=>{Xn(yt)},qn=()=>{if(!Tn.length){te.ZP.warning("\u8BF7\u9009\u62E9\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u7684\u7F16\u7A0B\u5237\u9898");return}let yt=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:h.createElement("div",null,h.createElement("p",{className:"mt20"},"\u5DF2\u9009",h.createElement("span",{className:"c-light-primary"},Tn.length),"\u4E2D\u4E2A\u7F16\u7A0B\u5237\u9898\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u6210\u4E3A\u7F16\u7A0B\u9898"),h.createElement("div",null,"\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898\u7684\u8BED\u8A00\uFF1A"),h.createElement(A.default.Group,{className:"mt3",onChange:Yt=>{yt=Yt,document.getElementById("send-to-modal").style.display="none"}},h.createElement(A.default,{value:"c"},"C\u8BED\u8A00"),h.createElement(A.default,{value:"c++"},"C++\u8BED\u8A00"),h.createElement(A.default,{value:"java"},"Java\u8BED\u8A00"),h.createElement(A.default,{value:"python"},"Python\u8BED\u8A00")),h.createElement("div",{id:"send-to-modal",style:{color:"#E30000",display:"none"}},"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00")),onOk:()=>Ht(void 0,null,function*(){if(!(yt!=null&&yt.length))return document.getElementById("send-to-modal").style.display="block",Promise.reject();const Yt=yield(0,R.ZP)("/api/practices/send_to_item_bank.json",{method:"post",body:{identifiers:Tn,language:yt}});(Yt==null?void 0:Yt.status)===0&&te.ZP.success("\u53D1\u9001\u6210\u529F")})})},ur={selectedRowKeys:Tn,columnWidth:40,onChange:Yn};return h.createElement("section",{className:w.wrap},h.createElement(O.jL,{img:X,title:"\u7F16\u7A0B\u5237\u9898",sunTitle:"\u5FEB\u901F\u63D0\u9AD8\u7F16\u7A0B\u80FD\u529B",bannerExtraContent:h.createElement(d.Z,{dropdownRender:()=>{var yt,Yt;return h.createElement(g.default,null,h.createElement(g.default.Item,{key:1,onClick:()=>{ue.history.push("/problems/add")}},"\u65B0\u5EFA\u9898\u76EE"),h.createElement(g.default.Item,{key:2,onClick:()=>{ue.history.push("/problems/batchAdd")}},"\u6279\u91CF\u5BFC\u5165\u9898\u76EE"),!((yt=se==null?void 0:se.setting)!=null&&yt.main_site)&&!((Yt=se==null?void 0:se.setting)!=null&&Yt.is_local)&&h.createElement(g.default.Item,{key:3,onClick:()=>{gt(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u9898"))}},h.createElement("div",{className:w.addQuestion,style:{visibility:(0,Q.Ny)()||dn||!((k=se==null?void 0:se.setting)!=null&&k.main_site)&&!((Y=se==null?void 0:se.setting)!=null&&Y.is_local)&&(0,Q.EO)()?"visible":"hidden"}},h.createElement("span",null,"\u65B0\u5EFA\u9898\u76EE")))}),h.createElement("div",{className:w.content},h.createElement("div",{className:w.left},h.createElement(p.Z,{className:`${w.filterPoint} mb10`,align:"top"},h.createElement(E.Z,{className:w.filterType},"\u77E5\u8BC6\u70B9"),h.createElement(E.Z,{className:w.btnWarp,ref:_n,style:fn>0?{height:fn===1?76:"auto"}:{}},xt==null?void 0:xt.map(yt=>{var Yt;return h.createElement("div",{onClick:()=>hn(yt.id,"tag"),key:yt.id,className:(Yt=it==null?void 0:it.tag_discipline_id)!=null&&Yt.includes(yt.id)?`${w.btn} ${w.btnActive}`:w.btn},h.createElement("span",{title:yt.name},yt.name),h.createElement("span",{className:w.count,style:{display:yt.count?"block":"none"}},yt.count))})),!!fn&&h.createElement(E.Z,{className:w.fold},fn===1?h.createElement("div",{onClick:()=>Pe(2),className:w.action},"\u5C55\u5F00",h.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):h.createElement("div",{onClick:()=>Pe(1),className:w.action},"\u6536\u8D77",h.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"})))),!!Zt.length&&h.createElement(p.Z,{className:w.filterPoint,align:"top",style:{marginBottom:22}},h.createElement(E.Z,{className:w.filterType},"\u6765\u6E90"),h.createElement(E.Z,{className:w.btnWarp,ref:An,style:Te>0?{height:Te===1?76:"auto"}:{}},Zt==null?void 0:Zt.map(yt=>{var Yt;return h.createElement("div",{onClick:()=>hn(yt.id,"source"),key:yt.id,className:(Yt=it==null?void 0:it.source_discipline_id)!=null&&Yt.includes(yt.id)?`${w.btn} ${w.btnActive}`:w.btn},h.createElement("span",{title:yt.name},yt.name),h.createElement("span",{className:w.count},yt.count))}),!!Te&&h.createElement(E.Z,{className:w.fold},Te===1?h.createElement("div",{onClick:()=>pt(2),className:w.action},"\u5C55\u5F00",h.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):h.createElement("div",{onClick:()=>pt(1),className:w.action},"\u6536\u8D77",h.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"}))))),h.createElement("div",{className:w.control},h.createElement(b.default,{suffixIcon:h.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u96BE\u5EA6",value:it==null?void 0:it.difficulty,onChange:yt=>xn(yt,"difficulty")},h.createElement(b.default.Option,{value:1},"\u7B80\u5355"),h.createElement(b.default.Option,{value:2},"\u9002\u4E2D"),h.createElement(b.default.Option,{value:3},"\u56F0\u96BE")),(0,Q.bg)()&&it.filter==="public"&&h.createElement(b.default,{suffixIcon:h.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:it==null?void 0:it.status,onChange:yt=>xn(yt,"status")},h.createElement(b.default.Option,{value:0},"\u672A\u5F00\u542F"),h.createElement(b.default.Option,{value:1},"\u8FDB\u884C\u4E2D"),h.createElement(b.default.Option,{value:2},"\u5DF2\u901A\u8FC7")),(0,Q.bg)()&&it.filter==="mine"&&h.createElement(b.default,{suffixIcon:h.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:it==null?void 0:it.practice_status,onChange:yt=>xn(yt,"practice_status")},h.createElement(b.default.Option,{value:0},"\u672A\u53D1\u5E03"),h.createElement(b.default.Option,{value:1},"\u5DF2\u516C\u5F00"),h.createElement(b.default.Option,{value:2},"\u672A\u5BA1\u6838"),h.createElement(b.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),h.createElement(b.default.Option,{value:4},"\u672A\u516C\u5F00"),h.createElement(b.default.Option,{value:5},"\u672A\u901A\u8FC7")),(0,Q.bg)()&&it.filter==="all"&&h.createElement(b.default,{suffixIcon:h.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:it==null?void 0:it.practice_status,onChange:yt=>xn(yt,"practice_status")},h.createElement(b.default.Option,{value:0},"\u672A\u53D1\u5E03"),h.createElement(b.default.Option,{value:1},"\u5DF2\u516C\u5F00"),h.createElement(b.default.Option,{value:2},"\u672A\u5BA1\u6838"),h.createElement(b.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),h.createElement(b.default.Option,{value:4},"\u672A\u516C\u5F00"),h.createElement(b.default.Option,{value:5},"\u672A\u901A\u8FC7")),h.createElement(L.default.Search,{className:w.search,size:"large",suffix:h.createElement("i",{className:`iconfont icon-sousuo9 font14 ${w.searchIcon}`,onClick:()=>{it.page=1,it.search=it.save_search,on(_t({},it)),it.save_search&&(0,Rt.tk)({name:it.save_search,copywriting:it.save_search,position:"Practice"}),Kt(it)}}),placeholder:(0,Q.Ny)()?"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u3001\u521B\u5EFA\u8005\u641C\u7D22":"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",value:it==null?void 0:it.save_search,onChange:yt=>On(yt.target.value),onSearch:yt=>{it.page=1,it.search=it.save_search,on(_t({},it)),yt&&(0,Rt.tk)({name:yt,copywriting:yt,position:"Practice"}),Kt(it)}})),h.createElement("div",{className:w.table},h.createElement("div",{className:w.tabWarp,style:(0,Q.Ny)()||dn?{}:{height:10,border:0}},(0,Q.Ny)()?h.createElement(V.default,{className:w.tab,activeKey:bn?"not_reviewed":it.filter,onChange:Hn,tabBarExtraContent:!bn&&h.createElement(d.Z,{dropdownRender:()=>Wn},h.createElement("span",{className:"ant-dropdown-link font14 current",onClick:yt=>yt.preventDefault()},"\u6279\u91CF\u64CD\u4F5C ",h.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"iconfont icon-xiajiantou1"})))},h.createElement(V.default.TabPane,{tab:"\u516C\u5171",key:"public"}),h.createElement(V.default.TabPane,{tab:"\u5168\u90E8",key:"all"}),h.createElement(V.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),h.createElement(V.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):dn?h.createElement(V.default,{className:w.tab,activeKey:bn?"not_reviewed":it.filter,onChange:Hn},h.createElement(V.default.TabPane,{tab:"\u516C\u5171",key:"public"}),h.createElement(V.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),h.createElement(V.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):null),bn?h.createElement("div",{className:w.tabWarp,style:(0,Q.Ny)()||dn?{}:{height:10,border:0}},h.createElement(V.default,{className:w.tab,activeKey:it.filter,onChange:Hn},h.createElement(V.default.TabPane,{tab:"\u5F85\u5BA1\u6838",key:"not_reviewed"}),h.createElement(V.default.TabPane,{tab:"\u5BA1\u6838\u4E2D",key:"under_review"}),h.createElement(V.default.TabPane,{tab:"\u5DF2\u5BA1\u6838",key:"review_finished"}))):null,!((0,Q.Ny)()||dn)&&bt&&h.createElement("div",{className:w.tabWarp2,style:{justifyContent:"end"}},mr?h.createElement(p.Z,{align:"middle"},h.createElement(p.Z,{onClick:()=>ke(!0),align:"middle",className:"current"},h.createElement("i",{className:"iconfont icon-yixuan mr10 c-light-primary font20"}),h.createElement("span",null,"\u5DF2\u9009",h.createElement("span",{className:"c-light-primary"},Tn.length),"\u4E2A")),h.createElement(_e.ZP,{className:"mr20 ml40",ghost:!0,onClick:()=>{Me(!1),Xn([])},type:"primary"},"\u53D6\u6D88"),h.createElement(_e.ZP,{onClick:qn,ghost:!0,type:"primary"},"\u786E\u8BA4\u53D1\u9001")):h.createElement(_e.ZP,{onClick:()=>Me(!0),type:"primary"},h.createElement("i",{className:"iconfont icon-fasong mr5"}),"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93")),h.createElement(q.default,{rowSelection:(0,Q.Ny)()||mr?ur:void 0,className:w.customTable,dataSource:Pt,bordered:!1,rowKey:yt=>yt.identifier,columns:bn?vt:wt,rowClassName:w.row,loading:at,onRow:yt=>({onMouseEnter:Yt=>{nn(yt==null?void 0:yt.identifier)},onMouseLeave:Yt=>{nn(null)}}),onChange:kn,pagination:{pageSize:it.per_page,total:mt,current:it.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,size:"default",position:["bottomCenter"],showTotal:yt=>h.createElement("span",{className:"mr10"},"\u5171",h.createElement("span",{className:"c-orange"},yt),"\u6761\u6570\u636E")}}))),h.createElement("div",{className:w.right},h.createElement("div",{className:w.statistics},h.createElement("img",{src:y,alt:""}),h.createElement("div",{className:w.title},"\u6211\u7684\u5237\u9898\u7EDF\u8BA1"),h.createElement(p.Z,{justify:"space-between"},h.createElement(E.Z,{className:w.statisticItem},h.createElement("div",{className:w.rate},(0,Q.bg)()?((pe=Ft==null?void 0:Ft.my_record)==null?void 0:pe.passed_ratio)||0:"-"),h.createElement("div",{className:w.dataName},"\u901A\u8FC7\u7387(%)")),h.createElement(E.Z,{className:w.statisticItem},h.createElement("div",{className:w.rate},(0,Q.bg)()?((de=Ft==null?void 0:Ft.my_record)==null?void 0:de.passed_count)||0:"-"),h.createElement("div",{className:w.dataName},"\u5237\u9898\u6570")),h.createElement(E.Z,{className:w.statisticItem},h.createElement("div",{className:w.rate},(0,Q.bg)()?(Be=(xe=Ft==null?void 0:Ft.my_record)==null?void 0:xe.time_count)==null?void 0:Be.toFixed(2):"-"),h.createElement("div",{className:w.dataName},"\u7D2F\u8BA1\u65F6\u957F(h)")))),!!((Ye=Ft==null?void 0:Ft.rank_list)!=null&&Ye.length)&&h.createElement(h.Fragment,null,((dt=ge.userInfo)==null?void 0:dt.user_id)!=2&&(0,Q.JA)()&&((nt=se==null?void 0:se.setting)==null?void 0:nt.main_site)&&Rn&&(Un==null?void 0:Un.length)>0&&h.createElement("div",{className:w.problemsclose,style:{position:"relative"}},h.createElement(le.Z,{autoplay:!0,pauseOnDotsHover:!0,style:{width:292,height:170,marginBottom:"10px",overflow:"hidden"}},Un==null?void 0:Un.map((yt,Yt)=>h.createElement("div",{style:{display:"flex"},key:Yt},h.createElement("a",{href:`/paths/${yt.identifier}`},h.createElement("img",{style:{width:"292px",height:"170px",borderRadius:"4px"},src:H.Z.IMG_SERVER+"/"+yt.image_url}))))),h.createElement("img",{className:w.imgsrc,onClick:()=>{localStorage.setItem("problemsclose",B()().add(1,"days").unix()+""),Fn(!1)},src:Ct})),h.createElement("div",{className:w.sort},h.createElement("div",{className:w.rankHeader},h.createElement("img",{src:v,className:w.rankIcon})),!!((Ue=Ft==null?void 0:Ft.my_record)!=null&&Ue.rank)&&h.createElement("div",{className:`${w.myRecord} ${w.li}`},h.createElement("span",{className:`${w.recordPrefix} ${w.mine}`},"\u6211\u7684"),h.createElement("img",{className:w.avatar,src:H.Z.IMG_SERVER+"/images/"+((I=Ft==null?void 0:Ft.my_record)==null?void 0:I.image_url)}),h.createElement("span",{title:(K=Ft==null?void 0:Ft.my_record)==null?void 0:K.nickname,className:w.nickname},(S=Ft==null?void 0:Ft.my_record)==null?void 0:S.nickname),h.createElement("span",{className:w.myRank},((je=Ft==null?void 0:Ft.my_record)==null?void 0:je.rank)>999?"\u7B2C999+\u540D":`\u7B2C${(De=Ft==null?void 0:Ft.my_record)==null?void 0:De.rank}\u540D`),h.createElement("span",{className:w.questionNumber},(Le=Ft==null?void 0:Ft.my_record)==null?void 0:Le.passed_count,"\u9898")),(He=Ft==null?void 0:Ft.rank_list)==null?void 0:He.map((yt,Yt)=>{let an=Yt+1;return Yt===0&&(an=P.Z),Yt===1&&(an=G.Z),Yt===2&&(an=ie.Z),h.createElement("div",{className:w.li,key:Yt},typeof an=="number"?h.createElement("span",{className:w.recordPrefix},an):h.createElement("span",{className:w.recordPrefix},h.createElement("img",{src:an})),h.createElement("img",{className:w.avatar,src:H.Z.IMG_SERVER+"/images/"+(yt==null?void 0:yt.image_url)}),h.createElement("span",{title:yt==null?void 0:yt.nickname,className:w.nickname},yt==null?void 0:yt.nickname),h.createElement("span",{className:w.questionNumber},yt.passed_count,"\u9898"))}))))),ut&&h.createElement(Ie,{setScoreShow:gt,isshixuns:!1,ScoreShow:!!ut,isloadings:!1,onOk:yt=>Ht(void 0,null,function*(){if(!yt.length){te.ZP.warning("\u8BF7\u9009\u62E9\u8BD5\u9898");return}const Yt=yield(0,R.ZP)(`/api/item_banks/${yt==null?void 0:yt[0]}/send_to_practice`,{method:"post",body:{ids:yt}});(Yt==null?void 0:Yt.status)==0&&(te.ZP.success("\u64CD\u4F5C\u6210\u529F"),it.filter="mine",on(_t({},it)),gt(!1),Kt(it))})}),h.createElement(o.default,{title:"\u5BA1\u6838\u8BB0\u5F55",open:Zn,onOk:()=>{},onCancel:()=>{Nn(!1)},footer:null,closable:!0},h.createElement(q.default,{dataSource:pn,columns:At})),h.createElement(o.default,{title:"\u672A\u901A\u8FC7\u539F\u56E0",open:Mn,onOk:()=>{},onCancel:()=>{Dn(!1)},footer:null,closable:!0},h.createElement(z.Z,{value:yn})),h.createElement(o.default,{open:Re,centered:!0,width:1e3,okText:"\u786E\u5B9A\u53D1\u9001",onCancel:()=>ke(!1),cancelText:"\u8FD4\u56DE\u5217\u8868",onOk:()=>Ht(void 0,null,function*(){ke(!1),qn()}),title:"\u67E5\u770B\u5DF2\u9009"},h.createElement("div",{className:"font14 c-light-primary mb10"},"\u5DF2\u9009",Tn==null?void 0:Tn.length,"\u4E2A"),h.createElement("div",{style:{height:400,overflow:"auto"}},(Ge=Pt==null?void 0:Pt.filter(yt=>Tn.includes(yt.identifier)))==null?void 0:Ge.map((yt,Yt)=>{var an,Wt;return h.createElement("div",{key:Yt,className:w.sendModal},h.createElement("div",{className:w.li},h.createElement("p",null,yt==null?void 0:yt.name),h.createElement("div",{className:w.bottom},h.createElement("span",{className:"c-grey-333"},"\u7F16\u7A0B\u9898"),h.createElement("i",{className:w.line}),h.createElement("span",{className:"c-grey-333"},yt.difficulty===1&&"\u7B80\u5355",yt.difficulty===2&&"\u9002\u4E2D",yt.difficulty===3&&"\u56F0\u96BE"),h.createElement("i",{className:w.line}),h.createElement("span",null,"\u521B\u5EFA\u8005\xA0",h.createElement(F.Z,{title:yt==null?void 0:yt.creator},h.createElement("span",{className:"c-grey-333"},((an=yt==null?void 0:yt.creator)==null?void 0:an.length)>6?((Wt=yt==null?void 0:yt.creator)==null?void 0:Wt.substr(0,3))+"...":yt==null?void 0:yt.creator))),h.createElement("i",{className:w.line}),h.createElement("span",{className:w.des},"\u66F4\u65B0\xA0",h.createElement("span",{className:"c-grey-333"},yt==null?void 0:yt.updated_at)))),h.createElement("div",{className:w.del,onClick:()=>{Xn(Tn.filter(gn=>gn!==yt.identifier))}},"\u5220\u9664"))}))))};var Bt=(0,ue.connect)(({user:se,globalSetting:ge})=>({user:se,globalSetting:ge}))(St)},58489:function(Pn,Xt,_){"use strict";_.d(Xt,{AL:function(){return R},Iy:function(){return A},Qv:function(){return b},ez:function(){return H},jb:function(){return p}});var h=_(32834),ue=_.n(h),z=_(11690),ae=_.n(z);let B=1;function d(oe,ve){const he=oe.match(/^(\s+)(?:```)/);if(he===null)return ve;const ot=he[1];return ve.split(`
|
|
`).map(U=>{const C=U.match(/^\s+/);if(C===null)return U;const[P]=C;return P.length>=ot.length?U.slice(ot.length):U}).join(`
|
|
`)}let _e=[],te=["<ul>"];const o=new(ue()).Renderer,g=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function A(){_e.length=0,te=["<ul>"]}const p={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function E(oe,ve,he,ot){if(ve>=oe.length||oe[ve].level<=he)return ve;var U=oe[ve];ot.push("<li><a href='#"+B+U.anchor+"'>"+U.text+"</a>"),ve++;var C=[];return ve=E(oe,ve,U.level,C),C.length>0&&(ot.push("<ul>"),C.forEach(function(P){ot.push(P)}),ot.push("</ul>")),ot.push("</li>"),ve=E(oe,ve,he,ot),ve}function b(){return E(_e,0,0,te),te.push("</ul>"),te.join("")}const L={heading(oe){const ve=g.exec(oe);if(B+=1,ve)return{type:"heading",raw:ve[0],depth:ve[1].length,text:ve[2]}},fences(oe){const ve=this.rules.block.fences.exec(oe);if(ve){const he=ve[0];let ot=d(he,ve[3]||"");const U=ve[2]?ve[2].trim():ve[2];if(["latex","katex","math"].indexOf(U)>=0){const C=le(),P=ot;ot=C,F[C]={type:"block",expression:P}}return{type:"code",raw:he,lang:U,text:ot}}}},V=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let q=0;const le=()=>`__special_katext_id_${q++}__`;let F={};function H(){return F}function R(){q=0,F={}}function w(oe){return oe=oe.replace(V,(ve,he)=>{const ot=le();return F[ot]={type:"inline",expression:he},ot}),oe}const Q=o.listitem;o.listitem=function(oe){return Q(w(oe))};const re=o.paragraph;o.paragraph=function(oe){return re(w(oe))};const $=o.tablecell;o.tablecell=function(oe,ve){return $(w(oe),ve)},o.code=function(oe,ve,he){const ot=(ve||"").match(/\S*/)[0];return ot?["latex","katex","math"].indexOf(ot)>=0?`<p class='editormd-tex'>${oe}</p>`:`<pre class="prettyprint linenums"><code class="language-${ve}">${he?oe:(0,z.escape)(oe,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(he?oe:(0,z.escape)(oe,!0))+"</code></pre>"},o.heading=function(oe,ve,he){let ot=this.options.headerPrefix+he.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return _e.push({anchor:ot,level:ve,text:oe}),"<h"+ve+' id="'+B+ot+'">'+oe+"</h"+ve+">"},ue().setOptions({silent:!0,gfm:!0,pedantic:!1}),ue().use({tokenizer:L,renderer:o}),Xt.ZP=ue()},84022:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return nt}});var h=_(59301),ue=_(54476),z=_(33885),ae=_(67732),B=_(83652),d=_(85458),_e=_(75538),te=_(58289),o=_(42403),g=_(20068),A=_(76190),p=_(75931),E={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},b=E,L=_(53280),V=_(92310),q=_.n(V),le={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(I){return h.createElement("ul",{style:{display:"block"}},I)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(I){return h.createElement("button",null,I+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},F=le;function H(Ue,I,K){return Math.max(I,Math.min(Ue,K))}var R=function(I){var K=["onTouchStart","onTouchMove","onWheel"];K.includes(I._reactName)||I.preventDefault()},w=function(I){for(var K=[],S=re(I),je=$(I),De=S;De<je;De++)I.lazyLoadedList.indexOf(De)<0&&K.push(De);return K},Q=function(I){for(var K=[],S=re(I),je=$(I),De=S;De<je;De++)K.push(De);return K},re=function(I){return I.currentSlide-oe(I)},$=function(I){return I.currentSlide+ve(I)},oe=function(I){return I.centerMode?Math.floor(I.slidesToShow/2)+(parseInt(I.centerPadding)>0?1:0):0},ve=function(I){return I.centerMode?Math.floor((I.slidesToShow-1)/2)+1+(parseInt(I.centerPadding)>0?1:0):I.slidesToShow},he=function(I){return I&&I.offsetWidth||0},ot=function(I){return I&&I.offsetHeight||0},U=function(I){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S,je,De,Le;return S=I.startX-I.curX,je=I.startY-I.curY,De=Math.atan2(je,S),Le=Math.round(De*180/Math.PI),Le<0&&(Le=360-Math.abs(Le)),Le<=45&&Le>=0||Le<=360&&Le>=315?"left":Le>=135&&Le<=225?"right":K===!0?Le>=35&&Le<=135?"up":"down":"vertical"},C=function(I){var K=!0;return I.infinite||(I.centerMode&&I.currentSlide>=I.slideCount-1||I.slideCount<=I.slidesToShow||I.currentSlide>=I.slideCount-I.slidesToShow)&&(K=!1),K},P=function(I,K){var S={};return K.forEach(function(je){return S[je]=I[je]}),S},G=function(I){var K=h.Children.count(I.children),S=I.listRef,je=Math.ceil(he(S)),De=I.trackRef&&I.trackRef.node,Le=Math.ceil(he(De)),He;if(I.vertical)He=je;else{var Ge=I.centerMode&&parseInt(I.centerPadding)*2;typeof I.centerPadding=="string"&&I.centerPadding.slice(-1)==="%"&&(Ge*=je/100),He=Math.ceil((je-Ge)/I.slidesToShow)}var ft=S&&ot(S.querySelector('[data-index="0"]')),kt=ft*I.slidesToShow,Mt=I.currentSlide===void 0?I.initialSlide:I.currentSlide;I.rtl&&I.currentSlide===void 0&&(Mt=K-1-I.initialSlide);var fn=I.lazyLoadedList||[],Pe=w((0,z.Z)((0,z.Z)({},I),{},{currentSlide:Mt,lazyLoadedList:fn}));fn=fn.concat(Pe);var Te={slideCount:K,slideWidth:He,listWidth:je,trackWidth:Le,currentSlide:Mt,slideHeight:ft,listHeight:kt,lazyLoadedList:fn};return I.autoplaying===null&&I.autoplay&&(Te.autoplaying="playing"),Te},ie=function(I){var K=I.waitForAnimate,S=I.animating,je=I.fade,De=I.infinite,Le=I.index,He=I.slideCount,Ge=I.lazyLoad,ft=I.currentSlide,kt=I.centerMode,Mt=I.slidesToScroll,fn=I.slidesToShow,Pe=I.useCSS,Te=I.lazyLoadedList;if(K&&S)return{};var pt=Le,mt,Ot,xt,Tt={},Zt={},tn=De?Le:H(Le,0,He-1);if(je){if(!De&&(Le<0||Le>=He))return{};Le<0?pt=Le+He:Le>=He&&(pt=Le-He),Ge&&Te.indexOf(pt)<0&&(Te=Te.concat(pt)),Tt={animating:!0,currentSlide:pt,lazyLoadedList:Te,targetSlide:pt},Zt={animating:!1,targetSlide:pt}}else mt=pt,pt<0?(mt=pt+He,De?He%Mt!==0&&(mt=He-He%Mt):mt=0):!C(I)&&pt>ft?pt=mt=ft:kt&&pt>=He?(pt=De?He:He-1,mt=De?0:He-1):pt>=He&&(mt=pt-He,De?He%Mt!==0&&(mt=0):mt=He-fn),!De&&pt+fn>=He&&(mt=He-fn),Ot=Ve((0,z.Z)((0,z.Z)({},I),{},{slideIndex:pt})),xt=Ve((0,z.Z)((0,z.Z)({},I),{},{slideIndex:mt})),De||(Ot===xt&&(pt=mt),Ot=xt),Ge&&(Te=Te.concat(w((0,z.Z)((0,z.Z)({},I),{},{currentSlide:pt})))),Pe?(Tt={animating:!0,currentSlide:mt,trackStyle:Qt((0,z.Z)((0,z.Z)({},I),{},{left:Ot})),lazyLoadedList:Te,targetSlide:tn},Zt={animating:!1,currentSlide:mt,trackStyle:Vt((0,z.Z)((0,z.Z)({},I),{},{left:xt})),swipeLeft:null,targetSlide:tn}):Tt={currentSlide:mt,trackStyle:Vt((0,z.Z)((0,z.Z)({},I),{},{left:xt})),lazyLoadedList:Te,targetSlide:tn};return{state:Tt,nextState:Zt}},X=function(I,K){var S,je,De,Le,He,Ge=I.slidesToScroll,ft=I.slidesToShow,kt=I.slideCount,Mt=I.currentSlide,fn=I.targetSlide,Pe=I.lazyLoad,Te=I.infinite;if(Le=kt%Ge!==0,S=Le?0:(kt-Mt)%Ge,K.message==="previous")De=S===0?Ge:ft-S,He=Mt-De,Pe&&!Te&&(je=Mt-De,He=je===-1?kt-1:je),Te||(He=fn-Ge);else if(K.message==="next")De=S===0?Ge:S,He=Mt+De,Pe&&!Te&&(He=(Mt+Ge)%kt+S),Te||(He=fn+Ge);else if(K.message==="dots")He=K.index*K.slidesToScroll;else if(K.message==="children"){if(He=K.index,Te){var pt=qe((0,z.Z)((0,z.Z)({},I),{},{targetSlide:He}));He>K.currentSlide&&pt==="left"?He=He-kt:He<K.currentSlide&&pt==="right"&&(He=He+kt)}}else K.message==="index"&&(He=Number(K.index));return He},y=function(I,K,S){return I.target.tagName.match("TEXTAREA|INPUT|SELECT")||!K?"":I.keyCode===37?S?"next":"previous":I.keyCode===39?S?"previous":"next":""},v=function(I,K,S){return I.target.tagName==="IMG"&&R(I),!K||!S&&I.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:I.touches?I.touches[0].pageX:I.clientX,startY:I.touches?I.touches[0].pageY:I.clientY,curX:I.touches?I.touches[0].pageX:I.clientX,curY:I.touches?I.touches[0].pageY:I.clientY}}},O=function(I,K){var S=K.scrolling,je=K.animating,De=K.vertical,Le=K.swipeToSlide,He=K.verticalSwiping,Ge=K.rtl,ft=K.currentSlide,kt=K.edgeFriction,Mt=K.edgeDragged,fn=K.onEdge,Pe=K.swiped,Te=K.swiping,pt=K.slideCount,mt=K.slidesToScroll,Ot=K.infinite,xt=K.touchObject,Tt=K.swipeEvent,Zt=K.listHeight,tn=K.listWidth;if(!S){if(je)return R(I);De&&Le&&He&&R(I);var Ft,un={},dn=Ve(K);xt.curX=I.touches?I.touches[0].pageX:I.clientX,xt.curY=I.touches?I.touches[0].pageY:I.clientY,xt.swipeLength=Math.round(Math.sqrt(Math.pow(xt.curX-xt.startX,2)));var qt=Math.round(Math.sqrt(Math.pow(xt.curY-xt.startY,2)));if(!He&&!Te&&qt>10)return{scrolling:!0};He&&(xt.swipeLength=qt);var Pt=(Ge?-1:1)*(xt.curX>xt.startX?1:-1);He&&(Pt=xt.curY>xt.startY?1:-1);var Ze=Math.ceil(pt/mt),at=U(K.touchObject,He),Dt=xt.swipeLength;return Ot||(ft===0&&(at==="right"||at==="down")||ft+1>=Ze&&(at==="left"||at==="up")||!C(K)&&(at==="left"||at==="up"))&&(Dt=xt.swipeLength*kt,Mt===!1&&fn&&(fn(at),un.edgeDragged=!0)),!Pe&&Tt&&(Tt(at),un.swiped=!0),De?Ft=dn+Dt*(Zt/tn)*Pt:Ge?Ft=dn-Dt*Pt:Ft=dn+Dt*Pt,He&&(Ft=dn+Dt*Pt),un=(0,z.Z)((0,z.Z)({},un),{},{touchObject:xt,swipeLeft:Ft,trackStyle:Vt((0,z.Z)((0,z.Z)({},K),{},{left:Ft}))}),Math.abs(xt.curX-xt.startX)<Math.abs(xt.curY-xt.startY)*.8||xt.swipeLength>10&&(un.swiping=!0,R(I)),un}},me=function(I,K){var S=K.dragging,je=K.swipe,De=K.touchObject,Le=K.listWidth,He=K.touchThreshold,Ge=K.verticalSwiping,ft=K.listHeight,kt=K.swipeToSlide,Mt=K.scrolling,fn=K.onSwipe,Pe=K.targetSlide,Te=K.currentSlide,pt=K.infinite;if(!S)return je&&R(I),{};var mt=Ge?ft/He:Le/He,Ot=U(De,Ge),xt={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Mt||!De.swipeLength)return xt;if(De.swipeLength>mt){R(I),fn&&fn(Ot);var Tt,Zt,tn=pt?Te:Pe;switch(Ot){case"left":case"up":Zt=tn+Ct(K),Tt=kt?rt(K,Zt):Zt,xt.currentDirection=0;break;case"right":case"down":Zt=tn-Ct(K),Tt=kt?rt(K,Zt):Zt,xt.currentDirection=1;break;default:Tt=tn}xt.triggerSlideHandler=Tt}else{var Ft=Ve(K);xt.trackStyle=Qt((0,z.Z)((0,z.Z)({},K),{},{left:Ft}))}return xt},Qe=function(I){for(var K=I.infinite?I.slideCount*2:I.slideCount,S=I.infinite?I.slidesToShow*-1:0,je=I.infinite?I.slidesToShow*-1:0,De=[];S<K;)De.push(S),S=je+I.slidesToScroll,je+=Math.min(I.slidesToScroll,I.slidesToShow);return De},rt=function(I,K){var S=Qe(I),je=0;if(K>S[S.length-1])K=S[S.length-1];else for(var De in S){if(K<S[De]){K=je;break}je=S[De]}return K},Ct=function(I){var K=I.centerMode?I.slideWidth*Math.floor(I.slidesToShow/2):0;if(I.swipeToSlide){var S,je=I.listRef,De=je.querySelectorAll&&je.querySelectorAll(".slick-slide")||[];if(Array.from(De).every(function(Ge){if(I.vertical){if(Ge.offsetTop+ot(Ge)/2>I.swipeLeft*-1)return S=Ge,!1}else if(Ge.offsetLeft-K+he(Ge)/2>I.swipeLeft*-1)return S=Ge,!1;return!0}),!S)return 0;var Le=I.rtl===!0?I.slideCount-I.currentSlide:I.currentSlide,He=Math.abs(S.dataset.index-Le)||1;return He}else return I.slidesToScroll},Rt=function(I,K){return K.reduce(function(S,je){return S&&I.hasOwnProperty(je)},!0)?null:console.error("Keys Missing:",I)},Vt=function(I){Rt(I,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var K,S;if(!I.vertical)K=sn(I)*I.slideWidth;else{var je=I.unslick?I.slideCount:I.slideCount+2*I.slidesToShow;S=je*I.slideHeight}var De={opacity:1,transition:"",WebkitTransition:""};if(I.useTransform){var Le=I.vertical?"translate3d(0px, "+I.left+"px, 0px)":"translate3d("+I.left+"px, 0px, 0px)",He=I.vertical?"translate3d(0px, "+I.left+"px, 0px)":"translate3d("+I.left+"px, 0px, 0px)",Ge=I.vertical?"translateY("+I.left+"px)":"translateX("+I.left+"px)";De=(0,z.Z)((0,z.Z)({},De),{},{WebkitTransform:Le,transform:He,msTransform:Ge})}else I.vertical?De.top=I.left:De.left=I.left;return I.fade&&(De={opacity:1}),K&&(De.width=K),S&&(De.height=S),window&&!window.addEventListener&&window.attachEvent&&(I.vertical?De.marginTop=I.left+"px":De.marginLeft=I.left+"px"),De},Qt=function(I){Rt(I,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var K=Vt(I);return I.useTransform?(K.WebkitTransition="-webkit-transform "+I.speed+"ms "+I.cssEase,K.transition="transform "+I.speed+"ms "+I.cssEase):I.vertical?K.transition="top "+I.speed+"ms "+I.cssEase:K.transition="left "+I.speed+"ms "+I.cssEase,K},Ve=function(I){if(I.unslick)return 0;Rt(I,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var K=I.slideIndex,S=I.trackRef,je=I.infinite,De=I.centerMode,Le=I.slideCount,He=I.slidesToShow,Ge=I.slidesToScroll,ft=I.slideWidth,kt=I.listWidth,Mt=I.variableWidth,fn=I.slideHeight,Pe=I.fade,Te=I.vertical,pt=0,mt,Ot,xt=0;if(Pe||I.slideCount===1)return 0;var Tt=0;if(je?(Tt=-$t(I),Le%Ge!==0&&K+Ge>Le&&(Tt=-(K>Le?He-(K-Le):Le%Ge)),De&&(Tt+=parseInt(He/2))):(Le%Ge!==0&&K+Ge>Le&&(Tt=He-Le%Ge),De&&(Tt=parseInt(He/2))),pt=Tt*ft,xt=Tt*fn,Te?mt=K*fn*-1+xt:mt=K*ft*-1+pt,Mt===!0){var Zt,tn=S&&S.node;if(Zt=K+$t(I),Ot=tn&&tn.childNodes[Zt],mt=Ot?Ot.offsetLeft*-1:0,De===!0){Zt=je?K+$t(I):K,Ot=tn&&tn.children[Zt],mt=0;for(var Ft=0;Ft<Zt;Ft++)mt-=tn&&tn.children[Ft]&&tn.children[Ft].offsetWidth;mt-=parseInt(I.centerPadding),mt+=Ot&&(kt-Ot.offsetWidth)/2}}return mt},$t=function(I){return I.unslick||!I.infinite?0:I.variableWidth?I.slideCount:I.slidesToShow+(I.centerMode?1:0)},It=function(I){return I.unslick||!I.infinite?0:I.slideCount},sn=function(I){return I.slideCount===1?1:$t(I)+I.slideCount+It(I)},qe=function(I){return I.targetSlide>I.currentSlide?I.targetSlide>I.currentSlide+ht(I)?"left":"right":I.targetSlide<I.currentSlide-Oe(I)?"right":"left"},ht=function(I){var K=I.slidesToShow,S=I.centerMode,je=I.rtl,De=I.centerPadding;if(S){var Le=(K-1)/2+1;return parseInt(De)>0&&(Le+=1),je&&K%2===0&&(Le+=1),Le}return je?0:K-1},Oe=function(I){var K=I.slidesToShow,S=I.centerMode,je=I.rtl,De=I.centerPadding;if(S){var Le=(K-1)/2+1;return parseInt(De)>0&&(Le+=1),!je&&K%2===0&&(Le+=1),Le}return je?K-1:0},we=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},j=Object.keys(F);function ze(Ue){return j.reduce(function(I,K){return Ue.hasOwnProperty(K)&&(I[K]=Ue[K]),I},{})}function Xe(Ue,I,K){return I=(0,te.Z)(I),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(I,K||[],(0,te.Z)(Ue).constructor):I.apply(Ue,K))}var J=function(I){var K,S,je,De,Le;I.rtl?Le=I.slideCount-1-I.index:Le=I.index,je=Le<0||Le>=I.slideCount,I.centerMode?(De=Math.floor(I.slidesToShow/2),S=(Le-I.currentSlide)%I.slideCount===0,Le>I.currentSlide-De-1&&Le<=I.currentSlide+De&&(K=!0)):K=I.currentSlide<=Le&&Le<I.currentSlide+I.slidesToShow;var He;I.targetSlide<0?He=I.targetSlide+I.slideCount:I.targetSlide>=I.slideCount?He=I.targetSlide-I.slideCount:He=I.targetSlide;var Ge=Le===He;return{"slick-slide":!0,"slick-active":K,"slick-center":S,"slick-cloned":je,"slick-current":Ge}},M=function(I){var K={};return(I.variableWidth===void 0||I.variableWidth===!1)&&(K.width=I.slideWidth),I.fade&&(K.position="relative",I.vertical&&I.slideHeight?K.top=-I.index*parseInt(I.slideHeight):K.left=-I.index*parseInt(I.slideWidth),K.opacity=I.currentSlide===I.index?1:0,K.zIndex=I.currentSlide===I.index?999:998,I.useCSS&&(K.transition="opacity "+I.speed+"ms "+I.cssEase+", visibility "+I.speed+"ms "+I.cssEase)),K},Se=function(I,K){return I.key+"-"+K},be=function(I){var K,S=[],je=[],De=[],Le=h.Children.count(I.children),He=re(I),Ge=$(I);return h.Children.forEach(I.children,function(ft,kt){var Mt,fn={message:"children",index:kt,slidesToScroll:I.slidesToScroll,currentSlide:I.currentSlide};!I.lazyLoad||I.lazyLoad&&I.lazyLoadedList.indexOf(kt)>=0?Mt=ft:Mt=h.createElement("div",null);var Pe=M((0,z.Z)((0,z.Z)({},I),{},{index:kt})),Te=Mt.props.className||"",pt=J((0,z.Z)((0,z.Z)({},I),{},{index:kt}));if(S.push(h.cloneElement(Mt,{key:"original"+Se(Mt,kt),"data-index":kt,className:q()(pt,Te),tabIndex:"-1","aria-hidden":!pt["slick-active"],style:(0,z.Z)((0,z.Z)({outline:"none"},Mt.props.style||{}),Pe),onClick:function(xt){Mt.props&&Mt.props.onClick&&Mt.props.onClick(xt),I.focusOnSelect&&I.focusOnSelect(fn)}})),I.infinite&&Le>1&&I.fade===!1&&!I.unslick){var mt=Le-kt;mt<=$t(I)&&(K=-mt,K>=He&&(Mt=ft),pt=J((0,z.Z)((0,z.Z)({},I),{},{index:K})),je.push(h.cloneElement(Mt,{key:"precloned"+Se(Mt,K),"data-index":K,tabIndex:"-1",className:q()(pt,Te),"aria-hidden":!pt["slick-active"],style:(0,z.Z)((0,z.Z)({},Mt.props.style||{}),Pe),onClick:function(xt){Mt.props&&Mt.props.onClick&&Mt.props.onClick(xt),I.focusOnSelect&&I.focusOnSelect(fn)}}))),K=Le+kt,K<Ge&&(Mt=ft),pt=J((0,z.Z)((0,z.Z)({},I),{},{index:K})),De.push(h.cloneElement(Mt,{key:"postcloned"+Se(Mt,K),"data-index":K,tabIndex:"-1",className:q()(pt,Te),"aria-hidden":!pt["slick-active"],style:(0,z.Z)((0,z.Z)({},Mt.props.style||{}),Pe),onClick:function(xt){Mt.props&&Mt.props.onClick&&Mt.props.onClick(xt),I.focusOnSelect&&I.focusOnSelect(fn)}}))}}),I.rtl?je.concat(S,De).reverse():je.concat(S,De)},W=function(Ue){function I(){var K;(0,ae.Z)(this,I);for(var S=arguments.length,je=new Array(S),De=0;De<S;De++)je[De]=arguments[De];return K=Xe(this,I,[].concat(je)),(0,g.Z)(K,"node",null),(0,g.Z)(K,"handleRef",function(Le){K.node=Le}),K}return(0,o.Z)(I,Ue),(0,B.Z)(I,[{key:"render",value:function(){var S=be(this.props),je=this.props,De=je.onMouseEnter,Le=je.onMouseOver,He=je.onMouseLeave,Ge={onMouseEnter:De,onMouseOver:Le,onMouseLeave:He};return h.createElement("div",(0,ue.Z)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},Ge),S)}}])}(h.PureComponent);function fe(Ue,I,K){return I=(0,te.Z)(I),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(I,K||[],(0,te.Z)(Ue).constructor):I.apply(Ue,K))}var ye=function(I){var K;return I.infinite?K=Math.ceil(I.slideCount/I.slidesToScroll):K=Math.ceil((I.slideCount-I.slidesToShow)/I.slidesToScroll)+1,K},tt=function(Ue){function I(){return(0,ae.Z)(this,I),fe(this,I,arguments)}return(0,o.Z)(I,Ue),(0,B.Z)(I,[{key:"clickHandler",value:function(S,je){je.preventDefault(),this.props.clickHandler(S)}},{key:"render",value:function(){for(var S=this.props,je=S.onMouseEnter,De=S.onMouseOver,Le=S.onMouseLeave,He=S.infinite,Ge=S.slidesToScroll,ft=S.slidesToShow,kt=S.slideCount,Mt=S.currentSlide,fn=ye({slideCount:kt,slidesToScroll:Ge,slidesToShow:ft,infinite:He}),Pe={onMouseEnter:je,onMouseOver:De,onMouseLeave:Le},Te=[],pt=0;pt<fn;pt++){var mt=(pt+1)*Ge-1,Ot=He?mt:H(mt,0,kt-1),xt=Ot-(Ge-1),Tt=He?xt:H(xt,0,kt-1),Zt=q()({"slick-active":He?Mt>=Tt&&Mt<=Ot:Mt===Tt}),tn={message:"dots",index:pt,slidesToScroll:Ge,currentSlide:Mt},Ft=this.clickHandler.bind(this,tn);Te=Te.concat(h.createElement("li",{key:pt,className:Zt},h.cloneElement(this.props.customPaging(pt),{onClick:Ft})))}return h.cloneElement(this.props.appendDots(Te),(0,z.Z)({className:this.props.dotsClass},Pe))}}])}(h.PureComponent);function We(Ue,I,K){return I=(0,te.Z)(I),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(I,K||[],(0,te.Z)(Ue).constructor):I.apply(Ue,K))}var $e=function(Ue){function I(){return(0,ae.Z)(this,I),We(this,I,arguments)}return(0,o.Z)(I,Ue),(0,B.Z)(I,[{key:"clickHandler",value:function(S,je){je&&je.preventDefault(),this.props.clickHandler(S,je)}},{key:"render",value:function(){var S={"slick-arrow":!0,"slick-prev":!0},je=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(S["slick-disabled"]=!0,je=null);var De={key:"0","data-role":"none",className:q()(S),style:{display:"block"},onClick:je},Le={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},He;return this.props.prevArrow?He=h.cloneElement(this.props.prevArrow,(0,z.Z)((0,z.Z)({},De),Le)):He=h.createElement("button",(0,ue.Z)({key:"0",type:"button"},De)," ","Previous"),He}}])}(h.PureComponent),et=function(Ue){function I(){return(0,ae.Z)(this,I),We(this,I,arguments)}return(0,o.Z)(I,Ue),(0,B.Z)(I,[{key:"clickHandler",value:function(S,je){je&&je.preventDefault(),this.props.clickHandler(S,je)}},{key:"render",value:function(){var S={"slick-arrow":!0,"slick-next":!0},je=this.clickHandler.bind(this,{message:"next"});C(this.props)||(S["slick-disabled"]=!0,je=null);var De={key:"1","data-role":"none",className:q()(S),style:{display:"block"},onClick:je},Le={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},He;return this.props.nextArrow?He=h.cloneElement(this.props.nextArrow,(0,z.Z)((0,z.Z)({},De),Le)):He=h.createElement("button",(0,ue.Z)({key:"1",type:"button"},De)," ","Next"),He}}])}(h.PureComponent),ct=_(76374),ce=["animating"];function Z(Ue,I,K){return I=(0,te.Z)(I),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(I,K||[],(0,te.Z)(Ue).constructor):I.apply(Ue,K))}var N=function(Ue){function I(K){var S;(0,ae.Z)(this,I),S=Z(this,I,[K]),(0,g.Z)(S,"listRefHandler",function(De){return S.list=De}),(0,g.Z)(S,"trackRefHandler",function(De){return S.track=De}),(0,g.Z)(S,"adaptHeight",function(){if(S.props.adaptiveHeight&&S.list){var De=S.list.querySelector('[data-index="'.concat(S.state.currentSlide,'"]'));S.list.style.height=ot(De)+"px"}}),(0,g.Z)(S,"componentDidMount",function(){if(S.props.onInit&&S.props.onInit(),S.props.lazyLoad){var De=w((0,z.Z)((0,z.Z)({},S.props),S.state));De.length>0&&(S.setState(function(He){return{lazyLoadedList:He.lazyLoadedList.concat(De)}}),S.props.onLazyLoad&&S.props.onLazyLoad(De))}var Le=(0,z.Z)({listRef:S.list,trackRef:S.track},S.props);S.updateState(Le,!0,function(){S.adaptHeight(),S.props.autoplay&&S.autoPlay("playing")}),S.props.lazyLoad==="progressive"&&(S.lazyLoadTimer=setInterval(S.progressiveLazyLoad,1e3)),S.ro=new ct.Z(function(){S.state.animating?(S.onWindowResized(!1),S.callbackTimers.push(setTimeout(function(){return S.onWindowResized()},S.props.speed))):S.onWindowResized()}),S.ro.observe(S.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(He){He.onfocus=S.props.pauseOnFocus?S.onSlideFocus:null,He.onblur=S.props.pauseOnFocus?S.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",S.onWindowResized):window.attachEvent("onresize",S.onWindowResized)}),(0,g.Z)(S,"componentWillUnmount",function(){S.animationEndCallback&&clearTimeout(S.animationEndCallback),S.lazyLoadTimer&&clearInterval(S.lazyLoadTimer),S.callbackTimers.length&&(S.callbackTimers.forEach(function(De){return clearTimeout(De)}),S.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",S.onWindowResized):window.detachEvent("onresize",S.onWindowResized),S.autoplayTimer&&clearInterval(S.autoplayTimer),S.ro.disconnect()}),(0,g.Z)(S,"componentDidUpdate",function(De){if(S.checkImagesLoad(),S.props.onReInit&&S.props.onReInit(),S.props.lazyLoad){var Le=w((0,z.Z)((0,z.Z)({},S.props),S.state));Le.length>0&&(S.setState(function(ft){return{lazyLoadedList:ft.lazyLoadedList.concat(Le)}}),S.props.onLazyLoad&&S.props.onLazyLoad(Le))}S.adaptHeight();var He=(0,z.Z)((0,z.Z)({listRef:S.list,trackRef:S.track},S.props),S.state),Ge=S.didPropsChange(De);Ge&&S.updateState(He,Ge,function(){S.state.currentSlide>=h.Children.count(S.props.children)&&S.changeSlide({message:"index",index:h.Children.count(S.props.children)-S.props.slidesToShow,currentSlide:S.state.currentSlide}),(De.autoplay!==S.props.autoplay||De.autoplaySpeed!==S.props.autoplaySpeed)&&(!De.autoplay&&S.props.autoplay?S.autoPlay("playing"):S.props.autoplay?S.autoPlay("update"):S.pause("paused"))})}),(0,g.Z)(S,"onWindowResized",function(De){S.debouncedResize&&S.debouncedResize.cancel(),S.debouncedResize=(0,L.D)(50,function(){return S.resizeWindow(De)}),S.debouncedResize()}),(0,g.Z)(S,"resizeWindow",function(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,Le=!!(S.track&&S.track.node);if(Le){var He=(0,z.Z)((0,z.Z)({listRef:S.list,trackRef:S.track},S.props),S.state);S.updateState(He,De,function(){S.props.autoplay?S.autoPlay("update"):S.pause("paused")}),S.setState({animating:!1}),clearTimeout(S.animationEndCallback),delete S.animationEndCallback}}),(0,g.Z)(S,"updateState",function(De,Le,He){var Ge=G(De);De=(0,z.Z)((0,z.Z)((0,z.Z)({},De),Ge),{},{slideIndex:Ge.currentSlide});var ft=Ve(De);De=(0,z.Z)((0,z.Z)({},De),{},{left:ft});var kt=Vt(De);(Le||h.Children.count(S.props.children)!==h.Children.count(De.children))&&(Ge.trackStyle=kt),S.setState(Ge,He)}),(0,g.Z)(S,"ssrInit",function(){if(S.props.variableWidth){var De=0,Le=0,He=[],Ge=$t((0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{slideCount:S.props.children.length})),ft=It((0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{slideCount:S.props.children.length}));S.props.children.forEach(function(Ft){He.push(Ft.props.style.width),De+=Ft.props.style.width});for(var kt=0;kt<Ge;kt++)Le+=He[He.length-1-kt],De+=He[He.length-1-kt];for(var Mt=0;Mt<ft;Mt++)De+=He[Mt];for(var fn=0;fn<S.state.currentSlide;fn++)Le+=He[fn];var Pe={width:De+"px",left:-Le+"px"};if(S.props.centerMode){var Te="".concat(He[S.state.currentSlide],"px");Pe.left="calc(".concat(Pe.left," + (100% - ").concat(Te,") / 2 ) ")}return{trackStyle:Pe}}var pt=h.Children.count(S.props.children),mt=(0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{slideCount:pt}),Ot=$t(mt)+It(mt)+pt,xt=100/S.props.slidesToShow*Ot,Tt=100/Ot,Zt=-Tt*($t(mt)+S.state.currentSlide)*xt/100;S.props.centerMode&&(Zt+=(100-Tt*xt/100)/2);var tn={width:xt+"%",left:Zt+"%"};return{slideWidth:Tt+"%",trackStyle:tn}}),(0,g.Z)(S,"checkImagesLoad",function(){var De=S.list&&S.list.querySelectorAll&&S.list.querySelectorAll(".slick-slide img")||[],Le=De.length,He=0;Array.prototype.forEach.call(De,function(Ge){var ft=function(){return++He&&He>=Le&&S.onWindowResized()};if(!Ge.onclick)Ge.onclick=function(){return Ge.parentNode.focus()};else{var kt=Ge.onclick;Ge.onclick=function(Mt){kt(Mt),Ge.parentNode.focus()}}Ge.onload||(S.props.lazyLoad?Ge.onload=function(){S.adaptHeight(),S.callbackTimers.push(setTimeout(S.onWindowResized,S.props.speed))}:(Ge.onload=ft,Ge.onerror=function(){ft(),S.props.onLazyLoadError&&S.props.onLazyLoadError()}))})}),(0,g.Z)(S,"progressiveLazyLoad",function(){for(var De=[],Le=(0,z.Z)((0,z.Z)({},S.props),S.state),He=S.state.currentSlide;He<S.state.slideCount+It(Le);He++)if(S.state.lazyLoadedList.indexOf(He)<0){De.push(He);break}for(var Ge=S.state.currentSlide-1;Ge>=-$t(Le);Ge--)if(S.state.lazyLoadedList.indexOf(Ge)<0){De.push(Ge);break}De.length>0?(S.setState(function(ft){return{lazyLoadedList:ft.lazyLoadedList.concat(De)}}),S.props.onLazyLoad&&S.props.onLazyLoad(De)):S.lazyLoadTimer&&(clearInterval(S.lazyLoadTimer),delete S.lazyLoadTimer)}),(0,g.Z)(S,"slideHandler",function(De){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,He=S.props,Ge=He.asNavFor,ft=He.beforeChange,kt=He.onLazyLoad,Mt=He.speed,fn=He.afterChange,Pe=S.state.currentSlide,Te=ie((0,z.Z)((0,z.Z)((0,z.Z)({index:De},S.props),S.state),{},{trackRef:S.track,useCSS:S.props.useCSS&&!Le})),pt=Te.state,mt=Te.nextState;if(pt){ft&&ft(Pe,pt.currentSlide);var Ot=pt.lazyLoadedList.filter(function(xt){return S.state.lazyLoadedList.indexOf(xt)<0});kt&&Ot.length>0&&kt(Ot),!S.props.waitForAnimate&&S.animationEndCallback&&(clearTimeout(S.animationEndCallback),fn&&fn(Pe),delete S.animationEndCallback),S.setState(pt,function(){Ge&&S.asNavForIndex!==De&&(S.asNavForIndex=De,Ge.innerSlider.slideHandler(De)),mt&&(S.animationEndCallback=setTimeout(function(){var xt=mt.animating,Tt=(0,p.Z)(mt,ce);S.setState(Tt,function(){S.callbackTimers.push(setTimeout(function(){return S.setState({animating:xt})},10)),fn&&fn(pt.currentSlide),delete S.animationEndCallback})},Mt))})}}),(0,g.Z)(S,"changeSlide",function(De){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,He=(0,z.Z)((0,z.Z)({},S.props),S.state),Ge=X(He,De);if(!(Ge!==0&&!Ge)&&(Le===!0?S.slideHandler(Ge,Le):S.slideHandler(Ge),S.props.autoplay&&S.autoPlay("update"),S.props.focusOnSelect)){var ft=S.list.querySelectorAll(".slick-current");ft[0]&&ft[0].focus()}}),(0,g.Z)(S,"clickHandler",function(De){S.clickable===!1&&(De.stopPropagation(),De.preventDefault()),S.clickable=!0}),(0,g.Z)(S,"keyHandler",function(De){var Le=y(De,S.props.accessibility,S.props.rtl);Le!==""&&S.changeSlide({message:Le})}),(0,g.Z)(S,"selectHandler",function(De){S.changeSlide(De)}),(0,g.Z)(S,"disableBodyScroll",function(){var De=function(He){He=He||window.event,He.preventDefault&&He.preventDefault(),He.returnValue=!1};window.ontouchmove=De}),(0,g.Z)(S,"enableBodyScroll",function(){window.ontouchmove=null}),(0,g.Z)(S,"swipeStart",function(De){S.props.verticalSwiping&&S.disableBodyScroll();var Le=v(De,S.props.swipe,S.props.draggable);Le!==""&&S.setState(Le)}),(0,g.Z)(S,"swipeMove",function(De){var Le=O(De,(0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{trackRef:S.track,listRef:S.list,slideIndex:S.state.currentSlide}));Le&&(Le.swiping&&(S.clickable=!1),S.setState(Le))}),(0,g.Z)(S,"swipeEnd",function(De){var Le=me(De,(0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{trackRef:S.track,listRef:S.list,slideIndex:S.state.currentSlide}));if(Le){var He=Le.triggerSlideHandler;delete Le.triggerSlideHandler,S.setState(Le),He!==void 0&&(S.slideHandler(He),S.props.verticalSwiping&&S.enableBodyScroll())}}),(0,g.Z)(S,"touchEnd",function(De){S.swipeEnd(De),S.clickable=!0}),(0,g.Z)(S,"slickPrev",function(){S.callbackTimers.push(setTimeout(function(){return S.changeSlide({message:"previous"})},0))}),(0,g.Z)(S,"slickNext",function(){S.callbackTimers.push(setTimeout(function(){return S.changeSlide({message:"next"})},0))}),(0,g.Z)(S,"slickGoTo",function(De){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(De=Number(De),isNaN(De))return"";S.callbackTimers.push(setTimeout(function(){return S.changeSlide({message:"index",index:De,currentSlide:S.state.currentSlide},Le)},0))}),(0,g.Z)(S,"play",function(){var De;if(S.props.rtl)De=S.state.currentSlide-S.props.slidesToScroll;else if(C((0,z.Z)((0,z.Z)({},S.props),S.state)))De=S.state.currentSlide+S.props.slidesToScroll;else return!1;S.slideHandler(De)}),(0,g.Z)(S,"autoPlay",function(De){S.autoplayTimer&&clearInterval(S.autoplayTimer);var Le=S.state.autoplaying;if(De==="update"){if(Le==="hovered"||Le==="focused"||Le==="paused")return}else if(De==="leave"){if(Le==="paused"||Le==="focused")return}else if(De==="blur"&&(Le==="paused"||Le==="hovered"))return;S.autoplayTimer=setInterval(S.play,S.props.autoplaySpeed+50),S.setState({autoplaying:"playing"})}),(0,g.Z)(S,"pause",function(De){S.autoplayTimer&&(clearInterval(S.autoplayTimer),S.autoplayTimer=null);var Le=S.state.autoplaying;De==="paused"?S.setState({autoplaying:"paused"}):De==="focused"?(Le==="hovered"||Le==="playing")&&S.setState({autoplaying:"focused"}):Le==="playing"&&S.setState({autoplaying:"hovered"})}),(0,g.Z)(S,"onDotsOver",function(){return S.props.autoplay&&S.pause("hovered")}),(0,g.Z)(S,"onDotsLeave",function(){return S.props.autoplay&&S.state.autoplaying==="hovered"&&S.autoPlay("leave")}),(0,g.Z)(S,"onTrackOver",function(){return S.props.autoplay&&S.pause("hovered")}),(0,g.Z)(S,"onTrackLeave",function(){return S.props.autoplay&&S.state.autoplaying==="hovered"&&S.autoPlay("leave")}),(0,g.Z)(S,"onSlideFocus",function(){return S.props.autoplay&&S.pause("focused")}),(0,g.Z)(S,"onSlideBlur",function(){return S.props.autoplay&&S.state.autoplaying==="focused"&&S.autoPlay("blur")}),(0,g.Z)(S,"render",function(){var De=q()("slick-slider",S.props.className,{"slick-vertical":S.props.vertical,"slick-initialized":!0}),Le=(0,z.Z)((0,z.Z)({},S.props),S.state),He=P(Le,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),Ge=S.props.pauseOnHover;He=(0,z.Z)((0,z.Z)({},He),{},{onMouseEnter:Ge?S.onTrackOver:null,onMouseLeave:Ge?S.onTrackLeave:null,onMouseOver:Ge?S.onTrackOver:null,focusOnSelect:S.props.focusOnSelect&&S.clickable?S.selectHandler:null});var ft;if(S.props.dots===!0&&S.state.slideCount>=S.props.slidesToShow){var kt=P(Le,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),Mt=S.props.pauseOnDotsHover;kt=(0,z.Z)((0,z.Z)({},kt),{},{clickHandler:S.changeSlide,onMouseEnter:Mt?S.onDotsLeave:null,onMouseOver:Mt?S.onDotsOver:null,onMouseLeave:Mt?S.onDotsLeave:null}),ft=h.createElement(tt,kt)}var fn,Pe,Te=P(Le,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Te.clickHandler=S.changeSlide,S.props.arrows&&(fn=h.createElement($e,Te),Pe=h.createElement(et,Te));var pt=null;S.props.vertical&&(pt={height:S.state.listHeight});var mt=null;S.props.vertical===!1?S.props.centerMode===!0&&(mt={padding:"0px "+S.props.centerPadding}):S.props.centerMode===!0&&(mt={padding:S.props.centerPadding+" 0px"});var Ot=(0,z.Z)((0,z.Z)({},pt),mt),xt=S.props.touchMove,Tt={className:"slick-list",style:Ot,onClick:S.clickHandler,onMouseDown:xt?S.swipeStart:null,onMouseMove:S.state.dragging&&xt?S.swipeMove:null,onMouseUp:xt?S.swipeEnd:null,onMouseLeave:S.state.dragging&&xt?S.swipeEnd:null,onTouchStart:xt?S.swipeStart:null,onTouchMove:S.state.dragging&&xt?S.swipeMove:null,onTouchEnd:xt?S.touchEnd:null,onTouchCancel:S.state.dragging&&xt?S.swipeEnd:null,onKeyDown:S.props.accessibility?S.keyHandler:null},Zt={className:De,dir:"ltr",style:S.props.style};return S.props.unslick&&(Tt={className:"slick-list"},Zt={className:De,style:S.props.style}),h.createElement("div",Zt,S.props.unslick?"":fn,h.createElement("div",(0,ue.Z)({ref:S.listRefHandler},Tt),h.createElement(W,(0,ue.Z)({ref:S.trackRefHandler},He),S.props.children)),S.props.unslick?"":Pe,S.props.unslick?"":ft)}),S.list=null,S.track=null,S.state=(0,z.Z)((0,z.Z)({},b),{},{currentSlide:S.props.initialSlide,targetSlide:S.props.initialSlide?S.props.initialSlide:0,slideCount:h.Children.count(S.props.children)}),S.callbackTimers=[],S.clickable=!0,S.debouncedResize=null;var je=S.ssrInit();return S.state=(0,z.Z)((0,z.Z)({},S.state),je),S}return(0,o.Z)(I,Ue),(0,B.Z)(I,[{key:"didPropsChange",value:function(S){for(var je=!1,De=0,Le=Object.keys(this.props);De<Le.length;De++){var He=Le[De];if(!S.hasOwnProperty(He)){je=!0;break}if(!((0,A.Z)(S[He])==="object"||typeof S[He]=="function"||isNaN(S[He]))&&S[He]!==this.props[He]){je=!0;break}}return je||h.Children.count(this.props.children)!==h.Children.count(S.children)}}])}(h.Component),Ie=_(7861),Ce=_.n(Ie);function Ae(Ue,I,K){return I=(0,te.Z)(I),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(I,K||[],(0,te.Z)(Ue).constructor):I.apply(Ue,K))}var st=function(Ue){function I(K){var S;return(0,ae.Z)(this,I),S=Ae(this,I,[K]),(0,g.Z)(S,"innerSliderRefHandler",function(je){return S.innerSlider=je}),(0,g.Z)(S,"slickPrev",function(){return S.innerSlider.slickPrev()}),(0,g.Z)(S,"slickNext",function(){return S.innerSlider.slickNext()}),(0,g.Z)(S,"slickGoTo",function(je){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return S.innerSlider.slickGoTo(je,De)}),(0,g.Z)(S,"slickPause",function(){return S.innerSlider.pause("paused")}),(0,g.Z)(S,"slickPlay",function(){return S.innerSlider.autoPlay("play")}),S.state={breakpoint:null},S._responsiveMediaHandlers=[],S}return(0,o.Z)(I,Ue),(0,B.Z)(I,[{key:"media",value:function(S,je){var De=window.matchMedia(S),Le=function(Ge){var ft=Ge.matches;ft&&je()};De.addListener(Le),Le(De),this._responsiveMediaHandlers.push({mql:De,query:S,listener:Le})}},{key:"componentDidMount",value:function(){var S=this;if(this.props.responsive){var je=this.props.responsive.map(function(Le){return Le.breakpoint});je.sort(function(Le,He){return Le-He}),je.forEach(function(Le,He){var Ge;He===0?Ge=Ce()({minWidth:0,maxWidth:Le}):Ge=Ce()({minWidth:je[He-1]+1,maxWidth:Le}),we()&&S.media(Ge,function(){S.setState({breakpoint:Le})})});var De=Ce()({minWidth:je.slice(-1)[0]});we()&&this.media(De,function(){S.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(S){S.mql.removeListener(S.listener)})}},{key:"render",value:function(){var S=this,je,De;this.state.breakpoint?(De=this.props.responsive.filter(function(pt){return pt.breakpoint===S.state.breakpoint}),je=De[0].settings==="unslick"?"unslick":(0,z.Z)((0,z.Z)((0,z.Z)({},F),this.props),De[0].settings)):je=(0,z.Z)((0,z.Z)({},F),this.props),je.centerMode&&(je.slidesToScroll>1,je.slidesToScroll=1),je.fade&&(je.slidesToShow>1,je.slidesToScroll>1,je.slidesToShow=1,je.slidesToScroll=1);var Le=h.Children.toArray(this.props.children);Le=Le.filter(function(pt){return typeof pt=="string"?!!pt.trim():!!pt}),je.variableWidth&&(je.rows>1||je.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),je.variableWidth=!1);for(var He=[],Ge=null,ft=0;ft<Le.length;ft+=je.rows*je.slidesPerRow){for(var kt=[],Mt=ft;Mt<ft+je.rows*je.slidesPerRow;Mt+=je.slidesPerRow){for(var fn=[],Pe=Mt;Pe<Mt+je.slidesPerRow&&(je.variableWidth&&Le[Pe].props.style&&(Ge=Le[Pe].props.style.width),!(Pe>=Le.length));Pe+=1)fn.push(h.cloneElement(Le[Pe],{key:100*ft+10*Mt+Pe,tabIndex:-1,style:{width:"".concat(100/je.slidesPerRow,"%"),display:"inline-block"}}));kt.push(h.createElement("div",{key:10*ft+Mt},fn))}je.variableWidth?He.push(h.createElement("div",{key:ft,style:{width:Ge}},kt)):He.push(h.createElement("div",{key:ft},kt))}if(je==="unslick"){var Te="regular slider "+(this.props.className||"");return h.createElement("div",{className:Te},Le)}else He.length<=je.slidesToShow&&!je.infinite&&(je.unslick=!0);return h.createElement(N,(0,ue.Z)({style:this.props.style,ref:this.innerSliderRefHandler},ze(je)),He)}}])}(h.Component),lt=st,Fe=_(48755),_t=_(36237),Ht=_(63356),St=_(16931);const Bt="--dot-duration",se=Ue=>{const{componentCls:I,antCls:K}=Ue;return{[I]:Object.assign(Object.assign({},(0,Ht.Wf)(Ue)),{".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${K}-radio-input, input${K}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${K}-radio-input, input${K}-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"}})}},ge=Ue=>{const{componentCls:I,motionDurationSlow:K,arrowSize:S,arrowOffset:je}=Ue,De=Ue.calc(S).div(Math.SQRT2).equal();return{[I]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:S,height:S,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${K}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:Ue.calc(S).sub(De).div(2).equal(),insetInlineStart:Ue.calc(S).sub(De).div(2).equal(),display:"inline-block",width:De,height:De,border:"0 solid currentcolor",borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:je,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:je,"&::after":{transform:"rotate(135deg)"}}}}},Ee=Ue=>{const{componentCls:I,dotOffset:K,dotWidth:S,dotHeight:je,dotGap:De,colorBgContainer:Le,motionDurationSlow:He}=Ue;return{[I]:{".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:K},"&-top":{top:K,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:S,height:je,marginInline:De,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${He}`,borderRadius:je,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:"100%",height:je,content:'""',background:Le,borderRadius:je,opacity:1,outline:"none",cursor:"pointer",overflow:"hidden",transform:"translate3d(-100%, 0, 0)"},button:{position:"relative",display:"block",width:"100%",height:je,padding:0,color:"transparent",fontSize:0,background:Le,border:0,borderRadius:je,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${He}`,overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:Ue.calc(De).mul(-1).equal(),content:'""'}},"&.slick-active":{width:Ue.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{transform:"translate3d(0, 0, 0)",transition:`transform var(${Bt}) ease-out`}}}}}}},k=Ue=>{const{componentCls:I,dotOffset:K,arrowOffset:S,marginXXS:je}=Ue,De={width:Ue.dotHeight,height:Ue.dotWidth};return{[`${I}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:S,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:S,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:Ue.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:K},"&-right":{insetInlineEnd:K,insetInlineStart:"auto"},li:Object.assign(Object.assign({},De),{margin:`${(0,_t.unit)(je)} 0`,verticalAlign:"baseline",button:De,"&::after":Object.assign(Object.assign({},De),{height:0}),"&.slick-active":Object.assign(Object.assign({},De),{button:De,"&::after":Object.assign(Object.assign({},De),{transition:`height var(${Bt}) ease-out`})})})}}}},Y=Ue=>{const{componentCls:I}=Ue;return[{[`${I}-rtl`]:{direction:"rtl",".slick-dots":{[`${I}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${I}-vertical`]:{".slick-dots":{[`${I}-rtl&`]:{flexDirection:"column"}}}}]},pe=Ue=>({arrowSize:16,arrowOffset:Ue.marginXS,dotWidth:16,dotHeight:3,dotGap:Ue.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24});var de=(0,St.I$)("Carousel",Ue=>[se(Ue),ge(Ue),Ee(Ue),k(Ue),Y(Ue)],pe,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),xe=function(Ue,I){var K={};for(var S in Ue)Object.prototype.hasOwnProperty.call(Ue,S)&&I.indexOf(S)<0&&(K[S]=Ue[S]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,S=Object.getOwnPropertySymbols(Ue);je<S.length;je++)I.indexOf(S[je])<0&&Object.prototype.propertyIsEnumerable.call(Ue,S[je])&&(K[S[je]]=Ue[S[je]]);return K};const Be="slick-dots",Ye=Ue=>{var{currentSlide:I,slideCount:K}=Ue,S=xe(Ue,["currentSlide","slideCount"]);return h.createElement("button",Object.assign({type:"button"},S))};var nt=h.forwardRef((Ue,I)=>{const{dots:K=!0,arrows:S=!1,prevArrow:je=h.createElement(Ye,{"aria-label":"prev"}),nextArrow:De=h.createElement(Ye,{"aria-label":"next"}),draggable:Le=!1,waitForAnimate:He=!1,dotPosition:Ge="bottom",vertical:ft=Ge==="left"||Ge==="right",rootClassName:kt,className:Mt,style:fn,id:Pe,autoplay:Te=!1,autoplaySpeed:pt=3e3}=Ue,mt=xe(Ue,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id","autoplay","autoplaySpeed"]),{getPrefixCls:Ot,direction:xt,className:Tt,style:Zt}=(0,Fe.dj)("carousel"),tn=h.useRef(null),Ft=function(_n){let An=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;tn.current.slickGoTo(_n,An)};h.useImperativeHandle(I,()=>({goTo:Ft,autoPlay:tn.current.innerSlider.autoPlay,innerSlider:tn.current.innerSlider,prev:tn.current.slickPrev,next:tn.current.slickNext}),[tn.current]);const un=h.useRef(h.Children.count(Ue.children));h.useEffect(()=>{un.current!==h.Children.count(Ue.children)&&(Ft(Ue.initialSlide||0,!1),un.current=h.Children.count(Ue.children))},[Ue.children]);const dn=Object.assign({vertical:ft,className:q()(Mt,Tt),style:Object.assign(Object.assign({},Zt),fn),autoplay:!!Te},mt);dn.effect==="fade"&&(dn.fade=!0);const qt=Ot("carousel",dn.prefixCls),Pt=!!K,Ze=q()(Be,`${Be}-${Ge}`,typeof K=="boolean"?!1:K==null?void 0:K.className),[at,Dt,Nt]=de(qt),nn=q()(qt,{[`${qt}-rtl`]:xt==="rtl",[`${qt}-vertical`]:dn.vertical},Dt,Nt,kt),on=Te&&(typeof Te=="object"?Te.dotDuration:!1)?{[Bt]:`${pt}ms`}:{};return at(h.createElement("div",{className:nn,id:Pe,style:on},h.createElement(lt,Object.assign({ref:tn},dn,{dots:Pt,dotsClass:Ze,arrows:S,prevArrow:je,nextArrow:De,draggable:Le,verticalSwiping:ft,autoplaySpeed:pt,waitForAnimate:He}))))})},64018:function(){var Pn,Xt,_,h=!1,ue,z;window.PR_SHOULD_USE_CONTINUATION=!0;var ae,B;(function(){var d=window,_e=["break,continue,do,else,for,if,return,while"],te=[_e,"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=[te,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],g=[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"],A=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],p=[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"],E="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",b=[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",V=[_e,"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"],q=[_e,"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"],le=[_e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],F=[g,p,A,b,L,V,q,le],H=/^(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",w="kwd",Q="com",re="typ",$="lit",oe="pun",ve="pln",he="tag",ot="dec",U="src",C="atn",P="atv",G="nocode",ie="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function X(we){for(var j=0,ze=!1,Xe=!1,J=0,M=we.length;J<M;++J){var Se=we[J];if(Se.ignoreCase)Xe=!0;else if(/[a-z]/i.test(Se.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){ze=!0,Xe=!1;break}}var be={b:8,t:9,n:10,v:11,f:12,r:13};function W($e){var et=$e.charCodeAt(0);if(et!==92)return et;var ct=$e.charAt(1);return et=be[ct],et||("0"<=ct&&ct<="7"?parseInt($e.substring(1),8):ct==="u"||ct==="x"?parseInt($e.substring(2),16):$e.charCodeAt(1))}function fe($e){if($e<32)return($e<16?"\\x0":"\\x")+$e.toString(16);var et=String.fromCharCode($e);return et==="\\"||et==="-"||et==="]"||et==="^"?"\\"+et:et}function ye($e){var et=$e.substring(1,$e.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")),ct=[],ce=et[0]==="^",Z=["["];ce&&Z.push("^");for(var N=ce?1:0,Ie=et.length;N<Ie;++N){var Ce=et[N];if(/\\[bdsw]/i.test(Ce))Z.push(Ce);else{var Ae=W(Ce),st;N+2<Ie&&et[N+1]==="-"?(st=W(et[N+2]),N+=2):st=Ae,ct.push([Ae,st]),st<65||Ae>122||(st<65||Ae>90||ct.push([Math.max(65,Ae)|32,Math.min(st,90)|32]),st<97||Ae>122||ct.push([Math.max(97,Ae)&-33,Math.min(st,122)&-33]))}}ct.sort(function(Ht,St){return Ht[0]-St[0]||St[1]-Ht[1]});for(var lt=[],Fe=[],N=0;N<ct.length;++N){var _t=ct[N];_t[0]<=Fe[1]+1?Fe[1]=Math.max(Fe[1],_t[1]):lt.push(Fe=_t)}for(var N=0;N<lt.length;++N){var _t=lt[N];Z.push(fe(_t[0])),_t[1]>_t[0]&&(_t[1]+1>_t[0]&&Z.push("-"),Z.push(fe(_t[1])))}return Z.push("]"),Z.join("")}function tt($e){for(var et=$e.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")),ct=et.length,ce=[],Z=0,N=0;Z<ct;++Z){var Ie=et[Z];if(Ie==="(")++N;else if(Ie.charAt(0)==="\\"){var Ce=+Ie.substring(1);Ce&&(Ce<=N?ce[Ce]=-1:et[Z]=fe(Ce))}}for(var Z=1;Z<ce.length;++Z)ce[Z]===-1&&(ce[Z]=++j);for(var Z=0,N=0;Z<ct;++Z){var Ie=et[Z];if(Ie==="(")++N,ce[N]||(et[Z]="(?:");else if(Ie.charAt(0)==="\\"){var Ce=+Ie.substring(1);Ce&&Ce<=N&&(et[Z]="\\"+ce[Ce])}}for(var Z=0;Z<ct;++Z)et[Z]==="^"&&et[Z+1]!=="^"&&(et[Z]="");if($e.ignoreCase&&ze)for(var Z=0;Z<ct;++Z){var Ie=et[Z],Ae=Ie.charAt(0);Ie.length>=2&&Ae==="["?et[Z]=ye(Ie):Ae!=="\\"&&(et[Z]=Ie.replace(/[a-zA-Z]/g,function(Fe){var _t=Fe.charCodeAt(0);return"["+String.fromCharCode(_t&-33,_t|32)+"]"}))}return et.join("")}for(var We=[],J=0,M=we.length;J<M;++J){var Se=we[J];if(Se.global||Se.multiline)throw new Error(""+Se);We.push("(?:"+tt(Se)+")")}return new RegExp(We.join("|"),Xe?"gi":"g")}function y(we,j){var ze=/(?:^|\s)nocode(?:\s|$)/,Xe=[],J=0,M=[],Se=0;function be(W){var fe=W.nodeType;if(fe==1){if(ze.test(W.className))return;for(var ye=W.firstChild;ye;ye=ye.nextSibling)be(ye);var tt=W.nodeName.toLowerCase();(tt==="br"||tt==="li")&&(Xe[Se]=`
|
|
`,M[Se<<1]=J++,M[Se++<<1|1]=W)}else if(fe==3||fe==4){var We=W.nodeValue;We.length&&(j?We=We.replace(/\r\n?/g,`
|
|
`):We=We.replace(/[ \t\r\n]+/g," "),Xe[Se]=We,M[Se<<1]=J,J+=We.length,M[Se++<<1|1]=W)}}return be(we),{sourceCode:Xe.join("").replace(/\n$/,""),spans:M}}function v(we,j,ze,Xe,J){if(ze){var M={sourceNode:we,pre:1,langExtension:null,numberLines:null,sourceCode:ze,spans:null,basePos:j,decorations:null};Xe(M),J.push.apply(J,M.decorations)}}var O=/\S/;function me(we){for(var j=void 0,ze=we.firstChild;ze;ze=ze.nextSibling){var Xe=ze.nodeType;j=Xe===1?j?we:ze:Xe===3&&O.test(ze.nodeValue)?we:j}return j===we?void 0:j}function Qe(we,j){var ze={},Xe;(function(){for(var Se=we.concat(j),be=[],W={},fe=0,ye=Se.length;fe<ye;++fe){var tt=Se[fe],We=tt[3];if(We)for(var $e=We.length;--$e>=0;)ze[We.charAt($e)]=tt;var et=tt[1],ct=""+et;W.hasOwnProperty(ct)||(be.push(et),W[ct]=null)}be.push(/[\0-\uffff]/),Xe=X(be)})();var J=j.length,M=function(Se){for(var be=Se.sourceCode,W=Se.basePos,fe=Se.sourceNode,ye=[W,ve],tt=0,We=be.match(Xe)||[],$e={},et=0,ct=We.length;et<ct;++et){var ce=We[et],Z=$e[ce],N=void 0,Ie;if(typeof Z=="string")Ie=!1;else{var Ce=ze[ce.charAt(0)];if(Ce)N=ce.match(Ce[1]),Z=Ce[0];else{for(var Ae=0;Ae<J;++Ae)if(Ce=j[Ae],N=ce.match(Ce[1]),N){Z=Ce[0];break}N||(Z=ve)}Ie=Z.length>=5&&Z.substring(0,5)==="lang-",Ie&&!(N&&typeof N[1]=="string")&&(Ie=!1,Z=U),Ie||($e[ce]=Z)}var st=tt;if(tt+=ce.length,!Ie)ye.push(W+st,Z);else{var lt=N[1],Fe=ce.indexOf(lt),_t=Fe+lt.length;N[2]&&(_t=ce.length-N[2].length,Fe=_t-lt.length);var Ht=Z.substring(5);v(fe,W+st,ce.substring(0,Fe),M,ye),v(fe,W+st+Fe,lt,$t(Ht,lt),ye),v(fe,W+st+_t,ce.substring(_t),M,ye)}}Se.decorations=ye};return M}function rt(we){var j=[],ze=[];we.tripleQuotedStrings?j.push([R,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):we.multiLineStrings?j.push([R,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):j.push([R,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),we.verbatimStrings&&ze.push([R,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Xe=we.hashComments;Xe&&(we.cStyleComments?(Xe>1?j.push([Q,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):j.push([Q,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),ze.push([R,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):j.push([Q,/^#[^\r\n]*/,null,"#"])),we.cStyleComments&&(ze.push([Q,/^\/\/[^\r\n]*/,null]),ze.push([Q,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var J=we.regexLiterals;if(J){var M=J>1?"":`
|
|
\r`,Se=M?".":"[\\S\\s]",be="/(?=[^/*"+M+"])(?:[^/\\x5B\\x5C"+M+"]|\\x5C"+Se+"|\\x5B(?:[^\\x5C\\x5D"+M+"]|\\x5C"+Se+")*(?:\\x5D|$))+/";ze.push(["lang-regex",RegExp("^"+ie+"("+be+")")])}var W=we.types;W&&ze.push([re,W]);var fe=(""+we.keywords).replace(/^ | $/g,"");fe.length&&ze.push([w,new RegExp("^(?:"+fe.replace(/[\s,]+/g,"|")+")\\b"),null]),j.push([ve,/^\s+/,null,` \r
|
|
\xA0`]);var ye="^.[^\\s\\w.$@'\"`/\\\\]*";return we.regexLiterals&&(ye+="(?!s*/)"),ze.push([$,/^@[a-z_$][a-z_$@0-9]*/i,null],[re,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[ve,/^[a-z_$][a-z_$@0-9]*/i,null],[$,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[ve,/^\\[\s\S]?/,null],[oe,new RegExp(ye),null]),Qe(j,ze)}var Ct=rt({keywords:F,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Rt(we,j,ze){for(var Xe=/(?:^|\s)nocode(?:\s|$)/,J=/\r\n?|\n/,M=we.ownerDocument,Se=M.createElement("li");we.firstChild;)Se.appendChild(we.firstChild);var be=[Se];function W(et){var ct=et.nodeType;if(ct==1&&!Xe.test(et.className))if(et.nodeName==="br")fe(et),et.parentNode&&et.parentNode.removeChild(et);else for(var ce=et.firstChild;ce;ce=ce.nextSibling)W(ce);else if((ct==3||ct==4)&&ze){var Z=et.nodeValue,N=Z.match(J);if(N){var Ie=Z.substring(0,N.index);et.nodeValue=Ie;var Ce=Z.substring(N.index+N[0].length);if(Ce){var Ae=et.parentNode;Ae.insertBefore(M.createTextNode(Ce),et.nextSibling)}fe(et),Ie||et.parentNode.removeChild(et)}}}function fe(et){for(;!et.nextSibling;)if(et=et.parentNode,!et)return;function ct(N,Ie){var Ce=Ie?N.cloneNode(!1):N,Ae=N.parentNode;if(Ae){var st=ct(Ae,1),lt=N.nextSibling;st.appendChild(Ce);for(var Fe=lt;Fe;Fe=lt)lt=Fe.nextSibling,st.appendChild(Fe)}return Ce}for(var ce=ct(et.nextSibling,0),Z;(Z=ce.parentNode)&&Z.nodeType===1;)ce=Z;be.push(ce)}for(var ye=0;ye<be.length;++ye)W(be[ye]);j===(j|0)&&be[0].setAttribute("value",j);var tt=M.createElement("ol");tt.className="linenums";for(var We=Math.max(0,j-1|0)||0,ye=0,$e=be.length;ye<$e;++ye)Se=be[ye],Se.className="L"+(ye+We)%10,Se.firstChild||Se.appendChild(M.createTextNode("\xA0")),tt.appendChild(Se);we.appendChild(tt)}function Vt(we){var j=/\bMSIE\s(\d+)/.exec(navigator.userAgent);j=j&&+j[1]<=8;var ze=/\n/g,Xe=we.sourceCode,J=Xe.length,M=0,Se=we.spans,be=Se.length,W=0,fe=we.decorations,ye=fe.length,tt=0;fe[ye]=J;var We,$e;for($e=We=0;$e<ye;)fe[$e]!==fe[$e+2]?(fe[We++]=fe[$e++],fe[We++]=fe[$e++]):$e+=2;for(ye=We,$e=We=0;$e<ye;){for(var et=fe[$e],ct=fe[$e+1],ce=$e+2;ce+2<=ye&&fe[ce+1]===ct;)ce+=2;fe[We++]=et,fe[We++]=ct,$e=ce}ye=fe.length=We;var Z=we.sourceNode,N="";Z&&(N=Z.style.display,Z.style.display="none");try{for(var Ie=null;W<be;){var Ce=Se[W],Ae=Se[W+2]||J,st=fe[tt+2]||J,ce=Math.min(Ae,st),lt=Se[W+1],Fe;if(lt.nodeType!==1&&(Fe=Xe.substring(M,ce))){j&&(Fe=Fe.replace(ze,"\r")),lt.nodeValue=Fe;var _t=lt.ownerDocument,Ht=_t.createElement("span");Ht.className=fe[tt+1];var St=lt.parentNode;St.replaceChild(Ht,lt),Ht.appendChild(lt),M<Ae&&(Se[W+1]=lt=_t.createTextNode(Xe.substring(ce,Ae)),St.insertBefore(lt,Ht.nextSibling))}M=ce,M>=Ae&&(W+=2),M>=st&&(tt+=2)}}finally{Z&&(Z.style.display=N)}}var Qt={};function Ve(we,j){for(var ze=j.length;--ze>=0;){var Xe=j[ze];Qt.hasOwnProperty(Xe)?d.console&&console.warn("cannot override language handler %s",Xe):Qt[Xe]=we}}function $t(we,j){return we&&Qt.hasOwnProperty(we)||(we=/^\s*</.test(j)?"default-markup":"default-code"),Qt[we]}Ve(Ct,["default-code"]),Ve(Qe([],[[ve,/^[^<?]+/],[ot,/^<!\w[^>]*(?:>|$)/],[Q,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[oe,/^(?:<[%?]|[%?]>)/],["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"]),Ve(Qe([[ve,/^[\s]+/,null,` \r
|
|
`],[P,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[he,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[C,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[oe,/^[=<>\/]+/],["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"]),Ve(Qe([],[[P,/^[\s\S]+/]]),["uq.val"]),Ve(rt({keywords:g,hashComments:!0,cStyleComments:!0,types:H}),["c","cc","cpp","cxx","cyc","m"]),Ve(rt({keywords:"null,true,false"}),["json"]),Ve(rt({keywords:p,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:H}),["cs"]),Ve(rt({keywords:A,cStyleComments:!0}),["java"]),Ve(rt({keywords:le,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ve(rt({keywords:V,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ve(rt({keywords:L,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ve(rt({keywords:q,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ve(rt({keywords:b,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ve(rt({keywords:E,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ve(Qe([],[[R,/^[\s\S]+/]]),["regex"]);function It(we){var j=we.langExtension;try{var ze=y(we.sourceNode,we.pre),Xe=ze.sourceCode;we.sourceCode=Xe,we.spans=ze.spans,we.basePos=0,$t(j,Xe)(we),Vt(we)}catch(J){d.console&&console.log(J&&J.stack||J)}}function sn(we,j,ze){var Xe=ze||!1,J=j||null,M=document.createElement("div");M.innerHTML="<pre>"+we+"</pre>",M=M.firstChild,Xe&&Rt(M,Xe,!0);var Se={langExtension:J,numberLines:Xe,sourceNode:M,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return It(Se),M.innerHTML}function qe(we,j){var ze=j||document.body,Xe=ze.ownerDocument||document;function J(Ce){return ze.getElementsByTagName(Ce)}for(var M=[J("pre"),J("code"),J("xmp")],Se=[],be=0;be<M.length;++be)for(var W=0,fe=M[be].length;W<fe;++W)Se.push(M[be][W]);M=null;var ye=Date;ye.now||(ye={now:function(){return+new Date}});var tt=0,We=/\blang(?:uage)?-([\w.]+)(?!\S)/,$e=/\bprettyprint\b/,et=/\bprettyprinted\b/,ct=/pre|xmp/i,ce=/^code$/i,Z=/^(?:pre|code|xmp)$/i,N={};function Ie(){for(var Ce=d.PR_SHOULD_USE_CONTINUATION?ye.now()+250:1/0;tt<Se.length&&ye.now()<Ce;tt++){for(var Ae=Se[tt],st=N,lt=Ae;lt=lt.previousSibling;){var Fe=lt.nodeType,_t=(Fe===7||Fe===8)&<.nodeValue;if(_t?!/^\??prettify\b/.test(_t):Fe!==3||/\S/.test(lt.nodeValue))break;if(_t){st={},_t.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ye,dt,nt){st[dt]=nt});break}}var Ht=Ae.className;if((st!==N||$e.test(Ht))&&!et.test(Ht)){for(var St=!1,Bt=Ae.parentNode;Bt;Bt=Bt.parentNode){var se=Bt.tagName;if(Z.test(se)&&Bt.className&&$e.test(Bt.className)){St=!0;break}}if(!St){Ae.className+=" prettyprinted";var ge=st.lang;if(!ge){ge=Ht.match(We);var Ee;!ge&&(Ee=me(Ae))&&ce.test(Ee.tagName)&&(ge=Ee.className.match(We)),ge&&(ge=ge[1])}var k;if(ct.test(Ae.tagName))k=1;else{var Y=Ae.currentStyle,pe=Xe.defaultView,de=Y?Y.whiteSpace:pe&&pe.getComputedStyle?pe.getComputedStyle(Ae,null).getPropertyValue("white-space"):0;k=de&&de.substring(0,3)==="pre"}var xe=st.linenums;(xe=xe==="true"||+xe)||(xe=Ht.match(/\blinenums\b(?::(\d+))?/),xe=xe?xe[1]&&xe[1].length?+xe[1]:!0:!1),xe&&Rt(Ae,xe,k);var Be={langExtension:ge,sourceNode:Ae,numberLines:xe,pre:k,sourceCode:null,basePos:null,spans:null,decorations:null};It(Be)}}}tt<Se.length?d.setTimeout(Ie,250):typeof we=="function"&&we()}Ie()}var ht=d.PR={createSimpleLexer:Qe,registerLangHandler:Ve,sourceDecorator:rt,PR_ATTRIB_NAME:C,PR_ATTRIB_VALUE:P,PR_COMMENT:Q,PR_DECLARATION:ot,PR_KEYWORD:w,PR_LITERAL:$,PR_NOCODE:G,PR_PLAIN:ve,PR_PUNCTUATION:oe,PR_SOURCE:U,PR_STRING:R,PR_TAG:he,PR_TYPE:re,prettyPrintOne:h?d.prettyPrintOne=sn:ae=sn,prettyPrint:B=h?d.prettyPrint=qe:B=qe},Oe=d.define;typeof Oe=="function"&&Oe.amd&&Oe("google-code-prettify",[],function(){return ht})})()},25769:function(Pn,Xt,_){"use strict";var h=_(98040),ue={"text/plain":"Text","text/html":"Url",default:"Text"},z="Copy to clipboard: #{key}, Enter";function ae(d){var _e=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return d.replace(/#{\s*key\s*}/g,_e)}function B(d,_e){var te,o,g,A,p,E,b=!1;_e||(_e={}),te=_e.debug||!1;try{g=h(),A=document.createRange(),p=document.getSelection(),E=document.createElement("span"),E.textContent=d,E.ariaHidden="true",E.style.all="unset",E.style.position="fixed",E.style.top=0,E.style.clip="rect(0, 0, 0, 0)",E.style.whiteSpace="pre",E.style.webkitUserSelect="text",E.style.MozUserSelect="text",E.style.msUserSelect="text",E.style.userSelect="text",E.addEventListener("copy",function(V){if(V.stopPropagation(),_e.format)if(V.preventDefault(),typeof V.clipboardData=="undefined"){te&&console.warn("unable to use e.clipboardData"),te&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var q=ue[_e.format]||ue.default;window.clipboardData.setData(q,d)}else V.clipboardData.clearData(),V.clipboardData.setData(_e.format,d);_e.onCopy&&(V.preventDefault(),_e.onCopy(V.clipboardData))}),document.body.appendChild(E),A.selectNodeContents(E),p.addRange(A);var L=document.execCommand("copy");if(!L)throw new Error("copy command was unsuccessful");b=!0}catch(V){te&&console.error("unable to copy using execCommand: ",V),te&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(_e.format||"text",d),_e.onCopy&&_e.onCopy(window.clipboardData),b=!0}catch(q){te&&console.error("unable to copy using clipboardData: ",q),te&&console.error("falling back to prompt"),o=ae("message"in _e?_e.message:z),window.prompt(o,d)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(A):p.removeAllRanges()),E&&document.body.removeChild(E),g()}return b}Pn.exports=B},24334:function(Pn,Xt,_){var h,ue;(function(z,ae){Pn.exports=ae(z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof _.g!="undefined"?_.g:this,function(z){"use strict";z=z||{};var ae=z.Base64,B="2.6.4",d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_e=function(C){for(var P={},G=0,ie=C.length;G<ie;G++)P[C.charAt(G)]=G;return P}(d),te=String.fromCharCode,o=function(C){if(C.length<2){var P=C.charCodeAt(0);return P<128?C:P<2048?te(192|P>>>6)+te(128|P&63):te(224|P>>>12&15)+te(128|P>>>6&63)+te(128|P&63)}else{var P=65536+(C.charCodeAt(0)-55296)*1024+(C.charCodeAt(1)-56320);return te(240|P>>>18&7)+te(128|P>>>12&63)+te(128|P>>>6&63)+te(128|P&63)}},g=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,A=function(C){return C.replace(g,o)},p=function(C){var P=[0,2,1][C.length%3],G=C.charCodeAt(0)<<16|(C.length>1?C.charCodeAt(1):0)<<8|(C.length>2?C.charCodeAt(2):0),ie=[d.charAt(G>>>18),d.charAt(G>>>12&63),P>=2?"=":d.charAt(G>>>6&63),P>=1?"=":d.charAt(G&63)];return ie.join("")},E=z.btoa&&typeof z.btoa=="function"?function(C){return z.btoa(C)}:function(C){if(C.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return C.replace(/[\s\S]{1,3}/g,p)},b=function(C){return E(A(String(C)))},L=function(C){return C.replace(/[+\/]/g,function(P){return P=="+"?"-":"_"}).replace(/=/g,"")},V=function(C,P){return P?L(b(C)):b(C)},q=function(C){return V(C,!0)},le;z.Uint8Array&&(le=function(C,P){for(var G="",ie=0,X=C.length;ie<X;ie+=3){var y=C[ie],v=C[ie+1],O=C[ie+2],me=y<<16|v<<8|O;G+=d.charAt(me>>>18)+d.charAt(me>>>12&63)+(typeof v!="undefined"?d.charAt(me>>>6&63):"=")+(typeof O!="undefined"?d.charAt(me&63):"=")}return P?L(G):G});var F=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,H=function(C){switch(C.length){case 4:var P=(7&C.charCodeAt(0))<<18|(63&C.charCodeAt(1))<<12|(63&C.charCodeAt(2))<<6|63&C.charCodeAt(3),G=P-65536;return te((G>>>10)+55296)+te((G&1023)+56320);case 3:return te((15&C.charCodeAt(0))<<12|(63&C.charCodeAt(1))<<6|63&C.charCodeAt(2));default:return te((31&C.charCodeAt(0))<<6|63&C.charCodeAt(1))}},R=function(C){return C.replace(F,H)},w=function(C){var P=C.length,G=P%4,ie=(P>0?_e[C.charAt(0)]<<18:0)|(P>1?_e[C.charAt(1)]<<12:0)|(P>2?_e[C.charAt(2)]<<6:0)|(P>3?_e[C.charAt(3)]:0),X=[te(ie>>>16),te(ie>>>8&255),te(ie&255)];return X.length-=[0,0,2,1][G],X.join("")},Q=z.atob&&typeof z.atob=="function"?function(C){return z.atob(C)}:function(C){return C.replace(/\S{1,4}/g,w)},re=function(C){return Q(String(C).replace(/[^A-Za-z0-9\+\/]/g,""))},$=function(C){return R(Q(C))},oe=function(C){return String(C).replace(/[-_]/g,function(P){return P=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ve=function(C){return $(oe(C))},he;z.Uint8Array&&(he=function(C){return Uint8Array.from(re(oe(C)),function(P){return P.charCodeAt(0)})});var ot=function(){var C=z.Base64;return z.Base64=ae,C};if(z.Base64={VERSION:B,atob:re,btoa:E,fromBase64:ve,toBase64:V,utob:A,encode:V,encodeURI:q,btou:R,decode:ve,noConflict:ot,fromUint8Array:le,toUint8Array:he},typeof Object.defineProperty=="function"){var U=function(C){return{value:C,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",U(function(){return ve(this)})),Object.defineProperty(String.prototype,"toBase64",U(function(C){return V(this,C)})),Object.defineProperty(String.prototype,"toBase64URI",U(function(){return V(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),Pn.exports?Pn.exports.Base64=z.Base64:(h=[],ue=function(){return z.Base64}.apply(Xt,h),ue!==void 0&&(Pn.exports=ue)),{Base64:z.Base64}})},53184:function(Pn,Xt,_){"use strict";var h,ue;function z(ae,B,d){var _e=function(te,o){return ae.js_beautify(te,o)};return _e.js=ae.js_beautify,_e.css=B.css_beautify,_e.html=d.html_beautify,_e.js_beautify=ae.js_beautify,_e.css_beautify=B.css_beautify,_e.html_beautify=d.html_beautify,_e}h=[_(58553),_(87804),_(40998)],ue=function(ae,B,d){return z(ae,B,d)}.apply(Xt,h),ue!==void 0&&(Pn.exports=ue)},87804:function(Pn,Xt){var _,h;(function(){var ue;(function(){"use strict";var ae=[,,function(te){function o(p){this.__parent=p,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 p=new o(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},o.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},o.prototype.has_match=function(p){for(var E=this.__items.length-1;E>=0;E--)if(this.__items[E].match(p))return!0;return!1},o.prototype.set_indent=function(p,E){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=E||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 p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__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(p){this.__items.push(p);var E=p.lastIndexOf(`
|
|
`);E!==-1?this.__character_count=p.length-E:this.__character_count+=p.length},o.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},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 p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function g(p,E){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),E=E||"",p.indent_level>0&&(E=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=E,this.__base_string_length=E.length}g.prototype.get_indent_size=function(p,E){var b=this.__base_string_length;return E=E||0,p<0&&(b=0),b+=p*this.__indent_size,b+=E,b},g.prototype.get_indent_string=function(p,E){var b=this.__base_string;return E=E||0,p<0&&(p=0,b=""),E+=p*this.__indent_size,this.__ensure_cache(E),b+=this.__cache[E],b},g.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},g.prototype.__add_column=function(){var p=this.__cache.length,E=0,b="";this.__indent_size&&p>=this.__indent_size&&(E=Math.floor(p/this.__indent_size),p-=E*this.__indent_size,b=new Array(E+1).join(this.__indent_string)),p&&(b+=new Array(p+1).join(" ")),this.__cache.push(b)};function A(p,E){this.__indent_cache=new g(p,E),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.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()}A.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},A.prototype.get_line_number=function(){return this.__lines.length},A.prototype.get_indent_string=function(p,E){return this.__indent_cache.get_indent_string(p,E)},A.prototype.get_indent_size=function(p,E){return this.__indent_cache.get_indent_size(p,E)},A.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},A.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},A.prototype.get_code=function(p){this.trim(!0);var E=this.current_line.pop();E&&(E[E.length-1]===`
|
|
`&&(E=E.replace(/\n+$/g,"")),this.current_line.push(E)),this._end_with_newline&&this.__add_outputline();var b=this.__lines.join(`
|
|
`);return p!==`
|
|
`&&(b=b.replace(/[\n]/g,p)),b},A.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},A.prototype.set_indent=function(p,E){return p=p||0,E=E||0,this.next_line.set_indent(p,E),this.__lines.length>1?(this.current_line.set_indent(p,E),!0):(this.current_line.set_indent(),!1)},A.prototype.add_raw_token=function(p){for(var E=0;E<p.newlines;E++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(p.whitespace_before),this.current_line.push(p.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},A.prototype.add_token=function(p){this.__add_space_before_token(),this.current_line.push(p),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},A.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(" "))},A.prototype.remove_indent=function(p){for(var E=this.__lines.length;p<E;)this.__lines[p]._remove_indent(),p++;this.current_line._remove_wrap_indent()},A.prototype.trim=function(p){for(p=p===void 0?!1:p,this.current_line.trim();p&&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},A.prototype.just_added_newline=function(){return this.current_line.is_empty()},A.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},A.prototype.ensure_empty_line_above=function(p,E){for(var b=this.__lines.length-2;b>=0;){var L=this.__lines[b];if(L.is_empty())break;if(L.item(0).indexOf(p)!==0&&L.item(-1)!==E){this.__lines.splice(b+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}b--}},te.exports.Output=A},,,,function(te){function o(p,E){this.raw_options=g(p,E),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(p,E){var b=this.raw_options[p],L=E||[];return typeof b=="object"?b!==null&&typeof b.concat=="function"&&(L=b.concat()):typeof b=="string"&&(L=b.split(/[^a-zA-Z0-9_\/\-]+/)),L},o.prototype._get_boolean=function(p,E){var b=this.raw_options[p],L=b===void 0?!!E:!!b;return L},o.prototype._get_characters=function(p,E){var b=this.raw_options[p],L=E||"";return typeof b=="string"&&(L=b.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),L},o.prototype._get_number=function(p,E){var b=this.raw_options[p];E=parseInt(E,10),isNaN(E)&&(E=0);var L=parseInt(b,10);return isNaN(L)&&(L=E),L},o.prototype._get_selection=function(p,E,b){var L=this._get_selection_list(p,E,b);if(L.length!==1)throw new Error("Invalid Option Value: The option '"+p+`' can only be one of the following values:
|
|
`+E+`
|
|
You passed in: '`+this.raw_options[p]+"'");return L[0]},o.prototype._get_selection_list=function(p,E,b){if(!E||E.length===0)throw new Error("Selection list cannot be empty.");if(b=b||[E[0]],!this._is_valid_selection(b,E))throw new Error("Invalid Default Value!");var L=this._get_array(p,b);if(!this._is_valid_selection(L,E))throw new Error("Invalid Option Value: The option '"+p+`' can contain only the following values:
|
|
`+E+`
|
|
You passed in: '`+this.raw_options[p]+"'");return L},o.prototype._is_valid_selection=function(p,E){return p.length&&E.length&&!p.some(function(b){return E.indexOf(b)===-1})};function g(p,E){var b={};p=A(p);var L;for(L in p)L!==E&&(b[L]=p[L]);if(E&&p[E])for(L in p[E])b[L]=p[E][L];return b}function A(p){var E={},b;for(b in p){var L=b.replace(/-/g,"_");E[L]=p[b]}return E}te.exports.Options=o,te.exports.normalizeOpts=A,te.exports.mergeOpts=g},,function(te){var o=RegExp.prototype.hasOwnProperty("sticky");function g(A){this.__input=A||"",this.__input_length=this.__input.length,this.__position=0}g.prototype.restart=function(){this.__position=0},g.prototype.back=function(){this.__position>0&&(this.__position-=1)},g.prototype.hasNext=function(){return this.__position<this.__input_length},g.prototype.next=function(){var A=null;return this.hasNext()&&(A=this.__input.charAt(this.__position),this.__position+=1),A},g.prototype.peek=function(A){var p=null;return A=A||0,A+=this.__position,A>=0&&A<this.__input_length&&(p=this.__input.charAt(A)),p},g.prototype.__match=function(A,p){A.lastIndex=p;var E=A.exec(this.__input);return E&&!(o&&A.sticky)&&E.index!==p&&(E=null),E},g.prototype.test=function(A,p){return p=p||0,p+=this.__position,p>=0&&p<this.__input_length?!!this.__match(A,p):!1},g.prototype.testChar=function(A,p){var E=this.peek(p);return A.lastIndex=0,E!==null&&A.test(E)},g.prototype.match=function(A){var p=this.__match(A,this.__position);return p?this.__position+=p[0].length:p=null,p},g.prototype.read=function(A,p,E){var b="",L;return A&&(L=this.match(A),L&&(b+=L[0])),p&&(L||!A)&&(b+=this.readUntil(p,E)),b},g.prototype.readUntil=function(A,p){var E="",b=this.__position;A.lastIndex=this.__position;var L=A.exec(this.__input);return L?(b=L.index,p&&(b+=L[0].length)):b=this.__input_length,E=this.__input.substring(this.__position,b),this.__position=b,E},g.prototype.readUntilAfter=function(A){return this.readUntil(A,!0)},g.prototype.get_regexp=function(A,p){var E=null,b="g";return p&&o&&(b="y"),typeof A=="string"&&A!==""?E=new RegExp(A,b):A&&(E=new RegExp(A.source,b)),E},g.prototype.get_literal_regexp=function(A){return RegExp(A.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},g.prototype.peekUntilAfter=function(A){var p=this.__position,E=this.readUntilAfter(A);return this.__position=p,E},g.prototype.lookBack=function(A){var p=this.__position-1;return p>=A.length&&this.__input.substring(p-A.length,p).toLowerCase()===A},te.exports.InputScanner=g},,,,,function(te){function o(g,A){g=typeof g=="string"?g:g.source,A=typeof A=="string"?A:A.source,this.__directives_block_pattern=new RegExp(g+/ beautify( \w+[:]\w+)+ /.source+A,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(g+/\sbeautify\signore:end\s/.source+A,"g")}o.prototype.get_directives=function(g){if(!g.match(this.__directives_block_pattern))return null;var A={};this.__directive_pattern.lastIndex=0;for(var p=this.__directive_pattern.exec(g);p;)A[p[1]]=p[2],p=this.__directive_pattern.exec(g);return A},o.prototype.readIgnored=function(g){return g.readUntilAfter(this.__directives_end_ignore_pattern)},te.exports.Directives=o},,function(te,o,g){var A=g(16).Beautifier,p=g(17).Options;function E(b,L){var V=new A(b,L);return V.beautify()}te.exports=E,te.exports.defaultOptions=function(){return new p}},function(te,o,g){var A=g(17).Options,p=g(2).Output,E=g(8).InputScanner,b=g(13).Directives,L=new b(/\/\*/,/\*\//),V=/\r\n|[\r\n]/,q=/\r\n|[\r\n]/g,le=/\s/,F=/(?:\s|\n)+/g,H=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,R=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function w(Q,re){this._source_text=Q||"",this._options=new A(re),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"]}w.prototype.eatString=function(Q){var re="";for(this._ch=this._input.next();this._ch;){if(re+=this._ch,this._ch==="\\")re+=this._input.next();else if(Q.indexOf(this._ch)!==-1||this._ch===`
|
|
`)break;this._ch=this._input.next()}return re},w.prototype.eatWhitespace=function(Q){for(var re=le.test(this._input.peek()),$=0;le.test(this._input.peek());)this._ch=this._input.next(),Q&&this._ch===`
|
|
`&&($===0||$<this._options.max_preserve_newlines)&&($++,this._output.add_new_line(!0));return re},w.prototype.foundNestedPseudoClass=function(){for(var Q=0,re=1,$=this._input.peek(re);$;){if($==="{")return!0;if($==="(")Q+=1;else if($===")"){if(Q===0)return!1;Q-=1}else if($===";"||$==="}")return!1;re++,$=this._input.peek(re)}return!1},w.prototype.print_string=function(Q){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(Q)},w.prototype.preserveSingleSpace=function(Q){Q&&(this._output.space_before_token=!0)},w.prototype.indent=function(){this._indentLevel++},w.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},w.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var Q=this._source_text,re=this._options.eol;re==="auto"&&(re=`
|
|
`,Q&&V.test(Q||"")&&(re=Q.match(V)[0])),Q=Q.replace(q,`
|
|
`);var $=Q.match(/^[\t ]*/)[0];this._output=new p(this._options,$),this._input=new E(Q),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var oe=0,ve=!1,he=!1,ot=!1,U=!1,C=!1,P=this._ch,G=!1,ie,X,y;ie=this._input.read(F),X=ie!=="",y=P,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),P=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var v=this._input.read(H),O=L.get_directives(v);O&&O.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(X),this.print_string(this._ch);var me=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);me.match(/[ :]$/)&&(me=this.eatString(": ").replace(/\s+$/,""),this.print_string(me),this._output.space_before_token=!0),oe===0&&me.indexOf(":")!==-1&&(he=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(X),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Qe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Qe.match(/[ :]$/)&&(Qe=this.eatString(": ").replace(/\s+$/,""),this.print_string(Qe),this._output.space_before_token=!0),oe===0&&Qe.indexOf(":")!==-1?(he=!0,this.indent()):Qe in this.NESTED_AT_RULE?(this._nestedLevel+=1,Qe in this.CONDITIONAL_GROUP_RULE&&(ot=!0)):oe===0&&!he&&(U=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(X),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")he&&(he=!1,this.outdent()),U=!1,ot?(ot=!1,ve=this._indentLevel>=this._nestedLevel):ve=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&ve&&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)):(y==="("?this._output.space_before_token=!1:y!==","&&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(),y==="{"&&this._output.trim(!0),he&&(this.outdent(),he=!1),this.print_string(this._ch),ve=!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 rt=0;rt<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;rt++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[rt])){G=!0;break}(ve||ot)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!U&&oe===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 Ct=y==='"'||y==="'";this.preserveSingleSpace(Ct||X),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")G=!1,oe===0?(he&&(this.outdent(),he=!1),U=!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(),oe++,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(")")),oe&&(oe--,this.outdent()));else{var Rt=!1;this._input.lookBack("with")&&(Rt=!0),this.preserveSingleSpace(X||Rt),this.print_string(this._ch),he&&y==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),C=!0):(this.eatWhitespace(),oe++,this.indent())}else if(this._ch===")")oe&&(oe--,this.outdent()),C&&this._input.peek()===";"&&this._options.selector_separator_newline&&(C=!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||C)&&oe===0&&!U?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!he&&oe===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&&le.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(X),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),le.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 Vt=y==='"'||y==="'";this.preserveSingleSpace(Vt||X),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
`&&G&&this._output.add_new_line()}var Qt=this._output.get_code(re);return Qt},te.exports.Beautifier=w},function(te,o,g){var A=g(6).Options;function p(E){A.call(this,E,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var b=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||b;var L=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var V=0;V<L.length;V++)L[V]!=="expand"?this.brace_style="collapse":this.brace_style=L[V]}p.prototype=new A,te.exports.Options=p}],B={};function d(te){var o=B[te];if(o!==void 0)return o.exports;var g=B[te]={exports:{}};return ae[te](g,g.exports,d),g.exports}var _e=d(15);ue=_e})();var z=ue;_=[],h=function(){return{css_beautify:z}}.apply(Xt,_),h!==void 0&&(Pn.exports=h)})()},40998:function(Pn,Xt,_){var h,ue;(function(){var z;(function(){"use strict";var _e=[,,function(A){function p(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=[]}p.prototype.clone_empty=function(){var L=new p(this.__parent);return L.set_indent(this.__indent_count,this.__alignment_count),L},p.prototype.item=function(L){return L<0?this.__items[this.__items.length+L]:this.__items[L]},p.prototype.has_match=function(L){for(var V=this.__items.length-1;V>=0;V--)if(this.__items[V].match(L))return!0;return!1},p.prototype.set_indent=function(L,V){this.is_empty()&&(this.__indent_count=L||0,this.__alignment_count=V||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.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)},p.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},p.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},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(L){this.__items.push(L);var V=L.lastIndexOf(`
|
|
`);V!==-1?this.__character_count=L.length-V:this.__character_count+=L.length},p.prototype.pop=function(){var L=null;return this.is_empty()||(L=this.__items.pop(),this.__character_count-=L.length),L},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.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 E(L,V){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)),V=V||"",L.indent_level>0&&(V=new Array(L.indent_level+1).join(this.__indent_string)),this.__base_string=V,this.__base_string_length=V.length}E.prototype.get_indent_size=function(L,V){var q=this.__base_string_length;return V=V||0,L<0&&(q=0),q+=L*this.__indent_size,q+=V,q},E.prototype.get_indent_string=function(L,V){var q=this.__base_string;return V=V||0,L<0&&(L=0,q=""),V+=L*this.__indent_size,this.__ensure_cache(V),q+=this.__cache[V],q},E.prototype.__ensure_cache=function(L){for(;L>=this.__cache.length;)this.__add_column()},E.prototype.__add_column=function(){var L=this.__cache.length,V=0,q="";this.__indent_size&&L>=this.__indent_size&&(V=Math.floor(L/this.__indent_size),L-=V*this.__indent_size,q=new Array(V+1).join(this.__indent_string)),L&&(q+=new Array(L+1).join(" ")),this.__cache.push(q)};function b(L,V){this.__indent_cache=new E(L,V),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 p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}b.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},b.prototype.get_line_number=function(){return this.__lines.length},b.prototype.get_indent_string=function(L,V){return this.__indent_cache.get_indent_string(L,V)},b.prototype.get_indent_size=function(L,V){return this.__indent_cache.get_indent_size(L,V)},b.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},b.prototype.add_new_line=function(L){return this.is_empty()||!L&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},b.prototype.get_code=function(L){this.trim(!0);var V=this.current_line.pop();V&&(V[V.length-1]===`
|
|
`&&(V=V.replace(/\n+$/g,"")),this.current_line.push(V)),this._end_with_newline&&this.__add_outputline();var q=this.__lines.join(`
|
|
`);return L!==`
|
|
`&&(q=q.replace(/[\n]/g,L)),q},b.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},b.prototype.set_indent=function(L,V){return L=L||0,V=V||0,this.next_line.set_indent(L,V),this.__lines.length>1?(this.current_line.set_indent(L,V),!0):(this.current_line.set_indent(),!1)},b.prototype.add_raw_token=function(L){for(var V=0;V<L.newlines;V++)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},b.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()},b.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(" "))},b.prototype.remove_indent=function(L){for(var V=this.__lines.length;L<V;)this.__lines[L]._remove_indent(),L++;this.current_line._remove_wrap_indent()},b.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},b.prototype.just_added_newline=function(){return this.current_line.is_empty()},b.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},b.prototype.ensure_empty_line_above=function(L,V){for(var q=this.__lines.length-2;q>=0;){var le=this.__lines[q];if(le.is_empty())break;if(le.item(0).indexOf(L)!==0&&le.item(-1)!==V){this.__lines.splice(q+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}q--}},A.exports.Output=b},function(A){function p(E,b,L,V){this.type=E,this.text=b,this.comments_before=null,this.newlines=L||0,this.whitespace_before=V||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}A.exports.Token=p},,,function(A){function p(L,V){this.raw_options=E(L,V),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"])}p.prototype._get_array=function(L,V){var q=this.raw_options[L],le=V||[];return typeof q=="object"?q!==null&&typeof q.concat=="function"&&(le=q.concat()):typeof q=="string"&&(le=q.split(/[^a-zA-Z0-9_\/\-]+/)),le},p.prototype._get_boolean=function(L,V){var q=this.raw_options[L],le=q===void 0?!!V:!!q;return le},p.prototype._get_characters=function(L,V){var q=this.raw_options[L],le=V||"";return typeof q=="string"&&(le=q.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),le},p.prototype._get_number=function(L,V){var q=this.raw_options[L];V=parseInt(V,10),isNaN(V)&&(V=0);var le=parseInt(q,10);return isNaN(le)&&(le=V),le},p.prototype._get_selection=function(L,V,q){var le=this._get_selection_list(L,V,q);if(le.length!==1)throw new Error("Invalid Option Value: The option '"+L+`' can only be one of the following values:
|
|
`+V+`
|
|
You passed in: '`+this.raw_options[L]+"'");return le[0]},p.prototype._get_selection_list=function(L,V,q){if(!V||V.length===0)throw new Error("Selection list cannot be empty.");if(q=q||[V[0]],!this._is_valid_selection(q,V))throw new Error("Invalid Default Value!");var le=this._get_array(L,q);if(!this._is_valid_selection(le,V))throw new Error("Invalid Option Value: The option '"+L+`' can contain only the following values:
|
|
`+V+`
|
|
You passed in: '`+this.raw_options[L]+"'");return le},p.prototype._is_valid_selection=function(L,V){return L.length&&V.length&&!L.some(function(q){return V.indexOf(q)===-1})};function E(L,V){var q={};L=b(L);var le;for(le in L)le!==V&&(q[le]=L[le]);if(V&&L[V])for(le in L[V])q[le]=L[V][le];return q}function b(L){var V={},q;for(q in L){var le=q.replace(/-/g,"_");V[le]=L[q]}return V}A.exports.Options=p,A.exports.normalizeOpts=b,A.exports.mergeOpts=E},,function(A){var p=RegExp.prototype.hasOwnProperty("sticky");function E(b){this.__input=b||"",this.__input_length=this.__input.length,this.__position=0}E.prototype.restart=function(){this.__position=0},E.prototype.back=function(){this.__position>0&&(this.__position-=1)},E.prototype.hasNext=function(){return this.__position<this.__input_length},E.prototype.next=function(){var b=null;return this.hasNext()&&(b=this.__input.charAt(this.__position),this.__position+=1),b},E.prototype.peek=function(b){var L=null;return b=b||0,b+=this.__position,b>=0&&b<this.__input_length&&(L=this.__input.charAt(b)),L},E.prototype.__match=function(b,L){b.lastIndex=L;var V=b.exec(this.__input);return V&&!(p&&b.sticky)&&V.index!==L&&(V=null),V},E.prototype.test=function(b,L){return L=L||0,L+=this.__position,L>=0&&L<this.__input_length?!!this.__match(b,L):!1},E.prototype.testChar=function(b,L){var V=this.peek(L);return b.lastIndex=0,V!==null&&b.test(V)},E.prototype.match=function(b){var L=this.__match(b,this.__position);return L?this.__position+=L[0].length:L=null,L},E.prototype.read=function(b,L,V){var q="",le;return b&&(le=this.match(b),le&&(q+=le[0])),L&&(le||!b)&&(q+=this.readUntil(L,V)),q},E.prototype.readUntil=function(b,L){var V="",q=this.__position;b.lastIndex=this.__position;var le=b.exec(this.__input);return le?(q=le.index,L&&(q+=le[0].length)):q=this.__input_length,V=this.__input.substring(this.__position,q),this.__position=q,V},E.prototype.readUntilAfter=function(b){return this.readUntil(b,!0)},E.prototype.get_regexp=function(b,L){var V=null,q="g";return L&&p&&(q="y"),typeof b=="string"&&b!==""?V=new RegExp(b,q):b&&(V=new RegExp(b.source,q)),V},E.prototype.get_literal_regexp=function(b){return RegExp(b.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},E.prototype.peekUntilAfter=function(b){var L=this.__position,V=this.readUntilAfter(b);return this.__position=L,V},E.prototype.lookBack=function(b){var L=this.__position-1;return L>=b.length&&this.__input.substring(L-b.length,L).toLowerCase()===b},A.exports.InputScanner=E},function(A,p,E){var b=E(8).InputScanner,L=E(3).Token,V=E(10).TokenStream,q=E(11).WhitespacePattern,le={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},F=function(H,R){this._input=new b(H),this._options=R||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new q(this._input)};F.prototype.tokenize=function(){this._input.restart(),this.__tokens=new V,this._reset();for(var H,R=new L(le.START,""),w=null,Q=[],re=new V;R.type!==le.EOF;){for(H=this._get_next_token(R,w);this._is_comment(H);)re.add(H),H=this._get_next_token(R,w);re.isEmpty()||(H.comments_before=re,re=new V),H.parent=w,this._is_opening(H)?(Q.push(w),w=H):w&&this._is_closing(H,w)&&(H.opened=w,w.closed=H,w=Q.pop(),H.parent=w),H.previous=R,R.next=H,this.__tokens.add(H),R=H}return this.__tokens},F.prototype._is_first_token=function(){return this.__tokens.isEmpty()},F.prototype._reset=function(){},F.prototype._get_next_token=function(H,R){this._readWhitespace();var w=this._input.read(/.+/g);return w?this._create_token(le.RAW,w):this._create_token(le.EOF,"")},F.prototype._is_comment=function(H){return!1},F.prototype._is_opening=function(H){return!1},F.prototype._is_closing=function(H,R){return!1},F.prototype._create_token=function(H,R){var w=new L(H,R,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return w},F.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},A.exports.Tokenizer=F,A.exports.TOKEN=le},function(A){function p(E){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=E}p.prototype.restart=function(){this.__position=0},p.prototype.isEmpty=function(){return this.__tokens_length===0},p.prototype.hasNext=function(){return this.__position<this.__tokens_length},p.prototype.next=function(){var E=null;return this.hasNext()&&(E=this.__tokens[this.__position],this.__position+=1),E},p.prototype.peek=function(E){var b=null;return E=E||0,E+=this.__position,E>=0&&E<this.__tokens_length&&(b=this.__tokens[E]),b},p.prototype.add=function(E){this.__parent_token&&(E.parent=this.__parent_token),this.__tokens.push(E),this.__tokens_length+=1},A.exports.TokenStream=p},function(A,p,E){var b=E(12).Pattern;function L(V,q){b.call(this,V,q),q?this._line_regexp=this._input.get_regexp(q._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}L.prototype=new b,L.prototype.__set_whitespace_patterns=function(V,q){V+="\\t ",q+="\\n\\r",this._match_pattern=this._input.get_regexp("["+V+q+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+q+"]")},L.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var V=this._input.read(this._match_pattern);if(V===" ")this.whitespace_before_token=" ";else if(V){var q=this.__split(this._newline_regexp,V);this.newline_count=q.length-1,this.whitespace_before_token=q[this.newline_count]}return V},L.prototype.matching=function(V,q){var le=this._create();return le.__set_whitespace_patterns(V,q),le._update(),le},L.prototype._create=function(){return new L(this._input,this)},L.prototype.__split=function(V,q){V.lastIndex=0;for(var le=0,F=[],H=V.exec(q);H;)F.push(q.substring(le,H.index)),le=H.index+H[0].length,H=V.exec(q);return le<q.length?F.push(q.substring(le,q.length)):F.push(""),F},A.exports.WhitespacePattern=L},function(A){function p(E,b){this._input=E,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,b&&(this._starting_pattern=this._input.get_regexp(b._starting_pattern,!0),this._match_pattern=this._input.get_regexp(b._match_pattern,!0),this._until_pattern=this._input.get_regexp(b._until_pattern),this._until_after=b._until_after)}p.prototype.read=function(){var E=this._input.read(this._starting_pattern);return(!this._starting_pattern||E)&&(E+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),E},p.prototype.read_match=function(){return this._input.match(this._match_pattern)},p.prototype.until_after=function(E){var b=this._create();return b._until_after=!0,b._until_pattern=this._input.get_regexp(E),b._update(),b},p.prototype.until=function(E){var b=this._create();return b._until_after=!1,b._until_pattern=this._input.get_regexp(E),b._update(),b},p.prototype.starting_with=function(E){var b=this._create();return b._starting_pattern=this._input.get_regexp(E,!0),b._update(),b},p.prototype.matching=function(E){var b=this._create();return b._match_pattern=this._input.get_regexp(E,!0),b._update(),b},p.prototype._create=function(){return new p(this._input,this)},p.prototype._update=function(){},A.exports.Pattern=p},function(A){function p(E,b){E=typeof E=="string"?E:E.source,b=typeof b=="string"?b:b.source,this.__directives_block_pattern=new RegExp(E+/ beautify( \w+[:]\w+)+ /.source+b,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(E+/\sbeautify\signore:end\s/.source+b,"g")}p.prototype.get_directives=function(E){if(!E.match(this.__directives_block_pattern))return null;var b={};this.__directive_pattern.lastIndex=0;for(var L=this.__directive_pattern.exec(E);L;)b[L[1]]=L[2],L=this.__directive_pattern.exec(E);return b},p.prototype.readIgnored=function(E){return E.readUntilAfter(this.__directives_end_ignore_pattern)},A.exports.Directives=p},function(A,p,E){var b=E(12).Pattern,L={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function V(q,le){b.call(this,q,le),this.__template_pattern=null,this._disabled=Object.assign({},L),this._excluded=Object.assign({},L),le&&(this.__template_pattern=this._input.get_regexp(le.__template_pattern),this._excluded=Object.assign(this._excluded,le._excluded),this._disabled=Object.assign(this._disabled,le._disabled));var F=new b(q);this.__patterns={handlebars_comment:F.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:F.starting_with(/{{{/).until_after(/}}}/),handlebars:F.starting_with(/{{/).until_after(/}}/),php:F.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:F.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:F.starting_with(/{%/).until_after(/%}/),django_value:F.starting_with(/{{/).until_after(/}}/),django_comment:F.starting_with(/{#/).until_after(/#}/),smarty:F.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:F.starting_with(/{\*/).until_after(/\*}/),smarty_literal:F.starting_with(/{literal}/).until_after(/{\/literal}/)}}V.prototype=new b,V.prototype._create=function(){return new V(this._input,this)},V.prototype._update=function(){this.__set_templated_pattern()},V.prototype.disable=function(q){var le=this._create();return le._disabled[q]=!0,le._update(),le},V.prototype.read_options=function(q){var le=this._create();for(var F in L)le._disabled[F]=q.templating.indexOf(F)===-1;return le._update(),le},V.prototype.exclude=function(q){var le=this._create();return le._excluded[q]=!0,le._update(),le},V.prototype.read=function(){var q="";this._match_pattern?q=this._input.read(this._starting_pattern):q=this._input.read(this._starting_pattern,this.__template_pattern);for(var le=this._read_template();le;)this._match_pattern?le+=this._input.read(this._match_pattern):le+=this._input.readUntil(this.__template_pattern),q+=le,le=this._read_template();return this._until_after&&(q+=this._input.readUntilAfter(this._until_pattern)),q},V.prototype.__set_templated_pattern=function(){var q=[];this._disabled.php||q.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||q.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||q.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||q.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(q.push(this.__patterns.django._starting_pattern.source),q.push(this.__patterns.django_value._starting_pattern.source),q.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||q.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&q.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+q.join("|")+")")},V.prototype._read_template=function(){var q="",le=this._input.peek();if(le==="<"){var F=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&F==="?"&&(q=q||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&F==="%"&&(q=q||this.__patterns.erb.read())}else le==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(q=q||this.__patterns.handlebars_comment.read(),q=q||this.__patterns.handlebars_unescaped.read(),q=q||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(q=q||this.__patterns.django_value.read()),this._excluded.django||(q=q||this.__patterns.django_comment.read(),q=q||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(q=q||this.__patterns.smarty_comment.read(),q=q||this.__patterns.smarty_literal.read(),q=q||this.__patterns.smarty.read()));return q},A.exports.TemplatablePattern=V},,,,function(A,p,E){var b=E(19).Beautifier,L=E(20).Options;function V(q,le,F,H){var R=new b(q,le,F,H);return R.beautify()}A.exports=V,A.exports.defaultOptions=function(){return new L}},function(A,p,E){var b=E(20).Options,L=E(2).Output,V=E(21).Tokenizer,q=E(21).TOKEN,le=/\r\n|[\r\n]/,F=/\r\n|[\r\n]/g,H=function(U,C){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=U.max_preserve_newlines,this.preserve_newlines=U.preserve_newlines,this._output=new L(U,C)};H.prototype.current_line_has_match=function(U){return this._output.current_line.has_match(U)},H.prototype.set_space_before_token=function(U,C){this._output.space_before_token=U,this._output.non_breaking_space=C},H.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},H.prototype.add_raw_token=function(U){this._output.add_raw_token(U)},H.prototype.print_preserved_newlines=function(U){var C=0;U.type!==q.TEXT&&U.previous.type!==q.TEXT&&(C=U.newlines?1:0),this.preserve_newlines&&(C=U.newlines<this.max_preserve_newlines+1?U.newlines:this.max_preserve_newlines+1);for(var P=0;P<C;P++)this.print_newline(P>0);return C!==0},H.prototype.traverse_whitespace=function(U){return U.whitespace_before||U.newlines?(this.print_preserved_newlines(U)||(this._output.space_before_token=!0),!0):!1},H.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},H.prototype.print_newline=function(U){this._output.add_new_line(U)},H.prototype.print_token=function(U){U.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(U.text))},H.prototype.indent=function(){this.indent_level++},H.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},H.prototype.get_full_indent=function(U){return U=this.indent_level+(U||0),U<1?"":this._output.get_indent_string(U)};var R=function(U){for(var C=null,P=U.next;P.type!==q.EOF&&U.closed!==P;){if(P.type===q.ATTRIBUTE&&P.text==="type"){P.next&&P.next.type===q.EQUALS&&P.next.next&&P.next.next.type===q.VALUE&&(C=P.next.next.text);break}P=P.next}return C},w=function(U,C){var P=null,G=null;return C.closed?(U==="script"?P="text/javascript":U==="style"&&(P="text/css"),P=R(C)||P,P.search("text/css")>-1?G="css":P.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?G="javascript":P.search(/(text|application|dojo)\/(x-)?(html)/)>-1?G="html":P.search(/test\/null/)>-1&&(G="null"),G):null};function Q(U,C){return C.indexOf(U)!==-1}function re(U,C,P){this.parent=U||null,this.tag=C?C.tag_name:"",this.indent_level=P||0,this.parser_token=C||null}function $(U){this._printer=U,this._current_frame=null}$.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},$.prototype.record_tag=function(U){var C=new re(this._current_frame,U,this._printer.indent_level);this._current_frame=C},$.prototype._try_pop_frame=function(U){var C=null;return U&&(C=U.parser_token,this._printer.indent_level=U.indent_level,this._current_frame=U.parent),C},$.prototype._get_frame=function(U,C){for(var P=this._current_frame;P&&U.indexOf(P.tag)===-1;){if(C&&C.indexOf(P.tag)!==-1){P=null;break}P=P.parent}return P},$.prototype.try_pop=function(U,C){var P=this._get_frame([U],C);return this._try_pop_frame(P)},$.prototype.indent_to_tag=function(U){var C=this._get_frame(U);C&&(this._printer.indent_level=C.indent_level)};function oe(U,C,P,G){this._source_text=U||"",C=C||{},this._js_beautify=P,this._css_beautify=G,this._tag_stack=null;var ie=new b(C,"html");this._options=ie,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"}oe.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var U=this._source_text,C=this._options.eol;this._options.eol==="auto"&&(C=`
|
|
`,U&&le.test(U)&&(C=U.match(le)[0])),U=U.replace(F,`
|
|
`);var P=U.match(/^[\t ]*/)[0],G={text:"",type:""},ie=new ve(this._options),X=new H(this._options,P),y=new V(U,this._options).tokenize();this._tag_stack=new $(X);for(var v=null,O=y.next();O.type!==q.EOF;)O.type===q.TAG_OPEN||O.type===q.COMMENT?(v=this._handle_tag_open(X,O,ie,G,y),ie=v):O.type===q.ATTRIBUTE||O.type===q.EQUALS||O.type===q.VALUE||O.type===q.TEXT&&!ie.tag_complete?v=this._handle_inside_tag(X,O,ie,G):O.type===q.TAG_CLOSE?v=this._handle_tag_close(X,O,ie):O.type===q.TEXT?v=this._handle_text(X,O,ie):O.type===q.CONTROL_FLOW_OPEN?v=this._handle_control_flow_open(X,O):O.type===q.CONTROL_FLOW_CLOSE?v=this._handle_control_flow_close(X,O):X.add_raw_token(O),G=v,O=y.next();var me=X._output.get_code(C);return me},oe.prototype._handle_control_flow_open=function(U,C){var P={text:C.text,type:C.type};return U.set_space_before_token(C.newlines||C.whitespace_before!=="",!0),C.newlines?U.print_preserved_newlines(C):U.set_space_before_token(C.newlines||C.whitespace_before!=="",!0),U.print_token(C),U.indent(),P},oe.prototype._handle_control_flow_close=function(U,C){var P={text:C.text,type:C.type};return U.deindent(),C.newlines?U.print_preserved_newlines(C):U.set_space_before_token(C.newlines||C.whitespace_before!=="",!0),U.print_token(C),P},oe.prototype._handle_tag_close=function(U,C,P){var G={text:C.text,type:C.type};return U.alignment_size=0,P.tag_complete=!0,U.set_space_before_token(C.newlines||C.whitespace_before!=="",!0),P.is_unformatted?U.add_raw_token(C):(P.tag_start_char==="<"&&(U.set_space_before_token(C.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&P.has_wrapped_attrs&&U.print_newline(!1)),U.print_token(C)),P.indent_content&&!(P.is_unformatted||P.is_content_unformatted)&&(U.indent(),P.indent_content=!1),!P.is_inline_element&&!(P.is_unformatted||P.is_content_unformatted)&&U.set_wrap_point(),G},oe.prototype._handle_inside_tag=function(U,C,P,G){var ie=P.has_wrapped_attrs,X={text:C.text,type:C.type};return U.set_space_before_token(C.newlines||C.whitespace_before!=="",!0),P.is_unformatted?U.add_raw_token(C):P.tag_start_char==="{"&&C.type===q.TEXT?U.print_preserved_newlines(C)?(C.newlines=0,U.add_raw_token(C)):U.print_token(C):(C.type===q.ATTRIBUTE?U.set_space_before_token(!0):(C.type===q.EQUALS||C.type===q.VALUE&&C.previous.type===q.EQUALS)&&U.set_space_before_token(!1),C.type===q.ATTRIBUTE&&P.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(U.traverse_whitespace(C),ie=ie||C.newlines!==0),this._is_wrap_attributes_force&&P.attr_count>=this._options.wrap_attributes_min_attrs&&(G.type!==q.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(U.print_newline(!1),ie=!0)),U.print_token(C),ie=ie||U.previous_token_wrapped(),P.has_wrapped_attrs=ie),X},oe.prototype._handle_text=function(U,C,P){var G={text:C.text,type:"TK_CONTENT"};return P.custom_beautifier_name?this._print_custom_beatifier_text(U,C,P):P.is_unformatted||P.is_content_unformatted?U.add_raw_token(C):(U.traverse_whitespace(C),U.print_token(C)),G},oe.prototype._print_custom_beatifier_text=function(U,C,P){var G=this;if(C.text!==""){var ie=C.text,X,y=1,v="",O="";P.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?X=this._js_beautify:P.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?X=this._css_beautify:P.custom_beautifier_name==="html"&&(X=function(Vt,Qt){var Ve=new oe(Vt,Qt,G._js_beautify,G._css_beautify);return Ve.beautify()}),this._options.indent_scripts==="keep"?y=0:this._options.indent_scripts==="separate"&&(y=-U.indent_level);var me=U.get_full_indent(y);if(ie=ie.replace(/\n[ \t]*$/,""),P.custom_beautifier_name!=="html"&&ie[0]==="<"&&ie.match(/^(<!--|<!\[CDATA\[)/)){var Qe=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(ie);if(!Qe){U.add_raw_token(C);return}v=me+Qe[1]+`
|
|
`,ie=Qe[4],Qe[5]&&(O=me+Qe[5]),ie=ie.replace(/\n[ \t]*$/,""),(Qe[2]||Qe[3].indexOf(`
|
|
`)!==-1)&&(Qe=Qe[3].match(/[ \t]+$/),Qe&&(C.whitespace_before=Qe[0]))}if(ie)if(X){var rt=function(){this.eol=`
|
|
`};rt.prototype=this._options.raw_options;var Ct=new rt;ie=X(me+ie,Ct)}else{var Rt=C.whitespace_before;Rt&&(ie=ie.replace(new RegExp(`
|
|
(`+Rt+")?","g"),`
|
|
`)),ie=me+ie.replace(/\n/g,`
|
|
`+me)}v&&(ie?ie=v+ie+`
|
|
`+O:ie=v+O),U.print_newline(!1),ie&&(C.text=ie,C.whitespace_before="",C.newlines=0,U.add_raw_token(C),U.print_newline(!0))}},oe.prototype._handle_tag_open=function(U,C,P,G,ie){var X=this._get_tag_open_token(C);if((P.is_unformatted||P.is_content_unformatted)&&!P.is_empty_element&&C.type===q.TAG_OPEN&&!X.is_start_tag?(U.add_raw_token(C),X.start_tag_token=this._tag_stack.try_pop(X.tag_name)):(U.traverse_whitespace(C),this._set_tag_position(U,C,X,P,G),X.is_inline_element||U.set_wrap_point(),U.print_token(C)),X.is_start_tag&&this._is_wrap_attributes_force){var y=0,v;do v=ie.peek(y),v.type===q.ATTRIBUTE&&(X.attr_count+=1),y+=1;while(v.type!==q.EOF&&v.type!==q.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(X.alignment_size=C.text.length+1),!X.tag_complete&&!X.is_unformatted&&(U.alignment_size=X.alignment_size),X};var ve=function(U,C,P){if(this.parent=C||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="",!P)this.tag_complete=!0;else{var G;this.tag_start_char=P.text[0],this.text=P.text,this.tag_start_char==="<"?(G=P.text.match(/^<([^\s>]*)/),this.tag_check=G?G[1]:""):(G=P.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=G?G[1]:"",(P.text.startsWith("{{#>")||P.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&P.next!==null?this.tag_check=P.next.text.split(" ")[0]:this.tag_check=P.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),P.type===q.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||P.closed&&P.closed.text==="/>";var ie=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(ie=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!U.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(ie)))}};oe.prototype._get_tag_open_token=function(U){var C=new ve(this._options,this._tag_stack.get_parser_token(),U);return C.alignment_size=this._options.wrap_attributes_indent_size,C.is_end_tag=C.is_end_tag||Q(C.tag_check,this._options.void_elements),C.is_empty_element=C.tag_complete||C.is_start_tag&&C.is_end_tag,C.is_unformatted=!C.tag_complete&&Q(C.tag_check,this._options.unformatted),C.is_content_unformatted=!C.is_empty_element&&Q(C.tag_check,this._options.content_unformatted),C.is_inline_element=Q(C.tag_name,this._options.inline)||this._options.inline_custom_elements&&C.tag_name.includes("-")||C.tag_start_char==="{",C},oe.prototype._set_tag_position=function(U,C,P,G,ie){if(P.is_empty_element||(P.is_end_tag?P.start_tag_token=this._tag_stack.try_pop(P.tag_name):(this._do_optional_end_element(P)&&(P.is_inline_element||U.print_newline(!1)),this._tag_stack.record_tag(P),(P.tag_name==="script"||P.tag_name==="style")&&!(P.is_unformatted||P.is_content_unformatted)&&(P.custom_beautifier_name=w(P.tag_check,C)))),Q(P.tag_check,this._options.extra_liners)&&(U.print_newline(!1),U._output.just_added_blankline()||U.print_newline(!0)),P.is_empty_element){if(P.tag_start_char==="{"&&P.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),P.indent_content=!0;var X=U.current_line_has_match(/{{#if/);X||U.print_newline(!1)}P.tag_name==="!--"&&ie.type===q.TAG_CLOSE&&G.is_end_tag&&P.text.indexOf(`
|
|
`)===-1||(P.is_inline_element||P.is_unformatted||U.print_newline(!1),this._calcluate_parent_multiline(U,P))}else if(P.is_end_tag){var y=!1;y=P.start_tag_token&&P.start_tag_token.multiline_content,y=y||!P.is_inline_element&&!(G.is_inline_element||G.is_unformatted)&&!(ie.type===q.TAG_CLOSE&&P.start_tag_token===G)&&ie.type!=="TK_CONTENT",(P.is_content_unformatted||P.is_unformatted)&&(y=!1),y&&U.print_newline(!1)}else P.indent_content=!P.custom_beautifier_name,P.tag_start_char==="<"&&(P.tag_name==="html"?P.indent_content=this._options.indent_inner_html:P.tag_name==="head"?P.indent_content=this._options.indent_head_inner_html:P.tag_name==="body"&&(P.indent_content=this._options.indent_body_inner_html)),!(P.is_inline_element||P.is_unformatted)&&(ie.type!=="TK_CONTENT"||P.is_content_unformatted)&&U.print_newline(!1),this._calcluate_parent_multiline(U,P)},oe.prototype._calcluate_parent_multiline=function(U,C){C.parent&&U._output.just_added_newline()&&!((C.is_inline_element||C.is_unformatted)&&C.parent.is_inline_element)&&(C.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"],ot=["a","audio","del","ins","map","noscript","video"];oe.prototype._do_optional_end_element=function(U){var C=null;if(!(U.is_empty_element||!U.is_start_tag||!U.parent)){if(U.tag_name==="body")C=C||this._tag_stack.try_pop("head");else if(U.tag_name==="li")C=C||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(U.tag_name==="dd"||U.tag_name==="dt")C=C||this._tag_stack.try_pop("dt",["dl"]),C=C||this._tag_stack.try_pop("dd",["dl"]);else if(U.parent.tag_name==="p"&&he.indexOf(U.tag_name)!==-1){var P=U.parent.parent;(!P||ot.indexOf(P.tag_name)===-1)&&(C=C||this._tag_stack.try_pop("p"))}else U.tag_name==="rp"||U.tag_name==="rt"?(C=C||this._tag_stack.try_pop("rt",["ruby","rtc"]),C=C||this._tag_stack.try_pop("rp",["ruby","rtc"])):U.tag_name==="optgroup"?C=C||this._tag_stack.try_pop("optgroup",["select"]):U.tag_name==="option"?C=C||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):U.tag_name==="colgroup"?C=C||this._tag_stack.try_pop("caption",["table"]):U.tag_name==="thead"?(C=C||this._tag_stack.try_pop("caption",["table"]),C=C||this._tag_stack.try_pop("colgroup",["table"])):U.tag_name==="tbody"||U.tag_name==="tfoot"?(C=C||this._tag_stack.try_pop("caption",["table"]),C=C||this._tag_stack.try_pop("colgroup",["table"]),C=C||this._tag_stack.try_pop("thead",["table"]),C=C||this._tag_stack.try_pop("tbody",["table"])):U.tag_name==="tr"?(C=C||this._tag_stack.try_pop("caption",["table"]),C=C||this._tag_stack.try_pop("colgroup",["table"]),C=C||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(U.tag_name==="th"||U.tag_name==="td")&&(C=C||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),C=C||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return U.parent=this._tag_stack.get_parser_token(),C}},A.exports.Beautifier=oe},function(A,p,E){var b=E(6).Options;function L(V){b.call(this,V,"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 b,A.exports.Options=L},function(A,p,E){var b=E(9).Tokenizer,L=E(9).TOKEN,V=E(13).Directives,q=E(14).TemplatablePattern,le=E(12).Pattern,F={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},H=new V(/<\!--/,/-->/),R=function(w,Q){b.call(this,w,Q),this._current_tag_name="";var re=new q(this._input).read_options(this._options),$=new le(this._input);if(this.__patterns={word:re.until(/[\n\r\t <]/),word_control_flow_close_excluded:re.until(/[\n\r\t <}]/),single_quote:re.until_after(/'/),double_quote:re.until_after(/"/),attribute:re.until(/[\n\r\t =>]|\/>/),element_name:re.until(/[\n\r\t >\/]/),angular_control_flow_start:$.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:$.starting_with(/{{!--/).until_after(/--}}/),handlebars:$.starting_with(/{{/).until_after(/}}/),handlebars_open:$.until(/[\n\r\t }]/),handlebars_raw_close:$.until(/}}/),comment:$.starting_with(/<!--/).until_after(/-->/),cdata:$.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:$.starting_with(/<!\[/).until_after(/]>/),processing:$.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 oe=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=$.matching(oe).until_after(oe)}};R.prototype=new b,R.prototype._is_comment=function(w){return!1},R.prototype._is_opening=function(w){return w.type===F.TAG_OPEN||w.type===F.CONTROL_FLOW_OPEN},R.prototype._is_closing=function(w,Q){return w.type===F.TAG_CLOSE&&Q&&((w.text===">"||w.text==="/>")&&Q.text[0]==="<"||w.text==="}}"&&Q.text[0]==="{"&&Q.text[1]==="{")||w.type===F.CONTROL_FLOW_CLOSE&&w.text==="}"&&Q.text.endsWith("{")},R.prototype._reset=function(){this._current_tag_name=""},R.prototype._get_next_token=function(w,Q){var re=null;this._readWhitespace();var $=this._input.peek();return $===null?this._create_token(F.EOF,""):(re=re||this._read_open_handlebars($,Q),re=re||this._read_attribute($,w,Q),re=re||this._read_close($,Q),re=re||this._read_script_and_style($,w),re=re||this._read_control_flows($,Q),re=re||this._read_raw_content($,w,Q),re=re||this._read_content_word($,Q),re=re||this._read_comment_or_cdata($),re=re||this._read_processing($),re=re||this._read_open($,Q),re=re||this._create_token(F.UNKNOWN,this._input.next()),re)},R.prototype._read_comment_or_cdata=function(w){var Q=null,re=null,$=null;if(w==="<"){var oe=this._input.peek(1);oe==="!"&&(re=this.__patterns.comment.read(),re?($=H.get_directives(re),$&&$.ignore==="start"&&(re+=H.readIgnored(this._input))):re=this.__patterns.cdata.read()),re&&(Q=this._create_token(F.COMMENT,re),Q.directives=$)}return Q},R.prototype._read_processing=function(w){var Q=null,re=null,$=null;if(w==="<"){var oe=this._input.peek(1);(oe==="!"||oe==="?")&&(re=this.__patterns.conditional_comment.read(),re=re||this.__patterns.processing.read()),re&&(Q=this._create_token(F.COMMENT,re),Q.directives=$)}return Q},R.prototype._read_open=function(w,Q){var re=null,$=null;return(!Q||Q.type===F.CONTROL_FLOW_OPEN)&&w==="<"&&(re=this._input.next(),this._input.peek()==="/"&&(re+=this._input.next()),re+=this.__patterns.element_name.read(),$=this._create_token(F.TAG_OPEN,re)),$},R.prototype._read_open_handlebars=function(w,Q){var re=null,$=null;return(!Q||Q.type===F.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&w==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(re=this.__patterns.handlebars_comment.read(),re=re||this.__patterns.handlebars.read(),$=this._create_token(F.COMMENT,re)):(re=this.__patterns.handlebars_open.read(),$=this._create_token(F.TAG_OPEN,re))),$},R.prototype._read_control_flows=function(w,Q){var re="",$=null;if(!this._options.templating.includes("angular"))return $;if(w==="@"){if(re=this.__patterns.angular_control_flow_start.read(),re==="")return $;for(var oe=re.endsWith("(")?1:0,ve=0;!(re.endsWith("{")&&oe===ve);){var he=this._input.next();if(he===null)break;he==="("?oe++:he===")"&&ve++,re+=he}$=this._create_token(F.CONTROL_FLOW_OPEN,re)}else w==="}"&&Q&&Q.type===F.CONTROL_FLOW_OPEN&&(re=this._input.next(),$=this._create_token(F.CONTROL_FLOW_CLOSE,re));return $},R.prototype._read_close=function(w,Q){var re=null,$=null;return Q&&Q.type===F.TAG_OPEN&&(Q.text[0]==="<"&&(w===">"||w==="/"&&this._input.peek(1)===">")?(re=this._input.next(),w==="/"&&(re+=this._input.next()),$=this._create_token(F.TAG_CLOSE,re)):Q.text[0]==="{"&&w==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),$=this._create_token(F.TAG_CLOSE,"}}"))),$},R.prototype._read_attribute=function(w,Q,re){var $=null,oe="";if(re&&re.text[0]==="<")if(w==="=")$=this._create_token(F.EQUALS,this._input.next());else if(w==='"'||w==="'"){var ve=this._input.next();w==='"'?ve+=this.__patterns.double_quote.read():ve+=this.__patterns.single_quote.read(),$=this._create_token(F.VALUE,ve)}else oe=this.__patterns.attribute.read(),oe&&(Q.type===F.EQUALS?$=this._create_token(F.VALUE,oe):$=this._create_token(F.ATTRIBUTE,oe));return $},R.prototype._is_content_unformatted=function(w){return this._options.void_elements.indexOf(w)===-1&&(this._options.content_unformatted.indexOf(w)!==-1||this._options.unformatted.indexOf(w)!==-1)},R.prototype._read_raw_content=function(w,Q,re){var $="";if(re&&re.text[0]==="{")$=this.__patterns.handlebars_raw_close.read();else if(Q.type===F.TAG_CLOSE&&Q.opened.text[0]==="<"&&Q.text[0]!=="/"){var oe=Q.opened.text.substr(1).toLowerCase();this._is_content_unformatted(oe)&&($=this._input.readUntil(new RegExp("</"+oe+"[\\n\\r\\t ]*?>","ig")))}return $?this._create_token(F.TEXT,$):null},R.prototype._read_script_and_style=function(w,Q){if(Q.type===F.TAG_CLOSE&&Q.opened.text[0]==="<"&&Q.text[0]!=="/"){var re=Q.opened.text.substr(1).toLowerCase();if(re==="script"||re==="style"){var $=this._read_comment_or_cdata(w);if($)return $.type=F.TEXT,$;var oe=this._input.readUntil(new RegExp("</"+re+"[\\n\\r\\t ]*?>","ig"));if(oe)return this._create_token(F.TEXT,oe)}}return null},R.prototype._read_content_word=function(w,Q){var re="";return this._options.unformatted_content_delimiter&&w===this._options.unformatted_content_delimiter[0]&&(re=this.__patterns.unformatted_content_delimiter.read()),re||(re=Q&&Q.type===F.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),re?this._create_token(F.TEXT,re):null},A.exports.Tokenizer=R,A.exports.TOKEN=F}],te={};function o(A){var p=te[A];if(p!==void 0)return p.exports;var E=te[A]={exports:{}};return _e[A](E,E.exports,o),E.exports}var g=o(18);z=g})();var ae=z;if(1)h=[_,_(58553),_(87804)],ue=function(_e){var te=_(58553),o=_(87804);return{html_beautify:function(g,A){return ae(g,A,te.js_beautify,o.css_beautify)}}}.apply(Xt,h),ue!==void 0&&(Pn.exports=ue);else var B,d})()},58553:function(Pn,Xt){var _,h;(function(){var ue;(function(){"use strict";var ae=[function(te,o,g){var A=g(1).Beautifier,p=g(5).Options;function E(b,L){var V=new A(b,L);return V.beautify()}te.exports=E,te.exports.defaultOptions=function(){return new p}},function(te,o,g){var A=g(2).Output,p=g(3).Token,E=g(4),b=g(5).Options,L=g(7).Tokenizer,V=g(7).line_starters,q=g(7).positionable_operators,le=g(7).TOKEN;function F(v,O){return O.indexOf(v)!==-1}function H(v){return v.replace(/^\s+/g,"")}function R(v){for(var O={},me=0;me<v.length;me++)O[v[me].replace(/-/g,"_")]=v[me];return O}function w(v,O){return v&&v.type===le.RESERVED&&v.text===O}function Q(v,O){return v&&v.type===le.RESERVED&&F(v.text,O)}var re=["case","return","do","if","throw","else","await","break","continue","async"],$=["before-newline","after-newline","preserve-newline"],oe=R($),ve=[oe.before_newline,oe.preserve_newline],he={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function ot(v,O){O.multiline_frame||O.mode===he.ForInitializer||O.mode===he.Conditional||v.remove_indent(O.start_line_index)}function U(v){v=v.replace(E.allLineBreaks,`
|
|
`);for(var O=[],me=v.indexOf(`
|
|
`);me!==-1;)O.push(v.substring(0,me)),v=v.substring(me+1),me=v.indexOf(`
|
|
`);return v.length&&O.push(v),O}function C(v){return v===he.ArrayLiteral}function P(v){return F(v,[he.Expression,he.ForInitializer,he.Conditional])}function G(v,O){for(var me=0;me<v.length;me++){var Qe=v[me].trim();if(Qe.charAt(0)!==O)return!1}return!0}function ie(v,O){for(var me=0,Qe=v.length,rt;me<Qe;me++)if(rt=v[me],rt&&rt.indexOf(O)!==0)return!1;return!0}function X(v,O){O=O||{},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 b(O)}X.prototype.create_flags=function(v,O){var me=0;v&&(me=v.indentation_level,!this._output.just_added_newline()&&v.line_indent_level>me&&(me=v.line_indent_level));var Qe={mode:O,parent:v,last_token:v?v.last_token:new p(le.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:me,alignment:0,line_indent_level:v?v.line_indent_level:me,start_line_index:this._output.get_line_number(),ternary_depth:0};return Qe},X.prototype._reset=function(v){var O=v.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new A(this._options,O),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(he.BlockStatement);var me=new L(v,this._options);return this._tokens=me.tokenize(),v},X.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var v,O=this._reset(this._source_text),me=this._options.eol;this._options.eol==="auto"&&(me=`
|
|
`,O&&E.lineBreak.test(O||"")&&(me=O.match(E.lineBreak)[0]));for(var Qe=this._tokens.next();Qe;)this.handle_token(Qe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Qe,Qe=this._tokens.next();return v=this._output.get_code(me),v},X.prototype.handle_token=function(v,O){v.type===le.START_EXPR?this.handle_start_expr(v):v.type===le.END_EXPR?this.handle_end_expr(v):v.type===le.START_BLOCK?this.handle_start_block(v):v.type===le.END_BLOCK?this.handle_end_block(v):v.type===le.WORD?this.handle_word(v):v.type===le.RESERVED?this.handle_word(v):v.type===le.SEMICOLON?this.handle_semicolon(v):v.type===le.STRING?this.handle_string(v):v.type===le.EQUALS?this.handle_equals(v):v.type===le.OPERATOR?this.handle_operator(v):v.type===le.COMMA?this.handle_comma(v):v.type===le.BLOCK_COMMENT?this.handle_block_comment(v,O):v.type===le.COMMENT?this.handle_comment(v,O):v.type===le.DOT?this.handle_dot(v):v.type===le.EOF?this.handle_eof(v):v.type===le.UNKNOWN?this.handle_unknown(v,O):this.handle_unknown(v,O)},X.prototype.handle_whitespace_and_comments=function(v,O){var me=v.newlines,Qe=this._options.keep_array_indentation&&C(this._flags.mode);if(v.comments_before)for(var rt=v.comments_before.next();rt;)this.handle_whitespace_and_comments(rt,O),this.handle_token(rt,O),rt=v.comments_before.next();if(Qe)for(var Ct=0;Ct<me;Ct+=1)this.print_newline(Ct>0,O);else if(this._options.max_preserve_newlines&&me>this._options.max_preserve_newlines&&(me=this._options.max_preserve_newlines),this._options.preserve_newlines&&me>1){this.print_newline(!1,O);for(var Rt=1;Rt<me;Rt+=1)this.print_newline(!0,O)}};var y=["async","break","continue","return","throw","yield"];X.prototype.allow_wrap_or_preserved_newline=function(v,O){if(O=O===void 0?!1:O,!this._output.just_added_newline()){var me=this._options.preserve_newlines&&v.newlines||O,Qe=F(this._flags.last_token.text,q)||F(v.text,q);if(Qe){var rt=F(this._flags.last_token.text,q)&&F(this._options.operator_position,ve)||F(v.text,q);me=me&&rt}if(me)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(Q(this._flags.last_token,y))return;this._output.set_wrap_point()}}},X.prototype.print_newline=function(v,O){if(!O&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==le.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var me=this._tokens.peek();this._flags.mode===he.Statement&&!(this._flags.if_block&&w(me,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(v)&&(this._flags.multiline_frame=!0)},X.prototype.print_token_line_indentation=function(v){this._output.just_added_newline()&&(this._options.keep_array_indentation&&v.newlines&&(v.text==="["||C(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))},X.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===le.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var O=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(O),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)},X.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},X.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))},X.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)},X.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&&ot(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},X.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||Q(this._flags.last_token,["get","set"]))},X.prototype.start_of_statement=function(v){var O=!1;return O=O||Q(this._flags.last_token,["var","let","const"])&&v.type===le.WORD,O=O||w(this._flags.last_token,"do"),O=O||!(this._flags.parent.mode===he.ObjectLiteral&&this._flags.mode===he.Statement)&&Q(this._flags.last_token,y)&&!v.newlines,O=O||w(this._flags.last_token,"else")&&!(w(v,"if")&&!v.comments_before),O=O||this._flags.last_token.type===le.END_EXPR&&(this._previous_flags.mode===he.ForInitializer||this._previous_flags.mode===he.Conditional),O=O||this._flags.last_token.type===le.WORD&&this._flags.mode===he.BlockStatement&&!this._flags.in_case&&!(v.text==="--"||v.text==="++")&&this._last_last_text!=="function"&&v.type!==le.WORD&&v.type!==le.RESERVED,O=O||this._flags.mode===he.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Q(this._flags.last_token,["get","set"])),O?(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,Q(v,["do","for","if","while"])),!0):!1},X.prototype.handle_start_expr=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v);var O=he.Expression;if(v.text==="["){if(this._flags.last_token.type===le.WORD||this._flags.last_token.text===")"){Q(this._flags.last_token,V)&&(this._output.space_before_token=!0),this.print_token(v),this.set_mode(O),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}O=he.ArrayLiteral,C(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()),F(this._flags.last_token.type,[le.START_EXPR,le.END_EXPR,le.WORD,le.OPERATOR,le.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===le.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,O=he.ForInitializer):F(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,O=he.Conditional):F(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:(F(this._flags.last_token.text,V)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===le.EQUALS||this._flags.last_token.type===le.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v);else if(this._flags.last_token.type===le.WORD){this._output.space_before_token=!1;var me=this._tokens.peek(-3);if(this._options.space_after_named_function&&me){var Qe=this._tokens.peek(-4);Q(me,["async","function"])||me.text==="*"&&Q(Qe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===he.ObjectLiteral?(me.text==="{"||me.text===","||me.text==="*"&&(Qe.text==="{"||Qe.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===le.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(F(this._last_last_text,["function","yield"])||this._flags.mode===he.ObjectLiteral&&F(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===le.START_BLOCK?this.print_newline():(this._flags.last_token.type===le.END_EXPR||this._flags.last_token.type===le.START_EXPR||this._flags.last_token.type===le.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===le.COMMA)&&this.allow_wrap_or_preserved_newline(v,v.newlines),this.print_token(v),this.set_mode(O),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},X.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==="]"&&C(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===le.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(),ot(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)},X.prototype.handle_start_block=function(v){this.handle_whitespace_and_comments(v);var O=this._tokens.peek(),me=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===le.END_EXPR?(this.set_mode(he.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(he.BlockStatement):me&&(F(me.text,[":",","])&&F(O.type,[le.STRING,le.WORD,le.RESERVED])||F(O.text,["get","set","..."])&&F(me.type,[le.WORD,le.RESERVED]))?F(this._last_last_text,["class","interface"])&&!F(me.text,[":",","])?this.set_mode(he.BlockStatement):this.set_mode(he.ObjectLiteral):this._flags.last_token.type===le.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(he.BlockStatement):F(this._flags.last_token.type,[le.EQUALS,le.START_EXPR,le.COMMA,le.OPERATOR])||Q(this._flags.last_token,["return","throw","import","default"])?this.set_mode(he.ObjectLiteral):this.set_mode(he.BlockStatement),this._flags.last_token&&Q(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Qe=!O.comments_before&&O.text==="}",rt=Qe&&this._flags.last_word==="function"&&this._flags.last_token.type===le.END_EXPR;if(this._options.brace_preserve_inline){var Ct=0,Rt=null;this._flags.inline_frame=!0;do if(Ct+=1,Rt=this._tokens.peek(Ct-1),Rt.newlines){this._flags.inline_frame=!1;break}while(Rt.type!==le.EOF&&!(Rt.type===le.END_BLOCK&&Rt.opened===v))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&v.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==le.OPERATOR&&(rt||this._flags.last_token.type===le.EQUALS||Q(this._flags.last_token,re)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(C(this._previous_flags.mode)&&(this._flags.last_token.type===le.START_EXPR||this._flags.last_token.type===le.COMMA)&&((this._flags.last_token.type===le.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===le.COMMA||this._flags.last_token.type===le.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!==le.OPERATOR&&this._flags.last_token.type!==le.START_EXPR&&(F(this._flags.last_token.type,[le.START_BLOCK,le.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(v),this.indent(),!Qe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},X.prototype.handle_end_block=function(v){for(this.handle_whitespace_and_comments(v);this._flags.mode===he.Statement;)this.restore_mode();var O=this._flags.last_token.type===le.START_BLOCK;this._flags.inline_frame&&!O?this._output.space_before_token=!0:this._options.brace_style==="expand"?O||this.print_newline():O||(C(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)},X.prototype.handle_word=function(v){if(v.type===le.RESERVED){if(F(v.text,["set","get"])&&this._flags.mode!==he.ObjectLiteral)v.type=le.WORD;else if(v.text==="import"&&F(this._tokens.peek().text,["(","."]))v.type=le.WORD;else if(F(v.text,["as","from"])&&!this._flags.import_block)v.type=le.WORD;else if(this._flags.mode===he.ObjectLiteral){var O=this._tokens.peek();O.text===":"&&(v.type=le.WORD)}}if(this.start_of_statement(v)?Q(this._flags.last_token,["var","let","const"])&&v.type===le.WORD&&(this._flags.declaration_statement=!0):v.newlines&&!P(this._flags.mode)&&(this._flags.last_token.type!==le.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==le.EQUALS&&(this._options.preserve_newlines||!Q(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(w(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&&w(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&&Q(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===le.COMMA||this._flags.last_token.type===le.START_EXPR||this._flags.last_token.type===le.EQUALS||this._flags.last_token.type===le.OPERATOR)&&!this.start_of_object_property()&&!(F(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===he.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(v),w(v,"function")){(F(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(F(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===le.OPERATOR))&&!this._output.just_added_blankline()&&!v.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===le.RESERVED||this._flags.last_token.type===le.WORD?Q(this._flags.last_token,["get","set","new","export"])||Q(this._flags.last_token,y)?this._output.space_before_token=!0:w(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===le.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(P(this._flags.mode)||C(this._flags.mode))||this.print_newline(),this.print_token(v),this._flags.last_word=v.text;return}var me="NONE";if(this._flags.last_token.type===le.END_BLOCK?this._previous_flags.inline_frame?me="SPACE":Q(v,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&v.newlines?me="NEWLINE":(me="SPACE",this._output.space_before_token=!0):me="NEWLINE":this._flags.last_token.type===le.SEMICOLON&&this._flags.mode===he.BlockStatement?me="NEWLINE":this._flags.last_token.type===le.SEMICOLON&&P(this._flags.mode)?me="SPACE":this._flags.last_token.type===le.STRING?me="NEWLINE":this._flags.last_token.type===le.RESERVED||this._flags.last_token.type===le.WORD||this._flags.last_token.text==="*"&&(F(this._last_last_text,["function","yield"])||this._flags.mode===he.ObjectLiteral&&F(this._last_last_text,["{",","]))?me="SPACE":this._flags.last_token.type===le.START_BLOCK?this._flags.inline_frame?me="SPACE":me="NEWLINE":this._flags.last_token.type===le.END_EXPR&&(this._output.space_before_token=!0,me="NEWLINE"),Q(v,V)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?me="SPACE":me="NEWLINE"),Q(v,["else","catch","finally"]))if((!(this._flags.last_token.type===le.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 Qe=this._output.current_line;Qe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else me==="NEWLINE"?Q(this._flags.last_token,re)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&Q(v,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==le.END_EXPR?(this._flags.last_token.type!==le.START_EXPR||!Q(v,["var","let","const"]))&&this._flags.last_token.text!==":"&&(w(v,"if")&&w(v.previous,"else")?this._output.space_before_token=!0:this.print_newline()):Q(v,V)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&C(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():me==="SPACE"&&(this._output.space_before_token=!0);v.previous&&(v.previous.type===le.WORD||v.previous.type===le.RESERVED)&&(this._output.space_before_token=!0),this.print_token(v),this._flags.last_word=v.text,v.type===le.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&&w(v,"from")&&(this._flags.import_block=!1))},X.prototype.handle_semicolon=function(v){this.start_of_statement(v)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(v);for(var O=this._tokens.peek();this._flags.mode===he.Statement&&!(this._flags.if_block&&w(O,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(v)},X.prototype.handle_string=function(v){v.text.startsWith("`")&&v.newlines===0&&v.whitespace_before===""&&(v.previous.text===")"||this._flags.last_token.type===le.WORD)||(this.start_of_statement(v)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(v),this._flags.last_token.type===le.RESERVED||this._flags.last_token.type===le.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===le.COMMA||this._flags.last_token.type===le.START_EXPR||this._flags.last_token.type===le.EQUALS||this._flags.last_token.type===le.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v):v.text.startsWith("`")&&this._flags.last_token.type===le.END_EXPR&&(v.previous.text==="]"||v.previous.text===")")&&v.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(v)},X.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},X.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?(P(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)},X.prototype.handle_operator=function(v){var O=v.text==="*"&&(Q(this._flags.last_token,["function","yield"])||F(this._flags.last_token.type,[le.START_BLOCK,le.COMMA,le.END_BLOCK,le.SEMICOLON])),me=F(v.text,["-","+"])&&(F(this._flags.last_token.type,[le.START_BLOCK,le.START_EXPR,le.EQUALS,le.OPERATOR])||F(this._flags.last_token.text,V)||this._flags.last_token.text===",");if(!this.start_of_statement(v)){var Qe=!O;this.handle_whitespace_and_comments(v,Qe)}if(v.text==="*"&&this._flags.last_token.type===le.DOT){this.print_token(v);return}if(v.text==="::"){this.print_token(v);return}if(F(v.text,["-","+"])&&this.start_of_object_property()){this.print_token(v);return}if(this._flags.last_token.type===le.OPERATOR&&F(this._options.operator_position,ve)&&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!==le.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 rt=!0,Ct=!0,Rt=!1;if(v.text===":"?this._flags.ternary_depth===0?rt=!1:(this._flags.ternary_depth-=1,Rt=!0):v.text==="?"&&(this._flags.ternary_depth+=1),!me&&!O&&this._options.preserve_newlines&&F(v.text,q)){var Vt=v.text===":",Qt=Vt&&Rt,Ve=Vt&&!Rt;switch(this._options.operator_position){case oe.before_newline:this._output.space_before_token=!Ve,this.print_token(v),(!Vt||Qt)&&this.allow_wrap_or_preserved_newline(v),this._output.space_before_token=!0;return;case oe.after_newline:this._output.space_before_token=!0,!Vt||Qt?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 oe.preserve_newline:Ve||this.allow_wrap_or_preserved_newline(v),rt=!(this._output.just_added_newline()||Ve),this._output.space_before_token=rt,this.print_token(v),this._output.space_before_token=!0;return}}if(O){this.allow_wrap_or_preserved_newline(v),rt=!1;var $t=this._tokens.peek();Ct=$t&&F($t.type,[le.WORD,le.RESERVED])}else if(v.text==="...")this.allow_wrap_or_preserved_newline(v),rt=this._flags.last_token.type===le.START_BLOCK,Ct=!1;else if(F(v.text,["--","++","!","~"])||me){if((this._flags.last_token.type===le.COMMA||this._flags.last_token.type===le.START_EXPR)&&this.allow_wrap_or_preserved_newline(v),rt=!1,Ct=!1,v.newlines&&(v.text==="--"||v.text==="++"||v.text==="~")){var It=Q(this._flags.last_token,re)&&v.newlines;It&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(It,!0)}this._flags.last_token.text===";"&&P(this._flags.mode)&&(rt=!0),this._flags.last_token.type===le.RESERVED?rt=!0:this._flags.last_token.type===le.END_EXPR?rt=!(this._flags.last_token.text==="]"&&(v.text==="--"||v.text==="++")):this._flags.last_token.type===le.OPERATOR&&(rt=F(v.text,["--","-","++","+"])&&F(this._flags.last_token.text,["--","-","++","+"]),F(v.text,["+","-"])&&F(this._flags.last_token.text,["--","++"])&&(Ct=!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||rt,this.print_token(v),this._output.space_before_token=Ct},X.prototype.handle_block_comment=function(v,O){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,O),this.print_token(v),v.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!E.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,O)},X.prototype.print_block_commment=function(v,O){var me=U(v.text),Qe,rt=!1,Ct=!1,Rt=v.whitespace_before,Vt=Rt.length;if(this.print_newline(!1,O),this.print_token_line_indentation(v),this._output.add_token(me[0]),this.print_newline(!1,O),me.length>1){for(me=me.slice(1),rt=G(me,"*"),Ct=ie(me,Rt),rt&&(this._flags.alignment=1),Qe=0;Qe<me.length;Qe++)rt?(this.print_token_line_indentation(v),this._output.add_token(H(me[Qe]))):Ct&&me[Qe]?(this.print_token_line_indentation(v),this._output.add_token(me[Qe].substring(Vt))):(this._output.current_line.set_indent(-1),this._output.add_token(me[Qe])),this.print_newline(!1,O);this._flags.alignment=0}},X.prototype.handle_comment=function(v,O){v.newlines?this.print_newline(!1,O):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(v),this.print_newline(!1,O)},X.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),Q(this._flags.last_token,re)?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)},X.prototype.handle_unknown=function(v,O){this.print_token(v),v.text[v.text.length-1]===`
|
|
`&&this.print_newline(!1,O)},X.prototype.handle_eof=function(v){for(;this._flags.mode===he.Statement;)this.restore_mode();this.handle_whitespace_and_comments(v)},te.exports.Beautifier=X},function(te){function o(p){this.__parent=p,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 p=new o(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},o.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},o.prototype.has_match=function(p){for(var E=this.__items.length-1;E>=0;E--)if(this.__items[E].match(p))return!0;return!1},o.prototype.set_indent=function(p,E){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=E||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 p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__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(p){this.__items.push(p);var E=p.lastIndexOf(`
|
|
`);E!==-1?this.__character_count=p.length-E:this.__character_count+=p.length},o.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},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 p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function g(p,E){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),E=E||"",p.indent_level>0&&(E=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=E,this.__base_string_length=E.length}g.prototype.get_indent_size=function(p,E){var b=this.__base_string_length;return E=E||0,p<0&&(b=0),b+=p*this.__indent_size,b+=E,b},g.prototype.get_indent_string=function(p,E){var b=this.__base_string;return E=E||0,p<0&&(p=0,b=""),E+=p*this.__indent_size,this.__ensure_cache(E),b+=this.__cache[E],b},g.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},g.prototype.__add_column=function(){var p=this.__cache.length,E=0,b="";this.__indent_size&&p>=this.__indent_size&&(E=Math.floor(p/this.__indent_size),p-=E*this.__indent_size,b=new Array(E+1).join(this.__indent_string)),p&&(b+=new Array(p+1).join(" ")),this.__cache.push(b)};function A(p,E){this.__indent_cache=new g(p,E),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.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()}A.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},A.prototype.get_line_number=function(){return this.__lines.length},A.prototype.get_indent_string=function(p,E){return this.__indent_cache.get_indent_string(p,E)},A.prototype.get_indent_size=function(p,E){return this.__indent_cache.get_indent_size(p,E)},A.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},A.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},A.prototype.get_code=function(p){this.trim(!0);var E=this.current_line.pop();E&&(E[E.length-1]===`
|
|
`&&(E=E.replace(/\n+$/g,"")),this.current_line.push(E)),this._end_with_newline&&this.__add_outputline();var b=this.__lines.join(`
|
|
`);return p!==`
|
|
`&&(b=b.replace(/[\n]/g,p)),b},A.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},A.prototype.set_indent=function(p,E){return p=p||0,E=E||0,this.next_line.set_indent(p,E),this.__lines.length>1?(this.current_line.set_indent(p,E),!0):(this.current_line.set_indent(),!1)},A.prototype.add_raw_token=function(p){for(var E=0;E<p.newlines;E++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(p.whitespace_before),this.current_line.push(p.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},A.prototype.add_token=function(p){this.__add_space_before_token(),this.current_line.push(p),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},A.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(" "))},A.prototype.remove_indent=function(p){for(var E=this.__lines.length;p<E;)this.__lines[p]._remove_indent(),p++;this.current_line._remove_wrap_indent()},A.prototype.trim=function(p){for(p=p===void 0?!1:p,this.current_line.trim();p&&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},A.prototype.just_added_newline=function(){return this.current_line.is_empty()},A.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},A.prototype.ensure_empty_line_above=function(p,E){for(var b=this.__lines.length-2;b>=0;){var L=this.__lines[b];if(L.is_empty())break;if(L.item(0).indexOf(p)!==0&&L.item(-1)!==E){this.__lines.splice(b+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}b--}},te.exports.Output=A},function(te){function o(g,A,p,E){this.type=g,this.text=A,this.comments_before=null,this.newlines=p||0,this.whitespace_before=E||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}te.exports.Token=o},function(te,o){var g="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",A="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",p="\\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",E="\\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",b="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",L="(?:"+b+"|["+g+p+"])",V="(?:"+b+"|["+A+p+E+"])*";o.identifier=new RegExp(L+V,"g"),o.identifierStart=new RegExp(L),o.identifierMatch=new RegExp("(?:"+b+"|["+A+p+E+"])+");var q=/[\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(te,o,g){var A=g(6).Options,p=["before-newline","after-newline","preserve-newline"];function E(b){A.call(this,b,"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 V=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var q=0;q<V.length;q++)V[q]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=V[q];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",p),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}E.prototype=new A,te.exports.Options=E},function(te){function o(p,E){this.raw_options=g(p,E),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(p,E){var b=this.raw_options[p],L=E||[];return typeof b=="object"?b!==null&&typeof b.concat=="function"&&(L=b.concat()):typeof b=="string"&&(L=b.split(/[^a-zA-Z0-9_\/\-]+/)),L},o.prototype._get_boolean=function(p,E){var b=this.raw_options[p],L=b===void 0?!!E:!!b;return L},o.prototype._get_characters=function(p,E){var b=this.raw_options[p],L=E||"";return typeof b=="string"&&(L=b.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),L},o.prototype._get_number=function(p,E){var b=this.raw_options[p];E=parseInt(E,10),isNaN(E)&&(E=0);var L=parseInt(b,10);return isNaN(L)&&(L=E),L},o.prototype._get_selection=function(p,E,b){var L=this._get_selection_list(p,E,b);if(L.length!==1)throw new Error("Invalid Option Value: The option '"+p+`' can only be one of the following values:
|
|
`+E+`
|
|
You passed in: '`+this.raw_options[p]+"'");return L[0]},o.prototype._get_selection_list=function(p,E,b){if(!E||E.length===0)throw new Error("Selection list cannot be empty.");if(b=b||[E[0]],!this._is_valid_selection(b,E))throw new Error("Invalid Default Value!");var L=this._get_array(p,b);if(!this._is_valid_selection(L,E))throw new Error("Invalid Option Value: The option '"+p+`' can contain only the following values:
|
|
`+E+`
|
|
You passed in: '`+this.raw_options[p]+"'");return L},o.prototype._is_valid_selection=function(p,E){return p.length&&E.length&&!p.some(function(b){return E.indexOf(b)===-1})};function g(p,E){var b={};p=A(p);var L;for(L in p)L!==E&&(b[L]=p[L]);if(E&&p[E])for(L in p[E])b[L]=p[E][L];return b}function A(p){var E={},b;for(b in p){var L=b.replace(/-/g,"_");E[L]=p[b]}return E}te.exports.Options=o,te.exports.normalizeOpts=A,te.exports.mergeOpts=g},function(te,o,g){var A=g(8).InputScanner,p=g(9).Tokenizer,E=g(9).TOKEN,b=g(13).Directives,L=g(4),V=g(12).Pattern,q=g(14).TemplatablePattern;function le(G,ie){return ie.indexOf(G)!==-1}var F={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:E.START,RAW:E.RAW,EOF:E.EOF},H=new b(/\/\*/,/\*\//),R=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,w=/[0-9]/,Q=/[^\d\.]/,re=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),$=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";$=$.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),$="\\?\\.(?!\\d) "+$,$=$.replace(/ /g,"|");var oe=new RegExp($),ve="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),he=ve.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),ot=new RegExp("^(?:"+he.join("|")+")$"),U,C=function(G,ie){p.call(this,G,ie),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var X=new V(this._input),y=new q(this._input).read_options(this._options);this.__patterns={template:y,identifier:y.starting_with(L.identifier).matching(L.identifierMatch),number:X.matching(R),punct:X.matching(oe),comment:X.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:X.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:X.matching(/<!--/),html_comment_end:X.matching(/-->/),include:X.starting_with(/#include/).until_after(L.lineBreak),shebang:X.starting_with(/#!/).until_after(L.lineBreak),xml:X.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:y.until(/['\\\n\r\u2028\u2029]/),double_quote:y.until(/["\\\n\r\u2028\u2029]/),template_text:y.until(/[`\\$]/),template_expression:y.until(/[`}\\]/)}};C.prototype=new p,C.prototype._is_comment=function(G){return G.type===F.COMMENT||G.type===F.BLOCK_COMMENT||G.type===F.UNKNOWN},C.prototype._is_opening=function(G){return G.type===F.START_BLOCK||G.type===F.START_EXPR},C.prototype._is_closing=function(G,ie){return(G.type===F.END_BLOCK||G.type===F.END_EXPR)&&ie&&(G.text==="]"&&ie.text==="["||G.text===")"&&ie.text==="("||G.text==="}"&&ie.text==="{")},C.prototype._reset=function(){U=!1},C.prototype._get_next_token=function(G,ie){var X=null;this._readWhitespace();var y=this._input.peek();return y===null?this._create_token(F.EOF,""):(X=X||this._read_non_javascript(y),X=X||this._read_string(y),X=X||this._read_pair(y,this._input.peek(1)),X=X||this._read_word(G),X=X||this._read_singles(y),X=X||this._read_comment(y),X=X||this._read_regexp(y,G),X=X||this._read_xml(y,G),X=X||this._read_punctuation(),X=X||this._create_token(F.UNKNOWN,this._input.next()),X)},C.prototype._read_word=function(G){var ie;if(ie=this.__patterns.identifier.read(),ie!=="")return ie=ie.replace(L.allLineBreaks,`
|
|
`),!(G.type===F.DOT||G.type===F.RESERVED&&(G.text==="set"||G.text==="get"))&&ot.test(ie)?(ie==="in"||ie==="of")&&(G.type===F.WORD||G.type===F.STRING)?this._create_token(F.OPERATOR,ie):this._create_token(F.RESERVED,ie):this._create_token(F.WORD,ie);if(ie=this.__patterns.number.read(),ie!=="")return this._create_token(F.WORD,ie)},C.prototype._read_singles=function(G){var ie=null;return G==="("||G==="["?ie=this._create_token(F.START_EXPR,G):G===")"||G==="]"?ie=this._create_token(F.END_EXPR,G):G==="{"?ie=this._create_token(F.START_BLOCK,G):G==="}"?ie=this._create_token(F.END_BLOCK,G):G===";"?ie=this._create_token(F.SEMICOLON,G):G==="."&&Q.test(this._input.peek(1))?ie=this._create_token(F.DOT,G):G===","&&(ie=this._create_token(F.COMMA,G)),ie&&this._input.next(),ie},C.prototype._read_pair=function(G,ie){var X=null;return G==="#"&&ie==="{"&&(X=this._create_token(F.START_BLOCK,G+ie)),X&&(this._input.next(),this._input.next()),X},C.prototype._read_punctuation=function(){var G=this.__patterns.punct.read();if(G!=="")return G==="="?this._create_token(F.EQUALS,G):G==="?."?this._create_token(F.DOT,G):this._create_token(F.OPERATOR,G)},C.prototype._read_non_javascript=function(G){var ie="";if(G==="#"){if(this._is_first_token()&&(ie=this.__patterns.shebang.read(),ie))return this._create_token(F.UNKNOWN,ie.trim()+`
|
|
`);if(ie=this.__patterns.include.read(),ie)return this._create_token(F.UNKNOWN,ie.trim()+`
|
|
`);G=this._input.next();var X="#";if(this._input.hasNext()&&this._input.testChar(w)){do G=this._input.next(),X+=G;while(this._input.hasNext()&&G!=="#"&&G!=="=");return G==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(X+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(X+="{}",this._input.next(),this._input.next())),this._create_token(F.WORD,X)}this._input.back()}else if(G==="<"&&this._is_first_token()){if(ie=this.__patterns.html_comment_start.read(),ie){for(;this._input.hasNext()&&!this._input.testChar(L.newline);)ie+=this._input.next();return U=!0,this._create_token(F.COMMENT,ie)}}else if(U&&G==="-"&&(ie=this.__patterns.html_comment_end.read(),ie))return U=!1,this._create_token(F.COMMENT,ie);return null},C.prototype._read_comment=function(G){var ie=null;if(G==="/"){var X="";if(this._input.peek(1)==="*"){X=this.__patterns.block_comment.read();var y=H.get_directives(X);y&&y.ignore==="start"&&(X+=H.readIgnored(this._input)),X=X.replace(L.allLineBreaks,`
|
|
`),ie=this._create_token(F.BLOCK_COMMENT,X),ie.directives=y}else this._input.peek(1)==="/"&&(X=this.__patterns.comment.read(),ie=this._create_token(F.COMMENT,X))}return ie},C.prototype._read_string=function(G){if(G==="`"||G==="'"||G==='"'){var ie=this._input.next();return this.has_char_escapes=!1,G==="`"?ie+=this._read_string_recursive("`",!0,"${"):ie+=this._read_string_recursive(G),this.has_char_escapes&&this._options.unescape_strings&&(ie=P(ie)),this._input.peek()===G&&(ie+=this._input.next()),ie=ie.replace(L.allLineBreaks,`
|
|
`),this._create_token(F.STRING,ie)}return null},C.prototype._allow_regexp_or_xml=function(G){return G.type===F.RESERVED&&le(G.text,["return","case","throw","else","do","typeof","yield"])||G.type===F.END_EXPR&&G.text===")"&&G.opened.previous.type===F.RESERVED&&le(G.opened.previous.text,["if","while","for"])||le(G.type,[F.COMMENT,F.START_EXPR,F.START_BLOCK,F.START,F.END_BLOCK,F.OPERATOR,F.EQUALS,F.EOF,F.SEMICOLON,F.COMMA])},C.prototype._read_regexp=function(G,ie){if(G==="/"&&this._allow_regexp_or_xml(ie)){for(var X=this._input.next(),y=!1,v=!1;this._input.hasNext()&&(y||v||this._input.peek()!==G)&&!this._input.testChar(L.newline);)X+=this._input.peek(),y?y=!1:(y=this._input.peek()==="\\",this._input.peek()==="["?v=!0:this._input.peek()==="]"&&(v=!1)),this._input.next();return this._input.peek()===G&&(X+=this._input.next(),X+=this._input.read(L.identifier)),this._create_token(F.STRING,X)}return null},C.prototype._read_xml=function(G,ie){if(this._options.e4x&&G==="<"&&this._allow_regexp_or_xml(ie)){var X="",y=this.__patterns.xml.read_match();if(y){for(var v=y[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),O=v.indexOf("{")===0,me=0;y;){var Qe=!!y[1],rt=y[2],Ct=!!y[y.length-1]||rt.slice(0,8)==="![CDATA[";if(!Ct&&(rt===v||O&&rt.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Qe?--me:++me),X+=y[0],me<=0)break;y=this.__patterns.xml.read_match()}return y||(X+=this._input.match(/[\s\S]*/g)[0]),X=X.replace(L.allLineBreaks,`
|
|
`),this._create_token(F.STRING,X)}}return null};function P(G){for(var ie="",X=0,y=new A(G),v=null;y.hasNext();)if(v=y.match(/([\s]|[^\\]|\\\\)+/g),v&&(ie+=v[0]),y.peek()==="\\"){if(y.next(),y.peek()==="x")v=y.match(/x([0-9A-Fa-f]{2})/g);else if(y.peek()==="u")v=y.match(/u([0-9A-Fa-f]{4})/g),v||(v=y.match(/u\{([0-9A-Fa-f]+)\}/g));else{ie+="\\",y.hasNext()&&(ie+=y.next());continue}if(!v||(X=parseInt(v[1],16),X>126&&X<=255&&v[0].indexOf("x")===0))return G;X>=0&&X<32||X>1114111?ie+="\\"+v[0]:X===34||X===39||X===92?ie+="\\"+String.fromCharCode(X):ie+=String.fromCharCode(X)}return ie}C.prototype._read_string_recursive=function(G,ie,X){var y,v;G==="'"?v=this.__patterns.single_quote:G==='"'?v=this.__patterns.double_quote:G==="`"?v=this.__patterns.template_text:G==="}"&&(v=this.__patterns.template_expression);for(var O=v.read(),me="";this._input.hasNext();){if(me=this._input.next(),me===G||!ie&&L.newline.test(me)){this._input.back();break}else me==="\\"&&this._input.hasNext()?(y=this._input.peek(),y==="x"||y==="u"?this.has_char_escapes=!0:y==="\r"&&this._input.peek(1)===`
|
|
`&&this._input.next(),me+=this._input.next()):X&&(X==="${"&&me==="$"&&this._input.peek()==="{"&&(me+=this._input.next()),X===me&&(G==="`"?me+=this._read_string_recursive("}",ie,"`"):me+=this._read_string_recursive("`",ie,"${"),this._input.hasNext()&&(me+=this._input.next())));me+=v.read(),O+=me}return O},te.exports.Tokenizer=C,te.exports.TOKEN=F,te.exports.positionable_operators=re.slice(),te.exports.line_starters=ve.slice()},function(te){var o=RegExp.prototype.hasOwnProperty("sticky");function g(A){this.__input=A||"",this.__input_length=this.__input.length,this.__position=0}g.prototype.restart=function(){this.__position=0},g.prototype.back=function(){this.__position>0&&(this.__position-=1)},g.prototype.hasNext=function(){return this.__position<this.__input_length},g.prototype.next=function(){var A=null;return this.hasNext()&&(A=this.__input.charAt(this.__position),this.__position+=1),A},g.prototype.peek=function(A){var p=null;return A=A||0,A+=this.__position,A>=0&&A<this.__input_length&&(p=this.__input.charAt(A)),p},g.prototype.__match=function(A,p){A.lastIndex=p;var E=A.exec(this.__input);return E&&!(o&&A.sticky)&&E.index!==p&&(E=null),E},g.prototype.test=function(A,p){return p=p||0,p+=this.__position,p>=0&&p<this.__input_length?!!this.__match(A,p):!1},g.prototype.testChar=function(A,p){var E=this.peek(p);return A.lastIndex=0,E!==null&&A.test(E)},g.prototype.match=function(A){var p=this.__match(A,this.__position);return p?this.__position+=p[0].length:p=null,p},g.prototype.read=function(A,p,E){var b="",L;return A&&(L=this.match(A),L&&(b+=L[0])),p&&(L||!A)&&(b+=this.readUntil(p,E)),b},g.prototype.readUntil=function(A,p){var E="",b=this.__position;A.lastIndex=this.__position;var L=A.exec(this.__input);return L?(b=L.index,p&&(b+=L[0].length)):b=this.__input_length,E=this.__input.substring(this.__position,b),this.__position=b,E},g.prototype.readUntilAfter=function(A){return this.readUntil(A,!0)},g.prototype.get_regexp=function(A,p){var E=null,b="g";return p&&o&&(b="y"),typeof A=="string"&&A!==""?E=new RegExp(A,b):A&&(E=new RegExp(A.source,b)),E},g.prototype.get_literal_regexp=function(A){return RegExp(A.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},g.prototype.peekUntilAfter=function(A){var p=this.__position,E=this.readUntilAfter(A);return this.__position=p,E},g.prototype.lookBack=function(A){var p=this.__position-1;return p>=A.length&&this.__input.substring(p-A.length,p).toLowerCase()===A},te.exports.InputScanner=g},function(te,o,g){var A=g(8).InputScanner,p=g(3).Token,E=g(10).TokenStream,b=g(11).WhitespacePattern,L={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},V=function(q,le){this._input=new A(q),this._options=le||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new b(this._input)};V.prototype.tokenize=function(){this._input.restart(),this.__tokens=new E,this._reset();for(var q,le=new p(L.START,""),F=null,H=[],R=new E;le.type!==L.EOF;){for(q=this._get_next_token(le,F);this._is_comment(q);)R.add(q),q=this._get_next_token(le,F);R.isEmpty()||(q.comments_before=R,R=new E),q.parent=F,this._is_opening(q)?(H.push(F),F=q):F&&this._is_closing(q,F)&&(q.opened=F,F.closed=q,F=H.pop(),q.parent=F),q.previous=le,le.next=q,this.__tokens.add(q),le=q}return this.__tokens},V.prototype._is_first_token=function(){return this.__tokens.isEmpty()},V.prototype._reset=function(){},V.prototype._get_next_token=function(q,le){this._readWhitespace();var F=this._input.read(/.+/g);return F?this._create_token(L.RAW,F):this._create_token(L.EOF,"")},V.prototype._is_comment=function(q){return!1},V.prototype._is_opening=function(q){return!1},V.prototype._is_closing=function(q,le){return!1},V.prototype._create_token=function(q,le){var F=new p(q,le,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return F},V.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},te.exports.Tokenizer=V,te.exports.TOKEN=L},function(te){function o(g){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=g}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 g=null;return this.hasNext()&&(g=this.__tokens[this.__position],this.__position+=1),g},o.prototype.peek=function(g){var A=null;return g=g||0,g+=this.__position,g>=0&&g<this.__tokens_length&&(A=this.__tokens[g]),A},o.prototype.add=function(g){this.__parent_token&&(g.parent=this.__parent_token),this.__tokens.push(g),this.__tokens_length+=1},te.exports.TokenStream=o},function(te,o,g){var A=g(12).Pattern;function p(E,b){A.call(this,E,b),b?this._line_regexp=this._input.get_regexp(b._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}p.prototype=new A,p.prototype.__set_whitespace_patterns=function(E,b){E+="\\t ",b+="\\n\\r",this._match_pattern=this._input.get_regexp("["+E+b+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+b+"]")},p.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var E=this._input.read(this._match_pattern);if(E===" ")this.whitespace_before_token=" ";else if(E){var b=this.__split(this._newline_regexp,E);this.newline_count=b.length-1,this.whitespace_before_token=b[this.newline_count]}return E},p.prototype.matching=function(E,b){var L=this._create();return L.__set_whitespace_patterns(E,b),L._update(),L},p.prototype._create=function(){return new p(this._input,this)},p.prototype.__split=function(E,b){E.lastIndex=0;for(var L=0,V=[],q=E.exec(b);q;)V.push(b.substring(L,q.index)),L=q.index+q[0].length,q=E.exec(b);return L<b.length?V.push(b.substring(L,b.length)):V.push(""),V},te.exports.WhitespacePattern=p},function(te){function o(g,A){this._input=g,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,A&&(this._starting_pattern=this._input.get_regexp(A._starting_pattern,!0),this._match_pattern=this._input.get_regexp(A._match_pattern,!0),this._until_pattern=this._input.get_regexp(A._until_pattern),this._until_after=A._until_after)}o.prototype.read=function(){var g=this._input.read(this._starting_pattern);return(!this._starting_pattern||g)&&(g+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),g},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(g){var A=this._create();return A._until_after=!0,A._until_pattern=this._input.get_regexp(g),A._update(),A},o.prototype.until=function(g){var A=this._create();return A._until_after=!1,A._until_pattern=this._input.get_regexp(g),A._update(),A},o.prototype.starting_with=function(g){var A=this._create();return A._starting_pattern=this._input.get_regexp(g,!0),A._update(),A},o.prototype.matching=function(g){var A=this._create();return A._match_pattern=this._input.get_regexp(g,!0),A._update(),A},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},te.exports.Pattern=o},function(te){function o(g,A){g=typeof g=="string"?g:g.source,A=typeof A=="string"?A:A.source,this.__directives_block_pattern=new RegExp(g+/ beautify( \w+[:]\w+)+ /.source+A,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(g+/\sbeautify\signore:end\s/.source+A,"g")}o.prototype.get_directives=function(g){if(!g.match(this.__directives_block_pattern))return null;var A={};this.__directive_pattern.lastIndex=0;for(var p=this.__directive_pattern.exec(g);p;)A[p[1]]=p[2],p=this.__directive_pattern.exec(g);return A},o.prototype.readIgnored=function(g){return g.readUntilAfter(this.__directives_end_ignore_pattern)},te.exports.Directives=o},function(te,o,g){var A=g(12).Pattern,p={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function E(b,L){A.call(this,b,L),this.__template_pattern=null,this._disabled=Object.assign({},p),this._excluded=Object.assign({},p),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 V=new A(b);this.__patterns={handlebars_comment:V.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:V.starting_with(/{{{/).until_after(/}}}/),handlebars:V.starting_with(/{{/).until_after(/}}/),php:V.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:V.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:V.starting_with(/{%/).until_after(/%}/),django_value:V.starting_with(/{{/).until_after(/}}/),django_comment:V.starting_with(/{#/).until_after(/#}/),smarty:V.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:V.starting_with(/{\*/).until_after(/\*}/),smarty_literal:V.starting_with(/{literal}/).until_after(/{\/literal}/)}}E.prototype=new A,E.prototype._create=function(){return new E(this._input,this)},E.prototype._update=function(){this.__set_templated_pattern()},E.prototype.disable=function(b){var L=this._create();return L._disabled[b]=!0,L._update(),L},E.prototype.read_options=function(b){var L=this._create();for(var V in p)L._disabled[V]=b.templating.indexOf(V)===-1;return L._update(),L},E.prototype.exclude=function(b){var L=this._create();return L._excluded[b]=!0,L._update(),L},E.prototype.read=function(){var b="";this._match_pattern?b=this._input.read(this._starting_pattern):b=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),b+=L,L=this._read_template();return this._until_after&&(b+=this._input.readUntilAfter(this._until_pattern)),b},E.prototype.__set_templated_pattern=function(){var b=[];this._disabled.php||b.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||b.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||b.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||b.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(b.push(this.__patterns.django._starting_pattern.source),b.push(this.__patterns.django_value._starting_pattern.source),b.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||b.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&b.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+b.join("|")+")")},E.prototype._read_template=function(){var b="",L=this._input.peek();if(L==="<"){var V=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&V==="?"&&(b=b||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&V==="%"&&(b=b||this.__patterns.erb.read())}else L==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(b=b||this.__patterns.handlebars_comment.read(),b=b||this.__patterns.handlebars_unescaped.read(),b=b||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(b=b||this.__patterns.django_value.read()),this._excluded.django||(b=b||this.__patterns.django_comment.read(),b=b||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(b=b||this.__patterns.smarty_comment.read(),b=b||this.__patterns.smarty_literal.read(),b=b||this.__patterns.smarty.read()));return b},te.exports.TemplatablePattern=E}],B={};function d(te){var o=B[te];if(o!==void 0)return o.exports;var g=B[te]={exports:{}};return ae[te](g,g.exports,d),g.exports}var _e=d(0);ue=_e})();var z=ue;_=[],h=function(){return{js_beautify:z}}.apply(Xt,_),h!==void 0&&(Pn.exports=h)})()},7861:function(Pn,Xt,_){var h=_(38710),ue=function(B){var d=/[height|width]$/;return d.test(B)},z=function(B){var d="",_e=Object.keys(B);return _e.forEach(function(te,o){var g=B[te];te=h(te),ue(te)&&typeof g=="number"&&(g=g+"px"),g===!0?d+=te:g===!1?d+="not "+te:d+="("+te+": "+g+")",o<_e.length-1&&(d+=" and ")}),d},ae=function(B){var d="";return typeof B=="string"?B:B instanceof Array?(B.forEach(function(_e,te){d+=z(_e),te<B.length-1&&(d+=", ")}),d):z(B)};Pn.exports=ae},32834:function(Pn){(function(Xt,_){Pn.exports=_()})(this,function(){"use strict";function Xt(se,ge){for(var Ee=0;Ee<ge.length;Ee++){var k=ge[Ee];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(se,k.key,k)}}function _(se,ge,Ee){return ge&&Xt(se.prototype,ge),Ee&&Xt(se,Ee),se}function h(se,ge){if(se){if(typeof se=="string")return ue(se,ge);var Ee=Object.prototype.toString.call(se).slice(8,-1);if(Ee==="Object"&&se.constructor&&(Ee=se.constructor.name),Ee==="Map"||Ee==="Set")return Array.from(se);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return ue(se,ge)}}function ue(se,ge){(ge==null||ge>se.length)&&(ge=se.length);for(var Ee=0,k=new Array(ge);Ee<ge;Ee++)k[Ee]=se[Ee];return k}function z(se,ge){var Ee=typeof Symbol!="undefined"&&se[Symbol.iterator]||se["@@iterator"];if(Ee)return(Ee=Ee.call(se)).next.bind(Ee);if(Array.isArray(se)||(Ee=h(se))||ge&&se&&typeof se.length=="number"){Ee&&(se=Ee);var k=0;return function(){return k>=se.length?{done:!0}:{done:!1,value:se[k++]}}}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 ae={exports:{}};function B(){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(se){ae.exports.defaults=se}ae.exports={defaults:B(),getDefaults:B,changeDefaults:d};var _e=/[&<>"']/,te=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,g=/[<>"']|&(?!#?\w+;)/g,A={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(ge){return A[ge]};function E(se,ge){if(ge){if(_e.test(se))return se.replace(te,p)}else if(o.test(se))return se.replace(g,p);return se}var b=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function L(se){return se.replace(b,function(ge,Ee){return Ee=Ee.toLowerCase(),Ee==="colon"?":":Ee.charAt(0)==="#"?Ee.charAt(1)==="x"?String.fromCharCode(parseInt(Ee.substring(2),16)):String.fromCharCode(+Ee.substring(1)):""})}var V=/(^|[^\[])\^/g;function q(se,ge){se=se.source||se,ge=ge||"";var Ee={replace:function(Y,pe){return pe=pe.source||pe,pe=pe.replace(V,"$1"),se=se.replace(Y,pe),Ee},getRegex:function(){return new RegExp(se,ge)}};return Ee}var le=/[^\w:]/g,F=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function H(se,ge,Ee){if(se){var k;try{k=decodeURIComponent(L(Ee)).replace(le,"").toLowerCase()}catch(Y){return null}if(k.indexOf("javascript:")===0||k.indexOf("vbscript:")===0||k.indexOf("data:")===0)return null}ge&&!F.test(Ee)&&(Ee=$(ge,Ee));try{Ee=encodeURI(Ee).replace(/%25/g,"%")}catch(Y){return null}return Ee}var R={},w=/^[^:]+:\/*[^/]*$/,Q=/^([^:]+:)[\s\S]*$/,re=/^([^:]+:\/*[^/]*)[\s\S]*$/;function $(se,ge){R[" "+se]||(w.test(se)?R[" "+se]=se+"/":R[" "+se]=ot(se,"/",!0)),se=R[" "+se];var Ee=se.indexOf(":")===-1;return ge.substring(0,2)==="//"?Ee?ge:se.replace(Q,"$1")+ge:ge.charAt(0)==="/"?Ee?ge:se.replace(re,"$1")+ge:se+ge}var oe={exec:function(){}};function ve(se){for(var ge=1,Ee,k;ge<arguments.length;ge++){Ee=arguments[ge];for(k in Ee)Object.prototype.hasOwnProperty.call(Ee,k)&&(se[k]=Ee[k])}return se}function he(se,ge){var Ee=se.replace(/\|/g,function(pe,de,xe){for(var Be=!1,Ye=de;--Ye>=0&&xe[Ye]==="\\";)Be=!Be;return Be?"|":" |"}),k=Ee.split(/ \|/),Y=0;if(k.length>ge)k.splice(ge);else for(;k.length<ge;)k.push("");for(;Y<k.length;Y++)k[Y]=k[Y].trim().replace(/\\\|/g,"|");return k}function ot(se,ge,Ee){var k=se.length;if(k===0)return"";for(var Y=0;Y<k;){var pe=se.charAt(k-Y-1);if(pe===ge&&!Ee)Y++;else if(pe!==ge&&Ee)Y++;else break}return se.substr(0,k-Y)}function U(se,ge){if(se.indexOf(ge[1])===-1)return-1;for(var Ee=se.length,k=0,Y=0;Y<Ee;Y++)if(se[Y]==="\\")Y++;else if(se[Y]===ge[0])k++;else if(se[Y]===ge[1]&&(k--,k<0))return Y;return-1}function C(se){se&&se.sanitize&&!se.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 P(se,ge){if(ge<1)return"";for(var Ee="";ge>1;)ge&1&&(Ee+=se),ge>>=1,se+=se;return Ee+se}var G={escape:E,unescape:L,edit:q,cleanUrl:H,resolveUrl:$,noopTest:oe,merge:ve,splitCells:he,rtrim:ot,findClosingBracket:U,checkSanitizeDeprecation:C,repeatString:P},ie=ae.exports.defaults,X=G.rtrim,y=G.splitCells,v=G.escape,O=G.findClosingBracket;function me(se,ge,Ee){var k=ge.href,Y=ge.title?v(ge.title):null,pe=se[1].replace(/\\([\[\]])/g,"$1");return se[0].charAt(0)!=="!"?{type:"link",raw:Ee,href:k,title:Y,text:pe}:{type:"image",raw:Ee,href:k,title:Y,text:v(pe)}}function Qe(se,ge){var Ee=se.match(/^(\s+)(?:```)/);if(Ee===null)return ge;var k=Ee[1];return ge.split(`
|
|
`).map(function(Y){var pe=Y.match(/^\s+/);if(pe===null)return Y;var de=pe[0];return de.length>=k.length?Y.slice(k.length):Y}).join(`
|
|
`)}var rt=function(){function se(Ee){this.options=Ee||ie}var ge=se.prototype;return ge.space=function(k){var Y=this.rules.block.newline.exec(k);if(Y)return Y[0].length>1?{type:"space",raw:Y[0]}:{raw:`
|
|
`}},ge.code=function(k){var Y=this.rules.block.code.exec(k);if(Y){var pe=Y[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Y[0],codeBlockStyle:"indented",text:this.options.pedantic?pe:X(pe,`
|
|
`)}}},ge.fences=function(k){var Y=this.rules.block.fences.exec(k);if(Y){var pe=Y[0],de=Qe(pe,Y[3]||"");return{type:"code",raw:pe,lang:Y[2]?Y[2].trim():Y[2],text:de}}},ge.heading=function(k){var Y=this.rules.block.heading.exec(k);if(Y){var pe=Y[2].trim();if(/#$/.test(pe)){var de=X(pe,"#");(this.options.pedantic||!de||/ $/.test(de))&&(pe=de.trim())}return{type:"heading",raw:Y[0],depth:Y[1].length,text:pe}}},ge.nptable=function(k){var Y=this.rules.block.nptable.exec(k);if(Y){var pe={type:"table",header:y(Y[1].replace(/^ *| *\| *$/g,"")),align:Y[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Y[3]?Y[3].replace(/\n$/,"").split(`
|
|
`):[],raw:Y[0]};if(pe.header.length===pe.align.length){var de=pe.align.length,xe;for(xe=0;xe<de;xe++)/^ *-+: *$/.test(pe.align[xe])?pe.align[xe]="right":/^ *:-+: *$/.test(pe.align[xe])?pe.align[xe]="center":/^ *:-+ *$/.test(pe.align[xe])?pe.align[xe]="left":pe.align[xe]=null;for(de=pe.cells.length,xe=0;xe<de;xe++)pe.cells[xe]=y(pe.cells[xe],pe.header.length);return pe}}},ge.hr=function(k){var Y=this.rules.block.hr.exec(k);if(Y)return{type:"hr",raw:Y[0]}},ge.blockquote=function(k){var Y=this.rules.block.blockquote.exec(k);if(Y){var pe=Y[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Y[0],text:pe}}},ge.list=function(k){var Y=this.rules.block.list.exec(k);if(Y){var pe=Y[0],de=Y[2],xe=de.length>1,Be={type:"list",raw:pe,ordered:xe,start:xe?+de.slice(0,-1):"",loose:!1,items:[]},Ye=Y[0].match(this.rules.block.item),dt=!1,nt,Ue,I,K,S,je,De,Le,He,Ge=Ye.length;I=this.rules.block.listItemStart.exec(Ye[0]);for(var ft=0;ft<Ge;ft++){if(nt=Ye[ft],pe=nt,this.options.pedantic||(He=nt.match(new RegExp("\\n\\s*\\n {0,"+(I[0].length-1)+"}\\S")),He&&(S=nt.length-He.index+Ye.slice(ft+1).join(`
|
|
`).length,Be.raw=Be.raw.substring(0,Be.raw.length-S),nt=nt.substring(0,He.index),pe=nt,Ge=ft+1)),ft!==Ge-1){if(K=this.rules.block.listItemStart.exec(Ye[ft+1]),this.options.pedantic?K[1].length>I[1].length:K[1].length>=I[0].length||K[1].length>3){Ye.splice(ft,2,Ye[ft]+(!this.options.pedantic&&K[1].length<I[0].length&&!Ye[ft].match(/\n$/)?"":`
|
|
`)+Ye[ft+1]),ft--,Ge--;continue}else(!this.options.pedantic||this.options.smartLists?K[2][K[2].length-1]!==de[de.length-1]:xe===(K[2].length===1))&&(S=Ye.slice(ft+1).join(`
|
|
`).length,Be.raw=Be.raw.substring(0,Be.raw.length-S),ft=Ge-1);I=K}Ue=nt.length,nt=nt.replace(/^ *([*+-]|\d+[.)]) ?/,""),~nt.indexOf(`
|
|
`)&&(Ue-=nt.length,nt=this.options.pedantic?nt.replace(/^ {1,4}/gm,""):nt.replace(new RegExp("^ {1,"+Ue+"}","gm"),"")),nt=X(nt,`
|
|
`),ft!==Ge-1&&(pe=pe+`
|
|
`),je=dt||/\n\n(?!\s*$)/.test(pe),ft!==Ge-1&&(dt=pe.slice(-2)===`
|
|
|
|
`,je||(je=dt)),je&&(Be.loose=!0),this.options.gfm&&(De=/^\[[ xX]\] /.test(nt),Le=void 0,De&&(Le=nt[1]!==" ",nt=nt.replace(/^\[[ xX]\] +/,""))),Be.items.push({type:"list_item",raw:pe,task:De,checked:Le,loose:je,text:nt})}return Be}},ge.html=function(k){var Y=this.rules.block.html.exec(k);if(Y)return{type:this.options.sanitize?"paragraph":"html",raw:Y[0],pre:!this.options.sanitizer&&(Y[1]==="pre"||Y[1]==="script"||Y[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Y[0]):v(Y[0]):Y[0]}},ge.def=function(k){var Y=this.rules.block.def.exec(k);if(Y){Y[3]&&(Y[3]=Y[3].substring(1,Y[3].length-1));var pe=Y[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:pe,raw:Y[0],href:Y[2],title:Y[3]}}},ge.table=function(k){var Y=this.rules.block.table.exec(k);if(Y){var pe={type:"table",header:y(Y[1].replace(/^ *| *\| *$/g,"")),align:Y[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Y[3]?Y[3].replace(/\n$/,"").split(`
|
|
`):[]};if(pe.header.length===pe.align.length){pe.raw=Y[0];var de=pe.align.length,xe;for(xe=0;xe<de;xe++)/^ *-+: *$/.test(pe.align[xe])?pe.align[xe]="right":/^ *:-+: *$/.test(pe.align[xe])?pe.align[xe]="center":/^ *:-+ *$/.test(pe.align[xe])?pe.align[xe]="left":pe.align[xe]=null;for(de=pe.cells.length,xe=0;xe<de;xe++)pe.cells[xe]=y(pe.cells[xe].replace(/^ *\| *| *\| *$/g,""),pe.header.length);return pe}}},ge.lheading=function(k){var Y=this.rules.block.lheading.exec(k);if(Y)return{type:"heading",raw:Y[0],depth:Y[2].charAt(0)==="="?1:2,text:Y[1]}},ge.paragraph=function(k){var Y=this.rules.block.paragraph.exec(k);if(Y)return{type:"paragraph",raw:Y[0],text:Y[1].charAt(Y[1].length-1)===`
|
|
`?Y[1].slice(0,-1):Y[1]}},ge.text=function(k){var Y=this.rules.block.text.exec(k);if(Y)return{type:"text",raw:Y[0],text:Y[0]}},ge.escape=function(k){var Y=this.rules.inline.escape.exec(k);if(Y)return{type:"escape",raw:Y[0],text:v(Y[1])}},ge.tag=function(k,Y,pe){var de=this.rules.inline.tag.exec(k);if(de)return!Y&&/^<a /i.test(de[0])?Y=!0:Y&&/^<\/a>/i.test(de[0])&&(Y=!1),!pe&&/^<(pre|code|kbd|script)(\s|>)/i.test(de[0])?pe=!0:pe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(de[0])&&(pe=!1),{type:this.options.sanitize?"text":"html",raw:de[0],inLink:Y,inRawBlock:pe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(de[0]):v(de[0]):de[0]}},ge.link=function(k){var Y=this.rules.inline.link.exec(k);if(Y){var pe=Y[2].trim();if(!this.options.pedantic&&/^</.test(pe)){if(!/>$/.test(pe))return;var de=X(pe.slice(0,-1),"\\");if((pe.length-de.length)%2===0)return}else{var xe=O(Y[2],"()");if(xe>-1){var Be=Y[0].indexOf("!")===0?5:4,Ye=Be+Y[1].length+xe;Y[2]=Y[2].substring(0,xe),Y[0]=Y[0].substring(0,Ye).trim(),Y[3]=""}}var dt=Y[2],nt="";if(this.options.pedantic){var Ue=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(dt);Ue&&(dt=Ue[1],nt=Ue[3])}else nt=Y[3]?Y[3].slice(1,-1):"";return dt=dt.trim(),/^</.test(dt)&&(this.options.pedantic&&!/>$/.test(pe)?dt=dt.slice(1):dt=dt.slice(1,-1)),me(Y,{href:dt&&dt.replace(this.rules.inline._escapes,"$1"),title:nt&&nt.replace(this.rules.inline._escapes,"$1")},Y[0])}},ge.reflink=function(k,Y){var pe;if((pe=this.rules.inline.reflink.exec(k))||(pe=this.rules.inline.nolink.exec(k))){var de=(pe[2]||pe[1]).replace(/\s+/g," ");if(de=Y[de.toLowerCase()],!de||!de.href){var xe=pe[0].charAt(0);return{type:"text",raw:xe,text:xe}}return me(pe,de,pe[0])}},ge.emStrong=function(k,Y,pe){pe===void 0&&(pe="");var de=this.rules.inline.emStrong.lDelim.exec(k);if(de&&!(de[3]&&pe.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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1A\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\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uD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]||de[2]||"";if(!xe||xe&&(pe===""||this.rules.inline.punctuation.exec(pe))){var Be=de[0].length-1,Ye,dt,nt=Be,Ue=0,I=de[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(I.lastIndex=0,Y=Y.slice(-1*k.length+Be);(de=I.exec(Y))!=null;)if(Ye=de[1]||de[2]||de[3]||de[4]||de[5]||de[6],!!Ye){if(dt=Ye.length,de[3]||de[4]){nt+=dt;continue}else if((de[5]||de[6])&&Be%3&&!((Be+dt)%3)){Ue+=dt;continue}if(nt-=dt,!(nt>0))return dt=Math.min(dt,dt+nt+Ue),Math.min(Be,dt)%2?{type:"em",raw:k.slice(0,Be+de.index+dt+1),text:k.slice(1,Be+de.index+dt)}:{type:"strong",raw:k.slice(0,Be+de.index+dt+1),text:k.slice(2,Be+de.index+dt-1)}}}}},ge.codespan=function(k){var Y=this.rules.inline.code.exec(k);if(Y){var pe=Y[2].replace(/\n/g," "),de=/[^ ]/.test(pe),xe=/^ /.test(pe)&&/ $/.test(pe);return de&&xe&&(pe=pe.substring(1,pe.length-1)),pe=v(pe,!0),{type:"codespan",raw:Y[0],text:pe}}},ge.br=function(k){var Y=this.rules.inline.br.exec(k);if(Y)return{type:"br",raw:Y[0]}},ge.del=function(k){var Y=this.rules.inline.del.exec(k);if(Y)return{type:"del",raw:Y[0],text:Y[2]}},ge.autolink=function(k,Y){var pe=this.rules.inline.autolink.exec(k);if(pe){var de,xe;return pe[2]==="@"?(de=v(this.options.mangle?Y(pe[1]):pe[1]),xe="mailto:"+de):(de=v(pe[1]),xe=de),{type:"link",raw:pe[0],text:de,href:xe,tokens:[{type:"text",raw:de,text:de}]}}},ge.url=function(k,Y){var pe;if(pe=this.rules.inline.url.exec(k)){var de,xe;if(pe[2]==="@")de=v(this.options.mangle?Y(pe[0]):pe[0]),xe="mailto:"+de;else{var Be;do Be=pe[0],pe[0]=this.rules.inline._backpedal.exec(pe[0])[0];while(Be!==pe[0]);de=v(pe[0]),pe[1]==="www."?xe="http://"+de:xe=de}return{type:"link",raw:pe[0],text:de,href:xe,tokens:[{type:"text",raw:de,text:de}]}}},ge.inlineText=function(k,Y,pe){var de=this.rules.inline.text.exec(k);if(de){var xe;return Y?xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(de[0]):v(de[0]):de[0]:xe=v(this.options.smartypants?pe(de[0]):de[0]),{type:"text",raw:de[0],text:xe}}},se}(),Ct=G.noopTest,Rt=G.edit,Vt=G.merge,Qt={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:Ct,table:Ct,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};Qt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Qt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Qt.def=Rt(Qt.def).replace("label",Qt._label).replace("title",Qt._title).getRegex(),Qt.bullet=/(?:[*+-]|\d{1,9}[.)])/,Qt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Qt.item=Rt(Qt.item,"gm").replace(/bull/g,Qt.bullet).getRegex(),Qt.listItemStart=Rt(/^( *)(bull) */).replace("bull",Qt.bullet).getRegex(),Qt.list=Rt(Qt.list).replace(/bull/g,Qt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Qt.def.source+")").getRegex(),Qt._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",Qt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Qt.html=Rt(Qt.html,"i").replace("comment",Qt._comment).replace("tag",Qt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Qt.paragraph=Rt(Qt._paragraph).replace("hr",Qt.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",Qt._tag).getRegex(),Qt.blockquote=Rt(Qt.blockquote).replace("paragraph",Qt.paragraph).getRegex(),Qt.normal=Vt({},Qt),Qt.gfm=Vt({},Qt.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*|$)"}),Qt.gfm.nptable=Rt(Qt.gfm.nptable).replace("hr",Qt.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",Qt._tag).getRegex(),Qt.gfm.table=Rt(Qt.gfm.table).replace("hr",Qt.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",Qt._tag).getRegex(),Qt.pedantic=Vt({},Qt.normal,{html:Rt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Qt._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:Ct,paragraph:Rt(Qt.normal._paragraph).replace("hr",Qt.hr).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",Qt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ve={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ct,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:Ct,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Ve._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ve.punctuation=Rt(Ve.punctuation).replace(/punctuation/g,Ve._punctuation).getRegex(),Ve.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ve.escapedEmSt=/\\\*|\\_/g,Ve._comment=Rt(Qt._comment).replace("(?:-->|$)","-->").getRegex(),Ve.emStrong.lDelim=Rt(Ve.emStrong.lDelim).replace(/punct/g,Ve._punctuation).getRegex(),Ve.emStrong.rDelimAst=Rt(Ve.emStrong.rDelimAst,"g").replace(/punct/g,Ve._punctuation).getRegex(),Ve.emStrong.rDelimUnd=Rt(Ve.emStrong.rDelimUnd,"g").replace(/punct/g,Ve._punctuation).getRegex(),Ve._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ve._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ve._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])?)+(?![-_])/,Ve.autolink=Rt(Ve.autolink).replace("scheme",Ve._scheme).replace("email",Ve._email).getRegex(),Ve._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ve.tag=Rt(Ve.tag).replace("comment",Ve._comment).replace("attribute",Ve._attribute).getRegex(),Ve._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ve._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ve._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ve.link=Rt(Ve.link).replace("label",Ve._label).replace("href",Ve._href).replace("title",Ve._title).getRegex(),Ve.reflink=Rt(Ve.reflink).replace("label",Ve._label).getRegex(),Ve.reflinkSearch=Rt(Ve.reflinkSearch,"g").replace("reflink",Ve.reflink).replace("nolink",Ve.nolink).getRegex(),Ve.normal=Vt({},Ve),Ve.pedantic=Vt({},Ve.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:Rt(/^!?\[(label)\]\((.*?)\)/).replace("label",Ve._label).getRegex(),reflink:Rt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ve._label).getRegex()}),Ve.gfm=Vt({},Ve.normal,{escape:Rt(Ve.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Ve.gfm.url=Rt(Ve.gfm.url,"i").replace("email",Ve.gfm._extended_email).getRegex(),Ve.breaks=Vt({},Ve.gfm,{br:Rt(Ve.br).replace("{2,}","*").getRegex(),text:Rt(Ve.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var $t={block:Qt,inline:Ve},It=rt,sn=ae.exports.defaults,qe=$t.block,ht=$t.inline,Oe=G.repeatString;function we(se){return se.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 j(se){var ge="",Ee,k,Y=se.length;for(Ee=0;Ee<Y;Ee++)k=se.charCodeAt(Ee),Math.random()>.5&&(k="x"+k.toString(16)),ge+="&#"+k+";";return ge}var ze=function(){function se(Ee){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ee||sn,this.options.tokenizer=this.options.tokenizer||new It,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var k={block:qe.normal,inline:ht.normal};this.options.pedantic?(k.block=qe.pedantic,k.inline=ht.pedantic):this.options.gfm&&(k.block=qe.gfm,this.options.breaks?k.inline=ht.breaks:k.inline=ht.gfm),this.tokenizer.rules=k}se.lex=function(k,Y){var pe=new se(Y);return pe.lex(k)},se.lexInline=function(k,Y){var pe=new se(Y);return pe.inlineTokens(k)};var ge=se.prototype;return ge.lex=function(k){return k=k.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," "),this.blockTokens(k,this.tokens,!0),this.inline(this.tokens),this.tokens},ge.blockTokens=function(k,Y,pe){Y===void 0&&(Y=[]),pe===void 0&&(pe=!0),this.options.pedantic&&(k=k.replace(/^ +$/gm,""));for(var de,xe,Be,Ye;k;){if(de=this.tokenizer.space(k)){k=k.substring(de.raw.length),de.type&&Y.push(de);continue}if(de=this.tokenizer.code(k)){k=k.substring(de.raw.length),Ye=Y[Y.length-1],Ye&&Ye.type==="paragraph"?(Ye.raw+=`
|
|
`+de.raw,Ye.text+=`
|
|
`+de.text):Y.push(de);continue}if(de=this.tokenizer.fences(k)){k=k.substring(de.raw.length),Y.push(de);continue}if(de=this.tokenizer.heading(k)){k=k.substring(de.raw.length),Y.push(de);continue}if(de=this.tokenizer.nptable(k)){k=k.substring(de.raw.length),Y.push(de);continue}if(de=this.tokenizer.hr(k)){k=k.substring(de.raw.length),Y.push(de);continue}if(de=this.tokenizer.blockquote(k)){k=k.substring(de.raw.length),de.tokens=this.blockTokens(de.text,[],pe),Y.push(de);continue}if(de=this.tokenizer.list(k)){for(k=k.substring(de.raw.length),Be=de.items.length,xe=0;xe<Be;xe++)de.items[xe].tokens=this.blockTokens(de.items[xe].text,[],!1);Y.push(de);continue}if(de=this.tokenizer.html(k)){k=k.substring(de.raw.length),Y.push(de);continue}if(pe&&(de=this.tokenizer.def(k))){k=k.substring(de.raw.length),this.tokens.links[de.tag]||(this.tokens.links[de.tag]={href:de.href,title:de.title});continue}if(de=this.tokenizer.table(k)){k=k.substring(de.raw.length),Y.push(de);continue}if(de=this.tokenizer.lheading(k)){k=k.substring(de.raw.length),Y.push(de);continue}if(pe&&(de=this.tokenizer.paragraph(k))){k=k.substring(de.raw.length),Y.push(de);continue}if(de=this.tokenizer.text(k)){k=k.substring(de.raw.length),Ye=Y[Y.length-1],Ye&&Ye.type==="text"?(Ye.raw+=`
|
|
`+de.raw,Ye.text+=`
|
|
`+de.text):Y.push(de);continue}if(k){var dt="Infinite loop on byte: "+k.charCodeAt(0);if(this.options.silent){console.error(dt);break}else throw new Error(dt)}}return Y},ge.inline=function(k){var Y,pe,de,xe,Be,Ye,dt=k.length;for(Y=0;Y<dt;Y++)switch(Ye=k[Y],Ye.type){case"paragraph":case"text":case"heading":{Ye.tokens=[],this.inlineTokens(Ye.text,Ye.tokens);break}case"table":{for(Ye.tokens={header:[],cells:[]},xe=Ye.header.length,pe=0;pe<xe;pe++)Ye.tokens.header[pe]=[],this.inlineTokens(Ye.header[pe],Ye.tokens.header[pe]);for(xe=Ye.cells.length,pe=0;pe<xe;pe++)for(Be=Ye.cells[pe],Ye.tokens.cells[pe]=[],de=0;de<Be.length;de++)Ye.tokens.cells[pe][de]=[],this.inlineTokens(Be[de],Ye.tokens.cells[pe][de]);break}case"blockquote":{this.inline(Ye.tokens);break}case"list":{for(xe=Ye.items.length,pe=0;pe<xe;pe++)this.inline(Ye.items[pe].tokens);break}}return k},ge.inlineTokens=function(k,Y,pe,de){Y===void 0&&(Y=[]),pe===void 0&&(pe=!1),de===void 0&&(de=!1);var xe,Be,Ye=k,dt,nt,Ue;if(this.tokens.links){var I=Object.keys(this.tokens.links);if(I.length>0)for(;(dt=this.tokenizer.rules.inline.reflinkSearch.exec(Ye))!=null;)I.includes(dt[0].slice(dt[0].lastIndexOf("[")+1,-1))&&(Ye=Ye.slice(0,dt.index)+"["+Oe("a",dt[0].length-2)+"]"+Ye.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(dt=this.tokenizer.rules.inline.blockSkip.exec(Ye))!=null;)Ye=Ye.slice(0,dt.index)+"["+Oe("a",dt[0].length-2)+"]"+Ye.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(dt=this.tokenizer.rules.inline.escapedEmSt.exec(Ye))!=null;)Ye=Ye.slice(0,dt.index)+"++"+Ye.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;k;){if(nt||(Ue=""),nt=!1,xe=this.tokenizer.escape(k)){k=k.substring(xe.raw.length),Y.push(xe);continue}if(xe=this.tokenizer.tag(k,pe,de)){k=k.substring(xe.raw.length),pe=xe.inLink,de=xe.inRawBlock;var K=Y[Y.length-1];K&&xe.type==="text"&&K.type==="text"?(K.raw+=xe.raw,K.text+=xe.text):Y.push(xe);continue}if(xe=this.tokenizer.link(k)){k=k.substring(xe.raw.length),xe.type==="link"&&(xe.tokens=this.inlineTokens(xe.text,[],!0,de)),Y.push(xe);continue}if(xe=this.tokenizer.reflink(k,this.tokens.links)){k=k.substring(xe.raw.length);var S=Y[Y.length-1];xe.type==="link"?(xe.tokens=this.inlineTokens(xe.text,[],!0,de),Y.push(xe)):S&&xe.type==="text"&&S.type==="text"?(S.raw+=xe.raw,S.text+=xe.text):Y.push(xe);continue}if(xe=this.tokenizer.emStrong(k,Ye,Ue)){k=k.substring(xe.raw.length),xe.tokens=this.inlineTokens(xe.text,[],pe,de),Y.push(xe);continue}if(xe=this.tokenizer.codespan(k)){k=k.substring(xe.raw.length),Y.push(xe);continue}if(xe=this.tokenizer.br(k)){k=k.substring(xe.raw.length),Y.push(xe);continue}if(xe=this.tokenizer.del(k)){k=k.substring(xe.raw.length),xe.tokens=this.inlineTokens(xe.text,[],pe,de),Y.push(xe);continue}if(xe=this.tokenizer.autolink(k,j)){k=k.substring(xe.raw.length),Y.push(xe);continue}if(!pe&&(xe=this.tokenizer.url(k,j))){k=k.substring(xe.raw.length),Y.push(xe);continue}if(xe=this.tokenizer.inlineText(k,de,we)){k=k.substring(xe.raw.length),xe.raw.slice(-1)!=="_"&&(Ue=xe.raw.slice(-1)),nt=!0,Be=Y[Y.length-1],Be&&Be.type==="text"?(Be.raw+=xe.raw,Be.text+=xe.text):Y.push(xe);continue}if(k){var je="Infinite loop on byte: "+k.charCodeAt(0);if(this.options.silent){console.error(je);break}else throw new Error(je)}}return Y},_(se,null,[{key:"rules",get:function(){return{block:qe,inline:ht}}}]),se}(),Xe=ae.exports.defaults,J=G.cleanUrl,M=G.escape,Se=function(){function se(Ee){this.options=Ee||Xe}var ge=se.prototype;return ge.code=function(k,Y,pe){var de=(Y||"").match(/\S*/)[0];if(this.options.highlight){var xe=this.options.highlight(k,de);xe!=null&&xe!==k&&(pe=!0,k=xe)}return k=k.replace(/\n$/,"")+`
|
|
`,de?'<pre><code class="'+this.options.langPrefix+M(de,!0)+'">'+(pe?k:M(k,!0))+`</code></pre>
|
|
`:"<pre><code>"+(pe?k:M(k,!0))+`</code></pre>
|
|
`},ge.blockquote=function(k){return`<blockquote>
|
|
`+k+`</blockquote>
|
|
`},ge.html=function(k){return k},ge.heading=function(k,Y,pe,de){return this.options.headerIds?"<h"+Y+' id="'+this.options.headerPrefix+de.slug(pe)+'">'+k+"</h"+Y+`>
|
|
`:"<h"+Y+">"+k+"</h"+Y+`>
|
|
`},ge.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},ge.list=function(k,Y,pe){var de=Y?"ol":"ul",xe=Y&&pe!==1?' start="'+pe+'"':"";return"<"+de+xe+`>
|
|
`+k+"</"+de+`>
|
|
`},ge.listitem=function(k){return"<li>"+k+`</li>
|
|
`},ge.checkbox=function(k){return"<input "+(k?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},ge.paragraph=function(k){return"<p>"+k+`</p>
|
|
`},ge.table=function(k,Y){return Y&&(Y="<tbody>"+Y+"</tbody>"),`<table>
|
|
<thead>
|
|
`+k+`</thead>
|
|
`+Y+`</table>
|
|
`},ge.tablerow=function(k){return`<tr>
|
|
`+k+`</tr>
|
|
`},ge.tablecell=function(k,Y){var pe=Y.header?"th":"td",de=Y.align?"<"+pe+' align="'+Y.align+'">':"<"+pe+">";return de+k+"</"+pe+`>
|
|
`},ge.strong=function(k){return"<strong>"+k+"</strong>"},ge.em=function(k){return"<em>"+k+"</em>"},ge.codespan=function(k){return"<code>"+k+"</code>"},ge.br=function(){return this.options.xhtml?"<br/>":"<br>"},ge.del=function(k){return"<del>"+k+"</del>"},ge.link=function(k,Y,pe){if(k=J(this.options.sanitize,this.options.baseUrl,k),k===null)return pe;var de='<a href="'+M(k)+'"';return Y&&(de+=' title="'+Y+'"'),de+=">"+pe+"</a>",de},ge.image=function(k,Y,pe){if(k=J(this.options.sanitize,this.options.baseUrl,k),k===null)return pe;var de='<img src="'+k+'" alt="'+pe+'"';return Y&&(de+=' title="'+Y+'"'),de+=this.options.xhtml?"/>":">",de},ge.text=function(k){return k},se}(),be=function(){function se(){}var ge=se.prototype;return ge.strong=function(k){return k},ge.em=function(k){return k},ge.codespan=function(k){return k},ge.del=function(k){return k},ge.html=function(k){return k},ge.text=function(k){return k},ge.link=function(k,Y,pe){return""+pe},ge.image=function(k,Y,pe){return""+pe},ge.br=function(){return""},se}(),W=function(){function se(){this.seen={}}var ge=se.prototype;return ge.serialize=function(k){return k.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},ge.getNextSafeSlug=function(k,Y){var pe=k,de=0;if(this.seen.hasOwnProperty(pe)){de=this.seen[k];do de++,pe=k+"-"+de;while(this.seen.hasOwnProperty(pe))}return Y||(this.seen[k]=de,this.seen[pe]=0),pe},ge.slug=function(k,Y){Y===void 0&&(Y={});var pe=this.serialize(k);return this.getNextSafeSlug(pe,Y.dryrun)},se}(),fe=Se,ye=be,tt=W,We=ae.exports.defaults,$e=G.unescape,et=function(){function se(Ee){this.options=Ee||We,this.options.renderer=this.options.renderer||new fe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ye,this.slugger=new tt}se.parse=function(k,Y){var pe=new se(Y);return pe.parse(k)},se.parseInline=function(k,Y){var pe=new se(Y);return pe.parseInline(k)};var ge=se.prototype;return ge.parse=function(k,Y){Y===void 0&&(Y=!0);var pe="",de,xe,Be,Ye,dt,nt,Ue,I,K,S,je,De,Le,He,Ge,ft,kt,Mt,fn=k.length;for(de=0;de<fn;de++)switch(S=k[de],S.type){case"space":continue;case"hr":{pe+=this.renderer.hr();continue}case"heading":{pe+=this.renderer.heading(this.parseInline(S.tokens),S.depth,$e(this.parseInline(S.tokens,this.textRenderer)),this.slugger);continue}case"code":{pe+=this.renderer.code(S.text,S.lang,S.escaped);continue}case"table":{for(I="",Ue="",Ye=S.header.length,xe=0;xe<Ye;xe++)Ue+=this.renderer.tablecell(this.parseInline(S.tokens.header[xe]),{header:!0,align:S.align[xe]});for(I+=this.renderer.tablerow(Ue),K="",Ye=S.cells.length,xe=0;xe<Ye;xe++){for(nt=S.tokens.cells[xe],Ue="",dt=nt.length,Be=0;Be<dt;Be++)Ue+=this.renderer.tablecell(this.parseInline(nt[Be]),{header:!1,align:S.align[Be]});K+=this.renderer.tablerow(Ue)}pe+=this.renderer.table(I,K);continue}case"blockquote":{K=this.parse(S.tokens),pe+=this.renderer.blockquote(K);continue}case"list":{for(je=S.ordered,De=S.start,Le=S.loose,Ye=S.items.length,K="",xe=0;xe<Ye;xe++)Ge=S.items[xe],ft=Ge.checked,kt=Ge.task,He="",Ge.task&&(Mt=this.renderer.checkbox(ft),Le?Ge.tokens.length>0&&Ge.tokens[0].type==="text"?(Ge.tokens[0].text=Mt+" "+Ge.tokens[0].text,Ge.tokens[0].tokens&&Ge.tokens[0].tokens.length>0&&Ge.tokens[0].tokens[0].type==="text"&&(Ge.tokens[0].tokens[0].text=Mt+" "+Ge.tokens[0].tokens[0].text)):Ge.tokens.unshift({type:"text",text:Mt}):He+=Mt),He+=this.parse(Ge.tokens,Le),K+=this.renderer.listitem(He,kt,ft);pe+=this.renderer.list(K,je,De);continue}case"html":{pe+=this.renderer.html(S.text);continue}case"paragraph":{pe+=this.renderer.paragraph(this.parseInline(S.tokens));continue}case"text":{for(K=S.tokens?this.parseInline(S.tokens):S.text;de+1<fn&&k[de+1].type==="text";)S=k[++de],K+=`
|
|
`+(S.tokens?this.parseInline(S.tokens):S.text);pe+=Y?this.renderer.paragraph(K):K;continue}default:{var Pe='Token with "'+S.type+'" type was not found.';if(this.options.silent){console.error(Pe);return}else throw new Error(Pe)}}return pe},ge.parseInline=function(k,Y){Y=Y||this.renderer;var pe="",de,xe,Be=k.length;for(de=0;de<Be;de++)switch(xe=k[de],xe.type){case"escape":{pe+=Y.text(xe.text);break}case"html":{pe+=Y.html(xe.text);break}case"link":{pe+=Y.link(xe.href,xe.title,this.parseInline(xe.tokens,Y));break}case"image":{pe+=Y.image(xe.href,xe.title,xe.text);break}case"strong":{pe+=Y.strong(this.parseInline(xe.tokens,Y));break}case"em":{pe+=Y.em(this.parseInline(xe.tokens,Y));break}case"codespan":{pe+=Y.codespan(xe.text);break}case"br":{pe+=Y.br();break}case"del":{pe+=Y.del(this.parseInline(xe.tokens,Y));break}case"text":{pe+=Y.text(xe.text);break}default:{var Ye='Token with "'+xe.type+'" type was not found.';if(this.options.silent){console.error(Ye);return}else throw new Error(Ye)}}return pe},se}(),ct=ze,ce=et,Z=rt,N=Se,Ie=be,Ce=W,Ae=G.merge,st=G.checkSanitizeDeprecation,lt=G.escape,Fe=ae.exports.getDefaults,_t=ae.exports.changeDefaults,Ht=ae.exports.defaults;function St(se,ge,Ee){if(typeof se=="undefined"||se===null)throw new Error("marked(): input parameter is undefined or null");if(typeof se!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(se)+", string expected");if(typeof ge=="function"&&(Ee=ge,ge=null),ge=Ae({},St.defaults,ge||{}),st(ge),Ee){var k=ge.highlight,Y;try{Y=ct.lex(se,ge)}catch(Be){return Ee(Be)}var pe=function(Ye){var dt;if(!Ye)try{ge.walkTokens&&St.walkTokens(Y,ge.walkTokens),dt=ce.parse(Y,ge)}catch(nt){Ye=nt}return ge.highlight=k,Ye?Ee(Ye):Ee(null,dt)};if(!k||k.length<3||(delete ge.highlight,!Y.length))return pe();var de=0;St.walkTokens(Y,function(Be){Be.type==="code"&&(de++,setTimeout(function(){k(Be.text,Be.lang,function(Ye,dt){if(Ye)return pe(Ye);dt!=null&&dt!==Be.text&&(Be.text=dt,Be.escaped=!0),de--,de===0&&pe()})},0))}),de===0&&pe();return}try{var xe=ct.lex(se,ge);return ge.walkTokens&&St.walkTokens(xe,ge.walkTokens),ce.parse(xe,ge)}catch(Be){if(Be.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,ge.silent)return"<p>An error occurred:</p><pre>"+lt(Be.message+"",!0)+"</pre>";throw Be}}St.options=St.setOptions=function(se){return Ae(St.defaults,se),_t(St.defaults),St},St.getDefaults=Fe,St.defaults=Ht,St.use=function(se){var ge=Ae({},se);if(se.renderer&&function(){var k=St.defaults.renderer||new N,Y=function(xe){var Be=k[xe];k[xe]=function(){for(var Ye=arguments.length,dt=new Array(Ye),nt=0;nt<Ye;nt++)dt[nt]=arguments[nt];var Ue=se.renderer[xe].apply(k,dt);return Ue===!1&&(Ue=Be.apply(k,dt)),Ue}};for(var pe in se.renderer)Y(pe);ge.renderer=k}(),se.tokenizer&&function(){var k=St.defaults.tokenizer||new Z,Y=function(xe){var Be=k[xe];k[xe]=function(){for(var Ye=arguments.length,dt=new Array(Ye),nt=0;nt<Ye;nt++)dt[nt]=arguments[nt];var Ue=se.tokenizer[xe].apply(k,dt);return Ue===!1&&(Ue=Be.apply(k,dt)),Ue}};for(var pe in se.tokenizer)Y(pe);ge.tokenizer=k}(),se.walkTokens){var Ee=St.defaults.walkTokens;ge.walkTokens=function(k){se.walkTokens(k),Ee&&Ee(k)}}St.setOptions(ge)},St.walkTokens=function(se,ge){for(var Ee=z(se),k;!(k=Ee()).done;){var Y=k.value;switch(ge(Y),Y.type){case"table":{for(var pe=z(Y.tokens.header),de;!(de=pe()).done;){var xe=de.value;St.walkTokens(xe,ge)}for(var Be=z(Y.tokens.cells),Ye;!(Ye=Be()).done;)for(var dt=Ye.value,nt=z(dt),Ue;!(Ue=nt()).done;){var I=Ue.value;St.walkTokens(I,ge)}break}case"list":{St.walkTokens(Y.items,ge);break}default:Y.tokens&&St.walkTokens(Y.tokens,ge)}}},St.parseInline=function(se,ge){if(typeof se=="undefined"||se===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof se!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(se)+", string expected");ge=Ae({},St.defaults,ge||{}),st(ge);try{var Ee=ct.lexInline(se,ge);return ge.walkTokens&&St.walkTokens(Ee,ge.walkTokens),ce.parseInline(Ee,ge)}catch(k){if(k.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,ge.silent)return"<p>An error occurred:</p><pre>"+lt(k.message+"",!0)+"</pre>";throw k}},St.Parser=ce,St.parser=ce.parse,St.Renderer=N,St.TextRenderer=Ie,St.Lexer=ct,St.lexer=ct.lex,St.Tokenizer=Z,St.Slugger=Ce,St.parse=St;var Bt=St;return Bt})},11690:function(Pn){const Xt=/[&<>"']/,_=/[&<>"']/g,h=/[<>"']|&(?!#?\w+;)/,ue=/[<>"']|&(?!#?\w+;)/g,z={"&":"&","<":"<",">":">",'"':""","'":"'"},ae=$=>z[$];function B($,oe){if(oe){if(Xt.test($))return $.replace(_,ae)}else if(h.test($))return $.replace(ue,ae);return $}const d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function _e($){return $.replace(d,(oe,ve)=>(ve=ve.toLowerCase(),ve==="colon"?":":ve.charAt(0)==="#"?ve.charAt(1)==="x"?String.fromCharCode(parseInt(ve.substring(2),16)):String.fromCharCode(+ve.substring(1)):""))}const te=/(^|[^\[])\^/g;function o($,oe){$=$.source||$,oe=oe||"";const ve={replace:(he,ot)=>(ot=ot.source||ot,ot=ot.replace(te,"$1"),$=$.replace(he,ot),ve),getRegex:()=>new RegExp($,oe)};return ve}const g=/[^\w:]/g,A=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function p($,oe,ve){if($){let he;try{he=decodeURIComponent(_e(ve)).replace(g,"").toLowerCase()}catch(ot){return null}if(he.indexOf("javascript:")===0||he.indexOf("vbscript:")===0||he.indexOf("data:")===0)return null}oe&&!A.test(ve)&&(ve=q(oe,ve));try{ve=encodeURI(ve).replace(/%25/g,"%")}catch(he){return null}return ve}const E={},b=/^[^:]+:\/*[^/]*$/,L=/^([^:]+:)[\s\S]*$/,V=/^([^:]+:\/*[^/]*)[\s\S]*$/;function q($,oe){E[" "+$]||(b.test($)?E[" "+$]=$+"/":E[" "+$]=R($,"/",!0)),$=E[" "+$];const ve=$.indexOf(":")===-1;return oe.substring(0,2)==="//"?ve?oe:$.replace(L,"$1")+oe:oe.charAt(0)==="/"?ve?oe:$.replace(V,"$1")+oe:$+oe}const le={exec:function(){}};function F($){let oe=1,ve,he;for(;oe<arguments.length;oe++){ve=arguments[oe];for(he in ve)Object.prototype.hasOwnProperty.call(ve,he)&&($[he]=ve[he])}return $}function H($,oe){const ve=$.replace(/\|/g,(U,C,P)=>{let G=!1,ie=C;for(;--ie>=0&&P[ie]==="\\";)G=!G;return G?"|":" |"}),he=ve.split(/ \|/);let ot=0;if(he.length>oe)he.splice(oe);else for(;he.length<oe;)he.push("");for(;ot<he.length;ot++)he[ot]=he[ot].trim().replace(/\\\|/g,"|");return he}function R($,oe,ve){const he=$.length;if(he===0)return"";let ot=0;for(;ot<he;){const U=$.charAt(he-ot-1);if(U===oe&&!ve)ot++;else if(U!==oe&&ve)ot++;else break}return $.substr(0,he-ot)}function w($,oe){if($.indexOf(oe[1])===-1)return-1;const ve=$.length;let he=0,ot=0;for(;ot<ve;ot++)if($[ot]==="\\")ot++;else if($[ot]===oe[0])he++;else if($[ot]===oe[1]&&(he--,he<0))return ot;return-1}function Q($){$&&$.sanitize&&!$.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 re($,oe){if(oe<1)return"";let ve="";for(;oe>1;)oe&1&&(ve+=$),oe>>=1,$+=$;return ve+$}Pn.exports={escape:B,unescape:_e,edit:o,cleanUrl:p,resolveUrl:q,noopTest:le,merge:F,splitCells:H,rtrim:R,findClosingBracket:w,checkSanitizeDeprecation:Q,repeatString:re}},75918:function(Pn,Xt,_){"use strict";_.d(Xt,{Wi:function(){return d},Z0:function(){return _e},aU:function(){return B},eZ:function(){return o},wY:function(){return te}});var h=_(4348),ue=_(69323),z=_(13268),ae=function(g,A,p,E){function b(L){return L instanceof p?L:new p(function(V){V(L)})}return new(p||(p=Promise))(function(L,V){function q(H){try{F(E.next(H))}catch(R){V(R)}}function le(H){try{F(E.throw(H))}catch(R){V(R)}}function F(H){H.done?L(H.value):b(H.value).then(q,le)}F((E=E.apply(g,A||[])).next())})};class B extends ue.JT{constructor(A,p="",E="",b=!0,L){super(),this._onDidChange=this._register(new h.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=A,this._label=p,this._cssClass=E,this._enabled=b,this._actionCallback=L}get id(){return this._id}get label(){return this._label}set label(A){this._setLabel(A)}_setLabel(A){this._label!==A&&(this._label=A,this._onDidChange.fire({label:A}))}get tooltip(){return this._tooltip||""}set tooltip(A){this._setTooltip(A)}_setTooltip(A){this._tooltip!==A&&(this._tooltip=A,this._onDidChange.fire({tooltip:A}))}get class(){return this._cssClass}set class(A){this._setClass(A)}_setClass(A){this._cssClass!==A&&(this._cssClass=A,this._onDidChange.fire({class:A}))}get enabled(){return this._enabled}set enabled(A){this._setEnabled(A)}_setEnabled(A){this._enabled!==A&&(this._enabled=A,this._onDidChange.fire({enabled:A}))}get checked(){return this._checked}set checked(A){this._setChecked(A)}_setChecked(A){this._checked!==A&&(this._checked=A,this._onDidChange.fire({checked:A}))}run(A,p){return ae(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(A))})}}class d extends ue.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new h.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new h.Q5),this.onDidRun=this._onDidRun.event}run(A,p){return ae(this,void 0,void 0,function*(){if(!A.enabled)return;this._onBeforeRun.fire({action:A});let E;try{yield this.runAction(A,p)}catch(b){E=b}this._onDidRun.fire({action:A,error:E})})}runAction(A,p){return ae(this,void 0,void 0,function*(){yield A.run(p)})}}class _e extends B{constructor(A){super(_e.ID,A,A?"separator text":"separator"),this.checked=!1,this.enabled=!1}}_e.ID="vs.actions.separator";class te{constructor(A,p,E,b){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=A,this.label=p,this.class=b,this._actions=E}get actions(){return this._actions}dispose(){}run(){return ae(this,void 0,void 0,function*(){})}}class o extends B{constructor(){super(o.ID,z.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(Pn,Xt,_){"use strict";_.d(Xt,{ok:function(){return h}});function h(ue,z){if(!ue)throw new Error(z?`Assertion failed (${z})`:"Assertion Failed")}},52615:function(Pn,Xt,_){"use strict";_.d(Xt,{CM:function(){return B},JL:function(){return d},dT:function(){return te},fK:function(){return ae},lA:function(){return _e}});var h=_(4348);class ue{constructor(){this._icons=new Map,this._onDidRegister=new h.Q5}add(g){const A=this._icons.get(g.id);A?g.description?A.description=g.description:console.error(`Duplicate registration of codicon ${g.id}`):(this._icons.set(g.id,g),this._onDidRegister.fire(g))}get(g){return this._icons.get(g)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const z=new ue,ae=z;function B(o,g){return new _e(o,g)}function d(o){return o?o.replace(/\$\((.*?)\)/g,(g,A)=>` ${A} `).trim():""}class _e{constructor(g,A,p){this.id=g,this.definition=A,this.description=p,z.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var te;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const g=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function A(b){if(b instanceof _e)return["codicon","codicon-"+b.id];const L=g.exec(b.id);if(!L)return A(_e.error);let[,V,q]=L;const le=["codicon","codicon-"+V];return q&&le.push("codicon-modifier-"+q.substr(1)),le}o.asClassNameArray=A;function p(b){return A(b).join(" ")}o.asClassName=p;function E(b){return"."+A(b).join(".")}o.asCSSSelector=E})(te||(te={})),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"})}(_e||(_e={}))},79881:function(Pn,Xt,_){"use strict";_.d(Xt,{B8:function(){return A},Cp:function(){return ae},F0:function(){return te},L6:function(){return g},VV:function(){return _e},b1:function(){return o},dL:function(){return z},ri:function(){return B}});class h{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(E){setTimeout(()=>{throw E.stack?new Error(E.message+`
|
|
|
|
`+E.stack):E},0)}}emit(E){this.listeners.forEach(b=>{b(E)})}onUnexpectedError(E){this.unexpectedErrorHandler(E),this.emit(E)}onUnexpectedExternalError(E){this.unexpectedErrorHandler(E)}}const ue=new h;function z(p){_e(p)||ue.onUnexpectedError(p)}function ae(p){_e(p)||ue.onUnexpectedExternalError(p)}function B(p){if(p instanceof Error){let{name:E,message:b}=p;const L=p.stacktrace||p.stack;return{$isError:!0,name:E,message:b,stack:L}}return p}const d="Canceled";function _e(p){return p instanceof Error&&p.name===d&&p.message===d}function te(){const p=new Error(d);return p.name=p.message,p}function o(p){return p?new Error(`Illegal argument: ${p}`):new Error("Illegal argument")}function g(p){return p?new Error(`Illegal state: ${p}`):new Error("Illegal state")}class A extends Error{constructor(E){super("NotSupported"),E&&(this.message=E)}}},4348:function(Pn,Xt,_){"use strict";_.d(Xt,{D0:function(){return A},E7:function(){return p},K3:function(){return g},Q5:function(){return o},ZD:function(){return E},ju:function(){return B}});var h=_(79881),ue=_(69323),z=_(34502),ae=_(95830),B;(function(b){b.None=()=>ue.JT.None;function L(P){return(G,ie=null,X)=>{let y=!1,v;return v=P(O=>{if(!y)return v?v.dispose():y=!0,G.call(ie,O)},null,X),y&&v.dispose(),v}}b.once=L;function V(P,G){return w((ie,X=null,y)=>P(v=>ie.call(X,G(v)),null,y))}b.map=V;function q(P,G){return w((ie,X=null,y)=>P(v=>{G(v),ie.call(X,v)},null,y))}b.forEach=q;function le(P,G){return w((ie,X=null,y)=>P(v=>G(v)&&ie.call(X,v),null,y))}b.filter=le;function F(P){return P}b.signal=F;function H(...P){return(G,ie=null,X)=>(0,ue.F8)(...P.map(y=>y(v=>G.call(ie,v),null,X)))}b.any=H;function R(P,G,ie){let X=ie;return V(P,y=>(X=G(X,y),X))}b.reduce=R;function w(P){let G;const ie=new o({onFirstListenerAdd(){G=P(ie.fire,ie)},onLastListenerRemove(){G.dispose()}});return ie.event}function Q(P,G,ie=100,X=!1,y){let v,O,me,Qe=0;const rt=new o({leakWarningThreshold:y,onFirstListenerAdd(){v=P(Ct=>{Qe++,O=G(O,Ct),X&&!me&&(rt.fire(O),O=void 0),clearTimeout(me),me=setTimeout(()=>{const Rt=O;O=void 0,me=void 0,(!X||Qe>1)&&rt.fire(Rt),Qe=0},ie)})},onLastListenerRemove(){v.dispose()}});return rt.event}b.debounce=Q;function re(P,G=(ie,X)=>ie===X){let ie=!0,X;return le(P,y=>{const v=ie||!G(y,X);return ie=!1,X=y,v})}b.latch=re;function $(P,G){return[b.filter(P,G),b.filter(P,ie=>!G(ie))]}b.split=$;function oe(P,G=!1,ie=[]){let X=ie.slice(),y=P(me=>{X?X.push(me):O.fire(me)});const v=()=>{X&&X.forEach(me=>O.fire(me)),X=null},O=new o({onFirstListenerAdd(){y||(y=P(me=>O.fire(me)))},onFirstListenerDidAdd(){X&&(G?setTimeout(v):v())},onLastListenerRemove(){y&&y.dispose(),y=null}});return O.event}b.buffer=oe;class ve{constructor(G){this.event=G}map(G){return new ve(V(this.event,G))}forEach(G){return new ve(q(this.event,G))}filter(G){return new ve(le(this.event,G))}reduce(G,ie){return new ve(R(this.event,G,ie))}latch(){return new ve(re(this.event))}debounce(G,ie=100,X=!1,y){return new ve(Q(this.event,G,ie,X,y))}on(G,ie,X){return this.event(G,ie,X)}once(G,ie,X){return L(this.event)(G,ie,X)}}function he(P){return new ve(P)}b.chain=he;function ot(P,G,ie=X=>X){const X=(...me)=>O.fire(ie(...me)),y=()=>P.on(G,X),v=()=>P.removeListener(G,X),O=new o({onFirstListenerAdd:y,onLastListenerRemove:v});return O.event}b.fromNodeEventEmitter=ot;function U(P,G,ie=X=>X){const X=(...me)=>O.fire(ie(...me)),y=()=>P.addEventListener(G,X),v=()=>P.removeEventListener(G,X),O=new o({onFirstListenerAdd:y,onLastListenerRemove:v});return O.event}b.fromDOMEventEmitter=U;function C(P){return new Promise(G=>L(P)(G))}b.toPromise=C})(B||(B={}));class d{constructor(L){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${L}_${d._idPool++}`}start(L){this._stopWatch=new ae.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 _e=-1;class te{constructor(L,V=Math.random().toString(18).slice(2,5)){this.customThreshold=L,this.name=V,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(L){let V=_e;if(typeof this.customThreshold=="number"&&(V=this.customThreshold),V<=0||L<V)return;this._stacks||(this._stacks=new Map);const q=new Error().stack.split(`
|
|
`).slice(3).join(`
|
|
`),le=this._stacks.get(q)||0;if(this._stacks.set(q,le+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=V*.5;let F,H=0;for(const[R,w]of this._stacks)(!F||H<w)&&(F=R,H=w);console.warn(`[${this.name}] potential listener LEAK detected, having ${L} listeners already. MOST frequent listener (${H}):`),console.warn(F)}return()=>{const F=this._stacks.get(q)||0;this._stacks.set(q,F-1)}}}class o{constructor(L){var V;this._disposed=!1,this._options=L,this._leakageMon=_e>0?new te(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((V=this._options)===null||V===void 0)&&V._profName?new d(this._options._profName):void 0}get event(){return this._event||(this._event=(L,V,q)=>{var le;this._listeners||(this._listeners=new z.S);const F=this._listeners.isEmpty();F&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const H=this._listeners.push(V?[L,V]:L);F&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,L,V);const R=(le=this._leakageMon)===null||le===void 0?void 0:le.check(this._listeners.size),w=(0,ue.OF)(()=>{R&&R(),this._disposed||(H(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return q instanceof ue.SL?q.add(w):Array.isArray(q)&&q.push(w),w}),this._event}fire(L){var V,q;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new z.S);for(let le of this._listeners)this._deliveryQueue.push([le,L]);for((V=this._perfMon)===null||V===void 0||V.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[le,F]=this._deliveryQueue.shift();try{typeof le=="function"?le.call(void 0,F):le[0].call(le[1],F)}catch(H){(0,h.dL)(H)}}(q=this._perfMon)===null||q===void 0||q.stop()}}dispose(){var L,V,q,le,F;this._disposed||(this._disposed=!0,(L=this._listeners)===null||L===void 0||L.clear(),(V=this._deliveryQueue)===null||V===void 0||V.clear(),(le=(q=this._options)===null||q===void 0?void 0:q.onLastListenerRemove)===null||le===void 0||le.call(q),(F=this._leakageMon)===null||F===void 0||F.dispose())}}class g extends o{constructor(L){super(L),this._isPaused=0,this._eventQueue=new z.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 A extends g{constructor(L){var V;super(L),this._delay=(V=L.delay)!==null&&V!==void 0?V:100}fire(L){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(L)}}class p{constructor(){this.buffers=[]}wrapEvent(L){return(V,q,le)=>L(F=>{const H=this.buffers[this.buffers.length-1];H?H.push(()=>V.call(q,F)):V.call(q,F)},void 0,le)}bufferEvents(L){const V=[];this.buffers.push(V);const q=L();return this.buffers.pop(),V.forEach(le=>le()),q}}class E{constructor(){this.listening=!1,this.inputEvent=B.None,this.inputEventListener=ue.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(Pn,Xt,_){"use strict";_.d(Xt,{I:function(){return h}});function h(ue){const z=this;let ae=!1,B;return function(){return ae||(ae=!0,B=ue.apply(z,arguments)),B}}},88226:function(Pn,Xt,_){"use strict";_.d(Xt,{$:function(){return h}});var h;(function(ue){function z(H){return H&&typeof H=="object"&&typeof H[Symbol.iterator]=="function"}ue.is=z;const ae=Object.freeze([]);function B(){return ae}ue.empty=B;function*d(H){yield H}ue.single=d;function _e(H){return H||ae}ue.from=_e;function te(H){return!H||H[Symbol.iterator]().next().done===!0}ue.isEmpty=te;function o(H){return H[Symbol.iterator]().next().value}ue.first=o;function g(H,R){for(const w of H)if(R(w))return!0;return!1}ue.some=g;function A(H,R){for(const w of H)if(R(w))return w}ue.find=A;function*p(H,R){for(const w of H)R(w)&&(yield w)}ue.filter=p;function*E(H,R){let w=0;for(const Q of H)yield R(Q,w++)}ue.map=E;function*b(...H){for(const R of H)for(const w of R)yield w}ue.concat=b;function*L(H){for(const R of H)for(const w of R)yield w}ue.concatNested=L;function V(H,R,w){let Q=w;for(const re of H)Q=R(Q,re);return Q}ue.reduce=V;function*q(H,R,w=H.length){for(R<0&&(R+=H.length),w<0?w+=H.length:w>H.length&&(w=H.length);R<w;R++)yield H[R]}ue.slice=q;function le(H,R=Number.POSITIVE_INFINITY){const w=[];if(R===0)return[w,H];const Q=H[Symbol.iterator]();for(let re=0;re<R;re++){const $=Q.next();if($.done)return[w,ue.empty()];w.push($.value)}return[w,{[Symbol.iterator](){return Q}}]}ue.consume=le;function F(H,R,w=(Q,re)=>Q===re){const Q=H[Symbol.iterator](),re=R[Symbol.iterator]();for(;;){const $=Q.next(),oe=re.next();if($.done!==oe.done)return!1;if($.done)return!0;if(!w($.value,oe.value))return!1}}ue.equals=F})(h||(h={}))},69323:function(Pn,Xt,_){"use strict";_.d(Xt,{B9:function(){return E},F8:function(){return b},JT:function(){return q},Jz:function(){return F},OF:function(){return L},SL:function(){return V},Wf:function(){return p},XK:function(){return le},dk:function(){return g}});var h=_(17845),ue=_(88226);const z=!1;let ae=null;function B(H){ae=H}if(z){const H="__is_disposable_tracked__";B(new class{trackDisposable(R){const w=new Error("Potentially leaked disposable").stack;setTimeout(()=>{R[H]||console.log(w)},3e3)}setParent(R,w){if(R&&R!==q.None)try{R[H]=!0}catch(Q){}}markAsDisposed(R){if(R&&R!==q.None)try{R[H]=!0}catch(w){}}markAsSingleton(R){}})}function d(H){return ae==null||ae.trackDisposable(H),H}function _e(H){ae==null||ae.markAsDisposed(H)}function te(H,R){ae==null||ae.setParent(H,R)}function o(H,R){if(ae)for(const w of H)ae.setParent(w,R)}function g(H){return ae==null||ae.markAsSingleton(H),H}class A extends Error{constructor(R){super(`Encountered errors while disposing of store. Errors: [${R.join(", ")}]`),this.errors=R}}function p(H){return typeof H.dispose=="function"&&H.dispose.length===0}function E(H){if(ue.$.is(H)){let R=[];for(const w of H)if(w)try{w.dispose()}catch(Q){R.push(Q)}if(R.length===1)throw R[0];if(R.length>1)throw new A(R);return Array.isArray(H)?[]:H}else if(H)return H.dispose(),H}function b(...H){const R=L(()=>E(H));return o(H,R),R}function L(H){const R=d({dispose:(0,h.I)(()=>{_e(R),H()})});return R}class V{constructor(){this._toDispose=new Set,this._isDisposed=!1,d(this)}dispose(){this._isDisposed||(_e(this),this._isDisposed=!0,this.clear())}clear(){try{E(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 te(R,this),this._isDisposed?V.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}}V.DISABLE_DISPOSED_WARNING=!1;class q{constructor(){this._store=new V,d(this),te(this._store,this)}dispose(){_e(this),this._store.dispose()}_register(R){if(R===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(R)}}q.None=Object.freeze({dispose(){}});class le{constructor(){this._isDisposed=!1,d(this)}get value(){return this._isDisposed?void 0:this._value}set value(R){var w;this._isDisposed||R===this._value||((w=this._value)===null||w===void 0||w.dispose(),R&&te(R,this),this._value=R)}clear(){this.value=void 0}dispose(){var R;this._isDisposed=!0,_e(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&&te(R,null),R}}class F{constructor(R){this.object=R}dispose(){}}},34502:function(Pn,Xt,_){"use strict";_.d(Xt,{S:function(){return ue}});class h{constructor(ae){this.element=ae,this.next=h.Undefined,this.prev=h.Undefined}}h.Undefined=new h(void 0);class ue{constructor(){this._first=h.Undefined,this._last=h.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===h.Undefined}clear(){let ae=this._first;for(;ae!==h.Undefined;){const B=ae.next;ae.prev=h.Undefined,ae.next=h.Undefined,ae=B}this._first=h.Undefined,this._last=h.Undefined,this._size=0}unshift(ae){return this._insert(ae,!1)}push(ae){return this._insert(ae,!0)}_insert(ae,B){const d=new h(ae);if(this._first===h.Undefined)this._first=d,this._last=d;else if(B){const te=this._last;this._last=d,d.prev=te,te.next=d}else{const te=this._first;this._first=d,d.next=te,te.prev=d}this._size+=1;let _e=!1;return()=>{_e||(_e=!0,this._remove(d))}}shift(){if(this._first!==h.Undefined){const ae=this._first.element;return this._remove(this._first),ae}}pop(){if(this._last!==h.Undefined){const ae=this._last.element;return this._remove(this._last),ae}}_remove(ae){if(ae.prev!==h.Undefined&&ae.next!==h.Undefined){const B=ae.prev;B.next=ae.next,ae.next.prev=B}else ae.prev===h.Undefined&&ae.next===h.Undefined?(this._first=h.Undefined,this._last=h.Undefined):ae.next===h.Undefined?(this._last=this._last.prev,this._last.next=h.Undefined):ae.prev===h.Undefined&&(this._first=this._first.next,this._first.prev=h.Undefined);this._size-=1}*[Symbol.iterator](){let ae=this._first;for(;ae!==h.Undefined;)yield ae.element,ae=ae.next}}},23345:function(Pn,Xt,_){"use strict";_.d(Xt,{$L:function(){return Q},ED:function(){return F},IJ:function(){return R},OS:function(){return ve},WE:function(){return $},dz:function(){return H},gn:function(){return re},li:function(){return L},r:function(){return U},tY:function(){return w},xS:function(){return oe}});var h=_(97671),ue;const z="en";let ae=!1,B=!1,d=!1,_e=!1,te=!1,o=!1,g=!1,A,p=null,E=null,b;const L=typeof self=="object"?self:typeof _.g=="object"?_.g:{};let V;typeof L.vscode!="undefined"&&typeof L.vscode.process!="undefined"?V=L.vscode.process:typeof h!="undefined"&&(V=h);const q=typeof((ue=V==null?void 0:V.versions)===null||ue===void 0?void 0:ue.electron)=="string"&&V.type==="renderer";if(typeof navigator=="object"&&!q)b=navigator.userAgent,ae=b.indexOf("Windows")>=0,B=b.indexOf("Macintosh")>=0,g=(b.indexOf("Macintosh")>=0||b.indexOf("iPad")>=0||b.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,d=b.indexOf("Linux")>=0,o=!0,A=navigator.language,p=A;else if(typeof V=="object"){ae=V.platform==="win32",B=V.platform==="darwin",d=V.platform==="linux",_e=d&&!!V.env.SNAP&&!!V.env.SNAP_REVISION,A=z,p=z;const C=V.env.VSCODE_NLS_CONFIG;if(C)try{const P=JSON.parse(C),G=P.availableLanguages["*"];A=P.locale,p=G||z,E=P._translationsConfigFile}catch(P){}te=!0}else console.error("Unable to resolve platform.");let le=0;B?le=1:ae?le=3:d&&(le=2);const F=ae,H=B,R=d,w=te,Q=o,re=g,$=b,oe=function(){if(L.setImmediate)return L.setImmediate.bind(L);if(typeof L.postMessage=="function"&&!L.importScripts){let G=[];L.addEventListener("message",X=>{if(X.data&&X.data.vscodeSetImmediateId)for(let y=0,v=G.length;y<v;y++){const O=G[y];if(O.id===X.data.vscodeSetImmediateId){G.splice(y,1),O.callback();return}}});let ie=0;return X=>{const y=++ie;G.push({id:y,callback:X}),L.postMessage({vscodeSetImmediateId:y},"*")}}if(typeof(V==null?void 0:V.nextTick)=="function")return V.nextTick.bind(V);const P=Promise.resolve();return G=>P.then(G)}(),ve=B||g?2:ae?1:3;let he=!0,ot=!1;function U(){if(!ot){ot=!0;const C=new Uint8Array(2);C[0]=1,C[1]=2,he=new Uint16Array(C.buffer)[0]===513}return he}},95830:function(Pn,Xt,_){"use strict";_.d(Xt,{G:function(){return z}});var h=_(23345);const ue=h.li.performance&&typeof h.li.performance.now=="function";class z{constructor(B){this._highResolution=ue&&B,this._startTime=this._now(),this._stopTime=-1}static create(B=!0){return new z(B)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?h.li.performance.now():Date.now()}}},82983:function(Pn,Xt,_){"use strict";_.d(Xt,{$i:function(){return Qe},C8:function(){return Qt},GF:function(){return A},HO:function(){return ie},IO:function(){return p},K7:function(){return Vt},Kw:function(){return It},LC:function(){return L},Mh:function(){return oe},P1:function(){return ve},PJ:function(){return sn},Qe:function(){return rt},R1:function(){return g},RP:function(){return O},S6:function(){return qe},TT:function(){return F},Ut:function(){return y},V8:function(){return V},WU:function(){return z},YK:function(){return ot},YU:function(){return ae},ZG:function(){return he},ZH:function(){return C},ab:function(){return Ct},c1:function(){return Ve},df:function(){return Q},ec:function(){return B},fi:function(){return ht},fy:function(){return d},j3:function(){return _e},j_:function(){return R},m5:function(){return h},mK:function(){return w},mr:function(){return E},oH:function(){return j},oL:function(){return te},ok:function(){return $},ow:function(){return q},qq:function(){return re},qu:function(){return le},rL:function(){return U},uS:function(){return $t},un:function(){return o},uq:function(){return b},vH:function(){return G},xe:function(){return Rt},zY:function(){return H}});function h(M){return!M||typeof M!="string"?!0:M.trim().length===0}const ue=/{(\d+)}/g;function z(M,...Se){return Se.length===0?M:M.replace(ue,function(be,W){const fe=parseInt(W,10);return isNaN(fe)||fe<0||fe>=Se.length?be:Se[fe]})}function ae(M){return M.replace(/[<>&]/g,function(Se){switch(Se){case"<":return"<";case">":return">";case"&":return"&";default:return Se}})}function B(M){return M.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d(M,Se=" "){const be=_e(M,Se);return te(be,Se)}function _e(M,Se){if(!M||!Se)return M;const be=Se.length;if(be===0||M.length===0)return M;let W=0;for(;M.indexOf(Se,W)===W;)W=W+be;return M.substring(W)}function te(M,Se){if(!M||!Se)return M;const be=Se.length,W=M.length;if(be===0||W===0)return M;let fe=W,ye=-1;for(;ye=M.lastIndexOf(Se,fe-1),!(ye===-1||ye+be!==fe);){if(ye===0)return"";fe=ye}return M.substring(0,fe)}function o(M){return M.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function g(M){return M.replace(/\*/g,"")}function A(M,Se,be={}){if(!M)throw new Error("Cannot create regex from empty string");Se||(M=B(M)),be.wholeWord&&(/\B/.test(M.charAt(0))||(M="\\b"+M),/\B/.test(M.charAt(M.length-1))||(M=M+"\\b"));let W="";return be.global&&(W+="g"),be.matchCase||(W+="i"),be.multiline&&(W+="m"),be.unicode&&(W+="u"),new RegExp(M,W)}function p(M){return M.source==="^"||M.source==="^$"||M.source==="$"||M.source==="^\\s*$"?!1:!!(M.exec("")&&M.lastIndex===0)}function E(M){return(M.global?"g":"")+(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")}function b(M){return M.split(/\r\n|\r|\n/)}function L(M){for(let Se=0,be=M.length;Se<be;Se++){const W=M.charCodeAt(Se);if(W!==32&&W!==9)return Se}return-1}function V(M,Se=0,be=M.length){for(let W=Se;W<be;W++){const fe=M.charCodeAt(W);if(fe!==32&&fe!==9)return M.substring(Se,W)}return M.substring(Se,be)}function q(M,Se=M.length-1){for(let be=Se;be>=0;be--){const W=M.charCodeAt(be);if(W!==32&&W!==9)return be}return-1}function le(M,Se){return M<Se?-1:M>Se?1:0}function F(M,Se,be=0,W=M.length,fe=0,ye=Se.length){for(;be<W&&fe<ye;be++,fe++){let $e=M.charCodeAt(be),et=Se.charCodeAt(fe);if($e<et)return-1;if($e>et)return 1}const tt=W-be,We=ye-fe;return tt<We?-1:tt>We?1:0}function H(M,Se){return R(M,Se,0,M.length,0,Se.length)}function R(M,Se,be=0,W=M.length,fe=0,ye=Se.length){for(;be<W&&fe<ye;be++,fe++){let $e=M.charCodeAt(be),et=Se.charCodeAt(fe);if($e===et)continue;if($e>=128||et>=128)return F(M.toLowerCase(),Se.toLowerCase(),be,W,fe,ye);w($e)&&($e-=32),w(et)&&(et-=32);const ct=$e-et;if(ct!==0)return ct}const tt=W-be,We=ye-fe;return tt<We?-1:tt>We?1:0}function w(M){return M>=97&&M<=122}function Q(M){return M>=65&&M<=90}function re(M,Se){return M.length===Se.length&&R(M,Se)===0}function $(M,Se){const be=Se.length;return Se.length>M.length?!1:R(M,Se,0,be)===0}function oe(M,Se){let be,W=Math.min(M.length,Se.length);for(be=0;be<W;be++)if(M.charCodeAt(be)!==Se.charCodeAt(be))return be;return W}function ve(M,Se){let be,W=Math.min(M.length,Se.length);const fe=M.length-1,ye=Se.length-1;for(be=0;be<W;be++)if(M.charCodeAt(fe-be)!==Se.charCodeAt(ye-be))return be;return W}function he(M){return 55296<=M&&M<=56319}function ot(M){return 56320<=M&&M<=57343}function U(M,Se){return(M-55296<<10)+(Se-56320)+65536}function C(M,Se,be){const W=M.charCodeAt(be);if(he(W)&&be+1<Se){const fe=M.charCodeAt(be+1);if(ot(fe))return U(W,fe)}return W}function P(M,Se){const be=M.charCodeAt(Se-1);if(ot(be)&&Se>1){const W=M.charCodeAt(Se-2);if(he(W))return U(W,be)}return be}function G(M,Se){const be=Oe.getInstance(),W=Se,fe=M.length,ye=C(M,fe,Se);Se+=ye>=65536?2:1;let tt=be.getGraphemeBreakType(ye);for(;Se<fe;){const We=C(M,fe,Se),$e=be.getGraphemeBreakType(We);if(ht(tt,$e))break;Se+=We>=65536?2:1,tt=$e}return Se-W}function ie(M,Se){const be=Oe.getInstance(),W=Se,fe=P(M,Se);Se-=fe>=65536?2:1;let ye=be.getGraphemeBreakType(fe);for(;Se>0;){const tt=P(M,Se),We=be.getGraphemeBreakType(tt);if(ht(We,ye))break;Se-=tt>=65536?2:1,ye=We}return W-Se}const X=/(?:[\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 y(M){return X.test(M)}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 O(M){return v.test(M)}const me=/^[\t\n\r\x20-\x7E]*$/;function Qe(M){return me.test(M)}const rt=/[\u2028\u2029]/;function Ct(M){return rt.test(M)}function Rt(M){for(let Se=0,be=M.length;Se<be;Se++)if(Vt(M.charCodeAt(Se)))return!0;return!1}function Vt(M){return M=+M,M>=11904&&M<=55215||M>=63744&&M<=64255||M>=65281&&M<=65374}function Qt(M){return M>=127462&&M<=127487||M===8986||M===8987||M===9200||M===9203||M>=9728&&M<=10175||M===11088||M===11093||M>=127744&&M<=128591||M>=128640&&M<=128764||M>=128992&&M<=129003||M>=129280&&M<=129535||M>=129648&&M<=129750}const Ve="\uFEFF";function $t(M){return!!(M&&M.length>0&&M.charCodeAt(0)===65279)}function It(M,Se=!1){return M?(Se&&(M=M.replace(/\\./g,"")),M.toLowerCase()!==M):!1}function sn(M){return M=M%(2*26),M<26?String.fromCharCode(97+M):String.fromCharCode(65+M-26)}function qe(M){return Oe.getInstance().getGraphemeBreakType(M)}function ht(M,Se){return M===0?Se!==5&&Se!==7:M===2&&Se===3?!1:M===4||M===2||M===3||Se===4||Se===2||Se===3?!0:!(M===8&&(Se===8||Se===9||Se===11||Se===12)||(M===11||M===9)&&(Se===9||Se===10)||(M===12||M===10)&&Se===10||Se===5||Se===13||Se===7||M===1||M===13&&Se===14||M===6&&Se===6)}class Oe{constructor(){this._data=we()}static getInstance(){return Oe._INSTANCE||(Oe._INSTANCE=new Oe),Oe._INSTANCE}getGraphemeBreakType(Se){if(Se<32)return Se===10?3:Se===13?2:4;if(Se<127)return 0;const be=this._data,W=be.length/3;let fe=1;for(;fe<=W;)if(Se<be[3*fe])fe=2*fe;else if(Se>be[3*fe+1])fe=2*fe+1;else return be[3*fe+2];return 0}}Oe._INSTANCE=null;function we(){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 j(M,Se){if(M===0)return 0;const be=ze(M,Se);if(be!==void 0)return be;const W=P(Se,M);return M-=Xe(W),M}function ze(M,Se){let be=P(Se,M);for(M-=Xe(be);J(be)||be===65039||be===8419;){if(M===0)return;be=P(Se,M),M-=Xe(be)}if(Qt(be)){if(M>=0){const W=P(Se,M);W===8205&&(M-=Xe(W))}return M}}function Xe(M){return M>=65536?2:1}function J(M){return 127995<=M&&M<=127999}},72999:function(Pn,Xt,_){"use strict";_.d(Xt,{$E:function(){return L},$K:function(){return _e},D8:function(){return p},HD:function(){return ue},IU:function(){return V},Jp:function(){return te},Kn:function(){return z},cW:function(){return g},f6:function(){return q},hj:function(){return ae},jn:function(){return B},kJ:function(){return h},mf:function(){return A},o8:function(){return d},p_:function(){return o},vE:function(){return le}});function h(F){return Array.isArray(F)}function ue(F){return typeof F=="string"}function z(F){return typeof F=="object"&&F!==null&&!Array.isArray(F)&&!(F instanceof RegExp)&&!(F instanceof Date)}function ae(F){return typeof F=="number"&&!isNaN(F)}function B(F){return F===!0||F===!1}function d(F){return typeof F=="undefined"}function _e(F){return!te(F)}function te(F){return d(F)||F===null}function o(F,H){if(!F)throw new Error(H?`Unexpected type, expected '${H}'`:"Unexpected type")}function g(F){if(te(F))throw new Error("Assertion Failed: argument is undefined or null");return F}function A(F){return typeof F=="function"}function p(F,H){const R=Math.min(F.length,H.length);for(let w=0;w<R;w++)E(F[w],H[w])}function E(F,H){if(ue(H)){if(typeof F!==H)throw new Error(`argument does not match constraint: typeof ${H}`)}else if(A(H)){try{if(F instanceof H)return}catch(R){}if(!te(F)&&F.constructor===H||H.length===1&&H.call(void 0,F)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function b(F){let H=[],R=Object.getPrototypeOf(F);for(;Object.prototype!==R;)H=H.concat(Object.getOwnPropertyNames(R)),R=Object.getPrototypeOf(R);return H}function L(F){const H=[];for(const R of b(F))typeof F[R]=="function"&&H.push(R);return H}function V(F,H){const R=Q=>function(){const re=Array.prototype.slice.call(arguments,0);return H(Q,re)};let w={};for(const Q of F)w[Q]=R(Q);return w}function q(F){return F===null?void 0:F}function le(F,H="Unreachable"){throw new Error(H)}},13268:function(Pn,Xt,_){"use strict";_.d(Xt,{N:function(){return ue}});function h(z,ae){let B;return ae.length===0?B=z:B=z.replace(/\{(\d+)\}/g,function(d,_e){const te=_e[0];return typeof ae[te]!="undefined"?ae[te]:d}),B}function ue(z,ae,...B){return h(ae,B)}},96236:function(Pn,Xt,_){"use strict";_.d(Xt,{BH:function(){return V},NZ:function(){return q},U8:function(){return le},co:function(){return L},eH:function(){return b},vr:function(){return E}});var h=_(75918),ue=_(52615),z=_(4348),ae=_(88226),B=_(69323),d=_(34502),_e=_(35884),te=_(90689),o=_(16925),g=_(49055),A=function(F,H,R,w){var Q=arguments.length,re=Q<3?H:w===null?w=Object.getOwnPropertyDescriptor(H,R):w,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(F,H,R,w);else for(var oe=F.length-1;oe>=0;oe--)($=F[oe])&&(re=(Q<3?$(re):Q>3?$(H,R,re):$(H,R))||re);return Q>3&&re&&Object.defineProperty(H,R,re),re},p=function(F,H){return function(R,w){H(R,w,F)}};function E(F){return F.command!==void 0}class b{constructor(H){this.id=b._idPool++,this._debugName=H}}b._idPool=0,b.CommandPalette=new b("CommandPalette"),b.EditorContext=new b("EditorContext"),b.SimpleEditorContext=new b("SimpleEditorContext"),b.EditorContextCopy=new b("EditorContextCopy"),b.EditorContextPeek=new b("EditorContextPeek"),b.MenubarEditMenu=new b("MenubarEditMenu"),b.MenubarCopy=new b("MenubarCopy"),b.MenubarGoMenu=new b("MenubarGoMenu"),b.MenubarSelectionMenu=new b("MenubarSelectionMenu"),b.InlineCompletionsActions=new b("InlineCompletionsActions");const L=(0,o.yh)("menuService"),V=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new z.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:F=>F===b.CommandPalette}}addCommand(F){return this.addCommands(ae.$.single(F))}addCommands(F){for(const H of F)this._commands.set(H.id,H);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,B.OF)(()=>{let H=!1;for(const R of F)H=this._commands.delete(R.id)||H;H&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(F){return this._commands.get(F)}getCommands(){const F=new Map;return this._commands.forEach((H,R)=>F.set(R,H)),F}appendMenuItem(F,H){return this.appendMenuItems(ae.$.single({id:F,item:H}))}appendMenuItems(F){const H=new Set,R=new d.S;for(const{id:w,item:Q}of F){let re=this._menuItems.get(w);re||(re=new d.S,this._menuItems.set(w,re)),R.push(re.push(Q)),H.add(w)}return this._onDidChangeMenu.fire(H),(0,B.OF)(()=>{if(R.size>0){for(let w of R)w();this._onDidChangeMenu.fire(H),R.clear()}})}getMenuItems(F){let H;return this._menuItems.has(F)?H=[...this._menuItems.get(F)]:H=[],F===b.CommandPalette&&this._appendImplicitItems(H),H}_appendImplicitItems(F){const H=new Set;for(const R of F)E(R)&&(H.add(R.command.id),R.alt&&H.add(R.alt.id));this._commands.forEach((R,w)=>{H.has(w)||F.push({command:R})})}};class q extends h.wY{constructor(H,R,w,Q){super(`submenuitem.${H.submenu.id}`,typeof H.title=="string"?H.title:H.title.value,[],"submenu"),this.item=H,this._menuService=R,this._contextKeyService=w,this._options=Q}get actions(){const H=[],R=this._menuService.createMenu(this.item.submenu,this._contextKeyService),w=R.getActions(this._options);R.dispose();for(const[,Q]of w)Q.length>0&&(H.push(...Q),H.push(new h.Z0));return H.length&&H.pop(),H}}let le=class Ol{constructor(H,R,w,Q,re){var $,oe;if(this._commandService=re,this.id=H.id,this.label=w!=null&&w.renderShortTitle&&H.shortTitle?typeof H.shortTitle=="string"?H.shortTitle:H.shortTitle.value:typeof H.title=="string"?H.title:H.title.value,this.tooltip=(oe=typeof H.tooltip=="string"?H.tooltip:($=H.tooltip)===null||$===void 0?void 0:$.value)!==null&&oe!==void 0?oe:"",this.enabled=!H.precondition||Q.contextMatchesRules(H.precondition),this.checked=void 0,H.toggled){const ve=H.toggled.condition?H.toggled:{condition:H.toggled};this.checked=Q.contextMatchesRules(ve.condition),this.checked&&ve.tooltip&&(this.tooltip=typeof ve.tooltip=="string"?ve.tooltip:ve.tooltip.value),ve.title&&(this.label=typeof ve.title=="string"?ve.title:ve.title.value)}this.item=H,this.alt=R?new Ol(R,void 0,w,Q,re):void 0,this._options=w,g.kS.isThemeIcon(H.icon)&&(this.class=ue.dT.asClassName(H.icon))}dispose(){}run(...H){var R,w;let Q=[];return!((R=this._options)===null||R===void 0)&&R.arg&&(Q=[...Q,this._options.arg]),!((w=this._options)===null||w===void 0)&&w.shouldForwardArgs&&(Q=[...Q,...H]),this._commandService.executeCommand(this.id,...Q)}};le=A([p(3,te.i6),p(4,_e.H)],le)},35884:function(Pn,Xt,_){"use strict";_.d(Xt,{H:function(){return _e},P:function(){return te}});var h=_(4348),ue=_(88226),z=_(69323),ae=_(34502),B=_(72999),d=_(16925);const _e=(0,d.yh)("commandService"),te=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new h.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,g){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!g)throw new Error("invalid command");return this.registerCommand({id:o,handler:g})}if(o.description){const L=[];for(let q of o.description.args)L.push(q.constraint);const V=o.handler;o.handler=function(q,...le){return(0,B.D8)(le,L),V(q,...le)}}const{id:A}=o;let p=this._commands.get(A);p||(p=new ae.S,this._commands.set(A,p));let E=p.unshift(o),b=(0,z.OF)(()=>{E();const L=this._commands.get(A);L!=null&&L.isEmpty()&&this._commands.delete(A)});return this._onDidRegisterCommand.fire(A),b}registerCommandAlias(o,g){return te.registerCommand(o,(A,...p)=>A.get(_e).executeCommand(g,...p))}getCommand(o){const g=this._commands.get(o);if(!(!g||g.isEmpty()))return ue.$.first(g)}getCommands(){const o=new Map;for(const g of this._commands.keys()){const A=this.getCommand(g);A&&o.set(g,A)}return o}};te.registerCommand("noop",()=>{})},90689:function(Pn,Xt,_){"use strict";_.d(Xt,{Ao:function(){return _e},Eq:function(){return U},Fb:function(){return te},K8:function(){return G},i6:function(){return ot},uy:function(){return he}});var h=_(23345),ue=_(82983),z=_(16925);let ae=h.WE||"";const B=new Map;B.set("false",!1),B.set("true",!0),B.set("isMac",h.dz),B.set("isLinux",h.IJ),B.set("isWindows",h.ED),B.set("isWeb",h.$L),B.set("isMacNative",h.dz&&!h.$L),B.set("isEdge",ae.indexOf("Edg/")>=0),B.set("isFirefox",ae.indexOf("Firefox")>=0),B.set("isChrome",ae.indexOf("Chrome")>=0),B.set("isSafari",ae.indexOf("Safari")>=0);const d=Object.prototype.hasOwnProperty;class _e{static has(y){return p.create(y)}static equals(y,v){return E.create(y,v)}static regex(y,v){return Q.create(y,v)}static not(y){return q.create(y)}static and(...y){return oe.create(y,null)}static or(...y){return ve.create(y,null,!0)}static deserialize(y,v=!1){if(y)return this._deserializeOrExpression(y,v)}static _deserializeOrExpression(y,v){let O=y.split("||");return ve.create(O.map(me=>this._deserializeAndExpression(me,v)),null,!0)}static _deserializeAndExpression(y,v){let O=y.split("&&");return oe.create(O.map(me=>this._deserializeOne(me,v)),null)}static _deserializeOne(y,v){if(y=y.trim(),y.indexOf("!=")>=0){let O=y.split("!=");return V.create(O[0].trim(),this._deserializeValue(O[1],v))}if(y.indexOf("==")>=0){let O=y.split("==");return E.create(O[0].trim(),this._deserializeValue(O[1],v))}if(y.indexOf("=~")>=0){let O=y.split("=~");return Q.create(O[0].trim(),this._deserializeRegexValue(O[1],v))}if(y.indexOf(" in ")>=0){let O=y.split(" in ");return b.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(y)){const O=y.split(">=");return H.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(y)){const O=y.split(">");return F.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(y)){const O=y.split("<=");return w.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(y)){const O=y.split("<");return R.create(O[0].trim(),O[1].trim())}return/^\!\s*/.test(y)?q.create(y.substr(1).trim()):p.create(y)}static _deserializeValue(y,v){if(y=y.trim(),y==="true")return!0;if(y==="false")return!1;let O=/^'([^']*)'$/.exec(y);return O?O[1].trim():y}static _deserializeRegexValue(y,v){if((0,ue.m5)(y)){if(v)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let O=y.indexOf("/"),me=y.lastIndexOf("/");if(O===me||O<0){if(v)throw new Error(`bad regexp-value '${y}', missing /-enclosure`);return console.warn(`bad regexp-value '${y}', missing /-enclosure`),null}let Qe=y.slice(O+1,me),rt=y[me+1]==="i"?"i":"";try{return new RegExp(Qe,rt)}catch(Ct){if(v)throw new Error(`bad regexp-value '${y}', parse error: ${Ct}`);return console.warn(`bad regexp-value '${y}', parse error: ${Ct}`),null}}}function te(X,y){const v=X?X.substituteConstants():void 0,O=y?y.substituteConstants():void 0;return!v&&!O?!0:!v||!O?!1:v.equals(O)}function o(X,y){return X.cmp(y)}class g{constructor(){this.type=0}cmp(y){return this.type-y.type}equals(y){return y.type===this.type}substituteConstants(){return this}evaluate(y){return!1}serialize(){return"false"}keys(){return[]}negate(){return A.INSTANCE}}g.INSTANCE=new g;class A{constructor(){this.type=1}cmp(y){return this.type-y.type}equals(y){return y.type===this.type}substituteConstants(){return this}evaluate(y){return!0}serialize(){return"true"}keys(){return[]}negate(){return g.INSTANCE}}A.INSTANCE=new A;class p{constructor(y,v){this.key=y,this.negated=v,this.type=2}static create(y,v=null){const O=B.get(y);return typeof O=="boolean"?O?A.INSTANCE:g.INSTANCE:new p(y,v)}cmp(y){return y.type!==this.type?this.type-y.type:C(this.key,y.key)}equals(y){return y.type===this.type?this.key===y.key:!1}substituteConstants(){const y=B.get(this.key);return typeof y=="boolean"?y?A.INSTANCE:g.INSTANCE:this}evaluate(y){return!!y.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=q.create(this.key,this)),this.negated}}class E{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=4}static create(y,v,O=null){if(typeof v=="boolean")return v?p.create(y,O):q.create(y,O);const me=B.get(y);return typeof me=="boolean"?v===(me?"true":"false")?A.INSTANCE:g.INSTANCE:new E(y,v,O)}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){const y=B.get(this.key);if(typeof y=="boolean"){const v=y?"true":"false";return this.value===v?A.INSTANCE:g.INSTANCE}return this}evaluate(y){return y.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this.value,this)),this.negated}}class b{constructor(y,v){this.key=y,this.valueKey=v,this.type=10,this.negated=null}static create(y,v){return new b(y,v)}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.valueKey,y.key,y.valueKey)}equals(y){return y.type===this.type?this.key===y.key&&this.valueKey===y.valueKey:!1}substituteConstants(){return this}evaluate(y){const v=y.getValue(this.valueKey),O=y.getValue(this.key);return Array.isArray(v)?v.indexOf(O)>=0:typeof O=="string"&&typeof v=="object"&&v!==null?d.call(v,O):!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(y){this._actual=y,this.type=11}static create(y){return new L(y)}cmp(y){return y.type!==this.type?this.type-y.type:this._actual.cmp(y._actual)}equals(y){return y.type===this.type?this._actual.equals(y._actual):!1}substituteConstants(){return this}evaluate(y){return!this._actual.evaluate(y)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class V{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=5}static create(y,v,O=null){if(typeof v=="boolean")return v?q.create(y,O):p.create(y,O);const me=B.get(y);return typeof me=="boolean"?v===(me?"true":"false")?g.INSTANCE:A.INSTANCE:new V(y,v,O)}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){const y=B.get(this.key);if(typeof y=="boolean"){const v=y?"true":"false";return this.value===v?g.INSTANCE:A.INSTANCE}return this}evaluate(y){return y.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}class q{constructor(y,v){this.key=y,this.negated=v,this.type=3}static create(y,v=null){const O=B.get(y);return typeof O=="boolean"?O?g.INSTANCE:A.INSTANCE:new q(y,v)}cmp(y){return y.type!==this.type?this.type-y.type:C(this.key,y.key)}equals(y){return y.type===this.type?this.key===y.key:!1}substituteConstants(){const y=B.get(this.key);return typeof y=="boolean"?y?g.INSTANCE:A.INSTANCE:this}evaluate(y){return!y.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this)),this.negated}}function le(X,y){if(typeof X=="string"){const v=parseFloat(X);isNaN(v)||(X=v)}return typeof X=="string"||typeof X=="number"?y(X):g.INSTANCE}class F{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=12}static create(y,v,O=null){return le(v,me=>new F(y,me,O))}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}class H{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=13}static create(y,v,O=null){return le(v,me=>new H(y,me,O))}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.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(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=14}static create(y,v,O=null){return le(v,me=>new R(y,me,O))}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class w{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=15}static create(y,v,O=null){return le(v,me=>new w(y,me,O))}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class Q{constructor(y,v){this.key=y,this.regexp=v,this.type=7,this.negated=null}static create(y,v){return new Q(y,v)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.key<y.key)return-1;if(this.key>y.key)return 1;const v=this.regexp?this.regexp.source:"",O=y.regexp?y.regexp.source:"";return v<O?-1:v>O?1:0}equals(y){if(y.type===this.type){const v=this.regexp?this.regexp.source:"",O=y.regexp?y.regexp.source:"";return this.key===y.key&&v===O}return!1}substituteConstants(){return this}evaluate(y){let v=y.getValue(this.key);return this.regexp?this.regexp.test(v):!1}serialize(){const y=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${y}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=re.create(this)),this.negated}}class re{constructor(y){this._actual=y,this.type=8}static create(y){return new re(y)}cmp(y){return y.type!==this.type?this.type-y.type:this._actual.cmp(y._actual)}equals(y){return y.type===this.type?this._actual.equals(y._actual):!1}substituteConstants(){return this}evaluate(y){return!this._actual.evaluate(y)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function $(X){let y=null;for(let v=0,O=X.length;v<O;v++){const me=X[v].substituteConstants();if(X[v]!==me&&y===null){y=[];for(let Qe=0;Qe<v;Qe++)y[Qe]=X[Qe]}y!==null&&(y[v]=me)}return y===null?X:y}class oe{constructor(y,v){this.expr=y,this.negated=v,this.type=6}static create(y,v){return oe._normalizeArr(y,v)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.expr.length<y.expr.length)return-1;if(this.expr.length>y.expr.length)return 1;for(let v=0,O=this.expr.length;v<O;v++){const me=o(this.expr[v],y.expr[v]);if(me!==0)return me}return 0}equals(y){if(y.type===this.type){if(this.expr.length!==y.expr.length)return!1;for(let v=0,O=this.expr.length;v<O;v++)if(!this.expr[v].equals(y.expr[v]))return!1;return!0}return!1}substituteConstants(){const y=$(this.expr);return y===this.expr?this:oe.create(y,this.negated)}evaluate(y){for(let v=0,O=this.expr.length;v<O;v++)if(!this.expr[v].evaluate(y))return!1;return!0}static _normalizeArr(y,v){const O=[];let me=!1;for(const Qe of y)if(Qe){if(Qe.type===1){me=!0;continue}if(Qe.type===0)return g.INSTANCE;if(Qe.type===6){O.push(...Qe.expr);continue}O.push(Qe)}if(O.length===0&&me)return A.INSTANCE;if(O.length!==0){if(O.length===1)return O[0];O.sort(o);for(let Qe=1;Qe<O.length;Qe++)O[Qe-1].equals(O[Qe])&&(O.splice(Qe,1),Qe--);if(O.length===1)return O[0];for(;O.length>1;){const Qe=O[O.length-1];if(Qe.type!==9)break;O.pop();const rt=O.pop(),Ct=O.length===0,Rt=ve.create(Qe.expr.map(Vt=>oe.create([Vt,rt],null)),null,Ct);Rt&&(O.push(Rt),O.sort(o))}return O.length===1?O[0]:new oe(O,v)}}serialize(){return this.expr.map(y=>y.serialize()).join(" && ")}keys(){const y=[];for(let v of this.expr)y.push(...v.keys());return y}negate(){if(!this.negated){const y=[];for(let v of this.expr)y.push(v.negate());this.negated=ve.create(y,this,!0)}return this.negated}}class ve{constructor(y,v){this.expr=y,this.negated=v,this.type=9}static create(y,v,O){return ve._normalizeArr(y,v,O)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.expr.length<y.expr.length)return-1;if(this.expr.length>y.expr.length)return 1;for(let v=0,O=this.expr.length;v<O;v++){const me=o(this.expr[v],y.expr[v]);if(me!==0)return me}return 0}equals(y){if(y.type===this.type){if(this.expr.length!==y.expr.length)return!1;for(let v=0,O=this.expr.length;v<O;v++)if(!this.expr[v].equals(y.expr[v]))return!1;return!0}return!1}substituteConstants(){const y=$(this.expr);return y===this.expr?this:ve.create(y,this.negated,!1)}evaluate(y){for(let v=0,O=this.expr.length;v<O;v++)if(this.expr[v].evaluate(y))return!0;return!1}static _normalizeArr(y,v,O){let me=[],Qe=!1;if(y){for(let rt=0,Ct=y.length;rt<Ct;rt++){const Rt=y[rt];if(Rt){if(Rt.type===0){Qe=!0;continue}if(Rt.type===1)return A.INSTANCE;if(Rt.type===9){me=me.concat(Rt.expr);continue}me.push(Rt)}}if(me.length===0&&Qe)return g.INSTANCE;me.sort(o)}if(me.length!==0){if(me.length===1)return me[0];for(let rt=1;rt<me.length;rt++)me[rt-1].equals(me[rt])&&(me.splice(rt,1),rt--);if(me.length===1)return me[0];if(O){for(let rt=0;rt<me.length;rt++)for(let Ct=rt+1;Ct<me.length;Ct++)G(me[rt],me[Ct])&&(me.splice(Ct,1),Ct--);if(me.length===1)return me[0]}return new ve(me,v)}}serialize(){return this.expr.map(y=>y.serialize()).join(" || ")}keys(){const y=[];for(let v of this.expr)y.push(...v.keys());return y}negate(){if(!this.negated){let y=[];for(let v of this.expr)y.push(v.negate());for(;y.length>1;){const v=y.shift(),O=y.shift(),me=[];for(const rt of ie(v))for(const Ct of ie(O))me.push(oe.create([rt,Ct],null));const Qe=y.length===0;y.unshift(ve.create(me,null,Qe))}this.negated=y[0]}return this.negated}}class he extends p{constructor(y,v,O){super(y,null),this._defaultValue=v,typeof O=="object"?he._info.push(Object.assign(Object.assign({},O),{key:y})):O!==!0&&he._info.push({key:y,description:O,type:v!=null?typeof v:void 0})}static all(){return he._info.values()}bindTo(y){return y.createKey(this.key,this._defaultValue)}getValue(y){return y.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(y){return E.create(this.key,y)}}he._info=[];const ot=(0,z.yh)("contextKeyService"),U="setContext";function C(X,y){return X<y?-1:X>y?1:0}function P(X,y,v,O){return X<v?-1:X>v?1:y<O?-1:y>O?1:0}function G(X,y){if(y.type===6&&X.type!==9&&X.type!==6){for(const me of y.expr)if(X.equals(me))return!0}const v=X.negate(),O=ie(v).concat(ie(y));O.sort(o);for(let me=0;me<O.length;me++){const rt=O[me].negate();for(let Ct=me+1;Ct<O.length;Ct++){const Rt=O[Ct];if(rt.equals(Rt))return!0}}return!1}function ie(X){return X.type===9?X.expr:[X]}},16925:function(Pn,Xt,_){"use strict";_.d(Xt,{I8:function(){return h},TG:function(){return ue},jt:function(){return B},yh:function(){return ae}});var h;(function(d){d.serviceIds=new Map,d.DI_TARGET="$di$target",d.DI_DEPENDENCIES="$di$dependencies";function _e(te){return te[d.DI_DEPENDENCIES]||[]}d.getServiceDependencies=_e})(h||(h={}));const ue=ae("instantiationService");function z(d,_e,te,o){_e[h.DI_TARGET]===_e?_e[h.DI_DEPENDENCIES].push({id:d,index:te,optional:o}):(_e[h.DI_DEPENDENCIES]=[{id:d,index:te,optional:o}],_e[h.DI_TARGET]=_e)}function ae(d){if(h.serviceIds.has(d))return h.serviceIds.get(d);const _e=function(te,o,g){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");z(_e,te,g,!1)};return _e.toString=()=>d,h.serviceIds.set(d,_e),_e}function B(d){return function(_e,te,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");z(d,_e,o,!0)}}},44650:function(Pn,Xt,_){"use strict";_.d(Xt,{B:function(){return ae}});var h=_(76068),ue=_(72999);class z{constructor(){this.data=new Map}add(d,_e){h.ok(ue.HD(d)),h.ok(ue.Kn(_e)),h.ok(!this.data.has(d),"There is already an extension with this id"),this.data.set(d,_e)}as(d){return this.data.get(d)||null}}const ae=new z},66213:function(Pn,Xt,_){"use strict";_.d(Xt,{e:function(){return h}});var h;(function(ue){ue.DARK="dark",ue.LIGHT="light",ue.HIGH_CONTRAST="hc"})(h||(h={}))},49055:function(Pn,Xt,_){"use strict";_.d(Xt,{EN:function(){return o},IP:function(){return p},Ic:function(){return L},XE:function(){return _e},bB:function(){return V},kS:function(){return g},m6:function(){return A}});var h=_(52615),ue=_(4348),z=_(69323),ae=_(16925),B=_(44650),d=_(66213);const _e=(0,ae.yh)("themeService");var te;(function(q){function le(F){return F&&typeof F=="object"&&typeof F.id=="string"}q.isThemeColor=le})(te||(te={}));function o(q){return{id:q}}var g;(function(q){function le(re){return re&&typeof re=="object"&&typeof re.id=="string"&&(typeof re.color=="undefined"||te.isThemeColor(re.color))}q.isThemeIcon=le;const F=new RegExp(`^\\$\\((${h.dT.iconNameExpression}(?:${h.dT.iconModifierExpression})?)\\)$`);function H(re){const $=F.exec(re);if(!$)return;let[,oe]=$;return{id:oe}}q.fromString=H;function R(re,$){let oe=re.id;const ve=oe.lastIndexOf("~");return ve!==-1&&(oe=oe.substring(0,ve)),$&&(oe=`${oe}~${$}`),{id:oe}}q.modify=R;function w(re,$){var oe,ve;return re.id===$.id&&((oe=re.color)===null||oe===void 0?void 0:oe.id)===((ve=$.color)===null||ve===void 0?void 0:ve.id)}q.isEqual=w;function Q(re,$){return{id:re.id,color:$?o($):void 0}}q.asThemeIcon=Q,q.asClassNameArray=h.dT.asClassNameArray,q.asClassName=h.dT.asClassName,q.asCSSSelector=h.dT.asCSSSelector})(g||(g={}));function A(q){switch(q){case d.e.DARK:return"vs-dark";case d.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const p={ThemingContribution:"base.contributions.theming"};class E{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new ue.Q5}onColorThemeChange(le){return this.themingParticipants.push(le),this.onThemingParticipantAddedEmitter.fire(le),(0,z.OF)(()=>{const F=this.themingParticipants.indexOf(le);this.themingParticipants.splice(F,1)})}getThemingParticipants(){return this.themingParticipants}}let b=new E;B.B.add(p.ThemingContribution,b);function L(q){return b.onColorThemeChange(q)}class V extends z.JT{constructor(le){super(),this.themeService=le,this.theme=le.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(F=>this.onThemeChange(F)))}onThemeChange(le){this.theme=le,this.updateStyles()}updateStyles(){}}},63727:function(Pn,Xt,_){"use strict";_.d(Xt,{s:function(){return W},default:function(){return ct}});var h=_(54476),ue=_(33885),z=_(94480),ae=_(42978),B=_(75931),d=_(37463),_e=_(6551),te=_(6089),o=_(18929),g=_(59301),A=g.createContext({}),p=A,E=_(76190),b=_(20068),L="__rc_cascader_search_mark__",V=function(Z,N,Ie){var Ce=Ie.label,Ae=Ce===void 0?"":Ce;return N.some(function(st){return String(st[Ae]).toLowerCase().includes(Z.toLowerCase())})},q=function(Z,N,Ie,Ce){return N.map(function(Ae){return Ae[Ce.label]}).join(" / ")},le=function(Z,N,Ie,Ce,Ae,st){var lt=Ae.filter,Fe=lt===void 0?V:lt,_t=Ae.render,Ht=_t===void 0?q:_t,St=Ae.limit,Bt=St===void 0?50:St,se=Ae.sort;return g.useMemo(function(){var ge=[];if(!Z)return[];function Ee(k,Y){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;k.forEach(function(de){if(!(!se&&Bt!==!1&&Bt>0&&ge.length>=Bt)){var xe=[].concat((0,z.Z)(Y),[de]),Be=de[Ie.children],Ye=pe||de.disabled;if((!Be||Be.length===0||st)&&Fe(Z,xe,{label:Ie.label})){var dt;ge.push((0,ue.Z)((0,ue.Z)({},de),{},(dt={disabled:Ye},(0,b.Z)(dt,Ie.label,Ht(Z,xe,Ce,Ie)),(0,b.Z)(dt,L,xe),(0,b.Z)(dt,Ie.children,void 0),dt)))}Be&&Ee(de[Ie.children],xe,Ye)}})}return Ee(N,[]),se&&ge.sort(function(k,Y){return se(k[L],Y[L],Z,Ie)}),Bt!==!1&&Bt>0?ge.slice(0,Bt):ge},[Z,N,Ie,Ce,Ht,st,Fe,se,Bt])},F=le,H="__RC_CASCADER_SPLIT__",R="SHOW_PARENT",w="SHOW_CHILD";function Q(ce){return ce.join(H)}function re(ce){return ce.map(Q)}function $(ce){return ce.split(H)}function oe(ce){var Z=ce||{},N=Z.label,Ie=Z.value,Ce=Z.children,Ae=Ie||"value";return{label:N||"label",value:Ae,key:Ae,children:Ce||"children"}}function ve(ce,Z){var N,Ie;return(N=ce.isLeaf)!==null&&N!==void 0?N:!((Ie=ce[Z.children])!==null&&Ie!==void 0&&Ie.length)}function he(ce){var Z=ce.parentElement;if(Z){var N=ce.offsetTop-Z.offsetTop;N-Z.scrollTop<0?Z.scrollTo({top:N}):N+ce.offsetHeight-Z.scrollTop>Z.offsetHeight&&Z.scrollTo({top:N+ce.offsetHeight-Z.offsetHeight})}}function ot(ce,Z){return ce.map(function(N){var Ie;return(Ie=N[L])===null||Ie===void 0?void 0:Ie.map(function(Ce){return Ce[Z.value]})})}function U(ce){return Array.isArray(ce)&&Array.isArray(ce[0])}function C(ce){return ce?U(ce)?ce:(ce.length===0?[]:[ce]).map(function(Z){return Array.isArray(Z)?Z:[Z]}):[]}function P(ce,Z,N){var Ie=new Set(ce),Ce=Z();return ce.filter(function(Ae){var st=Ce[Ae],lt=st?st.parent:null,Fe=st?st.children:null;return st&&st.node.disabled?!0:N===w?!(Fe&&Fe.some(function(_t){return _t.key&&Ie.has(_t.key)})):!(lt&&!lt.node.disabled&&Ie.has(lt.key))})}function G(ce,Z,N){for(var Ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Ce=Z,Ae=[],st=function(){var _t,Ht,St,Bt=ce[lt],se=(_t=Ce)===null||_t===void 0?void 0:_t.findIndex(function(Ee){var k=Ee[N.value];return Ie?String(k)===String(Bt):k===Bt}),ge=se!==-1?(Ht=Ce)===null||Ht===void 0?void 0:Ht[se]:null;Ae.push({value:(St=ge==null?void 0:ge[N.value])!==null&&St!==void 0?St:Bt,index:se,option:ge}),Ce=ge==null?void 0:ge[N.children]},lt=0;lt<ce.length;lt+=1)st();return Ae}var ie=function(ce,Z,N,Ie,Ce){return g.useMemo(function(){var Ae=Ce||function(st){var lt=Ie?st.slice(-1):st,Fe=" / ";return lt.every(function(_t){return["string","number"].includes((0,E.Z)(_t))})?lt.join(Fe):lt.reduce(function(_t,Ht,St){var Bt=g.isValidElement(Ht)?g.cloneElement(Ht,{key:St}):Ht;return St===0?[Bt]:[].concat((0,z.Z)(_t),[Fe,Bt])},[])};return ce.map(function(st){var lt,Fe=G(st,Z,N),_t=Ae(Fe.map(function(St){var Bt,se=St.option,ge=St.value;return(Bt=se==null?void 0:se[N.label])!==null&&Bt!==void 0?Bt:ge}),Fe.map(function(St){var Bt=St.option;return Bt})),Ht=Q(st);return{label:_t,value:Ht,key:Ht,valueCells:st,disabled:(lt=Fe[Fe.length-1])===null||lt===void 0||(lt=lt.option)===null||lt===void 0?void 0:lt.disabled}})},[ce,Z,N,Ce,Ie])};function X(ce,Z){return g.useCallback(function(N){var Ie=[],Ce=[];return N.forEach(function(Ae){var st=G(Ae,ce,Z);st.every(function(lt){return lt.option})?Ce.push(Ae):Ie.push(Ae)}),[Ce,Ie]},[ce,Z])}var y=_(34061),v=function(ce,Z){var N=g.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),Ie=g.useCallback(function(){return N.current.options!==ce&&(N.current.options=ce,N.current.info=(0,y.I8)(ce,{fieldNames:Z,initWrapper:function(Ae){return(0,ue.Z)((0,ue.Z)({},Ae),{},{pathKeyEntities:{}})},processEntity:function(Ae,st){var lt=Ae.nodes.map(function(Fe){return Fe[Z.value]}).join(H);st.pathKeyEntities[lt]=Ae,Ae.key=lt}})),N.current.info.pathKeyEntities},[Z,ce]);return Ie};function O(ce,Z){var N=g.useMemo(function(){return Z||[]},[Z]),Ie=v(N,ce),Ce=g.useCallback(function(Ae){var st=Ie();return Ae.map(function(lt){var Fe=st[lt].nodes;return Fe.map(function(_t){return _t[ce.value]})})},[Ie,ce]);return[N,Ie,Ce]}var me=_(48736);function Qe(ce){return g.useMemo(function(){if(!ce)return[!1,{}];var Z={matchInputWidth:!0,limit:50};return ce&&(0,E.Z)(ce)==="object"&&(Z=(0,ue.Z)((0,ue.Z)({},Z),ce)),Z.limit<=0&&(Z.limit=!1),[!0,Z]},[ce])}var rt=_(34643);function Ct(ce,Z,N,Ie,Ce,Ae,st,lt){return function(Fe){if(!ce)Z(Fe);else{var _t=Q(Fe),Ht=re(N),St=re(Ie),Bt=Ht.includes(_t),se=Ce.some(function(Ye){return Q(Ye)===_t}),ge=N,Ee=Ce;if(se&&!Bt)Ee=Ce.filter(function(Ye){return Q(Ye)!==_t});else{var k=Bt?Ht.filter(function(Ye){return Ye!==_t}):[].concat((0,z.Z)(Ht),[_t]),Y=Ae(),pe;if(Bt){var de=(0,rt.S)(k,{checked:!1,halfCheckedKeys:St},Y);pe=de.checkedKeys}else{var xe=(0,rt.S)(k,!0,Y);pe=xe.checkedKeys}var Be=P(pe,Ae,lt);ge=st(Be)}Z([].concat((0,z.Z)(Ee),(0,z.Z)(ge)))}}}function Rt(ce,Z,N,Ie,Ce){return g.useMemo(function(){var Ae=Ce(Z),st=(0,ae.Z)(Ae,2),lt=st[0],Fe=st[1];if(!ce||!Z.length)return[lt,[],Fe];var _t=re(lt),Ht=N(),St=(0,rt.S)(_t,!0,Ht),Bt=St.checkedKeys,se=St.halfCheckedKeys;return[Ie(Bt),Ie(se),Fe]},[ce,Z,N,Ie,Ce])}var Vt=_(92310),Qt=_.n(Vt),Ve=g.memo(function(ce){var Z=ce.children;return Z},function(ce,Z){return!Z.open}),$t=Ve;function It(ce){var Z,N=ce.prefixCls,Ie=ce.checked,Ce=ce.halfChecked,Ae=ce.disabled,st=ce.onClick,lt=ce.disableCheckbox,Fe=g.useContext(p),_t=Fe.checkable,Ht=typeof _t!="boolean"?_t:null;return g.createElement("span",{className:Qt()("".concat(N),(Z={},(0,b.Z)(Z,"".concat(N,"-checked"),Ie),(0,b.Z)(Z,"".concat(N,"-indeterminate"),!Ie&&Ce),(0,b.Z)(Z,"".concat(N,"-disabled"),Ae||lt),Z)),onClick:st},Ht)}var sn="__cascader_fix_label__";function qe(ce){var Z=ce.prefixCls,N=ce.multiple,Ie=ce.options,Ce=ce.activeValue,Ae=ce.prevValuePath,st=ce.onToggleOpen,lt=ce.onSelect,Fe=ce.onActive,_t=ce.checkedSet,Ht=ce.halfCheckedSet,St=ce.loadingKeys,Bt=ce.isSelectable,se=ce.disabled,ge="".concat(Z,"-menu"),Ee="".concat(Z,"-menu-item"),k=g.useContext(p),Y=k.fieldNames,pe=k.changeOnSelect,de=k.expandTrigger,xe=k.expandIcon,Be=k.loadingIcon,Ye=k.dropdownMenuColumnStyle,dt=k.optionRender,nt=de==="hover",Ue=function(S){return se||S},I=g.useMemo(function(){return Ie.map(function(K){var S,je=K.disabled,De=K.disableCheckbox,Le=K[L],He=(S=K[sn])!==null&&S!==void 0?S:K[Y.label],Ge=K[Y.value],ft=ve(K,Y),kt=Le?Le.map(function(pt){return pt[Y.value]}):[].concat((0,z.Z)(Ae),[Ge]),Mt=Q(kt),fn=St.includes(Mt),Pe=_t.has(Mt),Te=Ht.has(Mt);return{disabled:je,label:He,value:Ge,isLeaf:ft,isLoading:fn,checked:Pe,halfChecked:Te,option:K,disableCheckbox:De,fullPath:kt,fullPathKey:Mt}})},[Ie,_t,Y,Ht,St,Ae]);return g.createElement("ul",{className:ge,role:"menu"},I.map(function(K){var S,je=K.disabled,De=K.label,Le=K.value,He=K.isLeaf,Ge=K.isLoading,ft=K.checked,kt=K.halfChecked,Mt=K.option,fn=K.fullPath,Pe=K.fullPathKey,Te=K.disableCheckbox,pt=function(){if(!Ue(je)){var Tt=(0,z.Z)(fn);nt&&He&&Tt.pop(),Fe(Tt)}},mt=function(){Bt(Mt)&&!Ue(je)&<(fn,He)},Ot;return typeof Mt.title=="string"?Ot=Mt.title:typeof De=="string"&&(Ot=De),g.createElement("li",{key:Pe,className:Qt()(Ee,(S={},(0,b.Z)(S,"".concat(Ee,"-expand"),!He),(0,b.Z)(S,"".concat(Ee,"-active"),Ce===Le||Ce===Pe),(0,b.Z)(S,"".concat(Ee,"-disabled"),Ue(je)),(0,b.Z)(S,"".concat(Ee,"-loading"),Ge),S)),style:Ye,role:"menuitemcheckbox",title:Ot,"aria-checked":ft,"data-path-key":Pe,onClick:function(){pt(),!Te&&(!N||He)&&mt()},onDoubleClick:function(){pe&&st(!1)},onMouseEnter:function(){nt&&pt()},onMouseDown:function(Tt){Tt.preventDefault()}},N&&g.createElement(It,{prefixCls:"".concat(Z,"-checkbox"),checked:ft,halfChecked:kt,disabled:Ue(je)||Te,disableCheckbox:Te,onClick:function(Tt){Te||(Tt.stopPropagation(),mt())}}),g.createElement("div",{className:"".concat(Ee,"-content")},dt?dt(Mt):De),!Ge&&xe&&!He&&g.createElement("div",{className:"".concat(Ee,"-expand-icon")},xe),Ge&&Be&&g.createElement("div",{className:"".concat(Ee,"-loading-icon")},Be))}))}var ht=function(Z,N){var Ie=g.useContext(p),Ce=Ie.values,Ae=Ce[0],st=g.useState([]),lt=(0,ae.Z)(st,2),Fe=lt[0],_t=lt[1];return g.useEffect(function(){Z||_t(Ae||[])},[N,Ae]),[Fe,_t]},Oe=ht,we=_(10228),j=function(ce,Z,N,Ie,Ce,Ae,st){var lt=st.direction,Fe=st.searchValue,_t=st.toggleOpen,Ht=st.open,St=lt==="rtl",Bt=g.useMemo(function(){for(var Ye=-1,dt=Z,nt=[],Ue=[],I=Ie.length,K=ot(Z,N),S=function(Ge){var ft=dt.findIndex(function(kt,Mt){return(K[Mt]?Q(K[Mt]):kt[N.value])===Ie[Ge]});if(ft===-1)return 1;Ye=ft,nt.push(Ye),Ue.push(Ie[Ge]),dt=dt[Ye][N.children]},je=0;je<I&&dt&&!S(je);je+=1);for(var De=Z,Le=0;Le<nt.length-1;Le+=1)De=De[nt[Le]][N.children];return[Ue,Ye,De,K]},[Ie,N,Z]),se=(0,ae.Z)(Bt,4),ge=se[0],Ee=se[1],k=se[2],Y=se[3],pe=function(dt){Ce(dt)},de=function(dt){var nt=k.length,Ue=Ee;Ue===-1&&dt<0&&(Ue=nt);for(var I=0;I<nt;I+=1){Ue=(Ue+dt+nt)%nt;var K=k[Ue];if(K&&!K.disabled){var S=ge.slice(0,-1).concat(Y[Ue]?Q(Y[Ue]):K[N.value]);pe(S);return}}},xe=function(){if(ge.length>1){var dt=ge.slice(0,-1);pe(dt)}else _t(!1)},Be=function(){var dt,nt=((dt=k[Ee])===null||dt===void 0?void 0:dt[N.children])||[],Ue=nt.find(function(K){return!K.disabled});if(Ue){var I=[].concat((0,z.Z)(ge),[Ue[N.value]]);pe(I)}};g.useImperativeHandle(ce,function(){return{onKeyDown:function(dt){var nt=dt.which;switch(nt){case we.Z.UP:case we.Z.DOWN:{var Ue=0;nt===we.Z.UP?Ue=-1:nt===we.Z.DOWN&&(Ue=1),Ue!==0&&de(Ue);break}case we.Z.LEFT:{if(Fe)break;St?Be():xe();break}case we.Z.RIGHT:{if(Fe)break;St?xe():Be();break}case we.Z.BACKSPACE:{Fe||xe();break}case we.Z.ENTER:{if(ge.length){var I=k[Ee],K=(I==null?void 0:I[L])||[];K.length?Ae(K.map(function(S){return S[N.value]}),K[K.length-1]):Ae(ge,k[Ee])}break}case we.Z.ESC:_t(!1),Ht&&dt.stopPropagation()}},onKeyUp:function(){}}})},ze=g.forwardRef(function(ce,Z){var N,Ie,Ce,Ae=ce.prefixCls,st=ce.multiple,lt=ce.searchValue,Fe=ce.toggleOpen,_t=ce.notFoundContent,Ht=ce.direction,St=ce.open,Bt=ce.disabled,se=g.useRef(null),ge=Ht==="rtl",Ee=g.useContext(p),k=Ee.options,Y=Ee.values,pe=Ee.halfValues,de=Ee.fieldNames,xe=Ee.changeOnSelect,Be=Ee.onSelect,Ye=Ee.searchOptions,dt=Ee.dropdownPrefixCls,nt=Ee.loadData,Ue=Ee.expandTrigger,I=dt||Ae,K=g.useState([]),S=(0,ae.Z)(K,2),je=S[0],De=S[1],Le=function(qt){if(!(!nt||lt)){var Pt=G(qt,k,de),Ze=Pt.map(function(Nt){var nn=Nt.option;return nn}),at=Ze[Ze.length-1];if(at&&!ve(at,de)){var Dt=Q(qt);De(function(Nt){return[].concat((0,z.Z)(Nt),[Dt])}),nt(Ze)}}};g.useEffect(function(){je.length&&je.forEach(function(dn){var qt=$(dn),Pt=G(qt,k,de,!0).map(function(at){var Dt=at.option;return Dt}),Ze=Pt[Pt.length-1];(!Ze||Ze[de.children]||ve(Ze,de))&&De(function(at){return at.filter(function(Dt){return Dt!==dn})})})},[k,je,de]);var He=g.useMemo(function(){return new Set(re(Y))},[Y]),Ge=g.useMemo(function(){return new Set(re(pe))},[pe]),ft=Oe(st,St),kt=(0,ae.Z)(ft,2),Mt=kt[0],fn=kt[1],Pe=function(qt){fn(qt),Le(qt)},Te=function(qt){if(Bt)return!1;var Pt=qt.disabled,Ze=ve(qt,de);return!Pt&&(Ze||xe||st)},pt=function(qt,Pt){var Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Be(qt),!st&&(Pt||xe&&(Ue==="hover"||Ze))&&Fe(!1)},mt=g.useMemo(function(){return lt?Ye:k},[lt,Ye,k]),Ot=g.useMemo(function(){for(var dn=[{options:mt}],qt=mt,Pt=ot(qt,de),Ze=function(){var Nt=Mt[at],nn=qt.find(function(on,_n){return(Pt[_n]?Q(Pt[_n]):on[de.value])===Nt}),it=nn==null?void 0:nn[de.children];if(!(it!=null&&it.length))return 1;qt=it,dn.push({options:it})},at=0;at<Mt.length&&!Ze();at+=1);return dn},[mt,Mt,de]),xt=function(qt,Pt){Te(Pt)&&pt(qt,ve(Pt,de),!0)};j(Z,mt,de,Mt,Pe,xt,{direction:Ht,searchValue:lt,toggleOpen:Fe,open:St}),g.useEffect(function(){if(!lt)for(var dn=0;dn<Mt.length;dn+=1){var qt,Pt=Mt.slice(0,dn+1),Ze=Q(Pt),at=(qt=se.current)===null||qt===void 0?void 0:qt.querySelector('li[data-path-key="'.concat(Ze.replace(/\\{0,2}"/g,'\\"'),'"]'));at&&he(at)}},[Mt,lt]);var Tt=!((N=Ot[0])!==null&&N!==void 0&&(N=N.options)!==null&&N!==void 0&&N.length),Zt=[(Ie={},(0,b.Z)(Ie,de.value,"__EMPTY__"),(0,b.Z)(Ie,sn,_t),(0,b.Z)(Ie,"disabled",!0),Ie)],tn=(0,ue.Z)((0,ue.Z)({},ce),{},{multiple:!Tt&&st,onSelect:pt,onActive:Pe,onToggleOpen:Fe,checkedSet:He,halfCheckedSet:Ge,loadingKeys:je,isSelectable:Te}),Ft=Tt?[{options:Zt}]:Ot,un=Ft.map(function(dn,qt){var Pt=Mt.slice(0,qt),Ze=Mt[qt];return g.createElement(qe,(0,h.Z)({key:qt},tn,{prefixCls:I,options:dn.options,prevValuePath:Pt,activeValue:Ze}))});return g.createElement($t,{open:St},g.createElement("div",{className:Qt()("".concat(I,"-menus"),(Ce={},(0,b.Z)(Ce,"".concat(I,"-menu-empty"),Tt),(0,b.Z)(Ce,"".concat(I,"-rtl"),ge),Ce)),ref:se},un))}),Xe=ze,J=g.forwardRef(function(ce,Z){var N=(0,d.lk)();return g.createElement(Xe,(0,h.Z)({},ce,N,{ref:Z}))}),M=J,Se=_(70425);function be(){}function W(ce){var Z,N=ce,Ie=N.prefixCls,Ce=Ie===void 0?"rc-cascader":Ie,Ae=N.style,st=N.className,lt=N.options,Fe=N.checkable,_t=N.defaultValue,Ht=N.value,St=N.fieldNames,Bt=N.changeOnSelect,se=N.onChange,ge=N.showCheckedStrategy,Ee=N.loadData,k=N.expandTrigger,Y=N.expandIcon,pe=Y===void 0?">":Y,de=N.loadingIcon,xe=N.direction,Be=N.notFoundContent,Ye=Be===void 0?"Not Found":Be,dt=N.disabled,nt=!!Fe,Ue=(0,Se.C8)(_t,{value:Ht,postState:C}),I=(0,ae.Z)(Ue,2),K=I[0],S=I[1],je=g.useMemo(function(){return oe(St)},[JSON.stringify(St)]),De=O(je,lt),Le=(0,ae.Z)(De,3),He=Le[0],Ge=Le[1],ft=Le[2],kt=X(He,je),Mt=Rt(nt,K,Ge,ft,kt),fn=(0,ae.Z)(Mt,3),Pe=fn[0],Te=fn[1],pt=fn[2],mt=(0,Se.zX)(function(Ft){if(S(Ft),se){var un=C(Ft),dn=un.map(function(Ze){return G(Ze,He,je).map(function(at){return at.option})}),qt=nt?un:un[0],Pt=nt?dn:dn[0];se(qt,Pt)}}),Ot=Ct(nt,mt,Pe,Te,pt,Ge,ft,ge),xt=(0,Se.zX)(function(Ft){Ot(Ft)}),Tt=g.useMemo(function(){return{options:He,fieldNames:je,values:Pe,halfValues:Te,changeOnSelect:Bt,onSelect:xt,checkable:Fe,searchOptions:[],dropdownPrefixCls:void 0,loadData:Ee,expandTrigger:k,expandIcon:pe,loadingIcon:de,dropdownMenuColumnStyle:void 0}},[He,je,Pe,Te,Bt,xt,Fe,Ee,k,pe,de]),Zt="".concat(Ce,"-panel"),tn=!He.length;return g.createElement(p.Provider,{value:Tt},g.createElement("div",{className:Qt()(Zt,(Z={},(0,b.Z)(Z,"".concat(Zt,"-rtl"),xe==="rtl"),(0,b.Z)(Z,"".concat(Zt,"-empty"),tn),Z),st),style:Ae},tn?Ye:g.createElement(Xe,{prefixCls:Ce,searchValue:"",multiple:nt,toggleOpen:be,open:!0,direction:xe,disabled:dt})))}function fe(ce){var Z=ce.onPopupVisibleChange,N=ce.popupVisible,Ie=ce.popupClassName,Ce=ce.popupPlacement;warning(!Z,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(N===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Ie===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Ce===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function ye(ce,Z){if(ce){var N=function Ie(Ce){for(var Ae=0;Ae<Ce.length;Ae++){var st=Ce[Ae];if(st[Z==null?void 0:Z.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(st[Z==null?void 0:Z.children])&&Ie(st[Z==null?void 0:Z.children]))return!0}};N(ce)}}var tt=null,We=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],$e=g.forwardRef(function(ce,Z){var N=ce.id,Ie=ce.prefixCls,Ce=Ie===void 0?"rc-cascader":Ie,Ae=ce.fieldNames,st=ce.defaultValue,lt=ce.value,Fe=ce.changeOnSelect,_t=ce.onChange,Ht=ce.displayRender,St=ce.checkable,Bt=ce.autoClearSearchValue,se=Bt===void 0?!0:Bt,ge=ce.searchValue,Ee=ce.onSearch,k=ce.showSearch,Y=ce.expandTrigger,pe=ce.options,de=ce.dropdownPrefixCls,xe=ce.loadData,Be=ce.popupVisible,Ye=ce.open,dt=ce.popupClassName,nt=ce.dropdownClassName,Ue=ce.dropdownMenuColumnStyle,I=ce.dropdownStyle,K=ce.popupPlacement,S=ce.placement,je=ce.onDropdownVisibleChange,De=ce.onPopupVisibleChange,Le=ce.expandIcon,He=Le===void 0?">":Le,Ge=ce.loadingIcon,ft=ce.children,kt=ce.dropdownMatchSelectWidth,Mt=kt===void 0?!1:kt,fn=ce.showCheckedStrategy,Pe=fn===void 0?R:fn,Te=ce.optionRender,pt=(0,B.Z)(ce,We),mt=(0,_e.ZP)(N),Ot=!!St,xt=(0,o.Z)(st,{value:lt,postState:C}),Tt=(0,ae.Z)(xt,2),Zt=Tt[0],tn=Tt[1],Ft=g.useMemo(function(){return oe(Ae)},[JSON.stringify(Ae)]),un=O(Ft,pe),dn=(0,ae.Z)(un,3),qt=dn[0],Pt=dn[1],Ze=dn[2],at=(0,o.Z)("",{value:ge,postState:function(zt){return zt||""}}),Dt=(0,ae.Z)(at,2),Nt=Dt[0],nn=Dt[1],it=function(zt,Ut){nn(zt),Ut.source!=="blur"&&Ee&&Ee(zt)},on=Qe(k),_n=(0,ae.Z)(on,2),An=_n[0],Tn=_n[1],Xn=F(Nt,qt,Ft,de||Ce,Tn,Fe||Ot),bn=X(qt,Ft),Zn=Rt(Ot,Zt,Pt,Ze,bn),Nn=(0,ae.Z)(Zn,3),Mn=Nn[0],Dn=Nn[1],yn=Nn[2],Ln=g.useMemo(function(){var bt=re(Mn),zt=P(bt,Pt,Pe);return[].concat((0,z.Z)(yn),(0,z.Z)(Ze(zt)))},[Mn,Pt,Ze,yn,Pe]),pn=ie(Ln,qt,Ft,Ot,Ht),En=(0,te.Z)(function(bt){if(tn(bt),_t){var zt=C(bt),Ut=zt.map(function(Et){return G(Et,qt,Ft).map(function(At){return At.option})}),wt=Ot?zt:zt[0],vt=Ot?Ut:Ut[0];_t(wt,vt)}}),Rn=Ct(Ot,En,Mn,Dn,yn,Pt,Ze,Pe),Fn=(0,te.Z)(function(bt){(!Ot||se)&&nn(""),Rn(bt)}),Un=function(zt,Ut){if(Ut.type==="clear"){En([]);return}var wt=Ut.values[0],vt=wt.valueCells;Fn(vt)},jn=Ye!==void 0?Ye:Be,mr=nt||dt,Me=S||K,Re=function(zt){je==null||je(zt),De==null||De(zt)},ke=g.useMemo(function(){return{options:qt,fieldNames:Ft,values:Mn,halfValues:Dn,changeOnSelect:Fe,onSelect:Fn,checkable:St,searchOptions:Xn,dropdownPrefixCls:de,loadData:xe,expandTrigger:Y,expandIcon:He,loadingIcon:Ge,dropdownMenuColumnStyle:Ue,optionRender:Te}},[qt,Ft,Mn,Dn,Fe,Fn,St,Xn,de,xe,Y,He,Ge,Ue,Te]),ut=!(Nt?Xn:qt).length,gt=Nt&&Tn.matchInputWidth||ut?{}:{minWidth:"auto"};return g.createElement(p.Provider,{value:ke},g.createElement(d.Ac,(0,h.Z)({},pt,{ref:Z,id:mt,prefixCls:Ce,autoClearSearchValue:se,dropdownMatchSelectWidth:Mt,dropdownStyle:(0,ue.Z)((0,ue.Z)({},gt),I),displayValues:pn,onDisplayValuesChange:Un,mode:Ot?"multiple":void 0,searchValue:Nt,onSearch:it,showSearch:An,OptionList:M,emptyOptions:ut,open:jn,dropdownClassName:mr,placement:Me,onDropdownVisibleChange:Re,getRawInputElement:function(){return ft}})))});$e.SHOW_PARENT=R,$e.SHOW_CHILD=w,$e.Panel=W;var et=$e,ct=et},16632:function(Pn,Xt,_){"use strict";var h=_(54476),ue=_(33885),z=_(20068),ae=_(42978),B=_(75931),d=_(92310),_e=_.n(d),te=_(18929),o=_(59301),g=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],A=(0,o.forwardRef)(function(p,E){var b=p.prefixCls,L=b===void 0?"rc-checkbox":b,V=p.className,q=p.style,le=p.checked,F=p.disabled,H=p.defaultChecked,R=H===void 0?!1:H,w=p.type,Q=w===void 0?"checkbox":w,re=p.title,$=p.onChange,oe=(0,B.Z)(p,g),ve=(0,o.useRef)(null),he=(0,o.useRef)(null),ot=(0,te.Z)(R,{value:le}),U=(0,ae.Z)(ot,2),C=U[0],P=U[1];(0,o.useImperativeHandle)(E,function(){return{focus:function(y){var v;(v=ve.current)===null||v===void 0||v.focus(y)},blur:function(){var y;(y=ve.current)===null||y===void 0||y.blur()},input:ve.current,nativeElement:he.current}});var G=_e()(L,V,(0,z.Z)((0,z.Z)({},"".concat(L,"-checked"),C),"".concat(L,"-disabled"),F)),ie=function(y){F||("checked"in p||P(y.target.checked),$==null||$({target:(0,ue.Z)((0,ue.Z)({},p),{},{type:Q,checked:y.target.checked}),stopPropagation:function(){y.stopPropagation()},preventDefault:function(){y.preventDefault()},nativeEvent:y.nativeEvent}))};return o.createElement("span",{className:G,title:re,style:q,ref:he},o.createElement("input",(0,h.Z)({},oe,{className:"".concat(L,"-input"),ref:ve,onChange:ie,disabled:F,checked:!!C,type:Q})),o.createElement("span",{className:"".concat(L,"-inner")}))});Xt.Z=A},96478:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return re}});var h=_(54476),ue=_(20068),z=_(42978),ae=_(75931),B=_(65030),d=_(92310),_e=_.n(d),te=_(8654),o=_(59301),g=_(10228),A=_(16089),p=g.Z.ESC,E=g.Z.TAB;function b($){var oe=$.visible,ve=$.triggerRef,he=$.onVisibleChange,ot=$.autoFocus,U=$.overlayRef,C=o.useRef(!1),P=function(){if(oe){var y,v;(y=ve.current)===null||y===void 0||(v=y.focus)===null||v===void 0||v.call(y),he==null||he(!1)}},G=function(){var y;return(y=U.current)!==null&&y!==void 0&&y.focus?(U.current.focus(),C.current=!0,!0):!1},ie=function(y){switch(y.keyCode){case p:P();break;case E:{var v=!1;C.current||(v=G()),v?y.preventDefault():P();break}}};o.useEffect(function(){return oe?(window.addEventListener("keydown",ie),ot&&(0,A.Z)(G,3),function(){window.removeEventListener("keydown",ie),C.current=!1}):function(){C.current=!1}},[oe])}var L=(0,o.forwardRef)(function($,oe){var ve=$.overlay,he=$.arrow,ot=$.prefixCls,U=(0,o.useMemo)(function(){var P;return typeof ve=="function"?P=ve():P=ve,P},[ve]),C=(0,te.sQ)(oe,(0,te.C4)(U));return o.createElement(o.Fragment,null,he&&o.createElement("div",{className:"".concat(ot,"-arrow")}),o.cloneElement(U,{ref:(0,te.Yr)(U)?C:void 0}))}),V=L,q={adjustX:1,adjustY:1},le=[0,0],F={topLeft:{points:["bl","tl"],overflow:q,offset:[0,-4],targetOffset:le},top:{points:["bc","tc"],overflow:q,offset:[0,-4],targetOffset:le},topRight:{points:["br","tr"],overflow:q,offset:[0,-4],targetOffset:le},bottomLeft:{points:["tl","bl"],overflow:q,offset:[0,4],targetOffset:le},bottom:{points:["tc","bc"],overflow:q,offset:[0,4],targetOffset:le},bottomRight:{points:["tr","br"],overflow:q,offset:[0,4],targetOffset:le}},H=F,R=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w($,oe){var ve,he=$.arrow,ot=he===void 0?!1:he,U=$.prefixCls,C=U===void 0?"rc-dropdown":U,P=$.transitionName,G=$.animation,ie=$.align,X=$.placement,y=X===void 0?"bottomLeft":X,v=$.placements,O=v===void 0?H:v,me=$.getPopupContainer,Qe=$.showAction,rt=$.hideAction,Ct=$.overlayClassName,Rt=$.overlayStyle,Vt=$.visible,Qt=$.trigger,Ve=Qt===void 0?["hover"]:Qt,$t=$.autoFocus,It=$.overlay,sn=$.children,qe=$.onVisibleChange,ht=(0,ae.Z)($,R),Oe=o.useState(),we=(0,z.Z)(Oe,2),j=we[0],ze=we[1],Xe="visible"in $?Vt:j,J=o.useRef(null),M=o.useRef(null),Se=o.useRef(null);o.useImperativeHandle(oe,function(){return J.current});var be=function(ce){ze(ce),qe==null||qe(ce)};b({visible:Xe,triggerRef:Se,onVisibleChange:be,autoFocus:$t,overlayRef:M});var W=function(ce){var Z=$.onOverlayClick;ze(!1),Z&&Z(ce)},fe=function(){return o.createElement(V,{ref:M,overlay:It,prefixCls:C,arrow:ot})},ye=function(){return typeof It=="function"?fe:fe()},tt=function(){var ce=$.minOverlayWidthMatchTrigger,Z=$.alignPoint;return"minOverlayWidthMatchTrigger"in $?ce:!Z},We=function(){var ce=$.openClassName;return ce!==void 0?ce:"".concat(C,"-open")},$e=o.cloneElement(sn,{className:_e()((ve=sn.props)===null||ve===void 0?void 0:ve.className,Xe&&We()),ref:(0,te.Yr)(sn)?(0,te.sQ)(Se,(0,te.C4)(sn)):void 0}),et=rt;return!et&&Ve.indexOf("contextMenu")!==-1&&(et=["click"]),o.createElement(B.Z,(0,h.Z)({builtinPlacements:O},ht,{prefixCls:C,ref:J,popupClassName:_e()(Ct,(0,ue.Z)({},"".concat(C,"-show-arrow"),ot)),popupStyle:Rt,action:Ve,showAction:Qe,hideAction:et,popupPlacement:y,popupAlign:ie,popupTransitionName:P,popupAnimation:G,popupVisible:Xe,stretch:tt()?"minWidth":"",popup:ye(),onPopupVisibleChange:be,onPopupClick:W,getPopupContainer:me}),$e)}var Q=o.forwardRef(w),re=Q},66003:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return _e}});var h=_(75931),ue=_(33885),z=_(76190),ae=_(59301),B=["show"];function d(te,o){if(!o.max)return!0;var g=o.strategy(te);return g<=o.max}function _e(te,o){return ae.useMemo(function(){var g={};o&&(g.show=(0,z.Z)(o)==="object"&&o.formatter?o.formatter:!!o),g=(0,ue.Z)((0,ue.Z)({},g),te);var A=g,p=A.show,E=(0,h.Z)(A,B);return(0,ue.Z)((0,ue.Z)({},E),{},{show:!!p,showFormatter:typeof p=="function"?p:void 0,strategy:E.strategy||function(b){return b.length}})},[te,o])}},36901:function(Pn,Xt,_){"use strict";_.r(Xt),_.d(Xt,{BaseInput:function(){return g},default:function(){return H}});var h=_(33885),ue=_(54476),z=_(20068),ae=_(76190),B=_(92310),d=_.n(B),_e=_(59301),te=_(30292),o=_e.forwardRef(function(R,w){var Q,re,$,oe=R.inputElement,ve=R.children,he=R.prefixCls,ot=R.prefix,U=R.suffix,C=R.addonBefore,P=R.addonAfter,G=R.className,ie=R.style,X=R.disabled,y=R.readOnly,v=R.focused,O=R.triggerFocus,me=R.allowClear,Qe=R.value,rt=R.handleReset,Ct=R.hidden,Rt=R.classes,Vt=R.classNames,Qt=R.dataAttrs,Ve=R.styles,$t=R.components,It=R.onClear,sn=ve!=null?ve:oe,qe=($t==null?void 0:$t.affixWrapper)||"span",ht=($t==null?void 0:$t.groupWrapper)||"span",Oe=($t==null?void 0:$t.wrapper)||"span",we=($t==null?void 0:$t.groupAddon)||"span",j=(0,_e.useRef)(null),ze=function(Ie){var Ce;(Ce=j.current)!==null&&Ce!==void 0&&Ce.contains(Ie.target)&&(O==null||O())},Xe=(0,te.X3)(R),J=(0,_e.cloneElement)(sn,{value:Qe,className:d()((Q=sn.props)===null||Q===void 0?void 0:Q.className,!Xe&&(Vt==null?void 0:Vt.variant))||null}),M=(0,_e.useRef)(null);if(_e.useImperativeHandle(w,function(){return{nativeElement:M.current||j.current}}),Xe){var Se=null;if(me){var be=!X&&!y&&Qe,W="".concat(he,"-clear-icon"),fe=(0,ae.Z)(me)==="object"&&me!==null&&me!==void 0&&me.clearIcon?me.clearIcon:"\u2716";Se=_e.createElement("button",{type:"button",tabIndex:-1,onClick:function(Ie){rt==null||rt(Ie),It==null||It()},onMouseDown:function(Ie){return Ie.preventDefault()},className:d()(W,(0,z.Z)((0,z.Z)({},"".concat(W,"-hidden"),!be),"".concat(W,"-has-suffix"),!!U))},fe)}var ye="".concat(he,"-affix-wrapper"),tt=d()(ye,(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({},"".concat(he,"-disabled"),X),"".concat(ye,"-disabled"),X),"".concat(ye,"-focused"),v),"".concat(ye,"-readonly"),y),"".concat(ye,"-input-with-clear-btn"),U&&me&&Qe),Rt==null?void 0:Rt.affixWrapper,Vt==null?void 0:Vt.affixWrapper,Vt==null?void 0:Vt.variant),We=(U||me)&&_e.createElement("span",{className:d()("".concat(he,"-suffix"),Vt==null?void 0:Vt.suffix),style:Ve==null?void 0:Ve.suffix},Se,U);J=_e.createElement(qe,(0,ue.Z)({className:tt,style:Ve==null?void 0:Ve.affixWrapper,onClick:ze},Qt==null?void 0:Qt.affixWrapper,{ref:j}),ot&&_e.createElement("span",{className:d()("".concat(he,"-prefix"),Vt==null?void 0:Vt.prefix),style:Ve==null?void 0:Ve.prefix},ot),J,We)}if((0,te.He)(R)){var $e="".concat(he,"-group"),et="".concat($e,"-addon"),ct="".concat($e,"-wrapper"),ce=d()("".concat(he,"-wrapper"),$e,Rt==null?void 0:Rt.wrapper,Vt==null?void 0:Vt.wrapper),Z=d()(ct,(0,z.Z)({},"".concat(ct,"-disabled"),X),Rt==null?void 0:Rt.group,Vt==null?void 0:Vt.groupWrapper);J=_e.createElement(ht,{className:Z,ref:M},_e.createElement(Oe,{className:ce},C&&_e.createElement(we,{className:et},C),J,P&&_e.createElement(we,{className:et},P)))}return _e.cloneElement(J,{className:d()((re=J.props)===null||re===void 0?void 0:re.className,G)||null,style:(0,h.Z)((0,h.Z)({},($=J.props)===null||$===void 0?void 0:$.style),ie),hidden:Ct})}),g=o,A=_(94480),p=_(42978),E=_(75931),b=_(18929),L=_(2738),V=_(66003),q=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],le=(0,_e.forwardRef)(function(R,w){var Q=R.autoComplete,re=R.onChange,$=R.onFocus,oe=R.onBlur,ve=R.onPressEnter,he=R.onKeyDown,ot=R.onKeyUp,U=R.prefixCls,C=U===void 0?"rc-input":U,P=R.disabled,G=R.htmlSize,ie=R.className,X=R.maxLength,y=R.suffix,v=R.showCount,O=R.count,me=R.type,Qe=me===void 0?"text":me,rt=R.classes,Ct=R.classNames,Rt=R.styles,Vt=R.onCompositionStart,Qt=R.onCompositionEnd,Ve=(0,E.Z)(R,q),$t=(0,_e.useState)(!1),It=(0,p.Z)($t,2),sn=It[0],qe=It[1],ht=(0,_e.useRef)(!1),Oe=(0,_e.useRef)(!1),we=(0,_e.useRef)(null),j=(0,_e.useRef)(null),ze=function(Bt){we.current&&(0,te.nH)(we.current,Bt)},Xe=(0,b.Z)(R.defaultValue,{value:R.value}),J=(0,p.Z)(Xe,2),M=J[0],Se=J[1],be=M==null?"":String(M),W=(0,_e.useState)(null),fe=(0,p.Z)(W,2),ye=fe[0],tt=fe[1],We=(0,V.Z)(O,v),$e=We.max||X,et=We.strategy(be),ct=!!$e&&et>$e;(0,_e.useImperativeHandle)(w,function(){var St;return{focus:ze,blur:function(){var se;(se=we.current)===null||se===void 0||se.blur()},setSelectionRange:function(se,ge,Ee){var k;(k=we.current)===null||k===void 0||k.setSelectionRange(se,ge,Ee)},select:function(){var se;(se=we.current)===null||se===void 0||se.select()},input:we.current,nativeElement:((St=j.current)===null||St===void 0?void 0:St.nativeElement)||we.current}}),(0,_e.useEffect)(function(){Oe.current&&(Oe.current=!1),qe(function(St){return St&&P?!1:St})},[P]);var ce=function(Bt,se,ge){var Ee=se;if(!ht.current&&We.exceedFormatter&&We.max&&We.strategy(se)>We.max){if(Ee=We.exceedFormatter(se,{max:We.max}),se!==Ee){var k,Y;tt([((k=we.current)===null||k===void 0?void 0:k.selectionStart)||0,((Y=we.current)===null||Y===void 0?void 0:Y.selectionEnd)||0])}}else if(ge.source==="compositionEnd")return;Se(Ee),we.current&&(0,te.rJ)(we.current,Bt,re,Ee)};(0,_e.useEffect)(function(){if(ye){var St;(St=we.current)===null||St===void 0||St.setSelectionRange.apply(St,(0,A.Z)(ye))}},[ye]);var Z=function(Bt){ce(Bt,Bt.target.value,{source:"change"})},N=function(Bt){ht.current=!1,ce(Bt,Bt.currentTarget.value,{source:"compositionEnd"}),Qt==null||Qt(Bt)},Ie=function(Bt){ve&&Bt.key==="Enter"&&!Oe.current&&(Oe.current=!0,ve(Bt)),he==null||he(Bt)},Ce=function(Bt){Bt.key==="Enter"&&(Oe.current=!1),ot==null||ot(Bt)},Ae=function(Bt){qe(!0),$==null||$(Bt)},st=function(Bt){Oe.current&&(Oe.current=!1),qe(!1),oe==null||oe(Bt)},lt=function(Bt){Se(""),ze(),we.current&&(0,te.rJ)(we.current,Bt,re)},Fe=ct&&"".concat(C,"-out-of-range"),_t=function(){var Bt=(0,L.Z)(R,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return _e.createElement("input",(0,ue.Z)({autoComplete:Q},Bt,{onChange:Z,onFocus:Ae,onBlur:st,onKeyDown:Ie,onKeyUp:Ce,className:d()(C,(0,z.Z)({},"".concat(C,"-disabled"),P),Ct==null?void 0:Ct.input),style:Rt==null?void 0:Rt.input,ref:we,size:G,type:Qe,onCompositionStart:function(ge){ht.current=!0,Vt==null||Vt(ge)},onCompositionEnd:N}))},Ht=function(){var Bt=Number($e)>0;if(y||We.show){var se=We.showFormatter?We.showFormatter({value:be,count:et,maxLength:$e}):"".concat(et).concat(Bt?" / ".concat($e):"");return _e.createElement(_e.Fragment,null,We.show&&_e.createElement("span",{className:d()("".concat(C,"-show-count-suffix"),(0,z.Z)({},"".concat(C,"-show-count-has-suffix"),!!y),Ct==null?void 0:Ct.count),style:(0,h.Z)({},Rt==null?void 0:Rt.count)},se),y)}return null};return _e.createElement(g,(0,ue.Z)({},Ve,{prefixCls:C,className:d()(ie,Fe),handleReset:lt,value:be,focused:sn,triggerFocus:ze,suffix:Ht(),disabled:P,classes:rt,classNames:Ct,styles:Rt}),_t())}),F=le,H=F},30292:function(Pn,Xt,_){"use strict";_.d(Xt,{He:function(){return h},X3:function(){return ue},nH:function(){return B},rJ:function(){return ae}});function h(d){return!!(d.addonBefore||d.addonAfter)}function ue(d){return!!(d.prefix||d.suffix||d.allowClear)}function z(d,_e,te){var o=_e.cloneNode(!0),g=Object.create(d,{target:{value:o},currentTarget:{value:o}});return o.value=te,typeof _e.selectionStart=="number"&&typeof _e.selectionEnd=="number"&&(o.selectionStart=_e.selectionStart,o.selectionEnd=_e.selectionEnd),o.setSelectionRange=function(){_e.setSelectionRange.apply(_e,arguments)},g}function ae(d,_e,te,o){if(te){var g=_e;if(_e.type==="click"){g=z(_e,d,""),te(g);return}if(d.type!=="file"&&o!==void 0){g=z(_e,d,o),te(g);return}te(g)}}function B(d,_e){if(d){d.focus(_e);var te=_e||{},o=te.cursor;if(o){var g=d.value.length;switch(o){case"start":d.setSelectionRange(0,0);break;case"end":d.setSelectionRange(g,g);break;default:d.setSelectionRange(0,g)}}}}},28321:function(Pn,Xt,_){"use strict";_.d(Xt,{iz:function(){return Pe},ck:function(){return Ee},BW:function(){return Ot},sN:function(){return Ee},Wd:function(){return Mt},ZP:function(){return Pt},Xl:function(){return ve}});var h=_(54476),ue=_(20068),z=_(33885),ae=_(94480),B=_(42978),d=_(75931),_e=_(92310),te=_.n(_e),o=_(11780),g=_(18929),A=_(13697),p=_(48736),E=_(59301),b=_(4676),L=E.createContext(null);function V(Ze,at){return Ze===void 0?null:"".concat(Ze,"-").concat(at)}function q(Ze){var at=E.useContext(L);return V(at,Ze)}var le=_(80547),F=["children","locked"],H=E.createContext(null);function R(Ze,at){var Dt=(0,z.Z)({},Ze);return Object.keys(at).forEach(function(Nt){var nn=at[Nt];nn!==void 0&&(Dt[Nt]=nn)}),Dt}function w(Ze){var at=Ze.children,Dt=Ze.locked,Nt=(0,d.Z)(Ze,F),nn=E.useContext(H),it=(0,le.Z)(function(){return R(nn,Nt)},[nn,Nt],function(on,_n){return!Dt&&(on[0]!==_n[0]||!(0,A.Z)(on[1],_n[1],!0))});return E.createElement(H.Provider,{value:it},at)}var Q=[],re=E.createContext(null);function $(){return E.useContext(re)}var oe=E.createContext(Q);function ve(Ze){var at=E.useContext(oe);return E.useMemo(function(){return Ze!==void 0?[].concat((0,ae.Z)(at),[Ze]):at},[at,Ze])}var he=E.createContext(null),ot=E.createContext({}),U=ot,C=_(29194);function P(Ze){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,C.Z)(Ze)){var Dt=Ze.nodeName.toLowerCase(),Nt=["input","select","textarea","button"].includes(Dt)||Ze.isContentEditable||Dt==="a"&&!!Ze.getAttribute("href"),nn=Ze.getAttribute("tabindex"),it=Number(nn),on=null;return nn&&!Number.isNaN(it)?on=it:Nt&&on===null&&(on=0),Nt&&Ze.disabled&&(on=null),on!==null&&(on>=0||at&&on<0)}return!1}function G(Ze){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dt=(0,ae.Z)(Ze.querySelectorAll("*")).filter(function(Nt){return P(Nt,at)});return P(Ze,at)&&Dt.unshift(Ze),Dt}var ie=null;function X(){ie=document.activeElement}function y(){ie=null}function v(){if(ie)try{ie.focus()}catch(Ze){}}function O(Ze,at){if(at.keyCode===9){var Dt=G(Ze),Nt=Dt[at.shiftKey?0:Dt.length-1],nn=Nt===document.activeElement||Ze===document.activeElement;if(nn){var it=Dt[at.shiftKey?Dt.length-1:0];it.focus(),at.preventDefault()}}}var me=_(10228),Qe=_(16089),rt=me.Z.LEFT,Ct=me.Z.RIGHT,Rt=me.Z.UP,Vt=me.Z.DOWN,Qt=me.Z.ENTER,Ve=me.Z.ESC,$t=me.Z.HOME,It=me.Z.END,sn=[Rt,Vt,rt,Ct];function qe(Ze,at,Dt,Nt){var nn,it="prev",on="next",_n="children",An="parent";if(Ze==="inline"&&Nt===Qt)return{inlineTrigger:!0};var Tn=(0,ue.Z)((0,ue.Z)({},Rt,it),Vt,on),Xn=(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},rt,Dt?on:it),Ct,Dt?it:on),Vt,_n),Qt,_n),bn=(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},Rt,it),Vt,on),Qt,_n),Ve,An),rt,Dt?_n:An),Ct,Dt?An:_n),Zn={inline:Tn,horizontal:Xn,vertical:bn,inlineSub:Tn,horizontalSub:bn,verticalSub:bn},Nn=(nn=Zn["".concat(Ze).concat(at?"":"Sub")])===null||nn===void 0?void 0:nn[Nt];switch(Nn){case it:return{offset:-1,sibling:!0};case on:return{offset:1,sibling:!0};case An:return{offset:-1,sibling:!1};case _n:return{offset:1,sibling:!1};default:return null}}function ht(Ze){for(var at=Ze;at;){if(at.getAttribute("data-menu-list"))return at;at=at.parentElement}return null}function Oe(Ze,at){for(var Dt=Ze||document.activeElement;Dt;){if(at.has(Dt))return Dt;Dt=Dt.parentElement}return null}function we(Ze,at){var Dt=G(Ze,!0);return Dt.filter(function(Nt){return at.has(Nt)})}function j(Ze,at,Dt){var Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ze)return null;var nn=we(Ze,at),it=nn.length,on=nn.findIndex(function(_n){return Dt===_n});return Nt<0?on===-1?on=it-1:on-=1:Nt>0&&(on+=1),on=(on+it)%it,nn[on]}var ze=function(at,Dt){var Nt=new Set,nn=new Map,it=new Map;return at.forEach(function(on){var _n=document.querySelector("[data-menu-id='".concat(V(Dt,on),"']"));_n&&(Nt.add(_n),it.set(_n,on),nn.set(on,_n))}),{elements:Nt,key2element:nn,element2key:it}};function Xe(Ze,at,Dt,Nt,nn,it,on,_n,An,Tn){var Xn=E.useRef(),bn=E.useRef();bn.current=at;var Zn=function(){Qe.Z.cancel(Xn.current)};return E.useEffect(function(){return function(){Zn()}},[]),function(Nn){var Mn=Nn.which;if([].concat(sn,[Qt,Ve,$t,It]).includes(Mn)){var Dn=it(),yn=ze(Dn,Nt),Ln=yn,pn=Ln.elements,En=Ln.key2element,Rn=Ln.element2key,Fn=En.get(at),Un=Oe(Fn,pn),jn=Rn.get(Un),mr=qe(Ze,on(jn,!0).length===1,Dt,Mn);if(!mr&&Mn!==$t&&Mn!==It)return;(sn.includes(Mn)||[$t,It].includes(Mn))&&Nn.preventDefault();var Me=function(wt){if(wt){var vt=wt,Et=wt.querySelector("a");Et!=null&&Et.getAttribute("href")&&(vt=Et);var At=Rn.get(wt);_n(At),Zn(),Xn.current=(0,Qe.Z)(function(){bn.current===At&&vt.focus()})}};if([$t,It].includes(Mn)||mr.sibling||!Un){var Re;!Un||Ze==="inline"?Re=nn.current:Re=ht(Un);var ke,ut=we(Re,pn);Mn===$t?ke=ut[0]:Mn===It?ke=ut[ut.length-1]:ke=j(Re,pn,Un,mr.offset),Me(ke)}else if(mr.inlineTrigger)An(jn);else if(mr.offset>0)An(jn,!0),Zn(),Xn.current=(0,Qe.Z)(function(){yn=ze(Dn,Nt);var Ut=Un.getAttribute("aria-controls"),wt=document.getElementById(Ut),vt=j(wt,yn.elements);Me(vt)},5);else if(mr.offset<0){var gt=on(jn,!0),bt=gt[gt.length-2],zt=En.get(bt);An(bt,!1),Me(zt)}}Tn==null||Tn(Nn)}}function J(Ze){Promise.resolve().then(Ze)}var M="__RC_UTIL_PATH_SPLIT__",Se=function(at){return at.join(M)},be=function(at){return at.split(M)},W="rc-menu-more";function fe(){var Ze=E.useState({}),at=(0,B.Z)(Ze,2),Dt=at[1],Nt=(0,E.useRef)(new Map),nn=(0,E.useRef)(new Map),it=E.useState([]),on=(0,B.Z)(it,2),_n=on[0],An=on[1],Tn=(0,E.useRef)(0),Xn=(0,E.useRef)(!1),bn=function(){Xn.current||Dt({})},Zn=(0,E.useCallback)(function(En,Rn){var Fn=Se(Rn);nn.current.set(Fn,En),Nt.current.set(En,Fn),Tn.current+=1;var Un=Tn.current;J(function(){Un===Tn.current&&bn()})},[]),Nn=(0,E.useCallback)(function(En,Rn){var Fn=Se(Rn);nn.current.delete(Fn),Nt.current.delete(En)},[]),Mn=(0,E.useCallback)(function(En){An(En)},[]),Dn=(0,E.useCallback)(function(En,Rn){var Fn=Nt.current.get(En)||"",Un=be(Fn);return Rn&&_n.includes(Un[0])&&Un.unshift(W),Un},[_n]),yn=(0,E.useCallback)(function(En,Rn){return En.filter(function(Fn){return Fn!==void 0}).some(function(Fn){var Un=Dn(Fn,!0);return Un.includes(Rn)})},[Dn]),Ln=function(){var Rn=(0,ae.Z)(Nt.current.keys());return _n.length&&Rn.push(W),Rn},pn=(0,E.useCallback)(function(En){var Rn="".concat(Nt.current.get(En)).concat(M),Fn=new Set;return(0,ae.Z)(nn.current.keys()).forEach(function(Un){Un.startsWith(Rn)&&Fn.add(nn.current.get(Un))}),Fn},[]);return E.useEffect(function(){return function(){Xn.current=!0}},[]),{registerPath:Zn,unregisterPath:Nn,refreshOverflowKeys:Mn,isSubPathKey:yn,getKeyPath:Dn,getKeys:Ln,getSubPathKeys:pn}}function ye(Ze){var at=E.useRef(Ze);at.current=Ze;var Dt=E.useCallback(function(){for(var Nt,nn=arguments.length,it=new Array(nn),on=0;on<nn;on++)it[on]=arguments[on];return(Nt=at.current)===null||Nt===void 0?void 0:Nt.call.apply(Nt,[at].concat(it))},[]);return Ze?Dt:void 0}var tt=Math.random().toFixed(5).toString().slice(2),We=0;function $e(Ze){var at=(0,g.Z)(Ze,{value:Ze}),Dt=(0,B.Z)(at,2),Nt=Dt[0],nn=Dt[1];return E.useEffect(function(){We+=1;var it="".concat(tt,"-").concat(We);nn("rc-menu-uuid-".concat(it))},[]),Nt}var et=_(67732),ct=_(83652),ce=_(42403),Z=_(158),N=_(2738),Ie=_(8654);function Ce(Ze,at,Dt,Nt){var nn=E.useContext(H),it=nn.activeKey,on=nn.onActive,_n=nn.onInactive,An={active:it===Ze};return at||(An.onMouseEnter=function(Tn){Dt==null||Dt({key:Ze,domEvent:Tn}),on(Ze)},An.onMouseLeave=function(Tn){Nt==null||Nt({key:Ze,domEvent:Tn}),_n(Ze)}),An}function Ae(Ze){var at=E.useContext(H),Dt=at.mode,Nt=at.rtl,nn=at.inlineIndent;if(Dt!=="inline")return null;var it=Ze;return Nt?{paddingRight:it*nn}:{paddingLeft:it*nn}}function st(Ze){var at=Ze.icon,Dt=Ze.props,Nt=Ze.children,nn;return at===null||at===!1?null:(typeof at=="function"?nn=E.createElement(at,(0,z.Z)({},Dt)):typeof at!="boolean"&&(nn=at),nn||Nt||null)}var lt=["item"];function Fe(Ze){var at=Ze.item,Dt=(0,d.Z)(Ze,lt);return Object.defineProperty(Dt,"item",{get:function(){return(0,p.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),at}}),Dt}var _t=["title","attribute","elementRef"],Ht=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],St=["active"],Bt=function(Ze){(0,ce.Z)(Dt,Ze);var at=(0,Z.Z)(Dt);function Dt(){return(0,et.Z)(this,Dt),at.apply(this,arguments)}return(0,ct.Z)(Dt,[{key:"render",value:function(){var nn=this.props,it=nn.title,on=nn.attribute,_n=nn.elementRef,An=(0,d.Z)(nn,_t),Tn=(0,N.Z)(An,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,p.ZP)(!on,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),E.createElement(o.Z.Item,(0,h.Z)({},on,{title:typeof it=="string"?it:void 0},Tn,{ref:_n}))}}]),Dt}(E.Component),se=E.forwardRef(function(Ze,at){var Dt=Ze.style,Nt=Ze.className,nn=Ze.eventKey,it=Ze.warnKey,on=Ze.disabled,_n=Ze.itemIcon,An=Ze.children,Tn=Ze.role,Xn=Ze.onMouseEnter,bn=Ze.onMouseLeave,Zn=Ze.onClick,Nn=Ze.onKeyDown,Mn=Ze.onFocus,Dn=(0,d.Z)(Ze,Ht),yn=q(nn),Ln=E.useContext(H),pn=Ln.prefixCls,En=Ln.onItemClick,Rn=Ln.disabled,Fn=Ln.overflowDisabled,Un=Ln.itemIcon,jn=Ln.selectedKeys,mr=Ln.onActive,Me=E.useContext(U),Re=Me._internalRenderMenuItem,ke="".concat(pn,"-item"),ut=E.useRef(),gt=E.useRef(),bt=Rn||on,zt=(0,Ie.x1)(at,gt),Ut=ve(nn),wt=function(Sn){return{key:nn,keyPath:(0,ae.Z)(Ut).reverse(),item:ut.current,domEvent:Sn}},vt=_n||Un,Et=Ce(nn,bt,Xn,bn),At=Et.active,Kt=(0,d.Z)(Et,St),en=jn.includes(nn),mn=Ae(Ut.length),Bn=function(Sn){if(!bt){var Wn=wt(Sn);Zn==null||Zn(Fe(Wn)),En(Wn)}},hn=function(Sn){if(Nn==null||Nn(Sn),Sn.which===me.Z.ENTER){var Wn=wt(Sn);Zn==null||Zn(Fe(Wn)),En(Wn)}},xn=function(Sn){mr(nn),Mn==null||Mn(Sn)},On={};Ze.role==="option"&&(On["aria-selected"]=en);var kn=E.createElement(Bt,(0,h.Z)({ref:ut,elementRef:zt,role:Tn===null?"none":Tn||"menuitem",tabIndex:on?null:-1,"data-menu-id":Fn&&yn?null:yn},(0,N.Z)(Dn,["extra"]),Kt,On,{component:"li","aria-disabled":on,style:(0,z.Z)((0,z.Z)({},mn),Dt),className:te()(ke,(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(ke,"-active"),At),"".concat(ke,"-selected"),en),"".concat(ke,"-disabled"),bt),Nt),onClick:Bn,onKeyDown:hn,onFocus:xn}),An,E.createElement(st,{props:(0,z.Z)((0,z.Z)({},Ze),{},{isSelected:en}),icon:vt}));return Re&&(kn=Re(kn,Ze,{selected:en})),kn});function ge(Ze,at){var Dt=Ze.eventKey,Nt=$(),nn=ve(Dt);return E.useEffect(function(){if(Nt)return Nt.registerPath(Dt,nn),function(){Nt.unregisterPath(Dt,nn)}},[nn]),Nt?null:E.createElement(se,(0,h.Z)({},Ze,{ref:at}))}var Ee=E.forwardRef(ge),k=["className","children"],Y=function(at,Dt){var Nt=at.className,nn=at.children,it=(0,d.Z)(at,k),on=E.useContext(H),_n=on.prefixCls,An=on.mode,Tn=on.rtl;return E.createElement("ul",(0,h.Z)({className:te()(_n,Tn&&"".concat(_n,"-rtl"),"".concat(_n,"-sub"),"".concat(_n,"-").concat(An==="inline"?"inline":"vertical"),Nt),role:"menu"},it,{"data-menu-list":!0,ref:Dt}),nn)},pe=E.forwardRef(Y);pe.displayName="SubMenuList";var de=pe,xe=_(11592);function Be(Ze,at){return(0,xe.Z)(Ze).map(function(Dt,Nt){if(E.isValidElement(Dt)){var nn,it,on=Dt.key,_n=(nn=(it=Dt.props)===null||it===void 0?void 0:it.eventKey)!==null&&nn!==void 0?nn:on,An=_n==null;An&&(_n="tmp_key-".concat([].concat((0,ae.Z)(at),[Nt]).join("-")));var Tn={key:_n,eventKey:_n};return E.cloneElement(Dt,Tn)}return Dt})}var Ye=_(65030),dt={adjustX:1,adjustY:1},nt={topLeft:{points:["bl","tl"],overflow:dt},topRight:{points:["br","tr"],overflow:dt},bottomLeft:{points:["tl","bl"],overflow:dt},bottomRight:{points:["tr","br"],overflow:dt},leftTop:{points:["tr","tl"],overflow:dt},leftBottom:{points:["br","bl"],overflow:dt},rightTop:{points:["tl","tr"],overflow:dt},rightBottom:{points:["bl","br"],overflow:dt}},Ue={topLeft:{points:["bl","tl"],overflow:dt},topRight:{points:["br","tr"],overflow:dt},bottomLeft:{points:["tl","bl"],overflow:dt},bottomRight:{points:["tr","br"],overflow:dt},rightTop:{points:["tr","tl"],overflow:dt},rightBottom:{points:["br","bl"],overflow:dt},leftTop:{points:["tl","tr"],overflow:dt},leftBottom:{points:["bl","br"],overflow:dt}},I=null;function K(Ze,at,Dt){if(at)return at;if(Dt)return Dt[Ze]||Dt.other}var S={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function je(Ze){var at=Ze.prefixCls,Dt=Ze.visible,Nt=Ze.children,nn=Ze.popup,it=Ze.popupStyle,on=Ze.popupClassName,_n=Ze.popupOffset,An=Ze.disabled,Tn=Ze.mode,Xn=Ze.onVisibleChange,bn=E.useContext(H),Zn=bn.getPopupContainer,Nn=bn.rtl,Mn=bn.subMenuOpenDelay,Dn=bn.subMenuCloseDelay,yn=bn.builtinPlacements,Ln=bn.triggerSubMenuAction,pn=bn.forceSubMenuRender,En=bn.rootClassName,Rn=bn.motion,Fn=bn.defaultMotions,Un=E.useState(!1),jn=(0,B.Z)(Un,2),mr=jn[0],Me=jn[1],Re=Nn?(0,z.Z)((0,z.Z)({},Ue),yn):(0,z.Z)((0,z.Z)({},nt),yn),ke=S[Tn],ut=K(Tn,Rn,Fn),gt=E.useRef(ut);Tn!=="inline"&&(gt.current=ut);var bt=(0,z.Z)((0,z.Z)({},gt.current),{},{leavedClassName:"".concat(at,"-hidden"),removeOnLeave:!1,motionAppear:!0}),zt=E.useRef();return E.useEffect(function(){return zt.current=(0,Qe.Z)(function(){Me(Dt)}),function(){Qe.Z.cancel(zt.current)}},[Dt]),E.createElement(Ye.Z,{prefixCls:at,popupClassName:te()("".concat(at,"-popup"),(0,ue.Z)({},"".concat(at,"-rtl"),Nn),on,En),stretch:Tn==="horizontal"?"minWidth":null,getPopupContainer:Zn,builtinPlacements:Re,popupPlacement:ke,popupVisible:mr,popup:nn,popupStyle:it,popupAlign:_n&&{offset:_n},action:An?[]:[Ln],mouseEnterDelay:Mn,mouseLeaveDelay:Dn,onPopupVisibleChange:Xn,forceRender:pn,popupMotion:bt,fresh:!0},Nt)}var De=_(77900);function Le(Ze){var at=Ze.id,Dt=Ze.open,Nt=Ze.keyPath,nn=Ze.children,it="inline",on=E.useContext(H),_n=on.prefixCls,An=on.forceSubMenuRender,Tn=on.motion,Xn=on.defaultMotions,bn=on.mode,Zn=E.useRef(!1);Zn.current=bn===it;var Nn=E.useState(!Zn.current),Mn=(0,B.Z)(Nn,2),Dn=Mn[0],yn=Mn[1],Ln=Zn.current?Dt:!1;E.useEffect(function(){Zn.current&&yn(!1)},[bn]);var pn=(0,z.Z)({},K(it,Tn,Xn));Nt.length>1&&(pn.motionAppear=!1);var En=pn.onVisibleChanged;return pn.onVisibleChanged=function(Rn){return!Zn.current&&!Rn&&yn(!0),En==null?void 0:En(Rn)},Dn?null:E.createElement(w,{mode:it,locked:!Zn.current},E.createElement(De.default,(0,h.Z)({visible:Ln},pn,{forceRender:An,removeOnLeave:!1,leavedClassName:"".concat(_n,"-hidden")}),function(Rn){var Fn=Rn.className,Un=Rn.style;return E.createElement(de,{id:at,className:Fn,style:Un},nn)}))}var He=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ge=["active"],ft=E.forwardRef(function(Ze,at){var Dt=Ze.style,Nt=Ze.className,nn=Ze.title,it=Ze.eventKey,on=Ze.warnKey,_n=Ze.disabled,An=Ze.internalPopupClose,Tn=Ze.children,Xn=Ze.itemIcon,bn=Ze.expandIcon,Zn=Ze.popupClassName,Nn=Ze.popupOffset,Mn=Ze.popupStyle,Dn=Ze.onClick,yn=Ze.onMouseEnter,Ln=Ze.onMouseLeave,pn=Ze.onTitleClick,En=Ze.onTitleMouseEnter,Rn=Ze.onTitleMouseLeave,Fn=(0,d.Z)(Ze,He),Un=q(it),jn=E.useContext(H),mr=jn.prefixCls,Me=jn.mode,Re=jn.openKeys,ke=jn.disabled,ut=jn.overflowDisabled,gt=jn.activeKey,bt=jn.selectedKeys,zt=jn.itemIcon,Ut=jn.expandIcon,wt=jn.onItemClick,vt=jn.onOpenChange,Et=jn.onActive,At=E.useContext(U),Kt=At._internalRenderSubMenuItem,en=E.useContext(he),mn=en.isSubPathKey,Bn=ve(),hn="".concat(mr,"-submenu"),xn=ke||_n,On=E.useRef(),kn=E.useRef(),Hn=Xn!=null?Xn:zt,Sn=bn!=null?bn:Ut,Wn=Re.includes(it),zn=!ut&&Wn,tr=mn(bt,it),Yn=Ce(it,xn,En,Rn),qn=Yn.active,ur=(0,d.Z)(Yn,Ge),yt=E.useState(!1),Yt=(0,B.Z)(yt,2),an=Yt[0],Wt=Yt[1],gn=function(Cr){xn||Wt(Cr)},Kn=function(Cr){gn(!0),yn==null||yn({key:it,domEvent:Cr})},Cn=function(Cr){gn(!1),Ln==null||Ln({key:it,domEvent:Cr})},Jn=E.useMemo(function(){return qn||(Me!=="inline"?an||mn([gt],it):!1)},[Me,qn,gt,an,it,mn]),or=Ae(Bn.length),xr=function(Cr){xn||(pn==null||pn({key:it,domEvent:Cr}),Me==="inline"&&vt(it,!Wn))},Zr=ye(function(br){Dn==null||Dn(Fe(br)),wt(br)}),Mr=function(Cr){Me!=="inline"&&vt(it,Cr)},Jr=function(){Et(it)},Gr=Un&&"".concat(Un,"-popup"),wr=E.useMemo(function(){return E.createElement(st,{icon:Me!=="horizontal"?Sn:void 0,props:(0,z.Z)((0,z.Z)({},Ze),{},{isOpen:zn,isSubMenu:!0})},E.createElement("i",{className:"".concat(hn,"-arrow")}))},[Me,Sn,Ze,zn,hn]),_r=E.createElement("div",(0,h.Z)({role:"menuitem",style:or,className:"".concat(hn,"-title"),tabIndex:xn?null:-1,ref:On,title:typeof nn=="string"?nn:null,"data-menu-id":ut&&Un?null:Un,"aria-expanded":zn,"aria-haspopup":!0,"aria-controls":Gr,"aria-disabled":xn,onClick:xr,onFocus:Jr},ur),nn,wr),Dr=E.useRef(Me);if(Me!=="inline"&&Bn.length>1?Dr.current="vertical":Dr.current=Me,!ut){var Vr=Dr.current;_r=E.createElement(je,{mode:Vr,prefixCls:hn,visible:!An&&zn&&Me!=="inline",popupClassName:Zn,popupOffset:Nn,popupStyle:Mn,popup:E.createElement(w,{mode:Vr==="horizontal"?"vertical":Vr},E.createElement(de,{id:Gr,ref:kn},Tn)),disabled:xn,onVisibleChange:Mr},_r)}var Er=E.createElement(o.Z.Item,(0,h.Z)({ref:at,role:"none"},Fn,{component:"li",style:Dt,className:te()(hn,"".concat(hn,"-").concat(Me),Nt,(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(hn,"-open"),zn),"".concat(hn,"-active"),Jn),"".concat(hn,"-selected"),tr),"".concat(hn,"-disabled"),xn)),onMouseEnter:Kn,onMouseLeave:Cn}),_r,!ut&&E.createElement(Le,{id:Gr,open:zn,keyPath:Bn},Tn));return Kt&&(Er=Kt(Er,Ze,{selected:tr,active:Jn,open:zn,disabled:xn})),E.createElement(w,{onItemClick:Zr,mode:Me==="horizontal"?"vertical":Me,itemIcon:Hn,expandIcon:Sn},Er)}),kt=E.forwardRef(function(Ze,at){var Dt=Ze.eventKey,Nt=Ze.children,nn=ve(Dt),it=Be(Nt,nn),on=$();E.useEffect(function(){if(on)return on.registerPath(Dt,nn),function(){on.unregisterPath(Dt,nn)}},[nn]);var _n;return on?_n=it:_n=E.createElement(ft,(0,h.Z)({ref:at},Ze),it),E.createElement(oe.Provider,{value:nn},_n)}),Mt=kt,fn=_(76190);function Pe(Ze){var at=Ze.className,Dt=Ze.style,Nt=E.useContext(H),nn=Nt.prefixCls,it=$();return it?null:E.createElement("li",{role:"separator",className:te()("".concat(nn,"-item-divider"),at),style:Dt})}var Te=["className","title","eventKey","children"],pt=E.forwardRef(function(Ze,at){var Dt=Ze.className,Nt=Ze.title,nn=Ze.eventKey,it=Ze.children,on=(0,d.Z)(Ze,Te),_n=E.useContext(H),An=_n.prefixCls,Tn="".concat(An,"-item-group");return E.createElement("li",(0,h.Z)({ref:at,role:"presentation"},on,{onClick:function(bn){return bn.stopPropagation()},className:te()(Tn,Dt)}),E.createElement("div",{role:"presentation",className:"".concat(Tn,"-title"),title:typeof Nt=="string"?Nt:void 0},Nt),E.createElement("ul",{role:"group",className:"".concat(Tn,"-list")},it))}),mt=E.forwardRef(function(Ze,at){var Dt=Ze.eventKey,Nt=Ze.children,nn=ve(Dt),it=Be(Nt,nn),on=$();return on?it:E.createElement(pt,(0,h.Z)({ref:at},(0,N.Z)(Ze,["warnKey"])),it)}),Ot=mt,xt=["label","children","key","type","extra"];function Tt(Ze,at,Dt){var Nt=at.item,nn=at.group,it=at.submenu,on=at.divider;return(Ze||[]).map(function(_n,An){if(_n&&(0,fn.Z)(_n)==="object"){var Tn=_n,Xn=Tn.label,bn=Tn.children,Zn=Tn.key,Nn=Tn.type,Mn=Tn.extra,Dn=(0,d.Z)(Tn,xt),yn=Zn!=null?Zn:"tmp-".concat(An);return bn||Nn==="group"?Nn==="group"?E.createElement(nn,(0,h.Z)({key:yn},Dn,{title:Xn}),Tt(bn,at,Dt)):E.createElement(it,(0,h.Z)({key:yn},Dn,{title:Xn}),Tt(bn,at,Dt)):Nn==="divider"?E.createElement(on,(0,h.Z)({key:yn},Dn)):E.createElement(Nt,(0,h.Z)({key:yn},Dn,{extra:Mn}),Xn,(!!Mn||Mn===0)&&E.createElement("span",{className:"".concat(Dt,"-item-extra")},Mn))}return null}).filter(function(_n){return _n})}function Zt(Ze,at,Dt,Nt,nn){var it=Ze,on=(0,z.Z)({divider:Pe,item:Ee,group:Ot,submenu:Mt},Nt);return at&&(it=Tt(at,on,nn)),Be(it,Dt)}var tn=["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"],Ft=[],un=E.forwardRef(function(Ze,at){var Dt,Nt=Ze,nn=Nt.prefixCls,it=nn===void 0?"rc-menu":nn,on=Nt.rootClassName,_n=Nt.style,An=Nt.className,Tn=Nt.tabIndex,Xn=Tn===void 0?0:Tn,bn=Nt.items,Zn=Nt.children,Nn=Nt.direction,Mn=Nt.id,Dn=Nt.mode,yn=Dn===void 0?"vertical":Dn,Ln=Nt.inlineCollapsed,pn=Nt.disabled,En=Nt.disabledOverflow,Rn=Nt.subMenuOpenDelay,Fn=Rn===void 0?.1:Rn,Un=Nt.subMenuCloseDelay,jn=Un===void 0?.1:Un,mr=Nt.forceSubMenuRender,Me=Nt.defaultOpenKeys,Re=Nt.openKeys,ke=Nt.activeKey,ut=Nt.defaultActiveFirst,gt=Nt.selectable,bt=gt===void 0?!0:gt,zt=Nt.multiple,Ut=zt===void 0?!1:zt,wt=Nt.defaultSelectedKeys,vt=Nt.selectedKeys,Et=Nt.onSelect,At=Nt.onDeselect,Kt=Nt.inlineIndent,en=Kt===void 0?24:Kt,mn=Nt.motion,Bn=Nt.defaultMotions,hn=Nt.triggerSubMenuAction,xn=hn===void 0?"hover":hn,On=Nt.builtinPlacements,kn=Nt.itemIcon,Hn=Nt.expandIcon,Sn=Nt.overflowedIndicator,Wn=Sn===void 0?"...":Sn,zn=Nt.overflowedIndicatorPopupClassName,tr=Nt.getPopupContainer,Yn=Nt.onClick,qn=Nt.onOpenChange,ur=Nt.onKeyDown,yt=Nt.openAnimation,Yt=Nt.openTransitionName,an=Nt._internalRenderMenuItem,Wt=Nt._internalRenderSubMenuItem,gn=Nt._internalComponents,Kn=(0,d.Z)(Nt,tn),Cn=E.useMemo(function(){return[Zt(Zn,bn,Ft,gn,it),Zt(Zn,bn,Ft,{},it)]},[Zn,bn,gn]),Jn=(0,B.Z)(Cn,2),or=Jn[0],xr=Jn[1],Zr=E.useState(!1),Mr=(0,B.Z)(Zr,2),Jr=Mr[0],Gr=Mr[1],wr=E.useRef(),_r=$e(Mn),Dr=Nn==="rtl",Vr=(0,g.Z)(Me,{value:Re,postState:function(Ur){return Ur||Ft}}),Er=(0,B.Z)(Vr,2),br=Er[0],Cr=Er[1],Gn=function(Ur){var jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function li(){Cr(Ur),qn==null||qn(Ur)}jr?(0,b.flushSync)(li):li()},lr=E.useState(br),ar=(0,B.Z)(lr,2),dr=ar[0],Ar=ar[1],Ir=E.useRef(!1),qr=E.useMemo(function(){return(yn==="inline"||yn==="vertical")&&Ln?["vertical",Ln]:[yn,!1]},[yn,Ln]),Vn=(0,B.Z)(qr,2),ir=Vn[0],rr=Vn[1],cr=ir==="inline",yr=E.useState(ir),Fr=(0,B.Z)(yr,2),ri=Fr[0],$r=Fr[1],ei=E.useState(rr),Hr=(0,B.Z)(ei,2),is=Hr[0],ss=Hr[1];E.useEffect(function(){$r(ir),ss(rr),Ir.current&&(cr?Cr(dr):Gn(Ft))},[ir,rr]);var Ai=E.useState(0),Li=(0,B.Z)(Ai,2),yi=Li[0],zi=Li[1],ji=yi>=or.length-1||ri!=="horizontal"||En;E.useEffect(function(){cr&&Ar(br)},[br]),E.useEffect(function(){return Ir.current=!0,function(){Ir.current=!1}},[]);var xi=fe(),Vi=xi.registerPath,ki=xi.unregisterPath,as=xi.refreshOverflowKeys,Pi=xi.isSubPathKey,Es=xi.getKeyPath,ci=xi.getKeys,os=xi.getSubPathKeys,ls=E.useMemo(function(){return{registerPath:Vi,unregisterPath:ki}},[Vi,ki]),$i=E.useMemo(function(){return{isSubPathKey:Pi}},[Pi]);E.useEffect(function(){as(ji?Ft:or.slice(yi+1).map(function(Yr){return Yr.key}))},[yi,ji]);var Bi=(0,g.Z)(ke||ut&&((Dt=or[0])===null||Dt===void 0?void 0:Dt.key),{value:ke}),ai=(0,B.Z)(Bi,2),ti=ai[0],Rr=ai[1],Sr=ye(function(Yr){Rr(Yr)}),Xr=ye(function(){Rr(void 0)});(0,E.useImperativeHandle)(at,function(){return{list:wr.current,focus:function(Ur){var jr,li=ci(),si=ze(li,_r),Ti=si.elements,ds=si.key2element,Wi=si.element2key,Rs=we(wr.current,Ti),fs=ti!=null?ti:Rs[0]?Wi.get(Rs[0]):(jr=or.find(function(es){return!es.props.disabled}))===null||jr===void 0?void 0:jr.key,Gi=ds.get(fs);if(fs&&Gi){var hs;Gi==null||(hs=Gi.focus)===null||hs===void 0||hs.call(Gi,Ur)}}}});var Wr=(0,g.Z)(wt||[],{value:vt,postState:function(Ur){return Array.isArray(Ur)?Ur:Ur==null?Ft:[Ur]}}),Br=(0,B.Z)(Wr,2),Qr=Br[0],fi=Br[1],hi=function(Ur){if(bt){var jr=Ur.key,li=Qr.includes(jr),si;Ut?li?si=Qr.filter(function(ds){return ds!==jr}):si=[].concat((0,ae.Z)(Qr),[jr]):si=[jr],fi(si);var Ti=(0,z.Z)((0,z.Z)({},Ur),{},{selectedKeys:si});li?At==null||At(Ti):Et==null||Et(Ti)}!Ut&&br.length&&ri!=="inline"&&Gn(Ft)},Ci=ye(function(Yr){Yn==null||Yn(Fe(Yr)),hi(Yr)}),ni=ye(function(Yr,Ur){var jr=br.filter(function(si){return si!==Yr});if(Ur)jr.push(Yr);else if(ri!=="inline"){var li=os(Yr);jr=jr.filter(function(si){return!li.has(si)})}(0,A.Z)(br,jr,!0)||Gn(jr,!0)}),pi=function(Ur,jr){var li=jr!=null?jr:!br.includes(Ur);ni(Ur,li)},Ni=Xe(ri,ti,Dr,_r,wr,ci,Es,Rr,pi,ur);E.useEffect(function(){Gr(!0)},[]);var Si=E.useMemo(function(){return{_internalRenderMenuItem:an,_internalRenderSubMenuItem:Wt}},[an,Wt]),us=ri!=="horizontal"||En?or:or.map(function(Yr,Ur){return E.createElement(w,{key:Yr.key,overflowDisabled:Ur>yi},Yr)}),cs=E.createElement(o.Z,(0,h.Z)({id:Mn,ref:wr,prefixCls:"".concat(it,"-overflow"),component:"ul",itemComponent:Ee,className:te()(it,"".concat(it,"-root"),"".concat(it,"-").concat(ri),An,(0,ue.Z)((0,ue.Z)({},"".concat(it,"-inline-collapsed"),is),"".concat(it,"-rtl"),Dr),on),dir:Nn,style:_n,role:"menu",tabIndex:Xn,data:us,renderRawItem:function(Ur){return Ur},renderRawRest:function(Ur){var jr=Ur.length,li=jr?or.slice(-jr):null;return E.createElement(Mt,{eventKey:W,title:Wn,disabled:ji,internalPopupClose:jr===0,popupClassName:zn},li)},maxCount:ri!=="horizontal"||En?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ur){zi(Ur)},onKeyDown:Ni},Kn));return E.createElement(U.Provider,{value:Si},E.createElement(L.Provider,{value:_r},E.createElement(w,{prefixCls:it,rootClassName:on,mode:ri,openKeys:br,rtl:Dr,disabled:pn,motion:Jr?mn:null,defaultMotions:Jr?Bn:null,activeKey:ti,onActive:Sr,onInactive:Xr,selectedKeys:Qr,inlineIndent:en,subMenuOpenDelay:Fn,subMenuCloseDelay:jn,forceSubMenuRender:mr,builtinPlacements:On,triggerSubMenuAction:xn,getPopupContainer:tr,itemIcon:kn,expandIcon:Hn,onItemClick:Ci,onOpenChange:ni},E.createElement(he.Provider,{value:$i},cs),E.createElement("div",{style:{display:"none"},"aria-hidden":!0},E.createElement(re.Provider,{value:ls},xr)))))}),dn=un,qt=dn;qt.Item=Ee,qt.SubMenu=Mt,qt.ItemGroup=Ot,qt.Divider=Pe;var Pt=qt},11780:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return X}});var h=_(54476),ue=_(33885),z=_(42978),ae=_(75931),B=_(59301),d=_(92310),_e=_.n(d),te=_(29301),o=_(34280),g=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],A=void 0;function p(y,v){var O=y.prefixCls,me=y.invalidate,Qe=y.item,rt=y.renderItem,Ct=y.responsive,Rt=y.responsiveDisabled,Vt=y.registerSize,Qt=y.itemKey,Ve=y.className,$t=y.style,It=y.children,sn=y.display,qe=y.order,ht=y.component,Oe=ht===void 0?"div":ht,we=(0,ae.Z)(y,g),j=Ct&&!sn;function ze(be){Vt(Qt,be)}B.useEffect(function(){return function(){ze(null)}},[]);var Xe=rt&&Qe!==A?rt(Qe,{index:qe}):It,J;me||(J={opacity:j?0:1,height:j?0:A,overflowY:j?"hidden":A,order:Ct?qe:A,pointerEvents:j?"none":A,position:j?"absolute":A});var M={};j&&(M["aria-hidden"]=!0);var Se=B.createElement(Oe,(0,h.Z)({className:_e()(!me&&O,Ve),style:(0,ue.Z)((0,ue.Z)({},J),$t)},M,we,{ref:v}),Xe);return Ct&&(Se=B.createElement(te.Z,{onResize:function(W){var fe=W.offsetWidth;ze(fe)},disabled:Rt},Se)),Se}var E=B.forwardRef(p);E.displayName="Item";var b=E,L=_(6089),V=_(4676),q=_(16089);function le(y){if(typeof MessageChannel=="undefined")(0,q.Z)(y);else{var v=new MessageChannel;v.port1.onmessage=function(){return y()},v.port2.postMessage(void 0)}}function F(){var y=B.useRef(null),v=function(me){y.current||(y.current=[],le(function(){(0,V.unstable_batchedUpdates)(function(){y.current.forEach(function(Qe){Qe()}),y.current=null})})),y.current.push(me)};return v}function H(y,v){var O=B.useState(v),me=(0,z.Z)(O,2),Qe=me[0],rt=me[1],Ct=(0,L.Z)(function(Rt){y(function(){rt(Rt)})});return[Qe,Ct]}var R=B.createContext(null),w=["component"],Q=["className"],re=["className"],$=function(v,O){var me=B.useContext(R);if(!me){var Qe=v.component,rt=Qe===void 0?"div":Qe,Ct=(0,ae.Z)(v,w);return B.createElement(rt,(0,h.Z)({},Ct,{ref:O}))}var Rt=me.className,Vt=(0,ae.Z)(me,Q),Qt=v.className,Ve=(0,ae.Z)(v,re);return B.createElement(R.Provider,{value:null},B.createElement(b,(0,h.Z)({ref:O,className:_e()(Rt,Qt)},Vt,Ve)))},oe=B.forwardRef($);oe.displayName="RawItem";var ve=oe,he=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ot="responsive",U="invalidate";function C(y){return"+ ".concat(y.length," ...")}function P(y,v){var O=y.prefixCls,me=O===void 0?"rc-overflow":O,Qe=y.data,rt=Qe===void 0?[]:Qe,Ct=y.renderItem,Rt=y.renderRawItem,Vt=y.itemKey,Qt=y.itemWidth,Ve=Qt===void 0?10:Qt,$t=y.ssr,It=y.style,sn=y.className,qe=y.maxCount,ht=y.renderRest,Oe=y.renderRawRest,we=y.suffix,j=y.component,ze=j===void 0?"div":j,Xe=y.itemComponent,J=y.onVisibleChange,M=(0,ae.Z)(y,he),Se=$t==="full",be=F(),W=H(be,null),fe=(0,z.Z)(W,2),ye=fe[0],tt=fe[1],We=ye||0,$e=H(be,new Map),et=(0,z.Z)($e,2),ct=et[0],ce=et[1],Z=H(be,0),N=(0,z.Z)(Z,2),Ie=N[0],Ce=N[1],Ae=H(be,0),st=(0,z.Z)(Ae,2),lt=st[0],Fe=st[1],_t=H(be,0),Ht=(0,z.Z)(_t,2),St=Ht[0],Bt=Ht[1],se=(0,B.useState)(null),ge=(0,z.Z)(se,2),Ee=ge[0],k=ge[1],Y=(0,B.useState)(null),pe=(0,z.Z)(Y,2),de=pe[0],xe=pe[1],Be=B.useMemo(function(){return de===null&&Se?Number.MAX_SAFE_INTEGER:de||0},[de,ye]),Ye=(0,B.useState)(!1),dt=(0,z.Z)(Ye,2),nt=dt[0],Ue=dt[1],I="".concat(me,"-item"),K=Math.max(Ie,lt),S=qe===ot,je=rt.length&&S,De=qe===U,Le=je||typeof qe=="number"&&rt.length>qe,He=(0,B.useMemo)(function(){var qt=rt;return je?ye===null&&Se?qt=rt:qt=rt.slice(0,Math.min(rt.length,We/Ve)):typeof qe=="number"&&(qt=rt.slice(0,qe)),qt},[rt,Ve,ye,qe,je]),Ge=(0,B.useMemo)(function(){return je?rt.slice(Be+1):rt.slice(He.length)},[rt,He,je,Be]),ft=(0,B.useCallback)(function(qt,Pt){var Ze;return typeof Vt=="function"?Vt(qt):(Ze=Vt&&(qt==null?void 0:qt[Vt]))!==null&&Ze!==void 0?Ze:Pt},[Vt]),kt=(0,B.useCallback)(Ct||function(qt){return qt},[Ct]);function Mt(qt,Pt,Ze){de===qt&&(Pt===void 0||Pt===Ee)||(xe(qt),Ze||(Ue(qt<rt.length-1),J==null||J(qt)),Pt!==void 0&&k(Pt))}function fn(qt,Pt){tt(Pt.clientWidth)}function Pe(qt,Pt){ce(function(Ze){var at=new Map(Ze);return Pt===null?at.delete(qt):at.set(qt,Pt),at})}function Te(qt,Pt){Fe(Pt),Ce(lt)}function pt(qt,Pt){Bt(Pt)}function mt(qt){return ct.get(ft(He[qt],qt))}(0,o.Z)(function(){if(We&&typeof K=="number"&&He){var qt=St,Pt=He.length,Ze=Pt-1;if(!Pt){Mt(0,null);return}for(var at=0;at<Pt;at+=1){var Dt=mt(at);if(Se&&(Dt=Dt||0),Dt===void 0){Mt(at-1,void 0,!0);break}if(qt+=Dt,Ze===0&&qt<=We||at===Ze-1&&qt+mt(Ze)<=We){Mt(Ze,null);break}else if(qt+K>We){Mt(at-1,qt-Dt-St+lt);break}}we&&mt(0)+St>We&&k(null)}},[We,ct,lt,St,ft,He]);var Ot=nt&&!!Ge.length,xt={};Ee!==null&&je&&(xt={position:"absolute",left:Ee,top:0});var Tt={prefixCls:I,responsive:je,component:Xe,invalidate:De},Zt=Rt?function(qt,Pt){var Ze=ft(qt,Pt);return B.createElement(R.Provider,{key:Ze,value:(0,ue.Z)((0,ue.Z)({},Tt),{},{order:Pt,item:qt,itemKey:Ze,registerSize:Pe,display:Pt<=Be})},Rt(qt,Pt))}:function(qt,Pt){var Ze=ft(qt,Pt);return B.createElement(b,(0,h.Z)({},Tt,{order:Pt,key:Ze,item:qt,renderItem:kt,itemKey:Ze,registerSize:Pe,display:Pt<=Be}))},tn={order:Ot?Be:Number.MAX_SAFE_INTEGER,className:"".concat(I,"-rest"),registerSize:Te,display:Ot},Ft=ht||C,un=Oe?B.createElement(R.Provider,{value:(0,ue.Z)((0,ue.Z)({},Tt),tn)},Oe(Ge)):B.createElement(b,(0,h.Z)({},Tt,tn),typeof Ft=="function"?Ft(Ge):Ft),dn=B.createElement(ze,(0,h.Z)({className:_e()(!De&&me,sn),style:It,ref:v},M),He.map(Zt),Le?un:null,we&&B.createElement(b,(0,h.Z)({},Tt,{responsive:S,responsiveDisabled:!je,order:Be,className:"".concat(I,"-suffix"),registerSize:pt,display:!0,style:xt}),we));return S?B.createElement(te.Z,{onResize:fn,disabled:!je},dn):dn}var G=B.forwardRef(P);G.displayName="Overflow",G.Item=ve,G.RESPONSIVE=ot,G.INVALIDATE=U;var ie=G,X=ie},23425:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return re}});var h=_(20068),ue=_(54476),z=_(76190),ae=_(33885),B=_(42978),d=_(92310),_e=_.n(d),te=_(18929),o=_(10228),g=_(26112),A=_(48736),p=_(59301),E=_(17119),b=[10,20,50,100],L=function(oe){var ve=oe.pageSizeOptions,he=ve===void 0?b:ve,ot=oe.locale,U=oe.changeSize,C=oe.pageSize,P=oe.goButton,G=oe.quickGo,ie=oe.rootPrefixCls,X=oe.disabled,y=oe.buildOptionText,v=oe.showSizeChanger,O=oe.sizeChangerRender,me=p.useState(""),Qe=(0,B.Z)(me,2),rt=Qe[0],Ct=Qe[1],Rt=function(){return!rt||Number.isNaN(rt)?void 0:Number(rt)},Vt=typeof y=="function"?y:function(we){return"".concat(we," ").concat(ot.items_per_page)},Qt=function(j){Ct(j.target.value)},Ve=function(j){P||rt===""||(Ct(""),!(j.relatedTarget&&(j.relatedTarget.className.indexOf("".concat(ie,"-item-link"))>=0||j.relatedTarget.className.indexOf("".concat(ie,"-item"))>=0))&&(G==null||G(Rt())))},$t=function(j){rt!==""&&(j.keyCode===o.Z.ENTER||j.type==="click")&&(Ct(""),G==null||G(Rt()))},It=function(){return he.some(function(j){return j.toString()===C.toString()})?he:he.concat([C]).sort(function(j,ze){var Xe=Number.isNaN(Number(j))?0:Number(j),J=Number.isNaN(Number(ze))?0:Number(ze);return Xe-J})},sn="".concat(ie,"-options");if(!v&&!G)return null;var qe=null,ht=null,Oe=null;return v&&O&&(qe=O({disabled:X,size:C,onSizeChange:function(j){U==null||U(Number(j))},"aria-label":ot.page_size,className:"".concat(sn,"-size-changer"),options:It().map(function(we){return{label:Vt(we),value:we}})})),G&&(P&&(Oe=typeof P=="boolean"?p.createElement("button",{type:"button",onClick:$t,onKeyUp:$t,disabled:X,className:"".concat(sn,"-quick-jumper-button")},ot.jump_to_confirm):p.createElement("span",{onClick:$t,onKeyUp:$t},P)),ht=p.createElement("div",{className:"".concat(sn,"-quick-jumper")},ot.jump_to,p.createElement("input",{disabled:X,type:"text",value:rt,onChange:Qt,onKeyUp:$t,onBlur:Ve,"aria-label":ot.page}),ot.page,Oe)),p.createElement("li",{className:sn},qe,ht)},V=L,q=function(oe){var ve=oe.rootPrefixCls,he=oe.page,ot=oe.active,U=oe.className,C=oe.showTitle,P=oe.onClick,G=oe.onKeyPress,ie=oe.itemRender,X="".concat(ve,"-item"),y=_e()(X,"".concat(X,"-").concat(he),(0,h.Z)((0,h.Z)({},"".concat(X,"-active"),ot),"".concat(X,"-disabled"),!he),U),v=function(){P(he)},O=function(rt){G(rt,P,he)},me=ie(he,"page",p.createElement("a",{rel:"nofollow"},he));return me?p.createElement("li",{title:C?String(he):null,className:y,onClick:v,onKeyDown:O,tabIndex:0},me):null},le=q,F=function(oe,ve,he){return he};function H(){}function R($){var oe=Number($);return typeof oe=="number"&&!Number.isNaN(oe)&&isFinite(oe)&&Math.floor(oe)===oe}function w($,oe,ve){var he=typeof $=="undefined"?oe:$;return Math.floor((ve-1)/he)+1}var Q=function(oe){var ve=oe.prefixCls,he=ve===void 0?"rc-pagination":ve,ot=oe.selectPrefixCls,U=ot===void 0?"rc-select":ot,C=oe.className,P=oe.current,G=oe.defaultCurrent,ie=G===void 0?1:G,X=oe.total,y=X===void 0?0:X,v=oe.pageSize,O=oe.defaultPageSize,me=O===void 0?10:O,Qe=oe.onChange,rt=Qe===void 0?H:Qe,Ct=oe.hideOnSinglePage,Rt=oe.align,Vt=oe.showPrevNextJumpers,Qt=Vt===void 0?!0:Vt,Ve=oe.showQuickJumper,$t=oe.showLessItems,It=oe.showTitle,sn=It===void 0?!0:It,qe=oe.onShowSizeChange,ht=qe===void 0?H:qe,Oe=oe.locale,we=Oe===void 0?E.Z:Oe,j=oe.style,ze=oe.totalBoundaryShowSizeChanger,Xe=ze===void 0?50:ze,J=oe.disabled,M=oe.simple,Se=oe.showTotal,be=oe.showSizeChanger,W=be===void 0?y>Xe:be,fe=oe.sizeChangerRender,ye=oe.pageSizeOptions,tt=oe.itemRender,We=tt===void 0?F:tt,$e=oe.jumpPrevIcon,et=oe.jumpNextIcon,ct=oe.prevIcon,ce=oe.nextIcon,Z=p.useRef(null),N=(0,te.Z)(10,{value:v,defaultValue:me}),Ie=(0,B.Z)(N,2),Ce=Ie[0],Ae=Ie[1],st=(0,te.Z)(1,{value:P,defaultValue:ie,postState:function(En){return Math.max(1,Math.min(En,w(void 0,Ce,y)))}}),lt=(0,B.Z)(st,2),Fe=lt[0],_t=lt[1],Ht=p.useState(Fe),St=(0,B.Z)(Ht,2),Bt=St[0],se=St[1];(0,p.useEffect)(function(){se(Fe)},[Fe]);var ge=rt!==H,Ee="current"in oe,k=Math.max(1,Fe-($t?3:5)),Y=Math.min(w(void 0,Ce,y),Fe+($t?3:5));function pe(pn,En){var Rn=pn||p.createElement("button",{type:"button","aria-label":En,className:"".concat(he,"-item-link")});return typeof pn=="function"&&(Rn=p.createElement(pn,(0,ae.Z)({},oe))),Rn}function de(pn){var En=pn.target.value,Rn=w(void 0,Ce,y),Fn;return En===""?Fn=En:Number.isNaN(Number(En))?Fn=Bt:En>=Rn?Fn=Rn:Fn=Number(En),Fn}function xe(pn){return R(pn)&&pn!==Fe&&R(y)&&y>0}var Be=y>Ce?Ve:!1;function Ye(pn){(pn.keyCode===o.Z.UP||pn.keyCode===o.Z.DOWN)&&pn.preventDefault()}function dt(pn){var En=de(pn);switch(En!==Bt&&se(En),pn.keyCode){case o.Z.ENTER:I(En);break;case o.Z.UP:I(En-1);break;case o.Z.DOWN:I(En+1);break;default:break}}function nt(pn){I(de(pn))}function Ue(pn){var En=w(pn,Ce,y),Rn=Fe>En&&En!==0?En:Fe;Ae(pn),se(Rn),ht==null||ht(Fe,pn),_t(Rn),rt==null||rt(Rn,pn)}function I(pn){if(xe(pn)&&!J){var En=w(void 0,Ce,y),Rn=pn;return pn>En?Rn=En:pn<1&&(Rn=1),Rn!==Bt&&se(Rn),_t(Rn),rt==null||rt(Rn,Ce),Rn}return Fe}var K=Fe>1,S=Fe<w(void 0,Ce,y);function je(){K&&I(Fe-1)}function De(){S&&I(Fe+1)}function Le(){I(k)}function He(){I(Y)}function Ge(pn,En){if(pn.key==="Enter"||pn.charCode===o.Z.ENTER||pn.keyCode===o.Z.ENTER){for(var Rn=arguments.length,Fn=new Array(Rn>2?Rn-2:0),Un=2;Un<Rn;Un++)Fn[Un-2]=arguments[Un];En.apply(void 0,Fn)}}function ft(pn){Ge(pn,je)}function kt(pn){Ge(pn,De)}function Mt(pn){Ge(pn,Le)}function fn(pn){Ge(pn,He)}function Pe(pn){var En=We(pn,"prev",pe(ct,"prev page"));return p.isValidElement(En)?p.cloneElement(En,{disabled:!K}):En}function Te(pn){var En=We(pn,"next",pe(ce,"next page"));return p.isValidElement(En)?p.cloneElement(En,{disabled:!S}):En}function pt(pn){(pn.type==="click"||pn.keyCode===o.Z.ENTER)&&I(Bt)}var mt=null,Ot=(0,g.Z)(oe,{aria:!0,data:!0}),xt=Se&&p.createElement("li",{className:"".concat(he,"-total-text")},Se(y,[y===0?0:(Fe-1)*Ce+1,Fe*Ce>y?y:Fe*Ce])),Tt=null,Zt=w(void 0,Ce,y);if(Ct&&y<=Ce)return null;var tn=[],Ft={rootPrefixCls:he,onClick:I,onKeyPress:Ge,showTitle:sn,itemRender:We,page:-1},un=Fe-1>0?Fe-1:0,dn=Fe+1<Zt?Fe+1:Zt,qt=Ve&&Ve.goButton,Pt=(0,z.Z)(M)==="object"?M.readOnly:!M,Ze=qt,at=null;M&&(qt&&(typeof qt=="boolean"?Ze=p.createElement("button",{type:"button",onClick:pt,onKeyUp:pt},we.jump_to_confirm):Ze=p.createElement("span",{onClick:pt,onKeyUp:pt},qt),Ze=p.createElement("li",{title:sn?"".concat(we.jump_to).concat(Fe,"/").concat(Zt):null,className:"".concat(he,"-simple-pager")},Ze)),at=p.createElement("li",{title:sn?"".concat(Fe,"/").concat(Zt):null,className:"".concat(he,"-simple-pager")},Pt?Bt:p.createElement("input",{type:"text","aria-label":we.jump_to,value:Bt,disabled:J,onKeyDown:Ye,onKeyUp:dt,onChange:dt,onBlur:nt,size:3}),p.createElement("span",{className:"".concat(he,"-slash")},"/"),Zt));var Dt=$t?1:2;if(Zt<=3+Dt*2){Zt||tn.push(p.createElement(le,(0,ue.Z)({},Ft,{key:"noPager",page:1,className:"".concat(he,"-item-disabled")})));for(var Nt=1;Nt<=Zt;Nt+=1)tn.push(p.createElement(le,(0,ue.Z)({},Ft,{key:Nt,page:Nt,active:Fe===Nt})))}else{var nn=$t?we.prev_3:we.prev_5,it=$t?we.next_3:we.next_5,on=We(k,"jump-prev",pe($e,"prev page")),_n=We(Y,"jump-next",pe(et,"next page"));Qt&&(mt=on?p.createElement("li",{title:sn?nn:null,key:"prev",onClick:Le,tabIndex:0,onKeyDown:Mt,className:_e()("".concat(he,"-jump-prev"),(0,h.Z)({},"".concat(he,"-jump-prev-custom-icon"),!!$e))},on):null,Tt=_n?p.createElement("li",{title:sn?it:null,key:"next",onClick:He,tabIndex:0,onKeyDown:fn,className:_e()("".concat(he,"-jump-next"),(0,h.Z)({},"".concat(he,"-jump-next-custom-icon"),!!et))},_n):null);var An=Math.max(1,Fe-Dt),Tn=Math.min(Fe+Dt,Zt);Fe-1<=Dt&&(Tn=1+Dt*2),Zt-Fe<=Dt&&(An=Zt-Dt*2);for(var Xn=An;Xn<=Tn;Xn+=1)tn.push(p.createElement(le,(0,ue.Z)({},Ft,{key:Xn,page:Xn,active:Fe===Xn})));if(Fe-1>=Dt*2&&Fe!==3&&(tn[0]=p.cloneElement(tn[0],{className:_e()("".concat(he,"-item-after-jump-prev"),tn[0].props.className)}),tn.unshift(mt)),Zt-Fe>=Dt*2&&Fe!==Zt-2){var bn=tn[tn.length-1];tn[tn.length-1]=p.cloneElement(bn,{className:_e()("".concat(he,"-item-before-jump-next"),bn.props.className)}),tn.push(Tt)}An!==1&&tn.unshift(p.createElement(le,(0,ue.Z)({},Ft,{key:1,page:1}))),Tn!==Zt&&tn.push(p.createElement(le,(0,ue.Z)({},Ft,{key:Zt,page:Zt})))}var Zn=Pe(un);if(Zn){var Nn=!K||!Zt;Zn=p.createElement("li",{title:sn?we.prev_page:null,onClick:je,tabIndex:Nn?null:0,onKeyDown:ft,className:_e()("".concat(he,"-prev"),(0,h.Z)({},"".concat(he,"-disabled"),Nn)),"aria-disabled":Nn},Zn)}var Mn=Te(dn);if(Mn){var Dn,yn;M?(Dn=!S,yn=K?0:null):(Dn=!S||!Zt,yn=Dn?null:0),Mn=p.createElement("li",{title:sn?we.next_page:null,onClick:De,tabIndex:yn,onKeyDown:kt,className:_e()("".concat(he,"-next"),(0,h.Z)({},"".concat(he,"-disabled"),Dn)),"aria-disabled":Dn},Mn)}var Ln=_e()(he,C,(0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)({},"".concat(he,"-start"),Rt==="start"),"".concat(he,"-center"),Rt==="center"),"".concat(he,"-end"),Rt==="end"),"".concat(he,"-simple"),M),"".concat(he,"-disabled"),J));return p.createElement("ul",(0,ue.Z)({className:Ln,style:j,ref:Z},Ot),xt,Zn,M?at:tn,Mn,p.createElement(V,{locale:we,rootPrefixCls:he,disabled:J,selectPrefixCls:U,changeSize:Ue,pageSize:Ce,pageSizeOptions:ye,quickGo:Be?I:null,goButton:Ze,showSizeChanger:W,sizeChangerRender:fe}))},re=Q},25930:function(Pn,Xt,_){"use strict";_.d(Xt,{Cd:function(){return he}});var h=_(54476),ue=_(33885),z=_(75931),ae=_(59301),B=_(92310),d=_.n(B),_e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},te=function(){var C=(0,ae.useRef)([]),P=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var G=Date.now(),ie=!1;C.current.forEach(function(X){if(X){ie=!0;var y=X.style;y.transitionDuration=".3s, .3s, .3s, .06s",P.current&&G-P.current<100&&(y.transitionDuration="0s, 0s")}}),ie&&(P.current=Date.now())}),C.current},o=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],g=function(C){var P=(0,ue.Z)((0,ue.Z)({},_e),C),G=P.className,ie=P.percent,X=P.prefixCls,y=P.strokeColor,v=P.strokeLinecap,O=P.strokeWidth,me=P.style,Qe=P.trailColor,rt=P.trailWidth,Ct=P.transition,Rt=(0,z.Z)(P,o);delete Rt.gapPosition;var Vt=Array.isArray(ie)?ie:[ie],Qt=Array.isArray(y)?y:[y],Ve=te(),$t=O/2,It=100-O/2,sn="M ".concat(v==="round"?$t:0,",").concat($t,`
|
|
L `).concat(v==="round"?It:100,",").concat($t),qe="0 0 100 ".concat(O),ht=0;return ae.createElement("svg",(0,h.Z)({className:d()("".concat(X,"-line"),G),viewBox:qe,preserveAspectRatio:"none",style:me},Rt),ae.createElement("path",{className:"".concat(X,"-line-trail"),d:sn,strokeLinecap:v,stroke:Qe,strokeWidth:rt||O,fillOpacity:"0"}),Vt.map(function(Oe,we){var j=1;switch(v){case"round":j=1-O/100;break;case"square":j=1-O/2/100;break;default:j=1;break}var ze={strokeDasharray:"".concat(Oe*j,"px, 100px"),strokeDashoffset:"-".concat(ht,"px"),transition:Ct||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Xe=Qt[we]||Qt[Qt.length-1];return ht+=Oe,ae.createElement("path",{key:we,className:"".concat(X,"-line-path"),d:sn,strokeLinecap:v,stroke:Xe,strokeWidth:O,fillOpacity:"0",ref:function(M){Ve[we]=M},style:ze})}))},A=g,p=_(76190),E=_(42978),b=_(47273),L=0,V=(0,b.Z)();function q(){var U;return V?(U=L,L+=1):U="TEST_OR_SSR",U}var le=function(U){var C=ae.useState(),P=(0,E.Z)(C,2),G=P[0],ie=P[1];return ae.useEffect(function(){ie("rc_progress_".concat(q()))},[]),U||G},F=function(C){var P=C.bg,G=C.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:P}},G)};function H(U,C){return Object.keys(U).map(function(P){var G=parseFloat(P),ie="".concat(Math.floor(G*C),"%");return"".concat(U[P]," ").concat(ie)})}var R=ae.forwardRef(function(U,C){var P=U.prefixCls,G=U.color,ie=U.gradientId,X=U.radius,y=U.style,v=U.ptg,O=U.strokeLinecap,me=U.strokeWidth,Qe=U.size,rt=U.gapDegree,Ct=G&&(0,p.Z)(G)==="object",Rt=Ct?"#FFF":void 0,Vt=Qe/2,Qt=ae.createElement("circle",{className:"".concat(P,"-circle-path"),r:X,cx:Vt,cy:Vt,stroke:Rt,strokeLinecap:O,strokeWidth:me,opacity:v===0?0:1,style:y,ref:C});if(!Ct)return Qt;var Ve="".concat(ie,"-conic"),$t=rt?"".concat(180+rt/2,"deg"):"0deg",It=H(G,(360-rt)/360),sn=H(G,1),qe="conic-gradient(from ".concat($t,", ").concat(It.join(", "),")"),ht="linear-gradient(to ".concat(rt?"bottom":"top",", ").concat(sn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Ve},Qt),ae.createElement("foreignObject",{x:0,y:0,width:Qe,height:Qe,mask:"url(#".concat(Ve,")")},ae.createElement(F,{bg:ht},ae.createElement(F,{bg:qe}))))}),w=R,Q=100,re=function(C,P,G,ie,X,y,v,O,me,Qe){var rt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ct=G/100*360*((360-y)/360),Rt=y===0?0:{bottom:0,top:180,left:90,right:-90}[v],Vt=(100-ie)/100*P;me==="round"&&ie!==100&&(Vt+=Qe/2,Vt>=P&&(Vt=P-.01));var Qt=Q/2;return{stroke:typeof O=="string"?O:void 0,strokeDasharray:"".concat(P,"px ").concat(C),strokeDashoffset:Vt+rt,transform:"rotate(".concat(X+Ct+Rt,"deg)"),transformOrigin:"".concat(Qt,"px ").concat(Qt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},$=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function oe(U){var C=U!=null?U:[];return Array.isArray(C)?C:[C]}var ve=function(C){var P=(0,ue.Z)((0,ue.Z)({},_e),C),G=P.id,ie=P.prefixCls,X=P.steps,y=P.strokeWidth,v=P.trailWidth,O=P.gapDegree,me=O===void 0?0:O,Qe=P.gapPosition,rt=P.trailColor,Ct=P.strokeLinecap,Rt=P.style,Vt=P.className,Qt=P.strokeColor,Ve=P.percent,$t=(0,z.Z)(P,$),It=Q/2,sn=le(G),qe="".concat(sn,"-gradient"),ht=It-y/2,Oe=Math.PI*2*ht,we=me>0?90+me/2:-90,j=Oe*((360-me)/360),ze=(0,p.Z)(X)==="object"?X:{count:X,gap:2},Xe=ze.count,J=ze.gap,M=oe(Ve),Se=oe(Qt),be=Se.find(function(et){return et&&(0,p.Z)(et)==="object"}),W=be&&(0,p.Z)(be)==="object",fe=W?"butt":Ct,ye=re(Oe,j,0,100,we,me,Qe,rt,fe,y),tt=te(),We=function(){var ct=0;return M.map(function(ce,Z){var N=Se[Z]||Se[Se.length-1],Ie=re(Oe,j,ct,ce,we,me,Qe,N,fe,y);return ct+=ce,ae.createElement(w,{key:Z,color:N,ptg:ce,radius:ht,prefixCls:ie,gradientId:qe,style:Ie,strokeLinecap:fe,strokeWidth:y,gapDegree:me,ref:function(Ae){tt[Z]=Ae},size:Q})}).reverse()},$e=function(){var ct=Math.round(Xe*(M[0]/100)),ce=100/Xe,Z=0;return new Array(Xe).fill(null).map(function(N,Ie){var Ce=Ie<=ct-1?Se[0]:rt,Ae=Ce&&(0,p.Z)(Ce)==="object"?"url(#".concat(qe,")"):void 0,st=re(Oe,j,Z,ce,we,me,Qe,Ce,"butt",y,J);return Z+=(j-st.strokeDashoffset+J)*100/j,ae.createElement("circle",{key:Ie,className:"".concat(ie,"-circle-path"),r:ht,cx:It,cy:It,stroke:Ae,strokeWidth:y,opacity:1,style:st,ref:function(Fe){tt[Ie]=Fe}})})};return ae.createElement("svg",(0,h.Z)({className:d()("".concat(ie,"-circle"),Vt),viewBox:"0 0 ".concat(Q," ").concat(Q),style:Rt,id:G,role:"presentation"},$t),!Xe&&ae.createElement("circle",{className:"".concat(ie,"-circle-trail"),r:ht,cx:It,cy:It,stroke:rt,strokeLinecap:fe,strokeWidth:v||y,style:ye}),Xe?$e():We())},he=ve,ot={Line:A,Circle:he}},738:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return H}});var h=_(54476),ue=_(20068),z=_(42978),ae=_(75931),B=_(92310),d=_.n(B),_e=_(18929),te=_(10228),o=_(26112),g=_(59301);function A(R,w){var Q=R.disabled,re=R.prefixCls,$=R.character,oe=R.characterRender,ve=R.index,he=R.count,ot=R.value,U=R.allowHalf,C=R.focused,P=R.onHover,G=R.onClick,ie=function(Ct){P(Ct,ve)},X=function(Ct){G(Ct,ve)},y=function(Ct){Ct.keyCode===te.Z.ENTER&&G(Ct,ve)},v=ve+1,O=new Set([re]);ot===0&&ve===0&&C?O.add("".concat(re,"-focused")):U&&ot+.5>=v&&ot<v?(O.add("".concat(re,"-half")),O.add("".concat(re,"-active")),C&&O.add("".concat(re,"-focused"))):(v<=ot?O.add("".concat(re,"-full")):O.add("".concat(re,"-zero")),v===ot&&C&&O.add("".concat(re,"-focused")));var me=typeof $=="function"?$(R):$,Qe=g.createElement("li",{className:d()(Array.from(O)),ref:w},g.createElement("div",{onClick:Q?null:X,onKeyDown:Q?null:y,onMouseMove:Q?null:ie,role:"radio","aria-checked":ot>ve?"true":"false","aria-posinset":ve+1,"aria-setsize":he,tabIndex:Q?-1:0},g.createElement("div",{className:"".concat(re,"-first")},me),g.createElement("div",{className:"".concat(re,"-second")},me)));return oe&&(Qe=oe(Qe,R)),Qe}var p=g.forwardRef(A);function E(){var R=g.useRef({});function w(re){return R.current[re]}function Q(re){return function($){R.current[re]=$}}return[w,Q]}function b(R){var w=R.pageXOffset,Q="scrollLeft";if(typeof w!="number"){var re=R.document;w=re.documentElement[Q],typeof w!="number"&&(w=re.body[Q])}return w}function L(R){var w,Q,re=R.ownerDocument,$=re.body,oe=re&&re.documentElement,ve=R.getBoundingClientRect();return w=ve.left,Q=ve.top,w-=oe.clientLeft||$.clientLeft||0,Q-=oe.clientTop||$.clientTop||0,{left:w,top:Q}}function V(R){var w=L(R),Q=R.ownerDocument,re=Q.defaultView||Q.parentWindow;return w.left+=b(re),w.left}var q=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function le(R,w){var Q=R.prefixCls,re=Q===void 0?"rc-rate":Q,$=R.className,oe=R.defaultValue,ve=R.value,he=R.count,ot=he===void 0?5:he,U=R.allowHalf,C=U===void 0?!1:U,P=R.allowClear,G=P===void 0?!0:P,ie=R.keyboard,X=ie===void 0?!0:ie,y=R.character,v=y===void 0?"\u2605":y,O=R.characterRender,me=R.disabled,Qe=R.direction,rt=Qe===void 0?"ltr":Qe,Ct=R.tabIndex,Rt=Ct===void 0?0:Ct,Vt=R.autoFocus,Qt=R.onHoverChange,Ve=R.onChange,$t=R.onFocus,It=R.onBlur,sn=R.onKeyDown,qe=R.onMouseLeave,ht=(0,ae.Z)(R,q),Oe=E(),we=(0,z.Z)(Oe,2),j=we[0],ze=we[1],Xe=g.useRef(null),J=function(){if(!me){var k;(k=Xe.current)===null||k===void 0||k.focus()}};g.useImperativeHandle(w,function(){return{focus:J,blur:function(){if(!me){var k;(k=Xe.current)===null||k===void 0||k.blur()}}}});var M=(0,_e.Z)(oe||0,{value:ve}),Se=(0,z.Z)(M,2),be=Se[0],W=Se[1],fe=(0,_e.Z)(null),ye=(0,z.Z)(fe,2),tt=ye[0],We=ye[1],$e=function(k,Y){var pe=rt==="rtl",de=k+1;if(C){var xe=j(k),Be=V(xe),Ye=xe.clientWidth;(pe&&Y-Be>Ye/2||!pe&&Y-Be<Ye/2)&&(de-=.5)}return de},et=function(k){W(k),Ve==null||Ve(k)},ct=g.useState(!1),ce=(0,z.Z)(ct,2),Z=ce[0],N=ce[1],Ie=function(){N(!0),$t==null||$t()},Ce=function(){N(!1),It==null||It()},Ae=g.useState(null),st=(0,z.Z)(Ae,2),lt=st[0],Fe=st[1],_t=function(k,Y){var pe=$e(Y,k.pageX);pe!==tt&&(Fe(pe),We(null)),Qt==null||Qt(pe)},Ht=function(k){me||(Fe(null),We(null),Qt==null||Qt(void 0)),k&&(qe==null||qe(k))},St=function(k,Y){var pe=$e(Y,k.pageX),de=!1;G&&(de=pe===be),Ht(),et(de?0:pe),We(de?pe:null)},Bt=function(k){var Y=k.keyCode,pe=rt==="rtl",de=C?.5:1;X&&(Y===te.Z.RIGHT&&be<ot&&!pe?(et(be+de),k.preventDefault()):Y===te.Z.LEFT&&be>0&&!pe||Y===te.Z.RIGHT&&be>0&&pe?(et(be-de),k.preventDefault()):Y===te.Z.LEFT&&be<ot&&pe&&(et(be+de),k.preventDefault())),sn==null||sn(k)};g.useEffect(function(){Vt&&!me&&J()},[]);var se=new Array(ot).fill(0).map(function(Ee,k){return g.createElement(p,{ref:ze(k),index:k,count:ot,disabled:me,prefixCls:"".concat(re,"-star"),allowHalf:C,value:lt===null?be:lt,onClick:St,onHover:_t,key:Ee||k,character:v,characterRender:O,focused:Z})}),ge=d()(re,$,(0,ue.Z)((0,ue.Z)({},"".concat(re,"-disabled"),me),"".concat(re,"-rtl"),rt==="rtl"));return g.createElement("ul",(0,h.Z)({className:ge,onMouseLeave:Ht,tabIndex:me?-1:Rt,onFocus:me?null:Ie,onBlur:me?null:Ce,onKeyDown:me?null:Bt,ref:Xe},(0,o.Z)(ht,{aria:!0,data:!0,attr:!0})),se)}var F=g.forwardRef(le),H=F},29301:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return U}});var h=_(54476),ue=_(59301),z=_(11592),ae=_(48736),B=_(33885),d=_(76190),_e=_(76846),te=_(8654),o=ue.createContext(null);function g(C){var P=C.children,G=C.onBatchResize,ie=ue.useRef(0),X=ue.useRef([]),y=ue.useContext(o),v=ue.useCallback(function(O,me,Qe){ie.current+=1;var rt=ie.current;X.current.push({size:O,element:me,data:Qe}),Promise.resolve().then(function(){rt===ie.current&&(G==null||G(X.current),X.current=[])}),y==null||y(O,me,Qe)},[G,y]);return ue.createElement(o.Provider,{value:v},P)}var A=_(76374),p=new Map;function E(C){C.forEach(function(P){var G,ie=P.target;(G=p.get(ie))===null||G===void 0||G.forEach(function(X){return X(ie)})})}var b=new A.Z(E),L=null,V=null;function q(C,P){p.has(C)||(p.set(C,new Set),b.observe(C)),p.get(C).add(P)}function le(C,P){p.has(C)&&(p.get(C).delete(P),p.get(C).size||(b.unobserve(C),p.delete(C)))}var F=_(67732),H=_(83652),R=_(42403),w=_(158),Q=function(C){(0,R.Z)(G,C);var P=(0,w.Z)(G);function G(){return(0,F.Z)(this,G),P.apply(this,arguments)}return(0,H.Z)(G,[{key:"render",value:function(){return this.props.children}}]),G}(ue.Component);function re(C,P){var G=C.children,ie=C.disabled,X=ue.useRef(null),y=ue.useRef(null),v=ue.useContext(o),O=typeof G=="function",me=O?G(X):G,Qe=ue.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),rt=!O&&ue.isValidElement(me)&&(0,te.Yr)(me),Ct=rt?(0,te.C4)(me):null,Rt=(0,te.x1)(Ct,X),Vt=function(){var It;return(0,_e.ZP)(X.current)||(X.current&&(0,d.Z)(X.current)==="object"?(0,_e.ZP)((It=X.current)===null||It===void 0?void 0:It.nativeElement):null)||(0,_e.ZP)(y.current)};ue.useImperativeHandle(P,function(){return Vt()});var Qt=ue.useRef(C);Qt.current=C;var Ve=ue.useCallback(function($t){var It=Qt.current,sn=It.onResize,qe=It.data,ht=$t.getBoundingClientRect(),Oe=ht.width,we=ht.height,j=$t.offsetWidth,ze=$t.offsetHeight,Xe=Math.floor(Oe),J=Math.floor(we);if(Qe.current.width!==Xe||Qe.current.height!==J||Qe.current.offsetWidth!==j||Qe.current.offsetHeight!==ze){var M={width:Xe,height:J,offsetWidth:j,offsetHeight:ze};Qe.current=M;var Se=j===Math.round(Oe)?Oe:j,be=ze===Math.round(we)?we:ze,W=(0,B.Z)((0,B.Z)({},M),{},{offsetWidth:Se,offsetHeight:be});v==null||v(W,$t,qe),sn&&Promise.resolve().then(function(){sn(W,$t)})}},[]);return ue.useEffect(function(){var $t=Vt();return $t&&!ie&&q($t,Ve),function(){return le($t,Ve)}},[X.current,ie]),ue.createElement(Q,{ref:y},rt?ue.cloneElement(me,{ref:Rt}):me)}var $=ue.forwardRef(re),oe=$,ve="rc-observer-key";function he(C,P){var G=C.children,ie=typeof G=="function"?[G]:(0,z.Z)(G);return ie.map(function(X,y){var v=(X==null?void 0:X.key)||"".concat(ve,"-").concat(y);return ue.createElement(oe,(0,h.Z)({},C,{key:v,ref:y===0?P:void 0}),X)})}var ot=ue.forwardRef(he);ot.Collection=g;var U=ot},6551:function(Pn,Xt,_){"use strict";_.d(Xt,{ZP:function(){return _e}});var h=_(42978),ue=_(59301),z=_(47273),ae=0,B=(0,z.Z)();function d(){var te;return B?(te=ae,ae+=1):te="TEST_OR_SSR",te}function _e(te){var o=ue.useState(),g=(0,h.Z)(o,2),A=g[0],p=g[1];return ue.useEffect(function(){p("rc_select_".concat(d()))},[]),te||A}},37463:function(Pn,Xt,_){"use strict";_.d(Xt,{Ac:function(){return N},Xo:function(){return Ce},Wx:function(){return st},ZP:function(){return fn},lk:function(){return H}});var h=_(54476),ue=_(94480),z=_(20068),ae=_(33885),B=_(42978),d=_(75931),_e=_(76190),te=_(18929),o=_(48736),g=_(59301),A=_(92310),p=_.n(A),E=_(34280),b=_(49658),L=_(8654),V=function(Te){var pt=Te.className,mt=Te.customizeIcon,Ot=Te.customizeIconProps,xt=Te.children,Tt=Te.onMouseDown,Zt=Te.onClick,tn=typeof mt=="function"?mt(Ot):mt;return g.createElement("span",{className:pt,onMouseDown:function(un){un.preventDefault(),Tt==null||Tt(un)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Zt,"aria-hidden":!0},tn!==void 0?tn:g.createElement("span",{className:p()(pt.split(/\s+/).map(function(Ft){return"".concat(Ft,"-icon")}))},xt))},q=V,le=function(Te,pt,mt,Ot,xt){var Tt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Zt=arguments.length>6?arguments[6]:void 0,tn=arguments.length>7?arguments[7]:void 0,Ft=g.useMemo(function(){if((0,_e.Z)(Ot)==="object")return Ot.clearIcon;if(xt)return xt},[Ot,xt]),un=g.useMemo(function(){return!!(!Tt&&Ot&&(mt.length||Zt)&&!(tn==="combobox"&&Zt===""))},[Ot,Tt,mt.length,Zt,tn]);return{allowClear:un,clearIcon:g.createElement(q,{className:"".concat(Te,"-clear"),onMouseDown:pt,customizeIcon:Ft},"\xD7")}},F=g.createContext(null);function H(){return g.useContext(F)}function R(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Te=g.useState(!1),pt=(0,B.Z)(Te,2),mt=pt[0],Ot=pt[1],xt=g.useRef(null),Tt=function(){window.clearTimeout(xt.current)};g.useEffect(function(){return Tt},[]);var Zt=function(Ft,un){Tt(),xt.current=window.setTimeout(function(){Ot(Ft),un&&un()},Pe)};return[mt,Zt,Tt]}function w(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Te=g.useRef(null),pt=g.useRef(null);g.useEffect(function(){return function(){window.clearTimeout(pt.current)}},[]);function mt(Ot){(Ot||Te.current===null)&&(Te.current=Ot),window.clearTimeout(pt.current),pt.current=window.setTimeout(function(){Te.current=null},Pe)}return[function(){return Te.current},mt]}function Q(Pe,Te,pt,mt){var Ot=g.useRef(null);Ot.current={open:Te,triggerOpen:pt,customizedTrigger:mt},g.useEffect(function(){function xt(Tt){var Zt;if(!((Zt=Ot.current)!==null&&Zt!==void 0&&Zt.customizedTrigger)){var tn=Tt.target;tn.shadowRoot&&Tt.composed&&(tn=Tt.composedPath()[0]||tn),Ot.current.open&&Pe().filter(function(Ft){return Ft}).every(function(Ft){return!Ft.contains(tn)&&Ft!==tn})&&Ot.current.triggerOpen(!1)}}return window.addEventListener("mousedown",xt),function(){return window.removeEventListener("mousedown",xt)}},[])}var re=_(10228);function $(Pe){return Pe&&![re.Z.ESC,re.Z.SHIFT,re.Z.BACKSPACE,re.Z.TAB,re.Z.WIN_KEY,re.Z.ALT,re.Z.META,re.Z.WIN_KEY_RIGHT,re.Z.CTRL,re.Z.SEMICOLON,re.Z.EQUALS,re.Z.CAPS_LOCK,re.Z.CONTEXT_MENU,re.Z.F1,re.Z.F2,re.Z.F3,re.Z.F4,re.Z.F5,re.Z.F6,re.Z.F7,re.Z.F8,re.Z.F9,re.Z.F10,re.Z.F11,re.Z.F12].includes(Pe)}var oe=_(26112),ve=_(11780);function he(Pe,Te,pt){var mt=(0,ae.Z)((0,ae.Z)({},Pe),pt?Te:{});return Object.keys(Te).forEach(function(Ot){var xt=Te[Ot];typeof xt=="function"&&(mt[Ot]=function(){for(var Tt,Zt=arguments.length,tn=new Array(Zt),Ft=0;Ft<Zt;Ft++)tn[Ft]=arguments[Ft];return xt.apply(void 0,tn),(Tt=Pe[Ot])===null||Tt===void 0?void 0:Tt.call.apply(Tt,[Pe].concat(tn))})}),mt}var ot=he,U=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],C=function(Te,pt){var mt=Te.prefixCls,Ot=Te.id,xt=Te.inputElement,Tt=Te.autoFocus,Zt=Te.autoComplete,tn=Te.editable,Ft=Te.activeDescendantId,un=Te.value,dn=Te.open,qt=Te.attrs,Pt=(0,d.Z)(Te,U),Ze=xt||g.createElement("input",null),at=Ze,Dt=at.ref,Nt=at.props;return(0,o.Kp)(!("maxLength"in Ze.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ze=g.cloneElement(Ze,(0,ae.Z)((0,ae.Z)((0,ae.Z)({type:"search"},ot(Pt,Nt,!0)),{},{id:Ot,ref:(0,L.sQ)(pt,Dt),autoComplete:Zt||"off",autoFocus:Tt,className:p()("".concat(mt,"-selection-search-input"),Nt==null?void 0:Nt.className),role:"combobox","aria-expanded":dn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ot,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ot,"_list"),"aria-activedescendant":dn?Ft:void 0},qt),{},{value:tn?un:"",readOnly:!tn,unselectable:tn?null:"on",style:(0,ae.Z)((0,ae.Z)({},Nt.style),{},{opacity:tn?null:0})})),Ze},P=g.forwardRef(C),G=P;function ie(Pe){return Array.isArray(Pe)?Pe:Pe!==void 0?[Pe]:[]}var X=typeof window!="undefined"&&window.document&&window.document.documentElement,y=X;function v(Pe){return Pe!=null}function O(Pe){return!Pe&&Pe!==0}function me(Pe){return["string","number"].includes((0,_e.Z)(Pe))}function Qe(Pe){var Te=void 0;return Pe&&(me(Pe.title)?Te=Pe.title.toString():me(Pe.label)&&(Te=Pe.label.toString())),Te}function rt(Pe,Te){y?g.useLayoutEffect(Pe,Te):g.useEffect(Pe,Te)}function Ct(Pe){var Te;return(Te=Pe.key)!==null&&Te!==void 0?Te:Pe.value}var Rt=function(Te){Te.preventDefault(),Te.stopPropagation()},Vt=function(Te){var pt=Te.id,mt=Te.prefixCls,Ot=Te.values,xt=Te.open,Tt=Te.searchValue,Zt=Te.autoClearSearchValue,tn=Te.inputRef,Ft=Te.placeholder,un=Te.disabled,dn=Te.mode,qt=Te.showSearch,Pt=Te.autoFocus,Ze=Te.autoComplete,at=Te.activeDescendantId,Dt=Te.tabIndex,Nt=Te.removeIcon,nn=Te.maxTagCount,it=Te.maxTagTextLength,on=Te.maxTagPlaceholder,_n=on===void 0?function(At){return"+ ".concat(At.length," ...")}:on,An=Te.tagRender,Tn=Te.onToggleOpen,Xn=Te.onRemove,bn=Te.onInputChange,Zn=Te.onInputPaste,Nn=Te.onInputKeyDown,Mn=Te.onInputMouseDown,Dn=Te.onInputCompositionStart,yn=Te.onInputCompositionEnd,Ln=Te.onInputBlur,pn=g.useRef(null),En=(0,g.useState)(0),Rn=(0,B.Z)(En,2),Fn=Rn[0],Un=Rn[1],jn=(0,g.useState)(!1),mr=(0,B.Z)(jn,2),Me=mr[0],Re=mr[1],ke="".concat(mt,"-selection"),ut=xt||dn==="multiple"&&Zt===!1||dn==="tags"?Tt:"",gt=dn==="tags"||dn==="multiple"&&Zt===!1||qt&&(xt||Me);rt(function(){Un(pn.current.scrollWidth)},[ut]);var bt=function(Kt,en,mn,Bn,hn){return g.createElement("span",{title:Qe(Kt),className:p()("".concat(ke,"-item"),(0,z.Z)({},"".concat(ke,"-item-disabled"),mn))},g.createElement("span",{className:"".concat(ke,"-item-content")},en),Bn&&g.createElement(q,{className:"".concat(ke,"-item-remove"),onMouseDown:Rt,onClick:hn,customizeIcon:Nt},"\xD7"))},zt=function(Kt,en,mn,Bn,hn,xn){var On=function(Hn){Rt(Hn),Tn(!xt)};return g.createElement("span",{onMouseDown:On},An({label:en,value:Kt,disabled:mn,closable:Bn,onClose:hn,isMaxTag:!!xn}))},Ut=function(Kt){var en=Kt.disabled,mn=Kt.label,Bn=Kt.value,hn=!un&&!en,xn=mn;if(typeof it=="number"&&(typeof mn=="string"||typeof mn=="number")){var On=String(xn);On.length>it&&(xn="".concat(On.slice(0,it),"..."))}var kn=function(Sn){Sn&&Sn.stopPropagation(),Xn(Kt)};return typeof An=="function"?zt(Bn,xn,en,hn,kn):bt(Kt,xn,en,hn,kn)},wt=function(Kt){if(!Ot.length)return null;var en=typeof _n=="function"?_n(Kt):_n;return typeof An=="function"?zt(void 0,en,!1,!1,void 0,!0):bt({title:en},en,!1)},vt=g.createElement("div",{className:"".concat(ke,"-search"),style:{width:Fn},onFocus:function(){Re(!0)},onBlur:function(){Re(!1)}},g.createElement(G,{ref:tn,open:xt,prefixCls:mt,id:pt,inputElement:null,disabled:un,autoFocus:Pt,autoComplete:Ze,editable:gt,activeDescendantId:at,value:ut,onKeyDown:Nn,onMouseDown:Mn,onChange:bn,onPaste:Zn,onCompositionStart:Dn,onCompositionEnd:yn,onBlur:Ln,tabIndex:Dt,attrs:(0,oe.Z)(Te,!0)}),g.createElement("span",{ref:pn,className:"".concat(ke,"-search-mirror"),"aria-hidden":!0},ut,"\xA0")),Et=g.createElement(ve.Z,{prefixCls:"".concat(ke,"-overflow"),data:Ot,renderItem:Ut,renderRest:wt,suffix:vt,itemKey:Ct,maxCount:nn});return g.createElement("span",{className:"".concat(ke,"-wrap")},Et,!Ot.length&&!ut&&g.createElement("span",{className:"".concat(ke,"-placeholder")},Ft))},Qt=Vt,Ve=function(Te){var pt=Te.inputElement,mt=Te.prefixCls,Ot=Te.id,xt=Te.inputRef,Tt=Te.disabled,Zt=Te.autoFocus,tn=Te.autoComplete,Ft=Te.activeDescendantId,un=Te.mode,dn=Te.open,qt=Te.values,Pt=Te.placeholder,Ze=Te.tabIndex,at=Te.showSearch,Dt=Te.searchValue,Nt=Te.activeValue,nn=Te.maxLength,it=Te.onInputKeyDown,on=Te.onInputMouseDown,_n=Te.onInputChange,An=Te.onInputPaste,Tn=Te.onInputCompositionStart,Xn=Te.onInputCompositionEnd,bn=Te.onInputBlur,Zn=Te.title,Nn=g.useState(!1),Mn=(0,B.Z)(Nn,2),Dn=Mn[0],yn=Mn[1],Ln=un==="combobox",pn=Ln||at,En=qt[0],Rn=Dt||"";Ln&&Nt&&!Dn&&(Rn=Nt),g.useEffect(function(){Ln&&yn(!1)},[Ln,Nt]);var Fn=un!=="combobox"&&!dn&&!at?!1:!!Rn,Un=Zn===void 0?Qe(En):Zn,jn=g.useMemo(function(){return En?null:g.createElement("span",{className:"".concat(mt,"-selection-placeholder"),style:Fn?{visibility:"hidden"}:void 0},Pt)},[En,Fn,Pt,mt]);return g.createElement("span",{className:"".concat(mt,"-selection-wrap")},g.createElement("span",{className:"".concat(mt,"-selection-search")},g.createElement(G,{ref:xt,prefixCls:mt,id:Ot,open:dn,inputElement:pt,disabled:Tt,autoFocus:Zt,autoComplete:tn,editable:pn,activeDescendantId:Ft,value:Rn,onKeyDown:it,onMouseDown:on,onChange:function(Me){yn(!0),_n(Me)},onPaste:An,onCompositionStart:Tn,onCompositionEnd:Xn,onBlur:bn,tabIndex:Ze,attrs:(0,oe.Z)(Te,!0),maxLength:Ln?nn:void 0})),!Ln&&En?g.createElement("span",{className:"".concat(mt,"-selection-item"),title:Un,style:Fn?{visibility:"hidden"}:void 0},En.label):null,jn)},$t=Ve,It=function(Te,pt){var mt=(0,g.useRef)(null),Ot=(0,g.useRef)(!1),xt=Te.prefixCls,Tt=Te.open,Zt=Te.mode,tn=Te.showSearch,Ft=Te.tokenWithEnter,un=Te.disabled,dn=Te.prefix,qt=Te.autoClearSearchValue,Pt=Te.onSearch,Ze=Te.onSearchSubmit,at=Te.onToggleOpen,Dt=Te.onInputKeyDown,Nt=Te.onInputBlur,nn=Te.domRef;g.useImperativeHandle(pt,function(){return{focus:function(Un){mt.current.focus(Un)},blur:function(){mt.current.blur()}}});var it=w(0),on=(0,B.Z)(it,2),_n=on[0],An=on[1],Tn=function(Un){var jn=Un.which,mr=mt.current instanceof HTMLTextAreaElement;!mr&&Tt&&(jn===re.Z.UP||jn===re.Z.DOWN)&&Un.preventDefault(),Dt&&Dt(Un),jn===re.Z.ENTER&&Zt==="tags"&&!Ot.current&&!Tt&&(Ze==null||Ze(Un.target.value)),!(mr&&!Tt&&~[re.Z.UP,re.Z.DOWN,re.Z.LEFT,re.Z.RIGHT].indexOf(jn))&&$(jn)&&at(!0)},Xn=function(){An(!0)},bn=(0,g.useRef)(null),Zn=function(Un){Pt(Un,!0,Ot.current)!==!1&&at(!0)},Nn=function(){Ot.current=!0},Mn=function(Un){Ot.current=!1,Zt!=="combobox"&&Zn(Un.target.value)},Dn=function(Un){var jn=Un.target.value;if(Ft&&bn.current&&/[\r\n]/.test(bn.current)){var mr=bn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");jn=jn.replace(mr,bn.current)}bn.current=null,Zn(jn)},yn=function(Un){var jn=Un.clipboardData,mr=jn==null?void 0:jn.getData("text");bn.current=mr||""},Ln=function(Un){var jn=Un.target;if(jn!==mt.current){var mr=document.body.style.msTouchAction!==void 0;mr?setTimeout(function(){mt.current.focus()}):mt.current.focus()}},pn=function(Un){var jn=_n();Un.target!==mt.current&&!jn&&!(Zt==="combobox"&&un)&&Un.preventDefault(),(Zt!=="combobox"&&(!tn||!jn)||!Tt)&&(Tt&&qt!==!1&&Pt("",!0,!1),at())},En={inputRef:mt,onInputKeyDown:Tn,onInputMouseDown:Xn,onInputChange:Dn,onInputPaste:yn,onInputCompositionStart:Nn,onInputCompositionEnd:Mn,onInputBlur:Nt},Rn=Zt==="multiple"||Zt==="tags"?g.createElement(Qt,(0,h.Z)({},Te,En)):g.createElement($t,(0,h.Z)({},Te,En));return g.createElement("div",{ref:nn,className:"".concat(xt,"-selector"),onClick:Ln,onMouseDown:pn},dn&&g.createElement("div",{className:"".concat(xt,"-prefix")},dn),Rn)},sn=g.forwardRef(It),qe=sn,ht=_(65030),Oe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],we=function(Te){var pt=Te===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:pt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:pt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:pt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:pt,adjustY:1},htmlRegion:"scroll"}}},j=function(Te,pt){var mt=Te.prefixCls,Ot=Te.disabled,xt=Te.visible,Tt=Te.children,Zt=Te.popupElement,tn=Te.animation,Ft=Te.transitionName,un=Te.dropdownStyle,dn=Te.dropdownClassName,qt=Te.direction,Pt=qt===void 0?"ltr":qt,Ze=Te.placement,at=Te.builtinPlacements,Dt=Te.dropdownMatchSelectWidth,Nt=Te.dropdownRender,nn=Te.dropdownAlign,it=Te.getPopupContainer,on=Te.empty,_n=Te.getTriggerDOMNode,An=Te.onPopupVisibleChange,Tn=Te.onPopupMouseEnter,Xn=(0,d.Z)(Te,Oe),bn="".concat(mt,"-dropdown"),Zn=Zt;Nt&&(Zn=Nt(Zt));var Nn=g.useMemo(function(){return at||we(Dt)},[at,Dt]),Mn=tn?"".concat(bn,"-").concat(tn):Ft,Dn=typeof Dt=="number",yn=g.useMemo(function(){return Dn?null:Dt===!1?"minWidth":"width"},[Dt,Dn]),Ln=un;Dn&&(Ln=(0,ae.Z)((0,ae.Z)({},Ln),{},{width:Dt}));var pn=g.useRef(null);return g.useImperativeHandle(pt,function(){return{getPopupElement:function(){var Rn;return(Rn=pn.current)===null||Rn===void 0?void 0:Rn.popupElement}}}),g.createElement(ht.Z,(0,h.Z)({},Xn,{showAction:An?["click"]:[],hideAction:An?["click"]:[],popupPlacement:Ze||(Pt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Nn,prefixCls:bn,popupTransitionName:Mn,popup:g.createElement("div",{onMouseEnter:Tn},Zn),ref:pn,stretch:yn,popupAlign:nn,popupVisible:xt,getPopupContainer:it,popupClassName:p()(dn,(0,z.Z)({},"".concat(bn,"-empty"),on)),popupStyle:Ln,getTriggerDOMNode:_n,onPopupVisibleChange:An}),Tt)},ze=g.forwardRef(j),Xe=ze,J=_(66712);function M(Pe,Te){var pt=Pe.key,mt;return"value"in Pe&&(mt=Pe.value),pt!=null?pt:mt!==void 0?mt:"rc-index-key-".concat(Te)}function Se(Pe){return typeof Pe!="undefined"&&!Number.isNaN(Pe)}function be(Pe,Te){var pt=Pe||{},mt=pt.label,Ot=pt.value,xt=pt.options,Tt=pt.groupLabel,Zt=mt||(Te?"children":"label");return{label:Zt,value:Ot||"value",options:xt||"options",groupLabel:Tt||Zt}}function W(Pe){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pt=Te.fieldNames,mt=Te.childrenAsData,Ot=[],xt=be(pt,!1),Tt=xt.label,Zt=xt.value,tn=xt.options,Ft=xt.groupLabel;function un(dn,qt){Array.isArray(dn)&&dn.forEach(function(Pt){if(qt||!(tn in Pt)){var Ze=Pt[Zt];Ot.push({key:M(Pt,Ot.length),groupOption:qt,data:Pt,label:Pt[Tt],value:Ze})}else{var at=Pt[Ft];at===void 0&&mt&&(at=Pt.label),Ot.push({key:M(Pt,Ot.length),group:!0,data:Pt,label:at}),un(Pt[tn],!0)}})}return un(Pe,!1),Ot}function fe(Pe){var Te=(0,ae.Z)({},Pe);return"props"in Te||Object.defineProperty(Te,"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`."),Te}}),Te}var ye=function(Te,pt,mt){if(!pt||!pt.length)return null;var Ot=!1,xt=function Zt(tn,Ft){var un=(0,J.Z)(Ft),dn=un[0],qt=un.slice(1);if(!dn)return[tn];var Pt=tn.split(dn);return Ot=Ot||Pt.length>1,Pt.reduce(function(Ze,at){return[].concat((0,ue.Z)(Ze),(0,ue.Z)(Zt(at,qt)))},[]).filter(Boolean)},Tt=xt(Te,pt);return Ot?typeof mt!="undefined"?Tt.slice(0,mt):Tt:null},tt=g.createContext(null),We=tt;function $e(Pe){var Te=Pe.visible,pt=Pe.values;if(!Te)return null;var mt=50;return g.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(pt.slice(0,mt).map(function(Ot){var xt=Ot.label,Tt=Ot.value;return["number","string"].includes((0,_e.Z)(xt))?xt:Tt}).join(", ")),pt.length>mt?", ...":null)}var et=["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"],ct=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],ce=function(Te){return Te==="tags"||Te==="multiple"},Z=g.forwardRef(function(Pe,Te){var pt,mt=Pe.id,Ot=Pe.prefixCls,xt=Pe.className,Tt=Pe.showSearch,Zt=Pe.tagRender,tn=Pe.direction,Ft=Pe.omitDomProps,un=Pe.displayValues,dn=Pe.onDisplayValuesChange,qt=Pe.emptyOptions,Pt=Pe.notFoundContent,Ze=Pt===void 0?"Not Found":Pt,at=Pe.onClear,Dt=Pe.mode,Nt=Pe.disabled,nn=Pe.loading,it=Pe.getInputElement,on=Pe.getRawInputElement,_n=Pe.open,An=Pe.defaultOpen,Tn=Pe.onDropdownVisibleChange,Xn=Pe.activeValue,bn=Pe.onActiveValueChange,Zn=Pe.activeDescendantId,Nn=Pe.searchValue,Mn=Pe.autoClearSearchValue,Dn=Pe.onSearch,yn=Pe.onSearchSplit,Ln=Pe.tokenSeparators,pn=Pe.allowClear,En=Pe.prefix,Rn=Pe.suffixIcon,Fn=Pe.clearIcon,Un=Pe.OptionList,jn=Pe.animation,mr=Pe.transitionName,Me=Pe.dropdownStyle,Re=Pe.dropdownClassName,ke=Pe.dropdownMatchSelectWidth,ut=Pe.dropdownRender,gt=Pe.dropdownAlign,bt=Pe.placement,zt=Pe.builtinPlacements,Ut=Pe.getPopupContainer,wt=Pe.showAction,vt=wt===void 0?[]:wt,Et=Pe.onFocus,At=Pe.onBlur,Kt=Pe.onKeyUp,en=Pe.onKeyDown,mn=Pe.onMouseDown,Bn=(0,d.Z)(Pe,et),hn=ce(Dt),xn=(Tt!==void 0?Tt:hn)||Dt==="combobox",On=(0,ae.Z)({},Bn);ct.forEach(function(Rr){delete On[Rr]}),Ft==null||Ft.forEach(function(Rr){delete On[Rr]});var kn=g.useState(!1),Hn=(0,B.Z)(kn,2),Sn=Hn[0],Wn=Hn[1];g.useEffect(function(){Wn((0,b.Z)())},[]);var zn=g.useRef(null),tr=g.useRef(null),Yn=g.useRef(null),qn=g.useRef(null),ur=g.useRef(null),yt=g.useRef(!1),Yt=R(),an=(0,B.Z)(Yt,3),Wt=an[0],gn=an[1],Kn=an[2];g.useImperativeHandle(Te,function(){var Rr,Sr;return{focus:(Rr=qn.current)===null||Rr===void 0?void 0:Rr.focus,blur:(Sr=qn.current)===null||Sr===void 0?void 0:Sr.blur,scrollTo:function(Wr){var Br;return(Br=ur.current)===null||Br===void 0?void 0:Br.scrollTo(Wr)},nativeElement:zn.current||tr.current}});var Cn=g.useMemo(function(){var Rr;if(Dt!=="combobox")return Nn;var Sr=(Rr=un[0])===null||Rr===void 0?void 0:Rr.value;return typeof Sr=="string"||typeof Sr=="number"?String(Sr):""},[Nn,Dt,un]),Jn=Dt==="combobox"&&typeof it=="function"&&it()||null,or=typeof on=="function"&&on(),xr=(0,L.x1)(tr,or==null||(pt=or.props)===null||pt===void 0?void 0:pt.ref),Zr=g.useState(!1),Mr=(0,B.Z)(Zr,2),Jr=Mr[0],Gr=Mr[1];(0,E.Z)(function(){Gr(!0)},[]);var wr=(0,te.Z)(!1,{defaultValue:An,value:_n}),_r=(0,B.Z)(wr,2),Dr=_r[0],Vr=_r[1],Er=Jr?Dr:!1,br=!Ze&&qt;(Nt||br&&Er&&Dt==="combobox")&&(Er=!1);var Cr=br?!1:Er,Gn=g.useCallback(function(Rr){var Sr=Rr!==void 0?Rr:!Er;Nt||(Vr(Sr),Er!==Sr&&(Tn==null||Tn(Sr)))},[Nt,Er,Vr,Tn]),lr=g.useMemo(function(){return(Ln||[]).some(function(Rr){return[`
|
|
`,`\r
|
|
`].includes(Rr)})},[Ln]),ar=g.useContext(We)||{},dr=ar.maxCount,Ar=ar.rawValues,Ir=function(Sr,Xr,Wr){if(!(hn&&Se(dr)&&(Ar==null?void 0:Ar.size)>=dr)){var Br=!0,Qr=Sr;bn==null||bn(null);var fi=ye(Sr,Ln,Se(dr)?dr-Ar.size:void 0),hi=Wr?null:fi;return Dt!=="combobox"&&hi&&(Qr="",yn==null||yn(hi),Gn(!1),Br=!1),Dn&&Cn!==Qr&&Dn(Qr,{source:Xr?"typing":"effect"}),Br}},qr=function(Sr){!Sr||!Sr.trim()||Dn(Sr,{source:"submit"})};g.useEffect(function(){!Er&&!hn&&Dt!=="combobox"&&Ir("",!1,!1)},[Er]),g.useEffect(function(){Dr&&Nt&&Vr(!1),Nt&&!yt.current&&gn(!1)},[Nt]);var Vn=w(),ir=(0,B.Z)(Vn,2),rr=ir[0],cr=ir[1],yr=g.useRef(!1),Fr=function(Sr){var Xr=rr(),Wr=Sr.key,Br=Wr==="Enter";if(Br&&(Dt!=="combobox"&&Sr.preventDefault(),Er||Gn(!0)),cr(!!Cn),Wr==="Backspace"&&!Xr&&hn&&!Cn&&un.length){for(var Qr=(0,ue.Z)(un),fi=null,hi=Qr.length-1;hi>=0;hi-=1){var Ci=Qr[hi];if(!Ci.disabled){Qr.splice(hi,1),fi=Ci;break}}fi&&dn(Qr,{type:"remove",values:[fi]})}for(var ni=arguments.length,pi=new Array(ni>1?ni-1:0),Ni=1;Ni<ni;Ni++)pi[Ni-1]=arguments[Ni];if(Er&&(!Br||!yr.current)){var Si;Br&&(yr.current=!0),(Si=ur.current)===null||Si===void 0||Si.onKeyDown.apply(Si,[Sr].concat(pi))}en==null||en.apply(void 0,[Sr].concat(pi))},ri=function(Sr){for(var Xr=arguments.length,Wr=new Array(Xr>1?Xr-1:0),Br=1;Br<Xr;Br++)Wr[Br-1]=arguments[Br];if(Er){var Qr;(Qr=ur.current)===null||Qr===void 0||Qr.onKeyUp.apply(Qr,[Sr].concat(Wr))}Sr.key==="Enter"&&(yr.current=!1),Kt==null||Kt.apply(void 0,[Sr].concat(Wr))},$r=function(Sr){var Xr=un.filter(function(Wr){return Wr!==Sr});dn(Xr,{type:"remove",values:[Sr]})},ei=function(){yr.current=!1},Hr=g.useRef(!1),is=function(){gn(!0),Nt||(Et&&!Hr.current&&Et.apply(void 0,arguments),vt.includes("focus")&&Gn(!0)),Hr.current=!0},ss=function(){yt.current=!0,gn(!1,function(){Hr.current=!1,yt.current=!1,Gn(!1)}),!Nt&&(Cn&&(Dt==="tags"?Dn(Cn,{source:"submit"}):Dt==="multiple"&&Dn("",{source:"blur"})),At&&At.apply(void 0,arguments))},Ai=[];g.useEffect(function(){return function(){Ai.forEach(function(Rr){return clearTimeout(Rr)}),Ai.splice(0,Ai.length)}},[]);var Li=function(Sr){var Xr,Wr=Sr.target,Br=(Xr=Yn.current)===null||Xr===void 0?void 0:Xr.getPopupElement();if(Br&&Br.contains(Wr)){var Qr=setTimeout(function(){var ni=Ai.indexOf(Qr);if(ni!==-1&&Ai.splice(ni,1),Kn(),!Sn&&!Br.contains(document.activeElement)){var pi;(pi=qn.current)===null||pi===void 0||pi.focus()}});Ai.push(Qr)}for(var fi=arguments.length,hi=new Array(fi>1?fi-1:0),Ci=1;Ci<fi;Ci++)hi[Ci-1]=arguments[Ci];mn==null||mn.apply(void 0,[Sr].concat(hi))},yi=g.useState({}),zi=(0,B.Z)(yi,2),ji=zi[1];function xi(){ji({})}var Vi;or&&(Vi=function(Sr){Gn(Sr)}),Q(function(){var Rr;return[zn.current,(Rr=Yn.current)===null||Rr===void 0?void 0:Rr.getPopupElement()]},Cr,Gn,!!or);var ki=g.useMemo(function(){return(0,ae.Z)((0,ae.Z)({},Pe),{},{notFoundContent:Ze,open:Er,triggerOpen:Cr,id:mt,showSearch:xn,multiple:hn,toggleOpen:Gn})},[Pe,Ze,Cr,Er,mt,xn,hn,Gn]),as=!!Rn||nn,Pi;as&&(Pi=g.createElement(q,{className:p()("".concat(Ot,"-arrow"),(0,z.Z)({},"".concat(Ot,"-arrow-loading"),nn)),customizeIcon:Rn,customizeIconProps:{loading:nn,searchValue:Cn,open:Er,focused:Wt,showSearch:xn}}));var Es=function(){var Sr;at==null||at(),(Sr=qn.current)===null||Sr===void 0||Sr.focus(),dn([],{type:"clear",values:un}),Ir("",!1,!1)},ci=le(Ot,Es,un,pn,Fn,Nt,Cn,Dt),os=ci.allowClear,ls=ci.clearIcon,$i=g.createElement(Un,{ref:ur}),Bi=p()(Ot,xt,(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({},"".concat(Ot,"-focused"),Wt),"".concat(Ot,"-multiple"),hn),"".concat(Ot,"-single"),!hn),"".concat(Ot,"-allow-clear"),pn),"".concat(Ot,"-show-arrow"),as),"".concat(Ot,"-disabled"),Nt),"".concat(Ot,"-loading"),nn),"".concat(Ot,"-open"),Er),"".concat(Ot,"-customize-input"),Jn),"".concat(Ot,"-show-search"),xn)),ai=g.createElement(Xe,{ref:Yn,disabled:Nt,prefixCls:Ot,visible:Cr,popupElement:$i,animation:jn,transitionName:mr,dropdownStyle:Me,dropdownClassName:Re,direction:tn,dropdownMatchSelectWidth:ke,dropdownRender:ut,dropdownAlign:gt,placement:bt,builtinPlacements:zt,getPopupContainer:Ut,empty:qt,getTriggerDOMNode:function(Sr){return tr.current||Sr},onPopupVisibleChange:Vi,onPopupMouseEnter:xi},or?g.cloneElement(or,{ref:xr}):g.createElement(qe,(0,h.Z)({},Pe,{domRef:tr,prefixCls:Ot,inputElement:Jn,ref:qn,id:mt,prefix:En,showSearch:xn,autoClearSearchValue:Mn,mode:Dt,activeDescendantId:Zn,tagRender:Zt,values:un,open:Er,onToggleOpen:Gn,activeValue:Xn,searchValue:Cn,onSearch:Ir,onSearchSubmit:qr,onRemove:$r,tokenWithEnter:lr,onInputBlur:ei}))),ti;return or?ti=ai:ti=g.createElement("div",(0,h.Z)({className:Bi},On,{ref:zn,onMouseDown:Li,onKeyDown:Fr,onKeyUp:ri,onFocus:is,onBlur:ss}),g.createElement($e,{visible:Wt&&!Er,values:un}),ai,Pi,os&&ls),g.createElement(F.Provider,{value:ki},ti)}),N=Z,Ie=function(){return null};Ie.isSelectOptGroup=!0;var Ce=Ie,Ae=function(){return null};Ae.isSelectOption=!0;var st=Ae,lt=_(80547),Fe=_(2738),_t=_(48911);function Ht(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var St=["disabled","title","children","style","className"];function Bt(Pe){return typeof Pe=="string"||typeof Pe=="number"}var se=function(Te,pt){var mt=H(),Ot=mt.prefixCls,xt=mt.id,Tt=mt.open,Zt=mt.multiple,tn=mt.mode,Ft=mt.searchValue,un=mt.toggleOpen,dn=mt.notFoundContent,qt=mt.onPopupScroll,Pt=g.useContext(We),Ze=Pt.maxCount,at=Pt.flattenOptions,Dt=Pt.onActiveValue,Nt=Pt.defaultActiveFirstOption,nn=Pt.onSelect,it=Pt.menuItemSelectedIcon,on=Pt.rawValues,_n=Pt.fieldNames,An=Pt.virtual,Tn=Pt.direction,Xn=Pt.listHeight,bn=Pt.listItemHeight,Zn=Pt.optionRender,Nn="".concat(Ot,"-item"),Mn=(0,lt.Z)(function(){return at},[Tt,at],function(wt,vt){return vt[0]&&wt[1]!==vt[1]}),Dn=g.useRef(null),yn=g.useMemo(function(){return Zt&&Se(Ze)&&(on==null?void 0:on.size)>=Ze},[Zt,Ze,on==null?void 0:on.size]),Ln=function(vt){vt.preventDefault()},pn=function(vt){var Et;(Et=Dn.current)===null||Et===void 0||Et.scrollTo(typeof vt=="number"?{index:vt}:vt)},En=g.useCallback(function(wt){return tn==="combobox"?!1:on.has(wt)},[tn,(0,ue.Z)(on).toString(),on.size]),Rn=function(vt){for(var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,At=Mn.length,Kt=0;Kt<At;Kt+=1){var en=(vt+Kt*Et+At)%At,mn=Mn[en]||{},Bn=mn.group,hn=mn.data;if(!Bn&&!(hn!=null&&hn.disabled)&&(En(hn.value)||!yn))return en}return-1},Fn=g.useState(function(){return Rn(0)}),Un=(0,B.Z)(Fn,2),jn=Un[0],mr=Un[1],Me=function(vt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;mr(vt);var At={source:Et?"keyboard":"mouse"},Kt=Mn[vt];if(!Kt){Dt(null,-1,At);return}Dt(Kt.value,vt,At)};(0,g.useEffect)(function(){Me(Nt!==!1?Rn(0):-1)},[Mn.length,Ft]);var Re=g.useCallback(function(wt){return tn==="combobox"?String(wt).toLowerCase()===Ft.toLowerCase():on.has(wt)},[tn,Ft,(0,ue.Z)(on).toString(),on.size]);(0,g.useEffect)(function(){var wt=setTimeout(function(){if(!Zt&&Tt&&on.size===1){var Et=Array.from(on)[0],At=Mn.findIndex(function(Kt){var en=Kt.data;return Ft?String(en.value).startsWith(Ft):en.value===Et});At!==-1&&(Me(At),pn(At))}});if(Tt){var vt;(vt=Dn.current)===null||vt===void 0||vt.scrollTo(void 0)}return function(){return clearTimeout(wt)}},[Tt,Ft]);var ke=function(vt){vt!==void 0&&nn(vt,{selected:!on.has(vt)}),Zt||un(!1)};if(g.useImperativeHandle(pt,function(){return{onKeyDown:function(vt){var Et=vt.which,At=vt.ctrlKey;switch(Et){case re.Z.N:case re.Z.P:case re.Z.UP:case re.Z.DOWN:{var Kt=0;if(Et===re.Z.UP?Kt=-1:Et===re.Z.DOWN?Kt=1:Ht()&&At&&(Et===re.Z.N?Kt=1:Et===re.Z.P&&(Kt=-1)),Kt!==0){var en=Rn(jn+Kt,Kt);pn(en),Me(en,!0)}break}case re.Z.TAB:case re.Z.ENTER:{var mn,Bn=Mn[jn];Bn&&!(Bn!=null&&(mn=Bn.data)!==null&&mn!==void 0&&mn.disabled)&&!yn?ke(Bn.value):ke(void 0),Tt&&vt.preventDefault();break}case re.Z.ESC:un(!1),Tt&&vt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(vt){pn(vt)}}}),Mn.length===0)return g.createElement("div",{role:"listbox",id:"".concat(xt,"_list"),className:"".concat(Nn,"-empty"),onMouseDown:Ln},dn);var ut=Object.keys(_n).map(function(wt){return _n[wt]}),gt=function(vt){return vt.label};function bt(wt,vt){var Et=wt.group;return{role:Et?"presentation":"option",id:"".concat(xt,"_list_").concat(vt)}}var zt=function(vt){var Et=Mn[vt];if(!Et)return null;var At=Et.data||{},Kt=At.value,en=Et.group,mn=(0,oe.Z)(At,!0),Bn=gt(Et);return Et?g.createElement("div",(0,h.Z)({"aria-label":typeof Bn=="string"&&!en?Bn:null},mn,{key:vt},bt(Et,vt),{"aria-selected":Re(Kt)}),Kt):null},Ut={role:"listbox",id:"".concat(xt,"_list")};return g.createElement(g.Fragment,null,An&&g.createElement("div",(0,h.Z)({},Ut,{style:{height:0,width:0,overflow:"hidden"}}),zt(jn-1),zt(jn),zt(jn+1)),g.createElement(_t.Z,{itemKey:"key",ref:Dn,data:Mn,height:Xn,itemHeight:bn,fullHeight:!1,onMouseDown:Ln,onScroll:qt,virtual:An,direction:Tn,innerProps:An?null:Ut},function(wt,vt){var Et=wt.group,At=wt.groupOption,Kt=wt.data,en=wt.label,mn=wt.value,Bn=Kt.key;if(Et){var hn,xn=(hn=Kt.title)!==null&&hn!==void 0?hn:Bt(en)?en.toString():void 0;return g.createElement("div",{className:p()(Nn,"".concat(Nn,"-group"),Kt.className),title:xn},en!==void 0?en:Bn)}var On=Kt.disabled,kn=Kt.title,Hn=Kt.children,Sn=Kt.style,Wn=Kt.className,zn=(0,d.Z)(Kt,St),tr=(0,Fe.Z)(zn,ut),Yn=En(mn),qn=On||!Yn&&yn,ur="".concat(Nn,"-option"),yt=p()(Nn,ur,Wn,(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({},"".concat(ur,"-grouped"),At),"".concat(ur,"-active"),jn===vt&&!qn),"".concat(ur,"-disabled"),qn),"".concat(ur,"-selected"),Yn)),Yt=gt(wt),an=!it||typeof it=="function"||Yn,Wt=typeof Yt=="number"?Yt:Yt||mn,gn=Bt(Wt)?Wt.toString():void 0;return kn!==void 0&&(gn=kn),g.createElement("div",(0,h.Z)({},(0,oe.Z)(tr),An?{}:bt(wt,vt),{"aria-selected":Re(mn),className:yt,title:gn,onMouseMove:function(){jn===vt||qn||Me(vt)},onClick:function(){qn||ke(mn)},style:Sn}),g.createElement("div",{className:"".concat(ur,"-content")},typeof Zn=="function"?Zn(wt,{index:vt}):Wt),g.isValidElement(it)||Yn,an&&g.createElement(q,{className:"".concat(Nn,"-option-state"),customizeIcon:it,customizeIconProps:{value:mn,disabled:qn,isSelected:Yn}},Yn?"\u2713":null))}))},ge=g.forwardRef(se),Ee=ge,k=function(Pe,Te){var pt=g.useRef({values:new Map,options:new Map}),mt=g.useMemo(function(){var xt=pt.current,Tt=xt.values,Zt=xt.options,tn=Pe.map(function(dn){if(dn.label===void 0){var qt;return(0,ae.Z)((0,ae.Z)({},dn),{},{label:(qt=Tt.get(dn.value))===null||qt===void 0?void 0:qt.label})}return dn}),Ft=new Map,un=new Map;return tn.forEach(function(dn){Ft.set(dn.value,dn),un.set(dn.value,Te.get(dn.value)||Zt.get(dn.value))}),pt.current.values=Ft,pt.current.options=un,tn},[Pe,Te]),Ot=g.useCallback(function(xt){return Te.get(xt)||pt.current.options.get(xt)},[Te]);return[mt,Ot]};function Y(Pe,Te){return ie(Pe).join("").toUpperCase().includes(Te)}var pe=function(Pe,Te,pt,mt,Ot){return g.useMemo(function(){if(!pt||mt===!1)return Pe;var xt=Te.options,Tt=Te.label,Zt=Te.value,tn=[],Ft=typeof mt=="function",un=pt.toUpperCase(),dn=Ft?mt:function(Pt,Ze){return Ot?Y(Ze[Ot],un):Ze[xt]?Y(Ze[Tt!=="children"?Tt:"label"],un):Y(Ze[Zt],un)},qt=Ft?function(Pt){return fe(Pt)}:function(Pt){return Pt};return Pe.forEach(function(Pt){if(Pt[xt]){var Ze=dn(pt,qt(Pt));if(Ze)tn.push(Pt);else{var at=Pt[xt].filter(function(Dt){return dn(pt,qt(Dt))});at.length&&tn.push((0,ae.Z)((0,ae.Z)({},Pt),{},(0,z.Z)({},xt,at)))}return}dn(pt,qt(Pt))&&tn.push(Pt)}),tn},[Pe,mt,Ot,pt,Te])},de=_(6551),xe=_(11592),Be=["children","value"],Ye=["children"];function dt(Pe){var Te=Pe,pt=Te.key,mt=Te.props,Ot=mt.children,xt=mt.value,Tt=(0,d.Z)(mt,Be);return(0,ae.Z)({key:pt,value:xt!==void 0?xt:pt,children:Ot},Tt)}function nt(Pe){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,xe.Z)(Pe).map(function(pt,mt){if(!g.isValidElement(pt)||!pt.type)return null;var Ot=pt,xt=Ot.type.isSelectOptGroup,Tt=Ot.key,Zt=Ot.props,tn=Zt.children,Ft=(0,d.Z)(Zt,Ye);return Te||!xt?dt(pt):(0,ae.Z)((0,ae.Z)({key:"__RC_SELECT_GRP__".concat(Tt===null?mt:Tt,"__"),label:Tt},Ft),{},{options:nt(tn)})}).filter(function(pt){return pt})}var Ue=function(Te,pt,mt,Ot,xt){return g.useMemo(function(){var Tt=Te,Zt=!Te;Zt&&(Tt=nt(pt));var tn=new Map,Ft=new Map,un=function(Pt,Ze,at){at&&typeof at=="string"&&Pt.set(Ze[at],Ze)},dn=function qt(Pt){for(var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=0;at<Pt.length;at+=1){var Dt=Pt[at];!Dt[mt.options]||Ze?(tn.set(Dt[mt.value],Dt),un(Ft,Dt,mt.label),un(Ft,Dt,Ot),un(Ft,Dt,xt)):qt(Dt[mt.options],!0)}};return dn(Tt),{options:Tt,valueOptions:tn,labelOptions:Ft}},[Te,pt,mt,Ot,xt])},I=Ue;function K(Pe){var Te=g.useRef();Te.current=Pe;var pt=g.useCallback(function(){return Te.current.apply(Te,arguments)},[]);return pt}function S(Pe){var Te=Pe.mode,pt=Pe.options,mt=Pe.children,Ot=Pe.backfill,xt=Pe.allowClear,Tt=Pe.placeholder,Zt=Pe.getInputElement,tn=Pe.showSearch,Ft=Pe.onSearch,un=Pe.defaultOpen,dn=Pe.autoFocus,qt=Pe.labelInValue,Pt=Pe.value,Ze=Pe.inputValue,at=Pe.optionLabelProp,Dt=isMultiple(Te),Nt=tn!==void 0?tn:Dt||Te==="combobox",nn=pt||convertChildrenToData(mt);if(warning(Te!=="tags"||nn.every(function(An){return!An.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Te==="tags"||Te==="combobox"){var it=nn.some(function(An){return An.options?An.options.some(function(Tn){return typeof("value"in Tn?Tn.value:Tn.key)=="number"}):typeof("value"in An?An.value:An.key)=="number"});warning(!it,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Te!=="combobox"||!at,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Te==="combobox"||!Ot,"`backfill` only works with `combobox` mode."),warning(Te==="combobox"||!Zt,"`getInputElement` only work with `combobox` mode."),noteOnce(Te!=="combobox"||!Zt||!xt||!Tt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ft&&!Nt&&Te!=="combobox"&&Te!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!un||dn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Pt!=null){var on=toArray(Pt);warning(!qt||on.every(function(An){return _typeof(An)==="object"&&("key"in An||"value"in An)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Dt||Array.isArray(Pt),"`value` should be array when `mode` is `multiple` or `tags`")}if(mt){var _n=null;toNodeArray(mt).some(function(An){if(!React.isValidElement(An)||!An.type)return!1;var Tn=An,Xn=Tn.type;if(Xn.isSelectOption)return!1;if(Xn.isSelectOptGroup){var bn=toNodeArray(An.props.children).every(function(Zn){return!React.isValidElement(Zn)||!An.type||Zn.type.isSelectOption?!0:(_n=Zn.type,!1)});return!bn}return _n=Xn,!0}),_n&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(_n.displayName||_n.name||_n,"`.")),warning(Ze===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function je(Pe,Te){if(Pe){var pt=function mt(Ot){for(var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tt=0;Tt<Ot.length;Tt++){var Zt=Ot[Tt];if(Zt[Te==null?void 0:Te.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!xt&&Array.isArray(Zt[Te==null?void 0:Te.options])&&mt(Zt[Te==null?void 0:Te.options],!0))break}};pt(Pe)}}var De=null,Le=["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"],He=["inputValue"];function Ge(Pe){return!Pe||(0,_e.Z)(Pe)!=="object"}var ft=g.forwardRef(function(Pe,Te){var pt=Pe.id,mt=Pe.mode,Ot=Pe.prefixCls,xt=Ot===void 0?"rc-select":Ot,Tt=Pe.backfill,Zt=Pe.fieldNames,tn=Pe.inputValue,Ft=Pe.searchValue,un=Pe.onSearch,dn=Pe.autoClearSearchValue,qt=dn===void 0?!0:dn,Pt=Pe.onSelect,Ze=Pe.onDeselect,at=Pe.dropdownMatchSelectWidth,Dt=at===void 0?!0:at,Nt=Pe.filterOption,nn=Pe.filterSort,it=Pe.optionFilterProp,on=Pe.optionLabelProp,_n=Pe.options,An=Pe.optionRender,Tn=Pe.children,Xn=Pe.defaultActiveFirstOption,bn=Pe.menuItemSelectedIcon,Zn=Pe.virtual,Nn=Pe.direction,Mn=Pe.listHeight,Dn=Mn===void 0?200:Mn,yn=Pe.listItemHeight,Ln=yn===void 0?20:yn,pn=Pe.labelRender,En=Pe.value,Rn=Pe.defaultValue,Fn=Pe.labelInValue,Un=Pe.onChange,jn=Pe.maxCount,mr=(0,d.Z)(Pe,Le),Me=(0,de.ZP)(pt),Re=ce(mt),ke=!!(!_n&&Tn),ut=g.useMemo(function(){return Nt===void 0&&mt==="combobox"?!1:Nt},[Nt,mt]),gt=g.useMemo(function(){return be(Zt,ke)},[JSON.stringify(Zt),ke]),bt=(0,te.Z)("",{value:Ft!==void 0?Ft:tn,postState:function(lr){return lr||""}}),zt=(0,B.Z)(bt,2),Ut=zt[0],wt=zt[1],vt=I(_n,Tn,gt,it,on),Et=vt.valueOptions,At=vt.labelOptions,Kt=vt.options,en=g.useCallback(function(Gn){var lr=ie(Gn);return lr.map(function(ar){var dr,Ar,Ir,qr,Vn;if(Ge(ar))dr=ar;else{var ir;Ir=ar.key,Ar=ar.label,dr=(ir=ar.value)!==null&&ir!==void 0?ir:Ir}var rr=Et.get(dr);if(rr){var cr;if(Ar===void 0&&(Ar=rr==null?void 0:rr[on||gt.label]),Ir===void 0&&(Ir=(cr=rr==null?void 0:rr.key)!==null&&cr!==void 0?cr:dr),qr=rr==null?void 0:rr.disabled,Vn=rr==null?void 0:rr.title,0)var yr}return{label:Ar,value:dr,key:Ir,disabled:qr,title:Vn}})},[gt,on,Et]),mn=(0,te.Z)(Rn,{value:En}),Bn=(0,B.Z)(mn,2),hn=Bn[0],xn=Bn[1],On=g.useMemo(function(){var Gn,lr=Re&&hn===null?[]:hn,ar=en(lr);return mt==="combobox"&&O((Gn=ar[0])===null||Gn===void 0?void 0:Gn.value)?[]:ar},[hn,en,mt,Re]),kn=k(On,Et),Hn=(0,B.Z)(kn,2),Sn=Hn[0],Wn=Hn[1],zn=g.useMemo(function(){if(!mt&&Sn.length===1){var Gn=Sn[0];if(Gn.value===null&&(Gn.label===null||Gn.label===void 0))return[]}return Sn.map(function(lr){var ar;return(0,ae.Z)((0,ae.Z)({},lr),{},{label:(ar=typeof pn=="function"?pn(lr):lr.label)!==null&&ar!==void 0?ar:lr.value})})},[mt,Sn,pn]),tr=g.useMemo(function(){return new Set(Sn.map(function(Gn){return Gn.value}))},[Sn]);g.useEffect(function(){if(mt==="combobox"){var Gn,lr=(Gn=Sn[0])===null||Gn===void 0?void 0:Gn.value;wt(v(lr)?String(lr):"")}},[Sn]);var Yn=K(function(Gn,lr){var ar=lr!=null?lr:Gn;return(0,z.Z)((0,z.Z)({},gt.value,Gn),gt.label,ar)}),qn=g.useMemo(function(){if(mt!=="tags")return Kt;var Gn=(0,ue.Z)(Kt),lr=function(dr){return Et.has(dr)};return(0,ue.Z)(Sn).sort(function(ar,dr){return ar.value<dr.value?-1:1}).forEach(function(ar){var dr=ar.value;lr(dr)||Gn.push(Yn(dr,ar.label))}),Gn},[Yn,Kt,Et,Sn,mt]),ur=pe(qn,gt,Ut,ut,it),yt=g.useMemo(function(){return mt!=="tags"||!Ut||ur.some(function(Gn){return Gn[it||"value"]===Ut})||ur.some(function(Gn){return Gn[gt.value]===Ut})?ur:[Yn(Ut)].concat((0,ue.Z)(ur))},[Yn,it,mt,ur,Ut,gt]),Yt=function Gn(lr){var ar=(0,ue.Z)(lr).sort(function(dr,Ar){return nn(dr,Ar,{searchValue:Ut})});return ar.map(function(dr){return Array.isArray(dr.options)?(0,ae.Z)((0,ae.Z)({},dr),{},{options:dr.options.length>0?Gn(dr.options):dr.options}):dr})},an=g.useMemo(function(){return nn?Yt(yt):yt},[yt,nn,Ut]),Wt=g.useMemo(function(){return W(an,{fieldNames:gt,childrenAsData:ke})},[an,gt,ke]),gn=function(lr){var ar=en(lr);if(xn(ar),Un&&(ar.length!==Sn.length||ar.some(function(Ir,qr){var Vn;return((Vn=Sn[qr])===null||Vn===void 0?void 0:Vn.value)!==(Ir==null?void 0:Ir.value)}))){var dr=Fn?ar:ar.map(function(Ir){return Ir.value}),Ar=ar.map(function(Ir){return fe(Wn(Ir.value))});Un(Re?dr:dr[0],Re?Ar:Ar[0])}},Kn=g.useState(null),Cn=(0,B.Z)(Kn,2),Jn=Cn[0],or=Cn[1],xr=g.useState(0),Zr=(0,B.Z)(xr,2),Mr=Zr[0],Jr=Zr[1],Gr=Xn!==void 0?Xn:mt!=="combobox",wr=g.useCallback(function(Gn,lr){var ar=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},dr=ar.source,Ar=dr===void 0?"keyboard":dr;Jr(lr),Tt&&mt==="combobox"&&Gn!==null&&Ar==="keyboard"&&or(String(Gn))},[Tt,mt]),_r=function(lr,ar,dr){var Ar=function(){var $r,ei=Wn(lr);return[Fn?{label:ei==null?void 0:ei[gt.label],value:lr,key:($r=ei==null?void 0:ei.key)!==null&&$r!==void 0?$r:lr}:lr,fe(ei)]};if(ar&&Pt){var Ir=Ar(),qr=(0,B.Z)(Ir,2),Vn=qr[0],ir=qr[1];Pt(Vn,ir)}else if(!ar&&Ze&&dr!=="clear"){var rr=Ar(),cr=(0,B.Z)(rr,2),yr=cr[0],Fr=cr[1];Ze(yr,Fr)}},Dr=K(function(Gn,lr){var ar,dr=Re?lr.selected:!0;dr?ar=Re?[].concat((0,ue.Z)(Sn),[Gn]):[Gn]:ar=Sn.filter(function(Ar){return Ar.value!==Gn}),gn(ar),_r(Gn,dr),mt==="combobox"?or(""):(!ce||qt)&&(wt(""),or(""))}),Vr=function(lr,ar){gn(lr);var dr=ar.type,Ar=ar.values;(dr==="remove"||dr==="clear")&&Ar.forEach(function(Ir){_r(Ir.value,!1,dr)})},Er=function(lr,ar){if(wt(lr),or(null),ar.source==="submit"){var dr=(lr||"").trim();if(dr){var Ar=Array.from(new Set([].concat((0,ue.Z)(tr),[dr])));gn(Ar),_r(dr,!0),wt("")}return}ar.source!=="blur"&&(mt==="combobox"&&gn(lr),un==null||un(lr))},br=function(lr){var ar=lr;mt!=="tags"&&(ar=lr.map(function(Ar){var Ir=At.get(Ar);return Ir==null?void 0:Ir.value}).filter(function(Ar){return Ar!==void 0}));var dr=Array.from(new Set([].concat((0,ue.Z)(tr),(0,ue.Z)(ar))));gn(dr),dr.forEach(function(Ar){_r(Ar,!0)})},Cr=g.useMemo(function(){var Gn=Zn!==!1&&Dt!==!1;return(0,ae.Z)((0,ae.Z)({},vt),{},{flattenOptions:Wt,onActiveValue:wr,defaultActiveFirstOption:Gr,onSelect:Dr,menuItemSelectedIcon:bn,rawValues:tr,fieldNames:gt,virtual:Gn,direction:Nn,listHeight:Dn,listItemHeight:Ln,childrenAsData:ke,maxCount:jn,optionRender:An})},[jn,vt,Wt,wr,Gr,Dr,bn,tr,gt,Zn,Dt,Nn,Dn,Ln,ke,An]);return g.createElement(We.Provider,{value:Cr},g.createElement(N,(0,h.Z)({},mr,{id:Me,prefixCls:xt,ref:Te,omitDomProps:He,mode:mt,displayValues:zn,onDisplayValuesChange:Vr,direction:Nn,searchValue:Ut,onSearch:Er,autoClearSearchValue:qt,onSearchSplit:br,dropdownMatchSelectWidth:Dt,OptionList:Ee,emptyOptions:!Wt.length,activeValue:Jn,activeDescendantId:"".concat(Me,"_list_").concat(Mr)})))}),kt=ft;kt.Option=st,kt.OptGroup=Ce;var Mt=kt,fn=Mt},86351:function(Pn,Xt,_){"use strict";_.d(Xt,{R:function(){return ue},w:function(){return h}});var h={},ue="rc-table-internal-hook"},97347:function(Pn,Xt,_){"use strict";_.d(Xt,{L:function(){return V},Z:function(){return R}});var h=_(42978),ue=_(20068),z=_(94480),ae=_(76190),B=_(33885),d=_(75931),_e=_(11592),te=_(48736),o=_(59301),g=_(86351),A=_(54451);function p(w){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Q=="number"?Q:Q.endsWith("%")?w*parseFloat(Q)/100:null}function E(w,Q,re){return o.useMemo(function(){if(Q&&Q>0){var $=0,oe=0;w.forEach(function(ie){var X=p(Q,ie.width);X?$+=X:oe+=1});var ve=Math.max(Q,re),he=Math.max(ve-$,oe),ot=oe,U=he/oe,C=0,P=w.map(function(ie){var X=(0,B.Z)({},ie),y=p(Q,X.width);if(y)X.width=y;else{var v=Math.floor(U);X.width=ot===1?he:v,he-=v,ot-=1}return C+=X.width,X});if(C<ve){var G=ve/C;he=ve,P.forEach(function(ie,X){var y=Math.floor(ie.width*G);ie.width=X===P.length-1?he:y,he-=y})}return[P,Math.max(C,ve)]}return[w,Q]},[w,Q,re])}var b=["children"],L=["fixed"];function V(w){return(0,_e.Z)(w).filter(function(Q){return o.isValidElement(Q)}).map(function(Q){var re=Q.key,$=Q.props,oe=$.children,ve=(0,d.Z)($,b),he=(0,B.Z)({key:re},ve);return oe&&(he.children=V(oe)),he})}function q(w){return w.filter(function(Q){return Q&&(0,ae.Z)(Q)==="object"&&!Q.hidden}).map(function(Q){var re=Q.children;return re&&re.length>0?(0,B.Z)((0,B.Z)({},Q),{},{children:q(re)}):Q})}function le(w){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return w.filter(function(re){return re&&(0,ae.Z)(re)==="object"}).reduce(function(re,$,oe){var ve=$.fixed,he=ve===!0?"left":ve,ot="".concat(Q,"-").concat(oe),U=$.children;return U&&U.length>0?[].concat((0,z.Z)(re),(0,z.Z)(le(U,ot).map(function(C){return(0,B.Z)({fixed:he},C)}))):[].concat((0,z.Z)(re),[(0,B.Z)((0,B.Z)({key:ot},$),{},{fixed:he})])},[])}function F(w){return w.map(function(Q){var re=Q.fixed,$=(0,d.Z)(Q,L),oe=re;return re==="left"?oe="right":re==="right"&&(oe="left"),(0,B.Z)({fixed:oe},$)})}function H(w,Q){var re=w.prefixCls,$=w.columns,oe=w.children,ve=w.expandable,he=w.expandedKeys,ot=w.columnTitle,U=w.getRowKey,C=w.onTriggerExpand,P=w.expandIcon,G=w.rowExpandable,ie=w.expandIconColumnIndex,X=w.direction,y=w.expandRowByClick,v=w.columnWidth,O=w.fixed,me=w.scrollWidth,Qe=w.clientWidth,rt=o.useMemo(function(){var qe=$||V(oe)||[];return q(qe.slice())},[$,oe]),Ct=o.useMemo(function(){if(ve){var qe=rt.slice();if(!qe.includes(g.w)){var ht=ie||0;ht>=0&&(ht||O==="left"||!O)&&qe.splice(ht,0,g.w),O==="right"&&qe.splice(rt.length,0,g.w)}var Oe=qe.indexOf(g.w);qe=qe.filter(function(Xe,J){return Xe!==g.w||J===Oe});var we=rt[Oe],j;O?j=O:j=we?we.fixed:null;var ze=(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},A.v,{className:"".concat(re,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",ot),"fixed",j),"className","".concat(re,"-row-expand-icon-cell")),"width",v),"render",function(J,M,Se){var be=U(M,Se),W=he.has(be),fe=G?G(M):!0,ye=P({prefixCls:re,expanded:W,expandable:fe,record:M,onExpand:C});return y?o.createElement("span",{onClick:function(We){return We.stopPropagation()}},ye):ye});return qe.map(function(Xe){return Xe===g.w?ze:Xe})}return rt.filter(function(Xe){return Xe!==g.w})},[ve,rt,U,he,P,X]),Rt=o.useMemo(function(){var qe=Ct;return Q&&(qe=Q(qe)),qe.length||(qe=[{render:function(){return null}}]),qe},[Q,Ct,X]),Vt=o.useMemo(function(){return X==="rtl"?F(le(Rt)):le(Rt)},[Rt,X,me]),Qt=o.useMemo(function(){for(var qe=-1,ht=Vt.length-1;ht>=0;ht-=1){var Oe=Vt[ht].fixed;if(Oe==="left"||Oe===!0){qe=ht;break}}if(qe>=0)for(var we=0;we<=qe;we+=1){var j=Vt[we].fixed;if(j!=="left"&&j!==!0)return!0}var ze=Vt.findIndex(function(M){var Se=M.fixed;return Se==="right"});if(ze>=0)for(var Xe=ze;Xe<Vt.length;Xe+=1){var J=Vt[Xe].fixed;if(J!=="right")return!0}return!1},[Vt]),Ve=E(Vt,me,Qe),$t=(0,h.Z)(Ve,2),It=$t[0],sn=$t[1];return[Rt,It,sn,Qt]}var R=H},4030:function(Pn,Xt,_){"use strict";_.d(Xt,{w2:function(){return h.w},vP:function(){return Bt.v},RQ:function(){return h.R},ER:function(){return be},Q$:function(){return Nt},TN:function(){return Un}});var h=_(86351),ue=_(42978),z=_(6089),ae=_(34280),B=_(13697),d=_(59301),_e=_(4676);function te(Me){var Re=d.createContext(void 0),ke=function(gt){var bt=gt.value,zt=gt.children,Ut=d.useRef(bt);Ut.current=bt;var wt=d.useState(function(){return{getValue:function(){return Ut.current},listeners:new Set}}),vt=(0,ue.Z)(wt,1),Et=vt[0];return(0,ae.Z)(function(){(0,_e.unstable_batchedUpdates)(function(){Et.listeners.forEach(function(At){At(bt)})})},[bt]),d.createElement(Re.Provider,{value:Et},zt)};return{Context:Re,Provider:ke,defaultValue:Me}}function o(Me,Re){var ke=(0,z.Z)(typeof Re=="function"?Re:function(At){if(Re===void 0)return At;if(!Array.isArray(Re))return At[Re];var Kt={};return Re.forEach(function(en){Kt[en]=At[en]}),Kt}),ut=d.useContext(Me==null?void 0:Me.Context),gt=ut||{},bt=gt.listeners,zt=gt.getValue,Ut=d.useRef();Ut.current=ke(ut?zt():Me==null?void 0:Me.defaultValue);var wt=d.useState({}),vt=(0,ue.Z)(wt,2),Et=vt[1];return(0,ae.Z)(function(){if(!ut)return;function At(Kt){var en=ke(Kt);(0,B.Z)(Ut.current,en,!0)||Et({})}return bt.add(At),function(){bt.delete(At)}},[ut]),Ut.current}var g=_(54476),A=_(8654);function p(){var Me=d.createContext(null);function Re(){return d.useContext(Me)}function ke(gt,bt){var zt=(0,A.Yr)(gt),Ut=function(vt,Et){var At=zt?{ref:Et}:{},Kt=d.useRef(0),en=d.useRef(vt),mn=Re();return mn!==null?d.createElement(gt,(0,g.Z)({},vt,At)):((!bt||bt(en.current,vt))&&(Kt.current+=1),en.current=vt,d.createElement(Me.Provider,{value:Kt.current},d.createElement(gt,(0,g.Z)({},vt,At))))};return zt?d.forwardRef(Ut):Ut}function ut(gt,bt){var zt=(0,A.Yr)(gt),Ut=function(vt,Et){var At=zt?{ref:Et}:{};return Re(),d.createElement(gt,(0,g.Z)({},vt,At))};return zt?d.memo(d.forwardRef(Ut),bt):d.memo(Ut,bt)}return{makeImmutable:ke,responseImmutable:ut,useImmutableMark:Re}}var E=p(),b=E.makeImmutable,L=E.responseImmutable,V=E.useImmutableMark,q=p(),le=q.makeImmutable,F=q.responseImmutable,H=q.useImmutableMark,R=te(),w=R;function Q(Me,Re){var ke=React.useRef(0);ke.current+=1;var ut=React.useRef(Me),gt=[];Object.keys(Me||{}).map(function(zt){var Ut;(Me==null?void 0:Me[zt])!==((Ut=ut.current)===null||Ut===void 0?void 0:Ut[zt])&>.push(zt)}),ut.current=Me;var bt=React.useRef([]);return gt.length&&(bt.current=gt),React.useDebugValue(ke.current),React.useDebugValue(bt.current.join(", ")),Re&&console.log("".concat(Re,":"),ke.current,bt.current),ke.current}var re=null,$=null,oe=_(76190),ve=_(33885),he=_(20068),ot=_(92310),U=_.n(ot),C=_(80547),P=_(97938),G=_(48736),ie=d.createContext({renderWithProps:!1}),X=ie,y="RC_TABLE_KEY";function v(Me){return Me==null?[]:Array.isArray(Me)?Me:[Me]}function O(Me){var Re=[],ke={};return Me.forEach(function(ut){for(var gt=ut||{},bt=gt.key,zt=gt.dataIndex,Ut=bt||v(zt).join("-")||y;ke[Ut];)Ut="".concat(Ut,"_next");ke[Ut]=!0,Re.push(Ut)}),Re}function me(Me){return Me!=null}function Qe(Me){return typeof Me=="number"&&!Number.isNaN(Me)}function rt(Me){return Me&&(0,oe.Z)(Me)==="object"&&!Array.isArray(Me)&&!d.isValidElement(Me)}function Ct(Me,Re,ke,ut,gt,bt){var zt=d.useContext(X),Ut=H(),wt=(0,C.Z)(function(){if(me(ut))return[ut];var vt=Re==null||Re===""?[]:Array.isArray(Re)?Re:[Re],Et=(0,P.Z)(Me,vt),At=Et,Kt=void 0;if(gt){var en=gt(Et,Me,ke);rt(en)?(At=en.children,Kt=en.props,zt.renderWithProps=!0):At=en}return[At,Kt]},[Ut,Me,ut,Re,gt,ke],function(vt,Et){if(bt){var At=(0,ue.Z)(vt,2),Kt=At[1],en=(0,ue.Z)(Et,2),mn=en[1];return bt(mn,Kt)}return zt.renderWithProps?!0:!(0,B.Z)(vt,Et,!0)});return wt}function Rt(Me,Re,ke,ut){var gt=Me+Re-1;return Me<=ut&>>=ke}function Vt(Me,Re){return o(w,function(ke){var ut=Rt(Me,Re||1,ke.hoverStartRow,ke.hoverEndRow);return[ut,ke.onHover]})}var Qt=_(70425),Ve=function(Re){var ke=Re.ellipsis,ut=Re.rowType,gt=Re.children,bt,zt=ke===!0?{showTitle:!0}:ke;return zt&&(zt.showTitle||ut==="header")&&(typeof gt=="string"||typeof gt=="number"?bt=gt.toString():d.isValidElement(gt)&&typeof gt.props.children=="string"&&(bt=gt.props.children)),bt};function $t(Me){var Re,ke,ut,gt,bt,zt,Ut,wt,vt=Me.component,Et=Me.children,At=Me.ellipsis,Kt=Me.scope,en=Me.prefixCls,mn=Me.className,Bn=Me.align,hn=Me.record,xn=Me.render,On=Me.dataIndex,kn=Me.renderIndex,Hn=Me.shouldCellUpdate,Sn=Me.index,Wn=Me.rowType,zn=Me.colSpan,tr=Me.rowSpan,Yn=Me.fixLeft,qn=Me.fixRight,ur=Me.firstFixLeft,yt=Me.lastFixLeft,Yt=Me.firstFixRight,an=Me.lastFixRight,Wt=Me.appendNode,gn=Me.additionalProps,Kn=gn===void 0?{}:gn,Cn=Me.isSticky,Jn="".concat(en,"-cell"),or=o(w,["supportSticky","allColumnsFixedLeft","rowHoverable"]),xr=or.supportSticky,Zr=or.allColumnsFixedLeft,Mr=or.rowHoverable,Jr=Ct(hn,On,kn,Et,xn,Hn),Gr=(0,ue.Z)(Jr,2),wr=Gr[0],_r=Gr[1],Dr={},Vr=typeof Yn=="number"&&xr,Er=typeof qn=="number"&&xr;Vr&&(Dr.position="sticky",Dr.left=Yn),Er&&(Dr.position="sticky",Dr.right=qn);var br=(Re=(ke=(ut=_r==null?void 0:_r.colSpan)!==null&&ut!==void 0?ut:Kn.colSpan)!==null&&ke!==void 0?ke:zn)!==null&&Re!==void 0?Re:1,Cr=(gt=(bt=(zt=_r==null?void 0:_r.rowSpan)!==null&&zt!==void 0?zt:Kn.rowSpan)!==null&&bt!==void 0?bt:tr)!==null&>!==void 0?gt:1,Gn=Vt(Sn,Cr),lr=(0,ue.Z)(Gn,2),ar=lr[0],dr=lr[1],Ar=(0,Qt.zX)(function(yr){var Fr;hn&&dr(Sn,Sn+Cr-1),Kn==null||(Fr=Kn.onMouseEnter)===null||Fr===void 0||Fr.call(Kn,yr)}),Ir=(0,Qt.zX)(function(yr){var Fr;hn&&dr(-1,-1),Kn==null||(Fr=Kn.onMouseLeave)===null||Fr===void 0||Fr.call(Kn,yr)});if(br===0||Cr===0)return null;var qr=(Ut=Kn.title)!==null&&Ut!==void 0?Ut:Ve({rowType:Wn,ellipsis:At,children:wr}),Vn=U()(Jn,mn,(wt={},(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)(wt,"".concat(Jn,"-fix-left"),Vr&&xr),"".concat(Jn,"-fix-left-first"),ur&&xr),"".concat(Jn,"-fix-left-last"),yt&&xr),"".concat(Jn,"-fix-left-all"),yt&&Zr&&xr),"".concat(Jn,"-fix-right"),Er&&xr),"".concat(Jn,"-fix-right-first"),Yt&&xr),"".concat(Jn,"-fix-right-last"),an&&xr),"".concat(Jn,"-ellipsis"),At),"".concat(Jn,"-with-append"),Wt),"".concat(Jn,"-fix-sticky"),(Vr||Er)&&Cn&&xr),(0,he.Z)(wt,"".concat(Jn,"-row-hover"),!_r&&ar)),Kn.className,_r==null?void 0:_r.className),ir={};Bn&&(ir.textAlign=Bn);var rr=(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},_r==null?void 0:_r.style),Dr),ir),Kn.style),cr=wr;return(0,oe.Z)(cr)==="object"&&!Array.isArray(cr)&&!d.isValidElement(cr)&&(cr=null),At&&(yt||Yt)&&(cr=d.createElement("span",{className:"".concat(Jn,"-content")},cr)),d.createElement(vt,(0,g.Z)({},_r,Kn,{className:Vn,style:rr,title:qr,scope:Kt,onMouseEnter:Mr?Ar:void 0,onMouseLeave:Mr?Ir:void 0,colSpan:br!==1?br:null,rowSpan:Cr!==1?Cr:null}),Wt,cr)}var It=d.memo($t);function sn(Me,Re,ke,ut,gt){var bt=ke[Me]||{},zt=ke[Re]||{},Ut,wt;bt.fixed==="left"?Ut=ut.left[gt==="rtl"?Re:Me]:zt.fixed==="right"&&(wt=ut.right[gt==="rtl"?Me:Re]);var vt=!1,Et=!1,At=!1,Kt=!1,en=ke[Re+1],mn=ke[Me-1],Bn=en&&!en.fixed||mn&&!mn.fixed||ke.every(function(Hn){return Hn.fixed==="left"});if(gt==="rtl"){if(Ut!==void 0){var hn=mn&&mn.fixed==="left";Kt=!hn&&Bn}else if(wt!==void 0){var xn=en&&en.fixed==="right";At=!xn&&Bn}}else if(Ut!==void 0){var On=en&&en.fixed==="left";vt=!On&&Bn}else if(wt!==void 0){var kn=mn&&mn.fixed==="right";Et=!kn&&Bn}return{fixLeft:Ut,fixRight:wt,lastFixLeft:vt,firstFixRight:Et,lastFixRight:At,firstFixLeft:Kt,isSticky:ut.isSticky}}var qe=d.createContext({}),ht=qe;function Oe(Me){var Re=Me.className,ke=Me.index,ut=Me.children,gt=Me.colSpan,bt=gt===void 0?1:gt,zt=Me.rowSpan,Ut=Me.align,wt=o(w,["prefixCls","direction"]),vt=wt.prefixCls,Et=wt.direction,At=d.useContext(ht),Kt=At.scrollColumnIndex,en=At.stickyOffsets,mn=At.flattenColumns,Bn=ke+bt-1,hn=Bn+1===Kt?bt+1:bt,xn=sn(ke,ke+hn-1,mn,en,Et);return d.createElement(It,(0,g.Z)({className:Re,index:ke,component:"td",prefixCls:vt,record:null,dataIndex:null,align:Ut,colSpan:hn,rowSpan:zt,render:function(){return ut}},xn))}var we=_(75931),j=["children"];function ze(Me){var Re=Me.children,ke=(0,we.Z)(Me,j);return d.createElement("tr",ke,Re)}function Xe(Me){var Re=Me.children;return Re}Xe.Row=ze,Xe.Cell=Oe;var J=Xe;function M(Me){var Re=Me.children,ke=Me.stickyOffsets,ut=Me.flattenColumns,gt=o(w,"prefixCls"),bt=ut.length-1,zt=ut[bt],Ut=d.useMemo(function(){return{stickyOffsets:ke,flattenColumns:ut,scrollColumnIndex:zt!=null&&zt.scrollbar?bt:null}},[zt,ut,bt,ke]);return d.createElement(ht.Provider,{value:Ut},d.createElement("tfoot",{className:"".concat(gt,"-summary")},Re))}var Se=F(M),be=J,W=_(29301),fe=_(24514),ye=_(75152),tt=_(26112);function We(Me,Re,ke,ut,gt,bt,zt){Me.push({record:Re,indent:ke,index:zt});var Ut=bt(Re),wt=gt==null?void 0:gt.has(Ut);if(Re&&Array.isArray(Re[ut])&&wt)for(var vt=0;vt<Re[ut].length;vt+=1)We(Me,Re[ut][vt],ke+1,ut,gt,bt,vt)}function $e(Me,Re,ke,ut){var gt=d.useMemo(function(){if(ke!=null&&ke.size){for(var bt=[],zt=0;zt<(Me==null?void 0:Me.length);zt+=1){var Ut=Me[zt];We(bt,Ut,0,Re,ke,ut,zt)}return bt}return Me==null?void 0:Me.map(function(wt,vt){return{record:wt,indent:0,index:vt}})},[Me,Re,ke,ut]);return gt}function et(Me,Re,ke,ut){var gt=o(w,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),bt=gt.flattenColumns,zt=gt.expandableType,Ut=gt.expandedKeys,wt=gt.childrenColumnName,vt=gt.onTriggerExpand,Et=gt.rowExpandable,At=gt.onRow,Kt=gt.expandRowByClick,en=gt.rowClassName,mn=zt==="nest",Bn=zt==="row"&&(!Et||Et(Me)),hn=Bn||mn,xn=Ut&&Ut.has(Re),On=wt&&Me&&Me[wt],kn=(0,Qt.zX)(vt),Hn=At==null?void 0:At(Me,ke),Sn=Hn==null?void 0:Hn.onClick,Wn=function(qn){Kt&&hn&&vt(Me,qn);for(var ur=arguments.length,yt=new Array(ur>1?ur-1:0),Yt=1;Yt<ur;Yt++)yt[Yt-1]=arguments[Yt];Sn==null||Sn.apply(void 0,[qn].concat(yt))},zn;typeof en=="string"?zn=en:typeof en=="function"&&(zn=en(Me,ke,ut));var tr=O(bt);return(0,ve.Z)((0,ve.Z)({},gt),{},{columnsKey:tr,nestExpandable:mn,expanded:xn,hasNestChildren:On,record:Me,onTriggerExpand:kn,rowSupportExpand:Bn,expandable:hn,rowProps:(0,ve.Z)((0,ve.Z)({},Hn),{},{className:U()(zn,Hn==null?void 0:Hn.className),onClick:Wn})})}function ct(Me){var Re=Me.prefixCls,ke=Me.children,ut=Me.component,gt=Me.cellComponent,bt=Me.className,zt=Me.expanded,Ut=Me.colSpan,wt=Me.isEmpty,vt=o(w,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Et=vt.scrollbarSize,At=vt.fixHeader,Kt=vt.fixColumn,en=vt.componentWidth,mn=vt.horizonScroll,Bn=ke;return(wt?mn&&en:Kt)&&(Bn=d.createElement("div",{style:{width:en-(At&&!wt?Et:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Re,"-expanded-row-fixed")},Bn)),d.createElement(ut,{className:bt,style:{display:zt?null:"none"}},d.createElement(It,{component:gt,prefixCls:Re,colSpan:Ut},Bn))}var ce=ct;function Z(Me){var Re=Me.prefixCls,ke=Me.record,ut=Me.onExpand,gt=Me.expanded,bt=Me.expandable,zt="".concat(Re,"-row-expand-icon");if(!bt)return d.createElement("span",{className:U()(zt,"".concat(Re,"-row-spaced"))});var Ut=function(vt){ut(ke,vt),vt.stopPropagation()};return d.createElement("span",{className:U()(zt,(0,he.Z)((0,he.Z)({},"".concat(Re,"-row-expanded"),gt),"".concat(Re,"-row-collapsed"),!gt)),onClick:Ut})}function N(Me,Re,ke){var ut=[];function gt(bt){(bt||[]).forEach(function(zt,Ut){ut.push(Re(zt,Ut)),gt(zt[ke])})}return gt(Me),ut}function Ie(Me,Re,ke,ut){return typeof Me=="string"?Me:typeof Me=="function"?Me(Re,ke,ut):""}function Ce(Me,Re,ke,ut,gt){var bt=Me.record,zt=Me.prefixCls,Ut=Me.columnsKey,wt=Me.fixedInfoList,vt=Me.expandIconColumnIndex,Et=Me.nestExpandable,At=Me.indentSize,Kt=Me.expandIcon,en=Me.expanded,mn=Me.hasNestChildren,Bn=Me.onTriggerExpand,hn=Ut[ke],xn=wt[ke],On;ke===(vt||0)&&Et&&(On=d.createElement(d.Fragment,null,d.createElement("span",{style:{paddingLeft:"".concat(At*ut,"px")},className:"".concat(zt,"-row-indent indent-level-").concat(ut)}),Kt({prefixCls:zt,expanded:en,expandable:mn,record:bt,onExpand:Bn})));var kn;return Re.onCell&&(kn=Re.onCell(bt,gt)),{key:hn,fixedInfo:xn,appendCellNode:On,additionalCellProps:kn||{}}}function Ae(Me){var Re=Me.className,ke=Me.style,ut=Me.record,gt=Me.index,bt=Me.renderIndex,zt=Me.rowKey,Ut=Me.indent,wt=Ut===void 0?0:Ut,vt=Me.rowComponent,Et=Me.cellComponent,At=Me.scopeCellComponent,Kt=et(ut,zt,gt,wt),en=Kt.prefixCls,mn=Kt.flattenColumns,Bn=Kt.expandedRowClassName,hn=Kt.expandedRowRender,xn=Kt.rowProps,On=Kt.expanded,kn=Kt.rowSupportExpand,Hn=d.useRef(!1);Hn.current||(Hn.current=On);var Sn=Ie(Bn,ut,gt,wt),Wn=d.createElement(vt,(0,g.Z)({},xn,{"data-row-key":zt,className:U()(Re,"".concat(en,"-row"),"".concat(en,"-row-level-").concat(wt),xn==null?void 0:xn.className,(0,he.Z)({},Sn,wt>=1)),style:(0,ve.Z)((0,ve.Z)({},ke),xn==null?void 0:xn.style)}),mn.map(function(Yn,qn){var ur=Yn.render,yt=Yn.dataIndex,Yt=Yn.className,an=Ce(Kt,Yn,qn,wt,gt),Wt=an.key,gn=an.fixedInfo,Kn=an.appendCellNode,Cn=an.additionalCellProps;return d.createElement(It,(0,g.Z)({className:Yt,ellipsis:Yn.ellipsis,align:Yn.align,scope:Yn.rowScope,component:Yn.rowScope?At:Et,prefixCls:en,key:Wt,record:ut,index:gt,renderIndex:bt,dataIndex:yt,render:ur,shouldCellUpdate:Yn.shouldCellUpdate},gn,{appendNode:Kn,additionalProps:Cn}))})),zn;if(kn&&(Hn.current||On)){var tr=hn(ut,gt,wt+1,On);zn=d.createElement(ce,{expanded:On,className:U()("".concat(en,"-expanded-row"),"".concat(en,"-expanded-row-level-").concat(wt+1),Sn),prefixCls:en,component:vt,cellComponent:Et,colSpan:mn.length,isEmpty:!1},tr)}return d.createElement(d.Fragment,null,Wn,zn)}var st=F(Ae);function lt(Me){var Re=Me.columnKey,ke=Me.onColumnResize,ut=d.useRef();return(0,ae.Z)(function(){ut.current&&ke(Re,ut.current.offsetWidth)},[]),d.createElement(W.Z,{data:Re},d.createElement("td",{ref:ut,style:{padding:0,border:0,height:0}},d.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Fe=_(29194);function _t(Me){var Re=Me.prefixCls,ke=Me.columnsKey,ut=Me.onColumnResize,gt=d.useRef(null);return d.createElement("tr",{"aria-hidden":"true",className:"".concat(Re,"-measure-row"),style:{height:0,fontSize:0},ref:gt},d.createElement(W.Z.Collection,{onBatchResize:function(zt){(0,Fe.Z)(gt.current)&&zt.forEach(function(Ut){var wt=Ut.data,vt=Ut.size;ut(wt,vt.offsetWidth)})}},ke.map(function(bt){return d.createElement(lt,{key:bt,columnKey:bt,onColumnResize:ut})})))}function Ht(Me){var Re=Me.data,ke=Me.measureColumnWidth,ut=o(w,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),gt=ut.prefixCls,bt=ut.getComponent,zt=ut.onColumnResize,Ut=ut.flattenColumns,wt=ut.getRowKey,vt=ut.expandedKeys,Et=ut.childrenColumnName,At=ut.emptyNode,Kt=$e(Re,Et,vt,wt),en=d.useRef({renderWithProps:!1}),mn=bt(["body","wrapper"],"tbody"),Bn=bt(["body","row"],"tr"),hn=bt(["body","cell"],"td"),xn=bt(["body","cell"],"th"),On;Re.length?On=Kt.map(function(Hn,Sn){var Wn=Hn.record,zn=Hn.indent,tr=Hn.index,Yn=wt(Wn,Sn);return d.createElement(st,{key:Yn,rowKey:Yn,record:Wn,index:Sn,renderIndex:tr,rowComponent:Bn,cellComponent:hn,scopeCellComponent:xn,indent:zn})}):On=d.createElement(ce,{expanded:!0,className:"".concat(gt,"-placeholder"),prefixCls:gt,component:Bn,cellComponent:hn,colSpan:Ut.length,isEmpty:!0},At);var kn=O(Ut);return d.createElement(X.Provider,{value:en.current},d.createElement(mn,{className:"".concat(gt,"-tbody")},ke&&d.createElement(_t,{prefixCls:gt,columnsKey:kn,onColumnResize:zt}),On))}var St=F(Ht),Bt=_(54451),se=["columnType"];function ge(Me){for(var Re=Me.colWidths,ke=Me.columns,ut=Me.columCount,gt=o(w,["tableLayout"]),bt=gt.tableLayout,zt=[],Ut=ut||ke.length,wt=!1,vt=Ut-1;vt>=0;vt-=1){var Et=Re[vt],At=ke&&ke[vt],Kt=void 0,en=void 0;if(At&&(Kt=At[Bt.v],bt==="auto"&&(en=At.minWidth)),Et||en||Kt||wt){var mn=Kt||{},Bn=mn.columnType,hn=(0,we.Z)(mn,se);zt.unshift(d.createElement("col",(0,g.Z)({key:vt,style:{width:Et,minWidth:en}},hn))),wt=!0}}return d.createElement("colgroup",null,zt)}var Ee=ge,k=_(94480),Y=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function pe(Me,Re){return(0,d.useMemo)(function(){for(var ke=[],ut=0;ut<Re;ut+=1){var gt=Me[ut];if(gt!==void 0)ke[ut]=gt;else return null}return ke},[Me.join("_"),Re])}var de=d.forwardRef(function(Me,Re){var ke=Me.className,ut=Me.noData,gt=Me.columns,bt=Me.flattenColumns,zt=Me.colWidths,Ut=Me.columCount,wt=Me.stickyOffsets,vt=Me.direction,Et=Me.fixHeader,At=Me.stickyTopOffset,Kt=Me.stickyBottomOffset,en=Me.stickyClassName,mn=Me.onScroll,Bn=Me.maxContentScroll,hn=Me.children,xn=(0,we.Z)(Me,Y),On=o(w,["prefixCls","scrollbarSize","isSticky","getComponent"]),kn=On.prefixCls,Hn=On.scrollbarSize,Sn=On.isSticky,Wn=On.getComponent,zn=Wn(["header","table"],"table"),tr=Sn&&!Et?0:Hn,Yn=d.useRef(null),qn=d.useCallback(function(Cn){(0,A.mH)(Re,Cn),(0,A.mH)(Yn,Cn)},[]);d.useEffect(function(){var Cn;function Jn(or){var xr=or,Zr=xr.currentTarget,Mr=xr.deltaX;Mr&&(mn({currentTarget:Zr,scrollLeft:Zr.scrollLeft+Mr}),or.preventDefault())}return(Cn=Yn.current)===null||Cn===void 0||Cn.addEventListener("wheel",Jn,{passive:!1}),function(){var or;(or=Yn.current)===null||or===void 0||or.removeEventListener("wheel",Jn)}},[]);var ur=d.useMemo(function(){return bt.every(function(Cn){return Cn.width})},[bt]),yt=bt[bt.length-1],Yt={fixed:yt?yt.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(kn,"-cell-scrollbar")}}},an=(0,d.useMemo)(function(){return tr?[].concat((0,k.Z)(gt),[Yt]):gt},[tr,gt]),Wt=(0,d.useMemo)(function(){return tr?[].concat((0,k.Z)(bt),[Yt]):bt},[tr,bt]),gn=(0,d.useMemo)(function(){var Cn=wt.right,Jn=wt.left;return(0,ve.Z)((0,ve.Z)({},wt),{},{left:vt==="rtl"?[].concat((0,k.Z)(Jn.map(function(or){return or+tr})),[0]):Jn,right:vt==="rtl"?Cn:[].concat((0,k.Z)(Cn.map(function(or){return or+tr})),[0]),isSticky:Sn})},[tr,wt,Sn]),Kn=pe(zt,Ut);return d.createElement("div",{style:(0,ve.Z)({overflow:"hidden"},Sn?{top:At,bottom:Kt}:{}),ref:qn,className:U()(ke,(0,he.Z)({},en,!!en))},d.createElement(zn,{style:{tableLayout:"fixed",visibility:ut||Kn?null:"hidden"}},(!ut||!Bn||ur)&&d.createElement(Ee,{colWidths:Kn?[].concat((0,k.Z)(Kn),[tr]):[],columCount:Ut+1,columns:Wt}),hn((0,ve.Z)((0,ve.Z)({},xn),{},{stickyOffsets:gn,columns:an,flattenColumns:Wt}))))}),xe=d.memo(de),Be=function(Re){var ke=Re.cells,ut=Re.stickyOffsets,gt=Re.flattenColumns,bt=Re.rowComponent,zt=Re.cellComponent,Ut=Re.onHeaderRow,wt=Re.index,vt=o(w,["prefixCls","direction"]),Et=vt.prefixCls,At=vt.direction,Kt;Ut&&(Kt=Ut(ke.map(function(mn){return mn.column}),wt));var en=O(ke.map(function(mn){return mn.column}));return d.createElement(bt,Kt,ke.map(function(mn,Bn){var hn=mn.column,xn=sn(mn.colStart,mn.colEnd,gt,ut,At),On;return hn&&hn.onHeaderCell&&(On=mn.column.onHeaderCell(hn)),d.createElement(It,(0,g.Z)({},mn,{scope:hn.title?mn.colSpan>1?"colgroup":"col":null,ellipsis:hn.ellipsis,align:hn.align,component:zt,prefixCls:Et,key:en[Bn]},xn,{additionalProps:On,rowType:"header"}))}))},Ye=Be;function dt(Me){var Re=[];function ke(zt,Ut){var wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Re[wt]=Re[wt]||[];var vt=Ut,Et=zt.filter(Boolean).map(function(At){var Kt={key:At.key,className:At.className||"",children:At.title,column:At,colStart:vt},en=1,mn=At.children;return mn&&mn.length>0&&(en=ke(mn,vt,wt+1).reduce(function(Bn,hn){return Bn+hn},0),Kt.hasSubColumns=!0),"colSpan"in At&&(en=At.colSpan),"rowSpan"in At&&(Kt.rowSpan=At.rowSpan),Kt.colSpan=en,Kt.colEnd=Kt.colStart+en-1,Re[wt].push(Kt),vt+=en,en});return Et}ke(Me,0);for(var ut=Re.length,gt=function(Ut){Re[Ut].forEach(function(wt){!("rowSpan"in wt)&&!wt.hasSubColumns&&(wt.rowSpan=ut-Ut)})},bt=0;bt<ut;bt+=1)gt(bt);return Re}var nt=function(Re){var ke=Re.stickyOffsets,ut=Re.columns,gt=Re.flattenColumns,bt=Re.onHeaderRow,zt=o(w,["prefixCls","getComponent"]),Ut=zt.prefixCls,wt=zt.getComponent,vt=d.useMemo(function(){return dt(ut)},[ut]),Et=wt(["header","wrapper"],"thead"),At=wt(["header","row"],"tr"),Kt=wt(["header","cell"],"th");return d.createElement(Et,{className:"".concat(Ut,"-thead")},vt.map(function(en,mn){var Bn=d.createElement(Ye,{key:mn,flattenColumns:gt,cells:en,stickyOffsets:ke,rowComponent:At,cellComponent:Kt,onHeaderRow:bt,index:mn});return Bn}))},Ue=F(nt),I=_(97347);function K(Me,Re,ke){var ut=(0,Bt.g)(Me),gt=ut.expandIcon,bt=ut.expandedRowKeys,zt=ut.defaultExpandedRowKeys,Ut=ut.defaultExpandAllRows,wt=ut.expandedRowRender,vt=ut.onExpand,Et=ut.onExpandedRowsChange,At=ut.childrenColumnName,Kt=gt||Z,en=At||"children",mn=d.useMemo(function(){return wt?"row":Me.expandable&&Me.internalHooks===h.R&&Me.expandable.__PARENT_RENDER_ICON__||Re.some(function(Sn){return Sn&&(0,oe.Z)(Sn)==="object"&&Sn[en]})?"nest":!1},[!!wt,Re]),Bn=d.useState(function(){return zt||(Ut?N(Re,ke,en):[])}),hn=(0,ue.Z)(Bn,2),xn=hn[0],On=hn[1],kn=d.useMemo(function(){return new Set(bt||xn||[])},[bt,xn]),Hn=d.useCallback(function(Sn){var Wn=ke(Sn,Re.indexOf(Sn)),zn,tr=kn.has(Wn);tr?(kn.delete(Wn),zn=(0,k.Z)(kn)):zn=[].concat((0,k.Z)(kn),[Wn]),On(zn),vt&&vt(!tr,Sn),Et&&Et(zn)},[ke,kn,Re,vt,Et]);return[ut,mn,kn,Kt,en,Hn]}function S(Me,Re,ke){var ut=Me.map(function(gt,bt){return sn(bt,bt,Me,Re,ke)});return(0,C.Z)(function(){return ut},[ut],function(gt,bt){return!(0,B.Z)(gt,bt)})}function je(Me){var Re=(0,d.useRef)(Me),ke=(0,d.useState)({}),ut=(0,ue.Z)(ke,2),gt=ut[1],bt=(0,d.useRef)(null),zt=(0,d.useRef)([]);function Ut(wt){zt.current.push(wt);var vt=Promise.resolve();bt.current=vt,vt.then(function(){if(bt.current===vt){var Et=zt.current,At=Re.current;zt.current=[],Et.forEach(function(Kt){Re.current=Kt(Re.current)}),bt.current=null,At!==Re.current&>({})}})}return(0,d.useEffect)(function(){return function(){bt.current=null}},[]),[Re.current,Ut]}function De(Me){var Re=(0,d.useRef)(Me||null),ke=(0,d.useRef)();function ut(){window.clearTimeout(ke.current)}function gt(zt){Re.current=zt,ut(),ke.current=window.setTimeout(function(){Re.current=null,ke.current=void 0},100)}function bt(){return Re.current}return(0,d.useEffect)(function(){return ut},[]),[gt,bt]}function Le(){var Me=d.useState(-1),Re=(0,ue.Z)(Me,2),ke=Re[0],ut=Re[1],gt=d.useState(-1),bt=(0,ue.Z)(gt,2),zt=bt[0],Ut=bt[1],wt=d.useCallback(function(vt,Et){ut(vt),Ut(Et)},[]);return[ke,zt,wt]}var He=_(47273),Ge=(0,He.Z)()?window:null;function ft(Me,Re){var ke=(0,oe.Z)(Me)==="object"?Me:{},ut=ke.offsetHeader,gt=ut===void 0?0:ut,bt=ke.offsetSummary,zt=bt===void 0?0:bt,Ut=ke.offsetScroll,wt=Ut===void 0?0:Ut,vt=ke.getContainer,Et=vt===void 0?function(){return Ge}:vt,At=Et()||Ge,Kt=!!Me;return d.useMemo(function(){return{isSticky:Kt,stickyClassName:Kt?"".concat(Re,"-sticky-holder"):"",offsetHeader:gt,offsetSummary:zt,offsetScroll:wt,container:At}},[Kt,wt,gt,zt,Re,At])}function kt(Me,Re,ke){var ut=(0,d.useMemo)(function(){var gt=Re.length,bt=function(vt,Et,At){for(var Kt=[],en=0,mn=vt;mn!==Et;mn+=At)Kt.push(en),Re[mn].fixed&&(en+=Me[mn]||0);return Kt},zt=bt(0,gt,1),Ut=bt(gt-1,-1,-1).reverse();return ke==="rtl"?{left:Ut,right:zt}:{left:zt,right:Ut}},[Me,Re,ke]);return ut}var Mt=kt;function fn(Me){var Re=Me.className,ke=Me.children;return d.createElement("div",{className:Re},ke)}var Pe=fn,Te=_(8224),pt=_(16089),mt=_(76846);function Ot(Me){var Re=(0,mt.bn)(Me),ke=Re.getBoundingClientRect(),ut=document.documentElement;return{left:ke.left+(window.pageXOffset||ut.scrollLeft)-(ut.clientLeft||document.body.clientLeft||0),top:ke.top+(window.pageYOffset||ut.scrollTop)-(ut.clientTop||document.body.clientTop||0)}}var xt=function(Re,ke){var ut,gt,bt=Re.scrollBodyRef,zt=Re.onScroll,Ut=Re.offsetScroll,wt=Re.container,vt=Re.direction,Et=o(w,"prefixCls"),At=((ut=bt.current)===null||ut===void 0?void 0:ut.scrollWidth)||0,Kt=((gt=bt.current)===null||gt===void 0?void 0:gt.clientWidth)||0,en=At&&Kt*(Kt/At),mn=d.useRef(),Bn=je({scrollLeft:0,isHiddenScrollBar:!0}),hn=(0,ue.Z)(Bn,2),xn=hn[0],On=hn[1],kn=d.useRef({delta:0,x:0}),Hn=d.useState(!1),Sn=(0,ue.Z)(Hn,2),Wn=Sn[0],zn=Sn[1],tr=d.useRef(null);d.useEffect(function(){return function(){pt.Z.cancel(tr.current)}},[]);var Yn=function(){zn(!1)},qn=function(Wt){Wt.persist(),kn.current.delta=Wt.pageX-xn.scrollLeft,kn.current.x=0,zn(!0),Wt.preventDefault()},ur=function(Wt){var gn,Kn=Wt||((gn=window)===null||gn===void 0?void 0:gn.event),Cn=Kn.buttons;if(!Wn||Cn===0){Wn&&zn(!1);return}var Jn=kn.current.x+Wt.pageX-kn.current.x-kn.current.delta,or=vt==="rtl";Jn=Math.max(or?en-Kt:0,Math.min(or?0:Kt-en,Jn));var xr=!or||Math.abs(Jn)+Math.abs(en)<Kt;xr&&(zt({scrollLeft:Jn/Kt*(At+2)}),kn.current.x=Wt.pageX)},yt=function(){pt.Z.cancel(tr.current),tr.current=(0,pt.Z)(function(){if(bt.current){var Wt=Ot(bt.current).top,gn=Wt+bt.current.offsetHeight,Kn=wt===window?document.documentElement.scrollTop+window.innerHeight:Ot(wt).top+wt.clientHeight;gn-(0,ye.Z)()<=Kn||Wt>=Kn-Ut?On(function(Cn){return(0,ve.Z)((0,ve.Z)({},Cn),{},{isHiddenScrollBar:!0})}):On(function(Cn){return(0,ve.Z)((0,ve.Z)({},Cn),{},{isHiddenScrollBar:!1})})}})},Yt=function(Wt){On(function(gn){return(0,ve.Z)((0,ve.Z)({},gn),{},{scrollLeft:Wt/At*Kt||0})})};return d.useImperativeHandle(ke,function(){return{setScrollLeft:Yt,checkScrollBarVisible:yt}}),d.useEffect(function(){var an=(0,Te.Z)(document.body,"mouseup",Yn,!1),Wt=(0,Te.Z)(document.body,"mousemove",ur,!1);return yt(),function(){an.remove(),Wt.remove()}},[en,Wn]),d.useEffect(function(){if(bt.current){for(var an=[],Wt=(0,mt.bn)(bt.current);Wt;)an.push(Wt),Wt=Wt.parentElement;return an.forEach(function(gn){return gn.addEventListener("scroll",yt,!1)}),window.addEventListener("resize",yt,!1),window.addEventListener("scroll",yt,!1),wt.addEventListener("scroll",yt,!1),function(){an.forEach(function(gn){return gn.removeEventListener("scroll",yt)}),window.removeEventListener("resize",yt),window.removeEventListener("scroll",yt),wt.removeEventListener("scroll",yt)}}},[wt]),d.useEffect(function(){xn.isHiddenScrollBar||On(function(an){var Wt=bt.current;return Wt?(0,ve.Z)((0,ve.Z)({},an),{},{scrollLeft:Wt.scrollLeft/Wt.scrollWidth*Wt.clientWidth}):an})},[xn.isHiddenScrollBar]),At<=Kt||!en||xn.isHiddenScrollBar?null:d.createElement("div",{style:{height:(0,ye.Z)(),width:Kt,bottom:Ut},className:"".concat(Et,"-sticky-scroll")},d.createElement("div",{onMouseDown:qn,ref:mn,className:U()("".concat(Et,"-sticky-scroll-bar"),(0,he.Z)({},"".concat(Et,"-sticky-scroll-bar-active"),Wn)),style:{width:"".concat(en,"px"),transform:"translate3d(".concat(xn.scrollLeft,"px, 0, 0)")}}))},Tt=d.forwardRef(xt);function Zt(Me){return null}var tn=Zt;function Ft(Me){return null}var un=Ft,dn="rc-table",qt=[],Pt={};function Ze(){return"No Data"}function at(Me,Re){var ke=(0,ve.Z)({rowKey:"key",prefixCls:dn,emptyText:Ze},Me),ut=ke.prefixCls,gt=ke.className,bt=ke.rowClassName,zt=ke.style,Ut=ke.data,wt=ke.rowKey,vt=ke.scroll,Et=ke.tableLayout,At=ke.direction,Kt=ke.title,en=ke.footer,mn=ke.summary,Bn=ke.caption,hn=ke.id,xn=ke.showHeader,On=ke.components,kn=ke.emptyText,Hn=ke.onRow,Sn=ke.onHeaderRow,Wn=ke.onScroll,zn=ke.internalHooks,tr=ke.transformColumns,Yn=ke.internalRefs,qn=ke.tailor,ur=ke.getContainerWidth,yt=ke.sticky,Yt=ke.rowHoverable,an=Yt===void 0?!0:Yt,Wt=Ut||qt,gn=!!Wt.length,Kn=zn===h.R,Cn=d.useCallback(function(Lr,kr){return(0,P.Z)(On,Lr)||kr},[On]),Jn=d.useMemo(function(){return typeof wt=="function"?wt:function(Lr){var kr=Lr&&Lr[wt];return kr}},[wt]),or=Cn(["body"]),xr=Le(),Zr=(0,ue.Z)(xr,3),Mr=Zr[0],Jr=Zr[1],Gr=Zr[2],wr=K(ke,Wt,Jn),_r=(0,ue.Z)(wr,6),Dr=_r[0],Vr=_r[1],Er=_r[2],br=_r[3],Cr=_r[4],Gn=_r[5],lr=vt==null?void 0:vt.x,ar=d.useState(0),dr=(0,ue.Z)(ar,2),Ar=dr[0],Ir=dr[1],qr=(0,I.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},ke),Dr),{},{expandable:!!Dr.expandedRowRender,columnTitle:Dr.columnTitle,expandedKeys:Er,getRowKey:Jn,onTriggerExpand:Gn,expandIcon:br,expandIconColumnIndex:Dr.expandIconColumnIndex,direction:At,scrollWidth:Kn&&qn&&typeof lr=="number"?lr:null,clientWidth:Ar}),Kn?tr:null),Vn=(0,ue.Z)(qr,4),ir=Vn[0],rr=Vn[1],cr=Vn[2],yr=Vn[3],Fr=cr!=null?cr:lr,ri=d.useMemo(function(){return{columns:ir,flattenColumns:rr}},[ir,rr]),$r=d.useRef(),ei=d.useRef(),Hr=d.useRef(),is=d.useRef();d.useImperativeHandle(Re,function(){return{nativeElement:$r.current,scrollTo:function(kr){var ui;if(Hr.current instanceof HTMLElement){var bi=kr.index,oi=kr.top,Hi=kr.key;if(Qe(oi)){var ts;(ts=Hr.current)===null||ts===void 0||ts.scrollTo({top:oi})}else{var Mi,Ss=Hi!=null?Hi:Jn(Wt[bi]);(Mi=Hr.current.querySelector('[data-row-key="'.concat(Ss,'"]')))===null||Mi===void 0||Mi.scrollIntoView()}}else(ui=Hr.current)!==null&&ui!==void 0&&ui.scrollTo&&Hr.current.scrollTo(kr)}}});var ss=d.useRef(),Ai=d.useState(!1),Li=(0,ue.Z)(Ai,2),yi=Li[0],zi=Li[1],ji=d.useState(!1),xi=(0,ue.Z)(ji,2),Vi=xi[0],ki=xi[1],as=d.useState(new Map),Pi=(0,ue.Z)(as,2),Es=Pi[0],ci=Pi[1],os=O(rr),ls=os.map(function(Lr){return Es.get(Lr)}),$i=d.useMemo(function(){return ls},[ls.join("_")]),Bi=Mt($i,rr,At),ai=vt&&me(vt.y),ti=vt&&me(Fr)||!!Dr.fixed,Rr=ti&&rr.some(function(Lr){var kr=Lr.fixed;return kr}),Sr=d.useRef(),Xr=ft(yt,ut),Wr=Xr.isSticky,Br=Xr.offsetHeader,Qr=Xr.offsetSummary,fi=Xr.offsetScroll,hi=Xr.stickyClassName,Ci=Xr.container,ni=d.useMemo(function(){return mn==null?void 0:mn(Wt)},[mn,Wt]),pi=(ai||Wr)&&d.isValidElement(ni)&&ni.type===J&&ni.props.fixed,Ni,Si,us;ai&&(Si={overflowY:gn?"scroll":"auto",maxHeight:vt.y}),ti&&(Ni={overflowX:"auto"},ai||(Si={overflowY:"hidden"}),us={width:Fr===!0?"auto":Fr,minWidth:"100%"});var cs=d.useCallback(function(Lr,kr){ci(function(ui){if(ui.get(Lr)!==kr){var bi=new Map(ui);return bi.set(Lr,kr),bi}return ui})},[]),Yr=De(null),Ur=(0,ue.Z)(Yr,2),jr=Ur[0],li=Ur[1];function si(Lr,kr){kr&&(typeof kr=="function"?kr(Lr):kr.scrollLeft!==Lr&&(kr.scrollLeft=Lr,kr.scrollLeft!==Lr&&setTimeout(function(){kr.scrollLeft=Lr},0)))}var Ti=(0,z.Z)(function(Lr){var kr=Lr.currentTarget,ui=Lr.scrollLeft,bi=At==="rtl",oi=typeof ui=="number"?ui:kr.scrollLeft,Hi=kr||Pt;if(!li()||li()===Hi){var ts;jr(Hi),si(oi,ei.current),si(oi,Hr.current),si(oi,ss.current),si(oi,(ts=Sr.current)===null||ts===void 0?void 0:ts.setScrollLeft)}var Mi=kr||ei.current;if(Mi){var Ss=Kn&&qn&&typeof Fr=="number"?Fr:Mi.scrollWidth,Gs=Mi.clientWidth;if(Ss===Gs){zi(!1),ki(!1);return}bi?(zi(-oi<Ss-Gs),ki(-oi>0)):(zi(oi>0),ki(oi<Ss-Gs))}}),ds=(0,z.Z)(function(Lr){Ti(Lr),Wn==null||Wn(Lr)}),Wi=function(){if(ti&&Hr.current){var kr;Ti({currentTarget:(0,mt.bn)(Hr.current),scrollLeft:(kr=Hr.current)===null||kr===void 0?void 0:kr.scrollLeft})}else zi(!1),ki(!1)},Rs=function(kr){var ui,bi=kr.width;(ui=Sr.current)===null||ui===void 0||ui.checkScrollBarVisible();var oi=$r.current?$r.current.offsetWidth:bi;Kn&&ur&&$r.current&&(oi=ur($r.current,oi)||oi),oi!==Ar&&(Wi(),Ir(oi))},fs=d.useRef(!1);d.useEffect(function(){fs.current&&Wi()},[ti,Ut,ir.length]),d.useEffect(function(){fs.current=!0},[]);var Gi=d.useState(0),hs=(0,ue.Z)(Gi,2),es=hs[0],bs=hs[1],mi=d.useState(!0),gi=(0,ue.Z)(mi,2),ea=gi[0],wn=gi[1];(0,ae.Z)(function(){(!qn||!Kn)&&(Hr.current instanceof Element?bs((0,ye.o)(Hr.current).width):bs((0,ye.o)(is.current).width)),wn((0,fe.G)("position","sticky"))},[]),d.useEffect(function(){Kn&&Yn&&(Yn.body.current=Hr.current)});var Zs=d.useCallback(function(Lr){return d.createElement(d.Fragment,null,d.createElement(Ue,Lr),pi==="top"&&d.createElement(Se,Lr,ni))},[pi,ni]),ta=d.useCallback(function(Lr){return d.createElement(Se,Lr,ni)},[ni]),Ks=Cn(["table"],"table"),Is=d.useMemo(function(){return Et||(Rr?Fr==="max-content"?"auto":"fixed":ai||Wr||rr.some(function(Lr){var kr=Lr.ellipsis;return kr})?"fixed":"auto")},[ai,Rr,rr,Et,Wr]),xs,Ls={colWidths:$i,columCount:rr.length,stickyOffsets:Bi,onHeaderRow:Sn,fixHeader:ai,scroll:vt},na=d.useMemo(function(){return gn?null:typeof kn=="function"?kn():kn},[gn,kn]),ra=d.createElement(St,{data:Wt,measureColumnWidth:ai||ti||Wr}),ks=d.createElement(Ee,{colWidths:rr.map(function(Lr){var kr=Lr.width;return kr}),columns:rr}),ps=Bn!=null?d.createElement("caption",{className:"".concat(ut,"-caption")},Bn):void 0,ms=(0,tt.Z)(ke,{data:!0}),ia=(0,tt.Z)(ke,{aria:!0});if(ai||Wr){var zs;typeof or=="function"?(zs=or(Wt,{scrollbarSize:es,ref:Hr,onScroll:Ti}),Ls.colWidths=rr.map(function(Lr,kr){var ui=Lr.width,bi=kr===rr.length-1?ui-es:ui;return typeof bi=="number"&&!Number.isNaN(bi)?bi:0})):zs=d.createElement("div",{style:(0,ve.Z)((0,ve.Z)({},Ni),Si),onScroll:ds,ref:Hr,className:U()("".concat(ut,"-body"))},d.createElement(Ks,(0,g.Z)({style:(0,ve.Z)((0,ve.Z)({},us),{},{tableLayout:Is})},ia),ps,ks,ra,!pi&&ni&&d.createElement(Se,{stickyOffsets:Bi,flattenColumns:rr},ni)));var sa=(0,ve.Z)((0,ve.Z)((0,ve.Z)({noData:!Wt.length,maxContentScroll:ti&&Fr==="max-content"},Ls),ri),{},{direction:At,stickyClassName:hi,onScroll:Ti});xs=d.createElement(d.Fragment,null,xn!==!1&&d.createElement(xe,(0,g.Z)({},sa,{stickyTopOffset:Br,className:"".concat(ut,"-header"),ref:ei}),Zs),zs,pi&&pi!=="top"&&d.createElement(xe,(0,g.Z)({},sa,{stickyBottomOffset:Qr,className:"".concat(ut,"-summary"),ref:ss}),ta),Wr&&Hr.current&&Hr.current instanceof Element&&d.createElement(Tt,{ref:Sr,offsetScroll:fi,scrollBodyRef:Hr,onScroll:Ti,container:Ci,direction:At}))}else xs=d.createElement("div",{style:(0,ve.Z)((0,ve.Z)({},Ni),Si),className:U()("".concat(ut,"-content")),onScroll:Ti,ref:Hr},d.createElement(Ks,(0,g.Z)({style:(0,ve.Z)((0,ve.Z)({},us),{},{tableLayout:Is})},ia),ps,ks,xn!==!1&&d.createElement(Ue,(0,g.Z)({},Ls,ri)),ra,ni&&d.createElement(Se,{stickyOffsets:Bi,flattenColumns:rr},ni)));var js=d.createElement("div",(0,g.Z)({className:U()(ut,gt,(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(ut,"-rtl"),At==="rtl"),"".concat(ut,"-ping-left"),yi),"".concat(ut,"-ping-right"),Vi),"".concat(ut,"-layout-fixed"),Et==="fixed"),"".concat(ut,"-fixed-header"),ai),"".concat(ut,"-fixed-column"),Rr),"".concat(ut,"-fixed-column-gapped"),Rr&&yr),"".concat(ut,"-scroll-horizontal"),ti),"".concat(ut,"-has-fix-left"),rr[0]&&rr[0].fixed),"".concat(ut,"-has-fix-right"),rr[rr.length-1]&&rr[rr.length-1].fixed==="right")),style:zt,id:hn,ref:$r},ms),Kt&&d.createElement(Pe,{className:"".concat(ut,"-title")},Kt(Wt)),d.createElement("div",{ref:is,className:"".concat(ut,"-container")},xs),en&&d.createElement(Pe,{className:"".concat(ut,"-footer")},en(Wt)));ti&&(js=d.createElement(W.Z,{onResize:Rs},js));var Vs=S(rr,Bi,At),Ws=d.useMemo(function(){return{scrollX:Fr,prefixCls:ut,getComponent:Cn,scrollbarSize:es,direction:At,fixedInfoList:Vs,isSticky:Wr,supportSticky:ea,componentWidth:Ar,fixHeader:ai,fixColumn:Rr,horizonScroll:ti,tableLayout:Is,rowClassName:bt,expandedRowClassName:Dr.expandedRowClassName,expandIcon:br,expandableType:Vr,expandRowByClick:Dr.expandRowByClick,expandedRowRender:Dr.expandedRowRender,onTriggerExpand:Gn,expandIconColumnIndex:Dr.expandIconColumnIndex,indentSize:Dr.indentSize,allColumnsFixedLeft:rr.every(function(Lr){return Lr.fixed==="left"}),emptyNode:na,columns:ir,flattenColumns:rr,onColumnResize:cs,hoverStartRow:Mr,hoverEndRow:Jr,onHover:Gr,rowExpandable:Dr.rowExpandable,onRow:Hn,getRowKey:Jn,expandedKeys:Er,childrenColumnName:Cr,rowHoverable:an}},[Fr,ut,Cn,es,At,Vs,Wr,ea,Ar,ai,Rr,ti,Is,bt,Dr.expandedRowClassName,br,Vr,Dr.expandRowByClick,Dr.expandedRowRender,Gn,Dr.expandIconColumnIndex,Dr.indentSize,na,ir,rr,cs,Mr,Jr,Gr,Dr.rowExpandable,Hn,Jn,Er,Cr,an]);return d.createElement(w.Provider,{value:Ws},js)}var Dt=d.forwardRef(at);function Nt(Me){return le(Dt,Me)}var nn=Nt();nn.EXPAND_COLUMN=h.w,nn.INTERNAL_HOOKS=h.R,nn.Column=tn,nn.ColumnGroup=un,nn.Summary=be;var it=nn,on=_(48911),_n=te(null),An=te(null);function Tn(Me,Re,ke){var ut=Re||1;return ke[Me+ut]-(ke[Me]||0)}function Xn(Me){var Re=Me.rowInfo,ke=Me.column,ut=Me.colIndex,gt=Me.indent,bt=Me.index,zt=Me.component,Ut=Me.renderIndex,wt=Me.record,vt=Me.style,Et=Me.className,At=Me.inverse,Kt=Me.getHeight,en=ke.render,mn=ke.dataIndex,Bn=ke.className,hn=ke.width,xn=o(An,["columnsOffset"]),On=xn.columnsOffset,kn=Ce(Re,ke,ut,gt,bt),Hn=kn.key,Sn=kn.fixedInfo,Wn=kn.appendCellNode,zn=kn.additionalCellProps,tr=zn.style,Yn=zn.colSpan,qn=Yn===void 0?1:Yn,ur=zn.rowSpan,yt=ur===void 0?1:ur,Yt=ut-1,an=Tn(Yt,qn,On),Wt=qn>1?hn-an:0,gn=(0,ve.Z)((0,ve.Z)((0,ve.Z)({},tr),vt),{},{flex:"0 0 ".concat(an,"px"),width:"".concat(an,"px"),marginRight:Wt,pointerEvents:"auto"}),Kn=d.useMemo(function(){return At?yt<=1:qn===0||yt===0||yt>1},[yt,qn,At]);Kn?gn.visibility="hidden":At&&(gn.height=Kt==null?void 0:Kt(yt));var Cn=Kn?function(){return null}:en,Jn={};return(yt===0||qn===0)&&(Jn.rowSpan=1,Jn.colSpan=1),d.createElement(It,(0,g.Z)({className:U()(Bn,Et),ellipsis:ke.ellipsis,align:ke.align,scope:ke.rowScope,component:zt,prefixCls:Re.prefixCls,key:Hn,record:wt,index:bt,renderIndex:Ut,dataIndex:mn,render:Cn,shouldCellUpdate:ke.shouldCellUpdate},Sn,{appendNode:Wn,additionalProps:(0,ve.Z)((0,ve.Z)({},zn),{},{style:gn},Jn)}))}var bn=Xn,Zn=["data","index","className","rowKey","style","extra","getHeight"],Nn=d.forwardRef(function(Me,Re){var ke=Me.data,ut=Me.index,gt=Me.className,bt=Me.rowKey,zt=Me.style,Ut=Me.extra,wt=Me.getHeight,vt=(0,we.Z)(Me,Zn),Et=ke.record,At=ke.indent,Kt=ke.index,en=o(w,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),mn=en.scrollX,Bn=en.flattenColumns,hn=en.prefixCls,xn=en.fixColumn,On=en.componentWidth,kn=o(_n,["getComponent"]),Hn=kn.getComponent,Sn=et(Et,bt,ut,At),Wn=Hn(["body","row"],"div"),zn=Hn(["body","cell"],"div"),tr=Sn.rowSupportExpand,Yn=Sn.expanded,qn=Sn.rowProps,ur=Sn.expandedRowRender,yt=Sn.expandedRowClassName,Yt;if(tr&&Yn){var an=ur(Et,ut,At+1,Yn),Wt=Ie(yt,Et,ut,At),gn={};xn&&(gn={style:(0,he.Z)({},"--virtual-width","".concat(On,"px"))});var Kn="".concat(hn,"-expanded-row-cell");Yt=d.createElement(Wn,{className:U()("".concat(hn,"-expanded-row"),"".concat(hn,"-expanded-row-level-").concat(At+1),Wt)},d.createElement(It,{component:zn,prefixCls:hn,className:U()(Kn,(0,he.Z)({},"".concat(Kn,"-fixed"),xn)),additionalProps:gn},an))}var Cn=(0,ve.Z)((0,ve.Z)({},zt),{},{width:mn});Ut&&(Cn.position="absolute",Cn.pointerEvents="none");var Jn=d.createElement(Wn,(0,g.Z)({},qn,vt,{"data-row-key":bt,ref:tr?null:Re,className:U()(gt,"".concat(hn,"-row"),qn==null?void 0:qn.className,(0,he.Z)({},"".concat(hn,"-row-extra"),Ut)),style:(0,ve.Z)((0,ve.Z)({},Cn),qn==null?void 0:qn.style)}),Bn.map(function(or,xr){return d.createElement(bn,{key:xr,component:zn,rowInfo:Sn,column:or,colIndex:xr,indent:At,index:ut,renderIndex:Kt,record:Et,inverse:Ut,getHeight:wt})}));return tr?d.createElement("div",{ref:Re},Jn,Yt):Jn}),Mn=F(Nn),Dn=Mn,yn=d.forwardRef(function(Me,Re){var ke=Me.data,ut=Me.onScroll,gt=o(w,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),bt=gt.flattenColumns,zt=gt.onColumnResize,Ut=gt.getRowKey,wt=gt.expandedKeys,vt=gt.prefixCls,Et=gt.childrenColumnName,At=gt.scrollX,Kt=gt.direction,en=o(_n),mn=en.sticky,Bn=en.scrollY,hn=en.listItemHeight,xn=en.getComponent,On=en.onScroll,kn=d.useRef(),Hn=$e(ke,Et,wt,Ut),Sn=d.useMemo(function(){var Yt=0;return bt.map(function(an){var Wt=an.width,gn=an.key;return Yt+=Wt,[gn,Wt,Yt]})},[bt]),Wn=d.useMemo(function(){return Sn.map(function(Yt){return Yt[2]})},[Sn]);d.useEffect(function(){Sn.forEach(function(Yt){var an=(0,ue.Z)(Yt,2),Wt=an[0],gn=an[1];zt(Wt,gn)})},[Sn]),d.useImperativeHandle(Re,function(){var Yt,an={scrollTo:function(gn){var Kn;(Kn=kn.current)===null||Kn===void 0||Kn.scrollTo(gn)},nativeElement:(Yt=kn.current)===null||Yt===void 0?void 0:Yt.nativeElement};return Object.defineProperty(an,"scrollLeft",{get:function(){var gn;return((gn=kn.current)===null||gn===void 0?void 0:gn.getScrollInfo().x)||0},set:function(gn){var Kn;(Kn=kn.current)===null||Kn===void 0||Kn.scrollTo({left:gn})}}),an});var zn=function(an,Wt){var gn,Kn=(gn=Hn[Wt])===null||gn===void 0?void 0:gn.record,Cn=an.onCell;if(Cn){var Jn,or=Cn(Kn,Wt);return(Jn=or==null?void 0:or.rowSpan)!==null&&Jn!==void 0?Jn:1}return 1},tr=function(an){var Wt=an.start,gn=an.end,Kn=an.getSize,Cn=an.offsetY;if(gn<0)return null;for(var Jn=bt.filter(function(br){return zn(br,Wt)===0}),or=Wt,xr=function(Cr){if(Jn=Jn.filter(function(Gn){return zn(Gn,Cr)===0}),!Jn.length)return or=Cr,1},Zr=Wt;Zr>=0&&!xr(Zr);Zr-=1);for(var Mr=bt.filter(function(br){return zn(br,gn)!==1}),Jr=gn,Gr=function(Cr){if(Mr=Mr.filter(function(Gn){return zn(Gn,Cr)!==1}),!Mr.length)return Jr=Math.max(Cr-1,gn),1},wr=gn;wr<Hn.length&&!Gr(wr);wr+=1);for(var _r=[],Dr=function(Cr){var Gn=Hn[Cr];if(!Gn)return 1;bt.some(function(lr){return zn(lr,Cr)>1})&&_r.push(Cr)},Vr=or;Vr<=Jr;Vr+=1)Dr(Vr);var Er=_r.map(function(br){var Cr=Hn[br],Gn=Ut(Cr.record,br),lr=function(Ar){var Ir=br+Ar-1,qr=Ut(Hn[Ir].record,Ir),Vn=Kn(Gn,qr);return Vn.bottom-Vn.top},ar=Kn(Gn);return d.createElement(Dn,{key:br,data:Cr,rowKey:Gn,index:br,style:{top:-Cn+ar.top},extra:!0,getHeight:lr})});return Er},Yn=d.useMemo(function(){return{columnsOffset:Wn}},[Wn]),qn="".concat(vt,"-tbody"),ur=xn(["body","wrapper"]),yt={};return mn&&(yt.position="sticky",yt.bottom=0,(0,oe.Z)(mn)==="object"&&mn.offsetScroll&&(yt.bottom=mn.offsetScroll)),d.createElement(An.Provider,{value:Yn},d.createElement(on.Z,{fullHeight:!1,ref:kn,prefixCls:"".concat(qn,"-virtual"),styles:{horizontalScrollBar:yt},className:qn,height:Bn,itemHeight:hn||24,data:Hn,itemKey:function(an){return Ut(an.record)},component:ur,scrollWidth:At,direction:Kt,onVirtualScroll:function(an){var Wt,gn=an.x;ut({currentTarget:(Wt=kn.current)===null||Wt===void 0?void 0:Wt.nativeElement,scrollLeft:gn})},onScroll:On,extraRender:tr},function(Yt,an,Wt){var gn=Ut(Yt.record,an);return d.createElement(Dn,{data:Yt,rowKey:gn,index:an,style:Wt.style})}))}),Ln=F(yn),pn=Ln,En=function(Re,ke){var ut=ke.ref,gt=ke.onScroll;return d.createElement(pn,{ref:ut,data:Re,onScroll:gt})};function Rn(Me,Re){var ke=Me.data,ut=Me.columns,gt=Me.scroll,bt=Me.sticky,zt=Me.prefixCls,Ut=zt===void 0?dn:zt,wt=Me.className,vt=Me.listItemHeight,Et=Me.components,At=Me.onScroll,Kt=gt||{},en=Kt.x,mn=Kt.y;typeof en!="number"&&(en=1),typeof mn!="number"&&(mn=500);var Bn=(0,Qt.zX)(function(On,kn){return(0,P.Z)(Et,On)||kn}),hn=(0,Qt.zX)(At),xn=d.useMemo(function(){return{sticky:bt,scrollY:mn,listItemHeight:vt,getComponent:Bn,onScroll:hn}},[bt,mn,vt,Bn,hn]);return d.createElement(_n.Provider,{value:xn},d.createElement(it,(0,g.Z)({},Me,{className:U()(wt,"".concat(Ut,"-virtual")),scroll:(0,ve.Z)((0,ve.Z)({},gt),{},{x:en}),components:(0,ve.Z)((0,ve.Z)({},Et),{},{body:ke!=null&&ke.length?En:void 0}),columns:ut,internalHooks:h.R,tailor:!0,ref:Re})))}var Fn=d.forwardRef(Rn);function Un(Me){return le(Fn,Me)}var jn=Un(),mr=null},54451:function(Pn,Xt,_){"use strict";_.d(Xt,{g:function(){return d},v:function(){return B}});var h=_(33885),ue=_(75931),z=_(48736),ae=["expandable"],B="RC_TABLE_INTERNAL_COL_DEFINE";function d(_e){var te=_e.expandable,o=(0,ue.Z)(_e,ae),g;return"expandable"in _e?g=(0,h.Z)((0,h.Z)({},o),te):g=o,g.showExpandColumn===!1&&(g.expandIconColumnIndex=-1),g}},29443:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return ce}});var h=_(54476),ue=_(20068),z=_(33885),ae=_(42978),B=_(76190),d=_(75931),_e=_(92310),te=_.n(_e),o=_(18929),g=_(49658),A=_(59301),p=(0,A.createContext)(null),E=_(94480),b=_(29301),L=_(6089),V=_(8654),q=_(16089),le=function(N){var Ie=N.activeTabOffset,Ce=N.horizontal,Ae=N.rtl,st=N.indicator,lt=st===void 0?{}:st,Fe=lt.size,_t=lt.align,Ht=_t===void 0?"center":_t,St=(0,A.useState)(),Bt=(0,ae.Z)(St,2),se=Bt[0],ge=Bt[1],Ee=(0,A.useRef)(),k=A.useCallback(function(pe){return typeof Fe=="function"?Fe(pe):typeof Fe=="number"?Fe:pe},[Fe]);function Y(){q.Z.cancel(Ee.current)}return(0,A.useEffect)(function(){var pe={};if(Ie)if(Ce){pe.width=k(Ie.width);var de=Ae?"right":"left";Ht==="start"&&(pe[de]=Ie[de]),Ht==="center"&&(pe[de]=Ie[de]+Ie.width/2,pe.transform=Ae?"translateX(50%)":"translateX(-50%)"),Ht==="end"&&(pe[de]=Ie[de]+Ie.width,pe.transform="translateX(-100%)")}else pe.height=k(Ie.height),Ht==="start"&&(pe.top=Ie.top),Ht==="center"&&(pe.top=Ie.top+Ie.height/2,pe.transform="translateY(-50%)"),Ht==="end"&&(pe.top=Ie.top+Ie.height,pe.transform="translateY(-100%)");return Y(),Ee.current=(0,q.Z)(function(){ge(pe)}),Y},[Ie,Ce,Ae,Ht,k]),{style:se}},F=le,H={width:0,height:0,left:0,top:0};function R(Z,N,Ie){return(0,A.useMemo)(function(){for(var Ce,Ae=new Map,st=N.get((Ce=Z[0])===null||Ce===void 0?void 0:Ce.key)||H,lt=st.left+st.width,Fe=0;Fe<Z.length;Fe+=1){var _t=Z[Fe].key,Ht=N.get(_t);if(!Ht){var St;Ht=N.get((St=Z[Fe-1])===null||St===void 0?void 0:St.key)||H}var Bt=Ae.get(_t)||(0,z.Z)({},Ht);Bt.right=lt-Bt.left-Bt.width,Ae.set(_t,Bt)}return Ae},[Z.map(function(Ce){return Ce.key}).join("_"),N,Ie])}function w(Z,N){var Ie=A.useRef(Z),Ce=A.useState({}),Ae=(0,ae.Z)(Ce,2),st=Ae[1];function lt(Fe){var _t=typeof Fe=="function"?Fe(Ie.current):Fe;_t!==Ie.current&&N(_t,Ie.current),Ie.current=_t,st({})}return[Ie.current,lt]}var Q=.1,re=.01,$=20,oe=Math.pow(.995,$);function ve(Z,N){var Ie=(0,A.useState)(),Ce=(0,ae.Z)(Ie,2),Ae=Ce[0],st=Ce[1],lt=(0,A.useState)(0),Fe=(0,ae.Z)(lt,2),_t=Fe[0],Ht=Fe[1],St=(0,A.useState)(0),Bt=(0,ae.Z)(St,2),se=Bt[0],ge=Bt[1],Ee=(0,A.useState)(),k=(0,ae.Z)(Ee,2),Y=k[0],pe=k[1],de=(0,A.useRef)();function xe(I){var K=I.touches[0],S=K.screenX,je=K.screenY;st({x:S,y:je}),window.clearInterval(de.current)}function Be(I){if(Ae){var K=I.touches[0],S=K.screenX,je=K.screenY;st({x:S,y:je});var De=S-Ae.x,Le=je-Ae.y;N(De,Le);var He=Date.now();Ht(He),ge(He-_t),pe({x:De,y:Le})}}function Ye(){if(Ae&&(st(null),pe(null),Y)){var I=Y.x/se,K=Y.y/se,S=Math.abs(I),je=Math.abs(K);if(Math.max(S,je)<Q)return;var De=I,Le=K;de.current=window.setInterval(function(){if(Math.abs(De)<re&&Math.abs(Le)<re){window.clearInterval(de.current);return}De*=oe,Le*=oe,N(De*$,Le*$)},$)}}var dt=(0,A.useRef)();function nt(I){var K=I.deltaX,S=I.deltaY,je=0,De=Math.abs(K),Le=Math.abs(S);De===Le?je=dt.current==="x"?K:S:De>Le?(je=K,dt.current="x"):(je=S,dt.current="y"),N(-je,-je)&&I.preventDefault()}var Ue=(0,A.useRef)(null);Ue.current={onTouchStart:xe,onTouchMove:Be,onTouchEnd:Ye,onWheel:nt},A.useEffect(function(){function I(De){Ue.current.onTouchStart(De)}function K(De){Ue.current.onTouchMove(De)}function S(De){Ue.current.onTouchEnd(De)}function je(De){Ue.current.onWheel(De)}return document.addEventListener("touchmove",K,{passive:!1}),document.addEventListener("touchend",S,{passive:!0}),Z.current.addEventListener("touchstart",I,{passive:!0}),Z.current.addEventListener("wheel",je,{passive:!1}),function(){document.removeEventListener("touchmove",K),document.removeEventListener("touchend",S)}},[])}var he=_(34280);function ot(Z){var N=(0,A.useState)(0),Ie=(0,ae.Z)(N,2),Ce=Ie[0],Ae=Ie[1],st=(0,A.useRef)(0),lt=(0,A.useRef)();return lt.current=Z,(0,he.o)(function(){var Fe;(Fe=lt.current)===null||Fe===void 0||Fe.call(lt)},[Ce]),function(){st.current===Ce&&(st.current+=1,Ae(st.current))}}function U(Z){var N=(0,A.useRef)([]),Ie=(0,A.useState)({}),Ce=(0,ae.Z)(Ie,2),Ae=Ce[1],st=(0,A.useRef)(typeof Z=="function"?Z():Z),lt=ot(function(){var _t=st.current;N.current.forEach(function(Ht){_t=Ht(_t)}),N.current=[],st.current=_t,Ae({})});function Fe(_t){N.current.push(_t),lt()}return[st.current,Fe]}var C={width:0,height:0,left:0,top:0,right:0};function P(Z,N,Ie,Ce,Ae,st,lt){var Fe=lt.tabs,_t=lt.tabPosition,Ht=lt.rtl,St,Bt,se;return["top","bottom"].includes(_t)?(St="width",Bt=Ht?"right":"left",se=Math.abs(Ie)):(St="height",Bt="top",se=-Ie),(0,A.useMemo)(function(){if(!Fe.length)return[0,0];for(var ge=Fe.length,Ee=ge,k=0;k<ge;k+=1){var Y=Z.get(Fe[k].key)||C;if(Math.floor(Y[Bt]+Y[St])>Math.floor(se+N)){Ee=k-1;break}}for(var pe=0,de=ge-1;de>=0;de-=1){var xe=Z.get(Fe[de].key)||C;if(xe[Bt]<se){pe=de+1;break}}return pe>=Ee?[0,0]:[pe,Ee]},[Z,N,Ce,Ae,st,se,_t,Fe.map(function(ge){return ge.key}).join("_"),Ht])}function G(Z){var N;return Z instanceof Map?(N={},Z.forEach(function(Ie,Ce){N[Ce]=Ie})):N=Z,JSON.stringify(N)}var ie="TABS_DQ";function X(Z){return String(Z).replace(/"/g,ie)}function y(Z,N,Ie,Ce){return!(!Ie||Ce||Z===!1||Z===void 0&&(N===!1||N===null))}var v=A.forwardRef(function(Z,N){var Ie=Z.prefixCls,Ce=Z.editable,Ae=Z.locale,st=Z.style;return!Ce||Ce.showAdd===!1?null:A.createElement("button",{ref:N,type:"button",className:"".concat(Ie,"-nav-add"),style:st,"aria-label":(Ae==null?void 0:Ae.addAriaLabel)||"Add tab",onClick:function(Fe){Ce.onEdit("add",{event:Fe})}},Ce.addIcon||"+")}),O=v,me=A.forwardRef(function(Z,N){var Ie=Z.position,Ce=Z.prefixCls,Ae=Z.extra;if(!Ae)return null;var st,lt={};return(0,B.Z)(Ae)==="object"&&!A.isValidElement(Ae)?lt=Ae:lt.right=Ae,Ie==="right"&&(st=lt.right),Ie==="left"&&(st=lt.left),st?A.createElement("div",{className:"".concat(Ce,"-extra-content"),ref:N},st):null}),Qe=me,rt=_(96478),Ct=_(28321),Rt=_(10228),Vt=A.forwardRef(function(Z,N){var Ie=Z.prefixCls,Ce=Z.id,Ae=Z.tabs,st=Z.locale,lt=Z.mobile,Fe=Z.more,_t=Fe===void 0?{}:Fe,Ht=Z.style,St=Z.className,Bt=Z.editable,se=Z.tabBarGutter,ge=Z.rtl,Ee=Z.removeAriaLabel,k=Z.onTabClick,Y=Z.getPopupContainer,pe=Z.popupClassName,de=(0,A.useState)(!1),xe=(0,ae.Z)(de,2),Be=xe[0],Ye=xe[1],dt=(0,A.useState)(null),nt=(0,ae.Z)(dt,2),Ue=nt[0],I=nt[1],K=_t.icon,S=K===void 0?"More":K,je="".concat(Ce,"-more-popup"),De="".concat(Ie,"-dropdown"),Le=Ue!==null?"".concat(je,"-").concat(Ue):null,He=st==null?void 0:st.dropdownAriaLabel;function Ge(pt,mt){pt.preventDefault(),pt.stopPropagation(),Bt.onEdit("remove",{key:mt,event:pt})}var ft=A.createElement(Ct.ZP,{onClick:function(mt){var Ot=mt.key,xt=mt.domEvent;k(Ot,xt),Ye(!1)},prefixCls:"".concat(De,"-menu"),id:je,tabIndex:-1,role:"listbox","aria-activedescendant":Le,selectedKeys:[Ue],"aria-label":He!==void 0?He:"expanded dropdown"},Ae.map(function(pt){var mt=pt.closable,Ot=pt.disabled,xt=pt.closeIcon,Tt=pt.key,Zt=pt.label,tn=y(mt,xt,Bt,Ot);return A.createElement(Ct.sN,{key:Tt,id:"".concat(je,"-").concat(Tt),role:"option","aria-controls":Ce&&"".concat(Ce,"-panel-").concat(Tt),disabled:Ot},A.createElement("span",null,Zt),tn&&A.createElement("button",{type:"button","aria-label":Ee||"remove",tabIndex:0,className:"".concat(De,"-menu-item-remove"),onClick:function(un){un.stopPropagation(),Ge(un,Tt)}},xt||Bt.removeIcon||"\xD7"))}));function kt(pt){for(var mt=Ae.filter(function(tn){return!tn.disabled}),Ot=mt.findIndex(function(tn){return tn.key===Ue})||0,xt=mt.length,Tt=0;Tt<xt;Tt+=1){Ot=(Ot+pt+xt)%xt;var Zt=mt[Ot];if(!Zt.disabled){I(Zt.key);return}}}function Mt(pt){var mt=pt.which;if(!Be){[Rt.Z.DOWN,Rt.Z.SPACE,Rt.Z.ENTER].includes(mt)&&(Ye(!0),pt.preventDefault());return}switch(mt){case Rt.Z.UP:kt(-1),pt.preventDefault();break;case Rt.Z.DOWN:kt(1),pt.preventDefault();break;case Rt.Z.ESC:Ye(!1);break;case Rt.Z.SPACE:case Rt.Z.ENTER:Ue!==null&&k(Ue,pt);break}}(0,A.useEffect)(function(){var pt=document.getElementById(Le);pt&&pt.scrollIntoView&&pt.scrollIntoView(!1)},[Ue]),(0,A.useEffect)(function(){Be||I(null)},[Be]);var fn=(0,ue.Z)({},ge?"marginRight":"marginLeft",se);Ae.length||(fn.visibility="hidden",fn.order=1);var Pe=te()((0,ue.Z)({},"".concat(De,"-rtl"),ge)),Te=lt?null:A.createElement(rt.Z,(0,h.Z)({prefixCls:De,overlay:ft,visible:Ae.length?Be:!1,onVisibleChange:Ye,overlayClassName:te()(Pe,pe),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Y},_t),A.createElement("button",{type:"button",className:"".concat(Ie,"-nav-more"),style:fn,"aria-haspopup":"listbox","aria-controls":je,id:"".concat(Ce,"-more"),"aria-expanded":Be,onKeyDown:Mt},S));return A.createElement("div",{className:te()("".concat(Ie,"-nav-operations"),St),style:Ht,ref:N},Te,A.createElement(O,{prefixCls:Ie,locale:st,editable:Bt}))}),Qt=A.memo(Vt,function(Z,N){return N.tabMoving}),Ve=function(N){var Ie=N.prefixCls,Ce=N.id,Ae=N.active,st=N.focus,lt=N.tab,Fe=lt.key,_t=lt.label,Ht=lt.disabled,St=lt.closeIcon,Bt=lt.icon,se=N.closable,ge=N.renderWrapper,Ee=N.removeAriaLabel,k=N.editable,Y=N.onClick,pe=N.onFocus,de=N.onBlur,xe=N.onKeyDown,Be=N.onMouseDown,Ye=N.onMouseUp,dt=N.style,nt=N.tabCount,Ue=N.currentPosition,I="".concat(Ie,"-tab"),K=y(se,St,k,Ht);function S(Ge){Ht||Y(Ge)}function je(Ge){Ge.preventDefault(),Ge.stopPropagation(),k.onEdit("remove",{key:Fe,event:Ge})}var De=A.useMemo(function(){return Bt&&typeof _t=="string"?A.createElement("span",null,_t):_t},[_t,Bt]),Le=A.useRef(null);A.useEffect(function(){st&&Le.current&&Le.current.focus()},[st]);var He=A.createElement("div",{key:Fe,"data-node-key":X(Fe),className:te()(I,(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(I,"-with-remove"),K),"".concat(I,"-active"),Ae),"".concat(I,"-disabled"),Ht),"".concat(I,"-focus"),st)),style:dt,onClick:S},A.createElement("div",{ref:Le,role:"tab","aria-selected":Ae,id:Ce&&"".concat(Ce,"-tab-").concat(Fe),className:"".concat(I,"-btn"),"aria-controls":Ce&&"".concat(Ce,"-panel-").concat(Fe),"aria-disabled":Ht,tabIndex:Ht?null:Ae?0:-1,onClick:function(ft){ft.stopPropagation(),S(ft)},onKeyDown:xe,onMouseDown:Be,onMouseUp:Ye,onFocus:pe,onBlur:de},st&&A.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(Ue," of ").concat(nt)),Bt&&A.createElement("span",{className:"".concat(I,"-icon")},Bt),_t&&De),K&&A.createElement("button",{type:"button",role:"tab","aria-label":Ee||"remove",tabIndex:Ae?0:-1,className:"".concat(I,"-remove"),onClick:function(ft){ft.stopPropagation(),je(ft)}},St||k.removeIcon||"\xD7"));return ge?ge(He):He},$t=Ve,It=function(N,Ie){var Ce=N.offsetWidth,Ae=N.offsetHeight,st=N.offsetTop,lt=N.offsetLeft,Fe=N.getBoundingClientRect(),_t=Fe.width,Ht=Fe.height,St=Fe.left,Bt=Fe.top;return Math.abs(_t-Ce)<1?[_t,Ht,St-Ie.left,Bt-Ie.top]:[Ce,Ae,lt,st]},sn=function(N){var Ie=N.current||{},Ce=Ie.offsetWidth,Ae=Ce===void 0?0:Ce,st=Ie.offsetHeight,lt=st===void 0?0:st;if(N.current){var Fe=N.current.getBoundingClientRect(),_t=Fe.width,Ht=Fe.height;if(Math.abs(_t-Ae)<1)return[_t,Ht]}return[Ae,lt]},qe=function(N,Ie){return N[Ie?0:1]},ht=A.forwardRef(function(Z,N){var Ie=Z.className,Ce=Z.style,Ae=Z.id,st=Z.animated,lt=Z.activeKey,Fe=Z.rtl,_t=Z.extra,Ht=Z.editable,St=Z.locale,Bt=Z.tabPosition,se=Z.tabBarGutter,ge=Z.children,Ee=Z.onTabClick,k=Z.onTabScroll,Y=Z.indicator,pe=A.useContext(p),de=pe.prefixCls,xe=pe.tabs,Be=(0,A.useRef)(null),Ye=(0,A.useRef)(null),dt=(0,A.useRef)(null),nt=(0,A.useRef)(null),Ue=(0,A.useRef)(null),I=(0,A.useRef)(null),K=(0,A.useRef)(null),S=Bt==="top"||Bt==="bottom",je=w(0,function(an,Wt){S&&k&&k({direction:an>Wt?"left":"right"})}),De=(0,ae.Z)(je,2),Le=De[0],He=De[1],Ge=w(0,function(an,Wt){!S&&k&&k({direction:an>Wt?"top":"bottom"})}),ft=(0,ae.Z)(Ge,2),kt=ft[0],Mt=ft[1],fn=(0,A.useState)([0,0]),Pe=(0,ae.Z)(fn,2),Te=Pe[0],pt=Pe[1],mt=(0,A.useState)([0,0]),Ot=(0,ae.Z)(mt,2),xt=Ot[0],Tt=Ot[1],Zt=(0,A.useState)([0,0]),tn=(0,ae.Z)(Zt,2),Ft=tn[0],un=tn[1],dn=(0,A.useState)([0,0]),qt=(0,ae.Z)(dn,2),Pt=qt[0],Ze=qt[1],at=U(new Map),Dt=(0,ae.Z)(at,2),Nt=Dt[0],nn=Dt[1],it=R(xe,Nt,xt[0]),on=qe(Te,S),_n=qe(xt,S),An=qe(Ft,S),Tn=qe(Pt,S),Xn=Math.floor(on)<Math.floor(_n+An),bn=Xn?on-Tn:on-An,Zn="".concat(de,"-nav-operations-hidden"),Nn=0,Mn=0;S&&Fe?(Nn=0,Mn=Math.max(0,_n-bn)):(Nn=Math.min(0,bn-_n),Mn=0);function Dn(an){return an<Nn?Nn:an>Mn?Mn:an}var yn=(0,A.useRef)(null),Ln=(0,A.useState)(),pn=(0,ae.Z)(Ln,2),En=pn[0],Rn=pn[1];function Fn(){Rn(Date.now())}function Un(){yn.current&&clearTimeout(yn.current)}ve(nt,function(an,Wt){function gn(Kn,Cn){Kn(function(Jn){var or=Dn(Jn+Cn);return or})}return Xn?(S?gn(He,an):gn(Mt,Wt),Un(),Fn(),!0):!1}),(0,A.useEffect)(function(){return Un(),En&&(yn.current=setTimeout(function(){Rn(0)},100)),Un},[En]);var jn=P(it,bn,S?Le:kt,_n,An,Tn,(0,z.Z)((0,z.Z)({},Z),{},{tabs:xe})),mr=(0,ae.Z)(jn,2),Me=mr[0],Re=mr[1],ke=(0,L.Z)(function(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lt,Wt=it.get(an)||{width:0,height:0,left:0,right:0,top:0};if(S){var gn=Le;Fe?Wt.right<Le?gn=Wt.right:Wt.right+Wt.width>Le+bn&&(gn=Wt.right+Wt.width-bn):Wt.left<-Le?gn=-Wt.left:Wt.left+Wt.width>-Le+bn&&(gn=-(Wt.left+Wt.width-bn)),Mt(0),He(Dn(gn))}else{var Kn=kt;Wt.top<-kt?Kn=-Wt.top:Wt.top+Wt.height>-kt+bn&&(Kn=-(Wt.top+Wt.height-bn)),He(0),Mt(Dn(Kn))}}),ut=(0,A.useState)(),gt=(0,ae.Z)(ut,2),bt=gt[0],zt=gt[1],Ut=(0,A.useState)(!1),wt=(0,ae.Z)(Ut,2),vt=wt[0],Et=wt[1],At=xe.filter(function(an){return!an.disabled}).map(function(an){return an.key}),Kt=function(Wt){var gn=At.indexOf(bt||lt),Kn=At.length,Cn=(gn+Wt+Kn)%Kn,Jn=At[Cn];zt(Jn)},en=function(Wt){var gn=Wt.code,Kn=Fe&&S,Cn=At[0],Jn=At[At.length-1];switch(gn){case"ArrowLeft":{S&&Kt(Kn?1:-1);break}case"ArrowRight":{S&&Kt(Kn?-1:1);break}case"ArrowUp":{Wt.preventDefault(),S||Kt(-1);break}case"ArrowDown":{Wt.preventDefault(),S||Kt(1);break}case"Home":{Wt.preventDefault(),zt(Cn);break}case"End":{Wt.preventDefault(),zt(Jn);break}case"Enter":case"Space":{Wt.preventDefault(),Ee(lt,Wt);break}case"Backspace":case"Delete":{var or=At.indexOf(bt),xr=xe.find(function(Mr){return Mr.key===bt}),Zr=y(xr==null?void 0:xr.closable,xr==null?void 0:xr.closeIcon,Ht,xr==null?void 0:xr.disabled);Zr&&(Wt.preventDefault(),Wt.stopPropagation(),Ht.onEdit("remove",{key:bt,event:Wt}),or===At.length-1?Kt(-1):Kt(1));break}}},mn={};S?mn[Fe?"marginRight":"marginLeft"]=se:mn.marginTop=se;var Bn=xe.map(function(an,Wt){var gn=an.key;return A.createElement($t,{id:Ae,prefixCls:de,key:gn,tab:an,style:Wt===0?void 0:mn,closable:an.closable,editable:Ht,active:gn===lt,focus:gn===bt,renderWrapper:ge,removeAriaLabel:St==null?void 0:St.removeAriaLabel,tabCount:At.length,currentPosition:Wt+1,onClick:function(Cn){Ee(gn,Cn)},onKeyDown:en,onFocus:function(){vt||zt(gn),ke(gn),Fn(),nt.current&&(Fe||(nt.current.scrollLeft=0),nt.current.scrollTop=0)},onBlur:function(){zt(void 0)},onMouseDown:function(){Et(!0)},onMouseUp:function(){Et(!1)}})}),hn=function(){return nn(function(){var Wt,gn=new Map,Kn=(Wt=Ue.current)===null||Wt===void 0?void 0:Wt.getBoundingClientRect();return xe.forEach(function(Cn){var Jn,or=Cn.key,xr=(Jn=Ue.current)===null||Jn===void 0?void 0:Jn.querySelector('[data-node-key="'.concat(X(or),'"]'));if(xr){var Zr=It(xr,Kn),Mr=(0,ae.Z)(Zr,4),Jr=Mr[0],Gr=Mr[1],wr=Mr[2],_r=Mr[3];gn.set(or,{width:Jr,height:Gr,left:wr,top:_r})}}),gn})};(0,A.useEffect)(function(){hn()},[xe.map(function(an){return an.key}).join("_")]);var xn=ot(function(){var an=sn(Be),Wt=sn(Ye),gn=sn(dt);pt([an[0]-Wt[0]-gn[0],an[1]-Wt[1]-gn[1]]);var Kn=sn(K);un(Kn);var Cn=sn(I);Ze(Cn);var Jn=sn(Ue);Tt([Jn[0]-Kn[0],Jn[1]-Kn[1]]),hn()}),On=xe.slice(0,Me),kn=xe.slice(Re+1),Hn=[].concat((0,E.Z)(On),(0,E.Z)(kn)),Sn=it.get(lt),Wn=F({activeTabOffset:Sn,horizontal:S,indicator:Y,rtl:Fe}),zn=Wn.style;(0,A.useEffect)(function(){ke()},[lt,Nn,Mn,G(Sn),G(it),S]),(0,A.useEffect)(function(){xn()},[Fe]);var tr=!!Hn.length,Yn="".concat(de,"-nav-wrap"),qn,ur,yt,Yt;return S?Fe?(ur=Le>0,qn=Le!==Mn):(qn=Le<0,ur=Le!==Nn):(yt=kt<0,Yt=kt!==Nn),A.createElement(b.Z,{onResize:xn},A.createElement("div",{ref:(0,V.x1)(N,Be),role:"tablist","aria-orientation":S?"horizontal":"vertical",className:te()("".concat(de,"-nav"),Ie),style:Ce,onKeyDown:function(){Fn()}},A.createElement(Qe,{ref:Ye,position:"left",extra:_t,prefixCls:de}),A.createElement(b.Z,{onResize:xn},A.createElement("div",{className:te()(Yn,(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Yn,"-ping-left"),qn),"".concat(Yn,"-ping-right"),ur),"".concat(Yn,"-ping-top"),yt),"".concat(Yn,"-ping-bottom"),Yt)),ref:nt},A.createElement(b.Z,{onResize:xn},A.createElement("div",{ref:Ue,className:"".concat(de,"-nav-list"),style:{transform:"translate(".concat(Le,"px, ").concat(kt,"px)"),transition:En?"none":void 0}},Bn,A.createElement(O,{ref:K,prefixCls:de,locale:St,editable:Ht,style:(0,z.Z)((0,z.Z)({},Bn.length===0?void 0:mn),{},{visibility:tr?"hidden":null})}),A.createElement("div",{className:te()("".concat(de,"-ink-bar"),(0,ue.Z)({},"".concat(de,"-ink-bar-animated"),st.inkBar)),style:zn}))))),A.createElement(Qt,(0,h.Z)({},Z,{removeAriaLabel:St==null?void 0:St.removeAriaLabel,ref:I,prefixCls:de,tabs:Hn,className:!tr&&Zn,tabMoving:!!En})),A.createElement(Qe,{ref:dt,position:"right",extra:_t,prefixCls:de})))}),Oe=ht,we=A.forwardRef(function(Z,N){var Ie=Z.prefixCls,Ce=Z.className,Ae=Z.style,st=Z.id,lt=Z.active,Fe=Z.tabKey,_t=Z.children;return A.createElement("div",{id:st&&"".concat(st,"-panel-").concat(Fe),role:"tabpanel",tabIndex:lt?0:-1,"aria-labelledby":st&&"".concat(st,"-tab-").concat(Fe),"aria-hidden":!lt,style:Ae,className:te()(Ie,lt&&"".concat(Ie,"-active"),Ce),ref:N},_t)}),j=we,ze=["renderTabBar"],Xe=["label","key"],J=function(N){var Ie=N.renderTabBar,Ce=(0,d.Z)(N,ze),Ae=A.useContext(p),st=Ae.tabs;if(Ie){var lt=(0,z.Z)((0,z.Z)({},Ce),{},{panes:st.map(function(Fe){var _t=Fe.label,Ht=Fe.key,St=(0,d.Z)(Fe,Xe);return A.createElement(j,(0,h.Z)({tab:_t,key:Ht,tabKey:Ht},St))})});return Ie(lt,Oe)}return A.createElement(Oe,Ce)},M=J,Se=_(77900),be=["key","forceRender","style","className","destroyInactiveTabPane"],W=function(N){var Ie=N.id,Ce=N.activeKey,Ae=N.animated,st=N.tabPosition,lt=N.destroyInactiveTabPane,Fe=A.useContext(p),_t=Fe.prefixCls,Ht=Fe.tabs,St=Ae.tabPane,Bt="".concat(_t,"-tabpane");return A.createElement("div",{className:te()("".concat(_t,"-content-holder"))},A.createElement("div",{className:te()("".concat(_t,"-content"),"".concat(_t,"-content-").concat(st),(0,ue.Z)({},"".concat(_t,"-content-animated"),St))},Ht.map(function(se){var ge=se.key,Ee=se.forceRender,k=se.style,Y=se.className,pe=se.destroyInactiveTabPane,de=(0,d.Z)(se,be),xe=ge===Ce;return A.createElement(Se.default,(0,h.Z)({key:ge,visible:xe,forceRender:Ee,removeOnLeave:!!(lt||pe),leavedClassName:"".concat(Bt,"-hidden")},Ae.tabPaneMotion),function(Be,Ye){var dt=Be.style,nt=Be.className;return A.createElement(j,(0,h.Z)({},de,{prefixCls:Bt,id:Ie,tabKey:ge,animated:St,active:xe,style:(0,z.Z)((0,z.Z)({},k),dt),className:te()(Y,nt),ref:Ye}))})})))},fe=W,ye=_(48736);function tt(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},N;return Z===!1?N={inkBar:!1,tabPane:!1}:Z===!0?N={inkBar:!0,tabPane:!1}:N=(0,z.Z)({inkBar:!0},(0,B.Z)(Z)==="object"?Z:{}),N.tabPaneMotion&&N.tabPane===void 0&&(N.tabPane=!0),!N.tabPaneMotion&&N.tabPane&&(N.tabPane=!1),N}var We=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],$e=0,et=A.forwardRef(function(Z,N){var Ie=Z.id,Ce=Z.prefixCls,Ae=Ce===void 0?"rc-tabs":Ce,st=Z.className,lt=Z.items,Fe=Z.direction,_t=Z.activeKey,Ht=Z.defaultActiveKey,St=Z.editable,Bt=Z.animated,se=Z.tabPosition,ge=se===void 0?"top":se,Ee=Z.tabBarGutter,k=Z.tabBarStyle,Y=Z.tabBarExtraContent,pe=Z.locale,de=Z.more,xe=Z.destroyInactiveTabPane,Be=Z.renderTabBar,Ye=Z.onChange,dt=Z.onTabClick,nt=Z.onTabScroll,Ue=Z.getPopupContainer,I=Z.popupClassName,K=Z.indicator,S=(0,d.Z)(Z,We),je=A.useMemo(function(){return(lt||[]).filter(function(Pt){return Pt&&(0,B.Z)(Pt)==="object"&&"key"in Pt})},[lt]),De=Fe==="rtl",Le=tt(Bt),He=(0,A.useState)(!1),Ge=(0,ae.Z)(He,2),ft=Ge[0],kt=Ge[1];(0,A.useEffect)(function(){kt((0,g.Z)())},[]);var Mt=(0,o.Z)(function(){var Pt;return(Pt=je[0])===null||Pt===void 0?void 0:Pt.key},{value:_t,defaultValue:Ht}),fn=(0,ae.Z)(Mt,2),Pe=fn[0],Te=fn[1],pt=(0,A.useState)(function(){return je.findIndex(function(Pt){return Pt.key===Pe})}),mt=(0,ae.Z)(pt,2),Ot=mt[0],xt=mt[1];(0,A.useEffect)(function(){var Pt=je.findIndex(function(at){return at.key===Pe});if(Pt===-1){var Ze;Pt=Math.max(0,Math.min(Ot,je.length-1)),Te((Ze=je[Pt])===null||Ze===void 0?void 0:Ze.key)}xt(Pt)},[je.map(function(Pt){return Pt.key}).join("_"),Pe,Ot]);var Tt=(0,o.Z)(null,{value:Ie}),Zt=(0,ae.Z)(Tt,2),tn=Zt[0],Ft=Zt[1];(0,A.useEffect)(function(){Ie||(Ft("rc-tabs-".concat($e)),$e+=1)},[]);function un(Pt,Ze){dt==null||dt(Pt,Ze);var at=Pt!==Pe;Te(Pt),at&&(Ye==null||Ye(Pt))}var dn={id:tn,activeKey:Pe,animated:Le,tabPosition:ge,rtl:De,mobile:ft},qt=(0,z.Z)((0,z.Z)({},dn),{},{editable:St,locale:pe,more:de,tabBarGutter:Ee,onTabClick:un,onTabScroll:nt,extra:Y,style:k,panes:null,getPopupContainer:Ue,popupClassName:I,indicator:K});return A.createElement(p.Provider,{value:{tabs:je,prefixCls:Ae}},A.createElement("div",(0,h.Z)({ref:N,id:Ie,className:te()(Ae,"".concat(Ae,"-").concat(ge),(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Ae,"-mobile"),ft),"".concat(Ae,"-editable"),St),"".concat(Ae,"-rtl"),De),st)},S),A.createElement(M,(0,h.Z)({},qt,{renderTabBar:Be})),A.createElement(fe,(0,h.Z)({destroyInactiveTabPane:xe},dn,{animated:Le}))))}),ct=et,ce=ct},22711:function(Pn,Xt,_){"use strict";_.r(Xt),_.d(Xt,{ResizableTextArea:function(){return ot},default:function(){return G}});var h=_(54476),ue=_(20068),z=_(33885),ae=_(94480),B=_(42978),d=_(75931),_e=_(92310),te=_.n(_e),o=_(36901),g=_(66003),A=_(30292),p=_(18929),E=_(59301),b=_(76190),L=_(29301),V=_(34280),q=_(16089),le=`
|
|
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;
|
|
`,F=["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"],H={},R;function w(ie){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=ie.getAttribute("id")||ie.getAttribute("data-reactid")||ie.getAttribute("name");if(X&&H[y])return H[y];var v=window.getComputedStyle(ie),O=v.getPropertyValue("box-sizing")||v.getPropertyValue("-moz-box-sizing")||v.getPropertyValue("-webkit-box-sizing"),me=parseFloat(v.getPropertyValue("padding-bottom"))+parseFloat(v.getPropertyValue("padding-top")),Qe=parseFloat(v.getPropertyValue("border-bottom-width"))+parseFloat(v.getPropertyValue("border-top-width")),rt=F.map(function(Rt){return"".concat(Rt,":").concat(v.getPropertyValue(Rt))}).join(";"),Ct={sizingStyle:rt,paddingSize:me,borderSize:Qe,boxSizing:O};return X&&y&&(H[y]=Ct),Ct}function Q(ie){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=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)),ie.getAttribute("wrap")?R.setAttribute("wrap",ie.getAttribute("wrap")):R.removeAttribute("wrap");var O=w(ie,X),me=O.paddingSize,Qe=O.borderSize,rt=O.boxSizing,Ct=O.sizingStyle;R.setAttribute("style","".concat(Ct,";").concat(le)),R.value=ie.value||ie.placeholder||"";var Rt=void 0,Vt=void 0,Qt,Ve=R.scrollHeight;if(rt==="border-box"?Ve+=Qe:rt==="content-box"&&(Ve-=me),y!==null||v!==null){R.value=" ";var $t=R.scrollHeight-me;y!==null&&(Rt=$t*y,rt==="border-box"&&(Rt=Rt+me+Qe),Ve=Math.max(Rt,Ve)),v!==null&&(Vt=$t*v,rt==="border-box"&&(Vt=Vt+me+Qe),Qt=Ve>Vt?"":"hidden",Ve=Math.min(Vt,Ve))}var It={height:Ve,overflowY:Qt,resize:"none"};return Rt&&(It.minHeight=Rt),Vt&&(It.maxHeight=Vt),It}var re=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$=0,oe=1,ve=2,he=E.forwardRef(function(ie,X){var y=ie,v=y.prefixCls,O=y.defaultValue,me=y.value,Qe=y.autoSize,rt=y.onResize,Ct=y.className,Rt=y.style,Vt=y.disabled,Qt=y.onChange,Ve=y.onInternalAutoSize,$t=(0,d.Z)(y,re),It=(0,p.Z)(O,{value:me,postState:function(st){return st!=null?st:""}}),sn=(0,B.Z)(It,2),qe=sn[0],ht=sn[1],Oe=function(st){ht(st.target.value),Qt==null||Qt(st)},we=E.useRef();E.useImperativeHandle(X,function(){return{textArea:we.current}});var j=E.useMemo(function(){return Qe&&(0,b.Z)(Qe)==="object"?[Qe.minRows,Qe.maxRows]:[]},[Qe]),ze=(0,B.Z)(j,2),Xe=ze[0],J=ze[1],M=!!Qe,Se=function(){try{if(document.activeElement===we.current){var st=we.current,lt=st.selectionStart,Fe=st.selectionEnd,_t=st.scrollTop;we.current.setSelectionRange(lt,Fe),we.current.scrollTop=_t}}catch(Ht){}},be=E.useState(ve),W=(0,B.Z)(be,2),fe=W[0],ye=W[1],tt=E.useState(),We=(0,B.Z)(tt,2),$e=We[0],et=We[1],ct=function(){ye($)};(0,V.Z)(function(){M&&ct()},[me,Xe,J,M]),(0,V.Z)(function(){if(fe===$)ye(oe);else if(fe===oe){var Ae=Q(we.current,!1,Xe,J);ye(ve),et(Ae)}else Se()},[fe]);var ce=E.useRef(),Z=function(){q.Z.cancel(ce.current)},N=function(st){fe===ve&&(rt==null||rt(st),Qe&&(Z(),ce.current=(0,q.Z)(function(){ct()})))};E.useEffect(function(){return Z},[]);var Ie=M?$e:null,Ce=(0,z.Z)((0,z.Z)({},Rt),Ie);return(fe===$||fe===oe)&&(Ce.overflowY="hidden",Ce.overflowX="hidden"),E.createElement(L.Z,{onResize:N,disabled:!(Qe||rt)},E.createElement("textarea",(0,h.Z)({},$t,{ref:we,style:Ce,className:te()(v,Ct,(0,ue.Z)({},"".concat(v,"-disabled"),Vt)),disabled:Vt,value:qe,onChange:Oe})))}),ot=he,U=["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"],C=E.forwardRef(function(ie,X){var y,v=ie.defaultValue,O=ie.value,me=ie.onFocus,Qe=ie.onBlur,rt=ie.onChange,Ct=ie.allowClear,Rt=ie.maxLength,Vt=ie.onCompositionStart,Qt=ie.onCompositionEnd,Ve=ie.suffix,$t=ie.prefixCls,It=$t===void 0?"rc-textarea":$t,sn=ie.showCount,qe=ie.count,ht=ie.className,Oe=ie.style,we=ie.disabled,j=ie.hidden,ze=ie.classNames,Xe=ie.styles,J=ie.onResize,M=ie.onClear,Se=ie.onPressEnter,be=ie.readOnly,W=ie.autoSize,fe=ie.onKeyDown,ye=(0,d.Z)(ie,U),tt=(0,p.Z)(v,{value:O,defaultValue:v}),We=(0,B.Z)(tt,2),$e=We[0],et=We[1],ct=$e==null?"":String($e),ce=E.useState(!1),Z=(0,B.Z)(ce,2),N=Z[0],Ie=Z[1],Ce=E.useRef(!1),Ae=E.useState(null),st=(0,B.Z)(Ae,2),lt=st[0],Fe=st[1],_t=(0,E.useRef)(null),Ht=(0,E.useRef)(null),St=function(){var kt;return(kt=Ht.current)===null||kt===void 0?void 0:kt.textArea},Bt=function(){St().focus()};(0,E.useImperativeHandle)(X,function(){var ft;return{resizableTextArea:Ht.current,focus:Bt,blur:function(){St().blur()},nativeElement:((ft=_t.current)===null||ft===void 0?void 0:ft.nativeElement)||St()}}),(0,E.useEffect)(function(){Ie(function(ft){return!we&&ft})},[we]);var se=E.useState(null),ge=(0,B.Z)(se,2),Ee=ge[0],k=ge[1];E.useEffect(function(){if(Ee){var ft;(ft=St()).setSelectionRange.apply(ft,(0,ae.Z)(Ee))}},[Ee]);var Y=(0,g.Z)(qe,sn),pe=(y=Y.max)!==null&&y!==void 0?y:Rt,de=Number(pe)>0,xe=Y.strategy(ct),Be=!!pe&&xe>pe,Ye=function(kt,Mt){var fn=Mt;!Ce.current&&Y.exceedFormatter&&Y.max&&Y.strategy(Mt)>Y.max&&(fn=Y.exceedFormatter(Mt,{max:Y.max}),Mt!==fn&&k([St().selectionStart||0,St().selectionEnd||0])),et(fn),(0,A.rJ)(kt.currentTarget,kt,rt,fn)},dt=function(kt){Ce.current=!0,Vt==null||Vt(kt)},nt=function(kt){Ce.current=!1,Ye(kt,kt.currentTarget.value),Qt==null||Qt(kt)},Ue=function(kt){Ye(kt,kt.target.value)},I=function(kt){kt.key==="Enter"&&Se&&Se(kt),fe==null||fe(kt)},K=function(kt){Ie(!0),me==null||me(kt)},S=function(kt){Ie(!1),Qe==null||Qe(kt)},je=function(kt){et(""),Bt(),(0,A.rJ)(St(),kt,rt)},De=Ve,Le;Y.show&&(Y.showFormatter?Le=Y.showFormatter({value:ct,count:xe,maxLength:pe}):Le="".concat(xe).concat(de?" / ".concat(pe):""),De=E.createElement(E.Fragment,null,De,E.createElement("span",{className:te()("".concat(It,"-data-count"),ze==null?void 0:ze.count),style:Xe==null?void 0:Xe.count},Le)));var He=function(kt){var Mt;J==null||J(kt),(Mt=St())!==null&&Mt!==void 0&&Mt.style.height&&Fe(!0)},Ge=!W&&!sn&&!Ct;return E.createElement(o.BaseInput,{ref:_t,value:ct,allowClear:Ct,handleReset:je,suffix:De,prefixCls:It,classNames:(0,z.Z)((0,z.Z)({},ze),{},{affixWrapper:te()(ze==null?void 0:ze.affixWrapper,(0,ue.Z)((0,ue.Z)({},"".concat(It,"-show-count"),sn),"".concat(It,"-textarea-allow-clear"),Ct))}),disabled:we,focused:N,className:te()(ht,Be&&"".concat(It,"-out-of-range")),style:(0,z.Z)((0,z.Z)({},Oe),lt&&!Ge?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Le=="string"?Le:void 0}},hidden:j,readOnly:be,onClear:M},E.createElement(ot,(0,h.Z)({},ye,{autoSize:W,maxLength:Rt,onKeyDown:I,onChange:Ue,onFocus:K,onBlur:S,onCompositionStart:dt,onCompositionEnd:nt,className:te()(ze==null?void 0:ze.textarea),style:(0,z.Z)((0,z.Z)({},Xe==null?void 0:Xe.textarea),{},{resize:Oe==null?void 0:Oe.resize}),disabled:we,prefixCls:It,onResize:He,ref:Ht,readOnly:be})))}),P=C,G=P},29125:function(Pn,Xt,_){"use strict";_.d(Xt,{G:function(){return ae},Z:function(){return le}});var h=_(92310),ue=_.n(h),z=_(59301);function ae(F){var H=F.children,R=F.prefixCls,w=F.id,Q=F.overlayInnerStyle,re=F.bodyClassName,$=F.className,oe=F.style;return z.createElement("div",{className:ue()("".concat(R,"-content"),$),style:oe},z.createElement("div",{className:ue()("".concat(R,"-inner"),re),id:w,role:"tooltip",style:Q},typeof H=="function"?H():H))}var B=_(54476),d=_(33885),_e=_(75931),te=_(65030),o={shiftX:64,adjustY:1},g={adjustX:1,shiftY:!0},A=[0,0],p={left:{points:["cr","cl"],overflow:g,offset:[-4,0],targetOffset:A},right:{points:["cl","cr"],overflow:g,offset:[4,0],targetOffset:A},top:{points:["bc","tc"],overflow:o,offset:[0,-4],targetOffset:A},bottom:{points:["tc","bc"],overflow:o,offset:[0,4],targetOffset:A},topLeft:{points:["bl","tl"],overflow:o,offset:[0,-4],targetOffset:A},leftTop:{points:["tr","tl"],overflow:g,offset:[-4,0],targetOffset:A},topRight:{points:["br","tr"],overflow:o,offset:[0,-4],targetOffset:A},rightTop:{points:["tl","tr"],overflow:g,offset:[4,0],targetOffset:A},bottomRight:{points:["tr","br"],overflow:o,offset:[0,4],targetOffset:A},rightBottom:{points:["bl","br"],overflow:g,offset:[4,0],targetOffset:A},bottomLeft:{points:["tl","bl"],overflow:o,offset:[0,4],targetOffset:A},leftBottom:{points:["br","bl"],overflow:g,offset:[-4,0],targetOffset:A}},E=null,b=_(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"],V=function(H,R){var w=H.overlayClassName,Q=H.trigger,re=Q===void 0?["hover"]:Q,$=H.mouseEnterDelay,oe=$===void 0?0:$,ve=H.mouseLeaveDelay,he=ve===void 0?.1:ve,ot=H.overlayStyle,U=H.prefixCls,C=U===void 0?"rc-tooltip":U,P=H.children,G=H.onVisibleChange,ie=H.afterVisibleChange,X=H.transitionName,y=H.animation,v=H.motion,O=H.placement,me=O===void 0?"right":O,Qe=H.align,rt=Qe===void 0?{}:Qe,Ct=H.destroyTooltipOnHide,Rt=Ct===void 0?!1:Ct,Vt=H.defaultVisible,Qt=H.getTooltipContainer,Ve=H.overlayInnerStyle,$t=H.arrowContent,It=H.overlay,sn=H.id,qe=H.showArrow,ht=qe===void 0?!0:qe,Oe=H.classNames,we=H.styles,j=(0,_e.Z)(H,L),ze=(0,b.Z)(sn),Xe=(0,z.useRef)(null);(0,z.useImperativeHandle)(R,function(){return Xe.current});var J=(0,d.Z)({},j);"visible"in H&&(J.popupVisible=H.visible);var M=function(){return z.createElement(ae,{key:"content",prefixCls:C,id:ze,bodyClassName:Oe==null?void 0:Oe.body,overlayInnerStyle:(0,d.Z)((0,d.Z)({},Ve),we==null?void 0:we.body)},It)},Se=function(){var W=z.Children.only(P),fe=(W==null?void 0:W.props)||{},ye=(0,d.Z)((0,d.Z)({},fe),{},{"aria-describedby":It?ze:null});return z.cloneElement(P,ye)};return z.createElement(te.Z,(0,B.Z)({popupClassName:ue()(w,Oe==null?void 0:Oe.root),prefixCls:C,popup:M,action:re,builtinPlacements:p,popupPlacement:me,ref:Xe,popupAlign:rt,getPopupContainer:Qt,onPopupVisibleChange:G,afterPopupVisibleChange:ie,popupTransitionName:X,popupAnimation:y,popupMotion:v,defaultPopupVisible:Vt,autoDestroy:Rt,mouseLeaveDelay:he,popupStyle:(0,d.Z)((0,d.Z)({},ot),we==null?void 0:we.root),mouseEnterDelay:oe,arrow:ht},J),Se())},q=(0,z.forwardRef)(V),le=q},9940:function(Pn,Xt,_){"use strict";_.d(Xt,{Qw:function(){return sn},FJ:function(){return ht},hT:function(){return qe},OF:function(){return R},ZP:function(){return be}});var h=_(54476),ue=_(94480),z=_(33885),ae=_(42978),B=_(75931),d=_(76190),_e=_(37463),te=_(6551),o=_(34643),g=_(18929),A=_(48736),p=_(59301),E=function(W){var fe=p.useRef({valueLabels:new Map});return p.useMemo(function(){var ye=fe.current.valueLabels,tt=new Map,We=W.map(function($e){var et=$e.value,ct=$e.label,ce=ct!=null?ct:ye.get(et);return tt.set(et,ce),(0,z.Z)((0,z.Z)({},$e),{},{label:ce})});return fe.current.valueLabels=tt,[We]},[W])},b=function(fe,ye,tt,We){return p.useMemo(function(){var $e=function(Ae){return Ae.map(function(st){var lt=st.value;return lt})},et=$e(fe),ct=$e(ye),ce=et.filter(function(Ce){return!We[Ce]}),Z=et,N=ct;if(tt){var Ie=(0,o.S)(et,!0,We);Z=Ie.checkedKeys,N=Ie.halfCheckedKeys}return[Array.from(new Set([].concat((0,ue.Z)(ce),(0,ue.Z)(Z)))),N]},[fe,ye,tt,We])},L=b,V=_(34061),q=function(W,fe){return p.useMemo(function(){var ye=(0,V.I8)(W,{fieldNames:fe,initWrapper:function(We){return(0,z.Z)((0,z.Z)({},We),{},{valueEntities:new Map})},processEntity:function(We,$e){var et=We.node[fe.value];if(0)var ct;$e.valueEntities.set(et,We)}});return ye},[W,fe])},le=_(20068),F=_(11592),H=function(){return null},R=H,w=["children","value"];function Q(W){return(0,F.Z)(W).map(function(fe){if(!p.isValidElement(fe)||!fe.type)return null;var ye=fe,tt=ye.key,We=ye.props,$e=We.children,et=We.value,ct=(0,B.Z)(We,w),ce=(0,z.Z)({key:tt,value:et},ct),Z=Q($e);return Z.length&&(ce.children=Z),ce}).filter(function(fe){return fe})}function re(W){if(!W)return W;var fe=(0,z.Z)({},W);return"props"in fe||Object.defineProperty(fe,"props",{get:function(){return(0,A.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),fe}}),fe}function $(W,fe,ye,tt,We,$e){var et=null,ct=null;function ce(){function Z(N){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return N.map(function(Ae,st){var lt="".concat(Ie,"-").concat(st),Fe=Ae[$e.value],_t=ye.includes(Fe),Ht=Z(Ae[$e.children]||[],lt,_t),St=p.createElement(R,Ae,Ht.map(function(se){return se.node}));if(fe===Fe&&(et=St),_t){var Bt={pos:lt,node:St,children:Ht};return Ce||ct.push(Bt),Bt}return null}).filter(function(Ae){return Ae})}ct||(ct=[],Z(tt),ct.sort(function(N,Ie){var Ce=N.node.props.value,Ae=Ie.node.props.value,st=ye.indexOf(Ce),lt=ye.indexOf(Ae);return st-lt}))}Object.defineProperty(W,"triggerNode",{get:function(){return(0,A.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),ce(),et}}),Object.defineProperty(W,"allCheckedNodes",{get:function(){return(0,A.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),ce(),We?ct:ct.map(function(N){var Ie=N.node;return Ie})}})}var oe=function(fe,ye,tt){var We=tt.fieldNames,$e=tt.treeNodeFilterProp,et=tt.filterTreeNode,ct=We.children;return p.useMemo(function(){if(!ye||et===!1)return fe;var ce=typeof et=="function"?et:function(N,Ie){return String(Ie[$e]).toUpperCase().includes(ye.toUpperCase())},Z=function N(Ie){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ie.reduce(function(Ae,st){var lt=st[ct],Fe=Ce||ce(ye,re(st)),_t=N(lt||[],Fe);return(Fe||_t.length)&&Ae.push((0,z.Z)((0,z.Z)({},st),{},(0,le.Z)({isLeaf:void 0},ct,_t))),Ae},[])};return Z(fe)},[fe,ye,ct,$e,et])},ve=oe;function he(W){var fe=p.useRef();fe.current=W;var ye=p.useCallback(function(){return fe.current.apply(fe,arguments)},[]);return ye}function ot(W,fe){var ye=fe.id,tt=fe.pId,We=fe.rootPId,$e=new Map,et=[];return W.forEach(function(ct){var ce=ct[ye],Z=(0,z.Z)((0,z.Z)({},ct),{},{key:ct.key||ce});$e.set(ce,Z)}),$e.forEach(function(ct){var ce=ct[tt],Z=$e.get(ce);Z?(Z.children=Z.children||[],Z.children.push(ct)):(ce===We||We===null)&&et.push(ct)}),et}function U(W,fe,ye){return p.useMemo(function(){if(W){if(ye){var tt=(0,z.Z)({id:"id",pId:"pId",rootPId:null},(0,d.Z)(ye)==="object"?ye:{});return ot(W,tt)}return W}return Q(fe)},[fe,ye,W])}var C=p.createContext(null),P=C,G=_(19251),ie=_(3741),X=_(10228),y=_(80547),v=p.createContext(null),O=v,me=function(fe){return Array.isArray(fe)?fe:fe!==void 0?[fe]:[]},Qe=function(fe){var ye=fe||{},tt=ye.label,We=ye.value,$e=ye.children;return{_title:tt?[tt]:["title","label"],value:We||"value",key:We||"value",children:$e||"children"}},rt=function(fe){return!fe||fe.disabled||fe.disableCheckbox||fe.checkable===!1},Ct=function(fe,ye){var tt=[],We=function $e(et){et.forEach(function(ct){var ce=ct[ye.children];ce&&(tt.push(ct[ye.value]),$e(ce))})};return We(fe),tt},Rt=function(fe){return fe==null},Vt=_(70425),Qt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ve=function(fe,ye){var tt=(0,_e.lk)(),We=tt.prefixCls,$e=tt.multiple,et=tt.searchValue,ct=tt.toggleOpen,ce=tt.open,Z=tt.notFoundContent,N=p.useContext(O),Ie=N.virtual,Ce=N.listHeight,Ae=N.listItemHeight,st=N.listItemScrollOffset,lt=N.treeData,Fe=N.fieldNames,_t=N.onSelect,Ht=N.dropdownMatchSelectWidth,St=N.treeExpandAction,Bt=N.treeTitleRender,se=N.onPopupScroll,ge=N.leftMaxCount,Ee=N.leafCountOnly,k=N.valueEntities,Y=p.useContext(P),pe=Y.checkable,de=Y.checkedKeys,xe=Y.halfCheckedKeys,Be=Y.treeExpandedKeys,Ye=Y.treeDefaultExpandAll,dt=Y.treeDefaultExpandedKeys,nt=Y.onTreeExpand,Ue=Y.treeIcon,I=Y.showTreeIcon,K=Y.switcherIcon,S=Y.treeLine,je=Y.treeNodeFilterProp,De=Y.loadData,Le=Y.treeLoadedKeys,He=Y.treeMotion,Ge=Y.onTreeLoad,ft=Y.keyEntities,kt=p.useRef(),Mt=(0,y.Z)(function(){return lt},[ce,lt],function(Dn,yn){return yn[0]&&Dn[1]!==yn[1]}),fn=p.useMemo(function(){return pe?{checked:de,halfChecked:xe}:null},[pe,de,xe]);p.useEffect(function(){if(ce&&!$e&&de.length){var Dn;(Dn=kt.current)===null||Dn===void 0||Dn.scrollTo({key:de[0]})}},[ce]);var Pe=function(yn){yn.preventDefault()},Te=function(yn,Ln){var pn=Ln.node;pe&&rt(pn)||(_t(pn.key,{selected:!de.includes(pn.key)}),$e||ct(!1))},pt=p.useState(dt),mt=(0,ae.Z)(pt,2),Ot=mt[0],xt=mt[1],Tt=p.useState(null),Zt=(0,ae.Z)(Tt,2),tn=Zt[0],Ft=Zt[1],un=p.useMemo(function(){return Be?(0,ue.Z)(Be):et?tn:Ot},[Ot,tn,Be,et]),dn=function(yn){xt(yn),Ft(yn),nt&&nt(yn)},qt=String(et).toLowerCase(),Pt=function(yn){return qt?String(yn[je]).toLowerCase().includes(qt):!1};p.useEffect(function(){et&&Ft(Ct(lt,Fe))},[et]);var Ze=p.useState(function(){return new Map}),at=(0,ae.Z)(Ze,2),Dt=at[0],Nt=at[1];p.useEffect(function(){ge&&Nt(new Map)},[ge]);function nn(Dn){var yn=Dn[Fe.value];if(!Dt.has(yn)){var Ln=k.get(yn),pn=(Ln.children||[]).length===0;if(pn)Dt.set(yn,!1);else{var En=Ln.children.filter(function(Fn){return!Fn.node.disabled&&!Fn.node.disableCheckbox&&!de.includes(Fn.node[Fe.value])}),Rn=En.length;Dt.set(yn,Rn>ge)}}return Dt.get(yn)}var it=(0,Vt.zX)(function(Dn){var yn=Dn[Fe.value];return de.includes(yn)||ge===null?!1:ge<=0?!0:Ee&&ge?nn(Dn):!1}),on=function Dn(yn){var Ln=(0,G.Z)(yn),pn;try{for(Ln.s();!(pn=Ln.n()).done;){var En=pn.value;if(!(En.disabled||En.selectable===!1)){if(et){if(Pt(En))return En}else return En;if(En[Fe.children]){var Rn=Dn(En[Fe.children]);if(Rn)return Rn}}}}catch(Fn){Ln.e(Fn)}finally{Ln.f()}return null},_n=p.useState(null),An=(0,ae.Z)(_n,2),Tn=An[0],Xn=An[1],bn=ft[Tn];p.useEffect(function(){if(ce){var Dn=null,yn=function(){var pn=on(Mt);return pn?pn[Fe.value]:null};!$e&&de.length&&!et?Dn=de[0]:Dn=yn(),Xn(Dn)}},[ce,et]),p.useImperativeHandle(ye,function(){var Dn;return{scrollTo:(Dn=kt.current)===null||Dn===void 0?void 0:Dn.scrollTo,onKeyDown:function(Ln){var pn,En=Ln.which;switch(En){case X.Z.UP:case X.Z.DOWN:case X.Z.LEFT:case X.Z.RIGHT:(pn=kt.current)===null||pn===void 0||pn.onKeyDown(Ln);break;case X.Z.ENTER:{if(bn){var Rn=it(bn.node),Fn=(bn==null?void 0:bn.node)||{},Un=Fn.selectable,jn=Fn.value,mr=Fn.disabled;Un!==!1&&!mr&&!Rn&&Te(null,{node:{key:Tn},selected:!de.includes(jn)})}break}case X.Z.ESC:ct(!1)}},onKeyUp:function(){}}});var Zn=(0,y.Z)(function(){return!et},[et,Be||Ot],function(Dn,yn){var Ln=(0,ae.Z)(Dn,1),pn=Ln[0],En=(0,ae.Z)(yn,2),Rn=En[0],Fn=En[1];return pn!==Rn&&!!(Rn||Fn)}),Nn=Zn?De:null;if(Mt.length===0)return p.createElement("div",{role:"listbox",className:"".concat(We,"-empty"),onMouseDown:Pe},Z);var Mn={fieldNames:Fe};return Le&&(Mn.loadedKeys=Le),un&&(Mn.expandedKeys=un),p.createElement("div",{onMouseDown:Pe},bn&&ce&&p.createElement("span",{style:Qt,"aria-live":"assertive"},bn.node.value),p.createElement(ie.y6.Provider,{value:{nodeDisabled:it}},p.createElement(ie.ZP,(0,h.Z)({ref:kt,focusable:!1,prefixCls:"".concat(We,"-tree"),treeData:Mt,height:Ce,itemHeight:Ae,itemScrollOffset:st,virtual:Ie!==!1&&Ht!==!1,multiple:$e,icon:Ue,showIcon:I,switcherIcon:K,showLine:S,loadData:Nn,motion:He,activeKey:Tn,checkable:pe,checkStrictly:!0,checkedKeys:fn,selectedKeys:pe?[]:de,defaultExpandAll:Ye,titleRender:Bt},Mn,{onActiveChange:Xn,onSelect:Te,onCheck:Te,onExpand:dn,onLoad:Ge,filterTreeNode:Pt,expandAction:St,onScroll:se}))))},$t=p.forwardRef(Ve),It=$t,sn="SHOW_ALL",qe="SHOW_PARENT",ht="SHOW_CHILD";function Oe(W,fe,ye,tt){var We=new Set(W);return fe===ht?W.filter(function($e){var et=ye[$e];return!et||!et.children||!et.children.some(function(ct){var ce=ct.node;return We.has(ce[tt.value])})||!et.children.every(function(ct){var ce=ct.node;return rt(ce)||We.has(ce[tt.value])})}):fe===qe?W.filter(function($e){var et=ye[$e],ct=et?et.parent:null;return!ct||rt(ct.node)||!We.has(ct.key)}):W}function we(W){var fe=W.searchPlaceholder,ye=W.treeCheckStrictly,tt=W.treeCheckable,We=W.labelInValue,$e=W.value,et=W.multiple,ct=W.showCheckedStrategy,ce=W.maxCount;warning(!fe,"`searchPlaceholder` has been removed."),ye&&We===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(We||ye)&&warning(toArray($e).every(function(Z){return Z&&_typeof(Z)==="object"&&"value"in Z}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),ye||et||tt?warning(!$e||Array.isArray($e),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray($e),"`value` should not be array when `TreeSelect` is single mode."),ce&&(ct==="SHOW_ALL"&&!ye||ct==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var j=null,ze=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function Xe(W){return!W||(0,d.Z)(W)!=="object"}var J=p.forwardRef(function(W,fe){var ye=W.id,tt=W.prefixCls,We=tt===void 0?"rc-tree-select":tt,$e=W.value,et=W.defaultValue,ct=W.onChange,ce=W.onSelect,Z=W.onDeselect,N=W.searchValue,Ie=W.inputValue,Ce=W.onSearch,Ae=W.autoClearSearchValue,st=Ae===void 0?!0:Ae,lt=W.filterTreeNode,Fe=W.treeNodeFilterProp,_t=Fe===void 0?"value":Fe,Ht=W.showCheckedStrategy,St=W.treeNodeLabelProp,Bt=W.multiple,se=W.treeCheckable,ge=W.treeCheckStrictly,Ee=W.labelInValue,k=W.maxCount,Y=W.fieldNames,pe=W.treeDataSimpleMode,de=W.treeData,xe=W.children,Be=W.loadData,Ye=W.treeLoadedKeys,dt=W.onTreeLoad,nt=W.treeDefaultExpandAll,Ue=W.treeExpandedKeys,I=W.treeDefaultExpandedKeys,K=W.onTreeExpand,S=W.treeExpandAction,je=W.virtual,De=W.listHeight,Le=De===void 0?200:De,He=W.listItemHeight,Ge=He===void 0?20:He,ft=W.listItemScrollOffset,kt=ft===void 0?0:ft,Mt=W.onDropdownVisibleChange,fn=W.dropdownMatchSelectWidth,Pe=fn===void 0?!0:fn,Te=W.treeLine,pt=W.treeIcon,mt=W.showTreeIcon,Ot=W.switcherIcon,xt=W.treeMotion,Tt=W.treeTitleRender,Zt=W.onPopupScroll,tn=(0,B.Z)(W,ze),Ft=(0,te.ZP)(ye),un=se&&!ge,dn=se||ge,qt=ge||Ee,Pt=dn||Bt,Ze=(0,g.Z)(et,{value:$e}),at=(0,ae.Z)(Ze,2),Dt=at[0],Nt=at[1],nn=p.useMemo(function(){return se?Ht||ht:sn},[Ht,se]),it=p.useMemo(function(){return Qe(Y)},[JSON.stringify(Y)]),on=(0,g.Z)("",{value:N!==void 0?N:Ie,postState:function(xn){return xn||""}}),_n=(0,ae.Z)(on,2),An=_n[0],Tn=_n[1],Xn=function(xn){Tn(xn),Ce==null||Ce(xn)},bn=U(de,xe,pe),Zn=q(bn,it),Nn=Zn.keyEntities,Mn=Zn.valueEntities,Dn=p.useCallback(function(hn){var xn=[],On=[];return hn.forEach(function(kn){Mn.has(kn)?On.push(kn):xn.push(kn)}),{missingRawValues:xn,existRawValues:On}},[Mn]),yn=ve(bn,An,{fieldNames:it,treeNodeFilterProp:_t,filterTreeNode:lt}),Ln=p.useCallback(function(hn){if(hn){if(St)return hn[St];for(var xn=it._title,On=0;On<xn.length;On+=1){var kn=hn[xn[On]];if(kn!==void 0)return kn}}},[it,St]),pn=p.useCallback(function(hn){var xn=me(hn);return xn.map(function(On){return Xe(On)?{value:On}:On})},[]),En=p.useCallback(function(hn){var xn=pn(hn);return xn.map(function(On){var kn=On.label,Hn=On.value,Sn=On.halfChecked,Wn,zn=Mn.get(Hn);if(zn){var tr;kn=Tt?Tt(zn.node):(tr=kn)!==null&&tr!==void 0?tr:Ln(zn.node),Wn=zn.node.disabled}else if(kn===void 0){var Yn=pn(Dt).find(function(qn){return qn.value===Hn});kn=Yn.label}return{label:kn,value:Hn,halfChecked:Sn,disabled:Wn}})},[Mn,Ln,pn,Dt]),Rn=p.useMemo(function(){return pn(Dt===null?[]:Dt)},[pn,Dt]),Fn=p.useMemo(function(){var hn=[],xn=[];return Rn.forEach(function(On){On.halfChecked?xn.push(On):hn.push(On)}),[hn,xn]},[Rn]),Un=(0,ae.Z)(Fn,2),jn=Un[0],mr=Un[1],Me=p.useMemo(function(){return jn.map(function(hn){return hn.value})},[jn]),Re=L(jn,mr,un,Nn),ke=(0,ae.Z)(Re,2),ut=ke[0],gt=ke[1],bt=p.useMemo(function(){var hn=Oe(ut,nn,Nn,it),xn=hn.map(function(Sn){var Wn,zn;return(Wn=(zn=Nn[Sn])===null||zn===void 0||(zn=zn.node)===null||zn===void 0?void 0:zn[it.value])!==null&&Wn!==void 0?Wn:Sn}),On=xn.map(function(Sn){var Wn=jn.find(function(tr){return tr.value===Sn}),zn=Ee?Wn==null?void 0:Wn.label:Tt==null?void 0:Tt(Wn);return{value:Sn,label:zn}}),kn=En(On),Hn=kn[0];return!Pt&&Hn&&Rt(Hn.value)&&Rt(Hn.label)?[]:kn.map(function(Sn){var Wn;return(0,z.Z)((0,z.Z)({},Sn),{},{label:(Wn=Sn.label)!==null&&Wn!==void 0?Wn:Sn.value})})},[it,Pt,ut,jn,En,nn,Nn]),zt=E(bt),Ut=(0,ae.Z)(zt,1),wt=Ut[0],vt=p.useMemo(function(){return Pt&&(nn==="SHOW_CHILD"||ge||!se)?k:null},[k,Pt,ge,nn,se]),Et=he(function(hn,xn,On){var kn=Oe(hn,nn,Nn,it);if(!(vt&&kn.length>vt)){var Hn=En(hn);if(Nt(Hn),st&&Tn(""),ct){var Sn=hn;un&&(Sn=kn.map(function(Wt){var gn=Mn.get(Wt);return gn?gn.node[it.value]:Wt}));var Wn=xn||{triggerValue:void 0,selected:void 0},zn=Wn.triggerValue,tr=Wn.selected,Yn=Sn;if(ge){var qn=mr.filter(function(Wt){return!Sn.includes(Wt.value)});Yn=[].concat((0,ue.Z)(Yn),(0,ue.Z)(qn))}var ur=En(Yn),yt={preValue:jn,triggerValue:zn},Yt=!0;(ge||On==="selection"&&!tr)&&(Yt=!1),$(yt,zn,hn,bn,Yt,it),dn?yt.checked=tr:yt.selected=tr;var an=qt?ur:ur.map(function(Wt){return Wt.value});ct(Pt?an:an[0],qt?null:ur.map(function(Wt){return Wt.label}),yt)}}}),At=p.useCallback(function(hn,xn){var On,kn=xn.selected,Hn=xn.source,Sn=Nn[hn],Wn=Sn==null?void 0:Sn.node,zn=(On=Wn==null?void 0:Wn[it.value])!==null&&On!==void 0?On:hn;if(!Pt)Et([zn],{selected:!0,triggerValue:zn},"option");else{var tr=kn?[].concat((0,ue.Z)(Me),[zn]):ut.filter(function(gn){return gn!==zn});if(un){var Yn=Dn(tr),qn=Yn.missingRawValues,ur=Yn.existRawValues,yt=ur.map(function(gn){return Mn.get(gn).key}),Yt;if(kn){var an=(0,o.S)(yt,!0,Nn);Yt=an.checkedKeys}else{var Wt=(0,o.S)(yt,{checked:!1,halfCheckedKeys:gt},Nn);Yt=Wt.checkedKeys}tr=[].concat((0,ue.Z)(qn),(0,ue.Z)(Yt.map(function(gn){return Nn[gn].node[it.value]})))}Et(tr,{selected:kn,triggerValue:zn},Hn||"option")}kn||!Pt?ce==null||ce(zn,re(Wn)):Z==null||Z(zn,re(Wn))},[Dn,Mn,Nn,it,Pt,Me,Et,un,ce,Z,ut,gt,k]),Kt=p.useCallback(function(hn){if(Mt){var xn={};Object.defineProperty(xn,"documentClickClose",{get:function(){return(0,A.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Mt(hn,xn)}},[Mt]),en=he(function(hn,xn){var On=hn.map(function(kn){return kn.value});if(xn.type==="clear"){Et(On,{},"selection");return}xn.values.length&&At(xn.values[0].value,{selected:!1,source:"selection"})}),mn=p.useMemo(function(){return{virtual:je,dropdownMatchSelectWidth:Pe,listHeight:Le,listItemHeight:Ge,listItemScrollOffset:kt,treeData:yn,fieldNames:it,onSelect:At,treeExpandAction:S,treeTitleRender:Tt,onPopupScroll:Zt,leftMaxCount:k===void 0?null:k-wt.length,leafCountOnly:nn==="SHOW_CHILD"&&!ge&&!!se,valueEntities:Mn}},[je,Pe,Le,Ge,kt,yn,it,At,S,Tt,Zt,k,wt.length,nn,ge,se,Mn]),Bn=p.useMemo(function(){return{checkable:dn,loadData:Be,treeLoadedKeys:Ye,onTreeLoad:dt,checkedKeys:ut,halfCheckedKeys:gt,treeDefaultExpandAll:nt,treeExpandedKeys:Ue,treeDefaultExpandedKeys:I,onTreeExpand:K,treeIcon:pt,treeMotion:xt,showTreeIcon:mt,switcherIcon:Ot,treeLine:Te,treeNodeFilterProp:_t,keyEntities:Nn}},[dn,Be,Ye,dt,ut,gt,nt,Ue,I,K,pt,xt,mt,Ot,Te,_t,Nn]);return p.createElement(O.Provider,{value:mn},p.createElement(P.Provider,{value:Bn},p.createElement(_e.Ac,(0,h.Z)({ref:fe},tn,{id:Ft,prefixCls:We,mode:Pt?"multiple":void 0,displayValues:wt,onDisplayValuesChange:en,searchValue:An,onSearch:Xn,OptionList:It,emptyOptions:!bn.length,onDropdownVisibleChange:Kt,dropdownMatchSelectWidth:Pe}))))}),M=J;M.TreeNode=R,M.SHOW_ALL=sn,M.SHOW_PARENT=qe,M.SHOW_CHILD=ht;var Se=M,be=Se},639:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return H}});var h=_(54476),ue=_(20068),z=_(33885),ae=_(42978),B=_(75931),d=_(59301),_e=_(92310),te=_.n(_e),o=_(26112),g=_(30699),A=function(w){for(var Q=w.prefixCls,re=w.level,$=w.isStart,oe=w.isEnd,ve="".concat(Q,"-indent-unit"),he=[],ot=0;ot<re;ot+=1)he.push(d.createElement("span",{key:ot,className:te()(ve,(0,ue.Z)((0,ue.Z)({},"".concat(ve,"-start"),$[ot]),"".concat(ve,"-end"),oe[ot]))}));return d.createElement("span",{"aria-hidden":"true",className:"".concat(Q,"-indent")},he)},p=d.memo(A),E=_(65065),b=_(34061),L=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],V="open",q="close",le="---",F=function(w){var Q,re,$,oe=w.eventKey,ve=w.className,he=w.style,ot=w.dragOver,U=w.dragOverGapTop,C=w.dragOverGapBottom,P=w.isLeaf,G=w.isStart,ie=w.isEnd,X=w.expanded,y=w.selected,v=w.checked,O=w.halfChecked,me=w.loading,Qe=w.domRef,rt=w.active,Ct=w.data,Rt=w.onMouseMove,Vt=w.selectable,Qt=(0,B.Z)(w,L),Ve=d.useContext(g.k),$t=d.useContext(g.y),It=d.useRef(null),sn=d.useState(!1),qe=(0,ae.Z)(sn,2),ht=qe[0],Oe=qe[1],we=!!(Ve.disabled||w.disabled||(Q=$t.nodeDisabled)!==null&&Q!==void 0&&Q.call($t,Ct)),j=d.useMemo(function(){return!Ve.checkable||w.checkable===!1?!1:Ve.checkable},[Ve.checkable,w.checkable]),ze=function(xe){we||Ve.onNodeSelect(xe,(0,b.F)(w))},Xe=function(xe){we||!j||w.disableCheckbox||Ve.onNodeCheck(xe,(0,b.F)(w),!v)},J=d.useMemo(function(){return typeof Vt=="boolean"?Vt:Ve.selectable},[Vt,Ve.selectable]),M=function(xe){Ve.onNodeClick(xe,(0,b.F)(w)),J?ze(xe):Xe(xe)},Se=function(xe){Ve.onNodeDoubleClick(xe,(0,b.F)(w))},be=function(xe){Ve.onNodeMouseEnter(xe,(0,b.F)(w))},W=function(xe){Ve.onNodeMouseLeave(xe,(0,b.F)(w))},fe=function(xe){Ve.onNodeContextMenu(xe,(0,b.F)(w))},ye=d.useMemo(function(){return!!(Ve.draggable&&(!Ve.draggable.nodeDraggable||Ve.draggable.nodeDraggable(Ct)))},[Ve.draggable,Ct]),tt=function(xe){xe.stopPropagation(),Oe(!0),Ve.onNodeDragStart(xe,w);try{xe.dataTransfer.setData("text/plain","")}catch(Be){}},We=function(xe){xe.preventDefault(),xe.stopPropagation(),Ve.onNodeDragEnter(xe,w)},$e=function(xe){xe.preventDefault(),xe.stopPropagation(),Ve.onNodeDragOver(xe,w)},et=function(xe){xe.stopPropagation(),Ve.onNodeDragLeave(xe,w)},ct=function(xe){xe.stopPropagation(),Oe(!1),Ve.onNodeDragEnd(xe,w)},ce=function(xe){xe.preventDefault(),xe.stopPropagation(),Oe(!1),Ve.onNodeDrop(xe,w)},Z=function(xe){me||Ve.onNodeExpand(xe,(0,b.F)(w))},N=d.useMemo(function(){var de=(0,E.Z)(Ve.keyEntities,oe)||{},xe=de.children;return!!(xe||[]).length},[Ve.keyEntities,oe]),Ie=d.useMemo(function(){return P===!1?!1:P||!Ve.loadData&&!N||Ve.loadData&&w.loaded&&!N},[P,Ve.loadData,N,w.loaded]);d.useEffect(function(){me||typeof Ve.loadData=="function"&&X&&!Ie&&!w.loaded&&Ve.onNodeLoad((0,b.F)(w))},[me,Ve.loadData,Ve.onNodeLoad,X,Ie,w]);var Ce=d.useMemo(function(){var de;return(de=Ve.draggable)!==null&&de!==void 0&&de.icon?d.createElement("span",{className:"".concat(Ve.prefixCls,"-draggable-icon")},Ve.draggable.icon):null},[Ve.draggable]),Ae=function(xe){var Be=w.switcherIcon||Ve.switcherIcon;return typeof Be=="function"?Be((0,z.Z)((0,z.Z)({},w),{},{isLeaf:xe})):Be},st=function(){if(Ie){var xe=Ae(!0);return xe!==!1?d.createElement("span",{className:te()("".concat(Ve.prefixCls,"-switcher"),"".concat(Ve.prefixCls,"-switcher-noop"))},xe):null}var Be=Ae(!1);return Be!==!1?d.createElement("span",{onClick:Z,className:te()("".concat(Ve.prefixCls,"-switcher"),"".concat(Ve.prefixCls,"-switcher_").concat(X?V:q))},Be):null},lt=d.useMemo(function(){if(!j)return null;var de=typeof j!="boolean"?j:null;return d.createElement("span",{className:te()("".concat(Ve.prefixCls,"-checkbox"),(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Ve.prefixCls,"-checkbox-checked"),v),"".concat(Ve.prefixCls,"-checkbox-indeterminate"),!v&&O),"".concat(Ve.prefixCls,"-checkbox-disabled"),we||w.disableCheckbox)),onClick:Xe,role:"checkbox","aria-checked":O?"mixed":v,"aria-disabled":we||w.disableCheckbox,"aria-label":"Select ".concat(typeof w.title=="string"?w.title:"tree node")},de)},[j,v,O,we,w.disableCheckbox,w.title]),Fe=d.useMemo(function(){return Ie?null:X?V:q},[Ie,X]),_t=d.useMemo(function(){return d.createElement("span",{className:te()("".concat(Ve.prefixCls,"-iconEle"),"".concat(Ve.prefixCls,"-icon__").concat(Fe||"docu"),(0,ue.Z)({},"".concat(Ve.prefixCls,"-icon_loading"),me))})},[Ve.prefixCls,Fe,me]),Ht=d.useMemo(function(){var de=!!Ve.draggable,xe=!w.disabled&&de&&Ve.dragOverNodeKey===oe;return xe?Ve.dropIndicatorRender({dropPosition:Ve.dropPosition,dropLevelOffset:Ve.dropLevelOffset,indent:Ve.indent,prefixCls:Ve.prefixCls,direction:Ve.direction}):null},[Ve.dropPosition,Ve.dropLevelOffset,Ve.indent,Ve.prefixCls,Ve.direction,Ve.draggable,Ve.dragOverNodeKey,Ve.dropIndicatorRender]),St=d.useMemo(function(){var de=w.title,xe=de===void 0?le:de,Be="".concat(Ve.prefixCls,"-node-content-wrapper"),Ye;if(Ve.showIcon){var dt=w.icon||Ve.icon;Ye=dt?d.createElement("span",{className:te()("".concat(Ve.prefixCls,"-iconEle"),"".concat(Ve.prefixCls,"-icon__customize"))},typeof dt=="function"?dt(w):dt):_t}else Ve.loadData&&me&&(Ye=_t);var nt;return typeof xe=="function"?nt=xe(Ct):Ve.titleRender?nt=Ve.titleRender(Ct):nt=xe,d.createElement("span",{ref:It,title:typeof xe=="string"?xe:"",className:te()(Be,"".concat(Be,"-").concat(Fe||"normal"),(0,ue.Z)({},"".concat(Ve.prefixCls,"-node-selected"),!we&&(y||ht))),onMouseEnter:be,onMouseLeave:W,onContextMenu:fe,onClick:M,onDoubleClick:Se},Ye,d.createElement("span",{className:"".concat(Ve.prefixCls,"-title")},nt),Ht)},[Ve.prefixCls,Ve.showIcon,w,Ve.icon,_t,Ve.titleRender,Ct,Fe,be,W,fe,M,Se]),Bt=(0,o.Z)(Qt,{aria:!0,data:!0}),se=(0,E.Z)(Ve.keyEntities,oe)||{},ge=se.level,Ee=ie[ie.length-1],k=!we&&ye,Y=Ve.draggingNodeKey===oe,pe=Vt!==void 0?{"aria-selected":!!Vt}:void 0;return d.createElement("div",(0,h.Z)({ref:Qe,role:"treeitem","aria-expanded":P?void 0:X,className:te()(ve,"".concat(Ve.prefixCls,"-treenode"),($={},(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)($,"".concat(Ve.prefixCls,"-treenode-disabled"),we),"".concat(Ve.prefixCls,"-treenode-switcher-").concat(X?"open":"close"),!P),"".concat(Ve.prefixCls,"-treenode-checkbox-checked"),v),"".concat(Ve.prefixCls,"-treenode-checkbox-indeterminate"),O),"".concat(Ve.prefixCls,"-treenode-selected"),y),"".concat(Ve.prefixCls,"-treenode-loading"),me),"".concat(Ve.prefixCls,"-treenode-active"),rt),"".concat(Ve.prefixCls,"-treenode-leaf-last"),Ee),"".concat(Ve.prefixCls,"-treenode-draggable"),ye),"dragging",Y),(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)($,"drop-target",Ve.dropTargetKey===oe),"drop-container",Ve.dropContainerKey===oe),"drag-over",!we&&ot),"drag-over-gap-top",!we&&U),"drag-over-gap-bottom",!we&&C),"filter-node",(re=Ve.filterTreeNode)===null||re===void 0?void 0:re.call(Ve,(0,b.F)(w))),"".concat(Ve.prefixCls,"-treenode-leaf"),Ie))),style:he,draggable:k,onDragStart:k?tt:void 0,onDragEnter:ye?We:void 0,onDragOver:ye?$e:void 0,onDragLeave:ye?et:void 0,onDrop:ye?ce:void 0,onDragEnd:ye?ct:void 0,onMouseMove:Rt},pe,Bt),d.createElement(p,{prefixCls:Ve.prefixCls,level:ge,isStart:G,isEnd:ie}),Ce,st(),lt,St)};F.isTreeNode=1;var H=F},30699:function(Pn,Xt,_){"use strict";_.d(Xt,{k:function(){return ue},y:function(){return z}});var h=_(59301),ue=h.createContext(null),z=h.createContext({})},3741:function(Pn,Xt,_){"use strict";_.d(Xt,{OF:function(){return oe.Z},y6:function(){return q.y},ZP:function(){return we}});var h=_(54476),ue=_(76190),z=_(33885),ae=_(94480),B=_(67732),d=_(83652),_e=_(31226),te=_(42403),o=_(158),g=_(20068),A=_(92310),p=_.n(A),E=_(10228),b=_(26112),L=_(48736),V=_(59301),q=_(30699),le=function(ze){var Xe=ze.dropPosition,J=ze.dropLevelOffset,M=ze.indent,Se={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Xe){case-1:Se.top=0,Se.left=-J*M;break;case 1:Se.bottom=0,Se.left=-J*M;break;case 0:Se.bottom=0,Se.left=M;break}return V.createElement("div",{style:Se})},F=le;function H(j){if(j==null)throw new TypeError("Cannot destructure "+j)}var R=_(42978),w=_(75931),Q=_(34280),re=_(48911),$=_(77900),oe=_(639);function ve(j,ze){var Xe=V.useState(!1),J=(0,R.Z)(Xe,2),M=J[0],Se=J[1];(0,Q.Z)(function(){if(M)return j(),function(){ze()}},[M]),(0,Q.Z)(function(){return Se(!0),function(){Se(!1)}},[])}var he=ve,ot=_(34061),U=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],C=V.forwardRef(function(j,ze){var Xe=j.className,J=j.style,M=j.motion,Se=j.motionNodes,be=j.motionType,W=j.onMotionStart,fe=j.onMotionEnd,ye=j.active,tt=j.treeNodeRequiredProps,We=(0,w.Z)(j,U),$e=V.useState(!0),et=(0,R.Z)($e,2),ct=et[0],ce=et[1],Z=V.useContext(q.k),N=Z.prefixCls,Ie=Se&&be!=="hide";(0,Q.Z)(function(){Se&&Ie!==ct&&ce(Ie)},[Se]);var Ce=function(){Se&&W()},Ae=V.useRef(!1),st=function(){Se&&!Ae.current&&(Ae.current=!0,fe())};he(Ce,st);var lt=function(_t){Ie===_t&&st()};return Se?V.createElement($.default,(0,h.Z)({ref:ze,visible:ct},M,{motionAppear:be==="show",onVisibleChanged:lt}),function(Fe,_t){var Ht=Fe.className,St=Fe.style;return V.createElement("div",{ref:_t,className:p()("".concat(N,"-treenode-motion"),Ht),style:St},Se.map(function(Bt){var se=Object.assign({},(H(Bt.data),Bt.data)),ge=Bt.title,Ee=Bt.key,k=Bt.isStart,Y=Bt.isEnd;delete se.children;var pe=(0,ot.H8)(Ee,tt);return V.createElement(oe.Z,(0,h.Z)({},se,pe,{title:ge,active:ye,data:Bt.data,key:Ee,isStart:k,isEnd:Y}))}))}):V.createElement(oe.Z,(0,h.Z)({domRef:ze,className:Xe,style:J},We,{active:ye}))}),P=C;function G(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Xe=j.length,J=ze.length;if(Math.abs(Xe-J)!==1)return{add:!1,key:null};function M(Se,be){var W=new Map;Se.forEach(function(ye){W.set(ye,!0)});var fe=be.filter(function(ye){return!W.has(ye)});return fe.length===1?fe[0]:null}return Xe<J?{add:!0,key:M(j,ze)}:{add:!1,key:M(ze,j)}}function ie(j,ze,Xe){var J=j.findIndex(function(W){return W.key===Xe}),M=j[J+1],Se=ze.findIndex(function(W){return W.key===Xe});if(M){var be=ze.findIndex(function(W){return W.key===M.key});return ze.slice(Se+1,be)}return ze.slice(Se+1)}var X=["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"],y={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},v=function(){},O="RC_TREE_MOTION_".concat(Math.random()),me={key:O},Qe={key:O,level:0,index:0,pos:"0",node:me,nodes:[me]},rt={parent:null,children:[],pos:Qe.pos,data:me,title:null,key:O,isStart:[],isEnd:[]};function Ct(j,ze,Xe,J){return ze===!1||!Xe?j:j.slice(0,Math.ceil(Xe/J)+1)}function Rt(j){var ze=j.key,Xe=j.pos;return(0,ot.km)(ze,Xe)}function Vt(j){for(var ze=String(j.data.key),Xe=j;Xe.parent;)Xe=Xe.parent,ze="".concat(Xe.data.key," > ").concat(ze);return ze}var Qt=V.forwardRef(function(j,ze){var Xe=j.prefixCls,J=j.data,M=j.selectable,Se=j.checkable,be=j.expandedKeys,W=j.selectedKeys,fe=j.checkedKeys,ye=j.loadedKeys,tt=j.loadingKeys,We=j.halfCheckedKeys,$e=j.keyEntities,et=j.disabled,ct=j.dragging,ce=j.dragOverNodeKey,Z=j.dropPosition,N=j.motion,Ie=j.height,Ce=j.itemHeight,Ae=j.virtual,st=j.scrollWidth,lt=j.focusable,Fe=j.activeItem,_t=j.focused,Ht=j.tabIndex,St=j.onKeyDown,Bt=j.onFocus,se=j.onBlur,ge=j.onActiveChange,Ee=j.onListChangeStart,k=j.onListChangeEnd,Y=(0,w.Z)(j,X),pe=V.useRef(null),de=V.useRef(null);V.useImperativeHandle(ze,function(){return{scrollTo:function(Zt){pe.current.scrollTo(Zt)},getIndentWidth:function(){return de.current.offsetWidth}}});var xe=V.useState(be),Be=(0,R.Z)(xe,2),Ye=Be[0],dt=Be[1],nt=V.useState(J),Ue=(0,R.Z)(nt,2),I=Ue[0],K=Ue[1],S=V.useState(J),je=(0,R.Z)(S,2),De=je[0],Le=je[1],He=V.useState([]),Ge=(0,R.Z)(He,2),ft=Ge[0],kt=Ge[1],Mt=V.useState(null),fn=(0,R.Z)(Mt,2),Pe=fn[0],Te=fn[1],pt=V.useRef(J);pt.current=J;function mt(){var Tt=pt.current;K(Tt),Le(Tt),kt([]),Te(null),k()}(0,Q.Z)(function(){dt(be);var Tt=G(Ye,be);if(Tt.key!==null)if(Tt.add){var Zt=I.findIndex(function(Pt){var Ze=Pt.key;return Ze===Tt.key}),tn=Ct(ie(I,J,Tt.key),Ae,Ie,Ce),Ft=I.slice();Ft.splice(Zt+1,0,rt),Le(Ft),kt(tn),Te("show")}else{var un=J.findIndex(function(Pt){var Ze=Pt.key;return Ze===Tt.key}),dn=Ct(ie(J,I,Tt.key),Ae,Ie,Ce),qt=J.slice();qt.splice(un+1,0,rt),Le(qt),kt(dn),Te("hide")}else I!==J&&(K(J),Le(J))},[be,J]),V.useEffect(function(){ct||mt()},[ct]);var Ot=N?De:J,xt={expandedKeys:be,selectedKeys:W,loadedKeys:ye,loadingKeys:tt,checkedKeys:fe,halfCheckedKeys:We,dragOverNodeKey:ce,dropPosition:Z,keyEntities:$e};return V.createElement(V.Fragment,null,_t&&Fe&&V.createElement("span",{style:y,"aria-live":"assertive"},Vt(Fe)),V.createElement("div",null,V.createElement("input",{style:y,disabled:lt===!1||et,tabIndex:lt!==!1?Ht:null,onKeyDown:St,onFocus:Bt,onBlur:se,value:"",onChange:v,"aria-label":"for screen reader"})),V.createElement("div",{className:"".concat(Xe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},V.createElement("div",{className:"".concat(Xe,"-indent")},V.createElement("div",{ref:de,className:"".concat(Xe,"-indent-unit")}))),V.createElement(re.Z,(0,h.Z)({},Y,{data:Ot,itemKey:Rt,height:Ie,fullHeight:!1,virtual:Ae,itemHeight:Ce,scrollWidth:st,prefixCls:"".concat(Xe,"-list"),ref:pe,role:"tree",onVisibleChange:function(Zt){Zt.every(function(tn){return Rt(tn)!==O})&&mt()}}),function(Tt){var Zt=Tt.pos,tn=Object.assign({},(H(Tt.data),Tt.data)),Ft=Tt.title,un=Tt.key,dn=Tt.isStart,qt=Tt.isEnd,Pt=(0,ot.km)(un,Zt);delete tn.key,delete tn.children;var Ze=(0,ot.H8)(Pt,xt);return V.createElement(P,(0,h.Z)({},tn,Ze,{title:Ft,active:!!Fe&&un===Fe.key,pos:Zt,data:Tt.data,isStart:dn,isEnd:qt,motion:N,motionNodes:un===O?ft:null,motionType:Pe,onMotionStart:Ee,onMotionEnd:mt,treeNodeRequiredProps:xt,onMouseMove:function(){ge(null)}}))}))}),Ve=Qt,$t=_(82661),It=_(34643),sn=_(65065),qe=10,ht=function(j){(0,te.Z)(Xe,j);var ze=(0,o.Z)(Xe);function Xe(){var J;(0,B.Z)(this,Xe);for(var M=arguments.length,Se=new Array(M),be=0;be<M;be++)Se[be]=arguments[be];return J=ze.call.apply(ze,[this].concat(Se)),(0,g.Z)((0,_e.Z)(J),"destroyed",!1),(0,g.Z)((0,_e.Z)(J),"delayedDragEnterLogic",void 0),(0,g.Z)((0,_e.Z)(J),"loadingRetryTimes",{}),(0,g.Z)((0,_e.Z)(J),"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,ot.w$)()}),(0,g.Z)((0,_e.Z)(J),"dragStartMousePosition",null),(0,g.Z)((0,_e.Z)(J),"dragNodeProps",null),(0,g.Z)((0,_e.Z)(J),"currentMouseOverDroppableNodeKey",null),(0,g.Z)((0,_e.Z)(J),"listRef",V.createRef()),(0,g.Z)((0,_e.Z)(J),"onNodeDragStart",function(W,fe){var ye=J.state,tt=ye.expandedKeys,We=ye.keyEntities,$e=J.props.onDragStart,et=fe.eventKey;J.dragNodeProps=fe,J.dragStartMousePosition={x:W.clientX,y:W.clientY};var ct=(0,$t._5)(tt,et);J.setState({draggingNodeKey:et,dragChildrenKeys:(0,$t.wA)(et,We),indent:J.listRef.current.getIndentWidth()}),J.setExpandedKeys(ct),window.addEventListener("dragend",J.onWindowDragEnd),$e==null||$e({event:W,node:(0,ot.F)(fe)})}),(0,g.Z)((0,_e.Z)(J),"onNodeDragEnter",function(W,fe){var ye=J.state,tt=ye.expandedKeys,We=ye.keyEntities,$e=ye.dragChildrenKeys,et=ye.flattenNodes,ct=ye.indent,ce=J.props,Z=ce.onDragEnter,N=ce.onExpand,Ie=ce.allowDrop,Ce=ce.direction,Ae=fe.pos,st=fe.eventKey;if(J.currentMouseOverDroppableNodeKey!==st&&(J.currentMouseOverDroppableNodeKey=st),!J.dragNodeProps){J.resetDragState();return}var lt=(0,$t.OM)(W,J.dragNodeProps,fe,ct,J.dragStartMousePosition,Ie,et,We,tt,Ce),Fe=lt.dropPosition,_t=lt.dropLevelOffset,Ht=lt.dropTargetKey,St=lt.dropContainerKey,Bt=lt.dropTargetPos,se=lt.dropAllowed,ge=lt.dragOverNodeKey;if($e.includes(Ht)||!se){J.resetDragState();return}if(J.delayedDragEnterLogic||(J.delayedDragEnterLogic={}),Object.keys(J.delayedDragEnterLogic).forEach(function(Ee){clearTimeout(J.delayedDragEnterLogic[Ee])}),J.dragNodeProps.eventKey!==fe.eventKey&&(W.persist(),J.delayedDragEnterLogic[Ae]=window.setTimeout(function(){if(J.state.draggingNodeKey!==null){var Ee=(0,ae.Z)(tt),k=(0,sn.Z)(We,fe.eventKey);k&&(k.children||[]).length&&(Ee=(0,$t.L0)(tt,fe.eventKey)),J.props.hasOwnProperty("expandedKeys")||J.setExpandedKeys(Ee),N==null||N(Ee,{node:(0,ot.F)(fe),expanded:!0,nativeEvent:W.nativeEvent})}},800)),J.dragNodeProps.eventKey===Ht&&_t===0){J.resetDragState();return}J.setState({dragOverNodeKey:ge,dropPosition:Fe,dropLevelOffset:_t,dropTargetKey:Ht,dropContainerKey:St,dropTargetPos:Bt,dropAllowed:se}),Z==null||Z({event:W,node:(0,ot.F)(fe),expandedKeys:tt})}),(0,g.Z)((0,_e.Z)(J),"onNodeDragOver",function(W,fe){var ye=J.state,tt=ye.dragChildrenKeys,We=ye.flattenNodes,$e=ye.keyEntities,et=ye.expandedKeys,ct=ye.indent,ce=J.props,Z=ce.onDragOver,N=ce.allowDrop,Ie=ce.direction;if(J.dragNodeProps){var Ce=(0,$t.OM)(W,J.dragNodeProps,fe,ct,J.dragStartMousePosition,N,We,$e,et,Ie),Ae=Ce.dropPosition,st=Ce.dropLevelOffset,lt=Ce.dropTargetKey,Fe=Ce.dropContainerKey,_t=Ce.dropTargetPos,Ht=Ce.dropAllowed,St=Ce.dragOverNodeKey;tt.includes(lt)||!Ht||(J.dragNodeProps.eventKey===lt&&st===0?J.state.dropPosition===null&&J.state.dropLevelOffset===null&&J.state.dropTargetKey===null&&J.state.dropContainerKey===null&&J.state.dropTargetPos===null&&J.state.dropAllowed===!1&&J.state.dragOverNodeKey===null||J.resetDragState():Ae===J.state.dropPosition&&st===J.state.dropLevelOffset&<===J.state.dropTargetKey&&Fe===J.state.dropContainerKey&&_t===J.state.dropTargetPos&&Ht===J.state.dropAllowed&&St===J.state.dragOverNodeKey||J.setState({dropPosition:Ae,dropLevelOffset:st,dropTargetKey:lt,dropContainerKey:Fe,dropTargetPos:_t,dropAllowed:Ht,dragOverNodeKey:St}),Z==null||Z({event:W,node:(0,ot.F)(fe)}))}}),(0,g.Z)((0,_e.Z)(J),"onNodeDragLeave",function(W,fe){J.currentMouseOverDroppableNodeKey===fe.eventKey&&!W.currentTarget.contains(W.relatedTarget)&&(J.resetDragState(),J.currentMouseOverDroppableNodeKey=null);var ye=J.props.onDragLeave;ye==null||ye({event:W,node:(0,ot.F)(fe)})}),(0,g.Z)((0,_e.Z)(J),"onWindowDragEnd",function(W){J.onNodeDragEnd(W,null,!0),window.removeEventListener("dragend",J.onWindowDragEnd)}),(0,g.Z)((0,_e.Z)(J),"onNodeDragEnd",function(W,fe){var ye=J.props.onDragEnd;J.setState({dragOverNodeKey:null}),J.cleanDragState(),ye==null||ye({event:W,node:(0,ot.F)(fe)}),J.dragNodeProps=null,window.removeEventListener("dragend",J.onWindowDragEnd)}),(0,g.Z)((0,_e.Z)(J),"onNodeDrop",function(W,fe){var ye,tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,We=J.state,$e=We.dragChildrenKeys,et=We.dropPosition,ct=We.dropTargetKey,ce=We.dropTargetPos,Z=We.dropAllowed;if(Z){var N=J.props.onDrop;if(J.setState({dragOverNodeKey:null}),J.cleanDragState(),ct!==null){var Ie=(0,z.Z)((0,z.Z)({},(0,ot.H8)(ct,J.getTreeNodeRequiredProps())),{},{active:((ye=J.getActiveItem())===null||ye===void 0?void 0:ye.key)===ct,data:(0,sn.Z)(J.state.keyEntities,ct).node}),Ce=$e.includes(ct);(0,L.ZP)(!Ce,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ae=(0,$t.yx)(ce),st={event:W,node:(0,ot.F)(Ie),dragNode:J.dragNodeProps?(0,ot.F)(J.dragNodeProps):null,dragNodesKeys:[J.dragNodeProps.eventKey].concat($e),dropToGap:et!==0,dropPosition:et+Number(Ae[Ae.length-1])};tt||N==null||N(st),J.dragNodeProps=null}}}),(0,g.Z)((0,_e.Z)(J),"cleanDragState",function(){var W=J.state.draggingNodeKey;W!==null&&J.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),J.dragStartMousePosition=null,J.currentMouseOverDroppableNodeKey=null}),(0,g.Z)((0,_e.Z)(J),"triggerExpandActionExpand",function(W,fe){var ye=J.state,tt=ye.expandedKeys,We=ye.flattenNodes,$e=fe.expanded,et=fe.key,ct=fe.isLeaf;if(!(ct||W.shiftKey||W.metaKey||W.ctrlKey)){var ce=We.filter(function(N){return N.key===et})[0],Z=(0,ot.F)((0,z.Z)((0,z.Z)({},(0,ot.H8)(et,J.getTreeNodeRequiredProps())),{},{data:ce.data}));J.setExpandedKeys($e?(0,$t._5)(tt,et):(0,$t.L0)(tt,et)),J.onNodeExpand(W,Z)}}),(0,g.Z)((0,_e.Z)(J),"onNodeClick",function(W,fe){var ye=J.props,tt=ye.onClick,We=ye.expandAction;We==="click"&&J.triggerExpandActionExpand(W,fe),tt==null||tt(W,fe)}),(0,g.Z)((0,_e.Z)(J),"onNodeDoubleClick",function(W,fe){var ye=J.props,tt=ye.onDoubleClick,We=ye.expandAction;We==="doubleClick"&&J.triggerExpandActionExpand(W,fe),tt==null||tt(W,fe)}),(0,g.Z)((0,_e.Z)(J),"onNodeSelect",function(W,fe){var ye=J.state.selectedKeys,tt=J.state,We=tt.keyEntities,$e=tt.fieldNames,et=J.props,ct=et.onSelect,ce=et.multiple,Z=fe.selected,N=fe[$e.key],Ie=!Z;Ie?ce?ye=(0,$t.L0)(ye,N):ye=[N]:ye=(0,$t._5)(ye,N);var Ce=ye.map(function(Ae){var st=(0,sn.Z)(We,Ae);return st?st.node:null}).filter(Boolean);J.setUncontrolledState({selectedKeys:ye}),ct==null||ct(ye,{event:"select",selected:Ie,node:fe,selectedNodes:Ce,nativeEvent:W.nativeEvent})}),(0,g.Z)((0,_e.Z)(J),"onNodeCheck",function(W,fe,ye){var tt=J.state,We=tt.keyEntities,$e=tt.checkedKeys,et=tt.halfCheckedKeys,ct=J.props,ce=ct.checkStrictly,Z=ct.onCheck,N=fe.key,Ie,Ce={event:"check",node:fe,checked:ye,nativeEvent:W.nativeEvent};if(ce){var Ae=ye?(0,$t.L0)($e,N):(0,$t._5)($e,N),st=(0,$t._5)(et,N);Ie={checked:Ae,halfChecked:st},Ce.checkedNodes=Ae.map(function(Bt){return(0,sn.Z)(We,Bt)}).filter(Boolean).map(function(Bt){return Bt.node}),J.setUncontrolledState({checkedKeys:Ae})}else{var lt=(0,It.S)([].concat((0,ae.Z)($e),[N]),!0,We),Fe=lt.checkedKeys,_t=lt.halfCheckedKeys;if(!ye){var Ht=new Set(Fe);Ht.delete(N);var St=(0,It.S)(Array.from(Ht),{checked:!1,halfCheckedKeys:_t},We);Fe=St.checkedKeys,_t=St.halfCheckedKeys}Ie=Fe,Ce.checkedNodes=[],Ce.checkedNodesPositions=[],Ce.halfCheckedKeys=_t,Fe.forEach(function(Bt){var se=(0,sn.Z)(We,Bt);if(se){var ge=se.node,Ee=se.pos;Ce.checkedNodes.push(ge),Ce.checkedNodesPositions.push({node:ge,pos:Ee})}}),J.setUncontrolledState({checkedKeys:Fe},!1,{halfCheckedKeys:_t})}Z==null||Z(Ie,Ce)}),(0,g.Z)((0,_e.Z)(J),"onNodeLoad",function(W){var fe,ye=W.key,tt=J.state.keyEntities,We=(0,sn.Z)(tt,ye);if(!(We!=null&&(fe=We.children)!==null&&fe!==void 0&&fe.length)){var $e=new Promise(function(et,ct){J.setState(function(ce){var Z=ce.loadedKeys,N=Z===void 0?[]:Z,Ie=ce.loadingKeys,Ce=Ie===void 0?[]:Ie,Ae=J.props,st=Ae.loadData,lt=Ae.onLoad;if(!st||N.includes(ye)||Ce.includes(ye))return null;var Fe=st(W);return Fe.then(function(){var _t=J.state.loadedKeys,Ht=(0,$t.L0)(_t,ye);lt==null||lt(Ht,{event:"load",node:W}),J.setUncontrolledState({loadedKeys:Ht}),J.setState(function(St){return{loadingKeys:(0,$t._5)(St.loadingKeys,ye)}}),et()}).catch(function(_t){if(J.setState(function(St){return{loadingKeys:(0,$t._5)(St.loadingKeys,ye)}}),J.loadingRetryTimes[ye]=(J.loadingRetryTimes[ye]||0)+1,J.loadingRetryTimes[ye]>=qe){var Ht=J.state.loadedKeys;(0,L.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),J.setUncontrolledState({loadedKeys:(0,$t.L0)(Ht,ye)}),et()}ct(_t)}),{loadingKeys:(0,$t.L0)(Ce,ye)}})});return $e.catch(function(){}),$e}}),(0,g.Z)((0,_e.Z)(J),"onNodeMouseEnter",function(W,fe){var ye=J.props.onMouseEnter;ye==null||ye({event:W,node:fe})}),(0,g.Z)((0,_e.Z)(J),"onNodeMouseLeave",function(W,fe){var ye=J.props.onMouseLeave;ye==null||ye({event:W,node:fe})}),(0,g.Z)((0,_e.Z)(J),"onNodeContextMenu",function(W,fe){var ye=J.props.onRightClick;ye&&(W.preventDefault(),ye({event:W,node:fe}))}),(0,g.Z)((0,_e.Z)(J),"onFocus",function(){var W=J.props.onFocus;J.setState({focused:!0});for(var fe=arguments.length,ye=new Array(fe),tt=0;tt<fe;tt++)ye[tt]=arguments[tt];W==null||W.apply(void 0,ye)}),(0,g.Z)((0,_e.Z)(J),"onBlur",function(){var W=J.props.onBlur;J.setState({focused:!1}),J.onActiveChange(null);for(var fe=arguments.length,ye=new Array(fe),tt=0;tt<fe;tt++)ye[tt]=arguments[tt];W==null||W.apply(void 0,ye)}),(0,g.Z)((0,_e.Z)(J),"getTreeNodeRequiredProps",function(){var W=J.state,fe=W.expandedKeys,ye=W.selectedKeys,tt=W.loadedKeys,We=W.loadingKeys,$e=W.checkedKeys,et=W.halfCheckedKeys,ct=W.dragOverNodeKey,ce=W.dropPosition,Z=W.keyEntities;return{expandedKeys:fe||[],selectedKeys:ye||[],loadedKeys:tt||[],loadingKeys:We||[],checkedKeys:$e||[],halfCheckedKeys:et||[],dragOverNodeKey:ct,dropPosition:ce,keyEntities:Z}}),(0,g.Z)((0,_e.Z)(J),"setExpandedKeys",function(W){var fe=J.state,ye=fe.treeData,tt=fe.fieldNames,We=(0,ot.oH)(ye,W,tt);J.setUncontrolledState({expandedKeys:W,flattenNodes:We},!0)}),(0,g.Z)((0,_e.Z)(J),"onNodeExpand",function(W,fe){var ye=J.state.expandedKeys,tt=J.state,We=tt.listChanging,$e=tt.fieldNames,et=J.props,ct=et.onExpand,ce=et.loadData,Z=fe.expanded,N=fe[$e.key];if(!We){var Ie=ye.includes(N),Ce=!Z;if((0,L.ZP)(Z&&Ie||!Z&&!Ie,"Expand state not sync with index check"),ye=Ce?(0,$t.L0)(ye,N):(0,$t._5)(ye,N),J.setExpandedKeys(ye),ct==null||ct(ye,{node:fe,expanded:Ce,nativeEvent:W.nativeEvent}),Ce&&ce){var Ae=J.onNodeLoad(fe);Ae&&Ae.then(function(){var st=(0,ot.oH)(J.state.treeData,ye,$e);J.setUncontrolledState({flattenNodes:st})}).catch(function(){var st=J.state.expandedKeys,lt=(0,$t._5)(st,N);J.setExpandedKeys(lt)})}}}),(0,g.Z)((0,_e.Z)(J),"onListChangeStart",function(){J.setUncontrolledState({listChanging:!0})}),(0,g.Z)((0,_e.Z)(J),"onListChangeEnd",function(){setTimeout(function(){J.setUncontrolledState({listChanging:!1})})}),(0,g.Z)((0,_e.Z)(J),"onActiveChange",function(W){var fe=J.state.activeKey,ye=J.props,tt=ye.onActiveChange,We=ye.itemScrollOffset,$e=We===void 0?0:We;fe!==W&&(J.setState({activeKey:W}),W!==null&&J.scrollTo({key:W,offset:$e}),tt==null||tt(W))}),(0,g.Z)((0,_e.Z)(J),"getActiveItem",function(){var W=J.state,fe=W.activeKey,ye=W.flattenNodes;return fe===null?null:ye.find(function(tt){var We=tt.key;return We===fe})||null}),(0,g.Z)((0,_e.Z)(J),"offsetActiveKey",function(W){var fe=J.state,ye=fe.flattenNodes,tt=fe.activeKey,We=ye.findIndex(function(ct){var ce=ct.key;return ce===tt});We===-1&&W<0&&(We=ye.length),We=(We+W+ye.length)%ye.length;var $e=ye[We];if($e){var et=$e.key;J.onActiveChange(et)}else J.onActiveChange(null)}),(0,g.Z)((0,_e.Z)(J),"onKeyDown",function(W){var fe=J.state,ye=fe.activeKey,tt=fe.expandedKeys,We=fe.checkedKeys,$e=fe.fieldNames,et=J.props,ct=et.onKeyDown,ce=et.checkable,Z=et.selectable;switch(W.which){case E.Z.UP:{J.offsetActiveKey(-1),W.preventDefault();break}case E.Z.DOWN:{J.offsetActiveKey(1),W.preventDefault();break}}var N=J.getActiveItem();if(N&&N.data){var Ie=J.getTreeNodeRequiredProps(),Ce=N.data.isLeaf===!1||!!(N.data[$e.children]||[]).length,Ae=(0,ot.F)((0,z.Z)((0,z.Z)({},(0,ot.H8)(ye,Ie)),{},{data:N.data,active:!0}));switch(W.which){case E.Z.LEFT:{Ce&&tt.includes(ye)?J.onNodeExpand({},Ae):N.parent&&J.onActiveChange(N.parent.key),W.preventDefault();break}case E.Z.RIGHT:{Ce&&!tt.includes(ye)?J.onNodeExpand({},Ae):N.children&&N.children.length&&J.onActiveChange(N.children[0].key),W.preventDefault();break}case E.Z.ENTER:case E.Z.SPACE:{ce&&!Ae.disabled&&Ae.checkable!==!1&&!Ae.disableCheckbox?J.onNodeCheck({},Ae,!We.includes(ye)):!ce&&Z&&!Ae.disabled&&Ae.selectable!==!1&&J.onNodeSelect({},Ae);break}}}ct==null||ct(W)}),(0,g.Z)((0,_e.Z)(J),"setUncontrolledState",function(W){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!J.destroyed){var tt=!1,We=!0,$e={};Object.keys(W).forEach(function(et){if(J.props.hasOwnProperty(et)){We=!1;return}tt=!0,$e[et]=W[et]}),tt&&(!fe||We)&&J.setState((0,z.Z)((0,z.Z)({},$e),ye))}}),(0,g.Z)((0,_e.Z)(J),"scrollTo",function(W){J.listRef.current.scrollTo(W)}),J}return(0,d.Z)(Xe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var M=this.props,Se=M.activeKey,be=M.itemScrollOffset,W=be===void 0?0:be;Se!==void 0&&Se!==this.state.activeKey&&(this.setState({activeKey:Se}),Se!==null&&this.scrollTo({key:Se,offset:W}))}},{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 M=this.state,Se=M.focused,be=M.flattenNodes,W=M.keyEntities,fe=M.draggingNodeKey,ye=M.activeKey,tt=M.dropLevelOffset,We=M.dropContainerKey,$e=M.dropTargetKey,et=M.dropPosition,ct=M.dragOverNodeKey,ce=M.indent,Z=this.props,N=Z.prefixCls,Ie=Z.className,Ce=Z.style,Ae=Z.showLine,st=Z.focusable,lt=Z.tabIndex,Fe=lt===void 0?0:lt,_t=Z.selectable,Ht=Z.showIcon,St=Z.icon,Bt=Z.switcherIcon,se=Z.draggable,ge=Z.checkable,Ee=Z.checkStrictly,k=Z.disabled,Y=Z.motion,pe=Z.loadData,de=Z.filterTreeNode,xe=Z.height,Be=Z.itemHeight,Ye=Z.scrollWidth,dt=Z.virtual,nt=Z.titleRender,Ue=Z.dropIndicatorRender,I=Z.onContextMenu,K=Z.onScroll,S=Z.direction,je=Z.rootClassName,De=Z.rootStyle,Le=(0,b.Z)(this.props,{aria:!0,data:!0}),He;se&&((0,ue.Z)(se)==="object"?He=se:typeof se=="function"?He={nodeDraggable:se}:He={});var Ge={prefixCls:N,selectable:_t,showIcon:Ht,icon:St,switcherIcon:Bt,draggable:He,draggingNodeKey:fe,checkable:ge,checkStrictly:Ee,disabled:k,keyEntities:W,dropLevelOffset:tt,dropContainerKey:We,dropTargetKey:$e,dropPosition:et,dragOverNodeKey:ct,indent:ce,direction:S,dropIndicatorRender:Ue,loadData:pe,filterTreeNode:de,titleRender:nt,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 V.createElement(q.k.Provider,{value:Ge},V.createElement("div",{className:p()(N,Ie,je,(0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(N,"-show-line"),Ae),"".concat(N,"-focused"),Se),"".concat(N,"-active-focused"),ye!==null)),style:De},V.createElement(Ve,(0,h.Z)({ref:this.listRef,prefixCls:N,style:Ce,data:be,disabled:k,selectable:_t,checkable:!!ge,motion:Y,dragging:fe!==null,height:xe,itemHeight:Be,virtual:dt,focusable:st,focused:Se,tabIndex:Fe,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:I,onScroll:K,scrollWidth:Ye},this.getTreeNodeRequiredProps(),Le))))}}],[{key:"getDerivedStateFromProps",value:function(M,Se){var be=Se.prevProps,W={prevProps:M};function fe(Fe){return!be&&M.hasOwnProperty(Fe)||be&&be[Fe]!==M[Fe]}var ye,tt=Se.fieldNames;if(fe("fieldNames")&&(tt=(0,ot.w$)(M.fieldNames),W.fieldNames=tt),fe("treeData")?ye=M.treeData:fe("children")&&((0,L.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ye=(0,ot.zn)(M.children)),ye){W.treeData=ye;var We=(0,ot.I8)(ye,{fieldNames:tt});W.keyEntities=(0,z.Z)((0,g.Z)({},O,Qe),We.keyEntities)}var $e=W.keyEntities||Se.keyEntities;if(fe("expandedKeys")||be&&fe("autoExpandParent"))W.expandedKeys=M.autoExpandParent||!be&&M.defaultExpandParent?(0,$t.r7)(M.expandedKeys,$e):M.expandedKeys;else if(!be&&M.defaultExpandAll){var et=(0,z.Z)({},$e);delete et[O];var ct=[];Object.keys(et).forEach(function(Fe){var _t=et[Fe];_t.children&&_t.children.length&&ct.push(_t.key)}),W.expandedKeys=ct}else!be&&M.defaultExpandedKeys&&(W.expandedKeys=M.autoExpandParent||M.defaultExpandParent?(0,$t.r7)(M.defaultExpandedKeys,$e):M.defaultExpandedKeys);if(W.expandedKeys||delete W.expandedKeys,ye||W.expandedKeys){var ce=(0,ot.oH)(ye||Se.treeData,W.expandedKeys||Se.expandedKeys,tt);W.flattenNodes=ce}if(M.selectable&&(fe("selectedKeys")?W.selectedKeys=(0,$t.BT)(M.selectedKeys,M):!be&&M.defaultSelectedKeys&&(W.selectedKeys=(0,$t.BT)(M.defaultSelectedKeys,M))),M.checkable){var Z;if(fe("checkedKeys")?Z=(0,$t.E6)(M.checkedKeys)||{}:!be&&M.defaultCheckedKeys?Z=(0,$t.E6)(M.defaultCheckedKeys)||{}:ye&&(Z=(0,$t.E6)(M.checkedKeys)||{checkedKeys:Se.checkedKeys,halfCheckedKeys:Se.halfCheckedKeys}),Z){var N=Z,Ie=N.checkedKeys,Ce=Ie===void 0?[]:Ie,Ae=N.halfCheckedKeys,st=Ae===void 0?[]:Ae;if(!M.checkStrictly){var lt=(0,It.S)(Ce,!0,$e);Ce=lt.checkedKeys,st=lt.halfCheckedKeys}W.checkedKeys=Ce,W.halfCheckedKeys=st}}return fe("loadedKeys")&&(W.loadedKeys=M.loadedKeys),W}}]),Xe}(V.Component);(0,g.Z)(ht,"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:F,allowDrop:function(){return!0},expandAction:!1}),(0,g.Z)(ht,"TreeNode",oe.Z);var Oe=ht,we=Oe},82661:function(Pn,Xt,_){"use strict";_.d(Xt,{BT:function(){return V},E6:function(){return F},L0:function(){return g},OM:function(){return L},_5:function(){return o},r7:function(){return H},wA:function(){return p},yx:function(){return A}});var h=_(94480),ue=_(76190),z=_(48736),ae=_(59301),B=_(639),d=_(65065),_e=_(34061),te=null;function o(R,w){if(!R)return[];var Q=R.slice(),re=Q.indexOf(w);return re>=0&&Q.splice(re,1),Q}function g(R,w){var Q=(R||[]).slice();return Q.indexOf(w)===-1&&Q.push(w),Q}function A(R){return R.split("-")}function p(R,w){var Q=[],re=(0,d.Z)(w,R);function $(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];oe.forEach(function(ve){var he=ve.key,ot=ve.children;Q.push(he),$(ot)})}return $(re.children),Q}function E(R){if(R.parent){var w=A(R.pos);return Number(w[w.length-1])===R.parent.children.length-1}return!1}function b(R){var w=A(R.pos);return Number(w[w.length-1])===0}function L(R,w,Q,re,$,oe,ve,he,ot,U){var C,P=R.clientX,G=R.clientY,ie=R.target.getBoundingClientRect(),X=ie.top,y=ie.height,v=(U==="rtl"?-1:1)*((($==null?void 0:$.x)||0)-P),O=(v-12)/re,me=ot.filter(function(we){var j;return(j=he[we])===null||j===void 0||(j=j.children)===null||j===void 0?void 0:j.length}),Qe=(0,d.Z)(he,Q.eventKey);if(G<X+y/2){var rt=ve.findIndex(function(we){return we.key===Qe.key}),Ct=rt<=0?0:rt-1,Rt=ve[Ct].key;Qe=(0,d.Z)(he,Rt)}var Vt=Qe.key,Qt=Qe,Ve=Qe.key,$t=0,It=0;if(!me.includes(Vt))for(var sn=0;sn<O&&E(Qe);sn+=1)Qe=Qe.parent,It+=1;var qe=w.data,ht=Qe.node,Oe=!0;return b(Qe)&&Qe.level===0&&G<X+y/2&&oe({dragNode:qe,dropNode:ht,dropPosition:-1})&&Qe.key===Q.eventKey?$t=-1:(Qt.children||[]).length&&me.includes(Ve)?oe({dragNode:qe,dropNode:ht,dropPosition:0})?$t=0:Oe=!1:It===0?O>-1.5?oe({dragNode:qe,dropNode:ht,dropPosition:1})?$t=1:Oe=!1:oe({dragNode:qe,dropNode:ht,dropPosition:0})?$t=0:oe({dragNode:qe,dropNode:ht,dropPosition:1})?$t=1:Oe=!1:oe({dragNode:qe,dropNode:ht,dropPosition:1})?$t=1:Oe=!1,{dropPosition:$t,dropLevelOffset:It,dropTargetKey:Qe.key,dropTargetPos:Qe.pos,dragOverNodeKey:Ve,dropContainerKey:$t===0?null:((C=Qe.parent)===null||C===void 0?void 0:C.key)||null,dropAllowed:Oe}}function V(R,w){if(R){var Q=w.multiple;return Q?R.slice():R.length?[R[0]]:R}}var q=function(w){return w};function le(R,w){if(!R)return[];var Q=w||{},re=Q.processProps,$=re===void 0?q:re,oe=Array.isArray(R)?R:[R];return oe.map(function(ve){var he=ve.children,ot=_objectWithoutProperties(ve,te),U=le(he,w);return React.createElement(TreeNode,_extends({key:ot.key},$(ot)),U)})}function F(R){if(!R)return null;var w;if(Array.isArray(R))w={checkedKeys:R,halfCheckedKeys:void 0};else if((0,ue.Z)(R)==="object")w={checkedKeys:R.checked||void 0,halfCheckedKeys:R.halfChecked||void 0};else return(0,z.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return w}function H(R,w){var Q=new Set;function re($){if(!Q.has($)){var oe=(0,d.Z)(w,$);if(oe){Q.add($);var ve=oe.parent,he=oe.node;he.disabled||ve&&re(ve.key)}}}return(R||[]).forEach(function($){re($)}),(0,h.Z)(Q)}},34643:function(Pn,Xt,_){"use strict";_.d(Xt,{S:function(){return _e}});var h=_(48736),ue=_(65065);function z(te,o){var g=new Set;return te.forEach(function(A){o.has(A)||g.add(A)}),g}function ae(te){var o=te||{},g=o.disabled,A=o.disableCheckbox,p=o.checkable;return!!(g||A)||p===!1}function B(te,o,g,A){for(var p=new Set(te),E=new Set,b=0;b<=g;b+=1){var L=o.get(b)||new Set;L.forEach(function(F){var H=F.key,R=F.node,w=F.children,Q=w===void 0?[]:w;p.has(H)&&!A(R)&&Q.filter(function(re){return!A(re.node)}).forEach(function(re){p.add(re.key)})})}for(var V=new Set,q=g;q>=0;q-=1){var le=o.get(q)||new Set;le.forEach(function(F){var H=F.parent,R=F.node;if(!(A(R)||!F.parent||V.has(F.parent.key))){if(A(F.parent.node)){V.add(H.key);return}var w=!0,Q=!1;(H.children||[]).filter(function(re){return!A(re.node)}).forEach(function(re){var $=re.key,oe=p.has($);w&&!oe&&(w=!1),!Q&&(oe||E.has($))&&(Q=!0)}),w&&p.add(H.key),Q&&E.add(H.key),V.add(H.key)}})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(z(E,p))}}function d(te,o,g,A,p){for(var E=new Set(te),b=new Set(o),L=0;L<=A;L+=1){var V=g.get(L)||new Set;V.forEach(function(H){var R=H.key,w=H.node,Q=H.children,re=Q===void 0?[]:Q;!E.has(R)&&!b.has(R)&&!p(w)&&re.filter(function($){return!p($.node)}).forEach(function($){E.delete($.key)})})}b=new Set;for(var q=new Set,le=A;le>=0;le-=1){var F=g.get(le)||new Set;F.forEach(function(H){var R=H.parent,w=H.node;if(!(p(w)||!H.parent||q.has(H.parent.key))){if(p(H.parent.node)){q.add(R.key);return}var Q=!0,re=!1;(R.children||[]).filter(function($){return!p($.node)}).forEach(function($){var oe=$.key,ve=E.has(oe);Q&&!ve&&(Q=!1),!re&&(ve||b.has(oe))&&(re=!0)}),Q||E.delete(R.key),re&&b.add(R.key),q.add(R.key)}})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(z(b,E))}}function _e(te,o,g,A){var p=[],E;A?E=A:E=ae;var b=new Set(te.filter(function(le){var F=!!(0,ue.Z)(g,le);return F||p.push(le),F})),L=new Map,V=0;Object.keys(g).forEach(function(le){var F=g[le],H=F.level,R=L.get(H);R||(R=new Set,L.set(H,R)),R.add(F),V=Math.max(V,H)}),(0,h.ZP)(!p.length,"Tree missing follow keys: ".concat(p.slice(0,100).map(function(le){return"'".concat(le,"'")}).join(", ")));var q;return o===!0?q=B(b,L,V,E):q=d(b,o.halfCheckedKeys,L,V,E),q}},65065:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return h}});function h(ue,z){return ue[z]}},34061:function(Pn,Xt,_){"use strict";_.d(Xt,{F:function(){return H},H8:function(){return F},I8:function(){return le},km:function(){return p},oH:function(){return V},w$:function(){return E},zn:function(){return L}});var h=_(76190),ue=_(94480),z=_(33885),ae=_(75931),B=_(11592),d=_(2738),_e=_(48736),te=_(65065),o=["children"];function g(R,w){return"".concat(R,"-").concat(w)}function A(R){return R&&R.type&&R.type.isTreeNode}function p(R,w){return R!=null?R:w}function E(R){var w=R||{},Q=w.title,re=w._title,$=w.key,oe=w.children,ve=Q||"title";return{title:ve,_title:re||[ve],key:$||"key",children:oe||"children"}}function b(R,w){var Q=new Map;function re($){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";($||[]).forEach(function(ve){var he=ve[w.key],ot=ve[w.children];warning(he!=null,"Tree node must have a certain key: [".concat(oe).concat(he,"]"));var U=String(he);warning(!Q.has(U)||he===null||he===void 0,"Same 'key' exist in the Tree: ".concat(U)),Q.set(U,!0),re(ot,"".concat(oe).concat(U," > "))})}re(R)}function L(R){function w(Q){var re=(0,B.Z)(Q);return re.map(function($){if(!A($))return(0,_e.ZP)(!$,"Tree/TreeNode can only accept TreeNode as children."),null;var oe=$.key,ve=$.props,he=ve.children,ot=(0,ae.Z)(ve,o),U=(0,z.Z)({key:oe},ot),C=w(he);return C.length&&(U.children=C),U}).filter(function($){return $})}return w(R)}function V(R,w,Q){var re=E(Q),$=re._title,oe=re.key,ve=re.children,he=new Set(w===!0?[]:w),ot=[];function U(C){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return C.map(function(G,ie){for(var X=g(P?P.pos:"0",ie),y=p(G[oe],X),v,O=0;O<$.length;O+=1){var me=$[O];if(G[me]!==void 0){v=G[me];break}}var Qe=Object.assign((0,d.Z)(G,[].concat((0,ue.Z)($),[oe,ve])),{title:v,key:y,parent:P,pos:X,children:null,data:G,isStart:[].concat((0,ue.Z)(P?P.isStart:[]),[ie===0]),isEnd:[].concat((0,ue.Z)(P?P.isEnd:[]),[ie===C.length-1])});return ot.push(Qe),w===!0||he.has(y)?Qe.children=U(G[ve]||[],Qe):Qe.children=[],Qe})}return U(R),ot}function q(R,w,Q){var re={};(0,h.Z)(Q)==="object"?re=Q:re={externalGetKey:Q},re=re||{};var $=re,oe=$.childrenPropName,ve=$.externalGetKey,he=$.fieldNames,ot=E(he),U=ot.key,C=ot.children,P=oe||C,G;ve?typeof ve=="string"?G=function(y){return y[ve]}:typeof ve=="function"&&(G=function(y){return ve(y)}):G=function(y,v){return p(y[U],v)};function ie(X,y,v,O){var me=X?X[P]:R,Qe=X?g(v.pos,y):"0",rt=X?[].concat((0,ue.Z)(O),[X]):[];if(X){var Ct=G(X,Qe),Rt={node:X,index:y,pos:Qe,key:Ct,parentPos:v.node?v.pos:null,level:v.level+1,nodes:rt};w(Rt)}me&&me.forEach(function(Vt,Qt){ie(Vt,Qt,{node:X,pos:Qe,level:v?v.level+1:-1},rt)})}ie(null)}function le(R){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=w.initWrapper,re=w.processEntity,$=w.onProcessFinished,oe=w.externalGetKey,ve=w.childrenPropName,he=w.fieldNames,ot=arguments.length>2?arguments[2]:void 0,U=oe||ot,C={},P={},G={posEntities:C,keyEntities:P};return Q&&(G=Q(G)||G),q(R,function(ie){var X=ie.node,y=ie.index,v=ie.pos,O=ie.key,me=ie.parentPos,Qe=ie.level,rt=ie.nodes,Ct={node:X,nodes:rt,index:y,key:O,pos:v,level:Qe},Rt=p(O,v);C[v]=Ct,P[Rt]=Ct,Ct.parent=C[me],Ct.parent&&(Ct.parent.children=Ct.parent.children||[],Ct.parent.children.push(Ct)),re&&re(Ct,G)},{externalGetKey:U,childrenPropName:ve,fieldNames:he}),$&&$(G),G}function F(R,w){var Q=w.expandedKeys,re=w.selectedKeys,$=w.loadedKeys,oe=w.loadingKeys,ve=w.checkedKeys,he=w.halfCheckedKeys,ot=w.dragOverNodeKey,U=w.dropPosition,C=w.keyEntities,P=(0,te.Z)(C,R),G={eventKey:R,expanded:Q.indexOf(R)!==-1,selected:re.indexOf(R)!==-1,loaded:$.indexOf(R)!==-1,loading:oe.indexOf(R)!==-1,checked:ve.indexOf(R)!==-1,halfChecked:he.indexOf(R)!==-1,pos:String(P?P.pos:""),dragOver:ot===R&&U===0,dragOverGapTop:ot===R&&U===-1,dragOverGapBottom:ot===R&&U===1};return G}function H(R){var w=R.data,Q=R.expanded,re=R.selected,$=R.checked,oe=R.loaded,ve=R.loading,he=R.halfChecked,ot=R.dragOver,U=R.dragOverGapTop,C=R.dragOverGapBottom,P=R.pos,G=R.active,ie=R.eventKey,X=(0,z.Z)((0,z.Z)({},w),{},{expanded:Q,selected:re,checked:$,loaded:oe,loading:ve,halfChecked:he,dragOver:ot,dragOverGapTop:U,dragOverGapBottom:C,pos:P,active:G,key:ie});return"props"in X||Object.defineProperty(X,"props",{get:function(){return(0,_e.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),R}}),X}},8224:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return ue}});var h=_(4676);function ue(z,ae,B,d){var _e=h.unstable_batchedUpdates?function(o){h.unstable_batchedUpdates(B,o)}:B;return z!=null&&z.addEventListener&&z.addEventListener(ae,_e,d),{remove:function(){z!=null&&z.removeEventListener&&z.removeEventListener(ae,_e,d)}}}},24514:function(Pn,Xt,_){"use strict";_.d(Xt,{G:function(){return ae}});var h=_(47273),ue=function(d){if((0,h.Z)()&&window.document.documentElement){var _e=Array.isArray(d)?d:[d],te=window.document.documentElement;return _e.some(function(o){return o in te.style})}return!1},z=function(d,_e){if(!ue(d))return!1;var te=document.createElement("div"),o=te.style[d];return te.style[d]=_e,te.style[d]!==o};function ae(B,d){return!Array.isArray(B)&&d!==void 0?z(B,d):ue(B)}},49658:function(Pn,Xt){"use strict";Xt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var _=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(_)||/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(_==null?void 0:_.substr(0,4))}},48911:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return qe}});var h=_(54476),ue=_(76190),z=_(33885),ae=_(20068),B=_(42978),d=_(75931),_e=_(92310),te=_.n(_e),o=_(29301),g=_(70425),A=_(34280),p=_(59301),E=_(4676),b=p.forwardRef(function(ht,Oe){var we=ht.height,j=ht.offsetY,ze=ht.offsetX,Xe=ht.children,J=ht.prefixCls,M=ht.onInnerResize,Se=ht.innerProps,be=ht.rtl,W=ht.extra,fe={},ye={display:"flex",flexDirection:"column"};return j!==void 0&&(fe={height:we,position:"relative",overflow:"hidden"},ye=(0,z.Z)((0,z.Z)({},ye),{},(0,ae.Z)((0,ae.Z)((0,ae.Z)((0,ae.Z)((0,ae.Z)({transform:"translateY(".concat(j,"px)")},be?"marginRight":"marginLeft",-ze),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:fe},p.createElement(o.Z,{onResize:function(We){var $e=We.offsetHeight;$e&&M&&M()}},p.createElement("div",(0,h.Z)({style:ye,className:te()((0,ae.Z)({},"".concat(J,"-holder-inner"),J)),ref:Oe},Se),Xe,W)))});b.displayName="Filler";var L=b;function V(ht){var Oe=ht.children,we=ht.setRef,j=p.useCallback(function(ze){we(ze)},[]);return p.cloneElement(Oe,{ref:j})}function q(ht,Oe,we,j,ze,Xe,J,M){var Se=M.getKey;return ht.slice(Oe,we+1).map(function(be,W){var fe=Oe+W,ye=J(be,fe,{style:{width:j},offsetX:ze}),tt=Se(be);return p.createElement(V,{key:tt,setRef:function($e){return Xe(be,$e)}},ye)})}function le(ht,Oe,we,j){var ze=we-ht,Xe=Oe-we,J=Math.min(ze,Xe)*2;if(j<=J){var M=Math.floor(j/2);return j%2?we+M+1:we-M}return ze>Xe?we-(j-Xe):we+(j-ze)}function F(ht,Oe,we){var j=ht.length,ze=Oe.length,Xe,J;if(j===0&&ze===0)return null;j<ze?(Xe=ht,J=Oe):(Xe=Oe,J=ht);var M={__EMPTY_ITEM__:!0};function Se(We){return We!==void 0?we(We):M}for(var be=null,W=Math.abs(j-ze)!==1,fe=0;fe<J.length;fe+=1){var ye=Se(Xe[fe]),tt=Se(J[fe]);if(ye!==tt){be=fe,W=W||ye!==Se(J[fe+1]);break}}return be===null?null:{index:be,multiple:W}}function H(ht,Oe,we){var j=p.useState(ht),ze=(0,B.Z)(j,2),Xe=ze[0],J=ze[1],M=p.useState(null),Se=(0,B.Z)(M,2),be=Se[0],W=Se[1];return p.useEffect(function(){var fe=F(Xe||[],ht||[],Oe);(fe==null?void 0:fe.index)!==void 0&&(we==null||we(fe.index),W(ht[fe.index])),J(ht)},[ht]),[be]}var R=_(16089),w=(typeof navigator=="undefined"?"undefined":(0,ue.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Q=w,re=function(ht,Oe,we,j){var ze=(0,p.useRef)(!1),Xe=(0,p.useRef)(null);function J(){clearTimeout(Xe.current),ze.current=!0,Xe.current=setTimeout(function(){ze.current=!1},50)}var M=(0,p.useRef)({top:ht,bottom:Oe,left:we,right:j});return M.current.top=ht,M.current.bottom=Oe,M.current.left=we,M.current.right=j,function(Se,be){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,fe=Se?be<0&&M.current.left||be>0&&M.current.right:be<0&&M.current.top||be>0&&M.current.bottom;return W&&fe?(clearTimeout(Xe.current),ze.current=!1):(!fe||ze.current)&&J(),!ze.current&&fe}};function $(ht,Oe,we,j,ze,Xe,J){var M=(0,p.useRef)(0),Se=(0,p.useRef)(null),be=(0,p.useRef)(null),W=(0,p.useRef)(!1),fe=re(Oe,we,j,ze);function ye(ce,Z){if(R.Z.cancel(Se.current),!fe(!1,Z)){var N=ce;if(!N._virtualHandled)N._virtualHandled=!0;else return;M.current+=Z,be.current=Z,Q||N.preventDefault(),Se.current=(0,R.Z)(function(){var Ie=W.current?10:1;J(M.current*Ie,!1),M.current=0})}}function tt(ce,Z){J(Z,!0),Q||ce.preventDefault()}var We=(0,p.useRef)(null),$e=(0,p.useRef)(null);function et(ce){if(ht){R.Z.cancel($e.current),$e.current=(0,R.Z)(function(){We.current=null},2);var Z=ce.deltaX,N=ce.deltaY,Ie=ce.shiftKey,Ce=Z,Ae=N;(We.current==="sx"||!We.current&&Ie&&N&&!Z)&&(Ce=N,Ae=0,We.current="sx");var st=Math.abs(Ce),lt=Math.abs(Ae);We.current===null&&(We.current=Xe&&st>lt?"x":"y"),We.current==="y"?ye(ce,Ae):tt(ce,Ce)}}function ct(ce){ht&&(W.current=ce.detail===be.current)}return[et,ct]}function oe(ht,Oe,we,j){var ze=p.useMemo(function(){return[new Map,[]]},[ht,we.id,j]),Xe=(0,B.Z)(ze,2),J=Xe[0],M=Xe[1],Se=function(W){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:W,ye=J.get(W),tt=J.get(fe);if(ye===void 0||tt===void 0)for(var We=ht.length,$e=M.length;$e<We;$e+=1){var et,ct=ht[$e],ce=Oe(ct);J.set(ce,$e);var Z=(et=we.get(ce))!==null&&et!==void 0?et:j;if(M[$e]=(M[$e-1]||0)+Z,ce===W&&(ye=$e),ce===fe&&(tt=$e),ye!==void 0&&tt!==void 0)break}return{top:M[ye-1]||0,bottom:M[tt]}};return Se}var ve=_(67732),he=_(83652),ot=function(){function ht(){(0,ve.Z)(this,ht),(0,ae.Z)(this,"maps",void 0),(0,ae.Z)(this,"id",0),(0,ae.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,he.Z)(ht,[{key:"set",value:function(we,j){this.diffRecords.set(we,this.maps[we]),this.maps[we]=j,this.id+=1}},{key:"get",value:function(we){return this.maps[we]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ht}(),U=ot;function C(ht){var Oe=parseFloat(ht);return isNaN(Oe)?0:Oe}function P(ht,Oe,we){var j=p.useState(0),ze=(0,B.Z)(j,2),Xe=ze[0],J=ze[1],M=(0,p.useRef)(new Map),Se=(0,p.useRef)(new U),be=(0,p.useRef)(0);function W(){be.current+=1}function fe(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;W();var We=function(){var ct=!1;M.current.forEach(function(ce,Z){if(ce&&ce.offsetParent){var N=ce.offsetHeight,Ie=getComputedStyle(ce),Ce=Ie.marginTop,Ae=Ie.marginBottom,st=C(Ce),lt=C(Ae),Fe=N+st+lt;Se.current.get(Z)!==Fe&&(Se.current.set(Z,Fe),ct=!0)}}),ct&&J(function(ce){return ce+1})};if(tt)We();else{be.current+=1;var $e=be.current;Promise.resolve().then(function(){$e===be.current&&We()})}}function ye(tt,We){var $e=ht(tt),et=M.current.get($e);We?(M.current.set($e,We),fe()):M.current.delete($e),!et!=!We&&(We?Oe==null||Oe(tt):we==null||we(tt))}return(0,p.useEffect)(function(){return W},[]),[ye,fe,Se.current,Xe]}var G=14/15;function ie(ht,Oe,we){var j=(0,p.useRef)(!1),ze=(0,p.useRef)(0),Xe=(0,p.useRef)(0),J=(0,p.useRef)(null),M=(0,p.useRef)(null),Se,be=function(tt){if(j.current){var We=Math.ceil(tt.touches[0].pageX),$e=Math.ceil(tt.touches[0].pageY),et=ze.current-We,ct=Xe.current-$e,ce=Math.abs(et)>Math.abs(ct);ce?ze.current=We:Xe.current=$e;var Z=we(ce,ce?et:ct,!1,tt);Z&&tt.preventDefault(),clearInterval(M.current),Z&&(M.current=setInterval(function(){ce?et*=G:ct*=G;var N=Math.floor(ce?et:ct);(!we(ce,N,!0)||Math.abs(N)<=.1)&&clearInterval(M.current)},16))}},W=function(){j.current=!1,Se()},fe=function(tt){Se(),tt.touches.length===1&&!j.current&&(j.current=!0,ze.current=Math.ceil(tt.touches[0].pageX),Xe.current=Math.ceil(tt.touches[0].pageY),J.current=tt.target,J.current.addEventListener("touchmove",be,{passive:!1}),J.current.addEventListener("touchend",W,{passive:!0}))};Se=function(){J.current&&(J.current.removeEventListener("touchmove",be),J.current.removeEventListener("touchend",W))},(0,A.Z)(function(){return ht&&Oe.current.addEventListener("touchstart",fe,{passive:!0}),function(){var ye;(ye=Oe.current)===null||ye===void 0||ye.removeEventListener("touchstart",fe),Se(),clearInterval(M.current)}},[ht])}function X(ht){return Math.floor(Math.pow(ht,.5))}function y(ht,Oe){var we="touches"in ht?ht.touches[0]:ht;return we[Oe?"pageX":"pageY"]-window[Oe?"scrollX":"scrollY"]}function v(ht,Oe,we){p.useEffect(function(){var j=Oe.current;if(ht&&j){var ze=!1,Xe,J,M=function(){R.Z.cancel(Xe)},Se=function ye(){M(),Xe=(0,R.Z)(function(){we(J),ye()})},be=function(){ze=!1,M()},W=function(tt){if(!(tt.target.draggable||tt.button!==0)){var We=tt;We._virtualHandled||(We._virtualHandled=!0,ze=!0)}},fe=function(tt){if(ze){var We=y(tt,!1),$e=j.getBoundingClientRect(),et=$e.top,ct=$e.bottom;if(We<=et){var ce=et-We;J=-X(ce),Se()}else if(We>=ct){var Z=We-ct;J=X(Z),Se()}else M()}};return j.addEventListener("mousedown",W),j.ownerDocument.addEventListener("mouseup",be),j.ownerDocument.addEventListener("mousemove",fe),j.ownerDocument.addEventListener("dragend",be),function(){j.removeEventListener("mousedown",W),j.ownerDocument.removeEventListener("mouseup",be),j.ownerDocument.removeEventListener("mousemove",fe),j.ownerDocument.removeEventListener("dragend",be),M()}}},[ht])}var O=10;function me(ht,Oe,we,j,ze,Xe,J,M){var Se=p.useRef(),be=p.useState(null),W=(0,B.Z)(be,2),fe=W[0],ye=W[1];return(0,A.Z)(function(){if(fe&&fe.times<O){if(!ht.current){ye(function(Y){return(0,z.Z)({},Y)});return}Xe();var tt=fe.targetAlign,We=fe.originAlign,$e=fe.index,et=fe.offset,ct=ht.current.clientHeight,ce=!1,Z=tt,N=null;if(ct){for(var Ie=tt||We,Ce=0,Ae=0,st=0,lt=Math.min(Oe.length-1,$e),Fe=0;Fe<=lt;Fe+=1){var _t=ze(Oe[Fe]);Ae=Ce;var Ht=we.get(_t);st=Ae+(Ht===void 0?j:Ht),Ce=st}for(var St=Ie==="top"?et:ct-et,Bt=lt;Bt>=0;Bt-=1){var se=ze(Oe[Bt]),ge=we.get(se);if(ge===void 0){ce=!0;break}if(St-=ge,St<=0)break}switch(Ie){case"top":N=Ae-et;break;case"bottom":N=st-ct+et;break;default:{var Ee=ht.current.scrollTop,k=Ee+ct;Ae<Ee?Z="top":st>k&&(Z="bottom")}}N!==null&&J(N),N!==fe.lastTop&&(ce=!0)}ce&&ye((0,z.Z)((0,z.Z)({},fe),{},{times:fe.times+1,targetAlign:Z,lastTop:N}))}},[fe,ht.current]),function(tt){if(tt==null){M();return}if(R.Z.cancel(Se.current),typeof tt=="number")J(tt);else if(tt&&(0,ue.Z)(tt)==="object"){var We,$e=tt.align;"index"in tt?We=tt.index:We=Oe.findIndex(function(ce){return ze(ce)===tt.key});var et=tt.offset,ct=et===void 0?0:et;ye({times:0,index:We,offset:ct,originAlign:$e})}}}var Qe=p.forwardRef(function(ht,Oe){var we=ht.prefixCls,j=ht.rtl,ze=ht.scrollOffset,Xe=ht.scrollRange,J=ht.onStartMove,M=ht.onStopMove,Se=ht.onScroll,be=ht.horizontal,W=ht.spinSize,fe=ht.containerSize,ye=ht.style,tt=ht.thumbStyle,We=ht.showScrollBar,$e=p.useState(!1),et=(0,B.Z)($e,2),ct=et[0],ce=et[1],Z=p.useState(null),N=(0,B.Z)(Z,2),Ie=N[0],Ce=N[1],Ae=p.useState(null),st=(0,B.Z)(Ae,2),lt=st[0],Fe=st[1],_t=!j,Ht=p.useRef(),St=p.useRef(),Bt=p.useState(We),se=(0,B.Z)(Bt,2),ge=se[0],Ee=se[1],k=p.useRef(),Y=function(){We===!0||We===!1||(clearTimeout(k.current),Ee(!0),k.current=setTimeout(function(){Ee(!1)},3e3))},pe=Xe-fe||0,de=fe-W||0,xe=p.useMemo(function(){if(ze===0||pe===0)return 0;var je=ze/pe;return je*de},[ze,pe,de]),Be=function(De){De.stopPropagation(),De.preventDefault()},Ye=p.useRef({top:xe,dragging:ct,pageY:Ie,startTop:lt});Ye.current={top:xe,dragging:ct,pageY:Ie,startTop:lt};var dt=function(De){ce(!0),Ce(y(De,be)),Fe(Ye.current.top),J(),De.stopPropagation(),De.preventDefault()};p.useEffect(function(){var je=function(Ge){Ge.preventDefault()},De=Ht.current,Le=St.current;return De.addEventListener("touchstart",je,{passive:!1}),Le.addEventListener("touchstart",dt,{passive:!1}),function(){De.removeEventListener("touchstart",je),Le.removeEventListener("touchstart",dt)}},[]);var nt=p.useRef();nt.current=pe;var Ue=p.useRef();Ue.current=de,p.useEffect(function(){if(ct){var je,De=function(Ge){var ft=Ye.current,kt=ft.dragging,Mt=ft.pageY,fn=ft.startTop;R.Z.cancel(je);var Pe=Ht.current.getBoundingClientRect(),Te=fe/(be?Pe.width:Pe.height);if(kt){var pt=(y(Ge,be)-Mt)*Te,mt=fn;!_t&&be?mt-=pt:mt+=pt;var Ot=nt.current,xt=Ue.current,Tt=xt?mt/xt:0,Zt=Math.ceil(Tt*Ot);Zt=Math.max(Zt,0),Zt=Math.min(Zt,Ot),je=(0,R.Z)(function(){Se(Zt,be)})}},Le=function(){ce(!1),M()};return window.addEventListener("mousemove",De,{passive:!0}),window.addEventListener("touchmove",De,{passive:!0}),window.addEventListener("mouseup",Le,{passive:!0}),window.addEventListener("touchend",Le,{passive:!0}),function(){window.removeEventListener("mousemove",De),window.removeEventListener("touchmove",De),window.removeEventListener("mouseup",Le),window.removeEventListener("touchend",Le),R.Z.cancel(je)}}},[ct]),p.useEffect(function(){return Y(),function(){clearTimeout(k.current)}},[ze]),p.useImperativeHandle(Oe,function(){return{delayHidden:Y}});var I="".concat(we,"-scrollbar"),K={position:"absolute",visibility:ge?null:"hidden"},S={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return be?(Object.assign(K,{height:8,left:0,right:0,bottom:0}),Object.assign(S,(0,ae.Z)({height:"100%",width:W},_t?"left":"right",xe))):(Object.assign(K,(0,ae.Z)({width:8,top:0,bottom:0},_t?"right":"left",0)),Object.assign(S,{width:"100%",height:W,top:xe})),p.createElement("div",{ref:Ht,className:te()(I,(0,ae.Z)((0,ae.Z)((0,ae.Z)({},"".concat(I,"-horizontal"),be),"".concat(I,"-vertical"),!be),"".concat(I,"-visible"),ge)),style:(0,z.Z)((0,z.Z)({},K),ye),onMouseDown:Be,onMouseMove:Y},p.createElement("div",{ref:St,className:te()("".concat(I,"-thumb"),(0,ae.Z)({},"".concat(I,"-thumb-moving"),ct)),style:(0,z.Z)((0,z.Z)({},S),tt),onMouseDown:dt}))}),rt=Qe,Ct=20;function Rt(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,we=ht/Oe*ht;return isNaN(we)&&(we=0),we=Math.max(we,Ct),Math.floor(we)}var Vt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Qt=[],Ve={overflowY:"auto",overflowAnchor:"none"};function $t(ht,Oe){var we=ht.prefixCls,j=we===void 0?"rc-virtual-list":we,ze=ht.className,Xe=ht.height,J=ht.itemHeight,M=ht.fullHeight,Se=M===void 0?!0:M,be=ht.style,W=ht.data,fe=ht.children,ye=ht.itemKey,tt=ht.virtual,We=ht.direction,$e=ht.scrollWidth,et=ht.component,ct=et===void 0?"div":et,ce=ht.onScroll,Z=ht.onVirtualScroll,N=ht.onVisibleChange,Ie=ht.innerProps,Ce=ht.extraRender,Ae=ht.styles,st=ht.showScrollBar,lt=st===void 0?"optional":st,Fe=(0,d.Z)(ht,Vt),_t=p.useCallback(function(vt){return typeof ye=="function"?ye(vt):vt==null?void 0:vt[ye]},[ye]),Ht=P(_t,null,null),St=(0,B.Z)(Ht,4),Bt=St[0],se=St[1],ge=St[2],Ee=St[3],k=!!(tt!==!1&&Xe&&J),Y=p.useMemo(function(){return Object.values(ge.maps).reduce(function(vt,Et){return vt+Et},0)},[ge.id,ge.maps]),pe=k&&W&&(Math.max(J*W.length,Y)>Xe||!!$e),de=We==="rtl",xe=te()(j,(0,ae.Z)({},"".concat(j,"-rtl"),de),ze),Be=W||Qt,Ye=(0,p.useRef)(),dt=(0,p.useRef)(),nt=(0,p.useRef)(),Ue=(0,p.useState)(0),I=(0,B.Z)(Ue,2),K=I[0],S=I[1],je=(0,p.useState)(0),De=(0,B.Z)(je,2),Le=De[0],He=De[1],Ge=(0,p.useState)(!1),ft=(0,B.Z)(Ge,2),kt=ft[0],Mt=ft[1],fn=function(){Mt(!0)},Pe=function(){Mt(!1)},Te={getKey:_t};function pt(vt){S(function(Et){var At;typeof vt=="function"?At=vt(Et):At=vt;var Kt=Xn(At);return Ye.current.scrollTop=Kt,Kt})}var mt=(0,p.useRef)({start:0,end:Be.length}),Ot=(0,p.useRef)(),xt=H(Be,_t),Tt=(0,B.Z)(xt,1),Zt=Tt[0];Ot.current=Zt;var tn=p.useMemo(function(){if(!k)return{scrollHeight:void 0,start:0,end:Be.length-1,offset:void 0};if(!pe){var vt;return{scrollHeight:((vt=dt.current)===null||vt===void 0?void 0:vt.offsetHeight)||0,start:0,end:Be.length-1,offset:void 0}}for(var Et=0,At,Kt,en,mn=Be.length,Bn=0;Bn<mn;Bn+=1){var hn=Be[Bn],xn=_t(hn),On=ge.get(xn),kn=Et+(On===void 0?J:On);kn>=K&&At===void 0&&(At=Bn,Kt=Et),kn>K+Xe&&en===void 0&&(en=Bn),Et=kn}return At===void 0&&(At=0,Kt=0,en=Math.ceil(Xe/J)),en===void 0&&(en=Be.length-1),en=Math.min(en+1,Be.length-1),{scrollHeight:Et,start:At,end:en,offset:Kt}},[pe,k,K,Be,Ee,Xe]),Ft=tn.scrollHeight,un=tn.start,dn=tn.end,qt=tn.offset;mt.current.start=un,mt.current.end=dn,p.useLayoutEffect(function(){var vt=ge.getRecord();if(vt.size===1){var Et=Array.from(vt.keys())[0],At=vt.get(Et),Kt=Be[un];if(Kt&&At===void 0){var en=_t(Kt);if(en===Et){var mn=ge.get(Et),Bn=mn-J;pt(function(hn){return hn+Bn})}}}ge.resetRecord()},[Ft]);var Pt=p.useState({width:0,height:Xe}),Ze=(0,B.Z)(Pt,2),at=Ze[0],Dt=Ze[1],Nt=function(Et){Dt({width:Et.offsetWidth,height:Et.offsetHeight})},nn=(0,p.useRef)(),it=(0,p.useRef)(),on=p.useMemo(function(){return Rt(at.width,$e)},[at.width,$e]),_n=p.useMemo(function(){return Rt(at.height,Ft)},[at.height,Ft]),An=Ft-Xe,Tn=(0,p.useRef)(An);Tn.current=An;function Xn(vt){var Et=vt;return Number.isNaN(Tn.current)||(Et=Math.min(Et,Tn.current)),Et=Math.max(Et,0),Et}var bn=K<=0,Zn=K>=An,Nn=Le<=0,Mn=Le>=$e,Dn=re(bn,Zn,Nn,Mn),yn=function(){return{x:de?-Le:Le,y:K}},Ln=(0,p.useRef)(yn()),pn=(0,g.zX)(function(vt){if(Z){var Et=(0,z.Z)((0,z.Z)({},yn()),vt);(Ln.current.x!==Et.x||Ln.current.y!==Et.y)&&(Z(Et),Ln.current=Et)}});function En(vt,Et){var At=vt;Et?((0,E.flushSync)(function(){He(At)}),pn()):pt(At)}function Rn(vt){var Et=vt.currentTarget.scrollTop;Et!==K&&pt(Et),ce==null||ce(vt),pn()}var Fn=function(Et){var At=Et,Kt=$e?$e-at.width:0;return At=Math.max(At,0),At=Math.min(At,Kt),At},Un=(0,g.zX)(function(vt,Et){Et?((0,E.flushSync)(function(){He(function(At){var Kt=At+(de?-vt:vt);return Fn(Kt)})}),pn()):pt(function(At){var Kt=At+vt;return Kt})}),jn=$(k,bn,Zn,Nn,Mn,!!$e,Un),mr=(0,B.Z)(jn,2),Me=mr[0],Re=mr[1];ie(k,Ye,function(vt,Et,At,Kt){var en=Kt;return Dn(vt,Et,At)?!1:!en||!en._virtualHandled?(en&&(en._virtualHandled=!0),Me({preventDefault:function(){},deltaX:vt?Et:0,deltaY:vt?0:Et}),!0):!1}),v(pe,Ye,function(vt){pt(function(Et){return Et+vt})}),(0,A.Z)(function(){function vt(At){var Kt=bn&&At.detail<0,en=Zn&&At.detail>0;k&&!Kt&&!en&&At.preventDefault()}var Et=Ye.current;return Et.addEventListener("wheel",Me,{passive:!1}),Et.addEventListener("DOMMouseScroll",Re,{passive:!0}),Et.addEventListener("MozMousePixelScroll",vt,{passive:!1}),function(){Et.removeEventListener("wheel",Me),Et.removeEventListener("DOMMouseScroll",Re),Et.removeEventListener("MozMousePixelScroll",vt)}},[k,bn,Zn]),(0,A.Z)(function(){if($e){var vt=Fn(Le);He(vt),pn({x:vt})}},[at.width,$e]);var ke=function(){var Et,At;(Et=nn.current)===null||Et===void 0||Et.delayHidden(),(At=it.current)===null||At===void 0||At.delayHidden()},ut=me(Ye,Be,ge,J,_t,function(){return se(!0)},pt,ke);p.useImperativeHandle(Oe,function(){return{nativeElement:nt.current,getScrollInfo:yn,scrollTo:function(Et){function At(Kt){return Kt&&(0,ue.Z)(Kt)==="object"&&("left"in Kt||"top"in Kt)}At(Et)?(Et.left!==void 0&&He(Fn(Et.left)),ut(Et.top)):ut(Et)}}}),(0,A.Z)(function(){if(N){var vt=Be.slice(un,dn+1);N(vt,Be)}},[un,dn,Be]);var gt=oe(Be,_t,ge,J),bt=Ce==null?void 0:Ce({start:un,end:dn,virtual:pe,offsetX:Le,offsetY:qt,rtl:de,getSize:gt}),zt=q(Be,un,dn,$e,Le,Bt,fe,Te),Ut=null;Xe&&(Ut=(0,z.Z)((0,ae.Z)({},Se?"height":"maxHeight",Xe),Ve),k&&(Ut.overflowY="hidden",$e&&(Ut.overflowX="hidden"),kt&&(Ut.pointerEvents="none")));var wt={};return de&&(wt.dir="rtl"),p.createElement("div",(0,h.Z)({ref:nt,style:(0,z.Z)((0,z.Z)({},be),{},{position:"relative"}),className:xe},wt,Fe),p.createElement(o.Z,{onResize:Nt},p.createElement(ct,{className:"".concat(j,"-holder"),style:Ut,ref:Ye,onScroll:Rn,onMouseEnter:ke},p.createElement(L,{prefixCls:j,height:Ft,offsetX:Le,offsetY:qt,scrollWidth:$e,onInnerResize:se,ref:dt,innerProps:Ie,rtl:de,extra:bt},zt))),pe&&Ft>Xe&&p.createElement(rt,{ref:nn,prefixCls:j,scrollOffset:K,scrollRange:Ft,rtl:de,onScroll:En,onStartMove:fn,onStopMove:Pe,spinSize:_n,containerSize:at.height,style:Ae==null?void 0:Ae.verticalScrollBar,thumbStyle:Ae==null?void 0:Ae.verticalScrollBarThumb,showScrollBar:lt}),pe&&$e>at.width&&p.createElement(rt,{ref:it,prefixCls:j,scrollOffset:Le,scrollRange:$e,rtl:de,onScroll:En,onStartMove:fn,onStopMove:Pe,spinSize:on,containerSize:at.width,horizontal:!0,style:Ae==null?void 0:Ae.horizontalScrollBar,thumbStyle:Ae==null?void 0:Ae.horizontalScrollBarThumb,showScrollBar:lt}))}var It=p.forwardRef($t);It.displayName="List";var sn=It,qe=sn},83145:function(Pn,Xt,_){"use strict";Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.CopyToClipboard=void 0;var h=z(_(59301)),ue=z(_(25769));function z(F){return F&&F.__esModule?F:{default:F}}function ae(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ae=function(R){return typeof R}:ae=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},ae(F)}function B(F,H){var R=Object.keys(F);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(F);H&&(w=w.filter(function(Q){return Object.getOwnPropertyDescriptor(F,Q).enumerable})),R.push.apply(R,w)}return R}function d(F){for(var H=1;H<arguments.length;H++){var R=arguments[H]!=null?arguments[H]:{};H%2?B(R,!0).forEach(function(w){q(F,w,R[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(R)):B(R).forEach(function(w){Object.defineProperty(F,w,Object.getOwnPropertyDescriptor(R,w))})}return F}function _e(F,H){if(F==null)return{};var R=te(F,H),w,Q;if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(F);for(Q=0;Q<re.length;Q++)w=re[Q],!(H.indexOf(w)>=0)&&Object.prototype.propertyIsEnumerable.call(F,w)&&(R[w]=F[w])}return R}function te(F,H){if(F==null)return{};var R={},w=Object.keys(F),Q,re;for(re=0;re<w.length;re++)Q=w[re],!(H.indexOf(Q)>=0)&&(R[Q]=F[Q]);return R}function o(F,H){if(!(F instanceof H))throw new TypeError("Cannot call a class as a function")}function g(F,H){for(var R=0;R<H.length;R++){var w=H[R];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(F,w.key,w)}}function A(F,H,R){return H&&g(F.prototype,H),R&&g(F,R),F}function p(F,H){return H&&(ae(H)==="object"||typeof H=="function")?H:b(F)}function E(F){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},E(F)}function b(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function L(F,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(H&&H.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),H&&V(F,H)}function V(F,H){return V=Object.setPrototypeOf||function(w,Q){return w.__proto__=Q,w},V(F,H)}function q(F,H,R){return H in F?Object.defineProperty(F,H,{value:R,enumerable:!0,configurable:!0,writable:!0}):F[H]=R,F}var le=function(F){L(H,F);function H(){var R,w;o(this,H);for(var Q=arguments.length,re=new Array(Q),$=0;$<Q;$++)re[$]=arguments[$];return w=p(this,(R=E(H)).call.apply(R,[this].concat(re))),q(b(w),"onClick",function(oe){var ve=w.props,he=ve.text,ot=ve.onCopy,U=ve.children,C=ve.options,P=h.default.Children.only(U),G=(0,ue.default)(he,C);ot&&ot(he,G),P&&P.props&&typeof P.props.onClick=="function"&&P.props.onClick(oe)}),w}return A(H,[{key:"render",value:function(){var w=this.props,Q=w.text,re=w.onCopy,$=w.options,oe=w.children,ve=_e(w,["text","onCopy","options","children"]),he=h.default.Children.only(oe);return h.default.cloneElement(he,d({},ve,{onClick:this.onClick}))}}]),H}(h.default.PureComponent);Xt.CopyToClipboard=le,q(le,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Pn,Xt,_){"use strict";var h=_(83145),ue=h.CopyToClipboard;ue.CopyToClipboard=ue,Pn.exports=ue},76374:function(Pn,Xt,_){"use strict";var h=function(){if(typeof Map!="undefined")return Map;function U(C,P){var G=-1;return C.some(function(ie,X){return ie[0]===P?(G=X,!0):!1}),G}return function(){function C(){this.__entries__=[]}return Object.defineProperty(C.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),C.prototype.get=function(P){var G=U(this.__entries__,P),ie=this.__entries__[G];return ie&&ie[1]},C.prototype.set=function(P,G){var ie=U(this.__entries__,P);~ie?this.__entries__[ie][1]=G:this.__entries__.push([P,G])},C.prototype.delete=function(P){var G=this.__entries__,ie=U(G,P);~ie&&G.splice(ie,1)},C.prototype.has=function(P){return!!~U(this.__entries__,P)},C.prototype.clear=function(){this.__entries__.splice(0)},C.prototype.forEach=function(P,G){G===void 0&&(G=null);for(var ie=0,X=this.__entries__;ie<X.length;ie++){var y=X[ie];P.call(G,y[1],y[0])}},C}()}(),ue=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,z=function(){return typeof _.g!="undefined"&&_.g.Math===Math?_.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),ae=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(z):function(U){return setTimeout(function(){return U(Date.now())},1e3/60)}}(),B=2;function d(U,C){var P=!1,G=!1,ie=0;function X(){P&&(P=!1,U()),G&&v()}function y(){ae(X)}function v(){var O=Date.now();if(P){if(O-ie<B)return;G=!0}else P=!0,G=!1,setTimeout(y,C);ie=O}return v}var _e=20,te=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",g=function(){function U(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=d(this.refresh.bind(this),_e)}return U.prototype.addObserver=function(C){~this.observers_.indexOf(C)||this.observers_.push(C),this.connected_||this.connect_()},U.prototype.removeObserver=function(C){var P=this.observers_,G=P.indexOf(C);~G&&P.splice(G,1),!P.length&&this.connected_&&this.disconnect_()},U.prototype.refresh=function(){var C=this.updateObservers_();C&&this.refresh()},U.prototype.updateObservers_=function(){var C=this.observers_.filter(function(P){return P.gatherActive(),P.hasActive()});return C.forEach(function(P){return P.broadcastActive()}),C.length>0},U.prototype.connect_=function(){!ue||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)},U.prototype.disconnect_=function(){!ue||!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)},U.prototype.onTransitionEnd_=function(C){var P=C.propertyName,G=P===void 0?"":P,ie=te.some(function(X){return!!~G.indexOf(X)});ie&&this.refresh()},U.getInstance=function(){return this.instance_||(this.instance_=new U),this.instance_},U.instance_=null,U}(),A=function(U,C){for(var P=0,G=Object.keys(C);P<G.length;P++){var ie=G[P];Object.defineProperty(U,ie,{value:C[ie],enumerable:!1,writable:!1,configurable:!0})}return U},p=function(U){var C=U&&U.ownerDocument&&U.ownerDocument.defaultView;return C||z},E=Q(0,0,0,0);function b(U){return parseFloat(U)||0}function L(U){for(var C=[],P=1;P<arguments.length;P++)C[P-1]=arguments[P];return C.reduce(function(G,ie){var X=U["border-"+ie+"-width"];return G+b(X)},0)}function V(U){for(var C=["top","right","bottom","left"],P={},G=0,ie=C;G<ie.length;G++){var X=ie[G],y=U["padding-"+X];P[X]=b(y)}return P}function q(U){var C=U.getBBox();return Q(0,0,C.width,C.height)}function le(U){var C=U.clientWidth,P=U.clientHeight;if(!C&&!P)return E;var G=p(U).getComputedStyle(U),ie=V(G),X=ie.left+ie.right,y=ie.top+ie.bottom,v=b(G.width),O=b(G.height);if(G.boxSizing==="border-box"&&(Math.round(v+X)!==C&&(v-=L(G,"left","right")+X),Math.round(O+y)!==P&&(O-=L(G,"top","bottom")+y)),!H(U)){var me=Math.round(v+X)-C,Qe=Math.round(O+y)-P;Math.abs(me)!==1&&(v-=me),Math.abs(Qe)!==1&&(O-=Qe)}return Q(ie.left,ie.top,v,O)}var F=function(){return typeof SVGGraphicsElement!="undefined"?function(U){return U instanceof p(U).SVGGraphicsElement}:function(U){return U instanceof p(U).SVGElement&&typeof U.getBBox=="function"}}();function H(U){return U===p(U).document.documentElement}function R(U){return ue?F(U)?q(U):le(U):E}function w(U){var C=U.x,P=U.y,G=U.width,ie=U.height,X=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,y=Object.create(X.prototype);return A(y,{x:C,y:P,width:G,height:ie,top:P,right:C+G,bottom:ie+P,left:C}),y}function Q(U,C,P,G){return{x:U,y:C,width:P,height:G}}var re=function(){function U(C){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Q(0,0,0,0),this.target=C}return U.prototype.isActive=function(){var C=R(this.target);return this.contentRect_=C,C.width!==this.broadcastWidth||C.height!==this.broadcastHeight},U.prototype.broadcastRect=function(){var C=this.contentRect_;return this.broadcastWidth=C.width,this.broadcastHeight=C.height,C},U}(),$=function(){function U(C,P){var G=w(P);A(this,{target:C,contentRect:G})}return U}(),oe=function(){function U(C,P,G){if(this.activeObservations_=[],this.observations_=new h,typeof C!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=C,this.controller_=P,this.callbackCtx_=G}return U.prototype.observe=function(C){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(C instanceof p(C).Element))throw new TypeError('parameter 1 is not of type "Element".');var P=this.observations_;P.has(C)||(P.set(C,new re(C)),this.controller_.addObserver(this),this.controller_.refresh())}},U.prototype.unobserve=function(C){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(C instanceof p(C).Element))throw new TypeError('parameter 1 is not of type "Element".');var P=this.observations_;P.has(C)&&(P.delete(C),P.size||this.controller_.removeObserver(this))}},U.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},U.prototype.gatherActive=function(){var C=this;this.clearActive(),this.observations_.forEach(function(P){P.isActive()&&C.activeObservations_.push(P)})},U.prototype.broadcastActive=function(){if(this.hasActive()){var C=this.callbackCtx_,P=this.activeObservations_.map(function(G){return new $(G.target,G.broadcastRect())});this.callback_.call(C,P,C),this.clearActive()}},U.prototype.clearActive=function(){this.activeObservations_.splice(0)},U.prototype.hasActive=function(){return this.activeObservations_.length>0},U}(),ve=typeof WeakMap!="undefined"?new WeakMap:new h,he=function(){function U(C){if(!(this instanceof U))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var P=g.getInstance(),G=new oe(C,P,this);ve.set(this,G)}return U}();["observe","unobserve","disconnect"].forEach(function(U){he.prototype[U]=function(){var C;return(C=ve.get(this))[U].apply(C,arguments)}});var ot=function(){return typeof z.ResizeObserver!="undefined"?z.ResizeObserver:he}();Xt.Z=ot},38710:function(Pn){var Xt=function(_){return _.replace(/[A-Z]/g,function(h){return"-"+h.toLowerCase()}).toLowerCase()};Pn.exports=Xt},98040:function(Pn){Pn.exports=function(){var Xt=document.getSelection();if(!Xt.rangeCount)return function(){};for(var _=document.activeElement,h=[],ue=0;ue<Xt.rangeCount;ue++)h.push(Xt.getRangeAt(ue));switch(_.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":_.blur();break;default:_=null;break}return Xt.removeAllRanges(),function(){Xt.type==="Caret"&&Xt.removeAllRanges(),Xt.rangeCount||h.forEach(function(z){Xt.addRange(z)}),_&&_.focus()}}},93314:function(Pn){"use strict";Pn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoK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Bk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},19251:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return ue}});var h=_(3208);function ue(z,ae){var B=typeof Symbol!="undefined"&&z[Symbol.iterator]||z["@@iterator"];if(!B){if(Array.isArray(z)||(B=(0,h.Z)(z))||ae&&z&&typeof z.length=="number"){B&&(z=B);var d=0,_e=function(){};return{s:_e,n:function(){return d>=z.length?{done:!0}:{done:!1,value:z[d++]}},e:function(p){throw p},f:_e}}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 te,o=!0,g=!1;return{s:function(){B=B.call(z)},n:function(){var p=B.next();return o=p.done,p},e:function(p){g=!0,te=p},f:function(){try{o||B.return==null||B.return()}finally{if(g)throw te}}}}},80360:function(Pn,Xt,_){"use strict";_.d(Xt,{ZP:function(){return _s}});const h=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},ue=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=z},z=Number.MAX_SAFE_INTEGER||9007199254740991;let ae=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}({}),B=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 _e={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},te={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 g{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 A(a,e,t){return(e=V(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function p(){return p=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},p.apply(null,arguments)}function E(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 b(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?E(Object(t),!0).forEach(function(n){A(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):E(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 V(a){var e=L(a,"string");return typeof e=="symbol"?e:e+""}class q{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=le,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 le=function(){},F={trace:le,debug:le,log:le,warn:le,info:le,error:le};function H(){return p({},F)}function R(a,e){const t=self.console[a];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${a}] >`):le}function w(a,e,t){return e[a]?e[a].bind(e):R(a,t)}const Q=H();function re(a,e,t){const n=H();if(typeof console=="object"&&a===!0||typeof a=="object"){const r=["debug","log","info","warn","error"];r.forEach(i=>{n[i]=w(i,a,t)});try{n.log(`Debug logs enabled for "${e}" in hls.js version 1.6.13`)}catch(i){return H()}r.forEach(i=>{Q[i]=w(i,a)})}else p(Q,n);return n}const $=Q;function oe(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function ve(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 ot(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}function U(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 C(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function P(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var G={exports:{}},ie;function X(){return ie||(ie=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 m=l.parseURL(c);if(!m)throw new Error("Error trying to parse base URL.");return m.path=l.normalizePath(m.path),l.buildURLFromParts(m)}var x=l.parseURL(u);if(!x)throw new Error("Error trying to parse relative URL.");if(x.scheme)return f.alwaysNormalize?(x.path=l.normalizePath(x.path),l.buildURLFromParts(x)):u;var T=l.parseURL(c);if(!T)throw new Error("Error trying to parse base URL.");if(!T.netLoc&&T.path&&T.path[0]!=="/"){var D=r.exec(T.path);T.netLoc=D[1],T.path=D[2]}T.netLoc&&!T.path&&(T.path="/");var ne={scheme:T.scheme,netLoc:x.netLoc,path:null,params:x.params,query:x.query,fragment:x.fragment};if(!x.netLoc&&(ne.netLoc=T.netLoc,x.path[0]!=="/"))if(!x.path)ne.path=T.path,x.params||(ne.params=T.params,x.query||(ne.query=T.query));else{var ee=T.path,Ne=ee.substring(0,ee.lastIndexOf("/")+1)+x.path;ne.path=l.normalizePath(Ne)}return ne.path===null&&(ne.path=f.alwaysNormalize?l.normalizePath(x.path):x.path),l.buildURLFromParts(ne)},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})()}(G)),G.exports}var y=X();class v{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 O={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class me{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={[O.AUDIO]:null,[O.VIDEO]:null,[O.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 v),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=y.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[O.AUDIO]=null,e[O.VIDEO]=null,e[O.AUDIOVIDEO]=null}}function Qe(a){return a.sn!=="initSegment"}class rt extends me{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.length){const e=this.byteRange[0],t=this.byteRange[1];if(h(e)&&h(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(){var e;const{levelkeys:t}=this;if(!t||t.NONE)return null;if(t.identity)this._decryptdata||(this._decryptdata=t.identity.getDecryptData(this.sn));else if(!((e=this._decryptdata)!=null&&e.keyId)){const n=Object.keys(t);if(n.length===1){const r=this._decryptdata=t[n[0]]||null;r&&(this._decryptdata=r.getDecryptData(this.sn,t))}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const e=h(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){var t;const n=Object.keys(this.levelkeys),r=n.length;if(r>1||r===1&&(t=this.levelkeys[n[0]])!=null&&t.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(!h(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return Qe(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){const t=this.levelkeys;if(t){var n;const r=t[e];r&&!((n=this._decryptdata)!=null&&n.keyId)&&(this._decryptdata=r.getDecryptData(this.sn,t))}}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 Ct extends me{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 Rt(a,e){const t=Object.getPrototypeOf(a);if(t){const n=Object.getOwnPropertyDescriptor(t,e);return n||Rt(t,e)}}function Vt(a,e){const t=Rt(a,e);t&&(t.enumerable=!0,Object.defineProperty(a,e,t))}const Qt=Math.pow(2,32)-1,Ve=[].push,$t={video:1,audio:2,id3:3,text:4};function It(a){return String.fromCharCode.apply(null,a)}function sn(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function qe(a,e){const t=Oe(a,e);return t<0?4294967296+t:t}function ht(a,e){let t=qe(a,e);return t*=Math.pow(2,32),t+=qe(a,e+4),t}function Oe(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function we(a){const e=a.byteLength;for(let t=0;t<e;){const n=qe(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 j(a,e){const t=[];if(!e.length)return t;const n=a.byteLength;for(let r=0;r<n;){const i=qe(a,r),s=It(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=j(a.subarray(r+8,l),e.slice(1));c.length&&Ve.apply(t,c)}r=l}return t}function ze(a){const e=[],t=a[0];let n=8;const r=qe(a,n);n+=4;let i=0,s=0;t===0?(i=qe(a,n),s=qe(a,n+4),n+=8):(i=ht(a,n),s=ht(a,n+8),n+=16),n+=2;let l=a.length+s;const c=sn(a,n);n+=2;for(let u=0;u<c;u++){let f=n;const m=qe(a,f);f+=4;const x=m&2147483647;if((m&2147483648)>>>31===1)return $.warn("SIDX has hierarchical references (not supported)"),null;const D=qe(a,f);f+=4,e.push({referenceSize:x,subsegmentDuration:D,info:{duration:D/r,start:l,end:l+x-1}}),l+=x,f+=4,n=f}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:c,references:e}}function Xe(a){const e=[],t=j(a,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=j(i,["tkhd"])[0];if(s){let l=s[0];const c=qe(s,l===0?12:20),u=j(i,["mdia","mdhd"])[0];if(u){l=u[0];const f=qe(u,l===0?12:20),m=j(i,["mdia","hdlr"])[0];if(m){const x=It(m.subarray(8,12)),T={soun:O.AUDIO,vide:O.VIDEO}[x],D=j(i,["mdia","minf","stbl","stsd"])[0],ne=J(D);T?(e[c]={timescale:f,type:T,stsd:ne},e[T]=b({timescale:f,id:c},ne)):e[c]={timescale:f,type:x,stsd:ne}}}}}return j(a,["moov","mvex","trex"]).forEach(r=>{const i=qe(r,4),s=e[i];s&&(s.default={duration:qe(r,12),flags:qe(r,20)})}),e}function J(a){const e=a.subarray(8),t=e.subarray(86),n=It(e.subarray(4,8));let r=n,i;const s=n==="enca"||n==="encv";if(s){const u=j(e,[n])[0].subarray(n==="enca"?28:78);j(u,["sinf"]).forEach(m=>{const x=j(m,["schm"])[0];if(x){const T=It(x.subarray(4,8));if(T==="cbcs"||T==="cenc"){const D=j(m,["frma"])[0];D&&(r=It(D))}}})}const l=r;switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const c=j(t,["avcC"])[0];c&&c.length>3&&(r+="."+W(c[1])+W(c[2])+W(c[3]),i=M(l==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const c=j(e,[n])[0],u=j(c.subarray(28),["esds"])[0];if(u&&u.length>7){let f=4;if(u[f++]!==3)break;f=be(u,f),f+=2;const m=u[f++];if(m&128&&(f+=2),m&64&&(f+=u[f++]),u[f++]!==4)break;f=be(u,f);const x=u[f++];if(x===64)r+="."+W(x);else break;if(f+=12,u[f++]!==5)break;f=be(u,f);const T=u[f++];let D=(T&248)>>3;D===31&&(D+=1+((T&7)<<3)+((u[f]&224)>>5)),r+="."+D}break}case"hvc1":case"hev1":{const c=j(t,["hvcC"])[0];if(c&&c.length>12){const u=c[1],f=["","A","B","C"][u>>6],m=u&31,x=qe(c,2),T=(u&32)>>5?"H":"L",D=c[12],ne=c.subarray(6,12);r+="."+f+m,r+="."+Se(x).toString(16).toUpperCase(),r+="."+T+D;let ee="";for(let Ne=ne.length;Ne--;){const Ke=ne[Ne];(Ke||ee)&&(ee="."+Ke.toString(16).toUpperCase()+ee)}r+=ee}i=M(l=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{r=M(r,t)||r;break}case"vp09":{const c=j(t,["vpcC"])[0];if(c&&c.length>6){const u=c[4],f=c[5],m=c[6]>>4&15;r+="."+fe(u)+"."+fe(f)+"."+fe(m)}break}case"av01":{const c=j(t,["av1C"])[0];if(c&&c.length>2){const u=c[1]>>>5,f=c[1]&31,m=c[2]>>>7?"H":"M",x=(c[2]&64)>>6,T=(c[2]&32)>>5,D=u===2&&x?T?12:10:x?10:8,ne=(c[2]&16)>>4,ee=(c[2]&8)>>3,Ne=(c[2]&4)>>2,Ke=c[2]&3;r+="."+u+"."+fe(f)+m+"."+fe(D)+"."+ne+"."+ee+Ne+Ke+"."+fe(1)+"."+fe(1)+"."+fe(1)+"."+0,i=M("dav1",t)}break}}return{codec:r,encrypted:s,supplemental:i}}function M(a,e){const t=j(e,["dvvC"]),n=t.length?t[0]:j(e,["dvcC"])[0];if(n){const r=n[2]>>1&127,i=n[2]<<5&32|n[3]>>3&31;return a+"."+fe(r)+"."+fe(i)}}function Se(a){let e=0;for(let t=0;t<32;t++)e|=(a>>t&1)<<31-t;return e>>>0}function be(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function W(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function fe(a){return(a<10?"0":"")+a}function ye(a,e){if(!a||!e)return;const t=e.keyId;t&&e.isCommonEncryption&&We(a,(n,r)=>{const i=n.subarray(8,24);i.some(s=>s!==0)||($.log(`[eme] Patching keyId in 'enc${r?"a":"v"}>sinf>>tenc' box: ${U(i)} -> ${U(t)}`),n.set(t,8))})}function tt(a){const e=[];return We(a,t=>e.push(t.subarray(8,24))),e}function We(a,e){j(a,["moov","trak"]).forEach(n=>{const r=j(n,["mdia","minf","stbl","stsd"])[0];if(!r)return;const i=r.subarray(8);let s=j(i,["enca"]);const l=s.length>0;l||(s=j(i,["encv"])),s.forEach(c=>{const u=l?c.subarray(28):c.subarray(78);j(u,["sinf"]).forEach(m=>{const x=$e(m);x&&e(x,l)})})})}function $e(a){const e=j(a,["schm"])[0];if(e){const t=It(e.subarray(4,8));if(t==="cbcs"||t==="cenc"){const n=j(a,["schi","tenc"])[0];if(n)return n}}}function et(a,e,t){const n={},r=j(a,["moof","traf"]);for(let i=0;i<r.length;i++){const s=r[i],l=j(s,["tfhd"])[0],c=qe(l,4),u=e[c];if(!u)continue;n[c]||(n[c]={start:NaN,duration:0,sampleCount:0,timescale:u.timescale,type:u.type});const f=n[c],m=j(s,["tfdt"])[0];if(m){const Je=m[0];let Lt=qe(m,4);Je===1&&(Lt===Qt?t.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(Lt*=Qt+1,Lt+=qe(m,8))),h(Lt)&&(!h(f.start)||Lt<f.start)&&(f.start=Lt)}const x=u.default,T=qe(l,0)|(x==null?void 0:x.flags);let D=(x==null?void 0:x.duration)||0;T&8&&(T&2?D=qe(l,12):D=qe(l,8));const ne=j(s,["trun"]);let ee=f.start||0,Ne=0,Ke=D;for(let Je=0;Je<ne.length;Je++){const Lt=ne[Je],jt=qe(Lt,4),vn=f.sampleCount;f.sampleCount+=jt;const Gt=Lt[3]&1,cn=Lt[3]&4,ln=Lt[2]&1,Jt=Lt[2]&2,In=Lt[2]&4,nr=Lt[2]&8;let fr=8,vr=jt;for(Gt&&(fr+=4),cn&&jt&&(!(Lt[fr+1]&1)&&f.keyFrameIndex===void 0&&(f.keyFrameIndex=vn),fr+=4,ln?(Ke=qe(Lt,fr),fr+=4):Ke=D,Jt&&(fr+=4),nr&&(fr+=4),ee+=Ke,Ne+=Ke,vr--);vr--;)ln?(Ke=qe(Lt,fr),fr+=4):Ke=D,Jt&&(fr+=4),In&&(Lt[fr+1]&1||f.keyFrameIndex===void 0&&(f.keyFrameIndex=f.sampleCount-(vr+1),f.keyFrameStart=ee),fr+=4),nr&&(fr+=4),ee+=Ke,Ne+=Ke;!Ne&&D&&(Ne+=D*jt)}f.duration+=Ne}if(!Object.keys(n).some(i=>n[i].duration)){let i=1/0,s=0;const l=j(a,["sidx"]);for(let c=0;c<l.length;c++){const u=ze(l[c]);if(u!=null&&u.references){i=Math.min(i,u.earliestPresentationTime/u.timescale);const f=u.references.reduce((m,x)=>m+x.info.duration||0,0);s=Math.max(s,f+u.earliestPresentationTime/u.timescale)}}s&&h(s)&&Object.keys(n).forEach(c=>{n[c].duration||(n[c].duration=s*n[c].timescale-n[c].start)})}return n}function ct(a){const e={valid:null,remainder:null},t=j(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 ce(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function Z(a,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return j(n,["moof"]).map(c=>{const u=c.byteOffset-8;j(c,["traf"]).map(m=>{const x=j(m,["tfdt"]).map(T=>{const D=T[0];let ne=qe(T,4);return D===1&&(ne*=Math.pow(2,32),ne+=qe(T,8)),ne/r})[0];return x!==void 0&&(a=x),j(m,["tfhd"]).map(T=>{const D=qe(T,4),ne=qe(T,0)&16777215,ee=(ne&1)!==0,Ne=(ne&2)!==0,Ke=(ne&8)!==0;let Je=0;const Lt=(ne&16)!==0;let jt=0;const vn=(ne&32)!==0;let Gt=8;D===i&&(ee&&(Gt+=8),Ne&&(Gt+=4),Ke&&(Je=qe(T,Gt),Gt+=4),Lt&&(jt=qe(T,Gt),Gt+=4),vn&&(Gt+=4),e.type==="video"&&(s=N(e.codec)),j(m,["trun"]).map(cn=>{const ln=cn[0],Jt=qe(cn,0)&16777215,In=(Jt&1)!==0;let nr=0;const fr=(Jt&4)!==0,vr=(Jt&256)!==0;let hr=0;const Qn=(Jt&512)!==0;let pr=0;const sr=(Jt&1024)!==0,gr=(Jt&2048)!==0;let Tr=0;const $n=qe(cn,4);let er=8;In&&(nr=qe(cn,er),er+=4),fr&&(er+=4);let Pr=nr+u;for(let zr=0;zr<$n;zr++){if(vr?(hr=qe(cn,er),er+=4):hr=Je,Qn?(pr=qe(cn,er),er+=4):pr=jt,sr&&(er+=4),gr&&(ln===0?Tr=qe(cn,er):Tr=Oe(cn,er),er+=4),e.type===O.VIDEO){let Nr=0;for(;Nr<pr;){const Or=qe(n,Pr);if(Pr+=4,Ie(s,n[Pr])){const _i=n.subarray(Pr,Pr+Or);Ce(_i,s?2:1,a+Tr/r,t)}Pr+=Or,Nr+=Or+4}}a+=hr/r}}))})})}),t}function N(a){if(!a)return!1;const e=a.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function Ie(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Ce(a,e,t,n){const r=Ae(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){$.error(`Malformed SEI payload. ${l} is too small, only ${u} bytes left to parse.`);break}if(s===4){if(r[f++]===181){const x=sn(r,f);if(f+=2,x===49){const T=qe(r,f);if(f+=4,T===1195456820){const D=r[f++];if(D===3){const ne=r[f++],ee=31&ne,Ne=64&ne,Ke=Ne?2+ee*3:0,Je=new Uint8Array(Ke);if(Ne){Je[0]=ne;for(let Lt=1;Lt<Ke;Lt++)Je[Lt]=r[f++]}n.push({type:D,payloadType:s,pts:t,bytes:Je})}}}}}else if(s===5&&l>16){const m=[];for(let D=0;D<16;D++){const ne=r[f++].toString(16);m.push(ne.length==1?"0"+ne:ne),(D===3||D===5||D===7||D===9)&&m.push("-")}const x=l-16,T=new Uint8Array(x);for(let D=0;D<x;D++)T[D]=r[f++];n.push({payloadType:s,pts:t,uuid:m.join(""),userData:ot(T),userDataBytes:T})}}}function Ae(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 st(a){const e=a[0];let t="",n="",r=0,i=0,s=0,l=0,c=0,u=0;if(e===0){for(;It(a.subarray(u,u+1))!=="\0";)t+=It(a.subarray(u,u+1)),u+=1;for(t+=It(a.subarray(u,u+1)),u+=1;It(a.subarray(u,u+1))!=="\0";)n+=It(a.subarray(u,u+1)),u+=1;n+=It(a.subarray(u,u+1)),u+=1,r=qe(a,12),i=qe(a,16),l=qe(a,20),c=qe(a,24),u=28}else if(e===1){u+=4,r=qe(a,u),u+=4;const m=qe(a,u);u+=4;const x=qe(a,u);for(u+=4,s=Nl(2,32)*m+x,ue(s)||(s=Number.MAX_SAFE_INTEGER,$.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=qe(a,u),u+=4,c=qe(a,u),u+=4;It(a.subarray(u,u+1))!=="\0";)t+=It(a.subarray(u,u+1)),u+=1;for(t+=It(a.subarray(u,u+1)),u+=1;It(a.subarray(u,u+1))!=="\0";)n+=It(a.subarray(u,u+1)),u+=1;n+=It(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 lt(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 Fe(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.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),lt([112,115,115,104],new Uint8Array([n,0,0,0]),a,i,r,s,t)}function _t(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=Ht(r);e.push(i),n+=i.size}}return e}function Ht(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=U(new Uint8Array(s,t+12,16));let c=null,u=null,f=0;if(i===0)f=28;else{const x=a.getUint32(28);if(!x||n<32+x*16)return{offset:t,size:e};c=[];for(let T=0;T<x;T++)c.push(new Uint8Array(s,t+32+T*16,16));f=32+x*16}if(!f)return{offset:t,size:e};const m=a.getUint32(f);return e-32<m?{offset:t,size:e}:(u=new Uint8Array(s,t+f+4,m),{version:i,systemId:l,kids:c,data:u,offset:t,size:e})}const St=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),Bt={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 se(a,e){const t=Bt[e];return!!t&&!!t[a.slice(0,4)]}function ge(a,e,t=!0){return!a.split(",").some(n=>!Ee(n,e,t))}function Ee(a,e,t=!0){var n;const r=oe(t);return(n=r==null?void 0:r.isTypeSupported(k(a,e)))!=null?n:!1}function k(a,e){return`${e}/mp4;codecs=${a}`}function Y(a){if(a){const e=a.substring(0,4);return Bt.video[e]}return 2}function pe(a){const e=St();return a.split(",").reduce((t,n)=>{const i=e&&N(n)?9:Bt.video[n];return i?(i*2+t)/(t?3:2):(Bt.audio[n]+t)/(t?2:1)},0)}const de={};function xe(a,e=!0){if(de[a])return de[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(Ee(t[r],"audio",e))return de[a]=t[r],t[r];if(t[r]==="mp3"&&(n=oe(e))!=null&&n.isTypeSupported("audio/mpeg"))return""}return a}const Be=/flac|opus|mp4a\.40\.34/i;function Ye(a,e=!0){return a.replace(Be,t=>xe(t.toLowerCase(),e))}function dt(a,e){const t=[];if(a){const n=a.split(",");for(let r=0;r<n.length;r++)se(n[r],"video")||t.push(n[r])}return e&&t.push(e),t.join(",")}function nt(a,e){if(a&&(a.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(a)!==-1)&&(Ue(a,"audio")||Ue(a,"video")))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 Ue(a,e){return se(a,e)&&Ee(a,e)}function I(a){const e=a.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");n.length>2&&n[0]==="avc1"&&(e[t]=`avc1.${parseInt(n[1]).toString(16)}${("000"+parseInt(n[2]).toString(16)).slice(-4)}`)}return e.join(",")}function K(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 S(a){const e=oe(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 je(a){return a.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const De={supported:!0,powerEfficient:!0,smooth:!0},Le={supported:!1,smooth:!1,powerEfficient:!1},He={supported:!0,configurations:[],decodingInfoResults:[De]};function Ge(a,e){return{supported:!1,configurations:e,decodingInfoResults:[Le],error:a}}function ft(a,e,t,n,r,i){const s=a.videoCodec,l=a.audioCodec?a.audioGroups:null,c=i==null?void 0:i.audioCodec,u=i==null?void 0:i.channels,f=u?parseInt(u):c?1/0:2;let m=null;if(l!=null&&l.length)try{l.length===1&&l[0]?m=e.groups[l[0]].channels:m=l.reduce((x,T)=>{if(T){const D=e.groups[T];if(!D)throw new Error(`Audio track group ${T} not found`);Object.keys(D.channels).forEach(ne=>{x[ne]=(x[ne]||0)+D.channels[ne]})}return x},{2:0})}catch(x){return!0}return s!==void 0&&(s.split(",").some(x=>N(x))||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))||!!m&&h(f)&&Object.keys(m).some(x=>parseInt(x)>f)}function kt(a,e,t,n={}){const r=a.videoCodec;if(!r&&!a.audioCodec||!t)return Promise.resolve(He);const i=[],s=Mt(a),l=s.length,c=fn(a,e,l>0),u=c.length;for(let f=l||1*u||1;f--;){const m={type:"media-source"};if(l&&(m.video=s[f%l]),u){m.audio=c[f%u];const x=m.audio.bitrate;m.video&&x&&(m.video.bitrate-=x)}i.push(m)}if(r){const f=navigator.userAgent;if(r.split(",").some(m=>N(m))&&St())return Promise.resolve(Ge(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${f})`),i))}return Promise.all(i.map(f=>{const m=pt(f);return n[m]||(n[m]=t.decodingInfo(f))})).then(f=>({supported:!f.some(m=>!m.supported),configurations:i,decodingInfoResults:f})).catch(f=>({supported:!1,configurations:i,decodingInfoResults:[],error:f}))}function Mt(a){var e;const t=(e=a.videoCodec)==null?void 0:e.split(","),n=Te(a),r=a.width||640,i=a.height||480,s=a.frameRate||30,l=a.videoRange.toLowerCase();return t?t.map(c=>{const u={contentType:k(K(c),"video"),width:r,height:i,bitrate:n,framerate:s};return l!=="sdr"&&(u.transferFunction=l),u}):[]}function fn(a,e,t){var n;const r=(n=a.audioCodec)==null?void 0:n.split(","),i=Te(a);return r&&a.audioGroups?a.audioGroups.reduce((s,l)=>{var c;const u=l?(c=e.groups[l])==null?void 0:c.tracks:null;return u?u.reduce((f,m)=>{if(m.groupId===l){const x=parseFloat(m.channels||"");r.forEach(T=>{const D={contentType:k(T,"audio"),bitrate:t?Pe(T,i):i};x&&(D.channels=""+x),f.push(D)})}return f},s):s},[]):[]}function Pe(a,e){if(e<=1)return 1;let t=128e3;return a==="ec-3"?t=768e3:a==="ac-3"&&(t=64e4),Math.min(e/2,t)}function Te(a){return Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)/1e3)*1e3||1}function pt(a){let e="";const{audio:t,video:n}=a;if(n){const r=je(n.contentType);e+=`${r}_r${n.height}x${n.width}f${Math.ceil(n.framerate)}${n.transferFunction||"sd"}_${Math.ceil(n.bitrate/1e5)}`}if(t){const r=je(t.contentType);e+=`${n?"_":""}${r}_c${t.channels}`}return e}const mt=["NONE","TYPE-0","TYPE-1",null];function Ot(a){return mt.indexOf(a)>-1}const xt=["SDR","PQ","HLG"];function Tt(a){return!!a&&xt.indexOf(a)>-1}var Zt={No:"",Yes:"YES",v2:"v2"};function tn(a){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=a,r=n<e/2;return e&&r?t?Zt.v2:Zt.Yes:Zt.No}class Ft{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 un{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 dn(this._audioGroups,e)}hasSubtitleGroup(e){return dn(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 dn(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function qt(){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 Pt(a,e){let t=!1,n=[];if(a&&(t=a!=="SDR",n=[a]),e){n=e.allowedVideoRanges||xt.slice(0);const r=n.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:r&&qt(),t||(n=["SDR"])}return{preferHDR:t,allowedVideoRanges:n}}const Ze=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}},at=(a,e)=>JSON.stringify(a,Ze(e));function Dt(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,m=!1,x=1/0,T=1/0,D=1/0,ne=1/0,ee=0,Ne=[];const{preferHDR:Ke,allowedVideoRanges:Je}=Pt(e,r);for(let cn=i.length;cn--;){const ln=a[i[cn]];f||(f=ln.channels[2]>0),x=Math.min(x,ln.minHeight),T=Math.min(T,ln.minFramerate),D=Math.min(D,ln.minBitrate),Je.filter(In=>ln.videoRanges[In]>0).length>0&&(m=!0)}x=h(x)?x:0,T=h(T)?T:0;const Lt=Math.max(1080,x),jt=Math.max(30,T);D=h(D)?D:t,t=Math.max(D,t),m||(e=void 0);const vn=i.length>1;return{codecSet:i.reduce((cn,ln)=>{const Jt=a[ln];if(ln===cn)return cn;if(Ne=m?Je.filter(In=>Jt.videoRanges[In]>0):[],vn){if(Jt.minBitrate>t)return Nt(ln,`min bitrate of ${Jt.minBitrate} > current estimate of ${t}`),cn;if(!Jt.hasDefaultAudio)return Nt(ln,"no renditions with default or auto-select sound found"),cn;if(l&&ln.indexOf(l.substring(0,4))%5!==0)return Nt(ln,`audio codec preference "${l}" not found`),cn;if(s&&!u){if(!Jt.channels[s])return Nt(ln,`no renditions with ${s} channel sound found (channels options: ${Object.keys(Jt.channels)})`),cn}else if((!l||u)&&f&&Jt.channels[2]===0)return Nt(ln,"no renditions with stereo sound found"),cn;if(Jt.minHeight>Lt)return Nt(ln,`min resolution of ${Jt.minHeight} > maximum of ${Lt}`),cn;if(Jt.minFramerate>jt)return Nt(ln,`min framerate of ${Jt.minFramerate} > maximum of ${jt}`),cn;if(!Ne.some(In=>Jt.videoRanges[In]>0))return Nt(ln,`no variants with VIDEO-RANGE of ${at(Ne)} found`),cn;if(c&&ln.indexOf(c.substring(0,4))%5!==0)return Nt(ln,`video codec preference "${c}" not found`),cn;if(Jt.maxScore<ee)return Nt(ln,`max score of ${Jt.maxScore} < selected max of ${ee}`),cn}return cn&&(pe(ln)>=pe(cn)||Jt.fragmentError>a[cn].fragmentError)?cn:(ne=Jt.minIndex,ee=Jt.maxScore,ln)},void 0),videoRanges:Ne,preferHDR:Ke,minFramerate:T,minBitrate:D,minIndex:ne}}function Nt(a,e){$.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function nn(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 it(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 m=e.groups[f];m&&(c.hasDefaultAudio=c.hasDefaultAudio||e.hasDefaultAudio?m.hasDefault:m.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(m.channels).forEach(x=>{c.channels[x]=(c.channels[x]||0)+m.channels[x]}))}),r},{})}function on(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 _n(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(An(a,r,t))return n}return-1}function An(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||Tn(i,e.lang))&&(i===void 0||e.assocLang===s)&&(l===void 0||e.default===l)&&(c===void 0||e.forced===c)&&(!("characteristics"in a)||Xn(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function Tn(a,e="--"){return a.length===e.length?a===e:a.startsWith(e)||e.startsWith(a)}function Xn(a,e=""){const t=a.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function bn(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 Zn(a,e,t,n,r){const i=e[n],l=e.reduce((x,T,D)=>{const ne=T.uri;return(x[ne]||(x[ne]=[])).push(D),x},{})[i.uri];l.length>1&&(n=Math.max.apply(Math,l));const c=i.videoRange,u=i.frameRate,f=i.codecSet.substring(0,4),m=Nn(e,n,x=>{if(x.videoRange!==c||x.frameRate!==u||x.codecSet.substring(0,4)!==f)return!1;const T=x.audioGroups,D=t.filter(ne=>!T||T.indexOf(ne.groupId)!==-1);return _n(a,D,r)>-1});return m>-1?m:Nn(e,n,x=>{const T=x.audioGroups,D=t.filter(ne=>!T||T.indexOf(ne.groupId)!==-1);return _n(a,D,r)>-1})}function Nn(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 Mn(a,e){var t;return!!a&&a!==((t=e.loadLevelObj)==null?void 0:t.uri)}class Dn extends q{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.supportedCache={},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,m=i?i.duration:r.duration,x=u-f.loading.start,T=s.minAutoLevel,D=r.level,ne=this._nextAutoLevel;if(f.aborted||f.loaded&&f.loaded===f.total||D<=T){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const ee=ne>-1&&ne!==D,Ne=!!t||ee;if(!Ne&&(c.paused||!c.playbackRate||!c.readyState))return;const Ke=s.mainForwardBufferInfo;if(!Ne&&Ke===null)return;const Je=this.bwEstimator.getEstimateTTFB(),Lt=Math.abs(c.playbackRate);if(x<=Math.max(Je,1e3*(m/(Lt*2))))return;const jt=Ke?Ke.len/Lt:0,vn=f.loading.first?f.loading.first-f.loading.start:-1,Gt=f.loaded&&vn>-1,cn=this.getBwEstimate(),ln=s.levels,Jt=ln[D],In=Math.max(f.loaded,Math.round(m*(r.bitrate||Jt.averageBitrate)/8));let nr=Gt?x-vn:x;nr<1&&Gt&&(nr=Math.min(x,f.loaded*8/cn));const fr=Gt?f.loaded*1e3/nr:0,vr=Je/1e3,hr=fr?(In-f.loaded)/fr:In*8/cn+vr;if(hr<=jt)return;const Qn=fr?fr*8:cn,pr=((n=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:n.live)===!0,sr=this.hls.config.abrBandWidthUpFactor;let gr=Number.POSITIVE_INFINITY,Tr;for(Tr=D-1;Tr>T;Tr--){const zr=ln[Tr].maxBitrate,Nr=!ln[Tr].details||pr;if(gr=this.getTimeToLoadFrag(vr,Qn,m*zr,Nr),gr<Math.min(jt,m+vr))break}if(gr>=hr||gr>m*10)return;Gt?this.bwEstimator.sample(x-Math.min(Je,vn),f.loaded):this.bwEstimator.sampleTTFB(x);const $n=ln[Tr].maxBitrate;this.getBwEstimate()*sr>$n&&this.resetEstimator($n);const er=this.findBestLevel($n,T,Tr,0,jt,1,1);er>-1&&(Tr=er),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: ${jt.toFixed(3)} s
|
|
Estimated load time for current fragment: ${hr.toFixed(3)} s
|
|
Estimated load time for down switch fragment: ${gr.toFixed(3)} s
|
|
TTFB estimate: ${vn|0} ms
|
|
Current BW estimate: ${h(cn)?cn|0:"Unknown"} bps
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
Switching to level ${Tr} @ ${$n|0} bps`),s.nextLoadLevel=s.nextAutoLevel=Tr,this.clearTimer();const Pr=()=>{if(this.clearTimer(),this.fragCurrent===r&&this.hls.loadLevel===Tr&&Tr>0){const zr=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${Tr>0?"and switching down":""}
|
|
Fragment duration: ${r.duration.toFixed(3)} s
|
|
Time to underbuffer: ${zr.toFixed(3)} s`),r.abortRequests(),this.fragCurrent=this.partCurrent=null,Tr>T){let Nr=this.findBestLevel(this.hls.levels[T].bitrate,T,Tr,0,zr,1,1);Nr===-1&&(Nr=T),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Nr,this.resetEstimator(this.hls.levels[Nr].bitrate)}}};ee||hr>gr*2?Pr():this.timer=self.setInterval(Pr,gr*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 g(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=this.supportedCache=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.supportedCache={},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 B.BUFFER_ADD_CODEC_ERROR:case B.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case B.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 m=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(c-Math.min(m,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;h(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===te.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!==te.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,m=i.abrBandWidthUpFactor;if(u){const ee=this.findBestLevel(c,s,r,u,0,f,m);if(ee>=0)return this.rebufferNotice=-1,ee}let x=l?Math.min(l,i.maxStarvationDelay):i.maxStarvationDelay;if(!u){const ee=this.bitrateTestDelay;ee&&(x=(l?Math.min(l,i.maxLoadingDelay):i.maxLoadingDelay)-ee,this.info(`bitrate test took ${Math.round(1e3*ee)}ms, set first fragment max fetchDuration to ${Math.round(1e3*x)} ms`),f=m=1)}const T=this.findBestLevel(c,s,r,u,x,f,m);if(this.rebufferNotice!==T&&(this.rebufferNotice=T,this.info(`${u?"rebuffering expected":"buffer is empty"}, optimal quality level ${T}`)),T>-1)return T;const D=n.levels[s],ne=n.loadLevelObj;return ne&&(D==null?void 0:D.bitrate)<ne.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,m=f===-1?this.hls.firstLevel:f,{fragCurrent:x,partCurrent:T}=this,{levels:D,allAudioTracks:ne,loadLevel:ee,config:Ne}=this.hls;if(D.length===1)return 0;const Ke=D[m],Je=!!((c=this.hls.latestLevelDetails)!=null&&c.live),Lt=ee===-1||f===-1;let jt,vn="SDR",Gt=(Ke==null?void 0:Ke.frameRate)||0;const{audioPreference:cn,videoPreference:ln}=Ne,Jt=this.audioTracksByGroup||(this.audioTracksByGroup=nn(ne));let In=-1;if(Lt){if(this.firstSelection!==-1)return this.firstSelection;const Qn=this.codecTiers||(this.codecTiers=it(D,Jt,t,n)),pr=Dt(Qn,vn,e,cn,ln),{codecSet:sr,videoRanges:gr,minFramerate:Tr,minBitrate:$n,minIndex:er,preferHDR:Pr}=pr;In=er,jt=sr,vn=Pr?gr[gr.length-1]:gr[0],Gt=Tr,e=Math.max(e,$n),this.log(`picked start tier ${at(pr)}`)}else jt=Ke==null?void 0:Ke.codecSet,vn=Ke==null?void 0:Ke.videoRange;const nr=T?T.duration:x?x.duration:0,fr=this.bwEstimator.getEstimateTTFB()/1e3,vr=[];for(let Qn=n;Qn>=t;Qn--){var hr;const pr=D[Qn],sr=Qn>m;if(!pr)continue;if(Ne.useMediaCapabilities&&!pr.supportedResult&&!pr.supportedPromise){const Nr=navigator.mediaCapabilities;typeof(Nr==null?void 0:Nr.decodingInfo)=="function"&&ft(pr,Jt,vn,Gt,e,cn)?(pr.supportedPromise=kt(pr,Jt,Nr,this.supportedCache),pr.supportedPromise.then(Or=>{if(!this.hls)return;pr.supportedResult=Or;const _i=this.hls.levels,vi=_i.indexOf(pr);Or.error?this.warn(`MediaCapabilities decodingInfo error: "${Or.error}" for level ${vi} ${at(Or)}`):Or.supported?Or.decodingInfoResults.some(Oi=>Oi.smooth===!1||Oi.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${vi} not smooth or powerEfficient: ${at(Or)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${vi} ${at(Or)}`),vi>-1&&_i.length>1&&(this.log(`Removing unsupported level ${vi}`),this.hls.removeLevel(vi),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(Or=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${Or}`)})):pr.supportedResult=He}if((jt&&pr.codecSet!==jt||vn&&pr.videoRange!==vn||sr&&Gt>pr.frameRate||!sr&&Gt>0&&Gt<pr.frameRate||(hr=pr.supportedResult)!=null&&(hr=hr.decodingInfoResults)!=null&&hr.some(Nr=>Nr.smooth===!1))&&(!Lt||Qn!==In)){vr.push(Qn);continue}const gr=pr.details,Tr=(T?gr==null?void 0:gr.partTarget:gr==null?void 0:gr.averagetargetduration)||nr;let $n;sr?$n=l*e:$n=s*e;const er=nr&&r>=nr*2&&i===0?pr.averageBitrate:pr.maxBitrate,Pr=this.getTimeToLoadFrag(fr,$n,er*Tr,gr===void 0);if($n>=er&&(Qn===f||pr.loadError===0&&pr.fragmentError===0)&&(Pr<=fr||!h(Pr)||Je&&!this.bitrateTestDelay||Pr<u)){const Nr=this.forcedAutoLevel;return Qn!==ee&&(Nr===-1||Nr!==ee)&&(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 "${jt}" ${vn}`),this.info(`switch candidate:${m}->${Qn} adjustedbw(${Math.round($n)})-bitrate=${Math.round($n-er)} ttfb:${fr.toFixed(1)} avgDuration:${Tr.toFixed(1)} maxFetchDuration:${u.toFixed(1)} fetchDuration:${Pr.toFixed(1)} firstSelection:${Lt} codecSet:${pr.codecSet} videoRange:${pr.videoRange} hls.loadLevel:${ee}`)),Lt&&(this.firstSelection=Qn),Qn}}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 yn={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 Ln(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!h(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;for(let i=0;i<a.length;++i){const s=a[i];if(Fn(e,t,s))return s}return null}function pn(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)&&Rn(t,n,i)===0||En(i,a,Math.min(r,n))))return i;const s=yn.search(e,Rn.bind(null,t,n));return s&&(s!==a||!i)?s:i}function En(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 Rn(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 Fn(a,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>a}function Un(a,e,t){if(a&&a.startCC<=e&&a.endCC>=e){let n=a.fragments;const{fragmentHint:r}=a;r&&(n=n.concat(r));let i;return yn.search(n,s=>s.cc<e?1:s.cc>e?-1:(i=s,s.end<=t?1:s.start>t?-1:0)),i||null}return null}function jn(a){switch(a.details){case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_TIMEOUT:case B.LEVEL_LOAD_TIMEOUT:case B.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function mr(a){return a.details.startsWith("key")}function Me(a){return mr(a)&&!!a.frag&&!a.frag.decryptdata}function Re(a,e){const t=jn(e);return a.default[`${t?"timeout":"error"}Retry`]}function ke(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function ut(a){return b(b({},a),{errorRetry:null,timeoutRetry:null})}function gt(a,e,t,n){if(!a)return!1;const r=n==null?void 0:n.code,i=e<a.maxNumRetry&&(bt(r)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,n,i):i}function bt(a){return zt(a)||!!a&&(a<400||a>499)}function zt(a){return a===0&&navigator.onLine===!1}var Ut={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},wt={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4,SwitchToSDR:8};class vt extends q{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,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}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===te.MAIN?e.level:this.getVariantIndex()}getVariantIndex(){var e;const t=this.hls,n=t.currentLevel;return(e=t.loadLevelObj)!=null&&e.details||n===-1?t.loadLevel:n}variantHasKey(e,t){if(e){var n;if((n=e.details)!=null&&n.hasKey(t))return!0;const r=e.audioGroups;if(r)return this.hls.allAudioTracks.filter(s=>r.indexOf(s.groupId)>=0).some(s=>{var l;return(l=s.details)==null?void 0:l.hasKey(t)})}return!1}onManifestLoading(){this.playlistError=0}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const r=this.hls,i=t.context;switch(t.details){case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case B.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction=Et();return}case B.FRAG_GAP:case B.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Ut.SendAlternateToPenaltyBox;return}case B.LEVEL_EMPTY_ERROR:case B.LEVEL_PARSING_ERROR:{var s;const c=t.parent===te.MAIN?t.level:r.loadLevel;t.details===B.LEVEL_EMPTY_ERROR&&((s=t.context)!=null&&(s=s.levelDetails)!=null&&s.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,c):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,c))}return;case B.LEVEL_LOAD_ERROR:case B.LEVEL_LOAD_TIMEOUT:typeof(i==null?void 0:i.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level));return;case B.AUDIO_TRACK_LOAD_ERROR:case B.AUDIO_TRACK_LOAD_TIMEOUT:case B.SUBTITLE_LOAD_ERROR:case B.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const c=r.loadLevelObj;if(c&&(i.type===_e.AUDIO_TRACK&&c.hasAudioGroup(i.groupId)||i.type===_e.SUBTITLE_TRACK&&c.hasSubtitleGroup(i.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=Ut.SendAlternateToPenaltyBox,t.errorAction.flags=wt.MoveAllAlternatesMatchingHost;return}}return;case B.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:t.errorAction={action:Ut.SendAlternateToPenaltyBox,flags:wt.MoveAllAlternatesMatchingHDCP};return;case B.KEY_SYSTEM_SESSION_UPDATE_FAILED:case B.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case B.KEY_SYSTEM_NO_SESSION:t.errorAction={action:Ut.SendAlternateToPenaltyBox,flags:wt.MoveAllAlternatesMatchingKey};return;case B.BUFFER_ADD_CODEC_ERROR:case B.REMUX_ALLOC_ERROR:case B.BUFFER_APPEND_ERROR:if(!t.errorAction){var l;t.errorAction=this.getLevelSwitchAction(t,(l=t.level)!=null?l:r.loadLevel)}return;case B.INTERNAL_EXCEPTION:case B.BUFFER_APPENDING_ERROR:case B.BUFFER_FULL_ERROR:case B.LEVEL_SWITCH_ERROR:case B.BUFFER_STALLED_ERROR:case B.BUFFER_SEEK_OVER_HOLE:case B.BUFFER_NUDGE_ON_STALL:t.errorAction=Et();return}t.type===ae.KEY_SYSTEM_ERROR&&(t.levelRetry=!1,t.errorAction=Et())}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=Re(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(gt(r,i,jn(e),e.response))return{action:Ut.RetryRequest,flags:wt.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=Re(mr(e)?s:i,e),c=t.levels.reduce((f,m)=>f+m.fragmentError,0);if(r&&(e.details!==B.FRAG_GAP&&r.fragmentError++,!Me(e)&>(l,c,jn(e),e.response)))return{action:Ut.RetryRequest,flags:wt.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===B.BUFFER_APPEND_ERROR&&r.fragmentError++;let f=-1;const{levels:m,loadLevel:x,minAutoLevel:T,maxAutoLevel:D}=n;!n.autoLevelEnabled&&!n.config.preserveManualLevelOnError&&(n.loadLevel=-1);const ne=(i=e.frag)==null?void 0:i.type,Ne=(ne===te.AUDIO&&u===B.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(u===B.BUFFER_ADD_CODEC_ERROR||u===B.BUFFER_APPEND_ERROR))&&m.some(({audioCodec:vn})=>r.audioCodec!==vn),Je=e.sourceBufferName==="video"&&(u===B.BUFFER_ADD_CODEC_ERROR||u===B.BUFFER_APPEND_ERROR)&&m.some(({codecSet:vn,audioCodec:Gt})=>r.codecSet!==vn&&r.audioCodec===Gt),{type:Lt,groupId:jt}=(s=e.context)!=null?s:{};for(let vn=m.length;vn--;){const Gt=(vn+x)%m.length;if(Gt!==x&&Gt>=T&&Gt<=D&&m[Gt].loadError===0){var l,c;const cn=m[Gt];if(u===B.FRAG_GAP&&ne===te.MAIN&&e.frag){const ln=m[Gt].details;if(ln){const Jt=pn(e.frag,ln.fragments,e.frag.start);if(Jt!=null&&Jt.gap)continue}}else{if(Lt===_e.AUDIO_TRACK&&cn.hasAudioGroup(jt)||Lt===_e.SUBTITLE_TRACK&&cn.hasSubtitleGroup(jt))continue;if(ne===te.AUDIO&&(l=r.audioGroups)!=null&&l.some(ln=>cn.hasAudioGroup(ln))||ne===te.SUBTITLE&&(c=r.subtitleGroups)!=null&&c.some(ln=>cn.hasSubtitleGroup(ln))||Ne&&r.audioCodec===cn.audioCodec||Je&&r.codecSet===cn.codecSet||!Ne&&r.codecSet!==cn.codecSet)continue}f=Gt;break}}if(f>-1&&n.loadLevel!==f)return e.levelRetry=!0,this.playlistError=0,{action:Ut.SendAlternateToPenaltyBox,flags:wt.None,nextAutoLevel:f}}return{action:Ut.SendAlternateToPenaltyBox,flags:wt.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case Ut.DoNothing:break;case Ut.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==B.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 Ut.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r}=n,i=n.nextAutoLevel;switch(r){case wt.None:this.switchLevel(e,i);break;case wt.MoveAllAlternatesMatchingHDCP:{const c=this.getVariantLevelIndex(e.frag),u=t.levels[c],f=u==null?void 0:u.attrs["HDCP-LEVEL"];if(n.hdcpLevel=f,f==="NONE")this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(f){t.maxHdcpLevel=mt[mt.indexOf(f)-1],n.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}}case wt.MoveAllAlternatesMatchingKey:{const c=e.decryptdata;if(c){const u=this.hls.levels,f=u.length;for(let x=f;x--;)if(this.variantHasKey(u[x],c)){var s,l;this.log(`Banned key found in level ${x} (${u[x].bitrate}bps) or audio group "${(s=u[x].audioGroups)==null?void 0:s.join(",")}" (${(l=e.frag)==null?void 0:l.type} fragment) ${U(c.keyId||[])}`),u[x].fragmentError++,u[x].loadError++,this.log(`Removing level ${x} with key error (${e.error})`),this.hls.removeLevel(x)}const m=e.frag;if(this.hls.levels.length<f)n.resolved=!0;else if(m&&m.type!==te.MAIN){const x=m.decryptdata;x&&!c.matches(x)&&(n.resolved=!0)}}break}}n.resolved||this.switchLevel(e,i)}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===B.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const n=je(e.mimeType),r=this.hls.levels;for(let i=r.length;i--;)r[i][`${e.sourceBufferName}Codec`]===n&&(this.log(`Removing level ${i} for ${e.details} ("${n}" not supported)`),this.hls.removeLevel(i))}}}function Et(a){const e={action:Ut.DoNothing,flags:wt.None};return a&&(e.resolved=!0),e}var At={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Kt{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&&(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&&(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.hls=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;if(i.start<=e&&e<=i.end&&i.loaded)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 m=!this.isTimeBuffered(f.startPTS,f.endPTS,t);return m&&this.removeFragment(c.body),m})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const n=e.frag,r=mn(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),en(i)||this.removeParts(n.sn-1,n.type)):this.removeFragment(i.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=Bn(n,r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=mn(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 m=r.start(f)-this.bufferPadding,x=r.end(f)+this.bufferPadding;if(u>=m&&c<=x){i.time.push({startPTS:Math.max(s,r.start(f)),endPTS:Math.min(l,r.end(f))});break}else if(s<x&&l>m){const T=Math.max(s,r.start(f)),D=Math.min(l,r.end(f));D>T&&(i.partial=!0,i.time.push({startPTS:T,endPTS:D}))}else if(l<=m)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&&en(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||en(t))}getState(e){const t=mn(e),n=this.fragments[t];return n?n.buffered?en(n)?At.PARTIAL:At.OK:At.APPENDING:At.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=mn(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=mn(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=mn(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=Bn(n,i=>i.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const t=(e=this.hls)==null||(e=e.latestLevelDetails)==null?void 0:e.partList;t&&t.forEach(n=>n.clearElementaryStreamInfo())}}function en(a){var e,t,n;return a.buffered&&!!(a.body.gap||(e=a.range.video)!=null&&e.partial||(t=a.range.audio)!=null&&t.partial||(n=a.range.audiovideo)!=null&&n.partial)}function mn(a){return`${a.type}_${a.level}_${a.sn}`}function Bn(a,e){return a.filter(t=>{const n=e(t);return n||t.clearElementaryStreamInfo(),n})}var hn={cbc:0,ctr:1};class xn{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 hn.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case hn.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 On(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?a.slice(0,e-t):a}class kn{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],m=c[2],x=c[3],T=new Uint32Array(256);let D=0,ne=0,ee=0;for(ee=0;ee<256;ee++)ee<128?T[ee]=ee<<1:T[ee]=ee<<1^283;for(ee=0;ee<256;ee++){let Ne=ne^ne<<1^ne<<2^ne<<3^ne<<4;Ne=Ne>>>8^Ne&255^99,e[D]=Ne,t[Ne]=D;const Ke=T[D],Je=T[Ke],Lt=T[Je];let jt=T[Ne]*257^Ne*16843008;r[D]=jt<<24|jt>>>8,i[D]=jt<<16|jt>>>16,s[D]=jt<<8|jt>>>24,l[D]=jt,jt=Lt*16843009^Je*65537^Ke*257^D*16843008,u[Ne]=jt<<24|jt>>>8,f[Ne]=jt<<16|jt>>>16,m[Ne]=jt<<8|jt>>>24,x[Ne]=jt,D?(D=Ke^T[T[T[Lt^Ke]]],ne^=T[T[ne]]):D=ne=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),m=this.sBox,x=this.rcon,T=this.invSubMix,D=T[0],ne=T[1],ee=T[2],Ne=T[3];let Ke,Je;for(l=0;l<s;l++){if(l<i){Ke=u[l]=t[l];continue}Je=Ke,l%i===0?(Je=Je<<8|Je>>>24,Je=m[Je>>>24]<<24|m[Je>>>16&255]<<16|m[Je>>>8&255]<<8|m[Je&255],Je^=x[l/i|0]<<24):i>6&&l%i===4&&(Je=m[Je>>>24]<<24|m[Je>>>16&255]<<16|m[Je>>>8&255]<<8|m[Je&255]),u[l]=Ke=(u[l-i]^Je)>>>0}for(c=0;c<s;c++)l=s-c,c&3?Je=u[l]:Je=u[l-4],c<4||l<=4?f[c]=Je:f[c]=D[m[Je>>>24]]^ne[m[Je>>>16&255]]^ee[m[Je>>>8&255]]^Ne[m[Je&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],m=l[3],x=this.uint8ArrayToUint32Array_(n);let T=x[0],D=x[1],ne=x[2],ee=x[3];const Ne=new Int32Array(e),Ke=new Int32Array(Ne.length);let Je,Lt,jt,vn,Gt,cn,ln,Jt,In,nr,fr,vr,hr,Qn;const pr=this.networkToHostOrderSwap;for(;t<Ne.length;){for(In=pr(Ne[t]),nr=pr(Ne[t+1]),fr=pr(Ne[t+2]),vr=pr(Ne[t+3]),Gt=In^i[0],cn=vr^i[1],ln=fr^i[2],Jt=nr^i[3],hr=4,Qn=1;Qn<r;Qn++)Je=c[Gt>>>24]^u[cn>>16&255]^f[ln>>8&255]^m[Jt&255]^i[hr],Lt=c[cn>>>24]^u[ln>>16&255]^f[Jt>>8&255]^m[Gt&255]^i[hr+1],jt=c[ln>>>24]^u[Jt>>16&255]^f[Gt>>8&255]^m[cn&255]^i[hr+2],vn=c[Jt>>>24]^u[Gt>>16&255]^f[cn>>8&255]^m[ln&255]^i[hr+3],Gt=Je,cn=Lt,ln=jt,Jt=vn,hr=hr+4;Je=s[Gt>>>24]<<24^s[cn>>16&255]<<16^s[ln>>8&255]<<8^s[Jt&255]^i[hr],Lt=s[cn>>>24]<<24^s[ln>>16&255]<<16^s[Jt>>8&255]<<8^s[Gt&255]^i[hr+1],jt=s[ln>>>24]<<24^s[Jt>>16&255]<<16^s[Gt>>8&255]<<8^s[cn&255]^i[hr+2],vn=s[Jt>>>24]<<24^s[Gt>>16&255]<<16^s[cn>>8&255]<<8^s[ln&255]^i[hr+3],Ke[t]=pr(Je^T),Ke[t+1]=pr(vn^D),Ke[t+2]=pr(jt^ne),Ke[t+3]=pr(Lt^ee),T=In,D=nr,ne=fr,ee=vr,t=t+4}return Ke.buffer}}class Hn{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=Sn(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function Sn(a){switch(a){case hn.cbc:return"AES-CBC";case hn.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${a}`)}}const Wn=16;class zn{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?On(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!==hn.cbc||t.byteLength!==16)return $.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(e=ce(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 kn),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 Hn(this.subtle,t,r)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new xn(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>($.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%Wn;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&($.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const tr=Math.pow(2,17);class Yn{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 Yt({type:ae.NETWORK_ERROR,details:B.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(ur(e));return}else e.gap=!1;const u=this.loader=i?new i(r):new s(r),f=qn(e);e.loader=u;const m=ut(r.fragLoadPolicy.default),x={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:tr};e.stats=u.stats;const T={onSuccess:(D,ne,ee,Ne)=>{this.resetLoader(e,u);let Ke=D.data;ee.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(Ke.slice(0,16)),Ke=Ke.slice(16)),l({frag:e,part:null,payload:Ke,networkDetails:Ne})},onError:(D,ne,ee,Ne)=>{this.resetLoader(e,u),c(new Yt({type:ae.NETWORK_ERROR,details:B.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:b({url:n,data:void 0},D),error:new Error(`HTTP Error ${D.code} ${D.text}`),networkDetails:ee,stats:Ne}))},onAbort:(D,ne,ee)=>{this.resetLoader(e,u),c(new Yt({type:ae.NETWORK_ERROR,details:B.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:ee,stats:D}))},onTimeout:(D,ne,ee)=>{this.resetLoader(e,u),c(new Yt({type:ae.NETWORK_ERROR,details:B.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${x.timeout}ms`),networkDetails:ee,stats:D}))}};t&&(T.onProgress=(D,ne,ee,Ne)=>t({frag:e,part:null,payload:ee,networkDetails:Ne})),u.load(f,x,T)})}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(ur(e,t));return}const u=this.loader=i?new i(r):new s(r),f=qn(e,t);e.loader=u;const m=ut(r.fragLoadPolicy.default),x={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:tr};t.stats=u.stats,u.load(f,x,{onSuccess:(T,D,ne,ee)=>{this.resetLoader(e,u),this.updateStatsFromPart(e,t);const Ne={frag:e,part:t,payload:T.data,networkDetails:ee};n(Ne),l(Ne)},onError:(T,D,ne,ee)=>{this.resetLoader(e,u),c(new Yt({type:ae.NETWORK_ERROR,details:B.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:b({url:f.url,data:void 0},T),error:new Error(`HTTP Error ${T.code} ${T.text}`),networkDetails:ne,stats:ee}))},onAbort:(T,D,ne)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,u),c(new Yt({type:ae.NETWORK_ERROR,details:B.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:ne,stats:T}))},onTimeout:(T,D,ne)=>{this.resetLoader(e,u),c(new Yt({type:ae.NETWORK_ERROR,details:B.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${x.timeout}ms`),networkDetails:ne,stats:T}))}})})}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),m=(c-u)*Math.round(n.loaded/u);n.total=n.loaded+m}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 qn(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(h(r)&&h(i)){var s;let l=r,c=i;if(a.sn==="initSegment"&&yt((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 ur(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),n={type:ae.MEDIA_ERROR,details:B.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(n.part=e),(e||a).stats.aborted=!0,new Yt(n)}function yt(a){return a==="AES-128"||a==="AES-256"}class Yt extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class an extends q{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 Wt{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=gn(),this.buffering={audio:gn(),video:gn(),audiovideo:gn()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=s}}function gn(){return{start:0,executeStart:0,executeEnd:0,end:0}}const Kn={length:0,start:()=>0,end:()=>0};class Cn{static isBuffered(e,t){if(e){const n=Cn.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=Cn.getBuffered(e);return Cn.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=Cn.bufferedRanges(e);if(r.length)return Cn.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,m)=>f.start-m.start||m.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 m=i.length;if(m){const x=i[m-1].end;e[f].start-x<n?e[f].end>x&&(i[m-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 m=i[f].start,x=i[f].end;if(r===-1&&t>=m&&t<=x&&(r=f),t+n>=m&&t<x)c=m,u=x,s=u-t;else if(t+n<m){l=m;break}}return{len:s,start:c||0,end:u||0,nextStart:l,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||Kn}catch(t){return $.log("failed to get media.buffered",t),Kn}}}const Jn=/\{\$([a-zA-Z0-9-_]+)\}/g;function or(a){return Jn.test(a)}function xr(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(Jn,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 Zr(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 Mr(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 Jr=/^(\d+)x(\d+)$/,Gr=/(.+?)=(".*?"|.*?)(?:,|$)/g;class wr{constructor(e,t){typeof e=="string"&&(e=wr.parseAttrList(e,t)),p(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=Jr.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(Gr.lastIndex=0;(n=Gr.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=xr(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":$.warn(`${e}: attribute ${s} is missing quotes`)}r[s]=l}return r}}const _r="com.apple.hls.interstitial";function Dr(a){return a!=="ID"&&a!=="CLASS"&&a!=="CUE"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function Vr(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"||a==="SCTE35-CMD"}class Er{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]){$.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=s;break}e=p(new wr({}),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"]);h(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?($.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(h(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===_r}get isValid(){return!!this.id&&!this._badValueForSameId&&h(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 br=10;class Cr{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}hasKey(e){return this.encryptedFragments.some(t=>{let n=t.decryptdata;return n||(t.setKeyFormat(e.keyFormat),n=t.decryptdata),!!n&&e.matches(n)})}get hasProgramDateTime(){return this.fragments.length?h(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||br}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(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){return this.fragments.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 Gn(a,e){return a.length===e.length?!a.some((t,n)=>t!==e[n]):!1}function lr(a,e){return!a&&!e?!0:!a||!e?!1:Gn(a,e)}function ar(a){return a==="AES-128"||a==="AES-256"||a==="AES-256-CTR"}function dr(a){switch(a){case"AES-128":case"AES-256":return hn.cbc;case"AES-256-CTR":return hn.ctr;default:throw new Error(`invalid full segment method ${a}`)}}function Ar(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function Ir(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}function qr(a){const e=Ir(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function Vn(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 ir(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=Ar(s)):t=qr(s)}}return t}const rr=typeof self!="undefined"?self:void 0;var cr={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},yr={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Fr(a){switch(a){case yr.FAIRPLAY:return cr.FAIRPLAY;case yr.PLAYREADY:return cr.PLAYREADY;case yr.WIDEVINE:return cr.WIDEVINE;case yr.CLEARKEY:return cr.CLEARKEY}}function ri(a){switch(a){case cr.FAIRPLAY:return yr.FAIRPLAY;case cr.PLAYREADY:return yr.PLAYREADY;case cr.WIDEVINE:return yr.WIDEVINE;case cr.CLEARKEY:return yr.CLEARKEY}}function $r(a){const{drmSystems:e,widevineLicenseUrl:t}=a,n=e?[cr.FAIRPLAY,cr.WIDEVINE,cr.PLAYREADY,cr.CLEARKEY].filter(r=>!!e[r]):[];return!n[cr.WIDEVINE]&&t&&n.push(cr.WIDEVINE),n}const ei=function(a){return rr!=null&&(a=rr.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Hr(a,e,t,n){let r;switch(a){case cr.FAIRPLAY:r=["cenc","sinf"];break;case cr.WIDEVINE:case cr.PLAYREADY:r=["cenc"];break;case cr.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return is(r,e,t,n)}function is(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 ss(a){var e;return!!a&&(a.sessionType==="persistent-license"||!!((e=a.sessionTypes)!=null&&e.some(t=>t==="persistent-license")))}function Ai(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=Ar(l).subarray(0,16);return Vn(c),c}}return null}let Li={};class yi{static clearKeyUriToKeyIdMap(){Li={}}static setKeyIdForUri(e,t){Li[e]=t}constructor(e,t,n,r=[1],i=null,s){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&&!ar(e),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(C(s)))}matches(e){return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&Gn(e.keyFormatVersions,this.keyFormatVersions)&&lr(e.iv,this.iv)&&lr(e.keyId,this.keyId)}isSupported(){if(this.method){if(ar(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case yr.FAIRPLAY:case yr.WIDEVINE:case yr.PLAYREADY:case yr.CLEARKEY:return["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e,t){if(!this.encrypted||!this.uri)return null;if(ar(this.method)){let i=this.iv;return i||(typeof e!="number"&&($.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0),i=xi(e)),new yi(this.method,this.uri,"identity",this.keyFormatVersions,i)}if(this.keyId){const i=Li[this.uri];if(i&&!Gn(this.keyId,i)&&yi.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const n=ir(this.uri);if(n)switch(this.keyFormat){case yr.WIDEVINE:if(this.pssh=n,!this.keyId){const i=_t(n.buffer);if(i.length){var r;const s=i[0];this.keyId=(r=s.kids)!=null&&r.length?s.kids[0]:null}}this.keyId||(this.keyId=ji(t));break;case yr.PLAYREADY:{const i=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Fe(i,null,n),this.keyId=Ai(n);break}default:{let i=n.subarray(0,16);if(i.length!==16){const s=new Uint8Array(16);s.set(i,16-i.length),i=s}this.keyId=i;break}}if(!this.keyId||this.keyId.byteLength!==16){let i;i=zi(t),i||(i=ji(t),i||(i=Li[this.uri])),i&&(this.keyId=i,yi.setKeyIdForUri(this.uri,i))}return this}}function zi(a){const e=a==null?void 0:a[yr.WIDEVINE];return e?e.keyId:null}function ji(a){const e=a==null?void 0:a[yr.PLAYREADY];if(e){const t=ir(e.uri);if(t)return Ai(t)}return null}function xi(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const Vi=/#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,ki=/#EXT-X-MEDIA:(.*)/g,as=/^#EXT(?:INF|-X-TARGETDURATION):/m,Pi=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),Es=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 ci{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 y.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return as.test(e)}static parseMasterPlaylist(e,t){const n=or(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];if(Vi.lastIndex=0,!e.startsWith("#EXTM3U"))return r.playlistParsingError=new Error("no EXTM3U delimiter"),r;let s;for(;(s=Vi.exec(e))!=null;)if(s[1]){var l;const u=new wr(s[1],r),f=xr(r,s[2]),m={attrs:u,bitrate:u.decimalInteger("BANDWIDTH")||u.decimalInteger("AVERAGE-BANDWIDTH"),name:u.NAME,url:ci.resolve(f,t)},x=u.decimalResolution("RESOLUTION");x&&(m.width=x.width,m.height=x.height),ai(u.CODECS,m);const T=u["SUPPLEMENTAL-CODECS"];T&&(m.supplemental={},ai(T,m.supplemental)),(l=m.unknownCodecs)!=null&&l.length||i.push(m),r.levels.push(m)}else if(s[3]){const u=s[3],f=s[4];switch(u){case"SESSION-DATA":{const m=new wr(f,r),x=m["DATA-ID"];x&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[x]=m);break}case"SESSION-KEY":{const m=$i(f,t,r);m.encrypted&&m.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(m)):$.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${f}"`);break}case"DEFINE":{{const m=new wr(f,r);Zr(r,m,t)}break}case"CONTENT-STEERING":{const m=new wr(f,r);r.contentSteering={uri:ci.resolve(m["SERVER-URI"],t),pathwayId:m["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=Bi(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(ki.lastIndex=0;(r=ki.exec(e))!==null;){const u=new wr(r[1],n),f=u.TYPE;if(f){const m=l[f],x=i[f]||[];i[f]=x;const T=u.LANGUAGE,D=u["ASSOC-LANGUAGE"],ne=u.CHANNELS,ee=u.CHARACTERISTICS,Ne=u["INSTREAM-ID"],Ke={attrs:u,bitrate:0,id:c++,groupId:u["GROUP-ID"]||"",name:u.NAME||T||"",type:f,default:u.bool("DEFAULT"),autoselect:u.bool("AUTOSELECT"),forced:u.bool("FORCED"),lang:T,url:u.URI?ci.resolve(u.URI,t):""};if(D&&(Ke.assocLang=D),ne&&(Ke.channels=ne),ee&&(Ke.characteristics=ee),Ne&&(Ke.instreamId=Ne),m!=null&&m.length){const Je=ci.findGroup(m,Ke.groupId)||m[0];ti(Ke,Je,"audioCodec"),ti(Ke,Je,"textCodec")}x.push(Ke)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){var l;const c={url:t},u=new Cr(t),f=u.fragments,m=[];let x=null,T=0,D=0,ne=0,ee=0,Ne=0,Ke=null,Je=new rt(r,c),Lt,jt,vn,Gt=-1,cn=!1,ln=null,Jt;if(Pi.lastIndex=0,u.m3u8=e,u.hasVariableRefs=or(e),((l=Pi.exec(e))==null?void 0:l[0])!=="#EXTM3U")return u.playlistParsingError=new Error("Missing format identifier #EXTM3U"),u;for(;(Lt=Pi.exec(e))!==null;){cn&&(cn=!1,Je=new rt(r,c),Je.playlistOffset=ne,Je.setStart(ne),Je.sn=T,Je.cc=ee,Ne&&(Je.bitrate=Ne),Je.level=n,x&&(Je.initSegment=x,x.rawProgramDateTime&&(Je.rawProgramDateTime=x.rawProgramDateTime,x.rawProgramDateTime=null),ln&&(Je.setByteRange(ln),ln=null)));const vr=Lt[1];if(vr){Je.duration=parseFloat(vr);const hr=(" "+Lt[2]).slice(1);Je.title=hr||null,Je.tagList.push(hr?["INF",vr,hr]:["INF",vr])}else if(Lt[3]){if(h(Je.duration)){Je.playlistOffset=ne,Je.setStart(ne),vn&&Wr(Je,vn,u),Je.sn=T,Je.level=n,Je.cc=ee,f.push(Je);const hr=(" "+Lt[3]).slice(1);Je.relurl=xr(u,hr),Sr(Je,Ke,m),Ke=Je,ne+=Je.duration,T++,D=0,cn=!0}}else{if(Lt=Lt[0].match(Es),!Lt){$.warn("No matches on slow regex match for level playlist!");continue}for(jt=1;jt<Lt.length&&Lt[jt]===void 0;jt++);const hr=(" "+Lt[jt]).slice(1),Qn=(" "+Lt[jt+1]).slice(1),pr=Lt[jt+2]?(" "+Lt[jt+2]).slice(1):null;switch(hr){case"BYTERANGE":Ke?Je.setByteRange(Qn,Ke):Je.setByteRange(Qn);break;case"PROGRAM-DATE-TIME":Je.rawProgramDateTime=Qn,Je.tagList.push(["PROGRAM-DATE-TIME",Qn]),Gt===-1&&(Gt=f.length);break;case"PLAYLIST-TYPE":u.type&&Br(u,hr,Lt),u.type=Qn.toUpperCase();break;case"MEDIA-SEQUENCE":u.startSN!==0?Br(u,hr,Lt):f.length>0&&Qr(u,hr,Lt),T=u.startSN=parseInt(Qn);break;case"SKIP":{u.skippedSegments&&Br(u,hr,Lt);const sr=new wr(Qn,u),gr=sr.decimalInteger("SKIPPED-SEGMENTS");if(h(gr)){u.skippedSegments+=gr;for(let $n=gr;$n--;)f.push(null);T+=gr}const Tr=sr.enumeratedString("RECENTLY-REMOVED-DATERANGES");Tr&&(u.recentlyRemovedDateranges=(u.recentlyRemovedDateranges||[]).concat(Tr.split(" ")));break}case"TARGETDURATION":u.targetduration!==0&&Br(u,hr,Lt),u.targetduration=Math.max(parseInt(Qn),1);break;case"VERSION":u.version!==null&&Br(u,hr,Lt),u.version=parseInt(Qn);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":u.live||Br(u,hr,Lt),u.live=!1;break;case"#":(Qn||pr)&&Je.tagList.push(pr?[Qn,pr]:[Qn]);break;case"DISCONTINUITY":ee++,Je.tagList.push(["DIS"]);break;case"GAP":Je.gap=!0,Je.tagList.push([hr]);break;case"BITRATE":Je.tagList.push([hr,Qn]),Ne=parseInt(Qn)*1e3,h(Ne)?Je.bitrate=Ne:Ne=0;break;case"DATERANGE":{const sr=new wr(Qn,u),gr=new Er(sr,u.dateRanges[sr.ID],u.dateRangeTagCount);u.dateRangeTagCount++,gr.isValid||u.skippedSegments?u.dateRanges[gr.id]=gr:$.warn(`Ignoring invalid DATERANGE tag: "${Qn}"`),Je.tagList.push(["EXT-X-DATERANGE",Qn]);break}case"DEFINE":{{const sr=new wr(Qn,u);"IMPORT"in sr?Mr(u,sr,s):Zr(u,sr,t)}break}case"DISCONTINUITY-SEQUENCE":u.startCC!==0?Br(u,hr,Lt):f.length>0&&Qr(u,hr,Lt),u.startCC=ee=parseInt(Qn);break;case"KEY":{const sr=$i(Qn,t,u);if(sr.isSupported()){if(sr.method==="NONE"){vn=void 0;break}vn||(vn={});const gr=vn[sr.keyFormat];gr!=null&&gr.matches(sr)||(gr&&(vn=p({},vn)),vn[sr.keyFormat]=sr)}else $.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${Qn}"`);break}case"START":u.startTimeOffset=Bi(Qn);break;case"MAP":{const sr=new wr(Qn,u);if(Je.duration){const gr=new rt(r,c);Xr(gr,sr,n,vn),x=gr,Je.initSegment=x,x.rawProgramDateTime&&!Je.rawProgramDateTime&&(Je.rawProgramDateTime=x.rawProgramDateTime)}else{const gr=Je.byteRangeEndOffset;if(gr){const Tr=Je.byteRangeStartOffset;ln=`${gr-Tr}@${Tr}`}else ln=null;Xr(Je,sr,n,vn),x=Je,cn=!0}x.cc=ee;break}case"SERVER-CONTROL":{Jt&&Br(u,hr,Lt),Jt=new wr(Qn),u.canBlockReload=Jt.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=Jt.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&Jt.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=Jt.optionalFloat("PART-HOLD-BACK",0),u.holdBack=Jt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{u.partTarget&&Br(u,hr,Lt);const sr=new wr(Qn);u.partTarget=sr.decimalFloatingPoint("PART-TARGET");break}case"PART":{let sr=u.partList;sr||(sr=u.partList=[]);const gr=D>0?sr[sr.length-1]:void 0,Tr=D++,$n=new wr(Qn,u),er=new Ct($n,Je,c,Tr,gr);sr.push(er),Je.duration+=er.duration;break}case"PRELOAD-HINT":{const sr=new wr(Qn,u);u.preloadHint=sr;break}case"RENDITION-REPORT":{const sr=new wr(Qn,u);u.renditionReports=u.renditionReports||[],u.renditionReports.push(sr);break}default:$.warn(`line parsed but not handled: ${Lt}`);break}}}Ke&&!Ke.relurl?(f.pop(),ne-=Ke.duration,u.partList&&(u.fragmentHint=Ke)):u.partList&&(Sr(Je,Ke,m),Je.cc=ee,u.fragmentHint=Je,vn&&Wr(Je,vn,u)),u.targetduration||(u.playlistParsingError=new Error("Missing Target Duration"));const In=f.length,nr=f[0],fr=f[In-1];if(ne+=u.skippedSegments*u.targetduration,ne>0&&In&&fr){u.averagetargetduration=ne/In;const vr=fr.sn;u.endSN=vr!=="initSegment"?vr:0,u.live||(fr.endList=!0),Gt>0&&(Rr(f,Gt),nr&&m.unshift(nr))}return u.fragmentHint&&(ne+=u.fragmentHint.duration),u.totalduration=ne,m.length&&u.dateRangeTagCount&&nr&&os(m,u),u.endCC=ee,u}}function os(a,e){let t=a.length;if(!t)if(e.hasProgramDateTime){const l=e.fragments[e.fragments.length-1];a.push(l),t++}else return;const n=a[t-1],r=e.live?1/0:e.totalduration,i=Object.keys(e.dateRanges);for(let l=i.length;l--;){const c=e.dateRanges[i[l]],u=c.startDate.getTime();c.tagAnchor=n.ref;for(let f=t;f--;){var s;if(((s=a[f])==null?void 0:s.sn)<e.startSN)break;const m=ls(e,u,a,f,r);if(m!==-1){c.tagAnchor=e.fragments[m].ref;break}}}}function ls(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;if(u<0)return-1;const f=a.fragments;if(f.length>t.length){const x=(t[n+1]||f[f.length-1]).sn-a.startSN;for(let T=x;T>u;T--){const D=f[T].programDateTime;if(e>=D&&e<D+f[T].duration*1e3)return T}}return u}}}return-1}function $i(a,e,t){var n,r;const i=new wr(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&&$.error(`Invalid IV: ${i.IV}`);const m=l?ci.resolve(l,e):"",x=(u||"1").split("/").map(Number).filter(Number.isFinite);return new yi(s,m,f,x,c,i.KEYID)}function Bi(a){const t=new wr(a).decimalFloatingPoint("TIME-OFFSET");return h(t)?t:null}function ai(a,e){let t=(a||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>se(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 ti(a,e,t){const n=e[t];n&&(a[t]=n)}function Rr(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 Sr(a,e,t){a.rawProgramDateTime?t.push(a):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime)}function Xr(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 Wr(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 Br(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function Qr(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function fi(a,e){const t=e.startPTS;if(h(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 hi(a,e,t,n,r,i,s){n-t<=0&&(s.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let c=t,u=n;const f=e.startPTS,m=e.endPTS;if(h(f)){const Ne=Math.abs(f-t);a&&Ne>a.totalduration?s.warn(`media timestamps and playlist times differ by ${Ne}s for level ${e.level} ${a.url}`):h(e.deltaPTS)?e.deltaPTS=Math.max(Ne,e.deltaPTS):e.deltaPTS=Ne,c=Math.max(t,f),t=Math.min(t,f),r=e.startDTS!==void 0?Math.min(r,e.startDTS):r,u=Math.min(n,m),n=Math.max(n,m),i=e.endDTS!==void 0?Math.max(i,e.endDTS):i}const x=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(n-e.start),e.startPTS=t,e.maxStartPTS=c,e.startDTS=r,e.endPTS=n,e.minEndPTS=u,e.endDTS=i;const T=e.sn;if(!a||T<a.startSN||T>a.endSN)return 0;let D;const ne=T-a.startSN,ee=a.fragments;for(ee[ne]=e,D=ne;D>0;D--)fi(ee[D],ee[D-1]);for(D=ne;D<ee.length-1;D++)fi(ee[D],ee[D+1]);return a.fragmentHint&&fi(ee[ee.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,x}function Ci(a,e,t){if(a===e)return;let n=null;const r=a.fragments;for(let f=r.length-1;f>=0;f--){const m=r[f].initSegment;if(m){n=m;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let i;Ni(a,e,(f,m,x,T)=>{if((!e.startCC||e.skippedSegments)&&m.cc!==f.cc){const D=f.cc-m.cc;for(let ne=x;ne<T.length;ne++)T[ne].cc+=D;e.endCC=T[T.length-1].cc}h(f.startPTS)&&h(f.endPTS)&&(m.setStart(m.startPTS=f.startPTS),m.startDTS=f.startDTS,m.maxStartPTS=f.maxStartPTS,m.endPTS=f.endPTS,m.endDTS=f.endDTS,m.minEndPTS=f.minEndPTS,m.setDuration(f.endPTS-f.startPTS),m.duration&&(i=m),e.PTSKnown=e.alignedSliding=!0),f.hasStreams&&(m.elementaryStreams=f.elementaryStreams),m.loader=f.loader,f.hasStats&&(m.stats=f.stats),f.initSegment&&(m.initSegment=f.initSegment,n=f.initSegment)});const s=e.fragments,l=e.fragmentHint?s.concat(e.fragmentHint):s;if(n&&l.forEach(f=>{var m;f&&(!f.initSegment||f.initSegment.relurl===((m=n)==null?void 0:m.relurl))&&(f.initSegment=n)}),e.skippedSegments){if(e.deltaUpdateFailed=s.some(f=>!f),e.deltaUpdateFailed){t.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let f=e.skippedSegments;f--;)s.shift();e.startSN=s[0].sn}else{e.canSkipDateRanges&&(e.dateRanges=ni(a.dateRanges,e,t));const f=a.fragments.filter(m=>m.rawProgramDateTime);if(a.hasProgramDateTime&&!e.hasProgramDateTime)for(let m=1;m<l.length;m++)l[m].programDateTime===null&&Sr(l[m],l[m-1],f);os(f,e)}e.endCC=s[s.length-1].cc}if(!e.startCC){var c;const f=Ur(a,e.startSN-1);e.startCC=(c=f==null?void 0:f.cc)!=null?c:s[0].cc}pi(a.partList,e.partList,(f,m)=>{m.elementaryStreams=f.elementaryStreams,m.stats=f.stats}),i?hi(e,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS,t):us(a,e),s.length&&(e.totalduration=e.edge-s[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const u=e.advancedDateTime;if(e.advanced&&u){const f=e.edge;e.driftStart||(e.driftStartTime=u,e.driftStart=f),e.driftEndTime=u,e.driftEnd=f}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=a.requestScheduled)}function ni(a,e,t){const{dateRanges:n,recentlyRemovedDateranges:r}=e,i=p({},a);r&&r.forEach(c=>{delete i[c]});const l=Object.keys(i).length;return l?(Object.keys(n).forEach(c=>{const u=i[c],f=new Er(n[c].attr,u);f.isValid?(i[c]=f,u||(f.tagOrder+=l)):t.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${at(n[c].attr)}"`)}),i):n}function pi(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 Ni(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 m=l[u];if(n&&!m&&f&&(m=e.fragments[u]=f),f&&m){t(f,m,u,l);const x=f.relurl,T=m.relurl;if(x&&Ti(x,T)){e.playlistParsingError=Si(`media sequence mismatch ${m.sn}:`,a,e,f,m);return}else if(f.cc!==m.cc){e.playlistParsingError=Si(`discontinuity sequence mismatch (${f.cc}!=${m.cc})`,a,e,f,m);return}}}}function Si(a,e,t,n,r){return new Error(`${a} ${r.url}
|
|
Playlist starting @${e.startSN}
|
|
${e.m3u8}
|
|
|
|
Playlist starting @${t.startSN}
|
|
${t.m3u8}`)}function us(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;cs(e,s)}function cs(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 Yr(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 Ur(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 jr(a,e,t){return a?li(a.partList,e,t):null}function li(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 si(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 Ti(a,e){return a!==e&&e?ds(a)!==ds(e):!1}function ds(a){return a.replace(/\?[^?]*$/,"")}function Wi(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 Rs(a,e){return!!(a&&e.startCC<a.endCC&&e.endCC>a.startCC)}function fs(a,e){const t=a.start+e;a.startPTS=t,a.setStart(t),a.endPTS=t+a.duration}function Gi(a,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)fs(t[n],a);e.fragmentHint&&fs(e.fragmentHint,a),e.alignedSliding=!0}function hs(a,e){a&&(es(e,a),e.alignedSliding||bs(e,a),!e.alignedSliding&&!e.skippedSegments&&us(a,e,!1))}function es(a,e){if(!Rs(e,a))return;const t=Math.min(e.endCC,a.endCC),n=Wi(e.fragments,t),r=Wi(a.fragments,t);if(!n||!r)return;$.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const i=n.start-r.start;Gi(i,a)}function bs(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=Wi(n,s),i=Wi(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=Wi(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);Gi(u,a)}function mi(a,e,t){gi(a,e,t),a.addEventListener(e,t)}function gi(a,e,t){a.removeEventListener(e,t)}const ea={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}},wn={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 Zs extends an{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=wn.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,m=c?c.currentTime:0,x=Cn.bufferInfo(u||c,m,s.maxBufferHole),T=!x.len;if(this.log(`Media seeking to ${h(m)?m.toFixed(3):m}, state: ${f}, ${T?"out of":"in"} buffer`),this.state===wn.ENDED)this.resetLoadingState();else if(l){const D=s.maxFragLookUpTolerance,ne=l.start-D,ee=l.start+l.duration+D;if(T||ee<x.start||ne>x.end){const Ne=m>ee;(m<ne||Ne)&&(Ne&&l.loader&&(this.log(`Cancelling fragment load for seek (sn: ${l.sn})`),l.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(c){this.fragmentTracker.removeFragmentsInRange(m,1/0,this.playlistType,!0);const D=this.lastCurrentTime;if(m>D&&(this.lastCurrentTime=m),!this.loadingParts){const ne=Math.max(x.end,m),ee=this.shouldLoadParts(this.getLevelDetails(),ne);ee&&(this.log(`LL-Part loading ON after seeking to ${m.toFixed(2)} with buffer @${ne.toFixed(2)}`),this.loadingParts=ee)}}this.hls.hasEnoughToStart||(this.log(`Setting ${T?"startPosition":"nextLoadPosition"} to ${m} for seek without enough to start`),this.nextLoadPosition=m,T&&(this.startPosition=m)),T&&this.state===wn.IDLE&&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 Yn(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new zn(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===wn.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=wn.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.buffered;this.config.maxBufferHole&&i&&i.length>1&&(e=Cn.bufferedInfo(i,e.start,0));const s=e.nextStart;if(s&&s>r&&s<t.edge||this.media.currentTime<e.start)return!1;const c=t.partList;if(c!=null&&c.length){const f=c[c.length-1];return Cn.isBuffered(this.media,f.start+f.duration/2)}const u=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(u)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null)return this.levelLastLoaded.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;mi(n,"seeking",this.onMediaSeeking),mi(n,"ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===wn.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),gi(r,"seeking",this.onMediaSeeking),gi(r,"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=wn.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===wn.FRAG_LOADING||!this.fragCurrent&&s===wn.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=wn.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===wn.STOPPED||this.state===wn.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)===At.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)===At.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&&ar(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,dr(l.method)).catch(u=>{throw r.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.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===wn.STOPPED||this.state===wn.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!==wn.STOPPED&&(this.state=wn.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()}unhandledEncryptionError(e,t){var n,r;const i=e.tracks;if(i&&!t.encrypted&&((n=i.audio)!=null&&n.encrypted||(r=i.video)!=null&&r.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const s=this.media,l=new Error(`Encrypted track with no key in ${this.fragInfo(t)} (media ${s?"attached mediaKeys: "+s.mediaKeys:"detached"})`);return this.warn(l.message),!s||s.mediaKeys?!1:(this.hls.trigger(d.ERROR,{type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_KEYS,fatal:!1,error:l,frag:t}),this.resetTransmuxer(),!0)}return!1}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?ea.toString(Cn.getBuffered(n)):"(detached)"})`),Qe(e)){var r;if(e.type!==te.SUBTITLE){const s=e.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=wn.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=wn.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 Wt(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.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let l=null;if(e.encrypted&&!((i=e.decryptdata)!=null&&i.key)){if(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=wn.KEY_LOADING,this.fragCurrent=e,l=this.keyLoader.load(e).then(x=>{if(!this.fragContextChanged(x.frag))return this.hls.trigger(d.KEY_LOADED,x),this.state===wn.KEY_LOADING&&(this.state=wn.IDLE),x}),this.hls.trigger(d.KEY_LOADING,{frag:e}),this.fragCurrent===null)return this.log("context changed in KEY_LOADING"),Promise.resolve(null)}else e.encrypted||(l=this.keyLoader.loadClear(e,s.encryptedFragments,this.startFragRequested),l&&this.log("[eme] blocking frag load until media-keys acquired"));const c=this.fragPrevious;if(Qe(e)&&(!c||e.sn!==c.sn)){const x=this.shouldLoadParts(t.details,e.end);x!==this.loadingParts&&(this.log(`LL-Part loading ${x?"ON":"OFF"} loading sn ${c==null?void 0:c.sn}->${e.sn}`),this.loadingParts=x)}if(n=Math.max(e.start,n||0),this.loadingParts&&Qe(e)){const x=s.partList;if(x&&r){n>s.fragmentEnd&&s.fragmentHint&&(e=s.fragmentHint);const T=this.getNextPart(x,e,n);if(T>-1){const D=x[T];e=this.fragCurrent=D.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${D.index} (${T}/${x.length-1}) of ${this.fragInfo(e,!1,D)}) cc: ${e.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=D.start+D.duration,this.state=wn.FRAG_LOADING;let ne;return l?ne=l.then(ee=>!ee||this.fragContextChanged(ee.frag)?null:this.doFragPartsLoad(e,D,t,r)).catch(ee=>this.handleFragLoadError(ee)):ne=this.doFragPartsLoad(e,D,t,r).catch(ee=>this.handleFragLoadError(ee)),this.hls.trigger(d.FRAG_LOADING,{frag:e,part:D,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):ne}else if(!e.url||this.loadedEndOfParts(x,n))return Promise.resolve(null)}}if(Qe(e)&&this.loadingParts){var u;this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)} Check buffer at sn: ${e.sn} loaded parts: ${(u=s.partList)==null?void 0:u.filter(x=>x.loaded).map(x=>`[${x.start}-${x.end}]`)}`),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.startSN+"-"+s.endSN+"]"}, target: ${parseFloat(n.toFixed(3))}`),h(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=wn.FRAG_LOADING;const f=this.config.progressive;let m;return f&&l?m=l.then(x=>!x||this.fragContextChanged(x.frag)?null:this.fragmentLoader.load(e,r)).catch(x=>this.handleFragLoadError(x)):m=Promise.all([this.fragmentLoader.load(e,f?r:void 0),l]).then(([x])=>(!f&&r&&r(x),x)).catch(x=>this.handleFragLoadError(x)),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")):m}doFragPartsLoad(e,t,n,r){return new Promise((i,s)=>{var l;const c=[],u=(l=n.details)==null?void 0:l.partList,f=m=>{this.fragmentLoader.loadPart(e,m,r).then(x=>{c[m.index]=x;const T=x.part;this.hls.trigger(d.FRAG_LOADED,x);const D=jr(n.details,e.sn,m.index+1)||li(u,e.sn,m.index+1);if(D)f(D);else return i({frag:e,part:T,partsLoaded:c})}).catch(s)};f(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;t.frag&&t.details===B.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):t.frag&&t.type===ae.KEY_SYSTEM_ERROR?(t.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(t.frag)):this.hls.trigger(d.ERROR,t)}else this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==wn.PARSING){!this.fragCurrent&&this.state!==wn.STOPPED&&this.state!==wn.ERROR&&(this.state=wn.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.partList){var n;const i=e.partList[0];if(i.fragment.type===te.SUBTITLE)return!1;const 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?jr(c,i,s):null,f=u?u.fragment:Ur(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){if(this.state!==wn.PARSING)return;const{data1:s,data2:l}=e;let c=s;if(l&&(c=ce(s,l)),!c.length)return;const u=this.initPTS[t.cc],f=u?-u.baseTime/u.timescale:void 0,m={type:e.type,frag:t,part:n,chunkMeta:r,offset:f,parent:t.type,data:c};if(this.hls.trigger(d.BUFFER_APPENDING,m),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Cn.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=Cn.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(!h(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=Cn.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 Cn.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=te.MAIN){const n=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(e,t):null;return n&&"fragment"in n?n.fragment:n}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 m=i.initialLiveManifestSize;if(r<m)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${m})`),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);const x=this.hls.startPosition,T=this.hls.liveSyncPosition,D=c?(x!==-1&&x>=s?x:T)||c.start:e;this.log(`Setting startPosition to ${D} to match start frag at live edge. mainStart: ${x} liveSyncPosition: ${T} frag.start: ${(u=c)==null?void 0:u.start}`),this.startPosition=this.nextLoadPosition=D}}else e<=s&&(c=n[0]);if(!c){const m=this.loadingParts?t.partEnd:t.fragmentEnd;c=this.getFragmentAtPosition(e,m,t)}let f=this.filterReplacedPrimary(c,t);if(!f&&c){const m=c.sn-t.startSN;f=this.filterReplacedPrimary(n[m+1]||null,t)}return this.mapToInitFragWhenRequired(f)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===At.OK||n===At.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(ta(this.config)){var e;if((e=this.hls.interstitialsManager)==null||(e=e.playingItem)==null?void 0:e.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(ta(this.config)&&e.type!==te.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.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)&&(u.fragment!==t&&this.warn(`Need buffer at ${n} but next unloaded part starts at ${u.start}`),r=l),i=f}return r}loadedEndOfParts(e,t){let n;for(let r=e.length;r--;){if(n=e[r],!n.loaded)return!1;if(t>n.start)return!0}return!1}getInitialLiveFragment(e){const t=e.fragments,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=Ln(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=Un(e,n.cc,n.end),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,m=!!(this.loadingParts&&f!=null&&f.length&&c);m&&!this.bitrateTest&&f[f.length-1].fragment.sn===c.sn&&(s=s.concat(c),l=c.sn);let x;if(e<t){var T;const ne=e<this.lastCurrentTime||e>t-u||(T=this.media)!=null&&T.paused||!this.startFragRequested?0:u;x=pn(i,s,e,ne)}else x=s[s.length-1];if(x){const D=x.sn-n.startSN,ne=this.fragmentTracker.getState(x);if((ne===At.OK||ne===At.PARTIAL&&x.gap)&&(i=x),i&&x.sn===i.sn&&(!m||f[0].fragment.sn>x.sn||!n.live)&&x.level===i.level){const Ne=s[D+1];x.sn<l&&this.fragmentTracker.getState(Ne)!==At.OK?x=Ne:x=null}}return x}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&&h(i);if(s||!l&&!i){hs(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&&h(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&&Qe(e)&&e.stats.aborted&&(this.log(`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!==wn.FRAG_LOADING_WAITING_RETRY)&&(this.state=wn.IDLE)}onFragmentOrKeyLoadError(e,t){var n;if(t.chunkMeta&&!t.frag){const Ne=this.getCurrentContext(t.chunkMeta);Ne&&(t.frag=Ne.frag)}const r=t.frag;if(!r||r.type!==e||!this.levels)return;if(this.fragContextChanged(r)){var i;this.warn(`Frag load error must match current frag to retry ${r.url} > ${(i=this.fragCurrent)==null?void 0:i.url}`);return}const s=t.details===B.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(r,!0);const l=t.errorAction;if(!l){this.state=wn.ERROR;return}const{action:c,flags:u,retryCount:f=0,retryConfig:m}=l,x=!!m,T=x&&c===Ut.RetryRequest,D=x&&!l.resolved&&u===wt.MoveAllAlternatesMatchingHost,ne=(n=this.hls.latestLevelDetails)==null?void 0:n.live;if(!T&&D&&Qe(r)&&!r.endList&&ne&&!Me(t))this.resetFragmentErrors(e),this.treatAsGap(r),l.resolved=!0;else if((T||D)&&f<m.maxNumRetry){var ee;const Ne=zt((ee=t.response)==null?void 0:ee.code),Ke=ke(m,f);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+Ke,this.state=wn.FRAG_LOADING_WAITING_RETRY,l.resolved=!0,Ne){this.log("Waiting for connection (offline)"),this.retryDate=1/0,t.reason="offline";return}this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${f+1}/${m.maxNumRetry} in ${Ke}ms`)}else if(m)if(this.resetFragmentErrors(e),f<m.maxNumRetry)!s&&c!==Ut.RemoveAlternatePermanently&&(l.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${f})`);return}else c===Ut.SendAlternateToPenaltyBox?this.state=wn.WAITING_LEVEL:this.state=wn.ERROR;this.tickImmediate()}checkRetryDate(){const e=self.performance.now(),t=this.retryDate,n=t===1/0;(!t||e>=t||n&&!zt(0))&&(n&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=wn.IDLE)}reduceLengthAndFlushBuffer(e){if(this.state===wn.PARSING||this.state===wn.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 (${this.getLoadPosition()}) is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===te.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==wn.STOPPED&&(this.state=wn.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=Cn.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===wn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==wn.STOPPED&&(this.state=wn.IDLE)}resetStartWhenNotLoaded(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const e=this.levelLastLoaded,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.log(`Loading context changed while buffering sn ${e.sn} of ${this.playlistLabel()} ${e.level===-1?"<removed>":e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(),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 m=f.endPTS-f.startPTS;if(m<=0)return this.warn(`Could not parse fragment ${e.sn} ${u} duration reliably (${m})`),c||!1;const x=r?0:hi(i,e,f.startPTS,f.endPTS,f.startDTS,f.endDTS,this);return this.hls.trigger(d.LEVEL_PTS_UPDATED,{details:i,level:n,drift:x,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:ae.MEDIA_ERROR,details:B.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=wn.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===te.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.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function ta(a){return!!a.interstitialsController&&a.enableInterstitialPlayback!==!1}class Ks{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=Is(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function Is(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 xs={exports:{}},Ls;function na(){return Ls||(Ls=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,m,x){if(typeof f!="function")throw new TypeError("The listener must be a function");var T=new r(f,m||c,x),D=t?t+u:u;return c._events[D]?c._events[D].fn?c._events[D]=[c._events[D],T]:c._events[D].push(T):(c._events[D]=T,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,m;if(this._eventsCount===0)return u;for(m in f=this._events)e.call(f,m)&&u.push(t?m.slice(1):m);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=t?t+u:u,m=this._events[f];if(!m)return[];if(m.fn)return[m.fn];for(var x=0,T=m.length,D=new Array(T);x<T;x++)D[x]=m[x].fn;return D},l.prototype.listenerCount=function(u){var f=t?t+u:u,m=this._events[f];return m?m.fn?1:m.length:0},l.prototype.emit=function(u,f,m,x,T,D){var ne=t?t+u:u;if(!this._events[ne])return!1;var ee=this._events[ne],Ne=arguments.length,Ke,Je;if(ee.fn){switch(ee.once&&this.removeListener(u,ee.fn,void 0,!0),Ne){case 1:return ee.fn.call(ee.context),!0;case 2:return ee.fn.call(ee.context,f),!0;case 3:return ee.fn.call(ee.context,f,m),!0;case 4:return ee.fn.call(ee.context,f,m,x),!0;case 5:return ee.fn.call(ee.context,f,m,x,T),!0;case 6:return ee.fn.call(ee.context,f,m,x,T,D),!0}for(Je=1,Ke=new Array(Ne-1);Je<Ne;Je++)Ke[Je-1]=arguments[Je];ee.fn.apply(ee.context,Ke)}else{var Lt=ee.length,jt;for(Je=0;Je<Lt;Je++)switch(ee[Je].once&&this.removeListener(u,ee[Je].fn,void 0,!0),Ne){case 1:ee[Je].fn.call(ee[Je].context);break;case 2:ee[Je].fn.call(ee[Je].context,f);break;case 3:ee[Je].fn.call(ee[Je].context,f,m);break;case 4:ee[Je].fn.call(ee[Je].context,f,m,x);break;default:if(!Ke)for(jt=1,Ke=new Array(Ne-1);jt<Ne;jt++)Ke[jt-1]=arguments[jt];ee[Je].fn.apply(ee[Je].context,Ke)}}return!0},l.prototype.on=function(u,f,m){return i(this,u,f,m,!1)},l.prototype.once=function(u,f,m){return i(this,u,f,m,!0)},l.prototype.removeListener=function(u,f,m,x){var T=t?t+u:u;if(!this._events[T])return this;if(!f)return s(this,T),this;var D=this._events[T];if(D.fn)D.fn===f&&(!x||D.once)&&(!m||D.context===m)&&s(this,T);else{for(var ne=0,ee=[],Ne=D.length;ne<Ne;ne++)(D[ne].fn!==f||x&&!D[ne].once||m&&D[ne].context!==m)&&ee.push(D[ne]);ee.length?this._events[T]=ee.length===1?ee[0]:ee:s(this,T)}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}(xs)),xs.exports}var ra=na(),ks=P(ra);const ps="1.6.13",ms={};function ia(){return typeof __HLS_WORKER_BUNDLE__=="function"}function zs(){const a=ms[ps];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 ms[ps]=r,r}function sa(a){const e=ms[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 ms[a]=r,r}function js(a){const e=ms[a||ps];if(e&&e.clientCount--===1){const{worker:n,objectURL:r}=e;delete ms[a||ps],r&&self.URL.revokeObjectURL(r),n.terminate()}}function Vs(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 Ws(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 Lr(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 kr(a,e){const t=e;let n=0;for(;Ws(a,e);){n+=10;const r=Lr(a,e+6);n+=r,Vs(a,e+10)&&(n+=10),e+=n}if(n>0)return a.subarray(t,t+n)}function ui(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 T=new Error(`invalid ADTS sampling index:${s}`);a.emit(d.ERROR,d.ERROR,{type:ae.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!0,error:T,reason:T.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 m=s;(l===5||l===29)&&(m-=3);const x=[l<<3|(m&14)>>1,(m&1)<<7|c<<3];return $.log(`manifest codec:${n}, parsed codec:${u}, channels:${c}, rate:${f} (ADTS object type:${l} sampling index:${s})`),{config:x,samplerate:f,channelCount:c,codec:u,parsedCodec:u,manifestCodec:n}}function bi(a,e){return a[e]===255&&(a[e+1]&246)===240}function oi(a,e){return a[e+1]&1?7:9}function Hi(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function ts(a,e){return e+5<a.length}function Mi(a,e){return e+1<a.length&&bi(a,e)}function Ss(a,e){return ts(a,e)&&bi(a,e)&&Hi(a,e)<=a.length-e}function Gs(a,e){if(Mi(a,e)){const t=oi(a,e);if(e+t>=a.length)return!1;const n=Hi(a,e);if(n<=t)return!1;const r=e+n;return r===a.length||Mi(a,r)}return!1}function uo(a,e,t,n,r){if(!a.samplerate){const i=ui(e,t,n,r);if(!i)return;p(a,i)}}function co(a){return 1024*9e4/a}function Fl(a,e){const t=oi(a,e);if(e+t<=a.length){const n=Hi(a,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function fo(a,e,t,n,r){const i=co(a.samplerate),s=n+r*i,l=Fl(e,t);let c;if(l){const{frameLength:m,headerLength:x}=l,T=x+m,D=Math.max(0,t+T-e.length);D?(c=new Uint8Array(T-x),c.set(e.subarray(t+x,e.length),0)):c=e.subarray(t+x,t+T);const ne={unit:c,pts:s};return D||a.samples.push(ne),{sample:ne,length:T,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 Bl(a,e){return Ws(a,e)&&Lr(a,e+6)+10<=a.length-e}function Ul(a){return a instanceof ArrayBuffer?a:a.byteOffset==0&&a.byteLength==a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer}function Aa(a,e=0,t=1/0){return Zl(a,e,t,Uint8Array)}function Zl(a,e,t,n){const r=Kl(a);let i=1;"BYTES_PER_ELEMENT"in n&&(i=n.BYTES_PER_ELEMENT);const s=zl(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 Kl(a){return a instanceof ArrayBuffer?a:a.buffer}function zl(a){return a&&a.buffer instanceof ArrayBuffer&&a.byteLength!==void 0&&a.byteOffset!==void 0}function jl(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=ot(Aa(a.data,1,n)),i=a.data[2+n],s=a.data.subarray(3+n).indexOf(0);if(s===-1)return;const l=ot(Aa(a.data,3+n,s));let c;return r==="-->"?c=ot(Aa(a.data,4+n+s)):c=Ul(a.data.subarray(4+n+s)),e.mimeType=r,e.pictureType=i,e.description=l,e.data=c,e}function Vl(a){if(a.size<2)return;const e=ot(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}}function Wl(a){if(a.size<2)return;if(a.type==="TXXX"){let t=1;const n=ot(a.data.subarray(t),!0);t+=n.length+1;const r=ot(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=ot(a.data.subarray(1));return{key:a.type,info:"",data:e}}function Gl(a){if(a.type==="WXXX"){if(a.size<2)return;let t=1;const n=ot(a.data.subarray(t),!0);t+=n.length+1;const r=ot(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=ot(a.data);return{key:a.type,info:"",data:e}}function Hl(a){return a.type==="PRIV"?Vl(a):a.type[0]==="W"?Gl(a):a.type==="APIC"?jl(a):Wl(a)}function Yl(a){const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=Lr(a,4),n=10;return{type:e,size:t,data:a.subarray(n,n+t)}}const aa=10,Xl=10;function ho(a){let e=0;const t=[];for(;Ws(a,e);){const n=Lr(a,e+6);a[e+5]>>6&1&&(e+=aa),e+=aa;const r=e+n;for(;e+Xl<r;){const i=Yl(a.subarray(e)),s=Hl(i);s&&t.push(s),e+=i.size+aa}Vs(a,e)&&(e+=aa)}return t}function po(a){return a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp"}function Ql(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 Ca(a){const e=ho(a);for(let t=0;t<e.length;t++){const n=e[t];if(po(n))return Ql(n)}}let Di=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 Yi(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Ta{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=ce(this.cachedData,e),this.cachedData=null);let n=kr(e,0),r=n?n.length:0,i;const s=this._audioTrack,l=this._id3Track,c=n?Ca(n):void 0,u=e.length;for((this.basePTS===null||this.frameIndex===0&&h(c))&&(this.basePTS=Jl(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:Di.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 Bl(e,r)?(n=kr(e,r),l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Di.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=ce(this.cachedData,f):this.cachedData=f}}return{audioTrack:s,videoTrack:Yi(),id3Track:l,textTrack:Yi()}}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:Yi(),id3Track:this._id3Track,textTrack:Yi()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const Jl=(a,e,t)=>{if(h(a))return a*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};let oa=null;const ql=[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],$l=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],eu=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],tu=[0,1,1,4];function mo(a,e,t,n,r){if(t+24>e.length)return;const i=go(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 go(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=ql[c*14+r-1]*1e3,m=$l[(t===3?0:t===2?1:2)*3+i],x=l===3?1:2,T=eu[t][n],D=tu[n],ne=T*8*D,ee=Math.floor(T*u/m+s)*D;if(oa===null){const Je=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);oa=Je?parseInt(Je[1]):0}return!!oa&&oa<=87&&n===2&&u>=224e3&&l===0&&(a[e+3]=a[e+3]|128),{sampleRate:m,channelCount:x,frameLength:ee,samplesPerFrame:ne}}}function Da(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function vo(a,e){return e+1<a.length&&Da(a,e)}function nu(a,e){return Da(a,e)&&4<=a.length-e}function yo(a,e){if(e+1<a.length&&Da(a,e)){const n=go(a,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===a.length||vo(a,i)}return!1}class ru extends Ta{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=kr(e,0);let r=(n==null?void 0:n.length)||0;if(yo(e,r))return!1;for(let i=e.length;r<i;r++)if(Gs(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Ss(e,t)}appendFrame(e,t,n){uo(e,this.observer,t,n,e.manifestCodec);const r=fo(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const _o=(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 iu extends Ta{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=Eo(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=kr(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&Ca(t)!==void 0&&_o(e,n)<16}}function Eo(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 m=e[t+6]>>5;let x=0;m===2?x+=2:(m&1&&m!==1&&(x+=2),m&4&&(x+=2));const T=(e[t+6]<<8|e[t+7])>>12-x&1,ne=[2,1,2,3,3,4,4,5][m]+T,ee=e[t+5]>>3,Ne=e[t+5]&7,Ke=new Uint8Array([i<<6|ee<<1|Ne>>2,(Ne&3)<<6|m<<3|T<<2|c>>4,c<<4&224]),Je=1536/l*9e4,Lt=n+r*Je,jt=e.subarray(t,t+f);return a.config=Ke,a.channelCount=ne,a.samplerate=l,a.samples.push({unit:jt,pts:Lt}),f}class su extends Ta{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=kr(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&Ca(t)!==void 0&&_o(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(yo(e,n))return $.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return nu(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return mo(e,t,n,this.basePTS,this.frameIndex)}}const au=/\/emsg[-/]ID3/i;class ou{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=Yi("video",1),s=this.audioTrack=Yi("audio",1),l=this.txtTrack=Yi("text",1);if(this.id3Track=Yi("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const c=Xe(e);if(c.video){const{id:u,timescale:f,codec:m,supplemental:x}=c.video;i.id=u,i.timescale=l.timescale=f,i.codec=m,i.supplemental=x}if(c.audio){const{id:u,timescale:f,codec:m}=c.audio;s.id=u,s.timescale=f,s.codec=m}l.id=$t.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return we(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=ce(this.remainderData,e));const l=ct(n);this.remainderData=l.remainder,r.samples=l.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=Z(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=Z(e,t),{videoTrack:t,audioTrack:Yi(),id3Track:r,textTrack:Yi()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=j(e.samples,["emsg"]);r&&r.forEach(i=>{const s=st(i);if(au.test(s.schemeIdUri)){const l=bo(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:Di.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=bo(s,t);n.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:Di.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 bo(a,e){return h(a.presentationTime)?a.presentationTime/a.timeScale:e+a.presentationTimeDelta/a.timeScale}class lu{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new zn(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,hn.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)}).catch(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=Ae(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)}).catch(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 xo{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,m,x=-1,T=0;for(i===-1&&(x=0,T=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,x>=0){const D={data:t.subarray(x,f),type:T};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=ce(D.data,t.subarray(0,f)),D.state=0))}c<r?(m=this.getNALuType(t,c),x=c,T=m,i=0):i=-1}else i=0}if(x>=0&&i>=0){const D={data:t.subarray(x,r),type:T,state:i};l.push(D)}if(l.length===0){const D=this.getLastNalUnit(e.samples);D&&(D.data=ce(D.data,t))}return e.naluState=i,l}}class Hs{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&&$.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 uu extends xo{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,m;switch(u.type){case 1:{let ne=!1;l=!0;const ee=u.data;if(c&&ee.length>4){const Ne=this.readSliceType(ee);(Ne===2||Ne===4||Ne===7||Ne===9)&&(ne=!0)}if(ne){var x;(x=s)!=null&&x.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=ne;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,Ce(u.data,1,n.pts,t.samples);break}case 7:{var T,D;l=!0,c=!0;const ne=u.data,ee=this.readSPS(ne);if(!e.sps||e.width!==ee.width||e.height!==ee.height||((T=e.pixelRatio)==null?void 0:T[0])!==ee.pixelRatio[0]||((D=e.pixelRatio)==null?void 0:D[1])!==ee.pixelRatio[1]){e.width=ee.width,e.height=ee.height,e.pixelRatio=ee.pixelRatio,e.sps=[ne];const Ne=ne.subarray(1,4);let Ke="avc1.";for(let Je=0;Je<3;Je++){let Lt=Ne[Je].toString(16);Lt.length<2&&(Lt="0"+Lt),Ke+=Lt}e.codec=Ke}break}case 8:l=!0,e.pps=[u.data];break;case 9:l=!0,e.audFound=!0,(m=s)!=null&&m.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 Hs(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 Hs(e);let n=0,r=0,i=0,s=0,l,c,u;const f=t.readUByte.bind(t),m=t.readBits.bind(t),x=t.readUEG.bind(t),T=t.readBoolean.bind(t),D=t.skipBits.bind(t),ne=t.skipEG.bind(t),ee=t.skipUEG.bind(t),Ne=this.skipScalingList.bind(this);f();const Ke=f();if(m(5),D(3),f(),ee(),Ke===100||Ke===110||Ke===122||Ke===244||Ke===44||Ke===83||Ke===86||Ke===118||Ke===128){const cn=x();if(cn===3&&D(1),ee(),ee(),D(1),T())for(c=cn!==3?8:12,u=0;u<c;u++)T()&&(u<6?Ne(16,t):Ne(64,t))}ee();const Je=x();if(Je===0)x();else if(Je===1)for(D(1),ne(),ne(),l=x(),u=0;u<l;u++)ne();ee(),D(1);const Lt=x(),jt=x(),vn=m(1);vn===0&&D(1),D(1),T()&&(n=x(),r=x(),i=x(),s=x());let Gt=[1,1];if(T()&&T())switch(f()){case 1:Gt=[1,1];break;case 2:Gt=[12,11];break;case 3:Gt=[10,11];break;case 4:Gt=[16,11];break;case 5:Gt=[40,33];break;case 6:Gt=[24,11];break;case 7:Gt=[20,11];break;case 8:Gt=[32,11];break;case 9:Gt=[80,33];break;case 10:Gt=[18,11];break;case 11:Gt=[15,11];break;case 12:Gt=[64,33];break;case 13:Gt=[160,99];break;case 14:Gt=[4,3];break;case 15:Gt=[3,2];break;case 16:Gt=[2,1];break;case 255:{Gt=[f()<<8|f(),f()<<8|f()];break}}return{width:Math.ceil((Lt+1)*16-n*2-r*2),height:(2-vn)*(jt+1)*16-(vn?2:4)*(i+s),pixelRatio:Gt}}}class cu extends xo{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,m;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 x;(x=s)!=null&&x.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,Ce(u.data,2,n.pts,t.samples);break;case 32:l=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=p(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 T=this.readSPS(u.data);e.width=T.width,e.height=T.height,e.pixelRatio=T.pixelRatio,e.codec=T.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const D in T.params)e.params[D]=T.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 T=this.readPPS(u.data);for(const D in T)e.params[D]=T[D]}this.pushParameterSet(e.pps,u.data,e.vps)}break;case 35:l=!0,e.audFound=!0,(m=s)!=null&&m.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 Hs(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 Hs(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(),m=t.readUByte(),x=t.readUByte(),T=t.readUByte(),D=t.readUByte(),ne=t.readUByte(),ee=t.readUByte(),Ne=t.readUByte(),Ke=[],Je=[];for(let Kr=0;Kr<n;Kr++)Ke.push(t.readBoolean()),Je.push(t.readBoolean());if(n>0)for(let Kr=n;Kr<8;Kr++)t.readBits(2);for(let Kr=0;Kr<n;Kr++)Ke[Kr]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),Je[Kr]&&t.readUByte();t.readUEG();const Lt=t.readUEG();Lt==3&&t.skipBits(1);const jt=t.readUEG(),vn=t.readUEG(),Gt=t.readBoolean();let cn=0,ln=0,Jt=0,In=0;Gt&&(cn+=t.readUEG(),ln+=t.readUEG(),Jt+=t.readUEG(),In+=t.readUEG());const nr=t.readUEG(),fr=t.readUEG(),vr=t.readUEG(),hr=t.readBoolean();for(let Kr=hr?0:n;Kr<=n;Kr++)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 Ei=0;Ei<4;Ei++)for(let Fi=0;Fi<(Ei===3?2:6);Fi++)if(!t.readBoolean())t.readUEG();else{const Ki=Math.min(64,1<<4+(Ei<<1));Ei>1&&t.readEG();for(let Us=0;Us<Ki;Us++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const sr=t.readUEG();let gr=0;for(let Kr=0;Kr<sr;Kr++){let Ei=!1;if(Kr!==0&&(Ei=t.readBoolean()),Ei){Kr===sr&&t.readUEG(),t.readBoolean(),t.readUEG();let Fi=0;for(let Ts=0;Ts<=gr;Ts++){const Ki=t.readBoolean();let Us=!1;Ki||(Us=t.readBoolean()),(Ki||Us)&&Fi++}gr=Fi}else{const Fi=t.readUEG(),Ts=t.readUEG();gr=Fi+Ts;for(let Ki=0;Ki<Fi;Ki++)t.readUEG(),t.readBoolean();for(let Ki=0;Ki<Ts;Ki++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const Kr=t.readUEG();for(let Ei=0;Ei<Kr;Ei++){for(let Fi=0;Fi<vr+4;Fi++)t.readBits(1);t.readBits(1)}}let $n=0,er=1,Pr=1,zr=!0,Nr=1,Or=0;t.readBoolean(),t.readBoolean();let _i=!1;if(t.readBoolean()){if(t.readBoolean()){const Ds=t.readUByte(),Rl=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],wa=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Ds>0&&Ds<16?(er=Rl[Ds-1],Pr=wa[Ds-1]):Ds===255&&(er=t.readBits(16),Pr=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(),_i=t.readBoolean(),_i&&(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG()),t.readBoolean()&&(Nr=t.readBits(32),Or=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const wa=t.readBoolean(),Il=t.readBoolean();let qs=!1;(wa||Il)&&(qs=t.readBoolean(),qs&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),qs&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let Ll=0;Ll<=n;Ll++){zr=t.readBoolean();const Vd=zr||t.readBoolean();let kl=!1;Vd?t.readEG():kl=t.readBoolean();const Pl=kl?1:t.readUEG()+1;if(wa)for(let $s=0;$s<Pl;$s++)t.readUEG(),t.readUEG(),qs&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(Il)for(let $s=0;$s<Pl;$s++)t.readUEG(),t.readUEG(),qs&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),$n=t.readUEG())}let Oi=jt,qi=vn;if(Gt){let Kr=1,Ei=1;Lt===1?Kr=Ei=2:Lt==2&&(Kr=2),Oi=jt-Kr*ln-Kr*cn,qi=vn-Ei*In-Ei*Jt}const Cs=r?["A","B","C"][r]:"",jd=l<<24|c<<16|u<<8|f;let oo=0;for(let Kr=0;Kr<32;Kr++)oo=(oo|(jd>>Kr&1)<<31-Kr)>>>0;let lo=oo.toString(16);return s===1&&lo==="2"&&(lo="6"),{codecString:`hvc1.${Cs}${s}.${lo}.${i?"H":"L"}${Ne}.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:[m,x,T,D,ne,ee],general_level_idc:Ne,bit_depth:nr+8,bit_depth_luma_minus8:nr,bit_depth_chroma_minus8:fr,min_spatial_segmentation_idc:$n,chroma_format_idc:Lt,frame_rate:{fixed:zr,fps:Or/Nr}},width:Oi,height:qi,pixelRatio:[er,Pr]}}readPPS(e){const t=new Hs(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 di=188;class gs{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=gs.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(di*5,t-di)+1,r=0;for(;r<n;){let i=!1,s=-1,l=0;for(let c=r;c<t;c+=di)if(e[c]===71&&(t-c===di||e[c+di]===71)){if(l++,s===-1&&(s=c,s!==0&&(n=Math.min(s+di*99,e.length-di)+1)),i||(i=Ra(e,c)===0),i&&l>1&&(s===0&&l>2||c+di>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:$t[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=gs.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=gs.createTrack("audio",r),this._id3Track=gs.createTrack("id3"),this._txtTrack=gs.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,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,m=s.pesData,x=l.pid,T=c.pid,D=l.pesData,ne=c.pesData,ee=null,Ne=this.pmtParsed,Ke=this._pmtId,Je=e.length;if(this.remainderData&&(e=ce(this.remainderData,e),Je=e.length,this.remainderData=null),Je<di&&!r)return this.remainderData=e,{audioTrack:l,videoTrack:s,id3Track:c,textTrack:u};const Lt=Math.max(0,gs.syncOffset(e));Je-=(Je-Lt)%di,Je<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,Je,e.buffer.byteLength-Je));let jt=0;for(let Gt=Lt;Gt<Je;Gt+=di)if(e[Gt]===71){const cn=!!(e[Gt+1]&64),ln=Ra(e,Gt),Jt=(e[Gt+3]&48)>>4;let In;if(Jt>1){if(In=Gt+5+e[Gt+4],In===Gt+di)continue}else In=Gt+4;switch(ln){case f:cn&&(m&&(i=Ps(m,this.logger))&&(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(s,u,i,!1)),m={data:[],size:0}),m&&(m.data.push(e.subarray(In,Gt+di)),m.size+=Gt+di-In);break;case x:if(cn){if(D&&(i=Ps(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,Gt+di)),D.size+=Gt+di-In);break;case T:cn&&(ne&&(i=Ps(ne,this.logger))&&this.parseID3PES(c,i),ne={data:[],size:0}),ne&&(ne.data.push(e.subarray(In,Gt+di)),ne.size+=Gt+di-In);break;case 0:cn&&(In+=e[In]+1),Ke=this._pmtId=du(e,In);break;case Ke:{cn&&(In+=e[In]+1);const nr=fu(e,In,this.typeSupported,n,this.observer,this.logger);f=nr.videoPid,f>0&&(s.pid=f,s.segmentCodec=nr.segmentVideoCodec),x=nr.audioPid,x>0&&(l.pid=x,l.segmentCodec=nr.segmentAudioCodec),T=nr.id3Pid,T>0&&(c.pid=T),ee!==null&&!Ne&&(this.logger.warn(`MPEG-TS PMT found at ${Gt} after unknown PID '${ee}'. Backtracking to sync byte @${Lt} to parse all TS packets.`),ee=null,Gt=Lt-188),Ne=this.pmtParsed=!0;break}case 17:case 8191:break;default:ee=ln;break}}else jt++;jt>0&&Ia(this.observer,new Error(`Found ${jt} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=m,l.pesData=D,c.pesData=ne;const vn={audioTrack:l,videoTrack:s,id3Track:c,textTrack:u};return r&&this.extractRemainingSamples(vn),vn}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=Ps(s,this.logger))?(this.readyVideoParser(n.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(n,i,u,!0),n.pesData=null)):n.pesData=s,l&&(u=Ps(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=Ps(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 lu(this.observer,this.config,t);return this.decrypt(r,i)}readyVideoParser(e){this.videoParser===null&&(e==="avc"?this.videoParser=new uu:e==="hevc"&&(this.videoParser=new cu))}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 m=r.missing,x=r.sample.unit.byteLength;if(m===-1)i=ce(r.sample.unit,i);else{const T=x-m;r.sample.unit.set(i.subarray(0,m),T),e.samples.push(r.sample),n=r.missing}}let s,l;for(s=n,l=i.length;s<l-1&&!Mi(i,s);s++);if(s!==n){let m;const x=s<l-1;if(x?m=`AAC PES did not start with ADTS header,offset:${s}`:m="No ADTS header found in AAC PES",Ia(this.observer,new Error(m),x,this.logger),!x)return}uo(e,this.observer,i,s,this.audioCodec);let c;if(t.pts!==void 0)c=t.pts;else if(r){const m=co(e.samplerate);c=r.sample.pts+m}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let u=0,f;for(;s<l;)if(f=fo(e,i,s,c,u),s+=f.length,f.missing){this.aacOverFlow=f;break}else for(u++;s<l-1&&!Mi(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(vo(n,s)){const c=mo(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=Eo(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=p({},t,{type:this._videoTrack?Di.emsg:Di.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function Ra(a,e){return((a[e+1]&31)<<8)+a[e+2]}function du(a,e){return(a[e+10]&31)<<8|a[e+11]}function fu(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=Ra(a,e),m=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!n){La("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){La("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){La("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&&m>0){let x=e+5,T=m;for(;T>2;){switch(a[x]){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 ne=a[x+1]+2;x+=ne,T-=ne}}break;case 194:case 135:return Ia(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+=m+5}return s}function Ia(a,e,t,n){n.warn(`parsing error: ${e.message}`),a.emit(d.ERROR,d.ERROR,{type:ae.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function La(a,e){e.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function Ps(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]=ce(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 m=i+9;if(a.size<=m)return null;a.size-=m;const x=new Uint8Array(a.size);for(let T=0,D=c.length;T<D;T++){n=c[T];let ne=n.byteLength;if(m)if(m>ne){m-=ne;continue}else n=n.subarray(m),ne-=m,m=0;x.set(n,t),t+=ne}return r&&(r-=i+3),{data:x,pts:s,dts:l,len:r}}return null}class hu{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 vs=Math.pow(2,32)-1;class rn{static init(){rn.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 rn.types)rn.types.hasOwnProperty(e)&&(rn.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]);rn.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]);rn.STTS=rn.STSC=rn.STCO=i,rn.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),rn.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),rn.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),rn.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]);rn.FTYP=rn.box(rn.types.ftyp,s,c,s,l),rn.DINF=rn.box(rn.types.dinf,rn.box(rn.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 rn.box(rn.types.hdlr,rn.HDLR_TYPES[e])}static mdat(e){return rn.box(rn.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(vs+1)),r=Math.floor(t%(vs+1));return rn.box(rn.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 rn.box(rn.types.mdia,rn.mdhd(e.timescale||0,e.duration||0),rn.hdlr(e.type),rn.minf(e))}static mfhd(e){return rn.box(rn.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"?rn.box(rn.types.minf,rn.box(rn.types.smhd,rn.SMHD),rn.DINF,rn.stbl(e)):rn.box(rn.types.minf,rn.box(rn.types.vmhd,rn.VMHD),rn.DINF,rn.stbl(e))}static moof(e,t,n){return rn.box(rn.types.moof,rn.mfhd(e),rn.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=rn.trak(e[t]);return rn.box.apply(null,[rn.types.moov,rn.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(rn.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=rn.trex(e[t]);return rn.box.apply(null,[rn.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(vs+1)),r=Math.floor(t%(vs+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 rn.box(rn.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 rn.box(rn.types.sdtp,n)}static stbl(e){return rn.box(rn.types.stbl,rn.stsd(e),rn.box(rn.types.stts,rn.STTS),rn.box(rn.types.stsc,rn.STSC),rn.box(rn.types.stsz,rn.STSZ),rn.box(rn.types.stco,rn.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=rn.box(rn.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],m=e.pixelRatio[1];return rn.box(rn.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,rn.box(rn.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),rn.box(rn.types.pasp,new Uint8Array([f>>24,f>>16&255,f>>8&255,f&255,m>>24,m>>16&255,m>>8&255,m&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 rn.box(rn.types.mp4a,rn.audioStsd(e),rn.box(rn.types.esds,rn.esds(e)))}static mp3(e){return rn.box(rn.types[".mp3"],rn.audioStsd(e))}static ac3(e){return rn.box(rn.types["ac-3"],rn.audioStsd(e),rn.box(rn.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return rn.box(rn.types.stsd,rn.STSD,rn.mp4a(e));if(t==="ac3"&&e.config)return rn.box(rn.types.stsd,rn.STSD,rn.ac3(e));if(t==="mp3"&&e.codec==="mp3")return rn.box(rn.types.stsd,rn.STSD,rn.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return rn.box(rn.types.stsd,rn.STSD,rn.avc1(e));if(t==="hevc"&&e.vps)return rn.box(rn.types.stsd,rn.STSD,rn.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/(vs+1)),l=Math.floor(n%(vs+1));return rn.box(rn.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=rn.sdtp(e),r=e.id,i=Math.floor(t/(vs+1)),s=Math.floor(t%(vs+1));return rn.box(rn.types.traf,rn.box(rn.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),rn.box(rn.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])),rn.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,rn.box(rn.types.trak,rn.tkhd(e),rn.mdia(e))}static trex(e){const t=e.id;return rn.box(rn.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,m,x;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,m=c.flags,x=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,m.isLeading<<2|m.dependsOn,m.isDependedOn<<6|m.hasRedundancy<<4|m.paddingValue<<1|m.isNonSync,m.degradPrio&61440,m.degradPrio&15,x>>>24&255,x>>>16&255,x>>>8&255,x&255],12+16*l);return rn.box(rn.types.trun,s)}static initSegment(e){rn.types||rn.init();const t=rn.moov(e);return ce(rn.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 ne=0;ne<n[D].length;ne+=1)s+=2+n[D][ne].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 ne=0;ne<n[D].length;ne+=1)l.set(new Uint8Array([n[D][ne].length>>8,n[D][ne].length&255]),s),s+=2,l.set(n[D][ne],s),s+=n[D][ne].length}const u=rn.box(rn.types.hvcC,l),f=e.width,m=e.height,x=e.pixelRatio[0],T=e.pixelRatio[1];return rn.box(rn.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,m>>8&255,m&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,rn.box(rn.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),rn.box(rn.types.pasp,new Uint8Array([x>>24,x>>16&255,x>>8&255,x&255,T>>24,T>>16&255,T>>8&255,T&255])))}}rn.types=void 0,rn.HDLR_TYPES=void 0,rn.STTS=void 0,rn.STSC=void 0,rn.STCO=void 0,rn.STSZ=void 0,rn.VMHD=void 0,rn.SMHD=void 0,rn.STSD=void 0,rn.FTYP=void 0,rn.DINF=void 0;const So=9e4;function ka(a,e,t=1,n=!1){const r=a*e*t;return n?Math.round(r):r}function pu(a,e,t=1,n=!1){return ka(a,e,1/t,n)}function Ys(a,e=!1){return ka(a,1e3,1/So,e)}function mu(a,e=1){return ka(a,So,1/e)}function wo(a){const{baseTime:e,timescale:t,trackId:n}=a;return`${e/t} (${e}/${t}) trackId: ${n}`}const gu=10*1e3,vu=1024,yu=1152,_u=1536;let Ns=null,Pa=null;function Ao(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 la extends q{constructor(e,t,n,r){if(super("mp4-remuxer",r),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1,Ns===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ns=s?parseInt(s[1]):0}if(Pa===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);Pa=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){const t=this._initPTS;(!t||!e||e.trackId!==t.trackId||e.baseTime!==t.baseTime||e.timescale!==t.timescale)&&this.log(`Reset initPTS: ${t&&wo(t)} > ${e&&wo(e)}`),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.log("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=Ri(l,n),c=l-i),c>0?i:l},n);return t&&this.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,l,c){let u,f,m,x,T,D,ne=i,ee=i;const Ne=e.pid>-1,Ke=t.pid>-1,Je=t.samples.length,Lt=e.samples.length>0,jt=l&&Je>0||Je>1;if((!Ne||Lt)&&(!Ke||jt)||this.ISGenerated||l){if(this.ISGenerated){var Gt,cn,ln,Jt;const vr=this.videoTrackConfig;(vr&&(t.width!==vr.width||t.height!==vr.height||((Gt=t.pixelRatio)==null?void 0:Gt[0])!==((cn=vr.pixelRatio)==null?void 0:cn[0])||((ln=t.pixelRatio)==null?void 0:ln[1])!==((Jt=vr.pixelRatio)==null?void 0:Jt[1]))||!vr&&jt||this.nextAudioTs===null&&Lt)&&this.resetInitSegment()}this.ISGenerated||(m=this.generateIS(e,t,i,s));const In=this.isVideoContiguous;let nr=-1,fr;if(jt&&(nr=Eu(t.samples),!In&&this.config.forceKeyFrameOnDiscontinuity))if(D=!0,nr>0){this.warn(`Dropped ${nr} out of ${Je} video samples due to a missing keyframe`);const vr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(nr),t.dropped+=nr,ee+=(t.samples[0].pts-vr)/t.inputTimeScale,fr=ee}else nr===-1&&(this.warn(`No keyframe found out of ${Je} video samples`),D=!1);if(this.ISGenerated){if(Lt&&jt){const vr=this.getVideoStartPts(t.samples),Qn=(Ri(e.samples[0].pts,vr)-vr)/t.inputTimeScale;ne+=Math.max(0,Qn),ee+=Math.max(0,-Qn)}if(Lt){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),m=this.generateIS(e,t,i,s)),f=this.remuxAudio(e,ne,this.isAudioContiguous,s,Ke||jt||c===te.AUDIO?ee:void 0),jt){const vr=f?f.endPTS-f.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),m=this.generateIS(e,t,i,s)),u=this.remuxVideo(t,ee,In,vr)}}else jt&&(u=this.remuxVideo(t,ee,In,0));u&&(u.firstKeyFrame=nr,u.independent=nr!==-1,u.firstKeyFramePTS=fr)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(T=Co(n,i,this._initPTS,this._initDTS)),r.samples.length&&(x=To(r,i,this._initPTS))),{audio:f,video:u,initSegment:m,independent:D,text:x,id3:T}}computeInitPts(e,t,n,r){const i=Math.round(n*t);let s=Ri(e,i);if(s<i+t)for(this.log(`Adjusting PTS for rollover in timeline near ${(i-s)/t} ${r}`);s<i+t;)s+=8589934592;return s-i}generateIS(e,t,n,r){const i=e.samples,s=t.samples,l=this.typeSupported,c={},u=this._initPTS;let f=!u||r,m="audio/mp4",x,T,D,ne=-1;if(f&&(x=T=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":l.mpeg?(m="audio/mpeg",e.codec=""):l.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}c.audio={id:"audio",container:m,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&l.mpeg?new Uint8Array(0):rn.initSegment([e]),metadata:{channelCount:e.channelCount}},f&&(ne=e.id,D=e.inputTimeScale,!u||D!==u.timescale?x=T=this.computeInitPts(i[0].pts,D,n,"audio"):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:rn.initSegment([t]),metadata:{width:t.width,height:t.height}},f)if(ne=t.id,D=t.inputTimeScale,!u||D!==u.timescale){const ee=this.getVideoStartPts(s),Ne=Ri(s[0].dts,ee),Ke=this.computeInitPts(Ne,D,n,"video"),Je=this.computeInitPts(ee,D,n,"video");T=Math.min(T,Ke),x=Math.min(x,Je)}else f=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(c).length)return this.ISGenerated=!0,f?(u&&this.warn(`Timestamps at playlist time: ${r?"":"~"}${n} ${x/D} != initPTS: ${u.baseTime/u.timescale} (${u.baseTime}/${u.timescale}) trackId: ${u.trackId}`),this.log(`Found initPTS at playlist time: ${n} offset: ${x/D} (${x}/${D}) trackId: ${ne}`),this._initPTS={baseTime:x,timescale:D,trackId:ne},this._initDTS={baseTime:T,timescale:D,trackId:ne}):x=D=void 0,{tracks:c,initPTS:x,timescale:D,trackId:ne}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,l=[],c=s.length,u=this._initPTS,f=u.baseTime*i/u.timescale;let m=this.nextVideoTs,x=8,T=this.videoSampleDuration,D,ne,ee=Number.POSITIVE_INFINITY,Ne=Number.NEGATIVE_INFINITY,Ke=!1;if(!n||m===null){const $n=f+t*i,er=s[0].pts-Ri(s[0].dts,s[0].pts);Ns&&m!==null&&Math.abs($n-er-(m+f))<15e3?n=!0:m=$n-er-f}const Je=m+f;for(let $n=0;$n<c;$n++){const er=s[$n];er.pts=Ri(er.pts,Je),er.dts=Ri(er.dts,Je),er.dts<s[$n>0?$n-1:$n].dts&&(Ke=!0)}Ke&&s.sort(function($n,er){const Pr=$n.dts-er.dts,zr=$n.pts-er.pts;return Pr||zr}),D=s[0].dts,ne=s[s.length-1].dts;const Lt=ne-D,jt=Lt?Math.round(Lt/(c-1)):T||e.inputTimeScale/30;if(n){const $n=D-Je,er=$n>jt,Pr=$n<-1;if((er||Pr)&&(er?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Ys($n,!0)} ms (${$n}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Ys(-$n,!0)} ms (${$n}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Pr||Je>=s[0].pts||Ns)){D=Je;const zr=s[0].pts-$n;if(er)s[0].dts=D,s[0].pts=zr;else{let Nr=!0;for(let Or=0;Or<s.length&&!(s[Or].dts>zr&&Nr);Or++){const _i=s[Or].pts;if(s[Or].dts-=$n,s[Or].pts-=$n,Or<s.length-1){const vi=s[Or+1].pts,Oi=s[Or].pts,qi=vi<=Oi,Cs=vi<=_i;Nr=qi==Cs}}}this.log(`Video: Initial PTS/DTS adjusted: ${Ys(zr,!0)}/${Ys(D,!0)}, delta: ${Ys($n,!0)} ms`)}}D=Math.max(0,D);let vn=0,Gt=0,cn=D;for(let $n=0;$n<c;$n++){const er=s[$n],Pr=er.units,zr=Pr.length;let Nr=0;for(let Or=0;Or<zr;Or++)Nr+=Pr[Or].data.length;Gt+=Nr,vn+=zr,er.length=Nr,er.dts<cn?(er.dts=cn,cn+=jt/4|0||1):cn=er.dts,ee=Math.min(er.pts,ee),Ne=Math.max(er.pts,Ne)}ne=s[c-1].dts;const ln=Gt+4*vn+8;let Jt;try{Jt=new Uint8Array(ln)}catch($n){this.observer.emit(d.ERROR,d.ERROR,{type:ae.MUX_ERROR,details:B.REMUX_ALLOC_ERROR,fatal:!1,error:$n,bytes:ln,reason:`fail allocating video mdat ${ln}`});return}const In=new DataView(Jt.buffer);In.setUint32(0,ln),Jt.set(rn.types.mdat,4);let nr=!1,fr=Number.POSITIVE_INFINITY,vr=Number.POSITIVE_INFINITY,hr=Number.NEGATIVE_INFINITY,Qn=Number.NEGATIVE_INFINITY;for(let $n=0;$n<c;$n++){const er=s[$n],Pr=er.units;let zr=0;for(let _i=0,vi=Pr.length;_i<vi;_i++){const Oi=Pr[_i],qi=Oi.data,Cs=Oi.data.byteLength;In.setUint32(x,Cs),x+=4,Jt.set(qi,x),x+=Cs,zr+=4+Cs}let Nr;if($n<c-1)T=s[$n+1].dts-er.dts,Nr=s[$n+1].pts-er.pts;else{const _i=this.config,vi=$n>0?er.dts-s[$n-1].dts:jt;if(Nr=$n>0?er.pts-s[$n-1].pts:jt,_i.stretchShortVideoTrack&&this.nextAudioTs!==null){const Oi=Math.floor(_i.maxBufferHole*i),qi=(r?ee+r*i:this.nextAudioTs+f)-er.pts;qi>Oi?(T=qi-vi,T<0?T=vi:nr=!0,this.log(`It is approximately ${qi/90} ms to the next segment; using duration ${T/90} ms for the last video frame.`)):T=vi}else T=vi}const Or=Math.round(er.pts-er.dts);fr=Math.min(fr,T),hr=Math.max(hr,T),vr=Math.min(vr,Nr),Qn=Math.max(Qn,Nr),l.push(Ao(er.key,T,zr,Or))}if(l.length){if(Ns){if(Ns<70){const $n=l[0].flags;$n.dependsOn=2,$n.isNonSync=0}}else if(Pa&&Qn-vr<hr-fr&&jt/hr<.025&&l[0].cts===0){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let $n=D;for(let er=0,Pr=l.length;er<Pr;er++){const zr=$n+l[er].duration,Nr=$n+l[er].cts;if(er<Pr-1){const Or=zr+l[er+1].cts;l[er].duration=Or-Nr}else l[er].duration=er?l[er-1].duration:jt;l[er].cts=0,$n=zr}}}T=nr||!T?jt:T;const pr=ne+T;this.nextVideoTs=m=pr-f,this.videoSampleDuration=T,this.isVideoContiguous=!0;const Tr={data1:rn.moof(e.sequenceNumber++,D,p(e,{samples:l})),data2:Jt,startPTS:(ee-f)/i,endPTS:(Ne+T-f)/i,startDTS:(D-f)/i,endDTS:m/i,type:"video",hasAudio:!1,hasVideo:!0,nb:l.length,dropped:e.dropped};return e.samples=[],e.dropped=0,Tr}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return yu;case"ac3":return _u;default:return vu}}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,m=this._initPTS,x=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,T=[],D=i!==void 0;let ne=e.samples,ee=x?0:8,Ne=this.nextAudioTs||-1;const Ke=m.baseTime*s/m.timescale,Je=Ke+t*s;if(this.isAudioContiguous=n=n||ne.length&&Ne>0&&(r&&Math.abs(Je-(Ne+Ke))<9e3||Math.abs(Ri(ne[0].pts,Je)-(Ne+Ke))<20*f),ne.forEach(function(Qn){Qn.pts=Ri(Qn.pts,Je)}),!n||Ne<0){const Qn=ne.length;if(ne=ne.filter(pr=>pr.pts>=0),Qn!==ne.length&&this.warn(`Removed ${ne.length-Qn} of ${Qn} samples (initPTS ${Ke} / ${s})`),!ne.length)return;i===0?Ne=0:r&&!D?Ne=Math.max(0,Je-Ke):Ne=ne[0].pts-Ke}if(e.segmentCodec==="aac"){const Qn=this.config.maxAudioFramesDrift;for(let pr=0,sr=Ne+Ke;pr<ne.length;pr++){const gr=ne[pr],Tr=gr.pts,$n=Tr-sr,er=Math.abs(1e3*$n/s);if($n<=-Qn*f&&D)pr===0&&(this.warn(`Audio frame @ ${(Tr/s).toFixed(3)}s overlaps marker by ${Math.round(1e3*$n/s)} ms.`),this.nextAudioTs=Ne=Tr-Ke,sr=Tr);else if($n>=Qn*f&&er<gu&&D){let Pr=Math.round($n/f);for(sr=Tr-Pr*f;sr<0&&Pr&&f;)Pr--,sr+=f;pr===0&&(this.nextAudioTs=Ne=sr-Ke),this.warn(`Injecting ${Pr} audio frames @ ${((sr-Ke)/s).toFixed(3)}s due to ${Math.round(1e3*$n/s)} ms gap.`);for(let zr=0;zr<Pr;zr++){let Nr=hu.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);Nr||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),Nr=gr.unit.subarray()),ne.splice(pr,0,{unit:Nr,pts:sr}),sr+=f,pr++}}gr.pts=sr,sr+=f}}let Lt=null,jt=null,vn,Gt=0,cn=ne.length;for(;cn--;)Gt+=ne[cn].unit.byteLength;for(let Qn=0,pr=ne.length;Qn<pr;Qn++){const sr=ne[Qn],gr=sr.unit;let Tr=sr.pts;if(jt!==null){const er=T[Qn-1];er.duration=Math.round((Tr-jt)/c)}else if(n&&e.segmentCodec==="aac"&&(Tr=Ne+Ke),Lt=Tr,Gt>0){Gt+=ee;try{vn=new Uint8Array(Gt)}catch(er){this.observer.emit(d.ERROR,d.ERROR,{type:ae.MUX_ERROR,details:B.REMUX_ALLOC_ERROR,fatal:!1,error:er,bytes:Gt,reason:`fail allocating audio mdat ${Gt}`});return}x||(new DataView(vn.buffer).setUint32(0,Gt),vn.set(rn.types.mdat,4))}else return;vn.set(gr,ee);const $n=gr.byteLength;ee+=$n,T.push(Ao(!0,u,$n,0)),jt=Tr}const ln=T.length;if(!ln)return;const Jt=T[T.length-1];Ne=jt-Ke,this.nextAudioTs=Ne+c*Jt.duration;const In=x?new Uint8Array(0):rn.moof(e.sequenceNumber++,Lt/c,p({},e,{samples:T}));e.samples=[];const nr=(Lt-Ke)/s,fr=Ne/s,hr={data1:In,data2:vn,startPTS:nr,endPTS:fr,startDTS:nr,endDTS:fr,type:"audio",hasAudio:!0,hasVideo:!1,nb:ln};return this.isAudioContiguous=!0,hr}}function Ri(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 Eu(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function Co(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=Ri(c.pts-t.baseTime*i/t.timescale,e*i)/i,c.dts=Ri(c.dts-n.baseTime*i/n.timescale,e*i)/i}const s=a.samples;return a.samples=[],{samples:s}}function To(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=Ri(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 bu extends q{constructor(e,t,n,r){super("passthrough-remuxer",r),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.isVideoContiguous=!1}destroy(){}resetTimeStamp(e){this.lastEndTime=null;const t=this.initPTS;t&&e&&t.baseTime===e.baseTime&&t.timescale===e.timescale||(this.initPTS=e)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(e,r),this.emitInitSegment=!0}generateInitSegment(e,t){let{audioCodec:n,videoCodec:r}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const{audio:i,video:s}=this.initData=Xe(e);if(t)ye(e,t);else{const c=i||s;c!=null&&c.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${c.codec}")!`)}i&&(n=Do(i,O.AUDIO,this)),s&&(r=Do(s,O.VIDEO,this));const l={};i&&s?l.audiovideo={container:"video/mp4",codec:n+","+r,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:i?l.audio={container:"audio/mp4",codec:n,encrypted:i.encrypted,initSegment:e,id:"audio"}:s?l.video={container:"video/mp4",codec:r,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=l}remux(e,t,n,r,i,s){var l,c;let{initPTS:u,lastEndTime:f}=this;const m={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};h(f)||(f=this.lastEndTime=i||0);const x=t.samples;if(!x.length)return m;const T={initPTS:void 0,timescale:void 0,trackId:void 0};let D=this.initData;if((l=D)!=null&&l.length||(this.generateInitSegment(x),D=this.initData),!((c=D)!=null&&c.length))return this.warn("Failed to generate initSegment."),m;this.emitInitSegment&&(T.tracks=this.initTracks,this.emitInitSegment=!1);const ne=et(x,D,this),ee=D.audio?ne[D.audio.id]:null,Ne=D.video?ne[D.video.id]:null,Ke=ua(Ne,1/0),Je=ua(ee,1/0),Lt=ua(Ne,0,!0),jt=ua(ee,0,!0);let vn=i,Gt=0;const cn=ee&&(!Ne||!u&&Je<Ke||u&&u.trackId===D.audio.id),ln=cn?ee:Ne;if(ln){const sr=ln.timescale,gr=ln.start-i*sr,Tr=cn?D.audio.id:D.video.id;vn=ln.start/sr,Gt=cn?jt-Je:Lt-Ke,(s||!u)&&(xu(u,vn,i,Gt)||sr!==u.timescale)&&(u&&this.warn(`Timestamps at playlist time: ${s?"":"~"}${i} ${gr/sr} != initPTS: ${u.baseTime/u.timescale} (${u.baseTime}/${u.timescale}) trackId: ${u.trackId}`),this.log(`Found initPTS at playlist time: ${i} offset: ${vn-i} (${gr}/${sr}) trackId: ${Tr}`),u=null,T.initPTS=gr,T.timescale=sr,T.trackId=Tr)}else this.warn(`No audio or video samples found for initPTS at playlist time: ${i}`);u?(T.initPTS=u.baseTime,T.timescale=u.timescale,T.trackId=u.trackId):((!T.timescale||T.trackId===void 0||T.initPTS===void 0)&&(this.warn("Could not set initPTS"),T.initPTS=vn,T.timescale=1,T.trackId=-1),this.initPTS=u={baseTime:T.initPTS,timescale:T.timescale,trackId:T.trackId});const Jt=vn-u.baseTime/u.timescale,In=Jt+Gt;Gt>0?this.lastEndTime=In:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const nr=!!D.audio,fr=!!D.video;let vr="";nr&&(vr+="audio"),fr&&(vr+="video");const hr=(D.audio?D.audio.encrypted:!1)||(D.video?D.video.encrypted:!1),Qn={data1:x,startPTS:Jt,startDTS:Jt,endPTS:In,endDTS:In,type:vr,hasAudio:nr,hasVideo:fr,nb:1,dropped:0,encrypted:hr};m.audio=nr&&!fr?Qn:void 0,m.video=fr?Qn:void 0;const pr=Ne==null?void 0:Ne.sampleCount;if(pr){const sr=Ne.keyFrameIndex,gr=sr!==-1;Qn.nb=pr,Qn.dropped=sr===0||this.isVideoContiguous?0:gr?sr:pr,Qn.independent=gr,Qn.firstKeyFrame=sr,gr&&Ne.keyFrameStart&&(Qn.firstKeyFramePTS=(Ne.keyFrameStart-u.baseTime)/u.timescale),this.isVideoContiguous||(m.independent=gr),this.isVideoContiguous||(this.isVideoContiguous=gr),Qn.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${sr}/${pr} dropped: ${Qn.dropped} start: ${Qn.firstKeyFramePTS||"NA"}`)}return m.initSegment=T,m.id3=Co(n,i,u,u),r.samples.length&&(m.text=To(r,i,u)),m}}function ua(a,e,t=!1){return(a==null?void 0:a.start)!==void 0?(a.start+(t?a.duration:0))/a.timescale:e}function xu(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 Do(a,e,t){const n=a.codec;return n&&n.length>4?n:e===O.AUDIO?n==="ec-3"||n==="ac-3"||n==="alac"?n:n==="fLaC"||n==="Opus"?Ye(n,!1):(t.warn(`Unhandled audio codec "${n}" in mp4 MAP`),n||"mp4a"):(t.warn(`Unhandled video codec "${n}" in mp4 MAP`),n||"avc1")}let ns;try{ns=self.performance.now.bind(self.performance)}catch(a){ns=Date.now}const ca=[{demux:ou,remux:bu},{demux:gs,remux:la},{demux:ru,remux:la},{demux:su,remux:la}];ca.splice(2,0,{demux:iu,remux:la});class Ro{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=ns();let s=new Uint8Array(e);const{currentTransmuxState:l,transmuxConfig:c}=this;r&&(this.currentTransmuxState=r);const{contiguous:u,discontinuity:f,trackSwitch:m,accurateTimeOffset:x,timeOffset:T,initSegmentChange:D}=r||l,{audioCodec:ne,videoCodec:ee,defaultInitPts:Ne,duration:Ke,initSegmentData:Je}=c,Lt=Su(s,t);if(Lt&&ar(Lt.method)){const cn=this.getDecrypter(),ln=dr(Lt.method);if(cn.isSync()){let Jt=cn.softwareDecrypt(s,Lt.key.buffer,Lt.iv.buffer,ln);if(n.part>-1){const nr=cn.flush();Jt=nr&&nr.buffer}if(!Jt)return i.executeEnd=ns(),Na(n);s=new Uint8Array(Jt)}else return this.asyncResult=!0,this.decryptionPromise=cn.webCryptoDecrypt(s,Lt.key.buffer,Lt.iv.buffer,ln).then(Jt=>{const In=this.push(Jt,null,n);return this.decryptionPromise=null,In}),this.decryptionPromise}const jt=this.needsProbing(f,m);if(jt){const cn=this.configureTransmuxer(s);if(cn)return this.logger.warn(`[transmuxer] ${cn.message}`),this.observer.emit(d.ERROR,d.ERROR,{type:ae.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,error:cn,reason:cn.message}),i.executeEnd=ns(),Na(n)}(f||m||D||jt)&&this.resetInitSegment(Je,ne,ee,Ke,t),(f||D||jt)&&this.resetInitialTimestamp(Ne),u||this.resetContiguity();const vn=this.transmux(s,Lt,T,x,n);this.asyncResult=Xs(vn);const Gt=this.currentTransmuxState;return Gt.contiguous=!0,Gt.discontinuity=!1,Gt.trackSwitch=!1,i.executeEnd=ns(),vn}flush(e){const t=e.transmuxing;t.executeStart=ns();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 m=n.flush();m&&s.push(this.push(m.buffer,null,e))}const{demuxer:c,remuxer:u}=this;if(!c||!u){t.executeEnd=ns();const m=[Na(e)];return this.asyncResult?Promise.resolve(m):m}const f=c.flush(l);return Xs(f)?(this.asyncResult=!0,f.then(m=>(this.flushRemux(s,m,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===te.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=ns()}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 m=0,x=ca.length;m<x;m++){var s;if((s=ca[m].demux)!=null&&s.probe(e,this.logger)){i=ca[m];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 zn(this.config)),e}}function Su(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 Na=a=>({remuxResult:{},chunkMeta:a});function Xs(a){return"then"in a&&a.then instanceof Function}class wu{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 Au{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 Io=0;class Lo{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Io++,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 m;const x=(m=this.workerContext)==null?void 0:m.objectURL;x&&self.URL.revokeObjectURL(x);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:ae.OTHER_ERROR,details:B.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 ks,this.observer.on(d.FRAG_DECRYPTED,s),this.observer.on(d.ERROR,s);const l=S(i.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const c=this.hls.logger;if(i.workerPath||ia()){try{i.workerPath?(c.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=sa(i.workerPath)):(c.log(`injecting Web Worker for "${t}"`),this.workerContext=zs());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:at(i)})}catch(f){c.warn(`Error setting up "${t}" Web Worker, fallback to inline`,f),this.terminateWorker(),this.error=null,this.transmuxer=new Ro(this.observer,l,i,"",t,e.logger)}return}}this.transmuxer=new Ro(this.observer,l,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=Io++;const t=this.hls.config,n=S(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:at(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),js(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 m,x;u.transmuxing.start=self.performance.now();const{instanceNo:T,transmuxer:D}=this,ne=s?s.start:i.start,ee=i.decryptdata,Ne=this.frag,Ke=!(Ne&&i.cc===Ne.cc),Je=!(Ne&&u.level===Ne.level),Lt=Ne?u.sn-Ne.sn:-1,jt=this.part?u.part-this.part.index:-1,vn=Lt===0&&u.id>1&&u.id===(Ne==null?void 0:Ne.stats.chunkCount),Gt=!Je&&(Lt===1||Lt===0&&(jt===1||vn&&jt<=0)),cn=self.performance.now();(Je||Lt||i.stats.parsing.start===0)&&(i.stats.parsing.start=cn),s&&(jt||!Gt)&&(s.stats.parsing.start=cn);const ln=!(Ne&&((m=i.initSegment)==null?void 0:m.url)===((x=Ne.initSegment)==null?void 0:x.url)),Jt=new Au(Ke,Gt,c,Je,ne,ln);if(!Gt||Ke||ln){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${u.sn}${u.part>-1?" part: "+u.part:""} ${this.id===te.MAIN?"level":"track"}: ${u.level} id: ${u.id}
|
|
discontinuity: ${Ke}
|
|
trackSwitch: ${Je}
|
|
contiguous: ${Gt}
|
|
accurateTimeOffset: ${c}
|
|
timeOffset: ${ne}
|
|
initSegmentChange: ${ln}`);const In=new wu(n,r,t,l,f);this.configureTransmuxer(In)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:T,cmd:"demux",data:e,decryptdata:ee,chunkMeta:u,state:Jt},e instanceof ArrayBuffer?[e]:[]);else if(D){const In=D.push(e,ee,u,Jt);Xs(In)?In.then(nr=>{this.handleTransmuxComplete(nr)}).catch(nr=>{this.transmuxerError(nr,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);Xs(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:ae.MEDIA_ERROR,details:B.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 ko=100;class Cu extends Zs{constructor(e,t,n){super(e,t,n,"audio-stream-controller",te.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,trackId:s}){if(n===te.MAIN){const l=t.cc,c=this.fragCurrent;if(this.initPTS[l]={baseTime:r,timescale:i,trackId:s},this.log(`InitPTS for cc: ${l} found from main: ${r/i} (${r}/${i}) trackId: ${s}`),this.mainAnchor=t,this.state===wn.WAITING_INIT_PTS){const u=this.waitingData;(!u&&!this.loadingParts||u&&u.frag.cc!==l)&&this.syncWithAnchor(t,u==null?void 0:u.frag)}else!this.hls.hasEnoughToStart&&c&&c.cc!==l?(c.abortRequests(),this.syncWithAnchor(t,c)):this.state===wn.IDLE&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var n;const r=((n=this.mainFragLoading)==null?void 0:n.frag)||null;if(t&&(r==null?void 0:r.cc)===t.cc)return;const i=(r||e).cc,s=this.getLevelDetails(),l=this.getLoadPosition(),c=Un(s,i,l);c&&(this.log(`Syncing with main frag at ${c.start} cc ${c.cc}`),this.startFragRequested=!1,this.nextLoadPosition=c.start,this.resetLoadingState(),this.state===wn.IDLE&&this.doTickIdle())}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=wn.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(ko),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=wn.IDLE):this.state=wn.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case wn.IDLE:this.doTickIdle();break;case wn.WAITING_TRACK:{const{levels:e,trackId:t}=this,n=e==null?void 0:e[t],r=n==null?void 0:n.details;if(r&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(r))break;this.state=wn.WAITING_INIT_PTS}break}case wn.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case wn.WAITING_INIT_PTS:{const e=this.waitingData;if(e){const{frag:t,part:n,cache:r,complete:i}=e,s=this.mainAnchor;if(this.initPTS[t.cc]!==void 0){this.waitingData=null,this.state=wn.FRAG_LOADING;const l=r.flush().buffer,c={frag:t,part:n,payload:l,networkDetails:null};this._handleFragmentLoadProgress(c),i&&super._handleFragmentLoadComplete(c)}else s&&s.cc!==e.frag.cc&&this.syncWithAnchor(s,e.frag)}else this.state=wn.IDLE}}this.onTickEnd()}resetLoadingState(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null),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=wn.WAITING_TRACK,this.startFragRequested=!1;return}const u=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&u&&(this.bufferFlushed=!1,this.afterBufferFlushed(u,O.AUDIO,te.AUDIO));const f=this.getFwdBufferInfo(u,te.AUDIO);if(f===null)return;if(!this.switchingTrack&&this._streamEnded(f,c)){t.trigger(d.BUFFER_EOS,{type:"audio"}),this.state=wn.ENDED;return}const m=f.len,x=t.maxBufferLength,T=c.fragments,D=T[0].start,ne=this.getLoadPosition(),ee=this.flushing?ne:f.end;if(this.switchingTrack&&r){const Je=ne;c.PTSKnown&&Je<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(m>=x&&!this.switchingTrack&&ee<T[T.length-1].start)return;let Ne=this.getNextFragment(ee,c);if(Ne&&this.isLoopLoading(Ne,ee)&&(Ne=this.getNextFragmentLoopLoading(Ne,c,f,te.MAIN,x)),!Ne){this.bufferFlushed=!0;return}let Ke=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&Ke&&Qe(Ne)&&!Ne.endList&&(!c.live||!this.loadingParts&&ee<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(Ke)===At.OK&&(this.mainFragLoading=Ke=null),Ke&&Qe(Ke))){if(Ne.start>Ke.end){const Lt=this.fragmentTracker.getFragAtPos(ee,te.MAIN);Lt&&Lt.end>Ke.end&&(Ke=Lt,this.mainFragLoading={frag:Lt,targetBufferTime:null})}if(Ne.start>Ke.end)return}this.loadFragment(Ne,l,ee)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new un(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!==wn.STOPPED&&(this.setInterval(ko),this.state=wn.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!==wn.STOPPED&&(this.state=wn.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 m=0;if(i.live||(n=f.details)!=null&&n.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;if(f.details){var x;m=this.alignPlaylists(i,f.details,(x=this.levelLastLoaded)==null?void 0:x.details)}i.alignedSliding||(es(i,u),i.alignedSliding||bs(i,u),m=i.fragmentStart)}f.details=i,this.levelLastLoaded=f,this.startFragRequested||this.setStartPosition(u,m),this.hls.trigger(d.AUDIO_TRACK_UPDATED,{details:i,id:s,groupId:t.groupId}),this.state===wn.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=wn.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 m=s.defaultAudioCodec||u.audioCodec||"mp4a.40.2";let x=this.transmuxer;x||(x=this.transmuxer=new Lo(this.hls,te.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const T=this.initPTS[n.cc],D=(t=n.initSegment)==null?void 0:t.data;if(T!==void 0){const ee=r?r.index:-1,Ne=ee!==-1,Ke=new Wt(n.level,n.sn,n.stats.chunkCount,i.byteLength,ee,Ne);x.push(i,D,m,"",n,r,f.totalduration,!1,Ke,T)}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:ne}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new Ks,complete:!1};ne.push(new Uint8Array(i)),this.state!==wn.STOPPED&&(this.state=wn.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===te.MAIN&&Qe(t.frag)&&(this.mainFragLoading=t,this.state===wn.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==te.AUDIO){!this.audioOnly&&n.type===te.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(Qe(n)){this.fragPrevious=n;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(d.AUDIO_TRACK_SWITCHED,b({},i)))}this.fragBufferedComplete(n,r),this.media&&this.tick()}onError(e,t){var n;if(t.fatal){this.state=wn.ERROR;return}switch(t.details){case B.FRAG_GAP:case B.FRAG_PARSING_ERROR:case B.FRAG_DECRYPT_ERROR:case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(te.AUDIO,t);break;case B.AUDIO_TRACK_LOAD_ERROR:case B.AUDIO_TRACK_LOAD_TIMEOUT:case B.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===wn.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===_e.AUDIO_TRACK&&(this.state=wn.IDLE);break;case B.BUFFER_ADD_CODEC_ERROR:case B.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)||this.resetLoadingState();break;case B.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case B.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==O.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==O.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===wn.ENDED&&(this.state=wn.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,te.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:m}=f,{audio:x,text:T,id3:D,initSegment:ne}=i;if(this.fragContextChanged(c)||!m){this.fragmentTracker.removeFragment(c);return}if(this.state=wn.PARSING,this.switchingTrack&&x&&this.completeAudioSwitch(this.switchingTrack),ne!=null&&ne.tracks){const ee=c.initSegment||c;if(this.unhandledEncryptionError(ne,c))return;this._bufferInitSegment(f,ne.tracks,ee,s),r.trigger(d.FRAG_PARSING_INIT_SEGMENT,{frag:ee,id:n,tracks:ne.tracks})}if(x){const{startPTS:ee,endPTS:Ne,startDTS:Ke,endDTS:Je}=x;u&&(u.elementaryStreams[O.AUDIO]={startPTS:ee,endPTS:Ne,startDTS:Ke,endDTS:Je}),c.setElementaryStreamInfo(O.AUDIO,ee,Ne,Ke,Je),this.bufferFragmentData(x,c,u,s)}if(D!=null&&(t=D.samples)!=null&&t.length){const ee=p({id:n,frag:c,details:m},D);r.trigger(d.FRAG_PARSING_METADATA,ee)}if(T){const ee=p({id:n,frag:c,details:m},T);r.trigger(d.FRAG_PARSING_USERDATA,ee)}}_bufferInitSegment(e,t,n,r){if(this.state!==wn.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const i=t.audio;i.id=te.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===At.NOT_LOADED||r===At.PARTIAL){var i;if(!Qe(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=wn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==t.details.fragmentStart&&bs(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;An({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:l},e,bn)||(Mn(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,b({},e))}}class Ma extends q{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.lastPartSn;let c=parseInt(s["LAST-PART"])||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&&tn(n);return new Ft(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(m=>{m.setStart(m.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){Ci(n,r,this);const Ke=r.playlistParsingError;if(Ke){this.warn(Ke);const Je=this.hls;if(!Je.config.ignorePlaylistParsingErrors){var u;const{networkDetails:Lt}=t;Je.trigger(d.ERROR,{type:ae.NETWORK_ERROR,details:B.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:Ke,reason:Ke.message,level:t.level||void 0,parent:(u=r.fragments[0])==null?void 0:u.type,networkDetails:Lt,stats:i});return}r.playlistParsingError=null}}r.requestScheduled===-1&&(r.requestScheduled=i.loading.start);const m=this.hls.mainForwardBufferInfo,x=m?m.end-m.len:0,T=(r.edge-x)*1e3,D=Yr(r,T);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 ne,ee,Ne;if(r.canBlockReload&&r.endSN&&r.advanced){const Ke=this.hls.config.lowLatencyMode,Je=r.lastPartSn,Lt=r.endSN,jt=r.lastPartIndex,vn=jt!==-1,Gt=Je===Lt;vn?Gt?(ee=Lt+1,Ne=Ke?0:jt):(ee=Je,Ne=Ke?jt+1:r.maxPartIndex):ee=Lt+1;const cn=r.age,ln=cn+r.ageHeader;let Jt=Math.min(ln-r.partTarget,r.targetduration*1.5);if(Jt>0){if(ln>r.targetduration*3)this.log(`Playlist last advanced ${cn.toFixed(2)}s ago. Omitting segment and part directives.`),ee=void 0,Ne=void 0;else if(n!=null&&n.tuneInGoal&&ln-r.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${Jt} with playlist age: ${r.age}`),Jt=0;else{const In=Math.floor(Jt/r.targetduration);if(ee+=In,Ne!==void 0){const nr=Math.round(Jt%r.targetduration/r.partTarget);Ne+=nr}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${cn.toFixed(2)}s goal: ${Jt} skip sn ${In} to part ${Ne}`)}r.tuneInGoal=Jt}if(ne=this.getDeliveryDirectives(r,t.deliveryDirectives,ee,Ne),Ke||!Gt){r.requestScheduled=s,this.loadingPlaylist(f,ne);return}}else(r.canBlockReload||r.canSkipUntil)&&(ne=this.getDeliveryDirectives(r,t.deliveryDirectives,ee,Ne));ne&&ee!==void 0&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(D-l*2,D/2)),this.scheduleLoading(f,ne,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=tn(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=Zt.No),new Ft(n,r,i)}checkRetry(e){const t=e.details,n=jn(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:l}=r||{},c=!!r&&!!l&&(i===Ut.RetryRequest||!r.resolved&&i===Ut.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=ke(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 Po(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!Qs(a[t].attrs,e[t].attrs))return!1;return!0}function Qs(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 Oa(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class Tu extends Ma{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(x=>!n||n.indexOf(x.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(x=>x.default)&&(this.selectDefaultTrack=!1),l.forEach((x,T)=>{x.id=T});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const c=this.hls.config.audioPreference;if(!i&&c){const x=_n(c,l,bn);if(x>-1)i=l[x];else{const T=_n(c,this.tracks);i=this.tracks[T]}}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 m=this.trackId;if(u!==-1&&m===-1)this.setAudioTrack(u);else if(l.length&&m===-1){var s;const x=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(x.message),this.hls.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:x})}}}onError(e,t){t.fatal||!t.context||t.context.type===_e.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&&An(e,r,bn))return r;const i=_n(e,this.tracksInGroup,bn);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=Zn(e,t.levels,n,s,bn);if(l===-1)return null;t.nextLoadLevel=l}if(e.channels||e.audioCodec){const s=_n(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,b({},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||An(e,r,bn)))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(An({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:c},f,bn))return u}for(let u=0;u<t.length;u++){const f=t[u];if(Qs(e.attrs,f.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return u}for(let u=0;u<t.length;u++){const f=t[u];if(Qs(e.attrs,f.attrs,["LANGUAGE"]))return u}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&Mn(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 Du{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 No=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,Mo="HlsJsTrackRemovedError";class Ru extends Error{constructor(e){super(e),this.name=Mo}}class Iu extends q{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=ve(oe(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?p(n,r.tracks):this.sourceBuffers.forEach(i=>{const[s]=i;s&&(n[s]=p({},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;this.transferData=this.overrides=void 0;const r=oe(this.appendSource);if(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,Oo(n),Lu(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=()=>{Promise.resolve().then(()=>{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: ${at(n,(c,u)=>c==="initSegment"?void 0:u)};
|
|
transfer tracks: ${at(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 m=f.buffer;if(m){const x=this.fragmentTracker,T=f.id;if(x.hasFragments(T)||x.hasParts(T)){const ee=Cn.getBuffered(m);x.detectEvictedFragments(u,ee,T,null,!0)}const D=Fa(u),ne=[u,m];this.sourceBuffers[D]=ne,m.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&&Oo(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[Fa(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new Du(this.tracks)}onBufferCodecs(e,t){var n;const r=this.tracks,i=Object.keys(t);this.log(`BUFFER_CODECS: "${i}" (current SB count ${this.sourceBufferCount})`);const s="audiovideo"in t&&(r.audio||r.video)||r.audiovideo&&("audio"in t||"video"in t),l=!s&&this.sourceBufferCount&&this.media&&i.some(c=>!r[c]);if(s||l){this.warn(`Unsupported transition between "${Object.keys(r)}" and "${i}" SourceBuffers`);return}i.forEach(c=>{var u,f;const m=t[c],{id:x,codec:T,levelCodec:D,container:ne,metadata:ee,supplemental:Ne}=m;let Ke=r[c];const Je=(u=this.transferData)==null||(u=u.tracks)==null?void 0:u[c],Lt=Je!=null&&Je.buffer?Je:Ke,jt=(Lt==null?void 0:Lt.pendingCodec)||(Lt==null?void 0:Lt.codec),vn=Lt==null?void 0:Lt.levelCodec;Ke||(Ke=r[c]={buffer:void 0,listeners:[],codec:T,supplemental:Ne,container:ne,levelCodec:D,metadata:ee,id:x});const Gt=nt(jt,vn),cn=Gt==null?void 0:Gt.replace(No,"$1");let ln=nt(T,D);const Jt=(f=ln)==null?void 0:f.replace(No,"$1");ln&&Gt&&cn!==Jt&&(c.slice(0,5)==="audio"&&(ln=Ye(ln,this.appendSource)),this.log(`switching codec ${jt} to ${ln}`),ln!==(Ke.pendingCodec||Ke.codec)&&(Ke.pendingCodec=ln),Ke.container=ne,this.appendChangeType(c,ne,ln))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!t.video&&((n=t.audio)==null?void 0:n.id)==="main"&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),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,te.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&&Cn.isBuffered(c.buffer,r)||((l=this.fragmentTracker.getAppendedFrag(r,te.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,offset:f}=t,m=u.buffering[i],{sn:x,cc:T}=l,D=self.performance.now();m.start=D;const ne=l.stats.buffering,ee=c?c.stats.buffering:null;ne.start===0&&(ne.start=D),ee&&ee.start===0&&(ee.start=D);const Ne=n.audio;let Ke=!1;i==="audio"&&(Ne==null?void 0:Ne.container)==="audio/mpeg"&&(Ke=!this.lastMpegAudioChunk||u.id===1||this.lastMpegAudioChunk.sn!==u.sn,this.lastMpegAudioChunk=u);const Je=n.video,Lt=Je==null?void 0:Je.buffer;if(Lt&&x!=="initSegment"){const Gt=c||l,cn=this.blockedAudioAppend;if(i==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(Je.ending||Je.ended)){const Jt=Gt.start+Gt.duration*.05,In=Lt.buffered,nr=this.currentOp("video");!In.length&&!nr?this.blockAudio(Gt):!nr&&!Cn.isBuffered(Lt,Jt)&&this.lastVideoAppendEnd<Jt&&this.blockAudio(Gt)}else if(i==="video"){const ln=Gt.end;if(cn){const Jt=cn.frag.start;(ln>Jt||ln<this.lastVideoAppendEnd||Cn.isBuffered(Lt,Jt))&&this.unblockAudio()}this.lastVideoAppendEnd=ln}}const jt=(c||l).start,vn={label:`append-${i}`,execute:()=>{var Gt;m.executeStart=self.performance.now();const cn=(Gt=this.tracks[i])==null?void 0:Gt.buffer;cn&&(Ke?this.updateTimestampOffset(cn,jt,.1,i,x,T):f!==void 0&&h(f)&&this.updateTimestampOffset(cn,f,1e-6,i,x,T)),this.appendExecutor(r,i)},onStart:()=>{},onComplete:()=>{const Gt=self.performance.now();m.executeEnd=m.end=Gt,ne.first===0&&(ne.first=Gt),ee&&ee.first===0&&(ee.first=Gt);const cn={};this.sourceBuffers.forEach(([ln,Jt])=>{ln&&(cn[ln]=Cn.getBuffered(Jt))}),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:cn})},onError:Gt=>{var cn;const ln={type:ae.MEDIA_ERROR,parent:l.type,details:B.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:l,part:c,chunkMeta:u,error:Gt,err:Gt,fatal:!1},Jt=(cn=this.media)==null?void 0:cn.error;if(Gt.code===DOMException.QUOTA_EXCEEDED_ERR||Gt.name=="QuotaExceededError"||"quota"in Gt)ln.details=B.BUFFER_FULL_ERROR;else if(Gt.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!Jt)ln.errorAction=Et(!0);else if(Gt.name===Mo&&this.sourceBufferCount===0)ln.errorAction=Et(!0);else{const In=++this.appendErrors[i];this.warn(`Failed ${In}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${i}" sourceBuffer (${Jt||"no media error"})`),(In>=this.hls.config.appendErrorMaxRetry||Jt)&&(ln.fatal=!0)}this.hls.trigger(d.ERROR,ln)}};this.log(`queuing "${i}" append sn: ${x}${c?" p: "+c.index:""} of ${l.type===te.MAIN?"level":"track"} ${l.level} cc: ${T}`),this.append(vn,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[O.AUDIOVIDEO]?i.push("audiovideo"):(s[O.AUDIO]&&i.push("audio"),s[O.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])=>{if(e){const t=this.tracks[e];if(t)return!t.ended||t.ending}return!1})}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)):t.type==="video"&&this.unblockAudio()}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(){this.blockUntilOpen(()=>{const e=this.getDurationAndRange();e&&this.updateMediaSource(e)})}onError(e,t){if(t.details===B.BUFFER_APPEND_ERROR&&t.frag){var n;const r=(n=t.errorAction)==null?void 0:n.nextAutoLevel;h(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(h(l)&&l>=0){const u=Math.max(l,s),f=Math.floor(i/s)*s-u;this.flushBackBuffer(i,s,f)}const c=r.frontBufferFlushThreshold;if(h(c)&&c>0){const u=Math.max(r.maxBufferLength,c),f=Math.max(u,s),m=Math.floor(i/s)*s+f;this.flushFrontBuffer(i,s,m)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const l=Cn.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=Cn.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&&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 h(i)?{duration:i}:null;const s=this.media.duration,l=h(n.duration)?n.duration:0;return r>l&&r>s||!h(s)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;!this.media||!r||r.readyState!=="open"||(r.duration!==e&&(h(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}) ${at(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:ae.MEDIA_ERROR,details:B.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":""} ${at(l)}`);try{const f=n.addSourceBuffer(u),m=Fa(s),x=[s,f];t[m]=x,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:ae.MEDIA_ERROR,details:B.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")&&ge(n,"video")&&(r=dt(r,n));const i=nt(r,e.levelCodec);return i?t.slice(0,5)==="audio"?Ye(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:ae.MEDIA_ERROR,details:B.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.currentOp(e);i&&i.onError(r)}updateTimestampOffset(e,t,n,r,i,s){const l=t-e.timestampOffset;Math.abs(l)>=n&&(this.log(`Updating ${r} SourceBuffer timestampOffset to ${t} (sn: ${i} cc: ${s})`),e.timestampOffset=t)}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=h(r.duration)?r.duration:1/0,u=h(i.duration)?i.duration:1/0,f=Math.max(0,t),m=Math.min(n,c,u);m>f&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${f},${m}] from the ${e} SourceBuffer`),l.remove(f,m)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],r=n==null?void 0:n.buffer;if(!r)throw new Ru(`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 Oo(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function Lu(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}function Fa(a){return a==="audio"?1:0}class Ba{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&&h(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,Ba.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 wi={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},ku={HLS:"h"};class Xi{constructor(e,t){Array.isArray(e)&&(e=e.map(n=>n instanceof Xi?n:new Xi(n))),this.value=e,this.params=t}}const Pu="Dict";function Nu(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 Mu(a,e,t,n){return new Error(`failed to ${a} "${Nu(e)}" as ${t}`,{cause:n})}function Qi(a,e,t){return Mu("serialize",a,e,t)}class Fo{constructor(e){this.description=e}}const Bo="Bare Item",Ou="Boolean";function Fu(a){if(typeof a!="boolean")throw Qi(a,Ou);return a?"?1":"?0"}function Bu(a){return btoa(String.fromCharCode(...a))}const Uu="Byte Sequence";function Zu(a){if(ArrayBuffer.isView(a)===!1)throw Qi(a,Uu);return`:${Bu(a)}:`}const Ku="Integer";function zu(a){return a<-999999999999999||999999999999999<a}function Uo(a){if(zu(a))throw Qi(a,Ku);return a.toString()}function ju(a){return`@${Uo(a.getTime()/1e3)}`}function Zo(a,e){if(a<0)return-Zo(-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}const Vu="Decimal";function Wu(a){const e=Zo(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Qi(a,Vu);const t=e.toString();return t.includes(".")?t:`${t}.0`}const Gu="String",Hu=/[\x00-\x1f\x7f]+/;function Yu(a){if(Hu.test(a))throw Qi(a,Gu);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Xu(a){return a.description||a.toString().slice(7,-1)}const Qu="Token";function Ko(a){const e=Xu(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Qi(e,Qu);return e}function Ua(a){switch(typeof a){case"number":if(!h(a))throw Qi(a,Bo);return Number.isInteger(a)?Uo(a):Wu(a);case"string":return Yu(a);case"symbol":return Ko(a);case"boolean":return Fu(a);case"object":if(a instanceof Date)return ju(a);if(a instanceof Uint8Array)return Zu(a);if(a instanceof Fo)return Ko(a);default:throw Qi(a,Bo)}}const Ju="Key";function Za(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw Qi(a,Ju);return a}function Ka(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${Za(e)}`:`;${Za(e)}=${Ua(t)}`).join("")}function zo(a){return a instanceof Xi?`${Ua(a.value)}${Ka(a.params)}`:Ua(a)}function qu(a){return`(${a.value.map(zo).join(" ")})${Ka(a.params)}`}function $u(a,e={whitespace:!0}){if(typeof a!="object"||a==null)throw Qi(a,Pu);const t=a instanceof Map?a.entries():Object.entries(a),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof Xi||(i=new Xi(i));let s=Za(r);return i.value===!0?s+=Ka(i.params):(s+="=",Array.isArray(i.value)?s+=qu(i):s+=zo(i)),s}).join(`,${n}`)}function jo(a,e){return $u(a,e)}const Ji="CMCD-Object",ii="CMCD-Request",ws="CMCD-Session",ys="CMCD-Status",ec={br:Ji,ab:Ji,d:Ji,ot:Ji,tb:Ji,tpb:Ji,lb:Ji,tab:Ji,lab:Ji,url:Ji,pb:ii,bl:ii,tbl:ii,dl:ii,ltc:ii,mtp:ii,nor:ii,nrr:ii,rc:ii,sn:ii,sta:ii,su:ii,ttfb:ii,ttfbb:ii,ttlb:ii,cmsdd:ii,cmsds:ii,smrt:ii,df:ii,cs:ii,ts:ii,cid:ws,pr:ws,sf:ws,sid:ws,st:ws,v:ws,msd:ws,bs:ys,bsd:ys,cdn:ys,rtp:ys,bg:ys,pt:ys,ec:ys,e:ys},tc={REQUEST:ii};function nc(a){return Object.keys(a).reduce((e,t)=>{var n;return(n=a[t])===null||n===void 0||n.forEach(r=>e[r]=t),e},{})}function rc(a,e){const t={};if(!a)return t;const n=Object.keys(a),r=e?nc(e):{};return n.reduce((i,s)=>{var l;const c=ec[s]||r[s]||tc.REQUEST,u=(l=i[c])!==null&&l!==void 0?l:i[c]={};return u[s]=a[s],i},t)}function ic(a){return["ot","sf","st","e","sta"].includes(a)}function sc(a){return typeof a=="number"?h(a):a!=null&&a!==""&&a!==!1}const Vo="event";function ac(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("/")+t.search+t.hash}const da=a=>Math.round(a),za=(a,e)=>Array.isArray(a)?a.map(t=>za(t,e)):a instanceof Xi&&typeof a.value=="string"?new Xi(za(a.value,e),a.params):(e.baseUrl&&(a=ac(a,e.baseUrl)),e.version===1?encodeURIComponent(a):a),fa=a=>da(a/100)*100,oc={br:da,d:da,bl:fa,dl:fa,mtp:fa,nor:(a,e)=>{let t=a;return e.version>=2&&(a instanceof Xi&&typeof a.value=="string"?t=new Xi([a]):typeof a=="string"&&(t=[a])),za(t,e)},rtp:fa,tb:da},Wo="request",Go="response",ja=["ab","bg","bl","br","bs","bsd","cdn","cid","cs","df","ec","lab","lb","ltc","msd","mtp","pb","pr","pt","sf","sid","sn","st","sta","tab","tb","tbl","tpb","ts","v"],lc=["e"],uc=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function ha(a){return uc.test(a)}function cc(a){return ja.includes(a)||lc.includes(a)||ha(a)}const Ho=["d","dl","nor","ot","rtp","su"];function dc(a){return ja.includes(a)||Ho.includes(a)||ha(a)}const fc=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function hc(a){return ja.includes(a)||Ho.includes(a)||fc.includes(a)||ha(a)}const pc=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function mc(a){return pc.includes(a)||ha(a)}const gc={[Go]:hc,[Vo]:cc,[Wo]:dc};function Yo(a,e={}){const t={};if(a==null||typeof a!="object")return t;const n=e.version||a.v||1,r=e.reportingMode||Wo,i=n===1?mc:gc[r];let s=Object.keys(a).filter(i);const l=e.filter;typeof l=="function"&&(s=s.filter(l));const c=r===Go||r===Vo;c&&!s.includes("ts")&&s.push("ts"),n>1&&!s.includes("v")&&s.push("v");const u=p({},oc,e.formatters),f={version:n,reportingMode:r,baseUrl:e.baseUrl};return s.sort().forEach(m=>{let x=a[m];const T=u[m];if(typeof T=="function"&&(x=T(x,f)),m==="v"){if(n===1)return;x=n}m=="pr"&&x===1||(c&&m==="ts"&&!h(x)&&(x=Date.now()),sc(x)&&(ic(m)&&typeof x=="string"&&(x=new Fo(x)),t[m]=x))}),t}function vc(a,e={}){const t={};if(!a)return t;const n=Yo(a,e),r=rc(n,e==null?void 0:e.customHeaderMap);return Object.entries(r).reduce((i,[s,l])=>{const c=jo(l,{whitespace:!1});return c&&(i[s]=c),i},t)}function yc(a,e,t){return p(a,vc(e,t))}const _c="CMCD";function Ec(a,e={}){return a?jo(Yo(a,e),{whitespace:!1}):""}function bc(a,e={}){if(!a)return"";const t=Ec(a,e);return encodeURIComponent(t)}function xc(a,e={}){if(!a)return"";const t=bc(a,e);return`${_c}=${t}`}const Xo=/CMCD=[^&#]+/;function Sc(a,e,t){const n=xc(e,t);if(!n)return a;if(Xo.test(a))return a.replace(Xo,n);const r=a.includes("?")?"&":"?";return`${a}${r}${n}`}class wc{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:wi.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===wi.VIDEO||c===wi.AUDIO||c==wi.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:ku.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){p(t,this.createData());const n=t.ot===wi.INIT||t.ot===wi.VIDEO||t.ot===wi.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={}),yc(e.headers,t,i)):e.url=Sc(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;const{index:n,fragment:r}=e,i=(t=this.hls.levels[r.level])==null||(t=t.details)==null?void 0:t.partList;if(i){const{sn:s}=r;for(let l=i.length-1;l>=0;l--){const c=i[l];if(c.index===n&&c.fragment.sn===s)return i[l+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return wi.TIMED_TEXT;if(e.sn==="initSegment")return wi.INIT;if(t==="audio")return wi.AUDIO;if(t==="main")return this.hls.audioTracks.length?wi.VIDEO:wi.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===wi.AUDIO)n=r.audioTracks;else{const i=r.maxAutoLevel,s=i>-1?i+1:r.levels.length;n=r.levels.slice(0,s)}return n.forEach(i=>{i.bitrate>t&&(t=i.bitrate)}),t>0?t:NaN}getBufferLength(e){const t=this.media,n=e===wi.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:Cn.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 Ac=3e5;class Cc extends q{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)===Ut.SendAlternateToPenaltyBox&&n.flags===wt.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),t.details===B.BUFFER_APPEND_ERROR&&!t.fatal?n.resolved=!0:n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${r&&r.length} priorities: ${at(i)} penalized: ${at(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]>Ac&&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,si(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===_e.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===_e.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 m=new wr(f.attrs);m["PATHWAY-ID"]=s;const x=m.AUDIO&&`${m.AUDIO}_clone_${s}`,T=m.SUBTITLES&&`${m.SUBTITLES}_clone_${s}`;x&&(n[m.AUDIO]=x,m.AUDIO=x),T&&(r[m.SUBTITLES]=T,m.SUBTITLES=T);const D=Jo(f.uri,m["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),ne=new un({attrs:m,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 ee=1;ee<f.audioGroups.length;ee++)ne.addGroupId("audio",`${f.audioGroups[ee]}_clone_${s}`);if(f.subtitleGroups)for(let ee=1;ee<f.subtitleGroups.length;ee++)ne.addGroupId("text",`${f.subtitleGroups[ee]}_clone_${s}`);return ne});t.push(...u),Qo(this.audioTracks,n,c,s),Qo(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,m,x,T)=>{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":ne,"PATHWAY-CLONES":ee,"PATHWAY-PRIORITY":Ne}=D;if(ne)try{this.uri=new self.URL(ne,r).href}catch(Je){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${ne}`);return}this.scheduleRefresh(this.uri||x.url),ee&&this.clonePathways(ee);const Ke={steeringManifest:D,url:r.toString()};this.hls.trigger(d.STEERING_MANIFEST_LOADED,Ke),Ne&&this.updatePathwayPriority(Ne)},onError:(f,m,x,T)=>{if(this.log(`Error loading steering manifest: ${f.code} ${f.text} (${m.url})`),this.stopLoad(),f.code===410){this.enabled=!1,this.log(`Steering manifest ${m.url} no longer available`);return}let D=this.timeToLoad*1e3;if(f.code===429){const ne=this.loader;if(typeof(ne==null?void 0:ne.getResponseHeader)=="function"){const ee=ne.getResponseHeader("Retry-After");ee&&(D=parseFloat(ee)*1e3)}this.log(`Steering manifest ${m.url} rate limited`);return}this.scheduleRefresh(this.uri||m.url,D)},onTimeout:(f,m,x)=>{this.log(`Timeout loading steering manifest (${m.url})`),this.scheduleRefresh(this.uri||m.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 Qo(a,e,t,n){a&&Object.keys(e).forEach(r=>{const i=a.filter(s=>s.groupId===r).map(s=>{const l=p({},s);return l.details=void 0,l.attrs=new wr(l.attrs),l.url=l.attrs.URI=Jo(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 Jo(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 Ms extends q{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.mediaKeys=null,this.setMediaKeysQueue=Ms.CDMCleanupPromise?[Ms.CDMCleanupPromise]:[],this.bannedKeyIds={},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=$r(this.config));const l=s.map(ri).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=Fr(s);if(n!=="sinf"||l!==cr.FAIRPLAY){this.log(`Ignoring "${t.type}" event with init data type: "${n}" for selected key-system ${l}`);return}let c;try{const T=It(new Uint8Array(r)),D=Ar(JSON.parse(T).sinf),ne=$e(D);if(!ne)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");c=new Uint8Array(ne.subarray(8,24))}catch(T){this.warn(`${i} Failed to parse sinf: ${T}`);return}const u=U(c),{keyIdToKeySessionPromise:f,mediaKeySessions:m}=this;let x=f[u];for(let T=0;T<m.length;T++){const D=m[T],ne=D.decryptdata;if(!ne.keyId)continue;const ee=U(ne.keyId);if(Gn(c,ne.keyId)||ne.uri.replace(/-/g,"").indexOf(u)!==-1){if(x=f[ee],!x)continue;if(ne.pssh)break;delete f[ee],ne.pssh=new Uint8Array(r),ne.keyId=c,x=f[u]=x.then(()=>this.generateRequestWithPreferredKeySession(D,n,r,"encrypted-event-key-match")),x.catch(Ne=>this.handleError(Ne));break}}x||this.handleError(new Error(`Key ID ${u} not encountered in playlist. Key-system sessions ${m.length}.`))}).catch(s=>this.handleError(s))}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.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),this.hls.on(d.DESTROYING,this.onDestroying,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),this.hls.off(d.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t==null?void 0:t[e];if(r)return r.licenseUrl;if(e===cr.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==null?void 0: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(m=>s({keySystem:f,mediaKeys:m})).catch(m=>{u.length?c(u):m instanceof Ii?l(m):l(new Ii({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_ACCESS,error:m,fatal:!0},m.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 ei===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){var r;const i=Hr(e,t,n,this.config.drmSystemOptions||{});let s=this.keySystemAccessPromises[e],l=(r=s)==null?void 0:r.keySystemAccess;if(!l){this.log(`Requesting encrypted media "${e}" key-system access with config: ${at(i)}`),l=this.requestMediaKeySystemAccess(e,i);const c=s=this.keySystemAccessPromises[e]={keySystemAccess:l};return l.catch(u=>{this.log(`Failed to obtain access to key-system "${e}": ${u}`)}),l.then(u=>{this.log(`Access for key-system "${u.keySystem}" obtained`);const f=this.fetchServerCertificate(e);this.log(`Create media-keys for "${e}"`);const m=c.mediaKeys=u.createMediaKeys().then(x=>(this.log(`Media-keys created for "${e}"`),c.hasMediaKeys=!0,f.then(T=>T?this.setMediaKeysServerCertificate(x,e,T):x)));return m.catch(x=>{this.error(`Failed to create media-keys for "${e}"}: ${x}`)}),m})}return l.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${U(e.keyId||[])} keyUri: ${e.uri}`);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=pa(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)}updateKeySession(e,t){const n=e.mediaKeysSession;return this.log(`Updating key-session "${n.sessionId}" for keyId ${U(e.decryptdata.keyId||[])}
|
|
} (data length: ${t.byteLength})`),n.update(t)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map(e=>({keySystem:e,hasMediaKeys:this.keySystemAccessPromises[e].hasMediaKeys})).filter(({hasMediaKeys:e})=>!!e).map(({keySystem:e})=>ri(e)).filter(e=>!!e)}getKeySystemAccess(e){return this.getKeySystemSelectionPromise(e).then(({keySystem:t,mediaKeys:n})=>this.attemptSetMediaKeys(t,n))}selectKeySystem(e){return new Promise((t,n)=>{this.getKeySystemSelectionPromise(e).then(({keySystem:r})=>{const i=ri(r);i?t(i):n(new Error(`Unable to find format for key-system "${r}"`))}).catch(n)})}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){const t=$r(this.config),n=e.map(Fr).filter(r=>!!r&&t.indexOf(r)!==-1);return this.selectKeySystem(n)}getKeyStatus(e){const{mediaKeySessions:t}=this;for(let n=0;n<t.length;n++){const r=Tc(e,t[n]);if(r)return r}}loadKey(e){const t=e.keyInfo.decryptdata,n=pa(t),r=this.bannedKeyIds[n];if(r||this.getKeyStatus(t)==="internal-error"){const l=qo(r||"internal-error",t);return this.handleError(l,e.frag),Promise.reject(l)}const i=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${i}`);const s=this.keyIdToKeySessionPromise[n];if(!s){const l=this.getKeySystemForKeyPromise(t).then(({keySystem:c,mediaKeys:u})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${i}`),this.attemptSetMediaKeys(c,u).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:c,mediaKeys:u,decryptdata:t}))))).then(c=>{const u="cenc",f=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(c,u,f,"playlist-key")});return l.catch(c=>this.handleError(c,e.frag)),this.keyIdToKeySessionPromise[n]=l,l}return s.catch(l=>{if(l instanceof Ii){const c=b({},l.data);this.getKeyStatus(t)==="internal-error"&&(c.decryptdata=t);const u=new Ii(c,l.message);this.handleError(u,e.frag)}}),s}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e,t){if(this.hls)if(e instanceof Ii){t&&(e.data.frag=t);const n=e.data.decryptdata;this.error(`${e.message}${n?` (${U(n.keyId||[])})`:""}`),this.hls.trigger(d.ERROR,e.data)}else this.error(e.message),this.hls.trigger(d.ERROR,{type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0})}getKeySystemForKeyPromise(e){const t=pa(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=Fr(e.keyFormat),i=r?[r]:$r(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=$r(this.config)),e.length===0)throw new Ii({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${at({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){if(this.mediaKeys===t)return Promise.resolve();const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const r=Promise.all(n).then(()=>{if(!this.media)throw this.mediaKeys=null,new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.mediaKeys=t,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;const s=(i=this.config.drmSystems)==null||(i=i[e.keySystem])==null?void 0:i.generateRequest;if(s)try{const D=s.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){if(this.warn(D.message),this.hls&&this.hls.config.debug)throw D}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const l=pa(e.decryptdata),c=e.decryptdata.uri;this.log(`Generating key-session request for "${r}" keyId: ${l} URI: ${c} (init data type: ${t} length: ${n.byteLength})`);const u=new ks,f=e._onmessage=D=>{const ne=e.mediaKeysSession;if(!ne){u.emit("error",new Error("invalid state"));return}const{messageType:ee,message:Ne}=D;this.log(`"${ee}" message event for session "${ne.sessionId}" message size: ${Ne.byteLength}`),ee==="license-request"||ee==="license-renewal"?this.renewLicense(e,Ne).catch(Ke=>{u.eventNames().length?u.emit("error",Ke):this.handleError(Ke)}):ee==="license-release"?e.keySystem===cr.FAIRPLAY&&this.updateKeySession(e,Ir("acknowledged")).then(()=>this.removeSession(e)).catch(Ke=>this.handleError(Ke)):this.warn(`unhandled media key message type "${ee}"`)},m=(D,ne)=>{ne.keyStatus=D;let ee;D.startsWith("usable")?u.emit("resolved"):D==="internal-error"||D==="output-restricted"||D==="output-downscaled"?ee=qo(D,ne.decryptdata):D==="expired"?ee=new Error(`key expired (keyId: ${l})`):D==="released"?ee=new Error("key released"):D==="status-pending"||this.warn(`unhandled key status change "${D}" (keyId: ${l})`),ee&&(u.eventNames().length?u.emit("error",ee):this.handleError(ee))},x=e._onkeystatuseschange=D=>{if(!e.mediaKeysSession){u.emit("error",new Error("invalid state"));return}const ee=this.getKeyStatuses(e);if(!Object.keys(ee).some(Lt=>ee[Lt]!=="status-pending"))return;if(ee[l]==="expired"){this.log(`Expired key ${at(ee)} in key-session "${e.mediaKeysSession.sessionId}"`),this.renewKeySession(e);return}let Ke=ee[l];if(Ke)m(Ke,e);else{var Je;e.keyStatusTimeouts||(e.keyStatusTimeouts={}),(Je=e.keyStatusTimeouts)[l]||(Je[l]=self.setTimeout(()=>{if(!e.mediaKeysSession||!this.mediaKeys)return;const jt=this.getKeyStatus(e.decryptdata);if(jt&&jt!=="status-pending")return this.log(`No status for keyId ${l} in key-session "${e.mediaKeysSession.sessionId}". Using session key-status ${jt} from other session.`),m(jt,e);this.log(`key status for ${l} in key-session "${e.mediaKeysSession.sessionId}" timed out after 1000ms`),Ke="internal-error",m(Ke,e)},1e3)),this.log(`No status for keyId ${l} (${at(ee)}).`)}};mi(e.mediaKeysSession,"message",f),mi(e.mediaKeysSession,"keystatuseschange",x);const T=new Promise((D,ne)=>{u.on("error",ne),u.on("resolved",D)});return e.mediaKeysSession.generateRequest(t,n).then(()=>{this.log(`Request generated for key-session "${e.mediaKeysSession.sessionId}" keyId: ${l} URI: ${c}`)}).catch(D=>{throw new Ii({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_SESSION,error:D,decryptdata:e.decryptdata,fatal:!1},`Error generating key-session request: ${D}`)}).then(()=>T).catch(D=>(u.removeAllListeners(),this.removeSession(e).then(()=>{throw D}))).then(()=>(u.removeAllListeners(),e))}getKeyStatuses(e){const t={};return e.mediaKeysSession.keyStatuses.forEach((n,r)=>{if(typeof r=="string"&&typeof n=="object"){const l=r;r=n,n=l}const i="buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r);e.keySystem===cr.PLAYREADY&&i.length===16&&Vn(i);const s=U(i);n==="internal-error"&&(this.bannedKeyIds[s]=n),this.log(`key status change "${n}" for keyStatuses keyId: ${s} key-session "${e.mediaKeysSession.sessionId}"`),t[s]=n}),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},m={onSuccess:(x,T,D,ne)=>{s(x.data)},onError:(x,T,D,ne)=>{l(new Ii({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:D,response:b({url:c.url,data:void 0},x)},`"${e}" certificate request failed (${i}). Status: ${x.code} (${x.text})`))},onTimeout:(x,T,D)=>{l(new Ii({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:D,response:{url:c.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(x,T,D)=>{l(new Error("aborted"))}};r.load(c,f,m)})):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.byteLength}) on "${t}"`),r(e)}).catch(s=>{i(new Ii({type:ae.KEY_SYSTEM_ERROR,details:B.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 Ii({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:e.decryptdata,error:r,fatal:!1},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 m=0,x=i.length;m<x;m++){var s,l;f=i[m];const T=(s=f.querySelector("name"))==null?void 0:s.textContent,D=(l=f.querySelector("value"))==null?void 0:l.textContent;T&&D&&e.setRequestHeader(T,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 Ir(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 Ii({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:e.decryptdata,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==cr.PLAYREADY&&(u=this.unpackPlayReadyKeyMessage(c,u)),c.send(u)}).catch(i)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,mi(n,"encrypted",this.onMediaEncrypted),mi(n,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(gi(e,"encrypted",this.onMediaEncrypted),gi(e,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var e;if(this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},this.bannedKeyIds={},!this.mediaKeys&&!this.mediaKeySessions.length)return;const t=this.media,n=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,yi.clearKeyUriToKeyIdMap();const r=n.length;Ms.CDMCleanupPromise=Promise.all(n.map(i=>this.removeSession(i)).concat((t==null||(e=t.setMediaKeys(null))==null?void 0:e.catch(i=>{this.log(`Could not clear media keys: ${i}`),this.hls&&this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${i}`)})}))||Promise.resolve())).catch(i=>{this.log(`Could not close sessions and clear media keys: ${i}`),this.hls&&this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${i}`)})}).then(()=>{r&&this.log("finished closing key sessions and clearing media keys")})}onManifestLoading(){this.keyFormatPromise=null,this.bannedKeyIds={}}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,decryptdata:r}=e;if(t){this.log(`Remove licenses and keys and close session "${t.sessionId}" keyId: ${U((r==null?void 0:r.keyId)||[])}`),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 i=this.mediaKeySessions.indexOf(e);i>-1&&this.mediaKeySessions.splice(i,1);const{keyStatusTimeouts:s}=e;s&&Object.keys(s).forEach(u=>self.clearTimeout(s[u]));const{drmSystemOptions:l}=this.config;return(ss(l)?new Promise((u,f)=>{self.setTimeout(()=>f(new Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(u).catch(f)}):Promise.resolve()).catch(u=>{this.log(`Could not remove session: ${u}`),this.hls&&this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${u}`)})}).then(()=>t.close()).catch(u=>{this.log(`Could not close session: ${u}`),this.hls&&this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${u}`)})})}return Promise.resolve()}}Ms.CDMCleanupPromise=void 0;function pa(a){if(!a)throw new Error("Could not read keyId of undefined decryptdata");if(a.keyId===null)throw new Error("keyId is null");return U(a.keyId)}function Tc(a,e){if(a.keyId&&e.mediaKeysSession.keyStatuses.has(a.keyId))return e.mediaKeysSession.keyStatuses.get(a.keyId);if(a.matches(e.decryptdata))return e.keyStatus}class Ii 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}}function qo(a,e){const t=a==="output-restricted",n=t?B.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:B.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Ii({type:ae.KEY_SYSTEM_ERROR,details:n,fatal:!1,decryptdata:e},t?"HDCP level output restricted":`key status changed to "${a}"`)}class Dc{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 $o(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 el(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){$.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){$.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(a.mode=t)}function Os(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 Va(a,e,t,n){const r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=Ic(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 Rc(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 Ic(a,e,t){const n=[],r=Rc(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 ma(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 Lc extends Ma{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=ma(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;ma(n.textTracks).forEach(s=>{Os(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,m)=>{f.id=m});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const l=this.hls.config.subtitlePreference;if(!i&&l){this.selectDefaultTrack=!1;const f=_n(l,s);if(f>-1)i=s[f];else{const m=_n(l,this.tracks);i=this.tracks[m]}}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||An(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(Qs(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(Qs(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(Oa(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===_e.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&&An(e,n))return n;const r=_n(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=_n(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=ma(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>Oa(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||!h(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 m=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(m)}}function kc(){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 Js(a){let e=5381,t=a.length;for(;t;)e=e*33^a.charCodeAt(--t);return(e>>>0).toString()}const Fs=.025;let ga=function(a){return a[a.Point=0]="Point",a[a.Range=1]="Range",a}({});function Pc(a,e,t){return`${a.identifier}-${t+1}-${Js(e)}`}class Nc{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){var t;if(e>0&&e>=this.assetList.length)return!0;const n=this.playoutLimit;return e<=0||isNaN(n)?!1:n===0?!0:(((t=this.assetList[e])==null?void 0:t.startOffset)||0)>n}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 Wa(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=Wa(t,e);return t-n<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=h(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 Wa(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)<Fs))}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"?ga.Range:ga.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 Mc(this)}}function Wa(a,e){return a-e.start<e.duration/2&&!(Math.abs(a-(e.start+e.duration))<Fs)?e.start:e.start+e.duration}function tl(a,e,t){const n=new self.URL(a,t);return n.protocol!=="data:"&&n.searchParams.set("_HLS_primary_id",e),n}function Ga(a,e){for(;(t=a.assetList[++e])!=null&&t.error;)var t;return e}function Mc(a){return`["${a.identifier}" ${a.cue.pre?"<pre>":a.cue.post?"<post>":""}${a.timelineStart.toFixed(2)}-${a.resumeTime.toFixed(2)}]`}function Bs(a){const e=a.timelineStart,t=a.duration||0;return`["${a.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class Oc{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=()=>{this.reachedPlayout(this.currentTime)&&this.hls&&this.hls.trigger(d.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new e(t);this.interstitial=n,this.assetItem=r;const s=()=>{this.hasDetails=!0};i.once(d.LEVEL_LOADED,s),i.once(d.AUDIO_TRACK_LOADED,s),i.once(d.SUBTITLE_TRACK_LOADED,s),i.on(d.MEDIA_ATTACHING,(l,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&(c.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&i.on(d.BUFFER_APPENDED,()=>{const f=this.bufferedEnd;this.reachedPlayout(f)&&(this._bufferedEosTime=f,i.trigger(d.BUFFERED_TO_END,void 0))}))})}get appendInPlace(){return this.interstitial.appendInPlace}loadSource(){const e=this.hls;if(e)if(e.url)e.levels.length&&!e.started&&e.startLoad(-1,!0);else{let t=this.assetItem.uri;try{t=tl(t,e.config.primarySessionId||"").href}catch(n){}e.loadSource(t)}}bufferedInPlaceToEnd(e){var t;if(!this.appendInPlace)return!1;if((t=this.hls)!=null&&t.bufferedToEnd)return!0;if(!e)return!1;const n=Math.min(this._bufferedEosTime||1/0,this.duration),r=this.timelineOffset,i=Cn.bufferInfo(e,r,0);return this.getAssetTime(i.end)>=n-.02}reachedPlayout(e){const n=this.interstitial.playoutLimit;return this.startOffset+e>=n}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=Cn.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;if(!e)return 0;const t=this.interstitial.playoutLimit;if(t){const n=t-this.startOffset;if(n>0&&n<e)return n}return e}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&&this.hls){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&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){var t;this.loadSource(),(t=this.hls)==null||t.attachMedia(e)}detachMedia(){var e;this.removeMediaListeners(),this.mediaAttached=null,(e=this.hls)==null||e.detachMedia()}resumeBuffering(){var e;(e=this.hls)==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.hls)==null||e.pauseBuffering()}transferMedia(){var e;return this.bufferSnapShot(),((e=this.hls)==null?void 0:e.transferMedia())||null}resetDetails(){const e=this.hls;if(e&&this.hasDetails){e.stopLoad();const t=n=>delete n.details;e.levels.forEach(t),e.allAudioTracks.forEach(t),e.allSubtitleTracks.forEach(t),this.hasDetails=!1}}on(e,t,n){var r;(r=this.hls)==null||r.on(e,t)}once(e,t,n){var r;(r=this.hls)==null||r.once(e,t)}off(e,t,n){var r;(r=this.hls)==null||r.off(e,t)}toString(){var e;return`HlsAssetPlayer: ${Bs(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const nl=.033;class Fc extends q{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)||i===r-1))return i}}return 0}get assetIdAtEnd(){var e;const t=(e=this.items)==null||(e=e[this.length-1])==null?void 0:e.event;if(t){const n=t.assetList,r=n[n.length-1];if(r)return r.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 m=u.cue.pre,x=u.cue.post,T=f.cue.pre,D=f.cue.post;if(m&&!T)return-1;if(T&&!m||x&&!D)return 1;if(D&&!x)return-1;if(!m&&!T&&!x&&!D){const ne=u.startTime,ee=f.startTime;if(ne!==ee)return ne-ee}return u.dateRange.tagOrder-f.dateRange.tagOrder}),this.events=s,c.forEach(u=>{this.removeEvent(u)}),this.updateSchedule(e,c)}updateSchedule(e,t=[],n=!1){const r=this.events||[];if(r.length||t.length||this.length<2){const i=this.items,s=this.parseSchedule(r,e);(n||t.length||(i==null?void 0:i.length)!==s.length||s.some((c,u)=>Math.abs(c.playout.start-i[u].playout.start)>.005||Math.abs(c.playout.end-i[u].playout.end)>.005))&&(this.items=s,this.onScheduleUpdate(t,i))}}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 Nc(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,m)=>{const x=f.cue.pre,T=f.cue.post,D=e[m-1]||null,ne=f.appendInPlace,ee=T?i:f.startOffset,Ne=f.duration,Ke=f.timelineOccupancy===ga.Range?Ne:0,Je=f.resumptionOffset,Lt=(D==null?void 0:D.startTime)===ee,jt=ee+f.cumulativeDuration;let vn=ne?jt+Ne:ee+Je;if(x||!T&&ee<=0){const cn=u;u+=Ke,f.timelineStart=jt;const ln=s;s+=Ne,n.push({event:f,start:jt,end:vn,playout:{start:ln,end:s},integrated:{start:cn,end:u}})}else if(ee<=i){if(!Lt){const Jt=ee-c;if(Jt>nl){const In=c,nr=u;u+=Jt;const fr=s;s+=Jt;const vr={previousEvent:e[m-1]||null,nextEvent:f,start:In,end:In+Jt,playout:{start:fr,end:s},integrated:{start:nr,end:u}};n.push(vr)}else Jt>0&&D&&(D.cumulativeDuration+=Jt,n[n.length-1].end=ee)}T&&(vn=jt),f.timelineStart=jt;const cn=u;u+=Ke;const ln=s;s+=Ne,n.push({event:f,start:jt,end:vn,playout:{start:ln,end:s},integrated:{start:cn,end:u}})}else return;const Gt=f.resumeTime;T||Gt>i?c=i:c=Gt}),c<i){var l;const f=c,m=u,x=i-c;u+=x;const T=s;s+=x,n.push({previousEvent:((l=n[n.length-1])==null?void 0:l.event)||null,nextEvent:null,start:c,end:f+x,playout:{start:T,end:s},integrated:{start:m,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,m=u?0:f?r:l.startTime;this.updateAssetDurations(l),s===m?l.cumulativeDuration=i:(i=0,s=m),!f&&l.snapOptions.in&&(l.resumeAnchor=pn(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<nl&&(e[c+1].appendInPlace=!1,e[c+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${l}`));const T=h(l.resumeOffset)?l.resumeOffset:l.duration;i+=T})}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,r=e.startTime+e.resumptionOffset;return Math.abs(n-r)>Fs?(this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${r}`),!1):!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=pn(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)<Fs+f||Math.abs(u.end-n)<Fs+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)})}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,r=!1,i=!1;for(let s=0;s<e.assetList.length;s++){const l=e.assetList[s],c=t+n;l.startOffset=n,l.timelineStart=c,r||(r=l.duration===null),i||(i=!!l.error);const u=l.error?0:l.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 Ui(a){return`[${a.event?'"'+a.event.identifier+'"':"primary"}: ${a.start.toFixed(2)}-${a.end.toFixed(2)}]`}class Bc{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let r;try{r=tl(n,this.hls.sessionId,e.baseUrl)}catch(x){const T=this.assignAssetListError(e,B.ASSET_LIST_LOAD_ERROR,x,n);this.hls.trigger(d.ERROR,T);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},m={onSuccess:(x,T,D,ne)=>{const ee=x.data,Ne=ee==null?void 0:ee.ASSETS;if(!Array.isArray(Ne)){const Ke=this.assignAssetListError(e,B.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),D.url,T,ne);this.hls.trigger(d.ERROR,Ke);return}e.assetListResponse=ee,this.hls.trigger(d.ASSET_LIST_LOADED,{event:e,assetListResponse:ee,networkDetails:ne})},onError:(x,T,D,ne)=>{const ee=this.assignAssetListError(e,B.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${x.code} ${x.text} (${T.url})`),T.url,ne,D);this.hls.trigger(d.ERROR,ee)},onTimeout:(x,T,D)=>{const ne=this.assignAssetListError(e,B.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${T.url})`),T.url,x,D);this.hls.trigger(d.ERROR,ne)}};return l.load(c,f,m),this.hls.trigger(d.ASSET_LIST_LOADING,{event:e}),l}assignAssetListError(e,t,n,r,i,s){return e.error=n,{type:ae.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:s,stats:i}}}function rl(a){a==null||a.play().catch(()=>{})}function va(a,e){return`[${a}] Advancing timeline position to ${e}`}class Uc extends q{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||!this.schedule)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(!0),this.checkBuffer(),s&&n<l.start||n>=l.end){var c;const T=this.findItemIndex(l);let D=this.schedule.findItemIndexAtTime(n);if(D===-1&&(D=T+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${n} (resolving from ${T} to ${D})`)),!this.isInterstitial(l)&&(c=this.media)!=null&&c.paused&&(this.shouldPlay=!1),!s&&D>T){const ne=this.schedule.findJumpRestrictedIndex(T+1,D);if(ne>T){this.setSchedulePosition(ne);return}}this.setSchedulePosition(D);return}const u=this.playingAsset;if(!u){if(this.playingLastItem&&this.isInterstitial(l)){const T=l.event.assetList[0];T&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,T))}return}const f=u.timelineStart,m=u.duration||0;if(s&&n<f||n>=f+m){var x;(x=l.event)!=null&&x.appendInPlace&&(this.clearInterstitial(l.event,l),this.flushFrontBuffer(n)),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;if(!i)return;const s=this.playingItem,l=i.events||[],c=i.items||[],u=i.durations,f=n.map(ne=>ne.identifier),m=!!(l.length||f.length);(m||r)&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l}
|
|
Schedule: ${c.map(ne=>Ui(ne))} pos: ${this.timelinePos}`),f.length&&this.log(`Removed events ${f}`);let x=null,T=null;s&&(x=this.updateItem(s,this.timelinePos),this.itemsMatch(s,x)?this.playingItem=x:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const D=this.bufferingItem;if(D&&(T=this.updateItem(D,this.bufferedPos),this.itemsMatch(D,T)?this.bufferingItem=T:D.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(D.event,null))),n.forEach(ne=>{ne.assetList.forEach(ee=>{this.clearAssetPlayer(ee.identifier,null)})}),this.playerQueue.forEach(ne=>{if(ne.interstitial.appendInPlace){const ee=ne.assetItem.timelineStart,Ne=ne.timelineOffset-ee;if(Ne)try{ne.timelineOffset=ee}catch(Ke){Math.abs(Ne)>Fs&&this.warn(`${Ke} ("${ne.assetId}" ${ne.timelineOffset}->${ee})`)}}}),m||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}s&&this.trimInPlace(x,s),D&&T!==x&&this.trimInPlace(T,D),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Bc(e),this.schedule=new Fc(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e&&(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.schedule=this.manager=null,this.hls=this.HlsPlayerClass=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;mi(n,"seeking",this.onSeeking),mi(n,"timeupdate",this.onTimeupdate),mi(n,"play",this.onPlay),mi(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.log("clear schedule state"),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.log(`Removing schedule state for detachedData and ${i}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,i.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.hls)return null;if(this.manager)return this.manager;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=m=>m&&e.getAssetPlayer(m.identifier),r=(m,x,T,D,ne)=>{if(m){let ee=m[x].start;const Ne=m.event;if(Ne){if(x==="playout"||Ne.timelineOccupancy!==ga.Point){const Ke=n(T);(Ke==null?void 0:Ke.interstitial)===Ne&&(ee+=Ke.assetItem.startOffset+Ke[ne])}}else{const Ke=D==="bufferedPos"?s():e[D];ee+=Ke-m.start}return ee}return 0},i=(m,x)=>{var T;if(m!==0&&x!=="primary"&&(T=e.schedule)!=null&&T.length){var D;const ne=e.schedule.findItemIndexAtTime(m),ee=(D=e.schedule.items)==null?void 0:D[ne];if(ee){const Ne=ee[x].start-ee.start;return m+Ne}}return m},s=()=>{const m=e.bufferedPos;return m===Number.MAX_VALUE?l("primary"):Math.max(m,0)},l=m=>{var x,T;return(x=e.primaryDetails)!=null&&x.live?e.primaryDetails.edge:((T=e.schedule)==null?void 0:T.durations[m])||0},c=(m,x)=>{var T,D;const ne=e.effectivePlayingItem;if(ne!=null&&(T=ne.event)!=null&&T.restrictions.skip||!e.schedule)return;e.log(`seek to ${m} "${x}"`);const ee=e.effectivePlayingItem,Ne=e.schedule.findItemIndexAtTime(m,x),Ke=(D=e.schedule.items)==null?void 0:D[Ne],Je=e.getBufferingPlayer(),Lt=Je==null?void 0:Je.interstitial,jt=Lt==null?void 0:Lt.appendInPlace,vn=ee&&e.itemsMatch(ee,Ke);if(ee&&(jt||vn)){const Gt=n(e.playingAsset),cn=(Gt==null?void 0:Gt.media)||e.primaryMedia;if(cn){const ln=x==="primary"?cn.currentTime:r(ee,x,e.playingAsset,"timelinePos","currentTime"),Jt=m-ln,In=(jt?ln:cn.currentTime)+Jt;if(In>=0&&(!Gt||jt||In<=Gt.duration)){cn.currentTime=In;return}}}if(Ke){let Gt=m;if(x!=="primary"){const ln=Ke[x].start,Jt=m-ln;Gt=Ke.start+Jt}const cn=!e.isInterstitial(Ke);if((!e.isInterstitial(ee)||ee.event.appendInPlace)&&(cn||Ke.event.appendInPlace)){const ln=e.media||(jt?Je==null?void 0:Je.media:null);ln&&(ln.currentTime=Gt)}else if(ee){const ln=e.findItemIndex(ee);if(Ne>ln){const In=e.schedule.findJumpRestrictedIndex(ln+1,Ne);if(In>ln){e.setSchedulePosition(In);return}}let Jt=0;if(cn)e.timelinePos=Gt,e.checkBuffer();else{const In=Ke.event.assetList,nr=m-(Ke[x]||Ke).start;for(let fr=In.length;fr--;){const vr=In[fr];if(vr.duration&&nr>=vr.startOffset&&nr<vr.startOffset+vr.duration){Jt=fr;break}}}e.setSchedulePosition(Ne,Jt)}}},u=()=>{const m=e.effectivePlayingItem;if(e.isInterstitial(m))return m;const x=t();return e.isInterstitial(x)?x:null},f={get bufferedEnd(){const m=t(),x=e.bufferingItem;if(x&&x===m){var T;return r(x,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-x.playout.start||((T=e.bufferingAsset)==null?void 0:T.startOffset)||0}return 0},get currentTime(){const m=u(),x=e.effectivePlayingItem;return x&&x===m?r(x,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-x.playout.start:0},set currentTime(m){const x=u(),T=e.effectivePlayingItem;T&&T===x&&c(m+T.playout.start,"playout")},get duration(){const m=u();return m?m.playout.end-m.playout.start:0},get assetPlayers(){var m;const x=(m=u())==null?void 0:m.event.assetList;return x?x.map(T=>e.getAssetPlayer(T.identifier)):[]},get playingIndex(){var m;const x=(m=u())==null?void 0:m.event;return x&&e.effectivePlayingAsset?x.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return u()}};return this.manager={get events(){var m;return((m=e.schedule)==null||(m=m.events)==null?void 0:m.slice(0))||[]},get schedule(){var m;return((m=e.schedule)==null||(m=m.items)==null?void 0:m.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 m=t();return e.findItemIndex(m)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const m=e.effectivePlayingItem;return e.findItemIndex(m)},primary:{get bufferedEnd(){return s()},get currentTime(){const m=e.timelinePos;return m>0?m:0},set currentTime(m){c(m,"primary")},get duration(){return l("primary")},get seekableStart(){var m;return((m=e.primaryDetails)==null?void 0:m.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(m){c(m,"integrated")},get duration(){return l("integrated")},get seekableStart(){var m;return i(((m=e.primaryDetails)==null?void 0:m.fragmentStart)||0,"integrated")}},skip:()=>{const m=e.effectivePlayingItem,x=m==null?void 0:m.event;if(x&&!x.restrictions.skip){const T=e.findItemIndex(m);if(x.appendInPlace){const D=m.playout.start+m.event.duration;c(D+.001,"playout")}else e.advanceAfterAssetEnded(x,T,1/0)}}}}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;if(this.mediaSelection===null)return;const n=this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&!n.event.appendInPlace)return;let r=this.media;!r&&(e=this.bufferingItem)!=null&&(e=e.event)!=null&&e.appendInPlace&&(r=this.primaryMedia);const i=(t=r)==null?void 0:t.currentTime;if(!(i===void 0||!h(i)))return i}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} ${at(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 D=this.getBufferingPlayer();D?(i=D.transferMedia(),f=`${D}`):f="detached MediaSource"}else f="detached media";if(!i){if(u)i=this.detachedData,this.log(`using detachedData: MediaSource ${at(i)}`);else if(!this.detachedData||s.media===t){const D=this.playerQueue;D.length>1&&D.forEach(ne=>{if(l&&ne.interstitial.appendInPlace!==c){const ee=ne.interstitial;this.clearInterstitial(ne.interstitial,null),ee.appendInPlace=!1,ee.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${ee}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const m=i&&"mediaSource"in i&&((r=i.mediaSource)==null?void 0:r.readyState)!=="closed",x=m&&i?i:t;this.log(`${m?"transfering MediaSource":"attaching media"} to ${l?e:"Primary"} from ${f} (media.currentTime: ${t.currentTime})`);const T=this.schedule;if(x===i&&T){const D=l&&e.assetId===T.assetIdAtEnd;x.overrides={duration:T.duration,endOfStream:!l||D,cueRemoval:!l}}e.attachMedia(x)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e==null?void 0: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.log(va("checkStart",i)),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)}}advanceAssetBuffering(e,t){const n=e.event,r=n.findAssetIndex(t),i=Ga(n,r);if(!n.isAssetPastPlayoutLimit(i))this.bufferedToEvent(e,i);else if(this.schedule){var s;const l=(s=this.schedule.items)==null?void 0:s[this.findItemIndex(e)+1];l&&this.bufferedToItem(l)}}advanceAfterAssetEnded(e,t,n){const r=Ga(e,n);if(e.isAssetPastPlayoutLimit(r)){if(this.schedule){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.log(va("advanceAfterAssetEnded",c)),this.timelinePos=c,e.appendInPlace&&this.advanceInPlace(c),this.checkBuffer(this.bufferedPos<c)),this.setSchedulePosition(s)}}}else{if(e.appendInPlace){const i=e.assetList[r];i&&this.advanceInPlace(i.timelineStart)}this.setSchedulePosition(t,r)}}setScheduleToAssetAtTime(e,t){const n=this.schedule;if(!n)return;const r=t.parentIdentifier,i=n.getEvent(r);if(i){const s=n.findEventIndex(r),l=n.findAssetIndex(i,e);this.advanceAfterAssetEnded(i,s,l-1)}}setSchedulePosition(e,t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(!r||this.playbackDisabled)return;const i=e>=0?r[e]:null;this.log(`setSchedulePosition ${e}, ${t} (${i&&Ui(i)}) pos: ${this.timelinePos}`);const s=this.waitingItem||this.playingItem,l=this.playingLastItem;if(this.isInterstitial(s)){const f=s.event,m=this.playingAsset,x=m==null?void 0:m.identifier,T=x?this.getAssetPlayer(x):null;if(T&&x&&(!this.eventItemsMatch(s,i)||t!==void 0&&x!==f.assetList[t].identifier)){var c;const D=f.findAssetIndex(m);if(this.log(`INTERSTITIAL_ASSET_ENDED ${D+1}/${f.assetList.length} ${Bs(m)}`),this.endedAsset=m,this.playingAsset=null,this.hls.trigger(d.INTERSTITIAL_ASSET_ENDED,{asset:m,assetListIndex:D,event:f,schedule:r.slice(0),scheduleIndex:e,player:T}),s!==this.playingItem){this.itemsMatch(s,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(f,this.findItemIndex(this.playingItem),D);return}this.retreiveMediaSource(x,i),T.media&&!((c=this.detachedData)!=null&&c.mediaSource)&&T.detachMedia()}if(!this.eventItemsMatch(s,i)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${f} ${Ui(s)}`),f.hasPlayed=!0,this.hls.trigger(d.INTERSTITIAL_ENDED,{event:f,schedule:r.slice(0),scheduleIndex:e}),f.cue.once)){var u;this.updateSchedule();const D=(u=this.schedule)==null?void 0:u.items;if(i&&D){const ne=this.findItemIndex(i);this.advanceSchedule(ne,D,t,s,l)}return}}this.advanceSchedule(e,r,t,s,l)}advanceSchedule(e,t,n,r,i){const s=this.schedule;if(!s)return;const l=t[e]||null,c=this.primaryMedia,u=this.playerQueue;if(u.length&&u.forEach(f=>{const m=f.interstitial,x=s.findEventIndex(m.identifier);(x<e||x>e+1)&&this.clearInterstitial(m,l)}),this.isInterstitial(l)){this.timelinePos=Math.min(Math.max(this.timelinePos,l.start),l.end);const f=l.event;if(n===void 0){n=s.findAssetIndex(f,this.timelinePos);const D=Ga(f,n-1);if(f.isAssetPastPlayoutLimit(D)||f.appendInPlace&&this.timelinePos===l.end){this.advanceAfterAssetEnded(f,e,n);return}n=D}const m=this.waitingItem;this.assetsBuffered(l,c)||this.setBufferingItem(l);let x=this.preloadAssets(f,n);if(this.eventItemsMatch(l,m||r)||(this.waitingItem=l,this.log(`INTERSTITIAL_STARTED ${Ui(l)} ${f.appendInPlace?"append in place":""}`),this.hls.trigger(d.INTERSTITIAL_STARTED,{event:f,schedule:t.slice(0),scheduleIndex:e})),!f.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${f}`);return}if(f.assetListLoader&&(f.assetListLoader.destroy(),f.assetListLoader=void 0),!c){this.log(`Waiting for attachMedia to start Interstitial ${f}`);return}this.waitingItem=this.endedItem=null,this.playingItem=l;const T=f.assetList[n];if(!T){this.advanceAfterAssetEnded(f,e,n||0);return}if(x||(x=this.getAssetPlayer(T.identifier)),x===null||x.destroyed){const D=f.assetList.length;this.warn(`asset ${n+1}/${D} player destroyed ${f}`),x=this.createAssetPlayer(f,T,n),x.loadSource()}if(!this.eventItemsMatch(l,this.bufferingItem)&&f.appendInPlace&&this.isAssetBuffered(T))return;this.startAssetPlayer(x,n,t,e,c),this.shouldPlay&&rl(x.media)}else l?(this.resumePrimary(l,e,r),this.shouldPlay&&rl(this.hls.media)):i&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(s.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var e;return(e=this.mediaSelection)==null?void 0:e.main.details}get primaryLive(){var e;return!!((e=this.primaryDetails)!=null&&e.live)}resumePrimary(e,t,n){var r,i;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${Ui(e)}`),!((r=this.detachedData)!=null&&r.mediaSource)){let l=this.timelinePos;(l<e.start||l>=e.end)&&(l=this.getPrimaryResumption(e,t),this.log(va("resumePrimary",l)),this.timelinePos=l),this.attachPrimary(l,e)}if(!n)return;const s=(i=this.schedule)==null?void 0:i.items;s&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${Ui(e)}`),this.hls.trigger(d.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.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:Cn.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.log(va("attachPrimary",e)),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(){var e;this.stopLoad(),(e=this.schedule)==null||e.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||!this.schedule)return;const n=this.hls.levels[t.level];if(!n.details)return;const r=b(b({},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=b(b({},this.altSelection),{},{audio:n});return}const i=b(b({},r),{},{audio:n});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=b(b({},this.altSelection),{},{subtitles:n});return}const i=b(b({},r),{},{subtitles:n});this.mediaSelection=i}onAudioTrackSwitching(e,t){const n=on(t);this.playerQueue.forEach(({hls:r})=>r&&(r.setAudioOption(t)||r.setAudioOption(n)))}onSubtitleTrackSwitch(e,t){const n=on(t);this.playerQueue.forEach(({hls:r})=>r&&(r.setSubtitleOption(t)||t.id!==-1&&r.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){if(!this.schedule)return;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){var n;const r=(n=this.schedule)==null?void 0:n.items;if(e&&r){const i=this.findItemIndex(e,t);return r[i]||null}return null}trimInPlace(e,t){if(this.isInterstitial(e)&&e.event.appendInPlace&&t.end-e.end>.25){e.event.assetList.forEach((i,s)=>{e.event.isAssetPastPlayoutLimit(s)&&this.clearAssetPlayer(i.identifier,null)});const n=e.end+.25,r=Cn.bufferInfo(this.primaryMedia,n,0);(r.end>n||(r.nextStart||0)>n)&&(this.log(`trim buffered interstitial ${Ui(e)} (was ${Ui(t)})`),this.attachPrimary(n,null,!0),this.flushFrontBuffer(n))}}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?this.schedule.findItemIndex(e,t):-1}updateSchedule(e=!1){var t;const n=this.mediaSelection;n&&((t=this.schedule)==null||t.updateSchedule(n,[],e))}checkBuffer(e){var t;const n=(t=this.schedule)==null?void 0:t.items;if(!n)return;const r=Cn.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=r.len<1),this.updateBufferedPos(r.end,n,e)}updateBufferedPos(e,t,n){const r=this.schedule,i=this.bufferingItem;if(this.bufferedPos>e||!r)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;const f=this.findItemIndex(i),m=Math.min(f+1,t.length-1),x=t[m];if((c===-1&&i&&e>=i.end||(u=x.event)!=null&&u.appendInPlace&&e+.01>=x.start)&&(c=m),this.isInterstitial(i)){const T=i.event;if(m-l>1&&T.appendInPlace===!1||T.assetList.length===0&&T.assetListLoader)return}if(this.bufferedPos=e,c>f&&c>l)this.bufferedToItem(x);else{const T=this.primaryDetails;this.primaryLive&&T&&e>T.edge-T.targetduration&&x.start<T.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(x)&&this.preloadAssets(x.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)&&n){const{items:r,events:i}=n;if(!r||!i)return t;const s=this.isInterstitial(e),l=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));const c=l?l.remaining:t?t.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${Ui(e)}`+(t?` (${c.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const u=n.findAssetIndex(e.event,this.bufferedPos);e.event.assetList.forEach((f,m)=>{const x=this.getAssetPlayer(f.identifier);x&&(m===u&&x.loadSource(),x.resumeBuffering())})}else 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)})}else this.bufferingItem!==e&&(this.bufferingItem=e);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=this.primaryMedia;l&&this.bufferAssetPlayer(s,l)}}}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 x=this.playingItem;!this.isInterstitial(x)&&(x==null||(l=x.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 x=f-c;x>0&&(u=Math.round(x*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 m=this.assetListLoader.loadAssetList(e,u);m&&(e.assetListLoader=m)}else if(!s&&r){for(let u=t;u<r;u++){const f=e.assetList[u],m=this.getAssetPlayerQueueIndex(f.identifier);(m===-1||this.playerQueue[m].destroyed)&&!f.error&&this.createAssetPlayer(e,f,u)}const c=e.assetList[t];if(c){const u=this.getAssetPlayer(c.identifier);return u&&u.loadSource(),u}}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:Pc(e,s,t),duration:i,startOffset:n,timelineStart:r,uri:s};return this.createAssetPlayer(e,l,t)}createAssetPlayer(e,t,n){const r=this.hls,i=r.userConfig;let s=i.videoPreference;const l=r.loadLevelObj||r.levels[r.currentLevel];(s||l)&&(s=p({},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 Lt=this.timelinePos-t.timelineStart;if(Lt>1){const jt=t.duration;jt&&Lt<jt&&(f=Lt)}}const m=t.identifier,x=b(b({},i),{},{maxMaxBufferLength:Math.min(180,r.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:m,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&&(x.timelineOffset=t.timelineStart));const T=x.cmcd;T!=null&&T.sessionId&&T.contentId&&(x.cmcd=p({},T,{contentId:Js(t.uri)})),this.getAssetPlayer(m)&&this.warn(`Duplicate date range identifier ${e} and asset ${m}`);const D=new Oc(this.HlsPlayerClass,x,e,t);this.playerQueue.push(D),e.assetList[n]=t;let ne=!0;const ee=Lt=>{if(Lt.live){var jt;const cn=new Error(`Interstitials MUST be VOD assets ${e}`),ln={fatal:!0,type:ae.OTHER_ERROR,details:B.INTERSTITIAL_ASSET_ITEM_ERROR,error:cn},Jt=((jt=this.schedule)==null?void 0:jt.findEventIndex(e.identifier))||-1;this.handleAssetItemError(ln,e,Jt,n,cn.message);return}const vn=Lt.edge-Lt.fragmentStart,Gt=t.duration;(ne||Gt===null||vn>Gt)&&(ne=!1,this.log(`Interstitial asset "${m}" duration change ${Gt} > ${vn}`),t.duration=vn,this.updateSchedule())};D.on(d.LEVEL_UPDATED,(Lt,{details:jt})=>ee(jt)),D.on(d.LEVEL_PTS_UPDATED,(Lt,{details:jt})=>ee(jt)),D.on(d.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const Ne=(Lt,jt)=>{const vn=this.getAssetPlayer(m);if(vn&&jt.tracks){vn.off(d.BUFFER_CODECS,Ne),vn.tracks=jt.tracks;const Gt=this.primaryMedia;this.bufferingAsset===vn.assetItem&&Gt&&!vn.media&&this.bufferAssetPlayer(vn,Gt)}};D.on(d.BUFFER_CODECS,Ne);const Ke=()=>{var Lt;const jt=this.getAssetPlayer(m);if(this.log(`buffered to end of asset ${jt}`),!jt||!this.schedule)return;const vn=this.schedule.findEventIndex(e.identifier),Gt=(Lt=this.schedule.items)==null?void 0:Lt[vn];this.isInterstitial(Gt)&&this.advanceAssetBuffering(Gt,t)};D.on(d.BUFFERED_TO_END,Ke);const Je=Lt=>()=>{if(!this.getAssetPlayer(m)||!this.schedule)return;this.shouldPlay=!0;const vn=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,vn,Lt)};return D.once(d.MEDIA_ENDED,Je(n)),D.once(d.PLAYOUT_LIMIT_REACHED,Je(1/0)),D.on(d.ERROR,(Lt,jt)=>{if(!this.schedule)return;const vn=this.getAssetPlayer(m);if(jt.details===B.BUFFER_STALLED_ERROR){if(vn!=null&&vn.appendInPlace){this.handleInPlaceStall(e);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(jt,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${jt.error} ${e}`)}),D.on(d.DESTROYING,()=>{if(!this.getAssetPlayer(m)||!this.schedule)return;const jt=new Error(`Asset player destroyed unexpectedly ${m}`),vn={fatal:!0,type:ae.OTHER_ERROR,details:B.INTERSTITIAL_ASSET_ITEM_ERROR,error:jt};this.handleAssetItemError(vn,e,this.schedule.findEventIndex(e.identifier),n,jt.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${Bs(t)}`),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()}resetAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);if(t!==-1){this.log(`reset asset player "${e}" after error`);const n=this.playerQueue[t];this.transferMediaFromPlayer(n,null),n.resetDetails()}}clearAssetPlayer(e,t){const n=this.getAssetPlayerQueueIndex(e);if(n!==-1){const r=this.playerQueue[n];this.log(`clear ${r} toSegment: ${t&&Ui(t)}`),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} ${Bs(l)}`),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;if(!this.schedule)return;const{interstitial:i,assetItem:s}=e,l=this.schedule.findEventIndex(i.identifier),c=(n=this.schedule.items)==null?void 0:n[l];if(!c)return;e.loadSource(),this.setBufferingItem(c),this.bufferingAsset=s;const u=this.getBufferingPlayer();if(u===e)return;const f=i.appendInPlace;if(f&&(u==null?void 0:u.interstitial.appendInPlace)===!1)return;const m=(u==null?void 0:u.tracks)||((r=this.detachedData)==null?void 0:r.tracks)||this.requiredTracks;if(f&&s!==this.playingAsset){if(!e.tracks){this.log(`Waiting for track info before buffering ${e}`);return}if(m&&!he(m,e.tracks)){const x=new Error(`Asset ${Bs(s)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(m)}')`),T={fatal:!0,type:ae.OTHER_ERROR,details:B.INTERSTITIAL_ASSET_ITEM_ERROR,error:x},D=i.findAssetIndex(s);this.handleAssetItemError(T,i,l,D,x.message);return}}this.transferMediaTo(e,t)}handleInPlaceStall(e){const t=this.schedule,n=this.primaryMedia;if(!t||!n)return;const r=n.currentTime,i=t.findAssetIndex(e,r),s=e.assetList[i];if(s){const l=this.getAssetPlayer(s.identifier);if(l){const c=l.currentTime||r-s.timelineStart,u=l.duration-c;if(this.warn(`Stalled at ${c} of ${c+u} in ${l} ${e} (media.currentTime: ${r})`),c&&(u/n.playbackRate<.5||l.bufferedInPlaceToEnd(n))&&l.hls){const f=t.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,f,i)}}}}advanceInPlace(e){const t=this.primaryMedia;t&&t.currentTime<e&&(t.currentTime=e)}handleAssetItemError(e,t,n,r,i){if(e.details===B.BUFFER_STALLED_ERROR)return;const s=t.assetList[r]||null;if(this.warn(`INTERSTITIAL_ASSET_ERROR ${s&&Bs(s)} ${e.error}`),!this.schedule)return;const l=(s==null?void 0:s.identifier)||"",c=this.getAssetPlayerQueueIndex(l),u=this.playerQueue[c]||null,f=this.schedule.items,m=p({},e,{fatal:!1,errorAction:Et(!0),asset:s,assetListIndex:r,event:t,schedule:f,scheduleIndex:n,player:u});if(this.hls.trigger(d.INTERSTITIAL_ASSET_ERROR,m),!e.fatal)return;const x=this.playingAsset,T=this.bufferingAsset,D=new Error(i);if(s&&(this.clearAssetPlayer(l,null),s.error=D),!t.assetList.some(ne=>!ne.error))t.error=D;else for(let ne=r;ne<t.assetList.length;ne++)this.resetAssetPlayer(t.assetList[ne].identifier);this.updateSchedule(!0),t.error?this.primaryFallback(t):x&&x.identifier===l?this.advanceAfterAssetEnded(t,n,r):T&&T.identifier===l&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,T)}primaryFallback(e){const t=e.timelineStart,n=this.effectivePlayingItem;if(n){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${Ui(n)} error: ${e.error}`);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),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t)),!this.schedule)return;const s=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(s)}else this.checkStart()}onAssetListLoaded(e,t){var n,r;const i=t.event,s=i.identifier,l=t.assetListResponse.ASSETS;if(!((n=this.schedule)!=null&&n.hasEvent(s)))return;const c=i.timelineStart,u=i.duration;let f=0;l.forEach((ne,ee)=>{const Ne=parseFloat(ne.DURATION);this.createAsset(i,ee,f,c+f,Ne,ne.URI),f+=Ne}),i.duration=f,this.log(`Loaded asset-list with duration: ${f} (was: ${u}) ${i}`);const m=this.waitingItem,x=(m==null?void 0:m.event.identifier)===s;this.updateSchedule();const T=(r=this.bufferingItem)==null?void 0:r.event;if(x){var D;const ne=this.schedule.findEventIndex(s),ee=(D=this.schedule.items)==null?void 0:D[ne];if(ee){if(!this.playingItem&&this.timelinePos>ee.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==ne){i.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${i}`),this.updateSchedule(!0),this.primaryFallback(i);return}this.setBufferingItem(ee)}this.setSchedulePosition(ne)}else if((T==null?void 0:T.identifier)===s){const ne=i.assetList[0];if(ne){const ee=this.getAssetPlayer(ne.identifier);if(T.appendInPlace){const Ne=this.primaryMedia;ee&&Ne&&this.bufferAssetPlayer(ee,Ne)}else ee&&ee.loadSource()}}}onError(e,t){if(this.schedule)switch(t.details){case B.ASSET_LIST_PARSING_ERROR:case B.ASSET_LIST_LOAD_ERROR:case B.ASSET_LIST_LOAD_TIMEOUT:{const n=t.interstitial;n&&(this.updateSchedule(!0),this.primaryFallback(n));break}case B.BUFFER_STALLED_ERROR:{const n=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&n.event.appendInPlace){this.handleInPlaceStall(n.event);return}this.log(`Primary player stall @${this.timelinePos} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0);break}}}}const il=500;class Zc extends Zs{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",te.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=wn.IDLE,this.setInterval(il),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(this.fragContextChanged(n)||(Qe(n)&&(this.fragPrevious=n),this.state=wn.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,te.SUBTITLE)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===te.SUBTITLE&&(t.details===B.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==wn.STOPPED&&(this.state=wn.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Po(this.levels,t)){this.levels=t.map(n=>new un(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new un(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,te.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!==wn.STOPPED&&this.setInterval(il)}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){if(s.deltaUpdateFailed)return;const m=this.mainDetails;if(!m){this.startFragRequested=!1;return}const x=m.fragments[0];if(!c.details)s.hasProgramDateTime&&m.hasProgramDateTime?(bs(s,m),u=s.fragmentStart):x&&(u=x.start,cs(s,u));else{var f;u=this.alignPlaylists(s,c.details,(f=this.levelLastLoaded)==null?void 0:f.details),u===0&&x&&(u=x.start,cs(s,u))}m&&!this.startFragRequested&&this.setStartPosition(m,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===wn.IDLE&&(pn(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&&ar(r.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,dr(r.method)).catch(l=>{throw i.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.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=wn.IDLE})}}doTick(){if(!this.media){this.state=wn.IDLE;return}if(this.state===wn.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=Cn.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 m=u.fragments,x=m.length,T=u.edge;let D=null;const ne=this.fragPrevious;if(l<T){const Ke=r.maxFragLookUpTolerance,Je=l>T-Ke?0:Ke;D=pn(ne,m,Math.max(m[0].start,l),Je),!D&&ne&&ne.start<m[0].start&&(D=m[0])}else D=m[x-1];if(D=this.filterReplacedPrimary(D,n.details),!D)return;const ee=D.sn-u.startSN,Ne=m[ee-1];if(Ne&&Ne.cc===D.cc&&this.fragmentTracker.getState(Ne)===At.NOT_LOADED&&(D=Ne),this.fragmentTracker.getState(D)===At.NOT_LOADED){const Ke=this.mapToInitFragWhenRequired(D);Ke&&this.loadFragment(Ke,n,l)}}}loadFragment(e,t,n){Qe(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Kc(this.tracksBuffered[this.currentTrackId]||[])}}class Kc{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 zc={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},sl=a=>String.fromCharCode(zc[a]||a),Zi=15,rs=100,jc={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Vc={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Wc={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Gc={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Hc=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Yc{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;$.log(`${this.time} [${e}] ${n}`)}}}const As=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class al{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 Xc{constructor(){this.uchar=" ",this.penState=new al}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 Qc{constructor(e){this.chars=[],this.pos=0,this.currPenState=new al,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<rs;t++)this.chars.push(new Xc);this.logger=e}equals(e){for(let t=0;t<rs;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<rs;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<rs;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>rs&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=rs)}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=sl(e);if(this.pos>=rs){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<rs;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<rs;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 Ha{constructor(e){this.rows=[],this.currRow=Zi-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Zi;t++)this.rows.push(new Qc(e));this.logger=e}reset(){for(let e=0;e<Zi;e++)this.rows[e].clear();this.currRow=Zi-1}equals(e){let t=!0;for(let n=0;n<Zi;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Zi;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Zi;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 = "+at(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<Zi;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 = "+at(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<Zi;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 ol{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 Ha(n),this.nonDisplayedMemory=new Ha(n),this.lastOutputScreen=new Ha(n),this.currRollUpRow=this.displayedMemory.rows[Zi-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[Zi-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: "+at(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 ll{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=qc(),this.logger=void 0;const r=this.logger=new Yc;this.channels=[null,new ol(e,t,r),new ol(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,()=>"["+As([t[n],t[n+1]])+"] -> ("+As([r,i])+")");const c=this.cmdHistory;if(r>=16&&r<=31){if(Jc(r,i,c)){ya(null,null,c),this.logger.log(3,()=>"Repeated command ("+As([r,i])+") is dropped");continue}ya(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 ya(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 "+As([r,i])+" orig: "+As([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 ("+As([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?jc[e]:Wc[e]:n=s===1?Vc[e]:Gc[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 '"+sl(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 = "+As(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=Hc[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()}ya(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 ya(a,e,t){t.a=a,t.b=e}function Jc(a,e,t){return t.a===a&&t.b===e}function qc(){return{a:null,b:null}}var Ya=function(){if(rr!=null&&rr.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 m in f)l[m]=f[m]}return l}function s(l,c,u){const f=this,m={enumerable:!0};f.hasBeenReset=!1;let x="",T=!1,D=l,ne=c,ee=u,Ne=null,Ke="",Je=!0,Lt="auto",jt="start",vn=50,Gt="middle",cn=50,ln="middle";Object.defineProperty(f,"id",i({},m,{get:function(){return x},set:function(Jt){x=""+Jt}})),Object.defineProperty(f,"pauseOnExit",i({},m,{get:function(){return T},set:function(Jt){T=!!Jt}})),Object.defineProperty(f,"startTime",i({},m,{get:function(){return D},set:function(Jt){if(typeof Jt!="number")throw new TypeError("Start time must be set to a number.");D=Jt,this.hasBeenReset=!0}})),Object.defineProperty(f,"endTime",i({},m,{get:function(){return ne},set:function(Jt){if(typeof Jt!="number")throw new TypeError("End time must be set to a number.");ne=Jt,this.hasBeenReset=!0}})),Object.defineProperty(f,"text",i({},m,{get:function(){return ee},set:function(Jt){ee=""+Jt,this.hasBeenReset=!0}})),Object.defineProperty(f,"region",i({},m,{get:function(){return Ne},set:function(Jt){Ne=Jt,this.hasBeenReset=!0}})),Object.defineProperty(f,"vertical",i({},m,{get:function(){return Ke},set:function(Jt){const In=n(Jt);if(In===!1)throw new SyntaxError("An invalid or illegal string was specified.");Ke=In,this.hasBeenReset=!0}})),Object.defineProperty(f,"snapToLines",i({},m,{get:function(){return Je},set:function(Jt){Je=!!Jt,this.hasBeenReset=!0}})),Object.defineProperty(f,"line",i({},m,{get:function(){return Lt},set:function(Jt){if(typeof Jt!="number"&&Jt!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");Lt=Jt,this.hasBeenReset=!0}})),Object.defineProperty(f,"lineAlign",i({},m,{get:function(){return jt},set:function(Jt){const In=r(Jt);if(!In)throw new SyntaxError("An invalid or illegal string was specified.");jt=In,this.hasBeenReset=!0}})),Object.defineProperty(f,"position",i({},m,{get:function(){return vn},set:function(Jt){if(Jt<0||Jt>100)throw new Error("Position must be between 0 and 100.");vn=Jt,this.hasBeenReset=!0}})),Object.defineProperty(f,"positionAlign",i({},m,{get:function(){return Gt},set:function(Jt){const In=r(Jt);if(!In)throw new SyntaxError("An invalid or illegal string was specified.");Gt=In,this.hasBeenReset=!0}})),Object.defineProperty(f,"size",i({},m,{get:function(){return cn},set:function(Jt){if(Jt<0||Jt>100)throw new Error("Size must be between 0 and 100.");cn=Jt,this.hasBeenReset=!0}})),Object.defineProperty(f,"align",i({},m,{get:function(){return ln},set:function(Jt){const In=r(Jt);if(!In)throw new SyntaxError("An invalid or illegal string was specified.");ln=In,this.hasBeenReset=!0}})),f.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class $c{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function ul(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 ed{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 cl(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 Xa=new Ya(0,0,""),_a=Xa.align==="middle"?"middle":"center";function td(a,e,t){const n=a;function r(){const l=ul(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 ed;cl(l,function(x,T){let D;switch(x){case"region":for(let ne=t.length-1;ne>=0;ne--)if(t[ne].id===T){u.set(x,t[ne].region);break}break;case"vertical":u.alt(x,T,["rl","lr"]);break;case"line":D=T.split(","),u.integer(x,D[0]),u.percent(x,D[0])&&u.set("snapToLines",!1),u.alt(x,D[0],["auto"]),D.length===2&&u.alt("lineAlign",D[1],["start",_a,"end"]);break;case"position":D=T.split(","),u.percent(x,D[0]),D.length===2&&u.alt("positionAlign",D[1],["start",_a,"end","line-left","line-right","auto"]);break;case"size":u.percent(x,T);break;case"align":u.alt(x,T,["start",_a,"end","left","right"]);break}},/:/,/\s/),c.region=u.get("region",null),c.vertical=u.get("vertical","");let f=u.get("line","auto");f==="auto"&&Xa.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",_a);let m=u.get("position","auto");m==="auto"&&Xa.position===50&&(m=c.align==="start"||c.align==="left"?0:c.align==="end"||c.align==="right"?100:50),c.position=m}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 dl(a){return a.replace(/<br(?: \/)?>/gi,`
|
|
`)}class nd{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new $c,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=dl(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){cl(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 Ya(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{td(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 rd=/\r\n|\n\r|\n|\r/g,Qa=function(e,t,n=0){return e.slice(n,n+t.length)===t},id=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(!h(t)||!h(n)||!h(r)||!h(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t};function Ja(a,e,t){return Js(a.toString())+Js(e.toString())+Js(t)}const sd=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 ad(a,e,t,n,r,i,s){const l=new nd,c=ot(new Uint8Array(a)).trim().replace(rd,`
|
|
`).split(`
|
|
`),u=[],f=e?mu(e.baseTime,e.timescale):0;let m="00:00.000",x=0,T=0,D,ne=!0;l.oncue=function(ee){const Ne=t[n];let Ke=t.ccOffset;const Je=(x-f)/9e4;if(Ne!=null&&Ne.new&&(T!==void 0?Ke=t.ccOffset=Ne.start:sd(t,n,Je)),Je){if(!e){D=new Error("Missing initPTS for VTT MPEGTS");return}Ke=Je-t.presentationOffset}const Lt=ee.endTime-ee.startTime,jt=Ri((ee.startTime+Ke-T)*9e4,r*9e4)/9e4;ee.startTime=Math.max(jt,0),ee.endTime=Math.max(jt+Lt,0);const vn=ee.text.trim();ee.text=decodeURIComponent(encodeURIComponent(vn)),ee.id||(ee.id=Ja(ee.startTime,ee.endTime,vn)),ee.endTime>0&&u.push(ee)},l.onparsingerror=function(ee){D=ee},l.onflush=function(){if(D){s(D);return}i(u)},c.forEach(ee=>{if(ne)if(Qa(ee,"X-TIMESTAMP-MAP=")){ne=!1,ee.slice(16).split(",").forEach(Ne=>{Qa(Ne,"LOCAL:")?m=Ne.slice(6):Qa(Ne,"MPEGTS:")&&(x=parseInt(Ne.slice(7)))});try{T=id(m)/1e3}catch(Ne){D=Ne}return}else ee===""&&(ne=!1);l.parse(ee+`
|
|
`)}),l.flush()}const qa="stpp.ttml.im1t",fl=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,hl=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,od={left:"start",center:"center",right:"end",start:"start",end:"end"};function pl(a,e,t,n){const r=j(new Uint8Array(a),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(l=>ot(l)),s=pu(e.baseTime,1,e.timescale);try{i.forEach(l=>t(ld(l,s)))}catch(l){n(l)}}function ld(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((m,x)=>(m[x]=r.getAttribute(`ttp:${x}`)||i[x],m),{}),l=r.getAttribute("xml:space")!=="preserve",c=ml($a(r,"styling","style")),u=ml($a(r,"layout","region")),f=$a(r,"body","[begin]");return[].map.call(f,m=>{const x=gl(m,l);if(!x||!m.hasAttribute("begin"))return null;const T=to(m.getAttribute("begin"),s),D=to(m.getAttribute("dur"),s);let ne=to(m.getAttribute("end"),s);if(T===null)throw vl(m);if(ne===null){if(D===null)throw vl(m);ne=T+D}const ee=new Ya(T-e,ne-e,x);ee.id=Ja(ee.startTime,ee.endTime,ee.text);const Ne=u[m.getAttribute("region")],Ke=c[m.getAttribute("style")],Je=ud(Ne,Ke,c),{textAlign:Lt}=Je;if(Lt){const jt=od[Lt];jt&&(ee.lineAlign=jt),ee.align=Lt}return p(ee,Je),ee}).filter(m=>m!==null)}function $a(a,e,t){const n=a.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function ml(a){return a.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function gl(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?gl(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function ud(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=eo(e,n,c)||eo(a,n,c)||eo(r,n,c);return u&&(l[c]=u),l},{})}function eo(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function vl(a){return new Error(`Could not parse ttml timestamp ${a}`)}function to(a,e){if(!a)return null;let t=ul(a);return t===null&&(fl.test(a)?t=cd(a,e):hl.test(a)&&(t=dd(a,e))),t}function cd(a,e){const t=fl.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 dd(a,e){const t=hl.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 Ea{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 fd{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=El(),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 Ea(this,"textTrack1"),t=new Ea(this,"textTrack2"),n=new Ea(this,"textTrack3"),r=new Ea(this,"textTrack4");this.cea608Parser1=new ll(1,e,t),this.cea608Parser2=new ll(3,n,r)}addCues(e,t,n,r,i){let s=!1;for(let l=i.length;l--;){const c=i[l],u=hd(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,trackId:s}){const{unparsedVttFrags:l}=this;n===te.MAIN&&(this.initPTS[t.cc]={baseTime:r,timescale:i,trackId:s}),l.length&&(this.unparsedVttFrags=[],l.forEach(c=>{this.initPTS[c.frag.cc]?this.onFragLoaded(d.FRAG_LOADED,c):this.hls.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:c.frag,error:new Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const i=n.textTracks[r];if(_l(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,Os(n[e]),$o(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=>{Os(r[i]),delete r[i]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=El(),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++)Os(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(i=>i.textCodec===qa);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(Po(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,l=s?ma(s.textTracks):null;if(this.tracks.forEach((c,u)=>{let f;if(l){let m=null;for(let x=0;x<l.length;x++)if(l[x]&&_l(l[x],c)){m=l[x],l[x]=null;break}m&&(f=m)}if(f)Os(f);else{const m=yl(c);f=this.createTextTrack(m,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===te.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===te.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===qa?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;pl(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?ce(n.initSegment.data,new Uint8Array(r)).buffer:r;ad(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 m=f.message==="Missing initPTS for VTT MPEGTS";m?s.push(e):this._fallbackToIMSC1(n,r),c.logger.log(`Failed to parse VTT cue: ${f}`),!(m&&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||pl(t,this.initPTS[e.cc],()=>{n.textCodec=qa,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=>el(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===te.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===te.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=>Va(l[c],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>Va(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 yl(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function _l(a,e){return!!a&&a.kind===yl(e)&&Oa(e,a)}function hd(a,e,t,n){return Math.min(e,n)-Math.max(a,t)}function El(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const pd=/\s/,md={newCue(a,e,t,n){const r=[];let i,s,l,c,u;const f=self.VTTCue||self.TextTrackCue;for(let x=0;x<n.rows.length;x++)if(i=n.rows[x],l=!0,c=0,u="",!i.isEmpty()){var m;for(let ne=0;ne<i.chars.length;ne++)pd.test(i.chars[ne].uchar)&&l?c++:(u+=i.chars[ne].uchar,l=!1);i.cueStartTime=e,e===t&&(t+=1e-4),c>=16?c--:c++;const T=dl(u.trim()),D=Ja(e,t,T);a!=null&&(m=a.cues)!=null&&m.getCueById(D)||(s=new f(e,t,T),s.id=D,s.line=x+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((x,T)=>x.line==="auto"||T.line==="auto"?0:x.line>8&&T.line>8?T.line-x.line:x.line-T.line),r.forEach(x=>el(a,x))),r}};function gd(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const vd=/(\d+)-(\d+)\/(\d+)/;class bl{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||bd,this.controller=new self.AbortController,this.stats=new v}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=yd(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&&h(c)?c:u,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},t.timeout),(Xs(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(m=>{var x;this.response=this.loader=m;const T=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-(T-r.loading.start)),!m.ok){const{status:ne,statusText:ee}=m;throw new xd(ee||"fetch, bad network response",ne,m)}r.loading.first=T,r.total=Ed(m.headers)||r.total;const D=(x=this.callbacks)==null?void 0:x.onProgress;return D&&h(t.highWaterMark)?this.loadProgressively(m,r,e,t.highWaterMark,D):s?m.arrayBuffer():e.responseType==="json"?m.json():m.text()}).then(m=>{var x,T;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 ne=m[l];ne&&(r.loaded=r.total=ne);const ee={url:D.url,data:m,code:D.status},Ne=(x=this.callbacks)==null?void 0:x.onProgress;Ne&&!h(t.highWaterMark)&&Ne(r,e,m,D),(T=this.callbacks)==null||T.onSuccess(ee,r,e,D)}).catch(m=>{var x;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const T=m&&m.code||0,D=m?m.message:null;(x=this.callbacks)==null||x.onError({code:T,text:D},e,m?m.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 Ks,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,m=f.length;return t.loaded+=m,m<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 yd(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(p({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function _d(a){const e=vd.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function Ed(a){const e=a.get("Content-Range");if(e){const n=_d(e);if(h(n))return n}const t=a.get("Content-Length");if(t)return parseInt(t)}function bd(a,e){return new self.Request(a.url,e)}class xd extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const Sd=/^age:\s*[\d.]+\s*$/im;class xl{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 v,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&&h(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 ne=t.responseType==="arraybuffer"?D.byteLength:D.length;n.loaded=n.total=ne,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first);const ee=(s=this.callbacks)==null?void 0:s.onProgress;ee&&ee(n,e,D,t);const Ne={url:t.responseURL,data:D,code:u};(l=this.callbacks)==null||l.onSuccess(Ne,n,e,t);return}}const m=i.loadPolicy.errorRetry,x=n.retry,T={url:e.url,data:void 0,code:u};if(gt(m,x,!1,T))this.retry(m);else{var c;$.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(gt(e,t,!0))this.retry(e);else{var n;$.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=ke(e,n.retry),n.retry++,$.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&&Sd.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 wd={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Ad=b(b({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,startOnSegmentBoundary:!1,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",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:xl,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Dn,bufferController:Iu,capLevelController:Ba,errorController:vt,fpsController:Dc,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:ei,requireKeySystemAccessOnStart:!1,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,preserveManualLevelOnError:!1,certLoadPolicy:{default:wd},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},Cd()),{},{subtitleStreamController:Zc,subtitleTrackController:Lc,timelineController:fd,audioStreamController:Cu,audioTrackController:Tu,emeController:Ms,cmcdController:wc,contentSteeringController:Cc,interstitialsController:Uc});function Cd(){return{cueHandler:md,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 Td(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=no(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 m=`${s}Loading${f}`,x=e[m];if(x!==void 0&&c){u.push(m);const T=n[l].default;switch(e[l]={default:T},f){case"TimeOut":T.maxLoadTimeMs=x,T.maxTimeToFirstByteMs=x;break;case"MaxRetry":T.errorRetry.maxNumRetry=x,T.timeoutRetry.maxNumRetry=x;break;case"RetryDelay":T.errorRetry.retryDelayMs=x,T.timeoutRetry.retryDelayMs=x;break;case"MaxRetryTimeout":T.errorRetry.maxRetryDelayMs=x,T.timeoutRetry.maxRetryDelayMs=x;break}}}),u.length&&t.warn(`hls.js config: "${u.join('", "')}" setting(s) are deprecated, use "${l}": ${at(e[l])}`)}),b(b({},n),e)}function no(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(no):Object.keys(a).reduce((e,t)=>(e[t]=no(a[t]),e),{}):a}function Dd(a,e){const t=a.loader;t!==bl&&t!==xl?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):gd()&&(a.loader=bl,a.progressive=!0,a.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const ba=2,Rd=.1,Id=.05,Ld=100;class kd extends an{constructor(e,t){super("gap-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,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(Ld),this.mediaSource=t.mediaSource;const n=this.media=t.media;mi(n,"playing",this.onMediaPlaying),mi(n,"waiting",this.onMediaWaiting),mi(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 s=this.media;if(!s)return;const{seeking:l}=s,c=this.seeking&&!l,u=!this.seeking&&l,f=s.paused&&!l||s.ended||s.playbackRate===0;if(this.seeking=l,e!==t){t&&(this.ended=0),this.moved=!0,l||(this.nudgeRetry=0,i.nudgeOnVideoHole&&!f&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(u||c){c&&this.stallResolved(e);return}if(f){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(!Cn.getBuffered(s).length){this.nudgeRetry=0;return}const m=Cn.bufferInfo(s,e,0),x=m.nextStart||0,T=this.fragmentTracker;if(l&&T&&this.hls){const vn=Sl(this.hls.inFlightFragments,e),Gt=m.len>ba,cn=!x||vn||x-e>ba&&!T.getPartialFragment(e);if(Gt||cn)return;this.moved=!1}const D=(r=this.hls)==null?void 0:r.latestLevelDetails;if(!this.moved&&this.stalled!==null&&T){if(!(m.len>0)&&!x)return;const Gt=Math.max(x,m.start||0)-e,ln=!!(D!=null&&D.live)?D.targetduration*2:ba,Jt=xa(e,T);if(Gt>0&&(Gt<=ln||Jt)){s.paused||this._trySkipBufferHole(Jt);return}}const ne=i.detectStallWithCurrentTimeMs,ee=self.performance.now(),Ne=this.waiting;let Ke=this.stalled;if(Ke===null)if(Ne>0&&ee-Ne<ne)Ke=this.stalled=Ne;else{this.stalled=ee;return}const Je=ee-Ke;if(!l&&(Je>=ne||Ne)&&this.hls){var Lt;if(((Lt=this.mediaSource)==null?void 0:Lt.readyState)==="ended"&&!(D!=null&&D.live)&&Math.abs(e-((D==null?void 0:D.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(d.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(m),!this.media||!this.hls)return}const jt=Cn.bufferInfo(s,e,i.maxBufferHole);this._tryFixBufferStall(jt,Je,e)}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=Cn.bufferedInfo(Cn.timeRangesToArray(this.buffered.audio),e,0);if(i.len>1&&t>=i.start){const s=Cn.timeRangesToArray(r),l=Cn.bufferedInfo(s,t,0).bufferedIndex;if(l>-1&&l<s.length-1){const c=Cn.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 m=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${u} -> ${f} buffered index: ${c}`);this.warn(m.message),this.media.currentTime+=1e-6;let x=xa(e,this.fragmentTracker);x&&"fragment"in x?x=x.fragment:x||(x=void 0);const T=Cn.bufferInfo(this.media,e,0);this.hls.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:m,reason:m.message,frag:x,buffer:T.len,bufferInfo:T})}}}}}_tryFixBufferStall(e,t,n){var r,i;const{fragmentTracker:s,media:l}=this,c=(r=this.hls)==null?void 0:r.config;if(!l||!s||!c)return;const u=(i=this.hls)==null?void 0:i.latestLevelDetails,f=xa(n,s);if((f||u!=null&&u.live&&n<u.fragmentStart)&&(this._trySkipBufferHole(f)||!this.media))return;const m=e.buffered,x=this.adjacentTraversal(e,n);(m&&m.length>1&&e.len>c.maxBufferHole||e.nextStart&&(e.nextStart-n<c.maxBufferHole||x))&&(t>c.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}adjacentTraversal(e,t){const n=this.fragmentTracker,r=e.nextStart;if(n&&r){const i=n.getFragAtPos(t,te.MAIN),s=n.getFragAtPos(r,te.MAIN);if(i&&s)return s.sn-i.sn<2}return!1}_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 (${at(e)})`);this.warn(s.message),t.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.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=Cn.bufferInfo(r,s,0),c=s<l.start?l.start:l.nextStart;if(c&&this.hls){const f=l.len<=i.maxBufferHole,m=l.len>0&&l.len<1&&r.readyState<3,x=c-s;if(x>0&&(f||m)){if(x>i.maxBufferHole){let D=!1;if(s===0){const ne=n.getAppendedFrag(0,te.MAIN);ne&&c<ne.end&&(D=!0)}if(!D&&e){var u;if(!((u=this.hls.loadLevelObj)!=null&&u.details)||Sl(this.hls.inFlightFragments,c))return 0;let ee=!1,Ne=e.end;for(;Ne<c;){const Ke=xa(Ne,n);if(Ke)Ne+=Ke.duration;else{ee=!0;break}}if(ee)return 0}}const T=Math.max(c+Id,s+Rd);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${T}`),this.moved=!0,r.currentTime=T,!(e!=null&&e.gap)){const D=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${T}`),ne={type:ae.MEDIA_ERROR,details:B.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:D,reason:D.message,buffer:l.len,bufferInfo:l};e&&("fragment"in e?ne.part=e:ne.frag=e),this.hls.trigger(d.ERROR,ne)}return T}}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:ae.MEDIA_ERROR,details:B.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:ae.MEDIA_ERROR,details:B.BUFFER_STALLED_ERROR,error:l,fatal:!0,buffer:e.len,bufferInfo:e})}}}function Sl(a,e){const t=wl(a.main);if(t&&t.start<=e)return t;const n=wl(a.audio);return n&&n.start<=e?n:null}function wl(a){if(!a)return null;switch(a.state){case wn.IDLE:case wn.STOPPED:case wn.ENDED:case wn.ERROR:return null}return a.frag}function xa(a,e){return e.getAppendedFrag(a,te.MAIN)||e.getPartialFragment(a)}const Pd=.25;function ro(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function io(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,at(r?b({type:r},n):n))}return i}const Sa=(()=>{const a=ro();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class Nd{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 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&&(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&&(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(){var e;const t=(e=this.hls)==null?void 0:e.latestLevelDetails;t&&this.updateDateRangeCues(t)}onMediaDetaching(e,t){this.media=null,!t.transferMedia&&(this.id3Track&&(this.removeCues&&Os(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 $o(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media||!this.hls)return;const{enableEmsgMetadataCues:n,enableID3MetadataCues:r}=this.hls.config;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=ro();if(s)for(let l=0;l<i.length;l++){const c=i[l].type;if(c===Di.emsg&&!n||!r)continue;const u=ho(i[l].data),f=i[l].pts;let m=f+i[l].duration;m>Sa&&(m=Sa),m-f<=0&&(m=f+Pd);for(let T=0;T<u.length;T++){const D=u[T];if(!po(D)){this.updateId3CueEnds(f,c);const ne=io(s,f,m,D,c);ne&&this.id3Track.addCue(ne)}}}}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===Sa&&(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===Di.audioId3&&c:r==="video"?u=f=>f.type===Di.emsg&&l:u=f=>f.type===Di.audioId3&&c||f.type===Di.emsg&&l,Va(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.hls||!this.media)return;const{assetPlayerId:n,timelineOffset:r,enableDateRangeMetadataCues:i,interstitialsController:s}=this.hls.config;if(!i)return;const l=ro();if(n&&r&&!s){const{fragmentStart:ne,fragmentEnd:ee}=e;let Ne=this.assetCue;Ne?(Ne.startTime=ne,Ne.endTime=ee):l&&(Ne=this.assetCue=io(l,ne,ee,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),Ne&&(Ne.id=n,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(Ne),Ne.addEventListener("enter",this.onEventCueEnter)))}if(!e.hasProgramDateTime)return;const{id3Track:c}=this,{dateRanges:u}=e,f=Object.keys(u);let m=this.dateRangeCuesAppended;if(c&&t){var x;if((x=c.cues)!=null&&x.length){const ne=Object.keys(m).filter(ee=>!f.includes(ee));for(let ee=ne.length;ee--;){var T;const Ne=ne[ee],Ke=(T=m[Ne])==null?void 0:T.cues;delete m[Ne],Ke&&Object.keys(Ke).forEach(Je=>{const Lt=Ke[Je];if(Lt){Lt.removeEventListener("enter",this.onEventCueEnter);try{c.removeCue(Lt)}catch(jt){}}})}}else m=this.dateRangeCuesAppended={}}const D=e.fragments[e.fragments.length-1];if(!(f.length===0||!h(D==null?void 0:D.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let ne=0;ne<f.length;ne++){const ee=f[ne],Ne=u[ee],Ke=Ne.startTime,Je=m[ee],Lt=(Je==null?void 0:Je.cues)||{};let jt=(Je==null?void 0:Je.durationKnown)||!1,vn=Sa;const{duration:Gt,endDate:cn}=Ne;if(cn&&Gt!==null)vn=Ke+Gt,jt=!0;else if(Ne.endOnNext&&!jt){const Jt=f.reduce((In,nr)=>{if(nr!==Ne.id){const fr=u[nr];if(fr.class===Ne.class&&fr.startDate>Ne.startDate&&(!In||Ne.startDate<In.startDate))return fr}return In},null);Jt&&(vn=Jt.startTime,jt=!0)}const ln=Object.keys(Ne.attr);for(let Jt=0;Jt<ln.length;Jt++){const In=ln[Jt];if(!Dr(In))continue;const nr=Lt[In];if(nr)jt&&!(Je!=null&&Je.durationKnown)?nr.endTime=vn:Math.abs(nr.startTime-Ke)>.01&&(nr.startTime=Ke,nr.endTime=vn);else if(l){let fr=Ne.attr[In];Vr(In)&&(fr=C(fr));const hr=io(l,Ke,vn,{key:In,data:fr},Di.dateRange);hr&&(hr.id=ee,this.id3Track.addCue(hr),Lt[In]=hr,s&&(In==="X-ASSET-LIST"||In==="X-ASSET-URL")&&hr.addEventListener("enter",this.onEventCueEnter))}}m[ee]={cues:Lt,dateRange:Ne,durationKnown:jt}}}}}class Md{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 m=Math.min(2,Math.max(1,s)),x=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20,T=Math.min(m,Math.max(1,x));this.changeMediaPlaybackRate(t,T)}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===B.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 Od extends Ma{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=>{const m=f.attrs;let{audioCodec:x,videoCodec:T}=f;x&&(f.audioCodec=x=Ye(x,n)||void 0),T&&(T=f.videoCodec=I(T));const{width:D,height:ne,unknownCodecs:ee}=f,Ne=(ee==null?void 0:ee.length)||0;if(l||(l=!!(D&&ne)),c||(c=!!T),u||(u=!!x),Ne||x&&!this.isAudioSupported(x)||T&&!this.isVideoSupported(T)){this.log(`Some or all CODECS not supported "${m.CODECS}"`);return}const{CODECS:Ke,"FRAME-RATE":Je,"HDCP-LEVEL":Lt,"PATHWAY-ID":jt,RESOLUTION:vn,"VIDEO-RANGE":Gt}=m,ln=`${`${jt||"."}-`}${f.bitrate}-${vn}-${Je}-${Ke}-${Gt}-${Lt}`;if(i[ln])if(i[ln].uri!==f.url&&!f.attrs["PATHWAY-ID"]){const Jt=s[ln]+=1;f.attrs["PATHWAY-ID"]=new Array(Jt+1).join(".");const In=this.createLevel(f);i[ln]=In,r.push(In)}else i[ln].addGroupId("audio",m.AUDIO),i[ln].addGroupId("text",m.SUBTITLES);else{const Jt=this.createLevel(f);i[ln]=Jt,s[ln]=1,r.push(Jt)}}),this.filterAndSortMediaOptions(r,t,l,c,u)}createLevel(e){const t=new un(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=Ge(r,[])}return t}isAudioSupported(e){return ge(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return ge(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,r,i){var s;let l=[],c=[],u=e;const f=((s=t.stats)==null?void 0:s.parsing)||{};if((n||r)&&i&&(u=u.filter(({videoCodec:Ke,videoRange:Je,width:Lt,height:jt})=>(!!Ke||!!(Lt&&jt))&&Tt(Je))),u.length===0){Promise.resolve().then(()=>{if(this.hls){let Ke="no level with compatible codecs found in manifest",Je=Ke;t.levels.length&&(Je=`one or more CODECS in variant not supported: ${at(t.levels.map(jt=>jt.attrs.CODECS).filter((jt,vn,Gt)=>Gt.indexOf(jt)===vn))}`,this.warn(Je),Ke+=` (${Je})`);const Lt=new Error(Ke);this.hls.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:Lt,reason:Je})}}),f.end=performance.now();return}t.audioTracks&&(l=t.audioTracks.filter(Ke=>!Ke.audioCodec||this.isAudioSupported(Ke.audioCodec)),Al(l)),t.subtitles&&(c=t.subtitles,Al(c));const m=u.slice(0);u.sort((Ke,Je)=>{if(Ke.attrs["HDCP-LEVEL"]!==Je.attrs["HDCP-LEVEL"])return(Ke.attrs["HDCP-LEVEL"]||"")>(Je.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&Ke.height!==Je.height)return Ke.height-Je.height;if(Ke.frameRate!==Je.frameRate)return Ke.frameRate-Je.frameRate;if(Ke.videoRange!==Je.videoRange)return xt.indexOf(Ke.videoRange)-xt.indexOf(Je.videoRange);if(Ke.videoCodec!==Je.videoCodec){const Lt=Y(Ke.videoCodec),jt=Y(Je.videoCodec);if(Lt!==jt)return jt-Lt}if(Ke.uri===Je.uri&&Ke.codecSet!==Je.codecSet){const Lt=pe(Ke.codecSet),jt=pe(Je.codecSet);if(Lt!==jt)return jt-Lt}return Ke.averageBitrate!==Je.averageBitrate?Ke.averageBitrate-Je.averageBitrate:0});let x=m[0];if(this.steering&&(u=this.steering.filterParsedLevels(u),u.length!==m.length)){for(let Ke=0;Ke<m.length;Ke++)if(m[Ke].pathwayId===u[0].pathwayId){x=m[Ke];break}}this._levels=u;for(let Ke=0;Ke<u.length;Ke++)if(u[Ke]===x){var T;this._firstLevel=Ke;const Je=x.bitrate,Lt=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${u.length} level(s) found, first bitrate: ${Je}`),((T=this.hls.userConfig)==null?void 0:T.abrEwmaDefaultEstimate)===void 0){const jt=Math.min(Je,this.hls.config.abrEwmaDefaultEstimateMax);jt>Lt&&Lt===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=jt)}break}const D=i&&!r,ne=this.hls.config,ee=!!(ne.audioStreamController&&ne.audioTrackController),Ne={levels:u,audioTracks:l,subtitleTracks:c,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:ee&&!D&&l.some(Ke=>!!Ke.url)};f.end=performance.now(),this.hls.trigger(d.MANIFEST_PARSED,Ne)}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"),m=e<0;if(this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.LEVEL_SWITCH_ERROR,level:e,fatal:m,error:f,reason:f.message}),m)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===_e.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===te.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));si(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 Al(a){const e={};a.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}function Cl(){return self.SourceBuffer||self.WebKitSourceBuffer}function Tl(){if(!oe())return!1;const e=Cl();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function Fd(){if(!Tl())return!1;const a=oe();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(k(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(k(e,"audio"))))}function Bd(){var a;const e=Cl();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const Ud=100;class Zd extends Zs{constructor(e,t,n){super(e,t,n,"stream-controller",te.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||!h(i)||(this.log(`Media seeked to ${i.toFixed(3)}`),!this.getBufferedFrag(i)))return;const s=this.getFwdBufferInfoAtPos(r,i,te.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(Ud),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=wn.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=wn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case wn.WAITING_LEVEL:{const{levels:e,level:t}=this,n=e==null?void 0:e[t],r=n==null?void 0:n.details;if(r&&(!r.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(r))break;this.state=wn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=wn.IDLE;break}break}case wn.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===wn.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 ne={};this.altAudio===2&&(ne.type="video"),this.hls.trigger(d.BUFFER_EOS,ne),this.state=wn.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===wn.WAITING_LEVEL||this.waitForLive(s)){this.level=i,this.state=wn.WAITING_LEVEL,this.startFragRequested=!1;return}const f=l.len,m=this.getMaxBufferLength(s.maxBitrate);if(f>=m)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);const x=this.backtrackFragment?this.backtrackFragment.start:l.end;let T=this.getNextFragment(x,u);if(this.couldBacktrack&&!this.fragPrevious&&T&&Qe(T)&&this.fragmentTracker.getState(T)!==At.OK){var D;const ee=((D=this.backtrackFragment)!=null?D:T).sn-u.startSN,Ne=u.fragments[ee-1];Ne&&T.cc===Ne.cc&&(T=Ne,this.fragmentTracker.removeFragment(Ne))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(T&&this.isLoopLoading(T,x)){if(!T.gap){const ee=this.audioOnly&&!this.altAudio?O.AUDIO:O.VIDEO,Ne=(ee===O.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ne&&this.afterBufferFlushed(Ne,ee,te.MAIN)}T=this.getNextFragmentLoopLoading(T,u,l,te.MAIN,m)}T&&(T.initSegment&&!T.initSegment.data&&!this.bitrateTest&&(T=T.initSegment),this.loadFragment(T,s,x))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===At.NOT_LOADED||r===At.PARTIAL?Qe(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,te.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 wn.KEY_LOADING:case wn.FRAG_LOADING:case wn.FRAG_LOADING_WAITING_RETRY:case wn.PARSING:case wn.PARSED:this.state=wn.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;mi(n,"playing",this.onMediaPlaying),mi(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;for(let i=0;i<t.levels.length;i++){const s=t.levels[i].audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,r=r||s.indexOf("mp4a.40.5")!==-1)}this.audioCodecSwitch=n&&r&&!Bd(),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!==wn.IDLE)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=wn.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===wn.FRAG_LOADING||this.state===wn.FRAG_LOADING_WAITING_RETRY)&&f.level!==t.level&&f.loader&&this.abortCurrentFrag();let m=0;if(l.live||(n=u.details)!=null&&n.live){var x;if(this.checkLiveUpdate(l),l.deltaUpdateFailed)return;m=this.alignPlaylists(l,u.details,(x=this.levelLastLoaded)==null?void 0:x.details)}if(u.details=l,this.levelLastLoaded=u,i||this.setStartPosition(l,m),this.hls.trigger(d.LEVEL_UPDATED,{details:l,level:s}),this.state===wn.WAITING_LEVEL){if(this.waitForCdnTuneIn(l))return;this.state=wn.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 f=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!c&&n.readyState<4||i<l-f)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState))if(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${l}, reset currentTime to : ${r.toFixed(3)}`),this.config.liveSyncMode==="buffered"){var u;const m=Cn.bufferInfo(n,r,0);if(!((u=m.buffered)!=null&&u.length)){n.currentTime=r;return}if(m.start<=i){n.currentTime=r;return}const{nextStart:T}=Cn.bufferedInfo(m.buffered,i,0);T&&(n.currentTime=T)}else 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,m=(t=n.initSegment)==null?void 0:t.data,x=this._getAudioCodec(l),T=this.transmuxer=this.transmuxer||new Lo(this.hls,te.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),D=r?r.index:-1,ne=D!==-1,ee=new Wt(n.level,n.sn,n.stats.chunkCount,i.byteLength,D,ne),Ne=this.initPTS[n.cc];T.push(i,m,x,u,n,r,c.totalduration,f,ee,Ne)}onAudioTrackSwitching(e,t){const n=this.hls,r=this.altAudio===2;if(Mn(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,()=>{this.hls&&this.hls.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=Mn(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===te.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===wn.PARSED&&(this.state=wn.IDLE);return}const l=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),Qe(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const s=this.media;s&&(!this._hasEnoughToStart&&Cn.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=wn.ERROR;return}switch(t.details){case B.FRAG_GAP:case B.FRAG_PARSING_ERROR:case B.FRAG_DECRYPT_ERROR:case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(te.MAIN,t);break;case B.LEVEL_LOAD_ERROR:case B.LEVEL_LOAD_TIMEOUT:case B.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===wn.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===_e.LEVEL&&(this.state=wn.IDLE);break;case B.BUFFER_ADD_CODEC_ERROR:case B.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case B.BUFFER_FULL_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case B.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=wn.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==O.AUDIO||!this.altAudio){const n=(t===O.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,t,te.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=Cn.getBuffered(e),l=s.length?s.start(0):0,c=l-n,u=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||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=wn.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}).catch(n=>{this.state===wn.STOPPED||this.state===wn.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}_handleTransmuxComplete(e){const t=this.playlistType,{hls:n}=this,{remuxResult:r,chunkMeta:i}=e,s=this.getCurrentContext(i);if(!s){this.resetWhenMissingContext(i);return}const{frag:l,part:c,level:u}=s,{video:f,text:m,id3:x,initSegment:T}=r,{details:D}=u,ne=this.altAudio?void 0:r.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=wn.PARSING,T){const ee=T.tracks;if(ee){const Lt=l.initSegment||l;if(this.unhandledEncryptionError(T,l))return;this._bufferInitSegment(u,ee,Lt,i),n.trigger(d.FRAG_PARSING_INIT_SEGMENT,{frag:Lt,id:t,tracks:ee})}const Ne=T.initPTS,Ke=T.timescale,Je=this.initPTS[l.cc];if(h(Ne)&&(!Je||Je.baseTime!==Ne||Je.timescale!==Ke)){const Lt=T.trackId;this.initPTS[l.cc]={baseTime:Ne,timescale:Ke,trackId:Lt},n.trigger(d.INIT_PTS_FOUND,{frag:l,id:t,initPTS:Ne,timescale:Ke,trackId:Lt})}}if(f&&D){ne&&f.type==="audiovideo"&&this.logMuxedErr(l);const ee=D.fragments[l.sn-1-D.startSN],Ne=l.sn===D.startSN,Ke=!ee||l.cc>ee.cc;if(r.independent!==!1){const{startPTS:Je,endPTS:Lt,startDTS:jt,endDTS:vn}=f;if(c)c.elementaryStreams[f.type]={startPTS:Je,endPTS:Lt,startDTS:jt,endDTS:vn};else if(f.firstKeyFrame&&f.independent&&i.id===1&&!Ke&&(this.couldBacktrack=!0),f.dropped&&f.independent){const Gt=this.getMainFwdBufferInfo(),cn=(Gt?Gt.end:this.getLoadPosition())+this.config.maxBufferHole,ln=f.firstKeyFramePTS?f.firstKeyFramePTS:Je;if(!Ne&&cn<ln-this.config.maxBufferHole&&!Ke){this.backtrack(l);return}else Ke&&(l.gap=!0);l.setElementaryStreamInfo(f.type,l.start,Lt,l.start,vn,!0)}else Ne&&Je-(D.appliedTimelineOffset||0)>ba&&(l.gap=!0);l.setElementaryStreamInfo(f.type,Je,Lt,jt,vn),this.backtrackFragment&&(this.backtrackFragment=l),this.bufferFragmentData(f,l,c,i,Ne||Ke)}else if(Ne||Ke)l.gap=!0;else{this.backtrack(l);return}}if(ne){const{startPTS:ee,endPTS:Ne,startDTS:Ke,endDTS:Je}=ne;c&&(c.elementaryStreams[O.AUDIO]={startPTS:ee,endPTS:Ne,startDTS:Ke,endDTS:Je}),l.setElementaryStreamInfo(O.AUDIO,ee,Ne,Ke,Je),this.bufferFragmentData(ne,l,c,i)}if(D&&x!=null&&x.samples.length){const ee={id:t,frag:l,details:D,samples:x.samples};n.trigger(d.FRAG_PARSING_METADATA,ee)}if(D&&m){const ee={id:t,frag:l,details:D,samples:m.samples};n.trigger(d.FRAG_PARSING_USERDATA,ee)}}logMuxedErr(e){this.warn(`${Qe(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==wn.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){const u=e.audioCodec;let f=nt(i.codec,u);f==="mp4a"&&(f="mp4a.40.5");const m=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){f&&(f.indexOf("mp4a.40.5")!==-1?f="mp4a.40.2":f="mp4a.40.5");const x=i.metadata;x&&"channelCount"in x&&(x.channelCount||1)!==1&&m.indexOf("firefox")===-1&&(f="mp4a.40.5")}f&&f.indexOf("mp4a.40.5")!==-1&&m.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(f="mp4a.40.2",this.log(`Android: force audio codec to ${f}`)),u&&u!==f&&this.log(`Swapping manifest audio codec "${u}" for "${f}"`),i.levelCodec=f,i.id=te.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${f||""}/${u||""}/${i.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=te.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 m=t[u].initSegment;m!=null&&m.byteLength&&this.hls.trigger(d.BUFFER_APPENDING,{type:u,data:m,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,te.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=wn.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(Cn.isBuffered(e,n)?t=this.getAppendedFrag(n):Cn.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 h(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(h(t)){const n=this.getLevelDetails(),r=this.currentFrag||(n?pn(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 Kd extends q{constructor(e,t){super("key-loader",t),this.config=void 0,this.keyIdToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyIdToKeyInfo){const r=this.keyIdToKeyInfo[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.keyIdToKeyInfo){const t=this.keyIdToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyIdToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyIdToKeyInfo){const t=this.keyIdToKeyInfo[e].loader;t&&t.destroy()}this.keyIdToKeyInfo={}}createKeyLoadError(e,t=B.KEY_LOAD_ERROR,n,r,i){return new Yt({type:ae.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})}loadClear(e,t,n){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(t.length)for(let r=0,i=t.length;r<i;r++){const s=t[r];if(e.cc<=s.cc&&(!Qe(e)||!Qe(s)||e.sn<s.sn)||!n&&r==i-1)return this.emeController.selectKeySystemFormat(s).then(l=>{if(!this.emeController)return;s.setKeyFormat(l);const c=Fr(l);if(c)return this.emeController.getKeySystemAccess([c])})}if(this.config.requireKeySystemAccessOnStart){const r=$r(this.config);if(r.length)return this.emeController.getKeySystemAccess(r)}}return null}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 (emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`);return Promise.reject(this.createKeyLoadError(e,B.KEY_LOAD_ERROR,u))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,B.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const l=so(i);let c=this.keyIdToKeyInfo[l];if((n=c)!=null&&n.decryptdata.key)return i.key=c.decryptdata.key,Promise.resolve({frag:e,keyInfo:c});if(this.emeController&&(r=c)!=null&&r.keyLoadPromise)switch(this.emeController.getKeyStatus(c.decryptdata)){case"usable":case"usable-in-future":return c.keyLoadPromise.then(f=>{const{keyInfo:m}=f;return i.key=m.decryptdata.key,{frag:e,keyInfo:m}})}switch(this.log(`${this.keyIdToKeyInfo[l]?"Rel":"L"}oading${i.keyId?" keyId: "+U(i.keyId):""} URI: ${i.uri} from ${e.type} ${e.level}`),c=this.keyIdToKeyInfo[l]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return i.keyFormat==="identity"?this.loadKeyHTTP(c,e):this.loadKeyEME(c,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(c,e);default:return Promise.reject(this.createKeyLoadError(e,B.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){var r;if(!e.decryptdata.keyId&&(r=t.initSegment)!=null&&r.data){const s=tt(t.initSegment.data);if(s.length){const l=s[0];l.some(c=>c!==0)&&(this.log(`Using keyId found in init segment ${U(l)}`),e.decryptdata.keyId=l,yi.setKeyIdForUri(e.decryptdata.uri,l))}}const i=this.emeController.loadKey(n);return(e.keyLoadPromise=i.then(s=>(e.mediaKeySessionContext=s,n))).catch(s=>{throw e.keyLoadPromise=null,"data"in s&&(s.data.frag=t),s})}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},m={onSuccess:(x,T,D,ne)=>{const{frag:ee,keyInfo:Ne}=D,Ke=so(Ne.decryptdata);if(!ee.decryptdata||Ne!==this.keyIdToKeyInfo[Ke])return l(this.createKeyLoadError(ee,B.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),ne));Ne.decryptdata.key=ee.decryptdata.key=new Uint8Array(x.data),ee.keyLoader=null,Ne.loader=null,s({frag:ee,keyInfo:Ne})},onError:(x,T,D,ne)=>{this.resetLoader(T),l(this.createKeyLoadError(t,B.KEY_LOAD_ERROR,new Error(`HTTP Error ${x.code} loading key ${x.text}`),D,b({url:c.url,data:void 0},x)))},onTimeout:(x,T,D)=>{this.resetLoader(T),l(this.createKeyLoadError(t,B.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),D))},onAbort:(x,T,D)=>{this.resetLoader(T),l(this.createKeyLoadError(t,B.INTERNAL_ABORTED,new Error("key loading aborted"),D))}};i.load(c,f,m)})}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null);const s=so(n.decryptdata)||r;delete this.keyIdToKeyInfo[s],i&&i.destroy()}}function so(a){if(a.keyFormat!==yr.FAIRPLAY){const e=a.keyId;if(e)return U(e)}return a.uri}function Dl(a){const{type:e}=a;switch(e){case _e.AUDIO_TRACK:return te.AUDIO;case _e.SUBTITLE_TRACK:return te.SUBTITLE;default:return te.MAIN}}function ao(a,e){let t=a.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class zd{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:_e.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:_e.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:_e.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:_e.SUBTITLE_TRACK,url:i,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(e,t){const n=this.loaders[_e.LEVEL];if(n){const r=n.context;r&&!t.levels.some(i=>i===r.levelOrTrack)&&(n.abort(),delete this.loaders[_e.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===_e.MANIFEST?i=n.manifestLoadPolicy.default:i=p({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),h((t=e.deliveryDirectives)==null?void 0:t.part)){let u;if(e.type===_e.LEVEL&&e.level!==null?u=this.hls.levels[e.level].details:e.type===_e.AUDIO_TRACK&&e.id!==null?u=this.hls.audioTracks[e.id].details:e.type===_e.SUBTITLE_TRACK&&e.id!==null&&(u=this.hls.subtitleTracks[e.id].details),u){const f=u.partTarget,m=u.targetduration;if(f&&m){const x=Math.max(f*3,m*.8)*1e3;i=p({},i,{maxTimeToFirstByteMs:Math.min(x,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(x,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,m,x)=>{const T=this.getInternalLoader(m);this.resetInternalLoader(m.type);const D=u.data;f.parsing.start=performance.now(),ci.isMediaPlaylist(D)||m.type!==_e.MANIFEST?this.handleTrackOrLevelPlaylist(u,f,m,x||null,T):this.handleMasterPlaylist(u,f,m,x)},onError:(u,f,m,x)=>{this.handleNetworkError(f,m,!1,u,x)},onTimeout:(u,f,m)=>{this.handleNetworkError(f,m,!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=ao(e,n),c=ci.parseMasterPlaylist(s,l);if(c.playlistParsingError){t.parsing.end=performance.now(),this.handleManifestParsingError(e,n,c.playlistParsingError,r,t);return}const{contentSteering:u,levels:f,sessionData:m,sessionKeys:x,startTimeOffset:T,variableList:D}=c;this.variableList=D,f.forEach(Ke=>{const{unknownCodecs:Je}=Ke;if(Je){const{preferManagedMediaSource:Lt}=this.hls.config;let{audioCodec:jt,videoCodec:vn}=Ke;for(let Gt=Je.length;Gt--;){const cn=Je[Gt];ge(cn,"audio",Lt)?(Ke.audioCodec=jt=jt?`${jt},${cn}`:cn,Bt.audio[jt.substring(0,4)]=2,Je.splice(Gt,1)):ge(cn,"video",Lt)&&(Ke.videoCodec=vn=vn?`${vn},${cn}`:cn,Bt.video[vn.substring(0,4)]=2,Je.splice(Gt,1))}}});const{AUDIO:ne=[],SUBTITLES:ee,"CLOSED-CAPTIONS":Ne}=ci.parseMasterPlaylistMedia(s,l,c);ne.length&&!ne.some(Je=>!Je.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"),ne.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new wr({}),bitrate:0,url:""})),i.trigger(d.MANIFEST_LOADED,{levels:f,audioTracks:ne,subtitles:ee,captions:Ne,contentSteering:u,url:l,stats:t,networkDetails:r,sessionData:m,sessionKeys:x,startTimeOffset:T,variableList:D})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:l,level:c,type:u}=n,f=ao(e,n),m=h(c)?c:h(l)?l:0,x=Dl(n),T=ci.parseLevelPlaylist(e.data,f,m,x,0,this.variableList);if(u===_e.MANIFEST){const D={attrs:new wr({}),bitrate:0,details:T,name:"",url:f};T.requestScheduled=t.loading.start+Yr(T,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=T,this.handlePlaylistLoaded(T,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(d.ERROR,{type:ae.NETWORK_ERROR,details:B.MANIFEST_PARSING_ERROR,fatal:t.type===_e.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===_e.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===_e.AUDIO_TRACK||e.type===_e.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let c=B.UNKNOWN,u=!1;const f=this.getInternalLoader(e);switch(e.type){case _e.MANIFEST:c=n?B.MANIFEST_LOAD_TIMEOUT:B.MANIFEST_LOAD_ERROR,u=!0;break;case _e.LEVEL:c=n?B.LEVEL_LOAD_TIMEOUT:B.LEVEL_LOAD_ERROR,u=!1;break;case _e.AUDIO_TRACK:c=n?B.AUDIO_TRACK_LOAD_TIMEOUT:B.AUDIO_TRACK_LOAD_ERROR,u=!1;break;case _e.SUBTITLE_TRACK:c=n?B.SUBTITLE_TRACK_LOAD_TIMEOUT:B.SUBTITLE_LOAD_ERROR,u=!1;break}f&&this.resetInternalLoader(e.type);const m={type:ae.NETWORK_ERROR,details:c,fatal:u,url:e.url,loader:f,context:e,error:l,networkDetails:t,stats:i};if(r){const x=(t==null?void 0:t.url)||e.url;m.response=b({url:x,data:void 0},r)}this.hls.trigger(d.ERROR,m)}handlePlaylistLoaded(e,t,n,r,i,s){const l=this.hls,{type:c,level:u,levelOrTrack:f,id:m,groupId:x,deliveryDirectives:T}=r,D=ao(t,r),ne=Dl(r);let ee=typeof r.level=="number"&&ne===te.MAIN?u:void 0;const Ne=e.playlistParsingError;if(Ne){if(this.hls.logger.warn(`${Ne} ${e.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(d.ERROR,{type:ae.NETWORK_ERROR,details:B.LEVEL_PARSING_ERROR,fatal:!1,url:D,error:Ne,reason:Ne.message,response:t,context:r,level:ee,parent:ne,networkDetails:i,stats:n});return}e.playlistParsingError=null}if(!e.fragments.length){const Ke=e.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(d.ERROR,{type:ae.NETWORK_ERROR,details:B.LEVEL_EMPTY_ERROR,fatal:!1,url:D,error:Ke,reason:Ke.message,response:t,context:r,level:ee,parent:ne,networkDetails:i,stats:n});return}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),c){case _e.MANIFEST:case _e.LEVEL:if(ee){if(!f)ee=0;else if(f!==l.levels[ee]){const Ke=l.levels.indexOf(f);Ke>-1&&(ee=Ke)}}l.trigger(d.LEVEL_LOADED,{details:e,levelInfo:f||l.levels[0],level:ee||0,id:m||0,stats:n,networkDetails:i,deliveryDirectives:T,withoutMultiVariant:c===_e.MANIFEST});break;case _e.AUDIO_TRACK:l.trigger(d.AUDIO_TRACK_LOADED,{details:e,track:f,id:m||0,groupId:x||"",stats:n,networkDetails:i,deliveryDirectives:T});break;case _e.SUBTITLE_TRACK:l.trigger(d.SUBTITLE_TRACK_LOADED,{details:e,track:f,id:m||0,groupId:x||"",stats:n,networkDetails:i,deliveryDirectives:T});break}}}class _s{static get version(){return ps}static isMSESupported(){return Tl()}static isSupported(){return Fd()}static getMediaSource(){return oe()}static get Events(){return d}static get MetadataSchema(){return Di}static get ErrorTypes(){return ae}static get ErrorDetails(){return B}static get DefaultConfig(){return _s.defaultConfig?_s.defaultConfig:Ad}static set DefaultConfig(e){_s.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 ks,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=re(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=Td(_s.DefaultConfig,e,t);this.userConfig=e,n.progressive&&Dd(n,t);const{abrController:r,bufferController:i,capLevelController:s,errorController:l,fpsController:c}=n,u=new l(this),f=this.abrController=new r(this),m=new Kt(this),x=n.interstitialsController,T=x?this.interstitialsController=new x(this,_s):null,D=this.bufferController=new i(this,m),ne=this.capLevelController=new s(this),ee=new c(this),Ne=new zd(this),Ke=n.contentSteeringController,Je=Ke?new Ke(this):null,Lt=this.levelController=new Od(this,Je),jt=new Nd(this),vn=new Kd(this.config,this.logger),Gt=this.streamController=new Zd(this,m,vn),cn=this.gapController=new kd(this,m);ne.setStreamController(Gt),ee.setStreamController(Gt);const ln=[Ne,Lt,Gt];T&&ln.splice(1,0,T),Je&&ln.splice(1,0,Je),this.networkControllers=ln;const Jt=[f,D,cn,ne,ee,jt,m];this.audioTrackController=this.createController(n.audioTrackController,ln);const In=n.audioStreamController;In&&ln.push(this.audioStreamController=new In(this,m,vn)),this.subtitleTrackController=this.createController(n.subtitleTrackController,ln);const nr=n.subtitleStreamController;nr&&ln.push(this.subtititleStreamController=new nr(this,m,vn)),this.createController(n.timelineController,Jt),vn.emeController=this.emeController=this.createController(n.emeController,Jt),this.cmcdController=this.createController(n.cmcdController,Jt),this.latencyController=this.createController(Md,Jt),this.coreComponents=Jt,ln.push(u);const fr=u.onErrorOut;typeof fr=="function"&&this.on(d.ERROR,fr,u),this.on(d.MANIFEST_LOADED,Ne.onManifestLoaded,Ne)}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:ae.OTHER_ERROR,details:B.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:ae.OTHER_ERROR,details:B.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=y.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={[te.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[te.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[te.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=kc()),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){Ot(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=nn(t);return kt(e,n,navigator.mediaCapabilities)}}_s.defaultConfig=void 0},16722:function(Pn,Xt,_){"use strict";_.d(Xt,{Z:function(){return te}});const h=o=>typeof o=="object"&&o!=null&&o.nodeType===1,ue=(o,g)=>(!g||o!=="hidden")&&o!=="visible"&&o!=="clip",z=(o,g)=>{if(o.clientHeight<o.scrollHeight||o.clientWidth<o.scrollWidth){const A=getComputedStyle(o,null);return ue(A.overflowY,g)||ue(A.overflowX,g)||(p=>{const E=(b=>{if(!b.ownerDocument||!b.ownerDocument.defaultView)return null;try{return b.ownerDocument.defaultView.frameElement}catch(L){return null}})(p);return!!E&&(E.clientHeight<p.scrollHeight||E.clientWidth<p.scrollWidth)})(o)}return!1},ae=(o,g,A,p,E,b,L,V)=>b<o&&L>g||b>o&&L<g?0:b<=o&&V<=A||L>=g&&V>=A?b-o-p:L>g&&V<A||b<o&&V>A?L-g+E:0,B=o=>{const g=o.parentElement;return g==null?o.getRootNode().host||null:g},d=(o,g)=>{var A,p,E,b;if(typeof document=="undefined")return[];const{scrollMode:L,block:V,inline:q,boundary:le,skipOverflowHiddenElements:F}=g,H=typeof le=="function"?le:rt=>rt!==le;if(!h(o))throw new TypeError("Invalid target");const R=document.scrollingElement||document.documentElement,w=[];let Q=o;for(;h(Q)&&H(Q);){if(Q=B(Q),Q===R){w.push(Q);break}Q!=null&&Q===document.body&&z(Q)&&!z(document.documentElement)||Q!=null&&z(Q,F)&&w.push(Q)}const re=(p=(A=window.visualViewport)==null?void 0:A.width)!=null?p:innerWidth,$=(b=(E=window.visualViewport)==null?void 0:E.height)!=null?b:innerHeight,{scrollX:oe,scrollY:ve}=window,{height:he,width:ot,top:U,right:C,bottom:P,left:G}=o.getBoundingClientRect(),{top:ie,right:X,bottom:y,left:v}=(rt=>{const Ct=window.getComputedStyle(rt);return{top:parseFloat(Ct.scrollMarginTop)||0,right:parseFloat(Ct.scrollMarginRight)||0,bottom:parseFloat(Ct.scrollMarginBottom)||0,left:parseFloat(Ct.scrollMarginLeft)||0}})(o);let O=V==="start"||V==="nearest"?U-ie:V==="end"?P+y:U+he/2-ie+y,me=q==="center"?G+ot/2-v+X:q==="end"?C+X:G-v;const Qe=[];for(let rt=0;rt<w.length;rt++){const Ct=w[rt],{height:Rt,width:Vt,top:Qt,right:Ve,bottom:$t,left:It}=Ct.getBoundingClientRect();if(L==="if-needed"&&U>=0&&G>=0&&P<=$&&C<=re&&(Ct===R&&!z(Ct)||U>=Qt&&P<=$t&&G>=It&&C<=Ve))return Qe;const sn=getComputedStyle(Ct),qe=parseInt(sn.borderLeftWidth,10),ht=parseInt(sn.borderTopWidth,10),Oe=parseInt(sn.borderRightWidth,10),we=parseInt(sn.borderBottomWidth,10);let j=0,ze=0;const Xe="offsetWidth"in Ct?Ct.offsetWidth-Ct.clientWidth-qe-Oe:0,J="offsetHeight"in Ct?Ct.offsetHeight-Ct.clientHeight-ht-we:0,M="offsetWidth"in Ct?Ct.offsetWidth===0?0:Vt/Ct.offsetWidth:0,Se="offsetHeight"in Ct?Ct.offsetHeight===0?0:Rt/Ct.offsetHeight:0;if(R===Ct)j=V==="start"?O:V==="end"?O-$:V==="nearest"?ae(ve,ve+$,$,ht,we,ve+O,ve+O+he,he):O-$/2,ze=q==="start"?me:q==="center"?me-re/2:q==="end"?me-re:ae(oe,oe+re,re,qe,Oe,oe+me,oe+me+ot,ot),j=Math.max(0,j+ve),ze=Math.max(0,ze+oe);else{j=V==="start"?O-Qt-ht:V==="end"?O-$t+we+J:V==="nearest"?ae(Qt,$t,Rt,ht,we+J,O,O+he,he):O-(Qt+Rt/2)+J/2,ze=q==="start"?me-It-qe:q==="center"?me-(It+Vt/2)+Xe/2:q==="end"?me-Ve+Oe+Xe:ae(It,Ve,Vt,qe,Oe+Xe,me,me+ot,ot);const{scrollLeft:be,scrollTop:W}=Ct;j=Se===0?0:Math.max(0,Math.min(W+j/Se,Ct.scrollHeight-Rt/Se+J)),ze=M===0?0:Math.max(0,Math.min(be+ze/M,Ct.scrollWidth-Vt/M+Xe)),O+=W-j,me+=be-ze}Qe.push({el:Ct,top:j,left:ze})}return Qe},_e=o=>o===!1?{block:"end",inline:"nearest"}:(g=>g===Object(g)&&Object.keys(g).length!==0)(o)?o:{block:"start",inline:"nearest"};function te(o,g){if(!o.isConnected||!(E=>{let b=E;for(;b&&b.parentNode;){if(b.parentNode===document)return!0;b=b.parentNode instanceof ShadowRoot?b.parentNode.host:b.parentNode}return!1})(o))return;const A=(E=>{const b=window.getComputedStyle(E);return{top:parseFloat(b.scrollMarginTop)||0,right:parseFloat(b.scrollMarginRight)||0,bottom:parseFloat(b.scrollMarginBottom)||0,left:parseFloat(b.scrollMarginLeft)||0}})(o);if((E=>typeof E=="object"&&typeof E.behavior=="function")(g))return g.behavior(d(o,g));const p=typeof g=="boolean"||g==null?void 0:g.behavior;for(const{el:E,top:b,left:L}of d(o,_e(g))){const V=b-A.top+A.bottom,q=L-A.left+A.right;E.scroll({top:V,left:q,behavior:p})}}}}]);
|
|
}()); |