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

1 line
1.4 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[9647],{65030:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var i=n(33885),r=n(42978),s=n(75931),a=n(43403),o=n(92310),l=n.n(o),u=n(29301),c=n(76846),d=n(96452),h=n(6089),f=n(80402),p=n(34280),g=n(49658),m=n(59301),v=n(54476),y=n(77900),_=n(8654);function b(e){var t=e.prefixCls,n=e.align,i=e.arrow,r=e.arrowPos,s=i||{},a=s.className,o=s.content,u=r.x,c=void 0===u?0:u,d=r.y,h=void 0===d?0:d,f=m.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],v=n.points[1],y=g[0],_=g[1],b=v[0],E=v[1];y!==b&&["t","b"].includes(y)?"t"===y?p.top=0:p.bottom=0:p.top=h,_!==E&&["l","r"].includes(_)?"l"===_?p.left=0:p.right=0:p.left=c}return m.createElement("div",{ref:f,className:l()("".concat(t,"-arrow"),a),style:p},o)}function E(e){var t=e.prefixCls,n=e.open,i=e.zIndex,r=e.mask,s=e.motion;return r?m.createElement(y.default,(0,v.Z)({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return m.createElement("div",{style:{zIndex:i},className:l()("".concat(t,"-mask"),n)})})):null}var w=m.memo((function(e){return e.children}),(function(e,t){return t.cache}));var x=m.forwardRef((function(e,t){var n=e.popup,s=e.className,a=e.prefixCls,o=e.style,c=e.target,d=e.onVisibleChanged,h=e.open,f=e.keepDom,g=e.fresh,x=e.onClick,k=e.mask,S=e.arrow,C=e.arrowPos,A=e.align,T=e.motion,D=e.maskMotion,L=e.forceRender,R=e.getPopupContainer,I=e.autoDestroy,N=e.portal,M=e.zIndex,P=e.onMouseEnter,O=e.onMouseLeave,F=e.onPointerEnter,B=e.onPointerDownCapture,Z=e.ready,j=e.offsetX,U=e.offsetY,K=e.offsetR,z=e.offsetB,G=e.onAlign,H=e.onPrepare,V=e.stretch,W=e.targetWidth,Y=e.targetHeight,q="function"==typeof n?n():n,X=h||f,Q=(null==R?void 0:R.length)>0,J=m.useState(!R||!Q),$=(0,r.Z)(J,2),ee=$[0],te=$[1];if((0,p.Z)((function(){!ee&&Q&&c&&te(!0)}),[ee,Q,c]),!ee)return null;var ne="auto",ie={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(Z||!h){var re,se=A.points,ae=A.dynamicInset||(null===(re=A._experimental)||void 0===re?void 0:re.dynamicInset),oe=ae&&"r"===se[0][1],le=ae&&"b"===se[0][0];oe?(ie.right=K,ie.left=ne):(ie.left=j,ie.right=ne),le?(ie.bottom=z,ie.top=ne):(ie.top=U,ie.bottom=ne)}var ue={};return V&&(V.includes("height")&&Y?ue.height=Y:V.includes("minHeight")&&Y&&(ue.minHeight=Y),V.includes("width")&&W?ue.width=W:V.includes("minWidth")&&W&&(ue.minWidth=W)),h||(ue.pointerEvents="none"),m.createElement(N,{open:L||X,getContainer:R&&function(){return R(c)},autoDestroy:I},m.createElement(E,{prefixCls:a,open:h,zIndex:M,mask:k,motion:D}),m.createElement(u.Z,{onResize:G,disabled:!h},(function(e){return m.createElement(y.default,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:L,leavedClassName:"".concat(a,"-hidden")},T,{onAppearPrepare:H,onEnterPrepare:H,visible:h,onVisibleChanged:function(e){var t;null==T||null===(t=T.onVisibleChanged)||void 0===t||t.call(T,e),d(e)}}),(function(n,r){var u=n.className,c=n.style,d=l()(a,u,s);return m.createElement("div",{ref:(0,_.sQ)(e,t,r),className:d,style:(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({"--arrow-x":"".concat(C.x||0,"px"),"--arrow-y":"".concat(C.y||0,"px")},ie),ue),c),{},{boxSizing:"border-box",zIndex:M},o),onMouseEnter:P,onMouseLeave:O,onPointerEnter:F,onClick:x,onPointerDownCapture:B},S&&m.createElement(b,{prefixCls:a,arrow:S,arrowPos:C,align:A}),m.createElement(w,{cache:!h&&!g},q))}))})))}));var k=m.forwardRef((function(e,t){var n=e.children,i=e.getTriggerDOMNode,r=(0,_.Yr)(n),s=m.useCallback((function(e){(0,_.mH)(t,i?i(e):e)}),[i]),a=(0,_.x1)(s,(0,_.C4)(n));return r?m.cloneElement(n,{ref:a}):n})),S=m.createContext(null);function C(e){return e?Array.isArray(e)?e:[e]:[]}function A(e,t,n,i){return m.useMemo((function(){var r=C(null!=n?n:t),s=C(null!=i?i:t),a=new Set(r),o=new Set(s);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),o.has("hover")&&(o.delete("hover"),o.add("click"))),[a,o]}),[e,t,n,i])}var T=n(29194);function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function L(e,t,n,i){for(var r=n.points,s=Object.keys(e),a=0;a<s.length;a+=1){var o,l=s[a];if(D(null===(o=e[l])||void 0===o?void 0:o.points,r,i))return"".concat(t,"-placement-").concat(l)}return""}function R(e,t,n,i){return t||(n?{motionName:"".concat(e,"-").concat(n)}:i?{motionName:i}:null)}function I(e){return e.ownerDocument.defaultView}function N(e){for(var t=[],n=null==e?void 0:e.parentElement,i=["hidden","scroll","clip","auto"];n;){var r=I(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some((function(e){return i.includes(e)}))&&t.push(n),n=n.parentElement}return t}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function P(e){return M(parseFloat(e),0)}function O(e,t){var n=(0,i.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=I(e).getComputedStyle(e),i=t.overflow,r=t.overflowClipMargin,s=t.borderTopWidth,a=t.borderBottomWidth,o=t.borderLeftWidth,l=t.borderRightWidth,u=e.getBoundingClientRect(),c=e.offsetHeight,d=e.clientHeight,h=e.offsetWidth,f=e.clientWidth,p=P(s),g=P(a),m=P(o),v=P(l),y=M(Math.round(u.width/h*1e3)/1e3),_=M(Math.round(u.height/c*1e3)/1e3),b=(h-f-m-v)*y,E=(c-d-p-g)*_,w=p*_,x=g*_,k=m*y,S=v*y,C=0,A=0;if("clip"===i){var T=P(r);C=T*y,A=T*_}var D=u.x+k-C,L=u.y+w-A,R=D+u.width+2*C-k-S-b,N=L+u.height+2*A-w-x-E;n.left=Math.max(n.left,D),n.top=Math.max(n.top,L),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,N)}})),n}function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),i=n.match(/^(.*)\%$/);return i?e*(parseFloat(i[1])/100):parseFloat(n)}function B(e,t){var n=t||[],i=(0,r.Z)(n,2),s=i[0],a=i[1];return[F(e.width,s),F(e.height,a)]}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function j(e,t){var n,i=t[0],r=t[1];return n="t"===i?e.y:"b"===i?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function U(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,i){return i===t?n[e]||"c":e})).join("")}function K(e,t,n,s,a,o,l){var u=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[s]||{}}),d=(0,r.Z)(u,2),f=d[0],g=d[1],v=m.useRef(0),y=m.useMemo((function(){return t?N(t):[]}),[t]),_=m.useRef({});e||(_.current={});var b=(0,h.Z)((function(){if(t&&n&&e){var u,d,h,f,p,m=t,v=m.ownerDocument,b=I(m),E=b.getComputedStyle(m).position,w=m.style.left,x=m.style.top,k=m.style.right,S=m.style.bottom,C=m.style.overflow,A=(0,i.Z)((0,i.Z)({},a[s]),o),D=v.createElement("div");if(null===(u=m.parentElement)||void 0===u||u.appendChild(D),D.style.left="".concat(m.offsetLeft,"px"),D.style.top="".concat(m.offsetTop,"px"),D.style.position=E,D.style.height="".concat(m.offsetHeight,"px"),D.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(n))p={x:n[0],y:n[1],width:0,height:0};else{var L,R,N=n.getBoundingClientRect();N.x=null!==(L=N.x)&&void 0!==L?L:N.left,N.y=null!==(R=N.y)&&void 0!==R?R:N.top,p={x:N.x,y:N.y,width:N.width,height:N.height}}var P=m.getBoundingClientRect(),F=b.getComputedStyle(m),K=F.height,z=F.width;P.x=null!==(d=P.x)&&void 0!==d?d:P.left,P.y=null!==(h=P.y)&&void 0!==h?h:P.top;var G=v.documentElement,H=G.clientWidth,V=G.clientHeight,W=G.scrollWidth,Y=G.scrollHeight,q=G.scrollTop,X=G.scrollLeft,Q=P.height,J=P.width,$=p.height,ee=p.width,te={left:0,top:0,right:H,bottom:V},ne={left:-X,top:-q,right:W-X,bottom:Y-q},ie=A.htmlRegion,re="visible",se="visibleFirst";"scroll"!==ie&&ie!==se&&(ie=re);var ae=ie===se,oe=O(ne,y),le=O(te,y),ue=ie===re?le:oe,ce=ae?le:ue;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var de=m.getBoundingClientRect();m.style.left=w,m.style.top=x,m.style.right=k,m.style.bottom=S,m.style.overflow=C,null===(f=m.parentElement)||void 0===f||f.removeChild(D);var he=M(Math.round(J/parseFloat(z)*1e3)/1e3),fe=M(Math.round(Q/parseFloat(K)*1e3)/1e3);if(0===he||0===fe||(0,c.Sh)(n)&&!(0,T.Z)(n))return;var pe=A.offset,ge=A.targetOffset,me=B(P,pe),ve=(0,r.Z)(me,2),ye=ve[0],_e=ve[1],be=B(p,ge),Ee=(0,r.Z)(be,2),we=Ee[0],xe=Ee[1];p.x-=we,p.y-=xe;var ke=A.points||[],Se=(0,r.Z)(ke,2),Ce=Se[0],Ae=Z(Se[1]),Te=Z(Ce),De=j(p,Ae),Le=j(P,Te),Re=(0,i.Z)({},A),Ie=De.x-Le.x+ye,Ne=De.y-Le.y+_e;function Ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ue,i=P.x+e,r=P.y+t,s=i+J,a=r+Q,o=Math.max(i,n.left),l=Math.max(r,n.top),u=Math.min(s,n.right),c=Math.min(a,n.bottom);return Math.max(0,(u-o)*(c-l))}var Me,Pe,Oe,Fe,Be=Ct(Ie,Ne),Ze=Ct(Ie,Ne,le),je=j(p,["t","l"]),Ue=j(P,["t","l"]),Ke=j(p,["b","r"]),ze=j(P,["b","r"]),Ge=A.overflow||{},He=Ge.adjustX,Ve=Ge.adjustY,We=Ge.shiftX,Ye=Ge.shiftY,qe=function(e){return"boolean"==typeof e?e:e>=0};function At(){Me=P.y+Ne,Pe=Me+Q,Oe=P.x+Ie,Fe=Oe+J}At();var Xe=qe(Ve),Qe=Te[0]===Ae[0];if(Xe&&"t"===Te[0]&&(Pe>ce.bottom||_.current.bt)){var Je=Ne;Qe?Je-=Q-$:Je=je.y-ze.y-_e;var $e=Ct(Ie,Je),et=Ct(Ie,Je,le);$e>Be||$e===Be&&(!ae||et>=Ze)?(_.current.bt=!0,Ne=Je,_e=-_e,Re.points=[U(Te,0),U(Ae,0)]):_.current.bt=!1}if(Xe&&"b"===Te[0]&&(Me<ce.top||_.current.tb)){var tt=Ne;Qe?tt+=Q-$:tt=Ke.y-Ue.y-_e;var nt=Ct(Ie,tt),it=Ct(Ie,tt,le);nt>Be||nt===Be&&(!ae||it>=Ze)?(_.current.tb=!0,Ne=tt,_e=-_e,Re.points=[U(Te,0),U(Ae,0)]):_.current.tb=!1}var rt=qe(He),st=Te[1]===Ae[1];if(rt&&"l"===Te[1]&&(Fe>ce.right||_.current.rl)){var at=Ie;st?at-=J-ee:at=je.x-ze.x-ye;var ot=Ct(at,Ne),lt=Ct(at,Ne,le);ot>Be||ot===Be&&(!ae||lt>=Ze)?(_.current.rl=!0,Ie=at,ye=-ye,Re.points=[U(Te,1),U(Ae,1)]):_.current.rl=!1}if(rt&&"r"===Te[1]&&(Oe<ce.left||_.current.lr)){var ut=Ie;st?ut+=J-ee:ut=Ke.x-Ue.x-ye;var ct=Ct(ut,Ne),dt=Ct(ut,Ne,le);ct>Be||ct===Be&&(!ae||dt>=Ze)?(_.current.lr=!0,Ie=ut,ye=-ye,Re.points=[U(Te,1),U(Ae,1)]):_.current.lr=!1}At();var ht=!0===We?0:We;"number"==typeof ht&&(Oe<le.left&&(Ie-=Oe-le.left-ye,p.x+ee<le.left+ht&&(Ie+=p.x-le.left+ee-ht)),Fe>le.right&&(Ie-=Fe-le.right-ye,p.x>le.right-ht&&(Ie+=p.x-le.right+ht)));var ft=!0===Ye?0:Ye;"number"==typeof ft&&(Me<le.top&&(Ne-=Me-le.top-_e,p.y+$<le.top+ft&&(Ne+=p.y-le.top+$-ft)),Pe>le.bottom&&(Ne-=Pe-le.bottom-_e,p.y>le.bottom-ft&&(Ne+=p.y-le.bottom+ft)));var pt=P.x+Ie,gt=pt+J,mt=P.y+Ne,vt=mt+Q,yt=p.x,_t=yt+ee,bt=p.y,Et=bt+$,wt=(Math.max(pt,yt)+Math.min(gt,_t))/2-pt,xt=(Math.max(mt,bt)+Math.min(vt,Et))/2-mt;null==l||l(t,Re);var kt=de.right-P.x-(Ie+P.width),St=de.bottom-P.y-(Ne+P.height);1===he&&(Ie=Math.round(Ie),kt=Math.round(kt)),1===fe&&(Ne=Math.round(Ne),St=Math.round(St)),g({ready:!0,offsetX:Ie/he,offsetY:Ne/fe,offsetR:kt/he,offsetB:St/fe,arrowX:wt/he,arrowY:xt/fe,scaleX:he,scaleY:fe,align:Re})}})),E=function(){g((function(e){return(0,i.Z)((0,i.Z)({},e),{},{ready:!1})}))};return(0,p.Z)(E,[s]),(0,p.Z)((function(){e||E()}),[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,function(){v.current+=1;var e=v.current;Promise.resolve().then((function(){v.current===e&&b()}))}]}var z=n(94480);function G(e,t,n,i,r){(0,p.Z)((function(){if(e&&t&&n){var s=n,a=N(t),o=N(s),l=I(s),u=new Set([l].concat((0,z.Z)(a),(0,z.Z)(o)));function c(){i(),r()}return u.forEach((function(e){e.addEventListener("scroll",c,{passive:!0})})),l.addEventListener("resize",c,{passive:!0}),i(),function(){u.forEach((function(e){e.removeEventListener("scroll",c),l.removeEventListener("resize",c)}))}}}),[e,t,n])}n(48736);function H(e,t,n,i,r,s,a,o){var l=m.useRef(e);l.current=e;var u=m.useRef(!1);return m.useEffect((function(){if(t&&i&&(!r||s)){var e=function(){u.current=!1},c=function(e){var t;!l.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||o(!1)},h=I(i);h.addEventListener("pointerdown",e,!0),h.addEventListener("mousedown",c,!0),h.addEventListener("contextmenu",c,!0);var f=(0,d.A)(n);return f&&(f.addEventListener("mousedown",c,!0),f.addEventListener("contextmenu",c,!0)),function(){h.removeEventListener("pointerdown",e,!0),h.removeEventListener("mousedown",c,!0),h.removeEventListener("contextmenu",c,!0),f&&(f.removeEventListener("mousedown",c,!0),f.removeEventListener("contextmenu",c,!0))}}}),[t,n,i,r,s]),function(){u.current=!0}}var V=["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"];var W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z,t=m.forwardRef((function(t,n){var a=t.prefixCls,o=void 0===a?"rc-trigger-popup":a,v=t.children,y=t.action,_=void 0===y?"hover":y,b=t.showAction,E=t.hideAction,w=t.popupVisible,C=t.defaultPopupVisible,T=t.onPopupVisibleChange,D=t.afterPopupVisibleChange,I=t.mouseEnterDelay,N=t.mouseLeaveDelay,M=void 0===N?.1:N,P=t.focusDelay,O=t.blurDelay,F=t.mask,B=t.maskClosable,Z=void 0===B||B,j=t.getPopupContainer,U=t.forceRender,z=t.autoDestroy,W=t.destroyPopupOnHide,Y=t.popup,q=t.popupClassName,X=t.popupStyle,Q=t.popupPlacement,J=t.builtinPlacements,$=void 0===J?{}:J,ee=t.popupAlign,te=t.zIndex,ne=t.stretch,ie=t.getPopupClassNameFromAlign,re=t.fresh,se=t.alignPoint,ae=t.onPopupClick,oe=t.onPopupAlign,le=t.arrow,ue=t.popupMotion,ce=t.maskMotion,de=t.popupTransitionName,he=t.popupAnimation,fe=t.maskTransitionName,pe=t.maskAnimation,ge=t.className,me=t.getTriggerDOMNode,ve=(0,s.Z)(t,V),ye=z||W||!1,_e=m.useState(!1),be=(0,r.Z)(_e,2),Ee=be[0],we=be[1];(0,p.Z)((function(){we((0,g.Z)())}),[]);var xe=m.useRef({}),ke=m.useContext(S),Se=m.useMemo((function(){return{registerSubPopup:function(e,t){xe.current[e]=t,null==ke||ke.registerSubPopup(e,t)}}}),[ke]),Ce=(0,f.Z)(),Ae=m.useState(null),Te=(0,r.Z)(Ae,2),De=Te[0],Le=Te[1],Re=m.useRef(null),Ie=(0,h.Z)((function(e){Re.current=e,(0,c.Sh)(e)&&De!==e&&Le(e),null==ke||ke.registerSubPopup(Ce,e)})),Ne=m.useState(null),Me=(0,r.Z)(Ne,2),Pe=Me[0],Oe=Me[1],Fe=m.useRef(null),Be=(0,h.Z)((function(e){(0,c.Sh)(e)&&Pe!==e&&(Oe(e),Fe.current=e)})),Ze=m.Children.only(v),je=(null==Ze?void 0:Ze.props)||{},Ue={},Ke=(0,h.Z)((function(e){var t,n,i=Pe;return(null==i?void 0:i.contains(e))||(null===(t=(0,d.A)(i))||void 0===t?void 0:t.host)===e||e===i||(null==De?void 0:De.contains(e))||(null===(n=(0,d.A)(De))||void 0===n?void 0:n.host)===e||e===De||Object.values(xe.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),ze=R(o,ue,he,de),Ge=R(o,ce,pe,fe),He=m.useState(C||!1),Ve=(0,r.Z)(He,2),We=Ve[0],Ye=Ve[1],qe=null!=w?w:We,Xe=(0,h.Z)((function(e){void 0===w&&Ye(e)}));(0,p.Z)((function(){Ye(w||!1)}),[w]);var Qe=m.useRef(qe);Qe.current=qe;var Je=m.useRef([]);Je.current=[];var $e=(0,h.Z)((function(e){var t;Xe(e),(null!==(t=Je.current[Je.current.length-1])&&void 0!==t?t:qe)!==e&&(Je.current.push(e),null==T||T(e))})),et=m.useRef(),tt=function(){clearTimeout(et.current)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;tt(),0===t?$e(e):et.current=setTimeout((function(){$e(e)}),1e3*t)};m.useEffect((function(){return tt}),[]);var it=m.useState(!1),rt=(0,r.Z)(it,2),st=rt[0],at=rt[1];(0,p.Z)((function(e){e&&!qe||at(!0)}),[qe]);var ot=m.useState(null),lt=(0,r.Z)(ot,2),ut=lt[0],ct=lt[1],dt=m.useState(null),ht=(0,r.Z)(dt,2),ft=ht[0],pt=ht[1],gt=function(e){pt([e.clientX,e.clientY])},mt=K(qe,De,se&&null!==ft?ft:Pe,Q,$,ee,oe),vt=(0,r.Z)(mt,11),yt=vt[0],_t=vt[1],bt=vt[2],Et=vt[3],wt=vt[4],xt=vt[5],kt=vt[6],St=vt[7],Ct=vt[8],At=vt[9],Tt=vt[10],Dt=A(Ee,_,b,E),Lt=(0,r.Z)(Dt,2),Rt=Lt[0],It=Lt[1],Nt=Rt.has("click"),Mt=It.has("click")||It.has("contextMenu"),Pt=(0,h.Z)((function(){st||Tt()}));G(qe,Pe,De,Pt,(function(){Qe.current&&se&&Mt&&nt(!1)})),(0,p.Z)((function(){Pt()}),[ft,Q]),(0,p.Z)((function(){!qe||null!=$&&$[Q]||Pt()}),[JSON.stringify(ee)]);var Ot=m.useMemo((function(){var e=L($,o,At,se);return l()(e,null==ie?void 0:ie(At))}),[At,ie,$,o,se]);m.useImperativeHandle(n,(function(){return{nativeElement:Fe.current,popupElement:Re.current,forceAlign:Pt}}));var Ft=m.useState(0),Bt=(0,r.Z)(Ft,2),Zt=Bt[0],jt=Bt[1],Ut=m.useState(0),Kt=(0,r.Z)(Ut,2),zt=Kt[0],Gt=Kt[1],Ht=function(){if(ne&&Pe){var e=Pe.getBoundingClientRect();jt(e.width),Gt(e.height)}};function Vt(e,t,n,i){Ue[e]=function(r){var s;null==i||i(r),nt(t,n);for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];null===(s=je[e])||void 0===s||s.call.apply(s,[je,r].concat(o))}}(0,p.Z)((function(){ut&&(Tt(),ut(),ct(null))}),[ut]),(Nt||Mt)&&(Ue.onClick=function(e){var t;Qe.current&&Mt?nt(!1):!Qe.current&&Nt&&(gt(e),nt(!0));for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];null===(t=je.onClick)||void 0===t||t.call.apply(t,[je,e].concat(i))});var Wt,Yt,qt=H(qe,Mt,Pe,De,F,Z,Ke,nt),Xt=Rt.has("hover"),Qt=It.has("hover");Xt&&(Vt("onMouseEnter",!0,I,(function(e){gt(e)})),Vt("onPointerEnter",!0,I,(function(e){gt(e)})),Wt=function(e){(qe||st)&&null!=De&&De.contains(e.target)&&nt(!0,I)},se&&(Ue.onMouseMove=function(e){var t;null===(t=je.onMouseMove)||void 0===t||t.call(je,e)})),Qt&&(Vt("onMouseLeave",!1,M),Vt("onPointerLeave",!1,M),Yt=function(){nt(!1,M)}),Rt.has("focus")&&Vt("onFocus",!0,P),It.has("focus")&&Vt("onBlur",!1,O),Rt.has("contextMenu")&&(Ue.onContextMenu=function(e){var t;Qe.current&&It.has("contextMenu")?nt(!1):(gt(e),nt(!0)),e.preventDefault();for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];null===(t=je.onContextMenu)||void 0===t||t.call.apply(t,[je,e].concat(i))}),ge&&(Ue.className=l()(je.className,ge));var Jt=m.useRef(!1);Jt.current||(Jt.current=U||qe||st);var $t=(0,i.Z)((0,i.Z)({},je),Ue),en={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ve[e]&&(en[e]=function(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];null===(t=$t[e])||void 0===t||t.call.apply(t,[$t].concat(i)),ve[e].apply(ve,i)})}));var tn=m.cloneElement(Ze,(0,i.Z)((0,i.Z)({},$t),en)),nn={x:xt,y:kt},rn=le?(0,i.Z)({},!0!==le?le:{}):null;return m.createElement(m.Fragment,null,m.createElement(u.Z,{disabled:!qe,ref:Be,onResize:function(){Ht(),Pt()}},m.createElement(k,{getTriggerDOMNode:me},tn)),Jt.current&&m.createElement(S.Provider,{value:Se},m.createElement(x,{portal:e,ref:Ie,prefixCls:o,popup:Y,className:l()(q,Ot),style:X,target:Pe,onMouseEnter:Wt,onMouseLeave:Yt,onPointerEnter:Wt,zIndex:te,open:qe,keepDom:st,fresh:re,onClick:ae,onPointerDownCapture:qt,mask:F,motion:ze,maskMotion:Ge,onVisibleChanged:function(e){at(!1),Tt(),null==D||D(e)},onPrepare:function(){return new Promise((function(e){Ht(),ct((function(){return e}))}))},forceRender:U,autoDestroy:ye,getPopupContainer:j,align:At,arrow:rn,arrowPos:nn,ready:yt,offsetX:_t,offsetY:bt,offsetR:Et,offsetB:wt,onAlign:Pt,stretch:ne,targetWidth:Zt/St,targetHeight:zt/Ct})))}));return t}(a.Z)},11691:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(37639),r="text___FxbAX",s="wrap___UlBQ1",a="contact____pUDq",o="img___BapAv",l=n(32637),u=n(37712),c=function(e){var t=e.type,n=e.style,c=(0,u.jsxs)("div",{className:s,onClick:function(e){e.preventDefault(),e.stopPropagation()},children:[(0,u.jsxs)("p",{children:["shixun"===t||"paths"===t?"当前实践项目是高消耗类型的实验。":"当前试卷包含高消耗类型的实验。",(0,u.jsx)("br",{}),"根据平台使用规则,需要授权才能使用。","paths"===t?"发送到课堂":"发布","使用之前,请先联系平台管理员获取授权码。"]}),(0,u.jsxs)("div",{className:a,children:[(0,u.jsx)("div",{className:o,children:(0,u.jsx)("img",{src:l,width:"124px",height:"124px"})}),(0,u.jsx)("div",{className:"tc font14 mt10",style:{color:"#777A93"},children:"扫一扫,获取授权码"})]})]});return(0,u.jsx)(i.Z,{content:c,children:(0,u.jsx)("span",{className:r,style:n,children:"高消耗"})})}},13767:function(e,t,n){"use strict";var i=n(82242),r=n.n(i),s=(n(59301),n(93314)),a=n(99571),o=n(37712);t.Z=function(e){var t=e.img,n=e.buttonProps,i=void 0===n?{}:n,l=e.styles,u=void 0===l?{}:l,c=e.customText,d=e.ButtonText,h=e.ButtonClick,f=e.Buttonclass,p=e.ButtonTwo,g=e.imgStyles,m=e.loading,v=void 0!==m&&m,y=e.className,_=void 0===y?"":y;return(0,o.jsxs)("section",{className:"tc animated fadeIn ".concat(_),style:r()({color:"#999",margin:"100px auto",visibility:v?"hidden":"visible"},u),children:[(0,o.jsx)("img",{src:t||s,style:r()(r()({},g),{},{pointerEvents:"none",userSelect:"none"})}),(0,o.jsx)("p",{className:"mt20 font14",children:c||"暂时还没有相关数据哦!"}),d&&(0,o.jsx)(a.ZP,r()(r()({className:f,onClick:h},i),{},{children:d})),p&&p]})}},32831:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var i=n(82242),r=n.n(i),s=n(7557),a=n.n(s),o=n(41498),l=n.n(o),u=n(79800),c=n.n(u),d=n(59301),h={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},f=n(99571),p=n(70557),g=n(92068),m=n(25399),v=n(83287),y=n(94280),_=n(13767),b=n(91689),E=n(8814),w=n(37712),x=function(e){var t,n,i,s,o,u,x=e.editOffice,k=void 0===x?"view":x,S=e.data,C=e.issaver,A=e.onSaver,T=(e.theme,e.type),D=e.filename,L=e.monacoEditor,R=e.className,I=e.style,N=e.close,M=e.onClose,P=e.hasMask,O=e.disabledDownload,F=e.onImgDimensions,B=e.showNodata,Z=e.recordInfo,j=(0,d.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),U=c()(j,2),K=(U[0],U[1],(0,d.useState)("")),z=c()(K,2),G=(z[0],z[1]),H=(0,d.useState)(),V=c()(H,2),W=V[0],Y=V[1],q="build"===window.ENV?"/react/build":"",X=location.host.startsWith("localhost")?b.Z.PROXY_SERVER:b.Z.API_SERVER,Q=(0,d.useRef)();null!==(t=S)&&void 0!==t&&t.startsWith("/api")&&"txt"!==T&&(S=b.Z.API_SERVER+S);function J(e){return $.apply(this,arguments)}function $(){return($=l()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"pdfdata"===t.data.type&&(A(t.data.data),window.removeEventListener("message",J,!1)),console.log("mess---:",t.data);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}D&&L&&(L.filename=D),(0,d.useEffect)((function(){var e,t=null===(e=document.cookie)||void 0===e||null===(e=e.replace(/\s/g,""))||void 0===e?void 0:e.split(";");null==t||t.map((function(e){var t=e.split("=");"_educoder_session"===t[0]&&G(t[1])}))}),[]),(0,d.useEffect)((function(){var e;"office"===T&&(S.indexOf("bigfilescdn.")>-1||S.indexOf("bigfiles1")>-1?Y({url:S,fileType:(e=S,e.substring(e.lastIndexOf("/")+1).split(".").pop()),model:S.indexOf("model=edit")?"edit":"view"}):ee())}),[T,S]);var ee=function(){var e=l()(a()().mark((function e(){var t,n,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("data:",S),t=S,S.startsWith("http")||(t=location.origin+t),n=new URL(t).pathname.split("/").pop(),e.next=6,(0,y.gJ)({attachment_id:n});case 6:(i=e.sent).url=X+i.url,Y(i);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),te=function(){S.startsWith("http")||S.startsWith("blob:")?ne():(0,v.Sv)(D||"educoder",S,D)},ne=function(){Z&&(0,E.fc)({id:null==Z?void 0:Z.id,watch_type:1,course_id:null==Z?void 0:Z.course_id}),(0,v.Nd)(D||"educoder",decodeURIComponent(S))};return(0,w.jsxs)("div",{style:r()({},I||{}),className:"".concat(P&&h.bgBlack," ").concat(T?h.wrp:"hide"),children:[N&&(0,w.jsxs)("div",{className:h.close,ref:Q,children:[!!F&&(0,w.jsx)(m.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return Q.current},children:(0,w.jsx)("span",{onClick:function(){M(),F()},children:(0,w.jsx)("i",{className:"icon-yulanpizhu"})})}),!O&&(0,w.jsx)(m.Z,{title:"点击下载此文件",getPopupContainer:function(){return Q.current},children:(0,w.jsx)("span",{onClick:ne,children:(0,w.jsx)("i",{className:"icon-quxiaozhiding"})})}),C&&(0,w.jsx)(m.Z,{title:"保存pdf并退出",getPopupContainer:function(){return Q.current},children:(0,w.jsx)("span",{className:"",onClick:function(){var e=document.getElementById("pdfiframe");window.addEventListener("message",J,!1),setTimeout((function(){e.contentWindow.postMessage("getData","*")}),300)},children:(0,w.jsx)("i",{className:"icon-baocun"})})}),(0,w.jsx)(m.Z,{title:"关闭",getPopupContainer:function(){return Q.current},children:(0,w.jsx)("span",{className:"",onClick:function(){M()},children:(0,w.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,w.jsx)("div",{className:"".concat(h[R]," ").concat(R," ").concat(h.monaco," ").concat("txt"===T?"show":"hide"),children:"txt"===T&&(0,w.jsx)(w.Fragment,{children:(0,w.jsx)(g.ZP,r()({},L))})}),"audio"===T&&(0,w.jsx)("audio",{src:"".concat((null===(n=S)||void 0===n?void 0:n.indexOf("http://"))>-1||(null===(i=S)||void 0===i?void 0:i.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(S),autoPlay:!0}),"video"===T&&(0,w.jsx)(w.Fragment,{children:(null===(s=S)||void 0===s?void 0:s.indexOf("http"))>-1?(0,w.jsx)("video",{controls:!0,src:"".concat(S),autoPlay:!0}):(0,w.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(S),autoPlay:!0})}),"office"===T&&W&&(0,w.jsx)("iframe",{src:"".concat(q,"/office.html?key=").concat(W.key,"&url=").concat(btoa(W.url),"&callbackUrl=").concat(X+(W.callbackUrl||""),"&fileType=").concat(W.fileType,"&title=").concat(W.title||"","&model=").concat(k,"&officeServer=").concat(b.Z.ONLYOFFICE,"&disabledDownload=").concat(!!O)}),"html"===T&&(0,w.jsx)("iframe",{src:S+"&disposition=inline"}),"pdf"===T&&(0,w.jsx)("iframe",{id:"pdfiframe",src:"".concat(q,"/js/pdfview/index.html?filename=").concat(D||"educoder.pdf","&url=").concat(encodeURIComponent(S),"&disabledDownload=").concat(!!O,"&model=").concat(k)}),"image"===T&&(0,w.jsx)("img",{src:"".concat((null===(o=S)||void 0===o?void 0:o.indexOf("http://"))>-1||(null===(u=S)||void 0===u?void 0:u.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(S)}),("other"===T||"download"===T)&&(0,w.jsx)(w.Fragment,{children:B?(0,w.jsx)(_.Z,{customText:"当前文件不支持预览,可点击下载查看",ButtonTwo:(0,w.jsx)(f.ZP,{icon:(0,w.jsx)("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:O,children:"下载"})}):(0,w.jsxs)(f.ZP,{type:"primary",size:"middle",onClick:te,disabled:O,children:[(0,w.jsx)(p.Z,{}),"点击下载"]})}),"flowChart"===T&&(0,w.jsx)("div",{className:"embed",children:(0,w.jsx)("iframe",{src:"/drawio/src/main/webapp/viewer.html?id=".concat(S||"","&gapi=0&od=0&db=0&gh=0&gl=0"),width:"100%",height:"100%",frameBorder:"0"})})]})}},74889:function(e,t,n){"use strict";n.d(t,{z:function(){return T},Z:function(){return D}});var i=n(82242),r=n.n(i),s=n(37205),a=n.n(s),o=n(91232),l=n.n(o),u=n(79800),c=n.n(u),d=n(59301),h=(n(88831),n(75359)),f=(n(64018),n(44523)),p=n(91689),g=n(83287),m=n(15342),v=n(77736),y=n(99571),_=n(1012),b=n(32831),E=n(37712),w=function(e){var t=e.html,n=(0,d.useRef)(null),i=(0,d.useRef)(null);return(0,d.useEffect)((function(){var e=n.current.attachShadow({mode:"open"});i.current=document.createElement("div"),i.current.className="markdown-body",i.current.innerHTML=t,e.appendChild(i.current);var r=document.createElement("style");return r.textContent='.markdown-body p {\n margin: 0 0 16px 0 !important;\n line-height: 28px;\n white-space: pre-wrap;\n }\n\n ol,\n ul,\n li {\n list-style-type: none\n }\n\n ol,\n ul,\n dl {\n margin-bottom: 0px;\n }\n\n .markdown-body {\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n color: #333;\n overflow: hidden;\n font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "华文细黑", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "宋体", Heiti, "黑体", sans-serif;\n word-break: break-word;\n font-size: 16px;\n line-height: 1.6;\n white-space: normal;\n word-wrap: break-word;\n position: relative;\n }\n\n .markdown-body ul>li {\n list-style-type: disc;\n }\n\n .markdown-body ol>li {\n list-style-type: decimal;\n }\n\n .markdown-body a {\n background: transparent;\n }\n\n .markdown-body a:active,\n .markdown-body a:hover {\n outline: 0;\n }\n\n .markdown-body strong {\n font-weight: bold;\n }\n\n .markdown-body h1 {\n font-size: 2em;\n margin: 0.67em 0;\n }\n\n .markdown-body img {\n border: 0;\n }\n\n .markdown-body hr {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n height: 0;\n }\n\n .markdown-body pre {\n overflow: auto;\n }\n\n .markdown-body code,\n .markdown-body kbd,\n .markdown-body pre {\n font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;\n font-size: 1em;\n }\n\n .markdown-body input {\n color: inherit;\n font: inherit;\n margin: 0;\n }\n\n .markdown-body html input[disabled] {\n cursor: default;\n }\n\n .markdown-body input {\n line-height: normal;\n }\n\n .markdown-body input[type="checkbox"] {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n padding: 0;\n }\n\n .markdown-body table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n\n .markdown-body td,\n .markdown-body th {\n padding: 0;\n }\n\n .markdown-body * {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n\n .markdown-body input {\n font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";\n }\n\n .markdown-body a {\n color: #4183c4;\n text-decoration: none;\n }\n\n .markdown-body a:hover,\n .markdown-body a:active {\n text-decoration: underline;\n }\n\n .markdown-body hr {\n height: 0;\n margin: 15px 0;\n overflow: hidden;\n background: transparent;\n border: 0;\n border-bottom: 1px solid #ddd;\n }\n\n .markdown-body hr:before {\n display: table;\n content: "";\n }\n\n .markdown-body hr:after {\n display: table;\n clear: both;\n content: "";\n }\n\n .markdown-body h1,\n .markdown-body h2,\n .markdown-body h3,\n .markdown-body h4,\n .markdown-body h5,\n .markdown-body h6 {\n margin-top: 15px;\n margin-bottom: 15px;\n line-height: 1.1;\n }\n\n .markdown-body h1 {\n font-size: 30px;\n }\n\n .markdown-body h2 {\n font-size: 21px;\n }\n\n .markdown-body h3 {\n font-size: 16px;\n }\n\n .markdown-body h4 {\n font-size: 14px;\n }\n\n .markdown-body h5 {\n font-size: 12px;\n }\n\n .markdown-body h6 {\n font-size: 11px;\n }\n\n .markdown-body blockquote {\n margin: 0;\n }\n\n .markdown-body ul,\n .markdown-body ol {\n padding: 0;\n margin-top: 0;\n margin-bottom: 0;\n }\n\n ul.linenums,\n ol.linenums {\n padding: 16px 0 0 56px !important;\n }\n\n .markdown-body ul,\n .markdown-body ol {\n padding-left: 2em;\n }\n\n\n .markdown-body ol ol,\n .markdown-body ul ol {\n list-style-type: lower-roman;\n }\n\n .markdown-body ul ul ol,\n .markdown-body ul ol ol,\n .markdown-body ol ul ol,\n .markdown-body ol ol ol {\n list-style-type: lower-alpha;\n }\n\n .markdown-body dd {\n margin-left: 0;\n }\n\n .markdown-body code {\n font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;\n font-size: 12px;\n }\n\n .markdown-body pre {\n margin-top: 0;\n margin-bottom: 0;\n font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;\n }\n\n .markdown-body .octicon {\n font: normal normal 16px octicons-anchor;\n line-height: 1;\n display: inline-block;\n text-decoration: none;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .markdown-body .octicon-link:before {\n content: \'\f05c\';\n }\n\n .markdown-body>*:first-child {\n margin-top: 0 !important;\n }\n\n .markdown-body>*:last-child {\n margin-bottom: 0 !important;\n }\n\n .markdown-body .anchor {\n position: absolute;\n top: 0;\n left: 0;\n display: block;\n padding-right: 6px;\n padding-left: 30px;\n margin-left: -30px;\n }\n\n .markdown-body .anchor:focus {\n outline: none;\n }\n\n .markdown-body h1,\n .markdown-body h2,\n .markdown-body h3,\n .markdown-body h4,\n .markdown-body h5,\n .markdown-body h6 {\n position: relative;\n margin-top: 1em;\n margin-bottom: 16px;\n font-weight: bold;\n line-height: 1.4;\n }\n\n .markdown-body h1 .octicon-link,\n .markdown-body h2 .octicon-link,\n .markdown-body h3 .octicon-link,\n .markdown-body h4 .octicon-link,\n .markdown-body h5 .octicon-link,\n .markdown-body h6 .octicon-link {\n display: none;\n color: #000;\n vertical-align: middle;\n }\n\n .markdown-body h1:hover .anchor,\n .markdown-body h2:hover .anchor,\n .markdown-body h3:hover .anchor,\n .markdown-body h4:hover .anchor,\n .markdown-body h5:hover .anchor,\n .markdown-body h6:hover .anchor {\n padding-left: 8px;\n margin-left: -30px;\n text-decoration: none;\n }\n\n .markdown-body h1:hover .anchor .octicon-link,\n .markdown-body h2:hover .anchor .octicon-link,\n .markdown-body h3:hover .anchor .octicon-link,\n .markdown-body h4:hover .anchor .octicon-link,\n .markdown-body h5:hover .anchor .octicon-link,\n .markdown-body h6:hover .anchor .octicon-link {\n display: inline-block;\n }\n\n .markdown-body h1 {\n padding-bottom: 0.3em;\n font-size: 2.25em;\n line-height: 1.2;\n border-bottom: 1px solid #eee;\n }\n\n .markdown-body h1 .anchor {\n line-height: 1;\n }\n\n .markdown-body h2 {\n padding-bottom: 0.3em;\n font-size: 1.75em;\n line-height: 1.225;\n border-bottom: 1px solid #eee;\n }\n\n .markdown-body h2 .anchor {\n line-height: 1;\n }\n\n .markdown-body h3 {\n font-size: 1.5em;\n line-height: 1.43;\n }\n\n .markdown-body h3 .anchor {\n line-height: 1.2;\n }\n\n .markdown-body h4 {\n font-size: 1.25em;\n }\n\n .markdown-body h4 .anchor {\n line-height: 1.2;\n }\n\n .markdown-body h5 {\n font-size: 1em;\n }\n\n .markdown-body h5 .anchor {\n line-height: 1.1;\n }\n\n .markdown-body h6 {\n font-size: 1em;\n color: #777;\n }\n\n .markdown-body h6 .anchor {\n line-height: 1.1;\n }\n\n .markdown-body p,\n .markdown-body blockquote,\n .markdown-body ul,\n .markdown-body ol,\n .markdown-body dl,\n .markdown-body table,\n .markdown-body pre {\n margin-top: 0;\n margin-bottom: 16px;\n }\n\n .markdown-body ul ul,\n .markdown-body ul ol,\n .markdown-body ol ol,\n .markdown-body ol ul {\n margin-top: 0;\n margin-bottom: 0;\n }\n\n .markdown-body li>p {\n margin-top: 16px;\n }\n\n .markdown-body dl {\n padding: 0;\n }\n\n .markdown-body dl dt {\n padding: 0;\n margin-top: 16px;\n font-size: 1em;\n font-style: italic;\n font-weight: bold;\n }\n\n .markdown-body dl dd {\n padding: 0 16px;\n margin-bottom: 16px;\n }\n\n .markdown-body blockquote {\n padding: 0 15px;\n color: #777;\n border-left: 4px solid #ddd;\n }\n\n .markdown-body blockquote> :first-child {\n margin-top: 0;\n }\n\n .markdown-body blockquote> :last-child {\n margin-bottom: 0;\n }\n\n .markdown-body table {\n display: block;\n width: 100%;\n overflow: auto;\n word-break: normal;\n word-break: keep-all;\n }\n\n .markdown-body table th {\n font-weight: bold;\n text-align: revert;\n }\n\n .markdown-body table th,\n .markdown-body table td {\n padding: 6px 13px;\n border: 1px solid #ddd;\n }\n\n .markdown-body table tr {\n background-color: #fff;\n border-top: 1px solid #ccc;\n }\n\n .markdown-body table tr:nth-child(2n) {\n background-color: #f8f8f8;\n }\n\n .markdown-body img {\n max-width: 100%;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n\n .markdown-body code {\n padding: 0;\n padding-top: 0.2em;\n padding-bottom: 0.2em;\n margin: 0;\n font-size: 85%;\n background-color: rgba(0, 0, 0, 0.04);\n border-radius: 3px;\n }\n\n .markdown-body code:has(.katex) {\n background-color: transparent;\n }\n\n .markdown-body code:before,\n .markdown-body code:after {\n letter-spacing: -0.2em;\n content: "\\00a0";\n }\n\n .markdown-body pre>code {\n padding: 0;\n margin: 0;\n font-size: 100%;\n word-break: normal;\n white-space: pre;\n background: transparent;\n border: 0;\n }\n\n .markdown-body .highlight {\n margin-bottom: 16px;\n }\n\n .markdown-body .highlight pre,\n .markdown-body pre {\n padding: 16px;\n overflow: auto;\n font-size: 85%;\n line-height: 1.45;\n background-color: #f7f7f7;\n border-radius: 3px;\n }\n\n .markdown-body .highlight pre {\n margin-bottom: 0;\n word-break: normal;\n }\n\n .markdown-body pre {\n word-wrap: normal;\n }\n\n .markdown-body pre code {\n display: inline;\n max-width: initial;\n padding: 0;\n margin: 0;\n overflow: initial;\n line-height: inherit;\n word-wrap: normal;\n background-color: transparent;\n border: 0;\n }\n\n .markdown-body pre code:before,\n .markdown-body pre code:after {\n content: normal;\n }\n\n .markdown-body kbd {\n display: inline-block;\n padding: 3px 5px;\n font-size: 11px;\n line-height: 10px;\n color: #555;\n vertical-align: middle;\n background-color: #fcfcfc;\n border: solid 1px #ccc;\n border-bottom-color: #bbb;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 #bbb;\n }\n\n .markdown-body .pl-c {\n color: #969896;\n }\n\n .markdown-body .pl-c1,\n .markdown-body .pl-mdh,\n .markdown-body .pl-mm,\n .markdown-body .pl-mp,\n .markdown-body .pl-mr,\n .markdown-body .pl-s1 .pl-v,\n .markdown-body .pl-s3,\n .markdown-body .pl-sc,\n .markdown-body .pl-sv {\n color: #0086b3;\n }\n\n .markdown-body .pl-e,\n .markdown-body .pl-en {\n color: #795da3;\n }\n\n .markdown-body .pl-s1 .pl-s2,\n .markdown-body .pl-smi,\n .markdown-body .pl-smp,\n .markdown-body .pl-stj,\n .markdown-body .pl-vo,\n .markdown-body .pl-vpf {\n color: #333;\n }\n\n .markdown-body .pl-ent {\n color: #63a35c;\n }\n\n .markdown-body .pl-k,\n .markdown-body .pl-s,\n .markdown-body .pl-st {\n color: #a71d5d;\n }\n\n .markdown-body .pl-pds,\n .markdown-body .pl-s1,\n .markdown-body .pl-s1 .pl-pse .pl-s2,\n .markdown-body .pl-sr,\n .markdown-body .pl-sr .pl-cce,\n .markdown-body .pl-sr .pl-sra,\n .markdown-body .pl-sr .pl-sre,\n .markdown-body .pl-src {\n color: #df5000;\n }\n\n .markdown-body .pl-mo,\n .markdown-body .pl-v {\n color: #1d3e81;\n }\n\n .markdown-body .pl-id {\n color: #b52a1d;\n }\n\n .markdown-body .pl-ii {\n background-color: #b52a1d;\n color: #f8f8f8;\n }\n\n .markdown-body .pl-sr .pl-cce {\n color: #63a35c;\n font-weight: bold;\n }\n\n .markdown-body .pl-ml {\n color: #693a17;\n }\n\n .markdown-body .pl-mh,\n .markdown-body .pl-mh .pl-en,\n .markdown-body .pl-ms {\n color: #1d3e81;\n font-weight: bold;\n }\n\n .markdown-body .pl-mq {\n color: #008080;\n }\n\n .markdown-body .pl-mi {\n color: #333;\n font-style: italic;\n }\n\n .markdown-body .pl-mb {\n color: #333;\n font-weight: bold;\n }\n\n .markdown-body .pl-md,\n .markdown-body .pl-mdhf {\n background-color: #ffecec;\n color: #bd2c00;\n }\n\n .markdown-body .pl-mdht,\n .markdown-body .pl-mi1 {\n background-color: #eaffea;\n color: #55a532;\n }\n\n .markdown-body .pl-mdr {\n color: #795da3;\n font-weight: bold;\n }\n\n .markdown-body kbd {\n display: inline-block;\n padding: 3px 5px;\n font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;\n line-height: 10px;\n color: #555;\n vertical-align: middle;\n background-color: #fcfcfc;\n border: solid 1px #ccc;\n border-bottom-color: #bbb;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 #bbb;\n }\n\n .markdown-body .task-list-item {\n list-style-type: none;\n }\n\n .markdown-body .task-list-item+.task-list-item {\n margin-top: 3px;\n }\n\n .markdown-body .task-list-item input {\n float: left;\n margin: 0.3em 0 0.25em -1.6em;\n vertical-align: middle;\n }\n\n .markdown-body :checked+.radio-label {\n z-index: 1;\n position: relative;\n border-color: #4183c4;\n }\n\n\n /*! Pretty printing styles. Used with prettify.js. */\n /* SPAN elements with the classes below are added by prettyprint. */\n .pln {\n color: #000\n }\n\n /* plain text */\n\n @media screen {\n .str {\n color: #080\n }\n\n /* string content */\n .kwd {\n color: #008\n }\n\n /* a keyword */\n .com {\n color: #800\n }\n\n /* a comment */\n .typ {\n color: #606\n }\n\n /* a type name */\n .lit {\n color: #066\n }\n\n /* a literal value */\n /* punctuation, lisp open bracket, lisp close bracket */\n .pun,\n .opn,\n .clo {\n color: #660\n }\n\n .tag {\n color: #008\n }\n\n /* a markup tag name */\n .atn {\n color: #606\n }\n\n /* a markup attribute name */\n .atv {\n color: #080\n }\n\n /* a markup attribute value */\n .dec,\n .var {\n color: #606\n }\n\n /* a declaration; a variable name */\n .fun {\n color: red\n }\n\n /* a function name */\n }\n\n /* Use higher contrast and text-weight for printable form. */\n @media print,\n projection {\n .str {\n color: #060\n }\n\n .kwd {\n color: #006;\n font-weight: bold\n }\n\n .com {\n color: #600;\n font-style: italic\n }\n\n .typ {\n color: #404;\n font-weight: bold\n }\n\n .lit {\n color: #044\n }\n\n .pun,\n .opn,\n .clo {\n color: #440\n }\n\n .tag {\n color: #006;\n font-weight: bold\n }\n\n .atn {\n color: #404\n }\n\n .atv {\n color: #060\n }\n }\n\n /* Put a border around prettyprinted code snippets. */\n pre.prettyprint {\n padding: 2px;\n /* border: 1px solid #888 */\n }\n\n /* Specify class=linenums on a pre to get line numbering */\n ol.linenums {\n margin-top: 0;\n margin-bottom: 0\n }\n\n /* IE indents via margin-left */\n li.L0,\n li.L1,\n li.L2,\n li.L3,\n li.L5,\n li.L6,\n li.L7,\n li.L8 {\n list-style-type: none\n }\n\n /* Alternate shading for lines */\n li.L1,\n li.L3,\n li.L5,\n li.L7,\n li.L9 {\n background: #eee\n }\n\n .markdown-body p,\n .markdown-body blockquote,\n .markdown-body ul,\n .markdown-body ol,\n .markdown-body dl,\n .markdown-body table,\n .markdown-body pre {\n margin-top: 0;\n margin-bottom: 16px;\n }',e.appendChild(r),function(){e.innerHTML=""}}),[]),(0,d.useEffect)((function(){i.current&&(i.current.innerHTML=t)}),[t]),(0,E.jsx)("div",{ref:n})};var x="mdBody___raKXb",k="button___Ch5Pc",S="previewFlowChart___vY1dq",C="@▁@",A=/<pre[^>]*>/g;var T=function(e,t){e=e||"";var n=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return t?e.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(n,(function(e,t,n,i,r,s,a){var o=t||i||s,l=n||r||a||"?";return p.Z.API_SERVER+"/api/attachments/"+o+l+"&t="+(0,g.Jn)(o,Date.now())+(e.indexOf(")")>-1?")":"&")})).replaceAll('src="(','src="').replaceAll("src='(",'src="'):e=e.replace(/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,t,n,i,r,s,a){var o=t||i||s,l=n||r||a||"?";return p.Z.API_SERVER+"/attachments/download/"+o+l+"&t="+(0,g.Jn)(o,Date.now())+(e.indexOf(")")>-1?")":"&")})).replace(n,(function(e,t,n,i,r,s,a){var o=t||i||s,l=n||r||a||"?";return p.Z.API_SERVER+"/api/attachments/"+o+l+"&t="+(0,g.Jn)(o,Date.now())+(e.indexOf(")")>-1?")":"&")})).replace(/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,t,n,i,r){var s=t||i,a=n||r||"";return'"'+p.Z.API_SERVER+"/api/attachments/"+s+a+s+a+"&t="+(0,g.Jn)(s,Date.now())})).replace(/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,t,n,i,r){var s=t||i,a=n||r||"";return"("+p.Z.API_SERVER+"/files/uploads/"+s+a+s+a+"&t="+(0,g.Jn)(s,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,"\n")},D=function(e){var t=e.value,n=void 0===t?"":t,i=e.edit,s=void 0!==i&&i,o=e.className,u=e.showTextOnly,g=e.showLines,T=e.style,D=void 0===T?{}:T,L=e.stylesPrev,R=void 0===L?{}:L,I=e.highlightKeywords,N=e.showProgramFill,M=(e.isProgramFill,e.disabledFill),P=void 0!==M&&M,O=e.programFillValue,F=e.openEditor,B=void 0===F?function(){}:F,Z=e.onFillChange,j=void 0===Z?function(e){}:Z,U=e.onFillBlur,K=void 0===U?function(){}:U,z=e.onFillFocus,G=void 0===z?function(){}:z,H=function(e){var t=new RegExp("\\b(".concat(["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"].join("|"),")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s>]*)"),"gi");return e.replace(t,"").trim()}(String(n||"")),V=(0,d.useRef)(),W=(0,d.useRef)(),Y=(0,d.useState)(""),q=c()(Y,2),X=q[0],Q=q[1],J=(0,d.useState)("office"),$=c()(J,2),ee=$[0],te=$[1],ne=(0,d.useState)([]),ie=c()(ne,2),re=ie[0],se=ie[1],ae=(0,d.useRef)("a"+(0,_.Z)()),oe={},le=function(e){return/<style[\s\S]*?>/i.test(e||"")};var ue=function(e){return!u&&le(H)?e:e.replace(/<style.*?>([\s\S]+?)<\/style>/gim,(function(e,t){var n=t.replace(/(\n|\r)/g,"").split("}"),i=[];return n.map((function(e){""!=e&&i.push(".".concat(ae.current," ").concat(e))})),"<style>".concat(i.join("}"),"</style>")}))},ce=(0,d.useMemo)((function(){try{H=H.replace(/\(\/attachments\/download\//g,"("+p.Z.API_SERVER+"/attachments/download/").replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,"("+p.Z.API_SERVER+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+p.Z.API_SERVER+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,'"'+p.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,"\n"),V.current.style.display="none"}catch(e){}if(N){var e=-1;return H=H.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,(function(t,n,i){var r;return function(e,t,n){var i=document.createElement(e===C?"input":"textarea");i.style.width="100%",i.style.height=e===C?"40px":"151px",i.rows=5,i.spellcheck=!1,i.name="edu-program-fill",i.placeholder="请输入",i.dataset.id=t;var r=Object.keys(oe).length;return oe[r]=i,'<span class="edu-program-fill-wrap '.concat(e===C?"":"show",'" style="width:').concat(e===C?"600px":"100%",'" title=').concat(n||"","><span>").concat(i.outerHTML,'<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>')}(t,++e,null==O||null===(r=O[e])||void 0===r?void 0:r.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))})),'<pre style="background:#fff;padding:4px">'.concat(ue(H||""),"</pre>")}var t=ue(H);t=(0,h.ZP)(t);var n=(0,h.ez)();H.match(/\[TOC\]/)&&(t=t.replace("<p>[TOC]</p>",(0,h.Qv)()),(0,h.Iy)()),t=t.replace(/(__special_katext_id_\d+__)/g,(function(e,t){var i=n[t],r=i.type,s=i.expression;return(0,m.renderToString)(function(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}(s)||"",{displayMode:"block"===r,throwOnError:!1,output:"html"})})),t=t.replace(/▁/g,"▁▁▁▁▁"),(0,h.AL)();var i=document.createElement("div");return i.innerHTML=t,u?i.innerText:I?(pe(i,I.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),i.innerHTML):(setTimeout((function(){return ve()}),500),i.innerHTML)}),[H,I]);(0,d.useEffect)((function(){ge.current&&ge.current.querySelectorAll(["input","textarea"]).forEach((function(e){e.oninput=de,e.onblur=he,e.onfocus=fe}))}),[re]),(0,d.useEffect)((function(){if(null!=O&&O.length)try{var e,t=ge.current.querySelectorAll(".edu-program-fill-score"),n=ge.current.querySelectorAll('[name="edu-program-fill"]'),i=l()(n.entries());try{for(i.s();!(e=i.n()).done;){var r,s,a,o=c()(e.value,2),u=o[0],d=o[1];d.value=(null==O||null===(r=O[u])||void 0===r?void 0:r.value)||"","warning"===(null==O||null===(s=O[u])||void 0===s?void 0:s.type)?d.className="program-fill-warning":"success"===(null==O||null===(a=O[u])||void 0===a?void 0:a.type)?d.className="program-fill-success":d.className=""}}catch(e){i.e(e)}finally{i.f()}var h,f=l()(t.entries());try{for(f.s();!(h=f.n()).done;){var p,g,m=c()(h.value,2),v=m[0];m[1].innerHTML=null!=O&&null!==(p=O[v])&&void 0!==p&&p.score?"".concat(null==O||null===(g=O[v])||void 0===g?void 0:g.score,"分"):""}}catch(e){f.e(e)}finally{f.f()}se(O)}catch(e){console.log(e,"error")}}),[O]);var de=function(e){re[e.target.dataset.id]=re[e.target.dataset.id]||{},re[e.target.dataset.id].value=e.target.value,se(a()(re)),j(re,e.target.dataset.id)},he=function(e){re[e.target.dataset.id]=re[e.target.dataset.id]||{},re[e.target.dataset.id].value=e.target.value,se(a()(re)),K(re,e.target.dataset.id)},fe=function(e){re[e.target.dataset.id]=re[e.target.dataset.id]||{},re[e.target.dataset.id].value=e.target.value,se(a()(re)),G(re,e.target.dataset.id)};function pe(e,t){return e.childNodes.forEach((function(e){if(e.childNodes.length>0)pe(e,t);else if("IMG"!==e.nodeName)if(e.innerHTML){var n;e.innerHTML=null===(n=e.innerHTML)||void 0===n?void 0:n.replace(new RegExp(t,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>')}else{var i=document.createElement("span");i.innerHTML=e.textContent.replace(new RegExp(t,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),e.replaceWith(i)}}))}var ge=(0,d.useRef)();function me(e){var t=e.target;if("A"===t.tagName.toUpperCase()){var n=t.getAttribute("href");if(n.indexOf("office")>-1)e.preventDefault(),Q(n),te("office");else if(n.indexOf("application/pdf")>-1)e.preventDefault(),Q(n),te("pdf");else if(n.indexOf("text/html")>-1)e.preventDefault(),Q(n),te("html");else if(n.startsWith("#")){e.preventDefault();var i=document.getElementById(n.replace("#",""));i&&i.scrollIntoView(!0)}}}h.jb.WebkitLineClamp=g,g&&(D=r()(r()({},D),h.jb));var ve=function(){var e,t=null===(e=ge.current)||void 0===e?void 0:e.querySelectorAll("video");null==t||t.forEach((function(e){if(e.oncontextmenu=function(){return!1},e.src.indexOf(".m3u8")>-1)if(e.canPlayType("application/vnd.apple.mpegurl"));else if(f.ZP.isSupported()){var t=new f.ZP;t.loadSource(e.src),t.attachMedia(e)}}))};(0,d.useEffect)((function(){if(ge.current&&ce&&ce.match(A)&&window.PR.prettyPrint(),ge.current)return ge.current.addEventListener("click",me),function(){var e;null===(e=ge.current)||void 0===e||e.removeEventListener("click",me),(0,h.AL)(),(0,h.Iy)()}}),[ce,ge.current,me]);return(0,d.useEffect)((function(){var e,t=function(e){e.preventDefault(),e.clipboardData.setData("text",window.getSelection().toString())};return null===(e=ge.current)||void 0===e||e.addEventListener("copy",t),function(){var e;null===(e=ge.current)||void 0===e||e.removeEventListener("copy",t)}}),[ge.current]),(0,E.jsxs)("div",{style:{position:"relative"},onMouseLeave:function(){V.current.style.display="none"},children:[u&&(0,E.jsx)("div",{ref:ge,className:"".concat(x," "),children:ce}),!u&&!le(ce)&&(0,E.jsx)("div",{ref:ge,style:r()({},D),onMouseOver:function(e){"IMG"===e.target.nodeName&&e.target.className.indexOf("draw-flowchart")>-1?(V.current.style.zIndex=1,V.current.style.display="flex",V.current.style.width=e.target.clientWidth+"px",V.current.style.height=e.target.clientHeight+"px",V.current.style.top=e.target.offsetTop+"px",V.current.style.left=e.target.offsetLeft+"px",e.target.id&&(W.current=e.target.id)):V.current.style.display="none"},className:"".concat(o||""," ").concat(P?"disabled-fill":""," markdown-body ").concat(x," ").concat(ae.current),dangerouslySetInnerHTML:{__html:ce}}),!u&&le(ce)&&(0,E.jsx)(w,{html:ce}),(0,E.jsx)("div",{ref:V,className:"".concat(k," ").concat(s?"":S),children:(0,E.jsx)(v.Z,{children:(0,E.jsx)(y.ZP,{onClick:function(){s?B(W.current):(Q(W.current),te("flowChart"))},children:s?"编辑":"预览"})})}),(0,E.jsx)(b.Z,{close:!0,data:X,type:null!=X&&X.length?ee:"",style:r()({},R),onClose:function(){return Q("")}})]})}},92068:function(e,t,n){"use strict";n.d(t,{SV:function(){return Q},ZP:function(){return X}});var i=n(82242),r=n.n(i),s=n(37205),a=n.n(s),o=n(91232),l=n.n(o),u=n(79800),c=n.n(u),d=n(39647),h=n.n(d),f=n(7557),p=n.n(f),g=n(41498),m=n.n(g),v=n(59301),y=n(76374),_=["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"],b={quickKey:[{label:"main",content:["public static void main(String[] args) {","\t$0","}"].join("\n")},{label:"System.out.println",content:["System.out.println($0)"].join("\n")},{label:"System.out.print",content:["System.out.print($0)"].join("\n")}],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"]},E={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}) {","\t$0","} else {","\t","}"].join("\n")},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {","\t$0","}"].join("\n")},{label:"if",content:["if () {","\t$0","}"].join("\n")},{label:"for",content:["for(int j=0 ; j<10; j++){","\t$0","}"].join("\n")},{label:"trycatch",content:["try{","\t$0","}catch(ExceptionName e){","}"].join("\n")},{label:"using namespace std;",content:["using namespace std;"].join("\n")},{label:"include <iostream>",content:["#include <iostream>"].join("\n")},{label:"include <vector>",content:["#include <vector>"].join("\n")},{label:"include <cstdio>",content:["#include <cstdio>"].join("\n")},{label:"include <cstring>",content:["#include <cstring>"].join("\n")},{label:"include <sstream>",content:["#include <sstream>"].join("\n")},{label:"include <fstream>",content:["#include <fstream>"].join("\n")},{label:"include <map>",content:["#include <map>"].join("\n")},{label:"include <string>",content:["#include <string>"].join("\n")},{label:"include <cmath>",content:["#include <cmath>"].join("\n")}]},w={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("\n")}]},x={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("\n")}]},k=n(53184),S=n.n(k),C={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"]}},A=function(e,t,n,i){e.languages.registerCompletionItemProvider(t,{provideCompletionItems:function(t,r){var s=t.getWordUntilPosition(r),o={startLineNumber:r.lineNumber,endLineNumber:r.lineNumber,startColumn:s.startColumn,endColumn:s.endColumn},l=t.getLineContent(r.lineNumber).substring(s.startColumn-2,s.endColumn),u=function(e,t,n,i){var r=t.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column});return Array.from(new Set(r.match(/\b\w{2,}\b/g)||[])).map((function(t){return{label:t,kind:e.languages.CompletionItemKind.Text,insertText:t,range:i}}))}(e,t,r,o);return{suggestions:[].concat(a()(u),a()(n.map((function(t){return{label:t,kind:e.languages.CompletionItemKind.Keyword,documentation:t,insertText:t,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:o}}))),a()(i.map((function(t){return{label:t.label,kind:e.languages.CompletionItemKind.Snippet,documentation:t.content,insertText:l.startsWith("#")?t.content.replace(/#/,""):t.content,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:o}}))))}}})},T=n(82100),D=n.n(T),L=n(29186),R=n.n(L),I=n(85573),N=n.n(I),M=function(){function e(t,n,i){var r=this;D()(this,e),this.placeholder=t,this.editor=n,this.monaco=i,n.onDidChangeModelContent((function(){return r.onDidChangeModelContent()})),this.onDidChangeModelContent()}return R()(e,[{key:"onDidChangeModelContent",value:function(){""===this.editor.getValue()?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}},{key:"getId",value:function(){return e.ID}},{key:"getDomNode",value:function(){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}},{key:"getPosition",value:function(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}},{key:"dispose",value:function(){this.editor.removeContentWidget(this)}}]),e}();N()(M,"ID","editor.widget.placeholderHint");var P=M,O=n(96236),F=n(6767),B=n(25399),Z=n(89392),j=n(70717),U=n(56102),K=n(37712),z=["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"];function G(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function H(){}var V={"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 W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;if(Array.isArray(e)){for(var n=0;n<e.length;n++){var i=V[e[n]];if(i)return i}return t[0]}return V[t]||t}var Y=null,q=function(){var e=m()(p()().mark((function e(){return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.clipboard.writeText(" ");case 3:console.log("内容已自动复制到剪贴板:"),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error("自动复制失败:",e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}(),X=function(e){var t=e.width,i=void 0===t?"100%":t,s=e.height,o=void 0===s?"100%":s,u=e.value,d=e.language,f=void 0===d?"javascript":d,g=e.style,k=void 0===g?{}:g,T=e.options,D=void 0===T?{}:T,L=e.overrideServices,R=void 0===L?{}:L,I=e.theme,N=void 0===I?"vs-dark":I,M=e.onEditBlur,V=e.isCopy,X=void 0!==V&&V,Q=e.onSave,J=e.autoHeight,$=void 0!==J&&J,ee=e.forbidCopy,te=void 0!==ee&&ee,ne=e.onChange,ie=void 0===ne?H:ne,re=e.editorDidMount,se=void 0===re?H:re,ae=e.onFocus,oe=void 0===ae?H:ae,le=e.onBreakPoint,ue=void 0===le?H:le,ce=e.breakPointValue,de=void 0===ce?[]:ce,he=e.filename,fe=void 0===he?"educoder.txt":he,pe=e.errorLine,ge=e.errorContent,me=void 0===ge?"":ge,ve=e.highlightLine,ye=e.openBreakPoint,_e=void 0!==ye&&ye,be=e.placeholder,Ee=void 0===be?"":be,we=e.showMiniMap,xe=void 0===we||we,ke=(h()(e,z),(0,v.useRef)()),Se=(0,v.useRef)({}),Ce=(0,v.useRef)(),Ae=(0,v.useRef)(),Te=(0,v.useRef)([]),De=(0,v.useRef)(!1),Le=(0,v.useRef)(),Re=(0,v.useRef)(),Ie=(0,v.useRef)(!1),Ne=(0,v.useState)(!1),Me=c()(Ne,2),Pe=Me[0],Oe=Me[1];(0,v.useEffect)((function(){var e=j.Z.subscribe("formatDocument",(function(e){var t,n=Se.current.instance;null==n||null===(t=n.getAction)||void 0===t||t.call(n,"editor.action.formatDocument").run()}));return window.updateMonacoValue=function(e){ie(e)},e}),[]),(0,v.useEffect)((function(){var e,t=Se.current.instance;(Ae.current&&clearTimeout(Ae.current),Ae.current=setTimeout((function(){!function(){var e=Se.current.instance;if(null!=u&&e&&Pe){var t=e.getModel();t&&u!==t.getValue()&&(!0,t.setValue(u),e.layout(),!1)}}()}),500),u&&null!=u&&u.length)&&(null==t||null===(e=t.updateOptions)||void 0===e||e.call(t,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(u.split(/\r\n|\r|\n/g).length))+3,5)}))}),[u,Pe,Se.current]),(0,v.useEffect)((function(){if(pe&&Se.current&&Se.current.instance){var e=Se.current.instance;e.changeViewZones((function(e){var t=document.createElement("div");t.style.padding="10px 20px",t.style.width="calc(100% - 20px)",t.className="my-error-line-wrp",t.innerHTML=me,e.addZone({afterLineNumber:pe||11,heightInLines:3,domNode:t})}));var t={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}};e.addOverlayWidget(t),e.revealPositionInCenter({lineNumber:20,column:1})}}),[pe,Se.current,Pe]);var Fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!e||""===e.trim())return!0;for(var n=Se.current.instance.getModel(),i=n.getLineTokens(t),r=!1,s=0;s<2;s++)1===i.getStandardTokenType(s)&&(r=!0);return r};function Be(e){(window.navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&83==e.keyCode&&(e.preventDefault(),Q())}(0,v.useEffect)((function(){var e,t=null===(e=Se.current)||void 0===e?void 0:e.instance;if(t&&Pe&&te){var n=t.onDidBlurEditorWidget((function(){Ie.current=!1})),i=t.onDidFocusEditorText((function(){Ie.current=!0}));return function(){n.dispose(),i.dispose()}}}),[Se.current,Pe,te]),(0,v.useEffect)((function(){var e;if(null!==(e=Se.current)&&void 0!==e&&e.instance&&Pe&&_e){var t=Se.current.instance,n=t.getModel();if(!n)return;!function(){var e,i=[],r=[],s=n.getAllDecorations(),a=l()(s);try{for(a.s();!(e=a.n()).done;){var o,u=e.value;if("highlighted-line"===u.options.className)i.push(null==u||null===(o=u.range)||void 0===o?void 0:o.startLineNumber),r.push(null==u?void 0:u.id)}}catch(e){a.e(e)}finally{a.f()}if(ve!==i[0]){n.deltaDecorations(r,[]);var c=n.getLineCount();ve&&ve<=c&&(t.deltaDecorations([],[{range:new Y.Range(ve,1,ve,n.getLineMaxColumn(ve)),options:{isWholeLine:!0,className:"highlighted-line"}}]),t.revealLineInCenter(ve))}}();var i=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=[],r=[],s=n.getAllDecorations(),a=l()(s);try{for(a.s();!(e=a.n()).done;){var o,u=e.value;if("breakpoints-select"===u.options.linesDecorationsClassName)i.push(null==u||null===(o=u.range)||void 0===o?void 0:o.startLineNumber),r.push(null==u?void 0:u.id)}}catch(e){a.e(e)}finally{a.f()}if(t)return{lines:i,ids:r};ue(i)},r=function(){var e=m()(p()().mark((function e(t){var r;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={range:new Y.Range(t,1,t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}},e.next=3,n.deltaDecorations([],[r]);case 3:i();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(){var e=m()(p()().mark((function e(r){var s,a,o,u,c;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s=[],a=t.getLineDecorations(r),o=l()(a);try{for(o.s();!(u=o.n()).done;)"breakpoints-select"===(c=u.value).options.linesDecorationsClassName&&s.push(c.id)}catch(e){o.e(e)}finally{o.f()}return e.next=6,n.deltaDecorations(s,[]);case 6:i();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a=function(e){var n,i=t.getLineDecorations(e),r=l()(i);try{for(r.s();!(n=r.n()).done;){if("breakpoints-select"===n.value.options.linesDecorationsClassName)return!0}}catch(e){r.e(e)}finally{r.f()}return!1};if(!(0,Z.isEqual)(de,i(!0).lines)){n.deltaDecorations(i(!0).ids,[]);var o=de.map((function(e){return{range:new Y.Range(e,1,e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}}));n.deltaDecorations([],o)}var u=t.onDidChangeModelContent((function(e){var o=t.getPosition();if(o){var l=o.lineNumber;clearTimeout(Re.current),Re.current=setTimeout((function(){Fe(n.getLineContent(l),l)?s(l):a(l)?(s(l),r(l)):i()}),100)}})),c=t.onMouseDown((function(e){var t;if(e.target.detail&&null!==(t=e.target)&&void 0!==t&&null!==(t=t.element)&&void 0!==t&&null!==(t=t.className)&&void 0!==t&&t.includes("line-numbers")){var i=e.target.position.lineNumber;if(Fe(n.getLineContent(i),i))return;a(i)?s(i):r(i)}})),d=function(){Te.current=t.deltaDecorations(Te.current,[])},h=t.onMouseMove((function(e){var i;if(d(),e.target.detail&&null!==(i=e.target)&&void 0!==i&&null!==(i=i.element)&&void 0!==i&&null!==(i=i.className)&&void 0!==i&&i.includes("line-numbers")){var r=e.target.position.lineNumber;if(Fe(n.getLineContent(r),r))return;!function(e){var n={range:new Y.Range(e,1,e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Te.current=t.deltaDecorations(Te.current,[n])}(r)}})),f=t.onMouseLeave((function(){d()}));return function(){u.dispose(),c.dispose(),h.dispose(),f.dispose()}}}),[Se.current,Pe,de,ve,_e,f]),(0,v.useEffect)((function(){var e;null!==(e=Se.current)&&void 0!==e&&e.instance&&_e&&Se.current.instance.setPosition({lineNumber:0,column:0})}),[ve]);var Ze=function(){if($&&Se.current.instance){var e=Se.current.instance.getContentHeight();Ye(e<o?o:e)}else Ye(o)};var je=function(e){if(Ie.current){var t=e.keyCode,n=e.ctrlKey,i=e.metaKey,r=e.target;return"paste"!==e.type&&(67!==t&&86!==t||!i&&!n)||"TEXTAREA"!==r.nodeName||(F.ZP.warning({content:decodeURIComponent("该任务关卡设置了禁止复制粘贴,请手动输入代码。"),key:"monaco-editor-tip"}),e.preventDefault()),!1}};function Ue(e,t){var n,i,r=window.URL||window.webkitURL||window,s=new Blob([t]),a=document.createElementNS("http://www.w3.org/1999/xhtml","a");a.href=r.createObjectURL(s),a.download=e,n=a,(i=document.createEvent("MouseEvents")).initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(i)}(0,v.useEffect)((function(){Ze()}),[Ze]),(0,v.useEffect)((function(){ke.current&&!Pe&&Promise.all([n.e(8909),n.e(5028)]).then(n.bind(n,71448)).then((function(e){try{Y=e,Se.current.instance=Y.editor.create(ke.current,{value:u,language:W(f),theme:N,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:xe||!1}},R);var t=Se.current.instance,n=O.BH._menuItems,i=a()(n).find((function(e){return"EditorContext"==e[0]._debugName}))[1];if(se(t,Y),setTimeout((function(){Ze(),Se.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Ue(fe||"educoder.txt",t.getValue())}})}),500),Se.current.subscription=t.onDidChangeModelContent((function(e){De.current?clearTimeout(Le.current):(Ze(),ie(t.getValue(),e)),Le.current=setTimeout((function(){De.current=!1}),500)})),window.Monaco||function(e){C.languages.forEach((function(t){e.languages.registerDocumentFormattingEditProvider(t,{provideDocumentFormattingEdits:function(e){return m()(p()().mark((function t(){var n;return p()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=S()(e.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}),t.abrupt("return",[{range:e.getFullModelRange(),text:n}]);case 2:case"end":return t.stop()}}),t)})))()}})})),A(e,"java",b.keywords,b.quickKey),A(e,"cpp",E.keywords,E.quickKey),A(e,"c",_,[]),A(e,"python",w.keywords,w.quickKey),A(e,"scala",x.keywords,x.quickKey)}(Y,W(f)),te&&(!function(e,t){var n=e._first;do{var i;t.includes(null===(i=n.element)||void 0===i||null===(i=i.command)||void 0===i?void 0:i.id)&&e._remove(n)}while(n=n.next)}(i,["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"]),ke.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",je),window.removeEventListener("paste",je),window.addEventListener("keydown",je),window.addEventListener("paste",je)),window.Monaco=Y,M&&t.onDidBlurEditorWidget((function(){M(t.getValue())})),oe&&t.onDidFocusEditorText((function(){te&&q(),oe(t.getValue())})),te){q();try{t.onDidPaste((function(e){var n=t.getSelection(),i=Se.current.pastePos||{};new Y.Range(i.startLineNumber||n.endLineNumber,i.startColumn||n.endColumn,i.endLineNumber||n.endLineNumber,i.endColumn||n.endColumn);t.executeEdits("",[{range:e.range,text:""}])}))}catch(e){}}var r=function(){var e;return ke.current&&(e=new y.Z((function(e){var t,n=l()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&Se.current.instance.layout()}}catch(e){n.e(e)}finally{n.f()}}))).observe(ke.current),e}();return Ee&&"string"==typeof Ee&&new P(Ee,t,Y),Oe(!0),function(){var e=Se.current.instance;e.dispose();var t=e.getModel();t&&t.dispose(),Se.current.subscription&&Se.current.subscription.dispose(),r.unobserve(ke.current)}}catch(e){}}))}),[]),(0,v.useEffect)((function(){if(Se.current.instance&&Pe)return document.addEventListener("keydown",Be,!1),function(){document.removeEventListener("keydown",Be)}}),[Q,Pe]),(0,v.useEffect)((function(){var e=Se.current.instance;if(e&&Pe){var t=W(f);Y.editor.setModelLanguage(e.getModel(),t)}}),[f,Pe]),(0,v.useEffect)((function(){Se.current.instance&&Pe&&Y.editor.setTheme(N)}),[N,Pe]),(0,v.useEffect)((function(){var e=Se.current.instance;Ce.current=D,e&&Pe&&(e.updateOptions(r()({},D)),setTimeout((function(){e.getModel().updateOptions(r()({},D))}),200))}),[JSON.stringify(D),Pe]),(0,v.useEffect)((function(){var e=Se.current.instance;e&&Pe&&e.layout()}),[i,o,Pe]);var Ke=(0,v.useState)(G(i)),ze=c()(Ke,2),Ge=ze[0],He=(ze[1],(0,v.useState)(G(o))),Ve=c()(He,2),We=Ve[0],Ye=Ve[1],qe=r()(r()({},k),{},{width:Ge,height:We,position:"relative"});return(0,K.jsx)("div",{className:"my-monaco-editor",ref:ke,style:qe,children:X&&(0,K.jsx)(U.CopyToClipboard,{text:u,onCopy:function(){return F.ZP.success("复制成功")},children:(0,K.jsx)(B.Z,{title:"复制代码",children:(0,K.jsxs)("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"},children:[(0,K.jsx)("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," 复制代码"]})})})})};function Q(e){var t=e.width,i=void 0===t?"100%":t,s=e.height,a=void 0===s?"100%":s,o=e.original,u=e.modified,d=e.language,h=e.options,f=void 0===h?{}:h,p=(0,v.useRef)(),g=(0,v.useState)(null),m=c()(g,2),_=m[0],b=m[1];(0,v.useEffect)((function(){return p.current&&Promise.all([n.e(8909),n.e(9404)]).then(n.bind(n,2550)).then((function(e){var t=(Y=e).editor.createDiffEditor(p.current,r()(r()({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},f),{},{wordWrap:!0}));b(t);var n=function(e){var t;return p.current&&(t=new y.Z((function(t){var n,i=l()(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;(r.target.offsetHeight>0||r.target.offsetWidth>0)&&e.layout()}}catch(e){i.e(e)}finally{i.f()}}))).observe(p.current),t}(t);return function(){t.dispose();var e=t.getModel();e&&e.dispose(),n.unobserve(p.current)}})),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}}),[]),(0,v.useEffect)((function(){_&&_.setModel({original:Y.editor.createModel(o,d),modified:Y.editor.createModel(u,d)})}),[o,u,d,_]);var E={width:G(i),height:G(a)};return(0,K.jsx)("div",{className:"my-diff-editor",ref:p,style:E})}},21411:function(e,t,n){"use strict";n.d(t,{jL:function(){return l},w9:function(){return xe},QD:function(){return it},cQ:function(){return Ee},op:function(){return Xe},O5:function(){return ht},_b:function(){return lt},t7:function(){return P},Gi:function(){return Ae},YG:function(){return Ce},qp:function(){return k},vr:function(){return st},qE:function(){return $e},Je:function(){return B},wb:function(){return se},cq:function(){return Be},tp:function(){return A}});var i=n(59301),r="banner___PoUBO",s="content___XoDjy",a="btns___Pb35j",o=n(37712),l=function(e){var t=e.dataSource,n=void 0===t?[]:t,i=e.img,l=e.imgWidth,u=void 0===l?346:l,c=e.title,d=e.sunTitle,h=e.bannerExtraContent;return(0,o.jsx)("div",{className:r,children:(0,o.jsxs)("div",{className:s,children:[(0,o.jsxs)("aside",{children:[(0,o.jsxs)("p",{children:[(0,o.jsx)("b",{children:c}),(0,o.jsx)("span",{children:d})]}),n.length>0&&(0,o.jsx)("div",{className:a,children:n.map((function(e,t){return(0,o.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,o.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA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qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},t)}))}),h]}),i&&(0,o.jsx)("img",{style:{marginTop:33,marginRight:38},src:i,width:u})]})})},u=n(79800),c=n.n(u),d="row___aXJjm",h="title___HUKL0",f="tagsWrap___XB2W3",p="action___VdHb1",g="bar___t1kKC",m="tag___V7Eft",v="name___Hk1Ip",y="num___xQpcH",_="active___XryTX",b="tagsBorderWrap___OMxjs",E=n(92310),w=n.n(E),x=n(89392),k=function(e){var t=e.dataSource,n=void 0===t?[]:t,r=e.value,s=e.onChange,a=e.onTitleChange,l=e.className,u=e.title,E=e.titleWidth,k=void 0===E?41:E,S=e.style,C=void 0===S?{}:S,A=e.fontColor,T=void 0===A?"#6A7283":A,D=e.showCount,L=(0,i.useState)(0),R=c()(L,2),I=R[0],N=R[1],M=(0,i.useState)(!1),P=c()(M,2),O=P[0],F=P[1],B=(0,i.useRef)(null),Z=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;0!==n.length&&((null==B||null===(e=B.current)||void 0===e?void 0:e.clientHeight)>97?N(1):N(0));0===n.length&&N(0),F(!1)}),[n]),(0,o.jsxs)("div",{className:w()(d,l),style:C,children:[(0,o.jsx)("div",{onClick:(0,x.throttle)((function(){return null==a?void 0:a()}),2e3),style:{width:k,marginTop:O?12:4},className:"".concat(h," ").concat(a?"current":""),children:u}),(0,o.jsxs)("div",{className:O?"".concat(f," ").concat(b):f,children:[(0,o.jsx)("div",{className:g,ref:Z,style:I>0?{height:1===I?97:"auto",overflow:1===I?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,o.jsx)("div",{className:m,ref:B,children:null==n?void 0:n.map((function(e){return(0,o.jsxs)("span",{onClick:function(){return s(e.id)},style:{color:T},className:r===e.id?_:"",children:[(0,o.jsx)("span",{title:e.name,className:v,children:e.name}),!!D&&(0,o.jsx)("span",{className:y,children:e.count})]},e.id)}))})}),!!I&&(0,o.jsx)(i.Fragment,{children:1===I?(0,o.jsxs)("div",{onClick:function(){var e;N(2),(null==B||null===(e=B.current)||void 0===e?void 0:e.clientHeight)>245?F(!0):F(!1)},className:p,children:["展开",(0,o.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,o.jsxs)("div",{onClick:function(){Z.current.scrollTop=0,N(1),F(!1)},className:p,children:["收起",(0,o.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},S="tabs___GTqPV",C="active___F26E8",A=function(e){var t=e.dataSource,n=void 0===t?[]:t,i=e.value,r=e.onChange,s=e.className,a=e.style,l=void 0===a?{}:a;return(0,o.jsx)("div",{style:l,className:w()(S,s),children:n.map((function(e){return(0,o.jsx)("span",{onClick:function(){return r(e.id)},className:i===e.id?C:"",children:e.name},e.id)}))})},T="input___PW2zI",D="dropdown___vSy8B",L="menu___NiyBu",R="text___Grueu",I="b1___ZKryM",N="b2___aKyGa",M=n(37568),P=function(e){var t,n=e.dataSource,r=void 0===n?[]:n,s=e.value,a=void 0===s?"":s,l=e.onChange,u=e.onInputChange,d=void 0===u?function(){}:u,h=e.className,f=e.style,p=void 0===f?{}:f,g=e.placeholder,m=e.allowClear,v=void 0!==m&&m,y=(0,i.useState)(""),_=c()(y,2),b=_[0],E=_[1],x=(0,i.useState)(""),k=c()(x,2),S=k[0],C=k[1];(0,i.useEffect)((function(){var e,t=a;null!==(e=JSON.stringify(a))&&void 0!==e&&e.includes("{")&&(E(a.id),t=a.value||"");try{C(decodeURIComponent(t||""))}catch(e){C(decodeURIComponent(t||""))}}),[a]);var A=function(){l(encodeURIComponent(S),b||null)};return(0,o.jsxs)("div",{className:w()(T,h),style:p,children:[!!r.length&&(0,o.jsxs)("div",{className:D,children:[(0,o.jsxs)("div",{className:R,children:[null===(t=r.find((function(e){return e.id===b})))||void 0===t?void 0:t.name,(0,o.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,o.jsx)("b",{className:I}),(0,o.jsx)("b",{className:N})]}),(0,o.jsx)("div",{className:L,children:r.map((function(e,t){return(0,o.jsx)("div",{onClick:function(){var t;(t=e.id)!==b&&(E(t),l(encodeURIComponent(S),t))},children:e.name},t)}))})]}),(0,o.jsx)(M.Z,{onPressEnter:A,value:S,onChange:function(e){C(e.target.value),d(encodeURIComponent(e.target.value),b||null)},placeholder:g,variant:"borderless",allowClear:v,onClear:function(){return l("",b||null)}}),(0,o.jsx)("i",{onClick:A,className:"iconfont icon-sousuo9 font14 current"})]})},O="quickPager___GM30J",F="disabled___Ozc8I",B=function(e){var t=e.value,n=e.onChange,i=e.className,r=e.total,s=e.pageSize,a=e.style,l=void 0===a?{}:a,u=t<2,c=t>=Math.ceil(r/s);return r<=s?(0,o.jsx)(o.Fragment,{}):(0,o.jsxs)("div",{className:w()(O,i),style:l,children:[(0,o.jsx)("div",{onClick:function(){u||n(t-1,"prev")},className:u?F:"",children:"上一页"}),(0,o.jsx)("div",{onClick:function(){c||n(t+1,"next")},className:c?F:"",children:"下一页"})]})},Z="list___oOsiS",j="wrap___G6T7F",U="lockWrap___Rl79E",K="li___oZZ7l",z="cover___b2bYW",G="img___IQX7w",H="sign___HkT6C",V="name___SsJx8",W="e___TMqq0",Y="tags___bcjyo",q="rate___YACg7",X=n(29787),Q=n(25399),J=n(58018),$=n(91689),ee=n(83287),te=n(96908),ne=n(57177),ie=n(81378),re=n(13767),se=function(e){var t=e.className,n=e.dataSource,i=void 0===n?[]:n,r=e.col,s=void 0===r?4:r,a=e.right,l=e.bottom,u=void 0===l?23:l,c=e.precision,d=void 0===c?0:c,h=e.wrapWidth,f=void 0===h?1200:h,p=e.trackEventItems,g=e.loading,m=Math.floor((f-(s-1)*a)/s);return(0,o.jsx)(X.Z,{spinning:g,children:(0,o.jsxs)("div",{className:w()(Z,t),children:[!!i.length&&i.map((function(e,t){var n=e.name,i=e.id,r=e.identifier,l=e.power,c=(e.cover_image_id,e.pic);return(0,o.jsxs)("div",{className:j,style:{width:m,marginRight:(1+t)%s==0?0:a+d,marginBottom:u},children:[(0,o.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(r,"/challenges"),className:K,onClick:function(e){e.preventDefault(),p&&(0,ee.L9)([p]),l&&(0,ee.xg)("/shixuns/".concat(r,"/challenges"))},children:[(0,o.jsxs)("div",{className:G,children:[(0,o.jsx)("img",{className:z,src:"".concat(c)}),e.is_jupyter&&(0,o.jsx)("img",{className:H,src:te}),e.is_jupyter_lab&&(0,o.jsx)("img",{className:H,src:ne}),e.is_unity_3d&&(0,o.jsx)("img",{className:H,src:ie})]}),(0,o.jsx)("div",{className:V,children:(0,o.jsx)(Q.Z,{title:n||"实践项目名称-未填写",children:(0,o.jsx)("span",{className:W,children:n||"实践项目名称-未填写"})})}),(0,o.jsxs)("div",{className:Y,children:[(0,o.jsx)(Q.Z,{placement:"bottom",title:"关卡数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,o.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,o.jsx)(Q.Z,{placement:"bottom",title:"学习人数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,o.jsx)("span",{children:e.myshixuns_count})]})}),(0,o.jsx)(Q.Z,{placement:"bottom",title:"难度等级",children:(0,o.jsx)("span",{children:(0,o.jsx)("span",{children:e.level})})}),(0,o.jsxs)("div",{className:q,children:[(0,o.jsx)(J.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,o.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!l&&(0,o.jsxs)("div",{className:U,children:[(0,o.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,o.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},i)})),!i.length&&(0,o.jsx)(re.Z,{})]})})},ae="list___jb2Ay",oe="wrap___VsQDr",le="li___IxCLC",ue="cover___Mu8wr",ce="img___IpFLA",de="movebq___mF7wt",he="bq___Bil0T",fe="sign___DXJ4d",pe="name___l7FoJ",ge="e___pXQUG",me="unit___wCIFR",ve="tags___w_Mil",ye="wrapisCurrent___qIfQT",_e=n(60242),be=n(7338),Ee=function(e){var t=e.className,n=e.dataSource,i=void 0===n?[]:n,r=e.col,s=void 0===r?4:r,a=e.right,l=e.bottom,u=void 0===l?23:l,c=e.precision,d=void 0===c?0:c,h=e.wrapWidth,f=void 0===h?1200:h,p=e.trackEventItems,g=e.loading,m=e.onRemove,v=void 0===m?function(){}:m,y=e.isCurrent,_=void 0===y||y,b=e.showProgress,E=void 0!==b&&b,x=e.showAlias,k=void 0!==x&&x,S=Math.floor((f-(s-1)*a)/s),C=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"新型教材",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return(0,o.jsx)(X.Z,{spinning:g,children:(0,o.jsxs)("div",{className:w()(ae,t),children:[!(null==i||!i.length)&&(null==i?void 0:i.map((function(e,t){var n,i,r,l,c,h,f=e.name,g=e.id,m=e.identifier,y=(e.featured,e.school_name),b=e.image_url;e.excellent,e.is_plan;return(0,o.jsx)("div",{className:_&&E?ye:oe,style:{width:S,marginRight:(1+t)%s==0?0:a+d,marginBottom:u},children:(0,o.jsxs)("a",{className:le,onClick:function(e){e.preventDefault(),e.stopPropagation(),p&&(0,ee.L9)([p]),(0,ee.xg)("/paths/".concat(m))},children:[(0,o.jsxs)("div",{className:ce,children:[(0,o.jsx)("img",{className:ue,src:"".concat(b)}),_&&(0,be.bg)()&&(null==e?void 0:e.studying)&&(0,o.jsxs)("div",{className:"".concat(de," user-path-items"),onClick:function(t){t.stopPropagation(),v(e)},children:[(0,o.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,o.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(n=e.subject_tags)||void 0===n?void 0:n.map((function(e,t){var n;if(0===t){var i,r=null===(i=C.find((function(t){return t.name==e})))||void 0===i?void 0:i.swimg;return(0,o.jsx)("img",{className:fe,src:r,style:{left:"-4px"}})}var s=null===(n=C.find((function(t){return t.name==e})))||void 0===n?void 0:n.ptimg;return(0,o.jsx)("img",{className:fe,src:s,style:{left:"".concat(48+52*(t-1)+2*t,"px")}})})),(0,o.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,o.jsx)("div",{className:he,children:"开放课程"})})]}),(0,o.jsx)("div",{className:pe,children:(0,o.jsx)(Q.Z,{title:k&&null!=e&&e.excellent_alias_name?(0,o.jsxs)("span",{children:["课程原名:".concat(f),(0,o.jsx)("br",{}),(0,o.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):f,children:(0,o.jsx)("span",{className:ge,children:k&&(null==e?void 0:e.excellent_alias_name)||f})})}),_&&E&&0!=(null==e||null===(i=e.progress)||void 0===i?void 0:i.all_score)&&(0,o.jsxs)("div",{style:{padding:"0px 10px",color:"#333",marginTop:10},children:[(0,o.jsx)(_e.Z,{strokeColor:"#44d7b6",gap:"small",percent:((null==e||null===(r=e.progress)||void 0===r?void 0:r.my_score)/(null==e||null===(l=e.progress)||void 0===l?void 0:l.all_score)*100).toFixed(),showInfo:!1}),"已完成 ",null==e||null===(c=e.progress)||void 0===c?void 0:c.my_score,"/",null==e||null===(h=e.progress)||void 0===h?void 0:h.all_score]}),(!_||!E)&&(0,o.jsx)(Q.Z,{title:"发布单位:".concat(y),children:(0,o.jsxs)("div",{className:me,children:[(0,o.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),y]})}),(!_||!E)&&(0,o.jsx)("div",{className:ve,children:(0,o.jsxs)("div",{children:[(0,o.jsx)(Q.Z,{placement:"bottom",title:"章节数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,o.jsx)("span",{children:e.stages_count})]})}),(0,o.jsx)(Q.Z,{placement:"bottom",title:"学习人数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,o.jsx)("span",{children:e.members_count})]})})]})})]})},g)}))),!i.length&&(0,o.jsx)(re.Z,{})]})})},we={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},xe=function(e){var t=e.className,n=e.dataSource,i=void 0===n?[]:n,r=e.col,s=void 0===r?4:r,a=e.right,l=e.bottom,u=void 0===l?23:l,c=e.precision,d=void 0===c?0:c,h=e.wrapWidth,f=void 0===h?1200:h,p=e.trackEventItems,g=e.loading,m=e.handleVery,v=void 0===m?function(){return!0}:m,y=Math.floor((f-(s-1)*a)/s);return(0,o.jsx)(X.Z,{spinning:g,children:(0,o.jsxs)("div",{className:w()(we.list,t),children:[!!i.length&&i.map((function(e,t){var n=e.subject_identifier,i=e.id,r=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,o.jsxs)("div",{className:we.wrap,style:{width:y,marginRight:(1+t)%s==0?0:a+d,marginBottom:u},children:[(0,o.jsxs)("a",{className:we.li,onClick:function(t){t.preventDefault(),v(null==e?void 0:e.first_category_url)&&(p&&(0,ee.L9)([p]),(0,ee.xg)(e.first_category_url))},children:[(0,o.jsxs)("div",{className:we.top,children:[(0,o.jsx)(Q.Z,{title:e.name,children:(0,o.jsx)("div",{className:we.name,children:e.name})}),(0,o.jsx)("img",{className:we.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,o.jsx)("div",{className:we.text,title:e.creator,children:e.creator}),n&&(0,o.jsxs)("div",{className:we.btns,children:[(0,o.jsx)("div",{children:"开放课程"}),(0,o.jsx)("aside",{children:"开放课堂"})]}),r&&(0,o.jsx)("div",{className:we.sign,children:"公开"})]}),(0,o.jsxs)("div",{className:we.bottom,children:[e.visits>0&&(0,o.jsx)(Q.Z,{title:"访问量",placement:"bottom",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,o.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,o.jsx)(Q.Z,{title:"成员",placement:"bottom",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,o.jsx)(Q.Z,{title:"作业",placement:"bottom",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,o.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,o.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,o.jsxs)("div",{className:we.lockWrap,children:[(0,o.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,o.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},i)})),!i.length&&(0,o.jsx)(re.Z,{})]})})},ke={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"},Se=n(53260),Ce=function(e){var t=e.dataSource,n=void 0===t?[]:t,i=e.value,r=e.onChange,s=e.className,a=e.style,l=void 0===a?{}:a,u=e.tabBarExtraContent;return(0,o.jsxs)("div",{className:w()(ke.tabs,s),style:l,children:[(0,o.jsx)("div",{className:ke.tabsWrap,children:n.map((function(e,t){return!(null!=e&&e.hide)&&(0,o.jsxs)("aside",{className:ke.tab,onClick:function(){r(e.id),e.link&&Se.history.push(e.link)},children:[(0,o.jsx)("div",{className:i===e.id?ke.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,o.jsxs)("span",{children:["",null==e?void 0:e.total,""]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,o.jsx)(Q.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,o.jsxs)("span",{style:{color:"#9096A3"},children:["",(0,o.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,o.jsx)("span",{children:null==e?void 0:e.total}),""]})})]},t)}))}),(0,o.jsx)("div",{className:ke.tabBar,children:u})]})},Ae=function(e){var t=e.className,n=e.style,i=void 0===n?{}:n,r=e.children;return(0,o.jsx)("div",{className:w()(t),style:i,children:r})},Te="orderWrap___ZfyGX",De="orderIconWrap___XTB_O",Le="orderAsc___KWHmA",Re="orderDesc___rHdbB",Ie="active___a7eSP",Ne="cursorPointer___gs9kL",Me="orderTextWrap___teAKn",Pe=n(75727),Oe=n(93041),Fe=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Be=function(e){var t,n=e.sortValue,i=e.dropValue,r=e.className,s=e.onSort,a=e.onDrop,l=e.dataSource,u=void 0===l?Fe:l;return(0,o.jsxs)("div",{className:w()(Te,r),children:[(0,o.jsx)(Pe.Z,{dropdownRender:function(){return(0,o.jsx)(Oe.Z,{children:u.map((function(e,t){return(0,o.jsx)(Oe.Z.Item,{onClick:function(){return a(e.id)},children:e.name},t)}))})},children:(0,o.jsx)("span",{className:Me,children:null===(t=u.find((function(e){return i===e.id})))||void 0===t?void 0:t.name})}),(0,o.jsxs)("span",{className:De,children:[(0,o.jsx)("span",{className:Le,children:(0,o.jsx)("i",{className:"asc"===n?"iconfont icon-sanjiaoxing-up font12 ".concat(Ne," ").concat(Ie):"iconfont icon-sanjiaoxing-up font12 ".concat(Ne),onClick:function(){return s("asc"===n?"desc":"asc")}})}),(0,o.jsx)("span",{className:Re,children:(0,o.jsx)("i",{className:"desc"===n?"iconfont icon-sanjiaoxing-down font12 ".concat(Ne," ").concat(Ie):"iconfont icon-sanjiaoxing-down font12 ".concat(Ne),onClick:function(){return s("asc"===n?"desc":"asc")}})})]})]})},Ze=n(82242),je=n.n(Ze),Ue=n(7557),Ke=n.n(Ue),ze=n(41498),Ge=n.n(ze),He=n(39647),Ve=n.n(He),We={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"},Ye=n(99571),qe=["className","style","children","loading","openLoading","onClick","size","shape"],Xe=function(e){var t=e.className,n=e.style,r=e.children,s=e.loading,a=void 0!==s&&s,l=e.openLoading,u=e.onClick,d=void 0===u?function(){}:u,h=e.size,f=void 0===h?"middle":h,p=e.shape,g=void 0===p?"round":p,m=Ve()(e,qe),v=(0,i.useState)(!1),y=c()(v,2),_=y[0],b=y[1];return(0,o.jsx)(Ye.ZP,je()(je()({onClick:(0,x.throttle)(function(){var e=Ge()(Ke()().mark((function e(t){return Ke()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l&&b(!0),e.prev=1,e.next=4,d(t);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:l&&b(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:w()(We.btn,We["".concat(f,"-").concat(g)],t),style:n,size:f,shape:g,loading:_||a},m),{},{children:r}))},Qe="head___ghH72",Je="node___mjPEy",$e=function(e){var t=e.className,n=e.style,i=e.children,r=void 0===i?null:i,s=e.onClick,a=e.title;return(0,o.jsxs)("div",{className:w()(Qe,t),style:n,children:[(0,o.jsxs)("span",{className:"primary-hover",onClick:s,children:[(0,o.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,o.jsx)("b",{title:a,children:a}),(0,o.jsx)("div",{className:Je,children:r})]})},et="btns___sNgTb",tt="confirm___Ozirl",nt="cancel___aiq1I",it=function(e){var t=e.confirmShow,n=void 0===t||t,i=e.confirmTitle,r=e.confirmClick,s=e.cancelShow,a=void 0===s||s,l=e.cancelTitle,u=e.cancelClick,c=e.className,d=e.style,h=e.confirmLoading,f=void 0!==h&&h;return(0,o.jsxs)("div",{className:w()(et,c),style:d,children:[n&&(0,o.jsx)(Ye.ZP,{loading:f,onClick:r,type:"primary",className:tt,children:i}),a&&(0,o.jsx)(Ye.ZP,{onClick:u,className:nt,children:l})]})},rt={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"},st=function(e){var t=e.className,n=e.style,i=void 0===n?{}:n,r=e.LeftContent,s=e.children,a=e.RightContent;return(0,o.jsx)("div",{className:w()(rt.fixedBottom,t),style:i,children:(0,o.jsxs)("div",{className:rt.wrap,children:[(0,o.jsx)("div",{className:rt.left,children:r}),(0,o.jsx)("div",{className:rt.center,children:s}),(0,o.jsx)("div",{className:rt.right,children:a})]})})},at="crumbs___V41Oe",ot="hover___bEIVd",lt=function(e){var t=e.className,n=e.style,r=void 0===n?{}:n,s=e.dataSource,a=void 0===s?[]:s;return(0,o.jsx)("div",{className:w()(at,t),style:r,children:a.map((function(e,t){return t<a.length-1?(0,o.jsxs)(i.Fragment,{children:[e.path||e.onClick?(0,o.jsx)("span",{className:ot,onClick:null!=e&&e.onClick?e.onClick:function(){return Se.history.push(e.path)},children:e.name}):(0,o.jsx)("span",{children:e.name}),(0,o.jsxs)("span",{children:[" ",">"," "]})]},t):(0,o.jsx)("span",{style:{color:"#5F6368"},children:e.name},t)}))})},ut=n(11938),ct=["onChange"],dt=ut.Z.Countdown,ht=function(e){var t=e.onChange,n=Ve()(e,ct),r=(0,i.useState)(null),s=c()(r,2),a=s[0],l=s[1];(0,i.useEffect)((function(){"number"==typeof a&&a>=0&&t(a)}),[a]);return(0,o.jsx)(dt,je()(je()({},n),{},{onChange:function(e){var t=Math.floor(e/1e3);l(t)}}))}},79051:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return xe}});var i=n(82242),r=n.n(i),s=n(37205),a=n.n(s),o=n(7557),l=n.n(o),u=n(41498),c=n.n(u),d=n(79800),h=n.n(d),f=n(59301),p=n(53260),g=n(74889),m=n(56656),v=n.n(m),y=n(75727),_=n(99571),b=n(6767),E=n(62957),w=n(93041),x=n(62673),k=n(77019),S=n(5269),C=n(82326),A=n(37568),T=n(20554),D=n(54172),L=n(84022),R=n(25399),I=n(91689),N=n(94171),M={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"},P=n(7338);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var O=n(9271),F=n(17400),B=n(6272),Z=n(21411),j=n(89392),U=n.n(j),K=n(83287),z=n(93298),G=n(91232),H=n.n(G),V=n(28284),W=n(17149),Y=n(69219),q=n(13747),X="scoremodal___rmaM8",Q="selectWrapper___mvLB7",J="selectWrappers___eCA2w",$="allqingchu___qrQxW",ee="title___uaw5Z",te="bottom___h0Pda",ne="yes___Et867",ie="no___lWWYt",re="titlecount___MgcDd",se="add___NJkmt",ae="search___lc68N",oe="searchIcon___BUJdX",le="tabWrap___KEQVE",ue="previewModal___i8Vh9",ce="q_title___k3hA1",de=n(12240),he={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"},fe=n(24334),pe=n(37712),ge=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],me=function(e){var t,n,i,r,s,a,o,l,u,c,d=e.qitem;return(0,pe.jsxs)("div",{className:he.warp,children:[(0,pe.jsxs)("div",{className:he.mainPart,children:[(0,pe.jsxs)("div",{className:he.qcount,children:[8===(null==d?void 0:d.question_type)&&(0,pe.jsx)(g.Z,{className:he.content,showProgramFill:!0,value:null==d||null===(t=d.program_attr)||void 0===t?void 0:t.description}),8!=(null==d?void 0:d.question_type)&&(0,pe.jsx)(g.Z,{className:he.qtitle,value:(null==d?void 0:d.name)||(null==d?void 0:d.title)})]}),(0===(null==d?void 0:d.question_type)||2===(null==d?void 0:d.question_type))&&(0,pe.jsx)("div",{children:null==d||null===(n=d.choices)||void 0===n?void 0:n.map((function(e,t){return(0,pe.jsxs)("div",{className:he.redio,children:[!(null!=e&&e.is_answer)&&(0,pe.jsx)("span",{className:he.redioitem}),(null==e?void 0:e.is_answer)&&(0,pe.jsx)("i",{className:"".concat(he.redioitemyes," icon-duigou1")}),(0,pe.jsx)(g.Z,{className:null!=e&&e.is_answer?he.titleyes:he.title,value:ge[t]+(null==e?void 0:e.choice_text)}),(null==e?void 0:e.is_answer)&&(0,pe.jsx)("div",{className:he.yestag,children:"正确答案"})]})}))}),1===(null==d?void 0:d.question_type)&&(0,pe.jsx)("div",{children:null==d||null===(i=d.choices)||void 0===i?void 0:i.map((function(e,t){return(0,pe.jsxs)("div",{className:he.checkbox,children:[!(null!=e&&e.is_answer)&&(0,pe.jsx)("span",{className:he.checkboxitem}),(null==e?void 0:e.is_answer)&&(0,pe.jsx)("i",{className:"".concat(he.checkboxitemyes," icon-duigou1")}),(0,pe.jsx)(g.Z,{className:null!=e&&e.is_answer?he.titleyes:he.title,value:ge[t]+(null==e?void 0:e.choice_text)}),(null==e?void 0:e.is_answer)&&(0,pe.jsx)("div",{className:he.yestag,children:"正确答案"})]})}))}),3===(null==d?void 0:d.question_type)&&(0,pe.jsx)("div",{className:he.completion,children:null==d||null===(r=d.standard_answer)||void 0===r?void 0:r.map((function(e,t){var n;return(0,pe.jsxs)("div",{style:{display:"flex"},children:[(0,pe.jsxs)("span",{className:he.title,children:["填空项",t+1]}),(0,pe.jsx)("div",{className:he.content,children:null==e||null===(n=e.answer_text)||void 0===n?void 0:n.map((function(e,t){return(0,pe.jsx)("div",{className:he.items,children:e})}))})]})}))}),4===(null==d?void 0:d.question_type)&&(0,pe.jsxs)("div",{className:he.simple,children:[(0,pe.jsx)("div",{className:he.title,children:"参考答案"}),(0,pe.jsx)("div",{className:"mt10",style:{fontSize:"16px"},children:null!=d&&null!==(s=d.answer_texts)&&void 0!==s&&s[0]?(0,pe.jsx)(g.Z,{className:he.content,value:null==d||null===(a=d.answer_texts)||void 0===a?void 0:a[0]}):(0,pe.jsx)("div",{style:{color:"#C1C1C1"},children:"暂未设置~"})})]}),5===(null==d?void 0:d.question_type)&&(null==d||null===(o=d.challenge_names)||void 0===o?void 0:o.map((function(e,t){return(0,pe.jsx)("div",{className:he.shixun,children:(0,pe.jsxs)("span",{className:he.qtitle,children:[(0,pe.jsxs)("span",{style:{marginRight:10},children:["第",(0,K.EM)(t+1),"题"]}),e]})})}))),6===(null==d?void 0:d.question_type)&&(0,pe.jsx)("div",{className:he.program,children:(0,pe.jsx)(g.Z,{className:he.content,value:(null==d||null===(l=d.program_attr)||void 0===l?void 0:l.description)||"- -"})}),7===(null==d?void 0:d.question_type)&&(null==d||null===(u=d.sub_item_banks)||void 0===u?void 0:u.map((function(e,t){var n,i,r,s,a;return(0,pe.jsxs)("div",{children:[(0,pe.jsx)("div",{className:he.combination,children:(0,pe.jsx)("span",{className:he.qtitle,children:null==e?void 0:e.name})}),(0,pe.jsx)("div",{className:he.warp,style:{padding:"0px",paddingTop:20},children:(0,pe.jsxs)("div",{children:[("SINGLE"==(null==e?void 0:e.item_type)||"JUDGMENT"==(null==e?void 0:e.item_type))&&(null==e||null===(n=e.choices)||void 0===n?void 0:n.map((function(e,t){return(0,pe.jsxs)("div",{className:he.redio,children:[!(null!=e&&e.is_answer)&&(0,pe.jsx)("span",{className:he.redioitem}),(null==e?void 0:e.is_answer)&&(0,pe.jsx)("i",{className:"".concat(he.redioitemyes," icon-duigou1")}),(0,pe.jsx)(g.Z,{className:null!=e&&e.is_answer?he.titleyes:he.title,value:ge[t]+(null==e?void 0:e.choice_text)}),(null==e?void 0:e.is_answer)&&(0,pe.jsx)("div",{className:he.yestag,children:"正确答案"})]})}))),"MULTIPLE"==(null==e?void 0:e.item_type)&&(null==e||null===(i=e.choices)||void 0===i?void 0:i.map((function(e,t){return(0,pe.jsxs)("div",{className:he.checkbox,children:[!(null!=e&&e.is_answer)&&(0,pe.jsx)("span",{className:he.checkboxitem}),(null==e?void 0:e.is_answer)&&(0,pe.jsx)("i",{className:"".concat(he.checkboxitemyes," icon-duigou1")}),(0,pe.jsx)(g.Z,{className:null!=e&&e.is_answer?he.titleyes:he.title,value:ge[t]+(null==e?void 0:e.choice_text)}),(null==e?void 0:e.is_answer)&&(0,pe.jsx)("div",{className:he.yestag,children:"正确答案"})]})}))),"COMPLETION"==(null==e?void 0:e.item_type)&&(0,pe.jsx)("div",{className:he.completion,children:null==e||null===(r=e.standard_answer)||void 0===r?void 0:r.map((function(e,t){var n;return(0,pe.jsxs)("div",{style:{display:"flex"},children:[(0,pe.jsxs)("span",{className:he.title,children:["填空项",t+1]}),(0,pe.jsx)("div",{className:he.content,children:null==e||null===(n=e.answer_text)||void 0===n?void 0:n.map((function(e,t){return(0,pe.jsx)("div",{className:he.items,children:e})}))})]})}))}),"SUBJECTIVE"==(null==e?void 0:e.item_type)&&(0,pe.jsxs)("div",{className:he.simple,children:[(0,pe.jsx)("div",{className:he.title,children:"参考答案"}),(0,pe.jsx)("div",{className:"mt10",style:{fontSize:"16px"},children:null!=e&&null!==(s=e.answer_texts)&&void 0!==s&&s[0]?(0,pe.jsx)(g.Z,{className:he.content,value:null==e||null===(a=e.answer_texts)||void 0===a?void 0:a[0]}):(0,pe.jsx)("div",{style:{color:"#C1C1C1"},children:"暂未设置~"})})]})]})})]})}))),8===(null==d?void 0:d.question_type)&&(0,pe.jsx)("div",{children:(0,pe.jsx)(g.Z,{disabledFill:!0,className:he.content,showProgramFill:!0,value:fe.Base64.decode((null==d||null===(c=d.program_attr)||void 0===c?void 0:c.code)||"")})}),5===(null==d?void 0:d.question_type)&&(0,pe.jsxs)("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"},children:[(0,pe.jsxs)("div",{style:{flex:1,alignItems:"center",display:"flex"},children:[(0,pe.jsxs)("div",{style:{marginRight:30},children:[(0,pe.jsx)("span",{style:{marginRight:10},children:"创建者"}),(0,pe.jsx)("span",{style:{color:"#000000"},children:(null==d?void 0:d.author_name)||"- -"})]}),(0,pe.jsxs)("div",{style:{marginRight:30},children:[(0,pe.jsx)("span",{style:{marginRight:10},children:"所属单位"}),(0,pe.jsx)("span",{style:{color:"#000000"},children:(null==d?void 0:d.author_school_name)||"- -"})]}),(0,pe.jsxs)("div",{style:{marginRight:30},children:[(0,pe.jsx)("span",{style:{marginRight:10},children:"学习人数"}),(0,pe.jsx)("span",{style:{color:"#000000"},children:(null==d?void 0:d.study_count)||"0"})]})]}),(0,pe.jsxs)("a",{className:he.shixunbutton,href:"/shixuns/".concat(null==d?void 0:d.identifier,"/challenges?exercise=true"),target:"_blank",children:[(0,pe.jsx)("i",{onClick:function(){},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"实训详情"]})]})]}),((null==d?void 0:d.question_type)<=4||[6,8].includes(null==d?void 0:d.question_type))&&(0,pe.jsxs)("div",{className:he.bottom,children:[(0,pe.jsxs)("div",{className:he.bottomitem,children:[(0,pe.jsx)("span",{className:he.left,children:"解析"}),(0,pe.jsx)("span",{className:he.right,children:null!=d&&d.analysis?(0,pe.jsx)(g.Z,{value:null==d?void 0:d.analysis}):(0,pe.jsx)("span",{style:{color:"#C1C1C1"},children:"暂未设置~"})})]}),(0,pe.jsxs)("div",{className:he.bottomitem,children:[(0,pe.jsx)("span",{className:he.left,children:"难度"}),(0,pe.jsx)("span",{className:he.right,children:1===(null==d?void 0:d.difficulty)?"简单":2===(null==d?void 0:d.difficulty)?"适中":"困难"})]}),(0,pe.jsxs)("div",{className:he.bottomitem,children:[(0,pe.jsx)("span",{className:he.left,children:"知识点"}),(0,pe.jsx)("span",{className:he.right,children:null!=d&&d.tag_discipline?null==d?void 0:d.tag_discipline:(0,pe.jsx)("span",{style:{color:"#C1C1C1"},children:"暂未设置~"})})]})]})]})},ve=n(47422),ye=n(37108),_e=n(61485),be=n(11691),Ee=n(32701),we=(0,p.connect)((function(e){return{shixunsDetail:e.shixunsDetail,newExercisePaper:e.newExercisePaper}}))((function(e){var t,n,i=e.setScoreShow,s=e.ScoreShow,o=e.onOk,u=e.isshixuns,d=e.isloadings,p=e.dispatch,m=e.isIntelligentAssistant,v=void 0!==m&&m,y=e.ispptModal,w=void 0!==y&&y,x=(e.isChangeQuestion,e.newExercisePaper),k=(e.shixunsDetail,(0,f.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:"PROGRAM",per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:v,is_smart_plan:w,group_id:[]})),S=h()(k,2),L=S[0],I=S[1],M=(0,f.useState)([]),P=h()(M,2),O=P[0],F=P[1],B=(0,f.useState)([]),Z=h()(B,2),j=Z[0],U=Z[1],K=(0,f.useState)([]),z=h()(K,2),G=z[0],he=z[1],fe=(0,f.useState)([]),ge=h()(fe,2),we=ge[0],xe=ge[1],ke=(0,f.useState)(!1),Se=h()(ke,2),Ce=Se[0],Ae=Se[1],Te=V.Z.useForm(),De=h()(Te,1)[0],Le=(0,f.useState)(),Re=h()(Le,2),Ie=Re[0],Ne=Re[1],Me=(0,f.useState)(!1),Pe=h()(Me,2),Oe=Pe[0],Fe=Pe[1],Be=(0,f.useState)(u),Ze=h()(Be,2),je=Ze[0],Ue=Ze[1],Ke=(0,f.useState)([]),ze=h()(Ke,2),Ge=ze[0],He=ze[1],Ve=(0,f.useState)(0),We=h()(Ve,2),Ye=We[0],qe=We[1],Xe=(0,f.useState)(!0),Qe=h()(Xe,2),Je=Qe[0],$e=Qe[1],et=(0,f.useState)([]),tt=h()(et,2),nt=tt[0],it=tt[1],rt=(0,f.useState)([]),st=h()(rt,2),at=(st[0],st[1]),ot=[{name:"全部",value:"",question_type:0},{name:"单选题",value:"SINGLE",question_type:0},{name:"多选题",value:"MULTIPLE",question_type:1},{name:"判断题",value:"JUDGMENT",question_type:2},{name:"填空题",value:"COMPLETION",question_type:3},{name:"简答题",value:"SUBJECTIVE",question_type:4},{name:"实训题",value:"SHIXUN",question_type:5},{name:"编程题",value:"PROGRAM",question_type:6},{name:"组合题",value:"COMBINATION",question_type:7},{name:"程序填空题",value:"BPROGRAM",question_type:8}],lt=(0,f.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}}),ut=h()(lt,2),ct=ut[0],dt=ut[1],ht=(0,f.useRef)(new Set),ft=(0,f.useRef)(new Set),pt=[{name:"简单",value:1},{name:"适中",value:2},{name:"困难",value:3}],gt=(0,f.useState)(!1),mt=h()(gt,2),vt=mt[0],yt=mt[1];function _t(e){return bt.apply(this,arguments)}function bt(){return(bt=c()(l()().mark((function e(t){var n,i,s,a,o,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ae(!0),I(r()({},t)),!((null==G?void 0:G.length)<=0&&"5"===t.type)){e.next=6;break}return xe([]),Ae(!1),e.abrupt("return");case 6:return console.log("----",G,Ge),a="5"===t.type?null==G?void 0:G.filter((function(e){return!Ge.includes(e)})):null,o="5"===t.type?null==G?void 0:G.filter((function(e){return Ge.includes(e)})):null,e.next=11,(0,N.ZP)("/api/item_banks.json",{method:"get",params:r()(r()({},t),{},{discipline_id:(null==t||null===(n=t.courseid)||void 0===n?void 0:n[0])||null,sub_discipline_id:(null==t||null===(i=t.courseid)||void 0===i?void 0:i[1])||null,ids:a,shixun_ids:o,include_shixuns:!v,group_id:(null===(s=t.group_id)||void 0===s?void 0:s.map((function(e){return null==e?void 0:e.value})))||null,keyword:t.keyword?encodeURIComponent(t.keyword):t.keyword,type:"5"===t.type?null:t.type,clazz:"3"===t.type?"ItemBanksGroup":null})});case 11:u=e.sent,xe(u),Ae(!1);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Et(){return wt.apply(this,arguments)}function wt(){return(wt=c()(l()().mark((function e(){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,N.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:"5"===L.type?null:L.type,clazz:"ItemBanksGroup"}});case 2:t=e.sent,F((0,de.L)(null==t?void 0:t.disciplines));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xt(e){return kt.apply(this,arguments)}function kt(){return(kt=c()(l()().mark((function e(t){var n,i,r;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,N.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:t});case 2:i=e.sent,r=[{title:"根目录",id:0,pid:0,value:0,key:0,isLeaf:!1,children:null==i||null===(n=i.data)||void 0===n?void 0:n.map((function(e){return{title:e.name,id:e.id,pid:e.id,value:e.id,key:e.id,isLeaf:!e.have_child}}))}],it(r);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function St(e){return Ct.apply(this,arguments)}function Ct(){return(Ct=c()(l()().mark((function e(t){var n,i,s,a,o,u,c;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ae(!0),o=null===(n=t.list)||void 0===n?void 0:n.filter((function(e){return!Ge.includes(e)})),u=null===(i=t.list)||void 0===i?void 0:i.filter((function(e){return Ge.includes(e)})),0!==o.length||0!==u.length){e.next=7;break}return Ae(!1),xe([]),e.abrupt("return");case 7:return e.next=9,(0,N.ZP)("/api/item_banks.json",{method:"get",params:r()(r()({},t),{},{discipline_id:(null==t||null===(s=t.courseid)||void 0===s?void 0:s[0])||null,sub_discipline_id:(null==t||null===(a=t.courseid)||void 0===a?void 0:a[1])||null,ids:o,shixun_ids:u,type:"5"===t.type?null:t.type,clazz:"3"===t.type?"ItemBanksGroup":null})});case 9:c=e.sent,Ae(!1),xe(c);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,f.useEffect)((function(){var e,t,n,i;((null==x||null===(e=x.editData)||void 0===e||null===(e=e.exercise)||void 0===e||null===(e=e.exist_item_bank_ids)||void 0===e?void 0:e.length)>0||(null==x||null===(t=x.editData)||void 0===t||null===(t=t.exercise)||void 0===t||null===(t=t.exist_item_bank_shixun_ids)||void 0===t?void 0:t.length)>0)&&at([].concat(a()(null==x||null===(n=x.editData)||void 0===n||null===(n=n.exercise)||void 0===n?void 0:n.exist_item_bank_ids),a()(null==x||null===(i=x.editData)||void 0===i||null===(i=i.exercise)||void 0===i?void 0:i.exist_item_bank_shixun_ids)))}),[null==x||null===(t=x.editData)||void 0===t||null===(t=t.exercise)||void 0===t?void 0:t.exist_item_bank_ids]),(0,f.useEffect)((function(){s&&(De.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),Je&&je&&(De.setFieldsValue({item_type:"SHIXUN"}),L.item_type="SHIXUN",I(r()({},L)),$e(!1)),_t(L),Et(),xt({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))}),[s]),(0,f.useEffect)((function(){Ye>0&&setTimeout((function(){qe(0)}),2e3)}),[Ye]);var At=function(){var e=c()(l()().mark((function e(t){var n,i,r,s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p({type:"shixunsDetail/release",payload:{id:t}});case 2:if(n=e.sent,i=null==n?void 0:n.tag_position,r=(null==n?void 0:n.evaluation_set_position)||[],0!==(s=n.status)){e.next=12;break}return b.ZP.success("发布成功"),_t(L),e.abrupt("return",!0);case 12:2===s?b.ZP.error("第".concat(r.join(","),"关尚未完成,无法申请发布")):3===s?b.ZP.error("每一个关卡至少需要一个技能标签, 第".concat(i.join(","),"关尚未设置技能标签,请补充")):b.ZP.error("尚未创建任务的实训,不能申请发布");case 13:return e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Tt=function(e){return 1===(null==e?void 0:e.shixun_tag_num)?"未发布的实践项目不能被选用,请先进行发布":""},Dt=function e(t,n,i){return t.map((function(t){return t.key===n?r()(r()({},t),i):t.children?r()(r()({},t),{},{children:e(t.children,n,i)}):t}))},Lt=function(){var e=c()(l()().mark((function e(t){var n,i,r,s,a;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.key,i=L.type,e.next=4,(0,Ee.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(n),type:i});case 4:r=e.sent,a=(s=r||{}).data,s.total_count>0&&it((function(e){return Dt(e,n,{children:a.map((function(e){return{title:e.name,id:e.id,pid:e.id,value:e.id,key:e.id,isLeaf:!e.have_child}}))})}));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,pe.jsxs)("div",{children:[(0,pe.jsxs)(E.Z,{title:!1,footer:!1,open:s,width:1200,centered:!0,className:X,onCancel:function(){i(!1)},children:[(0,pe.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,pe.jsx)("div",{className:ee,children:"选择编程题"})}),(0,pe.jsx)(T.Z,{className:le,activeKey:L.type,onChange:function(e){var t;L.show_all_share=null,"0"===e&&xt({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),"0"===(t=L.type)&&(ct.wcjd=r()({},L)),"5"===t&&(ct.yx=r()({},L)),dt(r()({},ct)),L.type=e,yt(!1),"5"===L.type&&(je=!1,Ue(!1)),"1"===L.type&&(L=ct.gg),"2"===L.type&&(L=ct.scj),"3"===L.type&&(L=ct.ttgx),"0"===L.type&&(L=ct.wcjd),"5"===L.type&&(L=ct.yx),je=!1,Ue(!1),De.setFieldsValue(r()({},L)),I(r()({},L)),_t(r()({},L)),Et()},items:[{label:"我创建的",key:"0"},{label:(0,pe.jsxs)("div",{children:["已选",G.length>0&&(0,pe.jsx)("span",{className:re,children:G.length}),Ye>0&&(0,pe.jsxs)("span",{className:se,children:["+",Ye]})]}),key:"5"}]}),(0,pe.jsxs)(V.Z,{layout:"inline",form:De,onValuesChange:function(e,t){var n=Object.values(t).some((function(e){return null!==e&&""!==e&&void 0!==e})),i=""===t.keyword;yt(n||!i),L.page=1,null!=e&&e.courseid&&De.setFieldsValue({tag_discipline_id:""}),Ue(!1),e.keyword||""===e.keyword||De.submit()},onFinish:function(e){var t;"3"!==L.type||e.group_id&&0!==(null==e||null===(t=e.group_id)||void 0===t?void 0:t.length)?L.show_all_share=null:L.show_all_share=!0,I(r()(r()({},L),e)),_t(r()(r()({},L),e))},children:[(0,pe.jsx)(V.Z.Item,{name:"courseid",children:(0,pe.jsx)(W.Z,{className:Q,style:{width:160},size:"middle",placeholder:"方向&课程",options:O})}),!je&&(0,pe.jsx)(V.Z.Item,{name:"tag_discipline_id",children:(0,pe.jsx)(C.default,{className:Q,placeholder:"知识点",style:{width:160},size:"middle",allowClear:!0,children:null==we||null===(n=we.tag_disciplines)||void 0===n?void 0:n.map((function(e){return(0,pe.jsx)(C.default.Option,{children:e.name},e.id)}))})}),(0,pe.jsx)(V.Z.Item,{name:je?"diff":"difficulty",children:(0,pe.jsx)(C.default,{className:Q,placeholder:"难度",style:{width:118},size:"middle",allowClear:!0,children:pt.map((function(e){return(0,pe.jsx)(C.default.Option,{children:e.name},e.value)}))})}),je&&(0,pe.jsx)(V.Z.Item,{name:"shixun_publish_status",children:(0,pe.jsx)(C.default,{className:Q,placeholder:"全部状态",style:{width:118},size:"middle",allowClear:!0,children:[{name:"未发布",value:"unpublish"},{name:"静默发布",value:"silent_publish"},{name:"公开发布",value:"public_publish"}].map((function(e){return(0,pe.jsx)(C.default.Option,{children:e.name},e.value)}))})}),("3"===L.type||"0"===L.type)&&!je&&(0,pe.jsx)(V.Z.Item,{name:"group_id",children:(0,pe.jsx)(Y.Z,{treeDataSimpleMode:!0,style:{width:118},className:J,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:function(e,t){return-1!==t.title.toUpperCase().indexOf(e.toUpperCase())},dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"请选择文件夹",treeCheckStrictly:!0,loadData:Lt,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:nt})}),vt&&(0,pe.jsxs)("span",{className:$,onClick:function(){De.resetFields(),je=!1,Ue(!1),yt(!1),De.submit()},children:[(0,pe.jsx)("i",{className:"iconfont icon-guanbi4"}),(0,pe.jsx)("span",{children:"清除筛选条件"})]}),(0,pe.jsx)(V.Z.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword",children:(0,pe.jsx)(A.Z.Search,{className:ae,placeholder:"请输入关键词搜索",allowClear:!0,suffix:(0,pe.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(oe),onClick:function(){return De.submit()}}),onSearch:function(e){De.submit()}})})]}),(0,pe.jsxs)("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20},children:[(0,pe.jsxs)("div",{onClick:function(){"asc"===L.updated_at?L.updated_at="desc":L.updated_at="asc",I(r()(r()({},L),{},{page:1})),_t(r()(r()({},L),{},{page:1}))},children:[" ",L.updated_at?(0,pe.jsx)("img",{src:"asc"===L.updated_at?ve.Z:ye.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):(0,pe.jsx)("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"按更新时间排序"]}),(0,pe.jsxs)("div",{onClick:function(){"asc"===L.quotes?L.quotes="desc":L.quotes="asc",I(r()(r()({},L),{},{page:1})),_t(r()(r()({},L),{},{page:1}))},style:{marginLeft:20},children:[" ",L.quotes?(0,pe.jsx)("img",{src:"asc"===L.quotes?ve.Z:ye.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):(0,pe.jsx)("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"按使用次数排序"]})]}),(0,pe.jsx)(D.Z,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(null==we?void 0:we.items)||(null==we?void 0:we.shixun_list),pagination:!1,loading:Ce,rowKey:function(e){return e.id},rowSelection:{type:"checkbox",selectedRowKeys:j,getCheckboxProps:function(e){return{disabled:null==e?void 0:e.added_to_practice}},onSelect:function(e,t,n){if(t)(je||null!=e&&e.challenge_names)&&He([].concat(a()(Ge),[e.id])),U([].concat(a()(j),[e.id])),e.identifier?ht.current.add(e.id):ft.current.add(e.id),qe(1),he([].concat(a()(G),[e.id]));else{e.identifier?ht.current.delete(e.id):ft.current.delete(e.id);var i=G.filter((function(t){return t!==e.id}));if(U(i),he(i),je||null!=e&&e.challenge_names){var s=Ge.filter((function(t){return t!==e.id}));He(a()(s))}if("5"===L.type)return void St(r()(r()({},L),{},{list:a()(i)}))}},onSelectAll:function(e,t,n){if(e){var i,s=n.map((function(e){return e.id})),o=null==n||null===(i=n.filter((function(e){return null==e?void 0:e.challenge_names})))||void 0===i?void 0:i.map((function(e){return e.id}));He([].concat(a()(Ge),a()(o))),U([].concat(a()(j),a()(s))),he([].concat(a()(G),a()(s)));var l,u=H()(n);try{for(u.s();!(l=u.n()).done;){var c=l.value;c.identifier?ht.current.add(c.id):ft.current.add(c.id)}}catch(e){u.e(e)}finally{u.f()}}else{var d,h=n.map((function(e){return e.id})),f=j.filter((function(e){return!h.some((function(t){return t===e}))})),p=null==n||null===(d=n.filter((function(e){return null==e?void 0:e.challenge_names})))||void 0===d?void 0:d.map((function(e){return e.id}));U(a()(f)),he(a()(f));var g=Ge.filter((function(e){return!p.some((function(t){return t===e.id}))}));He(a()(g)),"5"===L.type&&St(r()(r()({},L),{},{list:a()(f)}));var m,v=H()(h);try{for(v.s();!(m=v.n()).done;){var y=m.value;y.identifier?ht.current.delete(y):ft.current.delete(y)}}catch(e){v.e(e)}finally{v.f()}}}},columns:[{title:"题型",dataIndex:"item_type",key:"item_type",render:function(e,t,n){var i;return(0,pe.jsx)(R.Z,{title:Tt(t),children:(0,pe.jsx)("div",{children:je||null!=t&&t.challenge_names?"实训题":null==ot||null===(i=ot.filter((function(t){return t.value===e})))||void 0===i||null===(i=i[0])||void 0===i?void 0:i.name})})}},{title:"试题名称",dataIndex:"name",width:je?"30%":"60%",key:"name",render:function(e,t,n){var i;return(0,pe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,pe.jsx)(R.Z,{title:Tt(t),children:(0,pe.jsx)("div",{className:null!=t&&t.high_resources_consume?ce:"",children:(0,pe.jsx)(g.Z,{showLines:1,showTextOnly:!0,value:je||null!=t&&t.challenge_names?null!=t&&t.title||null===e?"--":e:"BPROGRAM"==(null==t?void 0:t.item_type)?null==t||null===(i=t.program_attr)||void 0===i?void 0:i.description:e},1)})}),(null==t?void 0:t.high_resources_consume)&&(0,pe.jsx)(be.Z,{type:"shixun",style:{marginLeft:10}})]})}},{title:"创建者",dataIndex:"author_name",key:"author_name",hidden:!je,render:function(e,t,n){var i;return(0,pe.jsx)(R.Z,{title:Tt(t),children:(0,pe.jsx)("span",{children:e?null==e||null===(i=e.split("、"))||void 0===i?void 0:i[0]:"- -"})})}},{title:"所属单位",dataIndex:"author_school_name",key:"author_school_name",hidden:!je,render:function(e,t,n){return(0,pe.jsx)(R.Z,{title:Tt(t),children:(0,pe.jsx)("span",{children:e||"- -"})})}},{title:"难度",dataIndex:"difficulty",key:"difficulty",render:function(e,t,n){var i,r;return(0,pe.jsx)(R.Z,{title:Tt(t),children:(0,pe.jsx)("div",{children:je||null!=t&&t.challenge_names?(null==t?void 0:t.level)||(null==pt||null===(i=pt.filter((function(t){return t.value===e})))||void 0===i||null===(i=i[0])||void 0===i?void 0:i.name):null==pt||null===(r=pt.filter((function(t){return t.value===e})))||void 0===r||null===(r=r[0])||void 0===r?void 0:r.name})})}},{title:"关卡数量",dataIndex:"challenges_count",key:"challenges_count",hidden:!je,render:function(e,t,n){return(0,pe.jsx)(R.Z,{title:Tt(t),children:(0,pe.jsx)("div",{children:e||"- -"})})}},{title:"使用次数",dataIndex:"quotes",key:"quotes",render:function(e,t,n){return(0,pe.jsx)(R.Z,{title:Tt(t),children:(0,pe.jsx)("div",{children:je||null!=t&&t.challenge_names?(null==t?void 0:t.study_count)||(null==t?void 0:t.stu_num):e})})}},{title:(0,pe.jsxs)("span",{children:["发布状态 ",(0,pe.jsx)(R.Z,{title:"未发布的实践项目不能被选用",children:(0,pe.jsx)(_e.Z,{})})]}),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!je,render:function(e,t,n){return(0,pe.jsx)(R.Z,{title:Tt(t),children:(0,pe.jsx)("div",{children:e||"- -"})})}},{title:"操作",dataIndex:"id",key:"item_type",render:function(e,t,n){return(0,pe.jsx)(R.Z,{title:Tt(t),children:(0,pe.jsxs)("div",{style:{flex:1,textAlign:"start"},children:[(0,pe.jsx)("a",{onClick:function(){var e;Ne(r()(r()({},t),{},{question_type:je||null!=t&&t.challenge_names?5:null==ot||null===(e=ot.filter((function(e){return e.value===(null==t?void 0:t.item_type)})))||void 0===e||null===(e=e[0])||void 0===e?void 0:e.question_type})),Fe(!0)},children:"查看"}),1===(null==t?void 0:t.shixun_tag_num)&&(0,pe.jsx)("a",{style:{marginLeft:10},onClick:function(){var e;E.Z.confirm({title:"提示",icon:null,centered:!0,width:400,content:(0,pe.jsxs)("div",{children:["是否确定发布",(0,pe.jsx)("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:function(){window.open("/shixuns/".concat(null==t?void 0:t.identifier,"/challenges"))},children:(null==t?void 0:t.shixun_name)||"--"}),""]}),onOk:(e=c()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(At(null==t?void 0:t.identifier)){e.next=2;break}return e.abrupt("return",new Promise((function(e,t){t()})));case 2:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"发布"})]})})}}].filter((function(e){return!e.hidden}))}),(0,pe.jsx)(q.Z,{current:L.page,total:(null==we?void 0:we.items_count)||(null==we?void 0:we.shixuns_count),style:{marginBottom:20},defaultPageSize:L.per_page,showTotal:function(e){return(0,pe.jsxs)("span",{children:["共 ",(0,pe.jsx)("span",{style:{color:"#165DFF"},children:e})," 条数据"]})},pageSize:L.per_page,onChange:function(e,t){L.page=e,L.per_page=t,I(r()({},L)),_t(r()({},L))}}),(0,pe.jsxs)("div",{className:te,children:[(0,pe.jsx)(_.ZP,{className:ie,onClick:function(){i(!1)},children:"取消"}),(0,pe.jsx)(_.ZP,{loading:d,style:{width:d&&75},className:ne,onClick:c()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==G?void 0:G.length)<=0)){e.next=3;break}return b.ZP.info("当前暂未选择数据"),e.abrupt("return");case 3:o(a()(ft.current),a()(ht.current),!0,null==G?void 0:G.length);case 4:case"end":return e.stop()}}),e)}))),children:"确认"})]})]}),(0,pe.jsx)(E.Z,{open:Oe,title:"题目详情",footer:!1,className:ue,width:1e3,centered:!0,onCancel:function(){Fe(!1)},onOk:function(){Fe(!1)},children:(0,pe.jsx)(me,{qitem:Ie})})]})})),xe=(0,p.connect)((function(e){return{user:e.user,globalSetting:e.globalSetting}}))((function(e){var t,n,i,s,o,u,d,m,j,G,H,V,W,Y,q,X,Q,J=e.globalSetting,$=e.user,ee=e.dispatch,te=(0,p.useSearchParams)(),ne=h()(te,1)[0],ie=((0,p.useLocation)(),{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:ne.get("tab")||"public"}),re=(0,f.useState)(0),se=h()(re,2),ae=se[0],oe=se[1],le=(0,f.useState)(0),ue=h()(le,2),ce=ue[0],de=ue[1],he=(0,f.useState)(0),fe=h()(he,2),ge=fe[0],me=fe[1],ve=(0,f.useState)([]),ye=h()(ve,2),_e=ye[0],be=ye[1],Ee=(0,f.useState)([]),xe=h()(Ee,2),ke=xe[0],Se=xe[1],Ce=(0,f.useState)({}),Ae=h()(Ce,2),Te=Ae[0],De=Ae[1],Le=(0,f.useState)(!1),Re=h()(Le,2),Ie=Re[0],Ne=Re[1],Me=(0,f.useState)([]),Pe=h()(Me,2),Oe=Pe[0],Fe=Pe[1],Be=(0,f.useState)(!0),Ze=h()(Be,2),je=Ze[0],Ue=Ze[1],Ke=(0,f.useState)(null),ze=h()(Ke,2),Ge=ze[0],He=ze[1],Ve=(0,f.useState)(ie),We=h()(Ve,2),Ye=We[0],qe=We[1],Xe=(0,f.useRef)(null),Qe=(0,f.useRef)(null),Je=(0,f.useState)([]),$e=h()(Je,2),et=$e[0],tt=$e[1],nt=(0,f.useMemo)((function(){return["not_reviewed","under_review","review_finished"].includes(Ye.filter)}),[Ye.filter]),it=(0,f.useState)(!1),rt=h()(it,2),st=rt[0],at=rt[1],ot=(0,f.useState)(!1),lt=h()(ot,2),ut=lt[0],ct=lt[1],dt=(0,f.useState)(""),ht=h()(dt,2),ft=ht[0],pt=ht[1],gt=(0,f.useState)([]),mt=h()(gt,2),vt=mt[0],yt=mt[1],_t=(0,f.useState)(!1),bt=h()(_t,2),Et=bt[0],wt=bt[1],xt=(0,f.useState)([]),kt=h()(xt,2),St=kt[0],Ct=kt[1],At=(0,f.useState)(!1),Tt=h()(At,2),Dt=Tt[0],Lt=Tt[1],Rt=(0,f.useState)(!1),It=h()(Rt,2),Nt=It[0],Mt=It[1],Pt=(0,f.useState)(null),Ot=h()(Pt,2),Ft=Ot[0],Bt=Ot[1],Zt="teacher"===$.userInfo.identity,jt=function(){var e=c()(l()().mark((function e(t,n,i){var r,s,a;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.persist(),null!=t&&null!==(r=t.target)&&void 0!==r&&null!==(r=r.style)&&void 0!==r&&r.pointerEvents&&(t.target.style.pointerEvents="none"),e.next=4,(0,N.ZP)("/api/practices/".concat(n.identifier,"/start"),{method:"get"});case 4:if(0!==(null==(a=e.sent)?void 0:a.status)){e.next=10;break}if(!i){e.next=9;break}return(0,K.xg)("/problems/".concat(null==a?void 0:a.identifier,"/oj/").concat(null==n?void 0:n.identifier,"?tab=3")),e.abrupt("return");case 9:(0,K.xg)("/problems/".concat(null==a?void 0:a.identifier,"/oj/").concat(null==n?void 0:n.identifier));case 10:null!=t&&null!==(s=t.target)&&void 0!==s&&null!==(s=s.style)&&void 0!==s&&s.pointerEvents&&(t.target.style.pointerEvents="auto");case 11:case"end":return e.stop()}}),e)})));return function(t,n,i){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){var e=v()().add(0,"days").unix(),t=localStorage.getItem("problemsclose");t?e>parseInt(t)&&wt(!0):wt(!0)}),[]);var Ut=["未发布","已公开","未审核","审核中","未公开","未通过"],Kt=[{title:"题目名称",dataIndex:"name",ellipsis:!0,render:function(e,t){return(0,pe.jsxs)("div",{className:M.titleWarp,children:["mine"===(null==Ye?void 0:Ye.filter)?(0,pe.jsx)("span",{className:M.tag,children:Ut[t.practice_status]}):null,(0,pe.jsx)("span",{title:e,className:M.hov,onClick:function(e){return jt(e,t)},children:e})]})}},"public"===(null==Ye?void 0:Ye.filter)?{title:"题解",dataIndex:"solution_count",width:100,sorter:!0,render:function(e,t){return(0,pe.jsxs)("span",{style:{display:"flex"},children:[(0,pe.jsx)("span",{onClick:function(e){return jt(e,t,!0)},className:"current",children:e}),(null==t?void 0:t.has_video_solution)&&(0,pe.jsx)("img",{style:{objectFit:"contain"},className:"ml5",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydW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AxLjQ3NXYyLjQwN1ptLTUuMDYuMjEyYy0uNjk4IDAtMS4yNjQtLjYzMy0xLjI2NC0xLjQxMiAwLS43OC41NjYtMS40MTEgMS4yNjUtMS40MTIuNjk4IDAgMS4yNjQuNjMyIDEuMjY0IDEuNDExIDAgLjc4LS41NjcgMS40MTEtMS4yNjUgMS40MTJaIi8+PC9nPjwvc3ZnPg=="})]})}}:null,"public"===(null==Ye?void 0:Ye.filter)?{title:"通过率",dataIndex:"pass_ratio",sorter:!0,width:90}:null,{title:"难度",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:function(e){return(0,pe.jsxs)(f.Fragment,{children:[1===e&&(0,pe.jsx)("span",{className:M["btn-style-1"],children:"简单"}),2===e&&(0,pe.jsx)("span",{className:M["btn-style-2"],children:"适中"}),3===e&&(0,pe.jsx)("span",{className:M["btn-style-3"],children:"困难"})]})}},"public"===(null==Ye?void 0:Ye.filter)?{title:"人数",dataIndex:"user_count",align:"center",sorter:!0,width:80}:null,"public"===(null==Ye?void 0:Ye.filter)?{title:"状态",dataIndex:"status",width:94,render:function(e,t){return(0,P.bg)()?(0,pe.jsx)(f.Fragment,{children:Ge===(null==t?void 0:t.identifier)?(0,pe.jsx)("span",{className:M.hovBtn,onClick:function(e){return jt(e,t)},children:"开启刷题"}):(0,pe.jsxs)(pe.Fragment,{children:[0===e&&(0,pe.jsx)("span",{className:M.statusText,children:"未开启"}),1===e&&(0,pe.jsx)("span",{className:M.statusText,children:"进行中"}),2===e&&(0,pe.jsx)("span",{className:M.statusText,children:"已通过"})]})}):"-"}}:null,"public"!==(null==Ye?void 0:Ye.filter)?{title:"知识点",dataIndex:"tag_disciplines_name",ellipsis:!0,width:200,render:function(e){return(0,pe.jsx)("span",{children:null==e?void 0:e.join("、")})}}:null,"all"===(null==Ye?void 0:Ye.filter)?{title:"创建者",dataIndex:"creator",ellipsis:!0,width:100}:null,"public"!==(null==Ye?void 0:Ye.filter)?{title:"更新时间",dataIndex:"updated_at",sorter:!0,width:180}:null,(0,P.Ny)()?{title:"操作",dataIndex:"action",key:"action",align:"right",width:80,render:function(e,t){return(0,pe.jsx)(y.Z,{className:"ml10",dropdownRender:function(){return tn(null==t?void 0:t.identifier,t)},children:(0,pe.jsxs)("span",{style:{cursor:"default"},onClick:function(e){return e.preventDefault()},children:[(0,pe.jsx)("span",{children:"更多"}),(0,pe.jsx)("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"})]})})}}:Ie&&"public"!==(null==Ye?void 0:Ye.filter)?{title:"操作",dataIndex:"action",key:"action",align:"right",width:80,render:function(e,t){return null!=t&&t.is_self&&1!==(null==t?void 0:t.practice_status)?(0,pe.jsx)(y.Z,{className:"ml10",dropdownRender:function(){return nn(null==t?void 0:t.identifier,t)},children:(0,pe.jsxs)("span",{style:{cursor:"default"},onClick:function(e){return e.preventDefault()},children:[(0,pe.jsx)("span",{children:"更多"}),(0,pe.jsx)("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"})]})}):"-"}}:null].filter((function(e){return!!e})),zt=[{title:"题目名称",dataIndex:"name",ellipsis:!0,render:function(e,t){return(0,pe.jsx)("span",{className:M.hov,onClick:function(e){return jt(e,t)},children:e})}},{title:"难度",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:function(e){return(0,pe.jsxs)(f.Fragment,{children:[1===e&&(0,pe.jsx)("span",{className:M["btn-style-1"],children:"简单"}),2===e&&(0,pe.jsx)("span",{className:M["btn-style-2"],children:"适中"}),3===e&&(0,pe.jsx)("span",{className:M["btn-style-3"],children:"困难"})]})}},"not_reviewed"===(null==Ye?void 0:Ye.filter)?{title:"创建者",dataIndex:"creator",ellipsis:!0,width:100}:{title:"审核者",dataIndex:"reviewer",ellipsis:!0,width:100},"not_reviewed"===(null==Ye?void 0:Ye.filter)?{title:"发布时间",dataIndex:"submit_time",width:180}:null,"under_review"===(null==Ye?void 0:Ye.filter)?{title:"开始审核时间",dataIndex:"start_review_time",width:180}:null,"review_finished"===(null==Ye?void 0:Ye.filter)?{title:"最后审核时间",dataIndex:"review_time",width:180}:null,{title:"操作",dataIndex:"action",key:"action",align:"center",width:120,render:function(e,t){var n;switch(null==Ye?void 0:Ye.filter){case"under_review":n=(0,pe.jsxs)("div",{style:{display:"flex"},children:[(0,pe.jsx)(_.ZP,{type:"link",size:"small",onClick:function(e){return jt(e,t)},children:"审核"}),(0,pe.jsx)(_.ZP,{type:"link",style:{color:"#666"},size:"small",onClick:function(e){return Wt({e:e,record:t,op:"release"})},children:"移出"})]});break;case"review_finished":n=(0,pe.jsx)(_.ZP,{type:"link",size:"small",onClick:function(e){at(!0),Gt(t)},children:"审核记录"});break;default:n=(0,pe.jsx)(_.ZP,{type:"link",block:!0,onClick:function(e){return Wt({e:e,record:t,op:"claim"})},children:"开始审核"})}return n}}].filter((function(e){return!!e})),Gt=function(){var e=c()(l()().mark((function e(t){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return yt([]),e.next=3,(0,N.ZP)("/api/practices/".concat(t.identifier,"/review_list"),{method:"get"});case 3:n=e.sent,yt(null==n?void 0:n.reviews_list);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ht=[{title:"审核时间",dataIndex:"review_time",key:"review_time",render:function(e,t){return(0,pe.jsx)("span",{children:v()(e).format("YYYY-MM-DD HH:mm:ss")})}},{title:"审核者",dataIndex:"reviewer",key:"reviewer"},{title:"审核结果",dataIndex:"status",width:120,key:"status",render:function(e,t){return"5"===e||5===e?(0,pe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,pe.jsx)("div",{style:{color:"#333333",marginRight:"5px",whiteSpace:"nowrap"},children:"未通过"}),(0,pe.jsx)("div",{style:{color:"#0152d9",whiteSpace:"nowrap",cursor:"pointer"},onClick:function(){pt(t.description),ct(!0)},children:"查看原因"})]}):(0,pe.jsx)("span",{children:"已通过"})}}];(0,f.useEffect)((function(){qt(),Vt(Ye)}),[]),(0,f.useEffect)((function(){var e;0!==_e.length&&((null==Xe||null===(e=Xe.current)||void 0===e?void 0:e.clientHeight)>98&&oe(1))}),[_e]),(0,f.useEffect)((function(){var e;0!==ke.length&&((null==Qe||null===(e=Qe.current)||void 0===e?void 0:e.clientHeight)>98&&de(1))}),[ke]),(0,f.useEffect)((function(){return ee({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),function(){ee({type:"globalSetting/onlyShowBackTopToggle",payload:!0})}}),[]),(0,f.useEffect)((function(){var e;("人工智能科研服务平台"===document.title||"首页"===document.title||"实践教学平台"===document.title||null!==(e=document.title)&&void 0!==e&&e.includes("img"))&&(document.title="在线刷题")}),[J]),(0,f.useEffect)((function(){return document.body.setAttribute("data-custom","initial"),function(){document.body.removeAttribute("data-custom")}}),[]);var Vt=function(){var e=c()(l()().mark((function e(t){var n,i,r,s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.search=encodeURIComponent(t.search),(r=U().cloneDeep(t)).tag_discipline_id=null!==(n=r.tag_discipline_id)&&void 0!==n&&n.includes(-1)?[]:r.tag_discipline_id,r.source_discipline_id=null!==(i=r.source_discipline_id)&&void 0!==i&&i.includes(-1)?[]:r.source_discipline_id,console.log(r,"sendData"),Ue(!0),Fe([]),e.next=9,(0,N.ZP)("/api/practices.json",{method:"get",params:r});case 9:s=e.sent,tt([]),Ue(!1),me(null==s?void 0:s.practices_count),Fe(null==s?void 0:s.practices_list),Ct((null==s?void 0:s.recommend_subjects)||[]);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Wt=function(){var e=c()(l()().mark((function e(t){var n,i,r,s,a,o;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.op,i=t.description,r=t.record,s=t.e,a={op:n,description:i},Ue(!0),e.next=5,(0,N.ZP)("/api/practices/".concat(r.identifier,"/review"),{method:"post",body:a});case 5:o=e.sent,Ue(!1),"claim"!==n||0!==o.status&&"0"!==o.status||jt(s,r),Vt(Ye);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Yt=function(){var e=c()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Ue(!0),e.next=3,(0,N.ZP)("/api/practices/".concat(t.identifier,"/publish"),{method:"post"});case 3:e.sent,Ue(!1),Vt(Ye);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),qt=function(){var e=c()(l()().mark((function e(){var t,n,i,r,s,o;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,N.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});case 2:return n=e.sent,e.next=5,(0,N.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source",position:"index"}});case 5:return i=e.sent,e.next=8,(0,N.ZP)("/api/mypractices/rank_list",{method:"get",params:{}});case 8:r=e.sent,null!=n&&n.tag_disciplines&&(s=[{id:-1,name:"全部",count:null==n?void 0:n.totalCount}].concat(a()(null==n?void 0:n.tag_disciplines)),be(s)),null!=i&&i.tag_disciplines&&(o=[{id:-1,name:"全部",count:null==i?void 0:i.totalCount}].concat(a()(null==i?void 0:i.tag_disciplines)),Se(o)),De(r||{}),Ne(null==r||null===(t=r.my_record)||void 0===t?void 0:t.outsource);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Xt=function(e,t){var n;Ye.page=1;var i=Ye["".concat(t,"_discipline_id")];null!==(n=Ye["".concat(t,"_discipline_id")])&&void 0!==n&&n.includes(e)?i=i.filter((function(t){return t!==e})):i.push(e),-1===e?i=[-1]:(i=i.filter((function(e){return-1!==e}))).length||(i=[-1]),Ye["".concat(t,"_discipline_id")]=i,qe(r()({},Ye)),Vt(Ye)},Qt=function(e,t){Ye.page=1,Ye[t]="number"==typeof e?e:null,qe(r()({},Ye)),Vt(Ye)},Jt=function(e){Ye.page=1,Ye.filter=e,Ye.status=null,Ye.practice_status=null,qe(r()({},Ye)),Vt(Ye)},$t=function(e,t){if(0!==(null==t?void 0:t.length)){var n=function(){var n=c()(l()().mark((function n(){var i,s;return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,N.ZP)("/api/practices/batch_op.json",{method:"post",body:{identifier:t,op:e}});case 2:0===(null==(i=n.sent)?void 0:i.status)&&(s=1===Oe.length&&1!==Ye.page?Ye.page-1:Ye.page,Ye.page=s,qe(r()({},Ye)),Vt(Ye));case 4:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();-1!==e?n():E.Z.confirm({centered:!0,width:500,okText:"确定",cancelText:"取消",title:"删除确认",icon:null,className:"custom-modal-divider",content:"删除后题目将不可再找回。",onOk:n})}else b.ZP.warning("请选择试题")},en=(0,pe.jsxs)(w.Z,{children:["public"===(null==Ye?void 0:Ye.filter)?(0,pe.jsx)(w.Z.Item,{onClick:function(){return $t(0,et)},children:"批量移出公共"}):[(0,pe.jsx)(w.Z.Item,{onClick:function(){return $t(1,et)},children:"批量移入公共"},2),(0,pe.jsx)(w.Z.Item,{onClick:function(){return $t(0,et)},children:"批量移出公共"},1)],(0,P.Ny)()&&(0,pe.jsx)(w.Z.Item,{onClick:function(){return rn()},children:"发送至试题库"}),"public"!==(null==Ye?void 0:Ye.filter)&&(0,pe.jsx)(w.Z.Item,{onClick:function(){return $t(-1,et)},children:"批量删除"})]}),tn=function(e,t){return(0,pe.jsxs)(w.Z,{children:[1===(null==t?void 0:t.practice_status)?(0,pe.jsx)(w.Z.Item,{onClick:function(){return $t(0,[e])},children:"移出公共"}):(0,pe.jsx)(w.Z.Item,{onClick:function(){return $t(1,[e])},children:"移入公共"}),"mine"===(null==Ye?void 0:Ye.filter)?(0,pe.jsx)(w.Z.Item,{onClick:function(){return Yt(t)},disabled:![0,4,5].includes(t.practice_status),children:[0,4,5].includes(t.practice_status)?"发布审核":"已发布审核"}):null,(0,pe.jsx)(w.Z.Item,{onClick:function(){return(0,K.xg)("/problems/".concat(e,"/ojedit"))},children:"编辑"}),"public"!==(null==Ye?void 0:Ye.filter)&&(0,pe.jsx)(w.Z.Item,{onClick:function(){return $t(-1,[e])},children:"删除"})]})},nn=function(e,t){return(0,pe.jsxs)(w.Z,{children:[(0,pe.jsx)(w.Z.Item,{onClick:function(){return Yt(t)},disabled:![0,4,5].includes(t.practice_status),children:[0,4,5].includes(t.practice_status)?"发布审核":"已发布审核"}),(0,pe.jsx)(w.Z.Item,{onClick:function(){return(0,K.xg)("/problems/".concat(e,"/ojedit"))},children:"编辑"}),(0,pe.jsx)(w.Z.Item,{onClick:function(){return $t(-1,[e])},children:"删除"})]})},rn=function(){if(et.length){var e,t=null;E.Z.confirm({centered:!0,width:500,okText:"确定",cancelText:"取消",title:"发送至试题库",icon:null,className:"custom-modal-divider",content:(0,pe.jsxs)("div",{children:[(0,pe.jsxs)("p",{className:"mt20",children:["已选",(0,pe.jsx)("span",{className:"c-light-primary",children:et.length}),"中个编程刷题发送至试题库成为编程题"]}),(0,pe.jsx)("div",{children:"请选择编程题的语言:"}),(0,pe.jsxs)(x.Z.Group,{className:"mt3",onChange:function(e){t=e,document.getElementById("send-to-modal").style.display="none"},children:[(0,pe.jsx)(x.Z,{value:"c",children:"C语言"}),(0,pe.jsx)(x.Z,{value:"c++",children:"C++语言"}),(0,pe.jsx)(x.Z,{value:"java",children:"Java语言"}),(0,pe.jsx)(x.Z,{value:"python",children:"Python语言"})]}),(0,pe.jsx)("div",{id:"send-to-modal",style:{color:"#E30000",display:"none"},children:"请选择编程语言"})]}),onOk:(e=c()(l()().mark((function e(){var n,i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(n=t)&&void 0!==n&&n.length){e.next=3;break}return document.getElementById("send-to-modal").style.display="block",e.abrupt("return",Promise.reject());case 3:return e.next=5,(0,N.ZP)("/api/practices/send_to_item_bank.json",{method:"post",body:{identifiers:et,language:t}});case 5:0===(null==(i=e.sent)?void 0:i.status)&&b.ZP.success("发送成功");case 7:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}else b.ZP.warning("请选择发送至试题库的编程刷题")},sn={selectedRowKeys:et,columnWidth:40,onChange:function(e){tt(e)}};return(0,pe.jsxs)("section",{className:M.wrap,children:[(0,pe.jsx)(Z.jL,{img:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArwAAAEsCAYAAAAhNGCdAAAAAXNSR0IArs4c6QAAIABJREFUeF7sfQl8XGXV/nNmn+x707Rpm7RJ2maSFkqRIiCbSP0+BNSiKAKyiIiCiKKAaBFE5O+nn58LigsI34eiuKDIorIpla1QaGdoku77kjR7Zrt37vn/3juZNk2zzHJn5k7yvj/zKzbnPcvz3jTPnHvecwhySQTShEBfmC8lDTcDWMgMa5rMSLVxIECECIA2tuDeYgc9FMcWKSIRkAhIBCQCEoEpgwBNmUhkIKZCoD/Ml3EED5rKKelMFAErLpOkVz4MEgGJgERAIjCdEJCEdzqddgZj7Q+ylxnNGTQpTcWJABF8RS7yxCkuxSQCEgGJgERAIpDzCEjCm/NHaM4A+oOsyjIGc56NKG8ocpHNnN5JryQCEgGJgERAImA8ApLwGo+p1AigL8AsgTAvAsVukj/75j0e6ZlEQCIgEZAIGIyA/KVnMKBSXRQBSXjN/SRIwmvu85HeSQQkAhIBiYCxCEjCayyeUtswApLwmvtRkITX3OcjvZMISAQkAhIBYxGQhNdYPKU2SXhz4hmQhDcnjkk6KRGQCEgEJAIGISAJr0FASjVHIyAzvOZ+IiThNff5SO8kAhIBiYBEwFgEJOE1Fk+pLU0Z3pAWRkSLwG1zgSAf21QfNEl4U0VQ7pcISAQkAhKBXEJAModcOq0c8tWIDO9u/x60D3Rgj38PFFb06AkWVLkqUVdQh4WFjbCScQPcNAZEbwmrJX6gIxog+h1YcuwnSRLe+M9YSkoEJAISAYlA7iOQY7+mcx/w6RJBKoQ3GAnihYMvYk9g74RwFdgK8J7K01DtnmEIrP/09WD3oSD+44RKtO0egs1CWLagaELdj/xzP2aWOHB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vYER8AnnxT2pvi818BJ26g2KgAW8GxT4Zrgs2wOPTGU+IgivO1e83Ibvm1yA8pz5GfeJ3Ae2FX/2OZUwKkuNdXdppzQjM8ZOaYazy1xdqb4wgMnJSbj5JdrMTmmGp8tzsdQY0xfYOMJIk1+c1MC4bAncylzdtZzTwSma9jvYtJwnXP/JEcxmOswDdy1B6pA+zQR4Z7IJvPyyp2DbplXIvR1yHnabDyMCQjwtler/v4cxgx3apBGwgLdJD+ZcLGtkIv0RInrDubjWObuGBrykc6pCuN8a8v/ulchOLss1SGOIBMD0BaRUcRrr6bLMGLdxTV/oW60obYCkzBi3ktSYBrol+oIg+YiVn622eXtomq4KObiNCOIXD6Tx6a+NtfmO7fZOF4FmArwTCwN46ysuQVdo5a8387lg9lHxj9Tzg/d17xhFpPC0NYyp6F5V73vGuVcJdvX6TRf+vAkHMO/zoaBfq9hCaaoVGyhviFDxmbX6+JVPq8r9KuoTyiutesJV/bl4muucZi1nXH/F4Zxm3qoIVtZUyDFh8v9NV2/vMfuvvf0iUPpEGB5PX05u8bWsFqoQgW02AjYCNgI2AjYCNgI2AjYCNgKtFQEBaY16v3B8H9+1OX4nr14C3sNjczcR0dWttR27WhsBGwEbARsBGwEbARsBGwEbgdNHQAhx8yO29LxOcGbXdYvG+8nGzEbARsBGwEbARsBGwEbARsBGoG0i4Di+veLwH2e/S8Cz2mZXdiM2AjYCNgI2AjYCNgI2AjYCNgI6AgL4HgPeGcvZtfeEjYCNgI2AjYCNgI2AjYCNQDtGgDm9FvC248naPdkI2AjYCNgI2AjYCNgI2AjICBjAaykN9oawEbARsBGwEbARsBGwEbARaMsISEqDLVpry7O1m7IRsBGwEbARsBGwEbARsBFg63EuWuNIWFkyez/YCNgI2AjYCNgI2AjYCNgItFsESrJkZmPWeKLdjtjux0bARsBGwEbARsBGwEag8yKwmvHE/wPgAD3HpzrZdAAAAABJRU5ErkJggg==",title:"编程刷题",sunTitle:"快速提高编程能力",bannerExtraContent:(0,pe.jsx)(y.Z,{dropdownRender:function(){var e,t;return(0,pe.jsxs)(w.Z,{children:[(0,pe.jsx)(w.Z.Item,{onClick:function(){p.history.push("/problems/add")},children:"新建题目"},1),(0,pe.jsx)(w.Z.Item,{onClick:function(){p.history.push("/problems/batchAdd")},children:"批量导入题目"},2),!(null!=J&&null!==(e=J.setting)&&void 0!==e&&e.main_site)&&!(null!=J&&null!==(t=J.setting)&&void 0!==t&&t.is_local)&&(0,pe.jsx)(w.Z.Item,{onClick:function(){Bt(!0)},children:"从题库中选题"},3)]})},children:(0,pe.jsx)("div",{className:M.addQuestion,style:{visibility:!(0,P.Ny)()&&!Ie&&(null!=J&&null!==(t=J.setting)&&void 0!==t&&t.main_site||null!=J&&null!==(n=J.setting)&&void 0!==n&&n.is_local||!(0,P.EO)())?"hidden":"visible"},children:(0,pe.jsx)("span",{children:"新建题目"})})})}),(0,pe.jsxs)("div",{className:M.content,children:[(0,pe.jsxs)("div",{className:M.left,children:[(0,pe.jsxs)(k.Z,{className:"".concat(M.filterPoint," mb10"),align:"top",children:[(0,pe.jsx)(S.Z,{className:M.filterType,children:"知识点"}),(0,pe.jsx)(S.Z,{className:M.btnWarp,ref:Xe,style:ae>0?{height:1===ae?76:"auto"}:{},children:null==_e?void 0:_e.map((function(e){var t;return(0,pe.jsxs)("div",{onClick:function(){return Xt(e.id,"tag")},className:null!=Ye&&null!==(t=Ye.tag_discipline_id)&&void 0!==t&&t.includes(e.id)?"".concat(M.btn," ").concat(M.btnActive):M.btn,children:[(0,pe.jsx)("span",{title:e.name,children:e.name}),(0,pe.jsx)("span",{className:M.count,style:{display:e.count?"block":"none"},children:e.count})]},e.id)}))}),!!ae&&(0,pe.jsx)(S.Z,{className:M.fold,children:1===ae?(0,pe.jsxs)("div",{onClick:function(){return oe(2)},className:M.action,children:["展开",(0,pe.jsx)("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})]}):(0,pe.jsxs)("div",{onClick:function(){return oe(1)},className:M.action,children:["收起",(0,pe.jsx)("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"})]})})]}),!!ke.length&&(0,pe.jsxs)(k.Z,{className:M.filterPoint,align:"top",style:{marginBottom:22},children:[(0,pe.jsx)(S.Z,{className:M.filterType,children:"来源"}),(0,pe.jsxs)(S.Z,{className:M.btnWarp,ref:Qe,style:ce>0?{height:1===ce?76:"auto"}:{},children:[null==ke?void 0:ke.map((function(e){var t;return(0,pe.jsxs)("div",{onClick:function(){return Xt(e.id,"source")},className:null!=Ye&&null!==(t=Ye.source_discipline_id)&&void 0!==t&&t.includes(e.id)?"".concat(M.btn," ").concat(M.btnActive):M.btn,children:[(0,pe.jsx)("span",{title:e.name,children:e.name}),(0,pe.jsx)("span",{className:M.count,children:e.count})]},e.id)})),!!ce&&(0,pe.jsx)(S.Z,{className:M.fold,children:1===ce?(0,pe.jsxs)("div",{onClick:function(){return de(2)},className:M.action,children:["展开",(0,pe.jsx)("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})]}):(0,pe.jsxs)("div",{onClick:function(){return de(1)},className:M.action,children:["收起",(0,pe.jsx)("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"})]})})]})]}),(0,pe.jsxs)("div",{className:M.control,children:[(0,pe.jsxs)(C.default,{suffixIcon:(0,pe.jsx)("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"难度",value:null==Ye?void 0:Ye.difficulty,onChange:function(e){return Qt(e,"difficulty")},children:[(0,pe.jsx)(C.default.Option,{value:1,children:"简单"}),(0,pe.jsx)(C.default.Option,{value:2,children:"适中"}),(0,pe.jsx)(C.default.Option,{value:3,children:"困难"})]}),(0,P.bg)()&&"public"===Ye.filter&&(0,pe.jsxs)(C.default,{suffixIcon:(0,pe.jsx)("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"状态",value:null==Ye?void 0:Ye.status,onChange:function(e){return Qt(e,"status")},children:[(0,pe.jsx)(C.default.Option,{value:0,children:"未开启"}),(0,pe.jsx)(C.default.Option,{value:1,children:"进行中"}),(0,pe.jsx)(C.default.Option,{value:2,children:"已通过"})]}),(0,P.bg)()&&"mine"===Ye.filter&&(0,pe.jsxs)(C.default,{suffixIcon:(0,pe.jsx)("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"状态",value:null==Ye?void 0:Ye.practice_status,onChange:function(e){return Qt(e,"practice_status")},children:[(0,pe.jsx)(C.default.Option,{value:0,children:"未发布"}),(0,pe.jsx)(C.default.Option,{value:1,children:"已公开"}),(0,pe.jsx)(C.default.Option,{value:2,children:"未审核"}),(0,pe.jsx)(C.default.Option,{value:3,children:"审核中"}),(0,pe.jsx)(C.default.Option,{value:4,children:"未公开"}),(0,pe.jsx)(C.default.Option,{value:5,children:"未通过"})]}),(0,P.bg)()&&"all"===Ye.filter&&(0,pe.jsxs)(C.default,{suffixIcon:(0,pe.jsx)("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"状态",value:null==Ye?void 0:Ye.practice_status,onChange:function(e){return Qt(e,"practice_status")},children:[(0,pe.jsx)(C.default.Option,{value:0,children:"未发布"}),(0,pe.jsx)(C.default.Option,{value:1,children:"已公开"}),(0,pe.jsx)(C.default.Option,{value:2,children:"未审核"}),(0,pe.jsx)(C.default.Option,{value:3,children:"审核中"}),(0,pe.jsx)(C.default.Option,{value:4,children:"未公开"}),(0,pe.jsx)(C.default.Option,{value:5,children:"未通过"})]}),(0,pe.jsx)(A.Z.Search,{className:M.search,size:"large",suffix:(0,pe.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(M.searchIcon),onClick:function(){Ye.page=1,Ye.search=Ye.save_search,qe(r()({},Ye)),Ye.save_search&&(0,z.tk)({name:Ye.save_search,copywriting:Ye.save_search,position:"Practice"}),Vt(Ye)}}),placeholder:(0,P.Ny)()?"请输入题目名称、创建者搜索":"请输入题目名称搜索",value:null==Ye?void 0:Ye.save_search,onChange:function(e){return function(e){Ye.page=1,Ye.save_search=e,qe(r()({},Ye))}(e.target.value)},onSearch:function(e){Ye.page=1,Ye.search=Ye.save_search,qe(r()({},Ye)),e&&(0,z.tk)({name:e,copywriting:e,position:"Practice"}),Vt(Ye)}})]}),(0,pe.jsxs)("div",{className:M.table,children:[(0,pe.jsx)("div",{className:M.tabWarp,style:(0,P.Ny)()||Ie?{}:{height:10,border:0},children:(0,P.Ny)()?(0,pe.jsxs)(T.Z,{className:M.tab,activeKey:nt?"not_reviewed":Ye.filter,onChange:Jt,tabBarExtraContent:!nt&&(0,pe.jsx)(y.Z,{dropdownRender:function(){return en},children:(0,pe.jsxs)("span",{className:"ant-dropdown-link font14 current",onClick:function(e){return e.preventDefault()},children:["批量操作 ",(0,pe.jsx)("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"iconfont icon-xiajiantou1"})]})}),children:[(0,pe.jsx)(T.Z.TabPane,{tab:"公共"},"public"),(0,pe.jsx)(T.Z.TabPane,{tab:"全部"},"all"),(0,pe.jsx)(T.Z.TabPane,{tab:"我创建的"},"mine"),(0,pe.jsx)(T.Z.TabPane,{tab:"审核列表"},"not_reviewed")]}):Ie?(0,pe.jsxs)(T.Z,{className:M.tab,activeKey:nt?"not_reviewed":Ye.filter,onChange:Jt,children:[(0,pe.jsx)(T.Z.TabPane,{tab:"公共"},"public"),(0,pe.jsx)(T.Z.TabPane,{tab:"我创建的"},"mine"),(0,pe.jsx)(T.Z.TabPane,{tab:"审核列表"},"not_reviewed")]}):null}),nt?(0,pe.jsx)("div",{className:M.tabWarp,style:(0,P.Ny)()||Ie?{}:{height:10,border:0},children:(0,pe.jsxs)(T.Z,{className:M.tab,activeKey:Ye.filter,onChange:Jt,children:[(0,pe.jsx)(T.Z.TabPane,{tab:"待审核"},"not_reviewed"),(0,pe.jsx)(T.Z.TabPane,{tab:"审核中"},"under_review"),(0,pe.jsx)(T.Z.TabPane,{tab:"已审核"},"review_finished")]})}):null,!((0,P.Ny)()||Ie)&&Zt&&(0,pe.jsx)("div",{className:M.tabWarp2,style:{justifyContent:"end"},children:Dt?(0,pe.jsxs)(k.Z,{align:"middle",children:[(0,pe.jsxs)(k.Z,{onClick:function(){return Mt(!0)},align:"middle",className:"current",children:[(0,pe.jsx)("i",{className:"iconfont icon-yixuan mr10 c-light-primary font20"}),(0,pe.jsxs)("span",{children:["已选",(0,pe.jsx)("span",{className:"c-light-primary",children:et.length}),"个"]})]}),(0,pe.jsx)(_.ZP,{className:"mr20 ml40",ghost:!0,onClick:function(){Lt(!1),tt([])},type:"primary",children:"取消"}),(0,pe.jsx)(_.ZP,{onClick:rn,ghost:!0,type:"primary",children:"确认发送"})]}):(0,pe.jsxs)(_.ZP,{onClick:function(){return Lt(!0)},type:"primary",children:[(0,pe.jsx)("i",{className:"iconfont icon-fasong mr5"}),"发送至试题库"]})}),(0,pe.jsx)(D.Z,{rowSelection:(0,P.Ny)()||Dt?sn:void 0,className:M.customTable,dataSource:Oe,bordered:!1,rowKey:function(e){return e.identifier},columns:nt?zt:Kt,rowClassName:M.row,loading:je,onRow:function(e){return{onMouseEnter:function(t){He(null==e?void 0:e.identifier)},onMouseLeave:function(e){He(null)}}},onChange:function(e,t,n){Ye.page=null==e?void 0:e.current,Ye.per_page=null==e?void 0:e.pageSize,null!=n&&n.order?(Ye.sort_by=null==n?void 0:n.field,Ye.sort_direction="ascend"===(null==n?void 0:n.order)?"asc":"desc"):(Ye.sort_by=null,Ye.sort_direction=null),qe(r()({},Ye)),Vt(Ye)},pagination:{pageSize:Ye.per_page,total:ge,current:Ye.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,size:"default",position:["bottomCenter"],showTotal:function(e){return(0,pe.jsxs)("span",{className:"mr10",children:["共",(0,pe.jsx)("span",{className:"c-orange",children:e}),"条数据"]})}}})]})]}),(0,pe.jsxs)("div",{className:M.right,children:[(0,pe.jsxs)("div",{className:M.statistics,children:[(0,pe.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPIAAACmCAYAAADgd9J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j0pw1KqtltIMi/5Ze/Gm+dseQZ8617BzJUXwGOoZ8FF/8zqHPnDPQMeSZcy07R3IUn4GOIR/FF79z6DPnDHQMeeZcy86RHMVnoGPIR/HF7xz6zDkDHUOeOdeycyRH8RnoGPJRfPE7hz5zzkDHkGfOtewcyVF8BjqGfBRf/M6hz5wz0DHkmXMtO0dyFJ+BjiEfxRe/c+gz5wx0DHnmXMvOkRzFZ6BjyEfxxe8c+sw5Ax1DnjnXsnMkR/EZ6BjyUXzxO4c+c85Ax5BnzrXsHMlRfAb+P2CxMAv7RhFyAAAAAElFTkSuQmCC",alt:""}),(0,pe.jsx)("div",{className:M.title,children:"我的刷题统计"}),(0,pe.jsxs)(k.Z,{justify:"space-between",children:[(0,pe.jsxs)(S.Z,{className:M.statisticItem,children:[(0,pe.jsx)("div",{className:M.rate,children:(0,P.bg)()?(null==Te||null===(i=Te.my_record)||void 0===i?void 0:i.passed_ratio)||0:"-"}),(0,pe.jsx)("div",{className:M.dataName,children:"通过率(%)"})]}),(0,pe.jsxs)(S.Z,{className:M.statisticItem,children:[(0,pe.jsx)("div",{className:M.rate,children:(0,P.bg)()?(null==Te||null===(s=Te.my_record)||void 0===s?void 0:s.passed_count)||0:"-"}),(0,pe.jsx)("div",{className:M.dataName,children:"刷题数"})]}),(0,pe.jsxs)(S.Z,{className:M.statisticItem,children:[(0,pe.jsx)("div",{className:M.rate,children:(0,P.bg)()?null==Te||null===(o=Te.my_record)||void 0===o||null===(o=o.time_count)||void 0===o?void 0:o.toFixed(2):"-"}),(0,pe.jsx)("div",{className:M.dataName,children:"累计时长(h)"})]})]})]}),!(null==Te||null===(u=Te.rank_list)||void 0===u||!u.length)&&(0,pe.jsxs)(f.Fragment,{children:[2!=(null===(d=$.userInfo)||void 0===d?void 0:d.user_id)&&(0,P.JA)()&&(null==J||null===(m=J.setting)||void 0===m?void 0:m.main_site)&&Et&&(null==St?void 0:St.length)>0&&(0,pe.jsxs)("div",{className:M.problemsclose,style:{position:"relative"},children:[(0,pe.jsx)(L.Z,{autoplay:!0,pauseOnDotsHover:!0,style:{width:292,height:170,marginBottom:"10px",overflow:"hidden"},children:null==St?void 0:St.map((function(e,t){return(0,pe.jsx)("div",{style:{display:"flex"},children:(0,pe.jsx)("a",{href:"/paths/".concat(e.identifier),children:(0,pe.jsx)("img",{style:{width:"292px",height:"170px",borderRadius:"4px"},src:I.Z.IMG_SERVER+"/"+e.image_url})})},t)}))}),(0,pe.jsx)("img",{className:M.imgsrc,onClick:function(){localStorage.setItem("problemsclose",v()().add(1,"days").unix()+""),wt(!1)},src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABZlJREFUaEPtmd1rXNUah5/1tfdkkrSNMdWO+C0pp6mKYhURURRFvPFGiwj+A4p44Y30pngj5+ZcHET/AUGkeuONiKIoIqJVRO0UDdpzPAen2hhTm2Qye68vWdlOmYQ2M/2gYaQDw2K+f8/7/t53r/WOYMhvYsj1cxFgszN4MQN/mwzEGM8om0KIeD7gz+hH1//getEvvDBYU9i/nzXizwXmrAB6hXdFN3dV4mcOV2urtRam0ahEN3dV68zhau2FORuQMwI4nfAkurUDsXC0Er00j1hZXAswMk4cm6xET+wgNo4SE8y5ggwM0BXfG/Gu8P8fQibBUxOIzjKi2ILY2l4L8EedmJ8g1kaJcwvEBHTlbsLpQAbNxkAA68V/CHJ6B2JV+CRivIWsaWQxhmgfR47VEbZYC2By4lKbWN9GyJeIHUdYbBBG5iuQ2aPEeyH02moQiIEBegpUNkEmm4xpJAVqSSGlQ3UkMpNIbxG1HOFsBaENsVMQlSGWgVALhKDxY55Ajl9yhGSvmQrgJMR5AeiNfor8FMi5/yLHM6TYhpIlatGitnhUO6BkjvIeoQUy+ApAKqKLBKWIocDXJf6Ewo8bfMjw8Th+sSRMXUOYg5Ay0S3ufhB9M5AAUvRTl5lYQCbb6AKVxPtFdNBo4VFRoaNFC4MSAeUE0oQKwEqijoQo8dHihcEJj4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IwVEfKLkBa09Z6KA/164p5dcgwVGOV9VlIj4dusHUqiNSZhma02J0uDPVwt3dEMrTj9V6IXlt1nx+aPzjWg5wK5lTv6X2u38iw3+e7r/edjQ76RZv1vosAmxX5ixba7Mj/bTLwJ/OqjXyXcOSkAAAAAElFTkSuQmCC"})]}),(0,pe.jsxs)("div",{className:M.sort,children:[(0,pe.jsx)("div",{className:M.rankHeader,children:(0,pe.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAAkCAYAAABR/76qAAAAAXNSR0IArs4c6QAAE31JREFUeF61W3uQVcWZ/3137oxP1DE+EWIUJFlQkHkoougiz+ExvIe54COru6ZWk2xqd2OybKViWWWy1tZWLLc2q8ZH/nCYYRBkBIcBS6NRAZ2HjgiiEDQDioiAiAozc7u/re4+3afPuefeubDlqYI799zTp/v07/t970OIHbzj1gfBOAPMfWDuBWQfkBWQEAB/iSvp90QrhR3G2+dfjGPH7gCLXgC9kKIXRMdxevlqGrXyK97yt/WQ2e9Bci+Ie8GyDyzUvQQgD9GErnXxNRTzndcN/h8Qv0Mz9z1azPXfxjXcjOkQmApCLzj4l0IvStFIC7BvoDm5GbWQWACgBIy0/jT/tlEGvxpovPqdcgG8rYelGAqWADPsJ4GPAFRDo1du9sdw58xKltkOgEHB9cwSVJIaRtUv7ubXJ7QwRK36TZ1X9yMwAN4H8HS6seudYhYambN18MMQ8ieAZDD+kWo/i4DIz59/EY73nW7GKLmKH8dPbEqBL6gOh3L2qhG/AuN+d97uZgnGUx0i+5Q0Ia/AjRB4JWc8cIgy+E4xi8wFcPutPQypAbSbTsxHwKmbacyKrpyH6JhVAfR3sgwB1wBZADdPaGEhagnmdw0u8V8hUxPppjc/LGaRju18XwrPP/6/gLxLrU/NSaRBvJvmfP6Iu271oLWQclYohEphKGEMBFILkDmlD7UL9m//uzpPOIYUqqgO2/MCGB+fDgHkJvwIEkv02BSgtkF/mvnTYIzPM/9rSOmrzZjk8W8nA8gBA9VT6U1CO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alAkloNR5s2vGnkXUh2e8+fhP+FU7MenYJxdoNboem2iZFbP9vacHSzl9yNtEmDVzvU0KtvuIKJ44skI3qs3VAL9HTYZ7uynBfClUS0qmR15+fOkABxk4sCYeodKZtdl83qh3IwSZLWaKk/s+CIdXD+IC/EHmogTevOzmDiQm1ADxirtPKVwCBL1tASJ6+VGPAHGHQllLpX9uT/pNTenRLh77r9Bigkg+QkE7wFjJ1Lpl6niuU8KSSRvuu4SSPmzyDsSyrssPe23NH7zIX5xpCrbjNK/6zKg6lERXTR1d2Oxkq4FZfVZ0yHFJCM1wfsYSlSJHqOFvQU7tLkRvwG0c3IYhC/A+FyFDEhjKyTeojokvtY20Pq4EYvBWOpCa/vyZhr30kLssOO5GTdB4AGU4TZagN357suNqAJ0nfIgGAdB2AuJXUhjZ741/h9lg+MKrzmoaAAAAABJRU5ErkJggg==",className:M.rankIcon})}),!(null==Te||null===(j=Te.my_record)||void 0===j||!j.rank)&&(0,pe.jsxs)("div",{className:"".concat(M.myRecord," ").concat(M.li),children:[(0,pe.jsx)("span",{className:"".concat(M.recordPrefix," ").concat(M.mine),children:"我的"}),(0,pe.jsx)("img",{className:M.avatar,src:I.Z.IMG_SERVER+"/images/"+(null==Te||null===(G=Te.my_record)||void 0===G?void 0:G.image_url)}),(0,pe.jsx)("span",{title:null==Te||null===(H=Te.my_record)||void 0===H?void 0:H.nickname,className:M.nickname,children:null==Te||null===(V=Te.my_record)||void 0===V?void 0:V.nickname}),(0,pe.jsx)("span",{className:M.myRank,children:(null==Te||null===(W=Te.my_record)||void 0===W?void 0:W.rank)>999?"第999+名":"第".concat(null==Te||null===(Y=Te.my_record)||void 0===Y?void 0:Y.rank,"名")}),(0,pe.jsxs)("span",{className:M.questionNumber,children:[null==Te||null===(q=Te.my_record)||void 0===q?void 0:q.passed_count,"题"]})]}),null==Te||null===(X=Te.rank_list)||void 0===X?void 0:X.map((function(e,t){var n=t+1;return 0===t&&(n=O.Z),1===t&&(n=F.Z),2===t&&(n=B.Z),(0,pe.jsxs)("div",{className:M.li,children:["number"==typeof n?(0,pe.jsx)("span",{className:M.recordPrefix,children:n}):(0,pe.jsx)("span",{className:M.recordPrefix,children:(0,pe.jsx)("img",{src:n})}),(0,pe.jsx)("img",{className:M.avatar,src:I.Z.IMG_SERVER+"/images/"+(null==e?void 0:e.image_url)}),(0,pe.jsx)("span",{title:null==e?void 0:e.nickname,className:M.nickname,children:null==e?void 0:e.nickname}),(0,pe.jsxs)("span",{className:M.questionNumber,children:[e.passed_count,"题"]})]},t)}))]})]})]})]}),Ft&&(0,pe.jsx)(we,{setScoreShow:Bt,isshixuns:!1,ScoreShow:!!Ft,isloadings:!1,onOk:function(){var e=c()(l()().mark((function e(t){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.length){e.next=3;break}return b.ZP.warning("请选择试题"),e.abrupt("return");case 3:return e.next=5,(0,N.ZP)("/api/item_banks/".concat(null==t?void 0:t[0],"/send_to_practice"),{method:"post",body:{ids:t}});case 5:0==(null==(n=e.sent)?void 0:n.status)&&(b.ZP.success("操作成功"),Ye.filter="mine",qe(r()({},Ye)),Bt(!1),Vt(Ye));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),(0,pe.jsx)(E.Z,{title:"审核记录",open:st,onOk:function(){},onCancel:function(){at(!1)},footer:null,closable:!0,children:(0,pe.jsx)(D.Z,{dataSource:vt,columns:Ht})}),(0,pe.jsx)(E.Z,{title:"未通过原因",open:ut,onOk:function(){},onCancel:function(){ct(!1)},footer:null,closable:!0,children:(0,pe.jsx)(g.Z,{value:ft})}),(0,pe.jsxs)(E.Z,{open:Nt,centered:!0,width:1e3,okText:"确定发送",onCancel:function(){return Mt(!1)},cancelText:"返回列表",onOk:c()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Mt(!1),rn();case 2:case"end":return e.stop()}}),e)}))),title:"查看已选",children:[(0,pe.jsxs)("div",{className:"font14 c-light-primary mb10",children:["已选",null==et?void 0:et.length,"个"]}),(0,pe.jsx)("div",{style:{height:400,overflow:"auto"},children:null==Oe||null===(Q=Oe.filter((function(e){return et.includes(e.identifier)})))||void 0===Q?void 0:Q.map((function(e,t){var n,i;return(0,pe.jsxs)("div",{className:M.sendModal,children:[(0,pe.jsxs)("div",{className:M.li,children:[(0,pe.jsx)("p",{children:null==e?void 0:e.name}),(0,pe.jsxs)("div",{className:M.bottom,children:[(0,pe.jsx)("span",{className:"c-grey-333",children:"编程题"}),(0,pe.jsx)("i",{className:M.line}),(0,pe.jsxs)("span",{className:"c-grey-333",children:[1===e.difficulty&&"简单",2===e.difficulty&&"适中",3===e.difficulty&&"困难"]}),(0,pe.jsx)("i",{className:M.line}),(0,pe.jsxs)("span",{children:["创建者 ",(0,pe.jsx)(R.Z,{title:null==e?void 0:e.creator,children:(0,pe.jsx)("span",{className:"c-grey-333",children:(null==e||null===(n=e.creator)||void 0===n?void 0:n.length)>6?(null==e||null===(i=e.creator)||void 0===i?void 0:i.substr(0,3))+"...":null==e?void 0:e.creator})})]}),(0,pe.jsx)("i",{className:M.line}),(0,pe.jsxs)("span",{className:M.des,children:["更新 ",(0,pe.jsx)("span",{className:"c-grey-333",children:null==e?void 0:e.updated_at})]})]})]}),(0,pe.jsx)("div",{className:M.del,onClick:function(){tt(et.filter((function(t){return t!==e.identifier})))},children:"删除"})]},t)}))})]})]})}))},75359:function(e,t,n){"use strict";n.d(t,{AL:function(){return x},Iy:function(){return f},Qv:function(){return m},ez:function(){return w},jb:function(){return p}});var i=n(79800),r=n.n(i),s=n(32834),a=n.n(s),o=n(11690),l=1;var u=[],c=["<ul>"],d=new(a().Renderer),h=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function f(){u.length=0,c=["<ul>"]}var p={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function g(e,t,n,i){if(t>=e.length||e[t].level<=n)return t;var r=e[t];i.push("<li><a href='#"+l+r.anchor+"'>"+r.text+"</a>");var s=[];return t=g(e,++t,r.level,s),s.length>0&&(i.push("<ul>"),s.forEach((function(e){i.push(e)})),i.push("</ul>")),i.push("</li>"),t=g(e,t,n,i)}function m(){return g(u,0,0,c),c.push("</ul>"),c.join("")}var v={heading:function(e){var t=h.exec(e);if(l+=1,t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},fences:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:r()(t,1)[0].length>=i.length?e.slice(i.length):e})).join("\n")}(n,t[3]||""),s=t[2]?t[2].trim():t[2];if(["latex","katex","math"].indexOf(s)>=0){var a=b(),o=i;i=a,E[a]={type:"block",expression:o}}return{type:"code",raw:n,lang:s,text:i}}}},y=/(?:\${2})([^\n`]+?)(?:\${2})/gi,_=0,b=function(){return"__special_katext_id_".concat(_++,"__")},E={};function w(){return E}function x(){_=0,E={}}function k(e){return e=e.replace(y,(function(e,t){var n=b();return E[n]={type:"inline",expression:t},n}))}var S=d.listitem;d.listitem=function(e){return S(k(e))};var C=d.paragraph;d.paragraph=function(e){return C(k(e))};var A=d.tablecell;d.tablecell=function(e,t){return A(k(e),t)},d.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];return i?["latex","katex","math"].indexOf(i)>=0?"<p class='editormd-tex'>".concat(e,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(t,'">').concat(n?e:(0,o.escape)(e,!0),"</code></pre>\n"):'<pre class="prettyprint linenums"><code>'+(n?e:(0,o.escape)(e,!0))+"</code></pre>"},d.heading=function(e,t,n){var i=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return u.push({anchor:i,level:t,text:e}),"<h"+t+' id="'+l+i+'">'+e+"</h"+t+">"},a().setOptions({silent:!0,gfm:!0,pedantic:!1}),a().use({tokenizer:v,renderer:d}),t.ZP=a()},37108:function(e,t,n){"use strict";n(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;t.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},47422:function(e,t,n){"use strict";n(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;t.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},9271:function(e,t,n){"use strict";n(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;t.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0Y3QjUwMCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptMSAzSDYuMzk1YTMuNTAxIDMuNTAxIDAgMCAxLS44NTcgMS4yNDVjLS4zMi4yOTQtLjc1Mi41NTEtMS4yOTcuNzcyTDQgOS4xMDlWMTAuOWMuNDQ4LS4xNTQuODItLjMxNSAxLjExNy0uNDgzLjIyMi0uMTI2LjQ1LS4yODIuNjg1LS40NjZsLjIzNi0uMTk0VjE1SDhWN1pNNC44MTIgMGMuMTc1IDAgLjM1LjE2LjQzOC4zMThsMS4zMTMgMi4zMDlzLTIuOC4xNi00LjQ2MyAxLjY3MkwuMDg4LjcxNkMwIC42MzYgMCAuNTU3IDAgLjQ3OCAwIC4xNTkuMjYzIDAgLjUyNSAwWm04LjY2MyAwYy4yNjMgMCAuNTI1LjIzOS41MjUuNDc4IDAgLjA4IDAgLjE1OS0uMDg4LjIzOEwxMS45IDQuMjJjLTEuNjYyLTEuNDMzLTQuNDYzLTEuNTkyLTQuNDYzLTEuNTkyTDguNzUuMzE4QzguNzUuMTYgOC45MjUgMCA5LjE4OCAwWiIvPjwvc3ZnPg=="},17400:function(e,t,n){"use strict";n(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;t.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0I5QzRDRiIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLjA1IDNjLS42NzUgMC0xLjIwMy4wOTItMS41ODQuMjc2YTIuMDU2IDIuMDU2IDAgMCAwLS44ODcuNzk0Yy0uMTguMjk2LS4zMS42OTEtLjM5NCAxLjE4NmwtLjAzOC4yNTUgMi4wMDQuMTc3Yy4wNTUtLjQ0My4xNjQtLjc1My4zMjYtLjkyOGEuODE0LjgxNCAwIDAgMSAuNjI2LS4yNjMuODEuODEgMCAwIDEgLjYxMS4yNTVjLjE2Mi4xNy4yNDMuMzc1LjI0My42MTQgMCAuMjIyLS4wODEuNDU2LS4yNDUuNzAzLS4xNjQuMjQ3LS41MzkuNjA4LTEuMTI0IDEuMDg0LS45Ni43NzYtMS42MTMgMS40NS0xLjk2MiAyLjAyYTQuMzYzIDQuMzYzIDAgMCAwLS41ODggMS41NTJMNCAxNWg2di0xLjc4MUg2Ljg3N2MuMTg0LS4xOTcuMzQzLS4zNTYuNDc5LS40NzguMTM2LS4xMjIuNDA1LS4zMzQuODA4LS42MzguNjc3LS41MjMgMS4xNDUtMS4wMDIgMS40MDEtMS40MzguMjU3LS40MzcuMzg2LS44OTUuMzg2LTEuMzc0IDAtLjQ1LS4xMTItLjg1OC0uMzM2LTEuMjJhMi4wNDMgMi4wNDMgMCAwIDAtLjkyNC0uODA4QzguMzAxIDcuMDg4IDcuNzUzIDcgNy4wNSA3Wk00LjgxMiAwYy4xNzUgMCAuMzUuMTYuNDM3LjMxOGwxLjMxMyAyLjMwOXMtMi44LjE2LTQuNDYzIDEuNjcyTC4wODguNzE2QzAgLjYzNiAwIC41NTcgMCAuNDc4IDAgLjE1OS4yNjMgMCAuNTI1IDBabTguNjYyIDBjLjI2MyAwIC41MjUuMjM5LjUyNS40NzggMCAuMDggMCAuMTU5LS4wODguMjM4TDExLjkgNC4yMmMtMS42NjItMS40MzMtNC40NjMtMS41OTItNC40NjMtMS41OTJMOC43NS4zMThDOC43NS4xNiA4LjkyNSAwIDkuMTg4IDBaIi8+PC9zdmc+"},6272:function(e,t,n){"use strict";n(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;t.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0QwOUYxOCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLS4wNjIgM2MtLjgyNiAwLTEuNDY0LjE3Mi0xLjkxNS41MTctLjQuMzA3LS42ODYuNzMzLS44NTYgMS4yNzhsLS4wNTguMjEgMS45MDguMzY0Yy4wNTItLjM4My4xNTMtLjY1MS4zMDItLjgw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41MDcgMCAuMTcuMjYzIDAgLjUyNSAwWm04LjY2MiAwYy4yNjMgMCAuNTI1LjI1NC41MjUuNTA3IDAgLjA4NSAwIC4xNy0uMDg4LjI1NEwxMS45IDQuNDgzQzEwLjIzOCAyLjk2IDcuNDM3IDIuNzkgNy40MzcgMi43OUw4Ljc1LjMzOEM4Ljc1LjE3IDguOTI1IDAgOS4xODggMFoiLz48L3N2Zz4="},84022:function(e,t,n){"use strict";n.d(t,{Z:function(){return Ce}});var i=n(59301),r=n(54476),s=n(33885),a=n(67732),o=n(83652),l=n(85458),u=n(75538),c=n(58289),d=n(42403),h=n(20068),f=n(76190),p=n(75931),g={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},m=n(53280),v=n(92310),y=n.n(v),_={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return i.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return i.createElement("button",null,e+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};function b(e,t,n){return Math.max(t,Math.min(e,n))}var E=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},w=function(e){for(var t=[],n=x(e),i=k(e),r=n;r<i;r++)e.lazyLoadedList.indexOf(r)<0&&t.push(r);return t},x=function(e){return e.currentSlide-S(e)},k=function(e){return e.currentSlide+C(e)},S=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},C=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},A=function(e){return e&&e.offsetWidth||0},T=function(e){return e&&e.offsetHeight||0},D=function(e){var t,n,i,r,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,i=Math.atan2(n,t),(r=Math.round(180*i/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?"left":r>=135&&r<=225?"right":!0===s?r>=35&&r<=135?"up":"down":"vertical"},L=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},R=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},I=function(e){var t=e.waitForAnimate,n=e.animating,i=e.fade,r=e.infinite,a=e.index,o=e.slideCount,l=e.lazyLoad,u=e.currentSlide,c=e.centerMode,d=e.slidesToScroll,h=e.slidesToShow,f=e.useCSS,p=e.lazyLoadedList;if(t&&n)return{};var g,m,v,y=a,_={},E={},x=r?a:b(a,0,o-1);if(i){if(!r&&(a<0||a>=o))return{};a<0?y=a+o:a>=o&&(y=a-o),l&&p.indexOf(y)<0&&(p=p.concat(y)),_={animating:!0,currentSlide:y,lazyLoadedList:p,targetSlide:y},E={animating:!1,targetSlide:y}}else g=y,y<0?(g=y+o,r?o%d!=0&&(g=o-o%d):g=0):!L(e)&&y>u?y=g=u:c&&y>=o?(y=r?o:o-1,g=r?0:o-1):y>=o&&(g=y-o,r?o%d!=0&&(g=0):g=o-h),!r&&y+h>=o&&(g=o-h),m=Z((0,s.Z)((0,s.Z)({},e),{},{slideIndex:y})),v=Z((0,s.Z)((0,s.Z)({},e),{},{slideIndex:g})),r||(m===v&&(y=g),m=v),l&&(p=p.concat(w((0,s.Z)((0,s.Z)({},e),{},{currentSlide:y})))),f?(_={animating:!0,currentSlide:g,trackStyle:B((0,s.Z)((0,s.Z)({},e),{},{left:m})),lazyLoadedList:p,targetSlide:x},E={animating:!1,currentSlide:g,trackStyle:F((0,s.Z)((0,s.Z)({},e),{},{left:v})),swipeLeft:null,targetSlide:x}):_={currentSlide:g,trackStyle:F((0,s.Z)((0,s.Z)({},e),{},{left:v})),lazyLoadedList:p,targetSlide:x};return{state:_,nextState:E}},N=function(e,t){var n,i,r,a,o=e.slidesToScroll,l=e.slidesToShow,u=e.slideCount,c=e.currentSlide,d=e.targetSlide,h=e.lazyLoad,f=e.infinite;if(n=u%o!=0?0:(u-c)%o,"previous"===t.message)a=c-(r=0===n?o:l-n),h&&!f&&(a=-1===(i=c-r)?u-1:i),f||(a=d-o);else if("next"===t.message)a=c+(r=0===n?o:n),h&&!f&&(a=(c+o)%u+n),f||(a=d+o);else if("dots"===t.message)a=t.index*t.slidesToScroll;else if("children"===t.message){if(a=t.index,f){var p=z((0,s.Z)((0,s.Z)({},e),{},{targetSlide:a}));a>t.currentSlide&&"left"===p?a-=u:a<t.currentSlide&&"right"===p&&(a+=u)}}else"index"===t.message&&(a=Number(t.index));return a},M=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,i=e.infinite?-1*e.slidesToShow:0,r=[];n<t;)r.push(n),n=i+e.slidesToScroll,i+=Math.min(e.slidesToScroll,e.slidesToShow);return r}(e),i=0;if(t>n[n.length-1])t=n[n.length-1];else for(var r in n){if(t<n[r]){t=i;break}i=n[r]}return t},P=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,i=e.listRef,r=i.querySelectorAll&&i.querySelectorAll(".slick-slide")||[];if(Array.from(r).every((function(i){if(e.vertical){if(i.offsetTop+T(i)/2>-1*e.swipeLeft)return n=i,!1}else if(i.offsetLeft-t+A(i)/2>-1*e.swipeLeft)return n=i,!1;return!0})),!n)return 0;var s=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-s)||1}return e.slidesToScroll},O=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},F=function(e){var t,n;(O(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical)?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=K(e)*e.slideWidth;var i={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var r=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",o=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";i=(0,s.Z)((0,s.Z)({},i),{},{WebkitTransform:r,transform:a,msTransform:o})}else e.vertical?i.top=e.left:i.left=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t),n&&(i.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+"px":i.marginLeft=e.left+"px"),i},B=function(e){O(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=F(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},Z=function(e){if(e.unslick)return 0;O(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,i=e.slideIndex,r=e.trackRef,s=e.infinite,a=e.centerMode,o=e.slideCount,l=e.slidesToShow,u=e.slidesToScroll,c=e.slideWidth,d=e.listWidth,h=e.variableWidth,f=e.slideHeight,p=e.fade,g=e.vertical;if(p||1===e.slideCount)return 0;var m=0;if(s?(m=-j(e),o%u!=0&&i+u>o&&(m=-(i>o?l-(i-o):o%u)),a&&(m+=parseInt(l/2))):(o%u!=0&&i+u>o&&(m=l-o%u),a&&(m=parseInt(l/2))),t=g?i*f*-1+m*f:i*c*-1+m*c,!0===h){var v,y=r&&r.node;if(v=i+j(e),t=(n=y&&y.childNodes[v])?-1*n.offsetLeft:0,!0===a){v=s?i+j(e):i,n=y&&y.children[v],t=0;for(var _=0;_<v;_++)t-=y&&y.children[_]&&y.children[_].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t},j=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},U=function(e){return e.unslick||!e.infinite?0:e.slideCount},K=function(e){return 1===e.slideCount?1:j(e)+e.slideCount+U(e)},z=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+G(e)?"left":"right":e.targetSlide<e.currentSlide-H(e)?"right":"left"},G=function(e){var t=e.slidesToShow,n=e.centerMode,i=e.rtl,r=e.centerPadding;if(n){var s=(t-1)/2+1;return parseInt(r)>0&&(s+=1),i&&t%2==0&&(s+=1),s}return i?0:t-1},H=function(e){var t=e.slidesToShow,n=e.centerMode,i=e.rtl,r=e.centerPadding;if(n){var s=(t-1)/2+1;return parseInt(r)>0&&(s+=1),i||t%2!=0||(s+=1),s}return i?t-1:0},V=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},W=Object.keys(_);function Y(e,t,n){return t=(0,c.Z)(t),(0,l.Z)(e,(0,u.Z)()?Reflect.construct(t,n||[],(0,c.Z)(e).constructor):t.apply(e,n))}var q=function(e){var t,n,i,r,s;return i=(s=e.rtl?e.slideCount-1-e.index:e.index)<0||s>=e.slideCount,e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(s-e.currentSlide)%e.slideCount==0,s>e.currentSlide-r-1&&s<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=s&&s<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":i,"slick-current":s===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},X=function(e,t){return e.key+"-"+t},Q=function(e){var t,n=[],r=[],a=[],o=i.Children.count(e.children),l=x(e),u=k(e);return i.Children.forEach(e.children,(function(c,d){var h,f={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};h=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?c:i.createElement("div",null);var p=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}((0,s.Z)((0,s.Z)({},e),{},{index:d})),g=h.props.className||"",m=q((0,s.Z)((0,s.Z)({},e),{},{index:d}));if(n.push(i.cloneElement(h,{key:"original"+X(h,d),"data-index":d,className:y()(m,g),tabIndex:"-1","aria-hidden":!m["slick-active"],style:(0,s.Z)((0,s.Z)({outline:"none"},h.props.style||{}),p),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&o>1&&!1===e.fade&&!e.unslick){var v=o-d;v<=j(e)&&((t=-v)>=l&&(h=c),m=q((0,s.Z)((0,s.Z)({},e),{},{index:t})),r.push(i.cloneElement(h,{key:"precloned"+X(h,t),"data-index":t,tabIndex:"-1",className:y()(m,g),"aria-hidden":!m["slick-active"],style:(0,s.Z)((0,s.Z)({},h.props.style||{}),p),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}}))),(t=o+d)<u&&(h=c),m=q((0,s.Z)((0,s.Z)({},e),{},{index:t})),a.push(i.cloneElement(h,{key:"postcloned"+X(h,t),"data-index":t,tabIndex:"-1",className:y()(m,g),"aria-hidden":!m["slick-active"],style:(0,s.Z)((0,s.Z)({},h.props.style||{}),p),onClick:function(t){h.props&&h.props.onClick&&h.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(f)}}))}})),e.rtl?r.concat(n,a).reverse():r.concat(n,a)},J=function(e){function t(){var e;(0,a.Z)(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e=Y(this,t,[].concat(i)),(0,h.Z)(e,"node",null),(0,h.Z)(e,"handleRef",(function(t){e.node=t})),e}return(0,d.Z)(t,e),(0,o.Z)(t,[{key:"render",value:function(){var e=Q(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return i.createElement("div",(0,r.Z)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}])}(i.PureComponent);function $(e,t,n){return t=(0,c.Z)(t),(0,l.Z)(e,(0,u.Z)()?Reflect.construct(t,n||[],(0,c.Z)(e).constructor):t.apply(e,n))}var ee=function(e){function t(){return(0,a.Z)(this,t),$(this,t,arguments)}return(0,d.Z)(t,e),(0,o.Z)(t,[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,r=t.onMouseOver,a=t.onMouseLeave,o=t.infinite,l=t.slidesToScroll,u=t.slidesToShow,c=t.slideCount,d=t.currentSlide,h=(e={slideCount:c,slidesToScroll:l,slidesToShow:u,infinite:o}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,f={onMouseEnter:n,onMouseOver:r,onMouseLeave:a},p=[],g=0;g<h;g++){var m=(g+1)*l-1,v=o?m:b(m,0,c-1),_=v-(l-1),E=o?_:b(_,0,c-1),w=y()({"slick-active":o?d>=E&&d<=v:d===E}),x={message:"dots",index:g,slidesToScroll:l,currentSlide:d},k=this.clickHandler.bind(this,x);p=p.concat(i.createElement("li",{key:g,className:w},i.cloneElement(this.props.customPaging(g),{onClick:k})))}return i.cloneElement(this.props.appendDots(p),(0,s.Z)({className:this.props.dotsClass},f))}}])}(i.PureComponent);function te(e,t,n){return t=(0,c.Z)(t),(0,l.Z)(e,(0,u.Z)()?Reflect.construct(t,n||[],(0,c.Z)(e).constructor):t.apply(e,n))}var ne=function(e){function t(){return(0,a.Z)(this,t),te(this,t,arguments)}return(0,d.Z)(t,e),(0,o.Z)(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:y()(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?i.cloneElement(this.props.prevArrow,(0,s.Z)((0,s.Z)({},n),a)):i.createElement("button",(0,r.Z)({key:"0",type:"button"},n)," ","Previous")}}])}(i.PureComponent),ie=function(e){function t(){return(0,a.Z)(this,t),te(this,t,arguments)}return(0,d.Z)(t,e),(0,o.Z)(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});L(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:y()(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?i.cloneElement(this.props.nextArrow,(0,s.Z)((0,s.Z)({},n),a)):i.createElement("button",(0,r.Z)({key:"1",type:"button"},n)," ","Next")}}])}(i.PureComponent),re=n(76374),se=["animating"];var ae=function(e){function t(e){var n,o,d,f;(0,a.Z)(this,t),o=this,d=t,f=[e],d=(0,c.Z)(d),n=(0,l.Z)(o,(0,u.Z)()?Reflect.construct(d,f||[],(0,c.Z)(o).constructor):d.apply(o,f)),(0,h.Z)(n,"listRefHandler",(function(e){return n.list=e})),(0,h.Z)(n,"trackRefHandler",(function(e){return n.track=e})),(0,h.Z)(n,"adaptHeight",(function(){if(n.props.adaptiveHeight&&n.list){var e=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=T(e)+"px"}})),(0,h.Z)(n,"componentDidMount",(function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var e=w((0,s.Z)((0,s.Z)({},n.props),n.state));e.length>0&&(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e))}var t=(0,s.Z)({listRef:n.list,trackRef:n.track},n.props);n.updateState(t,!0,(function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")})),"progressive"===n.props.lazyLoad&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),n.ro=new re.Z((function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout((function(){return n.onWindowResized()}),n.props.speed))):n.onWindowResized()})),n.ro.observe(n.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,e.onblur=n.props.pauseOnFocus?n.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)})),(0,h.Z)(n,"componentWillUnmount",(function(){n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach((function(e){return clearTimeout(e)})),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),n.ro.disconnect()})),(0,h.Z)(n,"componentDidUpdate",(function(e){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var t=w((0,s.Z)((0,s.Z)({},n.props),n.state));t.length>0&&(n.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),n.props.onLazyLoad&&n.props.onLazyLoad(t))}n.adaptHeight();var r=(0,s.Z)((0,s.Z)({listRef:n.list,trackRef:n.track},n.props),n.state),a=n.didPropsChange(e);a&&n.updateState(r,a,(function(){n.state.currentSlide>=i.Children.count(n.props.children)&&n.changeSlide({message:"index",index:i.Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),e.autoplay===n.props.autoplay&&e.autoplaySpeed===n.props.autoplaySpeed||(!e.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))}))})),(0,h.Z)(n,"onWindowResized",(function(e){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=(0,m.D)(50,(function(){return n.resizeWindow(e)})),n.debouncedResize()})),(0,h.Z)(n,"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=Boolean(n.track&&n.track.node);if(t){var i=(0,s.Z)((0,s.Z)({listRef:n.list,trackRef:n.track},n.props),n.state);n.updateState(i,e,(function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")})),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}})),(0,h.Z)(n,"updateState",(function(e,t,r){var a=function(e){var t,n=i.Children.count(e.children),r=e.listRef,a=Math.ceil(A(r)),o=e.trackRef&&e.trackRef.node,l=Math.ceil(A(o));if(e.vertical)t=a;else{var u=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(u*=a/100),t=Math.ceil((a-u)/e.slidesToShow)}var c=r&&T(r.querySelector('[data-index="0"]')),d=c*e.slidesToShow,h=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(h=n-1-e.initialSlide);var f=e.lazyLoadedList||[],p=w((0,s.Z)((0,s.Z)({},e),{},{currentSlide:h,lazyLoadedList:f})),g={slideCount:n,slideWidth:t,listWidth:a,trackWidth:l,currentSlide:h,slideHeight:c,listHeight:d,lazyLoadedList:f=f.concat(p)};return null===e.autoplaying&&e.autoplay&&(g.autoplaying="playing"),g}(e);e=(0,s.Z)((0,s.Z)((0,s.Z)({},e),a),{},{slideIndex:a.currentSlide});var o=Z(e);e=(0,s.Z)((0,s.Z)({},e),{},{left:o});var l=F(e);(t||i.Children.count(n.props.children)!==i.Children.count(e.children))&&(a.trackStyle=l),n.setState(a,r)})),(0,h.Z)(n,"ssrInit",(function(){if(n.props.variableWidth){var e=0,t=0,r=[],a=j((0,s.Z)((0,s.Z)((0,s.Z)({},n.props),n.state),{},{slideCount:n.props.children.length})),o=U((0,s.Z)((0,s.Z)((0,s.Z)({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach((function(t){r.push(t.props.style.width),e+=t.props.style.width}));for(var l=0;l<a;l++)t+=r[r.length-1-l],e+=r[r.length-1-l];for(var u=0;u<o;u++)e+=r[u];for(var c=0;c<n.state.currentSlide;c++)t+=r[c];var d={width:e+"px",left:-t+"px"};if(n.props.centerMode){var h="".concat(r[n.state.currentSlide],"px");d.left="calc(".concat(d.left," + (100% - ").concat(h,") / 2 ) ")}return{trackStyle:d}}var f=i.Children.count(n.props.children),p=(0,s.Z)((0,s.Z)((0,s.Z)({},n.props),n.state),{},{slideCount:f}),g=j(p)+U(p)+f,m=100/n.props.slidesToShow*g,v=100/g,y=-v*(j(p)+n.state.currentSlide)*m/100;return n.props.centerMode&&(y+=(100-v*m/100)/2),{slideWidth:v+"%",trackStyle:{width:m+"%",left:y+"%"}}})),(0,h.Z)(n,"checkImagesLoad",(function(){var e=n.list&&n.list.querySelectorAll&&n.list.querySelectorAll(".slick-slide img")||[],t=e.length,i=0;Array.prototype.forEach.call(e,(function(e){var r=function(){return++i&&i>=t&&n.onWindowResized()};if(e.onclick){var s=e.onclick;e.onclick=function(t){s(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(n.props.lazyLoad?e.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(e.onload=r,e.onerror=function(){r(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))}))})),(0,h.Z)(n,"progressiveLazyLoad",(function(){for(var e=[],t=(0,s.Z)((0,s.Z)({},n.props),n.state),i=n.state.currentSlide;i<n.state.slideCount+U(t);i++)if(n.state.lazyLoadedList.indexOf(i)<0){e.push(i);break}for(var r=n.state.currentSlide-1;r>=-j(t);r--)if(n.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)})),(0,h.Z)(n,"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=n.props,r=i.asNavFor,a=i.beforeChange,o=i.onLazyLoad,l=i.speed,u=i.afterChange,c=n.state.currentSlide,d=I((0,s.Z)((0,s.Z)((0,s.Z)({index:e},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!t})),h=d.state,f=d.nextState;if(h){a&&a(c,h.currentSlide);var g=h.lazyLoadedList.filter((function(e){return n.state.lazyLoadedList.indexOf(e)<0}));o&&g.length>0&&o(g),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),u&&u(c),delete n.animationEndCallback),n.setState(h,(function(){r&&n.asNavForIndex!==e&&(n.asNavForIndex=e,r.innerSlider.slideHandler(e)),f&&(n.animationEndCallback=setTimeout((function(){var e=f.animating,t=(0,p.Z)(f,se);n.setState(t,(function(){n.callbackTimers.push(setTimeout((function(){return n.setState({animating:e})}),10)),u&&u(h.currentSlide),delete n.animationEndCallback}))}),l))}))}})),(0,h.Z)(n,"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(0,s.Z)((0,s.Z)({},n.props),n.state),r=N(i,e);if((0===r||r)&&(!0===t?n.slideHandler(r,t):n.slideHandler(r),n.props.autoplay&&n.autoPlay("update"),n.props.focusOnSelect)){var a=n.list.querySelectorAll(".slick-current");a[0]&&a[0].focus()}})),(0,h.Z)(n,"clickHandler",(function(e){!1===n.clickable&&(e.stopPropagation(),e.preventDefault()),n.clickable=!0})),(0,h.Z)(n,"keyHandler",(function(e){var t=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,n.props.accessibility,n.props.rtl);""!==t&&n.changeSlide({message:t})})),(0,h.Z)(n,"selectHandler",(function(e){n.changeSlide(e)})),(0,h.Z)(n,"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),(0,h.Z)(n,"enableBodyScroll",(function(){window.ontouchmove=null})),(0,h.Z)(n,"swipeStart",(function(e){n.props.verticalSwiping&&n.disableBodyScroll();var t=function(e,t,n){return"IMG"===e.target.tagName&&E(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,n.props.swipe,n.props.draggable);""!==t&&n.setState(t)})),(0,h.Z)(n,"swipeMove",(function(e){var t=function(e,t){var n=t.scrolling,i=t.animating,r=t.vertical,a=t.swipeToSlide,o=t.verticalSwiping,l=t.rtl,u=t.currentSlide,c=t.edgeFriction,d=t.edgeDragged,h=t.onEdge,f=t.swiped,p=t.swiping,g=t.slideCount,m=t.slidesToScroll,v=t.infinite,y=t.touchObject,_=t.swipeEvent,b=t.listHeight,w=t.listWidth;if(!n){if(i)return E(e);r&&a&&o&&E(e);var x,k={},S=Z(t);y.curX=e.touches?e.touches[0].pageX:e.clientX,y.curY=e.touches?e.touches[0].pageY:e.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));var C=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!o&&!p&&C>10)return{scrolling:!0};o&&(y.swipeLength=C);var A=(l?-1:1)*(y.curX>y.startX?1:-1);o&&(A=y.curY>y.startY?1:-1);var T=Math.ceil(g/m),R=D(t.touchObject,o),I=y.swipeLength;return v||(0===u&&("right"===R||"down"===R)||u+1>=T&&("left"===R||"up"===R)||!L(t)&&("left"===R||"up"===R))&&(I=y.swipeLength*c,!1===d&&h&&(h(R),k.edgeDragged=!0)),!f&&_&&(_(R),k.swiped=!0),x=r?S+I*(b/w)*A:l?S-I*A:S+I*A,o&&(x=S+I*A),k=(0,s.Z)((0,s.Z)({},k),{},{touchObject:y,swipeLeft:x,trackStyle:F((0,s.Z)((0,s.Z)({},t),{},{left:x}))}),Math.abs(y.curX-y.startX)<.8*Math.abs(y.curY-y.startY)||y.swipeLength>10&&(k.swiping=!0,E(e)),k}}(e,(0,s.Z)((0,s.Z)((0,s.Z)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));t&&(t.swiping&&(n.clickable=!1),n.setState(t))})),(0,h.Z)(n,"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,i=t.swipe,r=t.touchObject,a=t.listWidth,o=t.touchThreshold,l=t.verticalSwiping,u=t.listHeight,c=t.swipeToSlide,d=t.scrolling,h=t.onSwipe,f=t.targetSlide,p=t.currentSlide,g=t.infinite;if(!n)return i&&E(e),{};var m=l?u/o:a/o,v=D(r,l),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return y;if(!r.swipeLength)return y;if(r.swipeLength>m){var _,b;E(e),h&&h(v);var w=g?p:f;switch(v){case"left":case"up":b=w+P(t),_=c?M(t,b):b,y.currentDirection=0;break;case"right":case"down":b=w-P(t),_=c?M(t,b):b,y.currentDirection=1;break;default:_=w}y.triggerSlideHandler=_}else{var x=Z(t);y.trackStyle=B((0,s.Z)((0,s.Z)({},t),{},{left:x}))}return y}(e,(0,s.Z)((0,s.Z)((0,s.Z)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if(t){var i=t.triggerSlideHandler;delete t.triggerSlideHandler,n.setState(t),void 0!==i&&(n.slideHandler(i),n.props.verticalSwiping&&n.enableBodyScroll())}})),(0,h.Z)(n,"touchEnd",(function(e){n.swipeEnd(e),n.clickable=!0})),(0,h.Z)(n,"slickPrev",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"previous"})}),0))})),(0,h.Z)(n,"slickNext",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"next"})}),0))})),(0,h.Z)(n,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"index",index:e,currentSlide:n.state.currentSlide},t)}),0))})),(0,h.Z)(n,"play",(function(){var e;if(n.props.rtl)e=n.state.currentSlide-n.props.slidesToScroll;else{if(!L((0,s.Z)((0,s.Z)({},n.props),n.state)))return!1;e=n.state.currentSlide+n.props.slidesToScroll}n.slideHandler(e)})),(0,h.Z)(n,"autoPlay",(function(e){n.autoplayTimer&&clearInterval(n.autoplayTimer);var t=n.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})})),(0,h.Z)(n,"pause",(function(e){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var t=n.state.autoplaying;"paused"===e?n.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||n.setState({autoplaying:"focused"}):"playing"===t&&n.setState({autoplaying:"hovered"})})),(0,h.Z)(n,"onDotsOver",(function(){return n.props.autoplay&&n.pause("hovered")})),(0,h.Z)(n,"onDotsLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),(0,h.Z)(n,"onTrackOver",(function(){return n.props.autoplay&&n.pause("hovered")})),(0,h.Z)(n,"onTrackLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),(0,h.Z)(n,"onSlideFocus",(function(){return n.props.autoplay&&n.pause("focused")})),(0,h.Z)(n,"onSlideBlur",(function(){return n.props.autoplay&&"focused"===n.state.autoplaying&&n.autoPlay("blur")})),(0,h.Z)(n,"render",(function(){var e,t,a,o=y()("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),l=(0,s.Z)((0,s.Z)({},n.props),n.state),u=R(l,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),c=n.props.pauseOnHover;if(u=(0,s.Z)((0,s.Z)({},u),{},{onMouseEnter:c?n.onTrackOver:null,onMouseLeave:c?n.onTrackLeave:null,onMouseOver:c?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null}),!0===n.props.dots&&n.state.slideCount>=n.props.slidesToShow){var d=R(l,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),h=n.props.pauseOnDotsHover;d=(0,s.Z)((0,s.Z)({},d),{},{clickHandler:n.changeSlide,onMouseEnter:h?n.onDotsLeave:null,onMouseOver:h?n.onDotsOver:null,onMouseLeave:h?n.onDotsLeave:null}),e=i.createElement(ee,d)}var f=R(l,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);f.clickHandler=n.changeSlide,n.props.arrows&&(t=i.createElement(ne,f),a=i.createElement(ie,f));var p=null;n.props.vertical&&(p={height:n.state.listHeight});var g=null;!1===n.props.vertical?!0===n.props.centerMode&&(g={padding:"0px "+n.props.centerPadding}):!0===n.props.centerMode&&(g={padding:n.props.centerPadding+" 0px"});var m=(0,s.Z)((0,s.Z)({},p),g),v=n.props.touchMove,_={className:"slick-list",style:m,onClick:n.clickHandler,onMouseDown:v?n.swipeStart:null,onMouseMove:n.state.dragging&&v?n.swipeMove:null,onMouseUp:v?n.swipeEnd:null,onMouseLeave:n.state.dragging&&v?n.swipeEnd:null,onTouchStart:v?n.swipeStart:null,onTouchMove:n.state.dragging&&v?n.swipeMove:null,onTouchEnd:v?n.touchEnd:null,onTouchCancel:n.state.dragging&&v?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},b={className:o,dir:"ltr",style:n.props.style};return n.props.unslick&&(_={className:"slick-list"},b={className:o,style:n.props.style}),i.createElement("div",b,n.props.unslick?"":t,i.createElement("div",(0,r.Z)({ref:n.listRefHandler},_),i.createElement(J,(0,r.Z)({ref:n.trackRefHandler},u),n.props.children)),n.props.unslick?"":a,n.props.unslick?"":e)})),n.list=null,n.track=null,n.state=(0,s.Z)((0,s.Z)({},g),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide?n.props.initialSlide:0,slideCount:i.Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var v=n.ssrInit();return n.state=(0,s.Z)((0,s.Z)({},n.state),v),n}return(0,d.Z)(t,e),(0,o.Z)(t,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,r=Object.keys(this.props);n<r.length;n++){var s=r[n];if(!e.hasOwnProperty(s)){t=!0;break}if("object"!==(0,f.Z)(e[s])&&"function"!=typeof e[s]&&!isNaN(e[s])&&e[s]!==this.props[s]){t=!0;break}}return t||i.Children.count(this.props.children)!==i.Children.count(e.children)}}])}(i.Component),oe=n(7861),le=n.n(oe);var ue=function(e){function t(e){var n,i,r,s;return(0,a.Z)(this,t),i=this,r=t,s=[e],r=(0,c.Z)(r),n=(0,l.Z)(i,(0,u.Z)()?Reflect.construct(r,s||[],(0,c.Z)(i).constructor):r.apply(i,s)),(0,h.Z)(n,"innerSliderRefHandler",(function(e){return n.innerSlider=e})),(0,h.Z)(n,"slickPrev",(function(){return n.innerSlider.slickPrev()})),(0,h.Z)(n,"slickNext",(function(){return n.innerSlider.slickNext()})),(0,h.Z)(n,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.innerSlider.slickGoTo(e,t)})),(0,h.Z)(n,"slickPause",(function(){return n.innerSlider.pause("paused")})),(0,h.Z)(n,"slickPlay",(function(){return n.innerSlider.autoPlay("play")})),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return(0,d.Z)(t,e),(0,o.Z)(t,[{key:"media",value:function(e,t){var n=window.matchMedia(e),i=function(e){e.matches&&t()};n.addListener(i),i(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:i})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,i){var r;r=0===i?le()({minWidth:0,maxWidth:n}):le()({minWidth:t[i-1]+1,maxWidth:n}),V()&&e.media(r,(function(){e.setState({breakpoint:n})}))}));var n=le()({minWidth:t.slice(-1)[0]});V()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":(0,s.Z)((0,s.Z)((0,s.Z)({},_),this.props),t[0].settings):(0,s.Z)((0,s.Z)({},_),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var a=i.Children.toArray(this.props.children);a=a.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var o=[],l=null,u=0;u<a.length;u+=e.rows*e.slidesPerRow){for(var c=[],d=u;d<u+e.rows*e.slidesPerRow;d+=e.slidesPerRow){for(var h=[],f=d;f<d+e.slidesPerRow&&(e.variableWidth&&a[f].props.style&&(l=a[f].props.style.width),!(f>=a.length));f+=1)h.push(i.cloneElement(a[f],{key:100*u+10*d+f,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));c.push(i.createElement("div",{key:10*u+d},h))}e.variableWidth?o.push(i.createElement("div",{key:u,style:{width:l}},c)):o.push(i.createElement("div",{key:u},c))}if("unslick"===e){var p="regular slider "+(this.props.className||"");return i.createElement("div",{className:p},a)}return o.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),i.createElement(ae,(0,r.Z)({style:this.props.style,ref:this.innerSliderRefHandler},function(e){return W.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}(e)),o)}}])}(i.Component),ce=ue,de=n(48755),he=n(36237),fe=n(63356),pe=n(16931);const ge="--dot-duration",me=e=>{const{componentCls:t,antCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,fe.Wf)(e)),{".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${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-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"}})}},ve=e=>{const{componentCls:t,motionDurationSlow:n,arrowSize:i,arrowOffset:r}=e,s=e.calc(i).div(Math.SQRT2).equal();return{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:i,height:i,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${n}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(i).sub(s).div(2).equal(),insetInlineStart:e.calc(i).sub(s).div(2).equal(),display:"inline-block",width:s,height:s,border:"0 solid currentcolor",borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:r,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:r,"&::after":{transform:"rotate(135deg)"}}}}},ye=e=>{const{componentCls:t,dotOffset:n,dotWidth:i,dotHeight:r,dotGap:s,colorBgContainer:a,motionDurationSlow:o}=e;return{[t]:{".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:n},"&-top":{top:n,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:i,height:r,marginInline:s,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${o}`,borderRadius:r,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:"100%",height:r,content:'""',background:a,borderRadius:r,opacity:1,outline:"none",cursor:"pointer",overflow:"hidden",transform:"translate3d(-100%, 0, 0)"},button:{position:"relative",display:"block",width:"100%",height:r,padding:0,color:"transparent",fontSize:0,background:a,border:0,borderRadius:r,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${o}`,overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(s).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{transform:"translate3d(0, 0, 0)",transition:`transform var(${ge}) ease-out`}}}}}}},_e=e=>{const{componentCls:t,dotOffset:n,arrowOffset:i,marginXXS:r}=e,s={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:i,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:i,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},s),{margin:`${(0,he.unit)(r)} 0`,verticalAlign:"baseline",button:s,"&::after":Object.assign(Object.assign({},s),{height:0}),"&.slick-active":Object.assign(Object.assign({},s),{button:s,"&::after":Object.assign(Object.assign({},s),{transition:`height var(${ge}) ease-out`})})})}}}},be=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]};var Ee=(0,pe.I$)("Carousel",(e=>[me(e),ve(e),ye(e),_e(e),be(e)]),(e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24})),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),we=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};const xe="slick-dots",ke=e=>{var{currentSlide:t,slideCount:n}=e,r=we(e,["currentSlide","slideCount"]);return i.createElement("button",Object.assign({type:"button"},r))},Se=i.forwardRef(((e,t)=>{const{dots:n=!0,arrows:r=!1,prevArrow:s=i.createElement(ke,{"aria-label":"prev"}),nextArrow:a=i.createElement(ke,{"aria-label":"next"}),draggable:o=!1,waitForAnimate:l=!1,dotPosition:u="bottom",vertical:c="left"===u||"right"===u,rootClassName:d,className:h,style:f,id:p,autoplay:g=!1,autoplaySpeed:m=3e3}=e,v=we(e,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id","autoplay","autoplaySpeed"]),{getPrefixCls:_,direction:b,className:E,style:w}=(0,de.dj)("carousel"),x=i.useRef(null),k=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];x.current.slickGoTo(e,t)};i.useImperativeHandle(t,(()=>({goTo:k,autoPlay:x.current.innerSlider.autoPlay,innerSlider:x.current.innerSlider,prev:x.current.slickPrev,next:x.current.slickNext})),[x.current]);const S=i.useRef(i.Children.count(e.children));i.useEffect((()=>{S.current!==i.Children.count(e.children)&&(k(e.initialSlide||0,!1),S.current=i.Children.count(e.children))}),[e.children]);const C=Object.assign({vertical:c,className:y()(h,E),style:Object.assign(Object.assign({},w),f),autoplay:!!g},v);"fade"===C.effect&&(C.fade=!0);const A=_("carousel",C.prefixCls),T=!!n,D=y()(xe,`${xe}-${u}`,"boolean"!=typeof n&&(null==n?void 0:n.className)),[L,R,I]=Ee(A),N=y()(A,{[`${A}-rtl`]:"rtl"===b,[`${A}-vertical`]:C.vertical},R,I,d),M=g&&"object"==typeof g&&g.dotDuration?{[ge]:`${m}ms`}:{};return L(i.createElement("div",{className:N,id:p,style:M},i.createElement(ce,Object.assign({ref:x},C,{dots:T,dotsClass:D,arrows:r,prevArrow:s,nextArrow:a,draggable:o,verticalSwiping:c,autoplaySpeed:m,waitForAnimate:l}))))}));var Ce=Se},64018:function(){window.PR_SHOULD_USE_CONTINUATION=!0,function(){var e=window,t=["break,continue,do,else,for,if,return,while"],n=[[t,"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"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],i=[n,"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"],r=[n,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],s=[n,"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"],a=[n,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],o="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",l=[t,"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"],u=[t,"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"],c=[t,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],d=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,h="str",f="com",p="typ",g="lit",m="pun",v="pln",y="atv";function _(e,t,n,i,r){if(n){var s={sourceNode:e,pre:1,langExtension:null,numberLines:null,sourceCode:n,spans:null,basePos:t,decorations:null};i(s),r.push.apply(r,s.decorations)}}var b=/\S/;function E(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling){var i=n.nodeType;t=1===i?t?e:n:3===i&&b.test(n.nodeValue)?e:t}return t===e?void 0:t}function w(e,t){var n,i={};!function(){for(var r=e.concat(t),s=[],a={},o=0,l=r.length;o<l;++o){var u=r[o],c=u[3];if(c)for(var d=c.length;--d>=0;)i[c.charAt(d)]=u;var h=u[1],f=""+h;a.hasOwnProperty(f)||(s.push(h),a[f]=null)}s.push(/[\0-\uffff]/),n=function(e){for(var t=0,n=!1,i=!1,r=0,s=e.length;r<s;++r)if((h=e[r]).ignoreCase)i=!0;else if(/[a-z]/i.test(h.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){n=!0,i=!1;break}var a={b:8,t:9,n:10,v:11,f:12,r:13};function o(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return(t=a[n])||("0"<=n&&n<="7"?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1))}function l(e){if(e<32)return(e<16?"\\x0":"\\x")+e.toString(16);var t=String.fromCharCode(e);return"\\"===t||"-"===t||"]"===t||"^"===t?"\\"+t:t}function u(e){var t=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")),n=[],i="^"===t[0],r=["["];i&&r.push("^");for(var s=i?1:0,a=t.length;s<a;++s){var u=t[s];if(/\\[bdsw]/i.test(u))r.push(u);else{var c,d=o(u);s+2<a&&"-"===t[s+1]?(c=o(t[s+2]),s+=2):c=d,n.push([d,c]),c<65||d>122||(c<65||d>90||n.push([32|Math.max(65,d),32|Math.min(c,90)]),c<97||d>122||n.push([-33&Math.max(97,d),-33&Math.min(c,122)]))}}n.sort((function(e,t){return e[0]-t[0]||t[1]-e[1]}));var h=[],f=[];for(s=0;s<n.length;++s)(p=n[s])[0]<=f[1]+1?f[1]=Math.max(f[1],p[1]):h.push(f=p);for(s=0;s<h.length;++s){var p=h[s];r.push(l(p[0])),p[1]>p[0]&&(p[1]+1>p[0]&&r.push("-"),r.push(l(p[1])))}return r.push("]"),r.join("")}function c(e){for(var i=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")),r=i.length,s=[],a=0,o=0;a<r;++a)"("===(d=i[a])?++o:"\\"===d.charAt(0)&&(c=+d.substring(1))&&(c<=o?s[c]=-1:i[a]=l(c));for(a=1;a<s.length;++a)-1===s[a]&&(s[a]=++t);for(a=0,o=0;a<r;++a)if("("===(d=i[a]))s[++o]||(i[a]="(?:");else if("\\"===d.charAt(0)){var c;(c=+d.substring(1))&&c<=o&&(i[a]="\\"+s[c])}for(a=0;a<r;++a)"^"===i[a]&&"^"!==i[a+1]&&(i[a]="");if(e.ignoreCase&&n)for(a=0;a<r;++a){var d,h=(d=i[a]).charAt(0);d.length>=2&&"["===h?i[a]=u(d):"\\"!==h&&(i[a]=d.replace(/[a-zA-Z]/g,(function(e){var t=e.charCodeAt(0);return"["+String.fromCharCode(-33&t,32|t)+"]"})))}return i.join("")}var d=[];for(r=0,s=e.length;r<s;++r){var h;if((h=e[r]).global||h.multiline)throw new Error(""+h);d.push("(?:"+c(h)+")")}return new RegExp(d.join("|"),i?"gi":"g")}(s)}();var r=t.length,s=function(e){for(var a=e.sourceCode,o=e.basePos,l=e.sourceNode,u=[o,v],c=0,d=a.match(n)||[],h={},f=0,p=d.length;f<p;++f){var g,m=d[f],y=h[m],b=void 0;if("string"==typeof y)g=!1;else{var E=i[m.charAt(0)];if(E)b=m.match(E[1]),y=E[0];else{for(var w=0;w<r;++w)if(E=t[w],b=m.match(E[1])){y=E[0];break}b||(y=v)}!(g=y.length>=5&&"lang-"===y.substring(0,5))||b&&"string"==typeof b[1]||(g=!1,y="src"),g||(h[m]=y)}var x=c;if(c+=m.length,g){var k=b[1],S=m.indexOf(k),C=S+k.length;b[2]&&(S=(C=m.length-b[2].length)-k.length);var A=y.substring(5);_(l,o+x,m.substring(0,S),s,u),_(l,o+x+S,k,T(A,k),u),_(l,o+x+C,m.substring(C),s,u)}else u.push(o+x,y)}e.decorations=u};return s}function x(e){var t=[],n=[];e.tripleQuotedStrings?t.push([h,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]):e.multiLineStrings?t.push([h,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):t.push([h,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),e.verbatimStrings&&n.push([h,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var i=e.hashComments;i&&(e.cStyleComments?(i>1?t.push([f,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):t.push([f,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),n.push([h,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):t.push([f,/^#[^\r\n]*/,null,"#"])),e.cStyleComments&&(n.push([f,/^\/\/[^\r\n]*/,null]),n.push([f,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var r=e.regexLiterals;if(r){var s=r>1?"":"\n\r",a=s?".":"[\\S\\s]",o="/(?=[^/*"+s+"])(?:[^/\\x5B\\x5C"+s+"]|\\x5C"+a+"|\\x5B(?:[^\\x5C\\x5D"+s+"]|\\x5C"+a+")*(?:\\x5D|$))+/";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+o+")")])}var l=e.types;l&&n.push([p,l]);var u=(""+e.keywords).replace(/^ | $/g,"");u.length&&n.push(["kwd",new RegExp("^(?:"+u.replace(/[\s,]+/g,"|")+")\\b"),null]),t.push([v,/^\s+/,null," \r\n\t "]);var c="^.[^\\s\\w.$@'\"`/\\\\]*";return e.regexLiterals&&(c+="(?!s*/)"),n.push([g,/^@[a-z_$][a-z_$@0-9]*/i,null],[p,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[v,/^[a-z_$][a-z_$@0-9]*/i,null],[g,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[v,/^\\[\s\S]?/,null],[m,new RegExp(c),null]),w(t,n)}var k=x({keywords:[i,s,r,a,o,l,u,c],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function S(e,t,n){for(var i=/(?:^|\s)nocode(?:\s|$)/,r=/\r\n?|\n/,s=e.ownerDocument,a=s.createElement("li");e.firstChild;)a.appendChild(e.firstChild);var o=[a];function l(e){var t=e.nodeType;if(1!=t||i.test(e.className)){if((3==t||4==t)&&n){var a=e.nodeValue,o=a.match(r);if(o){var c=a.substring(0,o.index);e.nodeValue=c;var d=a.substring(o.index+o[0].length);if(d)e.parentNode.insertBefore(s.createTextNode(d),e.nextSibling);u(e),c||e.parentNode.removeChild(e)}}}else if("br"===e.nodeName)u(e),e.parentNode&&e.parentNode.removeChild(e);else for(var h=e.firstChild;h;h=h.nextSibling)l(h)}function u(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;for(var t,n=function e(t,n){var i=n?t.cloneNode(!1):t,r=t.parentNode;if(r){var s=e(r,1),a=t.nextSibling;s.appendChild(i);for(var o=a;o;o=a)a=o.nextSibling,s.appendChild(o)}return i}(e.nextSibling,0);(t=n.parentNode)&&1===t.nodeType;)n=t;o.push(n)}for(var c=0;c<o.length;++c)l(o[c]);t===(0|t)&&o[0].setAttribute("value",t);var d=s.createElement("ol");d.className="linenums";for(var h=Math.max(0,t-1|0)||0,f=(c=0,o.length);c<f;++c)(a=o[c]).className="L"+(c+h)%10,a.firstChild||a.appendChild(s.createTextNode(" ")),d.appendChild(a);e.appendChild(d)}var C={};function A(t,n){for(var i=n.length;--i>=0;){var r=n[i];C.hasOwnProperty(r)?e.console&&console.warn("cannot override language handler %s",r):C[r]=t}}function T(e,t){return e&&C.hasOwnProperty(e)||(e=/^\s*</.test(t)?"default-markup":"default-code"),C[e]}function D(t){var n,i,r,s,a,o,l,u=t.langExtension;try{var c=(n=t.sourceNode,i=t.pre,r=/(?:^|\s)nocode(?:\s|$)/,s=[],a=0,o=[],l=0,function e(t){var n=t.nodeType;if(1==n){if(r.test(t.className))return;for(var u=t.firstChild;u;u=u.nextSibling)e(u);var c=t.nodeName.toLowerCase();"br"!==c&&"li"!==c||(s[l]="\n",o[l<<1]=a++,o[l++<<1|1]=t)}else if(3==n||4==n){var d=t.nodeValue;d.length&&(d=i?d.replace(/\r\n?/g,"\n"):d.replace(/[ \t\r\n]+/g," "),s[l]=d,o[l<<1]=a,a+=d.length,o[l++<<1|1]=t)}}(n),{sourceCode:s.join("").replace(/\n$/,""),spans:o}),d=c.sourceCode;t.sourceCode=d,t.spans=c.spans,t.basePos=0,T(u,d)(t),function(e){var t=/\bMSIE\s(\d+)/.exec(navigator.userAgent);t=t&&+t[1]<=8;var n,i,r=/\n/g,s=e.sourceCode,a=s.length,o=0,l=e.spans,u=l.length,c=0,d=e.decorations,h=d.length,f=0;for(d[h]=a,i=n=0;i<h;)d[i]!==d[i+2]?(d[n++]=d[i++],d[n++]=d[i++]):i+=2;for(h=n,i=n=0;i<h;){for(var p=d[i],g=d[i+1],m=i+2;m+2<=h&&d[m+1]===g;)m+=2;d[n++]=p,d[n++]=g,i=m}h=d.length=n;var v=e.sourceNode,y="";v&&(y=v.style.display,v.style.display="none");try{for(;c<u;){l[c];var _,b=l[c+2]||a,E=d[f+2]||a,w=(m=Math.min(b,E),l[c+1]);if(1!==w.nodeType&&(_=s.substring(o,m))){t&&(_=_.replace(r,"\r")),w.nodeValue=_;var x=w.ownerDocument,k=x.createElement("span");k.className=d[f+1];var S=w.parentNode;S.replaceChild(k,w),k.appendChild(w),o<b&&(l[c+1]=w=x.createTextNode(s.substring(m,b)),S.insertBefore(w,k.nextSibling))}(o=m)>=b&&(c+=2),o>=E&&(f+=2)}}finally{v&&(v.style.display=y)}}(t)}catch(t){e.console&&console.log(t&&t.stack||t)}}function L(e,t,n){var i=n||!1,r=t||null,s=document.createElement("div");return s.innerHTML="<pre>"+e+"</pre>",s=s.firstChild,i&&S(s,i,!0),D({langExtension:r,numberLines:i,sourceNode:s,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null}),s.innerHTML}function R(t,n){var i=n||document.body,r=i.ownerDocument||document;function s(e){return i.getElementsByTagName(e)}for(var a=[s("pre"),s("code"),s("xmp")],o=[],l=0;l<a.length;++l)for(var u=0,c=a[l].length;u<c;++u)o.push(a[l][u]);a=null;var d=Date;d.now||(d={now:function(){return+new Date}});var h=0,f=/\blang(?:uage)?-([\w.]+)(?!\S)/,p=/\bprettyprint\b/,g=/\bprettyprinted\b/,m=/pre|xmp/i,v=/^code$/i,y=/^(?:pre|code|xmp)$/i,_={};!function n(){for(var i=e.PR_SHOULD_USE_CONTINUATION?d.now()+250:1/0;h<o.length&&d.now()<i;h++){for(var s=o[h],a=_,l=s;l=l.previousSibling;){var u=l.nodeType,c=(7===u||8===u)&&l.nodeValue;if(c?!/^\??prettify\b/.test(c):3!==u||/\S/.test(l.nodeValue))break;if(c){a={},c.replace(/\b(\w+)=([\w:.%+-]+)/g,(function(e,t,n){a[t]=n}));break}}var b=s.className;if((a!==_||p.test(b))&&!g.test(b)){for(var w=!1,x=s.parentNode;x;x=x.parentNode){var k=x.tagName;if(y.test(k)&&x.className&&p.test(x.className)){w=!0;break}}if(!w){s.className+=" prettyprinted";var C,A,T=a.lang;if(!T)!(T=b.match(f))&&(C=E(s))&&v.test(C.tagName)&&(T=C.className.match(f)),T&&(T=T[1]);if(m.test(s.tagName))A=1;else{var L=s.currentStyle,R=r.defaultView,I=L?L.whiteSpace:R&&R.getComputedStyle?R.getComputedStyle(s,null).getPropertyValue("white-space"):0;A=I&&"pre"===I.substring(0,3)}var N=a.linenums;(N="true"===N||+N)||(N=!!(N=b.match(/\blinenums\b(?::(\d+))?/))&&(!N[1]||!N[1].length||+N[1])),N&&S(s,N,A),D({langExtension:T,sourceNode:s,numberLines:N,pre:A,sourceCode:null,basePos:null,spans:null,decorations:null})}}}h<o.length?e.setTimeout(n,250):"function"==typeof t&&t()}()}A(k,["default-code"]),A(w([],[[v,/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],[f,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[m,/^(?:<[%?]|[%?]>)/],["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"]),A(w([[v,/^[\s]+/,null," \t\r\n"],[y,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[m,/^[=<>\/]+/],["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"]),A(w([],[[y,/^[\s\S]+/]]),["uq.val"]),A(x({keywords:i,hashComments:!0,cStyleComments:!0,types:d}),["c","cc","cpp","cxx","cyc","m"]),A(x({keywords:"null,true,false"}),["json"]),A(x({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:d}),["cs"]),A(x({keywords:r,cStyleComments:!0}),["java"]),A(x({keywords:c,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),A(x({keywords:l,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),A(x({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),A(x({keywords:u,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),A(x({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),A(x({keywords:"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",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),A(w([],[[h,/^[\s\S]+/]]),["regex"]);var I=e.PR={createSimpleLexer:w,registerLangHandler:A,sourceDecorator:x,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:y,PR_COMMENT:f,PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:g,PR_NOCODE:"nocode",PR_PLAIN:v,PR_PUNCTUATION:m,PR_SOURCE:"src",PR_STRING:h,PR_TAG:"tag",PR_TYPE:p,prettyPrintOne:L,prettyPrint:R},N=e.define;"function"==typeof N&&N.amd&&N("google-code-prettify",[],(function(){return I}))}()},25769:function(e,t,n){"use strict";var i=n(98040),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,s,a,o,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(a=i(),o=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(i){if(i.stopPropagation(),t.format)if(i.preventDefault(),void 0===i.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=r[t.format]||r.default;window.clipboardData.setData(s,e)}else i.clipboardData.clearData(),i.clipboardData.setData(t.format,e);t.onCopy&&(i.preventDefault(),t.onCopy(i.clipboardData))})),document.body.appendChild(u),o.selectNodeContents(u),l.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(i){n&&console.error("unable to copy using execCommand: ",i),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(i){n&&console.error("unable to copy using clipboardData: ",i),n&&console.error("falling back to prompt"),s=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(s,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(o):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},24334:function(e,t,n){var i,r;r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:this,e.exports=function(n){"use strict";var r,s=(n=n||{}).Base64,a="2.6.4",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(e){for(var t={},n=0,i=e.length;n<i;n++)t[e.charAt(n)]=n;return t}(o),u=String.fromCharCode,c=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,h=function(e){return e.replace(d,c)},f=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[o.charAt(n>>>18),o.charAt(n>>>12&63),t>=2?"=":o.charAt(n>>>6&63),t>=1?"=":o.charAt(63&n)].join("")},p=n.btoa&&"function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,f)},g=function(e){return p(h(String(e)))},m=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},v=function(e,t){return t?m(g(e)):g(e)},y=function(e){return v(e,!0)};n.Uint8Array&&(r=function(e,t){for(var n="",i=0,r=e.length;i<r;i+=3){var s=e[i],a=e[i+1],l=e[i+2],u=s<<16|a<<8|l;n+=o.charAt(u>>>18)+o.charAt(u>>>12&63)+(void 0!==a?o.charAt(u>>>6&63):"=")+(void 0!==l?o.charAt(63&u):"=")}return t?m(n):n});var _,b=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,E=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u(55296+(t>>>10))+u(56320+(1023&t));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w=function(e){return e.replace(b,E)},x=function(e){var t=e.length,n=t%4,i=(t>0?l[e.charAt(0)]<<18:0)|(t>1?l[e.charAt(1)]<<12:0)|(t>2?l[e.charAt(2)]<<6:0)|(t>3?l[e.charAt(3)]:0),r=[u(i>>>16),u(i>>>8&255),u(255&i)];return r.length-=[0,0,2,1][n],r.join("")},k=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,x)},S=function(e){return k(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},C=function(e){return w(k(e))},A=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},T=function(e){return C(A(e))};n.Uint8Array&&(_=function(e){return Uint8Array.from(S(A(e)),(function(e){return e.charCodeAt(0)}))});var D=function(){var e=n.Base64;return n.Base64=s,e};if(n.Base64={VERSION:a,atob:S,btoa:p,fromBase64:T,toBase64:v,utob:h,encode:v,encodeURI:y,btou:w,decode:T,noConflict:D,fromUint8Array:r,toUint8Array:_},"function"==typeof Object.defineProperty){var L=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",L((function(){return T(this)}))),Object.defineProperty(String.prototype,"toBase64",L((function(e){return v(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",L((function(){return v(this,!0)})))}}return n.Meteor&&(Base64=n.Base64),e.exports?e.exports.Base64=n.Base64:void 0===(i=function(){return n.Base64}.apply(t,[]))||(e.exports=i),{Base64:n.Base64}}(r)},53184:function(e,t,n){"use strict";var i,r;i=[n(58553),n(87804),n(40998)],void 0===(r=function(e,t,n){return function(e,t,n){var i=function(t,n){return e.js_beautify(t,n)};return i.js=e.js_beautify,i.css=t.css_beautify,i.html=n.html_beautify,i.js_beautify=e.js_beautify,i.css_beautify=t.css_beautify,i.html_beautify=n.html_beautify,i}(e,t,n)}.apply(t,i))||(e.exports=r)},87804:function(e,t){var n;!function(){var i;!function(){"use strict";var e=[,,function(e){function t(e){this.__parent=e,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=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.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)},t.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},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.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(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&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},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},,,,function(e){function t(e,t){this.raw_options=n(e,t),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","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(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"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"==typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e){function t(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},,function(e,t,n){var i=n(16).Beautifier,r=n(17).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(17).Options,r=n(2).Output,s=n(8).InputScanner,a=new(0,n(13).Directives)(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=/\s/,c=/(?:\s|\n)+/g,d=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,h=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function f(e,t){this._source_text=e||"",this._options=new i(t),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"]}f.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},f.prototype.eatWhitespace=function(e){for(var t=u.test(this._input.peek()),n=0;u.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t},f.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,n=this._input.peek(t);n;){if("{"===n)return!0;if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)return!1;t++,n=this._input.peek(t)}return!1},f.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},f.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},f.prototype.indent=function(){this._indentLevel++},f.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&o.test(e||"")&&(t=e.match(o)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new s(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,f,p=0,g=!1,m=!1,v=!1,y=!1,_=!1,b=this._ch,E=!1;i=""!==this._input.read(c),f=b,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),b=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var w=this._input.read(d),x=a.get_directives(w);x&&"start"===x.ignore&&(w+=a.readIgnored(this._input)),this.print_string(w),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(h)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(i),this.print_string(this._ch);var k=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);k.match(/[ :]$/)&&(k=this.eatString(": ").replace(/\s+$/,""),this.print_string(k),this._output.space_before_token=!0),0===p&&-1!==k.indexOf(":")&&(m=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s+$/,""),this.print_string(S),this._output.space_before_token=!0),0===p&&-1!==S.indexOf(":")?(m=!0,this.indent()):S in this.NESTED_AT_RULE?(this._nestedLevel+=1,S in this.CONDITIONAL_GROUP_RULE&&(v=!0)):0!==p||m||(y=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)m&&(m=!1,this.outdent()),y=!1,v?(v=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===f?this._output.space_before_token=!1:","!==f&&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(),"{"===f&&this._output.trim(!0),m&&(this.outdent(),m=!1),this.print_string(this._ch),g=!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),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var C=0;C<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;C++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[C])){E=!0;break}!g&&!v||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||y||0!==p?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),m||(m=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var A='"'===f||"'"===f;this.preserveSingleSpace(A||i),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)E=!1,0===p?(m&&(this.outdent(),m=!1),y=!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(),p++,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(")")),p&&(p--,this.outdent()));else{var T=!1;this._input.lookBack("with")&&(T=!0),this.preserveSingleSpace(i||T),this.print_string(this._ch),m&&"$"===f&&this._options.selector_separator_newline?(this._output.add_new_line(),_=!0):(this.eatWhitespace(),p++,this.indent())}else if(")"===this._ch)p&&(p--,this.outdent()),_&&";"===this._input.peek()&&this._options.selector_separator_newline&&(_=!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||m&&!_||0!==p||y?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||m||0!==p)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(i),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),u.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var D='"'===f||"'"===f;this.preserveSingleSpace(D||i),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&E&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else 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&&u.test(this._ch)&&(this._ch=""));return this._output.get_code(t)},e.exports.Beautifier=f},function(e,t,n){var i=n(6).Options;function r(e){i.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 t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r<n.length;r++)"expand"!==n[r]?this.brace_style="collapse":this.brace_style=n[r]}r.prototype=new i,e.exports.Options=r}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}(15);i=n}();var r=i;void 0===(n=function(){return{css_beautify:r}}.apply(t,[]))||(e.exports=n)}()},40998:function(e,t,n){var i,r;!function(){var s;!function(){"use strict";var e=[,,function(e){function t(e){this.__parent=e,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=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.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)},t.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},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.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(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&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},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},function(e){e.exports.Token=function(e,t,n,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(e){function t(e,t){this.raw_options=n(e,t),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","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(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"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"==typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,n){var i=n(8).InputScanner,r=n(3).Token,s=n(10).TokenStream,a=n(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new i(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new s,this._reset();for(var t=new r(o.START,""),n=null,i=[],a=new s;t.type!==o.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)a.add(e),e=this._get_next_token(t,n);a.isEmpty()||(e.comments_before=a,a=new s),e.parent=n,this._is_opening(e)?(i.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=i.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(o.RAW,n):this._create_token(o.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new r(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=o},function(e){function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return 0===this.__tokens_length},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},t.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},t.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},e.exports.TokenStream=t},function(e,t,n){var i=n(12).Pattern;function r(e,t){i.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}r.prototype=new i,r.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},r.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 t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},r.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},r.prototype._create=function(){return new r(this._input,this)},r.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,i=[],r=e.exec(t);r;)i.push(t.substring(n,r.index)),n=r.index+r[0].length,r=e.exec(t);return n<t.length?i.push(t.substring(n,t.length)):i.push(""),i},e.exports.WhitespacePattern=r},function(e){function t(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}t.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},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},e.exports.Pattern=t},function(e){function t(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},function(e,t,n){var i=n(12).Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function s(e,t){i.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},r),this._excluded=Object.assign({},r),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var n=new i(e);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},s.prototype.read_options=function(e){var t=this._create();for(var n in r)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},s.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},s.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},s.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},s.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},e.exports.TemplatablePattern=s},,,,function(e,t,n){var i=n(19).Beautifier,r=n(20).Options;e.exports=function(e,t,n,r){return new i(e,t,n,r).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(20).Options,r=n(2).Output,s=n(21).Tokenizer,a=n(21).TOKEN,o=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,u=function(e,t){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new r(e,t)};u.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},u.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},u.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},u.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},u.prototype.print_preserved_newlines=function(e){var t=0;e.type!==a.TEXT&&e.previous.type!==a.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var n=0;n<t;n++)this.print_newline(n>0);return 0!==t},u.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(e){this._output.add_new_line(e)},u.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},u.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var c=function(e,t){var n=null,i=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),n=function(e){for(var t=null,n=e.next;n.type!==a.EOF&&e.closed!==n;){if(n.type===a.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===a.EQUALS&&n.next.next&&n.next.next.type===a.VALUE&&(t=n.next.next.text);break}n=n.next}return t}(t)||n,n.search("text/css")>-1?i="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":n.search(/test\/null/)>-1&&(i="null"),i):null};function d(e,t){return-1!==t.indexOf(e)}function h(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function f(e){this._printer=e,this._current_frame=null}function p(e,t,n,r){this._source_text=e||"",t=t||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null;var s=new i(t,"html");this._options=s,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}f.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},f.prototype.record_tag=function(e){var t=new h(this._current_frame,e,this._printer.indent_level);this._current_frame=t},f.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},f.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&-1===e.indexOf(n.tag);){if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},f.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},f.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},p.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&o.test(e)&&(t=e.match(o)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0],i={text:"",type:""},r=new g(this._options),c=new u(this._options,n),d=new s(e,this._options).tokenize();this._tag_stack=new f(c);for(var h=null,p=d.next();p.type!==a.EOF;)p.type===a.TAG_OPEN||p.type===a.COMMENT?r=h=this._handle_tag_open(c,p,r,i,d):p.type===a.ATTRIBUTE||p.type===a.EQUALS||p.type===a.VALUE||p.type===a.TEXT&&!r.tag_complete?h=this._handle_inside_tag(c,p,r,i):p.type===a.TAG_CLOSE?h=this._handle_tag_close(c,p,r):p.type===a.TEXT?h=this._handle_text(c,p,r):p.type===a.CONTROL_FLOW_OPEN?h=this._handle_control_flow_open(c,p):p.type===a.CONTROL_FLOW_CLOSE?h=this._handle_control_flow_close(c,p):c.add_raw_token(p),i=h,p=d.next();return c._output.get_code(t)},p.prototype._handle_control_flow_open=function(e,t){var n={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),n},p.prototype._handle_control_flow_close=function(e,t){var n={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),n},p.prototype._handle_tag_close=function(e,t,n){var i={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),i},p.prototype._handle_inside_tag=function(e,t,n,i){var r=n.has_wrapped_attrs,s={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):"{"===n.tag_start_char&&t.type===a.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===a.ATTRIBUTE?e.set_space_before_token(!0):(t.type===a.EQUALS||t.type===a.VALUE&&t.previous.type===a.EQUALS)&&e.set_space_before_token(!1),t.type===a.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),r=r||0!==t.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(i.type!==a.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),r=!0)),e.print_token(t),r=r||e.previous_token_wrapped(),n.has_wrapped_attrs=r),s},p.prototype._handle_text=function(e,t,n){var i={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),i},p.prototype._print_custom_beatifier_text=function(e,t,n){var i=this;if(""!==t.text){var r,s=t.text,a=1,o="",l="";"javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?r=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?r=this._css_beautify:"html"===n.custom_beautifier_name&&(r=function(e,t){return new p(e,t,i._js_beautify,i._css_beautify).beautify()}),"keep"===this._options.indent_scripts?a=0:"separate"===this._options.indent_scripts&&(a=-e.indent_level);var u=e.get_full_indent(a);if(s=s.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===s[0]&&s.match(/^(<!--|<!\[CDATA\[)/)){var c=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(s);if(!c)return void e.add_raw_token(t);o=u+c[1]+"\n",s=c[4],c[5]&&(l=u+c[5]),s=s.replace(/\n[ \t]*$/,""),(c[2]||-1!==c[3].indexOf("\n"))&&(c=c[3].match(/[ \t]+$/))&&(t.whitespace_before=c[0])}if(s)if(r){var d=function(){this.eol="\n"};d.prototype=this._options.raw_options,s=r(u+s,new d)}else{var h=t.whitespace_before;h&&(s=s.replace(new RegExp("\n("+h+")?","g"),"\n")),s=u+s.replace(/\n/g,"\n"+u)}o&&(s=s?o+s+"\n"+l:o+l),e.print_newline(!1),s&&(t.text=s,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},p.prototype._handle_tag_open=function(e,t,n,i,r){var s=this._get_tag_open_token(t);if(!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||t.type!==a.TAG_OPEN||s.is_start_tag?(e.traverse_whitespace(t),this._set_tag_position(e,t,s,n,i),s.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),s.start_tag_token=this._tag_stack.try_pop(s.tag_name)),s.is_start_tag&&this._is_wrap_attributes_force){var o,l=0;do{(o=r.peek(l)).type===a.ATTRIBUTE&&(s.attr_count+=1),l+=1}while(o.type!==a.EOF&&o.type!==a.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(s.alignment_size=t.text.length+1),s.tag_complete||s.is_unformatted||(e.alignment_size=s.alignment_size),s};var g=function(e,t,n){if(this.parent=t||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="",n){var i;this.tag_start_char=n.text[0],this.text=n.text,"<"===this.tag_start_char?(i=n.text.match(/^<([^\s>]*)/),this.tag_check=i?i[1]:""):(i=n.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=i?i[1]:"",(n.text.startsWith("{{#>")||n.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==n.next?this.tag_check=n.next.text.split(" ")[0]:this.tag_check=n.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),n.type===a.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||n.closed&&"/>"===n.closed.text;var r=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(r=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(!e.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(r)))}else this.tag_complete=!0};p.prototype._get_tag_open_token=function(e){var t=new g(this._options,this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||d(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&d(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&d(t.tag_check,this._options.content_unformatted),t.is_inline_element=d(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},p.prototype._set_tag_position=function(e,t,n,i,r){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=c(n.tag_check,t)))),d(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1);"!--"===n.tag_name&&r.type===a.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n))}else if(n.is_end_tag){var s=!1;s=(s=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(r.type===a.TAG_CLOSE&&n.start_tag_token===i)&&"TK_CONTENT"!==r.type,(n.is_content_unformatted||n.is_unformatted)&&(s=!1),s&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===r.type&&!n.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n)},p.prototype._calcluate_parent_multiline=function(e,t){!t.parent||!e._output.just_added_newline()||(t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element||(t.parent.multiline_content=!0)};var m=["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"],v=["a","audio","del","ins","map","noscript","video"];p.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==m.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==v.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==e.tag_name&&"td"!==e.tag_name||(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},e.exports.Beautifier=p},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(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"])}r.prototype=new i,e.exports.Options=r},function(e,t,n){var i=n(9).Tokenizer,r=n(9).TOKEN,s=n(13).Directives,a=n(14).TemplatablePattern,o=n(12).Pattern,l={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:r.START,RAW:r.RAW,EOF:r.EOF},u=new s(/<\!--/,/-->/),c=function(e,t){i.call(this,e,t),this._current_tag_name="";var n=new a(this._input).read_options(this._options),r=new o(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),word_control_flow_close_excluded:n.until(/[\n\r\t <}]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),angular_control_flow_start:r.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:r.starting_with(/{{!--/).until_after(/--}}/),handlebars:r.starting_with(/{{/).until_after(/}}/),handlebars_open:r.until(/[\n\r\t }]/),handlebars_raw_close:r.until(/}}/),comment:r.starting_with(/<!--/).until_after(/-->/),cdata:r.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:r.starting_with(/<!\[/).until_after(/]>/),processing:r.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 s=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=r.matching(s).until_after(s)}};(c.prototype=new i)._is_comment=function(e){return!1},c.prototype._is_opening=function(e){return e.type===l.TAG_OPEN||e.type===l.CONTROL_FLOW_OPEN},c.prototype._is_closing=function(e,t){return e.type===l.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])||e.type===l.CONTROL_FLOW_CLOSE&&"}"===e.text&&t.text.endsWith("{")},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(l.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(i,t))||this._read_attribute(i,e,t))||this._read_close(i,t))||this._read_script_and_style(i,e))||this._read_control_flows(i,t))||this._read_raw_content(i,e,t))||this._read_content_word(i,t))||this._read_comment_or_cdata(i))||this._read_processing(i))||this._read_open(i,t))||this._create_token(l.UNKNOWN,this._input.next())},c.prototype._read_comment_or_cdata=function(e){var t=null,n=null,i=null;"<"===e&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(i=u.get_directives(n))&&"start"===i.ignore&&(n+=u.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=i));return t},c.prototype._read_processing=function(e){var t=null,n=null;if("<"===e){var i=this._input.peek(1);"!"!==i&&"?"!==i||(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((t=this._create_token(l.COMMENT,n)).directives=null)}return t},c.prototype._read_open=function(e,t){var n=null,i=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||"<"===e&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(l.TAG_OPEN,n)),i},c.prototype._read_open_handlebars=function(e,t){var n=null,i=null;return t&&t.type!==l.CONTROL_FLOW_OPEN||(this._options.templating.includes("angular")||this._options.indent_handlebars)&&"{"===e&&"{"===this._input.peek(1)&&(this._options.indent_handlebars&&"!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),i=this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(l.TAG_OPEN,n))),i},c.prototype._read_control_flows=function(e,t){var n="",i=null;if(!this._options.templating.includes("angular"))return i;if("@"===e){if(""===(n=this.__patterns.angular_control_flow_start.read()))return i;for(var r=n.endsWith("(")?1:0,s=0;!n.endsWith("{")||r!==s;){var a=this._input.next();if(null===a)break;"("===a?r++:")"===a&&s++,n+=a}i=this._create_token(l.CONTROL_FLOW_OPEN,n)}else"}"===e&&t&&t.type===l.CONTROL_FLOW_OPEN&&(n=this._input.next(),i=this._create_token(l.CONTROL_FLOW_CLOSE,n));return i},c.prototype._read_close=function(e,t){var n=null,i=null;return t&&t.type===l.TAG_OPEN&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),i=this._create_token(l.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(l.TAG_CLOSE,"}}"))),i},c.prototype._read_attribute=function(e,t,n){var i=null,r="";if(n&&"<"===n.text[0])if("="===e)i=this._create_token(l.EQUALS,this._input.next());else if('"'===e||"'"===e){var s=this._input.next();s+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(l.VALUE,s)}else(r=this.__patterns.attribute.read())&&(i=t.type===l.EQUALS?this._create_token(l.VALUE,r):this._create_token(l.ATTRIBUTE,r));return i},c.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},c.prototype._read_raw_content=function(e,t,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var r=t.opened.text.substr(1).toLowerCase();this._is_content_unformatted(r)&&(i=this._input.readUntil(new RegExp("</"+r+"[\\n\\r\\t ]*?>","ig")))}return i?this._create_token(l.TEXT,i):null},c.prototype._read_script_and_style=function(e,t){if(t.type===l.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var n=t.opened.text.substr(1).toLowerCase();if("script"===n||"style"===n){var i=this._read_comment_or_cdata(e);if(i)return i.type=l.TEXT,i;var r=this._input.readUntil(new RegExp("</"+n+"[\\n\\r\\t ]*?>","ig"));if(r)return this._create_token(l.TEXT,r)}}return null},c.prototype._read_content_word=function(e,t){var n="";return this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(n=this.__patterns.unformatted_content_delimiter.read()),n||(n=t&&t.type===l.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),n?this._create_token(l.TEXT,n):null},e.exports.Tokenizer=c,e.exports.TOKEN=l}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}(18);s=n}();var a=s;i=[n,n(58553),n(87804)],r=function(e){var t=n(58553),i=n(87804);return{html_beautify:function(e,n){return a(e,n,t.js_beautify,i.css_beautify)}}}.apply(t,i),void 0===r||(e.exports=r)}()},58553:function(e,t){var n;!function(){var i;!function(){"use strict";var e=[function(e,t,n){var i=n(1).Beautifier,r=n(5).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(2).Output,r=n(3).Token,s=n(4),a=n(5).Options,o=n(7).Tokenizer,l=n(7).line_starters,u=n(7).positionable_operators,c=n(7).TOKEN;function d(e,t){return-1!==t.indexOf(e)}function h(e,t){return e&&e.type===c.RESERVED&&e.text===t}function f(e,t){return e&&e.type===c.RESERVED&&d(e.text,t)}var p=["case","return","do","if","throw","else","await","break","continue","async"],g=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].replace(/-/g,"_")]=e[n];return t}(["before-newline","after-newline","preserve-newline"]),m=[g.before_newline,g.preserve_newline],v="BlockStatement",y="Statement",_="ObjectLiteral",b="ArrayLiteral",E="ForInitializer",w="Conditional",x="Expression";function k(e,t){t.multiline_frame||t.mode===E||t.mode===w||e.remove_indent(t.start_line_index)}function S(e){return e===b}function C(e){return d(e,[x,E,w])}function A(e,t){t=t||{},this._source_text=e||"",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 a(t)}A.prototype.create_flags=function(e,t){var n=0;return e&&(n=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>n&&(n=e.line_indent_level)),{mode:t,parent:e,last_token:e?e.last_token:new r(c.START_BLOCK,""),last_word:e?e.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:n,alignment:0,line_indent_level:e?e.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0}},A.prototype._reset=function(e){var t=e.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new i(this._options,t),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(v);var n=new o(e,this._options);return this._tokens=n.tokenize(),e},A.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._reset(this._source_text),t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&s.lineBreak.test(e||"")&&(t=e.match(s.lineBreak)[0]));for(var n=this._tokens.next();n;)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return this._output.get_code(t)},A.prototype.handle_token=function(e,t){e.type===c.START_EXPR?this.handle_start_expr(e):e.type===c.END_EXPR?this.handle_end_expr(e):e.type===c.START_BLOCK?this.handle_start_block(e):e.type===c.END_BLOCK?this.handle_end_block(e):e.type===c.WORD||e.type===c.RESERVED?this.handle_word(e):e.type===c.SEMICOLON?this.handle_semicolon(e):e.type===c.STRING?this.handle_string(e):e.type===c.EQUALS?this.handle_equals(e):e.type===c.OPERATOR?this.handle_operator(e):e.type===c.COMMA?this.handle_comma(e):e.type===c.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===c.COMMENT?this.handle_comment(e,t):e.type===c.DOT?this.handle_dot(e):e.type===c.EOF?this.handle_eof(e):(e.type,c.UNKNOWN,this.handle_unknown(e,t))},A.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,i=this._options.keep_array_indentation&&S(this._flags.mode);if(e.comments_before)for(var r=e.comments_before.next();r;)this.handle_whitespace_and_comments(r,t),this.handle_token(r,t),r=e.comments_before.next();if(i)for(var s=0;s<n;s+=1)this.print_newline(s>0,t);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,t);for(var a=1;a<n;a+=1)this.print_newline(!0,t)}};var T=["async","break","continue","return","throw","yield"];A.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=void 0!==t&&t,!this._output.just_added_newline()){var n=this._options.preserve_newlines&&e.newlines||t;if(d(this._flags.last_token.text,u)||d(e.text,u)){var i=d(this._flags.last_token.text,u)&&d(this._options.operator_position,m)||d(e.text,u);n=n&&i}if(n)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(f(this._flags.last_token,T))return;this._output.set_wrap_point()}}},A.prototype.print_newline=function(e,t){if(!t&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==c.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var n=this._tokens.peek();!(this._flags.mode!==y||this._flags.if_block&&h(n,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)},A.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&("["===e.text||S(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(e.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))},A.prototype.print_token=function(e){if(this._output.raw)this._output.add_raw_token(e);else{if(this._options.comma_first&&e.previous&&e.previous.type===c.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var t=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(t),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(e),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(e),this._output.non_breaking_space=!0,this._output.add_token(e.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}},A.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},A.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))},A.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},A.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===y&&k(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},A.prototype.start_of_object_property=function(){return this._flags.parent.mode===_&&this._flags.mode===y&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||f(this._flags.last_token,["get","set"]))},A.prototype.start_of_statement=function(e){var t=!1;return!!(t=(t=(t=(t=(t=(t=(t=t||f(this._flags.last_token,["var","let","const"])&&e.type===c.WORD)||h(this._flags.last_token,"do"))||!(this._flags.parent.mode===_&&this._flags.mode===y)&&f(this._flags.last_token,T)&&!e.newlines)||h(this._flags.last_token,"else")&&!(h(e,"if")&&!e.comments_before))||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===E||this._previous_flags.mode===w))||this._flags.last_token.type===c.WORD&&this._flags.mode===v&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==c.WORD&&e.type!==c.RESERVED)||this._flags.mode===_&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||f(this._flags.last_token,["get","set"])))&&(this.set_mode(y),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,f(e,["do","for","if","while"])),!0)},A.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=x;if("["===e.text){if(this._flags.last_token.type===c.WORD||")"===this._flags.last_token.text)return f(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));t=b,S(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()),d(this._flags.last_token.type,[c.START_EXPR,c.END_EXPR,c.WORD,c.OPERATOR,c.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===c.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=E):d(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=w):d(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===e.whitespace_before?this._output.space_before_token=!1:(d(this._flags.last_token.text,l)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===c.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var i=this._tokens.peek(-4);f(n,["async","function"])||"*"===n.text&&f(i,["async","function"])?this._output.space_before_token=!0:this._flags.mode===_?"{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==i.text&&","!==i.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(e);(this._flags.last_token.type===c.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(d(this._last_last_text,["function","yield"])||this._flags.mode===_&&d(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===c.START_BLOCK?this.print_newline():this._flags.last_token.type!==c.END_EXPR&&this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==c.COMMA||this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},A.prototype.handle_end_expr=function(e){for(;this._flags.mode===y;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&S(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==c.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(e),this.restore_mode(),k(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===w&&(this._previous_flags.mode=x,this._flags.do_block=!1,this._flags.do_while=!1)},A.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===c.END_EXPR?(this.set_mode(v),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(v):n&&(d(n.text,[":",","])&&d(t.type,[c.STRING,c.WORD,c.RESERVED])||d(t.text,["get","set","..."])&&d(n.type,[c.WORD,c.RESERVED]))?d(this._last_last_text,["class","interface"])&&!d(n.text,[":",","])?this.set_mode(v):this.set_mode(_):this._flags.last_token.type===c.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(v):d(this._flags.last_token.type,[c.EQUALS,c.START_EXPR,c.COMMA,c.OPERATOR])||f(this._flags.last_token,["return","throw","import","default"])?this.set_mode(_):this.set_mode(v),this._flags.last_token&&f(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var i=!t.comments_before&&"}"===t.text,r=i&&"function"===this._flags.last_word&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var s=0,a=null;this._flags.inline_frame=!0;do{if(s+=1,(a=this._tokens.peek(s-1)).newlines){this._flags.inline_frame=!1;break}}while(a.type!==c.EOF&&(a.type!==c.END_BLOCK||a.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(r||this._flags.last_token.type===c.EQUALS||f(this._flags.last_token,p)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!S(this._previous_flags.mode)||this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.COMMA||((this._flags.last_token.type===c.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==c.OPERATOR&&this._flags.last_token.type!==c.START_EXPR&&(d(this._flags.last_token.type,[c.START_BLOCK,c.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),i||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},A.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===y;)this.restore_mode();var t=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(S(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(e)},A.prototype.handle_word=function(e){if(e.type===c.RESERVED)if(d(e.text,["set","get"])&&this._flags.mode!==_)e.type=c.WORD;else if("import"===e.text&&d(this._tokens.peek().text,["(","."]))e.type=c.WORD;else if(d(e.text,["as","from"])&&!this._flags.import_block)e.type=c.WORD;else if(this._flags.mode===_){":"===this._tokens.peek().text&&(e.type=c.WORD)}if(this.start_of_statement(e)?f(this._flags.last_token,["var","let","const"])&&e.type===c.WORD&&(this._flags.declaration_statement=!0):!e.newlines||C(this._flags.mode)||this._flags.last_token.type===c.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===c.EQUALS||!this._options.preserve_newlines&&f(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(e):(this.handle_whitespace_and_comments(e),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(h(e,"while"))return this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&h(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===y;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&f(e,["case","default"]))return 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(e),void(this._flags.in_case=!0);if(this._flags.last_token.type!==c.COMMA&&this._flags.last_token.type!==c.START_EXPR&&this._flags.last_token.type!==c.EQUALS&&this._flags.last_token.type!==c.OPERATOR||this.start_of_object_property()||d(this._flags.last_token.text,["+","-"])&&":"===this._last_last_text&&this._flags.parent.mode===_||this.allow_wrap_or_preserved_newline(e),h(e,"function"))return(d(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!d(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==c.OPERATOR)&&(this._output.just_added_blankline()||e.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD?f(this._flags.last_token,["get","set","new","export"])||f(this._flags.last_token,T)||h(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===c.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!C(this._flags.mode)&&!S(this._flags.mode))&&this.print_newline(),this.print_token(e),void(this._flags.last_word=e.text);var t="NONE";(this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?t="SPACE":f(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?t="NEWLINE":(t="SPACE",this._output.space_before_token=!0):t="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&this._flags.mode===v?t="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&C(this._flags.mode)?t="SPACE":this._flags.last_token.type===c.STRING?t="NEWLINE":this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||"*"===this._flags.last_token.text&&(d(this._last_last_text,["function","yield"])||this._flags.mode===_&&d(this._last_last_text,["{",","]))?t="SPACE":this._flags.last_token.type===c.START_BLOCK?t=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===c.END_EXPR&&(this._output.space_before_token=!0,t="NEWLINE"),f(e,l)&&")"!==this._flags.last_token.text&&(t=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),f(e,["else","catch","finally"]))?(this._flags.last_token.type!==c.END_BLOCK||this._previous_flags.mode!==v||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===t?f(this._flags.last_token,p)||"declare"===this._flags.last_token.text&&f(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==c.END_EXPR?this._flags.last_token.type===c.START_EXPR&&f(e,["var","let","const"])||":"===this._flags.last_token.text||(h(e,"if")&&h(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):f(e,l)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&S(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===t&&(this._output.space_before_token=!0);!e.previous||e.previous.type!==c.WORD&&e.previous.type!==c.RESERVED||(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===c.RESERVED&&("do"===e.text?this._flags.do_block=!0:"if"===e.text?this._flags.if_block=!0:"import"===e.text?this._flags.import_block=!0:this._flags.import_block&&h(e,"from")&&(this._flags.import_block=!1))},A.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();!(this._flags.mode!==y||this._flags.if_block&&h(t,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},A.prototype.handle_string=function(e){(!e.text.startsWith("`")||0!==e.newlines||""!==e.whitespace_before||")"!==e.previous.text&&this._flags.last_token.type!==c.WORD)&&(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):!e.text.startsWith("`")||this._flags.last_token.type!==c.END_EXPR||"]"!==e.previous.text&&")"!==e.previous.text||0!==e.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(e)},A.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0},A.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(C(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(e)):this._flags.mode===_||this._flags.mode===y&&this._flags.parent.mode===_?(this._flags.mode===y&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},A.prototype.handle_operator=function(e){var t="*"===e.text&&(f(this._flags.last_token,["function","yield"])||d(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),n=d(e.text,["-","+"])&&(d(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||d(this._flags.last_token.text,l)||","===this._flags.last_token.text);if(this.start_of_statement(e));else{var i=!t;this.handle_whitespace_and_comments(e,i)}if("*"!==e.text||this._flags.last_token.type!==c.DOT)if("::"!==e.text)if(d(e.text,["-","+"])&&this.start_of_object_property())this.print_token(e);else{if(this._flags.last_token.type===c.OPERATOR&&d(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(e),":"===e.text&&this._flags.in_case)return this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==c.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var r=!0,s=!0,a=!1;if(":"===e.text?0===this._flags.ternary_depth?r=!1:(this._flags.ternary_depth-=1,a=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!n&&!t&&this._options.preserve_newlines&&d(e.text,u)){var o=":"===e.text,h=o&&a,_=o&&!a;switch(this._options.operator_position){case g.before_newline:return this._output.space_before_token=!_,this.print_token(e),o&&!h||this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case g.after_newline:return this._output.space_before_token=!0,!o||h?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),void(this._output.space_before_token=!0);case g.preserve_newline:return _||this.allow_wrap_or_preserved_newline(e),r=!(this._output.just_added_newline()||_),this._output.space_before_token=r,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),r=!1;var b=this._tokens.peek();s=b&&d(b.type,[c.WORD,c.RESERVED])}else if("..."===e.text)this.allow_wrap_or_preserved_newline(e),r=this._flags.last_token.type===c.START_BLOCK,s=!1;else if(d(e.text,["--","++","!","~"])||n){if(this._flags.last_token.type!==c.COMMA&&this._flags.last_token.type!==c.START_EXPR||this.allow_wrap_or_preserved_newline(e),r=!1,s=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var E=f(this._flags.last_token,p)&&e.newlines;E&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(E,!0)}";"===this._flags.last_token.text&&C(this._flags.mode)&&(r=!0),this._flags.last_token.type===c.RESERVED?r=!0:this._flags.last_token.type===c.END_EXPR?r=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===c.OPERATOR&&(r=d(e.text,["--","-","++","+"])&&d(this._flags.last_token.text,["--","-","++","+"]),d(e.text,["+","-"])&&d(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode!==v||this._flags.inline_frame)&&this._flags.mode!==y||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()}this._output.space_before_token=this._output.space_before_token||r,this.print_token(e),this._output.space_before_token=s}else this.print_token(e);else this.print_token(e)},A.prototype.handle_block_comment=function(e,t){return this._output.raw?(this._output.add_raw_token(e),void(e.directives&&"end"===e.directives.preserve&&(this._output.raw=this._options.test_output_raw))):e.directives?(this.print_newline(!1,t),this.print_token(e),"start"===e.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):s.newline.test(e.text)||e.newlines?void this.print_block_commment(e,t):(this._output.space_before_token=!0,this.print_token(e),void(this._output.space_before_token=!0))},A.prototype.print_block_commment=function(e,t){var n,i=function(e){for(var t=[],n=(e=e.replace(s.allLineBreaks,"\n")).indexOf("\n");-1!==n;)t.push(e.substring(0,n)),n=(e=e.substring(n+1)).indexOf("\n");return e.length&&t.push(e),t}(e.text),r=!1,a=!1,o=e.whitespace_before,l=o.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(i[0]),this.print_newline(!1,t),i.length>1){for(r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].trim().charAt(0)!==t)return!1;return!0}(i=i.slice(1),"*"),a=function(e,t){for(var n,i=0,r=e.length;i<r;i++)if((n=e[i])&&0!==n.indexOf(t))return!1;return!0}(i,o),r&&(this._flags.alignment=1),n=0;n<i.length;n++)r?(this.print_token_line_indentation(e),this._output.add_token(i[n].replace(/^\s+/g,""))):a&&i[n]?(this.print_token_line_indentation(e),this._output.add_token(i[n].substring(l))):(this._output.current_line.set_indent(-1),this._output.add_token(i[n])),this.print_newline(!1,t);this._flags.alignment=0}},A.prototype.handle_comment=function(e,t){e.newlines?this.print_newline(!1,t):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(e),this.print_newline(!1,t)},A.prototype.handle_dot=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),f(this._flags.last_token,p)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(e,")"===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(e)},A.prototype.handle_unknown=function(e,t){this.print_token(e),"\n"===e.text[e.text.length-1]&&this.print_newline(!1,t)},A.prototype.handle_eof=function(e){for(;this._flags.mode===y;)this.restore_mode();this.handle_whitespace_and_comments(e)},e.exports.Beautifier=A},function(e){function t(e){this.__parent=e,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=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.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)},t.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},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.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(" "))},i.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&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},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},function(e){e.exports.Token=function(e,t,n,i){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},function(e,t){var n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",i="\\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-\\u0a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edf\\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",r="\\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",s="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",a="(?:"+s+"|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+i+"])",o="(?:"+s+"|["+n+i+r+"])*";t.identifier=new RegExp(a+o,"g"),t.identifierStart=new RegExp(a),t.identifierMatch=new RegExp("(?:"+s+"|["+n+i+r+"])+");t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp("\r\n|"+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g")},function(e,t,n){var i=n(6).Options,r=["before-newline","after-newline","preserve-newline"];function s(e){i.call(this,e,"js");var t=this.raw_options.brace_style||null;"expand-strict"===t?this.raw_options.brace_style="expand":"collapse-preserve-inline"===t?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var s=0;s<n.length;s++)"preserve-inline"===n[s]?this.brace_preserve_inline=!0:this.brace_style=n[s];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",r),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}s.prototype=new i,e.exports.Options=s},function(e){function t(e,t){this.raw_options=n(e,t),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","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(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"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e){n[t.replace(/-/g,"_")]=e[t]}return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},function(e,t,n){var i=n(8).InputScanner,r=n(9).Tokenizer,s=n(9).TOKEN,a=n(13).Directives,o=n(4),l=n(12).Pattern,u=n(14).TemplatablePattern;function c(e,t){return-1!==t.indexOf(e)}var d={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:s.START,RAW:s.RAW,EOF:s.EOF},h=new a(/\/\*/,/\*\//),f=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,p=/[0-9]/,g=/[^\d\.]/,m=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),v=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";v=(v="\\?\\.(?!\\d) "+(v=v.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var y,_=new RegExp(v),b="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),E=b.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),w=new RegExp("^(?:"+E.join("|")+")$"),x=function(e,t){r.call(this,e,t),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new l(this._input),i=new u(this._input).read_options(this._options);this.__patterns={template:i,identifier:i.starting_with(o.identifier).matching(o.identifierMatch),number:n.matching(f),punct:n.matching(_),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(/<!--/),html_comment_end:n.matching(/-->/),include:n.starting_with(/#include/).until_after(o.lineBreak),shebang:n.starting_with(/#!/).until_after(o.lineBreak),xml:n.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:i.until(/['\\\n\r\u2028\u2029]/),double_quote:i.until(/["\\\n\r\u2028\u2029]/),template_text:i.until(/[`\\$]/),template_expression:i.until(/[`}\\]/)}};(x.prototype=new r)._is_comment=function(e){return e.type===d.COMMENT||e.type===d.BLOCK_COMMENT||e.type===d.UNKNOWN},x.prototype._is_opening=function(e){return e.type===d.START_BLOCK||e.type===d.START_EXPR},x.prototype._is_closing=function(e,t){return(e.type===d.END_BLOCK||e.type===d.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},x.prototype._reset=function(){y=!1},x.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(d.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_non_javascript(i))||this._read_string(i))||this._read_pair(i,this._input.peek(1)))||this._read_word(e))||this._read_singles(i))||this._read_comment(i))||this._read_regexp(i,e))||this._read_xml(i,e))||this._read_punctuation())||this._create_token(d.UNKNOWN,this._input.next())},x.prototype._read_word=function(e){var t;return""!==(t=this.__patterns.identifier.read())?(t=t.replace(o.allLineBreaks,"\n"),e.type!==d.DOT&&(e.type!==d.RESERVED||"set"!==e.text&&"get"!==e.text)&&w.test(t)?"in"!==t&&"of"!==t||e.type!==d.WORD&&e.type!==d.STRING?this._create_token(d.RESERVED,t):this._create_token(d.OPERATOR,t):this._create_token(d.WORD,t)):""!==(t=this.__patterns.number.read())?this._create_token(d.WORD,t):void 0},x.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(d.START_EXPR,e):")"===e||"]"===e?t=this._create_token(d.END_EXPR,e):"{"===e?t=this._create_token(d.START_BLOCK,e):"}"===e?t=this._create_token(d.END_BLOCK,e):";"===e?t=this._create_token(d.SEMICOLON,e):"."===e&&g.test(this._input.peek(1))?t=this._create_token(d.DOT,e):","===e&&(t=this._create_token(d.COMMA,e)),t&&this._input.next(),t},x.prototype._read_pair=function(e,t){var n=null;return"#"===e&&"{"===t&&(n=this._create_token(d.START_BLOCK,e+t)),n&&(this._input.next(),this._input.next()),n},x.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(d.EQUALS,e):"?."===e?this._create_token(d.DOT,e):this._create_token(d.OPERATOR,e)},x.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read()))return this._create_token(d.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read())return this._create_token(d.UNKNOWN,t.trim()+"\n");e=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(p)){do{n+=e=this._input.next()}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(d.WORD,n)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(o.newline);)t+=this._input.next();return y=!0,this._create_token(d.COMMENT,t)}}else if(y&&"-"===e&&(t=this.__patterns.html_comment_end.read()))return y=!1,this._create_token(d.COMMENT,t);return null},x.prototype._read_comment=function(e){var t=null;if("/"===e){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var i=h.get_directives(n);i&&"start"===i.ignore&&(n+=h.readIgnored(this._input)),n=n.replace(o.allLineBreaks,"\n"),(t=this._create_token(d.BLOCK_COMMENT,n)).directives=i}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),t=this._create_token(d.COMMENT,n))}return t},x.prototype._read_string=function(e){if("`"===e||"'"===e||'"'===e){var t=this._input.next();return this.has_char_escapes=!1,t+="`"===e?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(e),this.has_char_escapes&&this._options.unescape_strings&&(t=function(e){var t="",n=0,r=new i(e),s=null;for(;r.hasNext();)if((s=r.match(/([\s]|[^\\]|\\\\)+/g))&&(t+=s[0]),"\\"===r.peek()){if(r.next(),"x"===r.peek())s=r.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==r.peek()){t+="\\",r.hasNext()&&(t+=r.next());continue}(s=r.match(/u([0-9A-Fa-f]{4})/g))||(s=r.match(/u\{([0-9A-Fa-f]+)\}/g))}if(!s)return e;if((n=parseInt(s[1],16))>126&&n<=255&&0===s[0].indexOf("x"))return e;t+=n>=0&&n<32||n>1114111?"\\"+s[0]:34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return t}(t)),this._input.peek()===e&&(t+=this._input.next()),t=t.replace(o.allLineBreaks,"\n"),this._create_token(d.STRING,t)}return null},x.prototype._allow_regexp_or_xml=function(e){return e.type===d.RESERVED&&c(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===d.END_EXPR&&")"===e.text&&e.opened.previous.type===d.RESERVED&&c(e.opened.previous.text,["if","while","for"])||c(e.type,[d.COMMENT,d.START_EXPR,d.START_BLOCK,d.START,d.END_BLOCK,d.OPERATOR,d.EQUALS,d.EOF,d.SEMICOLON,d.COMMA])},x.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){for(var n=this._input.next(),i=!1,r=!1;this._input.hasNext()&&(i||r||this._input.peek()!==e)&&!this._input.testChar(o.newline);)n+=this._input.peek(),i?i=!1:(i="\\"===this._input.peek(),"["===this._input.peek()?r=!0:"]"===this._input.peek()&&(r=!1)),this._input.next();return this._input.peek()===e&&(n+=this._input.next(),n+=this._input.read(o.identifier)),this._create_token(d.STRING,n)}return null},x.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var n="",i=this.__patterns.xml.read_match();if(i){for(var r=i[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),s=0===r.indexOf("{"),a=0;i;){var l=!!i[1],u=i[2];if(!(!!i[i.length-1]||"![CDATA["===u.slice(0,8))&&(u===r||s&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--a:++a),n+=i[0],a<=0)break;i=this.__patterns.xml.read_match()}return i||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(o.allLineBreaks,"\n"),this._create_token(d.STRING,n)}}return null},x.prototype._read_string_recursive=function(e,t,n){var i,r;"'"===e?r=this.__patterns.single_quote:'"'===e?r=this.__patterns.double_quote:"`"===e?r=this.__patterns.template_text:"}"===e&&(r=this.__patterns.template_expression);for(var s=r.read(),a="";this._input.hasNext();){if((a=this._input.next())===e||!t&&o.newline.test(a)){this._input.back();break}"\\"===a&&this._input.hasNext()?("x"===(i=this._input.peek())||"u"===i?this.has_char_escapes=!0:"\r"===i&&"\n"===this._input.peek(1)&&this._input.next(),a+=this._input.next()):n&&("${"===n&&"$"===a&&"{"===this._input.peek()&&(a+=this._input.next()),n===a&&(a+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(a+=this._input.next()))),s+=a+=r.read()}return s},e.exports.Tokenizer=x,e.exports.TOKEN=d,e.exports.positionable_operators=m.slice(),e.exports.line_starters=b.slice()},function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},n.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},n.prototype.__match=function(e,n){e.lastIndex=n;var i=e.exec(this.__input);return!i||t&&e.sticky||i.index!==n&&(i=null),i},n.prototype.test=function(e,t){return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t)},n.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},n.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},n.prototype.read=function(e,t,n){var i,r="";return e&&(i=this.match(e))&&(r+=i[0]),!t||!i&&e||(r+=this.readUntil(t,n)),r},n.prototype.readUntil=function(e,t){var n,i=this.__position;e.lastIndex=this.__position;var r=e.exec(this.__input);return r?(i=r.index,t&&(i+=r[0].length)):i=this.__input_length,n=this.__input.substring(this.__position,i),this.__position=i,n},n.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},n.prototype.get_regexp=function(e,n){var i=null,r="g";return n&&t&&(r="y"),"string"==typeof e&&""!==e?i=new RegExp(e,r):e&&(i=new RegExp(e.source,r)),i},n.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},n.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},function(e,t,n){var i=n(8).InputScanner,r=n(3).Token,s=n(10).TokenStream,a=n(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(e,t){this._input=new i(e),this._options=t||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)};l.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new s,this._reset();for(var t=new r(o.START,""),n=null,i=[],a=new s;t.type!==o.EOF;){for(e=this._get_next_token(t,n);this._is_comment(e);)a.add(e),e=this._get_next_token(t,n);a.isEmpty()||(e.comments_before=a,a=new s),e.parent=n,this._is_opening(e)?(i.push(n),n=e):n&&this._is_closing(e,n)&&(e.opened=n,n.closed=e,n=i.pop(),e.parent=n),e.previous=t,t.next=e,this.__tokens.add(e),t=e}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(o.RAW,n):this._create_token(o.EOF,"")},l.prototype._is_comment=function(e){return!1},l.prototype._is_opening=function(e){return!1},l.prototype._is_closing=function(e,t){return!1},l.prototype._create_token=function(e,t){return new r(e,t,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},e.exports.Tokenizer=l,e.exports.TOKEN=o},function(e){function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return 0===this.__tokens_length},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},t.prototype.peek=function(e){var t=null;return e=e||0,(e+=this.__position)>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},t.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},e.exports.TokenStream=t},function(e,t,n){var i=n(12).Pattern;function r(e,t){i.call(this,e,t),t?this._line_regexp=this._input.get_regexp(t._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}r.prototype=new i,r.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},r.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 t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},r.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},r.prototype._create=function(){return new r(this._input,this)},r.prototype.__split=function(e,t){e.lastIndex=0;for(var n=0,i=[],r=e.exec(t);r;)i.push(t.substring(n,r.index)),n=r.index+r[0].length,r=e.exec(t);return n<t.length?i.push(t.substring(n,t.length)):i.push(""),i},e.exports.WhitespacePattern=r},function(e){function t(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}t.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},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},t.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},e.exports.Pattern=t},function(e){function t(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},function(e,t,n){var i=n(12).Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function s(e,t){i.call(this,e,t),this.__template_pattern=null,this._disabled=Object.assign({},r),this._excluded=Object.assign({},r),t&&(this.__template_pattern=this._input.get_regexp(t.__template_pattern),this._excluded=Object.assign(this._excluded,t._excluded),this._disabled=Object.assign(this._disabled,t._disabled));var n=new i(e);this.__patterns={handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:n.starting_with(/{{{/).until_after(/}}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),php:n.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/),smarty:n.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:n.starting_with(/{\*/).until_after(/\*}/),smarty_literal:n.starting_with(/{literal}/).until_after(/{\/literal}/)}}s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},s.prototype.read_options=function(e){var t=this._create();for(var n in r)t._disabled[n]=-1===e.templating.indexOf(n);return t._update(),t},s.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},s.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},s.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},s.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},e.exports.TemplatablePattern=s}],t={};var n=function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}(0);i=n}();var r=i;void 0===(n=function(){return{js_beautify:r}}.apply(t,[]))||(e.exports=n)}()},7861:function(e,t,n){var i=n(38710),r=function(e){var t="",n=Object.keys(e);return n.forEach((function(r,s){var a=e[r];(function(e){return/[height|width]$/.test(e)})(r=i(r))&&"number"==typeof a&&(a+="px"),t+=!0===a?r:!1===a?"not "+r:"("+r+": "+a+")",s<n.length-1&&(t+=" and ")})),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,i){t+=r(n),i<e.length-1&&(t+=", ")})),t):r(e)}},32834:function(e){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}function n(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function r(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=n(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s={exports:{}};function a(){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 o(e){s.exports.defaults=e}s.exports={defaults:a(),getDefaults:a,changeDefaults:o};var l=/[&<>"']/,u=/[&<>"']/g,c=/[<>"']|&(?!#?\w+;)/,d=/[<>"']|&(?!#?\w+;)/g,h={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},f=function(e){return h[e]};function p(e,t){if(t){if(l.test(e))return e.replace(u,f)}else if(c.test(e))return e.replace(d,f);return e}var g=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function m(e){return e.replace(g,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var v=/(^|[^\[])\^/g;function y(e,t){e=e.source||e,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(v,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n}var _=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function E(e,t,n){if(e){var i;try{i=decodeURIComponent(m(n)).replace(_,"").toLowerCase()}catch(e){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!b.test(n)&&(n=C(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}var w={},x=/^[^:]+:\/*[^/]*$/,k=/^([^:]+:)[\s\S]*$/,S=/^([^:]+:\/*[^/]*)[\s\S]*$/;function C(e,t){w[" "+e]||(x.test(e)?w[" "+e]=e+"/":w[" "+e]=D(e,"/",!0));var n=-1===(e=w[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(k,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(S,"$1")+t:e+t}function A(e){for(var t,n,i=1;i<arguments.length;i++)for(n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function T(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var i=!1,r=t;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function D(e,t,n){var i=e.length;if(0===i)return"";for(var r=0;r<i;){var s=e.charAt(i-r-1);if(s!==t||n){if(s===t||!n)break;r++}else r++}return e.substr(0,i-r)}function L(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,i=0,r=0;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])i++;else if(e[r]===t[1]&&--i<0)return r;return-1}function R(e){e&&e.sanitize&&!e.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 I(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}var N={escape:p,unescape:m,edit:y,cleanUrl:E,resolveUrl:C,noopTest:{exec:function(){}},merge:A,splitCells:T,rtrim:D,findClosingBracket:L,checkSanitizeDeprecation:R,repeatString:I},M=s.exports.defaults,P=N.rtrim,O=N.splitCells,F=N.escape,B=N.findClosingBracket;function Z(e,t,n){var i=t.href,r=t.title?F(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:i,title:r,text:s}:{type:"image",raw:n,href:i,title:r,text:F(s)}}function j(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=i.length?e.slice(i.length):e})).join("\n")}var U=function(){function e(e){this.options=e||M}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:P(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=j(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:i}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var i=P(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:O(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var i,r=n.align.length;for(i=0;i<r;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(r=n.cells.length,i=0;i<r;i++)n.cells[i]=O(n.cells[i],n.header.length);return n}}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,i,r,s,a,o,l,u,c,d=t[0],h=t[2],f=h.length>1,p={type:"list",raw:d,ordered:f,start:f?+h.slice(0,-1):"",loose:!1,items:[]},g=t[0].match(this.rules.block.item),m=!1,v=g.length;r=this.rules.block.listItemStart.exec(g[0]);for(var y=0;y<v;y++){if(d=n=g[y],this.options.pedantic||(c=n.match(new RegExp("\\n\\s*\\n {0,"+(r[0].length-1)+"}\\S")))&&(a=n.length-c.index+g.slice(y+1).join("\n").length,p.raw=p.raw.substring(0,p.raw.length-a),d=n=n.substring(0,c.index),v=y+1),y!==v-1){if(s=this.rules.block.listItemStart.exec(g[y+1]),this.options.pedantic?s[1].length>r[1].length:s[1].length>=r[0].length||s[1].length>3){g.splice(y,2,g[y]+(!this.options.pedantic&&s[1].length<r[0].length&&!g[y].match(/\n$/)?"":"\n")+g[y+1]),y--,v--;continue}(!this.options.pedantic||this.options.smartLists?s[2][s[2].length-1]!==h[h.length-1]:f===(1===s[2].length))&&(a=g.slice(y+1).join("\n").length,p.raw=p.raw.substring(0,p.raw.length-a),y=v-1),r=s}i=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(i-=n.length,n=this.options.pedantic?n.replace(/^ {1,4}/gm,""):n.replace(new RegExp("^ {1,"+i+"}","gm"),"")),n=P(n,"\n"),y!==v-1&&(d+="\n"),o=m||/\n\n(?!\s*$)/.test(d),y!==v-1&&(m="\n\n"===d.slice(-2),o||(o=m)),o&&(p.loose=!0),this.options.gfm&&(u=void 0,(l=/^\[[ xX]\] /.test(n))&&(u=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),p.items.push({type:"list_item",raw:d,task:l,checked:u,loose:o,text:n})}return p}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):F(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:O(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var i,r=n.align.length;for(i=0;i<r;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(r=n.cells.length,i=0;i<r;i++)n.cells[i]=O(n.cells[i].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},t.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1]}},t.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t)return{type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1]}},t.text=function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0]}},t.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:F(t[1])}},t.tag=function(e,t,n){var i=this.rules.inline.tag.exec(e);if(i)return!t&&/^<a /i.test(i[0])?t=!0:t&&/^<\/a>/i.test(i[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):F(i[0]):i[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var i=P(n.slice(0,-1),"\\");if((n.length-i.length)%2==0)return}else{var r=B(t[2],"()");if(r>-1){var s=(0===t[0].indexOf("!")?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,s).trim(),t[3]=""}}var a=t[2],o="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);l&&(a=l[1],o=l[3])}else o=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^</.test(a)&&(a=this.options.pedantic&&!/>$/.test(n)?a.slice(1):a.slice(1,-1)),Z(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:o?o.replace(this.rules.inline._escapes,"$1"):o},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(!(i=t[i.toLowerCase()])||!i.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return Z(n,i,n[0])}},t.emStrong=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(e);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\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DC80-\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-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var s,a,o=i[0].length-1,l=o,u=0,c="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+o);null!=(i=c.exec(t));)if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6])if(a=s.length,i[3]||i[4])l+=a;else if(!((i[5]||i[6])&&o%3)||(o+a)%3){if(!((l-=a)>0))return a=Math.min(a,a+l+u),Math.min(o,a)%2?{type:"em",raw:e.slice(0,o+i.index+a+1),text:e.slice(1,o+i.index+a)}:{type:"strong",raw:e.slice(0,o+i.index+a+1),text:e.slice(2,o+i.index+a-1)}}else u+=a}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=F(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,i,r=this.rules.inline.autolink.exec(e);if(r)return i="@"===r[2]?"mailto:"+(n=F(this.options.mangle?t(r[1]):r[1])):n=F(r[1]),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var i,r;if("@"===n[2])r="mailto:"+(i=F(this.options.mangle?t(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);i=F(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},t.inlineText=function(e,t,n){var i,r=this.rules.inline.text.exec(e);if(r)return i=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):F(r[0]):r[0]:F(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}},e}(),K=N.noopTest,z=N.edit,G=N.merge,H={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:K,table:K,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};H.def=z(H.def).replace("label",H._label).replace("title",H._title).getRegex(),H.bullet=/(?:[*+-]|\d{1,9}[.)])/,H.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,H.item=z(H.item,"gm").replace(/bull/g,H.bullet).getRegex(),H.listItemStart=z(/^( *)(bull) */).replace("bull",H.bullet).getRegex(),H.list=z(H.list).replace(/bull/g,H.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+H.def.source+")").getRegex(),H._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",H._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,H.html=z(H.html,"i").replace("comment",H._comment).replace("tag",H._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),H.paragraph=z(H._paragraph).replace("hr",H.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",H._tag).getRegex(),H.blockquote=z(H.blockquote).replace("paragraph",H.paragraph).getRegex(),H.normal=G({},H),H.gfm=G({},H.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*|$)"}),H.gfm.nptable=z(H.gfm.nptable).replace("hr",H.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",H._tag).getRegex(),H.gfm.table=z(H.gfm.table).replace("hr",H.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",H._tag).getRegex(),H.pedantic=G({},H.normal,{html:z("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",H._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:K,paragraph:z(H.normal._paragraph).replace("hr",H.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",H.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var V={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:K,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:K,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};V.punctuation=z(V.punctuation).replace(/punctuation/g,V._punctuation).getRegex(),V.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,V.escapedEmSt=/\\\*|\\_/g,V._comment=z(H._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),V.emStrong.lDelim=z(V.emStrong.lDelim).replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimAst=z(V.emStrong.rDelimAst,"g").replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimUnd=z(V.emStrong.rDelimUnd,"g").replace(/punct/g,V._punctuation).getRegex(),V._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,V._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,V._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])?)+(?![-_])/,V.autolink=z(V.autolink).replace("scheme",V._scheme).replace("email",V._email).getRegex(),V._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,V.tag=z(V.tag).replace("comment",V._comment).replace("attribute",V._attribute).getRegex(),V._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,V._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,V._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,V.link=z(V.link).replace("label",V._label).replace("href",V._href).replace("title",V._title).getRegex(),V.reflink=z(V.reflink).replace("label",V._label).getRegex(),V.reflinkSearch=z(V.reflinkSearch,"g").replace("reflink",V.reflink).replace("nolink",V.nolink).getRegex(),V.normal=G({},V),V.pedantic=G({},V.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:z(/^!?\[(label)\]\((.*?)\)/).replace("label",V._label).getRegex(),reflink:z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V._label).getRegex()}),V.gfm=G({},V.normal,{escape:z(V.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),V.gfm.url=z(V.gfm.url,"i").replace("email",V.gfm._extended_email).getRegex(),V.breaks=G({},V.gfm,{br:z(V.br).replace("{2,}","*").getRegex(),text:z(V.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var W={block:H,inline:V},Y=U,q=s.exports.defaults,X=W.block,Q=W.inline,J=N.repeatString;function $(e){return e.replace(/---/g,"—").replace(/--/g,"").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1").replace(/'/g,"").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function ee(e){var t,n,i="",r=e.length;for(t=0;t<r;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}var te=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||q,this.options.tokenizer=this.options.tokenizer||new Y,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:X.normal,inline:Q.normal};this.options.pedantic?(t.block=X.pedantic,t.inline=Q.pedantic):this.options.gfm&&(t.block=X.gfm,this.options.breaks?t.inline=Q.breaks:t.inline=Q.gfm),this.tokenizer.rules=t}e.lex=function(t,n){return new e(n).lex(t)},e.lexInline=function(t,n){return new e(n).inlineTokens(t)};var n=e.prototype;return n.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},n.blockTokens=function(e,t,n){var i,r,s,a;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),(a=t[t.length-1])&&"paragraph"===a.type?(a.raw+="\n"+i.raw,a.text+="\n"+i.text):t.push(i);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.nptable(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),t.push(i);else if(i=this.tokenizer.list(e)){for(e=e.substring(i.raw.length),s=i.items.length,r=0;r<s;r++)i.items[r].tokens=this.blockTokens(i.items[r].text,[],!1);t.push(i)}else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(n&&(i=this.tokenizer.def(e)))e=e.substring(i.raw.length),this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(n&&(i=this.tokenizer.paragraph(e)))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),(a=t[t.length-1])&&"text"===a.type?(a.raw+="\n"+i.raw,a.text+="\n"+i.text):t.push(i);else if(e){var o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}throw new Error(o)}return t},n.inline=function(e){var t,n,i,r,s,a,o=e.length;for(t=0;t<o;t++)switch((a=e[t]).type){case"paragraph":case"text":case"heading":a.tokens=[],this.inlineTokens(a.text,a.tokens);break;case"table":for(a.tokens={header:[],cells:[]},r=a.header.length,n=0;n<r;n++)a.tokens.header[n]=[],this.inlineTokens(a.header[n],a.tokens.header[n]);for(r=a.cells.length,n=0;n<r;n++)for(s=a.cells[n],a.tokens.cells[n]=[],i=0;i<s.length;i++)a.tokens.cells[n][i]=[],this.inlineTokens(s[i],a.tokens.cells[n][i]);break;case"blockquote":this.inline(a.tokens);break;case"list":for(r=a.items.length,n=0;n<r;n++)this.inline(a.items[n].tokens)}return e},n.inlineTokens=function(e,t,n,i){var r,s;void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===i&&(i=!1);var a,o,l,u=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(u));)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,a.index)+"["+J("a",a[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,a.index)+"["+J("a",a[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(u));)u=u.slice(0,a.index)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(o||(l=""),o=!1,r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,i)){e=e.substring(r.raw.length),n=r.inLink,i=r.inRawBlock;var d=t[t.length-1];d&&"text"===r.type&&"text"===d.type?(d.raw+=r.raw,d.text+=r.text):t.push(r)}else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);var h=t[t.length-1];"link"===r.type?(r.tokens=this.inlineTokens(r.text,[],!0,i),t.push(r)):h&&"text"===r.type&&"text"===h.type?(h.raw+=r.raw,h.text+=r.text):t.push(r)}else if(r=this.tokenizer.emStrong(e,u,l))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.autolink(e,ee))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,ee))){if(r=this.tokenizer.inlineText(e,i,$))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(l=r.raw.slice(-1)),o=!0,(s=t[t.length-1])&&"text"===s.type?(s.raw+=r.raw,s.text+=r.text):t.push(r);else if(e){var f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}else e=e.substring(r.raw.length),t.push(r);return t},t(e,null,[{key:"rules",get:function(){return{block:X,inline:Q}}}]),e}(),ne=s.exports.defaults,ie=N.cleanUrl,re=N.escape,se=function(){function e(e){this.options=e||ne}var t=e.prototype;return t.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+re(i,!0)+'">'+(n?e:re(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:re(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,n,i){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+i.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+i+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,n){if(null===(e=ie(this.options.sanitize,this.options.baseUrl,e)))return n;var i='<a href="'+re(e)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>"},t.image=function(e,t,n){if(null===(e=ie(this.options.sanitize,this.options.baseUrl,e)))return n;var i='<img src="'+e+'" alt="'+n+'"';return t&&(i+=' title="'+t+'"'),i+=this.options.xhtml?"/>":">"},t.text=function(e){return e},e}(),ae=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),oe=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do{n=e+"-"+ ++i}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),le=se,ue=ae,ce=oe,de=s.exports.defaults,he=N.unescape,fe=te,pe=function(){function e(e){this.options=e||de,this.options.renderer=this.options.renderer||new le,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ue,this.slugger=new ce}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,i,r,s,a,o,l,u,c,d,h,f,p,g,m,v,y,_,b="",E=e.length;for(n=0;n<E;n++)switch((d=e[n]).type){case"space":continue;case"hr":b+=this.renderer.hr();continue;case"heading":b+=this.renderer.heading(this.parseInline(d.tokens),d.depth,he(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":b+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(u="",l="",s=d.header.length,i=0;i<s;i++)l+=this.renderer.tablecell(this.parseInline(d.tokens.header[i]),{header:!0,align:d.align[i]});for(u+=this.renderer.tablerow(l),c="",s=d.cells.length,i=0;i<s;i++){for(l="",a=(o=d.tokens.cells[i]).length,r=0;r<a;r++)l+=this.renderer.tablecell(this.parseInline(o[r]),{header:!1,align:d.align[r]});c+=this.renderer.tablerow(l)}b+=this.renderer.table(u,c);continue;case"blockquote":c=this.parse(d.tokens),b+=this.renderer.blockquote(c);continue;case"list":for(h=d.ordered,f=d.start,p=d.loose,s=d.items.length,c="",i=0;i<s;i++)v=(m=d.items[i]).checked,y=m.task,g="",m.task&&(_=this.renderer.checkbox(v),p?m.tokens.length>0&&"text"===m.tokens[0].type?(m.tokens[0].text=_+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=_+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:_}):g+=_),g+=this.parse(m.tokens,p),c+=this.renderer.listitem(g,y,v);b+=this.renderer.list(c,h,f);continue;case"html":b+=this.renderer.html(d.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(c=d.tokens?this.parseInline(d.tokens):d.text;n+1<E&&"text"===e[n+1].type;)c+="\n"+((d=e[++n]).tokens?this.parseInline(d.tokens):d.text);b+=t?this.renderer.paragraph(c):c;continue;default:var w='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(w);throw new Error(w)}return b},t.parseInline=function(e,t){t=t||this.renderer;var n,i,r="",s=e.length;for(n=0;n<s;n++)switch((i=e[n]).type){case"escape":case"text":r+=t.text(i.text);break;case"html":r+=t.html(i.text);break;case"link":r+=t.link(i.href,i.title,this.parseInline(i.tokens,t));break;case"image":r+=t.image(i.href,i.title,i.text);break;case"strong":r+=t.strong(this.parseInline(i.tokens,t));break;case"em":r+=t.em(this.parseInline(i.tokens,t));break;case"codespan":r+=t.codespan(i.text);break;case"br":r+=t.br();break;case"del":r+=t.del(this.parseInline(i.tokens,t));break;default:var a='Token with "'+i.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}return r},e}(),ge=U,me=se,ve=ae,ye=oe,_e=N.merge,be=N.checkSanitizeDeprecation,Ee=N.escape,we=s.exports.getDefaults,xe=s.exports.changeDefaults,ke=s.exports.defaults;function Se(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=_e({},Se.defaults,t||{}),be(t),n){var i,r=t.highlight;try{i=fe.lex(e,t)}catch(e){return n(e)}var s=function(e){var s;if(!e)try{t.walkTokens&&Se.walkTokens(i,t.walkTokens),s=pe.parse(i,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,s)};if(!r||r.length<3)return s();if(delete t.highlight,!i.length)return s();var a=0;return Se.walkTokens(i,(function(e){"code"===e.type&&(a++,setTimeout((function(){r(e.text,e.lang,(function(t,n){if(t)return s(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0==--a&&s()}))}),0))})),void(0===a&&s())}try{var o=fe.lex(e,t);return t.walkTokens&&Se.walkTokens(o,t.walkTokens),pe.parse(o,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Ee(e.message+"",!0)+"</pre>";throw e}}return Se.options=Se.setOptions=function(e){return _e(Se.defaults,e),xe(Se.defaults),Se},Se.getDefaults=we,Se.defaults=ke,Se.use=function(e){var t=_e({},e);if(e.renderer&&function(){var n=Se.defaults.renderer||new me,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];var o=e.renderer[t].apply(n,s);return!1===o&&(o=i.apply(n,s)),o}};for(var r in e.renderer)i(r);t.renderer=n}(),e.tokenizer&&function(){var n=Se.defaults.tokenizer||new ge,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];var o=e.tokenizer[t].apply(n,s);return!1===o&&(o=i.apply(n,s)),o}};for(var r in e.tokenizer)i(r);t.tokenizer=n}(),e.walkTokens){var n=Se.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens(t),n&&n(t)}}Se.setOptions(t)},Se.walkTokens=function(e,t){for(var n,i=r(e);!(n=i()).done;){var s=n.value;switch(t(s),s.type){case"table":for(var a,o=r(s.tokens.header);!(a=o()).done;){var l=a.value;Se.walkTokens(l,t)}for(var u,c=r(s.tokens.cells);!(u=c()).done;)for(var d,h=r(u.value);!(d=h()).done;){var f=d.value;Se.walkTokens(f,t)}break;case"list":Se.walkTokens(s.items,t);break;default:s.tokens&&Se.walkTokens(s.tokens,t)}}},Se.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=_e({},Se.defaults,t||{}),be(t);try{var n=fe.lexInline(e,t);return t.walkTokens&&Se.walkTokens(n,t.walkTokens),pe.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Ee(e.message+"",!0)+"</pre>";throw e}},Se.Parser=pe,Se.parser=pe.parse,Se.Renderer=me,Se.TextRenderer=ve,Se.Lexer=fe,Se.lexer=fe.lex,Se.Tokenizer=ge,Se.Slugger=ye,Se.parse=Se,Se}()},11690:function(e){const t=/[&<>"']/,n=/[&<>"']/g,i=/[<>"']|&(?!#?\w+;)/,r=/[<>"']|&(?!#?\w+;)/g,s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},a=e=>s[e];const o=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function l(e){return e.replace(o,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const u=/(^|[^\[])\^/g;const c=/[^\w:]/g,d=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const h={},f=/^[^:]+:\/*[^/]*$/,p=/^([^:]+:)[\s\S]*$/,g=/^([^:]+:\/*[^/]*)[\s\S]*$/;function m(e,t){h[" "+e]||(f.test(e)?h[" "+e]=e+"/":h[" "+e]=v(e,"/",!0));const n=-1===(e=h[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(p,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(g,"$1")+t:e+t}function v(e,t,n){const i=e.length;if(0===i)return"";let r=0;for(;r<i;){const s=e.charAt(i-r-1);if(s!==t||n){if(s===t||!n)break;r++}else r++}return e.substr(0,i-r)}e.exports={escape:function(e,s){if(s){if(t.test(e))return e.replace(n,a)}else if(i.test(e))return e.replace(r,a);return e},unescape:l,edit:function(e,t){e=e.source||e,t=t||"";const n={replace:(t,i)=>(i=(i=i.source||i).replace(u,"$1"),e=e.replace(t,i),n),getRegex:()=>new RegExp(e,t)};return n},cleanUrl:function(e,t,n){if(e){let e;try{e=decodeURIComponent(l(n)).replace(c,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!d.test(n)&&(n=m(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},resolveUrl:m,noopTest:{exec:function(){}},merge:function(e){let t,n,i=1;for(;i<arguments.length;i++)for(n in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},splitCells:function(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let i=!1,r=t;for(;--r>=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/);let i=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n},rtrim:v,findClosingBracket:function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let i=0,r=0;for(;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])i++;else if(e[r]===t[1]&&(i--,i<0))return r;return-1},checkSanitizeDeprecation:function(e){e&&e.sanitize&&!e.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")},repeatString:function(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}}},75918:function(e,t,n){"use strict";n.d(t,{Wi:function(){return l},Z0:function(){return u},aU:function(){return o},eZ:function(){return d},wY:function(){return c}});var i=n(4348),r=n(69323),s=n(13268),a=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{l(i.next(e))}catch(e){s(e)}}function o(e){try{l(i.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))};class o extends r.JT{constructor(e,t="",n="",r=!0,s){super(),this._onDidChange=this._register(new i.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=n,this._enabled=r,this._actionCallback=s}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}run(e,t){return a(this,void 0,void 0,(function*(){this._actionCallback&&(yield this._actionCallback(e))}))}}class l extends r.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new i.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new i.Q5),this.onDidRun=this._onDidRun.event}run(e,t){return a(this,void 0,void 0,(function*(){if(!e.enabled)return;let n;this._onBeforeRun.fire({action:e});try{yield this.runAction(e,t)}catch(e){n=e}this._onDidRun.fire({action:e,error:n})}))}runAction(e,t){return a(this,void 0,void 0,(function*(){yield e.run(t)}))}}class u extends o{constructor(e){super(u.ID,e,e?"separator text":"separator"),this.checked=!1,this.enabled=!1}}u.ID="vs.actions.separator";class c{constructor(e,t,n,i){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=e,this.label=t,this.class=i,this._actions=n}get actions(){return this._actions}dispose(){}run(){return a(this,void 0,void 0,(function*(){}))}}class d extends o{constructor(){super(d.ID,s.N("submenu.empty","(empty)"),void 0,!1)}}d.ID="vs.actions.empty"},76068:function(e,t,n){"use strict";function i(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}n.d(t,{ok:function(){return i}})},52615:function(e,t,n){"use strict";n.d(t,{CM:function(){return a},JL:function(){return o},dT:function(){return u},fK:function(){return s},lA:function(){return l}});var i=n(4348);const r=new class{constructor(){this._icons=new Map,this._onDidRegister=new i.Q5}add(e){const t=this._icons.get(e.id);t?e.description?t.description=e.description:console.error(`Duplicate registration of codicon ${e.id}`):(this._icons.set(e.id,e),this._onDidRegister.fire(e))}get(e){return this._icons.get(e)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}},s=r;function a(e,t){return new l(e,t)}function o(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}class l{constructor(e,t,n){this.id=e,this.definition=t,this.description=n,r.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var u;!function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){if(e instanceof l)return["codicon","codicon-"+e.id];const i=t.exec(e.id);if(!i)return n(l.error);let[,r,s]=i;const a=["codicon","codicon-"+r];return s&&a.push("codicon-modifier-"+s.substr(1)),a}e.asClassNameArray=n,e.asClassName=function(e){return n(e).join(" ")},e.asCSSSelector=function(e){return"."+n(e).join(".")}}(u||(u={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.runErrors=new e("run-errors",{fontCharacter:"\\ebde"}),e.folderLibrary=new e("folder-library",{fontCharacter:"\\ebdf"}),e.debugContinueSmall=new e("debug-continue-small",{fontCharacter:"\\ebe0"}),e.beakerStop=new e("beaker-stop",{fontCharacter:"\\ebe1"}),e.graphLine=new e("graph-line",{fontCharacter:"\\ebe2"}),e.graphScatter=new e("graph-scatter",{fontCharacter:"\\ebe3"}),e.pieChart=new e("pie-chart",{fontCharacter:"\\ebe4"}),e.bracket=new e("bracket",e.json.definition),e.bracketDot=new e("bracket-dot",{fontCharacter:"\\ebe5"}),e.bracketError=new e("bracket-error",{fontCharacter:"\\ebe6"}),e.lockSmall=new e("lock-small",{fontCharacter:"\\ebe7"}),e.azureDevops=new e("azure-devops",{fontCharacter:"\\ebe8"}),e.verifiedFilled=new e("verified-filled",{fontCharacter:"\\ebe9"})}(l||(l={}))},79881:function(e,t,n){"use strict";n.d(t,{B8:function(){return h},Cp:function(){return s},F0:function(){return u},L6:function(){return d},VV:function(){return l},b1:function(){return c},dL:function(){return r},ri:function(){return a}});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){l(e)||i.onUnexpectedError(e)}function s(e){l(e)||i.onUnexpectedExternalError(e)}function a(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e}const o="Canceled";function l(e){return e instanceof Error&&e.name===o&&e.message===o}function u(){const e=new Error(o);return e.name=e.message,e}function c(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function d(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class h extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}},4348:function(e,t,n){"use strict";n.d(t,{D0:function(){return d},E7:function(){return h},K3:function(){return c},Q5:function(){return u},ZD:function(){return f},ju:function(){return i}});var i,r=n(79881),s=n(69323),a=n(34502),o=n(95830);!function(e){function t(e){return(t,n=null,i)=>{let r,s=!1;return r=e((e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)}),null,i),s&&r.dispose(),r}}function n(e,t){return o(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)))}function i(e,t){return o(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)))}function r(e,t){return o(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)))}function a(e,t,i){let r=i;return n(e,(e=>(r=t(r,e),r)))}function o(e){let t;const n=new u({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function l(e,t,n=100,i=!1,r){let s,a,o,l=0;const c=new u({leakWarningThreshold:r,onFirstListenerAdd(){s=e((e=>{l++,a=t(a,e),i&&!o&&(c.fire(a),a=void 0),clearTimeout(o),o=setTimeout((()=>{const e=a;a=void 0,o=void 0,(!i||l>1)&&c.fire(e),l=0}),n)}))},onLastListenerRemove(){s.dispose()}});return c.event}function c(e,t=((e,t)=>e===t)){let n,i=!0;return r(e,(e=>{const r=i||!t(e,n);return i=!1,n=e,r}))}e.None=()=>s.JT.None,e.once=t,e.map=n,e.forEach=i,e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>(0,s.F8)(...e.map((e=>e((e=>t.call(n,e)),null,i))))},e.reduce=a,e.debounce=l,e.latch=c,e.split=function(t,n){return[e.filter(t,n),e.filter(t,(e=>!n(e)))]},e.buffer=function(e,t=!1,n=[]){let i=n.slice(),r=e((e=>{i?i.push(e):a.fire(e)}));const s=()=>{i&&i.forEach((e=>a.fire(e))),i=null},a=new u({onFirstListenerAdd(){r||(r=e((e=>a.fire(e))))},onFirstListenerDidAdd(){i&&(t?setTimeout(s):s())},onLastListenerRemove(){r&&r.dispose(),r=null}});return a.event};class d{constructor(e){this.event=e}map(e){return new d(n(this.event,e))}forEach(e){return new d(i(this.event,e))}filter(e){return new d(r(this.event,e))}reduce(e,t){return new d(a(this.event,e,t))}latch(){return new d(c(this.event))}debounce(e,t=100,n=!1,i){return new d(l(this.event,e,t,n,i))}on(e,t,n){return this.event(e,t,n)}once(e,n,i){return t(this.event)(e,n,i)}}e.chain=function(e){return new d(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new u({onFirstListenerAdd:()=>e.on(t,i),onLastListenerRemove:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new u({onFirstListenerAdd:()=>e.addEventListener(t,i),onLastListenerRemove:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((n=>t(e)(n)))}}(i||(i={}));class l{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${l._idPool++}`}start(e){this._stopWatch=new o.G(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}l._idPool=0;class u{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new l(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,n)=>{var i;this._listeners||(this._listeners=new a.S);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(t?[e,t]:e);r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const l=null===(i=this._leakageMon)||void 0===i?void 0:i.check(this._listeners.size),u=(0,s.OF)((()=>{if(l&&l(),!this._disposed&&(o(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}));return n instanceof s.SL?n.add(u):Array.isArray(n)&&n.push(u),u}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new a.S);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){(0,r.dL)(e)}}null===(n=this._perfMon)||void 0===n||n.stop()}}dispose(){var e,t,n,i,r;this._disposed||(this._disposed=!0,null===(e=this._listeners)||void 0===e||e.clear(),null===(t=this._deliveryQueue)||void 0===t||t.clear(),null===(i=null===(n=this._options)||void 0===n?void 0:n.onLastListenerRemove)||void 0===i||i.call(n),null===(r=this._leakageMon)||void 0===r||r.dispose())}}class c extends u{constructor(e){super(e),this._isPaused=0,this._eventQueue=new a.S,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class d extends c{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class h{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,i)=>e((e=>{const i=this.buffers[this.buffers.length-1];i?i.push((()=>t.call(n,e))):t.call(n,e)}),void 0,i)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach((e=>e())),n}}class f{constructor(){this.listening=!1,this.inputEvent=i.None,this.inputEventListener=s.JT.None,this.emitter=new u({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(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(e,t,n){"use strict";function i(e){const t=this;let n,i=!1;return function(){return i||(i=!0,n=e.apply(t,arguments)),n}}n.d(t,{I:function(){return i}})},88226:function(e,t,n){"use strict";var i;n.d(t,{$:function(){return i}}),function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const t=Object.freeze([]);e.empty=function(){return t},e.single=function*(e){yield e},e.from=function(e){return e||t},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.concatNested=function*(e){for(const t of e)for(const e of t)yield e},e.reduce=function(e,t,n){let i=n;for(const n of e)i=t(i,n);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let t=0;t<n;t++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator](){return r}}]},e.equals=function(e,t,n=((e,t)=>e===t)){const i=e[Symbol.iterator](),r=t[Symbol.iterator]();for(;;){const e=i.next(),t=r.next();if(e.done!==t.done)return!1;if(e.done)return!0;if(!n(e.value,t.value))return!1}}}(i||(i={}))},69323:function(e,t,n){"use strict";n.d(t,{B9:function(){return h},F8:function(){return f},JT:function(){return m},Jz:function(){return y},OF:function(){return p},SL:function(){return g},Wf:function(){return d},XK:function(){return v},dk:function(){return u}});var i=n(17845),r=n(88226);let s=null;function a(e){return null==s||s.trackDisposable(e),e}function o(e){null==s||s.markAsDisposed(e)}function l(e,t){null==s||s.setParent(e,t)}function u(e){return null==s||s.markAsSingleton(e),e}class c extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function d(e){return"function"==typeof e.dispose&&0===e.dispose.length}function h(e){if(r.$.is(e)){let t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new c(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function f(...e){const t=p((()=>h(e)));return function(e,t){if(s)for(const n of e)s.setParent(n,t)}(e,t),t}function p(e){const t=a({dispose:(0,i.I)((()=>{o(t),e()}))});return t}class g{constructor(){this._toDispose=new Set,this._isDisposed=!1,a(this)}dispose(){this._isDisposed||(o(this),this._isDisposed=!0,this.clear())}clear(){try{h(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?g.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(e),e}}g.DISABLE_DISPOSED_WARNING=!1;class m{constructor(){this._store=new g,a(this),l(this._store,this)}dispose(){o(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}m.None=Object.freeze({dispose(){}});class v{constructor(){this._isDisposed=!1,a(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,o(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&l(e,null),e}}class y{constructor(e){this.object=e}dispose(){}}},34502:function(e,t,n){"use strict";n.d(t,{S:function(){return r}});class i{constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}i.Undefined=new i(void 0);class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;for(;e!==i.Undefined;){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===i.Undefined&&e.next===i.Undefined?(this._first=i.Undefined,this._last=i.Undefined):e.next===i.Undefined?(this._last=this._last.prev,this._last.next=i.Undefined):e.prev===i.Undefined&&(this._first=this._first.next,this._first.prev=i.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==i.Undefined;)yield e.element,e=e.next}}},23345:function(e,t,n){"use strict";n.d(t,{$L:function(){return S},ED:function(){return E},IJ:function(){return x},OS:function(){return D},WE:function(){return A},dz:function(){return w},gn:function(){return C},li:function(){return v},r:function(){return I},tY:function(){return k},xS:function(){return T}});var i,r=n(97671);const s="en";let a,o,l=!1,u=!1,c=!1,d=!1,h=!1,f=!1,p=!1,g=null,m=null;const v="object"==typeof self?self:"object"==typeof n.g?n.g:{};let y;void 0!==v.vscode&&void 0!==v.vscode.process?y=v.vscode.process:void 0!==r&&(y=r);const _="string"==typeof(null===(i=null==y?void 0:y.versions)||void 0===i?void 0:i.electron)&&"renderer"===y.type;if("object"!=typeof navigator||_)if("object"==typeof y){l="win32"===y.platform,u="darwin"===y.platform,c="linux"===y.platform,d=c&&!!y.env.SNAP&&!!y.env.SNAP_REVISION,a=s,g=s;const e=y.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];a=t.locale,g=n||s,m=t._translationsConfigFile}catch(e){}h=!0}else console.error("Unable to resolve platform.");else o=navigator.userAgent,l=o.indexOf("Windows")>=0,u=o.indexOf("Macintosh")>=0,p=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=o.indexOf("Linux")>=0,f=!0,a=navigator.language,g=a;let b=0;u?b=1:l?b=3:c&&(b=2);const E=l,w=u,x=c,k=h,S=f,C=p,A=o,T=function(){if(v.setImmediate)return v.setImmediate.bind(v);if("function"==typeof v.postMessage&&!v.importScripts){let e=[];v.addEventListener("message",(t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeSetImmediateId)return e.splice(n,1),void i.callback()}}));let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),v.postMessage({vscodeSetImmediateId:i},"*")}}if("function"==typeof(null==y?void 0:y.nextTick))return y.nextTick.bind(y);const e=Promise.resolve();return t=>e.then(t)}(),D=u||p?2:l?1:3;let L=!0,R=!1;function I(){if(!R){R=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);L=513===t[0]}return L}},95830:function(e,t,n){"use strict";n.d(t,{G:function(){return s}});var i=n(23345);const r=i.li.performance&&"function"==typeof i.li.performance.now;class s{constructor(e){this._highResolution=r&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new s(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?i.li.performance.now():Date.now()}}},82983:function(e,t,n){"use strict";function i(e){return!e||"string"!=typeof e||0===e.trim().length}n.d(t,{$i:function(){return K},C8:function(){return W},GF:function(){return f},HO:function(){return O},IO:function(){return p},K7:function(){return V},Kw:function(){return X},LC:function(){return v},Mh:function(){return T},P1:function(){return D},PJ:function(){return Q},Qe:function(){return z},R1:function(){return h},RP:function(){return j},S6:function(){return J},TT:function(){return E},Ut:function(){return B},V8:function(){return y},WU:function(){return s},YK:function(){return R},YU:function(){return a},ZG:function(){return L},ZH:function(){return N},ab:function(){return G},c1:function(){return Y},df:function(){return S},ec:function(){return o},fi:function(){return $},fy:function(){return l},j3:function(){return u},j_:function(){return x},m5:function(){return i},mK:function(){return k},mr:function(){return g},oH:function(){return te},oL:function(){return c},ok:function(){return A},ow:function(){return _},qq:function(){return C},qu:function(){return b},rL:function(){return I},uS:function(){return q},un:function(){return d},uq:function(){return m},vH:function(){return P},xe:function(){return H},zY:function(){return w}});const r=/{(\d+)}/g;function s(e,...t){return 0===t.length?e:e.replace(r,(function(e,n){const i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i]}))}function a(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return e}}))}function o(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t=" "){return c(u(e,t),t)}function u(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;for(;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function c(e,t){if(!e||!t)return e;const n=t.length,i=e.length;if(0===n||0===i)return e;let r=i,s=-1;for(;s=e.lastIndexOf(t,r-1),-1!==s&&s+n===r;){if(0===s)return"";r=s}return e.substring(0,r)}function d(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function h(e){return e.replace(/\*/g,"")}function f(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=o(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function p(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;return!(!e.exec("")||0!==e.lastIndex)}function g(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function m(e){return e.split(/\r\n|\r|\n/)}function v(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function y(e,t=0,n=e.length){for(let i=t;i<n;i++){const n=e.charCodeAt(i);if(32!==n&&9!==n)return e.substring(t,i)}return e.substring(t,n)}function _(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function b(e,t){return e<t?-1:e>t?1:0}function E(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){let i=e.charCodeAt(n),s=t.charCodeAt(r);if(i<s)return-1;if(i>s)return 1}const a=i-n,o=s-r;return a<o?-1:a>o?1:0}function w(e,t){return x(e,t,0,e.length,0,t.length)}function x(e,t,n=0,i=e.length,r=0,s=t.length){for(;n<i&&r<s;n++,r++){let a=e.charCodeAt(n),o=t.charCodeAt(r);if(a===o)continue;if(a>=128||o>=128)return E(e.toLowerCase(),t.toLowerCase(),n,i,r,s);k(a)&&(a-=32),k(o)&&(o-=32);const l=a-o;if(0!==l)return l}const a=i-n,o=s-r;return a<o?-1:a>o?1:0}function k(e){return e>=97&&e<=122}function S(e){return e>=65&&e<=90}function C(e,t){return e.length===t.length&&0===x(e,t)}function A(e,t){const n=t.length;return!(t.length>e.length)&&0===x(e,t,0,n)}function T(e,t){let n,i=Math.min(e.length,t.length);for(n=0;n<i;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return i}function D(e,t){let n,i=Math.min(e.length,t.length);const r=e.length-1,s=t.length-1;for(n=0;n<i;n++)if(e.charCodeAt(r-n)!==t.charCodeAt(s-n))return n;return i}function L(e){return 55296<=e&&e<=56319}function R(e){return 56320<=e&&e<=57343}function I(e,t){return t-56320+(e-55296<<10)+65536}function N(e,t,n){const i=e.charCodeAt(n);if(L(i)&&n+1<t){const t=e.charCodeAt(n+1);if(R(t))return I(i,t)}return i}function M(e,t){const n=e.charCodeAt(t-1);if(R(n)&&t>1){const i=e.charCodeAt(t-2);if(L(i))return I(i,n)}return n}function P(e,t){const n=ee.getInstance(),i=t,r=e.length,s=N(e,r,t);t+=s>=65536?2:1;let a=n.getGraphemeBreakType(s);for(;t<r;){const i=N(e,r,t),s=n.getGraphemeBreakType(i);if($(a,s))break;t+=i>=65536?2:1,a=s}return t-i}function O(e,t){const n=ee.getInstance(),i=t,r=M(e,t);t-=r>=65536?2:1;let s=n.getGraphemeBreakType(r);for(;t>0;){const i=M(e,t),r=n.getGraphemeBreakType(i);if($(r,s))break;t-=i>=65536?2:1,s=r}return i-t}const F=/(?:[\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 B(e){return F.test(e)}const Z=/(?:[\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 j(e){return Z.test(e)}const U=/^[\t\n\r\x20-\x7E]*$/;function K(e){return U.test(e)}const z=/[\u2028\u2029]/;function G(e){return z.test(e)}function H(e){for(let t=0,n=e.length;t<n;t++)if(V(e.charCodeAt(t)))return!0;return!1}function V(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function W(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129750}const Y=String.fromCharCode(65279);function q(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function X(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function Q(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function J(e){return ee.getInstance().getGraphemeBreakType(e)}function $(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}class ee{constructor(){this._data=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]")}static getInstance(){return ee._INSTANCE||(ee._INSTANCE=new ee),ee._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}function te(e,t){if(0===e)return 0;const n=function(e,t){let n=M(t,e);e-=ne(n);for(;ie(n)||65039===n||8419===n;){if(0===e)return;n=M(t,e),e-=ne(n)}if(!W(n))return;if(e>=0){const n=M(t,e);8205===n&&(e-=ne(n))}return e}(e,t);if(void 0!==n)return n;return e-=ne(M(t,e))}function ne(e){return e>=65536?2:1}function ie(e){return 127995<=e&&e<=127999}ee._INSTANCE=null},72999:function(e,t,n){"use strict";function i(e){return Array.isArray(e)}function r(e){return"string"==typeof e}function s(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function a(e){return"number"==typeof e&&!isNaN(e)}function o(e){return!0===e||!1===e}function l(e){return void 0===e}function u(e){return!c(e)}function c(e){return l(e)||null===e}function d(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function h(e){if(c(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function f(e){return"function"==typeof e}function p(e,t){const n=Math.min(e.length,t.length);for(let i=0;i<n;i++)g(e[i],t[i])}function g(e,t){if(r(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(f(t)){try{if(e instanceof t)return}catch(e){}if(!c(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function m(e){const t=[];for(const n of function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e))"function"==typeof e[n]&&t.push(n);return t}function v(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)};let i={};for(const t of e)i[t]=n(t);return i}function y(e){return null===e?void 0:e}function _(e,t="Unreachable"){throw new Error(t)}n.d(t,{$E:function(){return m},$K:function(){return u},D8:function(){return p},HD:function(){return r},IU:function(){return v},Jp:function(){return c},Kn:function(){return s},cW:function(){return h},f6:function(){return y},hj:function(){return a},jn:function(){return o},kJ:function(){return i},mf:function(){return f},o8:function(){return l},p_:function(){return d},vE:function(){return _}})},13268:function(e,t,n){"use strict";function i(e,t,...n){return function(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){const i=n[0];return void 0!==t[i]?t[i]:e})),n}(t,n)}n.d(t,{N:function(){return i}})},96236:function(e,t,n){"use strict";n.d(t,{BH:function(){return y},NZ:function(){return _},U8:function(){return b},co:function(){return v},eH:function(){return m},vr:function(){return g}});var i=n(75918),r=n(52615),s=n(4348),a=n(88226),o=n(69323),l=n(34502),u=n(35884),c=n(90689),d=n(16925),h=n(49055),f=function(e,t,n,i){var r,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,n,a):r(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a},p=function(e,t){return function(n,i){t(n,i,e)}};function g(e){return void 0!==e.command}class m{constructor(e){this.id=m._idPool++,this._debugName=e}}m._idPool=0,m.CommandPalette=new m("CommandPalette"),m.EditorContext=new m("EditorContext"),m.SimpleEditorContext=new m("SimpleEditorContext"),m.EditorContextCopy=new m("EditorContextCopy"),m.EditorContextPeek=new m("EditorContextPeek"),m.MenubarEditMenu=new m("MenubarEditMenu"),m.MenubarCopy=new m("MenubarCopy"),m.MenubarGoMenu=new m("MenubarGoMenu"),m.MenubarSelectionMenu=new m("MenubarSelectionMenu"),m.InlineCompletionsActions=new m("InlineCompletionsActions");const v=(0,d.yh)("menuService"),y=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new s.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:e=>e===m.CommandPalette}}addCommand(e){return this.addCommands(a.$.single(e))}addCommands(e){for(const t of e)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,o.OF)((()=>{let t=!1;for(const n of e)t=this._commands.delete(n.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,n)=>e.set(n,t))),e}appendMenuItem(e,t){return this.appendMenuItems(a.$.single({id:e,item:t}))}appendMenuItems(e){const t=new Set,n=new l.S;for(const{id:i,item:r}of e){let e=this._menuItems.get(i);e||(e=new l.S,this._menuItems.set(i,e)),n.push(e.push(r)),t.add(i)}return this._onDidChangeMenu.fire(t),(0,o.OF)((()=>{if(n.size>0){for(let e of n)e();this._onDidChangeMenu.fire(t),n.clear()}}))}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===m.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const n of e)g(n)&&(t.add(n.command.id),n.alt&&t.add(n.alt.id));this._commands.forEach(((n,i)=>{t.has(i)||e.push({command:n})}))}};class _ extends i.wY{constructor(e,t,n,i){super(`submenuitem.${e.submenu.id}`,"string"==typeof e.title?e.title:e.title.value,[],"submenu"),this.item=e,this._menuService=t,this._contextKeyService=n,this._options=i}get actions(){const e=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),n=t.getActions(this._options);t.dispose();for(const[,t]of n)t.length>0&&(e.push(...t),e.push(new i.Z0));return e.length&&e.pop(),e}}let b=class e{constructor(t,n,i,s,a){var o,l;if(this._commandService=a,this.id=t.id,this.label=(null==i?void 0:i.renderShortTitle)&&t.shortTitle?"string"==typeof t.shortTitle?t.shortTitle:t.shortTitle.value:"string"==typeof t.title?t.title:t.title.value,this.tooltip=null!==(l="string"==typeof t.tooltip?t.tooltip:null===(o=t.tooltip)||void 0===o?void 0:o.value)&&void 0!==l?l:"",this.enabled=!t.precondition||s.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){const e=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=s.contextMatchesRules(e.condition),this.checked&&e.tooltip&&(this.tooltip="string"==typeof e.tooltip?e.tooltip:e.tooltip.value),e.title&&(this.label="string"==typeof e.title?e.title:e.title.value)}this.item=t,this.alt=n?new e(n,void 0,i,s,a):void 0,this._options=i,h.kS.isThemeIcon(t.icon)&&(this.class=r.dT.asClassName(t.icon))}dispose(){}run(...e){var t,n;let i=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(i=[...i,this._options.arg]),(null===(n=this._options)||void 0===n?void 0:n.shouldForwardArgs)&&(i=[...i,...e]),this._commandService.executeCommand(this.id,...i)}};b=f([p(3,c.i6),p(4,u.H)],b)},35884:function(e,t,n){"use strict";n.d(t,{H:function(){return l},P:function(){return u}});var i=n(4348),r=n(88226),s=n(69323),a=n(34502),o=n(72999);const l=(0,n(16925).yh)("commandService"),u=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new i.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){const t=[];for(let n of e.description.args)t.push(n.constraint);const n=e.handler;e.handler=function(e,...i){return(0,o.D8)(i,t),n(e,...i)}}const{id:n}=e;let i=this._commands.get(n);i||(i=new a.S,this._commands.set(n,i));let r=i.unshift(e),l=(0,s.OF)((()=>{r();const e=this._commands.get(n);(null==e?void 0:e.isEmpty())&&this._commands.delete(n)}));return this._onDidRegisterCommand.fire(n),l}registerCommandAlias(e,t){return u.registerCommand(e,((e,...n)=>e.get(l).executeCommand(t,...n)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return r.$.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const n=this.getCommand(t);n&&e.set(t,n)}return e}};u.registerCommand("noop",(()=>{}))},90689:function(e,t,n){"use strict";n.d(t,{Ao:function(){return u},Eq:function(){return I},Fb:function(){return c},K8:function(){return P},i6:function(){return R},uy:function(){return L}});var i=n(23345),r=n(82983),s=n(16925);let a=i.WE||"";const o=new Map;o.set("false",!1),o.set("true",!0),o.set("isMac",i.dz),o.set("isLinux",i.IJ),o.set("isWindows",i.ED),o.set("isWeb",i.$L),o.set("isMacNative",i.dz&&!i.$L),o.set("isEdge",a.indexOf("Edg/")>=0),o.set("isFirefox",a.indexOf("Firefox")>=0),o.set("isChrome",a.indexOf("Chrome")>=0),o.set("isSafari",a.indexOf("Safari")>=0);const l=Object.prototype.hasOwnProperty;class u{static has(e){return p.create(e)}static equals(e,t){return g.create(e,t)}static regex(e,t){return S.create(e,t)}static not(e){return _.create(e)}static and(...e){return T.create(e,null)}static or(...e){return D.create(e,null,!0)}static deserialize(e,t=!1){if(e)return this._deserializeOrExpression(e,t)}static _deserializeOrExpression(e,t){let n=e.split("||");return D.create(n.map((e=>this._deserializeAndExpression(e,t))),null,!0)}static _deserializeAndExpression(e,t){let n=e.split("&&");return T.create(n.map((e=>this._deserializeOne(e,t))),null)}static _deserializeOne(e,t){if((e=e.trim()).indexOf("!=")>=0){let n=e.split("!=");return y.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("==")>=0){let n=e.split("==");return g.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("=~")>=0){let n=e.split("=~");return S.create(n[0].trim(),this._deserializeRegexValue(n[1],t))}if(e.indexOf(" in ")>=0){let t=e.split(" in ");return m.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(e)){const t=e.split(">=");return w.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(e)){const t=e.split(">");return E.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(e)){const t=e.split("<=");return k.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(e)){const t=e.split("<");return x.create(t[0].trim(),t[1].trim())}return/^\!\s*/.test(e)?_.create(e.substr(1).trim()):p.create(e)}static _deserializeValue(e,t){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;let n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e}static _deserializeRegexValue(e,t){if((0,r.m5)(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let n=e.indexOf("/"),i=e.lastIndexOf("/");if(n===i||n<0){if(t)throw new Error(`bad regexp-value '${e}', missing /-enclosure`);return console.warn(`bad regexp-value '${e}', missing /-enclosure`),null}let s=e.slice(n+1,i),a="i"===e[i+1]?"i":"";try{return new RegExp(s,a)}catch(n){if(t)throw new Error(`bad regexp-value '${e}', parse error: ${n}`);return console.warn(`bad regexp-value '${e}', parse error: ${n}`),null}}}function c(e,t){const n=e?e.substituteConstants():void 0,i=t?t.substituteConstants():void 0;return!n&&!i||!(!n||!i)&&n.equals(i)}function d(e,t){return e.cmp(t)}class h{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return f.INSTANCE}}h.INSTANCE=new h;class f{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return h.INSTANCE}}f.INSTANCE=new f;class p{constructor(e,t){this.key=e,this.negated=t,this.type=2}static create(e,t=null){const n=o.get(e);return"boolean"==typeof n?n?f.INSTANCE:h.INSTANCE:new p(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:N(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=o.get(this.key);return"boolean"==typeof e?e?f.INSTANCE:h.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this)),this.negated}}class g{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=4}static create(e,t,n=null){if("boolean"==typeof t)return t?p.create(e,n):_.create(e,n);const i=o.get(e);if("boolean"==typeof i){return t===(i?"true":"false")?f.INSTANCE:h.INSTANCE}return new g(e,t,n)}cmp(e){return e.type!==this.type?this.type-e.type:M(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=o.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?f.INSTANCE:h.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=y.create(this.key,this.value,this)),this.negated}}class m{constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}static create(e,t){return new m(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:M(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.indexOf(n)>=0:"string"==typeof n&&"object"==typeof t&&null!==t&&l.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=v.create(this)),this.negated}}class v{constructor(e){this._actual=e,this.type=11}static create(e){return new v(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class y{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=5}static create(e,t,n=null){if("boolean"==typeof t)return t?_.create(e,n):p.create(e,n);const i=o.get(e);if("boolean"==typeof i){return t===(i?"true":"false")?h.INSTANCE:f.INSTANCE}return new y(e,t,n)}cmp(e){return e.type!==this.type?this.type-e.type:M(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){const e=o.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?h.INSTANCE:f.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this.value,this)),this.negated}}class _{constructor(e,t){this.key=e,this.negated=t,this.type=3}static create(e,t=null){const n=o.get(e);return"boolean"==typeof n?n?h.INSTANCE:f.INSTANCE:new _(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:N(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=o.get(this.key);return"boolean"==typeof e?e?h.INSTANCE:f.INSTANCE:this}evaluate(e){return!e.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 b(e,t){if("string"==typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"==typeof e||"number"==typeof e?t(e):h.INSTANCE}class E{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=12}static create(e,t,n=null){return b(t,(t=>new E(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:M(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this.value,this)),this.negated}}class w{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=13}static create(e,t,n=null){return b(t,(t=>new w(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:M(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this.key,this.value,this)),this.negated}}class x{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=14}static create(e,t,n=null){return b(t,(t=>new x(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:M(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.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 k{constructor(e,t,n){this.key=e,this.value=t,this.negated=n,this.type=15}static create(e,t,n=null){return b(t,(t=>new k(e,t,n)))}cmp(e){return e.type!==this.type?this.type-e.type:M(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.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 S{constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}static create(e,t){return new S(e,t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=C.create(this)),this.negated}}class C{constructor(e){this._actual=e,this.type=8}static create(e){return new C(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function A(e){let t=null;for(let n=0,i=e.length;n<i;n++){const i=e[n].substituteConstants();if(e[n]!==i&&null===t){t=[];for(let i=0;i<n;i++)t[i]=e[i]}null!==t&&(t[n]=i)}return null===t?e:t}class T{constructor(e,t){this.expr=e,this.negated=t,this.type=6}static create(e,t){return T._normalizeArr(e,t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=d(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=A(this.expr);return e===this.expr?this:T.create(e,this.negated)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t){const n=[];let i=!1;for(const t of e)if(t)if(1!==t.type){if(0===t.type)return h.INSTANCE;6!==t.type?n.push(t):n.push(...t.expr)}else i=!0;if(0===n.length&&i)return f.INSTANCE;if(0!==n.length){if(1===n.length)return n[0];n.sort(d);for(let e=1;e<n.length;e++)n[e-1].equals(n[e])&&(n.splice(e,1),e--);if(1===n.length)return n[0];for(;n.length>1;){const e=n[n.length-1];if(9!==e.type)break;n.pop();const t=n.pop(),i=0===n.length,r=D.create(e.expr.map((e=>T.create([e,t],null))),null,i);r&&(n.push(r),n.sort(d))}return 1===n.length?n[0]:new T(n,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" && ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(let t of this.expr)e.push(t.negate());this.negated=D.create(e,this,!0)}return this.negated}}class D{constructor(e,t){this.expr=e,this.negated=t,this.type=9}static create(e,t,n){return D._normalizeArr(e,t,n)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=d(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=A(this.expr);return e===this.expr?this:D.create(e,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,n){let i=[],r=!1;if(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n)if(0!==n.type){if(1===n.type)return f.INSTANCE;9!==n.type?i.push(n):i=i.concat(n.expr)}else r=!0}if(0===i.length&&r)return h.INSTANCE;i.sort(d)}if(0!==i.length){if(1===i.length)return i[0];for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];if(n){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)P(i[e],i[t])&&(i.splice(t,1),t--);if(1===i.length)return i[0]}return new D(i,t)}}serialize(){return this.expr.map((e=>e.serialize())).join(" || ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),n=e.shift(),i=[];for(const e of O(t))for(const t of O(n))i.push(T.create([e,t],null));const r=0===e.length;e.unshift(D.create(i,null,r))}this.negated=e[0]}return this.negated}}class L extends p{constructor(e,t,n){super(e,null),this._defaultValue=t,"object"==typeof n?L._info.push(Object.assign(Object.assign({},n),{key:e})):!0!==n&&L._info.push({key:e,description:n,type:null!=t?typeof t:void 0})}static all(){return L._info.values()}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return g.create(this.key,e)}}L._info=[];const R=(0,s.yh)("contextKeyService"),I="setContext";function N(e,t){return e<t?-1:e>t?1:0}function M(e,t,n,i){return e<n?-1:e>n?1:t<i?-1:t>i?1:0}function P(e,t){if(6===t.type&&9!==e.type&&6!==e.type)for(const n of t.expr)if(e.equals(n))return!0;const n=O(e.negate()).concat(O(t));n.sort(d);for(let e=0;e<n.length;e++){const t=n[e].negate();for(let i=e+1;i<n.length;i++){const e=n[i];if(t.equals(e))return!0}}return!1}function O(e){return 9===e.type?e.expr:[e]}},16925:function(e,t,n){"use strict";var i;n.d(t,{I8:function(){return i},TG:function(){return r},jt:function(){return o},yh:function(){return a}}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i||(i={}));const r=a("instantiationService");function s(e,t,n,r){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:r}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:r}],t[i.DI_TARGET]=t)}function a(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");s(t,e,i,!1)};return t.toString=()=>e,i.serviceIds.set(e,t),t}function o(e){return function(t,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");s(e,t,i,!0)}}},44650:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var i=n(76068),r=n(72999);const s=new class{constructor(){this.data=new Map}add(e,t){i.ok(r.HD(e)),i.ok(r.Kn(t)),i.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},66213:function(e,t,n){"use strict";var i;n.d(t,{e:function(){return i}}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST="hc"}(i||(i={}))},49055:function(e,t,n){"use strict";n.d(t,{EN:function(){return h},IP:function(){return p},Ic:function(){return m},XE:function(){return u},bB:function(){return v},kS:function(){return d},m6:function(){return f}});var i=n(52615),r=n(4348),s=n(69323),a=n(16925),o=n(44650),l=n(66213);const u=(0,a.yh)("themeService");var c,d;function h(e){return{id:e}}function f(e){switch(e){case l.e.DARK:return"vs-dark";case l.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}!function(e){e.isThemeColor=function(e){return e&&"object"==typeof e&&"string"==typeof e.id}}(c||(c={})),function(e){e.isThemeIcon=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(void 0===e.color||c.isThemeColor(e.color))};const t=new RegExp(`^\\$\\((${i.dT.iconNameExpression}(?:${i.dT.iconModifierExpression})?)\\)$`);e.fromString=function(e){const n=t.exec(e);if(!n)return;let[,i]=n;return{id:i}},e.modify=function(e,t){let n=e.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),t&&(n=`${n}~${t}`),{id:n}},e.isEqual=function(e,t){var n,i;return e.id===t.id&&(null===(n=e.color)||void 0===n?void 0:n.id)===(null===(i=t.color)||void 0===i?void 0:i.id)},e.asThemeIcon=function(e,t){return{id:e.id,color:t?h(t):void 0}},e.asClassNameArray=i.dT.asClassNameArray,e.asClassName=i.dT.asClassName,e.asCSSSelector=i.dT.asCSSSelector}(d||(d={}));const p={ThemingContribution:"base.contributions.theming"};let g=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.Q5}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,s.OF)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function m(e){return g.onColorThemeChange(e)}o.B.add(p.ThemingContribution,g);class v extends s.JT{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},63727:function(e,t,n){"use strict";n.d(t,{s:function(){return J},default:function(){return te}});var i=n(54476),r=n(33885),s=n(94480),a=n(42978),o=n(75931),l=n(37463),u=n(6551),c=n(6089),d=n(18929),h=n(59301),f=h.createContext({}),p=n(76190),g=n(20068),m="__rc_cascader_search_mark__",v=function(e,t,n){var i=n.label,r=void 0===i?"":i;return t.some((function(t){return String(t[r]).toLowerCase().includes(e.toLowerCase())}))},y=function(e,t,n,i){return t.map((function(e){return e[i.label]})).join(" / ")},_=function(e,t,n,i,a,o){var l=a.filter,u=void 0===l?v:l,c=a.render,d=void 0===c?y:c,f=a.limit,p=void 0===f?50:f,_=a.sort;return h.useMemo((function(){var a=[];if(!e)return[];return function t(l,c){var h=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l.forEach((function(l){if(!(!_&&!1!==p&&p>0&&a.length>=p)){var f,v=[].concat((0,s.Z)(c),[l]),y=l[n.children],b=h||l.disabled;if(!y||0===y.length||o)if(u(e,v,{label:n.label}))a.push((0,r.Z)((0,r.Z)({},l),{},(f={disabled:b},(0,g.Z)(f,n.label,d(e,v,i,n)),(0,g.Z)(f,m,v),(0,g.Z)(f,n.children,void 0),f)));y&&t(l[n.children],v,b)}}))}(t,[]),_&&a.sort((function(t,i){return _(t[m],i[m],e,n)})),!1!==p&&p>0?a.slice(0,p):a}),[e,t,n,i,d,o,u,_,p])},b="__RC_CASCADER_SPLIT__",E="SHOW_PARENT",w="SHOW_CHILD";function x(e){return e.join(b)}function k(e){return e.map(x)}function S(e){var t=e||{},n=t.label,i=t.value||"value";return{label:n||"label",value:i,key:i,children:t.children||"children"}}function C(e,t){var n,i;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null!==(i=e[t.children])&&void 0!==i&&i.length)}function A(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function T(e,t){return e.map((function(e){var n;return null===(n=e[m])||void 0===n?void 0:n.map((function(e){return e[t.value]}))}))}function D(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map((function(e){return Array.isArray(e)?e:[e]})):[]}function L(e,t,n){var i=new Set(e),r=t();return e.filter((function(e){var t=r[e],s=t?t.parent:null,a=t?t.children:null;return!(!t||!t.node.disabled)||(n===w?!(a&&a.some((function(e){return e.key&&i.has(e.key)}))):!(s&&!s.node.disabled&&i.has(s.key)))}))}function R(e,t,n){for(var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=t,s=[],a=function(){var t,a,l,u=e[o],c=null===(t=r)||void 0===t?void 0:t.findIndex((function(e){var t=e[n.value];return i?String(t)===String(u):t===u})),d=-1!==c?null===(a=r)||void 0===a?void 0:a[c]:null;s.push({value:null!==(l=null==d?void 0:d[n.value])&&void 0!==l?l:u,index:c,option:d}),r=null==d?void 0:d[n.children]},o=0;o<e.length;o+=1)a();return s}function I(e,t){return h.useCallback((function(n){var i=[],r=[];return n.forEach((function(n){R(n,e,t).every((function(e){return e.option}))?r.push(n):i.push(n)})),[r,i]}),[e,t])}var N=n(34061);function M(e,t){var n=h.useMemo((function(){return t||[]}),[t]),i=function(e,t){var n=h.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}});return h.useCallback((function(){return n.current.options!==e&&(n.current.options=e,n.current.info=(0,N.I8)(e,{fieldNames:t,initWrapper:function(e){return(0,r.Z)((0,r.Z)({},e),{},{pathKeyEntities:{}})},processEntity:function(e,n){var i=e.nodes.map((function(e){return e[t.value]})).join(b);n.pathKeyEntities[i]=e,e.key=i}})),n.current.info.pathKeyEntities}),[t,e])}(n,e),s=h.useCallback((function(t){var n=i();return t.map((function(t){return n[t].nodes.map((function(t){return t[e.value]}))}))}),[i,e]);return[n,i,s]}n(48736);var P=n(34643);function O(e,t,n,i,r,a,o,l){return function(u){if(e){var c=x(u),d=k(n),h=k(i),f=d.includes(c),p=r.some((function(e){return x(e)===c})),g=n,m=r;if(p&&!f)m=r.filter((function(e){return x(e)!==c}));else{var v,y=f?d.filter((function(e){return e!==c})):[].concat((0,s.Z)(d),[c]),_=a();if(f)v=(0,P.S)(y,{checked:!1,halfCheckedKeys:h},_).checkedKeys;else v=(0,P.S)(y,!0,_).checkedKeys;var b=L(v,a,l);g=o(b)}t([].concat((0,s.Z)(m),(0,s.Z)(g)))}else t(u)}}function F(e,t,n,i,r){return h.useMemo((function(){var s=r(t),o=(0,a.Z)(s,2),l=o[0],u=o[1];if(!e||!t.length)return[l,[],u];var c=k(l),d=n(),h=(0,P.S)(c,!0,d),f=h.checkedKeys,p=h.halfCheckedKeys;return[i(f),i(p),u]}),[e,t,n,i,r])}var B=n(92310),Z=n.n(B);var j=h.memo((function(e){return e.children}),(function(e,t){return!t.open}));function U(e){var t,n=e.prefixCls,i=e.checked,r=e.halfChecked,s=e.disabled,a=e.onClick,o=e.disableCheckbox,l=h.useContext(f).checkable,u="boolean"!=typeof l?l:null;return h.createElement("span",{className:Z()("".concat(n),(t={},(0,g.Z)(t,"".concat(n,"-checked"),i),(0,g.Z)(t,"".concat(n,"-indeterminate"),!i&&r),(0,g.Z)(t,"".concat(n,"-disabled"),s||o),t)),onClick:a},u)}var K="__cascader_fix_label__";function z(e){var t=e.prefixCls,n=e.multiple,i=e.options,r=e.activeValue,a=e.prevValuePath,o=e.onToggleOpen,l=e.onSelect,u=e.onActive,c=e.checkedSet,d=e.halfCheckedSet,p=e.loadingKeys,v=e.isSelectable,y=e.disabled,_="".concat(t,"-menu"),b="".concat(t,"-menu-item"),E=h.useContext(f),w=E.fieldNames,k=E.changeOnSelect,S=E.expandTrigger,A=E.expandIcon,T=E.loadingIcon,D=E.dropdownMenuColumnStyle,L=E.optionRender,R="hover"===S,I=function(e){return y||e},N=h.useMemo((function(){return i.map((function(e){var t,n=e.disabled,i=e.disableCheckbox,r=e[m],o=null!==(t=e[K])&&void 0!==t?t:e[w.label],l=e[w.value],u=C(e,w),h=r?r.map((function(e){return e[w.value]})):[].concat((0,s.Z)(a),[l]),f=x(h);return{disabled:n,label:o,value:l,isLeaf:u,isLoading:p.includes(f),checked:c.has(f),halfChecked:d.has(f),option:e,disableCheckbox:i,fullPath:h,fullPathKey:f}}))}),[i,c,w,d,p,a]);return h.createElement("ul",{className:_,role:"menu"},N.map((function(e){var i,a,c=e.disabled,d=e.label,f=e.value,p=e.isLeaf,m=e.isLoading,y=e.checked,_=e.halfChecked,E=e.option,w=e.fullPath,x=e.fullPathKey,S=e.disableCheckbox,C=function(){if(!I(c)){var e=(0,s.Z)(w);R&&p&&e.pop(),u(e)}},N=function(){v(E)&&!I(c)&&l(w,p)};return"string"==typeof E.title?a=E.title:"string"==typeof d&&(a=d),h.createElement("li",{key:x,className:Z()(b,(i={},(0,g.Z)(i,"".concat(b,"-expand"),!p),(0,g.Z)(i,"".concat(b,"-active"),r===f||r===x),(0,g.Z)(i,"".concat(b,"-disabled"),I(c)),(0,g.Z)(i,"".concat(b,"-loading"),m),i)),style:D,role:"menuitemcheckbox",title:a,"aria-checked":y,"data-path-key":x,onClick:function(){C(),S||n&&!p||N()},onDoubleClick:function(){k&&o(!1)},onMouseEnter:function(){R&&C()},onMouseDown:function(e){e.preventDefault()}},n&&h.createElement(U,{prefixCls:"".concat(t,"-checkbox"),checked:y,halfChecked:_,disabled:I(c)||S,disableCheckbox:S,onClick:function(e){S||(e.stopPropagation(),N())}}),h.createElement("div",{className:"".concat(b,"-content")},L?L(E):d),!m&&A&&!p&&h.createElement("div",{className:"".concat(b,"-expand-icon")},A),m&&T&&h.createElement("div",{className:"".concat(b,"-loading-icon")},T))})))}var G=function(e,t){var n=h.useContext(f).values[0],i=h.useState([]),r=(0,a.Z)(i,2),s=r[0],o=r[1];return h.useEffect((function(){e||o(n||[])}),[t,n]),[s,o]},H=n(10228),V=function(e,t,n,i,r,o,l){var u=l.direction,c=l.searchValue,d=l.toggleOpen,f=l.open,p="rtl"===u,g=h.useMemo((function(){for(var e=-1,r=t,s=[],a=[],o=i.length,l=T(t,n),u=function(t){var o=r.findIndex((function(e,r){return(l[r]?x(l[r]):e[n.value])===i[t]}));if(-1===o)return 1;e=o,s.push(e),a.push(i[t]),r=r[e][n.children]},c=0;c<o&&r&&!u(c);c+=1);for(var d=t,h=0;h<s.length-1;h+=1)d=d[s[h]][n.children];return[a,e,d,l]}),[i,n,t]),v=(0,a.Z)(g,4),y=v[0],_=v[1],b=v[2],E=v[3],w=function(e){r(e)},k=function(){if(y.length>1){var e=y.slice(0,-1);w(e)}else d(!1)},S=function(){var e,t=((null===(e=b[_])||void 0===e?void 0:e[n.children])||[]).find((function(e){return!e.disabled}));if(t){var i=[].concat((0,s.Z)(y),[t[n.value]]);w(i)}};h.useImperativeHandle(e,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case H.Z.UP:case H.Z.DOWN:var i=0;t===H.Z.UP?i=-1:t===H.Z.DOWN&&(i=1),0!==i&&function(e){var t=b.length,i=_;-1===i&&e<0&&(i=t);for(var r=0;r<t;r+=1){var s=b[i=(i+e+t)%t];if(s&&!s.disabled){var a=y.slice(0,-1).concat(E[i]?x(E[i]):s[n.value]);return void w(a)}}}(i);break;case H.Z.LEFT:if(c)break;p?S():k();break;case H.Z.RIGHT:if(c)break;p?k():S();break;case H.Z.BACKSPACE:c||k();break;case H.Z.ENTER:if(y.length){var r=b[_],s=(null==r?void 0:r[m])||[];s.length?o(s.map((function(e){return e[n.value]})),s[s.length-1]):o(y,b[_])}break;case H.Z.ESC:d(!1),f&&e.stopPropagation()}},onKeyUp:function(){}}}))},W=h.forwardRef((function(e,t){var n,o,l,u=e.prefixCls,c=e.multiple,d=e.searchValue,p=e.toggleOpen,m=e.notFoundContent,v=e.direction,y=e.open,_=e.disabled,E=h.useRef(null),w="rtl"===v,S=h.useContext(f),D=S.options,L=S.values,I=S.halfValues,N=S.fieldNames,M=S.changeOnSelect,P=S.onSelect,O=S.searchOptions,F=S.dropdownPrefixCls,B=S.loadData,U=S.expandTrigger,H=F||u,W=h.useState([]),Y=(0,a.Z)(W,2),q=Y[0],X=Y[1];h.useEffect((function(){q.length&&q.forEach((function(e){var t=R(e.split(b),D,N,!0).map((function(e){return e.option})),n=t[t.length-1];(!n||n[N.children]||C(n,N))&&X((function(t){return t.filter((function(t){return t!==e}))}))}))}),[D,q,N]);var Q=h.useMemo((function(){return new Set(k(L))}),[L]),J=h.useMemo((function(){return new Set(k(I))}),[I]),$=G(c,y),ee=(0,a.Z)($,2),te=ee[0],ne=ee[1],ie=function(e){ne(e),function(e){if(B&&!d){var t=R(e,D,N).map((function(e){return e.option})),n=t[t.length-1];if(n&&!C(n,N)){var i=x(e);X((function(e){return[].concat((0,s.Z)(e),[i])})),B(t)}}}(e)},re=function(e){if(_)return!1;var t=e.disabled,n=C(e,N);return!t&&(n||M||c)},se=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];P(e),!c&&(t||M&&("hover"===U||n))&&p(!1)},ae=h.useMemo((function(){return d?O:D}),[d,O,D]),oe=h.useMemo((function(){for(var e=[{options:ae}],t=ae,n=T(t,N),i=function(){var i=te[r],s=t.find((function(e,t){return(n[t]?x(n[t]):e[N.value])===i})),a=null==s?void 0:s[N.children];if(null==a||!a.length)return 1;t=a,e.push({options:a})},r=0;r<te.length&&!i();r+=1);return e}),[ae,te,N]);V(t,ae,N,te,ie,(function(e,t){re(t)&&se(e,C(t,N),!0)}),{direction:v,searchValue:d,toggleOpen:p,open:y}),h.useEffect((function(){if(!d)for(var e=0;e<te.length;e+=1){var t,n=x(te.slice(0,e+1)),i=null===(t=E.current)||void 0===t?void 0:t.querySelector('li[data-path-key="'.concat(n.replace(/\\{0,2}"/g,'\\"'),'"]'));i&&A(i)}}),[te,d]);var le=!(null!==(n=oe[0])&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.length),ue=[(o={},(0,g.Z)(o,N.value,"__EMPTY__"),(0,g.Z)(o,K,m),(0,g.Z)(o,"disabled",!0),o)],ce=(0,r.Z)((0,r.Z)({},e),{},{multiple:!le&&c,onSelect:se,onActive:ie,onToggleOpen:p,checkedSet:Q,halfCheckedSet:J,loadingKeys:q,isSelectable:re}),de=(le?[{options:ue}]:oe).map((function(e,t){var n=te.slice(0,t),r=te[t];return h.createElement(z,(0,i.Z)({key:t},ce,{prefixCls:H,options:e.options,prevValuePath:n,activeValue:r}))}));return h.createElement(j,{open:y},h.createElement("div",{className:Z()("".concat(H,"-menus"),(l={},(0,g.Z)(l,"".concat(H,"-menu-empty"),le),(0,g.Z)(l,"".concat(H,"-rtl"),w),l)),ref:E},de))}));var Y=W,q=h.forwardRef((function(e,t){var n=(0,l.lk)();return h.createElement(Y,(0,i.Z)({},e,n,{ref:t}))})),X=n(70425);function Q(){}function J(e){var t,n=e,i=n.prefixCls,r=void 0===i?"rc-cascader":i,s=n.style,o=n.className,l=n.options,u=n.checkable,c=n.defaultValue,d=n.value,p=n.fieldNames,m=n.changeOnSelect,v=n.onChange,y=n.showCheckedStrategy,_=n.loadData,b=n.expandTrigger,E=n.expandIcon,w=void 0===E?">":E,x=n.loadingIcon,k=n.direction,C=n.notFoundContent,A=void 0===C?"Not Found":C,T=n.disabled,L=!!u,N=(0,X.C8)(c,{value:d,postState:D}),P=(0,a.Z)(N,2),B=P[0],j=P[1],U=h.useMemo((function(){return S(p)}),[JSON.stringify(p)]),K=M(U,l),z=(0,a.Z)(K,3),G=z[0],H=z[1],V=z[2],W=I(G,U),q=F(L,B,H,V,W),J=(0,a.Z)(q,3),$=J[0],ee=J[1],te=J[2],ne=(0,X.zX)((function(e){if(j(e),v){var t=D(e),n=t.map((function(e){return R(e,G,U).map((function(e){return e.option}))})),i=L?t:t[0],r=L?n:n[0];v(i,r)}})),ie=O(L,ne,$,ee,te,H,V,y),re=(0,X.zX)((function(e){ie(e)})),se=h.useMemo((function(){return{options:G,fieldNames:U,values:$,halfValues:ee,changeOnSelect:m,onSelect:re,checkable:u,searchOptions:[],dropdownPrefixCls:void 0,loadData:_,expandTrigger:b,expandIcon:w,loadingIcon:x,dropdownMenuColumnStyle:void 0}}),[G,U,$,ee,m,re,u,_,b,w,x]),ae="".concat(r,"-panel"),oe=!G.length;return h.createElement(f.Provider,{value:se},h.createElement("div",{className:Z()(ae,(t={},(0,g.Z)(t,"".concat(ae,"-rtl"),"rtl"===k),(0,g.Z)(t,"".concat(ae,"-empty"),oe),t),o),style:s},oe?A:h.createElement(Y,{prefixCls:r,searchValue:"",multiple:L,toggleOpen:Q,open:!0,direction:k,disabled:T})))}var $=["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"],ee=h.forwardRef((function(e,t){var n=e.id,g=e.prefixCls,m=void 0===g?"rc-cascader":g,v=e.fieldNames,y=e.defaultValue,b=e.value,w=e.changeOnSelect,C=e.onChange,A=e.displayRender,T=e.checkable,N=e.autoClearSearchValue,P=void 0===N||N,B=e.searchValue,Z=e.onSearch,j=e.showSearch,U=e.expandTrigger,K=e.options,z=e.dropdownPrefixCls,G=e.loadData,H=e.popupVisible,V=e.open,W=e.popupClassName,Y=e.dropdownClassName,X=e.dropdownMenuColumnStyle,Q=e.dropdownStyle,J=e.popupPlacement,ee=e.placement,te=e.onDropdownVisibleChange,ne=e.onPopupVisibleChange,ie=e.expandIcon,re=void 0===ie?">":ie,se=e.loadingIcon,ae=e.children,oe=e.dropdownMatchSelectWidth,le=void 0!==oe&&oe,ue=e.showCheckedStrategy,ce=void 0===ue?E:ue,de=e.optionRender,he=(0,o.Z)(e,$),fe=(0,u.ZP)(n),pe=!!T,ge=(0,d.Z)(y,{value:b,postState:D}),me=(0,a.Z)(ge,2),ve=me[0],ye=me[1],_e=h.useMemo((function(){return S(v)}),[JSON.stringify(v)]),be=M(_e,K),Ee=(0,a.Z)(be,3),we=Ee[0],xe=Ee[1],ke=Ee[2],Se=(0,d.Z)("",{value:B,postState:function(e){return e||""}}),Ce=(0,a.Z)(Se,2),Ae=Ce[0],Te=Ce[1],De=function(e){return h.useMemo((function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&"object"===(0,p.Z)(e)&&(t=(0,r.Z)((0,r.Z)({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]}),[e])}(j),Le=(0,a.Z)(De,2),Re=Le[0],Ie=Le[1],Ne=_(Ae,we,_e,z||m,Ie,w||pe),Me=I(we,_e),Pe=F(pe,ve,xe,ke,Me),Oe=(0,a.Z)(Pe,3),Fe=Oe[0],Be=Oe[1],Ze=Oe[2],je=function(e,t,n,i,r){return h.useMemo((function(){var a=r||function(e){var t=i?e.slice(-1):e;return t.every((function(e){return["string","number"].includes((0,p.Z)(e))}))?t.join(" / "):t.reduce((function(e,t,n){var i=h.isValidElement(t)?h.cloneElement(t,{key:n}):t;return 0===n?[i]:[].concat((0,s.Z)(e),[" / ",i])}),[])};return e.map((function(e){var i,r=R(e,t,n),s=a(r.map((function(e){var t,i=e.option,r=e.value;return null!==(t=null==i?void 0:i[n.label])&&void 0!==t?t:r})),r.map((function(e){return e.option}))),o=x(e);return{label:s,value:o,key:o,valueCells:e,disabled:null===(i=r[r.length-1])||void 0===i||null===(i=i.option)||void 0===i?void 0:i.disabled}}))}),[e,t,n,r,i])}(h.useMemo((function(){var e=L(k(Fe),xe,ce);return[].concat((0,s.Z)(Ze),(0,s.Z)(ke(e)))}),[Fe,xe,ke,Ze,ce]),we,_e,pe,A),Ue=(0,c.Z)((function(e){if(ye(e),C){var t=D(e),n=t.map((function(e){return R(e,we,_e).map((function(e){return e.option}))})),i=pe?t:t[0],r=pe?n:n[0];C(i,r)}})),Ke=O(pe,Ue,Fe,Be,Ze,xe,ke,ce),ze=(0,c.Z)((function(e){pe&&!P||Te(""),Ke(e)})),Ge=void 0!==V?V:H,He=Y||W,Ve=ee||J;var We=h.useMemo((function(){return{options:we,fieldNames:_e,values:Fe,halfValues:Be,changeOnSelect:w,onSelect:ze,checkable:T,searchOptions:Ne,dropdownPrefixCls:z,loadData:G,expandTrigger:U,expandIcon:re,loadingIcon:se,dropdownMenuColumnStyle:X,optionRender:de}}),[we,_e,Fe,Be,w,ze,T,Ne,z,G,U,re,se,X,de]),Ye=!(Ae?Ne:we).length,qe=Ae&&Ie.matchInputWidth||Ye?{}:{minWidth:"auto"};return h.createElement(f.Provider,{value:We},h.createElement(l.Ac,(0,i.Z)({},he,{ref:t,id:fe,prefixCls:m,autoClearSearchValue:P,dropdownMatchSelectWidth:le,dropdownStyle:(0,r.Z)((0,r.Z)({},qe),Q),displayValues:je,onDisplayValuesChange:function(e,t){if("clear"!==t.type){var n=t.values[0].valueCells;ze(n)}else Ue([])},mode:pe?"multiple":void 0,searchValue:Ae,onSearch:function(e,t){Te(e),"blur"!==t.source&&Z&&Z(e)},showSearch:Re,OptionList:q,emptyOptions:Ye,open:Ge,dropdownClassName:He,placement:Ve,onDropdownVisibleChange:function(e){null==te||te(e),null==ne||ne(e)},getRawInputElement:function(){return ae}})))}));ee.SHOW_PARENT=E,ee.SHOW_CHILD=w,ee.Panel=J;var te=ee},16632:function(e,t,n){"use strict";var i=n(54476),r=n(33885),s=n(20068),a=n(42978),o=n(75931),l=n(92310),u=n.n(l),c=n(18929),d=n(59301),h=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],f=(0,d.forwardRef)((function(e,t){var n=e.prefixCls,l=void 0===n?"rc-checkbox":n,f=e.className,p=e.style,g=e.checked,m=e.disabled,v=e.defaultChecked,y=void 0!==v&&v,_=e.type,b=void 0===_?"checkbox":_,E=e.title,w=e.onChange,x=(0,o.Z)(e,h),k=(0,d.useRef)(null),S=(0,d.useRef)(null),C=(0,c.Z)(y,{value:g}),A=(0,a.Z)(C,2),T=A[0],D=A[1];(0,d.useImperativeHandle)(t,(function(){return{focus:function(e){var t;null===(t=k.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=k.current)||void 0===e||e.blur()},input:k.current,nativeElement:S.current}}));var L=u()(l,f,(0,s.Z)((0,s.Z)({},"".concat(l,"-checked"),T),"".concat(l,"-disabled"),m));return d.createElement("span",{className:L,title:E,style:p,ref:S},d.createElement("input",(0,i.Z)({},x,{className:"".concat(l,"-input"),ref:k,onChange:function(t){m||("checked"in e||D(t.target.checked),null==w||w({target:(0,r.Z)((0,r.Z)({},e),{},{type:b,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:m,checked:!!T,type:b})),d.createElement("span",{className:"".concat(l,"-inner")}))}));t.Z=f},96478:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var i=n(54476),r=n(20068),s=n(42978),a=n(75931),o=n(65030),l=n(92310),u=n.n(l),c=n(8654),d=n(59301),h=n(10228),f=n(16089),p=h.Z.ESC,g=h.Z.TAB;var m=(0,d.forwardRef)((function(e,t){var n=e.overlay,i=e.arrow,r=e.prefixCls,s=(0,d.useMemo)((function(){return"function"==typeof n?n():n}),[n]),a=(0,c.sQ)(t,(0,c.C4)(s));return d.createElement(d.Fragment,null,i&&d.createElement("div",{className:"".concat(r,"-arrow")}),d.cloneElement(s,{ref:(0,c.Yr)(s)?a:void 0}))})),v={adjustX:1,adjustY:1},y=[0,0],_={topLeft:{points:["bl","tl"],overflow:v,offset:[0,-4],targetOffset:y},top:{points:["bc","tc"],overflow:v,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:v,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:v,offset:[0,4],targetOffset:y},bottom:{points:["tc","bc"],overflow:v,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:v,offset:[0,4],targetOffset:y}},b=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function E(e,t){var n,l=e.arrow,h=void 0!==l&&l,v=e.prefixCls,y=void 0===v?"rc-dropdown":v,E=e.transitionName,w=e.animation,x=e.align,k=e.placement,S=void 0===k?"bottomLeft":k,C=e.placements,A=void 0===C?_:C,T=e.getPopupContainer,D=e.showAction,L=e.hideAction,R=e.overlayClassName,I=e.overlayStyle,N=e.visible,M=e.trigger,P=void 0===M?["hover"]:M,O=e.autoFocus,F=e.overlay,B=e.children,Z=e.onVisibleChange,j=(0,a.Z)(e,b),U=d.useState(),K=(0,s.Z)(U,2),z=K[0],G=K[1],H="visible"in e?N:z,V=d.useRef(null),W=d.useRef(null),Y=d.useRef(null);d.useImperativeHandle(t,(function(){return V.current}));var q=function(e){G(e),null==Z||Z(e)};!function(e){var t=e.visible,n=e.triggerRef,i=e.onVisibleChange,r=e.autoFocus,s=e.overlayRef,a=d.useRef(!1),o=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==i||i(!1))},l=function(){var e;return!(null===(e=s.current)||void 0===e||!e.focus||(s.current.focus(),a.current=!0,0))},u=function(e){switch(e.keyCode){case p:o();break;case g:var t=!1;a.current||(t=l()),t?e.preventDefault():o()}};d.useEffect((function(){return t?(window.addEventListener("keydown",u),r&&(0,f.Z)(l,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}}),[t])}({visible:H,triggerRef:Y,onVisibleChange:q,autoFocus:O,overlayRef:W});var X,Q,J,$=function(){return d.createElement(m,{ref:W,overlay:F,prefixCls:y,arrow:h})},ee=d.cloneElement(B,{className:u()(null===(n=B.props)||void 0===n?void 0:n.className,H&&(X=e.openClassName,void 0!==X?X:"".concat(y,"-open"))),ref:(0,c.Yr)(B)?(0,c.sQ)(Y,(0,c.C4)(B)):void 0}),te=L;return te||-1===P.indexOf("contextMenu")||(te=["click"]),d.createElement(o.Z,(0,i.Z)({builtinPlacements:A},j,{prefixCls:y,ref:V,popupClassName:u()(R,(0,r.Z)({},"".concat(y,"-show-arrow"),h)),popupStyle:I,action:P,showAction:D,hideAction:te,popupPlacement:S,popupAlign:x,popupTransitionName:E,popupAnimation:w,popupVisible:H,stretch:(Q=e.minOverlayWidthMatchTrigger,J=e.alignPoint,("minOverlayWidthMatchTrigger"in e?Q:!J)?"minWidth":""),popup:"function"==typeof F?$:$(),onPopupVisibleChange:q,onPopupClick:function(t){var n=e.onOverlayClick;G(!1),n&&n(t)},getPopupContainer:T}),ee)}var w=d.forwardRef(E)},66003:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(75931),r=n(33885),s=n(76190),a=n(59301),o=["show"];function l(e,t){return a.useMemo((function(){var n={};t&&(n.show="object"===(0,s.Z)(t)&&t.formatter?t.formatter:!!t);var a=n=(0,r.Z)((0,r.Z)({},n),e),l=a.show,u=(0,i.Z)(a,o);return(0,r.Z)((0,r.Z)({},u),{},{show:!!l,showFormatter:"function"==typeof l?l:void 0,strategy:u.strategy||function(e){return e.length}})}),[e,t])}},36901:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseInput:function(){return d},default:function(){return _}});var i=n(33885),r=n(54476),s=n(20068),a=n(76190),o=n(92310),l=n.n(o),u=n(59301),c=n(30292),d=u.forwardRef((function(e,t){var n,o,d,h=e.inputElement,f=e.children,p=e.prefixCls,g=e.prefix,m=e.suffix,v=e.addonBefore,y=e.addonAfter,_=e.className,b=e.style,E=e.disabled,w=e.readOnly,x=e.focused,k=e.triggerFocus,S=e.allowClear,C=e.value,A=e.handleReset,T=e.hidden,D=e.classes,L=e.classNames,R=e.dataAttrs,I=e.styles,N=e.components,M=e.onClear,P=null!=f?f:h,O=(null==N?void 0:N.affixWrapper)||"span",F=(null==N?void 0:N.groupWrapper)||"span",B=(null==N?void 0:N.wrapper)||"span",Z=(null==N?void 0:N.groupAddon)||"span",j=(0,u.useRef)(null),U=(0,c.X3)(e),K=(0,u.cloneElement)(P,{value:C,className:l()(null===(n=P.props)||void 0===n?void 0:n.className,!U&&(null==L?void 0:L.variant))||null}),z=(0,u.useRef)(null);if(u.useImperativeHandle(t,(function(){return{nativeElement:z.current||j.current}})),U){var G=null;if(S){var H=!E&&!w&&C,V="".concat(p,"-clear-icon"),W="object"===(0,a.Z)(S)&&null!=S&&S.clearIcon?S.clearIcon:"✖";G=u.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==A||A(e),null==M||M()},onMouseDown:function(e){return e.preventDefault()},className:l()(V,(0,s.Z)((0,s.Z)({},"".concat(V,"-hidden"),!H),"".concat(V,"-has-suffix"),!!m))},W)}var Y="".concat(p,"-affix-wrapper"),q=l()(Y,(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},"".concat(p,"-disabled"),E),"".concat(Y,"-disabled"),E),"".concat(Y,"-focused"),x),"".concat(Y,"-readonly"),w),"".concat(Y,"-input-with-clear-btn"),m&&S&&C),null==D?void 0:D.affixWrapper,null==L?void 0:L.affixWrapper,null==L?void 0:L.variant),X=(m||S)&&u.createElement("span",{className:l()("".concat(p,"-suffix"),null==L?void 0:L.suffix),style:null==I?void 0:I.suffix},G,m);K=u.createElement(O,(0,r.Z)({className:q,style:null==I?void 0:I.affixWrapper,onClick:function(e){var t;null!==(t=j.current)&&void 0!==t&&t.contains(e.target)&&(null==k||k())}},null==R?void 0:R.affixWrapper,{ref:j}),g&&u.createElement("span",{className:l()("".concat(p,"-prefix"),null==L?void 0:L.prefix),style:null==I?void 0:I.prefix},g),K,X)}if((0,c.He)(e)){var Q="".concat(p,"-group"),J="".concat(Q,"-addon"),$="".concat(Q,"-wrapper"),ee=l()("".concat(p,"-wrapper"),Q,null==D?void 0:D.wrapper,null==L?void 0:L.wrapper),te=l()($,(0,s.Z)({},"".concat($,"-disabled"),E),null==D?void 0:D.group,null==L?void 0:L.groupWrapper);K=u.createElement(F,{className:te,ref:z},u.createElement(B,{className:ee},v&&u.createElement(Z,{className:J},v),K,y&&u.createElement(Z,{className:J},y)))}return u.cloneElement(K,{className:l()(null===(o=K.props)||void 0===o?void 0:o.className,_)||null,style:(0,i.Z)((0,i.Z)({},null===(d=K.props)||void 0===d?void 0:d.style),b),hidden:T})})),h=n(94480),f=n(42978),p=n(75931),g=n(18929),m=n(2738),v=n(66003),y=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],_=(0,u.forwardRef)((function(e,t){var n=e.autoComplete,a=e.onChange,o=e.onFocus,_=e.onBlur,b=e.onPressEnter,E=e.onKeyDown,w=e.onKeyUp,x=e.prefixCls,k=void 0===x?"rc-input":x,S=e.disabled,C=e.htmlSize,A=e.className,T=e.maxLength,D=e.suffix,L=e.showCount,R=e.count,I=e.type,N=void 0===I?"text":I,M=e.classes,P=e.classNames,O=e.styles,F=e.onCompositionStart,B=e.onCompositionEnd,Z=(0,p.Z)(e,y),j=(0,u.useState)(!1),U=(0,f.Z)(j,2),K=U[0],z=U[1],G=(0,u.useRef)(!1),H=(0,u.useRef)(!1),V=(0,u.useRef)(null),W=(0,u.useRef)(null),Y=function(e){V.current&&(0,c.nH)(V.current,e)},q=(0,g.Z)(e.defaultValue,{value:e.value}),X=(0,f.Z)(q,2),Q=X[0],J=X[1],$=null==Q?"":String(Q),ee=(0,u.useState)(null),te=(0,f.Z)(ee,2),ne=te[0],ie=te[1],re=(0,v.Z)(R,L),se=re.max||T,ae=re.strategy($),oe=!!se&&ae>se;(0,u.useImperativeHandle)(t,(function(){var e;return{focus:Y,blur:function(){var e;null===(e=V.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var i;null===(i=V.current)||void 0===i||i.setSelectionRange(e,t,n)},select:function(){var e;null===(e=V.current)||void 0===e||e.select()},input:V.current,nativeElement:(null===(e=W.current)||void 0===e?void 0:e.nativeElement)||V.current}})),(0,u.useEffect)((function(){H.current&&(H.current=!1),z((function(e){return(!e||!S)&&e}))}),[S]);var le=function(e,t,n){var i,r,s=t;if(!G.current&&re.exceedFormatter&&re.max&&re.strategy(t)>re.max)t!==(s=re.exceedFormatter(t,{max:re.max}))&&ie([(null===(i=V.current)||void 0===i?void 0:i.selectionStart)||0,(null===(r=V.current)||void 0===r?void 0:r.selectionEnd)||0]);else if("compositionEnd"===n.source)return;J(s),V.current&&(0,c.rJ)(V.current,e,a,s)};(0,u.useEffect)((function(){var e;ne&&(null===(e=V.current)||void 0===e||e.setSelectionRange.apply(e,(0,h.Z)(ne)))}),[ne]);var ue,ce=function(e){le(e,e.target.value,{source:"change"})},de=function(e){G.current=!1,le(e,e.currentTarget.value,{source:"compositionEnd"}),null==B||B(e)},he=function(e){b&&"Enter"===e.key&&!H.current&&(H.current=!0,b(e)),null==E||E(e)},fe=function(e){"Enter"===e.key&&(H.current=!1),null==w||w(e)},pe=function(e){z(!0),null==o||o(e)},ge=function(e){H.current&&(H.current=!1),z(!1),null==_||_(e)},me=oe&&"".concat(k,"-out-of-range");return u.createElement(d,(0,r.Z)({},Z,{prefixCls:k,className:l()(A,me),handleReset:function(e){J(""),Y(),V.current&&(0,c.rJ)(V.current,e,a)},value:$,focused:K,triggerFocus:Y,suffix:function(){var e=Number(se)>0;if(D||re.show){var t=re.showFormatter?re.showFormatter({value:$,count:ae,maxLength:se}):"".concat(ae).concat(e?" / ".concat(se):"");return u.createElement(u.Fragment,null,re.show&&u.createElement("span",{className:l()("".concat(k,"-show-count-suffix"),(0,s.Z)({},"".concat(k,"-show-count-has-suffix"),!!D),null==P?void 0:P.count),style:(0,i.Z)({},null==O?void 0:O.count)},t),D)}return null}(),disabled:S,classes:M,classNames:P,styles:O}),(ue=(0,m.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),u.createElement("input",(0,r.Z)({autoComplete:n},ue,{onChange:ce,onFocus:pe,onBlur:ge,onKeyDown:he,onKeyUp:fe,className:l()(k,(0,s.Z)({},"".concat(k,"-disabled"),S),null==P?void 0:P.input),style:null==O?void 0:O.input,ref:V,size:C,type:N,onCompositionStart:function(e){G.current=!0,null==F||F(e)},onCompositionEnd:de}))))}))},30292:function(e,t,n){"use strict";function i(e){return!(!e.addonBefore&&!e.addonAfter)}function r(e){return!!(e.prefix||e.suffix||e.allowClear)}function s(e,t,n){var i=t.cloneNode(!0),r=Object.create(e,{target:{value:i},currentTarget:{value:i}});return i.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(i.selectionStart=t.selectionStart,i.selectionEnd=t.selectionEnd),i.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},r}function a(e,t,n,i){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===i?n(r):n(r=s(t,e,i)):n(r=s(t,e,""))}}function o(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var i=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}n.d(t,{He:function(){return i},X3:function(){return r},nH:function(){return o},rJ:function(){return a}})},28321:function(e,t,n){"use strict";n.d(t,{iz:function(){return je},ck:function(){return _e},BW:function(){return ze},sN:function(){return _e},Wd:function(){return Be},ZP:function(){return Qe},Xl:function(){return T}});var i=n(54476),r=n(20068),s=n(33885),a=n(94480),o=n(42978),l=n(75931),u=n(92310),c=n.n(u),d=n(11780),h=n(18929),f=n(13697),p=n(48736),g=n(59301),m=n(4676),v=g.createContext(null);function y(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function _(e){return y(g.useContext(v),e)}var b=n(80547),E=["children","locked"],w=g.createContext(null);function x(e){var t=e.children,n=e.locked,i=(0,l.Z)(e,E),r=g.useContext(w),a=(0,b.Z)((function(){return e=r,t=i,n=(0,s.Z)({},e),Object.keys(t).forEach((function(e){var i=t[e];void 0!==i&&(n[e]=i)})),n;var e,t,n}),[r,i],(function(e,t){return!(n||e[0]===t[0]&&(0,f.Z)(e[1],t[1],!0))}));return g.createElement(w.Provider,{value:a},t)}var k=[],S=g.createContext(null);function C(){return g.useContext(S)}var A=g.createContext(k);function T(e){var t=g.useContext(A);return g.useMemo((function(){return void 0!==e?[].concat((0,a.Z)(t),[e]):t}),[t,e])}var D=g.createContext(null),L=g.createContext({}),R=n(29194);function I(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,R.Z)(e)){var n=e.nodeName.toLowerCase(),i=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),s=Number(r),a=null;return r&&!Number.isNaN(s)?a=s:i&&null===a&&(a=0),i&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,a.Z)(e.querySelectorAll("*")).filter((function(e){return I(e,t)}));return I(e,t)&&n.unshift(e),n}var M=n(10228),P=n(16089),O=M.Z.LEFT,F=M.Z.RIGHT,B=M.Z.UP,Z=M.Z.DOWN,j=M.Z.ENTER,U=M.Z.ESC,K=M.Z.HOME,z=M.Z.END,G=[B,Z,O,F];function H(e,t){return N(e,!0).filter((function(e){return t.has(e)}))}function V(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=H(e,t),s=r.length,a=r.findIndex((function(e){return n===e}));return i<0?-1===a?a=s-1:a-=1:i>0&&(a+=1),r[a=(a+s)%s]}var W=function(e,t){var n=new Set,i=new Map,r=new Map;return e.forEach((function(e){var s=document.querySelector("[data-menu-id='".concat(y(t,e),"']"));s&&(n.add(s),r.set(s,e),i.set(e,s))})),{elements:n,key2element:i,element2key:r}};function Y(e,t,n,i,s,a,o,l,u,c){var d=g.useRef(),h=g.useRef();h.current=t;var f=function(){P.Z.cancel(d.current)};return g.useEffect((function(){return function(){f()}}),[]),function(p){var g=p.which;if([].concat(G,[j,U,K,z]).includes(g)){var m=a(),v=W(m,i),y=v,_=y.elements,b=y.key2element,E=y.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(b.get(t),_),x=E.get(w),k=function(e,t,n,i){var s,a="prev",o="next",l="children",u="parent";if("inline"===e&&i===j)return{inlineTrigger:!0};var c=(0,r.Z)((0,r.Z)({},B,a),Z,o),d=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},O,n?o:a),F,n?a:o),Z,l),j,l),h=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},B,a),Z,o),j,l),U,u),O,n?l:u),F,n?u:l);switch(null===(s={inline:c,horizontal:d,vertical:h,inlineSub:c,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[i]){case a:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case u:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===o(x,!0).length,n,g);if(!k&&g!==K&&g!==z)return;(G.includes(g)||[K,z].includes(g))&&p.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var i=E.get(e);l(i),f(),d.current=(0,P.Z)((function(){h.current===i&&t.focus()}))}};if([K,z].includes(g)||k.sibling||!w){var C,A,T=H(C=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):s.current,_);A=g===K?T[0]:g===z?T[T.length-1]:V(C,_,w,k.offset),S(A)}else if(k.inlineTrigger)u(x);else if(k.offset>0)u(x,!0),f(),d.current=(0,P.Z)((function(){v=W(m,i);var e=w.getAttribute("aria-controls"),t=V(document.getElementById(e),v.elements);S(t)}),5);else if(k.offset<0){var D=o(x,!0),L=D[D.length-2],R=b.get(L);u(L,!1),S(R)}}null==c||c(p)}}var q="__RC_UTIL_PATH_SPLIT__",X=function(e){return e.join(q)},Q="rc-menu-more";function J(){var e=g.useState({}),t=(0,o.Z)(e,2)[1],n=(0,g.useRef)(new Map),i=(0,g.useRef)(new Map),r=g.useState([]),s=(0,o.Z)(r,2),l=s[0],u=s[1],c=(0,g.useRef)(0),d=(0,g.useRef)(!1),h=(0,g.useCallback)((function(e,r){var s=X(r);i.current.set(s,e),n.current.set(e,s),c.current+=1;var a,o=c.current;a=function(){o===c.current&&(d.current||t({}))},Promise.resolve().then(a)}),[]),f=(0,g.useCallback)((function(e,t){var r=X(t);i.current.delete(r),n.current.delete(e)}),[]),p=(0,g.useCallback)((function(e){u(e)}),[]),m=(0,g.useCallback)((function(e,t){var i=n.current.get(e)||"",r=i.split(q);return t&&l.includes(r[0])&&r.unshift(Q),r}),[l]),v=(0,g.useCallback)((function(e,t){return e.filter((function(e){return void 0!==e})).some((function(e){return m(e,!0).includes(t)}))}),[m]),y=(0,g.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(q),r=new Set;return(0,a.Z)(i.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(i.current.get(e))})),r}),[]);return g.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:h,unregisterPath:f,refreshOverflowKeys:p,isSubPathKey:v,getKeyPath:m,getKeys:function(){var e=(0,a.Z)(n.current.keys());return l.length&&e.push(Q),e},getSubPathKeys:y}}function $(e){var t=g.useRef(e);t.current=e;var n=g.useCallback((function(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(i))}),[]);return e?n:void 0}var ee=Math.random().toFixed(5).toString().slice(2),te=0;var ne=n(67732),ie=n(83652),re=n(42403),se=n(158),ae=n(2738),oe=n(8654);function le(e,t,n,i){var r=g.useContext(w),s=r.activeKey,a=r.onActive,o=r.onInactive,l={active:s===e};return t||(l.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},l.onMouseLeave=function(t){null==i||i({key:e,domEvent:t}),o(e)}),l}function ue(e){var t=g.useContext(w),n=t.mode,i=t.rtl,r=t.inlineIndent;if("inline"!==n)return null;return i?{paddingRight:e*r}:{paddingLeft:e*r}}function ce(e){var t,n=e.icon,i=e.props,r=e.children;return null===n||!1===n?null:("function"==typeof n?t=g.createElement(n,(0,s.Z)({},i)):"boolean"!=typeof n&&(t=n),t||r||null)}var de=["item"];function he(e){var t=e.item,n=(0,l.Z)(e,de);return Object.defineProperty(n,"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."),t}}),n}var fe=["title","attribute","elementRef"],pe=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ge=["active"],me=function(e){(0,re.Z)(n,e);var t=(0,se.Z)(n);function n(){return(0,ne.Z)(this,n),t.apply(this,arguments)}return(0,ie.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,s=(0,l.Z)(e,fe),a=(0,ae.Z)(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,p.ZP)(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),g.createElement(d.Z.Item,(0,i.Z)({},n,{title:"string"==typeof t?t:void 0},a,{ref:r}))}}]),n}(g.Component),ve=g.forwardRef((function(e,t){var n=e.style,o=e.className,u=e.eventKey,d=(e.warnKey,e.disabled),h=e.itemIcon,f=e.children,p=e.role,m=e.onMouseEnter,v=e.onMouseLeave,y=e.onClick,b=e.onKeyDown,E=e.onFocus,x=(0,l.Z)(e,pe),k=_(u),S=g.useContext(w),C=S.prefixCls,A=S.onItemClick,D=S.disabled,R=S.overflowDisabled,I=S.itemIcon,N=S.selectedKeys,P=S.onActive,O=g.useContext(L)._internalRenderMenuItem,F="".concat(C,"-item"),B=g.useRef(),Z=g.useRef(),j=D||d,U=(0,oe.x1)(t,Z),K=T(u);var z=function(e){return{key:u,keyPath:(0,a.Z)(K).reverse(),item:B.current,domEvent:e}},G=h||I,H=le(u,j,m,v),V=H.active,W=(0,l.Z)(H,ge),Y=N.includes(u),q=ue(K.length),X={};"option"===e.role&&(X["aria-selected"]=Y);var Q=g.createElement(me,(0,i.Z)({ref:B,elementRef:U,role:null===p?"none":p||"menuitem",tabIndex:d?null:-1,"data-menu-id":R&&k?null:k},(0,ae.Z)(x,["extra"]),W,X,{component:"li","aria-disabled":d,style:(0,s.Z)((0,s.Z)({},q),n),className:c()(F,(0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(F,"-active"),V),"".concat(F,"-selected"),Y),"".concat(F,"-disabled"),j),o),onClick:function(e){if(!j){var t=z(e);null==y||y(he(t)),A(t)}},onKeyDown:function(e){if(null==b||b(e),e.which===M.Z.ENTER){var t=z(e);null==y||y(he(t)),A(t)}},onFocus:function(e){P(u),null==E||E(e)}}),f,g.createElement(ce,{props:(0,s.Z)((0,s.Z)({},e),{},{isSelected:Y}),icon:G}));return O&&(Q=O(Q,e,{selected:Y})),Q}));function ye(e,t){var n=e.eventKey,r=C(),s=T(n);return g.useEffect((function(){if(r)return r.registerPath(n,s),function(){r.unregisterPath(n,s)}}),[s]),r?null:g.createElement(ve,(0,i.Z)({},e,{ref:t}))}var _e=g.forwardRef(ye),be=["className","children"],Ee=function(e,t){var n=e.className,r=e.children,s=(0,l.Z)(e,be),a=g.useContext(w),o=a.prefixCls,u=a.mode,d=a.rtl;return g.createElement("ul",(0,i.Z)({className:c()(o,d&&"".concat(o,"-rtl"),"".concat(o,"-sub"),"".concat(o,"-").concat("inline"===u?"inline":"vertical"),n),role:"menu"},s,{"data-menu-list":!0,ref:t}),r)},we=g.forwardRef(Ee);we.displayName="SubMenuList";var xe=we,ke=n(11592);function Se(e,t){return(0,ke.Z)(e).map((function(e,n){if(g.isValidElement(e)){var i,r,s=e.key,o=null!==(i=null===(r=e.props)||void 0===r?void 0:r.eventKey)&&void 0!==i?i:s;null==o&&(o="tmp_key-".concat([].concat((0,a.Z)(t),[n]).join("-")));var l={key:o,eventKey:o};return g.cloneElement(e,l)}return e}))}var Ce=n(65030),Ae={adjustX:1,adjustY:1},Te={topLeft:{points:["bl","tl"],overflow:Ae},topRight:{points:["br","tr"],overflow:Ae},bottomLeft:{points:["tl","bl"],overflow:Ae},bottomRight:{points:["tr","br"],overflow:Ae},leftTop:{points:["tr","tl"],overflow:Ae},leftBottom:{points:["br","bl"],overflow:Ae},rightTop:{points:["tl","tr"],overflow:Ae},rightBottom:{points:["bl","br"],overflow:Ae}},De={topLeft:{points:["bl","tl"],overflow:Ae},topRight:{points:["br","tr"],overflow:Ae},bottomLeft:{points:["tl","bl"],overflow:Ae},bottomRight:{points:["tr","br"],overflow:Ae},rightTop:{points:["tr","tl"],overflow:Ae},rightBottom:{points:["br","bl"],overflow:Ae},leftTop:{points:["tl","tr"],overflow:Ae},leftBottom:{points:["bl","br"],overflow:Ae}};function Le(e,t,n){return t||(n?n[e]||n.other:void 0)}var Re={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ie(e){var t=e.prefixCls,n=e.visible,i=e.children,a=e.popup,l=e.popupStyle,u=e.popupClassName,d=e.popupOffset,h=e.disabled,f=e.mode,p=e.onVisibleChange,m=g.useContext(w),v=m.getPopupContainer,y=m.rtl,_=m.subMenuOpenDelay,b=m.subMenuCloseDelay,E=m.builtinPlacements,x=m.triggerSubMenuAction,k=m.forceSubMenuRender,S=m.rootClassName,C=m.motion,A=m.defaultMotions,T=g.useState(!1),D=(0,o.Z)(T,2),L=D[0],R=D[1],I=y?(0,s.Z)((0,s.Z)({},De),E):(0,s.Z)((0,s.Z)({},Te),E),N=Re[f],M=Le(f,C,A),O=g.useRef(M);"inline"!==f&&(O.current=M);var F=(0,s.Z)((0,s.Z)({},O.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),B=g.useRef();return g.useEffect((function(){return B.current=(0,P.Z)((function(){R(n)})),function(){P.Z.cancel(B.current)}}),[n]),g.createElement(Ce.Z,{prefixCls:t,popupClassName:c()("".concat(t,"-popup"),(0,r.Z)({},"".concat(t,"-rtl"),y),u,S),stretch:"horizontal"===f?"minWidth":null,getPopupContainer:v,builtinPlacements:I,popupPlacement:N,popupVisible:L,popup:a,popupStyle:l,popupAlign:d&&{offset:d},action:h?[]:[x],mouseEnterDelay:_,mouseLeaveDelay:b,onPopupVisibleChange:p,forceRender:k,popupMotion:F,fresh:!0},i)}var Ne=n(77900);function Me(e){var t=e.id,n=e.open,r=e.keyPath,a=e.children,l="inline",u=g.useContext(w),c=u.prefixCls,d=u.forceSubMenuRender,h=u.motion,f=u.defaultMotions,p=u.mode,m=g.useRef(!1);m.current=p===l;var v=g.useState(!m.current),y=(0,o.Z)(v,2),_=y[0],b=y[1],E=!!m.current&&n;g.useEffect((function(){m.current&&b(!1)}),[p]);var k=(0,s.Z)({},Le(l,h,f));r.length>1&&(k.motionAppear=!1);var S=k.onVisibleChanged;return k.onVisibleChanged=function(e){return m.current||e||b(!0),null==S?void 0:S(e)},_?null:g.createElement(x,{mode:l,locked:!m.current},g.createElement(Ne.default,(0,i.Z)({visible:E},k,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,i=e.style;return g.createElement(xe,{id:t,className:n,style:i},a)})))}var Pe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Oe=["active"],Fe=g.forwardRef((function(e,t){var n=e.style,a=e.className,u=e.title,h=e.eventKey,f=(e.warnKey,e.disabled),p=e.internalPopupClose,m=e.children,v=e.itemIcon,y=e.expandIcon,b=e.popupClassName,E=e.popupOffset,k=e.popupStyle,S=e.onClick,C=e.onMouseEnter,A=e.onMouseLeave,R=e.onTitleClick,I=e.onTitleMouseEnter,N=e.onTitleMouseLeave,M=(0,l.Z)(e,Pe),P=_(h),O=g.useContext(w),F=O.prefixCls,B=O.mode,Z=O.openKeys,j=O.disabled,U=O.overflowDisabled,K=O.activeKey,z=O.selectedKeys,G=O.itemIcon,H=O.expandIcon,V=O.onItemClick,W=O.onOpenChange,Y=O.onActive,q=g.useContext(L)._internalRenderSubMenuItem,X=g.useContext(D).isSubPathKey,Q=T(),J="".concat(F,"-submenu"),ee=j||f,te=g.useRef(),ne=g.useRef();var ie=null!=v?v:G,re=null!=y?y:H,se=Z.includes(h),ae=!U&&se,oe=X(z,h),de=le(h,ee,I,N),fe=de.active,pe=(0,l.Z)(de,Oe),ge=g.useState(!1),me=(0,o.Z)(ge,2),ve=me[0],ye=me[1],_e=function(e){ee||ye(e)},be=g.useMemo((function(){return fe||"inline"!==B&&(ve||X([K],h))}),[B,fe,K,ve,h,X]),Ee=ue(Q.length),we=$((function(e){null==S||S(he(e)),V(e)})),ke=P&&"".concat(P,"-popup"),Se=g.useMemo((function(){return g.createElement(ce,{icon:"horizontal"!==B?re:void 0,props:(0,s.Z)((0,s.Z)({},e),{},{isOpen:ae,isSubMenu:!0})},g.createElement("i",{className:"".concat(J,"-arrow")}))}),[B,re,e,ae,J]),Ce=g.createElement("div",(0,i.Z)({role:"menuitem",style:Ee,className:"".concat(J,"-title"),tabIndex:ee?null:-1,ref:te,title:"string"==typeof u?u:null,"data-menu-id":U&&P?null:P,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":ke,"aria-disabled":ee,onClick:function(e){ee||(null==R||R({key:h,domEvent:e}),"inline"===B&&W(h,!se))},onFocus:function(){Y(h)}},pe),u,Se),Ae=g.useRef(B);if("inline"!==B&&Q.length>1?Ae.current="vertical":Ae.current=B,!U){var Te=Ae.current;Ce=g.createElement(Ie,{mode:Te,prefixCls:J,visible:!p&&ae&&"inline"!==B,popupClassName:b,popupOffset:E,popupStyle:k,popup:g.createElement(x,{mode:"horizontal"===Te?"vertical":Te},g.createElement(xe,{id:ke,ref:ne},m)),disabled:ee,onVisibleChange:function(e){"inline"!==B&&W(h,e)}},Ce)}var De=g.createElement(d.Z.Item,(0,i.Z)({ref:t,role:"none"},M,{component:"li",style:n,className:c()(J,"".concat(J,"-").concat(B),a,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(J,"-open"),ae),"".concat(J,"-active"),be),"".concat(J,"-selected"),oe),"".concat(J,"-disabled"),ee)),onMouseEnter:function(e){_e(!0),null==C||C({key:h,domEvent:e})},onMouseLeave:function(e){_e(!1),null==A||A({key:h,domEvent:e})}}),Ce,!U&&g.createElement(Me,{id:ke,open:ae,keyPath:Q},m));return q&&(De=q(De,e,{selected:oe,active:be,open:ae,disabled:ee})),g.createElement(x,{onItemClick:we,mode:"horizontal"===B?"vertical":B,itemIcon:ie,expandIcon:re},De)}));var Be=g.forwardRef((function(e,t){var n,r=e.eventKey,s=e.children,a=T(r),o=Se(s,a),l=C();return g.useEffect((function(){if(l)return l.registerPath(r,a),function(){l.unregisterPath(r,a)}}),[a]),n=l?o:g.createElement(Fe,(0,i.Z)({ref:t},e),o),g.createElement(A.Provider,{value:a},n)})),Ze=n(76190);function je(e){var t=e.className,n=e.style,i=g.useContext(w).prefixCls;return C()?null:g.createElement("li",{role:"separator",className:c()("".concat(i,"-item-divider"),t),style:n})}var Ue=["className","title","eventKey","children"],Ke=g.forwardRef((function(e,t){var n=e.className,r=e.title,s=(e.eventKey,e.children),a=(0,l.Z)(e,Ue),o=g.useContext(w).prefixCls,u="".concat(o,"-item-group");return g.createElement("li",(0,i.Z)({ref:t,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:c()(u,n)}),g.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:"string"==typeof r?r:void 0},r),g.createElement("ul",{role:"group",className:"".concat(u,"-list")},s))}));var ze=g.forwardRef((function(e,t){var n=e.eventKey,r=Se(e.children,T(n));return C()?r:g.createElement(Ke,(0,i.Z)({ref:t},(0,ae.Z)(e,["warnKey"])),r)})),Ge=["label","children","key","type","extra"];function He(e,t,n){var r=t.item,s=t.group,a=t.submenu,o=t.divider;return(e||[]).map((function(e,u){if(e&&"object"===(0,Ze.Z)(e)){var c=e,d=c.label,h=c.children,f=c.key,p=c.type,m=c.extra,v=(0,l.Z)(c,Ge),y=null!=f?f:"tmp-".concat(u);return h||"group"===p?"group"===p?g.createElement(s,(0,i.Z)({key:y},v,{title:d}),He(h,t,n)):g.createElement(a,(0,i.Z)({key:y},v,{title:d}),He(h,t,n)):"divider"===p?g.createElement(o,(0,i.Z)({key:y},v)):g.createElement(r,(0,i.Z)({key:y},v,{extra:m}),d,(!!m||0===m)&&g.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null})).filter((function(e){return e}))}function Ve(e,t,n,i,r){var a=e,o=(0,s.Z)({divider:je,item:_e,group:ze,submenu:Be},i);return t&&(a=He(t,o,r)),Se(a,n)}var We=["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"],Ye=[],qe=g.forwardRef((function(e,t){var n,u=e,p=u.prefixCls,y=void 0===p?"rc-menu":p,_=u.rootClassName,b=u.style,E=u.className,w=u.tabIndex,k=void 0===w?0:w,C=u.items,A=u.children,T=u.direction,R=u.id,I=u.mode,N=void 0===I?"vertical":I,M=u.inlineCollapsed,P=u.disabled,O=u.disabledOverflow,F=u.subMenuOpenDelay,B=void 0===F?.1:F,Z=u.subMenuCloseDelay,j=void 0===Z?.1:Z,U=u.forceSubMenuRender,K=u.defaultOpenKeys,z=u.openKeys,G=u.activeKey,V=u.defaultActiveFirst,q=u.selectable,X=void 0===q||q,ne=u.multiple,ie=void 0!==ne&&ne,re=u.defaultSelectedKeys,se=u.selectedKeys,ae=u.onSelect,oe=u.onDeselect,le=u.inlineIndent,ue=void 0===le?24:le,ce=u.motion,de=u.defaultMotions,fe=u.triggerSubMenuAction,pe=void 0===fe?"hover":fe,ge=u.builtinPlacements,me=u.itemIcon,ve=u.expandIcon,ye=u.overflowedIndicator,be=void 0===ye?"...":ye,Ee=u.overflowedIndicatorPopupClassName,we=u.getPopupContainer,xe=u.onClick,ke=u.onOpenChange,Se=u.onKeyDown,Ce=(u.openAnimation,u.openTransitionName,u._internalRenderMenuItem),Ae=u._internalRenderSubMenuItem,Te=u._internalComponents,De=(0,l.Z)(u,We),Le=g.useMemo((function(){return[Ve(A,C,Ye,Te,y),Ve(A,C,Ye,{},y)]}),[A,C,Te]),Re=(0,o.Z)(Le,2),Ie=Re[0],Ne=Re[1],Me=g.useState(!1),Pe=(0,o.Z)(Me,2),Oe=Pe[0],Fe=Pe[1],Ze=g.useRef(),je=function(e){var t=(0,h.Z)(e,{value:e}),n=(0,o.Z)(t,2),i=n[0],r=n[1];return g.useEffect((function(){te+=1;var e="".concat(ee,"-").concat(te);r("rc-menu-uuid-".concat(e))}),[]),i}(R),Ue="rtl"===T;var Ke=(0,h.Z)(K,{value:z,postState:function(e){return e||Ye}}),ze=(0,o.Z)(Ke,2),Ge=ze[0],He=ze[1],qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){He(e),null==ke||ke(e)}t?(0,m.flushSync)(n):n()},Xe=g.useState(Ge),Qe=(0,o.Z)(Xe,2),Je=Qe[0],$e=Qe[1],et=g.useRef(!1),tt=g.useMemo((function(){return"inline"!==N&&"vertical"!==N||!M?[N,!1]:["vertical",M]}),[N,M]),nt=(0,o.Z)(tt,2),it=nt[0],rt=nt[1],st="inline"===it,at=g.useState(it),ot=(0,o.Z)(at,2),lt=ot[0],ut=ot[1],ct=g.useState(rt),dt=(0,o.Z)(ct,2),ht=dt[0],ft=dt[1];g.useEffect((function(){ut(it),ft(rt),et.current&&(st?He(Je):qe(Ye))}),[it,rt]);var pt=g.useState(0),gt=(0,o.Z)(pt,2),mt=gt[0],vt=gt[1],yt=mt>=Ie.length-1||"horizontal"!==lt||O;g.useEffect((function(){st&&$e(Ge)}),[Ge]),g.useEffect((function(){return et.current=!0,function(){et.current=!1}}),[]);var _t=J(),bt=_t.registerPath,Et=_t.unregisterPath,wt=_t.refreshOverflowKeys,xt=_t.isSubPathKey,kt=_t.getKeyPath,St=_t.getKeys,Ct=_t.getSubPathKeys,At=g.useMemo((function(){return{registerPath:bt,unregisterPath:Et}}),[bt,Et]),Tt=g.useMemo((function(){return{isSubPathKey:xt}}),[xt]);g.useEffect((function(){wt(yt?Ye:Ie.slice(mt+1).map((function(e){return e.key})))}),[mt,yt]);var Dt=(0,h.Z)(G||V&&(null===(n=Ie[0])||void 0===n?void 0:n.key),{value:G}),Lt=(0,o.Z)(Dt,2),Rt=Lt[0],It=Lt[1],Nt=$((function(e){It(e)})),Mt=$((function(){It(void 0)}));(0,g.useImperativeHandle)(t,(function(){return{list:Ze.current,focus:function(e){var t,n,i=St(),r=W(i,je),s=r.elements,a=r.key2element,o=r.element2key,l=H(Ze.current,s),u=null!=Rt?Rt:l[0]?o.get(l[0]):null===(t=Ie.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,c=a.get(u);u&&c&&(null==c||null===(n=c.focus)||void 0===n||n.call(c,e))}}}));var Pt=(0,h.Z)(re||[],{value:se,postState:function(e){return Array.isArray(e)?e:null==e?Ye:[e]}}),Ot=(0,o.Z)(Pt,2),Ft=Ot[0],Bt=Ot[1],Zt=$((function(e){null==xe||xe(he(e)),function(e){if(X){var t,n=e.key,i=Ft.includes(n);t=ie?i?Ft.filter((function(e){return e!==n})):[].concat((0,a.Z)(Ft),[n]):[n],Bt(t);var r=(0,s.Z)((0,s.Z)({},e),{},{selectedKeys:t});i?null==oe||oe(r):null==ae||ae(r)}!ie&&Ge.length&&"inline"!==lt&&qe(Ye)}(e)})),jt=$((function(e,t){var n=Ge.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==lt){var i=Ct(e);n=n.filter((function(e){return!i.has(e)}))}(0,f.Z)(Ge,n,!0)||qe(n,!0)})),Ut=Y(lt,Rt,Ue,je,Ze,St,kt,It,(function(e,t){var n=null!=t?t:!Ge.includes(e);jt(e,n)}),Se);g.useEffect((function(){Fe(!0)}),[]);var Kt=g.useMemo((function(){return{_internalRenderMenuItem:Ce,_internalRenderSubMenuItem:Ae}}),[Ce,Ae]),zt="horizontal"!==lt||O?Ie:Ie.map((function(e,t){return g.createElement(x,{key:e.key,overflowDisabled:t>mt},e)})),Gt=g.createElement(d.Z,(0,i.Z)({id:R,ref:Ze,prefixCls:"".concat(y,"-overflow"),component:"ul",itemComponent:_e,className:c()(y,"".concat(y,"-root"),"".concat(y,"-").concat(lt),E,(0,r.Z)((0,r.Z)({},"".concat(y,"-inline-collapsed"),ht),"".concat(y,"-rtl"),Ue),_),dir:T,style:b,role:"menu",tabIndex:k,data:zt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?Ie.slice(-t):null;return g.createElement(Be,{eventKey:Q,title:be,disabled:yt,internalPopupClose:0===t,popupClassName:Ee},n)},maxCount:"horizontal"!==lt||O?d.Z.INVALIDATE:d.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){vt(e)},onKeyDown:Ut},De));return g.createElement(L.Provider,{value:Kt},g.createElement(v.Provider,{value:je},g.createElement(x,{prefixCls:y,rootClassName:_,mode:lt,openKeys:Ge,rtl:Ue,disabled:P,motion:Oe?ce:null,defaultMotions:Oe?de:null,activeKey:Rt,onActive:Nt,onInactive:Mt,selectedKeys:Ft,inlineIndent:ue,subMenuOpenDelay:B,subMenuCloseDelay:j,forceSubMenuRender:U,builtinPlacements:ge,triggerSubMenuAction:pe,getPopupContainer:we,itemIcon:me,expandIcon:ve,onItemClick:Zt,onOpenChange:jt},g.createElement(D.Provider,{value:Tt},Gt),g.createElement("div",{style:{display:"none"},"aria-hidden":!0},g.createElement(S.Provider,{value:At},Ne)))))})),Xe=qe;Xe.Item=_e,Xe.SubMenu=Be,Xe.ItemGroup=ze,Xe.Divider=je;var Qe=Xe},11780:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var i=n(54476),r=n(33885),s=n(42978),a=n(75931),o=n(59301),l=n(92310),u=n.n(l),c=n(29301),d=n(34280),h=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],f=void 0;function p(e,t){var n=e.prefixCls,s=e.invalidate,l=e.item,d=e.renderItem,p=e.responsive,g=e.responsiveDisabled,m=e.registerSize,v=e.itemKey,y=e.className,_=e.style,b=e.children,E=e.display,w=e.order,x=e.component,k=void 0===x?"div":x,S=(0,a.Z)(e,h),C=p&&!E;function A(e){m(v,e)}o.useEffect((function(){return function(){A(null)}}),[]);var T,D=d&&l!==f?d(l,{index:w}):b;s||(T={opacity:C?0:1,height:C?0:f,overflowY:C?"hidden":f,order:p?w:f,pointerEvents:C?"none":f,position:C?"absolute":f});var L={};C&&(L["aria-hidden"]=!0);var R=o.createElement(k,(0,i.Z)({className:u()(!s&&n,y),style:(0,r.Z)((0,r.Z)({},T),_)},L,S,{ref:t}),D);return p&&(R=o.createElement(c.Z,{onResize:function(e){A(e.offsetWidth)},disabled:g},R)),R}var g=o.forwardRef(p);g.displayName="Item";var m=g,v=n(6089),y=n(4676),_=n(16089);function b(){var e=o.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,_.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,y.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function E(e,t){var n=o.useState(t),i=(0,s.Z)(n,2),r=i[0],a=i[1];return[r,(0,v.Z)((function(t){e((function(){a(t)}))}))]}var w=o.createContext(null),x=["component"],k=["className"],S=["className"],C=function(e,t){var n=o.useContext(w);if(!n){var r=e.component,s=void 0===r?"div":r,l=(0,a.Z)(e,x);return o.createElement(s,(0,i.Z)({},l,{ref:t}))}var c=n.className,d=(0,a.Z)(n,k),h=e.className,f=(0,a.Z)(e,S);return o.createElement(w.Provider,{value:null},o.createElement(m,(0,i.Z)({ref:t,className:u()(c,h)},d,f)))},A=o.forwardRef(C);A.displayName="RawItem";var T=A,D=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],L="responsive",R="invalidate";function I(e){return"+ ".concat(e.length," ...")}function N(e,t){var n=e.prefixCls,l=void 0===n?"rc-overflow":n,h=e.data,f=void 0===h?[]:h,p=e.renderItem,g=e.renderRawItem,v=e.itemKey,y=e.itemWidth,_=void 0===y?10:y,x=e.ssr,k=e.style,S=e.className,C=e.maxCount,A=e.renderRest,T=e.renderRawRest,N=e.suffix,M=e.component,P=void 0===M?"div":M,O=e.itemComponent,F=e.onVisibleChange,B=(0,a.Z)(e,D),Z="full"===x,j=b(),U=E(j,null),K=(0,s.Z)(U,2),z=K[0],G=K[1],H=z||0,V=E(j,new Map),W=(0,s.Z)(V,2),Y=W[0],q=W[1],X=E(j,0),Q=(0,s.Z)(X,2),J=Q[0],$=Q[1],ee=E(j,0),te=(0,s.Z)(ee,2),ne=te[0],ie=te[1],re=E(j,0),se=(0,s.Z)(re,2),ae=se[0],oe=se[1],le=(0,o.useState)(null),ue=(0,s.Z)(le,2),ce=ue[0],de=ue[1],he=(0,o.useState)(null),fe=(0,s.Z)(he,2),pe=fe[0],ge=fe[1],me=o.useMemo((function(){return null===pe&&Z?Number.MAX_SAFE_INTEGER:pe||0}),[pe,z]),ve=(0,o.useState)(!1),ye=(0,s.Z)(ve,2),_e=ye[0],be=ye[1],Ee="".concat(l,"-item"),we=Math.max(J,ne),xe=C===L,ke=f.length&&xe,Se=C===R,Ce=ke||"number"==typeof C&&f.length>C,Ae=(0,o.useMemo)((function(){var e=f;return ke?e=null===z&&Z?f:f.slice(0,Math.min(f.length,H/_)):"number"==typeof C&&(e=f.slice(0,C)),e}),[f,_,z,C,ke]),Te=(0,o.useMemo)((function(){return ke?f.slice(me+1):f.slice(Ae.length)}),[f,Ae,ke,me]),De=(0,o.useCallback)((function(e,t){var n;return"function"==typeof v?v(e):null!==(n=v&&(null==e?void 0:e[v]))&&void 0!==n?n:t}),[v]),Le=(0,o.useCallback)(p||function(e){return e},[p]);function Re(e,t,n){(pe!==e||void 0!==t&&t!==ce)&&(ge(e),n||(be(e<f.length-1),null==F||F(e)),void 0!==t&&de(t))}function Ie(e,t){q((function(n){var i=new Map(n);return null===t?i.delete(e):i.set(e,t),i}))}function Ne(e){return Y.get(De(Ae[e],e))}(0,d.Z)((function(){if(H&&"number"==typeof we&&Ae){var e=ae,t=Ae.length,n=t-1;if(!t)return void Re(0,null);for(var i=0;i<t;i+=1){var r=Ne(i);if(Z&&(r=r||0),void 0===r){Re(i-1,void 0,!0);break}if(e+=r,0===n&&e<=H||i===n-1&&e+Ne(n)<=H){Re(n,null);break}if(e+we>H){Re(i-1,e-r-ae+ne);break}}N&&Ne(0)+ae>H&&de(null)}}),[H,Y,ne,ae,De,Ae]);var Me=_e&&!!Te.length,Pe={};null!==ce&&ke&&(Pe={position:"absolute",left:ce,top:0});var Oe={prefixCls:Ee,responsive:ke,component:O,invalidate:Se},Fe=g?function(e,t){var n=De(e,t);return o.createElement(w.Provider,{key:n,value:(0,r.Z)((0,r.Z)({},Oe),{},{order:t,item:e,itemKey:n,registerSize:Ie,display:t<=me})},g(e,t))}:function(e,t){var n=De(e,t);return o.createElement(m,(0,i.Z)({},Oe,{order:t,key:n,item:e,renderItem:Le,itemKey:n,registerSize:Ie,display:t<=me}))},Be={order:Me?me:Number.MAX_SAFE_INTEGER,className:"".concat(Ee,"-rest"),registerSize:function(e,t){ie(t),$(ne)},display:Me},Ze=A||I,je=T?o.createElement(w.Provider,{value:(0,r.Z)((0,r.Z)({},Oe),Be)},T(Te)):o.createElement(m,(0,i.Z)({},Oe,Be),"function"==typeof Ze?Ze(Te):Ze),Ue=o.createElement(P,(0,i.Z)({className:u()(!Se&&l,S),style:k,ref:t},B),Ae.map(Fe),Ce?je:null,N&&o.createElement(m,(0,i.Z)({},Oe,{responsive:xe,responsiveDisabled:!ke,order:me,className:"".concat(Ee,"-suffix"),registerSize:function(e,t){oe(t)},display:!0,style:Pe}),N));return xe?o.createElement(c.Z,{onResize:function(e,t){G(t.clientWidth)},disabled:!ke},Ue):Ue}var M=o.forwardRef(N);M.displayName="Overflow",M.Item=T,M.RESPONSIVE=L,M.INVALIDATE=R;var P=M},23425:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var i=n(20068),r=n(54476),s=n(76190),a=n(33885),o=n(42978),l=n(92310),u=n.n(l),c=n(18929),d=n(10228),h=n(26112),f=(n(48736),n(59301)),p=n(17119),g=[10,20,50,100];var m=function(e){var t=e.pageSizeOptions,n=void 0===t?g:t,i=e.locale,r=e.changeSize,s=e.pageSize,a=e.goButton,l=e.quickGo,u=e.rootPrefixCls,c=e.disabled,h=e.buildOptionText,p=e.showSizeChanger,m=e.sizeChangerRender,v=f.useState(""),y=(0,o.Z)(v,2),_=y[0],b=y[1],E=function(){return!_||Number.isNaN(_)?void 0:Number(_)},w="function"==typeof h?h:function(e){return"".concat(e," ").concat(i.items_per_page)},x=function(e){""!==_&&(e.keyCode!==d.Z.ENTER&&"click"!==e.type||(b(""),null==l||l(E())))},k="".concat(u,"-options");if(!p&&!l)return null;var S=null,C=null,A=null;return p&&m&&(S=m({disabled:c,size:s,onSizeChange:function(e){null==r||r(Number(e))},"aria-label":i.page_size,className:"".concat(k,"-size-changer"),options:(n.some((function(e){return e.toString()===s.toString()}))?n:n.concat([s]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e){return{label:w(e),value:e}}))})),l&&(a&&(A="boolean"==typeof a?f.createElement("button",{type:"button",onClick:x,onKeyUp:x,disabled:c,className:"".concat(k,"-quick-jumper-button")},i.jump_to_confirm):f.createElement("span",{onClick:x,onKeyUp:x},a)),C=f.createElement("div",{className:"".concat(k,"-quick-jumper")},i.jump_to,f.createElement("input",{disabled:c,type:"text",value:_,onChange:function(e){b(e.target.value)},onKeyUp:x,onBlur:function(e){a||""===_||(b(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(u,"-item"))>=0)||null==l||l(E()))},"aria-label":i.page}),i.page,A)),f.createElement("li",{className:k},S,C)};var v=function(e){var t=e.rootPrefixCls,n=e.page,r=e.active,s=e.className,a=e.showTitle,o=e.onClick,l=e.onKeyPress,c=e.itemRender,d="".concat(t,"-item"),h=u()(d,"".concat(d,"-").concat(n),(0,i.Z)((0,i.Z)({},"".concat(d,"-active"),r),"".concat(d,"-disabled"),!n),s),p=c(n,"page",f.createElement("a",{rel:"nofollow"},n));return p?f.createElement("li",{title:a?String(n):null,className:h,onClick:function(){o(n)},onKeyDown:function(e){l(e,o,n)},tabIndex:0},p):null},y=function(e,t,n){return n};function _(){}function b(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function E(e,t,n){var i=void 0===e?t:e;return Math.floor((n-1)/i)+1}var w=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,l=e.selectPrefixCls,g=void 0===l?"rc-select":l,w=e.className,x=e.current,k=e.defaultCurrent,S=void 0===k?1:k,C=e.total,A=void 0===C?0:C,T=e.pageSize,D=e.defaultPageSize,L=void 0===D?10:D,R=e.onChange,I=void 0===R?_:R,N=e.hideOnSinglePage,M=e.align,P=e.showPrevNextJumpers,O=void 0===P||P,F=e.showQuickJumper,B=e.showLessItems,Z=e.showTitle,j=void 0===Z||Z,U=e.onShowSizeChange,K=void 0===U?_:U,z=e.locale,G=void 0===z?p.Z:z,H=e.style,V=e.totalBoundaryShowSizeChanger,W=void 0===V?50:V,Y=e.disabled,q=e.simple,X=e.showTotal,Q=e.showSizeChanger,J=void 0===Q?A>W:Q,$=e.sizeChangerRender,ee=e.pageSizeOptions,te=e.itemRender,ne=void 0===te?y:te,ie=e.jumpPrevIcon,re=e.jumpNextIcon,se=e.prevIcon,ae=e.nextIcon,oe=f.useRef(null),le=(0,c.Z)(10,{value:T,defaultValue:L}),ue=(0,o.Z)(le,2),ce=ue[0],de=ue[1],he=(0,c.Z)(1,{value:x,defaultValue:S,postState:function(e){return Math.max(1,Math.min(e,E(void 0,ce,A)))}}),fe=(0,o.Z)(he,2),pe=fe[0],ge=fe[1],me=f.useState(pe),ve=(0,o.Z)(me,2),ye=ve[0],_e=ve[1];(0,f.useEffect)((function(){_e(pe)}),[pe]);var be=Math.max(1,pe-(B?3:5)),Ee=Math.min(E(void 0,ce,A),pe+(B?3:5));function we(t,i){var r=t||f.createElement("button",{type:"button","aria-label":i,className:"".concat(n,"-item-link")});return"function"==typeof t&&(r=f.createElement(t,(0,a.Z)({},e))),r}function xe(e){var t=e.target.value,n=E(void 0,ce,A);return""===t?t:Number.isNaN(Number(t))?ye:t>=n?n:Number(t)}var ke=A>ce&&F;function Se(e){var t=xe(e);switch(t!==ye&&_e(t),e.keyCode){case d.Z.ENTER:Ce(t);break;case d.Z.UP:Ce(t-1);break;case d.Z.DOWN:Ce(t+1)}}function Ce(e){if(function(e){return b(e)&&e!==pe&&b(A)&&A>0}(e)&&!Y){var t=E(void 0,ce,A),n=e;return e>t?n=t:e<1&&(n=1),n!==ye&&_e(n),ge(n),null==I||I(n,ce),n}return pe}var Ae=pe>1,Te=pe<E(void 0,ce,A);function De(){Ae&&Ce(pe-1)}function Le(){Te&&Ce(pe+1)}function Re(){Ce(be)}function Ie(){Ce(Ee)}function Ne(e,t){if("Enter"===e.key||e.charCode===d.Z.ENTER||e.keyCode===d.Z.ENTER){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];t.apply(void 0,i)}}function Me(e){"click"!==e.type&&e.keyCode!==d.Z.ENTER||Ce(ye)}var Pe=null,Oe=(0,h.Z)(e,{aria:!0,data:!0}),Fe=X&&f.createElement("li",{className:"".concat(n,"-total-text")},X(A,[0===A?0:(pe-1)*ce+1,pe*ce>A?A:pe*ce])),Be=null,Ze=E(void 0,ce,A);if(N&&A<=ce)return null;var je=[],Ue={rootPrefixCls:n,onClick:Ce,onKeyPress:Ne,showTitle:j,itemRender:ne,page:-1},Ke=pe-1>0?pe-1:0,ze=pe+1<Ze?pe+1:Ze,Ge=F&&F.goButton,He="object"===(0,s.Z)(q)?q.readOnly:!q,Ve=Ge,We=null;q&&(Ge&&(Ve="boolean"==typeof Ge?f.createElement("button",{type:"button",onClick:Me,onKeyUp:Me},G.jump_to_confirm):f.createElement("span",{onClick:Me,onKeyUp:Me},Ge),Ve=f.createElement("li",{title:j?"".concat(G.jump_to).concat(pe,"/").concat(Ze):null,className:"".concat(n,"-simple-pager")},Ve)),We=f.createElement("li",{title:j?"".concat(pe,"/").concat(Ze):null,className:"".concat(n,"-simple-pager")},He?ye:f.createElement("input",{type:"text","aria-label":G.jump_to,value:ye,disabled:Y,onKeyDown:function(e){e.keyCode!==d.Z.UP&&e.keyCode!==d.Z.DOWN||e.preventDefault()},onKeyUp:Se,onChange:Se,onBlur:function(e){Ce(xe(e))},size:3}),f.createElement("span",{className:"".concat(n,"-slash")},"/"),Ze));var Ye=B?1:2;if(Ze<=3+2*Ye){Ze||je.push(f.createElement(v,(0,r.Z)({},Ue,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var qe=1;qe<=Ze;qe+=1)je.push(f.createElement(v,(0,r.Z)({},Ue,{key:qe,page:qe,active:pe===qe})))}else{var Xe=B?G.prev_3:G.prev_5,Qe=B?G.next_3:G.next_5,Je=ne(be,"jump-prev",we(ie,"prev page")),$e=ne(Ee,"jump-next",we(re,"next page"));O&&(Pe=Je?f.createElement("li",{title:j?Xe:null,key:"prev",onClick:Re,tabIndex:0,onKeyDown:function(e){Ne(e,Re)},className:u()("".concat(n,"-jump-prev"),(0,i.Z)({},"".concat(n,"-jump-prev-custom-icon"),!!ie))},Je):null,Be=$e?f.createElement("li",{title:j?Qe:null,key:"next",onClick:Ie,tabIndex:0,onKeyDown:function(e){Ne(e,Ie)},className:u()("".concat(n,"-jump-next"),(0,i.Z)({},"".concat(n,"-jump-next-custom-icon"),!!re))},$e):null);var et=Math.max(1,pe-Ye),tt=Math.min(pe+Ye,Ze);pe-1<=Ye&&(tt=1+2*Ye),Ze-pe<=Ye&&(et=Ze-2*Ye);for(var nt=et;nt<=tt;nt+=1)je.push(f.createElement(v,(0,r.Z)({},Ue,{key:nt,page:nt,active:pe===nt})));if(pe-1>=2*Ye&&3!==pe&&(je[0]=f.cloneElement(je[0],{className:u()("".concat(n,"-item-after-jump-prev"),je[0].props.className)}),je.unshift(Pe)),Ze-pe>=2*Ye&&pe!==Ze-2){var it=je[je.length-1];je[je.length-1]=f.cloneElement(it,{className:u()("".concat(n,"-item-before-jump-next"),it.props.className)}),je.push(Be)}1!==et&&je.unshift(f.createElement(v,(0,r.Z)({},Ue,{key:1,page:1}))),tt!==Ze&&je.push(f.createElement(v,(0,r.Z)({},Ue,{key:Ze,page:Ze})))}var rt=function(e){var t=ne(e,"prev",we(se,"prev page"));return f.isValidElement(t)?f.cloneElement(t,{disabled:!Ae}):t}(Ke);if(rt){var st=!Ae||!Ze;rt=f.createElement("li",{title:j?G.prev_page:null,onClick:De,tabIndex:st?null:0,onKeyDown:function(e){Ne(e,De)},className:u()("".concat(n,"-prev"),(0,i.Z)({},"".concat(n,"-disabled"),st)),"aria-disabled":st},rt)}var at,ot,lt=function(e){var t=ne(e,"next",we(ae,"next page"));return f.isValidElement(t)?f.cloneElement(t,{disabled:!Te}):t}(ze);lt&&(q?(at=!Te,ot=Ae?0:null):ot=(at=!Te||!Ze)?null:0,lt=f.createElement("li",{title:j?G.next_page:null,onClick:Le,tabIndex:ot,onKeyDown:function(e){Ne(e,Le)},className:u()("".concat(n,"-next"),(0,i.Z)({},"".concat(n,"-disabled"),at)),"aria-disabled":at},lt));var ut=u()(n,w,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},"".concat(n,"-start"),"start"===M),"".concat(n,"-center"),"center"===M),"".concat(n,"-end"),"end"===M),"".concat(n,"-simple"),q),"".concat(n,"-disabled"),Y));return f.createElement("ul",(0,r.Z)({className:ut,style:H,ref:oe},Oe),Fe,rt,q?We:je,lt,f.createElement(m,{locale:G,rootPrefixCls:n,disabled:Y,selectPrefixCls:g,changeSize:function(e){var t=E(e,ce,A),n=pe>t&&0!==t?t:pe;de(e),_e(n),null==K||K(pe,e),ge(n),null==I||I(n,e)},pageSize:ce,pageSizeOptions:ee,quickGo:ke?Ce:null,goButton:Ve,showSizeChanger:J,sizeChangerRender:$}))}},25930:function(e,t,n){"use strict";n.d(t,{Cd:function(){return k}});var i=n(54476),r=n(33885),s=n(75931),a=n(59301),o=n(92310),l=n.n(o),u={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},c=function(){var e=(0,a.useRef)([]),t=(0,a.useRef)(null);return(0,a.useEffect)((function(){var n=Date.now(),i=!1;e.current.forEach((function(e){if(e){i=!0;var r=e.style;r.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(r.transitionDuration="0s, 0s")}})),i&&(t.current=Date.now())})),e.current};var d=n(76190),h=n(42978),f=n(47273),p=0,g=(0,f.Z)();var m=function(e){var t=a.useState(),n=(0,h.Z)(t,2),i=n[0],r=n[1];return a.useEffect((function(){var e;r("rc_progress_".concat((g?(e=p,p+=1):e="TEST_OR_SSR",e)))}),[]),e||i},v=function(e){var t=e.bg,n=e.children;return a.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function y(e,t){return Object.keys(e).map((function(n){var i=parseFloat(n),r="".concat(Math.floor(i*t),"%");return"".concat(e[n]," ").concat(r)}))}var _=a.forwardRef((function(e,t){var n=e.prefixCls,i=e.color,r=e.gradientId,s=e.radius,o=e.style,l=e.ptg,u=e.strokeLinecap,c=e.strokeWidth,h=e.size,f=e.gapDegree,p=i&&"object"===(0,d.Z)(i),g=p?"#FFF":void 0,m=h/2,_=a.createElement("circle",{className:"".concat(n,"-circle-path"),r:s,cx:m,cy:m,stroke:g,strokeLinecap:u,strokeWidth:c,opacity:0===l?0:1,style:o,ref:t});if(!p)return _;var b="".concat(r,"-conic"),E=f?"".concat(180+f/2,"deg"):"0deg",w=y(i,(360-f)/360),x=y(i,1),k="conic-gradient(from ".concat(E,", ").concat(w.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return a.createElement(a.Fragment,null,a.createElement("mask",{id:b},_),a.createElement("foreignObject",{x:0,y:0,width:h,height:h,mask:"url(#".concat(b,")")},a.createElement(v,{bg:S},a.createElement(v,{bg:k}))))})),b=100,E=function(e,t,n,i,r,s,a,o,l,u){var c=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-s)/360),h=0===s?0:{bottom:0,top:180,left:90,right:-90}[a],f=(100-i)/100*t;"round"===l&&100!==i&&(f+=u/2)>=t&&(f=t-.01);var p=50;return{stroke:"string"==typeof o?o:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:f+c,transform:"rotate(".concat(r+d+h,"deg)"),transformOrigin:"".concat(p,"px ").concat(p,"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}},w=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function x(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var k=function(e){var t,n,o,h=(0,r.Z)((0,r.Z)({},u),e),f=h.id,p=h.prefixCls,g=h.steps,v=h.strokeWidth,y=h.trailWidth,k=h.gapDegree,S=void 0===k?0:k,C=h.gapPosition,A=h.trailColor,T=h.strokeLinecap,D=h.style,L=h.className,R=h.strokeColor,I=h.percent,N=(0,s.Z)(h,w),M=m(f),P="".concat(M,"-gradient"),O=50-v/2,F=2*Math.PI*O,B=S>0?90+S/2:-90,Z=F*((360-S)/360),j="object"===(0,d.Z)(g)?g:{count:g,gap:2},U=j.count,K=j.gap,z=x(I),G=x(R),H=G.find((function(e){return e&&"object"===(0,d.Z)(e)})),V=H&&"object"===(0,d.Z)(H)?"butt":T,W=E(F,Z,0,100,B,S,C,A,V,v),Y=c();return a.createElement("svg",(0,i.Z)({className:l()("".concat(p,"-circle"),L),viewBox:"0 0 ".concat(b," ").concat(b),style:D,id:f,role:"presentation"},N),!U&&a.createElement("circle",{className:"".concat(p,"-circle-trail"),r:O,cx:50,cy:50,stroke:A,strokeLinecap:V,strokeWidth:y||v,style:W}),U?(t=Math.round(U*(z[0]/100)),n=100/U,o=0,new Array(U).fill(null).map((function(e,i){var r=i<=t-1?G[0]:A,s=r&&"object"===(0,d.Z)(r)?"url(#".concat(P,")"):void 0,l=E(F,Z,o,n,B,S,C,r,"butt",v,K);return o+=100*(Z-l.strokeDashoffset+K)/Z,a.createElement("circle",{key:i,className:"".concat(p,"-circle-path"),r:O,cx:50,cy:50,stroke:s,strokeWidth:v,opacity:1,style:l,ref:function(e){Y[i]=e}})}))):function(){var e=0;return z.map((function(t,n){var i=G[n]||G[G.length-1],r=E(F,Z,e,t,B,S,C,i,V,v);return e+=t,a.createElement(_,{key:n,color:i,ptg:t,radius:O,prefixCls:p,gradientId:P,style:r,strokeLinecap:V,strokeWidth:v,gapDegree:S,ref:function(e){Y[n]=e},size:b})})).reverse()}())}},738:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var i=n(54476),r=n(20068),s=n(42978),a=n(75931),o=n(92310),l=n.n(o),u=n(18929),c=n(10228),d=n(26112),h=n(59301);function f(e,t){var n=e.disabled,i=e.prefixCls,r=e.character,s=e.characterRender,a=e.index,o=e.count,u=e.value,d=e.allowHalf,f=e.focused,p=e.onHover,g=e.onClick,m=a+1,v=new Set([i]);0===u&&0===a&&f?v.add("".concat(i,"-focused")):d&&u+.5>=m&&u<m?(v.add("".concat(i,"-half")),v.add("".concat(i,"-active")),f&&v.add("".concat(i,"-focused"))):(m<=u?v.add("".concat(i,"-full")):v.add("".concat(i,"-zero")),m===u&&f&&v.add("".concat(i,"-focused")));var y="function"==typeof r?r(e):r,_=h.createElement("li",{className:l()(Array.from(v)),ref:t},h.createElement("div",{onClick:n?null:function(e){g(e,a)},onKeyDown:n?null:function(e){e.keyCode===c.Z.ENTER&&g(e,a)},onMouseMove:n?null:function(e){p(e,a)},role:"radio","aria-checked":u>a?"true":"false","aria-posinset":a+1,"aria-setsize":o,tabIndex:n?-1:0},h.createElement("div",{className:"".concat(i,"-first")},y),h.createElement("div",{className:"".concat(i,"-second")},y)));return s&&(_=s(_,e)),_}var p=h.forwardRef(f);var g=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function m(e,t){var n,o=e.prefixCls,f=void 0===o?"rc-rate":o,m=e.className,v=e.defaultValue,y=e.value,_=e.count,b=void 0===_?5:_,E=e.allowHalf,w=void 0!==E&&E,x=e.allowClear,k=void 0===x||x,S=e.keyboard,C=void 0===S||S,A=e.character,T=void 0===A?"★":A,D=e.characterRender,L=e.disabled,R=e.direction,I=void 0===R?"ltr":R,N=e.tabIndex,M=void 0===N?0:N,P=e.autoFocus,O=e.onHoverChange,F=e.onChange,B=e.onFocus,Z=e.onBlur,j=e.onKeyDown,U=e.onMouseLeave,K=(0,a.Z)(e,g),z=(n=h.useRef({}),[function(e){return n.current[e]},function(e){return function(t){n.current[e]=t}}]),G=(0,s.Z)(z,2),H=G[0],V=G[1],W=h.useRef(null),Y=function(){var e;L||(null===(e=W.current)||void 0===e||e.focus())};h.useImperativeHandle(t,(function(){return{focus:Y,blur:function(){var e;L||(null===(e=W.current)||void 0===e||e.blur())}}}));var q=(0,u.Z)(v||0,{value:y}),X=(0,s.Z)(q,2),Q=X[0],J=X[1],$=(0,u.Z)(null),ee=(0,s.Z)($,2),te=ee[0],ne=ee[1],ie=function(e,t){var n,i,r,s,a="rtl"===I,o=e+1;if(w){var l=H(e),u=(i=function(e){var t,n,i=e.ownerDocument,r=i.body,s=i&&i.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,{left:t-=s.clientLeft||r.clientLeft||0,top:n-=s.clientTop||r.clientTop||0}}(n=l),r=n.ownerDocument,s=r.defaultView||r.parentWindow,i.left+=function(e){var t=e.pageXOffset,n="scrollLeft";if("number"!=typeof t){var i=e.document;"number"!=typeof(t=i.documentElement[n])&&(t=i.body[n])}return t}(s),i.left),c=l.clientWidth;(a&&t-u>c/2||!a&&t-u<c/2)&&(o-=.5)}return o},re=function(e){J(e),null==F||F(e)},se=h.useState(!1),ae=(0,s.Z)(se,2),oe=ae[0],le=ae[1],ue=h.useState(null),ce=(0,s.Z)(ue,2),de=ce[0],he=ce[1],fe=function(e,t){var n=ie(t,e.pageX);n!==te&&(he(n),ne(null)),null==O||O(n)},pe=function(e){L||(he(null),ne(null),null==O||O(void 0)),e&&(null==U||U(e))},ge=function(e,t){var n=ie(t,e.pageX),i=!1;k&&(i=n===Q),pe(),re(i?0:n),ne(i?n:null)};h.useEffect((function(){P&&!L&&Y()}),[]);var me=new Array(b).fill(0).map((function(e,t){return h.createElement(p,{ref:V(t),index:t,count:b,disabled:L,prefixCls:"".concat(f,"-star"),allowHalf:w,value:null===de?Q:de,onClick:ge,onHover:fe,key:e||t,character:T,characterRender:D,focused:oe})})),ve=l()(f,m,(0,r.Z)((0,r.Z)({},"".concat(f,"-disabled"),L),"".concat(f,"-rtl"),"rtl"===I));return h.createElement("ul",(0,i.Z)({className:ve,onMouseLeave:pe,tabIndex:L?-1:M,onFocus:L?null:function(){le(!0),null==B||B()},onBlur:L?null:function(){le(!1),null==Z||Z()},onKeyDown:L?null:function(e){var t=e.keyCode,n="rtl"===I,i=w?.5:1;C&&(t===c.Z.RIGHT&&Q<b&&!n?(re(Q+i),e.preventDefault()):t===c.Z.LEFT&&Q>0&&!n||t===c.Z.RIGHT&&Q>0&&n?(re(Q-i),e.preventDefault()):t===c.Z.LEFT&&Q<b&&n&&(re(Q+i),e.preventDefault())),null==j||j(e)},ref:W},(0,d.Z)(K,{aria:!0,data:!0,attr:!0})),me)}var v=h.forwardRef(m)},29301:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var i=n(54476),r=n(59301),s=n(11592),a=(n(48736),n(33885)),o=n(76190),l=n(76846),u=n(8654),c=r.createContext(null);var d=n(76374),h=new Map;var f=new d.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=h.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var p=n(67732),g=n(83652),m=n(42403),v=n(158),y=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,p.Z)(this,n),t.apply(this,arguments)}return(0,g.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function _(e,t){var n=e.children,i=e.disabled,s=r.useRef(null),d=r.useRef(null),p=r.useContext(c),g="function"==typeof n,m=g?n(s):n,v=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),_=!g&&r.isValidElement(m)&&(0,u.Yr)(m),b=_?(0,u.C4)(m):null,E=(0,u.x1)(b,s),w=function(){var e;return(0,l.ZP)(s.current)||(s.current&&"object"===(0,o.Z)(s.current)?(0,l.ZP)(null===(e=s.current)||void 0===e?void 0:e.nativeElement):null)||(0,l.ZP)(d.current)};r.useImperativeHandle(t,(function(){return w()}));var x=r.useRef(e);x.current=e;var k=r.useCallback((function(e){var t=x.current,n=t.onResize,i=t.data,r=e.getBoundingClientRect(),s=r.width,o=r.height,l=e.offsetWidth,u=e.offsetHeight,c=Math.floor(s),d=Math.floor(o);if(v.current.width!==c||v.current.height!==d||v.current.offsetWidth!==l||v.current.offsetHeight!==u){var h={width:c,height:d,offsetWidth:l,offsetHeight:u};v.current=h;var f=l===Math.round(s)?s:l,g=u===Math.round(o)?o:u,m=(0,a.Z)((0,a.Z)({},h),{},{offsetWidth:f,offsetHeight:g});null==p||p(m,e,i),n&&Promise.resolve().then((function(){n(m,e)}))}}),[]);return r.useEffect((function(){var e,t,n=w();return n&&!i&&(e=n,t=k,h.has(e)||(h.set(e,new Set),f.observe(e)),h.get(e).add(t)),function(){return function(e,t){h.has(e)&&(h.get(e).delete(t),h.get(e).size||(f.unobserve(e),h.delete(e)))}(n,k)}}),[s.current,i]),r.createElement(y,{ref:d},_?r.cloneElement(m,{ref:E}):m)}var b=r.forwardRef(_);function E(e,t){var n=e.children;return("function"==typeof n?[n]:(0,s.Z)(n)).map((function(n,s){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(s);return r.createElement(b,(0,i.Z)({},e,{key:a,ref:0===s?t:void 0}),n)}))}var w=r.forwardRef(E);w.Collection=function(e){var t=e.children,n=e.onBatchResize,i=r.useRef(0),s=r.useRef([]),a=r.useContext(c),o=r.useCallback((function(e,t,r){i.current+=1;var o=i.current;s.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){o===i.current&&(null==n||n(s.current),s.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(c.Provider,{value:o},t)};var x=w},6551:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var i=n(42978),r=n(59301),s=n(47273),a=0,o=(0,s.Z)();function l(e){var t=r.useState(),n=(0,i.Z)(t,2),s=n[0],l=n[1];return r.useEffect((function(){var e;l("rc_select_".concat((o?(e=a,a+=1):e="TEST_OR_SSR",e)))}),[]),e||s}},37463:function(e,t,n){"use strict";n.d(t,{Ac:function(){return ee},Xo:function(){return ne},Wx:function(){return re},ZP:function(){return Se},lk:function(){return b}});var i=n(54476),r=n(94480),s=n(20068),a=n(33885),o=n(42978),l=n(75931),u=n(76190),c=n(18929),d=n(48736),h=n(59301),f=n(92310),p=n.n(f),g=n(34280),m=n(49658),v=n(8654),y=function(e){var t=e.className,n=e.customizeIcon,i=e.customizeIconProps,r=e.children,s=e.onMouseDown,a=e.onClick,o="function"==typeof n?n(i):n;return h.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==s||s(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==o?o:h.createElement("span",{className:p()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},r))},_=h.createContext(null);function b(){return h.useContext(_)}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=h.useRef(null),n=h.useRef(null);function i(i){(i||null===t.current)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return h.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},i]}var w=n(10228);var x=n(26112),k=n(11780);var S=function(e,t,n){var i=(0,a.Z)((0,a.Z)({},e),n?t:{});return Object.keys(t).forEach((function(n){var r=t[n];"function"==typeof r&&(i[n]=function(){for(var t,i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return r.apply(void 0,s),null===(t=e[n])||void 0===t?void 0:t.call.apply(t,[e].concat(s))})})),i},C=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],A=function(e,t){var n=e.prefixCls,i=e.id,r=e.inputElement,s=e.autoFocus,o=e.autoComplete,u=e.editable,c=e.activeDescendantId,f=e.value,g=e.open,m=e.attrs,y=(0,l.Z)(e,C),_=r||h.createElement("input",null),b=_,E=b.ref,w=b.props;return(0,d.Kp)(!("maxLength"in _.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),_=h.cloneElement(_,(0,a.Z)((0,a.Z)((0,a.Z)({type:"search"},S(y,w,!0)),{},{id:i,ref:(0,v.sQ)(t,E),autoComplete:o||"off",autoFocus:s,className:p()("".concat(n,"-selection-search-input"),null==w?void 0:w.className),role:"combobox","aria-expanded":g||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":g?c:void 0},m),{},{value:u?f:"",readOnly:!u,unselectable:u?null:"on",style:(0,a.Z)((0,a.Z)({},w.style),{},{opacity:u?null:0})}))};var T=h.forwardRef(A);function D(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var L="undefined"!=typeof window&&window.document&&window.document.documentElement;function R(e){return["string","number"].includes((0,u.Z)(e))}function I(e){var t=void 0;return e&&(R(e.title)?t=e.title.toString():R(e.label)&&(t=e.label.toString())),t}function N(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var M=function(e){e.preventDefault(),e.stopPropagation()},P=function(e){var t,n,i=e.id,r=e.prefixCls,a=e.values,l=e.open,u=e.searchValue,c=e.autoClearSearchValue,d=e.inputRef,f=e.placeholder,g=e.disabled,m=e.mode,v=e.showSearch,_=e.autoFocus,b=e.autoComplete,E=e.activeDescendantId,w=e.tabIndex,S=e.removeIcon,C=e.maxTagCount,A=e.maxTagTextLength,D=e.maxTagPlaceholder,R=void 0===D?function(e){return"+ ".concat(e.length," ...")}:D,P=e.tagRender,O=e.onToggleOpen,F=e.onRemove,B=e.onInputChange,Z=e.onInputPaste,j=e.onInputKeyDown,U=e.onInputMouseDown,K=e.onInputCompositionStart,z=e.onInputCompositionEnd,G=e.onInputBlur,H=h.useRef(null),V=(0,h.useState)(0),W=(0,o.Z)(V,2),Y=W[0],q=W[1],X=(0,h.useState)(!1),Q=(0,o.Z)(X,2),J=Q[0],$=Q[1],ee="".concat(r,"-selection"),te=l||"multiple"===m&&!1===c||"tags"===m?u:"",ne="tags"===m||"multiple"===m&&!1===c||v&&(l||J);t=function(){q(H.current.scrollWidth)},n=[te],L?h.useLayoutEffect(t,n):h.useEffect(t,n);var ie=function(e,t,n,i,r){return h.createElement("span",{title:I(e),className:p()("".concat(ee,"-item"),(0,s.Z)({},"".concat(ee,"-item-disabled"),n))},h.createElement("span",{className:"".concat(ee,"-item-content")},t),i&&h.createElement(y,{className:"".concat(ee,"-item-remove"),onMouseDown:M,onClick:r,customizeIcon:S},"×"))},re=function(e,t,n,i,r,s){return h.createElement("span",{onMouseDown:function(e){M(e),O(!l)}},P({label:t,value:e,disabled:n,closable:i,onClose:r,isMaxTag:!!s}))},se=h.createElement("div",{className:"".concat(ee,"-search"),style:{width:Y},onFocus:function(){$(!0)},onBlur:function(){$(!1)}},h.createElement(T,{ref:d,open:l,prefixCls:r,id:i,inputElement:null,disabled:g,autoFocus:_,autoComplete:b,editable:ne,activeDescendantId:E,value:te,onKeyDown:j,onMouseDown:U,onChange:B,onPaste:Z,onCompositionStart:K,onCompositionEnd:z,onBlur:G,tabIndex:w,attrs:(0,x.Z)(e,!0)}),h.createElement("span",{ref:H,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},te," ")),ae=h.createElement(k.Z,{prefixCls:"".concat(ee,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,i=e.value,r=!g&&!t,s=n;if("number"==typeof A&&("string"==typeof n||"number"==typeof n)){var a=String(s);a.length>A&&(s="".concat(a.slice(0,A),"..."))}var o=function(t){t&&t.stopPropagation(),F(e)};return"function"==typeof P?re(i,s,t,r,o):ie(e,s,t,r,o)},renderRest:function(e){if(!a.length)return null;var t="function"==typeof R?R(e):R;return"function"==typeof P?re(void 0,t,!1,!1,void 0,!0):ie({title:t},t,!1)},suffix:se,itemKey:N,maxCount:C});return h.createElement("span",{className:"".concat(ee,"-wrap")},ae,!a.length&&!te&&h.createElement("span",{className:"".concat(ee,"-placeholder")},f))},O=function(e){var t=e.inputElement,n=e.prefixCls,i=e.id,r=e.inputRef,s=e.disabled,a=e.autoFocus,l=e.autoComplete,u=e.activeDescendantId,c=e.mode,d=e.open,f=e.values,p=e.placeholder,g=e.tabIndex,m=e.showSearch,v=e.searchValue,y=e.activeValue,_=e.maxLength,b=e.onInputKeyDown,E=e.onInputMouseDown,w=e.onInputChange,k=e.onInputPaste,S=e.onInputCompositionStart,C=e.onInputCompositionEnd,A=e.onInputBlur,D=e.title,L=h.useState(!1),R=(0,o.Z)(L,2),N=R[0],M=R[1],P="combobox"===c,O=P||m,F=f[0],B=v||"";P&&y&&!N&&(B=y),h.useEffect((function(){P&&M(!1)}),[P,y]);var Z=!("combobox"!==c&&!d&&!m)&&!!B,j=void 0===D?I(F):D,U=h.useMemo((function(){return F?null:h.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:Z?{visibility:"hidden"}:void 0},p)}),[F,Z,p,n]);return h.createElement("span",{className:"".concat(n,"-selection-wrap")},h.createElement("span",{className:"".concat(n,"-selection-search")},h.createElement(T,{ref:r,prefixCls:n,id:i,open:d,inputElement:t,disabled:s,autoFocus:a,autoComplete:l,editable:O,activeDescendantId:u,value:B,onKeyDown:b,onMouseDown:E,onChange:function(e){M(!0),w(e)},onPaste:k,onCompositionStart:S,onCompositionEnd:C,onBlur:A,tabIndex:g,attrs:(0,x.Z)(e,!0),maxLength:P?_:void 0})),!P&&F?h.createElement("span",{className:"".concat(n,"-selection-item"),title:j,style:Z?{visibility:"hidden"}:void 0},F.label):null,U)},F=function(e,t){var n=(0,h.useRef)(null),r=(0,h.useRef)(!1),s=e.prefixCls,a=e.open,l=e.mode,u=e.showSearch,c=e.tokenWithEnter,d=e.disabled,f=e.prefix,p=e.autoClearSearchValue,g=e.onSearch,m=e.onSearchSubmit,v=e.onToggleOpen,y=e.onInputKeyDown,_=e.onInputBlur,b=e.domRef;h.useImperativeHandle(t,(function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}}));var x=E(0),k=(0,o.Z)(x,2),S=k[0],C=k[1],A=(0,h.useRef)(null),T=function(e){!1!==g(e,!0,r.current)&&v(!0)},D={inputRef:n,onInputKeyDown:function(e){var t,i=e.which,s=n.current instanceof HTMLTextAreaElement;(s||!a||i!==w.Z.UP&&i!==w.Z.DOWN||e.preventDefault(),y&&y(e),i!==w.Z.ENTER||"tags"!==l||r.current||a||null==m||m(e.target.value),s&&!a&&~[w.Z.UP,w.Z.DOWN,w.Z.LEFT,w.Z.RIGHT].indexOf(i))||(t=i)&&![w.Z.ESC,w.Z.SHIFT,w.Z.BACKSPACE,w.Z.TAB,w.Z.WIN_KEY,w.Z.ALT,w.Z.META,w.Z.WIN_KEY_RIGHT,w.Z.CTRL,w.Z.SEMICOLON,w.Z.EQUALS,w.Z.CAPS_LOCK,w.Z.CONTEXT_MENU,w.Z.F1,w.Z.F2,w.Z.F3,w.Z.F4,w.Z.F5,w.Z.F6,w.Z.F7,w.Z.F8,w.Z.F9,w.Z.F10,w.Z.F11,w.Z.F12].includes(t)&&v(!0)},onInputMouseDown:function(){C(!0)},onInputChange:function(e){var t=e.target.value;if(c&&A.current&&/[\r\n]/.test(A.current)){var n=A.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,A.current)}A.current=null,T(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");A.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==l&&T(e.target.value)},onInputBlur:_},L="multiple"===l||"tags"===l?h.createElement(P,(0,i.Z)({},e,D)):h.createElement(O,(0,i.Z)({},e,D));return h.createElement("div",{ref:b,className:"".concat(s,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=S();e.target===n.current||t||"combobox"===l&&d||e.preventDefault(),("combobox"===l||u&&t)&&a||(a&&!1!==p&&g("",!0,!1),v())}},f&&h.createElement("div",{className:"".concat(s,"-prefix")},f),L)};var B=h.forwardRef(F),Z=n(65030),j=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],U=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),o=e.children,u=e.popupElement,c=e.animation,d=e.transitionName,f=e.dropdownStyle,g=e.dropdownClassName,m=e.direction,v=void 0===m?"ltr":m,y=e.placement,_=e.builtinPlacements,b=e.dropdownMatchSelectWidth,E=e.dropdownRender,w=e.dropdownAlign,x=e.getPopupContainer,k=e.empty,S=e.getTriggerDOMNode,C=e.onPopupVisibleChange,A=e.onPopupMouseEnter,T=(0,l.Z)(e,j),D="".concat(n,"-dropdown"),L=u;E&&(L=E(u));var R=h.useMemo((function(){return _||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(b)}),[_,b]),I=c?"".concat(D,"-").concat(c):d,N="number"==typeof b,M=h.useMemo((function(){return N?null:!1===b?"minWidth":"width"}),[b,N]),P=f;N&&(P=(0,a.Z)((0,a.Z)({},P),{},{width:b}));var O=h.useRef(null);return h.useImperativeHandle(t,(function(){return{getPopupElement:function(){var e;return null===(e=O.current)||void 0===e?void 0:e.popupElement}}})),h.createElement(Z.Z,(0,i.Z)({},T,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:y||("rtl"===v?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:D,popupTransitionName:I,popup:h.createElement("div",{onMouseEnter:A},L),ref:O,stretch:M,popupAlign:w,popupVisible:r,getPopupContainer:x,popupClassName:p()(g,(0,s.Z)({},"".concat(D,"-empty"),k)),popupStyle:P,getTriggerDOMNode:S,onPopupVisibleChange:C}),o)};var K=h.forwardRef(U),z=n(66712);function G(e,t){var n,i=e.key;return"value"in e&&(n=e.value),null!=i?i:void 0!==n?n:"rc-index-key-".concat(t)}function H(e){return void 0!==e&&!Number.isNaN(e)}function V(e,t){var n=e||{},i=n.label||(t?"children":"label");return{label:i,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||i}}function W(e){var t=(0,a.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,d.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Y=h.createContext(null);function q(e){var t=e.visible,n=e.values;if(!t)return null;return h.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,u.Z)(t))?t:n})).join(", ")),n.length>50?", ...":null)}var X=["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"],Q=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],J=function(e){return"tags"===e||"multiple"===e},$=h.forwardRef((function(e,t){var n,d=e.id,f=e.prefixCls,b=e.className,w=e.showSearch,x=e.tagRender,k=e.direction,S=e.omitDomProps,C=e.displayValues,A=e.onDisplayValuesChange,T=e.emptyOptions,D=e.notFoundContent,L=void 0===D?"Not Found":D,R=e.onClear,I=e.mode,N=e.disabled,M=e.loading,P=e.getInputElement,O=e.getRawInputElement,F=e.open,Z=e.defaultOpen,j=e.onDropdownVisibleChange,U=e.activeValue,G=e.onActiveValueChange,V=e.activeDescendantId,W=e.searchValue,$=e.autoClearSearchValue,ee=e.onSearch,te=e.onSearchSplit,ne=e.tokenSeparators,ie=e.allowClear,re=e.prefix,se=e.suffixIcon,ae=e.clearIcon,oe=e.OptionList,le=e.animation,ue=e.transitionName,ce=e.dropdownStyle,de=e.dropdownClassName,he=e.dropdownMatchSelectWidth,fe=e.dropdownRender,pe=e.dropdownAlign,ge=e.placement,me=e.builtinPlacements,ve=e.getPopupContainer,ye=e.showAction,_e=void 0===ye?[]:ye,be=e.onFocus,Ee=e.onBlur,we=e.onKeyUp,xe=e.onKeyDown,ke=e.onMouseDown,Se=(0,l.Z)(e,X),Ce=J(I),Ae=(void 0!==w?w:Ce)||"combobox"===I,Te=(0,a.Z)({},Se);Q.forEach((function(e){delete Te[e]})),null==S||S.forEach((function(e){delete Te[e]}));var De=h.useState(!1),Le=(0,o.Z)(De,2),Re=Le[0],Ie=Le[1];h.useEffect((function(){Ie((0,m.Z)())}),[]);var Ne=h.useRef(null),Me=h.useRef(null),Pe=h.useRef(null),Oe=h.useRef(null),Fe=h.useRef(null),Be=h.useRef(!1),Ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=h.useState(!1),n=(0,o.Z)(t,2),i=n[0],r=n[1],s=h.useRef(null),a=function(){window.clearTimeout(s.current)};return h.useEffect((function(){return a}),[]),[i,function(t,n){a(),s.current=window.setTimeout((function(){r(t),n&&n()}),e)},a]}(),je=(0,o.Z)(Ze,3),Ue=je[0],Ke=je[1],ze=je[2];h.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Oe.current)||void 0===e?void 0:e.focus,blur:null===(t=Oe.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Fe.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:Ne.current||Me.current}}));var Ge=h.useMemo((function(){var e;if("combobox"!==I)return W;var t=null===(e=C[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[W,I,C]),He="combobox"===I&&"function"==typeof P&&P()||null,Ve="function"==typeof O&&O(),We=(0,v.x1)(Me,null==Ve||null===(n=Ve.props)||void 0===n?void 0:n.ref),Ye=h.useState(!1),qe=(0,o.Z)(Ye,2),Xe=qe[0],Qe=qe[1];(0,g.Z)((function(){Qe(!0)}),[]);var Je=(0,c.Z)(!1,{defaultValue:Z,value:F}),$e=(0,o.Z)(Je,2),et=$e[0],tt=$e[1],nt=!!Xe&&et,it=!L&&T;(N||it&&nt&&"combobox"===I)&&(nt=!1);var rt=!it&&nt,st=h.useCallback((function(e){var t=void 0!==e?e:!nt;N||(tt(t),nt!==t&&(null==j||j(t)))}),[N,nt,tt,j]),at=h.useMemo((function(){return(ne||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ne]),ot=h.useContext(Y)||{},lt=ot.maxCount,ut=ot.rawValues,ct=function(e,t,n){if(!(Ce&&H(lt)&&(null==ut?void 0:ut.size)>=lt)){var i=!0,s=e;null==G||G(null);var a=function(e,t,n){if(!t||!t.length)return null;var i=!1,s=function e(t,n){var s=(0,z.Z)(n),a=s[0],o=s.slice(1);if(!a)return[t];var l=t.split(a);return i=i||l.length>1,l.reduce((function(t,n){return[].concat((0,r.Z)(t),(0,r.Z)(e(n,o)))}),[]).filter(Boolean)}(e,t);return i?void 0!==n?s.slice(0,n):s:null}(e,ne,H(lt)?lt-ut.size:void 0),o=n?null:a;return"combobox"!==I&&o&&(s="",null==te||te(o),st(!1),i=!1),ee&&Ge!==s&&ee(s,{source:t?"typing":"effect"}),i}};h.useEffect((function(){nt||Ce||"combobox"===I||ct("",!1,!1)}),[nt]),h.useEffect((function(){et&&N&&tt(!1),N&&!Be.current&&Ke(!1)}),[N]);var dt=E(),ht=(0,o.Z)(dt,2),ft=ht[0],pt=ht[1],gt=h.useRef(!1),mt=h.useRef(!1),vt=[];h.useEffect((function(){return function(){vt.forEach((function(e){return clearTimeout(e)})),vt.splice(0,vt.length)}}),[]);var yt,_t=h.useState({}),bt=(0,o.Z)(_t,2)[1];Ve&&(yt=function(e){st(e)}),function(e,t,n,i){var r=h.useRef(null);r.current={open:t,triggerOpen:n,customizedTrigger:i},h.useEffect((function(){function t(t){var n;if(null===(n=r.current)||void 0===n||!n.customizedTrigger){var i=t.target;i.shadowRoot&&t.composed&&(i=t.composedPath()[0]||i),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(i)&&e!==i}))&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Ne.current,null===(e=Pe.current)||void 0===e?void 0:e.getPopupElement()]}),rt,st,!!Ve);var Et,wt=h.useMemo((function(){return(0,a.Z)((0,a.Z)({},e),{},{notFoundContent:L,open:nt,triggerOpen:rt,id:d,showSearch:Ae,multiple:Ce,toggleOpen:st})}),[e,L,rt,nt,d,Ae,Ce,st]),xt=!!se||M;xt&&(Et=h.createElement(y,{className:p()("".concat(f,"-arrow"),(0,s.Z)({},"".concat(f,"-arrow-loading"),M)),customizeIcon:se,customizeIconProps:{loading:M,searchValue:Ge,open:nt,focused:Ue,showSearch:Ae}}));var kt,St=function(e,t,n,i,r){var s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,o=arguments.length>7?arguments[7]:void 0,l=h.useMemo((function(){return"object"===(0,u.Z)(i)?i.clearIcon:r||void 0}),[i,r]),c=h.useMemo((function(){return!(s||!i||!n.length&&!a||"combobox"===o&&""===a)}),[i,s,n.length,a,o]);return{allowClear:c,clearIcon:h.createElement(y,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}(f,(function(){var e;null==R||R(),null===(e=Oe.current)||void 0===e||e.focus(),A([],{type:"clear",values:C}),ct("",!1,!1)}),C,ie,ae,N,Ge,I),Ct=St.allowClear,At=St.clearIcon,Tt=h.createElement(oe,{ref:Fe}),Dt=p()(f,b,(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},"".concat(f,"-focused"),Ue),"".concat(f,"-multiple"),Ce),"".concat(f,"-single"),!Ce),"".concat(f,"-allow-clear"),ie),"".concat(f,"-show-arrow"),xt),"".concat(f,"-disabled"),N),"".concat(f,"-loading"),M),"".concat(f,"-open"),nt),"".concat(f,"-customize-input"),He),"".concat(f,"-show-search"),Ae)),Lt=h.createElement(K,{ref:Pe,disabled:N,prefixCls:f,visible:rt,popupElement:Tt,animation:le,transitionName:ue,dropdownStyle:ce,dropdownClassName:de,direction:k,dropdownMatchSelectWidth:he,dropdownRender:fe,dropdownAlign:pe,placement:ge,builtinPlacements:me,getPopupContainer:ve,empty:T,getTriggerDOMNode:function(e){return Me.current||e},onPopupVisibleChange:yt,onPopupMouseEnter:function(){bt({})}},Ve?h.cloneElement(Ve,{ref:We}):h.createElement(B,(0,i.Z)({},e,{domRef:Me,prefixCls:f,inputElement:He,ref:Oe,id:d,prefix:re,showSearch:Ae,autoClearSearchValue:$,mode:I,activeDescendantId:V,tagRender:x,values:C,open:nt,onToggleOpen:st,activeValue:U,searchValue:Ge,onSearch:ct,onSearchSubmit:function(e){e&&e.trim()&&ee(e,{source:"submit"})},onRemove:function(e){var t=C.filter((function(t){return t!==e}));A(t,{type:"remove",values:[e]})},tokenWithEnter:at,onInputBlur:function(){gt.current=!1}})));return kt=Ve?Lt:h.createElement("div",(0,i.Z)({className:Dt},Te,{ref:Ne,onMouseDown:function(e){var t,n=e.target,i=null===(t=Pe.current)||void 0===t?void 0:t.getPopupElement();if(i&&i.contains(n)){var r=setTimeout((function(){var e,t=vt.indexOf(r);-1!==t&&vt.splice(t,1),ze(),Re||i.contains(document.activeElement)||null===(e=Oe.current)||void 0===e||e.focus()}));vt.push(r)}for(var s=arguments.length,a=new Array(s>1?s-1:0),o=1;o<s;o++)a[o-1]=arguments[o];null==ke||ke.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=ft(),i=e.key,s="Enter"===i;if(s&&("combobox"!==I&&e.preventDefault(),nt||st(!0)),pt(!!Ge),"Backspace"===i&&!n&&Ce&&!Ge&&C.length){for(var a=(0,r.Z)(C),o=null,l=a.length-1;l>=0;l-=1){var u=a[l];if(!u.disabled){a.splice(l,1),o=u;break}}o&&A(a,{type:"remove",values:[o]})}for(var c=arguments.length,d=new Array(c>1?c-1:0),h=1;h<c;h++)d[h-1]=arguments[h];!nt||s&&gt.current||(s&&(gt.current=!0),null===(t=Fe.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(d))),null==xe||xe.apply(void 0,[e].concat(d))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r;nt&&(null===(r=Fe.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(n))),"Enter"===e.key&&(gt.current=!1),null==we||we.apply(void 0,[e].concat(n))},onFocus:function(){Ke(!0),N||(be&&!mt.current&&be.apply(void 0,arguments),_e.includes("focus")&&st(!0)),mt.current=!0},onBlur:function(){Be.current=!0,Ke(!1,(function(){mt.current=!1,Be.current=!1,st(!1)})),N||(Ge&&("tags"===I?ee(Ge,{source:"submit"}):"multiple"===I&&ee("",{source:"blur"})),Ee&&Ee.apply(void 0,arguments))}}),h.createElement(q,{visible:Ue&&!nt,values:C}),Lt,Et,Ct&&At),h.createElement(_.Provider,{value:wt},kt)}));var ee=$,te=function(){return null};te.isSelectOptGroup=!0;var ne=te,ie=function(){return null};ie.isSelectOption=!0;var re=ie,se=n(80547),ae=n(2738),oe=n(48911);var le=["disabled","title","children","style","className"];function ue(e){return"string"==typeof e||"number"==typeof e}var ce=function(e,t){var n=b(),a=n.prefixCls,u=n.id,c=n.open,d=n.multiple,f=n.mode,g=n.searchValue,m=n.toggleOpen,v=n.notFoundContent,_=n.onPopupScroll,E=h.useContext(Y),k=E.maxCount,S=E.flattenOptions,C=E.onActiveValue,A=E.defaultActiveFirstOption,T=E.onSelect,D=E.menuItemSelectedIcon,L=E.rawValues,R=E.fieldNames,I=E.virtual,N=E.direction,M=E.listHeight,P=E.listItemHeight,O=E.optionRender,F="".concat(a,"-item"),B=(0,se.Z)((function(){return S}),[c,S],(function(e,t){return t[0]&&e[1]!==t[1]})),Z=h.useRef(null),j=h.useMemo((function(){return d&&H(k)&&(null==L?void 0:L.size)>=k}),[d,k,null==L?void 0:L.size]),U=function(e){e.preventDefault()},K=function(e){var t;null===(t=Z.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},z=h.useCallback((function(e){return"combobox"!==f&&L.has(e)}),[f,(0,r.Z)(L).toString(),L.size]),G=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=B.length,i=0;i<n;i+=1){var r=(e+i*t+n)%n,s=B[r]||{},a=s.group,o=s.data;if(!a&&(null==o||!o.disabled)&&(z(o.value)||!j))return r}return-1},V=h.useState((function(){return G(0)})),W=(0,o.Z)(V,2),q=W[0],X=W[1],Q=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];X(e);var n={source:t?"keyboard":"mouse"},i=B[e];i?C(i.value,e,n):C(null,-1,n)};(0,h.useEffect)((function(){Q(!1!==A?G(0):-1)}),[B.length,g]);var J=h.useCallback((function(e){return"combobox"===f?String(e).toLowerCase()===g.toLowerCase():L.has(e)}),[f,g,(0,r.Z)(L).toString(),L.size]);(0,h.useEffect)((function(){var e,t=setTimeout((function(){if(!d&&c&&1===L.size){var e=Array.from(L)[0],t=B.findIndex((function(t){var n=t.data;return g?String(n.value).startsWith(g):n.value===e}));-1!==t&&(Q(t),K(t))}}));c&&(null===(e=Z.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[c,g]);var $=function(e){void 0!==e&&T(e,{selected:!L.has(e)}),d||m(!1)};if(h.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case w.Z.N:case w.Z.P:case w.Z.UP:case w.Z.DOWN:var i=0;if(t===w.Z.UP?i=-1:t===w.Z.DOWN?i=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===w.Z.N?i=1:t===w.Z.P&&(i=-1)),0!==i){var r=G(q+i,i);K(r),Q(r,!0)}break;case w.Z.TAB:case w.Z.ENTER:var s,a=B[q];!a||null!=a&&null!==(s=a.data)&&void 0!==s&&s.disabled||j?$(void 0):$(a.value),c&&e.preventDefault();break;case w.Z.ESC:m(!1),c&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){K(e)}}})),0===B.length)return h.createElement("div",{role:"listbox",id:"".concat(u,"_list"),className:"".concat(F,"-empty"),onMouseDown:U},v);var ee=Object.keys(R).map((function(e){return R[e]})),te=function(e){return e.label};function ne(e,t){return{role:e.group?"presentation":"option",id:"".concat(u,"_list_").concat(t)}}var ie=function(e){var t=B[e];if(!t)return null;var n=t.data||{},r=n.value,s=t.group,a=(0,x.Z)(n,!0),o=te(t);return t?h.createElement("div",(0,i.Z)({"aria-label":"string"!=typeof o||s?null:o},a,{key:e},ne(t,e),{"aria-selected":J(r)}),r):null},re={role:"listbox",id:"".concat(u,"_list")};return h.createElement(h.Fragment,null,I&&h.createElement("div",(0,i.Z)({},re,{style:{height:0,width:0,overflow:"hidden"}}),ie(q-1),ie(q),ie(q+1)),h.createElement(oe.Z,{itemKey:"key",ref:Z,data:B,height:M,itemHeight:P,fullHeight:!1,onMouseDown:U,onScroll:_,virtual:I,direction:N,innerProps:I?null:re},(function(e,t){var n=e.group,r=e.groupOption,a=e.data,o=e.label,u=e.value,c=a.key;if(n){var d,f=null!==(d=a.title)&&void 0!==d?d:ue(o)?o.toString():void 0;return h.createElement("div",{className:p()(F,"".concat(F,"-group"),a.className),title:f},void 0!==o?o:c)}var g=a.disabled,m=a.title,v=(a.children,a.style),_=a.className,b=(0,l.Z)(a,le),E=(0,ae.Z)(b,ee),w=z(u),k=g||!w&&j,S="".concat(F,"-option"),C=p()(F,S,_,(0,s.Z)((0,s.Z)((0,s.Z)((0,s.Z)({},"".concat(S,"-grouped"),r),"".concat(S,"-active"),q===t&&!k),"".concat(S,"-disabled"),k),"".concat(S,"-selected"),w)),A=te(e),T=!D||"function"==typeof D||w,L="number"==typeof A?A:A||u,R=ue(L)?L.toString():void 0;return void 0!==m&&(R=m),h.createElement("div",(0,i.Z)({},(0,x.Z)(E),I?{}:ne(e,t),{"aria-selected":J(u),className:C,title:R,onMouseMove:function(){q===t||k||Q(t)},onClick:function(){k||$(u)},style:v}),h.createElement("div",{className:"".concat(S,"-content")},"function"==typeof O?O(e,{index:t}):L),h.isValidElement(D)||w,T&&h.createElement(y,{className:"".concat(F,"-option-state"),customizeIcon:D,customizeIconProps:{value:u,disabled:k,isSelected:w}},w?"✓":null))})))};var de=h.forwardRef(ce);function he(e,t){return D(e).join("").toUpperCase().includes(t)}var fe=n(6551),pe=n(11592),ge=["children","value"],me=["children"];function ve(e){var t=e,n=t.key,i=t.props,r=i.children,s=i.value,o=(0,l.Z)(i,ge);return(0,a.Z)({key:n,value:void 0!==s?s:n,children:r},o)}function ye(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,pe.Z)(e).map((function(e,n){if(!h.isValidElement(e)||!e.type)return null;var i=e,r=i.type.isSelectOptGroup,s=i.key,o=i.props,u=o.children,c=(0,l.Z)(o,me);return t||!r?ve(e):(0,a.Z)((0,a.Z)({key:"__RC_SELECT_GRP__".concat(null===s?n:s,"__"),label:s},c),{},{options:ye(u)})})).filter((function(e){return e}))}var _e=function(e,t,n,i,r){return h.useMemo((function(){var s=e;!e&&(s=ye(t));var a=new Map,o=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=0;u<t.length;u+=1){var c=t[u];!c[n.options]||s?(a.set(c[n.value],c),l(o,c,n.label),l(o,c,i),l(o,c,r)):e(c[n.options],!0)}}(s),{options:s,valueOptions:a,labelOptions:o}}),[e,t,n,i,r])};function be(e){var t=h.useRef();t.current=e;var n=h.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var Ee=["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"],we=["inputValue"];var xe=h.forwardRef((function(e,t){var n=e.id,d=e.mode,f=e.prefixCls,p=void 0===f?"rc-select":f,g=e.backfill,m=e.fieldNames,v=e.inputValue,y=e.searchValue,_=e.onSearch,b=e.autoClearSearchValue,E=void 0===b||b,w=e.onSelect,x=e.onDeselect,k=e.dropdownMatchSelectWidth,S=void 0===k||k,C=e.filterOption,A=e.filterSort,T=e.optionFilterProp,L=e.optionLabelProp,R=e.options,I=e.optionRender,N=e.children,M=e.defaultActiveFirstOption,P=e.menuItemSelectedIcon,O=e.virtual,F=e.direction,B=e.listHeight,Z=void 0===B?200:B,j=e.listItemHeight,U=void 0===j?20:j,K=e.labelRender,z=e.value,H=e.defaultValue,q=e.labelInValue,X=e.onChange,Q=e.maxCount,$=(0,l.Z)(e,Ee),te=(0,fe.ZP)(n),ne=J(d),ie=!(R||!N),re=h.useMemo((function(){return(void 0!==C||"combobox"!==d)&&C}),[C,d]),se=h.useMemo((function(){return V(m,ie)}),[JSON.stringify(m),ie]),ae=(0,c.Z)("",{value:void 0!==y?y:v,postState:function(e){return e||""}}),oe=(0,o.Z)(ae,2),le=oe[0],ue=oe[1],ce=_e(R,N,se,T,L),pe=ce.valueOptions,ge=ce.labelOptions,me=ce.options,ve=h.useCallback((function(e){return D(e).map((function(e){var t,n,i,r,s,a;(function(e){return!e||"object"!==(0,u.Z)(e)})(e)?t=e:(i=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:i);var o,l=pe.get(t);l&&(void 0===n&&(n=null==l?void 0:l[L||se.label]),void 0===i&&(i=null!==(o=null==l?void 0:l.key)&&void 0!==o?o:t),r=null==l?void 0:l.disabled,s=null==l?void 0:l.title);return{label:n,value:t,key:i,disabled:r,title:s}}))}),[se,L,pe]),ye=(0,c.Z)(H,{value:z}),xe=(0,o.Z)(ye,2),ke=xe[0],Se=xe[1],Ce=h.useMemo((function(){var e,t=ve(ne&&null===ke?[]:ke);return"combobox"===d&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[ke,ve,d,ne]),Ae=function(e,t){var n=h.useRef({values:new Map,options:new Map});return[h.useMemo((function(){var i=n.current,r=i.values,s=i.options,o=e.map((function(e){var t;return void 0===e.label?(0,a.Z)((0,a.Z)({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,u=new Map;return o.forEach((function(e){l.set(e.value,e),u.set(e.value,t.get(e.value)||s.get(e.value))})),n.current.values=l,n.current.options=u,o}),[e,t]),h.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(Ce,pe),Te=(0,o.Z)(Ae,2),De=Te[0],Le=Te[1],Re=h.useMemo((function(){if(!d&&1===De.length){var e=De[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return De.map((function(e){var t;return(0,a.Z)((0,a.Z)({},e),{},{label:null!==(t="function"==typeof K?K(e):e.label)&&void 0!==t?t:e.value})}))}),[d,De,K]),Ie=h.useMemo((function(){return new Set(De.map((function(e){return e.value})))}),[De]);h.useEffect((function(){if("combobox"===d){var e,t=null===(e=De[0])||void 0===e?void 0:e.value;ue(function(e){return null!=e}(t)?String(t):"")}}),[De]);var Ne=be((function(e,t){var n=null!=t?t:e;return(0,s.Z)((0,s.Z)({},se.value,e),se.label,n)})),Me=function(e,t,n,i,r){return h.useMemo((function(){if(!n||!1===i)return e;var o=t.options,l=t.label,u=t.value,c=[],d="function"==typeof i,h=n.toUpperCase(),f=d?i:function(e,t){return r?he(t[r],h):t[o]?he(t["children"!==l?l:"label"],h):he(t[u],h)},p=d?function(e){return W(e)}:function(e){return e};return e.forEach((function(e){if(e[o])if(f(n,p(e)))c.push(e);else{var t=e[o].filter((function(e){return f(n,p(e))}));t.length&&c.push((0,a.Z)((0,a.Z)({},e),{},(0,s.Z)({},o,t)))}else f(n,p(e))&&c.push(e)})),c}),[e,i,r,n,t])}(h.useMemo((function(){if("tags"!==d)return me;var e=(0,r.Z)(me);return(0,r.Z)(De).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return pe.has(e)})(n)||e.push(Ne(n,t.label))})),e}),[Ne,me,pe,De,d]),se,le,re,T),Pe=h.useMemo((function(){return"tags"!==d||!le||Me.some((function(e){return e[T||"value"]===le}))||Me.some((function(e){return e[se.value]===le}))?Me:[Ne(le)].concat((0,r.Z)(Me))}),[Ne,T,d,Me,le,se]),Oe=function e(t){return(0,r.Z)(t).sort((function(e,t){return A(e,t,{searchValue:le})})).map((function(t){return Array.isArray(t.options)?(0,a.Z)((0,a.Z)({},t),{},{options:t.options.length>0?e(t.options):t.options}):t}))},Fe=h.useMemo((function(){return A?Oe(Pe):Pe}),[Pe,A,le]),Be=h.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,i=t.childrenAsData,r=[],s=V(n,!1),a=s.label,o=s.value,l=s.options,u=s.groupLabel;function c(e,t){Array.isArray(e)&&e.forEach((function(e){if(t||!(l in e)){var n=e[o];r.push({key:G(e,r.length),groupOption:t,data:e,label:e[a],value:n})}else{var s=e[u];void 0===s&&i&&(s=e.label),r.push({key:G(e,r.length),group:!0,data:e,label:s}),c(e[l],!0)}}))}return c(e,!1),r}(Fe,{fieldNames:se,childrenAsData:ie})}),[Fe,se,ie]),Ze=function(e){var t=ve(e);if(Se(t),X&&(t.length!==De.length||t.some((function(e,t){var n;return(null===(n=De[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=q?t:t.map((function(e){return e.value})),i=t.map((function(e){return W(Le(e.value))}));X(ne?n:n[0],ne?i:i[0])}},je=h.useState(null),Ue=(0,o.Z)(je,2),Ke=Ue[0],ze=Ue[1],Ge=h.useState(0),He=(0,o.Z)(Ge,2),Ve=He[0],We=He[1],Ye=void 0!==M?M:"combobox"!==d,qe=h.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.source,r=void 0===i?"keyboard":i;We(t),g&&"combobox"===d&&null!==e&&"keyboard"===r&&ze(String(e))}),[g,d]),Xe=function(e,t,n){var i=function(){var t,n=Le(e);return[q?{label:null==n?void 0:n[se.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,W(n)]};if(t&&w){var r=i(),s=(0,o.Z)(r,2),a=s[0],l=s[1];w(a,l)}else if(!t&&x&&"clear"!==n){var u=i(),c=(0,o.Z)(u,2),d=c[0],h=c[1];x(d,h)}},Qe=be((function(e,t){var n,i=!ne||t.selected;n=i?ne?[].concat((0,r.Z)(De),[e]):[e]:De.filter((function(t){return t.value!==e})),Ze(n),Xe(e,i),"combobox"===d?ze(""):J&&!E||(ue(""),ze(""))})),Je=h.useMemo((function(){var e=!1!==O&&!1!==S;return(0,a.Z)((0,a.Z)({},ce),{},{flattenOptions:Be,onActiveValue:qe,defaultActiveFirstOption:Ye,onSelect:Qe,menuItemSelectedIcon:P,rawValues:Ie,fieldNames:se,virtual:e,direction:F,listHeight:Z,listItemHeight:U,childrenAsData:ie,maxCount:Q,optionRender:I})}),[Q,ce,Be,qe,Ye,Qe,P,Ie,se,O,S,F,Z,U,ie,I]);return h.createElement(Y.Provider,{value:Je},h.createElement(ee,(0,i.Z)({},$,{id:te,prefixCls:p,ref:t,omitDomProps:we,mode:d,displayValues:Re,onDisplayValuesChange:function(e,t){Ze(e);var n=t.type,i=t.values;"remove"!==n&&"clear"!==n||i.forEach((function(e){Xe(e.value,!1,n)}))},direction:F,searchValue:le,onSearch:function(e,t){if(ue(e),ze(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===d&&Ze(e),null==_||_(e));else{var n=(e||"").trim();if(n){var i=Array.from(new Set([].concat((0,r.Z)(Ie),[n])));Ze(i),Xe(n,!0),ue("")}}},autoClearSearchValue:E,onSearchSplit:function(e){var t=e;"tags"!==d&&(t=e.map((function(e){var t=ge.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,r.Z)(Ie),(0,r.Z)(t))));Ze(n),n.forEach((function(e){Xe(e,!0)}))},dropdownMatchSelectWidth:S,OptionList:de,emptyOptions:!Be.length,activeValue:Ke,activeDescendantId:"".concat(te,"_list_").concat(Ve)})))}));var ke=xe;ke.Option=re,ke.OptGroup=ne;var Se=ke},86351:function(e,t,n){"use strict";n.d(t,{R:function(){return r},w:function(){return i}});var i={},r="rc-table-internal-hook"},97347:function(e,t,n){"use strict";n.d(t,{L:function(){return m},Z:function(){return _}});var i=n(42978),r=n(20068),s=n(94480),a=n(76190),o=n(33885),l=n(75931),u=n(11592),c=(n(48736),n(59301)),d=n(86351),h=n(54451);function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var p=["children"],g=["fixed"];function m(e){return(0,u.Z)(e).filter((function(e){return c.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,i=n.children,r=(0,l.Z)(n,p),s=(0,o.Z)({key:t},r);return i&&(s.children=m(i)),s}))}function v(e){return e.filter((function(e){return e&&"object"===(0,a.Z)(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?(0,o.Z)((0,o.Z)({},e),{},{children:v(t)}):e}))}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===(0,a.Z)(e)})).reduce((function(e,n,i){var r=n.fixed,a=!0===r?"left":r,l="".concat(t,"-").concat(i),u=n.children;return u&&u.length>0?[].concat((0,s.Z)(e),(0,s.Z)(y(u,l).map((function(e){return(0,o.Z)({fixed:a},e)})))):[].concat((0,s.Z)(e),[(0,o.Z)((0,o.Z)({key:l},n),{},{fixed:a})])}),[])}var _=function(e,t){var n=e.prefixCls,s=e.columns,a=e.children,u=e.expandable,p=e.expandedKeys,_=e.columnTitle,b=e.getRowKey,E=e.onTriggerExpand,w=e.expandIcon,x=e.rowExpandable,k=e.expandIconColumnIndex,S=e.direction,C=e.expandRowByClick,A=e.columnWidth,T=e.fixed,D=e.scrollWidth,L=e.clientWidth,R=c.useMemo((function(){return v((s||m(a)||[]).slice())}),[s,a]),I=c.useMemo((function(){if(u){var e=R.slice();if(!e.includes(d.w)){var t=k||0;t>=0&&(t||"left"===T||!T)&&e.splice(t,0,d.w),"right"===T&&e.splice(R.length,0,d.w)}0;var i=e.indexOf(d.w);e=e.filter((function(e,t){return e!==d.w||t===i}));var s,a=R[i];s=T||(a?a.fixed:null);var o=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},h.v,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",_),"fixed",s),"className","".concat(n,"-row-expand-icon-cell")),"width",A),"render",(function(e,t,i){var r=b(t,i),s=p.has(r),a=!x||x(t),o=w({prefixCls:n,expanded:s,expandable:a,record:t,onExpand:E});return C?c.createElement("span",{onClick:function(e){return e.stopPropagation()}},o):o}));return e.map((function(e){return e===d.w?o:e}))}return R.filter((function(e){return e!==d.w}))}),[u,R,b,p,w,S]),N=c.useMemo((function(){var e=I;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,I,S]),M=c.useMemo((function(){return"rtl"===S?function(e){return e.map((function(e){var t=e.fixed,n=(0,l.Z)(e,g),i=t;return"left"===t?i="right":"right"===t&&(i="left"),(0,o.Z)({fixed:i},n)}))}(y(N)):y(N)}),[N,S,D]),P=c.useMemo((function(){for(var e=-1,t=M.length-1;t>=0;t-=1){var n=M[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var i=0;i<=e;i+=1){var r=M[i].fixed;if("left"!==r&&!0!==r)return!0}var s=M.findIndex((function(e){return"right"===e.fixed}));if(s>=0)for(var a=s;a<M.length;a+=1){if("right"!==M[a].fixed)return!0}return!1}),[M]),O=function(e,t,n){return c.useMemo((function(){if(t&&t>0){var i=0,r=0;e.forEach((function(e){var n=f(t,e.width);n?i+=n:r+=1}));var s=Math.max(t,n),a=Math.max(s-i,r),l=r,u=a/r,c=0,d=e.map((function(e){var n=(0,o.Z)({},e),i=f(t,n.width);if(i)n.width=i;else{var r=Math.floor(u);n.width=1===l?a:r,a-=r,l-=1}return c+=n.width,n}));if(c<s){var h=s/c;a=s,d.forEach((function(e,t){var n=Math.floor(e.width*h);e.width=t===d.length-1?a:n,a-=n}))}return[d,Math.max(c,s)]}return[e,t]}),[e,t,n])}(M,D,L),F=(0,i.Z)(O,2),B=F[0],Z=F[1];return[N,B,Z,P]}},4030:function(e,t,n){"use strict";n.d(t,{w2:function(){return i.w},vP:function(){return se.v},RQ:function(){return i.R},ER:function(){return K},Q$:function(){return Ie},TN:function(){return He}});var i=n(86351),r=n(42978),s=n(6089),a=n(34280),o=n(13697),l=n(59301),u=n(4676);function c(e){var t=l.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,i=e.children,s=l.useRef(n);s.current=n;var o=l.useState((function(){return{getValue:function(){return s.current},listeners:new Set}})),c=(0,r.Z)(o,1)[0];return(0,a.Z)((function(){(0,u.unstable_batchedUpdates)((function(){c.listeners.forEach((function(e){e(n)}))}))}),[n]),l.createElement(t.Provider,{value:c},i)},defaultValue:e}}function d(e,t){var n=(0,s.Z)("function"==typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach((function(t){n[t]=e[t]})),n}),i=l.useContext(null==e?void 0:e.Context),u=i||{},c=u.listeners,d=u.getValue,h=l.useRef();h.current=n(i?d():null==e?void 0:e.defaultValue);var f=l.useState({}),p=(0,r.Z)(f,2)[1];return(0,a.Z)((function(){if(i)return c.add(e),function(){c.delete(e)};function e(e){var t=n(e);(0,o.Z)(h.current,t,!0)||p({})}}),[i]),h.current}var h=n(54476),f=n(8654);function p(){var e=l.createContext(null);function t(){return l.useContext(e)}return{makeImmutable:function(n,i){var r=(0,f.Yr)(n),s=function(s,a){var o=r?{ref:a}:{},u=l.useRef(0),c=l.useRef(s);return null!==t()?l.createElement(n,(0,h.Z)({},s,o)):(i&&!i(c.current,s)||(u.current+=1),c.current=s,l.createElement(e.Provider,{value:u.current},l.createElement(n,(0,h.Z)({},s,o))))};return r?l.forwardRef(s):s},responseImmutable:function(e,n){var i=(0,f.Yr)(e),r=function(n,r){var s=i?{ref:r}:{};return t(),l.createElement(e,(0,h.Z)({},n,s))};return i?l.memo(l.forwardRef(r),n):l.memo(r,n)},useImmutableMark:t}}var g=p(),m=(g.makeImmutable,g.responseImmutable,g.useImmutableMark,p()),v=m.makeImmutable,y=m.responseImmutable,_=m.useImmutableMark,b=c();var E=n(76190),w=n(33885),x=n(20068),k=n(92310),S=n.n(k),C=n(80547),A=n(97938),T=(n(48736),l.createContext({renderWithProps:!1}));function D(e){var t=[],n={};return e.forEach((function(e){for(var i,r=e||{},s=r.key,a=r.dataIndex,o=s||(i=a,null==i?[]:Array.isArray(i)?i:[i]).join("-")||"RC_TABLE_KEY";n[o];)o="".concat(o,"_next");n[o]=!0,t.push(o)})),t}function L(e){return null!=e}function R(e,t,n,i,s,a){var u=l.useContext(T),c=_();return(0,C.Z)((function(){if(L(i))return[i];var r,a=null==t||""===t?[]:Array.isArray(t)?t:[t],o=(0,A.Z)(e,a),c=o,d=void 0;if(s){var h=s(o,e,n);!(r=h)||"object"!==(0,E.Z)(r)||Array.isArray(r)||l.isValidElement(r)?c=h:(c=h.children,d=h.props,u.renderWithProps=!0)}return[c,d]}),[c,e,i,t,s,n],(function(e,t){if(a){var n=(0,r.Z)(e,2)[1],i=(0,r.Z)(t,2)[1];return a(i,n)}return!!u.renderWithProps||!(0,o.Z)(e,t,!0)}))}var I=n(70425);function N(e){var t,n,i,s,a,o,u,c;var f=e.component,p=e.children,g=e.ellipsis,m=e.scope,v=e.prefixCls,y=e.className,_=e.align,k=e.record,C=e.render,A=e.dataIndex,T=e.renderIndex,D=e.shouldCellUpdate,L=e.index,N=e.rowType,M=e.colSpan,P=e.rowSpan,O=e.fixLeft,F=e.fixRight,B=e.firstFixLeft,Z=e.lastFixLeft,j=e.firstFixRight,U=e.lastFixRight,K=e.appendNode,z=e.additionalProps,G=void 0===z?{}:z,H=e.isSticky,V="".concat(v,"-cell"),W=d(b,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Y=W.supportSticky,q=W.allColumnsFixedLeft,X=W.rowHoverable,Q=R(k,A,T,p,C,D),J=(0,r.Z)(Q,2),$=J[0],ee=J[1],te={},ne="number"==typeof O&&Y,ie="number"==typeof F&&Y;ne&&(te.position="sticky",te.left=O),ie&&(te.position="sticky",te.right=F);var re=null!==(t=null!==(n=null!==(i=null==ee?void 0:ee.colSpan)&&void 0!==i?i:G.colSpan)&&void 0!==n?n:M)&&void 0!==t?t:1,se=null!==(s=null!==(a=null!==(o=null==ee?void 0:ee.rowSpan)&&void 0!==o?o:G.rowSpan)&&void 0!==a?a:P)&&void 0!==s?s:1,ae=function(e,t){return d(b,(function(n){var i,r,s,a;return[(i=e,r=t||1,s=n.hoverStartRow,a=n.hoverEndRow,i<=a&&i+r-1>=s),n.onHover]}))}(L,se),oe=(0,r.Z)(ae,2),le=oe[0],ue=oe[1],ce=(0,I.zX)((function(e){var t;k&&ue(L,L+se-1),null==G||null===(t=G.onMouseEnter)||void 0===t||t.call(G,e)})),de=(0,I.zX)((function(e){var t;k&&ue(-1,-1),null==G||null===(t=G.onMouseLeave)||void 0===t||t.call(G,e)}));if(0===re||0===se)return null;var he=null!==(u=G.title)&&void 0!==u?u:function(e){var t,n=e.ellipsis,i=e.rowType,r=e.children,s=!0===n?{showTitle:!0}:n;return s&&(s.showTitle||"header"===i)&&("string"==typeof r||"number"==typeof r?t=r.toString():l.isValidElement(r)&&"string"==typeof r.props.children&&(t=r.props.children)),t}({rowType:N,ellipsis:g,children:$}),fe=S()(V,y,(c={},(0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)(c,"".concat(V,"-fix-left"),ne&&Y),"".concat(V,"-fix-left-first"),B&&Y),"".concat(V,"-fix-left-last"),Z&&Y),"".concat(V,"-fix-left-all"),Z&&q&&Y),"".concat(V,"-fix-right"),ie&&Y),"".concat(V,"-fix-right-first"),j&&Y),"".concat(V,"-fix-right-last"),U&&Y),"".concat(V,"-ellipsis"),g),"".concat(V,"-with-append"),K),"".concat(V,"-fix-sticky"),(ne||ie)&&H&&Y),(0,x.Z)(c,"".concat(V,"-row-hover"),!ee&&le)),G.className,null==ee?void 0:ee.className),pe={};_&&(pe.textAlign=_);var ge=(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},null==ee?void 0:ee.style),te),pe),G.style),me=$;return"object"!==(0,E.Z)(me)||Array.isArray(me)||l.isValidElement(me)||(me=null),g&&(Z||j)&&(me=l.createElement("span",{className:"".concat(V,"-content")},me)),l.createElement(f,(0,h.Z)({},ee,G,{className:fe,style:ge,title:he,scope:m,onMouseEnter:X?ce:void 0,onMouseLeave:X?de:void 0,colSpan:1!==re?re:null,rowSpan:1!==se?se:null}),K,me)}var M=l.memo(N);function P(e,t,n,i,r){var s,a,o=n[e]||{},l=n[t]||{};"left"===o.fixed?s=i.left["rtl"===r?t:e]:"right"===l.fixed&&(a=i.right["rtl"===r?e:t]);var u=!1,c=!1,d=!1,h=!1,f=n[t+1],p=n[e-1],g=f&&!f.fixed||p&&!p.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===r){if(void 0!==s)h=!(p&&"left"===p.fixed)&&g;else if(void 0!==a){d=!(f&&"right"===f.fixed)&&g}}else if(void 0!==s){u=!(f&&"left"===f.fixed)&&g}else if(void 0!==a){c=!(p&&"right"===p.fixed)&&g}return{fixLeft:s,fixRight:a,lastFixLeft:u,firstFixRight:c,lastFixRight:d,firstFixLeft:h,isSticky:i.isSticky}}var O=l.createContext({});var F=n(75931),B=["children"];function Z(e){return e.children}Z.Row=function(e){var t=e.children,n=(0,F.Z)(e,B);return l.createElement("tr",n,t)},Z.Cell=function(e){var t=e.className,n=e.index,i=e.children,r=e.colSpan,s=void 0===r?1:r,a=e.rowSpan,o=e.align,u=d(b,["prefixCls","direction"]),c=u.prefixCls,f=u.direction,p=l.useContext(O),g=p.scrollColumnIndex,m=p.stickyOffsets,v=n+s-1+1===g?s+1:s,y=P(n,n+v-1,p.flattenColumns,m,f);return l.createElement(M,(0,h.Z)({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:o,colSpan:v,rowSpan:a,render:function(){return i}},y))};var j=Z;var U=y((function(e){var t=e.children,n=e.stickyOffsets,i=e.flattenColumns,r=d(b,"prefixCls"),s=i.length-1,a=i[s],o=l.useMemo((function(){return{stickyOffsets:n,flattenColumns:i,scrollColumnIndex:null!=a&&a.scrollbar?s:null}}),[a,i,s,n]);return l.createElement(O.Provider,{value:o},l.createElement("tfoot",{className:"".concat(r,"-summary")},t))})),K=j,z=n(29301),G=n(24514),H=n(75152),V=n(26112);function W(e,t,n,i,r,s,a){e.push({record:t,indent:n,index:a});var o=s(t),l=null==r?void 0:r.has(o);if(t&&Array.isArray(t[i])&&l)for(var u=0;u<t[i].length;u+=1)W(e,t[i][u],n+1,i,r,s,u)}function Y(e,t,n,i){return l.useMemo((function(){if(null!=n&&n.size){for(var r=[],s=0;s<(null==e?void 0:e.length);s+=1){W(r,e[s],0,t,n,i,s)}return r}return null==e?void 0:e.map((function(e,t){return{record:e,indent:0,index:t}}))}),[e,t,n,i])}function q(e,t,n,i){var r,s=d(b,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=s.flattenColumns,o=s.expandableType,l=s.expandedKeys,u=s.childrenColumnName,c=s.onTriggerExpand,h=s.rowExpandable,f=s.onRow,p=s.expandRowByClick,g=s.rowClassName,m="nest"===o,v="row"===o&&(!h||h(e)),y=v||m,_=l&&l.has(t),E=u&&e&&e[u],x=(0,I.zX)(c),k=null==f?void 0:f(e,n),C=null==k?void 0:k.onClick;"string"==typeof g?r=g:"function"==typeof g&&(r=g(e,n,i));var A=D(a);return(0,w.Z)((0,w.Z)({},s),{},{columnsKey:A,nestExpandable:m,expanded:_,hasNestChildren:E,record:e,onTriggerExpand:x,rowSupportExpand:v,expandable:y,rowProps:(0,w.Z)((0,w.Z)({},k),{},{className:S()(r,null==k?void 0:k.className),onClick:function(t){p&&y&&c(e,t);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];null==C||C.apply(void 0,[t].concat(i))}})})}var X=function(e){var t=e.prefixCls,n=e.children,i=e.component,r=e.cellComponent,s=e.className,a=e.expanded,o=e.colSpan,u=e.isEmpty,c=d(b,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),h=c.scrollbarSize,f=c.fixHeader,p=c.fixColumn,g=c.componentWidth,m=c.horizonScroll,v=n;return(u?m&&g:p)&&(v=l.createElement("div",{style:{width:g-(f&&!u?h:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},v)),l.createElement(i,{className:s,style:{display:a?null:"none"}},l.createElement(M,{component:r,prefixCls:t,colSpan:o},v))};function Q(e){var t=e.prefixCls,n=e.record,i=e.onExpand,r=e.expanded,s=e.expandable,a="".concat(t,"-row-expand-icon");if(!s)return l.createElement("span",{className:S()(a,"".concat(t,"-row-spaced"))});return l.createElement("span",{className:S()(a,(0,x.Z)((0,x.Z)({},"".concat(t,"-row-expanded"),r),"".concat(t,"-row-collapsed"),!r)),onClick:function(e){i(n,e),e.stopPropagation()}})}function J(e,t,n,i){return"string"==typeof e?e:"function"==typeof e?e(t,n,i):""}function $(e,t,n,i,r){var s,a,o=e.record,u=e.prefixCls,c=e.columnsKey,d=e.fixedInfoList,h=e.expandIconColumnIndex,f=e.nestExpandable,p=e.indentSize,g=e.expandIcon,m=e.expanded,v=e.hasNestChildren,y=e.onTriggerExpand,_=c[n],b=d[n];return n===(h||0)&&f&&(s=l.createElement(l.Fragment,null,l.createElement("span",{style:{paddingLeft:"".concat(p*i,"px")},className:"".concat(u,"-row-indent indent-level-").concat(i)}),g({prefixCls:u,expanded:m,expandable:v,record:o,onExpand:y}))),t.onCell&&(a=t.onCell(o,r)),{key:_,fixedInfo:b,appendCellNode:s,additionalCellProps:a||{}}}var ee=y((function(e){var t=e.className,n=e.style,i=e.record,r=e.index,s=e.renderIndex,a=e.rowKey,o=e.indent,u=void 0===o?0:o,c=e.rowComponent,d=e.cellComponent,f=e.scopeCellComponent,p=q(i,a,r,u),g=p.prefixCls,m=p.flattenColumns,v=p.expandedRowClassName,y=p.expandedRowRender,_=p.rowProps,b=p.expanded,E=p.rowSupportExpand,k=l.useRef(!1);k.current||(k.current=b);var C,A=J(v,i,r,u),T=l.createElement(c,(0,h.Z)({},_,{"data-row-key":a,className:S()(t,"".concat(g,"-row"),"".concat(g,"-row-level-").concat(u),null==_?void 0:_.className,(0,x.Z)({},A,u>=1)),style:(0,w.Z)((0,w.Z)({},n),null==_?void 0:_.style)}),m.map((function(e,t){var n=e.render,a=e.dataIndex,o=e.className,c=$(p,e,t,u,r),m=c.key,v=c.fixedInfo,y=c.appendCellNode,_=c.additionalCellProps;return l.createElement(M,(0,h.Z)({className:o,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?f:d,prefixCls:g,key:m,record:i,index:r,renderIndex:s,dataIndex:a,render:n,shouldCellUpdate:e.shouldCellUpdate},v,{appendNode:y,additionalProps:_}))})));if(E&&(k.current||b)){var D=y(i,r,u+1,b);C=l.createElement(X,{expanded:b,className:S()("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(u+1),A),prefixCls:g,component:c,cellComponent:d,colSpan:m.length,isEmpty:!1},D)}return l.createElement(l.Fragment,null,T,C)}));function te(e){var t=e.columnKey,n=e.onColumnResize,i=l.useRef();return(0,a.Z)((function(){i.current&&n(t,i.current.offsetWidth)}),[]),l.createElement(z.Z,{data:t},l.createElement("td",{ref:i,style:{padding:0,border:0,height:0}},l.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}var ne=n(29194);function ie(e){var t=e.prefixCls,n=e.columnsKey,i=e.onColumnResize,r=l.useRef(null);return l.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:r},l.createElement(z.Z.Collection,{onBatchResize:function(e){(0,ne.Z)(r.current)&&e.forEach((function(e){var t=e.data,n=e.size;i(t,n.offsetWidth)}))}},n.map((function(e){return l.createElement(te,{key:e,columnKey:e,onColumnResize:i})}))))}var re=y((function(e){var t,n=e.data,i=e.measureColumnWidth,r=d(b,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),s=r.prefixCls,a=r.getComponent,o=r.onColumnResize,u=r.flattenColumns,c=r.getRowKey,h=r.expandedKeys,f=r.childrenColumnName,p=r.emptyNode,g=Y(n,f,h,c),m=l.useRef({renderWithProps:!1}),v=a(["body","wrapper"],"tbody"),y=a(["body","row"],"tr"),_=a(["body","cell"],"td"),E=a(["body","cell"],"th");t=n.length?g.map((function(e,t){var n=e.record,i=e.indent,r=e.index,s=c(n,t);return l.createElement(ee,{key:s,rowKey:s,record:n,index:t,renderIndex:r,rowComponent:y,cellComponent:_,scopeCellComponent:E,indent:i})})):l.createElement(X,{expanded:!0,className:"".concat(s,"-placeholder"),prefixCls:s,component:y,cellComponent:_,colSpan:u.length,isEmpty:!0},p);var w=D(u);return l.createElement(T.Provider,{value:m.current},l.createElement(v,{className:"".concat(s,"-tbody")},i&&l.createElement(ie,{prefixCls:s,columnsKey:w,onColumnResize:o}),t))})),se=n(54451),ae=["columnType"];var oe=function(e){for(var t=e.colWidths,n=e.columns,i=e.columCount,r=d(b,["tableLayout"]).tableLayout,s=[],a=!1,o=(i||n.length)-1;o>=0;o-=1){var u=t[o],c=n&&n[o],f=void 0,p=void 0;if(c&&(f=c[se.v],"auto"===r&&(p=c.minWidth)),u||p||f||a){var g=f||{},m=(g.columnType,(0,F.Z)(g,ae));s.unshift(l.createElement("col",(0,h.Z)({key:o,style:{width:u,minWidth:p}},m))),a=!0}}return l.createElement("colgroup",null,s)},le=n(94480),ue=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var ce=l.forwardRef((function(e,t){var n=e.className,i=e.noData,r=e.columns,s=e.flattenColumns,a=e.colWidths,o=e.columCount,u=e.stickyOffsets,c=e.direction,h=e.fixHeader,p=e.stickyTopOffset,g=e.stickyBottomOffset,m=e.stickyClassName,v=e.onScroll,y=e.maxContentScroll,_=e.children,E=(0,F.Z)(e,ue),k=d(b,["prefixCls","scrollbarSize","isSticky","getComponent"]),C=k.prefixCls,A=k.scrollbarSize,T=k.isSticky,D=(0,k.getComponent)(["header","table"],"table"),L=T&&!h?0:A,R=l.useRef(null),I=l.useCallback((function(e){(0,f.mH)(t,e),(0,f.mH)(R,e)}),[]);l.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,i=t.deltaX;i&&(v({currentTarget:n,scrollLeft:n.scrollLeft+i}),e.preventDefault())}return null===(e=R.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),function(){var e;null===(e=R.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var N=l.useMemo((function(){return s.every((function(e){return e.width}))}),[s]),M=s[s.length-1],P={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},O=(0,l.useMemo)((function(){return L?[].concat((0,le.Z)(r),[P]):r}),[L,r]),B=(0,l.useMemo)((function(){return L?[].concat((0,le.Z)(s),[P]):s}),[L,s]),Z=(0,l.useMemo)((function(){var e=u.right,t=u.left;return(0,w.Z)((0,w.Z)({},u),{},{left:"rtl"===c?[].concat((0,le.Z)(t.map((function(e){return e+L}))),[0]):t,right:"rtl"===c?e:[].concat((0,le.Z)(e.map((function(e){return e+L}))),[0]),isSticky:T})}),[L,u,T]),j=function(e,t){return(0,l.useMemo)((function(){for(var n=[],i=0;i<t;i+=1){var r=e[i];if(void 0===r)return null;n[i]=r}return n}),[e.join("_"),t])}(a,o);return l.createElement("div",{style:(0,w.Z)({overflow:"hidden"},T?{top:p,bottom:g}:{}),ref:I,className:S()(n,(0,x.Z)({},m,!!m))},l.createElement(D,{style:{tableLayout:"fixed",visibility:i||j?null:"hidden"}},(!i||!y||N)&&l.createElement(oe,{colWidths:j?[].concat((0,le.Z)(j),[L]):[],columCount:o+1,columns:B}),_((0,w.Z)((0,w.Z)({},E),{},{stickyOffsets:Z,columns:O,flattenColumns:B}))))}));var de=l.memo(ce);var he=function(e){var t,n=e.cells,i=e.stickyOffsets,r=e.flattenColumns,s=e.rowComponent,a=e.cellComponent,o=e.onHeaderRow,u=e.index,c=d(b,["prefixCls","direction"]),f=c.prefixCls,p=c.direction;o&&(t=o(n.map((function(e){return e.column})),u));var g=D(n.map((function(e){return e.column})));return l.createElement(s,t,n.map((function(e,t){var n,s=e.column,o=P(e.colStart,e.colEnd,r,i,p);return s&&s.onHeaderCell&&(n=e.column.onHeaderCell(s)),l.createElement(M,(0,h.Z)({},e,{scope:s.title?e.colSpan>1?"colgroup":"col":null,ellipsis:s.ellipsis,align:s.align,component:a,prefixCls:f,key:g[t]},o,{additionalProps:n,rowType:"header"}))})))};var fe=y((function(e){var t=e.stickyOffsets,n=e.columns,i=e.flattenColumns,r=e.onHeaderRow,s=d(b,["prefixCls","getComponent"]),a=s.prefixCls,o=s.getComponent,u=l.useMemo((function(){return function(e){var t=[];!function e(n,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];var s=i;return n.filter(Boolean).map((function(n){var i={key:n.key,className:n.className||"",children:n.title,column:n,colStart:s},a=1,o=n.children;return o&&o.length>0&&(a=e(o,s,r+1).reduce((function(e,t){return e+t}),0),i.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(i.rowSpan=n.rowSpan),i.colSpan=a,i.colEnd=i.colStart+a-1,t[r].push(i),s+=a,a}))}(e,0);for(var n=t.length,i=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},r=0;r<n;r+=1)i(r);return t}(n)}),[n]),c=o(["header","wrapper"],"thead"),h=o(["header","row"],"tr"),f=o(["header","cell"],"th");return l.createElement(c,{className:"".concat(a,"-thead")},u.map((function(e,n){return l.createElement(he,{key:n,flattenColumns:i,cells:e,stickyOffsets:t,rowComponent:h,cellComponent:f,onHeaderRow:r,index:n})})))})),pe=n(97347);var ge=(0,n(47273).Z)()?window:null;var me=function(e,t,n){return(0,l.useMemo)((function(){var i=t.length,r=function(n,i,r){for(var s=[],a=0,o=n;o!==i;o+=r)s.push(a),t[o].fixed&&(a+=e[o]||0);return s},s=r(0,i,1),a=r(i-1,-1,-1).reverse();return"rtl"===n?{left:a,right:s}:{left:s,right:a}}),[e,t,n])};var ve=function(e){var t=e.className,n=e.children;return l.createElement("div",{className:t},n)},ye=n(8224),_e=n(16089),be=n(76846);function Ee(e){var t=(0,be.bn)(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var we=function(e,t){var n,i,s,a,o,u,c,h,f=e.scrollBodyRef,p=e.onScroll,g=e.offsetScroll,m=e.container,v=e.direction,y=d(b,"prefixCls"),_=(null===(n=f.current)||void 0===n?void 0:n.scrollWidth)||0,E=(null===(i=f.current)||void 0===i?void 0:i.clientWidth)||0,k=_&&E*(E/_),C=l.useRef(),A=(s={scrollLeft:0,isHiddenScrollBar:!0},a=(0,l.useRef)(s),o=(0,l.useState)({}),u=(0,r.Z)(o,2)[1],c=(0,l.useRef)(null),h=(0,l.useRef)([]),(0,l.useEffect)((function(){return function(){c.current=null}}),[]),[a.current,function(e){h.current.push(e);var t=Promise.resolve();c.current=t,t.then((function(){if(c.current===t){var e=h.current,n=a.current;h.current=[],e.forEach((function(e){a.current=e(a.current)})),c.current=null,n!==a.current&&u({})}}))}]),T=(0,r.Z)(A,2),D=T[0],L=T[1],R=l.useRef({delta:0,x:0}),I=l.useState(!1),N=(0,r.Z)(I,2),M=N[0],P=N[1],O=l.useRef(null);l.useEffect((function(){return function(){_e.Z.cancel(O.current)}}),[]);var F=function(){P(!1)},B=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(M&&0!==n){var i=R.current.x+e.pageX-R.current.x-R.current.delta,r="rtl"===v;i=Math.max(r?k-E:0,Math.min(r?0:E-k,i)),(!r||Math.abs(i)+Math.abs(k)<E)&&(p({scrollLeft:i/E*(_+2)}),R.current.x=e.pageX)}else M&&P(!1)},Z=function(){_e.Z.cancel(O.current),O.current=(0,_e.Z)((function(){if(f.current){var e=Ee(f.current).top,t=e+f.current.offsetHeight,n=m===window?document.documentElement.scrollTop+window.innerHeight:Ee(m).top+m.clientHeight;t-(0,H.Z)()<=n||e>=n-g?L((function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!0})})):L((function(e){return(0,w.Z)((0,w.Z)({},e),{},{isHiddenScrollBar:!1})}))}}))},j=function(e){L((function(t){return(0,w.Z)((0,w.Z)({},t),{},{scrollLeft:e/_*E||0})}))};return l.useImperativeHandle(t,(function(){return{setScrollLeft:j,checkScrollBarVisible:Z}})),l.useEffect((function(){var e=(0,ye.Z)(document.body,"mouseup",F,!1),t=(0,ye.Z)(document.body,"mousemove",B,!1);return Z(),function(){e.remove(),t.remove()}}),[k,M]),l.useEffect((function(){if(f.current){for(var e=[],t=(0,be.bn)(f.current);t;)e.push(t),t=t.parentElement;return e.forEach((function(e){return e.addEventListener("scroll",Z,!1)})),window.addEventListener("resize",Z,!1),window.addEventListener("scroll",Z,!1),m.addEventListener("scroll",Z,!1),function(){e.forEach((function(e){return e.removeEventListener("scroll",Z)})),window.removeEventListener("resize",Z),window.removeEventListener("scroll",Z),m.removeEventListener("scroll",Z)}}}),[m]),l.useEffect((function(){D.isHiddenScrollBar||L((function(e){var t=f.current;return t?(0,w.Z)((0,w.Z)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[D.isHiddenScrollBar]),_<=E||!k||D.isHiddenScrollBar?null:l.createElement("div",{style:{height:(0,H.Z)(),width:E,bottom:g},className:"".concat(y,"-sticky-scroll")},l.createElement("div",{onMouseDown:function(e){e.persist(),R.current.delta=e.pageX-D.scrollLeft,R.current.x=0,P(!0),e.preventDefault()},ref:C,className:S()("".concat(y,"-sticky-scroll-bar"),(0,x.Z)({},"".concat(y,"-sticky-scroll-bar-active"),M)),style:{width:"".concat(k,"px"),transform:"translate3d(".concat(D.scrollLeft,"px, 0, 0)")}}))},xe=l.forwardRef(we);var ke=function(e){return null};var Se=function(e){return null},Ce="rc-table",Ae=[],Te={};function De(){return"No Data"}function Le(e,t){var n=(0,w.Z)({rowKey:"key",prefixCls:Ce,emptyText:De},e),u=n.prefixCls,c=n.className,d=n.rowClassName,f=n.style,p=n.data,g=n.rowKey,m=n.scroll,v=n.tableLayout,y=n.direction,_=n.title,k=n.footer,T=n.summary,R=n.caption,I=n.id,N=n.showHeader,M=n.components,O=n.emptyText,F=n.onRow,B=n.onHeaderRow,Z=n.onScroll,K=n.internalHooks,W=n.transformColumns,Y=n.internalRefs,q=n.tailor,X=n.getContainerWidth,J=n.sticky,$=n.rowHoverable,ee=void 0===$||$,te=p||Ae,ne=!!te.length,ie=K===i.R;var ae=l.useCallback((function(e,t){return(0,A.Z)(M,e)||t}),[M]),ue=l.useMemo((function(){return"function"==typeof g?g:function(e){return e&&e[g]}}),[g]),ce=ae(["body"]),he=function(){var e=l.useState(-1),t=(0,r.Z)(e,2),n=t[0],i=t[1],s=l.useState(-1),a=(0,r.Z)(s,2),o=a[0],u=a[1];return[n,o,l.useCallback((function(e,t){i(e),u(t)}),[])]}(),ye=(0,r.Z)(he,3),_e=ye[0],Ee=ye[1],we=ye[2],ke=function(e,t,n){var s=(0,se.g)(e),a=s.expandIcon,o=s.expandedRowKeys,u=s.defaultExpandedRowKeys,c=s.defaultExpandAllRows,d=s.expandedRowRender,h=s.onExpand,f=s.onExpandedRowsChange,p=a||Q,g=s.childrenColumnName||"children",m=l.useMemo((function(){return d?"row":!!(e.expandable&&e.internalHooks===i.R&&e.expandable.__PARENT_RENDER_ICON__||t.some((function(e){return e&&"object"===(0,E.Z)(e)&&e[g]})))&&"nest"}),[!!d,t]),v=l.useState((function(){return u||(c?function(e,t,n){var i=[];return function e(r){(r||[]).forEach((function(r,s){i.push(t(r,s)),e(r[n])}))}(e),i}(t,n,g):[])})),y=(0,r.Z)(v,2),_=y[0],b=y[1],w=l.useMemo((function(){return new Set(o||_||[])}),[o,_]),x=l.useCallback((function(e){var i,r=n(e,t.indexOf(e)),s=w.has(r);s?(w.delete(r),i=(0,le.Z)(w)):i=[].concat((0,le.Z)(w),[r]),b(i),h&&h(!s,e),f&&f(i)}),[n,w,t,h,f]);return[s,m,w,p,g,x]}(n,te,ue),Se=(0,r.Z)(ke,6),Le=Se[0],Re=Se[1],Ie=Se[2],Ne=Se[3],Me=Se[4],Pe=Se[5],Oe=null==m?void 0:m.x,Fe=l.useState(0),Be=(0,r.Z)(Fe,2),Ze=Be[0],je=Be[1],Ue=(0,pe.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},n),Le),{},{expandable:!!Le.expandedRowRender,columnTitle:Le.columnTitle,expandedKeys:Ie,getRowKey:ue,onTriggerExpand:Pe,expandIcon:Ne,expandIconColumnIndex:Le.expandIconColumnIndex,direction:y,scrollWidth:ie&&q&&"number"==typeof Oe?Oe:null,clientWidth:Ze}),ie?W:null),Ke=(0,r.Z)(Ue,4),ze=Ke[0],Ge=Ke[1],He=Ke[2],Ve=Ke[3],We=null!=He?He:Oe,Ye=l.useMemo((function(){return{columns:ze,flattenColumns:Ge}}),[ze,Ge]),qe=l.useRef(),Xe=l.useRef(),Qe=l.useRef(),Je=l.useRef();l.useImperativeHandle(t,(function(){return{nativeElement:qe.current,scrollTo:function(e){var t,n;if(Qe.current instanceof HTMLElement){var i=e.index,r=e.top,s=e.key;if("number"!=typeof(n=r)||Number.isNaN(n)){var a,o=null!=s?s:ue(te[i]);null===(a=Qe.current.querySelector('[data-row-key="'.concat(o,'"]')))||void 0===a||a.scrollIntoView()}else{var l;null===(l=Qe.current)||void 0===l||l.scrollTo({top:r})}}else null!==(t=Qe.current)&&void 0!==t&&t.scrollTo&&Qe.current.scrollTo(e)}}}));var $e,et,tt,nt=l.useRef(),it=l.useState(!1),rt=(0,r.Z)(it,2),st=rt[0],at=rt[1],ot=l.useState(!1),lt=(0,r.Z)(ot,2),ut=lt[0],ct=lt[1],dt=l.useState(new Map),ht=(0,r.Z)(dt,2),ft=ht[0],pt=ht[1],gt=D(Ge).map((function(e){return ft.get(e)})),mt=l.useMemo((function(){return gt}),[gt.join("_")]),vt=me(mt,Ge,y),yt=m&&L(m.y),_t=m&&L(We)||Boolean(Le.fixed),bt=_t&&Ge.some((function(e){return e.fixed})),Et=l.useRef(),wt=function(e,t){var n="object"===(0,E.Z)(e)?e:{},i=n.offsetHeader,r=void 0===i?0:i,s=n.offsetSummary,a=void 0===s?0:s,o=n.offsetScroll,u=void 0===o?0:o,c=n.getContainer,d=(void 0===c?function(){return ge}:c)()||ge,h=!!e;return l.useMemo((function(){return{isSticky:h,stickyClassName:h?"".concat(t,"-sticky-holder"):"",offsetHeader:r,offsetSummary:a,offsetScroll:u,container:d}}),[h,u,r,a,t,d])}(J,u),xt=wt.isSticky,kt=wt.offsetHeader,St=wt.offsetSummary,Ct=wt.offsetScroll,At=wt.stickyClassName,Tt=wt.container,Dt=l.useMemo((function(){return null==T?void 0:T(te)}),[T,te]),Lt=(yt||xt)&&l.isValidElement(Dt)&&Dt.type===j&&Dt.props.fixed;yt&&(et={overflowY:ne?"scroll":"auto",maxHeight:m.y}),_t&&($e={overflowX:"auto"},yt||(et={overflowY:"hidden"}),tt={width:!0===We?"auto":We,minWidth:"100%"});var Rt=l.useCallback((function(e,t){pt((function(n){if(n.get(e)!==t){var i=new Map(n);return i.set(e,t),i}return n}))}),[]),It=function(e){var t=(0,l.useRef)(e||null),n=(0,l.useRef)();function i(){window.clearTimeout(n.current)}return(0,l.useEffect)((function(){return i}),[]),[function(e){t.current=e,i(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),Nt=(0,r.Z)(It,2),Mt=Nt[0],Pt=Nt[1];function Ot(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var Ft=(0,s.Z)((function(e){var t,n=e.currentTarget,i=e.scrollLeft,r="rtl"===y,s="number"==typeof i?i:n.scrollLeft,a=n||Te;Pt()&&Pt()!==a||(Mt(a),Ot(s,Xe.current),Ot(s,Qe.current),Ot(s,nt.current),Ot(s,null===(t=Et.current)||void 0===t?void 0:t.setScrollLeft));var o=n||Xe.current;if(o){var l=ie&&q&&"number"==typeof We?We:o.scrollWidth,u=o.clientWidth;if(l===u)return at(!1),void ct(!1);r?(at(-s<l-u),ct(-s>0)):(at(s>0),ct(s<l-u))}})),Bt=(0,s.Z)((function(e){Ft(e),null==Z||Z(e)})),Zt=function(){var e;_t&&Qe.current?Ft({currentTarget:(0,be.bn)(Qe.current),scrollLeft:null===(e=Qe.current)||void 0===e?void 0:e.scrollLeft}):(at(!1),ct(!1))},jt=l.useRef(!1);l.useEffect((function(){jt.current&&Zt()}),[_t,p,ze.length]),l.useEffect((function(){jt.current=!0}),[]);var Ut=l.useState(0),Kt=(0,r.Z)(Ut,2),zt=Kt[0],Gt=Kt[1],Ht=l.useState(!0),Vt=(0,r.Z)(Ht,2),Wt=Vt[0],Yt=Vt[1];(0,a.Z)((function(){q&&ie||(Qe.current instanceof Element?Gt((0,H.o)(Qe.current).width):Gt((0,H.o)(Je.current).width)),Yt((0,G.G)("position","sticky"))}),[]),l.useEffect((function(){ie&&Y&&(Y.body.current=Qe.current)}));var qt,Xt=l.useCallback((function(e){return l.createElement(l.Fragment,null,l.createElement(fe,e),"top"===Lt&&l.createElement(U,e,Dt))}),[Lt,Dt]),Qt=l.useCallback((function(e){return l.createElement(U,e,Dt)}),[Dt]),Jt=ae(["table"],"table"),$t=l.useMemo((function(){return v||(bt?"max-content"===We?"auto":"fixed":yt||xt||Ge.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[yt,bt,Ge,v,xt]),en={colWidths:mt,columCount:Ge.length,stickyOffsets:vt,onHeaderRow:B,fixHeader:yt,scroll:m},tn=l.useMemo((function(){return ne?null:"function"==typeof O?O():O}),[ne,O]),nn=l.createElement(re,{data:te,measureColumnWidth:yt||_t||xt}),rn=l.createElement(oe,{colWidths:Ge.map((function(e){return e.width})),columns:Ge}),sn=null!=R?l.createElement("caption",{className:"".concat(u,"-caption")},R):void 0,an=(0,V.Z)(n,{data:!0}),on=(0,V.Z)(n,{aria:!0});if(yt||xt){var ln;"function"==typeof ce?(ln=ce(te,{scrollbarSize:zt,ref:Qe,onScroll:Ft}),en.colWidths=Ge.map((function(e,t){var n=e.width,i=t===Ge.length-1?n-zt:n;return"number"!=typeof i||Number.isNaN(i)?0:i}))):ln=l.createElement("div",{style:(0,w.Z)((0,w.Z)({},$e),et),onScroll:Bt,ref:Qe,className:S()("".concat(u,"-body"))},l.createElement(Jt,(0,h.Z)({style:(0,w.Z)((0,w.Z)({},tt),{},{tableLayout:$t})},on),sn,rn,nn,!Lt&&Dt&&l.createElement(U,{stickyOffsets:vt,flattenColumns:Ge},Dt)));var un=(0,w.Z)((0,w.Z)((0,w.Z)({noData:!te.length,maxContentScroll:_t&&"max-content"===We},en),Ye),{},{direction:y,stickyClassName:At,onScroll:Ft});qt=l.createElement(l.Fragment,null,!1!==N&&l.createElement(de,(0,h.Z)({},un,{stickyTopOffset:kt,className:"".concat(u,"-header"),ref:Xe}),Xt),ln,Lt&&"top"!==Lt&&l.createElement(de,(0,h.Z)({},un,{stickyBottomOffset:St,className:"".concat(u,"-summary"),ref:nt}),Qt),xt&&Qe.current&&Qe.current instanceof Element&&l.createElement(xe,{ref:Et,offsetScroll:Ct,scrollBodyRef:Qe,onScroll:Ft,container:Tt,direction:y}))}else qt=l.createElement("div",{style:(0,w.Z)((0,w.Z)({},$e),et),className:S()("".concat(u,"-content")),onScroll:Ft,ref:Qe},l.createElement(Jt,(0,h.Z)({style:(0,w.Z)((0,w.Z)({},tt),{},{tableLayout:$t})},on),sn,rn,!1!==N&&l.createElement(fe,(0,h.Z)({},en,Ye)),nn,Dt&&l.createElement(U,{stickyOffsets:vt,flattenColumns:Ge},Dt)));var cn=l.createElement("div",(0,h.Z)({className:S()(u,c,(0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)({},"".concat(u,"-rtl"),"rtl"===y),"".concat(u,"-ping-left"),st),"".concat(u,"-ping-right"),ut),"".concat(u,"-layout-fixed"),"fixed"===v),"".concat(u,"-fixed-header"),yt),"".concat(u,"-fixed-column"),bt),"".concat(u,"-fixed-column-gapped"),bt&&Ve),"".concat(u,"-scroll-horizontal"),_t),"".concat(u,"-has-fix-left"),Ge[0]&&Ge[0].fixed),"".concat(u,"-has-fix-right"),Ge[Ge.length-1]&&"right"===Ge[Ge.length-1].fixed)),style:f,id:I,ref:qe},an),_&&l.createElement(ve,{className:"".concat(u,"-title")},_(te)),l.createElement("div",{ref:Je,className:"".concat(u,"-container")},qt),k&&l.createElement(ve,{className:"".concat(u,"-footer")},k(te)));_t&&(cn=l.createElement(z.Z,{onResize:function(e){var t,n=e.width;null===(t=Et.current)||void 0===t||t.checkScrollBarVisible();var i=qe.current?qe.current.offsetWidth:n;ie&&X&&qe.current&&(i=X(qe.current,i)||i),i!==Ze&&(Zt(),je(i))}},cn));var dn=function(e,t,n){var i=e.map((function(i,r){return P(r,r,e,t,n)}));return(0,C.Z)((function(){return i}),[i],(function(e,t){return!(0,o.Z)(e,t)}))}(Ge,vt,y),hn=l.useMemo((function(){return{scrollX:We,prefixCls:u,getComponent:ae,scrollbarSize:zt,direction:y,fixedInfoList:dn,isSticky:xt,supportSticky:Wt,componentWidth:Ze,fixHeader:yt,fixColumn:bt,horizonScroll:_t,tableLayout:$t,rowClassName:d,expandedRowClassName:Le.expandedRowClassName,expandIcon:Ne,expandableType:Re,expandRowByClick:Le.expandRowByClick,expandedRowRender:Le.expandedRowRender,onTriggerExpand:Pe,expandIconColumnIndex:Le.expandIconColumnIndex,indentSize:Le.indentSize,allColumnsFixedLeft:Ge.every((function(e){return"left"===e.fixed})),emptyNode:tn,columns:ze,flattenColumns:Ge,onColumnResize:Rt,hoverStartRow:_e,hoverEndRow:Ee,onHover:we,rowExpandable:Le.rowExpandable,onRow:F,getRowKey:ue,expandedKeys:Ie,childrenColumnName:Me,rowHoverable:ee}}),[We,u,ae,zt,y,dn,xt,Wt,Ze,yt,bt,_t,$t,d,Le.expandedRowClassName,Ne,Re,Le.expandRowByClick,Le.expandedRowRender,Pe,Le.expandIconColumnIndex,Le.indentSize,tn,ze,Ge,Rt,_e,Ee,we,Le.rowExpandable,F,ue,Ie,Me,ee]);return l.createElement(b.Provider,{value:hn},cn)}var Re=l.forwardRef(Le);function Ie(e){return v(Re,e)}var Ne=Ie();Ne.EXPAND_COLUMN=i.w,Ne.INTERNAL_HOOKS=i.R,Ne.Column=ke,Ne.ColumnGroup=Se,Ne.Summary=K;var Me=Ne,Pe=n(48911),Oe=c(null),Fe=c(null);var Be=function(e){var t=e.rowInfo,n=e.column,i=e.colIndex,r=e.indent,s=e.index,a=e.component,o=e.renderIndex,u=e.record,c=e.style,f=e.className,p=e.inverse,g=e.getHeight,m=n.render,v=n.dataIndex,y=n.className,_=n.width,b=d(Fe,["columnsOffset"]).columnsOffset,E=$(t,n,i,r,s),x=E.key,k=E.fixedInfo,C=E.appendCellNode,A=E.additionalCellProps,T=A.style,D=A.colSpan,L=void 0===D?1:D,R=A.rowSpan,I=void 0===R?1:R,N=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(i-1,L,b),P=L>1?_-N:0,O=(0,w.Z)((0,w.Z)((0,w.Z)({},T),c),{},{flex:"0 0 ".concat(N,"px"),width:"".concat(N,"px"),marginRight:P,pointerEvents:"auto"}),F=l.useMemo((function(){return p?I<=1:0===L||0===I||I>1}),[I,L,p]);F?O.visibility="hidden":p&&(O.height=null==g?void 0:g(I));var B=F?function(){return null}:m,Z={};return 0!==I&&0!==L||(Z.rowSpan=1,Z.colSpan=1),l.createElement(M,(0,h.Z)({className:S()(y,f),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:x,record:u,index:s,renderIndex:o,dataIndex:v,render:B,shouldCellUpdate:n.shouldCellUpdate},k,{appendNode:C,additionalProps:(0,w.Z)((0,w.Z)({},A),{},{style:O},Z)}))},Ze=["data","index","className","rowKey","style","extra","getHeight"];var je=y(l.forwardRef((function(e,t){var n,i=e.data,r=e.index,s=e.className,a=e.rowKey,o=e.style,u=e.extra,c=e.getHeight,f=(0,F.Z)(e,Ze),p=i.record,g=i.indent,m=i.index,v=d(b,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),y=v.scrollX,_=v.flattenColumns,E=v.prefixCls,k=v.fixColumn,C=v.componentWidth,A=d(Oe,["getComponent"]).getComponent,T=q(p,a,r,g),D=A(["body","row"],"div"),L=A(["body","cell"],"div"),R=T.rowSupportExpand,I=T.expanded,N=T.rowProps,P=T.expandedRowRender,O=T.expandedRowClassName;if(R&&I){var B=P(p,r,g+1,I),Z=J(O,p,r,g),j={};k&&(j={style:(0,x.Z)({},"--virtual-width","".concat(C,"px"))});var U="".concat(E,"-expanded-row-cell");n=l.createElement(D,{className:S()("".concat(E,"-expanded-row"),"".concat(E,"-expanded-row-level-").concat(g+1),Z)},l.createElement(M,{component:L,prefixCls:E,className:S()(U,(0,x.Z)({},"".concat(U,"-fixed"),k)),additionalProps:j},B))}var K=(0,w.Z)((0,w.Z)({},o),{},{width:y});u&&(K.position="absolute",K.pointerEvents="none");var z=l.createElement(D,(0,h.Z)({},N,f,{"data-row-key":a,ref:R?null:t,className:S()(s,"".concat(E,"-row"),null==N?void 0:N.className,(0,x.Z)({},"".concat(E,"-row-extra"),u)),style:(0,w.Z)((0,w.Z)({},K),null==N?void 0:N.style)}),_.map((function(e,t){return l.createElement(Be,{key:t,component:L,rowInfo:T,column:e,colIndex:t,indent:g,index:r,renderIndex:m,record:p,inverse:u,getHeight:c})})));return R?l.createElement("div",{ref:t},z,n):z})));var Ue=y(l.forwardRef((function(e,t){var n=e.data,i=e.onScroll,s=d(b,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=s.flattenColumns,o=s.onColumnResize,u=s.getRowKey,c=s.expandedKeys,h=s.prefixCls,f=s.childrenColumnName,p=s.scrollX,g=s.direction,m=d(Oe),v=m.sticky,y=m.scrollY,_=m.listItemHeight,w=m.getComponent,x=m.onScroll,k=l.useRef(),S=Y(n,f,c,u),C=l.useMemo((function(){var e=0;return a.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[a]),A=l.useMemo((function(){return C.map((function(e){return e[2]}))}),[C]);l.useEffect((function(){C.forEach((function(e){var t=(0,r.Z)(e,2),n=t[0],i=t[1];o(n,i)}))}),[C]),l.useImperativeHandle(t,(function(){var e,t={scrollTo:function(e){var t;null===(t=k.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=k.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=k.current)||void 0===t||t.scrollTo({left:e})}}),t}));var T=function(e,t){var n,i=null===(n=S[t])||void 0===n?void 0:n.record,r=e.onCell;if(r){var s,a=r(i,t);return null!==(s=null==a?void 0:a.rowSpan)&&void 0!==s?s:1}return 1},D=l.useMemo((function(){return{columnsOffset:A}}),[A]),L="".concat(h,"-tbody"),R=w(["body","wrapper"]),I={};return v&&(I.position="sticky",I.bottom=0,"object"===(0,E.Z)(v)&&v.offsetScroll&&(I.bottom=v.offsetScroll)),l.createElement(Fe.Provider,{value:D},l.createElement(Pe.Z,{fullHeight:!1,ref:k,prefixCls:"".concat(L,"-virtual"),styles:{horizontalScrollBar:I},className:L,height:y,itemHeight:_||24,data:S,itemKey:function(e){return u(e.record)},component:R,scrollWidth:p,direction:g,onVirtualScroll:function(e){var t,n=e.x;i({currentTarget:null===(t=k.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:x,extraRender:function(e){var t=e.start,n=e.end,i=e.getSize,r=e.offsetY;if(n<0)return null;for(var s=a.filter((function(e){return 0===T(e,t)})),o=t,c=function(e){if(!(s=s.filter((function(t){return 0===T(t,e)}))).length)return o=e,1},d=t;d>=0&&!c(d);d-=1);for(var h=a.filter((function(e){return 1!==T(e,n)})),f=n,p=function(e){if(!(h=h.filter((function(t){return 1!==T(t,e)}))).length)return f=Math.max(e-1,n),1},g=n;g<S.length&&!p(g);g+=1);for(var m=[],v=function(e){if(!S[e])return 1;a.some((function(t){return T(t,e)>1}))&&m.push(e)},y=o;y<=f;y+=1)v(y);return m.map((function(e){var t=S[e],n=u(t.record,e),s=i(n);return l.createElement(je,{key:e,data:t,rowKey:n,index:e,style:{top:-r+s.top},extra:!0,getHeight:function(t){var r=e+t-1,s=u(S[r].record,r),a=i(n,s);return a.bottom-a.top}})}))}},(function(e,t,n){var i=u(e.record,t);return l.createElement(je,{data:e,rowKey:i,index:t,style:n.style})})))}))),Ke=function(e,t){var n=t.ref,i=t.onScroll;return l.createElement(Ue,{ref:n,data:e,onScroll:i})};function ze(e,t){var n=e.data,r=e.columns,s=e.scroll,a=e.sticky,o=e.prefixCls,u=void 0===o?Ce:o,c=e.className,d=e.listItemHeight,f=e.components,p=e.onScroll,g=s||{},m=g.x,v=g.y;"number"!=typeof m&&(m=1),"number"!=typeof v&&(v=500);var y=(0,I.zX)((function(e,t){return(0,A.Z)(f,e)||t})),_=(0,I.zX)(p),b=l.useMemo((function(){return{sticky:a,scrollY:v,listItemHeight:d,getComponent:y,onScroll:_}}),[a,v,d,y,_]);return l.createElement(Oe.Provider,{value:b},l.createElement(Me,(0,h.Z)({},e,{className:S()(c,"".concat(u,"-virtual")),scroll:(0,w.Z)((0,w.Z)({},s),{},{x:m}),components:(0,w.Z)((0,w.Z)({},f),{},{body:null!=n&&n.length?Ke:void 0}),columns:r,internalHooks:i.R,tailor:!0,ref:t})))}var Ge=l.forwardRef(ze);function He(e){return v(Ge,e)}He()},54451:function(e,t,n){"use strict";n.d(t,{g:function(){return o},v:function(){return a}});var i=n(33885),r=n(75931),s=(n(48736),["expandable"]),a="RC_TABLE_INTERNAL_COL_DEFINE";function o(e){var t,n=e.expandable,a=(0,r.Z)(e,s);return!1===(t="expandable"in e?(0,i.Z)((0,i.Z)({},a),n):a).showExpandColumn&&(t.expandIconColumnIndex=-1),t}},29443:function(e,t,n){"use strict";n.d(t,{Z:function(){return J}});var i=n(54476),r=n(20068),s=n(33885),a=n(42978),o=n(76190),l=n(75931),u=n(92310),c=n.n(u),d=n(18929),h=n(49658),f=n(59301),p=(0,f.createContext)(null),g=n(94480),m=n(29301),v=n(6089),y=n(8654),_=n(16089),b=function(e){var t=e.activeTabOffset,n=e.horizontal,i=e.rtl,r=e.indicator,s=void 0===r?{}:r,o=s.size,l=s.align,u=void 0===l?"center":l,c=(0,f.useState)(),d=(0,a.Z)(c,2),h=d[0],p=d[1],g=(0,f.useRef)(),m=f.useCallback((function(e){return"function"==typeof o?o(e):"number"==typeof o?o:e}),[o]);function v(){_.Z.cancel(g.current)}return(0,f.useEffect)((function(){var e={};if(t)if(n){e.width=m(t.width);var r=i?"right":"left";"start"===u&&(e[r]=t[r]),"center"===u&&(e[r]=t[r]+t.width/2,e.transform=i?"translateX(50%)":"translateX(-50%)"),"end"===u&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===u&&(e.top=t.top),"center"===u&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===u&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return v(),g.current=(0,_.Z)((function(){p(e)})),v}),[t,n,i,u,m]),{style:h}},E={width:0,height:0,left:0,top:0};function w(e,t){var n=f.useRef(e),i=f.useState({}),r=(0,a.Z)(i,2)[1];return[n.current,function(e){var i="function"==typeof e?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}]}var x=Math.pow(.995,20);var k=n(34280);function S(e){var t=(0,f.useState)(0),n=(0,a.Z)(t,2),i=n[0],r=n[1],s=(0,f.useRef)(0),o=(0,f.useRef)();return o.current=e,(0,k.o)((function(){var e;null===(e=o.current)||void 0===e||e.call(o)}),[i]),function(){s.current===i&&(s.current+=1,r(s.current))}}var C={width:0,height:0,left:0,top:0,right:0};function A(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function T(e){return String(e).replace(/"/g,"TABS_DQ")}function D(e,t,n,i){return!(!n||i||!1===e||void 0===e&&(!1===t||null===t))}var L=f.forwardRef((function(e,t){var n=e.prefixCls,i=e.editable,r=e.locale,s=e.style;return i&&!1!==i.showAdd?f.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:s,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){i.onEdit("add",{event:e})}},i.addIcon||"+"):null}));var R=f.forwardRef((function(e,t){var n,i=e.position,r=e.prefixCls,s=e.extra;if(!s)return null;var a={};return"object"!==(0,o.Z)(s)||f.isValidElement(s)?a.right=s:a=s,"right"===i&&(n=a.right),"left"===i&&(n=a.left),n?f.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},n):null})),I=n(96478),N=n(28321),M=n(10228),P=f.forwardRef((function(e,t){var n=e.prefixCls,s=e.id,o=e.tabs,l=e.locale,u=e.mobile,d=e.more,h=void 0===d?{}:d,p=e.style,g=e.className,m=e.editable,v=e.tabBarGutter,y=e.rtl,_=e.removeAriaLabel,b=e.onTabClick,E=e.getPopupContainer,w=e.popupClassName,x=(0,f.useState)(!1),k=(0,a.Z)(x,2),S=k[0],C=k[1],A=(0,f.useState)(null),T=(0,a.Z)(A,2),R=T[0],P=T[1],O=h.icon,F=void 0===O?"More":O,B="".concat(s,"-more-popup"),Z="".concat(n,"-dropdown"),j=null!==R?"".concat(B,"-").concat(R):null,U=null==l?void 0:l.dropdownAriaLabel;var K=f.createElement(N.ZP,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),C(!1)},prefixCls:"".concat(Z,"-menu"),id:B,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[R],"aria-label":void 0!==U?U:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,r=e.key,a=e.label,o=D(t,i,m,n);return f.createElement(N.sN,{key:r,id:"".concat(B,"-").concat(r),role:"option","aria-controls":s&&"".concat(s,"-panel-").concat(r),disabled:n},f.createElement("span",null,a),o&&f.createElement("button",{type:"button","aria-label":_||"remove",tabIndex:0,className:"".concat(Z,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,r)}},i||m.removeIcon||"×"))})));function z(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===R}))||0,i=t.length,r=0;r<i;r+=1){var s=t[n=(n+e+i)%i];if(!s.disabled)return void P(s.key)}}(0,f.useEffect)((function(){var e=document.getElementById(j);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[R]),(0,f.useEffect)((function(){S||P(null)}),[S]);var G=(0,r.Z)({},y?"marginRight":"marginLeft",v);o.length||(G.visibility="hidden",G.order=1);var H=c()((0,r.Z)({},"".concat(Z,"-rtl"),y)),V=u?null:f.createElement(I.Z,(0,i.Z)({prefixCls:Z,overlay:K,visible:!!o.length&&S,onVisibleChange:C,overlayClassName:c()(H,w),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:E},h),f.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:G,"aria-haspopup":"listbox","aria-controls":B,id:"".concat(s,"-more"),"aria-expanded":S,onKeyDown:function(e){var t=e.which;if(S)switch(t){case M.Z.UP:z(-1),e.preventDefault();break;case M.Z.DOWN:z(1),e.preventDefault();break;case M.Z.ESC:C(!1);break;case M.Z.SPACE:case M.Z.ENTER:null!==R&&b(R,e)}else[M.Z.DOWN,M.Z.SPACE,M.Z.ENTER].includes(t)&&(C(!0),e.preventDefault())}},F));return f.createElement("div",{className:c()("".concat(n,"-nav-operations"),g),style:p,ref:t},V,f.createElement(L,{prefixCls:n,locale:l,editable:m}))})),O=f.memo(P,(function(e,t){return t.tabMoving})),F=function(e){var t=e.prefixCls,n=e.id,i=e.active,s=e.focus,a=e.tab,o=a.key,l=a.label,u=a.disabled,d=a.closeIcon,h=a.icon,p=e.closable,g=e.renderWrapper,m=e.removeAriaLabel,v=e.editable,y=e.onClick,_=e.onFocus,b=e.onBlur,E=e.onKeyDown,w=e.onMouseDown,x=e.onMouseUp,k=e.style,S=e.tabCount,C=e.currentPosition,A="".concat(t,"-tab"),L=D(p,d,v,u);function R(e){u||y(e)}var I=f.useMemo((function(){return h&&"string"==typeof l?f.createElement("span",null,l):l}),[l,h]),N=f.useRef(null);f.useEffect((function(){s&&N.current&&N.current.focus()}),[s]);var M=f.createElement("div",{key:o,"data-node-key":T(o),className:c()(A,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(A,"-with-remove"),L),"".concat(A,"-active"),i),"".concat(A,"-disabled"),u),"".concat(A,"-focus"),s)),style:k,onClick:R},f.createElement("div",{ref:N,role:"tab","aria-selected":i,id:n&&"".concat(n,"-tab-").concat(o),className:"".concat(A,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(o),"aria-disabled":u,tabIndex:u?null:i?0:-1,onClick:function(e){e.stopPropagation(),R(e)},onKeyDown:E,onMouseDown:w,onMouseUp:x,onFocus:_,onBlur:b},s&&f.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(C," of ").concat(S)),h&&f.createElement("span",{className:"".concat(A,"-icon")},h),l&&I),L&&f.createElement("button",{type:"button",role:"tab","aria-label":m||"remove",tabIndex:i?0:-1,className:"".concat(A,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),v.onEdit("remove",{key:o,event:t})}},d||v.removeIcon||"×"));return g?g(M):M},B=function(e){var t=e.current||{},n=t.offsetWidth,i=void 0===n?0:n,r=t.offsetHeight,s=void 0===r?0:r;if(e.current){var a=e.current.getBoundingClientRect(),o=a.width,l=a.height;if(Math.abs(o-i)<1)return[o,l]}return[i,s]},Z=function(e,t){return e[t?0:1]},j=f.forwardRef((function(e,t){var n=e.className,o=e.style,l=e.id,u=e.animated,d=e.activeKey,h=e.rtl,_=e.extra,k=e.editable,I=e.locale,N=e.tabPosition,M=e.tabBarGutter,P=e.children,j=e.onTabClick,U=e.onTabScroll,K=e.indicator,z=f.useContext(p),G=z.prefixCls,H=z.tabs,V=(0,f.useRef)(null),W=(0,f.useRef)(null),Y=(0,f.useRef)(null),q=(0,f.useRef)(null),X=(0,f.useRef)(null),Q=(0,f.useRef)(null),J=(0,f.useRef)(null),$="top"===N||"bottom"===N,ee=w(0,(function(e,t){$&&U&&U({direction:e>t?"left":"right"})})),te=(0,a.Z)(ee,2),ne=te[0],ie=te[1],re=w(0,(function(e,t){!$&&U&&U({direction:e>t?"top":"bottom"})})),se=(0,a.Z)(re,2),ae=se[0],oe=se[1],le=(0,f.useState)([0,0]),ue=(0,a.Z)(le,2),ce=ue[0],de=ue[1],he=(0,f.useState)([0,0]),fe=(0,a.Z)(he,2),pe=fe[0],ge=fe[1],me=(0,f.useState)([0,0]),ve=(0,a.Z)(me,2),ye=ve[0],_e=ve[1],be=(0,f.useState)([0,0]),Ee=(0,a.Z)(be,2),we=Ee[0],xe=Ee[1],ke=function(e){var t=(0,f.useRef)([]),n=(0,f.useState)({}),i=(0,a.Z)(n,2)[1],r=(0,f.useRef)("function"==typeof e?e():e),s=S((function(){var e=r.current;t.current.forEach((function(t){e=t(e)})),t.current=[],r.current=e,i({})}));return[r.current,function(e){t.current.push(e),s()}]}(new Map),Se=(0,a.Z)(ke,2),Ce=Se[0],Ae=Se[1],Te=function(e,t,n){return(0,f.useMemo)((function(){for(var n,i=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||E,a=r.left+r.width,o=0;o<e.length;o+=1){var l,u=e[o].key,c=t.get(u);c||(c=t.get(null===(l=e[o-1])||void 0===l?void 0:l.key)||E);var d=i.get(u)||(0,s.Z)({},c);d.right=a-d.left-d.width,i.set(u,d)}return i}),[e.map((function(e){return e.key})).join("_"),t,n])}(H,Ce,pe[0]),De=Z(ce,$),Le=Z(pe,$),Re=Z(ye,$),Ie=Z(we,$),Ne=Math.floor(De)<Math.floor(Le+Re),Me=Ne?De-Ie:De-Re,Pe="".concat(G,"-nav-operations-hidden"),Oe=0,Fe=0;function Be(e){return e<Oe?Oe:e>Fe?Fe:e}$&&h?(Oe=0,Fe=Math.max(0,Le-Me)):(Oe=Math.min(0,Me-Le),Fe=0);var Ze=(0,f.useRef)(null),je=(0,f.useState)(),Ue=(0,a.Z)(je,2),Ke=Ue[0],ze=Ue[1];function Ge(){ze(Date.now())}function He(){Ze.current&&clearTimeout(Ze.current)}!function(e,t){var n=(0,f.useState)(),i=(0,a.Z)(n,2),r=i[0],s=i[1],o=(0,f.useState)(0),l=(0,a.Z)(o,2),u=l[0],c=l[1],d=(0,f.useState)(0),h=(0,a.Z)(d,2),p=h[0],g=h[1],m=(0,f.useState)(),v=(0,a.Z)(m,2),y=v[0],_=v[1],b=(0,f.useRef)(),E=(0,f.useRef)(),w=(0,f.useRef)(null);w.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,i=t.screenY;s({x:n,y:i}),window.clearInterval(b.current)},onTouchMove:function(e){if(r){var n=e.touches[0],i=n.screenX,a=n.screenY;s({x:i,y:a});var o=i-r.x,l=a-r.y;t(o,l);var d=Date.now();c(d),g(d-u),_({x:o,y:l})}},onTouchEnd:function(){if(r&&(s(null),_(null),y)){var e=y.x/p,n=y.y/p,i=Math.abs(e),a=Math.abs(n);if(Math.max(i,a)<.1)return;var o=e,l=n;b.current=window.setInterval((function(){Math.abs(o)<.01&&Math.abs(l)<.01?window.clearInterval(b.current):t(20*(o*=x),20*(l*=x))}),20)}},onWheel:function(e){var n=e.deltaX,i=e.deltaY,r=0,s=Math.abs(n),a=Math.abs(i);s===a?r="x"===E.current?n:i:s>a?(r=n,E.current="x"):(r=i,E.current="y"),t(-r,-r)&&e.preventDefault()}},f.useEffect((function(){function t(e){w.current.onTouchMove(e)}function n(e){w.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",(function(e){w.current.onTouchStart(e)}),{passive:!0}),e.current.addEventListener("wheel",(function(e){w.current.onWheel(e)}),{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(q,(function(e,t){function n(e,t){e((function(e){return Be(e+t)}))}return!!Ne&&($?n(ie,e):n(oe,t),He(),Ge(),!0)})),(0,f.useEffect)((function(){return He(),Ke&&(Ze.current=setTimeout((function(){ze(0)}),100)),He}),[Ke]);var Ve=function(e,t,n,i,r,s,a){var o,l,u,c=a.tabs,d=a.tabPosition,h=a.rtl;return["top","bottom"].includes(d)?(o="width",l=h?"right":"left",u=Math.abs(n)):(o="height",l="top",u=-n),(0,f.useMemo)((function(){if(!c.length)return[0,0];for(var n=c.length,i=n,r=0;r<n;r+=1){var s=e.get(c[r].key)||C;if(Math.floor(s[l]+s[o])>Math.floor(u+t)){i=r-1;break}}for(var a=0,d=n-1;d>=0;d-=1)if((e.get(c[d].key)||C)[l]<u){a=d+1;break}return a>=i?[0,0]:[a,i]}),[e,t,i,r,s,u,d,c.map((function(e){return e.key})).join("_"),h])}(Te,Me,$?ne:ae,Le,Re,Ie,(0,s.Z)((0,s.Z)({},e),{},{tabs:H})),We=(0,a.Z)(Ve,2),Ye=We[0],qe=We[1],Xe=(0,v.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=Te.get(e)||{width:0,height:0,left:0,right:0,top:0};if($){var n=ne;h?t.right<ne?n=t.right:t.right+t.width>ne+Me&&(n=t.right+t.width-Me):t.left<-ne?n=-t.left:t.left+t.width>-ne+Me&&(n=-(t.left+t.width-Me)),oe(0),ie(Be(n))}else{var i=ae;t.top<-ae?i=-t.top:t.top+t.height>-ae+Me&&(i=-(t.top+t.height-Me)),ie(0),oe(Be(i))}})),Qe=(0,f.useState)(),Je=(0,a.Z)(Qe,2),$e=Je[0],et=Je[1],tt=(0,f.useState)(!1),nt=(0,a.Z)(tt,2),it=nt[0],rt=nt[1],st=H.filter((function(e){return!e.disabled})).map((function(e){return e.key})),at=function(e){var t=st.indexOf($e||d),n=st.length,i=st[(t+e+n)%n];et(i)},ot=function(e){var t=e.code,n=h&&$,i=st[0],r=st[st.length-1];switch(t){case"ArrowLeft":$&&at(n?1:-1);break;case"ArrowRight":$&&at(n?-1:1);break;case"ArrowUp":e.preventDefault(),$||at(-1);break;case"ArrowDown":e.preventDefault(),$||at(1);break;case"Home":e.preventDefault(),et(i);break;case"End":e.preventDefault(),et(r);break;case"Enter":case"Space":e.preventDefault(),j(d,e);break;case"Backspace":case"Delete":var s=st.indexOf($e),a=H.find((function(e){return e.key===$e}));D(null==a?void 0:a.closable,null==a?void 0:a.closeIcon,k,null==a?void 0:a.disabled)&&(e.preventDefault(),e.stopPropagation(),k.onEdit("remove",{key:$e,event:e}),s===st.length-1?at(-1):at(1))}},lt={};$?lt[h?"marginRight":"marginLeft"]=M:lt.marginTop=M;var ut=H.map((function(e,t){var n=e.key;return f.createElement(F,{id:l,prefixCls:G,key:n,tab:e,style:0===t?void 0:lt,closable:e.closable,editable:k,active:n===d,focus:n===$e,renderWrapper:P,removeAriaLabel:null==I?void 0:I.removeAriaLabel,tabCount:st.length,currentPosition:t+1,onClick:function(e){j(n,e)},onKeyDown:ot,onFocus:function(){it||et(n),Xe(n),Ge(),q.current&&(h||(q.current.scrollLeft=0),q.current.scrollTop=0)},onBlur:function(){et(void 0)},onMouseDown:function(){rt(!0)},onMouseUp:function(){rt(!1)}})})),ct=function(){return Ae((function(){var e,t=new Map,n=null===(e=X.current)||void 0===e?void 0:e.getBoundingClientRect();return H.forEach((function(e){var i,r=e.key,s=null===(i=X.current)||void 0===i?void 0:i.querySelector('[data-node-key="'.concat(T(r),'"]'));if(s){var o=function(e,t){var n=e.offsetWidth,i=e.offsetHeight,r=e.offsetTop,s=e.offsetLeft,a=e.getBoundingClientRect(),o=a.width,l=a.height,u=a.left,c=a.top;return Math.abs(o-n)<1?[o,l,u-t.left,c-t.top]:[n,i,s,r]}(s,n),l=(0,a.Z)(o,4),u=l[0],c=l[1],d=l[2],h=l[3];t.set(r,{width:u,height:c,left:d,top:h})}})),t}))};(0,f.useEffect)((function(){ct()}),[H.map((function(e){return e.key})).join("_")]);var dt=S((function(){var e=B(V),t=B(W),n=B(Y);de([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var i=B(J);_e(i);var r=B(Q);xe(r);var s=B(X);ge([s[0]-i[0],s[1]-i[1]]),ct()})),ht=H.slice(0,Ye),ft=H.slice(qe+1),pt=[].concat((0,g.Z)(ht),(0,g.Z)(ft)),gt=Te.get(d),mt=b({activeTabOffset:gt,horizontal:$,indicator:K,rtl:h}).style;(0,f.useEffect)((function(){Xe()}),[d,Oe,Fe,A(gt),A(Te),$]),(0,f.useEffect)((function(){dt()}),[h]);var vt,yt,_t,bt,Et=!!pt.length,wt="".concat(G,"-nav-wrap");return $?h?(yt=ne>0,vt=ne!==Fe):(vt=ne<0,yt=ne!==Oe):(_t=ae<0,bt=ae!==Oe),f.createElement(m.Z,{onResize:dt},f.createElement("div",{ref:(0,y.x1)(t,V),role:"tablist","aria-orientation":$?"horizontal":"vertical",className:c()("".concat(G,"-nav"),n),style:o,onKeyDown:function(){Ge()}},f.createElement(R,{ref:W,position:"left",extra:_,prefixCls:G}),f.createElement(m.Z,{onResize:dt},f.createElement("div",{className:c()(wt,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(wt,"-ping-left"),vt),"".concat(wt,"-ping-right"),yt),"".concat(wt,"-ping-top"),_t),"".concat(wt,"-ping-bottom"),bt)),ref:q},f.createElement(m.Z,{onResize:dt},f.createElement("div",{ref:X,className:"".concat(G,"-nav-list"),style:{transform:"translate(".concat(ne,"px, ").concat(ae,"px)"),transition:Ke?"none":void 0}},ut,f.createElement(L,{ref:J,prefixCls:G,locale:I,editable:k,style:(0,s.Z)((0,s.Z)({},0===ut.length?void 0:lt),{},{visibility:Et?"hidden":null})}),f.createElement("div",{className:c()("".concat(G,"-ink-bar"),(0,r.Z)({},"".concat(G,"-ink-bar-animated"),u.inkBar)),style:mt}))))),f.createElement(O,(0,i.Z)({},e,{removeAriaLabel:null==I?void 0:I.removeAriaLabel,ref:Q,prefixCls:G,tabs:pt,className:!Et&&Pe,tabMoving:!!Ke})),f.createElement(R,{ref:Y,position:"right",extra:_,prefixCls:G})))})),U=j;var K=f.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,r=e.style,s=e.id,a=e.active,o=e.tabKey,l=e.children;return f.createElement("div",{id:s&&"".concat(s,"-panel-").concat(o),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":s&&"".concat(s,"-tab-").concat(o),"aria-hidden":!a,style:r,className:c()(n,a&&"".concat(n,"-active"),i),ref:t},l)})),z=["renderTabBar"],G=["label","key"];var H=function(e){var t=e.renderTabBar,n=(0,l.Z)(e,z),r=f.useContext(p).tabs;return t?t((0,s.Z)((0,s.Z)({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=(0,l.Z)(e,G);return f.createElement(K,(0,i.Z)({tab:t,key:n,tabKey:n},r))}))}),U):f.createElement(U,n)},V=n(77900),W=["key","forceRender","style","className","destroyInactiveTabPane"],Y=function(e){var t=e.id,n=e.activeKey,a=e.animated,o=e.tabPosition,u=e.destroyInactiveTabPane,d=f.useContext(p),h=d.prefixCls,g=d.tabs,m=a.tabPane,v="".concat(h,"-tabpane");return f.createElement("div",{className:c()("".concat(h,"-content-holder"))},f.createElement("div",{className:c()("".concat(h,"-content"),"".concat(h,"-content-").concat(o),(0,r.Z)({},"".concat(h,"-content-animated"),m))},g.map((function(e){var r=e.key,o=e.forceRender,d=e.style,h=e.className,p=e.destroyInactiveTabPane,g=(0,l.Z)(e,W),y=r===n;return f.createElement(V.default,(0,i.Z)({key:r,visible:y,forceRender:o,removeOnLeave:!(!u&&!p),leavedClassName:"".concat(v,"-hidden")},a.tabPaneMotion),(function(e,n){var a=e.style,o=e.className;return f.createElement(K,(0,i.Z)({},g,{prefixCls:v,id:t,tabKey:r,animated:m,active:y,style:(0,s.Z)((0,s.Z)({},d),a),className:c()(h,o),ref:n}))}))}))))};n(48736);var q=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],X=0,Q=f.forwardRef((function(e,t){var n=e.id,u=e.prefixCls,g=void 0===u?"rc-tabs":u,m=e.className,v=e.items,y=e.direction,_=e.activeKey,b=e.defaultActiveKey,E=e.editable,w=e.animated,x=e.tabPosition,k=void 0===x?"top":x,S=e.tabBarGutter,C=e.tabBarStyle,A=e.tabBarExtraContent,T=e.locale,D=e.more,L=e.destroyInactiveTabPane,R=e.renderTabBar,I=e.onChange,N=e.onTabClick,M=e.onTabScroll,P=e.getPopupContainer,O=e.popupClassName,F=e.indicator,B=(0,l.Z)(e,q),Z=f.useMemo((function(){return(v||[]).filter((function(e){return e&&"object"===(0,o.Z)(e)&&"key"in e}))}),[v]),j="rtl"===y,U=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,s.Z)({inkBar:!0},"object"===(0,o.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(w),K=(0,f.useState)(!1),z=(0,a.Z)(K,2),G=z[0],V=z[1];(0,f.useEffect)((function(){V((0,h.Z)())}),[]);var W=(0,d.Z)((function(){var e;return null===(e=Z[0])||void 0===e?void 0:e.key}),{value:_,defaultValue:b}),Q=(0,a.Z)(W,2),J=Q[0],$=Q[1],ee=(0,f.useState)((function(){return Z.findIndex((function(e){return e.key===J}))})),te=(0,a.Z)(ee,2),ne=te[0],ie=te[1];(0,f.useEffect)((function(){var e,t=Z.findIndex((function(e){return e.key===J}));-1===t&&(t=Math.max(0,Math.min(ne,Z.length-1)),$(null===(e=Z[t])||void 0===e?void 0:e.key));ie(t)}),[Z.map((function(e){return e.key})).join("_"),J,ne]);var re=(0,d.Z)(null,{value:n}),se=(0,a.Z)(re,2),ae=se[0],oe=se[1];(0,f.useEffect)((function(){n||(oe("rc-tabs-".concat(X)),X+=1)}),[]);var le={id:ae,activeKey:J,animated:U,tabPosition:k,rtl:j,mobile:G},ue=(0,s.Z)((0,s.Z)({},le),{},{editable:E,locale:T,more:D,tabBarGutter:S,onTabClick:function(e,t){null==N||N(e,t);var n=e!==J;$(e),n&&(null==I||I(e))},onTabScroll:M,extra:A,style:C,panes:null,getPopupContainer:P,popupClassName:O,indicator:F});return f.createElement(p.Provider,{value:{tabs:Z,prefixCls:g}},f.createElement("div",(0,i.Z)({ref:t,id:n,className:c()(g,"".concat(g,"-").concat(k),(0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(g,"-mobile"),G),"".concat(g,"-editable"),E),"".concat(g,"-rtl"),j),m)},B),f.createElement(H,(0,i.Z)({},ue,{renderTabBar:R})),f.createElement(Y,(0,i.Z)({destroyInactiveTabPane:L},le,{animated:U}))))}));var J=Q},22711:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizableTextArea:function(){return A},default:function(){return D}});var i,r=n(54476),s=n(20068),a=n(33885),o=n(94480),l=n(42978),u=n(75931),c=n(92310),d=n.n(c),h=n(36901),f=n(66003),p=n(30292),g=n(18929),m=n(59301),v=n(76190),y=n(29301),_=n(34280),b=n(16089),E="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",w=["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"],x={};function k(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&x[n])return x[n];var i=window.getComputedStyle(e),r=i.getPropertyValue("box-sizing")||i.getPropertyValue("-moz-box-sizing")||i.getPropertyValue("-webkit-box-sizing"),s=parseFloat(i.getPropertyValue("padding-bottom"))+parseFloat(i.getPropertyValue("padding-top")),a=parseFloat(i.getPropertyValue("border-bottom-width"))+parseFloat(i.getPropertyValue("border-top-width")),o=w.map((function(e){return"".concat(e,":").concat(i.getPropertyValue(e))})).join(";"),l={sizingStyle:o,paddingSize:s,borderSize:a,boxSizing:r};return t&&n&&(x[n]=l),l}var S=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],C=m.forwardRef((function(e,t){var n=e,o=n.prefixCls,c=n.defaultValue,h=n.value,f=n.autoSize,p=n.onResize,w=n.className,x=n.style,C=n.disabled,A=n.onChange,T=(n.onInternalAutoSize,(0,u.Z)(n,S)),D=(0,g.Z)(c,{value:h,postState:function(e){return null!=e?e:""}}),L=(0,l.Z)(D,2),R=L[0],I=L[1],N=m.useRef();m.useImperativeHandle(t,(function(){return{textArea:N.current}}));var M=m.useMemo((function(){return f&&"object"===(0,v.Z)(f)?[f.minRows,f.maxRows]:[]}),[f]),P=(0,l.Z)(M,2),O=P[0],F=P[1],B=!!f,Z=m.useState(2),j=(0,l.Z)(Z,2),U=j[0],K=j[1],z=m.useState(),G=(0,l.Z)(z,2),H=G[0],V=G[1],W=function(){K(0)};(0,_.Z)((function(){B&&W()}),[h,O,F,B]),(0,_.Z)((function(){if(0===U)K(1);else if(1===U){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;i||((i=document.createElement("textarea")).setAttribute("tab-index","-1"),i.setAttribute("aria-hidden","true"),i.setAttribute("name","hiddenTextarea"),document.body.appendChild(i)),e.getAttribute("wrap")?i.setAttribute("wrap",e.getAttribute("wrap")):i.removeAttribute("wrap");var s=k(e,t),a=s.paddingSize,o=s.borderSize,l=s.boxSizing,u=s.sizingStyle;i.setAttribute("style","".concat(u,";").concat(E)),i.value=e.value||e.placeholder||"";var c,d=void 0,h=void 0,f=i.scrollHeight;if("border-box"===l?f+=o:"content-box"===l&&(f-=a),null!==n||null!==r){i.value=" ";var p=i.scrollHeight-a;null!==n&&(d=p*n,"border-box"===l&&(d=d+a+o),f=Math.max(d,f)),null!==r&&(h=p*r,"border-box"===l&&(h=h+a+o),c=f>h?"":"hidden",f=Math.min(h,f))}var g={height:f,overflowY:c,resize:"none"};return d&&(g.minHeight=d),h&&(g.maxHeight=h),g}(N.current,!1,O,F);K(2),V(e)}else!function(){try{if(document.activeElement===N.current){var e=N.current,t=e.selectionStart,n=e.selectionEnd,i=e.scrollTop;N.current.setSelectionRange(t,n),N.current.scrollTop=i}}catch(e){}}()}),[U]);var Y=m.useRef(),q=function(){b.Z.cancel(Y.current)};m.useEffect((function(){return q}),[]);var X=B?H:null,Q=(0,a.Z)((0,a.Z)({},x),X);return 0!==U&&1!==U||(Q.overflowY="hidden",Q.overflowX="hidden"),m.createElement(y.Z,{onResize:function(e){2===U&&(null==p||p(e),f&&(q(),Y.current=(0,b.Z)((function(){W()}))))},disabled:!(f||p)},m.createElement("textarea",(0,r.Z)({},T,{ref:N,style:Q,className:d()(o,w,(0,s.Z)({},"".concat(o,"-disabled"),C)),disabled:C,value:R,onChange:function(e){I(e.target.value),null==A||A(e)}})))})),A=C,T=["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"],D=m.forwardRef((function(e,t){var n,i=e.defaultValue,c=e.value,v=e.onFocus,y=e.onBlur,_=e.onChange,b=e.allowClear,E=e.maxLength,w=e.onCompositionStart,x=e.onCompositionEnd,k=e.suffix,S=e.prefixCls,C=void 0===S?"rc-textarea":S,D=e.showCount,L=e.count,R=e.className,I=e.style,N=e.disabled,M=e.hidden,P=e.classNames,O=e.styles,F=e.onResize,B=e.onClear,Z=e.onPressEnter,j=e.readOnly,U=e.autoSize,K=e.onKeyDown,z=(0,u.Z)(e,T),G=(0,g.Z)(i,{value:c,defaultValue:i}),H=(0,l.Z)(G,2),V=H[0],W=H[1],Y=null==V?"":String(V),q=m.useState(!1),X=(0,l.Z)(q,2),Q=X[0],J=X[1],$=m.useRef(!1),ee=m.useState(null),te=(0,l.Z)(ee,2),ne=te[0],ie=te[1],re=(0,m.useRef)(null),se=(0,m.useRef)(null),ae=function(){var e;return null===(e=se.current)||void 0===e?void 0:e.textArea},oe=function(){ae().focus()};(0,m.useImperativeHandle)(t,(function(){var e;return{resizableTextArea:se.current,focus:oe,blur:function(){ae().blur()},nativeElement:(null===(e=re.current)||void 0===e?void 0:e.nativeElement)||ae()}})),(0,m.useEffect)((function(){J((function(e){return!N&&e}))}),[N]);var le=m.useState(null),ue=(0,l.Z)(le,2),ce=ue[0],de=ue[1];m.useEffect((function(){var e;ce&&(e=ae()).setSelectionRange.apply(e,(0,o.Z)(ce))}),[ce]);var he,fe=(0,f.Z)(L,D),pe=null!==(n=fe.max)&&void 0!==n?n:E,ge=Number(pe)>0,me=fe.strategy(Y),ve=!!pe&&me>pe,ye=function(e,t){var n=t;!$.current&&fe.exceedFormatter&&fe.max&&fe.strategy(t)>fe.max&&t!==(n=fe.exceedFormatter(t,{max:fe.max}))&&de([ae().selectionStart||0,ae().selectionEnd||0]),W(n),(0,p.rJ)(e.currentTarget,e,_,n)},_e=k;fe.show&&(he=fe.showFormatter?fe.showFormatter({value:Y,count:me,maxLength:pe}):"".concat(me).concat(ge?" / ".concat(pe):""),_e=m.createElement(m.Fragment,null,_e,m.createElement("span",{className:d()("".concat(C,"-data-count"),null==P?void 0:P.count),style:null==O?void 0:O.count},he)));var be=!U&&!D&&!b;return m.createElement(h.BaseInput,{ref:re,value:Y,allowClear:b,handleReset:function(e){W(""),oe(),(0,p.rJ)(ae(),e,_)},suffix:_e,prefixCls:C,classNames:(0,a.Z)((0,a.Z)({},P),{},{affixWrapper:d()(null==P?void 0:P.affixWrapper,(0,s.Z)((0,s.Z)({},"".concat(C,"-show-count"),D),"".concat(C,"-textarea-allow-clear"),b))}),disabled:N,focused:Q,className:d()(R,ve&&"".concat(C,"-out-of-range")),style:(0,a.Z)((0,a.Z)({},I),ne&&!be?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof he?he:void 0}},hidden:M,readOnly:j,onClear:B},m.createElement(A,(0,r.Z)({},z,{autoSize:U,maxLength:E,onKeyDown:function(e){"Enter"===e.key&&Z&&Z(e),null==K||K(e)},onChange:function(e){ye(e,e.target.value)},onFocus:function(e){J(!0),null==v||v(e)},onBlur:function(e){J(!1),null==y||y(e)},onCompositionStart:function(e){$.current=!0,null==w||w(e)},onCompositionEnd:function(e){$.current=!1,ye(e,e.currentTarget.value),null==x||x(e)},className:d()(null==P?void 0:P.textarea),style:(0,a.Z)((0,a.Z)({},null==O?void 0:O.textarea),{},{resize:null==I?void 0:I.resize}),disabled:N,prefixCls:C,onResize:function(e){var t;null==F||F(e),null!==(t=ae())&&void 0!==t&&t.style.height&&ie(!0)},ref:se,readOnly:j})))}))},29125:function(e,t,n){"use strict";n.d(t,{G:function(){return a},Z:function(){return y}});var i=n(92310),r=n.n(i),s=n(59301);function a(e){var t=e.children,n=e.prefixCls,i=e.id,a=e.overlayInnerStyle,o=e.bodyClassName,l=e.className,u=e.style;return s.createElement("div",{className:r()("".concat(n,"-content"),l),style:u},s.createElement("div",{className:r()("".concat(n,"-inner"),o),id:i,role:"tooltip",style:a},"function"==typeof t?t():t))}var o=n(54476),l=n(33885),u=n(75931),c=n(65030),d={shiftX:64,adjustY:1},h={adjustX:1,shiftY:!0},f=[0,0],p={left:{points:["cr","cl"],overflow:h,offset:[-4,0],targetOffset:f},right:{points:["cl","cr"],overflow:h,offset:[4,0],targetOffset:f},top:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:f},bottom:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:f},topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:f},leftTop:{points:["tr","tl"],overflow:h,offset:[-4,0],targetOffset:f},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:f},rightTop:{points:["tl","tr"],overflow:h,offset:[4,0],targetOffset:f},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:f},rightBottom:{points:["bl","br"],overflow:h,offset:[4,0],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:f},leftBottom:{points:["br","bl"],overflow:h,offset:[-4,0],targetOffset:f}},g=n(80402),m=["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(e,t){var n=e.overlayClassName,i=e.trigger,d=void 0===i?["hover"]:i,h=e.mouseEnterDelay,f=void 0===h?0:h,v=e.mouseLeaveDelay,y=void 0===v?.1:v,_=e.overlayStyle,b=e.prefixCls,E=void 0===b?"rc-tooltip":b,w=e.children,x=e.onVisibleChange,k=e.afterVisibleChange,S=e.transitionName,C=e.animation,A=e.motion,T=e.placement,D=void 0===T?"right":T,L=e.align,R=void 0===L?{}:L,I=e.destroyTooltipOnHide,N=void 0!==I&&I,M=e.defaultVisible,P=e.getTooltipContainer,O=e.overlayInnerStyle,F=(e.arrowContent,e.overlay),B=e.id,Z=e.showArrow,j=void 0===Z||Z,U=e.classNames,K=e.styles,z=(0,u.Z)(e,m),G=(0,g.Z)(B),H=(0,s.useRef)(null);(0,s.useImperativeHandle)(t,(function(){return H.current}));var V=(0,l.Z)({},z);"visible"in e&&(V.popupVisible=e.visible);var W,Y,q;return s.createElement(c.Z,(0,o.Z)({popupClassName:r()(n,null==U?void 0:U.root),prefixCls:E,popup:function(){return s.createElement(a,{key:"content",prefixCls:E,id:G,bodyClassName:null==U?void 0:U.body,overlayInnerStyle:(0,l.Z)((0,l.Z)({},O),null==K?void 0:K.body)},F)},action:d,builtinPlacements:p,popupPlacement:D,ref:H,popupAlign:R,getPopupContainer:P,onPopupVisibleChange:x,afterPopupVisibleChange:k,popupTransitionName:S,popupAnimation:C,popupMotion:A,defaultPopupVisible:M,autoDestroy:N,mouseLeaveDelay:y,popupStyle:(0,l.Z)((0,l.Z)({},_),null==K?void 0:K.root),mouseEnterDelay:f,arrow:j},V),(W=s.Children.only(w),Y=(null==W?void 0:W.props)||{},q=(0,l.Z)((0,l.Z)({},Y),{},{"aria-describedby":F?G:null}),s.cloneElement(w,q)))},y=(0,s.forwardRef)(v)},9940:function(e,t,n){"use strict";n.d(t,{Qw:function(){return B},FJ:function(){return j},hT:function(){return Z},OF:function(){return _},ZP:function(){return H}});var i=n(54476),r=n(94480),s=n(33885),a=n(42978),o=n(75931),l=n(76190),u=n(37463),c=n(6551),d=n(34643),h=n(18929),f=n(48736),p=n(59301),g=function(e,t,n,i){return p.useMemo((function(){var s=function(e){return e.map((function(e){return e.value}))},a=s(e),o=s(t),l=a.filter((function(e){return!i[e]})),u=a,c=o;if(n){var h=(0,d.S)(a,!0,i);u=h.checkedKeys,c=h.halfCheckedKeys}return[Array.from(new Set([].concat((0,r.Z)(l),(0,r.Z)(u)))),c]}),[e,t,n,i])},m=n(34061),v=n(20068),y=n(11592),_=function(){return null},b=["children","value"];function E(e){return(0,y.Z)(e).map((function(e){if(!p.isValidElement(e)||!e.type)return null;var t=e,n=t.key,i=t.props,r=i.children,a=i.value,l=(0,o.Z)(i,b),u=(0,s.Z)({key:n,value:a},l),c=E(r);return c.length&&(u.children=c),u})).filter((function(e){return e}))}function w(e){if(!e)return e;var t=(0,s.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,f.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}var x=function(e,t,n){var i=n.fieldNames,r=n.treeNodeFilterProp,a=n.filterTreeNode,o=i.children;return p.useMemo((function(){if(!t||!1===a)return e;var n="function"==typeof a?a:function(e,n){return String(n[r]).toUpperCase().includes(t.toUpperCase())};return function e(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i.reduce((function(i,a){var l=a[o],u=r||n(t,w(a)),c=e(l||[],u);return(u||c.length)&&i.push((0,s.Z)((0,s.Z)({},a),{},(0,v.Z)({isLeaf:void 0},o,c))),i}),[])}(e)}),[e,t,o,r,a])};function k(e){var t=p.useRef();t.current=e;var n=p.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}function S(e,t,n){return p.useMemo((function(){if(e){if(n){var i=(0,s.Z)({id:"id",pId:"pId",rootPId:null},"object"===(0,l.Z)(n)?n:{});return function(e,t){var n=t.id,i=t.pId,r=t.rootPId,a=new Map,o=[];return e.forEach((function(e){var t=e[n],i=(0,s.Z)((0,s.Z)({},e),{},{key:e.key||t});a.set(t,i)})),a.forEach((function(e){var t=e[i],n=a.get(t);n?(n.children=n.children||[],n.children.push(e)):t!==r&&null!==r||o.push(e)})),o}(e,i)}return e}return E(t)}),[t,n,e])}var C=p.createContext(null),A=n(19251),T=n(3741),D=n(10228),L=n(80547),R=p.createContext(null),I=function(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable},N=function(e){return null==e},M=n(70425),P={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},O=function(e,t){var n=(0,u.lk)(),s=n.prefixCls,o=n.multiple,l=n.searchValue,c=n.toggleOpen,d=n.open,h=n.notFoundContent,f=p.useContext(R),g=f.virtual,m=f.listHeight,v=f.listItemHeight,y=f.listItemScrollOffset,_=f.treeData,b=f.fieldNames,E=f.onSelect,w=f.dropdownMatchSelectWidth,x=f.treeExpandAction,k=f.treeTitleRender,S=f.onPopupScroll,N=f.leftMaxCount,O=f.leafCountOnly,F=f.valueEntities,B=p.useContext(C),Z=B.checkable,j=B.checkedKeys,U=B.halfCheckedKeys,K=B.treeExpandedKeys,z=B.treeDefaultExpandAll,G=B.treeDefaultExpandedKeys,H=B.onTreeExpand,V=B.treeIcon,W=B.showTreeIcon,Y=B.switcherIcon,q=B.treeLine,X=B.treeNodeFilterProp,Q=B.loadData,J=B.treeLoadedKeys,$=B.treeMotion,ee=B.onTreeLoad,te=B.keyEntities,ne=p.useRef(),ie=(0,L.Z)((function(){return _}),[d,_],(function(e,t){return t[0]&&e[1]!==t[1]})),re=p.useMemo((function(){return Z?{checked:j,halfChecked:U}:null}),[Z,j,U]);p.useEffect((function(){var e;d&&!o&&j.length&&(null===(e=ne.current)||void 0===e||e.scrollTo({key:j[0]}))}),[d]);var se=function(e){e.preventDefault()},ae=function(e,t){var n=t.node;Z&&I(n)||(E(n.key,{selected:!j.includes(n.key)}),o||c(!1))},oe=p.useState(G),le=(0,a.Z)(oe,2),ue=le[0],ce=le[1],de=p.useState(null),he=(0,a.Z)(de,2),fe=he[0],pe=he[1],ge=p.useMemo((function(){return K?(0,r.Z)(K):l?fe:ue}),[ue,fe,K,l]),me=String(l).toLowerCase(),ve=function(e){return!!me&&String(e[X]).toLowerCase().includes(me)};p.useEffect((function(){l&&pe(function(e,t){var n=[];return function e(i){i.forEach((function(i){var r=i[t.children];r&&(n.push(i[t.value]),e(r))}))}(e),n}(_,b))}),[l]);var ye=p.useState((function(){return new Map})),_e=(0,a.Z)(ye,2),be=_e[0],Ee=_e[1];p.useEffect((function(){N&&Ee(new Map)}),[N]);var we=(0,M.zX)((function(e){var t=e[b.value];return!j.includes(t)&&(null!==N&&(N<=0||!(!O||!N)&&function(e){var t=e[b.value];if(!be.has(t)){var n=F.get(t);if(0===(n.children||[]).length)be.set(t,!1);else{var i=n.children.filter((function(e){return!e.node.disabled&&!e.node.disableCheckbox&&!j.includes(e.node[b.value])})).length;be.set(t,i>N)}}return be.get(t)}(e)))})),xe=function e(t){var n,i=(0,A.Z)(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(!r.disabled&&!1!==r.selectable){if(!l)return r;if(ve(r))return r;if(r[b.children]){var s=e(r[b.children]);if(s)return s}}}}catch(e){i.e(e)}finally{i.f()}return null},ke=p.useState(null),Se=(0,a.Z)(ke,2),Ce=Se[0],Ae=Se[1],Te=te[Ce];p.useEffect((function(){if(d){var e,t=null;t=o||!j.length||l?(e=xe(ie))?e[b.value]:null:j[0],Ae(t)}}),[d,l]),p.useImperativeHandle(t,(function(){var e;return{scrollTo:null===(e=ne.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case D.Z.UP:case D.Z.DOWN:case D.Z.LEFT:case D.Z.RIGHT:null===(t=ne.current)||void 0===t||t.onKeyDown(e);break;case D.Z.ENTER:if(Te){var n=we(Te.node),i=(null==Te?void 0:Te.node)||{},r=i.selectable,s=i.value,a=i.disabled;!1===r||a||n||ae(0,{node:{key:Ce},selected:!j.includes(s)})}break;case D.Z.ESC:c(!1)}},onKeyUp:function(){}}}));var De=(0,L.Z)((function(){return!l}),[l,K||ue],(function(e,t){var n=(0,a.Z)(e,1)[0],i=(0,a.Z)(t,2),r=i[0],s=i[1];return n!==r&&!(!r&&!s)}))?Q:null;if(0===ie.length)return p.createElement("div",{role:"listbox",className:"".concat(s,"-empty"),onMouseDown:se},h);var Le={fieldNames:b};return J&&(Le.loadedKeys=J),ge&&(Le.expandedKeys=ge),p.createElement("div",{onMouseDown:se},Te&&d&&p.createElement("span",{style:P,"aria-live":"assertive"},Te.node.value),p.createElement(T.y6.Provider,{value:{nodeDisabled:we}},p.createElement(T.ZP,(0,i.Z)({ref:ne,focusable:!1,prefixCls:"".concat(s,"-tree"),treeData:ie,height:m,itemHeight:v,itemScrollOffset:y,virtual:!1!==g&&!1!==w,multiple:o,icon:V,showIcon:W,switcherIcon:Y,showLine:q,loadData:De,motion:$,activeKey:Ce,checkable:Z,checkStrictly:!0,checkedKeys:re,selectedKeys:Z?[]:j,defaultExpandAll:z,titleRender:k},Le,{onActiveChange:Ae,onSelect:ae,onCheck:ae,onExpand:function(e){ce(e),pe(e),H&&H(e)},onLoad:ee,filterTreeNode:ve,expandAction:x,onScroll:S}))))};var F=p.forwardRef(O),B="SHOW_ALL",Z="SHOW_PARENT",j="SHOW_CHILD";function U(e,t,n,i){var r=new Set(e);return t===j?e.filter((function(e){var t=n[e];return!(t&&t.children&&t.children.some((function(e){var t=e.node;return r.has(t[i.value])}))&&t.children.every((function(e){var t=e.node;return I(t)||r.has(t[i.value])})))})):t===Z?e.filter((function(e){var t=n[e],i=t?t.parent:null;return!i||I(i.node)||!r.has(i.key)})):e}var K=["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"];var z=p.forwardRef((function(e,t){var n=e.id,v=e.prefixCls,y=void 0===v?"rc-tree-select":v,b=e.value,E=e.defaultValue,A=e.onChange,T=e.onSelect,D=e.onDeselect,L=e.searchValue,I=e.inputValue,M=e.onSearch,P=e.autoClearSearchValue,O=void 0===P||P,Z=e.filterTreeNode,z=e.treeNodeFilterProp,G=void 0===z?"value":z,H=e.showCheckedStrategy,V=e.treeNodeLabelProp,W=e.multiple,Y=e.treeCheckable,q=e.treeCheckStrictly,X=e.labelInValue,Q=e.maxCount,J=e.fieldNames,$=e.treeDataSimpleMode,ee=e.treeData,te=e.children,ne=e.loadData,ie=e.treeLoadedKeys,re=e.onTreeLoad,se=e.treeDefaultExpandAll,ae=e.treeExpandedKeys,oe=e.treeDefaultExpandedKeys,le=e.onTreeExpand,ue=e.treeExpandAction,ce=e.virtual,de=e.listHeight,he=void 0===de?200:de,fe=e.listItemHeight,pe=void 0===fe?20:fe,ge=e.listItemScrollOffset,me=void 0===ge?0:ge,ve=e.onDropdownVisibleChange,ye=e.dropdownMatchSelectWidth,_e=void 0===ye||ye,be=e.treeLine,Ee=e.treeIcon,we=e.showTreeIcon,xe=e.switcherIcon,ke=e.treeMotion,Se=e.treeTitleRender,Ce=e.onPopupScroll,Ae=(0,o.Z)(e,K),Te=(0,c.ZP)(n),De=Y&&!q,Le=Y||q,Re=q||X,Ie=Le||W,Ne=(0,h.Z)(E,{value:b}),Me=(0,a.Z)(Ne,2),Pe=Me[0],Oe=Me[1],Fe=p.useMemo((function(){return Y?H||j:B}),[H,Y]);var Be,Ze,je=p.useMemo((function(){return function(e){var t=e||{},n=t.label,i=t.value;return{_title:n?[n]:["title","label"],value:i||"value",key:i||"value",children:t.children||"children"}}(J)}),[JSON.stringify(J)]),Ue=(0,h.Z)("",{value:void 0!==L?L:I,postState:function(e){return e||""}}),Ke=(0,a.Z)(Ue,2),ze=Ke[0],Ge=Ke[1],He=S(ee,te,$),Ve=function(e,t){return p.useMemo((function(){return(0,m.I8)(e,{fieldNames:t,initWrapper:function(e){return(0,s.Z)((0,s.Z)({},e),{},{valueEntities:new Map})},processEntity:function(e,n){var i=e.node[t.value];n.valueEntities.set(i,e)}})}),[e,t])}(He,je),We=Ve.keyEntities,Ye=Ve.valueEntities,qe=p.useCallback((function(e){var t=[],n=[];return e.forEach((function(e){Ye.has(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}}),[Ye]),Xe=x(He,ze,{fieldNames:je,treeNodeFilterProp:G,filterTreeNode:Z}),Qe=p.useCallback((function(e){if(e){if(V)return e[V];for(var t=je._title,n=0;n<t.length;n+=1){var i=e[t[n]];if(void 0!==i)return i}}}),[je,V]),Je=p.useCallback((function(e){var t=function(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}(e);return t.map((function(e){return function(e){return!e||"object"!==(0,l.Z)(e)}(e)?{value:e}:e}))}),[]),$e=p.useCallback((function(e){return Je(e).map((function(e){var t,n,i=e.label,r=e.value,s=e.halfChecked,a=Ye.get(r);if(a)i=Se?Se(a.node):null!==(n=i)&&void 0!==n?n:Qe(a.node),t=a.node.disabled;else if(void 0===i){i=Je(Pe).find((function(e){return e.value===r})).label}return{label:i,value:r,halfChecked:s,disabled:t}}))}),[Ye,Qe,Je,Pe]),et=p.useMemo((function(){return Je(null===Pe?[]:Pe)}),[Je,Pe]),tt=p.useMemo((function(){var e=[],t=[];return et.forEach((function(n){n.halfChecked?t.push(n):e.push(n)})),[e,t]}),[et]),nt=(0,a.Z)(tt,2),it=nt[0],rt=nt[1],st=p.useMemo((function(){return it.map((function(e){return e.value}))}),[it]),at=g(it,rt,De,We),ot=(0,a.Z)(at,2),lt=ot[0],ut=ot[1],ct=p.useMemo((function(){var e=U(lt,Fe,We,je).map((function(e){var t,n;return null!==(t=null===(n=We[e])||void 0===n||null===(n=n.node)||void 0===n?void 0:n[je.value])&&void 0!==t?t:e})).map((function(e){var t=it.find((function(t){return t.value===e})),n=X?null==t?void 0:t.label:null==Se?void 0:Se(t);return{value:e,label:n}})),t=$e(e),n=t[0];return!Ie&&n&&N(n.value)&&N(n.label)?[]:t.map((function(e){var t;return(0,s.Z)((0,s.Z)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[je,Ie,lt,it,$e,Fe,We]),dt=(Be=ct,Ze=p.useRef({valueLabels:new Map}),p.useMemo((function(){var e=Ze.current.valueLabels,t=new Map,n=Be.map((function(n){var i=n.value,r=n.label,a=null!=r?r:e.get(i);return t.set(i,a),(0,s.Z)((0,s.Z)({},n),{},{label:a})}));return Ze.current.valueLabels=t,[n]}),[Be])),ht=(0,a.Z)(dt,1)[0],ft=p.useMemo((function(){return!Ie||"SHOW_CHILD"!==Fe&&!q&&Y?null:Q}),[Q,Ie,q,Fe,Y]),pt=k((function(e,t,n){var i=U(e,Fe,We,je);if(!(ft&&i.length>ft)){var s=$e(e);if(Oe(s),O&&Ge(""),A){var a=e;De&&(a=i.map((function(e){var t=Ye.get(e);return t?t.node[je.value]:e})));var o=t||{triggerValue:void 0,selected:void 0},l=o.triggerValue,u=o.selected,c=a;if(q){var d=rt.filter((function(e){return!a.includes(e.value)}));c=[].concat((0,r.Z)(c),(0,r.Z)(d))}var h=$e(c),g={preValue:it,triggerValue:l},m=!0;(q||"selection"===n&&!u)&&(m=!1),function(e,t,n,i,r,s){var a=null,o=null;function l(){o||(o=[],function e(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return i.map((function(i,u){var c="".concat(r,"-").concat(u),d=i[s.value],h=n.includes(d),f=e(i[s.children]||[],c,h),g=p.createElement(_,i,f.map((function(e){return e.node})));if(t===d&&(a=g),h){var m={pos:c,node:g,children:f};return l||o.push(m),m}return null})).filter((function(e){return e}))}(i),o.sort((function(e,t){var i=e.node.props.value,r=t.node.props.value;return n.indexOf(i)-n.indexOf(r)})))}Object.defineProperty(e,"triggerNode",{get:function(){return(0,f.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return(0,f.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),r?o:o.map((function(e){return e.node}))}})}(g,l,e,He,m,je),Le?g.checked=u:g.selected=u;var v=Re?h:h.map((function(e){return e.value}));A(Ie?v:v[0],Re?null:h.map((function(e){return e.label})),g)}}})),gt=p.useCallback((function(e,t){var n,i=t.selected,s=t.source,a=We[e],o=null==a?void 0:a.node,l=null!==(n=null==o?void 0:o[je.value])&&void 0!==n?n:e;if(Ie){var u=i?[].concat((0,r.Z)(st),[l]):lt.filter((function(e){return e!==l}));if(De){var c,h=qe(u),f=h.missingRawValues,p=h.existRawValues.map((function(e){return Ye.get(e).key}));if(i)c=(0,d.S)(p,!0,We).checkedKeys;else c=(0,d.S)(p,{checked:!1,halfCheckedKeys:ut},We).checkedKeys;u=[].concat((0,r.Z)(f),(0,r.Z)(c.map((function(e){return We[e].node[je.value]}))))}pt(u,{selected:i,triggerValue:l},s||"option")}else pt([l],{selected:!0,triggerValue:l},"option");i||!Ie?null==T||T(l,w(o)):null==D||D(l,w(o))}),[qe,Ye,We,je,Ie,st,pt,De,T,D,lt,ut,Q]),mt=p.useCallback((function(e){if(ve){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return(0,f.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),ve(e,t)}}),[ve]),vt=k((function(e,t){var n=e.map((function(e){return e.value}));"clear"!==t.type?t.values.length&&gt(t.values[0].value,{selected:!1,source:"selection"}):pt(n,{},"selection")})),yt=p.useMemo((function(){return{virtual:ce,dropdownMatchSelectWidth:_e,listHeight:he,listItemHeight:pe,listItemScrollOffset:me,treeData:Xe,fieldNames:je,onSelect:gt,treeExpandAction:ue,treeTitleRender:Se,onPopupScroll:Ce,leftMaxCount:void 0===Q?null:Q-ht.length,leafCountOnly:"SHOW_CHILD"===Fe&&!q&&!!Y,valueEntities:Ye}}),[ce,_e,he,pe,me,Xe,je,gt,ue,Se,Ce,Q,ht.length,Fe,q,Y,Ye]),_t=p.useMemo((function(){return{checkable:Le,loadData:ne,treeLoadedKeys:ie,onTreeLoad:re,checkedKeys:lt,halfCheckedKeys:ut,treeDefaultExpandAll:se,treeExpandedKeys:ae,treeDefaultExpandedKeys:oe,onTreeExpand:le,treeIcon:Ee,treeMotion:ke,showTreeIcon:we,switcherIcon:xe,treeLine:be,treeNodeFilterProp:G,keyEntities:We}}),[Le,ne,ie,re,lt,ut,se,ae,oe,le,Ee,ke,we,xe,be,G,We]);return p.createElement(R.Provider,{value:yt},p.createElement(C.Provider,{value:_t},p.createElement(u.Ac,(0,i.Z)({ref:t},Ae,{id:Te,prefixCls:y,mode:Ie?"multiple":void 0,displayValues:ht,onDisplayValuesChange:vt,searchValue:ze,onSearch:function(e){Ge(e),null==M||M(e)},OptionList:F,emptyOptions:!He.length,onDropdownVisibleChange:mt,dropdownMatchSelectWidth:_e}))))}));var G=z;G.TreeNode=_,G.SHOW_ALL=B,G.SHOW_PARENT=Z,G.SHOW_CHILD=j;var H=G},639:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var i=n(54476),r=n(20068),s=n(33885),a=n(42978),o=n(75931),l=n(59301),u=n(92310),c=n.n(u),d=n(26112),h=n(30699),f=function(e){for(var t=e.prefixCls,n=e.level,i=e.isStart,s=e.isEnd,a="".concat(t,"-indent-unit"),o=[],u=0;u<n;u+=1)o.push(l.createElement("span",{key:u,className:c()(a,(0,r.Z)((0,r.Z)({},"".concat(a,"-start"),i[u]),"".concat(a,"-end"),s[u]))}));return l.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},o)},p=l.memo(f),g=n(65065),m=n(34061),v=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],y="open",_="close",b=function(e){var t,n,u,f=e.eventKey,b=e.className,E=e.style,w=e.dragOver,x=e.dragOverGapTop,k=e.dragOverGapBottom,S=e.isLeaf,C=e.isStart,A=e.isEnd,T=e.expanded,D=e.selected,L=e.checked,R=e.halfChecked,I=e.loading,N=e.domRef,M=e.active,P=e.data,O=e.onMouseMove,F=e.selectable,B=(0,o.Z)(e,v),Z=l.useContext(h.k),j=l.useContext(h.y),U=l.useRef(null),K=l.useState(!1),z=(0,a.Z)(K,2),G=z[0],H=z[1],V=!!(Z.disabled||e.disabled||null!==(t=j.nodeDisabled)&&void 0!==t&&t.call(j,P)),W=l.useMemo((function(){return!(!Z.checkable||!1===e.checkable)&&Z.checkable}),[Z.checkable,e.checkable]),Y=function(t){V||W&&!e.disableCheckbox&&Z.onNodeCheck(t,(0,m.F)(e),!L)},q=l.useMemo((function(){return"boolean"==typeof F?F:Z.selectable}),[F,Z.selectable]),X=function(t){Z.onNodeClick(t,(0,m.F)(e)),q?function(t){V||Z.onNodeSelect(t,(0,m.F)(e))}(t):Y(t)},Q=function(t){Z.onNodeDoubleClick(t,(0,m.F)(e))},J=function(t){Z.onNodeMouseEnter(t,(0,m.F)(e))},$=function(t){Z.onNodeMouseLeave(t,(0,m.F)(e))},ee=function(t){Z.onNodeContextMenu(t,(0,m.F)(e))},te=l.useMemo((function(){return!(!Z.draggable||Z.draggable.nodeDraggable&&!Z.draggable.nodeDraggable(P))}),[Z.draggable,P]),ne=function(t){I||Z.onNodeExpand(t,(0,m.F)(e))},ie=l.useMemo((function(){var e=((0,g.Z)(Z.keyEntities,f)||{}).children;return Boolean((e||[]).length)}),[Z.keyEntities,f]),re=l.useMemo((function(){return!1!==S&&(S||!Z.loadData&&!ie||Z.loadData&&e.loaded&&!ie)}),[S,Z.loadData,ie,e.loaded]);l.useEffect((function(){I||"function"!=typeof Z.loadData||!T||re||e.loaded||Z.onNodeLoad((0,m.F)(e))}),[I,Z.loadData,Z.onNodeLoad,T,re,e]);var se=l.useMemo((function(){var e;return null!==(e=Z.draggable)&&void 0!==e&&e.icon?l.createElement("span",{className:"".concat(Z.prefixCls,"-draggable-icon")},Z.draggable.icon):null}),[Z.draggable]),ae=function(t){var n=e.switcherIcon||Z.switcherIcon;return"function"==typeof n?n((0,s.Z)((0,s.Z)({},e),{},{isLeaf:t})):n},oe=l.useMemo((function(){if(!W)return null;var t="boolean"!=typeof W?W:null;return l.createElement("span",{className:c()("".concat(Z.prefixCls,"-checkbox"),(0,r.Z)((0,r.Z)((0,r.Z)({},"".concat(Z.prefixCls,"-checkbox-checked"),L),"".concat(Z.prefixCls,"-checkbox-indeterminate"),!L&&R),"".concat(Z.prefixCls,"-checkbox-disabled"),V||e.disableCheckbox)),onClick:Y,role:"checkbox","aria-checked":R?"mixed":L,"aria-disabled":V||e.disableCheckbox,"aria-label":"Select ".concat("string"==typeof e.title?e.title:"tree node")},t)}),[W,L,R,V,e.disableCheckbox,e.title]),le=l.useMemo((function(){return re?null:T?y:_}),[re,T]),ue=l.useMemo((function(){return l.createElement("span",{className:c()("".concat(Z.prefixCls,"-iconEle"),"".concat(Z.prefixCls,"-icon__").concat(le||"docu"),(0,r.Z)({},"".concat(Z.prefixCls,"-icon_loading"),I))})}),[Z.prefixCls,le,I]),ce=l.useMemo((function(){var t=Boolean(Z.draggable);return!e.disabled&&t&&Z.dragOverNodeKey===f?Z.dropIndicatorRender({dropPosition:Z.dropPosition,dropLevelOffset:Z.dropLevelOffset,indent:Z.indent,prefixCls:Z.prefixCls,direction:Z.direction}):null}),[Z.dropPosition,Z.dropLevelOffset,Z.indent,Z.prefixCls,Z.direction,Z.draggable,Z.dragOverNodeKey,Z.dropIndicatorRender]),de=l.useMemo((function(){var t,n,i=e.title,s=void 0===i?"---":i,a="".concat(Z.prefixCls,"-node-content-wrapper");if(Z.showIcon){var o=e.icon||Z.icon;t=o?l.createElement("span",{className:c()("".concat(Z.prefixCls,"-iconEle"),"".concat(Z.prefixCls,"-icon__customize"))},"function"==typeof o?o(e):o):ue}else Z.loadData&&I&&(t=ue);return n="function"==typeof s?s(P):Z.titleRender?Z.titleRender(P):s,l.createElement("span",{ref:U,title:"string"==typeof s?s:"",className:c()(a,"".concat(a,"-").concat(le||"normal"),(0,r.Z)({},"".concat(Z.prefixCls,"-node-selected"),!V&&(D||G))),onMouseEnter:J,onMouseLeave:$,onContextMenu:ee,onClick:X,onDoubleClick:Q},t,l.createElement("span",{className:"".concat(Z.prefixCls,"-title")},n),ce)}),[Z.prefixCls,Z.showIcon,e,Z.icon,ue,Z.titleRender,P,le,J,$,ee,X,Q]),he=(0,d.Z)(B,{aria:!0,data:!0}),fe=((0,g.Z)(Z.keyEntities,f)||{}).level,pe=A[A.length-1],ge=!V&&te,me=Z.draggingNodeKey===f,ve=void 0!==F?{"aria-selected":!!F}:void 0;return l.createElement("div",(0,i.Z)({ref:N,role:"treeitem","aria-expanded":S?void 0:T,className:c()(b,"".concat(Z.prefixCls,"-treenode"),(u={},(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)(u,"".concat(Z.prefixCls,"-treenode-disabled"),V),"".concat(Z.prefixCls,"-treenode-switcher-").concat(T?"open":"close"),!S),"".concat(Z.prefixCls,"-treenode-checkbox-checked"),L),"".concat(Z.prefixCls,"-treenode-checkbox-indeterminate"),R),"".concat(Z.prefixCls,"-treenode-selected"),D),"".concat(Z.prefixCls,"-treenode-loading"),I),"".concat(Z.prefixCls,"-treenode-active"),M),"".concat(Z.prefixCls,"-treenode-leaf-last"),pe),"".concat(Z.prefixCls,"-treenode-draggable"),te),"dragging",me),(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)(u,"drop-target",Z.dropTargetKey===f),"drop-container",Z.dropContainerKey===f),"drag-over",!V&&w),"drag-over-gap-top",!V&&x),"drag-over-gap-bottom",!V&&k),"filter-node",null===(n=Z.filterTreeNode)||void 0===n?void 0:n.call(Z,(0,m.F)(e))),"".concat(Z.prefixCls,"-treenode-leaf"),re))),style:E,draggable:ge,onDragStart:ge?function(t){t.stopPropagation(),H(!0),Z.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(e){}}:void 0,onDragEnter:te?function(t){t.preventDefault(),t.stopPropagation(),Z.onNodeDragEnter(t,e)}:void 0,onDragOver:te?function(t){t.preventDefault(),t.stopPropagation(),Z.onNodeDragOver(t,e)}:void 0,onDragLeave:te?function(t){t.stopPropagation(),Z.onNodeDragLeave(t,e)}:void 0,onDrop:te?function(t){t.preventDefault(),t.stopPropagation(),H(!1),Z.onNodeDrop(t,e)}:void 0,onDragEnd:te?function(t){t.stopPropagation(),H(!1),Z.onNodeDragEnd(t,e)}:void 0,onMouseMove:O},ve,he),l.createElement(p,{prefixCls:Z.prefixCls,level:fe,isStart:C,isEnd:A}),se,function(){if(re){var e=ae(!0);return!1!==e?l.createElement("span",{className:c()("".concat(Z.prefixCls,"-switcher"),"".concat(Z.prefixCls,"-switcher-noop"))},e):null}var t=ae(!1);return!1!==t?l.createElement("span",{onClick:ne,className:c()("".concat(Z.prefixCls,"-switcher"),"".concat(Z.prefixCls,"-switcher_").concat(T?y:_))},t):null}(),oe,de)};b.isTreeNode=1;var E=b},30699:function(e,t,n){"use strict";n.d(t,{k:function(){return r},y:function(){return s}});var i=n(59301),r=i.createContext(null),s=i.createContext({})},3741:function(e,t,n){"use strict";n.d(t,{OF:function(){return A.Z},y6:function(){return _.y},ZP:function(){return Y}});var i=n(54476),r=n(76190),s=n(33885),a=n(94480),o=n(67732),l=n(83652),u=n(31226),c=n(42403),d=n(158),h=n(20068),f=n(92310),p=n.n(f),g=n(10228),m=n(26112),v=n(48736),y=n(59301),_=n(30699);var b=function(e){var t=e.dropPosition,n=e.dropLevelOffset,i=e.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:r.top=0,r.left=-n*i;break;case 1:r.bottom=0,r.left=-n*i;break;case 0:r.bottom=0,r.left=i}return y.createElement("div",{style:r})};function E(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var w=n(42978),x=n(75931),k=n(34280),S=n(48911),C=n(77900),A=n(639);var T=function(e,t){var n=y.useState(!1),i=(0,w.Z)(n,2),r=i[0],s=i[1];(0,k.Z)((function(){if(r)return e(),function(){t()}}),[r]),(0,k.Z)((function(){return s(!0),function(){s(!1)}}),[])},D=n(34061),L=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"];var R=y.forwardRef((function(e,t){var n=e.className,r=e.style,s=e.motion,a=e.motionNodes,o=e.motionType,l=e.onMotionStart,u=e.onMotionEnd,c=e.active,d=e.treeNodeRequiredProps,h=(0,x.Z)(e,L),f=y.useState(!0),g=(0,w.Z)(f,2),m=g[0],v=g[1],b=y.useContext(_.k).prefixCls,S=a&&"hide"!==o;(0,k.Z)((function(){a&&S!==m&&v(S)}),[a]);var R=y.useRef(!1),I=function(){a&&!R.current&&(R.current=!0,u())};T((function(){a&&l()}),I);return a?y.createElement(C.default,(0,i.Z)({ref:t,visible:m},s,{motionAppear:"show"===o,onVisibleChanged:function(e){S===e&&I()}}),(function(e,t){var n=e.className,r=e.style;return y.createElement("div",{ref:t,className:p()("".concat(b,"-treenode-motion"),n),style:r},a.map((function(e){var t=Object.assign({},(E(e.data),e.data)),n=e.title,r=e.key,s=e.isStart,a=e.isEnd;delete t.children;var o=(0,D.H8)(r,d);return y.createElement(A.Z,(0,i.Z)({},t,o,{title:n,active:c,data:e.data,key:r,isStart:s,isEnd:a}))})))})):y.createElement(A.Z,(0,i.Z)({domRef:t,className:n,style:r},h,{active:c}))}));function I(e,t,n){var i=e.findIndex((function(e){return e.key===n})),r=e[i+1],s=t.findIndex((function(e){return e.key===n}));if(r){var a=t.findIndex((function(e){return e.key===r.key}));return t.slice(s+1,a)}return t.slice(s+1)}var N=["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"],M={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},P=function(){},O="RC_TREE_MOTION_".concat(Math.random()),F={key:O},B={key:O,level:0,index:0,pos:"0",node:F,nodes:[F]},Z={parent:null,children:[],pos:B.pos,data:F,title:null,key:O,isStart:[],isEnd:[]};function j(e,t,n,i){return!1!==t&&n?e.slice(0,Math.ceil(n/i)+1):e}function U(e){var t=e.key,n=e.pos;return(0,D.km)(t,n)}var K=y.forwardRef((function(e,t){var n=e.prefixCls,r=e.data,s=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,o=e.checkedKeys,l=e.loadedKeys,u=e.loadingKeys,c=e.halfCheckedKeys,d=e.keyEntities,h=e.disabled,f=e.dragging,p=e.dragOverNodeKey,g=e.dropPosition,m=e.motion,v=e.height,_=e.itemHeight,b=e.virtual,C=e.scrollWidth,A=e.focusable,T=e.activeItem,L=e.focused,F=e.tabIndex,B=e.onKeyDown,K=e.onFocus,z=e.onBlur,G=e.onActiveChange,H=e.onListChangeStart,V=e.onListChangeEnd,W=(0,x.Z)(e,N),Y=y.useRef(null),q=y.useRef(null);y.useImperativeHandle(t,(function(){return{scrollTo:function(e){Y.current.scrollTo(e)},getIndentWidth:function(){return q.current.offsetWidth}}}));var X=y.useState(s),Q=(0,w.Z)(X,2),J=Q[0],$=Q[1],ee=y.useState(r),te=(0,w.Z)(ee,2),ne=te[0],ie=te[1],re=y.useState(r),se=(0,w.Z)(re,2),ae=se[0],oe=se[1],le=y.useState([]),ue=(0,w.Z)(le,2),ce=ue[0],de=ue[1],he=y.useState(null),fe=(0,w.Z)(he,2),pe=fe[0],ge=fe[1],me=y.useRef(r);function ve(){var e=me.current;ie(e),oe(e),de([]),ge(null),V()}me.current=r,(0,k.Z)((function(){$(s);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,i=t.length;if(1!==Math.abs(n-i))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var i=t.filter((function(e){return!n.has(e)}));return 1===i.length?i[0]:null}return n<i?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(J,s);if(null!==e.key)if(e.add){var t=ne.findIndex((function(t){return t.key===e.key})),n=j(I(ne,r,e.key),b,v,_),i=ne.slice();i.splice(t+1,0,Z),oe(i),de(n),ge("show")}else{var a=r.findIndex((function(t){return t.key===e.key})),o=j(I(r,ne,e.key),b,v,_),l=r.slice();l.splice(a+1,0,Z),oe(l),de(o),ge("hide")}else ne!==r&&(ie(r),oe(r))}),[s,r]),y.useEffect((function(){f||ve()}),[f]);var ye=m?ae:r,_e={expandedKeys:s,selectedKeys:a,loadedKeys:l,loadingKeys:u,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:p,dropPosition:g,keyEntities:d};return y.createElement(y.Fragment,null,L&&T&&y.createElement("span",{style:M,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(T)),y.createElement("div",null,y.createElement("input",{style:M,disabled:!1===A||h,tabIndex:!1!==A?F:null,onKeyDown:B,onFocus:K,onBlur:z,value:"",onChange:P,"aria-label":"for screen reader"})),y.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},y.createElement("div",{className:"".concat(n,"-indent")},y.createElement("div",{ref:q,className:"".concat(n,"-indent-unit")}))),y.createElement(S.Z,(0,i.Z)({},W,{data:ye,itemKey:U,height:v,fullHeight:!1,virtual:b,itemHeight:_,scrollWidth:C,prefixCls:"".concat(n,"-list"),ref:Y,role:"tree",onVisibleChange:function(e){e.every((function(e){return U(e)!==O}))&&ve()}}),(function(e){var t=e.pos,n=Object.assign({},(E(e.data),e.data)),r=e.title,s=e.key,a=e.isStart,o=e.isEnd,l=(0,D.km)(s,t);delete n.key,delete n.children;var u=(0,D.H8)(l,_e);return y.createElement(R,(0,i.Z)({},n,u,{title:r,active:!!T&&s===T.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:m,motionNodes:s===O?ce:null,motionType:pe,onMotionStart:H,onMotionEnd:ve,treeNodeRequiredProps:_e,onMouseMove:function(){G(null)}}))})))}));var z=K,G=n(82661),H=n(34643),V=n(65065),W=function(e){(0,c.Z)(n,e);var t=(0,d.Z)(n);function n(){var e;(0,o.Z)(this,n);for(var i=arguments.length,r=new Array(i),l=0;l<i;l++)r[l]=arguments[l];return e=t.call.apply(t,[this].concat(r)),(0,h.Z)((0,u.Z)(e),"destroyed",!1),(0,h.Z)((0,u.Z)(e),"delayedDragEnterLogic",void 0),(0,h.Z)((0,u.Z)(e),"loadingRetryTimes",{}),(0,h.Z)((0,u.Z)(e),"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,D.w$)()}),(0,h.Z)((0,u.Z)(e),"dragStartMousePosition",null),(0,h.Z)((0,u.Z)(e),"dragNodeProps",null),(0,h.Z)((0,u.Z)(e),"currentMouseOverDroppableNodeKey",null),(0,h.Z)((0,u.Z)(e),"listRef",y.createRef()),(0,h.Z)((0,u.Z)(e),"onNodeDragStart",(function(t,n){var i=e.state,r=i.expandedKeys,s=i.keyEntities,a=e.props.onDragStart,o=n.eventKey;e.dragNodeProps=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var l=(0,G._5)(r,o);e.setState({draggingNodeKey:o,dragChildrenKeys:(0,G.wA)(o,s),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(l),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:(0,D.F)(n)})})),(0,h.Z)((0,u.Z)(e),"onNodeDragEnter",(function(t,n){var i=e.state,r=i.expandedKeys,s=i.keyEntities,o=i.dragChildrenKeys,l=i.flattenNodes,u=i.indent,c=e.props,d=c.onDragEnter,h=c.onExpand,f=c.allowDrop,p=c.direction,g=n.pos,m=n.eventKey;if(e.currentMouseOverDroppableNodeKey!==m&&(e.currentMouseOverDroppableNodeKey=m),e.dragNodeProps){var v=(0,G.OM)(t,e.dragNodeProps,n,u,e.dragStartMousePosition,f,l,s,r,p),y=v.dropPosition,_=v.dropLevelOffset,b=v.dropTargetKey,E=v.dropContainerKey,w=v.dropTargetPos,x=v.dropAllowed,k=v.dragOverNodeKey;!o.includes(b)&&x?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),e.dragNodeProps.eventKey!==n.eventKey&&(t.persist(),e.delayedDragEnterLogic[g]=window.setTimeout((function(){if(null!==e.state.draggingNodeKey){var i=(0,a.Z)(r),o=(0,V.Z)(s,n.eventKey);o&&(o.children||[]).length&&(i=(0,G.L0)(r,n.eventKey)),e.props.hasOwnProperty("expandedKeys")||e.setExpandedKeys(i),null==h||h(i,{node:(0,D.F)(n),expanded:!0,nativeEvent:t.nativeEvent})}}),800)),e.dragNodeProps.eventKey!==b||0!==_?(e.setState({dragOverNodeKey:k,dropPosition:y,dropLevelOffset:_,dropTargetKey:b,dropContainerKey:E,dropTargetPos:w,dropAllowed:x}),null==d||d({event:t,node:(0,D.F)(n),expandedKeys:r})):e.resetDragState()):e.resetDragState()}else e.resetDragState()})),(0,h.Z)((0,u.Z)(e),"onNodeDragOver",(function(t,n){var i=e.state,r=i.dragChildrenKeys,s=i.flattenNodes,a=i.keyEntities,o=i.expandedKeys,l=i.indent,u=e.props,c=u.onDragOver,d=u.allowDrop,h=u.direction;if(e.dragNodeProps){var f=(0,G.OM)(t,e.dragNodeProps,n,l,e.dragStartMousePosition,d,s,a,o,h),p=f.dropPosition,g=f.dropLevelOffset,m=f.dropTargetKey,v=f.dropContainerKey,y=f.dropTargetPos,_=f.dropAllowed,b=f.dragOverNodeKey;!r.includes(m)&&_&&(e.dragNodeProps.eventKey===m&&0===g?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():p===e.state.dropPosition&&g===e.state.dropLevelOffset&&m===e.state.dropTargetKey&&v===e.state.dropContainerKey&&y===e.state.dropTargetPos&&_===e.state.dropAllowed&&b===e.state.dragOverNodeKey||e.setState({dropPosition:p,dropLevelOffset:g,dropTargetKey:m,dropContainerKey:v,dropTargetPos:y,dropAllowed:_,dragOverNodeKey:b}),null==c||c({event:t,node:(0,D.F)(n)}))}})),(0,h.Z)((0,u.Z)(e),"onNodeDragLeave",(function(t,n){e.currentMouseOverDroppableNodeKey!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var i=e.props.onDragLeave;null==i||i({event:t,node:(0,D.F)(n)})})),(0,h.Z)((0,u.Z)(e),"onWindowDragEnd",(function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)})),(0,h.Z)((0,u.Z)(e),"onNodeDragEnd",(function(t,n){var i=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==i||i({event:t,node:(0,D.F)(n)}),e.dragNodeProps=null,window.removeEventListener("dragend",e.onWindowDragEnd)})),(0,h.Z)((0,u.Z)(e),"onNodeDrop",(function(t,n){var i,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.state,o=a.dragChildrenKeys,l=a.dropPosition,u=a.dropTargetKey,c=a.dropTargetPos,d=a.dropAllowed;if(d){var h=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==u){var f=(0,s.Z)((0,s.Z)({},(0,D.H8)(u,e.getTreeNodeRequiredProps())),{},{active:(null===(i=e.getActiveItem())||void 0===i?void 0:i.key)===u,data:(0,V.Z)(e.state.keyEntities,u).node}),p=o.includes(u);(0,v.ZP)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var g=(0,G.yx)(c),m={event:t,node:(0,D.F)(f),dragNode:e.dragNodeProps?(0,D.F)(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(o),dropToGap:0!==l,dropPosition:l+Number(g[g.length-1])};r||null==h||h(m),e.dragNodeProps=null}}})),(0,h.Z)((0,u.Z)(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),(0,h.Z)((0,u.Z)(e),"triggerExpandActionExpand",(function(t,n){var i=e.state,r=i.expandedKeys,a=i.flattenNodes,o=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var u=a.filter((function(e){return e.key===l}))[0],c=(0,D.F)((0,s.Z)((0,s.Z)({},(0,D.H8)(l,e.getTreeNodeRequiredProps())),{},{data:u.data}));e.setExpandedKeys(o?(0,G._5)(r,l):(0,G.L0)(r,l)),e.onNodeExpand(t,c)}})),(0,h.Z)((0,u.Z)(e),"onNodeClick",(function(t,n){var i=e.props,r=i.onClick;"click"===i.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)})),(0,h.Z)((0,u.Z)(e),"onNodeDoubleClick",(function(t,n){var i=e.props,r=i.onDoubleClick;"doubleClick"===i.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)})),(0,h.Z)((0,u.Z)(e),"onNodeSelect",(function(t,n){var i=e.state.selectedKeys,r=e.state,s=r.keyEntities,a=r.fieldNames,o=e.props,l=o.onSelect,u=o.multiple,c=n.selected,d=n[a.key],h=!c,f=(i=h?u?(0,G.L0)(i,d):[d]:(0,G._5)(i,d)).map((function(e){var t=(0,V.Z)(s,e);return t?t.node:null})).filter(Boolean);e.setUncontrolledState({selectedKeys:i}),null==l||l(i,{event:"select",selected:h,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})})),(0,h.Z)((0,u.Z)(e),"onNodeCheck",(function(t,n,i){var r,s=e.state,o=s.keyEntities,l=s.checkedKeys,u=s.halfCheckedKeys,c=e.props,d=c.checkStrictly,h=c.onCheck,f=n.key,p={event:"check",node:n,checked:i,nativeEvent:t.nativeEvent};if(d){var g=i?(0,G.L0)(l,f):(0,G._5)(l,f);r={checked:g,halfChecked:(0,G._5)(u,f)},p.checkedNodes=g.map((function(e){return(0,V.Z)(o,e)})).filter(Boolean).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:g})}else{var m=(0,H.S)([].concat((0,a.Z)(l),[f]),!0,o),v=m.checkedKeys,y=m.halfCheckedKeys;if(!i){var _=new Set(v);_.delete(f);var b=(0,H.S)(Array.from(_),{checked:!1,halfCheckedKeys:y},o);v=b.checkedKeys,y=b.halfCheckedKeys}r=v,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=y,v.forEach((function(e){var t=(0,V.Z)(o,e);if(t){var n=t.node,i=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:i})}})),e.setUncontrolledState({checkedKeys:v},!1,{halfCheckedKeys:y})}null==h||h(r,p)})),(0,h.Z)((0,u.Z)(e),"onNodeLoad",(function(t){var n,i=t.key,r=e.state.keyEntities,s=(0,V.Z)(r,i);if(null==s||null===(n=s.children)||void 0===n||!n.length){var a=new Promise((function(n,r){e.setState((function(s){var a=s.loadedKeys,o=void 0===a?[]:a,l=s.loadingKeys,u=void 0===l?[]:l,c=e.props,d=c.loadData,h=c.onLoad;return!d||o.includes(i)||u.includes(i)?null:(d(t).then((function(){var r=e.state.loadedKeys,s=(0,G.L0)(r,i);null==h||h(s,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:s}),e.setState((function(e){return{loadingKeys:(0,G._5)(e.loadingKeys,i)}})),n()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:(0,G._5)(e.loadingKeys,i)}})),e.loadingRetryTimes[i]=(e.loadingRetryTimes[i]||0)+1,e.loadingRetryTimes[i]>=10){var s=e.state.loadedKeys;(0,v.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,G.L0)(s,i)}),n()}r(t)})),{loadingKeys:(0,G.L0)(u,i)})}))}));return a.catch((function(){})),a}})),(0,h.Z)((0,u.Z)(e),"onNodeMouseEnter",(function(t,n){var i=e.props.onMouseEnter;null==i||i({event:t,node:n})})),(0,h.Z)((0,u.Z)(e),"onNodeMouseLeave",(function(t,n){var i=e.props.onMouseLeave;null==i||i({event:t,node:n})})),(0,h.Z)((0,u.Z)(e),"onNodeContextMenu",(function(t,n){var i=e.props.onRightClick;i&&(t.preventDefault(),i({event:t,node:n}))})),(0,h.Z)((0,u.Z)(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];null==t||t.apply(void 0,i)})),(0,h.Z)((0,u.Z)(e),"onBlur",(function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];null==t||t.apply(void 0,i)})),(0,h.Z)((0,u.Z)(e),"getTreeNodeRequiredProps",(function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}})),(0,h.Z)((0,u.Z)(e),"setExpandedKeys",(function(t){var n=e.state,i=n.treeData,r=n.fieldNames,s=(0,D.oH)(i,t,r);e.setUncontrolledState({expandedKeys:t,flattenNodes:s},!0)})),(0,h.Z)((0,u.Z)(e),"onNodeExpand",(function(t,n){var i=e.state.expandedKeys,r=e.state,s=r.listChanging,a=r.fieldNames,o=e.props,l=o.onExpand,u=o.loadData,c=n.expanded,d=n[a.key];if(!s){var h=i.includes(d),f=!c;if((0,v.ZP)(c&&h||!c&&!h,"Expand state not sync with index check"),i=f?(0,G.L0)(i,d):(0,G._5)(i,d),e.setExpandedKeys(i),null==l||l(i,{node:n,expanded:f,nativeEvent:t.nativeEvent}),f&&u){var p=e.onNodeLoad(n);p&&p.then((function(){var t=(0,D.oH)(e.state.treeData,i,a);e.setUncontrolledState({flattenNodes:t})})).catch((function(){var t=e.state.expandedKeys,n=(0,G._5)(t,d);e.setExpandedKeys(n)}))}}})),(0,h.Z)((0,u.Z)(e),"onListChangeStart",(function(){e.setUncontrolledState({listChanging:!0})})),(0,h.Z)((0,u.Z)(e),"onListChangeEnd",(function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))})),(0,h.Z)((0,u.Z)(e),"onActiveChange",(function(t){var n=e.state.activeKey,i=e.props,r=i.onActiveChange,s=i.itemScrollOffset,a=void 0===s?0:s;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:a}),null==r||r(t))})),(0,h.Z)((0,u.Z)(e),"getActiveItem",(function(){var t=e.state,n=t.activeKey,i=t.flattenNodes;return null===n?null:i.find((function(e){return e.key===n}))||null})),(0,h.Z)((0,u.Z)(e),"offsetActiveKey",(function(t){var n=e.state,i=n.flattenNodes,r=n.activeKey,s=i.findIndex((function(e){return e.key===r}));-1===s&&t<0&&(s=i.length);var a=i[s=(s+t+i.length)%i.length];if(a){var o=a.key;e.onActiveChange(o)}else e.onActiveChange(null)})),(0,h.Z)((0,u.Z)(e),"onKeyDown",(function(t){var n=e.state,i=n.activeKey,r=n.expandedKeys,a=n.checkedKeys,o=n.fieldNames,l=e.props,u=l.onKeyDown,c=l.checkable,d=l.selectable;switch(t.which){case g.Z.UP:e.offsetActiveKey(-1),t.preventDefault();break;case g.Z.DOWN:e.offsetActiveKey(1),t.preventDefault()}var h=e.getActiveItem();if(h&&h.data){var f=e.getTreeNodeRequiredProps(),p=!1===h.data.isLeaf||!!(h.data[o.children]||[]).length,m=(0,D.F)((0,s.Z)((0,s.Z)({},(0,D.H8)(i,f)),{},{data:h.data,active:!0}));switch(t.which){case g.Z.LEFT:p&&r.includes(i)?e.onNodeExpand({},m):h.parent&&e.onActiveChange(h.parent.key),t.preventDefault();break;case g.Z.RIGHT:p&&!r.includes(i)?e.onNodeExpand({},m):h.children&&h.children.length&&e.onActiveChange(h.children[0].key),t.preventDefault();break;case g.Z.ENTER:case g.Z.SPACE:!c||m.disabled||!1===m.checkable||m.disableCheckbox?c||!d||m.disabled||!1===m.selectable||e.onNodeSelect({},m):e.onNodeCheck({},m,!a.includes(i))}}null==u||u(t)})),(0,h.Z)((0,u.Z)(e),"setUncontrolledState",(function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,a=!0,o={};Object.keys(t).forEach((function(n){e.props.hasOwnProperty(n)?a=!1:(r=!0,o[n]=t[n])})),!r||n&&!a||e.setState((0,s.Z)((0,s.Z)({},o),i))}})),(0,h.Z)((0,u.Z)(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,i=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:i}))}},{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 e,t=this.state,n=t.focused,s=t.flattenNodes,a=t.keyEntities,o=t.draggingNodeKey,l=t.activeKey,u=t.dropLevelOffset,c=t.dropContainerKey,d=t.dropTargetKey,f=t.dropPosition,g=t.dragOverNodeKey,v=t.indent,b=this.props,E=b.prefixCls,w=b.className,x=b.style,k=b.showLine,S=b.focusable,C=b.tabIndex,A=void 0===C?0:C,T=b.selectable,D=b.showIcon,L=b.icon,R=b.switcherIcon,I=b.draggable,N=b.checkable,M=b.checkStrictly,P=b.disabled,O=b.motion,F=b.loadData,B=b.filterTreeNode,Z=b.height,j=b.itemHeight,U=b.scrollWidth,K=b.virtual,G=b.titleRender,H=b.dropIndicatorRender,V=b.onContextMenu,W=b.onScroll,Y=b.direction,q=b.rootClassName,X=b.rootStyle,Q=(0,m.Z)(this.props,{aria:!0,data:!0});I&&(e="object"===(0,r.Z)(I)?I:"function"==typeof I?{nodeDraggable:I}:{});var J={prefixCls:E,selectable:T,showIcon:D,icon:L,switcherIcon:R,draggable:e,draggingNodeKey:o,checkable:N,checkStrictly:M,disabled:P,keyEntities:a,dropLevelOffset:u,dropContainerKey:c,dropTargetKey:d,dropPosition:f,dragOverNodeKey:g,indent:v,direction:Y,dropIndicatorRender:H,loadData:F,filterTreeNode:B,titleRender:G,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 y.createElement(_.k.Provider,{value:J},y.createElement("div",{className:p()(E,w,q,(0,h.Z)((0,h.Z)((0,h.Z)({},"".concat(E,"-show-line"),k),"".concat(E,"-focused"),n),"".concat(E,"-active-focused"),null!==l)),style:X},y.createElement(z,(0,i.Z)({ref:this.listRef,prefixCls:E,style:x,data:s,disabled:P,selectable:T,checkable:!!N,motion:O,dragging:null!==o,height:Z,itemHeight:j,virtual:K,focusable:S,focused:n,tabIndex:A,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:V,onScroll:W,scrollWidth:U},this.getTreeNodeRequiredProps(),Q))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,i=t.prevProps,r={prevProps:e};function a(t){return!i&&e.hasOwnProperty(t)||i&&i[t]!==e[t]}var o=t.fieldNames;if(a("fieldNames")&&(o=(0,D.w$)(e.fieldNames),r.fieldNames=o),a("treeData")?n=e.treeData:a("children")&&((0,v.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=(0,D.zn)(e.children)),n){r.treeData=n;var l=(0,D.I8)(n,{fieldNames:o});r.keyEntities=(0,s.Z)((0,h.Z)({},O,B),l.keyEntities)}var u,c=r.keyEntities||t.keyEntities;if(a("expandedKeys")||i&&a("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!i&&e.defaultExpandParent?(0,G.r7)(e.expandedKeys,c):e.expandedKeys;else if(!i&&e.defaultExpandAll){var d=(0,s.Z)({},c);delete d[O];var f=[];Object.keys(d).forEach((function(e){var t=d[e];t.children&&t.children.length&&f.push(t.key)})),r.expandedKeys=f}else!i&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?(0,G.r7)(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,n||r.expandedKeys){var p=(0,D.oH)(n||t.treeData,r.expandedKeys||t.expandedKeys,o);r.flattenNodes=p}if((e.selectable&&(a("selectedKeys")?r.selectedKeys=(0,G.BT)(e.selectedKeys,e):!i&&e.defaultSelectedKeys&&(r.selectedKeys=(0,G.BT)(e.defaultSelectedKeys,e))),e.checkable)&&(a("checkedKeys")?u=(0,G.E6)(e.checkedKeys)||{}:!i&&e.defaultCheckedKeys?u=(0,G.E6)(e.defaultCheckedKeys)||{}:n&&(u=(0,G.E6)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),u)){var g=u,m=g.checkedKeys,y=void 0===m?[]:m,_=g.halfCheckedKeys,b=void 0===_?[]:_;if(!e.checkStrictly){var E=(0,H.S)(y,!0,c);y=E.checkedKeys,b=E.halfCheckedKeys}r.checkedKeys=y,r.halfCheckedKeys=b}return a("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),n}(y.Component);(0,h.Z)(W,"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:b,allowDrop:function(){return!0},expandAction:!1}),(0,h.Z)(W,"TreeNode",A.Z);var Y=W},82661:function(e,t,n){"use strict";n.d(t,{BT:function(){return f},E6:function(){return p},L0:function(){return l},OM:function(){return h},_5:function(){return o},r7:function(){return g},wA:function(){return c},yx:function(){return u}});var i=n(94480),r=n(76190),s=n(48736),a=(n(59301),n(639),n(65065));n(34061);function o(e,t){if(!e)return[];var n=e.slice(),i=n.indexOf(t);return i>=0&&n.splice(i,1),n}function l(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function u(e){return e.split("-")}function c(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var i=t.key,r=t.children;n.push(i),e(r)}))}((0,a.Z)(t,e).children),n}function d(e){if(e.parent){var t=u(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function h(e,t,n,i,r,s,o,l,c,h){var f,p=e.clientX,g=e.clientY,m=e.target.getBoundingClientRect(),v=m.top,y=m.height,_=(("rtl"===h?-1:1)*(((null==r?void 0:r.x)||0)-p)-12)/i,b=c.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),E=(0,a.Z)(l,n.eventKey);if(g<v+y/2){var w=o.findIndex((function(e){return e.key===E.key})),x=o[w<=0?0:w-1].key;E=(0,a.Z)(l,x)}var k=E.key,S=E,C=E.key,A=0,T=0;if(!b.includes(k))for(var D=0;D<_&&d(E);D+=1)E=E.parent,T+=1;var L,R=t.data,I=E.node,N=!0;return L=u(E.pos),0===Number(L[L.length-1])&&0===E.level&&g<v+y/2&&s({dragNode:R,dropNode:I,dropPosition:-1})&&E.key===n.eventKey?A=-1:(S.children||[]).length&&b.includes(C)?s({dragNode:R,dropNode:I,dropPosition:0})?A=0:N=!1:0===T?_>-1.5?s({dragNode:R,dropNode:I,dropPosition:1})?A=1:N=!1:s({dragNode:R,dropNode:I,dropPosition:0})?A=0:s({dragNode:R,dropNode:I,dropPosition:1})?A=1:N=!1:s({dragNode:R,dropNode:I,dropPosition:1})?A=1:N=!1,{dropPosition:A,dropLevelOffset:T,dropTargetKey:E.key,dropTargetPos:E.pos,dragOverNodeKey:C,dropContainerKey:0===A?null:(null===(f=E.parent)||void 0===f?void 0:f.key)||null,dropAllowed:N}}function f(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function p(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,r.Z)(e))return(0,s.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function g(e,t){var n=new Set;function r(e){if(!n.has(e)){var i=(0,a.Z)(t,e);if(i){n.add(e);var s=i.parent;i.node.disabled||s&&r(s.key)}}}return(e||[]).forEach((function(e){r(e)})),(0,i.Z)(n)}},34643:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var i=n(48736),r=n(65065);function s(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function a(e){var t=e||{},n=t.disabled,i=t.disableCheckbox,r=t.checkable;return!(!n&&!i)||!1===r}function o(e,t,n,o){var l,u=[];l=o||a;var c,d=new Set(e.filter((function(e){var t=!!(0,r.Z)(n,e);return t||u.push(e),t}))),h=new Map,f=0;return Object.keys(n).forEach((function(e){var t=n[e],i=t.level,r=h.get(i);r||(r=new Set,h.set(i,r)),r.add(t),f=Math.max(f,i)})),(0,i.ZP)(!u.length,"Tree missing follow keys: ".concat(u.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),c=!0===t?function(e,t,n,i){for(var r=new Set(e),a=new Set,o=0;o<=n;o+=1)(t.get(o)||new Set).forEach((function(e){var t=e.key,n=e.node,s=e.children,a=void 0===s?[]:s;r.has(t)&&!i(n)&&a.filter((function(e){return!i(e.node)})).forEach((function(e){r.add(e.key)}))}));for(var l=new Set,u=n;u>=0;u-=1)(t.get(u)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!i(n)&&e.parent&&!l.has(e.parent.key))if(i(e.parent.node))l.add(t.key);else{var s=!0,o=!1;(t.children||[]).filter((function(e){return!i(e.node)})).forEach((function(e){var t=e.key,n=r.has(t);s&&!n&&(s=!1),o||!n&&!a.has(t)||(o=!0)})),s&&r.add(t.key),o&&a.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(s(a,r))}}(d,h,f,l):function(e,t,n,i,r){for(var a=new Set(e),o=new Set(t),l=0;l<=i;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,i=e.children,s=void 0===i?[]:i;a.has(t)||o.has(t)||r(n)||s.filter((function(e){return!r(e.node)})).forEach((function(e){a.delete(e.key)}))}));o=new Set;for(var u=new Set,c=i;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!u.has(e.parent.key))if(r(e.parent.node))u.add(t.key);else{var i=!0,s=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);i&&!n&&(i=!1),s||!n&&!o.has(t)||(s=!0)})),i||a.delete(t.key),s&&o.add(t.key),u.add(t.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(s(o,a))}}(d,t.halfCheckedKeys,h,f,l),c}},65065:function(e,t,n){"use strict";function i(e,t){return e[t]}n.d(t,{Z:function(){return i}})},34061:function(e,t,n){"use strict";n.d(t,{F:function(){return b},H8:function(){return _},I8:function(){return y},km:function(){return f},oH:function(){return m},w$:function(){return p},zn:function(){return g}});var i=n(76190),r=n(94480),s=n(33885),a=n(75931),o=n(11592),l=n(2738),u=n(48736),c=n(65065),d=["children"];function h(e,t){return"".concat(e,"-").concat(t)}function f(e,t){return null!=e?e:t}function p(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function g(e){return function e(t){return(0,o.Z)(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return(0,u.ZP)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,i=t.props,r=i.children,o=(0,a.Z)(i,d),l=(0,s.Z)({key:n},o),c=e(r);return c.length&&(l.children=c),l})).filter((function(e){return e}))}(e)}function m(e,t,n){var i=p(n),s=i._title,a=i.key,o=i.children,u=new Set(!0===t?[]:t),c=[];return function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(d,p){for(var g,m=h(i?i.pos:"0",p),v=f(d[a],m),y=0;y<s.length;y+=1){var _=s[y];if(void 0!==d[_]){g=d[_];break}}var b=Object.assign((0,l.Z)(d,[].concat((0,r.Z)(s),[a,o])),{title:g,key:v,parent:i,pos:m,children:null,data:d,isStart:[].concat((0,r.Z)(i?i.isStart:[]),[0===p]),isEnd:[].concat((0,r.Z)(i?i.isEnd:[]),[p===n.length-1])});return c.push(b),!0===t||u.has(v)?b.children=e(d[o]||[],b):b.children=[],b}))}(e),c}function v(e,t,n){var s,a=("object"===(0,i.Z)(n)?n:{externalGetKey:n})||{},o=a.childrenPropName,l=a.externalGetKey,u=p(a.fieldNames),c=u.key,d=u.children,g=o||d;l?"string"==typeof l?s=function(e){return e[l]}:"function"==typeof l&&(s=function(e){return l(e)}):s=function(e,t){return f(e[c],t)},function n(i,a,o,l){var u=i?i[g]:e,c=i?h(o.pos,a):"0",d=i?[].concat((0,r.Z)(l),[i]):[];if(i){var f=s(i,c),p={node:i,index:a,pos:c,key:f,parentPos:o.node?o.pos:null,level:o.level+1,nodes:d};t(p)}u&&u.forEach((function(e,t){n(e,t,{node:i,pos:c,level:o?o.level+1:-1},d)}))}(null)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,i=t.processEntity,r=t.onProcessFinished,s=t.externalGetKey,a=t.childrenPropName,o=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,u=s||l,c={},d={},h={posEntities:c,keyEntities:d};return n&&(h=n(h)||h),v(e,(function(e){var t=e.node,n=e.index,r=e.pos,s=e.key,a=e.parentPos,o=e.level,l={node:t,nodes:e.nodes,index:n,key:s,pos:r,level:o},u=f(s,r);c[r]=l,d[u]=l,l.parent=c[a],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),i&&i(l,h)}),{externalGetKey:u,childrenPropName:a,fieldNames:o}),r&&r(h),h}function _(e,t){var n=t.expandedKeys,i=t.selectedKeys,r=t.loadedKeys,s=t.loadingKeys,a=t.checkedKeys,o=t.halfCheckedKeys,l=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,h=(0,c.Z)(d,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==i.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==s.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==o.indexOf(e),pos:String(h?h.pos:""),dragOver:l===e&&0===u,dragOverGapTop:l===e&&-1===u,dragOverGapBottom:l===e&&1===u}}function b(e){var t=e.data,n=e.expanded,i=e.selected,r=e.checked,a=e.loaded,o=e.loading,l=e.halfChecked,c=e.dragOver,d=e.dragOverGapTop,h=e.dragOverGapBottom,f=e.pos,p=e.active,g=e.eventKey,m=(0,s.Z)((0,s.Z)({},t),{},{expanded:n,selected:i,checked:r,loaded:a,loading:o,halfChecked:l,dragOver:c,dragOverGapTop:d,dragOverGapBottom:h,pos:f,active:p,key:g});return"props"in m||Object.defineProperty(m,"props",{get:function(){return(0,u.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}},8224:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(4676);function r(e,t,n,r){var s=i.unstable_batchedUpdates?function(e){i.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,s,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,s,r)}}}},24514:function(e,t,n){"use strict";n.d(t,{G:function(){return s}});var i=n(47273),r=function(e){if((0,i.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function s(e,t){return Array.isArray(e)||void 0===t?r(e):function(e,t){if(!r(e))return!1;var n=document.createElement("div"),i=n.style[e];return n.style[e]=t,n.style[e]!==i}(e,t)}},49658:function(e,t){"use strict";t.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=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(e)||/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==e?void 0:e.substr(0,4))}},48911:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var i=n(54476),r=n(76190),s=n(33885),a=n(20068),o=n(42978),l=n(75931),u=n(92310),c=n.n(u),d=n(29301),h=n(70425),f=n(34280),p=n(59301),g=n(4676),m=p.forwardRef((function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,l=e.children,u=e.prefixCls,h=e.onInnerResize,f=e.innerProps,g=e.rtl,m=e.extra,v={},y={display:"flex",flexDirection:"column"};return void 0!==r&&(v={height:n,position:"relative",overflow:"hidden"},y=(0,s.Z)((0,s.Z)({},y),{},(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({transform:"translateY(".concat(r,"px)")},g?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:v},p.createElement(d.Z,{onResize:function(e){e.offsetHeight&&h&&h()}},p.createElement("div",(0,i.Z)({style:y,className:c()((0,a.Z)({},"".concat(u,"-holder-inner"),u)),ref:t},f),l,m)))}));m.displayName="Filler";var v=m;function y(e){var t=e.children,n=e.setRef,i=p.useCallback((function(e){n(e)}),[]);return p.cloneElement(t,{ref:i})}function _(e,t,n){var i=p.useState(e),r=(0,o.Z)(i,2),s=r[0],a=r[1],l=p.useState(null),u=(0,o.Z)(l,2),c=u[0],d=u[1];return p.useEffect((function(){var i=function(e,t,n){var i,r,s=e.length,a=t.length;if(0===s&&0===a)return null;s<a?(i=e,r=t):(i=t,r=e);var o={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):o}for(var u=null,c=1!==Math.abs(s-a),d=0;d<r.length;d+=1){var h=l(i[d]);if(h!==l(r[d])){u=d,c=c||h!==l(r[d+1]);break}}return null===u?null:{index:u,multiple:c}}(s||[],e||[],t);void 0!==(null==i?void 0:i.index)&&(null==n||n(i.index),d(e[i.index])),a(e)}),[e]),[c]}var b=n(16089),E="object"===("undefined"==typeof navigator?"undefined":(0,r.Z)(navigator))&&/Firefox/i.test(navigator.userAgent),w=function(e,t,n,i){var r=(0,p.useRef)(!1),s=(0,p.useRef)(null);function a(){clearTimeout(s.current),r.current=!0,s.current=setTimeout((function(){r.current=!1}),50)}var o=(0,p.useRef)({top:e,bottom:t,left:n,right:i});return o.current.top=e,o.current.bottom=t,o.current.left=n,o.current.right=i,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e?t<0&&o.current.left||t>0&&o.current.right:t<0&&o.current.top||t>0&&o.current.bottom;return n&&i?(clearTimeout(s.current),r.current=!1):i&&!r.current||a(),!r.current&&i}};function x(e,t,n,i,r,s,a){var o=(0,p.useRef)(0),l=(0,p.useRef)(null),u=(0,p.useRef)(null),c=(0,p.useRef)(!1),d=w(t,n,i,r);var h=(0,p.useRef)(null),f=(0,p.useRef)(null);return[function(t){if(e){b.Z.cancel(f.current),f.current=(0,b.Z)((function(){h.current=null}),2);var n=t.deltaX,i=t.deltaY,r=t.shiftKey,p=n,g=i;("sx"===h.current||!h.current&&r&&i&&!n)&&(p=i,g=0,h.current="sx");var m=Math.abs(p),v=Math.abs(g);null===h.current&&(h.current=s&&m>v?"x":"y"),"y"===h.current?function(e,t){if(b.Z.cancel(l.current),!d(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,o.current+=t,u.current=t,E||n.preventDefault(),l.current=(0,b.Z)((function(){var e=c.current?10:1;a(o.current*e,!1),o.current=0})))}}(t,g):function(e,t){a(t,!0),E||e.preventDefault()}(t,p)}},function(t){e&&(c.current=t.detail===u.current)}]}var k=n(67732),S=n(83652),C=function(){function e(){(0,k.Z)(this,e),(0,a.Z)(this,"maps",void 0),(0,a.Z)(this,"id",0),(0,a.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,S.Z)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function A(e){var t=parseFloat(e);return isNaN(t)?0:t}var T=14/15;function D(e){return Math.floor(Math.pow(e,.5))}function L(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var R=p.forwardRef((function(e,t){var n=e.prefixCls,i=e.rtl,r=e.scrollOffset,l=e.scrollRange,u=e.onStartMove,d=e.onStopMove,h=e.onScroll,f=e.horizontal,g=e.spinSize,m=e.containerSize,v=e.style,y=e.thumbStyle,_=e.showScrollBar,E=p.useState(!1),w=(0,o.Z)(E,2),x=w[0],k=w[1],S=p.useState(null),C=(0,o.Z)(S,2),A=C[0],T=C[1],D=p.useState(null),R=(0,o.Z)(D,2),I=R[0],N=R[1],M=!i,P=p.useRef(),O=p.useRef(),F=p.useState(_),B=(0,o.Z)(F,2),Z=B[0],j=B[1],U=p.useRef(),K=function(){!0!==_&&!1!==_&&(clearTimeout(U.current),j(!0),U.current=setTimeout((function(){j(!1)}),3e3))},z=l-m||0,G=m-g||0,H=p.useMemo((function(){return 0===r||0===z?0:r/z*G}),[r,z,G]),V=p.useRef({top:H,dragging:x,pageY:A,startTop:I});V.current={top:H,dragging:x,pageY:A,startTop:I};var W=function(e){k(!0),T(L(e,f)),N(V.current.top),u(),e.stopPropagation(),e.preventDefault()};p.useEffect((function(){var e=function(e){e.preventDefault()},t=P.current,n=O.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",W,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",W)}}),[]);var Y=p.useRef();Y.current=z;var q=p.useRef();q.current=G,p.useEffect((function(){if(x){var e,t=function(t){var n=V.current,i=n.dragging,r=n.pageY,s=n.startTop;b.Z.cancel(e);var a=P.current.getBoundingClientRect(),o=m/(f?a.width:a.height);if(i){var l=(L(t,f)-r)*o,u=s;!M&&f?u-=l:u+=l;var c=Y.current,d=q.current,p=d?u/d:0,g=Math.ceil(p*c);g=Math.max(g,0),g=Math.min(g,c),e=(0,b.Z)((function(){h(g,f)}))}},n=function(){k(!1),d()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),b.Z.cancel(e)}}}),[x]),p.useEffect((function(){return K(),function(){clearTimeout(U.current)}}),[r]),p.useImperativeHandle(t,(function(){return{delayHidden:K}}));var X="".concat(n,"-scrollbar"),Q={position:"absolute",visibility:Z?null:"hidden"},J={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return f?(Object.assign(Q,{height:8,left:0,right:0,bottom:0}),Object.assign(J,(0,a.Z)({height:"100%",width:g},M?"left":"right",H))):(Object.assign(Q,(0,a.Z)({width:8,top:0,bottom:0},M?"right":"left",0)),Object.assign(J,{width:"100%",height:g,top:H})),p.createElement("div",{ref:P,className:c()(X,(0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(X,"-horizontal"),f),"".concat(X,"-vertical"),!f),"".concat(X,"-visible"),Z)),style:(0,s.Z)((0,s.Z)({},Q),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:K},p.createElement("div",{ref:O,className:c()("".concat(X,"-thumb"),(0,a.Z)({},"".concat(X,"-thumb-moving"),x)),style:(0,s.Z)((0,s.Z)({},J),y),onMouseDown:W}))}));function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,20),Math.floor(n)}var N=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],M=[],P={overflowY:"auto",overflowAnchor:"none"};function O(e,t){var n=e.prefixCls,u=void 0===n?"rc-virtual-list":n,m=e.className,E=e.height,k=e.itemHeight,S=e.fullHeight,O=void 0===S||S,F=e.style,B=e.data,Z=e.children,j=e.itemKey,U=e.virtual,K=e.direction,z=e.scrollWidth,G=e.component,H=void 0===G?"div":G,V=e.onScroll,W=e.onVirtualScroll,Y=e.onVisibleChange,q=e.innerProps,X=e.extraRender,Q=e.styles,J=e.showScrollBar,$=void 0===J?"optional":J,ee=(0,l.Z)(e,N),te=p.useCallback((function(e){return"function"==typeof j?j(e):null==e?void 0:e[j]}),[j]),ne=function(e,t,n){var i=p.useState(0),r=(0,o.Z)(i,2),s=r[0],a=r[1],l=(0,p.useRef)(new Map),u=(0,p.useRef)(new C),c=(0,p.useRef)(0);function d(){c.current+=1}function h(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){var e=!1;l.current.forEach((function(t,n){if(t&&t.offsetParent){var i=t.offsetHeight,r=getComputedStyle(t),s=r.marginTop,a=r.marginBottom,o=i+A(s)+A(a);u.current.get(n)!==o&&(u.current.set(n,o),e=!0)}})),e&&a((function(e){return e+1}))};if(e)t();else{c.current+=1;var n=c.current;Promise.resolve().then((function(){n===c.current&&t()}))}}return(0,p.useEffect)((function(){return d}),[]),[function(i,r){var s=e(i),a=l.current.get(s);r?(l.current.set(s,r),h()):l.current.delete(s),!a!=!r&&(r?null==t||t(i):null==n||n(i))},h,u.current,s]}(te,null,null),ie=(0,o.Z)(ne,4),re=ie[0],se=ie[1],ae=ie[2],oe=ie[3],le=!(!1===U||!E||!k),ue=p.useMemo((function(){return Object.values(ae.maps).reduce((function(e,t){return e+t}),0)}),[ae.id,ae.maps]),ce=le&&B&&(Math.max(k*B.length,ue)>E||!!z),de="rtl"===K,he=c()(u,(0,a.Z)({},"".concat(u,"-rtl"),de),m),fe=B||M,pe=(0,p.useRef)(),ge=(0,p.useRef)(),me=(0,p.useRef)(),ve=(0,p.useState)(0),ye=(0,o.Z)(ve,2),_e=ye[0],be=ye[1],Ee=(0,p.useState)(0),we=(0,o.Z)(Ee,2),xe=we[0],ke=we[1],Se=(0,p.useState)(!1),Ce=(0,o.Z)(Se,2),Ae=Ce[0],Te=Ce[1],De=function(){Te(!0)},Le=function(){Te(!1)},Re={getKey:te};function Ie(e){be((function(t){var n=function(e){var t=e;Number.isNaN(Qe.current)||(t=Math.min(t,Qe.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return pe.current.scrollTop=n,n}))}var Ne=(0,p.useRef)({start:0,end:fe.length}),Me=(0,p.useRef)(),Pe=_(fe,te),Oe=(0,o.Z)(Pe,1)[0];Me.current=Oe;var Fe=p.useMemo((function(){if(!le)return{scrollHeight:void 0,start:0,end:fe.length-1,offset:void 0};var e;if(!ce)return{scrollHeight:(null===(e=ge.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:fe.length-1,offset:void 0};for(var t,n,i,r=0,s=fe.length,a=0;a<s;a+=1){var o=fe[a],l=te(o),u=ae.get(l),c=r+(void 0===u?k:u);c>=_e&&void 0===t&&(t=a,n=r),c>_e+E&&void 0===i&&(i=a),r=c}return void 0===t&&(t=0,n=0,i=Math.ceil(E/k)),void 0===i&&(i=fe.length-1),{scrollHeight:r,start:t,end:i=Math.min(i+1,fe.length-1),offset:n}}),[ce,le,_e,fe,oe,E]),Be=Fe.scrollHeight,Ze=Fe.start,je=Fe.end,Ue=Fe.offset;Ne.current.start=Ze,Ne.current.end=je,p.useLayoutEffect((function(){var e=ae.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),i=fe[Ze];if(i&&void 0===n)if(te(i)===t){var r=ae.get(t)-k;Ie((function(e){return e+r}))}}ae.resetRecord()}),[Be]);var Ke=p.useState({width:0,height:E}),ze=(0,o.Z)(Ke,2),Ge=ze[0],He=ze[1],Ve=(0,p.useRef)(),We=(0,p.useRef)(),Ye=p.useMemo((function(){return I(Ge.width,z)}),[Ge.width,z]),qe=p.useMemo((function(){return I(Ge.height,Be)}),[Ge.height,Be]),Xe=Be-E,Qe=(0,p.useRef)(Xe);Qe.current=Xe;var Je=_e<=0,$e=_e>=Xe,et=xe<=0,tt=xe>=z,nt=w(Je,$e,et,tt),it=function(){return{x:de?-xe:xe,y:_e}},rt=(0,p.useRef)(it()),st=(0,h.zX)((function(e){if(W){var t=(0,s.Z)((0,s.Z)({},it()),e);rt.current.x===t.x&&rt.current.y===t.y||(W(t),rt.current=t)}}));function at(e,t){var n=e;t?((0,g.flushSync)((function(){ke(n)})),st()):Ie(n)}var ot=function(e){var t=e,n=z?z-Ge.width:0;return t=Math.max(t,0),t=Math.min(t,n)},lt=(0,h.zX)((function(e,t){t?((0,g.flushSync)((function(){ke((function(t){return ot(t+(de?-e:e))}))})),st()):Ie((function(t){return t+e}))})),ut=x(le,Je,$e,et,tt,!!z,lt),ct=(0,o.Z)(ut,2),dt=ct[0],ht=ct[1];!function(e,t,n){var i,r=(0,p.useRef)(!1),s=(0,p.useRef)(0),a=(0,p.useRef)(0),o=(0,p.useRef)(null),l=(0,p.useRef)(null),u=function(e){if(r.current){var t=Math.ceil(e.touches[0].pageX),i=Math.ceil(e.touches[0].pageY),o=s.current-t,u=a.current-i,c=Math.abs(o)>Math.abs(u);c?s.current=t:a.current=i;var d=n(c,c?o:u,!1,e);d&&e.preventDefault(),clearInterval(l.current),d&&(l.current=setInterval((function(){c?o*=T:u*=T;var e=Math.floor(c?o:u);(!n(c,e,!0)||Math.abs(e)<=.1)&&clearInterval(l.current)}),16))}},c=function(){r.current=!1,i()},d=function(e){i(),1!==e.touches.length||r.current||(r.current=!0,s.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),o.current=e.target,o.current.addEventListener("touchmove",u,{passive:!1}),o.current.addEventListener("touchend",c,{passive:!0}))};i=function(){o.current&&(o.current.removeEventListener("touchmove",u),o.current.removeEventListener("touchend",c))},(0,f.Z)((function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),i(),clearInterval(l.current)}}),[e])}(le,pe,(function(e,t,n,i){var r=i;return!nt(e,t,n)&&((!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),dt({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))})),function(e,t,n){p.useEffect((function(){var i=t.current;if(e&&i){var r,s,a=!1,o=function(){b.Z.cancel(r)},l=function e(){o(),r=(0,b.Z)((function(){n(s),e()}))},u=function(){a=!1,o()},c=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},d=function(e){if(a){var t=L(e,!1),n=i.getBoundingClientRect(),r=n.top,u=n.bottom;t<=r?(s=-D(r-t),l()):t>=u?(s=D(t-u),l()):o()}};return i.addEventListener("mousedown",c),i.ownerDocument.addEventListener("mouseup",u),i.ownerDocument.addEventListener("mousemove",d),i.ownerDocument.addEventListener("dragend",u),function(){i.removeEventListener("mousedown",c),i.ownerDocument.removeEventListener("mouseup",u),i.ownerDocument.removeEventListener("mousemove",d),i.ownerDocument.removeEventListener("dragend",u),o()}}}),[e])}(ce,pe,(function(e){Ie((function(t){return t+e}))})),(0,f.Z)((function(){function e(e){var t=Je&&e.detail<0,n=$e&&e.detail>0;!le||t||n||e.preventDefault()}var t=pe.current;return t.addEventListener("wheel",dt,{passive:!1}),t.addEventListener("DOMMouseScroll",ht,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",dt),t.removeEventListener("DOMMouseScroll",ht),t.removeEventListener("MozMousePixelScroll",e)}}),[le,Je,$e]),(0,f.Z)((function(){if(z){var e=ot(xe);ke(e),st({x:e})}}),[Ge.width,z]);var ft=function(){var e,t;null===(e=Ve.current)||void 0===e||e.delayHidden(),null===(t=We.current)||void 0===t||t.delayHidden()},pt=function(e,t,n,i,a,l,u,c){var d=p.useRef(),h=p.useState(null),g=(0,o.Z)(h,2),m=g[0],v=g[1];return(0,f.Z)((function(){if(m&&m.times<10){if(!e.current)return void v((function(e){return(0,s.Z)({},e)}));l();var r=m.targetAlign,o=m.originAlign,c=m.index,d=m.offset,h=e.current.clientHeight,f=!1,p=r,g=null;if(h){for(var y=r||o,_=0,b=0,E=0,w=Math.min(t.length-1,c),x=0;x<=w;x+=1){var k=a(t[x]);b=_;var S=n.get(k);_=E=b+(void 0===S?i:S)}for(var C="top"===y?d:h-d,A=w;A>=0;A-=1){var T=a(t[A]),D=n.get(T);if(void 0===D){f=!0;break}if((C-=D)<=0)break}switch(y){case"top":g=b-d;break;case"bottom":g=E-h+d;break;default:var L=e.current.scrollTop;b<L?p="top":E>L+h&&(p="bottom")}null!==g&&u(g),g!==m.lastTop&&(f=!0)}f&&v((0,s.Z)((0,s.Z)({},m),{},{times:m.times+1,targetAlign:p,lastTop:g}))}}),[m,e.current]),function(e){if(null!=e){if(b.Z.cancel(d.current),"number"==typeof e)u(e);else if(e&&"object"===(0,r.Z)(e)){var n,i=e.align;n="index"in e?e.index:t.findIndex((function(t){return a(t)===e.key}));var s=e.offset;v({times:0,index:n,offset:void 0===s?0:s,originAlign:i})}}else c()}}(pe,fe,ae,k,te,(function(){return se(!0)}),Ie,ft);p.useImperativeHandle(t,(function(){return{nativeElement:me.current,getScrollInfo:it,scrollTo:function(e){var t;(t=e)&&"object"===(0,r.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&ke(ot(e.left)),pt(e.top)):pt(e)}}})),(0,f.Z)((function(){if(Y){var e=fe.slice(Ze,je+1);Y(e,fe)}}),[Ze,je,fe]);var gt=function(e,t,n,i){var r=p.useMemo((function(){return[new Map,[]]}),[e,n.id,i]),s=(0,o.Z)(r,2),a=s[0],l=s[1];return function(r){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,o=a.get(r),u=a.get(s);if(void 0===o||void 0===u)for(var c=e.length,d=l.length;d<c;d+=1){var h,f=e[d],p=t(f);a.set(p,d);var g=null!==(h=n.get(p))&&void 0!==h?h:i;if(l[d]=(l[d-1]||0)+g,p===r&&(o=d),p===s&&(u=d),void 0!==o&&void 0!==u)break}return{top:l[o-1]||0,bottom:l[u]}}}(fe,te,ae,k),mt=null==X?void 0:X({start:Ze,end:je,virtual:ce,offsetX:xe,offsetY:Ue,rtl:de,getSize:gt}),vt=function(e,t,n,i,r,s,a,o){var l=o.getKey;return e.slice(t,n+1).map((function(e,n){var o=a(e,t+n,{style:{width:i},offsetX:r}),u=l(e);return p.createElement(y,{key:u,setRef:function(t){return s(e,t)}},o)}))}(fe,Ze,je,z,xe,re,Z,Re),yt=null;E&&(yt=(0,s.Z)((0,a.Z)({},O?"height":"maxHeight",E),P),le&&(yt.overflowY="hidden",z&&(yt.overflowX="hidden"),Ae&&(yt.pointerEvents="none")));var _t={};return de&&(_t.dir="rtl"),p.createElement("div",(0,i.Z)({ref:me,style:(0,s.Z)((0,s.Z)({},F),{},{position:"relative"}),className:he},_t,ee),p.createElement(d.Z,{onResize:function(e){He({width:e.offsetWidth,height:e.offsetHeight})}},p.createElement(H,{className:"".concat(u,"-holder"),style:yt,ref:pe,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==_e&&Ie(t),null==V||V(e),st()},onMouseEnter:ft},p.createElement(v,{prefixCls:u,height:Be,offsetX:xe,offsetY:Ue,scrollWidth:z,onInnerResize:se,ref:ge,innerProps:q,rtl:de,extra:mt},vt))),ce&&Be>E&&p.createElement(R,{ref:Ve,prefixCls:u,scrollOffset:_e,scrollRange:Be,rtl:de,onScroll:at,onStartMove:De,onStopMove:Le,spinSize:qe,containerSize:Ge.height,style:null==Q?void 0:Q.verticalScrollBar,thumbStyle:null==Q?void 0:Q.verticalScrollBarThumb,showScrollBar:$}),ce&&z>Ge.width&&p.createElement(R,{ref:We,prefixCls:u,scrollOffset:xe,scrollRange:z,rtl:de,onScroll:at,onStartMove:De,onStopMove:Le,spinSize:Ye,containerSize:Ge.width,horizontal:!0,style:null==Q?void 0:Q.horizontalScrollBar,thumbStyle:null==Q?void 0:Q.horizontalScrollBarThumb,showScrollBar:$}))}var F=p.forwardRef(O);F.displayName="List";var B=F},83145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=s(n(59301)),r=s(n(25769));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},s=Object.keys(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?f(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){function t(){var e,n;u(this,t);for(var s=arguments.length,a=new Array(s),o=0;o<s;o++)a[o]=arguments[o];return g(f(n=d(this,(e=h(t)).call.apply(e,[this].concat(a)))),"onClick",(function(e){var t=n.props,s=t.text,a=t.onCopy,o=t.children,l=t.options,u=i.default.Children.only(o),c=(0,r.default)(s,l);a&&a(s,c),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(e)})),n}var n,s,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,s=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=l(e,["text","onCopy","options","children"]),r=i.default.Children.only(t);return i.default.cloneElement(r,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(n,!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{onClick:this.onClick}))}}],s&&c(n.prototype,s),a&&c(n,a),t}(i.default.PureComponent);t.CopyToClipboard=m,g(m,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(e,t,n){"use strict";var i=n(83145).CopyToClipboard;i.CopyToClipboard=i,e.exports=i},76374:function(e,t,n){"use strict";var i=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,s=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(s):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var o=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,i=!1,r=0;function s(){n&&(n=!1,e()),i&&l()}function o(){a(s)}function l(){var e=Date.now();if(n){if(e-r<2)return;i=!0}else n=!0,i=!1,setTimeout(o,t);r=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;o.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||s},h=y(0,0,0,0);function f(e){return parseFloat(e)||0}function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+f(e["border-"+n+"-width"])}),0)}function g(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var i=d(e).getComputedStyle(e),r=function(e){for(var t={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n],s=e["padding-"+r];t[r]=f(s)}return t}(i),s=r.left+r.right,a=r.top+r.bottom,o=f(i.width),l=f(i.height);if("border-box"===i.boxSizing&&(Math.round(o+s)!==t&&(o-=p(i,"left","right")+s),Math.round(l+a)!==n&&(l-=p(i,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var u=Math.round(o+s)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(o-=u),1!==Math.abs(c)&&(l-=c)}return y(r.left,r.top,o,l)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function v(e){return r?m(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):g(e):h}function y(e,t,n,i){return{x:e,y:t,width:n,height:i}}var _=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=v(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n,i,r,s,a,o,l,u=(i=(n=t).x,r=n.y,s=n.width,a=n.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(o.prototype),c(l,{x:i,y:r,width:s,height:a,top:r,right:i+s,bottom:a+r,left:i}),l);c(this,{target:e,contentRect:u})},E=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new i,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new b(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new i,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),i=new E(t,n,this);w.set(this,i)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}}));var k=void 0!==s.ResizeObserver?s.ResizeObserver:x;t.Z=k},38710:function(e){e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},98040:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],i=0;i<e.rangeCount;i++)n.push(e.getRangeAt(i));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},32637:function(e,t,n){"use strict";e.exports=n.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzL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rEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},19251:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(3208);function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,i.Z)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,s=function(){};return{s:s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}},44523:function(e,t,n){"use strict";n.d(t,{ZP:function(){return cl}});const i=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},r=Number.isSafeInteger||function(e){return"number"==typeof e&&Math.abs(e)<=s},s=Number.MAX_SAFE_INTEGER||9007199254740991;let a=function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e}({}),o=function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",e.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",e.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.ASSET_LIST_LOAD_ERROR="assetListLoadError",e.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",e.ASSET_LIST_PARSING_ERROR="assetListParsingError",e.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.ATTACH_MEDIA_ERROR="attachMediaError",e.UNKNOWN="unknown",e}({}),l=function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.MEDIA_ENDED="hlsMediaEnded",e.STALL_RESOLVED="hlsStallResolved",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFERED_TO_END="hlsBufferedToEnd",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e.ASSET_LIST_LOADING="hlsAssetListLoading",e.ASSET_LIST_LOADED="hlsAssetListLoaded",e.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",e.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",e.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",e.INTERSTITIAL_STARTED="hlsInterstitialStarted",e.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",e.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",e.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",e.INTERSTITIAL_ENDED="hlsInterstitialEnded",e.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",e.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",e.EVENT_CUE_ENTER="hlsEventCueEnter",e}({});var u="manifest",c="level",d="audioTrack",h="subtitleTrack",f="main",p="audio",g="subtitle";class m{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 v{constructor(e,t,n,i=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 m(e),this.fast_=new m(t),this.defaultTTFB_=i,this.ttfb_=new m(e)}update(e,t){const{slow_:n,fast_:i,ttfb_:r}=this;n.halfLife!==e&&(this.slow_=new m(e,n.getEstimate(),n.getTotalWeight())),i.halfLife!==t&&(this.fast_=new m(t,i.getEstimate(),i.getTotalWeight())),r.halfLife!==e&&(this.ttfb_=new m(e,r.getEstimate(),r.getTotalWeight()))}sample(e,t){const n=(e=Math.max(e,this.minDelayMs_))/1e3,i=8*t/n;this.fast_.sample(n,i),this.slow_.sample(n,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 y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_.apply(null,arguments)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class w{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=x,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 x=function(){},k={trace:x,debug:x,log:x,warn:x,info:x,error:x};function S(){return _({},k)}function C(e,t,n){return t[e]?t[e].bind(t):function(e,t){const n=self.console[e];return n?n.bind(self.console,`${t?"["+t+"] ":""}[${e}] >`):x}(e,n)}const A=S();const T=A;function D(e=!0){if("undefined"==typeof self)return;return(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function L(e,t){const n=Object.keys(e),i=Object.keys(t),r=n.length,s=i.length;return!r||!s||r===s&&!n.some((e=>-1===i.indexOf(e)))}function R(e,t=!1){if("undefined"!=typeof TextDecoder){const n=new TextDecoder("utf-8").decode(e);if(t){const e=n.indexOf("\0");return-1!==e?n.substring(0,e):n}return n.replace(/\0/g,"")}const n=e.length;let i,r,s,a="",o=0;for(;o<n;){if(i=e[o++],0===i&&t)return a;if(0!==i&&3!==i)switch(i>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(i);break;case 12:case 13:r=e[o++],a+=String.fromCharCode((31&i)<<6|63&r);break;case 14:r=e[o++],s=e[o++],a+=String.fromCharCode((15&i)<<12|(63&r)<<6|(63&s)<<0)}}return a}function I(e){let t="";for(let n=0;n<e.length;n++){let i=e[n].toString(16);i.length<2&&(i="0"+i),t+=i}return t}function N(e){return Uint8Array.from(e.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P,O={exports:{}};var F,B,Z,j,U,K=(P||(P=1,F=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,B=/^(?=([^\/?#]*))\1([^]*)$/,Z=/(?:\/|^)\.(?=\/)/g,j=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,O.exports=U={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var i=U.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=U.normalizePath(i.path),U.buildURLFromParts(i)}var r=U.parseURL(t);if(!r)throw new Error("Error trying to parse relative URL.");if(r.scheme)return n.alwaysNormalize?(r.path=U.normalizePath(r.path),U.buildURLFromParts(r)):t;var s=U.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var a=B.exec(s.path);s.netLoc=a[1],s.path=a[2]}s.netLoc&&!s.path&&(s.path="/");var o={scheme:s.scheme,netLoc:r.netLoc,path:null,params:r.params,query:r.query,fragment:r.fragment};if(!r.netLoc&&(o.netLoc=s.netLoc,"/"!==r.path[0]))if(r.path){var l=s.path,u=l.substring(0,l.lastIndexOf("/")+1)+r.path;o.path=U.normalizePath(u)}else o.path=s.path,r.params||(o.params=s.params,r.query||(o.query=s.query));return null===o.path&&(o.path=n.alwaysNormalize?U.normalizePath(r.path):r.path),U.buildURLFromParts(o)},parseURL:function(e){var t=F.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(Z,"");e.length!==(e=e.replace(j,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}}),O.exports);class z{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 G="audio",H="video",V="audiovideo";class W{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,"string"==typeof e&&(e={url:e}),this.base=e,function(e,t){const n=Q(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}(this,"stats")}setByteRange(e,t){const n=e.split("@",2);let i;i=1===n.length?(null==t?void 0:t.byteRangeEndOffset)||0:parseInt(n[1]),this._byteRange=[i,parseInt(n[0])+i]}get baseurl(){return this.base.url}get byteRange(){return null===this._byteRange?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return null===this._streams&&(this._streams={[G]:null,[H]:null,[V]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return null!==this._stats}get hasStreams(){return null!==this._streams}get stats(){return null===this._stats&&(this._stats=new z),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=K.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[G]=null,e[H]=null,e[V]=null}}function Y(e){return"initSegment"!==e.sn}class q extends W{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(i(e)&&i(t))return t-e}return null}get bitrate(){return this.byteLength?8*this.byteLength/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const e=this.levelkeys.identity;if(e)this._decryptdata=e.getDecryptData(this.sn);else{const e=Object.keys(this.levelkeys);if(1===e.length){const t=this._decryptdata=this.levelkeys[e[0]]||null;if(t)return t.getDecryptData(this.sn)}}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(null===this.programDateTime)return null;const e=i(this.duration)?this.duration:0;return this.programDateTime+1e3*e}get encrypted(){var e;if(null!=(e=this._decryptdata)&&e.encrypted)return!0;if(this.levelkeys){var t;const e=Object.keys(this.levelkeys),n=e.length;if(n>1||1===n&&null!=(t=this.levelkeys[e[0]])&&t.encrypted)return!0}return!1}get programDateTime(){return null===this._programDateTime&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){i(e)?this._programDateTime=e:this._programDateTime=this.rawProgramDateTime=null}get ref(){return Y(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;null==(e=this.loader)||e.abort(),null==(t=this.keyLoader)||t.abort()}setElementaryStreamInfo(e,t,n,i,r,s=!1){const{elementaryStreams:a}=this,o=a[e];o?(o.startPTS=Math.min(o.startPTS,t),o.endPTS=Math.max(o.endPTS,n),o.startDTS=Math.min(o.startDTS,i),o.endDTS=Math.max(o.endDTS,r)):a[e]={startPTS:t,endPTS:n,startDTS:i,endDTS:r,partial:s}}}class X extends W{constructor(e,t,n,i,r){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=i;const s=e.enumeratedString("BYTERANGE");s&&this.setByteRange(s,r),r&&(this.fragOffset=r.fragOffset+r.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 Q(e,t){const n=Object.getPrototypeOf(e);if(n){const e=Object.getOwnPropertyDescriptor(n,t);return e||Q(n,t)}}const J=Math.pow(2,32)-1,$=[].push,ee={video:1,audio:2,id3:3,text:4};function te(e){return String.fromCharCode.apply(null,e)}function ne(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function ie(e,t){const n=se(e,t);return n<0?4294967296+n:n}function re(e,t){let n=ie(e,t);return n*=Math.pow(2,32),n+=ie(e,t+4),n}function se(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function ae(e,t){const n=[];if(!t.length)return n;const i=e.byteLength;for(let r=0;r<i;){const s=ie(e,r),a=s>1?r+s:i;if(te(e.subarray(r+4,r+8))===t[0])if(1===t.length)n.push(e.subarray(r+8,a));else{const i=ae(e.subarray(r+8,a),t.slice(1));i.length&&$.apply(n,i)}r=a}return n}function oe(e){const t=[],n=e[0];let i=8;const r=ie(e,i);i+=4;let s=0,a=0;0===n?(s=ie(e,i),a=ie(e,i+4),i+=8):(s=re(e,i),a=re(e,i+8),i+=16),i+=2;let o=e.length+a;const l=ne(e,i);i+=2;for(let n=0;n<l;n++){let n=i;const s=ie(e,n);n+=4;const a=2147483647&s;if(1===(2147483648&s)>>>31)return T.warn("SIDX has hierarchical references (not supported)"),null;const l=ie(e,n);n+=4,t.push({referenceSize:a,subsegmentDuration:l,info:{duration:l/r,start:o,end:o+a-1}}),o+=a,n+=4,i=n}return{earliestPresentationTime:s,timescale:r,version:n,referencesCount:l,references:t}}function le(e){const t=[],n=ae(e,["moov","trak"]);for(let e=0;e<n.length;e++){const i=n[e],r=ae(i,["tkhd"])[0];if(r){let e=r[0];const n=ie(r,0===e?12:20),s=ae(i,["mdia","mdhd"])[0];if(s){e=s[0];const r=ie(s,0===e?12:20),a=ae(i,["mdia","hdlr"])[0];if(a){const e=te(a.subarray(8,12)),s={soun:G,vide:H}[e],o=ue(ae(i,["mdia","minf","stbl","stsd"])[0]);s?(t[n]={timescale:r,type:s,stsd:o},t[s]=E({timescale:r,id:n},o)):t[n]={timescale:r,type:e,stsd:o}}}}}return ae(e,["moov","mvex","trex"]).forEach((e=>{const n=ie(e,4),i=t[n];i&&(i.default={duration:ie(e,12),flags:ie(e,20)})})),t}function ue(e){const t=e.subarray(8),n=t.subarray(86),i=te(t.subarray(4,8));let r,s=i;const a="enca"===i||"encv"===i;if(a){const e=ae(t,[i])[0];ae(e.subarray("enca"===i?28:78),["sinf"]).forEach((e=>{const t=ae(e,["schm"])[0];if(t){const n=te(t.subarray(4,8));if("cbcs"===n||"cenc"===n){const t=ae(e,["frma"])[0];t&&(s=te(t))}}}))}const o=s;switch(s){case"avc1":case"avc2":case"avc3":case"avc4":{const e=ae(n,["avcC"])[0];e&&e.length>3&&(s+="."+he(e[1])+he(e[2])+he(e[3]),r=ce("avc1"===o?"dva1":"dvav",n));break}case"mp4a":{const e=ae(t,[i])[0],n=ae(e.subarray(28),["esds"])[0];if(n&&n.length>7){let e=4;if(3!==n[e++])break;e=de(n,e),e+=2;const t=n[e++];if(128&t&&(e+=2),64&t&&(e+=n[e++]),4!==n[e++])break;e=de(n,e);const i=n[e++];if(64!==i)break;if(s+="."+he(i),e+=12,5!==n[e++])break;e=de(n,e);const r=n[e++];let a=(248&r)>>3;31===a&&(a+=1+((7&r)<<3)+((224&n[e])>>5)),s+="."+a}break}case"hvc1":case"hev1":{const e=ae(n,["hvcC"])[0];if(e&&e.length>12){const t=e[1],n=["","A","B","C"][t>>6],i=31&t,r=ie(e,2),a=(32&t)>>5?"H":"L",o=e[12],l=e.subarray(6,12);s+="."+n+i,s+="."+function(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}(r).toString(16).toUpperCase(),s+="."+a+o;let u="";for(let e=l.length;e--;){const t=l[e];if(t||u){u="."+t.toString(16).toUpperCase()+u}}s+=u}r=ce("hev1"==o?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":s=ce(s,n)||s;break;case"vp09":{const e=ae(n,["vpcC"])[0];if(e&&e.length>6){const t=e[4],n=e[5],i=e[6]>>4&15;s+="."+fe(t)+"."+fe(n)+"."+fe(i)}break}case"av01":{const e=ae(n,["av1C"])[0];if(e&&e.length>2){const t=e[1]>>>5,i=31&e[1],a=e[2]>>>7?"H":"M",o=(64&e[2])>>6,l=(32&e[2])>>5,u=2===t&&o?l?12:10:o?10:8,c=(16&e[2])>>4,d=(8&e[2])>>3,h=(4&e[2])>>2,f=3&e[2],p=1,g=1,m=1,v=0;s+="."+t+"."+fe(i)+a+"."+fe(u)+"."+c+"."+d+h+f+"."+fe(p)+"."+fe(g)+"."+fe(m)+"."+v,r=ce("dav1",n)}break}}return{codec:s,encrypted:a,supplemental:r}}function ce(e,t){const n=ae(t,["dvvC"]),i=n.length?n[0]:ae(t,["dvcC"])[0];if(i){const t=i[2]>>1&127,n=i[2]<<5&32|i[3]>>3&31;return e+"."+fe(t)+"."+fe(n)}}function de(e,t){const n=t+5;for(;128&e[t++]&&t<n;);return t}function he(e){return("0"+e.toString(16).toUpperCase()).slice(-2)}function fe(e){return(e<10?"0":"")+e}function pe(e){const t=ae(e,["schm"])[0];if(t){const n=te(t.subarray(4,8));if("cbcs"===n||"cenc"===n)return ae(e,["schi","tenc"])[0]}return null}function ge(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function me(e,t){const n=[],i=t.samples,r=t.timescale,s=t.id;let a=!1;return ae(i,["moof"]).map((o=>{const l=o.byteOffset-8;ae(o,["traf"]).map((o=>{const u=ae(o,["tfdt"]).map((e=>{const t=e[0];let n=ie(e,4);return 1===t&&(n*=Math.pow(2,32),n+=ie(e,8)),n/r}))[0];return void 0!==u&&(e=u),ae(o,["tfhd"]).map((u=>{const c=ie(u,4),d=16777215&ie(u,0);let h=0;const f=0!=(16&d);let p=0;const g=0!=(32&d);let m=8;c===s&&(0!=(1&d)&&(m+=8),0!=(2&d)&&(m+=4),0!=(8&d)&&(h=ie(u,m),m+=4),f&&(p=ie(u,m),m+=4),g&&(m+=4),"video"===t.type&&(a=ve(t.codec)),ae(o,["trun"]).map((s=>{const o=s[0],u=16777215&ie(s,0),c=0!=(1&u);let d=0;const f=0!=(4&u),g=0!=(256&u);let m=0;const v=0!=(512&u);let y=0;const _=0!=(1024&u),b=0!=(2048&u);let E=0;const w=ie(s,4);let x=8;c&&(d=ie(s,x),x+=4),f&&(x+=4);let k=d+l;for(let l=0;l<w;l++){if(g?(m=ie(s,x),x+=4):m=h,v?(y=ie(s,x),x+=4):y=p,_&&(x+=4),b&&(E=0===o?ie(s,x):se(s,x),x+=4),t.type===H){let t=0;for(;t<y;){const s=ie(i,k);if(k+=4,ye(a,i[k])){_e(i.subarray(k,k+s),a?2:1,e+E/r,n)}k+=s,t+=s+4}}e+=m/r}})))}))}))})),n}function ve(e){if(!e)return!1;const t=e.substring(0,4);return"hvc1"===t||"hev1"===t||"dvh1"===t||"dvhe"===t}function ye(e,t){if(e){const e=t>>1&63;return 39===e||40===e}return 6===(31&t)}function _e(e,t,n,i){const r=be(e);let s=0;s+=t;let a=0,o=0,l=0;for(;s<r.length;){a=0;do{if(s>=r.length)break;l=r[s++],a+=l}while(255===l);o=0;do{if(s>=r.length)break;l=r[s++],o+=l}while(255===l);const e=r.length-s;let t=s;if(o<e)s+=o;else if(o>e){T.error(`Malformed SEI payload. ${o} is too small, only ${e} bytes left to parse.`);break}if(4===a){if(181===r[t++]){const e=ne(r,t);if(t+=2,49===e){const e=ie(r,t);if(t+=4,1195456820===e){const e=r[t++];if(3===e){const s=r[t++],o=64&s,l=o?2+3*(31&s):0,u=new Uint8Array(l);if(o){u[0]=s;for(let e=1;e<l;e++)u[e]=r[t++]}i.push({type:e,payloadType:a,pts:n,bytes:u})}}}}}else if(5===a&&o>16){const e=[];for(let n=0;n<16;n++){const i=r[t++].toString(16);e.push(1==i.length?"0"+i:i),3!==n&&5!==n&&7!==n&&9!==n||e.push("-")}const s=o-16,l=new Uint8Array(s);for(let e=0;e<s;e++)l[e]=r[t++];i.push({payloadType:a,pts:n,uuid:e.join(""),userData:R(l),userDataBytes:l})}}}function be(e){const t=e.byteLength,n=[];let i=1;for(;i<t-2;)0===e[i]&&0===e[i+1]&&3===e[i+2]?(n.push(i+2),i+=2):i++;if(0===n.length)return e;const r=t-n.length,s=new Uint8Array(r);let a=0;for(i=0;i<r;a++,i++)a===n[0]&&(a++,n.shift()),s[i]=e[a];return s}function Ee(e,t,n){if(16!==e.byteLength)throw new RangeError("Invalid system id");let i,r,s;i=0,r=new Uint8Array,s=new Uint8Array;const a=new Uint8Array(4);return n.byteLength>0&&new DataView(a.buffer).setUint32(0,n.byteLength,!1),function(e,...t){const n=t.length;let i=8,r=n;for(;r--;)i+=t[r].byteLength;const s=new Uint8Array(i);for(s[0]=i>>24&255,s[1]=i>>16&255,s[2]=i>>8&255,s[3]=255&i,s.set(e,4),r=0,i=8;r<n;r++)s.set(t[r],i),i+=t[r].byteLength;return s}([112,115,115,104],new Uint8Array([0,0,0,0]),e,s,r,a,n)}function we(e){const t=e.getUint32(0),n=e.byteOffset,i=e.byteLength;if(i<t)return{offset:n,size:i};if(1886614376!==e.getUint32(4))return{offset:n,size:t};const r=e.getUint32(8)>>>24;if(0!==r&&1!==r)return{offset:n,size:t};const s=e.buffer,a=I(new Uint8Array(s,n+12,16));let o=null,l=null,u=0;if(0===r)u=28;else{const r=e.getUint32(28);if(!r||i<32+16*r)return{offset:n,size:t};o=[];for(let e=0;e<r;e++)o.push(new Uint8Array(s,n+32+16*e,16));u=32+16*r}if(!u)return{offset:n,size:t};const c=e.getUint32(u);return t-32<c?{offset:n,size:t}:(l=new Uint8Array(s,n+u+4,c),{version:r,systemId:a,kids:o,data:l,offset:n,size:t})}const xe=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),ke={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(e,t){const n=ke[t];return!!n&&!!n[e.slice(0,4)]}function Ce(e,t,n=!0){return!e.split(",").some((e=>!Ae(e,t,n)))}function Ae(e,t,n=!0){var i;const r=D(n);return null!=(i=null==r?void 0:r.isTypeSupported(Te(e,t)))&&i}function Te(e,t){return`${t}/mp4;codecs=${e}`}function De(e){if(e){const t=e.substring(0,4);return ke.video[t]}return 2}function Le(e){const t=xe();return e.split(",").reduce(((e,n)=>{const i=t&&ve(n)?9:ke.video[n];return i?(2*i+e)/(e?3:2):(ke.audio[n]+e)/(e?2:1)}),0)}const Re={};const Ie=/flac|opus|mp4a\.40\.34/i;function Ne(e,t=!0){return e.replace(Ie,(e=>function(e,t=!0){if(Re[e])return Re[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let r=0;r<n.length;r++){var i;if(Ae(n[r],"audio",t))return Re[e]=n[r],n[r];if("mp3"===n[r]&&null!=(i=D(t))&&i.isTypeSupported("audio/mpeg"))return""}return e}(e.toLowerCase(),t)))}function Me(e,t){if(e&&(e.length>4||-1!==["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e))&&(Pe(e,"audio")||Pe(e,"video")))return e;if(t){const n=t.split(",");if(n.length>1){if(e)for(let t=n.length;t--;)if(n[t].substring(0,4)===e.substring(0,4))return n[t];return n[0]}}return t||e}function Pe(e,t){return Se(e,t)&&Ae(e,t)}function Oe(e){if(e.startsWith("av01.")){const t=e.split("."),n=["0","111","01","01","01","0"];for(let e=t.length;e>4&&e<10;e++)t[e]=n[e-4];return t.join(".")}return e}function Fe(e){const t=D(e)||{isTypeSupported:()=>!1};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Be(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Ze={supported:!1,smooth:!1,powerEfficient:!1},je={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function Ue(e,t){return{supported:!1,configurations:t,decodingInfoResults:[Ze],error:e}}function Ke(e,t,n,r,s,a){const o=e.videoCodec,l=e.audioCodec?e.audioGroups:null,u=null==a?void 0:a.audioCodec,c=null==a?void 0:a.channels,d=c?parseInt(c):u?1/0:2;let h=null;if(null!=l&&l.length)try{h=1===l.length&&l[0]?t.groups[l[0]].channels:l.reduce(((e,n)=>{if(n){const i=t.groups[n];if(!i)throw new Error(`Audio track group ${n} not found`);Object.keys(i.channels).forEach((t=>{e[t]=(e[t]||0)+i.channels[t]}))}return e}),{2:0})}catch(e){return!0}return void 0!==o&&(o.split(",").some((e=>ve(e)))||e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(r,30)||"SDR"!==e.videoRange&&e.videoRange!==n||e.bitrate>Math.max(s,8e6))||!!h&&i(d)&&Object.keys(h).some((e=>parseInt(e)>d))}function ze(e,t,n,i={}){const r=e.videoCodec;if(!r&&!e.audioCodec||!n)return Promise.resolve(je);const s=[],a=function(e){var t;const n=null==(t=e.videoCodec)?void 0:t.split(","),i=He(e),r=e.width||640,s=e.height||480,a=e.frameRate||30,o=e.videoRange.toLowerCase();return n?n.map((e=>{const t={contentType:Te(Oe(e),"video"),width:r,height:s,bitrate:i,framerate:a};return"sdr"!==o&&(t.transferFunction=o),t})):[]}(e),o=a.length,l=function(e,t,n){var i;const r=null==(i=e.audioCodec)?void 0:i.split(","),s=He(e);if(r&&e.audioGroups)return e.audioGroups.reduce(((e,i)=>{var a;const o=i?null==(a=t.groups[i])?void 0:a.tracks:null;return o?o.reduce(((e,t)=>{if(t.groupId===i){const i=parseFloat(t.channels||"");r.forEach((t=>{const r={contentType:Te(t,"audio"),bitrate:n?Ge(t,s):s};i&&(r.channels=""+i),e.push(r)}))}return e}),e):e}),[]);return[]}(e,t,o>0),u=l.length;for(let e=o||1*u||1;e--;){const t={type:"media-source"};if(o&&(t.video=a[e%o]),u){t.audio=l[e%u];const n=t.audio.bitrate;t.video&&n&&(t.video.bitrate-=n)}s.push(t)}if(r){const e=navigator.userAgent;if(r.split(",").some((e=>ve(e)))&&xe())return Promise.resolve(Ue(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${e})`),s))}return Promise.all(s.map((e=>{const t=function(e){let t="";const{audio:n,video:i}=e;if(i){t+=`${Be(i.contentType)}_r${i.height}x${i.width}f${Math.ceil(i.framerate)}${i.transferFunction||"sd"}_${Math.ceil(i.bitrate/1e5)}`}if(n){t+=`${i?"_":""}${Be(n.contentType)}_c${n.channels}`}return t}(e);return i[t]||(i[t]=n.decodingInfo(e))}))).then((e=>({supported:!e.some((e=>!e.supported)),configurations:s,decodingInfoResults:e}))).catch((e=>({supported:!1,configurations:s,decodingInfoResults:[],error:e})))}function Ge(e,t){if(t<=1)return 1;let n=128e3;return"ec-3"===e?n=768e3:"ac-3"===e&&(n=64e4),Math.min(t/2,n)}function He(e){return 1e3*Math.ceil(Math.max(.9*e.bitrate,e.averageBitrate)/1e3)||1}const Ve=["NONE","TYPE-0","TYPE-1",null];const We=["SDR","PQ","HLG"];var Ye="",qe="YES",Xe="v2";function Qe(e){const{canSkipUntil:t,canSkipDateRanges:n,age:i}=e;return t&&i<t/2?n?Xe:qe:Ye}class Je{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 void 0!==this.msn&&t.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class $e{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((e=>!!e)).map((e=>e.substring(0,4))).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const n=null==(t=e.supplemental)?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return et(this._audioGroups,e)}hasSubtitleGroup(e){return et(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t)if("audio"===e){let e=this._audioGroups;e||(e=this._audioGroups=[]),-1===e.indexOf(t)&&e.push(t)}else if("text"===e){let e=this._subtitleGroups;e||(e=this._subtitleGroups=[]),-1===e.indexOf(t)&&e.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 null==(e=this.audioGroups)?void 0:e[0]}get textGroupId(){var e;return null==(e=this.subtitleGroups)?void 0:e[0]}addFallback(){}}function et(e,t){return!(!t||!e)&&-1!==e.indexOf(t)}function tt(e,t){let n=!1,i=[];if(e&&(n="SDR"!==e,i=[e]),t){i=t.allowedVideoRanges||We.slice(0);const e="SDR"!==i.join("")&&!t.videoCodec;n=void 0!==t.preferHDR?t.preferHDR:e&&function(){if("function"==typeof matchMedia){const e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return!0===e.matches}return!1}(),n||(i=["SDR"])}return{preferHDR:n,allowedVideoRanges:i}}const nt=(e,t)=>JSON.stringify(e,(e=>{const t=new WeakSet;return(n,i)=>{if(e&&(i=e(n,i)),"object"==typeof i&&null!==i){if(t.has(i))return;t.add(i)}return i}})(t));function it(e,t){T.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function rt(e){return e.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 i=t.channels||"2";return n.channels[i]=(n.channels[i]||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 st(e){if(!e)return e;const{lang:t,assocLang:n,characteristics:i,channels:r,audioCodec:s}=e;return{lang:t,assocLang:n,characteristics:i,channels:r,audioCodec:s}}function at(e,t,n){if("attrs"in e){const n=t.indexOf(e);if(-1!==n)return n}for(let i=0;i<t.length;i++){if(ot(e,t[i],n))return i}return-1}function ot(e,t,n){const{groupId:i,name:r,lang:s,assocLang:a,default:o}=e,l=e.forced;return(void 0===i||t.groupId===i)&&(void 0===r||t.name===r)&&(void 0===s||function(e,t="--"){if(e.length===t.length)return e===t;return e.startsWith(t)||t.startsWith(e)}(s,t.lang))&&(void 0===s||t.assocLang===a)&&(void 0===o||t.default===o)&&(void 0===l||t.forced===l)&&(!("characteristics"in e)||function(e,t=""){const n=e.split(","),i=t.split(",");return n.length===i.length&&!n.some((e=>-1===i.indexOf(e)))}(e.characteristics||"",t.characteristics))&&(void 0===n||n(e,t))}function lt(e,t){const{audioCodec:n,channels:i}=e;return!(void 0!==n&&(t.audioCodec||"").substring(0,4)!==n.substring(0,4)||void 0!==i&&i!==(t.channels||"2"))}function ut(e,t,n){for(let i=t;i>-1;i--)if(n(e[i]))return i;for(let i=t+1;i<e.length;i++)if(n(e[i]))return i;return-1}function ct(e,t){var n;return!!e&&e!==(null==(n=t.loadLevelObj)?void 0:n.uri)}const dt=function(e,t){let n=0,i=e.length-1,r=null,s=null;for(;n<=i;){r=(n+i)/2|0,s=e[r];const a=t(s);if(a>0)n=r+1;else{if(!(a<0))return s;i=r-1}}return null};function ht(e,t,n=0,i=0,r=.005){let s=null;if(e){s=t[1+e.sn-t[0].sn]||null;const i=e.endDTS-n;i>0&&i<15e-7&&(n+=15e-7),s&&e.level!==s.level&&s.end<=e.end&&(s=t[2+e.sn-t[0].sn]||null)}else 0===n&&0===t[0].start&&(s=t[0]);if(s&&((!e||e.level===s.level)&&0===ft(n,i,s)||function(e,t,n){if(t&&0===t.start&&t.level<e.level&&(t.endPTS||0)>0){const i=t.tagList.reduce(((e,t)=>("INF"===t[0]&&(e+=parseFloat(t[1])),e)),n);return e.start<=i}return!1}(s,e,Math.min(r,i))))return s;const a=dt(t,ft.bind(null,n,i));return!a||a===e&&s?s:a}function ft(e=0,t=0,n){if(n.start<=e&&n.start+n.duration>e)return 0;const i=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-i<=e?1:n.start-i>e&&n.start?-1:0}function pt(e,t,n){const i=1e3*Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-i>e}function gt(e,t,n){if(e&&e.startCC<=t&&e.endCC>=t){let i=e.fragments;const{fragmentHint:r}=e;let s;return r&&(i=i.concat(r)),dt(i,(e=>e.cc<t?1:e.cc>t?-1:(s=e,e.end<=n?1:e.start>n?-1:0))),s||null}return null}function mt(e){switch(e.details){case o.FRAG_LOAD_TIMEOUT:case o.KEY_LOAD_TIMEOUT:case o.LEVEL_LOAD_TIMEOUT:case o.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function vt(e){return e.details.startsWith("key")}function yt(e){return vt(e)&&!!e.frag&&!e.frag.decryptdata}function _t(e,t){const n=mt(t);return e.default[(n?"timeout":"error")+"Retry"]}function bt(e,t){const n="linear"===e.backoff?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function Et(e){return E(E({},e),{errorRetry:null,timeoutRetry:null})}function wt(e,t,n,i){if(!e)return!1;const r=null==i?void 0:i.code,s=t<e.maxNumRetry&&(function(e){return xt(e)||!!e&&(e<400||e>499)}(r)||!!n);return e.shouldRetry?e.shouldRetry(e,t,n,i,s):s}function xt(e){return 0===e&&!1===navigator.onLine}var kt=0,St=2,Ct=3,At=5,Tt=0,Dt=1,Lt=2,Rt=4;function It(e){const t={action:kt,flags:Tt};return e&&(t.resolved=!0),t}var Nt="NOT_LOADED",Mt="APPENDING",Pt="PARTIAL",Ot="OK";class Ft{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(l.MANIFEST_LOADING,this.onManifestLoading,this),e.on(l.BUFFER_APPENDED,this.onBufferAppended,this),e.on(l.FRAG_BUFFERED,this.onFragBuffered,this),e.on(l.FRAG_LOADED,this.onFragLoaded,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(l.MANIFEST_LOADING,this.onManifestLoading,this),e.off(l.BUFFER_APPENDED,this.onBufferAppended,this),e.off(l.FRAG_BUFFERED,this.onFragBuffered,this),e.off(l.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 t=n.length;t--;){const i=n[t];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:i}=this,r=Object.keys(i);for(let s=r.length;s--;){const a=i[r[s]];if((null==a?void 0:a.body.type)===t&&(!n||a.buffered)){const t=a.body;if(t.start<=e&&e<=t.end)return t}}return null}detectEvictedFragments(e,t,n,i,r){this.timeRanges&&(this.timeRanges[e]=t);const s=(null==i?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach((i=>{const a=this.fragments[i];if(!a)return;if(s>=a.body.sn)return;if(!a.buffered&&(!a.loaded||r))return void(a.body.type===n&&this.removeFragment(a.body));const o=a.range[e];o&&(0!==o.time.length?o.time.some((e=>{const n=!this.isTimeBuffered(e.startPTS,e.endPTS,t);return n&&this.removeFragment(a.body),n})):this.removeFragment(a.body))}))}detectPartialFragments(e){const t=this.timeRanges;if(!t||"initSegment"===e.frag.sn)return;const n=e.frag,i=Zt(n),r=this.fragments[i];if(!r||r.buffered&&n.gap)return;const s=!n.relurl;if(Object.keys(t).forEach((i=>{const a=n.elementaryStreams[i];if(!a)return;const o=t[i],l=s||!0===a.partial;r.range[i]=this.getBufferedTimes(n,e.part,l,o)})),r.loaded=null,Object.keys(r.range).length){r.buffered=!0;(r.body.endList=n.endList||r.body.endList)&&(this.endListFragments[r.body.type]=r),Bt(r)||this.removeParts(n.sn-1,n.type)}else this.removeFragment(r.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=jt(n,(t=>t.fragment.sn>=e)))}fragBuffered(e,t){const n=Zt(e);let i=this.fragments[n];!i&&t&&(i=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(e,t,n,i){const r={time:[],partial:n},s=e.start,a=e.end,o=e.minEndPTS||a,l=e.maxStartPTS||s;for(let e=0;e<i.length;e++){const t=i.start(e)-this.bufferPadding,n=i.end(e)+this.bufferPadding;if(l>=t&&o<=n){r.time.push({startPTS:Math.max(s,i.start(e)),endPTS:Math.min(a,i.end(e))});break}if(s<n&&a>t){const t=Math.max(s,i.start(e)),n=Math.min(a,i.end(e));n>t&&(r.partial=!0,r.time.push({startPTS:t,endPTS:n}))}else if(a<=t)break}return r}getPartialFragment(e){let t,n,i,r=null,s=0;const{bufferPadding:a,fragments:o}=this;return Object.keys(o).forEach((l=>{const u=o[l];u&&Bt(u)&&(n=u.body.start-a,i=u.body.end+a,e>=n&&e<=i&&(t=Math.min(e-n,i-e),s<=t&&(r=u.body,s=t)))})),r}isEndListAppended(e){const t=this.endListFragments[e];return void 0!==t&&(t.buffered||Bt(t))}getState(e){const t=Zt(e),n=this.fragments[t];return n?n.buffered?Bt(n)?Pt:Ot:Mt:Nt}isTimeBuffered(e,t,n){let i,r;for(let s=0;s<n.length;s++){if(i=n.start(s)-this.bufferPadding,r=n.end(s)+this.bufferPadding,e>=i&&t<=r)return!0;if(t<=i)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if("initSegment"===t.frag.sn||t.frag.bitrateTest)return;const n=t.frag,i=t.part?null:t,r=Zt(n);this.fragments[r]={body:n,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:i,timeRanges:r,type:s}=t;if("initSegment"===n.sn)return;const a=n.type;if(i){let e=this.activePartLists[a];e||(this.activePartLists[a]=e=[]),e.push(i)}this.timeRanges=r;const o=r[s];this.detectEvictedFragments(s,o,a,i)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Zt(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let i=n.length;i--;){const r=t[n[i]];if((null==r?void 0:r.body.type)===e)return!0}return!1}hasParts(e){var t;return!(null==(t=this.activePartLists[e])||!t.length)}removeFragmentsInRange(e,t,n,i,r){i&&!this.hasGaps||Object.keys(this.fragments).forEach((s=>{const a=this.fragments[s];if(!a)return;const o=a.body;o.type!==n||i&&!o.gap||o.start<t&&o.end>e&&(a.buffered||r)&&this.removeFragment(o)}))}removeFragment(e){const t=Zt(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const t=e.sn;this.activePartLists[e.type]=jt(n,(e=>e.fragment.sn!==t))}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=null==(e=this.hls)||null==(e=e.latestLevelDetails)?void 0:e.partList;t&&t.forEach((e=>e.clearElementaryStreamInfo()))}}function Bt(e){var t,n,i;return e.buffered&&!!(e.body.gap||null!=(t=e.range.video)&&t.partial||null!=(n=e.range.audio)&&n.partial||null!=(i=e.range.audiovideo)&&i.partial)}function Zt(e){return`${e.type}_${e.level}_${e.sn}`}function jt(e,t){return e.filter((e=>{const n=t(e);return n||e.clearElementaryStreamInfo(),n}))}var Ut=0,Kt=1;class zt{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 Ut:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case Kt:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}class Gt{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 e=0;e<4;e++)n[e]=t.getUint32(4*e);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,i=n[0],r=n[1],s=n[2],a=n[3],o=this.invSubMix,l=o[0],u=o[1],c=o[2],d=o[3],h=new Uint32Array(256);let f=0,p=0,g=0;for(g=0;g<256;g++)h[g]=g<128?g<<1:g<<1^283;for(g=0;g<256;g++){let n=p^p<<1^p<<2^p<<3^p<<4;n=n>>>8^255&n^99,e[f]=n,t[n]=f;const o=h[f],g=h[o],m=h[g];let v=257*h[n]^16843008*n;i[f]=v<<24|v>>>8,r[f]=v<<16|v>>>16,s[f]=v<<8|v>>>24,a[f]=v,v=16843009*m^65537*g^257*o^16843008*f,l[n]=v<<24|v>>>8,u[n]=v<<16|v>>>16,c[n]=v<<8|v>>>24,d[n]=v,f?(f=o^h[h[h[m^o]]],p^=h[h[p]]):f=p=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,i=0;for(;i<t.length&&n;)n=t[i]===this.key[i],i++;if(n)return;this.key=t;const r=this.keySize=t.length;if(4!==r&&6!==r&&8!==r)throw new Error("Invalid aes key size="+r);const s=this.ksRows=4*(r+6+1);let a,o;const l=this.keySchedule=new Uint32Array(s),u=this.invKeySchedule=new Uint32Array(s),c=this.sBox,d=this.rcon,h=this.invSubMix,f=h[0],p=h[1],g=h[2],m=h[3];let v,y;for(a=0;a<s;a++)a<r?v=l[a]=t[a]:(y=v,a%r==0?(y=y<<8|y>>>24,y=c[y>>>24]<<24|c[y>>>16&255]<<16|c[y>>>8&255]<<8|c[255&y],y^=d[a/r|0]<<24):r>6&&a%r==4&&(y=c[y>>>24]<<24|c[y>>>16&255]<<16|c[y>>>8&255]<<8|c[255&y]),l[a]=v=(l[a-r]^y)>>>0);for(o=0;o<s;o++)a=s-o,y=3&o?l[a]:l[a-4],u[o]=o<4||a<=4?y:f[c[y>>>24]]^p[c[y>>>16&255]]^g[c[y>>>8&255]]^m[c[255&y]],u[o]=u[o]>>>0}networkToHostOrderSwap(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}decrypt(e,t,n){const i=this.keySize+6,r=this.invKeySchedule,s=this.invSBox,a=this.invSubMix,o=a[0],l=a[1],u=a[2],c=a[3],d=this.uint8ArrayToUint32Array_(n);let h=d[0],f=d[1],p=d[2],g=d[3];const m=new Int32Array(e),v=new Int32Array(m.length);let y,_,b,E,w,x,k,S,C,A,T,D,L,R;const I=this.networkToHostOrderSwap;for(;t<m.length;){for(C=I(m[t]),A=I(m[t+1]),T=I(m[t+2]),D=I(m[t+3]),w=C^r[0],x=D^r[1],k=T^r[2],S=A^r[3],L=4,R=1;R<i;R++)y=o[w>>>24]^l[x>>16&255]^u[k>>8&255]^c[255&S]^r[L],_=o[x>>>24]^l[k>>16&255]^u[S>>8&255]^c[255&w]^r[L+1],b=o[k>>>24]^l[S>>16&255]^u[w>>8&255]^c[255&x]^r[L+2],E=o[S>>>24]^l[w>>16&255]^u[x>>8&255]^c[255&k]^r[L+3],w=y,x=_,k=b,S=E,L+=4;y=s[w>>>24]<<24^s[x>>16&255]<<16^s[k>>8&255]<<8^s[255&S]^r[L],_=s[x>>>24]<<24^s[k>>16&255]<<16^s[S>>8&255]<<8^s[255&w]^r[L+1],b=s[k>>>24]<<24^s[S>>16&255]<<16^s[w>>8&255]<<8^s[255&x]^r[L+2],E=s[S>>>24]<<24^s[w>>16&255]<<16^s[x>>8&255]<<8^s[255&k]^r[L+3],v[t]=I(y^h),v[t+1]=I(E^f),v[t+2]=I(b^p),v[t+3]=I(_^g),h=C,f=A,p=T,g=D,t+=4}return v.buffer}}class Ht{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=function(e){switch(e){case Ut:return"AES-CBC";case Kt:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${e}`)}}(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}class Vt{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 e=self.crypto;e&&(this.subtle=e.subtle||e.webkitSubtle)}catch(e){}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?function(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n,i){return this.useSoftware?new Promise(((r,s)=>{const a=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(a,t,n,i);const o=this.flush();o?r(o.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(e),t,n,i)}softwareDecrypt(e,t,n,i){const{currentIV:r,currentResult:s,remainderData:a}=this;if(i!==Ut||16!==t.byteLength)return T.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),a&&(e=ge(a,e),this.remainderData=null);const o=this.getValidChunk(e);if(!o.length)return null;r&&(n=r);let l=this.softwareDecrypter;l||(l=this.softwareDecrypter=new Gt),l.expandKey(t);const u=s;return this.currentResult=l.decrypt(o.buffer,0,n),this.currentIV=o.slice(-16).buffer,u||null}webCryptoDecrypt(e,t,n,i){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,i));this.key=t,this.fastAesKey=new Ht(this.subtle,t,i)}return this.fastAesKey.expandKey().then((t=>{if(!this.subtle)return Promise.reject(new Error("web crypto not initialized"));this.logOnce("WebCrypto AES decrypt");return new zt(this.subtle,new Uint8Array(n),i).decrypt(e.buffer,t)})).catch((r=>(T.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${r.name}: ${r.message}`),this.onWebCryptoError(e,t,n,i))))}onWebCryptoError(e,t,n,i){const r=this.enableSoftwareAES;if(r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,i);const r=this.flush();if(r)return r.buffer}throw new Error("WebCrypto"+(r?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%16;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(T.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Wt=Math.pow(2,17);class Yt{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 Qt({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error("Fragment does not have a "+(n?"part list":"url")),networkDetails:null}));this.abort();const i=this.config,r=i.fLoader,s=i.loader;return new Promise(((l,u)=>{if(this.loader&&this.loader.destroy(),e.gap){if(e.tagList.some((e=>"GAP"===e[0])))return void u(Xt(e));e.gap=!1}const c=this.loader=r?new r(i):new s(i),d=qt(e);e.loader=c;const h=Et(i.fragLoadPolicy.default),f={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===e.sn?1/0:Wt};e.stats=c.stats;const p={onSuccess:(t,n,i,r)=>{this.resetLoader(e,c);let s=t.data;i.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(s.slice(0,16)),s=s.slice(16)),l({frag:e,part:null,payload:s,networkDetails:r})},onError:(t,i,r,s)=>{this.resetLoader(e,c),u(new Qt({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:E({url:n,data:void 0},t),error:new Error(`HTTP Error ${t.code} ${t.text}`),networkDetails:r,stats:s}))},onAbort:(t,n,i)=>{this.resetLoader(e,c),u(new Qt({type:a.NETWORK_ERROR,details:o.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:i,stats:t}))},onTimeout:(t,n,i)=>{this.resetLoader(e,c),u(new Qt({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${f.timeout}ms`),networkDetails:i,stats:t}))}};t&&(p.onProgress=(n,i,r,s)=>t({frag:e,part:null,payload:r,networkDetails:s})),c.load(d,f,p)}))}loadPart(e,t,n){this.abort();const i=this.config,r=i.fLoader,s=i.loader;return new Promise(((l,u)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap)return void u(Xt(e,t));const c=this.loader=r?new r(i):new s(i),d=qt(e,t);e.loader=c;const h=Et(i.fragLoadPolicy.default),f={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Wt};t.stats=c.stats,c.load(d,f,{onSuccess:(i,r,s,a)=>{this.resetLoader(e,c),this.updateStatsFromPart(e,t);const o={frag:e,part:t,payload:i.data,networkDetails:a};n(o),l(o)},onError:(n,i,r,s)=>{this.resetLoader(e,c),u(new Qt({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:E({url:d.url,data:void 0},n),error:new Error(`HTTP Error ${n.code} ${n.text}`),networkDetails:r,stats:s}))},onAbort:(n,i,r)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,c),u(new Qt({type:a.NETWORK_ERROR,details:o.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:r,stats:n}))},onTimeout:(n,i,r)=>{this.resetLoader(e,c),u(new Qt({type:a.NETWORK_ERROR,details:o.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${f.timeout}ms`),networkDetails:r,stats:n}))}})}))}updateStatsFromPart(e,t){const n=e.stats,i=t.stats,r=i.total;if(n.loaded+=i.loaded,r){const i=Math.round(e.duration/t.duration),s=Math.min(Math.round(n.loaded/r),i),a=(i-s)*Math.round(n.loaded/s);n.total=n.loaded+a}else n.total=Math.max(n.loaded,n.total);const s=n.loading,a=i.loading;s.start?s.first+=a.first-a.start:(s.start=a.start,s.first=a.first),s.end=a.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function qt(e,t=null){const n=t||e,r={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},s=n.byteRangeStartOffset,a=n.byteRangeEndOffset;if(i(s)&&i(a)){var o;let t=s,n=a;if("initSegment"===e.sn&&("AES-128"===(l=null==(o=e.decryptdata)?void 0:o.method)||"AES-256"===l)){const e=a-s;e%16&&(n=a+(16-e%16)),0!==s&&(r.resetIV=!0,t=s-16)}r.rangeStart=t,r.rangeEnd=n}var l;return r}function Xt(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),i={type:a.MEDIA_ERROR,details:o.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(i.part=t),(t||e).stats.aborted=!0,new Qt(i)}class Qt extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class Jt extends w{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&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)}clearNextTick(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)}tick(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class $t{constructor(e,t,n,i=0,r=-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={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=e,this.sn=t,this.id=n,this.size=i,this.part=r,this.partial=s}}const en={length:0,start:()=>0,end:()=>0};class tn{static isBuffered(e,t){if(e){const n=tn.getBuffered(e);for(let e=n.length;e--;)if(t>=n.start(e)&&t<=n.end(e))return!0}return!1}static bufferedRanges(e){if(e){const t=tn.getBuffered(e);return tn.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}static bufferInfo(e,t,n){if(e){const i=tn.bufferedRanges(e);if(i.length)return tn.bufferedInfo(i,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(((e,t)=>e.start-t.start||t.end-e.end));let i=-1,r=[];if(n)for(let s=0;s<e.length;s++){t>=e[s].start&&t<=e[s].end&&(i=s);const a=r.length;if(a){const t=r[a-1].end;e[s].start-t<n?e[s].end>t&&(r[a-1].end=e[s].end):r.push(e[s])}else r.push(e[s])}else r=e;let s,a=0,o=t,l=t;for(let e=0;e<r.length;e++){const u=r[e].start,c=r[e].end;if(-1===i&&t>=u&&t<=c&&(i=e),t+n>=u&&t<c)o=u,l=c,a=l-t;else if(t+n<u){s=u;break}}return{len:a,start:o||0,end:l||0,nextStart:s,buffered:e,bufferedIndex:i}}static getBuffered(e){try{return e.buffered||en}catch(e){return T.log("failed to get media.buffered",e),en}}}const nn=/\{\$([a-zA-Z0-9-_]+)\}/g;function rn(e){return nn.test(e)}function sn(e,t){if(null!==e.variableList||e.hasVariableRefs){const n=e.variableList;return t.replace(nn,(t=>{const i=t.substring(2,t.length-1),r=null==n?void 0:n[i];return void 0===r?(e.playlistParsingError||(e.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),t):r}))}return t}function an(e,t,n){let i,r,s=e.variableList;if(s||(e.variableList=s={}),"QUERYPARAM"in t){i=t.QUERYPARAM;try{const e=new self.URL(n).searchParams;if(!e.has(i))throw new Error(`"${i}" does not match any query parameter in URI: "${n}"`);r=e.get(i)}catch(t){e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${t.message}`))}}else i=t.NAME,r=t.VALUE;i in s?e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):s[i]=r||""}function on(e,t,n){const i=t.IMPORT;if(n&&i in n){let t=e.variableList;t||(e.variableList=t={}),t[i]=n[i]}else e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${i}"`))}const ln=/^(\d+)x(\d+)$/,un=/(.+?)=(".*?"|.*?)(?:,|$)/g;class cn{constructor(e,t){"string"==typeof e&&(e=cn.parseAttrList(e,t)),_(this,e)}get clientAttrs(){return Object.keys(this).filter((e=>"X-"===e.substring(0,2)))}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=(1&t.length?"0":"")+t;const n=new Uint8Array(t.length/2);for(let e=0;e<t.length/2;e++)n[e]=parseInt(t.slice(2*e,2*e+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(((e,t)=>(e[t.toLowerCase()]=!0,e)),t)}bool(e){return"YES"===this[e]}decimalResolution(e){const t=ln.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;const i={};for(un.lastIndex=0;null!==(n=un.exec(e));){const r=n[1].trim();let s=n[2];const a=0===s.indexOf('"')&&s.lastIndexOf('"')===s.length-1;let o=!1;if(a)s=s.slice(1,-1);else switch(r){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":o=!0}if(t&&(a||o))s=sn(t,s);else if(!o&&!a)switch(r){case"CLOSED-CAPTIONS":if("NONE"===s)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":T.warn(`${e}: attribute ${r} is missing quotes`)}i[r]=s}return i}}function dn(e){return"SCTE35-OUT"===e||"SCTE35-IN"===e||"SCTE35-CMD"===e}class hn{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=(null==t?void 0:t.tagAnchor)||null,this.tagOrder=null!=(r=null==t?void 0:t.tagOrder)?r:n,t){const n=t.attr;for(const t in n)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==n[t]){T.warn(`DATERANGE tag attribute: "${t}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=t;break}e=_(new cn({}),n,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 e=(null==t?void 0:t.endDate)||new Date(this.attr["END-DATE"]);i(e.getTime())&&(this._endDate=e)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return void 0===e?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 null===e||null===e.programDateTime?(T.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 null!==t?this._dateAtEnd=new Date(this._startDate.getTime()+1e3*t):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(i(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"com.apple.hls.interstitial"===this.class}get isValid(){return!!this.id&&!this._badValueForSameId&&i(this.startDate.getTime())&&(null===this.duration||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)}}class fn{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)return this.advanced=!0,void(this.updated=!0);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||0===t&&n>0,this.updated||this.advanced?this.misses=Math.floor(.6*e.misses):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&&i(this.fragments[this.fragments.length-1].programDateTime)}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||10}get drift(){const e=this.driftEndTime-this.driftStartTime;if(e>0){return 1e3*(this.driftEnd-this.driftStart)/e}return 1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return null!=(e=this.partList)&&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 null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(-1!==t){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return null!=(e=this.partList)&&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 pn(e,t){return e.length===t.length&&!e.some(((e,n)=>e!==t[n]))}function gn(e,t){return!e&&!t||!(!e||!t)&&pn(e,t)}function mn(e){return"AES-128"===e||"AES-256"===e||"AES-256-CTR"===e}function vn(e){switch(e){case"AES-128":case"AES-256":return Ut;case"AES-256-CTR":return Kt;default:throw new Error(`invalid full segment method ${e}`)}}function yn(e){return Uint8Array.from(atob(e),(e=>e.charCodeAt(0)))}function _n(e){return Uint8Array.from(unescape(encodeURIComponent(e)),(e=>e.charCodeAt(0)))}function bn(e){const t=function(e,t,n){const i=e[t];e[t]=e[n],e[n]=i};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}function En(e){const t=e.split(":");let n=null;if("data"===t[0]&&2===t.length){const e=t[1].split(";"),i=e[e.length-1].split(",");if(2===i.length){const t="base64"===i[0],r=i[1];t?(e.splice(-1,1),n=yn(r)):n=function(e){const t=_n(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}(r)}}return n}const wn="undefined"!=typeof self?self:void 0;var xn={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},kn="org.w3.clearkey",Sn="com.apple.streamingkeydelivery",Cn="com.microsoft.playready",An="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function Tn(e){switch(e){case Sn:return xn.FAIRPLAY;case Cn:return xn.PLAYREADY;case An:return xn.WIDEVINE;case kn:return xn.CLEARKEY}}function Dn(e){switch(e){case xn.FAIRPLAY:return Sn;case xn.PLAYREADY:return Cn;case xn.WIDEVINE:return An;case xn.CLEARKEY:return kn}}function Ln(e){const{drmSystems:t,widevineLicenseUrl:n}=e,i=t?[xn.FAIRPLAY,xn.WIDEVINE,xn.PLAYREADY,xn.CLEARKEY].filter((e=>!!t[e])):[];return!i[xn.WIDEVINE]&&n&&i.push(xn.WIDEVINE),i}const Rn=null!=wn&&null!=(In=wn.navigator)&&In.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;var In;let Nn={};class Mn{static clearKeyUriToKeyIdMap(){Nn={}}static setKeyIdForUri(e,t){Nn[e]=t}constructor(e,t,n,i=[1],r=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=i,this.iv=r,this.encrypted=!!e&&"NONE"!==e,this.isCommonEncryption=this.encrypted&&!mn(e),null!=s&&s.startsWith("0x")&&(this.keyId=new Uint8Array(N(s)))}matches(e){return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&pn(e.keyFormatVersions,this.keyFormatVersions)&&gn(e.iv,this.iv)&&gn(e.keyId,this.keyId)}isSupported(){if(this.method){if(mn(this.method)||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case Sn:case An:case Cn:case kn:return-1!==["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(mn(this.method)){let t=this.iv;t||("number"!=typeof e&&(T.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0),t=function(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}(e));return new Mn(this.method,this.uri,"identity",this.keyFormatVersions,t)}if(this.pssh&&this.keyId)return this;const t=En(this.uri);if(t)switch(this.keyFormat){case An:if(this.pssh=t,!this.keyId){const e=function(e){const t=[];if(e instanceof ArrayBuffer){const n=e.byteLength;let i=0;for(;i+32<n;){const n=we(new DataView(e,i));t.push(n),i+=n.size}}return t}(t.buffer);if(e.length){var n;const t=e[0];this.keyId=null!=(n=t.kids)&&n.length?t.kids[0]:null}}if(!this.keyId){const e=t.length-22;this.keyId=t.subarray(e,e+16)}break;case Cn:{const e=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Ee(e,0,t),this.keyId=function(e){const t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=String.fromCharCode.apply(null,Array.from(t)),i=n.substring(n.indexOf("<"),n.length),r=(new DOMParser).parseFromString(i,"text/xml").getElementsByTagName("KID")[0];if(r){const e=r.childNodes[0]?r.childNodes[0].nodeValue:r.getAttribute("VALUE");if(e){const t=yn(e).subarray(0,16);return bn(t),t}}return null}(t);break}default:{let e=t.subarray(0,16);if(16!==e.length){const t=new Uint8Array(16);t.set(e,16-e.length),e=t}this.keyId=e;break}}if(!this.keyId||16!==this.keyId.byteLength){let e=Nn[this.uri];if(!e){const t=Object.keys(Nn).length%Number.MAX_SAFE_INTEGER;e=new Uint8Array(16);new DataView(e.buffer,12,4).setUint32(0,t),Mn.setKeyIdForUri(this.uri,e)}this.keyId=e}return this}}const Pn=/#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,On=/#EXT-X-MEDIA:(.*)/g,Fn=/^#EXT(?:INF|-X-TARGETDURATION):/m,Bn=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),Zn=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 jn{static findGroup(e,t){for(let n=0;n<e.length;n++){const i=e[n];if(i.id===t)return i}}static resolve(e,t){return K.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return Fn.test(e)}static parseMasterPlaylist(e,t){const n={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:rn(e)},i=[];if(Pn.lastIndex=0,!e.startsWith("#EXTM3U"))return n.playlistParsingError=new Error("no EXTM3U delimiter"),n;let r;for(;null!=(r=Pn.exec(e));)if(r[1]){var s;const e=new cn(r[1],n),a=sn(n,r[2]),o={attrs:e,bitrate:e.decimalInteger("BANDWIDTH")||e.decimalInteger("AVERAGE-BANDWIDTH"),name:e.NAME,url:jn.resolve(a,t)},l=e.decimalResolution("RESOLUTION");l&&(o.width=l.width,o.height=l.height),Hn(e.CODECS,o);const u=e["SUPPLEMENTAL-CODECS"];u&&(o.supplemental={},Hn(u,o.supplemental)),null!=(s=o.unknownCodecs)&&s.length||i.push(o),n.levels.push(o)}else if(r[3]){const e=r[3],i=r[4];switch(e){case"SESSION-DATA":{const e=new cn(i,n),t=e["DATA-ID"];t&&(null===n.sessionData&&(n.sessionData={}),n.sessionData[t]=e);break}case"SESSION-KEY":{const e=zn(i,t,n);e.encrypted&&e.isSupported()?(null===n.sessionKeys&&(n.sessionKeys=[]),n.sessionKeys.push(e)):T.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${i}"`);break}case"DEFINE":an(n,new cn(i,n),t);break;case"CONTENT-STEERING":{const e=new cn(i,n);n.contentSteering={uri:jn.resolve(e["SERVER-URI"],t),pathwayId:e["PATHWAY-ID"]||"."};break}case"START":n.startTimeOffset=Gn(i)}}const a=i.length>0&&i.length<n.levels.length;return n.levels=a?i:n.levels,0===n.levels.length&&(n.playlistParsingError=new Error("no levels found in manifest")),n}static parseMasterPlaylistMedia(e,t,n){let i;const r={},s=n.levels,a={AUDIO:s.map((e=>({id:e.attrs.AUDIO,audioCodec:e.audioCodec}))),SUBTITLES:s.map((e=>({id:e.attrs.SUBTITLES,textCodec:e.textCodec}))),"CLOSED-CAPTIONS":[]};let o=0;for(On.lastIndex=0;null!==(i=On.exec(e));){const e=new cn(i[1],n),s=e.TYPE;if(s){const n=a[s],i=r[s]||[];r[s]=i;const l=e.LANGUAGE,u=e["ASSOC-LANGUAGE"],c=e.CHANNELS,d=e.CHARACTERISTICS,h=e["INSTREAM-ID"],f={attrs:e,bitrate:0,id:o++,groupId:e["GROUP-ID"]||"",name:e.NAME||l||"",type:s,default:e.bool("DEFAULT"),autoselect:e.bool("AUTOSELECT"),forced:e.bool("FORCED"),lang:l,url:e.URI?jn.resolve(e.URI,t):""};if(u&&(f.assocLang=u),c&&(f.channels=c),d&&(f.characteristics=d),h&&(f.instreamId=h),null!=n&&n.length){const e=jn.findGroup(n,f.groupId)||n[0];Vn(f,e,"audioCodec"),Vn(f,e,"textCodec")}i.push(f)}}return r}static parseLevelPlaylist(e,t,n,r,s,a){var o;const l={url:t},u=new fn(t),c=u.fragments,d=[];let h,f,p,g,m=null,v=0,y=0,b=0,E=0,w=0,x=null,k=new q(r,l),S=-1,C=!1,A=null;if(Bn.lastIndex=0,u.m3u8=e,u.hasVariableRefs=rn(e),"#EXTM3U"!==(null==(o=Bn.exec(e))?void 0:o[0]))return u.playlistParsingError=new Error("Missing format identifier #EXTM3U"),u;for(;null!==(h=Bn.exec(e));){C&&(C=!1,k=new q(r,l),k.playlistOffset=b,k.setStart(b),k.sn=v,k.cc=E,w&&(k.bitrate=w),k.level=n,m&&(k.initSegment=m,m.rawProgramDateTime&&(k.rawProgramDateTime=m.rawProgramDateTime,m.rawProgramDateTime=null),A&&(k.setByteRange(A),A=null)));const e=h[1];if(e){k.duration=parseFloat(e);const t=(" "+h[2]).slice(1);k.title=t||null,k.tagList.push(t?["INF",e,t]:["INF",e])}else if(h[3]){if(i(k.duration)){k.playlistOffset=b,k.setStart(b),p&&qn(k,p,u),k.sn=v,k.level=n,k.cc=E,c.push(k);const e=(" "+h[3]).slice(1);k.relurl=sn(u,e),Wn(k,x,d),x=k,b+=k.duration,v++,y=0,C=!0}}else{if(h=h[0].match(Zn),!h){T.warn("No matches on slow regex match for level playlist!");continue}for(f=1;f<h.length&&void 0===h[f];f++);const e=(" "+h[f]).slice(1),s=(" "+h[f+1]).slice(1),o=h[f+2]?(" "+h[f+2]).slice(1):null;switch(e){case"BYTERANGE":x?k.setByteRange(s,x):k.setByteRange(s);break;case"PROGRAM-DATE-TIME":k.rawProgramDateTime=s,k.tagList.push(["PROGRAM-DATE-TIME",s]),-1===S&&(S=c.length);break;case"PLAYLIST-TYPE":u.type&&Xn(u,e,h),u.type=s.toUpperCase();break;case"MEDIA-SEQUENCE":0!==u.startSN?Xn(u,e,h):c.length>0&&Qn(u,e,h),v=u.startSN=parseInt(s);break;case"SKIP":{u.skippedSegments&&Xn(u,e,h);const t=new cn(s,u),n=t.decimalInteger("SKIPPED-SEGMENTS");if(i(n)){u.skippedSegments+=n;for(let e=n;e--;)c.push(null);v+=n}const r=t.enumeratedString("RECENTLY-REMOVED-DATERANGES");r&&(u.recentlyRemovedDateranges=(u.recentlyRemovedDateranges||[]).concat(r.split("\t")));break}case"TARGETDURATION":0!==u.targetduration&&Xn(u,e,h),u.targetduration=Math.max(parseInt(s),1);break;case"VERSION":null!==u.version&&Xn(u,e,h),u.version=parseInt(s);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":u.live||Xn(u,e,h),u.live=!1;break;case"#":(s||o)&&k.tagList.push(o?[s,o]:[s]);break;case"DISCONTINUITY":E++,k.tagList.push(["DIS"]);break;case"GAP":k.gap=!0,k.tagList.push([e]);break;case"BITRATE":k.tagList.push([e,s]),w=1e3*parseInt(s),i(w)?k.bitrate=w:w=0;break;case"DATERANGE":{const e=new cn(s,u),t=new hn(e,u.dateRanges[e.ID],u.dateRangeTagCount);u.dateRangeTagCount++,t.isValid||u.skippedSegments?u.dateRanges[t.id]=t:T.warn(`Ignoring invalid DATERANGE tag: "${s}"`),k.tagList.push(["EXT-X-DATERANGE",s]);break}case"DEFINE":{const e=new cn(s,u);"IMPORT"in e?on(u,e,a):an(u,e,t)}break;case"DISCONTINUITY-SEQUENCE":0!==u.startCC?Xn(u,e,h):c.length>0&&Qn(u,e,h),u.startCC=E=parseInt(s);break;case"KEY":{const e=zn(s,t,u);if(e.isSupported()){if("NONE"===e.method){p=void 0;break}p||(p={});const t=p[e.keyFormat];null!=t&&t.matches(e)||(t&&(p=_({},p)),p[e.keyFormat]=e)}else T.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${s}"`);break}case"START":u.startTimeOffset=Gn(s);break;case"MAP":{const e=new cn(s,u);if(k.duration){const t=new q(r,l);Yn(t,e,n,p),m=t,k.initSegment=m,m.rawProgramDateTime&&!k.rawProgramDateTime&&(k.rawProgramDateTime=m.rawProgramDateTime)}else{const t=k.byteRangeEndOffset;if(t){const e=k.byteRangeStartOffset;A=`${t-e}@${e}`}else A=null;Yn(k,e,n,p),m=k,C=!0}m.cc=E;break}case"SERVER-CONTROL":g&&Xn(u,e,h),g=new cn(s),u.canBlockReload=g.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=g.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&g.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=g.optionalFloat("PART-HOLD-BACK",0),u.holdBack=g.optionalFloat("HOLD-BACK",0);break;case"PART-INF":{u.partTarget&&Xn(u,e,h);const t=new cn(s);u.partTarget=t.decimalFloatingPoint("PART-TARGET");break}case"PART":{let e=u.partList;e||(e=u.partList=[]);const t=y>0?e[e.length-1]:void 0,n=y++,i=new cn(s,u),r=new X(i,k,l,n,t);e.push(r),k.duration+=r.duration;break}case"PRELOAD-HINT":{const e=new cn(s,u);u.preloadHint=e;break}case"RENDITION-REPORT":{const e=new cn(s,u);u.renditionReports=u.renditionReports||[],u.renditionReports.push(e);break}default:T.warn(`line parsed but not handled: ${h}`)}}}x&&!x.relurl?(c.pop(),b-=x.duration,u.partList&&(u.fragmentHint=x)):u.partList&&(Wn(k,x,d),k.cc=E,u.fragmentHint=k,p&&qn(k,p,u)),u.targetduration||(u.playlistParsingError=new Error("Missing Target Duration"));const D=c.length,L=c[0],R=c[D-1];if(b+=u.skippedSegments*u.targetduration,b>0&&D&&R){u.averagetargetduration=b/D;const e=R.sn;u.endSN="initSegment"!==e?e:0,u.live||(R.endList=!0),S>0&&(!function(e,t){let n=e[t];for(let i=t;i--;){const t=e[i];if(!t)return;t.programDateTime=n.programDateTime-1e3*t.duration,n=t}}(c,S),L&&d.unshift(L))}return u.fragmentHint&&(b+=u.fragmentHint.duration),u.totalduration=b,d.length&&u.dateRangeTagCount&&L&&Un(d,u),u.endCC=E,u}}function Un(e,t){let n=e.length;if(!n){if(!t.hasProgramDateTime)return;{const i=t.fragments[t.fragments.length-1];e.push(i),n++}}const i=e[n-1],r=t.live?1/0:t.totalduration,s=Object.keys(t.dateRanges);for(let o=s.length;o--;){const l=t.dateRanges[s[o]],u=l.startDate.getTime();l.tagAnchor=i.ref;for(let i=n;i--;){var a;if((null==(a=e[i])?void 0:a.sn)<t.startSN)break;const n=Kn(t,u,e,i,r);if(-1!==n){l.tagAnchor=t.fragments[n].ref;break}}}}function Kn(e,t,n,i,r){const s=n[i];if(s){const o=s.programDateTime;if(t>=o||0===i){var a;if(t<=o+1e3*(((null==(a=n[i+1])?void 0:a.start)||r)-s.start)){const r=n[i].sn-e.startSN;if(r<0)return-1;const s=e.fragments;if(s.length>n.length){for(let a=(n[i+1]||s[s.length-1]).sn-e.startSN;a>r;a--){const e=s[a].programDateTime;if(t>=e&&t<e+1e3*s[a].duration)return a}}return r}}}return-1}function zn(e,t,n){var i,r;const s=new cn(e,n),a=null!=(i=s.METHOD)?i:"",o=s.URI,l=s.hexadecimalInteger("IV"),u=s.KEYFORMATVERSIONS,c=null!=(r=s.KEYFORMAT)?r:"identity";o&&s.IV&&!l&&T.error(`Invalid IV: ${s.IV}`);const d=o?jn.resolve(o,t):"",h=(u||"1").split("/").map(Number).filter(Number.isFinite);return new Mn(a,d,c,h,l,s.KEYID)}function Gn(e){const t=new cn(e).decimalFloatingPoint("TIME-OFFSET");return i(t)?t:null}function Hn(e,t){let n=(e||"").split(/[ ,]+/).filter((e=>e));["video","audio","text"].forEach((e=>{const i=n.filter((t=>Se(t,e)));i.length&&(t[`${e}Codec`]=i.map((e=>e.split("/")[0])).join(","),n=n.filter((e=>-1===i.indexOf(e))))})),t.unknownCodecs=n}function Vn(e,t,n){const i=t[n];i&&(e[n]=i)}function Wn(e,t,n){e.rawProgramDateTime?n.push(e):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function Yn(e,t,n,i){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",i&&(e.levelkeys=i),e.initSegment=null}function qn(e,t,n){e.levelkeys=t;const{encryptedFragments:i}=n;i.length&&i[i.length-1].levelkeys===t||!Object.keys(t).some((e=>t[e].isCommonEncryption))||i.push(e)}function Xn(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function Qn(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function Jn(e,t){const n=t.startPTS;if(i(n)){let i,r=0;t.sn>e.sn?(r=n-e.start,i=e):(r=e.start-n,i=t),i.duration!==r&&i.setDuration(r)}else if(t.sn>e.sn){e.cc===t.cc&&e.minEndPTS?t.setStart(e.start+(e.minEndPTS-e.start)):t.setStart(e.start+e.duration)}else t.setStart(Math.max(e.start-t.duration,0))}function $n(e,t,n,r,s,a,o){r-n<=0&&(o.warn("Fragment should have a positive duration",t),r=n+t.duration,a=s+t.duration);let l=n,u=r;const c=t.startPTS,d=t.endPTS;if(i(c)){const h=Math.abs(c-n);e&&h>e.totalduration?o.warn(`media timestamps and playlist times differ by ${h}s for level ${t.level} ${e.url}`):i(t.deltaPTS)?t.deltaPTS=Math.max(h,t.deltaPTS):t.deltaPTS=h,l=Math.max(n,c),n=Math.min(n,c),s=void 0!==t.startDTS?Math.min(s,t.startDTS):s,u=Math.min(r,d),r=Math.max(r,d),a=void 0!==t.endDTS?Math.max(a,t.endDTS):a}const h=n-t.start;0!==t.start&&t.setStart(n),t.setDuration(r-t.start),t.startPTS=n,t.maxStartPTS=l,t.startDTS=s,t.endPTS=r,t.minEndPTS=u,t.endDTS=a;const f=t.sn;if(!e||f<e.startSN||f>e.endSN)return 0;let p;const g=f-e.startSN,m=e.fragments;for(m[g]=t,p=g;p>0;p--)Jn(m[p],m[p-1]);for(p=g;p<m.length-1;p++)Jn(m[p],m[p+1]);return e.fragmentHint&&Jn(m[m.length-1],e.fragmentHint),e.PTSKnown=e.alignedSliding=!0,h}function ei(e,t,n){if(e===t)return;let r=null;const s=e.fragments;for(let e=s.length-1;e>=0;e--){const t=s[e].initSegment;if(t){r=t;break}}let a;e.fragmentHint&&delete e.fragmentHint.endPTS,function(e,t,n){const i=t.skippedSegments,r=Math.max(e.startSN,t.startSN)-t.startSN,s=(e.fragmentHint?1:0)+(i?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,a=t.startSN-e.startSN,o=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;for(let u=r;u<=s;u++){const r=l[a+u];let s=o[u];if(i&&!s&&r&&(s=t.fragments[u]=r),r&&s){n(r,s,u,o);const i=r.relurl,a=s.relurl;if(i&&ui(i,a))return void(t.playlistParsingError=ti(`media sequence mismatch ${s.sn}:`,e,t,r,s));if(r.cc!==s.cc)return void(t.playlistParsingError=ti(`discontinuity sequence mismatch (${r.cc}!=${s.cc})`,e,t,r,s))}}}(e,t,((e,n,s,o)=>{if((!t.startCC||t.skippedSegments)&&n.cc!==e.cc){const i=e.cc-n.cc;for(let e=s;e<o.length;e++)o[e].cc+=i;t.endCC=o[o.length-1].cc}i(e.startPTS)&&i(e.endPTS)&&(n.setStart(n.startPTS=e.startPTS),n.startDTS=e.startDTS,n.maxStartPTS=e.maxStartPTS,n.endPTS=e.endPTS,n.endDTS=e.endDTS,n.minEndPTS=e.minEndPTS,n.setDuration(e.endPTS-e.startPTS),n.duration&&(a=n),t.PTSKnown=t.alignedSliding=!0),e.hasStreams&&(n.elementaryStreams=e.elementaryStreams),n.loader=e.loader,e.hasStats&&(n.stats=e.stats),e.initSegment&&(n.initSegment=e.initSegment,r=e.initSegment)}));const o=t.fragments,l=t.fragmentHint?o.concat(t.fragmentHint):o;if(r&&l.forEach((e=>{var t;!e||e.initSegment&&e.initSegment.relurl!==(null==(t=r)?void 0:t.relurl)||(e.initSegment=r)})),t.skippedSegments){if(t.deltaUpdateFailed=o.some((e=>!e)),t.deltaUpdateFailed){n.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let e=t.skippedSegments;e--;)o.shift();t.startSN=o[0].sn}else{t.canSkipDateRanges&&(t.dateRanges=function(e,t,n){const{dateRanges:i,recentlyRemovedDateranges:r}=t,s=_({},e);r&&r.forEach((e=>{delete s[e]}));const a=Object.keys(s).length;if(!a)return i;return Object.keys(i).forEach((e=>{const t=s[e],r=new hn(i[e].attr,t);r.isValid?(s[e]=r,t||(r.tagOrder+=a)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${nt(i[e].attr)}"`)})),s}(e.dateRanges,t,n));const i=e.fragments.filter((e=>e.rawProgramDateTime));if(e.hasProgramDateTime&&!t.hasProgramDateTime)for(let e=1;e<l.length;e++)null===l[e].programDateTime&&Wn(l[e],l[e-1],i);Un(i,t)}t.endCC=o[o.length-1].cc}if(!t.startCC){var u;const n=si(e,t.startSN-1);t.startCC=null!=(u=null==n?void 0:n.cc)?u:o[0].cc}!function(e,t,n){if(e&&t){let i=0;for(let r=0,s=e.length;r<=s;r++){const s=e[r],a=t[r+i];s&&a&&s.index===a.index&&s.fragment.sn===a.fragment.sn?n(s,a):i--}}}(e.partList,t.partList,((e,t)=>{t.elementaryStreams=e.elementaryStreams,t.stats=e.stats})),a?$n(t,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS,n):ni(e,t),o.length&&(t.totalduration=t.edge-o[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;const c=t.advancedDateTime;if(t.advanced&&c){const e=t.edge;t.driftStart||(t.driftStartTime=c,t.driftStart=e),t.driftEndTime=c,t.driftEnd=e}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;-1===t.requestScheduled&&(t.requestScheduled=e.requestScheduled)}function ti(e,t,n,i,r){return new Error(`${e} ${r.url}\nPlaylist starting @${t.startSN}\n${t.m3u8}\n\nPlaylist starting @${n.startSN}\n${n.m3u8}`)}function ni(e,t,n=!0){const i=t.startSN+t.skippedSegments-e.startSN,r=e.fragments,s=i>=0;let a=0;if(s&&i<r.length)a=r[i].start;else if(s&&t.startSN===e.endSN+1)a=e.fragmentEnd;else if(s&&n)a=e.fragmentStart+i*t.levelTargetDuration;else{if(t.skippedSegments||0!==t.fragmentStart)return;a=e.fragmentStart}ii(t,a)}function ii(e,t){if(t){const n=e.fragments;for(let i=e.skippedSegments;i<n.length;i++)n[i].addStart(t);e.fragmentHint&&e.fragmentHint.addStart(t)}}function ri(e,t=1/0){let n=1e3*e.targetduration;if(e.updated){const i=e.fragments,r=4;if(i.length&&n*r>t){const e=1e3*i[i.length-1].duration;e<n&&(n=e)}}else n/=2;return Math.round(n)}function si(e,t,n){if(!e)return null;let i=e.fragments[t-e.startSN];return i||(i=e.fragmentHint,i&&i.sn===t?i:t<e.startSN&&n&&n.sn===t?n:null)}function ai(e,t,n){return e?oi(e.partList,t,n):null}function oi(e,t,n){if(e)for(let i=e.length;i--;){const r=e[i];if(r.index===n&&r.fragment.sn===t)return r}return null}function li(e){e.forEach(((e,t)=>{var n;null==(n=e.details)||n.fragments.forEach((e=>{e.level=t,e.initSegment&&(e.initSegment.level=t)}))}))}function ui(e,t){return!(e===t||!t)&&ci(e)!==ci(t)}function ci(e){return e.replace(/\?[^?]*$/,"")}function di(e,t){for(let i=0,r=e.length;i<r;i++){var n;if((null==(n=e[i])?void 0:n.cc)===t)return e[i]}return null}function hi(e,t){const n=e.start+t;e.startPTS=n,e.setStart(n),e.endPTS=n+e.duration}function fi(e,t){const n=t.fragments;for(let t=0,i=n.length;t<i;t++)hi(n[t],e);t.fragmentHint&&hi(t.fragmentHint,e),t.alignedSliding=!0}function pi(e,t){if(!function(e,t){return!!(e&&t.startCC<e.endCC&&t.endCC>e.startCC)}(t,e))return;const n=Math.min(t.endCC,e.endCC),i=di(t.fragments,n),r=di(e.fragments,n);if(!i||!r)return;T.log(`Aligning playlist at start of dicontinuity sequence ${n}`);fi(i.start-r.start,e)}function gi(e,t){if(!e.hasProgramDateTime||!t.hasProgramDateTime)return;const n=e.fragments,i=t.fragments;if(!n.length||!i.length)return;let r,s;const a=Math.min(t.endCC,e.endCC);t.startCC<a&&e.startCC<a&&(r=di(i,a),s=di(n,a)),r&&s||(r=i[Math.floor(i.length/2)],s=di(n,r.cc)||n[Math.floor(n.length/2)]);const o=r.programDateTime,l=s.programDateTime;if(!o||!l)return;fi((l-o)/1e3-(s.start-r.start),e)}function mi(e,t,n){vi(e,t,n),e.addEventListener(t,n)}function vi(e,t,n){e.removeEventListener(t,n)}const yi=function(e){let t="";const n=e.length;for(let i=0;i<n;i++)t+=`[${e.start(i).toFixed(3)}-${e.end(i).toFixed(3)}]`;return t},_i="STOPPED",bi="IDLE",Ei="KEY_LOADING",wi="FRAG_LOADING",xi="FRAG_LOADING_WAITING_RETRY",ki="WAITING_TRACK",Si="PARSING",Ci="PARSED",Ai="ENDED",Ti="ERROR",Di="WAITING_INIT_PTS",Li="WAITING_LEVEL";class Ri extends Jt{constructor(e,t,n,r,s){super(r,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=_i,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:e,fragCurrent:t,media:n,mediaBuffer:r,state:s}=this,a=n?n.currentTime:0,o=tn.bufferInfo(r||n,a,e.maxBufferHole),l=!o.len;if(this.log(`Media seeking to ${i(a)?a.toFixed(3):a}, state: ${s}, ${l?"out of":"in"} buffer`),this.state===Ai)this.resetLoadingState();else if(t){const n=e.maxFragLookUpTolerance,i=t.start-n,r=t.start+t.duration+n;if(l||r<o.start||i>o.end){const e=a>r;(a<i||e)&&(e&&t.loader&&(this.log(`Cancelling fragment load for seek (sn: ${t.sn})`),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(n){this.fragmentTracker.removeFragmentsInRange(a,1/0,this.playlistType,!0);if(a>this.lastCurrentTime&&(this.lastCurrentTime=a),!this.loadingParts){const e=Math.max(o.end,a),t=this.shouldLoadParts(this.getLevelDetails(),e);t&&(this.log(`LL-Part loading ON after seeking to ${a.toFixed(2)} with buffer @${e.toFixed(2)}`),this.loadingParts=t)}}this.hls.hasEnoughToStart||(this.log(`Setting ${l?"startPosition":"nextLoadPosition"} to ${a} for seek without enough to start`),this.nextLoadPosition=a,l&&(this.startPosition=a)),l&&this.state===bi&&this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=s,this.hls=e,this.fragmentLoader=new Yt(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Vt(e.config)}registerListeners(){const{hls:e}=this;e.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(l.MANIFEST_LOADING,this.onManifestLoading,this),e.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(l.MANIFEST_LOADING,this.onManifestLoading,this),e.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(l.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===_i)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;null!=e&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=_i}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;return-1===t&&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,i=this.config.timelineOffset||0;if(n<=i)return!1;const r=e.buffered;this.config.maxBufferHole&&r&&r.length>1&&(e=tn.bufferedInfo(r,e.start,0));const s=e.nextStart;if(s&&s>i&&s<t.edge)return!1;if(this.media.currentTime<e.start)return!1;const a=t.partList;if(null!=a&&a.length){const e=a[a.length-1];return tn.isBuffered(this.media,e.start+e.duration/2)}const o=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(o)}getLevelDetails(){if(this.levels&&null!==this.levelLastLoaded)return this.levelLastLoaded.details}get timelineOffset(){const e=this.config.timelineOffset;var t;return e?(null==(t=this.getLevelDetails())?void 0:t.appliedTimelineOffset)||e:0}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;mi(n,"seeking",this.onMediaSeeking),mi(n,"ended",this.onMediaEnded);const i=this.config;this.levels&&i.autoStartLoad&&this.state===_i&&this.startLoad(i.startPosition)}onMediaDetaching(e,t){const n=!!t.transferMedia,i=this.media;if(null!==i){if(i.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),vi(i,"seeking",this.onMediaSeeking),vi(i,"ended",this.onMediaEnded),this.keyLoader&&!n&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,n)return this.resetLoadingState(),void this.resetTransmuxer();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=_i,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){this._doFragLoad(e,t,n,(e=>{const t=e.frag;if(this.fragContextChanged(t))return this.warn(`${t.type} sn: ${t.sn}${e.part?" part: "+e.part.index:""} of ${this.fragInfo(t,!1,e.part)}) was dropped during download.`),void this.fragmentTracker.removeFragment(t);t.stats.chunkCount++,this._handleFragmentLoadProgress(e)})).then((e=>{if(!e)return;const t=this.state,n=e.frag;this.fragContextChanged(n)?(t===wi||!this.fragCurrent&&t===Si)&&(this.fragmentTracker.removeFragment(n),this.state=bi):("payload"in e&&(this.log(`Loaded ${n.type} sn: ${n.sn} of ${this.playlistLabel()} ${n.level}`),this.hls.trigger(l.FRAG_LOADED,e)),this._handleFragmentLoadComplete(e))})).catch((t=>{this.state!==_i&&this.state!==Ti&&(this.warn(`Frag error: ${(null==t?void 0:t.message)||t}`),this.resetFragmentLoading(e))}))}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===Mt){const t=e.type,i=this.getFwdBufferInfo(this.mediaBuffer,t),r=Math.max(e.duration,i?i.len:this.config.maxBufferLength),s=this.backtrackFragment;(1===(s?e.sn-s.sn:0)||this.reduceMaxBufferLength(r,e.duration))&&n.removeFragment(e)}else 0===(null==(t=this.mediaBuffer)?void 0:t.buffered.length)?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===Pt&&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(null==t?void 0:t.live)&&"EVENT"!==t.type&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const i={startOffset:e,endOffset:t,type:n};this.hls.trigger(l.BUFFER_FLUSHING,i)}_loadInitSegment(e,t){this._doFragLoad(e,t).then((e=>{const t=null==e?void 0:e.frag;if(!t||this.fragContextChanged(t)||!this.levels)throw new Error("init load aborted");return e})).then((e=>{const{hls:t}=this,{frag:n,payload:i}=e,r=n.decryptdata;if(i&&i.byteLength>0&&null!=r&&r.key&&r.iv&&mn(r.method)){const s=self.performance.now();return this.decrypter.decrypt(new Uint8Array(i),r.key.buffer,r.iv.buffer,vn(r.method)).catch((e=>{throw t.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:n}),e})).then((i=>{const r=self.performance.now();return t.trigger(l.FRAG_DECRYPTED,{frag:n,payload:i,stats:{tstart:s,tdecrypt:r}}),e.payload=i,this.completeInitSegmentLoad(e)}))}return this.completeInitSegmentLoad(e)})).catch((t=>{this.state!==_i&&this.state!==Ti&&(this.warn(t),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!==_i&&(this.state=bi),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,i;const r=e.tracks;if(r&&!t.encrypted&&(null!=(n=r.audio)&&n.encrypted||null!=(i=r.video)&&i.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const e=this.media,n=new Error(`Encrypted track with no key in ${this.fragInfo(t)} (media ${e?"attached mediaKeys: "+e.mediaKeys:"detached"})`);return this.warn(n.message),!e||e.mediaKeys?!1:(this.hls.trigger(l.ERROR,{type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_NO_KEYS,fatal:!1,error:n,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?yi(tn.getBuffered(n)):"(detached)"})`),Y(e)){var i;if(e.type!==g){const t=e.elementaryStreams;if(!Object.keys(t).some((e=>!!t[e])))return void(this.state=bi)}const t=null==(i=this.levels)?void 0:i[e.level];null!=t&&t.fragmentError&&(this.log(`Resetting level fragment error count of ${t.fragmentError} on frag buffered`),t.fragmentError=0)}this.state=bi}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:i,partsLoaded:r}=e,s=!r||0===r.length||r.some((e=>!e)),a=new $t(n.level,n.sn,n.stats.chunkCount+1,0,i?i.index:-1,!s);t.flush(a)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var s;this.fragCurrent=e;const a=t.details;if(!this.levels||!a)throw new Error(`frag load aborted, missing level${a?"":" detail"}s`);let o=null;if(!e.encrypted||null!=(s=e.decryptdata)&&s.key)e.encrypted||(o=this.keyLoader.loadClear(e,a.encryptedFragments,this.startFragRequested),o&&this.log("[eme] blocking frag load until media-keys acquired"));else if(this.log(`Loading key for ${e.sn} of [${a.startSN}-${a.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=Ei,this.fragCurrent=e,o=this.keyLoader.load(e).then((e=>{if(!this.fragContextChanged(e.frag))return this.hls.trigger(l.KEY_LOADED,e),this.state===Ei&&(this.state=bi),e})),this.hls.trigger(l.KEY_LOADING,{frag:e}),null===this.fragCurrent)return this.log("context changed in KEY_LOADING"),Promise.resolve(null);const u=this.fragPrevious;if(Y(e)&&(!u||e.sn!==u.sn)){const n=this.shouldLoadParts(t.details,e.end);n!==this.loadingParts&&(this.log(`LL-Part loading ${n?"ON":"OFF"} loading sn ${null==u?void 0:u.sn}->${e.sn}`),this.loadingParts=n)}if(n=Math.max(e.start,n||0),this.loadingParts&&Y(e)){const i=a.partList;if(i&&r){n>a.fragmentEnd&&a.fragmentHint&&(e=a.fragmentHint);const s=this.getNextPart(i,e,n);if(s>-1){const u=i[s];let c;return e=this.fragCurrent=u.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${u.index} (${s}/${i.length-1}) of ${this.fragInfo(e,!1,u)}) cc: ${e.cc} [${a.startSN}-${a.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=u.start+u.duration,this.state=wi,c=o?o.then((n=>!n||this.fragContextChanged(n.frag)?null:this.doFragPartsLoad(e,u,t,r))).catch((e=>this.handleFragLoadError(e))):this.doFragPartsLoad(e,u,t,r).catch((e=>this.handleFragLoadError(e))),this.hls.trigger(l.FRAG_LOADING,{frag:e,part:u,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):c}if(!e.url||this.loadedEndOfParts(i,n))return Promise.resolve(null)}}var c;if(Y(e)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)} Check buffer at sn: ${e.sn} loaded parts: ${null==(c=a.partList)?void 0:c.filter((e=>e.loaded)).map((e=>`[${e.start}-${e.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} ${"["+a.startSN+"-"+a.endSN+"]"}, target: ${parseFloat(n.toFixed(3))}`),i(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=wi;const d=this.config.progressive;let h;return h=d&&o?o.then((t=>!t||this.fragContextChanged(t.frag)?null:this.fragmentLoader.load(e,r))).catch((e=>this.handleFragLoadError(e))):Promise.all([this.fragmentLoader.load(e,d?r:void 0),o]).then((([e])=>(!d&&r&&r(e),e))).catch((e=>this.handleFragLoadError(e))),this.hls.trigger(l.FRAG_LOADING,{frag:e,targetBufferTime:n}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):h}doFragPartsLoad(e,t,n,i){return new Promise(((r,s)=>{var a;const o=[],u=null==(a=n.details)?void 0:a.partList,c=t=>{this.fragmentLoader.loadPart(e,t,i).then((i=>{o[t.index]=i;const s=i.part;this.hls.trigger(l.FRAG_LOADED,i);const a=ai(n.details,e.sn,t.index+1)||oi(u,e.sn,t.index+1);if(!a)return r({frag:e,part:s,partsLoaded:o});c(a)})).catch(s)};c(t)}))}handleFragLoadError(e){if("data"in e){const t=e.data;t.frag&&t.details===o.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):t.frag&&t.type===a.KEY_SYSTEM_ERROR?(t.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(t.frag)):this.hls.trigger(l.ERROR,t)}else this.hls.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==Si)return void(this.fragCurrent||this.state===_i||this.state===Ti||(this.state=bi));const{frag:n,part:i,level:r}=t,s=self.performance.now();n.stats.parsing.end=s,i&&(i.stats.parsing.end=s);const a=this.getLevelDetails(),o=a&&n.sn>a.endSN||this.shouldLoadParts(a,n.end);o!==this.loadingParts&&(this.log(`LL-Part loading ${o?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=o),this.updateLevelTiming(n,i,r,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e.partList){var n;const r=e.partList[0];if(r.fragment.type===g)return!1;if(t>=r.end+((null==(n=e.fragmentHint)?void 0:n.duration)||0)){var i;if((this.hls.hasEnoughToStart?(null==(i=this.media)?void 0:i.currentTime)||this.lastCurrentTime:this.getLoadPosition())>r.start-r.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:i,sn:r,part:s}=e;if(null==t||!t[i])return this.warn(`Levels object was unset while buffering fragment ${r} of ${this.playlistLabel()} ${i}. The current chunk will not be buffered.`),null;const a=t[i],o=a.details,l=s>-1?ai(o,r,s):null,u=l?l.fragment:si(o,r,n);return u?(n&&n!==u&&(u.stats=n.stats),{frag:u,part:l,level:a}):null}bufferFragmentData(e,t,n,i,r){if(this.state!==Si)return;const{data1:s,data2:a}=e;let o=s;if(a&&(o=ge(s,a)),!o.length)return;const u=this.initPTS[t.cc],c=u?-u.baseTime/u.timescale:void 0,d={type:e.type,frag:t,part:n,chunkMeta:i,offset:c,parent:t.type,data:o};if(this.hls.trigger(l.BUFFER_APPENDING,d),e.dropped&&e.independent&&!n){if(r)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!tn.isBuffered(t,t.currentTime))return void this.flushMainBuffer(0,e.start);const n=t.currentTime,i=tn.bufferInfo(t,n,0),r=e.duration,s=Math.min(2*this.config.maxFragLookUpTolerance,.25*r),a=Math.max(Math.min(e.start-s,i.end-s),n+s);e.start-a>s&&this.flushMainBuffer(a,e.start)}getFwdBufferInfo(e,t){var n;const r=this.getLoadPosition();if(!i(r))return null;const s=this.lastCurrentTime>r||null!=(n=this.media)&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,r,t,s)}getFwdBufferInfoAtPos(e,t,n,i){const r=tn.bufferInfo(e,t,i);if(0===r.len&&void 0!==r.nextStart){const s=this.fragmentTracker.getBufferedFrag(t,n);if(s&&(r.nextStart<=s.end||s.gap)){const n=Math.max(Math.min(r.nextStart,s.end)-t,i);return tn.bufferInfo(e,t,n)}}return r}getMaxBufferLength(e){const{config:t}=this;let n;return n=e?Math.max(8*t.maxBufferSize/e,t.maxBufferLength):t.maxBufferLength,Math.min(n,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const n=this.config,i=Math.max(Math.min(e-t,n.maxBufferLength),t),r=Math.max(e-3*t,n.maxMaxBufferLength/2,i);return r>=i&&(n.maxMaxBufferLength=r,this.warn(`Reduce max buffer length to ${r}s`),!0)}getAppendedFrag(e,t=f){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,i=n.length;if(!i)return null;const{config:r}=this,s=n[0].start,a=r.lowLatencyMode&&!!t.partList;let o=null;if(t.live){const n=r.initialLiveManifestSize;if(i<n)return this.warn(`Not enough fragments to start playback (have: ${i}, need: ${n})`),null;if(!t.PTSKnown&&!this.startFragRequested&&-1===this.startPosition||e<s){var l;a&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),o=this.getInitialLiveFragment(t);const n=this.hls.startPosition,i=this.hls.liveSyncPosition,r=o?(-1!==n&&n>=s?n:i)||o.start:e;this.log(`Setting startPosition to ${r} to match start frag at live edge. mainStart: ${n} liveSyncPosition: ${i} frag.start: ${null==(l=o)?void 0:l.start}`),this.startPosition=this.nextLoadPosition=r}}else e<=s&&(o=n[0]);if(!o){const n=this.loadingParts?t.partEnd:t.fragmentEnd;o=this.getFragmentAtPosition(e,n,t)}let u=this.filterReplacedPrimary(o,t);if(!u&&o){const e=o.sn-t.startSN;u=this.filterReplacedPrimary(n[e+1]||null,t)}return this.mapToInitFragWhenRequired(u)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===Ot||n===Pt&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,i,r){let s=null;if(e.gap&&(s=this.getNextFragment(this.nextLoadPosition,t),s&&!s.gap&&n.nextStart)){const e=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,i,0);if(null!==e&&n.len+e.len>=r){const e=s.sn;return this.loopSn!==e&&(this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${e}`),this.loopSn=e),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(Ii(this.config)){var e;if(null==(e=this.hls.interstitialsManager)||null==(e=e.playingItem)?void 0:e.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(Ii(this.config)&&e.type!==g){const n=this.hls.interstitialsManager,i=null==n?void 0:n.bufferingItem;if(i){const n=i.event;if(n){if(n.appendInPlace||Math.abs(e.start-i.start)>1||0===i.start)return null}else{if(e.end<=i.start&&!1===(null==t?void 0:t.live))return null;if(e.start>i.end&&i.nextEvent&&(i.nextEvent.appendInPlace||e.start-i.end>1))return null}}const r=null==n?void 0:n.playerQueue;if(r)for(let t=r.length;t--;){const n=r[t].interstitial;if(n.appendInPlace&&e.start>=n.startTime&&e.end<=n.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return null==e||!e.initSegment||e.initSegment.data||this.bitrateTest?e:e.initSegment}getNextPart(e,t,n){let i=-1,r=!1,s=!0;for(let a=0,o=e.length;a<o;a++){const o=e[a];if(s=s&&!o.independent,i>-1&&n<o.start)break;const l=o.loaded;l?i=-1:(r||(o.independent||s)&&o.fragment===t)&&(o.fragment!==t&&this.warn(`Need buffer at ${n} but next unloaded part starts at ${o.start}`),i=a),r=l}return i}loadedEndOfParts(e,t){let n;for(let i=e.length;i--;){if(n=e[i],!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=function(e,t,n){if(null===t||!Array.isArray(e)||!e.length||!i(t))return null;if(t<(e[0].programDateTime||0))return null;if(t>=(e[e.length-1].endProgramDateTime||0))return null;for(let i=0;i<e.length;++i){const r=e[i];if(pt(t,n,r))return r}return null}(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=gt(e,n.cc,n.end),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const t=this.hls.liveSyncPosition;null!==t&&(r=this.getFragmentAtPosition(t,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){const{config:i}=this;let{fragPrevious:r}=this,{fragments:s,endSN:a}=n;const{fragmentHint:o}=n,{maxFragLookUpTolerance:l}=i,u=n.partList,c=!!(this.loadingParts&&null!=u&&u.length&&o);let d;if(c&&!this.bitrateTest&&u[u.length-1].fragment.sn===o.sn&&(s=s.concat(o),a=o.sn),e<t){var h;d=ht(r,s,e,e<this.lastCurrentTime||e>t-l||null!=(h=this.media)&&h.paused||!this.startFragRequested?0:l)}else d=s[s.length-1];if(d){const e=d.sn-n.startSN,t=this.fragmentTracker.getState(d);if((t===Ot||t===Pt&&d.gap)&&(r=d),r&&d.sn===r.sn&&(!c||u[0].fragment.sn>d.sn||!n.live)){if(d.level===r.level){const t=s[e+1];d=d.sn<a&&this.fragmentTracker.getState(t)!==Ot?t:null}}}return d}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const s=e.fragmentStart,a=!t,o=e.alignedSliding&&i(s);if(a||!o&&!s){!function(e,t){e&&(pi(t,e),t.alignedSliding||gi(t,e),t.alignedSliding||t.skippedSegments||ni(e,t,!1))}(n,e);const i=e.fragmentStart;return this.log(`Live playlist sliding: ${i.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${r}`),i}return s}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,3*e.partTarget)}setStartPosition(e,t){let n=this.startPosition;n<t&&(n=-1);const r=this.timelineOffset;if(-1===n){const s=null!==this.startTimeOffset,a=s?this.startTimeOffset:e.startTimeOffset;null!==a&&i(a)?(n=t+a,a<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Setting startPosition to ${n} for start time offset ${a} found in ${s?"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 null!=(e=this.hls)&&e.hasEnoughToStart&&t?n=t.currentTime:this.nextLoadPosition>=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&Y(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===xi)||(this.state=bi)}onFragmentOrKeyLoadError(e,t){var n;if(t.chunkMeta&&!t.frag){const e=this.getCurrentContext(t.chunkMeta);e&&(t.frag=e.frag)}const i=t.frag;if(!i||i.type!==e||!this.levels)return;var r;if(this.fragContextChanged(i))return void this.warn(`Frag load error must match current frag to retry ${i.url} > ${null==(r=this.fragCurrent)?void 0:r.url}`);const s=t.details===o.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(i,!0);const a=t.errorAction;if(!a)return void(this.state=Ti);const{action:l,flags:u,retryCount:c=0,retryConfig:d}=a,h=!!d,f=h&&l===At,p=h&&!a.resolved&&u===Dt,g=null==(n=this.hls.latestLevelDetails)?void 0:n.live;if(!f&&p&&Y(i)&&!i.endList&&g&&!yt(t))this.resetFragmentErrors(e),this.treatAsGap(i),a.resolved=!0;else if((f||p)&&c<d.maxNumRetry){var m;const n=xt(null==(m=t.response)?void 0:m.code),r=bt(d,c);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+r,this.state=xi,a.resolved=!0,n)return this.log("Waiting for connection (offline)"),this.retryDate=1/0,void(t.reason="offline");this.warn(`Fragment ${i.sn} of ${e} ${i.level} errored with ${t.details}, retrying loading ${c+1}/${d.maxNumRetry} in ${r}ms`)}else if(d){if(this.resetFragmentErrors(e),!(c<d.maxNumRetry))return void this.warn(`${t.details} reached or exceeded max retry (${c})`);s||l===Ct||(a.resolved=!0)}else this.state=l===St?Li:Ti;this.tickImmediate()}checkRetryDate(){const e=self.performance.now(),t=this.retryDate,n=t===1/0;(!t||e>=t||n&&!xt(0))&&(n&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=bi)}reduceLengthAndFlushBuffer(e){if(this.state===Si||this.state===Ci){const t=e.frag,n=e.parent,i=this.getFwdBufferInfo(this.mediaBuffer,n),r=i&&i.len>.5;r&&this.reduceMaxBufferLength(i.len,(null==t?void 0:t.duration)||10);const s=!r;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===p&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==_i&&(this.state=bi)}afterBufferFlushed(e,t,n){if(!e)return;const i=tn.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,i,n),this.state===Ai&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==_i&&(this.state=bi)}resetStartWhenNotLoaded(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const e=this.levelLastLoaded,t=e?e.details:null;null!=t&&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()} ${-1===e.level?"<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,i){const r=n.details;if(!r)return void this.warn("level.details undefined");var s;if(!Object.keys(e.elementaryStreams).reduce(((t,s)=>{const a=e.elementaryStreams[s];if(a){const o=a.endPTS-a.startPTS;if(o<=0)return this.warn(`Could not parse fragment ${e.sn} ${s} duration reliably (${o})`),t||!1;const u=i?0:$n(r,e,a.startPTS,a.endPTS,a.startDTS,a.endDTS,this);return this.hls.trigger(l.LEVEL_PTS_UPDATED,{details:r,level:n,drift:u,type:s,frag:e,start:a.startPTS,end:a.endPTS}),!0}return t}),!1)&&(0===n.fragmentError&&this.treatAsGap(e,n),null===(null==(s=this.transmuxer)?void 0:s.error))){const t=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(t.message),this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,fatal:!1,error:t,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=Ci,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(l.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===f?"level":"track"}fragInfo(e,t=!0,n){var i,r;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${(null!=(i=t&&!n?e.startPTS:(n||e).start)?i:NaN).toFixed(3)}-${(null!=(r=t&&!n?e.endPTS:(n||e).end)?r:NaN).toFixed(3)}]${n&&"main"===e.type?"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;null==(e=this.transmuxer)||e.reset()}recoverWorkerError(e){"demuxerWorker"===e.event&&(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 Ii(e){return!!e.interstitialsController&&!1!==e.enableInterstitialPlayback}class Ni{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;return e.length?(n=1===e.length?e[0]:function(e,t){const n=new Uint8Array(t);let i=0;for(let t=0;t<e.length;t++){const r=e[t];n.set(r,i),i+=r.length}return n}(e,t),this.reset(),n):new Uint8Array(0)}reset(){this.chunks.length=0,this.dataLength=0}}var Mi,Pi={exports:{}};var Oi=(Mi||(Mi=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,i,s,a){if("function"!=typeof i)throw new TypeError("The listener must be a function");var o=new r(i,s||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function o(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),o.prototype.eventNames=function(){var e,i,r=[];if(0===this._eventsCount)return r;for(i in e=this._events)t.call(e,i)&&r.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},o.prototype.listeners=function(e){var t=n?n+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,s=i.length,a=new Array(s);r<s;r++)a[r]=i[r].fn;return a},o.prototype.listenerCount=function(e){var t=n?n+e:e,i=this._events[t];return i?i.fn?1:i.length:0},o.prototype.emit=function(e,t,i,r,s,a){var o=n?n+e:e;if(!this._events[o])return!1;var l,u,c=this._events[o],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,i),!0;case 4:return c.fn.call(c.context,t,i,r),!0;case 5:return c.fn.call(c.context,t,i,r,s),!0;case 6:return c.fn.call(c.context,t,i,r,s,a),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,i);break;case 4:c[u].fn.call(c[u].context,t,i,r);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},o.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},o.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},o.prototype.removeListener=function(e,t,i,r){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return a(this,s),this;var o=this._events[s];if(o.fn)o.fn!==t||r&&!o.once||i&&o.context!==i||a(this,s);else{for(var l=0,u=[],c=o.length;l<c;l++)(o[l].fn!==t||r&&!o[l].once||i&&o[l].context!==i)&&u.push(o[l]);u.length?this._events[s]=1===u.length?u[0]:u:a(this,s)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new i,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o}(Pi)),Pi.exports),Fi=M(Oi);const Bi="1.6.12",Zi={};function ji(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function Ui(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function Ki(e,t){let n=0;return n=(127&e[t])<<21,n|=(127&e[t+1])<<14,n|=(127&e[t+2])<<7,n|=127&e[t+3],n}function zi(e,t){const n=t;let i=0;for(;Ui(e,t);){i+=10;i+=Ki(e,t+6),ji(e,t+10)&&(i+=10),t+=i}if(i>0)return e.subarray(n,n+i)}function Gi(e,t){return 255===e[t]&&240==(246&e[t+1])}function Hi(e,t){return 1&e[t+1]?7:9}function Vi(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function Wi(e,t){return t+1<e.length&&Gi(e,t)}function Yi(e,t){if(Wi(e,t)){const n=Hi(e,t);if(t+n>=e.length)return!1;const i=Vi(e,t);if(i<=n)return!1;const r=t+i;return r===e.length||Wi(e,r)}return!1}function qi(e,t,n,i,r){if(!e.samplerate){const s=function(e,t,n,i){const r=t[n+2],s=r>>2&15;if(s>12){const t=new Error(`invalid ADTS sampling index:${s}`);return void e.emit(l.ERROR,l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,fatal:!0,error:t,reason:t.message})}const u=1+(r>>6&3),c=t[n+3]>>6&3|(1&r)<<2,d="mp4a.40."+u,h=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350][s];let f=s;5!==u&&29!==u||(f-=3);const p=[u<<3|(14&f)>>1,(1&f)<<7|c<<3];return T.log(`manifest codec:${i}, parsed codec:${d}, channels:${c}, rate:${h} (ADTS object type:${u} sampling index:${s})`),{config:p,samplerate:h,channelCount:c,codec:d,parsedCodec:d,manifestCodec:i}}(t,n,i,r);if(!s)return;_(e,s)}}function Xi(e){return 9216e4/e}function Qi(e,t,n,i,r){const s=i+r*Xi(e.samplerate),a=function(e,t){const n=Hi(e,t);if(t+n<=e.length){const i=Vi(e,t)-n;if(i>0)return{headerLength:n,frameLength:i}}}(t,n);let o;if(a){const{frameLength:i,headerLength:r}=a,l=r+i,u=Math.max(0,n+l-t.length);u?(o=new Uint8Array(l-r),o.set(t.subarray(n+r,t.length),0)):o=t.subarray(n+r,n+l);const c={unit:o,pts:s};return u||e.samples.push(c),{sample:c,length:l,missing:u}}const l=t.length-n;o=new Uint8Array(l),o.set(t.subarray(n,t.length),0);return{sample:{unit:o,pts:s},length:l,missing:-1}}function Ji(e,t){return Ui(e,t)&&Ki(e,t+6)+10<=e.length-t}function $i(e,t=0,n=1/0){return function(e,t,n,i){const r=function(e){return e instanceof ArrayBuffer?e:e.buffer}(e);let s=1;"BYTES_PER_ELEMENT"in i&&(s=i.BYTES_PER_ELEMENT);const a=(d=e,d&&d.buffer instanceof ArrayBuffer&&void 0!==d.byteLength&&void 0!==d.byteOffset?e.byteOffset:0),o=(a+e.byteLength)/s,l=(a+t)/s,u=Math.floor(Math.max(0,Math.min(l,o))),c=Math.floor(Math.min(u+Math.max(n,0),o));var d;return new i(r,u,c-u)}(e,t,n,Uint8Array)}function er(e){const t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if(e.size<2)return;if(3!==e.data[0])return void console.log("Ignore frame with unrecognized character encoding");const n=e.data.subarray(1).indexOf(0);if(-1===n)return;const i=R($i(e.data,1,n)),r=e.data[2+n],s=e.data.subarray(3+n).indexOf(0);if(-1===s)return;const a=R($i(e.data,3+n,s));let o;return o="--\x3e"===i?R($i(e.data,4+n+s)):function(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}(e.data.subarray(4+n+s)),t.mimeType=i,t.pictureType=r,t.description=a,t.data=o,t}function tr(e){return"PRIV"===e.type?function(e){if(e.size<2)return;const t=R(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}(e):"W"===e.type[0]?function(e){if("WXXX"===e.type){if(e.size<2)return;let t=1;const n=R(e.data.subarray(t),!0);t+=n.length+1;const i=R(e.data.subarray(t));return{key:e.type,info:n,data:i}}const t=R(e.data);return{key:e.type,info:"",data:t}}(e):"APIC"===e.type?er(e):function(e){if(e.size<2)return;if("TXXX"===e.type){let t=1;const n=R(e.data.subarray(t),!0);t+=n.length+1;const i=R(e.data.subarray(t));return{key:e.type,info:n,data:i}}const t=R(e.data.subarray(1));return{key:e.type,info:"",data:t}}(e)}function nr(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=Ki(e,4);return{type:t,size:n,data:e.subarray(10,10+n)}}function ir(e){let t=0;const n=[];for(;Ui(e,t);){const i=Ki(e,t+6);e[t+5]>>6&1&&(t+=10),t+=10;const r=t+i;for(;t+10<r;){const i=nr(e.subarray(t)),r=tr(i);r&&n.push(r),t+=i.size+10}ji(e,t)&&(t+=10)}return n}function rr(e){return e&&"PRIV"===e.key&&"com.apple.streaming.transportStreamTimestamp"===e.info}function sr(e){if(8===e.data.byteLength){const t=new Uint8Array(e.data),n=1&t[3];let i=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return i/=45,n&&(i+=47721858.84),Math.round(i)}}function ar(e){const t=ir(e);for(let e=0;e<t.length;e++){const n=t[e];if(rr(n))return sr(n)}}let or=function(e){return e.audioId3="org.id3",e.dateRange="com.apple.quicktime.HLS",e.emsg="https://aomedia.org/emsg/ID3",e.misbklv="urn:misb:KLV:bin:1910.1",e}({});function lr(e="",t=9e4){return{type:e,id:-1,pid:-1,inputTimeScale:t,sequenceNumber:-1,samples:[],dropped:0}}class ur{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,i){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=ge(this.cachedData,e),this.cachedData=null);let n,r=zi(e,0),s=r?r.length:0;const a=this._audioTrack,o=this._id3Track,l=r?ar(r):void 0,u=e.length;for((null===this.basePTS||0===this.frameIndex&&i(l))&&(this.basePTS=cr(l,t,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),r&&r.length>0&&o.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:or.audioId3,duration:Number.POSITIVE_INFINITY});s<u;){if(this.canParse(e,s)){const t=this.appendFrame(a,e,s);t?(this.frameIndex++,this.lastPTS=t.sample.pts,s+=t.length,n=s):s=u}else Ji(e,s)?(r=zi(e,s),o.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:or.audioId3,duration:Number.POSITIVE_INFINITY}),s+=r.length,n=s):s++;if(s===u&&n!==u){const t=e.slice(n);this.cachedData?this.cachedData=ge(this.cachedData,t):this.cachedData=t}}return{audioTrack:a,videoTrack:lr(),id3Track:o,textTrack:lr()}}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:lr(),id3Track:this._id3Track,textTrack:lr()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const cr=(e,t,n)=>{if(i(e))return 90*e;return 9e4*t+(n?9e4*n.baseTime/n.timescale:0)};let dr=null;const hr=[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],fr=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],pr=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],gr=[0,1,1,4];function mr(e,t,n,i,r){if(n+24>t.length)return;const s=vr(t,n);if(s&&n+s.frameLength<=t.length){const a=i+r*(9e4*s.samplesPerFrame/s.sampleRate),o={unit:t.subarray(n,n+s.frameLength),pts:a,dts:a};return e.config=[],e.channelCount=s.channelCount,e.samplerate=s.sampleRate,e.samples.push(o),{sample:o,length:s.frameLength,missing:0}}}function vr(e,t){const n=e[t+1]>>3&3,i=e[t+1]>>1&3,r=e[t+2]>>4&15,s=e[t+2]>>2&3;if(1!==n&&0!==r&&15!==r&&3!==s){const a=e[t+2]>>1&1,o=e[t+3]>>6,l=1e3*hr[14*(3===n?3-i:3===i?3:4)+r-1],u=fr[3*(3===n?0:2===n?1:2)+s],c=3===o?1:2,d=pr[n][i],h=gr[i],f=8*d*h,p=Math.floor(d*l/u+a)*h;if(null===dr){const e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);dr=e?parseInt(e[1]):0}return!!dr&&dr<=87&&2===i&&l>=224e3&&0===o&&(e[t+3]=128|e[t+3]),{sampleRate:u,channelCount:c,frameLength:p,samplesPerFrame:f}}}function yr(e,t){return 255===e[t]&&224==(224&e[t+1])&&0!=(6&e[t+1])}function _r(e,t){return t+1<e.length&&yr(e,t)}function br(e,t){if(t+1<e.length&&yr(e,t)){const n=4,i=vr(e,t);let r=n;null!=i&&i.frameLength&&(r=i.frameLength);const s=t+r;return s===e.length||_r(e,s)}return!1}const Er=(e,t)=>{let n=0,i=5;t+=i;const r=new Uint32Array(1),s=new Uint32Array(1),a=new Uint8Array(1);for(;i>0;){a[0]=e[t];const o=Math.min(i,8),l=8-o;s[0]=4278190080>>>24+l<<l,r[0]=(a[0]&s[0])>>l,n=n?n<<o|r[0]:r[0],t+=1,i-=o}return n};class wr extends ur{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,n,i){super.resetInitSegment(e,t,n,i),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,n){const i=xr(e,t,n,this.basePTS,this.frameIndex);if(-1!==i){return{sample:e.samples[e.samples.length-1],length:i,missing:0}}}static probe(e){if(!e)return!1;const t=zi(e,0);if(!t)return!1;const n=t.length;return 11===e[n]&&119===e[n+1]&&void 0!==ar(t)&&Er(e,n)<16}}function xr(e,t,n,i,r){if(n+8>t.length)return-1;if(11!==t[n]||119!==t[n+1])return-1;const s=t[n+4]>>6;if(s>=3)return-1;const a=[48e3,44100,32e3][s],o=63&t[n+4],l=2*[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][3*o+s];if(n+l>t.length)return-1;const u=t[n+6]>>5;let c=0;2===u?c+=2:(1&u&&1!==u&&(c+=2),4&u&&(c+=2));const d=(t[n+6]<<8|t[n+7])>>12-c&1,h=[2,1,2,3,3,4,4,5][u]+d,f=t[n+5]>>3,p=7&t[n+5],g=new Uint8Array([s<<6|f<<1|p>>2,(3&p)<<6|u<<3|d<<2|o>>4,o<<4&224]),m=i+r*(1536/a*9e4),v=t.subarray(n,n+l);return e.config=g,e.channelCount=h,e.samplerate=a,e.samples.push({unit:v,pts:m}),l}const kr=/\/emsg[-/]ID3/i;function Sr(e,t){return i(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class Cr{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new Vt(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,Ut)}decryptAacSample(e,t,n){const i=e[t].unit;if(i.length<=16)return;const r=i.subarray(16,i.length-i.length%16),s=r.buffer.slice(r.byteOffset,r.byteOffset+r.length);this.decryptBuffer(s).then((r=>{const s=new Uint8Array(r);i.set(s,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)})).catch(n)}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length)return void n();if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=16*Math.floor((e.length-48)/160)+16,n=new Int8Array(t);let i=0;for(let t=32;t<e.length-16;t+=160,i+=16)n.set(e.subarray(t,t+16),i);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let i=0;for(let t=32;t<e.length-16;t+=160,i+=16)e.set(n.subarray(i,i+16),t);return e}decryptAvcSample(e,t,n,i,r){const s=be(r.data),a=this.getAvcEncryptedData(s);this.decryptBuffer(a.buffer).then((a=>{r.data=this.getAvcDecryptedUnit(s,a),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,i)})).catch(i)}decryptAvcSamples(e,t,n,i){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length)return void i();const r=e[t].units;for(;!(n>=r.length);n++){const s=r[n];if(!(s.data.length<=48||1!==s.type&&5!==s.type||(this.decryptAvcSample(e,t,n,i,s),this.decrypter.isSync())))return}}}}class Ar{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,i=this.VideoSample;if(i&&0!==i.units.length||(i=e[e.length-1]),null!=(t=i)&&t.units){const e=i.units;n=e[e.length-1]}return n}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(void 0===e.pts){const n=t.samples,i=n.length;if(!i)return void t.dropped++;{const t=n[i-1];e.pts=t.pts,e.dts=t.dts}}t.samples.push(e)}}parseNALu(e,t,n){const i=t.byteLength;let r=e.naluState||0;const s=r,a=[];let o,l,u,c=0,d=-1,h=0;for(-1===r&&(d=0,h=this.getNALuType(t,0),r=0,c=1);c<i;)if(o=t[c++],r)if(1!==r)if(o)if(1===o){if(l=c-r-1,d>=0){const e={data:t.subarray(d,l),type:h};a.push(e)}else{const n=this.getLastNalUnit(e.samples);n&&(s&&c<=4-s&&n.state&&(n.data=n.data.subarray(0,n.data.byteLength-s)),l>0&&(n.data=ge(n.data,t.subarray(0,l)),n.state=0))}c<i?(u=this.getNALuType(t,c),d=c,h=u,r=0):r=-1}else r=0;else r=3;else r=o?0:2;else r=o?0:1;if(d>=0&&r>=0){const e={data:t.subarray(d,i),type:h,state:r};a.push(e)}if(0===a.length){const n=this.getLastNalUnit(e.samples);n&&(n.data=ge(n.data,t))}return e.naluState=r,a}}class Tr{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,i=new Uint8Array(4),r=Math.min(4,t);if(0===r)throw new Error("no bytes available");i.set(e.subarray(n,n+r)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*r,this.bytesAvailable-=r}skipBits(e){let t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(t=(e-=this.bitsAvailable)>>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&&T.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}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(0!=(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 1===this.readBits(1)}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class Dr extends Ar{parsePES(e,t,n,i){const r=this.parseNALu(e,n.data,i);let s,a=this.VideoSample,o=!1;n.data=null,a&&r.length&&!e.audFound&&(this.pushAccessUnit(a,e),a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),r.forEach((i=>{var r,l;switch(i.type){case 1:{let t=!1;s=!0;const r=i.data;if(o&&r.length>4){const e=this.readSliceType(r);2!==e&&4!==e&&7!==e&&9!==e||(t=!0)}var u;if(t)null!=(u=a)&&u.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null);a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.frame=!0,a.key=t;break}case 5:s=!0,null!=(r=a)&&r.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 6:s=!0,_e(i.data,1,n.pts,t.samples);break;case 7:{var c,d;s=!0,o=!0;const t=i.data,n=this.readSPS(t);if(!e.sps||e.width!==n.width||e.height!==n.height||(null==(c=e.pixelRatio)?void 0:c[0])!==n.pixelRatio[0]||(null==(d=e.pixelRatio)?void 0:d[1])!==n.pixelRatio[1]){e.width=n.width,e.height=n.height,e.pixelRatio=n.pixelRatio,e.sps=[t];const i=t.subarray(1,4);let r="avc1.";for(let e=0;e<3;e++){let t=i[e].toString(16);t.length<2&&(t="0"+t),r+=t}e.codec=r}break}case 8:s=!0,e.pps=[i.data];break;case 9:s=!0,e.audFound=!0,null!=(l=a)&&l.frame&&(this.pushAccessUnit(a,e),a=null),a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:s=!0;break;default:s=!1}if(a&&s){a.units.push(i)}})),i&&a&&(this.pushAccessUnit(a,e),this.VideoSample=null)}getNALuType(e,t){return 31&e[t]}readSliceType(e){const t=new Tr(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n,i=8,r=8;for(let s=0;s<e;s++)0!==r&&(n=t.readEG(),r=(i+n+256)%256),i=0===r?i:r}readSPS(e){const t=new Tr(e);let n,i,r,s=0,a=0,o=0,l=0;const u=t.readUByte.bind(t),c=t.readBits.bind(t),d=t.readUEG.bind(t),h=t.readBoolean.bind(t),f=t.skipBits.bind(t),p=t.skipEG.bind(t),g=t.skipUEG.bind(t),m=this.skipScalingList.bind(this);u();const v=u();if(c(5),f(3),u(),g(),100===v||110===v||122===v||244===v||44===v||83===v||86===v||118===v||128===v){const e=d();if(3===e&&f(1),g(),g(),f(1),h())for(i=3!==e?8:12,r=0;r<i;r++)h()&&m(r<6?16:64,t)}g();const y=d();if(0===y)d();else if(1===y)for(f(1),p(),p(),n=d(),r=0;r<n;r++)p();g(),f(1);const _=d(),b=d(),E=c(1);0===E&&f(1),f(1),h()&&(s=d(),a=d(),o=d(),l=d());let w=[1,1];if(h()&&h()){switch(u()){case 1:w=[1,1];break;case 2:w=[12,11];break;case 3:w=[10,11];break;case 4:w=[16,11];break;case 5:w=[40,33];break;case 6:w=[24,11];break;case 7:w=[20,11];break;case 8:w=[32,11];break;case 9:w=[80,33];break;case 10:w=[18,11];break;case 11:w=[15,11];break;case 12:w=[64,33];break;case 13:w=[160,99];break;case 14:w=[4,3];break;case 15:w=[3,2];break;case 16:w=[2,1];break;case 255:w=[u()<<8|u(),u()<<8|u()]}}return{width:Math.ceil(16*(_+1)-2*s-2*a),height:(2-E)*(b+1)*16-(E?2:4)*(o+l),pixelRatio:w}}}class Lr extends Ar{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,i){const r=this.parseNALu(e,n.data,i);let s,a=this.VideoSample,o=!1;n.data=null,a&&r.length&&!e.audFound&&(this.pushAccessUnit(a,e),a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),r.forEach((i=>{var r,l;switch(i.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),a.frame=!0,s=!0;break;case 16:case 17:case 18:case 21:var u;if(s=!0,o)null!=(u=a)&&u.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null);a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 19:case 20:s=!0,null!=(r=a)&&r.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0,a.frame=!0;break;case 39:s=!0,_e(i.data,2,n.pts,t.samples);break;case 32:s=!0,e.vps||("object"!=typeof e.params&&(e.params={}),e.params=_(e.params,this.readVPS(i.data)),this.initVPS=i.data),e.vps=[i.data];break;case 33:if(s=!0,o=!0,void 0===e.vps||e.vps[0]===this.initVPS||void 0===e.sps||this.matchSPS(e.sps[0],i.data)||(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const t=this.readSPS(i.data);e.width=t.width,e.height=t.height,e.pixelRatio=t.pixelRatio,e.codec=t.codecString,e.sps=[],"object"!=typeof e.params&&(e.params={});for(const n in t.params)e.params[n]=t.params[n]}this.pushParameterSet(e.sps,i.data,e.vps),a||(a=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),a.key=!0;break;case 34:if(s=!0,"object"==typeof e.params){if(!e.pps){e.pps=[];const t=this.readPPS(i.data);for(const n in t)e.params[n]=t[n]}this.pushParameterSet(e.pps,i.data,e.vps)}break;case 35:s=!0,e.audFound=!0,null!=(l=a)&&l.frame&&(this.pushAccessUnit(a,e),a=null),a||(a=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:s=!1}if(a&&s){a.units.push(i)}})),i&&a&&(this.pushAccessUnit(a,e),this.VideoSample=null)}pushParameterSet(e,t,n){(n&&n[0]===this.initVPS||!n&&!e.length)&&e.push(t)}getNALuType(e,t){return(126&e[t])>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let n=0;for(let i=0;i<e.byteLength;i++)i>=2&&3===e[i]&&0===e[i-1]&&0===e[i-2]||(t[n]=e[i],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 Tr(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);return{numTemporalLayers:t.readBits(3)+1,temporalIdNested:t.readBoolean()}}readSPS(e){const t=new Tr(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const i=t.readBits(2),r=t.readBoolean(),s=t.readBits(5),a=t.readUByte(),o=t.readUByte(),l=t.readUByte(),u=t.readUByte(),c=t.readUByte(),d=t.readUByte(),h=t.readUByte(),f=t.readUByte(),p=t.readUByte(),g=t.readUByte(),m=t.readUByte(),v=[],y=[];for(let e=0;e<n;e++)v.push(t.readBoolean()),y.push(t.readBoolean());if(n>0)for(let e=n;e<8;e++)t.readBits(2);for(let e=0;e<n;e++)v[e]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),y[e]&&t.readUByte();t.readUEG();const _=t.readUEG();3==_&&t.skipBits(1);const b=t.readUEG(),E=t.readUEG(),w=t.readBoolean();let x=0,k=0,S=0,C=0;w&&(x+=t.readUEG(),k+=t.readUEG(),S+=t.readUEG(),C+=t.readUEG());const A=t.readUEG(),T=t.readUEG(),D=t.readUEG();for(let e=t.readBoolean()?0:n;e<=n;e++)t.skipUEG(),t.skipUEG(),t.skipUEG();t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.readBoolean()){if(t.readBoolean())for(let e=0;e<4;e++)for(let n=0;n<(3===e?2:6);n++){if(t.readBoolean()){const n=Math.min(64,1<<4+(e<<1));e>1&&t.readEG();for(let e=0;e<n;e++)t.readEG()}else t.readUEG()}}t.readBoolean(),t.readBoolean();t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const L=t.readUEG();let R=0;for(let e=0;e<L;e++){let n=!1;if(0!==e&&(n=t.readBoolean()),n){e===L&&t.readUEG(),t.readBoolean(),t.readUEG();let n=0;for(let e=0;e<=R;e++){const e=t.readBoolean();let i=!1;e||(i=t.readBoolean()),(e||i)&&n++}R=n}else{const e=t.readUEG(),n=t.readUEG();R=e+n;for(let n=0;n<e;n++)t.readUEG(),t.readBoolean();for(let e=0;e<n;e++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const e=t.readUEG();for(let n=0;n<e;n++){for(let e=0;e<D+4;e++)t.readBits(1);t.readBits(1)}}let I=0,N=1,M=1,P=!0,O=1,F=0;t.readBoolean(),t.readBoolean();let B=!1;if(t.readBoolean()){if(t.readBoolean()){const e=t.readUByte();e>0&&e<16?(N=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][e-1],M=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][e-1]):255===e&&(N=t.readBits(16),M=t.readBits(16))}t.readBoolean()&&t.readBoolean();if(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(),B=t.readBoolean(),B&&(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG());if(t.readBoolean()){O=t.readBits(32),F=t.readBits(32);t.readBoolean()&&t.readUEG();if(t.readBoolean()){const e=t.readBoolean(),i=t.readBoolean();let r=!1;(e||i)&&(r=t.readBoolean(),r&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),r&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let s=0;s<=n;s++){P=t.readBoolean();let n=!1;P||t.readBoolean()?t.readEG():n=t.readBoolean();const s=n?1:t.readUEG()+1;if(e)for(let e=0;e<s;e++)t.readUEG(),t.readUEG(),r&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(i)for(let e=0;e<s;e++)t.readUEG(),t.readUEG(),r&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),I=t.readUEG())}let Z=b,j=E;if(w){let e=1,t=1;1===_?e=t=2:2==_&&(e=2),Z=b-e*k-e*x,j=E-t*C-t*S}const U=i?["A","B","C"][i]:"",K=a<<24|o<<16|l<<8|u;let z=0;for(let e=0;e<32;e++)z=(z|(K>>e&1)<<31-e)>>>0;let G=z.toString(16);1===s&&"2"===G&&(G="6");return{codecString:`hvc1.${U}${s}.${G}.${r?"H":"L"}${m}.B0`,params:{general_tier_flag:r,general_profile_idc:s,general_profile_space:i,general_profile_compatibility_flags:[a,o,l,u],general_constraint_indicator_flags:[c,d,h,f,p,g],general_level_idc:m,bit_depth:A+8,bit_depth_luma_minus8:A,bit_depth_chroma_minus8:T,min_spatial_segmentation_idc:I,chroma_format_idc:_,frame_rate:{fixed:P,fps:F/O}},width:Z,height:j,pixelRatio:[N,M]}}readPPS(e){const t=new Tr(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 n=t.readBoolean(),i=t.readBoolean();let r=1;return i&&n?r=0:i?r=3:n&&(r=2),{parallelismType:r}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const Rr=188;class Ir{constructor(e,t,n,i){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=i,this.videoParser=null}static probe(e,t){const n=Ir.syncOffset(e);return n>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),-1!==n}static syncOffset(e){const t=e.length;let n=Math.min(940,t-Rr)+1,i=0;for(;i<n;){let r=!1,s=-1,a=0;for(let o=i;o<t;o+=Rr){if(71!==e[o]||t-o!==Rr&&71!==e[o+Rr]){if(a)return-1;break}if(a++,-1===s&&(s=o,0!==s&&(n=Math.min(s+18612,e.length-Rr)+1)),r||(r=0===Nr(e,o)),r&&a>1&&(0===s&&a>2||o+Rr>n))return s}i++}return-1}static createTrack(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:ee[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===e?t:void 0}}resetInitSegment(e,t,n,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=Ir.createTrack("video"),this._videoTrack.duration=i,this._audioTrack=Ir.createTrack("audio",i),this._id3Track=Ir.createTrack("id3"),this._txtTrack=Ir.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,i=!1){let r;n||(this.sampleAes=null);const s=this._videoTrack,a=this._audioTrack,o=this._id3Track,l=this._txtTrack;let u=s.pid,c=s.pesData,d=a.pid,h=o.pid,f=a.pesData,p=o.pesData,g=null,m=this.pmtParsed,v=this._pmtId,y=e.length;if(this.remainderData&&(y=(e=ge(this.remainderData,e)).length,this.remainderData=null),y<Rr&&!i)return this.remainderData=e,{audioTrack:a,videoTrack:s,id3Track:o,textTrack:l};const _=Math.max(0,Ir.syncOffset(e));y-=(y-_)%Rr,y<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,y,e.buffer.byteLength-y));let b=0;for(let t=_;t<y;t+=Rr)if(71===e[t]){const i=!!(64&e[t+1]),y=Nr(e,t);let b;if((48&e[t+3])>>4>1){if(b=t+5+e[t+4],b===t+Rr)continue}else b=t+4;switch(y){case u:i&&(c&&(r=Br(c,this.logger))&&(this.readyVideoParser(s.segmentCodec),null!==this.videoParser&&this.videoParser.parsePES(s,l,r,!1)),c={data:[],size:0}),c&&(c.data.push(e.subarray(b,t+Rr)),c.size+=t+Rr-b);break;case d:if(i){if(f&&(r=Br(f,this.logger)))switch(a.segmentCodec){case"aac":this.parseAACPES(a,r);break;case"mp3":this.parseMPEGPES(a,r);break;case"ac3":this.parseAC3PES(a,r)}f={data:[],size:0}}f&&(f.data.push(e.subarray(b,t+Rr)),f.size+=t+Rr-b);break;case h:i&&(p&&(r=Br(p,this.logger))&&this.parseID3PES(o,r),p={data:[],size:0}),p&&(p.data.push(e.subarray(b,t+Rr)),p.size+=t+Rr-b);break;case 0:i&&(b+=e[b]+1),v=this._pmtId=Mr(e,b);break;case v:{i&&(b+=e[b]+1);const r=Pr(e,b,this.typeSupported,n,this.observer,this.logger);u=r.videoPid,u>0&&(s.pid=u,s.segmentCodec=r.segmentVideoCodec),d=r.audioPid,d>0&&(a.pid=d,a.segmentCodec=r.segmentAudioCodec),h=r.id3Pid,h>0&&(o.pid=h),null===g||m||(this.logger.warn(`MPEG-TS PMT found at ${t} after unknown PID '${g}'. Backtracking to sync byte @${_} to parse all TS packets.`),g=null,t=_-188),m=this.pmtParsed=!0;break}case 17:case 8191:break;default:g=y}}else b++;b>0&&Or(this.observer,new Error(`Found ${b} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=c,a.pesData=f,o.pesData=p;const E={audioTrack:a,videoTrack:s,id3Track:o,textTrack:l};return i&&this.extractRemainingSamples(E),E}flush(){const{remainderData:e}=this;let t;return this.remainderData=null,t=e?this.demux(e,-1,!1,!0):{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:i,textTrack:r}=e,s=n.pesData,a=t.pesData,o=i.pesData;let l;if(s&&(l=Br(s,this.logger))?(this.readyVideoParser(n.segmentCodec),null!==this.videoParser&&(this.videoParser.parsePES(n,r,l,!0),n.pesData=null)):n.pesData=s,a&&(l=Br(a,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,l);break;case"mp3":this.parseMPEGPES(t,l);break;case"ac3":this.parseAC3PES(t,l)}t.pesData=null}else null!=a&&a.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=a;o&&(l=Br(o,this.logger))?(this.parseID3PES(i,l),i.pesData=null):i.pesData=o}demuxSampleAes(e,t,n){const i=this.demux(e,n,!0,!this.config.progressive),r=this.sampleAes=new Cr(this.observer,this.config,t);return this.decrypt(i,r)}readyVideoParser(e){null===this.videoParser&&("avc"===e?this.videoParser=new Dr:"hevc"===e&&(this.videoParser=new Lr))}decrypt(e,t){return new Promise((n=>{const{audioTrack:i,videoTrack:r}=e;i.samples&&"aac"===i.segmentCodec?t.decryptAacSamples(i.samples,0,(()=>{r.samples?t.decryptAvcSamples(r.samples,0,0,(()=>{n(e)})):n(e)})):r.samples&&t.decryptAvcSamples(r.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 i=this.aacOverFlow;let r,s,a,o=t.data;if(i){this.aacOverFlow=null;const t=i.missing,r=i.sample.unit.byteLength;if(-1===t)o=ge(i.sample.unit,o);else{const s=r-t;i.sample.unit.set(o.subarray(0,t),s),e.samples.push(i.sample),n=i.missing}}for(r=n,s=o.length;r<s-1&&!Wi(o,r);r++);if(r!==n){let e;const t=r<s-1;if(e=t?`AAC PES did not start with ADTS header,offset:${r}`:"No ADTS header found in AAC PES",Or(this.observer,new Error(e),t,this.logger),!t)return}if(qi(e,this.observer,o,r,this.audioCodec),void 0!==t.pts)a=t.pts;else{if(!i)return void this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");{const t=Xi(e.samplerate);a=i.sample.pts+t}}let l,u=0;for(;r<s;){if(l=Qi(e,o,r,a,u),r+=l.length,l.missing){this.aacOverFlow=l;break}for(u++;r<s-1&&!Wi(o,r);r++);}}parseMPEGPES(e,t){const n=t.data,i=n.length;let r=0,s=0;const a=t.pts;if(void 0!==a)for(;s<i;)if(_r(n,s)){const t=mr(e,n,s,a,r);if(!t)break;s+=t.length,r++}else s++;else this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS")}parseAC3PES(e,t){{const n=t.data,i=t.pts;if(void 0===i)return void this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");const r=n.length;let s,a=0,o=0;for(;o<r&&(s=xr(e,n,o,i,a++))>0;)o+=s}}parseID3PES(e,t){if(void 0===t.pts)return void this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");const n=_({},t,{type:this._videoTrack?or.emsg:or.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function Nr(e,t){return((31&e[t+1])<<8)+e[t+2]}function Mr(e,t){return(31&e[t+10])<<8|e[t+11]}function Pr(e,t,n,i,r,s){const a={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},o=t+3+((15&e[t+1])<<8|e[t+2])-4;for(t+=12+((15&e[t+10])<<8|e[t+11]);t<o;){const o=Nr(e,t),l=(15&e[t+3])<<8|e[t+4];switch(e[t]){case 207:if(!i){Fr("ADTS AAC",s);break}case 15:-1===a.audioPid&&(a.audioPid=o);break;case 21:-1===a.id3Pid&&(a.id3Pid=o);break;case 219:if(!i){Fr("H.264",s);break}case 27:-1===a.videoPid&&(a.videoPid=o);break;case 3:case 4:n.mpeg||n.mp3?-1===a.audioPid&&(a.audioPid=o,a.segmentAudioCodec="mp3"):s.log("MPEG audio found, not supported in this browser");break;case 193:if(!i){Fr("AC-3",s);break}case 129:n.ac3?-1===a.audioPid&&(a.audioPid=o,a.segmentAudioCodec="ac3"):s.log("AC-3 audio found, not supported in this browser");break;case 6:if(-1===a.audioPid&&l>0){let i=t+5,r=l;for(;r>2;){if(106===e[i])!0!==n.ac3?s.log("AC-3 audio found, not supported in this browser for now"):(a.audioPid=o,a.segmentAudioCodec="ac3");const t=e[i+1]+2;i+=t,r-=t}}break;case 194:case 135:return Or(r,new Error("Unsupported EC-3 in M2TS found"),void 0,s),a;case 36:-1===a.videoPid&&(a.videoPid=o,a.segmentVideoCodec="hevc",s.log("HEVC in M2TS found"))}t+=l+5}return a}function Or(e,t,n,i){i.warn(`parsing error: ${t.message}`),e.emit(l.ERROR,l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function Fr(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function Br(e,t){let n,i,r,s,a,o=0;const l=e.data;if(!e||0===e.size)return null;for(;l[0].length<19&&l.length>1;)l[0]=ge(l[0],l[1]),l.splice(1,1);n=l[0];if(1===(n[0]<<16)+(n[1]<<8)+n[2]){if(i=(n[4]<<8)+n[5],i&&i>e.size-6)return null;const u=n[7];192&u&&(s=536870912*(14&n[9])+4194304*(255&n[10])+16384*(254&n[11])+128*(255&n[12])+(254&n[13])/2,64&u?(a=536870912*(14&n[14])+4194304*(255&n[15])+16384*(254&n[16])+128*(255&n[17])+(254&n[18])/2,s-a>54e5&&(t.warn(`${Math.round((s-a)/9e4)}s delta between PTS and DTS, align them`),s=a)):a=s),r=n[8];let c=r+9;if(e.size<=c)return null;e.size-=c;const d=new Uint8Array(e.size);for(let e=0,t=l.length;e<t;e++){n=l[e];let t=n.byteLength;if(c){if(c>t){c-=t;continue}n=n.subarray(c),t-=c,c=0}d.set(n,o),o+=t}return i&&(i-=r+3),{data:d,pts:s,dts:a,len:i}}return null}class Zr{static getSilentFrame(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)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(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)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(2===t)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(3===t)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])}}}const jr=Math.pow(2,32)-1;class Ur{static init(){let e;for(e in Ur.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:[]},Ur.types)Ur.types.hasOwnProperty(e)&&(Ur.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]);Ur.HDLR_TYPES={video:t,audio:n};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),r=new Uint8Array([0,0,0,0,0,0,0,0]);Ur.STTS=Ur.STSC=Ur.STCO=r,Ur.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ur.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Ur.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ur.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),o=new Uint8Array([0,0,0,1]);Ur.FTYP=Ur.box(Ur.types.ftyp,s,o,s,a),Ur.DINF=Ur.box(Ur.types.dinf,Ur.box(Ur.types.dref,i))}static box(e,...t){let n=8,i=t.length;const r=i;for(;i--;)n+=t[i].byteLength;const s=new Uint8Array(n);for(s[0]=n>>24&255,s[1]=n>>16&255,s[2]=n>>8&255,s[3]=255&n,s.set(e,4),i=0,n=8;i<r;i++)s.set(t[i],n),n+=t[i].byteLength;return s}static hdlr(e){return Ur.box(Ur.types.hdlr,Ur.HDLR_TYPES[e])}static mdat(e){return Ur.box(Ur.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(jr+1)),i=Math.floor(t%(jr+1));return Ur.box(Ur.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,255&e,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))}static mdia(e){return Ur.box(Ur.types.mdia,Ur.mdhd(e.timescale||0,e.duration||0),Ur.hdlr(e.type),Ur.minf(e))}static mfhd(e){return Ur.box(Ur.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))}static minf(e){return"audio"===e.type?Ur.box(Ur.types.minf,Ur.box(Ur.types.smhd,Ur.SMHD),Ur.DINF,Ur.stbl(e)):Ur.box(Ur.types.minf,Ur.box(Ur.types.vmhd,Ur.VMHD),Ur.DINF,Ur.stbl(e))}static moof(e,t,n){return Ur.box(Ur.types.moof,Ur.mfhd(e),Ur.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=Ur.trak(e[t]);return Ur.box.apply(null,[Ur.types.moov,Ur.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(Ur.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=Ur.trex(e[t]);return Ur.box.apply(null,[Ur.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(jr+1)),i=Math.floor(t%(jr+1)),r=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,255&e,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i,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 Ur.box(Ur.types.mvhd,r)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let i,r;for(i=0;i<t.length;i++)r=t[i].flags,n[i+4]=r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy;return Ur.box(Ur.types.sdtp,n)}static stbl(e){return Ur.box(Ur.types.stbl,Ur.stsd(e),Ur.box(Ur.types.stts,Ur.STTS),Ur.box(Ur.types.stsc,Ur.STSC),Ur.box(Ur.types.stsz,Ur.STSZ),Ur.box(Ur.types.stco,Ur.STCO))}static avc1(e){let t,n,i,r=[],s=[];for(t=0;t<e.sps.length;t++)n=e.sps[t],i=n.byteLength,r.push(i>>>8&255),r.push(255&i),r=r.concat(Array.prototype.slice.call(n));for(t=0;t<e.pps.length;t++)n=e.pps[t],i=n.byteLength,s.push(i>>>8&255),s.push(255&i),s=s.concat(Array.prototype.slice.call(n));const a=Ur.box(Ur.types.avcC,new Uint8Array([1,r[3],r[4],r[5],255,224|e.sps.length].concat(r).concat([e.pps.length]).concat(s))),o=e.width,l=e.height,u=e.pixelRatio[0],c=e.pixelRatio[1];return Ur.box(Ur.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,o>>8&255,255&o,l>>8&255,255&l,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]),a,Ur.box(Ur.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ur.box(Ur.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,255&u,c>>24,c>>16&255,c>>8&255,255&c])))}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,255&t,0,0])}static mp4a(e){return Ur.box(Ur.types.mp4a,Ur.audioStsd(e),Ur.box(Ur.types.esds,Ur.esds(e)))}static mp3(e){return Ur.box(Ur.types[".mp3"],Ur.audioStsd(e))}static ac3(e){return Ur.box(Ur.types["ac-3"],Ur.audioStsd(e),Ur.box(Ur.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if("audio"===e.type){if("aac"===t)return Ur.box(Ur.types.stsd,Ur.STSD,Ur.mp4a(e));if("ac3"===t&&e.config)return Ur.box(Ur.types.stsd,Ur.STSD,Ur.ac3(e));if("mp3"===t&&"mp3"===e.codec)return Ur.box(Ur.types.stsd,Ur.STSD,Ur.mp3(e))}else{if(!e.pps||!e.sps)throw new Error("video track missing pps or sps");if("avc"===t)return Ur.box(Ur.types.stsd,Ur.STSD,Ur.avc1(e));if("hevc"===t&&e.vps)return Ur.box(Ur.types.stsd,Ur.STSD,Ur.hvc1(e))}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),i=e.width||0,r=e.height||0,s=Math.floor(n/(jr+1)),a=Math.floor(n%(jr+1));return Ur.box(Ur.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,255&t,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,a>>24,a>>16&255,a>>8&255,255&a,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,r>>8&255,255&r,0,0]))}static traf(e,t){const n=Ur.sdtp(e),i=e.id,r=Math.floor(t/(jr+1)),s=Math.floor(t%(jr+1));return Ur.box(Ur.types.traf,Ur.box(Ur.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),Ur.box(Ur.types.tfdt,new Uint8Array([1,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,s>>24,s>>16&255,s>>8&255,255&s])),Ur.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,Ur.box(Ur.types.trak,Ur.tkhd(e),Ur.mdia(e))}static trex(e){const t=e.id;return Ur.box(Ur.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const n=e.samples||[],i=n.length,r=12+16*i,s=new Uint8Array(r);let a,o,l,u,c,d;for(t+=8+r,s.set(["video"===e.type?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,255&i,t>>>24&255,t>>>16&255,t>>>8&255,255&t],0),a=0;a<i;a++)o=n[a],l=o.duration,u=o.size,c=o.flags,d=o.cts,s.set([l>>>24&255,l>>>16&255,l>>>8&255,255&l,u>>>24&255,u>>>16&255,u>>>8&255,255&u,c.isLeading<<2|c.dependsOn,c.isDependedOn<<6|c.hasRedundancy<<4|c.paddingValue<<1|c.isNonSync,61440&c.degradPrio,15&c.degradPrio,d>>>24&255,d>>>16&255,d>>>8&255,255&d],12+16*a);return Ur.box(Ur.types.trun,s)}static initSegment(e){Ur.types||Ur.init();const t=Ur.moov(e);return ge(Ur.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],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),3|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]);let r=i.length;for(let e=0;e<n.length;e+=1){r+=3;for(let t=0;t<n[e].length;t+=1)r+=2+n[e][t].length}const s=new Uint8Array(r);s.set(i,0),r=i.length;const a=n.length-1;for(let e=0;e<n.length;e+=1){s.set(new Uint8Array([32+e|(e===a?128:0),0,n[e].length]),r),r+=3;for(let t=0;t<n[e].length;t+=1)s.set(new Uint8Array([n[e][t].length>>8,255&n[e][t].length]),r),r+=2,s.set(n[e][t],r),r+=n[e][t].length}const o=Ur.box(Ur.types.hvcC,s),l=e.width,u=e.height,c=e.pixelRatio[0],d=e.pixelRatio[1];return Ur.box(Ur.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,l>>8&255,255&l,u>>8&255,255&u,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]),o,Ur.box(Ur.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ur.box(Ur.types.pasp,new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,d>>24,d>>16&255,d>>8&255,255&d])))}}Ur.types=void 0,Ur.HDLR_TYPES=void 0,Ur.STTS=void 0,Ur.STSC=void 0,Ur.STCO=void 0,Ur.STSZ=void 0,Ur.VMHD=void 0,Ur.SMHD=void 0,Ur.STSD=void 0,Ur.FTYP=void 0,Ur.DINF=void 0;function Kr(e,t,n=1,i=!1){const r=e*t*n;return i?Math.round(r):r}function zr(e,t=!1){return Kr(e,1e3,1/9e4,t)}let Gr,Hr=null,Vr=null;function Wr(e,t,n,i){return{duration:t,size:n,cts:i,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class Yr extends w{constructor(e,t,n,i){if(super("mp4-remuxer",i),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,null===Hr){const e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Hr=e?parseInt(e[1]):0}if(null===Vr){const e=navigator.userAgent.match(/Safari\/(\d+)/i);Vr=e?parseInt(e[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.log("initPTS & initDTS reset"),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,i=e.reduce(((e,i)=>{let r=i.pts,s=r-e;return s<-4294967296&&(t=!0,r=qr(r,n),s=r-e),s>0?e:r}),n);return t&&this.debug("PTS rollover detected"),i}remux(e,t,n,i,r,s,a,o){let l,u,c,d,h,f,g=r,m=r;const v=e.pid>-1,y=t.pid>-1,_=t.samples.length,b=e.samples.length>0,E=a&&_>0||_>1;if((!v||b)&&(!y||E)||this.ISGenerated||a){if(this.ISGenerated){var w,x,k,S;const e=this.videoTrackConfig;(e&&(t.width!==e.width||t.height!==e.height||(null==(w=t.pixelRatio)?void 0:w[0])!==(null==(x=e.pixelRatio)?void 0:x[0])||(null==(k=t.pixelRatio)?void 0:k[1])!==(null==(S=e.pixelRatio)?void 0:S[1]))||!e&&E||null===this.nextAudioTs&&b)&&this.resetInitSegment()}this.ISGenerated||(c=this.generateIS(e,t,r,s));const n=this.isVideoContiguous;let i,a=-1;if(E&&(a=function(e){for(let t=0;t<e.length;t++)if(e[t].key)return t;return-1}(t.samples),!n&&this.config.forceKeyFrameOnDiscontinuity))if(f=!0,a>0){this.warn(`Dropped ${a} out of ${_} video samples due to a missing keyframe`);const e=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(a),t.dropped+=a,m+=(t.samples[0].pts-e)/t.inputTimeScale,i=m}else-1===a&&(this.warn(`No keyframe found out of ${_} video samples`),f=!1);if(this.ISGenerated){if(b&&E){const n=this.getVideoStartPts(t.samples),i=(qr(e.samples[0].pts,n)-n)/t.inputTimeScale;g+=Math.max(0,i),m+=Math.max(0,-i)}if(b){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),c=this.generateIS(e,t,r,s)),u=this.remuxAudio(e,g,this.isAudioContiguous,s,y||E||o===p?m:void 0),E){const i=u?u.endPTS-u.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),c=this.generateIS(e,t,r,s)),l=this.remuxVideo(t,m,n,i)}}else E&&(l=this.remuxVideo(t,m,n,0));l&&(l.firstKeyFrame=a,l.independent=-1!==a,l.firstKeyFramePTS=i)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(h=Xr(n,r,this._initPTS,this._initDTS)),i.samples.length&&(d=Qr(i,r,this._initPTS))),{audio:u,video:l,initSegment:c,independent:f,text:d,id3:h}}generateIS(e,t,n,i){const r=e.samples,s=t.samples,a=this.typeSupported,o={},l=this._initPTS;let u,c,d,h=!l||i,f="audio/mp4",p=-1;if(h&&(u=c=1/0),e.config&&r.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":a.mpeg?(f="audio/mpeg",e.codec=""):a.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3"}o.audio={id:"audio",container:f,codec:e.codec,initSegment:"mp3"===e.segmentCodec&&a.mpeg?new Uint8Array(0):Ur.initSegment([e]),metadata:{channelCount:e.channelCount}},h&&(p=e.id,d=e.inputTimeScale,l&&d===l.timescale?h=!1:u=c=r[0].pts-Math.round(d*n))}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,o.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:Ur.initSegment([t]),metadata:{width:t.width,height:t.height}},h)if(p=t.id,d=t.inputTimeScale,l&&d===l.timescale)h=!1;else{const e=this.getVideoStartPts(s),t=Math.round(d*n);c=Math.min(c,qr(s[0].dts,e)-t),u=Math.min(u,e-t)}this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(o).length)return this.ISGenerated=!0,h?(l&&this.warn(`Timestamps at playlist time: ${i?"":"~"}${n} ${u/d} != initPTS: ${l.baseTime/l.timescale} (${l.baseTime}/${l.timescale}) trackId: ${l.trackId}`),this.log(`Found initPTS at playlist time: ${n} offset: ${u/d} (${u}/${d}) trackId: ${p}`),this._initPTS={baseTime:u,timescale:d,trackId:p},this._initDTS={baseTime:c,timescale:d,trackId:p}):u=d=void 0,{tracks:o,initPTS:u,timescale:d,trackId:p}}remuxVideo(e,t,n,i){const r=e.inputTimeScale,s=e.samples,u=[],c=s.length,d=this._initPTS,h=d.baseTime*r/d.timescale;let f,p,g=this.nextVideoTs,m=8,v=this.videoSampleDuration,y=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY,E=!1;if(!n||null===g){const e=h+t*r,i=s[0].pts-qr(s[0].dts,s[0].pts);Hr&&null!==g&&Math.abs(e-i-(g+h))<15e3?n=!0:g=e-i-h}const w=g+h;for(let e=0;e<c;e++){const t=s[e];t.pts=qr(t.pts,w),t.dts=qr(t.dts,w),t.dts<s[e>0?e-1:e].dts&&(E=!0)}E&&s.sort((function(e,t){const n=e.dts-t.dts,i=e.pts-t.pts;return n||i})),f=s[0].dts,p=s[s.length-1].dts;const x=p-f,k=x?Math.round(x/(c-1)):v||e.inputTimeScale/30;if(n){const n=f-w,i=n>k,r=n<-1;if((i||r)&&(i?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${zr(n,!0)} ms (${n}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${zr(-n,!0)} ms (${n}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!r||w>=s[0].pts||Hr)){f=w;const e=s[0].pts-n;if(i)s[0].dts=f,s[0].pts=e;else{let t=!0;for(let i=0;i<s.length&&!(s[i].dts>e&&t);i++){const e=s[i].pts;if(s[i].dts-=n,s[i].pts-=n,i<s.length-1){const n=s[i+1].pts;t=n<=s[i].pts==n<=e}}}this.log(`Video: Initial PTS/DTS adjusted: ${zr(e,!0)}/${zr(f,!0)}, delta: ${zr(n,!0)} ms`)}}f=Math.max(0,f);let S=0,C=0,A=f;for(let e=0;e<c;e++){const t=s[e],n=t.units,i=n.length;let r=0;for(let e=0;e<i;e++)r+=n[e].data.length;C+=r,S+=i,t.length=r,t.dts<A?(t.dts=A,A+=k/4|0||1):A=t.dts,y=Math.min(t.pts,y),b=Math.max(t.pts,b)}p=s[c-1].dts;const T=C+4*S+8;let D;try{D=new Uint8Array(T)}catch(e){return void this.observer.emit(l.ERROR,l.ERROR,{type:a.MUX_ERROR,details:o.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:T,reason:`fail allocating video mdat ${T}`})}const L=new DataView(D.buffer);L.setUint32(0,T),D.set(Ur.types.mdat,4);let R=!1,I=Number.POSITIVE_INFINITY,N=Number.POSITIVE_INFINITY,M=Number.NEGATIVE_INFINITY,P=Number.NEGATIVE_INFINITY;for(let e=0;e<c;e++){const t=s[e],n=t.units;let a,o=0;for(let e=0,t=n.length;e<t;e++){const t=n[e],i=t.data,r=t.data.byteLength;L.setUint32(m,r),m+=4,D.set(i,m),m+=r,o+=4+r}if(e<c-1)v=s[e+1].dts-t.dts,a=s[e+1].pts-t.pts;else{const n=this.config,o=e>0?t.dts-s[e-1].dts:k;if(a=e>0?t.pts-s[e-1].pts:k,n.stretchShortVideoTrack&&null!==this.nextAudioTs){const e=Math.floor(n.maxBufferHole*r),s=(i?y+i*r:this.nextAudioTs+h)-t.pts;s>e?(v=s-o,v<0?v=o:R=!0,this.log(`It is approximately ${s/90} ms to the next segment; using duration ${v/90} ms for the last video frame.`)):v=o}else v=o}const l=Math.round(t.pts-t.dts);I=Math.min(I,v),M=Math.max(M,v),N=Math.min(N,a),P=Math.max(P,a),u.push(Wr(t.key,v,o,l))}if(u.length)if(Hr){if(Hr<70){const e=u[0].flags;e.dependsOn=2,e.isNonSync=0}}else if(Vr&&P-N<M-I&&k/M<.025&&0===u[0].cts){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let e=f;for(let t=0,n=u.length;t<n;t++){const i=e+u[t].duration,r=e+u[t].cts;if(t<n-1){const e=i+u[t+1].cts;u[t].duration=e-r}else u[t].duration=t?u[t-1].duration:k;u[t].cts=0,e=i}}v=R||!v?k:v;const O=p+v;this.nextVideoTs=g=O-h,this.videoSampleDuration=v,this.isVideoContiguous=!0;const F={data1:Ur.moof(e.sequenceNumber++,f,_(e,{samples:u})),data2:D,startPTS:(y-h)/r,endPTS:(b+v-h)/r,startDTS:(f-h)/r,endDTS:g/r,type:"video",hasAudio:!1,hasVideo:!0,nb:u.length,dropped:e.dropped};return e.samples=[],e.dropped=0,F}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return 1152;case"ac3":return 1536;default:return 1024}}remuxAudio(e,t,n,i,r){const s=e.inputTimeScale,u=s/(e.samplerate?e.samplerate:s),c=this.getSamplesPerFrame(e),d=c*u,h=this._initPTS,f="mp3"===e.segmentCodec&&this.typeSupported.mpeg,p=[],g=void 0!==r;let m=e.samples,v=f?0:8,y=this.nextAudioTs||-1;const b=h.baseTime*s/h.timescale,E=b+t*s;if(this.isAudioContiguous=n=n||m.length&&y>0&&(i&&Math.abs(E-(y+b))<9e3||Math.abs(qr(m[0].pts,E)-(y+b))<20*d),m.forEach((function(e){e.pts=qr(e.pts,E)})),!n||y<0){if(m=m.filter((e=>e.pts>=0)),!m.length)return;y=0===r?0:i&&!g?Math.max(0,E-b):m[0].pts-b}if("aac"===e.segmentCodec){const t=this.config.maxAudioFramesDrift;for(let n=0,i=y+b;n<m.length;n++){const r=m[n],a=r.pts,o=a-i,l=Math.abs(1e3*o/s);if(o<=-t*d&&g)0===n&&(this.warn(`Audio frame @ ${(a/s).toFixed(3)}s overlaps marker by ${Math.round(1e3*o/s)} ms.`),this.nextAudioTs=y=a-b,i=a);else if(o>=t*d&&l<1e4&&g){let t=Math.round(o/d);for(i=a-t*d;i<0&&t&&d;)t--,i+=d;0===n&&(this.nextAudioTs=y=i-b),this.warn(`Injecting ${t} audio frames @ ${((i-b)/s).toFixed(3)}s due to ${Math.round(1e3*o/s)} ms gap.`);for(let s=0;s<t;s++){let t=Zr.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);t||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),t=r.unit.subarray()),m.splice(n,0,{unit:t,pts:i}),i+=d,n++}}r.pts=i,i+=d}}let w,x=null,k=null,S=0,C=m.length;for(;C--;)S+=m[C].unit.byteLength;for(let t=0,i=m.length;t<i;t++){const i=m[t],r=i.unit;let s=i.pts;if(null!==k){p[t-1].duration=Math.round((s-k)/u)}else{if(n&&"aac"===e.segmentCodec&&(s=y+b),x=s,!(S>0))return;S+=v;try{w=new Uint8Array(S)}catch(e){return void this.observer.emit(l.ERROR,l.ERROR,{type:a.MUX_ERROR,details:o.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:S,reason:`fail allocating audio mdat ${S}`})}if(!f){new DataView(w.buffer).setUint32(0,S),w.set(Ur.types.mdat,4)}}w.set(r,v);const d=r.byteLength;v+=d,p.push(Wr(!0,c,d,0)),k=s}const A=p.length;if(!A)return;const T=p[p.length-1];y=k-b,this.nextAudioTs=y+u*T.duration;const D=f?new Uint8Array(0):Ur.moof(e.sequenceNumber++,x/u,_({},e,{samples:p}));e.samples=[];const L=(x-b)/s,R=y/s,I={data1:D,data2:w,startPTS:L,endPTS:R,startDTS:L,endDTS:R,type:"audio",hasAudio:!0,hasVideo:!1,nb:A};return this.isAudioContiguous=!0,I}}function qr(e,t){let n;if(null===t)return e;for(n=t<e?-8589934592:8589934592;Math.abs(e-t)>4294967296;)e+=n;return e}function Xr(e,t,n,i){const r=e.samples.length;if(!r)return;const s=e.inputTimeScale;for(let a=0;a<r;a++){const r=e.samples[a];r.pts=qr(r.pts-n.baseTime*s/n.timescale,t*s)/s,r.dts=qr(r.dts-i.baseTime*s/i.timescale,t*s)/s}const a=e.samples;return e.samples=[],{samples:a}}function Qr(e,t,n){const i=e.samples.length;if(!i)return;const r=e.inputTimeScale;for(let s=0;s<i;s++){const i=e.samples[s];i.pts=qr(i.pts-n.baseTime*r/n.timescale,t*r)/r}e.samples.sort(((e,t)=>e.pts-t.pts));const s=e.samples;return e.samples=[],{samples:s}}function Jr(e,t,n=!1){return void 0!==(null==e?void 0:e.start)?(e.start+(n?e.duration:0))/e.timescale:t}function $r(e,t,n){const i=e.codec;if(i&&i.length>4)return i;if(t===G){if("ec-3"===i||"ac-3"===i||"alac"===i)return i;if("fLaC"===i||"Opus"===i){return Ne(i,!1)}return n.warn(`Unhandled audio codec "${i}" in mp4 MAP`),i||"mp4a"}return n.warn(`Unhandled video codec "${i}" in mp4 MAP`),i||"avc1"}try{Gr=self.performance.now.bind(self.performance)}catch(e){Gr=Date.now}const es=[{demux:class{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,i){const r=this.videoTrack=lr("video",1),s=this.audioTrack=lr("audio",1),a=this.txtTrack=lr("text",1);if(this.id3Track=lr("id3",1),this.timeOffset=0,null==e||!e.byteLength)return;const o=le(e);if(o.video){const{id:e,timescale:t,codec:n,supplemental:i}=o.video;r.id=e,r.timescale=a.timescale=t,r.codec=n,r.supplemental=i}if(o.audio){const{id:e,timescale:t,codec:n}=o.audio;s.id=e,s.timescale=t,s.codec=n}a.id=ee.text,r.sampleDuration=0,r.duration=s.duration=i}resetContiguity(){this.remainderData=null}static probe(e){return function(e){const t=e.byteLength;for(let n=0;n<t;){const i=ie(e,n);if(i>8&&109===e[n+4]&&111===e[n+5]&&111===e[n+6]&&102===e[n+7])return!0;n=i>1?n+i:t}return!1}(e)}demux(e,t){this.timeOffset=t;let n=e;const i=this.videoTrack,r=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=ge(this.remainderData,e));const t=function(e){const t={valid:null,remainder:null},n=ae(e,["moof"]);if(n.length<2)return t.remainder=e,t;const i=n[n.length-1];return t.valid=e.slice(0,i.byteOffset-8),t.remainder=e.slice(i.byteOffset-8),t}(n);this.remainderData=t.remainder,i.samples=t.valid||new Uint8Array}else i.samples=n;const s=this.extractID3Track(i,t);return r.samples=me(t,i),{videoTrack:i,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 i=this.extractID3Track(t,this.timeOffset);return n.samples=me(e,t),{videoTrack:t,audioTrack:lr(),id3Track:i,textTrack:lr()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const i=ae(e.samples,["emsg"]);i&&i.forEach((e=>{const i=function(e){const t=e[0];let n="",i="",s=0,a=0,o=0,l=0,u=0,c=0;if(0===t){for(;"\0"!==te(e.subarray(c,c+1));)n+=te(e.subarray(c,c+1)),c+=1;for(n+=te(e.subarray(c,c+1)),c+=1;"\0"!==te(e.subarray(c,c+1));)i+=te(e.subarray(c,c+1)),c+=1;i+=te(e.subarray(c,c+1)),c+=1,s=ie(e,12),a=ie(e,16),l=ie(e,20),u=ie(e,24),c=28}else if(1===t){c+=4,s=ie(e,c),c+=4;const t=ie(e,c);c+=4;const a=ie(e,c);for(c+=4,o=2**32*t+a,r(o)||(o=Number.MAX_SAFE_INTEGER,T.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=ie(e,c),c+=4,u=ie(e,c),c+=4;"\0"!==te(e.subarray(c,c+1));)n+=te(e.subarray(c,c+1)),c+=1;for(n+=te(e.subarray(c,c+1)),c+=1;"\0"!==te(e.subarray(c,c+1));)i+=te(e.subarray(c,c+1)),c+=1;i+=te(e.subarray(c,c+1)),c+=1}return{schemeIdUri:n,value:i,timeScale:s,presentationTime:o,presentationTimeDelta:a,eventDuration:l,id:u,payload:e.subarray(c,e.byteLength)}}(e);if(kr.test(i.schemeIdUri)){const e=Sr(i,t);let r=4294967295===i.eventDuration?Number.POSITIVE_INFINITY:i.eventDuration/i.timeScale;r<=.001&&(r=Number.POSITIVE_INFINITY);const s=i.payload;n.samples.push({data:s,len:s.byteLength,dts:e,pts:e,type:or.emsg,duration:r})}else if(this.config.enableEmsgKLVMetadata&&i.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const e=Sr(i,t);n.samples.push({data:i.payload,len:i.payload.byteLength,dts:e,pts:e,type:or.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}},remux:class extends w{constructor(e,t,n,i){super("passthrough-remuxer",i),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,i){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(e,i),this.emitInitSegment=!0}generateInitSegment(e,t){let{audioCodec:n,videoCodec:i}=this;if(null==e||!e.byteLength)return this.initTracks=void 0,void(this.initData=void 0);const{audio:r,video:s}=this.initData=le(e);if(t)!function(e,t){if(!e||!t)return;const n=t.keyId;n&&t.isCommonEncryption&&ae(e,["moov","trak"]).forEach((e=>{const t=ae(e,["mdia","minf","stbl","stsd"])[0].subarray(8);let i=ae(t,["enca"]);const r=i.length>0;r||(i=ae(t,["encv"])),i.forEach((e=>{ae(r?e.subarray(28):e.subarray(78),["sinf"]).forEach((e=>{const t=pe(e);if(t){const e=t.subarray(8,24);e.some((e=>0!==e))||(T.log(`[eme] Patching keyId in 'enc${r?"a":"v"}>sinf>>tenc' box: ${I(e)} -> ${I(n)}`),t.set(n,8))}}))}))}))}(e,t);else{const e=r||s;null!=e&&e.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${e.codec}")!`)}r&&(n=$r(r,G,this)),s&&(i=$r(s,H,this));const a={};r&&s?a.audiovideo={container:"video/mp4",codec:n+","+i,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:r?a.audio={container:"audio/mp4",codec:n,encrypted:r.encrypted,initSegment:e,id:"audio"}:s?a.video={container:"video/mp4",codec:i,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=a}remux(e,t,n,r,s,a){var o,l;let{initPTS:u,lastEndTime:c}=this;const d={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};i(c)||(c=this.lastEndTime=s||0);const h=t.samples;if(!h.length)return d;const f={initPTS:void 0,timescale:void 0,trackId:void 0};let p=this.initData;if(null!=(o=p)&&o.length||(this.generateInitSegment(h),p=this.initData),null==(l=p)||!l.length)return this.warn("Failed to generate initSegment."),d;this.emitInitSegment&&(f.tracks=this.initTracks,this.emitInitSegment=!1);const g=function(e,t,n){const r={},s=ae(e,["moof","traf"]);for(let e=0;e<s.length;e++){const a=s[e],o=ae(a,["tfhd"])[0],l=ie(o,4),u=t[l];if(!u)continue;r[l]||(r[l]={start:NaN,duration:0,sampleCount:0,timescale:u.timescale,type:u.type});const c=r[l],d=ae(a,["tfdt"])[0];if(d){const e=d[0];let t=ie(d,4);1===e&&(t===J?n.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(t*=J+1,t+=ie(d,8))),i(t)&&(!i(c.start)||t<c.start)&&(c.start=t)}const h=u.default,f=ie(o,0)|(null==h?void 0:h.flags);let p=(null==h?void 0:h.duration)||0;8&f&&(p=ie(o,2&f?12:8));const g=ae(a,["trun"]);let m=c.start||0,v=0,y=p;for(let e=0;e<g.length;e++){const t=g[e],n=ie(t,4),i=c.sampleCount;c.sampleCount+=n;const r=1&t[3],s=4&t[3],a=1&t[2],o=2&t[2],l=4&t[2],u=8&t[2];let d=8,h=n;for(r&&(d+=4),s&&n&&(1&t[d+1]||void 0!==c.keyFrameIndex||(c.keyFrameIndex=i),d+=4,a?(y=ie(t,d),d+=4):y=p,o&&(d+=4),u&&(d+=4),m+=y,v+=y,h--);h--;)a?(y=ie(t,d),d+=4):y=p,o&&(d+=4),l&&(1&t[d+1]||void 0===c.keyFrameIndex&&(c.keyFrameIndex=c.sampleCount-(h+1),c.keyFrameStart=m),d+=4),u&&(d+=4),m+=y,v+=y;!v&&p&&(v+=p*n)}c.duration+=v}if(!Object.keys(r).some((e=>r[e].duration))){let t=1/0,n=0;const s=ae(e,["sidx"]);for(let e=0;e<s.length;e++){const i=oe(s[e]);if(null!=i&&i.references){t=Math.min(t,i.earliestPresentationTime/i.timescale);const e=i.references.reduce(((e,t)=>e+t.info.duration||0),0);n=Math.max(n,e+i.earliestPresentationTime/i.timescale)}}n&&i(n)&&Object.keys(r).forEach((e=>{r[e].duration||(r[e].duration=n*r[e].timescale-r[e].start)}))}return r}(h,p,this),m=p.audio?g[p.audio.id]:null,v=p.video?g[p.video.id]:null,y=Jr(v,1/0),_=Jr(m,1/0),b=Jr(v,0,!0),E=Jr(m,0,!0);let w=s,x=0;const k=m&&(!v||!u&&_<y||u&&u.trackId===p.audio.id),S=k?m:v;if(S){const e=S.timescale,t=S.start-s*e,n=k?p.audio.id:p.video.id;w=S.start/e,x=k?E-_:b-y,!a&&u||!function(e,t,n,i){if(null===e)return!0;const r=Math.max(i,1),s=t-e.baseTime/e.timescale;return Math.abs(s-n)>r}(u,w,s,x)&&e===u.timescale||(u&&this.warn(`Timestamps at playlist time: ${a?"":"~"}${s} ${t/e} != initPTS: ${u.baseTime/u.timescale} (${u.baseTime}/${u.timescale}) trackId: ${u.trackId}`),this.log(`Found initPTS at playlist time: ${s} offset: ${w-s} (${t}/${e}) trackId: ${n}`),u=null,f.initPTS=t,f.timescale=e,f.trackId=n)}else this.warn(`No audio or video samples found for initPTS at playlist time: ${s}`);u?(f.initPTS=u.baseTime,f.timescale=u.timescale,f.trackId=u.trackId):(f.timescale&&void 0!==f.trackId&&void 0!==f.initPTS||(this.warn("Could not set initPTS"),f.initPTS=w,f.timescale=1,f.trackId=-1),this.initPTS=u={baseTime:f.initPTS,timescale:f.timescale,trackId:f.trackId});const C=w-u.baseTime/u.timescale,A=C+x;x>0?this.lastEndTime=A:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const T=!!p.audio,D=!!p.video;let L="";T&&(L+="audio"),D&&(L+="video");const R={data1:h,startPTS:C,startDTS:C,endPTS:A,endDTS:A,type:L,hasAudio:T,hasVideo:D,nb:1,dropped:0,encrypted:!!p.audio&&p.audio.encrypted||!!p.video&&p.video.encrypted};d.audio=T&&!D?R:void 0,d.video=D?R:void 0;const I=null==v?void 0:v.sampleCount;if(I){const e=v.keyFrameIndex,t=-1!==e;R.nb=I,R.dropped=0===e||this.isVideoContiguous?0:t?e:I,R.independent=t,R.firstKeyFrame=e,t&&v.keyFrameStart&&(R.firstKeyFramePTS=(v.keyFrameStart-u.baseTime)/u.timescale),this.isVideoContiguous||(d.independent=t),this.isVideoContiguous||(this.isVideoContiguous=t),R.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${e}/${I} dropped: ${R.dropped} start: ${R.firstKeyFramePTS||"NA"}`)}return d.initSegment=f,d.id3=Xr(n,s,u,u),r.samples.length&&(d.text=Qr(r,s,u)),d}}},{demux:Ir,remux:Yr},{demux:class extends ur{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,i){super.resetInitSegment(e,t,n,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const n=zi(e,0);let i=(null==n?void 0:n.length)||0;if(br(e,i))return!1;for(let n=e.length;i<n;i++)if(Yi(e,i))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return function(e,t){return function(e,t){return t+5<e.length}(e,t)&&Gi(e,t)&&Vi(e,t)<=e.length-t}(e,t)}appendFrame(e,t,n){qi(e,this.observer,t,n,e.manifestCodec);const i=Qi(e,t,n,this.basePTS,this.frameIndex);if(i&&0===i.missing)return i}},remux:Yr},{demux:class extends ur{resetInitSegment(e,t,n,i){super.resetInitSegment(e,t,n,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=zi(e,0);let n=(null==t?void 0:t.length)||0;if(t&&11===e[n]&&119===e[n+1]&&void 0!==ar(t)&&Er(e,n)<=16)return!1;for(let t=e.length;n<t;n++)if(br(e,n))return T.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return function(e,t){return yr(e,t)&&4<=e.length-t}(e,t)}appendFrame(e,t,n){if(null!==this.basePTS)return mr(e,t,n,this.basePTS,this.frameIndex)}},remux:Yr}];es.splice(2,0,{demux:wr,remux:Yr});class ts{constructor(e,t,n,i,r,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=r,this.logger=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,i){const r=n.transmuxing;r.executeStart=Gr();let s=new Uint8Array(e);const{currentTransmuxState:u,transmuxConfig:c}=this;i&&(this.currentTransmuxState=i);const{contiguous:d,discontinuity:h,trackSwitch:f,accurateTimeOffset:p,timeOffset:g,initSegmentChange:m}=i||u,{audioCodec:v,videoCodec:y,defaultInitPts:_,duration:b,initSegmentData:E}=c,w=function(e,t){let n=null;e.byteLength>0&&null!=(null==t?void 0:t.key)&&null!==t.iv&&null!=t.method&&(n=t);return n}(s,t);if(w&&mn(w.method)){const e=this.getDecrypter(),t=vn(w.method);if(!e.isSync())return this.asyncResult=!0,this.decryptionPromise=e.webCryptoDecrypt(s,w.key.buffer,w.iv.buffer,t).then((e=>{const t=this.push(e,null,n);return this.decryptionPromise=null,t})),this.decryptionPromise;{let i=e.softwareDecrypt(s,w.key.buffer,w.iv.buffer,t);if(n.part>-1){const t=e.flush();i=t?t.buffer:t}if(!i)return r.executeEnd=Gr(),ns(n);s=new Uint8Array(i)}}const x=this.needsProbing(h,f);if(x){const e=this.configureTransmuxer(s);if(e)return this.logger.warn(`[transmuxer] ${e.message}`),this.observer.emit(l.ERROR,l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,fatal:!1,error:e,reason:e.message}),r.executeEnd=Gr(),ns(n)}(h||f||m||x)&&this.resetInitSegment(E,v,y,b,t),(h||m||x)&&this.resetInitialTimestamp(_),d||this.resetContiguity();const k=this.transmux(s,w,g,p,n);this.asyncResult=is(k);const S=this.currentTransmuxState;return S.contiguous=!0,S.discontinuity=!1,S.trackSwitch=!1,r.executeEnd=Gr(),k}flush(e){const t=e.transmuxing;t.executeStart=Gr();const{decrypter:n,currentTransmuxState:i,decryptionPromise:r}=this;if(r)return this.asyncResult=!0,r.then((()=>this.flush(e)));const s=[],{timeOffset:a}=i;if(n){const t=n.flush();t&&s.push(this.push(t.buffer,null,e))}const{demuxer:o,remuxer:l}=this;if(!o||!l){t.executeEnd=Gr();const n=[ns(e)];return this.asyncResult?Promise.resolve(n):n}const u=o.flush(a);return is(u)?(this.asyncResult=!0,u.then((t=>(this.flushRemux(s,t,e),s)))):(this.flushRemux(s,u,e),this.asyncResult?Promise.resolve(s):s)}flushRemux(e,t,n){const{audioTrack:i,videoTrack:r,id3Track:s,textTrack:a}=t,{accurateTimeOffset:o,timeOffset:l}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===f?"level":"track"} ${n.level}`);const u=this.remuxer.remux(i,r,s,a,l,o,!0,this.id);e.push({remuxResult:u,chunkMeta:n}),n.transmuxing.executeEnd=Gr()}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,i,r){const{demuxer:s,remuxer:a}=this;s&&a&&(s.resetInitSegment(e,t,n,i),a.resetInitSegment(e,t,n,r))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,i,r){let s;return s=t&&"SAMPLE-AES"===t.method?this.transmuxSampleAes(e,t,n,i,r):this.transmuxUnencrypted(e,n,i,r),s}transmuxUnencrypted(e,t,n,i){const{audioTrack:r,videoTrack:s,id3Track:a,textTrack:o}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(r,s,a,o,t,n,!1,this.id),chunkMeta:i}}transmuxSampleAes(e,t,n,i,r){return this.demuxer.demuxSampleAes(e,t,n).then((e=>({remuxResult:this.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,n,i,!1,this.id),chunkMeta:r})))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:i}=this;let r;for(let t=0,n=es.length;t<n;t++){var s;if(null!=(s=es[t].demux)&&s.probe(e,this.logger)){r=es[t];break}}if(!r)return new Error("Failed to find demuxer by probing fragment data");const a=this.demuxer,o=this.remuxer,l=r.remux,u=r.demux;o&&o instanceof l||(this.remuxer=new l(n,t,i,this.logger)),a&&a instanceof u||(this.demuxer=new u(n,t,i,this.logger),this.probe=u.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new Vt(this.config)),e}}const ns=e=>({remuxResult:{},chunkMeta:e});function is(e){return"then"in e&&e.then instanceof Function}class rs{constructor(e,t,n,i,r){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=i,this.defaultInitPts=r||null}}class ss{constructor(e,t,n,i,r,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=i,this.timeOffset=r,this.initSegmentChange=s}}let as=0;class os{constructor(e,t,n,i){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=as++,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=e=>{const t=e.data,n=this.hls;if(n&&null!=t&&t.event&&t.instanceNo===this.instanceNo)switch(t.event){case"init":{var i;const e=null==(i=this.workerContext)?void 0:i.objectURL;e&&self.URL.revokeObjectURL(e);break}case"transmuxComplete":this.handleTransmuxComplete(t.data);break;case"flush":this.onFlush(t.data);break;case"workerLog":n.logger[t.data.logType]&&n.logger[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=this.frag,t.data.part=this.part,t.data.id=this.id,n.trigger(t.event,t.data)}},this.onWorkerError=e=>{if(!this.hls)return;const t=new Error(`${e.message} (${e.filename}:${e.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:t})};const r=e.config;this.hls=e,this.id=t,this.useWorker=!!r.enableWorker,this.onTransmuxComplete=n,this.onFlush=i;const s=(e,t)=>{(t=t||{}).frag=this.frag||void 0,e===l.ERROR&&(t.parent=this.id,t.part=this.part,this.error=t.error),this.hls.trigger(e,t)};this.observer=new Fi,this.observer.on(l.FRAG_DECRYPTED,s),this.observer.on(l.ERROR,s);const u=Fe(r.preferManagedMediaSource);if(this.useWorker&&"undefined"!=typeof Worker){const n=this.hls.logger;if(r.workerPath||"function"==typeof __HLS_WORKER_BUNDLE__){try{r.workerPath?(n.log(`loading Web Worker ${r.workerPath} for "${t}"`),this.workerContext=function(e){const t=Zi[e];if(t)return t.clientCount++,t;const n=new self.URL(e,self.location.href).href,i={worker:new self.Worker(n),scriptURL:n,clientCount:1};return Zi[e]=i,i}(r.workerPath)):(n.log(`injecting Web Worker for "${t}"`),this.workerContext=function(){const e=Zi[Bi];if(e)return e.clientCount++,e;const t=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),n=self.URL.createObjectURL(t),i={worker:new self.Worker(n),objectURL:n,clientCount:1};return Zi[Bi]=i,i}());const{worker:e}=this.workerContext;e.addEventListener("message",this.onWorkerMessage),e.addEventListener("error",this.onWorkerError),e.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:u,id:t,config:nt(r)})}catch(i){n.warn(`Error setting up "${t}" Web Worker, fallback to inline`,i),this.terminateWorker(),this.error=null,this.transmuxer=new ts(this.observer,u,r,"",t,e.logger)}return}}this.transmuxer=new ts(this.observer,u,r,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=as++;const t=this.hls.config,n=Fe(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:nt(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),function(e){const t=Zi[e||Bi];if(t&&1==t.clientCount--){const{worker:n,objectURL:i}=t;delete Zi[e||Bi],i&&self.URL.revokeObjectURL(i),n.terminate()}}(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const e=this.transmuxer;e&&(e.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,i,r,s,a,o,l,u){var c,d;l.transmuxing.start=self.performance.now();const{instanceNo:h,transmuxer:p}=this,g=s?s.start:r.start,m=r.decryptdata,v=this.frag,y=!(v&&r.cc===v.cc),_=!(v&&l.level===v.level),b=v?l.sn-v.sn:-1,E=this.part?l.part-this.part.index:-1,w=0===b&&l.id>1&&l.id===(null==v?void 0:v.stats.chunkCount),x=!_&&(1===b||0===b&&(1===E||w&&E<=0)),k=self.performance.now();(_||b||0===r.stats.parsing.start)&&(r.stats.parsing.start=k),!s||!E&&x||(s.stats.parsing.start=k);const S=!(v&&(null==(c=r.initSegment)?void 0:c.url)===(null==(d=v.initSegment)?void 0:d.url)),C=new ss(y,x,o,_,g,S);if(!x||y||S){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${r.type} sn: ${l.sn}${l.part>-1?" part: "+l.part:""} ${this.id===f?"level":"track"}: ${l.level} id: ${l.id}\n discontinuity: ${y}\n trackSwitch: ${_}\n contiguous: ${x}\n accurateTimeOffset: ${o}\n timeOffset: ${g}\n initSegmentChange: ${S}`);const e=new rs(n,i,t,a,u);this.configureTransmuxer(e)}if(this.frag=r,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:h,cmd:"demux",data:e,decryptdata:m,chunkMeta:l,state:C},e instanceof ArrayBuffer?[e]:[]);else if(p){const t=p.push(e,m,l,C);is(t)?t.then((e=>{this.handleTransmuxComplete(e)})).catch((e=>{this.transmuxerError(e,l,"transmuxer-interface push error")})):this.handleTransmuxComplete(t)}}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 t=n.flush(e);is(t)?t.then((t=>{this.handleFlushResult(t,e)})).catch((t=>{this.transmuxerError(t,e,"transmuxer-interface flush error")})):this.handleFlushResult(t,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach((e=>{this.handleTransmuxComplete(e)})),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)}}class ls extends w{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(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const i=null==t?void 0:t.renditionReports;if(i){let r=-1;for(let n=0;n<i.length;n++){const s=i[n];let a;try{a=new self.URL(s.URI,t.url).href}catch(e){this.warn(`Could not construct new URL for Rendition Report: ${e}`),a=s.URI||""}if(a===e){r=n;break}a===e.substring(0,a.length)&&(r=n)}if(-1!==r){const e=i[r],s=parseInt(e["LAST-MSN"])||t.lastPartSn;let a=parseInt(e["LAST-PART"])||t.lastPartIndex;if(this.hls.config.lowLatencyMode){const e=Math.min(t.age-t.partTarget,t.targetduration);a>=0&&e>t.partTarget&&(a+=1)}const o=n&&Qe(n);return new Je(s,a>=0?a:void 0,o)}}}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(e){this.warn(`Could not construct new URL with HLS Delivery Directives: ${e}`)}return e}playlistLoaded(e,t,n){const{details:i,stats:r}=t,s=self.performance.now(),u=r.loading.first?Math.max(0,s-r.loading.first):0;i.advancedDateTime=Date.now()-u;const c=this.hls.config.timelineOffset;if(c!==i.appliedTimelineOffset){const e=Math.max(c||0,0);i.appliedTimelineOffset=e,i.fragments.forEach((t=>{t.setStart(t.playlistOffset+e)}))}if(i.live||null!=n&&n.live){const c="levelInfo"in t?t.levelInfo:t.track;if(i.reloaded(n),n&&i.fragments.length>0){ei(n,i,this);const e=i.playlistParsingError;if(e){this.warn(e);const n=this.hls;if(!n.config.ignorePlaylistParsingErrors){var d;const{networkDetails:s}=t;return void n.trigger(l.ERROR,{type:a.NETWORK_ERROR,details:o.LEVEL_PARSING_ERROR,fatal:!1,url:i.url,error:e,reason:e.message,level:t.level||void 0,parent:null==(d=i.fragments[0])?void 0:d.type,networkDetails:s,stats:r})}i.playlistParsingError=null}}-1===i.requestScheduled&&(i.requestScheduled=r.loading.start);const h=this.hls.mainForwardBufferInfo,f=h?h.end-h.len:0,p=ri(i,1e3*(i.edge-f));if(i.requestScheduled+p<s?i.requestScheduled=s:i.requestScheduled+=p,this.log(`live playlist ${e} ${i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:i.updated?"UPDATED":"MISSED"}`),!this.canLoad||!i.live)return;let g,m,v;if(i.canBlockReload&&i.endSN&&i.advanced){const e=this.hls.config.lowLatencyMode,r=i.lastPartSn,a=i.endSN,o=i.lastPartIndex,l=r===a;-1!==o?l?(m=a+1,v=e?0:o):(m=r,v=e?o+1:i.maxPartIndex):m=a+1;const u=i.age,d=u+i.ageHeader;let h=Math.min(d-i.partTarget,1.5*i.targetduration);if(h>0){if(d>3*i.targetduration)this.log(`Playlist last advanced ${u.toFixed(2)}s ago. Omitting segment and part directives.`),m=void 0,v=void 0;else if(null!=n&&n.tuneInGoal&&d-i.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${h} with playlist age: ${i.age}`),h=0;else{const e=Math.floor(h/i.targetduration);if(m+=e,void 0!==v){v+=Math.round(h%i.targetduration/i.partTarget)}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${u.toFixed(2)}s goal: ${h} skip sn ${e} to part ${v}`)}i.tuneInGoal=h}if(g=this.getDeliveryDirectives(i,t.deliveryDirectives,m,v),e||!l)return i.requestScheduled=s,void this.loadingPlaylist(c,g)}else(i.canBlockReload||i.canSkipUntil)&&(g=this.getDeliveryDirectives(i,t.deliveryDirectives,m,v));g&&void 0!==m&&i.canBlockReload&&(i.requestScheduled=r.loading.first+Math.max(p-2*u,p/2)),this.scheduleLoading(c,g,i)}else this.clearTimer()}scheduleLoading(e,t,n){const i=n||e.details;if(!i)return void this.loadingPlaylist(e,t);const r=self.performance.now(),s=i.requestScheduled;if(r>=s)return void this.loadingPlaylist(e,t);const a=s-r;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(a)} ms`),this.clearTimer(),this.timer=self.setTimeout((()=>this.loadingPlaylist(e,t)),a)}getDeliveryDirectives(e,t,n,i){let r=Qe(e);return null!=t&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,i=t.part,r=Ye),new Je(n,i,r)}checkRetry(e){const t=e.details,n=mt(e),i=e.errorAction,{action:r,retryCount:s=0,retryConfig:a}=i||{},o=!!i&&!!a&&(r===At||!i.resolved&&r===St);if(o){var l;if(s>=a.maxNumRetry)return!1;if(n&&null!=(l=e.context)&&l.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${a.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const e=bt(a,s);this.clearTimer(),this.timer=self.setTimeout((()=>this.loadPlaylist()),e),this.warn(`Retrying playlist loading ${s+1}/${a.maxNumRetry} after "${t}" in ${e}ms`)}e.levelRetry=!0,i.resolved=!0}return o}}function us(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!cs(e[n].attrs,t[n].attrs))return!1;return!0}function cs(e,t,n){const i=e["STABLE-RENDITION-ID"];return i&&!n?i===t["STABLE-RENDITION-ID"]:!(n||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some((n=>e[n]!==t[n]))}function ds(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class hs{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(null===this.queues||null===this.tracks)return;const i=this.queues[t];i.push(e),1!==i.length||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(){null!==this.queues&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach((e=>{var t;const n=null==(t=e[0])?void 0:t.label;"async-blocker"!==n&&"async-blocker-prepend"!==n||(e[0].execute(),e.splice(0,1))}))}unblockAudio(e){if(null===this.queues)return;this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(null===this.queues||null===this.tracks)return;const t=this.queues[e];if(t.length){const i=t[0];try{i.execute()}catch(t){var n;if(i.onError(t),null===this.queues||null===this.tracks)return;const r=null==(n=this.tracks[e])?void 0:n.buffer;null!=r&&r.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){null!==this.queues&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return(null==(t=this.queues)?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return null===e||null===t?"<destroyed>":`\n${this.list("video")}\n${this.list("audio")}\n${this.list("audiovideo")}}`}list(e){var t,n;return null!=(t=this.queues)&&t[e]||null!=(n=this.tracks)&&n[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const n=null==(t=this.tracks)?void 0:t[e],i=null==n?void 0:n.buffer;return i?`SourceBuffer${i.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(e){var t;return(null==(t=this.queues)?void 0:t[e].map((e=>e.label)).join(", "))||""}}const fs=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,ps="HlsJsTrackRemovedError";class gs extends Error{constructor(e){super(e),this.name=ps}}function ms(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach((t=>{e.removeChild(t)}))}function vs(e){return"audio"===e?1:0}class ys{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(l.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(l.MANIFEST_PARSED,this.onManifestParsed,this),e.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(l.BUFFER_CODECS,this.onBufferCodecs,this),e.on(l.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(l.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(l.MANIFEST_PARSED,this.onManifestParsed,this),e.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(l.BUFFER_CODECS,this.onBufferCodecs,this),e.off(l.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&&i(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)return void(this.clientRect=null);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(((t,n)=>this.isLevelAllowed(t)&&n<=e));return this.clientRect=null,ys.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(e){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some((t=>e.bitrate===t.bitrate&&e.width===t.width&&e.height===t.height))}static getMaxLevelByMediaSize(e,t,n){if(null==e||!e.length)return-1;let i=e.length-1;const r=Math.max(t,n);for(let t=0;t<e.length;t+=1){const n=e[t];if((n.width>=r||n.height>=r)&&(s=n,!(a=e[t+1])||s.width!==a.width||s.height!==a.height)){i=t;break}}var s,a;return i}}const _s={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},bs={HLS:"h"};class Es{constructor(e,t){Array.isArray(e)&&(e=e.map((e=>e instanceof Es?e:new Es(e)))),this.value=e,this.params=t}}function ws(e,t,n,i){return new Error(`failed to ${e} "${r=t,Array.isArray(r)?JSON.stringify(r):r instanceof Map?"Map{}":r instanceof Set?"Set{}":"object"==typeof r?JSON.stringify(r):String(r)}" as ${n}`,{cause:i});var r}function xs(e,t,n){return ws("serialize",e,t,n)}class ks{constructor(e){this.description=e}}const Ss="Bare Item";function Cs(e){if(!1===ArrayBuffer.isView(e))throw xs(e,"Byte Sequence");return`:${t=e,btoa(String.fromCharCode(...t))}:`;var t}function As(e){if(function(e){return e<-999999999999999||999999999999999<e}(e))throw xs(e,"Integer");return e.toString()}function Ts(e,t){if(e<0)return-Ts(-e,t);const n=Math.pow(10,t);if(Math.abs(e*n%1-.5)<Number.EPSILON){const t=Math.floor(e*n);return(t%2==0?t:t+1)/n}return Math.round(e*n)/n}function Ds(e){const t=Ts(e,3);if(Math.floor(Math.abs(t)).toString().length>12)throw xs(e,"Decimal");const n=t.toString();return n.includes(".")?n:`${n}.0`}const Ls=/[\x00-\x1f\x7f]+/;function Rs(e){const t=(n=e).description||n.toString().slice(7,-1);var n;if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t))throw xs(t,"Token");return t}function Is(e){switch(typeof e){case"number":if(!i(e))throw xs(e,Ss);return Number.isInteger(e)?As(e):Ds(e);case"string":return function(e){if(Ls.test(e))throw xs(e,"String");return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}(e);case"symbol":return Rs(e);case"boolean":return function(e){if("boolean"!=typeof e)throw xs(e,"Boolean");return e?"?1":"?0"}(e);case"object":if(e instanceof Date)return function(e){return`@${As(e.getTime()/1e3)}`}(e);if(e instanceof Uint8Array)return Cs(e);if(e instanceof ks)return Rs(e);default:throw xs(e,Ss)}}function Ns(e){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(e))throw xs(e,"Key");return e}function Ms(e){return null==e?"":Object.entries(e).map((([e,t])=>!0===t?`;${Ns(e)}`:`;${Ns(e)}=${Is(t)}`)).join("")}function Ps(e){return e instanceof Es?`${Is(e.value)}${Ms(e.params)}`:Is(e)}function Os(e,t={whitespace:!0}){if("object"!=typeof e||null==e)throw xs(e,"Dict");const n=e instanceof Map?e.entries():Object.entries(e),i=(null==t?void 0:t.whitespace)?" ":"";return Array.from(n).map((([e,t])=>{t instanceof Es==!1&&(t=new Es(t));let n=Ns(e);var i;return!0===t.value?n+=Ms(t.params):(n+="=",Array.isArray(t.value)?n+=`(${(i=t).value.map(Ps).join(" ")})${Ms(i.params)}`:n+=Ps(t)),n})).join(`,${i}`)}function Fs(e,t){return Os(e,t)}const Bs="CMCD-Object",Zs="CMCD-Request",js="CMCD-Session",Us="CMCD-Status",Ks={br:Bs,ab:Bs,d:Bs,ot:Bs,tb:Bs,tpb:Bs,lb:Bs,tab:Bs,lab:Bs,url:Bs,pb:Zs,bl:Zs,tbl:Zs,dl:Zs,ltc:Zs,mtp:Zs,nor:Zs,nrr:Zs,rc:Zs,sn:Zs,sta:Zs,su:Zs,ttfb:Zs,ttfbb:Zs,ttlb:Zs,cmsdd:Zs,cmsds:Zs,smrt:Zs,df:Zs,cs:Zs,ts:Zs,cid:js,pr:js,sf:js,sid:js,st:js,v:js,msd:js,bs:Us,bsd:Us,cdn:Us,rtp:Us,bg:Us,pt:Us,ec:Us,e:Us},zs=Zs;function Gs(e,t){const n={};if(!e)return n;const i=Object.keys(e),r=t?(s=t,Object.keys(s).reduce(((e,t)=>{var n;return null===(n=s[t])||void 0===n||n.forEach((n=>e[n]=t)),e}),{})):{};var s;return i.reduce(((t,n)=>{var i;const s=Ks[n]||r[n]||zs;return(null!==(i=t[s])&&void 0!==i?i:t[s]={})[n]=e[n],t}),n)}const Hs="event";const Vs=e=>Math.round(e),Ws=(e,t)=>Array.isArray(e)?e.map((e=>Ws(e,t))):e instanceof Es&&"string"==typeof e.value?new Es(Ws(e.value,t),e.params):(t.baseUrl&&(e=function(e,t){const n=new URL(e),i=new URL(t);if(n.origin!==i.origin)return e;const r=n.pathname.split("/").slice(1),s=i.pathname.split("/").slice(1,-1);for(;r[0]===s[0];)r.shift(),s.shift();for(;s.length;)s.shift(),r.unshift("..");return r.join("/")+n.search+n.hash}(e,t.baseUrl)),1===t.version?encodeURIComponent(e):e),Ys=e=>100*Vs(e/100),qs={br:Vs,d:Vs,bl:Ys,dl:Ys,mtp:Ys,nor:(e,t)=>{let n=e;return t.version>=2&&(e instanceof Es&&"string"==typeof e.value?n=new Es([e]):"string"==typeof e&&(n=[e])),Ws(n,t)},rtp:Ys,tb:Vs},Xs="request",Qs="response",Js=["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"],$s=["e"],ea=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function ta(e){return ea.test(e)}const na=["d","dl","nor","ot","rtp","su"];const ia=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];const ra=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function sa(e){return ra.includes(e)||ta(e)}const aa={[Qs]:function(e){return Js.includes(e)||na.includes(e)||ia.includes(e)||ta(e)},[Hs]:function(e){return Js.includes(e)||$s.includes(e)||ta(e)},[Xs]:function(e){return Js.includes(e)||na.includes(e)||ta(e)}};function oa(e,t={}){const n={};if(null==e||"object"!=typeof e)return n;const r=t.version||e.v||1,s=t.reportingMode||Xs,a=1===r?sa:aa[s];let o=Object.keys(e).filter(a);const l=t.filter;"function"==typeof l&&(o=o.filter(l));const u=s===Qs||s===Hs;u&&!o.includes("ts")&&o.push("ts"),r>1&&!o.includes("v")&&o.push("v");const c=_({},qs,t.formatters),d={version:r,reportingMode:s,baseUrl:t.baseUrl};return o.sort().forEach((t=>{let s=e[t];const a=c[t];if("function"==typeof a&&(s=a(s,d)),"v"===t){if(1===r)return;s=r}"pr"==t&&1===s||(u&&"ts"===t&&!i(s)&&(s=Date.now()),function(e){return"number"==typeof e?i(e):null!=e&&""!==e&&!1!==e}(s)&&(function(e){return["ot","sf","st","e","sta"].includes(e)}(t)&&"string"==typeof s&&(s=new ks(s)),n[t]=s))})),n}function la(e,t,n){return _(e,function(e,t={}){const n={};if(!e)return n;const i=Gs(oa(e,t),null==t?void 0:t.customHeaderMap);return Object.entries(i).reduce(((e,[t,n])=>{const i=Fs(n,{whitespace:!1});return i&&(e[t]=i),e}),n)}(t,n))}function ua(e,t={}){if(!e)return"";const n=function(e,t={}){return e?Fs(oa(e,t),{whitespace:!1}):""}(e,t);return encodeURIComponent(n)}const ca=/CMCD=[^&#]+/;function da(e,t,n){const i=function(e,t={}){return e?`CMCD=${ua(e,t)}`:""}(t,n);if(!i)return e;if(ca.test(e))return e.replace(ca,i);const r=e.includes("?")?"&":"?";return`${e}${r}${i}`}function ha(e,t,n,i){e&&Object.keys(t).forEach((r=>{const s=e.filter((e=>e.groupId===r)).map((e=>{const s=_({},e);return s.details=void 0,s.attrs=new cn(s.attrs),s.url=s.attrs.URI=fa(e.url,e.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),s.groupId=s.attrs["GROUP-ID"]=t[r],s.attrs["PATHWAY-ID"]=i,s}));e.push(...s)}))}function fa(e,t,n,i){const{HOST:r,PARAMS:s,[n]:a}=i;let o;t&&(o=null==a?void 0:a[t],o&&(e=o));const l=new self.URL(e);return r&&!o&&(l.host=r),s&&Object.keys(s).sort().forEach((e=>{e&&l.searchParams.set(e,s[e])})),l.href}class pa extends w{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=pa.CDMCleanupPromise?[pa.CDMCleanupPromise]:[],this.bannedKeyIds={},this.onMediaEncrypted=e=>{const{initDataType:t,initData:n}=e,i=`"${e.type}" event: init data type: "${t}"`;if(this.debug(i),null!==n){if(!this.keyFormatPromise){let e=Object.keys(this.keySystemAccessPromises);e.length||(e=Ln(this.config));const t=e.map(Dn).filter((e=>!!e));this.keyFormatPromise=this.getKeyFormatPromise(t)}this.keyFormatPromise.then((r=>{const s=Tn(r);if("sinf"!==t||s!==xn.FAIRPLAY)return void this.log(`Ignoring "${e.type}" event with init data type: "${t}" for selected key-system ${s}`);let a;try{const e=te(new Uint8Array(n)),t=pe(yn(JSON.parse(e).sinf));if(!t)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");a=new Uint8Array(t.subarray(8,24))}catch(e){return void this.warn(`${i} Failed to parse sinf: ${e}`)}const o=I(a),{keyIdToKeySessionPromise:l,mediaKeySessions:u}=this;let c=l[o];for(let e=0;e<u.length;e++){const i=u[e],r=i.decryptdata;if(!r.keyId)continue;const s=I(r.keyId);if(pn(a,r.keyId)||-1!==r.uri.replace(/-/g,"").indexOf(o)){if(c=l[s],!c)continue;if(r.pssh)break;delete l[s],r.pssh=new Uint8Array(n),r.keyId=a,c=l[o]=c.then((()=>this.generateRequestWithPreferredKeySession(i,t,n,"encrypted-event-key-match"))),c.catch((e=>this.handleError(e)));break}}c||this.handleError(new Error(`Key ID ${o} not encountered in playlist. Key-system sessions ${u.length}.`))})).catch((e=>this.handleError(e)))}},this.onWaitingForKey=e=>{this.log(`"${e.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(l.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(l.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(l.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(l.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(l.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(l.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(l.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,i=null==t?void 0:t[e];return i?i.licenseUrl:e===xn.WIDEVINE&&n?n:void 0}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(void 0===t)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,n=null==t?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=(e,t,n)=>!!e&&n.indexOf(e)===t,i=t.map((e=>e.audioCodec)).filter(n),r=t.map((e=>e.videoCodec)).filter(n);return i.length+r.length===0&&r.push("avc1.42e01e"),new Promise(((t,n)=>{const s=e=>{const l=e.shift();this.getMediaKeysPromise(l,i,r).then((e=>t({keySystem:l,mediaKeys:e}))).catch((t=>{e.length?s(e):n(t instanceof va?t:new va({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_NO_ACCESS,error:t,fatal:!0},t.message))}))};s(e)}))}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if("function"!=typeof n){let e=`Configured requestMediaKeySystemAccess is not a function ${n}`;return null===Rn&&"http:"===self.location.protocol&&(e=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(e))}return n(e,t)}getMediaKeysPromise(e,t,n){var i;const r=function(e,t,n,i){let r;switch(e){case xn.FAIRPLAY:r=["cenc","sinf"];break;case xn.WIDEVINE:case xn.PLAYREADY:r=["cenc"];break;case xn.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return function(e,t,n,i){return[{initDataTypes:e,persistentState:i.persistentState||"optional",distinctiveIdentifier:i.distinctiveIdentifier||"optional",sessionTypes:i.sessionTypes||[i.sessionType||"temporary"],audioCapabilities:t.map((e=>({contentType:`audio/mp4; codecs=${e}`,robustness:i.audioRobustness||"",encryptionScheme:i.audioEncryptionScheme||null}))),videoCapabilities:n.map((e=>({contentType:`video/mp4; codecs=${e}`,robustness:i.videoRobustness||"",encryptionScheme:i.videoEncryptionScheme||null})))}]}(r,t,n,i)}(e,t,n,this.config.drmSystemOptions||{});let s=this.keySystemAccessPromises[e],a=null==(i=s)?void 0:i.keySystemAccess;if(!a){this.log(`Requesting encrypted media "${e}" key-system access with config: ${nt(r)}`),a=this.requestMediaKeySystemAccess(e,r);const t=s=this.keySystemAccessPromises[e]={keySystemAccess:a};return a.catch((t=>{this.log(`Failed to obtain access to key-system "${e}": ${t}`)})),a.then((n=>{this.log(`Access for key-system "${n.keySystem}" obtained`);const i=this.fetchServerCertificate(e);this.log(`Create media-keys for "${e}"`);const r=t.mediaKeys=n.createMediaKeys().then((n=>(this.log(`Media-keys created for "${e}"`),t.hasMediaKeys=!0,i.then((t=>t?this.setMediaKeysServerCertificate(n,e,t):n)))));return r.catch((t=>{this.error(`Failed to create media-keys for "${e}"}: ${t}`)})),r}))}return a.then((()=>s.mediaKeys))}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${I(e.keyId||[])} keyUri: ${e.uri}`);const i=n.createSession(),r={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(r),r}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),i=ga(t),r="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(n,r,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 ${I(e.decryptdata.keyId||[])}\n } (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})=>Dn(e))).filter((e=>!!e))}getKeySystemAccess(e){return this.getKeySystemSelectionPromise(e).then((({keySystem:e,mediaKeys:t})=>this.attemptSetMediaKeys(e,t)))}selectKeySystem(e){return new Promise(((t,n)=>{this.getKeySystemSelectionPromise(e).then((({keySystem:e})=>{const i=Dn(e);i?t(i):n(new Error(`Unable to find format for key-system "${e}"`))})).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=Ln(this.config),n=e.map(Tn).filter((e=>!!e&&-1!==t.indexOf(e)));return this.selectKeySystem(n)}getKeyStatus(e){const{mediaKeySessions:t}=this;for(let n=0;n<t.length;n++){const i=ma(e,t[n]);if(i)return i}}loadKey(e){const t=e.keyInfo.decryptdata,n=ga(t),i=this.bannedKeyIds[n];if(i||"internal-error"===this.getKeyStatus(t)){const n=ya(i||"internal-error",t);return this.handleError(n,e.frag),Promise.reject(n)}const r=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${r}`);const s=this.keyIdToKeySessionPromise[n];if(!s){const i=this.getKeySystemForKeyPromise(t).then((({keySystem:n,mediaKeys:i})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${r}`),this.attemptSetMediaKeys(n,i).then((()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:n,mediaKeys:i,decryptdata:t}))))))).then((e=>{const n=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(e,"cenc",n,"playlist-key")}));return i.catch((t=>this.handleError(t,e.frag))),this.keyIdToKeySessionPromise[n]=i,i}return s.catch((n=>{if(n instanceof va){const i=E({},n.data);"internal-error"===this.getKeyStatus(t)&&(i.decryptdata=t);const r=new va(i,n.message);this.handleError(r,e.frag)}})),s}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e,t){if(this.hls)if(e instanceof va){t&&(e.data.frag=t);const n=e.data.decryptdata;this.error(`${e.message}${n?` (${I(n.keyId||[])})`:""}`),this.hls.trigger(l.ERROR,e.data)}else this.error(e.message),this.hls.trigger(l.ERROR,{type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0})}getKeySystemForKeyPromise(e){const t=ga(e),n=this.keyIdToKeySessionPromise[t];if(!n){const t=Tn(e.keyFormat),n=t?[t]:Ln(this.config);return this.attemptKeySystemAccess(n)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=Ln(this.config)),0===e.length)throw new va({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${nt({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 i=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(i),i.then((()=>{this.log(`Media-keys set for "${e}"`),n.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter((e=>-1===n.indexOf(e)))}))}generateRequestWithPreferredKeySession(e,t,n,i){var r;const s=null==(r=this.config.drmSystems)||null==(r=r[e.keySystem])?void 0:r.generateRequest;if(s)try{const i=s.call(this.hls,t,n,e);if(!i)throw new Error("Invalid response from configured generateRequest filter");t=i.initDataType,n=i.initData?i.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(e){if(this.warn(e.message),this.hls&&this.hls.config.debug)throw e}if(null===n)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(e);const l=ga(e.decryptdata),u=e.decryptdata.uri;this.log(`Generating key-session request for "${i}" keyId: ${l} URI: ${u} (init data type: ${t} length: ${n.byteLength})`);const c=new Fi,d=e._onmessage=t=>{const n=e.mediaKeysSession;if(!n)return void c.emit("error",new Error("invalid state"));const{messageType:i,message:r}=t;this.log(`"${i}" message event for session "${n.sessionId}" message size: ${r.byteLength}`),"license-request"===i||"license-renewal"===i?this.renewLicense(e,r).catch((e=>{c.eventNames().length?c.emit("error",e):this.handleError(e)})):"license-release"===i?e.keySystem===xn.FAIRPLAY&&this.updateKeySession(e,_n("acknowledged")).then((()=>this.removeSession(e))).catch((e=>this.handleError(e))):this.warn(`unhandled media key message type "${i}"`)},h=(e,t)=>{let n;t.keyStatus=e,e.startsWith("usable")?c.emit("resolved"):"internal-error"===e||"output-restricted"===e||"output-downscaled"===e?n=ya(e,t.decryptdata):"expired"===e?n=new Error(`key expired (keyId: ${l})`):"released"===e?n=new Error("key released"):"status-pending"===e||this.warn(`unhandled key status change "${e}" (keyId: ${l})`),n&&(c.eventNames().length?c.emit("error",n):this.handleError(n))},f=e._onkeystatuseschange=t=>{if(!e.mediaKeysSession)return void c.emit("error",new Error("invalid state"));const n=this.getKeyStatuses(e);if(!Object.keys(n).some((e=>"status-pending"!==n[e])))return;if("expired"===n[l])return this.log(`Expired key ${nt(n)} in key-session "${e.mediaKeysSession.sessionId}"`),void this.renewKeySession(e);let i=n[l];if(i)h(i,e);else{var r;const t=0;e.keyStatusTimeouts||(e.keyStatusTimeouts={}),(r=e.keyStatusTimeouts)[l]||(r[l]=self.setTimeout((()=>{if(!e.mediaKeysSession||!this.mediaKeys)return;const n=this.getKeyStatus(e.decryptdata);if(n&&"status-pending"!==n)return this.log(`No status for keyId ${l} in key-session "${e.mediaKeysSession.sessionId}". Using session key-status ${n} from other session.`),h(n,e);this.log(`key status for ${l} in key-session "${e.mediaKeysSession.sessionId}" timed out after ${t}ms`),i="internal-error",h(i,e)}),t)),this.log(`No status for keyId ${l} (${nt(n)}).`)}};mi(e.mediaKeysSession,"message",d),mi(e.mediaKeysSession,"keystatuseschange",f);const p=new Promise(((e,t)=>{c.on("error",t),c.on("resolved",e)}));return e.mediaKeysSession.generateRequest(t,n).then((()=>{this.log(`Request generated for key-session "${e.mediaKeysSession.sessionId}" keyId: ${l} URI: ${u}`)})).catch((t=>{throw new va({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_NO_SESSION,error:t,decryptdata:e.decryptdata,fatal:!1},`Error generating key-session request: ${t}`)})).then((()=>p)).catch((t=>(c.removeAllListeners(),this.removeSession(e).then((()=>{throw t}))))).then((()=>(c.removeAllListeners(),e)))}getKeyStatuses(e){const t={};return e.mediaKeysSession.keyStatuses.forEach(((n,i)=>{if("string"==typeof i&&"object"==typeof n){const e=i;i=n,n=e}const r="buffer"in i?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i);e.keySystem===xn.PLAYREADY&&16===r.length&&bn(r);const s=I(r);"internal-error"===n&&(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=new(0,t.loader)(t),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise(((r,s)=>{const l={responseType:"arraybuffer",url:i},u=t.certLoadPolicy.default,c={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},d={onSuccess:(e,t,n,i)=>{r(e.data)},onError:(t,n,r,u)=>{s(new va({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:E({url:l.url,data:void 0},t)},`"${e}" certificate request failed (${i}). Status: ${t.code} (${t.text})`))},onTimeout:(t,n,r)=>{s(new va({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:{url:l.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(e,t,n)=>{s(new Error("aborted"))}};n.load(l,c,d)}))):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise(((i,r)=>{e.setServerCertificate(n).then((r=>{this.log(`setServerCertificate ${r?"success":"not supported by CDM"} (${n.byteLength}) on "${t}"`),i(e)})).catch((e=>{r(new va({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:e,fatal:!0},e.message))}))}))}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then((t=>this.updateKeySession(e,new Uint8Array(t)).catch((t=>{throw new va({type:a.KEY_SYSTEM_ERROR,details:o.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:e.decryptdata,error:t,fatal:!1},t.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 i=(new DOMParser).parseFromString(n,"application/xml"),r=i.querySelectorAll("HttpHeader");if(r.length>0){let t;for(let n=0,i=r.length;n<i;n++){var s,a;t=r[n];const i=null==(s=t.querySelector("name"))?void 0:s.textContent,o=null==(a=t.querySelector("value"))?void 0:a.textContent;i&&o&&e.setRequestHeader(i,o)}}const o=i.querySelector("Challenge"),l=null==o?void 0:o.textContent;if(!l)throw new Error("Cannot find <Challenge> in key message");return _n(atob(l))}setupLicenseXHR(e,t,n,i){const r=this.config.licenseXhrSetup;return r?Promise.resolve().then((()=>{if(!n.decryptdata)throw new Error("Key removed");return r.call(this.hls,e,t,n,i)})).catch((s=>{if(!n.decryptdata)throw s;return e.open("POST",t,!0),r.call(this.hls,e,t,n,i)})).then((n=>{e.readyState||e.open("POST",t,!0);return{xhr:e,licenseChallenge:n||i}})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:i}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise(((i,r)=>{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 r(new Error("invalid state"));if(4===l.readyState)if(200===l.status){this._requestLicenseFailureCount=0;let t=l.response;this.log(`License received ${t instanceof ArrayBuffer?t.byteLength:t}`);const n=this.config.licenseResponseCallback;if(n)try{t=n.call(this.hls,l,s,e)}catch(e){this.error(e)}i(t)}else{const u=n.errorRetry,c=u?u.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>c||l.status>=400&&l.status<500)r(new va({type:a.KEY_SYSTEM_ERROR,details:o.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 n=c-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${n} attempts left`),this.requestLicense(e,t).then(i,r)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=l,this.setupLicenseXHR(l,s,e,t).then((({xhr:t,licenseChallenge:n})=>{e.keySystem==xn.PLAYREADY&&(n=this.unpackPlayReadyKeyMessage(t,n)),t.send(n)})).catch(r)}))}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&&(vi(e,"encrypted",this.onMediaEncrypted),vi(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,Mn.clearKeyUriToKeyIdMap();const i=n.length;pa.CDMCleanupPromise=Promise.all(n.map((e=>this.removeSession(e))).concat((null==t||null==(e=t.setMediaKeys(null))?void 0:e.catch((e=>{this.log(`Could not clear media keys: ${e}`),this.hls&&this.hls.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${e}`)})})))||Promise.resolve())).catch((e=>{this.log(`Could not close sessions and clear media keys: ${e}`),this.hls&&this.hls.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${e}`)})})).then((()=>{i&&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 e=t.reduce(((e,t)=>(-1===e.indexOf(t.keyFormat)&&e.push(t.keyFormat),e)),[]);this.log(`Selecting key-system from session-keys ${e.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(e)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n,decryptdata:i}=e;if(t){this.log(`Remove licenses and keys and close session "${t.sessionId}" keyId: ${I((null==i?void 0:i.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 r=this.mediaKeySessions.indexOf(e);r>-1&&this.mediaKeySessions.splice(r,1);const{keyStatusTimeouts:s}=e;s&&Object.keys(s).forEach((e=>self.clearTimeout(s[e])));const{drmSystemOptions:u}=this.config,c=function(e){var t;return!(!e||"persistent-license"!==e.sessionType&&(null==(t=e.sessionTypes)||!t.some((e=>"persistent-license"===e))))}(u)?new Promise(((e,n)=>{self.setTimeout((()=>n(new Error("MediaKeySession.remove() timeout"))),8e3),t.remove().then(e).catch(n)})):Promise.resolve();return c.catch((e=>{this.log(`Could not remove session: ${e}`),this.hls&&this.hls.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${e}`)})})).then((()=>t.close())).catch((e=>{this.log(`Could not close session: ${e}`),this.hls&&this.hls.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${e}`)})}))}return Promise.resolve()}}function ga(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(null===e.keyId)throw new Error("keyId is null");return I(e.keyId)}function ma(e,t){return e.keyId&&t.mediaKeysSession.keyStatuses.has(e.keyId)?t.mediaKeysSession.keyStatuses.get(e.keyId):e.matches(t.decryptdata)?t.keyStatus:void 0}pa.CDMCleanupPromise=void 0;class va 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 ya(e,t){const n="output-restricted"===e,i=n?o.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:o.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new va({type:a.KEY_SYSTEM_ERROR,details:i,fatal:!1,decryptdata:t},n?"HDCP level output restricted":`key status changed to "${e}"`)}function _a(e,t){let n;try{n=new Event("addtrack")}catch(e){n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function ba(e,t){const n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error(`addCue is failed for: ${t}`)}catch(n){T.debug(`[texttrack-utils]: ${n}`);try{const n=new self.TextTrackCue(t.startTime,t.endTime,t.text);n.id=t.id,e.addCue(n)}catch(e){T.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${e}`)}}"disabled"===n&&(e.mode=n)}function Ea(e,t){const n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues)for(let n=e.cues.length;n--;)t&&e.cues[n].removeEventListener("enter",t),e.removeCue(e.cues[n]);"disabled"===n&&(e.mode=n)}function wa(e,t,n,i){const r=e.mode;if("disabled"===r&&(e.mode="hidden"),e.cues&&e.cues.length>0){const r=function(e,t,n){const i=[],r=function(e,t){if(t<=e[0].startTime)return 0;const n=e.length-1;if(t>e[n].endTime)return-1;let i,r=0,s=n;for(;r<=s;)if(i=Math.floor((s+r)/2),t<e[i].startTime)s=i-1;else{if(!(t>e[i].startTime&&r<n))return i;r=i+1}return e[r].startTime-t<t-e[s].startTime?r:s}(e,t);if(r>-1)for(let s=r,a=e.length;s<a;s++){const r=e[s];if(r.startTime>=t&&r.endTime<=n)i.push(r);else if(r.startTime>n)return i}return i}(e.cues,t,n);for(let t=0;t<r.length;t++)i&&!i(r[t])||e.removeCue(r[t])}"disabled"===r&&(e.mode=r)}function xa(e){const t=[];for(let n=0;n<e.length;n++){const i=e[n];"subtitles"!==i.kind&&"captions"!==i.kind||!i.label||t.push(e[n])}return t}function ka(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0).toString()}const Sa=.025;let Ca=function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e}({});function Aa(e,t,n){return`${e.identifier}-${n+1}-${ka(t)}`}class Ta{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,null==(e=this.assetListLoader)||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;if(e<=0||isNaN(n))return!1;if(0===n)return!0;return((null==(t=this.assetList[e])?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 Da(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(0===this.startTime||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime;return t-Da(t,e)<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=i(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 Da(e,t)}return e}get appendInPlace(){return!!this.appendInPlaceStarted||!this.appendInPlaceDisabled&&!(this.cue.once||this.cue.pre||!this.startIsAligned||!(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<Sa))}set appendInPlace(e){this.appendInPlaceStarted?this.resetOnResume=!e:this.appendInPlaceDisabled=!e}get timelineStart(){return null!==this._timelineStart?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return t=null!==this._duration?this._duration:this.dateRange.duration?this.dateRange.duration: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"RANGE"===this.dateRange.attr["X-TIMELINE-OCCUPIES"]?Ca.Range:Ca.Point}get supplementsPrimary(){return"PRIMARY"===this.dateRange.attr["X-TIMELINE-STYLE"]}get contentMayVary(){return"NO"!==this.dateRange.attr["X-CONTENT-MAY-VARY"]}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||null!==this.assetListResponse}toString(){return`["${(e=this).identifier}" ${e.cue.pre?"<pre>":e.cue.post?"<post>":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`;var e}}function Da(e,t){return e-t.start<t.duration/2&&!(Math.abs(e-(t.start+t.duration))<Sa)?t.start:t.start+t.duration}function La(e,t,n){const i=new self.URL(e,n);return"data:"!==i.protocol&&i.searchParams.set("_HLS_primary_id",t),i}function Ra(e,t){for(;null!=(n=e.assetList[++t])&&n.error;)var n;return t}function Ia(e){const t=e.timelineStart,n=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+n).toFixed(2)}]`}class Na{constructor(e,t,n,i){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(l.PLAYOUT_LIMIT_REACHED,{})};const r=this.hls=new e(t);this.interstitial=n,this.assetItem=i;const s=()=>{this.hasDetails=!0};r.once(l.LEVEL_LOADED,s),r.once(l.AUDIO_TRACK_LOADED,s),r.once(l.SUBTITLE_TRACK_LOADED,s),r.on(l.MEDIA_ATTACHING,((e,{media:t})=>{this.removeMediaListeners(),this.mediaAttached=t;this.interstitial.playoutLimit&&(t.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&r.on(l.BUFFER_APPENDED,(()=>{const e=this.bufferedEnd;this.reachedPlayout(e)&&(this._bufferedEosTime=e,r.trigger(l.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=La(t,e.config.primarySessionId||"").href}catch(e){}e.loadSource(t)}}bufferedInPlaceToEnd(e){var t;if(!this.appendInPlace)return!1;if(null!=(t=this.hls)&&t.bufferedToEnd)return!0;if(!e)return!1;const n=Math.min(this._bufferedEosTime||1/0,this.duration),i=this.timelineOffset,r=tn.bufferInfo(e,i,0);return this.getAssetTime(r.end)>=n-.02}reachedPlayout(e){const t=this.interstitial.playoutLimit;return this.startOffset+e>=t}get destroyed(){var e;return!(null!=(e=this.hls)&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return(null==(e=this.hls)?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=tn.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;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(null==(e=this.hls)?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(){var e;this.mediaAttached&&(null!=(e=this.hls)&&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(),null==(t=this.hls)||t.attachMedia(e)}detachMedia(){var e;this.removeMediaListeners(),this.mediaAttached=null,null==(e=this.hls)||e.detachMedia()}resumeBuffering(){var e;null==(e=this.hls)||e.resumeBuffering()}pauseBuffering(){var e;null==(e=this.hls)||e.pauseBuffering()}transferMedia(){var e;return this.bufferSnapShot(),(null==(e=this.hls)?void 0:e.transferMedia())||null}resetDetails(){const e=this.hls;if(e&&this.hasDetails){e.stopLoad();const t=e=>delete e.details;e.levels.forEach(t),e.allAudioTracks.forEach(t),e.allSubtitleTracks.forEach(t),this.hasDetails=!1}}on(e,t,n){var i;null==(i=this.hls)||i.on(e,t)}once(e,t,n){var i;null==(i=this.hls)||i.once(e,t)}off(e,t,n){var i;null==(i=this.hls)||i.off(e,t)}toString(){var e;return`HlsAssetPlayer: ${Ia(this.assetItem)} ${null==(e=this.hls)?void 0:e.sessionId} ${this.appendInPlace?"append-in-place":""}`}}class Ma extends w{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,i)=>e<=i.startOffset&&t>i.startOffset?(delete i.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 i=this.items;if(i)for(i[n]||(void 0===t&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&null!=(r=i[n])&&r.event;){var r;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let i=0;i<n.length;i++){let r=n[i];if(t&&"primary"!==t&&(r=r[t]),e===r.start||e>r.start&&e<r.end)return i}return-1}findJumpRestrictedIndex(e,t){const n=this.items;if(n)for(let i=e;i<=t&&n[i];i++){const e=n[i].event;if(null!=e&&e.restrictions.jump&&!e.appendInPlace)return i}return-1}findEventIndex(e){const t=this.items;if(t)for(let i=t.length;i--;){var n;if((null==(n=t[i].event)?void 0:n.identifier)===e)return i}return-1}findAssetIndex(e,t){const n=e.assetList,i=n.length;if(i>1)for(let e=0;e<i;e++){const r=n[e];if(!r.error){const n=r.timelineStart;if(t===n||t>n&&(t<n+(r.duration||0)||e===i-1))return e}}return 0}get assetIdAtEnd(){var e;const t=null==(e=this.items)||null==(e=e[this.length-1])?void 0:e.event;if(t){const e=t.assetList,n=e[e.length-1];if(n)return n.identifier}return null}parseInterstitialDateRanges(e,t){const n=e.main.details,{dateRanges:i}=n,r=this.events,s=this.parseDateRanges(i,{url:n.url},t),a=Object.keys(i),o=r?r.filter((e=>!a.includes(e.identifier))):[];s.length&&s.sort(((e,t)=>{const n=e.cue.pre,i=e.cue.post,r=t.cue.pre,s=t.cue.post;if(n&&!r)return-1;if(r&&!n)return 1;if(i&&!s)return 1;if(s&&!i)return-1;if(!(n||r||i||s)){const n=e.startTime,i=t.startTime;if(n!==i)return n-i}return e.dateRange.tagOrder-t.dateRange.tagOrder})),this.events=s,o.forEach((e=>{this.removeEvent(e)})),this.updateSchedule(e,o)}updateSchedule(e,t=[],n=!1){const i=this.events||[];if(i.length||t.length||this.length<2){const r=this.items,s=this.parseSchedule(i,e);(n||t.length||(null==r?void 0:r.length)!==s.length||s.some(((e,t)=>Math.abs(e.playout.start-r[t].playout.start)>.005||Math.abs(e.playout.end-r[t].playout.end)>.005)))&&(this.items=s,this.onScheduleUpdate(t,r))}}parseDateRanges(e,t,n){const i=[],r=Object.keys(e);for(let s=0;s<r.length;s++){const a=r[s],o=e[a];if(o.isInterstitial){let e=this.eventMap[a];e?e.setDateRange(o):(e=new Ta(o,t),this.eventMap[a]=e,!1===n&&(e.appendInPlace=n)),i.push(e)}}return i}parseSchedule(e,t){const n=[],i=t.main.details,r=i.live?1/0:i.edge;let s=0;if((e=e.filter((e=>!(e.error||e.cue.once&&e.hasPlayed)))).length){this.resolveOffsets(e,t);let i=0,o=0;if(e.forEach(((t,a)=>{const l=t.cue.pre,u=t.cue.post,c=e[a-1]||null,d=t.appendInPlace,h=u?r:t.startOffset,f=t.duration,p=t.timelineOccupancy===Ca.Range?f:0,g=t.resumptionOffset,m=(null==c?void 0:c.startTime)===h,v=h+t.cumulativeDuration;let y=d?v+f:h+g;if(l||!u&&h<=0){const e=o;o+=p,t.timelineStart=v;const i=s;s+=f,n.push({event:t,start:v,end:y,playout:{start:i,end:s},integrated:{start:e,end:o}})}else{if(!(h<=r))return;{if(!m){const r=h-i;if(r>.033){const l=i,u=o;o+=r;const c=s;s+=r;const d={previousEvent:e[a-1]||null,nextEvent:t,start:l,end:l+r,playout:{start:c,end:s},integrated:{start:u,end:o}};n.push(d)}else r>0&&c&&(c.cumulativeDuration+=r,n[n.length-1].end=h)}u&&(y=v),t.timelineStart=v;const r=o;o+=p;const l=s;s+=f,n.push({event:t,start:v,end:y,playout:{start:l,end:s},integrated:{start:r,end:o}})}}const _=t.resumeTime;i=u||_>r?r:_})),i<r){var a;const e=i,t=o,l=r-i;o+=l;const u=s;s+=l,n.push({previousEvent:(null==(a=n[n.length-1])?void 0:a.event)||null,nextEvent:null,start:i,end:e+l,playout:{start:u,end:s},integrated:{start:t,end:o}})}this.setDurations(r,s,o)}else{const e=0;n.push({previousEvent:null,nextEvent:null,start:e,end:r,playout:{start:e,end:r},integrated:{start:e,end:r}}),this.setDurations(r,r,r)}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 s=0,a=-1;e.forEach(((o,l)=>{const u=o.cue.pre,c=o.cue.post,d=u?0:c?r:o.startTime;this.updateAssetDurations(o);if(a===d?o.cumulativeDuration=s:(s=0,a=d),!c&&o.snapOptions.in&&(o.resumeAnchor=ht(null,n.fragments,o.startOffset+o.resumptionOffset,0,0)||void 0),o.appendInPlace&&!o.appendInPlaceStarted){this.primaryCanResumeInPlaceAt(o,t)||(o.appendInPlace=!1)}if(!o.appendInPlace&&l+1<e.length){e[l+1].startTime-e[l].resumeTime<.033&&(e[l+1].appendInPlace=!1,e[l+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${o}`))}const h=i(o.resumeOffset)?o.resumeOffset:o.duration;s+=h}))}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,i=e.startTime+e.resumptionOffset;if(Math.abs(n-i)>Sa)return this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${i}`),!1;return!Object.keys(t).some((i=>{const r=t[i].details,s=r.edge;if(n>=s)return this.log(`"${e.identifier}" resumption ${n} past ${i} playlist end ${s}`),!1;const a=ht(null,r.fragments,n);if(!a)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${i} playlist (${r.fragStart}-${r.fragmentEnd})`),!0;const o="audio"===i?.175:0;return!(Math.abs(a.start-n)<Sa+o||Math.abs(a.end-n)<Sa+o)&&(this.log(`"${e.identifier}" resumption ${n} not aligned with ${i} fragment bounds (${a.start}-${a.end} sn: ${a.sn} cc: ${a.cc})`),!0)}))}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,i=!1,r=!1;for(let s=0;s<e.assetList.length;s++){const a=e.assetList[s],o=t+n;a.startOffset=n,a.timelineStart=o,i||(i=null===a.duration),r||(r=!!a.error);n+=a.error?0:a.duration||0}e.duration=i&&!r?Math.max(n,e.duration):n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function Pa(e){return`[${e.event?'"'+e.event.identifier+'"':"primary"}: ${e.start.toFixed(2)}-${e.end.toFixed(2)}]`}class Oa{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let i;try{i=La(n,this.hls.sessionId,e.baseUrl)}catch(t){const i=this.assignAssetListError(e,o.ASSET_LIST_LOAD_ERROR,t,n);return void this.hls.trigger(l.ERROR,i)}t&&"data:"!==i.protocol&&i.searchParams.set("_HLS_start_offset",""+t);const r=this.hls.config,s=new(0,r.loader)(r),a={responseType:"json",url:i.href},u=r.interstitialAssetListLoadPolicy.default,c={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},d={onSuccess:(t,n,i,r)=>{const s=t.data,a=null==s?void 0:s.ASSETS;if(Array.isArray(a))e.assetListResponse=s,this.hls.trigger(l.ASSET_LIST_LOADED,{event:e,assetListResponse:s,networkDetails:r});else{const t=this.assignAssetListError(e,o.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),i.url,n,r);this.hls.trigger(l.ERROR,t)}},onError:(t,n,i,r)=>{const s=this.assignAssetListError(e,o.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${t.code} ${t.text} (${n.url})`),n.url,r,i);this.hls.trigger(l.ERROR,s)},onTimeout:(t,n,i)=>{const r=this.assignAssetListError(e,o.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${n.url})`),n.url,t,i);this.hls.trigger(l.ERROR,r)}};return s.load(a,c,d),this.hls.trigger(l.ASSET_LIST_LOADING,{event:e}),s}assignAssetListError(e,t,n,i,r,s){return e.error=n,{type:a.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:i,error:n,networkDetails:s,stats:r}}}function Fa(e){null==e||e.play().catch((()=>{}))}function Ba(e,t){return`[${e}] Advancing timeline position to ${t}`}class Za{constructor(e){this.buffered=void 0;const t=(t,n,i)=>{if((n>>>=0)>i-1)throw new DOMException(`Failed to execute '${t}' on 'TimeRanges': The index provided (${n}) is greater than the maximum bound (${i})`);return e[n][t]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}const ja={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},Ua=e=>String.fromCharCode(ja[e]||e),Ka=15,za=100,Ga={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Ha={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Va={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Wa={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Ya=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class qa{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n="function"==typeof t?t():t;T.log(`${this.time} [${e}] ${n}`)}}}const Xa=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class Qa{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 i=t[n];e.hasOwnProperty(i)&&(this[i]=e[i])}}isDefault(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!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 Ja{constructor(){this.uchar=" ",this.penState=new Qa}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 $a{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Qa,this.cueStartTime=null,this.logger=void 0;for(let e=0;e<za;e++)this.chars.push(new Ja);this.logger=e}equals(e){for(let t=0;t<za;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<za;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<za;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>za&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=za)}moveCursor(e){const t=this.pos+e;if(e>1)for(let e=this.pos+1;e<t+1;e++)this.chars[e].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=Ua(e);this.pos>=za?this.logger.log(0,(()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!")):(this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1))}clearFromPos(e){let t;for(t=e;t<za;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<za;n++){const i=this.chars[n].uchar;" "!==i&&(t=!1),e.push(i)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e);this.chars[this.pos].setPenState(this.currPenState)}}class eo{constructor(e){this.rows=[],this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Ka;t++)this.rows.push(new $a(e));this.logger=e}reset(){for(let e=0;e<Ka;e++)this.rows[e].clear();this.currRow=14}equals(e){let t=!0;for(let n=0;n<Ka;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Ka;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Ka;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 = "+nt(e)));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let e=0;e<Ka;e++)this.rows[e].clear();const e=this.currRow+1-this.nrRollUpRows,n=this.lastOutputScreen;if(n){const i=n.rows[e].cueStartTime,r=this.logger.time;if(null!==i&&null!==r&&i<r)for(let i=0;i<this.nrRollUpRows;i++)this.rows[t-this.nrRollUpRows+i+1].copy(n.rows[e+i])}}this.currRow=t;const n=this.rows[this.currRow];if(null!==e.indent){const t=e.indent,i=Math.max(t-1,0);n.setCursor(e.indent),e.color=n.chars[i].penState.foreground}const i={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(i)}setBkgData(e){this.logger.log(2,(()=>"bkgData = "+nt(e))),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(null===this.nrRollUpRows)return void this.logger.log(3,"roll_up but nrRollUpRows not set yet");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="",i=-1;for(let n=0;n<Ka;n++){const r=this.rows[n].getTextString();r&&(i=n+1,e?t.push("Row "+i+": '"+r+"'"):t.push(r.trim()))}return t.length>0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n}getTextAndFormat(){return this.rows}}class to{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 eo(n),this.nonDisplayedMemory=new eo(n),this.lastOutputScreen=new eo(n),this.currRollUpRow=this.displayedMemory.rows[14],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[14],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)),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let t=0;t<e.length;t++)this.writeScreen.insertChar(e[t]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,(()=>t+": "+this.writeScreen.getDisplayText(!0))),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(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"),"MODE_TEXT"!==this.mode&&(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"),"MODE_POP-ON"===this.mode){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,i=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=i[n]}this.logger.log(2,"MIDROW: "+nt(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?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.cueStartTime=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 no{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;const i=this.logger=new qa;this.channels=[null,new to(e,t,i),new to(e+1,n,i)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let e=0;e<t.length;e+=2){const n=127&t[e],i=127&t[e+1];let r=!1,s=null;if(0===n&&0===i)continue;this.logger.log(3,(()=>"["+Xa([t[e],t[e+1]])+"] -> ("+Xa([n,i])+")"));const a=this.cmdHistory;if(n>=16&&n<=31){if(ro(n,i,a)){io(null,null,a),this.logger.log(3,(()=>"Repeated command ("+Xa([n,i])+") is dropped"));continue}io(n,i,this.cmdHistory),r=this.parseCmd(n,i),r||(r=this.parseMidrow(n,i)),r||(r=this.parsePAC(n,i)),r||(r=this.parseBackgroundAttributes(n,i))}else io(null,null,a);if(!r&&(s=this.parseChars(n,i),s)){const e=this.currentChannel;if(e&&e>0){this.channels[e].insertChars(s)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}r||s||this.logger.log(2,(()=>"Couldn't parse cleaned data "+Xa([n,i])+" orig: "+Xa([t[e],t[e+1]])))}}parseCmd(e,t){if(!((20===e||28===e||21===e||29===e)&&t>=32&&t<=47)&&!((23===e||31===e)&&t>=33&&t<=35))return!1;const n=20===e||21===e||23===e?1:2,i=this.channels[n];return 20===e||21===e||28===e||29===e?32===t?i.ccRCL():33===t?i.ccBS():34===t?i.ccAOF():35===t?i.ccAON():36===t?i.ccDER():37===t?i.ccRU(2):38===t?i.ccRU(3):39===t?i.ccRU(4):40===t?i.ccFON():41===t?i.ccRDC():42===t?i.ccTR():43===t?i.ccRTD():44===t?i.ccEDM():45===t?i.ccCR():46===t?i.ccENM():47===t&&i.ccEOC():i.ccTO(t-32),this.currentChannel=n,!0}parseMidrow(e,t){let n=0;if((17===e||25===e)&&t>=32&&t<=47){if(n=17===e?1:2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const i=this.channels[n];return!!i&&(i.ccMIDROW(t),this.logger.log(3,(()=>"MIDROW ("+Xa([e,t])+")")),!0)}return!1}parsePAC(e,t){let n;if(!((e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127)&&!((16===e||24===e)&&t>=64&&t<=95))return!1;const i=e<=23?1:2;n=t>=64&&t<=95?1===i?Ga[e]:Va[e]:1===i?Ha[e]:Wa[e];const r=this.channels[i];return!!r&&(r.setPAC(this.interpretPAC(n,t)),this.currentChannel=i,!0)}interpretPAC(e,t){let n;const i={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>95?t-96:t-64,i.underline=1==(1&n),n<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(i.italics=!0,i.color="white"):i.indent=4*Math.floor((n-16)/2),i}parseChars(e,t){let n,i=null,r=null;if(e>=25?(n=2,r=e-8):(n=1,r=e),r>=17&&r<=19){let e;e=17===r?t+80:18===r?t+112:t+144,this.logger.log(2,(()=>"Special char '"+Ua(e)+"' in channel "+n)),i=[e]}else e>=32&&e<=127&&(i=0===t?[e]:[e,t]);return i&&this.logger.log(3,(()=>"Char codes = "+Xa(i).join(","))),i}parseBackgroundAttributes(e,t){if(!((16===e||24===e)&&t>=32&&t<=47)&&!((23===e||31===e)&&t>=45&&t<=47))return!1;let n;const i={};16===e||24===e?(n=Math.floor((t-32)/2),i.background=Ya[n],t%2==1&&(i.background=i.background+"_semi")):45===t?i.background="transparent":(i.foreground="black",47===t&&(i.underline=!0));const r=e<=23?1:2;return this.channels[r].setBkgData(i),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}io(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 io(e,t,n){n.a=e,n.b=t}function ro(e,t,n){return n.a===e&&n.b===t}var so=function(){if(null!=wn&&wn.VTTCue)return self.VTTCue;const e=["","lr","rl"],t=["start","middle","end","left","right"];function n(e,t){if("string"!=typeof t)return!1;if(!Array.isArray(e))return!1;const n=t.toLowerCase();return!!~e.indexOf(n)&&n}function i(e){return n(t,e)}function r(e,...t){let n=1;for(;n<arguments.length;n++){const t=arguments[n];for(const n in t)e[n]=t[n]}return e}function s(t,s,a){const o=this,l={enumerable:!0};o.hasBeenReset=!1;let u="",c=!1,d=t,h=s,f=a,p=null,g="",m=!0,v="auto",y="start",_=50,b="middle",E=50,w="middle";Object.defineProperty(o,"id",r({},l,{get:function(){return u},set:function(e){u=""+e}})),Object.defineProperty(o,"pauseOnExit",r({},l,{get:function(){return c},set:function(e){c=!!e}})),Object.defineProperty(o,"startTime",r({},l,{get:function(){return d},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",r({},l,{get:function(){return h},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");h=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"text",r({},l,{get:function(){return f},set:function(e){f=""+e,this.hasBeenReset=!0}})),Object.defineProperty(o,"region",r({},l,{get:function(){return p},set:function(e){p=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",r({},l,{get:function(){return g},set:function(t){const i=function(t){return n(e,t)}(t);if(!1===i)throw new SyntaxError("An invalid or illegal string was specified.");g=i,this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",r({},l,{get:function(){return m},set:function(e){m=!!e,this.hasBeenReset=!0}})),Object.defineProperty(o,"line",r({},l,{get:function(){return v},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",r({},l,{get:function(){return y},set:function(e){const t=i(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"position",r({},l,{get:function(){return _},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",r({},l,{get:function(){return b},set:function(e){const t=i(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",r({},l,{get:function(){return E},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");E=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",r({},l,{get:function(){return w},set:function(e){const t=i(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");w=t,this.hasBeenReset=!0}})),o.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class ao{decode(e,t){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function oo(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+parseFloat(i||0)}const n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}class lo{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 i=0;i<n.length;++i)if(t===n[i]){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 uo(e,t,n,i){const r=i?e.split(i):[e];for(const e in r){if("string"!=typeof r[e])continue;const i=r[e].split(n);if(2!==i.length)continue;t(i[0],i[1])}}const co=new so(0,0,""),ho="middle"===co.align?"middle":"center";function fo(e,t,n){const i=e;function r(){const t=oo(e);if(null===t)throw new Error("Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function s(){e=e.replace(/^\s+/,"")}if(s(),t.startTime=r(),s(),"--\x3e"!==e.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.slice(3),s(),t.endTime=r(),s(),function(e,t){const i=new lo;uo(e,(function(e,t){let r;switch(e){case"region":for(let r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":r=t.split(","),i.integer(e,r[0]),i.percent(e,r[0])&&i.set("snapToLines",!1),i.alt(e,r[0],["auto"]),2===r.length&&i.alt("lineAlign",r[1],["start",ho,"end"]);break;case"position":r=t.split(","),i.percent(e,r[0]),2===r.length&&i.alt("positionAlign",r[1],["start",ho,"end","line-left","line-right","auto"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start",ho,"end","left","right"])}}),/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");let r=i.get("line","auto");"auto"===r&&-1===co.line&&(r=-1),t.line=r,t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100),t.align=i.get("align",ho);let s=i.get("position","auto");"auto"===s&&50===co.position&&(s="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=s}(e,t)}function po(e){return e.replace(/<br(?: \/)?>/gi,"\n")}class go{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new ao,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;function n(){let e=t.buffer,n=0;for(e=po(e);n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;const i=e.slice(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.slice(n),i}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{let e="";if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;e=n();const i=e.match(/^()?WEBVTT([ \t].*)?$/);if(null==i||!i[0])throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let i=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(i?i=!1:e=n(),t.state){case"HEADER":/:/.test(e)?uo(e,(function(e,t){}),/:/):e||(t.state="ID");continue;case"NOTE":e||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(e)){t.state="NOTE";break}if(!e)continue;if(t.cue=new so(0,0,""),t.state="CUE",-1===e.indexOf("--\x3e")){t.cue.id=e;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{fo(e,t.cue,t.regionList)}catch(e){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const n=-1!==e.indexOf("--\x3e");if(!e||n&&(i=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(null===t.cue)continue;t.cue.text&&(t.cue.text+="\n"),t.cue.text+=e}continue;case"BADCUE":e||(t.state="ID")}}}catch(e){"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state||"BADWEBVTT"===e.state)throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}const mo=/\r\n|\n\r|\n|\r/g,vo=function(e,t,n=0){return e.slice(n,n+t.length)===t};function yo(e,t,n){return ka(e.toString())+ka(t.toString())+ka(n)}function _o(e,t,n,r,s,a,o){const l=new go,u=R(new Uint8Array(e)).trim().replace(mo,"\n").split("\n"),c=[],d=t?function(e,t=1){return Kr(e,9e4,1/t)}(t.baseTime,t.timescale):0;let h,f="00:00.000",p=0,g=0,m=!0;l.oncue=function(e){const i=n[r];let a=n.ccOffset;const o=(p-d)/9e4;if(null!=i&&i.new&&(void 0!==g?a=n.ccOffset=i.start:function(e,t,n){let i=e[t],r=e[i.prevCC];if(!r||!r.new&&i.new)return e.ccOffset=e.presentationOffset=i.start,void(i.new=!1);for(;null!=(s=r)&&s.new;){var s;e.ccOffset+=i.start-r.start,i.new=!1,i=r,r=e[i.prevCC]}e.presentationOffset=n}(n,r,o)),o){if(!t)return void(h=new Error("Missing initPTS for VTT MPEGTS"));a=o-n.presentationOffset}const l=e.endTime-e.startTime,u=qr(9e4*(e.startTime+a-g),9e4*s)/9e4;e.startTime=Math.max(u,0),e.endTime=Math.max(u+l,0);const f=e.text.trim();e.text=decodeURIComponent(encodeURIComponent(f)),e.id||(e.id=yo(e.startTime,e.endTime,f)),e.endTime>0&&c.push(e)},l.onparsingerror=function(e){h=e},l.onflush=function(){h?o(h):a(c)},u.forEach((e=>{if(m){if(vo(e,"X-TIMESTAMP-MAP=")){m=!1,e.slice(16).split(",").forEach((e=>{vo(e,"LOCAL:")?f=e.slice(6):vo(e,"MPEGTS:")&&(p=parseInt(e.slice(7)))}));try{g=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),s=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!(i(t)&&i(n)&&i(r)&&i(s)))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=6e4*r,t+=36e5*s,t}(f)/1e3}catch(e){h=e}return}""===e&&(m=!1)}l.parse(e+"\n")})),l.flush()}const bo="stpp.ttml.im1t",Eo=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,wo=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,xo={left:"start",center:"center",right:"end",start:"start",end:"end"};function ko(e,t,n,i){const r=ae(new Uint8Array(e),["mdat"]);if(0===r.length)return void i(new Error("Could not parse IMSC1 mdat"));const s=r.map((e=>R(e))),a=function(e,t,n=1,i=!1){return Kr(e,t,1/n,i)}(t.baseTime,1,t.timescale);try{s.forEach((e=>n(function(e,t){const n=(new DOMParser).parseFromString(e,"text/xml"),i=n.getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const r={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(r).reduce(((e,t)=>(e[t]=i.getAttribute(`ttp:${t}`)||r[t],e)),{}),a="preserve"!==i.getAttribute("xml:space"),o=Co(So(i,"styling","style")),l=Co(So(i,"layout","region")),u=So(i,"body","[begin]");return[].map.call(u,(e=>{const n=Ao(e,a);if(!n||!e.hasAttribute("begin"))return null;const i=Lo(e.getAttribute("begin"),s),r=Lo(e.getAttribute("dur"),s);let u=Lo(e.getAttribute("end"),s);if(null===i)throw Do(e);if(null===u){if(null===r)throw Do(e);u=i+r}const c=new so(i-t,u-t,n);c.id=yo(c.startTime,c.endTime,c.text);const d=function(e,t,n){const i="http://www.w3.org/ns/ttml#styling";let r=null;const s=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],a=null!=e&&e.hasAttribute("style")?e.getAttribute("style"):null;a&&n.hasOwnProperty(a)&&(r=n[a]);return s.reduce(((n,s)=>{const a=To(t,i,s)||To(e,i,s)||To(r,i,s);return a&&(n[s]=a),n}),{})}(l[e.getAttribute("region")],o[e.getAttribute("style")],o),{textAlign:h}=d;if(h){const e=xo[h];e&&(c.lineAlign=e),c.align=h}return _(c,d),c})).filter((e=>null!==e))}(e,a))))}catch(e){i(e)}}function So(e,t,n){const i=e.getElementsByTagName(t)[0];return i?[].slice.call(i.querySelectorAll(n)):[]}function Co(e){return e.reduce(((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e}),{})}function Ao(e,t){return[].slice.call(e.childNodes).reduce(((e,n,i)=>{var r;return"br"===n.nodeName&&i?e+"\n":null!=(r=n.childNodes)&&r.length?Ao(n,t):t?e+n.textContent.trim().replace(/\s+/g," "):e+n.textContent}),"")}function To(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function Do(e){return new Error(`Could not parse ttml timestamp ${e}`)}function Lo(e,t){if(!e)return null;let n=oo(e);return null===n&&(Eo.test(e)?n=function(e,t){const n=Eo.exec(e),i=(0|n[4])+(0|n[5])/t.subFrameRate;return 3600*(0|n[1])+60*(0|n[2])+(0|n[3])+i/t.frameRate}(e,t):wo.test(e)&&(n=function(e,t){const n=wo.exec(e),i=Number(n[1]);switch(n[2]){case"h":return 3600*i;case"m":return 60*i;case"ms":return 1e3*i;case"f":return i/t.frameRate;case"t":return i/t.tickRate}return i}(e,t))),n}class Ro{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(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(null===this.startTime||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}function Io(e){return e.characteristics&&/transcribes-spoken-dialog/gi.test(e.characteristics)&&/describes-music-and-sound/gi.test(e.characteristics)?"captions":"subtitles"}function No(e,t){return!!e&&e.kind===Io(t)&&ds(t,e)}const Mo=/\s/,Po={newCue(e,t,n,i){const r=[];let s,a,o,l,u;const c=self.VTTCue||self.TextTrackCue;for(let h=0;h<i.rows.length;h++)if(s=i.rows[h],o=!0,l=0,u="",!s.isEmpty()){var d;for(let e=0;e<s.chars.length;e++)Mo.test(s.chars[e].uchar)&&o?l++:(u+=s.chars[e].uchar,o=!1);s.cueStartTime=t,t===n&&(n+=1e-4),l>=16?l--:l++;const i=po(u.trim()),f=yo(t,n,i);null!=e&&null!=(d=e.cues)&&d.getCueById(f)||(a=new c(t,n,i),a.id=f,a.line=h+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*l/32)),r.push(a))}return e&&r.length&&(r.sort(((e,t)=>"auto"===e.line||"auto"===t.line?0:e.line>8&&t.line>8?t.line-e.line:e.line-t.line)),r.forEach((t=>ba(e,t)))),r}};const Oo=/(\d+)-(\d+)\/(\d+)/;class Fo{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||Bo,this.controller=new self.AbortController,this.stats=new z}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(),null!=(e=this.callbacks)&&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 s=function(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(_({},e.headers))};e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1));return n}(e,this.controller.signal),a="arraybuffer"===e.responseType,o=a?"byteLength":"length",{maxTimeToFirstByteMs:l,maxLoadTimeMs:u}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,s),self.clearTimeout(this.requestTimeout),t.timeout=l&&i(l)?l:u,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))}),t.timeout);(is(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then((n=>{var s;this.response=this.loader=n;const o=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-(o-r.loading.start)),!n.ok){const{status:e,statusText:t}=n;throw new Zo(t||"fetch, bad network response",e,n)}r.loading.first=o,r.total=function(e){const t=e.get("Content-Range");if(t){const e=function(e){const t=Oo.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}(t);if(i(e))return e}const n=e.get("Content-Length");if(n)return parseInt(n)}(n.headers)||r.total;const l=null==(s=this.callbacks)?void 0:s.onProgress;return l&&i(t.highWaterMark)?this.loadProgressively(n,r,e,t.highWaterMark,l):a?n.arrayBuffer():"json"===e.responseType?n.json():n.text()})).then((n=>{var s,a;const l=this.response;if(!l)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const u=n[o];u&&(r.loaded=r.total=u);const c={url:l.url,data:n,code:l.status},d=null==(s=this.callbacks)?void 0:s.onProgress;d&&!i(t.highWaterMark)&&d(r,e,n,l),null==(a=this.callbacks)||a.onSuccess(c,r,e,l)})).catch((t=>{var n;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const i=t&&t.code||0,s=t?t.message:null;null==(n=this.callbacks)||n.onError({code:i,text:s},e,t?t.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,i=0,r){const s=new Ni,a=e.body.getReader(),o=()=>a.read().then((a=>{if(a.done)return s.dataLength&&r(t,n,s.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const l=a.value,u=l.length;return t.loaded+=u,u<i||s.dataLength?(s.push(l),s.dataLength>=i&&r(t,n,s.flush().buffer,e)):r(t,n,l.buffer,e),o()})).catch((()=>Promise.reject()));return o()}}function Bo(e,t){return new self.Request(e.url,t)}class Zo extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const jo=/^age:\s*[\d.]+\s*$/im;class Uo{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 z,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,4!==e.readyState&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),null!=(e=this.callbacks)&&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,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const r=this.xhrSetup;r?Promise.resolve().then((()=>{if(this.loader===n&&!this.stats.aborted)return r(n,t.url)})).catch((e=>{if(this.loader===n&&!this.stats.aborted)return n.open("GET",t.url,!0),r(n,t.url)})).then((()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)})).catch((e=>{var r;null==(r=this.callbacks)||r.onError({code:n.status,text:e.message},t,n,i)})):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const r=t.headers,{maxTimeToFirstByteMs:s,maxLoadTimeMs:a}=n.loadPolicy;if(r)for(const t in r)e.setRequestHeader(t,r[t]);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=s&&i(s)?s:a,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 i=t.readyState,r=this.config;if(!n.aborted&&i>=2&&(0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),r.timeout!==r.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),r.timeout=r.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),4===i)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const i=t.status,l="text"===t.responseType?t.responseText:null;if(i>=200&&i<300){const r=null!=l?l:t.response;if(null!=r){var s,a;n.loading.end=Math.max(self.performance.now(),n.loading.first);const o="arraybuffer"===t.responseType?r.byteLength:r.length;n.loaded=n.total=o,n.bwEstimate=8e3*n.total/(n.loading.end-n.loading.first);const l=null==(s=this.callbacks)?void 0:s.onProgress;l&&l(n,e,r,t);const u={url:t.responseURL,data:r,code:i};return void(null==(a=this.callbacks)||a.onSuccess(u,n,e,t))}}const u=r.loadPolicy.errorRetry;var o;if(wt(u,n.retry,!1,{url:e.url,data:void 0,code:i}))this.retry(u);else T.error(`${i} while loading ${e.url}`),null==(o=this.callbacks)||o.onError({code:i,text:t.statusText},e,t,n)}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry;if(wt(e,this.stats.retry,!0))this.retry(e);else{var t;T.warn(`timeout while loading ${null==(t=this.context)?void 0:t.url}`);const e=this.callbacks;e&&(this.abortInternal(),e.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=bt(e,n.retry),n.retry++,T.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${null==t?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&&jo.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 Ko=E(E({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:6e7,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:Uo,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:class extends w{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=e=>{var t;const{fragCurrent:n,partCurrent:r,hls:s}=this,{autoLevelEnabled:a,media:o}=s;if(!n||!o)return;const u=performance.now(),c=r?r.stats:n.stats,d=r?r.duration:n.duration,h=u-c.loading.start,f=s.minAutoLevel,p=n.level,g=this._nextAutoLevel;if(c.aborted||c.loaded&&c.loaded===c.total||p<=f)return this.clearTimer(),void(this._nextAutoLevel=-1);if(!a)return;const m=g>-1&&g!==p,v=!!e||m;if(!v&&(o.paused||!o.playbackRate||!o.readyState))return;const y=s.mainForwardBufferInfo;if(!v&&null===y)return;const _=this.bwEstimator.getEstimateTTFB(),b=Math.abs(o.playbackRate);if(h<=Math.max(_,d/(2*b)*1e3))return;const E=y?y.len/b:0,w=c.loading.first?c.loading.first-c.loading.start:-1,x=c.loaded&&w>-1,k=this.getBwEstimate(),S=s.levels,C=S[p],A=Math.max(c.loaded,Math.round(d*(n.bitrate||C.averageBitrate)/8));let T=x?h-w:h;T<1&&x&&(T=Math.min(h,8*c.loaded/k));const D=x?1e3*c.loaded/T:0,L=_/1e3,R=D?(A-c.loaded)/D:8*A/k+L;if(R<=E)return;const I=D?8*D:k,N=!0===(null==(t=(null==e?void 0:e.details)||this.hls.latestLevelDetails)?void 0:t.live),M=this.hls.config.abrBandWidthUpFactor;let P,O=Number.POSITIVE_INFINITY;for(P=p-1;P>f;P--){const e=S[P].maxBitrate,t=!S[P].details||N;if(O=this.getTimeToLoadFrag(L,I,d*e,t),O<Math.min(E,d+L))break}if(O>=R)return;if(O>10*d)return;x?this.bwEstimator.sample(h-Math.min(_,w),c.loaded):this.bwEstimator.sampleTTFB(h);const F=S[P].maxBitrate;this.getBwEstimate()*M>F&&this.resetEstimator(F);const B=this.findBestLevel(F,f,P,0,E,1,1);B>-1&&(P=B),this.warn(`Fragment ${n.sn}${r?" part "+r.index:""} of level ${p} is loading too slowly;\n Fragment duration: ${n.duration.toFixed(3)}\n Time to underbuffer: ${E.toFixed(3)} s\n Estimated load time for current fragment: ${R.toFixed(3)} s\n Estimated load time for down switch fragment: ${O.toFixed(3)} s\n TTFB estimate: ${0|w} ms\n Current BW estimate: ${i(k)?0|k:"Unknown"} bps\n New BW estimate: ${0|this.getBwEstimate()} bps\n Switching to level ${P} @ ${0|F} bps`),s.nextLoadLevel=s.nextAutoLevel=P,this.clearTimer();const Z=()=>{if(this.clearTimer(),this.fragCurrent===n&&this.hls.loadLevel===P&&P>0){const e=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${P>0?"and switching down":""}\n Fragment duration: ${n.duration.toFixed(3)} s\n Time to underbuffer: ${e.toFixed(3)} s`),n.abortRequests(),this.fragCurrent=this.partCurrent=null,P>f){let t=this.findBestLevel(this.hls.levels[f].bitrate,f,P,0,e,1,1);-1===t&&(t=f),this.hls.nextLoadLevel=this.hls.nextAutoLevel=t,this.resetEstimator(this.hls.levels[t].bitrate)}}};m||R>2*O?Z():this.timer=self.setInterval(Z,1e3*O),s.trigger(l.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,part:r,stats:c})},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 v(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(l.MANIFEST_LOADING,this.onManifestLoading,this),e.on(l.FRAG_LOADING,this.onFragLoading,this),e.on(l.FRAG_LOADED,this.onFragLoaded,this),e.on(l.FRAG_BUFFERED,this.onFragBuffered,this),e.on(l.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(l.LEVEL_LOADED,this.onLevelLoaded,this),e.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(l.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(l.MANIFEST_LOADING,this.onManifestLoading,this),e.off(l.FRAG_LOADING,this.onFragLoading,this),e.off(l.FRAG_LOADED,this.onFragLoaded,this),e.off(l.FRAG_BUFFERED,this.onFragBuffered,this),e.off(l.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(l.LEVEL_LOADED,this.onLevelLoaded,this),e.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(l.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(l.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)){var i;if(!n.bitrateTest)this.fragCurrent=n,this.partCurrent=null!=(i=t.part)?i:null;this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case o.BUFFER_ADD_CODEC_ERROR:case o.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case o.FRAG_LOAD_TIMEOUT:{const e=t.frag,{fragCurrent:n,partCurrent:i}=this;if(e&&n&&e.sn===n.sn&&e.level===n.level){const t=performance.now(),n=i?i.stats:e.stats,r=t-n.loading.start,s=n.loading.first?n.loading.first-n.loading.start:-1;if(n.loaded&&s>-1){const e=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(r-Math.min(e,s),n.loaded)}else this.bwEstimator.sampleTTFB(r)}break}}}getTimeToLoadFrag(e,t,n,i){return e+n/t+(i?e+this.lastLevelLoadSec:0)}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,s=r.end-r.first;i(s)&&(this.lastLevelLoadSec=s/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 i=n?n.stats:t.stats;if(t.type===f&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const e=n?n.duration:t.duration,r=this.hls.levels[t.level],s=(r.loaded?r.loaded.bytes:0)+i.loaded,a=(r.loaded?r.loaded.duration:0)+e;r.loaded={bytes:s,duration:a},r.realBitrate=Math.round(8*s/a)}if(t.bitrateTest){const e={stats:i,frag:t,part:n,id:t.type};this.onFragBuffered(l.FRAG_BUFFERED,e),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:i}=t,r=null!=i&&i.stats.loaded?i.stats:n.stats;if(r.aborted)return;if(this.ignoreFragment(n))return;const s=r.parsing.end-r.loading.start-Math.min(r.loading.first-r.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,r.loaded),r.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==f||"initSegment"===e.sn}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,r=this.findBestLevel(n,t,e,0,i,1,1);if(r>-1)return r;const s=this.hls.firstLevel,a=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 ${a}`),a}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,t=this.bwEstimator.canEstimate(),n=this.lastLoadedFragLevel>-1;if(!(-1===e||t&&n&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return e;const i=t&&n?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==e){const t=this.hls.levels;if(t.length>Math.max(e,i)&&t[e].loadError<=t[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:i,config:r,minAutoLevel:s}=n,a=t?t.duration:e?e.duration:0,o=this.getBwEstimate(),l=this.getStarvationDelay();let u=r.abrBandWidthFactor,c=r.abrBandWidthUpFactor;if(l){const e=this.findBestLevel(o,s,i,l,0,u,c);if(e>=0)return this.rebufferNotice=-1,e}let d=a?Math.min(a,r.maxStarvationDelay):r.maxStarvationDelay;if(!l){const e=this.bitrateTestDelay;if(e){d=(a?Math.min(a,r.maxLoadingDelay):r.maxLoadingDelay)-e,this.info(`bitrate test took ${Math.round(1e3*e)}ms, set first fragment max fetchDuration to ${Math.round(1e3*d)} ms`),u=c=1}}const h=this.findBestLevel(o,s,i,l,d,u,c);if(this.rebufferNotice!==h&&(this.rebufferNotice=h,this.info(`${l?"rebuffering expected":"buffer is empty"}, optimal quality level ${h}`)),h>-1)return h;const f=n.levels[s],p=n.loadLevelObj;return p&&(null==f?void 0:f.bitrate)<p.bitrate?s:n.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const n=t&&0!==t.playbackRate?Math.abs(t.playbackRate):1,i=e.mainForwardBufferInfo;return(i?i.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,r,s,a,o){var l;const u=r+s,c=this.lastLoadedFragLevel,d=-1===c?this.hls.firstLevel:c,{fragCurrent:h,partCurrent:f}=this,{levels:p,allAudioTracks:g,loadLevel:m,config:v}=this.hls;if(1===p.length)return 0;const y=p[d],_=!(null==(l=this.hls.latestLevelDetails)||!l.live),b=-1===m||-1===c;let E,w="SDR",x=(null==y?void 0:y.frameRate)||0;const{audioPreference:k,videoPreference:S}=v,C=this.audioTracksByGroup||(this.audioTracksByGroup=rt(g));let A=-1;if(b){if(-1!==this.firstSelection)return this.firstSelection;const r=this.codecTiers||(this.codecTiers=function(e,t,n,i){return e.slice(n,i+1).reduce(((e,n,i)=>{if(!n.codecSet)return e;const r=n.audioGroups;let s=e[n.codecSet];s||(e[n.codecSet]=s={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:i,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!r,fragmentError:0}),s.minBitrate=Math.min(s.minBitrate,n.bitrate);const a=Math.min(n.height,n.width);return s.minHeight=Math.min(s.minHeight,a),s.minFramerate=Math.min(s.minFramerate,n.frameRate),s.minIndex=Math.min(s.minIndex,i),s.maxScore=Math.max(s.maxScore,n.score),s.fragmentError+=n.fragmentError,s.videoRanges[n.videoRange]=(s.videoRanges[n.videoRange]||0)+1,r&&r.forEach((e=>{if(!e)return;const n=t.groups[e];n&&(s.hasDefaultAudio=s.hasDefaultAudio||t.hasDefaultAudio?n.hasDefault:n.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(n.channels).forEach((e=>{s.channels[e]=(s.channels[e]||0)+n.channels[e]})))})),e}),{})}(p,C,t,n)),s=function(e,t,n,r,s){const a=Object.keys(e),o=null==r?void 0:r.channels,l=null==r?void 0:r.audioCodec,u=null==s?void 0:s.videoCodec,c=o&&2===parseInt(o);let d=!1,h=!1,f=1/0,p=1/0,g=1/0,m=1/0,v=0,y=[];const{preferHDR:_,allowedVideoRanges:b}=tt(t,s);for(let t=a.length;t--;){const n=e[a[t]];d||(d=n.channels[2]>0),f=Math.min(f,n.minHeight),p=Math.min(p,n.minFramerate),g=Math.min(g,n.minBitrate),b.filter((e=>n.videoRanges[e]>0)).length>0&&(h=!0)}f=i(f)?f:0,p=i(p)?p:0;const E=Math.max(1080,f),w=Math.max(30,p);g=i(g)?g:n,n=Math.max(g,n),h||(t=void 0);const x=a.length>1;return{codecSet:a.reduce(((t,i)=>{const r=e[i];if(i===t)return t;if(y=h?b.filter((e=>r.videoRanges[e]>0)):[],x){if(r.minBitrate>n)return it(i,`min bitrate of ${r.minBitrate} > current estimate of ${n}`),t;if(!r.hasDefaultAudio)return it(i,"no renditions with default or auto-select sound found"),t;if(l&&i.indexOf(l.substring(0,4))%5!=0)return it(i,`audio codec preference "${l}" not found`),t;if(o&&!c){if(!r.channels[o])return it(i,`no renditions with ${o} channel sound found (channels options: ${Object.keys(r.channels)})`),t}else if((!l||c)&&d&&0===r.channels[2])return it(i,"no renditions with stereo sound found"),t;if(r.minHeight>E)return it(i,`min resolution of ${r.minHeight} > maximum of ${E}`),t;if(r.minFramerate>w)return it(i,`min framerate of ${r.minFramerate} > maximum of ${w}`),t;if(!y.some((e=>r.videoRanges[e]>0)))return it(i,`no variants with VIDEO-RANGE of ${nt(y)} found`),t;if(u&&i.indexOf(u.substring(0,4))%5!=0)return it(i,`video codec preference "${u}" not found`),t;if(r.maxScore<v)return it(i,`max score of ${r.maxScore} < selected max of ${v}`),t}return t&&(Le(i)>=Le(t)||r.fragmentError>e[t].fragmentError)?t:(m=r.minIndex,v=r.maxScore,i)}),void 0),videoRanges:y,preferHDR:_,minFramerate:p,minBitrate:g,minIndex:m}}(r,w,e,k,S),{codecSet:a,videoRanges:o,minFramerate:l,minBitrate:u,minIndex:c,preferHDR:d}=s;A=c,E=a,w=d?o[o.length-1]:o[0],x=l,e=Math.max(e,u),this.log(`picked start tier ${nt(s)}`)}else E=null==y?void 0:y.codecSet,w=null==y?void 0:y.videoRange;const T=f?f.duration:h?h.duration:0,D=this.bwEstimator.getEstimateTTFB()/1e3,L=[];for(let l=n;l>=t;l--){var R;const t=p[l],h=l>d;if(!t)continue;if(v.useMediaCapabilities&&!t.supportedResult&&!t.supportedPromise){const n=navigator.mediaCapabilities;"function"==typeof(null==n?void 0:n.decodingInfo)&&Ke(t,C,w,x,e,k)?(t.supportedPromise=ze(t,C,n,this.supportedCache),t.supportedPromise.then((e=>{if(!this.hls)return;t.supportedResult=e;const n=this.hls.levels,i=n.indexOf(t);e.error?this.warn(`MediaCapabilities decodingInfo error: "${e.error}" for level ${i} ${nt(e)}`):e.supported?e.decodingInfoResults.some((e=>!1===e.smooth||!1===e.powerEfficient))&&this.log(`MediaCapabilities decodingInfo for level ${i} not smooth or powerEfficient: ${nt(e)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${i} ${nt(e)}`),i>-1&&n.length>1&&(this.log(`Removing unsupported level ${i}`),this.hls.removeLevel(i),-1===this.hls.loadLevel&&(this.hls.nextLoadLevel=0)))})).catch((e=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${e}`)}))):t.supportedResult=je}if((E&&t.codecSet!==E||w&&t.videoRange!==w||h&&x>t.frameRate||!h&&x>0&&x<t.frameRate||null!=(R=t.supportedResult)&&null!=(R=R.decodingInfoResults)&&R.some((e=>!1===e.smooth)))&&(!b||l!==A)){L.push(l);continue}const g=t.details,y=(f?null==g?void 0:g.partTarget:null==g?void 0:g.averagetargetduration)||T;let S;S=h?o*e:a*e;const I=T&&r>=2*T&&0===s?t.averageBitrate:t.maxBitrate,N=this.getTimeToLoadFrag(D,S,I*y,void 0===g);if(S>=I&&(l===c||0===t.loadError&&0===t.fragmentError)&&(N<=D||!i(N)||_&&!this.bitrateTestDelay||N<u)){const e=this.forcedAutoLevel;return l===m||-1!==e&&e===m||(L.length&&this.trace(`Skipped level(s) ${L.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${p[L[0]].codecs}" ${p[L[0]].videoRange}; not compatible with "${E}" ${w}`),this.info(`switch candidate:${d}->${l} adjustedbw(${Math.round(S)})-bitrate=${Math.round(S-I)} ttfb:${D.toFixed(1)} avgDuration:${y.toFixed(1)} maxFetchDuration:${u.toFixed(1)} fetchDuration:${N.toFixed(1)} firstSelection:${b} codecSet:${t.codecSet} videoRange:${t.videoRange} hls.loadLevel:${m}`)),b&&(this.firstSelection=l),l}}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)}},bufferController:class extends w{constructor(e,t){var n;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=e=>{var t;this.hls&&"open"===(null==(t=this.mediaSource)?void 0:t.readyState)&&this.hls.pauseBuffering()},this._onStartStreaming=e=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=e=>{const{media:t,mediaSource:n}=this;e&&this.log("Media source opened"),t&&n&&(n.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(l.MEDIA_ATTACHED,{media:t,mediaSource:n}),null!==this.mediaSource&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:e,_objectUrl:t}=this;e!==t&&this.error(`Media element src was set while attaching MediaSource (${t} > ${e})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=(n=D(e.config.preferManagedMediaSource),"undefined"!=typeof self&&n===self.ManagedMediaSource),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(l.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(l.MANIFEST_LOADING,this.onManifestLoading,this),e.on(l.MANIFEST_PARSED,this.onManifestParsed,this),e.on(l.BUFFER_RESET,this.onBufferReset,this),e.on(l.BUFFER_APPENDING,this.onBufferAppending,this),e.on(l.BUFFER_CODECS,this.onBufferCodecs,this),e.on(l.BUFFER_EOS,this.onBufferEos,this),e.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(l.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(l.FRAG_PARSED,this.onFragParsed,this),e.on(l.FRAG_CHANGED,this.onFragChanged,this),e.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(l.MANIFEST_LOADING,this.onManifestLoading,this),e.off(l.MANIFEST_PARSED,this.onManifestParsed,this),e.off(l.BUFFER_RESET,this.onBufferReset,this),e.off(l.BUFFER_APPENDING,this.onBufferAppending,this),e.off(l.BUFFER_CODECS,this.onBufferCodecs,this),e.off(l.BUFFER_EOS,this.onBufferEos,this),e.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(l.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(l.FRAG_PARSED,this.onFragParsed,this),e.off(l.FRAG_CHANGED,this.onFragChanged,this),e.off(l.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const n={};if(this.operationQueue){const e=this.isUpdating();e||this.operationQueue.removeBlockers();const t=this.isQueued();(e||t)&&this.warn(`Transfering MediaSource with${t?" operations in queue":""}${e?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const i=this.transferData;return!this.sourceBufferCount&&i&&i.mediaSource===t?_(n,i.tracks):this.sourceBuffers.forEach((e=>{const[t]=e;t&&(n[t]=_({},this.tracks[t]),this.removeBuffer(t)),e[0]=e[1]=null})),{media:e,mediaSource:t,tracks:n}}initTracks(){this.sourceBuffers=[[null,null],[null,null]],this.tracks={},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 i=2;(t.audio&&!t.video||!t.altAudio)&&(i=1),this.bufferCodecEventsTotal=i,this.log(`${i} bufferCodec event(s) expected.`),null!=(n=this.transferData)&&n.mediaSource&&this.sourceBufferCount&&i&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media;this.transferData=this.overrides=void 0;const i=D(this.appendSource);if(i){const e=!!t.mediaSource;(e||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const r=this.mediaSource=t.mediaSource||new i;if(this.assignMediaSource(r),e)this._objectUrl=n.src,this.attachTransferred();else{const e=this._objectUrl=self.URL.createObjectURL(r);if(this.appendSource)try{n.removeAttribute("src");const t=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||t&&r instanceof t,ms(n),function(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}(n,e),n.load()}catch(t){n.src=e}else n.src=e}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,n;this.log(`${(null==(t=this.transferData)?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${null==(n=e.constructor)?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,i=t.tracks,r=i?Object.keys(i):null,s=r?r.length:0,a=()=>{Promise.resolve().then((()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()}))};if(i&&r&&s){if(!this.tracksReady)return this.hls.config.startFragPrefetch=!0,void this.log("attachTransferred: waiting for SourceBuffer track info");if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})\nrequired tracks: ${nt(n,((e,t)=>"initSegment"===e?void 0:t))};\ntransfer tracks: ${nt(i,((e,t)=>"initSegment"===e?void 0:t))}}`),!L(i,n)){t.mediaSource=null,t.tracks=void 0;const r=e.currentTime,s=this.details,a=Math.max(r,(null==s?void 0:s.fragments[0].start)||0);return a-r>1?void this.log(`attachTransferred: waiting for playback to reach new tracks start time ${r} -> ${a}`):(this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(i)}"->"${Object.keys(n)}") start time: ${a} currentTime: ${r}`),this.onMediaDetaching(l.MEDIA_DETACHING,{}),this.onMediaAttaching(l.MEDIA_ATTACHING,t),void(e.currentTime=a))}this.transferData=void 0,r.forEach((e=>{const t=e,n=i[t];if(n){const e=n.buffer;if(e){const i=this.fragmentTracker,r=n.id;if(i.hasFragments(r)||i.hasParts(r)){const n=tn.getBuffered(e);i.detectEvictedFragments(t,n,r,null,!0)}const s=vs(t),a=[t,e];this.sourceBuffers[s]=a,e.updating&&this.operationQueue&&this.operationQueue.prependBlocker(t),this.trackSourceBuffer(t,n)}}})),a(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),a()}get mediaSourceOpenOrEnded(){var e;const t=null==(e=this.mediaSource)?void 0:e.readyState;return"open"===t||"ended"===t}onMediaDetaching(e,t){const n=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:i,mediaSource:r,_objectUrl:s}=this;if(r){if(this.log("media source "+(n?"transferring":"detaching")),n)this.sourceBuffers.forEach((([e])=>{e&&this.removeBuffer(e)})),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const e="open"===r.readyState;try{const t=r.sourceBuffers;for(let n=t.length;n--;)e&&t[n].abort(),r.removeSourceBuffer(t[n]);e&&r.endOfStream()}catch(e){this.warn(`onMediaDetaching: ${e.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}r.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("sourceended",this._onMediaSourceEnded),r.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(r.removeEventListener("startstreaming",this._onStartStreaming),r.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}i&&(i.removeEventListener("emptied",this._onMediaEmptied),n||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(i.removeAttribute("src"),this.appendSource&&ms(i),i.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(l.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach((([e])=>{e&&this.resetBuffer(e)})),this.initTracks()}resetBuffer(e){var t;const n=null==(t=this.tracks[e])?void 0:t.buffer;if(this.removeBuffer(e),n)try{var i;null!=(i=this.mediaSource)&&i.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(t){this.warn(`onBufferReset ${e}`,t)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[vs(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new hs(this.tracks)}onBufferCodecs(e,t){var n;const i=this.tracks,r=Object.keys(t);this.log(`BUFFER_CODECS: "${r}" (current SB count ${this.sourceBufferCount})`);const s="audiovideo"in t&&(i.audio||i.video)||i.audiovideo&&("audio"in t||"video"in t),a=!s&&this.sourceBufferCount&&this.media&&r.some((e=>!i[e]));s||a?this.warn(`Unsupported transition between "${Object.keys(i)}" and "${r}" SourceBuffers`):(r.forEach((e=>{var n,r;const s=t[e],{id:a,codec:o,levelCodec:l,container:u,metadata:c,supplemental:d}=s;let h=i[e];const f=null==(n=this.transferData)||null==(n=n.tracks)?void 0:n[e],p=null!=f&&f.buffer?f:h,g=(null==p?void 0:p.pendingCodec)||(null==p?void 0:p.codec),m=null==p?void 0:p.levelCodec;h||(h=i[e]={buffer:void 0,listeners:[],codec:o,supplemental:d,container:u,levelCodec:l,metadata:c,id:a});const v=Me(g,m),y=null==v?void 0:v.replace(fs,"$1");let _=Me(o,l);const b=null==(r=_)?void 0:r.replace(fs,"$1");_&&v&&y!==b&&("audio"===e.slice(0,5)&&(_=Ne(_,this.appendSource)),this.log(`switching codec ${g} to ${_}`),_!==(h.pendingCodec||h.codec)&&(h.pendingCodec=_),h.container=u,this.appendChangeType(e,u,_))})),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),this.sourceBufferCount||(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!t.video&&"main"===(null==(n=t.audio)?void 0:n.id)&&(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 i=`${t};codecs=${n}`,r={label:`change-type=${i}`,execute:()=>{const r=this.tracks[e];if(r){const s=r.buffer;null!=s&&s.changeType&&(this.log(`changing ${e} sourceBuffer type to ${i}`),s.changeType(i),r.codec=n,r.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:t=>{this.warn(`Failed to change ${e} SourceBuffer type`,t)}};this.append(r,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,i=n+.05*e.duration;if(!0===(null==(t=this.fragmentTracker.getAppendedFrag(n,f))?void 0:t.gap))return;const r={label:"block-audio",execute:()=>{var e;const t=this.tracks.video;(this.lastVideoAppendEnd>i||null!=t&&t.buffer&&tn.isBuffered(t.buffer,i)||!0===(null==(e=this.fragmentTracker.getAppendedFrag(i,f))?void 0:e.gap))&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:e=>{this.warn("Error executing block-audio operation",e)}};this.blockedAudioAppend={op:r,frag:e},this.append(r,"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:s,parent:u,frag:c,part:d,chunkMeta:h,offset:p}=t,g=h.buffering[s],{sn:m,cc:v}=c,y=self.performance.now();g.start=y;const _=c.stats.buffering,b=d?d.stats.buffering:null;0===_.start&&(_.start=y),b&&0===b.start&&(b.start=y);const E=n.audio;let w=!1;"audio"===s&&"audio/mpeg"===(null==E?void 0:E.container)&&(w=!this.lastMpegAudioChunk||1===h.id||this.lastMpegAudioChunk.sn!==h.sn,this.lastMpegAudioChunk=h);const x=n.video,k=null==x?void 0:x.buffer;if(k&&"initSegment"!==m){const e=d||c,t=this.blockedAudioAppend;if("audio"!==s||"main"===u||this.blockedAudioAppend||x.ending||x.ended){if("video"===s){const n=e.end;if(t){const e=t.frag.start;(n>e||n<this.lastVideoAppendEnd||tn.isBuffered(k,e))&&this.unblockAudio()}this.lastVideoAppendEnd=n}}else{const t=e.start+.05*e.duration,n=k.buffered,i=this.currentOp("video");n.length||i?!i&&!tn.isBuffered(k,t)&&this.lastVideoAppendEnd<t&&this.blockAudio(e):this.blockAudio(e)}}const S=(d||c).start,C={label:`append-${s}`,execute:()=>{var e;g.executeStart=self.performance.now();const t=null==(e=this.tracks[s])?void 0:e.buffer;t&&(w?this.updateTimestampOffset(t,S,.1,s,m,v):void 0!==p&&i(p)&&this.updateTimestampOffset(t,p,1e-6,s,m,v)),this.appendExecutor(r,s)},onStart:()=>{},onComplete:()=>{const e=self.performance.now();g.executeEnd=g.end=e,0===_.first&&(_.first=e),b&&0===b.first&&(b.first=e);const t={};this.sourceBuffers.forEach((([e,n])=>{e&&(t[e]=tn.getBuffered(n))})),this.appendErrors[s]=0,"audio"===s||"video"===s?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(l.BUFFER_APPENDED,{type:s,frag:c,part:d,chunkMeta:h,parent:c.type,timeRanges:t})},onError:e=>{var t;const n={type:a.MEDIA_ERROR,parent:c.type,details:o.BUFFER_APPEND_ERROR,sourceBufferName:s,frag:c,part:d,chunkMeta:h,error:e,err:e,fatal:!1},i=null==(t=this.media)?void 0:t.error;if(e.code===DOMException.QUOTA_EXCEEDED_ERR||"QuotaExceededError"==e.name||"quota"in e)n.details=o.BUFFER_FULL_ERROR;else if(e.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!i)n.errorAction=It(!0);else if(e.name===ps&&0===this.sourceBufferCount)n.errorAction=It(!0);else{const e=++this.appendErrors[s];this.warn(`Failed ${e}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${s}" sourceBuffer (${i||"no media error"})`),(e>=this.hls.config.appendErrorMaxRetry||i)&&(n.fatal=!0)}this.hls.trigger(l.ERROR,n)}};this.log(`queuing "${s}" append sn: ${m}${d?" p: "+d.index:""} of ${c.type===f?"level":"track"} ${c.level} cc: ${v}`),this.append(C,s,this.isPending(this.tracks[s]))}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(l.BUFFER_FLUSHED,{type:e})},onError:i=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,i)}}}onBufferFlushing(e,t){const{type:n,startOffset:i,endOffset:r}=t;n?this.append(this.getFlushOp(n,i,r),n):this.sourceBuffers.forEach((([e])=>{e&&this.append(this.getFlushOp(e,i,r),e)}))}onFragParsed(e,t){const{frag:n,part:i}=t,r=[],s=i?i.elementaryStreams:n.elementaryStreams;s[V]?r.push("audiovideo"):(s[G]&&r.push("audio"),s[H]&&r.push("video"));0===r.length&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers((()=>{const e=self.performance.now();n.stats.buffering.end=e,i&&(i.stats.buffering.end=e);const t=i?i.stats:n.stats;this.hls.trigger(l.FRAG_BUFFERED,{frag:n,part:i,stats:t,id:n.type})}),r).catch((e=>{this.warn(`Fragment buffered callback ${e}`),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((([e])=>{if(e){const n=this.tracks[e];t.type&&t.type!==e||(n.ending=!0,n.ended||(n.ended=!0,this.log(`${e} buffer reached EOS`)))}}));const i=!1!==(null==(n=this.overrides)?void 0:n.endOfStream);this.sourceBufferCount>0&&!this.sourceBuffers.some((([e])=>{var t;return e&&!(null!=(t=this.tracks[e])&&t.ended)}))?i?(this.log("Queueing EOS"),this.blockUntilOpen((()=>{this.tracksEnded();const{mediaSource:e}=this;e&&"open"===e.readyState?(this.log("Calling mediaSource.endOfStream()"),e.endOfStream(),this.hls.trigger(l.BUFFERED_TO_END,void 0)):e&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${e.readyState}`)}))):(this.tracksEnded(),this.hls.trigger(l.BUFFERED_TO_END,void 0)):"video"===t.type&&this.unblockAudio()}tracksEnded(){this.sourceBuffers.forEach((([e])=>{if(null!==e){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===o.BUFFER_APPEND_ERROR&&t.frag){var n;const e=null==(n=t.errorAction)?void 0:n.nextAutoLevel;i(e)&&e!==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||null===t)return;if(!this.sourceBufferCount)return;const r=e.config,s=n.currentTime,a=t.levelTargetDuration,o=t.live&&null!==r.liveBackBufferLength?r.liveBackBufferLength:r.backBufferLength;if(i(o)&&o>=0){const e=Math.max(o,a),t=Math.floor(s/a)*a-e;this.flushBackBuffer(s,a,t)}const l=r.frontBufferFlushThreshold;if(i(l)&&l>0){const e=Math.max(r.maxBufferLength,l),t=Math.max(e,a),n=Math.floor(s/a)*a+t;this.flushFrontBuffer(s,a,n)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach((([e,t])=>{if(t){const r=tn.getBuffered(t);if(r.length>0&&n>r.start(0)){var i;this.hls.trigger(l.BACK_BUFFER_REACHED,{bufferEnd:n});const t=this.tracks[e];if(null!=(i=this.details)&&i.live)this.hls.trigger(l.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(null!=t&&t.ended)return void this.log(`Cannot flush ${e} back buffer while SourceBuffer is in ended state`);this.hls.trigger(l.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:e})}}}))}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach((([t,i])=>{if(i){const r=tn.getBuffered(i),s=r.length;if(s<2)return;const a=r.start(s-1),o=r.end(s-1);if(n>a||e>=a&&e<=o)return;this.hls.trigger(l.BUFFER_FLUSHING,{startOffset:a,endOffset:1/0,type:t})}}))}getDurationAndRange(){var e;const{details:t,mediaSource:n}=this;if(!t||!this.media||"open"!==(null==n?void 0:n.readyState))return null;const r=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&n.setLiveSeekableRange){const e=Math.max(0,t.fragmentStart);return{duration:1/0,start:e,end:Math.max(e,r)}}return{duration:1/0}}const s=null==(e=this.overrides)?void 0:e.duration;if(s)return i(s)?{duration:s}:null;const a=this.media.duration;return r>(i(n.duration)?n.duration:0)&&r>a||!i(a)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;this.media&&r&&"open"===r.readyState&&(r.duration!==e&&(i(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),r.duration=e),void 0!==t&&void 0!==n&&(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}) ${nt(n)}`),this.tracksReady){var i;const e=null==(i=this.transferData)?void 0:i.tracks;e&&Object.keys(e).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach((([t,n])=>{if(t){const i=this.tracks[t];e[t]={buffer:n,container:i.container,codec:i.codec,supplemental:i.supplemental,levelCodec:i.levelCodec,id:i.id,metadata:i.metadata}}})),this.hls.trigger(l.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach((([e])=>{this.executeNext(e)}))}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const r in e){const s=r,u=e[s];if(this.isPending(u)){const e=this.getTrackCodec(u,s),r=`${u.container};codecs=${e}`;u.codec=e,this.log(`creating sourceBuffer(${r})${this.currentOp(s)?" Queued":""} ${nt(u)}`);try{const e=n.addSourceBuffer(r),i=vs(s),a=[s,e];t[i]=a,u.buffer=e}catch(e){var i;return this.error(`error while trying to add sourceBuffer: ${e.message}`),this.shiftAndExecuteNext(s),null==(i=this.operationQueue)||i.removeBlockers(),delete this.tracks[s],void this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:e,sourceBufferName:s,mimeType:r,parent:u.id})}this.trackSourceBuffer(s,u)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let i=e.codec;n&&("video"===t||"audiovideo"===t)&&Ce(n,"video")&&(i=function(e,t){const n=[];if(e){const t=e.split(",");for(let e=0;e<t.length;e++)Se(t[e],"video")||n.push(t[e])}return t&&n.push(t),n.join(",")}(i,n));const r=Me(i,e.levelCodec);return r?"audio"===t.slice(0,5)?Ne(r,this.appendSource):r:""}trackSourceBuffer(e,t){const n=t.buffer;if(!n)return;const i=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:i,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",((e,t)=>{const n=t.removedRanges;null!=n&&n.length&&this.hls.trigger(l.BUFFER_FLUSHED,{type:e})}))}get mediaSrc(){var e,t;const n=(null==(e=this.media)||null==(t=e.querySelector)?void 0:t.call(e,"source"))||this.media;return null==n?void 0:n.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if("closed"===(null==(t=this.mediaSource)?void 0:t.readyState))return void this.resetBuffer(e);const n=this.currentOp(e);n&&(n.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var n;const i=new Error(`${e} SourceBuffer error. MediaSource readyState: ${null==(n=this.mediaSource)?void 0:n.readyState}`);this.error(`${i}`,t),this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:i,fatal:!1});const r=this.currentOp(e);r&&r.onError(i)}updateTimestampOffset(e,t,n,i,r,s){const a=t-e.timestampOffset;Math.abs(a)>=n&&(this.log(`Updating ${i} SourceBuffer timestampOffset to ${t} (sn: ${r} cc: ${s})`),e.timestampOffset=t)}removeExecutor(e,t,n){const{media:r,mediaSource:s}=this,a=this.tracks[e],o=null==a?void 0:a.buffer;if(!r||!s||!o)return this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),void this.shiftAndExecuteNext(e);const l=i(r.duration)?r.duration:1/0,u=i(s.duration)?s.duration:1/0,c=Math.max(0,t),d=Math.min(n,l,u);d>c&&(!a.ending||a.ended)?(a.ended=!1,this.log(`Removing [${c},${d}] from the ${e} SourceBuffer`),o.remove(c,d)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],i=null==n?void 0:n.buffer;if(!i)throw new gs(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,i.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch((e=>{this.warn(`SourceBuffer blocked callback ${e}`),this.stepOperationQueue(this.sourceBufferTypes)}));else try{e()}catch(e){this.warn(`Callback run without blocking ${this.operationQueue} ${e}`)}}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,i=t.map((e=>this.appendBlocker(e)));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(i).then((t=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))}))}stepOperationQueue(e){e.forEach((e=>{var t;const n=null==(t=this.tracks[e])?void 0:t.buffer;n&&!n.updating&&this.shiftAndExecuteNext(e)}))}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 i=this.tracks[e];if(!i)return;const r=i.buffer;if(!r)return;const s=n.bind(this,e);i.listeners.push({event:t,listener:s}),r.addEventListener(t,s)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach((e=>{n.removeEventListener(e.event,e.listener)})),t.listeners.length=0)}},capLevelController:ys,errorController:class extends w{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(l.ERROR,this.onError,this),e.on(l.MANIFEST_LOADING,this.onManifestLoading,this),e.on(l.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(l.ERROR,this.onError,this),e.off(l.ERROR,this.onErrorOut,this),e.off(l.MANIFEST_LOADING,this.onManifestLoading,this),e.off(l.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(null==e?void 0:e.type)===f?e.level:this.getVariantIndex()}getVariantIndex(){var e;const t=this.hls,n=t.currentLevel;return null!=(e=t.loadLevelObj)&&e.details||-1===n?t.loadLevel:n}variantHasKey(e,t){if(e){var n;if(null!=(n=e.details)&&n.hasKey(t))return!0;const i=e.audioGroups;if(i){return this.hls.allAudioTracks.filter((e=>i.indexOf(e.groupId)>=0)).some((e=>{var n;return null==(n=e.details)?void 0:n.hasKey(t)}))}}return!1}onManifestLoading(){this.playlistError=0}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const i=this.hls,r=t.context;switch(t.details){case o.FRAG_LOAD_ERROR:case o.FRAG_LOAD_TIMEOUT:case o.KEY_LOAD_ERROR:case o.KEY_LOAD_TIMEOUT:return void(t.errorAction=this.getFragRetryOrSwitchAction(t));case o.FRAG_PARSING_ERROR:if(null!=(n=t.frag)&&n.gap)return void(t.errorAction=It());case o.FRAG_GAP:case o.FRAG_DECRYPT_ERROR:return t.errorAction=this.getFragRetryOrSwitchAction(t),void(t.errorAction.action=St);case o.LEVEL_EMPTY_ERROR:case o.LEVEL_PARSING_ERROR:{var s;const e=t.parent===f?t.level:i.loadLevel;t.details===o.LEVEL_EMPTY_ERROR&&null!=(s=t.context)&&null!=(s=s.levelDetails)&&s.live?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,e):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,e))}return;case o.LEVEL_LOAD_ERROR:case o.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==r?void 0:r.level)&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.level)));case o.AUDIO_TRACK_LOAD_ERROR:case o.AUDIO_TRACK_LOAD_TIMEOUT:case o.SUBTITLE_LOAD_ERROR:case o.SUBTITLE_TRACK_LOAD_TIMEOUT:if(r){const e=i.loadLevelObj;if(e&&(r.type===d&&e.hasAudioGroup(r.groupId)||r.type===h&&e.hasSubtitleGroup(r.groupId)))return t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=St,void(t.errorAction.flags=Dt)}return;case o.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:return void(t.errorAction={action:St,flags:Lt});case o.KEY_SYSTEM_SESSION_UPDATE_FAILED:case o.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case o.KEY_SYSTEM_NO_SESSION:return void(t.errorAction={action:St,flags:Rt});case o.BUFFER_ADD_CODEC_ERROR:case o.REMUX_ALLOC_ERROR:case o.BUFFER_APPEND_ERROR:var l;if(!t.errorAction)t.errorAction=this.getLevelSwitchAction(t,null!=(l=t.level)?l:i.loadLevel);return;case o.INTERNAL_EXCEPTION:case o.BUFFER_APPENDING_ERROR:case o.BUFFER_FULL_ERROR:case o.LEVEL_SWITCH_ERROR:case o.BUFFER_STALLED_ERROR:case o.BUFFER_SEEK_OVER_HOLE:case o.BUFFER_NUDGE_ON_STALL:return void(t.errorAction=It())}t.type===a.KEY_SYSTEM_ERROR&&(t.levelRetry=!1,t.errorAction=It())}getPlaylistRetryOrSwitchAction(e,t){const n=_t(this.hls.config.playlistLoadPolicy,e),i=this.playlistError++;if(wt(n,i,mt(e),e.response))return{action:At,flags:Tt,retryConfig:n,retryCount:i};const r=this.getLevelSwitchAction(e,t);return n&&(r.retryConfig=n,r.retryCount=i),r}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),i=t.levels[n],{fragLoadPolicy:r,keyLoadPolicy:s}=t.config,a=_t(vt(e)?s:r,e),l=t.levels.reduce(((e,t)=>e+t.fragmentError),0);if(i&&(e.details!==o.FRAG_GAP&&i.fragmentError++,!yt(e))){if(wt(a,l,mt(e),e.response))return{action:At,flags:Tt,retryConfig:a,retryCount:l}}const u=this.getLevelSwitchAction(e,n);return a&&(u.retryConfig=a,u.retryCount=l),u}getLevelSwitchAction(e,t){const n=this.hls;null==t&&(t=n.loadLevel);const i=this.hls.levels[t];if(i){var r,s;const t=e.details;i.loadError++,t===o.BUFFER_APPEND_ERROR&&i.fragmentError++;let u=-1;const{levels:c,loadLevel:m,minAutoLevel:v,maxAutoLevel:y}=n;n.autoLevelEnabled||n.config.preserveManualLevelOnError||(n.loadLevel=-1);const _=null==(r=e.frag)?void 0:r.type,b=(_===p&&t===o.FRAG_PARSING_ERROR||"audio"===e.sourceBufferName&&(t===o.BUFFER_ADD_CODEC_ERROR||t===o.BUFFER_APPEND_ERROR))&&c.some((({audioCodec:e})=>i.audioCodec!==e)),E="video"===e.sourceBufferName&&(t===o.BUFFER_ADD_CODEC_ERROR||t===o.BUFFER_APPEND_ERROR)&&c.some((({codecSet:e,audioCodec:t})=>i.codecSet!==e&&i.audioCodec===t)),{type:w,groupId:x}=null!=(s=e.context)?s:{};for(let n=c.length;n--;){const r=(n+m)%c.length;if(r!==m&&r>=v&&r<=y&&0===c[r].loadError){var a,l;const n=c[r];if(t===o.FRAG_GAP&&_===f&&e.frag){const t=c[r].details;if(t){const n=ht(e.frag,t.fragments,e.frag.start);if(null!=n&&n.gap)continue}}else{if(w===d&&n.hasAudioGroup(x)||w===h&&n.hasSubtitleGroup(x))continue;if(_===p&&null!=(a=i.audioGroups)&&a.some((e=>n.hasAudioGroup(e)))||_===g&&null!=(l=i.subtitleGroups)&&l.some((e=>n.hasSubtitleGroup(e)))||b&&i.audioCodec===n.audioCodec||E&&i.codecSet===n.codecSet||!b&&i.codecSet!==n.codecSet)continue}u=r;break}}if(u>-1&&n.loadLevel!==u)return e.levelRetry=!0,this.playlistError=0,{action:St,flags:Tt,nextAutoLevel:u}}return{action:St,flags:Dt}}onErrorOut(e,t){var n;switch(null==(n=t.errorAction)?void 0:n.action){case kt:break;case St:this.sendAlternateToPenaltyBox(t),t.errorAction.resolved||t.details===o.FRAG_GAP?/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()):t.fatal=!0}t.fatal&&this.hls.stopLoad()}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:i}=n,r=n.nextAutoLevel;switch(i){case Tt:this.switchLevel(e,r);break;case Lt:{const i=this.getVariantLevelIndex(e.frag),r=t.levels[i],s=null==r?void 0:r.attrs["HDCP-LEVEL"];if(n.hdcpLevel=s,"NONE"===s)this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(s){t.maxHdcpLevel=Ve[Ve.indexOf(s)-1],n.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}}case Rt:{const t=e.decryptdata;if(t){const i=this.hls.levels,r=i.length;for(let n=r;n--;){var s,a;if(this.variantHasKey(i[n],t))this.log(`Banned key found in level ${n} (${i[n].bitrate}bps) or audio group "${null==(s=i[n].audioGroups)?void 0:s.join(",")}" (${null==(a=e.frag)?void 0:a.type} fragment) ${I(t.keyId||[])}`),i[n].fragmentError++,i[n].loadError++,this.log(`Removing level ${n} with key error (${e.error})`),this.hls.removeLevel(n)}const o=e.frag;if(this.hls.levels.length<r)n.resolved=!0;else if(o&&o.type!==f){const e=o.decryptdata;e&&!t.matches(e)&&(n.resolved=!0)}}break}}n.resolved||this.switchLevel(e,r)}switchLevel(e,t){if(void 0!==t&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===o.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&"audiovideo"!==e.sourceBufferName)){const t=Be(e.mimeType),n=this.hls.levels;for(let i=n.length;i--;)n[i][`${e.sourceBufferName}Codec`]===t&&(this.log(`Removing level ${i} for ${e.details} ("${t}" not supported)`),this.hls.removeLevel(i))}}},fpsController:class{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(l.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(l.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(l.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 e=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=e,e&&"function"==typeof e.getVideoPlaybackQuality&&(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 i=performance.now();if(t){if(this.lastTime){const e=i-this.lastTime,r=n-this.lastDroppedFrames,s=t-this.lastDecodedFrames,a=1e3*r/e,o=this.hls;if(o.trigger(l.FPS_DROP,{currentDropped:r,currentDecoded:s,totalDroppedFrames:n}),a>0&&r>o.config.fpsDroppedMonitoringThreshold*s){let e=o.currentLevel;o.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+e),e>0&&(-1===o.autoLevelCapping||o.autoLevelCapping>=e)&&(e-=1,o.trigger(l.FPS_DROP_LEVEL_CAPPING,{level:e,droppedLevel:o.currentLevel}),o.autoLevelCapping=e,this.streamController.nextLevelSwitch())}}this.lastTime=i,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)}},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:Rn,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:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},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},{cueHandler:Po,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:class extends Ri{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",g),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(l.LEVEL_LOADED,this.onLevelLoaded,this),e.on(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(l.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(l.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(l.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(l.LEVEL_LOADED,this.onLevelLoaded,this),e.off(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(l.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(l.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(l.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=bi,this.setInterval(500),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:i}=t;if(this.fragContextChanged(n)||(Y(n)&&(this.fragPrevious=n),this.state=bi),!i)return;const r=this.tracksBuffered[this.currentTrackId];if(!r)return;let s;const a=n.start;for(let e=0;e<r.length;e++)if(a>=r[e].start&&a<=r[e].end){s=r[e];break}const o=n.start+n.duration;s?s.end=o:(s={start:a,end:o},r.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:n,endOffset:i}=t;if(0===n&&i!==Number.POSITIVE_INFINITY){const e=i-1;if(e<=0)return;t.endOffsetSubtitles=Math.max(0,e),this.tracksBuffered.forEach((t=>{for(let n=0;n<t.length;)if(t[n].end<=e)t.shift();else{if(!(t[n].start<e))break;t[n].start=e,n++}})),this.fragmentTracker.removeFragmentsInRange(n,e,g)}}onError(e,t){const n=t.frag;(null==n?void 0:n.type)===g&&(t.details===o.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==_i&&(this.state=bi))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){this.levels&&us(this.levels,t)?this.levels=t.map((e=>new $e(e))):(this.tracksBuffered=[],this.levels=t.map((e=>{const t=new $e(e);return this.tracksBuffered[t.id]=[],t})),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,g),this.fragPrevious=null,this.mediaBuffer=null)}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,null==(n=this.levels)||!n.length||-1===this.currentTrackId)return void this.clearInterval();const i=this.levels[this.currentTrackId];null!=i&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.state!==_i&&this.setInterval(500)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:i,levels:r}=this,{details:s,id:a}=t;if(!r)return void this.warn(`Subtitle tracks were reset while loading level ${a}`);const o=r[a];if(a>=r.length||!o)return;this.log(`Subtitle track ${a} 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||null!=(n=o.details)&&n.live){if(s.deltaUpdateFailed)return;const e=this.mainDetails;if(!e)return void(this.startFragRequested=!1);const t=e.fragments[0];var c;if(o.details)u=this.alignPlaylists(s,o.details,null==(c=this.levelLastLoaded)?void 0:c.details),0===u&&t&&(u=t.start,ii(s,u));else s.hasProgramDateTime&&e.hasProgramDateTime?(gi(s,e),u=s.fragmentStart):t&&(u=t.start,ii(s,u));e&&!this.startFragRequested&&this.setStartPosition(e,u)}if(o.details=s,this.levelLastLoaded=o,a===i&&(this.hls.trigger(l.SUBTITLE_TRACK_UPDATED,{details:s,id:a,groupId:t.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===bi)){ht(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),o.details=void 0)}}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e,i=t.decryptdata,r=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&null!=i&&i.key&&i.iv&&mn(i.method)){const e=performance.now();this.decrypter.decrypt(new Uint8Array(n),i.key.buffer,i.iv.buffer,vn(i.method)).catch((e=>{throw r.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t}),e})).then((n=>{const i=performance.now();r.trigger(l.FRAG_DECRYPTED,{frag:t,payload:n,stats:{tstart:e,tdecrypt:i}})})).catch((e=>{this.warn(`${e.name}: ${e.message}`),this.state=bi}))}}doTick(){if(this.media){if(this.state===bi){const{currentTrackId:e,levels:t}=this,n=null==t?void 0:t[e];if(!n||!t.length||!n.details)return;if(this.waitForLive(n))return;const{config:i}=this,r=this.getLoadPosition(),s=tn.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],r,i.maxBufferHole),{end:a,len:o}=s,l=n.details;if(o>this.hls.maxBufferLength+l.levelTargetDuration)return;const u=l.fragments,c=u.length,d=l.edge;let h=null;const f=this.fragPrevious;if(a<d){const e=i.maxFragLookUpTolerance,t=a>d-e?0:e;h=ht(f,u,Math.max(u[0].start,a),t),!h&&f&&f.start<u[0].start&&(h=u[0])}else h=u[c-1];if(h=this.filterReplacedPrimary(h,n.details),!h)return;const p=u[h.sn-l.startSN-1];if(p&&p.cc===h.cc&&this.fragmentTracker.getState(p)===Nt&&(h=p),this.fragmentTracker.getState(h)===Nt){const e=this.mapToInitFragWhenRequired(h);e&&this.loadFragment(e,n,a)}}}else this.state=bi}loadFragment(e,t,n){Y(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Za(this.tracksBuffered[this.currentTrackId]||[])}},subtitleTrackController:class extends ls{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 e=null;const t=xa(this.media.textTracks);for(let n=0;n<t.length;n++)if("hidden"===t[n].mode)e=t[n];else if("showing"===t[n].mode){e=t[n];break}const n=this.findTrackForTextTrack(e);this.subtitleTrack!==n&&this.setSubtitleTrack(n)},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(l.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(l.MANIFEST_LOADING,this.onManifestLoading,this),e.on(l.MANIFEST_PARSED,this.onManifestParsed,this),e.on(l.LEVEL_LOADING,this.onLevelLoading,this),e.on(l.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(l.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(l.MANIFEST_LOADING,this.onManifestLoading,this),e.off(l.MANIFEST_PARSED,this.onManifestParsed,this),e.off(l.LEVEL_LOADING,this.onLevelLoading,this),e.off(l.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(l.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(l.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 i=!!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,i)return;xa(n.textTracks).forEach((e=>{Ea(e)}))}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:i,details:r}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==i)return void this.warn(`Subtitle track with id:${n} and group:${i} not found in active group ${null==s?void 0:s.groupId}`);const a=s.details;s.details=t.details,this.log(`Subtitle track ${n} "${s.name}" lang:${s.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,a)}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,i=this.groupIds;let r=this.currentTrack;if(!n||(null==i?void 0:i.length)!==(null==n?void 0:n.length)||null!=n&&n.some((e=>-1===(null==i?void 0:i.indexOf(e))))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const e=this.tracks.filter((e=>!n||-1!==n.indexOf(e.groupId)));if(e.length)this.selectDefaultTrack&&!e.some((e=>e.default))&&(this.selectDefaultTrack=!1),e.forEach(((e,t)=>{e.id=t}));else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=e;const t=this.hls.config.subtitlePreference;if(!r&&t){this.selectDefaultTrack=!1;const n=at(t,e);if(n>-1)r=e[n];else{const e=at(t,this.tracks);r=this.tracks[e]}}let i=this.findTrackId(r);-1===i&&r&&(i=this.findTrackId(null));const s={subtitleTracks:e};this.log(`Updating subtitle tracks, ${e.length} track(s) found in "${null==n?void 0:n.join(",")}" group-id`),this.hls.trigger(l.SUBTITLE_TRACKS_UPDATED,s),-1!==i&&-1===this.trackId&&this.setSubtitleTrack(i)}}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let i=0;i<t.length;i++){const r=t[i];if((!n||r.default)&&(n||e)&&(!e||ot(r,e)))return i}if(e){for(let n=0;n<t.length;n++){const i=t[n];if(cs(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){const i=t[n];if(cs(e.attrs,i.attrs,["LANGUAGE"]))return n}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){if(ds(t[n],e))return n}}return-1}onError(e,t){!t.fatal&&t.context&&(t.context.type!==h||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||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(-1===e.id)return this.setSubtitleTrack(-1),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&ot(e,n))return n;const i=at(e,this.tracksInGroup);if(i>-1){const e=this.tracksInGroup[i];return this.setSubtitleTrack(i),e}if(n)return null;{const n=at(e,t);if(n>-1)return t[n]}}}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,i=e.groupId,r=this.getUrlWithDirectives(e.url,t),s=e.details,a=null==s?void 0:s.age;this.log(`Loading subtitle ${n} "${e.name}" lang:${e.lang} group:${i}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""}${a&&s.live?" age "+a.toFixed(1)+(s.type?" "+s.type||0:""):""} ${r}`),this.hls.trigger(l.SUBTITLE_TRACK_LOADING,{url:r,id:n,groupId:i,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=xa(e.textTracks),n=this.currentTrack;let i;if(n&&(i=t.filter((e=>ds(n,e)))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach((e=>{"disabled"!==e.mode&&e!==i&&(e.mode="disabled")})),i){const e=this.subtitleDisplay?"showing":"hidden";i.mode!==e&&(i.mode=e)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media)return void(this.queuedDefaultTrack=e);if(e<-1||e>=t.length||!i(e))return void this.warn(`Invalid subtitle track id: ${e}`);this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r)return void this.hls.trigger(l.SUBTITLE_TRACK_SWITCH,{id:e});const s=!!r.details&&!r.details.live;if(e===this.trackId&&r===n&&s)return;this.log(`Switching to subtitle-track ${e}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));const{id:a,groupId:o="",name:u,type:c,url:d}=r;this.hls.trigger(l.SUBTITLE_TRACK_SWITCH,{id:a,groupId:o,name:u,type:c,url:d});const h=this.switchParams(r.url,null==n?void 0:n.details,r.details);this.loadPlaylist(h)}},timelineController:class{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={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},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(l.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(l.MANIFEST_LOADING,this.onManifestLoading,this),e.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(l.FRAG_LOADING,this.onFragLoading,this),e.on(l.FRAG_LOADED,this.onFragLoaded,this),e.on(l.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(l.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(l.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(l.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(l.MANIFEST_LOADING,this.onManifestLoading,this),e.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(l.FRAG_LOADING,this.onFragLoading,this),e.off(l.FRAG_LOADED,this.onFragLoaded,this),e.off(l.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(l.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(l.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(l.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new Ro(this,"textTrack1"),t=new Ro(this,"textTrack2"),n=new Ro(this,"textTrack3"),i=new Ro(this,"textTrack4");this.cea608Parser1=new no(1,e,t),this.cea608Parser2=new no(3,n,i)}addCues(e,t,n,i,r){let s=!1;for(let e=r.length;e--;){const i=r[e],l=(a=i[0],o=i[1],u=t,c=n,Math.min(o,c)-Math.max(a,u));if(l>=0&&(i[0]=Math.min(i[0],t),i[1]=Math.max(i[1],n),s=!0,l/(n-t)>.5))return}var a,o,u,c;if(s||r.push([t,n]),this.config.renderTextTracksNatively){const r=this.captionsTracks[e];this.Cues.newCue(r,t,n,i)}else{const r=this.Cues.newCue(null,t,n,i);this.hls.trigger(l.CUES_PARSED,{type:"captions",cues:r,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:i,timescale:r,trackId:s}){const{unparsedVttFrags:a}=this;n===f&&(this.initPTS[t.cc]={baseTime:i,timescale:r,trackId:s}),a.length&&(this.unparsedVttFrags=[],a.forEach((e=>{this.initPTS[e.frag.cc]?this.onFragLoaded(l.FRAG_LOADED,e):this.hls.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e.frag,error:new Error("Subtitle discontinuity domain does not match main")})})))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let i=0;i<n.textTracks.length;i++){const r=n.textTracks[i];if(No(r,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return r}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:i}=this,{label:r,languageCode:s}=t[e],a=this.getExistingTrack(r,s);if(a)n[e]=a,Ea(n[e]),_a(n[e],i);else{const t=this.createTextTrack("captions",r,s);t&&(t[e]=!0,n[e]=t)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const n={_id:e,label:t.label,kind:"captions",default:!!t.media&&!!t.media.default,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=n,this.hls.trigger(l.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[n]})}createTextTrack(e,t,n){const i=this.media;if(i)return i.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:i}=this;Object.keys(i).forEach((e=>{Ea(i[e]),delete i[e]})),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},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 e=0;e<t.length;e++)Ea(t[e])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],i=n.some((e=>e.textCodec===bo));if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(us(this.tracks,n))return void(this.tracks=n);if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const e=this.media,t=e?xa(e.textTracks):null;if(this.tracks.forEach(((e,n)=>{let i;if(t){let n=null;for(let i=0;i<t.length;i++)if(t[i]&&No(t[i],e)){n=t[i],t[i]=null;break}n&&(i=n)}if(i)Ea(i);else{const t=Io(e);i=this.createTextTrack(t,e.name,e.lang),i&&(i.mode="disabled")}i&&this.textTracks.push(i)})),null!=t&&t.length){const e=t.filter((e=>null!==e)).map((e=>e.label));e.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${e.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const e=this.tracks.map((e=>({label:e.name,kind:e.type.toLowerCase(),default:e.default,subtitleTrack:e})));this.hls.trigger(l.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:e})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach((e=>{const t=/(?:CC|SERVICE)([1-4])/.exec(e.instreamId);if(!t)return;const n=`textTrack${t[1]}`,i=this.captionsProperties[n];i&&(i.label=e.name,e.lang&&(i.languageCode=e.lang),i.media=e)}))}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return null==t?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===f){var n,i;const{cea608Parser1:e,cea608Parser2:r,lastSn:s}=this,{cc:a,sn:o}=t.frag,l=null!=(n=null==(i=t.part)?void 0:i.index)?n:-1;e&&r&&(o!==s+1||o===s&&l!==this.lastPartIndex+1||a!==this.lastCc)&&(e.reset(),r.reset()),this.lastCc=a,this.lastSn=o,this.lastPartIndex=l}}onFragLoaded(e,t){const{frag:n,payload:i}=t;if(n.type===g)if(i.byteLength){const e=n.decryptdata,r="stats"in t;if(null==e||!e.encrypted||r){const e=this.tracks[n.level],r=this.vttCCs;r[n.cc]||(r[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),e&&e.textCodec===bo?this._parseIMSC1(n,i):this._parseVTTs(t)}}else this.hls.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;ko(t,this.initPTS[e.cc],(t=>{this._appendCues(t,e.level),n.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})}),(t=>{n.logger.log(`Failed to parse IMSC1: ${t}`),n.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:t})}))}_parseVTTs(e){var t;const{frag:n,payload:i}=e,{initPTS:r,unparsedVttFrags:s}=this,a=r.length-1;if(!r[n.cc]&&-1===a)return void s.push(e);const o=this.hls;_o(null!=(t=n.initSegment)&&t.data?ge(n.initSegment.data,new Uint8Array(i)).buffer:i,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,(e=>{this._appendCues(e,n.level),o.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})}),(t=>{const r="Missing initPTS for VTT MPEGTS"===t.message;r?s.push(e):this._fallbackToIMSC1(n,i),o.logger.log(`Failed to parse VTT cue: ${t}`),r&&a>n.cc||o.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:t})}))}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||ko(t,this.initPTS[e.cc],(()=>{n.textCodec=bo,this._parseIMSC1(e,t)}),(()=>{n.textCodec="wvtt"}))}_appendCues(e,t){const n=this.hls;if(this.config.renderTextTracksNatively){const n=this.textTracks[t];if(!n||"disabled"===n.mode)return;e.forEach((e=>ba(n,e)))}else{const i=this.tracks[t];if(!i)return;const r=i.default?"default":"subtitles"+t;n.trigger(l.CUES_PARSED,{type:"subtitles",cues:e,track:r})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===g&&this.onFragLoaded(l.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:i}=t;if(n.type!==f||"NONE"!==this.closedCaptionsForLevel(n))for(let e=0;e<i.length;e++){const t=i[e].bytes;if(t){this.cea608Parser1||this.initCea608Parsers();const n=this.extractCea608Data(t);this.cea608Parser1.addData(i[e].pts,n[0]),this.cea608Parser2.addData(i[e].pts,n[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:i,type:r}){const{media:s}=this;if(s&&!(s.currentTime<n)){if(!r||"video"===r){const{captionsTracks:e}=this;Object.keys(e).forEach((i=>wa(e[i],t,n)))}if(this.config.renderTextTracksNatively&&0===t&&void 0!==i){const{textTracks:e}=this;Object.keys(e).forEach((n=>wa(e[n],t,i)))}}}extractCea608Data(e){const t=[[],[]],n=31&e[0];let i=2;for(let r=0;r<n;r++){const n=e[i++],r=127&e[i++],s=127&e[i++];if(0===r&&0===s)continue;if(0!=(4&n)){const e=3&n;0!==e&&1!==e||(t[e].push(r),t[e].push(s))}}return t}},audioStreamController:class extends Ri{constructor(e,t,n){super(e,t,n,"audio-stream-controller",p),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(l.LEVEL_LOADED,this.onLevelLoaded,this),e.on(l.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(l.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(l.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(l.BUFFER_RESET,this.onBufferReset,this),e.on(l.BUFFER_CREATED,this.onBufferCreated,this),e.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(l.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(l.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(l.FRAG_LOADING,this.onFragLoading,this),e.on(l.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(l.LEVEL_LOADED,this.onLevelLoaded,this),e.off(l.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(l.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(l.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(l.BUFFER_RESET,this.onBufferReset,this),e.off(l.BUFFER_CREATED,this.onBufferCreated,this),e.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(l.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(l.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(l.FRAG_LOADING,this.onFragLoading,this),e.off(l.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:n,initPTS:i,timescale:r,trackId:s}){if(n===f){const e=t.cc,n=this.fragCurrent;if(this.initPTS[e]={baseTime:i,timescale:r,trackId:s},this.log(`InitPTS for cc: ${e} found from main: ${i/r} (${i}/${r}) trackId: ${s}`),this.mainAnchor=t,this.state===Di){const n=this.waitingData;(!n&&!this.loadingParts||n&&n.frag.cc!==e)&&this.syncWithAnchor(t,null==n?void 0:n.frag)}else!this.hls.hasEnoughToStart&&n&&n.cc!==e?(n.abortRequests(),this.syncWithAnchor(t,n)):this.state===bi&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var n;const i=(null==(n=this.mainFragLoading)?void 0:n.frag)||null;if(t&&(null==i?void 0:i.cc)===t.cc)return;const r=(i||e).cc,s=gt(this.getLevelDetails(),r,this.getLoadPosition());s&&(this.log(`Syncing with main frag at ${s.start} cc ${s.cc}`),this.startFragRequested=!1,this.nextLoadPosition=s.start,this.resetLoadingState(),this.state===bi&&this.doTickIdle())}startLoad(e,t){if(!this.levels)return this.startPosition=e,void(this.state=_i);const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),n>0&&-1===e?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=bi):this.state=ki,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case bi:this.doTickIdle();break;case ki:{const{levels:e,trackId:t}=this,n=null==e?void 0:e[t],i=null==n?void 0:n.details;if(i&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(i))break;this.state=Di}break}case xi:this.checkRetryDate();break;case Di:{const e=this.waitingData;if(e){const{frag:t,part:n,cache:i,complete:r}=e,s=this.mainAnchor;if(void 0!==this.initPTS[t.cc]){this.waitingData=null,this.state=wi;const e={frag:t,part:n,payload:i.flush().buffer,networkDetails:null};this._handleFragmentLoadProgress(e),r&&super._handleFragmentLoadComplete(e)}else s&&s.cc!==e.frag.cc&&this.syncWithAnchor(s,e.frag)}else this.state=bi}}this.onTickEnd()}resetLoadingState(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:e}=this;null!=e&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:n,media:i,trackId:r}=this,s=t.config;if(!this.buffering||!i&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||null==n||!n[r])return;const a=n[r],o=a.details;if(!o||this.waitForLive(a)||this.waitForCdnTuneIn(o))return this.state=ki,void(this.startFragRequested=!1);const u=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&u&&(this.bufferFlushed=!1,this.afterBufferFlushed(u,G,p));const c=this.getFwdBufferInfo(u,p);if(null===c)return;if(!this.switchingTrack&&this._streamEnded(c,o))return t.trigger(l.BUFFER_EOS,{type:"audio"}),void(this.state=Ai);const d=c.len,h=t.maxBufferLength,g=o.fragments,m=g[0].start,v=this.getLoadPosition(),y=this.flushing?v:c.end;if(this.switchingTrack&&i){const e=v;o.PTSKnown&&e<m&&(c.end>m||c.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),i.currentTime=m+.05)}if(d>=h&&!this.switchingTrack&&y<g[g.length-1].start)return;let _=this.getNextFragment(y,o);if(_&&this.isLoopLoading(_,y)&&(_=this.getNextFragmentLoopLoading(_,o,c,f,h)),!_)return void(this.bufferFlushed=!0);let b=(null==(e=this.mainFragLoading)?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&b&&Y(_)&&!_.endList&&(!o.live||!this.loadingParts&&y<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(b)===Ot&&(this.mainFragLoading=b=null),b&&Y(b))){if(_.start>b.end){const e=this.fragmentTracker.getFragAtPos(y,f);e&&e.end>b.end&&(b=e,this.mainFragLoading={frag:e,targetBufferTime:null})}if(_.start>b.end)return}this.loadFragment(_,a,y)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map((e=>new $e(e)))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==_i&&(this.setInterval(100),this.state=bi,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(l.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n;const{levels:i}=this,{details:r,id:s,groupId:a,track:o}=t;if(!i)return void this.warn(`Audio tracks reset while loading track ${s} "${o.name}" of "${a}"`);const u=this.mainDetails;if(!u||r.endCC>u.endCC||u.expired)return this.cachedTrackLoadedData=t,void(this.state!==_i&&(this.state=ki));this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${o.name}" of "${a}" loaded [${r.startSN},${r.endSN}]${r.lastPartSn?`[part-${r.lastPartSn}-${r.lastPartIndex}]`:""},duration:${r.totalduration}`);const c=i[s];let d=0;if(r.live||null!=(n=c.details)&&n.live){if(this.checkLiveUpdate(r),r.deltaUpdateFailed)return;var h;if(c.details)d=this.alignPlaylists(r,c.details,null==(h=this.levelLastLoaded)?void 0:h.details);r.alignedSliding||(pi(r,u),r.alignedSliding||gi(r,u),d=r.fragmentStart)}c.details=r,this.levelLastLoaded=c,this.startFragRequested||this.setStartPosition(u,d),this.hls.trigger(l.AUDIO_TRACK_UPDATED,{details:r,id:s,groupId:t.groupId}),this.state!==ki||this.waitForCdnTuneIn(r)||(this.state=bi),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:i,payload:r}=e,{config:s,trackId:a,levels:o}=this;if(!o)return void this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);const l=o[a];if(!l)return void this.warn("Audio track is undefined on fragment load progress");const u=l.details;if(!u)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(n.start);const c=s.defaultAudioCodec||l.audioCodec||"mp4a.40.2";let d=this.transmuxer;d||(d=this.transmuxer=new os(this.hls,p,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const h=this.initPTS[n.cc],f=null==(t=n.initSegment)?void 0:t.data;if(void 0!==h){const e=!1,t=i?i.index:-1,s=-1!==t,a=new $t(n.level,n.sn,n.stats.chunkCount,r.byteLength,t,s);d.push(r,f,c,"",n,i,u.totalduration,e,a,h)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${u.startSN} ,${u.endSN}],track ${a}`);const{cache:e}=this.waitingData=this.waitingData||{frag:n,part:i,cache:new Ni,complete:!1};e.push(new Uint8Array(r)),this.state!==_i&&(this.state=Di)}}_handleFragmentLoadComplete(e){this.waitingData?this.waitingData.complete=!0: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===f&&Y(t.frag)&&(this.mainFragLoading=t,this.state===bi&&this.tick())}onFragBuffered(e,t){const{frag:n,part:i}=t;if(n.type===p)if(this.fragContextChanged(n))this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);else{if(Y(n)){this.fragPrevious=n;const e=this.switchingTrack;e&&(this.bufferedTrack=e,this.switchingTrack=null,this.hls.trigger(l.AUDIO_TRACK_SWITCHED,E({},e)))}this.fragBufferedComplete(n,i),this.media&&this.tick()}else this.audioOnly||n.type!==f||n.elementaryStreams.video||n.elementaryStreams.audiovideo||(this.audioOnly=!0,this.mainFragLoading=null)}onError(e,t){var n;if(t.fatal)this.state=Ti;else switch(t.details){case o.FRAG_GAP:case o.FRAG_PARSING_ERROR:case o.FRAG_DECRYPT_ERROR:case o.FRAG_LOAD_ERROR:case o.FRAG_LOAD_TIMEOUT:case o.KEY_LOAD_ERROR:case o.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(p,t);break;case o.AUDIO_TRACK_LOAD_ERROR:case o.AUDIO_TRACK_LOAD_TIMEOUT:case o.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==ki||(null==(n=t.context)?void 0:n.type)!==d||(this.state=bi);break;case o.BUFFER_ADD_CODEC_ERROR:case o.BUFFER_APPEND_ERROR:if("audio"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)||this.resetLoadingState();break;case o.BUFFER_FULL_ERROR:if("audio"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case o.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onBufferFlushing(e,{type:t}){t!==H&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==H){this.flushing=!1,this.bufferFlushed=!0,this.state===Ai&&(this.state=bi);const e=this.mediaBuffer||this.media;e&&(this.afterBufferFlushed(e,t,p),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:i}=this,{remuxResult:r,chunkMeta:s}=e,a=this.getCurrentContext(s);if(!a)return void this.resetWhenMissingContext(s);const{frag:o,part:u,level:c}=a,{details:d}=c,{audio:h,text:f,id3:p,initSegment:g}=r;if(!this.fragContextChanged(o)&&d){if(this.state=Si,this.switchingTrack&&h&&this.completeAudioSwitch(this.switchingTrack),null!=g&&g.tracks){const e=o.initSegment||o;if(this.unhandledEncryptionError(g,o))return;this._bufferInitSegment(c,g.tracks,e,s),i.trigger(l.FRAG_PARSING_INIT_SEGMENT,{frag:e,id:n,tracks:g.tracks})}if(h){const{startPTS:e,endPTS:t,startDTS:n,endDTS:i}=h;u&&(u.elementaryStreams[G]={startPTS:e,endPTS:t,startDTS:n,endDTS:i}),o.setElementaryStreamInfo(G,e,t,n,i),this.bufferFragmentData(h,o,u,s)}if(null!=p&&null!=(t=p.samples)&&t.length){const e=_({id:n,frag:o,details:d},p);i.trigger(l.FRAG_PARSING_METADATA,e)}if(f){const e=_({id:n,frag:o,details:d},f);i.trigger(l.FRAG_PARSING_USERDATA,e)}}else this.fragmentTracker.removeFragment(o)}_bufferInitSegment(e,t,n,i){if(this.state!==Si)return;if(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio)return;const r=t.audio;r.id=p;const s=e.audioCodec;this.log(`Init audio buffer, container:${r.container}, codecs[level/parsed]=[${s}/${r.codec}]`),s&&1===s.split(",").length&&(r.levelCodec=s),this.hls.trigger(l.BUFFER_CODECS,t);const a=r.initSegment;if(null!=a&&a.byteLength){const e={type:"audio",frag:n,part:null,chunkMeta:i,parent:n.type,data:a};this.hls.trigger(l.BUFFER_APPENDING,e)}this.tickImmediate()}loadFragment(e,t,n){const i=this.fragmentTracker.getState(e);var r;if(this.switchingTrack||i===Nt||i===Pt)if(Y(e))if(null!=(r=t.details)&&r.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=Di;const n=this.mainDetails;n&&n.fragmentStart!==t.details.fragmentStart&&gi(t.details,n)}else super.loadFragment(e,t,n);else this._loadInitSegment(e,t);else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:i,characteristics:r,audioCodec:s,channels:a}=this.bufferedTrack;ot({name:t,lang:n,assocLang:i,characteristics:r,audioCodec:s,channels:a},e,lt)||(ct(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(l.AUDIO_TRACK_SWITCHED,E({},e))}},audioTrackController:class extends ls{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(l.MANIFEST_LOADING,this.onManifestLoading,this),e.on(l.MANIFEST_PARSED,this.onManifestParsed,this),e.on(l.LEVEL_LOADING,this.onLevelLoading,this),e.on(l.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(l.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(l.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(l.MANIFEST_LOADING,this.onManifestLoading,this),e.off(l.MANIFEST_PARSED,this.onManifestParsed,this),e.off(l.LEVEL_LOADING,this.onLevelLoading,this),e.off(l.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(l.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(l.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:i,details:r}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==i)return void this.warn(`Audio track with id:${n} and group:${i} not found in active group ${null==s?void 0:s.groupId}`);const a=s.details;s.details=t.details,this.log(`Audio track ${n} "${s.name}" lang:${s.lang} group:${i} loaded [${r.startSN}-${r.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,a)}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,i=this.groupIds;let r=this.currentTrack;if(!n||(null==i?void 0:i.length)!==(null==n?void 0:n.length)||null!=n&&n.some((e=>-1===(null==i?void 0:i.indexOf(e))))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const e=this.tracks.filter((e=>!n||-1!==n.indexOf(e.groupId)));if(e.length)this.selectDefaultTrack&&!e.some((e=>e.default))&&(this.selectDefaultTrack=!1),e.forEach(((e,t)=>{e.id=t}));else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=e;const t=this.hls.config.audioPreference;if(!r&&t){const n=at(t,e,lt);if(n>-1)r=e[n];else{const e=at(t,this.tracks);r=this.tracks[e]}}let i=this.findTrackId(r);-1===i&&r&&(i=this.findTrackId(null));const u={audioTracks:e};this.log(`Updating audio tracks, ${e.length} track(s) found in group(s): ${null==n?void 0:n.join(",")}`),this.hls.trigger(l.AUDIO_TRACKS_UPDATED,u);const c=this.trackId;if(-1!==i&&-1===c)this.setAudioTrack(i);else if(e.length&&-1===c){var s;const t=new Error(`No audio track selected for current audio group-ID(s): ${null==(s=this.groupIds)?void 0:s.join(",")} track count: ${e.length}`);this.warn(t.message),this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:t})}}}onError(e,t){!t.fatal&&t.context&&(t.context.type!==d||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||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 i=this.currentTrack;if(i&&ot(e,i,lt))return i;const r=at(e,this.tracksInGroup,lt);if(r>-1){const e=this.tracksInGroup[r];return this.setAudioTrack(r),e}if(i){let i=t.loadLevel;-1===i&&(i=t.firstAutoLevel);const r=function(e,t,n,i,r){const s=t[i],a=t.reduce(((e,t,n)=>{const i=t.uri;return(e[i]||(e[i]=[])).push(n),e}),{})[s.uri];a.length>1&&(i=Math.max.apply(Math,a));const o=s.videoRange,l=s.frameRate,u=s.codecSet.substring(0,4),c=ut(t,i,(t=>{if(t.videoRange!==o||t.frameRate!==l||t.codecSet.substring(0,4)!==u)return!1;const i=t.audioGroups,s=n.filter((e=>!i||-1!==i.indexOf(e.groupId)));return at(e,s,r)>-1}));return c>-1?c:ut(t,i,(t=>{const i=t.audioGroups,s=n.filter((e=>!i||-1!==i.indexOf(e.groupId)));return at(e,s,r)>-1}))}(e,t.levels,n,i,lt);if(-1===r)return null;t.nextLoadLevel=r}if(e.channels||e.audioCodec){const t=at(e,n);if(t>-1)return n[t]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length)return void this.warn(`Invalid audio track id: ${e}`);this.selectDefaultTrack=!1;const n=this.currentTrack,i=t[e],r=i.details&&!i.details.live;if(e===this.trackId&&i===n&&r)return;if(this.log(`Switching to audio-track ${e} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=e,this.currentTrack=i,this.hls.trigger(l.AUDIO_TRACK_SWITCHING,E({},i)),r)return;const s=this.switchParams(i.url,null==n?void 0:n.details,i.details);this.loadPlaylist(s)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const i=t[n];if((!this.selectDefaultTrack||i.default)&&(!e||ot(e,i,lt)))return n}if(e){const{name:n,lang:i,assocLang:r,characteristics:s,audioCodec:a,channels:o}=e;for(let e=0;e<t.length;e++){if(ot({name:n,lang:i,assocLang:r,characteristics:s,audioCodec:a,channels:o},t[e],lt))return e}for(let n=0;n<t.length;n++){const i=t[n];if(cs(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){const i=t[n];if(cs(e.attrs,i.attrs,["LANGUAGE"]))return n}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&ct(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,i=e.groupId,r=this.getUrlWithDirectives(e.url,t),s=e.details,a=null==s?void 0:s.age;this.log(`Loading audio-track ${n} "${e.name}" lang:${e.lang} group:${i}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""}${a&&s.live?" age "+a.toFixed(1)+(s.type?" "+s.type||0:""):""} ${r}`),this.hls.trigger(l.AUDIO_TRACK_LOADING,{url:r,id:n,groupId:i,deliveryDirectives:t||null,track:e})}},emeController:pa,cmcdController:class{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=e=>{try{this.apply(e,{ot:_s.MANIFEST,su:!this.initialized})}catch(e){this.hls.logger.warn("Could not generate manifest CMCD data.",e)}},this.applyFragmentData=e=>{try{const{frag:t,part:n}=e,i=this.hls.levels[t.level],r=this.getObjectType(t),s={d:1e3*(n||t).duration,ot:r};r!==_s.VIDEO&&r!==_s.AUDIO&&r!=_s.MUXED||(s.br=i.bitrate/1e3,s.tb=this.getTopBandwidth(r)/1e3,s.bl=this.getBufferLength(r));const a=n?this.getNextPart(n):this.getNextFrag(t);null!=a&&a.url&&a.url!==t.url&&(s.nor=a.url),this.apply(e,s)}catch(e){this.hls.logger.warn("Could not generate segment CMCD data.",e)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;null!=n&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=!0===n.useHeaders,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(l.MEDIA_DETACHED,this.onMediaDetached,this),e.on(l.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(l.MEDIA_DETACHED,this.onMediaDetached,this),e.off(l.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,i;this.audioBuffer=null==(n=t.tracks.audio)?void 0:n.buffer,this.videoBuffer=null==(i=t.tracks.video)?void 0:i.buffer}createData(){var e;return{v:1,sf:bs.HLS,sid:this.sid,cid:this.cid,pr:null==(e=this.media)?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){_(t,this.createData());const n=t.ot===_s.INIT||t.ot===_s.VIDEO||t.ot===_s.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),null==t.su&&(t.su=this.buffering);const{includeKeys:i}=this;i&&(t=Object.keys(t).reduce(((e,n)=>(i.includes(n)&&(e[n]=t[n]),e)),{}));const r={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),la(e.headers,t,r)):e.url=da(e.url,t,r)}getNextFrag(e){var t;const n=null==(t=this.hls.levels[e.level])?void 0:t.details;if(n){const t=e.sn-n.startSN;return n.fragments[t+1]}}getNextPart(e){var t;const{index:n,fragment:i}=e,r=null==(t=this.hls.levels[i.level])||null==(t=t.details)?void 0:t.partList;if(r){const{sn:e}=i;for(let t=r.length-1;t>=0;t--){const i=r[t];if(i.index===n&&i.fragment.sn===e)return r[t+1]}}}getObjectType(e){const{type:t}=e;return"subtitle"===t?_s.TIMED_TEXT:"initSegment"===e.sn?_s.INIT:"audio"===t?_s.AUDIO:"main"===t?this.hls.audioTracks.length?_s.VIDEO:_s.MUXED:void 0}getTopBandwidth(e){let t,n=0;const i=this.hls;if(e===_s.AUDIO)t=i.audioTracks;else{const e=i.maxAutoLevel,n=e>-1?e+1:i.levels.length;t=i.levels.slice(0,n)}return t.forEach((e=>{e.bitrate>n&&(n=e.bitrate)})),n>0?n:NaN}getBufferLength(e){const t=this.media,n=e===_s.AUDIO?this.audioBuffer:this.videoBuffer;if(!n||!t)return NaN;return 1e3*tn.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new n(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,n,i){t(e),this.loader.load(e,n,i)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new n(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,n,i){t(e),this.loader.load(e,n,i)}}}},contentSteeringController:class extends w{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(l.MANIFEST_LOADING,this.onManifestLoading,this),e.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(l.MANIFEST_PARSED,this.onManifestParsed,this),e.on(l.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(l.MANIFEST_LOADING,this.onManifestLoading,this),e.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(l.MANIFEST_PARSED,this.onManifestParsed,this),e.off(l.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce(((e,t)=>(-1===e.indexOf(t.pathwayId)&&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=1e3*this.timeToLoad-(performance.now()-this.updated);if(e>0)return void this.scheduleRefresh(this.uri,e)}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){-1!==this.reloadTimer&&(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((t=>t!==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;null!==n&&(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((null==n?void 0:n.action)===St&&n.flags===Dt){const e=this.levels;let i=this._pathwayPriority,r=this.pathwayId;if(t.context){const{groupId:n,pathwayId:i,type:s}=t.context;n&&e?r=this.getPathwayForGroupId(n,s,r):i&&(r=i)}r in this.penalizedPathways||(this.penalizedPathways[r]=performance.now()),!i&&e&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==r),t.details!==o.BUFFER_APPEND_ERROR||t.fatal?n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${r} levels: ${e?e.length:e} priorities: ${nt(i)} penalized: ${nt(this.penalizedPathways)}`):n.resolved=!0}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(0===t.length){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 null===this.levels?[]:this.levels.filter((t=>e===t.pathwayId))}updatePathwayPriority(e){let t;this._pathwayPriority=e;const n=this.penalizedPathways,i=performance.now();Object.keys(n).forEach((e=>{i-n[e]>3e5&&delete n[e]}));for(let i=0;i<e.length;i++){const r=e[i];if(r in n)continue;if(r===this.pathwayId)return;const s=this.hls.nextLoadLevel,a=this.hls.levels[s];if(t=this.getLevelsForPathway(r),t.length>0){this.log(`Setting Pathway to "${r}"`),this.pathwayId=r,li(t),this.hls.trigger(l.LEVELS_UPDATED,{levels:t});const e=this.hls.levels[s];a&&e&&this.levels&&(e.attrs["STABLE-VARIANT-ID"]!==a.attrs["STABLE-VARIANT-ID"]&&e.bitrate!==a.bitrate&&this.log(`Unstable Pathways change from bitrate ${a.bitrate} to ${e.bitrate}`),this.hls.nextLoadLevel=s);break}}}getPathwayForGroupId(e,t,n){const i=this.getLevelsForPathway(n).concat(this.levels||[]);for(let n=0;n<i.length;n++)if(t===d&&i[n].hasAudioGroup(e)||t===h&&i[n].hasSubtitleGroup(e))return i[n].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},i={};e.forEach((e=>{const{ID:r,"BASE-ID":s,"URI-REPLACEMENT":a}=e;if(t.some((e=>e.pathwayId===r)))return;const o=this.getLevelsForPathway(s).map((e=>{const t=new cn(e.attrs);t["PATHWAY-ID"]=r;const s=t.AUDIO&&`${t.AUDIO}_clone_${r}`,o=t.SUBTITLES&&`${t.SUBTITLES}_clone_${r}`;s&&(n[t.AUDIO]=s,t.AUDIO=s),o&&(i[t.SUBTITLES]=o,t.SUBTITLES=o);const l=fa(e.uri,t["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",a),u=new $e({attrs:t,audioCodec:e.audioCodec,bitrate:e.bitrate,height:e.height,name:e.name,url:l,videoCodec:e.videoCodec,width:e.width});if(e.audioGroups)for(let t=1;t<e.audioGroups.length;t++)u.addGroupId("audio",`${e.audioGroups[t]}_clone_${r}`);if(e.subtitleGroups)for(let t=1;t<e.subtitleGroups.length;t++)u.addGroupId("text",`${e.subtitleGroups[t]}_clone_${r}`);return u}));t.push(...o),ha(this.audioTracks,n,a,r),ha(this.subtitleTracks,i,a,r)}))}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;let i;this.loader&&this.loader.destroy(),this.loader=new n(t);try{i=new self.URL(e)}catch(t){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest URI: ${e}`)}if("data:"!==i.protocol){const e=0|(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate);i.searchParams.set("_HLS_pathway",this.pathwayId),i.searchParams.set("_HLS_throughput",""+e)}const r={responseType:"json",url:i.href},s=t.steeringManifestLoadPolicy.default,a=s.errorRetry||s.timeoutRetry||{},o={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},u={onSuccess:(e,t,n,r)=>{this.log(`Loaded steering manifest: "${i}"`);const s=e.data;if(1!==(null==s?void 0:s.VERSION))return void this.log(`Steering VERSION ${s.VERSION} not supported!`);this.updated=performance.now(),this.timeToLoad=s.TTL;const{"RELOAD-URI":a,"PATHWAY-CLONES":o,"PATHWAY-PRIORITY":u}=s;if(a)try{this.uri=new self.URL(a,i).href}catch(e){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest RELOAD-URI: ${a}`)}this.scheduleRefresh(this.uri||n.url),o&&this.clonePathways(o);const c={steeringManifest:s,url:i.toString()};this.hls.trigger(l.STEERING_MANIFEST_LOADED,c),u&&this.updatePathwayPriority(u)},onError:(e,t,n,i)=>{if(this.log(`Error loading steering manifest: ${e.code} ${e.text} (${t.url})`),this.stopLoad(),410===e.code)return this.enabled=!1,void this.log(`Steering manifest ${t.url} no longer available`);let r=1e3*this.timeToLoad;if(429!==e.code)this.scheduleRefresh(this.uri||t.url,r);else{const e=this.loader;if("function"==typeof(null==e?void 0:e.getResponseHeader)){const t=e.getResponseHeader("Retry-After");t&&(r=1e3*parseFloat(t))}this.log(`Steering manifest ${t.url} rate limited`)}},onTimeout:(e,t,n)=>{this.log(`Timeout loading steering manifest (${t.url})`),this.scheduleRefresh(this.uri||t.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(r,o,u)}scheduleRefresh(e,t=1e3*this.timeToLoad){this.clearTimeout(),this.reloadTimer=self.setTimeout((()=>{var t;const n=null==(t=this.hls)?void 0:t.media;!n||n.ended?this.scheduleRefresh(e,1e3*this.timeToLoad):this.loadSteeringManifest(e)}),t)}},interstitialsController:class extends w{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 e=this.currentTime;if(void 0===e||this.playbackDisabled||!this.schedule)return;const t=e-this.timelinePos;if(Math.abs(t)<1/7056e5)return;const n=t<=-.01;this.timelinePos=e,this.bufferedPos=e;const i=this.playingItem;if(!i)return void this.checkBuffer();if(n){this.schedule.resetErrorsInRange(e,e-t)&&this.updateSchedule(!0)}if(this.checkBuffer(),n&&e<i.start||e>=i.end){var r;const t=this.findItemIndex(i);let s=this.schedule.findItemIndexAtTime(e);if(-1===s&&(s=t+(n?-1:1),this.log(`seeked ${n?"back ":""}to position not covered by schedule ${e} (resolving from ${t} to ${s})`)),!this.isInterstitial(i)&&null!=(r=this.media)&&r.paused&&(this.shouldPlay=!1),!n&&s>t){const e=this.schedule.findJumpRestrictedIndex(t+1,s);if(e>t)return void this.setSchedulePosition(e)}return void this.setSchedulePosition(s)}const s=this.playingAsset;if(!s){if(this.playingLastItem&&this.isInterstitial(i)){const t=i.event.assetList[0];t&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(e,t))}return}const a=s.timelineStart,o=s.duration||0;var l;(n&&e<a||e>=a+o)&&(null!=(l=i.event)&&l.appendInPlace&&(this.clearInterstitial(i.event,i),this.flushFrontBuffer(e)),this.setScheduleToAssetAtTime(e,s))},this.onTimeupdate=()=>{const e=this.currentTime;if(void 0===e||this.playbackDisabled)return;if(!(e>this.timelinePos))return;this.timelinePos=e,e>this.bufferedPos&&this.checkBuffer();const t=this.playingItem;if(!t||this.playingLastItem)return;if(e>=t.end){this.timelinePos=t.end;const e=this.findItemIndex(t);this.setSchedulePosition(e+1)}const n=this.playingAsset;if(!n)return;e>=n.timelineStart+(n.duration||0)&&this.setScheduleToAssetAtTime(e,n)},this.onScheduleUpdate=(e,t)=>{const n=this.schedule;if(!n)return;const i=this.playingItem,r=n.events||[],s=n.items||[],a=n.durations,o=e.map((e=>e.identifier)),u=!(!r.length&&!o.length);(u||t)&&this.log(`INTERSTITIALS_UPDATED (${r.length}): ${r}\nSchedule: ${s.map((e=>Pa(e)))} pos: ${this.timelinePos}`),o.length&&this.log(`Removed events ${o}`);let c=null,d=null;i&&(c=this.updateItem(i,this.timelinePos),this.itemsMatch(i,c)?this.playingItem=c:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const h=this.bufferingItem;if(h&&(d=this.updateItem(h,this.bufferedPos),this.itemsMatch(h,d)?this.bufferingItem=d:h.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(h.event,null))),e.forEach((e=>{e.assetList.forEach((e=>{this.clearAssetPlayer(e.identifier,null)}))})),this.playerQueue.forEach((e=>{if(e.interstitial.appendInPlace){const t=e.assetItem.timelineStart,n=e.timelineOffset-t;if(n)try{e.timelineOffset=t}catch(i){Math.abs(n)>Sa&&this.warn(`${i} ("${e.assetId}" ${e.timelineOffset}->${t})`)}}})),u||t){if(this.hls.trigger(l.INTERSTITIALS_UPDATED,{events:r.slice(0),schedule:s.slice(0),durations:a,removedIds:o}),this.isInterstitial(i)&&o.includes(i.event.identifier))return this.warn(`Interstitial "${i.event.identifier}" removed while playing`),void this.primaryFallback(i.event);i&&this.trimInPlace(c,i),h&&d!==c&&this.trimInPlace(d,h),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Oa(e),this.schedule=new Ma(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e&&(e.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(l.MANIFEST_LOADING,this.onManifestLoading,this),e.on(l.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(l.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(l.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(l.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(l.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(l.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(l.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(l.BUFFER_APPENDED,this.onBufferAppended,this),e.on(l.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(l.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(l.MEDIA_ENDED,this.onMediaEnded,this),e.on(l.ERROR,this.onError,this),e.on(l.DESTROYING,this.onDestroying,this))}unregisterListeners(){const e=this.hls;e&&(e.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(l.MANIFEST_LOADING,this.onManifestLoading,this),e.off(l.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(l.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(l.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(l.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(l.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(l.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(l.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(l.BUFFER_CODECS,this.onBufferCodecs,this),e.off(l.BUFFER_APPENDED,this.onBufferAppended,this),e.off(l.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(l.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(l.MEDIA_ENDED,this.onMediaEnded,this),e.off(l.ERROR,this.onError,this),e.off(l.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;null==(e=this.getBufferingPlayer())||e.resumeBuffering()}pauseBuffering(){var e;null==(e=this.getBufferingPlayer())||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){vi(e,"play",this.onPlay),vi(e,"pause",this.onPause),vi(e,"seeking",this.onSeeking),vi(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,i=this.detachedData;if(this.detachedData=null,null===n)this.checkStart();else if(!i){this.clearScheduleState();const e=this.findItemIndex(n);this.setSchedulePosition(e)}}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,i=this.media;if(this.media=null,!n&&(i&&this.removeMediaListeners(i),this.detachedData)){const e=this.getBufferingPlayer();e&&(this.log(`Removing schedule state for detachedData and ${e}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,e.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=t=>t?e.getAssetPlayer(t.identifier):t,i=(t,i,s,a,o)=>{if(t){let l=t[i].start;const u=t.event;if(u){if("playout"===i||u.timelineOccupancy!==Ca.Point){const e=n(s);(null==e?void 0:e.interstitial)===u&&(l+=e.assetItem.startOffset+e[o])}}else{l+=("bufferedPos"===a?r():e[a])-t.start}return l}return 0},r=()=>{const t=e.bufferedPos;return t===Number.MAX_VALUE?s("primary"):Math.max(t,0)},s=t=>{var n,i;return null!=(n=e.primaryDetails)&&n.live?e.primaryDetails.edge:(null==(i=e.schedule)?void 0:i.durations[t])||0},a=(t,r)=>{var s,a;const o=e.effectivePlayingItem;if(null!=o&&null!=(s=o.event)&&s.restrictions.skip||!e.schedule)return;e.log(`seek to ${t} "${r}"`);const l=e.effectivePlayingItem,u=e.schedule.findItemIndexAtTime(t,r),c=null==(a=e.schedule.items)?void 0:a[u],d=e.getBufferingPlayer(),h=null==d?void 0:d.interstitial,f=null==h?void 0:h.appendInPlace,p=l&&e.itemsMatch(l,c);if(l&&(f||p)){const s=n(e.playingAsset),a=(null==s?void 0:s.media)||e.primaryMedia;if(a){const n="primary"===r?a.currentTime:i(l,r,e.playingAsset,"timelinePos","currentTime"),o=t-n,u=(f?n:a.currentTime)+o;if(u>=0&&(!s||f||u<=s.duration))return void(a.currentTime=u)}}if(c){let n=t;if("primary"!==r){const e=t-c[r].start;n=c.start+e}const i=!e.isInterstitial(c);if(e.isInterstitial(l)&&!l.event.appendInPlace||!i&&!c.event.appendInPlace){if(l){const s=e.findItemIndex(l);if(u>s){const t=e.schedule.findJumpRestrictedIndex(s+1,u);if(t>s)return void e.setSchedulePosition(t)}let a=0;if(i)e.timelinePos=n,e.checkBuffer();else{const e=c.event.assetList,n=t-(c[r]||c).start;for(let t=e.length;t--;){const i=e[t];if(i.duration&&n>=i.startOffset&&n<i.startOffset+i.duration){a=t;break}}}e.setSchedulePosition(u,a)}}else{const t=e.media||(f?null==d?void 0:d.media:null);t&&(t.currentTime=n)}}},o=()=>{const n=e.effectivePlayingItem;if(e.isInterstitial(n))return n;const i=t();return e.isInterstitial(i)?i:null},l={get bufferedEnd(){const n=t(),r=e.bufferingItem;var s;return r&&r===n&&(i(r,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-r.playout.start||(null==(s=e.bufferingAsset)?void 0:s.startOffset))||0},get currentTime(){const t=o(),n=e.effectivePlayingItem;return n&&n===t?i(n,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-n.playout.start:0},set currentTime(t){const n=o(),i=e.effectivePlayingItem;i&&i===n&&a(t+i.playout.start,"playout")},get duration(){const e=o();return e?e.playout.end-e.playout.start:0},get assetPlayers(){var t;const n=null==(t=o())?void 0:t.event.assetList;return n?n.map((t=>e.getAssetPlayer(t.identifier))):[]},get playingIndex(){var t;const n=null==(t=o())?void 0:t.event;return n&&e.effectivePlayingAsset?n.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return o()}};return this.manager={get events(){var t;return(null==(t=e.schedule)||null==(t=t.events)?void 0:t.slice(0))||[]},get schedule(){var t;return(null==(t=e.schedule)||null==(t=t.items)?void 0:t.slice(0))||[]},get interstitialPlayer(){return o()?l:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const n=t();return e.findItemIndex(n)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const t=e.effectivePlayingItem;return e.findItemIndex(t)},primary:{get bufferedEnd(){return r()},get currentTime(){const t=e.timelinePos;return t>0?t:0},set currentTime(e){a(e,"primary")},get duration(){return s("primary")},get seekableStart(){var t;return(null==(t=e.primaryDetails)?void 0:t.fragmentStart)||0}},integrated:{get bufferedEnd(){return i(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return i(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(e){a(e,"integrated")},get duration(){return s("integrated")},get seekableStart(){var t;return((t,n)=>{var i;if(0!==t&&"primary"!==n&&null!=(i=e.schedule)&&i.length){var r;const i=e.schedule.findItemIndexAtTime(t),s=null==(r=e.schedule.items)?void 0:r[i];if(s)return t+(s[n].start-s.start)}return t})((null==(t=e.primaryDetails)?void 0:t.fragmentStart)||0,"integrated")}},skip:()=>{const t=e.effectivePlayingItem,n=null==t?void 0:t.event;if(n&&!n.restrictions.skip){const i=e.findItemIndex(t);if(n.appendInPlace){const e=t.playout.start+t.event.duration;a(e+.001,"playout")}else e.advanceAfterAssetEnded(n,i,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=null==(e=this.schedule)?void 0:e.items;return!!(this.playbackStarted&&t&&n)&&this.findItemIndex(t)===n.length-1}get playbackStarted(){return null!==this.effectivePlayingItem}get currentTime(){var e,t;if(null===this.mediaSelection)return;const n=this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&!n.event.appendInPlace)return;let r=this.media;!r&&null!=(e=this.bufferingItem)&&null!=(e=e.event)&&e.appendInPlace&&(r=this.primaryMedia);const s=null==(t=r)?void 0:t.currentTime;return void 0!==s&&i(s)?s:void 0}get primaryMedia(){var e;return this.media||(null==(e=this.detachedData)?void 0:e.media)||null}isInterstitial(e){return!(null==e||!e.event)}retreiveMediaSource(e,t){const n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){const n=e.interstitial.appendInPlace,i=e.media;if(n&&i===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&i)return void(this.detachedData={media:i});const n=e.transferMedia();this.log(`transfer MediaSource from ${e} ${nt(n)}`),this.detachedData=n}else t&&i&&(this.shouldPlay||(this.shouldPlay=!i.paused))}transferMediaTo(e,t){var n,i;if(e.media===t)return;let r=null;const s=this.hls,a=e!==s,o=a&&e.interstitial.appendInPlace,l=null==(n=this.detachedData)?void 0:n.mediaSource;let u;if(s.media)o&&(r=s.transferMedia(),this.detachedData=r),u="Primary";else if(l){const e=this.getBufferingPlayer();e?(r=e.transferMedia(),u=`${e}`):u="detached MediaSource"}else u="detached media";if(!r)if(l)r=this.detachedData,this.log(`using detachedData: MediaSource ${nt(r)}`);else if(!this.detachedData||s.media===t){const e=this.playerQueue;e.length>1&&e.forEach((e=>{if(a&&e.interstitial.appendInPlace!==o){const t=e.interstitial;this.clearInterstitial(e.interstitial,null),t.appendInPlace=!1,t.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${t}`)}})),this.hls.detachMedia(),this.detachedData={media:t}}const c=r&&"mediaSource"in r&&"closed"!==(null==(i=r.mediaSource)?void 0:i.readyState),d=c&&r?r:t;this.log(`${c?"transfering MediaSource":"attaching media"} to ${a?e:"Primary"} from ${u} (media.currentTime: ${t.currentTime})`);const h=this.schedule;if(d===r&&h){const t=a&&e.assetId===h.assetIdAtEnd;d.overrides={duration:h.duration,endOfStream:!a||t,cueRemoval:!a}}e.attachMedia(d)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=null==e?void 0:e.events;if(!t||this.playbackDisabled||!this.media)return;-1===this.bufferedPos&&(this.bufferedPos=0);const n=this.timelinePos,i=this.effectivePlayingItem;if(-1===n){const n=this.hls.startPosition;if(this.log(Ba("checkStart",n)),this.timelinePos=n,t.length&&t[0].cue.pre){const n=e.findEventIndex(t[0].identifier);this.setSchedulePosition(n)}else if(n>=0||!this.primaryLive){const t=this.timelinePos=n>0?n:0,i=e.findItemIndexAtTime(t);this.setSchedulePosition(i)}}else if(i&&!this.playingItem){const t=e.findItemIndex(i);this.setSchedulePosition(t)}}advanceAssetBuffering(e,t){const n=e.event,i=n.findAssetIndex(t),r=Ra(n,i);if(n.isAssetPastPlayoutLimit(r)){if(this.schedule){var s;const t=null==(s=this.schedule.items)?void 0:s[this.findItemIndex(e)+1];t&&this.bufferedToItem(t)}}else this.bufferedToEvent(e,r)}advanceAfterAssetEnded(e,t,n){const i=Ra(e,n);if(e.isAssetPastPlayoutLimit(i)){if(this.schedule){const n=this.schedule.items;if(n){const i=t+1;if(i>=n.length)return void this.setSchedulePosition(-1);const r=e.resumeTime;this.timelinePos<r&&(this.log(Ba("advanceAfterAssetEnded",r)),this.timelinePos=r,e.appendInPlace&&this.advanceInPlace(r),this.checkBuffer(this.bufferedPos<r)),this.setSchedulePosition(i)}}}else{if(e.appendInPlace){const t=e.assetList[i];t&&this.advanceInPlace(t.timelineStart)}this.setSchedulePosition(t,i)}}setScheduleToAssetAtTime(e,t){const n=this.schedule;if(!n)return;const i=t.parentIdentifier,r=n.getEvent(i);if(r){const t=n.findEventIndex(i),s=n.findAssetIndex(r,e);this.advanceAfterAssetEnded(r,t,s-1)}}setSchedulePosition(e,t){var n;const i=null==(n=this.schedule)?void 0:n.items;if(!i||this.playbackDisabled)return;const r=e>=0?i[e]:null;this.log(`setSchedulePosition ${e}, ${t} (${r?Pa(r):r}) pos: ${this.timelinePos}`);const s=this.waitingItem||this.playingItem,a=this.playingLastItem;if(this.isInterstitial(s)){const n=s.event,c=this.playingAsset,d=null==c?void 0:c.identifier,h=d?this.getAssetPlayer(d):null;if(h&&d&&(!this.eventItemsMatch(s,r)||void 0!==t&&d!==n.assetList[t].identifier)){var o;const t=n.findAssetIndex(c);if(this.log(`INTERSTITIAL_ASSET_ENDED ${t+1}/${n.assetList.length} ${Ia(c)}`),this.endedAsset=c,this.playingAsset=null,this.hls.trigger(l.INTERSTITIAL_ASSET_ENDED,{asset:c,assetListIndex:t,event:n,schedule:i.slice(0),scheduleIndex:e,player:h}),s!==this.playingItem)return void(this.itemsMatch(s,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(n,this.findItemIndex(this.playingItem),t));this.retreiveMediaSource(d,r),!h.media||null!=(o=this.detachedData)&&o.mediaSource||h.detachMedia()}if(!this.eventItemsMatch(s,r)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${n} ${Pa(s)}`),n.hasPlayed=!0,this.hls.trigger(l.INTERSTITIAL_ENDED,{event:n,schedule:i.slice(0),scheduleIndex:e}),n.cue.once)){var u;this.updateSchedule();const e=null==(u=this.schedule)?void 0:u.items;if(r&&e){const n=this.findItemIndex(r);this.advanceSchedule(n,e,t,s,a)}return}}this.advanceSchedule(e,i,t,s,a)}advanceSchedule(e,t,n,i,r){const s=this.schedule;if(!s)return;const a=t[e]||null,o=this.primaryMedia,u=this.playerQueue;if(u.length&&u.forEach((t=>{const n=t.interstitial,i=s.findEventIndex(n.identifier);(i<e||i>e+1)&&this.clearInterstitial(n,a)})),this.isInterstitial(a)){this.timelinePos=Math.min(Math.max(this.timelinePos,a.start),a.end);const r=a.event;if(void 0===n){const t=Ra(r,(n=s.findAssetIndex(r,this.timelinePos))-1);if(r.isAssetPastPlayoutLimit(t)||r.appendInPlace&&this.timelinePos===a.end)return void this.advanceAfterAssetEnded(r,e,n);n=t}const u=this.waitingItem;this.assetsBuffered(a,o)||this.setBufferingItem(a);let c=this.preloadAssets(r,n);if(this.eventItemsMatch(a,u||i)||(this.waitingItem=a,this.log(`INTERSTITIAL_STARTED ${Pa(a)} ${r.appendInPlace?"append in place":""}`),this.hls.trigger(l.INTERSTITIAL_STARTED,{event:r,schedule:t.slice(0),scheduleIndex:e})),!r.assetListLoaded)return void this.log(`Waiting for ASSET-LIST to complete loading ${r}`);if(r.assetListLoader&&(r.assetListLoader.destroy(),r.assetListLoader=void 0),!o)return void this.log(`Waiting for attachMedia to start Interstitial ${r}`);this.waitingItem=this.endedItem=null,this.playingItem=a;const d=r.assetList[n];if(!d)return void this.advanceAfterAssetEnded(r,e,n||0);if(c||(c=this.getAssetPlayer(d.identifier)),null===c||c.destroyed){const e=r.assetList.length;this.warn(`asset ${n+1}/${e} player destroyed ${r}`),c=this.createAssetPlayer(r,d,n),c.loadSource()}if(!this.eventItemsMatch(a,this.bufferingItem)&&r.appendInPlace&&this.isAssetBuffered(d))return;this.startAssetPlayer(c,n,t,e,o),this.shouldPlay&&Fa(c.media)}else a?(this.resumePrimary(a,e,i),this.shouldPlay&&Fa(this.hls.media)):r&&this.isInterstitial(i)&&(this.endedItem=null,this.playingItem=i,i.event.appendInPlace||this.attachPrimary(s.durations.primary,null))}get playbackDisabled(){return!1===this.hls.config.enableInterstitialPlayback}get primaryDetails(){var e;return null==(e=this.mediaSelection)?void 0:e.main.details}get primaryLive(){var e;return!(null==(e=this.primaryDetails)||!e.live)}resumePrimary(e,t,n){var i,r;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${Pa(e)}`),null==(i=this.detachedData)||!i.mediaSource){let n=this.timelinePos;(n<e.start||n>=e.end)&&(n=this.getPrimaryResumption(e,t),this.log(Ba("resumePrimary",n)),this.timelinePos=n),this.attachPrimary(n,e)}if(!n)return;const s=null==(r=this.schedule)?void 0:r.items;s&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${Pa(e)}`),this.hls.trigger(l.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const n=e.start;if(this.primaryLive){const e=this.primaryDetails;if(0===t)return this.hls.startPosition;if(e&&(n<e.fragmentStart||n>e.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);if(null!=t&&t.hls)return t.hls.bufferedToEnd;return tn.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const i=this.primaryMedia;if(!i)return;const r=this.hls;r.media?this.checkBuffer():(this.transferMediaTo(r,i),n&&this.startLoadingPrimaryAt(e,n)),n||(this.log(Ba("attachPrimary",e)),this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;const i=this.hls;!i.loadingEnabled||!i.media||Math.abs(((null==(n=i.mainForwardBufferInfo)?void 0:n.start)||i.media.currentTime)-e)>.5?i.startLoad(e,t):i.bufferingEnabled||i.resumeBuffering()}onManifestLoading(){var e;this.stopLoad(),null==(e=this.schedule)||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(l.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(l.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(-1===t.level||!this.schedule)return;const n=this.hls.levels[t.level];if(!n.details)return;const i=E(E({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=i,this.schedule.parseInterstitialDateRanges(i,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],i=this.mediaSelection;if(!i)return void(this.altSelection=E(E({},this.altSelection),{},{audio:n}));const r=E(E({},i),{},{audio:n});this.mediaSelection=r}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],i=this.mediaSelection;if(!i)return void(this.altSelection=E(E({},this.altSelection),{},{subtitles:n}));const r=E(E({},i),{},{subtitles:n});this.mediaSelection=r}onAudioTrackSwitching(e,t){const n=st(t);this.playerQueue.forEach((({hls:e})=>e&&(e.setAudioOption(t)||e.setAudioOption(n))))}onSubtitleTrackSwitch(e,t){const n=st(t);this.playerQueue.forEach((({hls:e})=>e&&(e.setSubtitleOption(t)||-1!==t.id&&e.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 e=this.timelinePos;this.bufferedPos=e,this.checkBuffer()}}onBufferedToEnd(e){if(!this.schedule)return;const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let e=0;e<t.length;e++){const i=t[e];if(i.cue.post){var n;const e=this.schedule.findEventIndex(i.identifier),t=null==(n=this.schedule.items)?void 0:n[e];this.isInterstitial(t)&&this.eventItemsMatch(t,this.bufferingItem)&&this.bufferedToItem(t,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const e=this.findItemIndex(t);this.setSchedulePosition(e+1)}else this.shouldPlay=!1}updateItem(e,t){var n;const i=null==(n=this.schedule)?void 0:n.items;if(e&&i){return i[this.findItemIndex(e,t)]||null}return null}trimInPlace(e,t){if(this.isInterstitial(e)&&e.event.appendInPlace&&t.end-e.end>.25){e.event.assetList.forEach(((t,n)=>{e.event.isAssetPastPlayoutLimit(n)&&this.clearAssetPlayer(t.identifier,null)}));const n=e.end+.25,i=tn.bufferInfo(this.primaryMedia,n,0);if(i.end>n||(i.nextStart||0)>n){this.log(`trim buffered interstitial ${Pa(e)} (was ${Pa(t)})`);const i=!0;this.attachPrimary(n,null,i),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===(null==(n=t.event)?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&&(null==(t=this.schedule)||t.updateSchedule(n,[],e))}checkBuffer(e){var t;const n=null==(t=this.schedule)?void 0:t.items;if(!n)return;const i=tn.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=i.len<1),this.updateBufferedPos(i.end,n,e)}updateBufferedPos(e,t,n){const i=this.schedule,r=this.bufferingItem;if(this.bufferedPos>e||!i)return;if(1===t.length&&this.itemsMatch(t[0],r))return void(this.bufferedPos=e);const s=this.playingItem,a=this.findItemIndex(s);let o=i.findItemIndexAtTime(e);if(this.bufferedPos<e){var l;const n=this.findItemIndex(r),i=Math.min(n+1,t.length-1),s=t[i];if((-1===o&&r&&e>=r.end||null!=(l=s.event)&&l.appendInPlace&&e+.01>=s.start)&&(o=i),this.isInterstitial(r)){const e=r.event;if(i-a>1&&!1===e.appendInPlace)return;if(0===e.assetList.length&&e.assetListLoader)return}if(this.bufferedPos=e,o>n&&o>a)this.bufferedToItem(s);else{const t=this.primaryDetails;this.primaryLive&&t&&e>t.edge-t.targetduration&&s.start<t.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(s)&&this.preloadAssets(s.event,0)}}else n&&s&&!this.itemsMatch(s,r)&&(o===a?this.bufferedToItem(s):o===a+1&&this.bufferedToItem(t[o]))}assetsBuffered(e,t){return 0!==e.event.assetList.length&&!e.event.assetList.some((e=>{const n=this.getAssetPlayer(e.identifier);return!(null!=n&&n.bufferedInPlaceToEnd(t))}))}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(!this.itemsMatch(e,t)&&n){const{items:i,events:r}=n;if(!i||!r)return t;const s=this.isInterstitial(e),a=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));const o=a?a.remaining:t?t.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${Pa(e)}`+(t?` (${o.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const t=n.findAssetIndex(e.event,this.bufferedPos);e.event.assetList.forEach(((e,n)=>{const i=this.getAssetPlayer(e.identifier);i&&(n===t&&i.loadSource(),i.resumeBuffering())}))}else this.hls.resumeBuffering(),this.playerQueue.forEach((e=>e.pauseBuffering()));this.hls.trigger(l.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:r.slice(0),schedule:i.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(null!==n){this.bufferingAsset=null;const t=this.detachedData;if(t)if(t.mediaSource){const t=!0;this.attachPrimary(e.start,e,t)}else this.preloadPrimary(e);else 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,i=0===n.assetList.length&&!n.assetListLoader,r=n.cue.once;if(i||!r){const e=this.preloadAssets(n,t);if(null!=e&&e.interstitial.appendInPlace){const t=this.primaryMedia;t&&this.bufferAssetPlayer(e,t)}}}preloadAssets(e,t){const n=e.assetUrl,i=e.assetList.length,r=0===i&&!e.assetListLoader,s=e.cue.once;if(r){const r=e.timelineStart;if(e.appendInPlace){var a;const t=this.playingItem;this.isInterstitial(t)||(null==t||null==(a=t.nextEvent)?void 0:a.identifier)!==e.identifier||this.flushFrontBuffer(r+.25)}let s,o=0;if(!this.playingItem&&this.primaryLive&&(o=this.hls.startPosition,-1===o&&(o=this.hls.liveSyncPosition||0)),o&&!e.cue.pre&&!e.cue.post){const e=o-r;e>0&&(s=Math.round(1e3*e)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:i} ${e}${s?` live-start: ${o} start-offset: ${s}`:""}`),n)return this.createAsset(e,0,0,r,e.duration,n);const l=this.assetListLoader.loadAssetList(e,s);l&&(e.assetListLoader=l)}else if(!s&&i){for(let n=t;n<i;n++){const t=e.assetList[n],i=this.getAssetPlayerQueueIndex(t.identifier);-1!==i&&!this.playerQueue[i].destroyed||t.error||this.createAssetPlayer(e,t,n)}const n=e.assetList[t];if(n){const e=this.getAssetPlayer(n.identifier);return e&&e.loadSource(),e}}return null}flushFrontBuffer(e){const t=this.requiredTracks;if(!t)return;this.log(`Removing front buffer starting at ${e}`);Object.keys(t).forEach((t=>{this.hls.trigger(l.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:t})}))}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,i,r,s){const a={parentIdentifier:e.identifier,identifier:Aa(e,s,t),duration:r,startOffset:n,timelineStart:i,uri:s};return this.createAssetPlayer(e,a,t)}createAssetPlayer(e,t,n){const i=this.hls,r=i.userConfig;let s=r.videoPreference;const u=i.loadLevelObj||i.levels[i.currentLevel];(s||u)&&(s=_({},s),u.videoCodec&&(s.videoCodec=u.videoCodec),u.videoRange&&(s.allowedVideoRanges=[u.videoRange]));const c=i.audioTracks[i.audioTrack],d=i.subtitleTracks[i.subtitleTrack];let h=0;if(this.primaryLive||e.appendInPlace){const e=this.timelinePos-t.timelineStart;if(e>1){const n=t.duration;n&&e<n&&(h=e)}}const f=t.identifier,p=E(E({},r),{},{maxMaxBufferLength:Math.min(180,i.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:i.sessionId,assetPlayerId:f,abrEwmaDefaultEstimate:i.bandwidthEstimate,interstitialsController:void 0,startPosition:h,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:c||r.audioPreference,subtitlePreference:d||r.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(p.timelineOffset=t.timelineStart));const g=p.cmcd;null!=g&&g.sessionId&&g.contentId&&(p.cmcd=_({},g,{contentId:ka(t.uri)})),this.getAssetPlayer(f)&&this.warn(`Duplicate date range identifier ${e} and asset ${f}`);const m=new Na(this.HlsPlayerClass,p,e,t);this.playerQueue.push(m),e.assetList[n]=t;let v=!0;const y=i=>{if(i.live){var r;const t=new Error(`Interstitials MUST be VOD assets ${e}`),i={fatal:!0,type:a.OTHER_ERROR,details:o.INTERSTITIAL_ASSET_ITEM_ERROR,error:t},s=(null==(r=this.schedule)?void 0:r.findEventIndex(e.identifier))||-1;return void this.handleAssetItemError(i,e,s,n,t.message)}const s=i.edge-i.fragmentStart,l=t.duration;(v||null===l||s>l)&&(v=!1,this.log(`Interstitial asset "${f}" duration change ${l} > ${s}`),t.duration=s,this.updateSchedule())};m.on(l.LEVEL_UPDATED,((e,{details:t})=>y(t))),m.on(l.LEVEL_PTS_UPDATED,((e,{details:t})=>y(t))),m.on(l.EVENT_CUE_ENTER,(()=>this.onInterstitialCueEnter()));const b=(e,t)=>{const n=this.getAssetPlayer(f);if(n&&t.tracks){n.off(l.BUFFER_CODECS,b),n.tracks=t.tracks;const e=this.primaryMedia;this.bufferingAsset===n.assetItem&&e&&!n.media&&this.bufferAssetPlayer(n,e)}};m.on(l.BUFFER_CODECS,b);m.on(l.BUFFERED_TO_END,(()=>{var n;const i=this.getAssetPlayer(f);if(this.log(`buffered to end of asset ${i}`),!i||!this.schedule)return;const r=this.schedule.findEventIndex(e.identifier),s=null==(n=this.schedule.items)?void 0:n[r];this.isInterstitial(s)&&this.advanceAssetBuffering(s,t)}));const w=t=>()=>{if(!this.getAssetPlayer(f)||!this.schedule)return;this.shouldPlay=!0;const n=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,n,t)};return m.once(l.MEDIA_ENDED,w(n)),m.once(l.PLAYOUT_LIMIT_REACHED,w(1/0)),m.on(l.ERROR,((t,i)=>{if(!this.schedule)return;const r=this.getAssetPlayer(f);if(i.details===o.BUFFER_STALLED_ERROR)return null!=r&&r.appendInPlace?void this.handleInPlaceStall(e):(this.onTimeupdate(),void this.checkBuffer(!0));this.handleAssetItemError(i,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${i.error} ${e}`)})),m.on(l.DESTROYING,(()=>{if(!this.getAssetPlayer(f)||!this.schedule)return;const t=new Error(`Asset player destroyed unexpectedly ${f}`),i={fatal:!0,type:a.OTHER_ERROR,details:o.INTERSTITIAL_ASSET_ITEM_ERROR,error:t};this.handleAssetItemError(i,e,this.schedule.findEventIndex(e.identifier),n,t.message)})),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${Ia(t)}`),this.hls.trigger(l.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:m}),m}clearInterstitial(e,t){e.assetList.forEach((e=>{this.clearAssetPlayer(e.identifier,t)})),e.reset()}resetAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);if(-1!==t){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(-1!==n){const e=this.playerQueue[n];this.log(`clear ${e} toSegment: ${t?Pa(t):t}`),this.transferMediaFromPlayer(e,t),this.playerQueue.splice(n,1),e.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,n,i,r){const{interstitial:s,assetItem:a,assetId:o}=e,u=s.assetList.length,c=this.playingAsset;this.endedAsset=null,this.playingAsset=a,c&&c.identifier===o||(c&&(this.clearAssetPlayer(c.identifier,n[i]),delete c.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${u} ${Ia(a)}`),this.hls.trigger(l.INTERSTITIAL_ASSET_STARTED,{asset:a,assetListIndex:t,event:s,schedule:n.slice(0),scheduleIndex:i,player:e})),this.bufferAssetPlayer(e,r)}bufferAssetPlayer(e,t){var n,i;if(!this.schedule)return;const{interstitial:r,assetItem:s}=e,l=this.schedule.findEventIndex(r.identifier),u=null==(n=this.schedule.items)?void 0:n[l];if(!u)return;e.loadSource(),this.setBufferingItem(u),this.bufferingAsset=s;const c=this.getBufferingPlayer();if(c===e)return;const d=r.appendInPlace;if(d&&!1===(null==c?void 0:c.interstitial.appendInPlace))return;const h=(null==c?void 0:c.tracks)||(null==(i=this.detachedData)?void 0:i.tracks)||this.requiredTracks;if(d&&s!==this.playingAsset){if(!e.tracks)return void this.log(`Waiting for track info before buffering ${e}`);if(h&&!L(h,e.tracks)){const t=new Error(`Asset ${Ia(s)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(h)}')`),n={fatal:!0,type:a.OTHER_ERROR,details:o.INTERSTITIAL_ASSET_ITEM_ERROR,error:t},i=r.findAssetIndex(s);return void this.handleAssetItemError(n,r,l,i,t.message)}}this.transferMediaTo(e,t)}handleInPlaceStall(e){const t=this.schedule,n=this.primaryMedia;if(!t||!n)return;const i=n.currentTime,r=t.findAssetIndex(e,i),s=e.assetList[r];if(s){const a=this.getAssetPlayer(s.identifier);if(a){const o=a.currentTime||i-s.timelineStart,l=a.duration-o;if(this.warn(`Stalled at ${o} of ${o+l} in ${a} ${e} (media.currentTime: ${i})`),o&&(l/n.playbackRate<.5||a.bufferedInPlaceToEnd(n))&&a.hls){const n=t.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,n,r)}}}}advanceInPlace(e){const t=this.primaryMedia;t&&t.currentTime<e&&(t.currentTime=e)}handleAssetItemError(e,t,n,i,r){if(e.details===o.BUFFER_STALLED_ERROR)return;const s=t.assetList[i]||null;if(this.warn(`INTERSTITIAL_ASSET_ERROR ${s?Ia(s):s} ${e.error}`),!this.schedule)return;const a=(null==s?void 0:s.identifier)||"",u=this.getAssetPlayerQueueIndex(a),c=this.playerQueue[u]||null,d=this.schedule.items,h=_({},e,{fatal:!1,errorAction:It(!0),asset:s,assetListIndex:i,event:t,schedule:d,scheduleIndex:n,player:c});if(this.hls.trigger(l.INTERSTITIAL_ASSET_ERROR,h),!e.fatal)return;const f=this.playingAsset,p=this.bufferingAsset,g=new Error(r);if(s&&(this.clearAssetPlayer(a,null),s.error=g),t.assetList.some((e=>!e.error)))for(let e=i;e<t.assetList.length;e++)this.resetAssetPlayer(t.assetList[e].identifier);else t.error=g;this.updateSchedule(!0),t.error?this.primaryFallback(t):f&&f.identifier===a?this.advanceAfterAssetEnded(t,n,i):p&&p.identifier===a&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,p)}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: ${Pa(n)} error: ${e.error}`);let i=this.timelinePos;-1===i&&(i=this.hls.startPosition);const r=this.updateItem(n,i);if(this.itemsMatch(n,r)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t)),!this.schedule)return;const s=this.schedule.findItemIndexAtTime(i);this.setSchedulePosition(s)}else this.checkStart()}onAssetListLoaded(e,t){var n,i;const r=t.event,s=r.identifier,a=t.assetListResponse.ASSETS;if(null==(n=this.schedule)||!n.hasEvent(s))return;const o=r.timelineStart,l=r.duration;let u=0;a.forEach(((e,t)=>{const n=parseFloat(e.DURATION);this.createAsset(r,t,u,o+u,n,e.URI),u+=n})),r.duration=u,this.log(`Loaded asset-list with duration: ${u} (was: ${l}) ${r}`);const c=this.waitingItem,d=(null==c?void 0:c.event.identifier)===s;this.updateSchedule();const h=null==(i=this.bufferingItem)?void 0:i.event;if(d){var f;const e=this.schedule.findEventIndex(s),t=null==(f=this.schedule.items)?void 0:f[e];if(t){if(!this.playingItem&&this.timelinePos>t.end){if(this.schedule.findItemIndexAtTime(this.timelinePos)!==e)return r.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${r}`),this.updateSchedule(!0),void this.primaryFallback(r)}this.setBufferingItem(t)}this.setSchedulePosition(e)}else if((null==h?void 0:h.identifier)===s){const e=r.assetList[0];if(e){const t=this.getAssetPlayer(e.identifier);if(h.appendInPlace){const e=this.primaryMedia;t&&e&&this.bufferAssetPlayer(t,e)}else t&&t.loadSource()}}}onError(e,t){if(this.schedule)switch(t.details){case o.ASSET_LIST_PARSING_ERROR:case o.ASSET_LIST_LOAD_ERROR:case o.ASSET_LIST_LOAD_TIMEOUT:{const e=t.interstitial;e&&(this.updateSchedule(!0),this.primaryFallback(e));break}case o.BUFFER_STALLED_ERROR:{const e=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(e)&&e.event.appendInPlace)return void this.handleInPlaceStall(e.event);this.log(`Primary player stall @${this.timelinePos} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0);break}}}}});function zo(e){return e&&"object"==typeof e?Array.isArray(e)?e.map(zo):Object.keys(e).reduce(((t,n)=>(t[n]=zo(e[n]),t)),{}):e}function Go(e,t){const n=e.loader;if(n!==Fo&&n!==Uo)t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1;else{(function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(e){}return!1})()&&(e.loader=Fo,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}}class Ho extends Jt{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 e;null!=(e=this.media)&&e.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{var e;this.hls&&(this.ended=(null==(e=this.media)?void 0:e.currentTime)||1,this.hls.trigger(l.MEDIA_ENDED,{stalled:!1}))},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(l.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(l.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(100),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&&(vi(n,"playing",this.onMediaPlaying),vi(n,"waiting",this.onMediaWaiting),vi(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(null==(e=this.media)||!e.readyState||!this.hasBuffered)return;const t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var n,i;const r=null==(n=this.hls)?void 0:n.config;if(!r)return;const s=this.media;if(!s)return;const{seeking:a}=s,o=this.seeking&&!a,u=!this.seeking&&a,c=s.paused&&!a||s.ended||0===s.playbackRate;if(this.seeking=a,e!==t)return t&&(this.ended=0),this.moved=!0,a||(this.nudgeRetry=0,r.nudgeOnVideoHole&&!c&&e>t&&this.nudgeOnVideoHole(e,t)),void(0===this.waiting&&this.stallResolved(e));if(u||o)return void(o&&this.stallResolved(e));if(c)return this.nudgeRetry=0,this.stallResolved(e),void(!this.ended&&s.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(l.MEDIA_ENDED,{stalled:!1})));if(!tn.getBuffered(s).length)return void(this.nudgeRetry=0);const d=tn.bufferInfo(s,e,0),h=d.nextStart||0,f=this.fragmentTracker;if(a&&f&&this.hls){const t=Vo(this.hls.inFlightFragments,e),n=d.len>2,i=!h||t||h-e>2&&!f.getPartialFragment(e);if(n||i)return;this.moved=!1}const p=null==(i=this.hls)?void 0:i.latestLevelDetails;if(!this.moved&&null!==this.stalled&&f){if(!(d.len>0)&&!h)return;const t=Math.max(h,d.start||0)-e,n=!(null==p||!p.live)?2*p.targetduration:2,i=Yo(e,f);if(t>0&&(t<=n||i))return void(s.paused||this._trySkipBufferHole(i))}const g=r.detectStallWithCurrentTimeMs,m=self.performance.now(),v=this.waiting;let y=this.stalled;if(null===y){if(!(v>0&&m-v<g))return void(this.stalled=m);y=this.stalled=v}const _=m-y;if(!a&&(_>=g||v)&&this.hls){var b;if("ended"===(null==(b=this.mediaSource)?void 0:b.readyState)&&(null==p||!p.live)&&Math.abs(e-((null==p?void 0:p.edge)||0))<1){if(this.ended)return;return this.ended=e||1,void this.hls.trigger(l.MEDIA_ENDED,{stalled:!0})}if(this._reportStall(d),!this.media||!this.hls)return}const E=tn.bufferInfo(s,e,r.maxBufferHole);this._tryFixBufferStall(E,_,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(l.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;const i=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&null!=(n=this.buffered.audio)&&n.length&&i&&i.length>1&&e>i.end(0)){const n=tn.bufferedInfo(tn.timeRangesToArray(this.buffered.audio),e,0);if(n.len>1&&t>=n.start){const n=tn.timeRangesToArray(i),r=tn.bufferedInfo(n,t,0).bufferedIndex;if(r>-1&&r<n.length-1){const t=tn.bufferedInfo(n,e,0).bufferedIndex,i=n[r].end,s=n[r+1].start;if((-1===t||t>r)&&s-i<1&&e-i<2){const n=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${i} -> ${s} buffered index: ${t}`);this.warn(n.message),this.media.currentTime+=1e-6;let r=Yo(e,this.fragmentTracker);r&&"fragment"in r?r=r.fragment:r||(r=void 0);const u=tn.bufferInfo(this.media,e,0);this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:n,reason:n.message,frag:r,buffer:u.len,bufferInfo:u})}}}}}_tryFixBufferStall(e,t,n){var i,r;const{fragmentTracker:s,media:a}=this,o=null==(i=this.hls)?void 0:i.config;if(!a||!s||!o)return;const l=null==(r=this.hls)?void 0:r.latestLevelDetails,u=Yo(n,s);if(u||null!=l&&l.live&&n<l.fragmentStart){if(this._trySkipBufferHole(u)||!this.media)return}const c=e.buffered,d=this.adjacentTraversal(e,n);(c&&c.length>1&&e.len>o.maxBufferHole||e.nextStart&&(e.nextStart-n<o.maxBufferHole||d))&&(t>1e3*o.highBufferWatchdogPeriod||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}adjacentTraversal(e,t){const n=this.fragmentTracker,i=e.nextStart;if(n&&i){const e=n.getFragAtPos(t,f),r=n.getFragAtPos(i,f);if(e&&r)return r.sn-e.sn<2}return!1}_reportStall(e){const{hls:t,media:n,stallReported:i,stalled:r}=this;if(!i&&null!==r&&n&&t){this.stallReported=!0;const i=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${nt(e)})`);this.warn(i.message),t.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_STALLED_ERROR,fatal:!1,error:i,buffer:e.len,bufferInfo:e,stalled:{start:r}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:i}=this,r=null==(t=this.hls)?void 0:t.config;if(!i||!n||!r)return 0;const s=i.currentTime,u=tn.bufferInfo(i,s,0),c=s<u.start?u.start:u.nextStart;if(c&&this.hls){const t=u.len<=r.maxBufferHole,h=u.len>0&&u.len<1&&i.readyState<3,p=c-s;if(p>0&&(t||h)){if(p>r.maxBufferHole){let t=!1;if(0===s){const e=n.getAppendedFrag(0,f);e&&c<e.end&&(t=!0)}if(!t&&e){var d;if(null==(d=this.hls.loadLevelObj)||!d.details)return 0;if(Vo(this.hls.inFlightFragments,c))return 0;let t=!1,i=e.end;for(;i<c;){const e=Yo(i,n);if(!e){t=!0;break}i+=e.duration}if(t)return 0}}const t=Math.max(c+.05,s+.1);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${t}`),this.moved=!0,i.currentTime=t,null==e||!e.gap){const n=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${t}`),i={type:a.MEDIA_ERROR,details:o.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:n,reason:n.message,buffer:u.len,bufferInfo:u};e&&("fragment"in e?i.part=e:i.frag=e),this.hls.trigger(l.ERROR,i)}return t}}return 0}_tryNudgeBuffer(e){const{hls:t,media:n,nudgeRetry:i}=this,r=null==t?void 0:t.config;if(!n||!r)return 0;const s=n.currentTime;if(this.nudgeRetry++,i<r.nudgeMaxRetry){const u=s+(i+1)*r.nudgeOffset,c=new Error(`Nudging 'currentTime' from ${s} to ${u}`);this.warn(c.message),n.currentTime=u,t.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_NUDGE_ON_STALL,error:c,fatal:!1,buffer:e.len,bufferInfo:e})}else{const n=new Error(`Playhead still not moving while enough data buffered @${s} after ${r.nudgeMaxRetry} nudges`);this.error(n.message),t.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.BUFFER_STALLED_ERROR,error:n,fatal:!0,buffer:e.len,bufferInfo:e})}}}function Vo(e,t){const n=Wo(e.main);if(n&&n.start<=t)return n;const i=Wo(e.audio);return i&&i.start<=t?i:null}function Wo(e){if(!e)return null;switch(e.state){case bi:case _i:case Ai:case Ti:return null}return e.frag}function Yo(e,t){return t.getAppendedFrag(e,f)||t.getPartialFragment(e)}function qo(){if("undefined"!=typeof self)return self.VTTCue||self.TextTrackCue}function Xo(e,t,n,i,r){let s=new e(t,n,"");try{s.value=i,r&&(s.type=r)}catch(a){s=new e(t,n,nt(r?E({type:r},i):i))}return s}const Qo=(()=>{const e=qo();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class Jo{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(l.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(l.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(l.MANIFEST_LOADING,this.onManifestLoading,this),e.on(l.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(l.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(l.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(l.MANIFEST_LOADING,this.onManifestLoading,this),e.off(l.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(l.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(l.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(e,t){var n;this.media=t.media,!1===(null==(n=t.overrides)?void 0:n.cueRemoval)&&(this.removeCues=!1)}onMediaAttached(){var e;const t=null==(e=this.hls)?void 0:e.latestLevelDetails;t&&this.updateDateRangeCues(t)}onMediaDetaching(e,t){this.media=null;!!t.transferMedia||(this.id3Track&&(this.removeCues&&Ea(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("metadata"===n.kind&&"id3"===n.label)return _a(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media||!this.hls)return;const{enableEmsgMetadataCues:n,enableID3MetadataCues:i}=this.hls.config;if(!n&&!i)return;const{samples:r}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=qo();if(s)for(let e=0;e<r.length;e++){const t=r[e].type;if(t===or.emsg&&!n||!i)continue;const a=ir(r[e].data),o=r[e].pts;let l=o+r[e].duration;l>Qo&&(l=Qo);l-o<=0&&(l=o+.25);for(let e=0;e<a.length;e++){const n=a[e];if(!rr(n)){this.updateId3CueEnds(o,t);const e=Xo(s,o,l,n,t);e&&this.id3Track.addCue(e)}}}}updateId3CueEnds(e,t){var n;const i=null==(n=this.id3Track)?void 0:n.cues;if(i)for(let n=i.length;n--;){const r=i[n];r.type===t&&r.startTime<e&&r.endTime===Qo&&(r.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:i}){const{id3Track:r,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:a,enableID3MetadataCues:o}}=s;if(r&&(a||o)){let e;e="audio"===i?e=>e.type===or.audioId3&&o:"video"===i?e=>e.type===or.emsg&&a:e=>e.type===or.audioId3&&o||e.type===or.emsg&&a,wa(r,t,n,e)}}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:s,interstitialsController:a}=this.hls.config;if(!s)return;const o=qo();if(n&&r&&!a){const{fragmentStart:t,fragmentEnd:i}=e;let r=this.assetCue;r?(r.startTime=t,r.endTime=i):o&&(r=this.assetCue=Xo(o,t,i,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),r&&(r.id=n,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(r),r.addEventListener("enter",this.onEventCueEnter)))}if(!e.hasProgramDateTime)return;const{id3Track:l}=this,{dateRanges:u}=e,c=Object.keys(u);let d=this.dateRangeCuesAppended;var h;if(l&&t)if(null!=(h=l.cues)&&h.length){const e=Object.keys(d).filter((e=>!c.includes(e)));for(let t=e.length;t--;){var f;const n=e[t],i=null==(f=d[n])?void 0:f.cues;delete d[n],i&&Object.keys(i).forEach((e=>{const t=i[e];if(t){t.removeEventListener("enter",this.onEventCueEnter);try{l.removeCue(t)}catch(e){}}}))}}else d=this.dateRangeCuesAppended={};const p=e.fragments[e.fragments.length-1];if(0!==c.length&&i(null==p?void 0:p.programDateTime)){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let e=0;e<c.length;e++){const t=c[e],n=u[t],i=n.startTime,r=d[t],s=(null==r?void 0:r.cues)||{};let l=(null==r?void 0:r.durationKnown)||!1,h=Qo;const{duration:f,endDate:p}=n;if(p&&null!==f)h=i+f,l=!0;else if(n.endOnNext&&!l){const e=c.reduce(((e,t)=>{if(t!==n.id){const i=u[t];if(i.class===n.class&&i.startDate>n.startDate&&(!e||n.startDate<e.startDate))return i}return e}),null);e&&(h=e.startTime,l=!0)}const m=Object.keys(n.attr);for(let e=0;e<m.length;e++){const u=m[e];if("ID"===(g=u)||"CLASS"===g||"CUE"===g||"START-DATE"===g||"DURATION"===g||"END-DATE"===g||"END-ON-NEXT"===g)continue;const c=s[u];if(c)!l||null!=r&&r.durationKnown?Math.abs(c.startTime-i)>.01&&(c.startTime=i,c.endTime=h):c.endTime=h;else if(o){let e=n.attr[u];dn(u)&&(e=N(e));const r=Xo(o,i,h,{key:u,data:e},or.dateRange);r&&(r.id=t,this.id3Track.addCue(r),s[u]=r,a&&("X-ASSET-LIST"!==u&&"X-ASSET-URL"!==u||r.addEventListener("enter",this.onEventCueEnter)))}}d[t]={cues:s,dateRange:n,durationKnown:l}}var g}}}class $o{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:e}=this,t=this.levelDetails;if(!e||!t)return;this.currentTime=e.currentTime;const n=this.computeLatency();if(null===n)return;this._latency=n;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:r}=this.config;if(!i||1===r||!t.live)return;const s=this.targetLatency;if(null===s)return;const a=n-s;if(a<Math.min(this.maxLatency,s+t.targetduration)&&a>.05&&this.forwardBufferLength>1){const t=Math.min(2,Math.max(1,r)),n=Math.round(2/(1+Math.exp(-.75*a-this.edgeStalled))*20)/20,i=Math.min(t,Math.max(1,n));this.changeMediaPlaybackRate(e,i)}else 1!==e.playbackRate&&0!==e.playbackRate&&this.changeMediaPlaybackRate(e,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return(null==(e=this.hls)?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:e}=this;if(void 0!==e.liveMaxLatencyDuration)return e.liveMaxLatencyDuration;const t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const e=this.levelDetails;if(null===e||null===this.hls)return null;const{holdBack:t,partHoldBack:n,targetduration:i}=e,{liveSyncDuration:r,liveSyncDurationCount:s,lowLatencyMode:a}=this.config,o=this.hls.userConfig;let l=a&&n||t;(this._targetLatencyUpdated||o.liveSyncDuration||o.liveSyncDurationCount||0===l)&&(l=void 0!==r?r:s*i);const u=i;return l+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,u)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(null===e||null===t)return null;const n=this.levelDetails;if(null===n)return null;const i=n.edge,r=e-t-this.edgeStalled,s=i-n.totalduration,a=i-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,r),a)}get drift(){const e=this.levelDetails;return null===e?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(null===e)return 0;const t=3*(this.config.lowLatencyMode&&e.partTarget||e.targetduration);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(l.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(l.MANIFEST_LOADING,this.onManifestLoading,this),e.on(l.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(l.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(l.MANIFEST_LOADING,this.onManifestLoading,this),e.off(l.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(l.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var n;t.details===o.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&null!=(n=this.levelDetails)&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,i;e.playbackRate!==t&&(null==(n=this.hls)||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${null==(i=this.targetLatency)?void 0:i.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return null===e?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return null===e?null:e-this.currentTime}}class el extends ls{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(l.MANIFEST_LOADING,this.onManifestLoading,this),e.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(l.LEVEL_LOADED,this.onLevelLoaded,this),e.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(l.FRAG_BUFFERED,this.onFragBuffered,this),e.on(l.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(l.MANIFEST_LOADING,this.onManifestLoading,this),e.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(l.LEVEL_LOADED,this.onLevelLoaded,this),e.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(l.FRAG_BUFFERED,this.onFragBuffered,this),e.off(l.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach((e=>{e.loadError=0,e.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,i=[],r={},s={};let a=!1,o=!1,l=!1;t.levels.forEach((e=>{const t=e.attrs;let{audioCodec:u,videoCodec:c}=e;u&&(e.audioCodec=u=Ne(u,n)||void 0),c&&(c=e.videoCodec=function(e){const t=e.split(",");for(let e=0;e<t.length;e++){const n=t[e].split(".");n.length>2&&"avc1"===n[0]&&(t[e]=`avc1.${parseInt(n[1]).toString(16)}${("000"+parseInt(n[2]).toString(16)).slice(-4)}`)}return t.join(",")}(c));const{width:d,height:h,unknownCodecs:f}=e,p=(null==f?void 0:f.length)||0;if(a||(a=!(!d||!h)),o||(o=!!c),l||(l=!!u),p||u&&!this.isAudioSupported(u)||c&&!this.isVideoSupported(c))return void this.log(`Some or all CODECS not supported "${t.CODECS}"`);const{CODECS:g,"FRAME-RATE":m,"HDCP-LEVEL":v,"PATHWAY-ID":y,RESOLUTION:_,"VIDEO-RANGE":b}=t,E=`${`${y||"."}-`}${e.bitrate}-${_}-${m}-${g}-${b}-${v}`;if(r[E])if(r[E].uri===e.url||e.attrs["PATHWAY-ID"])r[E].addGroupId("audio",t.AUDIO),r[E].addGroupId("text",t.SUBTITLES);else{const t=s[E]+=1;e.attrs["PATHWAY-ID"]=new Array(t+1).join(".");const n=this.createLevel(e);r[E]=n,i.push(n)}else{const t=this.createLevel(e);r[E]=t,s[E]=1,i.push(t)}})),this.filterAndSortMediaOptions(i,t,a,o,l)}createLevel(e){const t=new $e(e),n=e.supplemental;if(null!=n&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const e=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(e.message),t.supportedResult=Ue(e,[])}return t}isAudioSupported(e){return Ce(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return Ce(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,i,r){var s;let u=[],c=[],d=e;const h=(null==(s=t.stats)?void 0:s.parsing)||{};if((n||i)&&r&&(d=d.filter((({videoCodec:e,videoRange:t,width:n,height:i})=>{return(!!e||!(!n||!i))&&(!!(r=t)&&We.indexOf(r)>-1);var r}))),0===d.length)return Promise.resolve().then((()=>{if(this.hls){let e="no level with compatible codecs found in manifest",n=e;t.levels.length&&(n=`one or more CODECS in variant not supported: ${nt(t.levels.map((e=>e.attrs.CODECS)).filter(((e,t,n)=>n.indexOf(e)===t)))}`,this.warn(n),e+=` (${n})`);const i=new Error(e);this.hls.trigger(l.ERROR,{type:a.MEDIA_ERROR,details:o.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:i,reason:n})}})),void(h.end=performance.now());t.audioTracks&&(u=t.audioTracks.filter((e=>!e.audioCodec||this.isAudioSupported(e.audioCodec))),tl(u)),t.subtitles&&(c=t.subtitles,tl(c));const f=d.slice(0);d.sort(((e,t)=>{if(e.attrs["HDCP-LEVEL"]!==t.attrs["HDCP-LEVEL"])return(e.attrs["HDCP-LEVEL"]||"")>(t.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&e.height!==t.height)return e.height-t.height;if(e.frameRate!==t.frameRate)return e.frameRate-t.frameRate;if(e.videoRange!==t.videoRange)return We.indexOf(e.videoRange)-We.indexOf(t.videoRange);if(e.videoCodec!==t.videoCodec){const n=De(e.videoCodec),i=De(t.videoCodec);if(n!==i)return i-n}if(e.uri===t.uri&&e.codecSet!==t.codecSet){const n=Le(e.codecSet),i=Le(t.codecSet);if(n!==i)return i-n}return e.averageBitrate!==t.averageBitrate?e.averageBitrate-t.averageBitrate:0}));let p=f[0];if(this.steering&&(d=this.steering.filterParsedLevels(d),d.length!==f.length))for(let e=0;e<f.length;e++)if(f[e].pathwayId===d[0].pathwayId){p=f[e];break}this._levels=d;for(let e=0;e<d.length;e++)if(d[e]===p){var g;this._firstLevel=e;const t=p.bitrate,n=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${d.length} level(s) found, first bitrate: ${t}`),void 0===(null==(g=this.hls.userConfig)?void 0:g.abrEwmaDefaultEstimate)){const e=Math.min(t,this.hls.config.abrEwmaDefaultEstimateMax);e>n&&n===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=e)}break}const m=r&&!i,v=this.hls.config,y=!(!v.audioStreamController||!v.audioTrackController),_={levels:d,audioTracks:u,subtitleTracks:c,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:r,video:i,altAudio:y&&!m&&u.some((e=>!!e.url))};h.end=performance.now(),this.hls.trigger(l.MANIFEST_PARSED,_)}get levels(){return 0===this._levels.length?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(0===t.length)return;if(e<0||e>=t.length){const n=new Error("invalid level idx"),i=e<0;if(this.hls.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.LEVEL_SWITCH_ERROR,level:e,fatal:i,error:n,reason:n.message}),i)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,i=this.currentLevel,r=i?i.attrs["PATHWAY-ID"]:void 0,s=t[e],u=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&i&&r===u)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${u?" with Pathway "+u:""} from level ${n}${r?" with Pathway "+r:""}`);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(l.LEVEL_SWITCHING,c);const d=s.details;if(!d||d.live){const e=this.switchParams(s.uri,null==i?void 0:i.details,d);this.loadPlaylist(e)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(void 0===this._startLevel){const e=this.hls.config.startLevel;return void 0!==e?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((e=>-1!==t.indexOf(e)));if(e.length<1)return void this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);this.steering.pathwayPriority=n}}onError(e,t){!t.fatal&&t.context&&t.context.type===c&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(void 0!==t&&t.type===f){const e=t.elementaryStreams;if(!Object.keys(e).some((t=>!!e[t])))return;const n=this._levels[t.level];null!=n&&n.loadError&&(this.log(`Resetting level error count of ${n.loadError} on frag buffered`),n.loadError=0)}}onLevelLoaded(e,t){var n;const{level:i,details:r}=t,s=t.levelInfo;var a;if(!s)return this.warn(`Invalid level index ${i}`),void(null!=(a=t.deliveryDirectives)&&a.skip&&(r.deltaUpdateFailed=!0));if(s===this.currentLevel||t.withoutMultiVariant){0===s.fragmentError&&(s.loadError=0);let e=s.details;e===t.details&&e.advanced&&(e=void 0),this.playlistLoaded(i,t,e)}else null!=(n=t.deliveryDirectives)&&n.skip&&(r.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),i=this.currentLevelIndex,r=e.attrs["PATHWAY-ID"],s=e.details,a=null==s?void 0:s.age;this.log(`Loading level index ${i}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""}${r?" Pathway "+r:""}${a&&s.live?" age "+a.toFixed(1)+(s.type?" "+s.type||0:""):""} ${n}`),this.hls.trigger(l.LEVEL_LOADING,{url:n,level:i,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(1===this._levels.length)return;const n=this._levels.filter(((t,n)=>n!==e||(this.steering&&this.steering.removeLevel(t),t===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,t.details&&t.details.fragments.forEach((e=>e.level=-1))),!1)));li(n),this._levels=n,this.currentLevelIndex>-1&&null!=(t=this.currentLevel)&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const i=n.length-1;this._firstLevel=Math.min(this._firstLevel,i),this._startLevel&&(this._startLevel=Math.min(this._startLevel,i)),this.hls.trigger(l.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(l.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function tl(e){const t={};e.forEach((e=>{const n=e.groupId||"";e.id=t[n]=t[n]||0,t[n]++}))}function nl(){return self.SourceBuffer||self.WebKitSourceBuffer}function il(){if(!D())return!1;const e=nl();return!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove}class rl extends Ri{constructor(e,t,n){super(e,t,n,"stream-controller",f),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 e=this.media,t=e?e.currentTime:null;if(null===t||!i(t))return;if(this.log(`Media seeked to ${t.toFixed(3)}`),!this.getBufferedFrag(t))return;const n=this.getFwdBufferInfoAtPos(e,t,f,0);null!==n&&0!==n.len?this.tick():this.warn(`Main forward buffer length at ${t} on "seeked" event ${n?n.len:"empty"})`)},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(l.MANIFEST_PARSED,this.onManifestParsed,this),e.on(l.LEVEL_LOADING,this.onLevelLoading,this),e.on(l.LEVEL_LOADED,this.onLevelLoaded,this),e.on(l.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(l.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(l.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(l.BUFFER_CREATED,this.onBufferCreated,this),e.on(l.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(l.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(l.MANIFEST_PARSED,this.onManifestParsed,this),e.off(l.LEVEL_LOADED,this.onLevelLoaded,this),e.off(l.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(l.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(l.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(l.BUFFER_CREATED,this.onBufferCreated,this),e.off(l.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(l.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:i}=this;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){let e=i.startLevel;-1===e&&(i.config.testBandwidth&&this.levels.length>1?(e=0,this.bitrateTest=!0):e=i.firstAutoLevel),i.nextLoadLevel=e,this.level=i.loadLevel,this._hasEnoughToStart=!!t}n>0&&-1===e&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=bi,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=_i}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Li:{const{levels:e,level:t}=this,n=null==e?void 0:e[t],i=null==n?void 0:n.details;if(i&&(!i.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(i))break;this.state=bi;break}if(this.hls.nextLoadLevel!==this.level){this.state=bi;break}break}case xi:this.checkRetryDate()}this.state===bi&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),null!=(e=this.media)&&e.readyState&&!1===this.media.seeking&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:i}=this;if(null===t||!i&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;const r=this.buffering?e.nextLoadLevel:e.loadLevel;if(null==n||!n[r])return;const s=n[r],a=this.getMainFwdBufferInfo();if(null===a)return;const o=this.getLevelDetails();if(o&&this._streamEnded(a,o)){const e={};return 2===this.altAudio&&(e.type="video"),this.hls.trigger(l.BUFFER_EOS,e),void(this.state=Ai)}if(!this.buffering)return;e.loadLevel!==r&&-1===e.manualLevel&&this.log(`Adapting to level ${r} from level ${this.level}`),this.level=e.nextLoadLevel=r;const u=s.details;if(!u||this.state===Li||this.waitForLive(s))return this.level=r,this.state=Li,void(this.startFragRequested=!1);const c=a.len,d=this.getMaxBufferLength(s.maxBitrate);if(c>=d)return;this.backtrackFragment&&this.backtrackFragment.start>a.end&&(this.backtrackFragment=null);const h=this.backtrackFragment?this.backtrackFragment.start:a.end;let p=this.getNextFragment(h,u);if(this.couldBacktrack&&!this.fragPrevious&&p&&Y(p)&&this.fragmentTracker.getState(p)!==Ot){var g;const e=(null!=(g=this.backtrackFragment)?g:p).sn-u.startSN,t=u.fragments[e-1];t&&p.cc===t.cc&&(p=t,this.fragmentTracker.removeFragment(t))}else this.backtrackFragment&&a.len&&(this.backtrackFragment=null);if(p&&this.isLoopLoading(p,h)){if(!p.gap){const e=this.audioOnly&&!this.altAudio?G:H,t=(e===H?this.videoBuffer:this.mediaBuffer)||this.media;t&&this.afterBufferFlushed(t,e,f)}p=this.getNextFragmentLoopLoading(p,u,a,f,d)}p&&(!p.initSegment||p.initSegment.data||this.bitrateTest||(p=p.initSegment),this.loadFragment(p,s,h))}loadFragment(e,t,n){const i=this.fragmentTracker.getState(e);i===Nt||i===Pt?Y(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,f)}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(null!=t&&t.readyState){let n;const i=this.getAppendedFrag(t.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const r=this.getLevelDetails();if(null!=r&&r.live){const e=this.getMainFwdBufferInfo();if(!e||e.len<2*r.targetduration)return}if(!t.paused&&e){const t=e[this.hls.nextLoadLevel],i=this.fragLastKbps;n=i&&this.fragCurrent?this.fragCurrent.duration*t.maxBitrate/(1e3*i)+1:0}else n=0;const s=this.getBufferedFrag(t.currentTime+n);if(s){const e=this.followingBufferedFrag(s);if(e){this.abortCurrentFrag();const t=e.maxStartPTS?e.maxStartPTS:e.start,n=e.duration,i=Math.max(s.end,t+Math.min(Math.max(n-this.config.maxFragLookUpTolerance,n*(this.couldBacktrack?.5:.125)),n*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(i,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 Ei:case wi:case xi:case Si:case Ci:this.state=bi}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,2===this.altAudio?"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&&(vi(n,"playing",this.onMediaPlaying),vi(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(l.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,i=!1;for(let e=0;e<t.levels.length;e++){const r=t.levels[e].audioCodec;r&&(n=n||-1!==r.indexOf("mp4a.40.2"),i=i||-1!==r.indexOf("mp4a.40.5"))}this.audioCodecSwitch=n&&i&&!function(){var e;const t=nl();return"function"==typeof(null==t||null==(e=t.prototype)?void 0:e.changeType)}(),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!==bi)return;const i=t.levelInfo;(!i.details||i.details.live&&(this.levelLastLoaded!==i||i.details.expired)||this.waitForCdnTuneIn(i.details))&&(this.state=Li)}onLevelLoaded(e,t){var n;const{levels:i,startFragRequested:r}=this,s=t.level,a=t.details,o=a.totalduration;if(!i)return void this.warn(`Levels were reset while loading level ${s}`);this.log(`Level ${s} loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""}, cc [${a.startCC}, ${a.endCC}] duration:${o}`);const u=t.levelInfo,c=this.fragCurrent;!c||this.state!==wi&&this.state!==xi||c.level!==t.level&&c.loader&&this.abortCurrentFrag();let d=0;if(a.live||null!=(n=u.details)&&n.live){var h;if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;d=this.alignPlaylists(a,u.details,null==(h=this.levelLastLoaded)?void 0:h.details)}if(u.details=a,this.levelLastLoaded=u,r||this.setStartPosition(a,d),this.hls.trigger(l.LEVEL_UPDATED,{details:a,level:s}),this.state===Li){if(this.waitForCdnTuneIn(a))return;this.state=bi}r&&a.live&&this.synchronizeToLiveEdge(a),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const i=this.hls.liveSyncPosition,r=this.getLoadPosition(),s=e.fragmentStart,a=e.edge,o=r>=s-t.maxFragLookUpTolerance&&r<=a;if(null!==i&&n.duration>i&&(r<i||!o)){const s=void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!o&&n.readyState<4||r<a-s)&&(this._hasEnoughToStart||(this.nextLoadPosition=i),n.readyState))if(this.warn(`Playback: ${r.toFixed(3)} is located too far from the end of live sliding playlist: ${a}, reset currentTime to : ${i.toFixed(3)}`),"buffered"===this.config.liveSyncMode){var l;const e=tn.bufferInfo(n,i,0);if(null==(l=e.buffered)||!l.length)return void(n.currentTime=i);if(e.start<=r)return void(n.currentTime=i);const{nextStart:t}=tn.bufferedInfo(e.buffered,r,0);t&&(n.currentTime=t)}else n.currentTime=i}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:i,payload:r}=e,{levels:s}=this;if(!s)return void this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);const a=s[n.level];if(!a)return void this.warn(`Level ${n.level} not found on progress`);const o=a.details;if(!o)return this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),void this.fragmentTracker.removeFragment(n);const l=a.videoCodec,u=o.PTSKnown||!o.live,c=null==(t=n.initSegment)?void 0:t.data,d=this._getAudioCodec(a),h=this.transmuxer=this.transmuxer||new os(this.hls,f,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),p=i?i.index:-1,g=-1!==p,m=new $t(n.level,n.sn,n.stats.chunkCount,r.byteLength,p,g),v=this.initPTS[n.cc];h.push(r,c,d,l,n,i,o.totalduration,u,m,v)}onAudioTrackSwitching(e,t){const n=this.hls,i=2===this.altAudio;if(ct(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 e=this.fragCurrent;e&&(this.log("Switching to main audio track, cancel main fragment load"),e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(i)return this.fragmentTracker.removeAllFragments(),n.once(l.BUFFER_FLUSHED,(()=>{this.hls&&this.hls.trigger(l.AUDIO_TRACK_SWITCHED,t)})),void n.trigger(l.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});n.trigger(l.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=ct(t.url,this.hls);if(n){const e=this.videoBuffer;e&&this.mediaBuffer!==e&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=e)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){const n=t.tracks;let i,r,s=!1;for(const e in n){const t=n[e];if("main"===t.id){if(r=e,i=t,"video"===e){const t=n[e];t&&(this.videoBuffer=t.buffer)}}else s=!0}s&&i?(this.log(`Alternate track found, use ${r}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:i}=t,r=n.type===f;if(r){if(this.fragContextChanged(n))return this.warn(`Fragment ${n.sn}${i?" p: "+i.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),void(this.state===Ci&&(this.state=bi));const e=i?i.stats:n.stats;this.fragLastKbps=Math.round(8*e.total/(e.buffering.end-e.loading.first)),Y(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,i)}const s=this.media;s&&(!this._hasEnoughToStart&&tn.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),r&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal)this.state=Ti;else switch(t.details){case o.FRAG_GAP:case o.FRAG_PARSING_ERROR:case o.FRAG_DECRYPT_ERROR:case o.FRAG_LOAD_ERROR:case o.FRAG_LOAD_TIMEOUT:case o.KEY_LOAD_ERROR:case o.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(f,t);break;case o.LEVEL_LOAD_ERROR:case o.LEVEL_LOAD_TIMEOUT:case o.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==Li||(null==(n=t.context)?void 0:n.type)!==c||(this.state=bi);break;case o.BUFFER_ADD_CODEC_ERROR:case o.BUFFER_APPEND_ERROR:if("main"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case o.BUFFER_FULL_ERROR:if("main"!==t.parent)return;if(this.reduceLengthAndFlushBuffer(t)){!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}break;case o.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onFragLoadEmergencyAborted(){this.state=bi,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==G||!this.altAudio){const e=(t===H?this.videoBuffer:this.mediaBuffer)||this.media;e&&(this.afterBufferFlushed(e,t,f),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,-1===this.level&&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)return void this.log(`could not seek to ${n}, already seeking at ${t}`);const i=this.timelineOffset;i&&n&&(n+=i);const r=this.getLevelDetails(),s=tn.getBuffered(e),a=s.length?s.start(0):0,o=a-n,l=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||o>0&&(o<l||this.loadingParts&&o<2*((null==r?void 0:r.partTarget)||0)))&&(this.log(`adjusting start position by ${o} to match buffer start`),n+=o,this.startPosition=n),t<n&&(this.log(`seek to target start position ${n} from current time ${t} buffer start ${a}`),e.currentTime=n)}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t=-1!==t.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then((e=>{const{hls:n}=this,i=null==e?void 0:e.frag;if(!i||this.fragContextChanged(i))return;t.fragmentError=0,this.state=bi,this.startFragRequested=!1,this.bitrateTest=!1;const r=i.stats;r.parsing.start=r.parsing.end=r.buffering.start=r.buffering.end=self.performance.now(),n.trigger(l.FRAG_LOADED,e),i.bitrateTest=!1})).catch((t=>{this.state!==_i&&this.state!==Ti&&(this.warn(t),this.resetFragmentLoading(e))}))}_handleTransmuxComplete(e){const t=this.playlistType,{hls:n}=this,{remuxResult:r,chunkMeta:s}=e,a=this.getCurrentContext(s);if(!a)return void this.resetWhenMissingContext(s);const{frag:o,part:u,level:c}=a,{video:d,text:h,id3:f,initSegment:p}=r,{details:g}=c,m=this.altAudio?void 0:r.audio;if(this.fragContextChanged(o))this.fragmentTracker.removeFragment(o);else{if(this.state=Si,p){const e=p.tracks;if(e){const i=o.initSegment||o;if(this.unhandledEncryptionError(p,o))return;this._bufferInitSegment(c,e,i,s),n.trigger(l.FRAG_PARSING_INIT_SEGMENT,{frag:i,id:t,tracks:e})}const r=p.initPTS,a=p.timescale,u=this.initPTS[o.cc];if(i(r)&&(!u||u.baseTime!==r||u.timescale!==a)){const e=p.trackId;this.initPTS[o.cc]={baseTime:r,timescale:a,trackId:e},n.trigger(l.INIT_PTS_FOUND,{frag:o,id:t,initPTS:r,timescale:a,trackId:e})}}if(d&&g){m&&"audiovideo"===d.type&&this.logMuxedErr(o);const e=g.fragments[o.sn-1-g.startSN],t=o.sn===g.startSN,n=!e||o.cc>e.cc;if(!1!==r.independent){const{startPTS:e,endPTS:i,startDTS:r,endDTS:a}=d;if(u)u.elementaryStreams[d.type]={startPTS:e,endPTS:i,startDTS:r,endDTS:a};else if(d.firstKeyFrame&&d.independent&&1===s.id&&!n&&(this.couldBacktrack=!0),d.dropped&&d.independent){const r=this.getMainFwdBufferInfo(),s=(r?r.end:this.getLoadPosition())+this.config.maxBufferHole,l=d.firstKeyFramePTS?d.firstKeyFramePTS:e;if(!t&&s<l-this.config.maxBufferHole&&!n)return void this.backtrack(o);n&&(o.gap=!0),o.setElementaryStreamInfo(d.type,o.start,i,o.start,a,!0)}else t&&e-(g.appliedTimelineOffset||0)>2&&(o.gap=!0);o.setElementaryStreamInfo(d.type,e,i,r,a),this.backtrackFragment&&(this.backtrackFragment=o),this.bufferFragmentData(d,o,u,s,t||n)}else{if(!t&&!n)return void this.backtrack(o);o.gap=!0}}if(m){const{startPTS:e,endPTS:t,startDTS:n,endDTS:i}=m;u&&(u.elementaryStreams[G]={startPTS:e,endPTS:t,startDTS:n,endDTS:i}),o.setElementaryStreamInfo(G,e,t,n,i),this.bufferFragmentData(m,o,u,s)}if(g&&null!=f&&f.samples.length){const e={id:t,frag:o,details:g,samples:f.samples};n.trigger(l.FRAG_PARSING_METADATA,e)}if(g&&h){const e={id:t,frag:o,details:g,samples:h.samples};n.trigger(l.FRAG_PARSING_USERDATA,e)}}}logMuxedErr(e){this.warn(`${Y(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,i){if(this.state!==Si)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:r,video:s,audiovideo:a}=t;if(r){const n=e.audioCodec;let i=Me(r.codec,n);"mp4a"===i&&(i="mp4a.40.5");const s=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){i&&(i=-1!==i.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");const e=r.metadata;e&&"channelCount"in e&&1!==(e.channelCount||1)&&-1===s.indexOf("firefox")&&(i="mp4a.40.5")}i&&-1!==i.indexOf("mp4a.40.5")&&-1!==s.indexOf("android")&&"audio/mpeg"!==r.container&&(i="mp4a.40.2",this.log(`Android: force audio codec to ${i}`)),n&&n!==i&&this.log(`Swapping manifest audio codec "${n}" for "${i}"`),r.levelCodec=i,r.id=f,this.log(`Init audio buffer, container:${r.container}, codecs[selected/level/parsed]=[${i||""}/${n||""}/${r.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=f;const n=s.codec;if(4===(null==n?void 0:n.length))switch(n){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"}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${n}]${s.codec!==n?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete t.audiovideo}a&&(this.log(`Init audiovideo buffer, container:${a.container}, codecs[level/parsed]=[${e.codecs}/${a.codec}]`),delete t.video,delete t.audio);const o=Object.keys(t);if(o.length){if(this.hls.trigger(l.BUFFER_CODECS,t),!this.hls)return;o.forEach((e=>{const r=t[e].initSegment;null!=r&&r.byteLength&&this.hls.trigger(l.BUFFER_APPENDING,{type:e,data:r,frag:n,part:null,chunkMeta:i,parent:n.type})}))}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&2===this.altAudio?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,f)}get maxBufferLength(){const{levels:e,level:t}=this,n=null==e?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=bi}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&!1===e.seeking){const n=e.currentTime;if(tn.isBuffered(e,n)?t=this.getAppendedFrag(n):tn.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const e=this.fragPlaying,n=t.level;e&&t.sn===e.sn&&e.level===n||(this.fragPlaying=t,this.hls.trigger(l.FRAG_CHANGED,{frag:t}),e&&e.level===n||this.hls.trigger(l.LEVEL_SWITCHED,{level:n}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;return i(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;if(i(t)){const e=this.getLevelDetails(),n=this.currentFrag||(e?ht(null,e.fragments,t):null);if(n){const e=n.programDateTime;if(null!==e){const i=e+1e3*(t-n.start);return new Date(i)}}}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 sl extends w{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 i=this.keyIdToKeyInfo[n].loader;if(i){var t;if(e&&e!==(null==(t=i.context)?void 0:t.frag.type))return;i.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=o.KEY_LOAD_ERROR,n,i,r){return new Qt({type:a.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:r,error:n,networkDetails:i})}loadClear(e,t,n){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(t.length)for(let i=0,r=t.length;i<r;i++){const s=t[i];if(e.cc<=s.cc&&(!Y(e)||!Y(s)||e.sn<s.sn)||!n&&i==r-1)return this.emeController.selectKeySystemFormat(s).then((e=>{if(!this.emeController)return;s.setKeyFormat(e);const t=Tn(e);return t?this.emeController.getKeySystemAccess([t]):void 0}))}if(this.config.requireKeySystemAccessOnStart){const e=Ln(this.config);if(e.length)return this.emeController.getKeySystemAccess(e)}}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,i;t&&e.setKeyFormat(t);const r=e.decryptdata;if(!r){const n=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,o.KEY_LOAD_ERROR,n))}const s=r.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,o.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const a=al(r);let l=this.keyIdToKeyInfo[a];if(null!=(n=l)&&n.decryptdata.key)return r.key=l.decryptdata.key,Promise.resolve({frag:e,keyInfo:l});if(this.emeController&&null!=(i=l)&&i.keyLoadPromise){switch(this.emeController.getKeyStatus(l.decryptdata)){case"usable":case"usable-in-future":return l.keyLoadPromise.then((t=>{const{keyInfo:n}=t;return r.key=n.decryptdata.key,{frag:e,keyInfo:n}}))}}switch(this.log(`${this.keyIdToKeyInfo[a]?"Rel":"L"}oading${r.keyId?" keyId: "+I(r.keyId):""} URI: ${r.uri} from ${e.type} ${e.level}`),l=this.keyIdToKeyInfo[a]={decryptdata:r,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},r.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===r.keyFormat?this.loadKeyHTTP(l,e):this.loadKeyEME(l,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(l,e);default:return Promise.reject(this.createKeyLoadError(e,o.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${r.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const i=this.emeController.loadKey(n);return(e.keyLoadPromise=i.then((t=>(e.mediaKeySessionContext=t,n)))).catch((n=>{throw e.keyLoadPromise=null,"data"in n&&(n.data.frag=t),n}))}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,i=new(0,n.loader)(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise(((r,s)=>{const a={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},l=n.keyLoadPolicy.default,u={loadPolicy:l,timeout:l.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},c={onSuccess:(e,t,n,i)=>{const{frag:a,keyInfo:l}=n,u=al(l.decryptdata);if(!a.decryptdata||l!==this.keyIdToKeyInfo[u])return s(this.createKeyLoadError(a,o.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),i));l.decryptdata.key=a.decryptdata.key=new Uint8Array(e.data),a.keyLoader=null,l.loader=null,r({frag:a,keyInfo:l})},onError:(e,n,i,r)=>{this.resetLoader(n),s(this.createKeyLoadError(t,o.KEY_LOAD_ERROR,new Error(`HTTP Error ${e.code} loading key ${e.text}`),i,E({url:a.url,data:void 0},e)))},onTimeout:(e,n,i)=>{this.resetLoader(n),s(this.createKeyLoadError(t,o.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),i))},onAbort:(e,n,i)=>{this.resetLoader(n),s(this.createKeyLoadError(t,o.INTERNAL_ABORTED,new Error("key loading aborted"),i))}};i.load(a,u,c)}))}resetLoader(e){const{frag:t,keyInfo:n,url:i}=e,r=n.loader;t.keyLoader===r&&(t.keyLoader=null,n.loader=null);const s=al(n.decryptdata)||i;delete this.keyIdToKeyInfo[s],r&&r.destroy()}}function al(e){if(e.keyFormat!==Sn){const t=e.keyId;if(t)return I(t)}return e.uri}function ol(e){const{type:t}=e;switch(t){case d:return p;case h:return g;default:return f}}function ll(e,t){let n=e.url;return void 0!==n&&0!==n.indexOf("data:")||(n=t.url),n}class ul{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(l.MANIFEST_LOADING,this.onManifestLoading,this),e.on(l.LEVEL_LOADING,this.onLevelLoading,this),e.on(l.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(l.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(l.MANIFEST_LOADING,this.onManifestLoading,this),e.off(l.LEVEL_LOADING,this.onLevelLoading,this),e.off(l.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(l.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,i=t.loader,r=new(n||i)(t);return this.loaders[e.type]=r,r}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:u,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:i,pathwayId:r,url:s,deliveryDirectives:a,levelInfo:o}=t;this.load({id:n,level:i,pathwayId:r,responseType:"text",type:c,url:s,deliveryDirectives:a,levelOrTrack:o})}onAudioTrackLoading(e,t){const{id:n,groupId:i,url:r,deliveryDirectives:s,track:a}=t;this.load({id:n,groupId:i,level:null,responseType:"text",type:d,url:r,deliveryDirectives:s,levelOrTrack:a})}onSubtitleTrackLoading(e,t){const{id:n,groupId:i,url:r,deliveryDirectives:s,track:a}=t;this.load({id:n,groupId:i,level:null,responseType:"text",type:h,url:r,deliveryDirectives:s,levelOrTrack:a})}onLevelsUpdated(e,t){const n=this.loaders[c];if(n){const e=n.context;e&&!t.levels.some((t=>t===e.levelOrTrack))&&(n.abort(),delete this.loaders[c])}}load(e){var t;const n=this.hls.config;let r,s=this.getInternalLoader(e);if(s){const t=this.hls.logger,n=s.context;if(n&&n.levelOrTrack===e.levelOrTrack&&(n.url===e.url||n.deliveryDirectives&&!e.deliveryDirectives))return void(n.url===e.url?t.log(`[playlist-loader]: ignore ${e.url} ongoing request`):t.log(`[playlist-loader]: ignore ${e.url} in favor of ${n.url}`));t.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),s.abort()}if(r=e.type===u?n.manifestLoadPolicy.default:_({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),s=this.createInternalLoader(e),i(null==(t=e.deliveryDirectives)?void 0:t.part)){let t;if(e.type===c&&null!==e.level?t=this.hls.levels[e.level].details:e.type===d&&null!==e.id?t=this.hls.audioTracks[e.id].details:e.type===h&&null!==e.id&&(t=this.hls.subtitleTracks[e.id].details),t){const e=t.partTarget,n=t.targetduration;if(e&&n){const t=1e3*Math.max(3*e,.8*n);r=_({},r,{maxTimeToFirstByteMs:Math.min(t,r.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(t,r.maxTimeToFirstByteMs)})}}}const a=r.errorRetry||r.timeoutRetry||{},o={loadPolicy:r,timeout:r.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},l={onSuccess:(e,t,n,i)=>{const r=this.getInternalLoader(n);this.resetInternalLoader(n.type);const s=e.data;t.parsing.start=performance.now(),jn.isMediaPlaylist(s)||n.type!==u?this.handleTrackOrLevelPlaylist(e,t,n,i||null,r):this.handleMasterPlaylist(e,t,n,i)},onError:(e,t,n,i)=>{this.handleNetworkError(t,n,!1,e,i)},onTimeout:(e,t,n)=>{this.handleNetworkError(t,n,!0,void 0,e)}};s.load(e,o,l)}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,i){const r=this.hls,s=e.data,a=ll(e,n),o=jn.parseMasterPlaylist(s,a);if(o.playlistParsingError)return t.parsing.end=performance.now(),void this.handleManifestParsingError(e,n,o.playlistParsingError,i,t);const{contentSteering:u,levels:c,sessionData:d,sessionKeys:h,startTimeOffset:f,variableList:p}=o;this.variableList=p,c.forEach((e=>{const{unknownCodecs:t}=e;if(t){const{preferManagedMediaSource:n}=this.hls.config;let{audioCodec:i,videoCodec:r}=e;for(let s=t.length;s--;){const a=t[s];Ce(a,"audio",n)?(e.audioCodec=i=i?`${i},${a}`:a,ke.audio[i.substring(0,4)]=2,t.splice(s,1)):Ce(a,"video",n)&&(e.videoCodec=r=r?`${r},${a}`:a,ke.video[r.substring(0,4)]=2,t.splice(s,1))}}}));const{AUDIO:g=[],SUBTITLES:m,"CLOSED-CAPTIONS":v}=jn.parseMasterPlaylistMedia(s,a,o);if(g.length){g.some((e=>!e.url))||!c[0].audioCodec||c[0].attrs.AUDIO||(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),g.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new cn({}),bitrate:0,url:""}))}r.trigger(l.MANIFEST_LOADED,{levels:c,audioTracks:g,subtitles:m,captions:v,contentSteering:u,url:a,stats:t,networkDetails:i,sessionData:d,sessionKeys:h,startTimeOffset:f,variableList:p})}handleTrackOrLevelPlaylist(e,t,n,r,s){const a=this.hls,{id:o,level:c,type:d}=n,h=ll(e,n),f=i(c)?c:i(o)?o:0,p=ol(n),g=jn.parseLevelPlaylist(e.data,h,f,p,0,this.variableList);if(d===u){const e={attrs:new cn({}),bitrate:0,details:g,name:"",url:h};g.requestScheduled=t.loading.start+ri(g,0),a.trigger(l.MANIFEST_LOADED,{levels:[e],audioTracks:[],url:h,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=g,this.handlePlaylistLoaded(g,e,t,n,r,s)}handleManifestParsingError(e,t,n,i,r){this.hls.trigger(l.ERROR,{type:a.NETWORK_ERROR,details:o.MANIFEST_PARSING_ERROR,fatal:t.type===u,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:i,stats:r})}handleNetworkError(e,t,n=!1,i,r){let s=`A network ${n?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${e.type}`;e.type===c?s+=`: ${e.level} id: ${e.id}`:e.type!==d&&e.type!==h||(s+=` id: ${e.id} group-id: "${e.groupId}"`);const f=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let p=o.UNKNOWN,g=!1;const m=this.getInternalLoader(e);switch(e.type){case u:p=n?o.MANIFEST_LOAD_TIMEOUT:o.MANIFEST_LOAD_ERROR,g=!0;break;case c:p=n?o.LEVEL_LOAD_TIMEOUT:o.LEVEL_LOAD_ERROR,g=!1;break;case d:p=n?o.AUDIO_TRACK_LOAD_TIMEOUT:o.AUDIO_TRACK_LOAD_ERROR,g=!1;break;case h:p=n?o.SUBTITLE_TRACK_LOAD_TIMEOUT:o.SUBTITLE_LOAD_ERROR,g=!1}m&&this.resetInternalLoader(e.type);const v={type:a.NETWORK_ERROR,details:p,fatal:g,url:e.url,loader:m,context:e,error:f,networkDetails:t,stats:r};if(i){const n=(null==t?void 0:t.url)||e.url;v.response=E({url:n,data:void 0},i)}this.hls.trigger(l.ERROR,v)}handlePlaylistLoaded(e,t,n,i,r,s){const p=this.hls,{type:g,level:m,levelOrTrack:v,id:y,groupId:_,deliveryDirectives:b}=i,E=ll(t,i),w=ol(i);let x="number"==typeof i.level&&w===f?m:void 0;const k=e.playlistParsingError;if(k){if(this.hls.logger.warn(`${k} ${e.url}`),!p.config.ignorePlaylistParsingErrors)return void p.trigger(l.ERROR,{type:a.NETWORK_ERROR,details:o.LEVEL_PARSING_ERROR,fatal:!1,url:E,error:k,reason:k.message,response:t,context:i,level:x,parent:w,networkDetails:r,stats:n});e.playlistParsingError=null}if(e.fragments.length)switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),s.getCacheAge&&!isNaN(e.ageHeader)||(e.ageHeader=0)),g){case u:case c:if(x)if(v){if(v!==p.levels[x]){const e=p.levels.indexOf(v);e>-1&&(x=e)}}else x=0;p.trigger(l.LEVEL_LOADED,{details:e,levelInfo:v||p.levels[0],level:x||0,id:y||0,stats:n,networkDetails:r,deliveryDirectives:b,withoutMultiVariant:g===u});break;case d:p.trigger(l.AUDIO_TRACK_LOADED,{details:e,track:v,id:y||0,groupId:_||"",stats:n,networkDetails:r,deliveryDirectives:b});break;case h:p.trigger(l.SUBTITLE_TRACK_LOADED,{details:e,track:v,id:y||0,groupId:_||"",stats:n,networkDetails:r,deliveryDirectives:b})}else{const s=e.playlistParsingError=new Error("No Segments found in Playlist");p.trigger(l.ERROR,{type:a.NETWORK_ERROR,details:o.LEVEL_EMPTY_ERROR,fatal:!1,url:E,error:s,reason:s.message,response:t,context:i,level:x,parent:w,networkDetails:r,stats:n})}}}class cl{static get version(){return Bi}static isMSESupported(){return il()}static isSupported(){return function(){if(!il())return!1;const e=D();return"function"==typeof(null==e?void 0:e.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some((t=>e.isTypeSupported(Te(t,"video"))))||["mp4a.40.2","fLaC"].some((t=>e.isTypeSupported(Te(t,"audio")))))}()}static getMediaSource(){return D()}static get Events(){return l}static get MetadataSchema(){return or}static get ErrorTypes(){return a}static get ErrorDetails(){return o}static get DefaultConfig(){return cl.defaultConfig?cl.defaultConfig:Ko}static set DefaultConfig(e){cl.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 Fi,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=function(e,t,n){const i=S();if("object"==typeof console&&!0===e||"object"==typeof e){const r=["debug","log","info","warn","error"];r.forEach((t=>{i[t]=C(t,e,n)}));try{i.log(`Debug logs enabled for "${t}" in hls.js version 1.6.12`)}catch(e){return S()}r.forEach((t=>{A[t]=C(t,e)}))}else _(A,i);return i}(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=function(e,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==t.liveMaxLatencyDurationCount&&(void 0===t.liveSyncDurationCount||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(void 0===t.liveSyncDuration||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const i=zo(e),r=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((e=>{const s=`${"level"===e?"playlist":e}LoadPolicy`,a=void 0===t[s],o=[];r.forEach((n=>{const r=`${e}Loading${n}`,l=t[r];if(void 0!==l&&a){o.push(r);const e=i[s].default;switch(t[s]={default:e},n){case"TimeOut":e.maxLoadTimeMs=l,e.maxTimeToFirstByteMs=l;break;case"MaxRetry":e.errorRetry.maxNumRetry=l,e.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":e.errorRetry.retryDelayMs=l,e.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":e.errorRetry.maxRetryDelayMs=l,e.timeoutRetry.maxRetryDelayMs=l}}})),o.length&&n.warn(`hls.js config: "${o.join('", "')}" setting(s) are deprecated, use "${s}": ${nt(t[s])}`)})),E(E({},i),t)}(cl.DefaultConfig,e,t);this.userConfig=e,n.progressive&&Go(n,t);const{abrController:i,bufferController:r,capLevelController:s,errorController:a,fpsController:o}=n,u=new a(this),c=this.abrController=new i(this),d=new Ft(this),h=n.interstitialsController,f=h?this.interstitialsController=new h(this,cl):null,p=this.bufferController=new r(this,d),g=this.capLevelController=new s(this),m=new o(this),v=new ul(this),y=n.contentSteeringController,b=y?new y(this):null,w=this.levelController=new el(this,b),x=new Jo(this),k=new sl(this.config,this.logger),T=this.streamController=new rl(this,d,k),D=this.gapController=new Ho(this,d);g.setStreamController(T),m.setStreamController(T);const L=[v,w,T];f&&L.splice(1,0,f),b&&L.splice(1,0,b),this.networkControllers=L;const R=[c,p,D,g,m,x,d];this.audioTrackController=this.createController(n.audioTrackController,L);const I=n.audioStreamController;I&&L.push(this.audioStreamController=new I(this,d,k)),this.subtitleTrackController=this.createController(n.subtitleTrackController,L);const N=n.subtitleStreamController;N&&L.push(this.subtititleStreamController=new N(this,d,k)),this.createController(n.timelineController,R),k.emeController=this.emeController=this.createController(n.emeController,R),this.cmcdController=this.createController(n.cmcdController,R),this.latencyController=this.createController($o,R),this.coreComponents=R,L.push(u);const M=u.onErrorOut;"function"==typeof M&&this.on(l.ERROR,M,u),this.on(l.MANIFEST_LOADED,v.onManifestLoaded,v)}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,i){this._emitter.off(e,t,n,i)}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(t){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),!this.triggeringException){this.triggeringException=!0;const n=e===l.ERROR;this.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.INTERNAL_EXCEPTION,fatal:n,event:e,error:t}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(l.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach((e=>e.destroy())),this.networkControllers.length=0,this.coreComponents.forEach((e=>e.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 t=new Error(`attachMedia failed: invalid argument (${e})`);return void this.trigger(l.ERROR,{type:a.OTHER_ERROR,details:o.ATTACH_MEDIA_ERROR,fatal:!0,error:t})}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,i=t?e:{media:n};this._media=n,this.trigger(l.MEDIA_ATTACHING,i)}detachMedia(){this.logger.log("detachMedia"),this.trigger(l.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(l.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,n=this._url,i=this._url=K.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${i}`),t&&n&&(n!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(l.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={[f]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[p]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[g]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=null==e?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=function(){try{return crypto.randomUUID()}catch(e){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,(e=>{const n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)}))}}}()),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-1===e&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),-1!==e&&(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){(function(e){return Ve.indexOf(e)>-1})(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return-1===this.levelController.manualLevel}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 i=0;i<n;i++)if(e[i].maxBitrate>=t)return i;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let i;if(i=-1===t&&null!=e&&e.length?e.length-1:t,n)for(let t=i;t--;){const i=e[t].attrs["HDCP-LEVEL"];if(i&&i<=n)return t}return i}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(null==(t=this.audioTrackController)?void 0:t.setAudioOption(e))||null}setSubtitleOption(e){var t;return(null==(t=this.subtitleTrackController)?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}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!(null==(e=this.bufferController)||!e.bufferedToEnd)}get interstitialsManager(){var e;return(null==(e=this.interstitialsController)?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){return ze(e,rt(t),navigator.mediaCapabilities)}}cl.defaultConfig=void 0},16722:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});const i=e=>"object"==typeof e&&null!=e&&1===e.nodeType,r=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,s=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return r(n.overflowY,t)||r(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},a=(e,t,n,i,r,s,a,o)=>s<e&&a>t||s>e&&a<t?0:s<=e&&o<=n||a>=t&&o>=n?s-e-i:a>t&&o<n||s<e&&o>n?a-t+r:0,o=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},l=(e,t)=>{var n,r,l,u;if("undefined"==typeof document)return[];const{scrollMode:c,block:d,inline:h,boundary:f,skipOverflowHiddenElements:p}=t,g="function"==typeof f?f:e=>e!==f;if(!i(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,v=[];let y=e;for(;i(y)&&g(y);){if(y=o(y),y===m){v.push(y);break}null!=y&&y===document.body&&s(y)&&!s(document.documentElement)||null!=y&&s(y,p)&&v.push(y)}const _=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,b=null!=(u=null==(l=window.visualViewport)?void 0:l.height)?u:innerHeight,{scrollX:E,scrollY:w}=window,{height:x,width:k,top:S,right:C,bottom:A,left:T}=e.getBoundingClientRect(),{top:D,right:L,bottom:R,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let N="start"===d||"nearest"===d?S-D:"end"===d?A+R:S+x/2-D+R,M="center"===h?T+k/2-I+L:"end"===h?C+L:T-I;const P=[];for(let e=0;e<v.length;e++){const t=v[e],{height:n,width:i,top:r,right:o,bottom:l,left:u}=t.getBoundingClientRect();if("if-needed"===c&&S>=0&&T>=0&&A<=b&&C<=_&&(t===m&&!s(t)||S>=r&&A<=l&&T>=u&&C<=o))return P;const f=getComputedStyle(t),p=parseInt(f.borderLeftWidth,10),g=parseInt(f.borderTopWidth,10),y=parseInt(f.borderRightWidth,10),D=parseInt(f.borderBottomWidth,10);let L=0,R=0;const I="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-y:0,O="offsetHeight"in t?t.offsetHeight-t.clientHeight-g-D:0,F="offsetWidth"in t?0===t.offsetWidth?0:i/t.offsetWidth:0,B="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(m===t)L="start"===d?N:"end"===d?N-b:"nearest"===d?a(w,w+b,b,g,D,w+N,w+N+x,x):N-b/2,R="start"===h?M:"center"===h?M-_/2:"end"===h?M-_:a(E,E+_,_,p,y,E+M,E+M+k,k),L=Math.max(0,L+w),R=Math.max(0,R+E);else{L="start"===d?N-r-g:"end"===d?N-l+D+O:"nearest"===d?a(r,l,n,g,D+O,N,N+x,x):N-(r+n/2)+O/2,R="start"===h?M-u-p:"center"===h?M-(u+i/2)+I/2:"end"===h?M-o+y+I:a(u,o,i,p,y+I,M,M+k,k);const{scrollLeft:e,scrollTop:s}=t;L=0===B?0:Math.max(0,Math.min(s+L/B,t.scrollHeight-n/B+O)),R=0===F?0:Math.max(0,Math.min(e+R/F,t.scrollWidth-i/F+I)),N+=s-L,M+=e-R}P.push({el:t,top:L,left:R})}return P};function u(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(l(e,t));const i="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:r,top:s,left:a}of l(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=s-n.top+n.bottom,t=a-n.left+n.right;r.scroll({top:e,left:t,behavior:i})}}}}]);